@fossa-app/bridge 0.1.5 → 0.1.7

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 (269) hide show
  1. package/dist/Models/ApiModels.d.ts +199 -0
  2. package/dist/Models/ApiModels.js +350 -0
  3. package/dist/Models/ApiModels.js.map +1 -0
  4. package/dist/Services/Clients/BranchClient.d.ts +16 -0
  5. package/dist/Services/Clients/BranchClient.js +63 -0
  6. package/dist/Services/Clients/BranchClient.js.map +1 -0
  7. package/dist/Services/Clients/CompanyClient.d.ts +13 -0
  8. package/dist/Services/Clients/CompanyClient.js +36 -0
  9. package/dist/Services/Clients/CompanyClient.js.map +1 -0
  10. package/dist/Services/Clients/CompanyLicenseClient.d.ts +10 -0
  11. package/dist/Services/Clients/CompanyLicenseClient.js +28 -0
  12. package/dist/Services/Clients/CompanyLicenseClient.js.map +1 -0
  13. package/dist/Services/Clients/CompanySettingsClient.d.ts +13 -0
  14. package/dist/Services/Clients/CompanySettingsClient.js +36 -0
  15. package/dist/Services/Clients/CompanySettingsClient.js.map +1 -0
  16. package/dist/Services/Clients/DepartmentClient.d.ts +16 -0
  17. package/dist/Services/Clients/DepartmentClient.js +63 -0
  18. package/dist/Services/Clients/DepartmentClient.js.map +1 -0
  19. package/dist/Services/Clients/EmployeeClient.d.ts +18 -0
  20. package/dist/Services/Clients/EmployeeClient.js +87 -0
  21. package/dist/Services/Clients/EmployeeClient.js.map +1 -0
  22. package/dist/Services/Clients/IdentityClient.d.ts +9 -0
  23. package/dist/Services/Clients/IdentityClient.js +25 -0
  24. package/dist/Services/Clients/IdentityClient.js.map +1 -0
  25. package/dist/Services/Clients/SystemLicenseClient.d.ts +9 -0
  26. package/dist/Services/Clients/SystemLicenseClient.js +24 -0
  27. package/dist/Services/Clients/SystemLicenseClient.js.map +1 -0
  28. package/dist/Services/Endpoints.d.ts +10 -0
  29. package/dist/Services/Endpoints.js +14 -0
  30. package/dist/Services/Endpoints.js.map +1 -0
  31. package/dist/Services/IHttpTransport.d.ts +6 -0
  32. package/dist/Services/IHttpTransport.js +3 -0
  33. package/dist/Services/IHttpTransport.js.map +1 -0
  34. package/dist/Services/UrlHelpers.d.ts +1 -0
  35. package/dist/Services/UrlHelpers.js +19 -0
  36. package/dist/Services/UrlHelpers.js.map +1 -0
  37. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Array.d.ts +125 -0
  38. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Array.js +1371 -0
  39. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Array.js.map +1 -0
  40. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Async.d.ts +27 -0
  41. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Async.js +172 -0
  42. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Async.js.map +1 -0
  43. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/AsyncBuilder.d.ts +59 -0
  44. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/AsyncBuilder.js +194 -0
  45. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/AsyncBuilder.js.map +1 -0
  46. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/BigInt.d.ts +129 -0
  47. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/BigInt.js +428 -0
  48. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/BigInt.js.map +1 -0
  49. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/BitConverter.d.ts +27 -0
  50. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/BitConverter.js +165 -0
  51. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/BitConverter.js.map +1 -0
  52. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Boolean.d.ts +3 -0
  53. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Boolean.js +27 -0
  54. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Boolean.js.map +1 -0
  55. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Char.d.ts +66 -0
  56. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Char.js +271 -0
  57. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Char.js.map +1 -0
  58. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Choice.d.ts +121 -0
  59. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Choice.js +231 -0
  60. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Choice.js.map +1 -0
  61. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/CollectionUtil.d.ts +8 -0
  62. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/CollectionUtil.js +192 -0
  63. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/CollectionUtil.js.map +1 -0
  64. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/ConditionalWeakTable.d.ts +9 -0
  65. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/ConditionalWeakTable.js +26 -0
  66. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/ConditionalWeakTable.js.map +1 -0
  67. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Date.d.ts +70 -0
  68. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Date.js +812 -0
  69. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Date.js.map +1 -0
  70. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/DateOffset.d.ts +65 -0
  71. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/DateOffset.js +345 -0
  72. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/DateOffset.js.map +1 -0
  73. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/DateOnly.d.ts +18 -0
  74. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/DateOnly.js +143 -0
  75. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/DateOnly.js.map +1 -0
  76. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Decimal.d.ts +63 -0
  77. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Decimal.js +322 -0
  78. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Decimal.js.map +1 -0
  79. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Double.d.ts +11 -0
  80. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Double.js +60 -0
  81. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Double.js.map +1 -0
  82. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Encoding.d.ts +12 -0
  83. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Encoding.js +178 -0
  84. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Encoding.js.map +1 -0
  85. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Event.d.ts +31 -0
  86. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Event.js +109 -0
  87. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Event.js.map +1 -0
  88. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/FSharp.Collections.d.ts +7 -0
  89. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/FSharp.Collections.js +53 -0
  90. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/FSharp.Collections.js.map +1 -0
  91. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/FSharp.Core.CompilerServices.d.ts +12 -0
  92. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/FSharp.Core.CompilerServices.js +38 -0
  93. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/FSharp.Core.CompilerServices.js.map +1 -0
  94. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/FSharp.Core.d.ts +30 -0
  95. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/FSharp.Core.js +185 -0
  96. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/FSharp.Core.js.map +1 -0
  97. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Global.d.ts +45 -0
  98. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Global.js +33 -0
  99. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Global.js.map +1 -0
  100. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Guid.d.ts +10 -0
  101. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Guid.js +152 -0
  102. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Guid.js.map +1 -0
  103. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Int32.d.ts +29 -0
  104. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Int32.js +148 -0
  105. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Int32.js.map +1 -0
  106. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/List.d.ts +143 -0
  107. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/List.js +1404 -0
  108. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/List.js.map +1 -0
  109. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Long.d.ts +3 -0
  110. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Long.js +52 -0
  111. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Long.js.map +1 -0
  112. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/MailboxProcessor.d.ts +25 -0
  113. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/MailboxProcessor.js +104 -0
  114. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/MailboxProcessor.js.map +1 -0
  115. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Map.d.ts +178 -0
  116. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Map.js +1525 -0
  117. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Map.js.map +1 -0
  118. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/MapUtil.d.ts +12 -0
  119. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/MapUtil.js +141 -0
  120. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/MapUtil.js.map +1 -0
  121. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/MutableMap.d.ts +52 -0
  122. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/MutableMap.js +355 -0
  123. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/MutableMap.js.map +1 -0
  124. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/MutableSet.d.ts +39 -0
  125. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/MutableSet.js +246 -0
  126. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/MutableSet.js.map +1 -0
  127. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Native.d.ts +3 -0
  128. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Native.js +18 -0
  129. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Native.js.map +1 -0
  130. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Numeric.d.ts +20 -0
  131. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Numeric.js +87 -0
  132. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Numeric.js.map +1 -0
  133. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Observable.d.ts +32 -0
  134. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Observable.js +128 -0
  135. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Observable.js.map +1 -0
  136. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Option.d.ts +29 -0
  137. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Option.js +127 -0
  138. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Option.js.map +1 -0
  139. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Random.d.ts +38 -0
  140. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Random.js +186 -0
  141. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Random.js.map +1 -0
  142. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Range.d.ts +12 -0
  143. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Range.js +56 -0
  144. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Range.js.map +1 -0
  145. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Reflection.d.ts +119 -0
  146. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Reflection.js +529 -0
  147. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Reflection.js.map +1 -0
  148. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/RegExp.d.ts +10 -0
  149. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/RegExp.js +144 -0
  150. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/RegExp.js.map +1 -0
  151. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Result.d.ts +38 -0
  152. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Result.js +191 -0
  153. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Result.js.map +1 -0
  154. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Seq.d.ts +164 -0
  155. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Seq.js +1501 -0
  156. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Seq.js.map +1 -0
  157. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Seq2.d.ts +18 -0
  158. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Seq2.js +129 -0
  159. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Seq2.js.map +1 -0
  160. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Set.d.ts +190 -0
  161. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Set.js +1931 -0
  162. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Set.js.map +1 -0
  163. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/String.d.ts +59 -0
  164. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/String.js +677 -0
  165. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/String.js.map +1 -0
  166. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/System.Collections.Generic.d.ts +85 -0
  167. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/System.Collections.Generic.js +390 -0
  168. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/System.Collections.Generic.js.map +1 -0
  169. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/System.Text.d.ts +40 -0
  170. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/System.Text.js +204 -0
  171. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/System.Text.js.map +1 -0
  172. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/System.d.ts +121 -0
  173. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/System.js +367 -0
  174. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/System.js.map +1 -0
  175. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/TimeOnly.d.ts +15 -0
  176. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/TimeOnly.js +138 -0
  177. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/TimeOnly.js.map +1 -0
  178. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/TimeSpan.d.ts +35 -0
  179. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/TimeSpan.js +210 -0
  180. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/TimeSpan.js.map +1 -0
  181. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Timer.d.ts +19 -0
  182. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Timer.js +72 -0
  183. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Timer.js.map +1 -0
  184. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Types.d.ts +51 -0
  185. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Types.js +205 -0
  186. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Types.js.map +1 -0
  187. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Unicode.13.0.0.d.ts +2 -0
  188. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Unicode.13.0.0.js +8 -0
  189. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Unicode.13.0.0.js.map +1 -0
  190. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Uri.d.ts +32 -0
  191. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Uri.js +170 -0
  192. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Uri.js.map +1 -0
  193. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Util.d.ts +243 -0
  194. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Util.js +903 -0
  195. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Util.js.map +1 -0
  196. package/package.json +5 -2
  197. package/.build.ps1 +0 -307
  198. package/.github/dependabot.yml +0 -38
  199. package/.github/release-drafter.yml +0 -52
  200. package/.github/workflows/cicd.yml +0 -87
  201. package/.github/workflows/lint.yml +0 -34
  202. package/.github/workflows/release-drafter.yml +0 -27
  203. package/Fossa.Bridge.slnx +0 -8
  204. package/build.ps1 +0 -11
  205. package/dotnet-tools.json +0 -27
  206. package/format.ps1 +0 -11
  207. package/gig.ps1 +0 -16
  208. package/global.json +0 -6
  209. package/lint.ps1 +0 -20
  210. package/pack.ps1 +0 -11
  211. package/publish.ps1 +0 -11
  212. package/restore.ps1 +0 -11
  213. package/src/Fossa.Bridge/Fossa.Bridge.fsproj +0 -27
  214. package/src/Fossa.Bridge/Models/ApiModels.fs +0 -142
  215. package/src/Fossa.Bridge/Services/Clients/BranchClient.fs +0 -46
  216. package/src/Fossa.Bridge/Services/Clients/CompanyClient.fs +0 -24
  217. package/src/Fossa.Bridge/Services/Clients/CompanyLicenseClient.fs +0 -17
  218. package/src/Fossa.Bridge/Services/Clients/CompanySettingsClient.fs +0 -24
  219. package/src/Fossa.Bridge/Services/Clients/DepartmentClient.fs +0 -48
  220. package/src/Fossa.Bridge/Services/Clients/EmployeeClient.fs +0 -71
  221. package/src/Fossa.Bridge/Services/Clients/IdentityClient.fs +0 -9
  222. package/src/Fossa.Bridge/Services/Clients/SystemLicenseClient.fs +0 -11
  223. package/src/Fossa.Bridge/Services/Endpoints.fs +0 -13
  224. package/src/Fossa.Bridge/Services/IHttpTransport.fs +0 -10
  225. package/src/Fossa.Bridge/Services/UrlHelpers.fs +0 -18
  226. package/src/Fossa.Bridge/bin/Release/net8.0/Fossa.Bridge.deps.json +0 -98
  227. package/src/Fossa.Bridge/bin/Release/net8.0/Fossa.Bridge.fable-temp.deps.json +0 -41
  228. package/src/Fossa.Bridge/bin/Release/net8.0/Fossa.Bridge.xml +0 -6
  229. package/src/Fossa.Bridge/obj/Fossa.Bridge.fable-temp.csproj.nuget.dgspec.json +0 -83
  230. package/src/Fossa.Bridge/obj/Fossa.Bridge.fable-temp.csproj.nuget.g.props +0 -25
  231. package/src/Fossa.Bridge/obj/Fossa.Bridge.fable-temp.csproj.nuget.g.targets +0 -2
  232. package/src/Fossa.Bridge/obj/Fossa.Bridge.fsproj.nuget.dgspec.json +0 -86
  233. package/src/Fossa.Bridge/obj/Fossa.Bridge.fsproj.nuget.g.props +0 -29
  234. package/src/Fossa.Bridge/obj/Fossa.Bridge.fsproj.nuget.g.targets +0 -2
  235. package/src/Fossa.Bridge/obj/Release/Fossa.Bridge.0.1.5.nuspec +0 -20
  236. package/src/Fossa.Bridge/obj/Release/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs +0 -4
  237. package/src/Fossa.Bridge/obj/Release/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.fs +0 -3
  238. package/src/Fossa.Bridge/obj/Release/net8.0/Fossa.Bridge.AssemblyInfo.fs +0 -18
  239. package/src/Fossa.Bridge/obj/Release/net8.0/Fossa.Bridge.fable-temp.AssemblyInfo.cs +0 -23
  240. package/src/Fossa.Bridge/obj/Release/net8.0/Fossa.Bridge.fable-temp.GeneratedMSBuildEditorConfig.editorconfig +0 -17
  241. package/src/Fossa.Bridge/obj/Release/net8.0/Fossa.Bridge.fable-temp.csproj.FileListAbsolute.txt +0 -4
  242. package/src/Fossa.Bridge/obj/Release/net8.0/Fossa.Bridge.fsproj.FileListAbsolute.txt +0 -14
  243. package/src/Fossa.Bridge/obj/Release/net8.0/Fossa.Bridge.sourcelink.json +0 -1
  244. package/src/Fossa.Bridge/obj/Release/net8.0/Fossa.Bridge.xml +0 -6
  245. package/src/Fossa.Bridge/obj/Release/net8.0/ILLink.Substitutions.xml +0 -15
  246. package/src/Fossa.Bridge/obj/project.assets.json +0 -230
  247. package/test.ps1 +0 -11
  248. package/tests/Fossa.Bridge.Tests/Fossa.Bridge.Tests.fsproj +0 -19
  249. package/tests/Fossa.Bridge.Tests/Main.fs +0 -7
  250. package/tests/Fossa.Bridge.Tests/UrlHelpersTests.fs +0 -33
  251. package/tests/Fossa.Bridge.Tests/bin/Release/net8.0/.msCoverageSourceRootsMapping_Fossa.Bridge.Tests +0 -0
  252. package/tests/Fossa.Bridge.Tests/bin/Release/net8.0/Fossa.Bridge.Tests +0 -0
  253. package/tests/Fossa.Bridge.Tests/bin/Release/net8.0/Fossa.Bridge.Tests.deps.json +0 -806
  254. package/tests/Fossa.Bridge.Tests/bin/Release/net8.0/Fossa.Bridge.Tests.runtimeconfig.json +0 -14
  255. package/tests/Fossa.Bridge.Tests/bin/Release/net8.0/Fossa.Bridge.xml +0 -6
  256. package/tests/Fossa.Bridge.Tests/obj/Fossa.Bridge.Tests.fsproj.nuget.dgspec.json +0 -182
  257. package/tests/Fossa.Bridge.Tests/obj/Fossa.Bridge.Tests.fsproj.nuget.g.props +0 -30
  258. package/tests/Fossa.Bridge.Tests/obj/Fossa.Bridge.Tests.fsproj.nuget.g.targets +0 -11
  259. package/tests/Fossa.Bridge.Tests/obj/Release/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.fs +0 -3
  260. package/tests/Fossa.Bridge.Tests/obj/Release/net8.0/Fossa.Br.E9949494.Up2Date +0 -0
  261. package/tests/Fossa.Bridge.Tests/obj/Release/net8.0/Fossa.Bridge.Tests.AssemblyInfo.fs +0 -17
  262. package/tests/Fossa.Bridge.Tests/obj/Release/net8.0/Fossa.Bridge.Tests.fsproj.FileListAbsolute.txt +0 -190
  263. package/tests/Fossa.Bridge.Tests/obj/Release/net8.0/Fossa.Bridge.Tests.sourcelink.json +0 -1
  264. package/tests/Fossa.Bridge.Tests/obj/Release/net8.0/ILLink.Substitutions.xml +0 -15
  265. package/tests/Fossa.Bridge.Tests/obj/Release/net8.0/apphost +0 -0
  266. package/tests/Fossa.Bridge.Tests/obj/project.assets.json +0 -2023
  267. package/trigger.ps1 +0 -32
  268. package/tsconfig.json +0 -16
  269. package/version.ps1 +0 -11
@@ -0,0 +1,1404 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListEnumerator$1 = exports.FSharpList = void 0;
4
+ exports.FSharpList_$reflection = FSharpList_$reflection;
5
+ exports.ListEnumerator$1_$reflection = ListEnumerator$1_$reflection;
6
+ exports.ListEnumerator$1_$ctor_3002E699 = ListEnumerator$1_$ctor_3002E699;
7
+ exports.FSharpList_get_Empty = FSharpList_get_Empty;
8
+ exports.FSharpList_Cons_305B8EAC = FSharpList_Cons_305B8EAC;
9
+ exports.FSharpList__get_IsEmpty = FSharpList__get_IsEmpty;
10
+ exports.FSharpList__get_Length = FSharpList__get_Length;
11
+ exports.FSharpList__get_Head = FSharpList__get_Head;
12
+ exports.FSharpList__get_Tail = FSharpList__get_Tail;
13
+ exports.FSharpList__get_Item_Z524259A4 = FSharpList__get_Item_Z524259A4;
14
+ exports.indexNotFound = indexNotFound;
15
+ exports.empty = empty;
16
+ exports.cons = cons;
17
+ exports.singleton = singleton;
18
+ exports.isEmpty = isEmpty;
19
+ exports.length = length;
20
+ exports.head = head;
21
+ exports.tryHead = tryHead;
22
+ exports.tail = tail;
23
+ exports.tryLast = tryLast;
24
+ exports.last = last;
25
+ exports.compareWith = compareWith;
26
+ exports.toArray = toArray;
27
+ exports.fold = fold;
28
+ exports.reverse = reverse;
29
+ exports.foldBack = foldBack;
30
+ exports.foldIndexed = foldIndexed;
31
+ exports.fold2 = fold2;
32
+ exports.foldBack2 = foldBack2;
33
+ exports.unfold = unfold;
34
+ exports.iterate = iterate;
35
+ exports.iterate2 = iterate2;
36
+ exports.iterateIndexed = iterateIndexed;
37
+ exports.iterateIndexed2 = iterateIndexed2;
38
+ exports.toSeq = toSeq;
39
+ exports.ofArrayWithTail = ofArrayWithTail;
40
+ exports.ofArray = ofArray;
41
+ exports.ofSeq = ofSeq;
42
+ exports.concat = concat;
43
+ exports.scan = scan;
44
+ exports.scanBack = scanBack;
45
+ exports.append = append;
46
+ exports.collect = collect;
47
+ exports.mapIndexed = mapIndexed;
48
+ exports.map = map;
49
+ exports.indexed = indexed;
50
+ exports.map2 = map2;
51
+ exports.mapIndexed2 = mapIndexed2;
52
+ exports.map3 = map3;
53
+ exports.mapFold = mapFold;
54
+ exports.mapFoldBack = mapFoldBack;
55
+ exports.tryPick = tryPick;
56
+ exports.pick = pick;
57
+ exports.tryFind = tryFind;
58
+ exports.find = find;
59
+ exports.tryFindBack = tryFindBack;
60
+ exports.findBack = findBack;
61
+ exports.tryFindIndex = tryFindIndex;
62
+ exports.findIndex = findIndex;
63
+ exports.tryFindIndexBack = tryFindIndexBack;
64
+ exports.findIndexBack = findIndexBack;
65
+ exports.tryItem = tryItem;
66
+ exports.item = item;
67
+ exports.filter = filter;
68
+ exports.partition = partition;
69
+ exports.choose = choose;
70
+ exports.contains = contains;
71
+ exports.initialize = initialize;
72
+ exports.replicate = replicate;
73
+ exports.reduce = reduce;
74
+ exports.reduceBack = reduceBack;
75
+ exports.forAll = forAll;
76
+ exports.forAll2 = forAll2;
77
+ exports.exists = exists;
78
+ exports.exists2 = exists2;
79
+ exports.unzip = unzip;
80
+ exports.unzip3 = unzip3;
81
+ exports.zip = zip;
82
+ exports.zip3 = zip3;
83
+ exports.sortWith = sortWith;
84
+ exports.sort = sort;
85
+ exports.sortBy = sortBy;
86
+ exports.sortDescending = sortDescending;
87
+ exports.sortByDescending = sortByDescending;
88
+ exports.sum = sum;
89
+ exports.sumBy = sumBy;
90
+ exports.maxBy = maxBy;
91
+ exports.max = max;
92
+ exports.minBy = minBy;
93
+ exports.min = min;
94
+ exports.average = average;
95
+ exports.averageBy = averageBy;
96
+ exports.permute = permute;
97
+ exports.chunkBySize = chunkBySize;
98
+ exports.allPairs = allPairs;
99
+ exports.skip = skip;
100
+ exports.skipWhile = skipWhile;
101
+ exports.take = take;
102
+ exports.takeWhile = takeWhile;
103
+ exports.truncate = truncate;
104
+ exports.getSlice = getSlice;
105
+ exports.splitAt = splitAt;
106
+ exports.exactlyOne = exactlyOne;
107
+ exports.tryExactlyOne = tryExactlyOne;
108
+ exports.where = where;
109
+ exports.pairwise = pairwise;
110
+ exports.windowed = windowed;
111
+ exports.splitInto = splitInto;
112
+ exports.transpose = transpose;
113
+ exports.insertAt = insertAt;
114
+ exports.insertManyAt = insertManyAt;
115
+ exports.removeAt = removeAt;
116
+ exports.removeManyAt = removeManyAt;
117
+ exports.updateAt = updateAt;
118
+ const String_ts_1 = require("./String.js");
119
+ const Option_ts_1 = require("./Option.js");
120
+ const Util_ts_1 = require("./Util.js");
121
+ const Types_ts_1 = require("./Types.js");
122
+ const Reflection_ts_1 = require("./Reflection.js");
123
+ const Global_ts_1 = require("./Global.js");
124
+ const System_Collections_Generic_ts_1 = require("./System.Collections.Generic.js");
125
+ const Array_ts_1 = require("./Array.js");
126
+ class FSharpList extends Types_ts_1.Record {
127
+ constructor(head, tail) {
128
+ super();
129
+ this.head = head;
130
+ this.tail = tail;
131
+ }
132
+ toString() {
133
+ const xs = this;
134
+ return ("[" + (0, String_ts_1.join)("; ", xs)) + "]";
135
+ }
136
+ Equals(other) {
137
+ const xs = this;
138
+ if (xs === other) {
139
+ return true;
140
+ }
141
+ else if (other instanceof FSharpList) {
142
+ const ys = other;
143
+ const loop = (xs_1_mut, ys_1_mut) => {
144
+ loop: while (true) {
145
+ const xs_1 = xs_1_mut, ys_1 = ys_1_mut;
146
+ const matchValue = xs_1.tail;
147
+ const matchValue_1 = ys_1.tail;
148
+ if (matchValue != null) {
149
+ if (matchValue_1 != null) {
150
+ const xt = (0, Option_ts_1.value)(matchValue);
151
+ const yt = (0, Option_ts_1.value)(matchValue_1);
152
+ if ((0, Util_ts_1.equals)(xs_1.head, ys_1.head)) {
153
+ xs_1_mut = xt;
154
+ ys_1_mut = yt;
155
+ continue loop;
156
+ }
157
+ else {
158
+ return false;
159
+ }
160
+ }
161
+ else {
162
+ return false;
163
+ }
164
+ }
165
+ else if (matchValue_1 != null) {
166
+ return false;
167
+ }
168
+ else {
169
+ return true;
170
+ }
171
+ break;
172
+ }
173
+ };
174
+ return loop(xs, ys);
175
+ }
176
+ else {
177
+ return false;
178
+ }
179
+ }
180
+ GetHashCode() {
181
+ const xs = this;
182
+ const loop = (i_mut, h_mut, xs_1_mut) => {
183
+ loop: while (true) {
184
+ const i = i_mut, h = h_mut, xs_1 = xs_1_mut;
185
+ const matchValue = xs_1.tail;
186
+ if (matchValue != null) {
187
+ const t = (0, Option_ts_1.value)(matchValue);
188
+ if (i > 18) {
189
+ return h | 0;
190
+ }
191
+ else {
192
+ i_mut = (i + 1);
193
+ h_mut = (((h << 1) + (0, Util_ts_1.structuralHash)(xs_1.head)) + (631 * i));
194
+ xs_1_mut = t;
195
+ continue loop;
196
+ }
197
+ }
198
+ else {
199
+ return h | 0;
200
+ }
201
+ break;
202
+ }
203
+ };
204
+ return loop(0, 0, xs) | 0;
205
+ }
206
+ toJSON() {
207
+ const this$ = this;
208
+ return Array.from(this$);
209
+ }
210
+ CompareTo(other) {
211
+ const xs = this;
212
+ if (other instanceof FSharpList) {
213
+ const ys = other;
214
+ const loop = (xs_1_mut, ys_1_mut) => {
215
+ loop: while (true) {
216
+ const xs_1 = xs_1_mut, ys_1 = ys_1_mut;
217
+ const matchValue = xs_1.tail;
218
+ const matchValue_1 = ys_1.tail;
219
+ if (matchValue != null) {
220
+ if (matchValue_1 != null) {
221
+ const xt = (0, Option_ts_1.value)(matchValue);
222
+ const yt = (0, Option_ts_1.value)(matchValue_1);
223
+ const c = (0, Util_ts_1.compare)(xs_1.head, ys_1.head) | 0;
224
+ if (c === 0) {
225
+ xs_1_mut = xt;
226
+ ys_1_mut = yt;
227
+ continue loop;
228
+ }
229
+ else {
230
+ return c | 0;
231
+ }
232
+ }
233
+ else {
234
+ return 1;
235
+ }
236
+ }
237
+ else if (matchValue_1 != null) {
238
+ return -1;
239
+ }
240
+ else {
241
+ return 0;
242
+ }
243
+ break;
244
+ }
245
+ };
246
+ return loop(xs, ys) | 0;
247
+ }
248
+ else {
249
+ return 1;
250
+ }
251
+ }
252
+ GetEnumerator() {
253
+ const xs = this;
254
+ return ListEnumerator$1_$ctor_3002E699(xs);
255
+ }
256
+ [Symbol.iterator]() {
257
+ return (0, Util_ts_1.toIterator)((0, Util_ts_1.getEnumerator)(this));
258
+ }
259
+ "System.Collections.IEnumerable.GetEnumerator"() {
260
+ const xs = this;
261
+ return (0, Util_ts_1.getEnumerator)(xs);
262
+ }
263
+ }
264
+ exports.FSharpList = FSharpList;
265
+ function FSharpList_$reflection(gen0) {
266
+ return (0, Reflection_ts_1.record_type)("ListModule.FSharpList", [gen0], FSharpList, () => [["head", gen0], ["tail", (0, Reflection_ts_1.option_type)(FSharpList_$reflection(gen0))]]);
267
+ }
268
+ class ListEnumerator$1 {
269
+ constructor(xs) {
270
+ this.xs = xs;
271
+ this.it = this.xs;
272
+ this.current = (0, Util_ts_1.defaultOf)();
273
+ }
274
+ "System.Collections.Generic.IEnumerator`1.get_Current"() {
275
+ const _ = this;
276
+ return _.current;
277
+ }
278
+ "System.Collections.IEnumerator.get_Current"() {
279
+ const _ = this;
280
+ return _.current;
281
+ }
282
+ "System.Collections.IEnumerator.MoveNext"() {
283
+ const _ = this;
284
+ const matchValue = _.it.tail;
285
+ if (matchValue != null) {
286
+ const t = (0, Option_ts_1.value)(matchValue);
287
+ _.current = _.it.head;
288
+ _.it = t;
289
+ return true;
290
+ }
291
+ else {
292
+ return false;
293
+ }
294
+ }
295
+ "System.Collections.IEnumerator.Reset"() {
296
+ const _ = this;
297
+ _.it = _.xs;
298
+ _.current = (0, Util_ts_1.defaultOf)();
299
+ }
300
+ Dispose() {
301
+ }
302
+ }
303
+ exports.ListEnumerator$1 = ListEnumerator$1;
304
+ function ListEnumerator$1_$reflection(gen0) {
305
+ return (0, Reflection_ts_1.class_type)("ListModule.ListEnumerator`1", [gen0], ListEnumerator$1);
306
+ }
307
+ function ListEnumerator$1_$ctor_3002E699(xs) {
308
+ return new ListEnumerator$1(xs);
309
+ }
310
+ function FSharpList_get_Empty() {
311
+ return new FSharpList((0, Util_ts_1.defaultOf)(), undefined);
312
+ }
313
+ function FSharpList_Cons_305B8EAC(x, xs) {
314
+ return new FSharpList(x, xs);
315
+ }
316
+ function FSharpList__get_IsEmpty(xs) {
317
+ return xs.tail == null;
318
+ }
319
+ function FSharpList__get_Length(xs) {
320
+ const loop = (i_mut, xs_1_mut) => {
321
+ loop: while (true) {
322
+ const i = i_mut, xs_1 = xs_1_mut;
323
+ const matchValue = xs_1.tail;
324
+ if (matchValue != null) {
325
+ i_mut = (i + 1);
326
+ xs_1_mut = (0, Option_ts_1.value)(matchValue);
327
+ continue loop;
328
+ }
329
+ else {
330
+ return i | 0;
331
+ }
332
+ break;
333
+ }
334
+ };
335
+ return loop(0, xs) | 0;
336
+ }
337
+ function FSharpList__get_Head(xs) {
338
+ const matchValue = xs.tail;
339
+ if (matchValue != null) {
340
+ return xs.head;
341
+ }
342
+ else {
343
+ throw new Util_ts_1.Exception((Global_ts_1.SR_inputWasEmpty + "\\nParameter name: ") + "list");
344
+ }
345
+ }
346
+ function FSharpList__get_Tail(xs) {
347
+ const matchValue = xs.tail;
348
+ if (matchValue != null) {
349
+ return (0, Option_ts_1.value)(matchValue);
350
+ }
351
+ else {
352
+ throw new Util_ts_1.Exception((Global_ts_1.SR_inputWasEmpty + "\\nParameter name: ") + "list");
353
+ }
354
+ }
355
+ function FSharpList__get_Item_Z524259A4(xs, index) {
356
+ const loop = (i_mut, xs_1_mut) => {
357
+ loop: while (true) {
358
+ const i = i_mut, xs_1 = xs_1_mut;
359
+ const matchValue = xs_1.tail;
360
+ if (matchValue != null) {
361
+ if (i === index) {
362
+ return xs_1.head;
363
+ }
364
+ else {
365
+ i_mut = (i + 1);
366
+ xs_1_mut = (0, Option_ts_1.value)(matchValue);
367
+ continue loop;
368
+ }
369
+ }
370
+ else {
371
+ throw new Util_ts_1.Exception((Global_ts_1.SR_indexOutOfBounds + "\\nParameter name: ") + "index");
372
+ }
373
+ break;
374
+ }
375
+ };
376
+ return loop(0, xs);
377
+ }
378
+ function indexNotFound() {
379
+ throw (0, System_Collections_Generic_ts_1.KeyNotFoundException_$ctor_Z721C83C5)(Global_ts_1.SR_keyNotFoundAlt);
380
+ }
381
+ function empty() {
382
+ return FSharpList_get_Empty();
383
+ }
384
+ function cons(x, xs) {
385
+ return FSharpList_Cons_305B8EAC(x, xs);
386
+ }
387
+ function singleton(x) {
388
+ return FSharpList_Cons_305B8EAC(x, FSharpList_get_Empty());
389
+ }
390
+ function isEmpty(xs) {
391
+ return FSharpList__get_IsEmpty(xs);
392
+ }
393
+ function length(xs) {
394
+ return FSharpList__get_Length(xs) | 0;
395
+ }
396
+ function head(xs) {
397
+ return FSharpList__get_Head(xs);
398
+ }
399
+ function tryHead(xs) {
400
+ if (FSharpList__get_IsEmpty(xs)) {
401
+ return undefined;
402
+ }
403
+ else {
404
+ return (0, Option_ts_1.some)(FSharpList__get_Head(xs));
405
+ }
406
+ }
407
+ function tail(xs) {
408
+ return FSharpList__get_Tail(xs);
409
+ }
410
+ function tryLast(xs_mut) {
411
+ tryLast: while (true) {
412
+ const xs = xs_mut;
413
+ if (FSharpList__get_IsEmpty(xs)) {
414
+ return undefined;
415
+ }
416
+ else {
417
+ const t = FSharpList__get_Tail(xs);
418
+ if (FSharpList__get_IsEmpty(t)) {
419
+ return (0, Option_ts_1.some)(FSharpList__get_Head(xs));
420
+ }
421
+ else {
422
+ xs_mut = t;
423
+ continue tryLast;
424
+ }
425
+ }
426
+ break;
427
+ }
428
+ }
429
+ function last(xs) {
430
+ const matchValue = tryLast(xs);
431
+ if (matchValue == null) {
432
+ throw new Util_ts_1.Exception(Global_ts_1.SR_inputWasEmpty);
433
+ }
434
+ else {
435
+ return (0, Option_ts_1.value)(matchValue);
436
+ }
437
+ }
438
+ function compareWith(comparer, xs, ys) {
439
+ const loop = (xs_1_mut, ys_1_mut) => {
440
+ loop: while (true) {
441
+ const xs_1 = xs_1_mut, ys_1 = ys_1_mut;
442
+ const matchValue = FSharpList__get_IsEmpty(xs_1);
443
+ const matchValue_1 = FSharpList__get_IsEmpty(ys_1);
444
+ if (matchValue) {
445
+ if (matchValue_1) {
446
+ return 0;
447
+ }
448
+ else {
449
+ return -1;
450
+ }
451
+ }
452
+ else if (matchValue_1) {
453
+ return 1;
454
+ }
455
+ else {
456
+ const c = comparer(FSharpList__get_Head(xs_1), FSharpList__get_Head(ys_1)) | 0;
457
+ if (c === 0) {
458
+ xs_1_mut = FSharpList__get_Tail(xs_1);
459
+ ys_1_mut = FSharpList__get_Tail(ys_1);
460
+ continue loop;
461
+ }
462
+ else {
463
+ return c | 0;
464
+ }
465
+ }
466
+ break;
467
+ }
468
+ };
469
+ return loop(xs, ys) | 0;
470
+ }
471
+ function toArray(xs) {
472
+ const len = FSharpList__get_Length(xs) | 0;
473
+ const res = (0, Array_ts_1.fill)(new Array(len), 0, len, null);
474
+ const loop = (i_mut, xs_1_mut) => {
475
+ loop: while (true) {
476
+ const i = i_mut, xs_1 = xs_1_mut;
477
+ if (!FSharpList__get_IsEmpty(xs_1)) {
478
+ (0, Array_ts_1.setItem)(res, i, FSharpList__get_Head(xs_1));
479
+ i_mut = (i + 1);
480
+ xs_1_mut = FSharpList__get_Tail(xs_1);
481
+ continue loop;
482
+ }
483
+ break;
484
+ }
485
+ };
486
+ loop(0, xs);
487
+ return res;
488
+ }
489
+ function fold(folder, state, xs) {
490
+ let acc = state;
491
+ let xs_1 = xs;
492
+ while (!FSharpList__get_IsEmpty(xs_1)) {
493
+ acc = folder(acc, head(xs_1));
494
+ xs_1 = FSharpList__get_Tail(xs_1);
495
+ }
496
+ return acc;
497
+ }
498
+ function reverse(xs) {
499
+ return fold((acc, x) => FSharpList_Cons_305B8EAC(x, acc), FSharpList_get_Empty(), xs);
500
+ }
501
+ function foldBack(folder, xs, state) {
502
+ return (0, Array_ts_1.foldBack)(folder, toArray(xs), state);
503
+ }
504
+ function foldIndexed(folder, state, xs) {
505
+ const loop = (i_mut, acc_mut, xs_1_mut) => {
506
+ loop: while (true) {
507
+ const i = i_mut, acc = acc_mut, xs_1 = xs_1_mut;
508
+ if (FSharpList__get_IsEmpty(xs_1)) {
509
+ return acc;
510
+ }
511
+ else {
512
+ i_mut = (i + 1);
513
+ acc_mut = folder(i, acc, FSharpList__get_Head(xs_1));
514
+ xs_1_mut = FSharpList__get_Tail(xs_1);
515
+ continue loop;
516
+ }
517
+ break;
518
+ }
519
+ };
520
+ return loop(0, state, xs);
521
+ }
522
+ function fold2(folder, state, xs, ys) {
523
+ let acc = state;
524
+ let xs_1 = xs;
525
+ let ys_1 = ys;
526
+ while (!FSharpList__get_IsEmpty(xs_1) && !FSharpList__get_IsEmpty(ys_1)) {
527
+ acc = folder(acc, FSharpList__get_Head(xs_1), FSharpList__get_Head(ys_1));
528
+ xs_1 = FSharpList__get_Tail(xs_1);
529
+ ys_1 = FSharpList__get_Tail(ys_1);
530
+ }
531
+ return acc;
532
+ }
533
+ function foldBack2(folder, xs, ys, state) {
534
+ return (0, Array_ts_1.foldBack2)(folder, toArray(xs), toArray(ys), state);
535
+ }
536
+ function unfold(generator, state) {
537
+ const loop = (acc_mut, node_mut) => {
538
+ loop: while (true) {
539
+ const acc = acc_mut, node = node_mut;
540
+ let t = undefined;
541
+ const matchValue = generator(acc);
542
+ if (matchValue != null) {
543
+ acc_mut = (0, Option_ts_1.value)(matchValue)[1];
544
+ node_mut = ((t = (new FSharpList((0, Option_ts_1.value)(matchValue)[0], undefined)), (node.tail = t, t)));
545
+ continue loop;
546
+ }
547
+ else {
548
+ return node;
549
+ }
550
+ break;
551
+ }
552
+ };
553
+ const root = FSharpList_get_Empty();
554
+ const node_1 = loop(state, root);
555
+ const t_2 = FSharpList_get_Empty();
556
+ node_1.tail = t_2;
557
+ return FSharpList__get_Tail(root);
558
+ }
559
+ function iterate(action, xs) {
560
+ fold((unitVar, x) => {
561
+ action(x);
562
+ }, undefined, xs);
563
+ }
564
+ function iterate2(action, xs, ys) {
565
+ fold2((unitVar, x, y) => {
566
+ action(x, y);
567
+ }, undefined, xs, ys);
568
+ }
569
+ function iterateIndexed(action, xs) {
570
+ fold((i, x) => {
571
+ action(i, x);
572
+ return (i + 1) | 0;
573
+ }, 0, xs);
574
+ }
575
+ function iterateIndexed2(action, xs, ys) {
576
+ fold2((i, x, y) => {
577
+ action(i, x, y);
578
+ return (i + 1) | 0;
579
+ }, 0, xs, ys);
580
+ }
581
+ function toSeq(xs) {
582
+ return xs;
583
+ }
584
+ function ofArrayWithTail(xs, tail_1) {
585
+ let res = tail_1;
586
+ for (let i = xs.length - 1; i >= 0; i--) {
587
+ res = FSharpList_Cons_305B8EAC((0, Array_ts_1.item)(i, xs), res);
588
+ }
589
+ return res;
590
+ }
591
+ function ofArray(xs) {
592
+ return ofArrayWithTail(xs, FSharpList_get_Empty());
593
+ }
594
+ function ofSeq(xs) {
595
+ if ((0, Util_ts_1.isArrayLike)(xs)) {
596
+ return ofArray(xs);
597
+ }
598
+ else if (xs instanceof FSharpList) {
599
+ return xs;
600
+ }
601
+ else {
602
+ const root = FSharpList_get_Empty();
603
+ let node = root;
604
+ const enumerator = (0, Util_ts_1.getEnumerator)(xs);
605
+ try {
606
+ while (enumerator["System.Collections.IEnumerator.MoveNext"]()) {
607
+ let xs_3 = undefined, t = undefined;
608
+ const x = enumerator["System.Collections.Generic.IEnumerator`1.get_Current"]();
609
+ node = ((xs_3 = node, (t = (new FSharpList(x, undefined)), (xs_3.tail = t, t))));
610
+ }
611
+ }
612
+ finally {
613
+ (0, Util_ts_1.disposeSafe)(enumerator);
614
+ }
615
+ const xs_5 = node;
616
+ const t_2 = FSharpList_get_Empty();
617
+ xs_5.tail = t_2;
618
+ return FSharpList__get_Tail(root);
619
+ }
620
+ }
621
+ function concat(lists) {
622
+ const root = FSharpList_get_Empty();
623
+ let node = root;
624
+ const action = (xs) => {
625
+ node = fold((acc, x) => {
626
+ const t = new FSharpList(x, undefined);
627
+ acc.tail = t;
628
+ return t;
629
+ }, node, xs);
630
+ };
631
+ if ((0, Util_ts_1.isArrayLike)(lists)) {
632
+ const xs_3 = lists;
633
+ xs_3.forEach(action);
634
+ }
635
+ else if (lists instanceof FSharpList) {
636
+ iterate(action, lists);
637
+ }
638
+ else {
639
+ const enumerator = (0, Util_ts_1.getEnumerator)(lists);
640
+ try {
641
+ while (enumerator["System.Collections.IEnumerator.MoveNext"]()) {
642
+ action(enumerator["System.Collections.Generic.IEnumerator`1.get_Current"]());
643
+ }
644
+ }
645
+ finally {
646
+ (0, Util_ts_1.disposeSafe)(enumerator);
647
+ }
648
+ }
649
+ const xs_6 = node;
650
+ const t_2 = FSharpList_get_Empty();
651
+ xs_6.tail = t_2;
652
+ return FSharpList__get_Tail(root);
653
+ }
654
+ function scan(folder, state, xs) {
655
+ const root = FSharpList_get_Empty();
656
+ let node;
657
+ const t = new FSharpList(state, undefined);
658
+ root.tail = t;
659
+ node = t;
660
+ let acc = state;
661
+ let xs_3 = xs;
662
+ while (!FSharpList__get_IsEmpty(xs_3)) {
663
+ let xs_4 = undefined, t_2 = undefined;
664
+ acc = folder(acc, FSharpList__get_Head(xs_3));
665
+ node = ((xs_4 = node, (t_2 = (new FSharpList(acc, undefined)), (xs_4.tail = t_2, t_2))));
666
+ xs_3 = FSharpList__get_Tail(xs_3);
667
+ }
668
+ const xs_6 = node;
669
+ const t_4 = FSharpList_get_Empty();
670
+ xs_6.tail = t_4;
671
+ return FSharpList__get_Tail(root);
672
+ }
673
+ function scanBack(folder, xs, state) {
674
+ return ofArray((0, Array_ts_1.scanBack)(folder, toArray(xs), state));
675
+ }
676
+ function append(xs, ys) {
677
+ return fold((acc, x) => FSharpList_Cons_305B8EAC(x, acc), ys, reverse(xs));
678
+ }
679
+ function collect(mapping, xs) {
680
+ const root = FSharpList_get_Empty();
681
+ let node = root;
682
+ let ys = xs;
683
+ while (!FSharpList__get_IsEmpty(ys)) {
684
+ let zs = mapping(FSharpList__get_Head(ys));
685
+ while (!FSharpList__get_IsEmpty(zs)) {
686
+ let xs_1 = undefined, t = undefined;
687
+ node = ((xs_1 = node, (t = (new FSharpList(FSharpList__get_Head(zs), undefined)), (xs_1.tail = t, t))));
688
+ zs = FSharpList__get_Tail(zs);
689
+ }
690
+ ys = FSharpList__get_Tail(ys);
691
+ }
692
+ const xs_3 = node;
693
+ const t_2 = FSharpList_get_Empty();
694
+ xs_3.tail = t_2;
695
+ return FSharpList__get_Tail(root);
696
+ }
697
+ function mapIndexed(mapping, xs) {
698
+ const root = FSharpList_get_Empty();
699
+ const node = foldIndexed((i, acc, x) => {
700
+ const t = new FSharpList(mapping(i, x), undefined);
701
+ acc.tail = t;
702
+ return t;
703
+ }, root, xs);
704
+ const t_2 = FSharpList_get_Empty();
705
+ node.tail = t_2;
706
+ return FSharpList__get_Tail(root);
707
+ }
708
+ function map(mapping, xs) {
709
+ const root = FSharpList_get_Empty();
710
+ const node = fold((acc, x) => {
711
+ const t = new FSharpList(mapping(x), undefined);
712
+ acc.tail = t;
713
+ return t;
714
+ }, root, xs);
715
+ const t_2 = FSharpList_get_Empty();
716
+ node.tail = t_2;
717
+ return FSharpList__get_Tail(root);
718
+ }
719
+ function indexed(xs) {
720
+ return mapIndexed((i, x) => [i, x], xs);
721
+ }
722
+ function map2(mapping, xs, ys) {
723
+ const root = FSharpList_get_Empty();
724
+ const node = fold2((acc, x, y) => {
725
+ const t = new FSharpList(mapping(x, y), undefined);
726
+ acc.tail = t;
727
+ return t;
728
+ }, root, xs, ys);
729
+ const t_2 = FSharpList_get_Empty();
730
+ node.tail = t_2;
731
+ return FSharpList__get_Tail(root);
732
+ }
733
+ function mapIndexed2(mapping, xs, ys) {
734
+ const loop = (i_mut, acc_mut, xs_1_mut, ys_1_mut) => {
735
+ loop: while (true) {
736
+ const i = i_mut, acc = acc_mut, xs_1 = xs_1_mut, ys_1 = ys_1_mut;
737
+ let t = undefined;
738
+ if (FSharpList__get_IsEmpty(xs_1) ? true : FSharpList__get_IsEmpty(ys_1)) {
739
+ return acc;
740
+ }
741
+ else {
742
+ i_mut = (i + 1);
743
+ acc_mut = ((t = (new FSharpList(mapping(i, FSharpList__get_Head(xs_1), FSharpList__get_Head(ys_1)), undefined)), (acc.tail = t, t)));
744
+ xs_1_mut = FSharpList__get_Tail(xs_1);
745
+ ys_1_mut = FSharpList__get_Tail(ys_1);
746
+ continue loop;
747
+ }
748
+ break;
749
+ }
750
+ };
751
+ const root = FSharpList_get_Empty();
752
+ const node_1 = loop(0, root, xs, ys);
753
+ const t_2 = FSharpList_get_Empty();
754
+ node_1.tail = t_2;
755
+ return FSharpList__get_Tail(root);
756
+ }
757
+ function map3(mapping, xs, ys, zs) {
758
+ const loop = (acc_mut, xs_1_mut, ys_1_mut, zs_1_mut) => {
759
+ loop: while (true) {
760
+ const acc = acc_mut, xs_1 = xs_1_mut, ys_1 = ys_1_mut, zs_1 = zs_1_mut;
761
+ let t = undefined;
762
+ if ((FSharpList__get_IsEmpty(xs_1) ? true : FSharpList__get_IsEmpty(ys_1)) ? true : FSharpList__get_IsEmpty(zs_1)) {
763
+ return acc;
764
+ }
765
+ else {
766
+ 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)));
767
+ xs_1_mut = FSharpList__get_Tail(xs_1);
768
+ ys_1_mut = FSharpList__get_Tail(ys_1);
769
+ zs_1_mut = FSharpList__get_Tail(zs_1);
770
+ continue loop;
771
+ }
772
+ break;
773
+ }
774
+ };
775
+ const root = FSharpList_get_Empty();
776
+ const node_1 = loop(root, xs, ys, zs);
777
+ const t_2 = FSharpList_get_Empty();
778
+ node_1.tail = t_2;
779
+ return FSharpList__get_Tail(root);
780
+ }
781
+ function mapFold(mapping, state, xs) {
782
+ const root = FSharpList_get_Empty();
783
+ const patternInput_1 = fold((tupledArg, x) => {
784
+ let t = undefined;
785
+ const patternInput = mapping(tupledArg[1], x);
786
+ return [(t = (new FSharpList(patternInput[0], undefined)), (tupledArg[0].tail = t, t)), patternInput[1]];
787
+ }, [root, state], xs);
788
+ const t_2 = FSharpList_get_Empty();
789
+ patternInput_1[0].tail = t_2;
790
+ return [FSharpList__get_Tail(root), patternInput_1[1]];
791
+ }
792
+ function mapFoldBack(mapping, xs, state) {
793
+ return mapFold((acc, x) => mapping(x, acc), state, reverse(xs));
794
+ }
795
+ function tryPick(f, xs) {
796
+ const loop = (xs_1_mut) => {
797
+ loop: while (true) {
798
+ const xs_1 = xs_1_mut;
799
+ if (FSharpList__get_IsEmpty(xs_1)) {
800
+ return undefined;
801
+ }
802
+ else {
803
+ const matchValue = f(FSharpList__get_Head(xs_1));
804
+ if (matchValue == null) {
805
+ xs_1_mut = FSharpList__get_Tail(xs_1);
806
+ continue loop;
807
+ }
808
+ else {
809
+ return matchValue;
810
+ }
811
+ }
812
+ break;
813
+ }
814
+ };
815
+ return loop(xs);
816
+ }
817
+ function pick(f, xs) {
818
+ const matchValue = tryPick(f, xs);
819
+ if (matchValue == null) {
820
+ return indexNotFound();
821
+ }
822
+ else {
823
+ return (0, Option_ts_1.value)(matchValue);
824
+ }
825
+ }
826
+ function tryFind(f, xs) {
827
+ return tryPick((x) => (f(x) ? (0, Option_ts_1.some)(x) : undefined), xs);
828
+ }
829
+ function find(f, xs) {
830
+ const matchValue = tryFind(f, xs);
831
+ if (matchValue == null) {
832
+ return indexNotFound();
833
+ }
834
+ else {
835
+ return (0, Option_ts_1.value)(matchValue);
836
+ }
837
+ }
838
+ function tryFindBack(f, xs) {
839
+ return (0, Array_ts_1.tryFindBack)(f, toArray(xs));
840
+ }
841
+ function findBack(f, xs) {
842
+ const matchValue = tryFindBack(f, xs);
843
+ if (matchValue == null) {
844
+ return indexNotFound();
845
+ }
846
+ else {
847
+ return (0, Option_ts_1.value)(matchValue);
848
+ }
849
+ }
850
+ function tryFindIndex(f, xs) {
851
+ const loop = (i_mut, xs_1_mut) => {
852
+ loop: while (true) {
853
+ const i = i_mut, xs_1 = xs_1_mut;
854
+ if (FSharpList__get_IsEmpty(xs_1)) {
855
+ return undefined;
856
+ }
857
+ else if (f(FSharpList__get_Head(xs_1))) {
858
+ return i;
859
+ }
860
+ else {
861
+ i_mut = (i + 1);
862
+ xs_1_mut = FSharpList__get_Tail(xs_1);
863
+ continue loop;
864
+ }
865
+ break;
866
+ }
867
+ };
868
+ return loop(0, xs);
869
+ }
870
+ function findIndex(f, xs) {
871
+ const matchValue = tryFindIndex(f, xs);
872
+ if (matchValue == null) {
873
+ indexNotFound();
874
+ return -1;
875
+ }
876
+ else {
877
+ return (0, Option_ts_1.value)(matchValue) | 0;
878
+ }
879
+ }
880
+ function tryFindIndexBack(f, xs) {
881
+ return (0, Array_ts_1.tryFindIndexBack)(f, toArray(xs));
882
+ }
883
+ function findIndexBack(f, xs) {
884
+ const matchValue = tryFindIndexBack(f, xs);
885
+ if (matchValue == null) {
886
+ indexNotFound();
887
+ return -1;
888
+ }
889
+ else {
890
+ return (0, Option_ts_1.value)(matchValue) | 0;
891
+ }
892
+ }
893
+ function tryItem(n, xs) {
894
+ const loop = (i_mut, xs_1_mut) => {
895
+ loop: while (true) {
896
+ const i = i_mut, xs_1 = xs_1_mut;
897
+ if (FSharpList__get_IsEmpty(xs_1)) {
898
+ return undefined;
899
+ }
900
+ else if (i === n) {
901
+ return (0, Option_ts_1.some)(FSharpList__get_Head(xs_1));
902
+ }
903
+ else {
904
+ i_mut = (i + 1);
905
+ xs_1_mut = FSharpList__get_Tail(xs_1);
906
+ continue loop;
907
+ }
908
+ break;
909
+ }
910
+ };
911
+ return loop(0, xs);
912
+ }
913
+ function item(n, xs) {
914
+ return FSharpList__get_Item_Z524259A4(xs, n);
915
+ }
916
+ function filter(f, xs) {
917
+ const root = FSharpList_get_Empty();
918
+ const node = fold((acc, x) => {
919
+ if (f(x)) {
920
+ const t = new FSharpList(x, undefined);
921
+ acc.tail = t;
922
+ return t;
923
+ }
924
+ else {
925
+ return acc;
926
+ }
927
+ }, root, xs);
928
+ const t_2 = FSharpList_get_Empty();
929
+ node.tail = t_2;
930
+ return FSharpList__get_Tail(root);
931
+ }
932
+ function partition(f, xs) {
933
+ const matchValue = FSharpList_get_Empty();
934
+ const root2 = FSharpList_get_Empty();
935
+ const root1 = matchValue;
936
+ const patternInput_1 = fold((tupledArg, x) => {
937
+ let t = undefined, t_2 = undefined;
938
+ const lacc = tupledArg[0];
939
+ const racc = tupledArg[1];
940
+ if (f(x)) {
941
+ return [(t = (new FSharpList(x, undefined)), (lacc.tail = t, t)), racc];
942
+ }
943
+ else {
944
+ return [lacc, (t_2 = (new FSharpList(x, undefined)), (racc.tail = t_2, t_2))];
945
+ }
946
+ }, [root1, root2], xs);
947
+ const t_4 = FSharpList_get_Empty();
948
+ patternInput_1[0].tail = t_4;
949
+ const t_5 = FSharpList_get_Empty();
950
+ patternInput_1[1].tail = t_5;
951
+ return [FSharpList__get_Tail(root1), FSharpList__get_Tail(root2)];
952
+ }
953
+ function choose(f, xs) {
954
+ const root = FSharpList_get_Empty();
955
+ const node = fold((acc, x) => {
956
+ const matchValue = f(x);
957
+ if (matchValue == null) {
958
+ return acc;
959
+ }
960
+ else {
961
+ const t = new FSharpList((0, Option_ts_1.value)(matchValue), undefined);
962
+ acc.tail = t;
963
+ return t;
964
+ }
965
+ }, root, xs);
966
+ const t_2 = FSharpList_get_Empty();
967
+ node.tail = t_2;
968
+ return FSharpList__get_Tail(root);
969
+ }
970
+ function contains(value, xs, eq) {
971
+ return tryFindIndex((v) => eq.Equals(value, v), xs) != null;
972
+ }
973
+ function initialize(n, f) {
974
+ const root = FSharpList_get_Empty();
975
+ let node = root;
976
+ for (let i = 0; i <= (n - 1); i++) {
977
+ let xs = undefined, t = undefined;
978
+ node = ((xs = node, (t = (new FSharpList(f(i), undefined)), (xs.tail = t, t))));
979
+ }
980
+ const xs_2 = node;
981
+ const t_2 = FSharpList_get_Empty();
982
+ xs_2.tail = t_2;
983
+ return FSharpList__get_Tail(root);
984
+ }
985
+ function replicate(n, x) {
986
+ return initialize(n, (_arg) => x);
987
+ }
988
+ function reduce(f, xs) {
989
+ if (FSharpList__get_IsEmpty(xs)) {
990
+ throw new Util_ts_1.Exception(Global_ts_1.SR_inputWasEmpty);
991
+ }
992
+ else {
993
+ return fold(f, head(xs), tail(xs));
994
+ }
995
+ }
996
+ function reduceBack(f, xs) {
997
+ if (FSharpList__get_IsEmpty(xs)) {
998
+ throw new Util_ts_1.Exception(Global_ts_1.SR_inputWasEmpty);
999
+ }
1000
+ else {
1001
+ return foldBack(f, tail(xs), head(xs));
1002
+ }
1003
+ }
1004
+ function forAll(f, xs) {
1005
+ return fold((acc, x) => (acc && f(x)), true, xs);
1006
+ }
1007
+ function forAll2(f, xs, ys) {
1008
+ return fold2((acc, x, y) => (acc && f(x, y)), true, xs, ys);
1009
+ }
1010
+ function exists(f, xs) {
1011
+ return tryFindIndex(f, xs) != null;
1012
+ }
1013
+ function exists2(f_mut, xs_mut, ys_mut) {
1014
+ exists2: while (true) {
1015
+ const f = f_mut, xs = xs_mut, ys = ys_mut;
1016
+ const matchValue = FSharpList__get_IsEmpty(xs);
1017
+ const matchValue_1 = FSharpList__get_IsEmpty(ys);
1018
+ let matchResult = undefined;
1019
+ if (matchValue) {
1020
+ if (matchValue_1) {
1021
+ matchResult = 0;
1022
+ }
1023
+ else {
1024
+ matchResult = 2;
1025
+ }
1026
+ }
1027
+ else if (matchValue_1) {
1028
+ matchResult = 2;
1029
+ }
1030
+ else {
1031
+ matchResult = 1;
1032
+ }
1033
+ switch (matchResult) {
1034
+ case 0:
1035
+ return false;
1036
+ case 1:
1037
+ if (f(FSharpList__get_Head(xs), FSharpList__get_Head(ys))) {
1038
+ return true;
1039
+ }
1040
+ else {
1041
+ f_mut = f;
1042
+ xs_mut = FSharpList__get_Tail(xs);
1043
+ ys_mut = FSharpList__get_Tail(ys);
1044
+ continue exists2;
1045
+ }
1046
+ default:
1047
+ throw new Util_ts_1.Exception((Global_ts_1.SR_differentLengths + "\\nParameter name: ") + "list2");
1048
+ }
1049
+ break;
1050
+ }
1051
+ }
1052
+ function unzip(xs) {
1053
+ 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()]);
1054
+ }
1055
+ function unzip3(xs) {
1056
+ 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()]);
1057
+ }
1058
+ function zip(xs, ys) {
1059
+ return map2((x, y) => [x, y], xs, ys);
1060
+ }
1061
+ function zip3(xs, ys, zs) {
1062
+ return map3((x, y, z) => [x, y, z], xs, ys, zs);
1063
+ }
1064
+ function sortWith(comparer, xs) {
1065
+ const arr = toArray(xs);
1066
+ arr.sort(comparer);
1067
+ return ofArray(arr);
1068
+ }
1069
+ function sort(xs, comparer) {
1070
+ return sortWith((x, y) => (comparer.Compare(x, y) | 0), xs);
1071
+ }
1072
+ function sortBy(projection, xs, comparer) {
1073
+ return sortWith((x, y) => (comparer.Compare(projection(x), projection(y)) | 0), xs);
1074
+ }
1075
+ function sortDescending(xs, comparer) {
1076
+ return sortWith((x, y) => ((comparer.Compare(x, y) * -1) | 0), xs);
1077
+ }
1078
+ function sortByDescending(projection, xs, comparer) {
1079
+ return sortWith((x, y) => ((comparer.Compare(projection(x), projection(y)) * -1) | 0), xs);
1080
+ }
1081
+ function sum(xs, adder) {
1082
+ return fold((acc, x) => adder.Add(acc, x), adder.GetZero(), xs);
1083
+ }
1084
+ function sumBy(f, xs, adder) {
1085
+ return fold((acc, x) => adder.Add(acc, f(x)), adder.GetZero(), xs);
1086
+ }
1087
+ function maxBy(projection, xs, comparer) {
1088
+ return reduce((x, y) => ((comparer.Compare(projection(y), projection(x)) > 0) ? y : x), xs);
1089
+ }
1090
+ function max(xs, comparer) {
1091
+ return reduce((x, y) => ((comparer.Compare(y, x) > 0) ? y : x), xs);
1092
+ }
1093
+ function minBy(projection, xs, comparer) {
1094
+ return reduce((x, y) => ((comparer.Compare(projection(y), projection(x)) > 0) ? x : y), xs);
1095
+ }
1096
+ function min(xs, comparer) {
1097
+ return reduce((x, y) => ((comparer.Compare(y, x) > 0) ? x : y), xs);
1098
+ }
1099
+ function average(xs, averager) {
1100
+ let count = 0;
1101
+ const total = fold((acc, x) => {
1102
+ count = ((count + 1) | 0);
1103
+ return averager.Add(acc, x);
1104
+ }, averager.GetZero(), xs);
1105
+ return averager.DivideByInt(total, count);
1106
+ }
1107
+ function averageBy(f, xs, averager) {
1108
+ let count = 0;
1109
+ const total = fold((acc, x) => {
1110
+ count = ((count + 1) | 0);
1111
+ return averager.Add(acc, f(x));
1112
+ }, averager.GetZero(), xs);
1113
+ return averager.DivideByInt(total, count);
1114
+ }
1115
+ function permute(f, xs) {
1116
+ return ofArray((0, Array_ts_1.permute)(f, toArray(xs)));
1117
+ }
1118
+ function chunkBySize(chunkSize, xs) {
1119
+ return ofArray((0, Array_ts_1.map)(ofArray, (0, Array_ts_1.chunkBySize)(chunkSize, toArray(xs))));
1120
+ }
1121
+ function allPairs(xs, ys) {
1122
+ const root = FSharpList_get_Empty();
1123
+ let node = root;
1124
+ iterate((x) => {
1125
+ iterate((y) => {
1126
+ let xs_1 = undefined, t = undefined;
1127
+ node = ((xs_1 = node, (t = (new FSharpList([x, y], undefined)), (xs_1.tail = t, t))));
1128
+ }, ys);
1129
+ }, xs);
1130
+ const xs_3 = node;
1131
+ const t_2 = FSharpList_get_Empty();
1132
+ xs_3.tail = t_2;
1133
+ return FSharpList__get_Tail(root);
1134
+ }
1135
+ function skip(count_mut, xs_mut) {
1136
+ skip: while (true) {
1137
+ const count = count_mut, xs = xs_mut;
1138
+ if (count <= 0) {
1139
+ return xs;
1140
+ }
1141
+ else if (FSharpList__get_IsEmpty(xs)) {
1142
+ throw new Util_ts_1.Exception((Global_ts_1.SR_notEnoughElements + "\\nParameter name: ") + "list");
1143
+ }
1144
+ else {
1145
+ count_mut = (count - 1);
1146
+ xs_mut = FSharpList__get_Tail(xs);
1147
+ continue skip;
1148
+ }
1149
+ break;
1150
+ }
1151
+ }
1152
+ function skipWhile(predicate_mut, xs_mut) {
1153
+ skipWhile: while (true) {
1154
+ const predicate = predicate_mut, xs = xs_mut;
1155
+ if (FSharpList__get_IsEmpty(xs)) {
1156
+ return xs;
1157
+ }
1158
+ else if (!predicate(FSharpList__get_Head(xs))) {
1159
+ return xs;
1160
+ }
1161
+ else {
1162
+ predicate_mut = predicate;
1163
+ xs_mut = FSharpList__get_Tail(xs);
1164
+ continue skipWhile;
1165
+ }
1166
+ break;
1167
+ }
1168
+ }
1169
+ function take(count, xs) {
1170
+ if (count < 0) {
1171
+ throw new Util_ts_1.Exception((Global_ts_1.SR_inputMustBeNonNegative + "\\nParameter name: ") + "count");
1172
+ }
1173
+ const loop = (i_mut, acc_mut, xs_1_mut) => {
1174
+ loop: while (true) {
1175
+ const i = i_mut, acc = acc_mut, xs_1 = xs_1_mut;
1176
+ let t = undefined;
1177
+ if (i <= 0) {
1178
+ return acc;
1179
+ }
1180
+ else if (FSharpList__get_IsEmpty(xs_1)) {
1181
+ throw new Util_ts_1.Exception((Global_ts_1.SR_notEnoughElements + "\\nParameter name: ") + "list");
1182
+ }
1183
+ else {
1184
+ i_mut = (i - 1);
1185
+ acc_mut = ((t = (new FSharpList(FSharpList__get_Head(xs_1), undefined)), (acc.tail = t, t)));
1186
+ xs_1_mut = FSharpList__get_Tail(xs_1);
1187
+ continue loop;
1188
+ }
1189
+ break;
1190
+ }
1191
+ };
1192
+ const root = FSharpList_get_Empty();
1193
+ const node = loop(count, root, xs);
1194
+ const t_2 = FSharpList_get_Empty();
1195
+ node.tail = t_2;
1196
+ return FSharpList__get_Tail(root);
1197
+ }
1198
+ function takeWhile(predicate, xs) {
1199
+ const loop = (acc_mut, xs_1_mut) => {
1200
+ loop: while (true) {
1201
+ const acc = acc_mut, xs_1 = xs_1_mut;
1202
+ let t = undefined;
1203
+ if (FSharpList__get_IsEmpty(xs_1)) {
1204
+ return acc;
1205
+ }
1206
+ else if (!predicate(FSharpList__get_Head(xs_1))) {
1207
+ return acc;
1208
+ }
1209
+ else {
1210
+ acc_mut = ((t = (new FSharpList(FSharpList__get_Head(xs_1), undefined)), (acc.tail = t, t)));
1211
+ xs_1_mut = FSharpList__get_Tail(xs_1);
1212
+ continue loop;
1213
+ }
1214
+ break;
1215
+ }
1216
+ };
1217
+ const root = FSharpList_get_Empty();
1218
+ const node = loop(root, xs);
1219
+ const t_2 = FSharpList_get_Empty();
1220
+ node.tail = t_2;
1221
+ return FSharpList__get_Tail(root);
1222
+ }
1223
+ function truncate(count, xs) {
1224
+ const loop = (i_mut, acc_mut, xs_1_mut) => {
1225
+ loop: while (true) {
1226
+ const i = i_mut, acc = acc_mut, xs_1 = xs_1_mut;
1227
+ let t = undefined;
1228
+ if (i <= 0) {
1229
+ return acc;
1230
+ }
1231
+ else if (FSharpList__get_IsEmpty(xs_1)) {
1232
+ return acc;
1233
+ }
1234
+ else {
1235
+ i_mut = (i - 1);
1236
+ acc_mut = ((t = (new FSharpList(FSharpList__get_Head(xs_1), undefined)), (acc.tail = t, t)));
1237
+ xs_1_mut = FSharpList__get_Tail(xs_1);
1238
+ continue loop;
1239
+ }
1240
+ break;
1241
+ }
1242
+ };
1243
+ const root = FSharpList_get_Empty();
1244
+ const node = loop(count, root, xs);
1245
+ const t_2 = FSharpList_get_Empty();
1246
+ node.tail = t_2;
1247
+ return FSharpList__get_Tail(root);
1248
+ }
1249
+ function getSlice(startIndex, endIndex, xs) {
1250
+ const len = length(xs) | 0;
1251
+ let startIndex_1;
1252
+ const index = (0, Option_ts_1.defaultArg)(startIndex, 0) | 0;
1253
+ startIndex_1 = ((index < 0) ? 0 : index);
1254
+ let endIndex_1;
1255
+ const index_1 = (0, Option_ts_1.defaultArg)(endIndex, len - 1) | 0;
1256
+ endIndex_1 = ((index_1 >= len) ? (len - 1) : index_1);
1257
+ if (endIndex_1 < startIndex_1) {
1258
+ return FSharpList_get_Empty();
1259
+ }
1260
+ else {
1261
+ return take((endIndex_1 - startIndex_1) + 1, skip(startIndex_1, xs));
1262
+ }
1263
+ }
1264
+ function splitAt(index, xs) {
1265
+ if (index < 0) {
1266
+ throw new Util_ts_1.Exception((Global_ts_1.SR_inputMustBeNonNegative + "\\nParameter name: ") + "index");
1267
+ }
1268
+ if (index > FSharpList__get_Length(xs)) {
1269
+ throw new Util_ts_1.Exception((Global_ts_1.SR_notEnoughElements + "\\nParameter name: ") + "index");
1270
+ }
1271
+ return [take(index, xs), skip(index, xs)];
1272
+ }
1273
+ function exactlyOne(xs) {
1274
+ if (FSharpList__get_IsEmpty(xs)) {
1275
+ throw new Util_ts_1.Exception((Global_ts_1.SR_inputSequenceEmpty + "\\nParameter name: ") + "list");
1276
+ }
1277
+ else if (FSharpList__get_IsEmpty(FSharpList__get_Tail(xs))) {
1278
+ return FSharpList__get_Head(xs);
1279
+ }
1280
+ else {
1281
+ throw new Util_ts_1.Exception((Global_ts_1.SR_inputSequenceTooLong + "\\nParameter name: ") + "list");
1282
+ }
1283
+ }
1284
+ function tryExactlyOne(xs) {
1285
+ if (!FSharpList__get_IsEmpty(xs) && FSharpList__get_IsEmpty(FSharpList__get_Tail(xs))) {
1286
+ return (0, Option_ts_1.some)(FSharpList__get_Head(xs));
1287
+ }
1288
+ else {
1289
+ return undefined;
1290
+ }
1291
+ }
1292
+ function where(predicate, xs) {
1293
+ return filter(predicate, xs);
1294
+ }
1295
+ function pairwise(xs) {
1296
+ return ofArray((0, Array_ts_1.pairwise)(toArray(xs)));
1297
+ }
1298
+ function windowed(windowSize, xs) {
1299
+ return ofArray((0, Array_ts_1.map)(ofArray, (0, Array_ts_1.windowed)(windowSize, toArray(xs))));
1300
+ }
1301
+ function splitInto(chunks, xs) {
1302
+ return ofArray((0, Array_ts_1.map)(ofArray, (0, Array_ts_1.splitInto)(chunks, toArray(xs))));
1303
+ }
1304
+ function transpose(lists) {
1305
+ return ofArray((0, Array_ts_1.map)(ofArray, (0, Array_ts_1.transpose)((0, Array_ts_1.map)(toArray, Array.from(lists)))));
1306
+ }
1307
+ function insertAt(index, y, xs) {
1308
+ let i = -1;
1309
+ let isDone = false;
1310
+ const result = fold((acc, x) => {
1311
+ i = ((i + 1) | 0);
1312
+ if (i === index) {
1313
+ isDone = true;
1314
+ return FSharpList_Cons_305B8EAC(x, FSharpList_Cons_305B8EAC(y, acc));
1315
+ }
1316
+ else {
1317
+ return FSharpList_Cons_305B8EAC(x, acc);
1318
+ }
1319
+ }, FSharpList_get_Empty(), xs);
1320
+ return reverse(isDone ? result : (((i + 1) === index) ? FSharpList_Cons_305B8EAC(y, result) : (() => {
1321
+ throw new Util_ts_1.Exception((Global_ts_1.SR_indexOutOfBounds + "\\nParameter name: ") + "index");
1322
+ })()));
1323
+ }
1324
+ function insertManyAt(index, ys, xs) {
1325
+ let i = -1;
1326
+ let isDone = false;
1327
+ const ys_1 = ofSeq(ys);
1328
+ const result = fold((acc, x) => {
1329
+ i = ((i + 1) | 0);
1330
+ if (i === index) {
1331
+ isDone = true;
1332
+ return FSharpList_Cons_305B8EAC(x, append(ys_1, acc));
1333
+ }
1334
+ else {
1335
+ return FSharpList_Cons_305B8EAC(x, acc);
1336
+ }
1337
+ }, FSharpList_get_Empty(), xs);
1338
+ return reverse(isDone ? result : (((i + 1) === index) ? append(ys_1, result) : (() => {
1339
+ throw new Util_ts_1.Exception((Global_ts_1.SR_indexOutOfBounds + "\\nParameter name: ") + "index");
1340
+ })()));
1341
+ }
1342
+ function removeAt(index, xs) {
1343
+ let i = -1;
1344
+ let isDone = false;
1345
+ const ys = filter((_arg) => {
1346
+ i = ((i + 1) | 0);
1347
+ if (i === index) {
1348
+ isDone = true;
1349
+ return false;
1350
+ }
1351
+ else {
1352
+ return true;
1353
+ }
1354
+ }, xs);
1355
+ if (!isDone) {
1356
+ throw new Util_ts_1.Exception((Global_ts_1.SR_indexOutOfBounds + "\\nParameter name: ") + "index");
1357
+ }
1358
+ return ys;
1359
+ }
1360
+ function removeManyAt(index, count, xs) {
1361
+ let i = -1;
1362
+ let status = -1;
1363
+ const ys = filter((_arg) => {
1364
+ i = ((i + 1) | 0);
1365
+ if (i === index) {
1366
+ status = 0;
1367
+ return false;
1368
+ }
1369
+ else if (i > index) {
1370
+ if (i < (index + count)) {
1371
+ return false;
1372
+ }
1373
+ else {
1374
+ status = 1;
1375
+ return true;
1376
+ }
1377
+ }
1378
+ else {
1379
+ return true;
1380
+ }
1381
+ }, xs);
1382
+ const status_1 = (((status === 0) && ((i + 1) === (index + count))) ? 1 : status) | 0;
1383
+ if (status_1 < 1) {
1384
+ throw new Util_ts_1.Exception((Global_ts_1.SR_indexOutOfBounds + "\\nParameter name: ") + ((status_1 < 0) ? "index" : "count"));
1385
+ }
1386
+ return ys;
1387
+ }
1388
+ function updateAt(index, y, xs) {
1389
+ let isDone = false;
1390
+ const ys = mapIndexed((i, x) => {
1391
+ if (i === index) {
1392
+ isDone = true;
1393
+ return y;
1394
+ }
1395
+ else {
1396
+ return x;
1397
+ }
1398
+ }, xs);
1399
+ if (!isDone) {
1400
+ throw new Util_ts_1.Exception((Global_ts_1.SR_indexOutOfBounds + "\\nParameter name: ") + "index");
1401
+ }
1402
+ return ys;
1403
+ }
1404
+ //# sourceMappingURL=List.js.map