@deveco/deveco-cli-common 1.3.9 → 1.3.11

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 (224) hide show
  1. package/README.md +888 -55
  2. package/THIRD-PARTY-LICENSES +33 -3
  3. package/dist/cli.js +281 -165
  4. package/dist/design2arkts-engine/LICENSE +21 -0
  5. package/dist/design2arkts-engine/dist/index.d.ts +2739 -0
  6. package/dist/design2arkts-engine/dist/index.js +6207 -0
  7. package/dist/design2arkts-engine/package.json +40 -0
  8. package/dist/design2arkts-engine/pixso-arkts.mjs +98 -0
  9. package/dist/design2arkts-engine/resources/skill/LICENSE +21 -0
  10. package/dist/design2arkts-engine/resources/skill/SKILL.md +176 -0
  11. package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-arkts-logic-completer/INSTRUCTIONS.md +310 -0
  12. package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-arkts-logic-completer/evals/evals.json +249 -0
  13. package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-arkts-logic-completer/references/basics-and-display.md +146 -0
  14. package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-arkts-logic-completer/references/containers-and-navigation.md +527 -0
  15. package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-arkts-logic-completer/references/feedback-and-overlay.md +275 -0
  16. package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-arkts-logic-completer/references/hds-components.md +667 -0
  17. package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-arkts-logic-completer/references/input-and-selection.md +382 -0
  18. package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-arkts-logic-completer/references/patterns/data-and-form.md +440 -0
  19. package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-arkts-logic-completer/references/patterns/state-management.md +213 -0
  20. package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-arkui-scoring-workflow/INSTRUCTIONS.md +164 -0
  21. package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-arkui2hds/INSTRUCTIONS.md +138 -0
  22. package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-arkui2hds/references/components.md +777 -0
  23. package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-arkui2hds/references/migration-patterns.md +187 -0
  24. package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-react-to-arkui/INSTRUCTIONS.md +350 -0
  25. package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-react-to-arkui/references/arkui-basic-mapping.md +455 -0
  26. package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-react-to-arkui/references/arkui-common-issues.md +516 -0
  27. package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-react-to-arkui/references/arkui-knowledge-base/api-cards/button.md +104 -0
  28. package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-react-to-arkui/references/arkui-knowledge-base/api-cards/flex.md +115 -0
  29. package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-react-to-arkui/references/arkui-knowledge-base/api-cards/grid.md +121 -0
  30. package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-react-to-arkui/references/arkui-knowledge-base/api-cards/image.md +118 -0
  31. package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-react-to-arkui/references/arkui-knowledge-base/api-cards/list.md +152 -0
  32. package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-react-to-arkui/references/arkui-knowledge-base/api-cards/location.md +160 -0
  33. package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-react-to-arkui/references/arkui-knowledge-base/api-cards/richeditor.md +132 -0
  34. package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-react-to-arkui/references/arkui-knowledge-base/api-cards/row-column.md +118 -0
  35. package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-react-to-arkui/references/arkui-knowledge-base/api-cards/stack.md +106 -0
  36. package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-react-to-arkui/references/arkui-knowledge-base/api-cards/swiper.md +117 -0
  37. package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-react-to-arkui/references/arkui-knowledge-base/api-cards/tabs.md +163 -0
  38. package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-react-to-arkui/references/arkui-knowledge-base/api-cards/text-input.md +147 -0
  39. package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-react-to-arkui/references/arkui-knowledge-base/api-cards/text.md +145 -0
  40. package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-react-to-arkui/references/arkui-knowledge-base/api-cards/waterflow.md +116 -0
  41. package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-react-to-arkui/references/arkui-knowledge-base/index.md +23 -0
  42. package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-react-to-arkui/references/arkui-knowledge-base/matching.md +127 -0
  43. package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-react-to-arkui/references/clarification-template.md +53 -0
  44. package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-repo-understand/INSTRUCTIONS.md +163 -0
  45. package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-repo-understand/references/architecture-patterns/api-architecture.md +17 -0
  46. package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-repo-understand/references/architecture-patterns/data-architecture.md +17 -0
  47. package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-repo-understand/references/architecture-patterns/logic-architecture.md +17 -0
  48. package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-repo-understand/references/architecture-patterns/ui-architecture.md +23 -0
  49. package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-repo-understand/references/methodology/behavior-audit.md +143 -0
  50. package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-repo-understand/references/methodology/diff-analysis.md +115 -0
  51. package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-repo-understand/references/methodology/dimension-identification.md +86 -0
  52. package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-repo-understand/references/methodology/output-format.md +347 -0
  53. package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-repo-understand/references/methodology/understanding-modes.md +214 -0
  54. package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-responsive-layout-generator/INSTRUCTIONS.md +86 -0
  55. package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-responsive-layout-generator/references/breakpoints.md +86 -0
  56. package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-responsive-layout-generator/references/chunks.md +48 -0
  57. package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-responsive-layout-generator/references/dsl-schema.md +151 -0
  58. package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-responsive-layout-generator/references/patterns.md +147 -0
  59. package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-responsive-layout-generator/references/rules.md +115 -0
  60. package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-solution-design/INSTRUCTIONS.md +572 -0
  61. package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-solution-design/assets/template-ui-page.md +293 -0
  62. package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-solution-design/references/animation-design.md +84 -0
  63. package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-ui-reconstruction-score/INSTRUCTIONS.md +195 -0
  64. package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-ui-reconstruction-score/references/analysis_workflow.md +119 -0
  65. package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-ui-reconstruction-score/references/scoring_schema.md +83 -0
  66. package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-ui-reconstruction-score/references/vlm_prompt.md +61 -0
  67. package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-ui-reconstruction-score/scripts/ui_score.py +691 -0
  68. package/dist/design2arkts-engine/resources/skill/references/cli-integration.md +94 -0
  69. package/dist/design2arkts-engine/resources/skill/references/design-doc-auto-recovery.md +91 -0
  70. package/dist/design2arkts-engine/resources/skill/references/figma/fast/stages/01-acquire-figma-react-source.md +96 -0
  71. package/dist/design2arkts-engine/resources/skill/references/figma/fast/stages/02-convert-react-to-arkui.md +92 -0
  72. package/dist/design2arkts-engine/resources/skill/references/figma/fast/stages/03-complete-interaction-logic.md +26 -0
  73. package/dist/design2arkts-engine/resources/skill/references/figma/fast/stages/04-quality-and-build.md +43 -0
  74. package/dist/design2arkts-engine/resources/skill/references/figma/fast/stages/05-summary.md +36 -0
  75. package/dist/design2arkts-engine/resources/skill/references/figma/full/stages/01-acquire-figma-react-source.md +161 -0
  76. package/dist/design2arkts-engine/resources/skill/references/figma/full/stages/02-convert-react-to-arkui.md +219 -0
  77. package/dist/design2arkts-engine/resources/skill/references/figma/full/stages/03-complete-interaction-logic.md +31 -0
  78. package/dist/design2arkts-engine/resources/skill/references/figma/full/stages/04-quality-and-build.md +28 -0
  79. package/dist/design2arkts-engine/resources/skill/references/figma/full/stages/05-visual-calibration.md +190 -0
  80. package/dist/design2arkts-engine/resources/skill/references/figma/full/stages/06-summary.md +29 -0
  81. package/dist/design2arkts-engine/resources/skill/references/figma/stage-catalog-fast.json +40 -0
  82. package/dist/design2arkts-engine/resources/skill/references/figma/stage-catalog-full.json +47 -0
  83. package/dist/design2arkts-engine/resources/skill/references/host-vision.md +56 -0
  84. package/dist/design2arkts-engine/resources/skill/references/mcp-dependency.md +62 -0
  85. package/dist/design2arkts-engine/resources/skill/references/page-revisions.md +42 -0
  86. package/dist/design2arkts-engine/resources/skill/references/pixso/fast/stages/01-acquire-pixso-dsl.md +287 -0
  87. package/dist/design2arkts-engine/resources/skill/references/pixso/fast/stages/02-generate-skeleton-and-assets.md +245 -0
  88. package/dist/design2arkts-engine/resources/skill/references/pixso/fast/stages/03-understand-repository.md +133 -0
  89. package/dist/design2arkts-engine/resources/skill/references/pixso/fast/stages/05-design-component-tree.md +222 -0
  90. package/dist/design2arkts-engine/resources/skill/references/pixso/fast/stages/06-implement-static-layout.md +143 -0
  91. package/dist/design2arkts-engine/resources/skill/references/pixso/fast/stages/07-complete-interaction-logic.md +131 -0
  92. package/dist/design2arkts-engine/resources/skill/references/pixso/fast/stages/08-quality-build-and-audits.md +343 -0
  93. package/dist/design2arkts-engine/resources/skill/references/pixso/fast/stages/09-summary.md +103 -0
  94. package/dist/design2arkts-engine/resources/skill/references/pixso/full/stages/01-acquire-pixso-dsl.md +287 -0
  95. package/dist/design2arkts-engine/resources/skill/references/pixso/full/stages/02-generate-skeleton-and-assets.md +245 -0
  96. package/dist/design2arkts-engine/resources/skill/references/pixso/full/stages/03-understand-repository.md +133 -0
  97. package/dist/design2arkts-engine/resources/skill/references/pixso/full/stages/05-design-and-confirm-component-tree.md +282 -0
  98. package/dist/design2arkts-engine/resources/skill/references/pixso/full/stages/06-implement-static-layout.md +143 -0
  99. package/dist/design2arkts-engine/resources/skill/references/pixso/full/stages/07-complete-interaction-logic.md +131 -0
  100. package/dist/design2arkts-engine/resources/skill/references/pixso/full/stages/08-quality-build-and-audits.md +343 -0
  101. package/dist/design2arkts-engine/resources/skill/references/pixso/full/stages/09-visual-calibration.md +190 -0
  102. package/dist/design2arkts-engine/resources/skill/references/pixso/full/stages/10-summary.md +105 -0
  103. package/dist/design2arkts-engine/resources/skill/references/pixso/stage-catalog-fast.json +58 -0
  104. package/dist/design2arkts-engine/resources/skill/references/pixso/stage-catalog-full.json +64 -0
  105. package/dist/design2arkts-engine/resources/skill/references/requirement-clarification.md +131 -0
  106. package/dist/design2arkts-engine/resources/skill/references/resource-revisions.md +13 -0
  107. package/dist/design2arkts-engine/resources/skill/references/runtime-contract.md +435 -0
  108. package/dist/design2arkts-engine/resources/skill/references/score-engine.json +5 -0
  109. package/dist/design2arkts-engine/resources/skill/references/source-tools.md +17 -0
  110. package/dist/design2arkts-engine/resources/skill/references/standalone-capabilities.md +63 -0
  111. package/dist/design2arkts-engine/resources/skill/references/workflow-origin.json +96 -0
  112. package/dist/design2arkts-engine/resources/skill/scripts/file-lock.mjs +131 -0
  113. package/dist/design2arkts-engine/resources/skill/scripts/workflow.mjs +3672 -0
  114. package/dist/design2arkts-engine/runner.mjs +44 -0
  115. package/dist/internal/plugin-hook-runner.js +1 -0
  116. package/dist/internal/telemetry-upload-background.js +44 -7
  117. package/package.json +22 -10
  118. package/skills/deveco-cli/SKILL.md +201 -34
  119. package/skills/hmos-arkui-develop-skill/SKILL.md +77 -0
  120. package/skills/hmos-arkui-develop-skill/references/quick-apis/01-layout.md +634 -0
  121. package/skills/hmos-arkui-develop-skill/references/quick-apis/02-basic-components.md +649 -0
  122. package/skills/hmos-arkui-develop-skill/references/quick-apis/03-data-display.md +81 -0
  123. package/skills/hmos-arkui-develop-skill/references/quick-apis/04-selectors.md +109 -0
  124. package/skills/hmos-arkui-develop-skill/references/quick-apis/05-media.md +90 -0
  125. package/skills/hmos-arkui-develop-skill/references/quick-apis/06-advanced.md +32 -0
  126. package/skills/hmos-arkui-develop-skill/references/quick-apis/07-security.md +30 -0
  127. package/skills/hmos-arkui-develop-skill/references/quick-apis/08-state-decorators.md +120 -0
  128. package/skills/hmos-arkui-develop-skill/references/quick-apis/09-animation.md +118 -0
  129. package/skills/hmos-arkui-develop-skill/references/quick-apis/10-gesture.md +89 -0
  130. package/skills/hmos-arkui-develop-skill/references/quick-apis/11-dialog-menu.md +152 -0
  131. package/skills/hmos-arkui-develop-skill/references/quick-apis/12-navigation.md +127 -0
  132. package/skills/hmos-arkui-develop-skill/references/quick-apis/13-rendering.md +52 -0
  133. package/skills/hmos-arkui-develop-skill/references/quick-apis/14-extension.md +22 -0
  134. package/skills/hmos-arkui-develop-skill/references/quick-apis/15-theme-style.md +10 -0
  135. package/skills/hmos-arkui-develop-skill/references/quick-apis/16-enums.md +128 -0
  136. package/skills/hmos-arkui-develop-skill/references/quick-apis/17-resources.md +401 -0
  137. package/skills/hmos-arkui-develop-skill/references/quick-apis/18-error-code.md +24 -0
  138. package/skills/hmos-arkui-develop-skill/references/quick-apis/_index.md +76 -0
  139. package/skills/hmos-arkui-develop-skill/references/quick-rules/00-arkts-syntax.md +229 -0
  140. package/skills/hmos-arkui-develop-skill/references/quick-rules/01-import.md +116 -0
  141. package/skills/hmos-arkui-develop-skill/references/quick-rules/02-uicontext.md +56 -0
  142. package/skills/hmos-arkui-develop-skill/references/quick-rules/03-component.md +105 -0
  143. package/skills/hmos-arkui-develop-skill/references/quick-rules/04-build.md +41 -0
  144. package/skills/hmos-arkui-develop-skill/references/quick-rules/05-state.md +300 -0
  145. package/skills/hmos-arkui-develop-skill/references/quick-rules/06-rendering.md +67 -0
  146. package/skills/hmos-arkui-develop-skill/references/quick-rules/07-attribute-params.md +219 -0
  147. package/skills/hmos-arkui-develop-skill/references/quick-rules/08-navigation.md +102 -0
  148. package/skills/hmos-arkui-develop-skill/references/quick-rules/09-dialog.md +72 -0
  149. package/skills/hmos-arkui-develop-skill/references/quick-rules/10-style.md +90 -0
  150. package/skills/hmos-arkui-develop-skill/references/quick-rules/11-extension.md +54 -0
  151. package/skills/hmos-arkui-develop-skill/references/quick-rules/12-layout.md +69 -0
  152. package/skills/hmos-arkui-develop-skill/references/quick-rules/13-performance.md +27 -0
  153. package/skills/hmos-arkui-develop-skill/references/quick-rules/14-deprecated.md +28 -0
  154. package/skills/hmos-arkui-develop-skill/references/quick-rules/_index.md +79 -0
  155. package/skills/hmos-arkui-develop-skill/references/style-guide.md +491 -0
  156. package/skills/hmos-arkui-develop-skill/test-cases/code_gen_cases.json +292 -0
  157. package/skills/hmos-dfx-analyzer/SKILL.md +683 -0
  158. package/skills/hmos-dfx-analyzer/changelog/CHANGELOG.md +17 -0
  159. package/skills/hmos-dfx-analyzer/evals/evals.json +119 -0
  160. package/skills/hmos-dfx-analyzer/references/appfreeze/analyzer.md +471 -0
  161. package/skills/hmos-dfx-analyzer/references/appfreeze/references/fault-mode-library.md +94 -0
  162. package/skills/hmos-dfx-analyzer/references/appfreeze/references/ffrt-freeze-analysis.md +132 -0
  163. package/skills/hmos-dfx-analyzer/references/appfreeze/references/libuv-freeze-analysis.md +116 -0
  164. package/skills/hmos-dfx-analyzer/references/appfreeze/scripts/freeze/__init__.py +40 -0
  165. package/skills/hmos-dfx-analyzer/references/appfreeze/scripts/freeze/binder.py +343 -0
  166. package/skills/hmos-dfx-analyzer/references/appfreeze/scripts/freeze/collector.py +84 -0
  167. package/skills/hmos-dfx-analyzer/references/appfreeze/scripts/freeze/common.py +132 -0
  168. package/skills/hmos-dfx-analyzer/references/appfreeze/scripts/freeze/faultlog.py +212 -0
  169. package/skills/hmos-dfx-analyzer/references/appfreeze/scripts/freeze/main.py +81 -0
  170. package/skills/hmos-dfx-analyzer/references/appfreeze/scripts/freeze/report.py +675 -0
  171. package/skills/hmos-dfx-analyzer/references/appfreeze/scripts/freeze/sections.py +377 -0
  172. package/skills/hmos-dfx-analyzer/references/appfreeze/scripts/freeze/stack.py +165 -0
  173. package/skills/hmos-dfx-analyzer/references/appfreeze/scripts/llvm_addr2line.py +123 -0
  174. package/skills/hmos-dfx-analyzer/references/appfreeze/scripts/match_so.py +120 -0
  175. package/skills/hmos-dfx-analyzer/references/appfreeze/scripts/sample_stack_analyzer.py +209 -0
  176. package/skills/hmos-dfx-analyzer/references/cppcrash/analyzer.md +470 -0
  177. package/skills/hmos-dfx-analyzer/references/cppcrash/references/arkdata.md +325 -0
  178. package/skills/hmos-dfx-analyzer/references/cppcrash/references/arkui.md +266 -0
  179. package/skills/hmos-dfx-analyzer/references/cppcrash/references/arkweb.md +144 -0
  180. package/skills/hmos-dfx-analyzer/references/cppcrash/references/fault_mode.md +178 -0
  181. package/skills/hmos-dfx-analyzer/references/cppcrash/references/gwp_asan.md +300 -0
  182. package/skills/hmos-dfx-analyzer/references/cppcrash/references/jsruntime.md +339 -0
  183. package/skills/hmos-dfx-analyzer/references/cppcrash/references/jsvm.md +203 -0
  184. package/skills/hmos-dfx-analyzer/references/cppcrash/references/libuv.md +166 -0
  185. package/skills/hmos-dfx-analyzer/references/cppcrash/references/memory_corruption.md +348 -0
  186. package/skills/hmos-dfx-analyzer/references/cppcrash/references/memory_corruption_second_scene.md +74 -0
  187. package/skills/hmos-dfx-analyzer/references/cppcrash/references/multithreading.md +284 -0
  188. package/skills/hmos-dfx-analyzer/references/cppcrash/references/render_service.md +300 -0
  189. package/skills/hmos-dfx-analyzer/references/cppcrash/references/rosen_text.md +41 -0
  190. package/skills/hmos-dfx-analyzer/references/cppcrash/scripts/__init__.py +36 -0
  191. package/skills/hmos-dfx-analyzer/references/cppcrash/scripts/collector.py +93 -0
  192. package/skills/hmos-dfx-analyzer/references/cppcrash/scripts/common.py +68 -0
  193. package/skills/hmos-dfx-analyzer/references/cppcrash/scripts/crash_log.py +275 -0
  194. package/skills/hmos-dfx-analyzer/references/cppcrash/scripts/extract_hilog.py +69 -0
  195. package/skills/hmos-dfx-analyzer/references/cppcrash/scripts/hints.py +251 -0
  196. package/skills/hmos-dfx-analyzer/references/cppcrash/scripts/main.py +82 -0
  197. package/skills/hmos-dfx-analyzer/references/cppcrash/scripts/match_so.py +120 -0
  198. package/skills/hmos-dfx-analyzer/references/cppcrash/scripts/ohos_llvm_tools.py +279 -0
  199. package/skills/hmos-dfx-analyzer/references/cppcrash/scripts/report.py +226 -0
  200. package/skills/hmos-dfx-analyzer/references/jscrash/analyzer.md +174 -0
  201. package/skills/hmos-dfx-analyzer/references/jscrash/references/fault-mode-library.md +107 -0
  202. package/skills/hmos-dfx-analyzer/references/jscrash/references/jscrash-patterns.md +92 -0
  203. package/skills/hmos-dfx-analyzer/references/jscrash/references/sourcemap-symbolication.md +67 -0
  204. package/skills/hmos-dfx-analyzer/references/jscrash/scripts/hstack/bin/hstack +25 -0
  205. package/skills/hmos-dfx-analyzer/references/jscrash/scripts/hstack/bin/hstack.bat +26 -0
  206. package/skills/hmos-dfx-analyzer/references/jscrash/scripts/hstack/lib/index.js +2 -0
  207. package/skills/hmos-dfx-analyzer/references/jscrash/scripts/hstack/lib/index.js.LICENSE.txt +1 -0
  208. package/skills/hmos-dfx-analyzer/references/jscrash/scripts/hstack/lib/mappings.wasm +0 -0
  209. package/skills/hmos-dfx-analyzer/references/white-screen/analyzer.md +129 -0
  210. package/skills/hmos-dfx-analyzer/scripts/collect/collect-hilog.mjs +120 -0
  211. package/skills/hmos-dfx-analyzer/scripts/collect/jscrash-report.mjs +138 -0
  212. package/skills/hmos-dfx-analyzer/scripts/collect/parse-jscrash-log.mjs +126 -0
  213. package/skills/hmos-dfx-analyzer/scripts/collect/shared/deveco-cli.mjs +79 -0
  214. package/skills/hmos-dfx-analyzer/scripts/collect/shared/jscrash-parse.mjs +389 -0
  215. package/skills/hmos-dfx-analyzer/scripts/collect/shared/utils.mjs +27 -0
  216. package/skills/hmos-dfx-analyzer/scripts/export_report.py +373 -0
  217. package/skills/hmos-dfx-analyzer/scripts/identify_fault_log.py +500 -0
  218. package/skills/hmos-dfx-analyzer/scripts/report_template.html +103 -0
  219. package/skills/hmos-dfx-analyzer/test-cases/functional.md +112 -0
  220. package/skills/hmos-dfx-analyzer/test-cases/smoke.md +86 -0
  221. package/skills/hmos-dfx-analyzer/test-cases/test-prompts.md +35 -0
  222. package/skills/hmos-dfx-analyzer/test-cases/trigger.md +121 -0
  223. package/skills/index.json +17 -0
  224. package/src/resources/arkts-check.cjs +196 -5
@@ -0,0 +1,2 @@
1
+ /*! For license information please see index.js.LICENSE.txt */
2
+ (()=>{var e={16(e){"use strict";e.exports=require("url")},23(e){"use strict";e.exports=require("util")},41(e,t,n){const r=n(92),i=n(251),o=n(735).C,s=n(302).P;class u{constructor(e){e||(e={}),this._file=i.getArg(e,"file",null),this._sourceRoot=i.getArg(e,"sourceRoot",null),this._skipValidation=i.getArg(e,"skipValidation",!1),this._sources=new o,this._names=new o,this._mappings=new s,this._sourcesContents=null}static fromSourceMap(e){const t=e.sourceRoot,n=new u({file:e.file,sourceRoot:t});return e.eachMapping(function(e){const r={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(r.source=e.source,null!=t&&(r.source=i.relative(t,r.source)),r.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(r.name=e.name)),n.addMapping(r)}),e.sources.forEach(function(r){let o=r;null!=t&&(o=i.relative(t,r)),n._sources.has(o)||n._sources.add(o);const s=e.sourceContentFor(r);null!=s&&n.setSourceContent(r,s)}),n}addMapping(e){const t=i.getArg(e,"generated"),n=i.getArg(e,"original",null);let r=i.getArg(e,"source",null),o=i.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,n,r,o),null!=r&&(r=String(r),this._sources.has(r)||this._sources.add(r)),null!=o&&(o=String(o),this._names.has(o)||this._names.add(o)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:n&&n.line,originalColumn:n&&n.column,source:r,name:o})}setSourceContent(e,t){let n=e;null!=this._sourceRoot&&(n=i.relative(this._sourceRoot,n)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[i.toSetString(n)]=t):this._sourcesContents&&(delete this._sourcesContents[i.toSetString(n)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))}applySourceMap(e,t,n){let r=t;if(null==t){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');r=e.file}const s=this._sourceRoot;null!=s&&(r=i.relative(s,r));const u=this._mappings.toArray().length>0?new o:this._sources,a=new o;this._mappings.unsortedForEach(function(t){if(t.source===r&&null!=t.originalLine){const r=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=r.source&&(t.source=r.source,null!=n&&(t.source=i.join(n,t.source)),null!=s&&(t.source=i.relative(s,t.source)),t.originalLine=r.line,t.originalColumn=r.column,null!=r.name&&(t.name=r.name))}const o=t.source;null==o||u.has(o)||u.add(o);const l=t.name;null==l||a.has(l)||a.add(l)},this),this._sources=u,this._names=a,e.sources.forEach(function(t){const r=e.sourceContentFor(t);null!=r&&(null!=n&&(t=i.join(n,t)),null!=s&&(t=i.relative(s,t)),this.setSourceContent(t,r))},this)}_validateMapping(e,t,n,r){if(t&&"number"!=typeof t.line&&"number"!=typeof t.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0&&!t&&!n&&!r);else if(!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&n))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:n,original:t,name:r}))}_serializeMappings(){let e,t,n,o,s=0,u=1,a=0,l=0,c=0,h=0,f="";const D=this._mappings.toArray();for(let d=0,p=D.length;d<p;d++){if(t=D[d],e="",t.generatedLine!==u)for(s=0;t.generatedLine!==u;)e+=";",u++;else if(d>0){if(!i.compareByGeneratedPositionsInflated(t,D[d-1]))continue;e+=","}e+=r.encode(t.generatedColumn-s),s=t.generatedColumn,null!=t.source&&(o=this._sources.indexOf(t.source),e+=r.encode(o-h),h=o,e+=r.encode(t.originalLine-1-l),l=t.originalLine-1,e+=r.encode(t.originalColumn-a),a=t.originalColumn,null!=t.name&&(n=this._names.indexOf(t.name),e+=r.encode(n-c),c=n)),f+=e}return f}_generateSourcesContent(e,t){return e.map(function(e){if(!this._sourcesContents)return null;null!=t&&(e=i.relative(t,e));const n=i.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,n)?this._sourcesContents[n]:null},this)}toJSON(){const e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e}toString(){return JSON.stringify(this.toJSON())}}u.prototype._version=3,t.SourceMapGenerator=u},43(e,t,n){"use strict";const r=n(513),i=n(231),o=n(83),s=new Set(["","›"]),u="]8;;",a=e=>`${s.values().next().value}[${e}m`,l=e=>`${s.values().next().value}${u}${e}`,c=(e,t,n)=>{const o=[...t];let a=!1,l=!1,c=r(i(e[e.length-1]));for(const[t,i]of o.entries()){const h=r(i);c+h<=n?e[e.length-1]+=i:(e.push(i),c=0),s.has(i)&&(a=!0,l=o.slice(t+1).join("").startsWith(u)),a?l?""===i&&(a=!1,l=!1):"m"===i&&(a=!1):(c+=h,c===n&&t<o.length-1&&(e.push(""),c=0))}!c&&e[e.length-1].length>0&&e.length>1&&(e[e.length-2]+=e.pop())},h=e=>{const t=e.split(" ");let n=t.length;for(;n>0&&!(r(t[n-1])>0);)n--;return n===t.length?e:t.slice(0,n).join(" ")+t.slice(n).join("")};e.exports=(e,t,n)=>String(e).normalize().replace(/\r\n/g,"\n").split("\n").map(e=>((e,t,n={})=>{if(!1!==n.trim&&""===e.trim())return"";let i,f,D="";const d=(e=>e.split(" ").map(e=>r(e)))(e);let p=[""];for(const[i,o]of e.split(" ").entries()){!1!==n.trim&&(p[p.length-1]=p[p.length-1].trimStart());let e=r(p[p.length-1]);if(0!==i&&(e>=t&&(!1===n.wordWrap||!1===n.trim)&&(p.push(""),e=0),(e>0||!1===n.trim)&&(p[p.length-1]+=" ",e++)),n.hard&&d[i]>t){const n=t-e,r=1+Math.floor((d[i]-n-1)/t);Math.floor((d[i]-1)/t)<r&&p.push(""),c(p,o,t);continue}if(e+d[i]>t&&e>0&&d[i]>0){if(!1===n.wordWrap&&e<t){c(p,o,t);continue}p.push("")}e+d[i]>t&&!1===n.wordWrap?c(p,o,t):p[p.length-1]+=o}!1!==n.trim&&(p=p.map(h));const g=[...p.join("\n")];for(const[e,t]of g.entries()){if(D+=t,s.has(t)){const{groups:t}=new RegExp(`(?:\\[(?<code>\\d+)m|\\${u}(?<uri>.*))`).exec(g.slice(e).join(""))||{groups:{}};if(void 0!==t.code){const e=Number.parseFloat(t.code);i=39===e?void 0:e}else void 0!==t.uri&&(f=0===t.uri.length?void 0:t.uri)}const n=o.codes.get(Number(i));"\n"===g[e+1]?(f&&(D+=l("")),i&&n&&(D+=a(n))):"\n"===t&&(i&&n&&(D+=a(i)),f&&(D+=l(f)))}return D})(e,t,n)).join("\n")},83(e,t,n){"use strict";e=n.nmd(e);const r=(e,t)=>(...n)=>`[${e(...n)+t}m`,i=(e,t)=>(...n)=>{const r=e(...n);return`[${38+t};5;${r}m`},o=(e,t)=>(...n)=>{const r=e(...n);return`[${38+t};2;${r[0]};${r[1]};${r[2]}m`},s=e=>e,u=(e,t,n)=>[e,t,n],a=(e,t,n)=>{Object.defineProperty(e,t,{get:()=>{const r=n();return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0}),r},enumerable:!0,configurable:!0})};let l;const c=(e,t,r,i)=>{void 0===l&&(l=n(734));const o=i?10:0,s={};for(const[n,i]of Object.entries(l)){const u="ansi16"===n?"ansi":n;n===t?s[u]=e(r,o):"object"==typeof i&&(s[u]=e(i[t],o))}return s};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){const e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.gray=t.color.blackBright,t.bgColor.bgGray=t.bgColor.bgBlackBright,t.color.grey=t.color.blackBright,t.bgColor.bgGrey=t.bgColor.bgBlackBright;for(const[n,r]of Object.entries(t)){for(const[n,i]of Object.entries(r))t[n]={open:`[${i[0]}m`,close:`[${i[1]}m`},r[n]=t[n],e.set(i[0],i[1]);Object.defineProperty(t,n,{value:r,enumerable:!1})}return Object.defineProperty(t,"codes",{value:e,enumerable:!1}),t.color.close="",t.bgColor.close="",a(t.color,"ansi",()=>c(r,"ansi16",s,!1)),a(t.color,"ansi256",()=>c(i,"ansi256",s,!1)),a(t.color,"ansi16m",()=>c(o,"rgb",u,!1)),a(t.bgColor,"ansi",()=>c(r,"ansi16",s,!0)),a(t.bgColor,"ansi256",()=>c(i,"ansi256",s,!0)),a(t.bgColor,"ansi16m",()=>c(o,"rgb",u,!0)),t}})},92(e,t,n){const r=n(364);t.encode=function(e){let t,n="",i=function(e){return e<0?1+(-e<<1):0+(e<<1)}(e);do{t=31&i,i>>>=5,i>0&&(t|=32),n+=r.encode(t)}while(i>0);return n}},108(e){"use strict";const t=e=>!Number.isNaN(e)&&e>=4352&&(e<=4447||9001===e||9002===e||11904<=e&&e<=12871&&12351!==e||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141);e.exports=t,e.exports.default=t},156(e){"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},163(e,t){function n(e,r,i,o,s,u){const a=Math.floor((r-e)/2)+e,l=s(i,o[a],!0);return 0===l?a:l>0?r-a>1?n(a,r,i,o,s,u):u===t.LEAST_UPPER_BOUND?r<o.length?r:-1:a:a-e>1?n(e,a,i,o,s,u):u==t.LEAST_UPPER_BOUND?a:e<0?-1:e}t.GREATEST_LOWER_BOUND=1,t.LEAST_UPPER_BOUND=2,t.search=function(e,r,i,o){if(0===r.length)return-1;let s=n(-1,r.length,e,r,i,o||t.GREATEST_LOWER_BOUND);if(s<0)return-1;for(;s-1>=0&&0===i(r[s],r[s-1],!0);)--s;return s}},170(e,t,n){"use strict";const r={right:function(e,t){e=e.trim();const n=s.stringWidth(e);return n<t?" ".repeat(t-n)+e:e},center:function(e,t){e=e.trim();const n=s.stringWidth(e);return n>=t?e:" ".repeat(t-n>>1)+e}};class i{constructor(e){var t;this.width=e.width,this.wrap=null===(t=e.wrap)||void 0===t||t,this.rows=[]}span(...e){this.div(...e).span=!0}resetOutput(){this.rows=[]}div(...e){if(0===e.length&&this.div(""),this.wrap&&this.shouldApplyLayoutDSL(...e)&&"string"==typeof e[0])return this.applyLayoutDSL(e[0]);const t=e.map(e=>"string"==typeof e?this.colFromString(e):e);return this.rows.push(t),t}shouldApplyLayoutDSL(...e){return 1===e.length&&"string"==typeof e[0]&&/[\t\n]/.test(e[0])}applyLayoutDSL(e){const t=e.split("\n").map(e=>e.split("\t"));let n=0;return t.forEach(e=>{e.length>1&&s.stringWidth(e[0])>n&&(n=Math.min(Math.floor(.5*this.width),s.stringWidth(e[0])))}),t.forEach(e=>{this.div(...e.map((t,r)=>({text:t.trim(),padding:this.measurePadding(t),width:0===r&&e.length>1?n:void 0})))}),this.rows[this.rows.length-1]}colFromString(e){return{text:e,padding:this.measurePadding(e)}}measurePadding(e){const t=s.stripAnsi(e);return[0,t.match(/\s*$/)[0].length,0,t.match(/^\s*/)[0].length]}toString(){const e=[];return this.rows.forEach(t=>{this.rowToString(t,e)}),e.filter(e=>!e.hidden).map(e=>e.text).join("\n")}rowToString(e,t){return this.rasterize(e).forEach((n,i)=>{let u="";n.forEach((n,a)=>{const{width:l}=e[a],c=this.negatePadding(e[a]);let h=n;c>s.stringWidth(n)&&(h+=" ".repeat(c-s.stringWidth(n))),e[a].align&&"left"!==e[a].align&&this.wrap&&(h=(0,r[e[a].align])(h,c),s.stringWidth(h)<c&&(h+=" ".repeat((l||0)-s.stringWidth(h)-1)));const f=e[a].padding||[0,0,0,0];f[3]&&(u+=" ".repeat(f[3])),u+=o(e[a],h,"| "),u+=h,u+=o(e[a],h," |"),f[1]&&(u+=" ".repeat(f[1])),0===i&&t.length>0&&(u=this.renderInline(u,t[t.length-1]))}),t.push({text:u.replace(/ +$/,""),span:e.span})}),t}renderInline(e,t){const n=e.match(/^ */),r=n?n[0].length:0,i=t.text,o=s.stringWidth(i.trimRight());return t.span?this.wrap?r<o?e:(t.hidden=!0,i.trimRight()+" ".repeat(r-o)+e.trimLeft()):(t.hidden=!0,i+e):e}rasterize(e){const t=[],n=this.columnWidths(e);let r;return e.forEach((e,i)=>{e.width=n[i],r=this.wrap?s.wrap(e.text,this.negatePadding(e),{hard:!0}).split("\n"):e.text.split("\n"),e.border&&(r.unshift("."+"-".repeat(this.negatePadding(e)+2)+"."),r.push("'"+"-".repeat(this.negatePadding(e)+2)+"'")),e.padding&&(r.unshift(...new Array(e.padding[0]||0).fill("")),r.push(...new Array(e.padding[2]||0).fill(""))),r.forEach((e,n)=>{t[n]||t.push([]);const r=t[n];for(let e=0;e<i;e++)void 0===r[e]&&r.push("");r.push(e)})}),t}negatePadding(e){let t=e.width||0;return e.padding&&(t-=(e.padding[3]||0)+(e.padding[1]||0)),e.border&&(t-=4),t}columnWidths(e){if(!this.wrap)return e.map(e=>e.width||s.stringWidth(e.text));let t=e.length,n=this.width;const r=e.map(e=>{if(e.width)return t--,n-=e.width,e.width}),i=t?Math.floor(n/t):0;return r.map((t,n)=>void 0===t?Math.max(i,function(e){const t=e.padding||[],n=1+(t[3]||0)+(t[1]||0);return e.border?n+4:n}(e[n])):t)}}function o(e,t,n){return e.border?/[.']-+[.']/.test(t)?"":0!==t.trim().length?n:" ":""}let s;const u=n(513),a=n(231),l=n(43);e.exports=function(e){return function(e,t){return s=t,new i({width:(null==e?void 0:e.width)||("object"==typeof process&&process.stdout&&process.stdout.columns?process.stdout.columns:80),wrap:null==e?void 0:e.wrap})}(e,{stringWidth:u,stripAnsi:a,wrap:l})}},231(e,t,n){"use strict";const r=n(880);e.exports=e=>"string"==typeof e?e.replace(r(),""):e},251(e,t,n){const r=n(626);t.getArg=function(e,t,n){if(t in e)return e[t];if(3===arguments.length)return n;throw new Error('"'+t+'" is a required argument.')};const i=!("__proto__"in Object.create(null));function o(e){return e}function s(e){if(!e)return!1;const t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(let n=t-10;n>=0;n--)if(36!==e.charCodeAt(n))return!1;return!0}function u(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}t.toSetString=i?o:function(e){return s(e)?"$"+e:e},t.fromSetString=i?o:function(e){return s(e)?e.slice(1):e},t.compareByGeneratedPositionsInflated=function(e,t){let n=e.generatedLine-t.generatedLine;return 0!==n?n:(n=e.generatedColumn-t.generatedColumn,0!==n?n:(n=u(e.source,t.source),0!==n?n:(n=e.originalLine-t.originalLine,0!==n?n:(n=e.originalColumn-t.originalColumn,0!==n?n:u(e.name,t.name)))))},t.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))};const a="http://host";function l(e){return t=>{const n=D(t),i=h(t),o=new r(t,i);e(o);const s=o.toString();return"absolute"===n?s:"scheme-relative"===n?s.slice(5):"path-absolute"===n?s.slice(11):d(i,s)}}function c(e,t){return new r(e,t).toString()}function h(e){const t=e.split("..").length-1,n=function(e,t){let n=0;for(;;){const e="p"+n++;if(-1===t.indexOf(e))return e}}(0,e);let r=`${a}/`;for(let e=0;e<t;e++)r+=`${n}/`;return r}const f=/^[A-Za-z0-9\+\-\.]+:/;function D(e){return"/"===e[0]?"/"===e[1]?"scheme-relative":"path-absolute":f.test(e)?"absolute":"path-relative"}function d(e,t){"string"==typeof e&&(e=new r(e)),"string"==typeof t&&(t=new r(t));const n=t.pathname.split("/"),i=e.pathname.split("/");for(i.length>0&&!i[i.length-1]&&i.pop();n.length>0&&i.length>0&&n[0]===i[0];)n.shift(),i.shift();return i.map(()=>"..").concat(n).join("/")+t.search+t.hash}const p=l(e=>{e.pathname=e.pathname.replace(/\/?$/,"/")}),g=l(e=>{e.href=new r(".",e.toString()).toString()}),m=l(e=>{});function y(e,t){const n=D(t),r=D(e);if(e=p(e),"absolute"===n)return c(t,void 0);if("absolute"===r)return c(t,e);if("scheme-relative"===n)return m(t);if("scheme-relative"===r)return c(t,c(e,a)).slice(5);if("path-absolute"===n)return m(t);if("path-absolute"===r)return c(t,c(e,a)).slice(11);const i=h(t+e);return d(i,c(t,c(e,i)))}t.normalize=m,t.join=y,t.relative=function(e,t){const n=function(e,t){if(D(e)!==D(t))return null;const n=h(e+t),i=new r(e,n),o=new r(t,n);try{new r("",o.toString())}catch(e){return null}return o.protocol!==i.protocol||o.user!==i.user||o.password!==i.password||o.hostname!==i.hostname||o.port!==i.port?null:d(i,o)}(e,t);return"string"==typeof n?n:m(t)},t.computeSourceURL=function(e,t,n){e&&"path-absolute"===D(t)&&(t=t.replace(/^\//,""));let r=m(t||"");return e&&(r=y(e,r)),n&&(r=y(g(n),r)),r}},302(e,t,n){const r=n(251);t.P=class{constructor(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}unsortedForEach(e,t){this._array.forEach(e,t)}add(e){!function(e,t){const n=e.generatedLine,i=t.generatedLine,o=e.generatedColumn,s=t.generatedColumn;return i>n||i==n&&s>=o||r.compareByGeneratedPositionsInflated(e,t)<=0}(this._last,e)?(this._sorted=!1,this._array.push(e)):(this._last=e,this._array.push(e))}toArray(){return this._sorted||(this._array.sort(r.compareByGeneratedPositionsInflated),this._sorted=!0),this._array}}},317(e){"use strict";e.exports=require("child_process")},349(e){e.exports={splitNumber:function(e){for(var t="",n="",r=0,i=e.length,o=i-1;o>0;o--){if(":"===e.charAt(o)){if(1===++r)continue;i=o;break}0===r?n=e.charAt(o)+n:t=e.charAt(o)+t}return{name:e.substring(0,i),firstNumber:Number(t),secondNumber:Number(n)}}}},353(e,t,n){function r(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",s=n.toStringTag||"@@toStringTag";function u(n,r,o,s){var u=r&&r.prototype instanceof l?r:l,c=Object.create(u.prototype);return i(c,"_invoke",function(n,r,i){var o,s,u,l=0,c=i||[],h=!1,f={p:0,n:0,v:e,a:D,f:D.bind(e,4),d:function(t,n){return o=t,s=0,u=e,f.n=n,a}};function D(n,r){for(s=n,u=r,t=0;!h&&l&&!i&&t<c.length;t++){var i,o=c[t],D=f.p,d=o[2];n>3?(i=d===r)&&(u=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=D&&((i=n<2&&D<o[1])?(s=0,f.v=r,f.n=o[1]):D<d&&(i=n<3||o[0]>r||r>d)&&(o[4]=n,o[5]=r,f.n=d,s=0))}if(i||n>1)return a;throw h=!0,r}return function(i,c,d){if(l>1)throw TypeError("Generator is already running");for(h&&1===c&&D(c,d),s=c,u=d;(t=s<2?e:u)||!h;){o||(s?s<3?(s>1&&(f.n=-1),D(s,u)):f.n=u:f.v=u);try{if(l=2,o){if(s||(i="next"),t=o[i]){if(!(t=t.call(o,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,s<2&&(s=0)}else 1===s&&(t=o.return)&&t.call(o),s<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),s=1);o=e}else if((t=(h=f.n<0)?u:n.call(r,f))!==a)break}catch(t){o=e,s=1,u=t}finally{l=1}}return{value:t,done:h}}}(n,o,s),!0),c}var a={};function l(){}function c(){}function h(){}t=Object.getPrototypeOf;var f=[][o]?t(t([][o]())):(i(t={},o,function(){return this}),t),D=h.prototype=l.prototype=Object.create(f);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,i(e,s,"GeneratorFunction")),e.prototype=Object.create(D),e}return c.prototype=h,i(D,"constructor",h),i(h,"constructor",c),c.displayName="GeneratorFunction",i(h,s,"GeneratorFunction"),i(D),i(D,s,"Generator"),i(D,o,function(){return this}),i(D,"toString",function(){return"[object Generator]"}),(r=function(){return{w:u,m:d}})()}function i(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}i=function(e,t,n,r){function s(t,n){i(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(s("next",0),s("throw",1),s("return",2))},i(e,t,n,r)}function o(e,t,n,r,i,o,s){try{var u=e[o](s),a=u.value}catch(e){return void n(e)}u.done?t(a):Promise.resolve(a).then(r,i)}function s(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return u(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,o=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var a=n(928),l=n(317).execSync,c=n(857),h=n(842).END_OF_LINE,f=/#[0-9]+.*\/data.*\.so[^+]*/,D=/#[0-9]+.*\/data.*\.so\+.*\)/,d=".so";function p(e){if(e.length<2||e.length%2!=0)return"";for(var t=[],n=0;n<e.length;n+=2){var r;r=e[n].trim()+" at ("+e[n+1].trim()+")",t.push(r)}return t.join(c.EOL)}function g(){var e;return e=r().m(function e(t,n,i){var o,s,u;return r().w(function(e){for(;;)switch(e.n){case 0:if(n.endsWith(d)){e.n=1;break}return e.a(2);case 1:o=a.join(t,n),s=n.substring(0,n.indexOf(d)),(u=i.has(s)?i.get(s):[]).push(o),i.set(s,u);case 2:return e.a(2)}},e)}),g=function(){var t=this,n=arguments;return new Promise(function(r,i){var s=e.apply(t,n);function u(e){o(s,r,i,u,a,"next",e)}function a(e){o(s,r,i,u,a,"throw",e)}u(void 0)})},g.apply(this,arguments)}e.exports={processSoLibsMap:function(e,t,n){return g.apply(this,arguments)},processNativeCrashLine:function(e,t,n,r){if(0===e.length)return n;var i=function(e){var t=e.trim();return t.startsWith("#")&&t.includes(" ")?t.substring(t.indexOf("#"),t.indexOf(" ")):""}(n),o=n.substring(0,n.indexOf(n.trim()));if(0===i.length)return n;var u=function(e,t){var n=t.substring(0,t.indexOf(d)),r=n.substring(n.lastIndexOf("/")+1);return e.has(r)?e.get(r):[]}(t,n);if(0===u.length)return n;var a=r?function(e){return e.split("+")[1].split(")")[0].trim()}(n):function(e){var t=e.trim().split(" ");return t.length<4?"":t[2]}(n);if(0===a.length)return n;var f=function(e,t,n){var r,i=s(t);try{for(i.s();!(r=i.n()).done;){var o=r.value,u='"'.concat(e,"/").concat("llvm-addr2line",'" -Cfie "').concat(o,'" ').concat(n),a="";try{a=l(u,{encoding:"utf-8"}).trim()}catch(e){console.error("执行命令时出错:".concat(e.message))}if(0!==a.length){var c=p(a.split(h));if(0!==c.length)return c}}}catch(e){i.e(e)}finally{i.f()}return""}(e,u,a);return 0===f.length?n:function(e,t){var n,r=[],i=s(e.split(h));try{for(i.s();!(n=i.n()).done;){var o=n.value;r.push(t+o)}}catch(e){i.e(e)}finally{i.f()}return r.join(c.EOL)}("".concat(i," ").concat(f),o)},isNonASanNativeCrash:function(e){return f.test(e)},isASanNativeCrash:function(e){return D.test(e)}}},364(e,t){const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");t.encode=function(e){if(0<=e&&e<n.length)return n[e];throw new TypeError("Must be between 0 and 63: "+e)}},371(e){"use strict";e.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}},390(e,t,n){"use strict";var r=n(896),i=n(928).join,o=n(928).resolve,s=n(928).dirname,u={extensions:["js","json","coffee"],recurse:!0,rename:function(e){return e},visit:function(e){return e}};e.exports=function e(t,n,a){var l={};for(var c in n&&!a&&"string"!=typeof n&&(a=n,n=null),a=a||{},u)void 0===a[c]&&(a[c]=u[c]);return n=n?o(s(t.filename),n):s(t.filename),r.readdirSync(n).forEach(function(o){var s,u,c,h=i(n,o);r.statSync(h).isDirectory()&&a.recurse?(s=e(t,h,a),Object.keys(s).length&&(l[a.rename(o,h,o)]=s)):h!==t.filename&&function(e,t,n){return new RegExp("\\.("+n.extensions.join("|")+")$","i").test(t)&&!(n.include&&n.include instanceof RegExp&&!n.include.test(e))&&!(n.include&&"function"==typeof n.include&&!n.include(e,t))&&!(n.exclude&&n.exclude instanceof RegExp&&n.exclude.test(e))&&!(n.exclude&&"function"==typeof n.exclude&&n.exclude(e,t))}(h,o,a)&&(u=o.substring(0,o.lastIndexOf(".")),c=t.require(h),l[a.rename(u,h,o)]=a.visit(c,h,o)||c)}),l},e.exports.defaults=u},398(e,t,n){"use strict";var r=n(896),i=n(23),o=n(928);let s;class u{constructor(e){e=e||{},this.directory=e.directory||"./locales",this.updateFiles="boolean"!=typeof e.updateFiles||e.updateFiles,this.locale=e.locale||"en",this.fallbackToLanguage="boolean"!=typeof e.fallbackToLanguage||e.fallbackToLanguage,this.cache=Object.create(null),this.writeQueue=[]}__(...e){if("string"!=typeof arguments[0])return this._taggedLiteral(arguments[0],...arguments);const t=e.shift();let n=function(){};return"function"==typeof e[e.length-1]&&(n=e.pop()),n=n||function(){},this.cache[this.locale]||this._readLocaleFile(),!this.cache[this.locale][t]&&this.updateFiles?(this.cache[this.locale][t]=t,this._enqueueWrite({directory:this.directory,locale:this.locale,cb:n})):n(),s.format.apply(s.format,[this.cache[this.locale][t]||t].concat(e))}__n(){const e=Array.prototype.slice.call(arguments),t=e.shift(),n=e.shift(),r=e.shift();let i=function(){};"function"==typeof e[e.length-1]&&(i=e.pop()),this.cache[this.locale]||this._readLocaleFile();let o=1===r?t:n;this.cache[this.locale][t]&&(o=this.cache[this.locale][t][1===r?"one":"other"]),!this.cache[this.locale][t]&&this.updateFiles?(this.cache[this.locale][t]={one:t,other:n},this._enqueueWrite({directory:this.directory,locale:this.locale,cb:i})):i();const u=[o];return~o.indexOf("%d")&&u.push(r),s.format.apply(s.format,u.concat(e))}setLocale(e){this.locale=e}getLocale(){return this.locale}updateLocale(e){this.cache[this.locale]||this._readLocaleFile();for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(this.cache[this.locale][t]=e[t])}_taggedLiteral(e,...t){let n="";return e.forEach(function(e,r){const i=t[r+1];n+=e,void 0!==i&&(n+="%s")}),this.__.apply(this,[n].concat([].slice.call(t,1)))}_enqueueWrite(e){this.writeQueue.push(e),1===this.writeQueue.length&&this._processWriteQueue()}_processWriteQueue(){const e=this,t=this.writeQueue[0],n=t.directory,r=t.locale,i=t.cb,o=this._resolveLocaleFile(n,r),u=JSON.stringify(this.cache[r],null,2);s.fs.writeFile(o,u,"utf-8",function(t){e.writeQueue.shift(),e.writeQueue.length>0&&e._processWriteQueue(),i(t)})}_readLocaleFile(){let e={};const t=this._resolveLocaleFile(this.directory,this.locale);try{s.fs.readFileSync&&(e=JSON.parse(s.fs.readFileSync(t,"utf-8")))}catch(n){if(n instanceof SyntaxError&&(n.message="syntax error in "+t),"ENOENT"!==n.code)throw n;e={}}this.cache[this.locale]=e}_resolveLocaleFile(e,t){let n=s.resolve(e,"./",t+".json");if(this.fallbackToLanguage&&!this._fileExistsSync(n)&&~t.lastIndexOf("_")){const r=s.resolve(e,"./",t.split("_")[0]+".json");this._fileExistsSync(r)&&(n=r)}return n}_fileExistsSync(e){return s.exists(e)}}var a={fs:{readFileSync:r.readFileSync,writeFile:r.writeFile},format:i.format,resolve:o.resolve,exists:e=>{try{return r.statSync(e).isFile()}catch(e){return!1}}};e.exports=e=>function(e,t){s=t;const n=new u(e);return{__:n.__.bind(n),__n:n.__n.bind(n),setLocale:n.setLocale.bind(n),getLocale:n.getLocale.bind(n),updateLocale:n.updateLocale.bind(n),locale:n.locale}}(e,a)},421(e){function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=421,e.exports=t},427(e,t,n){function r(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",s=n.toStringTag||"@@toStringTag";function u(n,r,o,s){var u=r&&r.prototype instanceof l?r:l,c=Object.create(u.prototype);return i(c,"_invoke",function(n,r,i){var o,s,u,l=0,c=i||[],h=!1,f={p:0,n:0,v:e,a:D,f:D.bind(e,4),d:function(t,n){return o=t,s=0,u=e,f.n=n,a}};function D(n,r){for(s=n,u=r,t=0;!h&&l&&!i&&t<c.length;t++){var i,o=c[t],D=f.p,d=o[2];n>3?(i=d===r)&&(u=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=D&&((i=n<2&&D<o[1])?(s=0,f.v=r,f.n=o[1]):D<d&&(i=n<3||o[0]>r||r>d)&&(o[4]=n,o[5]=r,f.n=d,s=0))}if(i||n>1)return a;throw h=!0,r}return function(i,c,d){if(l>1)throw TypeError("Generator is already running");for(h&&1===c&&D(c,d),s=c,u=d;(t=s<2?e:u)||!h;){o||(s?s<3?(s>1&&(f.n=-1),D(s,u)):f.n=u:f.v=u);try{if(l=2,o){if(s||(i="next"),t=o[i]){if(!(t=t.call(o,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,s<2&&(s=0)}else 1===s&&(t=o.return)&&t.call(o),s<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),s=1);o=e}else if((t=(h=f.n<0)?u:n.call(r,f))!==a)break}catch(t){o=e,s=1,u=t}finally{l=1}}return{value:t,done:h}}}(n,o,s),!0),c}var a={};function l(){}function c(){}function h(){}t=Object.getPrototypeOf;var f=[][o]?t(t([][o]())):(i(t={},o,function(){return this}),t),D=h.prototype=l.prototype=Object.create(f);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,i(e,s,"GeneratorFunction")),e.prototype=Object.create(D),e}return c.prototype=h,i(D,"constructor",h),i(h,"constructor",c),c.displayName="GeneratorFunction",i(h,s,"GeneratorFunction"),i(D),i(D,s,"Generator"),i(D,o,function(){return this}),i(D,"toString",function(){return"[object Generator]"}),(r=function(){return{w:u,m:d}})()}function i(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}i=function(e,t,n,r){function s(t,n){i(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(s("next",0),s("throw",1),s("return",2))},i(e,t,n,r)}function o(e,t,n,r,i,o,s){try{var u=e[o](s),a=u.value}catch(e){return void n(e)}u.done?t(a):Promise.resolve(a).then(r,i)}function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,h(r.key),r)}}function c(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function h(e){var t=function(e){if("object"!=s(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==s(t)?t:t+""}var f=n(896),D=n(928),d=n(842).UTF8,p=n(349).splitNumber,g=/.+:[0-9]+:[0-9]+\s*$/,m=function(){return c(function e(t){a(this,e),this.methodObfMap=t},[{key:"getMethodName",value:function(e,t){if(!this.methodObfMap.has(e))return e;var n,r,i=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return u(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,o=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}(this.methodObfMap.get(e));try{for(i.s();!(r=i.n()).done;){var o=r.value;if(o.inRange(t)){if(void 0===n){n=o;continue}n.startLine<=o.startLine&&o.endLine<=n.endLine&&(n=o)}}}catch(e){i.e(e)}finally{i.f()}return void 0===n?e:n.name}}])}(),y=function(){return c(function e(t,n,r){a(this,e),this.name=t,this.startLine=n,this.endLine=r},[{key:"inRange",value:function(e){return this.startLine<=e&&e<=this.endLine}}])}();function b(){var e;return e=r().m(function e(t,n,i){var o,s,u,a,l,c;return r().w(function(e){for(;;)switch(e.p=e.n){case 0:if(e.p=0,n.endsWith(".txt")||n.endsWith(".json")){e.n=1;break}return e.a(2);case 1:for(a in o=D.join(t,n),s=f.readFileSync(o,d),u=JSON.parse(s))l=new Map,C(u[a].MemberMethodCache,l),C(u[a].IdentifierCache,l),i.set(a,new m(l));e.n=3;break;case 2:e.p=2,c=e.v,console.error("%s : %s",D.join(t,n),c.message);case 3:return e.a(2)}},e,null,[[0,2]])}),b=function(){var t=this,n=arguments;return new Promise(function(r,i){var s=e.apply(t,n);function u(e){o(s,r,i,u,a,"next",e)}function a(e){o(s,r,i,u,a,"throw",e)}u(void 0)})},b.apply(this,arguments)}function C(e,t){for(var n in e)if(g.test(n)){var r=p(n);if(r.name=r.name.split("#").pop(),t.has(e[n]))t.get(e[n]).push(new y(r.name,r.firstNumber,r.secondNumber));else{var i=[new y(r.name,r.firstNumber,r.secondNumber)];t.set(e[n],i)}}}e.exports={processNameObfuscation:function(e,t,n){return b.apply(this,arguments)}}},446(e,t,n){const r=n(251),i=n(163),o=n(735).C,s=(n(92),n(576)),u=n(991),a=Symbol("smcInternal");class l{constructor(e,t){return e==a?Promise.resolve(this):function(e,t){let n=e;"string"==typeof e&&(n=r.parseSourceMapInput(e));const i=null!=n.sections?new h(n,t):new c(n,t);return Promise.resolve(i)}(e,t)}static initialize(e){s.initialize(e["lib/mappings.wasm"])}static fromSourceMap(e,t){return function(e,t){return c.fromSourceMap(e,t)}(e,t)}static async with(e,t,n){const r=await new l(e,t);try{return await n(r)}finally{r.destroy()}}eachMapping(e,t,n){throw new Error("Subclasses must implement eachMapping")}allGeneratedPositionsFor(e){throw new Error("Subclasses must implement allGeneratedPositionsFor")}destroy(){throw new Error("Subclasses must implement destroy")}}l.prototype._version=3,l.GENERATED_ORDER=1,l.ORIGINAL_ORDER=2,l.GREATEST_LOWER_BOUND=1,l.LEAST_UPPER_BOUND=2,t.SourceMapConsumer=l;class c extends l{constructor(e,t){return super(a).then(n=>{let i=e;"string"==typeof e&&(i=r.parseSourceMapInput(e));const s=r.getArg(i,"version"),a=r.getArg(i,"sources").map(String),l=r.getArg(i,"names",[]),c=r.getArg(i,"sourceRoot",null),h=r.getArg(i,"sourcesContent",null),f=r.getArg(i,"mappings"),D=r.getArg(i,"file",null),d=r.getArg(i,"x_google_ignoreList",null);if(s!=n._version)throw new Error("Unsupported version: "+s);return n._sourceLookupCache=new Map,n._names=o.fromArray(l.map(String),!0),n._sources=o.fromArray(a,!0),n._absoluteSources=o.fromArray(n._sources.toArray().map(function(e){return r.computeSourceURL(c,e,t)}),!0),n.sourceRoot=c,n.sourcesContent=h,n._mappings=f,n._sourceMapURL=t,n.file=D,n.x_google_ignoreList=d,n._computedColumnSpans=!1,n._mappingsPtr=0,n._wasm=null,u().then(e=>(n._wasm=e,n))})}_findSourceIndex(e){const t=this._sourceLookupCache.get(e);if("number"==typeof t)return t;const n=r.computeSourceURL(null,e,this._sourceMapURL);if(this._absoluteSources.has(n)){const t=this._absoluteSources.indexOf(n);return this._sourceLookupCache.set(e,t),t}const i=r.computeSourceURL(this.sourceRoot,e,this._sourceMapURL);if(this._absoluteSources.has(i)){const t=this._absoluteSources.indexOf(i);return this._sourceLookupCache.set(e,t),t}return-1}static fromSourceMap(e,t){return new c(e.toString())}get sources(){return this._absoluteSources.toArray()}_getMappingsPtr(){return 0===this._mappingsPtr&&this._parseMappings(),this._mappingsPtr}_parseMappings(){const e=this._mappings,t=e.length,n=this._wasm.exports.allocate_mappings(t)>>>0,r=new Uint8Array(this._wasm.exports.memory.buffer,n,t);for(let n=0;n<t;n++)r[n]=e.charCodeAt(n);const i=this._wasm.exports.parse_mappings(n);if(!i){const e=this._wasm.exports.get_last_error();let t=`Error parsing mappings (code ${e}): `;switch(e){case 1:t+="the mappings contained a negative line, column, source index, or name index";break;case 2:t+="the mappings contained a number larger than 2**32";break;case 3:t+="reached EOF while in the middle of parsing a VLQ";break;case 4:t+="invalid base 64 character while parsing a VLQ";break;default:t+="unknown error code"}throw new Error(t)}this._mappingsPtr=i}eachMapping(e,t,n){const r=t||null,i=n||l.GENERATED_ORDER;this._wasm.withMappingCallback(t=>{null!==t.source&&(t.source=this._absoluteSources.at(t.source),null!==t.name&&(t.name=this._names.at(t.name))),this._computedColumnSpans&&null===t.lastGeneratedColumn&&(t.lastGeneratedColumn=1/0),e.call(r,t)},()=>{switch(i){case l.GENERATED_ORDER:this._wasm.exports.by_generated_location(this._getMappingsPtr());break;case l.ORIGINAL_ORDER:this._wasm.exports.by_original_location(this._getMappingsPtr());break;default:throw new Error("Unknown order of iteration.")}})}allGeneratedPositionsFor(e){let t=r.getArg(e,"source");const n=r.getArg(e,"line"),i=e.column||0;if(t=this._findSourceIndex(t),t<0)return[];if(n<1)throw new Error("Line numbers must be >= 1");if(i<0)throw new Error("Column numbers must be >= 0");const o=[];return this._wasm.withMappingCallback(e=>{let t=e.lastGeneratedColumn;this._computedColumnSpans&&null===t&&(t=1/0),o.push({line:e.generatedLine,column:e.generatedColumn,lastColumn:t})},()=>{this._wasm.exports.all_generated_locations_for(this._getMappingsPtr(),t,n-1,"column"in e,i)}),o}destroy(){0!==this._mappingsPtr&&(this._wasm.exports.free_mappings(this._mappingsPtr),this._mappingsPtr=0)}computeColumnSpans(){this._computedColumnSpans||(this._wasm.exports.compute_column_spans(this._getMappingsPtr()),this._computedColumnSpans=!0)}originalPositionFor(e){const t={generatedLine:r.getArg(e,"line"),generatedColumn:r.getArg(e,"column")};if(t.generatedLine<1)throw new Error("Line numbers must be >= 1");if(t.generatedColumn<0)throw new Error("Column numbers must be >= 0");let n,i=r.getArg(e,"bias",l.GREATEST_LOWER_BOUND);if(null==i&&(i=l.GREATEST_LOWER_BOUND),this._wasm.withMappingCallback(e=>n=e,()=>{this._wasm.exports.original_location_for(this._getMappingsPtr(),t.generatedLine-1,t.generatedColumn,i)}),n&&n.generatedLine===t.generatedLine){let e=r.getArg(n,"source",null);null!==e&&(e=this._absoluteSources.at(e));let t=r.getArg(n,"name",null);return null!==t&&(t=this._names.at(t)),{source:e,line:r.getArg(n,"originalLine",null),column:r.getArg(n,"originalColumn",null),name:t}}return{source:null,line:null,column:null,name:null}}hasContentsOfAllSources(){return!!this.sourcesContent&&this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return null==e})}sourceContentFor(e,t){if(!this.sourcesContent)return null;const n=this._findSourceIndex(e);if(n>=0)return this.sourcesContent[n];if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')}generatedPositionFor(e){let t=r.getArg(e,"source");if(t=this._findSourceIndex(t),t<0)return{line:null,column:null,lastColumn:null};const n={source:t,originalLine:r.getArg(e,"line"),originalColumn:r.getArg(e,"column")};if(n.originalLine<1)throw new Error("Line numbers must be >= 1");if(n.originalColumn<0)throw new Error("Column numbers must be >= 0");let i,o=r.getArg(e,"bias",l.GREATEST_LOWER_BOUND);if(null==o&&(o=l.GREATEST_LOWER_BOUND),this._wasm.withMappingCallback(e=>i=e,()=>{this._wasm.exports.generated_location_for(this._getMappingsPtr(),n.source,n.originalLine-1,n.originalColumn,o)}),i&&i.source===n.source){let e=i.lastGeneratedColumn;return this._computedColumnSpans&&null===e&&(e=1/0),{line:r.getArg(i,"generatedLine",null),column:r.getArg(i,"generatedColumn",null),lastColumn:e}}return{line:null,column:null,lastColumn:null}}}c.prototype.consumer=l;class h extends l{constructor(e,t){return super(a).then(n=>{let i=e;"string"==typeof e&&(i=r.parseSourceMapInput(e));const o=r.getArg(i,"version"),s=r.getArg(i,"sections");if(o!=n._version)throw new Error("Unsupported version: "+o);let u={line:-1,column:0};return Promise.all(s.map(e=>{if(e.url)throw new Error("Support for url field in sections not implemented.");const n=r.getArg(e,"offset"),i=r.getArg(n,"line"),o=r.getArg(n,"column");if(i<u.line||i===u.line&&o<u.column)throw new Error("Section offsets must be ordered and non-overlapping.");return u=n,new l(r.getArg(e,"map"),t).then(e=>({generatedOffset:{generatedLine:i+1,generatedColumn:o+1},consumer:e}))})).then(e=>(n._sections=e,n))})}get sources(){const e=[];for(let t=0;t<this._sections.length;t++)for(let n=0;n<this._sections[t].consumer.sources.length;n++)e.push(this._sections[t].consumer.sources[n]);return e}originalPositionFor(e){const t={generatedLine:r.getArg(e,"line"),generatedColumn:r.getArg(e,"column")},n=i.search(t,this._sections,function(e,t){return e.generatedLine-t.generatedOffset.generatedLine||e.generatedColumn-(t.generatedOffset.generatedColumn-1)}),o=this._sections[n];return o?o.consumer.originalPositionFor({line:t.generatedLine-(o.generatedOffset.generatedLine-1),column:t.generatedColumn-(o.generatedOffset.generatedLine===t.generatedLine?o.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}}hasContentsOfAllSources(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})}sourceContentFor(e,t){for(let t=0;t<this._sections.length;t++){const n=this._sections[t].consumer.sourceContentFor(e,!0);if(n)return n}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')}_findSectionIndex(e){for(let t=0;t<this._sections.length;t++){const{consumer:n}=this._sections[t];if(-1!==n._findSourceIndex(e))return t}return-1}generatedPositionFor(e){const t=this._findSectionIndex(r.getArg(e,"source")),n=t>=0?this._sections[t]:null,i=t>=0&&t+1<this._sections.length?this._sections[t+1]:null,o=n&&n.consumer.generatedPositionFor(e);if(o&&null!==o.line){const e=n.generatedOffset.generatedLine-1,t=n.generatedOffset.generatedColumn-1;return 1===o.line&&(o.column+=t,"number"==typeof o.lastColumn&&(o.lastColumn+=t)),o.lastColumn===1/0&&i&&o.line===i.generatedOffset.generatedLine&&(o.lastColumn=i.generatedOffset.generatedColumn-2),o.line+=e,o}return{line:null,column:null,lastColumn:null}}allGeneratedPositionsFor(e){const t=this._findSectionIndex(r.getArg(e,"source")),n=t>=0?this._sections[t]:null,i=t>=0&&t+1<this._sections.length?this._sections[t+1]:null;return n?n.consumer.allGeneratedPositionsFor(e).map(e=>{const t=n.generatedOffset.generatedLine-1,r=n.generatedOffset.generatedColumn-1;return 1===e.line&&(e.column+=r,"number"==typeof e.lastColumn&&(e.lastColumn+=r)),e.lastColumn===1/0&&i&&e.line===i.generatedOffset.generatedLine&&(e.lastColumn=i.generatedOffset.generatedColumn-2),e.line+=t,e}):[]}eachMapping(e,t,n){this._sections.forEach((r,i)=>{const o=i+1<this._sections.length?this._sections[i+1]:null,{generatedOffset:s}=r,u=s.generatedLine-1,a=s.generatedColumn-1;r.consumer.eachMapping(function(t){1===t.generatedLine&&(t.generatedColumn+=a,"number"==typeof t.lastGeneratedColumn&&(t.lastGeneratedColumn+=a)),t.lastGeneratedColumn===1/0&&o&&t.generatedLine===o.generatedOffset.generatedLine&&(t.lastGeneratedColumn=o.generatedOffset.generatedColumn-2),t.generatedLine+=u,e.call(this,t)},t,n)})}computeColumnSpans(){for(let e=0;e<this._sections.length;e++)this._sections[e].consumer.computeColumnSpans()}destroy(){for(let e=0;e<this._sections.length;e++)this._sections[e].consumer.destroy()}}},481(e,t,n){"use strict";const{Yargs:r,processArgv:i}=n(648);function o(e,t){const i=r(e,t,n(500));var u;return u=i,[...Object.keys(u),...Object.getOwnPropertyNames(u.constructor.prototype)].forEach(e=>{"argv"===e?s(o,e,function(e,t){const n=Object.getOwnPropertyDescriptor(e,t);if(void 0!==n)return n.get}(u,e)):"function"==typeof u[e]?o[e]=u[e].bind(u):(s(o,"$0",()=>u.$0),s(o,"parsed",()=>u.parsed))}),i}function s(e,t,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:n})}o(i.hideBin(process.argv)),e.exports=o},500(e){function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=500,e.exports=t},507(e,t,n){const r=n(659);function i(e,t){return function(n){return t(e(n))}}function o(e,t){const n=[t[e].parent,e];let o=r[t[e].parent][e],s=t[e].parent;for(;t[s].parent;)n.unshift(t[s].parent),o=i(r[t[s].parent][s],o),s=t[s].parent;return o.conversion=n,o}e.exports=function(e){const t=function(e){const t=function(){const e={},t=Object.keys(r);for(let n=t.length,r=0;r<n;r++)e[t[r]]={distance:-1,parent:null};return e}(),n=[e];for(t[e].distance=0;n.length;){const e=n.pop(),i=Object.keys(r[e]);for(let r=i.length,o=0;o<r;o++){const r=i[o],s=t[r];-1===s.distance&&(s.distance=t[e].distance+1,s.parent=e,n.unshift(r))}}return t}(e),n={},i=Object.keys(t);for(let e=i.length,r=0;r<e;r++){const e=i[r];null!==t[e].parent&&(n[e]=o(e,t))}return n}},513(e,t,n){"use strict";const r=n(231),i=n(108),o=n(371),s=e=>{if("string"!=typeof e||0===e.length)return 0;if(0===(e=r(e)).length)return 0;e=e.replace(o()," ");let t=0;for(let n=0;n<e.length;n++){const r=e.codePointAt(n);r<=31||r>=127&&r<=159||r>=768&&r<=879||(r>65535&&n++,t+=i(r)?2:1)}return t};e.exports=s,e.exports.default=s},576(e,t,n){"use strict";const r=n(896),i=n(928);e.exports=function(){return new Promise((e,t)=>{const n=i.join(__dirname,"mappings.wasm");r.readFile(n,null,(n,r)=>{n?t(n):e(r.buffer)})})},e.exports.initialize=e=>{console.debug("SourceMapConsumer.initialize is a no-op when running in node.js")}},613(e){"use strict";e.exports=require("assert")},626(e,t,n){"use strict";e.exports="function"==typeof URL?URL:n(16).URL},642(e){"use strict";e.exports=function(e){if(void 0===e&&(e=2),e>=Error.stackTraceLimit)throw new TypeError("getCallerFile(position) requires position be less then Error.stackTraceLimit but position was: `"+e+"` and Error.stackTraceLimit was: `"+Error.stackTraceLimit+"`");var t=Error.prepareStackTrace;Error.prepareStackTrace=function(e,t){return t};var n=(new Error).stack;if(Error.prepareStackTrace=t,null!==n&&"object"==typeof n)return n[e]?n[e].getFileName():void 0}},648(e,t,n){"use strict";var r=n(613);class i extends Error{constructor(e){super(e||"yargs error"),this.name="YError",Error.captureStackTrace&&Error.captureStackTrace(this,i)}}let o,s=[];function u(e,t,r,l){o=l;let c={};if(Object.prototype.hasOwnProperty.call(e,"extends")){if("string"!=typeof e.extends)return c;const a=/\.json|\..*rc$/.test(e.extends);let l=null;if(a)l=function(e,t){return o.path.resolve(e,t)}(t,e.extends);else try{l=n(655).resolve(e.extends)}catch(t){return e}!function(e){if(s.indexOf(e)>-1)throw new i(`Circular extended configurations: '${e}'.`)}(l),s.push(l),c=a?JSON.parse(o.readFileSync(l,"utf8")):n(655)(e.extends),delete e.extends,c=u(c,o.path.dirname(l),r,o)}return s=[],r?a(c,e):Object.assign({},c,e)}function a(e,t){const n={};function r(e){return e&&"object"==typeof e&&!Array.isArray(e)}Object.assign(n,e);for(const i of Object.keys(t))r(t[i])&&r(n[i])?n[i]=a(e[i],t[i]):n[i]=t[i];return n}function l(e){const t=e.replace(/\s{2,}/g," ").split(/\s+(?![^[]*]|[^<]*>)/),n=/\.*[\][<>]/g,r=t.shift();if(!r)throw new Error(`No command found in: ${e}`);const i={cmd:r.replace(n,""),demanded:[],optional:[]};return t.forEach((e,r)=>{let o=!1;e=e.replace(/\s/g,""),/\.+[\]>]/.test(e)&&r===t.length-1&&(o=!0),/^\[/.test(e)?i.optional.push({cmd:e.replace(n,"").split("|"),variadic:o}):i.demanded.push({cmd:e.replace(n,"").split("|"),variadic:o})}),i}const c=["first","second","third","fourth","fifth","sixth"];function h(e,t,n){try{let r=0;const[o,s,u]="object"==typeof e?[{demanded:[],optional:[]},e,t]:[l(`cmd ${e}`),t,n],a=[].slice.call(s);for(;a.length&&void 0===a[a.length-1];)a.pop();const c=u||a.length;if(c<o.demanded.length)throw new i(`Not enough arguments provided. Expected ${o.demanded.length} but received ${a.length}.`);const h=o.demanded.length+o.optional.length;if(c>h)throw new i(`Too many arguments provided. Expected max ${h} but received ${c}.`);o.demanded.forEach(e=>{const t=f(a.shift());0===e.cmd.filter(e=>e===t||"*"===e).length&&D(t,e.cmd,r),r+=1}),o.optional.forEach(e=>{if(0===a.length)return;const t=f(a.shift());0===e.cmd.filter(e=>e===t||"*"===e).length&&D(t,e.cmd,r),r+=1})}catch(e){console.warn(e.stack)}}function f(e){return Array.isArray(e)?"array":null===e?"null":typeof e}function D(e,t,n){throw new i(`Invalid ${c[n]||"manyith"} argument. Expected ${t.join(" or ")} but received ${e}.`)}function d(e){return!!e&&!!e.then&&"function"==typeof e.then}function p(e,t,n,r){n.assert.notStrictEqual(e,t,r)}function g(e,t){t.assert.strictEqual(typeof e,"string")}function m(e){return Object.keys(e)}function y(e={},t=()=>!0){const n={};return m(e).forEach(r=>{t(r,e[r])&&(n[r]=e[r])}),n}function b(){return process.versions.electron&&!process.defaultApp?0:1}function C(){return process.argv[b()]}var E=Object.freeze({__proto__:null,hideBin:function(e){return e.slice(b()+1)},getProcessArgvBin:C});function v(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function F(e,t,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n}class _{constructor(e){this.globalMiddleware=[],this.frozens=[],this.yargs=e}addMiddleware(e,t,n=!0,r=!1){if(h("<array|function> [boolean] [boolean] [boolean]",[e,t,n],arguments.length),Array.isArray(e)){for(let r=0;r<e.length;r++){if("function"!=typeof e[r])throw Error("middleware must be a function");const i=e[r];i.applyBeforeValidation=t,i.global=n}Array.prototype.push.apply(this.globalMiddleware,e)}else if("function"==typeof e){const i=e;i.applyBeforeValidation=t,i.global=n,i.mutates=r,this.globalMiddleware.push(e)}return this.yargs}addCoerceMiddleware(e,t){const n=this.yargs.getAliases();return this.globalMiddleware=this.globalMiddleware.filter(e=>{const r=[...n[t]||[],t];return!e.option||!r.includes(e.option)}),e.option=t,this.addMiddleware(e,!0,!0,!0)}getMiddleware(){return this.globalMiddleware}freeze(){this.frozens.push([...this.globalMiddleware])}unfreeze(){const e=this.frozens.pop();void 0!==e&&(this.globalMiddleware=e)}reset(){this.globalMiddleware=this.globalMiddleware.filter(e=>e.global)}}function w(e,t,n,r){return n.reduce((e,n)=>{if(n.applyBeforeValidation!==r)return e;if(n.mutates){if(n.applied)return e;n.applied=!0}if(d(e))return e.then(e=>Promise.all([e,n(e,t)])).then(([e,t])=>Object.assign(e,t));{const r=n(e,t);return d(r)?r.then(t=>Object.assign(e,t)):Object.assign(e,r)}},e)}function A(e,t,n=e=>{throw e}){try{const n="function"==typeof e?e():e;return d(n)?n.then(e=>t(e)):t(n)}catch(e){return n(e)}}const O=/(^\*)|(^\$0)/;class S{constructor(e,t,n,r){this.requireCache=new Set,this.handlers={},this.aliasMap={},this.frozens=[],this.shim=r,this.usage=e,this.globalMiddleware=n,this.validation=t}addDirectory(e,t,n,r){"boolean"!=typeof(r=r||{}).recurse&&(r.recurse=!1),Array.isArray(r.extensions)||(r.extensions=["js"]);const i="function"==typeof r.visit?r.visit:e=>e;r.visit=(e,t,n)=>{const r=i(e,t,n);if(r){if(this.requireCache.has(t))return r;this.requireCache.add(t),this.addHandler(r)}return r},this.shim.requireDirectory({require:t,filename:n},e,r)}addHandler(e,t,n,r,i,o){let s=[];const u=function(e){return e?e.map(e=>(e.applyBeforeValidation=!1,e)):[]}(i);if(r=r||(()=>{}),Array.isArray(e))if(function(e){return e.every(e=>"string"==typeof e)}(e))[e,...s]=e;else for(const t of e)this.addHandler(t);else{if(function(e){return"object"==typeof e&&!Array.isArray(e)}(e)){let t=Array.isArray(e.command)||"string"==typeof e.command?e.command:this.moduleName(e);return e.aliases&&(t=[].concat(t).concat(e.aliases)),void this.addHandler(t,this.extractDesc(e),e.builder,e.handler,e.middlewares,e.deprecated)}if(k(n))return void this.addHandler([e].concat(s),t,n.builder,n.handler,n.middlewares,n.deprecated)}if("string"==typeof e){const i=l(e);s=s.map(e=>l(e).cmd);let a=!1;const c=[i.cmd].concat(s).filter(e=>!O.test(e)||(a=!0,!1));0===c.length&&a&&c.push("$0"),a&&(i.cmd=c[0],s=c.slice(1),e=e.replace(O,i.cmd)),s.forEach(e=>{this.aliasMap[e]=i.cmd}),!1!==t&&this.usage.command(e,t,a,s,o),this.handlers[i.cmd]={original:e,description:t,handler:r,builder:n||{},middlewares:u,deprecated:o,demanded:i.demanded,optional:i.optional},a&&(this.defaultCommand=this.handlers[i.cmd])}}getCommandHandlers(){return this.handlers}getCommands(){return Object.keys(this.handlers).concat(Object.keys(this.aliasMap))}hasDefaultCommand(){return!!this.defaultCommand}runCommand(e,t,n,r,i,o){const s=this.handlers[e]||this.handlers[this.aliasMap[e]]||this.defaultCommand,u=t.getInternalMethods().getContext(),a=u.commands.slice(),l=!e;e&&(u.commands.push(e),u.fullCommands.push(s.original));const c=this.applyBuilderUpdateUsageAndParse(l,s,t,n.aliases,a,r,i,o);return d(c)?c.then(e=>this.applyMiddlewareAndGetResult(l,s,e.innerArgv,u,i,e.aliases,t)):this.applyMiddlewareAndGetResult(l,s,c.innerArgv,u,i,c.aliases,t)}applyBuilderUpdateUsageAndParse(e,t,n,r,i,o,s,u){const a=t.builder;let l=n;if(j(a)){n.getInternalMethods().getUsageInstance().freeze();const c=a(n.getInternalMethods().reset(r),u);if(d(c))return c.then(r=>{var u;return l=(u=r)&&"function"==typeof u.getInternalMethods?r:n,this.parseAndUpdateUsage(e,t,l,i,o,s)})}else(function(e){return"object"==typeof e})(a)&&(n.getInternalMethods().getUsageInstance().freeze(),l=n.getInternalMethods().reset(r),Object.keys(t.builder).forEach(e=>{l.option(e,a[e])}));return this.parseAndUpdateUsage(e,t,l,i,o,s)}parseAndUpdateUsage(e,t,n,r,i,o){e&&n.getInternalMethods().getUsageInstance().unfreeze(!0),this.shouldUpdateUsage(n)&&n.getInternalMethods().getUsageInstance().usage(this.usageFromParentCommandsCommandHandler(r,t),t.description);const s=n.getInternalMethods().runYargsParserAndExecuteCommands(null,void 0,!0,i,o);return d(s)?s.then(e=>({aliases:n.parsed.aliases,innerArgv:e})):{aliases:n.parsed.aliases,innerArgv:s}}shouldUpdateUsage(e){return!e.getInternalMethods().getUsageInstance().getUsageDisabled()&&0===e.getInternalMethods().getUsageInstance().getUsage().length}usageFromParentCommandsCommandHandler(e,t){const n=O.test(t.original)?t.original.replace(O,"").trim():t.original,r=e.filter(e=>!O.test(e));return r.push(n),`$0 ${r.join(" ")}`}handleValidationAndGetResult(e,t,n,r,i,o,s,u){if(!o.getInternalMethods().getHasOutput()){const t=o.getInternalMethods().runValidation(i,u,o.parsed.error,e);n=A(n,e=>(t(e),e))}if(t.handler&&!o.getInternalMethods().getHasOutput()){o.getInternalMethods().setHasOutput();const r=!!o.getOptions().configuration["populate--"];o.getInternalMethods().postProcess(n,r,!1,!1),n=A(n=w(n,o,s,!1),e=>{const n=t.handler(e);return d(n)?n.then(()=>e):e}),e||o.getInternalMethods().getUsageInstance().cacheHelpMessage(),d(n)&&!o.getInternalMethods().hasParseCallback()&&n.catch(e=>{try{o.getInternalMethods().getUsageInstance().fail(null,e)}catch(e){}})}return e||(r.commands.pop(),r.fullCommands.pop()),n}applyMiddlewareAndGetResult(e,t,n,r,i,o,s){let u={};if(i)return n;s.getInternalMethods().getHasOutput()||(u=this.populatePositionals(t,n,r,s));const a=this.globalMiddleware.getMiddleware().slice(0).concat(t.middlewares),l=w(n,s,a,!0);return d(l)?l.then(n=>this.handleValidationAndGetResult(e,t,n,r,o,s,a,u)):this.handleValidationAndGetResult(e,t,l,r,o,s,a,u)}populatePositionals(e,t,n,r){t._=t._.slice(n.commands.length);const i=e.demanded.slice(0),o=e.optional.slice(0),s={};for(this.validation.positionalCount(i.length,t._.length);i.length;){const e=i.shift();this.populatePositional(e,t,s)}for(;o.length;){const e=o.shift();this.populatePositional(e,t,s)}return t._=n.commands.concat(t._.map(e=>""+e)),this.postProcessPositionals(t,s,this.cmdToParseOptions(e.original),r),s}populatePositional(e,t,n){const r=e.cmd[0];e.variadic?n[r]=t._.splice(0).map(String):t._.length&&(n[r]=[String(t._.shift())])}cmdToParseOptions(e){const t={array:[],default:{},alias:{},demand:{}},n=l(e);return n.demanded.forEach(e=>{const[n,...r]=e.cmd;e.variadic&&(t.array.push(n),t.default[n]=[]),t.alias[n]=r,t.demand[n]=!0}),n.optional.forEach(e=>{const[n,...r]=e.cmd;e.variadic&&(t.array.push(n),t.default[n]=[]),t.alias[n]=r}),t}postProcessPositionals(e,t,n,r){const i=Object.assign({},r.getOptions());i.default=Object.assign(n.default,i.default);for(const e of Object.keys(n.alias))i.alias[e]=(i.alias[e]||[]).concat(n.alias[e]);i.array=i.array.concat(n.array),i.config={};const o=[];if(Object.keys(t).forEach(e=>{t[e].map(t=>{i.configuration["unknown-options-as-args"]&&(i.key[e]=!0),o.push(`--${e}`),o.push(t)})}),!o.length)return;const s=Object.assign({},i.configuration,{"populate--":!1}),u=this.shim.Parser.detailed(o,Object.assign({},i,{configuration:s}));if(u.error)r.getInternalMethods().getUsageInstance().fail(u.error.message,u.error);else{const n=Object.keys(t);Object.keys(t).forEach(e=>{n.push(...u.aliases[e])}),Object.keys(u.argv).forEach(i=>{n.includes(i)&&(t[i]||(t[i]=u.argv[i]),!this.isInConfigs(r,i)&&!this.isDefaulted(r,i)&&Object.prototype.hasOwnProperty.call(e,i)&&Object.prototype.hasOwnProperty.call(u.argv,i)&&(Array.isArray(e[i])||Array.isArray(u.argv[i]))?e[i]=[].concat(e[i],u.argv[i]):e[i]=u.argv[i])})}}isDefaulted(e,t){const{default:n}=e.getOptions();return Object.prototype.hasOwnProperty.call(n,t)||Object.prototype.hasOwnProperty.call(n,this.shim.Parser.camelCase(t))}isInConfigs(e,t){const{configObjects:n}=e.getOptions();return n.some(e=>Object.prototype.hasOwnProperty.call(e,t))||n.some(e=>Object.prototype.hasOwnProperty.call(e,this.shim.Parser.camelCase(t)))}runDefaultBuilderOn(e){if(!this.defaultCommand)return;if(this.shouldUpdateUsage(e)){const t=O.test(this.defaultCommand.original)?this.defaultCommand.original:this.defaultCommand.original.replace(/^[^[\]<>]*/,"$0 ");e.getInternalMethods().getUsageInstance().usage(t,this.defaultCommand.description)}const t=this.defaultCommand.builder;if(j(t))return t(e,!0);k(t)||Object.keys(t).forEach(n=>{e.option(n,t[n])})}moduleName(e){const t=function(e){for(let t,r=0,i=Object.keys(n.c);r<i.length;r++)if(t=n.c[i[r]],t.exports===e)return t;return null}(e);if(!t)throw new Error(`No command name given for module: ${this.shim.inspect(e)}`);return this.commandFromFilename(t.filename)}commandFromFilename(e){return this.shim.path.basename(e,this.shim.path.extname(e))}extractDesc({describe:e,description:t,desc:n}){for(const r of[e,t,n]){if("string"==typeof r||!1===r)return r;p(r,!0,this.shim)}return!1}freeze(){this.frozens.push({handlers:this.handlers,aliasMap:this.aliasMap,defaultCommand:this.defaultCommand})}unfreeze(){const e=this.frozens.pop();p(e,void 0,this.shim),({handlers:this.handlers,aliasMap:this.aliasMap,defaultCommand:this.defaultCommand}=e)}reset(){return this.handlers={},this.aliasMap={},this.defaultCommand=void 0,this.requireCache=new Set,this}}function k(e){return"object"==typeof e&&!!e.builder&&"function"==typeof e.handler}function j(e){return"function"==typeof e}function x(e){"undefined"!=typeof process&&[process.stdout,process.stderr].forEach(t=>{const n=t;n._handle&&n.isTTY&&"function"==typeof n._handle.setBlocking&&n._handle.setBlocking(e)})}function M(e){return"boolean"==typeof e}function B(e,t){const n=t.y18n.__,r={},o=[];r.failFn=function(e){o.push(e)};let s=null,u=null,a=!0;r.showHelpOnFail=function(t=!0,n){const[i,o]="string"==typeof t?[!0,t]:[t,n];return e.getInternalMethods().isGlobalContext()&&(u=o),s=o,a=i,r};let l=!1;r.fail=function(t,n){const c=e.getInternalMethods().getLoggerInstance();if(!o.length){if(e.getExitProcess()&&x(!0),!l){l=!0,a&&(e.showHelp("error"),c.error()),(t||n)&&c.error(t||n);const r=s||u;r&&((t||n)&&c.error(""),c.error(r))}if(n=n||new i(t),e.getExitProcess())return e.exit(1);if(e.getInternalMethods().hasParseCallback())return e.exit(1,n);throw n}for(let e=o.length-1;e>=0;--e){const i=o[e];if(M(i)){if(n)throw n;if(t)throw Error(t)}else i(t,n,r)}};let c=[],h=!1;r.usage=(e,t)=>null===e?(h=!0,c=[],r):(h=!1,c.push([e,t||""]),r),r.getUsage=()=>c,r.getUsageDisabled=()=>h,r.getPositionalGroupName=()=>n("Positionals:");let f=[];r.example=(e,t)=>{f.push([e,t||""])};let D=[];r.command=function(e,t,n,r,i=!1){n&&(D=D.map(e=>(e[2]=!1,e))),D.push([e,t||"",n,r,i])},r.getCommands=()=>D;let d={};r.describe=function(e,t){Array.isArray(e)?e.forEach(e=>{r.describe(e,t)}):"object"==typeof e?Object.keys(e).forEach(t=>{r.describe(t,e[t])}):d[e]=t},r.getDescriptions=()=>d;let p=[];r.epilog=e=>{p.push(e)};let g,m=!1;r.wrap=e=>{m=!0,g=e},r.getWrap=()=>t.getEnv("YARGS_DISABLE_WRAP")?null:(m||(g=t.process.stdColumns?Math.min(80,t.process.stdColumns):80,m=!0),g);const b="__yargsString__:";function C(e,n,r){let i=0;return Array.isArray(e)||(e=Object.values(e).map(e=>[e])),e.forEach(e=>{i=Math.max(t.stringWidth(r?`${r} ${L(e[0])}`:L(e[0]))+N(e[0]),i)}),n&&(i=Math.min(i,parseInt((.5*n).toString(),10))),i}let E;function v(t){return e.getOptions().hiddenOptions.indexOf(t)<0||e.parsed.argv[e.getOptions().showHiddenOpt]}function F(e,t){let r=`[${n("default:")} `;if(void 0===e&&!t)return null;if(t)r+=t;else switch(typeof e){case"string":r+=`"${e}"`;break;case"object":r+=JSON.stringify(e);break;default:r+=e}return`${r}]`}r.deferY18nLookup=e=>b+e,r.help=function(){if(E)return E;!function(){const t=e.getDemandedOptions(),n=e.getOptions();(Object.keys(n.alias)||[]).forEach(i=>{n.alias[i].forEach(o=>{d[o]&&r.describe(i,d[o]),o in t&&e.demandOption(i,t[o]),n.boolean.includes(o)&&e.boolean(i),n.count.includes(o)&&e.count(i),n.string.includes(o)&&e.string(i),n.normalize.includes(o)&&e.normalize(i),n.array.includes(o)&&e.array(i),n.number.includes(o)&&e.number(i)})})}();const i=e.customScriptName?e.$0:t.path.basename(e.$0),o=e.getDemandedOptions(),s=e.getDemandedCommands(),u=e.getDeprecatedOptions(),a=e.getGroups(),l=e.getOptions();let g=[];g=g.concat(Object.keys(d)),g=g.concat(Object.keys(o)),g=g.concat(Object.keys(s)),g=g.concat(Object.keys(l.default)),g=g.filter(v),g=Object.keys(g.reduce((e,t)=>("_"!==t&&(e[t]=!0),e),{}));const m=r.getWrap(),y=t.cliui({width:m,wrap:!!m});if(!h)if(c.length)c.forEach(e=>{y.div({text:`${e[0].replace(/\$0/g,i)}`}),e[1]&&y.div({text:`${e[1]}`,padding:[1,0,0,0]})}),y.div();else if(D.length){let e=null;e=s._?`${i} <${n("command")}>\n`:`${i} [${n("command")}]\n`,y.div(`${e}`)}if(D.length>1||1===D.length&&!D[0][2]){y.div(n("Commands:"));const t=e.getInternalMethods().getContext(),r=t.commands.length?`${t.commands.join(" ")} `:"";!0===e.getInternalMethods().getParserConfiguration()["sort-commands"]&&(D=D.sort((e,t)=>e[0].localeCompare(t[0])));const o=i?`${i} `:"";D.forEach(e=>{const t=`${o}${r}${e[0].replace(/^\$0 ?/,"")}`;y.span({text:t,padding:[0,2,0,2],width:C(D,m,`${i}${r}`)+4},{text:e[1]});const s=[];e[2]&&s.push(`[${n("default")}]`),e[3]&&e[3].length&&s.push(`[${n("aliases:")} ${e[3].join(", ")}]`),e[4]&&("string"==typeof e[4]?s.push(`[${n("deprecated: %s",e[4])}]`):s.push(`[${n("deprecated")}]`)),s.length?y.div({text:s.join(" "),padding:[0,0,0,2],align:"right"}):y.div()}),y.div()}const _=(Object.keys(l.alias)||[]).concat(Object.keys(e.parsed.newAliases)||[]);g=g.filter(t=>!e.parsed.newAliases[t]&&_.every(e=>-1===(l.alias[e]||[]).indexOf(t)));const w=n("Options:");a[w]||(a[w]=[]),function(e,t,n,r){let i=[],o=null;Object.keys(n).forEach(e=>{i=i.concat(n[e])}),e.forEach(e=>{o=[e].concat(t[e]),o.some(e=>-1!==i.indexOf(e))||n[r].push(e)})}(g,l.alias,a,w);const A=e=>/^--/.test(L(e)),O=Object.keys(a).filter(e=>a[e].length>0).map(e=>({groupName:e,normalizedKeys:a[e].filter(v).map(e=>{if(_.includes(e))return e;for(let t,n=0;void 0!==(t=_[n]);n++)if((l.alias[t]||[]).includes(e))return t;return e})})).filter(({normalizedKeys:e})=>e.length>0).map(({groupName:e,normalizedKeys:t})=>{const n=t.reduce((t,n)=>(t[n]=[n].concat(l.alias[n]||[]).map(t=>e===r.getPositionalGroupName()?t:(/^[0-9]$/.test(t)?l.boolean.includes(n)?"-":"--":t.length>1?"--":"-")+t).sort((e,t)=>A(e)===A(t)?0:A(e)?1:-1).join(", "),t),{});return{groupName:e,normalizedKeys:t,switches:n}});if(O.filter(({groupName:e})=>e!==r.getPositionalGroupName()).some(({normalizedKeys:e,switches:t})=>!e.every(e=>A(t[e])))&&O.filter(({groupName:e})=>e!==r.getPositionalGroupName()).forEach(({normalizedKeys:e,switches:t})=>{e.forEach(e=>{var n;A(t[e])&&(t[e]=P(n=t[e])?{text:n.text,indentation:n.indentation+4}:{text:n,indentation:4})})}),O.forEach(({groupName:t,normalizedKeys:i,switches:s})=>{y.div(t),i.forEach(t=>{const i=s[t];let a=d[t]||"",c=null;a.includes(b)&&(a=n(a.substring(16))),l.boolean.includes(t)&&(c=`[${n("boolean")}]`),l.count.includes(t)&&(c=`[${n("count")}]`),l.string.includes(t)&&(c=`[${n("string")}]`),l.normalize.includes(t)&&(c=`[${n("string")}]`),l.array.includes(t)&&(c=`[${n("array")}]`),l.number.includes(t)&&(c=`[${n("number")}]`);const h=[t in u?(f=u[t],"string"==typeof f?`[${n("deprecated: %s",f)}]`:`[${n("deprecated")}]`):null,c,t in o?`[${n("required")}]`:null,l.choices&&l.choices[t]?`[${n("choices:")} ${r.stringifiedValues(l.choices[t])}]`:null,F(l.default[t],l.defaultDescription[t])].filter(Boolean).join(" ");var f;y.span({text:L(i),padding:[0,2,0,2+N(i)],width:C(s,m)+4},a);const D=!0===e.getInternalMethods().getUsageConfiguration()["hide-types"];h&&!D?y.div({text:h,padding:[0,0,0,2],align:"right"}):y.div()}),y.div()}),f.length&&(y.div(n("Examples:")),f.forEach(e=>{e[0]=e[0].replace(/\$0/g,i)}),f.forEach(e=>{""===e[1]?y.div({text:e[0],padding:[0,2,0,2]}):y.div({text:e[0],padding:[0,2,0,2],width:C(f,m)+4},{text:e[1]})}),y.div()),p.length>0){const e=p.map(e=>e.replace(/\$0/g,i)).join("\n");y.div(`${e}\n`)}return y.toString().replace(/\s*$/,"")},r.cacheHelpMessage=function(){E=this.help()},r.clearCachedHelpMessage=function(){E=void 0},r.hasCachedHelpMessage=function(){return!!E},r.showHelp=t=>{const n=e.getInternalMethods().getLoggerInstance();t||(t="error"),("function"==typeof t?t:n[t])(r.help())},r.functionDescription=e=>["(",e.name?t.Parser.decamelize(e.name,"-"):n("generated-value"),")"].join(""),r.stringifiedValues=function(e,t){let n="";const r=t||", ",i=[].concat(e);return e&&i.length?(i.forEach(e=>{n.length&&(n+=r),n+=JSON.stringify(e)}),n):n};let _=null;r.version=e=>{_=e},r.showVersion=t=>{const n=e.getInternalMethods().getLoggerInstance();t||(t="error"),("function"==typeof t?t:n[t])(_)},r.reset=function(e){return s=null,l=!1,c=[],h=!1,p=[],f=[],D=[],d=y(d,t=>!e[t]),r};const w=[];return r.freeze=function(){w.push({failMessage:s,failureOutput:l,usages:c,usageDisabled:h,epilogs:p,examples:f,commands:D,descriptions:d})},r.unfreeze=function(e=!1){const t=w.pop();t&&(e?(d={...t.descriptions,...d},D=[...t.commands,...D],c=[...t.usages,...c],f=[...t.examples,...f],p=[...t.epilogs,...p]):({failMessage:s,failureOutput:l,usages:c,usageDisabled:h,epilogs:p,examples:f,commands:D,descriptions:d}=t))},r}function P(e){return"object"==typeof e}function N(e){return P(e)?e.indentation:0}function L(e){return P(e)?e.text:e}class ${constructor(e,t,n,r){var i,o,s;this.yargs=e,this.usage=t,this.command=n,this.shim=r,this.completionKey="get-yargs-completions",this.aliases=null,this.customCompletionFunction=null,this.indexAfterLastReset=0,this.zshShell=null!==(s=(null===(i=this.shim.getEnv("SHELL"))||void 0===i?void 0:i.includes("zsh"))||(null===(o=this.shim.getEnv("ZSH_NAME"))||void 0===o?void 0:o.includes("zsh")))&&void 0!==s&&s}defaultCompletion(e,t,n,r){const i=this.command.getCommandHandlers();for(let t=0,n=e.length;t<n;++t)if(i[e[t]]&&i[e[t]].builder){const n=i[e[t]].builder;if(j(n)){this.indexAfterLastReset=t+1;const e=this.yargs.getInternalMethods().reset();return n(e,!0),e.argv}}const o=[];this.commandCompletions(o,e,n),this.optionCompletions(o,e,t,n),this.choicesFromOptionsCompletions(o,e,t,n),this.choicesFromPositionalsCompletions(o,e,t,n),r(null,o)}commandCompletions(e,t,n){const r=this.yargs.getInternalMethods().getContext().commands;n.match(/^-/)||r[r.length-1]===n||this.previousArgHasChoices(t)||this.usage.getCommands().forEach(n=>{const r=l(n[0]).cmd;if(-1===t.indexOf(r))if(this.zshShell){const t=n[1]||"";e.push(r.replace(/:/g,"\\:")+":"+t)}else e.push(r)})}optionCompletions(e,t,n,r){if((r.match(/^-/)||""===r&&0===e.length)&&!this.previousArgHasChoices(t)){const n=this.yargs.getOptions(),i=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[];Object.keys(n.key).forEach(o=>{const s=!!n.configuration["boolean-negation"]&&n.boolean.includes(o);i.includes(o)||n.hiddenOptions.includes(o)||this.argsContainKey(t,o,s)||this.completeOptionKey(o,e,r,s&&!!n.default[o])})}}choicesFromOptionsCompletions(e,t,n,r){if(this.previousArgHasChoices(t)){const n=this.getPreviousArgChoices(t);n&&n.length>0&&e.push(...n.map(e=>e.replace(/:/g,"\\:")))}}choicesFromPositionalsCompletions(e,t,n,r){if(""===r&&e.length>0&&this.previousArgHasChoices(t))return;const i=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[],o=Math.max(this.indexAfterLastReset,this.yargs.getInternalMethods().getContext().commands.length+1),s=i[n._.length-o-1];if(!s)return;const u=this.yargs.getOptions().choices[s]||[];for(const t of u)t.startsWith(r)&&e.push(t.replace(/:/g,"\\:"))}getPreviousArgChoices(e){if(e.length<1)return;let t=e[e.length-1],n="";if(!t.startsWith("-")&&e.length>1&&(n=t,t=e[e.length-2]),!t.startsWith("-"))return;const r=t.replace(/^-+/,""),i=this.yargs.getOptions(),o=[r,...this.yargs.getAliases()[r]||[]];let s;for(const e of o)if(Object.prototype.hasOwnProperty.call(i.key,e)&&Array.isArray(i.choices[e])){s=i.choices[e];break}return s?s.filter(e=>!n||e.startsWith(n)):void 0}previousArgHasChoices(e){const t=this.getPreviousArgChoices(e);return void 0!==t&&t.length>0}argsContainKey(e,t,n){const r=t=>-1!==e.indexOf((/^[^0-9]$/.test(t)?"-":"--")+t);if(r(t))return!0;if(n&&r(`no-${t}`))return!0;if(this.aliases)for(const e of this.aliases[t])if(r(e))return!0;return!1}completeOptionKey(e,t,n,r){var i,o,s,u;let a=e;if(this.zshShell){const t=this.usage.getDescriptions(),n=null===(o=null===(i=null==this?void 0:this.aliases)||void 0===i?void 0:i[e])||void 0===o?void 0:o.find(e=>{const n=t[e];return"string"==typeof n&&n.length>0}),r=n?t[n]:void 0,l=null!==(u=null!==(s=t[e])&&void 0!==s?s:r)&&void 0!==u?u:"";a=`${e.replace(/:/g,"\\:")}:${l.replace("__yargsString__:","").replace(/(\r\n|\n|\r)/gm," ")}`}const l=!/^--/.test(n)&&(e=>/^[^0-9]$/.test(e))(e)?"-":"--";t.push(l+a),r&&t.push(l+"no-"+a)}customCompletion(e,t,n,r){if(p(this.customCompletionFunction,null,this.shim),this.customCompletionFunction.length<3){const e=this.customCompletionFunction(n,t);return d(e)?e.then(e=>{this.shim.process.nextTick(()=>{r(null,e)})}).catch(e=>{this.shim.process.nextTick(()=>{r(e,void 0)})}):r(null,e)}return function(e){return e.length>3}(this.customCompletionFunction)?this.customCompletionFunction(n,t,(i=r)=>this.defaultCompletion(e,t,n,i),e=>{r(null,e)}):this.customCompletionFunction(n,t,e=>{r(null,e)})}getCompletion(e,t){const n=e.length?e[e.length-1]:"",r=this.yargs.parse(e,!0),i=this.customCompletionFunction?r=>this.customCompletion(e,r,n,t):r=>this.defaultCompletion(e,r,n,t);return d(r)?r.then(i):i(r)}generateCompletionScript(e,t){let n=this.zshShell?'#compdef {{app_name}}\n###-begin-{{app_name}}-completions-###\n#\n# yargs command completion script\n#\n# Installation: {{app_path}} {{completion_command}} >> ~/.zshrc\n# or {{app_path}} {{completion_command}} >> ~/.zprofile on OSX.\n#\n_{{app_name}}_yargs_completions()\n{\n local reply\n local si=$IFS\n IFS=$\'\n\' reply=($(COMP_CWORD="$((CURRENT-1))" COMP_LINE="$BUFFER" COMP_POINT="$CURSOR" {{app_path}} --get-yargs-completions "${words[@]}"))\n IFS=$si\n _describe \'values\' reply\n}\ncompdef _{{app_name}}_yargs_completions {{app_name}}\n###-end-{{app_name}}-completions-###\n':'###-begin-{{app_name}}-completions-###\n#\n# yargs command completion script\n#\n# Installation: {{app_path}} {{completion_command}} >> ~/.bashrc\n# or {{app_path}} {{completion_command}} >> ~/.bash_profile on OSX.\n#\n_{{app_name}}_yargs_completions()\n{\n local cur_word args type_list\n\n cur_word="${COMP_WORDS[COMP_CWORD]}"\n args=("${COMP_WORDS[@]}")\n\n # ask yargs to generate completions.\n type_list=$({{app_path}} --get-yargs-completions "${args[@]}")\n\n COMPREPLY=( $(compgen -W "${type_list}" -- ${cur_word}) )\n\n # if no match was found, fall back to filename completion\n if [ ${#COMPREPLY[@]} -eq 0 ]; then\n COMPREPLY=()\n fi\n\n return 0\n}\ncomplete -o bashdefault -o default -F _{{app_name}}_yargs_completions {{app_name}}\n###-end-{{app_name}}-completions-###\n';const r=this.shim.path.basename(e);return e.match(/\.js$/)&&(e=`./${e}`),n=n.replace(/{{app_name}}/g,r),n=n.replace(/{{completion_command}}/g,t),n.replace(/{{app_path}}/g,e)}registerFunction(e){this.customCompletionFunction=e}setParsed(e){this.aliases=e.aliases}}function I(e,t){if(0===e.length)return t.length;if(0===t.length)return e.length;const n=[];let r,i;for(r=0;r<=t.length;r++)n[r]=[r];for(i=0;i<=e.length;i++)n[0][i]=i;for(r=1;r<=t.length;r++)for(i=1;i<=e.length;i++)t.charAt(r-1)===e.charAt(i-1)?n[r][i]=n[r-1][i-1]:r>1&&i>1&&t.charAt(r-2)===e.charAt(i-1)&&t.charAt(r-1)===e.charAt(i-2)?n[r][i]=n[r-2][i-2]+1:n[r][i]=Math.min(n[r-1][i-1]+1,Math.min(n[r][i-1]+1,n[r-1][i]+1));return n[t.length][e.length]}const R=["$0","--","_"];var T,U,W,G,z,H,q,V,Y,K,J,Q,Z,X,ee,te,ne,re,ie,oe,se,ue,ae,le,ce,he,fe,De,de,pe,ge,me,ye,be,Ce;const Ee=Symbol("copyDoubleDash"),ve=Symbol("copyDoubleDash"),Fe=Symbol("deleteFromParserHintObject"),_e=Symbol("emitWarning"),we=Symbol("freeze"),Ae=Symbol("getDollarZero"),Oe=Symbol("getParserConfiguration"),Se=Symbol("getUsageConfiguration"),ke=Symbol("guessLocale"),je=Symbol("guessVersion"),xe=Symbol("parsePositionalNumbers"),Me=Symbol("pkgUp"),Be=Symbol("populateParserHintArray"),Pe=Symbol("populateParserHintSingleValueDictionary"),Ne=Symbol("populateParserHintArrayDictionary"),Le=Symbol("populateParserHintDictionary"),$e=Symbol("sanitizeKey"),Ie=Symbol("setKey"),Re=Symbol("unfreeze"),Te=Symbol("validateAsync"),Ue=Symbol("getCommandInstance"),We=Symbol("getContext"),Ge=Symbol("getHasOutput"),ze=Symbol("getLoggerInstance"),He=Symbol("getParseContext"),qe=Symbol("getUsageInstance"),Ve=Symbol("getValidationInstance"),Ye=Symbol("hasParseCallback"),Ke=Symbol("isGlobalContext"),Je=Symbol("postProcess"),Qe=Symbol("rebase"),Ze=Symbol("reset"),Xe=Symbol("runYargsParserAndExecuteCommands"),et=Symbol("runValidation"),tt=Symbol("setHasOutput"),nt=Symbol("kTrackManuallySetKeys");class rt{constructor(e=[],t,n,r){this.customScriptName=!1,this.parsed=!1,T.set(this,void 0),U.set(this,void 0),W.set(this,{commands:[],fullCommands:[]}),G.set(this,null),z.set(this,null),H.set(this,"show-hidden"),q.set(this,null),V.set(this,!0),Y.set(this,{}),K.set(this,!0),J.set(this,[]),Q.set(this,void 0),Z.set(this,{}),X.set(this,!1),ee.set(this,null),te.set(this,!0),ne.set(this,void 0),re.set(this,""),ie.set(this,void 0),oe.set(this,void 0),se.set(this,{}),ue.set(this,null),ae.set(this,null),le.set(this,{}),ce.set(this,{}),he.set(this,void 0),fe.set(this,!1),De.set(this,void 0),de.set(this,!1),pe.set(this,!1),ge.set(this,!1),me.set(this,void 0),ye.set(this,{}),be.set(this,null),Ce.set(this,void 0),F(this,De,r,"f"),F(this,he,e,"f"),F(this,U,t,"f"),F(this,oe,n,"f"),F(this,Q,new _(this),"f"),this.$0=this[Ae](),this[Ze](),F(this,T,v(this,T,"f"),"f"),F(this,me,v(this,me,"f"),"f"),F(this,Ce,v(this,Ce,"f"),"f"),F(this,ie,v(this,ie,"f"),"f"),v(this,ie,"f").showHiddenOpt=v(this,H,"f"),F(this,ne,this[ve](),"f")}addHelpOpt(e,t){return h("[string|boolean] [string]",[e,t],arguments.length),v(this,ee,"f")&&(this[Fe](v(this,ee,"f")),F(this,ee,null,"f")),!1===e&&void 0===t||(F(this,ee,"string"==typeof e?e:"help","f"),this.boolean(v(this,ee,"f")),this.describe(v(this,ee,"f"),t||v(this,me,"f").deferY18nLookup("Show help"))),this}help(e,t){return this.addHelpOpt(e,t)}addShowHiddenOpt(e,t){if(h("[string|boolean] [string]",[e,t],arguments.length),!1===e&&void 0===t)return this;const n="string"==typeof e?e:v(this,H,"f");return this.boolean(n),this.describe(n,t||v(this,me,"f").deferY18nLookup("Show hidden options")),v(this,ie,"f").showHiddenOpt=n,this}showHidden(e,t){return this.addShowHiddenOpt(e,t)}alias(e,t){return h("<object|string|array> [string|array]",[e,t],arguments.length),this[Ne](this.alias.bind(this),"alias",e,t),this}array(e){return h("<array|string>",[e],arguments.length),this[Be]("array",e),this[nt](e),this}boolean(e){return h("<array|string>",[e],arguments.length),this[Be]("boolean",e),this[nt](e),this}check(e,t){return h("<function> [boolean]",[e,t],arguments.length),this.middleware((t,n)=>A(()=>e(t,n.getOptions()),n=>(n?("string"==typeof n||n instanceof Error)&&v(this,me,"f").fail(n.toString(),n):v(this,me,"f").fail(v(this,De,"f").y18n.__("Argument check failed: %s",e.toString())),t),e=>(v(this,me,"f").fail(e.message?e.message:e.toString(),e),t)),!1,t),this}choices(e,t){return h("<object|string|array> [string|array]",[e,t],arguments.length),this[Ne](this.choices.bind(this),"choices",e,t),this}coerce(e,t){if(h("<object|string|array> [function]",[e,t],arguments.length),Array.isArray(e)){if(!t)throw new i("coerce callback must be provided");for(const n of e)this.coerce(n,t);return this}if("object"==typeof e){for(const t of Object.keys(e))this.coerce(t,e[t]);return this}if(!t)throw new i("coerce callback must be provided");return v(this,ie,"f").key[e]=!0,v(this,Q,"f").addCoerceMiddleware((n,r)=>{let o;return Object.prototype.hasOwnProperty.call(n,e)?A(()=>(o=r.getAliases(),t(n[e])),t=>{n[e]=t;const i=r.getInternalMethods().getParserConfiguration()["strip-aliased"];if(o[e]&&!0!==i)for(const r of o[e])n[r]=t;return n},e=>{throw new i(e.message)}):n},e),this}conflicts(e,t){return h("<string|object> [string|array]",[e,t],arguments.length),v(this,Ce,"f").conflicts(e,t),this}config(e="config",t,n){return h("[object|string] [string|function] [function]",[e,t,n],arguments.length),"object"!=typeof e||Array.isArray(e)?("function"==typeof t&&(n=t,t=void 0),this.describe(e,t||v(this,me,"f").deferY18nLookup("Path to JSON config file")),(Array.isArray(e)?e:[e]).forEach(e=>{v(this,ie,"f").config[e]=n||!0}),this):(e=u(e,v(this,U,"f"),this[Oe]()["deep-merge-config"]||!1,v(this,De,"f")),v(this,ie,"f").configObjects=(v(this,ie,"f").configObjects||[]).concat(e),this)}completion(e,t,n){return h("[string] [string|boolean|function] [function]",[e,t,n],arguments.length),"function"==typeof t&&(n=t,t=void 0),F(this,z,e||v(this,z,"f")||"completion","f"),t||!1===t||(t="generate completion script"),this.command(v(this,z,"f"),t),n&&v(this,G,"f").registerFunction(n),this}command(e,t,n,r,i,o){return h("<string|array|object> [string|boolean] [function|object] [function] [array] [boolean|string]",[e,t,n,r,i,o],arguments.length),v(this,T,"f").addHandler(e,t,n,r,i,o),this}commands(e,t,n,r,i,o){return this.command(e,t,n,r,i,o)}commandDir(e,t){h("<string> [object]",[e,t],arguments.length);const n=v(this,oe,"f")||v(this,De,"f").require;return v(this,T,"f").addDirectory(e,n,v(this,De,"f").getCallerFile(),t),this}count(e){return h("<array|string>",[e],arguments.length),this[Be]("count",e),this[nt](e),this}default(e,t,n){return h("<object|string|array> [*] [string]",[e,t,n],arguments.length),n&&(g(e,v(this,De,"f")),v(this,ie,"f").defaultDescription[e]=n),"function"==typeof t&&(g(e,v(this,De,"f")),v(this,ie,"f").defaultDescription[e]||(v(this,ie,"f").defaultDescription[e]=v(this,me,"f").functionDescription(t)),t=t.call()),this[Pe](this.default.bind(this),"default",e,t),this}defaults(e,t,n){return this.default(e,t,n)}demandCommand(e=1,t,n,r){return h("[number] [number|string] [string|null|undefined] [string|null|undefined]",[e,t,n,r],arguments.length),"number"!=typeof t&&(n=t,t=1/0),this.global("_",!1),v(this,ie,"f").demandedCommands._={min:e,max:t,minMsg:n,maxMsg:r},this}demand(e,t,n){return Array.isArray(t)?(t.forEach(e=>{p(n,!0,v(this,De,"f")),this.demandOption(e,n)}),t=1/0):"number"!=typeof t&&(n=t,t=1/0),"number"==typeof e?(p(n,!0,v(this,De,"f")),this.demandCommand(e,t,n,n)):Array.isArray(e)?e.forEach(e=>{p(n,!0,v(this,De,"f")),this.demandOption(e,n)}):"string"==typeof n?this.demandOption(e,n):!0!==n&&void 0!==n||this.demandOption(e),this}demandOption(e,t){return h("<object|string|array> [string]",[e,t],arguments.length),this[Pe](this.demandOption.bind(this),"demandedOptions",e,t),this}deprecateOption(e,t){return h("<string> [string|boolean]",[e,t],arguments.length),v(this,ie,"f").deprecatedOptions[e]=t,this}describe(e,t){return h("<object|string|array> [string]",[e,t],arguments.length),this[Ie](e,!0),v(this,me,"f").describe(e,t),this}detectLocale(e){return h("<boolean>",[e],arguments.length),F(this,V,e,"f"),this}env(e){return h("[string|boolean]",[e],arguments.length),!1===e?delete v(this,ie,"f").envPrefix:v(this,ie,"f").envPrefix=e||"",this}epilogue(e){return h("<string>",[e],arguments.length),v(this,me,"f").epilog(e),this}epilog(e){return this.epilogue(e)}example(e,t){return h("<string|array> [string]",[e,t],arguments.length),Array.isArray(e)?e.forEach(e=>this.example(...e)):v(this,me,"f").example(e,t),this}exit(e,t){F(this,X,!0,"f"),F(this,q,t,"f"),v(this,K,"f")&&v(this,De,"f").process.exit(e)}exitProcess(e=!0){return h("[boolean]",[e],arguments.length),F(this,K,e,"f"),this}fail(e){if(h("<function|boolean>",[e],arguments.length),"boolean"==typeof e&&!1!==e)throw new i("Invalid first argument. Expected function or boolean 'false'");return v(this,me,"f").failFn(e),this}getAliases(){return this.parsed?this.parsed.aliases:{}}async getCompletion(e,t){return h("<array> [function]",[e,t],arguments.length),t?v(this,G,"f").getCompletion(e,t):new Promise((t,n)=>{v(this,G,"f").getCompletion(e,(e,r)=>{e?n(e):t(r)})})}getDemandedOptions(){return h([],0),v(this,ie,"f").demandedOptions}getDemandedCommands(){return h([],0),v(this,ie,"f").demandedCommands}getDeprecatedOptions(){return h([],0),v(this,ie,"f").deprecatedOptions}getDetectLocale(){return v(this,V,"f")}getExitProcess(){return v(this,K,"f")}getGroups(){return Object.assign({},v(this,Z,"f"),v(this,ce,"f"))}getHelp(){if(F(this,X,!0,"f"),!v(this,me,"f").hasCachedHelpMessage()){if(!this.parsed){const e=this[Xe](v(this,he,"f"),void 0,void 0,0,!0);if(d(e))return e.then(()=>v(this,me,"f").help())}const e=v(this,T,"f").runDefaultBuilderOn(this);if(d(e))return e.then(()=>v(this,me,"f").help())}return Promise.resolve(v(this,me,"f").help())}getOptions(){return v(this,ie,"f")}getStrict(){return v(this,de,"f")}getStrictCommands(){return v(this,pe,"f")}getStrictOptions(){return v(this,ge,"f")}global(e,t){return h("<string|array> [boolean]",[e,t],arguments.length),e=[].concat(e),!1!==t?v(this,ie,"f").local=v(this,ie,"f").local.filter(t=>-1===e.indexOf(t)):e.forEach(e=>{v(this,ie,"f").local.includes(e)||v(this,ie,"f").local.push(e)}),this}group(e,t){h("<string|array> <string>",[e,t],arguments.length);const n=v(this,ce,"f")[t]||v(this,Z,"f")[t];v(this,ce,"f")[t]&&delete v(this,ce,"f")[t];const r={};return v(this,Z,"f")[t]=(n||[]).concat(e).filter(e=>!r[e]&&(r[e]=!0)),this}hide(e){return h("<string>",[e],arguments.length),v(this,ie,"f").hiddenOptions.push(e),this}implies(e,t){return h("<string|object> [number|string|array]",[e,t],arguments.length),v(this,Ce,"f").implies(e,t),this}locale(e){return h("[string]",[e],arguments.length),void 0===e?(this[ke](),v(this,De,"f").y18n.getLocale()):(F(this,V,!1,"f"),v(this,De,"f").y18n.setLocale(e),this)}middleware(e,t,n){return v(this,Q,"f").addMiddleware(e,!!t,n)}nargs(e,t){return h("<string|object|array> [number]",[e,t],arguments.length),this[Pe](this.nargs.bind(this),"narg",e,t),this}normalize(e){return h("<array|string>",[e],arguments.length),this[Be]("normalize",e),this}number(e){return h("<array|string>",[e],arguments.length),this[Be]("number",e),this[nt](e),this}option(e,t){if(h("<string|object> [object]",[e,t],arguments.length),"object"==typeof e)Object.keys(e).forEach(t=>{this.options(t,e[t])});else{"object"!=typeof t&&(t={}),this[nt](e),!v(this,be,"f")||"version"!==e&&"version"!==(null==t?void 0:t.alias)||this[_e](['"version" is a reserved word.',"Please do one of the following:",'- Disable version with `yargs.version(false)` if using "version" as an option',"- Use the built-in `yargs.version` method instead (if applicable)","- Use a different option key","https://yargs.js.org/docs/#api-reference-version"].join("\n"),void 0,"versionWarning"),v(this,ie,"f").key[e]=!0,t.alias&&this.alias(e,t.alias);const n=t.deprecate||t.deprecated;n&&this.deprecateOption(e,n);const r=t.demand||t.required||t.require;r&&this.demand(e,r),t.demandOption&&this.demandOption(e,"string"==typeof t.demandOption?t.demandOption:void 0),t.conflicts&&this.conflicts(e,t.conflicts),"default"in t&&this.default(e,t.default),void 0!==t.implies&&this.implies(e,t.implies),void 0!==t.nargs&&this.nargs(e,t.nargs),t.config&&this.config(e,t.configParser),t.normalize&&this.normalize(e),t.choices&&this.choices(e,t.choices),t.coerce&&this.coerce(e,t.coerce),t.group&&this.group(e,t.group),(t.boolean||"boolean"===t.type)&&(this.boolean(e),t.alias&&this.boolean(t.alias)),(t.array||"array"===t.type)&&(this.array(e),t.alias&&this.array(t.alias)),(t.number||"number"===t.type)&&(this.number(e),t.alias&&this.number(t.alias)),(t.string||"string"===t.type)&&(this.string(e),t.alias&&this.string(t.alias)),(t.count||"count"===t.type)&&this.count(e),"boolean"==typeof t.global&&this.global(e,t.global),t.defaultDescription&&(v(this,ie,"f").defaultDescription[e]=t.defaultDescription),t.skipValidation&&this.skipValidation(e);const i=t.describe||t.description||t.desc,o=v(this,me,"f").getDescriptions();Object.prototype.hasOwnProperty.call(o,e)&&"string"!=typeof i||this.describe(e,i),t.hidden&&this.hide(e),t.requiresArg&&this.requiresArg(e)}return this}options(e,t){return this.option(e,t)}parse(e,t,n){h("[string|array] [function|boolean|object] [function]",[e,t,n],arguments.length),this[we](),void 0===e&&(e=v(this,he,"f")),"object"==typeof t&&(F(this,ae,t,"f"),t=n),"function"==typeof t&&(F(this,ue,t,"f"),t=!1),t||F(this,he,e,"f"),v(this,ue,"f")&&F(this,K,!1,"f");const r=this[Xe](e,!!t),i=this.parsed;return v(this,G,"f").setParsed(this.parsed),d(r)?r.then(e=>(v(this,ue,"f")&&v(this,ue,"f").call(this,v(this,q,"f"),e,v(this,re,"f")),e)).catch(e=>{throw v(this,ue,"f")&&v(this,ue,"f")(e,this.parsed.argv,v(this,re,"f")),e}).finally(()=>{this[Re](),this.parsed=i}):(v(this,ue,"f")&&v(this,ue,"f").call(this,v(this,q,"f"),r,v(this,re,"f")),this[Re](),this.parsed=i,r)}parseAsync(e,t,n){const r=this.parse(e,t,n);return d(r)?r:Promise.resolve(r)}parseSync(e,t,n){const r=this.parse(e,t,n);if(d(r))throw new i(".parseSync() must not be used with asynchronous builders, handlers, or middleware");return r}parserConfiguration(e){return h("<object>",[e],arguments.length),F(this,se,e,"f"),this}pkgConf(e,t){h("<string> [string]",[e,t],arguments.length);let n=null;const r=this[Me](t||v(this,U,"f"));return r[e]&&"object"==typeof r[e]&&(n=u(r[e],t||v(this,U,"f"),this[Oe]()["deep-merge-config"]||!1,v(this,De,"f")),v(this,ie,"f").configObjects=(v(this,ie,"f").configObjects||[]).concat(n)),this}positional(e,t){h("<string> <object>",[e,t],arguments.length);const n=["default","defaultDescription","implies","normalize","choices","conflicts","coerce","type","describe","desc","description","alias"];t=y(t,(e,t)=>!("type"===e&&!["string","number","boolean"].includes(t))&&n.includes(e));const r=v(this,W,"f").fullCommands[v(this,W,"f").fullCommands.length-1],i=r?v(this,T,"f").cmdToParseOptions(r):{array:[],alias:{},default:{},demand:{}};return m(i).forEach(n=>{const r=i[n];Array.isArray(r)?-1!==r.indexOf(e)&&(t[n]=!0):r[e]&&!(n in t)&&(t[n]=r[e])}),this.group(e,v(this,me,"f").getPositionalGroupName()),this.option(e,t)}recommendCommands(e=!0){return h("[boolean]",[e],arguments.length),F(this,fe,e,"f"),this}required(e,t,n){return this.demand(e,t,n)}require(e,t,n){return this.demand(e,t,n)}requiresArg(e){return h("<array|string|object> [number]",[e],arguments.length),"string"==typeof e&&v(this,ie,"f").narg[e]||this[Pe](this.requiresArg.bind(this),"narg",e,NaN),this}showCompletionScript(e,t){return h("[string] [string]",[e,t],arguments.length),e=e||this.$0,v(this,ne,"f").log(v(this,G,"f").generateCompletionScript(e,t||v(this,z,"f")||"completion")),this}showHelp(e){if(h("[string|function]",[e],arguments.length),F(this,X,!0,"f"),!v(this,me,"f").hasCachedHelpMessage()){if(!this.parsed){const t=this[Xe](v(this,he,"f"),void 0,void 0,0,!0);if(d(t))return t.then(()=>{v(this,me,"f").showHelp(e)}),this}const t=v(this,T,"f").runDefaultBuilderOn(this);if(d(t))return t.then(()=>{v(this,me,"f").showHelp(e)}),this}return v(this,me,"f").showHelp(e),this}scriptName(e){return this.customScriptName=!0,this.$0=e,this}showHelpOnFail(e,t){return h("[boolean|string] [string]",[e,t],arguments.length),v(this,me,"f").showHelpOnFail(e,t),this}showVersion(e){return h("[string|function]",[e],arguments.length),v(this,me,"f").showVersion(e),this}skipValidation(e){return h("<array|string>",[e],arguments.length),this[Be]("skipValidation",e),this}strict(e){return h("[boolean]",[e],arguments.length),F(this,de,!1!==e,"f"),this}strictCommands(e){return h("[boolean]",[e],arguments.length),F(this,pe,!1!==e,"f"),this}strictOptions(e){return h("[boolean]",[e],arguments.length),F(this,ge,!1!==e,"f"),this}string(e){return h("<array|string>",[e],arguments.length),this[Be]("string",e),this[nt](e),this}terminalWidth(){return h([],0),v(this,De,"f").process.stdColumns}updateLocale(e){return this.updateStrings(e)}updateStrings(e){return h("<object>",[e],arguments.length),F(this,V,!1,"f"),v(this,De,"f").y18n.updateLocale(e),this}usage(e,t,n,r){if(h("<string|null|undefined> [string|boolean] [function|object] [function]",[e,t,n,r],arguments.length),void 0!==t){if(p(e,null,v(this,De,"f")),(e||"").match(/^\$0( |$)/))return this.command(e,t,n,r);throw new i(".usage() description must start with $0 if being used as alias for .command()")}return v(this,me,"f").usage(e),this}usageConfiguration(e){return h("<object>",[e],arguments.length),F(this,ye,e,"f"),this}version(e,t,n){const r="version";if(h("[boolean|string] [string] [string]",[e,t,n],arguments.length),v(this,be,"f")&&(this[Fe](v(this,be,"f")),v(this,me,"f").version(void 0),F(this,be,null,"f")),0===arguments.length)n=this[je](),e=r;else if(1===arguments.length){if(!1===e)return this;n=e,e=r}else 2===arguments.length&&(n=t,t=void 0);return F(this,be,"string"==typeof e?e:r,"f"),t=t||v(this,me,"f").deferY18nLookup("Show version number"),v(this,me,"f").version(n||void 0),this.boolean(v(this,be,"f")),this.describe(v(this,be,"f"),t),this}wrap(e){return h("<number|null|undefined>",[e],arguments.length),v(this,me,"f").wrap(e),this}[(T=new WeakMap,U=new WeakMap,W=new WeakMap,G=new WeakMap,z=new WeakMap,H=new WeakMap,q=new WeakMap,V=new WeakMap,Y=new WeakMap,K=new WeakMap,J=new WeakMap,Q=new WeakMap,Z=new WeakMap,X=new WeakMap,ee=new WeakMap,te=new WeakMap,ne=new WeakMap,re=new WeakMap,ie=new WeakMap,oe=new WeakMap,se=new WeakMap,ue=new WeakMap,ae=new WeakMap,le=new WeakMap,ce=new WeakMap,he=new WeakMap,fe=new WeakMap,De=new WeakMap,de=new WeakMap,pe=new WeakMap,ge=new WeakMap,me=new WeakMap,ye=new WeakMap,be=new WeakMap,Ce=new WeakMap,Ee)](e){if(!e._||!e["--"])return e;e._.push.apply(e._,e["--"]);try{delete e["--"]}catch(e){}return e}[ve](){return{log:(...e)=>{this[Ye]()||console.log(...e),F(this,X,!0,"f"),v(this,re,"f").length&&F(this,re,v(this,re,"f")+"\n","f"),F(this,re,v(this,re,"f")+e.join(" "),"f")},error:(...e)=>{this[Ye]()||console.error(...e),F(this,X,!0,"f"),v(this,re,"f").length&&F(this,re,v(this,re,"f")+"\n","f"),F(this,re,v(this,re,"f")+e.join(" "),"f")}}}[Fe](e){m(v(this,ie,"f")).forEach(t=>{if("configObjects"===t)return;const n=v(this,ie,"f")[t];Array.isArray(n)?n.includes(e)&&n.splice(n.indexOf(e),1):"object"==typeof n&&delete n[e]}),delete v(this,me,"f").getDescriptions()[e]}[_e](e,t,n){v(this,Y,"f")[n]||(v(this,De,"f").process.emitWarning(e,t),v(this,Y,"f")[n]=!0)}[we](){v(this,J,"f").push({options:v(this,ie,"f"),configObjects:v(this,ie,"f").configObjects.slice(0),exitProcess:v(this,K,"f"),groups:v(this,Z,"f"),strict:v(this,de,"f"),strictCommands:v(this,pe,"f"),strictOptions:v(this,ge,"f"),completionCommand:v(this,z,"f"),output:v(this,re,"f"),exitError:v(this,q,"f"),hasOutput:v(this,X,"f"),parsed:this.parsed,parseFn:v(this,ue,"f"),parseContext:v(this,ae,"f")}),v(this,me,"f").freeze(),v(this,Ce,"f").freeze(),v(this,T,"f").freeze(),v(this,Q,"f").freeze()}[Ae](){let e,t="";return e=/\b(node|iojs|electron)(\.exe)?$/.test(v(this,De,"f").process.argv()[0])?v(this,De,"f").process.argv().slice(1,2):v(this,De,"f").process.argv().slice(0,1),t=e.map(e=>{const t=this[Qe](v(this,U,"f"),e);return e.match(/^(\/|([a-zA-Z]:)?\\)/)&&t.length<e.length?t:e}).join(" ").trim(),v(this,De,"f").getEnv("_")&&v(this,De,"f").getProcessArgvBin()===v(this,De,"f").getEnv("_")&&(t=v(this,De,"f").getEnv("_").replace(`${v(this,De,"f").path.dirname(v(this,De,"f").process.execPath())}/`,"")),t}[Oe](){return v(this,se,"f")}[Se](){return v(this,ye,"f")}[ke](){if(!v(this,V,"f"))return;const e=v(this,De,"f").getEnv("LC_ALL")||v(this,De,"f").getEnv("LC_MESSAGES")||v(this,De,"f").getEnv("LANG")||v(this,De,"f").getEnv("LANGUAGE")||"en_US";this.locale(e.replace(/[.:].*/,""))}[je](){return this[Me]().version||"unknown"}[xe](e){const t=e["--"]?e["--"]:e._;for(let e,n=0;void 0!==(e=t[n]);n++)v(this,De,"f").Parser.looksLikeNumber(e)&&Number.isSafeInteger(Math.floor(parseFloat(`${e}`)))&&(t[n]=Number(e));return e}[Me](e){const t=e||"*";if(v(this,le,"f")[t])return v(this,le,"f")[t];let n={};try{let t=e||v(this,De,"f").mainFilename;!e&&v(this,De,"f").path.extname(t)&&(t=v(this,De,"f").path.dirname(t));const r=v(this,De,"f").findUp(t,(e,t)=>t.includes("package.json")?"package.json":void 0);p(r,void 0,v(this,De,"f")),n=JSON.parse(v(this,De,"f").readFileSync(r,"utf8"))}catch(e){}return v(this,le,"f")[t]=n||{},v(this,le,"f")[t]}[Be](e,t){(t=[].concat(t)).forEach(t=>{t=this[$e](t),v(this,ie,"f")[e].push(t)})}[Pe](e,t,n,r){this[Le](e,t,n,r,(e,t,n)=>{v(this,ie,"f")[e][t]=n})}[Ne](e,t,n,r){this[Le](e,t,n,r,(e,t,n)=>{v(this,ie,"f")[e][t]=(v(this,ie,"f")[e][t]||[]).concat(n)})}[Le](e,t,n,r,i){if(Array.isArray(n))n.forEach(t=>{e(t,r)});else if((e=>"object"==typeof e)(n))for(const t of m(n))e(t,n[t]);else i(t,this[$e](n),r)}[$e](e){return"__proto__"===e?"___proto___":e}[Ie](e,t){return this[Pe](this[Ie].bind(this),"key",e,t),this}[Re](){var e,t,n,r,i,o,s,u,a,l,c,h;const f=v(this,J,"f").pop();let D;p(f,void 0,v(this,De,"f")),e=this,t=this,n=this,r=this,i=this,o=this,s=this,u=this,a=this,l=this,c=this,h=this,({options:{set value(t){F(e,ie,t,"f")}}.value,configObjects:D,exitProcess:{set value(e){F(t,K,e,"f")}}.value,groups:{set value(e){F(n,Z,e,"f")}}.value,output:{set value(e){F(r,re,e,"f")}}.value,exitError:{set value(e){F(i,q,e,"f")}}.value,hasOutput:{set value(e){F(o,X,e,"f")}}.value,parsed:this.parsed,strict:{set value(e){F(s,de,e,"f")}}.value,strictCommands:{set value(e){F(u,pe,e,"f")}}.value,strictOptions:{set value(e){F(a,ge,e,"f")}}.value,completionCommand:{set value(e){F(l,z,e,"f")}}.value,parseFn:{set value(e){F(c,ue,e,"f")}}.value,parseContext:{set value(e){F(h,ae,e,"f")}}.value}=f),v(this,ie,"f").configObjects=D,v(this,me,"f").unfreeze(),v(this,Ce,"f").unfreeze(),v(this,T,"f").unfreeze(),v(this,Q,"f").unfreeze()}[Te](e,t){return A(t,t=>(e(t),t))}getInternalMethods(){return{getCommandInstance:this[Ue].bind(this),getContext:this[We].bind(this),getHasOutput:this[Ge].bind(this),getLoggerInstance:this[ze].bind(this),getParseContext:this[He].bind(this),getParserConfiguration:this[Oe].bind(this),getUsageConfiguration:this[Se].bind(this),getUsageInstance:this[qe].bind(this),getValidationInstance:this[Ve].bind(this),hasParseCallback:this[Ye].bind(this),isGlobalContext:this[Ke].bind(this),postProcess:this[Je].bind(this),reset:this[Ze].bind(this),runValidation:this[et].bind(this),runYargsParserAndExecuteCommands:this[Xe].bind(this),setHasOutput:this[tt].bind(this)}}[Ue](){return v(this,T,"f")}[We](){return v(this,W,"f")}[Ge](){return v(this,X,"f")}[ze](){return v(this,ne,"f")}[He](){return v(this,ae,"f")||{}}[qe](){return v(this,me,"f")}[Ve](){return v(this,Ce,"f")}[Ye](){return!!v(this,ue,"f")}[Ke](){return v(this,te,"f")}[Je](e,t,n,r){return n||d(e)||(t||(e=this[Ee](e)),(this[Oe]()["parse-positional-numbers"]||void 0===this[Oe]()["parse-positional-numbers"])&&(e=this[xe](e)),r&&(e=w(e,this,v(this,Q,"f").getMiddleware(),!1))),e}[Ze](e={}){F(this,ie,v(this,ie,"f")||{},"f");const t={};t.local=v(this,ie,"f").local||[],t.configObjects=v(this,ie,"f").configObjects||[];const n={};return t.local.forEach(t=>{n[t]=!0,(e[t]||[]).forEach(e=>{n[e]=!0})}),Object.assign(v(this,ce,"f"),Object.keys(v(this,Z,"f")).reduce((e,t)=>{const r=v(this,Z,"f")[t].filter(e=>!(e in n));return r.length>0&&(e[t]=r),e},{})),F(this,Z,{},"f"),["array","boolean","string","skipValidation","count","normalize","number","hiddenOptions"].forEach(e=>{t[e]=(v(this,ie,"f")[e]||[]).filter(e=>!n[e])}),["narg","key","alias","default","defaultDescription","config","choices","demandedOptions","demandedCommands","deprecatedOptions"].forEach(e=>{t[e]=y(v(this,ie,"f")[e],e=>!n[e])}),t.envPrefix=v(this,ie,"f").envPrefix,F(this,ie,t,"f"),F(this,me,v(this,me,"f")?v(this,me,"f").reset(n):B(this,v(this,De,"f")),"f"),F(this,Ce,v(this,Ce,"f")?v(this,Ce,"f").reset(n):function(e,t,n){const r=n.y18n.__,i=n.y18n.__n,o={nonOptionCount:function(n){const r=e.getDemandedCommands(),o=n._.length+(n["--"]?n["--"].length:0)-e.getInternalMethods().getContext().commands.length;r._&&(o<r._.min||o>r._.max)&&(o<r._.min?void 0!==r._.minMsg?t.fail(r._.minMsg?r._.minMsg.replace(/\$0/g,o.toString()).replace(/\$1/,r._.min.toString()):null):t.fail(i("Not enough non-option arguments: got %s, need at least %s","Not enough non-option arguments: got %s, need at least %s",o,o.toString(),r._.min.toString())):o>r._.max&&(void 0!==r._.maxMsg?t.fail(r._.maxMsg?r._.maxMsg.replace(/\$0/g,o.toString()).replace(/\$1/,r._.max.toString()):null):t.fail(i("Too many non-option arguments: got %s, maximum of %s","Too many non-option arguments: got %s, maximum of %s",o,o.toString(),r._.max.toString()))))},positionalCount:function(e,n){n<e&&t.fail(i("Not enough non-option arguments: got %s, need at least %s","Not enough non-option arguments: got %s, need at least %s",n,n+"",e+""))},requiredArguments:function(e,n){let r=null;for(const t of Object.keys(n))Object.prototype.hasOwnProperty.call(e,t)&&void 0!==e[t]||(r=r||{},r[t]=n[t]);if(r){const e=[];for(const t of Object.keys(r)){const n=r[t];n&&e.indexOf(n)<0&&e.push(n)}const n=e.length?`\n${e.join("\n")}`:"";t.fail(i("Missing required argument: %s","Missing required arguments: %s",Object.keys(r).length,Object.keys(r).join(", ")+n))}},unknownArguments:function(n,r,s,u,a=!0){var l;const c=e.getInternalMethods().getCommandInstance().getCommands(),h=[],f=e.getInternalMethods().getContext();if(Object.keys(n).forEach(t=>{R.includes(t)||Object.prototype.hasOwnProperty.call(s,t)||Object.prototype.hasOwnProperty.call(e.getInternalMethods().getParseContext(),t)||o.isValidAndSomeAliasIsNotNew(t,r)||h.push(t)}),a&&(f.commands.length>0||c.length>0||u)&&n._.slice(f.commands.length).forEach(e=>{c.includes(""+e)||h.push(""+e)}),a){const t=(null===(l=e.getDemandedCommands()._)||void 0===l?void 0:l.max)||0,r=f.commands.length+t;r<n._.length&&n._.slice(r).forEach(e=>{e=String(e),f.commands.includes(e)||h.includes(e)||h.push(e)})}h.length&&t.fail(i("Unknown argument: %s","Unknown arguments: %s",h.length,h.map(e=>e.trim()?e:`"${e}"`).join(", ")))},unknownCommands:function(n){const r=e.getInternalMethods().getCommandInstance().getCommands(),o=[],s=e.getInternalMethods().getContext();return(s.commands.length>0||r.length>0)&&n._.slice(s.commands.length).forEach(e=>{r.includes(""+e)||o.push(""+e)}),o.length>0&&(t.fail(i("Unknown command: %s","Unknown commands: %s",o.length,o.join(", "))),!0)},isValidAndSomeAliasIsNotNew:function(t,n){if(!Object.prototype.hasOwnProperty.call(n,t))return!1;const r=e.parsed.newAliases;return[t,...n[t]].some(e=>!Object.prototype.hasOwnProperty.call(r,e)||!r[t])},limitedChoices:function(n){const i=e.getOptions(),o={};if(!Object.keys(i.choices).length)return;Object.keys(n).forEach(e=>{-1===R.indexOf(e)&&Object.prototype.hasOwnProperty.call(i.choices,e)&&[].concat(n[e]).forEach(t=>{-1===i.choices[e].indexOf(t)&&void 0!==t&&(o[e]=(o[e]||[]).concat(t))})});const s=Object.keys(o);if(!s.length)return;let u=r("Invalid values:");s.forEach(e=>{u+=`\n ${r("Argument: %s, Given: %s, Choices: %s",e,t.stringifiedValues(o[e]),t.stringifiedValues(i.choices[e]))}`}),t.fail(u)}};let s={};function u(e,t){const n=Number(t);return"number"==typeof(t=isNaN(n)?t:n)?t=e._.length>=t:t.match(/^--no-.+/)?(t=t.match(/^--no-(.+)/)[1],t=!Object.prototype.hasOwnProperty.call(e,t)):t=Object.prototype.hasOwnProperty.call(e,t),t}o.implies=function(t,r){h("<string|object> [array|number|string]",[t,r],arguments.length),"object"==typeof t?Object.keys(t).forEach(e=>{o.implies(e,t[e])}):(e.global(t),s[t]||(s[t]=[]),Array.isArray(r)?r.forEach(e=>o.implies(t,e)):(p(r,void 0,n),s[t].push(r)))},o.getImplied=function(){return s},o.implications=function(e){const n=[];if(Object.keys(s).forEach(t=>{const r=t;(s[t]||[]).forEach(t=>{let i=r;const o=t;i=u(e,i),t=u(e,t),i&&!t&&n.push(` ${r} -> ${o}`)})}),n.length){let e=`${r("Implications failed:")}\n`;n.forEach(t=>{e+=t}),t.fail(e)}};let a={};o.conflicts=function(t,n){h("<string|object> [array|string]",[t,n],arguments.length),"object"==typeof t?Object.keys(t).forEach(e=>{o.conflicts(e,t[e])}):(e.global(t),a[t]||(a[t]=[]),Array.isArray(n)?n.forEach(e=>o.conflicts(t,e)):a[t].push(n))},o.getConflicting=()=>a,o.conflicting=function(i){Object.keys(i).forEach(e=>{a[e]&&a[e].forEach(n=>{n&&void 0!==i[e]&&void 0!==i[n]&&t.fail(r("Arguments %s and %s are mutually exclusive",e,n))})}),e.getInternalMethods().getParserConfiguration()["strip-dashed"]&&Object.keys(a).forEach(e=>{a[e].forEach(o=>{o&&void 0!==i[n.Parser.camelCase(e)]&&void 0!==i[n.Parser.camelCase(o)]&&t.fail(r("Arguments %s and %s are mutually exclusive",e,o))})})},o.recommendCommands=function(e,n){n=n.sort((e,t)=>t.length-e.length);let i=null,o=1/0;for(let t,r=0;void 0!==(t=n[r]);r++){const n=I(e,t);n<=3&&n<o&&(o=n,i=t)}i&&t.fail(r("Did you mean %s?",i))},o.reset=function(e){return s=y(s,t=>!e[t]),a=y(a,t=>!e[t]),o};const l=[];return o.freeze=function(){l.push({implied:s,conflicting:a})},o.unfreeze=function(){const e=l.pop();p(e,void 0,n),({implied:s,conflicting:a}=e)},o}(this,v(this,me,"f"),v(this,De,"f")),"f"),F(this,T,v(this,T,"f")?v(this,T,"f").reset():function(e,t,n,r){return new S(e,t,n,r)}(v(this,me,"f"),v(this,Ce,"f"),v(this,Q,"f"),v(this,De,"f")),"f"),v(this,G,"f")||F(this,G,function(e,t,n,r){return new $(e,t,n,r)}(this,v(this,me,"f"),v(this,T,"f"),v(this,De,"f")),"f"),v(this,Q,"f").reset(),F(this,z,null,"f"),F(this,re,"","f"),F(this,q,null,"f"),F(this,X,!1,"f"),this.parsed=!1,this}[Qe](e,t){return v(this,De,"f").path.relative(e,t)}[Xe](e,t,n,r=0,o=!1){let s=!!n||o;e=e||v(this,he,"f"),v(this,ie,"f").__=v(this,De,"f").y18n.__,v(this,ie,"f").configuration=this[Oe]();const u=!!v(this,ie,"f").configuration["populate--"],a=Object.assign({},v(this,ie,"f").configuration,{"populate--":!0}),l=v(this,De,"f").Parser.detailed(e,Object.assign({},v(this,ie,"f"),{configuration:{"parse-positional-numbers":!1,...a}})),c=Object.assign(l.argv,v(this,ae,"f"));let h;const f=l.aliases;let D=!1,p=!1;Object.keys(c).forEach(e=>{e===v(this,ee,"f")&&c[e]?D=!0:e===v(this,be,"f")&&c[e]&&(p=!0)}),c.$0=this.$0,this.parsed=l,0===r&&v(this,me,"f").clearCachedHelpMessage();try{if(this[ke](),t)return this[Je](c,u,!!n,!1);v(this,ee,"f")&&[v(this,ee,"f")].concat(f[v(this,ee,"f")]||[]).filter(e=>e.length>1).includes(""+c._[c._.length-1])&&(c._.pop(),D=!0),F(this,te,!1,"f");const a=v(this,T,"f").getCommands(),g=v(this,G,"f").completionKey in c,m=D||g||o;if(c._.length){if(a.length){let e;for(let t,i=r||0;void 0!==c._[i];i++){if(t=String(c._[i]),a.includes(t)&&t!==v(this,z,"f")){const e=v(this,T,"f").runCommand(t,this,l,i+1,o,D||p||o);return this[Je](e,u,!!n,!1)}if(!e&&t!==v(this,z,"f")){e=t;break}}!v(this,T,"f").hasDefaultCommand()&&v(this,fe,"f")&&e&&!m&&v(this,Ce,"f").recommendCommands(e,a)}v(this,z,"f")&&c._.includes(v(this,z,"f"))&&!g&&(v(this,K,"f")&&x(!0),this.showCompletionScript(),this.exit(0))}if(v(this,T,"f").hasDefaultCommand()&&!m){const e=v(this,T,"f").runCommand(null,this,l,0,o,D||p||o);return this[Je](e,u,!!n,!1)}if(g){v(this,K,"f")&&x(!0);const t=(e=[].concat(e)).slice(e.indexOf(`--${v(this,G,"f").completionKey}`)+1);return v(this,G,"f").getCompletion(t,(e,t)=>{if(e)throw new i(e.message);(t||[]).forEach(e=>{v(this,ne,"f").log(e)}),this.exit(0)}),this[Je](c,!u,!!n,!1)}if(v(this,X,"f")||(D?(v(this,K,"f")&&x(!0),s=!0,this.showHelp("log"),this.exit(0)):p&&(v(this,K,"f")&&x(!0),s=!0,v(this,me,"f").showVersion("log"),this.exit(0))),!s&&v(this,ie,"f").skipValidation.length>0&&(s=Object.keys(c).some(e=>v(this,ie,"f").skipValidation.indexOf(e)>=0&&!0===c[e])),!s){if(l.error)throw new i(l.error.message);if(!g){const e=this[et](f,{},l.error);n||(h=w(c,this,v(this,Q,"f").getMiddleware(),!0)),h=this[Te](e,null!=h?h:c),d(h)&&!n&&(h=h.then(()=>w(c,this,v(this,Q,"f").getMiddleware(),!1)))}}}catch(e){if(!(e instanceof i))throw e;v(this,me,"f").fail(e.message,e)}return this[Je](null!=h?h:c,u,!!n,!0)}[et](e,t,n,r){const o={...this.getDemandedOptions()};return s=>{if(n)throw new i(n.message);v(this,Ce,"f").nonOptionCount(s),v(this,Ce,"f").requiredArguments(s,o);let u=!1;v(this,pe,"f")&&(u=v(this,Ce,"f").unknownCommands(s)),v(this,de,"f")&&!u?v(this,Ce,"f").unknownArguments(s,e,t,!!r):v(this,ge,"f")&&v(this,Ce,"f").unknownArguments(s,e,{},!1,!1),v(this,Ce,"f").limitedChoices(s),v(this,Ce,"f").implications(s),v(this,Ce,"f").conflicting(s)}}[tt](){F(this,X,!0,"f")}[nt](e){if("string"==typeof e)v(this,ie,"f").key[e]=!0;else for(const t of e)v(this,ie,"f").key[t]=!0}}var it,ot;const{readFileSync:st}=n(896),{inspect:ut}=n(23),{resolve:at}=n(928),lt=n(398),ct=n(736);var ht,ft={assert:{notStrictEqual:r.notStrictEqual,strictEqual:r.strictEqual},cliui:n(170),findUp:n(681),getEnv:e=>process.env[e],getCallerFile:n(642),getProcessArgvBin:C,inspect:ut,mainFilename:null!==(ot=null===(it=void 0===n(655)?void 0:n.c[n.s])||void 0===it?void 0:it.filename)&&void 0!==ot?ot:process.cwd(),Parser:ct,path:n(928),process:{argv:()=>process.argv,cwd:process.cwd,emitWarning:(e,t)=>process.emitWarning(e,t),execPath:()=>process.execPath,exit:e=>{process.exit(e)},nextTick:process.nextTick,stdColumns:void 0!==process.stdout.columns?process.stdout.columns:null},readFileSync:st,require:n(655),requireDirectory:n(390),stringWidth:n(513),y18n:lt({directory:at(__dirname,"../locales"),updateFiles:!1})};const Dt=(null===(ht=null===process||void 0===process?void 0:process.env)||void 0===ht?void 0:ht.YARGS_MIN_NODE_VERSION)?Number(process.env.YARGS_MIN_NODE_VERSION):12;if(process&&process.version&&Number(process.version.match(/v([^.]+)/)[1])<Dt)throw Error(`yargs supports a minimum Node.js version of ${Dt}. Read our version support policy: https://github.com/yargs/yargs#supported-nodejs-versions`);const dt=n(736);var pt,gt={applyExtends:u,cjsPlatformShim:ft,Yargs:(pt=ft,(e=[],t=pt.process.cwd(),n)=>{const r=new rt(e,t,n,pt);return Object.defineProperty(r,"argv",{get:()=>r.parse(),enumerable:!0}),r.help(),r.version(),r}),argsert:h,isPromise:d,objFilter:y,parseCommand:l,Parser:dt,processArgv:E,YError:i};e.exports=gt},655(e){function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=655,e.exports=t},659(e,t,n){const r=n(156),i={};for(const e of Object.keys(r))i[r[e]]=e;const o={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};e.exports=o;for(const e of Object.keys(o)){if(!("channels"in o[e]))throw new Error("missing channels property: "+e);if(!("labels"in o[e]))throw new Error("missing channel labels property: "+e);if(o[e].labels.length!==o[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=o[e];delete o[e].channels,delete o[e].labels,Object.defineProperty(o[e],"channels",{value:t}),Object.defineProperty(o[e],"labels",{value:n})}function s(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}o.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(t,n,r),o=Math.max(t,n,r),s=o-i;let u,a;o===i?u=0:t===o?u=(n-r)/s:n===o?u=2+(r-t)/s:r===o&&(u=4+(t-n)/s),u=Math.min(60*u,360),u<0&&(u+=360);const l=(i+o)/2;return a=o===i?0:l<=.5?s/(o+i):s/(2-o-i),[u,100*a,100*l]},o.rgb.hsv=function(e){let t,n,r,i,o;const s=e[0]/255,u=e[1]/255,a=e[2]/255,l=Math.max(s,u,a),c=l-Math.min(s,u,a),h=function(e){return(l-e)/6/c+.5};return 0===c?(i=0,o=0):(o=c/l,t=h(s),n=h(u),r=h(a),s===l?i=r-n:u===l?i=1/3+t-r:a===l&&(i=2/3+n-t),i<0?i+=1:i>1&&(i-=1)),[360*i,100*o,100*l]},o.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const i=o.rgb.hsl(e)[0],s=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[i,100*s,100*r]},o.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(1-t,1-n,1-r);return[100*((1-t-i)/(1-i)||0),100*((1-n-i)/(1-i)||0),100*((1-r-i)/(1-i)||0),100*i]},o.rgb.keyword=function(e){const t=i[e];if(t)return t;let n,o=1/0;for(const t of Object.keys(r)){const i=s(e,r[t]);i<o&&(o=i,n=t)}return n},o.keyword.rgb=function(e){return r[e]},o.rgb.xyz=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255;return t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,[100*(.4124*t+.3576*n+.1805*r),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},o.rgb.lab=function(e){const t=o.rgb.xyz(e);let n=t[0],r=t[1],i=t[2];return n/=95.047,r/=100,i/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,i=i>.008856?i**(1/3):7.787*i+16/116,[116*r-16,500*(n-r),200*(r-i)]},o.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let i,o,s;if(0===n)return s=255*r,[s,s,s];i=r<.5?r*(1+n):r+n-r*n;const u=2*r-i,a=[0,0,0];for(let e=0;e<3;e++)o=t+1/3*-(e-1),o<0&&o++,o>1&&o--,s=6*o<1?u+6*(i-u)*o:2*o<1?i:3*o<2?u+(i-u)*(2/3-o)*6:u,a[e]=255*s;return a},o.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,i=n;const o=Math.max(r,.01);return r*=2,n*=r<=1?r:2-r,i*=o<=1?o:2-o,[t,100*(0===r?2*i/(o+i):2*n/(r+n)),(r+n)/2*100]},o.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const i=Math.floor(t)%6,o=t-Math.floor(t),s=255*r*(1-n),u=255*r*(1-n*o),a=255*r*(1-n*(1-o));switch(r*=255,i){case 0:return[r,a,s];case 1:return[u,r,s];case 2:return[s,r,a];case 3:return[s,u,r];case 4:return[a,s,r];case 5:return[r,s,u]}},o.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,i=Math.max(r,.01);let o,s;s=(2-n)*r;const u=(2-n)*i;return o=n*i,o/=u<=1?u:2-u,o=o||0,s/=2,[t,100*o,100*s]},o.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const i=n+r;let o;i>1&&(n/=i,r/=i);const s=Math.floor(6*t),u=1-r;o=6*t-s,1&s&&(o=1-o);const a=n+o*(u-n);let l,c,h;switch(s){default:case 6:case 0:l=u,c=a,h=n;break;case 1:l=a,c=u,h=n;break;case 2:l=n,c=u,h=a;break;case 3:l=n,c=a,h=u;break;case 4:l=a,c=n,h=u;break;case 5:l=u,c=n,h=a}return[255*l,255*c,255*h]},o.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,i=e[3]/100;return[255*(1-Math.min(1,t*(1-i)+i)),255*(1-Math.min(1,n*(1-i)+i)),255*(1-Math.min(1,r*(1-i)+i))]},o.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let i,o,s;return i=3.2406*t+-1.5372*n+-.4986*r,o=-.9689*t+1.8758*n+.0415*r,s=.0557*t+-.204*n+1.057*r,i=i>.0031308?1.055*i**(1/2.4)-.055:12.92*i,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,s=s>.0031308?1.055*s**(1/2.4)-.055:12.92*s,i=Math.min(Math.max(0,i),1),o=Math.min(Math.max(0,o),1),s=Math.min(Math.max(0,s),1),[255*i,255*o,255*s]},o.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];return t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,[116*n-16,500*(t-n),200*(n-r)]},o.lab.xyz=function(e){let t,n,r;n=(e[0]+16)/116,t=e[1]/500+n,r=n-e[2]/200;const i=n**3,o=t**3,s=r**3;return n=i>.008856?i:(n-16/116)/7.787,t=o>.008856?o:(t-16/116)/7.787,r=s>.008856?s:(r-16/116)/7.787,t*=95.047,n*=100,r*=108.883,[t,n,r]},o.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let i;return i=360*Math.atan2(r,n)/2/Math.PI,i<0&&(i+=360),[t,Math.sqrt(n*n+r*r),i]},o.lch.lab=function(e){const t=e[0],n=e[1],r=e[2]/360*2*Math.PI;return[t,n*Math.cos(r),n*Math.sin(r)]},o.rgb.ansi16=function(e,t=null){const[n,r,i]=e;let s=null===t?o.rgb.hsv(e)[2]:t;if(s=Math.round(s/50),0===s)return 30;let u=30+(Math.round(i/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return 2===s&&(u+=60),u},o.hsv.ansi16=function(e){return o.rgb.ansi16(o.hsv.rgb(e),e[2])},o.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},o.ansi16.rgb=function(e){let t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},o.ansi256.rgb=function(e){if(e>=232){const t=10*(e-232)+8;return[t,t,t]}let t;return e-=16,[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},o.rgb.hex=function(e){const t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},o.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];3===t[0].length&&(n=n.split("").map(e=>e+e).join(""));const r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},o.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.max(Math.max(t,n),r),o=Math.min(Math.min(t,n),r),s=i-o;let u,a;return u=s<1?o/(1-s):0,a=s<=0?0:i===t?(n-r)/s%6:i===n?2+(r-t)/s:4+(t-n)/s,a/=6,a%=1,[360*a,100*s,100*u]},o.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let i=0;return r<1&&(i=(n-.5*r)/(1-r)),[e[0],100*r,100*i]},o.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},o.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];const i=[0,0,0],o=t%1*6,s=o%1,u=1-s;let a=0;switch(Math.floor(o)){case 0:i[0]=1,i[1]=s,i[2]=0;break;case 1:i[0]=u,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=s;break;case 3:i[0]=0,i[1]=u,i[2]=1;break;case 4:i[0]=s,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=u}return a=(1-n)*r,[255*(n*i[0]+a),255*(n*i[1]+a),255*(n*i[2]+a)]},o.hcg.hsv=function(e){const t=e[1]/100,n=t+e[2]/100*(1-t);let r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},o.hcg.hsl=function(e){const t=e[1]/100,n=e[2]/100*(1-t)+.5*t;let r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},o.hcg.hwb=function(e){const t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},o.hwb.hcg=function(e){const t=e[1]/100,n=1-e[2]/100,r=n-t;let i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},o.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},o.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},o.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},o.gray.hsl=function(e){return[0,0,e[0]]},o.gray.hsv=o.gray.hsl,o.gray.hwb=function(e){return[0,100,e[0]]},o.gray.cmyk=function(e){return[0,0,0,e[0]]},o.gray.lab=function(e){return[e[0],0,0]},o.gray.hex=function(e){const t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},o.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},665(e,t,n){t.SourceMapGenerator=n(41).SourceMapGenerator,t.SourceMapConsumer=n(446).SourceMapConsumer,t.SourceNode=n(683).SourceNode},681(e,t,n){const{dirname:r,resolve:i}=n(928),{readdirSync:o,statSync:s}=n(896);e.exports=function(e,t){let n,u=i(".",e);for(s(u).isDirectory()||(u=r(u));;){if(n=t(u,o(u)),n)return i(u,n);if(u=r(n=u),n===u)break}}},683(e,t,n){const r=n(41).SourceMapGenerator,i=n(251),o=/(\r?\n)/,s="$$$isSourceNode$$$";class u{constructor(e,t,n,r,i){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==t?null:t,this.source=null==n?null:n,this.name=null==i?null:i,this[s]=!0,null!=r&&this.add(r)}static fromStringWithSourceMap(e,t,n){const r=new u,s=e.split(o);let a=0;const l=function(){return e()+(e()||"");function e(){return a<s.length?s[a++]:void 0}};let c,h=1,f=0,D=null;return t.eachMapping(function(e){if(null!==D){if(!(h<e.generatedLine)){c=s[a]||"";const t=c.substr(0,e.generatedColumn-f);return s[a]=c.substr(e.generatedColumn-f),f=e.generatedColumn,d(D,t),void(D=e)}d(D,l()),h++,f=0}for(;h<e.generatedLine;)r.add(l()),h++;f<e.generatedColumn&&(c=s[a]||"",r.add(c.substr(0,e.generatedColumn)),s[a]=c.substr(e.generatedColumn),f=e.generatedColumn),D=e},this),a<s.length&&(D&&d(D,l()),r.add(s.splice(a).join(""))),t.sources.forEach(function(e){const o=t.sourceContentFor(e);null!=o&&(null!=n&&(e=i.join(n,e)),r.setSourceContent(e,o))}),r;function d(e,t){if(null===e||void 0===e.source)r.add(t);else{const o=n?i.join(n,e.source):e.source;r.add(new u(e.originalLine,e.originalColumn,o,t,e.name))}}}add(e){if(Array.isArray(e))e.forEach(function(e){this.add(e)},this);else{if(!e[s]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);e&&this.children.push(e)}return this}prepend(e){if(Array.isArray(e))for(let t=e.length-1;t>=0;t--)this.prepend(e[t]);else{if(!e[s]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);this.children.unshift(e)}return this}walk(e){let t;for(let n=0,r=this.children.length;n<r;n++)t=this.children[n],t[s]?t.walk(e):""!==t&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})}join(e){let t,n;const r=this.children.length;if(r>0){for(t=[],n=0;n<r-1;n++)t.push(this.children[n]),t.push(e);t.push(this.children[n]),this.children=t}return this}replaceRight(e,t){const n=this.children[this.children.length-1];return n[s]?n.replaceRight(e,t):"string"==typeof n?this.children[this.children.length-1]=n.replace(e,t):this.children.push("".replace(e,t)),this}setSourceContent(e,t){this.sourceContents[i.toSetString(e)]=t}walkSourceContents(e){for(let t=0,n=this.children.length;t<n;t++)this.children[t][s]&&this.children[t].walkSourceContents(e);const t=Object.keys(this.sourceContents);for(let n=0,r=t.length;n<r;n++)e(i.fromSetString(t[n]),this.sourceContents[t[n]])}toString(){let e="";return this.walk(function(t){e+=t}),e}toStringWithSourceMap(e){const t={code:"",line:1,column:0},n=new r(e);let i=!1,o=null,s=null,u=null,a=null;return this.walk(function(e,r){t.code+=e,null!==r.source&&null!==r.line&&null!==r.column?(o===r.source&&s===r.line&&u===r.column&&a===r.name||n.addMapping({source:r.source,original:{line:r.line,column:r.column},generated:{line:t.line,column:t.column},name:r.name}),o=r.source,s=r.line,u=r.column,a=r.name,i=!0):i&&(n.addMapping({generated:{line:t.line,column:t.column}}),o=null,i=!1);for(let s=0,u=e.length;s<u;s++)10===e.charCodeAt(s)?(t.line++,t.column=0,s+1===u?(o=null,i=!1):i&&n.addMapping({source:r.source,original:{line:r.line,column:r.column},generated:{line:t.line,column:t.column},name:r.name})):t.column++}),this.walkSourceContents(function(e,t){n.setSourceContent(e,t)}),{code:t.code,map:n}}}t.SourceNode=u},722(e,t,n){const{applyExtends:r,cjsPlatformShim:i,Parser:o,processArgv:s}=n(648);e.exports={applyExtends:(e,t,n)=>r(e,t,n,i),hideBin:s.hideBin,Parser:o}},734(e,t,n){const r=n(659),i=n(507),o={};Object.keys(r).forEach(e=>{o[e]={},Object.defineProperty(o[e],"channels",{value:r[e].channels}),Object.defineProperty(o[e],"labels",{value:r[e].labels});const t=i(e);Object.keys(t).forEach(n=>{const r=t[n];o[e][n]=function(e){const t=function(...t){const n=t[0];if(null==n)return n;n.length>1&&(t=n);const r=e(t);if("object"==typeof r)for(let e=r.length,t=0;t<e;t++)r[t]=Math.round(r[t]);return r};return"conversion"in e&&(t.conversion=e.conversion),t}(r),o[e][n].raw=function(e){const t=function(...t){const n=t[0];return null==n?n:(n.length>1&&(t=n),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)})}),e.exports=o},735(e,t){class n{constructor(){this._array=[],this._set=new Map}static fromArray(e,t){const r=new n;for(let n=0,i=e.length;n<i;n++)r.add(e[n],t);return r}size(){return this._set.size}add(e,t){const n=this.has(e),r=this._array.length;n&&!t||this._array.push(e),n||this._set.set(e,r)}has(e){return this._set.has(e)}indexOf(e){const t=this._set.get(e);if(t>=0)return t;throw new Error('"'+e+'" is not in the set.')}at(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)}toArray(){return this._array.slice()}}t.C=n},736(e,t,n){"use strict";var r,i=n(23),o=n(928);function s(e){if(e!==e.toLowerCase()&&e!==e.toUpperCase()||(e=e.toLowerCase()),-1===e.indexOf("-")&&-1===e.indexOf("_"))return e;{let t="",n=!1;const r=e.match(/^-+/);for(let i=r?r[0].length:0;i<e.length;i++){let r=e.charAt(i);n&&(n=!1,r=r.toUpperCase()),0===i||"-"!==r&&"_"!==r?"-"!==r&&"_"!==r&&(t+=r):n=!0}return t}}function u(e,t){const n=e.toLowerCase();t=t||"-";let r="";for(let i=0;i<e.length;i++){const o=n.charAt(i),s=e.charAt(i);r+=o!==s&&i>0?`${t}${n.charAt(i)}`:s}return r}function a(e){return null!=e&&("number"==typeof e||!!/^0x[0-9a-f]+$/i.test(e)||!/^0[^.]/.test(e)&&/^[-]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(e))}let l;function c(e){return void 0!==e?e+1:1}function h(e){return"__proto__"===e?"___proto___":e}var f,D,d;n(896),function(e){e.BOOLEAN="boolean",e.STRING="string",e.NUMBER="number",e.ARRAY="array"}(r||(r={}));const p=process&&process.env&&process.env.YARGS_MIN_NODE_VERSION?Number(process.env.YARGS_MIN_NODE_VERSION):12,g=null!==(D=null===(f=null===process||void 0===process?void 0:process.versions)||void 0===f?void 0:f.node)&&void 0!==D?D:null===(d=null===process||void 0===process?void 0:process.version)||void 0===d?void 0:d.slice(1);if(g&&Number(g.match(/^([^.]+)/)[1])<p)throw Error(`yargs parser supports a minimum Node.js version of ${p}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`);const m=process?process.env:{},y=new class{constructor(e){l=e}parse(e,t){const n=Object.assign({alias:void 0,array:void 0,boolean:void 0,config:void 0,configObjects:void 0,configuration:void 0,coerce:void 0,count:void 0,default:void 0,envPrefix:void 0,narg:void 0,normalize:void 0,string:void 0,number:void 0,__:void 0,key:void 0},t),i=function(e){if(Array.isArray(e))return e.map(e=>"string"!=typeof e?e+"":e);e=e.trim();let t=0,n=null,r=null,i=null;const o=[];for(let s=0;s<e.length;s++)n=r,r=e.charAt(s)," "!==r||i?(r===i?i=null:"'"!==r&&'"'!==r||i||(i=r),o[t]||(o[t]=""),o[t]+=r):" "!==n&&t++;return o}(e),o="string"==typeof e,f=function(e){const t=[],n=Object.create(null);let r=!0;for(Object.keys(e).forEach(function(n){t.push([].concat(e[n],n))});r;){r=!1;for(let e=0;e<t.length;e++)for(let n=e+1;n<t.length;n++)if(t[e].filter(function(e){return-1!==t[n].indexOf(e)}).length){t[e]=t[e].concat(t[n]),t.splice(n,1),r=!0;break}}return t.forEach(function(e){const t=(e=e.filter(function(e,t,n){return n.indexOf(e)===t})).pop();void 0!==t&&"string"==typeof t&&(n[t]=e)}),n}(Object.assign(Object.create(null),n.alias)),D=Object.assign({"boolean-negation":!0,"camel-case-expansion":!0,"combine-arrays":!1,"dot-notation":!0,"duplicate-arguments-array":!0,"flatten-duplicate-arrays":!0,"greedy-arrays":!0,"halt-at-non-option":!1,"nargs-eats-options":!1,"negation-prefix":"no-","parse-numbers":!0,"parse-positional-numbers":!0,"populate--":!1,"set-placeholder-key":!1,"short-option-groups":!0,"strip-aliased":!1,"strip-dashed":!1,"unknown-options-as-args":!1},n.configuration),d=Object.assign(Object.create(null),n.default),p=n.configObjects||[],g=n.envPrefix,m=D["populate--"],y=m?"--":"_",b=Object.create(null),C=Object.create(null),E=n.__||l.format,v={aliases:Object.create(null),arrays:Object.create(null),bools:Object.create(null),strings:Object.create(null),numbers:Object.create(null),counts:Object.create(null),normalize:Object.create(null),configs:Object.create(null),nargs:Object.create(null),coercions:Object.create(null),keys:[]},F=/^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/,_=new RegExp("^--"+D["negation-prefix"]+"(.+)");[].concat(n.array||[]).filter(Boolean).forEach(function(e){const t="object"==typeof e?e.key:e,n=Object.keys(e).map(function(e){return{boolean:"bools",string:"strings",number:"numbers"}[e]}).filter(Boolean).pop();n&&(v[n][t]=!0),v.arrays[t]=!0,v.keys.push(t)}),[].concat(n.boolean||[]).filter(Boolean).forEach(function(e){v.bools[e]=!0,v.keys.push(e)}),[].concat(n.string||[]).filter(Boolean).forEach(function(e){v.strings[e]=!0,v.keys.push(e)}),[].concat(n.number||[]).filter(Boolean).forEach(function(e){v.numbers[e]=!0,v.keys.push(e)}),[].concat(n.count||[]).filter(Boolean).forEach(function(e){v.counts[e]=!0,v.keys.push(e)}),[].concat(n.normalize||[]).filter(Boolean).forEach(function(e){v.normalize[e]=!0,v.keys.push(e)}),"object"==typeof n.narg&&Object.entries(n.narg).forEach(([e,t])=>{"number"==typeof t&&(v.nargs[e]=t,v.keys.push(e))}),"object"==typeof n.coerce&&Object.entries(n.coerce).forEach(([e,t])=>{"function"==typeof t&&(v.coercions[e]=t,v.keys.push(e))}),void 0!==n.config&&(Array.isArray(n.config)||"string"==typeof n.config?[].concat(n.config).filter(Boolean).forEach(function(e){v.configs[e]=!0}):"object"==typeof n.config&&Object.entries(n.config).forEach(([e,t])=>{"boolean"!=typeof t&&"function"!=typeof t||(v.configs[e]=t)})),function(...e){e.forEach(function(e){Object.keys(e||{}).forEach(function(e){v.aliases[e]||(v.aliases[e]=[].concat(f[e]||[]),v.aliases[e].concat(e).forEach(function(t){if(/-/.test(t)&&D["camel-case-expansion"]){const n=s(t);n!==e&&-1===v.aliases[e].indexOf(n)&&(v.aliases[e].push(n),b[n]=!0)}}),v.aliases[e].concat(e).forEach(function(t){if(t.length>1&&/[A-Z]/.test(t)&&D["camel-case-expansion"]){const n=u(t,"-");n!==e&&-1===v.aliases[e].indexOf(n)&&(v.aliases[e].push(n),b[n]=!0)}}),v.aliases[e].forEach(function(t){v.aliases[t]=[e].concat(v.aliases[e].filter(function(e){return t!==e}))}))})})}(n.key,f,n.default,v.arrays),Object.keys(d).forEach(function(e){(v.aliases[e]||[]).forEach(function(t){d[t]=d[e]})});let w=null;Object.keys(v.counts).find(e=>U(e,v.arrays)?(w=Error(E("Invalid configuration: %s, opts.count excludes opts.array.",e)),!0):!!U(e,v.nargs)&&(w=Error(E("Invalid configuration: %s, opts.count excludes opts.narg.",e)),!0));let A=[];const O=Object.assign(Object.create(null),{_:[]}),S={};for(let e=0;e<i.length;e++){const t=i[e],n=t.replace(/^-{3,}/,"---");let r,o,s,u,a,l;if("--"!==t&&/^-/.test(t)&&G(t))k(t);else{if(n.match(/^---+(=|$)/)){k(t);continue}if(t.match(/^--.+=/)||!D["short-option-groups"]&&t.match(/^-.+=/))u=t.match(/^--?([^=]+)=([\s\S]*)$/),null!==u&&Array.isArray(u)&&u.length>=3&&(U(u[1],v.arrays)?e=x(e,u[1],i,u[2]):!1!==U(u[1],v.nargs)?e=j(e,u[1],i,u[2]):M(u[1],u[2],!0));else if(t.match(_)&&D["boolean-negation"])u=t.match(_),null!==u&&Array.isArray(u)&&u.length>=2&&(o=u[1],M(o,!!U(o,v.arrays)&&[!1]));else if(t.match(/^--.+/)||!D["short-option-groups"]&&t.match(/^-[^-]+/))u=t.match(/^--?(.+)/),null!==u&&Array.isArray(u)&&u.length>=2&&(o=u[1],U(o,v.arrays)?e=x(e,o,i):!1!==U(o,v.nargs)?e=j(e,o,i):(a=i[e+1],void 0===a||a.match(/^-/)&&!a.match(F)||U(o,v.bools)||U(o,v.counts)?/^(true|false)$/.test(a)?(M(o,a),e++):M(o,z(o)):(M(o,a),e++)));else if(t.match(/^-.\..+=/))u=t.match(/^-([^=]+)=([\s\S]*)$/),null!==u&&Array.isArray(u)&&u.length>=3&&M(u[1],u[2]);else if(t.match(/^-.\..+/)&&!t.match(F))a=i[e+1],u=t.match(/^-(.\..+)/),null!==u&&Array.isArray(u)&&u.length>=2&&(o=u[1],void 0===a||a.match(/^-/)||U(o,v.bools)||U(o,v.counts)?M(o,z(o)):(M(o,a),e++));else if(t.match(/^-[^-]+/)&&!t.match(F)){s=t.slice(1,-1).split(""),r=!1;for(let n=0;n<s.length;n++){if(a=t.slice(n+2),s[n+1]&&"="===s[n+1]){l=t.slice(n+3),o=s[n],U(o,v.arrays)?e=x(e,o,i,l):!1!==U(o,v.nargs)?e=j(e,o,i,l):M(o,l),r=!0;break}if("-"!==a){if(/[A-Za-z]/.test(s[n])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(a)&&!1===U(a,v.bools)){M(s[n],a),r=!0;break}if(s[n+1]&&s[n+1].match(/\W/)){M(s[n],a),r=!0;break}M(s[n],z(s[n]))}else M(s[n],a)}o=t.slice(-1)[0],r||"-"===o||(U(o,v.arrays)?e=x(e,o,i):!1!==U(o,v.nargs)?e=j(e,o,i):(a=i[e+1],void 0===a||/^(-|--)[^-]/.test(a)&&!a.match(F)||U(o,v.bools)||U(o,v.counts)?/^(true|false)$/.test(a)?(M(o,a),e++):M(o,z(o)):(M(o,a),e++)))}else if(t.match(/^-[0-9]$/)&&t.match(F)&&U(t.slice(1),v.bools))o=t.slice(1),M(o,z(o));else{if("--"===t){A=i.slice(e+1);break}if(D["halt-at-non-option"]){A=i.slice(e);break}k(t)}}}function k(e){const t=N("_",e);"string"!=typeof t&&"number"!=typeof t||O._.push(t)}function j(e,t,n,r){let i,o=U(t,v.nargs);if(o="number"!=typeof o||isNaN(o)?1:o,0===o)return H(r)||(w=Error(E("Argument unexpected for: %s",t))),M(t,z(t)),e;let s=H(r)?0:1;if(D["nargs-eats-options"])n.length-(e+1)+s<o&&(w=Error(E("Not enough arguments following: %s",t))),s=o;else{for(i=e+1;i<n.length&&(!n[i].match(/^-[^0-9]/)||n[i].match(F)||G(n[i]));i++)s++;s<o&&(w=Error(E("Not enough arguments following: %s",t)))}let u=Math.min(s,o);for(!H(r)&&u>0&&(M(t,r),u--),i=e+1;i<u+e+1;i++)M(t,n[i]);return e+u}function x(e,t,n,r){let i=[],s=r||n[e+1];const u=U(t,v.nargs);if(U(t,v.bools)&&!/^(true|false)$/.test(s))i.push(!0);else if(H(s)||H(r)&&/^-/.test(s)&&!F.test(s)&&!G(s)){if(void 0!==d[t]){const e=d[t];i=Array.isArray(e)?e:[e]}}else{H(r)||i.push(P(t,r,!0));for(let r=e+1;r<n.length&&!(!D["greedy-arrays"]&&i.length>0||u&&"number"==typeof u&&i.length>=u)&&(s=n[r],!/^-/.test(s)||F.test(s)||G(s));r++)e=r,i.push(P(t,s,o))}return"number"==typeof u&&(u&&i.length<u||isNaN(u)&&0===i.length)&&(w=Error(E("Not enough arguments following: %s",t))),M(t,i),e}function M(e,t,n=o){if(/-/.test(e)&&D["camel-case-expansion"]){const t=e.split(".").map(function(e){return s(e)}).join(".");B(e,t)}const r=P(e,t,n),i=e.split(".");T(O,i,r),v.aliases[e]&&v.aliases[e].forEach(function(e){const t=e.split(".");T(O,t,r)}),i.length>1&&D["dot-notation"]&&(v.aliases[i[0]]||[]).forEach(function(t){let n=t.split(".");const o=[].concat(i);o.shift(),n=n.concat(o),(v.aliases[e]||[]).includes(n.join("."))||T(O,n,r)}),U(e,v.normalize)&&!U(e,v.arrays)&&[e].concat(v.aliases[e]||[]).forEach(function(e){Object.defineProperty(S,e,{enumerable:!0,get:()=>t,set(e){t="string"==typeof e?l.normalize(e):e}})})}function B(e,t){v.aliases[e]&&v.aliases[e].length||(v.aliases[e]=[t],b[t]=!0),v.aliases[t]&&v.aliases[t].length||B(t,e)}function P(e,t,n){n&&(t=function(e){return"string"!=typeof e||"'"!==e[0]&&'"'!==e[0]||e[e.length-1]!==e[0]?e:e.substring(1,e.length-1)}(t)),(U(e,v.bools)||U(e,v.counts))&&"string"==typeof t&&(t="true"===t);let r=Array.isArray(t)?t.map(function(t){return N(e,t)}):N(e,t);return U(e,v.counts)&&(H(r)||"boolean"==typeof r)&&(r=c()),U(e,v.normalize)&&U(e,v.arrays)&&(r=Array.isArray(t)?t.map(e=>l.normalize(e)):l.normalize(t)),r}function N(e,t){return D["parse-positional-numbers"]||"_"!==e?(U(e,v.strings)||U(e,v.bools)||Array.isArray(t)||(a(t)&&D["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${t}`)))||!H(t)&&U(e,v.numbers))&&(t=Number(t)),t):t}function L(e,t){Object.keys(e).forEach(function(n){const r=e[n],i=t?t+"."+n:n;"object"==typeof r&&null!==r&&!Array.isArray(r)&&D["dot-notation"]?L(r,i):(!R(O,i.split("."))||U(i,v.arrays)&&D["combine-arrays"])&&M(i,r)})}function $(e,t){if(void 0===g)return;const n="string"==typeof g?g:"",r=l.env();Object.keys(r).forEach(function(i){if(""===n||0===i.lastIndexOf(n,0)){const o=i.split("__").map(function(e,t){return 0===t&&(e=e.substring(n.length)),s(e)});(t&&v.configs[o.join(".")]||!t)&&!R(e,o)&&M(o.join("."),r[i])}})}function I(e,t,n,r=!1){Object.keys(n).forEach(function(i){R(e,i.split("."))||(T(e,i.split("."),n[i]),r&&(C[i]=!0),(t[i]||[]).forEach(function(t){R(e,t.split("."))||T(e,t.split("."),n[i])}))})}function R(e,t){let n=e;D["dot-notation"]||(t=[t.join(".")]),t.slice(0,-1).forEach(function(e){n=n[e]||{}});const r=t[t.length-1];return"object"==typeof n&&r in n}function T(e,t,n){let r=e;D["dot-notation"]||(t=[t.join(".")]),t.slice(0,-1).forEach(function(e){e=h(e),"object"==typeof r&&void 0===r[e]&&(r[e]={}),"object"!=typeof r[e]||Array.isArray(r[e])?(Array.isArray(r[e])?r[e].push({}):r[e]=[r[e],{}],r=r[e][r[e].length-1]):r=r[e]});const i=h(t[t.length-1]),o=U(t.join("."),v.arrays),s=Array.isArray(n);let u=D["duplicate-arguments-array"];!u&&U(i,v.nargs)&&(u=!0,(!H(r[i])&&1===v.nargs[i]||Array.isArray(r[i])&&r[i].length===v.nargs[i])&&(r[i]=void 0)),n===c()?r[i]=c(r[i]):Array.isArray(r[i])?u&&o&&s?r[i]=D["flatten-duplicate-arrays"]?r[i].concat(n):(Array.isArray(r[i][0])?r[i]:[r[i]]).concat([n]):u||Boolean(o)!==Boolean(s)?r[i]=r[i].concat([n]):r[i]=n:void 0===r[i]&&o?r[i]=s?n:[n]:!u||void 0===r[i]||U(i,v.counts)||U(i,v.bools)?r[i]=n:r[i]=[r[i],n]}function U(e,t){const n=[].concat(v.aliases[e]||[],e),r=Object.keys(t),i=n.find(e=>r.includes(e));return!!i&&t[i]}function W(e){const t=Object.keys(v);return[].concat(t.map(e=>v[e])).some(function(t){return Array.isArray(t)?t.includes(e):t[e]})}function G(e){return D["unknown-options-as-args"]&&function(e){return!(e=e.replace(/^-{3,}/,"--")).match(F)&&(!function(e){if(e.match(F)||!e.match(/^-[^-]+/))return!1;let t,n=!0;const r=e.slice(1).split("");for(let i=0;i<r.length;i++){if(t=e.slice(i+2),!W(r[i])){n=!1;break}if(r[i+1]&&"="===r[i+1]||"-"===t||/[A-Za-z]/.test(r[i])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(t)||r[i+1]&&r[i+1].match(/\W/))break}return n}(e)&&!function(e,...t){return[].concat(...t).some(function(t){const n=e.match(t);return n&&W(n[1])})}(e,/^-+([^=]+?)=[\s\S]*$/,_,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/))}(e)}function z(e){return U(e,v.bools)||U(e,v.counts)||!(`${e}`in d)?(t=function(e){let t=r.BOOLEAN;return U(e,v.strings)?t=r.STRING:U(e,v.numbers)?t=r.NUMBER:U(e,v.bools)?t=r.BOOLEAN:U(e,v.arrays)&&(t=r.ARRAY),t}(e),{[r.BOOLEAN]:!0,[r.STRING]:"",[r.NUMBER]:void 0,[r.ARRAY]:[]}[t]):d[e];var t}function H(e){return void 0===e}return $(O,!0),$(O,!1),function(e){const t=Object.create(null);I(t,v.aliases,d),Object.keys(v.configs).forEach(function(n){const r=e[n]||t[n];if(r)try{let e=null;const t=l.resolve(l.cwd(),r),i=v.configs[n];if("function"==typeof i){try{e=i(t)}catch(t){e=t}if(e instanceof Error)return void(w=e)}else e=l.require(t);L(e)}catch(t){"PermissionDenied"===t.name?w=t:e[n]&&(w=Error(E("Invalid JSON config file: %s",r)))}})}(O),void 0!==p&&p.forEach(function(e){L(e)}),I(O,v.aliases,d,!0),function(e){let t;const n=new Set;Object.keys(e).forEach(function(r){if(!n.has(r)&&(t=U(r,v.coercions),"function"==typeof t))try{const i=N(r,t(e[r]));[].concat(v.aliases[r]||[],r).forEach(t=>{n.add(t),e[t]=i})}catch(e){w=e}})}(O),D["set-placeholder-key"]&&function(e){v.keys.forEach(t=>{~t.indexOf(".")||void 0===e[t]&&(e[t]=void 0)})}(O),Object.keys(v.counts).forEach(function(e){R(O,e.split("."))||M(e,0)}),m&&A.length&&(O[y]=[]),A.forEach(function(e){O[y].push(e)}),D["camel-case-expansion"]&&D["strip-dashed"]&&Object.keys(O).filter(e=>"--"!==e&&e.includes("-")).forEach(e=>{delete O[e]}),D["strip-aliased"]&&[].concat(...Object.keys(f).map(e=>f[e])).forEach(e=>{D["camel-case-expansion"]&&e.includes("-")&&delete O[e.split(".").map(e=>s(e)).join(".")],delete O[e]}),{aliases:Object.assign({},v.aliases),argv:Object.assign(S,O),configuration:D,defaulted:Object.assign({},C),error:w,newAliases:Object.assign({},b)}}}({cwd:process.cwd,env:()=>m,format:i.format,normalize:o.normalize,resolve:o.resolve,require:e=>n(421)(e)}),b=function(e,t){return y.parse(e.slice(),t).argv};b.detailed=function(e,t){return y.parse(e.slice(),t)},b.camelCase=s,b.decamelize=u,b.looksLikeNumber=a,e.exports=b},842(e){e.exports={ParseMode:{ONLY_ARKTS_PARSE:"-a",ONLY_NATIVE_PARSE:"-n",ARKTS_AND_NATIVE_PARSE:"-m",HELP:"-h"},CrashType:{ArkTs:"ArkTs",ASan_Native:"ASan_Native",NonAsan_Native:"NonAsan_Native",Other:"Other"},ARKTS_CRASH_PATTERN:/\([^)]*:[0-9]+:[0-9]+\)\s*$/,END_OF_LINE:/\r?\n/,UNSUPPORTED_CHAR:/[`~!@#$^&*=|{};,\[\]<>?~!@#¥……&*()——|{}【】‘;:。,、?]/,UTF8:"utf8",IGNORE_STACK_INFO:"libc++_shared.so"}},857(e){"use strict";e.exports=require("os")},880(e){"use strict";e.exports=({onlyFirst:e=!1}={})=>{const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}},896(e){"use strict";e.exports=require("fs")},928(e){"use strict";e.exports=require("path")},942(e,t,n){function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(r(e)+" is not iterable")}function o(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}}function s(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return u(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,o=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function a(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var a=r&&r.prototype instanceof u?r:u,c=Object.create(a.prototype);return l(c,"_invoke",function(n,r,i){var o,u,a,l=0,c=i||[],h=!1,f={p:0,n:0,v:e,a:D,f:D.bind(e,4),d:function(t,n){return o=t,u=0,a=e,f.n=n,s}};function D(n,r){for(u=n,a=r,t=0;!h&&l&&!i&&t<c.length;t++){var i,o=c[t],D=f.p,d=o[2];n>3?(i=d===r)&&(a=o[(u=o[4])?5:(u=3,3)],o[4]=o[5]=e):o[0]<=D&&((i=n<2&&D<o[1])?(u=0,f.v=r,f.n=o[1]):D<d&&(i=n<3||o[0]>r||r>d)&&(o[4]=n,o[5]=r,f.n=d,u=0))}if(i||n>1)return s;throw h=!0,r}return function(i,c,d){if(l>1)throw TypeError("Generator is already running");for(h&&1===c&&D(c,d),u=c,a=d;(t=u<2?e:a)||!h;){o||(u?u<3?(u>1&&(f.n=-1),D(u,a)):f.n=a:f.v=a);try{if(l=2,o){if(u||(i="next"),t=o[i]){if(!(t=t.call(o,a)))throw TypeError("iterator result is not an object");if(!t.done)return t;a=t.value,u<2&&(u=0)}else 1===u&&(t=o.return)&&t.call(o),u<2&&(a=TypeError("The iterator does not provide a '"+i+"' method"),u=1);o=e}else if((t=(h=f.n<0)?a:n.call(r,f))!==s)break}catch(t){o=e,u=1,a=t}finally{l=1}}return{value:t,done:h}}}(n,i,o),!0),c}var s={};function u(){}function c(){}function h(){}t=Object.getPrototypeOf;var f=[][r]?t(t([][r]())):(l(t={},r,function(){return this}),t),D=h.prototype=u.prototype=Object.create(f);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,l(e,i,"GeneratorFunction")),e.prototype=Object.create(D),e}return c.prototype=h,l(D,"constructor",h),l(h,"constructor",c),c.displayName="GeneratorFunction",l(h,i,"GeneratorFunction"),l(D),l(D,i,"Generator"),l(D,r,function(){return this}),l(D,"toString",function(){return"[object Generator]"}),(a=function(){return{w:o,m:d}})()}function l(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}l=function(e,t,n,r){function o(t,n){l(e,t,function(e){return this._invoke(t,n,e)})}t?i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(o("next",0),o("throw",1),o("return",2))},l(e,t,n,r)}function c(e,t,n,r,i,o,s){try{var u=e[o](s),a=u.value}catch(e){return void n(e)}u.done?t(a):Promise.resolve(a).then(r,i)}function h(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function s(e){c(o,r,i,s,u,"next",e)}function u(e){c(o,r,i,s,u,"throw",e)}s(void 0)})}}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,d(r.key),r)}}function D(e,t,n){return t&&f(e.prototype,t),n&&f(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function d(e){var t=function(e){if("object"!=r(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==r(t)?t:t+""}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var g,m,y,b,C,E,v,F=n(665),_=n(896),w=n(857),A=n(928),O=n(481),S=n(722).hideBin,k=n(349).splitNumber,j=n(842),x=j.ParseMode,M=j.CrashType,B=j.ARKTS_CRASH_PATTERN,P=j.END_OF_LINE,N=j.UNSUPPORTED_CHAR,L=j.UTF8,$=j.IGNORE_STACK_INFO,I=n(353),R=I.isNonASanNativeCrash,T=I.isASanNativeCrash,U=I.processNativeCrashLine,W=I.processSoLibsMap,G=n(427).processNameObfuscation,z=D(function e(t,n,r,i,o){p(this,e),this.source=t,this.methodName=n,this.line=r,this.column=i,this.isParsed=o}),H=D(function e(t,n,r){p(this,e),this.lineToColumnMap=t,this.entry_package_info=n,this.package_info=r}),q="",V=new Map,Y=new Map,K=new Map,J=!1,Q=O(S(process.argv)).help(!1).version("5.1.0").alias("version","v").argv;try{O(S(process.argv)).wrap(200).usage("Usage: hstack [-i <crash-dir>] [-c <crash-info>] [-o <output-path>] [-s <sourcemap-dir>] [--so <so-dir>] [-n <nameObfuscation-dir>]").strict().option("i",{alias:"input",describe:"Specify a crash file directory (optional)",type:"string"}).option("o",{alias:"output",describe:"Specify an output path (optional)",type:"string"}).option("c",{alias:"crash",describe:"Specify a crash line (optional)",type:"string"}).option("s",{alias:"sourcemapDir",describe:"Specify a sourcemap file directory(optional)",type:"string"}).option("so",{alias:"soDir",describe:"Specify a shared object file(.so) directory (optional)",type:"string"}).option("n",{alias:"nameObfuscation",describe:"Specify a nameObfuscation file directory (optional)",type:"string"}).coerce("i",function(e){if(Z(Q),Q.i&&!e)throw new Error("Option -i requires a value.");if(Array.isArray(e))throw new Error("Option -i only need one value.");return X(e),y=e,C=e,e}).coerce("c",function(e){if(Z(Q),Q.c&&!e)throw new Error("Option -c requires a value.");if(Array.isArray(e))throw new Error("Option -c only need one value.");return b=e,e}).coerce("o",function(e){if(Q.o&&!e)throw new Error("Option -o requires a value.");if(Array.isArray(e))throw new Error("Option -o only need one value");return X(e),C=e,e}).coerce("s",function(e){if(Q.s&&!e)throw new Error("Option -s requires a value.");if(Array.isArray(e))throw new Error("Option -s only need one value");return X(e),m=e,e}).coerce("so",function(e){if(Q.so&&!e)throw new Error("Option --so requires a value.");if(Array.isArray(e))throw new Error("Option --so only need one value");return X(e),E=e,e}).coerce("n",function(e){if(Q.n&&!e)throw new Error("Option -n requires a value.");if(Array.isArray(e))throw new Error("Option -n only need one value");return X(e),v=e,e}).help().alias("help","h").check(function(){return Z(Q)}).argv}catch(e){console.log("Error",e.message)}function Z(e){if((e.i||e.input)&&(e.c||e.crash)||!e.i&&!e.input&&!e.c&&!e.crash)throw new Error("You must provide either -i or -c, and not both.");return!0}function X(e){if(N.test(e))throw new Error("Special characters are not supported.")}function ee(e){process.env.ADDR2LINE_PATH?q=process.env.ADDR2LINE_PATH:(console.warn("Cannot get 'ADDR2LINE_PATH' from environment variable, c++ crash log will not be transferred."),e===x.ONLY_NATIVE_PARSE&&process.exit(1))}function te(){return(te=h(a().m(function e(){var t;return a().w(function(e){for(;;)switch(e.n){case 0:if(!m){e.n=2;break}return e.n=1,re(m,oe,V);case 1:ne(Q)&&console.log("Finish process sourcemap files.");case 2:if(!E){e.n=4;break}return e.n=3,re(E,W,Y);case 3:ne(Q)&&console.log("Finish process shared object files.");case 4:if(!v){e.n=6;break}return e.n=5,re(v,G,K);case 5:J=!0,ne(Q)&&console.log("Finish process nameCache files.");case 6:if(!y){e.n=8;break}return e.n=7,ue(y,C);case 7:e.n=9;break;case 8:b&&(t=le(b),C?(_.existsSync(C)&&_.statSync(C).isDirectory()&&(console.log("Error: Cannot write the result to a directory; please provide a file instead."),process.exit(1)),_.writeFile(C,t,L,function(e){e&&console.error(e.message)})):console.log(t));case 9:ne(Q)&&console.log("Finish stack parse.");case 10:return e.a(2)}},e)}))).apply(this,arguments)}function ne(e){return!(e.c&&!e.o)}function re(e,t,n){return ie.apply(this,arguments)}function ie(){return(ie=h(a().m(function e(t,n,r){var i,o,u,l,c,h,f,D;return a().w(function(e){for(;;)switch(e.p=e.n){case 0:try{i=_.readdirSync(t)}catch(e){console.error(e.message),process.exit(1)}o=s(i),e.p=1,o.s();case 2:if((u=o.n()).done){e.n=9;break}if(l=u.value,e.p=3,c=A.join(t,l),!(h=_.statSync(c)).isDirectory()){e.n=4;break}return e.n=4,re(c,n,r);case 4:if(h.isFile()){e.n=5;break}return e.a(3,8);case 5:return e.n=6,n(t,l,r);case 6:e.n=8;break;case 7:e.p=7,f=e.v,console.error(f.message);case 8:e.n=2;break;case 9:e.n=11;break;case 10:e.p=10,D=e.v,o.e(D);case 11:return e.p=11,o.f(),e.f(11);case 12:return e.a(2)}},e,null,[[3,7],[1,10,11,12]])}))).apply(this,arguments)}function oe(e,t,n){return se.apply(this,arguments)}function se(){return se=h(a().m(function e(t,n,r){var s,u,l,c,h,f,D,d;return a().w(function(e){for(;;)switch(e.p=e.n){case 0:if(e.p=0,n.endsWith(".map")){e.n=1;break}return e.a(2);case 1:s=A.join(t,n),u=_.readFileSync(s,L),l=JSON.parse(u),c=a().m(function e(){var t,n,i;return a().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,new F.SourceMapConsumer(l[h]);case 1:t=e.v,n=new Map,t.eachMapping(function(e){if(n.has(e.generatedLine))n.get(e.generatedLine).set(e.generatedColumn,e);else{var t=new Map;t.set(e.generatedColumn,e),n.set(e.generatedLine,t)}}),i=new H(n,l[h]["entry-package-info"],l[h]["package-info"]),r.set(h,i);case 2:return e.a(2)}},e)}),f=o(l);case 2:if((D=f()).done){e.n=4;break}return h=D.value,e.d(i(c()),3);case 3:e.n=2;break;case 4:e.n=6;break;case 5:e.p=5,d=e.v,console.error("%s : %s",A.join(t,n),d.message);case 6:return e.a(2)}},e,null,[[0,5]])})),se.apply(this,arguments)}function ue(e,t){return ae.apply(this,arguments)}function ae(){return ae=h(a().m(function e(t,n){return a().w(function(e){for(;;)switch(e.n){case 0:return _.existsSync(n)||_.mkdirSync(n),e.n=1,_.readdir(t,function(e,r){e&&(console.error(e),process.exit(1)),r.forEach(function(e){var r=A.join(n,"_"+e),i=A.join(t,e);_.readFile(i,L,function(){var e=h(a().m(function e(t,n){var i,o,u,l,c,h,f;return a().w(function(e){for(;;)switch(e.n){case 0:if(!t){e.n=1;break}return console.error(t),e.a(2);case 1:i=[],o=n.split(P),u=s(o);try{for(u.s();!(l=u.n()).done;)c=l.value,h=le(c),i.push(h)}catch(e){u.e(e)}finally{u.f()}f=i.join(w.EOL),_.writeFile(r,f,L,function(e){e&&console.error(e.message)});case 2:return e.a(2)}},e)}));return function(t,n){return e.apply(this,arguments)}}())})});case 1:return e.a(2)}},e)})),ae.apply(this,arguments)}function le(e){var t="";switch(function(e){return function(e){return B.test(e)}(e)&&g!==x.ONLY_NATIVE_PARSE?M.ArkTs:-1!==e.indexOf($)?M.Other:T(e)&&g!==x.ONLY_ARKTS_PARSE?M.ASan_Native:R(e)&&g!==x.ONLY_ARKTS_PARSE?M.NonAsan_Native:M.Other}(e)){case M.ArkTs:t=function(e,t,n,r){var i=function(e){for(var t,n=e.split(" "),r=0;r<n.length;r++)"at"===n[r]&&(t=n[r+1]);var i=e.indexOf("(")+1,o=e.lastIndexOf(")"),s=k(e.substring(i,o));return new z(s.name,t,s.firstNumber,s.secondNumber)}(n);if(!e.get(i.source)||!e.get(i.source).lineToColumnMap)return n;e.get(i.source).lineToColumnMap;var o=ce(e,i,r);return n.substring(0,n.indexOf("at")+3).concat(o.methodName," (",o.source,":",o.line,":",o.column,")")}(V,0,e,J);break;case M.ASan_Native:t=U(q,Y,e,!0);break;case M.NonAsan_Native:t=U(q,Y,e,!1);break;case M.Other:t=e}return t}function ce(e,t,n){if(!V.get(t.source))return t;var r,i=V.get(t.source).lineToColumnMap;if(i.has(t.line)){var o,s=i.get(t.line);if(s.has(t.column))o=s.get(t.column);else{var u=function(e,t){for(var n=0,r=e.length;n<r;){var i=n+r>>1;t<e[i]?r=i:n=i+1}return(n-=1)<0?e[0]:e[n]}(Array.from(s.keys()),t.column);o=s.get(u)}var a=t.methodName;if(n&&K.has(o.source)&&(a=K.get(o.source).getMethodName(t.methodName,o.originalLine)),r=new z(o.source,a,o.originalLine,o.originalColumn+1,!0),V.get(t.source).package_info){var l=function(e,t){var n=e.substring(e.lastIndexOf("oh_modules")+11).split("/");if(-1===e.indexOf("oh_modules")||n.length<=2)return e;-1!==n.shift().indexOf("@")&&n.shift();var r=n.join("/");return t.split("|").shift().concat("|").concat(t).concat("|").concat(r)}(r.source,V.get(t.source).package_info),c=ce(e,new z(l,a,r.line,r.originalColumn,!1),n);return c.isParsed?c:r}}else r=t;return r}m&&E?ee(g=x.ARKTS_AND_NATIVE_PARSE):m?g=x.ONLY_ARKTS_PARSE:E?ee(g=x.ONLY_NATIVE_PARSE):(console.log("You need provide a sourcemap file directory or a so file directory"),O.showHelp(),process.exit(1)),function(){te.apply(this,arguments)}()},991(e,t,n){const r=n(576);function i(){this.generatedLine=0,this.generatedColumn=0,this.lastGeneratedColumn=null,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}let o=null;e.exports=function(){if(o)return o;const e=[];return o=r().then(t=>WebAssembly.instantiate(t,{env:{mapping_callback(t,n,r,o,s,u,a,l,c,h){const f=new i;f.generatedLine=t+1,f.generatedColumn=n,r&&(f.lastGeneratedColumn=o-1),s&&(f.source=u,f.originalLine=a+1,f.originalColumn=l,c&&(f.name=h)),e[e.length-1](f)},start_all_generated_locations_for(){console.time("all_generated_locations_for")},end_all_generated_locations_for(){console.timeEnd("all_generated_locations_for")},start_compute_column_spans(){console.time("compute_column_spans")},end_compute_column_spans(){console.timeEnd("compute_column_spans")},start_generated_location_for(){console.time("generated_location_for")},end_generated_location_for(){console.timeEnd("generated_location_for")},start_original_location_for(){console.time("original_location_for")},end_original_location_for(){console.timeEnd("original_location_for")},start_parse_mappings(){console.time("parse_mappings")},end_parse_mappings(){console.timeEnd("parse_mappings")},start_sort_by_generated_location(){console.time("sort_by_generated_location")},end_sort_by_generated_location(){console.timeEnd("sort_by_generated_location")},start_sort_by_original_location(){console.time("sort_by_original_location")},end_sort_by_original_location(){console.timeEnd("sort_by_original_location")}}})).then(t=>({exports:t.instance.exports,withMappingCallback:(t,n)=>{e.push(t);try{n()}finally{e.pop()}}})).then(null,e=>{throw o=null,e}),o}}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={id:r,loaded:!1,exports:{}};return e[r](o,o.exports,n),o.loaded=!0,o.exports}n.c=t,n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),n(n.s=942)})();
@@ -0,0 +1 @@
1
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
@@ -0,0 +1,129 @@
1
+ # 非崩溃型白屏分析(White-Screen Analyzer)
2
+
3
+ 受理**进程存活但界面空白**的白屏:冷启动白屏、`Navigation` 跳转后白屏、`pop`/`clear`
4
+ 后白屏。这类故障通常没有 JSCrash 签名、编译也能通过,因此**不走 faultlog 分诊链路**,
5
+ 以 source-first 检视为主。本 Analyzer 在以下情形被加载:
6
+
7
+ - 用户口述页面空白但应用未退出(无日志、无复现要求);
8
+ - 采集流程未取得任何 crash 日志、且症状为"空白但存活"(此时不得判定运行时健康,
9
+ 也不得进入"证据不足请重试"的采集死循环——直接切换本路径)。
10
+
11
+ 基于当前工程与用户显式提供的证据诊断;不得依据无关工程推断修复。当用户明确表示
12
+ "先别复现,直接定位"时,直接走本路径的 source-first 流程,不索要日志、不要求连接设备。
13
+
14
+ ## 聚焦检视顺序
15
+
16
+ 按症状收窄检视范围,不做全工程宽泛读取。
17
+
18
+ ### 冷启动白屏
19
+
20
+ 1. 读 `entry/src/main/module.json5` 引用的页面元数据,通常是
21
+ `resources/base/profile/main_pages.json`。
22
+ 2. 读 `EntryAbility.ets`,比对 `windowStage.loadContent(...)` 传入的字面量与已注册
23
+ 页面、实际存在的 `.ets` 文件。
24
+ 3. 读入口页,检视其根 `Navigation`、初始 `NavPathStack` 与可见子内容。
25
+ 4. 在入口页与路由常量中搜索 `hideNavBar`、`navDestination`、`pushPath`、
26
+ `pushPathByName`。
27
+
28
+ ### 点击 / push / pop / clear 后白屏
29
+
30
+ 1. 从复现步骤指名的点击处理器出发,记录其路由名。
31
+ 2. 找到持有它的 `NavPathStack` 与 `Navigation(...).navDestination(...)` builder。
32
+ 3. 先核对名称相等性、builder 分发与 `NavDestination` 根,再读无关页面。
33
+
34
+ 对不熟悉的行为,用聚焦关键词查询本地 HarmonyOS 文档:
35
+
36
+ ```bash
37
+ devecocli docs search Navigation 白屏 hideNavBar NavDestination
38
+ devecocli docs search loadContent main_pages 页面路径
39
+ devecocli docs search pushPathByName 路由 空白
40
+ ```
41
+
42
+ 读取搜索返回的 documentId;不得假设固定 documentId 在每个文档版本中都存在。
43
+
44
+ ## 高信号模式
45
+
46
+ ### 1. `loadContent` 指向缺失或未注册的页面
47
+
48
+ 证据:
49
+
50
+ - `windowStage.loadContent('pages/Index', ...)`
51
+ - `main_pages.json` 注册的是 `pages/IndexPage`
52
+ - `pages/IndexPage.ets` 存在而 `pages/Index.ets` 不存在
53
+
54
+ 修复 `loadContent` 字面量为精确的已注册页面路径。不得创建重复的占位入口页。
55
+
56
+ ### 2. `hideNavBar(true)` 隐藏了唯一启动内容
57
+
58
+ `Navigation` 有首页/NavBar 内容区与 `NavDestination` 栈。启动时栈为空、且预期首页就在
59
+ `Navigation { ... }` 子内容中时,`.hideNavBar(true)` 会隐藏唯一可见内容而呈现白屏。
60
+
61
+ 优先移除 `.hideNavBar(true)`;若意图只是隐藏系统标题栏,改为 `.hideTitleBar(true)`。
62
+ 保留首页作为 `Navigation` 的子内容。
63
+
64
+ 不得为了保住 `.hideNavBar(true)` 而在 `aboutToAppear` 里无条件 push 首页路由、加路由
65
+ 拦截钩子、清空 `Navigation` 子内容——这会改变返回栈行为,且目标 builder 不返回有效
66
+ `NavDestination` 时依然白屏。
67
+
68
+ ### 3. destination builder 不返回 `NavDestination`
69
+
70
+ `Navigation(...).navDestination(builder)` 选中的每个分支都必须以 `NavDestination`
71
+ 为根包裹目标页:
72
+
73
+ ```ets
74
+ @Builder
75
+ pageMap(name: string, param: Object) {
76
+ if (name === RouteName.DETAIL) {
77
+ NavDestination() {
78
+ DetailPage()
79
+ }
80
+ .hideTitleBar(true)
81
+ }
82
+ }
83
+ ```
84
+
85
+ 包裹只针对被 push 的目标页。正常首页组件是 `Navigation { ... }` 的直接子内容
86
+ (NavBar 内容),不得仅因其位置而额外包裹。
87
+
88
+ ### 4. 多个 `.navDestination(...)` 注册互相竞争
89
+
90
+ 不得按路由逐个链式注册 `.navDestination(builderA).navDestination(builderB)`。
91
+ `navDestination` 只接受一个分发器。把竞争注册合并为一个按 `name` 分支的 builder,
92
+ 并确保每个分支返回 `NavDestination` 根。
93
+
94
+ ### 5. 路由名或注册不匹配
95
+
96
+ 将 `pushPath`/`pushPathByName` 传入的精确名称与以下各项逐一比对:
97
+
98
+ - destination builder 中的分支名
99
+ - 路由常量
100
+ - 使用系统路由表时的表项
101
+ - 相关时的 module 类型与跨模块路由配置
102
+
103
+ 修复不匹配的名称或注册;不得用兜底页掩盖缺陷。
104
+
105
+ ## 证据与验证契约
106
+
107
+ 三种结论分开表述,不得混同:
108
+
109
+ - **根因匹配**:源码证据命中上述不变式之一,且改动直接恢复该不变式。
110
+ - **构建验证**:改动后 `devecocli check arkts` 和/或 `devecocli build` 成功。
111
+ 构建成功**不能**证明界面可见。
112
+ - **运行时验证**:受影响的启动或跳转路径被实际执行,且有设备/UI 内容证据或自动化
113
+ 视觉断言显示预期非空内容。
114
+
115
+ 运行时验证不可得时,明确说明"源码级修复与构建已完成,但白屏是否消失未验证"。
116
+ 进程成功启动或无崩溃日志**不构成**视觉证据。
117
+
118
+ ## 输出格式要求
119
+
120
+ 报告正文遵循主 Skill 交付节的路由规则(会话内只回简洁摘要,正文经
121
+ `export_report.py --type white_screen` 落盘 HTML),章节结构如下:
122
+
123
+ 1. `# 非崩溃型白屏分析报告` —— 标题
124
+ 2. `## 症状与检视路径` —— 白屏发生时机(冷启动/跳转/返回)、进程存活状态、
125
+ 所走的检视顺序与命中的检视步骤
126
+ 3. `## 根因分析` —— 命中的高信号模式编号与源码证据(文件:行号 + 关键代码)
127
+ 4. `## 修复建议` —— 遵循最小改动约束,按模式的修复方向给出源码 diff
128
+ 5. `## 验证状态` —— 按三档契约明确标注(根因匹配/构建验证/运行时验证),
129
+ 运行时未验证时必须如实声明