testeranto 0.202.0 → 0.205.0

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 (1119) hide show
  1. package/.vscode/settings.json +1 -0
  2. package/Dockerfile.golang +14 -0
  3. package/Dockerfile.mothership +11 -0
  4. package/Dockerfile.node +9 -0
  5. package/Dockerfile.python +19 -0
  6. package/Dockerfile.web +9 -0
  7. package/README.md +26 -1
  8. package/UX/chache/index.md +11 -0
  9. package/bundle.js +2 -11
  10. package/dist/cjs-shim.js +2 -0
  11. package/dist/common/example/Calculator.js +105 -0
  12. package/dist/common/example/Calculator.test.adapter.js +39 -0
  13. package/dist/common/example/Calculator.test.implementation.js +50 -0
  14. package/dist/common/example/Calculator.test.js +11 -0
  15. package/dist/common/example/Calculator.test.specification.js +92 -0
  16. package/dist/common/example/Calculator.test.types.js +3 -0
  17. package/dist/common/scripts/build-example.js +105 -0
  18. package/dist/common/src/Helpo.js +55 -0
  19. package/dist/common/src/Init.js +9 -1
  20. package/dist/common/src/Node.js +0 -1
  21. package/dist/common/src/PM/golingvuBuild.js +46 -0
  22. package/dist/common/src/PM/pitonoBuild.js +46 -0
  23. package/dist/common/src/PM/utils.js +8 -1
  24. package/dist/common/src/PM/web.js +4 -8
  25. package/dist/common/src/Pure.js +0 -14
  26. package/dist/common/src/Pure.test.js +1 -6
  27. package/dist/common/src/Web.js +1 -35
  28. package/dist/common/src/WebSidecar.js +0 -1
  29. package/dist/common/src/app/FileService.js +25 -0
  30. package/dist/common/src/app/api.js +73 -0
  31. package/dist/common/src/app/backend/PM_0.js +317 -0
  32. package/dist/common/src/app/backend/PM_1_WithProcesses.js +922 -0
  33. package/dist/common/src/app/backend/PM_2_WithTCP.js +244 -0
  34. package/dist/common/src/app/backend/PM_WithBuild.js +120 -0
  35. package/dist/common/src/app/backend/PM_WithEslintAndTsc.js +133 -0
  36. package/dist/common/src/app/backend/PM_WithGit.js +586 -0
  37. package/dist/common/src/app/backend/PM_WithHelpo.js +257 -0
  38. package/dist/common/src/app/backend/PM_WithProcesses.js +1083 -0
  39. package/dist/common/src/app/backend/PM_WithTCP.js +388 -0
  40. package/dist/common/src/app/backend/getAllFilesRecursively.js +22 -0
  41. package/dist/common/src/app/backend/main.js +804 -0
  42. package/dist/common/src/app/backend/makePrompt.js +73 -0
  43. package/dist/common/src/app/backend/utils.js +144 -0
  44. package/dist/common/src/app/frontend/App.js +206 -0
  45. package/dist/common/src/app/frontend/DevelopmentFileService.js +98 -0
  46. package/dist/common/src/app/frontend/GitFileService.js +262 -0
  47. package/dist/common/src/app/frontend/GitHubAuthService.js +184 -0
  48. package/dist/common/src/app/frontend/api.js +93 -0
  49. package/dist/common/src/app/frontend/components/DesignEditorPage.js +208 -0
  50. package/dist/common/src/app/frontend/components/SunriseAnimation.js +291 -0
  51. package/dist/common/src/app/frontend/components/SunriseAnimation.test/interface.js +68 -0
  52. package/dist/common/src/app/frontend/components/pure/AppFrame.js +177 -0
  53. package/dist/common/src/app/frontend/components/pure/GitHubLoginButton.js +18 -0
  54. package/dist/common/src/app/frontend/components/pure/GitIntegrationView.js +383 -0
  55. package/dist/common/src/app/frontend/components/pure/HelpoChatDrawer.js +179 -0
  56. package/dist/common/src/app/frontend/components/pure/MagicRobotModal.js +73 -0
  57. package/dist/common/src/app/frontend/components/pure/ModalContent.test/index.js +61 -0
  58. package/dist/common/src/app/frontend/components/pure/NavBar.js +45 -0
  59. package/dist/common/src/app/frontend/components/pure/ProcessDetails.js +49 -0
  60. package/dist/common/src/app/frontend/components/pure/ProcessInput.js +62 -0
  61. package/dist/common/src/app/frontend/components/pure/ProcessList.js +52 -0
  62. package/dist/common/src/app/frontend/components/pure/ProcessLogs.js +67 -0
  63. package/dist/common/src/app/frontend/components/pure/ProcessManager.js +113 -0
  64. package/dist/common/src/app/frontend/components/pure/ProcessManagerView.js +82 -0
  65. package/dist/common/src/app/frontend/components/pure/ProcessManagerViewTypes.js +2 -0
  66. package/dist/common/src/app/frontend/components/pure/ProcessSidebar.js +56 -0
  67. package/dist/common/src/app/frontend/components/pure/ProcessTerminal.js +62 -0
  68. package/dist/common/src/app/frontend/components/pure/ProjectPageView.js +69 -0
  69. package/dist/common/src/app/frontend/components/pure/ProjectPageView.test/implementation.js +185 -0
  70. package/dist/common/src/app/frontend/components/pure/Settings.js +122 -0
  71. package/dist/common/src/app/frontend/components/pure/Settings.test.js +30 -0
  72. package/dist/common/src/app/frontend/components/pure/SignIn.js +22 -0
  73. package/dist/common/src/app/frontend/components/pure/SingleProcessView.js +126 -0
  74. package/dist/common/src/app/frontend/components/pure/TerminalInput.js +76 -0
  75. package/dist/common/src/app/frontend/components/pure/TerminalLogs.js +80 -0
  76. package/dist/common/src/app/frontend/components/stateful/DratoPage.js +319 -0
  77. package/dist/common/src/app/frontend/components/stateful/FeaturesReporter.js +22 -0
  78. package/dist/common/src/app/frontend/components/stateful/GenericXMLEditor/AttributeEditor.js +51 -0
  79. package/dist/common/src/app/frontend/components/stateful/GenericXMLEditor/Drawer.js +152 -0
  80. package/dist/common/src/app/frontend/components/stateful/GenericXMLEditor/GenericPreview.js +156 -0
  81. package/dist/common/src/app/frontend/components/stateful/GenericXMLEditor/GenericTextEditor.js +169 -0
  82. package/dist/common/src/app/frontend/components/stateful/GenericXMLEditor/GenericTree.js +30 -0
  83. package/dist/common/src/app/frontend/components/stateful/GenericXMLEditorPage.js +306 -0
  84. package/dist/common/src/app/frontend/components/stateful/GitIntegrationPage.js +252 -0
  85. package/dist/common/src/app/frontend/components/stateful/GrafeoPage.js +437 -0
  86. package/dist/common/src/app/frontend/components/stateful/ProcessManagerPage.js +113 -0
  87. package/dist/common/src/app/frontend/components/stateful/ProjectPage.js +108 -0
  88. package/dist/common/src/app/frontend/components/stateful/ProjectsPage.js +136 -0
  89. package/dist/common/src/app/frontend/components/stateful/SVGEditor/CircleForm.js +24 -0
  90. package/dist/common/src/app/frontend/components/stateful/SVGEditor/GroupForm.js +22 -0
  91. package/dist/common/src/app/frontend/components/stateful/SVGEditor/RectForm.js +25 -0
  92. package/dist/common/src/app/frontend/components/stateful/SVGEditor/SVGAttributeField.js +15 -0
  93. package/dist/common/src/app/frontend/components/stateful/SVGEditor/SVGAttributesEditor.js +87 -0
  94. package/dist/common/src/app/frontend/components/stateful/SVGEditor/SVGEditorControls.js +23 -0
  95. package/dist/common/src/app/frontend/components/stateful/SVGEditor/SVGElementForm.js +23 -0
  96. package/dist/common/src/app/frontend/components/stateful/SVGEditor/SVGPreview.js +178 -0
  97. package/dist/common/src/app/frontend/components/stateful/SVGEditor/SVGTextEditor.js +155 -0
  98. package/dist/common/src/app/frontend/components/stateful/SVGEditor/SVGTree.js +105 -0
  99. package/dist/common/src/app/frontend/components/stateful/SVGEditor/SVGTypes.js +2 -0
  100. package/dist/common/src/app/frontend/components/stateful/SVGEditorPage.js +437 -0
  101. package/dist/common/src/app/frontend/components/stateful/SingleProcessPage.js +134 -0
  102. package/dist/common/src/app/frontend/components/stateful/SkriboPage.js +517 -0
  103. package/dist/common/src/app/frontend/fetchDataUtil.js +187 -0
  104. package/dist/common/src/app/frontend/flua/FluaPage.js +378 -0
  105. package/dist/common/src/app/frontend/testPage/ITestPageViewProps.js +2 -0
  106. package/dist/common/src/app/frontend/testPage/ProjectsTree.js +179 -0
  107. package/dist/common/src/app/frontend/testPage/TestPage.js +85 -0
  108. package/dist/common/src/app/frontend/testPage/TestPageLeftContent.js +48 -0
  109. package/dist/common/src/app/frontend/testPage/TestPageMainContent.js +82 -0
  110. package/dist/common/src/app/frontend/testPage/TestPageNavbar.js +33 -0
  111. package/dist/common/src/app/frontend/testPage/TestPageView.js +352 -0
  112. package/dist/common/src/app/frontend/testPage/TestPageView.test/implementation.js +158 -0
  113. package/dist/common/src/app/frontend/testPage/TestPageView.test/index.js +15 -0
  114. package/dist/common/src/app/frontend/testPage/TestPageView.test/specification.js +27 -0
  115. package/dist/common/src/app/frontend/testPage/TestPageView_utils.js +128 -0
  116. package/dist/common/src/app/frontend/useFileSystemSync.js +108 -0
  117. package/dist/common/src/app/frontend/useFs.js +15 -0
  118. package/dist/common/src/app/frontend/useGitMode.js +20 -0
  119. package/dist/common/src/app/frontend/useTerminalWebSocket.js +44 -0
  120. package/dist/common/src/app/frontend/useWebSocket.js +16 -0
  121. package/dist/common/src/app/types.js +2 -0
  122. package/dist/common/src/builders/golang.js +30 -0
  123. package/dist/common/src/builders/node.js +35 -0
  124. package/dist/common/src/builders/python.js +28 -0
  125. package/dist/common/src/builders/web.js +35 -0
  126. package/dist/common/src/esbuildConfigs/node.js +3 -1
  127. package/dist/common/src/lib/BaseGiven.js +95 -18
  128. package/dist/common/src/lib/BaseSuite.js +55 -8
  129. package/dist/common/src/lib/BaseSuite.test/test.js +58 -103
  130. package/dist/common/src/lib/BaseThen.js +28 -29
  131. package/dist/common/src/lib/BaseWhen.js +7 -5
  132. package/dist/common/src/lib/Tiposkripto.js +26 -11
  133. package/dist/common/src/lib/Tiposkripto.test/MockTiposkripto.js +35 -45
  134. package/dist/common/src/lib/Tiposkripto.test/Tiposkripto.implementation.js +15 -13
  135. package/dist/common/src/lib/Tiposkripto.test/Tiposkripto.specification.js +8 -5
  136. package/dist/common/src/lib/pmProxy.js +0 -33
  137. package/dist/common/src/lib/pmProxy.test/implementation.js +83 -90
  138. package/dist/common/src/lib/pmProxy.test/index.js +1 -3
  139. package/dist/common/src/lib/pmProxy.test/mockPM.js +1 -0
  140. package/dist/common/src/lib/pmProxy.test/specification.js +0 -1
  141. package/dist/common/src/mothership/index.js +164 -2
  142. package/dist/common/src/mothership/test.js +4 -2
  143. package/dist/common/src/testeranto.js +96 -97
  144. package/dist/common/src/utils/generateGolingvuMetafile.js +157 -0
  145. package/dist/common/src/utils/golingvuMetafile/fileDiscovery.js +142 -0
  146. package/dist/common/src/utils/golingvuMetafile/goList.js +103 -0
  147. package/dist/common/src/utils/golingvuMetafile/helpers.js +68 -0
  148. package/dist/common/src/utils/golingvuMetafile/importParser.js +89 -0
  149. package/dist/common/src/utils/golingvuMetafile/types.js +3 -0
  150. package/dist/common/src/utils/golingvuMetafile.js +7 -114
  151. package/dist/common/src/utils/golingvuWatcher.js +233 -0
  152. package/dist/common/src/utils/logFiles.js +9 -1
  153. package/dist/common/src/utils/pitonoMetafile.js +222 -42
  154. package/dist/common/src/utils/pitonoWatcher.js +130 -0
  155. package/dist/common/src/utils/writeGolingvuMetafile.js +324 -0
  156. package/dist/common/testeranto.config.js +28 -39
  157. package/dist/common/tsconfig.common.tsbuildinfo +1 -1
  158. package/dist/module/example/Calculator.js +101 -0
  159. package/dist/module/example/Calculator.test.adapter.js +36 -0
  160. package/dist/module/example/Calculator.test.implementation.js +47 -0
  161. package/dist/module/example/Calculator.test.js +6 -0
  162. package/dist/module/example/Calculator.test.specification.js +88 -0
  163. package/dist/module/example/Calculator.test.types.js +2 -0
  164. package/dist/module/scripts/build-example.js +100 -0
  165. package/dist/module/src/Helpo.js +48 -0
  166. package/dist/module/src/Init.js +9 -1
  167. package/dist/module/src/Node.js +0 -1
  168. package/dist/module/src/PM/golingvuBuild.js +42 -0
  169. package/dist/module/src/PM/pitonoBuild.js +42 -0
  170. package/dist/module/src/PM/utils.js +8 -1
  171. package/dist/module/src/PM/web.js +4 -8
  172. package/dist/module/src/Pure.js +0 -14
  173. package/dist/module/src/Pure.test.js +1 -6
  174. package/dist/module/src/Web.js +1 -35
  175. package/dist/module/src/WebSidecar.js +0 -1
  176. package/dist/module/src/app/FileService.js +21 -0
  177. package/dist/module/src/app/api.js +70 -0
  178. package/dist/module/src/app/backend/PM_0.js +310 -0
  179. package/dist/module/src/app/backend/PM_1_WithProcesses.js +882 -0
  180. package/dist/module/src/app/backend/PM_2_WithTCP.js +237 -0
  181. package/dist/module/src/app/backend/PM_WithBuild.js +113 -0
  182. package/dist/module/src/app/backend/PM_WithEslintAndTsc.js +126 -0
  183. package/dist/module/src/app/backend/PM_WithGit.js +546 -0
  184. package/dist/module/src/app/backend/PM_WithHelpo.js +250 -0
  185. package/dist/module/src/app/backend/PM_WithProcesses.js +1083 -0
  186. package/dist/module/src/app/backend/PM_WithTCP.js +381 -0
  187. package/dist/module/src/app/backend/getAllFilesRecursively.js +16 -0
  188. package/dist/module/src/app/backend/main.js +764 -0
  189. package/dist/module/src/app/backend/makePrompt.js +66 -0
  190. package/dist/module/src/app/backend/utils.js +131 -0
  191. package/dist/module/src/app/frontend/App.js +164 -0
  192. package/dist/module/src/app/frontend/DevelopmentFileService.js +91 -0
  193. package/dist/module/src/app/frontend/GitFileService.js +258 -0
  194. package/dist/module/src/app/frontend/GitHubAuthService.js +180 -0
  195. package/dist/module/src/app/frontend/api.js +87 -0
  196. package/dist/module/src/app/frontend/components/DesignEditorPage.js +171 -0
  197. package/dist/module/src/app/frontend/components/SunriseAnimation.js +256 -0
  198. package/dist/module/src/app/frontend/components/SunriseAnimation.test/interface.js +32 -0
  199. package/dist/module/src/app/frontend/components/pure/AppFrame.js +140 -0
  200. package/dist/module/src/app/frontend/components/pure/GitHubLoginButton.js +11 -0
  201. package/dist/module/src/app/frontend/components/pure/GitIntegrationView.js +346 -0
  202. package/dist/module/src/app/frontend/components/pure/HelpoChatDrawer.js +142 -0
  203. package/dist/module/src/app/frontend/components/pure/MagicRobotModal.js +66 -0
  204. package/dist/module/src/app/frontend/components/pure/ModalContent.test/index.js +56 -0
  205. package/dist/module/src/app/frontend/components/pure/NavBar.js +38 -0
  206. package/dist/module/src/app/frontend/components/pure/ProcessDetails.js +42 -0
  207. package/dist/module/src/app/frontend/components/pure/ProcessInput.js +25 -0
  208. package/dist/module/src/app/frontend/components/pure/ProcessList.js +45 -0
  209. package/dist/module/src/app/frontend/components/pure/ProcessLogs.js +30 -0
  210. package/dist/module/src/app/frontend/components/pure/ProcessManager.js +76 -0
  211. package/dist/module/src/app/frontend/components/pure/ProcessManagerView.js +45 -0
  212. package/dist/module/src/app/frontend/components/pure/ProcessSidebar.js +49 -0
  213. package/dist/module/src/app/frontend/components/pure/ProcessTerminal.js +25 -0
  214. package/dist/module/src/app/frontend/components/pure/ProjectPageView.js +62 -0
  215. package/dist/module/src/app/frontend/components/pure/ProjectPageView.test/implementation.js +182 -0
  216. package/dist/module/src/app/frontend/components/pure/Settings.js +85 -0
  217. package/dist/module/src/app/frontend/components/pure/Settings.test.js +30 -0
  218. package/dist/module/src/app/frontend/components/pure/SignIn.js +15 -0
  219. package/dist/module/src/app/frontend/components/pure/SingleProcessView.js +126 -0
  220. package/dist/module/src/app/frontend/components/pure/TerminalInput.js +39 -0
  221. package/dist/module/src/app/frontend/components/pure/TerminalLogs.js +43 -0
  222. package/dist/module/src/app/frontend/components/stateful/DratoPage.js +282 -0
  223. package/dist/module/src/app/frontend/components/stateful/FeaturesReporter.js +22 -0
  224. package/dist/module/src/app/frontend/components/stateful/GenericXMLEditor/AttributeEditor.js +44 -0
  225. package/dist/module/src/app/frontend/components/stateful/GenericXMLEditor/Drawer.js +115 -0
  226. package/dist/module/src/app/frontend/components/stateful/GenericXMLEditor/GenericPreview.js +119 -0
  227. package/dist/module/src/app/frontend/components/stateful/GenericXMLEditor/GenericTextEditor.js +132 -0
  228. package/dist/module/src/app/frontend/components/stateful/GenericXMLEditor/GenericTree.js +23 -0
  229. package/dist/module/src/app/frontend/components/stateful/GenericXMLEditorPage.js +269 -0
  230. package/dist/module/src/app/frontend/components/stateful/GitIntegrationPage.js +215 -0
  231. package/dist/module/src/app/frontend/components/stateful/GrafeoPage.js +400 -0
  232. package/dist/module/src/app/frontend/components/stateful/ProcessManagerPage.js +76 -0
  233. package/dist/module/src/app/frontend/components/stateful/ProjectPage.js +71 -0
  234. package/dist/module/src/app/frontend/components/stateful/ProjectsPage.js +99 -0
  235. package/dist/module/src/app/frontend/components/stateful/SVGEditor/CircleForm.js +17 -0
  236. package/dist/module/src/app/frontend/components/stateful/SVGEditor/GroupForm.js +15 -0
  237. package/dist/module/src/app/frontend/components/stateful/SVGEditor/RectForm.js +18 -0
  238. package/dist/module/src/app/frontend/components/stateful/SVGEditor/SVGAttributeField.js +8 -0
  239. package/dist/module/src/app/frontend/components/stateful/SVGEditor/SVGAttributesEditor.js +50 -0
  240. package/dist/module/src/app/frontend/components/stateful/SVGEditor/SVGEditorControls.js +16 -0
  241. package/dist/module/src/app/frontend/components/stateful/SVGEditor/SVGElementForm.js +16 -0
  242. package/dist/module/src/app/frontend/components/stateful/SVGEditor/SVGPreview.js +141 -0
  243. package/dist/module/src/app/frontend/components/stateful/SVGEditor/SVGTextEditor.js +118 -0
  244. package/dist/module/src/app/frontend/components/stateful/SVGEditor/SVGTree.js +68 -0
  245. package/dist/module/src/app/frontend/components/stateful/SVGEditor/SVGTypes.js +1 -0
  246. package/dist/module/src/app/frontend/components/stateful/SVGEditorPage.js +400 -0
  247. package/dist/module/src/app/frontend/components/stateful/SingleProcessPage.js +134 -0
  248. package/dist/module/src/app/frontend/components/stateful/SkriboPage.js +510 -0
  249. package/dist/module/src/app/frontend/fetchDataUtil.js +187 -0
  250. package/dist/module/src/app/frontend/flua/FluaPage.js +341 -0
  251. package/dist/module/src/app/frontend/testPage/ITestPageViewProps.js +1 -0
  252. package/dist/module/src/app/frontend/testPage/ProjectsTree.js +142 -0
  253. package/dist/module/src/app/frontend/testPage/TestPage.js +48 -0
  254. package/dist/module/src/app/frontend/testPage/TestPageLeftContent.js +11 -0
  255. package/dist/module/src/app/frontend/testPage/TestPageMainContent.js +75 -0
  256. package/dist/module/src/app/frontend/testPage/TestPageNavbar.js +26 -0
  257. package/dist/module/src/app/frontend/testPage/TestPageView.js +315 -0
  258. package/dist/module/src/app/frontend/testPage/TestPageView.test/implementation.js +122 -0
  259. package/dist/module/src/app/frontend/testPage/TestPageView.test/index.js +10 -0
  260. package/dist/module/src/app/frontend/testPage/TestPageView.test/specification.js +23 -0
  261. package/dist/module/src/app/frontend/testPage/TestPageView_utils.js +120 -0
  262. package/dist/module/src/app/frontend/useFileSystemSync.js +108 -0
  263. package/dist/module/src/app/frontend/useFs.js +11 -0
  264. package/dist/module/src/app/frontend/useGitMode.js +16 -0
  265. package/dist/module/src/app/frontend/useTerminalWebSocket.js +40 -0
  266. package/dist/module/src/app/frontend/useWebSocket.js +12 -0
  267. package/dist/module/src/app/types.js +1 -0
  268. package/dist/module/src/builders/golang.js +28 -0
  269. package/dist/module/src/builders/node.js +33 -0
  270. package/dist/module/src/builders/python.js +26 -0
  271. package/dist/module/src/builders/web.js +33 -0
  272. package/dist/module/src/esbuildConfigs/node.js +3 -1
  273. package/dist/module/src/lib/BaseGiven.js +95 -18
  274. package/dist/module/src/lib/BaseSuite.js +55 -8
  275. package/dist/module/src/lib/BaseSuite.test/test.js +58 -103
  276. package/dist/module/src/lib/BaseThen.js +28 -29
  277. package/dist/module/src/lib/BaseWhen.js +7 -5
  278. package/dist/module/src/lib/Tiposkripto.js +26 -11
  279. package/dist/module/src/lib/Tiposkripto.test/MockTiposkripto.js +35 -45
  280. package/dist/module/src/lib/Tiposkripto.test/Tiposkripto.implementation.js +15 -13
  281. package/dist/module/src/lib/Tiposkripto.test/Tiposkripto.specification.js +8 -5
  282. package/dist/module/src/lib/pmProxy.js +0 -33
  283. package/dist/module/src/lib/pmProxy.test/implementation.js +83 -90
  284. package/dist/module/src/lib/pmProxy.test/index.js +1 -3
  285. package/dist/module/src/lib/pmProxy.test/mockPM.js +1 -0
  286. package/dist/module/src/lib/pmProxy.test/specification.js +0 -1
  287. package/dist/module/src/mothership/index.js +164 -2
  288. package/dist/module/src/mothership/test.js +4 -2
  289. package/dist/module/src/testeranto.js +94 -95
  290. package/dist/module/src/utils/generateGolingvuMetafile.js +151 -0
  291. package/dist/module/src/utils/golingvuMetafile/fileDiscovery.js +136 -0
  292. package/dist/module/src/utils/golingvuMetafile/goList.js +97 -0
  293. package/dist/module/src/utils/golingvuMetafile/helpers.js +59 -0
  294. package/dist/module/src/utils/golingvuMetafile/importParser.js +83 -0
  295. package/dist/module/src/utils/golingvuMetafile/types.js +2 -0
  296. package/dist/module/src/utils/golingvuMetafile.js +6 -109
  297. package/dist/module/src/utils/golingvuWatcher.js +226 -0
  298. package/dist/module/src/utils/logFiles.js +9 -1
  299. package/dist/module/src/utils/pitonoMetafile.js +224 -44
  300. package/dist/module/src/utils/pitonoWatcher.js +123 -0
  301. package/dist/module/src/utils/writeGolingvuMetafile.js +318 -0
  302. package/dist/module/testeranto.config.js +28 -39
  303. package/dist/module/tsconfig.module.tsbuildinfo +1 -1
  304. package/dist/prebuild/App.css +251 -173
  305. package/dist/prebuild/App.js +20096 -43669
  306. package/dist/prebuild/init-docs.mjs +9 -1
  307. package/dist/prebuild/testeranto.mjs +3635 -2389
  308. package/dist/types/src/Helpo.d.ts +1 -0
  309. package/dist/types/src/PM/golingvuBuild.d.ts +11 -0
  310. package/dist/types/src/PM/pitonoBuild.d.ts +11 -0
  311. package/dist/types/src/PM/web.d.ts +4 -4
  312. package/dist/types/src/Pure.d.ts +1 -1
  313. package/dist/types/src/Pure.test.d.ts +60 -1
  314. package/dist/types/src/Types.d.ts +1 -0
  315. package/dist/types/src/Web.d.ts +1 -1
  316. package/dist/types/src/app/FileService.d.ts +37 -0
  317. package/dist/types/src/app/api.d.ts +37 -0
  318. package/dist/types/src/app/backend/PM_0.d.ts +38 -0
  319. package/dist/types/src/app/backend/PM_1_WithProcesses.d.ts +149 -0
  320. package/dist/types/src/app/backend/PM_2_WithTCP.d.ts +29 -0
  321. package/dist/types/src/app/backend/PM_WithBuild.d.ts +8 -0
  322. package/dist/types/src/app/backend/PM_WithEslintAndTsc.d.ts +22 -0
  323. package/dist/types/src/app/backend/PM_WithGit.d.ts +24 -0
  324. package/dist/types/src/app/backend/PM_WithHelpo.d.ts +43 -0
  325. package/dist/types/src/app/backend/PM_WithTCP.d.ts +41 -0
  326. package/dist/types/src/app/backend/getAllFilesRecursively.d.ts +1 -0
  327. package/dist/types/src/app/backend/main.d.ts +15 -0
  328. package/dist/types/src/app/backend/makePrompt.d.ts +2 -0
  329. package/dist/types/src/app/backend/utils.d.ts +20 -0
  330. package/dist/types/src/app/frontend/App.d.ts +14 -0
  331. package/dist/types/src/app/frontend/DevelopmentFileService.d.ts +25 -0
  332. package/dist/types/src/app/frontend/GitFileService.d.ts +27 -0
  333. package/dist/types/src/app/frontend/api.d.ts +10 -0
  334. package/dist/types/src/app/frontend/components/SunriseAnimation.test/interface.d.ts +11 -0
  335. package/dist/types/src/app/frontend/components/SunriseAnimation.test/types.d.ts +39 -0
  336. package/dist/types/src/app/frontend/components/pure/AppFrame.d.ts +11 -0
  337. package/dist/types/src/app/frontend/components/pure/AppFrame.test/index.d.ts +3 -0
  338. package/dist/types/src/app/frontend/components/pure/FeaturesReporterView.d.ts +7 -0
  339. package/dist/types/src/app/frontend/components/pure/FeaturesReporterView.test/index.d.ts +2 -0
  340. package/dist/types/src/app/frontend/components/pure/GitIntegrationView.d.ts +27 -0
  341. package/dist/types/src/app/frontend/components/pure/HelpoChatDrawer.d.ts +7 -0
  342. package/dist/types/src/app/frontend/components/pure/MagicRobotModal.d.ts +16 -0
  343. package/dist/types/src/app/frontend/components/pure/ModalContent.test/index.d.ts +14 -0
  344. package/dist/types/src/app/frontend/components/pure/ProcessDetails.d.ts +8 -0
  345. package/dist/types/src/app/frontend/components/pure/ProcessInput.d.ts +10 -0
  346. package/dist/types/src/app/frontend/components/pure/ProcessList.d.ts +10 -0
  347. package/dist/types/src/app/frontend/components/pure/ProcessLogs.d.ts +6 -0
  348. package/dist/types/src/app/frontend/components/pure/ProcessManagerView.d.ts +10 -0
  349. package/dist/types/src/app/frontend/components/pure/ProcessManagerViewTypes.d.ts +10 -0
  350. package/dist/types/src/app/frontend/components/pure/ProcessSidebar.d.ts +8 -0
  351. package/dist/types/src/app/frontend/components/pure/ProcessTerminal.d.ts +8 -0
  352. package/dist/types/src/app/frontend/components/pure/ProjectPageView.d.ts +14 -0
  353. package/dist/types/src/app/frontend/components/pure/ProjectPageView.test/implementation.d.ts +3 -0
  354. package/dist/types/src/app/frontend/components/pure/ProjectPageView.test/index.d.ts +17 -0
  355. package/dist/types/src/app/frontend/components/pure/TerminalInput.d.ts +6 -0
  356. package/dist/types/src/app/frontend/components/pure/TerminalLogs.d.ts +6 -0
  357. package/dist/types/src/app/frontend/components/stateful/DratoPage.d.ts +8 -0
  358. package/dist/types/src/app/frontend/components/stateful/GenericXMLEditor/AttributeEditor.d.ts +9 -0
  359. package/dist/types/src/app/frontend/components/stateful/GenericXMLEditor/Drawer.d.ts +12 -0
  360. package/dist/types/src/app/frontend/components/stateful/GenericXMLEditor/GenericPreview.d.ts +11 -0
  361. package/dist/types/src/app/frontend/components/stateful/GenericXMLEditor/GenericTextEditor.d.ts +8 -0
  362. package/dist/types/src/app/frontend/components/stateful/GenericXMLEditor/GenericTree.d.ts +17 -0
  363. package/dist/types/src/app/frontend/components/stateful/GenericXMLEditorPage.d.ts +21 -0
  364. package/dist/types/src/app/frontend/components/stateful/GrafeoPage.d.ts +8 -0
  365. package/dist/types/src/app/frontend/components/stateful/SVGEditor/CircleForm.d.ts +8 -0
  366. package/dist/types/src/app/frontend/components/stateful/SVGEditor/GroupForm.d.ts +8 -0
  367. package/dist/types/src/app/frontend/components/stateful/SVGEditor/RectForm.d.ts +8 -0
  368. package/dist/types/src/app/frontend/components/stateful/SVGEditor/SVGAttributeField.d.ts +9 -0
  369. package/dist/types/src/app/frontend/components/stateful/SVGEditor/SVGAttributesEditor.d.ts +9 -0
  370. package/dist/types/src/app/frontend/components/stateful/SVGEditor/SVGEditorControls.d.ts +9 -0
  371. package/dist/types/src/app/frontend/components/stateful/SVGEditor/SVGElementForm.d.ts +9 -0
  372. package/dist/types/src/app/frontend/components/stateful/SVGEditor/SVGPreview.d.ts +12 -0
  373. package/dist/types/src/app/frontend/components/stateful/SVGEditor/SVGTextEditor.d.ts +8 -0
  374. package/dist/types/src/app/frontend/components/stateful/SVGEditor/SVGTree.d.ts +20 -0
  375. package/dist/types/src/app/frontend/components/stateful/SVGEditor/SVGTypes.d.ts +30 -0
  376. package/dist/types/src/app/frontend/components/stateful/SVGEditorPage.d.ts +7 -0
  377. package/dist/types/src/app/frontend/components/stateful/SkriboPage.d.ts +1 -0
  378. package/dist/types/src/app/frontend/flua/FluaPage.d.ts +2 -0
  379. package/dist/types/src/app/frontend/testPage/ITestPageViewProps.d.ts +14 -0
  380. package/dist/types/src/app/frontend/testPage/ProjectsTree.d.ts +17 -0
  381. package/dist/types/src/app/frontend/testPage/TestPageLeftContent.d.ts +14 -0
  382. package/dist/types/src/app/frontend/testPage/TestPageMainContent.d.ts +7 -0
  383. package/dist/types/src/app/frontend/testPage/TestPageNavbar.d.ts +7 -0
  384. package/dist/types/src/app/frontend/testPage/TestPageView.d.ts +2 -0
  385. package/dist/types/src/app/frontend/testPage/TestPageView.test/implementation.d.ts +13 -0
  386. package/dist/types/src/app/frontend/testPage/TestPageView.test/index.d.ts +13 -0
  387. package/dist/types/src/app/frontend/testPage/TestPageView.test/specification.d.ts +11 -0
  388. package/dist/types/src/app/frontend/testPage/TestPageView.test/types.d.ts +65 -0
  389. package/dist/types/src/app/frontend/testPage/TestPageView_utils.d.ts +23 -0
  390. package/dist/types/src/app/frontend/useFs.d.ts +2 -0
  391. package/dist/types/src/app/frontend/useTerminalWebSocket.d.ts +4 -0
  392. package/dist/types/src/app/frontend/useWebSocket.d.ts +8 -0
  393. package/dist/types/src/app/types.d.ts +1 -0
  394. package/dist/types/src/builders/golang.d.ts +1 -0
  395. package/dist/types/src/builders/node.d.ts +1 -0
  396. package/dist/types/src/builders/python.d.ts +1 -0
  397. package/dist/types/src/builders/web.d.ts +1 -0
  398. package/dist/types/src/lib/BaseGiven.d.ts +3 -3
  399. package/dist/types/src/lib/BaseSuite.d.ts +4 -3
  400. package/dist/types/src/lib/BaseSuite.test/pure.test.d.ts +2 -1
  401. package/dist/types/src/lib/BaseSuite.test/web.test.d.ts +2 -1
  402. package/dist/types/src/lib/BaseThen.d.ts +2 -0
  403. package/dist/types/src/lib/BaseWhen.d.ts +2 -0
  404. package/dist/types/src/lib/pmProxy.test/mockPMBase.d.ts +1 -1
  405. package/dist/types/src/utils/generateGolingvuMetafile.d.ts +2 -0
  406. package/dist/types/src/utils/golingvuMetafile/fileDiscovery.d.ts +1 -0
  407. package/dist/types/src/utils/golingvuMetafile/goList.d.ts +2 -0
  408. package/dist/types/src/utils/golingvuMetafile/helpers.d.ts +7 -0
  409. package/dist/types/src/utils/golingvuMetafile/importParser.d.ts +5 -0
  410. package/dist/types/src/utils/golingvuMetafile/types.d.ts +66 -0
  411. package/dist/types/src/utils/golingvuMetafile.d.ts +4 -19
  412. package/dist/types/src/utils/golingvuWatcher.d.ts +14 -0
  413. package/dist/types/src/utils/logFiles.d.ts +29 -1
  414. package/dist/types/src/utils/pitonoMetafile.d.ts +18 -3
  415. package/dist/types/src/utils/pitonoWatcher.d.ts +13 -0
  416. package/dist/types/src/utils/writeGolingvuMetafile.d.ts +2 -0
  417. package/dist/types/tsconfig.types.tsbuildinfo +1 -1
  418. package/docker-compose.yml +74 -0
  419. package/docs/testing.prompt.txt +5 -1
  420. package/example/Calculator.go +99 -0
  421. package/example/Calculator.golingvu.adapter.go +81 -0
  422. package/example/Calculator.golingvu.implementation.go +144 -0
  423. package/example/Calculator.golingvu.specification.go +68 -0
  424. package/example/Calculator.golingvu.test.go +216 -0
  425. package/example/Calculator.pitono.adapter.py +68 -0
  426. package/example/Calculator.pitono.implementation.py +30 -0
  427. package/example/Calculator.pitono.specification.py +154 -0
  428. package/example/Calculator.pitono.test.py +132 -0
  429. package/example/Calculator.py +93 -0
  430. package/example/Calculator.test.adapter.ts +46 -0
  431. package/example/Calculator.test.implementation.ts +55 -0
  432. package/example/Calculator.test.specification.ts +213 -0
  433. package/example/Calculator.test.ts +13 -0
  434. package/example/Calculator.test.types.ts +50 -0
  435. package/example/Calculator.ts +114 -0
  436. package/example/README.md +1 -0
  437. package/example/__pycache__/Calculator.cpython-313.pyc +0 -0
  438. package/example/go.mod +7 -0
  439. package/example/go.sum +2 -0
  440. package/example/requirements.txt +9 -0
  441. package/example/single-kanban-process.xml +9 -0
  442. package/example/test_example.py +143 -74
  443. package/example/vendor/github.com/adamwong246/testeranto/src/golingvu/LICENSE +21 -0
  444. package/example/vendor/github.com/adamwong246/testeranto/src/golingvu/golingvu.go +398 -63
  445. package/example/vendor/modules.txt +1 -2
  446. package/go.mod +6 -1
  447. package/go.sum +2 -0
  448. package/golingvu.tmp.txt +68 -0
  449. package/log.txt +39 -0
  450. package/package.json +61 -44
  451. package/scripts/build-example.ts +106 -0
  452. package/src/Helpo.tsx +89 -0
  453. package/src/Init.ts +9 -1
  454. package/src/Node.ts +0 -1
  455. package/src/NodeSidecar.ts +0 -8
  456. package/src/PM/__tests__/nodeSidecar.testeranto.ts +4 -1
  457. package/src/PM/golingvuBuild.ts +56 -0
  458. package/src/PM/pitonoBuild.ts +56 -0
  459. package/src/PM/types.ts +1 -0
  460. package/src/PM/utils.ts +7 -1
  461. package/src/PM/web.ts +8 -24
  462. package/src/Pure.test.ts +18 -9
  463. package/src/Pure.ts +1 -16
  464. package/src/Types.ts +1 -0
  465. package/src/Web.ts +2 -38
  466. package/src/WebSidecar.ts +1 -1
  467. package/src/app/FileService.ts +91 -0
  468. package/src/app/api.ts +75 -0
  469. package/src/app/backend/PM_0.ts +392 -0
  470. package/src/app/backend/PM_1_WithProcesses.ts +1186 -0
  471. package/src/app/backend/PM_2_WithTCP.ts +283 -0
  472. package/src/app/backend/PM_WithBuild.ts +148 -0
  473. package/src/app/backend/PM_WithEslintAndTsc.ts +194 -0
  474. package/src/app/backend/PM_WithGit.ts +662 -0
  475. package/src/app/backend/PM_WithHelpo.ts +340 -0
  476. package/src/app/backend/PM_WithProcesses.ts +1247 -0
  477. package/src/app/backend/PM_WithTCP.ts +777 -0
  478. package/src/app/backend/getAllFilesRecursively.ts +17 -0
  479. package/src/app/backend/main.ts +1011 -0
  480. package/src/app/backend/makePrompt.ts +92 -0
  481. package/src/app/backend/utils.ts +202 -0
  482. package/src/app/frontend/App.tsx +242 -0
  483. package/src/app/frontend/DevelopmentFileService.ts +117 -0
  484. package/src/app/frontend/GitFileService.ts +285 -0
  485. package/src/app/frontend/GitHubAuthService.ts +241 -0
  486. package/src/app/frontend/api.ts +108 -0
  487. package/src/app/frontend/app.scss +119 -0
  488. package/src/app/frontend/components/DesignEditorPage.tsx +210 -0
  489. package/src/app/frontend/components/SunriseAnimation.test/interface.ts +50 -0
  490. package/src/app/frontend/components/SunriseAnimation.test/types.ts +53 -0
  491. package/src/app/frontend/components/SunriseAnimation.tsx +350 -0
  492. package/src/app/frontend/components/pure/AppFrame.tsx +445 -0
  493. package/src/app/frontend/components/pure/FeaturesReporterView.tsx +38 -0
  494. package/src/app/frontend/components/pure/GitHubLoginButton.tsx +32 -0
  495. package/src/app/frontend/components/pure/GitIntegrationView.tsx +727 -0
  496. package/src/app/frontend/components/pure/HelpoChatDrawer.tsx +223 -0
  497. package/src/app/frontend/components/pure/MagicRobotModal.tsx +135 -0
  498. package/src/app/frontend/components/pure/ModalContent.test/index.tsx +68 -0
  499. package/src/app/frontend/components/pure/NavBar.tsx +119 -0
  500. package/src/app/frontend/components/pure/ProcessDetails.tsx +99 -0
  501. package/src/app/frontend/components/pure/ProcessInput.tsx +67 -0
  502. package/src/app/frontend/components/pure/ProcessList.tsx +89 -0
  503. package/src/app/frontend/components/pure/ProcessLogs.tsx +54 -0
  504. package/src/app/frontend/components/pure/ProcessManager.tsx +109 -0
  505. package/src/app/frontend/components/pure/ProcessManagerView.tsx +89 -0
  506. package/src/app/frontend/components/pure/ProcessManagerViewTypes.ts +10 -0
  507. package/src/app/frontend/components/pure/ProcessSidebar.tsx +88 -0
  508. package/src/app/frontend/components/pure/ProcessTerminal.tsx +55 -0
  509. package/src/app/frontend/components/pure/ProjectPageView.test/implementation.tsx +216 -0
  510. package/src/app/frontend/components/pure/ProjectPageView.tsx +165 -0
  511. package/src/app/frontend/components/pure/Settings.test.tsx +34 -0
  512. package/src/app/frontend/components/pure/Settings.tsx +171 -0
  513. package/src/app/frontend/components/pure/SignIn.tsx +33 -0
  514. package/src/app/frontend/components/pure/SingleProcessView.tsx +140 -0
  515. package/src/app/frontend/components/pure/TerminalInput.tsx +73 -0
  516. package/src/app/frontend/components/pure/TerminalLogs.tsx +80 -0
  517. package/src/app/frontend/components/stateful/DratoPage.tsx +457 -0
  518. package/src/app/frontend/components/stateful/FeaturesReporter.tsx +27 -0
  519. package/src/app/frontend/components/stateful/GenericXMLEditor/AttributeEditor.tsx +105 -0
  520. package/src/app/frontend/components/stateful/GenericXMLEditor/Drawer.tsx +174 -0
  521. package/src/app/frontend/components/stateful/GenericXMLEditor/GenericPreview.tsx +234 -0
  522. package/src/app/frontend/components/stateful/GenericXMLEditor/GenericTextEditor.tsx +173 -0
  523. package/src/app/frontend/components/stateful/GenericXMLEditor/GenericTree.tsx +105 -0
  524. package/src/app/frontend/components/stateful/GenericXMLEditorPage.tsx +455 -0
  525. package/src/app/frontend/components/stateful/GitIntegrationPage.tsx +256 -0
  526. package/src/app/frontend/components/stateful/GrafeoPage.tsx +563 -0
  527. package/src/app/frontend/components/stateful/ProcessManagerPage.tsx +110 -0
  528. package/src/app/frontend/components/stateful/ProjectPage.tsx +94 -0
  529. package/src/app/frontend/components/stateful/ProjectsPage.tsx +129 -0
  530. package/src/app/frontend/components/stateful/SVGEditor/SVGAttributesEditor.tsx +91 -0
  531. package/src/app/frontend/components/stateful/SVGEditor/SVGPreview.tsx +227 -0
  532. package/src/app/frontend/components/stateful/SVGEditorPage.tsx +517 -0
  533. package/src/app/frontend/components/stateful/SingleProcessPage.tsx +144 -0
  534. package/src/app/frontend/components/stateful/SkriboPage.tsx +577 -0
  535. package/src/app/frontend/fetchDataUtil.ts +206 -0
  536. package/src/app/frontend/flua/FluaPage.tsx +458 -0
  537. package/src/app/frontend/flua/agile.xsd +32 -0
  538. package/src/app/frontend/flua/core.xsd +42 -0
  539. package/src/app/frontend/flua/kanban.xsd +21 -0
  540. package/src/app/frontend/flua/scrum.xsd +35 -0
  541. package/src/app/frontend/testPage/ITestPageViewProps.ts +14 -0
  542. package/src/app/frontend/testPage/ProjectsTree.tsx +329 -0
  543. package/src/app/frontend/testPage/TestPage.tsx +75 -0
  544. package/src/app/frontend/testPage/TestPageLeftContent.tsx +54 -0
  545. package/src/app/frontend/testPage/TestPageMainContent.tsx +181 -0
  546. package/src/app/frontend/testPage/TestPageNavbar.tsx +52 -0
  547. package/src/app/frontend/testPage/TestPageView.test/implementation.ts +209 -0
  548. package/src/app/frontend/testPage/TestPageView.test/index.tsx +22 -0
  549. package/src/app/frontend/testPage/TestPageView.test/specification.ts +60 -0
  550. package/src/app/frontend/testPage/TestPageView.test/types.ts +92 -0
  551. package/src/app/frontend/testPage/TestPageView.tsx +481 -0
  552. package/src/app/frontend/testPage/TestPageView_utils.tsx +301 -0
  553. package/src/app/frontend/testPage/index.md +14 -0
  554. package/src/app/frontend/useFileSystemSync.ts +117 -0
  555. package/src/app/frontend/useFs.ts +16 -0
  556. package/src/app/frontend/useGitMode.ts +21 -0
  557. package/src/app/frontend/useTerminalWebSocket.ts +56 -0
  558. package/src/app/frontend/useWebSocket.ts +20 -0
  559. package/src/app/trash +1697 -0
  560. package/src/app/types.ts +1 -0
  561. package/src/builders/golang.ts +29 -0
  562. package/src/builders/node.ts +34 -0
  563. package/src/builders/python.ts +28 -0
  564. package/src/builders/web.ts +34 -0
  565. package/src/cjs-shim.js +2 -0
  566. package/src/esbuildConfigs/node.ts +1 -1
  567. package/src/golingvu/PM/golang_test.go +103 -0
  568. package/src/golingvu/README.md +186 -2
  569. package/src/golingvu/base_given.go +110 -24
  570. package/src/golingvu/base_suite.go +54 -8
  571. package/src/golingvu/base_then.go +2 -2
  572. package/src/golingvu/base_when.go +2 -2
  573. package/src/golingvu/go.mod +6 -0
  574. package/src/golingvu/golingvu.go +683 -32
  575. package/src/golingvu/types.go +0 -14
  576. package/src/graphml.xsd +345 -0
  577. package/src/helpo/directives.md +5 -0
  578. package/src/helpo/prompt.txt +38 -0
  579. package/src/lib/BaseGiven.ts +106 -32
  580. package/src/lib/BaseSuite.test/test.ts +92 -180
  581. package/src/lib/BaseSuite.ts +60 -10
  582. package/src/lib/BaseThen.ts +36 -37
  583. package/src/lib/BaseWhen.ts +12 -13
  584. package/src/lib/Tiposkripto.test/MockTiposkripto.ts +59 -63
  585. package/src/lib/Tiposkripto.test/Tiposkripto.implementation.ts +33 -20
  586. package/src/lib/Tiposkripto.test/Tiposkripto.specification.ts +9 -8
  587. package/src/lib/Tiposkripto.ts +27 -15
  588. package/src/lib/pmProxy.test/implementation.ts +112 -117
  589. package/src/lib/pmProxy.test/index.ts +2 -2
  590. package/src/lib/pmProxy.test/mockPM.ts +1 -0
  591. package/src/lib/pmProxy.test/mockPMBase.ts +1 -1
  592. package/src/lib/pmProxy.test/specification.ts +0 -2
  593. package/src/lib/pmProxy.test/types.ts +1 -0
  594. package/src/lib/pmProxy.ts +0 -37
  595. package/src/mothership/index.ts +197 -2
  596. package/src/mothership/test.ts +5 -5
  597. package/src/pitono/PM/__pycache__/python.cpython-313.pyc +0 -0
  598. package/src/pitono/PM/python.py +168 -0
  599. package/src/pitono/Pitono.py +444 -0
  600. package/src/pitono/PitonoTest.py +25 -0
  601. package/src/pitono/README.md +21 -0
  602. package/src/pitono/__init__.py +6 -0
  603. package/src/pitono/__pycache__/Pitono.cpython-313.pyc +0 -0
  604. package/src/pitono/__pycache__/__init__.cpython-313.pyc +0 -0
  605. package/src/pitono/__pycache__/base_given.cpython-313.pyc +0 -0
  606. package/src/pitono/__pycache__/base_suite.cpython-313.pyc +0 -0
  607. package/src/pitono/__pycache__/base_then.cpython-313.pyc +0 -0
  608. package/src/pitono/__pycache__/base_when.cpython-313.pyc +0 -0
  609. package/src/pitono/__pycache__/core_generator.cpython-313.pyc +0 -0
  610. package/src/pitono/__pycache__/simple_adapter.cpython-313.pyc +0 -0
  611. package/src/pitono/__pycache__/types.cpython-313.pyc +0 -0
  612. package/src/pitono/base_given.py +178 -0
  613. package/src/pitono/base_suite.py +149 -0
  614. package/src/pitono/base_then.py +65 -0
  615. package/src/pitono/base_when.py +67 -0
  616. package/src/pitono/pitono.egg-info/PKG-INFO +42 -0
  617. package/src/pitono/pitono.egg-info/SOURCES.txt +8 -0
  618. package/src/pitono/types.py +87 -0
  619. package/src/style.scss +261 -2
  620. package/src/testeranto.ts +120 -153
  621. package/src/utils/generateGolingvuMetafile.ts +196 -0
  622. package/src/utils/golingvuMetafile/fileDiscovery.ts +157 -0
  623. package/src/utils/golingvuMetafile/goList.ts +106 -0
  624. package/src/utils/golingvuMetafile/helpers.ts +65 -0
  625. package/src/utils/golingvuMetafile/importParser.ts +97 -0
  626. package/src/utils/golingvuMetafile/types.ts +78 -0
  627. package/src/utils/golingvuMetafile.ts +6 -163
  628. package/src/utils/golingvuWatcher.ts +280 -0
  629. package/src/utils/logFiles.ts +10 -2
  630. package/src/utils/pitonoMetafile.ts +328 -58
  631. package/src/utils/pitonoWatcher.ts +150 -0
  632. package/src/utils/writeGolingvuMetafile.ts +386 -0
  633. package/testeranto/App.css +251 -173
  634. package/testeranto/App.js +20080 -43664
  635. package/testeranto/bundles/golang/core/example/Calculator.golingvu.test +58 -0
  636. package/testeranto/bundles/node/core/example/Calculator.test.mjs +5481 -122
  637. package/testeranto/bundles/python/core/Calculator.pitono.test.py +1 -1
  638. package/testeranto/helpo_chat_history.json +1 -0
  639. package/testeranto/metafiles/golang/core.json +144 -49
  640. package/testeranto/metafiles/node/core.json +92 -583
  641. package/testeranto/metafiles/python/core.json +50 -9
  642. package/testeranto/reports/core/config.json +5 -61
  643. package/testeranto/reports/core/example/Calculator.golingvu.test/golang/exit.log +1 -0
  644. package/testeranto/reports/core/example/Calculator.golingvu.test/golang/stderr.log +7 -0
  645. package/testeranto/reports/core/example/Calculator.pitono.test/python/message.txt +16 -0
  646. package/testeranto/reports/core/example/Calculator.pitono.test/python/prompt.txt +13 -0
  647. package/testeranto/reports/core/example/Calculator.pitono.test/python/stdout.log +26 -0
  648. package/testeranto/reports/core/example/Calculator.pitono.test/python/tests.json +255 -0
  649. package/testeranto/reports/core/example/Calculator.test/node/lint_errors.txt +2 -0
  650. package/testeranto/reports/core/example/Calculator.test/node/message.txt +16 -0
  651. package/testeranto/reports/core/example/Calculator.test/node/prompt.txt +13 -0
  652. package/testeranto/reports/core/example/Calculator.test/node/stderr.log +566 -0
  653. package/testeranto/reports/core/example/Calculator.test/node/tests.json +1163 -0
  654. package/testeranto/reports/core/example/Calculator.test/node/type_errors.txt +26 -0
  655. package/testeranto/reports/core/summary.json +7 -47
  656. package/testeranto.config.ts +33 -43
  657. package/tsc.log +305 -370
  658. package/dist/common/src/App.js +0 -219
  659. package/dist/common/src/PM/PM_WithBuild.js +0 -135
  660. package/dist/common/src/PM/PM_WithEslintAndTsc.js +0 -204
  661. package/dist/common/src/PM/PM_WithGit.js +0 -517
  662. package/dist/common/src/PM/PM_WithProcesses.js +0 -519
  663. package/dist/common/src/PM/PM_WithWebSocket.js +0 -535
  664. package/dist/common/src/PM/base.js +0 -319
  665. package/dist/common/src/PM/main.js +0 -672
  666. package/dist/common/src/PM/metafileOutputs.js +0 -78
  667. package/dist/common/src/ReportServer.js +0 -1
  668. package/dist/common/src/ReportServer.test.ts/index.js +0 -78
  669. package/dist/common/src/ReportServerLib.js +0 -1
  670. package/dist/common/src/components/DesignEditorPage.js +0 -205
  671. package/dist/common/src/components/SunriseAnimation.js +0 -291
  672. package/dist/common/src/components/SunriseAnimation.test/interface.js +0 -68
  673. package/dist/common/src/components/pure/AppFrame.js +0 -81
  674. package/dist/common/src/components/pure/GitHubLoginButton.js +0 -18
  675. package/dist/common/src/components/pure/GitIntegrationView.js +0 -342
  676. package/dist/common/src/components/pure/ModalContent.test/index.js +0 -58
  677. package/dist/common/src/components/pure/NavBar.js +0 -44
  678. package/dist/common/src/components/pure/ProcessManager.js +0 -113
  679. package/dist/common/src/components/pure/ProcessManagerView.js +0 -236
  680. package/dist/common/src/components/pure/ProjectPageView.js +0 -68
  681. package/dist/common/src/components/pure/ProjectPageView.test/implementation.js +0 -184
  682. package/dist/common/src/components/pure/Settings.js +0 -121
  683. package/dist/common/src/components/pure/Settings.test.js +0 -34
  684. package/dist/common/src/components/pure/SignIn.js +0 -22
  685. package/dist/common/src/components/pure/SingleProcessView.js +0 -167
  686. package/dist/common/src/components/pure/TestPageView.js +0 -373
  687. package/dist/common/src/components/pure/TestPageView.test/implementation.js +0 -157
  688. package/dist/common/src/components/pure/TestPageView.test/index.js +0 -15
  689. package/dist/common/src/components/pure/TestPageView.test/specification.js +0 -26
  690. package/dist/common/src/components/pure/TestPageView_utils.js +0 -117
  691. package/dist/common/src/components/stateful/FeaturesReporter.js +0 -60
  692. package/dist/common/src/components/stateful/GitIntegrationPage.js +0 -12
  693. package/dist/common/src/components/stateful/ProcessManagerPage.js +0 -110
  694. package/dist/common/src/components/stateful/ProjectPage.js +0 -102
  695. package/dist/common/src/components/stateful/ProjectsPage.js +0 -116
  696. package/dist/common/src/components/stateful/SingleProcessPage.js +0 -137
  697. package/dist/common/src/components/stateful/TestPage.js +0 -270
  698. package/dist/common/src/hooks/useGitMode.js +0 -21
  699. package/dist/common/src/services/FileService.js +0 -505
  700. package/dist/common/src/services/GitHubAuthService.js +0 -184
  701. package/dist/common/src/types/features.js +0 -34
  702. package/dist/common/src/utils/api.js +0 -93
  703. package/dist/common/src/utils/featureUtils.js +0 -29
  704. package/dist/common/src/utils/gitTest.js +0 -27
  705. package/dist/common/src/utils/makePrompt.js +0 -116
  706. package/dist/common/src/utils.js +0 -143
  707. package/dist/module/src/App.js +0 -176
  708. package/dist/module/src/PM/PM_WithBuild.js +0 -128
  709. package/dist/module/src/PM/PM_WithEslintAndTsc.js +0 -197
  710. package/dist/module/src/PM/PM_WithGit.js +0 -477
  711. package/dist/module/src/PM/PM_WithProcesses.js +0 -479
  712. package/dist/module/src/PM/PM_WithWebSocket.js +0 -528
  713. package/dist/module/src/PM/base.js +0 -312
  714. package/dist/module/src/PM/main.js +0 -632
  715. package/dist/module/src/PM/metafileOutputs.js +0 -78
  716. package/dist/module/src/ReportServer.js +0 -1
  717. package/dist/module/src/ReportServer.test.ts/index.js +0 -73
  718. package/dist/module/src/ReportServerLib.js +0 -1
  719. package/dist/module/src/components/DesignEditorPage.js +0 -168
  720. package/dist/module/src/components/SunriseAnimation.js +0 -256
  721. package/dist/module/src/components/SunriseAnimation.test/interface.js +0 -32
  722. package/dist/module/src/components/pure/AppFrame.js +0 -74
  723. package/dist/module/src/components/pure/GitHubLoginButton.js +0 -11
  724. package/dist/module/src/components/pure/GitIntegrationView.js +0 -305
  725. package/dist/module/src/components/pure/ModalContent.test/index.js +0 -53
  726. package/dist/module/src/components/pure/NavBar.js +0 -37
  727. package/dist/module/src/components/pure/ProcessManager.js +0 -76
  728. package/dist/module/src/components/pure/ProcessManagerView.js +0 -199
  729. package/dist/module/src/components/pure/ProjectPageView.js +0 -61
  730. package/dist/module/src/components/pure/ProjectPageView.test/implementation.js +0 -181
  731. package/dist/module/src/components/pure/Settings.js +0 -84
  732. package/dist/module/src/components/pure/Settings.test.js +0 -29
  733. package/dist/module/src/components/pure/SignIn.js +0 -15
  734. package/dist/module/src/components/pure/SingleProcessView.js +0 -130
  735. package/dist/module/src/components/pure/TestPageView.js +0 -336
  736. package/dist/module/src/components/pure/TestPageView.test/implementation.js +0 -121
  737. package/dist/module/src/components/pure/TestPageView.test/index.js +0 -10
  738. package/dist/module/src/components/pure/TestPageView.test/specification.js +0 -22
  739. package/dist/module/src/components/pure/TestPageView_utils.js +0 -109
  740. package/dist/module/src/components/stateful/FeaturesReporter.js +0 -23
  741. package/dist/module/src/components/stateful/GitIntegrationPage.js +0 -5
  742. package/dist/module/src/components/stateful/ProcessManagerPage.js +0 -73
  743. package/dist/module/src/components/stateful/ProjectPage.js +0 -65
  744. package/dist/module/src/components/stateful/ProjectsPage.js +0 -79
  745. package/dist/module/src/components/stateful/SingleProcessPage.js +0 -100
  746. package/dist/module/src/components/stateful/TestPage.js +0 -233
  747. package/dist/module/src/hooks/useGitMode.js +0 -17
  748. package/dist/module/src/services/FileService.js +0 -468
  749. package/dist/module/src/services/GitHubAuthService.js +0 -180
  750. package/dist/module/src/types/features.js +0 -31
  751. package/dist/module/src/utils/api.js +0 -87
  752. package/dist/module/src/utils/featureUtils.js +0 -24
  753. package/dist/module/src/utils/gitTest.js +0 -23
  754. package/dist/module/src/utils/makePrompt.js +0 -109
  755. package/dist/module/src/utils.js +0 -130
  756. package/dist/types/src/App.d.ts +0 -19
  757. package/dist/types/src/PM/PM_WithBuild.d.ts +0 -13
  758. package/dist/types/src/PM/PM_WithEslintAndTsc.d.ts +0 -22
  759. package/dist/types/src/PM/PM_WithGit.d.ts +0 -27
  760. package/dist/types/src/PM/PM_WithProcesses.d.ts +0 -29
  761. package/dist/types/src/PM/PM_WithWebSocket.d.ts +0 -108
  762. package/dist/types/src/PM/base.d.ts +0 -35
  763. package/dist/types/src/PM/main.d.ts +0 -8
  764. package/dist/types/src/ReportServer.test.ts/index.d.ts +0 -2
  765. package/dist/types/src/components/SunriseAnimation.test/interface.d.ts +0 -11
  766. package/dist/types/src/components/SunriseAnimation.test/types.d.ts +0 -39
  767. package/dist/types/src/components/pure/AppFrame.d.ts +0 -11
  768. package/dist/types/src/components/pure/AppFrame.test/index.d.ts +0 -3
  769. package/dist/types/src/components/pure/FeaturesReporterView.d.ts +0 -7
  770. package/dist/types/src/components/pure/FeaturesReporterView.test/index.d.ts +0 -2
  771. package/dist/types/src/components/pure/GitIntegrationView.d.ts +0 -1
  772. package/dist/types/src/components/pure/ModalContent.test/index.d.ts +0 -2
  773. package/dist/types/src/components/pure/ProcessManagerView.d.ts +0 -20
  774. package/dist/types/src/components/pure/ProjectPageView.d.ts +0 -14
  775. package/dist/types/src/components/pure/ProjectPageView.test/implementation.d.ts +0 -3
  776. package/dist/types/src/components/pure/ProjectPageView.test/index.d.ts +0 -2
  777. package/dist/types/src/components/pure/SingleProcessView.d.ts +0 -10
  778. package/dist/types/src/components/pure/TestPageView.d.ts +0 -16
  779. package/dist/types/src/components/pure/TestPageView.test/implementation.d.ts +0 -12
  780. package/dist/types/src/components/pure/TestPageView.test/index.d.ts +0 -3
  781. package/dist/types/src/components/pure/TestPageView.test/specification.d.ts +0 -11
  782. package/dist/types/src/components/pure/TestPageView.test/types.d.ts +0 -65
  783. package/dist/types/src/components/pure/TestPageView_utils.d.ts +0 -23
  784. package/dist/types/src/components/stateful/FeaturesReporter.d.ts +0 -2
  785. package/dist/types/src/components/stateful/SingleProcessPage.d.ts +0 -2
  786. package/dist/types/src/services/FileService.d.ts +0 -34
  787. package/dist/types/src/types/features.d.ts +0 -7
  788. package/dist/types/src/utils/api.d.ts +0 -10
  789. package/dist/types/src/utils/featureUtils.d.ts +0 -6
  790. package/dist/types/src/utils/gitTest.d.ts +0 -11
  791. package/dist/types/src/utils/makePrompt.d.ts +0 -2
  792. package/dist/types/src/utils.d.ts +0 -20
  793. package/pitono/__init__.py +0 -54
  794. package/pitono/base_given.py +0 -131
  795. package/pitono/base_suite.py +0 -95
  796. package/pitono/base_then.py +0 -50
  797. package/pitono/base_when.py +0 -52
  798. package/pitono/pitono.egg-info/PKG-INFO +0 -17
  799. package/pitono/pitono.egg-info/SOURCES.txt +0 -7
  800. package/pitono/types.py +0 -78
  801. package/src/App.tsx +0 -228
  802. package/src/PM/PM_WithBuild.ts +0 -171
  803. package/src/PM/PM_WithEslintAndTsc.ts +0 -279
  804. package/src/PM/PM_WithGit.ts +0 -585
  805. package/src/PM/PM_WithProcesses.ts +0 -639
  806. package/src/PM/PM_WithWebSocket.ts +0 -631
  807. package/src/PM/base.ts +0 -390
  808. package/src/PM/main.ts +0 -849
  809. package/src/PM/metafileOutputs.ts +0 -90
  810. package/src/ReportServer.test.ts/index.ts +0 -194
  811. package/src/app.scss +0 -19
  812. package/src/components/DesignEditorPage.tsx +0 -202
  813. package/src/components/SunriseAnimation.test/interface.ts +0 -49
  814. package/src/components/SunriseAnimation.test/types.ts +0 -53
  815. package/src/components/SunriseAnimation.tsx +0 -350
  816. package/src/components/pure/AppFrame.tsx +0 -300
  817. package/src/components/pure/FeaturesReporterView.tsx +0 -37
  818. package/src/components/pure/GitHubLoginButton.tsx +0 -31
  819. package/src/components/pure/GitIntegrationView.tsx +0 -443
  820. package/src/components/pure/ModalContent.test/index.tsx +0 -67
  821. package/src/components/pure/NavBar.tsx +0 -118
  822. package/src/components/pure/ProcessManager.tsx +0 -118
  823. package/src/components/pure/ProcessManagerView.tsx +0 -410
  824. package/src/components/pure/ProjectPageView.test/implementation.tsx +0 -213
  825. package/src/components/pure/ProjectPageView.tsx +0 -148
  826. package/src/components/pure/Settings.test.tsx +0 -34
  827. package/src/components/pure/Settings.tsx +0 -163
  828. package/src/components/pure/SignIn.tsx +0 -33
  829. package/src/components/pure/SingleProcessView.tsx +0 -231
  830. package/src/components/pure/TestPageView.test/implementation.ts +0 -162
  831. package/src/components/pure/TestPageView.test/index.tsx +0 -20
  832. package/src/components/pure/TestPageView.test/specification.ts +0 -59
  833. package/src/components/pure/TestPageView.test/types.ts +0 -92
  834. package/src/components/pure/TestPageView.tsx +0 -706
  835. package/src/components/pure/TestPageView_utils.tsx +0 -285
  836. package/src/components/stateful/FeaturesReporter.tsx +0 -26
  837. package/src/components/stateful/GitIntegrationPage.tsx +0 -8
  838. package/src/components/stateful/ProcessManagerPage.tsx +0 -104
  839. package/src/components/stateful/ProjectPage.tsx +0 -86
  840. package/src/components/stateful/ProjectsPage.tsx +0 -100
  841. package/src/components/stateful/SVGEditor/SVGAttributesEditor.tsx +0 -73
  842. package/src/components/stateful/SVGEditor/SVGPreview.tsx +0 -225
  843. package/src/components/stateful/SVGEditorPage.tsx +0 -503
  844. package/src/components/stateful/SingleProcessPage.tsx +0 -142
  845. package/src/components/stateful/TestPage.tsx +0 -268
  846. package/src/golingvu/base_suite_test.go +0 -197
  847. package/src/hooks/useGitMode.ts +0 -20
  848. package/src/services/FileService.ts +0 -542
  849. package/src/services/GitHubAuthService.ts +0 -240
  850. package/src/templates/frontpage.html +0 -340
  851. package/src/templates/frontpage.md +0 -79
  852. package/src/types/features.ts +0 -38
  853. package/src/utils/api.ts +0 -108
  854. package/src/utils/featureUtils.tsx +0 -42
  855. package/src/utils/gitTest.ts +0 -29
  856. package/src/utils/makePrompt.ts +0 -149
  857. package/src/utils.ts +0 -202
  858. package/stargazers.txt +0 -15
  859. package/testeranto/bundles/golang/core/Calculator.golingvu.go +0 -53
  860. package/testeranto/bundles/golang/core/Calculator.golingvu.golingvu.go +0 -53
  861. package/testeranto/bundles/node/core/chunk-RIM6RECA.mjs +0 -1170
  862. package/testeranto/bundles/node/core/chunk-VXVF7WFO.mjs +0 -4321
  863. package/testeranto/bundles/node/core/src/lib/BaseSuite.test/node.test.mjs +0 -270
  864. package/testeranto/bundles/node/core/src/lib/TipoSkripto.test/TipoSkripto.mjs +0 -574
  865. package/testeranto/bundles/node/core/src/lib/pmProxy.test/index.mjs +0 -482
  866. package/testeranto/bundles/pure/core/chunk-XYOCRDEQ.mjs +0 -1080
  867. package/testeranto/bundles/pure/core/src/Pure.test.mjs +0 -410
  868. package/testeranto/bundles/pure/core/src/lib/BaseSuite.test/pure.test.mjs +0 -270
  869. package/testeranto/bundles/python/core/test_example.py +0 -24
  870. package/testeranto/bundles/web/core/MPLUSRounded1c-Black-O75GP5JI.ttf +0 -0
  871. package/testeranto/bundles/web/core/MPLUSRounded1c-Bold-R524Q5BH.ttf +0 -0
  872. package/testeranto/bundles/web/core/MPLUSRounded1c-ExtraBold-C6GRMYVT.ttf +0 -0
  873. package/testeranto/bundles/web/core/MPLUSRounded1c-Light-WKN65Y2C.ttf +0 -0
  874. package/testeranto/bundles/web/core/MPLUSRounded1c-Medium-ZC4DWL7C.ttf +0 -0
  875. package/testeranto/bundles/web/core/MPLUSRounded1c-Regular-DT6EKZ3S.ttf +0 -0
  876. package/testeranto/bundles/web/core/MPLUSRounded1c-Thin-YWDNVG6M.ttf +0 -0
  877. package/testeranto/bundles/web/core/chunk-DFRN4SYZ.mjs +0 -2297
  878. package/testeranto/bundles/web/core/chunk-JMDLMADH.mjs +0 -27996
  879. package/testeranto/bundles/web/core/chunk-LQMU5NCG.mjs +0 -3082
  880. package/testeranto/bundles/web/core/chunk-Q5TONB2Z.mjs +0 -6874
  881. package/testeranto/bundles/web/core/src/components/pure/FeaturesReporterView.test/index.mjs +0 -164
  882. package/testeranto/bundles/web/core/src/components/pure/ModalContent.test/index.css +0 -11697
  883. package/testeranto/bundles/web/core/src/components/pure/ModalContent.test/index.mjs +0 -336
  884. package/testeranto/bundles/web/core/src/components/pure/ProjectPageView.test/index.css +0 -11697
  885. package/testeranto/bundles/web/core/src/components/pure/ProjectPageView.test/index.mjs +0 -517
  886. package/testeranto/bundles/web/core/src/lib/BaseSuite.test/web.test.mjs +0 -285
  887. package/testeranto/metafiles/pure/core.json +0 -734
  888. package/testeranto/metafiles/web/core.json +0 -16501
  889. package/testeranto/reports/core/src/Pure.test/pure/message.txt +0 -17
  890. package/testeranto/reports/core/src/Pure.test/pure/prompt.txt +0 -14
  891. package/testeranto/reports/core/src/Pure.test/pure/type_errors.txt +0 -73
  892. package/testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/error.log +0 -91
  893. package/testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/info.log +0 -2
  894. package/testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/tests.json +0 -68
  895. package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/error.log +0 -30
  896. package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/info.log +0 -2
  897. package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/tests.json +0 -88
  898. package/testeranto/reports/core/src/lib/BaseSuite.test/node.test/node/exit.log +0 -1
  899. package/testeranto/reports/core/src/lib/BaseSuite.test/node.test/node/message.txt +0 -17
  900. package/testeranto/reports/core/src/lib/BaseSuite.test/node.test/node/prompt.txt +0 -15
  901. package/testeranto/reports/core/src/lib/BaseSuite.test/node.test/node/stdout.log +0 -1
  902. package/testeranto/reports/core/src/lib/BaseSuite.test/node.test/node/tests.json +0 -29
  903. package/testeranto/reports/core/src/lib/BaseSuite.test/node.test/node/type_errors.txt +0 -53
  904. package/testeranto/reports/core/src/lib/BaseSuite.test/pure.test/pure/exit.log +0 -0
  905. package/testeranto/reports/core/src/lib/BaseSuite.test/pure.test/pure/lint_errors.txt +0 -0
  906. package/testeranto/reports/core/src/lib/BaseSuite.test/pure.test/pure/message.txt +0 -17
  907. package/testeranto/reports/core/src/lib/BaseSuite.test/pure.test/pure/prompt.txt +0 -15
  908. package/testeranto/reports/core/src/lib/BaseSuite.test/pure.test/pure/type_errors.txt +0 -58
  909. package/testeranto/reports/core/src/lib/BaseSuite.test/web.test/web/debug.log +0 -0
  910. package/testeranto/reports/core/src/lib/BaseSuite.test/web.test/web/error.log +0 -1
  911. package/testeranto/reports/core/src/lib/BaseSuite.test/web.test/web/exit.log +0 -1
  912. package/testeranto/reports/core/src/lib/BaseSuite.test/web.test/web/info.log +0 -0
  913. package/testeranto/reports/core/src/lib/BaseSuite.test/web.test/web/tests.json +0 -29
  914. package/testeranto/reports/core/src/lib/BaseSuite.test/web.test/web/warn.log +0 -0
  915. package/testeranto/reports/core/src/lib/TipoSkripto.test/TipoSkripto/node/exit.log +0 -1
  916. package/testeranto/reports/core/src/lib/TipoSkripto.test/TipoSkripto/node/lint_errors.txt +0 -0
  917. package/testeranto/reports/core/src/lib/TipoSkripto.test/TipoSkripto/node/message.txt +0 -17
  918. package/testeranto/reports/core/src/lib/TipoSkripto.test/TipoSkripto/node/prompt.txt +0 -17
  919. package/testeranto/reports/core/src/lib/TipoSkripto.test/TipoSkripto/node/stderr.log +0 -55
  920. package/testeranto/reports/core/src/lib/TipoSkripto.test/TipoSkripto/node/stdout.log +0 -191
  921. package/testeranto/reports/core/src/lib/TipoSkripto.test/TipoSkripto/node/type_errors.txt +0 -71
  922. package/testeranto/reports/core/src/lib/pmProxy.test/index/node/exit.log +0 -1
  923. package/testeranto/reports/core/src/lib/pmProxy.test/index/node/lint_errors.txt +0 -15
  924. package/testeranto/reports/core/src/lib/pmProxy.test/index/node/message.txt +0 -17
  925. package/testeranto/reports/core/src/lib/pmProxy.test/index/node/prompt.txt +0 -17
  926. package/testeranto/reports/core/src/lib/pmProxy.test/index/node/stderr.log +0 -20
  927. package/testeranto/reports/core/src/lib/pmProxy.test/index/node/stdout.log +0 -4
  928. package/testeranto/reports/core/src/lib/pmProxy.test/index/node/type_errors.txt +0 -49
  929. package/testeranto.ts-0.0.1.tgz +0 -0
  930. package/type-fix.txt +0 -2
  931. /package/{dist/types/src/PM/metafileOutputs.d.ts → build-go.sh} +0 -0
  932. /package/dist/common/src/{components → app/frontend/components}/SunriseAnimation.test/implementation.js +0 -0
  933. /package/dist/common/src/{components → app/frontend/components}/SunriseAnimation.test/index.js +0 -0
  934. /package/dist/common/src/{components → app/frontend/components}/SunriseAnimation.test/specification.js +0 -0
  935. /package/dist/common/src/{components → app/frontend/components}/SunriseAnimation.test/types.js +0 -0
  936. /package/dist/common/src/{components → app/frontend/components}/TestStatusBadge.js +0 -0
  937. /package/dist/common/src/{components → app/frontend/components}/pure/AppFrame.test/implementation.js +0 -0
  938. /package/dist/common/src/{components → app/frontend/components}/pure/AppFrame.test/index.js +0 -0
  939. /package/dist/common/src/{components → app/frontend/components}/pure/AppFrame.test/specification.js +0 -0
  940. /package/dist/common/src/{components → app/frontend/components}/pure/AppFrame.test/types.js +0 -0
  941. /package/dist/common/src/{components → app/frontend/components}/pure/ArtifactTree.js +0 -0
  942. /package/dist/common/src/{components → app/frontend/components}/pure/BuildLogViewer.js +0 -0
  943. /package/dist/common/src/{components → app/frontend/components}/pure/DebugEnv.js +0 -0
  944. /package/dist/common/src/{components → app/frontend/components}/pure/FeaturesReporterView.js +0 -0
  945. /package/dist/common/src/{components → app/frontend/components}/pure/FeaturesReporterView.test/implementation.js +0 -0
  946. /package/dist/common/src/{components → app/frontend/components}/pure/FeaturesReporterView.test/index.js +0 -0
  947. /package/dist/common/src/{components → app/frontend/components}/pure/FeaturesReporterView.test/specification.js +0 -0
  948. /package/dist/common/src/{components → app/frontend/components}/pure/FeaturesReporterView.test/types.js +0 -0
  949. /package/dist/common/src/{components → app/frontend/components}/pure/FileTree.js +0 -0
  950. /package/dist/common/src/{components → app/frontend/components}/pure/FileTreeItem.js +0 -0
  951. /package/dist/common/src/{components → app/frontend/components}/pure/ModalContent.js +0 -0
  952. /package/dist/common/src/{components → app/frontend/components}/pure/ModalContent.test/implementation.js +0 -0
  953. /package/dist/common/src/{components → app/frontend/components}/pure/ModalContent.test/specification.js +0 -0
  954. /package/dist/common/src/{components → app/frontend/components}/pure/ModalContent.test/types.js +0 -0
  955. /package/dist/common/src/{components → app/frontend/components}/pure/ProjectPageView.test/index.js +0 -0
  956. /package/dist/common/src/{components → app/frontend/components}/pure/ProjectPageView.test/specification.js +0 -0
  957. /package/dist/common/src/{components → app/frontend/components}/pure/ProjectPageView.test/types.js +0 -0
  958. /package/dist/common/src/{components → app/frontend/components}/pure/ProjectsPageView.js +0 -0
  959. /package/dist/common/src/{components → app/frontend/components}/pure/SettingsButton.js +0 -0
  960. /package/dist/common/src/{components → app/frontend/components}/pure/TestTable.js +0 -0
  961. /package/dist/common/src/{components → app/frontend/components}/pure/ThemeCard.js +0 -0
  962. /package/dist/common/src/{components → app/frontend/components}/pure/ToastNotification.js +0 -0
  963. /package/dist/common/src/{components → app/frontend/components}/pure/UserProfile.js +0 -0
  964. /package/dist/common/src/{components → app/frontend/components}/stateful/AuthCallbackPage.js +0 -0
  965. /package/dist/common/src/{components → app/frontend/components}/stateful/FileTree.js +0 -0
  966. /package/dist/common/src/{components → app/frontend/components}/stateful/SettingsPage.js +0 -0
  967. /package/dist/common/src/{components → app/frontend/components}/stateful/TextEditorPage.js +0 -0
  968. /package/dist/common/src/{components/pure → app/frontend/testPage}/TestPageView.test/types.js +0 -0
  969. /package/dist/module/src/{components → app/frontend/components}/SunriseAnimation.test/implementation.js +0 -0
  970. /package/dist/module/src/{components → app/frontend/components}/SunriseAnimation.test/index.js +0 -0
  971. /package/dist/module/src/{components → app/frontend/components}/SunriseAnimation.test/specification.js +0 -0
  972. /package/dist/module/src/{components → app/frontend/components}/SunriseAnimation.test/types.js +0 -0
  973. /package/dist/module/src/{components → app/frontend/components}/TestStatusBadge.js +0 -0
  974. /package/dist/module/src/{components → app/frontend/components}/pure/AppFrame.test/implementation.js +0 -0
  975. /package/dist/module/src/{components → app/frontend/components}/pure/AppFrame.test/index.js +0 -0
  976. /package/dist/module/src/{components → app/frontend/components}/pure/AppFrame.test/specification.js +0 -0
  977. /package/dist/module/src/{components → app/frontend/components}/pure/AppFrame.test/types.js +0 -0
  978. /package/dist/module/src/{components → app/frontend/components}/pure/ArtifactTree.js +0 -0
  979. /package/dist/module/src/{components → app/frontend/components}/pure/BuildLogViewer.js +0 -0
  980. /package/dist/module/src/{components → app/frontend/components}/pure/DebugEnv.js +0 -0
  981. /package/dist/module/src/{components → app/frontend/components}/pure/FeaturesReporterView.js +0 -0
  982. /package/dist/module/src/{components → app/frontend/components}/pure/FeaturesReporterView.test/implementation.js +0 -0
  983. /package/dist/module/src/{components → app/frontend/components}/pure/FeaturesReporterView.test/index.js +0 -0
  984. /package/dist/module/src/{components → app/frontend/components}/pure/FeaturesReporterView.test/specification.js +0 -0
  985. /package/dist/module/src/{components → app/frontend/components}/pure/FeaturesReporterView.test/types.js +0 -0
  986. /package/dist/module/src/{components → app/frontend/components}/pure/FileTree.js +0 -0
  987. /package/dist/module/src/{components → app/frontend/components}/pure/FileTreeItem.js +0 -0
  988. /package/dist/module/src/{components → app/frontend/components}/pure/ModalContent.js +0 -0
  989. /package/dist/module/src/{components → app/frontend/components}/pure/ModalContent.test/implementation.js +0 -0
  990. /package/dist/module/src/{components → app/frontend/components}/pure/ModalContent.test/specification.js +0 -0
  991. /package/dist/module/src/{components → app/frontend/components}/pure/ModalContent.test/types.js +0 -0
  992. /package/dist/{types/src/components/pure/Settings.test.d.ts → module/src/app/frontend/components/pure/ProcessManagerViewTypes.js} +0 -0
  993. /package/dist/module/src/{components → app/frontend/components}/pure/ProjectPageView.test/index.js +0 -0
  994. /package/dist/module/src/{components → app/frontend/components}/pure/ProjectPageView.test/specification.js +0 -0
  995. /package/dist/module/src/{components → app/frontend/components}/pure/ProjectPageView.test/types.js +0 -0
  996. /package/dist/module/src/{components → app/frontend/components}/pure/ProjectsPageView.js +0 -0
  997. /package/dist/module/src/{components → app/frontend/components}/pure/SettingsButton.js +0 -0
  998. /package/dist/module/src/{components → app/frontend/components}/pure/TestTable.js +0 -0
  999. /package/dist/module/src/{components → app/frontend/components}/pure/ThemeCard.js +0 -0
  1000. /package/dist/module/src/{components → app/frontend/components}/pure/ToastNotification.js +0 -0
  1001. /package/dist/module/src/{components → app/frontend/components}/pure/UserProfile.js +0 -0
  1002. /package/dist/module/src/{components → app/frontend/components}/stateful/AuthCallbackPage.js +0 -0
  1003. /package/dist/module/src/{components → app/frontend/components}/stateful/FileTree.js +0 -0
  1004. /package/dist/module/src/{components → app/frontend/components}/stateful/SettingsPage.js +0 -0
  1005. /package/dist/module/src/{components → app/frontend/components}/stateful/TextEditorPage.js +0 -0
  1006. /package/dist/module/src/{components/pure → app/frontend/testPage}/TestPageView.test/types.js +0 -0
  1007. /package/dist/types/src/{ReportServer.d.ts → app/backend/PM_WithProcesses.d.ts} +0 -0
  1008. /package/dist/types/src/{services → app/frontend}/GitHubAuthService.d.ts +0 -0
  1009. /package/dist/types/src/{components → app/frontend/components}/DesignEditorPage.d.ts +0 -0
  1010. /package/dist/types/src/{components → app/frontend/components}/SunriseAnimation.d.ts +0 -0
  1011. /package/dist/types/src/{components → app/frontend/components}/SunriseAnimation.test/implementation.d.ts +0 -0
  1012. /package/dist/types/src/{components → app/frontend/components}/SunriseAnimation.test/index.d.ts +0 -0
  1013. /package/dist/types/src/{components → app/frontend/components}/SunriseAnimation.test/specification.d.ts +0 -0
  1014. /package/dist/types/src/{components → app/frontend/components}/TestStatusBadge.d.ts +0 -0
  1015. /package/dist/types/src/{components → app/frontend/components}/pure/AppFrame.test/implementation.d.ts +0 -0
  1016. /package/dist/types/src/{components → app/frontend/components}/pure/AppFrame.test/specification.d.ts +0 -0
  1017. /package/dist/types/src/{components → app/frontend/components}/pure/AppFrame.test/types.d.ts +0 -0
  1018. /package/dist/types/src/{components → app/frontend/components}/pure/ArtifactTree.d.ts +0 -0
  1019. /package/dist/types/src/{components → app/frontend/components}/pure/BuildLogViewer.d.ts +0 -0
  1020. /package/dist/types/src/{components → app/frontend/components}/pure/DebugEnv.d.ts +0 -0
  1021. /package/dist/types/src/{components → app/frontend/components}/pure/FeaturesReporterView.test/implementation.d.ts +0 -0
  1022. /package/dist/types/src/{components → app/frontend/components}/pure/FeaturesReporterView.test/specification.d.ts +0 -0
  1023. /package/dist/types/src/{components → app/frontend/components}/pure/FeaturesReporterView.test/types.d.ts +0 -0
  1024. /package/dist/types/src/{components → app/frontend/components}/pure/FileTree.d.ts +0 -0
  1025. /package/dist/types/src/{components → app/frontend/components}/pure/FileTreeItem.d.ts +0 -0
  1026. /package/dist/types/src/{components → app/frontend/components}/pure/GitHubLoginButton.d.ts +0 -0
  1027. /package/dist/types/src/{components → app/frontend/components}/pure/ModalContent.d.ts +0 -0
  1028. /package/dist/types/src/{components → app/frontend/components}/pure/ModalContent.test/implementation.d.ts +0 -0
  1029. /package/dist/types/src/{components → app/frontend/components}/pure/ModalContent.test/specification.d.ts +0 -0
  1030. /package/dist/types/src/{components → app/frontend/components}/pure/ModalContent.test/types.d.ts +0 -0
  1031. /package/dist/types/src/{components → app/frontend/components}/pure/NavBar.d.ts +0 -0
  1032. /package/dist/types/src/{components → app/frontend/components}/pure/ProcessManager.d.ts +0 -0
  1033. /package/dist/types/src/{components → app/frontend/components}/pure/ProjectPageView.test/specification.d.ts +0 -0
  1034. /package/dist/types/src/{components → app/frontend/components}/pure/ProjectPageView.test/types.d.ts +0 -0
  1035. /package/dist/types/src/{components → app/frontend/components}/pure/ProjectsPageView.d.ts +0 -0
  1036. /package/dist/types/src/{components → app/frontend/components}/pure/Settings.d.ts +0 -0
  1037. /package/dist/types/src/{ReportServerLib.d.ts → app/frontend/components/pure/Settings.test.d.ts} +0 -0
  1038. /package/dist/types/src/{components → app/frontend/components}/pure/SettingsButton.d.ts +0 -0
  1039. /package/dist/types/src/{components → app/frontend/components}/pure/SignIn.d.ts +0 -0
  1040. /package/dist/types/src/{components/stateful/FileTree.d.ts → app/frontend/components/pure/SingleProcessView.d.ts} +0 -0
  1041. /package/dist/types/src/{components → app/frontend/components}/pure/TestTable.d.ts +0 -0
  1042. /package/dist/types/src/{components → app/frontend/components}/pure/ThemeCard.d.ts +0 -0
  1043. /package/dist/types/src/{components → app/frontend/components}/pure/ToastNotification.d.ts +0 -0
  1044. /package/dist/types/src/{components → app/frontend/components}/pure/UserProfile.d.ts +0 -0
  1045. /package/dist/types/src/{components → app/frontend/components}/stateful/AuthCallbackPage.d.ts +0 -0
  1046. /package/{src/ReportServer.ts → dist/types/src/app/frontend/components/stateful/FeaturesReporter.d.ts} +0 -0
  1047. /package/{src/ReportServerLib.ts → dist/types/src/app/frontend/components/stateful/FileTree.d.ts} +0 -0
  1048. /package/dist/types/src/{components → app/frontend/components}/stateful/GitIntegrationPage.d.ts +0 -0
  1049. /package/dist/types/src/{components → app/frontend/components}/stateful/ProcessManagerPage.d.ts +0 -0
  1050. /package/dist/types/src/{components → app/frontend/components}/stateful/ProjectPage.d.ts +0 -0
  1051. /package/dist/types/src/{components → app/frontend/components}/stateful/ProjectsPage.d.ts +0 -0
  1052. /package/dist/types/src/{components → app/frontend/components}/stateful/SettingsPage.d.ts +0 -0
  1053. /package/{src/components/SunriseAnimation.test/implementation.ts → dist/types/src/app/frontend/components/stateful/SingleProcessPage.d.ts} +0 -0
  1054. /package/dist/types/src/{components → app/frontend/components}/stateful/TextEditorPage.d.ts +0 -0
  1055. /package/{src/components/SunriseAnimation.test/index.ts → dist/types/src/app/frontend/fetchDataUtil.d.ts} +0 -0
  1056. /package/dist/types/src/{components/stateful → app/frontend/testPage}/TestPage.d.ts +0 -0
  1057. /package/{src/components/SunriseAnimation.test/specification.ts → dist/types/src/app/frontend/useFileSystemSync.d.ts} +0 -0
  1058. /package/dist/types/src/{hooks → app/frontend}/useGitMode.d.ts +0 -0
  1059. /package/{testeranto/reports/core/src/Pure.test/pure/exit.log → docker.md} +0 -0
  1060. /package/{testeranto/reports/core/src/Pure.test/pure/lint_errors.txt → src/app/frontend/components/SunriseAnimation.test/implementation.ts} +0 -0
  1061. /package/{testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/debug.log → src/app/frontend/components/SunriseAnimation.test/index.ts} +0 -0
  1062. /package/src/{components → app/frontend/components}/SunriseAnimation.test/index.tsx +0 -0
  1063. /package/{testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/warn.log → src/app/frontend/components/SunriseAnimation.test/specification.ts} +0 -0
  1064. /package/src/{components → app/frontend/components}/TestStatusBadge.tsx +0 -0
  1065. /package/src/{components → app/frontend/components}/pure/AppFrame.test/implementation.tsx +0 -0
  1066. /package/src/{components → app/frontend/components}/pure/AppFrame.test/index.tsx +0 -0
  1067. /package/src/{components → app/frontend/components}/pure/AppFrame.test/specification.ts +0 -0
  1068. /package/src/{components → app/frontend/components}/pure/AppFrame.test/types.ts +0 -0
  1069. /package/src/{components → app/frontend/components}/pure/ArtifactTree.tsx +0 -0
  1070. /package/src/{components → app/frontend/components}/pure/BuildLogViewer.tsx +0 -0
  1071. /package/src/{components → app/frontend/components}/pure/DebugEnv.tsx +0 -0
  1072. /package/src/{components → app/frontend/components}/pure/FeaturesReporterView.test/implementation.tsx +0 -0
  1073. /package/src/{components → app/frontend/components}/pure/FeaturesReporterView.test/index.tsx +0 -0
  1074. /package/src/{components → app/frontend/components}/pure/FeaturesReporterView.test/specification.ts +0 -0
  1075. /package/src/{components → app/frontend/components}/pure/FeaturesReporterView.test/types.ts +0 -0
  1076. /package/src/{components → app/frontend/components}/pure/FileTree.tsx +0 -0
  1077. /package/src/{components → app/frontend/components}/pure/FileTreeItem.tsx +0 -0
  1078. /package/src/{components → app/frontend/components}/pure/ModalContent.test/implementation.tsx +0 -0
  1079. /package/src/{components → app/frontend/components}/pure/ModalContent.test/specification.ts +0 -0
  1080. /package/src/{components → app/frontend/components}/pure/ModalContent.test/types.ts +0 -0
  1081. /package/src/{components → app/frontend/components}/pure/ModalContent.tsx +0 -0
  1082. /package/src/{components → app/frontend/components}/pure/ProjectPageView.test/index.tsx +0 -0
  1083. /package/src/{components → app/frontend/components}/pure/ProjectPageView.test/specification.ts +0 -0
  1084. /package/src/{components → app/frontend/components}/pure/ProjectPageView.test/types.ts +0 -0
  1085. /package/src/{components → app/frontend/components}/pure/ProjectsPageView.tsx +0 -0
  1086. /package/src/{components → app/frontend/components}/pure/SettingsButton.md +0 -0
  1087. /package/src/{components → app/frontend/components}/pure/SettingsButton.tsx +0 -0
  1088. /package/src/{components → app/frontend/components}/pure/TestTable.tsx +0 -0
  1089. /package/src/{components → app/frontend/components}/pure/ThemeCard.tsx +0 -0
  1090. /package/src/{components → app/frontend/components}/pure/ToastNotification.tsx +0 -0
  1091. /package/src/{components → app/frontend/components}/pure/UserProfile.tsx +0 -0
  1092. /package/src/{components → app/frontend/components}/stateful/AuthCallbackPage.tsx +0 -0
  1093. /package/src/{components → app/frontend/components}/stateful/FileTree.tsx +0 -0
  1094. /package/src/{components → app/frontend/components}/stateful/SVGEditor/CircleForm.tsx +0 -0
  1095. /package/src/{components → app/frontend/components}/stateful/SVGEditor/GroupForm.tsx +0 -0
  1096. /package/src/{components → app/frontend/components}/stateful/SVGEditor/RectForm.tsx +0 -0
  1097. /package/src/{components → app/frontend/components}/stateful/SVGEditor/SVGAttributeField.tsx +0 -0
  1098. /package/src/{components → app/frontend/components}/stateful/SVGEditor/SVGEditorControls.tsx +0 -0
  1099. /package/src/{components → app/frontend/components}/stateful/SVGEditor/SVGElementForm.tsx +0 -0
  1100. /package/src/{components → app/frontend/components}/stateful/SVGEditor/SVGTextEditor.tsx +0 -0
  1101. /package/src/{components → app/frontend/components}/stateful/SVGEditor/SVGTree.tsx +0 -0
  1102. /package/src/{components → app/frontend/components}/stateful/SVGEditor/SVGTypes.ts +0 -0
  1103. /package/src/{components → app/frontend/components}/stateful/SVGEditor/svg.xsd.xml +0 -0
  1104. /package/src/{components → app/frontend/components}/stateful/SettingsPage.tsx +0 -0
  1105. /package/src/{components → app/frontend/components}/stateful/TextEditorPage.tsx +0 -0
  1106. /package/{pitono → src/pitono}/core_generator.py +0 -0
  1107. /package/{pitono → src/pitono}/pitono.egg-info/dependency_links.txt +0 -0
  1108. /package/{pitono → src/pitono}/pitono.egg-info/entry_points.txt +0 -0
  1109. /package/{pitono → src/pitono}/pitono.egg-info/top_level.txt +0 -0
  1110. /package/{pitono → src/pitono}/pyproject.toml +0 -0
  1111. /package/{pitono → src/pitono}/setup.py +0 -0
  1112. /package/{pitono → src/pitono}/simple_adapter.py +0 -0
  1113. /package/testeranto/{reports/core/src/components/pure/ProjectPageView.test/index/web/debug.log → helpo_chat_message.txt} +0 -0
  1114. /package/testeranto/{projects.html → index.html} +0 -0
  1115. /package/testeranto/reports/core/{src/components/pure/ProjectPageView.test/index/web/warn.log → example/Calculator.golingvu.test/golang/stdout.log} +0 -0
  1116. /package/testeranto/reports/core/{src/components/pure/FeaturesReporterView.test/index/web → example/Calculator.pitono.test/python}/exit.log +0 -0
  1117. /package/testeranto/reports/core/{src/lib/BaseSuite.test/node.test/node → example/Calculator.pitono.test/python}/stderr.log +0 -0
  1118. /package/testeranto/reports/core/{src/components/pure/ProjectPageView.test/index/web → example/Calculator.test/node}/exit.log +0 -0
  1119. /package/testeranto/reports/core/{src/lib/BaseSuite.test/node.test/node/lint_errors.txt → example/Calculator.test/node/stdout.log} +0 -0
@@ -1,3082 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __esm = (fn, res) => function __init() {
8
- return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
9
- };
10
- var __commonJS = (cb, mod) => function __require() {
11
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
12
- };
13
- var __copyProps = (to, from, except, desc) => {
14
- if (from && typeof from === "object" || typeof from === "function") {
15
- for (let key of __getOwnPropNames(from))
16
- if (!__hasOwnProp.call(to, key) && key !== except)
17
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
18
- }
19
- return to;
20
- };
21
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
22
- // If the importer is in node compatibility mode or this is not an ESM
23
- // file that has been converted to a CommonJS file using a Babel-
24
- // compatible transform (i.e. "__esModule" has not been set), then set
25
- // "default" to the CommonJS "module.exports" for node compatibility.
26
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
27
- mod
28
- ));
29
-
30
- // node_modules/esbuild-plugin-polyfill-node/polyfills/__dirname.js
31
- var init_dirname = __esm({
32
- "node_modules/esbuild-plugin-polyfill-node/polyfills/__dirname.js"() {
33
- }
34
- });
35
-
36
- // node_modules/@jspm/core/nodelibs/browser/chunk-DtuTasat.js
37
- function dew$2() {
38
- if (_dewExec$2)
39
- return exports$2;
40
- _dewExec$2 = true;
41
- exports$2.byteLength = byteLength;
42
- exports$2.toByteArray = toByteArray;
43
- exports$2.fromByteArray = fromByteArray;
44
- var lookup = [];
45
- var revLookup = [];
46
- var Arr = typeof Uint8Array !== "undefined" ? Uint8Array : Array;
47
- var code = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
48
- for (var i = 0, len = code.length; i < len; ++i) {
49
- lookup[i] = code[i];
50
- revLookup[code.charCodeAt(i)] = i;
51
- }
52
- revLookup["-".charCodeAt(0)] = 62;
53
- revLookup["_".charCodeAt(0)] = 63;
54
- function getLens(b64) {
55
- var len2 = b64.length;
56
- if (len2 % 4 > 0) {
57
- throw new Error("Invalid string. Length must be a multiple of 4");
58
- }
59
- var validLen = b64.indexOf("=");
60
- if (validLen === -1)
61
- validLen = len2;
62
- var placeHoldersLen = validLen === len2 ? 0 : 4 - validLen % 4;
63
- return [validLen, placeHoldersLen];
64
- }
65
- function byteLength(b64) {
66
- var lens = getLens(b64);
67
- var validLen = lens[0];
68
- var placeHoldersLen = lens[1];
69
- return (validLen + placeHoldersLen) * 3 / 4 - placeHoldersLen;
70
- }
71
- function _byteLength(b64, validLen, placeHoldersLen) {
72
- return (validLen + placeHoldersLen) * 3 / 4 - placeHoldersLen;
73
- }
74
- function toByteArray(b64) {
75
- var tmp;
76
- var lens = getLens(b64);
77
- var validLen = lens[0];
78
- var placeHoldersLen = lens[1];
79
- var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen));
80
- var curByte = 0;
81
- var len2 = placeHoldersLen > 0 ? validLen - 4 : validLen;
82
- var i2;
83
- for (i2 = 0; i2 < len2; i2 += 4) {
84
- tmp = revLookup[b64.charCodeAt(i2)] << 18 | revLookup[b64.charCodeAt(i2 + 1)] << 12 | revLookup[b64.charCodeAt(i2 + 2)] << 6 | revLookup[b64.charCodeAt(i2 + 3)];
85
- arr[curByte++] = tmp >> 16 & 255;
86
- arr[curByte++] = tmp >> 8 & 255;
87
- arr[curByte++] = tmp & 255;
88
- }
89
- if (placeHoldersLen === 2) {
90
- tmp = revLookup[b64.charCodeAt(i2)] << 2 | revLookup[b64.charCodeAt(i2 + 1)] >> 4;
91
- arr[curByte++] = tmp & 255;
92
- }
93
- if (placeHoldersLen === 1) {
94
- tmp = revLookup[b64.charCodeAt(i2)] << 10 | revLookup[b64.charCodeAt(i2 + 1)] << 4 | revLookup[b64.charCodeAt(i2 + 2)] >> 2;
95
- arr[curByte++] = tmp >> 8 & 255;
96
- arr[curByte++] = tmp & 255;
97
- }
98
- return arr;
99
- }
100
- function tripletToBase64(num) {
101
- return lookup[num >> 18 & 63] + lookup[num >> 12 & 63] + lookup[num >> 6 & 63] + lookup[num & 63];
102
- }
103
- function encodeChunk(uint8, start, end) {
104
- var tmp;
105
- var output = [];
106
- for (var i2 = start; i2 < end; i2 += 3) {
107
- tmp = (uint8[i2] << 16 & 16711680) + (uint8[i2 + 1] << 8 & 65280) + (uint8[i2 + 2] & 255);
108
- output.push(tripletToBase64(tmp));
109
- }
110
- return output.join("");
111
- }
112
- function fromByteArray(uint8) {
113
- var tmp;
114
- var len2 = uint8.length;
115
- var extraBytes = len2 % 3;
116
- var parts = [];
117
- var maxChunkLength = 16383;
118
- for (var i2 = 0, len22 = len2 - extraBytes; i2 < len22; i2 += maxChunkLength) {
119
- parts.push(encodeChunk(uint8, i2, i2 + maxChunkLength > len22 ? len22 : i2 + maxChunkLength));
120
- }
121
- if (extraBytes === 1) {
122
- tmp = uint8[len2 - 1];
123
- parts.push(lookup[tmp >> 2] + lookup[tmp << 4 & 63] + "==");
124
- } else if (extraBytes === 2) {
125
- tmp = (uint8[len2 - 2] << 8) + uint8[len2 - 1];
126
- parts.push(lookup[tmp >> 10] + lookup[tmp >> 4 & 63] + lookup[tmp << 2 & 63] + "=");
127
- }
128
- return parts.join("");
129
- }
130
- return exports$2;
131
- }
132
- function dew$1() {
133
- if (_dewExec$1)
134
- return exports$1;
135
- _dewExec$1 = true;
136
- exports$1.read = function(buffer, offset, isLE, mLen, nBytes) {
137
- var e, m;
138
- var eLen = nBytes * 8 - mLen - 1;
139
- var eMax = (1 << eLen) - 1;
140
- var eBias = eMax >> 1;
141
- var nBits = -7;
142
- var i = isLE ? nBytes - 1 : 0;
143
- var d = isLE ? -1 : 1;
144
- var s = buffer[offset + i];
145
- i += d;
146
- e = s & (1 << -nBits) - 1;
147
- s >>= -nBits;
148
- nBits += eLen;
149
- for (; nBits > 0; e = e * 256 + buffer[offset + i], i += d, nBits -= 8) {
150
- }
151
- m = e & (1 << -nBits) - 1;
152
- e >>= -nBits;
153
- nBits += mLen;
154
- for (; nBits > 0; m = m * 256 + buffer[offset + i], i += d, nBits -= 8) {
155
- }
156
- if (e === 0) {
157
- e = 1 - eBias;
158
- } else if (e === eMax) {
159
- return m ? NaN : (s ? -1 : 1) * Infinity;
160
- } else {
161
- m = m + Math.pow(2, mLen);
162
- e = e - eBias;
163
- }
164
- return (s ? -1 : 1) * m * Math.pow(2, e - mLen);
165
- };
166
- exports$1.write = function(buffer, value, offset, isLE, mLen, nBytes) {
167
- var e, m, c;
168
- var eLen = nBytes * 8 - mLen - 1;
169
- var eMax = (1 << eLen) - 1;
170
- var eBias = eMax >> 1;
171
- var rt = mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0;
172
- var i = isLE ? 0 : nBytes - 1;
173
- var d = isLE ? 1 : -1;
174
- var s = value < 0 || value === 0 && 1 / value < 0 ? 1 : 0;
175
- value = Math.abs(value);
176
- if (isNaN(value) || value === Infinity) {
177
- m = isNaN(value) ? 1 : 0;
178
- e = eMax;
179
- } else {
180
- e = Math.floor(Math.log(value) / Math.LN2);
181
- if (value * (c = Math.pow(2, -e)) < 1) {
182
- e--;
183
- c *= 2;
184
- }
185
- if (e + eBias >= 1) {
186
- value += rt / c;
187
- } else {
188
- value += rt * Math.pow(2, 1 - eBias);
189
- }
190
- if (value * c >= 2) {
191
- e++;
192
- c /= 2;
193
- }
194
- if (e + eBias >= eMax) {
195
- m = 0;
196
- e = eMax;
197
- } else if (e + eBias >= 1) {
198
- m = (value * c - 1) * Math.pow(2, mLen);
199
- e = e + eBias;
200
- } else {
201
- m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen);
202
- e = 0;
203
- }
204
- }
205
- for (; mLen >= 8; buffer[offset + i] = m & 255, i += d, m /= 256, mLen -= 8) {
206
- }
207
- e = e << mLen | m;
208
- eLen += mLen;
209
- for (; eLen > 0; buffer[offset + i] = e & 255, i += d, e /= 256, eLen -= 8) {
210
- }
211
- buffer[offset + i - d] |= s * 128;
212
- };
213
- return exports$1;
214
- }
215
- function dew() {
216
- if (_dewExec)
217
- return exports;
218
- _dewExec = true;
219
- const base64 = dew$2();
220
- const ieee754 = dew$1();
221
- const customInspectSymbol = typeof Symbol === "function" && typeof Symbol["for"] === "function" ? Symbol["for"]("nodejs.util.inspect.custom") : null;
222
- exports.Buffer = Buffer3;
223
- exports.SlowBuffer = SlowBuffer;
224
- exports.INSPECT_MAX_BYTES = 50;
225
- const K_MAX_LENGTH = 2147483647;
226
- exports.kMaxLength = K_MAX_LENGTH;
227
- Buffer3.TYPED_ARRAY_SUPPORT = typedArraySupport();
228
- if (!Buffer3.TYPED_ARRAY_SUPPORT && typeof console !== "undefined" && typeof console.error === "function") {
229
- console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");
230
- }
231
- function typedArraySupport() {
232
- try {
233
- const arr = new Uint8Array(1);
234
- const proto = {
235
- foo: function() {
236
- return 42;
237
- }
238
- };
239
- Object.setPrototypeOf(proto, Uint8Array.prototype);
240
- Object.setPrototypeOf(arr, proto);
241
- return arr.foo() === 42;
242
- } catch (e) {
243
- return false;
244
- }
245
- }
246
- Object.defineProperty(Buffer3.prototype, "parent", {
247
- enumerable: true,
248
- get: function() {
249
- if (!Buffer3.isBuffer(this))
250
- return void 0;
251
- return this.buffer;
252
- }
253
- });
254
- Object.defineProperty(Buffer3.prototype, "offset", {
255
- enumerable: true,
256
- get: function() {
257
- if (!Buffer3.isBuffer(this))
258
- return void 0;
259
- return this.byteOffset;
260
- }
261
- });
262
- function createBuffer(length) {
263
- if (length > K_MAX_LENGTH) {
264
- throw new RangeError('The value "' + length + '" is invalid for option "size"');
265
- }
266
- const buf = new Uint8Array(length);
267
- Object.setPrototypeOf(buf, Buffer3.prototype);
268
- return buf;
269
- }
270
- function Buffer3(arg, encodingOrOffset, length) {
271
- if (typeof arg === "number") {
272
- if (typeof encodingOrOffset === "string") {
273
- throw new TypeError('The "string" argument must be of type string. Received type number');
274
- }
275
- return allocUnsafe(arg);
276
- }
277
- return from(arg, encodingOrOffset, length);
278
- }
279
- Buffer3.poolSize = 8192;
280
- function from(value, encodingOrOffset, length) {
281
- if (typeof value === "string") {
282
- return fromString(value, encodingOrOffset);
283
- }
284
- if (ArrayBuffer.isView(value)) {
285
- return fromArrayView(value);
286
- }
287
- if (value == null) {
288
- throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof value);
289
- }
290
- if (isInstance(value, ArrayBuffer) || value && isInstance(value.buffer, ArrayBuffer)) {
291
- return fromArrayBuffer(value, encodingOrOffset, length);
292
- }
293
- if (typeof SharedArrayBuffer !== "undefined" && (isInstance(value, SharedArrayBuffer) || value && isInstance(value.buffer, SharedArrayBuffer))) {
294
- return fromArrayBuffer(value, encodingOrOffset, length);
295
- }
296
- if (typeof value === "number") {
297
- throw new TypeError('The "value" argument must not be of type number. Received type number');
298
- }
299
- const valueOf = value.valueOf && value.valueOf();
300
- if (valueOf != null && valueOf !== value) {
301
- return Buffer3.from(valueOf, encodingOrOffset, length);
302
- }
303
- const b = fromObject(value);
304
- if (b)
305
- return b;
306
- if (typeof Symbol !== "undefined" && Symbol.toPrimitive != null && typeof value[Symbol.toPrimitive] === "function") {
307
- return Buffer3.from(value[Symbol.toPrimitive]("string"), encodingOrOffset, length);
308
- }
309
- throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof value);
310
- }
311
- Buffer3.from = function(value, encodingOrOffset, length) {
312
- return from(value, encodingOrOffset, length);
313
- };
314
- Object.setPrototypeOf(Buffer3.prototype, Uint8Array.prototype);
315
- Object.setPrototypeOf(Buffer3, Uint8Array);
316
- function assertSize(size) {
317
- if (typeof size !== "number") {
318
- throw new TypeError('"size" argument must be of type number');
319
- } else if (size < 0) {
320
- throw new RangeError('The value "' + size + '" is invalid for option "size"');
321
- }
322
- }
323
- function alloc(size, fill, encoding) {
324
- assertSize(size);
325
- if (size <= 0) {
326
- return createBuffer(size);
327
- }
328
- if (fill !== void 0) {
329
- return typeof encoding === "string" ? createBuffer(size).fill(fill, encoding) : createBuffer(size).fill(fill);
330
- }
331
- return createBuffer(size);
332
- }
333
- Buffer3.alloc = function(size, fill, encoding) {
334
- return alloc(size, fill, encoding);
335
- };
336
- function allocUnsafe(size) {
337
- assertSize(size);
338
- return createBuffer(size < 0 ? 0 : checked(size) | 0);
339
- }
340
- Buffer3.allocUnsafe = function(size) {
341
- return allocUnsafe(size);
342
- };
343
- Buffer3.allocUnsafeSlow = function(size) {
344
- return allocUnsafe(size);
345
- };
346
- function fromString(string, encoding) {
347
- if (typeof encoding !== "string" || encoding === "") {
348
- encoding = "utf8";
349
- }
350
- if (!Buffer3.isEncoding(encoding)) {
351
- throw new TypeError("Unknown encoding: " + encoding);
352
- }
353
- const length = byteLength(string, encoding) | 0;
354
- let buf = createBuffer(length);
355
- const actual = buf.write(string, encoding);
356
- if (actual !== length) {
357
- buf = buf.slice(0, actual);
358
- }
359
- return buf;
360
- }
361
- function fromArrayLike(array) {
362
- const length = array.length < 0 ? 0 : checked(array.length) | 0;
363
- const buf = createBuffer(length);
364
- for (let i = 0; i < length; i += 1) {
365
- buf[i] = array[i] & 255;
366
- }
367
- return buf;
368
- }
369
- function fromArrayView(arrayView) {
370
- if (isInstance(arrayView, Uint8Array)) {
371
- const copy = new Uint8Array(arrayView);
372
- return fromArrayBuffer(copy.buffer, copy.byteOffset, copy.byteLength);
373
- }
374
- return fromArrayLike(arrayView);
375
- }
376
- function fromArrayBuffer(array, byteOffset, length) {
377
- if (byteOffset < 0 || array.byteLength < byteOffset) {
378
- throw new RangeError('"offset" is outside of buffer bounds');
379
- }
380
- if (array.byteLength < byteOffset + (length || 0)) {
381
- throw new RangeError('"length" is outside of buffer bounds');
382
- }
383
- let buf;
384
- if (byteOffset === void 0 && length === void 0) {
385
- buf = new Uint8Array(array);
386
- } else if (length === void 0) {
387
- buf = new Uint8Array(array, byteOffset);
388
- } else {
389
- buf = new Uint8Array(array, byteOffset, length);
390
- }
391
- Object.setPrototypeOf(buf, Buffer3.prototype);
392
- return buf;
393
- }
394
- function fromObject(obj) {
395
- if (Buffer3.isBuffer(obj)) {
396
- const len = checked(obj.length) | 0;
397
- const buf = createBuffer(len);
398
- if (buf.length === 0) {
399
- return buf;
400
- }
401
- obj.copy(buf, 0, 0, len);
402
- return buf;
403
- }
404
- if (obj.length !== void 0) {
405
- if (typeof obj.length !== "number" || numberIsNaN(obj.length)) {
406
- return createBuffer(0);
407
- }
408
- return fromArrayLike(obj);
409
- }
410
- if (obj.type === "Buffer" && Array.isArray(obj.data)) {
411
- return fromArrayLike(obj.data);
412
- }
413
- }
414
- function checked(length) {
415
- if (length >= K_MAX_LENGTH) {
416
- throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + K_MAX_LENGTH.toString(16) + " bytes");
417
- }
418
- return length | 0;
419
- }
420
- function SlowBuffer(length) {
421
- if (+length != length) {
422
- length = 0;
423
- }
424
- return Buffer3.alloc(+length);
425
- }
426
- Buffer3.isBuffer = function isBuffer(b) {
427
- return b != null && b._isBuffer === true && b !== Buffer3.prototype;
428
- };
429
- Buffer3.compare = function compare(a, b) {
430
- if (isInstance(a, Uint8Array))
431
- a = Buffer3.from(a, a.offset, a.byteLength);
432
- if (isInstance(b, Uint8Array))
433
- b = Buffer3.from(b, b.offset, b.byteLength);
434
- if (!Buffer3.isBuffer(a) || !Buffer3.isBuffer(b)) {
435
- throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');
436
- }
437
- if (a === b)
438
- return 0;
439
- let x = a.length;
440
- let y = b.length;
441
- for (let i = 0, len = Math.min(x, y); i < len; ++i) {
442
- if (a[i] !== b[i]) {
443
- x = a[i];
444
- y = b[i];
445
- break;
446
- }
447
- }
448
- if (x < y)
449
- return -1;
450
- if (y < x)
451
- return 1;
452
- return 0;
453
- };
454
- Buffer3.isEncoding = function isEncoding(encoding) {
455
- switch (String(encoding).toLowerCase()) {
456
- case "hex":
457
- case "utf8":
458
- case "utf-8":
459
- case "ascii":
460
- case "latin1":
461
- case "binary":
462
- case "base64":
463
- case "ucs2":
464
- case "ucs-2":
465
- case "utf16le":
466
- case "utf-16le":
467
- return true;
468
- default:
469
- return false;
470
- }
471
- };
472
- Buffer3.concat = function concat(list, length) {
473
- if (!Array.isArray(list)) {
474
- throw new TypeError('"list" argument must be an Array of Buffers');
475
- }
476
- if (list.length === 0) {
477
- return Buffer3.alloc(0);
478
- }
479
- let i;
480
- if (length === void 0) {
481
- length = 0;
482
- for (i = 0; i < list.length; ++i) {
483
- length += list[i].length;
484
- }
485
- }
486
- const buffer = Buffer3.allocUnsafe(length);
487
- let pos = 0;
488
- for (i = 0; i < list.length; ++i) {
489
- let buf = list[i];
490
- if (isInstance(buf, Uint8Array)) {
491
- if (pos + buf.length > buffer.length) {
492
- if (!Buffer3.isBuffer(buf))
493
- buf = Buffer3.from(buf);
494
- buf.copy(buffer, pos);
495
- } else {
496
- Uint8Array.prototype.set.call(buffer, buf, pos);
497
- }
498
- } else if (!Buffer3.isBuffer(buf)) {
499
- throw new TypeError('"list" argument must be an Array of Buffers');
500
- } else {
501
- buf.copy(buffer, pos);
502
- }
503
- pos += buf.length;
504
- }
505
- return buffer;
506
- };
507
- function byteLength(string, encoding) {
508
- if (Buffer3.isBuffer(string)) {
509
- return string.length;
510
- }
511
- if (ArrayBuffer.isView(string) || isInstance(string, ArrayBuffer)) {
512
- return string.byteLength;
513
- }
514
- if (typeof string !== "string") {
515
- throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type ' + typeof string);
516
- }
517
- const len = string.length;
518
- const mustMatch = arguments.length > 2 && arguments[2] === true;
519
- if (!mustMatch && len === 0)
520
- return 0;
521
- let loweredCase = false;
522
- for (; ; ) {
523
- switch (encoding) {
524
- case "ascii":
525
- case "latin1":
526
- case "binary":
527
- return len;
528
- case "utf8":
529
- case "utf-8":
530
- return utf8ToBytes(string).length;
531
- case "ucs2":
532
- case "ucs-2":
533
- case "utf16le":
534
- case "utf-16le":
535
- return len * 2;
536
- case "hex":
537
- return len >>> 1;
538
- case "base64":
539
- return base64ToBytes(string).length;
540
- default:
541
- if (loweredCase) {
542
- return mustMatch ? -1 : utf8ToBytes(string).length;
543
- }
544
- encoding = ("" + encoding).toLowerCase();
545
- loweredCase = true;
546
- }
547
- }
548
- }
549
- Buffer3.byteLength = byteLength;
550
- function slowToString(encoding, start, end) {
551
- let loweredCase = false;
552
- if (start === void 0 || start < 0) {
553
- start = 0;
554
- }
555
- if (start > this.length) {
556
- return "";
557
- }
558
- if (end === void 0 || end > this.length) {
559
- end = this.length;
560
- }
561
- if (end <= 0) {
562
- return "";
563
- }
564
- end >>>= 0;
565
- start >>>= 0;
566
- if (end <= start) {
567
- return "";
568
- }
569
- if (!encoding)
570
- encoding = "utf8";
571
- while (true) {
572
- switch (encoding) {
573
- case "hex":
574
- return hexSlice(this, start, end);
575
- case "utf8":
576
- case "utf-8":
577
- return utf8Slice(this, start, end);
578
- case "ascii":
579
- return asciiSlice(this, start, end);
580
- case "latin1":
581
- case "binary":
582
- return latin1Slice(this, start, end);
583
- case "base64":
584
- return base64Slice(this, start, end);
585
- case "ucs2":
586
- case "ucs-2":
587
- case "utf16le":
588
- case "utf-16le":
589
- return utf16leSlice(this, start, end);
590
- default:
591
- if (loweredCase)
592
- throw new TypeError("Unknown encoding: " + encoding);
593
- encoding = (encoding + "").toLowerCase();
594
- loweredCase = true;
595
- }
596
- }
597
- }
598
- Buffer3.prototype._isBuffer = true;
599
- function swap(b, n, m) {
600
- const i = b[n];
601
- b[n] = b[m];
602
- b[m] = i;
603
- }
604
- Buffer3.prototype.swap16 = function swap16() {
605
- const len = this.length;
606
- if (len % 2 !== 0) {
607
- throw new RangeError("Buffer size must be a multiple of 16-bits");
608
- }
609
- for (let i = 0; i < len; i += 2) {
610
- swap(this, i, i + 1);
611
- }
612
- return this;
613
- };
614
- Buffer3.prototype.swap32 = function swap32() {
615
- const len = this.length;
616
- if (len % 4 !== 0) {
617
- throw new RangeError("Buffer size must be a multiple of 32-bits");
618
- }
619
- for (let i = 0; i < len; i += 4) {
620
- swap(this, i, i + 3);
621
- swap(this, i + 1, i + 2);
622
- }
623
- return this;
624
- };
625
- Buffer3.prototype.swap64 = function swap64() {
626
- const len = this.length;
627
- if (len % 8 !== 0) {
628
- throw new RangeError("Buffer size must be a multiple of 64-bits");
629
- }
630
- for (let i = 0; i < len; i += 8) {
631
- swap(this, i, i + 7);
632
- swap(this, i + 1, i + 6);
633
- swap(this, i + 2, i + 5);
634
- swap(this, i + 3, i + 4);
635
- }
636
- return this;
637
- };
638
- Buffer3.prototype.toString = function toString() {
639
- const length = this.length;
640
- if (length === 0)
641
- return "";
642
- if (arguments.length === 0)
643
- return utf8Slice(this, 0, length);
644
- return slowToString.apply(this, arguments);
645
- };
646
- Buffer3.prototype.toLocaleString = Buffer3.prototype.toString;
647
- Buffer3.prototype.equals = function equals(b) {
648
- if (!Buffer3.isBuffer(b))
649
- throw new TypeError("Argument must be a Buffer");
650
- if (this === b)
651
- return true;
652
- return Buffer3.compare(this, b) === 0;
653
- };
654
- Buffer3.prototype.inspect = function inspect() {
655
- let str = "";
656
- const max = exports.INSPECT_MAX_BYTES;
657
- str = this.toString("hex", 0, max).replace(/(.{2})/g, "$1 ").trim();
658
- if (this.length > max)
659
- str += " ... ";
660
- return "<Buffer " + str + ">";
661
- };
662
- if (customInspectSymbol) {
663
- Buffer3.prototype[customInspectSymbol] = Buffer3.prototype.inspect;
664
- }
665
- Buffer3.prototype.compare = function compare(target, start, end, thisStart, thisEnd) {
666
- if (isInstance(target, Uint8Array)) {
667
- target = Buffer3.from(target, target.offset, target.byteLength);
668
- }
669
- if (!Buffer3.isBuffer(target)) {
670
- throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof target);
671
- }
672
- if (start === void 0) {
673
- start = 0;
674
- }
675
- if (end === void 0) {
676
- end = target ? target.length : 0;
677
- }
678
- if (thisStart === void 0) {
679
- thisStart = 0;
680
- }
681
- if (thisEnd === void 0) {
682
- thisEnd = this.length;
683
- }
684
- if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) {
685
- throw new RangeError("out of range index");
686
- }
687
- if (thisStart >= thisEnd && start >= end) {
688
- return 0;
689
- }
690
- if (thisStart >= thisEnd) {
691
- return -1;
692
- }
693
- if (start >= end) {
694
- return 1;
695
- }
696
- start >>>= 0;
697
- end >>>= 0;
698
- thisStart >>>= 0;
699
- thisEnd >>>= 0;
700
- if (this === target)
701
- return 0;
702
- let x = thisEnd - thisStart;
703
- let y = end - start;
704
- const len = Math.min(x, y);
705
- const thisCopy = this.slice(thisStart, thisEnd);
706
- const targetCopy = target.slice(start, end);
707
- for (let i = 0; i < len; ++i) {
708
- if (thisCopy[i] !== targetCopy[i]) {
709
- x = thisCopy[i];
710
- y = targetCopy[i];
711
- break;
712
- }
713
- }
714
- if (x < y)
715
- return -1;
716
- if (y < x)
717
- return 1;
718
- return 0;
719
- };
720
- function bidirectionalIndexOf(buffer, val, byteOffset, encoding, dir) {
721
- if (buffer.length === 0)
722
- return -1;
723
- if (typeof byteOffset === "string") {
724
- encoding = byteOffset;
725
- byteOffset = 0;
726
- } else if (byteOffset > 2147483647) {
727
- byteOffset = 2147483647;
728
- } else if (byteOffset < -2147483648) {
729
- byteOffset = -2147483648;
730
- }
731
- byteOffset = +byteOffset;
732
- if (numberIsNaN(byteOffset)) {
733
- byteOffset = dir ? 0 : buffer.length - 1;
734
- }
735
- if (byteOffset < 0)
736
- byteOffset = buffer.length + byteOffset;
737
- if (byteOffset >= buffer.length) {
738
- if (dir)
739
- return -1;
740
- else
741
- byteOffset = buffer.length - 1;
742
- } else if (byteOffset < 0) {
743
- if (dir)
744
- byteOffset = 0;
745
- else
746
- return -1;
747
- }
748
- if (typeof val === "string") {
749
- val = Buffer3.from(val, encoding);
750
- }
751
- if (Buffer3.isBuffer(val)) {
752
- if (val.length === 0) {
753
- return -1;
754
- }
755
- return arrayIndexOf(buffer, val, byteOffset, encoding, dir);
756
- } else if (typeof val === "number") {
757
- val = val & 255;
758
- if (typeof Uint8Array.prototype.indexOf === "function") {
759
- if (dir) {
760
- return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset);
761
- } else {
762
- return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset);
763
- }
764
- }
765
- return arrayIndexOf(buffer, [val], byteOffset, encoding, dir);
766
- }
767
- throw new TypeError("val must be string, number or Buffer");
768
- }
769
- function arrayIndexOf(arr, val, byteOffset, encoding, dir) {
770
- let indexSize = 1;
771
- let arrLength = arr.length;
772
- let valLength = val.length;
773
- if (encoding !== void 0) {
774
- encoding = String(encoding).toLowerCase();
775
- if (encoding === "ucs2" || encoding === "ucs-2" || encoding === "utf16le" || encoding === "utf-16le") {
776
- if (arr.length < 2 || val.length < 2) {
777
- return -1;
778
- }
779
- indexSize = 2;
780
- arrLength /= 2;
781
- valLength /= 2;
782
- byteOffset /= 2;
783
- }
784
- }
785
- function read(buf, i2) {
786
- if (indexSize === 1) {
787
- return buf[i2];
788
- } else {
789
- return buf.readUInt16BE(i2 * indexSize);
790
- }
791
- }
792
- let i;
793
- if (dir) {
794
- let foundIndex = -1;
795
- for (i = byteOffset; i < arrLength; i++) {
796
- if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {
797
- if (foundIndex === -1)
798
- foundIndex = i;
799
- if (i - foundIndex + 1 === valLength)
800
- return foundIndex * indexSize;
801
- } else {
802
- if (foundIndex !== -1)
803
- i -= i - foundIndex;
804
- foundIndex = -1;
805
- }
806
- }
807
- } else {
808
- if (byteOffset + valLength > arrLength)
809
- byteOffset = arrLength - valLength;
810
- for (i = byteOffset; i >= 0; i--) {
811
- let found = true;
812
- for (let j = 0; j < valLength; j++) {
813
- if (read(arr, i + j) !== read(val, j)) {
814
- found = false;
815
- break;
816
- }
817
- }
818
- if (found)
819
- return i;
820
- }
821
- }
822
- return -1;
823
- }
824
- Buffer3.prototype.includes = function includes(val, byteOffset, encoding) {
825
- return this.indexOf(val, byteOffset, encoding) !== -1;
826
- };
827
- Buffer3.prototype.indexOf = function indexOf(val, byteOffset, encoding) {
828
- return bidirectionalIndexOf(this, val, byteOffset, encoding, true);
829
- };
830
- Buffer3.prototype.lastIndexOf = function lastIndexOf(val, byteOffset, encoding) {
831
- return bidirectionalIndexOf(this, val, byteOffset, encoding, false);
832
- };
833
- function hexWrite(buf, string, offset, length) {
834
- offset = Number(offset) || 0;
835
- const remaining = buf.length - offset;
836
- if (!length) {
837
- length = remaining;
838
- } else {
839
- length = Number(length);
840
- if (length > remaining) {
841
- length = remaining;
842
- }
843
- }
844
- const strLen = string.length;
845
- if (length > strLen / 2) {
846
- length = strLen / 2;
847
- }
848
- let i;
849
- for (i = 0; i < length; ++i) {
850
- const parsed = parseInt(string.substr(i * 2, 2), 16);
851
- if (numberIsNaN(parsed))
852
- return i;
853
- buf[offset + i] = parsed;
854
- }
855
- return i;
856
- }
857
- function utf8Write(buf, string, offset, length) {
858
- return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length);
859
- }
860
- function asciiWrite(buf, string, offset, length) {
861
- return blitBuffer(asciiToBytes(string), buf, offset, length);
862
- }
863
- function base64Write(buf, string, offset, length) {
864
- return blitBuffer(base64ToBytes(string), buf, offset, length);
865
- }
866
- function ucs2Write(buf, string, offset, length) {
867
- return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length);
868
- }
869
- Buffer3.prototype.write = function write(string, offset, length, encoding) {
870
- if (offset === void 0) {
871
- encoding = "utf8";
872
- length = this.length;
873
- offset = 0;
874
- } else if (length === void 0 && typeof offset === "string") {
875
- encoding = offset;
876
- length = this.length;
877
- offset = 0;
878
- } else if (isFinite(offset)) {
879
- offset = offset >>> 0;
880
- if (isFinite(length)) {
881
- length = length >>> 0;
882
- if (encoding === void 0)
883
- encoding = "utf8";
884
- } else {
885
- encoding = length;
886
- length = void 0;
887
- }
888
- } else {
889
- throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");
890
- }
891
- const remaining = this.length - offset;
892
- if (length === void 0 || length > remaining)
893
- length = remaining;
894
- if (string.length > 0 && (length < 0 || offset < 0) || offset > this.length) {
895
- throw new RangeError("Attempt to write outside buffer bounds");
896
- }
897
- if (!encoding)
898
- encoding = "utf8";
899
- let loweredCase = false;
900
- for (; ; ) {
901
- switch (encoding) {
902
- case "hex":
903
- return hexWrite(this, string, offset, length);
904
- case "utf8":
905
- case "utf-8":
906
- return utf8Write(this, string, offset, length);
907
- case "ascii":
908
- case "latin1":
909
- case "binary":
910
- return asciiWrite(this, string, offset, length);
911
- case "base64":
912
- return base64Write(this, string, offset, length);
913
- case "ucs2":
914
- case "ucs-2":
915
- case "utf16le":
916
- case "utf-16le":
917
- return ucs2Write(this, string, offset, length);
918
- default:
919
- if (loweredCase)
920
- throw new TypeError("Unknown encoding: " + encoding);
921
- encoding = ("" + encoding).toLowerCase();
922
- loweredCase = true;
923
- }
924
- }
925
- };
926
- Buffer3.prototype.toJSON = function toJSON() {
927
- return {
928
- type: "Buffer",
929
- data: Array.prototype.slice.call(this._arr || this, 0)
930
- };
931
- };
932
- function base64Slice(buf, start, end) {
933
- if (start === 0 && end === buf.length) {
934
- return base64.fromByteArray(buf);
935
- } else {
936
- return base64.fromByteArray(buf.slice(start, end));
937
- }
938
- }
939
- function utf8Slice(buf, start, end) {
940
- end = Math.min(buf.length, end);
941
- const res = [];
942
- let i = start;
943
- while (i < end) {
944
- const firstByte = buf[i];
945
- let codePoint = null;
946
- let bytesPerSequence = firstByte > 239 ? 4 : firstByte > 223 ? 3 : firstByte > 191 ? 2 : 1;
947
- if (i + bytesPerSequence <= end) {
948
- let secondByte, thirdByte, fourthByte, tempCodePoint;
949
- switch (bytesPerSequence) {
950
- case 1:
951
- if (firstByte < 128) {
952
- codePoint = firstByte;
953
- }
954
- break;
955
- case 2:
956
- secondByte = buf[i + 1];
957
- if ((secondByte & 192) === 128) {
958
- tempCodePoint = (firstByte & 31) << 6 | secondByte & 63;
959
- if (tempCodePoint > 127) {
960
- codePoint = tempCodePoint;
961
- }
962
- }
963
- break;
964
- case 3:
965
- secondByte = buf[i + 1];
966
- thirdByte = buf[i + 2];
967
- if ((secondByte & 192) === 128 && (thirdByte & 192) === 128) {
968
- tempCodePoint = (firstByte & 15) << 12 | (secondByte & 63) << 6 | thirdByte & 63;
969
- if (tempCodePoint > 2047 && (tempCodePoint < 55296 || tempCodePoint > 57343)) {
970
- codePoint = tempCodePoint;
971
- }
972
- }
973
- break;
974
- case 4:
975
- secondByte = buf[i + 1];
976
- thirdByte = buf[i + 2];
977
- fourthByte = buf[i + 3];
978
- if ((secondByte & 192) === 128 && (thirdByte & 192) === 128 && (fourthByte & 192) === 128) {
979
- tempCodePoint = (firstByte & 15) << 18 | (secondByte & 63) << 12 | (thirdByte & 63) << 6 | fourthByte & 63;
980
- if (tempCodePoint > 65535 && tempCodePoint < 1114112) {
981
- codePoint = tempCodePoint;
982
- }
983
- }
984
- }
985
- }
986
- if (codePoint === null) {
987
- codePoint = 65533;
988
- bytesPerSequence = 1;
989
- } else if (codePoint > 65535) {
990
- codePoint -= 65536;
991
- res.push(codePoint >>> 10 & 1023 | 55296);
992
- codePoint = 56320 | codePoint & 1023;
993
- }
994
- res.push(codePoint);
995
- i += bytesPerSequence;
996
- }
997
- return decodeCodePointsArray(res);
998
- }
999
- const MAX_ARGUMENTS_LENGTH = 4096;
1000
- function decodeCodePointsArray(codePoints) {
1001
- const len = codePoints.length;
1002
- if (len <= MAX_ARGUMENTS_LENGTH) {
1003
- return String.fromCharCode.apply(String, codePoints);
1004
- }
1005
- let res = "";
1006
- let i = 0;
1007
- while (i < len) {
1008
- res += String.fromCharCode.apply(String, codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH));
1009
- }
1010
- return res;
1011
- }
1012
- function asciiSlice(buf, start, end) {
1013
- let ret = "";
1014
- end = Math.min(buf.length, end);
1015
- for (let i = start; i < end; ++i) {
1016
- ret += String.fromCharCode(buf[i] & 127);
1017
- }
1018
- return ret;
1019
- }
1020
- function latin1Slice(buf, start, end) {
1021
- let ret = "";
1022
- end = Math.min(buf.length, end);
1023
- for (let i = start; i < end; ++i) {
1024
- ret += String.fromCharCode(buf[i]);
1025
- }
1026
- return ret;
1027
- }
1028
- function hexSlice(buf, start, end) {
1029
- const len = buf.length;
1030
- if (!start || start < 0)
1031
- start = 0;
1032
- if (!end || end < 0 || end > len)
1033
- end = len;
1034
- let out = "";
1035
- for (let i = start; i < end; ++i) {
1036
- out += hexSliceLookupTable[buf[i]];
1037
- }
1038
- return out;
1039
- }
1040
- function utf16leSlice(buf, start, end) {
1041
- const bytes = buf.slice(start, end);
1042
- let res = "";
1043
- for (let i = 0; i < bytes.length - 1; i += 2) {
1044
- res += String.fromCharCode(bytes[i] + bytes[i + 1] * 256);
1045
- }
1046
- return res;
1047
- }
1048
- Buffer3.prototype.slice = function slice(start, end) {
1049
- const len = this.length;
1050
- start = ~~start;
1051
- end = end === void 0 ? len : ~~end;
1052
- if (start < 0) {
1053
- start += len;
1054
- if (start < 0)
1055
- start = 0;
1056
- } else if (start > len) {
1057
- start = len;
1058
- }
1059
- if (end < 0) {
1060
- end += len;
1061
- if (end < 0)
1062
- end = 0;
1063
- } else if (end > len) {
1064
- end = len;
1065
- }
1066
- if (end < start)
1067
- end = start;
1068
- const newBuf = this.subarray(start, end);
1069
- Object.setPrototypeOf(newBuf, Buffer3.prototype);
1070
- return newBuf;
1071
- };
1072
- function checkOffset(offset, ext, length) {
1073
- if (offset % 1 !== 0 || offset < 0)
1074
- throw new RangeError("offset is not uint");
1075
- if (offset + ext > length)
1076
- throw new RangeError("Trying to access beyond buffer length");
1077
- }
1078
- Buffer3.prototype.readUintLE = Buffer3.prototype.readUIntLE = function readUIntLE(offset, byteLength2, noAssert) {
1079
- offset = offset >>> 0;
1080
- byteLength2 = byteLength2 >>> 0;
1081
- if (!noAssert)
1082
- checkOffset(offset, byteLength2, this.length);
1083
- let val = this[offset];
1084
- let mul = 1;
1085
- let i = 0;
1086
- while (++i < byteLength2 && (mul *= 256)) {
1087
- val += this[offset + i] * mul;
1088
- }
1089
- return val;
1090
- };
1091
- Buffer3.prototype.readUintBE = Buffer3.prototype.readUIntBE = function readUIntBE(offset, byteLength2, noAssert) {
1092
- offset = offset >>> 0;
1093
- byteLength2 = byteLength2 >>> 0;
1094
- if (!noAssert) {
1095
- checkOffset(offset, byteLength2, this.length);
1096
- }
1097
- let val = this[offset + --byteLength2];
1098
- let mul = 1;
1099
- while (byteLength2 > 0 && (mul *= 256)) {
1100
- val += this[offset + --byteLength2] * mul;
1101
- }
1102
- return val;
1103
- };
1104
- Buffer3.prototype.readUint8 = Buffer3.prototype.readUInt8 = function readUInt8(offset, noAssert) {
1105
- offset = offset >>> 0;
1106
- if (!noAssert)
1107
- checkOffset(offset, 1, this.length);
1108
- return this[offset];
1109
- };
1110
- Buffer3.prototype.readUint16LE = Buffer3.prototype.readUInt16LE = function readUInt16LE(offset, noAssert) {
1111
- offset = offset >>> 0;
1112
- if (!noAssert)
1113
- checkOffset(offset, 2, this.length);
1114
- return this[offset] | this[offset + 1] << 8;
1115
- };
1116
- Buffer3.prototype.readUint16BE = Buffer3.prototype.readUInt16BE = function readUInt16BE(offset, noAssert) {
1117
- offset = offset >>> 0;
1118
- if (!noAssert)
1119
- checkOffset(offset, 2, this.length);
1120
- return this[offset] << 8 | this[offset + 1];
1121
- };
1122
- Buffer3.prototype.readUint32LE = Buffer3.prototype.readUInt32LE = function readUInt32LE(offset, noAssert) {
1123
- offset = offset >>> 0;
1124
- if (!noAssert)
1125
- checkOffset(offset, 4, this.length);
1126
- return (this[offset] | this[offset + 1] << 8 | this[offset + 2] << 16) + this[offset + 3] * 16777216;
1127
- };
1128
- Buffer3.prototype.readUint32BE = Buffer3.prototype.readUInt32BE = function readUInt32BE(offset, noAssert) {
1129
- offset = offset >>> 0;
1130
- if (!noAssert)
1131
- checkOffset(offset, 4, this.length);
1132
- return this[offset] * 16777216 + (this[offset + 1] << 16 | this[offset + 2] << 8 | this[offset + 3]);
1133
- };
1134
- Buffer3.prototype.readBigUInt64LE = defineBigIntMethod(function readBigUInt64LE(offset) {
1135
- offset = offset >>> 0;
1136
- validateNumber(offset, "offset");
1137
- const first = this[offset];
1138
- const last = this[offset + 7];
1139
- if (first === void 0 || last === void 0) {
1140
- boundsError(offset, this.length - 8);
1141
- }
1142
- const lo = first + this[++offset] * 2 ** 8 + this[++offset] * 2 ** 16 + this[++offset] * 2 ** 24;
1143
- const hi = this[++offset] + this[++offset] * 2 ** 8 + this[++offset] * 2 ** 16 + last * 2 ** 24;
1144
- return BigInt(lo) + (BigInt(hi) << BigInt(32));
1145
- });
1146
- Buffer3.prototype.readBigUInt64BE = defineBigIntMethod(function readBigUInt64BE(offset) {
1147
- offset = offset >>> 0;
1148
- validateNumber(offset, "offset");
1149
- const first = this[offset];
1150
- const last = this[offset + 7];
1151
- if (first === void 0 || last === void 0) {
1152
- boundsError(offset, this.length - 8);
1153
- }
1154
- const hi = first * 2 ** 24 + this[++offset] * 2 ** 16 + this[++offset] * 2 ** 8 + this[++offset];
1155
- const lo = this[++offset] * 2 ** 24 + this[++offset] * 2 ** 16 + this[++offset] * 2 ** 8 + last;
1156
- return (BigInt(hi) << BigInt(32)) + BigInt(lo);
1157
- });
1158
- Buffer3.prototype.readIntLE = function readIntLE(offset, byteLength2, noAssert) {
1159
- offset = offset >>> 0;
1160
- byteLength2 = byteLength2 >>> 0;
1161
- if (!noAssert)
1162
- checkOffset(offset, byteLength2, this.length);
1163
- let val = this[offset];
1164
- let mul = 1;
1165
- let i = 0;
1166
- while (++i < byteLength2 && (mul *= 256)) {
1167
- val += this[offset + i] * mul;
1168
- }
1169
- mul *= 128;
1170
- if (val >= mul)
1171
- val -= Math.pow(2, 8 * byteLength2);
1172
- return val;
1173
- };
1174
- Buffer3.prototype.readIntBE = function readIntBE(offset, byteLength2, noAssert) {
1175
- offset = offset >>> 0;
1176
- byteLength2 = byteLength2 >>> 0;
1177
- if (!noAssert)
1178
- checkOffset(offset, byteLength2, this.length);
1179
- let i = byteLength2;
1180
- let mul = 1;
1181
- let val = this[offset + --i];
1182
- while (i > 0 && (mul *= 256)) {
1183
- val += this[offset + --i] * mul;
1184
- }
1185
- mul *= 128;
1186
- if (val >= mul)
1187
- val -= Math.pow(2, 8 * byteLength2);
1188
- return val;
1189
- };
1190
- Buffer3.prototype.readInt8 = function readInt8(offset, noAssert) {
1191
- offset = offset >>> 0;
1192
- if (!noAssert)
1193
- checkOffset(offset, 1, this.length);
1194
- if (!(this[offset] & 128))
1195
- return this[offset];
1196
- return (255 - this[offset] + 1) * -1;
1197
- };
1198
- Buffer3.prototype.readInt16LE = function readInt16LE(offset, noAssert) {
1199
- offset = offset >>> 0;
1200
- if (!noAssert)
1201
- checkOffset(offset, 2, this.length);
1202
- const val = this[offset] | this[offset + 1] << 8;
1203
- return val & 32768 ? val | 4294901760 : val;
1204
- };
1205
- Buffer3.prototype.readInt16BE = function readInt16BE(offset, noAssert) {
1206
- offset = offset >>> 0;
1207
- if (!noAssert)
1208
- checkOffset(offset, 2, this.length);
1209
- const val = this[offset + 1] | this[offset] << 8;
1210
- return val & 32768 ? val | 4294901760 : val;
1211
- };
1212
- Buffer3.prototype.readInt32LE = function readInt32LE(offset, noAssert) {
1213
- offset = offset >>> 0;
1214
- if (!noAssert)
1215
- checkOffset(offset, 4, this.length);
1216
- return this[offset] | this[offset + 1] << 8 | this[offset + 2] << 16 | this[offset + 3] << 24;
1217
- };
1218
- Buffer3.prototype.readInt32BE = function readInt32BE(offset, noAssert) {
1219
- offset = offset >>> 0;
1220
- if (!noAssert)
1221
- checkOffset(offset, 4, this.length);
1222
- return this[offset] << 24 | this[offset + 1] << 16 | this[offset + 2] << 8 | this[offset + 3];
1223
- };
1224
- Buffer3.prototype.readBigInt64LE = defineBigIntMethod(function readBigInt64LE(offset) {
1225
- offset = offset >>> 0;
1226
- validateNumber(offset, "offset");
1227
- const first = this[offset];
1228
- const last = this[offset + 7];
1229
- if (first === void 0 || last === void 0) {
1230
- boundsError(offset, this.length - 8);
1231
- }
1232
- const val = this[offset + 4] + this[offset + 5] * 2 ** 8 + this[offset + 6] * 2 ** 16 + (last << 24);
1233
- return (BigInt(val) << BigInt(32)) + BigInt(first + this[++offset] * 2 ** 8 + this[++offset] * 2 ** 16 + this[++offset] * 2 ** 24);
1234
- });
1235
- Buffer3.prototype.readBigInt64BE = defineBigIntMethod(function readBigInt64BE(offset) {
1236
- offset = offset >>> 0;
1237
- validateNumber(offset, "offset");
1238
- const first = this[offset];
1239
- const last = this[offset + 7];
1240
- if (first === void 0 || last === void 0) {
1241
- boundsError(offset, this.length - 8);
1242
- }
1243
- const val = (first << 24) + // Overflow
1244
- this[++offset] * 2 ** 16 + this[++offset] * 2 ** 8 + this[++offset];
1245
- return (BigInt(val) << BigInt(32)) + BigInt(this[++offset] * 2 ** 24 + this[++offset] * 2 ** 16 + this[++offset] * 2 ** 8 + last);
1246
- });
1247
- Buffer3.prototype.readFloatLE = function readFloatLE(offset, noAssert) {
1248
- offset = offset >>> 0;
1249
- if (!noAssert)
1250
- checkOffset(offset, 4, this.length);
1251
- return ieee754.read(this, offset, true, 23, 4);
1252
- };
1253
- Buffer3.prototype.readFloatBE = function readFloatBE(offset, noAssert) {
1254
- offset = offset >>> 0;
1255
- if (!noAssert)
1256
- checkOffset(offset, 4, this.length);
1257
- return ieee754.read(this, offset, false, 23, 4);
1258
- };
1259
- Buffer3.prototype.readDoubleLE = function readDoubleLE(offset, noAssert) {
1260
- offset = offset >>> 0;
1261
- if (!noAssert)
1262
- checkOffset(offset, 8, this.length);
1263
- return ieee754.read(this, offset, true, 52, 8);
1264
- };
1265
- Buffer3.prototype.readDoubleBE = function readDoubleBE(offset, noAssert) {
1266
- offset = offset >>> 0;
1267
- if (!noAssert)
1268
- checkOffset(offset, 8, this.length);
1269
- return ieee754.read(this, offset, false, 52, 8);
1270
- };
1271
- function checkInt(buf, value, offset, ext, max, min) {
1272
- if (!Buffer3.isBuffer(buf))
1273
- throw new TypeError('"buffer" argument must be a Buffer instance');
1274
- if (value > max || value < min)
1275
- throw new RangeError('"value" argument is out of bounds');
1276
- if (offset + ext > buf.length)
1277
- throw new RangeError("Index out of range");
1278
- }
1279
- Buffer3.prototype.writeUintLE = Buffer3.prototype.writeUIntLE = function writeUIntLE(value, offset, byteLength2, noAssert) {
1280
- value = +value;
1281
- offset = offset >>> 0;
1282
- byteLength2 = byteLength2 >>> 0;
1283
- if (!noAssert) {
1284
- const maxBytes = Math.pow(2, 8 * byteLength2) - 1;
1285
- checkInt(this, value, offset, byteLength2, maxBytes, 0);
1286
- }
1287
- let mul = 1;
1288
- let i = 0;
1289
- this[offset] = value & 255;
1290
- while (++i < byteLength2 && (mul *= 256)) {
1291
- this[offset + i] = value / mul & 255;
1292
- }
1293
- return offset + byteLength2;
1294
- };
1295
- Buffer3.prototype.writeUintBE = Buffer3.prototype.writeUIntBE = function writeUIntBE(value, offset, byteLength2, noAssert) {
1296
- value = +value;
1297
- offset = offset >>> 0;
1298
- byteLength2 = byteLength2 >>> 0;
1299
- if (!noAssert) {
1300
- const maxBytes = Math.pow(2, 8 * byteLength2) - 1;
1301
- checkInt(this, value, offset, byteLength2, maxBytes, 0);
1302
- }
1303
- let i = byteLength2 - 1;
1304
- let mul = 1;
1305
- this[offset + i] = value & 255;
1306
- while (--i >= 0 && (mul *= 256)) {
1307
- this[offset + i] = value / mul & 255;
1308
- }
1309
- return offset + byteLength2;
1310
- };
1311
- Buffer3.prototype.writeUint8 = Buffer3.prototype.writeUInt8 = function writeUInt8(value, offset, noAssert) {
1312
- value = +value;
1313
- offset = offset >>> 0;
1314
- if (!noAssert)
1315
- checkInt(this, value, offset, 1, 255, 0);
1316
- this[offset] = value & 255;
1317
- return offset + 1;
1318
- };
1319
- Buffer3.prototype.writeUint16LE = Buffer3.prototype.writeUInt16LE = function writeUInt16LE(value, offset, noAssert) {
1320
- value = +value;
1321
- offset = offset >>> 0;
1322
- if (!noAssert)
1323
- checkInt(this, value, offset, 2, 65535, 0);
1324
- this[offset] = value & 255;
1325
- this[offset + 1] = value >>> 8;
1326
- return offset + 2;
1327
- };
1328
- Buffer3.prototype.writeUint16BE = Buffer3.prototype.writeUInt16BE = function writeUInt16BE(value, offset, noAssert) {
1329
- value = +value;
1330
- offset = offset >>> 0;
1331
- if (!noAssert)
1332
- checkInt(this, value, offset, 2, 65535, 0);
1333
- this[offset] = value >>> 8;
1334
- this[offset + 1] = value & 255;
1335
- return offset + 2;
1336
- };
1337
- Buffer3.prototype.writeUint32LE = Buffer3.prototype.writeUInt32LE = function writeUInt32LE(value, offset, noAssert) {
1338
- value = +value;
1339
- offset = offset >>> 0;
1340
- if (!noAssert)
1341
- checkInt(this, value, offset, 4, 4294967295, 0);
1342
- this[offset + 3] = value >>> 24;
1343
- this[offset + 2] = value >>> 16;
1344
- this[offset + 1] = value >>> 8;
1345
- this[offset] = value & 255;
1346
- return offset + 4;
1347
- };
1348
- Buffer3.prototype.writeUint32BE = Buffer3.prototype.writeUInt32BE = function writeUInt32BE(value, offset, noAssert) {
1349
- value = +value;
1350
- offset = offset >>> 0;
1351
- if (!noAssert)
1352
- checkInt(this, value, offset, 4, 4294967295, 0);
1353
- this[offset] = value >>> 24;
1354
- this[offset + 1] = value >>> 16;
1355
- this[offset + 2] = value >>> 8;
1356
- this[offset + 3] = value & 255;
1357
- return offset + 4;
1358
- };
1359
- function wrtBigUInt64LE(buf, value, offset, min, max) {
1360
- checkIntBI(value, min, max, buf, offset, 7);
1361
- let lo = Number(value & BigInt(4294967295));
1362
- buf[offset++] = lo;
1363
- lo = lo >> 8;
1364
- buf[offset++] = lo;
1365
- lo = lo >> 8;
1366
- buf[offset++] = lo;
1367
- lo = lo >> 8;
1368
- buf[offset++] = lo;
1369
- let hi = Number(value >> BigInt(32) & BigInt(4294967295));
1370
- buf[offset++] = hi;
1371
- hi = hi >> 8;
1372
- buf[offset++] = hi;
1373
- hi = hi >> 8;
1374
- buf[offset++] = hi;
1375
- hi = hi >> 8;
1376
- buf[offset++] = hi;
1377
- return offset;
1378
- }
1379
- function wrtBigUInt64BE(buf, value, offset, min, max) {
1380
- checkIntBI(value, min, max, buf, offset, 7);
1381
- let lo = Number(value & BigInt(4294967295));
1382
- buf[offset + 7] = lo;
1383
- lo = lo >> 8;
1384
- buf[offset + 6] = lo;
1385
- lo = lo >> 8;
1386
- buf[offset + 5] = lo;
1387
- lo = lo >> 8;
1388
- buf[offset + 4] = lo;
1389
- let hi = Number(value >> BigInt(32) & BigInt(4294967295));
1390
- buf[offset + 3] = hi;
1391
- hi = hi >> 8;
1392
- buf[offset + 2] = hi;
1393
- hi = hi >> 8;
1394
- buf[offset + 1] = hi;
1395
- hi = hi >> 8;
1396
- buf[offset] = hi;
1397
- return offset + 8;
1398
- }
1399
- Buffer3.prototype.writeBigUInt64LE = defineBigIntMethod(function writeBigUInt64LE(value, offset = 0) {
1400
- return wrtBigUInt64LE(this, value, offset, BigInt(0), BigInt("0xffffffffffffffff"));
1401
- });
1402
- Buffer3.prototype.writeBigUInt64BE = defineBigIntMethod(function writeBigUInt64BE(value, offset = 0) {
1403
- return wrtBigUInt64BE(this, value, offset, BigInt(0), BigInt("0xffffffffffffffff"));
1404
- });
1405
- Buffer3.prototype.writeIntLE = function writeIntLE(value, offset, byteLength2, noAssert) {
1406
- value = +value;
1407
- offset = offset >>> 0;
1408
- if (!noAssert) {
1409
- const limit = Math.pow(2, 8 * byteLength2 - 1);
1410
- checkInt(this, value, offset, byteLength2, limit - 1, -limit);
1411
- }
1412
- let i = 0;
1413
- let mul = 1;
1414
- let sub = 0;
1415
- this[offset] = value & 255;
1416
- while (++i < byteLength2 && (mul *= 256)) {
1417
- if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {
1418
- sub = 1;
1419
- }
1420
- this[offset + i] = (value / mul >> 0) - sub & 255;
1421
- }
1422
- return offset + byteLength2;
1423
- };
1424
- Buffer3.prototype.writeIntBE = function writeIntBE(value, offset, byteLength2, noAssert) {
1425
- value = +value;
1426
- offset = offset >>> 0;
1427
- if (!noAssert) {
1428
- const limit = Math.pow(2, 8 * byteLength2 - 1);
1429
- checkInt(this, value, offset, byteLength2, limit - 1, -limit);
1430
- }
1431
- let i = byteLength2 - 1;
1432
- let mul = 1;
1433
- let sub = 0;
1434
- this[offset + i] = value & 255;
1435
- while (--i >= 0 && (mul *= 256)) {
1436
- if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {
1437
- sub = 1;
1438
- }
1439
- this[offset + i] = (value / mul >> 0) - sub & 255;
1440
- }
1441
- return offset + byteLength2;
1442
- };
1443
- Buffer3.prototype.writeInt8 = function writeInt8(value, offset, noAssert) {
1444
- value = +value;
1445
- offset = offset >>> 0;
1446
- if (!noAssert)
1447
- checkInt(this, value, offset, 1, 127, -128);
1448
- if (value < 0)
1449
- value = 255 + value + 1;
1450
- this[offset] = value & 255;
1451
- return offset + 1;
1452
- };
1453
- Buffer3.prototype.writeInt16LE = function writeInt16LE(value, offset, noAssert) {
1454
- value = +value;
1455
- offset = offset >>> 0;
1456
- if (!noAssert)
1457
- checkInt(this, value, offset, 2, 32767, -32768);
1458
- this[offset] = value & 255;
1459
- this[offset + 1] = value >>> 8;
1460
- return offset + 2;
1461
- };
1462
- Buffer3.prototype.writeInt16BE = function writeInt16BE(value, offset, noAssert) {
1463
- value = +value;
1464
- offset = offset >>> 0;
1465
- if (!noAssert)
1466
- checkInt(this, value, offset, 2, 32767, -32768);
1467
- this[offset] = value >>> 8;
1468
- this[offset + 1] = value & 255;
1469
- return offset + 2;
1470
- };
1471
- Buffer3.prototype.writeInt32LE = function writeInt32LE(value, offset, noAssert) {
1472
- value = +value;
1473
- offset = offset >>> 0;
1474
- if (!noAssert)
1475
- checkInt(this, value, offset, 4, 2147483647, -2147483648);
1476
- this[offset] = value & 255;
1477
- this[offset + 1] = value >>> 8;
1478
- this[offset + 2] = value >>> 16;
1479
- this[offset + 3] = value >>> 24;
1480
- return offset + 4;
1481
- };
1482
- Buffer3.prototype.writeInt32BE = function writeInt32BE(value, offset, noAssert) {
1483
- value = +value;
1484
- offset = offset >>> 0;
1485
- if (!noAssert)
1486
- checkInt(this, value, offset, 4, 2147483647, -2147483648);
1487
- if (value < 0)
1488
- value = 4294967295 + value + 1;
1489
- this[offset] = value >>> 24;
1490
- this[offset + 1] = value >>> 16;
1491
- this[offset + 2] = value >>> 8;
1492
- this[offset + 3] = value & 255;
1493
- return offset + 4;
1494
- };
1495
- Buffer3.prototype.writeBigInt64LE = defineBigIntMethod(function writeBigInt64LE(value, offset = 0) {
1496
- return wrtBigUInt64LE(this, value, offset, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
1497
- });
1498
- Buffer3.prototype.writeBigInt64BE = defineBigIntMethod(function writeBigInt64BE(value, offset = 0) {
1499
- return wrtBigUInt64BE(this, value, offset, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
1500
- });
1501
- function checkIEEE754(buf, value, offset, ext, max, min) {
1502
- if (offset + ext > buf.length)
1503
- throw new RangeError("Index out of range");
1504
- if (offset < 0)
1505
- throw new RangeError("Index out of range");
1506
- }
1507
- function writeFloat(buf, value, offset, littleEndian, noAssert) {
1508
- value = +value;
1509
- offset = offset >>> 0;
1510
- if (!noAssert) {
1511
- checkIEEE754(buf, value, offset, 4);
1512
- }
1513
- ieee754.write(buf, value, offset, littleEndian, 23, 4);
1514
- return offset + 4;
1515
- }
1516
- Buffer3.prototype.writeFloatLE = function writeFloatLE(value, offset, noAssert) {
1517
- return writeFloat(this, value, offset, true, noAssert);
1518
- };
1519
- Buffer3.prototype.writeFloatBE = function writeFloatBE(value, offset, noAssert) {
1520
- return writeFloat(this, value, offset, false, noAssert);
1521
- };
1522
- function writeDouble(buf, value, offset, littleEndian, noAssert) {
1523
- value = +value;
1524
- offset = offset >>> 0;
1525
- if (!noAssert) {
1526
- checkIEEE754(buf, value, offset, 8);
1527
- }
1528
- ieee754.write(buf, value, offset, littleEndian, 52, 8);
1529
- return offset + 8;
1530
- }
1531
- Buffer3.prototype.writeDoubleLE = function writeDoubleLE(value, offset, noAssert) {
1532
- return writeDouble(this, value, offset, true, noAssert);
1533
- };
1534
- Buffer3.prototype.writeDoubleBE = function writeDoubleBE(value, offset, noAssert) {
1535
- return writeDouble(this, value, offset, false, noAssert);
1536
- };
1537
- Buffer3.prototype.copy = function copy(target, targetStart, start, end) {
1538
- if (!Buffer3.isBuffer(target))
1539
- throw new TypeError("argument should be a Buffer");
1540
- if (!start)
1541
- start = 0;
1542
- if (!end && end !== 0)
1543
- end = this.length;
1544
- if (targetStart >= target.length)
1545
- targetStart = target.length;
1546
- if (!targetStart)
1547
- targetStart = 0;
1548
- if (end > 0 && end < start)
1549
- end = start;
1550
- if (end === start)
1551
- return 0;
1552
- if (target.length === 0 || this.length === 0)
1553
- return 0;
1554
- if (targetStart < 0) {
1555
- throw new RangeError("targetStart out of bounds");
1556
- }
1557
- if (start < 0 || start >= this.length)
1558
- throw new RangeError("Index out of range");
1559
- if (end < 0)
1560
- throw new RangeError("sourceEnd out of bounds");
1561
- if (end > this.length)
1562
- end = this.length;
1563
- if (target.length - targetStart < end - start) {
1564
- end = target.length - targetStart + start;
1565
- }
1566
- const len = end - start;
1567
- if (this === target && typeof Uint8Array.prototype.copyWithin === "function") {
1568
- this.copyWithin(targetStart, start, end);
1569
- } else {
1570
- Uint8Array.prototype.set.call(target, this.subarray(start, end), targetStart);
1571
- }
1572
- return len;
1573
- };
1574
- Buffer3.prototype.fill = function fill(val, start, end, encoding) {
1575
- if (typeof val === "string") {
1576
- if (typeof start === "string") {
1577
- encoding = start;
1578
- start = 0;
1579
- end = this.length;
1580
- } else if (typeof end === "string") {
1581
- encoding = end;
1582
- end = this.length;
1583
- }
1584
- if (encoding !== void 0 && typeof encoding !== "string") {
1585
- throw new TypeError("encoding must be a string");
1586
- }
1587
- if (typeof encoding === "string" && !Buffer3.isEncoding(encoding)) {
1588
- throw new TypeError("Unknown encoding: " + encoding);
1589
- }
1590
- if (val.length === 1) {
1591
- const code = val.charCodeAt(0);
1592
- if (encoding === "utf8" && code < 128 || encoding === "latin1") {
1593
- val = code;
1594
- }
1595
- }
1596
- } else if (typeof val === "number") {
1597
- val = val & 255;
1598
- } else if (typeof val === "boolean") {
1599
- val = Number(val);
1600
- }
1601
- if (start < 0 || this.length < start || this.length < end) {
1602
- throw new RangeError("Out of range index");
1603
- }
1604
- if (end <= start) {
1605
- return this;
1606
- }
1607
- start = start >>> 0;
1608
- end = end === void 0 ? this.length : end >>> 0;
1609
- if (!val)
1610
- val = 0;
1611
- let i;
1612
- if (typeof val === "number") {
1613
- for (i = start; i < end; ++i) {
1614
- this[i] = val;
1615
- }
1616
- } else {
1617
- const bytes = Buffer3.isBuffer(val) ? val : Buffer3.from(val, encoding);
1618
- const len = bytes.length;
1619
- if (len === 0) {
1620
- throw new TypeError('The value "' + val + '" is invalid for argument "value"');
1621
- }
1622
- for (i = 0; i < end - start; ++i) {
1623
- this[i + start] = bytes[i % len];
1624
- }
1625
- }
1626
- return this;
1627
- };
1628
- const errors = {};
1629
- function E(sym, getMessage, Base) {
1630
- errors[sym] = class NodeError extends Base {
1631
- constructor() {
1632
- super();
1633
- Object.defineProperty(this, "message", {
1634
- value: getMessage.apply(this, arguments),
1635
- writable: true,
1636
- configurable: true
1637
- });
1638
- this.name = `${this.name} [${sym}]`;
1639
- this.stack;
1640
- delete this.name;
1641
- }
1642
- get code() {
1643
- return sym;
1644
- }
1645
- set code(value) {
1646
- Object.defineProperty(this, "code", {
1647
- configurable: true,
1648
- enumerable: true,
1649
- value,
1650
- writable: true
1651
- });
1652
- }
1653
- toString() {
1654
- return `${this.name} [${sym}]: ${this.message}`;
1655
- }
1656
- };
1657
- }
1658
- E("ERR_BUFFER_OUT_OF_BOUNDS", function(name) {
1659
- if (name) {
1660
- return `${name} is outside of buffer bounds`;
1661
- }
1662
- return "Attempt to access memory outside buffer bounds";
1663
- }, RangeError);
1664
- E("ERR_INVALID_ARG_TYPE", function(name, actual) {
1665
- return `The "${name}" argument must be of type number. Received type ${typeof actual}`;
1666
- }, TypeError);
1667
- E("ERR_OUT_OF_RANGE", function(str, range, input) {
1668
- let msg = `The value of "${str}" is out of range.`;
1669
- let received = input;
1670
- if (Number.isInteger(input) && Math.abs(input) > 2 ** 32) {
1671
- received = addNumericalSeparator(String(input));
1672
- } else if (typeof input === "bigint") {
1673
- received = String(input);
1674
- if (input > BigInt(2) ** BigInt(32) || input < -(BigInt(2) ** BigInt(32))) {
1675
- received = addNumericalSeparator(received);
1676
- }
1677
- received += "n";
1678
- }
1679
- msg += ` It must be ${range}. Received ${received}`;
1680
- return msg;
1681
- }, RangeError);
1682
- function addNumericalSeparator(val) {
1683
- let res = "";
1684
- let i = val.length;
1685
- const start = val[0] === "-" ? 1 : 0;
1686
- for (; i >= start + 4; i -= 3) {
1687
- res = `_${val.slice(i - 3, i)}${res}`;
1688
- }
1689
- return `${val.slice(0, i)}${res}`;
1690
- }
1691
- function checkBounds(buf, offset, byteLength2) {
1692
- validateNumber(offset, "offset");
1693
- if (buf[offset] === void 0 || buf[offset + byteLength2] === void 0) {
1694
- boundsError(offset, buf.length - (byteLength2 + 1));
1695
- }
1696
- }
1697
- function checkIntBI(value, min, max, buf, offset, byteLength2) {
1698
- if (value > max || value < min) {
1699
- const n = typeof min === "bigint" ? "n" : "";
1700
- let range;
1701
- {
1702
- if (min === 0 || min === BigInt(0)) {
1703
- range = `>= 0${n} and < 2${n} ** ${(byteLength2 + 1) * 8}${n}`;
1704
- } else {
1705
- range = `>= -(2${n} ** ${(byteLength2 + 1) * 8 - 1}${n}) and < 2 ** ${(byteLength2 + 1) * 8 - 1}${n}`;
1706
- }
1707
- }
1708
- throw new errors.ERR_OUT_OF_RANGE("value", range, value);
1709
- }
1710
- checkBounds(buf, offset, byteLength2);
1711
- }
1712
- function validateNumber(value, name) {
1713
- if (typeof value !== "number") {
1714
- throw new errors.ERR_INVALID_ARG_TYPE(name, "number", value);
1715
- }
1716
- }
1717
- function boundsError(value, length, type) {
1718
- if (Math.floor(value) !== value) {
1719
- validateNumber(value, type);
1720
- throw new errors.ERR_OUT_OF_RANGE("offset", "an integer", value);
1721
- }
1722
- if (length < 0) {
1723
- throw new errors.ERR_BUFFER_OUT_OF_BOUNDS();
1724
- }
1725
- throw new errors.ERR_OUT_OF_RANGE("offset", `>= ${0} and <= ${length}`, value);
1726
- }
1727
- const INVALID_BASE64_RE = /[^+/0-9A-Za-z-_]/g;
1728
- function base64clean(str) {
1729
- str = str.split("=")[0];
1730
- str = str.trim().replace(INVALID_BASE64_RE, "");
1731
- if (str.length < 2)
1732
- return "";
1733
- while (str.length % 4 !== 0) {
1734
- str = str + "=";
1735
- }
1736
- return str;
1737
- }
1738
- function utf8ToBytes(string, units) {
1739
- units = units || Infinity;
1740
- let codePoint;
1741
- const length = string.length;
1742
- let leadSurrogate = null;
1743
- const bytes = [];
1744
- for (let i = 0; i < length; ++i) {
1745
- codePoint = string.charCodeAt(i);
1746
- if (codePoint > 55295 && codePoint < 57344) {
1747
- if (!leadSurrogate) {
1748
- if (codePoint > 56319) {
1749
- if ((units -= 3) > -1)
1750
- bytes.push(239, 191, 189);
1751
- continue;
1752
- } else if (i + 1 === length) {
1753
- if ((units -= 3) > -1)
1754
- bytes.push(239, 191, 189);
1755
- continue;
1756
- }
1757
- leadSurrogate = codePoint;
1758
- continue;
1759
- }
1760
- if (codePoint < 56320) {
1761
- if ((units -= 3) > -1)
1762
- bytes.push(239, 191, 189);
1763
- leadSurrogate = codePoint;
1764
- continue;
1765
- }
1766
- codePoint = (leadSurrogate - 55296 << 10 | codePoint - 56320) + 65536;
1767
- } else if (leadSurrogate) {
1768
- if ((units -= 3) > -1)
1769
- bytes.push(239, 191, 189);
1770
- }
1771
- leadSurrogate = null;
1772
- if (codePoint < 128) {
1773
- if ((units -= 1) < 0)
1774
- break;
1775
- bytes.push(codePoint);
1776
- } else if (codePoint < 2048) {
1777
- if ((units -= 2) < 0)
1778
- break;
1779
- bytes.push(codePoint >> 6 | 192, codePoint & 63 | 128);
1780
- } else if (codePoint < 65536) {
1781
- if ((units -= 3) < 0)
1782
- break;
1783
- bytes.push(codePoint >> 12 | 224, codePoint >> 6 & 63 | 128, codePoint & 63 | 128);
1784
- } else if (codePoint < 1114112) {
1785
- if ((units -= 4) < 0)
1786
- break;
1787
- bytes.push(codePoint >> 18 | 240, codePoint >> 12 & 63 | 128, codePoint >> 6 & 63 | 128, codePoint & 63 | 128);
1788
- } else {
1789
- throw new Error("Invalid code point");
1790
- }
1791
- }
1792
- return bytes;
1793
- }
1794
- function asciiToBytes(str) {
1795
- const byteArray = [];
1796
- for (let i = 0; i < str.length; ++i) {
1797
- byteArray.push(str.charCodeAt(i) & 255);
1798
- }
1799
- return byteArray;
1800
- }
1801
- function utf16leToBytes(str, units) {
1802
- let c, hi, lo;
1803
- const byteArray = [];
1804
- for (let i = 0; i < str.length; ++i) {
1805
- if ((units -= 2) < 0)
1806
- break;
1807
- c = str.charCodeAt(i);
1808
- hi = c >> 8;
1809
- lo = c % 256;
1810
- byteArray.push(lo);
1811
- byteArray.push(hi);
1812
- }
1813
- return byteArray;
1814
- }
1815
- function base64ToBytes(str) {
1816
- return base64.toByteArray(base64clean(str));
1817
- }
1818
- function blitBuffer(src, dst, offset, length) {
1819
- let i;
1820
- for (i = 0; i < length; ++i) {
1821
- if (i + offset >= dst.length || i >= src.length)
1822
- break;
1823
- dst[i + offset] = src[i];
1824
- }
1825
- return i;
1826
- }
1827
- function isInstance(obj, type) {
1828
- return obj instanceof type || obj != null && obj.constructor != null && obj.constructor.name != null && obj.constructor.name === type.name;
1829
- }
1830
- function numberIsNaN(obj) {
1831
- return obj !== obj;
1832
- }
1833
- const hexSliceLookupTable = function() {
1834
- const alphabet = "0123456789abcdef";
1835
- const table = new Array(256);
1836
- for (let i = 0; i < 16; ++i) {
1837
- const i16 = i * 16;
1838
- for (let j = 0; j < 16; ++j) {
1839
- table[i16 + j] = alphabet[i] + alphabet[j];
1840
- }
1841
- }
1842
- return table;
1843
- }();
1844
- function defineBigIntMethod(fn) {
1845
- return typeof BigInt === "undefined" ? BufferBigIntNotDefined : fn;
1846
- }
1847
- function BufferBigIntNotDefined() {
1848
- throw new Error("BigInt not supported");
1849
- }
1850
- return exports;
1851
- }
1852
- var exports$2, _dewExec$2, exports$1, _dewExec$1, exports, _dewExec;
1853
- var init_chunk_DtuTasat = __esm({
1854
- "node_modules/@jspm/core/nodelibs/browser/chunk-DtuTasat.js"() {
1855
- init_dirname();
1856
- init_buffer2();
1857
- init_process2();
1858
- exports$2 = {};
1859
- _dewExec$2 = false;
1860
- exports$1 = {};
1861
- _dewExec$1 = false;
1862
- exports = {};
1863
- _dewExec = false;
1864
- }
1865
- });
1866
-
1867
- // node_modules/@jspm/core/nodelibs/browser/buffer.js
1868
- var exports2, Buffer2, INSPECT_MAX_BYTES, kMaxLength;
1869
- var init_buffer = __esm({
1870
- "node_modules/@jspm/core/nodelibs/browser/buffer.js"() {
1871
- init_dirname();
1872
- init_buffer2();
1873
- init_process2();
1874
- init_chunk_DtuTasat();
1875
- exports2 = dew();
1876
- exports2["Buffer"];
1877
- exports2["SlowBuffer"];
1878
- exports2["INSPECT_MAX_BYTES"];
1879
- exports2["kMaxLength"];
1880
- Buffer2 = exports2.Buffer;
1881
- INSPECT_MAX_BYTES = exports2.INSPECT_MAX_BYTES;
1882
- kMaxLength = exports2.kMaxLength;
1883
- }
1884
- });
1885
-
1886
- // node_modules/esbuild-plugin-polyfill-node/polyfills/buffer.js
1887
- var init_buffer2 = __esm({
1888
- "node_modules/esbuild-plugin-polyfill-node/polyfills/buffer.js"() {
1889
- init_buffer();
1890
- }
1891
- });
1892
-
1893
- // node_modules/@jspm/core/nodelibs/browser/process.js
1894
- function Item(fun, array) {
1895
- this.fun = fun;
1896
- this.array = array;
1897
- }
1898
- function hrtime(previousTimestamp) {
1899
- var baseNow = Math.floor((Date.now() - _performance.now()) * 1e-3);
1900
- var clocktime = _performance.now() * 1e-3;
1901
- var seconds = Math.floor(clocktime) + baseNow;
1902
- var nanoseconds = Math.floor(clocktime % 1 * 1e9);
1903
- if (previousTimestamp) {
1904
- seconds = seconds - previousTimestamp[0];
1905
- nanoseconds = nanoseconds - previousTimestamp[1];
1906
- if (nanoseconds < 0) {
1907
- seconds--;
1908
- nanoseconds += nanoPerSec;
1909
- }
1910
- }
1911
- return [seconds, nanoseconds];
1912
- }
1913
- var env, _performance, nowOffset, nanoPerSec;
1914
- var init_process = __esm({
1915
- "node_modules/@jspm/core/nodelibs/browser/process.js"() {
1916
- init_dirname();
1917
- init_buffer2();
1918
- init_process2();
1919
- Item.prototype.run = function() {
1920
- this.fun.apply(null, this.array);
1921
- };
1922
- env = {
1923
- PATH: "/usr/bin",
1924
- LANG: typeof navigator !== "undefined" ? navigator.language + ".UTF-8" : void 0,
1925
- PWD: "/",
1926
- HOME: "/home",
1927
- TMP: "/tmp"
1928
- };
1929
- _performance = {
1930
- now: typeof performance !== "undefined" ? performance.now.bind(performance) : void 0,
1931
- timing: typeof performance !== "undefined" ? performance.timing : void 0
1932
- };
1933
- if (_performance.now === void 0) {
1934
- nowOffset = Date.now();
1935
- if (_performance.timing && _performance.timing.navigationStart) {
1936
- nowOffset = _performance.timing.navigationStart;
1937
- }
1938
- _performance.now = () => Date.now() - nowOffset;
1939
- }
1940
- nanoPerSec = 1e9;
1941
- hrtime.bigint = function(time) {
1942
- var diff = hrtime(time);
1943
- if (typeof BigInt === "undefined") {
1944
- return diff[0] * nanoPerSec + diff[1];
1945
- }
1946
- return BigInt(diff[0] * nanoPerSec) + BigInt(diff[1]);
1947
- };
1948
- }
1949
- });
1950
-
1951
- // node_modules/esbuild-plugin-polyfill-node/polyfills/process.js
1952
- var init_process2 = __esm({
1953
- "node_modules/esbuild-plugin-polyfill-node/polyfills/process.js"() {
1954
- init_process();
1955
- }
1956
- });
1957
-
1958
- // src/lib/BaseSuite.ts
1959
- init_dirname();
1960
- init_buffer2();
1961
- init_process2();
1962
-
1963
- // src/lib/pmProxy.ts
1964
- init_dirname();
1965
- init_buffer2();
1966
- init_process2();
1967
- var baseProxy = function(pm, mappings) {
1968
- return new Proxy(pm, {
1969
- get: (target, prop, receiver) => {
1970
- for (const mapping of mappings) {
1971
- const method = mapping[0];
1972
- const arger = mapping[1];
1973
- if (prop === method) {
1974
- return (...x) => {
1975
- const modifiedArgs = arger(...x);
1976
- return target[prop](...modifiedArgs);
1977
- };
1978
- }
1979
- }
1980
- return (...x) => {
1981
- return target[prop](...x);
1982
- };
1983
- }
1984
- });
1985
- };
1986
- var butThenProxy = (pm, filepath, addArtifact) => {
1987
- return baseProxy(pm, [
1988
- [
1989
- "screencast",
1990
- (opts, p) => {
1991
- const path = `${filepath}/butThen/${opts.path}`;
1992
- addArtifact(path);
1993
- return [
1994
- {
1995
- ...opts,
1996
- path
1997
- },
1998
- p
1999
- ];
2000
- }
2001
- ],
2002
- [
2003
- "createWriteStream",
2004
- (fp) => {
2005
- const path = `${filepath}/butThen/${fp}`;
2006
- addArtifact(path);
2007
- return [path];
2008
- }
2009
- ],
2010
- [
2011
- "writeFileSync",
2012
- (fp, contents, testName) => {
2013
- const path = `${filepath}/butThen/${fp}`;
2014
- addArtifact(path);
2015
- return [path, contents, testName];
2016
- }
2017
- ],
2018
- [
2019
- "customScreenShot",
2020
- (opts, p) => {
2021
- const path = `${filepath}/butThen/${opts.path}`;
2022
- addArtifact(path);
2023
- return [
2024
- {
2025
- ...opts,
2026
- path
2027
- },
2028
- p
2029
- ];
2030
- }
2031
- ]
2032
- ]);
2033
- };
2034
- var andWhenProxy = (pm, filepath, addArtifact) => {
2035
- return baseProxy(pm, [
2036
- [
2037
- "screencast",
2038
- (opts, p) => {
2039
- const path = `${filepath}/andWhen/${opts.path}`;
2040
- addArtifact(path);
2041
- return [
2042
- {
2043
- ...opts,
2044
- path
2045
- },
2046
- p
2047
- ];
2048
- }
2049
- ],
2050
- [
2051
- "createWriteStream",
2052
- (fp) => {
2053
- const path = `${filepath}/andWhen/${fp}`;
2054
- addArtifact(path);
2055
- return [path];
2056
- }
2057
- ],
2058
- [
2059
- "writeFileSync",
2060
- (fp, contents, testName) => {
2061
- const path = `${filepath}/andWhen/${fp}`;
2062
- addArtifact(path);
2063
- return [path, contents, testName];
2064
- }
2065
- ],
2066
- [
2067
- "customScreenShot",
2068
- (opts, p) => {
2069
- const path = `${filepath}/andWhen/${opts.path}`;
2070
- addArtifact(path);
2071
- return [
2072
- {
2073
- ...opts,
2074
- path
2075
- },
2076
- p
2077
- ];
2078
- }
2079
- ]
2080
- ]);
2081
- };
2082
- var afterEachProxy = (pm, suite, given, addArtifact) => {
2083
- return baseProxy(pm, [
2084
- [
2085
- "screencast",
2086
- (opts, p) => {
2087
- const path = `suite-${suite}/given-${given}/afterEach/${opts.path}`;
2088
- addArtifact(path);
2089
- return [
2090
- {
2091
- ...opts,
2092
- path
2093
- },
2094
- p
2095
- ];
2096
- }
2097
- ],
2098
- [
2099
- "createWriteStream",
2100
- (fp) => {
2101
- const path = `suite-${suite}/afterEach/${fp}`;
2102
- addArtifact(path);
2103
- return [path];
2104
- }
2105
- ],
2106
- [
2107
- "writeFileSync",
2108
- (fp, contents, testName) => {
2109
- const path = `suite-${suite}/given-${given}/afterEach/${fp}`;
2110
- addArtifact(path);
2111
- return [path, contents, testName];
2112
- }
2113
- ],
2114
- [
2115
- "customScreenShot",
2116
- (opts, p) => {
2117
- const path = `suite-${suite}/given-${given}/afterEach/${opts.path}`;
2118
- addArtifact(path);
2119
- return [
2120
- {
2121
- ...opts,
2122
- path
2123
- },
2124
- p
2125
- ];
2126
- }
2127
- ]
2128
- ]);
2129
- };
2130
- var beforeEachProxy = (pm, suite, addArtifact) => {
2131
- return baseProxy(pm, [
2132
- [
2133
- "screencast",
2134
- (opts, p) => {
2135
- const path = `suite-${suite}/beforeEach/${opts.path}`;
2136
- addArtifact(path);
2137
- return [
2138
- {
2139
- ...opts,
2140
- path
2141
- },
2142
- p
2143
- ];
2144
- }
2145
- ],
2146
- [
2147
- "writeFileSync",
2148
- (fp, contents, testName) => {
2149
- const path = `suite-${suite}/beforeEach/${fp}`;
2150
- addArtifact(path);
2151
- return [path, contents, testName];
2152
- }
2153
- ],
2154
- [
2155
- "customScreenShot",
2156
- (opts, p) => {
2157
- const path = `suite-${suite}/beforeEach/${opts.path}`;
2158
- addArtifact(path);
2159
- return [
2160
- {
2161
- ...opts,
2162
- path
2163
- },
2164
- p
2165
- ];
2166
- }
2167
- ],
2168
- [
2169
- "createWriteStream",
2170
- (fp) => {
2171
- const path = `suite-${suite}/beforeEach/${fp}`;
2172
- addArtifact(path);
2173
- return [path];
2174
- }
2175
- ]
2176
- ]);
2177
- };
2178
- var beforeAllProxy = (pm, suite, addArtifact) => {
2179
- return baseProxy(pm, [
2180
- [
2181
- "writeFileSync",
2182
- (fp, contents, testName) => {
2183
- const path = `suite-${suite}/beforeAll/${fp}`;
2184
- addArtifact(path);
2185
- return [path, contents, testName];
2186
- }
2187
- ],
2188
- [
2189
- "customScreenShot",
2190
- (opts, p) => {
2191
- const path = `suite-${suite}/beforeAll/${opts.path}`;
2192
- addArtifact(path);
2193
- return [
2194
- {
2195
- ...opts,
2196
- path
2197
- },
2198
- p
2199
- ];
2200
- }
2201
- ],
2202
- [
2203
- "createWriteStream",
2204
- (fp) => {
2205
- const path = `suite-${suite}/beforeAll/${fp}`;
2206
- addArtifact(path);
2207
- return [path];
2208
- }
2209
- ]
2210
- ]);
2211
- };
2212
- var afterAllProxy = (pm, suite, addArtifact) => {
2213
- return baseProxy(pm, [
2214
- [
2215
- "createWriteStream",
2216
- (fp) => {
2217
- const path = `suite-${suite}/afterAll/${fp}`;
2218
- addArtifact(path);
2219
- return [path];
2220
- }
2221
- ],
2222
- [
2223
- "writeFileSync",
2224
- (fp, contents, testName) => {
2225
- const path = `suite-${suite}/afterAll/${fp}`;
2226
- addArtifact(path);
2227
- return [path, contents, testName];
2228
- }
2229
- ],
2230
- [
2231
- "customScreenShot",
2232
- (opts, p) => {
2233
- const path = `suite-${suite}/afterAll/${opts.path}`;
2234
- addArtifact(path);
2235
- return [
2236
- {
2237
- ...opts,
2238
- path
2239
- },
2240
- p
2241
- ];
2242
- }
2243
- ]
2244
- ]);
2245
- };
2246
-
2247
- // src/lib/BaseSuite.ts
2248
- var BaseSuite = class {
2249
- constructor(name, index, givens = {}) {
2250
- this.artifacts = [];
2251
- const suiteName = name || "testSuite";
2252
- if (!suiteName) {
2253
- throw new Error("BaseSuite requires a non-empty name");
2254
- }
2255
- this.name = suiteName;
2256
- this.index = index;
2257
- this.givens = givens;
2258
- this.fails = 0;
2259
- }
2260
- addArtifact(path) {
2261
- if (typeof path !== "string") {
2262
- throw new Error(`[ARTIFACT ERROR] Expected string, got ${typeof path}: ${JSON.stringify(path)}`);
2263
- }
2264
- const normalizedPath = path.replace(/\\/g, "/");
2265
- this.artifacts.push(normalizedPath);
2266
- }
2267
- features() {
2268
- try {
2269
- const features = Object.keys(this.givens).map((k) => this.givens[k].features).flat().filter((value, index, array) => {
2270
- return array.indexOf(value) === index;
2271
- });
2272
- const stringFeatures = features.map((feature) => {
2273
- if (typeof feature === "string") {
2274
- return feature;
2275
- } else if (feature && typeof feature === "object") {
2276
- return feature.name || JSON.stringify(feature);
2277
- } else {
2278
- return String(feature);
2279
- }
2280
- });
2281
- return stringFeatures || [];
2282
- } catch (e) {
2283
- console.error("[ERROR] Failed to extract features:", JSON.stringify(e));
2284
- return [];
2285
- }
2286
- }
2287
- toObj() {
2288
- const givens = Object.keys(this.givens).map((k) => {
2289
- const givenObj = this.givens[k].toObj();
2290
- if (givenObj.features) {
2291
- givenObj.features = givenObj.features.map((feature) => {
2292
- if (typeof feature === "string") {
2293
- return feature;
2294
- } else if (feature && typeof feature === "object") {
2295
- return feature.name || JSON.stringify(feature);
2296
- } else {
2297
- return String(feature);
2298
- }
2299
- });
2300
- }
2301
- return givenObj;
2302
- });
2303
- return {
2304
- name: this.name,
2305
- givens,
2306
- fails: this.fails,
2307
- failed: this.failed,
2308
- features: this.features(),
2309
- artifacts: this.artifacts ? this.artifacts.filter((art) => typeof art === "string") : []
2310
- };
2311
- }
2312
- setup(s, artifactory, tr, pm) {
2313
- return new Promise((res) => res(s));
2314
- }
2315
- assertThat(t) {
2316
- return !!t;
2317
- }
2318
- afterAll(store, artifactory, pm) {
2319
- return store;
2320
- }
2321
- async run(input, testResourceConfiguration, artifactory, tLog, pm) {
2322
- this.testResourceConfiguration = testResourceConfiguration;
2323
- const suiteArtifactory = (fPath, value) => artifactory(`suite-${this.index}-${this.name}/${fPath}`, value);
2324
- const sNdx = this.index;
2325
- const addArtifact = this.addArtifact.bind(this);
2326
- const proxiedPm = beforeAllProxy(pm, sNdx.toString(), addArtifact);
2327
- const subject = await this.setup(
2328
- input,
2329
- suiteArtifactory,
2330
- testResourceConfiguration,
2331
- proxiedPm
2332
- );
2333
- for (const [gKey, g] of Object.entries(this.givens)) {
2334
- const giver = this.givens[gKey];
2335
- try {
2336
- this.store = await giver.give(
2337
- subject,
2338
- gKey,
2339
- testResourceConfiguration,
2340
- this.assertThat,
2341
- suiteArtifactory,
2342
- tLog,
2343
- pm,
2344
- sNdx
2345
- );
2346
- this.fails += giver.fails || 0;
2347
- } catch (e) {
2348
- this.failed = true;
2349
- this.fails += 1;
2350
- if (giver.fails) {
2351
- this.fails += giver.fails;
2352
- }
2353
- console.error(`Error in given ${gKey}:`, e);
2354
- }
2355
- }
2356
- if (this.fails > 0) {
2357
- this.failed = true;
2358
- }
2359
- try {
2360
- const addArtifact2 = this.addArtifact.bind(this);
2361
- const afterAllPm = afterAllProxy(pm, sNdx.toString(), addArtifact2);
2362
- this.afterAll(this.store, artifactory, afterAllPm);
2363
- } catch (e) {
2364
- console.error(JSON.stringify(e));
2365
- }
2366
- return this;
2367
- }
2368
- };
2369
-
2370
- // src/Web.ts
2371
- init_dirname();
2372
- init_buffer2();
2373
- init_process2();
2374
-
2375
- // src/PM/web.ts
2376
- init_dirname();
2377
- init_buffer2();
2378
- init_process2();
2379
-
2380
- // src/PM/index.ts
2381
- init_dirname();
2382
- init_buffer2();
2383
- init_process2();
2384
- var PM = class {
2385
- // abstract launchSideCar(
2386
- // n: number
2387
- // ): Promise<[number, ITTestResourceConfiguration]>;
2388
- // abstract stopSideCar(n: number): Promise<any>;
2389
- };
2390
-
2391
- // src/PM/web.ts
2392
- var PM_Web = class extends PM {
2393
- constructor(t) {
2394
- super();
2395
- this.testResourceConfiguration = t;
2396
- }
2397
- start() {
2398
- return new Promise((r) => r());
2399
- }
2400
- stop() {
2401
- return new Promise((r) => r());
2402
- }
2403
- getInnerHtml(selector, page) {
2404
- throw new Error("web.ts getInnHtml not implemented");
2405
- }
2406
- pages() {
2407
- throw new Error("Method not implemented.");
2408
- }
2409
- waitForSelector(p, s) {
2410
- return window["waitForSelector"](p, s);
2411
- }
2412
- screencast(opts, page) {
2413
- return window["screencast"](
2414
- {
2415
- ...opts,
2416
- path: this.testResourceConfiguration.fs + "/" + opts.path
2417
- },
2418
- page.mainFrame()._id,
2419
- this.testResourceConfiguration.name
2420
- );
2421
- }
2422
- screencastStop(recorder) {
2423
- return window["screencastStop"](recorder);
2424
- }
2425
- closePage(p) {
2426
- return window["closePage"](p);
2427
- }
2428
- goto(p, url) {
2429
- return window["goto"](p, url);
2430
- }
2431
- newPage() {
2432
- return window["newPage"]();
2433
- }
2434
- $(selector) {
2435
- return window["$"](selector);
2436
- }
2437
- isDisabled(selector) {
2438
- return window["isDisabled"](selector);
2439
- }
2440
- getAttribute(selector, attribute) {
2441
- return window["getAttribute"](selector, attribute);
2442
- }
2443
- getValue(selector) {
2444
- return window["getValue"](selector);
2445
- }
2446
- focusOn(selector) {
2447
- return window["focusOn"](selector);
2448
- }
2449
- typeInto(value) {
2450
- return window["typeInto"](value);
2451
- }
2452
- async page(x) {
2453
- return window["page"](x);
2454
- }
2455
- click(selector) {
2456
- return window["click"](selector);
2457
- }
2458
- customScreenShot(x, y) {
2459
- const opts = x[0];
2460
- const page = x[1];
2461
- return window["customScreenShot"](
2462
- {
2463
- ...opts,
2464
- path: this.testResourceConfiguration.fs + "/" + opts.path
2465
- },
2466
- this.testResourceConfiguration.name,
2467
- page
2468
- );
2469
- }
2470
- existsSync(destFolder) {
2471
- return window["existsSync"](destFolder);
2472
- }
2473
- mkdirSync(x) {
2474
- return window["mkdirSync"](this.testResourceConfiguration.fs + "/");
2475
- }
2476
- write(uid, contents) {
2477
- return window["write"](uid, contents);
2478
- }
2479
- writeFileSync(x) {
2480
- const filepath = arguments[0];
2481
- const contents = arguments[1];
2482
- return window["writeFileSync"](
2483
- this.testResourceConfiguration.fs + "/" + filepath,
2484
- contents,
2485
- this.testResourceConfiguration.name
2486
- );
2487
- }
2488
- createWriteStream(filepath) {
2489
- return window["createWriteStream"](
2490
- this.testResourceConfiguration.fs + "/" + filepath,
2491
- this.testResourceConfiguration.name
2492
- );
2493
- }
2494
- end(uid) {
2495
- return window["end"](uid);
2496
- }
2497
- customclose() {
2498
- window["customclose"](
2499
- this.testResourceConfiguration.fs,
2500
- this.testResourceConfiguration.name
2501
- );
2502
- }
2503
- testArtiFactoryfileWriter(tLog, callback) {
2504
- return (fPath, value) => {
2505
- callback(
2506
- new Promise((res, rej) => {
2507
- tLog("testArtiFactory =>", fPath);
2508
- })
2509
- );
2510
- };
2511
- }
2512
- // stopSideCar(n: number): Promise<any> {
2513
- // return window["stopSideCar"](n, this.testResourceConfiguration.name);
2514
- // }
2515
- // launchSideCar(n: number): Promise<[number, ITTestResourceConfiguration]> {
2516
- // return window["launchSideCar"](n, this.testResourceConfiguration.name);
2517
- // }
2518
- };
2519
-
2520
- // src/lib/Tiposkripto.ts
2521
- init_dirname();
2522
- init_buffer2();
2523
- init_process2();
2524
-
2525
- // src/lib/index.ts
2526
- init_dirname();
2527
- init_buffer2();
2528
- init_process2();
2529
- var BaseAdapter = () => ({
2530
- beforeAll: async (input, testResource, pm) => {
2531
- return input;
2532
- },
2533
- beforeEach: async function(subject, initializer, testResource, initialValues, pm) {
2534
- return subject;
2535
- },
2536
- afterEach: async (store, key, pm) => Promise.resolve(store),
2537
- afterAll: (store, pm) => void 0,
2538
- butThen: async (store, thenCb, testResource, pm) => {
2539
- return thenCb(store, pm);
2540
- },
2541
- andWhen: async (store, whenCB, testResource, pm) => {
2542
- return whenCB(store, pm);
2543
- },
2544
- assertThis: (x) => x
2545
- });
2546
- var DefaultAdapter = (p) => {
2547
- const base = BaseAdapter();
2548
- return {
2549
- ...base,
2550
- ...p
2551
- };
2552
- };
2553
- var defaultTestResourceRequirement = {
2554
- ports: 0
2555
- };
2556
-
2557
- // src/lib/BaseGiven.ts
2558
- init_dirname();
2559
- init_buffer2();
2560
- init_process2();
2561
- var BaseGiven = class {
2562
- constructor(features, whens, thens, givenCB, initialValues) {
2563
- this.artifacts = [];
2564
- this.features = (Array.isArray(features) ? features : []).map((feature) => {
2565
- if (typeof feature === "string")
2566
- return feature;
2567
- if (feature && typeof feature === "object") {
2568
- console.error(
2569
- `[ERROR] Found object in features array: ${feature.name || JSON.stringify(feature)}`
2570
- );
2571
- return "";
2572
- }
2573
- return String(feature);
2574
- }).filter((f) => f !== null && f !== void 0 && f !== "");
2575
- this.whens = Array.isArray(whens) ? whens : [];
2576
- this.thens = Array.isArray(thens) ? thens : [];
2577
- this.givenCB = givenCB;
2578
- this.initialValues = initialValues;
2579
- this.fails = 0;
2580
- }
2581
- addArtifact(path) {
2582
- if (typeof path !== "string") {
2583
- throw new Error(
2584
- `[ARTIFACT ERROR] Expected string, got ${typeof path}: ${JSON.stringify(
2585
- path
2586
- )}`
2587
- );
2588
- }
2589
- const normalizedPath = path.replace(/\\/g, "/");
2590
- this.artifacts.push(normalizedPath);
2591
- }
2592
- beforeAll(store) {
2593
- return store;
2594
- }
2595
- toObj() {
2596
- return {
2597
- key: this.key,
2598
- // name: this.name,
2599
- whens: (this.whens || []).map((w) => {
2600
- if (w && w.toObj)
2601
- return w.toObj();
2602
- console.error("When step is not as expected!", JSON.stringify(w));
2603
- return {};
2604
- }),
2605
- thens: (this.thens || []).map((t) => t && t.toObj ? t.toObj() : {}),
2606
- error: this.error ? [this.error, this.error.stack] : null,
2607
- failed: this.failed,
2608
- features: this.features || [],
2609
- artifacts: this.artifacts
2610
- };
2611
- }
2612
- async afterEach(store, key, artifactory, pm) {
2613
- return store;
2614
- }
2615
- async give(subject, key, testResourceConfiguration, tester, artifactory, tLog, pm, suiteNdx) {
2616
- this.key = key;
2617
- this.fails = 0;
2618
- tLog(`
2619
- ${this.key}`);
2620
- tLog(`
2621
- Given: ${this.name}`);
2622
- const givenArtifactory = (fPath, value) => artifactory(`given-${key}/${fPath}`, value);
2623
- this.uberCatcher((e) => {
2624
- console.error(e.toString());
2625
- this.error = e.error;
2626
- tLog(e.stack);
2627
- });
2628
- try {
2629
- const addArtifact = this.addArtifact.bind(this);
2630
- const proxiedPm = beforeEachProxy(pm, suiteNdx.toString(), addArtifact);
2631
- this.store = await this.givenThat(
2632
- subject,
2633
- testResourceConfiguration,
2634
- givenArtifactory,
2635
- this.givenCB,
2636
- this.initialValues,
2637
- proxiedPm
2638
- );
2639
- } catch (e) {
2640
- this.failed = true;
2641
- this.fails++;
2642
- this.error = e.stack;
2643
- }
2644
- try {
2645
- const whens = this.whens || [];
2646
- if (whens.length > 0) {
2647
- for (const [whenNdx, whenStep] of whens.entries()) {
2648
- if (whenStep && whenStep.name && whenStep.name.startsWith("result:")) {
2649
- this.thens.push(whenStep);
2650
- continue;
2651
- }
2652
- if (whenStep && typeof whenStep.test === "function") {
2653
- try {
2654
- this.store = await whenStep.test(
2655
- this.store,
2656
- testResourceConfiguration,
2657
- tLog,
2658
- pm,
2659
- `suite-${suiteNdx}/given-${key}/when/${whenNdx}`
2660
- );
2661
- } catch (e) {
2662
- this.failed = true;
2663
- this.fails++;
2664
- throw e;
2665
- }
2666
- } else {
2667
- this.failed = true;
2668
- this.fails++;
2669
- throw new Error(`When step ${whenNdx} does not have a test method`);
2670
- }
2671
- }
2672
- } else {
2673
- console.log(`[BaseGiven.give] No when steps to process`);
2674
- }
2675
- for (const [thenNdx, thenStep] of this.thens.entries()) {
2676
- try {
2677
- const t = await thenStep.test(
2678
- this.store,
2679
- testResourceConfiguration,
2680
- tLog,
2681
- pm,
2682
- `suite-${suiteNdx}/given-${key}/then-${thenNdx}`
2683
- );
2684
- tester(t);
2685
- } catch (e) {
2686
- this.failed = true;
2687
- this.fails++;
2688
- throw e;
2689
- }
2690
- }
2691
- } catch (e) {
2692
- this.error = e.stack;
2693
- this.failed = true;
2694
- } finally {
2695
- try {
2696
- const addArtifact = this.addArtifact.bind(this);
2697
- const proxiedPm = afterEachProxy(
2698
- pm,
2699
- suiteNdx.toString(),
2700
- key,
2701
- addArtifact
2702
- );
2703
- await this.afterEach(this.store, this.key, givenArtifactory, proxiedPm);
2704
- } catch (e) {
2705
- this.failed = true;
2706
- this.fails++;
2707
- throw e;
2708
- }
2709
- }
2710
- return this.store;
2711
- }
2712
- };
2713
-
2714
- // src/lib/BaseWhen.ts
2715
- init_dirname();
2716
- init_buffer2();
2717
- init_process2();
2718
- var BaseWhen = class {
2719
- constructor(name, whenCB) {
2720
- this.artifacts = [];
2721
- this.name = name;
2722
- this.whenCB = whenCB;
2723
- }
2724
- addArtifact(path) {
2725
- if (typeof path !== "string") {
2726
- throw new Error(
2727
- `[ARTIFACT ERROR] Expected string, got ${typeof path}: ${JSON.stringify(
2728
- path
2729
- )}`
2730
- );
2731
- }
2732
- const normalizedPath = path.replace(/\\/g, "/");
2733
- this.artifacts.push(normalizedPath);
2734
- }
2735
- toObj() {
2736
- const obj = {
2737
- name: this.name,
2738
- error: this.error ? `${this.error.name}: ${this.error.message}
2739
- ${this.error.stack}` : null,
2740
- artifacts: this.artifacts
2741
- };
2742
- console.log(
2743
- `[TOOBJ] Serializing ${this.constructor.name} with artifacts:`,
2744
- obj.artifacts
2745
- );
2746
- return obj;
2747
- }
2748
- async test(store, testResourceConfiguration, tLog, pm, filepath) {
2749
- try {
2750
- const addArtifact = this.addArtifact.bind(this);
2751
- const proxiedPm = andWhenProxy(pm, filepath, addArtifact);
2752
- const result = await this.andWhen(
2753
- store,
2754
- this.whenCB,
2755
- testResourceConfiguration,
2756
- proxiedPm
2757
- );
2758
- return result;
2759
- } catch (e) {
2760
- console.error(
2761
- "[ERROR] When step failed:",
2762
- this.name.toString(),
2763
- e.toString()
2764
- );
2765
- this.error = e;
2766
- throw e;
2767
- }
2768
- }
2769
- };
2770
-
2771
- // src/lib/BaseThen.ts
2772
- init_dirname();
2773
- init_buffer2();
2774
- init_process2();
2775
- var BaseThen = class {
2776
- constructor(name, thenCB) {
2777
- this.artifacts = [];
2778
- this.name = name;
2779
- this.thenCB = thenCB;
2780
- this.error = false;
2781
- this.artifacts = [];
2782
- }
2783
- addArtifact(path) {
2784
- if (typeof path !== "string") {
2785
- throw new Error(
2786
- `[ARTIFACT ERROR] Expected string, got ${typeof path}: ${JSON.stringify(
2787
- path
2788
- )}`
2789
- );
2790
- }
2791
- const normalizedPath = path.replace(/\\/g, "/");
2792
- this.artifacts.push(normalizedPath);
2793
- }
2794
- toObj() {
2795
- const obj = {
2796
- name: this.name,
2797
- error: this.error,
2798
- artifacts: this.artifacts
2799
- };
2800
- return obj;
2801
- }
2802
- async test(store, testResourceConfiguration, tLog, pm, filepath) {
2803
- const addArtifact = this.addArtifact.bind(this);
2804
- const proxiedPm = butThenProxy(pm, filepath, addArtifact);
2805
- try {
2806
- return await this.butThen(
2807
- store,
2808
- async (s) => {
2809
- try {
2810
- if (typeof this.thenCB === "function") {
2811
- const result = await this.thenCB(s, proxiedPm);
2812
- return result;
2813
- } else {
2814
- return this.thenCB;
2815
- }
2816
- } catch (e) {
2817
- this.error = true;
2818
- throw e;
2819
- }
2820
- },
2821
- testResourceConfiguration,
2822
- proxiedPm
2823
- );
2824
- } catch (e) {
2825
- this.error = true;
2826
- throw e;
2827
- }
2828
- }
2829
- };
2830
-
2831
- // src/lib/Tiposkripto.ts
2832
- var Tiposkripto = class {
2833
- constructor(input, testSpecification, testImplementation, testResourceRequirement = defaultTestResourceRequirement, testAdapter = {}, uberCatcher = (cb) => cb()) {
2834
- this.artifacts = [];
2835
- const fullAdapter = DefaultAdapter(testAdapter);
2836
- const classySuites = Object.entries(testImplementation.suites).reduce(
2837
- (a, [key], index) => {
2838
- a[key] = (somestring, givens) => {
2839
- return new class extends BaseSuite {
2840
- afterAll(store, artifactory, pm) {
2841
- return fullAdapter.afterAll(store, pm);
2842
- }
2843
- assertThat(t) {
2844
- return fullAdapter.assertThis(t);
2845
- }
2846
- async setup(s, artifactory, tr, pm) {
2847
- return fullAdapter.beforeAll?.(s, tr, pm) ?? s;
2848
- }
2849
- }(somestring, index, givens);
2850
- };
2851
- return a;
2852
- },
2853
- {}
2854
- );
2855
- const classyGivens = Object.entries(testImplementation.givens).reduce(
2856
- (a, [key, g]) => {
2857
- a[key] = (features, whens, thens, gcb, initialValues) => {
2858
- const safeFeatures = Array.isArray(features) ? [...features] : [];
2859
- const safeWhens = Array.isArray(whens) ? [...whens] : [];
2860
- const safeThens = Array.isArray(thens) ? [...thens] : [];
2861
- return new class extends BaseGiven {
2862
- constructor() {
2863
- super(...arguments);
2864
- this.uberCatcher = uberCatcher;
2865
- }
2866
- async givenThat(subject, testResource, artifactory, initializer, initialValues2, pm) {
2867
- return fullAdapter.beforeEach(
2868
- subject,
2869
- initializer,
2870
- testResource,
2871
- initialValues2,
2872
- pm
2873
- );
2874
- }
2875
- afterEach(store, key2, artifactory, pm) {
2876
- return Promise.resolve(fullAdapter.afterEach(store, key2, pm));
2877
- }
2878
- }(
2879
- // name,
2880
- safeFeatures,
2881
- safeWhens,
2882
- safeThens,
2883
- testImplementation.givens[key],
2884
- initialValues
2885
- );
2886
- };
2887
- return a;
2888
- },
2889
- {}
2890
- );
2891
- const classyWhens = Object.entries(testImplementation.whens).reduce(
2892
- (a, [key, whEn]) => {
2893
- a[key] = (...payload) => {
2894
- const whenInstance = new class extends BaseWhen {
2895
- async andWhen(store, whenCB, testResource, pm) {
2896
- return await fullAdapter.andWhen(store, whenCB, testResource, pm);
2897
- }
2898
- }(`${key}: ${payload && payload.toString()}`, whEn(...payload));
2899
- return whenInstance;
2900
- };
2901
- return a;
2902
- },
2903
- {}
2904
- );
2905
- const classyThens = Object.entries(testImplementation.thens).reduce(
2906
- (a, [key, thEn]) => {
2907
- a[key] = (...args) => {
2908
- const thenInstance = new class extends BaseThen {
2909
- async butThen(store, thenCB, testResource, pm) {
2910
- return await fullAdapter.butThen(store, thenCB, testResource, pm);
2911
- }
2912
- }(`${key}: ${args && args.toString()}`, thEn(...args));
2913
- return thenInstance;
2914
- };
2915
- return a;
2916
- },
2917
- {}
2918
- );
2919
- this.suitesOverrides = classySuites;
2920
- this.givenOverides = classyGivens;
2921
- this.whenOverides = classyWhens;
2922
- this.thenOverides = classyThens;
2923
- this.testResourceRequirement = testResourceRequirement;
2924
- this.testSpecification = testSpecification;
2925
- this.specs = testSpecification(
2926
- this.Suites(),
2927
- this.Given(),
2928
- this.When(),
2929
- this.Then()
2930
- );
2931
- this.totalTests = this.calculateTotalTests();
2932
- this.testJobs = this.specs.map((suite) => {
2933
- const suiteRunner = (suite2) => async (puppetMaster, tLog) => {
2934
- try {
2935
- const x = await suite2.run(
2936
- input,
2937
- puppetMaster.testResourceConfiguration,
2938
- (fPath, value) => puppetMaster.testArtiFactoryfileWriter(
2939
- tLog,
2940
- (p) => {
2941
- this.artifacts.push(p);
2942
- }
2943
- )(
2944
- puppetMaster.testResourceConfiguration.fs + "/" + fPath,
2945
- value
2946
- ),
2947
- tLog,
2948
- puppetMaster
2949
- );
2950
- return x;
2951
- } catch (e) {
2952
- console.error(e.stack);
2953
- throw e;
2954
- }
2955
- };
2956
- const runner = suiteRunner(suite);
2957
- return {
2958
- test: suite,
2959
- toObj: () => {
2960
- return suite.toObj();
2961
- },
2962
- runner,
2963
- receiveTestResourceConfig: async function(puppetMaster) {
2964
- const tLog = async (...l) => {
2965
- };
2966
- try {
2967
- const suiteDone = await runner(puppetMaster, tLog);
2968
- const fails = suiteDone.fails;
2969
- await puppetMaster.writeFileSync(
2970
- `tests.json`,
2971
- JSON.stringify(this.toObj(), null, 2),
2972
- "test"
2973
- );
2974
- return {
2975
- failed: fails > 0,
2976
- fails,
2977
- artifacts: this.artifacts || [],
2978
- features: suiteDone.features(),
2979
- tests: 0,
2980
- // Keep existing field
2981
- runTimeTests: this.totalTests
2982
- // Add the total number of tests
2983
- };
2984
- } catch (e) {
2985
- console.error(e.stack);
2986
- return {
2987
- failed: true,
2988
- fails: -1,
2989
- artifacts: this.artifacts || [],
2990
- features: [],
2991
- tests: 0,
2992
- // Keep existing field
2993
- runTimeTests: -1
2994
- // Set to -1 on hard error
2995
- };
2996
- }
2997
- }
2998
- };
2999
- });
3000
- }
3001
- Specs() {
3002
- return this.specs;
3003
- }
3004
- Suites() {
3005
- return this.suitesOverrides;
3006
- }
3007
- Given() {
3008
- return this.givenOverides;
3009
- }
3010
- When() {
3011
- return this.whenOverides;
3012
- }
3013
- Then() {
3014
- return this.thenOverides;
3015
- }
3016
- // Add a method to access test jobs which can be used by receiveTestResourceConfig
3017
- getTestJobs() {
3018
- return this.testJobs;
3019
- }
3020
- calculateTotalTests() {
3021
- let total = 0;
3022
- for (const suite of this.specs) {
3023
- if (suite && typeof suite === "object") {
3024
- if ("givens" in suite) {
3025
- const givens = suite.givens;
3026
- if (givens && typeof givens === "object") {
3027
- total += Object.keys(givens).length;
3028
- }
3029
- }
3030
- }
3031
- }
3032
- return total;
3033
- }
3034
- };
3035
-
3036
- // src/Web.ts
3037
- var WebTesteranto = class extends Tiposkripto {
3038
- constructor(input, testSpecification, testImplementation, testResourceRequirement, testAdapter) {
3039
- super(
3040
- input,
3041
- testSpecification,
3042
- testImplementation,
3043
- testResourceRequirement,
3044
- testAdapter,
3045
- (cb) => {
3046
- }
3047
- );
3048
- }
3049
- async receiveTestResourceConfig(partialTestResource) {
3050
- const t = partialTestResource;
3051
- const pm = new PM_Web(t);
3052
- return await this.testJobs[0].receiveTestResourceConfig(pm);
3053
- }
3054
- };
3055
- var Web_default = async (input, testSpecification, testImplementation, testAdapter, testResourceRequirement = defaultTestResourceRequirement) => {
3056
- return new WebTesteranto(
3057
- input,
3058
- testSpecification,
3059
- testImplementation,
3060
- testResourceRequirement,
3061
- testAdapter
3062
- );
3063
- };
3064
-
3065
- export {
3066
- __commonJS,
3067
- __toESM,
3068
- init_dirname,
3069
- init_process2 as init_process,
3070
- Buffer2 as Buffer,
3071
- init_buffer2 as init_buffer,
3072
- BaseGiven,
3073
- BaseWhen,
3074
- BaseThen,
3075
- BaseSuite,
3076
- Web_default
3077
- };
3078
- /*! Bundled license information:
3079
-
3080
- @jspm/core/nodelibs/browser/chunk-DtuTasat.js:
3081
- (*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)
3082
- */