@nfdi4plants/arctrl 3.2.3 → 3.3.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 (453) hide show
  1. package/dist/ts/index.d.ts +44 -7
  2. package/dist/ts/index.d.ts.map +1 -1
  3. package/dist/ts/index.js +45 -8
  4. package/dist/ts/node_modules/@fable-org/fable-library-ts/Array.js +195 -92
  5. package/dist/ts/node_modules/@fable-org/fable-library-ts/Async.js +251 -30
  6. package/dist/ts/node_modules/@fable-org/fable-library-ts/AsyncBuilder.js +61 -11
  7. package/dist/ts/node_modules/@fable-org/fable-library-ts/BigInt.js +15 -5
  8. package/dist/ts/node_modules/@fable-org/fable-library-ts/BitConverter.js +139 -0
  9. package/dist/ts/node_modules/@fable-org/fable-library-ts/Date.js +1 -1
  10. package/dist/ts/node_modules/@fable-org/fable-library-ts/Decimal.js +68 -12
  11. package/dist/ts/node_modules/@fable-org/fable-library-ts/Double.js +24 -10
  12. package/dist/ts/node_modules/@fable-org/fable-library-ts/FSharp.Core.js +8 -2
  13. package/dist/ts/node_modules/@fable-org/fable-library-ts/Global.js +1 -1
  14. package/dist/ts/node_modules/@fable-org/fable-library-ts/Int32.js +11 -2
  15. package/dist/ts/node_modules/@fable-org/fable-library-ts/List.js +220 -155
  16. package/dist/ts/node_modules/@fable-org/fable-library-ts/Long.js +7 -2
  17. package/dist/ts/node_modules/@fable-org/fable-library-ts/Map.js +46 -39
  18. package/dist/ts/node_modules/@fable-org/fable-library-ts/MutableMap.js +75 -92
  19. package/dist/ts/node_modules/@fable-org/fable-library-ts/MutableSet.js +56 -76
  20. package/dist/ts/node_modules/@fable-org/fable-library-ts/NumberStyles.js +54 -0
  21. package/dist/ts/node_modules/@fable-org/fable-library-ts/Numeric.js +10 -5
  22. package/dist/ts/node_modules/@fable-org/fable-library-ts/Random.js +3 -4
  23. package/dist/ts/node_modules/@fable-org/fable-library-ts/Range.js +4 -3
  24. package/dist/ts/node_modules/@fable-org/fable-library-ts/RegExp.js +2 -2
  25. package/dist/ts/node_modules/@fable-org/fable-library-ts/Seq.js +128 -64
  26. package/dist/ts/node_modules/@fable-org/fable-library-ts/Seq2.js +4 -8
  27. package/dist/ts/node_modules/@fable-org/fable-library-ts/Set.js +64 -57
  28. package/dist/ts/node_modules/@fable-org/fable-library-ts/String.js +68 -21
  29. package/dist/ts/node_modules/@fable-org/fable-library-ts/System.Collections.Generic.js +3 -2
  30. package/dist/ts/node_modules/@fable-org/fable-library-ts/System.Text.js +2 -2
  31. package/dist/ts/node_modules/@fable-org/fable-library-ts/System.js +5 -5
  32. package/dist/ts/node_modules/@fable-org/fable-library-ts/Types.js +23 -12
  33. package/dist/ts/node_modules/@fable-org/fable-library-ts/Util.js +88 -49
  34. package/dist/ts/node_modules/@fable-org/fable-library-ts/lib/big.js +121 -74
  35. package/dist/ts/ts/ARC.d.ts +19 -2
  36. package/dist/ts/ts/ARC.d.ts.map +1 -1
  37. package/dist/ts/ts/ARC.js +128 -89
  38. package/dist/ts/ts/CWL/CWLKnownFieldNames.d.ts +0 -2
  39. package/dist/ts/ts/CWL/CWLKnownFieldNames.d.ts.map +1 -1
  40. package/dist/ts/ts/CWL/CWLKnownFieldNames.js +1 -7
  41. package/dist/ts/ts/CWL/CWLProcessingUnit.d.ts +46 -27
  42. package/dist/ts/ts/CWL/CWLProcessingUnit.d.ts.map +1 -1
  43. package/dist/ts/ts/CWL/CWLProcessingUnit.js +312 -123
  44. package/dist/ts/ts/CWL/CWLTypes.d.ts +481 -148
  45. package/dist/ts/ts/CWL/CWLTypes.d.ts.map +1 -1
  46. package/dist/ts/ts/CWL/CWLTypes.js +887 -201
  47. package/dist/ts/ts/CWL/Decode.d.ts +480 -211
  48. package/dist/ts/ts/CWL/Decode.d.ts.map +1 -1
  49. package/dist/ts/ts/CWL/Decode.js +3614 -2462
  50. package/dist/ts/ts/CWL/DynamicObjHelpers.d.ts +9 -0
  51. package/dist/ts/ts/CWL/DynamicObjHelpers.d.ts.map +1 -1
  52. package/dist/ts/ts/CWL/DynamicObjHelpers.js +55 -5
  53. package/dist/ts/ts/CWL/Encode.d.ts +225 -85
  54. package/dist/ts/ts/CWL/Encode.d.ts.map +1 -1
  55. package/dist/ts/ts/CWL/Encode.js +1858 -970
  56. package/dist/ts/ts/CWL/ExpressionToolDescription.d.ts +42 -28
  57. package/dist/ts/ts/CWL/ExpressionToolDescription.d.ts.map +1 -1
  58. package/dist/ts/ts/CWL/ExpressionToolDescription.js +34 -13
  59. package/dist/ts/ts/CWL/HashHelpers.d.ts +38 -0
  60. package/dist/ts/ts/CWL/HashHelpers.d.ts.map +1 -1
  61. package/dist/ts/ts/CWL/HashHelpers.js +255 -6
  62. package/dist/ts/ts/CWL/Inputs.d.ts +127 -56
  63. package/dist/ts/ts/CWL/Inputs.d.ts.map +1 -1
  64. package/dist/ts/ts/CWL/Inputs.js +107 -16
  65. package/dist/ts/ts/CWL/OperationDescription.d.ts +41 -21
  66. package/dist/ts/ts/CWL/OperationDescription.d.ts.map +1 -1
  67. package/dist/ts/ts/CWL/OperationDescription.js +35 -9
  68. package/dist/ts/ts/CWL/Outputs.d.ts +93 -42
  69. package/dist/ts/ts/CWL/Outputs.d.ts.map +1 -1
  70. package/dist/ts/ts/CWL/Outputs.js +101 -19
  71. package/dist/ts/ts/CWL/ParameterReference.d.ts +11 -8
  72. package/dist/ts/ts/CWL/ParameterReference.d.ts.map +1 -1
  73. package/dist/ts/ts/CWL/ParameterReference.js +18 -25
  74. package/dist/ts/ts/CWL/ParameterValue.d.ts +15 -1
  75. package/dist/ts/ts/CWL/ParameterValue.d.ts.map +1 -1
  76. package/dist/ts/ts/CWL/ParameterValue.js +59 -35
  77. package/dist/ts/ts/CWL/Requirements.d.ts +240 -98
  78. package/dist/ts/ts/CWL/Requirements.d.ts.map +1 -1
  79. package/dist/ts/ts/CWL/Requirements.js +462 -89
  80. package/dist/ts/ts/CWL/ScalarQuoting.d.ts +51 -0
  81. package/dist/ts/ts/CWL/ScalarQuoting.d.ts.map +1 -0
  82. package/dist/ts/ts/CWL/ScalarQuoting.js +250 -0
  83. package/dist/ts/ts/CWL/ToolDescription.d.ts +63 -50
  84. package/dist/ts/ts/CWL/ToolDescription.d.ts.map +1 -1
  85. package/dist/ts/ts/CWL/ToolDescription.js +34 -13
  86. package/dist/ts/ts/CWL/WorkflowDescription.d.ts +45 -26
  87. package/dist/ts/ts/CWL/WorkflowDescription.d.ts.map +1 -1
  88. package/dist/ts/ts/CWL/WorkflowDescription.js +38 -11
  89. package/dist/ts/ts/CWL/WorkflowSteps.d.ts +248 -65
  90. package/dist/ts/ts/CWL/WorkflowSteps.d.ts.map +1 -1
  91. package/dist/ts/ts/CWL/WorkflowSteps.js +413 -43
  92. package/dist/ts/ts/CWLRunResolver.d.ts +30 -12
  93. package/dist/ts/ts/CWLRunResolver.d.ts.map +1 -1
  94. package/dist/ts/ts/CWLRunResolver.js +221 -86
  95. package/dist/ts/ts/Contract/ARC.d.ts.map +1 -1
  96. package/dist/ts/ts/Contract/ARC.js +13 -14
  97. package/dist/ts/ts/Contract/ArcAssay.d.ts.map +1 -1
  98. package/dist/ts/ts/Contract/ArcAssay.js +4 -4
  99. package/dist/ts/ts/Contract/ArcInvestigation.d.ts.map +1 -1
  100. package/dist/ts/ts/Contract/ArcInvestigation.js +3 -4
  101. package/dist/ts/ts/Contract/ArcRun.d.ts +12 -2
  102. package/dist/ts/ts/Contract/ArcRun.d.ts.map +1 -1
  103. package/dist/ts/ts/Contract/ArcRun.js +47 -20
  104. package/dist/ts/ts/Contract/ArcStudy.d.ts.map +1 -1
  105. package/dist/ts/ts/Contract/ArcStudy.js +4 -4
  106. package/dist/ts/ts/Contract/ArcWorkflow.d.ts +18 -4
  107. package/dist/ts/ts/Contract/ArcWorkflow.d.ts.map +1 -1
  108. package/dist/ts/ts/Contract/ArcWorkflow.js +55 -17
  109. package/dist/ts/ts/Contract/Datamap.d.ts.map +1 -1
  110. package/dist/ts/ts/Contract/Datamap.js +16 -17
  111. package/dist/ts/ts/Contract/Git.js +1 -1
  112. package/dist/ts/ts/Contract/ValidationPackagesConfig.d.ts.map +1 -1
  113. package/dist/ts/ts/Contract/ValidationPackagesConfig.js +4 -5
  114. package/dist/ts/ts/ContractIO/ContractIO.d.ts.map +1 -1
  115. package/dist/ts/ts/ContractIO/ContractIO.js +15 -16
  116. package/dist/ts/ts/Conversion/Assay.d.ts.map +1 -1
  117. package/dist/ts/ts/Conversion/Assay.js +26 -18
  118. package/dist/ts/ts/Conversion/Basic.d.ts +4 -0
  119. package/dist/ts/ts/Conversion/Basic.d.ts.map +1 -1
  120. package/dist/ts/ts/Conversion/Basic.js +55 -31
  121. package/dist/ts/ts/Conversion/ColumnIndex.d.ts.map +1 -1
  122. package/dist/ts/ts/Conversion/ColumnIndex.js +2 -4
  123. package/dist/ts/ts/Conversion/DateTime.d.ts.map +1 -1
  124. package/dist/ts/ts/Conversion/DateTime.js +1 -2
  125. package/dist/ts/ts/Conversion/Investigation.js +11 -11
  126. package/dist/ts/ts/Conversion/Person.js +11 -11
  127. package/dist/ts/ts/Conversion/Process.d.ts.map +1 -1
  128. package/dist/ts/ts/Conversion/Process.js +107 -86
  129. package/dist/ts/ts/Conversion/Run.d.ts +36 -6
  130. package/dist/ts/ts/Conversion/Run.d.ts.map +1 -1
  131. package/dist/ts/ts/Conversion/Run.js +320 -136
  132. package/dist/ts/ts/Conversion/ScholarlyArticle.d.ts.map +1 -1
  133. package/dist/ts/ts/Conversion/ScholarlyArticle.js +75 -9
  134. package/dist/ts/ts/Conversion/Study.d.ts.map +1 -1
  135. package/dist/ts/ts/Conversion/Study.js +23 -12
  136. package/dist/ts/ts/Conversion/Table.js +5 -5
  137. package/dist/ts/ts/Conversion/Workflow.d.ts +48 -9
  138. package/dist/ts/ts/Conversion/Workflow.d.ts.map +1 -1
  139. package/dist/ts/ts/Conversion/Workflow.js +655 -163
  140. package/dist/ts/ts/Conversion.js +6 -6
  141. package/dist/ts/ts/Core/ArcTypes.d.ts +73 -28
  142. package/dist/ts/ts/Core/ArcTypes.d.ts.map +1 -1
  143. package/dist/ts/ts/Core/ArcTypes.js +219 -129
  144. package/dist/ts/ts/Core/Comment.d.ts.map +1 -1
  145. package/dist/ts/ts/Core/Comment.js +2 -2
  146. package/dist/ts/ts/Core/CommentList.js +7 -7
  147. package/dist/ts/ts/Core/Conversion.d.ts.map +1 -1
  148. package/dist/ts/ts/Core/Conversion.js +41 -41
  149. package/dist/ts/ts/Core/Data.d.ts.map +1 -1
  150. package/dist/ts/ts/Core/Data.js +14 -11
  151. package/dist/ts/ts/Core/DataContext.d.ts +1 -1
  152. package/dist/ts/ts/Core/DataContext.d.ts.map +1 -1
  153. package/dist/ts/ts/Core/DataContext.js +4 -4
  154. package/dist/ts/ts/Core/DataFile.d.ts +11 -8
  155. package/dist/ts/ts/Core/DataFile.d.ts.map +1 -1
  156. package/dist/ts/ts/Core/DataFile.js +55 -61
  157. package/dist/ts/ts/Core/Datamap.d.ts.map +1 -1
  158. package/dist/ts/ts/Core/Datamap.js +2 -3
  159. package/dist/ts/ts/Core/Helper/Collections.d.ts.map +1 -1
  160. package/dist/ts/ts/Core/Helper/Collections.js +2 -4
  161. package/dist/ts/ts/Core/Helper/Identifier.d.ts.map +1 -1
  162. package/dist/ts/ts/Core/Helper/Identifier.js +12 -15
  163. package/dist/ts/ts/Core/Helper/ORCID.d.ts.map +1 -1
  164. package/dist/ts/ts/Core/Helper/ORCID.js +2 -3
  165. package/dist/ts/ts/Core/Helper/Regex.d.ts.map +1 -1
  166. package/dist/ts/ts/Core/Helper/Regex.js +52 -53
  167. package/dist/ts/ts/Core/Helper/SemVer.d.ts +13 -3
  168. package/dist/ts/ts/Core/Helper/SemVer.d.ts.map +1 -1
  169. package/dist/ts/ts/Core/Helper/SemVer.js +96 -6
  170. package/dist/ts/ts/Core/Helper/Url.d.ts.map +1 -1
  171. package/dist/ts/ts/Core/Helper/Url.js +1 -1
  172. package/dist/ts/ts/Core/OntologyAnnotation.js +22 -22
  173. package/dist/ts/ts/Core/Person.d.ts.map +1 -1
  174. package/dist/ts/ts/Core/Person.js +2 -2
  175. package/dist/ts/ts/Core/Process/ColumnIndex.d.ts.map +1 -1
  176. package/dist/ts/ts/Core/Process/ColumnIndex.js +10 -12
  177. package/dist/ts/ts/Core/Process/Component.d.ts.map +1 -1
  178. package/dist/ts/ts/Core/Process/Component.js +22 -22
  179. package/dist/ts/ts/Core/Process/Factor.d.ts.map +1 -1
  180. package/dist/ts/ts/Core/Process/Factor.js +7 -7
  181. package/dist/ts/ts/Core/Process/FactorValue.d.ts.map +1 -1
  182. package/dist/ts/ts/Core/Process/FactorValue.js +15 -15
  183. package/dist/ts/ts/Core/Process/Material.d.ts.map +1 -1
  184. package/dist/ts/ts/Core/Process/Material.js +2 -2
  185. package/dist/ts/ts/Core/Process/MaterialAttribute.d.ts.map +1 -1
  186. package/dist/ts/ts/Core/Process/MaterialAttribute.js +6 -6
  187. package/dist/ts/ts/Core/Process/MaterialAttributeValue.d.ts.map +1 -1
  188. package/dist/ts/ts/Core/Process/MaterialAttributeValue.js +16 -16
  189. package/dist/ts/ts/Core/Process/Process.js +21 -21
  190. package/dist/ts/ts/Core/Process/ProcessInput.d.ts.map +1 -1
  191. package/dist/ts/ts/Core/Process/ProcessInput.js +2 -2
  192. package/dist/ts/ts/Core/Process/ProcessOutput.d.ts.map +1 -1
  193. package/dist/ts/ts/Core/Process/ProcessOutput.js +2 -2
  194. package/dist/ts/ts/Core/Process/ProcessParameterValue.d.ts.map +1 -1
  195. package/dist/ts/ts/Core/Process/ProcessParameterValue.js +17 -17
  196. package/dist/ts/ts/Core/Process/ProcessSequence.js +4 -4
  197. package/dist/ts/ts/Core/Process/Protocol.d.ts.map +1 -1
  198. package/dist/ts/ts/Core/Process/Protocol.js +9 -9
  199. package/dist/ts/ts/Core/Process/ProtocolParameter.d.ts.map +1 -1
  200. package/dist/ts/ts/Core/Process/ProtocolParameter.js +6 -6
  201. package/dist/ts/ts/Core/Publication.d.ts.map +1 -1
  202. package/dist/ts/ts/Core/Publication.js +3 -3
  203. package/dist/ts/ts/Core/ScalarValue.d.ts.map +1 -1
  204. package/dist/ts/ts/Core/ScalarValue.js +9 -13
  205. package/dist/ts/ts/Core/Table/ArcTable.d.ts.map +1 -1
  206. package/dist/ts/ts/Core/Table/ArcTable.js +18 -18
  207. package/dist/ts/ts/Core/Table/ArcTableAux.d.ts +1 -1
  208. package/dist/ts/ts/Core/Table/ArcTableAux.d.ts.map +1 -1
  209. package/dist/ts/ts/Core/Table/ArcTableAux.js +50 -70
  210. package/dist/ts/ts/Core/Table/ArcTables.js +16 -16
  211. package/dist/ts/ts/Core/Table/CompositeHeader.d.ts.map +1 -1
  212. package/dist/ts/ts/Core/Table/CompositeHeader.js +5 -6
  213. package/dist/ts/ts/Core/Templates.d.ts.map +1 -1
  214. package/dist/ts/ts/Core/Templates.js +2 -2
  215. package/dist/ts/ts/FileSystem/Path.d.ts +13 -2
  216. package/dist/ts/ts/FileSystem/Path.d.ts.map +1 -1
  217. package/dist/ts/ts/FileSystem/Path.js +37 -19
  218. package/dist/ts/ts/Json/Assay.js +22 -22
  219. package/dist/ts/ts/Json/Comment.js +9 -9
  220. package/dist/ts/ts/Json/Data.d.ts.map +1 -1
  221. package/dist/ts/ts/Json/Data.js +11 -11
  222. package/dist/ts/ts/Json/Datamap/DataContext.js +2 -2
  223. package/dist/ts/ts/Json/Decode.d.ts.map +1 -1
  224. package/dist/ts/ts/Json/Decode.js +3 -5
  225. package/dist/ts/ts/Json/Encode.js +2 -2
  226. package/dist/ts/ts/Json/Investigation.d.ts.map +1 -1
  227. package/dist/ts/ts/Json/Investigation.js +20 -20
  228. package/dist/ts/ts/Json/OntologyAnnotation.d.ts.map +1 -1
  229. package/dist/ts/ts/Json/OntologyAnnotation.js +18 -18
  230. package/dist/ts/ts/Json/OntologySourceReference.d.ts.map +1 -1
  231. package/dist/ts/ts/Json/OntologySourceReference.js +9 -9
  232. package/dist/ts/ts/Json/Person.d.ts.map +1 -1
  233. package/dist/ts/ts/Json/Person.js +20 -20
  234. package/dist/ts/ts/Json/Process/AssayMaterials.d.ts.map +1 -1
  235. package/dist/ts/ts/Json/Process/AssayMaterials.js +1 -2
  236. package/dist/ts/ts/Json/Process/Component.d.ts.map +1 -1
  237. package/dist/ts/ts/Json/Process/Component.js +5 -6
  238. package/dist/ts/ts/Json/Process/Factor.d.ts.map +1 -1
  239. package/dist/ts/ts/Json/Process/Factor.js +7 -7
  240. package/dist/ts/ts/Json/Process/FactorValue.d.ts.map +1 -1
  241. package/dist/ts/ts/Json/Process/FactorValue.js +2 -3
  242. package/dist/ts/ts/Json/Process/Material.d.ts.map +1 -1
  243. package/dist/ts/ts/Json/Process/Material.js +9 -10
  244. package/dist/ts/ts/Json/Process/MaterialAttribute.d.ts.map +1 -1
  245. package/dist/ts/ts/Json/Process/MaterialAttribute.js +5 -6
  246. package/dist/ts/ts/Json/Process/MaterialAttributeValue.d.ts.map +1 -1
  247. package/dist/ts/ts/Json/Process/MaterialAttributeValue.js +2 -3
  248. package/dist/ts/ts/Json/Process/Process.d.ts.map +1 -1
  249. package/dist/ts/ts/Json/Process/Process.js +8 -9
  250. package/dist/ts/ts/Json/Process/ProcessParameterValue.d.ts.map +1 -1
  251. package/dist/ts/ts/Json/Process/ProcessParameterValue.js +1 -2
  252. package/dist/ts/ts/Json/Process/Protocol.d.ts.map +1 -1
  253. package/dist/ts/ts/Json/Process/Protocol.js +17 -17
  254. package/dist/ts/ts/Json/Process/ProtocolParameter.d.ts.map +1 -1
  255. package/dist/ts/ts/Json/Process/ProtocolParameter.js +6 -6
  256. package/dist/ts/ts/Json/Process/Sample.d.ts.map +1 -1
  257. package/dist/ts/ts/Json/Process/Sample.js +9 -9
  258. package/dist/ts/ts/Json/Process/Source.d.ts.map +1 -1
  259. package/dist/ts/ts/Json/Process/Source.js +10 -11
  260. package/dist/ts/ts/Json/Process/StudyMaterials.d.ts.map +1 -1
  261. package/dist/ts/ts/Json/Process/StudyMaterials.js +1 -2
  262. package/dist/ts/ts/Json/PropertyValue.d.ts.map +1 -1
  263. package/dist/ts/ts/Json/PropertyValue.js +24 -24
  264. package/dist/ts/ts/Json/Publication.d.ts.map +1 -1
  265. package/dist/ts/ts/Json/Publication.js +10 -10
  266. package/dist/ts/ts/Json/ROCrate/LDContext.js +1 -2
  267. package/dist/ts/ts/Json/ROCrate/LDGraph.js +2 -2
  268. package/dist/ts/ts/Json/ROCrate/LDNode.js +5 -5
  269. package/dist/ts/ts/Json/Run.js +9 -9
  270. package/dist/ts/ts/Json/StringTable.d.ts.map +1 -1
  271. package/dist/ts/ts/Json/StringTable.js +4 -7
  272. package/dist/ts/ts/Json/Study.js +20 -20
  273. package/dist/ts/ts/Json/Table/CellTable.js +1 -2
  274. package/dist/ts/ts/Json/Table/OATable.js +1 -2
  275. package/dist/ts/ts/Json/Workflow.js +9 -9
  276. package/dist/ts/ts/Json.d.ts +121 -1
  277. package/dist/ts/ts/Json.d.ts.map +1 -1
  278. package/dist/ts/ts/Json.js +310 -2
  279. package/dist/ts/ts/JsonIO/Comment.d.ts +15 -0
  280. package/dist/ts/ts/JsonIO/Comment.d.ts.map +1 -0
  281. package/dist/ts/ts/JsonIO/Comment.js +67 -0
  282. package/dist/ts/ts/JsonIO/Data.d.ts +9 -0
  283. package/dist/ts/ts/JsonIO/Data.d.ts.map +1 -0
  284. package/dist/ts/ts/JsonIO/Data.js +49 -0
  285. package/dist/ts/ts/JsonIO/DataFile.d.ts +9 -0
  286. package/dist/ts/ts/JsonIO/DataFile.d.ts.map +1 -0
  287. package/dist/ts/ts/JsonIO/DataFile.js +48 -0
  288. package/dist/ts/ts/JsonIO/LDObject.d.ts +6 -0
  289. package/dist/ts/ts/JsonIO/LDObject.d.ts.map +1 -1
  290. package/dist/ts/ts/JsonIO/LDObject.js +173 -17
  291. package/dist/ts/ts/JsonIO/OntologySourceReference.d.ts +15 -0
  292. package/dist/ts/ts/JsonIO/OntologySourceReference.d.ts.map +1 -0
  293. package/dist/ts/ts/JsonIO/OntologySourceReference.js +67 -0
  294. package/dist/ts/ts/JsonIO/Publication.d.ts +15 -0
  295. package/dist/ts/ts/JsonIO/Publication.d.ts.map +1 -0
  296. package/dist/ts/ts/JsonIO/Publication.js +68 -0
  297. package/dist/ts/ts/JsonIO/Table/ArcTable.d.ts +9 -0
  298. package/dist/ts/ts/JsonIO/Table/ArcTable.d.ts.map +1 -0
  299. package/dist/ts/ts/JsonIO/Table/ArcTable.js +74 -0
  300. package/dist/ts/ts/JsonIO/Table/CompositeCell.d.ts +6 -0
  301. package/dist/ts/ts/JsonIO/Table/CompositeCell.d.ts.map +1 -0
  302. package/dist/ts/ts/JsonIO/Table/CompositeCell.js +29 -0
  303. package/dist/ts/ts/JsonIO/Table/CompositeHeader.d.ts +6 -0
  304. package/dist/ts/ts/JsonIO/Table/CompositeHeader.d.ts.map +1 -0
  305. package/dist/ts/ts/JsonIO/Table/CompositeHeader.js +29 -0
  306. package/dist/ts/ts/JsonIO/Table/IOType.d.ts +6 -0
  307. package/dist/ts/ts/JsonIO/Table/IOType.d.ts.map +1 -0
  308. package/dist/ts/ts/JsonIO/Table/IOType.js +29 -0
  309. package/dist/ts/ts/License.d.ts.map +1 -1
  310. package/dist/ts/ts/License.js +6 -6
  311. package/dist/ts/ts/ROCrate/LDContext.d.ts.map +1 -1
  312. package/dist/ts/ts/ROCrate/LDContext.js +31 -39
  313. package/dist/ts/ts/ROCrate/LDObject.d.ts.map +1 -1
  314. package/dist/ts/ts/ROCrate/LDObject.js +56 -49
  315. package/dist/ts/ts/ROCrate/LDTypes/Comment.js +2 -2
  316. package/dist/ts/ts/ROCrate/LDTypes/ComputationalWorkflow.js +3 -3
  317. package/dist/ts/ts/ROCrate/LDTypes/ComputerLanguage.js +2 -2
  318. package/dist/ts/ts/ROCrate/LDTypes/CreateAction.js +5 -5
  319. package/dist/ts/ts/ROCrate/LDTypes/CreativeWork.d.ts +1 -0
  320. package/dist/ts/ts/ROCrate/LDTypes/CreativeWork.d.ts.map +1 -1
  321. package/dist/ts/ts/ROCrate/LDTypes/CreativeWork.js +3 -0
  322. package/dist/ts/ts/ROCrate/LDTypes/Dataset.d.ts.map +1 -1
  323. package/dist/ts/ts/ROCrate/LDTypes/Dataset.js +22 -17
  324. package/dist/ts/ts/ROCrate/LDTypes/DefinedTerm.js +2 -2
  325. package/dist/ts/ts/ROCrate/LDTypes/File.js +5 -5
  326. package/dist/ts/ts/ROCrate/LDTypes/FormalParameter.js +2 -2
  327. package/dist/ts/ts/ROCrate/LDTypes/LabProcess.js +9 -9
  328. package/dist/ts/ts/ROCrate/LDTypes/LabProtocol.js +4 -4
  329. package/dist/ts/ts/ROCrate/LDTypes/Organization.js +1 -1
  330. package/dist/ts/ts/ROCrate/LDTypes/Person.js +7 -7
  331. package/dist/ts/ts/ROCrate/LDTypes/PostalAddress.js +1 -1
  332. package/dist/ts/ts/ROCrate/LDTypes/PropertyValue.d.ts.map +1 -1
  333. package/dist/ts/ts/ROCrate/LDTypes/PropertyValue.js +45 -48
  334. package/dist/ts/ts/ROCrate/LDTypes/Sample.js +3 -3
  335. package/dist/ts/ts/ROCrate/LDTypes/ScholarlyArticle.js +4 -4
  336. package/dist/ts/ts/ROCrate/LDTypes/SoftwareSourceCode.js +3 -3
  337. package/dist/ts/ts/ROCrate/LDTypes/WorkflowInvocation.js +3 -3
  338. package/dist/ts/ts/ROCrate/LDTypes/WorkflowProtocol.js +2 -2
  339. package/dist/ts/ts/ROCrateIO.d.ts +18 -4
  340. package/dist/ts/ts/ROCrateIO.d.ts.map +1 -1
  341. package/dist/ts/ts/ROCrateIO.js +49 -38
  342. package/dist/ts/ts/Spreadsheet/AnnotationTable/ArcTable.d.ts.map +1 -1
  343. package/dist/ts/ts/Spreadsheet/AnnotationTable/ArcTable.js +9 -10
  344. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeCell.d.ts.map +1 -1
  345. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeCell.js +7 -7
  346. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeColumn.d.ts.map +1 -1
  347. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeColumn.js +6 -8
  348. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeHeader.js +20 -20
  349. package/dist/ts/ts/Spreadsheet/ArcAssay.d.ts.map +1 -1
  350. package/dist/ts/ts/Spreadsheet/ArcAssay.js +7 -7
  351. package/dist/ts/ts/Spreadsheet/ArcInvestigation.js +8 -8
  352. package/dist/ts/ts/Spreadsheet/ArcRun.d.ts.map +1 -1
  353. package/dist/ts/ts/Spreadsheet/ArcRun.js +5 -6
  354. package/dist/ts/ts/Spreadsheet/ArcStudy.d.ts.map +1 -1
  355. package/dist/ts/ts/Spreadsheet/ArcStudy.js +3 -3
  356. package/dist/ts/ts/Spreadsheet/ArcWorkflow.d.ts.map +1 -1
  357. package/dist/ts/ts/Spreadsheet/ArcWorkflow.js +5 -6
  358. package/dist/ts/ts/Spreadsheet/CollectionAux.d.ts.map +1 -1
  359. package/dist/ts/ts/Spreadsheet/CollectionAux.js +10 -14
  360. package/dist/ts/ts/Spreadsheet/Datamap.js +1 -2
  361. package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapColumn.js +3 -3
  362. package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapHeader.js +10 -10
  363. package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapTable.d.ts.map +1 -1
  364. package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapTable.js +9 -10
  365. package/dist/ts/ts/Spreadsheet/Metadata/Assays.d.ts.map +1 -1
  366. package/dist/ts/ts/Spreadsheet/Metadata/Assays.js +6 -6
  367. package/dist/ts/ts/Spreadsheet/Metadata/Comment.d.ts.map +1 -1
  368. package/dist/ts/ts/Spreadsheet/Metadata/Comment.js +5 -5
  369. package/dist/ts/ts/Spreadsheet/Metadata/Contacts.d.ts.map +1 -1
  370. package/dist/ts/ts/Spreadsheet/Metadata/Contacts.js +2 -2
  371. package/dist/ts/ts/Spreadsheet/Metadata/Factors.d.ts.map +1 -1
  372. package/dist/ts/ts/Spreadsheet/Metadata/Factors.js +4 -4
  373. package/dist/ts/ts/Spreadsheet/Metadata/OntologyAnnotation.d.ts.map +1 -1
  374. package/dist/ts/ts/Spreadsheet/Metadata/OntologyAnnotation.js +3 -3
  375. package/dist/ts/ts/Spreadsheet/Metadata/Protocols.d.ts.map +1 -1
  376. package/dist/ts/ts/Spreadsheet/Metadata/Protocols.js +5 -5
  377. package/dist/ts/ts/Spreadsheet/Metadata/Publication.d.ts.map +1 -1
  378. package/dist/ts/ts/Spreadsheet/Metadata/Publication.js +4 -4
  379. package/dist/ts/ts/Spreadsheet/Metadata/Run.d.ts +1 -1
  380. package/dist/ts/ts/Spreadsheet/Metadata/Run.d.ts.map +1 -1
  381. package/dist/ts/ts/Spreadsheet/Metadata/Run.js +7 -7
  382. package/dist/ts/ts/Spreadsheet/Metadata/SparseTable.d.ts.map +1 -1
  383. package/dist/ts/ts/Spreadsheet/Metadata/SparseTable.js +17 -17
  384. package/dist/ts/ts/Spreadsheet/Metadata/Study.d.ts.map +1 -1
  385. package/dist/ts/ts/Spreadsheet/Metadata/Study.js +8 -8
  386. package/dist/ts/ts/Spreadsheet/Metadata/Workflow.d.ts.map +1 -1
  387. package/dist/ts/ts/Spreadsheet/Metadata/Workflow.js +5 -5
  388. package/dist/ts/ts/WorkflowGraph/Adapters.d.ts +1 -1
  389. package/dist/ts/ts/WorkflowGraph/Adapters.d.ts.map +1 -1
  390. package/dist/ts/ts/WorkflowGraph/Adapters.js +5 -6
  391. package/dist/ts/ts/WorkflowGraph/Builder.d.ts +25 -6
  392. package/dist/ts/ts/WorkflowGraph/Builder.d.ts.map +1 -1
  393. package/dist/ts/ts/WorkflowGraph/Builder.js +264 -138
  394. package/dist/ts/ts/WorkflowGraph/GraphTypes.d.ts +6 -0
  395. package/dist/ts/ts/WorkflowGraph/GraphTypes.d.ts.map +1 -1
  396. package/dist/ts/ts/WorkflowGraph/GraphTypes.js +4 -1
  397. package/dist/ts/ts/WorkflowGraph/ReferenceParsing.d.ts +8 -5
  398. package/dist/ts/ts/WorkflowGraph/ReferenceParsing.d.ts.map +1 -1
  399. package/dist/ts/ts/WorkflowGraph/ReferenceParsing.js +27 -10
  400. package/dist/ts/ts/Xlsx.js +3 -3
  401. package/dist/ts/ts/Yaml/ValidationPackage.d.ts +3 -3
  402. package/dist/ts/ts/Yaml/ValidationPackage.d.ts.map +1 -1
  403. package/dist/ts/ts/Yaml/ValidationPackage.js +11 -23
  404. package/dist/ts/ts/Yaml/ValidationPackagesConfig.d.ts +3 -3
  405. package/dist/ts/ts/Yaml/ValidationPackagesConfig.d.ts.map +1 -1
  406. package/dist/ts/ts/Yaml/ValidationPackagesConfig.js +11 -23
  407. package/dist/ts/ts/fable_modules/DynamicObj.8.0.0/DynamicObj.fs.js +16 -20
  408. package/dist/ts/ts/fable_modules/DynamicObj.8.0.0/FableJS.fs.js +1 -1
  409. package/dist/ts/ts/fable_modules/DynamicObj.8.0.0/ReflectionUtils.fs.js +8 -8
  410. package/dist/ts/ts/fable_modules/Fable.Promise.3.2.0/Promise.fs.js +1 -2
  411. package/dist/ts/ts/fable_modules/Fable.SimpleHttp.3.6.0/Http.fs.js +4 -4
  412. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Cells/FsCell.fs.js +8 -8
  413. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Cells/FsCellsCollection.fs.js +18 -18
  414. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/FsAddress.fs.js +3 -3
  415. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/FsWorkbook.fs.js +1 -1
  416. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/FsWorksheet.fs.js +7 -7
  417. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Json/Value.fs.js +3 -5
  418. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Json/Worksheet.fs.js +7 -7
  419. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Ranges/FsRangeBase.fs.js +1 -2
  420. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Tables/FsTable.fs.js +7 -7
  421. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.1/Cell.fs.js +2 -2
  422. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.1/Table.fs.js +1 -2
  423. package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.9.1/Decode.fs.js +49 -71
  424. package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.9.1/Encode.fs.js +1 -1
  425. package/dist/ts/ts/fable_modules/Thoth.Json.JavaScript.0.5.0/Decode.fs.js +1 -2
  426. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Compare.fs.js +857 -0
  427. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/CoreSchema.fs.js +725 -0
  428. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Decode.fs.js +1175 -0
  429. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Encode.fs.js +123 -0
  430. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Layout.fs.js +282 -0
  431. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Lexeme.fs.js +203 -0
  432. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Lexer.fs.js +1502 -0
  433. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Model.fs.js +564 -0
  434. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Node.fs.js +453 -0
  435. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Parser.fs.js +2622 -0
  436. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Reader.fs.js +108 -0
  437. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Source.fs.js +649 -0
  438. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Tag.fs.js +32 -0
  439. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Validate.fs.js +1084 -0
  440. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Writer.fs.js +2927 -0
  441. package/package.json +5 -4
  442. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Decode.fs.js +0 -1669
  443. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Encode.fs.js +0 -57
  444. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Escapes.fs.js +0 -320
  445. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Interop/JsInterop.fs.js +0 -10
  446. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Persil.fs.js +0 -414
  447. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Preprocessing.fs.js +0 -319
  448. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Reader.fs.js +0 -1884
  449. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Regex.fs.js +0 -23
  450. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/RegexActivePatterns.fs.js +0 -313
  451. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Syntax.fs.js +0 -840
  452. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Writer.fs.js +0 -689
  453. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/YAMLiciousTypes.fs.js +0 -359
@@ -1,16 +1,18 @@
1
- import { Exception, defaultOf, copyToArray, getEnumerator, disposeSafe } from './Util.js';
1
+ import { KeyNotFoundException_$ctor_Z721C83C5 } from './System.Collections.Generic.js';
2
+ import { SR_keyNotFoundAlt, SR_inputMustBeNonNegative, SR_notEnoughElements, SR_indexOutOfBounds, SR_inputSequenceEmpty } from './Global.js';
3
+ import { Operators_InvalidArg, Operators_InvalidOp } from './FSharp.Core.js';
2
4
  import { Helpers_allocateArrayFromCons } from './Native.js';
5
+ import { defaultOf, int32ToString, getEnumerator, disposeSafe } from './Util.js';
6
+ import { IndexOutOfRangeException_$ctor, ArgumentOutOfRangeException_$ctor_Z384F8060, ArgumentException_$ctor_Z721C83C5 } from './System.js';
3
7
  import { some, defaultArg, value } from './Option.js';
4
8
  import { max as max$1, min as min$1 } from './Double.js';
5
- import { SR_indexOutOfBounds, SR_Arg_ArgumentOutOfRangeException, SR_inputSequenceEmpty, SR_inputMustBeNonNegative, SR_notEnoughElements } from './Global.js';
6
- import { Operators_IsNull } from './FSharp.Core.js';
7
9
  import { nonSeeded } from './Random.js';
8
10
 
9
11
  function indexNotFound() {
10
- throw new Exception("An index satisfying the predicate was not found in the collection.");
12
+ throw KeyNotFoundException_$ctor_Z721C83C5(SR_keyNotFoundAlt);
11
13
  }
12
- function differentLengths() {
13
- throw new Exception("Arrays had different lengths");
14
+ function differentLengths(paramName) {
15
+ throw Operators_InvalidArg(paramName, "The arrays have different lengths.");
14
16
  }
15
17
  function append(array1, array2, cons) {
16
18
  const len1 = array1.length | 0;
@@ -28,16 +30,34 @@ function filter(predicate, array) {
28
30
  return array.filter(predicate);
29
31
  }
30
32
  function fill(target, targetIndex, count, value) {
33
+ if (targetIndex < 0) {
34
+ throw Operators_InvalidArg("targetIndex", SR_inputMustBeNonNegative);
35
+ }
36
+ if (count < 0) {
37
+ throw Operators_InvalidArg("count", SR_inputMustBeNonNegative);
38
+ }
39
+ if (count > 0 && targetIndex + count > target.length) {
40
+ throw IndexOutOfRangeException_$ctor();
41
+ }
31
42
  const start = targetIndex | 0;
32
43
  return target.fill(value, start, start + count);
33
44
  }
34
45
  function getSubArray(array, start, count) {
46
+ if (start < 0) {
47
+ throw Operators_InvalidArg("startIndex", SR_inputMustBeNonNegative);
48
+ }
49
+ if (count < 0) {
50
+ throw Operators_InvalidArg("count", SR_inputMustBeNonNegative);
51
+ }
52
+ if (start + count > array.length) {
53
+ throw ArgumentOutOfRangeException_$ctor_Z384F8060("count", "The index is outside the legal range.");
54
+ }
35
55
  const start_1 = start | 0;
36
56
  return array.slice(start_1, start_1 + count);
37
57
  }
38
58
  function last(array) {
39
59
  if (array.length === 0) {
40
- throw new Exception("The input array was empty (Parameter 'array')");
60
+ throw Operators_InvalidArg("array", "The input array was empty");
41
61
  }
42
62
  return item(array.length - 1, array);
43
63
  }
@@ -66,7 +86,7 @@ function map(f, source, cons) {
66
86
  }
67
87
  function mapIndexed2(f, source1, source2, cons) {
68
88
  if (source1.length !== source2.length) {
69
- throw new Exception("Arrays had different lengths");
89
+ differentLengths("array1");
70
90
  }
71
91
  const result = Helpers_allocateArrayFromCons(cons, source1.length);
72
92
  for (let i = 0; i <= source1.length - 1; i++) {
@@ -76,7 +96,7 @@ function mapIndexed2(f, source1, source2, cons) {
76
96
  }
77
97
  function map2(f, source1, source2, cons) {
78
98
  if (source1.length !== source2.length) {
79
- throw new Exception("Arrays had different lengths");
99
+ differentLengths("array1");
80
100
  }
81
101
  const result = Helpers_allocateArrayFromCons(cons, source1.length);
82
102
  for (let i = 0; i <= source1.length - 1; i++) {
@@ -86,7 +106,7 @@ function map2(f, source1, source2, cons) {
86
106
  }
87
107
  function mapIndexed3(f, source1, source2, source3, cons) {
88
108
  if (source1.length !== source2.length ? true : source2.length !== source3.length) {
89
- throw new Exception("Arrays had different lengths");
109
+ differentLengths("array1, array2, array3");
90
110
  }
91
111
  const result = Helpers_allocateArrayFromCons(cons, source1.length);
92
112
  for (let i = 0; i <= source1.length - 1; i++) {
@@ -96,7 +116,7 @@ function mapIndexed3(f, source1, source2, source3, cons) {
96
116
  }
97
117
  function map3(f, source1, source2, source3, cons) {
98
118
  if (source1.length !== source2.length ? true : source2.length !== source3.length) {
99
- throw new Exception("Arrays had different lengths");
119
+ differentLengths("array1, array2, array3");
100
120
  }
101
121
  const result = Helpers_allocateArrayFromCons(cons, source1.length);
102
122
  for (let i = 0; i <= source1.length - 1; i++) {
@@ -182,7 +202,7 @@ function where(predicate, array) {
182
202
  function indexOf(array, item_1, start, count, eq) {
183
203
  let option_1 = void 0;
184
204
  const start_1 = defaultArg(start, 0) | 0;
185
- const end$0027 = defaultArg((option_1 = count, option_1 != null ? start_1 + value(option_1) : void 0), array.length) | 0;
205
+ const end$0027 = defaultArg((option_1 = count, option_1 != null ? start_1 + option_1 : void 0), array.length) | 0;
186
206
  const loop = (i_mut) => {
187
207
  loop:
188
208
  while (true) {
@@ -203,6 +223,55 @@ function indexOf(array, item_1, start, count, eq) {
203
223
  function contains(value, array, eq) {
204
224
  return indexOf(array, value, void 0, void 0, eq) >= 0;
205
225
  }
226
+ function binarySearchFrom(array, index, length, value, comparer) {
227
+ const loop = (lo_mut, hi_mut) => {
228
+ loop:
229
+ while (true) {
230
+ const lo = lo_mut, hi = hi_mut;
231
+ if (lo > hi) {
232
+ return ~lo | 0;
233
+ } else {
234
+ const i = lo + (hi - lo >> 1) | 0;
235
+ const c = comparer.Compare(item(i, array), value) | 0;
236
+ if (c === 0) {
237
+ return i | 0;
238
+ } else if (c < 0) {
239
+ lo_mut = i + 1;
240
+ hi_mut = hi;
241
+ continue loop;
242
+ } else {
243
+ lo_mut = lo;
244
+ hi_mut = i - 1;
245
+ continue loop;
246
+ }
247
+ }
248
+ break;
249
+ }
250
+ };
251
+ return loop(index, index + length - 1) | 0;
252
+ }
253
+ function checkBinarySearchRange(lengthName, array, index, length) {
254
+ if (index < 0) {
255
+ throw ArgumentOutOfRangeException_$ctor_Z384F8060("index", "Non-negative number required.");
256
+ }
257
+ if (length < 0) {
258
+ throw ArgumentOutOfRangeException_$ctor_Z384F8060(lengthName, "Non-negative number required.");
259
+ }
260
+ if (array.length - index < length) {
261
+ throw ArgumentException_$ctor_Z721C83C5("Offset and length were out of bounds for the array or count is greater than the number of elements from index to the end of the source collection.");
262
+ }
263
+ }
264
+ function binarySearch(array, value, comparer) {
265
+ return binarySearchFrom(array, 0, array.length, value, comparer) | 0;
266
+ }
267
+ function binarySearchRange(array, index, length, value, comparer) {
268
+ checkBinarySearchRange("length", array, index, length);
269
+ return binarySearchFrom(array, index, length, value, comparer) | 0;
270
+ }
271
+ function binarySearchRangeCount(array, index, count, value, comparer) {
272
+ checkBinarySearchRange("count", array, index, count);
273
+ return binarySearchFrom(array, index, count, value, comparer) | 0;
274
+ }
206
275
  function empty(cons) {
207
276
  return Helpers_allocateArrayFromCons(cons, 0);
208
277
  }
@@ -213,7 +282,7 @@ function singleton(value, cons) {
213
282
  }
214
283
  function initialize(count, initializer, cons) {
215
284
  if (count < 0) {
216
- throw new Exception("The input must be non-negative (Parameter 'count')");
285
+ throw Operators_InvalidArg("count", "The input must be non-negative");
217
286
  }
218
287
  const result = Helpers_allocateArrayFromCons(cons, count);
219
288
  for (let i = 0; i <= count - 1; i++) {
@@ -235,7 +304,7 @@ function pairwise(array) {
235
304
  }
236
305
  function replicate(count, initial, cons) {
237
306
  if (count < 0) {
238
- throw new Exception("The input must be non-negative (Parameter 'count')");
307
+ throw Operators_InvalidArg("count", "The input must be non-negative");
239
308
  }
240
309
  const result = Helpers_allocateArrayFromCons(cons, count);
241
310
  for (let i = 0; i <= result.length - 1; i++) {
@@ -246,8 +315,47 @@ function replicate(count, initial, cons) {
246
315
  function copy(array) {
247
316
  return array.slice();
248
317
  }
318
+ function copyTypedArray(source, sourceIndex, target, targetIndex, count) {
319
+ target.set(source.subarray(sourceIndex, sourceIndex + count), targetIndex);
320
+ }
321
+ function argumentOutOfRange(paramName, value, requirement) {
322
+ throw ArgumentOutOfRangeException_$ctor_Z384F8060(paramName, paramName + " ('" + int32ToString(value) + "') must be " + requirement);
323
+ }
249
324
  function copyTo(source, sourceIndex, target, targetIndex, count) {
250
- copyToArray(source, sourceIndex, target, targetIndex, count);
325
+ if (count < 0) {
326
+ argumentOutOfRange("length", count, "a non-negative value.");
327
+ }
328
+ if (sourceIndex < 0) {
329
+ argumentOutOfRange("sourceIndex", sourceIndex, "greater than or equal to '0'.");
330
+ }
331
+ if (sourceIndex + count > source.length) {
332
+ throw Operators_InvalidArg("sourceArray", "Source array was not long enough. Check the source index, length, and the array's lower bounds.");
333
+ }
334
+ if (targetIndex < 0) {
335
+ argumentOutOfRange("destinationIndex", targetIndex, "greater than or equal to '0'.");
336
+ }
337
+ if (targetIndex + count > target.length) {
338
+ throw Operators_InvalidArg("destinationArray", "Destination array was not long enough. Check the destination index, length, and the array's lower bounds.");
339
+ }
340
+ if (ArrayBuffer.isView(source) && ArrayBuffer.isView(target)) {
341
+ copyTypedArray(source, sourceIndex, target, targetIndex, count);
342
+ } else if (sourceIndex < targetIndex) {
343
+ for (let i = count - 1; i >= 0; i--) {
344
+ const index_1 = targetIndex + i | 0;
345
+ let item_1;
346
+ const index = sourceIndex + i | 0;
347
+ item_1 = source[index];
348
+ target[index_1] = item_1;
349
+ }
350
+ } else {
351
+ for (let i_1 = 0; i_1 <= count - 1; i_1++) {
352
+ const index_3 = targetIndex + i_1 | 0;
353
+ let item_2;
354
+ const index_2 = sourceIndex + i_1 | 0;
355
+ item_2 = source[index_2];
356
+ target[index_3] = item_2;
357
+ }
358
+ }
251
359
  }
252
360
  function reverse(array) {
253
361
  const array_2 = array.slice();
@@ -271,7 +379,7 @@ function scanBack(folder, array, state, cons) {
271
379
  }
272
380
  function skip(count, array, cons) {
273
381
  if (count > array.length) {
274
- throw new Exception("count is greater than array length (Parameter 'count')");
382
+ throw ArgumentOutOfRangeException_$ctor_Z384F8060("count", "The index is outside the legal range.");
275
383
  }
276
384
  if (count === array.length) {
277
385
  return Helpers_allocateArrayFromCons(cons, 0);
@@ -294,10 +402,10 @@ function skipWhile(predicate, array, cons) {
294
402
  }
295
403
  function take(count, array, cons) {
296
404
  if (count < 0) {
297
- throw new Exception("The input must be non-negative (Parameter 'count')");
405
+ throw Operators_InvalidArg("count", "The input must be non-negative");
298
406
  }
299
407
  if (count > array.length) {
300
- throw new Exception("count is greater than array length (Parameter 'count')");
408
+ throw Operators_InvalidOp(SR_notEnoughElements);
301
409
  }
302
410
  if (count === 0) {
303
411
  return Helpers_allocateArrayFromCons(cons, 0);
@@ -586,7 +694,7 @@ function iterateIndexed(action, array) {
586
694
  }
587
695
  function iterate2(action, array1, array2) {
588
696
  if (array1.length !== array2.length) {
589
- differentLengths();
697
+ differentLengths("array1");
590
698
  }
591
699
  for (let i = 0; i <= array1.length - 1; i++) {
592
700
  action(item(i, array1), item(i, array2));
@@ -594,7 +702,7 @@ function iterate2(action, array1, array2) {
594
702
  }
595
703
  function iterateIndexed2(action, array1, array2) {
596
704
  if (array1.length !== array2.length) {
597
- differentLengths();
705
+ differentLengths("array1");
598
706
  }
599
707
  for (let i = 0; i <= array1.length - 1; i++) {
600
708
  action(i, item(i, array1), item(i, array2));
@@ -609,17 +717,19 @@ function forAll(predicate, array) {
609
717
  function permute(f, array) {
610
718
  const size = array.length | 0;
611
719
  const res = array.slice();
612
- const checkFlags = new Array(size);
720
+ let checkFlags;
721
+ const array_2 = new Array(size);
722
+ checkFlags = array_2.fill(0, 0, 0 + size);
613
723
  iterateIndexed((i, x) => {
614
724
  const j = f(i) | 0;
615
725
  if (j < 0 ? true : j >= size) {
616
- throw new Exception("Not a valid permutation");
726
+ throw Operators_InvalidArg("indexMap", "The function did not compute a permutation.");
617
727
  }
618
728
  setItem(res, j, x);
619
729
  setItem(checkFlags, j, 1);
620
730
  }, array);
621
731
  if (!checkFlags.every((y) => 1 === y)) {
622
- throw new Exception("Not a valid permutation");
732
+ throw Operators_InvalidArg("indexMap", "The function did not compute a permutation.");
623
733
  }
624
734
  return res;
625
735
  }
@@ -682,8 +792,8 @@ function unfold(generator, state) {
682
792
  const state_1 = state_1_mut;
683
793
  const matchValue = generator(state_1);
684
794
  if (matchValue != null) {
685
- const x = value(matchValue)[0];
686
- const s = value(matchValue)[1];
795
+ const x = matchValue[0];
796
+ const s = matchValue[1];
687
797
  res.push(x);
688
798
  state_1_mut = s;
689
799
  continue loop;
@@ -718,7 +828,7 @@ function unzip3(array) {
718
828
  }
719
829
  function zip(array1, array2) {
720
830
  if (array1.length !== array2.length) {
721
- differentLengths();
831
+ differentLengths("array1");
722
832
  }
723
833
  const result = new Array(array1.length);
724
834
  for (let i = 0; i <= array1.length - 1; i++) {
@@ -728,7 +838,7 @@ function zip(array1, array2) {
728
838
  }
729
839
  function zip3(array1, array2, array3) {
730
840
  if (array1.length !== array2.length ? true : array2.length !== array3.length) {
731
- differentLengths();
841
+ differentLengths("array1, array2, array3");
732
842
  }
733
843
  const result = new Array(array1.length);
734
844
  for (let i = 0; i <= array1.length - 1; i++) {
@@ -738,7 +848,7 @@ function zip3(array1, array2, array3) {
738
848
  }
739
849
  function chunkBySize(chunkSize, array) {
740
850
  if (chunkSize < 1) {
741
- throw new Exception("The input must be positive. (Parameter 'size')");
851
+ throw Operators_InvalidArg("chunkSize", "The input must be positive.");
742
852
  }
743
853
  const result = [];
744
854
  if (array.length > 0) {
@@ -753,19 +863,22 @@ function chunkBySize(chunkSize, array) {
753
863
  return result;
754
864
  }
755
865
  function splitAt(index, array) {
756
- if (index < 0 ? true : index > array.length) {
757
- throw new Exception(SR_indexOutOfBounds + " (Parameter 'index')");
866
+ if (index < 0) {
867
+ throw Operators_InvalidArg("index", SR_indexOutOfBounds);
868
+ }
869
+ if (index > array.length) {
870
+ throw Operators_InvalidOp(SR_notEnoughElements);
758
871
  }
759
872
  return [array.slice(0, 0 + index), array.slice(index)];
760
873
  }
761
874
  function compareWith(comparer, source1, source2) {
762
- if (Operators_IsNull(source1)) {
763
- if (Operators_IsNull(source2)) {
875
+ if (source1 == null) {
876
+ if (source2 == null) {
764
877
  return 0;
765
878
  } else {
766
879
  return -1;
767
880
  }
768
- } else if (Operators_IsNull(source2)) {
881
+ } else if (source2 == null) {
769
882
  return 1;
770
883
  } else {
771
884
  const len1 = source1.length | 0;
@@ -789,13 +902,13 @@ function compareWith(comparer, source1, source2) {
789
902
  }
790
903
  }
791
904
  function compareTo(comparer, source1, source2) {
792
- if (Operators_IsNull(source1)) {
793
- if (Operators_IsNull(source2)) {
905
+ if (source1 == null) {
906
+ if (source2 == null) {
794
907
  return 0;
795
908
  } else {
796
909
  return -1;
797
910
  }
798
- } else if (Operators_IsNull(source2)) {
911
+ } else if (source2 == null) {
799
912
  return 1;
800
913
  } else {
801
914
  const len1 = source1.length | 0;
@@ -816,13 +929,13 @@ function compareTo(comparer, source1, source2) {
816
929
  }
817
930
  }
818
931
  function equalsWith(equals, source1, source2) {
819
- if (Operators_IsNull(source1)) {
820
- if (Operators_IsNull(source2)) {
932
+ if (source1 == null) {
933
+ if (source2 == null) {
821
934
  return true;
822
935
  } else {
823
936
  return false;
824
937
  }
825
- } else if (Operators_IsNull(source2)) {
938
+ } else if (source2 == null) {
826
939
  return false;
827
940
  } else {
828
941
  let i = 0;
@@ -847,9 +960,9 @@ function exactlyOne(array) {
847
960
  case 1:
848
961
  return item(0, array);
849
962
  case 0:
850
- throw new Exception("The input sequence was empty (Parameter 'array')");
963
+ throw Operators_InvalidArg("array", "The input sequence was empty");
851
964
  default:
852
- throw new Exception("Input array too long (Parameter 'array')");
965
+ throw Operators_InvalidArg("array", "Input array too long");
853
966
  }
854
967
  }
855
968
  function tryExactlyOne(array) {
@@ -861,7 +974,7 @@ function tryExactlyOne(array) {
861
974
  }
862
975
  function head(array) {
863
976
  if (array.length === 0) {
864
- throw new Exception("The input array was empty (Parameter 'array')");
977
+ throw Operators_InvalidArg("array", "The input array was empty");
865
978
  } else {
866
979
  return item(0, array);
867
980
  }
@@ -875,20 +988,21 @@ function tryHead(array) {
875
988
  }
876
989
  function tail(array) {
877
990
  if (array.length === 0) {
878
- throw new Exception("Not enough elements (Parameter 'array')");
991
+ throw Operators_InvalidArg("array", "Not enough elements");
879
992
  }
880
993
  return array.slice(1);
881
994
  }
882
995
  function item(index, array) {
883
- if (index < 0 ? true : index >= array.length) {
884
- throw new Exception("Index was outside the bounds of the array. (Parameter 'index')");
996
+ const value = array[index];
997
+ if (value === void 0 && (index < 0 ? true : index >= array.length)) {
998
+ throw Operators_InvalidArg("index", "Index was outside the bounds of the array.");
885
999
  } else {
886
- return array[index];
1000
+ return value;
887
1001
  }
888
1002
  }
889
1003
  function setItem(array, index, value) {
890
1004
  if (index < 0 ? true : index >= array.length) {
891
- throw new Exception("Index was outside the bounds of the array. (Parameter 'index')");
1005
+ throw Operators_InvalidArg("index", "Index was outside the bounds of the array.");
892
1006
  } else {
893
1007
  array[index] = value;
894
1008
  }
@@ -909,7 +1023,7 @@ function foldBack(folder, array, state) {
909
1023
  function foldIndexed2(folder, state, array1, array2) {
910
1024
  let acc = state;
911
1025
  if (array1.length !== array2.length) {
912
- throw new Exception("Arrays have different lengths");
1026
+ differentLengths("array1");
913
1027
  }
914
1028
  for (let i = 0; i <= array1.length - 1; i++) {
915
1029
  acc = folder(i, acc, item(i, array1), item(i, array2));
@@ -922,7 +1036,7 @@ function fold2(folder, state, array1, array2) {
922
1036
  function foldBackIndexed2(folder, array1, array2, state) {
923
1037
  let acc = state;
924
1038
  if (array1.length !== array2.length) {
925
- differentLengths();
1039
+ differentLengths("array1");
926
1040
  }
927
1041
  const size = array1.length | 0;
928
1042
  for (let i = 1; i <= size; i++) {
@@ -935,14 +1049,14 @@ function foldBack2(f, array1, array2, state) {
935
1049
  }
936
1050
  function reduce(reduction, array) {
937
1051
  if (array.length === 0) {
938
- throw new Exception("The input array was empty");
1052
+ throw Operators_InvalidArg("array", "The input array was empty");
939
1053
  }
940
1054
  const reduction_1 = reduction;
941
1055
  return array.reduce(reduction_1);
942
1056
  }
943
1057
  function reduceBack(reduction, array) {
944
1058
  if (array.length === 0) {
945
- throw new Exception("The input array was empty");
1059
+ throw Operators_InvalidArg("array", "The input array was empty");
946
1060
  }
947
1061
  const reduction_1 = reduction;
948
1062
  return array.reduceRight(reduction_1);
@@ -990,7 +1104,7 @@ function existsOffset2(predicate_mut, array1_mut, array2_mut, index_mut) {
990
1104
  }
991
1105
  function exists2(predicate, array1, array2) {
992
1106
  if (array1.length !== array2.length) {
993
- differentLengths();
1107
+ differentLengths("array1");
994
1108
  }
995
1109
  return existsOffset2(predicate, array1, array2, 0);
996
1110
  }
@@ -1022,7 +1136,7 @@ function min(xs, comparer) {
1022
1136
  }
1023
1137
  function average(array, averager) {
1024
1138
  if (array.length === 0) {
1025
- throw new Exception("The input array was empty (Parameter 'array')");
1139
+ throw Operators_InvalidArg("array", "The input array was empty");
1026
1140
  }
1027
1141
  let total = averager.GetZero();
1028
1142
  for (let i = 0; i <= array.length - 1; i++) {
@@ -1032,7 +1146,7 @@ function average(array, averager) {
1032
1146
  }
1033
1147
  function averageBy(projection, array, averager) {
1034
1148
  if (array.length === 0) {
1035
- throw new Exception("The input array was empty (Parameter 'array')");
1149
+ throw Operators_InvalidArg("array", "The input array was empty");
1036
1150
  }
1037
1151
  let total = averager.GetZero();
1038
1152
  for (let i = 0; i <= array.length - 1; i++) {
@@ -1042,7 +1156,7 @@ function averageBy(projection, array, averager) {
1042
1156
  }
1043
1157
  function windowed(windowSize, source) {
1044
1158
  if (windowSize <= 0) {
1045
- throw new Exception("windowSize must be positive");
1159
+ throw Operators_InvalidArg("windowSize", "The input must be positive.");
1046
1160
  }
1047
1161
  let res;
1048
1162
  const len = max$1(0, source.length - windowSize + 1) | 0;
@@ -1054,7 +1168,7 @@ function windowed(windowSize, source) {
1054
1168
  }
1055
1169
  function splitInto(chunks, array) {
1056
1170
  if (chunks < 1) {
1057
- throw new Exception("The input must be positive. (Parameter 'chunks')");
1171
+ throw Operators_InvalidArg("count", "The input must be positive.");
1058
1172
  }
1059
1173
  const result = [];
1060
1174
  if (array.length > 0) {
@@ -1080,7 +1194,7 @@ function transpose(arrays, cons) {
1080
1194
  const firstArray = item(0, arrays_1);
1081
1195
  const lenInner = firstArray.length | 0;
1082
1196
  if (!forAll((a) => a.length === lenInner, arrays_1)) {
1083
- differentLengths();
1197
+ differentLengths("array.[0]");
1084
1198
  }
1085
1199
  const result = new Array(lenInner);
1086
1200
  for (let i = 0; i <= lenInner - 1; i++) {
@@ -1095,7 +1209,7 @@ function transpose(arrays, cons) {
1095
1209
  function insertAt(index, y, xs, cons) {
1096
1210
  const len = xs.length | 0;
1097
1211
  if (index < 0 ? true : index > len) {
1098
- throw new Exception(SR_indexOutOfBounds + " (Parameter 'index')");
1212
+ throw Operators_InvalidArg("index", SR_indexOutOfBounds);
1099
1213
  }
1100
1214
  const target = Helpers_allocateArrayFromCons(cons, len + 1);
1101
1215
  for (let i = 0; i <= index - 1; i++) {
@@ -1110,7 +1224,7 @@ function insertAt(index, y, xs, cons) {
1110
1224
  function insertManyAt(index, ys, xs, cons) {
1111
1225
  const len = xs.length | 0;
1112
1226
  if (index < 0 ? true : index > len) {
1113
- throw new Exception(SR_indexOutOfBounds + " (Parameter 'index')");
1227
+ throw Operators_InvalidArg("index", SR_indexOutOfBounds);
1114
1228
  }
1115
1229
  const ys_1 = Array.from(ys);
1116
1230
  const len2 = ys_1.length | 0;
@@ -1131,7 +1245,7 @@ function randomShuffleInPlaceBy(randomizer, xs) {
1131
1245
  for (let i = len - 1; i >= 1; i--) {
1132
1246
  const r = randomizer();
1133
1247
  if (r < 0 ? true : r >= 1) {
1134
- throw new Exception(SR_Arg_ArgumentOutOfRangeException + " (Parameter 'randomizer')");
1248
+ throw ArgumentOutOfRangeException_$ctor_Z384F8060("randomizer", "The index is outside the legal range.");
1135
1249
  }
1136
1250
  const j = ~~(r * (i + 1)) | 0;
1137
1251
  const tmp = item(i, xs);
@@ -1158,12 +1272,12 @@ function randomShuffle(xs) {
1158
1272
  }
1159
1273
  function randomChoiceBy(randomizer, xs) {
1160
1274
  if (isEmpty(xs)) {
1161
- throw new Exception(SR_inputSequenceEmpty + " (Parameter 'source')");
1275
+ throw Operators_InvalidArg("source", SR_inputSequenceEmpty);
1162
1276
  }
1163
1277
  const len = xs.length | 0;
1164
1278
  const r = randomizer();
1165
1279
  if (r < 0 ? true : r >= 1) {
1166
- throw new Exception(SR_Arg_ArgumentOutOfRangeException + " (Parameter 'randomizer')");
1280
+ throw ArgumentOutOfRangeException_$ctor_Z384F8060("randomizer", "The index is outside the legal range.");
1167
1281
  }
1168
1282
  return item(~~(r * len), xs);
1169
1283
  }
@@ -1175,16 +1289,16 @@ function randomChoice(xs) {
1175
1289
  }
1176
1290
  function randomChoicesBy(randomizer, count, xs, cons) {
1177
1291
  if (count < 0) {
1178
- throw new Exception(SR_inputMustBeNonNegative + " (Parameter 'count')");
1292
+ throw Operators_InvalidArg("count", SR_inputMustBeNonNegative);
1179
1293
  }
1180
1294
  if (count > 0 && isEmpty(xs)) {
1181
- throw new Exception(SR_inputSequenceEmpty + " (Parameter 'source')");
1295
+ throw Operators_InvalidArg("source", SR_inputSequenceEmpty);
1182
1296
  }
1183
1297
  const len = xs.length | 0;
1184
1298
  return initialize(count, (_arg) => {
1185
1299
  const r = randomizer();
1186
1300
  if (r < 0 ? true : r >= 1) {
1187
- throw new Exception(SR_Arg_ArgumentOutOfRangeException + " (Parameter 'randomizer')");
1301
+ throw ArgumentOutOfRangeException_$ctor_Z384F8060("randomizer", "The index is outside the legal range.");
1188
1302
  }
1189
1303
  return item(~~(r * len), xs);
1190
1304
  }, cons);
@@ -1197,20 +1311,20 @@ function randomChoices(count, xs, cons) {
1197
1311
  }
1198
1312
  function randomSampleBy(randomizer, count, xs) {
1199
1313
  if (count < 0) {
1200
- throw new Exception(SR_inputMustBeNonNegative + " (Parameter 'count')");
1314
+ throw Operators_InvalidArg("count", SR_inputMustBeNonNegative);
1201
1315
  }
1202
1316
  const arr = copy(xs);
1203
1317
  const len = arr.length | 0;
1204
1318
  if (len === 0 && count > 0) {
1205
- throw new Exception(SR_inputSequenceEmpty + " (Parameter 'source')");
1319
+ throw Operators_InvalidArg("source", SR_inputSequenceEmpty);
1206
1320
  }
1207
1321
  if (count > len) {
1208
- throw new Exception(SR_notEnoughElements + " (Parameter 'count')");
1322
+ throw Operators_InvalidArg("count", SR_notEnoughElements);
1209
1323
  }
1210
1324
  for (let i = 0; i <= count - 1; i++) {
1211
1325
  const r = randomizer();
1212
1326
  if (r < 0 ? true : r >= 1) {
1213
- throw new Exception(SR_Arg_ArgumentOutOfRangeException + " (Parameter 'randomizer')");
1327
+ throw ArgumentOutOfRangeException_$ctor_Z384F8060("randomizer", "The index is outside the legal range.");
1214
1328
  }
1215
1329
  const j = i + ~~(r * (len - i)) | 0;
1216
1330
  const tmp = item(i, arr);
@@ -1227,7 +1341,7 @@ function randomSample(count, xs) {
1227
1341
  }
1228
1342
  function removeAt(index, xs) {
1229
1343
  if (index < 0 ? true : index >= xs.length) {
1230
- throw new Exception(SR_indexOutOfBounds + " (Parameter 'index')");
1344
+ throw Operators_InvalidArg("index", SR_indexOutOfBounds);
1231
1345
  }
1232
1346
  let i = -1;
1233
1347
  return filter((_arg) => {
@@ -1236,34 +1350,23 @@ function removeAt(index, xs) {
1236
1350
  }, xs);
1237
1351
  }
1238
1352
  function removeManyAt(index, count, xs) {
1353
+ if ((index < 0 ? true : index > xs.length - count) ? true : index > xs.length) {
1354
+ throw Operators_InvalidArg("index", "index must be within bounds of the array");
1355
+ }
1239
1356
  let i = -1;
1240
- let status = -1;
1241
- const ys = filter((_arg) => {
1357
+ return filter((_arg) => {
1242
1358
  i = i + 1 | 0;
1243
- if (i === index) {
1244
- status = 0;
1245
- return false;
1246
- } else if (i > index) {
1247
- if (i < index + count) {
1248
- return false;
1249
- } else {
1250
- status = 1;
1251
- return true;
1252
- }
1253
- } else {
1359
+ if (i < index) {
1254
1360
  return true;
1361
+ } else {
1362
+ return i >= index + count;
1255
1363
  }
1256
1364
  }, xs);
1257
- const status_1 = (status === 0 && i + 1 === index + count ? 1 : status) | 0;
1258
- if (status_1 < 1) {
1259
- throw new Exception(SR_indexOutOfBounds + (" (Parameter '" + (status_1 < 0 ? "index" : "count") + "')"));
1260
- }
1261
- return ys;
1262
1365
  }
1263
1366
  function updateAt(index, y, xs, cons) {
1264
1367
  const len = xs.length | 0;
1265
1368
  if (index < 0 ? true : index >= len) {
1266
- throw new Exception(SR_indexOutOfBounds + " (Parameter 'index')");
1369
+ throw Operators_InvalidArg("index", SR_indexOutOfBounds);
1267
1370
  }
1268
1371
  const target = Helpers_allocateArrayFromCons(cons, len);
1269
1372
  for (let i = 0; i <= len - 1; i++) {
@@ -1274,10 +1377,10 @@ function updateAt(index, y, xs, cons) {
1274
1377
  function resize(xs, newSize, zero, cons) {
1275
1378
  let array = void 0, array_1 = void 0, start_2 = void 0, count_2 = void 0;
1276
1379
  if (newSize < 0) {
1277
- throw new Exception("The input must be non-negative. (Parameter 'newSize')");
1380
+ throw Operators_InvalidArg("newSize", "The input must be non-negative.");
1278
1381
  }
1279
1382
  const zero_1 = defaultArg(zero, defaultOf());
1280
- if (Operators_IsNull(xs.contents)) {
1383
+ if (xs.contents == null) {
1281
1384
  xs.contents = (array = Helpers_allocateArrayFromCons(cons, newSize), array.fill(zero_1, 0, 0 + newSize));
1282
1385
  } else {
1283
1386
  const len = xs.contents.length | 0;
@@ -1293,4 +1396,4 @@ function resize(xs, newSize, zero, cons) {
1293
1396
  }
1294
1397
  }
1295
1398
 
1296
- export { addInPlace, addRangeInPlace, allPairs, append, average, averageBy, choose, chunkBySize, collect, compareTo, compareWith, concat, contains, copy, copyTo, empty, equalsWith, exactlyOne, exists, exists2, existsOffset, existsOffset2, fill, filter, find, findAll, findBack, findIndex, findIndexBack, findLastIndex, fold, fold2, foldBack, foldBack2, foldBackIndexed, foldBackIndexed2, foldIndexed, foldIndexed2, forAll, forAll2, getRange, getSubArray, head, indexOf, indexed, initialize, insertAt, insertManyAt, insertRangeInPlace, isEmpty, item, iterate, iterate2, iterateIndexed, iterateIndexed2, last, map, map2, map3, mapFold, mapFoldBack, mapIndexed, mapIndexed2, mapIndexed3, max, maxBy, min, minBy, pairwise, partition, permute, pick, randomChoice, randomChoiceBy, randomChoiceWith, randomChoices, randomChoicesBy, randomChoicesWith, randomSample, randomSampleBy, randomSampleWith, randomShuffle, randomShuffleBy, randomShuffleInPlace, randomShuffleInPlaceBy, randomShuffleInPlaceWith, randomShuffleWith, reduce, reduceBack, removeAllInPlace, removeAt, removeInPlace, removeManyAt, replicate, resize, reverse, scan, scanBack, setItem, setSlice, singleton, skip, skipWhile, sort, sortBy, sortByDescending, sortDescending, sortInPlace, sortInPlaceBy, sortWith, splitAt, splitInto, sum, sumBy, tail, take, takeWhile, transpose, truncate, tryExactlyOne, tryFind, tryFindBack, tryFindIndex, tryFindIndexBack, tryHead, tryItem, tryLast, tryPick, unfold, unzip, unzip3, updateAt, where, windowed, zip, zip3 };
1399
+ export { addInPlace, addRangeInPlace, allPairs, append, average, averageBy, binarySearch, binarySearchRange, binarySearchRangeCount, choose, chunkBySize, collect, compareTo, compareWith, concat, contains, copy, copyTo, empty, equalsWith, exactlyOne, exists, exists2, existsOffset, existsOffset2, fill, filter, find, findAll, findBack, findIndex, findIndexBack, findLastIndex, fold, fold2, foldBack, foldBack2, foldBackIndexed, foldBackIndexed2, foldIndexed, foldIndexed2, forAll, forAll2, getRange, getSubArray, head, indexOf, indexed, initialize, insertAt, insertManyAt, insertRangeInPlace, isEmpty, item, iterate, iterate2, iterateIndexed, iterateIndexed2, last, map, map2, map3, mapFold, mapFoldBack, mapIndexed, mapIndexed2, mapIndexed3, max, maxBy, min, minBy, pairwise, partition, permute, pick, randomChoice, randomChoiceBy, randomChoiceWith, randomChoices, randomChoicesBy, randomChoicesWith, randomSample, randomSampleBy, randomSampleWith, randomShuffle, randomShuffleBy, randomShuffleInPlace, randomShuffleInPlaceBy, randomShuffleInPlaceWith, randomShuffleWith, reduce, reduceBack, removeAllInPlace, removeAt, removeInPlace, removeManyAt, replicate, resize, reverse, scan, scanBack, setItem, setSlice, singleton, skip, skipWhile, sort, sortBy, sortByDescending, sortDescending, sortInPlace, sortInPlaceBy, sortWith, splitAt, splitInto, sum, sumBy, tail, take, takeWhile, transpose, truncate, tryExactlyOne, tryFind, tryFindBack, tryFindIndex, tryFindIndexBack, tryHead, tryItem, tryLast, tryPick, unfold, unzip, unzip3, updateAt, where, windowed, zip, zip3 };