@nfdi4plants/arctrl 3.0.0-beta.5 → 3.0.0-beta.6

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 (306) hide show
  1. package/dist/ts/node_modules/@fable-org/fable-library-js/Array.js +894 -4
  2. package/dist/ts/node_modules/@fable-org/fable-library-js/Async.js +121 -3
  3. package/dist/ts/node_modules/@fable-org/fable-library-js/BigInt.js +279 -1
  4. package/dist/ts/node_modules/@fable-org/fable-library-js/Char.js +101 -2
  5. package/dist/ts/node_modules/@fable-org/fable-library-js/Choice.js +187 -0
  6. package/dist/ts/node_modules/@fable-org/fable-library-js/CollectionUtil.js +156 -2
  7. package/dist/ts/node_modules/@fable-org/fable-library-js/Date.js +183 -7
  8. package/dist/ts/node_modules/@fable-org/fable-library-js/DateOffset.js +217 -5
  9. package/dist/ts/node_modules/@fable-org/fable-library-js/Decimal.js +154 -5
  10. package/dist/ts/node_modules/@fable-org/fable-library-js/Double.js +20 -1
  11. package/dist/ts/node_modules/@fable-org/fable-library-js/FSharp.Collections.js +30 -0
  12. package/dist/ts/node_modules/@fable-org/fable-library-js/FSharp.Core.js +68 -1
  13. package/dist/ts/node_modules/@fable-org/fable-library-js/Global.js +6 -1
  14. package/dist/ts/node_modules/@fable-org/fable-library-js/Guid.js +98 -1
  15. package/dist/ts/node_modules/@fable-org/fable-library-js/Int32.js +18 -1
  16. package/dist/ts/node_modules/@fable-org/fable-library-js/List.js +601 -5
  17. package/dist/ts/node_modules/@fable-org/fable-library-js/Long.js +10 -1
  18. package/dist/ts/node_modules/@fable-org/fable-library-js/Map.js +760 -16
  19. package/dist/ts/node_modules/@fable-org/fable-library-js/MapUtil.js +26 -1
  20. package/dist/ts/node_modules/@fable-org/fable-library-js/MutableMap.js +18 -8
  21. package/dist/ts/node_modules/@fable-org/fable-library-js/MutableSet.js +36 -4
  22. package/dist/ts/node_modules/@fable-org/fable-library-js/Option.js +35 -1
  23. package/dist/ts/node_modules/@fable-org/fable-library-js/Range.js +26 -1
  24. package/dist/ts/node_modules/@fable-org/fable-library-js/Reflection.js +355 -1
  25. package/dist/ts/node_modules/@fable-org/fable-library-js/RegExp.js +21 -2
  26. package/dist/ts/node_modules/@fable-org/fable-library-js/Result.js +133 -1
  27. package/dist/ts/node_modules/@fable-org/fable-library-js/Seq.js +543 -8
  28. package/dist/ts/node_modules/@fable-org/fable-library-js/Seq2.js +53 -4
  29. package/dist/ts/node_modules/@fable-org/fable-library-js/Set.js +673 -41
  30. package/dist/ts/node_modules/@fable-org/fable-library-js/String.js +197 -4
  31. package/dist/ts/node_modules/@fable-org/fable-library-js/System.Text.js +128 -3
  32. package/dist/ts/node_modules/@fable-org/fable-library-js/SystemException.js +8 -0
  33. package/dist/ts/node_modules/@fable-org/fable-library-js/TimeSpan.js +180 -0
  34. package/dist/ts/node_modules/@fable-org/fable-library-js/Types.js +20 -2
  35. package/dist/ts/node_modules/@fable-org/fable-library-js/Util.js +406 -2
  36. package/dist/ts/node_modules/@fable-org/fable-library-js/lib/big.js +2 -2
  37. package/dist/ts/ts/ARC.d.ts +12 -5
  38. package/dist/ts/ts/ARC.d.ts.map +1 -1
  39. package/dist/ts/ts/ARC.js +172 -93
  40. package/dist/ts/ts/Contract/ARC.d.ts.map +1 -1
  41. package/dist/ts/ts/Contract/ARC.js +8 -1
  42. package/dist/ts/ts/Contract/ArcAssay.js +14 -5
  43. package/dist/ts/ts/Contract/ArcInvestigation.js +10 -1
  44. package/dist/ts/ts/Contract/ArcRun.js +19 -6
  45. package/dist/ts/ts/Contract/ArcStudy.js +19 -6
  46. package/dist/ts/ts/Contract/ArcWorkflow.js +19 -6
  47. package/dist/ts/ts/Contract/Contract.js +42 -1
  48. package/dist/ts/ts/Contract/Datamap.js +61 -17
  49. package/dist/ts/ts/Contract/Git.d.ts.map +1 -1
  50. package/dist/ts/ts/Contract/Git.js +22 -6
  51. package/dist/ts/ts/Contract/License.d.ts +5 -0
  52. package/dist/ts/ts/Contract/License.d.ts.map +1 -0
  53. package/dist/ts/ts/Contract/License.js +34 -0
  54. package/dist/ts/ts/Contract/ValidationPackagesConfig.js +31 -6
  55. package/dist/ts/ts/ContractIO/ContractIO.js +5 -5
  56. package/dist/ts/ts/ContractIO/FileSystemHelper.js +16 -4
  57. package/dist/ts/ts/Conversion.js +321 -48
  58. package/dist/ts/ts/Core/ArcTypes.js +216 -15
  59. package/dist/ts/ts/Core/Comment.js +11 -1
  60. package/dist/ts/ts/Core/CommentList.js +77 -2
  61. package/dist/ts/ts/Core/Conversion.js +123 -43
  62. package/dist/ts/ts/Core/Data.js +9 -2
  63. package/dist/ts/ts/Core/DataContext.js +19 -4
  64. package/dist/ts/ts/Core/DataFile.js +38 -1
  65. package/dist/ts/ts/Core/DataMap.js +111 -5
  66. package/dist/ts/ts/Core/Helper/Collections.js +106 -5
  67. package/dist/ts/ts/Core/Helper/HashCodes.js +4 -4
  68. package/dist/ts/ts/Core/Helper/Identifier.js +100 -2
  69. package/dist/ts/ts/Core/Helper/Regex.js +134 -2
  70. package/dist/ts/ts/Core/Helper/SemVer.js +23 -2
  71. package/dist/ts/ts/Core/IdentifierSetters.js +27 -3
  72. package/dist/ts/ts/Core/OntologyAnnotation.js +4 -1
  73. package/dist/ts/ts/Core/OntologySourceReference.js +8 -1
  74. package/dist/ts/ts/Core/Person.js +8 -1
  75. package/dist/ts/ts/Core/Process/ColumnIndex.js +121 -4
  76. package/dist/ts/ts/Core/Process/Component.js +37 -4
  77. package/dist/ts/ts/Core/Process/Factor.js +9 -4
  78. package/dist/ts/ts/Core/Process/FactorValue.js +61 -4
  79. package/dist/ts/ts/Core/Process/Material.js +14 -4
  80. package/dist/ts/ts/Core/Process/MaterialAttribute.js +41 -3
  81. package/dist/ts/ts/Core/Process/MaterialAttributeValue.js +67 -4
  82. package/dist/ts/ts/Core/Process/MaterialType.js +15 -1
  83. package/dist/ts/ts/Core/Process/Process.js +150 -7
  84. package/dist/ts/ts/Core/Process/ProcessInput.js +48 -8
  85. package/dist/ts/ts/Core/Process/ProcessOutput.js +44 -7
  86. package/dist/ts/ts/Core/Process/ProcessParameterValue.js +10 -5
  87. package/dist/ts/ts/Core/Process/ProcessSequence.js +127 -6
  88. package/dist/ts/ts/Core/Process/Protocol.js +78 -4
  89. package/dist/ts/ts/Core/Process/ProtocolParameter.js +6 -2
  90. package/dist/ts/ts/Core/Process/Sample.js +21 -3
  91. package/dist/ts/ts/Core/Process/Source.js +13 -3
  92. package/dist/ts/ts/Core/Publication.js +8 -1
  93. package/dist/ts/ts/Core/Table/ArcTable.js +34 -25
  94. package/dist/ts/ts/Core/Table/ArcTableAux.js +150 -23
  95. package/dist/ts/ts/Core/Table/ArcTables.js +24 -15
  96. package/dist/ts/ts/Core/Table/CompositeCell.js +7 -3
  97. package/dist/ts/ts/Core/Table/CompositeColumn.js +8 -4
  98. package/dist/ts/ts/Core/Table/CompositeHeader.js +18 -15
  99. package/dist/ts/ts/Core/Template.js +12 -2
  100. package/dist/ts/ts/Core/Templates.js +8 -4
  101. package/dist/ts/ts/Core/Value.js +7 -3
  102. package/dist/ts/ts/CrossAsync.js +11 -1
  103. package/dist/ts/ts/FileSystem/Commit.js +18 -0
  104. package/dist/ts/ts/FileSystem/FileSystem.js +8 -3
  105. package/dist/ts/ts/FileSystem/FileSystemTree.d.ts +1 -0
  106. package/dist/ts/ts/FileSystem/FileSystemTree.d.ts.map +1 -1
  107. package/dist/ts/ts/FileSystem/FileSystemTree.js +20 -13
  108. package/dist/ts/ts/FileSystem/Path.d.ts +2 -0
  109. package/dist/ts/ts/FileSystem/Path.d.ts.map +1 -1
  110. package/dist/ts/ts/FileSystem/Path.js +17 -3
  111. package/dist/ts/ts/Json/Assay.js +26 -26
  112. package/dist/ts/ts/Json/Comment.js +10 -10
  113. package/dist/ts/ts/Json/Data.js +6 -6
  114. package/dist/ts/ts/Json/DataMap/DataContext.js +4 -4
  115. package/dist/ts/ts/Json/DataMap/DataMap.js +2 -2
  116. package/dist/ts/ts/Json/Decode.js +14 -9
  117. package/dist/ts/ts/Json/Encode.js +43 -11
  118. package/dist/ts/ts/Json/Investigation.js +40 -22
  119. package/dist/ts/ts/Json/OntologyAnnotation.js +5 -5
  120. package/dist/ts/ts/Json/OntologySourceReference.js +2 -2
  121. package/dist/ts/ts/Json/Person.js +26 -26
  122. package/dist/ts/ts/Json/Process/Component.js +9 -6
  123. package/dist/ts/ts/Json/Process/Factor.js +3 -3
  124. package/dist/ts/ts/Json/Process/FactorValue.js +8 -8
  125. package/dist/ts/ts/Json/Process/Material.js +9 -9
  126. package/dist/ts/ts/Json/Process/MaterialAttribute.js +1 -1
  127. package/dist/ts/ts/Json/Process/MaterialAttributeValue.js +8 -8
  128. package/dist/ts/ts/Json/Process/Process.js +12 -12
  129. package/dist/ts/ts/Json/Process/ProcessInput.js +4 -4
  130. package/dist/ts/ts/Json/Process/ProcessOutput.js +3 -3
  131. package/dist/ts/ts/Json/Process/ProcessParameterValue.js +10 -7
  132. package/dist/ts/ts/Json/Process/Protocol.js +12 -12
  133. package/dist/ts/ts/Json/Process/ProtocolParameter.js +3 -3
  134. package/dist/ts/ts/Json/Process/Sample.js +14 -14
  135. package/dist/ts/ts/Json/Process/Source.js +9 -9
  136. package/dist/ts/ts/Json/Process/Value.js +1 -1
  137. package/dist/ts/ts/Json/PropertyValue.js +1 -1
  138. package/dist/ts/ts/Json/Publication.js +6 -6
  139. package/dist/ts/ts/Json/ROCrate/LDContext.js +1 -0
  140. package/dist/ts/ts/Json/ROCrate/LDGraph.js +3 -3
  141. package/dist/ts/ts/Json/ROCrate/LDNode.js +19 -19
  142. package/dist/ts/ts/Json/Run.js +7 -7
  143. package/dist/ts/ts/Json/StringTable.js +1 -1
  144. package/dist/ts/ts/Json/Study.js +32 -32
  145. package/dist/ts/ts/Json/Table/ArcTable.js +29 -29
  146. package/dist/ts/ts/Json/Table/CellTable.js +6 -6
  147. package/dist/ts/ts/Json/Table/CompositeCell.js +4 -4
  148. package/dist/ts/ts/Json/Table/CompositeHeader.js +2 -2
  149. package/dist/ts/ts/Json/Table/IOType.js +1 -1
  150. package/dist/ts/ts/Json/Table/OATable.js +7 -7
  151. package/dist/ts/ts/Json/Table/Templates.js +92 -6
  152. package/dist/ts/ts/Json/Workflow.js +11 -11
  153. package/dist/ts/ts/Json/context/rocrate/isa_assay_context.js +27 -1
  154. package/dist/ts/ts/Json/context/rocrate/isa_comment_context.js +17 -1
  155. package/dist/ts/ts/Json/context/rocrate/isa_data_context.js +19 -1
  156. package/dist/ts/ts/Json/context/rocrate/isa_investigation_context.js +27 -1
  157. package/dist/ts/ts/Json/context/rocrate/isa_material_context.js +20 -1
  158. package/dist/ts/ts/Json/context/rocrate/isa_ontology_annotation_context.js +18 -1
  159. package/dist/ts/ts/Json/context/rocrate/isa_ontology_source_reference_context.js +20 -1
  160. package/dist/ts/ts/Json/context/rocrate/isa_organization_context.js +16 -1
  161. package/dist/ts/ts/Json/context/rocrate/isa_person_context.js +25 -1
  162. package/dist/ts/ts/Json/context/rocrate/isa_process_context.js +24 -1
  163. package/dist/ts/ts/Json/context/rocrate/isa_protocol_context.js +23 -1
  164. package/dist/ts/ts/Json/context/rocrate/isa_publication_context.js +20 -1
  165. package/dist/ts/ts/Json/context/rocrate/isa_sample_context.js +19 -1
  166. package/dist/ts/ts/Json/context/rocrate/isa_source_context.js +19 -1
  167. package/dist/ts/ts/Json/context/rocrate/isa_study_context.js +35 -1
  168. package/dist/ts/ts/Json/context/rocrate/rocrate_context.js +61 -0
  169. package/dist/ts/ts/Json.d.ts +13 -1
  170. package/dist/ts/ts/Json.d.ts.map +1 -1
  171. package/dist/ts/ts/Json.js +89 -2
  172. package/dist/ts/ts/JsonIO/Assay.js +15 -3
  173. package/dist/ts/ts/JsonIO/Investigation.js +15 -3
  174. package/dist/ts/ts/JsonIO/LDObject.js +17 -3
  175. package/dist/ts/ts/JsonIO/OntologyAnnotation.js +12 -2
  176. package/dist/ts/ts/JsonIO/Person.d.ts +16 -0
  177. package/dist/ts/ts/JsonIO/Person.d.ts.map +1 -0
  178. package/dist/ts/ts/JsonIO/Person.js +67 -0
  179. package/dist/ts/ts/JsonIO/Run.js +9 -3
  180. package/dist/ts/ts/JsonIO/Study.js +15 -3
  181. package/dist/ts/ts/JsonIO/Table/Compression.js +3 -3
  182. package/dist/ts/ts/JsonIO/Table/Templates.js +60 -5
  183. package/dist/ts/ts/JsonIO/Workflow.js +9 -3
  184. package/dist/ts/ts/License.d.ts +39 -0
  185. package/dist/ts/ts/License.d.ts.map +1 -0
  186. package/dist/ts/ts/License.js +123 -0
  187. package/dist/ts/ts/ROCrate/Generic/Comment.js +5 -1
  188. package/dist/ts/ts/ROCrate/Generic/CreativeWork.d.ts +69 -0
  189. package/dist/ts/ts/ROCrate/Generic/CreativeWork.d.ts.map +1 -0
  190. package/dist/ts/ts/ROCrate/Generic/CreativeWork.js +450 -0
  191. package/dist/ts/ts/ROCrate/Generic/Dataset.d.ts +1 -0
  192. package/dist/ts/ts/ROCrate/Generic/Dataset.d.ts.map +1 -1
  193. package/dist/ts/ts/ROCrate/Generic/Dataset.js +27 -1
  194. package/dist/ts/ts/ROCrate/Generic/DefinedTerm.js +5 -1
  195. package/dist/ts/ts/ROCrate/Generic/File.js +5 -1
  196. package/dist/ts/ts/ROCrate/Generic/LabProcess.js +5 -1
  197. package/dist/ts/ts/ROCrate/Generic/LabProtocol.js +5 -1
  198. package/dist/ts/ts/ROCrate/Generic/Organization.js +5 -1
  199. package/dist/ts/ts/ROCrate/Generic/Person.js +7 -2
  200. package/dist/ts/ts/ROCrate/Generic/PostalAddress.js +5 -1
  201. package/dist/ts/ts/ROCrate/Generic/PropertyValue.js +19 -15
  202. package/dist/ts/ts/ROCrate/Generic/Sample.js +5 -1
  203. package/dist/ts/ts/ROCrate/Generic/ScholarlyArticle.js +5 -1
  204. package/dist/ts/ts/ROCrate/LDContext.js +15 -6
  205. package/dist/ts/ts/ROCrate/LDObject.js +53 -17
  206. package/dist/ts/ts/ROCrateIO.d.ts +9 -3
  207. package/dist/ts/ts/ROCrateIO.d.ts.map +1 -1
  208. package/dist/ts/ts/ROCrateIO.js +67 -14
  209. package/dist/ts/ts/Spreadsheet/AnnotationTable/ArcTable.js +18 -15
  210. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeCell.js +5 -4
  211. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeColumn.js +40 -17
  212. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeHeader.js +4 -4
  213. package/dist/ts/ts/Spreadsheet/ArcAssay.js +30 -15
  214. package/dist/ts/ts/Spreadsheet/ArcInvestigation.js +32 -18
  215. package/dist/ts/ts/Spreadsheet/ArcRun.js +23 -8
  216. package/dist/ts/ts/Spreadsheet/ArcStudy.js +22 -7
  217. package/dist/ts/ts/Spreadsheet/ArcWorkflow.js +23 -8
  218. package/dist/ts/ts/Spreadsheet/CollectionAux.js +75 -5
  219. package/dist/ts/ts/Spreadsheet/DataMap.js +1 -1
  220. package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapColumn.js +4 -4
  221. package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapHeader.js +8 -8
  222. package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapTable.js +4 -4
  223. package/dist/ts/ts/Spreadsheet/Metadata/Assays.js +6 -6
  224. package/dist/ts/ts/Spreadsheet/Metadata/Comment.js +1 -1
  225. package/dist/ts/ts/Spreadsheet/Metadata/Contacts.js +2 -2
  226. package/dist/ts/ts/Spreadsheet/Metadata/Conversions.js +6 -3
  227. package/dist/ts/ts/Spreadsheet/Metadata/DesignDescriptors.js +9 -3
  228. package/dist/ts/ts/Spreadsheet/Metadata/Factors.js +6 -4
  229. package/dist/ts/ts/Spreadsheet/Metadata/OntologyAnnotation.js +7 -5
  230. package/dist/ts/ts/Spreadsheet/Metadata/OntologySourceReference.js +1 -1
  231. package/dist/ts/ts/Spreadsheet/Metadata/Protocols.js +10 -8
  232. package/dist/ts/ts/Spreadsheet/Metadata/Publication.js +5 -5
  233. package/dist/ts/ts/Spreadsheet/Metadata/Run.js +6 -6
  234. package/dist/ts/ts/Spreadsheet/Metadata/SparseTable.js +246 -10
  235. package/dist/ts/ts/Spreadsheet/Metadata/Study.js +19 -13
  236. package/dist/ts/ts/Spreadsheet/Metadata/Workflow.js +5 -5
  237. package/dist/ts/ts/Template.Web.js +5 -1
  238. package/dist/ts/ts/ValidationPackages/ValidationPackage.js +8 -1
  239. package/dist/ts/ts/ValidationPackages/ValidationPackagesConfig.js +10 -3
  240. package/dist/ts/ts/WebRequest/WebRequest.Node.js +1 -0
  241. package/dist/ts/ts/Xlsx.js +41 -1
  242. package/dist/ts/ts/Yaml/ValidationPackage.js +18 -2
  243. package/dist/ts/ts/Yaml/ValidationPackagesConfig.js +5 -2
  244. package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/DynamicObj.fs.js +27 -4
  245. package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/FableJS.fs.js +14 -3
  246. package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/HashCodes.fs.js +30 -4
  247. package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/PropertyHelper.fs.js +5 -1
  248. package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/ReflectionUtils.fs.js +65 -2
  249. package/dist/ts/ts/fable_modules/Fable.Fetch.2.6.0/Fetch.fs.js +257 -1
  250. package/dist/ts/ts/fable_modules/Fable.Promise.3.2.0/Promise.fs.js +71 -1
  251. package/dist/ts/ts/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.js +11 -1
  252. package/dist/ts/ts/fable_modules/Fable.SimpleHttp.3.5.0/Http.fs.js +188 -11
  253. package/dist/ts/ts/fable_modules/Fable.SimpleHttp.3.5.0/Types.fs.js +80 -2
  254. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Cells/FsCell.fs.js +63 -4
  255. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Cells/FsCellsCollection.fs.js +17 -7
  256. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/DSL/CellBuilder.fs.js +198 -0
  257. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/DSL/Expression.fs.js +46 -0
  258. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/DSL/RowBuilder.fs.js +131 -0
  259. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/DSL/Types.fs.js +307 -0
  260. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsAddress.fs.js +38 -2
  261. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsColumn.fs.js +11 -4
  262. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsRow.fs.js +12 -5
  263. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsWorkbook.fs.js +9 -2
  264. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsWorksheet.fs.js +14 -7
  265. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/HashCodes.fs.js +31 -1
  266. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Cell.fs.js +65 -0
  267. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Column.fs.js +38 -0
  268. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Row.fs.js +38 -0
  269. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Table.fs.js +34 -0
  270. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Value.fs.js +49 -3
  271. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Workbook.fs.js +44 -0
  272. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Worksheet.fs.js +129 -0
  273. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRange.fs.js +9 -2
  274. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeAddress.fs.js +82 -3
  275. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeBase.fs.js +12 -3
  276. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeColumn.fs.js +17 -2
  277. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeRow.fs.js +9 -2
  278. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Tables/FsTable.fs.js +12 -5
  279. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Tables/FsTableField.fs.js +12 -3
  280. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Cell.fs.js +2 -2
  281. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/FsExtensions.fs.js +42 -3
  282. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Json.fs.js +53 -0
  283. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Table.fs.js +9 -9
  284. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Workbook.fs.js +1 -1
  285. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Worksheet.fs.js +2 -2
  286. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Xlsx.fs.js +5 -1
  287. package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.7.0/Decode.fs.js +730 -23
  288. package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.7.0/Encode.fs.js +192 -7
  289. package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.7.0/Types.fs.js +45 -1
  290. package/dist/ts/ts/fable_modules/Thoth.Json.JavaScript.0.4.1/Decode.fs.js +15 -2
  291. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Decode.fs.js +1383 -15
  292. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Encode.fs.js +45 -4
  293. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Interop/JsInterop.fs.js +10 -0
  294. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Persil.fs.js +5 -5
  295. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Preprocessing.fs.js +16 -6
  296. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Reader.fs.js +26 -23
  297. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/RegexActivePatterns.fs.js +1 -1
  298. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Writer.fs.js +8 -8
  299. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/YAMLiciousTypes.fs.js +18 -2
  300. package/package.json +1 -1
  301. package/dist/ts/ts/FileSystem/DefaultGitattributes.d.ts +0 -2
  302. package/dist/ts/ts/FileSystem/DefaultGitattributes.d.ts.map +0 -1
  303. package/dist/ts/ts/FileSystem/DefaultGitattributes.js +0 -3
  304. package/dist/ts/ts/FileSystem/DefaultGitignore.d.ts +0 -2
  305. package/dist/ts/ts/FileSystem/DefaultGitignore.d.ts.map +0 -1
  306. package/dist/ts/ts/FileSystem/DefaultGitignore.js +0 -3
@@ -1,9 +1,10 @@
1
1
  import { join } from './String.js';
2
- import { value, some } from './Option.js';
3
- import { toIterator, getEnumerator, equals, structuralHash, compare, defaultOf, isArrayLike, disposeSafe } from './Util.js';
2
+ import { value, some, defaultArg } from './Option.js';
3
+ import { equals, structuralHash, compare, toIterator, getEnumerator, defaultOf, isArrayLike, disposeSafe } from './Util.js';
4
4
  import { Record } from './Types.js';
5
- import { SR_inputWasEmpty, SR_keyNotFoundAlt, SR_indexOutOfBounds } from './Global.js';
6
- import { fill, setItem, item as item$1, foldBack as foldBack$1, map as map$1, transpose as transpose$1 } from './Array.js';
5
+ import { record_type, option_type, class_type } from './Reflection.js';
6
+ import { SR_inputWasEmpty, SR_indexOutOfBounds, SR_keyNotFoundAlt, SR_differentLengths, SR_notEnoughElements, SR_inputMustBeNonNegative, SR_inputSequenceEmpty, SR_inputSequenceTooLong } from './Global.js';
7
+ import { fill, setItem, foldBack as foldBack$1, foldBack2 as foldBack2$1, item as item$1, scanBack as scanBack$1, tryFindBack as tryFindBack$1, tryFindIndexBack as tryFindIndexBack$1, permute as permute$1, map as map$1, chunkBySize as chunkBySize$1, pairwise as pairwise$1, windowed as windowed$1, splitInto as splitInto$1, transpose as transpose$1 } from './Array.js';
7
8
 
8
9
  class FSharpList extends Record {
9
10
  constructor(head, tail) {
@@ -49,6 +50,7 @@ class FSharpList extends Record {
49
50
  else {
50
51
  return true;
51
52
  }
53
+ break;
52
54
  }
53
55
  };
54
56
  return loop(xs, other);
@@ -75,6 +77,7 @@ class FSharpList extends Record {
75
77
  else {
76
78
  return h | 0;
77
79
  }
80
+ break;
78
81
  }
79
82
  };
80
83
  return loop(0, 0, xs) | 0;
@@ -114,6 +117,7 @@ class FSharpList extends Record {
114
117
  else {
115
118
  return 0;
116
119
  }
120
+ break;
117
121
  }
118
122
  };
119
123
  return loop(xs, other) | 0;
@@ -130,6 +134,9 @@ class FSharpList extends Record {
130
134
  return getEnumerator(xs);
131
135
  }
132
136
  }
137
+ function FSharpList_$reflection(gen0) {
138
+ return record_type("ListModule.FSharpList", [gen0], FSharpList, () => [["head", gen0], ["tail", option_type(FSharpList_$reflection(gen0))]]);
139
+ }
133
140
  class ListEnumerator$1 {
134
141
  constructor(xs) {
135
142
  this.xs = xs;
@@ -165,6 +172,9 @@ class ListEnumerator$1 {
165
172
  Dispose() {
166
173
  }
167
174
  }
175
+ function ListEnumerator$1_$reflection(gen0) {
176
+ return class_type("ListModule.ListEnumerator`1", [gen0], ListEnumerator$1);
177
+ }
168
178
  function ListEnumerator$1_$ctor_3002E699(xs) {
169
179
  return new ListEnumerator$1(xs);
170
180
  }
@@ -190,6 +200,7 @@ function FSharpList__get_Length(xs) {
190
200
  else {
191
201
  return i | 0;
192
202
  }
203
+ break;
193
204
  }
194
205
  };
195
206
  return loop(0, xs) | 0;
@@ -230,6 +241,7 @@ function FSharpList__get_Item_Z524259A4(xs, index) {
230
241
  else {
231
242
  throw new Error((SR_indexOutOfBounds + "\\nParameter name: ") + "index");
232
243
  }
244
+ break;
233
245
  }
234
246
  };
235
247
  return loop(0, xs);
@@ -282,8 +294,51 @@ function tryLast(xs_mut) {
282
294
  continue tryLast;
283
295
  }
284
296
  }
297
+ break;
285
298
  }
286
299
  }
300
+ function last(xs) {
301
+ const matchValue = tryLast(xs);
302
+ if (matchValue == null) {
303
+ throw new Error(SR_inputWasEmpty);
304
+ }
305
+ else {
306
+ return value(matchValue);
307
+ }
308
+ }
309
+ function compareWith(comparer, xs, ys) {
310
+ const loop = (xs_1_mut, ys_1_mut) => {
311
+ loop: while (true) {
312
+ const xs_1 = xs_1_mut, ys_1 = ys_1_mut;
313
+ const matchValue = FSharpList__get_IsEmpty(xs_1);
314
+ const matchValue_1 = FSharpList__get_IsEmpty(ys_1);
315
+ if (matchValue) {
316
+ if (matchValue_1) {
317
+ return 0;
318
+ }
319
+ else {
320
+ return -1;
321
+ }
322
+ }
323
+ else if (matchValue_1) {
324
+ return 1;
325
+ }
326
+ else {
327
+ const c = comparer(FSharpList__get_Head(xs_1), FSharpList__get_Head(ys_1)) | 0;
328
+ if (c === 0) {
329
+ xs_1_mut = FSharpList__get_Tail(xs_1);
330
+ ys_1_mut = FSharpList__get_Tail(ys_1);
331
+ continue loop;
332
+ }
333
+ else {
334
+ return c | 0;
335
+ }
336
+ }
337
+ break;
338
+ }
339
+ };
340
+ return loop(xs, ys) | 0;
341
+ }
287
342
  function toArray(xs) {
288
343
  const len = FSharpList__get_Length(xs) | 0;
289
344
  const res = fill(new Array(len), 0, len, null);
@@ -330,6 +385,7 @@ function foldIndexed(folder, state, xs) {
330
385
  xs_1_mut = FSharpList__get_Tail(xs_1);
331
386
  continue loop;
332
387
  }
388
+ break;
333
389
  }
334
390
  };
335
391
  return loop(0, state, xs);
@@ -345,17 +401,57 @@ function fold2(folder, state, xs, ys) {
345
401
  }
346
402
  return acc;
347
403
  }
404
+ function foldBack2(folder, xs, ys, state) {
405
+ return foldBack2$1(folder, toArray(xs), toArray(ys), state);
406
+ }
407
+ function unfold(gen, state) {
408
+ const loop = (acc_mut, node_mut) => {
409
+ let t;
410
+ loop: while (true) {
411
+ const acc = acc_mut, node = node_mut;
412
+ const matchValue = gen(acc);
413
+ if (matchValue != null) {
414
+ acc_mut = value(matchValue)[1];
415
+ node_mut = ((t = (new FSharpList(value(matchValue)[0], undefined)), (node.tail = t, t)));
416
+ continue loop;
417
+ }
418
+ else {
419
+ return node;
420
+ }
421
+ break;
422
+ }
423
+ };
424
+ const root = FSharpList_get_Empty();
425
+ const node_1 = loop(state, root);
426
+ const t_2 = FSharpList_get_Empty();
427
+ node_1.tail = t_2;
428
+ return FSharpList__get_Tail(root);
429
+ }
348
430
  function iterate(action, xs) {
349
431
  fold((unitVar, x) => {
350
432
  action(x);
351
433
  }, undefined, xs);
352
434
  }
435
+ function iterate2(action, xs, ys) {
436
+ fold2((unitVar, x, y) => {
437
+ action(x, y);
438
+ }, undefined, xs, ys);
439
+ }
353
440
  function iterateIndexed(action, xs) {
354
441
  fold((i, x) => {
355
442
  action(i, x);
356
443
  return (i + 1) | 0;
357
444
  }, 0, xs);
358
445
  }
446
+ function iterateIndexed2(action, xs, ys) {
447
+ fold2((i, x, y) => {
448
+ action(i, x, y);
449
+ return (i + 1) | 0;
450
+ }, 0, xs, ys);
451
+ }
452
+ function toSeq(xs) {
453
+ return xs;
454
+ }
359
455
  function ofArrayWithTail(xs, tail_1) {
360
456
  let res = tail_1;
361
457
  for (let i = xs.length - 1; i >= 0; i--) {
@@ -426,6 +522,28 @@ function concat(lists) {
426
522
  xs_6.tail = t_2;
427
523
  return FSharpList__get_Tail(root);
428
524
  }
525
+ function scan(folder, state, xs) {
526
+ let xs_4, t_2;
527
+ const root = FSharpList_get_Empty();
528
+ let node;
529
+ const t = new FSharpList(state, undefined);
530
+ root.tail = t;
531
+ node = t;
532
+ let acc = state;
533
+ let xs_3 = xs;
534
+ while (!FSharpList__get_IsEmpty(xs_3)) {
535
+ acc = folder(acc, FSharpList__get_Head(xs_3));
536
+ node = ((xs_4 = node, (t_2 = (new FSharpList(acc, undefined)), (xs_4.tail = t_2, t_2))));
537
+ xs_3 = FSharpList__get_Tail(xs_3);
538
+ }
539
+ const xs_6 = node;
540
+ const t_4 = FSharpList_get_Empty();
541
+ xs_6.tail = t_4;
542
+ return FSharpList__get_Tail(root);
543
+ }
544
+ function scanBack(folder, xs, state) {
545
+ return ofArray(scanBack$1(folder, toArray(xs), state));
546
+ }
429
547
  function append(xs, ys) {
430
548
  return fold((acc, x) => FSharpList_Cons_305B8EAC(x, acc), ys, reverse(xs));
431
549
  }
@@ -469,6 +587,9 @@ function map(mapping, xs) {
469
587
  node.tail = t_2;
470
588
  return FSharpList__get_Tail(root);
471
589
  }
590
+ function indexed(xs) {
591
+ return mapIndexed((i, x) => [i, x], xs);
592
+ }
472
593
  function map2(mapping, xs, ys) {
473
594
  const root = FSharpList_get_Empty();
474
595
  const node = fold2((acc, x, y) => {
@@ -480,6 +601,68 @@ function map2(mapping, xs, ys) {
480
601
  node.tail = t_2;
481
602
  return FSharpList__get_Tail(root);
482
603
  }
604
+ function mapIndexed2(mapping, xs, ys) {
605
+ const loop = (i_mut, acc_mut, xs_1_mut, ys_1_mut) => {
606
+ let t;
607
+ loop: while (true) {
608
+ const i = i_mut, acc = acc_mut, xs_1 = xs_1_mut, ys_1 = ys_1_mut;
609
+ if (FSharpList__get_IsEmpty(xs_1) ? true : FSharpList__get_IsEmpty(ys_1)) {
610
+ return acc;
611
+ }
612
+ else {
613
+ i_mut = (i + 1);
614
+ acc_mut = ((t = (new FSharpList(mapping(i, FSharpList__get_Head(xs_1), FSharpList__get_Head(ys_1)), undefined)), (acc.tail = t, t)));
615
+ xs_1_mut = FSharpList__get_Tail(xs_1);
616
+ ys_1_mut = FSharpList__get_Tail(ys_1);
617
+ continue loop;
618
+ }
619
+ break;
620
+ }
621
+ };
622
+ const root = FSharpList_get_Empty();
623
+ const node_1 = loop(0, root, xs, ys);
624
+ const t_2 = FSharpList_get_Empty();
625
+ node_1.tail = t_2;
626
+ return FSharpList__get_Tail(root);
627
+ }
628
+ function map3(mapping, xs, ys, zs) {
629
+ const loop = (acc_mut, xs_1_mut, ys_1_mut, zs_1_mut) => {
630
+ let t;
631
+ loop: while (true) {
632
+ const acc = acc_mut, xs_1 = xs_1_mut, ys_1 = ys_1_mut, zs_1 = zs_1_mut;
633
+ if ((FSharpList__get_IsEmpty(xs_1) ? true : FSharpList__get_IsEmpty(ys_1)) ? true : FSharpList__get_IsEmpty(zs_1)) {
634
+ return acc;
635
+ }
636
+ else {
637
+ acc_mut = ((t = (new FSharpList(mapping(FSharpList__get_Head(xs_1), FSharpList__get_Head(ys_1), FSharpList__get_Head(zs_1)), undefined)), (acc.tail = t, t)));
638
+ xs_1_mut = FSharpList__get_Tail(xs_1);
639
+ ys_1_mut = FSharpList__get_Tail(ys_1);
640
+ zs_1_mut = FSharpList__get_Tail(zs_1);
641
+ continue loop;
642
+ }
643
+ break;
644
+ }
645
+ };
646
+ const root = FSharpList_get_Empty();
647
+ const node_1 = loop(root, xs, ys, zs);
648
+ const t_2 = FSharpList_get_Empty();
649
+ node_1.tail = t_2;
650
+ return FSharpList__get_Tail(root);
651
+ }
652
+ function mapFold(mapping, state, xs) {
653
+ const root = FSharpList_get_Empty();
654
+ const patternInput_1 = fold((tupledArg, x) => {
655
+ let t;
656
+ const patternInput = mapping(tupledArg[1], x);
657
+ return [(t = (new FSharpList(patternInput[0], undefined)), (tupledArg[0].tail = t, t)), patternInput[1]];
658
+ }, [root, state], xs);
659
+ const t_2 = FSharpList_get_Empty();
660
+ patternInput_1[0].tail = t_2;
661
+ return [FSharpList__get_Tail(root), patternInput_1[1]];
662
+ }
663
+ function mapFoldBack(mapping, xs, state) {
664
+ return mapFold((acc, x) => mapping(x, acc), state, reverse(xs));
665
+ }
483
666
  function tryPick(f, xs) {
484
667
  const loop = (xs_1_mut) => {
485
668
  loop: while (true) {
@@ -497,6 +680,7 @@ function tryPick(f, xs) {
497
680
  return matchValue;
498
681
  }
499
682
  }
683
+ break;
500
684
  }
501
685
  };
502
686
  return loop(xs);
@@ -522,6 +706,18 @@ function find(f, xs) {
522
706
  return value(matchValue);
523
707
  }
524
708
  }
709
+ function tryFindBack(f, xs) {
710
+ return tryFindBack$1(f, toArray(xs));
711
+ }
712
+ function findBack(f, xs) {
713
+ const matchValue = tryFindBack(f, xs);
714
+ if (matchValue == null) {
715
+ return indexNotFound();
716
+ }
717
+ else {
718
+ return value(matchValue);
719
+ }
720
+ }
525
721
  function tryFindIndex(f, xs) {
526
722
  const loop = (i_mut, xs_1_mut) => {
527
723
  loop: while (true) {
@@ -537,10 +733,34 @@ function tryFindIndex(f, xs) {
537
733
  xs_1_mut = FSharpList__get_Tail(xs_1);
538
734
  continue loop;
539
735
  }
736
+ break;
540
737
  }
541
738
  };
542
739
  return loop(0, xs);
543
740
  }
741
+ function findIndex(f, xs) {
742
+ const matchValue = tryFindIndex(f, xs);
743
+ if (matchValue == null) {
744
+ indexNotFound();
745
+ return -1;
746
+ }
747
+ else {
748
+ return value(matchValue) | 0;
749
+ }
750
+ }
751
+ function tryFindIndexBack(f, xs) {
752
+ return tryFindIndexBack$1(f, toArray(xs));
753
+ }
754
+ function findIndexBack(f, xs) {
755
+ const matchValue = tryFindIndexBack(f, xs);
756
+ if (matchValue == null) {
757
+ indexNotFound();
758
+ return -1;
759
+ }
760
+ else {
761
+ return value(matchValue) | 0;
762
+ }
763
+ }
544
764
  function tryItem(n, xs) {
545
765
  const loop = (i_mut, xs_1_mut) => {
546
766
  loop: while (true) {
@@ -556,6 +776,7 @@ function tryItem(n, xs) {
556
776
  xs_1_mut = FSharpList__get_Tail(xs_1);
557
777
  continue loop;
558
778
  }
779
+ break;
559
780
  }
560
781
  };
561
782
  return loop(0, xs);
@@ -579,6 +800,27 @@ function filter(f, xs) {
579
800
  node.tail = t_2;
580
801
  return FSharpList__get_Tail(root);
581
802
  }
803
+ function partition(f, xs) {
804
+ const matchValue = FSharpList_get_Empty();
805
+ const root2 = FSharpList_get_Empty();
806
+ const root1 = matchValue;
807
+ const patternInput_1 = fold((tupledArg, x) => {
808
+ let t, t_2;
809
+ const lacc = tupledArg[0];
810
+ const racc = tupledArg[1];
811
+ if (f(x)) {
812
+ return [(t = (new FSharpList(x, undefined)), (lacc.tail = t, t)), racc];
813
+ }
814
+ else {
815
+ return [lacc, (t_2 = (new FSharpList(x, undefined)), (racc.tail = t_2, t_2))];
816
+ }
817
+ }, [root1, root2], xs);
818
+ const t_4 = FSharpList_get_Empty();
819
+ patternInput_1[0].tail = t_4;
820
+ const t_5 = FSharpList_get_Empty();
821
+ patternInput_1[1].tail = t_5;
822
+ return [FSharpList__get_Tail(root1), FSharpList__get_Tail(root2)];
823
+ }
582
824
  function choose(f, xs) {
583
825
  const root = FSharpList_get_Empty();
584
826
  const node = fold((acc, x) => {
@@ -596,6 +838,9 @@ function choose(f, xs) {
596
838
  node.tail = t_2;
597
839
  return FSharpList__get_Tail(root);
598
840
  }
841
+ function contains(value, xs, eq) {
842
+ return tryFindIndex((v) => eq.Equals(value, v), xs) != null;
843
+ }
599
844
  function initialize(n, f) {
600
845
  let xs, t;
601
846
  const root = FSharpList_get_Empty();
@@ -608,6 +853,9 @@ function initialize(n, f) {
608
853
  xs_2.tail = t_2;
609
854
  return FSharpList__get_Tail(root);
610
855
  }
856
+ function replicate(n, x) {
857
+ return initialize(n, (_arg) => x);
858
+ }
611
859
  function reduce(f, xs) {
612
860
  if (FSharpList__get_IsEmpty(xs)) {
613
861
  throw new Error(SR_inputWasEmpty);
@@ -616,23 +864,162 @@ function reduce(f, xs) {
616
864
  return fold(f, head(xs), tail(xs));
617
865
  }
618
866
  }
867
+ function reduceBack(f, xs) {
868
+ if (FSharpList__get_IsEmpty(xs)) {
869
+ throw new Error(SR_inputWasEmpty);
870
+ }
871
+ else {
872
+ return foldBack(f, tail(xs), head(xs));
873
+ }
874
+ }
875
+ function forAll(f, xs) {
876
+ return fold((acc, x) => (acc && f(x)), true, xs);
877
+ }
878
+ function forAll2(f, xs, ys) {
879
+ return fold2((acc, x, y) => (acc && f(x, y)), true, xs, ys);
880
+ }
619
881
  function exists(f, xs) {
620
882
  return tryFindIndex(f, xs) != null;
621
883
  }
884
+ function exists2(f_mut, xs_mut, ys_mut) {
885
+ exists2: while (true) {
886
+ const f = f_mut, xs = xs_mut, ys = ys_mut;
887
+ const matchValue = FSharpList__get_IsEmpty(xs);
888
+ const matchValue_1 = FSharpList__get_IsEmpty(ys);
889
+ let matchResult;
890
+ if (matchValue) {
891
+ if (matchValue_1) {
892
+ matchResult = 0;
893
+ }
894
+ else {
895
+ matchResult = 2;
896
+ }
897
+ }
898
+ else if (matchValue_1) {
899
+ matchResult = 2;
900
+ }
901
+ else {
902
+ matchResult = 1;
903
+ }
904
+ switch (matchResult) {
905
+ case 0:
906
+ return false;
907
+ case 1:
908
+ if (f(FSharpList__get_Head(xs), FSharpList__get_Head(ys))) {
909
+ return true;
910
+ }
911
+ else {
912
+ f_mut = f;
913
+ xs_mut = FSharpList__get_Tail(xs);
914
+ ys_mut = FSharpList__get_Tail(ys);
915
+ continue exists2;
916
+ }
917
+ default:
918
+ throw new Error((SR_differentLengths + "\\nParameter name: ") + "list2");
919
+ }
920
+ break;
921
+ }
922
+ }
622
923
  function unzip(xs) {
623
924
  return foldBack((tupledArg, tupledArg_1) => [FSharpList_Cons_305B8EAC(tupledArg[0], tupledArg_1[0]), FSharpList_Cons_305B8EAC(tupledArg[1], tupledArg_1[1])], xs, [FSharpList_get_Empty(), FSharpList_get_Empty()]);
624
925
  }
926
+ function unzip3(xs) {
927
+ return foldBack((tupledArg, tupledArg_1) => [FSharpList_Cons_305B8EAC(tupledArg[0], tupledArg_1[0]), FSharpList_Cons_305B8EAC(tupledArg[1], tupledArg_1[1]), FSharpList_Cons_305B8EAC(tupledArg[2], tupledArg_1[2])], xs, [FSharpList_get_Empty(), FSharpList_get_Empty(), FSharpList_get_Empty()]);
928
+ }
625
929
  function zip(xs, ys) {
626
930
  return map2((x, y) => [x, y], xs, ys);
627
931
  }
932
+ function zip3(xs, ys, zs) {
933
+ return map3((x, y, z) => [x, y, z], xs, ys, zs);
934
+ }
628
935
  function sortWith(comparer, xs) {
629
936
  const arr = toArray(xs);
630
937
  arr.sort(comparer);
631
938
  return ofArray(arr);
632
939
  }
940
+ function sort(xs, comparer) {
941
+ return sortWith((x, y) => comparer.Compare(x, y), xs);
942
+ }
633
943
  function sortBy(projection, xs, comparer) {
634
944
  return sortWith((x, y) => comparer.Compare(projection(x), projection(y)), xs);
635
945
  }
946
+ function sortDescending(xs, comparer) {
947
+ return sortWith((x, y) => (comparer.Compare(x, y) * -1), xs);
948
+ }
949
+ function sortByDescending(projection, xs, comparer) {
950
+ return sortWith((x, y) => (comparer.Compare(projection(x), projection(y)) * -1), xs);
951
+ }
952
+ function sum(xs, adder) {
953
+ return fold((acc, x) => adder.Add(acc, x), adder.GetZero(), xs);
954
+ }
955
+ function sumBy(f, xs, adder) {
956
+ return fold((acc, x) => adder.Add(acc, f(x)), adder.GetZero(), xs);
957
+ }
958
+ function maxBy(projection, xs, comparer) {
959
+ return reduce((x, y) => ((comparer.Compare(projection(y), projection(x)) > 0) ? y : x), xs);
960
+ }
961
+ function max(xs, comparer) {
962
+ return reduce((x, y) => ((comparer.Compare(y, x) > 0) ? y : x), xs);
963
+ }
964
+ function minBy(projection, xs, comparer) {
965
+ return reduce((x, y) => ((comparer.Compare(projection(y), projection(x)) > 0) ? x : y), xs);
966
+ }
967
+ function min(xs, comparer) {
968
+ return reduce((x, y) => ((comparer.Compare(y, x) > 0) ? x : y), xs);
969
+ }
970
+ function average(xs, averager) {
971
+ let count = 0;
972
+ const total = fold((acc, x) => {
973
+ count = ((count + 1) | 0);
974
+ return averager.Add(acc, x);
975
+ }, averager.GetZero(), xs);
976
+ return averager.DivideByInt(total, count);
977
+ }
978
+ function averageBy(f, xs, averager) {
979
+ let count = 0;
980
+ const total = fold((acc, x) => {
981
+ count = ((count + 1) | 0);
982
+ return averager.Add(acc, f(x));
983
+ }, averager.GetZero(), xs);
984
+ return averager.DivideByInt(total, count);
985
+ }
986
+ function permute(f, xs) {
987
+ return ofArray(permute$1(f, toArray(xs)));
988
+ }
989
+ function chunkBySize(chunkSize, xs) {
990
+ return ofArray(map$1(ofArray, chunkBySize$1(chunkSize, toArray(xs))));
991
+ }
992
+ function allPairs(xs, ys) {
993
+ const root = FSharpList_get_Empty();
994
+ let node = root;
995
+ iterate((x) => {
996
+ iterate((y) => {
997
+ let xs_1, t;
998
+ node = ((xs_1 = node, (t = (new FSharpList([x, y], undefined)), (xs_1.tail = t, t))));
999
+ }, ys);
1000
+ }, xs);
1001
+ const xs_3 = node;
1002
+ const t_2 = FSharpList_get_Empty();
1003
+ xs_3.tail = t_2;
1004
+ return FSharpList__get_Tail(root);
1005
+ }
1006
+ function skip(count_mut, xs_mut) {
1007
+ skip: while (true) {
1008
+ const count = count_mut, xs = xs_mut;
1009
+ if (count <= 0) {
1010
+ return xs;
1011
+ }
1012
+ else if (FSharpList__get_IsEmpty(xs)) {
1013
+ throw new Error((SR_notEnoughElements + "\\nParameter name: ") + "list");
1014
+ }
1015
+ else {
1016
+ count_mut = (count - 1);
1017
+ xs_mut = FSharpList__get_Tail(xs);
1018
+ continue skip;
1019
+ }
1020
+ break;
1021
+ }
1022
+ }
636
1023
  function skipWhile(predicate_mut, xs_mut) {
637
1024
  skipWhile: while (true) {
638
1025
  const predicate = predicate_mut, xs = xs_mut;
@@ -647,8 +1034,38 @@ function skipWhile(predicate_mut, xs_mut) {
647
1034
  xs_mut = FSharpList__get_Tail(xs);
648
1035
  continue skipWhile;
649
1036
  }
1037
+ break;
650
1038
  }
651
1039
  }
1040
+ function take(count, xs) {
1041
+ if (count < 0) {
1042
+ throw new Error((SR_inputMustBeNonNegative + "\\nParameter name: ") + "count");
1043
+ }
1044
+ const loop = (i_mut, acc_mut, xs_1_mut) => {
1045
+ let t;
1046
+ loop: while (true) {
1047
+ const i = i_mut, acc = acc_mut, xs_1 = xs_1_mut;
1048
+ if (i <= 0) {
1049
+ return acc;
1050
+ }
1051
+ else if (FSharpList__get_IsEmpty(xs_1)) {
1052
+ throw new Error((SR_notEnoughElements + "\\nParameter name: ") + "list");
1053
+ }
1054
+ else {
1055
+ i_mut = (i - 1);
1056
+ acc_mut = ((t = (new FSharpList(FSharpList__get_Head(xs_1), undefined)), (acc.tail = t, t)));
1057
+ xs_1_mut = FSharpList__get_Tail(xs_1);
1058
+ continue loop;
1059
+ }
1060
+ break;
1061
+ }
1062
+ };
1063
+ const root = FSharpList_get_Empty();
1064
+ const node = loop(count, root, xs);
1065
+ const t_2 = FSharpList_get_Empty();
1066
+ node.tail = t_2;
1067
+ return FSharpList__get_Tail(root);
1068
+ }
652
1069
  function takeWhile(predicate, xs) {
653
1070
  const loop = (acc_mut, xs_1_mut) => {
654
1071
  let t;
@@ -665,6 +1082,7 @@ function takeWhile(predicate, xs) {
665
1082
  xs_1_mut = FSharpList__get_Tail(xs_1);
666
1083
  continue loop;
667
1084
  }
1085
+ break;
668
1086
  }
669
1087
  };
670
1088
  const root = FSharpList_get_Empty();
@@ -673,8 +1091,186 @@ function takeWhile(predicate, xs) {
673
1091
  node.tail = t_2;
674
1092
  return FSharpList__get_Tail(root);
675
1093
  }
1094
+ function truncate(count, xs) {
1095
+ const loop = (i_mut, acc_mut, xs_1_mut) => {
1096
+ let t;
1097
+ loop: while (true) {
1098
+ const i = i_mut, acc = acc_mut, xs_1 = xs_1_mut;
1099
+ if (i <= 0) {
1100
+ return acc;
1101
+ }
1102
+ else if (FSharpList__get_IsEmpty(xs_1)) {
1103
+ return acc;
1104
+ }
1105
+ else {
1106
+ i_mut = (i - 1);
1107
+ acc_mut = ((t = (new FSharpList(FSharpList__get_Head(xs_1), undefined)), (acc.tail = t, t)));
1108
+ xs_1_mut = FSharpList__get_Tail(xs_1);
1109
+ continue loop;
1110
+ }
1111
+ break;
1112
+ }
1113
+ };
1114
+ const root = FSharpList_get_Empty();
1115
+ const node = loop(count, root, xs);
1116
+ const t_2 = FSharpList_get_Empty();
1117
+ node.tail = t_2;
1118
+ return FSharpList__get_Tail(root);
1119
+ }
1120
+ function getSlice(startIndex, endIndex, xs) {
1121
+ const len = length(xs) | 0;
1122
+ let startIndex_1;
1123
+ const index = defaultArg(startIndex, 0) | 0;
1124
+ startIndex_1 = ((index < 0) ? 0 : index);
1125
+ let endIndex_1;
1126
+ const index_1 = defaultArg(endIndex, len - 1) | 0;
1127
+ endIndex_1 = ((index_1 >= len) ? (len - 1) : index_1);
1128
+ if (endIndex_1 < startIndex_1) {
1129
+ return FSharpList_get_Empty();
1130
+ }
1131
+ else {
1132
+ return take((endIndex_1 - startIndex_1) + 1, skip(startIndex_1, xs));
1133
+ }
1134
+ }
1135
+ function splitAt(index, xs) {
1136
+ if (index < 0) {
1137
+ throw new Error((SR_inputMustBeNonNegative + "\\nParameter name: ") + "index");
1138
+ }
1139
+ if (index > FSharpList__get_Length(xs)) {
1140
+ throw new Error((SR_notEnoughElements + "\\nParameter name: ") + "index");
1141
+ }
1142
+ return [take(index, xs), skip(index, xs)];
1143
+ }
1144
+ function exactlyOne(xs) {
1145
+ if (FSharpList__get_IsEmpty(xs)) {
1146
+ throw new Error((SR_inputSequenceEmpty + "\\nParameter name: ") + "list");
1147
+ }
1148
+ else if (FSharpList__get_IsEmpty(FSharpList__get_Tail(xs))) {
1149
+ return FSharpList__get_Head(xs);
1150
+ }
1151
+ else {
1152
+ throw new Error((SR_inputSequenceTooLong + "\\nParameter name: ") + "list");
1153
+ }
1154
+ }
1155
+ function tryExactlyOne(xs) {
1156
+ if (!FSharpList__get_IsEmpty(xs) && FSharpList__get_IsEmpty(FSharpList__get_Tail(xs))) {
1157
+ return some(FSharpList__get_Head(xs));
1158
+ }
1159
+ else {
1160
+ return undefined;
1161
+ }
1162
+ }
1163
+ function where(predicate, xs) {
1164
+ return filter(predicate, xs);
1165
+ }
1166
+ function pairwise(xs) {
1167
+ return ofArray(pairwise$1(toArray(xs)));
1168
+ }
1169
+ function windowed(windowSize, xs) {
1170
+ return ofArray(map$1(ofArray, windowed$1(windowSize, toArray(xs))));
1171
+ }
1172
+ function splitInto(chunks, xs) {
1173
+ return ofArray(map$1(ofArray, splitInto$1(chunks, toArray(xs))));
1174
+ }
676
1175
  function transpose(lists) {
677
1176
  return ofArray(map$1(ofArray, transpose$1(map$1(toArray, Array.from(lists)))));
678
1177
  }
1178
+ function insertAt(index, y, xs) {
1179
+ let i = -1;
1180
+ let isDone = false;
1181
+ const result = fold((acc, x) => {
1182
+ i = ((i + 1) | 0);
1183
+ if (i === index) {
1184
+ isDone = true;
1185
+ return FSharpList_Cons_305B8EAC(x, FSharpList_Cons_305B8EAC(y, acc));
1186
+ }
1187
+ else {
1188
+ return FSharpList_Cons_305B8EAC(x, acc);
1189
+ }
1190
+ }, FSharpList_get_Empty(), xs);
1191
+ return reverse(isDone ? result : (((i + 1) === index) ? FSharpList_Cons_305B8EAC(y, result) : (() => {
1192
+ throw new Error((SR_indexOutOfBounds + "\\nParameter name: ") + "index");
1193
+ })()));
1194
+ }
1195
+ function insertManyAt(index, ys, xs) {
1196
+ let i = -1;
1197
+ let isDone = false;
1198
+ const ys_1 = ofSeq(ys);
1199
+ const result = fold((acc, x) => {
1200
+ i = ((i + 1) | 0);
1201
+ if (i === index) {
1202
+ isDone = true;
1203
+ return FSharpList_Cons_305B8EAC(x, append(ys_1, acc));
1204
+ }
1205
+ else {
1206
+ return FSharpList_Cons_305B8EAC(x, acc);
1207
+ }
1208
+ }, FSharpList_get_Empty(), xs);
1209
+ return reverse(isDone ? result : (((i + 1) === index) ? append(ys_1, result) : (() => {
1210
+ throw new Error((SR_indexOutOfBounds + "\\nParameter name: ") + "index");
1211
+ })()));
1212
+ }
1213
+ function removeAt(index, xs) {
1214
+ let i = -1;
1215
+ let isDone = false;
1216
+ const ys = filter((_arg) => {
1217
+ i = ((i + 1) | 0);
1218
+ if (i === index) {
1219
+ isDone = true;
1220
+ return false;
1221
+ }
1222
+ else {
1223
+ return true;
1224
+ }
1225
+ }, xs);
1226
+ if (!isDone) {
1227
+ throw new Error((SR_indexOutOfBounds + "\\nParameter name: ") + "index");
1228
+ }
1229
+ return ys;
1230
+ }
1231
+ function removeManyAt(index, count, xs) {
1232
+ let i = -1;
1233
+ let status = -1;
1234
+ const ys = filter((_arg) => {
1235
+ i = ((i + 1) | 0);
1236
+ if (i === index) {
1237
+ status = 0;
1238
+ return false;
1239
+ }
1240
+ else if (i > index) {
1241
+ if (i < (index + count)) {
1242
+ return false;
1243
+ }
1244
+ else {
1245
+ status = 1;
1246
+ return true;
1247
+ }
1248
+ }
1249
+ else {
1250
+ return true;
1251
+ }
1252
+ }, xs);
1253
+ const status_1 = (((status === 0) && ((i + 1) === (index + count))) ? 1 : status) | 0;
1254
+ if (status_1 < 1) {
1255
+ throw new Error((SR_indexOutOfBounds + "\\nParameter name: ") + ((status_1 < 0) ? "index" : "count"));
1256
+ }
1257
+ return ys;
1258
+ }
1259
+ function updateAt(index, y, xs) {
1260
+ let isDone = false;
1261
+ const ys = mapIndexed((i, x) => {
1262
+ if (i === index) {
1263
+ isDone = true;
1264
+ return y;
1265
+ }
1266
+ else {
1267
+ return x;
1268
+ }
1269
+ }, xs);
1270
+ if (!isDone) {
1271
+ throw new Error((SR_indexOutOfBounds + "\\nParameter name: ") + "index");
1272
+ }
1273
+ return ys;
1274
+ }
679
1275
 
680
- export { FSharpList, FSharpList_Cons_305B8EAC, FSharpList__get_Head, FSharpList__get_IsEmpty, FSharpList__get_Item_Z524259A4, FSharpList__get_Length, FSharpList__get_Tail, FSharpList_get_Empty, ListEnumerator$1, ListEnumerator$1_$ctor_3002E699, append, choose, collect, concat, cons, empty, exists, filter, find, fold, fold2, foldBack, foldIndexed, head, indexNotFound, initialize, isEmpty, item, iterate, iterateIndexed, length, map, map2, mapIndexed, ofArray, ofArrayWithTail, ofSeq, pick, reduce, reverse, singleton, skipWhile, sortBy, sortWith, tail, takeWhile, toArray, transpose, tryFind, tryFindIndex, tryHead, tryItem, tryLast, tryPick, unzip, zip };
1276
+ export { FSharpList, FSharpList_$reflection, FSharpList_Cons_305B8EAC, FSharpList__get_Head, FSharpList__get_IsEmpty, FSharpList__get_Item_Z524259A4, FSharpList__get_Length, FSharpList__get_Tail, FSharpList_get_Empty, ListEnumerator$1, ListEnumerator$1_$ctor_3002E699, ListEnumerator$1_$reflection, allPairs, append, average, averageBy, choose, chunkBySize, collect, compareWith, concat, cons, contains, empty, exactlyOne, exists, exists2, filter, find, findBack, findIndex, findIndexBack, fold, fold2, foldBack, foldBack2, foldIndexed, forAll, forAll2, getSlice, head, indexNotFound, indexed, initialize, insertAt, insertManyAt, isEmpty, item, iterate, iterate2, iterateIndexed, iterateIndexed2, last, length, map, map2, map3, mapFold, mapFoldBack, mapIndexed, mapIndexed2, max, maxBy, min, minBy, ofArray, ofArrayWithTail, ofSeq, pairwise, partition, permute, pick, reduce, reduceBack, removeAt, removeManyAt, replicate, reverse, scan, scanBack, singleton, skip, skipWhile, sort, sortBy, sortByDescending, sortDescending, sortWith, splitAt, splitInto, sum, sumBy, tail, take, takeWhile, toArray, toSeq, transpose, truncate, tryExactlyOne, tryFind, tryFindBack, tryFindIndex, tryFindIndexBack, tryHead, tryItem, tryLast, tryPick, unfold, unzip, unzip3, updateAt, where, windowed, zip, zip3 };