@readmagic/workmate 0.0.20 → 0.0.22

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 (509) hide show
  1. package/dist/chunks/AddWorkspaceDirectory-DWgTWJ7R.js +1 -0
  2. package/dist/chunks/AgentsMdExternalIncludesDialog-DCvgQ6n3.js +1 -0
  3. package/dist/chunks/AgentsMdExternalIncludesDialog-s0Orgord.js +1 -0
  4. package/dist/chunks/App-BcEI6U5j.js +1 -0
  5. package/dist/chunks/ApproveApiKey-DegdTXZl.js +1 -0
  6. package/dist/chunks/ApproveApiKey-_VXIMSwY.js +1 -0
  7. package/dist/chunks/BackgroundTasksDialog-CjBt1L0p.js +2 -0
  8. package/dist/chunks/BypassPermissionsModeDialog-D2Gesf-u.js +1 -0
  9. package/dist/chunks/CustomSelect-B46Eh0gU.js +1 -0
  10. package/dist/chunks/DiffDialog-v2IiYyi3.js +6 -0
  11. package/dist/chunks/Doctor-BP0Rqraa.js +1 -0
  12. package/dist/chunks/Doctor-By_y3C2V.js +3 -0
  13. package/dist/chunks/ExitFlow-BasHk1mk.js +2 -0
  14. package/dist/chunks/Grove-C3mhgshv.js +11 -0
  15. package/dist/chunks/InvalidConfigDialog-DYVQK5js.js +1 -0
  16. package/dist/chunks/InvalidSettingsDialog-Dg6OiStR.js +1 -0
  17. package/dist/chunks/KeybindingProviderSetup-Bn1jzN5F.js +1 -0
  18. package/dist/chunks/MCPConnectionManager-ChN4Ayjk.js +1 -0
  19. package/dist/chunks/MCPToolListView-DLSrQHDc.js +1 -0
  20. package/dist/chunks/McpParsingWarnings-DZejAh8b.js +1 -0
  21. package/dist/chunks/MessageSelector-CdDlJE48.js +3 -0
  22. package/dist/chunks/Messages-DuL_r1Or.js +10 -0
  23. package/dist/chunks/Onboarding-CE2GNA-h.js +1 -0
  24. package/dist/chunks/PermissionDialog-BaibiQae.js +1 -0
  25. package/dist/chunks/PressEnterToContinue-DZc_s_pE.js +1 -0
  26. package/dist/chunks/PromptInputFooterSuggestions-lkr_A5jQ.js +1 -0
  27. package/dist/chunks/PromptInputHelpMenu-DaQKKyM5.js +1 -0
  28. package/dist/chunks/QueryEngine-DNNy1UCD.js +1 -0
  29. package/dist/chunks/REPL-CEhW-C41.js +1 -0
  30. package/dist/chunks/REPL-CkSL4C_8.js +124 -0
  31. package/dist/chunks/ResumeConversation-BMCO_3X7.js +1 -0
  32. package/dist/chunks/{SearchBox-CwwV0W-w.js → SearchBox-C9xxQzh1.js} +1 -1
  33. package/dist/chunks/SearchExtraToolsTool-DSy_jDhf.js +1 -0
  34. package/dist/chunks/SelectMulti-CNE06VAN.js +1 -0
  35. package/dist/chunks/Settings-mDykHLok.js +2 -0
  36. package/dist/chunks/Spinner-DwsJJUtn.js +1 -0
  37. package/dist/chunks/SpinnerGlyph-A6G-gloN.js +1 -0
  38. package/dist/chunks/TextInput-7uqPhq9T.js +22 -0
  39. package/dist/chunks/ThemePicker-DT9zVy-0.js +1 -0
  40. package/dist/chunks/TrustDialog-G4jM9IfM.js +1 -0
  41. package/dist/chunks/{ValidationErrorsList-BfZ5gcIv.js → ValidationErrorsList-BLtP647v.js} +1 -1
  42. package/dist/chunks/add-dir-7RfQAC3h.js +1 -0
  43. package/dist/chunks/{agentDisplay-BM4QG_RX.js → agentDisplay-vLQHFrmq.js} +1 -1
  44. package/dist/chunks/agents-BNg_skSm.js +101 -0
  45. package/dist/chunks/{agents-BbDBN5l9.js → agents-DLz0kfsr.js} +1 -1
  46. package/dist/chunks/allErrors-DaztSMrw.js +1 -0
  47. package/dist/chunks/appleTerminalBackup-BYKdf3of.js +1 -0
  48. package/dist/chunks/auth-BTB00dq5.js +10 -0
  49. package/dist/chunks/auth-Bbc0Ny8i.js +1 -0
  50. package/dist/chunks/backgroundHousekeeping-DYz83_8C.js +1 -0
  51. package/dist/chunks/backgroundHousekeeping-bEZtlJSf.js +17 -0
  52. package/dist/chunks/banner-mqZEluky.js +2 -0
  53. package/dist/chunks/branch-exFKkymg.js +2 -0
  54. package/dist/chunks/{break-cache-CcwOjTKt.js → break-cache-BL2gnDLX.js} +2 -2
  55. package/dist/chunks/btw-3l78DYET.js +1 -0
  56. package/dist/chunks/caches-6Nx6tsk9.js +1 -0
  57. package/dist/chunks/caches-ouaWB9bY.js +1 -0
  58. package/dist/chunks/claudeDesktop-D3PEgx3U.js +1 -0
  59. package/dist/chunks/{clear-DmqQBNKg.js → clear-CXfhVRp8.js} +1 -1
  60. package/dist/chunks/client-C01Bnxxv.js +1 -0
  61. package/dist/chunks/client-DYRgRQsr.js +1 -0
  62. package/dist/chunks/{client-C_jBL1yC.js → client-DdenNfkQ.js} +1 -1
  63. package/dist/chunks/client-DvhWKIOx.js +1 -0
  64. package/dist/chunks/commands-BoxOw75F.js +1 -0
  65. package/dist/chunks/compact-BOYr105K.js +2 -0
  66. package/dist/chunks/config-BddEvZZl.js +3 -0
  67. package/dist/chunks/config-GEv9hUzz.js +1 -0
  68. package/dist/chunks/config-kw4xg7Nk.js +1 -0
  69. package/dist/chunks/context-3s9wtn4L.js +1 -0
  70. package/dist/chunks/{context-noninteractive-BzDVMnWC.js → context-noninteractive-CJhUu_4y.js} +9 -9
  71. package/dist/chunks/context-noninteractive-DFvoZ2L9.js +1 -0
  72. package/dist/chunks/conversation-CoGharlH.js +1 -0
  73. package/dist/chunks/conversation-MxEVm54C.js +1 -0
  74. package/dist/chunks/conversationRecovery-Da_8uldZ.js +1 -0
  75. package/dist/chunks/convert-legacy-node-http-options-BZnGSjx2.js +1 -0
  76. package/dist/chunks/crossProjectResume-CzPCHq_K.js +40 -0
  77. package/dist/chunks/cwd-BcO6WHKo.js +1 -0
  78. package/dist/chunks/cwd-CDUelriw.js +1 -0
  79. package/dist/chunks/{datadog-Bc6wkPne.js → datadog-v_mXWncN.js} +1 -1
  80. package/dist/chunks/{debug-D58GQBDG.js → debug-8DCufdSp.js} +4 -4
  81. package/dist/chunks/detectRepository-DfX8xXw2.js +1 -0
  82. package/dist/chunks/{diff-DIg66U_d.js → diff-DJSt7QO6.js} +1 -1
  83. package/dist/chunks/directoryCompletion-CT6YVeg7.js +1 -0
  84. package/dist/chunks/doctor-DWvioSU9.js +1 -0
  85. package/dist/chunks/entry-ex0-RyYV.js +13 -0
  86. package/dist/chunks/esm-0CwQE5CJ.js +10 -0
  87. package/dist/chunks/esm-BCmY8V0C.js +1 -0
  88. package/dist/chunks/esm-BQY8jJNR.js +1 -0
  89. package/dist/chunks/esm-BUJtY-Rb.js +1 -0
  90. package/dist/chunks/esm-BadZVa27.js +1 -0
  91. package/dist/chunks/esm-BbMeEYcz.js +1 -0
  92. package/dist/chunks/esm-sVMjGuep.js +1 -0
  93. package/dist/chunks/execFileNoThrow-BsfuytkN.js +34 -0
  94. package/dist/chunks/exit-BxC_ZEtO.js +1 -0
  95. package/dist/chunks/extraUsage-DYm33Occ.js +1 -0
  96. package/dist/chunks/extractMemories-CzN3Ax2B.js +1 -0
  97. package/dist/chunks/fast-DqUpl_Lr.js +1 -0
  98. package/dist/chunks/fast-NUdUyAaM.js +1 -0
  99. package/dist/chunks/fetchModelList-CqsTAWEN.js +1 -0
  100. package/dist/chunks/fetchModelList-DBMHE6Ng.js +1 -0
  101. package/dist/chunks/fileSuggestions-B-SLfb-o.js +3 -0
  102. package/dist/chunks/firstPartyEventLogger-C0q45h_4.js +3 -0
  103. package/dist/chunks/firstPartyEventLogger-CP8hCBDj.js +1 -0
  104. package/dist/chunks/fpsMetrics-wxj9GAsd.js +1 -0
  105. package/dist/chunks/gemini-BC9kHhwe.js +2 -0
  106. package/dist/chunks/generateSessionName-ChvKBVxB.js +1 -0
  107. package/dist/chunks/{genericProcessUtils-6E7fB1dI.js → genericProcessUtils-BYi0OefF.js} +3 -3
  108. package/dist/chunks/goal-ByyimpVU.js +3 -0
  109. package/dist/chunks/grok-DenjixMl.js +1 -0
  110. package/dist/chunks/grove-Dq8QbQ9o.js +7 -0
  111. package/dist/chunks/help-CK90i4hE.js +1 -0
  112. package/dist/chunks/history-CNQNd6hT.js +1 -0
  113. package/dist/chunks/{hooks-7iyENdDG.js → hooks-BRFDg9DV.js} +2 -2
  114. package/dist/chunks/hooks-BaYwmkxD.js +1 -0
  115. package/dist/chunks/install-ZMll-dAa.js +1 -0
  116. package/dist/chunks/instrumentation-BwVyvRfY.js +21 -0
  117. package/dist/chunks/{job-CXz7SLZp.js → job-G_ukhLc4.js} +1 -1
  118. package/dist/chunks/keybindings-wNxBzDVQ.js +1 -0
  119. package/dist/chunks/launchLocalMemory-BcRlXLm6.js +3 -0
  120. package/dist/chunks/launchOnboarding-CDjQ64RO.js +8 -0
  121. package/dist/chunks/{loadAgentsDir-DaNpxaO-.js → loadAgentsDir-C1LkW7gl.js} +571 -641
  122. package/dist/chunks/loadAgentsDir-DKXap_Om.js +1 -0
  123. package/dist/chunks/loadPluginHooks-DtmHtEiS.js +1 -0
  124. package/dist/chunks/{loader-C33o_5kS.js → loader-C61fB6vU.js} +1 -1
  125. package/dist/chunks/localSearch-BB9x5C2N.js +1 -0
  126. package/dist/chunks/{localSearch-C2SZ9bGW.js → localSearch-DFo_WTMm.js} +1 -1
  127. package/dist/chunks/log-DaILwWJa.js +1 -0
  128. package/dist/chunks/logoUtils-Dj_2SWmO.js +1 -0
  129. package/dist/chunks/{magicDocs-CrTwULyJ.js → magicDocs-DYc9TFmI.js} +2 -2
  130. package/dist/chunks/main-BRg8L_aw.js +346 -0
  131. package/dist/chunks/managedEnv-DsqAYOJ4.js +1 -0
  132. package/dist/chunks/managedEnv-lybrMred.js +1 -0
  133. package/dist/chunks/mcp-Bsw3cMiJ.js +6 -0
  134. package/dist/chunks/mcp-DDdud6Y7.js +1 -0
  135. package/dist/chunks/mcp-DbgTDUt7.js +2 -0
  136. package/dist/chunks/memory-CzwTzihf.js +1 -0
  137. package/dist/chunks/modalContext-DDZdU1J8.js +1 -0
  138. package/dist/chunks/mode-Pan-Q2c4.js +2 -0
  139. package/dist/chunks/model-BYfmXKHf.js +1 -0
  140. package/dist/chunks/model-BwBE0Pt5.js +1 -0
  141. package/dist/chunks/modelOptions-DvNBapgG.js +1 -0
  142. package/dist/chunks/nativeInstaller-DnSNJWIi.js +1 -0
  143. package/dist/chunks/notifications-B0DTaYoy.js +1 -0
  144. package/dist/chunks/omit-Dl1Us_PY.js +1 -0
  145. package/dist/chunks/onChangeAppState-4KOJMN82.js +1 -0
  146. package/dist/chunks/openai-C_6C1_0N.js +10 -0
  147. package/dist/chunks/overlayContext-CMV7nYR9.js +1 -0
  148. package/dist/chunks/panel-D9fGQgln.js +1 -0
  149. package/dist/chunks/parser-BKAVMTyD.js +1 -0
  150. package/dist/chunks/{parser-eVu-cTRs.js → parser-D8slvrJP.js} +1 -1
  151. package/dist/chunks/partition-B504IgAa.js +1 -0
  152. package/dist/chunks/pasteStore-DNV1M5Xd.js +1 -0
  153. package/dist/chunks/permissions-CLFMhdRk.js +3 -0
  154. package/dist/chunks/pidLock-D9do1Afy.js +3 -0
  155. package/dist/chunks/plan-CQLnPLuE.js +1 -0
  156. package/dist/chunks/{platform-DMQxcm4K.js → platform-Dzff1WWw.js} +1 -1
  157. package/dist/chunks/plugin-BYdF7uob.js +17 -0
  158. package/dist/chunks/pluginAutoupdate-BJaAqwTH.js +1 -0
  159. package/dist/chunks/pluginBlocklist-DKKmOnWM.js +1 -0
  160. package/dist/chunks/pluginCliCommands-z8TtJMKH.js +1 -0
  161. package/dist/chunks/{pluginFlagging-DRA0m76J.js → pluginFlagging-DQP8tBi2.js} +1 -1
  162. package/dist/chunks/pluginOperations-BcfJCDco.js +2 -0
  163. package/dist/chunks/{pluginStartupCheck-BF1N4Lih.js → pluginStartupCheck-CfRvCrFg.js} +1 -1
  164. package/dist/chunks/pluginStartupCheck-Cq4PvULa.js +1 -0
  165. package/dist/chunks/plugins-CTM8jpOw.js +4 -0
  166. package/dist/chunks/policyLimits-a7ix6GnU.js +1 -0
  167. package/dist/chunks/poorMode-C11JEH3d.js +1 -0
  168. package/dist/chunks/{poorMode-CKQfWf3S.js → poorMode-J5SYJvoY.js} +1 -1
  169. package/dist/chunks/print-u6MzL5Cr.js +13 -0
  170. package/dist/chunks/processBashCommand-DIwrI2QC.js +1 -0
  171. package/dist/chunks/processSlashCommand-B-Gujpxm.js +5 -0
  172. package/dist/chunks/projectOnboardingState-CJycxw5P.js +1 -0
  173. package/dist/chunks/{prompt-8u06WVES.js → prompt-BGqgPgCU.js} +3 -3
  174. package/dist/chunks/prompt-BPJDGlx5.js +1 -0
  175. package/dist/chunks/prompt-DEdZzkEz.js +1 -0
  176. package/dist/chunks/promptEditor-CmQ9p4oe.js +4 -0
  177. package/dist/chunks/{protocolHandler-DzHVaPl3.js → protocolHandler-CJo9-PfZ.js} +2 -2
  178. package/dist/chunks/{proxy-BhIc7-mj.js → proxy-CB17QimU.js} +2 -2
  179. package/dist/chunks/reconciler-DSKLuOS7.js +1 -0
  180. package/dist/chunks/refresh-BbZFCNpn.js +1 -0
  181. package/dist/chunks/registerProtocol-CLIpzVwF.js +1 -0
  182. package/dist/chunks/reload-plugins-DjugL8jH.js +1 -0
  183. package/dist/chunks/rename-DOtCOtEr.js +1 -0
  184. package/dist/chunks/{renderOptions-D-aQZbzS.js → renderOptions-Zqfm2U1y.js} +1 -1
  185. package/dist/chunks/resume-BB4T4WIV.js +2 -0
  186. package/dist/chunks/ripgrep-BuzOTf1S.js +5 -0
  187. package/dist/chunks/ripgrep-CZ2CqaHb.js +1 -0
  188. package/dist/chunks/{runtimeObserver-DzesbvgI.js → runtimeObserver-CK_iZ6OB.js} +1 -1
  189. package/dist/chunks/{runtimeObserver-L6041elO.js → runtimeObserver-CpP0L9T9.js} +4 -4
  190. package/dist/chunks/sandbox-adapter-DhJJ6WOV.js +1 -0
  191. package/dist/chunks/sandbox-toggle-KOHYvbQT.js +1 -0
  192. package/dist/chunks/searchExtraTools-CdJghGkj.js +1 -0
  193. package/dist/chunks/select-C_KXmqbI.js +1 -0
  194. package/dist/chunks/sessionFileAccessHooks-D7KbWFp7.js +1 -0
  195. package/dist/chunks/sessionObserver-DB-sLv-X.js +1 -0
  196. package/dist/chunks/{sessionObserver-0D8xFoRK.js → sessionObserver-WOYv2n7C.js} +2 -2
  197. package/dist/chunks/sessionStorage-sgOAbDn7.js +1 -0
  198. package/dist/chunks/sessionTracing-yBre24PH.js +11 -0
  199. package/dist/chunks/settings-C-KNkvsM.js +1 -0
  200. package/dist/chunks/settings-DKN4xSpQ.js +24 -0
  201. package/dist/chunks/setup-CN_Pk7AR.js +3 -0
  202. package/dist/chunks/{shadowedRuleDetection-Cy9tsuKc.js → shadowedRuleDetection-Df-kZ_pK.js} +1 -1
  203. package/dist/chunks/{sideQuestion-Ds7Elgs4.js → sideQuestion-CMB8hfgX.js} +3 -3
  204. package/dist/chunks/sinks-BS17vtN0.js +1 -0
  205. package/dist/chunks/sinks-D1EjkHb4.js +1 -0
  206. package/dist/chunks/skillChangeDetector-CBKuGuEi.js +1 -0
  207. package/dist/chunks/{skillGapStore-BxCxKPev.js → skillGapStore-CfmlO6pb.js} +2 -2
  208. package/dist/chunks/{skillLifecycle-CfyNC3sW.js → skillLifecycle-BQ2LMfMx.js} +2 -2
  209. package/dist/chunks/{skillSearchPanel-CMNJFIEC.js → skillSearchPanel-BwYuwLFs.js} +4 -4
  210. package/dist/chunks/skills-BVHPQma0.js +1 -0
  211. package/dist/chunks/src-9vmGsuSI.js +1 -0
  212. package/dist/chunks/{src-CgZmCiiH.js → src-BacxF9BD.js} +2 -2
  213. package/dist/chunks/startupProfiler-B_U4QDtf.js +1 -0
  214. package/dist/chunks/startupProfiler-DTs9w9EN.js +3 -0
  215. package/dist/chunks/{state-D5D6QpTX.js → state-BowF111d.js} +1 -1
  216. package/dist/chunks/state-CGuyDES7.js +1 -0
  217. package/dist/chunks/staticRender-BVWx0IM1.js +1 -0
  218. package/dist/chunks/status-BurdTfyz.js +2 -0
  219. package/dist/chunks/status-DMq1An5h.js +1 -0
  220. package/dist/chunks/statusNoticeHelpers-X75JNlx5.js +1 -0
  221. package/dist/chunks/stringUtils-BQm3OfeJ.js +4 -0
  222. package/dist/chunks/{switcher-DQF5ZNal.js → switcher-Bq1Ct_Sn.js} +1 -1
  223. package/dist/chunks/switcher-DGD4ORVf.js +1 -0
  224. package/dist/chunks/{tasks-C8pb6ftc.js → tasks-0c8Uy04D.js} +1 -1
  225. package/dist/chunks/tempfile-CHO5wXsV.js +1 -0
  226. package/dist/chunks/{templateJobs-DJ4dcfcL.js → templateJobs-BdFzE9XG.js} +1 -1
  227. package/dist/chunks/terminalSetup-Cf_r6pwK.js +32 -0
  228. package/dist/chunks/{terminalSetup-7PdC4fV5.js → terminalSetup-D7J6bxcn.js} +1 -1
  229. package/dist/chunks/theme-Bby4fssR.js +1 -0
  230. package/dist/chunks/tipRegistry-CyRXWWTz.js +2 -0
  231. package/dist/chunks/{toolEventObserver-D2nk8ZbW.js → toolEventObserver-CzFZUIsM.js} +1 -1
  232. package/dist/chunks/toolPool-CnrZcprA.js +1 -0
  233. package/dist/chunks/types-zk5Ltv5q.js +81 -0
  234. package/dist/chunks/udsClient-ftP0yIpe.js +1 -0
  235. package/dist/chunks/use-select-navigation-DMaC_3iw.js +1 -0
  236. package/dist/chunks/useDoublePress-C9xxQzh1.js +1 -0
  237. package/dist/chunks/useExitOnCtrlCDWithKeybindings-CjW3gUOt.js +1 -0
  238. package/dist/chunks/useMainLoopModel-DWscpA9I.js +1 -0
  239. package/dist/chunks/useManagePlugins-CYXVcql2.js +1 -0
  240. package/dist/chunks/useMergedTools-DarmnCEw.js +1 -0
  241. package/dist/chunks/useSearchInput-C2JuUW3g.js +1 -0
  242. package/dist/chunks/useSettingsErrors-DutJBiKZ.js +1 -0
  243. package/dist/chunks/util-Bq5l7FF5.js +1 -0
  244. package/dist/chunks/validatePlugin-DIdEydz_.js +1 -0
  245. package/dist/chunks/{vim-BagKUX4j.js → vim-D8prM2IH.js} +1 -1
  246. package/dist/chunks/worktree-Caqt2WRZ.js +1 -0
  247. package/dist/cli.js +1 -1
  248. package/package.json +3 -21
  249. package/dist/chunks/AddWorkspaceDirectory-BYNvxNrD.js +0 -1
  250. package/dist/chunks/AgentsMdExternalIncludesDialog-BSSz86ER.js +0 -1
  251. package/dist/chunks/AgentsMdExternalIncludesDialog-CMEGV4Md.js +0 -1
  252. package/dist/chunks/App-W_9d1DjK.js +0 -1
  253. package/dist/chunks/ApproveApiKey-Bf1Rb8Ql.js +0 -1
  254. package/dist/chunks/ApproveApiKey-wpdvXpFr.js +0 -1
  255. package/dist/chunks/BackgroundTasksDialog-lGn1Wj1k.js +0 -2
  256. package/dist/chunks/BypassPermissionsModeDialog-CjVjyNf8.js +0 -1
  257. package/dist/chunks/DiffDialog-DCpchgp5.js +0 -6
  258. package/dist/chunks/Doctor-6SjW91rd.js +0 -1
  259. package/dist/chunks/Doctor-FPYTivHw.js +0 -3
  260. package/dist/chunks/ExitFlow-Dy8_1D8J.js +0 -2
  261. package/dist/chunks/Grove-Dd6rjs5P.js +0 -11
  262. package/dist/chunks/HybridTransport-CJVkWa2u.js +0 -2
  263. package/dist/chunks/InvalidConfigDialog-Bisj9ic_.js +0 -1
  264. package/dist/chunks/InvalidSettingsDialog-DyTPNRQR.js +0 -1
  265. package/dist/chunks/MCPConnectionManager-DfyoZaiu.js +0 -1
  266. package/dist/chunks/MCPToolListView-Dioupv8F.js +0 -1
  267. package/dist/chunks/McpParsingWarnings-BUlgpZAF.js +0 -1
  268. package/dist/chunks/MessageSelector-D8fylxPg.js +0 -3
  269. package/dist/chunks/Messages-BZDFMYBT.js +0 -10
  270. package/dist/chunks/Onboarding-BKLomZYo.js +0 -1
  271. package/dist/chunks/PermissionDialog-BPhvs5xH.js +0 -1
  272. package/dist/chunks/PressEnterToContinue-Dwoh6CaW.js +0 -1
  273. package/dist/chunks/PromptInputFooterSuggestions-DCum89fF.js +0 -1
  274. package/dist/chunks/PromptInputHelpMenu-DG2lRqis.js +0 -1
  275. package/dist/chunks/QueryEngine-CyGHpX7M.js +0 -1
  276. package/dist/chunks/REPL-BDsz8KIx.js +0 -1
  277. package/dist/chunks/REPL-CCBNfZfs.js +0 -128
  278. package/dist/chunks/RemoteSessionManager-BfsOv4K6.js +0 -2
  279. package/dist/chunks/ResumeConversation-pC8NLq0F.js +0 -1
  280. package/dist/chunks/SSETransport-B3K6eH9I.js +0 -2
  281. package/dist/chunks/SearchExtraToolsTool-DYoxHo9T.js +0 -1
  282. package/dist/chunks/Settings-CKaGmKg2.js +0 -2
  283. package/dist/chunks/TeleportProgress-CkgSp1cs.js +0 -1
  284. package/dist/chunks/TeleportRepoMismatchDialog-DdO_rECq.js +0 -1
  285. package/dist/chunks/TeleportResumeWrapper-BeG4N-2z.js +0 -1
  286. package/dist/chunks/ThemePicker-iD9ufy99.js +0 -1
  287. package/dist/chunks/TrustDialog-qO5OdQt8.js +0 -1
  288. package/dist/chunks/add-dir-C4eSVlZ6.js +0 -1
  289. package/dist/chunks/agents-D3APE_8d.js +0 -101
  290. package/dist/chunks/allErrors-BkgB7JNK.js +0 -1
  291. package/dist/chunks/api-BHBK9axp.js +0 -1
  292. package/dist/chunks/api-DyUWfg3a.js +0 -1
  293. package/dist/chunks/auth-0rn1U4Eq.js +0 -10
  294. package/dist/chunks/auth-BEoTPSgC.js +0 -1
  295. package/dist/chunks/auth-BPug7U_u.js +0 -1
  296. package/dist/chunks/backgroundHousekeeping-D7xAhUaE.js +0 -1
  297. package/dist/chunks/backgroundHousekeeping-km82qEh0.js +0 -17
  298. package/dist/chunks/banner-BkUdig-T.js +0 -2
  299. package/dist/chunks/bg-tGgpwpYx.js +0 -9
  300. package/dist/chunks/branch-CQ38cx5n.js +0 -2
  301. package/dist/chunks/bridgeConfig-C5L-7KaP.js +0 -1
  302. package/dist/chunks/bridgeConfig-CJMjDoaP.js +0 -1
  303. package/dist/chunks/bridgeMessaging-DVC3qj-C.js +0 -1
  304. package/dist/chunks/bridgePointer-DfTOjgtX.js +0 -1
  305. package/dist/chunks/bridgeStatusUtil-Cex6VowM.js +0 -1
  306. package/dist/chunks/btw-_P96ffHR.js +0 -1
  307. package/dist/chunks/bundledMode--fG1S62b.js +0 -1
  308. package/dist/chunks/caches-DH-q8Fjf.js +0 -1
  309. package/dist/chunks/caches-Dq0pJFDP.js +0 -1
  310. package/dist/chunks/capacityWake-BpP6c7x3.js +0 -3
  311. package/dist/chunks/ccrClient-DO563xlf.js +0 -1
  312. package/dist/chunks/claudeDesktop-DPc_SaVn.js +0 -1
  313. package/dist/chunks/cliLaunch-DDtwAolw.js +0 -1
  314. package/dist/chunks/client-9uHzAmFH.js +0 -1
  315. package/dist/chunks/client-BVal_QII.js +0 -1
  316. package/dist/chunks/client-C19cqYQS.js +0 -1
  317. package/dist/chunks/client-Dd7CKMRX.js +0 -1
  318. package/dist/chunks/commands-BkpqHY9F.js +0 -1
  319. package/dist/chunks/compact-DuVIvqMu.js +0 -2
  320. package/dist/chunks/config-DMP6-Ccr.js +0 -1
  321. package/dist/chunks/config-DRy1I12M.js +0 -3
  322. package/dist/chunks/config-e0Goy478.js +0 -1
  323. package/dist/chunks/context-DjgMzIfe.js +0 -1
  324. package/dist/chunks/context-noninteractive-DV7bIJCm.js +0 -1
  325. package/dist/chunks/controlMessageCompat-IFu4Gc1y.js +0 -1
  326. package/dist/chunks/conversation-BBOE_EoE.js +0 -1
  327. package/dist/chunks/conversation-WxH5pb2z.js +0 -1
  328. package/dist/chunks/createSSHSession-LVGVXHXL.js +0 -5
  329. package/dist/chunks/createSession-BUzna9-E.js +0 -1
  330. package/dist/chunks/createSession-Dgwxk1WA.js +0 -1
  331. package/dist/chunks/crossProjectResume-6B2NYy8a.js +0 -40
  332. package/dist/chunks/cwd-DLK3znO7.js +0 -1
  333. package/dist/chunks/cwd-Nh5IZNKO.js +0 -1
  334. package/dist/chunks/debugUtils-DXBRbwCE.js +0 -1
  335. package/dist/chunks/detached-Biz-xhu0.js +0 -4
  336. package/dist/chunks/detectRepository-CDOJ-M7h.js +0 -1
  337. package/dist/chunks/detectRepository-Cv9-k6dg.js +0 -1
  338. package/dist/chunks/directoryCompletion-BDGcGDuv.js +0 -1
  339. package/dist/chunks/doctor-BhUmhHQU.js +0 -1
  340. package/dist/chunks/entry-B-Y-AYeK.js +0 -13
  341. package/dist/chunks/esm-BYnFh4pG.js +0 -1
  342. package/dist/chunks/esm-Bx6rTxIs.js +0 -1
  343. package/dist/chunks/esm-C367Cyo-.js +0 -1
  344. package/dist/chunks/esm-CXM9jqO_.js +0 -1
  345. package/dist/chunks/esm-CXczu_-W.js +0 -1
  346. package/dist/chunks/esm-CXt5K8Xt.js +0 -1
  347. package/dist/chunks/esm-Cb-L4oAk.js +0 -1
  348. package/dist/chunks/esm-CvHtYRrr.js +0 -1
  349. package/dist/chunks/esm-DhRjocaU.js +0 -1
  350. package/dist/chunks/esm-DklLYEuz.js +0 -1
  351. package/dist/chunks/esm-IYgGg4wR.js +0 -1
  352. package/dist/chunks/esm-lyfry1WB.js +0 -10
  353. package/dist/chunks/execFileNoThrow-Bmb5HEFz.js +0 -34
  354. package/dist/chunks/execSyncWrapper-C3ZFV9od.js +0 -1
  355. package/dist/chunks/exit-CW2eqUrR.js +0 -1
  356. package/dist/chunks/extraUsage-CkTon7ib.js +0 -1
  357. package/dist/chunks/extractMemories-CfmbvayQ.js +0 -1
  358. package/dist/chunks/fast-ByahC7Gw.js +0 -1
  359. package/dist/chunks/fast-xtIP4u4y.js +0 -1
  360. package/dist/chunks/fetchModelList-D9aePIPW.js +0 -1
  361. package/dist/chunks/fetchModelList-Dy-x4h3G.js +0 -1
  362. package/dist/chunks/fileSuggestions-CFkJktgc.js +0 -3
  363. package/dist/chunks/firstPartyEventLogger-Bt9iG9xk.js +0 -1
  364. package/dist/chunks/firstPartyEventLogger-DqGSujCz.js +0 -3
  365. package/dist/chunks/flushGate-BjKW7PFC.js +0 -1
  366. package/dist/chunks/fpsMetrics-Dk_pnSHJ.js +0 -1
  367. package/dist/chunks/gemini-NnmxBoEp.js +0 -1
  368. package/dist/chunks/generateSessionName-EpqGW-T2.js +0 -1
  369. package/dist/chunks/git-By_J4XJL.js +0 -5
  370. package/dist/chunks/git-zJCasBa6.js +0 -1
  371. package/dist/chunks/githubRepoPathMapping-CzgPGOHQ.js +0 -1
  372. package/dist/chunks/goal-DbS8yJfB.js +0 -3
  373. package/dist/chunks/grok-BxZ4vTDw.js +0 -1
  374. package/dist/chunks/grove-CYE1Cfcz.js +0 -7
  375. package/dist/chunks/hash-Tu-My5Vp.js +0 -1
  376. package/dist/chunks/help-DatnwM25.js +0 -1
  377. package/dist/chunks/hooks-DjbqtbUV.js +0 -1
  378. package/dist/chunks/initReplBridge-BEZW5PEY.js +0 -1
  379. package/dist/chunks/install-DJukI-kL.js +0 -1
  380. package/dist/chunks/instrumentation-2HH15DPu.js +0 -21
  381. package/dist/chunks/jwtUtils-C_LG1txt.js +0 -1
  382. package/dist/chunks/keybindings-C9l5il16.js +0 -1
  383. package/dist/chunks/launchLocalMemory-BfGenqj1.js +0 -3
  384. package/dist/chunks/launchOnboarding-DjMmXeQE.js +0 -8
  385. package/dist/chunks/lazySchema-DULtBUCI.js +0 -65
  386. package/dist/chunks/lib-BlVGipXx.js +0 -14
  387. package/dist/chunks/loadAgentsDir-DcI-8FQF.js +0 -1
  388. package/dist/chunks/loadPluginHooks-CGgpcyEC.js +0 -1
  389. package/dist/chunks/localSearch-CTTwYTU1.js +0 -1
  390. package/dist/chunks/log-CZ7ploQm.js +0 -1
  391. package/dist/chunks/logoUtils-CbIqOFrX.js +0 -1
  392. package/dist/chunks/main-Blm02_Js.js +0 -31
  393. package/dist/chunks/main-bJXadFi0.js +0 -356
  394. package/dist/chunks/managedEnv-CUsdYhAI.js +0 -1
  395. package/dist/chunks/managedEnv-DXeaUDSK.js +0 -1
  396. package/dist/chunks/mappers-_B-s9fNz.js +0 -1
  397. package/dist/chunks/mcp-BbbYzWpy.js +0 -6
  398. package/dist/chunks/mcp-D91sH9a8.js +0 -1
  399. package/dist/chunks/mcp-Dx-zgUgu.js +0 -2
  400. package/dist/chunks/memoize-CumjjK2Q.js +0 -1
  401. package/dist/chunks/memory-BeL7ui9m.js +0 -1
  402. package/dist/chunks/modalContext-wY9CeN4G.js +0 -1
  403. package/dist/chunks/mode-D695kgLI.js +0 -2
  404. package/dist/chunks/model-DX0TtzqX.js +0 -1
  405. package/dist/chunks/model-Do0f476p.js +0 -1
  406. package/dist/chunks/model-DpcM8dz5.js +0 -1
  407. package/dist/chunks/modelOptions-B3nis9cC.js +0 -1
  408. package/dist/chunks/nativeInstaller-CymO8TNe.js +0 -1
  409. package/dist/chunks/oauth-D38aRTUb.js +0 -1
  410. package/dist/chunks/oauth-U649LV5H.js +0 -1
  411. package/dist/chunks/omit-DO61BHZu.js +0 -1
  412. package/dist/chunks/onChangeAppState-vKml_lit.js +0 -1
  413. package/dist/chunks/openai-DdupGVdC.js +0 -10
  414. package/dist/chunks/panel-CVd1dzYl.js +0 -1
  415. package/dist/chunks/parser-Cq9X7HMP.js +0 -1
  416. package/dist/chunks/partition-BivH9MBJ.js +0 -1
  417. package/dist/chunks/permissions-C9iqR4_N.js +0 -3
  418. package/dist/chunks/pidLock-DiKz5Tza.js +0 -3
  419. package/dist/chunks/plan-KDN5IGWY.js +0 -1
  420. package/dist/chunks/plugin-D0rzUb8E.js +0 -17
  421. package/dist/chunks/pluginAutoupdate-C2xTKLR_.js +0 -1
  422. package/dist/chunks/pluginBlocklist-xdiUmUpt.js +0 -1
  423. package/dist/chunks/pluginCliCommands-CIDDvVN7.js +0 -1
  424. package/dist/chunks/pluginOperations-BEYsarAn.js +0 -2
  425. package/dist/chunks/pluginStartupCheck-DVkI4pqo.js +0 -1
  426. package/dist/chunks/plugins-CWWU4BKs.js +0 -4
  427. package/dist/chunks/pollConfig-2nFzv6Hy.js +0 -1
  428. package/dist/chunks/poorMode-BTIe8W_H.js +0 -1
  429. package/dist/chunks/print-B5H2xbBS.js +0 -14
  430. package/dist/chunks/processBashCommand-EQ9EWaRV.js +0 -1
  431. package/dist/chunks/processSlashCommand-C4PKNyFT.js +0 -5
  432. package/dist/chunks/prompt-B9sDzLPK.js +0 -1
  433. package/dist/chunks/prompt-WsoTRhoh.js +0 -1
  434. package/dist/chunks/promptEditor-Cr4w-4Bz.js +0 -4
  435. package/dist/chunks/rcDebugLog-DSchf3Hs.js +0 -1
  436. package/dist/chunks/reconciler-RIKmaPg7.js +0 -1
  437. package/dist/chunks/refresh-CCSCAjgz.js +0 -1
  438. package/dist/chunks/registerProtocol-C0IlPEoa.js +0 -1
  439. package/dist/chunks/reload-plugins-DC-tbXVv.js +0 -1
  440. package/dist/chunks/remoteBridgeCore-NGTnhQgw.js +0 -1
  441. package/dist/chunks/remoteManagedSettings-BoOYHzYP.js +0 -1
  442. package/dist/chunks/rename-DS1AmW-F.js +0 -1
  443. package/dist/chunks/resume-Cf5PSoPw.js +0 -2
  444. package/dist/chunks/ripgrep-C3jtZL7k.js +0 -5
  445. package/dist/chunks/ripgrep-CBUbn6Po.js +0 -1
  446. package/dist/chunks/sandbox-adapter-Z4Phj31K.js +0 -1
  447. package/dist/chunks/sandbox-toggle-COZE8Lo4.js +0 -1
  448. package/dist/chunks/searchExtraTools-CvkRbL2m.js +0 -1
  449. package/dist/chunks/session-BvA99K4j.js +0 -2
  450. package/dist/chunks/sessionFileAccessHooks-6XfAf6ke.js +0 -1
  451. package/dist/chunks/sessionIdCompat-Dgp6PW_1.js +0 -1
  452. package/dist/chunks/sessionObserver-CRWUBJEY.js +0 -1
  453. package/dist/chunks/sessionState-CQhbGfmh.js +0 -11
  454. package/dist/chunks/sessionStorage-DqEuxDlb.js +0 -1
  455. package/dist/chunks/sessionStoragePortable-x0Yn02-G.js +0 -3
  456. package/dist/chunks/sessionTracing-BoOZsXU2.js +0 -11
  457. package/dist/chunks/settings-3xZ0fsvE.js +0 -19
  458. package/dist/chunks/settings-Crx1cI1u.js +0 -1
  459. package/dist/chunks/settingsSync-rkWmClKS.js +0 -1
  460. package/dist/chunks/setup-D8L275fT.js +0 -3
  461. package/dist/chunks/shellQuote-Ddgr1vif.js +0 -4
  462. package/dist/chunks/sinks-BXX72cbf.js +0 -1
  463. package/dist/chunks/sinks-DMp6uEzM.js +0 -1
  464. package/dist/chunks/skillChangeDetector-CtithJ4a.js +0 -1
  465. package/dist/chunks/skills-DXMk-498.js +0 -1
  466. package/dist/chunks/src-D3yIF9I42.js +0 -1
  467. package/dist/chunks/src-DQOX_xI1.js +0 -1
  468. package/dist/chunks/src-Dt5IJd3C.js +0 -1
  469. package/dist/chunks/src-Dvp6-vB7.js +0 -19
  470. package/dist/chunks/src-PM8NIIu_.js +0 -1
  471. package/dist/chunks/startupProfiler-CbzxVmbv.js +0 -3
  472. package/dist/chunks/startupProfiler-uHetQush.js +0 -1
  473. package/dist/chunks/state-BStOuCh4.js +0 -1
  474. package/dist/chunks/staticRender-D9AbnQFr.js +0 -1
  475. package/dist/chunks/stats-Ce15gc3E.js +0 -1
  476. package/dist/chunks/status-CFrLuGbf.js +0 -2
  477. package/dist/chunks/status-D5OCkMZG.js +0 -1
  478. package/dist/chunks/statusNoticeHelpers-CZoOse-_.js +0 -1
  479. package/dist/chunks/stringUtils-CKD8qDqx.js +0 -4
  480. package/dist/chunks/subprocessEnv-CNBOhlDV.js +0 -1
  481. package/dist/chunks/subprocessEnv-DtBCqQIo.js +0 -1
  482. package/dist/chunks/switcher-AiMcRzoi.js +0 -1
  483. package/dist/chunks/syncCache-qWJ_VfBo.js +0 -1
  484. package/dist/chunks/teleport-Bi_1VFIZ.js +0 -1
  485. package/dist/chunks/terminalSetup-kWdZRKWq.js +0 -32
  486. package/dist/chunks/theme-CEKOCSLw.js +0 -1
  487. package/dist/chunks/tmux-CpGd0Aca.js +0 -1
  488. package/dist/chunks/toolPool-Df5iUqJ-.js +0 -1
  489. package/dist/chunks/trustedDevice-CB6rNzl-.js +0 -1
  490. package/dist/chunks/trustedDevice-DXGePUAC.js +0 -1
  491. package/dist/chunks/types-APu4OCXJ.js +0 -17
  492. package/dist/chunks/udsClient-U7MEfYj7.js +0 -1
  493. package/dist/chunks/upstreamproxy-CTOuotLO.js +0 -10
  494. package/dist/chunks/useExitOnCtrlCDWithKeybindings-Bw0mlTT9.js +0 -1
  495. package/dist/chunks/useMainLoopModel-CIG2cjS2.js +0 -1
  496. package/dist/chunks/useManagePlugins-MSHw-qHx.js +0 -1
  497. package/dist/chunks/useMergedTools-Bb-INJa2.js +0 -1
  498. package/dist/chunks/useSearchInput-QL_VtdJD.js +0 -1
  499. package/dist/chunks/useSettingsErrors-Dvi6zLCr.js +0 -1
  500. package/dist/chunks/userAgent-i-oGzf40.js +0 -1
  501. package/dist/chunks/util-CLQvtXuD.js +0 -1
  502. package/dist/chunks/validatePlugin-1mTZ3TJR.js +0 -1
  503. package/dist/chunks/which-BxQ1hpjp.js +0 -1
  504. package/dist/chunks/windowsPaths-BdhjMYTm.js +0 -1
  505. package/dist/chunks/windowsPaths-DtGZ83kH.js +0 -1
  506. package/dist/chunks/workSecret-CaM2yIJD.js +0 -1
  507. package/dist/chunks/workerRegistry-BjxoZ12l.js +0 -2
  508. package/dist/chunks/worktree-DpksgxdF.js +0 -1
  509. /package/dist/chunks/{src-DL3w8VPk2.js → src-DL3w8VPk.js} +0 -0
@@ -0,0 +1 @@
1
+ import{n as e,r as t}from"./rolldown-runtime-DaDcL9Zw.js";import{n,t as r}from"./defineProperty-C-QyHrDq.js";import{A as i,M as a,O as o,S as s,i as c,l,n as u,o as ee,s as d,v as te}from"./esm-lWlUmoUA.js";import{inspect as ne}from"util";function re(e){return e.setValue(f,!0)}function ie(e){return e.deleteValue(f)}function ae(e){return e.getValue(f)===!0}var f,p=e((()=>{u(),f=o(`OpenTelemetry SDK Context Key SUPPRESS_TRACING`)})),m,oe,se=e((()=>{m=`baggage`,oe=4096}));function ce(e){return e.reduce((e,t)=>{let n=`${e}${e===``?``:`,`}${t}`;return n.length>8192?e:n},``)}function le(e){return e.getAllEntries().map(([e,t])=>{let n=`${encodeURIComponent(e)}=${encodeURIComponent(t.value)}`;return t.metadata!==void 0&&(n+=`;`+t.metadata.toString()),n})}function ue(e){if(!e)return;let t=e.indexOf(`;`),n=t===-1?e:e.substring(0,t),r=n.indexOf(`=`);if(r<=0)return;let a=n.substring(0,r).trim(),o=n.substring(r+1).trim();if(!a||!o)return;let s,c;try{s=decodeURIComponent(a),c=decodeURIComponent(o)}catch{return}let l;return t!==-1&&t<e.length-1&&(l=i(e.substring(t+1))),{key:s,value:c,metadata:l}}function de(e){let t={};return typeof e==`string`&&e.length>0&&e.split(`,`).forEach(e=>{let n=ue(e);n!==void 0&&n.value.length>0&&(t[n.key]=n.value)}),t}var fe=e((()=>{u(),se()})),pe,me=e((()=>{u(),p(),se(),fe(),pe=class{inject(e,t,n){let r=ee.getBaggage(e);if(!r||ae(e))return;let i=ce(le(r).filter(e=>e.length<=oe).slice(0,180));i.length>0&&n.set(t,m,i)}extract(e,t,n){let r=n.get(t,m),i=Array.isArray(r)?r.join(`,`):r;if(!i)return e;let a={};return i.length===0||(i.split(`,`).forEach(e=>{let t=ue(e);if(t){let e={value:t.value};t.metadata&&(e.metadata=t.metadata),a[t.key]=e}}),Object.entries(a).length===0)?e:ee.setBaggage(e,ee.createBaggage(a))}fields(){return[m]}}})),he,ge=e((()=>{n(),he=class{constructor(e,t){r(this,`_monotonicClock`,void 0),r(this,`_epochMillis`,void 0),r(this,`_performanceMillis`,void 0),this._monotonicClock=t,this._epochMillis=e.now(),this._performanceMillis=t.now()}now(){let e=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+e}}}));function _e(e){let t={};if(typeof e!=`object`||!e)return t;for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;if(!ve(n)){d.warn(`Invalid attribute key: ${n}`);continue}let r=e[n];if(!ye(r)){d.warn(`Invalid attribute value set for key: ${n}`);continue}Array.isArray(r)?t[n]=r.slice():t[n]=r}return t}function ve(e){return typeof e==`string`&&e!==``}function ye(e){return e==null?!0:Array.isArray(e)?be(e):xe(typeof e)}function be(e){let t;for(let n of e){if(n==null)continue;let e=typeof n;if(e!==t){if(!t){if(xe(e)){t=e;continue}return!1}return!1}}return!0}function xe(e){switch(e){case`number`:case`boolean`:case`string`:return!0}return!1}var Se=e((()=>{u()}));function Ce(){return e=>{d.error(we(e))}}function we(e){return typeof e==`string`?e:JSON.stringify(Te(e))}function Te(e){let t={},n=e;for(;n!==null;)Object.getOwnPropertyNames(n).forEach(e=>{if(t[e])return;let r=n[e];r&&(t[e]=String(r))}),n=Object.getPrototypeOf(n);return t}var Ee=e((()=>{u()}));function De(e){ke=e}function Oe(e){try{ke(e)}catch{}}var ke,Ae=e((()=>{Ee(),ke=Ce()}));function je(e){let t=process.env[e];if(t==null||t.trim()===``)return;let n=Number(t);if(isNaN(n)){d.warn(`Unknown value ${ne(t)} for ${e}, expected a number, using defaults`);return}return n}function Me(e){let t=process.env[e];if(!(t==null||t.trim()===``))return t}function Ne(e){let t=process.env[e]?.trim().toLowerCase();return t==null||t===``?!1:t===`true`?!0:(t===`false`||d.warn(`Unknown value ${ne(t)} for ${e}, expected 'true' or 'false', falling back to 'false' (default)`),!1)}function Pe(e){return Me(e)?.split(`,`).map(e=>e.trim()).filter(e=>e!==``)}var Fe=e((()=>{u()})),Ie,Le=e((()=>{Ie=globalThis})),Re,ze=e((()=>{Re=`2.7.0`}));function h(e){let t={},n=e.length;for(let r=0;r<n;r++){let n=e[r];n&&(t[String(n).toUpperCase().replace(/[-.]/g,`_`)]=n)}return t}var Be=e((()=>{})),Ve,He,Ue,We,Ge,Ke,qe,Je,Ye,Xe,Ze,Qe,$e,g,_,v,y,b,x,S,C,w,T,E,D,O,k,A,j,M,N,P,F,I,et,tt,nt,rt,it,at,ot,st,ct,lt,ut,dt,ft,pt,mt,ht,gt,_t,vt,yt,bt,xt,St,Ct,wt,Tt,Et,Dt,Ot,kt,At,jt,Mt,Nt,Pt,Ft,It,Lt,Rt,zt,Bt,Vt,Ht,Ut,Wt,Gt,Kt,qt,Jt,Yt,Xt,Zt,Qt,$t,en,tn,nn,rn,an,on,sn,cn,ln,un,dn,fn,pn,mn,hn,gn,_n,vn,yn,bn,xn,Sn,Cn,wn,Tn,En,Dn,On,kn,An,jn,Mn,Nn,Pn,Fn,In,Ln,Rn,zn,Bn,Vn,Hn,Un,Wn,Gn,Kn,qn,Jn,Yn,Xn,Zn,Qn,$n,er,tr,nr,rr,ir,ar,or,sr,cr,lr,ur,dr,fr,pr,mr,hr,gr,_r,vr,yr,br,xr,Sr,Cr,wr,Tr,Er,Dr,Or,kr,Ar,jr,Mr,Nr,Pr,Fr,Ir,Lr,Rr,zr,Br,Vr,Hr,Ur,Wr,Gr,Kr,qr,Jr,Yr,Xr,Zr,Qr,$r,ei,ti,ni,ri,ii,ai,oi,si,ci,li,ui,di,fi,pi,mi,hi,gi,_i,vi,yi,bi,xi,Si,Ci,wi,Ti,Ei,Di,Oi,ki,Ai,ji,Mi,Ni,Pi,Fi,Ii,Li,Ri,zi,Bi,Vi,Hi,Ui,Wi,Gi,Ki,qi,Ji,Yi,Xi,Zi,Qi,$i,ea,ta,na,ra,ia,aa,oa,sa,ca,la,ua,da,fa,pa,ma,ha,ga,_a,va,ya,ba,xa,Sa,Ca,wa,Ta,Ea,Da,Oa,ka,Aa,ja,Ma,Na,Pa,Fa,Ia,La,Ra,za,Ba,Va,Ha,Ua,Wa,Ga,Ka,qa,Ja,Ya,Xa,Za,Qa,$a,eo,to,no,ro,io,ao,oo,so,co,lo,uo,fo,po,mo,ho,go,_o,vo,yo,bo,xo,So,Co,wo,To,Eo,Do,Oo,ko,Ao,jo,Mo,No,Po,Fo,Io,Lo,Ro,zo,Bo,Vo,Ho,Uo,Wo,Go,Ko,qo,Jo,Yo,Xo,Zo,Qo,$o,es,ts,ns,rs,is,as,os,ss,cs,ls,us,ds,fs,ps,ms,hs,gs,_s,vs,ys,bs,xs,Ss,Cs,ws,Ts,Es,Ds,Os,ks,As,js,Ms,Ns,Ps,Fs,Is,Ls,Rs,zs,Bs,Vs,Hs,Us,Ws,Gs,Ks,qs,Js,Ys,Xs,Zs,Qs,$s,ec,tc,nc,rc,ic,ac,oc,sc,cc,lc,uc,dc,fc,pc,mc,L,hc,gc,_c,vc,yc,bc,xc,Sc,Cc,wc,Tc,Ec,Dc,Oc,kc,Ac,jc,Mc,Nc,Pc,Fc,Ic,Lc,Rc,zc,Bc,Vc,Hc,Uc,Wc,Gc,Kc,qc,Jc,Yc,Xc,Zc,Qc,$c,el,tl,nl,rl,il,al,ol,sl,cl,ll,ul,dl,fl,pl,ml,hl,gl,_l,vl,yl,bl,xl,Sl,Cl,wl,Tl,El,Dl,Ol,kl,Al,jl,Ml,Nl,Pl=e((()=>{Be(),Ve=`aws.lambda.invoked_arn`,He=`db.system`,Ue=`db.connection_string`,We=`db.user`,Ge=`db.jdbc.driver_classname`,Ke=`db.name`,qe=`db.statement`,Je=`db.operation`,Ye=`db.mssql.instance_name`,Xe=`db.cassandra.keyspace`,Ze=`db.cassandra.page_size`,Qe=`db.cassandra.consistency_level`,$e=`db.cassandra.table`,g=`db.cassandra.idempotence`,_=`db.cassandra.speculative_execution_count`,v=`db.cassandra.coordinator.id`,y=`db.cassandra.coordinator.dc`,b=`db.hbase.namespace`,x=`db.redis.database_index`,S=`db.mongodb.collection`,C=`db.sql.table`,w=`exception.type`,T=`exception.message`,E=`exception.stacktrace`,D=`exception.escaped`,O=`faas.trigger`,k=`faas.execution`,A=`faas.document.collection`,j=`faas.document.operation`,M=`faas.document.time`,N=`faas.document.name`,P=`faas.time`,F=`faas.cron`,I=`faas.coldstart`,et=`faas.invoked_name`,tt=`faas.invoked_provider`,nt=`faas.invoked_region`,rt=`net.transport`,it=`net.peer.ip`,at=`net.peer.port`,ot=`net.peer.name`,st=`net.host.ip`,ct=`net.host.port`,lt=`net.host.name`,ut=`net.host.connection.type`,dt=`net.host.connection.subtype`,ft=`net.host.carrier.name`,pt=`net.host.carrier.mcc`,mt=`net.host.carrier.mnc`,ht=`net.host.carrier.icc`,gt=`peer.service`,_t=`enduser.id`,vt=`enduser.role`,yt=`enduser.scope`,bt=`thread.id`,xt=`thread.name`,St=`code.function`,Ct=`code.namespace`,wt=`code.filepath`,Tt=`code.lineno`,Et=`http.method`,Dt=`http.url`,Ot=`http.target`,kt=`http.host`,At=`http.scheme`,jt=`http.status_code`,Mt=`http.flavor`,Nt=`http.user_agent`,Pt=`http.request_content_length`,Ft=`http.request_content_length_uncompressed`,It=`http.response_content_length`,Lt=`http.response_content_length_uncompressed`,Rt=`http.server_name`,zt=`http.route`,Bt=`http.client_ip`,Vt=`aws.dynamodb.table_names`,Ht=`aws.dynamodb.consumed_capacity`,Ut=`aws.dynamodb.item_collection_metrics`,Wt=`aws.dynamodb.provisioned_read_capacity`,Gt=`aws.dynamodb.provisioned_write_capacity`,Kt=`aws.dynamodb.consistent_read`,qt=`aws.dynamodb.projection`,Jt=`aws.dynamodb.limit`,Yt=`aws.dynamodb.attributes_to_get`,Xt=`aws.dynamodb.index_name`,Zt=`aws.dynamodb.select`,Qt=`aws.dynamodb.global_secondary_indexes`,$t=`aws.dynamodb.local_secondary_indexes`,en=`aws.dynamodb.exclusive_start_table`,tn=`aws.dynamodb.table_count`,nn=`aws.dynamodb.scan_forward`,rn=`aws.dynamodb.segment`,an=`aws.dynamodb.total_segments`,on=`aws.dynamodb.count`,sn=`aws.dynamodb.scanned_count`,cn=`aws.dynamodb.attribute_definitions`,ln=`aws.dynamodb.global_secondary_index_updates`,un=`messaging.system`,dn=`messaging.destination`,fn=`messaging.destination_kind`,pn=`messaging.temp_destination`,mn=`messaging.protocol`,hn=`messaging.protocol_version`,gn=`messaging.url`,_n=`messaging.message_id`,vn=`messaging.conversation_id`,yn=`messaging.message_payload_size_bytes`,bn=`messaging.message_payload_compressed_size_bytes`,xn=`messaging.operation`,Sn=`messaging.consumer_id`,Cn=`messaging.rabbitmq.routing_key`,wn=`messaging.kafka.message_key`,Tn=`messaging.kafka.consumer_group`,En=`messaging.kafka.client_id`,Dn=`messaging.kafka.partition`,On=`messaging.kafka.tombstone`,kn=`rpc.system`,An=`rpc.service`,jn=`rpc.method`,Mn=`rpc.grpc.status_code`,Nn=`rpc.jsonrpc.version`,Pn=`rpc.jsonrpc.request_id`,Fn=`rpc.jsonrpc.error_code`,In=`rpc.jsonrpc.error_message`,Ln=`message.type`,Rn=`message.id`,zn=`message.compressed_size`,Bn=`message.uncompressed_size`,Vn=Ve,Hn=He,Un=Ue,Wn=We,Gn=Ge,Kn=Ke,qn=qe,Jn=Je,Yn=Ye,Xn=Xe,Zn=Ze,Qn=Qe,$n=$e,er=g,tr=_,nr=v,rr=y,ir=b,ar=x,or=S,sr=C,cr=w,lr=T,ur=E,dr=D,fr=O,pr=k,mr=A,hr=j,gr=M,_r=N,vr=P,yr=F,br=I,xr=et,Sr=tt,Cr=nt,wr=rt,Tr=it,Er=at,Dr=ot,Or=st,kr=ct,Ar=lt,jr=ut,Mr=dt,Nr=ft,Pr=pt,Fr=mt,Ir=ht,Lr=gt,Rr=_t,zr=vt,Br=yt,Vr=bt,Hr=xt,Ur=St,Wr=Ct,Gr=wt,Kr=Tt,qr=Et,Jr=Dt,Yr=Ot,Xr=kt,Zr=At,Qr=jt,$r=Mt,ei=Nt,ti=Pt,ni=Ft,ri=It,ii=Lt,ai=Rt,oi=zt,si=Bt,ci=Vt,li=Ht,ui=Ut,di=Wt,fi=Gt,pi=Kt,mi=qt,hi=Jt,gi=Yt,_i=Xt,vi=Zt,yi=Qt,bi=$t,xi=en,Si=tn,Ci=nn,wi=rn,Ti=an,Ei=on,Di=sn,Oi=cn,ki=ln,Ai=un,ji=dn,Mi=fn,Ni=pn,Pi=mn,Fi=hn,Ii=gn,Li=_n,Ri=vn,zi=yn,Bi=bn,Vi=xn,Hi=Sn,Ui=Cn,Wi=wn,Gi=Tn,Ki=En,qi=Dn,Ji=On,Yi=kn,Xi=An,Zi=jn,Qi=Mn,$i=Nn,ea=Pn,ta=Fn,na=In,ra=Ln,ia=Rn,aa=zn,oa=Bn,sa=h([Ve,He,Ue,We,Ge,Ke,qe,Je,Ye,Xe,Ze,Qe,$e,g,_,v,y,b,x,S,C,w,T,E,D,O,k,A,j,M,N,P,F,I,et,tt,nt,rt,it,at,ot,st,ct,lt,ut,dt,ft,pt,mt,ht,gt,_t,vt,yt,bt,xt,St,Ct,wt,Tt,Et,Dt,Ot,kt,At,jt,Mt,Nt,Pt,Ft,It,Lt,Rt,zt,Bt,Vt,Ht,Ut,Wt,Gt,Kt,qt,Jt,Yt,Xt,Zt,Qt,$t,en,tn,nn,rn,an,on,sn,cn,ln,un,dn,fn,pn,mn,hn,gn,_n,vn,yn,bn,xn,Sn,Cn,wn,Tn,En,Dn,On,kn,An,jn,Mn,Nn,Pn,Fn,In,Ln,Rn,zn,Bn]),ca=`other_sql`,la=`mssql`,ua=`mysql`,da=`oracle`,fa=`db2`,pa=`postgresql`,ma=`redshift`,ha=`hive`,ga=`cloudscape`,_a=`hsqldb`,va=`progress`,ya=`maxdb`,ba=`hanadb`,xa=`ingres`,Sa=`firstsql`,Ca=`edb`,wa=`cache`,Ta=`adabas`,Ea=`firebird`,Da=`derby`,Oa=`filemaker`,ka=`informix`,Aa=`instantdb`,ja=`interbase`,Ma=`mariadb`,Na=`netezza`,Pa=`pervasive`,Fa=`pointbase`,Ia=`sqlite`,La=`sybase`,Ra=`teradata`,za=`vertica`,Ba=`h2`,Va=`coldfusion`,Ha=`cassandra`,Ua=`hbase`,Wa=`mongodb`,Ga=`redis`,Ka=`couchbase`,qa=`couchdb`,Ja=`cosmosdb`,Ya=`dynamodb`,Xa=`neo4j`,Za=`geode`,Qa=`elasticsearch`,$a=`memcached`,eo=`cockroachdb`,to=ca,no=la,ro=ua,io=da,ao=pa,oo=ma,so=ha,co=ga,lo=_a,uo=va,fo=ya,po=ba,mo=xa,ho=Sa,go=wa,_o=Ta,vo=Ea,yo=Da,bo=Oa,xo=ka,So=Aa,Co=ja,wo=Ma,To=Na,Eo=Pa,Do=Fa,Oo=Ia,ko=La,Ao=Ra,jo=za,Mo=Va,No=Ha,Po=Ua,Fo=Wa,Io=Ga,Lo=Ka,Ro=qa,zo=Ja,Bo=Ya,Vo=Xa,Ho=Za,Uo=Qa,Wo=$a,Go=eo,Ko=h([ca,la,ua,da,fa,pa,ma,ha,ga,_a,va,ya,ba,xa,Sa,Ca,wa,Ta,Ea,Da,Oa,ka,Aa,ja,Ma,Na,Pa,Fa,Ia,La,Ra,za,Ba,Va,Ha,Ua,Wa,Ga,Ka,qa,Ja,Ya,Xa,Za,Qa,$a,eo]),qo=`all`,Jo=`each_quorum`,Yo=`quorum`,Xo=`local_quorum`,Zo=`one`,Qo=`two`,$o=`three`,es=`local_one`,ts=`any`,ns=`serial`,rs=`local_serial`,is=Jo,as=Yo,os=Xo,ss=$o,cs=es,ls=ns,us=rs,ds=h([qo,Jo,Yo,Xo,Zo,Qo,$o,es,ts,ns,rs]),fs=`datasource`,ps=`http`,ms=`pubsub`,hs=`timer`,gs=`other`,_s=fs,vs=ps,ys=ms,bs=hs,xs=gs,Ss=h([fs,ps,ms,hs,gs]),Cs=`insert`,ws=`edit`,Ts=`delete`,Es=Cs,Ds=ws,Os=Ts,ks=h([Cs,ws,Ts]),As=`alibaba_cloud`,js=`aws`,Ms=`azure`,Ns=`gcp`,Ps=As,Fs=Ms,Is=h([As,js,Ms,Ns]),Ls=`ip_tcp`,Rs=`ip_udp`,zs=`ip`,Bs=`unix`,Vs=`pipe`,Hs=`inproc`,Us=`other`,Ws=Ls,Gs=Rs,Ks=Bs,qs=Vs,Js=Hs,Ys=Us,Xs=h([Ls,Rs,zs,Bs,Vs,Hs,Us]),Zs=`wifi`,Qs=`wired`,$s=`cell`,ec=`unavailable`,tc=`unknown`,nc=Zs,rc=Qs,ic=$s,ac=ec,oc=tc,sc=h([Zs,Qs,$s,ec,tc]),cc=`gprs`,lc=`edge`,uc=`umts`,dc=`cdma`,fc=`evdo_0`,pc=`evdo_a`,mc=`cdma2000_1xrtt`,L=`hsdpa`,hc=`hsupa`,gc=`hspa`,_c=`iden`,vc=`evdo_b`,yc=`lte`,bc=`ehrpd`,xc=`hspap`,Sc=`gsm`,Cc=`td_scdma`,wc=`iwlan`,Tc=`nr`,Ec=`nrnsa`,Dc=`lte_ca`,Oc=cc,kc=lc,Ac=uc,jc=dc,Mc=fc,Nc=pc,Pc=mc,Fc=L,Ic=hc,Lc=gc,Rc=_c,zc=vc,Bc=bc,Vc=xc,Hc=Cc,Uc=wc,Wc=Ec,Gc=Dc,Kc=h([cc,lc,uc,dc,fc,pc,mc,L,hc,gc,_c,vc,yc,bc,xc,Sc,Cc,wc,Tc,Ec,Dc]),qc=`1.0`,Jc=`1.1`,Yc=`2.0`,Xc=`SPDY`,Zc=`QUIC`,Qc=Xc,$c=Zc,el={HTTP_1_0:qc,HTTP_1_1:Jc,HTTP_2_0:Yc,SPDY:Xc,QUIC:Zc},tl=`queue`,nl=`topic`,rl=tl,il=nl,al=h([tl,nl]),ol=`receive`,sl=`process`,cl=ol,ll=sl,ul=h([ol,sl]),dl=0,fl=1,pl=2,ml=3,hl=4,gl=5,_l=6,vl=7,yl=8,bl=9,xl=10,Sl=11,Cl=12,wl=13,Tl=14,El=15,Dl=16,Ol={OK:dl,CANCELLED:fl,UNKNOWN:pl,INVALID_ARGUMENT:ml,DEADLINE_EXCEEDED:hl,NOT_FOUND:gl,ALREADY_EXISTS:_l,PERMISSION_DENIED:vl,RESOURCE_EXHAUSTED:yl,FAILED_PRECONDITION:bl,ABORTED:xl,OUT_OF_RANGE:Sl,UNIMPLEMENTED:Cl,INTERNAL:wl,UNAVAILABLE:Tl,DATA_LOSS:El,UNAUTHENTICATED:Dl},kl=`SENT`,Al=`RECEIVED`,jl=kl,Ml=Al,Nl=h([kl,Al])})),Fl=e((()=>{Pl()})),Il,Ll,Rl,zl,Bl,Vl,Hl,Ul,Wl,Gl,Kl,ql,Jl,Yl,Xl,Zl,Ql,$l,eu,tu,nu,ru,iu,au,ou,su,cu,lu,uu,du,fu,pu,mu,hu,gu,_u,vu,yu,bu,xu,Su,Cu,wu,Tu,Eu,Du,Ou,ku,Au,ju,Mu,Nu,Pu,Fu,Iu,Lu,Ru,zu,Bu,Vu,Hu,Uu,Wu,Gu,Ku,qu,Ju,Yu,Xu,Zu,Qu,$u,ed,td,nd,rd,id,ad,od,sd,cd,ld,ud,dd,fd,pd,md,hd,gd,_d,vd,yd,bd,xd,Sd,Cd,wd,Td,Ed,Dd,Od,kd,Ad,jd,Md,Nd,Pd,Fd,Id,Ld,Rd,zd,Bd,Vd,Hd,Ud,Wd,Gd,Kd,qd,Jd,Yd,Xd,Zd,Qd,$d,ef,tf,nf,rf,af,of,sf,cf,lf,uf,df,ff,pf,mf,hf,gf,_f,vf,yf,bf,xf,Sf,Cf,wf,Tf,Ef,Df,Of,kf,Af,jf,Mf,Nf,Pf,Ff,If,Lf,Rf,zf,Bf,Vf,Hf,Uf,Wf,Gf,Kf,qf,Jf,Yf,Xf,Zf,Qf,$f,ep,tp,np,rp,ip,ap,op,sp,cp,lp,up,dp,fp,pp,mp,hp,gp,_p,vp,yp,bp,xp,Sp,Cp,wp,Tp,Ep,Dp,Op,kp,Ap,jp,Mp,Np,Pp,Fp,Ip,Lp,Rp,zp,Bp,Vp,Hp,Up,Wp,Gp,Kp,qp,Jp,Yp,Xp,Zp,Qp,$p,em,tm,nm,rm,im,am,om,sm,cm,lm,um,dm,fm,pm,mm,hm,gm,_m,vm,ym,bm,xm,Sm,Cm,wm,Tm,Em,Dm,Om,km,Am=e((()=>{Be(),Il=`cloud.provider`,Ll=`cloud.account.id`,Rl=`cloud.region`,zl=`cloud.availability_zone`,Bl=`cloud.platform`,Vl=`aws.ecs.container.arn`,Hl=`aws.ecs.cluster.arn`,Ul=`aws.ecs.launchtype`,Wl=`aws.ecs.task.arn`,Gl=`aws.ecs.task.family`,Kl=`aws.ecs.task.revision`,ql=`aws.eks.cluster.arn`,Jl=`aws.log.group.names`,Yl=`aws.log.group.arns`,Xl=`aws.log.stream.names`,Zl=`aws.log.stream.arns`,Ql=`container.name`,$l=`container.id`,eu=`container.runtime`,tu=`container.image.name`,nu=`container.image.tag`,ru=`deployment.environment`,iu=`device.id`,au=`device.model.identifier`,ou=`device.model.name`,su=`faas.name`,cu=`faas.id`,lu=`faas.version`,uu=`faas.instance`,du=`faas.max_memory`,fu=`host.id`,pu=`host.name`,mu=`host.type`,hu=`host.arch`,gu=`host.image.name`,_u=`host.image.id`,vu=`host.image.version`,yu=`k8s.cluster.name`,bu=`k8s.node.name`,xu=`k8s.node.uid`,Su=`k8s.namespace.name`,Cu=`k8s.pod.uid`,wu=`k8s.pod.name`,Tu=`k8s.container.name`,Eu=`k8s.replicaset.uid`,Du=`k8s.replicaset.name`,Ou=`k8s.deployment.uid`,ku=`k8s.deployment.name`,Au=`k8s.statefulset.uid`,ju=`k8s.statefulset.name`,Mu=`k8s.daemonset.uid`,Nu=`k8s.daemonset.name`,Pu=`k8s.job.uid`,Fu=`k8s.job.name`,Iu=`k8s.cronjob.uid`,Lu=`k8s.cronjob.name`,Ru=`os.type`,zu=`os.description`,Bu=`os.name`,Vu=`os.version`,Hu=`process.pid`,Uu=`process.executable.name`,Wu=`process.executable.path`,Gu=`process.command`,Ku=`process.command_line`,qu=`process.command_args`,Ju=`process.owner`,Yu=`process.runtime.name`,Xu=`process.runtime.version`,Zu=`process.runtime.description`,Qu=`service.name`,$u=`service.namespace`,ed=`service.instance.id`,td=`service.version`,nd=`telemetry.sdk.name`,rd=`telemetry.sdk.language`,id=`telemetry.sdk.version`,ad=`telemetry.auto.version`,od=`webengine.name`,sd=`webengine.version`,cd=`webengine.description`,ld=Il,ud=Ll,dd=Rl,fd=zl,pd=Bl,md=Vl,hd=Hl,gd=Ul,_d=Wl,vd=Gl,yd=Kl,bd=ql,xd=Jl,Sd=Yl,Cd=Xl,wd=Zl,Td=Ql,Ed=$l,Dd=eu,Od=tu,kd=nu,Ad=ru,jd=iu,Md=au,Nd=ou,Pd=su,Fd=cu,Id=lu,Ld=uu,Rd=du,zd=fu,Bd=pu,Vd=mu,Hd=hu,Ud=gu,Wd=_u,Gd=vu,Kd=yu,qd=bu,Jd=xu,Yd=Su,Xd=Cu,Zd=wu,Qd=Tu,$d=Eu,ef=Du,tf=Ou,nf=ku,rf=Au,af=ju,of=Mu,sf=Nu,cf=Pu,lf=Fu,uf=Iu,df=Lu,ff=Ru,pf=zu,mf=Bu,hf=Vu,gf=Hu,_f=Uu,vf=Wu,yf=Gu,bf=Ku,xf=qu,Sf=Ju,Cf=Yu,wf=Xu,Tf=Zu,Ef=Qu,Df=$u,Of=ed,kf=td,Af=nd,jf=rd,Mf=id,Nf=ad,Pf=od,Ff=sd,If=cd,Lf=h([Il,Ll,Rl,zl,Bl,Vl,Hl,Ul,Wl,Gl,Kl,ql,Jl,Yl,Xl,Zl,Ql,$l,eu,tu,nu,ru,iu,au,ou,su,cu,lu,uu,du,fu,pu,mu,hu,gu,_u,vu,yu,bu,xu,Su,Cu,wu,Tu,Eu,Du,Ou,ku,Au,ju,Mu,Nu,Pu,Fu,Iu,Lu,Ru,zu,Bu,Vu,Hu,Uu,Wu,Gu,Ku,qu,Ju,Yu,Xu,Zu,Qu,$u,ed,td,nd,rd,id,ad,od,sd,cd]),Rf=`alibaba_cloud`,zf=`aws`,Bf=`azure`,Vf=`gcp`,Hf=Rf,Uf=Bf,Wf=h([Rf,zf,Bf,Vf]),Gf=`alibaba_cloud_ecs`,Kf=`alibaba_cloud_fc`,qf=`aws_ec2`,Jf=`aws_ecs`,Yf=`aws_eks`,Xf=`aws_lambda`,Zf=`aws_elastic_beanstalk`,Qf=`azure_vm`,$f=`azure_container_instances`,ep=`azure_aks`,tp=`azure_functions`,np=`azure_app_service`,rp=`gcp_compute_engine`,ip=`gcp_cloud_run`,ap=`gcp_kubernetes_engine`,op=`gcp_cloud_functions`,sp=`gcp_app_engine`,cp=Gf,lp=Kf,up=qf,dp=Jf,fp=Yf,pp=Xf,mp=Zf,hp=Qf,gp=$f,_p=ep,vp=tp,yp=np,bp=rp,xp=ip,Sp=ap,Cp=op,wp=sp,Tp=h([Gf,Kf,qf,Jf,Yf,Xf,Zf,Qf,$f,ep,tp,np,rp,ip,ap,op,sp]),Ep=`ec2`,Dp=`fargate`,Op=Dp,kp=h([Ep,Dp]),Ap=`amd64`,jp=`arm32`,Mp=`arm64`,Np=`ia64`,Pp=`ppc32`,Fp=`ppc64`,Ip=`x86`,Lp=Ap,Rp=jp,zp=Mp,Bp=Np,Vp=Pp,Hp=Fp,Up=h([Ap,jp,Mp,Np,Pp,Fp,Ip]),Wp=`windows`,Gp=`linux`,Kp=`darwin`,qp=`freebsd`,Jp=`netbsd`,Yp=`openbsd`,Xp=`dragonflybsd`,Zp=`hpux`,Qp=`aix`,$p=`solaris`,em=`z_os`,tm=Wp,nm=Gp,rm=Kp,im=qp,am=Jp,om=Yp,sm=Xp,cm=Zp,lm=$p,um=em,dm=h([Wp,Gp,Kp,qp,Jp,Yp,Xp,Zp,Qp,$p,em]),fm=`cpp`,pm=`dotnet`,mm=`erlang`,hm=`go`,gm=`java`,_m=`nodejs`,vm=`php`,ym=`python`,bm=`ruby`,xm=`webjs`,Sm=pm,Cm=mm,wm=gm,Tm=_m,Em=ym,Dm=bm,Om=xm,km=h([fm,pm,mm,hm,gm,_m,vm,ym,bm,xm])})),jm=e((()=>{Am()})),Mm,Nm,Pm,Fm,Im,Lm,Rm,zm,Bm,Vm,Hm,Um,Wm,Gm,Km,qm,Jm,Ym,Xm,Zm,Qm,$m,eh,th,nh,rh,ih,ah,oh,sh,ch,lh,uh,dh,fh,ph,mh,hh,gh,_h,vh,yh,bh,xh,Sh,Ch,wh,Th,Eh,Dh,Oh,kh,Ah,jh,Mh,Nh,Ph,Fh,Ih,Lh,Rh,zh,Bh,Vh,Hh,Uh,Wh,Gh,Kh,qh,Jh,Yh,Xh,Zh,Qh,$h,eg,tg,ng,rg,ig,ag,og,sg,cg,lg,ug,dg,fg,pg,mg,hg,gg,_g,vg,yg,bg,xg,Sg,Cg,wg,Tg,Eg,Dg,Og,kg,Ag,jg,Mg,Ng,Pg,Fg,Ig,Lg,Rg,zg,Bg,Vg,Hg,Ug,Wg,Gg,Kg,qg,Jg,Yg,Xg,Zg,Qg,$g,e_,t_,n_,r_,i_,a_,o_,s_,c_,l_,u_,d_,f_,p_,m_,h_,g_,__,v_,y_,b_,x_,S_,C_,w_,T_,E_,D_,O_,k_,A_,j_,R,M_,N_,P_,F_,z,I_,L_,R_,z_,B_,B,V,V_,H_,U_,W_,G_,K_,q_=e((()=>{Mm=`aspnetcore.diagnostics.exception.result`,Nm=`aborted`,Pm=`handled`,Fm=`skipped`,Im=`unhandled`,Lm=`aspnetcore.diagnostics.handler.type`,Rm=`aspnetcore.rate_limiting.policy`,zm=`aspnetcore.rate_limiting.result`,Bm=`acquired`,Vm=`endpoint_limiter`,Hm=`global_limiter`,Um=`request_canceled`,Wm=`aspnetcore.request.is_unhandled`,Gm=`aspnetcore.routing.is_fallback`,Km=`aspnetcore.routing.match_status`,qm=`failure`,Jm=`success`,Ym=`aspnetcore.user.is_authenticated`,Xm=`client.address`,Zm=`client.port`,Qm=`code.column.number`,$m=`code.file.path`,eh=`code.function.name`,th=`code.line.number`,nh=`code.stacktrace`,rh=`container.id`,ih=`container.image.name`,ah=`container.image.repo_digests`,oh=`container.image.tags`,sh=`db.collection.name`,ch=`db.namespace`,lh=`db.operation.batch.size`,uh=`db.operation.name`,dh=`db.query.summary`,fh=`db.query.text`,ph=`db.response.status_code`,mh=`db.stored_procedure.name`,hh=`db.system.name`,gh=`mariadb`,_h=`microsoft.sql_server`,vh=`mysql`,yh=`postgresql`,bh=`deployment.environment.name`,xh=`development`,Sh=`production`,Ch=`staging`,wh=`test`,Th=`dotnet.gc.heap.generation`,Eh=`gen0`,Dh=`gen1`,Oh=`gen2`,kh=`error.type`,Ah=`_OTHER`,jh=`exception.escaped`,Mh=`exception.message`,Nh=`exception.stacktrace`,Ph=`exception.type`,Fh=e=>`http.request.header.${e}`,Ih=`http.request.method`,Lh=`_OTHER`,Rh=`CONNECT`,zh=`DELETE`,Bh=`HEAD`,Vh=`OPTIONS`,Hh=`PATCH`,Uh=`POST`,Wh=`TRACE`,Gh=`http.request.method_original`,Kh=`http.request.resend_count`,qh=e=>`http.response.header.${e}`,Jh=`http.response.status_code`,Yh=`http.route`,Xh=`jvm.gc.action`,Zh=`jvm.gc.name`,Qh=`jvm.memory.pool.name`,$h=`jvm.memory.type`,eg=`heap`,tg=`non_heap`,ng=`jvm.thread.daemon`,rg=`jvm.thread.state`,ig=`blocked`,ag=`runnable`,og=`terminated`,sg=`timed_waiting`,cg=`waiting`,lg=`k8s.cluster.name`,ug=`k8s.cluster.uid`,dg=`k8s.container.name`,fg=`k8s.container.restart_count`,pg=e=>`k8s.cronjob.annotation.${e}`,mg=e=>`k8s.cronjob.label.${e}`,hg=`k8s.cronjob.name`,gg=`k8s.cronjob.uid`,_g=e=>`k8s.daemonset.annotation.${e}`,vg=e=>`k8s.daemonset.label.${e}`,yg=`k8s.daemonset.name`,bg=`k8s.daemonset.uid`,xg=e=>`k8s.deployment.annotation.${e}`,Sg=e=>`k8s.deployment.label.${e}`,Cg=`k8s.deployment.name`,wg=`k8s.deployment.uid`,Tg=e=>`k8s.job.annotation.${e}`,Eg=e=>`k8s.job.label.${e}`,Dg=`k8s.job.name`,Og=`k8s.job.uid`,kg=e=>`k8s.namespace.annotation.${e}`,Ag=e=>`k8s.namespace.label.${e}`,jg=`k8s.namespace.name`,Mg=e=>`k8s.node.annotation.${e}`,Ng=e=>`k8s.node.label.${e}`,Pg=`k8s.node.name`,Fg=`k8s.node.uid`,Ig=e=>`k8s.pod.annotation.${e}`,Lg=`k8s.pod.hostname`,Rg=`k8s.pod.ip`,zg=e=>`k8s.pod.label.${e}`,Bg=`k8s.pod.name`,Vg=`k8s.pod.start_time`,Hg=`k8s.pod.uid`,Ug=e=>`k8s.replicaset.annotation.${e}`,Wg=e=>`k8s.replicaset.label.${e}`,Gg=`k8s.replicaset.name`,Kg=`k8s.replicaset.uid`,qg=e=>`k8s.statefulset.annotation.${e}`,Jg=e=>`k8s.statefulset.label.${e}`,Yg=`k8s.statefulset.name`,Xg=`k8s.statefulset.uid`,Zg=`network.local.address`,Qg=`network.local.port`,$g=`network.peer.address`,e_=`network.peer.port`,t_=`network.protocol.name`,n_=`network.protocol.version`,r_=`network.transport`,i_=`pipe`,a_=`quic`,o_=`unix`,s_=`network.type`,c_=`ipv4`,l_=`ipv6`,u_=`otel.event.name`,d_=`otel.scope.name`,f_=`otel.scope.version`,p_=`otel.status_code`,m_=`ERROR`,h_=`otel.status_description`,g_=`server.address`,__=`server.port`,v_=`service.instance.id`,y_=`service.name`,b_=`service.namespace`,x_=`service.version`,S_=`signalr.connection.status`,C_=`app_shutdown`,w_=`normal_closure`,T_=`timeout`,E_=`signalr.transport`,D_=`long_polling`,O_=`server_sent_events`,k_=`web_sockets`,A_=`telemetry.distro.name`,j_=`telemetry.distro.version`,R=`telemetry.sdk.language`,M_=`dotnet`,N_=`erlang`,P_=`java`,F_=`kotlin`,z=`nodejs`,I_=`python`,L_=`ruby`,R_=`rust`,z_=`swift`,B_=`webjs`,B=`telemetry.sdk.name`,V=`telemetry.sdk.version`,V_=`url.fragment`,H_=`url.full`,U_=`url.path`,W_=`url.query`,G_=`url.scheme`,K_=`user_agent.original`})),J_,Y_,X_,Z_,Q_,$_,ev,tv,nv,rv,iv,av,ov,sv,cv,lv,uv,dv,fv,pv,mv,hv,gv,_v,vv,yv,bv,xv,Sv,Cv,wv,Tv,Ev,Dv,Ov,kv,Av,jv,Mv,Nv,Pv,Fv,Iv,Lv,Rv,zv,Bv,Vv,Hv,Uv,Wv,Gv=e((()=>{J_=`aspnetcore.diagnostics.exceptions`,Y_=`aspnetcore.rate_limiting.active_request_leases`,X_=`aspnetcore.rate_limiting.queued_requests`,Z_=`aspnetcore.rate_limiting.request.time_in_queue`,Q_=`aspnetcore.rate_limiting.request_lease.duration`,$_=`aspnetcore.rate_limiting.requests`,ev=`aspnetcore.routing.match_attempts`,tv=`db.client.operation.duration`,nv=`dotnet.assembly.count`,rv=`dotnet.exceptions`,iv=`dotnet.gc.collections`,av=`dotnet.gc.heap.total_allocated`,ov=`dotnet.gc.last_collection.heap.fragmentation.size`,sv=`dotnet.gc.last_collection.heap.size`,cv=`dotnet.gc.last_collection.memory.committed_size`,lv=`dotnet.gc.pause.time`,uv=`dotnet.jit.compilation.time`,dv=`dotnet.jit.compiled_il.size`,fv=`dotnet.jit.compiled_methods`,pv=`dotnet.monitor.lock_contentions`,mv=`dotnet.process.cpu.count`,hv=`dotnet.process.cpu.time`,gv=`dotnet.process.memory.working_set`,_v=`dotnet.thread_pool.queue.length`,vv=`dotnet.thread_pool.thread.count`,yv=`dotnet.thread_pool.work_item.count`,bv=`dotnet.timer.count`,xv=`http.client.request.duration`,Sv=`http.server.request.duration`,Cv=`jvm.class.count`,wv=`jvm.class.loaded`,Tv=`jvm.class.unloaded`,Ev=`jvm.cpu.count`,Dv=`jvm.cpu.recent_utilization`,Ov=`jvm.cpu.time`,kv=`jvm.gc.duration`,Av=`jvm.memory.committed`,jv=`jvm.memory.limit`,Mv=`jvm.memory.used`,Nv=`jvm.memory.used_after_last_gc`,Pv=`jvm.thread.count`,Fv=`kestrel.active_connections`,Iv=`kestrel.active_tls_handshakes`,Lv=`kestrel.connection.duration`,Rv=`kestrel.queued_connections`,zv=`kestrel.queued_requests`,Bv=`kestrel.rejected_connections`,Vv=`kestrel.tls_handshake.duration`,Hv=`kestrel.upgraded_connections`,Uv=`signalr.server.active_connections`,Wv=`signalr.server.connection.duration`})),Kv,qv=e((()=>{Kv=`exception`})),Jv=t({ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_ABORTED:()=>Nm,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_HANDLED:()=>Pm,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_SKIPPED:()=>Fm,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_UNHANDLED:()=>Im,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ACQUIRED:()=>Bm,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ENDPOINT_LIMITER:()=>Vm,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_GLOBAL_LIMITER:()=>Hm,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_REQUEST_CANCELED:()=>Um,ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_FAILURE:()=>qm,ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_SUCCESS:()=>Jm,ATTR_ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT:()=>Mm,ATTR_ASPNETCORE_DIAGNOSTICS_HANDLER_TYPE:()=>Lm,ATTR_ASPNETCORE_RATE_LIMITING_POLICY:()=>Rm,ATTR_ASPNETCORE_RATE_LIMITING_RESULT:()=>zm,ATTR_ASPNETCORE_REQUEST_IS_UNHANDLED:()=>Wm,ATTR_ASPNETCORE_ROUTING_IS_FALLBACK:()=>Gm,ATTR_ASPNETCORE_ROUTING_MATCH_STATUS:()=>Km,ATTR_ASPNETCORE_USER_IS_AUTHENTICATED:()=>Ym,ATTR_CLIENT_ADDRESS:()=>Xm,ATTR_CLIENT_PORT:()=>Zm,ATTR_CODE_COLUMN_NUMBER:()=>Qm,ATTR_CODE_FILE_PATH:()=>$m,ATTR_CODE_FUNCTION_NAME:()=>eh,ATTR_CODE_LINE_NUMBER:()=>th,ATTR_CODE_STACKTRACE:()=>nh,ATTR_CONTAINER_ID:()=>rh,ATTR_CONTAINER_IMAGE_NAME:()=>ih,ATTR_CONTAINER_IMAGE_REPO_DIGESTS:()=>ah,ATTR_CONTAINER_IMAGE_TAGS:()=>oh,ATTR_DB_COLLECTION_NAME:()=>sh,ATTR_DB_NAMESPACE:()=>ch,ATTR_DB_OPERATION_BATCH_SIZE:()=>lh,ATTR_DB_OPERATION_NAME:()=>uh,ATTR_DB_QUERY_SUMMARY:()=>dh,ATTR_DB_QUERY_TEXT:()=>fh,ATTR_DB_RESPONSE_STATUS_CODE:()=>ph,ATTR_DB_STORED_PROCEDURE_NAME:()=>mh,ATTR_DB_SYSTEM_NAME:()=>hh,ATTR_DEPLOYMENT_ENVIRONMENT_NAME:()=>bh,ATTR_DOTNET_GC_HEAP_GENERATION:()=>Th,ATTR_ERROR_TYPE:()=>kh,ATTR_EXCEPTION_ESCAPED:()=>jh,ATTR_EXCEPTION_MESSAGE:()=>Mh,ATTR_EXCEPTION_STACKTRACE:()=>Nh,ATTR_EXCEPTION_TYPE:()=>Ph,ATTR_HTTP_REQUEST_HEADER:()=>Fh,ATTR_HTTP_REQUEST_METHOD:()=>Ih,ATTR_HTTP_REQUEST_METHOD_ORIGINAL:()=>Gh,ATTR_HTTP_REQUEST_RESEND_COUNT:()=>Kh,ATTR_HTTP_RESPONSE_HEADER:()=>qh,ATTR_HTTP_RESPONSE_STATUS_CODE:()=>Jh,ATTR_HTTP_ROUTE:()=>Yh,ATTR_JVM_GC_ACTION:()=>Xh,ATTR_JVM_GC_NAME:()=>Zh,ATTR_JVM_MEMORY_POOL_NAME:()=>Qh,ATTR_JVM_MEMORY_TYPE:()=>$h,ATTR_JVM_THREAD_DAEMON:()=>ng,ATTR_JVM_THREAD_STATE:()=>rg,ATTR_K8S_CLUSTER_NAME:()=>lg,ATTR_K8S_CLUSTER_UID:()=>ug,ATTR_K8S_CONTAINER_NAME:()=>dg,ATTR_K8S_CONTAINER_RESTART_COUNT:()=>fg,ATTR_K8S_CRONJOB_ANNOTATION:()=>pg,ATTR_K8S_CRONJOB_LABEL:()=>mg,ATTR_K8S_CRONJOB_NAME:()=>hg,ATTR_K8S_CRONJOB_UID:()=>gg,ATTR_K8S_DAEMONSET_ANNOTATION:()=>_g,ATTR_K8S_DAEMONSET_LABEL:()=>vg,ATTR_K8S_DAEMONSET_NAME:()=>yg,ATTR_K8S_DAEMONSET_UID:()=>bg,ATTR_K8S_DEPLOYMENT_ANNOTATION:()=>xg,ATTR_K8S_DEPLOYMENT_LABEL:()=>Sg,ATTR_K8S_DEPLOYMENT_NAME:()=>Cg,ATTR_K8S_DEPLOYMENT_UID:()=>wg,ATTR_K8S_JOB_ANNOTATION:()=>Tg,ATTR_K8S_JOB_LABEL:()=>Eg,ATTR_K8S_JOB_NAME:()=>Dg,ATTR_K8S_JOB_UID:()=>Og,ATTR_K8S_NAMESPACE_ANNOTATION:()=>kg,ATTR_K8S_NAMESPACE_LABEL:()=>Ag,ATTR_K8S_NAMESPACE_NAME:()=>jg,ATTR_K8S_NODE_ANNOTATION:()=>Mg,ATTR_K8S_NODE_LABEL:()=>Ng,ATTR_K8S_NODE_NAME:()=>Pg,ATTR_K8S_NODE_UID:()=>Fg,ATTR_K8S_POD_ANNOTATION:()=>Ig,ATTR_K8S_POD_HOSTNAME:()=>Lg,ATTR_K8S_POD_IP:()=>Rg,ATTR_K8S_POD_LABEL:()=>zg,ATTR_K8S_POD_NAME:()=>Bg,ATTR_K8S_POD_START_TIME:()=>Vg,ATTR_K8S_POD_UID:()=>Hg,ATTR_K8S_REPLICASET_ANNOTATION:()=>Ug,ATTR_K8S_REPLICASET_LABEL:()=>Wg,ATTR_K8S_REPLICASET_NAME:()=>Gg,ATTR_K8S_REPLICASET_UID:()=>Kg,ATTR_K8S_STATEFULSET_ANNOTATION:()=>qg,ATTR_K8S_STATEFULSET_LABEL:()=>Jg,ATTR_K8S_STATEFULSET_NAME:()=>Yg,ATTR_K8S_STATEFULSET_UID:()=>Xg,ATTR_NETWORK_LOCAL_ADDRESS:()=>Zg,ATTR_NETWORK_LOCAL_PORT:()=>Qg,ATTR_NETWORK_PEER_ADDRESS:()=>$g,ATTR_NETWORK_PEER_PORT:()=>e_,ATTR_NETWORK_PROTOCOL_NAME:()=>t_,ATTR_NETWORK_PROTOCOL_VERSION:()=>n_,ATTR_NETWORK_TRANSPORT:()=>r_,ATTR_NETWORK_TYPE:()=>s_,ATTR_OTEL_EVENT_NAME:()=>u_,ATTR_OTEL_SCOPE_NAME:()=>d_,ATTR_OTEL_SCOPE_VERSION:()=>f_,ATTR_OTEL_STATUS_CODE:()=>p_,ATTR_OTEL_STATUS_DESCRIPTION:()=>h_,ATTR_SERVER_ADDRESS:()=>g_,ATTR_SERVER_PORT:()=>__,ATTR_SERVICE_INSTANCE_ID:()=>v_,ATTR_SERVICE_NAME:()=>y_,ATTR_SERVICE_NAMESPACE:()=>b_,ATTR_SERVICE_VERSION:()=>x_,ATTR_SIGNALR_CONNECTION_STATUS:()=>S_,ATTR_SIGNALR_TRANSPORT:()=>E_,ATTR_TELEMETRY_DISTRO_NAME:()=>A_,ATTR_TELEMETRY_DISTRO_VERSION:()=>j_,ATTR_TELEMETRY_SDK_LANGUAGE:()=>R,ATTR_TELEMETRY_SDK_NAME:()=>B,ATTR_TELEMETRY_SDK_VERSION:()=>V,ATTR_URL_FRAGMENT:()=>V_,ATTR_URL_FULL:()=>H_,ATTR_URL_PATH:()=>U_,ATTR_URL_QUERY:()=>W_,ATTR_URL_SCHEME:()=>G_,ATTR_USER_AGENT_ORIGINAL:()=>K_,AWSECSLAUNCHTYPEVALUES_EC2:()=>`ec2`,AWSECSLAUNCHTYPEVALUES_FARGATE:()=>Op,AwsEcsLaunchtypeValues:()=>kp,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS:()=>cp,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC:()=>lp,CLOUDPLATFORMVALUES_AWS_EC2:()=>up,CLOUDPLATFORMVALUES_AWS_ECS:()=>dp,CLOUDPLATFORMVALUES_AWS_EKS:()=>fp,CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK:()=>mp,CLOUDPLATFORMVALUES_AWS_LAMBDA:()=>pp,CLOUDPLATFORMVALUES_AZURE_AKS:()=>_p,CLOUDPLATFORMVALUES_AZURE_APP_SERVICE:()=>yp,CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES:()=>gp,CLOUDPLATFORMVALUES_AZURE_FUNCTIONS:()=>vp,CLOUDPLATFORMVALUES_AZURE_VM:()=>hp,CLOUDPLATFORMVALUES_GCP_APP_ENGINE:()=>wp,CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS:()=>Cp,CLOUDPLATFORMVALUES_GCP_CLOUD_RUN:()=>xp,CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE:()=>bp,CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE:()=>Sp,CLOUDPROVIDERVALUES_ALIBABA_CLOUD:()=>Hf,CLOUDPROVIDERVALUES_AWS:()=>`aws`,CLOUDPROVIDERVALUES_AZURE:()=>Uf,CLOUDPROVIDERVALUES_GCP:()=>`gcp`,CloudPlatformValues:()=>Tp,CloudProviderValues:()=>Wf,DBCASSANDRACONSISTENCYLEVELVALUES_ALL:()=>`all`,DBCASSANDRACONSISTENCYLEVELVALUES_ANY:()=>`any`,DBCASSANDRACONSISTENCYLEVELVALUES_EACH_QUORUM:()=>is,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_ONE:()=>cs,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_QUORUM:()=>os,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_SERIAL:()=>us,DBCASSANDRACONSISTENCYLEVELVALUES_ONE:()=>`one`,DBCASSANDRACONSISTENCYLEVELVALUES_QUORUM:()=>as,DBCASSANDRACONSISTENCYLEVELVALUES_SERIAL:()=>ls,DBCASSANDRACONSISTENCYLEVELVALUES_THREE:()=>ss,DBCASSANDRACONSISTENCYLEVELVALUES_TWO:()=>`two`,DBSYSTEMVALUES_ADABAS:()=>_o,DBSYSTEMVALUES_CACHE:()=>go,DBSYSTEMVALUES_CASSANDRA:()=>No,DBSYSTEMVALUES_CLOUDSCAPE:()=>co,DBSYSTEMVALUES_COCKROACHDB:()=>Go,DBSYSTEMVALUES_COLDFUSION:()=>Mo,DBSYSTEMVALUES_COSMOSDB:()=>zo,DBSYSTEMVALUES_COUCHBASE:()=>Lo,DBSYSTEMVALUES_COUCHDB:()=>Ro,DBSYSTEMVALUES_DB2:()=>`db2`,DBSYSTEMVALUES_DERBY:()=>yo,DBSYSTEMVALUES_DYNAMODB:()=>Bo,DBSYSTEMVALUES_EDB:()=>`edb`,DBSYSTEMVALUES_ELASTICSEARCH:()=>Uo,DBSYSTEMVALUES_FILEMAKER:()=>bo,DBSYSTEMVALUES_FIREBIRD:()=>vo,DBSYSTEMVALUES_FIRSTSQL:()=>ho,DBSYSTEMVALUES_GEODE:()=>Ho,DBSYSTEMVALUES_H2:()=>`h2`,DBSYSTEMVALUES_HANADB:()=>po,DBSYSTEMVALUES_HBASE:()=>Po,DBSYSTEMVALUES_HIVE:()=>so,DBSYSTEMVALUES_HSQLDB:()=>lo,DBSYSTEMVALUES_INFORMIX:()=>xo,DBSYSTEMVALUES_INGRES:()=>mo,DBSYSTEMVALUES_INSTANTDB:()=>So,DBSYSTEMVALUES_INTERBASE:()=>Co,DBSYSTEMVALUES_MARIADB:()=>wo,DBSYSTEMVALUES_MAXDB:()=>fo,DBSYSTEMVALUES_MEMCACHED:()=>Wo,DBSYSTEMVALUES_MONGODB:()=>Fo,DBSYSTEMVALUES_MSSQL:()=>no,DBSYSTEMVALUES_MYSQL:()=>ro,DBSYSTEMVALUES_NEO4J:()=>Vo,DBSYSTEMVALUES_NETEZZA:()=>To,DBSYSTEMVALUES_ORACLE:()=>io,DBSYSTEMVALUES_OTHER_SQL:()=>to,DBSYSTEMVALUES_PERVASIVE:()=>Eo,DBSYSTEMVALUES_POINTBASE:()=>Do,DBSYSTEMVALUES_POSTGRESQL:()=>ao,DBSYSTEMVALUES_PROGRESS:()=>uo,DBSYSTEMVALUES_REDIS:()=>Io,DBSYSTEMVALUES_REDSHIFT:()=>oo,DBSYSTEMVALUES_SQLITE:()=>Oo,DBSYSTEMVALUES_SYBASE:()=>ko,DBSYSTEMVALUES_TERADATA:()=>Ao,DBSYSTEMVALUES_VERTICA:()=>jo,DB_SYSTEM_NAME_VALUE_MARIADB:()=>gh,DB_SYSTEM_NAME_VALUE_MICROSOFT_SQL_SERVER:()=>_h,DB_SYSTEM_NAME_VALUE_MYSQL:()=>vh,DB_SYSTEM_NAME_VALUE_POSTGRESQL:()=>yh,DEPLOYMENT_ENVIRONMENT_NAME_VALUE_DEVELOPMENT:()=>xh,DEPLOYMENT_ENVIRONMENT_NAME_VALUE_PRODUCTION:()=>Sh,DEPLOYMENT_ENVIRONMENT_NAME_VALUE_STAGING:()=>Ch,DEPLOYMENT_ENVIRONMENT_NAME_VALUE_TEST:()=>wh,DOTNET_GC_HEAP_GENERATION_VALUE_GEN0:()=>Eh,DOTNET_GC_HEAP_GENERATION_VALUE_GEN1:()=>Dh,DOTNET_GC_HEAP_GENERATION_VALUE_GEN2:()=>Oh,DOTNET_GC_HEAP_GENERATION_VALUE_LOH:()=>`loh`,DOTNET_GC_HEAP_GENERATION_VALUE_POH:()=>`poh`,DbCassandraConsistencyLevelValues:()=>ds,DbSystemValues:()=>Ko,ERROR_TYPE_VALUE_OTHER:()=>Ah,EVENT_EXCEPTION:()=>Kv,FAASDOCUMENTOPERATIONVALUES_DELETE:()=>Os,FAASDOCUMENTOPERATIONVALUES_EDIT:()=>Ds,FAASDOCUMENTOPERATIONVALUES_INSERT:()=>Es,FAASINVOKEDPROVIDERVALUES_ALIBABA_CLOUD:()=>Ps,FAASINVOKEDPROVIDERVALUES_AWS:()=>`aws`,FAASINVOKEDPROVIDERVALUES_AZURE:()=>Fs,FAASINVOKEDPROVIDERVALUES_GCP:()=>`gcp`,FAASTRIGGERVALUES_DATASOURCE:()=>_s,FAASTRIGGERVALUES_HTTP:()=>vs,FAASTRIGGERVALUES_OTHER:()=>xs,FAASTRIGGERVALUES_PUBSUB:()=>ys,FAASTRIGGERVALUES_TIMER:()=>bs,FaasDocumentOperationValues:()=>ks,FaasInvokedProviderValues:()=>Is,FaasTriggerValues:()=>Ss,HOSTARCHVALUES_AMD64:()=>Lp,HOSTARCHVALUES_ARM32:()=>Rp,HOSTARCHVALUES_ARM64:()=>zp,HOSTARCHVALUES_IA64:()=>Bp,HOSTARCHVALUES_PPC32:()=>Vp,HOSTARCHVALUES_PPC64:()=>Hp,HOSTARCHVALUES_X86:()=>`x86`,HTTPFLAVORVALUES_HTTP_1_0:()=>`1.0`,HTTPFLAVORVALUES_HTTP_1_1:()=>`1.1`,HTTPFLAVORVALUES_HTTP_2_0:()=>`2.0`,HTTPFLAVORVALUES_QUIC:()=>$c,HTTPFLAVORVALUES_SPDY:()=>Qc,HTTP_REQUEST_METHOD_VALUE_CONNECT:()=>Rh,HTTP_REQUEST_METHOD_VALUE_DELETE:()=>zh,HTTP_REQUEST_METHOD_VALUE_GET:()=>`GET`,HTTP_REQUEST_METHOD_VALUE_HEAD:()=>Bh,HTTP_REQUEST_METHOD_VALUE_OPTIONS:()=>Vh,HTTP_REQUEST_METHOD_VALUE_OTHER:()=>Lh,HTTP_REQUEST_METHOD_VALUE_PATCH:()=>Hh,HTTP_REQUEST_METHOD_VALUE_POST:()=>Uh,HTTP_REQUEST_METHOD_VALUE_PUT:()=>`PUT`,HTTP_REQUEST_METHOD_VALUE_TRACE:()=>Wh,HostArchValues:()=>Up,HttpFlavorValues:()=>el,JVM_MEMORY_TYPE_VALUE_HEAP:()=>eg,JVM_MEMORY_TYPE_VALUE_NON_HEAP:()=>tg,JVM_THREAD_STATE_VALUE_BLOCKED:()=>ig,JVM_THREAD_STATE_VALUE_NEW:()=>`new`,JVM_THREAD_STATE_VALUE_RUNNABLE:()=>ag,JVM_THREAD_STATE_VALUE_TERMINATED:()=>og,JVM_THREAD_STATE_VALUE_TIMED_WAITING:()=>sg,JVM_THREAD_STATE_VALUE_WAITING:()=>cg,MESSAGETYPEVALUES_RECEIVED:()=>Ml,MESSAGETYPEVALUES_SENT:()=>jl,MESSAGINGDESTINATIONKINDVALUES_QUEUE:()=>rl,MESSAGINGDESTINATIONKINDVALUES_TOPIC:()=>il,MESSAGINGOPERATIONVALUES_PROCESS:()=>ll,MESSAGINGOPERATIONVALUES_RECEIVE:()=>cl,METRIC_ASPNETCORE_DIAGNOSTICS_EXCEPTIONS:()=>J_,METRIC_ASPNETCORE_RATE_LIMITING_ACTIVE_REQUEST_LEASES:()=>Y_,METRIC_ASPNETCORE_RATE_LIMITING_QUEUED_REQUESTS:()=>X_,METRIC_ASPNETCORE_RATE_LIMITING_REQUESTS:()=>$_,METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_LEASE_DURATION:()=>Q_,METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_TIME_IN_QUEUE:()=>Z_,METRIC_ASPNETCORE_ROUTING_MATCH_ATTEMPTS:()=>ev,METRIC_DB_CLIENT_OPERATION_DURATION:()=>tv,METRIC_DOTNET_ASSEMBLY_COUNT:()=>nv,METRIC_DOTNET_EXCEPTIONS:()=>rv,METRIC_DOTNET_GC_COLLECTIONS:()=>iv,METRIC_DOTNET_GC_HEAP_TOTAL_ALLOCATED:()=>av,METRIC_DOTNET_GC_LAST_COLLECTION_HEAP_FRAGMENTATION_SIZE:()=>ov,METRIC_DOTNET_GC_LAST_COLLECTION_HEAP_SIZE:()=>sv,METRIC_DOTNET_GC_LAST_COLLECTION_MEMORY_COMMITTED_SIZE:()=>cv,METRIC_DOTNET_GC_PAUSE_TIME:()=>lv,METRIC_DOTNET_JIT_COMPILATION_TIME:()=>uv,METRIC_DOTNET_JIT_COMPILED_IL_SIZE:()=>dv,METRIC_DOTNET_JIT_COMPILED_METHODS:()=>fv,METRIC_DOTNET_MONITOR_LOCK_CONTENTIONS:()=>pv,METRIC_DOTNET_PROCESS_CPU_COUNT:()=>mv,METRIC_DOTNET_PROCESS_CPU_TIME:()=>hv,METRIC_DOTNET_PROCESS_MEMORY_WORKING_SET:()=>gv,METRIC_DOTNET_THREAD_POOL_QUEUE_LENGTH:()=>_v,METRIC_DOTNET_THREAD_POOL_THREAD_COUNT:()=>vv,METRIC_DOTNET_THREAD_POOL_WORK_ITEM_COUNT:()=>yv,METRIC_DOTNET_TIMER_COUNT:()=>bv,METRIC_HTTP_CLIENT_REQUEST_DURATION:()=>xv,METRIC_HTTP_SERVER_REQUEST_DURATION:()=>Sv,METRIC_JVM_CLASS_COUNT:()=>Cv,METRIC_JVM_CLASS_LOADED:()=>wv,METRIC_JVM_CLASS_UNLOADED:()=>Tv,METRIC_JVM_CPU_COUNT:()=>Ev,METRIC_JVM_CPU_RECENT_UTILIZATION:()=>Dv,METRIC_JVM_CPU_TIME:()=>Ov,METRIC_JVM_GC_DURATION:()=>kv,METRIC_JVM_MEMORY_COMMITTED:()=>Av,METRIC_JVM_MEMORY_LIMIT:()=>jv,METRIC_JVM_MEMORY_USED:()=>Mv,METRIC_JVM_MEMORY_USED_AFTER_LAST_GC:()=>Nv,METRIC_JVM_THREAD_COUNT:()=>Pv,METRIC_KESTREL_ACTIVE_CONNECTIONS:()=>Fv,METRIC_KESTREL_ACTIVE_TLS_HANDSHAKES:()=>Iv,METRIC_KESTREL_CONNECTION_DURATION:()=>Lv,METRIC_KESTREL_QUEUED_CONNECTIONS:()=>Rv,METRIC_KESTREL_QUEUED_REQUESTS:()=>zv,METRIC_KESTREL_REJECTED_CONNECTIONS:()=>Bv,METRIC_KESTREL_TLS_HANDSHAKE_DURATION:()=>Vv,METRIC_KESTREL_UPGRADED_CONNECTIONS:()=>Hv,METRIC_SIGNALR_SERVER_ACTIVE_CONNECTIONS:()=>Uv,METRIC_SIGNALR_SERVER_CONNECTION_DURATION:()=>Wv,MessageTypeValues:()=>Nl,MessagingDestinationKindValues:()=>al,MessagingOperationValues:()=>ul,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA:()=>jc,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA2000_1XRTT:()=>Pc,NETHOSTCONNECTIONSUBTYPEVALUES_EDGE:()=>kc,NETHOSTCONNECTIONSUBTYPEVALUES_EHRPD:()=>Bc,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_0:()=>Mc,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_A:()=>Nc,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_B:()=>zc,NETHOSTCONNECTIONSUBTYPEVALUES_GPRS:()=>Oc,NETHOSTCONNECTIONSUBTYPEVALUES_GSM:()=>`gsm`,NETHOSTCONNECTIONSUBTYPEVALUES_HSDPA:()=>Fc,NETHOSTCONNECTIONSUBTYPEVALUES_HSPA:()=>Lc,NETHOSTCONNECTIONSUBTYPEVALUES_HSPAP:()=>Vc,NETHOSTCONNECTIONSUBTYPEVALUES_HSUPA:()=>Ic,NETHOSTCONNECTIONSUBTYPEVALUES_IDEN:()=>Rc,NETHOSTCONNECTIONSUBTYPEVALUES_IWLAN:()=>Uc,NETHOSTCONNECTIONSUBTYPEVALUES_LTE:()=>`lte`,NETHOSTCONNECTIONSUBTYPEVALUES_LTE_CA:()=>Gc,NETHOSTCONNECTIONSUBTYPEVALUES_NR:()=>`nr`,NETHOSTCONNECTIONSUBTYPEVALUES_NRNSA:()=>Wc,NETHOSTCONNECTIONSUBTYPEVALUES_TD_SCDMA:()=>Hc,NETHOSTCONNECTIONSUBTYPEVALUES_UMTS:()=>Ac,NETHOSTCONNECTIONTYPEVALUES_CELL:()=>ic,NETHOSTCONNECTIONTYPEVALUES_UNAVAILABLE:()=>ac,NETHOSTCONNECTIONTYPEVALUES_UNKNOWN:()=>oc,NETHOSTCONNECTIONTYPEVALUES_WIFI:()=>nc,NETHOSTCONNECTIONTYPEVALUES_WIRED:()=>rc,NETTRANSPORTVALUES_INPROC:()=>Js,NETTRANSPORTVALUES_IP:()=>`ip`,NETTRANSPORTVALUES_IP_TCP:()=>Ws,NETTRANSPORTVALUES_IP_UDP:()=>Gs,NETTRANSPORTVALUES_OTHER:()=>Ys,NETTRANSPORTVALUES_PIPE:()=>qs,NETTRANSPORTVALUES_UNIX:()=>Ks,NETWORK_TRANSPORT_VALUE_PIPE:()=>i_,NETWORK_TRANSPORT_VALUE_QUIC:()=>a_,NETWORK_TRANSPORT_VALUE_TCP:()=>`tcp`,NETWORK_TRANSPORT_VALUE_UDP:()=>`udp`,NETWORK_TRANSPORT_VALUE_UNIX:()=>o_,NETWORK_TYPE_VALUE_IPV4:()=>c_,NETWORK_TYPE_VALUE_IPV6:()=>l_,NetHostConnectionSubtypeValues:()=>Kc,NetHostConnectionTypeValues:()=>sc,NetTransportValues:()=>Xs,OSTYPEVALUES_AIX:()=>`aix`,OSTYPEVALUES_DARWIN:()=>rm,OSTYPEVALUES_DRAGONFLYBSD:()=>sm,OSTYPEVALUES_FREEBSD:()=>im,OSTYPEVALUES_HPUX:()=>cm,OSTYPEVALUES_LINUX:()=>nm,OSTYPEVALUES_NETBSD:()=>am,OSTYPEVALUES_OPENBSD:()=>om,OSTYPEVALUES_SOLARIS:()=>lm,OSTYPEVALUES_WINDOWS:()=>tm,OSTYPEVALUES_Z_OS:()=>um,OTEL_STATUS_CODE_VALUE_ERROR:()=>m_,OTEL_STATUS_CODE_VALUE_OK:()=>`OK`,OsTypeValues:()=>dm,RPCGRPCSTATUSCODEVALUES_ABORTED:()=>10,RPCGRPCSTATUSCODEVALUES_ALREADY_EXISTS:()=>6,RPCGRPCSTATUSCODEVALUES_CANCELLED:()=>1,RPCGRPCSTATUSCODEVALUES_DATA_LOSS:()=>15,RPCGRPCSTATUSCODEVALUES_DEADLINE_EXCEEDED:()=>4,RPCGRPCSTATUSCODEVALUES_FAILED_PRECONDITION:()=>9,RPCGRPCSTATUSCODEVALUES_INTERNAL:()=>13,RPCGRPCSTATUSCODEVALUES_INVALID_ARGUMENT:()=>3,RPCGRPCSTATUSCODEVALUES_NOT_FOUND:()=>5,RPCGRPCSTATUSCODEVALUES_OK:()=>0,RPCGRPCSTATUSCODEVALUES_OUT_OF_RANGE:()=>11,RPCGRPCSTATUSCODEVALUES_PERMISSION_DENIED:()=>7,RPCGRPCSTATUSCODEVALUES_RESOURCE_EXHAUSTED:()=>8,RPCGRPCSTATUSCODEVALUES_UNAUTHENTICATED:()=>16,RPCGRPCSTATUSCODEVALUES_UNAVAILABLE:()=>14,RPCGRPCSTATUSCODEVALUES_UNIMPLEMENTED:()=>12,RPCGRPCSTATUSCODEVALUES_UNKNOWN:()=>2,RpcGrpcStatusCodeValues:()=>Ol,SEMATTRS_AWS_DYNAMODB_ATTRIBUTES_TO_GET:()=>gi,SEMATTRS_AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS:()=>Oi,SEMATTRS_AWS_DYNAMODB_CONSISTENT_READ:()=>pi,SEMATTRS_AWS_DYNAMODB_CONSUMED_CAPACITY:()=>li,SEMATTRS_AWS_DYNAMODB_COUNT:()=>Ei,SEMATTRS_AWS_DYNAMODB_EXCLUSIVE_START_TABLE:()=>xi,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES:()=>yi,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES:()=>ki,SEMATTRS_AWS_DYNAMODB_INDEX_NAME:()=>_i,SEMATTRS_AWS_DYNAMODB_ITEM_COLLECTION_METRICS:()=>ui,SEMATTRS_AWS_DYNAMODB_LIMIT:()=>hi,SEMATTRS_AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES:()=>bi,SEMATTRS_AWS_DYNAMODB_PROJECTION:()=>mi,SEMATTRS_AWS_DYNAMODB_PROVISIONED_READ_CAPACITY:()=>di,SEMATTRS_AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY:()=>fi,SEMATTRS_AWS_DYNAMODB_SCANNED_COUNT:()=>Di,SEMATTRS_AWS_DYNAMODB_SCAN_FORWARD:()=>Ci,SEMATTRS_AWS_DYNAMODB_SEGMENT:()=>wi,SEMATTRS_AWS_DYNAMODB_SELECT:()=>vi,SEMATTRS_AWS_DYNAMODB_TABLE_COUNT:()=>Si,SEMATTRS_AWS_DYNAMODB_TABLE_NAMES:()=>ci,SEMATTRS_AWS_DYNAMODB_TOTAL_SEGMENTS:()=>Ti,SEMATTRS_AWS_LAMBDA_INVOKED_ARN:()=>Vn,SEMATTRS_CODE_FILEPATH:()=>Gr,SEMATTRS_CODE_FUNCTION:()=>Ur,SEMATTRS_CODE_LINENO:()=>Kr,SEMATTRS_CODE_NAMESPACE:()=>Wr,SEMATTRS_DB_CASSANDRA_CONSISTENCY_LEVEL:()=>Qn,SEMATTRS_DB_CASSANDRA_COORDINATOR_DC:()=>rr,SEMATTRS_DB_CASSANDRA_COORDINATOR_ID:()=>nr,SEMATTRS_DB_CASSANDRA_IDEMPOTENCE:()=>er,SEMATTRS_DB_CASSANDRA_KEYSPACE:()=>Xn,SEMATTRS_DB_CASSANDRA_PAGE_SIZE:()=>Zn,SEMATTRS_DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT:()=>tr,SEMATTRS_DB_CASSANDRA_TABLE:()=>$n,SEMATTRS_DB_CONNECTION_STRING:()=>Un,SEMATTRS_DB_HBASE_NAMESPACE:()=>ir,SEMATTRS_DB_JDBC_DRIVER_CLASSNAME:()=>Gn,SEMATTRS_DB_MONGODB_COLLECTION:()=>or,SEMATTRS_DB_MSSQL_INSTANCE_NAME:()=>Yn,SEMATTRS_DB_NAME:()=>Kn,SEMATTRS_DB_OPERATION:()=>Jn,SEMATTRS_DB_REDIS_DATABASE_INDEX:()=>ar,SEMATTRS_DB_SQL_TABLE:()=>sr,SEMATTRS_DB_STATEMENT:()=>qn,SEMATTRS_DB_SYSTEM:()=>Hn,SEMATTRS_DB_USER:()=>Wn,SEMATTRS_ENDUSER_ID:()=>Rr,SEMATTRS_ENDUSER_ROLE:()=>zr,SEMATTRS_ENDUSER_SCOPE:()=>Br,SEMATTRS_EXCEPTION_ESCAPED:()=>dr,SEMATTRS_EXCEPTION_MESSAGE:()=>lr,SEMATTRS_EXCEPTION_STACKTRACE:()=>ur,SEMATTRS_EXCEPTION_TYPE:()=>cr,SEMATTRS_FAAS_COLDSTART:()=>br,SEMATTRS_FAAS_CRON:()=>yr,SEMATTRS_FAAS_DOCUMENT_COLLECTION:()=>mr,SEMATTRS_FAAS_DOCUMENT_NAME:()=>_r,SEMATTRS_FAAS_DOCUMENT_OPERATION:()=>hr,SEMATTRS_FAAS_DOCUMENT_TIME:()=>gr,SEMATTRS_FAAS_EXECUTION:()=>pr,SEMATTRS_FAAS_INVOKED_NAME:()=>xr,SEMATTRS_FAAS_INVOKED_PROVIDER:()=>Sr,SEMATTRS_FAAS_INVOKED_REGION:()=>Cr,SEMATTRS_FAAS_TIME:()=>vr,SEMATTRS_FAAS_TRIGGER:()=>fr,SEMATTRS_HTTP_CLIENT_IP:()=>si,SEMATTRS_HTTP_FLAVOR:()=>$r,SEMATTRS_HTTP_HOST:()=>Xr,SEMATTRS_HTTP_METHOD:()=>qr,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH:()=>ti,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED:()=>ni,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH:()=>ri,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED:()=>ii,SEMATTRS_HTTP_ROUTE:()=>oi,SEMATTRS_HTTP_SCHEME:()=>Zr,SEMATTRS_HTTP_SERVER_NAME:()=>ai,SEMATTRS_HTTP_STATUS_CODE:()=>Qr,SEMATTRS_HTTP_TARGET:()=>Yr,SEMATTRS_HTTP_URL:()=>Jr,SEMATTRS_HTTP_USER_AGENT:()=>ei,SEMATTRS_MESSAGE_COMPRESSED_SIZE:()=>aa,SEMATTRS_MESSAGE_ID:()=>ia,SEMATTRS_MESSAGE_TYPE:()=>ra,SEMATTRS_MESSAGE_UNCOMPRESSED_SIZE:()=>oa,SEMATTRS_MESSAGING_CONSUMER_ID:()=>Hi,SEMATTRS_MESSAGING_CONVERSATION_ID:()=>Ri,SEMATTRS_MESSAGING_DESTINATION:()=>ji,SEMATTRS_MESSAGING_DESTINATION_KIND:()=>Mi,SEMATTRS_MESSAGING_KAFKA_CLIENT_ID:()=>Ki,SEMATTRS_MESSAGING_KAFKA_CONSUMER_GROUP:()=>Gi,SEMATTRS_MESSAGING_KAFKA_MESSAGE_KEY:()=>Wi,SEMATTRS_MESSAGING_KAFKA_PARTITION:()=>qi,SEMATTRS_MESSAGING_KAFKA_TOMBSTONE:()=>Ji,SEMATTRS_MESSAGING_MESSAGE_ID:()=>Li,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES:()=>Bi,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES:()=>zi,SEMATTRS_MESSAGING_OPERATION:()=>Vi,SEMATTRS_MESSAGING_PROTOCOL:()=>Pi,SEMATTRS_MESSAGING_PROTOCOL_VERSION:()=>Fi,SEMATTRS_MESSAGING_RABBITMQ_ROUTING_KEY:()=>Ui,SEMATTRS_MESSAGING_SYSTEM:()=>Ai,SEMATTRS_MESSAGING_TEMP_DESTINATION:()=>Ni,SEMATTRS_MESSAGING_URL:()=>Ii,SEMATTRS_NET_HOST_CARRIER_ICC:()=>Ir,SEMATTRS_NET_HOST_CARRIER_MCC:()=>Pr,SEMATTRS_NET_HOST_CARRIER_MNC:()=>Fr,SEMATTRS_NET_HOST_CARRIER_NAME:()=>Nr,SEMATTRS_NET_HOST_CONNECTION_SUBTYPE:()=>Mr,SEMATTRS_NET_HOST_CONNECTION_TYPE:()=>jr,SEMATTRS_NET_HOST_IP:()=>Or,SEMATTRS_NET_HOST_NAME:()=>Ar,SEMATTRS_NET_HOST_PORT:()=>kr,SEMATTRS_NET_PEER_IP:()=>Tr,SEMATTRS_NET_PEER_NAME:()=>Dr,SEMATTRS_NET_PEER_PORT:()=>Er,SEMATTRS_NET_TRANSPORT:()=>wr,SEMATTRS_PEER_SERVICE:()=>Lr,SEMATTRS_RPC_GRPC_STATUS_CODE:()=>Qi,SEMATTRS_RPC_JSONRPC_ERROR_CODE:()=>ta,SEMATTRS_RPC_JSONRPC_ERROR_MESSAGE:()=>na,SEMATTRS_RPC_JSONRPC_REQUEST_ID:()=>ea,SEMATTRS_RPC_JSONRPC_VERSION:()=>$i,SEMATTRS_RPC_METHOD:()=>Zi,SEMATTRS_RPC_SERVICE:()=>Xi,SEMATTRS_RPC_SYSTEM:()=>Yi,SEMATTRS_THREAD_ID:()=>Vr,SEMATTRS_THREAD_NAME:()=>Hr,SEMRESATTRS_AWS_ECS_CLUSTER_ARN:()=>hd,SEMRESATTRS_AWS_ECS_CONTAINER_ARN:()=>md,SEMRESATTRS_AWS_ECS_LAUNCHTYPE:()=>gd,SEMRESATTRS_AWS_ECS_TASK_ARN:()=>_d,SEMRESATTRS_AWS_ECS_TASK_FAMILY:()=>vd,SEMRESATTRS_AWS_ECS_TASK_REVISION:()=>yd,SEMRESATTRS_AWS_EKS_CLUSTER_ARN:()=>bd,SEMRESATTRS_AWS_LOG_GROUP_ARNS:()=>Sd,SEMRESATTRS_AWS_LOG_GROUP_NAMES:()=>xd,SEMRESATTRS_AWS_LOG_STREAM_ARNS:()=>wd,SEMRESATTRS_AWS_LOG_STREAM_NAMES:()=>Cd,SEMRESATTRS_CLOUD_ACCOUNT_ID:()=>ud,SEMRESATTRS_CLOUD_AVAILABILITY_ZONE:()=>fd,SEMRESATTRS_CLOUD_PLATFORM:()=>pd,SEMRESATTRS_CLOUD_PROVIDER:()=>ld,SEMRESATTRS_CLOUD_REGION:()=>dd,SEMRESATTRS_CONTAINER_ID:()=>Ed,SEMRESATTRS_CONTAINER_IMAGE_NAME:()=>Od,SEMRESATTRS_CONTAINER_IMAGE_TAG:()=>kd,SEMRESATTRS_CONTAINER_NAME:()=>Td,SEMRESATTRS_CONTAINER_RUNTIME:()=>Dd,SEMRESATTRS_DEPLOYMENT_ENVIRONMENT:()=>Ad,SEMRESATTRS_DEVICE_ID:()=>jd,SEMRESATTRS_DEVICE_MODEL_IDENTIFIER:()=>Md,SEMRESATTRS_DEVICE_MODEL_NAME:()=>Nd,SEMRESATTRS_FAAS_ID:()=>Fd,SEMRESATTRS_FAAS_INSTANCE:()=>Ld,SEMRESATTRS_FAAS_MAX_MEMORY:()=>Rd,SEMRESATTRS_FAAS_NAME:()=>Pd,SEMRESATTRS_FAAS_VERSION:()=>Id,SEMRESATTRS_HOST_ARCH:()=>Hd,SEMRESATTRS_HOST_ID:()=>zd,SEMRESATTRS_HOST_IMAGE_ID:()=>Wd,SEMRESATTRS_HOST_IMAGE_NAME:()=>Ud,SEMRESATTRS_HOST_IMAGE_VERSION:()=>Gd,SEMRESATTRS_HOST_NAME:()=>Bd,SEMRESATTRS_HOST_TYPE:()=>Vd,SEMRESATTRS_K8S_CLUSTER_NAME:()=>Kd,SEMRESATTRS_K8S_CONTAINER_NAME:()=>Qd,SEMRESATTRS_K8S_CRONJOB_NAME:()=>df,SEMRESATTRS_K8S_CRONJOB_UID:()=>uf,SEMRESATTRS_K8S_DAEMONSET_NAME:()=>sf,SEMRESATTRS_K8S_DAEMONSET_UID:()=>of,SEMRESATTRS_K8S_DEPLOYMENT_NAME:()=>nf,SEMRESATTRS_K8S_DEPLOYMENT_UID:()=>tf,SEMRESATTRS_K8S_JOB_NAME:()=>lf,SEMRESATTRS_K8S_JOB_UID:()=>cf,SEMRESATTRS_K8S_NAMESPACE_NAME:()=>Yd,SEMRESATTRS_K8S_NODE_NAME:()=>qd,SEMRESATTRS_K8S_NODE_UID:()=>Jd,SEMRESATTRS_K8S_POD_NAME:()=>Zd,SEMRESATTRS_K8S_POD_UID:()=>Xd,SEMRESATTRS_K8S_REPLICASET_NAME:()=>ef,SEMRESATTRS_K8S_REPLICASET_UID:()=>$d,SEMRESATTRS_K8S_STATEFULSET_NAME:()=>af,SEMRESATTRS_K8S_STATEFULSET_UID:()=>rf,SEMRESATTRS_OS_DESCRIPTION:()=>pf,SEMRESATTRS_OS_NAME:()=>mf,SEMRESATTRS_OS_TYPE:()=>ff,SEMRESATTRS_OS_VERSION:()=>hf,SEMRESATTRS_PROCESS_COMMAND:()=>yf,SEMRESATTRS_PROCESS_COMMAND_ARGS:()=>xf,SEMRESATTRS_PROCESS_COMMAND_LINE:()=>bf,SEMRESATTRS_PROCESS_EXECUTABLE_NAME:()=>_f,SEMRESATTRS_PROCESS_EXECUTABLE_PATH:()=>vf,SEMRESATTRS_PROCESS_OWNER:()=>Sf,SEMRESATTRS_PROCESS_PID:()=>gf,SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION:()=>Tf,SEMRESATTRS_PROCESS_RUNTIME_NAME:()=>Cf,SEMRESATTRS_PROCESS_RUNTIME_VERSION:()=>wf,SEMRESATTRS_SERVICE_INSTANCE_ID:()=>Of,SEMRESATTRS_SERVICE_NAME:()=>Ef,SEMRESATTRS_SERVICE_NAMESPACE:()=>Df,SEMRESATTRS_SERVICE_VERSION:()=>kf,SEMRESATTRS_TELEMETRY_AUTO_VERSION:()=>Nf,SEMRESATTRS_TELEMETRY_SDK_LANGUAGE:()=>jf,SEMRESATTRS_TELEMETRY_SDK_NAME:()=>Af,SEMRESATTRS_TELEMETRY_SDK_VERSION:()=>Mf,SEMRESATTRS_WEBENGINE_DESCRIPTION:()=>If,SEMRESATTRS_WEBENGINE_NAME:()=>Pf,SEMRESATTRS_WEBENGINE_VERSION:()=>Ff,SIGNALR_CONNECTION_STATUS_VALUE_APP_SHUTDOWN:()=>C_,SIGNALR_CONNECTION_STATUS_VALUE_NORMAL_CLOSURE:()=>w_,SIGNALR_CONNECTION_STATUS_VALUE_TIMEOUT:()=>T_,SIGNALR_TRANSPORT_VALUE_LONG_POLLING:()=>D_,SIGNALR_TRANSPORT_VALUE_SERVER_SENT_EVENTS:()=>O_,SIGNALR_TRANSPORT_VALUE_WEB_SOCKETS:()=>k_,SemanticAttributes:()=>sa,SemanticResourceAttributes:()=>Lf,TELEMETRYSDKLANGUAGEVALUES_CPP:()=>`cpp`,TELEMETRYSDKLANGUAGEVALUES_DOTNET:()=>Sm,TELEMETRYSDKLANGUAGEVALUES_ERLANG:()=>Cm,TELEMETRYSDKLANGUAGEVALUES_GO:()=>`go`,TELEMETRYSDKLANGUAGEVALUES_JAVA:()=>wm,TELEMETRYSDKLANGUAGEVALUES_NODEJS:()=>Tm,TELEMETRYSDKLANGUAGEVALUES_PHP:()=>`php`,TELEMETRYSDKLANGUAGEVALUES_PYTHON:()=>Em,TELEMETRYSDKLANGUAGEVALUES_RUBY:()=>Dm,TELEMETRYSDKLANGUAGEVALUES_WEBJS:()=>Om,TELEMETRY_SDK_LANGUAGE_VALUE_CPP:()=>`cpp`,TELEMETRY_SDK_LANGUAGE_VALUE_DOTNET:()=>M_,TELEMETRY_SDK_LANGUAGE_VALUE_ERLANG:()=>N_,TELEMETRY_SDK_LANGUAGE_VALUE_GO:()=>`go`,TELEMETRY_SDK_LANGUAGE_VALUE_JAVA:()=>P_,TELEMETRY_SDK_LANGUAGE_VALUE_KOTLIN:()=>F_,TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS:()=>z,TELEMETRY_SDK_LANGUAGE_VALUE_PHP:()=>`php`,TELEMETRY_SDK_LANGUAGE_VALUE_PYTHON:()=>I_,TELEMETRY_SDK_LANGUAGE_VALUE_RUBY:()=>L_,TELEMETRY_SDK_LANGUAGE_VALUE_RUST:()=>R_,TELEMETRY_SDK_LANGUAGE_VALUE_SWIFT:()=>z_,TELEMETRY_SDK_LANGUAGE_VALUE_WEBJS:()=>B_,TelemetrySdkLanguageValues:()=>km}),Yv=e((()=>{Fl(),jm(),q_(),Gv(),qv()})),Xv,Zv=e((()=>{Xv=`process.runtime.name`})),Qv,$v=e((()=>{ze(),Yv(),Zv(),Qv={[B]:`opentelemetry`,[Xv]:`node`,[R]:z,[V]:Re}})),H,ey=e((()=>{Fe(),Le(),$v(),H=performance})),ty=e((()=>{ey()}));function U(e){let t=e/1e3;return[Math.trunc(t),Math.round(e%1e3*my)]}function ny(){return H.timeOrigin}function ry(e){return fy(U(H.timeOrigin),U(typeof e==`number`?e:H.now()))}function iy(e){if(uy(e))return e;if(typeof e==`number`)return e<H.timeOrigin?ry(e):U(e);if(e instanceof Date)return U(e.getTime());throw TypeError(`Invalid input type`)}function ay(e,t){let n=t[0]-e[0],r=t[1]-e[1];return r<0&&(--n,r+=W),[n,r]}function oy(e){let t=py,n=`${`0`.repeat(t)}${e[1]}Z`,r=n.substring(n.length-t-1);return new Date(e[0]*1e3).toISOString().replace(`000Z`,r)}function sy(e){return e[0]*W+e[1]}function cy(e){return e[0]*1e3+e[1]/1e6}function ly(e){return e[0]*1e6+e[1]/1e3}function uy(e){return Array.isArray(e)&&e.length===2&&typeof e[0]==`number`&&typeof e[1]==`number`}function dy(e){return uy(e)||typeof e==`number`||e instanceof Date}function fy(e,t){let n=[e[0]+t[0],e[1]+t[1]];return n[1]>=W&&(n[1]-=W,n[0]+=1),n}var py,my,W,hy=e((()=>{ty(),py=9,my=10**6,W=10**py}));function gy(e){typeof e!=`number`&&e.unref()}var _y=e((()=>{})),G,vy=e((()=>{(function(e){e[e.SUCCESS=0]=`SUCCESS`,e[e.FAILED=1]=`FAILED`})(G||(G={}))})),yy,by=e((()=>{u(),n(),yy=class{constructor(e={}){r(this,`_propagators`,void 0),r(this,`_fields`,void 0),this._propagators=e.propagators??[],this._fields=Array.from(new Set(this._propagators.map(e=>typeof e.fields==`function`?e.fields():[]).reduce((e,t)=>e.concat(t),[])))}inject(e,t,n){for(let r of this._propagators)try{r.inject(e,t,n)}catch(e){d.warn(`Failed to inject with ${r.constructor.name}. Err: ${e.message}`)}}extract(e,t,n){return this._propagators.reduce((e,r)=>{try{return r.extract(e,t,n)}catch(e){d.warn(`Failed to extract with ${r.constructor.name}. Err: ${e.message}`)}return e},e)}fields(){return this._fields.slice()}}}));function xy(e){return Cy.test(e)}function Sy(e){return wy.test(e)&&!Ty.test(e)}var K,Cy,wy,Ty,Ey=e((()=>{K=`[_0-9a-z-*/]`,Cy=RegExp(`^(?:${`[a-z]${K}{0,255}`}|${`[a-z0-9]${K}{0,240}@[a-z]${K}{0,13}`})$`),wy=/^[ -~]{0,255}[!-~]$/,Ty=/,|=/})),Dy,Oy,ky,Ay,jy,My=e((()=>{Ey(),n(),Dy=32,Oy=512,ky=`,`,Ay=`=`,jy=class e{constructor(e){r(this,`_internalState`,new Map),e&&this._parse(e)}set(e,t){let n=this._clone();return n._internalState.has(e)&&n._internalState.delete(e),n._internalState.set(e,t),n}unset(e){let t=this._clone();return t._internalState.delete(e),t}get(e){return this._internalState.get(e)}serialize(){return this._keys().reduce((e,t)=>(e.push(t+Ay+this.get(t)),e),[]).join(ky)}_parse(e){e.length>Oy||(this._internalState=e.split(ky).reverse().reduce((e,t)=>{let n=t.trim(),r=n.indexOf(Ay);if(r!==-1){let i=n.slice(0,r),a=n.slice(r+1,t.length);xy(i)&&Sy(a)&&e.set(i,a)}return e},new Map),this._internalState.size>Dy&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,Dy))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){let t=new e;return t._internalState=new Map(this._internalState),t}}}));function Ny(e){let t=Fy.exec(e);return!t||t[1]===`00`&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}}var q,J,Py,Fy,Iy,Ly=e((()=>{u(),p(),My(),q=`traceparent`,J=`tracestate`,Py=`00`,Fy=RegExp(`^\\s?((?!ff)[\\da-f]{2})-((?![0]{32})[\\da-f]{32})-((?![0]{16})[\\da-f]{16})-([\\da-f]{2})(-.*)?\\s?$`),Iy=class{inject(e,t,n){let r=c.getSpanContext(e);if(!r||ae(e)||!te(r))return;let i=`${Py}-${r.traceId}-${r.spanId}-0${Number(r.traceFlags||s.NONE).toString(16)}`;n.set(t,q,i),r.traceState&&n.set(t,J,r.traceState.serialize())}extract(e,t,n){let r=n.get(t,q);if(!r)return e;let i=Array.isArray(r)?r[0]:r;if(typeof i!=`string`)return e;let a=Ny(i);if(!a)return e;a.isRemote=!0;let o=n.get(t,J);if(o){let e=Array.isArray(o)?o.join(`,`):o;a.traceState=new jy(typeof e==`string`?e:void 0)}return c.setSpanContext(e,a)}fields(){return[q,J]}}}));function Ry(e,t){return e.setValue(Y,t)}function zy(e){return e.deleteValue(Y)}function By(e){return e.getValue(Y)}var Y,Vy,Hy=e((()=>{u(),Y=o(`OpenTelemetry SDK Context Key RPC_METADATA`),(function(e){e.HTTP=`http`})(Vy||(Vy={}))}));function Uy(e){if(!Wy(e)||Gy(e)!==Jy)return!1;let t=$y(e);if(t===null)return!0;let n=tb.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&n instanceof n&&Zy.call(n)===Qy}function Wy(e){return typeof e==`object`&&!!e}function Gy(e){return e==null?e===void 0?Xy:Yy:X&&X in Object(e)?Ky(e):qy(e)}function Ky(e){let t=tb.call(e,X),n=e[X],r=!1;try{e[X]=void 0,r=!0}catch{}let i=nb.call(e);return r&&(t?e[X]=n:delete e[X]),i}function qy(e){return nb.call(e)}var Jy,Yy,Xy,Zy,Qy,$y,eb,tb,X,nb,rb=e((()=>{Jy=`[object Object]`,Yy=`[object Null]`,Xy=`[object Undefined]`,Zy=Function.prototype.toString,Qy=Zy.call(Object),$y=Object.getPrototypeOf,eb=Object.prototype,tb=eb.hasOwnProperty,X=Symbol?Symbol.toStringTag:void 0,nb=eb.toString}));function ib(...e){let t=e.shift(),n=new WeakMap;for(;e.length>0;)t=ob(t,e.shift(),0,n);return t}function ab(e){return Z(e)?e.slice():e}function ob(e,t,n=0,r){let i;if(!(n>ub)){if(n++,$(e)||$(t)||cb(t))i=ab(t);else if(Z(e)){if(i=e.slice(),Z(t))for(let e=0,n=t.length;e<n;e++)i.push(ab(t[e]));else if(Q(t)){let e=Object.keys(t);for(let n=0,r=e.length;n<r;n++){let r=e[n];r===`__proto__`||r===`constructor`||r===`prototype`||(i[r]=ab(t[r]))}}}else if(Q(e))if(Q(t)){if(!lb(e,t))return t;i=Object.assign({},e);let a=Object.keys(t);for(let o=0,s=a.length;o<s;o++){let s=a[o];if(s===`__proto__`||s===`constructor`||s===`prototype`)continue;let c=t[s];if($(c))c===void 0?delete i[s]:i[s]=c;else{let a=i[s],o=c;if(sb(e,s,r)||sb(t,s,r))delete i[s];else{if(Q(a)&&Q(o)){let n=r.get(a)||[],i=r.get(o)||[];n.push({obj:e,key:s}),i.push({obj:t,key:s}),r.set(a,n),r.set(o,i)}i[s]=ob(i[s],c,n,r)}}}}else i=t;return i}}function sb(e,t,n){let r=n.get(e[t])||[];for(let n=0,i=r.length;n<i;n++){let i=r[n];if(i.key===t&&i.obj===e)return!0}return!1}function Z(e){return Array.isArray(e)}function cb(e){return typeof e==`function`}function Q(e){return!$(e)&&!Z(e)&&!cb(e)&&typeof e==`object`}function $(e){return typeof e==`string`||typeof e==`number`||typeof e==`boolean`||e===void 0||e instanceof Date||e instanceof RegExp||e===null}function lb(e,t){return!(!Uy(e)||!Uy(t))}var ub,db=e((()=>{rb(),ub=20}));function fb(e,t){let n,r=new Promise(function(e,r){n=setTimeout(function(){r(new pb(`Operation timed out.`))},t)});return Promise.race([e,r]).then(e=>(clearTimeout(n),e),e=>{throw clearTimeout(n),e})}var pb,mb=e((()=>{pb=class e extends Error{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}}}));function hb(e,t){return typeof t==`string`?e===t:!!e.match(t)}function gb(e,t){if(!t)return!1;for(let n of t)if(hb(e,n))return!0;return!1}var _b=e((()=>{})),vb,yb=e((()=>{n(),vb=class{constructor(){r(this,`_promise`,void 0),r(this,`_resolve`,void 0),r(this,`_reject`,void 0),this._promise=new Promise((e,t)=>{this._resolve=e,this._reject=t})}get promise(){return this._promise}resolve(e){this._resolve(e)}reject(e){this._reject(e)}}})),bb,xb=e((()=>{yb(),n(),bb=class{constructor(e,t){r(this,`_isCalled`,!1),r(this,`_deferred`,new vb),r(this,`_callback`,void 0),r(this,`_that`,void 0),this._callback=e,this._that=t}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...e){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...e)).then(e=>this._deferred.resolve(e),e=>this._deferred.reject(e))}catch(e){this._deferred.reject(e)}}return this._deferred.promise}}}));function Sb(e){return e==null?void 0:Cb[e.toUpperCase()]??(d.warn(`Unknown log level "${e}", expected one of ${Object.keys(Cb)}, using default`),a.INFO)}var Cb,wb=e((()=>{u(),Cb={ALL:a.ALL,VERBOSE:a.VERBOSE,DEBUG:a.DEBUG,INFO:a.INFO,WARN:a.WARN,ERROR:a.ERROR,NONE:a.NONE}}));function Tb(e,t){return new Promise(n=>{l.with(re(l.active()),()=>{e.export(t,n)})})}var Eb=e((()=>{u(),p()})),Db=t({AnchoredClock:()=>he,BindOnceFuture:()=>bb,CompositePropagator:()=>yy,ExportResultCode:()=>G,RPCType:()=>Vy,SDK_INFO:()=>Qv,TRACE_PARENT_HEADER:()=>q,TRACE_STATE_HEADER:()=>J,TimeoutError:()=>pb,TraceState:()=>jy,W3CBaggagePropagator:()=>pe,W3CTraceContextPropagator:()=>Iy,_globalThis:()=>Ie,addHrTimes:()=>fy,callWithTimeout:()=>fb,deleteRPCMetadata:()=>zy,diagLogLevelFromString:()=>Sb,getBooleanFromEnv:()=>Ne,getNumberFromEnv:()=>je,getRPCMetadata:()=>By,getStringFromEnv:()=>Me,getStringListFromEnv:()=>Pe,getTimeOrigin:()=>ny,globalErrorHandler:()=>Oe,hrTime:()=>ry,hrTimeDuration:()=>ay,hrTimeToMicroseconds:()=>ly,hrTimeToMilliseconds:()=>cy,hrTimeToNanoseconds:()=>sy,hrTimeToTimeStamp:()=>oy,internal:()=>Ob,isAttributeValue:()=>ye,isTimeInput:()=>dy,isTimeInputHrTime:()=>uy,isTracingSuppressed:()=>ae,isUrlIgnored:()=>gb,loggingErrorHandler:()=>Ce,merge:()=>ib,millisToHrTime:()=>U,otperformance:()=>H,parseKeyPairsIntoRecord:()=>de,parseTraceParent:()=>Ny,sanitizeAttributes:()=>_e,setGlobalErrorHandler:()=>De,setRPCMetadata:()=>Ry,suppressTracing:()=>re,timeInputToHrTime:()=>iy,unrefTimer:()=>gy,unsuppressTracing:()=>ie,urlMatches:()=>hb}),Ob,kb=e((()=>{me(),ge(),Se(),Ae(),Ee(),hy(),_y(),vy(),fe(),ty(),by(),Ly(),Hy(),p(),My(),db(),mb(),_b(),xb(),wb(),Eb(),Ob={_export:Tb}}));export{Hd as A,re as B,y_ as C,V as D,B as E,Oe as F,Ae as I,fe as L,je as M,Me as N,z as O,Fe as P,de as R,Ph as S,R as T,Jv as _,xb as a,Mh as b,G as c,sy as d,hy as f,$v as g,Qv as h,bb as i,Am as j,q_ as k,vy as l,iy as m,kb as n,fb as o,U as p,Ob as r,mb as s,Db as t,ly as u,Yv as v,x_ as w,Nh as x,kh as y,p as z};
@@ -0,0 +1 @@
1
+ import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{n as t,t as n}from"./defineProperty-C-QyHrDq.js";import{n as r,s as i}from"./esm-lWlUmoUA.js";import{C as a,D as o,E as s,T as c,h as l,n as u,v as d}from"./esm-BbMeEYcz.js";function f(){if(p===void 0)try{let e=globalThis.process.argv0;p=e?`unknown_service:${e}`:`unknown_service`}catch{p=`unknown_service`}return p}var p,m=e((()=>{})),h,g=e((()=>{h=e=>typeof e==`object`&&!!e&&typeof e.then==`function`}));function _(e,t){return S.FromAttributeList(Object.entries(e),t)}function v(){return _({[a]:f(),[c]:l[c],[s]:l[s],[o]:l[o]})}function y(e){return e.map(([e,t])=>h(t)?[e,t.catch(t=>{i.debug(`promise rejection for resource attribute: %s - %s`,e,t)})]:[e,t])}function b(e){if(typeof e==`string`||e===void 0)return e;i.warn(`Schema URL must be string or undefined, got %s. Schema URL will be ignored.`,e)}function x(e,t){let n=e?.schemaUrl,r=t?.schemaUrl,a=n===void 0||n===``,o=r===void 0||r===``;if(a)return r;if(o||n===r)return n;i.warn(`Schema URL merge conflict: old resource has "%s", updating resource has "%s". Resulting resource will have undefined Schema URL.`,n,r)}var S,C=e((()=>{r(),u(),d(),m(),g(),t(),S=class e{static FromAttributeList(t,n){let r=new e({},n);return r._rawAttributes=y(t),r._asyncAttributesPending=t.filter(([e,t])=>h(t)).length>0,r}constructor(e,t){n(this,`_rawAttributes`,void 0),n(this,`_asyncAttributesPending`,!1),n(this,`_schemaUrl`,void 0),n(this,`_memoizedAttributes`,void 0);let r=e.attributes??{};this._rawAttributes=Object.entries(r).map(([e,t])=>(h(t)&&(this._asyncAttributesPending=!0),[e,t])),this._rawAttributes=y(this._rawAttributes),this._schemaUrl=b(t?.schemaUrl)}get asyncAttributesPending(){return this._asyncAttributesPending}async waitForAsyncAttributes(){if(this.asyncAttributesPending){for(let e=0;e<this._rawAttributes.length;e++){let[t,n]=this._rawAttributes[e];this._rawAttributes[e]=[t,h(n)?await n:n]}this._asyncAttributesPending=!1}}get attributes(){if(this.asyncAttributesPending&&i.error(`Accessing resource attributes before async attributes settled`),this._memoizedAttributes)return this._memoizedAttributes;let e={};for(let[t,n]of this._rawAttributes){if(h(n)){i.debug(`Unsettled resource attribute ${t} skipped`);continue}n!=null&&(e[t]??(e[t]=n))}return this._asyncAttributesPending||(this._memoizedAttributes=e),e}getRawAttributes(){return this._rawAttributes}get schemaUrl(){return this._schemaUrl}merge(t){if(t==null)return this;let n=x(this,t),r=n?{schemaUrl:n}:void 0;return e.FromAttributeList([...t.getRawAttributes(),...this.getRawAttributes()],r)}}})),w=e((()=>{C(),m()}));export{v as n,C as r,w as t};
@@ -0,0 +1,34 @@
1
+ import{i as e,n as t,o as n,t as r}from"./rolldown-runtime-DaDcL9Zw.js";import{n as i,t as a}from"./defineProperty-C-QyHrDq.js";import{a as o,c as s,i as c,n as l,o as u,r as d,s as f,t as p}from"./classPrivateFieldSet2-D4U5K-I3.js";import{n as m,t as h}from"./classPrivateMethodInitSpec-BXQD0Vh4.js";import{i as g,n as _,r as v,t as y}from"./figures-5ThXQEtq.js";import{n as b,t as x}from"./cwd-BcO6WHKo.js";import{w as ee,x as te}from"./debug-8DCufdSp.js";import{o as ne,s as re}from"./log-DaILwWJa.js";import{aborted as ie,callbackify as S,debuglog as ae,inspect as oe,promisify as se,stripVTControlCharacters as ce}from"node:util";import C,{execArgv as le,execPath as ue,hrtime as de,platform as fe}from"node:process";import w from"node:path";import{ChildProcess as pe,execFile as me,spawn as he,spawnSync as ge}from"node:child_process";import{appendFileSync as _e,createReadStream as ve,createWriteStream as ye,readFileSync as be,statSync as xe,writeFileSync as Se}from"node:fs";import{constants as Ce}from"node:os";import we from"node:tty";import{EventEmitter as Te,addAbortListener as Ee,on as De,once as T,setMaxListeners as Oe}from"node:events";import{Duplex as ke,PassThrough as Ae,Readable as E,Transform as je,Writable as Me,getDefaultHighWaterMark as Ne}from"node:stream";import{StringDecoder as Pe}from"node:string_decoder";import{fileURLToPath as Fe}from"node:url";import{Buffer as Ie}from"node:buffer";import{scheduler as Le,setImmediate as Re,setTimeout as ze}from"node:timers/promises";import{serialize as Be}from"node:v8";import{finished as D}from"node:stream/promises";function O(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}var k=t((()=>{})),Ve,He,Ue,We,Ge=t((()=>{Ve=(e,t)=>{let n=We(He(e));if(typeof n!=`string`)throw TypeError(`${t} must be a string or a file URL: ${n}.`);return n},He=e=>Ue(e)?e.toString():e,Ue=e=>typeof e!=`string`&&e&&Object.getPrototypeOf(e)===String.prototype,We=e=>e instanceof URL?Fe(e):e})),Ke,qe=t((()=>{k(),Ge(),Ke=(e,t=[],n={})=>{let r=Ve(e,`First argument`),[i,a]=O(t)?[[],t]:[t,n];if(!Array.isArray(i))throw TypeError(`Second argument must be either an array of arguments or an options object: ${i}`);if(i.some(e=>typeof e==`object`&&!!e))throw TypeError(`Second argument must be an array of strings: ${i}`);let o=i.map(String),s=o.find(e=>e.includes(`\0`));if(s!==void 0)throw TypeError(`Arguments cannot contain null bytes ("\\0"): ${s}`);if(!O(a))throw TypeError(`Last argument must be an options object: ${a}`);return[r,o,a]}})),Je,Ye,A,Xe,Ze,Qe,$e,et,tt,nt,rt,it,at,ot,j=t((()=>{({toString:Je}=Object.prototype),Ye=e=>Je.call(e)===`[object ArrayBuffer]`,A=e=>Je.call(e)===`[object Uint8Array]`,Xe=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength),Ze=new TextEncoder,Qe=e=>Ze.encode(e),$e=new TextDecoder,et=e=>$e.decode(e),tt=(e,t)=>nt(e,t).join(``),nt=(e,t)=>{if(t===`utf8`&&e.every(e=>typeof e==`string`))return e;let n=new Pe(t),r=e.map(e=>typeof e==`string`?Qe(e):e).map(e=>n.write(e)),i=n.end();return i===``?r:[...r,i]},rt=e=>e.length===1&&A(e[0])?e[0]:at(it(e)),it=e=>e.map(e=>typeof e==`string`?Qe(e):e),at=e=>{let t=new Uint8Array(ot(e)),n=0;for(let r of e)t.set(r,n),n+=r.length;return t},ot=e=>{let t=0;for(let n of e)t+=n.length;return t}})),st,ct,lt,ut,dt,ft,pt,mt,ht,gt=t((()=>{k(),j(),st=e=>Array.isArray(e)&&Array.isArray(e.raw),ct=(e,t)=>{let n=[];for(let[r,i]of e.entries())n=lt({templates:e,expressions:t,tokens:n,index:r,template:i});if(n.length===0)throw TypeError(`Template script must not be empty`);let[r,...i]=n;return[r,i,{}]},lt=({templates:e,expressions:t,tokens:n,index:r,template:i})=>{if(i===void 0)throw TypeError(`Invalid backslash sequence: ${e.raw[r]}`);let{nextTokens:a,leadingWhitespaces:o,trailingWhitespaces:s}=ut(i,e.raw[r]),c=pt(n,a,o);if(r===t.length)return c;let l=t[r],u=Array.isArray(l)?l.map(e=>mt(e)):[mt(l)];return pt(c,u,s)},ut=(e,t)=>{if(t.length===0)return{nextTokens:[],leadingWhitespaces:!1,trailingWhitespaces:!1};let n=[],r=0,i=dt.has(t[0]);for(let i=0,a=0;i<e.length;i+=1,a+=1){let o=t[a];if(dt.has(o))r!==i&&n.push(e.slice(r,i)),r=i+1;else if(o===`\\`){let e=t[a+1];e===`
2
+ `?(--i,a+=1):e===`u`&&t[a+2]===`{`?a=t.indexOf(`}`,a+3):a+=ft[e]??1}}let a=r===e.length;return a||n.push(e.slice(r)),{nextTokens:n,leadingWhitespaces:i,trailingWhitespaces:a}},dt=new Set([` `,` `,`\r`,`
3
+ `]),ft={x:3,u:5},pt=(e,t,n)=>n||e.length===0||t.length===0?[...e,...t]:[...e.slice(0,-1),`${e.at(-1)}${t[0]}`,...t.slice(1)],mt=e=>{let t=typeof e;if(t===`string`)return e;if(t===`number`)return String(e);if(O(e)&&(`stdout`in e||`isMaxBuffer`in e))return ht(e);throw e instanceof pe||Object.prototype.toString.call(e)===`[object Promise]`?TypeError("Unexpected subprocess in template expression. Please use ${await subprocess} instead of ${subprocess}."):TypeError(`Unexpected "${t}" in template expression`)},ht=({stdout:e})=>{if(typeof e==`string`)return e;if(A(e))return et(e);throw TypeError(e===void 0?`Missing result.stdout in template expression. This is probably due to the previous subprocess' "stdout" option.`:`Unexpected "${typeof e}" stdout in template expression`)}})),M,_t,N,vt,P=t((()=>{M=e=>_t.includes(e),_t=[C.stdin,C.stdout,C.stderr],N=[`stdin`,`stdout`,`stderr`],vt=e=>N[e]??`stdio[${e}]`})),yt,bt,xt,St,Ct,wt,Tt,Et,Dt,Ot,kt,At,jt,Mt,F=t((()=>{k(),P(),yt=e=>{let t={...e};for(let n of jt)t[n]=bt(e,n);return t},bt=(e,t)=>{let n=Array.from({length:xt(e)+1}),r=St(e[t],n,t);return kt(r,t)},xt=({stdio:e})=>Array.isArray(e)?Math.max(e.length,N.length):N.length,St=(e,t,n)=>O(e)?Ct(e,t,n):t.fill(e),Ct=(e,t,n)=>{for(let r of Object.keys(e).sort(wt))for(let i of Et(r,n,t))t[i]=e[r];return t},wt=(e,t)=>Tt(e)<Tt(t)?1:-1,Tt=e=>e===`stdout`||e===`stderr`?0:e===`all`?2:1,Et=(e,t,n)=>{if(e===`ipc`)return[n.length-1];let r=Dt(e);if(r===void 0||r===0)throw TypeError(`"${t}.${e}" is invalid.
4
+ It must be "${t}.stdout", "${t}.stderr", "${t}.all", "${t}.ipc", or "${t}.fd3", "${t}.fd4" (and so on).`);if(r>=n.length)throw TypeError(`"${t}.${e}" is invalid: that file descriptor does not exist.
5
+ Please set the "stdio" option to ensure that file descriptor exists.`);return r===`all`?[1,2]:[r]},Dt=e=>{if(e===`all`)return e;if(N.includes(e))return N.indexOf(e);let t=Ot.exec(e);if(t!==null)return Number(t[1])},Ot=/^fd(\d+)$/,kt=(e,t)=>e.map(e=>e===void 0?At[t]:e),At={lines:!1,buffer:!0,maxBuffer:1e3*1e3*100,verbose:ae(`execa`).enabled?`full`:`none`,stripFinalNewline:!0},jt=[`lines`,`buffer`,`maxBuffer`,`verbose`,`stripFinalNewline`],Mt=(e,t)=>t===`ipc`?e.at(-1):e[t]})),Nt,Pt,Ft,It,Lt,Rt,zt,I=t((()=>{F(),Nt=({verbose:e},t)=>It(e,t)!==`none`,Pt=({verbose:e},t)=>![`none`,`short`].includes(It(e,t)),Ft=({verbose:e},t)=>{let n=It(e,t);return Rt(n)?n:void 0},It=(e,t)=>t===void 0?Lt(e):Mt(e,t),Lt=e=>e.find(e=>Rt(e))??zt.findLast(t=>e.includes(t)),Rt=e=>typeof e==`function`,zt=[`none`,`short`,`full`]})),Bt,Vt,Ht,Ut,Wt,Gt,Kt,qt,Jt,Yt,Xt=t((()=>{Bt=(e,t)=>{let n=[e,...t];return{command:n.join(` `),escapedCommand:n.map(e=>Jt(Ht(e))).join(` `)}},Vt=e=>ce(e).split(`
6
+ `).map(e=>Ht(e)).join(`
7
+ `),Ht=e=>e.replaceAll(Gt,e=>Ut(e)),Ut=e=>{let t=Kt[e];if(t!==void 0)return t;let n=e.codePointAt(0),r=n.toString(16);return n<=qt?`\\u${r.padStart(4,`0`)}`:`\\U${r}`},Wt=()=>{try{return RegExp(`\\p{Separator}|\\p{Other}`,`gu`)}catch{return/[\s\u0000-\u001F\u007F-\u009F\u00AD]/g}},Gt=Wt(),Kt={" ":` `,"\b":`\\b`,"\f":`\\f`,"\n":`\\n`,"\r":`\\r`," ":`\\t`},qt=65535,Jt=e=>Yt.test(e)?e:fe===`win32`?`"${e.replaceAll(`"`,`""`)}"`:`'${e.replaceAll(`'`,`'\\''`)}'`,Yt=/^[\w./-]+$/})),Zt,L,Qt,$t,en,tn,nn=t((()=>{Zt=we?.WriteStream?.prototype?.hasColors?.()??!1,L=(e,t)=>{if(!Zt)return e=>e;let n=`\u001B[${e}m`,r=`\u001B[${t}m`;return e=>{let i=e+``,a=i.indexOf(r);if(a===-1)return n+i+r;let o=n,s=0,c=(t===22?r:``)+n;for(;a!==-1;)o+=i.slice(s,a)+c,s=a+r.length,a=i.indexOf(r,s);return o+=i.slice(s)+r,o}},L(0,0),Qt=L(1,22),L(2,22),L(3,23),L(4,24),L(53,55),L(7,27),L(8,28),L(9,29),L(30,39),L(31,39),L(32,39),L(33,39),L(34,39),L(35,39),L(36,39),L(37,39),$t=L(90,39),L(40,49),L(41,49),L(42,49),L(43,49),L(44,49),L(45,49),L(46,49),L(47,49),L(100,49),en=L(91,39),L(92,39),tn=L(93,39),L(94,39),L(95,39),L(96,39),L(97,39),L(101,49),L(102,49),L(103,49),L(104,49),L(105,49),L(106,49),L(107,49)})),rn=t((()=>{nn(),nn()})),an,on,sn,cn,ln,un,dn,fn=t((()=>{_(),rn(),an=({type:e,message:t,timestamp:n,piped:r,commandId:i,result:{failed:a=!1}={},options:{reject:o=!0}})=>{let s=on(n),c=ln[e]({failed:a,reject:o,piped:r}),l=dn[e]({reject:o});return`${$t(`[${s}]`)} ${$t(`[${i}]`)} ${l(c)} ${l(t)}`},on=e=>`${sn(e.getHours(),2)}:${sn(e.getMinutes(),2)}:${sn(e.getSeconds(),2)}.${sn(e.getMilliseconds(),3)}`,sn=(e,t)=>String(e).padStart(t,`0`),cn=({failed:e,reject:t})=>e?t?y.cross:y.warning:y.tick,ln={command:({piped:e})=>e?`|`:`$`,output:()=>` `,ipc:()=>`*`,error:cn,duration:cn},un=e=>e,dn={command:()=>Qt,output:()=>un,ipc:()=>un,error:({reject:e})=>e?en:tn,duration:()=>$t}})),pn,mn,hn,gn=t((()=>{I(),pn=(e,t,n)=>{let r=Ft(t,n);return e.map(({verboseLine:e,verboseObject:t})=>mn(e,t,r)).filter(e=>e!==void 0).map(e=>hn(e)).join(``)},mn=(e,t,n)=>{if(n===void 0)return e;let r=n(e,t);if(typeof r==`string`)return r},hn=e=>e.endsWith(`
8
+ `)?e:`${e}\n`})),_n,vn,yn,bn,xn,Sn,Cn=t((()=>{Xt(),fn(),gn(),_n=({type:e,verboseMessage:t,fdNumber:n,verboseInfo:r,result:i})=>{let a=vn({type:e,result:i,verboseInfo:r}),o=pn(yn(t,a),r,n);o!==``&&console.warn(o.slice(0,-1))},vn=({type:e,result:t,verboseInfo:{escapedCommand:n,commandId:r,rawOptions:{piped:i=!1,...a}}})=>({type:e,escapedCommand:n,commandId:`${r}`,timestamp:new Date,piped:i,result:t,options:a}),yn=(e,t)=>e.split(`
9
+ `).map(e=>bn({...t,message:e})),bn=e=>({verboseLine:an(e),verboseObject:e}),xn=e=>Vt(typeof e==`string`?e:oe(e)).replaceAll(` `,` `.repeat(Sn)),Sn=2})),wn,Tn=t((()=>{I(),Cn(),wn=(e,t)=>{Nt(t)&&_n({type:`command`,verboseMessage:e,verboseInfo:t})}})),En,Dn,On,kn,An=t((()=>{I(),En=(e,t,n)=>(kn(e),{verbose:e,escapedCommand:t,commandId:Dn(e),rawOptions:n}),Dn=e=>Nt({verbose:e})?On++:void 0,On=0n,kn=e=>{for(let t of e){if(t===!1)throw TypeError(`The "verbose: false" option was renamed to "verbose: 'none'".`);if(t===!0)throw TypeError(`The "verbose: true" option was renamed to "verbose: 'short'".`);if(!zt.includes(t)&&!Rt(t)){let e=zt.map(e=>`'${e}'`).join(`, `);throw TypeError(`The "verbose" option must not be ${t}. Allowed values are: ${e} or a function.`)}}}})),jn,Mn,Nn=t((()=>{jn=()=>de.bigint(),Mn=e=>Number(de.bigint()-e)/1e6})),Pn,Fn=t((()=>{Tn(),An(),Nn(),Xt(),F(),Pn=(e,t,n)=>{let r=jn(),{command:i,escapedCommand:a}=Bt(e,t),o=En(bt(n,`verbose`),a,{...n});return wn(a,o),{command:i,escapedCommand:a,startTime:r,verboseInfo:o}}})),In=r(((t,n)=>{n.exports=o,o.sync=s;var r=e(`fs`);function i(e,t){var n=t.pathExt===void 0?process.env.PATHEXT:t.pathExt;if(!n||(n=n.split(`;`),n.indexOf(``)!==-1))return!0;for(var r=0;r<n.length;r++){var i=n[r].toLowerCase();if(i&&e.substr(-i.length).toLowerCase()===i)return!0}return!1}function a(e,t,n){return!e.isSymbolicLink()&&!e.isFile()?!1:i(t,n)}function o(e,t,n){r.stat(e,function(r,i){n(r,!r&&a(i,e,t))})}function s(e,t){return a(r.statSync(e),e,t)}})),Ln=r(((t,n)=>{n.exports=i,i.sync=a;var r=e(`fs`);function i(e,t,n){r.stat(e,function(e,r){n(e,!e&&o(r,t))})}function a(e,t){return o(r.statSync(e),t)}function o(e,t){return e.isFile()&&s(e,t)}function s(e,t){var n=e.mode,r=e.uid,i=e.gid,a=t.uid===void 0?process.getuid&&process.getuid():t.uid,o=t.gid===void 0?process.getgid&&process.getgid():t.gid,s=64,c=8,l=1,u=s|c;return n&l||n&c&&i===o||n&s&&r===a||n&u&&a===0}})),Rn=r(((t,n)=>{e(`fs`);var r=process.platform===`win32`||global.TESTING_WINDOWS?In():Ln();n.exports=i,i.sync=a;function i(e,t,n){if(typeof t==`function`&&(n=t,t={}),!n){if(typeof Promise!=`function`)throw TypeError(`callback not provided`);return new Promise(function(n,r){i(e,t||{},function(e,t){e?r(e):n(t)})})}r(e,t||{},function(e,r){e&&(e.code===`EACCES`||t&&t.ignoreErrors)&&(e=null,r=!1),n(e,r)})}function a(e,t){try{return r.sync(e,t||{})}catch(e){if(t&&t.ignoreErrors||e.code===`EACCES`)return!1;throw e}}})),zn=r(((t,n)=>{var r=process.platform===`win32`||process.env.OSTYPE===`cygwin`||process.env.OSTYPE===`msys`,i=e(`path`),a=r?`;`:`:`,o=Rn(),s=e=>Object.assign(Error(`not found: ${e}`),{code:`ENOENT`}),c=(e,t)=>{let n=t.colon||a,i=e.match(/\//)||r&&e.match(/\\/)?[``]:[...r?[process.cwd()]:[],...(t.path||process.env.PATH||``).split(n)],o=r?t.pathExt||process.env.PATHEXT||`.EXE;.CMD;.BAT;.COM`:``,s=r?o.split(n):[``];return r&&e.indexOf(`.`)!==-1&&s[0]!==``&&s.unshift(``),{pathEnv:i,pathExt:s,pathExtExe:o}},l=(e,t,n)=>{typeof t==`function`&&(n=t,t={}),t||(t={});let{pathEnv:r,pathExt:a,pathExtExe:l}=c(e,t),u=[],d=n=>new Promise((a,o)=>{if(n===r.length)return t.all&&u.length?a(u):o(s(e));let c=r[n],l=/^".*"$/.test(c)?c.slice(1,-1):c,d=i.join(l,e),p=!l&&/^\.[\\\/]/.test(e)?e.slice(0,2)+d:d;a(f(p,n,0))}),f=(e,n,r)=>new Promise((i,s)=>{if(r===a.length)return i(d(n+1));let c=a[r];o(e+c,{pathExt:l},(a,o)=>{if(!a&&o)if(t.all)u.push(e+c);else return i(e+c);return i(f(e,n,r+1))})});return n?d(0).then(e=>n(null,e),n):d(0)};n.exports=l,l.sync=(e,t)=>{t=t||{};let{pathEnv:n,pathExt:r,pathExtExe:a}=c(e,t),l=[];for(let s=0;s<n.length;s++){let c=n[s],u=/^".*"$/.test(c)?c.slice(1,-1):c,d=i.join(u,e),f=!u&&/^\.[\\\/]/.test(e)?e.slice(0,2)+d:d;for(let e=0;e<r.length;e++){let n=f+r[e];try{if(o.sync(n,{pathExt:a}))if(t.all)l.push(n);else return n}catch{}}}if(t.all&&l.length)return l;if(t.nothrow)return null;throw s(e)}})),Bn=r(((e,t)=>{var n=(e={})=>{let t=e.env||process.env;return(e.platform||process.platform)===`win32`?Object.keys(t).reverse().find(e=>e.toUpperCase()===`PATH`)||`Path`:`PATH`};t.exports=n,t.exports.default=n})),Vn=r(((t,n)=>{var r=e(`path`),i=zn(),a=Bn();function o(e,t){let n=e.options.env||process.env,o=process.cwd(),s=e.options.cwd!=null,c=s&&process.chdir!==void 0&&!process.chdir.disabled;if(c)try{process.chdir(e.options.cwd)}catch{}let l;try{l=i.sync(e.command,{path:n[a({env:n})],pathExt:t?r.delimiter:void 0})}catch{}finally{c&&process.chdir(o)}return l&&(l=r.resolve(s?e.options.cwd:``,l)),l}function s(e){return o(e)||o(e,!0)}n.exports=s})),Hn=r(((e,t)=>{var n=/([()\][%!^"`<>&|;, *?])/g;function r(e){return e=e.replace(n,`^$1`),e}function i(e,t){return e=`${e}`,e=e.replace(/(?=(\\+?)?)\1"/g,`$1$1\\"`),e=e.replace(/(?=(\\+?)?)\1$/,`$1$1`),e=`"${e}"`,e=e.replace(n,`^$1`),t&&(e=e.replace(n,`^$1`)),e}t.exports.command=r,t.exports.argument=i})),Un=r(((e,t)=>{t.exports=/^#!(.*)/})),Wn=r(((e,t)=>{var n=Un();t.exports=(e=``)=>{let t=e.match(n);if(!t)return null;let[r,i]=t[0].replace(/#! ?/,``).split(` `),a=r.split(`/`).pop();return a===`env`?i:i?`${a} ${i}`:a}})),Gn=r(((t,n)=>{var r=e(`fs`),i=Wn();function a(e){let t=Buffer.alloc(150),n;try{n=r.openSync(e,`r`),r.readSync(n,t,0,150,0),r.closeSync(n)}catch{}return i(t.toString())}n.exports=a})),Kn=r(((t,n)=>{var r=e(`path`),i=Vn(),a=Hn(),o=Gn(),s=process.platform===`win32`,c=/\.(?:com|exe)$/i,l=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function u(e){e.file=i(e);let t=e.file&&o(e.file);return t?(e.args.unshift(e.file),e.command=t,i(e)):e.file}function d(e){if(!s)return e;let t=u(e),n=!c.test(t);if(e.options.forceShell||n){let n=l.test(t);e.command=r.normalize(e.command),e.command=a.command(e.command),e.args=e.args.map(e=>a.argument(e,n)),e.args=[`/d`,`/s`,`/c`,`"${[e.command].concat(e.args).join(` `)}"`],e.command=process.env.comspec||`cmd.exe`,e.options.windowsVerbatimArguments=!0}return e}function f(e,t,n){t&&!Array.isArray(t)&&(n=t,t=null),t=t?t.slice(0):[],n=Object.assign({},n);let r={command:e,args:t,options:n,file:void 0,original:{command:e,args:t}};return n.shell?r:d(r)}n.exports=f})),qn=r(((e,t)=>{var n=process.platform===`win32`;function r(e,t){return Object.assign(Error(`${t} ${e.command} ENOENT`),{code:`ENOENT`,errno:`ENOENT`,syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function i(e,t){if(!n)return;let r=e.emit;e.emit=function(n,i){if(n===`exit`){let n=a(i,t);if(n)return r.call(e,`error`,n)}return r.apply(e,arguments)}}function a(e,t){return n&&e===1&&!t.file?r(t.original,`spawn`):null}function o(e,t){return n&&e===1&&!t.file?r(t.original,`spawnSync`):null}t.exports={hookChildProcess:i,verifyENOENT:a,verifyENOENTSync:o,notFoundError:r}})),Jn=r(((t,n)=>{var r=e(`child_process`),i=Kn(),a=qn();function o(e,t,n){let o=i(e,t,n),s=r.spawn(o.command,o.args,o.options);return a.hookChildProcess(s,o),s}function s(e,t,n){let o=i(e,t,n),s=r.spawnSync(o.command,o.args,o.options);return s.error=s.error||a.verifyENOENTSync(s.status,o),s}n.exports=o,n.exports.spawn=o,n.exports.sync=s,n.exports._parse=i,n.exports._enoent=a}));function Yn(e={}){let{env:t=process.env,platform:n=process.platform}=e;return n===`win32`?Object.keys(t).reverse().find(e=>e.toUpperCase()===`PATH`)||`Path`:`PATH`}var Xn=t((()=>{})),Zn=t((()=>{}));function Qn(e){return e instanceof URL?Fe(e):e}function $n(e){return{*[Symbol.iterator](){let t=w.resolve(Qn(e)),n;for(;n!==t;)yield t,n=t,t=w.resolve(t,`..`)}}}var er=t((()=>{Zn(),se(me)})),tr,nr,rr,ir,ar=t((()=>{Xn(),er(),tr=({cwd:e=C.cwd(),path:t=C.env[Yn()],preferLocal:n=!0,execPath:r=C.execPath,addExecPath:i=!0}={})=>{let a=w.resolve(Qn(e)),o=[],s=t.split(w.delimiter);return n&&nr(o,s,a),i&&rr(o,s,r,a),t===``||t===w.delimiter?`${o.join(w.delimiter)}${t}`:[...o,t].join(w.delimiter)},nr=(e,t,n)=>{for(let r of $n(n)){let n=w.join(r,`node_modules/.bin`);t.includes(n)||e.push(n)}},rr=(e,t,n,r)=>{let i=w.resolve(r,Qn(n),`..`);t.includes(i)||e.push(i)},ir=({env:e=C.env,...t}={})=>{e={...e};let n=Yn({env:e});return t.path=e[n],e[n]=tr(t),e}})),or,sr,cr,lr,ur,dr,fr,pr,R=t((()=>{or=(e,t,n)=>new(n?pr:fr)(t,e instanceof sr?{}:{cause:e}),sr=class extends Error{},cr=(e,t)=>{Object.defineProperty(e.prototype,"name",{value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,ur,{value:!0,writable:!1,enumerable:!1,configurable:!1})},lr=e=>dr(e)&&ur in e,ur=Symbol(`isExecaError`),dr=e=>Object.prototype.toString.call(e)===`[object Error]`,fr=class extends Error{},cr(fr,fr.name),pr=class extends Error{},cr(pr,pr.name)})),mr,hr,gr,_r=t((()=>{mr=()=>{let e=64-gr+1;return Array.from({length:e},hr)},hr=(e,t)=>({name:`SIGRT${t+1}`,number:gr+t,action:`terminate`,description:`Application-specific signal (realtime)`,standard:`posix`}),gr=34})),vr,yr=t((()=>{vr=[{name:`SIGHUP`,number:1,action:`terminate`,description:`Terminal closed`,standard:`posix`},{name:`SIGINT`,number:2,action:`terminate`,description:`User interruption with CTRL-C`,standard:`ansi`},{name:`SIGQUIT`,number:3,action:`core`,description:`User interruption with CTRL-\\`,standard:`posix`},{name:`SIGILL`,number:4,action:`core`,description:`Invalid machine instruction`,standard:`ansi`},{name:`SIGTRAP`,number:5,action:`core`,description:`Debugger breakpoint`,standard:`posix`},{name:`SIGABRT`,number:6,action:`core`,description:`Aborted`,standard:`ansi`},{name:`SIGIOT`,number:6,action:`core`,description:`Aborted`,standard:`bsd`},{name:`SIGBUS`,number:7,action:`core`,description:`Bus error due to misaligned, non-existing address or paging error`,standard:`bsd`},{name:`SIGEMT`,number:7,action:`terminate`,description:`Command should be emulated but is not implemented`,standard:`other`},{name:`SIGFPE`,number:8,action:`core`,description:`Floating point arithmetic error`,standard:`ansi`},{name:`SIGKILL`,number:9,action:`terminate`,description:`Forced termination`,standard:`posix`,forced:!0},{name:`SIGUSR1`,number:10,action:`terminate`,description:`Application-specific signal`,standard:`posix`},{name:`SIGSEGV`,number:11,action:`core`,description:`Segmentation fault`,standard:`ansi`},{name:`SIGUSR2`,number:12,action:`terminate`,description:`Application-specific signal`,standard:`posix`},{name:`SIGPIPE`,number:13,action:`terminate`,description:`Broken pipe or socket`,standard:`posix`},{name:`SIGALRM`,number:14,action:`terminate`,description:`Timeout or timer`,standard:`posix`},{name:`SIGTERM`,number:15,action:`terminate`,description:`Termination`,standard:`ansi`},{name:`SIGSTKFLT`,number:16,action:`terminate`,description:`Stack is empty or overflowed`,standard:`other`},{name:`SIGCHLD`,number:17,action:`ignore`,description:`Child process terminated, paused or unpaused`,standard:`posix`},{name:`SIGCLD`,number:17,action:`ignore`,description:`Child process terminated, paused or unpaused`,standard:`other`},{name:`SIGCONT`,number:18,action:`unpause`,description:`Unpaused`,standard:`posix`,forced:!0},{name:`SIGSTOP`,number:19,action:`pause`,description:`Paused`,standard:`posix`,forced:!0},{name:`SIGTSTP`,number:20,action:`pause`,description:`Paused using CTRL-Z or "suspend"`,standard:`posix`},{name:`SIGTTIN`,number:21,action:`pause`,description:`Background process cannot read terminal input`,standard:`posix`},{name:`SIGBREAK`,number:21,action:`terminate`,description:`User interruption with CTRL-BREAK`,standard:`other`},{name:`SIGTTOU`,number:22,action:`pause`,description:`Background process cannot write to terminal output`,standard:`posix`},{name:`SIGURG`,number:23,action:`ignore`,description:`Socket received out-of-band data`,standard:`bsd`},{name:`SIGXCPU`,number:24,action:`core`,description:`Process timed out`,standard:`bsd`},{name:`SIGXFSZ`,number:25,action:`core`,description:`File too big`,standard:`bsd`},{name:`SIGVTALRM`,number:26,action:`terminate`,description:`Timeout or timer`,standard:`bsd`},{name:`SIGPROF`,number:27,action:`terminate`,description:`Timeout or timer`,standard:`bsd`},{name:`SIGWINCH`,number:28,action:`ignore`,description:`Terminal window size changed`,standard:`bsd`},{name:`SIGIO`,number:29,action:`terminate`,description:`I/O is available`,standard:`other`},{name:`SIGPOLL`,number:29,action:`terminate`,description:`Watched event`,standard:`other`},{name:`SIGINFO`,number:29,action:`ignore`,description:`Request for process information`,standard:`other`},{name:`SIGPWR`,number:30,action:`terminate`,description:`Device running out of power`,standard:`systemv`},{name:`SIGSYS`,number:31,action:`core`,description:`Invalid system call`,standard:`other`},{name:`SIGUNUSED`,number:31,action:`terminate`,description:`Invalid system call`,standard:`other`}]})),br,xr,Sr=t((()=>{yr(),_r(),br=()=>{let e=mr();return[...vr,...e].map(xr)},xr=({name:e,number:t,description:n,action:r,forced:i=!1,standard:a})=>{let{signals:{[e]:o}}=Ce,s=o!==void 0;return{name:e,number:s?o:t,description:n,supported:s,action:r,forced:i,standard:a}}})),Cr,wr,Tr,Er,Dr,Or,kr=t((()=>{_r(),Sr(),Cr=()=>{let e=br();return Object.fromEntries(e.map(wr))},wr=({name:e,number:t,description:n,supported:r,action:i,forced:a,standard:o})=>[e,{name:e,number:t,description:n,supported:r,action:i,forced:a,standard:o}],Tr=Cr(),Er=()=>{let e=br(),t=Array.from({length:65},(t,n)=>Dr(n,e));return Object.assign({},...t)},Dr=(e,t)=>{let n=Or(e,t);if(n===void 0)return{};let{name:r,description:i,supported:a,action:o,forced:s,standard:c}=n;return{[e]:{name:r,number:e,description:i,supported:a,action:o,forced:s,standard:c}}},Or=(e,t)=>{let n=t.find(({name:t})=>Ce.signals[t]===e);return n===void 0?t.find(t=>t.number===e):n},Er()})),Ar,jr,Mr,Nr,Pr,Fr,Ir,Lr,Rr,zr,Br,Vr=t((()=>{kr(),Ar=e=>{let t="option `killSignal`";if(e===0)throw TypeError(`Invalid ${t}: 0 cannot be used.`);return Mr(e,t)},jr=e=>e===0?e:Mr(e,"`subprocess.kill()`'s argument"),Mr=(e,t)=>{if(Number.isInteger(e))return Nr(e,t);if(typeof e==`string`)return Ir(e,t);throw TypeError(`Invalid ${t} ${String(e)}: it must be a string or an integer.\n${Lr()}`)},Nr=(e,t)=>{if(Fr.has(e))return Fr.get(e);throw TypeError(`Invalid ${t} ${e}: this signal integer does not exist.\n${Lr()}`)},Pr=()=>new Map(Object.entries(Ce.signals).reverse().map(([e,t])=>[t,e])),Fr=Pr(),Ir=(e,t)=>{if(e in Ce.signals)return e;throw e.toUpperCase()in Ce.signals?TypeError(`Invalid ${t} '${e}': please rename it to '${e.toUpperCase()}'.`):TypeError(`Invalid ${t} '${e}': this signal name does not exist.\n${Lr()}`)},Lr=()=>`Available signal names: ${Rr()}.
10
+ Available signal numbers: ${zr()}.`,Rr=()=>Object.keys(Ce.signals).sort().map(e=>`'${e}'`).join(`, `),zr=()=>[...new Set(Object.values(Ce.signals).sort((e,t)=>e-t))].join(`, `),Br=e=>Tr[e].description})),Hr,Ur,Wr,Gr,Kr,qr,Jr,Yr=t((()=>{R(),Vr(),Hr=e=>{if(e===!1)return e;if(e===!0)return Ur;if(!Number.isFinite(e)||e<0)throw TypeError(`Expected the \`forceKillAfterDelay\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e},Ur=1e3*5,Wr=({kill:e,options:{forceKillAfterDelay:t,killSignal:n},onInternalError:r,context:i,controller:a},o,s)=>{let{signal:c,error:l}=Gr(o,s,n);Kr(l,r);let u=e(c);return qr({kill:e,signal:c,forceKillAfterDelay:t,killSignal:n,killResult:u,context:i,controller:a}),u},Gr=(e,t,n)=>{let[r=n,i]=dr(e)?[void 0,e]:[e,t];if(typeof r!=`string`&&!Number.isInteger(r))throw TypeError(`The first argument must be an error instance or a signal name string/integer: ${String(r)}`);if(i!==void 0&&!dr(i))throw TypeError(`The second argument is optional. If specified, it must be an error instance: ${i}`);return{signal:jr(r),error:i}},Kr=(e,t)=>{e!==void 0&&t.reject(e)},qr=async({kill:e,signal:t,forceKillAfterDelay:n,killSignal:r,killResult:i,context:a,controller:o})=>{t===r&&i&&Jr({kill:e,forceKillAfterDelay:n,context:a,controllerSignal:o.signal})},Jr=async({kill:e,forceKillAfterDelay:t,context:n,controllerSignal:r})=>{if(t!==!1)try{await ze(t,void 0,{signal:r}),e(`SIGKILL`)&&(n.isForcefullyTerminated??(n.isForcefullyTerminated=!0))}catch{}}})),Xr,Zr=t((()=>{Xr=async(e,t)=>{e.aborted||await T(e,`abort`,{signal:t})}})),Qr,$r,ei,ti=t((()=>{Zr(),Qr=({cancelSignal:e})=>{if(e!==void 0&&Object.prototype.toString.call(e)!==`[object AbortSignal]`)throw Error(`The \`cancelSignal\` option must be an AbortSignal: ${String(e)}`)},$r=({subprocess:e,cancelSignal:t,gracefulCancel:n,context:r,controller:i})=>t===void 0||n?[]:[ei(e,t,r,i)],ei=async(e,t,n,{signal:r})=>{throw await Xr(t,r),n.terminationReason??(n.terminationReason=`cancel`),e.kill(),t.reason}})),ni,ri,ii,ai,oi,si,ci,li,ui,di,fi,pi,mi,hi,gi,z,_i,B,vi,yi=t((()=>{ni=({methodName:e,isSubprocess:t,ipc:n,isConnected:r})=>{ri(e,t,n),ii(e,t,r)},ri=(e,t,n)=>{if(!n)throw Error(`${z(e,t)} can only be used if the \`ipc\` option is \`true\`.`)},ii=(e,t,n)=>{if(!n)throw Error(`${z(e,t)} cannot be used: the ${B(t)} has already exited or disconnected.`)},ai=e=>{throw Error(`${z(`getOneMessage`,e)} could not complete: the ${B(e)} exited or disconnected.`)},oi=e=>{throw Error(`${z(`sendMessage`,e)} failed: the ${B(e)} is sending a message too, instead of listening to incoming messages.
11
+ This can be fixed by both sending a message and listening to incoming messages at the same time:
12
+
13
+ const [receivedMessage] = await Promise.all([
14
+ ${z(`getOneMessage`,e)},
15
+ ${z(`sendMessage`,e,`message, {strict: true}`)},
16
+ ]);`)},si=(e,t)=>Error(`${z(`sendMessage`,t)} failed when sending an acknowledgment response to the ${B(t)}.`,{cause:e}),ci=e=>{throw Error(`${z(`sendMessage`,e)} failed: the ${B(e)} is not listening to incoming messages.`)},li=e=>{throw Error(`${z(`sendMessage`,e)} failed: the ${B(e)} exited without listening to incoming messages.`)},ui=()=>Error(`\`cancelSignal\` aborted: the ${B(!0)} disconnected.`),di=()=>{throw Error("`getCancelSignal()` cannot be used without setting the `cancelSignal` subprocess option.")},fi=({error:e,methodName:t,isSubprocess:n})=>{if(e.code===`EPIPE`)throw Error(`${z(t,n)} cannot be used: the ${B(n)} is disconnecting.`,{cause:e})},pi=({error:e,methodName:t,isSubprocess:n,message:r})=>{if(mi(e))throw Error(`${z(t,n)}'s argument type is invalid: the message cannot be serialized: ${String(r)}.`,{cause:e})},mi=({code:e,message:t})=>hi.has(e)||gi.some(e=>t.includes(e)),hi=new Set([`ERR_MISSING_ARGS`,`ERR_INVALID_ARG_TYPE`]),gi=[`could not be cloned`,`circular structure`,`call stack size exceeded`],z=(e,t,n=``)=>e===`cancelSignal`?"`cancelSignal`'s `controller.abort()`":`${_i(t)}${e}(${n})`,_i=e=>e?``:`subprocess.`,B=e=>e?`parent process`:`subprocess`,vi=e=>{e.connected&&e.disconnect()}})),bi,xi=t((()=>{bi=()=>{let e={},t=new Promise((t,n)=>{Object.assign(e,{resolve:t,reject:n})});return Object.assign(t,e)}})),Si,Ci,V,wi,Ti,Ei,Di,Oi,ki,Ai,ji,H=t((()=>{F(),Si=(e,t=`stdin`)=>{let{options:n,fileDescriptors:r}=V.get(e),i=wi(r,t,!0),a=e.stdio[i];if(a===null)throw TypeError(Di(i,t,n,!0));return a},Ci=(e,t=`stdout`)=>{let{options:n,fileDescriptors:r}=V.get(e),i=wi(r,t,!1),a=i===`all`?e.all:e.stdio[i];if(a==null)throw TypeError(Di(i,t,n,!1));return a},V=new WeakMap,wi=(e,t,n)=>{let r=Ti(t,n);return Ei(r,t,n,e),r},Ti=(e,t)=>{let n=Dt(e);if(n!==void 0)return n;let{validOptions:r,defaultValue:i}=t?{validOptions:`"stdin"`,defaultValue:`stdin`}:{validOptions:`"stdout", "stderr", "all"`,defaultValue:`stdout`};throw TypeError(`"${Ai(t)}" must not be "${e}".
17
+ It must be ${r} or "fd3", "fd4" (and so on).
18
+ It is optional and defaults to "${i}".`)},Ei=(e,t,n,r)=>{let i=r[ki(e)];if(i===void 0)throw TypeError(`"${Ai(n)}" must not be ${t}. That file descriptor does not exist.
19
+ Please set the "stdio" option to ensure that file descriptor exists.`);if(i.direction===`input`&&!n)throw TypeError(`"${Ai(n)}" must not be ${t}. It must be a readable stream, not writable.`);if(i.direction!==`input`&&n)throw TypeError(`"${Ai(n)}" must not be ${t}. It must be a writable stream, not readable.`)},Di=(e,t,n,r)=>{if(e===`all`&&!n.all)return`The "all" option must be true to use "from: 'all'".`;let{optionName:i,optionValue:a}=Oi(e,n);return`The "${i}: ${ji(a)}" option is incompatible with using "${Ai(r)}: ${ji(t)}".
20
+ Please set this option with "pipe" instead.`},Oi=(e,{stdin:t,stdout:n,stderr:r,stdio:i})=>{let a=ki(e);return a===0&&t!==void 0?{optionName:`stdin`,optionValue:t}:a===1&&n!==void 0?{optionName:`stdout`,optionValue:n}:a===2&&r!==void 0?{optionName:`stderr`,optionValue:r}:{optionName:`stdio[${a}]`,optionValue:i[a]}},ki=e=>e===`all`?1:e,Ai=e=>e?`to`:`from`,ji=e=>typeof e==`string`?`'${e}'`:typeof e==`number`?`${e}`:`Stream`})),Mi,Ni=t((()=>{Mi=(e,t,n)=>{let r=e.getMaxListeners();r===0||r===1/0||(e.setMaxListeners(r+t),Ee(n,()=>{e.setMaxListeners(e.getMaxListeners()-t)}))}})),Pi,Fi,Ii,Li,Ri,zi,Bi=t((()=>{Pi=(e,t)=>{t&&Fi(e)},Fi=e=>{e.refCounted()},Ii=(e,t)=>{t&&Li(e)},Li=e=>{e.unrefCounted()},Ri=(e,t)=>{t&&(Li(e),Li(e))},zi=(e,t)=>{t&&(Fi(e),Fi(e))}})),Vi,Hi,Ui,Wi=t((()=>{pa(),Bi(),oa(),Oa(),Vi=async({anyProcess:e,channel:t,isSubprocess:n,ipcEmitter:r},i)=>{if(ea(i)||wa(i))return;Ui.has(e)||Ui.set(e,[]);let a=Ui.get(e);if(a.push(i),!(a.length>1))for(;a.length>0;){await la(e,r,i),await Le.yield();let o=await $i({wrappedMessage:a[0],anyProcess:e,channel:t,isSubprocess:n,ipcEmitter:r});a.shift(),r.emit(`message`,o),r.emit(`message:done`)}},Hi=async({anyProcess:e,channel:t,isSubprocess:n,ipcEmitter:r,boundOnMessage:i})=>{Ea();let a=Ui.get(e);for(;a?.length>0;)await T(r,`message:done`);e.removeListener(`message`,i),zi(t,n),r.connected=!1,r.emit(`disconnect`)},Ui=new WeakMap})),Gi,Ki,qi,Ji,Yi=t((()=>{Wi(),Bi(),Gi=(e,t,n)=>{if(Ki.has(e))return Ki.get(e);let r=new Te;return r.connected=!0,Ki.set(e,r),qi({ipcEmitter:r,anyProcess:e,channel:t,isSubprocess:n}),r},Ki=new WeakMap,qi=({ipcEmitter:e,anyProcess:t,channel:n,isSubprocess:r})=>{let i=Vi.bind(void 0,{anyProcess:t,channel:n,isSubprocess:r,ipcEmitter:e});t.on(`message`,i),t.once(`disconnect`,Hi.bind(void 0,{anyProcess:t,channel:n,isSubprocess:r,ipcEmitter:e,boundOnMessage:i})),Ri(n,r)},Ji=e=>{let t=Ki.get(e);return t===void 0?e.channel!==null:t.connected}})),Xi,Zi,Qi,$i,ea,ta,na,ra,ia,aa,oa=t((()=>{xi(),Ni(),ya(),yi(),Yi(),pa(),Xi=({anyProcess:e,channel:t,isSubprocess:n,message:r,strict:i})=>{if(!i)return r;let a=da(e,Gi(e,t,n));return{id:Zi++,type:ia,message:r,hasListeners:a}},Zi=0n,Qi=(e,t)=>{if(!(t?.type!==ia||t.hasListeners))for(let{id:t}of e)t!==void 0&&na[t].resolve({isDeadlock:!0,hasListeners:!1})},$i=async({wrappedMessage:e,anyProcess:t,channel:n,isSubprocess:r,ipcEmitter:i})=>{if(e?.type!==ia||!t.connected)return e;let{id:a,message:o}=e,s={id:a,type:aa,message:da(t,i)};try{await ma({anyProcess:t,channel:n,isSubprocess:r,ipc:!0},s)}catch(e){i.emit(`strict:error`,e)}return o},ea=e=>{if(e?.type!==aa)return!1;let{id:t,message:n}=e;return na[t]?.resolve({isDeadlock:!1,hasListeners:n}),!0},ta=async(e,t,n)=>{if(e?.type!==ia)return;let r=bi();na[e.id]=r;let i=new AbortController;try{let{isDeadlock:e,hasListeners:a}=await Promise.race([r,ra(t,n,i)]);e&&oi(n),a||ci(n)}finally{i.abort(),delete na[e.id]}},na={},ra=async(e,t,{signal:n})=>{Mi(e,1,n),await T(e,`disconnect`,{signal:n}),li(t)},ia=`execa:ipc:request`,aa=`execa:ipc:response`})),sa,ca,la,ua,da,fa,pa=t((()=>{xi(),F(),H(),oa(),sa=(e,t,n)=>{ua.has(e)||ua.set(e,new Set);let r=ua.get(e),i={onMessageSent:bi(),id:n?t.id:void 0};return r.add(i),{outgoingMessages:r,outgoingMessage:i}},ca=({outgoingMessages:e,outgoingMessage:t})=>{e.delete(t),t.onMessageSent.resolve()},la=async(e,t,n)=>{for(;!da(e,t)&&ua.get(e)?.size>0;){let t=[...ua.get(e)];Qi(t,n),await Promise.all(t.map(({onMessageSent:e})=>e))}},ua=new WeakMap,da=(e,t)=>t.listenerCount(`message`)>fa(e),fa=e=>V.has(e)&&!Mt(V.get(e).options.buffer,`ipc`)?1:0})),ma,ha,ga,_a,va,ya=t((()=>{yi(),pa(),oa(),ma=({anyProcess:e,channel:t,isSubprocess:n,ipc:r},i,{strict:a=!1}={})=>{let o=`sendMessage`;return ni({methodName:o,isSubprocess:n,ipc:r,isConnected:e.connected}),ha({anyProcess:e,channel:t,methodName:o,isSubprocess:n,message:i,strict:a})},ha=async({anyProcess:e,channel:t,methodName:n,isSubprocess:r,message:i,strict:a})=>{let o=Xi({anyProcess:e,channel:t,isSubprocess:r,message:i,strict:a}),s=sa(e,o,a);try{await ga({anyProcess:e,methodName:n,isSubprocess:r,wrappedMessage:o,message:i})}catch(t){throw vi(e),t}finally{ca(s)}},ga=async({anyProcess:e,methodName:t,isSubprocess:n,wrappedMessage:r,message:i})=>{let a=_a(e);try{await Promise.all([ta(r,e,n),a(r)])}catch(e){throw fi({error:e,methodName:t,isSubprocess:n}),pi({error:e,methodName:t,isSubprocess:n,message:i}),e}},_a=e=>{if(va.has(e))return va.get(e);let t=se(e.send.bind(e));return va.set(e,t),t},va=new WeakMap})),ba,xa,Sa,Ca,wa,Ta,Ea,Da,Oa=t((()=>{ya(),Yi(),yi(),ba=(e,t)=>{let n=`cancelSignal`;return ii(n,!1,e.connected),ga({anyProcess:e,methodName:n,isSubprocess:!1,wrappedMessage:{type:Ta,message:t},message:t})},xa=async({anyProcess:e,channel:t,isSubprocess:n,ipc:r})=>(await Sa({anyProcess:e,channel:t,isSubprocess:n,ipc:r}),Da.signal),Sa=async({anyProcess:e,channel:t,isSubprocess:n,ipc:r})=>{if(!Ca){if(Ca=!0,!r){di();return}if(t===null){Ea();return}Gi(e,t,n),await Le.yield()}},Ca=!1,wa=e=>e?.type===Ta?(Da.abort(e.message),!0):!1,Ta=`execa:ipc:cancel`,Ea=()=>{Da.abort(ui())},Da=new AbortController})),ka,Aa,ja,Ma,Na=t((()=>{Zr(),Oa(),Yr(),ka=({gracefulCancel:e,cancelSignal:t,ipc:n,serialization:r})=>{if(e){if(t===void 0)throw Error("The `cancelSignal` option must be defined when setting the `gracefulCancel` option.");if(!n)throw Error("The `ipc` option cannot be false when setting the `gracefulCancel` option.");if(r===`json`)throw Error("The `serialization` option cannot be 'json' when setting the `gracefulCancel` option.")}},Aa=({subprocess:e,cancelSignal:t,gracefulCancel:n,forceKillAfterDelay:r,context:i,controller:a})=>n?[ja({subprocess:e,cancelSignal:t,forceKillAfterDelay:r,context:i,controller:a})]:[],ja=async({subprocess:e,cancelSignal:t,forceKillAfterDelay:n,context:r,controller:{signal:i}})=>{throw await Xr(t,i),await ba(e,Ma(t)),Jr({kill:e.kill,forceKillAfterDelay:n,context:r,controllerSignal:i}),r.terminationReason??(r.terminationReason=`gracefulCancel`),t.reason},Ma=({reason:e})=>{if(!(e instanceof DOMException))return e;let t=Error(e.message);return Object.defineProperty(t,"stack",{value:e.stack,enumerable:!1,configurable:!0,writable:!0}),t}})),Pa,Fa,Ia,La=t((()=>{R(),Pa=({timeout:e})=>{if(e!==void 0&&(!Number.isFinite(e)||e<0))throw TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`)},Fa=(e,t,n,r)=>t===0||t===void 0?[]:[Ia(e,t,n,r)],Ia=async(e,t,n,{signal:r})=>{throw await ze(t,void 0,{signal:r}),n.terminationReason??(n.terminationReason=`timeout`),e.kill(),new sr}})),Ra,za,Ba=t((()=>{Ge(),Ra=({options:e})=>{if(e.node===!1)throw TypeError('The "node" option cannot be false with `execaNode()`.');return{options:{...e,node:!0}}},za=(e,t,{node:n=!1,nodePath:r=ue,nodeOptions:i=le.filter(e=>!e.startsWith(`--inspect`)),cwd:a,execPath:o,...s})=>{if(o!==void 0)throw TypeError(`The "execPath" option has been removed. Please use the "nodePath" option instead.`);let c=Ve(r,`The "nodePath" option`),l=w.resolve(a,c),u={...s,nodePath:l,node:n,cwd:a};if(!n)return[e,t,u];if(w.basename(e,`.exe`)===`node`)throw TypeError(`When the "node" option is true, the first argument does not need to be "node".`);return[l,[...i,e,...t],{ipc:!0,...u,shell:!1}]}})),Va,Ha,Ua,Wa,Ga,Ka=t((()=>{Va=({ipcInput:e,ipc:t,serialization:n})=>{if(e!==void 0){if(!t)throw Error("The `ipcInput` option cannot be set unless the `ipc` option is `true`.");Wa[n](e)}},Ha=e=>{try{Be(e)}catch(e){throw Error("The `ipcInput` option is not serializable with a structured clone.",{cause:e})}},Ua=e=>{try{JSON.stringify(e)}catch(e){throw Error("The `ipcInput` option is not serializable with JSON.",{cause:e})}},Wa={advanced:Ha,json:Ua},Ga=async(e,t)=>{t!==void 0&&await e.sendMessage(t)}})),qa,Ja,U,Ya,Xa,Za,Qa,$a=t((()=>{qa=({encoding:e})=>{if(Ya.has(e))return;let t=Xa(e);if(t!==void 0)throw TypeError(`Invalid option \`encoding: ${Qa(e)}\`.
21
+ Please rename it to ${Qa(t)}.`);let n=[...Ya].map(e=>Qa(e)).join(`, `);throw TypeError(`Invalid option \`encoding: ${Qa(e)}\`.
22
+ Please rename it to one of: ${n}.`)},Ja=new Set([`utf8`,`utf16le`]),U=new Set([`buffer`,`hex`,`base64`,`base64url`,`latin1`,`ascii`]),Ya=new Set([...Ja,...U]),Xa=e=>{if(e===null)return`buffer`;if(typeof e!=`string`)return;let t=e.toLowerCase();if(t in Za)return Za[t];if(Ya.has(t))return t},Za={"utf-8":`utf8`,"utf-16le":`utf16le`,"ucs-2":`utf16le`,ucs2:`utf16le`,binary:`latin1`},Qa=e=>typeof e==`string`?`"${e}"`:String(e)})),eo,to,no,ro=t((()=>{Ge(),eo=(e=to())=>{let t=Ve(e,`The "cwd" option`);return w.resolve(t)},to=()=>{try{return C.cwd()}catch(e){throw e.message=`The current directory does not exist.\n${e.message}`,e}},no=(e,t)=>{if(t===to())return e;let n;try{n=xe(t)}catch(n){return`The "cwd" option is invalid: ${t}.\n${n.message}\n${e}`}return n.isDirectory()?e:`The "cwd" option is not a directory: ${t}.\n${e}`}})),io,ao,oo,so,co=t((()=>{io=n(Jn(),1),ar(),Yr(),Vr(),ti(),Na(),La(),Ba(),Ka(),$a(),ro(),Ge(),F(),ao=(e,t,n)=>{n.cwd=eo(n.cwd);let[r,i,a]=za(e,t,n),{command:o,args:s,options:c}=io.default._parse(r,i,a),l=yt(c),u=oo(l);return Pa(u),qa(u),Va(u),Qr(u),ka(u),u.shell=We(u.shell),u.env=so(u),u.killSignal=Ar(u.killSignal),u.forceKillAfterDelay=Hr(u.forceKillAfterDelay),u.lines=u.lines.map((e,t)=>e&&!U.has(u.encoding)&&u.buffer[t]),C.platform===`win32`&&w.basename(o,`.exe`)===`cmd`&&s.unshift(`/q`),{file:o,commandArguments:s,options:u}},oo=({extendEnv:e=!0,preferLocal:t=!1,cwd:n,localDir:r=n,encoding:i=`utf8`,reject:a=!0,cleanup:o=!0,all:s=!1,windowsHide:c=!0,killSignal:l=`SIGTERM`,forceKillAfterDelay:u=!0,gracefulCancel:d=!1,ipcInput:f,ipc:p=f!==void 0||d,serialization:m=`advanced`,...h})=>({...h,extendEnv:e,preferLocal:t,cwd:n,localDirectory:r,encoding:i,reject:a,cleanup:o,all:s,windowsHide:c,killSignal:l,forceKillAfterDelay:u,gracefulCancel:d,ipcInput:f,ipc:p,serialization:m}),so=({env:e,extendEnv:t,preferLocal:n,node:r,localDirectory:i,nodePath:a})=>{let o=t?{...C.env,...e}:e;return n||r?ir({env:o,cwd:i,execPath:a,preferLocal:n,addExecPath:r}):o}})),lo,uo=t((()=>{lo=(e,t,n)=>n.shell&&t.length>0?[[e,...t].join(` `),[],n]:[e,t,n]}));function fo(e){if(typeof e==`string`)return po(e);if(!(ArrayBuffer.isView(e)&&e.BYTES_PER_ELEMENT===1))throw Error(`Input must be a string or a Uint8Array`);return mo(e)}var po,mo,ho,go,_o,vo,yo=t((()=>{po=e=>e.at(-1)===ho?e.slice(0,e.at(-2)===_o?-2:-1):e,mo=e=>e.at(-1)===go?e.subarray(0,e.at(-2)===vo?-2:-1):e,ho=`
23
+ `,go=ho.codePointAt(0),_o=`\r`,vo=_o.codePointAt(0)}));function W(e,{checkOpen:t=!0}={}){return typeof e==`object`&&!!e&&(e.writable||e.readable||!t||e.writable===void 0&&e.readable===void 0)&&typeof e.pipe==`function`}function bo(e,{checkOpen:t=!0}={}){return W(e,{checkOpen:t})&&(e.writable||!t)&&typeof e.write==`function`&&typeof e.end==`function`&&typeof e.writable==`boolean`&&typeof e.writableObjectMode==`boolean`&&typeof e.destroy==`function`&&typeof e.destroyed==`boolean`}function xo(e,{checkOpen:t=!0}={}){return W(e,{checkOpen:t})&&(e.readable||!t)&&typeof e.read==`function`&&typeof e.readable==`boolean`&&typeof e.readableObjectMode==`boolean`&&typeof e.destroy==`function`&&typeof e.destroyed==`boolean`}function So(e,t){return bo(e,t)&&xo(e,t)}var Co=t((()=>{}));async function wo(){if(d(K,this))return{done:!0,value:void 0};let e;try{e=await d(G,this).read()}catch(e){throw p(q,this,void 0),p(K,this,!0),d(G,this).releaseLock(),e}return e.done&&(p(q,this,void 0),p(K,this,!0),d(G,this).releaseLock()),e}async function To(e){if(d(K,this))return{done:!0,value:e};if(p(K,this,!0),!d(Ao,this)){let t=d(G,this).cancel(e);return d(G,this).releaseLock(),await t,{done:!0,value:e}}return d(G,this).releaseLock(),{done:!0,value:e}}function Eo(){return this[No].next()}function Do(e){return this[No].return(e)}function Oo({preventCancel:e=!1}={}){let t=this.getReader(),n=new Mo(t,e),r=Object.create(Po);return r[No]=n,r}var ko,G,Ao,K,q,jo,Mo,No,Po,Fo=t((()=>{m(),s(),l(),u(),c(),ko=Object.getPrototypeOf(Object.getPrototypeOf(async function*(){}).prototype),G=new WeakMap,Ao=new WeakMap,K=new WeakMap,q=new WeakMap,jo=new WeakSet,Mo=class{constructor(e,t){h(this,jo),f(this,G,void 0),f(this,Ao,void 0),f(this,K,!1),f(this,q,void 0),p(G,this,e),p(Ao,this,t)}next(){let e=()=>o(jo,this,wo).call(this);return p(q,this,d(q,this)?d(q,this).then(e,e):e()),d(q,this)}return(e){let t=()=>o(jo,this,To).call(this,e);return d(q,this)?d(q,this).then(t,t):t()}},No=Symbol(),Object.defineProperty(Eo,"name",{value:`next`}),Object.defineProperty(Do,"name",{value:`return`}),Po=Object.create(ko,{next:{enumerable:!0,configurable:!0,writable:!0,value:Eo},return:{enumerable:!0,configurable:!0,writable:!0,value:Do}})})),Io=t((()=>{Fo()})),Lo,Ro,zo,Bo,Vo,Ho=t((()=>{Co(),Io(),Lo=e=>{if(xo(e,{checkOpen:!1})&&Vo.on!==void 0)return zo(e);if(typeof e?.[Symbol.asyncIterator]==`function`)return e;if(Ro.call(e)===`[object ReadableStream]`)return Oo.call(e);throw TypeError(`The first argument must be a Readable, a ReadableStream, or an async iterable.`)},{toString:Ro}=Object.prototype,zo=async function*(e){let t=new AbortController,n={};Bo(e,t,n);try{for await(let[n]of Vo.on(e,`data`,{signal:t.signal}))yield n}catch(e){if(n.error!==void 0)throw n.error;if(!t.signal.aborted)throw e}finally{e.destroy()}},Bo=async(e,t,n)=>{try{await Vo.finished(e,{cleanup:!0,readable:!0,writable:!1,error:!1})}catch(e){n.error=e}finally{t.abort()}},Vo={}})),Uo,Wo,Go,Ko,qo,Jo,Yo,Xo=t((()=>{Ho(),i(),Uo=async(e,{init:t,convertChunk:n,getSize:r,truncateChunk:i,addChunk:a,getFinalChunk:o,finalize:s},{maxBuffer:c=1/0}={})=>{let l=Lo(e),u=t();u.length=0;try{for await(let e of l){let t=n[qo(e)](e,u);Go({convertedChunk:t,state:u,getSize:r,truncateChunk:i,addChunk:a,maxBuffer:c})}return Wo({state:u,convertChunk:n,getSize:r,truncateChunk:i,addChunk:a,getFinalChunk:o,maxBuffer:c}),s(u)}catch(e){let t=typeof e==`object`&&e?e:Error(e);throw t.bufferedData=s(u),t}},Wo=({state:e,getSize:t,truncateChunk:n,addChunk:r,getFinalChunk:i,maxBuffer:a})=>{let o=i(e);o!==void 0&&Go({convertedChunk:o,state:e,getSize:t,truncateChunk:n,addChunk:r,maxBuffer:a})},Go=({convertedChunk:e,state:t,getSize:n,truncateChunk:r,addChunk:i,maxBuffer:a})=>{let o=n(e),s=t.length+o;if(s<=a){Ko(e,t,i,s);return}let c=r(e,a-t.length);throw c!==void 0&&Ko(c,t,i,a),new Yo},Ko=(e,t,n,r)=>{t.contents=n(e,t,r),t.length=r},qo=e=>{let t=typeof e;if(t===`string`)return`string`;if(t!==`object`||e===null)return`others`;if(globalThis.Buffer?.isBuffer(e))return`buffer`;let n=Jo.call(e);return n===`[object ArrayBuffer]`?`arrayBuffer`:n===`[object DataView]`?`dataView`:Number.isInteger(e.byteLength)&&Number.isInteger(e.byteOffset)&&Jo.call(e.buffer)===`[object ArrayBuffer]`?`typedArray`:`others`},{toString:Jo}=Object.prototype,Yo=class extends Error{constructor(){super(`maxBuffer exceeded`),a(this,`name`,`MaxBufferError`)}}})),J,Zo,Qo,$o,es,ts=t((()=>{J=e=>e,Zo=()=>void 0,Qo=({contents:e})=>e,$o=e=>{throw Error(`Streams in object mode are not supported: ${String(e)}`)},es=e=>e.length}));async function ns(e,t){return Uo(e,os,t)}var rs,is,as,os,ss=t((()=>{Xo(),ts(),rs=()=>({contents:[]}),is=()=>1,as=(e,{contents:t})=>(t.push(e),t),os={init:rs,convertChunk:{string:J,buffer:J,arrayBuffer:J,dataView:J,typedArray:J,others:J},getSize:is,truncateChunk:Zo,addChunk:as,getFinalChunk:Zo,finalize:Qo}}));async function cs(e,t){return Uo(e,Ss,t)}var ls,us,ds,fs,ps,ms,hs,gs,_s,vs,ys,bs,xs,Ss,Cs=t((()=>{Xo(),ts(),ls=()=>({contents:new ArrayBuffer(0)}),us=e=>ds.encode(e),ds=new TextEncoder,fs=e=>new Uint8Array(e),ps=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength),ms=(e,t)=>e.slice(0,t),hs=(e,{contents:t,length:n},r)=>{let i=xs()?_s(t,r):gs(t,r);return new Uint8Array(i).set(e,n),i},gs=(e,t)=>{if(t<=e.byteLength)return e;let n=new ArrayBuffer(vs(t));return new Uint8Array(n).set(new Uint8Array(e),0),n},_s=(e,t)=>{if(t<=e.maxByteLength)return e.resize(t),e;let n=new ArrayBuffer(t,{maxByteLength:vs(t)});return new Uint8Array(n).set(new Uint8Array(e),0),n},vs=e=>ys**Math.ceil(Math.log(e)/Math.log(ys)),ys=2,bs=({contents:e,length:t})=>xs()?e:e.slice(0,t),xs=()=>`resize`in ArrayBuffer.prototype,Ss={init:ls,convertChunk:{string:us,buffer:fs,arrayBuffer:fs,dataView:ps,typedArray:ps,others:$o},getSize:es,truncateChunk:ms,addChunk:hs,getFinalChunk:Zo,finalize:bs}}));async function ws(e,t){return Uo(e,As,t)}var Ts,Es,Ds,Os,ks,As,js=t((()=>{Xo(),ts(),Ts=()=>({contents:``,textDecoder:new TextDecoder}),Es=(e,{textDecoder:t})=>t.decode(e,{stream:!0}),Ds=(e,{contents:t})=>t+e,Os=(e,t)=>e.slice(0,t),ks=({textDecoder:e})=>{let t=e.decode();return t===``?void 0:t},As={init:Ts,convertChunk:{string:J,buffer:Es,arrayBuffer:Es,dataView:Es,typedArray:Es,others:$o},getSize:es,truncateChunk:Os,addChunk:Ds,getFinalChunk:ks,finalize:Qo}})),Ms=t((()=>{ss(),Cs(),js(),Xo()})),Ns=t((()=>{Ms()})),Ps,Fs,Is,Ls,Rs,zs,Bs,Vs,Hs=t((()=>{Ns(),P(),F(),Ps=({error:e,stream:t,readableObjectMode:n,lines:r,encoding:i,fdNumber:a})=>{if(!(e instanceof Yo))throw e;if(a===`all`)return e;throw e.maxBufferInfo={fdNumber:a,unit:Fs(n,r,i)},t.destroy(),e},Fs=(e,t,n)=>e?`objects`:t?`lines`:n===`buffer`?`bytes`:`characters`,Is=(e,t,n)=>{if(t.length!==n)return;let r=new Yo;throw r.maxBufferInfo={fdNumber:`ipc`},r},Ls=(e,t)=>{let{streamName:n,threshold:r,unit:i}=Rs(e,t);return`Command's ${n} was larger than ${r} ${i}`},Rs=(e,t)=>{if(e?.maxBufferInfo===void 0)return{streamName:`output`,threshold:t[1],unit:`bytes`};let{maxBufferInfo:{fdNumber:n,unit:r}}=e;delete e.maxBufferInfo;let i=Mt(t,n);return n===`ipc`?{streamName:`IPC output`,threshold:i,unit:`messages`}:{streamName:vt(n),threshold:i,unit:r}},zs=(e,t,n)=>e?.code===`ENOBUFS`&&t!==null&&t.some(e=>e!==null&&e.length>Vs(n)),Bs=(e,t,n)=>{if(!t)return e;let r=Vs(n);return e.length>r?e.slice(0,r):e},Vs=([,e])=>e})),Us,Ws,Gs,Ks,qs,Js,Ys,Xs=t((()=>{yo(),j(),ro(),Xt(),Hs(),Vr(),R(),Us=({stdio:e,all:t,ipcOutput:n,originalError:r,signal:i,signalDescription:a,exitCode:o,escapedCommand:s,timedOut:c,isCanceled:l,isGracefullyCanceled:u,isMaxBuffer:d,isForcefullyTerminated:f,forceKillAfterDelay:p,killSignal:m,maxBuffer:h,timeout:g,cwd:_})=>{let v=r?.code,y=Ws({originalError:r,timedOut:c,timeout:g,isMaxBuffer:d,maxBuffer:h,errorCode:v,signal:i,signalDescription:a,exitCode:o,isCanceled:l,isGracefullyCanceled:u,isForcefullyTerminated:f,forceKillAfterDelay:p,killSignal:m}),b=Ks(r,_),x=`${y}: ${s}${b===void 0?``:`\n${b}`}`;return{originalMessage:b,shortMessage:x,message:[x,...t===void 0?[e[2],e[1]]:[t],...e.slice(3),n.map(e=>qs(e)).join(`
24
+ `)].map(e=>Vt(fo(Js(e)))).filter(Boolean).join(`
25
+
26
+ `)}},Ws=({originalError:e,timedOut:t,timeout:n,isMaxBuffer:r,maxBuffer:i,errorCode:a,signal:o,signalDescription:s,exitCode:c,isCanceled:l,isGracefullyCanceled:u,isForcefullyTerminated:d,forceKillAfterDelay:f,killSignal:p})=>{let m=Gs(d,f);return t?`Command timed out after ${n} milliseconds${m}`:u?o===void 0?`Command was gracefully canceled with exit code ${c}`:d?`Command was gracefully canceled${m}`:`Command was gracefully canceled with ${o} (${s})`:l?`Command was canceled${m}`:r?`${Ls(e,i)}${m}`:a===void 0?d?`Command was killed with ${p} (${Br(p)})${m}`:o===void 0?c===void 0?`Command failed`:`Command failed with exit code ${c}`:`Command was killed with ${o} (${s})`:`Command failed with ${a}${m}`},Gs=(e,t)=>e?` and was forcefully terminated after ${t} milliseconds`:``,Ks=(e,t)=>{if(e instanceof sr)return;let n=Vt(no(lr(e)?e.originalMessage:String(e?.message??e),t));return n===``?void 0:n},qs=e=>typeof e==`string`?e:oe(e),Js=e=>Array.isArray(e)?e.map(e=>fo(Ys(e))).filter(Boolean).join(`
27
+ `):Ys(e),Ys=e=>typeof e==`string`?e:A(e)?et(e):``})),Zs,Qs,$s,ec,tc,nc,rc=t((()=>{Vr(),Nn(),R(),Xs(),Zs=({command:e,escapedCommand:t,stdio:n,all:r,ipcOutput:i,options:{cwd:a},startTime:o})=>tc({command:e,escapedCommand:t,cwd:a,durationMs:Mn(o),failed:!1,timedOut:!1,isCanceled:!1,isGracefullyCanceled:!1,isTerminated:!1,isMaxBuffer:!1,isForcefullyTerminated:!1,exitCode:0,stdout:n[1],stderr:n[2],all:r,stdio:n,ipcOutput:i,pipedFrom:[]}),Qs=({error:e,command:t,escapedCommand:n,fileDescriptors:r,options:i,startTime:a,isSync:o})=>$s({error:e,command:t,escapedCommand:n,startTime:a,timedOut:!1,isCanceled:!1,isGracefullyCanceled:!1,isMaxBuffer:!1,isForcefullyTerminated:!1,stdio:Array.from({length:r.length}),ipcOutput:[],options:i,isSync:o}),$s=({error:e,command:t,escapedCommand:n,startTime:r,timedOut:i,isCanceled:a,isGracefullyCanceled:o,isMaxBuffer:s,isForcefullyTerminated:c,exitCode:l,signal:u,stdio:d,all:f,ipcOutput:p,options:{timeoutDuration:m,timeout:h=m,forceKillAfterDelay:g,killSignal:_,cwd:v,maxBuffer:y},isSync:b})=>{let{exitCode:x,signal:ee,signalDescription:te}=nc(l,u),{originalMessage:ne,shortMessage:re,message:ie}=Us({stdio:d,all:f,ipcOutput:p,originalError:e,signal:ee,signalDescription:te,exitCode:x,escapedCommand:n,timedOut:i,isCanceled:a,isGracefullyCanceled:o,isMaxBuffer:s,isForcefullyTerminated:c,forceKillAfterDelay:g,killSignal:_,maxBuffer:y,timeout:h,cwd:v}),S=or(e,ie,b);return Object.assign(S,ec({error:S,command:t,escapedCommand:n,startTime:r,timedOut:i,isCanceled:a,isGracefullyCanceled:o,isMaxBuffer:s,isForcefullyTerminated:c,exitCode:x,signal:ee,signalDescription:te,stdio:d,all:f,ipcOutput:p,cwd:v,originalMessage:ne,shortMessage:re})),S},ec=({error:e,command:t,escapedCommand:n,startTime:r,timedOut:i,isCanceled:a,isGracefullyCanceled:o,isMaxBuffer:s,isForcefullyTerminated:c,exitCode:l,signal:u,signalDescription:d,stdio:f,all:p,ipcOutput:m,cwd:h,originalMessage:g,shortMessage:_})=>tc({shortMessage:_,originalMessage:g,command:t,escapedCommand:n,cwd:h,durationMs:Mn(r),failed:!0,timedOut:i,isCanceled:a,isGracefullyCanceled:o,isTerminated:u!==void 0,isMaxBuffer:s,isForcefullyTerminated:c,exitCode:l,signal:u,signalDescription:d,code:e.cause?.code,stdout:f[1],stderr:f[2],all:p,stdio:f,ipcOutput:m,pipedFrom:[]}),tc=e=>Object.fromEntries(Object.entries(e).filter(([,e])=>e!==void 0)),nc=(e,t)=>{let n=e===null?void 0:e,r=t===null?void 0:t;return{exitCode:n,signal:r,signalDescription:r===void 0?void 0:Br(t)}}}));function ic(e){return{days:Math.trunc(e/864e5),hours:Math.trunc(e/36e5%24),minutes:Math.trunc(e/6e4%60),seconds:Math.trunc(e/1e3%60),milliseconds:Math.trunc(e%1e3),microseconds:Math.trunc(sc(e*1e3)%1e3),nanoseconds:Math.trunc(sc(e*1e6)%1e3)}}function ac(e){return{days:e/86400000n,hours:e/3600000n%24n,minutes:e/60000n%60n,seconds:e/1000n%60n,milliseconds:e%1000n,microseconds:0n,nanoseconds:0n}}function oc(e){switch(typeof e){case`number`:if(Number.isFinite(e))return ic(e);break;case`bigint`:return ac(e)}throw TypeError(`Expected a finite number or bigint`)}var sc,cc=t((()=>{sc=e=>Number.isFinite(e)?e:0}));function lc(e,t){let n=typeof e==`bigint`;if(!n&&!Number.isFinite(e))throw TypeError(`Expected a finite number or bigint`);t={...t};let r=e<0?`-`:``;e=e<0?-e:e,t.colonNotation&&(t.compact=!1,t.formatSubMilliseconds=!1,t.separateMilliseconds=!1,t.verbose=!1),t.compact&&(t.unitCount=1,t.secondsDecimalDigits=0,t.millisecondsDecimalDigits=0);let i=[],a=(e,t)=>{let n=Math.floor(e*10**t+fc);return(Math.round(n)/10**t).toFixed(t)},o=(e,n,r,a)=>{if(!((i.length===0||!t.colonNotation)&&uc(e)&&!(t.colonNotation&&r===`m`))){if(a??(a=String(e)),t.colonNotation){let e=a.includes(`.`)?a.split(`.`)[0].length:a.length,t=i.length>0?2:1;a=`0`.repeat(Math.max(0,t-e))+a}else a+=t.verbose?` `+dc(n,e):r;i.push(a)}},s=oc(e),c=BigInt(s.days);if(t.hideYearAndDays?o(BigInt(c)*24n+BigInt(s.hours),`hour`,`h`):(t.hideYear?o(c,`day`,`d`):(o(c/365n,`year`,`y`),o(c%365n,`day`,`d`)),o(Number(s.hours),`hour`,`h`)),o(Number(s.minutes),`minute`,`m`),!t.hideSeconds)if(t.separateMilliseconds||t.formatSubMilliseconds||!t.colonNotation&&e<1e3&&!t.subSecondsAsDecimals){let e=Number(s.seconds),n=Number(s.milliseconds),r=Number(s.microseconds),i=Number(s.nanoseconds);if(o(e,`second`,`s`),t.formatSubMilliseconds)o(n,`millisecond`,`ms`),o(r,`microsecond`,`µs`),o(i,`nanosecond`,`ns`);else{let e=n+r/1e3+i/1e6,a=typeof t.millisecondsDecimalDigits==`number`?t.millisecondsDecimalDigits:0,s=a?e.toFixed(a):e>=1?Math.round(e):Math.ceil(e);o(Number.parseFloat(s),`millisecond`,`ms`,s)}}else{let r=a((n?Number(e%pc):e)/1e3%60,typeof t.secondsDecimalDigits==`number`?t.secondsDecimalDigits:1),i=t.keepDecimalsOnWholeSeconds?r:r.replace(/\.0+$/,``);o(Number.parseFloat(i),`second`,`s`,i)}if(i.length===0)return r+`0`+(t.verbose?` milliseconds`:`ms`);let l=t.colonNotation?`:`:` `;return typeof t.unitCount==`number`&&(i=i.slice(0,Math.max(t.unitCount,1))),r+i.join(l)}var uc,dc,fc,pc,mc=t((()=>{cc(),uc=e=>e===0||e===0n,dc=(e,t)=>t===1||t===1n?e:`${e}s`,fc=1e-7,pc=24n*60n*60n*1000n})),hc,gc=t((()=>{Cn(),hc=(e,t)=>{e.failed&&_n({type:`error`,verboseMessage:e.shortMessage,verboseInfo:t,result:e})}})),_c,vc,yc=t((()=>{mc(),I(),Cn(),gc(),_c=(e,t)=>{Nt(t)&&(hc(e,t),vc(e,t))},vc=(e,t)=>{_n({type:`duration`,verboseMessage:`(done in ${lc(e.durationMs)})`,verboseInfo:t,result:e})}})),bc,xc=t((()=>{yc(),bc=(e,t,{reject:n})=>{if(_c(e,t),e.failed&&n)throw e;return e}})),Sc,Cc,wc,Tc,Ec,Dc,Oc,kc,Ac,Y,jc,Mc,Nc,Pc,Fc,Ic,Lc,Rc,zc,Bc,Vc,Hc,Uc,Wc,Gc,Kc,X,qc,Jc,Yc,Xc,Zc,Z=t((()=>{Co(),k(),j(),Sc=(e,t)=>Y(e)?`asyncGenerator`:jc(e)?`generator`:Nc(e)?`fileUrl`:Fc(e)?`filePath`:Hc(e)?`webStream`:W(e,{checkOpen:!1})?`native`:A(e)?`uint8Array`:Wc(e)?`asyncIterable`:Gc(e)?`iterable`:Uc(e)?Tc({transform:e},t):Mc(e)?Cc(e,t):`native`,Cc=(e,t)=>So(e.transform,{checkOpen:!1})?wc(e,t):Uc(e.transform)?Tc(e,t):Oc(e,t),wc=(e,t)=>(Ec(e,t,`Duplex stream`),`duplex`),Tc=(e,t)=>(Ec(e,t,`web TransformStream`),`webTransform`),Ec=({final:e,binary:t,objectMode:n},r,i)=>{Dc(e,`${r}.final`,i),Dc(t,`${r}.binary`,i),kc(n,`${r}.objectMode`)},Dc=(e,t,n)=>{if(e!==void 0)throw TypeError(`The \`${t}\` option can only be defined when using a generator, not a ${n}.`)},Oc=({transform:e,final:t,binary:n,objectMode:r},i)=>{if(e!==void 0&&!Ac(e))throw TypeError(`The \`${i}.transform\` option must be a generator, a Duplex stream or a web TransformStream.`);if(So(t,{checkOpen:!1}))throw TypeError(`The \`${i}.final\` option must not be a Duplex stream.`);if(Uc(t))throw TypeError(`The \`${i}.final\` option must not be a web TransformStream.`);if(t!==void 0&&!Ac(t))throw TypeError(`The \`${i}.final\` option must be a generator.`);return kc(n,`${i}.binary`),kc(r,`${i}.objectMode`),Y(e)||Y(t)?`asyncGenerator`:`generator`},kc=(e,t)=>{if(e!==void 0&&typeof e!=`boolean`)throw TypeError(`The \`${t}\` option must use a boolean.`)},Ac=e=>Y(e)||jc(e),Y=e=>Object.prototype.toString.call(e)===`[object AsyncGeneratorFunction]`,jc=e=>Object.prototype.toString.call(e)===`[object GeneratorFunction]`,Mc=e=>O(e)&&(e.transform!==void 0||e.final!==void 0),Nc=e=>Object.prototype.toString.call(e)===`[object URL]`,Pc=e=>Nc(e)&&e.protocol!==`file:`,Fc=e=>O(e)&&Object.keys(e).length>0&&Object.keys(e).every(e=>Ic.has(e))&&Lc(e.file),Ic=new Set([`file`,`append`]),Lc=e=>typeof e==`string`,Rc=(e,t)=>e===`native`&&typeof t==`string`&&!zc.has(t),zc=new Set([`ipc`,`ignore`,`inherit`,`overlapped`,`pipe`]),Bc=e=>Object.prototype.toString.call(e)===`[object ReadableStream]`,Vc=e=>Object.prototype.toString.call(e)===`[object WritableStream]`,Hc=e=>Bc(e)||Vc(e),Uc=e=>Bc(e?.readable)&&Vc(e?.writable),Wc=e=>Kc(e)&&typeof e[Symbol.asyncIterator]==`function`,Gc=e=>Kc(e)&&typeof e[Symbol.iterator]==`function`,Kc=e=>typeof e==`object`&&!!e,X=new Set([`generator`,`asyncGenerator`,`duplex`,`webTransform`]),qc=new Set([`fileUrl`,`filePath`,`fileNumber`]),Jc=new Set([`fileUrl`,`filePath`]),Yc=new Set([...Jc,`webStream`,`nodeStream`]),Xc=new Set([`webTransform`,`duplex`]),Zc={generator:`a generator`,asyncGenerator:`an async generator`,fileUrl:`a file URL`,filePath:`a file path string`,fileNumber:`a file descriptor number`,webStream:`a web stream`,nodeStream:`a Node.js stream`,webTransform:`a web TransformStream`,duplex:`a Duplex stream`,native:`any value`,iterable:`an iterable`,asyncIterable:`an async iterable`,string:`a string`,uint8Array:`a Uint8Array`}})),Qc,$c,el,tl,nl=t((()=>{Z(),Qc=(e,t,n,r)=>r===`output`?$c(e,t,n):el(e,t,n),$c=(e,t,n)=>{let r=t!==0&&n[t-1].value.readableObjectMode;return{writableObjectMode:r,readableObjectMode:e??r}},el=(e,t,n)=>{let r=t===0?e===!0:n[t-1].value.readableObjectMode;return{writableObjectMode:r,readableObjectMode:t!==n.length-1&&(e??r)}},tl=(e,t)=>{let n=e.findLast(({type:e})=>X.has(e));return n===void 0?!1:t===`input`?n.value.writableObjectMode:n.value.readableObjectMode}})),rl,il,al,ol,sl,cl,ll,ul=t((()=>{k(),$a(),Z(),nl(),rl=(e,t,n,r)=>[...e.filter(({type:e})=>!X.has(e)),...il(e,t,n,r)],il=(e,t,n,{encoding:r})=>{let i=e.filter(({type:e})=>X.has(e)),a=Array.from({length:i.length});for(let[e,o]of Object.entries(i))a[e]=al({stdioItem:o,index:Number(e),newTransforms:a,optionName:t,direction:n,encoding:r});return ll(a,n)},al=({stdioItem:e,stdioItem:{type:t},index:n,newTransforms:r,optionName:i,direction:a,encoding:o})=>t===`duplex`?ol({stdioItem:e,optionName:i}):t===`webTransform`?sl({stdioItem:e,index:n,newTransforms:r,direction:a}):cl({stdioItem:e,index:n,newTransforms:r,direction:a,encoding:o}),ol=({stdioItem:e,stdioItem:{value:{transform:t,transform:{writableObjectMode:n,readableObjectMode:r},objectMode:i=r}},optionName:a})=>{if(i&&!r)throw TypeError(`The \`${a}.objectMode\` option can only be \`true\` if \`new Duplex({objectMode: true})\` is used.`);if(!i&&r)throw TypeError(`The \`${a}.objectMode\` option cannot be \`false\` if \`new Duplex({objectMode: true})\` is used.`);return{...e,value:{transform:t,writableObjectMode:n,readableObjectMode:r}}},sl=({stdioItem:e,stdioItem:{value:t},index:n,newTransforms:r,direction:i})=>{let{transform:a,objectMode:o}=O(t)?t:{transform:t},{writableObjectMode:s,readableObjectMode:c}=Qc(o,n,r,i);return{...e,value:{transform:a,writableObjectMode:s,readableObjectMode:c}}},cl=({stdioItem:e,stdioItem:{value:t},index:n,newTransforms:r,direction:i,encoding:a})=>{let{transform:o,final:s,binary:c=!1,preserveNewlines:l=!1,objectMode:u}=O(t)?t:{transform:t},d=c||U.has(a),{writableObjectMode:f,readableObjectMode:p}=Qc(u,n,r,i);return{...e,value:{transform:o,final:s,binary:d,preserveNewlines:l,writableObjectMode:f,readableObjectMode:p}}},ll=(e,t)=>t===`input`?e.reverse():e})),dl,fl,pl,ml,hl,gl,_l,vl,yl=t((()=>{Co(),Z(),dl=(e,t,n)=>{let r=e.map(e=>fl(e,t));if(r.includes(`input`)&&r.includes(`output`))throw TypeError(`The \`${n}\` option must not be an array of both readable and writable values.`);return r.find(Boolean)??vl},fl=({type:e,value:t},n)=>pl[n]??gl[e](t),pl=[`input`,`output`,`output`],ml=()=>void 0,hl=()=>`input`,gl={generator:ml,asyncGenerator:ml,fileUrl:ml,filePath:ml,iterable:hl,asyncIterable:hl,uint8Array:hl,webStream:e=>Vc(e)?`output`:`input`,nodeStream(e){return xo(e,{checkOpen:!1})?bo(e,{checkOpen:!1})?void 0:`input`:`output`},webTransform:ml,duplex:ml,native(e){let t=_l(e);if(t!==void 0)return t;if(W(e,{checkOpen:!1}))return gl.nodeStream(e)}},_l=e=>{if([0,C.stdin].includes(e))return`input`;if([1,2,C.stdout,C.stderr].includes(e))return`output`},vl=`output`})),bl,xl=t((()=>{bl=(e,t)=>t&&!e.includes(`ipc`)?[...e,`ipc`]:e})),Sl,Cl,wl,Tl,El,Dl,Ol=t((()=>{P(),xl(),I(),Sl=({stdio:e,ipc:t,buffer:n,...r},i,a)=>{let o=Cl(e,r).map((e,t)=>Tl(e,t));return a?El(o,n,i):bl(o,t)},Cl=(e,t)=>{if(e===void 0)return N.map(e=>t[e]);if(wl(t))throw Error(`It's not possible to provide \`stdio\` in combination with one of ${N.map(e=>`\`${e}\``).join(`, `)}`);if(typeof e==`string`)return[e,e,e];if(!Array.isArray(e))throw TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof e}\``);let n=Math.max(e.length,N.length);return Array.from({length:n},(t,n)=>e[n])},wl=e=>N.some(t=>e[t]!==void 0),Tl=(e,t)=>Array.isArray(e)?e.map(e=>Tl(e,t)):e??(t>=N.length?`ignore`:`pipe`),El=(e,t,n)=>e.map((e,r)=>!t[r]&&r!==0&&!Pt(n,r)&&Dl(e)?`ignore`:e),Dl=e=>e===`pipe`||Array.isArray(e)&&e.every(e=>e===`pipe`)})),kl,Al,jl,Ml,Nl,Pl,Fl=t((()=>{Co(),P(),j(),H(),kl=({stdioItem:e,stdioItem:{type:t},isStdioArray:n,fdNumber:r,direction:i,isSync:a})=>!n||t!==`native`?e:a?Al({stdioItem:e,fdNumber:r,direction:i}):Nl({stdioItem:e,fdNumber:r}),Al=({stdioItem:e,stdioItem:{value:t,optionName:n},fdNumber:r,direction:i})=>{let a=jl({value:t,optionName:n,fdNumber:r,direction:i});if(a!==void 0)return a;if(W(t,{checkOpen:!1}))throw TypeError(`The \`${n}: Stream\` option cannot both be an array and include a stream with synchronous methods.`);return e},jl=({value:e,optionName:t,fdNumber:n,direction:r})=>{let i=Ml(e,n);if(i!==void 0){if(r===`output`)return{type:`fileNumber`,value:i,optionName:t};if(we.isatty(i))throw TypeError(`The \`${t}: ${ji(e)}\` option is invalid: it cannot be a TTY with synchronous methods.`);return{type:`uint8Array`,value:Xe(be(i)),optionName:t}}},Ml=(e,t)=>{if(e===`inherit`)return t;if(typeof e==`number`)return e;let n=_t.indexOf(e);if(n!==-1)return n},Nl=({stdioItem:e,stdioItem:{value:t,optionName:n},fdNumber:r})=>t===`inherit`?{type:`nodeStream`,value:Pl(r,t,n),optionName:n}:typeof t==`number`?{type:`nodeStream`,value:Pl(t,t,n),optionName:n}:W(t,{checkOpen:!1})?{type:`nodeStream`,value:t,optionName:n}:e,Pl=(e,t,n)=>{let r=_t[e];if(r===void 0)throw TypeError(`The \`${n}: ${t}\` option is invalid: no such standard stream.`);return r}})),Il,Ll,Rl,zl,Bl,Vl=t((()=>{Co(),j(),Z(),Il=({input:e,inputFile:t},n)=>n===0?[...Ll(e),...zl(t)]:[],Ll=e=>e===void 0?[]:[{type:Rl(e),value:e,optionName:`input`}],Rl=e=>{if(xo(e,{checkOpen:!1}))return`nodeStream`;if(typeof e==`string`)return`string`;if(A(e))return`uint8Array`;throw Error("The `input` option must be a string, a Uint8Array or a Node.js Readable stream.")},zl=e=>e===void 0?[]:[{...Bl(e),optionName:`inputFile`}],Bl=e=>{if(Nc(e))return{type:`fileUrl`,value:e};if(Lc(e))return{type:`filePath`,value:{file:e}};throw Error("The `inputFile` option must be a file path string or a file URL.")}})),Hl,Ul,Wl,Gl,Kl,ql,Jl,Yl,Xl=t((()=>{Z(),Hl=e=>e.filter((t,n)=>e.every((e,r)=>t.value!==e.value||n>=r||t.type===`generator`||t.type===`asyncGenerator`)),Ul=({stdioItem:{type:e,value:t,optionName:n},direction:r,fileDescriptors:i,isSync:a})=>{let o=Wl(i,e);if(o.length!==0){if(a){Gl({otherStdioItems:o,type:e,value:t,optionName:n,direction:r});return}if(Yc.has(e))return Kl({otherStdioItems:o,type:e,value:t,optionName:n,direction:r});Xc.has(e)&&Jl({otherStdioItems:o,type:e,value:t,optionName:n})}},Wl=(e,t)=>e.flatMap(({direction:e,stdioItems:n})=>n.filter(e=>e.type===t).map((t=>({...t,direction:e})))),Gl=({otherStdioItems:e,type:t,value:n,optionName:r,direction:i})=>{Jc.has(t)&&Kl({otherStdioItems:e,type:t,value:n,optionName:r,direction:i})},Kl=({otherStdioItems:e,type:t,value:n,optionName:r,direction:i})=>{let a=e.filter(e=>ql(e,n));if(a.length===0)return;let o=a.find(e=>e.direction!==i);return Yl(o,r,t),i===`output`?a[0].stream:void 0},ql=({type:e,value:t},n)=>e===`filePath`?t.file===n.file:e===`fileUrl`?t.href===n.href:t===n,Jl=({otherStdioItems:e,type:t,value:n,optionName:r})=>{let i=e.find(({value:{transform:e}})=>e===n.transform);Yl(i,r,t)},Yl=(e,t,n)=>{if(e!==void 0)throw TypeError(`The \`${e.optionName}\` and \`${t}\` options must not target ${Zc[n]} that is the same.`)}})),Zl,Ql,$l,eu,tu,nu,ru,iu,au,ou,su,cu,lu,uu,du=t((()=>{P(),ul(),nl(),Z(),yl(),Ol(),Fl(),Vl(),Xl(),Zl=(e,t,n,r)=>{let i=Sl(t,n,r).map((e,n)=>Ql({stdioOption:e,fdNumber:n,options:t,isSync:r})),a=ou({initialFileDescriptors:i,addProperties:e,options:t,isSync:r});return t.stdio=a.map(({stdioItems:e})=>uu(e)),a},Ql=({stdioOption:e,fdNumber:t,options:n,isSync:r})=>{let i=vt(t),{stdioItems:a,isStdioArray:o}=$l({stdioOption:e,fdNumber:t,options:n,optionName:i}),s=dl(a,t,i),c=rl(a.map(e=>kl({stdioItem:e,isStdioArray:o,fdNumber:t,direction:s,isSync:r})),i,s,n),l=tl(c,s);return au(c,l),{direction:s,objectMode:l,stdioItems:c}},$l=({stdioOption:e,fdNumber:t,options:n,optionName:r})=>{let i=Hl([...(Array.isArray(e)?e:[e]).map(e=>eu(e,r)),...Il(n,t)]),a=i.length>1;return tu(i,a,r),ru(i),{stdioItems:i,isStdioArray:a}},eu=(e,t)=>({type:Sc(e,t),value:e,optionName:t}),tu=(e,t,n)=>{if(e.length===0)throw TypeError(`The \`${n}\` option must not be an empty array.`);if(t){for(let{value:t,optionName:n}of e)if(nu.has(t))throw Error(`The \`${n}\` option must not include \`${t}\`.`)}},nu=new Set([`ignore`,`ipc`]),ru=e=>{for(let t of e)iu(t)},iu=({type:e,value:t,optionName:n})=>{if(Pc(t))throw TypeError(`The \`${n}: URL\` option must use the \`file:\` scheme.
28
+ For example, you can use the \`pathToFileURL()\` method of the \`url\` core module.`);if(Rc(e,t))throw TypeError(`The \`${n}: { file: '...' }\` option must be used instead of \`${n}: '...'\`.`)},au=(e,t)=>{if(!t)return;let n=e.find(({type:e})=>qc.has(e));if(n!==void 0)throw TypeError(`The \`${n.optionName}\` option cannot use both files and transforms in objectMode.`)},ou=({initialFileDescriptors:e,addProperties:t,options:n,isSync:r})=>{let i=[];try{for(let a of e)i.push(su({fileDescriptor:a,fileDescriptors:i,addProperties:t,options:n,isSync:r}));return i}catch(e){throw lu(i),e}},su=({fileDescriptor:{direction:e,objectMode:t,stdioItems:n},fileDescriptors:r,addProperties:i,options:a,isSync:o})=>({direction:e,objectMode:t,stdioItems:n.map(t=>cu({stdioItem:t,addProperties:i,direction:e,options:a,fileDescriptors:r,isSync:o}))}),cu=({stdioItem:e,addProperties:t,direction:n,options:r,fileDescriptors:i,isSync:a})=>{let o=Ul({stdioItem:e,direction:n,fileDescriptors:i,isSync:a});return o===void 0?{...e,...t[n][e.type](e,r)}:{...e,stream:o}},lu=e=>{for(let{stdioItems:t}of e)for(let{stream:e}of t)e!==void 0&&!M(e)&&e.destroy()},uu=e=>{if(e.length>1)return e.some(({value:e})=>e===`overlapped`)?`overlapped`:`pipe`;let[{type:t,value:n}]=e;return t===`native`?n:`pipe`}})),fu,Q,pu,mu,hu,gu,_u=t((()=>{j(),du(),Z(),fu=(e,t)=>Zl(gu,e,t,!0),Q=({type:e,optionName:t})=>{mu(t,Zc[e])},pu=({optionName:e,value:t})=>((t===`ipc`||t===`overlapped`)&&mu(e,`"${t}"`),{}),mu=(e,t)=>{throw TypeError(`The \`${e}\` option cannot be ${t} with synchronous methods.`)},hu={generator(){},asyncGenerator:Q,webStream:Q,nodeStream:Q,webTransform:Q,duplex:Q,asyncIterable:Q,native:pu},gu={input:{...hu,fileUrl:({value:e})=>({contents:[Xe(be(e))]}),filePath:({value:{file:e}})=>({contents:[Xe(be(e))]}),fileNumber:Q,iterable:({value:e})=>({contents:[...e]}),string:({value:e})=>({contents:[e]}),uint8Array:({value:e})=>({contents:[e]})},output:{...hu,fileUrl:({value:e})=>({path:e}),filePath:({value:{file:e,append:t}})=>({path:e,append:t}),fileNumber:({value:e})=>({path:e}),iterable:Q,string:Q,uint8Array:Q}}})),vu,yu,bu=t((()=>{yo(),vu=(e,{stripFinalNewline:t},n)=>yu(t,n)&&e!==void 0&&!Array.isArray(e)?fo(e):e,yu=(e,t)=>t===`all`?e[1]||e[2]:e[t]})),xu,Su,Cu,wu,Tu,Eu,Du,Ou,ku,Au,ju,Mu,Nu,Pu=t((()=>{xu=(e,t,n,r)=>e||n?void 0:wu(t,r),Su=(e,t,n)=>n?e.flatMap(e=>Cu(e,t)):Cu(e,t),Cu=(e,t)=>{let{transform:n,final:r}=wu(t,{});return[...n(e),...r()]},wu=(e,t)=>(t.previousChunks=``,{transform:Tu.bind(void 0,t,e),final:Du.bind(void 0,t)}),Tu=function*(e,t,n){if(typeof n!=`string`){yield n;return}let{previousChunks:r}=e,i=-1;for(let a=0;a<n.length;a+=1)if(n[a]===`
29
+ `){let o=Eu(n,a,t,e),s=n.slice(i+1,a+1-o);r.length>0&&(s=Au(r,s),r=``),yield s,i=a}i!==n.length-1&&(r=Au(r,n.slice(i+1))),e.previousChunks=r},Eu=(e,t,n,r)=>n?0:(r.isWindowsNewline=t!==0&&e[t-1]===`\r`,r.isWindowsNewline?2:1),Du=function*({previousChunks:e}){e.length>0&&(yield e)},Ou=({binary:e,preserveNewlines:t,readableObjectMode:n,state:r})=>e||t||n?void 0:{transform:ku.bind(void 0,r)},ku=function*({isWindowsNewline:e=!1},t){let{unixNewline:n,windowsNewline:r,LF:i,concatBytes:a}=typeof t==`string`?ju:Nu;if(t.at(-1)===i){yield t;return}yield a(t,e?r:n)},Au=(e,t)=>`${e}${t}`,ju={windowsNewline:`\r
30
+ `,unixNewline:`
31
+ `,LF:`
32
+ `,concatBytes:Au},Mu=(e,t)=>{let n=new Uint8Array(e.length+t.length);return n.set(e,0),n.set(t,e.length),n},Nu={windowsNewline:new Uint8Array([13,10]),unixNewline:new Uint8Array([10]),LF:10,concatBytes:Mu}})),Fu,Iu,Lu,Ru,zu,Bu,Vu=t((()=>{j(),Fu=(e,t)=>e?void 0:Iu.bind(void 0,t),Iu=function*(e,t){if(typeof t!=`string`&&!A(t)&&!Ie.isBuffer(t))throw TypeError(`The \`${e}\` option's transform must use "objectMode: true" to receive as input: ${typeof t}.`);yield t},Lu=(e,t)=>e?Ru.bind(void 0,t):zu.bind(void 0,t),Ru=function*(e,t){Bu(e,t),yield t},zu=function*(e,t){if(Bu(e,t),typeof t!=`string`&&!A(t))throw TypeError(`The \`${e}\` option's function must yield a string or an Uint8Array, not ${typeof t}.`);yield t},Bu=(e,t)=>{if(t==null)throw TypeError(`The \`${e}\` option's function must not call \`yield ${t}\`.
33
+ Instead, \`yield\` should either be called with a value, or not be called at all. For example:
34
+ if (condition) { yield value; }`)}})),Hu,Uu,Wu,Gu,Ku=t((()=>{j(),Hu=(e,t,n)=>{if(n)return;if(e)return{transform:Uu.bind(void 0,new TextEncoder)};let r=new Pe(t);return{transform:Wu.bind(void 0,r),final:Gu.bind(void 0,r)}},Uu=function*(e,t){Ie.isBuffer(t)?yield Xe(t):typeof t==`string`?yield e.encode(t):yield t},Wu=function*(e,t){yield A(t)?e.write(t):t},Gu=function*(e){let t=e.end();t!==``&&(yield t)}})),qu,Ju,Yu,Xu,Zu,Qu,$u=t((()=>{qu=S(async(e,t,n,r)=>{t.currentIterable=e(...n);try{for await(let e of t.currentIterable)r.push(e)}finally{delete t.currentIterable}}),Ju=async function*(e,t,n){if(n===t.length){yield e;return}let{transform:r=Qu}=t[n];for await(let i of r(e))yield*Ju(i,t,n+1)},Yu=async function*(e){for(let[t,{final:n}]of Object.entries(e))yield*Xu(n,Number(t),e)},Xu=async function*(e,t,n){if(e!==void 0)for await(let r of e())yield*Ju(r,n,t+1)},Zu=S(async({currentIterable:e},t)=>{if(e!==void 0){await(t?e.throw(t):e.return());return}if(t)throw t}),Qu=function*(e){yield e}})),ed,td,nd,rd,id,ad,od=t((()=>{ed=(e,t,n,r)=>{try{for(let r of e(...t))n.push(r);r()}catch(e){r(e)}},td=(e,t)=>[...t.flatMap(t=>[...nd(t,e,0)]),...rd(e)],nd=function*(e,t,n){if(n===t.length){yield e;return}let{transform:r=ad}=t[n];for(let i of r(e))yield*nd(i,t,n+1)},rd=function*(e){for(let[t,{final:n}]of Object.entries(e))yield*id(n,Number(t),e)},id=function*(e,t,n){if(e!==void 0)for(let r of e())yield*nd(r,n,t+1)},ad=function*(e){yield e}})),sd,cd,ld,ud=t((()=>{Z(),Pu(),Vu(),Ku(),$u(),od(),sd=({value:e,value:{transform:t,final:n,writableObjectMode:r,readableObjectMode:i},optionName:a},{encoding:o})=>{let s={},c=ld(e,o,a),l=Y(t),u=Y(n),d=l?qu.bind(void 0,Ju,s):ed.bind(void 0,nd),f=l||u?qu.bind(void 0,Yu,s):ed.bind(void 0,rd),p=l||u?Zu.bind(void 0,s):void 0;return{stream:new je({writableObjectMode:r,writableHighWaterMark:Ne(r),readableObjectMode:i,readableHighWaterMark:Ne(i),transform(e,t,n){d([e,c,0],this,n)},flush(e){f([c],this,e)},destroy:p})}},cd=(e,t,n,r)=>{let i=t.filter(({type:e})=>e===`generator`),a=r?i.reverse():i;for(let{value:t,optionName:r}of a)e=td(ld(t,n,r),e);return e},ld=({transform:e,final:t,binary:n,writableObjectMode:r,readableObjectMode:i,preserveNewlines:a},o,s)=>{let c={};return[{transform:Fu(r,s)},Hu(n,o,r),xu(n,a,r,c),{transform:e,final:t},{transform:Lu(i,s)},Ou({binary:n,preserveNewlines:a,readableObjectMode:i,state:c})].filter(Boolean)}})),dd,fd,pd,md,hd,gd=t((()=>{ud(),j(),Z(),dd=(e,t)=>{for(let n of fd(e))pd(e,n,t)},fd=e=>new Set(Object.entries(e).filter(([,{direction:e}])=>e===`input`).map(([e])=>Number(e))),pd=(e,t,n)=>{let{stdioItems:r}=e[t],i=r.filter(({contents:e})=>e!==void 0);if(i.length!==0){if(t!==0){let[{type:e,optionName:t}]=i;throw TypeError(`Only the \`stdin\` option, not \`${t}\`, can be ${Zc[e]} with synchronous methods.`)}n.input=rt(i.map(({contents:e})=>e).map(e=>md(e,r)))}},md=(e,t)=>{let n=cd(e,t,`utf8`,!0);return hd(n),rt(n)},hd=e=>{let t=e.find(e=>typeof e!=`string`&&!A(e));if(t!==void 0)throw TypeError(`The \`stdin\` option is invalid: when passing objects as input, a transform must be used to serialize them to strings or Uint8Arrays: ${t}.`)}})),_d,vd,yd,bd,xd,Sd,Cd,wd=t((()=>{$a(),Z(),Cn(),I(),_d=({stdioItems:e,encoding:t,verboseInfo:n,fdNumber:r})=>r!==`all`&&Pt(n,r)&&!U.has(t)&&vd(r)&&(e.some(({type:e,value:t})=>e===`native`&&yd.has(t))||e.every(({type:e})=>X.has(e))),vd=e=>e===1||e===2,yd=new Set([`pipe`,`overlapped`]),bd=async(e,t,n,r)=>{for await(let i of e)Sd(t)||Cd(i,n,r)},xd=(e,t,n)=>{for(let r of e)Cd(r,t,n)},Sd=e=>e._readableState.pipes.length>0,Cd=(e,t,n)=>{_n({type:`output`,verboseMessage:xn(e),fdNumber:t,verboseInfo:n})}})),Td,Ed,Dd,Od,kd,Ad,jd=t((()=>{wd(),ud(),Pu(),j(),Z(),Hs(),Td=({fileDescriptors:e,syncResult:{output:t},options:n,isMaxBuffer:r,verboseInfo:i})=>{if(t===null)return{output:Array.from({length:3})};let a={},o=new Set([]);return{output:t.map((t,s)=>Ed({result:t,fileDescriptors:e,fdNumber:s,state:a,outputFiles:o,isMaxBuffer:r,verboseInfo:i},n)),...a}},Ed=({result:e,fileDescriptors:t,fdNumber:n,state:r,outputFiles:i,isMaxBuffer:a,verboseInfo:o},{buffer:s,encoding:c,lines:l,stripFinalNewline:u,maxBuffer:d})=>{if(e===null)return;let f=Xe(Bs(e,a,d)),{stdioItems:p,objectMode:m}=t[n],h=Dd([f],p,c,r),{serializedResult:g,finalResult:_=g}=Od({chunks:h,objectMode:m,encoding:c,lines:l,stripFinalNewline:u,fdNumber:n});kd({serializedResult:g,fdNumber:n,state:r,verboseInfo:o,encoding:c,stdioItems:p,objectMode:m});let v=s[n]?_:void 0;try{return r.error===void 0&&Ad(g,p,i),v}catch(e){return r.error=e,v}},Dd=(e,t,n,r)=>{try{return cd(e,t,n,!1)}catch(t){return r.error=t,e}},Od=({chunks:e,objectMode:t,encoding:n,lines:r,stripFinalNewline:i,fdNumber:a})=>{if(t)return{serializedResult:e};if(n===`buffer`)return{serializedResult:rt(e)};let o=tt(e,n);return r[a]?{serializedResult:o,finalResult:Su(o,!i[a],t)}:{serializedResult:o}},kd=({serializedResult:e,fdNumber:t,state:n,verboseInfo:r,encoding:i,stdioItems:a,objectMode:o})=>{if(!_d({stdioItems:a,encoding:i,verboseInfo:r,fdNumber:t}))return;let s=Su(e,!1,o);try{xd(s,t,r)}catch(e){n.error??(n.error=e)}},Ad=(e,t,n)=>{for(let{path:r,append:i}of t.filter(({type:e})=>qc.has(e))){let t=typeof r==`string`?r:r.toString();i||n.has(t)?_e(r,e):(n.add(t),Se(r,e))}}})),Md,Nd=t((()=>{j(),bu(),Md=([,e,t],n)=>{if(n.all)return e===void 0?t:t===void 0?e:Array.isArray(e)?Array.isArray(t)?[...e,...t]:[...e,vu(t,n,`all`)]:Array.isArray(t)?[vu(e,n,`all`),...t]:A(e)&&A(t)?at([e,t]):`${e}${t}`}})),Pd,Fd,Id,Ld,Rd,zd,Bd=t((()=>{R(),Pd=async(e,t)=>{let[n,r]=await Fd(e);return t.isForcefullyTerminated??(t.isForcefullyTerminated=!1),[n,r]},Fd=async e=>{let[t,n]=await Promise.allSettled([T(e,`spawn`),T(e,`exit`)]);return t.status===`rejected`?[]:n.status===`rejected`?Id(e):n.value},Id=async e=>{try{return await T(e,`exit`)}catch{return Id(e)}},Ld=async e=>{let[t,n]=await e;if(!Rd(t,n)&&zd(t,n))throw new sr;return[t,n]},Rd=(e,t)=>e===void 0&&t===void 0,zd=(e,t)=>e!==0||t!==null})),Vd,Hd,Ud=t((()=>{R(),Hs(),Bd(),Vd=({error:e,status:t,signal:n,output:r},{maxBuffer:i})=>{let a=Hd(e,t,n);return{resultError:a,exitCode:t,signal:n,timedOut:a?.code===`ETIMEDOUT`,isMaxBuffer:zs(a,r,i)}},Hd=(e,t,n)=>e===void 0?zd(t,n)?new sr:void 0:e})),Wd,Gd,Kd,qd,Jd,Yd,Xd,Zd,Qd,$d=t((()=>{Fn(),co(),uo(),rc(),xc(),_u(),bu(),gd(),jd(),Hs(),Nd(),Ud(),Wd=(e,t,n)=>{let{file:r,commandArguments:i,command:a,escapedCommand:o,startTime:s,verboseInfo:c,options:l,fileDescriptors:u}=Gd(e,t,n);return bc(Yd({file:r,commandArguments:i,options:l,command:a,escapedCommand:o,verboseInfo:c,fileDescriptors:u,startTime:s}),c,l)},Gd=(e,t,n)=>{let{command:r,escapedCommand:i,startTime:a,verboseInfo:o}=Pn(e,t,n),{file:s,commandArguments:c,options:l}=ao(e,t,Kd(n));return qd(l),{file:s,commandArguments:c,command:r,escapedCommand:i,startTime:a,verboseInfo:o,options:l,fileDescriptors:fu(l,o)}},Kd=e=>e.node&&!e.ipc?{...e,ipc:!1}:e,qd=({ipc:e,ipcInput:t,detached:n,cancelSignal:r})=>{t&&Jd(`ipcInput`),e&&Jd(`ipc: true`),n&&Jd(`detached: true`),r&&Jd(`cancelSignal`)},Jd=e=>{throw TypeError(`The "${e}" option cannot be used with synchronous methods.`)},Yd=({file:e,commandArguments:t,options:n,command:r,escapedCommand:i,verboseInfo:a,fileDescriptors:o,startTime:s})=>{let c=Xd({file:e,commandArguments:t,options:n,command:r,escapedCommand:i,fileDescriptors:o,startTime:s});if(c.failed)return c;let{resultError:l,exitCode:u,signal:d,timedOut:f,isMaxBuffer:p}=Vd(c,n),{output:m,error:h=l}=Td({fileDescriptors:o,syncResult:c,options:n,isMaxBuffer:p,verboseInfo:a}),g=m.map((e,t)=>vu(e,n,t)),_=vu(Md(m,n),n,`all`);return Qd({error:h,exitCode:u,signal:d,timedOut:f,isMaxBuffer:p,stdio:g,all:_,options:n,command:r,escapedCommand:i,startTime:s})},Xd=({file:e,commandArguments:t,options:n,command:r,escapedCommand:i,fileDescriptors:a,startTime:o})=>{try{return dd(a,n),ge(...lo(e,t,Zd(n)))}catch(e){return Qs({error:e,command:r,escapedCommand:i,fileDescriptors:a,options:n,startTime:o,isSync:!0})}},Zd=({encoding:e,maxBuffer:t,...n})=>({...n,encoding:`buffer`,maxBuffer:Vs(t)}),Qd=({error:e,exitCode:t,signal:n,timedOut:r,isMaxBuffer:i,stdio:a,all:o,options:s,command:c,escapedCommand:l,startTime:u})=>e===void 0?Zs({command:c,escapedCommand:l,stdio:a,all:o,ipcOutput:[],options:s,startTime:u}):$s({error:e,command:c,escapedCommand:l,timedOut:r,isCanceled:!1,isGracefullyCanceled:!1,isMaxBuffer:i,isForcefullyTerminated:!1,exitCode:t,signal:n,stdio:a,all:o,ipcOutput:[],options:s,startTime:u,isSync:!0})})),ef,tf,nf,rf,af,of=t((()=>{yi(),Yi(),Bi(),ef=({anyProcess:e,channel:t,isSubprocess:n,ipc:r},{reference:i=!0,filter:a}={})=>(ni({methodName:`getOneMessage`,isSubprocess:n,ipc:r,isConnected:Ji(e)}),tf({anyProcess:e,channel:t,isSubprocess:n,filter:a,reference:i})),tf=async({anyProcess:e,channel:t,isSubprocess:n,filter:r,reference:i})=>{Pi(t,i);let a=Gi(e,t,n),o=new AbortController;try{return await Promise.race([nf(a,r,o),rf(a,n,o),af(a,n,o)])}catch(t){throw vi(e),t}finally{o.abort(),Ii(t,i)}},nf=async(e,t,{signal:n})=>{if(t===void 0){let[t]=await T(e,`message`,{signal:n});return t}for await(let[r]of De(e,`message`,{signal:n}))if(t(r))return r},rf=async(e,t,{signal:n})=>{await T(e,`disconnect`,{signal:n}),ai(t)},af=async(e,t,{signal:n})=>{let[r]=await T(e,`strict:error`,{signal:n});throw si(r,t)}})),sf,cf,lf,uf,df,ff,pf=t((()=>{yi(),Yi(),Bi(),sf=({anyProcess:e,channel:t,isSubprocess:n,ipc:r},{reference:i=!0}={})=>cf({anyProcess:e,channel:t,isSubprocess:n,ipc:r,shouldAwait:!n,reference:i}),cf=({anyProcess:e,channel:t,isSubprocess:n,ipc:r,shouldAwait:i,reference:a})=>{ni({methodName:`getEachMessage`,isSubprocess:n,ipc:r,isConnected:Ji(e)}),Pi(t,a);let o=Gi(e,t,n),s=new AbortController,c={};return lf(e,o,s),uf({ipcEmitter:o,isSubprocess:n,controller:s,state:c}),df({anyProcess:e,channel:t,ipcEmitter:o,isSubprocess:n,shouldAwait:i,controller:s,state:c,reference:a})},lf=async(e,t,n)=>{try{await T(t,`disconnect`,{signal:n.signal}),n.abort()}catch{}},uf=async({ipcEmitter:e,isSubprocess:t,controller:n,state:r})=>{try{let[i]=await T(e,`strict:error`,{signal:n.signal});r.error=si(i,t),n.abort()}catch{}},df=async function*({anyProcess:e,channel:t,ipcEmitter:n,isSubprocess:r,shouldAwait:i,controller:a,state:o,reference:s}){try{for await(let[e]of De(n,`message`,{signal:a.signal}))ff(o),yield e}catch{ff(o)}finally{a.abort(),Ii(t,s),r||vi(e),i&&await e}},ff=({error:e})=>{if(e)throw e}})),mf,hf,gf,_f=t((()=>{ya(),of(),pf(),Oa(),mf=(e,{ipc:t})=>{Object.assign(e,gf(e,!1,t))},hf=()=>{let e=C,t=C.channel!==void 0;return{...gf(e,!0,t),getCancelSignal:xa.bind(void 0,{anyProcess:e,channel:e.channel,isSubprocess:!0,ipc:t})}},gf=(e,t,n)=>({sendMessage:ma.bind(void 0,{anyProcess:e,channel:e.channel,isSubprocess:t,ipc:n}),getOneMessage:ef.bind(void 0,{anyProcess:e,channel:e.channel,isSubprocess:t,ipc:n}),getEachMessage:sf.bind(void 0,{anyProcess:e,channel:e.channel,isSubprocess:t,ipc:n})})})),vf,yf,bf,xf,Sf,Cf,wf,Tf=t((()=>{du(),rc(),xc(),vf=({error:e,command:t,escapedCommand:n,fileDescriptors:r,options:i,startTime:a,verboseInfo:o})=>{lu(r);let s=new pe;yf(s,r),Object.assign(s,{readable:xf,writable:Sf,duplex:Cf});let c=Qs({error:e,command:t,escapedCommand:n,fileDescriptors:r,options:i,startTime:a,isSync:!1});return{subprocess:s,promise:wf(c,o,i)}},yf=(e,t)=>{let n=bf(),r=bf(),i=bf(),a=Array.from({length:t.length-3},bf),o=bf(),s=[n,r,i,...a];Object.assign(e,{stdin:n,stdout:r,stderr:i,all:o,stdio:s})},bf=()=>{let e=new Ae;return e.end(),e},xf=()=>new E({read(){}}),Sf=()=>new Me({write(){}}),Cf=()=>new ke({read(){},write(){}}),wf=async(e,t,n)=>bc(e,t,n)})),Ef,Df,Of,kf,Af=t((()=>{ud(),du(),Z(),Ef=(e,t)=>Zl(kf,e,t,!1),Df=({type:e,optionName:t})=>{throw TypeError(`The \`${t}\` option cannot be ${Zc[e]}.`)},Of={fileNumber:Df,generator:sd,asyncGenerator:sd,nodeStream:({value:e})=>({stream:e}),webTransform({value:{transform:e,writableObjectMode:t,readableObjectMode:n}}){let r=t||n;return{stream:ke.fromWeb(e,{objectMode:r})}},duplex:({value:{transform:e}})=>({stream:e}),native(){}},kf={input:{...Of,fileUrl:({value:e})=>({stream:ve(e)}),filePath:({value:{file:e}})=>({stream:ve(e)}),webStream:({value:e})=>({stream:E.fromWeb(e)}),iterable:({value:e})=>({stream:E.from(e)}),asyncIterable:({value:e})=>({stream:E.from(e)}),string:({value:e})=>({stream:E.from(e)}),uint8Array:({value:e})=>({stream:E.from(Ie.from(e))})},output:{...Of,fileUrl:({value:e})=>({stream:ye(e)}),filePath:({value:{file:e,append:t}})=>({stream:ye(e,t?{flags:`a`}:{})}),webStream:({value:e})=>({stream:Me.fromWeb(e)}),iterable:Df,asyncIterable:Df,string:Df,uint8Array:Df}}}));function jf(e){if(!Array.isArray(e))throw TypeError(`Expected an array, got \`${typeof e}\`.`);for(let t of e)Uf(t);let t=e.some(({readableObjectMode:e})=>e),n=Mf(e,t),r=new zf({objectMode:t,writableHighWaterMark:n,readableHighWaterMark:n});for(let t of e)r.add(t);return r}var Mf,Nf,Pf,Ff,If,Lf,Rf,zf,Bf,Vf,Hf,Uf,Wf,Gf,Kf,qf,Jf,Yf,Xf,Zf,Qf,$f,ep,tp,np,rp=t((()=>{s(),c(),l(),Mf=(e,t)=>{if(e.length===0)return Ne(t);let n=e.filter(({readableObjectMode:e})=>e===t).map(({readableHighWaterMark:e})=>e);return Math.max(...n)},Nf=new WeakMap,Pf=new WeakMap,Ff=new WeakMap,If=new WeakMap,Lf=new WeakMap,Rf=new WeakMap,zf=class extends Ae{constructor(...e){super(...e),f(this,Nf,new Set([])),f(this,Pf,new Set([])),f(this,Ff,new Set([])),f(this,If,void 0),f(this,Lf,Symbol(`unpipe`)),f(this,Rf,new WeakMap)}add(e){if(Uf(e),d(Nf,this).has(e))return;d(Nf,this).add(e),d(If,this)??p(If,this,Bf(this,d(Nf,this),d(Lf,this)));let t=Wf({passThroughStream:this,stream:e,streams:d(Nf,this),ended:d(Pf,this),aborted:d(Ff,this),onFinished:d(If,this),unpipeEvent:d(Lf,this)});d(Rf,this).set(e,t),e.pipe(this,{end:!1})}async remove(e){if(Uf(e),!d(Nf,this).has(e))return!1;let t=d(Rf,this).get(e);return t===void 0?!1:(d(Rf,this).delete(e),e.unpipe(this),await t,!0)}},Bf=async(e,t,n)=>{ep(e,tp);let r=new AbortController;try{await Promise.race([Vf(e,r),Hf(e,t,n,r)])}finally{r.abort(),ep(e,-tp)}},Vf=async(e,{signal:t})=>{try{await D(e,{signal:t,cleanup:!0})}catch(t){throw Yf(e,t),t}},Hf=async(e,t,n,{signal:r})=>{for await(let[i]of De(e,`unpipe`,{signal:r}))t.has(i)&&i.emit(n)},Uf=e=>{if(typeof e?.pipe!=`function`)throw TypeError(`Expected a readable stream, got: \`${typeof e}\`.`)},Wf=async({passThroughStream:e,stream:t,streams:n,ended:r,aborted:i,onFinished:a,unpipeEvent:o})=>{ep(e,np);let s=new AbortController;try{await Promise.race([Gf(a,t,s),Kf({passThroughStream:e,stream:t,streams:n,ended:r,aborted:i,controller:s}),qf({stream:t,streams:n,ended:r,aborted:i,unpipeEvent:o,controller:s})])}finally{s.abort(),ep(e,-np)}n.size>0&&n.size===r.size+i.size&&(r.size===0&&i.size>0?Zf(e):Jf(e))},Gf=async(e,t,{signal:n})=>{try{await e,n.aborted||Zf(t)}catch(e){n.aborted||Yf(t,e)}},Kf=async({passThroughStream:e,stream:t,streams:n,ended:r,aborted:i,controller:{signal:a}})=>{try{await D(t,{signal:a,cleanup:!0,readable:!0,writable:!1}),n.has(t)&&r.add(t)}catch(r){if(a.aborted||!n.has(t))return;Xf(r)?i.add(t):Qf(e,r)}},qf=async({stream:e,streams:t,ended:n,aborted:r,unpipeEvent:i,controller:{signal:a}})=>{if(await T(e,i,{signal:a}),!e.readable)return T(a,`abort`,{signal:a});t.delete(e),n.delete(e),r.delete(e)},Jf=e=>{e.writable&&e.end()},Yf=(e,t)=>{Xf(t)?Zf(e):Qf(e,t)},Xf=e=>e?.code===`ERR_STREAM_PREMATURE_CLOSE`,Zf=e=>{(e.readable||e.writable)&&e.destroy()},Qf=(e,t)=>{e.destroyed||(e.once(`error`,$f),e.destroy(t))},$f=()=>{},ep=(e,t)=>{let n=e.getMaxListeners();n!==0&&n!==1/0&&e.setMaxListeners(n+t)},tp=2,np=1})),ip,ap,op,sp,cp,lp=t((()=>{P(),ip=(e,t)=>{e.pipe(t),ap(e,t),sp(e,t)},ap=async(e,t)=>{if(!(M(e)||M(t))){try{await D(e,{cleanup:!0,readable:!0,writable:!1})}catch{}op(t)}},op=e=>{e.writable&&e.end()},sp=async(e,t)=>{if(!(M(e)||M(t))){try{await D(t,{cleanup:!0,readable:!1,writable:!0})}catch{}cp(e)}},cp=e=>{e.readable&&e.destroy()}})),up,dp,fp,pp,mp,hp,gp=t((()=>{rp(),P(),Ni(),Z(),lp(),up=(e,t,n)=>{let r=new Map;for(let[i,{stdioItems:a,direction:o}]of Object.entries(t)){for(let{stream:t}of a.filter(({type:e})=>X.has(e)))dp(e,t,o,i);for(let{stream:t}of a.filter(({type:e})=>!X.has(e)))pp({subprocess:e,stream:t,direction:o,fdNumber:i,pipeGroups:r,controller:n})}for(let[e,t]of r.entries())ip(t.length===1?t[0]:jf(t),e)},dp=(e,t,n,r)=>{n===`output`?ip(e.stdio[r],t):ip(t,e.stdio[r]);let i=fp[r];i!==void 0&&(e[i]=t),e.stdio[r]=t},fp=[`stdin`,`stdout`,`stderr`],pp=({subprocess:e,stream:t,direction:n,fdNumber:r,pipeGroups:i,controller:a})=>{if(t===void 0)return;mp(t,a);let[o,s]=n===`output`?[t,e.stdio[r]]:[e.stdio[r],t],c=i.get(o)??[];i.set(o,[...c,s])},mp=(e,{signal:t})=>{M(e)&&Mi(e,hp,t)},hp=2})),_p,vp=t((()=>{v(),_p=(e,{cleanup:t,detached:n},{signal:r})=>{if(!t||n)return;let i=g(()=>{e.kill()});Ee(r,()=>{i()})}})),yp,bp,xp,Sp,Cp,wp=t((()=>{qe(),Nn(),H(),Ge(),yp=({source:e,sourcePromise:t,boundOptions:n,createNested:r},...i)=>{let a=jn(),{destination:o,destinationStream:s,destinationError:c,from:l,unpipeSignal:u}=bp(n,r,i),{sourceStream:d,sourceError:f}=Cp(e,l),{options:p,fileDescriptors:m}=V.get(e);return{sourcePromise:t,sourceStream:d,sourceOptions:p,sourceError:f,destination:o,destinationStream:s,destinationError:c,unpipeSignal:u,fileDescriptors:m,startTime:a}},bp=(e,t,n)=>{try{let{destination:r,pipeOptions:{from:i,to:a,unpipeSignal:o}={}}=xp(e,t,...n);return{destination:r,destinationStream:Si(r,a),from:i,unpipeSignal:o}}catch(e){return{destinationError:e}}},xp=(e,t,n,...r)=>{if(Array.isArray(n))return{destination:t(Sp,e)(n,...r),pipeOptions:e};if(typeof n==`string`||n instanceof URL||Ue(n)){if(Object.keys(e).length>0)throw TypeError(`Please use .pipe("file", ..., options) or .pipe(execa("file", ..., options)) instead of .pipe(options)("file", ...).`);let[i,a,o]=Ke(n,...r);return{destination:t(Sp)(i,a,o),pipeOptions:o}}if(V.has(n)){if(Object.keys(e).length>0)throw TypeError("Please use .pipe(options)`command` or .pipe($(options)`command`) instead of .pipe(options)($`command`).");return{destination:n,pipeOptions:r[0]}}throw TypeError(`The first argument must be a template string, an options object, or an Execa subprocess: ${n}`)},Sp=({options:e})=>({options:{...e,stdin:`pipe`,piped:!0}}),Cp=(e,t)=>{try{return{sourceStream:Ci(e,t)}}catch(e){return{sourceError:e}}}})),Tp,Ep,Dp,Op,kp=t((()=>{rc(),lp(),Tp=({sourceStream:e,sourceError:t,destinationStream:n,destinationError:r,fileDescriptors:i,sourceOptions:a,startTime:o})=>{let s=Ep({sourceStream:e,sourceError:t,destinationStream:n,destinationError:r});if(s!==void 0)throw Dp({error:s,fileDescriptors:i,sourceOptions:a,startTime:o})},Ep=({sourceStream:e,sourceError:t,destinationStream:n,destinationError:r})=>{if(t!==void 0&&r!==void 0)return r;if(r!==void 0)return cp(e),r;if(t!==void 0)return op(n),t},Dp=({error:e,fileDescriptors:t,sourceOptions:n,startTime:r})=>Qs({error:e,command:Op,escapedCommand:Op,fileDescriptors:t,options:n,startTime:r,isSync:!1}),Op=`source.pipe(destination)`})),Ap,jp=t((()=>{Ap=async e=>{let[{status:t,reason:n,value:r=n},{status:i,reason:a,value:o=a}]=await e;if(o.pipedFrom.includes(r)||o.pipedFrom.push(r),i===`rejected`)throw o;if(t===`rejected`)throw r;return o}})),Mp,Np,Pp,Fp,Ip,Lp,Rp,zp=t((()=>{rp(),Ni(),lp(),Mp=(e,t,n)=>{let r=Ip.has(t)?Pp(e,t):Np(e,t);return Mi(e,Lp,n.signal),Mi(t,Rp,n.signal),Fp(t),r},Np=(e,t)=>{let n=jf([e]);return ip(n,t),Ip.set(t,n),n},Pp=(e,t)=>{let n=Ip.get(t);return n.add(e),n},Fp=async e=>{try{await D(e,{cleanup:!0,readable:!1,writable:!0})}catch{}Ip.delete(e)},Ip=new WeakMap,Lp=2,Rp=1})),Bp,Vp,Hp=t((()=>{kp(),Bp=(e,t)=>e===void 0?[]:[Vp(e,t)],Vp=async(e,{sourceStream:t,mergedStream:n,fileDescriptors:r,sourceOptions:i,startTime:a})=>{throw await ie(e,t),await n.remove(t),Dp({error:Error("Pipe canceled by `unpipeSignal` option."),fileDescriptors:r,sourceOptions:i,startTime:a})}})),Up,Wp,Gp,Kp=t((()=>{k(),wp(),kp(),jp(),zp(),Hp(),Up=(e,...t)=>{if(O(t[0]))return Up.bind(void 0,{...e,boundOptions:{...e.boundOptions,...t[0]}});let{destination:n,...r}=yp(e,...t),i=Wp({...r,destination:n});return i.pipe=Up.bind(void 0,{...e,source:n,sourcePromise:i,boundOptions:{}}),i},Wp=async({sourcePromise:e,sourceStream:t,sourceOptions:n,sourceError:r,destination:i,destinationStream:a,destinationError:o,unpipeSignal:s,fileDescriptors:c,startTime:l})=>{let u=Gp(e,i);Tp({sourceStream:t,sourceError:r,destinationStream:a,destinationError:o,fileDescriptors:c,sourceOptions:n,startTime:l});let d=new AbortController;try{let e=Mp(t,a,d);return await Promise.race([Ap(u),...Bp(s,{sourceStream:t,mergedStream:e,sourceOptions:n,fileDescriptors:c,startTime:l})])}finally{d.abort()}},Gp=(e,t)=>Promise.allSettled([e,t])})),qp,Jp,Yp,Xp,Zp,Qp,$p,em,tm,nm=t((()=>{Ku(),Pu(),od(),qp=({subprocessStdout:e,subprocess:t,binary:n,shouldEncode:r,encoding:i,preserveNewlines:a})=>{let o=new AbortController;return Jp(t,o),Zp({stream:e,controller:o,binary:n,shouldEncode:!e.readableObjectMode&&r,encoding:i,shouldSplit:!e.readableObjectMode,preserveNewlines:a})},Jp=async(e,t)=>{try{await e}catch{}finally{t.abort()}},Yp=({stream:e,onStreamEnd:t,lines:n,encoding:r,stripFinalNewline:i,allMixed:a})=>{let o=new AbortController;Xp(t,o,e);let s=e.readableObjectMode&&!a;return Zp({stream:e,controller:o,binary:r===`buffer`,shouldEncode:!s,encoding:r,shouldSplit:!s&&n,preserveNewlines:!i})},Xp=async(e,t,n)=>{try{await e}catch{n.destroy()}finally{t.abort()}},Zp=({stream:e,controller:t,binary:n,shouldEncode:r,encoding:i,shouldSplit:a,preserveNewlines:o})=>{let s=De(e,`data`,{signal:t.signal,highWaterMark:$p,highWatermark:$p});return em({onStdoutChunk:s,controller:t,binary:n,shouldEncode:r,encoding:i,shouldSplit:a,preserveNewlines:o})},Qp=Ne(!0),$p=Qp,em=async function*({onStdoutChunk:e,controller:t,binary:n,shouldEncode:r,encoding:i,shouldSplit:a,preserveNewlines:o}){let s=tm({binary:n,shouldEncode:r,encoding:i,shouldSplit:a,preserveNewlines:o});try{for await(let[t]of e)yield*nd(t,s,0)}catch(e){if(!t.signal.aborted)throw e}finally{yield*rd(s)}},tm=({binary:e,shouldEncode:t,encoding:n,shouldSplit:r,preserveNewlines:i})=>[Hu(e,n,!t),xu(e,i,!r,{})].filter(Boolean)})),rm,im,am,om,sm,cm,lm=t((()=>{Ns(),j(),wd(),nm(),Hs(),bu(),rm=async({stream:e,onStreamEnd:t,fdNumber:n,encoding:r,buffer:i,maxBuffer:a,lines:o,allMixed:s,stripFinalNewline:c,verboseInfo:l,streamInfo:u})=>{let d=im({stream:e,onStreamEnd:t,fdNumber:n,encoding:r,allMixed:s,verboseInfo:l,streamInfo:u});if(!i){await Promise.all([am(e),d]);return}let f=Yp({stream:e,onStreamEnd:t,lines:o,encoding:r,stripFinalNewline:yu(c,n),allMixed:s}),[p]=await Promise.all([om({stream:e,iterable:f,fdNumber:n,encoding:r,maxBuffer:a,lines:o}),d]);return p},im=async({stream:e,onStreamEnd:t,fdNumber:n,encoding:r,allMixed:i,verboseInfo:a,streamInfo:{fileDescriptors:o}})=>{_d({stdioItems:o[n]?.stdioItems,encoding:r,verboseInfo:a,fdNumber:n})&&await bd(Yp({stream:e,onStreamEnd:t,lines:!0,encoding:r,stripFinalNewline:!0,allMixed:i}),e,n,a)},am=async e=>{await Re(),e.readableFlowing===null&&e.resume()},om=async({stream:e,stream:{readableObjectMode:t},iterable:n,fdNumber:r,encoding:i,maxBuffer:a,lines:o})=>{try{return t||o?await ns(n,{maxBuffer:a}):i===`buffer`?new Uint8Array(await cs(n,{maxBuffer:a})):await ws(n,{maxBuffer:a})}catch(n){return cm(Ps({error:n,stream:e,readableObjectMode:t,lines:o,encoding:i,fdNumber:r}))}},sm=async e=>{try{return await e}catch(e){return cm(e)}},cm=({bufferedData:e})=>Ye(e)?new Uint8Array(e):e})),um,dm,fm,pm,mm,hm,gm,_m,vm,ym=t((()=>{um=async(e,t,n,{isSameDirection:r,stopOnExit:i=!1}={})=>{let a=dm(e,n),o=new AbortController;try{await Promise.race([...i?[n.exitPromise]:[],D(e,{cleanup:!0,signal:o.signal})])}catch(e){a.stdinCleanedUp||mm(e,t,n,r)}finally{o.abort()}},dm=(e,{originalStreams:[t],subprocess:n})=>{let r={stdinCleanedUp:!1};return e===t&&fm(e,n,r),r},fm=(e,t,n)=>{let{_destroy:r}=e;e._destroy=(...i)=>{pm(t,n),r.call(e,...i)}},pm=({exitCode:e,signalCode:t},n)=>{(e!==null||t!==null)&&(n.stdinCleanedUp=!0)},mm=(e,t,n,r)=>{if(!hm(e,t,n,r))throw e},hm=(e,t,n,r=!0)=>n.propagating?vm(e)||_m(e):(n.propagating=!0,gm(n,t)===r?vm(e):_m(e)),gm=({fileDescriptors:e},t)=>t!==`all`&&e[t].direction===`input`,_m=e=>e?.code===`ERR_STREAM_PREMATURE_CLOSE`,vm=e=>e?.code===`EPIPE`})),bm,xm,Sm=t((()=>{lm(),ym(),bm=({subprocess:e,encoding:t,buffer:n,maxBuffer:r,lines:i,stripFinalNewline:a,verboseInfo:o,streamInfo:s})=>e.stdio.map((e,c)=>xm({stream:e,fdNumber:c,encoding:t,buffer:n[c],maxBuffer:r[c],lines:i[c],allMixed:!1,stripFinalNewline:a,verboseInfo:o,streamInfo:s})),xm=async({stream:e,fdNumber:t,encoding:n,buffer:r,maxBuffer:i,lines:a,allMixed:o,stripFinalNewline:s,verboseInfo:c,streamInfo:l})=>{if(!e)return;let u=um(e,t,l);if(gm(l,t)){await u;return}let[d]=await Promise.all([rm({stream:e,onStreamEnd:u,fdNumber:t,encoding:n,buffer:r,maxBuffer:i,lines:a,allMixed:o,stripFinalNewline:s,verboseInfo:c,streamInfo:l}),u]);return d}})),Cm,wm,Tm,Em,Dm=t((()=>{rp(),Sm(),Cm=({stdout:e,stderr:t},{all:n})=>n&&(e||t)?jf([e,t].filter(Boolean)):void 0,wm=({subprocess:e,encoding:t,buffer:n,maxBuffer:r,lines:i,stripFinalNewline:a,verboseInfo:o,streamInfo:s})=>xm({...Tm(e,n),fdNumber:`all`,encoding:t,maxBuffer:r[1]+r[2],lines:i[1]||i[2],allMixed:Em(e),stripFinalNewline:a,verboseInfo:o,streamInfo:s}),Tm=({stdout:e,stderr:t,all:n},[,r,i])=>{let a=r||i;return a?r?i?{stream:n,buffer:a}:{stream:e,buffer:a}:{stream:t,buffer:a}:{stream:n,buffer:a}},Em=({all:e,stdout:t,stderr:n})=>e&&t&&n&&t.readableObjectMode!==n.readableObjectMode})),Om,km,Am=t((()=>{Cn(),I(),Om=e=>Pt(e,`ipc`),km=(e,t)=>{_n({type:`ipc`,verboseMessage:xn(e),fdNumber:`ipc`,verboseInfo:t})}})),jm,Mm,Nm=t((()=>{Hs(),Am(),F(),pf(),jm=async({subprocess:e,buffer:t,maxBuffer:n,ipc:r,ipcOutput:i,verboseInfo:a})=>{if(!r)return i;let o=Om(a),s=Mt(t,`ipc`),c=Mt(n,`ipc`);for await(let t of cf({anyProcess:e,channel:e.channel,isSubprocess:!1,ipc:r,shouldAwait:!1,reference:!0}))s&&(Is(e,i,c),i.push(t)),o&&km(t,a);return i},Mm=async(e,t)=>(await Promise.allSettled([e]),t)})),Pm,Fm,Im,Lm,Rm=t((()=>{Co(),La(),ti(),Na(),P(),Z(),lm(),Nm(),Ka(),Dm(),Sm(),Bd(),ym(),Pm=async({subprocess:e,options:{encoding:t,buffer:n,maxBuffer:r,lines:i,timeoutDuration:a,cancelSignal:o,gracefulCancel:s,forceKillAfterDelay:c,stripFinalNewline:l,ipc:u,ipcInput:d},context:f,verboseInfo:p,fileDescriptors:m,originalStreams:h,onInternalError:g,controller:_})=>{let v=Pd(e,f),y={originalStreams:h,fileDescriptors:m,subprocess:e,exitPromise:v,propagating:!1},b=bm({subprocess:e,encoding:t,buffer:n,maxBuffer:r,lines:i,stripFinalNewline:l,verboseInfo:p,streamInfo:y}),x=wm({subprocess:e,encoding:t,buffer:n,maxBuffer:r,lines:i,stripFinalNewline:l,verboseInfo:p,streamInfo:y}),ee=[],te=jm({subprocess:e,buffer:n,maxBuffer:r,ipc:u,ipcOutput:ee,verboseInfo:p}),ne=Fm(h,e,y),re=Im(m,y);try{return await Promise.race([Promise.all([{},Ld(v),Promise.all(b),x,te,Ga(e,d),...ne,...re]),g,Lm(e,_),...Fa(e,a,f,_),...$r({subprocess:e,cancelSignal:o,gracefulCancel:s,context:f,controller:_}),...Aa({subprocess:e,cancelSignal:o,gracefulCancel:s,forceKillAfterDelay:c,context:f,controller:_})])}catch(e){return f.terminationReason??(f.terminationReason=`other`),Promise.all([{error:e},v,Promise.all(b.map(e=>sm(e))),sm(x),Mm(te,ee),Promise.allSettled(ne),Promise.allSettled(re)])}},Fm=(e,t,n)=>e.map((e,r)=>e===t.stdio[r]?void 0:um(e,r,n)),Im=(e,t)=>e.flatMap(({stdioItems:e},n)=>e.filter(({value:e,stream:t=e})=>W(t,{checkOpen:!1})&&!M(t)).map(({type:e,value:r,stream:i=r})=>um(i,n,t,{isSameDirection:X.has(e),stopOnExit:e===`native`}))),Lm=async(e,{signal:t})=>{let[n]=await T(e,`error`,{signal:t});throw n}})),zm,Bm,Vm,Hm=t((()=>{xi(),zm=()=>({readableDestroy:new WeakMap,writableFinal:new WeakMap,writableDestroy:new WeakMap}),Bm=(e,t,n)=>{let r=e[n];r.has(t)||r.set(t,[]);let i=r.get(t),a=bi();return i.push(a),{resolve:a.resolve.bind(a),promises:i}},Vm=async({resolve:e,promises:t},n)=>{e();let[r]=await Promise.race([Promise.allSettled([!0,n]),Promise.all([!1,...t])]);return!r}})),Um,Wm,Gm,Km,qm,Jm,Ym=t((()=>{ym(),Um=async e=>{if(e!==void 0)try{await Gm(e)}catch{}},Wm=async e=>{if(e!==void 0)try{await Km(e)}catch{}},Gm=async e=>{await D(e,{cleanup:!0,readable:!1,writable:!0})},Km=async e=>{await D(e,{cleanup:!0,readable:!0,writable:!1})},qm=async(e,t)=>{if(await e,t)throw t},Jm=(e,t,n)=>{n&&!_m(n)?e.destroy(n):t&&e.destroy()}})),Xm,Zm,Qm,$m,eh,th,nh,rh,ih=t((()=>{$a(),H(),nm(),xi(),Hm(),Ym(),Xm=({subprocess:e,concurrentStreams:t,encoding:n},{from:r,binary:i=!0,preserveNewlines:a=!0}={})=>{let o=i||U.has(n),{subprocessStdout:s,waitReadableDestroy:c}=Zm(e,r,t),{readableEncoding:l,readableObjectMode:u,readableHighWaterMark:d}=Qm(s,o),{read:f,onStdoutDataDone:p}=$m({subprocessStdout:s,subprocess:e,binary:o,encoding:n,preserveNewlines:a}),m=new E({read:f,destroy:S(nh.bind(void 0,{subprocessStdout:s,subprocess:e,waitReadableDestroy:c})),highWaterMark:d,objectMode:u,encoding:l});return th({subprocessStdout:s,onStdoutDataDone:p,readable:m,subprocess:e}),m},Zm=(e,t,n)=>{let r=Ci(e,t);return{subprocessStdout:r,waitReadableDestroy:Bm(n,r,`readableDestroy`)}},Qm=({readableEncoding:e,readableObjectMode:t,readableHighWaterMark:n},r)=>r?{readableEncoding:e,readableObjectMode:t,readableHighWaterMark:n}:{readableEncoding:e,readableObjectMode:!0,readableHighWaterMark:Qp},$m=({subprocessStdout:e,subprocess:t,binary:n,encoding:r,preserveNewlines:i})=>{let a=bi(),o=qp({subprocessStdout:e,subprocess:t,binary:n,shouldEncode:!n,encoding:r,preserveNewlines:i});return{read(){eh(this,o,a)},onStdoutDataDone:a}},eh=async(e,t,n)=>{try{let{value:r,done:i}=await t.next();i?n.resolve():e.push(r)}catch{}},th=async({subprocessStdout:e,onStdoutDataDone:t,readable:n,subprocess:r,subprocessStdin:i})=>{try{await Km(e),await r,await Um(i),await t,n.readable&&n.push(null)}catch(e){await Um(i),rh(n,e)}},nh=async({subprocessStdout:e,subprocess:t,waitReadableDestroy:n},r)=>{await Vm(n,t)&&(rh(e,r),await qm(t,r))},rh=(e,t)=>{Jm(e,e.readable,t)}})),ah,oh,sh,ch,lh,uh,dh,fh,ph=t((()=>{H(),Hm(),Ym(),ah=({subprocess:e,concurrentStreams:t},{to:n}={})=>{let{subprocessStdin:r,waitWritableFinal:i,waitWritableDestroy:a}=oh(e,n,t),o=new Me({...sh(r,e,i),destroy:S(dh.bind(void 0,{subprocessStdin:r,subprocess:e,waitWritableFinal:i,waitWritableDestroy:a})),highWaterMark:r.writableHighWaterMark,objectMode:r.writableObjectMode});return uh(r,o),o},oh=(e,t,n)=>{let r=Si(e,t);return{subprocessStdin:r,waitWritableFinal:Bm(n,r,`writableFinal`),waitWritableDestroy:Bm(n,r,`writableDestroy`)}},sh=(e,t,n)=>({write:ch.bind(void 0,e),final:S(lh.bind(void 0,e,t,n))}),ch=(e,t,n,r)=>{e.write(t,n)?r():e.once(`drain`,r)},lh=async(e,t,n)=>{await Vm(n,t)&&(e.writable&&e.end(),await t)},uh=async(e,t,n)=>{try{await Gm(e),t.writable&&t.end()}catch(e){await Wm(n),fh(t,e)}},dh=async({subprocessStdin:e,subprocess:t,waitWritableFinal:n,waitWritableDestroy:r},i)=>{await Vm(n,t),await Vm(r,t)&&(fh(e,i),await qm(t,i))},fh=(e,t)=>{Jm(e,e.writable,t)}})),mh,hh,gh=t((()=>{$a(),ih(),ph(),mh=({subprocess:e,concurrentStreams:t,encoding:n},{from:r,to:i,binary:a=!0,preserveNewlines:o=!0}={})=>{let s=a||U.has(n),{subprocessStdout:c,waitReadableDestroy:l}=Zm(e,r,t),{subprocessStdin:u,waitWritableFinal:d,waitWritableDestroy:f}=oh(e,i,t),{readableEncoding:p,readableObjectMode:m,readableHighWaterMark:h}=Qm(c,s),{read:g,onStdoutDataDone:_}=$m({subprocessStdout:c,subprocess:e,binary:s,encoding:n,preserveNewlines:o}),v=new ke({read:g,...sh(u,e,d),destroy:S(hh.bind(void 0,{subprocessStdout:c,subprocessStdin:u,subprocess:e,waitReadableDestroy:l,waitWritableFinal:d,waitWritableDestroy:f})),readableHighWaterMark:h,writableHighWaterMark:u.writableHighWaterMark,readableObjectMode:m,writableObjectMode:u.writableObjectMode,encoding:p});return th({subprocessStdout:c,onStdoutDataDone:_,readable:v,subprocess:e,subprocessStdin:u}),uh(u,v,c),v},hh=async({subprocessStdout:e,subprocessStdin:t,subprocess:n,waitReadableDestroy:r,waitWritableFinal:i,waitWritableDestroy:a},o)=>{await Promise.all([nh({subprocessStdout:e,subprocess:n,waitReadableDestroy:r},o),dh({subprocessStdin:t,subprocess:n,waitWritableFinal:i,waitWritableDestroy:a},o)])}})),_h,vh,yh=t((()=>{$a(),H(),nm(),_h=(e,t,{from:n,binary:r=!1,preserveNewlines:i=!1}={})=>{let a=r||U.has(t),o=Ci(e,n),s=qp({subprocessStdout:o,subprocess:e,binary:a,shouldEncode:!0,encoding:t,preserveNewlines:i});return vh(s,o,e)},vh=async function*(e,t,n){try{yield*e}finally{t.readable&&t.destroy(),await n}}})),bh,xh=t((()=>{Hm(),ih(),ph(),gh(),yh(),bh=(e,{encoding:t})=>{let n=zm();e.readable=Xm.bind(void 0,{subprocess:e,concurrentStreams:n,encoding:t}),e.writable=ah.bind(void 0,{subprocess:e,concurrentStreams:n}),e.duplex=mh.bind(void 0,{subprocess:e,concurrentStreams:n,encoding:t}),e.iterable=_h.bind(void 0,e,t),e[Symbol.asyncIterator]=_h.bind(void 0,e,t,{})}})),Sh,Ch,wh,Th=t((()=>{Sh=(e,t)=>{for(let[n,r]of wh){let i=r.value.bind(t);Reflect.defineProperty(e,n,{...r,value:i})}},Ch=(async()=>{})().constructor.prototype,wh=[`then`,`catch`,`finally`].map(e=>[e,Reflect.getOwnPropertyDescriptor(Ch,e)])})),Eh,Dh,Oh,kh,Ah,jh,Mh=t((()=>{Ns(),Fn(),co(),H(),uo(),_f(),rc(),xc(),Tf(),Af(),bu(),gp(),Yr(),vp(),Kp(),Dm(),Rm(),xh(),xi(),Th(),Eh=(e,t,n,r)=>{let{file:i,commandArguments:a,command:o,escapedCommand:s,startTime:c,verboseInfo:l,options:u,fileDescriptors:d}=Dh(e,t,n),{subprocess:f,promise:p}=kh({file:i,commandArguments:a,options:u,startTime:c,verboseInfo:l,command:o,escapedCommand:s,fileDescriptors:d});return f.pipe=Up.bind(void 0,{source:f,sourcePromise:p,boundOptions:{},createNested:r}),Sh(f,p),V.set(f,{options:u,fileDescriptors:d}),f},Dh=(e,t,n)=>{let{command:r,escapedCommand:i,startTime:a,verboseInfo:o}=Pn(e,t,n),{file:s,commandArguments:c,options:l}=ao(e,t,n),u=Oh(l);return{file:s,commandArguments:c,command:r,escapedCommand:i,startTime:a,verboseInfo:o,options:u,fileDescriptors:Ef(u,o)}},Oh=({timeout:e,signal:t,...n})=>{if(t!==void 0)throw TypeError(`The "signal" option has been renamed to "cancelSignal" instead.`);return{...n,timeoutDuration:e}},kh=({file:e,commandArguments:t,options:n,startTime:r,verboseInfo:i,command:a,escapedCommand:o,fileDescriptors:s})=>{let c;try{c=he(...lo(e,t,n))}catch(e){return vf({error:e,command:a,escapedCommand:o,fileDescriptors:s,options:n,startTime:r,verboseInfo:i})}let l=new AbortController;Oe(1/0,l.signal);let u=[...c.stdio];up(c,s,l),_p(c,n,l);let d={},f=bi();c.kill=Wr.bind(void 0,{kill:c.kill.bind(c),options:n,onInternalError:f,context:d,controller:l}),c.all=Cm(c,n),bh(c,n),mf(c,n);let p=Ah({subprocess:c,options:n,startTime:r,verboseInfo:i,fileDescriptors:s,originalStreams:u,command:a,escapedCommand:o,context:d,onInternalError:f,controller:l});return{subprocess:c,promise:p}},Ah=async({subprocess:e,options:t,startTime:n,verboseInfo:r,fileDescriptors:i,originalStreams:a,command:o,escapedCommand:s,context:c,onInternalError:l,controller:u})=>{let[d,[f,p],m,h,g]=await Pm({subprocess:e,options:t,context:c,verboseInfo:r,fileDescriptors:i,originalStreams:a,onInternalError:l,controller:u});u.abort(),l.resolve();let _=m.map((e,n)=>vu(e,t,n)),v=vu(h,t,`all`);return bc(jh({errorInfo:d,exitCode:f,signal:p,stdio:_,all:v,ipcOutput:g,context:c,options:t,command:o,escapedCommand:s,startTime:n}),r,t)},jh=({errorInfo:e,exitCode:t,signal:n,stdio:r,all:i,ipcOutput:a,context:o,options:s,command:c,escapedCommand:l,startTime:u})=>`error`in e?$s({error:e.error,command:c,escapedCommand:l,timedOut:o.terminationReason===`timeout`,isCanceled:o.terminationReason===`cancel`||o.terminationReason===`gracefulCancel`,isGracefullyCanceled:o.terminationReason===`gracefulCancel`,isMaxBuffer:e.error instanceof Yo,isForcefullyTerminated:o.isForcefullyTerminated,exitCode:t,signal:n,stdio:r,all:i,ipcOutput:a,options:s,startTime:u,isSync:!1}):Zs({command:c,escapedCommand:l,stdio:r,all:i,ipcOutput:a,options:s,startTime:u})})),Nh,Ph,Fh,Ih=t((()=>{k(),F(),Nh=(e,t)=>{let n=Object.fromEntries(Object.entries(t).map(([t,n])=>[t,Ph(t,e[t],n)]));return{...e,...n}},Ph=(e,t,n)=>Fh.has(e)&&O(t)&&O(n)?{...t,...n}:n,Fh=new Set([`env`,...jt])})),$,Lh,Rh,zh=t((()=>{k(),qe(),gt(),$d(),Mh(),Ih(),$=(e,t,n,r)=>{let i=(e,t,r)=>$(e,t,n,r),a=(...a)=>Lh({mapArguments:e,deepOptions:n,boundOptions:t,setBoundExeca:r,createNested:i},...a);return r!==void 0&&r(a,i,t),a},Lh=({mapArguments:e,deepOptions:t={},boundOptions:n={},setBoundExeca:r,createNested:i},a,...o)=>{if(O(a))return i(e,Nh(n,a),r);let{file:s,commandArguments:c,options:l,isSync:u}=Rh({mapArguments:e,firstArgument:a,nextArguments:o,deepOptions:t,boundOptions:n});return u?Wd(s,c,l):Eh(s,c,l,i)},Rh=({mapArguments:e,firstArgument:t,nextArguments:n,deepOptions:r,boundOptions:i})=>{let[a,o,s]=Ke(...st(t)?ct(t,n):[t,...n]),c=Nh(Nh(r,i),s),{file:l=a,commandArguments:u=o,options:d=c,isSync:f=!1}=e({file:a,commandArguments:o,options:c});return{file:l,commandArguments:u,options:d,isSync:f}}})),Bh,Vh,Hh,Uh,Wh,Gh=t((()=>{Bh=({file:e,commandArguments:t})=>Hh(e,t),Vh=({file:e,commandArguments:t})=>({...Hh(e,t),isSync:!0}),Hh=(e,t)=>{if(t.length>0)throw TypeError(`The command and its arguments must be passed as a single string: ${e} ${t}.`);let[n,...r]=Uh(e);return{file:n,commandArguments:r}},Uh=e=>{if(typeof e!=`string`)throw TypeError(`The command must be a string: ${String(e)}.`);let t=e.trim();if(t===``)return[];let n=[];for(let e of t.split(Wh)){let t=n.at(-1);t&&t.endsWith(`\\`)?n[n.length-1]=`${t.slice(0,-1)} ${e}`:n.push(e)}return n},Wh=/ +/g})),Kh,qh,Jh,Yh,Xh,Zh,Qh=t((()=>{Kh=(e,t,n)=>{e.sync=t(Jh,n),e.s=e.sync},qh=({options:e})=>Yh(e),Jh=({options:e})=>({...Yh(e),isSync:!0}),Yh=e=>({options:{...Xh(e),...e}}),Xh=({input:e,inputFile:t,stdio:n})=>e===void 0&&t===void 0&&n===void 0?{stdin:`inherit`}:{},Zh={preferLocal:!0}})),$h,eg,tg,ng,rg,ig,ag=t((()=>{zh(),Gh(),Ba(),Qh(),_f(),R(),$h=$(()=>({})),eg=$(()=>({isSync:!0})),$(Bh),$(Vh),$(Ra),$(qh,{},Zh,Kh),{sendMessage:tg,getOneMessage:ng,getEachMessage:rg,getCancelSignal:ig}=hf()}));function og(e,t,n=10*dg*ug){let r;r=t===void 0?{}:t instanceof AbortSignal?{abortSignal:t,timeout:n}:t;let{abortSignal:i,timeout:a=10*dg*ug,input:o,stdio:s=[`ignore`,`pipe`,`pipe`]}=r;i?.throwIfAborted(),ee`exec: ${e.slice(0,200)}`;try{let t=eg(e,{env:process.env,maxBuffer:1e6,timeout:a,cwd:x(),stdio:s,shell:!0,reject:!1,input:o});return t.stdout&&t.stdout.trim()||null}catch{return null}}function sg(e,t,n={timeout:10*dg*ug,preserveOutputOnError:!0,useCwd:!0}){return lg(e,t,{abortSignal:n.abortSignal,timeout:n.timeout,preserveOutputOnError:n.preserveOutputOnError,cwd:n.useCwd?x():void 0,env:n.env,stdin:n.stdin,input:n.input})}function cg(e,t){return e.shortMessage?e.shortMessage:typeof e.signal==`string`?e.signal:String(t)}function lg(e,t,{abortSignal:n,timeout:r=10*dg*ug,preserveOutputOnError:i=!0,cwd:a,env:o,maxBuffer:s,shell:c,stdin:l,input:u}={timeout:10*dg*ug,preserveOutputOnError:!0,maxBuffer:1e6}){return new Promise(d=>{$h(e,t,{maxBuffer:s,cancelSignal:n,timeout:r,cwd:a,env:o,shell:c,stdin:l,input:u,reject:!1}).then(e=>{if(e.failed)if(i){let t=e.exitCode??1;d({stdout:e.stdout||``,stderr:e.stderr||``,code:t,error:cg(e,t)})}else d({stdout:``,stderr:``,code:e.exitCode??1});else d({stdout:e.stdout,stderr:e.stderr,code:0})}).catch(e=>{re(e),d({stdout:``,stderr:``,code:1})})})}var ug,dg,fg=t((()=>{ag(),b(),ne(),te(),ug=1e3,dg=60}));export{$h as a,Jn as c,fg as i,lg as n,eg as o,og as r,ag as s,sg as t};
@@ -0,0 +1 @@
1
+ import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{Ks as t,St as n,gi as r,ow as i,qs as a,sw as o,vi as s,yt as c}from"./loadAgentsDir-C1LkW7gl.js";import{t as l}from"./jsx-runtime-Bb4Xn-E0.js";import{n as u,t as d}from"./ExitFlow-BasHk1mk.js";import{spawnSync as f}from"child_process";function p(){return o(g)??`Goodbye!`}async function m(e){if(a())return e(),f(`tmux`,[`detach-client`],{stdio:`ignore`}),null;let t=c()!==null;return t?(0,h.jsx)(d,{showWorktree:t,onDone:e,onCancel:()=>e()}):(e(p()),await r(0,`prompt_input_exit`),null)}var h,g;e((()=>{i(),u(),t(),s(),n(),h=l(),g=[`Goodbye!`,`See ya!`,`Bye!`,`Catch you later!`]}))();export{m as call};
@@ -0,0 +1 @@
1
+ import{n as e,o as t}from"./rolldown-runtime-DaDcL9Zw.js";import{Dp as n,Op as r,Ub as i,ad as a,id as o}from"./loadAgentsDir-C1LkW7gl.js";import{D as s,Gt as c,I as l,P as u,T as d,ai as f,t as p,x as m}from"./src-DL3w8VPk.js";import{t as h}from"./jsx-runtime-Bb4Xn-E0.js";import{G as g,K as _,P as v,St as y,Tt as b,U as x,W as S,f as C,g as w,gn as T,hn as E}from"./model-BwBE0Pt5.js";import{n as D,t as O}from"./useExitOnCtrlCDWithKeybindings-CjW3gUOt.js";import{t as k}from"./select-C_KXmqbI.js";import{n as A,r as j,t as M}from"./modelOptions-DvNBapgG.js";import{t as N}from"./CustomSelect-B46Eh0gU.js";import{n as P,t as F}from"./fetchModelList-CqsTAWEN.js";function I({initial:e,sessionModel:t,onSelect:n,onCancel:i,isStandaloneCommand:a,showFastModeNotice:f,headerText:p}){let h=D(),y=e===null?z:e,[b,x]=(0,L.useState)(y),C=r(e=>_()?e.fastMode:!1),[T,O]=(0,L.useState)(()=>new Set(E(y)?[y.replace(/\[1m\]/i,``)]:[])),j=(0,L.useCallback)(()=>{if(!b||b===z)return;let e=b.replace(/\[1m\]/i,``);O(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})},[b]),N=(0,L.useMemo)(()=>A(C??!1),[C]),[P,I]=(0,L.useState)(null),[B,V]=(0,L.useState)(!1);(0,L.useEffect)(()=>{let e=!1;return V(!1),F().then(t=>{if(!e){if(!t||t.length===0){I(null),V(!0);return}I(t)}}).catch(()=>{e||V(!0)}),()=>{e=!0}},[]);let H=(0,L.useMemo)(()=>P?M(P,C??!1):null,[P,C]),U=P===null&&!B,W=(0,L.useMemo)(()=>{let t=H??N;return e!==null&&!t.some(t=>t.value===e)?[...t,{value:e,label:w(e),description:`Current model`}]:t},[H,N,e]),G=(0,L.useMemo)(()=>W.map(e=>({...e,value:e.value===null?z:e.value})),[W]),K=(0,L.useMemo)(()=>G.some(e=>e.value===y)?y:G[0]?.value??void 0,[G,y]),q=Math.min(10,G.length),J=Math.max(0,G.length-q),Y=G.find(e=>e.value===b)?.label,X=b!==void 0&&b!==z&&T.has(b.replace(/\[1m\]/i,``)),Z=(0,L.useCallback)(e=>{x(e)},[]);c({"modelPicker:toggle1M":()=>j()},{context:`ModelPicker`});function Q(e){if(e===z){n(null);return}let t=e.replace(/\[1m\]/i,``);n(T.has(t)?`${t}[1m]`:t)}let $=(0,R.jsxs)(l,{flexDirection:`column`,children:[(0,R.jsxs)(l,{flexDirection:`column`,children:[(0,R.jsxs)(l,{marginBottom:1,flexDirection:`column`,children:[(0,R.jsx)(u,{color:`remember`,bold:!0,children:`Select model`}),(0,R.jsx)(u,{dimColor:!0,children:p??`Choose a model for this and future sessions. Use Space to toggle 1M context.`}),t&&(0,R.jsxs)(u,{dimColor:!0,children:[`Currently using `,w(t),` for this session (set by plan mode). Selecting a model will undo this.`]})]}),(0,R.jsxs)(l,{flexDirection:`column`,marginBottom:1,children:[(0,R.jsx)(l,{flexDirection:`column`,children:(0,R.jsx)(k,{defaultValue:y,defaultFocusValue:K,options:G,onChange:Q,onFocus:Z,onCancel:i??(()=>{}),visibleOptionCount:q})}),J>0&&(0,R.jsx)(l,{paddingLeft:3,children:(0,R.jsxs)(u,{dimColor:!0,children:[`and `,J,` more…`]})}),U&&(0,R.jsx)(l,{paddingLeft:3,children:(0,R.jsx)(u,{dimColor:!0,children:`正在从 API 拉取可用模型列表…`})}),B&&P===null&&(0,R.jsx)(l,{paddingLeft:3,children:(0,R.jsx)(u,{dimColor:!0,children:`API 拉取失败,使用内置列表`})})]}),(0,R.jsx)(l,{marginBottom:1,flexDirection:`column`,children:X?(0,R.jsxs)(u,{dimColor:!0,children:[`1M context on`,(0,R.jsx)(u,{color:`subtle`,children:` · Space to toggle`})]}):(0,R.jsxs)(u,{color:`subtle`,children:[`1M context off`,Y?` for ${Y}`:``,(0,R.jsx)(u,{color:`subtle`,children:` · Space to toggle`})]})}),_()?f?(0,R.jsx)(l,{marginBottom:1,children:(0,R.jsxs)(u,{dimColor:!0,children:[`Fast mode is `,(0,R.jsx)(u,{bold:!0,children:`ON`}),` and available with `,v,` only (/fast). Switching to other models turn off fast mode.`]})}):S()&&!g()?(0,R.jsx)(l,{marginBottom:1,children:(0,R.jsxs)(u,{dimColor:!0,children:[`Use `,(0,R.jsx)(u,{bold:!0,children:`/fast`}),` to turn on Fast mode (`,v,` only).`]})}):null:null]}),a&&(0,R.jsx)(u,{dimColor:!0,italic:!0,children:h.pending?(0,R.jsxs)(R.Fragment,{children:[`Press `,h.keyName,` again to exit`]}):(0,R.jsxs)(d,{children:[(0,R.jsx)(s,{shortcut:`Enter`,action:`confirm`}),(0,R.jsx)(o,{action:`select:cancel`,context:`Select`,fallback:`Esc`,description:`exit`})]})})]});return a?(0,R.jsx)(m,{color:`permission`,children:$}):$}var L,R,z,B=e((()=>{L=t(f(),1),T(),O(),x(),p(),i(),n(),C(),j(),P(),a(),N(),R=h(),z=`__NO_PREFERENCE__`}));function V(e,t,n){if(!b())return!1;if(t)return!0;if(e===null||!E(e))return!1;let r=e.toLowerCase().replace(/\[1m\]$/,``).trim(),i=r===`opus`||r.includes(`opus-4-6`)||r.includes(`opus-4-7`),a=r===`sonnet`||r.includes(`sonnet-4-6`);return i&&n?!1:i||a}var H=e((()=>{y(),T()}));export{B as i,V as n,I as r,H as t};
@@ -0,0 +1 @@
1
+ import{ac as e,ic as t,oc as n,sc as r}from"./loadAgentsDir-C1LkW7gl.js";r();export{t as drainPendingExtraction,e as executeExtractMemories,n as initExtractMemories};
@@ -0,0 +1 @@
1
+ import{n as e,o as t}from"./rolldown-runtime-DaDcL9Zw.js";import{Ap as n,Dp as r,Op as i,Ub as a}from"./loadAgentsDir-C1LkW7gl.js";import{Gt as o,I as s,Lt as c,P as l,ai as u,di as d,fi as f,j as p,t as m,y as h}from"./src-DL3w8VPk.js";import{t as g}from"./jsx-runtime-Bb4Xn-E0.js";import{Ht as _,b as v,h as y}from"./settings-DKN4xSpQ.js";import{c as b,m as x}from"./config-BddEvZZl.js";import{n as S,r as C}from"./analytics-DJobLaWP.js";import{_ as w,l as T}from"./startupProfiler-DTs9w9EN.js";import{F as E,I as D,K as O,L as k,M as A,N as j,P as M,Q as N,U as P,j as F,q as I,z as L}from"./model-BwBE0Pt5.js";import{n as R,t as z}from"./systemTheme-Ceakddth.js";function B({cooldown:e}){return e?(0,H.jsx)(l,{color:`promptBorder`,dimColor:!0,children:`↯`}):(0,H.jsx)(l,{color:`fastMode`,children:`↯`})}function V(e=!0,t=!1){if(!e)return`↯`;let n=R(b().theme);return t?d.dim(p(`promptBorder`,n)(`↯`)):p(`fastMode`,n)(`↯`)}var H,U=e((()=>{f(),_(),m(),x(),z(),H=g()}));function W(e,t){E(),v(`userSettings`,{fastMode:e?!0:void 0}),t(e?e=>{let t=!I(e.mainLoopModel);return{...e,...t?{mainLoopModel:D(),mainLoopModelForSession:null}:{},fastMode:!0}}:e=>({...e,fastMode:!1}))}function G({onDone:e,unavailableReason:t}){let r=i(e=>e.mainLoopModel),a=i(e=>e.fastMode),u=n(),[d,f]=(0,J.useState)(a??!1),p=k(),m=p.status===`cooldown`,g=t!==null,_=F(A(!0));function v(){g||(W(d,u),C(`tengu_fast_mode_toggled`,{enabled:d,source:`picker`}),d?e(`${V(d)} Fast mode ON${I(r)?``:` · model set to ${M}`} · ${_}`):(u(e=>({...e,fastMode:!1})),e(`Fast mode OFF`)))}function y(){if(g){a&&W(!1,u),e(`Fast mode OFF`,{display:`system`});return}e(a?`${V()} Kept Fast mode ON`:`Kept Fast mode OFF`,{display:`system`})}function b(){g||f(e=>!e)}return o({"confirm:yes":v,"confirm:nextField":b,"confirm:next":b,"confirm:previous":b,"confirm:cycleMode":b,"confirm:toggle":b},{context:`Confirmation`}),(0,Y.jsxs)(h,{title:(0,Y.jsxs)(l,{children:[(0,Y.jsx)(B,{cooldown:m}),` Fast mode (research preview)`]}),subtitle:`High-speed mode for ${M}. Billed as extra usage at a premium rate. Separate rate limits apply.`,onCancel:y,color:`fastMode`,inputGuide:e=>e.pending?(0,Y.jsxs)(l,{children:[`Press `,e.keyName,` again to exit`]}):g?(0,Y.jsx)(l,{children:`Esc to cancel`}):(0,Y.jsx)(l,{children:`Tab to toggle · Enter to confirm · Esc to cancel`}),children:[t?(0,Y.jsx)(s,{marginLeft:2,children:(0,Y.jsx)(l,{color:`error`,children:t})}):(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(s,{flexDirection:`column`,gap:0,marginLeft:2,children:(0,Y.jsxs)(s,{flexDirection:`row`,gap:2,children:[(0,Y.jsx)(l,{bold:!0,children:`Fast mode`}),(0,Y.jsx)(l,{color:d?`fastMode`:void 0,bold:d,children:d?`ON `:`OFF`}),(0,Y.jsx)(l,{dimColor:!0,children:_})]})}),m&&p.status===`cooldown`&&(0,Y.jsx)(s,{marginLeft:2,children:(0,Y.jsxs)(l,{color:`warning`,children:[p.reason===`overloaded`?`Fast mode overloaded and is temporarily unavailable`:`You've hit your fast limit`,` · resets in `,T(p.resetAt-Date.now(),{hideTrailingZeros:!0})]})})]}),(0,Y.jsxs)(l,{dimColor:!0,children:[`Learn more:`,` `,(0,Y.jsx)(c,{url:`https://code.workmate.com/docs/en/fast-mode`,children:`https://code.workmate.com/docs/en/fast-mode`})]})]})}async function K(e,t,n){let r=L();if(r)return`Fast mode unavailable: ${r}`;let{mainLoopModel:i}=t();return W(e,n),C(`tengu_fast_mode_toggled`,{enabled:e,source:`shortcut`}),e?`${V(!0)} Fast mode ON${I(i)?``:` · model set to ${M}`} · ${F(A(!0))}`:`Fast mode OFF`}async function q(e,t,n){if(!O())return null;await N();let r=n?.trim().toLowerCase();if(r===`on`||r===`off`)return e(await K(r===`on`,t.getAppState,t.setAppState)),null;let i=L();return C(`tengu_fast_mode_picker_shown`,{unavailable_reason:i??``}),(0,Y.jsx)(G,{onDone:e,unavailableReason:i})}var J,Y,X=e((()=>{J=t(u(),1),m(),U(),a(),S(),r(),P(),w(),j(),y(),Y=g()}));export{U as a,V as i,q as n,X as r,G as t};
@@ -0,0 +1 @@
1
+ import{n as e,r as t,t as n}from"./fast-DqUpl_Lr.js";t();export{n as FastModePicker,e as call};
@@ -0,0 +1 @@
1
+ import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{g as t,v as n}from"./types-zk5Ltv5q.js";import{c as r,i}from"./debug-8DCufdSp.js";import{$t as a,tn as o}from"./settings-DKN4xSpQ.js";import{Er as s,Sn as c,St as l,Tt as u,_r as d,mr as f,wr as p,xn as m}from"./model-BwBE0Pt5.js";import{n as h,r as g}from"./client-DdenNfkQ.js";async function _(){let e=p();try{switch(e){case`firstParty`:{let e=await m({maxRetries:1}),t=u()?[a]:void 0,n=[];for await(let r of e.models.list({betas:t}))n.push({value:r.id,label:r.display_name??r.id,description:r.id});return n.length>0?n:null}case`openai`:{let e=h({maxRetries:1}),t=[];for await(let n of e.models.list())t.push({value:n.id,label:n.id,description:`via openai-compat`});return t.length>0?t:null}case`grok`:{let{getGrokClient:e}=await import(`./client-DYRgRQsr.js`),t=e({maxRetries:1}),n=[];for await(let e of t.models.list())n.push({value:e.id,label:e.id,description:`via grok`});return n.length>0?n:null}case`bedrock`:{let e=(await f()).map(e=>({value:e,label:e,description:`Bedrock inference profile`}));return e.length>0?e:null}case`gemini`:case`vertex`:case`foundry`:return null}}catch(t){return r(`[fetchModelList] ${e} failed: ${t instanceof Error?t.message:`unknown`}`),null}return null}var v,y,b=e((()=>{o(),c(),g(),l(),i(),t(),d(),s(),v=300*1e3,y=n(_,v)}));export{b as n,y as t};
@@ -0,0 +1 @@
1
+ import{n as e,t}from"./fetchModelList-CqsTAWEN.js";e();export{t as fetchAvailableModels};
@@ -0,0 +1,3 @@
1
+ import{n as e,o as t}from"./rolldown-runtime-DaDcL9Zw.js";import{n,t as r}from"./defineProperty-C-QyHrDq.js";import{m as i}from"./zod-CuNujUwx.js";import{Mt as a,Rt as o,_ as s,g as c,hn as l,p as u}from"./loadAgentsDir-C1LkW7gl.js";import{$n as d,Qn as f}from"./state-BowF111d.js";import{n as p,t as m}from"./cwd-BcO6WHKo.js";import{L as h,N as g,c as _,f as v,i as ee,u as y}from"./debug-8DCufdSp.js";import{Hr as b,Pr as x,Ur as te,cr as ne,h as re,or as ie,t as ae}from"./settings-DKN4xSpQ.js";import{c as oe,m as se}from"./config-BddEvZZl.js";import{i as ce,n as S}from"./execFileNoThrow-BsfuytkN.js";import{o as le,s as C}from"./log-DaILwWJa.js";import{n as ue,r as w}from"./analytics-DJobLaWP.js";import{a as de,s as fe}from"./ripgrep-BuzOTf1S.js";import*as T from"path";import{statSync as pe}from"fs";function me(e,t,n){if(t===0)return n?k:0;let r=e.charCodeAt(t-1);return he(r)?be:ge(r)&&_e(e.charCodeAt(t))?D:0}function he(e){return e===47||e===92||e===45||e===95||e===46||e===32}function ge(e){return e>=97&&e<=122}function _e(e){return e>=65&&e<=90}function E(){return new Promise(e=>setImmediate(e))}function ve(e,t){let n=new Set;for(let r of e){let e=r.length;for(let t=0;t<r.length;t++){let n=r.charCodeAt(t);if(n===47||n===92){e=t;break}}let i=r.slice(0,e);if(i.length>0&&(n.add(i),n.size>=t))break}let r=Array.from(n);return r.sort((e,t)=>{let n=e.length-t.length;return n===0?e<t?-1:+(e>t):n}),r.slice(0,t).map(e=>({path:e,score:0}))}var ye,be,D,O,k,xe,Se,Ce,A,j,we,Te=e((()=>{n(),ye=16,be=8,D=6,O=4,k=8,xe=3,Se=1,Ce=100,A=64,j=new Int32Array(A),we=class{constructor(){r(this,`paths`,[]),r(this,`lowerPaths`,[]),r(this,`charBits`,new Int32Array),r(this,`pathLens`,new Uint16Array),r(this,`topLevelCache`,null),r(this,`readyCount`,0)}loadFromFileList(e){let t=new Set,n=[];for(let r of e)r.length>0&&!t.has(r)&&(t.add(r),n.push(r));this.buildIndex(n)}loadFromFileListAsync(e){let t=()=>{};return{queryable:new Promise(e=>{t=e}),done:this.buildAsync(e,t)}}async buildAsync(e,t){let n=new Set,r=[],i=performance.now();for(let t=0;t<e.length;t++){let a=e[t];a.length>0&&!n.has(a)&&(n.add(a),r.push(a)),(t&255)==255&&performance.now()-i>4&&(await E(),i=performance.now())}this.resetArrays(r),i=performance.now();let a=!0;for(let e=0;e<r.length;e++)this.indexPath(e),(e&255)==255&&performance.now()-i>4&&(this.readyCount=e+1,a&&(t(),a=!1),await E(),i=performance.now());this.readyCount=r.length,t()}buildIndex(e){this.resetArrays(e);for(let t=0;t<e.length;t++)this.indexPath(t);this.readyCount=e.length}resetArrays(e){let t=e.length;this.paths=e,this.lowerPaths=Array(t),this.charBits=new Int32Array(t),this.pathLens=new Uint16Array(t),this.readyCount=0,this.topLevelCache=ve(e,Ce)}indexPath(e){let t=this.paths[e].toLowerCase();this.lowerPaths[e]=t;let n=t.length;this.pathLens[e]=n;let r=0;for(let e=0;e<n;e++){let n=t.charCodeAt(e);n>=97&&n<=122&&(r|=1<<n-97)}this.charBits[e]=r}search(e,t){if(t<=0)return[];if(e.length===0)return this.topLevelCache?this.topLevelCache.slice(0,t):[];let n=e!==e.toLowerCase(),r=n?e:e.toLowerCase(),i=Math.min(r.length,A),a=Array(i),o=0;for(let e=0;e<i;e++){let t=r.charAt(e);a[e]=t;let n=t.charCodeAt(0);n>=97&&n<=122&&(o|=1<<n-97)}let s=i*24+k+32,c=[],l=-1/0,{paths:u,lowerPaths:d,charBits:f,pathLens:p,readyCount:m}=this;for(let e=0;e<m;e++){if((f[e]&o)!==o)continue;let r=n?u[e]:d[e],m=a[0],h=0,g=[],_=r.indexOf(m);if(_===-1)continue;g[h++]=_;for(let e=_+1;e<r.length;e++){if(r.charCodeAt(e)!==m.charCodeAt(0))continue;let t=r.charCodeAt(e-1);(t===47||t===92||t===45||t===95||t===46||t===32)&&(g[h++]=e)}let v=u[e],ee=p[e],y=Math.max(0,32-(ee>>2)),b=-1/0;for(let e=0;e<h;e++){j[0]=g[e];let n=0,o=0,u=j[0],d=!0;for(let e=1;e<i;e++){let t=r.indexOf(a[e],u+1);if(t===-1){d=!1;break}j[e]=t;let i=t-u-1;i===0?o+=O:n+=xe+i*Se,u=t}if(!d||c.length===t&&s+o-n+y<=l)continue;let f=i*ye+o-n;f+=me(v,j[0],!0);for(let e=1;e<i;e++)f+=me(v,j[e],!1);f+=y,f>b&&(b=f)}if(b===-1/0)continue;let x=b;if(c.length<t)c.push({path:v,fuzzScore:x}),c.length===t&&(c.sort((e,t)=>e.fuzzScore-t.fuzzScore),l=c[0].fuzzScore);else if(x>l){let e=0,t=c.length;for(;e<t;){let n=e+t>>1;c[n].fuzzScore<x?e=n+1:t=n}c.splice(e,0,{path:v,fuzzScore:x}),c.shift(),l=c[0].fuzzScore}}c.sort((e,t)=>t.fuzzScore-e.fuzzScore);let h=c.length,g=Math.max(h,1),_=Array(h);for(let e=0;e<h;e++){let t=c[e].path,n=e/g;_[e]={path:t,score:t.includes(`test`)?Math.min(n*1.05,1):n}}return _}}}));function M(){return z||(z=new we),z}function Ee(){z=null,B=null,H++,U=null,W=[],G=[],K=[],V.clear(),q=null,J=null,Y=0,X=null,Z=null,Q=null}function N(e){let t=e.length,n=Math.max(1,Math.floor(t/500)),r=-2128831035;for(let i=0;i<t;i+=n){let t=e[i];for(let e=0;e<t.length;e++)r=(r^t.charCodeAt(e))*16777619|0;r=r*16777619|0}if(t>0){let n=e[t-1];for(let e=0;e<n.length;e++)r=(r^n.charCodeAt(e))*16777619|0}return`${t}:${(r>>>0).toString(16)}`}function De(){let e=x(m());if(!e)return null;try{return pe(T.join(e,`.git`,`index`)).mtimeMs}catch{return null}}function P(e,t,n){return n===t?e:e.map(e=>{let r=T.join(t,e);return T.relative(n,r)})}async function Oe(e){if(e.length===0||!z||W.length===0)return;let t=await I(e),n=[...W,...G,...K,...e,...t],r=N(n);if(r===Q){_(`[FileIndex] skipped index rebuild — merged paths unchanged`);return}await z.loadFromFileListAsync(n).done,Q=r,_(`[FileIndex] rebuilt index with ${W.length} tracked + ${e.length} untracked files`)}async function F(e,t){let n=`${e}:${t}`;if(J===n)return q;let r=y(),i=[`.ignore`,`.rgignore`],a=[...new Set([e,t])],o=(0,Be.default)(),s=!1,c=a.flatMap(e=>i.map(t=>T.join(e,t))),l=await Promise.all(c.map(e=>r.readFile(e,{encoding:`utf8`}).catch(()=>null)));for(let[e,t]of l.entries())t!==null&&(o.add(t),s=!0,_(`[FileIndex] loaded ignore patterns from ${c[e]}`));let u=s?o:null;return q=u,J=n,u}async function ke(e,t){let n=Date.now();_(`[FileIndex] getFilesUsingGit called`);let r=m(),i=x(r);if(!i)return _(`[FileIndex] not a git repo, returning null`),null;try{let a=Date.now(),o=await S(b(),[`-c`,`core.quotepath=false`,`ls-files`,`--recurse-submodules`],{timeout:5e3,abortSignal:e,cwd:i});if(_(`[FileIndex] git ls-files (tracked) took ${Date.now()-a}ms`),o.code!==0)return _(`[FileIndex] git ls-files failed (code=${o.code}, stderr=${o.stderr}), falling back to ripgrep`),null;let s=P(o.stdout.trim().split(`
2
+ `).filter(Boolean),i,r),c=await F(i,r);if(c){let e=s.length;s=c.filter(s),_(`[FileIndex] applied ignore patterns: ${e} -> ${s.length} files`)}W=s;let l=Date.now()-n;if(_(`[FileIndex] git ls-files: ${s.length} tracked files in ${l}ms`),w(`tengu_file_suggestions_git_ls_files`,{file_count:s.length,tracked_count:s.length,untracked_count:0,duration_ms:l}),!U){let e=t?[`-c`,`core.quotepath=false`,`ls-files`,`--others`,`--exclude-standard`]:[`-c`,`core.quotepath=false`,`ls-files`,`--others`],n=H;U=S(b(),e,{timeout:1e4,cwd:i}).then(async e=>{if(n===H&&e.code===0){let t=P(e.stdout.trim().split(`
3
+ `).filter(Boolean),i,r),n=await F(i,r);if(n&&t.length>0){let e=t.length;t=n.filter(t),_(`[FileIndex] applied ignore patterns to untracked: ${e} -> ${t.length} files`)}_(`[FileIndex] background untracked fetch: ${t.length} files`),Oe(t)}}).catch(e=>{_(`[FileIndex] background untracked fetch failed: ${e}`)}).finally(()=>{U=null})}return s}catch(e){return _(`[FileIndex] git ls-files error: ${g(e)}`),null}}async function I(e){let t=new Set,n=performance.now();for(let r=0;r<e.length;r++)Ae(e,r,r+1,t),(r&255)==255&&performance.now()-n>4&&(await E(),n=performance.now());return[...t].map(e=>e+T.sep)}function Ae(e,t,n,r){for(let i=t;i<n;i++){let t=T.dirname(e[i]);for(;t!==`.`&&!r.has(t);){let e=T.dirname(t);if(e===t)break;r.add(t),t=e}}}async function je(e){return(await Promise.all(u.map(t=>s(t,e)))).flatMap(e=>e.map(e=>e.filePath))}async function Me(e,t){_(`[FileIndex] getProjectFiles called, respectGitignore=${t}`);let n=await ke(e,t);if(n!==null)return _(`[FileIndex] using git ls-files result (${n.length} files)`),n;_(`[FileIndex] git ls-files returned null, falling back to ripgrep`);let r=Date.now(),i=[`--files`,`--follow`,`--hidden`,`--glob`,`!.git/`,`--glob`,`!.svn/`,`--glob`,`!.hg/`,`--glob`,`!.bzr/`,`--glob`,`!.jj/`,`--glob`,`!.sl/`];t||i.push(`--no-ignore-vcs`);let a=(await fe(i,`.`,e)).map(e=>T.relative(m(),e)),o=Date.now()-r;return _(`[FileIndex] ripgrep: ${a.length} files in ${o}ms`),w(`tengu_file_suggestions_ripgrep`,{file_count:a.length,duration_ms:o}),a}async function Ne(){let e=AbortSignal.timeout(1e4),t=M();try{let n=ae(),r=oe(),i=n.respectGitignore??r.respectGitignore??!0,a=m(),[o,s]=await Promise.all([Me(e,i),je(a)]);G=s;let c=[...o,...s],l=await I(c);K=l;let u=[...l,...c],d=N(u);d===Z?_(`[FileIndex] skipped index rebuild — tracked paths unchanged`):(await t.loadFromFileListAsync(u).done,Z=d,Q=null)}catch(e){C(e)}return t}function Pe(e,t){let n=Math.min(e.length,t.length),r=0;for(;r<n&&e[r]===t[r];)r++;return e.substring(0,r)}function Fe(e){if(e.length===0)return``;let t=e.map(e=>e.displayText),n=t[0];for(let e=1;e<t.length;e++){let r=t[e];if(n=Pe(n,r),n===``)return``}return n}function L(e,t){return{id:`file-${e}`,displayText:e,metadata:t===void 0?void 0:{score:t}}}function Ie(e,t){return e.search(t,$).map(e=>L(e.path,e.score))}function R(){if(B)return;let e=De();if(z&&!(e!==null&&e!==X)&&Date.now()-Y<He)return;let t=H,n=Date.now();M(),B=Ne().then(r=>t===H?(B=null,V.emit(),X=e,Y=Date.now(),_(`[FileIndex] cache refresh completed in ${Date.now()-n}ms`),r):r).catch(e=>(_(`[FileIndex] Cache refresh failed: ${g(e)}`),C(e),t===H&&(B=null),M()))}async function Le(){let e=y(),t=m();try{return(await e.readdir(t)).map(e=>{let n=T.join(t,e.name),r=T.relative(t,n);return e.isDirectory()?r+T.sep:r})}catch(e){return C(e),[]}}async function Re(e,t=!1){if(!e&&!t)return[];if(ae().fileSuggestion?.type===`command`)return(await o({...a(),query:e})).slice(0,$).map(L);if(e===``||e===`.`||e===`./`){let e=await Le();return R(),e.slice(0,$).map(L)}let n=Date.now();try{let t=B!==null;R();let r=e,i=`.${T.sep}`;e.startsWith(i)&&(r=e.substring(2)),r.startsWith(`~`)&&(r=ie(r));let a=z?Ie(z,r):[],o=Date.now()-n;return _(`[FileIndex] generateFileSuggestions: ${a.length} results in ${o}ms (${t?`partial`:`full`} index)`),w(`tengu_file_suggestions_query`,{duration_ms:o,cache_hit:!t,result_count:a.length,query_length:e.length}),a}catch(e){return C(e),[]}}function ze(e,t,n,r,i,a){let o=typeof e==`string`?e:e.displayText;i(t.substring(0,r)+o+t.substring(r+n.length)),a(r+o.length)}var Be,z,B,V,Ve,H,U,W,G,K,q,J,Y,X,Z,Q,$,He,Ue=e((()=>{Be=t(i(),1),c(),Te(),ue(),se(),p(),ee(),h(),ce(),v(),te(),l(),le(),ne(),de(),re(),d(),z=null,B=null,V=f(),Ve=V.subscribe,H=0,U=null,W=[],G=[],K=[],q=null,J=null,Y=0,X=null,Z=null,Q=null,$=15,He=5e3}));export{Ue as a,Re as i,Ee as n,Ve as o,Fe as r,R as s,ze as t};
@@ -0,0 +1,3 @@
1
+ import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{n as t,t as n}from"./memoize-BK3gG5ob.js";import{i as r,l as i,o as a}from"./envUtils-DcaKZlRU.js";import{n as o,t as s}from"./defineProperty-C-QyHrDq.js";import{C as c,v as l,w as u}from"./esm-BbMeEYcz.js";import{Z as d,_ as f,c as ee,et as p,it as te,mt as ne,n as re,o as ie,pt as ae,t as oe,v as se,w as m}from"./esm-BQY8jJNR.js";import{n as h,t as ce}from"./axios-DaWTGg7G.js";import{d as le,l as ue}from"./types-zk5Ltv5q.js";import{L as de,ut as g,zt as _}from"./state-BowF111d.js";import{n as fe,t as pe}from"./cwd-BcO6WHKo.js";import{B as me,C as v,H as he,L as ge,N as _e,x as ve}from"./debug-8DCufdSp.js";import{Gt as ye,qt as be}from"./settings-DKN4xSpQ.js";import{c as xe,d as y,m as b,n as Se}from"./config-BddEvZZl.js";import{a as Ce,s as we}from"./execFileNoThrow-BsfuytkN.js";import{d as Te,o as Ee,p as x,s as S}from"./log-DaILwWJa.js";import{a as De,i as Oe,o as ke}from"./platform-Dzff1WWw.js";import{i as Ae,n as je}from"./analytics-DJobLaWP.js";import{n as Me,r as C}from"./startupProfiler-DTs9w9EN.js";import{$n as Ne,Cn as Pe,En as Fe,Ht as Ie,St as w,Tt as Le,Vt as Re,_t as ze,er as Be,ht as T,pt as Ve,xt as He,yt as Ue}from"./model-BwBE0Pt5.js";import*as E from"path";import{randomUUID as D}from"crypto";import{appendFile as We,mkdir as O,readdir as Ge,unlink as k,writeFile as Ke}from"fs/promises";function A(){return i(process.env.CLAUDE_CODE_USE_BEDROCK)||i(process.env.CLAUDE_CODE_USE_VERTEX)||i(process.env.CLAUDE_CODE_USE_FOUNDRY)||x()}function qe(){return x()}var j=e((()=>{a(),Te()}));async function Je(){M===null&&!N&&(N=Ze(),M=await N,N=null,P.cache.clear?.())}function Ye(){M=null,N=null,P.cache.clear?.(),F.cache.clear?.()}function Xe(){if(M!==null)return M;let e=T();if(e?.emailAddress)return e.emailAddress}async function Ze(){let e=T();if(e?.emailAddress)return e.emailAddress}var M,N,P,F,I=e((()=>{we(),n(),_(),w(),b(),fe(),be(),a(),M=null,N=null,P=t(e=>{let t=y(),n=xe(),r,a,o;if(e&&(r=Ue()??void 0,a=ze()??void 0,r&&n.claudeCodeFirstTokenDate)){let e=new Date(n.claudeCodeFirstTokenDate).getTime();isNaN(e)||(o=e)}let s=T(),c=s?.organizationUuid,l=s?.accountUuid;return{deviceId:t,sessionId:g(),email:Xe(),appVersion:`0.0.22`,platform:ye(),organizationUuid:c,accountUuid:l,userType:process.env.USER_TYPE,subscriptionType:r,rateLimitTier:a,firstTokenTime:o,...i(process.env.GITHUB_ACTIONS)&&{githubActionsMetadata:{actor:process.env.GITHUB_ACTOR,actorId:process.env.GITHUB_ACTOR_ID,repository:process.env.GITHUB_REPOSITORY,repositoryId:process.env.GITHUB_REPOSITORY_ID,repositoryOwner:process.env.GITHUB_REPOSITORY_OWNER,repositoryOwnerId:process.env.GITHUB_REPOSITORY_OWNER_ID}}}}),F=t(async()=>{let e=await Ce(`git config --get user.email`,{shell:!0,reject:!1,cwd:pe()});return e.exitCode===0&&e.stdout?e.stdout.trim():void 0})}));function Qe(){return{seconds:0,nanos:0}}function L(e){return e!=null}var R,$e=e((()=>{R={fromJSON(e){return{seconds:L(e.seconds)?globalThis.Number(e.seconds):0,nanos:L(e.nanos)?globalThis.Number(e.nanos):0}},toJSON(e){let t={};return e.seconds!==void 0&&(t.seconds=Math.round(e.seconds)),e.nanos!==void 0&&(t.nanos=Math.round(e.nanos)),t},create(e){return R.fromPartial(e??{})},fromPartial(e){let t=Qe();return t.seconds=e.seconds??0,t.nanos=e.nanos??0,t}}}));function et(){return{account_id:0,organization_uuid:``,account_uuid:``}}function z(e){return e!=null}var B,tt=e((()=>{B={fromJSON(e){return{account_id:z(e.account_id)?globalThis.Number(e.account_id):0,organization_uuid:z(e.organization_uuid)?globalThis.String(e.organization_uuid):``,account_uuid:z(e.account_uuid)?globalThis.String(e.account_uuid):``}},toJSON(e){let t={};return e.account_id!==void 0&&(t.account_id=Math.round(e.account_id)),e.organization_uuid!==void 0&&(t.organization_uuid=e.organization_uuid),e.account_uuid!==void 0&&(t.account_uuid=e.account_uuid),t},create(e){return B.fromPartial(e??{})},fromPartial(e){let t=et();return t.account_id=e.account_id??0,t.organization_uuid=e.organization_uuid??``,t.account_uuid=e.account_uuid??``,t}}}));function nt(){return{actor_id:``,repository_id:``,repository_owner_id:``}}function rt(){return{platform:``,node_version:``,terminal:``,package_managers:``,runtimes:``,is_running_with_bun:!1,is_ci:!1,is_claubbit:!1,is_github_action:!1,is_claude_code_action:!1,is_claude_ai_auth:!1,version:``,github_event_name:``,github_actions_runner_environment:``,github_actions_runner_os:``,github_action_ref:``,wsl_version:``,github_actions_metadata:void 0,arch:``,is_claude_code_remote:!1,remote_environment_type:``,claude_code_container_id:``,claude_code_remote_session_id:``,tags:[],deployment_environment:``,is_conductor:!1,version_base:``,coworker_type:``,build_time:``,is_local_agent_mode:!1,linux_distro_id:``,linux_distro_version:``,linux_kernel:``,vcs:``,platform_raw:``}}function it(){return{slack_team_id:``,is_enterprise_install:!1,trigger:``,creation_method:``}}function at(){return{event_name:``,client_timestamp:void 0,model:``,session_id:``,user_type:``,betas:``,env:void 0,entrypoint:``,agent_sdk_version:``,is_interactive:!1,client_type:``,process:``,additional_metadata:``,auth:void 0,server_timestamp:void 0,event_id:``,device_id:``,swe_bench_run_id:``,swe_bench_instance_id:``,swe_bench_task_id:``,email:``,agent_id:``,parent_session_id:``,agent_type:``,slack:void 0,team_name:``,skill_name:``,plugin_name:``,marketplace_name:``}}function ot(e){let t=(e.seconds||0)*1e3;return t+=(e.nanos||0)/1e6,new globalThis.Date(t)}function V(e){return e instanceof globalThis.Date?e:typeof e==`string`?new globalThis.Date(e):ot(R.fromJSON(e))}function H(e){return e!=null}var U,W,G,K,st=e((()=>{$e(),tt(),U={fromJSON(e){return{actor_id:H(e.actor_id)?globalThis.String(e.actor_id):``,repository_id:H(e.repository_id)?globalThis.String(e.repository_id):``,repository_owner_id:H(e.repository_owner_id)?globalThis.String(e.repository_owner_id):``}},toJSON(e){let t={};return e.actor_id!==void 0&&(t.actor_id=e.actor_id),e.repository_id!==void 0&&(t.repository_id=e.repository_id),e.repository_owner_id!==void 0&&(t.repository_owner_id=e.repository_owner_id),t},create(e){return U.fromPartial(e??{})},fromPartial(e){let t=nt();return t.actor_id=e.actor_id??``,t.repository_id=e.repository_id??``,t.repository_owner_id=e.repository_owner_id??``,t}},W={fromJSON(e){return{platform:H(e.platform)?globalThis.String(e.platform):``,node_version:H(e.node_version)?globalThis.String(e.node_version):``,terminal:H(e.terminal)?globalThis.String(e.terminal):``,package_managers:H(e.package_managers)?globalThis.String(e.package_managers):``,runtimes:H(e.runtimes)?globalThis.String(e.runtimes):``,is_running_with_bun:H(e.is_running_with_bun)?globalThis.Boolean(e.is_running_with_bun):!1,is_ci:H(e.is_ci)?globalThis.Boolean(e.is_ci):!1,is_claubbit:H(e.is_claubbit)?globalThis.Boolean(e.is_claubbit):!1,is_github_action:H(e.is_github_action)?globalThis.Boolean(e.is_github_action):!1,is_claude_code_action:H(e.is_claude_code_action)?globalThis.Boolean(e.is_claude_code_action):!1,is_claude_ai_auth:H(e.is_claude_ai_auth)?globalThis.Boolean(e.is_claude_ai_auth):!1,version:H(e.version)?globalThis.String(e.version):``,github_event_name:H(e.github_event_name)?globalThis.String(e.github_event_name):``,github_actions_runner_environment:H(e.github_actions_runner_environment)?globalThis.String(e.github_actions_runner_environment):``,github_actions_runner_os:H(e.github_actions_runner_os)?globalThis.String(e.github_actions_runner_os):``,github_action_ref:H(e.github_action_ref)?globalThis.String(e.github_action_ref):``,wsl_version:H(e.wsl_version)?globalThis.String(e.wsl_version):``,github_actions_metadata:H(e.github_actions_metadata)?U.fromJSON(e.github_actions_metadata):void 0,arch:H(e.arch)?globalThis.String(e.arch):``,is_claude_code_remote:H(e.is_claude_code_remote)?globalThis.Boolean(e.is_claude_code_remote):!1,remote_environment_type:H(e.remote_environment_type)?globalThis.String(e.remote_environment_type):``,claude_code_container_id:H(e.claude_code_container_id)?globalThis.String(e.claude_code_container_id):``,claude_code_remote_session_id:H(e.claude_code_remote_session_id)?globalThis.String(e.claude_code_remote_session_id):``,tags:globalThis.Array.isArray(e?.tags)?e.tags.map(e=>globalThis.String(e)):[],deployment_environment:H(e.deployment_environment)?globalThis.String(e.deployment_environment):``,is_conductor:H(e.is_conductor)?globalThis.Boolean(e.is_conductor):!1,version_base:H(e.version_base)?globalThis.String(e.version_base):``,coworker_type:H(e.coworker_type)?globalThis.String(e.coworker_type):``,build_time:H(e.build_time)?globalThis.String(e.build_time):``,is_local_agent_mode:H(e.is_local_agent_mode)?globalThis.Boolean(e.is_local_agent_mode):!1,linux_distro_id:H(e.linux_distro_id)?globalThis.String(e.linux_distro_id):``,linux_distro_version:H(e.linux_distro_version)?globalThis.String(e.linux_distro_version):``,linux_kernel:H(e.linux_kernel)?globalThis.String(e.linux_kernel):``,vcs:H(e.vcs)?globalThis.String(e.vcs):``,platform_raw:H(e.platform_raw)?globalThis.String(e.platform_raw):``}},toJSON(e){let t={};return e.platform!==void 0&&(t.platform=e.platform),e.node_version!==void 0&&(t.node_version=e.node_version),e.terminal!==void 0&&(t.terminal=e.terminal),e.package_managers!==void 0&&(t.package_managers=e.package_managers),e.runtimes!==void 0&&(t.runtimes=e.runtimes),e.is_running_with_bun!==void 0&&(t.is_running_with_bun=e.is_running_with_bun),e.is_ci!==void 0&&(t.is_ci=e.is_ci),e.is_claubbit!==void 0&&(t.is_claubbit=e.is_claubbit),e.is_github_action!==void 0&&(t.is_github_action=e.is_github_action),e.is_claude_code_action!==void 0&&(t.is_claude_code_action=e.is_claude_code_action),e.is_claude_ai_auth!==void 0&&(t.is_claude_ai_auth=e.is_claude_ai_auth),e.version!==void 0&&(t.version=e.version),e.github_event_name!==void 0&&(t.github_event_name=e.github_event_name),e.github_actions_runner_environment!==void 0&&(t.github_actions_runner_environment=e.github_actions_runner_environment),e.github_actions_runner_os!==void 0&&(t.github_actions_runner_os=e.github_actions_runner_os),e.github_action_ref!==void 0&&(t.github_action_ref=e.github_action_ref),e.wsl_version!==void 0&&(t.wsl_version=e.wsl_version),e.github_actions_metadata!==void 0&&(t.github_actions_metadata=U.toJSON(e.github_actions_metadata)),e.arch!==void 0&&(t.arch=e.arch),e.is_claude_code_remote!==void 0&&(t.is_claude_code_remote=e.is_claude_code_remote),e.remote_environment_type!==void 0&&(t.remote_environment_type=e.remote_environment_type),e.claude_code_container_id!==void 0&&(t.claude_code_container_id=e.claude_code_container_id),e.claude_code_remote_session_id!==void 0&&(t.claude_code_remote_session_id=e.claude_code_remote_session_id),e.tags?.length&&(t.tags=e.tags),e.deployment_environment!==void 0&&(t.deployment_environment=e.deployment_environment),e.is_conductor!==void 0&&(t.is_conductor=e.is_conductor),e.version_base!==void 0&&(t.version_base=e.version_base),e.coworker_type!==void 0&&(t.coworker_type=e.coworker_type),e.build_time!==void 0&&(t.build_time=e.build_time),e.is_local_agent_mode!==void 0&&(t.is_local_agent_mode=e.is_local_agent_mode),e.linux_distro_id!==void 0&&(t.linux_distro_id=e.linux_distro_id),e.linux_distro_version!==void 0&&(t.linux_distro_version=e.linux_distro_version),e.linux_kernel!==void 0&&(t.linux_kernel=e.linux_kernel),e.vcs!==void 0&&(t.vcs=e.vcs),e.platform_raw!==void 0&&(t.platform_raw=e.platform_raw),t},create(e){return W.fromPartial(e??{})},fromPartial(e){let t=rt();return t.platform=e.platform??``,t.node_version=e.node_version??``,t.terminal=e.terminal??``,t.package_managers=e.package_managers??``,t.runtimes=e.runtimes??``,t.is_running_with_bun=e.is_running_with_bun??!1,t.is_ci=e.is_ci??!1,t.is_claubbit=e.is_claubbit??!1,t.is_github_action=e.is_github_action??!1,t.is_claude_code_action=e.is_claude_code_action??!1,t.is_claude_ai_auth=e.is_claude_ai_auth??!1,t.version=e.version??``,t.github_event_name=e.github_event_name??``,t.github_actions_runner_environment=e.github_actions_runner_environment??``,t.github_actions_runner_os=e.github_actions_runner_os??``,t.github_action_ref=e.github_action_ref??``,t.wsl_version=e.wsl_version??``,t.github_actions_metadata=e.github_actions_metadata!==void 0&&e.github_actions_metadata!==null?U.fromPartial(e.github_actions_metadata):void 0,t.arch=e.arch??``,t.is_claude_code_remote=e.is_claude_code_remote??!1,t.remote_environment_type=e.remote_environment_type??``,t.claude_code_container_id=e.claude_code_container_id??``,t.claude_code_remote_session_id=e.claude_code_remote_session_id??``,t.tags=e.tags?.map(e=>e)||[],t.deployment_environment=e.deployment_environment??``,t.is_conductor=e.is_conductor??!1,t.version_base=e.version_base??``,t.coworker_type=e.coworker_type??``,t.build_time=e.build_time??``,t.is_local_agent_mode=e.is_local_agent_mode??!1,t.linux_distro_id=e.linux_distro_id??``,t.linux_distro_version=e.linux_distro_version??``,t.linux_kernel=e.linux_kernel??``,t.vcs=e.vcs??``,t.platform_raw=e.platform_raw??``,t}},G={fromJSON(e){return{slack_team_id:H(e.slack_team_id)?globalThis.String(e.slack_team_id):``,is_enterprise_install:H(e.is_enterprise_install)?globalThis.Boolean(e.is_enterprise_install):!1,trigger:H(e.trigger)?globalThis.String(e.trigger):``,creation_method:H(e.creation_method)?globalThis.String(e.creation_method):``}},toJSON(e){let t={};return e.slack_team_id!==void 0&&(t.slack_team_id=e.slack_team_id),e.is_enterprise_install!==void 0&&(t.is_enterprise_install=e.is_enterprise_install),e.trigger!==void 0&&(t.trigger=e.trigger),e.creation_method!==void 0&&(t.creation_method=e.creation_method),t},create(e){return G.fromPartial(e??{})},fromPartial(e){let t=it();return t.slack_team_id=e.slack_team_id??``,t.is_enterprise_install=e.is_enterprise_install??!1,t.trigger=e.trigger??``,t.creation_method=e.creation_method??``,t}},K={fromJSON(e){return{event_name:H(e.event_name)?globalThis.String(e.event_name):``,client_timestamp:H(e.client_timestamp)?V(e.client_timestamp):void 0,model:H(e.model)?globalThis.String(e.model):``,session_id:H(e.session_id)?globalThis.String(e.session_id):``,user_type:H(e.user_type)?globalThis.String(e.user_type):``,betas:H(e.betas)?globalThis.String(e.betas):``,env:H(e.env)?W.fromJSON(e.env):void 0,entrypoint:H(e.entrypoint)?globalThis.String(e.entrypoint):``,agent_sdk_version:H(e.agent_sdk_version)?globalThis.String(e.agent_sdk_version):``,is_interactive:H(e.is_interactive)?globalThis.Boolean(e.is_interactive):!1,client_type:H(e.client_type)?globalThis.String(e.client_type):``,process:H(e.process)?globalThis.String(e.process):``,additional_metadata:H(e.additional_metadata)?globalThis.String(e.additional_metadata):``,auth:H(e.auth)?B.fromJSON(e.auth):void 0,server_timestamp:H(e.server_timestamp)?V(e.server_timestamp):void 0,event_id:H(e.event_id)?globalThis.String(e.event_id):``,device_id:H(e.device_id)?globalThis.String(e.device_id):``,swe_bench_run_id:H(e.swe_bench_run_id)?globalThis.String(e.swe_bench_run_id):``,swe_bench_instance_id:H(e.swe_bench_instance_id)?globalThis.String(e.swe_bench_instance_id):``,swe_bench_task_id:H(e.swe_bench_task_id)?globalThis.String(e.swe_bench_task_id):``,email:H(e.email)?globalThis.String(e.email):``,agent_id:H(e.agent_id)?globalThis.String(e.agent_id):``,parent_session_id:H(e.parent_session_id)?globalThis.String(e.parent_session_id):``,agent_type:H(e.agent_type)?globalThis.String(e.agent_type):``,slack:H(e.slack)?G.fromJSON(e.slack):void 0,team_name:H(e.team_name)?globalThis.String(e.team_name):``,skill_name:H(e.skill_name)?globalThis.String(e.skill_name):``,plugin_name:H(e.plugin_name)?globalThis.String(e.plugin_name):``,marketplace_name:H(e.marketplace_name)?globalThis.String(e.marketplace_name):``}},toJSON(e){let t={};return e.event_name!==void 0&&(t.event_name=e.event_name),e.client_timestamp!==void 0&&(t.client_timestamp=e.client_timestamp.toISOString()),e.model!==void 0&&(t.model=e.model),e.session_id!==void 0&&(t.session_id=e.session_id),e.user_type!==void 0&&(t.user_type=e.user_type),e.betas!==void 0&&(t.betas=e.betas),e.env!==void 0&&(t.env=W.toJSON(e.env)),e.entrypoint!==void 0&&(t.entrypoint=e.entrypoint),e.agent_sdk_version!==void 0&&(t.agent_sdk_version=e.agent_sdk_version),e.is_interactive!==void 0&&(t.is_interactive=e.is_interactive),e.client_type!==void 0&&(t.client_type=e.client_type),e.process!==void 0&&(t.process=e.process),e.additional_metadata!==void 0&&(t.additional_metadata=e.additional_metadata),e.auth!==void 0&&(t.auth=B.toJSON(e.auth)),e.server_timestamp!==void 0&&(t.server_timestamp=e.server_timestamp.toISOString()),e.event_id!==void 0&&(t.event_id=e.event_id),e.device_id!==void 0&&(t.device_id=e.device_id),e.swe_bench_run_id!==void 0&&(t.swe_bench_run_id=e.swe_bench_run_id),e.swe_bench_instance_id!==void 0&&(t.swe_bench_instance_id=e.swe_bench_instance_id),e.swe_bench_task_id!==void 0&&(t.swe_bench_task_id=e.swe_bench_task_id),e.email!==void 0&&(t.email=e.email),e.agent_id!==void 0&&(t.agent_id=e.agent_id),e.parent_session_id!==void 0&&(t.parent_session_id=e.parent_session_id),e.agent_type!==void 0&&(t.agent_type=e.agent_type),e.slack!==void 0&&(t.slack=G.toJSON(e.slack)),e.team_name!==void 0&&(t.team_name=e.team_name),e.skill_name!==void 0&&(t.skill_name=e.skill_name),e.plugin_name!==void 0&&(t.plugin_name=e.plugin_name),e.marketplace_name!==void 0&&(t.marketplace_name=e.marketplace_name),t},create(e){return K.fromPartial(e??{})},fromPartial(e){let t=at();return t.event_name=e.event_name??``,t.client_timestamp=e.client_timestamp??void 0,t.model=e.model??``,t.session_id=e.session_id??``,t.user_type=e.user_type??``,t.betas=e.betas??``,t.env=e.env!==void 0&&e.env!==null?W.fromPartial(e.env):void 0,t.entrypoint=e.entrypoint??``,t.agent_sdk_version=e.agent_sdk_version??``,t.is_interactive=e.is_interactive??!1,t.client_type=e.client_type??``,t.process=e.process??``,t.additional_metadata=e.additional_metadata??``,t.auth=e.auth!==void 0&&e.auth!==null?B.fromPartial(e.auth):void 0,t.server_timestamp=e.server_timestamp??void 0,t.event_id=e.event_id??``,t.device_id=e.device_id??``,t.swe_bench_run_id=e.swe_bench_run_id??``,t.swe_bench_instance_id=e.swe_bench_instance_id??``,t.swe_bench_task_id=e.swe_bench_task_id??``,t.email=e.email??``,t.agent_id=e.agent_id??``,t.parent_session_id=e.parent_session_id??``,t.agent_type=e.agent_type??``,t.slack=e.slack!==void 0&&e.slack!==null?G.fromPartial(e.slack):void 0,t.team_name=e.team_name??``,t.skill_name=e.skill_name??``,t.plugin_name=e.plugin_name??``,t.marketplace_name=e.marketplace_name??``,t}}}));function q(){return E.join(r(),`telemetry`)}function ct(e){if(!h.isAxiosError(e))return _e(e);let t=[],n=e.response?.headers?.[`request-id`];return n&&t.push(`request-id=${n}`),e.response?.status&&t.push(`status=${e.response.status}`),e.code&&t.push(`code=${e.code}`),e.message&&t.push(e.message),t.join(`, `)}var J,Y,X,lt=e((()=>{se(),ce(),_(),st(),w(),b(),a(),ge(),Fe(),ue(),Ee(),Re(),ve(),ne(),Ne(),je(),p(),o(),J=D(),Y=`1p_failed_events.`,X=class{constructor(e={}){s(this,`endpoint`,void 0),s(this,`timeout`,void 0),s(this,`maxBatchSize`,void 0),s(this,`skipAuth`,void 0),s(this,`batchDelayMs`,void 0),s(this,`baseBackoffDelayMs`,void 0),s(this,`maxBackoffDelayMs`,void 0),s(this,`maxAttempts`,void 0),s(this,`isKilled`,void 0),s(this,`pendingExports`,[]),s(this,`isShutdown`,!1),s(this,`schedule`,void 0),s(this,`cancelBackoff`,null),s(this,`attempts`,0),s(this,`isRetrying`,!1),s(this,`lastExportErrorContext`,void 0);let t=e.baseUrl||(process.env.ANTHROPIC_BASE_URL===`https://api-staging.anthropic.com`?`https://api-staging.anthropic.com`:`https://api.anthropic.com`);this.endpoint=`${t}${e.path||`/api/event_logging/batch`}`,this.timeout=e.timeout||1e4,this.maxBatchSize=e.maxBatchSize||200,this.skipAuth=e.skipAuth??!1,this.batchDelayMs=e.batchDelayMs||100,this.baseBackoffDelayMs=e.baseBackoffDelayMs||500,this.maxBackoffDelayMs=e.maxBackoffDelayMs||3e4,this.maxAttempts=e.maxAttempts??8,this.isKilled=e.isKilled??(()=>!1),this.schedule=e.schedule??((e,t)=>{let n=setTimeout(e,t);return()=>clearTimeout(n)}),this.retryPreviousBatches()}async getQueuedEventCount(){return(await this.loadEventsFromCurrentBatch()).length}getCurrentBatchFilePath(){return E.join(q(),`${Y}${g()}.${J}.json`)}async loadEventsFromFile(e){try{return await le(e)}catch{return[]}}async loadEventsFromCurrentBatch(){return this.loadEventsFromFile(this.getCurrentBatchFilePath())}async saveEventsToFile(e,t){try{if(t.length===0)try{await k(e)}catch{}else await O(q(),{recursive:!0}),await Ke(e,`${t.map(e=>v(e)).join(`
2
+ `)}\n`,`utf8`)}catch(e){S(e)}}async appendEventsToFile(e,t){if(t.length!==0)try{await O(q(),{recursive:!0}),await We(e,`${t.map(e=>v(e)).join(`
3
+ `)}\n`,`utf8`)}catch(e){S(e)}}async deleteFile(e){try{await k(e)}catch{}}async retryPreviousBatches(){try{let e=`${Y}${g()}.`,t;try{t=(await Ge(q())).filter(t=>t.startsWith(e)&&t.endsWith(`.json`)).filter(e=>!e.includes(J))}catch(e){if(me(e))return;throw e}for(let e of t){let t=E.join(q(),e);this.retryFileInBackground(t)}}catch(e){S(e)}}async retryFileInBackground(e){if(this.attempts>=this.maxAttempts){await this.deleteFile(e);return}let t=await this.loadEventsFromFile(e);if(t.length===0){await this.deleteFile(e);return}let n=await this.sendEventsInBatches(t);n.length===0?await this.deleteFile(e):await this.saveEventsToFile(e,n)}async export(e,t){if(this.isShutdown){t({code:m.FAILED,error:Error(`Exporter has been shutdown`)});return}let n=this.doExport(e,t);this.pendingExports.push(n),n.finally(()=>{let e=this.pendingExports.indexOf(n);e>-1&&this.pendingExports.splice(e,1)})}async doExport(e,t){try{let n=e.filter(e=>e.instrumentationScope?.name===`com.anthropic.claude_code.events`);if(n.length===0){t({code:m.SUCCESS});return}let r=this.transformLogsToEvents(n).events;if(r.length===0){t({code:m.SUCCESS});return}if(this.attempts>=this.maxAttempts){t({code:m.FAILED,error:Error(`Dropped ${r.length} events: max attempts (${this.maxAttempts}) reached`)});return}let i=await this.sendEventsInBatches(r);if(this.attempts++,i.length>0){await this.queueFailedEvents(i),this.scheduleBackoffRetry();let e=this.lastExportErrorContext?` (${this.lastExportErrorContext})`:``;t({code:m.FAILED,error:Error(`Failed to export ${i.length} events${e}`)});return}this.resetBackoff(),await this.getQueuedEventCount()>0&&!this.isRetrying&&this.retryFailedEvents(),t({code:m.SUCCESS})}catch(e){S(e),t({code:m.FAILED,error:he(e)})}}async sendEventsInBatches(e){let t=[];for(let n=0;n<e.length;n+=this.maxBatchSize)t.push(e.slice(n,n+this.maxBatchSize));let n=[],r;for(let e=0;e<t.length;e++){let i=t[e];try{await this.sendBatchWithRetry({events:i})}catch(i){r=ct(i);for(let r=e;r<t.length;r++)n.push(...t[r]);break}e<t.length-1&&this.batchDelayMs>0&&await Ie(this.batchDelayMs)}return n.length>0&&r&&(this.lastExportErrorContext=r),n}async queueFailedEvents(e){let t=this.getCurrentBatchFilePath();await this.appendEventsToFile(t,e);let n=this.lastExportErrorContext?` (${this.lastExportErrorContext})`:``,r=`1P event logging: ${e.length} events failed to export${n}`;S(Error(r))}scheduleBackoffRetry(){if(this.cancelBackoff||this.isRetrying||this.isShutdown)return;let e=Math.min(this.baseBackoffDelayMs*this.attempts*this.attempts,this.maxBackoffDelayMs);this.cancelBackoff=this.schedule(async()=>{this.cancelBackoff=null,await this.retryFailedEvents()},e)}async retryFailedEvents(){let e=this.getCurrentBatchFilePath();for(;!this.isShutdown;){let t=await this.loadEventsFromFile(e);if(t.length===0)break;if(this.attempts>=this.maxAttempts){await this.deleteFile(e),this.resetBackoff();return}this.isRetrying=!0,await this.deleteFile(e);let n=await this.sendEventsInBatches(t);if(this.attempts++,this.isRetrying=!1,n.length>0){await this.saveEventsToFile(e,n),this.scheduleBackoffRetry();return}this.resetBackoff()}}resetBackoff(){this.attempts=0,this.cancelBackoff&&(this.cancelBackoff(),this.cancelBackoff=null)}async sendBatchWithRetry(e){if(this.isKilled())throw Error(`firstParty sink killswitch active`);let t={"Content-Type":`application/json`,"User-Agent":ae(),"x-service-name":`workmate`},n=Se()||de(),r=this.skipAuth||!n;if(!r&&Le()){let e=Ve();He()?e&&Be(e.expiresAt)&&(r=!0):r=!0}let i=r?{headers:{},error:`trust not established or Oauth token expired`}:Pe(),a=!i.error,o=a?{...t,...i.headers}:t;try{let t=await h.post(this.endpoint,e,{timeout:this.timeout,headers:o});this.logSuccess(e.events.length,a,t.data);return}catch(n){if(a&&h.isAxiosError(n)&&n.response?.status===401){let n=await h.post(this.endpoint,e,{timeout:this.timeout,headers:t});this.logSuccess(e.events.length,!1,n.data);return}throw n}}logSuccess(e,t,n){}hrTimeToDate(e){let[t,n]=e;return new Date(t*1e3+n/1e6)}transformLogsToEvents(e){let t=[];for(let n of e){let e=n.attributes||{},r=e.event_name||n.body||`unknown`,i=e.core_metadata,a=e.user_metadata,o=e.event_metadata||{};if(!i){t.push({event_type:`ClaudeCodeInternalEvent`,event_data:K.toJSON({event_id:e.event_id,event_name:r,client_timestamp:this.hrTimeToDate(n.hrTime),session_id:g(),additional_metadata:Buffer.from(v({transform_error:`core_metadata attribute is missing`})).toString(`base64`)})});continue}let s=te(i,a,o),{_PROTO_skill_name:c,_PROTO_plugin_name:l,_PROTO_marketplace_name:u,...d}=s.additional,f=Ae(d);t.push({event_type:`ClaudeCodeInternalEvent`,event_data:K.toJSON({event_id:e.event_id,event_name:r,client_timestamp:this.hrTimeToDate(n.hrTime),device_id:e.user_id,email:a?.email,auth:s.auth,...s.core,env:s.env,process:s.process,skill_name:typeof c==`string`?c:void 0,plugin_name:typeof l==`string`?l:void 0,marketplace_name:typeof u==`string`?u:void 0,additional_metadata:Object.keys(f).length>0?Buffer.from(v(f)).toString(`base64`):void 0})})}return{events:t}}async shutdown(){this.isShutdown=!0,this.resetBackoff(),await this.forceFlush()}async forceFlush(){await Promise.all(this.pendingExports)}}}));function ut(e){return!1}var dt=e((()=>{}));function ft(){return{}}function pt(e){let t=ft()[e];if(!t)return null;let n=t.sample_rate;return typeof n!=`number`||n<0||n>1||n>=1?null:n<=0?0:Math.random()<n?n:0}async function mt(){if($)try{await $.shutdown()}catch{}}function Z(){return!A()}async function ht(e,t,n={}){try{let r=await d({model:n.model,betas:n.betas}),i={event_name:t,event_id:D(),core_metadata:r,user_metadata:P(!0),event_metadata:n},a=y();a&&(i.user_id=a),e.emit({body:t,attributes:i})}catch{}}function gt(e,t={}){Z()&&(!Q||ut(`firstParty`)||ht(Q,e,t))}function _t(){if(C(`1p_event_logging_start`),!Z())return;C(`1p_event_after_config`);let e=parseInt(process.env.OTEL_LOGS_EXPORT_INTERVAL||vt.toString(),10),t=yt,n=bt,r=Oe(),i={[c]:`workmate`,[u]:`0.0.22`};if(r===`wsl`){let e=De();e&&(i[`wsl.version`]=e)}$=new ie({resource:f(i),processors:[new re(new X({maxBatchSize:t,isKilled:()=>ut(`firstParty`)}),{scheduledDelayMillis:e,maxExportBatchSize:t,maxQueueSize:n})]}),Q=$.getLogger(`com.anthropic.claude_code.events`,`0.0.22`)}var vt,yt,bt,Q,$,xt=e((()=>{ee(),oe(),l(),b(),ke(),Me(),I(),j(),lt(),p(),dt(),vt=1e4,yt=200,bt=8192,Q=null,$=null}));export{gt as a,F as c,Ye as d,j as f,Z as i,Je as l,qe as m,xt as n,pt as o,A as p,_t as r,mt as s,ft as t,I as u};
@@ -0,0 +1 @@
1
+ import{n as e,r as t}from"./firstPartyEventLogger-C0q45h_4.js";e();export{t as initialize1PEventLogging};