flucto 1.17.0 → 1.18.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 (1419) hide show
  1. package/CHANGELOG.md +45 -1
  2. package/README.md +81 -9
  3. package/dist-electron/cli/args.js +0 -2
  4. package/dist-electron/cli/args.js.map +1 -1
  5. package/dist-electron/cli/index.js +8 -6
  6. package/dist-electron/cli/index.js.map +1 -1
  7. package/dist-electron/cli/output.js +1 -2
  8. package/dist-electron/cli/output.js.map +1 -1
  9. package/dist-electron/main/index.js +34 -217
  10. package/dist-electron/main/index.js.map +1 -1
  11. package/dist-electron/main/search/reddit.js.map +1 -1
  12. package/dist-electron/main/services/binaryInstaller.js +89 -27
  13. package/dist-electron/main/services/binaryInstaller.js.map +1 -1
  14. package/dist-electron/main/services/cliUpdater.js +102 -83
  15. package/dist-electron/main/services/cliUpdater.js.map +1 -1
  16. package/dist-electron/main/services/mediaDownload.js +20 -23
  17. package/dist-electron/main/services/mediaDownload.js.map +1 -1
  18. package/dist-electron/main/services/platformAssets.js +13 -39
  19. package/dist-electron/main/services/platformAssets.js.map +1 -1
  20. package/dist-electron/main/services/releaseDownload.js +101 -0
  21. package/dist-electron/main/services/releaseDownload.js.map +1 -0
  22. package/dist-electron/main/updater.js +193 -21
  23. package/dist-electron/main/updater.js.map +1 -1
  24. package/node_modules/adm-zip/LICENSE +21 -0
  25. package/node_modules/adm-zip/README.md +90 -0
  26. package/node_modules/adm-zip/adm-zip.js +1020 -0
  27. package/node_modules/adm-zip/headers/entryHeader.js +396 -0
  28. package/node_modules/adm-zip/headers/index.js +2 -0
  29. package/node_modules/adm-zip/headers/mainHeader.js +177 -0
  30. package/node_modules/adm-zip/methods/deflater.js +33 -0
  31. package/node_modules/adm-zip/methods/index.js +3 -0
  32. package/node_modules/adm-zip/methods/inflater.js +64 -0
  33. package/node_modules/adm-zip/methods/zipcrypto.js +175 -0
  34. package/node_modules/adm-zip/package.json +56 -0
  35. package/node_modules/adm-zip/types.d.ts +223 -0
  36. package/node_modules/adm-zip/util/constants.js +142 -0
  37. package/node_modules/adm-zip/util/decoder.js +5 -0
  38. package/node_modules/adm-zip/util/errors.js +66 -0
  39. package/node_modules/adm-zip/util/fattr.js +76 -0
  40. package/node_modules/adm-zip/util/index.js +5 -0
  41. package/node_modules/adm-zip/util/utils.js +481 -0
  42. package/node_modules/adm-zip/zipEntry.js +415 -0
  43. package/node_modules/adm-zip/zipFile.js +466 -0
  44. package/node_modules/ajv/.runkit_example.js +23 -0
  45. package/node_modules/ajv/LICENSE +22 -0
  46. package/node_modules/ajv/README.md +207 -0
  47. package/node_modules/ajv/dist/2019.d.ts +19 -0
  48. package/node_modules/ajv/dist/2019.js +61 -0
  49. package/node_modules/ajv/dist/2019.js.map +1 -0
  50. package/node_modules/ajv/dist/2020.d.ts +19 -0
  51. package/node_modules/ajv/dist/2020.js +55 -0
  52. package/node_modules/ajv/dist/2020.js.map +1 -0
  53. package/node_modules/ajv/dist/ajv.d.ts +18 -0
  54. package/node_modules/ajv/dist/ajv.js +50 -0
  55. package/node_modules/ajv/dist/ajv.js.map +1 -0
  56. package/node_modules/ajv/dist/compile/codegen/code.d.ts +40 -0
  57. package/node_modules/ajv/dist/compile/codegen/code.js +156 -0
  58. package/node_modules/ajv/dist/compile/codegen/code.js.map +1 -0
  59. package/node_modules/ajv/dist/compile/codegen/index.d.ts +79 -0
  60. package/node_modules/ajv/dist/compile/codegen/index.js +697 -0
  61. package/node_modules/ajv/dist/compile/codegen/index.js.map +1 -0
  62. package/node_modules/ajv/dist/compile/codegen/scope.d.ts +79 -0
  63. package/node_modules/ajv/dist/compile/codegen/scope.js +143 -0
  64. package/node_modules/ajv/dist/compile/codegen/scope.js.map +1 -0
  65. package/node_modules/ajv/dist/compile/errors.d.ts +13 -0
  66. package/node_modules/ajv/dist/compile/errors.js +123 -0
  67. package/node_modules/ajv/dist/compile/errors.js.map +1 -0
  68. package/node_modules/ajv/dist/compile/index.d.ts +80 -0
  69. package/node_modules/ajv/dist/compile/index.js +242 -0
  70. package/node_modules/ajv/dist/compile/index.js.map +1 -0
  71. package/node_modules/ajv/dist/compile/jtd/parse.d.ts +4 -0
  72. package/node_modules/ajv/dist/compile/jtd/parse.js +350 -0
  73. package/node_modules/ajv/dist/compile/jtd/parse.js.map +1 -0
  74. package/node_modules/ajv/dist/compile/jtd/serialize.d.ts +4 -0
  75. package/node_modules/ajv/dist/compile/jtd/serialize.js +236 -0
  76. package/node_modules/ajv/dist/compile/jtd/serialize.js.map +1 -0
  77. package/node_modules/ajv/dist/compile/jtd/types.d.ts +6 -0
  78. package/node_modules/ajv/dist/compile/jtd/types.js +14 -0
  79. package/node_modules/ajv/dist/compile/jtd/types.js.map +1 -0
  80. package/node_modules/ajv/dist/compile/names.d.ts +20 -0
  81. package/node_modules/ajv/dist/compile/names.js +28 -0
  82. package/node_modules/ajv/dist/compile/names.js.map +1 -0
  83. package/node_modules/ajv/dist/compile/ref_error.d.ts +6 -0
  84. package/node_modules/ajv/dist/compile/ref_error.js +12 -0
  85. package/node_modules/ajv/dist/compile/ref_error.js.map +1 -0
  86. package/node_modules/ajv/dist/compile/resolve.d.ts +12 -0
  87. package/node_modules/ajv/dist/compile/resolve.js +155 -0
  88. package/node_modules/ajv/dist/compile/resolve.js.map +1 -0
  89. package/node_modules/ajv/dist/compile/rules.d.ts +28 -0
  90. package/node_modules/ajv/dist/compile/rules.js +26 -0
  91. package/node_modules/ajv/dist/compile/rules.js.map +1 -0
  92. package/node_modules/ajv/dist/compile/util.d.ts +40 -0
  93. package/node_modules/ajv/dist/compile/util.js +178 -0
  94. package/node_modules/ajv/dist/compile/util.js.map +1 -0
  95. package/node_modules/ajv/dist/compile/validate/applicability.d.ts +6 -0
  96. package/node_modules/ajv/dist/compile/validate/applicability.js +19 -0
  97. package/node_modules/ajv/dist/compile/validate/applicability.js.map +1 -0
  98. package/node_modules/ajv/dist/compile/validate/boolSchema.d.ts +4 -0
  99. package/node_modules/ajv/dist/compile/validate/boolSchema.js +50 -0
  100. package/node_modules/ajv/dist/compile/validate/boolSchema.js.map +1 -0
  101. package/node_modules/ajv/dist/compile/validate/dataType.d.ts +17 -0
  102. package/node_modules/ajv/dist/compile/validate/dataType.js +203 -0
  103. package/node_modules/ajv/dist/compile/validate/dataType.js.map +1 -0
  104. package/node_modules/ajv/dist/compile/validate/defaults.d.ts +2 -0
  105. package/node_modules/ajv/dist/compile/validate/defaults.js +35 -0
  106. package/node_modules/ajv/dist/compile/validate/defaults.js.map +1 -0
  107. package/node_modules/ajv/dist/compile/validate/index.d.ts +42 -0
  108. package/node_modules/ajv/dist/compile/validate/index.js +520 -0
  109. package/node_modules/ajv/dist/compile/validate/index.js.map +1 -0
  110. package/node_modules/ajv/dist/compile/validate/keyword.d.ts +8 -0
  111. package/node_modules/ajv/dist/compile/validate/keyword.js +124 -0
  112. package/node_modules/ajv/dist/compile/validate/keyword.js.map +1 -0
  113. package/node_modules/ajv/dist/compile/validate/subschema.d.ts +47 -0
  114. package/node_modules/ajv/dist/compile/validate/subschema.js +81 -0
  115. package/node_modules/ajv/dist/compile/validate/subschema.js.map +1 -0
  116. package/node_modules/ajv/dist/core.d.ts +174 -0
  117. package/node_modules/ajv/dist/core.js +618 -0
  118. package/node_modules/ajv/dist/core.js.map +1 -0
  119. package/node_modules/ajv/dist/jtd.d.ts +47 -0
  120. package/node_modules/ajv/dist/jtd.js +72 -0
  121. package/node_modules/ajv/dist/jtd.js.map +1 -0
  122. package/node_modules/ajv/dist/refs/data.json +13 -0
  123. package/node_modules/ajv/dist/refs/json-schema-2019-09/index.d.ts +2 -0
  124. package/node_modules/ajv/dist/refs/json-schema-2019-09/index.js +28 -0
  125. package/node_modules/ajv/dist/refs/json-schema-2019-09/index.js.map +1 -0
  126. package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/applicator.json +53 -0
  127. package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/content.json +17 -0
  128. package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/core.json +57 -0
  129. package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/format.json +14 -0
  130. package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/meta-data.json +37 -0
  131. package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/validation.json +90 -0
  132. package/node_modules/ajv/dist/refs/json-schema-2019-09/schema.json +39 -0
  133. package/node_modules/ajv/dist/refs/json-schema-2020-12/index.d.ts +2 -0
  134. package/node_modules/ajv/dist/refs/json-schema-2020-12/index.js +30 -0
  135. package/node_modules/ajv/dist/refs/json-schema-2020-12/index.js.map +1 -0
  136. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.json +48 -0
  137. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.json +17 -0
  138. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.json +51 -0
  139. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
  140. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json +37 -0
  141. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
  142. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.json +90 -0
  143. package/node_modules/ajv/dist/refs/json-schema-2020-12/schema.json +55 -0
  144. package/node_modules/ajv/dist/refs/json-schema-draft-06.json +137 -0
  145. package/node_modules/ajv/dist/refs/json-schema-draft-07.json +151 -0
  146. package/node_modules/ajv/dist/refs/json-schema-secure.json +88 -0
  147. package/node_modules/ajv/dist/refs/jtd-schema.d.ts +3 -0
  148. package/node_modules/ajv/dist/refs/jtd-schema.js +118 -0
  149. package/node_modules/ajv/dist/refs/jtd-schema.js.map +1 -0
  150. package/node_modules/ajv/dist/runtime/equal.d.ts +6 -0
  151. package/node_modules/ajv/dist/runtime/equal.js +7 -0
  152. package/node_modules/ajv/dist/runtime/equal.js.map +1 -0
  153. package/node_modules/ajv/dist/runtime/parseJson.d.ts +18 -0
  154. package/node_modules/ajv/dist/runtime/parseJson.js +185 -0
  155. package/node_modules/ajv/dist/runtime/parseJson.js.map +1 -0
  156. package/node_modules/ajv/dist/runtime/quote.d.ts +5 -0
  157. package/node_modules/ajv/dist/runtime/quote.js +30 -0
  158. package/node_modules/ajv/dist/runtime/quote.js.map +1 -0
  159. package/node_modules/ajv/dist/runtime/re2.d.ts +6 -0
  160. package/node_modules/ajv/dist/runtime/re2.js +6 -0
  161. package/node_modules/ajv/dist/runtime/re2.js.map +1 -0
  162. package/node_modules/ajv/dist/runtime/timestamp.d.ts +5 -0
  163. package/node_modules/ajv/dist/runtime/timestamp.js +42 -0
  164. package/node_modules/ajv/dist/runtime/timestamp.js.map +1 -0
  165. package/node_modules/ajv/dist/runtime/ucs2length.d.ts +5 -0
  166. package/node_modules/ajv/dist/runtime/ucs2length.js +24 -0
  167. package/node_modules/ajv/dist/runtime/ucs2length.js.map +1 -0
  168. package/node_modules/ajv/dist/runtime/uri.d.ts +6 -0
  169. package/node_modules/ajv/dist/runtime/uri.js +6 -0
  170. package/node_modules/ajv/dist/runtime/uri.js.map +1 -0
  171. package/node_modules/ajv/dist/runtime/validation_error.d.ts +7 -0
  172. package/node_modules/ajv/dist/runtime/validation_error.js +11 -0
  173. package/node_modules/ajv/dist/runtime/validation_error.js.map +1 -0
  174. package/node_modules/ajv/dist/standalone/index.d.ts +6 -0
  175. package/node_modules/ajv/dist/standalone/index.js +90 -0
  176. package/node_modules/ajv/dist/standalone/index.js.map +1 -0
  177. package/node_modules/ajv/dist/standalone/instance.d.ts +12 -0
  178. package/node_modules/ajv/dist/standalone/instance.js +35 -0
  179. package/node_modules/ajv/dist/standalone/instance.js.map +1 -0
  180. package/node_modules/ajv/dist/types/index.d.ts +183 -0
  181. package/node_modules/ajv/dist/types/index.js +3 -0
  182. package/node_modules/ajv/dist/types/index.js.map +1 -0
  183. package/node_modules/ajv/dist/types/json-schema.d.ts +125 -0
  184. package/node_modules/ajv/dist/types/json-schema.js +3 -0
  185. package/node_modules/ajv/dist/types/json-schema.js.map +1 -0
  186. package/node_modules/ajv/dist/types/jtd-schema.d.ts +174 -0
  187. package/node_modules/ajv/dist/types/jtd-schema.js +3 -0
  188. package/node_modules/ajv/dist/types/jtd-schema.js.map +1 -0
  189. package/node_modules/ajv/dist/vocabularies/applicator/additionalItems.d.ts +8 -0
  190. package/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +49 -0
  191. package/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js.map +1 -0
  192. package/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.d.ts +6 -0
  193. package/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +106 -0
  194. package/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js.map +1 -0
  195. package/node_modules/ajv/dist/vocabularies/applicator/allOf.d.ts +3 -0
  196. package/node_modules/ajv/dist/vocabularies/applicator/allOf.js +23 -0
  197. package/node_modules/ajv/dist/vocabularies/applicator/allOf.js.map +1 -0
  198. package/node_modules/ajv/dist/vocabularies/applicator/anyOf.d.ts +4 -0
  199. package/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +12 -0
  200. package/node_modules/ajv/dist/vocabularies/applicator/anyOf.js.map +1 -0
  201. package/node_modules/ajv/dist/vocabularies/applicator/contains.d.ts +7 -0
  202. package/node_modules/ajv/dist/vocabularies/applicator/contains.js +95 -0
  203. package/node_modules/ajv/dist/vocabularies/applicator/contains.js.map +1 -0
  204. package/node_modules/ajv/dist/vocabularies/applicator/dependencies.d.ts +21 -0
  205. package/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +85 -0
  206. package/node_modules/ajv/dist/vocabularies/applicator/dependencies.js.map +1 -0
  207. package/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.d.ts +3 -0
  208. package/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js +11 -0
  209. package/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js.map +1 -0
  210. package/node_modules/ajv/dist/vocabularies/applicator/if.d.ts +6 -0
  211. package/node_modules/ajv/dist/vocabularies/applicator/if.js +66 -0
  212. package/node_modules/ajv/dist/vocabularies/applicator/if.js.map +1 -0
  213. package/node_modules/ajv/dist/vocabularies/applicator/index.d.ts +13 -0
  214. package/node_modules/ajv/dist/vocabularies/applicator/index.js +44 -0
  215. package/node_modules/ajv/dist/vocabularies/applicator/index.js.map +1 -0
  216. package/node_modules/ajv/dist/vocabularies/applicator/items.d.ts +5 -0
  217. package/node_modules/ajv/dist/vocabularies/applicator/items.js +52 -0
  218. package/node_modules/ajv/dist/vocabularies/applicator/items.js.map +1 -0
  219. package/node_modules/ajv/dist/vocabularies/applicator/items2020.d.ts +6 -0
  220. package/node_modules/ajv/dist/vocabularies/applicator/items2020.js +30 -0
  221. package/node_modules/ajv/dist/vocabularies/applicator/items2020.js.map +1 -0
  222. package/node_modules/ajv/dist/vocabularies/applicator/not.d.ts +4 -0
  223. package/node_modules/ajv/dist/vocabularies/applicator/not.js +26 -0
  224. package/node_modules/ajv/dist/vocabularies/applicator/not.js.map +1 -0
  225. package/node_modules/ajv/dist/vocabularies/applicator/oneOf.d.ts +6 -0
  226. package/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +60 -0
  227. package/node_modules/ajv/dist/vocabularies/applicator/oneOf.js.map +1 -0
  228. package/node_modules/ajv/dist/vocabularies/applicator/patternProperties.d.ts +3 -0
  229. package/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +75 -0
  230. package/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js.map +1 -0
  231. package/node_modules/ajv/dist/vocabularies/applicator/prefixItems.d.ts +3 -0
  232. package/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +12 -0
  233. package/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js.map +1 -0
  234. package/node_modules/ajv/dist/vocabularies/applicator/properties.d.ts +3 -0
  235. package/node_modules/ajv/dist/vocabularies/applicator/properties.js +54 -0
  236. package/node_modules/ajv/dist/vocabularies/applicator/properties.js.map +1 -0
  237. package/node_modules/ajv/dist/vocabularies/applicator/propertyNames.d.ts +6 -0
  238. package/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +38 -0
  239. package/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js.map +1 -0
  240. package/node_modules/ajv/dist/vocabularies/applicator/thenElse.d.ts +3 -0
  241. package/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +13 -0
  242. package/node_modules/ajv/dist/vocabularies/applicator/thenElse.js.map +1 -0
  243. package/node_modules/ajv/dist/vocabularies/code.d.ts +17 -0
  244. package/node_modules/ajv/dist/vocabularies/code.js +131 -0
  245. package/node_modules/ajv/dist/vocabularies/code.js.map +1 -0
  246. package/node_modules/ajv/dist/vocabularies/core/id.d.ts +3 -0
  247. package/node_modules/ajv/dist/vocabularies/core/id.js +10 -0
  248. package/node_modules/ajv/dist/vocabularies/core/id.js.map +1 -0
  249. package/node_modules/ajv/dist/vocabularies/core/index.d.ts +3 -0
  250. package/node_modules/ajv/dist/vocabularies/core/index.js +16 -0
  251. package/node_modules/ajv/dist/vocabularies/core/index.js.map +1 -0
  252. package/node_modules/ajv/dist/vocabularies/core/ref.d.ts +8 -0
  253. package/node_modules/ajv/dist/vocabularies/core/ref.js +122 -0
  254. package/node_modules/ajv/dist/vocabularies/core/ref.js.map +1 -0
  255. package/node_modules/ajv/dist/vocabularies/discriminator/index.d.ts +5 -0
  256. package/node_modules/ajv/dist/vocabularies/discriminator/index.js +104 -0
  257. package/node_modules/ajv/dist/vocabularies/discriminator/index.js.map +1 -0
  258. package/node_modules/ajv/dist/vocabularies/discriminator/types.d.ts +10 -0
  259. package/node_modules/ajv/dist/vocabularies/discriminator/types.js +9 -0
  260. package/node_modules/ajv/dist/vocabularies/discriminator/types.js.map +1 -0
  261. package/node_modules/ajv/dist/vocabularies/draft2020.d.ts +3 -0
  262. package/node_modules/ajv/dist/vocabularies/draft2020.js +23 -0
  263. package/node_modules/ajv/dist/vocabularies/draft2020.js.map +1 -0
  264. package/node_modules/ajv/dist/vocabularies/draft7.d.ts +3 -0
  265. package/node_modules/ajv/dist/vocabularies/draft7.js +17 -0
  266. package/node_modules/ajv/dist/vocabularies/draft7.js.map +1 -0
  267. package/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.d.ts +5 -0
  268. package/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js +30 -0
  269. package/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js.map +1 -0
  270. package/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.d.ts +5 -0
  271. package/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js +51 -0
  272. package/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js.map +1 -0
  273. package/node_modules/ajv/dist/vocabularies/dynamic/index.d.ts +3 -0
  274. package/node_modules/ajv/dist/vocabularies/dynamic/index.js +9 -0
  275. package/node_modules/ajv/dist/vocabularies/dynamic/index.js.map +1 -0
  276. package/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.d.ts +3 -0
  277. package/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js +16 -0
  278. package/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js.map +1 -0
  279. package/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.d.ts +3 -0
  280. package/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js +10 -0
  281. package/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js.map +1 -0
  282. package/node_modules/ajv/dist/vocabularies/errors.d.ts +9 -0
  283. package/node_modules/ajv/dist/vocabularies/errors.js +3 -0
  284. package/node_modules/ajv/dist/vocabularies/errors.js.map +1 -0
  285. package/node_modules/ajv/dist/vocabularies/format/format.d.ts +8 -0
  286. package/node_modules/ajv/dist/vocabularies/format/format.js +92 -0
  287. package/node_modules/ajv/dist/vocabularies/format/format.js.map +1 -0
  288. package/node_modules/ajv/dist/vocabularies/format/index.d.ts +3 -0
  289. package/node_modules/ajv/dist/vocabularies/format/index.js +6 -0
  290. package/node_modules/ajv/dist/vocabularies/format/index.js.map +1 -0
  291. package/node_modules/ajv/dist/vocabularies/jtd/discriminator.d.ts +6 -0
  292. package/node_modules/ajv/dist/vocabularies/jtd/discriminator.js +71 -0
  293. package/node_modules/ajv/dist/vocabularies/jtd/discriminator.js.map +1 -0
  294. package/node_modules/ajv/dist/vocabularies/jtd/elements.d.ts +5 -0
  295. package/node_modules/ajv/dist/vocabularies/jtd/elements.js +24 -0
  296. package/node_modules/ajv/dist/vocabularies/jtd/elements.js.map +1 -0
  297. package/node_modules/ajv/dist/vocabularies/jtd/enum.d.ts +6 -0
  298. package/node_modules/ajv/dist/vocabularies/jtd/enum.js +43 -0
  299. package/node_modules/ajv/dist/vocabularies/jtd/enum.js.map +1 -0
  300. package/node_modules/ajv/dist/vocabularies/jtd/error.d.ts +9 -0
  301. package/node_modules/ajv/dist/vocabularies/jtd/error.js +20 -0
  302. package/node_modules/ajv/dist/vocabularies/jtd/error.js.map +1 -0
  303. package/node_modules/ajv/dist/vocabularies/jtd/index.d.ts +10 -0
  304. package/node_modules/ajv/dist/vocabularies/jtd/index.js +29 -0
  305. package/node_modules/ajv/dist/vocabularies/jtd/index.js.map +1 -0
  306. package/node_modules/ajv/dist/vocabularies/jtd/metadata.d.ts +5 -0
  307. package/node_modules/ajv/dist/vocabularies/jtd/metadata.js +25 -0
  308. package/node_modules/ajv/dist/vocabularies/jtd/metadata.js.map +1 -0
  309. package/node_modules/ajv/dist/vocabularies/jtd/nullable.d.ts +4 -0
  310. package/node_modules/ajv/dist/vocabularies/jtd/nullable.js +22 -0
  311. package/node_modules/ajv/dist/vocabularies/jtd/nullable.js.map +1 -0
  312. package/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.d.ts +3 -0
  313. package/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js +15 -0
  314. package/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js.map +1 -0
  315. package/node_modules/ajv/dist/vocabularies/jtd/properties.d.ts +22 -0
  316. package/node_modules/ajv/dist/vocabularies/jtd/properties.js +149 -0
  317. package/node_modules/ajv/dist/vocabularies/jtd/properties.js.map +1 -0
  318. package/node_modules/ajv/dist/vocabularies/jtd/ref.d.ts +4 -0
  319. package/node_modules/ajv/dist/vocabularies/jtd/ref.js +67 -0
  320. package/node_modules/ajv/dist/vocabularies/jtd/ref.js.map +1 -0
  321. package/node_modules/ajv/dist/vocabularies/jtd/type.d.ts +10 -0
  322. package/node_modules/ajv/dist/vocabularies/jtd/type.js +69 -0
  323. package/node_modules/ajv/dist/vocabularies/jtd/type.js.map +1 -0
  324. package/node_modules/ajv/dist/vocabularies/jtd/union.d.ts +3 -0
  325. package/node_modules/ajv/dist/vocabularies/jtd/union.js +12 -0
  326. package/node_modules/ajv/dist/vocabularies/jtd/union.js.map +1 -0
  327. package/node_modules/ajv/dist/vocabularies/jtd/values.d.ts +5 -0
  328. package/node_modules/ajv/dist/vocabularies/jtd/values.js +51 -0
  329. package/node_modules/ajv/dist/vocabularies/jtd/values.js.map +1 -0
  330. package/node_modules/ajv/dist/vocabularies/metadata.d.ts +3 -0
  331. package/node_modules/ajv/dist/vocabularies/metadata.js +18 -0
  332. package/node_modules/ajv/dist/vocabularies/metadata.js.map +1 -0
  333. package/node_modules/ajv/dist/vocabularies/next.d.ts +3 -0
  334. package/node_modules/ajv/dist/vocabularies/next.js +8 -0
  335. package/node_modules/ajv/dist/vocabularies/next.js.map +1 -0
  336. package/node_modules/ajv/dist/vocabularies/unevaluated/index.d.ts +3 -0
  337. package/node_modules/ajv/dist/vocabularies/unevaluated/index.js +7 -0
  338. package/node_modules/ajv/dist/vocabularies/unevaluated/index.js.map +1 -0
  339. package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.d.ts +6 -0
  340. package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js +40 -0
  341. package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js.map +1 -0
  342. package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.d.ts +6 -0
  343. package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js +65 -0
  344. package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js.map +1 -0
  345. package/node_modules/ajv/dist/vocabularies/validation/const.d.ts +6 -0
  346. package/node_modules/ajv/dist/vocabularies/validation/const.js +25 -0
  347. package/node_modules/ajv/dist/vocabularies/validation/const.js.map +1 -0
  348. package/node_modules/ajv/dist/vocabularies/validation/dependentRequired.d.ts +5 -0
  349. package/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js +12 -0
  350. package/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js.map +1 -0
  351. package/node_modules/ajv/dist/vocabularies/validation/enum.d.ts +8 -0
  352. package/node_modules/ajv/dist/vocabularies/validation/enum.js +48 -0
  353. package/node_modules/ajv/dist/vocabularies/validation/enum.js.map +1 -0
  354. package/node_modules/ajv/dist/vocabularies/validation/index.d.ts +16 -0
  355. package/node_modules/ajv/dist/vocabularies/validation/index.js +33 -0
  356. package/node_modules/ajv/dist/vocabularies/validation/index.js.map +1 -0
  357. package/node_modules/ajv/dist/vocabularies/validation/limitContains.d.ts +3 -0
  358. package/node_modules/ajv/dist/vocabularies/validation/limitContains.js +15 -0
  359. package/node_modules/ajv/dist/vocabularies/validation/limitContains.js.map +1 -0
  360. package/node_modules/ajv/dist/vocabularies/validation/limitItems.d.ts +3 -0
  361. package/node_modules/ajv/dist/vocabularies/validation/limitItems.js +24 -0
  362. package/node_modules/ajv/dist/vocabularies/validation/limitItems.js.map +1 -0
  363. package/node_modules/ajv/dist/vocabularies/validation/limitLength.d.ts +3 -0
  364. package/node_modules/ajv/dist/vocabularies/validation/limitLength.js +27 -0
  365. package/node_modules/ajv/dist/vocabularies/validation/limitLength.js.map +1 -0
  366. package/node_modules/ajv/dist/vocabularies/validation/limitNumber.d.ts +11 -0
  367. package/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +27 -0
  368. package/node_modules/ajv/dist/vocabularies/validation/limitNumber.js.map +1 -0
  369. package/node_modules/ajv/dist/vocabularies/validation/limitProperties.d.ts +3 -0
  370. package/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +24 -0
  371. package/node_modules/ajv/dist/vocabularies/validation/limitProperties.js.map +1 -0
  372. package/node_modules/ajv/dist/vocabularies/validation/multipleOf.d.ts +8 -0
  373. package/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +26 -0
  374. package/node_modules/ajv/dist/vocabularies/validation/multipleOf.js.map +1 -0
  375. package/node_modules/ajv/dist/vocabularies/validation/pattern.d.ts +8 -0
  376. package/node_modules/ajv/dist/vocabularies/validation/pattern.js +33 -0
  377. package/node_modules/ajv/dist/vocabularies/validation/pattern.js.map +1 -0
  378. package/node_modules/ajv/dist/vocabularies/validation/required.d.ts +8 -0
  379. package/node_modules/ajv/dist/vocabularies/validation/required.js +79 -0
  380. package/node_modules/ajv/dist/vocabularies/validation/required.js.map +1 -0
  381. package/node_modules/ajv/dist/vocabularies/validation/uniqueItems.d.ts +9 -0
  382. package/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +64 -0
  383. package/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js.map +1 -0
  384. package/node_modules/ajv/lib/2019.ts +81 -0
  385. package/node_modules/ajv/lib/2020.ts +75 -0
  386. package/node_modules/ajv/lib/ajv.ts +70 -0
  387. package/node_modules/ajv/lib/compile/codegen/code.ts +169 -0
  388. package/node_modules/ajv/lib/compile/codegen/index.ts +852 -0
  389. package/node_modules/ajv/lib/compile/codegen/scope.ts +215 -0
  390. package/node_modules/ajv/lib/compile/errors.ts +184 -0
  391. package/node_modules/ajv/lib/compile/index.ts +324 -0
  392. package/node_modules/ajv/lib/compile/jtd/parse.ts +411 -0
  393. package/node_modules/ajv/lib/compile/jtd/serialize.ts +277 -0
  394. package/node_modules/ajv/lib/compile/jtd/types.ts +16 -0
  395. package/node_modules/ajv/lib/compile/names.ts +27 -0
  396. package/node_modules/ajv/lib/compile/ref_error.ts +13 -0
  397. package/node_modules/ajv/lib/compile/resolve.ts +149 -0
  398. package/node_modules/ajv/lib/compile/rules.ts +50 -0
  399. package/node_modules/ajv/lib/compile/util.ts +213 -0
  400. package/node_modules/ajv/lib/compile/validate/applicability.ts +22 -0
  401. package/node_modules/ajv/lib/compile/validate/boolSchema.ts +47 -0
  402. package/node_modules/ajv/lib/compile/validate/dataType.ts +230 -0
  403. package/node_modules/ajv/lib/compile/validate/defaults.ts +32 -0
  404. package/node_modules/ajv/lib/compile/validate/index.ts +582 -0
  405. package/node_modules/ajv/lib/compile/validate/keyword.ts +171 -0
  406. package/node_modules/ajv/lib/compile/validate/subschema.ts +135 -0
  407. package/node_modules/ajv/lib/core.ts +892 -0
  408. package/node_modules/ajv/lib/jtd.ts +132 -0
  409. package/node_modules/ajv/lib/refs/data.json +13 -0
  410. package/node_modules/ajv/lib/refs/json-schema-2019-09/index.ts +28 -0
  411. package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/applicator.json +53 -0
  412. package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/content.json +17 -0
  413. package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/core.json +57 -0
  414. package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/format.json +14 -0
  415. package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/meta-data.json +37 -0
  416. package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/validation.json +90 -0
  417. package/node_modules/ajv/lib/refs/json-schema-2019-09/schema.json +39 -0
  418. package/node_modules/ajv/lib/refs/json-schema-2020-12/index.ts +30 -0
  419. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/applicator.json +48 -0
  420. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/content.json +17 -0
  421. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/core.json +51 -0
  422. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
  423. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/meta-data.json +37 -0
  424. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
  425. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/validation.json +90 -0
  426. package/node_modules/ajv/lib/refs/json-schema-2020-12/schema.json +55 -0
  427. package/node_modules/ajv/lib/refs/json-schema-draft-06.json +137 -0
  428. package/node_modules/ajv/lib/refs/json-schema-draft-07.json +151 -0
  429. package/node_modules/ajv/lib/refs/json-schema-secure.json +88 -0
  430. package/node_modules/ajv/lib/refs/jtd-schema.ts +130 -0
  431. package/node_modules/ajv/lib/runtime/equal.ts +7 -0
  432. package/node_modules/ajv/lib/runtime/parseJson.ts +177 -0
  433. package/node_modules/ajv/lib/runtime/quote.ts +31 -0
  434. package/node_modules/ajv/lib/runtime/re2.ts +6 -0
  435. package/node_modules/ajv/lib/runtime/timestamp.ts +46 -0
  436. package/node_modules/ajv/lib/runtime/ucs2length.ts +20 -0
  437. package/node_modules/ajv/lib/runtime/uri.ts +6 -0
  438. package/node_modules/ajv/lib/runtime/validation_error.ts +13 -0
  439. package/node_modules/ajv/lib/standalone/index.ts +100 -0
  440. package/node_modules/ajv/lib/standalone/instance.ts +36 -0
  441. package/node_modules/ajv/lib/types/index.ts +244 -0
  442. package/node_modules/ajv/lib/types/json-schema.ts +187 -0
  443. package/node_modules/ajv/lib/types/jtd-schema.ts +273 -0
  444. package/node_modules/ajv/lib/vocabularies/applicator/additionalItems.ts +56 -0
  445. package/node_modules/ajv/lib/vocabularies/applicator/additionalProperties.ts +118 -0
  446. package/node_modules/ajv/lib/vocabularies/applicator/allOf.ts +22 -0
  447. package/node_modules/ajv/lib/vocabularies/applicator/anyOf.ts +14 -0
  448. package/node_modules/ajv/lib/vocabularies/applicator/contains.ts +109 -0
  449. package/node_modules/ajv/lib/vocabularies/applicator/dependencies.ts +112 -0
  450. package/node_modules/ajv/lib/vocabularies/applicator/dependentSchemas.ts +11 -0
  451. package/node_modules/ajv/lib/vocabularies/applicator/if.ts +80 -0
  452. package/node_modules/ajv/lib/vocabularies/applicator/index.ts +53 -0
  453. package/node_modules/ajv/lib/vocabularies/applicator/items.ts +59 -0
  454. package/node_modules/ajv/lib/vocabularies/applicator/items2020.ts +36 -0
  455. package/node_modules/ajv/lib/vocabularies/applicator/not.ts +38 -0
  456. package/node_modules/ajv/lib/vocabularies/applicator/oneOf.ts +82 -0
  457. package/node_modules/ajv/lib/vocabularies/applicator/patternProperties.ts +91 -0
  458. package/node_modules/ajv/lib/vocabularies/applicator/prefixItems.ts +12 -0
  459. package/node_modules/ajv/lib/vocabularies/applicator/properties.ts +57 -0
  460. package/node_modules/ajv/lib/vocabularies/applicator/propertyNames.ts +50 -0
  461. package/node_modules/ajv/lib/vocabularies/applicator/thenElse.ts +13 -0
  462. package/node_modules/ajv/lib/vocabularies/code.ts +168 -0
  463. package/node_modules/ajv/lib/vocabularies/core/id.ts +10 -0
  464. package/node_modules/ajv/lib/vocabularies/core/index.ts +16 -0
  465. package/node_modules/ajv/lib/vocabularies/core/ref.ts +129 -0
  466. package/node_modules/ajv/lib/vocabularies/discriminator/index.ts +113 -0
  467. package/node_modules/ajv/lib/vocabularies/discriminator/types.ts +12 -0
  468. package/node_modules/ajv/lib/vocabularies/draft2020.ts +23 -0
  469. package/node_modules/ajv/lib/vocabularies/draft7.ts +17 -0
  470. package/node_modules/ajv/lib/vocabularies/dynamic/dynamicAnchor.ts +31 -0
  471. package/node_modules/ajv/lib/vocabularies/dynamic/dynamicRef.ts +51 -0
  472. package/node_modules/ajv/lib/vocabularies/dynamic/index.ts +9 -0
  473. package/node_modules/ajv/lib/vocabularies/dynamic/recursiveAnchor.ts +14 -0
  474. package/node_modules/ajv/lib/vocabularies/dynamic/recursiveRef.ts +10 -0
  475. package/node_modules/ajv/lib/vocabularies/errors.ts +18 -0
  476. package/node_modules/ajv/lib/vocabularies/format/format.ts +120 -0
  477. package/node_modules/ajv/lib/vocabularies/format/index.ts +6 -0
  478. package/node_modules/ajv/lib/vocabularies/jtd/discriminator.ts +89 -0
  479. package/node_modules/ajv/lib/vocabularies/jtd/elements.ts +32 -0
  480. package/node_modules/ajv/lib/vocabularies/jtd/enum.ts +45 -0
  481. package/node_modules/ajv/lib/vocabularies/jtd/error.ts +23 -0
  482. package/node_modules/ajv/lib/vocabularies/jtd/index.ts +37 -0
  483. package/node_modules/ajv/lib/vocabularies/jtd/metadata.ts +24 -0
  484. package/node_modules/ajv/lib/vocabularies/jtd/nullable.ts +21 -0
  485. package/node_modules/ajv/lib/vocabularies/jtd/optionalProperties.ts +15 -0
  486. package/node_modules/ajv/lib/vocabularies/jtd/properties.ts +184 -0
  487. package/node_modules/ajv/lib/vocabularies/jtd/ref.ts +76 -0
  488. package/node_modules/ajv/lib/vocabularies/jtd/type.ts +75 -0
  489. package/node_modules/ajv/lib/vocabularies/jtd/union.ts +12 -0
  490. package/node_modules/ajv/lib/vocabularies/jtd/values.ts +58 -0
  491. package/node_modules/ajv/lib/vocabularies/metadata.ts +17 -0
  492. package/node_modules/ajv/lib/vocabularies/next.ts +8 -0
  493. package/node_modules/ajv/lib/vocabularies/unevaluated/index.ts +7 -0
  494. package/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedItems.ts +47 -0
  495. package/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedProperties.ts +85 -0
  496. package/node_modules/ajv/lib/vocabularies/validation/const.ts +28 -0
  497. package/node_modules/ajv/lib/vocabularies/validation/dependentRequired.ts +23 -0
  498. package/node_modules/ajv/lib/vocabularies/validation/enum.ts +54 -0
  499. package/node_modules/ajv/lib/vocabularies/validation/index.ts +49 -0
  500. package/node_modules/ajv/lib/vocabularies/validation/limitContains.ts +16 -0
  501. package/node_modules/ajv/lib/vocabularies/validation/limitItems.ts +26 -0
  502. package/node_modules/ajv/lib/vocabularies/validation/limitLength.ts +30 -0
  503. package/node_modules/ajv/lib/vocabularies/validation/limitNumber.ts +42 -0
  504. package/node_modules/ajv/lib/vocabularies/validation/limitProperties.ts +26 -0
  505. package/node_modules/ajv/lib/vocabularies/validation/multipleOf.ts +34 -0
  506. package/node_modules/ajv/lib/vocabularies/validation/pattern.ts +39 -0
  507. package/node_modules/ajv/lib/vocabularies/validation/required.ts +98 -0
  508. package/node_modules/ajv/lib/vocabularies/validation/uniqueItems.ts +79 -0
  509. package/node_modules/ajv/package.json +126 -0
  510. package/node_modules/ajv-formats/LICENSE +21 -0
  511. package/node_modules/ajv-formats/README.md +125 -0
  512. package/node_modules/ajv-formats/dist/formats.d.ts +9 -0
  513. package/node_modules/ajv-formats/dist/formats.js +208 -0
  514. package/node_modules/ajv-formats/dist/formats.js.map +1 -0
  515. package/node_modules/ajv-formats/dist/index.d.ts +15 -0
  516. package/node_modules/ajv-formats/dist/index.js +37 -0
  517. package/node_modules/ajv-formats/dist/index.js.map +1 -0
  518. package/node_modules/ajv-formats/dist/limit.d.ts +10 -0
  519. package/node_modules/ajv-formats/dist/limit.js +69 -0
  520. package/node_modules/ajv-formats/dist/limit.js.map +1 -0
  521. package/node_modules/ajv-formats/package.json +74 -0
  522. package/node_modules/ajv-formats/src/formats.ts +269 -0
  523. package/node_modules/ajv-formats/src/index.ts +62 -0
  524. package/node_modules/ajv-formats/src/limit.ts +99 -0
  525. package/node_modules/argparse/LICENSE +254 -0
  526. package/node_modules/argparse/README.md +84 -0
  527. package/node_modules/argparse/argparse.js +3707 -0
  528. package/node_modules/argparse/lib/sub.js +67 -0
  529. package/node_modules/argparse/lib/textwrap.js +440 -0
  530. package/node_modules/argparse/package.json +31 -0
  531. package/node_modules/atomically/dist/constants.d.ts +15 -0
  532. package/node_modules/atomically/dist/constants.js +19 -0
  533. package/node_modules/atomically/dist/index.d.ts +15 -0
  534. package/node_modules/atomically/dist/index.js +209 -0
  535. package/node_modules/atomically/dist/types.d.ts +27 -0
  536. package/node_modules/atomically/dist/types.js +2 -0
  537. package/node_modules/atomically/dist/utils/lang.d.ts +6 -0
  538. package/node_modules/atomically/dist/utils/lang.js +16 -0
  539. package/node_modules/atomically/dist/utils/scheduler.d.ts +6 -0
  540. package/node_modules/atomically/dist/utils/scheduler.js +34 -0
  541. package/node_modules/atomically/dist/utils/temp.d.ts +11 -0
  542. package/node_modules/atomically/dist/utils/temp.js +59 -0
  543. package/node_modules/atomically/license +21 -0
  544. package/node_modules/atomically/package.json +42 -0
  545. package/node_modules/atomically/readme.md +147 -0
  546. package/node_modules/builder-util-runtime/LICENSE +22 -0
  547. package/node_modules/builder-util-runtime/out/CancellationToken.d.ts +17 -0
  548. package/node_modules/builder-util-runtime/out/CancellationToken.js +108 -0
  549. package/node_modules/builder-util-runtime/out/CancellationToken.js.map +1 -0
  550. package/node_modules/builder-util-runtime/out/MemoLazy.d.ts +10 -0
  551. package/node_modules/builder-util-runtime/out/MemoLazy.js +42 -0
  552. package/node_modules/builder-util-runtime/out/MemoLazy.js.map +1 -0
  553. package/node_modules/builder-util-runtime/out/ProgressCallbackTransform.d.ts +21 -0
  554. package/node_modules/builder-util-runtime/out/ProgressCallbackTransform.js +54 -0
  555. package/node_modules/builder-util-runtime/out/ProgressCallbackTransform.js.map +1 -0
  556. package/node_modules/builder-util-runtime/out/blockMapApi.d.ts +12 -0
  557. package/node_modules/builder-util-runtime/out/blockMapApi.js +3 -0
  558. package/node_modules/builder-util-runtime/out/blockMapApi.js.map +1 -0
  559. package/node_modules/builder-util-runtime/out/error.d.ts +1 -0
  560. package/node_modules/builder-util-runtime/out/error.js +9 -0
  561. package/node_modules/builder-util-runtime/out/error.js.map +1 -0
  562. package/node_modules/builder-util-runtime/out/httpExecutor.d.ts +86 -0
  563. package/node_modules/builder-util-runtime/out/httpExecutor.js +529 -0
  564. package/node_modules/builder-util-runtime/out/httpExecutor.js.map +1 -0
  565. package/node_modules/builder-util-runtime/out/index.d.ts +15 -0
  566. package/node_modules/builder-util-runtime/out/index.js +49 -0
  567. package/node_modules/builder-util-runtime/out/index.js.map +1 -0
  568. package/node_modules/builder-util-runtime/out/objects.d.ts +8 -0
  569. package/node_modules/builder-util-runtime/out/objects.js +106 -0
  570. package/node_modules/builder-util-runtime/out/objects.js.map +1 -0
  571. package/node_modules/builder-util-runtime/out/publishOptions.d.ts +396 -0
  572. package/node_modules/builder-util-runtime/out/publishOptions.js +76 -0
  573. package/node_modules/builder-util-runtime/out/publishOptions.js.map +1 -0
  574. package/node_modules/builder-util-runtime/out/retry.d.ts +9 -0
  575. package/node_modules/builder-util-runtime/out/retry.js +21 -0
  576. package/node_modules/builder-util-runtime/out/retry.js.map +1 -0
  577. package/node_modules/builder-util-runtime/out/rfc2253Parser.d.ts +1 -0
  578. package/node_modules/builder-util-runtime/out/rfc2253Parser.js +80 -0
  579. package/node_modules/builder-util-runtime/out/rfc2253Parser.js.map +1 -0
  580. package/node_modules/builder-util-runtime/out/updateInfo.d.ts +76 -0
  581. package/node_modules/builder-util-runtime/out/updateInfo.js +3 -0
  582. package/node_modules/builder-util-runtime/out/updateInfo.js.map +1 -0
  583. package/node_modules/builder-util-runtime/out/uuid.d.ts +21 -0
  584. package/node_modules/builder-util-runtime/out/uuid.js +200 -0
  585. package/node_modules/builder-util-runtime/out/uuid.js.map +1 -0
  586. package/node_modules/builder-util-runtime/out/xml.d.ts +15 -0
  587. package/node_modules/builder-util-runtime/out/xml.js +109 -0
  588. package/node_modules/builder-util-runtime/out/xml.js.map +1 -0
  589. package/node_modules/builder-util-runtime/package.json +29 -0
  590. package/node_modules/builder-util-runtime/readme.md +3 -0
  591. package/node_modules/conf/dist/source/index.d.ts +135 -0
  592. package/node_modules/conf/dist/source/index.js +672 -0
  593. package/node_modules/conf/dist/source/types.d.ts +311 -0
  594. package/node_modules/conf/dist/source/types.js +1 -0
  595. package/node_modules/conf/license +9 -0
  596. package/node_modules/conf/node_modules/semver/LICENSE +15 -0
  597. package/node_modules/conf/node_modules/semver/README.md +680 -0
  598. package/node_modules/conf/node_modules/semver/bin/semver.js +195 -0
  599. package/node_modules/conf/node_modules/semver/classes/comparator.js +143 -0
  600. package/node_modules/conf/node_modules/semver/classes/index.js +7 -0
  601. package/node_modules/conf/node_modules/semver/classes/range.js +577 -0
  602. package/node_modules/conf/node_modules/semver/classes/semver.js +350 -0
  603. package/node_modules/conf/node_modules/semver/functions/clean.js +8 -0
  604. package/node_modules/conf/node_modules/semver/functions/cmp.js +54 -0
  605. package/node_modules/conf/node_modules/semver/functions/coerce.js +62 -0
  606. package/node_modules/conf/node_modules/semver/functions/compare-build.js +9 -0
  607. package/node_modules/conf/node_modules/semver/functions/compare-loose.js +5 -0
  608. package/node_modules/conf/node_modules/semver/functions/compare.js +7 -0
  609. package/node_modules/conf/node_modules/semver/functions/diff.js +60 -0
  610. package/node_modules/conf/node_modules/semver/functions/eq.js +5 -0
  611. package/node_modules/conf/node_modules/semver/functions/gt.js +5 -0
  612. package/node_modules/conf/node_modules/semver/functions/gte.js +5 -0
  613. package/node_modules/conf/node_modules/semver/functions/inc.js +21 -0
  614. package/node_modules/conf/node_modules/semver/functions/lt.js +5 -0
  615. package/node_modules/conf/node_modules/semver/functions/lte.js +5 -0
  616. package/node_modules/conf/node_modules/semver/functions/major.js +5 -0
  617. package/node_modules/conf/node_modules/semver/functions/minor.js +5 -0
  618. package/node_modules/conf/node_modules/semver/functions/neq.js +5 -0
  619. package/node_modules/conf/node_modules/semver/functions/parse.js +18 -0
  620. package/node_modules/conf/node_modules/semver/functions/patch.js +5 -0
  621. package/node_modules/conf/node_modules/semver/functions/prerelease.js +8 -0
  622. package/node_modules/conf/node_modules/semver/functions/rcompare.js +5 -0
  623. package/node_modules/conf/node_modules/semver/functions/rsort.js +5 -0
  624. package/node_modules/conf/node_modules/semver/functions/satisfies.js +12 -0
  625. package/node_modules/conf/node_modules/semver/functions/sort.js +5 -0
  626. package/node_modules/conf/node_modules/semver/functions/truncate.js +48 -0
  627. package/node_modules/conf/node_modules/semver/functions/valid.js +8 -0
  628. package/node_modules/conf/node_modules/semver/index.js +93 -0
  629. package/node_modules/conf/node_modules/semver/internal/constants.js +37 -0
  630. package/node_modules/conf/node_modules/semver/internal/debug.js +11 -0
  631. package/node_modules/conf/node_modules/semver/internal/identifiers.js +29 -0
  632. package/node_modules/conf/node_modules/semver/internal/lrucache.js +42 -0
  633. package/node_modules/conf/node_modules/semver/internal/parse-options.js +17 -0
  634. package/node_modules/conf/node_modules/semver/internal/re.js +223 -0
  635. package/node_modules/conf/node_modules/semver/package.json +78 -0
  636. package/node_modules/conf/node_modules/semver/preload.js +4 -0
  637. package/node_modules/conf/node_modules/semver/range.bnf +17 -0
  638. package/node_modules/conf/node_modules/semver/ranges/gtr.js +6 -0
  639. package/node_modules/conf/node_modules/semver/ranges/intersects.js +9 -0
  640. package/node_modules/conf/node_modules/semver/ranges/ltr.js +6 -0
  641. package/node_modules/conf/node_modules/semver/ranges/max-satisfying.js +27 -0
  642. package/node_modules/conf/node_modules/semver/ranges/min-satisfying.js +26 -0
  643. package/node_modules/conf/node_modules/semver/ranges/min-version.js +63 -0
  644. package/node_modules/conf/node_modules/semver/ranges/outside.js +82 -0
  645. package/node_modules/conf/node_modules/semver/ranges/simplify.js +49 -0
  646. package/node_modules/conf/node_modules/semver/ranges/subset.js +249 -0
  647. package/node_modules/conf/node_modules/semver/ranges/to-comparators.js +10 -0
  648. package/node_modules/conf/node_modules/semver/ranges/valid.js +13 -0
  649. package/node_modules/conf/package.json +82 -0
  650. package/node_modules/conf/readme.md +599 -0
  651. package/node_modules/debounce-fn/index.d.ts +79 -0
  652. package/node_modules/debounce-fn/index.js +88 -0
  653. package/node_modules/debounce-fn/license +9 -0
  654. package/node_modules/debounce-fn/package.json +48 -0
  655. package/node_modules/debounce-fn/readme.md +73 -0
  656. package/node_modules/debug/LICENSE +20 -0
  657. package/node_modules/debug/README.md +481 -0
  658. package/node_modules/debug/package.json +64 -0
  659. package/node_modules/debug/src/browser.js +272 -0
  660. package/node_modules/debug/src/common.js +292 -0
  661. package/node_modules/debug/src/index.js +10 -0
  662. package/node_modules/debug/src/node.js +263 -0
  663. package/node_modules/dot-prop/index.d.ts +262 -0
  664. package/node_modules/dot-prop/index.js +551 -0
  665. package/node_modules/dot-prop/license +9 -0
  666. package/node_modules/dot-prop/package.json +58 -0
  667. package/node_modules/dot-prop/readme.md +312 -0
  668. package/node_modules/dotenv/CHANGELOG.md +643 -0
  669. package/node_modules/dotenv/LICENSE +23 -0
  670. package/node_modules/dotenv/README-es.md +757 -0
  671. package/node_modules/dotenv/README.md +812 -0
  672. package/node_modules/dotenv/SECURITY.md +1 -0
  673. package/node_modules/dotenv/config.d.ts +1 -0
  674. package/node_modules/dotenv/config.js +9 -0
  675. package/node_modules/dotenv/lib/cli-options.js +17 -0
  676. package/node_modules/dotenv/lib/env-options.js +28 -0
  677. package/node_modules/dotenv/lib/main.d.ts +179 -0
  678. package/node_modules/dotenv/lib/main.js +423 -0
  679. package/node_modules/dotenv/package.json +62 -0
  680. package/node_modules/dotenv/skills/dotenv/SKILL.md +200 -0
  681. package/node_modules/dotenv/skills/dotenvx/SKILL.md +118 -0
  682. package/node_modules/electron-store/index.d.ts +64 -0
  683. package/node_modules/electron-store/index.js +83 -0
  684. package/node_modules/electron-store/license +9 -0
  685. package/node_modules/electron-store/package.json +72 -0
  686. package/node_modules/electron-store/readme.md +482 -0
  687. package/node_modules/electron-updater/LICENSE +22 -0
  688. package/node_modules/electron-updater/README.md +15 -0
  689. package/node_modules/electron-updater/node_modules/fs-extra/LICENSE +15 -0
  690. package/node_modules/electron-updater/node_modules/fs-extra/README.md +262 -0
  691. package/node_modules/electron-updater/node_modules/fs-extra/lib/copy/copy-sync.js +169 -0
  692. package/node_modules/electron-updater/node_modules/fs-extra/lib/copy/copy.js +235 -0
  693. package/node_modules/electron-updater/node_modules/fs-extra/lib/copy/index.js +7 -0
  694. package/node_modules/electron-updater/node_modules/fs-extra/lib/empty/index.js +39 -0
  695. package/node_modules/electron-updater/node_modules/fs-extra/lib/ensure/file.js +69 -0
  696. package/node_modules/electron-updater/node_modules/fs-extra/lib/ensure/index.js +23 -0
  697. package/node_modules/electron-updater/node_modules/fs-extra/lib/ensure/link.js +64 -0
  698. package/node_modules/electron-updater/node_modules/fs-extra/lib/ensure/symlink-paths.js +99 -0
  699. package/node_modules/electron-updater/node_modules/fs-extra/lib/ensure/symlink-type.js +31 -0
  700. package/node_modules/electron-updater/node_modules/fs-extra/lib/ensure/symlink.js +82 -0
  701. package/node_modules/electron-updater/node_modules/fs-extra/lib/fs/index.js +128 -0
  702. package/node_modules/electron-updater/node_modules/fs-extra/lib/index.js +16 -0
  703. package/node_modules/electron-updater/node_modules/fs-extra/lib/json/index.js +16 -0
  704. package/node_modules/electron-updater/node_modules/fs-extra/lib/json/jsonfile.js +11 -0
  705. package/node_modules/electron-updater/node_modules/fs-extra/lib/json/output-json-sync.js +12 -0
  706. package/node_modules/electron-updater/node_modules/fs-extra/lib/json/output-json.js +12 -0
  707. package/node_modules/electron-updater/node_modules/fs-extra/lib/mkdirs/index.js +14 -0
  708. package/node_modules/electron-updater/node_modules/fs-extra/lib/mkdirs/make-dir.js +27 -0
  709. package/node_modules/electron-updater/node_modules/fs-extra/lib/mkdirs/utils.js +21 -0
  710. package/node_modules/electron-updater/node_modules/fs-extra/lib/move/index.js +7 -0
  711. package/node_modules/electron-updater/node_modules/fs-extra/lib/move/move-sync.js +54 -0
  712. package/node_modules/electron-updater/node_modules/fs-extra/lib/move/move.js +75 -0
  713. package/node_modules/electron-updater/node_modules/fs-extra/lib/output-file/index.js +40 -0
  714. package/node_modules/electron-updater/node_modules/fs-extra/lib/path-exists/index.js +12 -0
  715. package/node_modules/electron-updater/node_modules/fs-extra/lib/remove/index.js +22 -0
  716. package/node_modules/electron-updater/node_modules/fs-extra/lib/remove/rimraf.js +302 -0
  717. package/node_modules/electron-updater/node_modules/fs-extra/lib/util/stat.js +154 -0
  718. package/node_modules/electron-updater/node_modules/fs-extra/lib/util/utimes.js +26 -0
  719. package/node_modules/electron-updater/node_modules/fs-extra/package.json +67 -0
  720. package/node_modules/electron-updater/node_modules/semver/LICENSE +15 -0
  721. package/node_modules/electron-updater/node_modules/semver/README.md +665 -0
  722. package/node_modules/electron-updater/node_modules/semver/bin/semver.js +191 -0
  723. package/node_modules/electron-updater/node_modules/semver/classes/comparator.js +143 -0
  724. package/node_modules/electron-updater/node_modules/semver/classes/index.js +7 -0
  725. package/node_modules/electron-updater/node_modules/semver/classes/range.js +557 -0
  726. package/node_modules/electron-updater/node_modules/semver/classes/semver.js +333 -0
  727. package/node_modules/electron-updater/node_modules/semver/functions/clean.js +8 -0
  728. package/node_modules/electron-updater/node_modules/semver/functions/cmp.js +54 -0
  729. package/node_modules/electron-updater/node_modules/semver/functions/coerce.js +62 -0
  730. package/node_modules/electron-updater/node_modules/semver/functions/compare-build.js +9 -0
  731. package/node_modules/electron-updater/node_modules/semver/functions/compare-loose.js +5 -0
  732. package/node_modules/electron-updater/node_modules/semver/functions/compare.js +7 -0
  733. package/node_modules/electron-updater/node_modules/semver/functions/diff.js +60 -0
  734. package/node_modules/electron-updater/node_modules/semver/functions/eq.js +5 -0
  735. package/node_modules/electron-updater/node_modules/semver/functions/gt.js +5 -0
  736. package/node_modules/electron-updater/node_modules/semver/functions/gte.js +5 -0
  737. package/node_modules/electron-updater/node_modules/semver/functions/inc.js +21 -0
  738. package/node_modules/electron-updater/node_modules/semver/functions/lt.js +5 -0
  739. package/node_modules/electron-updater/node_modules/semver/functions/lte.js +5 -0
  740. package/node_modules/electron-updater/node_modules/semver/functions/major.js +5 -0
  741. package/node_modules/electron-updater/node_modules/semver/functions/minor.js +5 -0
  742. package/node_modules/electron-updater/node_modules/semver/functions/neq.js +5 -0
  743. package/node_modules/electron-updater/node_modules/semver/functions/parse.js +18 -0
  744. package/node_modules/electron-updater/node_modules/semver/functions/patch.js +5 -0
  745. package/node_modules/electron-updater/node_modules/semver/functions/prerelease.js +8 -0
  746. package/node_modules/electron-updater/node_modules/semver/functions/rcompare.js +5 -0
  747. package/node_modules/electron-updater/node_modules/semver/functions/rsort.js +5 -0
  748. package/node_modules/electron-updater/node_modules/semver/functions/satisfies.js +12 -0
  749. package/node_modules/electron-updater/node_modules/semver/functions/sort.js +5 -0
  750. package/node_modules/electron-updater/node_modules/semver/functions/valid.js +8 -0
  751. package/node_modules/electron-updater/node_modules/semver/index.js +91 -0
  752. package/node_modules/electron-updater/node_modules/semver/internal/constants.js +37 -0
  753. package/node_modules/electron-updater/node_modules/semver/internal/debug.js +11 -0
  754. package/node_modules/electron-updater/node_modules/semver/internal/identifiers.js +29 -0
  755. package/node_modules/electron-updater/node_modules/semver/internal/lrucache.js +42 -0
  756. package/node_modules/electron-updater/node_modules/semver/internal/parse-options.js +17 -0
  757. package/node_modules/electron-updater/node_modules/semver/internal/re.js +223 -0
  758. package/node_modules/electron-updater/node_modules/semver/package.json +78 -0
  759. package/node_modules/electron-updater/node_modules/semver/preload.js +4 -0
  760. package/node_modules/electron-updater/node_modules/semver/range.bnf +16 -0
  761. package/node_modules/electron-updater/node_modules/semver/ranges/gtr.js +6 -0
  762. package/node_modules/electron-updater/node_modules/semver/ranges/intersects.js +9 -0
  763. package/node_modules/electron-updater/node_modules/semver/ranges/ltr.js +6 -0
  764. package/node_modules/electron-updater/node_modules/semver/ranges/max-satisfying.js +27 -0
  765. package/node_modules/electron-updater/node_modules/semver/ranges/min-satisfying.js +26 -0
  766. package/node_modules/electron-updater/node_modules/semver/ranges/min-version.js +63 -0
  767. package/node_modules/electron-updater/node_modules/semver/ranges/outside.js +82 -0
  768. package/node_modules/electron-updater/node_modules/semver/ranges/simplify.js +49 -0
  769. package/node_modules/electron-updater/node_modules/semver/ranges/subset.js +249 -0
  770. package/node_modules/electron-updater/node_modules/semver/ranges/to-comparators.js +10 -0
  771. package/node_modules/electron-updater/node_modules/semver/ranges/valid.js +13 -0
  772. package/node_modules/electron-updater/out/AppAdapter.d.ts +22 -0
  773. package/node_modules/electron-updater/out/AppAdapter.js +21 -0
  774. package/node_modules/electron-updater/out/AppAdapter.js.map +1 -0
  775. package/node_modules/electron-updater/out/AppImageUpdater.d.ts +11 -0
  776. package/node_modules/electron-updater/out/AppImageUpdater.js +118 -0
  777. package/node_modules/electron-updater/out/AppImageUpdater.js.map +1 -0
  778. package/node_modules/electron-updater/out/AppUpdater.d.ts +241 -0
  779. package/node_modules/electron-updater/out/AppUpdater.js +735 -0
  780. package/node_modules/electron-updater/out/AppUpdater.js.map +1 -0
  781. package/node_modules/electron-updater/out/BaseUpdater.d.ts +33 -0
  782. package/node_modules/electron-updater/out/BaseUpdater.js +150 -0
  783. package/node_modules/electron-updater/out/BaseUpdater.js.map +1 -0
  784. package/node_modules/electron-updater/out/DebUpdater.d.ts +13 -0
  785. package/node_modules/electron-updater/out/DebUpdater.js +84 -0
  786. package/node_modules/electron-updater/out/DebUpdater.js.map +1 -0
  787. package/node_modules/electron-updater/out/DownloadedUpdateHelper.d.ts +35 -0
  788. package/node_modules/electron-updater/out/DownloadedUpdateHelper.js +169 -0
  789. package/node_modules/electron-updater/out/DownloadedUpdateHelper.js.map +1 -0
  790. package/node_modules/electron-updater/out/ElectronAppAdapter.d.ts +15 -0
  791. package/node_modules/electron-updater/out/ElectronAppAdapter.js +42 -0
  792. package/node_modules/electron-updater/out/ElectronAppAdapter.js.map +1 -0
  793. package/node_modules/electron-updater/out/LinuxUpdater.d.ts +29 -0
  794. package/node_modules/electron-updater/out/LinuxUpdater.js +119 -0
  795. package/node_modules/electron-updater/out/LinuxUpdater.js.map +1 -0
  796. package/node_modules/electron-updater/out/MacUpdater.d.ts +20 -0
  797. package/node_modules/electron-updater/out/MacUpdater.js +259 -0
  798. package/node_modules/electron-updater/out/MacUpdater.js.map +1 -0
  799. package/node_modules/electron-updater/out/NsisUpdater.d.ts +25 -0
  800. package/node_modules/electron-updater/out/NsisUpdater.js +178 -0
  801. package/node_modules/electron-updater/out/NsisUpdater.js.map +1 -0
  802. package/node_modules/electron-updater/out/PacmanUpdater.d.ts +13 -0
  803. package/node_modules/electron-updater/out/PacmanUpdater.js +67 -0
  804. package/node_modules/electron-updater/out/PacmanUpdater.js.map +1 -0
  805. package/node_modules/electron-updater/out/RpmUpdater.d.ts +13 -0
  806. package/node_modules/electron-updater/out/RpmUpdater.js +65 -0
  807. package/node_modules/electron-updater/out/RpmUpdater.js.map +1 -0
  808. package/node_modules/electron-updater/out/differentialDownloader/DataSplitter.d.ts +39 -0
  809. package/node_modules/electron-updater/out/differentialDownloader/DataSplitter.js +229 -0
  810. package/node_modules/electron-updater/out/differentialDownloader/DataSplitter.js.map +1 -0
  811. package/node_modules/electron-updater/out/differentialDownloader/DifferentialDownloader.d.ts +30 -0
  812. package/node_modules/electron-updater/out/differentialDownloader/DifferentialDownloader.js +268 -0
  813. package/node_modules/electron-updater/out/differentialDownloader/DifferentialDownloader.js.map +1 -0
  814. package/node_modules/electron-updater/out/differentialDownloader/FileWithEmbeddedBlockMapDifferentialDownloader.d.ts +4 -0
  815. package/node_modules/electron-updater/out/differentialDownloader/FileWithEmbeddedBlockMapDifferentialDownloader.js +37 -0
  816. package/node_modules/electron-updater/out/differentialDownloader/FileWithEmbeddedBlockMapDifferentialDownloader.js.map +1 -0
  817. package/node_modules/electron-updater/out/differentialDownloader/GenericDifferentialDownloader.d.ts +5 -0
  818. package/node_modules/electron-updater/out/differentialDownloader/GenericDifferentialDownloader.js +11 -0
  819. package/node_modules/electron-updater/out/differentialDownloader/GenericDifferentialDownloader.js.map +1 -0
  820. package/node_modules/electron-updater/out/differentialDownloader/ProgressDifferentialDownloadCallbackTransform.d.ts +31 -0
  821. package/node_modules/electron-updater/out/differentialDownloader/ProgressDifferentialDownloadCallbackTransform.js +90 -0
  822. package/node_modules/electron-updater/out/differentialDownloader/ProgressDifferentialDownloadCallbackTransform.js.map +1 -0
  823. package/node_modules/electron-updater/out/differentialDownloader/downloadPlanBuilder.d.ts +12 -0
  824. package/node_modules/electron-updater/out/differentialDownloader/downloadPlanBuilder.js +113 -0
  825. package/node_modules/electron-updater/out/differentialDownloader/downloadPlanBuilder.js.map +1 -0
  826. package/node_modules/electron-updater/out/differentialDownloader/multipleRangeDownloader.d.ts +6 -0
  827. package/node_modules/electron-updater/out/differentialDownloader/multipleRangeDownloader.js +114 -0
  828. package/node_modules/electron-updater/out/differentialDownloader/multipleRangeDownloader.js.map +1 -0
  829. package/node_modules/electron-updater/out/electronHttpExecutor.d.ts +16 -0
  830. package/node_modules/electron-updater/out/electronHttpExecutor.js +79 -0
  831. package/node_modules/electron-updater/out/electronHttpExecutor.js.map +1 -0
  832. package/node_modules/electron-updater/out/main.d.ts +19 -0
  833. package/node_modules/electron-updater/out/main.js +84 -0
  834. package/node_modules/electron-updater/out/main.js.map +1 -0
  835. package/node_modules/electron-updater/out/providerFactory.d.ts +5 -0
  836. package/node_modules/electron-updater/out/providerFactory.js +68 -0
  837. package/node_modules/electron-updater/out/providerFactory.js.map +1 -0
  838. package/node_modules/electron-updater/out/providers/BitbucketProvider.d.ts +14 -0
  839. package/node_modules/electron-updater/out/providers/BitbucketProvider.js +42 -0
  840. package/node_modules/electron-updater/out/providers/BitbucketProvider.js.map +1 -0
  841. package/node_modules/electron-updater/out/providers/GenericProvider.d.ts +13 -0
  842. package/node_modules/electron-updater/out/providers/GenericProvider.js +51 -0
  843. package/node_modules/electron-updater/out/providers/GenericProvider.js.map +1 -0
  844. package/node_modules/electron-updater/out/providers/GitHubProvider.d.ts +29 -0
  845. package/node_modules/electron-updater/out/providers/GitHubProvider.js +237 -0
  846. package/node_modules/electron-updater/out/providers/GitHubProvider.js.map +1 -0
  847. package/node_modules/electron-updater/out/providers/GitLabProvider.d.ts +58 -0
  848. package/node_modules/electron-updater/out/providers/GitLabProvider.js +281 -0
  849. package/node_modules/electron-updater/out/providers/GitLabProvider.js.map +1 -0
  850. package/node_modules/electron-updater/out/providers/KeygenProvider.d.ts +15 -0
  851. package/node_modules/electron-updater/out/providers/KeygenProvider.js +46 -0
  852. package/node_modules/electron-updater/out/providers/KeygenProvider.js.map +1 -0
  853. package/node_modules/electron-updater/out/providers/PrivateGitHubProvider.d.ts +26 -0
  854. package/node_modules/electron-updater/out/providers/PrivateGitHubProvider.js +95 -0
  855. package/node_modules/electron-updater/out/providers/PrivateGitHubProvider.js.map +1 -0
  856. package/node_modules/electron-updater/out/providers/Provider.d.ts +35 -0
  857. package/node_modules/electron-updater/out/providers/Provider.js +146 -0
  858. package/node_modules/electron-updater/out/providers/Provider.js.map +1 -0
  859. package/node_modules/electron-updater/out/types.d.ts +43 -0
  860. package/node_modules/electron-updater/out/types.js +42 -0
  861. package/node_modules/electron-updater/out/types.js.map +1 -0
  862. package/node_modules/electron-updater/out/util.d.ts +3 -0
  863. package/node_modules/electron-updater/out/util.js +33 -0
  864. package/node_modules/electron-updater/out/util.js.map +1 -0
  865. package/node_modules/electron-updater/out/windowsExecutableCodeSignatureVerifier.d.ts +2 -0
  866. package/node_modules/electron-updater/out/windowsExecutableCodeSignatureVerifier.js +142 -0
  867. package/node_modules/electron-updater/out/windowsExecutableCodeSignatureVerifier.js.map +1 -0
  868. package/node_modules/electron-updater/package.json +40 -0
  869. package/node_modules/env-paths/index.d.ts +90 -0
  870. package/node_modules/env-paths/index.js +68 -0
  871. package/node_modules/env-paths/license +9 -0
  872. package/node_modules/env-paths/package.json +48 -0
  873. package/node_modules/env-paths/readme.md +113 -0
  874. package/node_modules/fast-deep-equal/LICENSE +21 -0
  875. package/node_modules/fast-deep-equal/README.md +96 -0
  876. package/node_modules/fast-deep-equal/es6/index.d.ts +2 -0
  877. package/node_modules/fast-deep-equal/es6/index.js +72 -0
  878. package/node_modules/fast-deep-equal/es6/react.d.ts +2 -0
  879. package/node_modules/fast-deep-equal/es6/react.js +79 -0
  880. package/node_modules/fast-deep-equal/index.d.ts +4 -0
  881. package/node_modules/fast-deep-equal/index.js +46 -0
  882. package/node_modules/fast-deep-equal/package.json +61 -0
  883. package/node_modules/fast-deep-equal/react.d.ts +2 -0
  884. package/node_modules/fast-deep-equal/react.js +53 -0
  885. package/node_modules/fast-uri/.gitattributes +2 -0
  886. package/node_modules/fast-uri/.github/dependabot.yml +13 -0
  887. package/node_modules/fast-uri/.github/workflows/ci.yml +106 -0
  888. package/node_modules/fast-uri/.github/workflows/lock-threads.yml +19 -0
  889. package/node_modules/fast-uri/.github/workflows/package-manager-ci.yml +24 -0
  890. package/node_modules/fast-uri/LICENSE +30 -0
  891. package/node_modules/fast-uri/README.md +152 -0
  892. package/node_modules/fast-uri/benchmark/benchmark.mjs +159 -0
  893. package/node_modules/fast-uri/benchmark/equal.mjs +51 -0
  894. package/node_modules/fast-uri/benchmark/non-simple-domain.mjs +22 -0
  895. package/node_modules/fast-uri/benchmark/package.json +17 -0
  896. package/node_modules/fast-uri/benchmark/string-array-to-hex-stripped.mjs +24 -0
  897. package/node_modules/fast-uri/benchmark/ws-is-secure.mjs +65 -0
  898. package/node_modules/fast-uri/eslint.config.js +6 -0
  899. package/node_modules/fast-uri/index.js +631 -0
  900. package/node_modules/fast-uri/lib/schemes.js +272 -0
  901. package/node_modules/fast-uri/lib/utils.js +747 -0
  902. package/node_modules/fast-uri/package.json +68 -0
  903. package/node_modules/fast-uri/test/ajv.test.js +43 -0
  904. package/node_modules/fast-uri/test/component-safe-serialization.test.js +163 -0
  905. package/node_modules/fast-uri/test/equal.test.js +145 -0
  906. package/node_modules/fast-uri/test/fixtures/uri-js-parse.json +503 -0
  907. package/node_modules/fast-uri/test/fixtures/uri-js-serialize.json +120 -0
  908. package/node_modules/fast-uri/test/ipv6-canonical.test.js +34 -0
  909. package/node_modules/fast-uri/test/ipv6-validation.test.js +124 -0
  910. package/node_modules/fast-uri/test/malformed-percent.test.js +77 -0
  911. package/node_modules/fast-uri/test/malformed-urn.test.js +61 -0
  912. package/node_modules/fast-uri/test/parse.test.js +327 -0
  913. package/node_modules/fast-uri/test/query-fragment-normalization.test.js +33 -0
  914. package/node_modules/fast-uri/test/reserved-path-normalization.test.js +109 -0
  915. package/node_modules/fast-uri/test/resolve.test.js +87 -0
  916. package/node_modules/fast-uri/test/rfc-3986.test.js +90 -0
  917. package/node_modules/fast-uri/test/scheme-validation.test.js +124 -0
  918. package/node_modules/fast-uri/test/security-normalization.test.js +178 -0
  919. package/node_modules/fast-uri/test/security.test.js +431 -0
  920. package/node_modules/fast-uri/test/serialize.test.js +151 -0
  921. package/node_modules/fast-uri/test/uri-js-compatibility.test.js +33 -0
  922. package/node_modules/fast-uri/test/uri-js.test.js +912 -0
  923. package/node_modules/fast-uri/test/urn-full-input.test.js +29 -0
  924. package/node_modules/fast-uri/test/util.test.js +38 -0
  925. package/node_modules/fast-uri/test/websocket-query-preservation.test.js +24 -0
  926. package/node_modules/fast-uri/tsconfig.json +9 -0
  927. package/node_modules/fast-uri/types/index.d.ts +60 -0
  928. package/node_modules/fast-uri/types/index.test-d.ts +17 -0
  929. package/node_modules/graceful-fs/LICENSE +15 -0
  930. package/node_modules/graceful-fs/README.md +143 -0
  931. package/node_modules/graceful-fs/clone.js +23 -0
  932. package/node_modules/graceful-fs/graceful-fs.js +448 -0
  933. package/node_modules/graceful-fs/legacy-streams.js +118 -0
  934. package/node_modules/graceful-fs/package.json +53 -0
  935. package/node_modules/graceful-fs/polyfills.js +355 -0
  936. package/node_modules/js-yaml/LICENSE +21 -0
  937. package/node_modules/js-yaml/README.md +233 -0
  938. package/node_modules/js-yaml/bin/js-yaml.js +117 -0
  939. package/node_modules/js-yaml/dist/js-yaml.js +3022 -0
  940. package/node_modules/js-yaml/dist/js-yaml.js.map +1 -0
  941. package/node_modules/js-yaml/dist/js-yaml.min.js +2 -0
  942. package/node_modules/js-yaml/dist/js-yaml.min.js.map +1 -0
  943. package/node_modules/js-yaml/dist/js-yaml.mjs +3082 -0
  944. package/node_modules/js-yaml/dist/js-yaml.mjs.map +1 -0
  945. package/node_modules/js-yaml/index.js +44 -0
  946. package/node_modules/js-yaml/lib/common.js +50 -0
  947. package/node_modules/js-yaml/lib/dumper.js +937 -0
  948. package/node_modules/js-yaml/lib/exception.js +51 -0
  949. package/node_modules/js-yaml/lib/index_vite_proxy.tmp.mjs +37 -0
  950. package/node_modules/js-yaml/lib/loader.js +1803 -0
  951. package/node_modules/js-yaml/lib/schema/core.js +9 -0
  952. package/node_modules/js-yaml/lib/schema/default.js +20 -0
  953. package/node_modules/js-yaml/lib/schema/failsafe.js +14 -0
  954. package/node_modules/js-yaml/lib/schema/json.js +17 -0
  955. package/node_modules/js-yaml/lib/schema.js +109 -0
  956. package/node_modules/js-yaml/lib/snippet.js +96 -0
  957. package/node_modules/js-yaml/lib/type/binary.js +122 -0
  958. package/node_modules/js-yaml/lib/type/bool.js +35 -0
  959. package/node_modules/js-yaml/lib/type/float.js +99 -0
  960. package/node_modules/js-yaml/lib/type/int.js +142 -0
  961. package/node_modules/js-yaml/lib/type/map.js +8 -0
  962. package/node_modules/js-yaml/lib/type/merge.js +12 -0
  963. package/node_modules/js-yaml/lib/type/null.js +35 -0
  964. package/node_modules/js-yaml/lib/type/omap.js +45 -0
  965. package/node_modules/js-yaml/lib/type/pairs.js +50 -0
  966. package/node_modules/js-yaml/lib/type/seq.js +8 -0
  967. package/node_modules/js-yaml/lib/type/set.js +29 -0
  968. package/node_modules/js-yaml/lib/type/str.js +8 -0
  969. package/node_modules/js-yaml/lib/type/timestamp.js +88 -0
  970. package/node_modules/js-yaml/lib/type.js +66 -0
  971. package/node_modules/js-yaml/package.json +83 -0
  972. package/node_modules/json-schema-traverse/.eslintrc.yml +27 -0
  973. package/node_modules/json-schema-traverse/.github/FUNDING.yml +2 -0
  974. package/node_modules/json-schema-traverse/.github/workflows/build.yml +28 -0
  975. package/node_modules/json-schema-traverse/.github/workflows/publish.yml +27 -0
  976. package/node_modules/json-schema-traverse/LICENSE +21 -0
  977. package/node_modules/json-schema-traverse/README.md +95 -0
  978. package/node_modules/json-schema-traverse/index.d.ts +40 -0
  979. package/node_modules/json-schema-traverse/index.js +93 -0
  980. package/node_modules/json-schema-traverse/package.json +43 -0
  981. package/node_modules/json-schema-traverse/spec/.eslintrc.yml +6 -0
  982. package/node_modules/json-schema-traverse/spec/fixtures/schema.js +125 -0
  983. package/node_modules/json-schema-traverse/spec/index.spec.js +171 -0
  984. package/node_modules/json-schema-typed/LICENSE.md +57 -0
  985. package/node_modules/json-schema-typed/README.md +108 -0
  986. package/node_modules/json-schema-typed/draft_07.d.ts +882 -0
  987. package/node_modules/json-schema-typed/draft_07.js +328 -0
  988. package/node_modules/json-schema-typed/draft_2019_09.d.ts +1247 -0
  989. package/node_modules/json-schema-typed/draft_2019_09.js +349 -0
  990. package/node_modules/json-schema-typed/draft_2020_12.d.ts +1239 -0
  991. package/node_modules/json-schema-typed/draft_2020_12.js +352 -0
  992. package/node_modules/json-schema-typed/package.json +44 -0
  993. package/node_modules/jsonfile/LICENSE +15 -0
  994. package/node_modules/jsonfile/README.md +230 -0
  995. package/node_modules/jsonfile/index.js +88 -0
  996. package/node_modules/jsonfile/package.json +40 -0
  997. package/node_modules/jsonfile/utils.js +18 -0
  998. package/node_modules/lazy-val/out/main.d.ts +7 -0
  999. package/node_modules/lazy-val/out/main.js +26 -0
  1000. package/node_modules/lazy-val/out/main.js.map +1 -0
  1001. package/node_modules/lazy-val/package.json +21 -0
  1002. package/node_modules/lazy-val/readme.md +11 -0
  1003. package/node_modules/lodash.escaperegexp/LICENSE +47 -0
  1004. package/node_modules/lodash.escaperegexp/README.md +18 -0
  1005. package/node_modules/lodash.escaperegexp/index.js +166 -0
  1006. package/node_modules/lodash.escaperegexp/package.json +17 -0
  1007. package/node_modules/lodash.isequal/LICENSE +47 -0
  1008. package/node_modules/lodash.isequal/README.md +18 -0
  1009. package/node_modules/lodash.isequal/index.js +1848 -0
  1010. package/node_modules/lodash.isequal/package.json +16 -0
  1011. package/node_modules/mimic-function/index.d.ts +52 -0
  1012. package/node_modules/mimic-function/index.js +72 -0
  1013. package/node_modules/mimic-function/license +9 -0
  1014. package/node_modules/mimic-function/package.json +49 -0
  1015. package/node_modules/mimic-function/readme.md +80 -0
  1016. package/node_modules/ms/index.js +162 -0
  1017. package/node_modules/ms/license.md +21 -0
  1018. package/node_modules/ms/package.json +38 -0
  1019. package/node_modules/ms/readme.md +59 -0
  1020. package/node_modules/playwright-core/LICENSE +202 -0
  1021. package/node_modules/playwright-core/NOTICE +5 -0
  1022. package/node_modules/playwright-core/README.md +3 -0
  1023. package/node_modules/playwright-core/ThirdPartyNotices.txt +13 -0
  1024. package/node_modules/playwright-core/bin/install_media_pack.ps1 +5 -0
  1025. package/node_modules/playwright-core/bin/install_webkit_wsl.ps1 +33 -0
  1026. package/node_modules/playwright-core/bin/reinstall_chrome_beta_linux.sh +42 -0
  1027. package/node_modules/playwright-core/bin/reinstall_chrome_beta_mac.sh +13 -0
  1028. package/node_modules/playwright-core/bin/reinstall_chrome_beta_win.ps1 +24 -0
  1029. package/node_modules/playwright-core/bin/reinstall_chrome_stable_linux.sh +42 -0
  1030. package/node_modules/playwright-core/bin/reinstall_chrome_stable_mac.sh +12 -0
  1031. package/node_modules/playwright-core/bin/reinstall_chrome_stable_win.ps1 +24 -0
  1032. package/node_modules/playwright-core/bin/reinstall_msedge_beta_linux.sh +48 -0
  1033. package/node_modules/playwright-core/bin/reinstall_msedge_beta_mac.sh +11 -0
  1034. package/node_modules/playwright-core/bin/reinstall_msedge_beta_win.ps1 +23 -0
  1035. package/node_modules/playwright-core/bin/reinstall_msedge_dev_linux.sh +48 -0
  1036. package/node_modules/playwright-core/bin/reinstall_msedge_dev_mac.sh +11 -0
  1037. package/node_modules/playwright-core/bin/reinstall_msedge_dev_win.ps1 +23 -0
  1038. package/node_modules/playwright-core/bin/reinstall_msedge_stable_linux.sh +48 -0
  1039. package/node_modules/playwright-core/bin/reinstall_msedge_stable_mac.sh +11 -0
  1040. package/node_modules/playwright-core/bin/reinstall_msedge_stable_win.ps1 +24 -0
  1041. package/node_modules/playwright-core/browsers.json +52 -0
  1042. package/node_modules/playwright-core/cli.js +21 -0
  1043. package/node_modules/playwright-core/index.d.ts +17 -0
  1044. package/node_modules/playwright-core/index.js +17 -0
  1045. package/node_modules/playwright-core/index.mjs +28 -0
  1046. package/node_modules/playwright-core/lib/bootstrap.js +88 -0
  1047. package/node_modules/playwright-core/lib/coreBundle.js +75813 -0
  1048. package/node_modules/playwright-core/lib/entry/cliDaemon.js +5 -0
  1049. package/node_modules/playwright-core/lib/entry/dashboardApp.js +3 -0
  1050. package/node_modules/playwright-core/lib/entry/mcp.js +10 -0
  1051. package/node_modules/playwright-core/lib/entry/oopBrowserDownload.js +3 -0
  1052. package/node_modules/playwright-core/lib/package.js +50 -0
  1053. package/node_modules/playwright-core/lib/server/chromium/appIcon.png +0 -0
  1054. package/node_modules/playwright-core/lib/server/electron/loader.js +116 -0
  1055. package/node_modules/playwright-core/lib/serverRegistry.js +1939 -0
  1056. package/node_modules/playwright-core/lib/serverRegistry.js.LICENSE +65 -0
  1057. package/node_modules/playwright-core/lib/tools/cli-client/channelSessions.js +141 -0
  1058. package/node_modules/playwright-core/lib/tools/cli-client/cli.js +6 -0
  1059. package/node_modules/playwright-core/lib/tools/cli-client/help.json +721 -0
  1060. package/node_modules/playwright-core/lib/tools/cli-client/minimist.js +128 -0
  1061. package/node_modules/playwright-core/lib/tools/cli-client/output.js +351 -0
  1062. package/node_modules/playwright-core/lib/tools/cli-client/program.js +418 -0
  1063. package/node_modules/playwright-core/lib/tools/cli-client/registry.js +180 -0
  1064. package/node_modules/playwright-core/lib/tools/cli-client/session.js +259 -0
  1065. package/node_modules/playwright-core/lib/tools/dashboard/appIcon.png +0 -0
  1066. package/node_modules/playwright-core/lib/tools/skills/playwright-cli/SKILL.md +425 -0
  1067. package/node_modules/playwright-core/lib/tools/skills/playwright-cli/references/element-attributes.md +23 -0
  1068. package/node_modules/playwright-core/lib/tools/skills/playwright-cli/references/playwright-tests.md +39 -0
  1069. package/node_modules/playwright-core/lib/tools/skills/playwright-cli/references/request-mocking.md +87 -0
  1070. package/node_modules/playwright-core/lib/tools/skills/playwright-cli/references/running-code.md +241 -0
  1071. package/node_modules/playwright-core/lib/tools/skills/playwright-cli/references/session-management.md +225 -0
  1072. package/node_modules/playwright-core/lib/tools/skills/playwright-cli/references/storage-state.md +275 -0
  1073. package/node_modules/playwright-core/lib/tools/skills/playwright-cli/references/test-generation.md +433 -0
  1074. package/node_modules/playwright-core/lib/tools/skills/playwright-cli/references/tracing.md +139 -0
  1075. package/node_modules/playwright-core/lib/tools/skills/playwright-cli/references/video-recording.md +143 -0
  1076. package/node_modules/playwright-core/lib/tools/skills/playwright-component-testing/SKILL.md +136 -0
  1077. package/node_modules/playwright-core/lib/tools/skills/playwright-component-testing/references/gallery-spec.md +144 -0
  1078. package/node_modules/playwright-core/lib/tools/skills/playwright-component-testing/references/migration.md +89 -0
  1079. package/node_modules/playwright-core/lib/tools/skills/playwright-component-testing/references/react.md +69 -0
  1080. package/node_modules/playwright-core/lib/tools/skills/playwright-component-testing/references/typing.md +173 -0
  1081. package/node_modules/playwright-core/lib/tools/skills/playwright-component-testing/references/vue.md +77 -0
  1082. package/node_modules/playwright-core/lib/tools/skills/playwright-trace/SKILL.md +174 -0
  1083. package/node_modules/playwright-core/lib/tools/utils/extension.js +112 -0
  1084. package/node_modules/playwright-core/lib/tools/utils/socketConnection.js +108 -0
  1085. package/node_modules/playwright-core/lib/utilsBundle.js +85357 -0
  1086. package/node_modules/playwright-core/lib/utilsBundle.js.LICENSE +1890 -0
  1087. package/node_modules/playwright-core/lib/vite/dashboard/assets/codeMirrorModule--QdMvsKi.css +1 -0
  1088. package/node_modules/playwright-core/lib/vite/dashboard/assets/codeMirrorModule-CQ8RZGBm.js +32 -0
  1089. package/node_modules/playwright-core/lib/vite/dashboard/assets/codicon-DCmgc-ay.ttf +0 -0
  1090. package/node_modules/playwright-core/lib/vite/dashboard/assets/firefox-1bWoP6pv.svg +1 -0
  1091. package/node_modules/playwright-core/lib/vite/dashboard/assets/firefox-beta-k3eOH_eK.svg +1 -0
  1092. package/node_modules/playwright-core/lib/vite/dashboard/assets/firefox-nightly-Cp5nfeDT.svg +1 -0
  1093. package/node_modules/playwright-core/lib/vite/dashboard/assets/index-AwgwcYie.css +1 -0
  1094. package/node_modules/playwright-core/lib/vite/dashboard/assets/index-hRvO4yU2.js +12 -0
  1095. package/node_modules/playwright-core/lib/vite/dashboard/assets/safari-na3_-uQk.svg +1 -0
  1096. package/node_modules/playwright-core/lib/vite/dashboard/index.html +29 -0
  1097. package/node_modules/playwright-core/lib/vite/dashboard/playwright-logo.svg +24 -0
  1098. package/node_modules/playwright-core/lib/vite/htmlReport/index.html +16 -0
  1099. package/node_modules/playwright-core/lib/vite/htmlReport/report.css +2 -0
  1100. package/node_modules/playwright-core/lib/vite/htmlReport/report.js +32 -0
  1101. package/node_modules/playwright-core/lib/vite/recorder/assets/codeMirrorModule--QdMvsKi.css +1 -0
  1102. package/node_modules/playwright-core/lib/vite/recorder/assets/codeMirrorModule-CVQWJZAA.js +32 -0
  1103. package/node_modules/playwright-core/lib/vite/recorder/assets/codicon-DCmgc-ay.ttf +0 -0
  1104. package/node_modules/playwright-core/lib/vite/recorder/assets/index-BZpYJZ-P.css +1 -0
  1105. package/node_modules/playwright-core/lib/vite/recorder/assets/index-hrlLqLtq.js +129 -0
  1106. package/node_modules/playwright-core/lib/vite/recorder/index.html +29 -0
  1107. package/node_modules/playwright-core/lib/vite/recorder/playwright-logo.svg +9 -0
  1108. package/node_modules/playwright-core/lib/vite/traceViewer/assets/codeMirrorModule-BbkfBe3n.js +32 -0
  1109. package/node_modules/playwright-core/lib/vite/traceViewer/assets/defaultSettingsView-Ds6CBOo0.js +182 -0
  1110. package/node_modules/playwright-core/lib/vite/traceViewer/assets/urlMatch-L3liM589.js +1 -0
  1111. package/node_modules/playwright-core/lib/vite/traceViewer/assets/xtermModule-DywYcAf8.js +7 -0
  1112. package/node_modules/playwright-core/lib/vite/traceViewer/codeMirrorModule.-QdMvsKi.css +1 -0
  1113. package/node_modules/playwright-core/lib/vite/traceViewer/codicon.DCmgc-ay.ttf +0 -0
  1114. package/node_modules/playwright-core/lib/vite/traceViewer/defaultSettingsView.Bqk9acqE.css +1 -0
  1115. package/node_modules/playwright-core/lib/vite/traceViewer/index.B4cLoZK3.js +1 -0
  1116. package/node_modules/playwright-core/lib/vite/traceViewer/index.B_TqY17P.css +1 -0
  1117. package/node_modules/playwright-core/lib/vite/traceViewer/index.html +44 -0
  1118. package/node_modules/playwright-core/lib/vite/traceViewer/manifest.webmanifest +16 -0
  1119. package/node_modules/playwright-core/lib/vite/traceViewer/playwright-logo.svg +9 -0
  1120. package/node_modules/playwright-core/lib/vite/traceViewer/snapshot.B_Jk1wbt.js +1 -0
  1121. package/node_modules/playwright-core/lib/vite/traceViewer/snapshot.html +10 -0
  1122. package/node_modules/playwright-core/lib/vite/traceViewer/sw.bundle.js +4 -0
  1123. package/node_modules/playwright-core/lib/vite/traceViewer/uiMode.CU5KtEkS.js +5 -0
  1124. package/node_modules/playwright-core/lib/vite/traceViewer/uiMode.CyMfwkXJ.css +1 -0
  1125. package/node_modules/playwright-core/lib/vite/traceViewer/uiMode.html +18 -0
  1126. package/node_modules/playwright-core/lib/vite/traceViewer/xtermModule.kHJ-D0s7.css +1 -0
  1127. package/node_modules/playwright-core/lib/webp_codec.LICENSE +173 -0
  1128. package/node_modules/playwright-core/lib/webp_codec.wasm +0 -0
  1129. package/node_modules/playwright-core/lib/xdg-open +1267 -0
  1130. package/node_modules/playwright-core/package.json +34 -0
  1131. package/node_modules/playwright-core/types/protocol.d.ts +24645 -0
  1132. package/node_modules/playwright-core/types/structs.d.ts +52 -0
  1133. package/node_modules/playwright-core/types/types.d.ts +26632 -0
  1134. package/node_modules/require-from-string/index.js +34 -0
  1135. package/node_modules/require-from-string/license +21 -0
  1136. package/node_modules/require-from-string/package.json +28 -0
  1137. package/node_modules/require-from-string/readme.md +56 -0
  1138. package/node_modules/sax/LICENSE.md +55 -0
  1139. package/node_modules/sax/README.md +227 -0
  1140. package/node_modules/sax/lib/sax.js +1866 -0
  1141. package/node_modules/sax/package.json +34 -0
  1142. package/node_modules/stubborn-fs/dist/constants.d.ts +11 -0
  1143. package/node_modules/stubborn-fs/dist/constants.js +16 -0
  1144. package/node_modules/stubborn-fs/dist/handlers.d.ts +7 -0
  1145. package/node_modules/stubborn-fs/dist/handlers.js +36 -0
  1146. package/node_modules/stubborn-fs/dist/index.d.ts +274 -0
  1147. package/node_modules/stubborn-fs/dist/index.js +52 -0
  1148. package/node_modules/stubborn-fs/license +21 -0
  1149. package/node_modules/stubborn-fs/package.json +32 -0
  1150. package/node_modules/stubborn-fs/readme.md +69 -0
  1151. package/node_modules/stubborn-utils/dist/attemptify_async.d.ts +3 -0
  1152. package/node_modules/stubborn-utils/dist/attemptify_async.js +10 -0
  1153. package/node_modules/stubborn-utils/dist/attemptify_sync.d.ts +3 -0
  1154. package/node_modules/stubborn-utils/dist/attemptify_sync.js +15 -0
  1155. package/node_modules/stubborn-utils/dist/constants.d.ts +2 -0
  1156. package/node_modules/stubborn-utils/dist/constants.js +4 -0
  1157. package/node_modules/stubborn-utils/dist/index.d.ts +9 -0
  1158. package/node_modules/stubborn-utils/dist/index.js +7 -0
  1159. package/node_modules/stubborn-utils/dist/retryify_async.d.ts +3 -0
  1160. package/node_modules/stubborn-utils/dist/retryify_async.js +29 -0
  1161. package/node_modules/stubborn-utils/dist/retryify_sync.d.ts +3 -0
  1162. package/node_modules/stubborn-utils/dist/retryify_sync.js +25 -0
  1163. package/node_modules/stubborn-utils/dist/types.d.ts +44 -0
  1164. package/node_modules/stubborn-utils/dist/types.js +2 -0
  1165. package/node_modules/stubborn-utils/license +21 -0
  1166. package/node_modules/stubborn-utils/package.json +30 -0
  1167. package/node_modules/stubborn-utils/readme.md +139 -0
  1168. package/node_modules/tagged-tag/index.d.ts +3 -0
  1169. package/node_modules/tagged-tag/license +9 -0
  1170. package/node_modules/tagged-tag/package.json +36 -0
  1171. package/node_modules/tagged-tag/readme.md +5 -0
  1172. package/node_modules/tiny-typed-emitter/LICENSE +21 -0
  1173. package/node_modules/tiny-typed-emitter/README.md +85 -0
  1174. package/node_modules/tiny-typed-emitter/lib/index.d.ts +26 -0
  1175. package/node_modules/tiny-typed-emitter/lib/index.js +3 -0
  1176. package/node_modules/tiny-typed-emitter/package.json +37 -0
  1177. package/node_modules/type-fest/index.d.ts +227 -0
  1178. package/node_modules/type-fest/license-cc0 +121 -0
  1179. package/node_modules/type-fest/license-mit +9 -0
  1180. package/node_modules/type-fest/package.json +75 -0
  1181. package/node_modules/type-fest/readme.md +1085 -0
  1182. package/node_modules/type-fest/source/absolute.d.ts +52 -0
  1183. package/node_modules/type-fest/source/all-extend.d.ts +121 -0
  1184. package/node_modules/type-fest/source/all-union-fields.d.ts +91 -0
  1185. package/node_modules/type-fest/source/and-all.d.ts +76 -0
  1186. package/node_modules/type-fest/source/and.d.ts +82 -0
  1187. package/node_modules/type-fest/source/array-element.d.ts +46 -0
  1188. package/node_modules/type-fest/source/array-indices.d.ts +25 -0
  1189. package/node_modules/type-fest/source/array-length.d.ts +36 -0
  1190. package/node_modules/type-fest/source/array-reverse.d.ts +85 -0
  1191. package/node_modules/type-fest/source/array-slice.d.ts +132 -0
  1192. package/node_modules/type-fest/source/array-splice.d.ts +104 -0
  1193. package/node_modules/type-fest/source/array-tail.d.ts +70 -0
  1194. package/node_modules/type-fest/source/array-values.d.ts +24 -0
  1195. package/node_modules/type-fest/source/arrayable.d.ts +31 -0
  1196. package/node_modules/type-fest/source/async-return-type.d.ts +28 -0
  1197. package/node_modules/type-fest/source/asyncify.d.ts +25 -0
  1198. package/node_modules/type-fest/source/basic.d.ts +38 -0
  1199. package/node_modules/type-fest/source/camel-case.d.ts +125 -0
  1200. package/node_modules/type-fest/source/camel-cased-properties-deep.d.ts +106 -0
  1201. package/node_modules/type-fest/source/camel-cased-properties.d.ts +49 -0
  1202. package/node_modules/type-fest/source/characters.d.ts +67 -0
  1203. package/node_modules/type-fest/source/conditional-except.d.ts +47 -0
  1204. package/node_modules/type-fest/source/conditional-keys.d.ts +63 -0
  1205. package/node_modules/type-fest/source/conditional-pick-deep.d.ts +122 -0
  1206. package/node_modules/type-fest/source/conditional-pick.d.ts +48 -0
  1207. package/node_modules/type-fest/source/conditional-simplify-deep.d.ts +73 -0
  1208. package/node_modules/type-fest/source/conditional-simplify.d.ts +50 -0
  1209. package/node_modules/type-fest/source/delimiter-case.d.ts +79 -0
  1210. package/node_modules/type-fest/source/delimiter-cased-properties-deep.d.ts +115 -0
  1211. package/node_modules/type-fest/source/delimiter-cased-properties.d.ts +52 -0
  1212. package/node_modules/type-fest/source/distributed-omit.d.ts +96 -0
  1213. package/node_modules/type-fest/source/distributed-pick.d.ts +92 -0
  1214. package/node_modules/type-fest/source/empty-object.d.ts +51 -0
  1215. package/node_modules/type-fest/source/entries.d.ts +64 -0
  1216. package/node_modules/type-fest/source/entry.d.ts +67 -0
  1217. package/node_modules/type-fest/source/exact.d.ts +73 -0
  1218. package/node_modules/type-fest/source/except.d.ts +112 -0
  1219. package/node_modules/type-fest/source/exclude-exactly.d.ts +57 -0
  1220. package/node_modules/type-fest/source/exclude-rest-element.d.ts +40 -0
  1221. package/node_modules/type-fest/source/exclude-strict.d.ts +51 -0
  1222. package/node_modules/type-fest/source/exclusify-union.d.ts +147 -0
  1223. package/node_modules/type-fest/source/extends-strict.d.ts +151 -0
  1224. package/node_modules/type-fest/source/extract-exactly.d.ts +56 -0
  1225. package/node_modules/type-fest/source/extract-rest-element.d.ts +30 -0
  1226. package/node_modules/type-fest/source/extract-strict.d.ts +51 -0
  1227. package/node_modules/type-fest/source/find-global-type.d.ts +68 -0
  1228. package/node_modules/type-fest/source/fixed-length-array.d.ts +97 -0
  1229. package/node_modules/type-fest/source/get.d.ts +227 -0
  1230. package/node_modules/type-fest/source/global-this.d.ts +24 -0
  1231. package/node_modules/type-fest/source/globals/index.d.ts +3 -0
  1232. package/node_modules/type-fest/source/globals/observable-like.d.ts +78 -0
  1233. package/node_modules/type-fest/source/greater-than-or-equal.d.ts +63 -0
  1234. package/node_modules/type-fest/source/greater-than.d.ts +92 -0
  1235. package/node_modules/type-fest/source/has-optional-keys.d.ts +23 -0
  1236. package/node_modules/type-fest/source/has-readonly-keys.d.ts +23 -0
  1237. package/node_modules/type-fest/source/has-required-keys.d.ts +61 -0
  1238. package/node_modules/type-fest/source/has-writable-keys.d.ts +23 -0
  1239. package/node_modules/type-fest/source/if-any.d.ts +28 -0
  1240. package/node_modules/type-fest/source/if-empty-object.d.ts +30 -0
  1241. package/node_modules/type-fest/source/if-never.d.ts +28 -0
  1242. package/node_modules/type-fest/source/if-null.d.ts +28 -0
  1243. package/node_modules/type-fest/source/if-unknown.d.ts +28 -0
  1244. package/node_modules/type-fest/source/if.d.ts +102 -0
  1245. package/node_modules/type-fest/source/includes.d.ts +24 -0
  1246. package/node_modules/type-fest/source/int-closed-range.d.ts +45 -0
  1247. package/node_modules/type-fest/source/int-range.d.ts +67 -0
  1248. package/node_modules/type-fest/source/internal/array.d.ts +144 -0
  1249. package/node_modules/type-fest/source/internal/characters.d.ts +65 -0
  1250. package/node_modules/type-fest/source/internal/enforce-optional.d.ts +49 -0
  1251. package/node_modules/type-fest/source/internal/index.d.ts +11 -0
  1252. package/node_modules/type-fest/source/internal/keys.d.ts +100 -0
  1253. package/node_modules/type-fest/source/internal/numeric.d.ts +143 -0
  1254. package/node_modules/type-fest/source/internal/object.d.ts +301 -0
  1255. package/node_modules/type-fest/source/internal/string.d.ts +127 -0
  1256. package/node_modules/type-fest/source/internal/tuple.d.ts +79 -0
  1257. package/node_modules/type-fest/source/internal/type.d.ts +171 -0
  1258. package/node_modules/type-fest/source/invariant-of.d.ts +85 -0
  1259. package/node_modules/type-fest/source/is-any.d.ts +31 -0
  1260. package/node_modules/type-fest/source/is-equal.d.ts +41 -0
  1261. package/node_modules/type-fest/source/is-float.d.ts +43 -0
  1262. package/node_modules/type-fest/source/is-integer.d.ts +60 -0
  1263. package/node_modules/type-fest/source/is-literal.d.ts +317 -0
  1264. package/node_modules/type-fest/source/is-lowercase.d.ts +38 -0
  1265. package/node_modules/type-fest/source/is-never.d.ts +56 -0
  1266. package/node_modules/type-fest/source/is-null.d.ts +22 -0
  1267. package/node_modules/type-fest/source/is-nullable.d.ts +30 -0
  1268. package/node_modules/type-fest/source/is-optional-key-of.d.ts +51 -0
  1269. package/node_modules/type-fest/source/is-optional.d.ts +28 -0
  1270. package/node_modules/type-fest/source/is-readonly-key-of.d.ts +55 -0
  1271. package/node_modules/type-fest/source/is-required-key-of.d.ts +51 -0
  1272. package/node_modules/type-fest/source/is-tuple.d.ts +92 -0
  1273. package/node_modules/type-fest/source/is-undefined.d.ts +22 -0
  1274. package/node_modules/type-fest/source/is-union.d.ts +40 -0
  1275. package/node_modules/type-fest/source/is-unknown.d.ts +43 -0
  1276. package/node_modules/type-fest/source/is-uppercase.d.ts +38 -0
  1277. package/node_modules/type-fest/source/is-writable-key-of.d.ts +51 -0
  1278. package/node_modules/type-fest/source/iterable-element.d.ts +66 -0
  1279. package/node_modules/type-fest/source/join.d.ts +79 -0
  1280. package/node_modules/type-fest/source/json-value.d.ts +33 -0
  1281. package/node_modules/type-fest/source/jsonifiable.d.ts +37 -0
  1282. package/node_modules/type-fest/source/jsonify.d.ts +127 -0
  1283. package/node_modules/type-fest/source/kebab-case.d.ts +47 -0
  1284. package/node_modules/type-fest/source/kebab-cased-properties-deep.d.ts +72 -0
  1285. package/node_modules/type-fest/source/kebab-cased-properties.d.ts +46 -0
  1286. package/node_modules/type-fest/source/key-as-string.d.ts +27 -0
  1287. package/node_modules/type-fest/source/keys-of-union.d.ts +44 -0
  1288. package/node_modules/type-fest/source/last-array-element.d.ts +89 -0
  1289. package/node_modules/type-fest/source/less-than-or-equal.d.ts +60 -0
  1290. package/node_modules/type-fest/source/less-than.d.ts +60 -0
  1291. package/node_modules/type-fest/source/literal-to-primitive-deep.d.ts +71 -0
  1292. package/node_modules/type-fest/source/literal-to-primitive.d.ts +38 -0
  1293. package/node_modules/type-fest/source/literal-union.d.ts +39 -0
  1294. package/node_modules/type-fest/source/merge-deep.d.ts +495 -0
  1295. package/node_modules/type-fest/source/merge-exclusive.d.ts +45 -0
  1296. package/node_modules/type-fest/source/merge.d.ts +87 -0
  1297. package/node_modules/type-fest/source/multidimensional-array.d.ts +38 -0
  1298. package/node_modules/type-fest/source/multidimensional-readonly-array.d.ts +38 -0
  1299. package/node_modules/type-fest/source/non-empty-object.d.ts +38 -0
  1300. package/node_modules/type-fest/source/non-empty-string.d.ts +32 -0
  1301. package/node_modules/type-fest/source/non-empty-tuple.d.ts +24 -0
  1302. package/node_modules/type-fest/source/non-nullable-deep.d.ts +102 -0
  1303. package/node_modules/type-fest/source/numeric.d.ts +226 -0
  1304. package/node_modules/type-fest/source/object-merge.d.ts +199 -0
  1305. package/node_modules/type-fest/source/omit-deep.d.ts +153 -0
  1306. package/node_modules/type-fest/source/omit-index-signature.d.ts +98 -0
  1307. package/node_modules/type-fest/source/opaque.d.ts +3 -0
  1308. package/node_modules/type-fest/source/optional-keys-of.d.ts +46 -0
  1309. package/node_modules/type-fest/source/optional.d.ts +31 -0
  1310. package/node_modules/type-fest/source/or-all.d.ts +73 -0
  1311. package/node_modules/type-fest/source/or.d.ts +82 -0
  1312. package/node_modules/type-fest/source/override-properties.d.ts +43 -0
  1313. package/node_modules/type-fest/source/package-json.d.ts +710 -0
  1314. package/node_modules/type-fest/source/partial-deep.d.ts +157 -0
  1315. package/node_modules/type-fest/source/partial-on-undefined-deep.d.ts +81 -0
  1316. package/node_modules/type-fest/source/pascal-case.d.ts +52 -0
  1317. package/node_modules/type-fest/source/pascal-cased-properties-deep.d.ts +79 -0
  1318. package/node_modules/type-fest/source/pascal-cased-properties.d.ts +46 -0
  1319. package/node_modules/type-fest/source/paths.d.ts +241 -0
  1320. package/node_modules/type-fest/source/pick-deep.d.ts +139 -0
  1321. package/node_modules/type-fest/source/pick-index-signature.d.ts +52 -0
  1322. package/node_modules/type-fest/source/primitive.d.ts +15 -0
  1323. package/node_modules/type-fest/source/promisable.d.ts +27 -0
  1324. package/node_modules/type-fest/source/readonly-deep.d.ts +118 -0
  1325. package/node_modules/type-fest/source/readonly-keys-of.d.ts +38 -0
  1326. package/node_modules/type-fest/source/readonly-tuple.d.ts +34 -0
  1327. package/node_modules/type-fest/source/remove-prefix.d.ts +114 -0
  1328. package/node_modules/type-fest/source/remove-suffix.d.ts +114 -0
  1329. package/node_modules/type-fest/source/replace.d.ts +87 -0
  1330. package/node_modules/type-fest/source/require-all-or-none.d.ts +54 -0
  1331. package/node_modules/type-fest/source/require-at-least-one.d.ts +48 -0
  1332. package/node_modules/type-fest/source/require-exactly-one.d.ts +48 -0
  1333. package/node_modules/type-fest/source/require-one-or-none.d.ts +49 -0
  1334. package/node_modules/type-fest/source/required-deep.d.ts +78 -0
  1335. package/node_modules/type-fest/source/required-keys-of.d.ts +38 -0
  1336. package/node_modules/type-fest/source/schema.d.ts +127 -0
  1337. package/node_modules/type-fest/source/screaming-snake-case.d.ts +31 -0
  1338. package/node_modules/type-fest/source/set-field-type.d.ts +67 -0
  1339. package/node_modules/type-fest/source/set-non-nullable-deep.d.ts +89 -0
  1340. package/node_modules/type-fest/source/set-non-nullable.d.ts +34 -0
  1341. package/node_modules/type-fest/source/set-optional.d.ts +42 -0
  1342. package/node_modules/type-fest/source/set-parameter-type.d.ts +125 -0
  1343. package/node_modules/type-fest/source/set-readonly.d.ts +40 -0
  1344. package/node_modules/type-fest/source/set-required-deep.d.ts +65 -0
  1345. package/node_modules/type-fest/source/set-required.d.ts +75 -0
  1346. package/node_modules/type-fest/source/set-return-type.d.ts +31 -0
  1347. package/node_modules/type-fest/source/shared-union-fields-deep.d.ts +180 -0
  1348. package/node_modules/type-fest/source/shared-union-fields.d.ts +79 -0
  1349. package/node_modules/type-fest/source/simplify-deep.d.ts +117 -0
  1350. package/node_modules/type-fest/source/simplify.d.ts +61 -0
  1351. package/node_modules/type-fest/source/single-key-object.d.ts +28 -0
  1352. package/node_modules/type-fest/source/snake-case.d.ts +48 -0
  1353. package/node_modules/type-fest/source/snake-cased-properties-deep.d.ts +72 -0
  1354. package/node_modules/type-fest/source/snake-cased-properties.d.ts +46 -0
  1355. package/node_modules/type-fest/source/some-extend.d.ts +115 -0
  1356. package/node_modules/type-fest/source/split-on-rest-element.d.ts +108 -0
  1357. package/node_modules/type-fest/source/split.d.ts +90 -0
  1358. package/node_modules/type-fest/source/spread.d.ts +78 -0
  1359. package/node_modules/type-fest/source/string-length.d.ts +38 -0
  1360. package/node_modules/type-fest/source/string-repeat.d.ts +76 -0
  1361. package/node_modules/type-fest/source/string-slice.d.ts +39 -0
  1362. package/node_modules/type-fest/source/string-to-array.d.ts +97 -0
  1363. package/node_modules/type-fest/source/string-to-number.d.ts +67 -0
  1364. package/node_modules/type-fest/source/stringified.d.ts +25 -0
  1365. package/node_modules/type-fest/source/structured-cloneable.d.ts +89 -0
  1366. package/node_modules/type-fest/source/subtract.d.ts +87 -0
  1367. package/node_modules/type-fest/source/sum.d.ts +82 -0
  1368. package/node_modules/type-fest/source/tagged-union.d.ts +53 -0
  1369. package/node_modules/type-fest/source/tagged.d.ts +261 -0
  1370. package/node_modules/type-fest/source/trim.d.ts +29 -0
  1371. package/node_modules/type-fest/source/tsconfig-json.d.ts +1356 -0
  1372. package/node_modules/type-fest/source/tuple-of.d.ts +114 -0
  1373. package/node_modules/type-fest/source/tuple-to-object.d.ts +47 -0
  1374. package/node_modules/type-fest/source/tuple-to-union.d.ts +54 -0
  1375. package/node_modules/type-fest/source/typed-array.d.ts +19 -0
  1376. package/node_modules/type-fest/source/undefined-on-partial-deep.d.ts +83 -0
  1377. package/node_modules/type-fest/source/union-length.d.ts +27 -0
  1378. package/node_modules/type-fest/source/union-member.d.ts +65 -0
  1379. package/node_modules/type-fest/source/union-to-intersection.d.ts +35 -0
  1380. package/node_modules/type-fest/source/union-to-tuple.d.ts +49 -0
  1381. package/node_modules/type-fest/source/unknown-array.d.ts +27 -0
  1382. package/node_modules/type-fest/source/unknown-map.d.ts +26 -0
  1383. package/node_modules/type-fest/source/unknown-record.d.ts +33 -0
  1384. package/node_modules/type-fest/source/unknown-set.d.ts +26 -0
  1385. package/node_modules/type-fest/source/unwrap-partial.d.ts +33 -0
  1386. package/node_modules/type-fest/source/unwrap-required.d.ts +37 -0
  1387. package/node_modules/type-fest/source/value-of.d.ts +24 -0
  1388. package/node_modules/type-fest/source/words.d.ts +148 -0
  1389. package/node_modules/type-fest/source/writable-deep.d.ts +84 -0
  1390. package/node_modules/type-fest/source/writable-keys-of.d.ts +34 -0
  1391. package/node_modules/type-fest/source/writable.d.ts +68 -0
  1392. package/node_modules/type-fest/source/xor.d.ts +83 -0
  1393. package/node_modules/uint8array-extras/index.d.ts +331 -0
  1394. package/node_modules/uint8array-extras/index.js +318 -0
  1395. package/node_modules/uint8array-extras/license +9 -0
  1396. package/node_modules/uint8array-extras/package.json +54 -0
  1397. package/node_modules/uint8array-extras/readme.md +318 -0
  1398. package/node_modules/universalify/LICENSE +20 -0
  1399. package/node_modules/universalify/README.md +76 -0
  1400. package/node_modules/universalify/index.js +24 -0
  1401. package/node_modules/universalify/package.json +34 -0
  1402. package/node_modules/when-exit/dist/browser/index.d.ts +2 -0
  1403. package/node_modules/when-exit/dist/browser/index.js +6 -0
  1404. package/node_modules/when-exit/dist/browser/interceptor.d.ts +10 -0
  1405. package/node_modules/when-exit/dist/browser/interceptor.js +27 -0
  1406. package/node_modules/when-exit/dist/node/constants.d.ts +3 -0
  1407. package/node_modules/when-exit/dist/node/constants.js +7 -0
  1408. package/node_modules/when-exit/dist/node/index.d.ts +2 -0
  1409. package/node_modules/when-exit/dist/node/index.js +6 -0
  1410. package/node_modules/when-exit/dist/node/interceptor.d.ts +11 -0
  1411. package/node_modules/when-exit/dist/node/interceptor.js +50 -0
  1412. package/node_modules/when-exit/dist/node/signals.d.ts +2 -0
  1413. package/node_modules/when-exit/dist/node/signals.js +13 -0
  1414. package/node_modules/when-exit/dist/types.d.ts +3 -0
  1415. package/node_modules/when-exit/dist/types.js +2 -0
  1416. package/node_modules/when-exit/license +21 -0
  1417. package/node_modules/when-exit/package.json +35 -0
  1418. package/node_modules/when-exit/readme.md +41 -0
  1419. package/package.json +27 -12
@@ -0,0 +1,268 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DifferentialDownloader = void 0;
4
+ const builder_util_runtime_1 = require("builder-util-runtime");
5
+ const fs_extra_1 = require("fs-extra");
6
+ const fs_1 = require("fs");
7
+ const DataSplitter_1 = require("./DataSplitter");
8
+ const url_1 = require("url");
9
+ const downloadPlanBuilder_1 = require("./downloadPlanBuilder");
10
+ const multipleRangeDownloader_1 = require("./multipleRangeDownloader");
11
+ const ProgressDifferentialDownloadCallbackTransform_1 = require("./ProgressDifferentialDownloadCallbackTransform");
12
+ class DifferentialDownloader {
13
+ // noinspection TypeScriptAbstractClassConstructorCanBeMadeProtected
14
+ constructor(blockAwareFileInfo, httpExecutor, options) {
15
+ this.blockAwareFileInfo = blockAwareFileInfo;
16
+ this.httpExecutor = httpExecutor;
17
+ this.options = options;
18
+ this.fileMetadataBuffer = null;
19
+ this.logger = options.logger;
20
+ }
21
+ createRequestOptions() {
22
+ const result = {
23
+ headers: {
24
+ ...this.options.requestHeaders,
25
+ accept: "*/*",
26
+ },
27
+ };
28
+ (0, builder_util_runtime_1.configureRequestUrl)(this.options.newUrl, result);
29
+ // user-agent, cache-control and other common options
30
+ (0, builder_util_runtime_1.configureRequestOptions)(result);
31
+ return result;
32
+ }
33
+ doDownload(oldBlockMap, newBlockMap) {
34
+ // we don't check other metadata like compressionMethod - generic check that it is make sense to differentially update is suitable for it
35
+ if (oldBlockMap.version !== newBlockMap.version) {
36
+ throw new Error(`version is different (${oldBlockMap.version} - ${newBlockMap.version}), full download is required`);
37
+ }
38
+ const logger = this.logger;
39
+ const operations = (0, downloadPlanBuilder_1.computeOperations)(oldBlockMap, newBlockMap, logger);
40
+ if (logger.debug != null) {
41
+ logger.debug(JSON.stringify(operations, null, 2));
42
+ }
43
+ let downloadSize = 0;
44
+ let copySize = 0;
45
+ for (const operation of operations) {
46
+ const length = operation.end - operation.start;
47
+ if (operation.kind === downloadPlanBuilder_1.OperationKind.DOWNLOAD) {
48
+ downloadSize += length;
49
+ }
50
+ else {
51
+ copySize += length;
52
+ }
53
+ }
54
+ const newSize = this.blockAwareFileInfo.size;
55
+ if (downloadSize + copySize + (this.fileMetadataBuffer == null ? 0 : this.fileMetadataBuffer.length) !== newSize) {
56
+ throw new Error(`Internal error, size mismatch: downloadSize: ${downloadSize}, copySize: ${copySize}, newSize: ${newSize}`);
57
+ }
58
+ logger.info(`Full: ${formatBytes(newSize)}, To download: ${formatBytes(downloadSize)} (${Math.round(downloadSize / (newSize / 100))}%)`);
59
+ return this.downloadFile(operations);
60
+ }
61
+ downloadFile(tasks) {
62
+ const fdList = [];
63
+ const closeFiles = () => {
64
+ return Promise.all(fdList.map(openedFile => {
65
+ return (0, fs_extra_1.close)(openedFile.descriptor).catch((e) => {
66
+ this.logger.error(`cannot close file "${openedFile.path}": ${e}`);
67
+ });
68
+ }));
69
+ };
70
+ return this.doDownloadFile(tasks, fdList)
71
+ .then(closeFiles)
72
+ .catch((e) => {
73
+ // then must be after catch here (since then always throws error)
74
+ return closeFiles()
75
+ .catch(closeFilesError => {
76
+ // closeFiles never throw error, but just to be sure
77
+ try {
78
+ this.logger.error(`cannot close files: ${closeFilesError}`);
79
+ }
80
+ catch (errorOnLog) {
81
+ try {
82
+ console.error(errorOnLog);
83
+ }
84
+ catch (_ignored) {
85
+ // ok, give up and ignore error
86
+ }
87
+ }
88
+ throw e;
89
+ })
90
+ .then(() => {
91
+ throw e;
92
+ });
93
+ });
94
+ }
95
+ async doDownloadFile(tasks, fdList) {
96
+ const oldFileFd = await (0, fs_extra_1.open)(this.options.oldFile, "r");
97
+ fdList.push({ descriptor: oldFileFd, path: this.options.oldFile });
98
+ const newFileFd = await (0, fs_extra_1.open)(this.options.newFile, "w");
99
+ fdList.push({ descriptor: newFileFd, path: this.options.newFile });
100
+ const fileOut = (0, fs_1.createWriteStream)(this.options.newFile, { fd: newFileFd });
101
+ await new Promise((resolve, reject) => {
102
+ const streams = [];
103
+ // Create our download info transformer if we have one
104
+ let downloadInfoTransform = undefined;
105
+ if (!this.options.isUseMultipleRangeRequest && this.options.onProgress) {
106
+ const expectedByteCounts = [];
107
+ let grandTotalBytes = 0;
108
+ for (const task of tasks) {
109
+ if (task.kind === downloadPlanBuilder_1.OperationKind.DOWNLOAD) {
110
+ expectedByteCounts.push(task.end - task.start);
111
+ grandTotalBytes += task.end - task.start;
112
+ }
113
+ }
114
+ const progressDifferentialDownloadInfo = {
115
+ expectedByteCounts: expectedByteCounts,
116
+ grandTotal: grandTotalBytes,
117
+ };
118
+ downloadInfoTransform = new ProgressDifferentialDownloadCallbackTransform_1.ProgressDifferentialDownloadCallbackTransform(progressDifferentialDownloadInfo, this.options.cancellationToken, this.options.onProgress);
119
+ streams.push(downloadInfoTransform);
120
+ }
121
+ const digestTransform = new builder_util_runtime_1.DigestTransform(this.blockAwareFileInfo.sha512);
122
+ // to simply debug, do manual validation to allow file to be fully written
123
+ digestTransform.isValidateOnEnd = false;
124
+ streams.push(digestTransform);
125
+ // noinspection JSArrowFunctionCanBeReplacedWithShorthand
126
+ fileOut.on("finish", () => {
127
+ ;
128
+ fileOut.close(() => {
129
+ // remove from fd list because closed successfully
130
+ fdList.splice(1, 1);
131
+ try {
132
+ digestTransform.validate();
133
+ }
134
+ catch (e) {
135
+ reject(e);
136
+ return;
137
+ }
138
+ resolve(undefined);
139
+ });
140
+ });
141
+ streams.push(fileOut);
142
+ let lastStream = null;
143
+ for (const stream of streams) {
144
+ stream.on("error", reject);
145
+ if (lastStream == null) {
146
+ lastStream = stream;
147
+ }
148
+ else {
149
+ lastStream = lastStream.pipe(stream);
150
+ }
151
+ }
152
+ const firstStream = streams[0];
153
+ let w;
154
+ if (this.options.isUseMultipleRangeRequest) {
155
+ w = (0, multipleRangeDownloader_1.executeTasksUsingMultipleRangeRequests)(this, tasks, firstStream, oldFileFd, reject);
156
+ w(0);
157
+ return;
158
+ }
159
+ let downloadOperationCount = 0;
160
+ let actualUrl = null;
161
+ this.logger.info(`Differential download: ${this.options.newUrl}`);
162
+ const requestOptions = this.createRequestOptions();
163
+ requestOptions.redirect = "manual";
164
+ w = (index) => {
165
+ var _a, _b;
166
+ if (index >= tasks.length) {
167
+ if (this.fileMetadataBuffer != null) {
168
+ firstStream.write(this.fileMetadataBuffer);
169
+ }
170
+ firstStream.end();
171
+ return;
172
+ }
173
+ const operation = tasks[index++];
174
+ if (operation.kind === downloadPlanBuilder_1.OperationKind.COPY) {
175
+ // We are copying, let's not send status updates to the UI
176
+ if (downloadInfoTransform) {
177
+ downloadInfoTransform.beginFileCopy();
178
+ }
179
+ (0, DataSplitter_1.copyData)(operation, firstStream, oldFileFd, reject, () => w(index));
180
+ return;
181
+ }
182
+ const range = `bytes=${operation.start}-${operation.end - 1}`;
183
+ requestOptions.headers.range = range;
184
+ (_b = (_a = this.logger) === null || _a === void 0 ? void 0 : _a.debug) === null || _b === void 0 ? void 0 : _b.call(_a, `download range: ${range}`);
185
+ // We are starting to download
186
+ if (downloadInfoTransform) {
187
+ downloadInfoTransform.beginRangeDownload();
188
+ }
189
+ const request = this.httpExecutor.createRequest(requestOptions, response => {
190
+ response.on("error", reject);
191
+ response.on("aborted", () => {
192
+ reject(new Error("response has been aborted by the server"));
193
+ });
194
+ // Electron net handles redirects automatically, our NodeJS test server doesn't use redirects - so, we don't check 3xx codes.
195
+ if (response.statusCode >= 400) {
196
+ reject((0, builder_util_runtime_1.createHttpError)(response));
197
+ }
198
+ response.pipe(firstStream, {
199
+ end: false,
200
+ });
201
+ response.once("end", () => {
202
+ // Pass on that we are downloading a segment
203
+ if (downloadInfoTransform) {
204
+ downloadInfoTransform.endRangeDownload();
205
+ }
206
+ if (++downloadOperationCount === 100) {
207
+ downloadOperationCount = 0;
208
+ setTimeout(() => w(index), 1000);
209
+ }
210
+ else {
211
+ w(index);
212
+ }
213
+ });
214
+ });
215
+ request.on("redirect", (statusCode, method, redirectUrl) => {
216
+ this.logger.info(`Redirect to ${removeQuery(redirectUrl)}`);
217
+ actualUrl = redirectUrl;
218
+ (0, builder_util_runtime_1.configureRequestUrl)(new url_1.URL(actualUrl), requestOptions);
219
+ request.followRedirect();
220
+ });
221
+ this.httpExecutor.addErrorAndTimeoutHandlers(request, reject);
222
+ request.end();
223
+ };
224
+ w(0);
225
+ });
226
+ }
227
+ async readRemoteBytes(start, endInclusive) {
228
+ const buffer = Buffer.allocUnsafe(endInclusive + 1 - start);
229
+ const requestOptions = this.createRequestOptions();
230
+ requestOptions.headers.range = `bytes=${start}-${endInclusive}`;
231
+ let position = 0;
232
+ await this.request(requestOptions, chunk => {
233
+ chunk.copy(buffer, position);
234
+ position += chunk.length;
235
+ });
236
+ if (position !== buffer.length) {
237
+ throw new Error(`Received data length ${position} is not equal to expected ${buffer.length}`);
238
+ }
239
+ return buffer;
240
+ }
241
+ request(requestOptions, dataHandler) {
242
+ return new Promise((resolve, reject) => {
243
+ const request = this.httpExecutor.createRequest(requestOptions, response => {
244
+ if (!(0, multipleRangeDownloader_1.checkIsRangesSupported)(response, reject)) {
245
+ return;
246
+ }
247
+ response.on("error", reject);
248
+ response.on("aborted", () => {
249
+ reject(new Error("response has been aborted by the server"));
250
+ });
251
+ response.on("data", dataHandler);
252
+ response.on("end", () => resolve());
253
+ });
254
+ this.httpExecutor.addErrorAndTimeoutHandlers(request, reject);
255
+ request.end();
256
+ });
257
+ }
258
+ }
259
+ exports.DifferentialDownloader = DifferentialDownloader;
260
+ function formatBytes(value, symbol = " KB") {
261
+ return new Intl.NumberFormat("en").format((value / 1024).toFixed(2)) + symbol;
262
+ }
263
+ // safety
264
+ function removeQuery(url) {
265
+ const index = url.indexOf("?");
266
+ return index < 0 ? url : url.substring(0, index);
267
+ }
268
+ //# sourceMappingURL=DifferentialDownloader.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DifferentialDownloader.js","sourceRoot":"","sources":["../../src/differentialDownloader/DifferentialDownloader.ts"],"names":[],"mappings":";;;AAAA,+DAAuJ;AAEvJ,uCAAsC;AACtC,2BAAsC;AAItC,iDAAyC;AACzC,6BAAyB;A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MapDataHolder, createHttpError, DigestTransform, HttpExecutor, configureRequestUrl, configureRequestOptions } from \"builder-util-runtime\"\nimport { BlockMap } from \"builder-util-runtime/out/blockMapApi\"\nimport { close, open } from \"fs-extra\"\nimport { createWriteStream } from \"fs\"\nimport { OutgoingHttpHeaders, RequestOptions } from \"http\"\nimport { ProgressInfo, CancellationToken } from \"builder-util-runtime\"\nimport { Logger } from \"../types\"\nimport { copyData } from \"./DataSplitter\"\nimport { URL } from \"url\"\nimport { computeOperations, Operation, OperationKind } from \"./downloadPlanBuilder\"\nimport { checkIsRangesSupported, executeTasksUsingMultipleRangeRequests } from \"./multipleRangeDownloader\"\nimport { ProgressDifferentialDownloadCallbackTransform, ProgressDifferentialDownloadInfo } from \"./ProgressDifferentialDownloadCallbackTransform\"\n\nexport interface DifferentialDownloaderOptions {\n readonly oldFile: string\n readonly newUrl: URL\n readonly logger: Logger\n readonly newFile: string\n\n readonly requestHeaders: OutgoingHttpHeaders | null\n\n readonly isUseMultipleRangeRequest?: boolean\n\n readonly cancellationToken: CancellationToken\n onProgress?: (progress: ProgressInfo) => void\n}\n\nexport abstract class DifferentialDownloader {\n fileMetadataBuffer: Buffer | null = null\n\n private readonly logger: Logger\n\n // noinspection TypeScriptAbstractClassConstructorCanBeMadeProtected\n constructor(\n protected readonly blockAwareFileInfo: BlockMapDataHolder,\n readonly httpExecutor: HttpExecutor<any>,\n readonly options: DifferentialDownloaderOptions\n ) {\n this.logger = options.logger\n }\n\n createRequestOptions(): RequestOptions {\n const result = {\n headers: {\n ...this.options.requestHeaders,\n accept: \"*/*\",\n },\n }\n configureRequestUrl(this.options.newUrl, result)\n // user-agent, cache-control and other common options\n configureRequestOptions(result)\n return result\n }\n\n protected doDownload(oldBlockMap: BlockMap, newBlockMap: BlockMap): Promise<any> {\n // we don't check other metadata like compressionMethod - generic check that it is make sense to differentially update is suitable for it\n if (oldBlockMap.version !== newBlockMap.version) {\n throw new Error(`version is different (${oldBlockMap.version} - ${newBlockMap.version}), full download is required`)\n }\n\n const logger = this.logger\n const operations = computeOperations(oldBlockMap, newBlockMap, logger)\n if (logger.debug != null) {\n logger.debug(JSON.stringify(operations, null, 2))\n }\n\n let downloadSize = 0\n let copySize = 0\n for (const operation of operations) {\n const length = operation.end - operation.start\n if (operation.kind === OperationKind.DOWNLOAD) {\n downloadSize += length\n } else {\n copySize += length\n }\n }\n\n const newSize = this.blockAwareFileInfo.size\n if (downloadSize + copySize + (this.fileMetadataBuffer == null ? 0 : this.fileMetadataBuffer.length) !== newSize) {\n throw new Error(`Internal error, size mismatch: downloadSize: ${downloadSize}, copySize: ${copySize}, newSize: ${newSize}`)\n }\n\n logger.info(`Full: ${formatBytes(newSize)}, To download: ${formatBytes(downloadSize)} (${Math.round(downloadSize / (newSize / 100))}%)`)\n\n return this.downloadFile(operations)\n }\n\n private downloadFile(tasks: Array<Operation>): Promise<any> {\n const fdList: Array<OpenedFile> = []\n const closeFiles = (): Promise<Array<void>> => {\n return Promise.all(\n fdList.map(openedFile => {\n return close(openedFile.descriptor).catch((e: any) => {\n this.logger.error(`cannot close file \"${openedFile.path}\": ${e}`)\n })\n })\n )\n }\n return this.doDownloadFile(tasks, fdList)\n .then(closeFiles)\n .catch((e: any) => {\n // then must be after catch here (since then always throws error)\n return closeFiles()\n .catch(closeFilesError => {\n // closeFiles never throw error, but just to be sure\n try {\n this.logger.error(`cannot close files: ${closeFilesError}`)\n } catch (errorOnLog) {\n try {\n console.error(errorOnLog)\n } catch (_ignored) {\n // ok, give up and ignore error\n }\n }\n throw e\n })\n .then(() => {\n throw e\n })\n })\n }\n\n private async doDownloadFile(tasks: Array<Operation>, fdList: Array<OpenedFile>): Promise<any> {\n const oldFileFd = await open(this.options.oldFile, \"r\")\n fdList.push({ descriptor: oldFileFd, path: this.options.oldFile })\n const newFileFd = await open(this.options.newFile, \"w\")\n fdList.push({ descriptor: newFileFd, path: this.options.newFile })\n const fileOut = createWriteStream(this.options.newFile, { fd: newFileFd })\n await new Promise((resolve, reject) => {\n const streams: Array<any> = []\n\n // Create our download info transformer if we have one\n let downloadInfoTransform: ProgressDifferentialDownloadCallbackTransform | undefined = undefined\n if (!this.options.isUseMultipleRangeRequest && this.options.onProgress) {\n const expectedByteCounts: Array<number> = []\n let grandTotalBytes = 0\n\n for (const task of tasks) {\n if (task.kind === OperationKind.DOWNLOAD) {\n expectedByteCounts.push(task.end - task.start)\n grandTotalBytes += task.end - task.start\n }\n }\n\n const progressDifferentialDownloadInfo: ProgressDifferentialDownloadInfo = {\n expectedByteCounts: expectedByteCounts,\n grandTotal: grandTotalBytes,\n }\n\n downloadInfoTransform = new ProgressDifferentialDownloadCallbackTransform(progressDifferentialDownloadInfo, this.options.cancellationToken, this.options.onProgress)\n streams.push(downloadInfoTransform)\n }\n\n const digestTransform = new DigestTransform(this.blockAwareFileInfo.sha512)\n // to simply debug, do manual validation to allow file to be fully written\n digestTransform.isValidateOnEnd = false\n streams.push(digestTransform)\n\n // noinspection JSArrowFunctionCanBeReplacedWithShorthand\n fileOut.on(\"finish\", () => {\n ;(fileOut.close as any)(() => {\n // remove from fd list because closed successfully\n fdList.splice(1, 1)\n try {\n digestTransform.validate()\n } catch (e: any) {\n reject(e)\n return\n }\n\n resolve(undefined)\n })\n })\n\n streams.push(fileOut)\n\n let lastStream = null\n for (const stream of streams) {\n stream.on(\"error\", reject)\n if (lastStream == null) {\n lastStream = stream\n } else {\n lastStream = lastStream.pipe(stream)\n }\n }\n\n const firstStream = streams[0]\n\n let w: any\n if (this.options.isUseMultipleRangeRequest) {\n w = executeTasksUsingMultipleRangeRequests(this, tasks, firstStream, oldFileFd, reject)\n w(0)\n return\n }\n\n let downloadOperationCount = 0\n let actualUrl: string | null = null\n this.logger.info(`Differential download: ${this.options.newUrl}`)\n\n const requestOptions = this.createRequestOptions()\n ;(requestOptions as any).redirect = \"manual\"\n\n w = (index: number): void => {\n if (index >= tasks.length) {\n if (this.fileMetadataBuffer != null) {\n firstStream.write(this.fileMetadataBuffer)\n }\n firstStream.end()\n return\n }\n\n const operation = tasks[index++]\n if (operation.kind === OperationKind.COPY) {\n // We are copying, let's not send status updates to the UI\n if (downloadInfoTransform) {\n downloadInfoTransform.beginFileCopy()\n }\n\n copyData(operation, firstStream, oldFileFd, reject, () => w(index))\n return\n }\n\n const range = `bytes=${operation.start}-${operation.end - 1}`\n requestOptions.headers!.range = range\n\n this.logger?.debug?.(`download range: ${range}`)\n\n // We are starting to download\n if (downloadInfoTransform) {\n downloadInfoTransform.beginRangeDownload()\n }\n\n const request = this.httpExecutor.createRequest(requestOptions, response => {\n response.on(\"error\", reject)\n response.on(\"aborted\", () => {\n reject(new Error(\"response has been aborted by the server\"))\n })\n // Electron net handles redirects automatically, our NodeJS test server doesn't use redirects - so, we don't check 3xx codes.\n if (response.statusCode >= 400) {\n reject(createHttpError(response))\n }\n\n response.pipe(firstStream, {\n end: false,\n })\n response.once(\"end\", () => {\n // Pass on that we are downloading a segment\n if (downloadInfoTransform) {\n downloadInfoTransform.endRangeDownload()\n }\n\n if (++downloadOperationCount === 100) {\n downloadOperationCount = 0\n setTimeout(() => w(index), 1000)\n } else {\n w(index)\n }\n })\n })\n request.on(\"redirect\", (statusCode: number, method: string, redirectUrl: string) => {\n this.logger.info(`Redirect to ${removeQuery(redirectUrl)}`)\n actualUrl = redirectUrl\n configureRequestUrl(new URL(actualUrl), requestOptions)\n request.followRedirect()\n })\n this.httpExecutor.addErrorAndTimeoutHandlers(request, reject)\n request.end()\n }\n\n w(0)\n })\n }\n\n protected async readRemoteBytes(start: number, endInclusive: number): Promise<Buffer> {\n const buffer = Buffer.allocUnsafe(endInclusive + 1 - start)\n const requestOptions = this.createRequestOptions()\n requestOptions.headers!.range = `bytes=${start}-${endInclusive}`\n let position = 0\n await this.request(requestOptions, chunk => {\n chunk.copy(buffer, position)\n position += chunk.length\n })\n\n if (position !== buffer.length) {\n throw new Error(`Received data length ${position} is not equal to expected ${buffer.length}`)\n }\n return buffer\n }\n\n private request(requestOptions: RequestOptions, dataHandler: (chunk: Buffer) => void): Promise<void> {\n return new Promise((resolve, reject) => {\n const request = this.httpExecutor.createRequest(requestOptions, response => {\n if (!checkIsRangesSupported(response, reject)) {\n return\n }\n\n response.on(\"error\", reject)\n response.on(\"aborted\", () => {\n reject(new Error(\"response has been aborted by the server\"))\n })\n\n response.on(\"data\", dataHandler)\n response.on(\"end\", () => resolve())\n })\n this.httpExecutor.addErrorAndTimeoutHandlers(request, reject)\n request.end()\n })\n }\n}\n\nfunction formatBytes(value: number, symbol = \" KB\"): string {\n return new Intl.NumberFormat(\"en\").format((value / 1024).toFixed(2) as any) + symbol\n}\n\n// safety\nfunction removeQuery(url: string): string {\n const index = url.indexOf(\"?\")\n return index < 0 ? url : url.substring(0, index)\n}\n\ninterface OpenedFile {\n readonly descriptor: number\n readonly path: string\n}\n"]}
@@ -0,0 +1,4 @@
1
+ import { DifferentialDownloader } from "./DifferentialDownloader";
2
+ export declare class FileWithEmbeddedBlockMapDifferentialDownloader extends DifferentialDownloader {
3
+ download(): Promise<void>;
4
+ }
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FileWithEmbeddedBlockMapDifferentialDownloader = void 0;
4
+ const fs_extra_1 = require("fs-extra");
5
+ const DifferentialDownloader_1 = require("./DifferentialDownloader");
6
+ const zlib_1 = require("zlib");
7
+ class FileWithEmbeddedBlockMapDifferentialDownloader extends DifferentialDownloader_1.DifferentialDownloader {
8
+ async download() {
9
+ const packageInfo = this.blockAwareFileInfo;
10
+ const fileSize = packageInfo.size;
11
+ const offset = fileSize - (packageInfo.blockMapSize + 4);
12
+ this.fileMetadataBuffer = await this.readRemoteBytes(offset, fileSize - 1);
13
+ const newBlockMap = readBlockMap(this.fileMetadataBuffer.slice(0, this.fileMetadataBuffer.length - 4));
14
+ await this.doDownload(await readEmbeddedBlockMapData(this.options.oldFile), newBlockMap);
15
+ }
16
+ }
17
+ exports.FileWithEmbeddedBlockMapDifferentialDownloader = FileWithEmbeddedBlockMapDifferentialDownloader;
18
+ function readBlockMap(data) {
19
+ return JSON.parse((0, zlib_1.inflateRawSync)(data).toString());
20
+ }
21
+ async function readEmbeddedBlockMapData(file) {
22
+ const fd = await (0, fs_extra_1.open)(file, "r");
23
+ try {
24
+ const fileSize = (await (0, fs_extra_1.fstat)(fd)).size;
25
+ const sizeBuffer = Buffer.allocUnsafe(4);
26
+ await (0, fs_extra_1.read)(fd, sizeBuffer, 0, sizeBuffer.length, fileSize - sizeBuffer.length);
27
+ const dataBuffer = Buffer.allocUnsafe(sizeBuffer.readUInt32BE(0));
28
+ await (0, fs_extra_1.read)(fd, dataBuffer, 0, dataBuffer.length, fileSize - sizeBuffer.length - dataBuffer.length);
29
+ await (0, fs_extra_1.close)(fd);
30
+ return readBlockMap(dataBuffer);
31
+ }
32
+ catch (e) {
33
+ await (0, fs_extra_1.close)(fd);
34
+ throw e;
35
+ }
36
+ }
37
+ //# sourceMappingURL=FileWithEmbeddedBlockMapDifferentialDownloader.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FileWithEmbeddedBlockMapDifferentialDownloader.js","sourceRoot":"","sources":["../../src/differentialDownloader/FileWithEmbeddedBlockMapDifferentialDownloader.ts"],"names":[],"mappings":";;;AACA,uCAAmD;AACnD,qEAAiE;AACjE,+BAAqC;AAErC,MAAa,8CAA+C,SAAQ,+CAAsB;IACxF,KAAK,CAAC,QAAQ;QACZ,MAAM,WAAW,GAAG,IAAI,CAAC,kBAAkB,CAAA;QAC3C,MAAM,QAAQ,GAAG,WAAW,CAAC,IAAK,CAAA;QAClC,MAAM,MAAM,GAAG,QAAQ,GAAG,CAAC,WAAW,CAAC,YAAa,GAAG,CAAC,CAAC,CAAA;QACzD,IAAI,CAAC,kBAAkB,GAAG,MAAM,IAAI,CAAC,eAAe,CAAC,MAAM,EAAE,QAAQ,GAAG,CAAC,CAAC,CAAA;QAC1E,MAAM,WAAW,GAAG,YAAY,CAAC,IAAI,CAAC,kBAAkB,CAAC,K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;QACf,MAAM,CAAC,CAAA;IACT,CAAC;AACH,CAAC","sourcesContent":["import { BlockMap } from \"builder-util-runtime/out/blockMapApi\"\nimport { close, fstat, open, read } from \"fs-extra\"\nimport { DifferentialDownloader } from \"./DifferentialDownloader\"\nimport { inflateRawSync } from \"zlib\"\n\nexport class FileWithEmbeddedBlockMapDifferentialDownloader extends DifferentialDownloader {\n async download(): Promise<void> {\n const packageInfo = this.blockAwareFileInfo\n const fileSize = packageInfo.size!\n const offset = fileSize - (packageInfo.blockMapSize! + 4)\n this.fileMetadataBuffer = await this.readRemoteBytes(offset, fileSize - 1)\n const newBlockMap = readBlockMap(this.fileMetadataBuffer.slice(0, this.fileMetadataBuffer.length - 4))\n await this.doDownload(await readEmbeddedBlockMapData(this.options.oldFile), newBlockMap)\n }\n}\n\nfunction readBlockMap(data: Buffer): BlockMap {\n return JSON.parse(inflateRawSync(data).toString())\n}\n\nasync function readEmbeddedBlockMapData(file: string): Promise<BlockMap> {\n const fd = await open(file, \"r\")\n try {\n const fileSize = (await fstat(fd)).size\n const sizeBuffer = Buffer.allocUnsafe(4)\n await read(fd, sizeBuffer, 0, sizeBuffer.length, fileSize - sizeBuffer.length)\n\n const dataBuffer = Buffer.allocUnsafe(sizeBuffer.readUInt32BE(0))\n await read(fd, dataBuffer, 0, dataBuffer.length, fileSize - sizeBuffer.length - dataBuffer.length)\n await close(fd)\n\n return readBlockMap(dataBuffer)\n } catch (e: any) {\n await close(fd)\n throw e\n }\n}\n"]}
@@ -0,0 +1,5 @@
1
+ import { BlockMap } from "builder-util-runtime/out/blockMapApi";
2
+ import { DifferentialDownloader } from "./DifferentialDownloader";
3
+ export declare class GenericDifferentialDownloader extends DifferentialDownloader {
4
+ download(oldBlockMap: BlockMap, newBlockMap: BlockMap): Promise<any>;
5
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GenericDifferentialDownloader = void 0;
4
+ const DifferentialDownloader_1 = require("./DifferentialDownloader");
5
+ class GenericDifferentialDownloader extends DifferentialDownloader_1.DifferentialDownloader {
6
+ download(oldBlockMap, newBlockMap) {
7
+ return this.doDownload(oldBlockMap, newBlockMap);
8
+ }
9
+ }
10
+ exports.GenericDifferentialDownloader = GenericDifferentialDownloader;
11
+ //# sourceMappingURL=GenericDifferentialDownloader.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GenericDifferentialDownloader.js","sourceRoot":"","sources":["../../src/differentialDownloader/GenericDifferentialDownloader.ts"],"names":[],"mappings":";;;AACA,qEAAiE;AAEjE,MAAa,6BAA8B,SAAQ,+CAAsB;IACvE,QAAQ,CAAC,WAAqB,EAAE,WAAqB;QACnD,OAAO,IAAI,CAAC,UAAU,CAAC,WAAW,EAAE,WAAW,CAAC,CAAA;IAClD,CAAC;CACF;AAJD,sEAIC","sourcesContent":["import { BlockMap } from \"builder-util-runtime/out/blockMapApi\"\nimport { DifferentialDownloader } from \"./DifferentialDownloader\"\n\nexport class GenericDifferentialDownloader extends DifferentialDownloader {\n download(oldBlockMap: BlockMap, newBlockMap: BlockMap): Promise<any> {\n return this.doDownload(oldBlockMap, newBlockMap)\n }\n}\n"]}
@@ -0,0 +1,31 @@
1
+ import { Transform } from "stream";
2
+ import { CancellationToken } from "builder-util-runtime";
3
+ export interface ProgressInfo {
4
+ total: number;
5
+ delta: number;
6
+ transferred: number;
7
+ percent: number;
8
+ bytesPerSecond: number;
9
+ }
10
+ export interface ProgressDifferentialDownloadInfo {
11
+ expectedByteCounts: Array<number>;
12
+ grandTotal: number;
13
+ }
14
+ export declare class ProgressDifferentialDownloadCallbackTransform extends Transform {
15
+ private readonly progressDifferentialDownloadInfo;
16
+ private readonly cancellationToken;
17
+ private readonly onProgress;
18
+ private start;
19
+ private transferred;
20
+ private delta;
21
+ private expectedBytes;
22
+ private index;
23
+ private operationType;
24
+ private nextUpdate;
25
+ constructor(progressDifferentialDownloadInfo: ProgressDifferentialDownloadInfo, cancellationToken: CancellationToken, onProgress: (info: ProgressInfo) => any);
26
+ _transform(chunk: any, encoding: string, callback: any): void;
27
+ beginFileCopy(): void;
28
+ beginRangeDownload(): void;
29
+ endRangeDownload(): void;
30
+ _flush(callback: any): void;
31
+ }
@@ -0,0 +1,90 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ProgressDifferentialDownloadCallbackTransform = void 0;
4
+ const stream_1 = require("stream");
5
+ var OperationKind;
6
+ (function (OperationKind) {
7
+ OperationKind[OperationKind["COPY"] = 0] = "COPY";
8
+ OperationKind[OperationKind["DOWNLOAD"] = 1] = "DOWNLOAD";
9
+ })(OperationKind || (OperationKind = {}));
10
+ class ProgressDifferentialDownloadCallbackTransform extends stream_1.Transform {
11
+ constructor(progressDifferentialDownloadInfo, cancellationToken, onProgress) {
12
+ super();
13
+ this.progressDifferentialDownloadInfo = progressDifferentialDownloadInfo;
14
+ this.cancellationToken = cancellationToken;
15
+ this.onProgress = onProgress;
16
+ this.start = Date.now();
17
+ this.transferred = 0;
18
+ this.delta = 0;
19
+ this.expectedBytes = 0;
20
+ this.index = 0;
21
+ this.operationType = OperationKind.COPY;
22
+ this.nextUpdate = this.start + 1000;
23
+ }
24
+ _transform(chunk, encoding, callback) {
25
+ if (this.cancellationToken.cancelled) {
26
+ callback(new Error("cancelled"), null);
27
+ return;
28
+ }
29
+ // Don't send progress update when copying from disk
30
+ if (this.operationType == OperationKind.COPY) {
31
+ callback(null, chunk);
32
+ return;
33
+ }
34
+ this.transferred += chunk.length;
35
+ this.delta += chunk.length;
36
+ const now = Date.now();
37
+ if (now >= this.nextUpdate &&
38
+ this.transferred !== this.expectedBytes /* will be emitted by endRangeDownload() */ &&
39
+ this.transferred !== this.progressDifferentialDownloadInfo.grandTotal /* will be emitted on _flush */) {
40
+ this.nextUpdate = now + 1000;
41
+ this.onProgress({
42
+ total: this.progressDifferentialDownloadInfo.grandTotal,
43
+ delta: this.delta,
44
+ transferred: this.transferred,
45
+ percent: (this.transferred / this.progressDifferentialDownloadInfo.grandTotal) * 100,
46
+ bytesPerSecond: Math.round(this.transferred / ((now - this.start) / 1000)),
47
+ });
48
+ this.delta = 0;
49
+ }
50
+ callback(null, chunk);
51
+ }
52
+ beginFileCopy() {
53
+ this.operationType = OperationKind.COPY;
54
+ }
55
+ beginRangeDownload() {
56
+ this.operationType = OperationKind.DOWNLOAD;
57
+ this.expectedBytes += this.progressDifferentialDownloadInfo.expectedByteCounts[this.index++];
58
+ }
59
+ endRangeDownload() {
60
+ // _flush() will doour final 100%
61
+ if (this.transferred !== this.progressDifferentialDownloadInfo.grandTotal) {
62
+ this.onProgress({
63
+ total: this.progressDifferentialDownloadInfo.grandTotal,
64
+ delta: this.delta,
65
+ transferred: this.transferred,
66
+ percent: (this.transferred / this.progressDifferentialDownloadInfo.grandTotal) * 100,
67
+ bytesPerSecond: Math.round(this.transferred / ((Date.now() - this.start) / 1000)),
68
+ });
69
+ }
70
+ }
71
+ // Called when we are 100% done with the connection/download
72
+ _flush(callback) {
73
+ if (this.cancellationToken.cancelled) {
74
+ callback(new Error("cancelled"));
75
+ return;
76
+ }
77
+ this.onProgress({
78
+ total: this.progressDifferentialDownloadInfo.grandTotal,
79
+ delta: this.delta,
80
+ transferred: this.transferred,
81
+ percent: 100,
82
+ bytesPerSecond: Math.round(this.transferred / ((Date.now() - this.start) / 1000)),
83
+ });
84
+ this.delta = 0;
85
+ this.transferred = 0;
86
+ callback(null);
87
+ }
88
+ }
89
+ exports.ProgressDifferentialDownloadCallbackTransform = ProgressDifferentialDownloadCallbackTransform;
90
+ //# sourceMappingURL=ProgressDifferentialDownloadCallbackTransform.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProgressDifferentialDownloadCallbackTransform.js","sourceRoot":"","sources":["../../src/differentialDownloader/ProgressDifferentialDownloadCallbackTransform.ts"],"names":[],"mappings":";;;AAAA,mCAAkC;AAGlC,IAAK,aAGJ;AAHD,WAAK,aAAa;IAChB,iDAAI,CAAA;IACJ,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,GAAG;gBACpF,cAAc,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,WAAW,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC;aAClF,CAAC,CAAA;QACJ,CAAC;IACH,CAAC;IAED,4DAA4D;IAC5D,MAAM,CAAC,QAAa;QAClB,IAAI,IAAI,CAAC,iBAAiB,CAAC,SAAS,EAAE,CAAC;YACrC,QAAQ,CAAC,IAAI,KAAK,CAAC,WAAW,CAAC,CAAC,CAAA;YAChC,OAAM;QACR,CAAC;QAED,IAAI,CAAC,UAAU,CAAC;YACd,KAAK,EAAE,IAAI,CAAC,gCAAgC,CAAC,UAAU;YACvD,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,OAAO,EAAE,GAAG;YACZ,cAAc,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,WAAW,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC;SAClF,CAAC,CAAA;QACF,IAAI,CAAC,KAAK,GAAG,CAAC,CAAA;QACd,IAAI,CAAC,WAAW,GAAG,CAAC,CAAA;QAEpB,QAAQ,CAAC,IAAI,CAAC,CAAA;IAChB,CAAC;CACF;AAhGD,sGAgGC","sourcesContent":["import { Transform } from \"stream\"\nimport { CancellationToken } from \"builder-util-runtime\"\n\nenum OperationKind {\n COPY,\n DOWNLOAD,\n}\n\nexport interface ProgressInfo {\n total: number\n delta: number\n transferred: number\n percent: number\n bytesPerSecond: number\n}\n\nexport interface ProgressDifferentialDownloadInfo {\n expectedByteCounts: Array<number>\n grandTotal: number\n}\n\nexport class ProgressDifferentialDownloadCallbackTransform extends Transform {\n private start = Date.now()\n private transferred = 0\n private delta = 0\n private expectedBytes = 0\n private index = 0\n private operationType = OperationKind.COPY\n\n private nextUpdate = this.start + 1000\n\n constructor(\n private readonly progressDifferentialDownloadInfo: ProgressDifferentialDownloadInfo,\n private readonly cancellationToken: CancellationToken,\n private readonly onProgress: (info: ProgressInfo) => any\n ) {\n super()\n }\n\n _transform(chunk: any, encoding: string, callback: any) {\n if (this.cancellationToken.cancelled) {\n callback(new Error(\"cancelled\"), null)\n return\n }\n\n // Don't send progress update when copying from disk\n if (this.operationType == OperationKind.COPY) {\n callback(null, chunk)\n return\n }\n\n this.transferred += chunk.length\n this.delta += chunk.length\n\n const now = Date.now()\n if (\n now >= this.nextUpdate &&\n this.transferred !== this.expectedBytes /* will be emitted by endRangeDownload() */ &&\n this.transferred !== this.progressDifferentialDownloadInfo.grandTotal /* will be emitted on _flush */\n ) {\n this.nextUpdate = now + 1000\n\n this.onProgress({\n total: this.progressDifferentialDownloadInfo.grandTotal,\n delta: this.delta,\n transferred: this.transferred,\n percent: (this.transferred / this.progressDifferentialDownloadInfo.grandTotal) * 100,\n bytesPerSecond: Math.round(this.transferred / ((now - this.start) / 1000)),\n })\n this.delta = 0\n }\n\n callback(null, chunk)\n }\n\n beginFileCopy(): void {\n this.operationType = OperationKind.COPY\n }\n\n beginRangeDownload(): void {\n this.operationType = OperationKind.DOWNLOAD\n\n this.expectedBytes += this.progressDifferentialDownloadInfo.expectedByteCounts[this.index++]\n }\n\n endRangeDownload(): void {\n // _flush() will doour final 100%\n if (this.transferred !== this.progressDifferentialDownloadInfo.grandTotal) {\n this.onProgress({\n total: this.progressDifferentialDownloadInfo.grandTotal,\n delta: this.delta,\n transferred: this.transferred,\n percent: (this.transferred / this.progressDifferentialDownloadInfo.grandTotal) * 100,\n bytesPerSecond: Math.round(this.transferred / ((Date.now() - this.start) / 1000)),\n })\n }\n }\n\n // Called when we are 100% done with the connection/download\n _flush(callback: any): void {\n if (this.cancellationToken.cancelled) {\n callback(new Error(\"cancelled\"))\n return\n }\n\n this.onProgress({\n total: this.progressDifferentialDownloadInfo.grandTotal,\n delta: this.delta,\n transferred: this.transferred,\n percent: 100,\n bytesPerSecond: Math.round(this.transferred / ((Date.now() - this.start) / 1000)),\n })\n this.delta = 0\n this.transferred = 0\n\n callback(null)\n }\n}\n"]}
@@ -0,0 +1,12 @@
1
+ import { BlockMap } from "builder-util-runtime/out/blockMapApi";
2
+ import { Logger } from "../types";
3
+ export declare enum OperationKind {
4
+ COPY = 0,
5
+ DOWNLOAD = 1
6
+ }
7
+ export interface Operation {
8
+ kind: OperationKind;
9
+ start: number;
10
+ end: number;
11
+ }
12
+ export declare function computeOperations(oldBlockMap: BlockMap, newBlockMap: BlockMap, logger: Logger): Array<Operation>;