firefly-compiler 0.4.4 → 0.4.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (98) hide show
  1. package/.hintrc +5 -0
  2. package/README.md +42 -61
  3. package/compiler/Compiler.ff +6 -2
  4. package/compiler/Deriver.ff +10 -0
  5. package/compiler/Environment.ff +2 -1
  6. package/compiler/JsEmitter.ff +29 -17
  7. package/compiler/Resolver.ff +1 -1
  8. package/core/.firefly/package.ff +1 -2
  9. package/core/Box.ff +7 -0
  10. package/core/BuildSystem.ff +5 -4
  11. package/core/Core.ff +4 -0
  12. package/core/HttpClient.ff +1 -1
  13. package/core/JsValue.ff +22 -1
  14. package/core/Lock.ff +4 -4
  15. package/core/NodeSystem.ff +12 -3
  16. package/core/Path.ff +1 -1
  17. package/core/SourceLocation.ff +41 -0
  18. package/core/Stack.ff +6 -6
  19. package/core/StringMap.ff +3 -3
  20. package/lsp/LanguageServer.ff +32 -7
  21. package/lsp/stderr.txt +1 -0
  22. package/lsp/stdin.txt +11 -0
  23. package/lsp/stdout.txt +41 -0
  24. package/lux/.firefly/package.ff +2 -0
  25. package/lux/Lux.ff +473 -0
  26. package/lux/LuxEvent.ff +116 -0
  27. package/lux/Main.ff +126 -0
  28. package/lux/Main2.ff +144 -0
  29. package/meetup/AutoCompletion.ff +6 -0
  30. package/output/js/ff/compiler/Builder.mjs +444 -440
  31. package/output/js/ff/compiler/Compiler.mjs +416 -410
  32. package/output/js/ff/compiler/Dependencies.mjs +389 -385
  33. package/output/js/ff/compiler/Deriver.mjs +1170 -1166
  34. package/output/js/ff/compiler/Dictionaries.mjs +1309 -1305
  35. package/output/js/ff/compiler/Environment.mjs +1015 -1005
  36. package/output/js/ff/compiler/Inference.mjs +4268 -4264
  37. package/output/js/ff/compiler/JsEmitter.mjs +5391 -5353
  38. package/output/js/ff/compiler/JsImporter.mjs +266 -262
  39. package/output/js/ff/compiler/LspHook.mjs +793 -789
  40. package/output/js/ff/compiler/Main.mjs +1699 -1695
  41. package/output/js/ff/compiler/Parser.mjs +4008 -4004
  42. package/output/js/ff/compiler/Patterns.mjs +927 -923
  43. package/output/js/ff/compiler/Resolver.mjs +2307 -2303
  44. package/output/js/ff/compiler/Substitution.mjs +1150 -1146
  45. package/output/js/ff/compiler/Syntax.mjs +12434 -12430
  46. package/output/js/ff/compiler/Token.mjs +3096 -3092
  47. package/output/js/ff/compiler/Tokenizer.mjs +593 -589
  48. package/output/js/ff/compiler/Unification.mjs +1752 -1748
  49. package/output/js/ff/compiler/Wildcards.mjs +608 -604
  50. package/output/js/ff/compiler/Workspace.mjs +687 -683
  51. package/output/js/ff/core/Any.mjs +143 -139
  52. package/output/js/ff/core/Array.mjs +547 -543
  53. package/output/js/ff/core/AssetSystem.mjs +274 -270
  54. package/output/js/ff/core/Atomic.mjs +154 -150
  55. package/output/js/ff/core/Bool.mjs +152 -141
  56. package/output/js/ff/core/Box.mjs +112 -0
  57. package/output/js/ff/core/BrowserSystem.mjs +126 -122
  58. package/output/js/ff/core/Buffer.mjs +395 -391
  59. package/output/js/ff/core/BuildSystem.mjs +296 -290
  60. package/output/js/ff/core/Channel.mjs +189 -185
  61. package/output/js/ff/core/Char.mjs +149 -145
  62. package/output/js/ff/core/Core.mjs +300 -288
  63. package/output/js/ff/core/Duration.mjs +116 -112
  64. package/output/js/ff/core/Equal.mjs +179 -175
  65. package/output/js/ff/core/Error.mjs +142 -138
  66. package/output/js/ff/core/FileHandle.mjs +150 -146
  67. package/output/js/ff/core/Float.mjs +225 -214
  68. package/output/js/ff/core/HttpClient.mjs +190 -186
  69. package/output/js/ff/core/Instant.mjs +109 -105
  70. package/output/js/ff/core/Int.mjs +265 -254
  71. package/output/js/ff/core/IntMap.mjs +280 -276
  72. package/output/js/ff/core/JsSystem.mjs +238 -234
  73. package/output/js/ff/core/JsValue.mjs +714 -664
  74. package/output/js/ff/core/List.mjs +2334 -2321
  75. package/output/js/ff/core/Lock.mjs +230 -226
  76. package/output/js/ff/core/Log.mjs +163 -159
  77. package/output/js/ff/core/Map.mjs +362 -358
  78. package/output/js/ff/core/NodeSystem.mjs +302 -283
  79. package/output/js/ff/core/Nothing.mjs +104 -100
  80. package/output/js/ff/core/Option.mjs +1015 -1002
  81. package/output/js/ff/core/Ordering.mjs +730 -726
  82. package/output/js/ff/core/Pair.mjs +331 -318
  83. package/output/js/ff/core/Path.mjs +546 -542
  84. package/output/js/ff/core/RbMap.mjs +1940 -1936
  85. package/output/js/ff/core/Serializable.mjs +428 -424
  86. package/output/js/ff/core/Set.mjs +254 -250
  87. package/output/js/ff/core/Show.mjs +205 -201
  88. package/output/js/ff/core/SourceLocation.mjs +229 -0
  89. package/output/js/ff/core/Stack.mjs +541 -537
  90. package/output/js/ff/core/Stream.mjs +1304 -1300
  91. package/output/js/ff/core/String.mjs +365 -354
  92. package/output/js/ff/core/StringMap.mjs +280 -276
  93. package/output/js/ff/core/Task.mjs +320 -316
  94. package/output/js/ff/core/Try.mjs +507 -503
  95. package/output/js/ff/core/Unit.mjs +151 -103
  96. package/package.json +29 -29
  97. package/vscode/package-lock.json +5 -5
  98. package/vscode/package.json +1 -1
@@ -1,357 +1,369 @@
1
-
2
-
3
- import * as ff_core_Any from "../../ff/core/Any.mjs"
4
-
5
- import * as ff_core_Array from "../../ff/core/Array.mjs"
6
-
7
- import * as ff_core_AssetSystem from "../../ff/core/AssetSystem.mjs"
8
-
9
- import * as ff_core_Atomic from "../../ff/core/Atomic.mjs"
10
-
11
- import * as ff_core_Bool from "../../ff/core/Bool.mjs"
12
-
13
- import * as ff_core_BrowserSystem from "../../ff/core/BrowserSystem.mjs"
14
-
15
- import * as ff_core_Buffer from "../../ff/core/Buffer.mjs"
16
-
17
- import * as ff_core_BuildSystem from "../../ff/core/BuildSystem.mjs"
18
-
19
- import * as ff_core_Channel from "../../ff/core/Channel.mjs"
20
-
21
- import * as ff_core_Char from "../../ff/core/Char.mjs"
22
-
23
- import * as ff_core_Core from "../../ff/core/Core.mjs"
24
-
25
- import * as ff_core_Duration from "../../ff/core/Duration.mjs"
26
-
27
- import * as ff_core_Equal from "../../ff/core/Equal.mjs"
28
-
29
- import * as ff_core_Error from "../../ff/core/Error.mjs"
30
-
31
- import * as ff_core_FileHandle from "../../ff/core/FileHandle.mjs"
32
-
33
- import * as ff_core_Float from "../../ff/core/Float.mjs"
34
-
35
- import * as ff_core_HttpClient from "../../ff/core/HttpClient.mjs"
36
-
37
- import * as ff_core_Instant from "../../ff/core/Instant.mjs"
38
-
39
- import * as ff_core_Int from "../../ff/core/Int.mjs"
40
-
41
- import * as ff_core_IntMap from "../../ff/core/IntMap.mjs"
42
-
43
- import * as ff_core_JsSystem from "../../ff/core/JsSystem.mjs"
44
-
45
- import * as ff_core_JsValue from "../../ff/core/JsValue.mjs"
46
-
47
- import * as ff_core_List from "../../ff/core/List.mjs"
48
-
49
- import * as ff_core_Lock from "../../ff/core/Lock.mjs"
50
-
51
- import * as ff_core_Log from "../../ff/core/Log.mjs"
52
-
53
- import * as ff_core_Map from "../../ff/core/Map.mjs"
54
-
55
- import * as ff_core_NodeSystem from "../../ff/core/NodeSystem.mjs"
56
-
57
- import * as ff_core_Nothing from "../../ff/core/Nothing.mjs"
58
-
59
- import * as ff_core_Option from "../../ff/core/Option.mjs"
60
-
61
- import * as ff_core_Ordering from "../../ff/core/Ordering.mjs"
62
-
63
- import * as ff_core_Pair from "../../ff/core/Pair.mjs"
64
-
65
- import * as ff_core_Path from "../../ff/core/Path.mjs"
66
-
67
- import * as ff_core_Serializable from "../../ff/core/Serializable.mjs"
68
-
69
- import * as ff_core_Set from "../../ff/core/Set.mjs"
70
-
71
- import * as ff_core_Show from "../../ff/core/Show.mjs"
72
-
73
- import * as ff_core_Stack from "../../ff/core/Stack.mjs"
74
-
75
- import * as ff_core_Stream from "../../ff/core/Stream.mjs"
76
-
77
- import * as ff_core_String from "../../ff/core/String.mjs"
78
-
79
- import * as ff_core_StringMap from "../../ff/core/StringMap.mjs"
80
-
81
- import * as ff_core_Task from "../../ff/core/Task.mjs"
82
-
83
- import * as ff_core_Try from "../../ff/core/Try.mjs"
84
-
85
- import * as ff_core_Unit from "../../ff/core/Unit.mjs"
86
-
87
- // type JsValue
88
-
89
-
90
-
91
-
92
-
93
-
94
-
95
-
96
- export function JsValue_grabString(self_) {
97
- return self_
98
- }
99
-
100
- export function JsValue_grabChar(self_) {
101
- return self_
102
- }
103
-
104
- export function JsValue_grabInt(self_) {
105
- return self_
106
- }
107
-
108
- export function JsValue_grabFloat(self_) {
109
- return self_
110
- }
111
-
112
- export function JsValue_grabBool(self_) {
113
- return self_
114
- }
115
-
116
- export function JsValue_grabArray(self_) {
117
- return self_
118
- }
119
-
120
- export function JsValue_grabBuffer(self_) {
1
+
2
+
3
+ import * as ff_core_Any from "../../ff/core/Any.mjs"
4
+
5
+ import * as ff_core_Array from "../../ff/core/Array.mjs"
6
+
7
+ import * as ff_core_AssetSystem from "../../ff/core/AssetSystem.mjs"
8
+
9
+ import * as ff_core_Atomic from "../../ff/core/Atomic.mjs"
10
+
11
+ import * as ff_core_Bool from "../../ff/core/Bool.mjs"
12
+
13
+ import * as ff_core_Box from "../../ff/core/Box.mjs"
14
+
15
+ import * as ff_core_BrowserSystem from "../../ff/core/BrowserSystem.mjs"
16
+
17
+ import * as ff_core_Buffer from "../../ff/core/Buffer.mjs"
18
+
19
+ import * as ff_core_BuildSystem from "../../ff/core/BuildSystem.mjs"
20
+
21
+ import * as ff_core_Channel from "../../ff/core/Channel.mjs"
22
+
23
+ import * as ff_core_Char from "../../ff/core/Char.mjs"
24
+
25
+ import * as ff_core_Core from "../../ff/core/Core.mjs"
26
+
27
+ import * as ff_core_Duration from "../../ff/core/Duration.mjs"
28
+
29
+ import * as ff_core_Equal from "../../ff/core/Equal.mjs"
30
+
31
+ import * as ff_core_Error from "../../ff/core/Error.mjs"
32
+
33
+ import * as ff_core_FileHandle from "../../ff/core/FileHandle.mjs"
34
+
35
+ import * as ff_core_Float from "../../ff/core/Float.mjs"
36
+
37
+ import * as ff_core_HttpClient from "../../ff/core/HttpClient.mjs"
38
+
39
+ import * as ff_core_Instant from "../../ff/core/Instant.mjs"
40
+
41
+ import * as ff_core_Int from "../../ff/core/Int.mjs"
42
+
43
+ import * as ff_core_IntMap from "../../ff/core/IntMap.mjs"
44
+
45
+ import * as ff_core_JsSystem from "../../ff/core/JsSystem.mjs"
46
+
47
+ import * as ff_core_JsValue from "../../ff/core/JsValue.mjs"
48
+
49
+ import * as ff_core_List from "../../ff/core/List.mjs"
50
+
51
+ import * as ff_core_Lock from "../../ff/core/Lock.mjs"
52
+
53
+ import * as ff_core_Log from "../../ff/core/Log.mjs"
54
+
55
+ import * as ff_core_Map from "../../ff/core/Map.mjs"
56
+
57
+ import * as ff_core_NodeSystem from "../../ff/core/NodeSystem.mjs"
58
+
59
+ import * as ff_core_Nothing from "../../ff/core/Nothing.mjs"
60
+
61
+ import * as ff_core_Option from "../../ff/core/Option.mjs"
62
+
63
+ import * as ff_core_Ordering from "../../ff/core/Ordering.mjs"
64
+
65
+ import * as ff_core_Pair from "../../ff/core/Pair.mjs"
66
+
67
+ import * as ff_core_Path from "../../ff/core/Path.mjs"
68
+
69
+ import * as ff_core_Serializable from "../../ff/core/Serializable.mjs"
70
+
71
+ import * as ff_core_Set from "../../ff/core/Set.mjs"
72
+
73
+ import * as ff_core_Show from "../../ff/core/Show.mjs"
74
+
75
+ import * as ff_core_SourceLocation from "../../ff/core/SourceLocation.mjs"
76
+
77
+ import * as ff_core_Stack from "../../ff/core/Stack.mjs"
78
+
79
+ import * as ff_core_Stream from "../../ff/core/Stream.mjs"
80
+
81
+ import * as ff_core_String from "../../ff/core/String.mjs"
82
+
83
+ import * as ff_core_StringMap from "../../ff/core/StringMap.mjs"
84
+
85
+ import * as ff_core_Task from "../../ff/core/Task.mjs"
86
+
87
+ import * as ff_core_Try from "../../ff/core/Try.mjs"
88
+
89
+ import * as ff_core_Unit from "../../ff/core/Unit.mjs"
90
+
91
+ // type JsValue
92
+
93
+
94
+
95
+
96
+
97
+
98
+
99
+
100
+ export function JsValue_grabString(self_) {
101
+ return self_
102
+ }
103
+
104
+ export function JsValue_grabChar(self_) {
105
+ return self_
106
+ }
107
+
108
+ export function JsValue_grabInt(self_) {
109
+ return self_
110
+ }
111
+
112
+ export function JsValue_grabFloat(self_) {
113
+ return self_
114
+ }
115
+
116
+ export function JsValue_grabBool(self_) {
117
+ return self_
118
+ }
119
+
120
+ export function JsValue_grabArray(self_) {
121
+ return self_
122
+ }
123
+
124
+ export function JsValue_grabBuffer(self_) {
121
125
 
122
126
  if(!(self_ instanceof DataView)) throw new Error('Expected buffer, got '+ typeof self_);
123
127
  return self_
124
-
125
- }
126
-
127
- export function JsValue_isString(self_) {
128
- return typeof self_ === 'string'
129
- }
130
-
131
- export function JsValue_isChar(self_) {
128
+
129
+ }
130
+
131
+ export function JsValue_equals(self_, value_, ff_core_JsValue_IsJsValue$V) {
132
+ return self_ === value_
133
+ }
134
+
135
+ export function JsValue_isString(self_) {
136
+ return typeof self_ === 'string'
137
+ }
138
+
139
+ export function JsValue_isChar(self_) {
132
140
 
133
141
  return Number.isInteger(self_) && Math.abs(self_) <= Number.MAX_SAFE_INTEGER
134
142
  && self_ >= 0 && self_ < 1114112
135
-
136
- }
137
-
138
- export function JsValue_isInt(self_) {
139
- return Number.isInteger(self_) && Math.abs(self_) <= Number.MAX_SAFE_INTEGER
140
- }
141
-
142
- export function JsValue_isFloat(self_) {
143
- return typeof self_ === 'number'
144
- }
145
-
146
- export function JsValue_isBool(self_) {
147
- return typeof self_ === 'boolean'
148
- }
149
-
150
- export function JsValue_isArray(self_) {
151
- return Array.isArray(self_)
152
- }
153
-
154
- export function JsValue_isObject(self_) {
155
- return self_ != null && typeof self_ === 'object'
156
- }
157
-
158
- export function JsValue_isFunction(self_) {
159
- return typeof self_ === 'function'
160
- }
161
-
162
- export function JsValue_isNull(self_) {
163
- return self_ === null
164
- }
165
-
166
- export function JsValue_isUndefined(self_) {
167
- return typeof self_ === 'undefined'
168
- }
169
-
170
- export function JsValue_isNullOrUndefined(self_) {
171
- return self_ == null
172
- }
173
-
174
- export function JsValue_isNan(self_) {
175
- return typeof self_ === 'number' && self_ !== self_
176
- }
177
-
178
- export function JsValue_isFinite(self_) {
179
- return typeof self_ === 'number' && isFinite(self_)
180
- }
181
-
182
- export function JsValue_get(self_, key_, ff_core_JsValue_IsJsValue$K) {
183
- return self_[key_]
184
- }
185
-
186
- export function JsValue_getOwn(self_, key_) {
187
- if(ff_core_JsValue.JsValue_hasOwn(self_, key_)) {
188
- return ff_core_Option.Some(ff_core_JsValue.JsValue_get(self_, key_, ff_core_JsValue.ff_core_JsValue_IsJsValue$ff_core_String_String))
189
- } else {
190
- return ff_core_Option.None()
191
- }
192
- }
193
-
194
- export function JsValue_set(self_, key_, value_, ff_core_JsValue_IsJsValue$K, ff_core_JsValue_IsJsValue$V) {
195
- self_[key_] = value_
196
- }
197
-
198
- export function JsValue_with(self_, key_, value_, ff_core_JsValue_IsJsValue$K, ff_core_JsValue_IsJsValue$V) {
199
- return {...self_, [key_]: value_}
200
- }
201
-
202
- export function JsValue_hasOwn(self_, name_) {
203
- return Object.prototype.hasOwnProperty.call(self_, name_)
204
- }
205
-
206
- export function JsValue_assign(self_, source_, source2_ = source_) {
207
- return Object.assign(self_, source_, source2_ !== source_ ? source2_ : null)
208
- }
209
-
210
- export function JsValue_each(self_, body_) {
211
- for(const value of self_) body_(value)
212
- }
213
-
214
- export function JsValue_eachWhile(self_, body_) {
215
- for(const value of self_) if(!body_(value)) break
216
- }
217
-
218
- export function JsValue_call(self_, name_, arguments_) {
219
- return self_[name_].apply(this_, ff_core_List.List_toArray(arguments_))
220
- }
221
-
222
- export function JsValue_call0(self_, name_) {
223
- return self_[name_].call(self_)
224
- }
225
-
226
- export function JsValue_call1(self_, name_, a1_, ff_core_JsValue_IsJsValue$A1) {
227
- return self_[name_].call(self_, a1_)
228
- }
229
-
230
- export function JsValue_call2(self_, name_, a1_, a2_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2) {
231
- return self_[name_].call(self_, a1_, a2_)
232
- }
233
-
234
- export function JsValue_call3(self_, name_, a1_, a2_, a3_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, ff_core_JsValue_IsJsValue$A3) {
235
- return self_[name_].call(self_, a1_, a2_, a3_)
236
- }
237
-
238
- export function JsValue_call4(self_, name_, a1_, a2_, a3_, a4_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, ff_core_JsValue_IsJsValue$A3, ff_core_JsValue_IsJsValue$A4) {
239
- return self_[name_].call(self_, a1_, a2_, a3_, a4_)
240
- }
241
-
242
- export function JsValue_call5(self_, name_, a1_, a2_, a3_, a4_, a5_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, ff_core_JsValue_IsJsValue$A3, ff_core_JsValue_IsJsValue$A4, ff_core_JsValue_IsJsValue$A5) {
243
- return self_[name_].call(self_, a1_, a2_, a3_, a4_, a5_)
244
- }
245
-
246
- export function JsValue_call6(self_, name_, a1_, a2_, a3_, a4_, a5_, a6_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, ff_core_JsValue_IsJsValue$A3, ff_core_JsValue_IsJsValue$A4, ff_core_JsValue_IsJsValue$A5, ff_core_JsValue_IsJsValue$A6) {
247
- return self_[name_].call(self_, a1_, a2_, a3_, a4_, a5_, a6_)
248
- }
249
-
250
- export function JsValue_call7(self_, name_, a1_, a2_, a3_, a4_, a5_, a6_, a7_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, ff_core_JsValue_IsJsValue$A3, ff_core_JsValue_IsJsValue$A4, ff_core_JsValue_IsJsValue$A5, ff_core_JsValue_IsJsValue$A6, ff_core_JsValue_IsJsValue$A7) {
251
- return self_[name_].call(self_, a1_, a2_, a3_, a4_, a5_, a6_, a7_)
252
- }
253
-
254
- export function JsValue_call8(self_, name_, a1_, a2_, a3_, a4_, a5_, a6_, a7_, a8_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, ff_core_JsValue_IsJsValue$A3, ff_core_JsValue_IsJsValue$A4, ff_core_JsValue_IsJsValue$A5, ff_core_JsValue_IsJsValue$A6, ff_core_JsValue_IsJsValue$A7, ff_core_JsValue_IsJsValue$A8) {
255
- return self_[name_].call(self_, a1_, a2_, a3_, a4_, a5_, a6_, a7_, a8_)
256
- }
257
-
258
- export function JsValue_call9(self_, name_, a1_, a2_, a3_, a4_, a5_, a6_, a7_, a8_, a9_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, ff_core_JsValue_IsJsValue$A3, ff_core_JsValue_IsJsValue$A4, ff_core_JsValue_IsJsValue$A5, ff_core_JsValue_IsJsValue$A6, ff_core_JsValue_IsJsValue$A7, ff_core_JsValue_IsJsValue$A8, ff_core_JsValue_IsJsValue$A9) {
259
- return self_[name_].call(self_, a1_, a2_, a3_, a4_, a5_, a6_, a7_, a8_, a9_)
260
- }
261
-
262
- export function JsValue_callValue(self_, this_, arguments_) {
263
- return self_.apply(this_, ff_core_List.List_toArray(arguments_))
264
- }
265
-
266
- export function JsValue_callValue0(self_) {
267
- return self_.call(self_)
268
- }
269
-
270
- export function JsValue_callValue1(self_, a1_, ff_core_JsValue_IsJsValue$A1) {
271
- return self_.call(self_, a1_)
272
- }
273
-
274
- export function JsValue_callValue2(self_, a1_, a2_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2) {
275
- return self_.call(self_, a1_, a2_)
276
- }
277
-
278
- export function JsValue_callValue3(self_, a1_, a2_, a3_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, ff_core_JsValue_IsJsValue$A3) {
279
- return self_.call(self_, a1_, a2_, a3_)
280
- }
281
-
282
- export function JsValue_callValue4(self_, a1_, a2_, a3_, a4_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, ff_core_JsValue_IsJsValue$A3, ff_core_JsValue_IsJsValue$A4) {
283
- return self_.call(self_, a1_, a2_, a3_, a4_)
284
- }
285
-
286
- export function JsValue_callValue5(self_, a1_, a2_, a3_, a4_, a5_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, ff_core_JsValue_IsJsValue$A3, ff_core_JsValue_IsJsValue$A4, ff_core_JsValue_IsJsValue$A5) {
287
- return self_.call(self_, a1_, a2_, a3_, a4_, a5_)
288
- }
289
-
290
- export function JsValue_callValue6(self_, a1_, a2_, a3_, a4_, a5_, a6_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, ff_core_JsValue_IsJsValue$A3, ff_core_JsValue_IsJsValue$A4, ff_core_JsValue_IsJsValue$A5, ff_core_JsValue_IsJsValue$A6) {
291
- return self_.call(self_, a1_, a2_, a3_, a4_, a5_, a6_)
292
- }
293
-
294
- export function JsValue_callValue7(self_, a1_, a2_, a3_, a4_, a5_, a6_, a7_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, ff_core_JsValue_IsJsValue$A3, ff_core_JsValue_IsJsValue$A4, ff_core_JsValue_IsJsValue$A5, ff_core_JsValue_IsJsValue$A6, ff_core_JsValue_IsJsValue$A7) {
295
- return self_.call(self_, a1_, a2_, a3_, a4_, a5_, a6_, a7_)
296
- }
297
-
298
- export function JsValue_callValue8(self_, a1_, a2_, a3_, a4_, a5_, a6_, a7_, a8_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, ff_core_JsValue_IsJsValue$A3, ff_core_JsValue_IsJsValue$A4, ff_core_JsValue_IsJsValue$A5, ff_core_JsValue_IsJsValue$A6, ff_core_JsValue_IsJsValue$A7, ff_core_JsValue_IsJsValue$A8) {
299
- return self_.call(self_, a1_, a2_, a3_, a4_, a5_, a6_, a7_, a8_)
300
- }
301
-
302
- export function JsValue_callValue9(self_, a1_, a2_, a3_, a4_, a5_, a6_, a7_, a8_, a9_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, ff_core_JsValue_IsJsValue$A3, ff_core_JsValue_IsJsValue$A4, ff_core_JsValue_IsJsValue$A5, ff_core_JsValue_IsJsValue$A6, ff_core_JsValue_IsJsValue$A7, ff_core_JsValue_IsJsValue$A8, ff_core_JsValue_IsJsValue$A9) {
303
- return self_.call(self_, a1_, a2_, a3_, a4_, a5_, a6_, a7_, a8_, a9_)
304
- }
305
-
306
- export function JsValue_new(self_, this_, arguments_) {
307
- return new (Function.prototype.bind.apply(self_, ff_core_List.List_toArray(arguments_)))
308
- }
309
-
310
- export function JsValue_new0(self_) {
311
- return new self_()
312
- }
313
-
314
- export function JsValue_new1(self_, a1_, ff_core_JsValue_IsJsValue$A1) {
315
- return new self_(a1_)
316
- }
317
-
318
- export function JsValue_new2(self_, a1_, a2_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2) {
319
- return new self_(a1_, a2_)
320
- }
321
-
322
- export function JsValue_new3(self_, a1_, a2_, a3_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, ff_core_JsValue_IsJsValue$A3) {
323
- return new self_(a1_, a2_, a3_)
324
- }
325
-
326
- export function JsValue_new4(self_, a1_, a2_, a3_, a4_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, ff_core_JsValue_IsJsValue$A3, ff_core_JsValue_IsJsValue$A4) {
327
- return new self_(a1_, a2_, a3_, a4_)
328
- }
329
-
330
- export function JsValue_new5(self_, a1_, a2_, a3_, a4_, a5_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, ff_core_JsValue_IsJsValue$A3, ff_core_JsValue_IsJsValue$A4, ff_core_JsValue_IsJsValue$A5) {
331
- return new self_(a1_, a2_, a3_, a4_, a5_)
332
- }
333
-
334
- export function JsValue_new6(self_, a1_, a2_, a3_, a4_, a5_, a6_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, ff_core_JsValue_IsJsValue$A3, ff_core_JsValue_IsJsValue$A4, ff_core_JsValue_IsJsValue$A5, ff_core_JsValue_IsJsValue$A6) {
335
- return new self_(a1_, a2_, a3_, a4_, a5_, a6_)
336
- }
337
-
338
- export function JsValue_new7(self_, a1_, a2_, a3_, a4_, a5_, a6_, a7_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, ff_core_JsValue_IsJsValue$A3, ff_core_JsValue_IsJsValue$A4, ff_core_JsValue_IsJsValue$A5, ff_core_JsValue_IsJsValue$A6, ff_core_JsValue_IsJsValue$A7) {
339
- return new self_(a1_, a2_, a3_, a4_, a5_, a6_, a7_)
340
- }
341
-
342
- export function JsValue_new8(self_, a1_, a2_, a3_, a4_, a5_, a6_, a7_, a8_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, ff_core_JsValue_IsJsValue$A3, ff_core_JsValue_IsJsValue$A4, ff_core_JsValue_IsJsValue$A5, ff_core_JsValue_IsJsValue$A6, ff_core_JsValue_IsJsValue$A7, ff_core_JsValue_IsJsValue$A8) {
343
- return new self_(a1_, a2_, a3_, a4_, a5_, a6_, a7_, a8_)
344
- }
345
-
346
- export function JsValue_new9(self_, a1_, a2_, a3_, a4_, a5_, a6_, a7_, a8_, a9_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, ff_core_JsValue_IsJsValue$A3, ff_core_JsValue_IsJsValue$A4, ff_core_JsValue_IsJsValue$A5, ff_core_JsValue_IsJsValue$A6, ff_core_JsValue_IsJsValue$A7, ff_core_JsValue_IsJsValue$A8, ff_core_JsValue_IsJsValue$A9) {
347
- return new self_(a1_, a2_, a3_, a4_, a5_, a6_, a7_, a8_, a9_)
348
- }
349
-
350
- export function JsValue_toJson(self_, space_ = ff_core_Option.None()) {
351
- return JSON.stringify(self_, null, space_.value_)
352
- }
353
-
354
- export function JsValue_grabPairs(self_) {
143
+
144
+ }
145
+
146
+ export function JsValue_isInt(self_) {
147
+ return Number.isInteger(self_) && Math.abs(self_) <= Number.MAX_SAFE_INTEGER
148
+ }
149
+
150
+ export function JsValue_isFloat(self_) {
151
+ return typeof self_ === 'number'
152
+ }
153
+
154
+ export function JsValue_isBool(self_) {
155
+ return typeof self_ === 'boolean'
156
+ }
157
+
158
+ export function JsValue_isArray(self_) {
159
+ return Array.isArray(self_)
160
+ }
161
+
162
+ export function JsValue_isObject(self_) {
163
+ return self_ != null && typeof self_ === 'object'
164
+ }
165
+
166
+ export function JsValue_isFunction(self_) {
167
+ return typeof self_ === 'function'
168
+ }
169
+
170
+ export function JsValue_isNull(self_) {
171
+ return self_ === null
172
+ }
173
+
174
+ export function JsValue_isUndefined(self_) {
175
+ return typeof self_ === 'undefined'
176
+ }
177
+
178
+ export function JsValue_isNullOrUndefined(self_) {
179
+ return self_ == null
180
+ }
181
+
182
+ export function JsValue_isNan(self_) {
183
+ return typeof self_ === 'number' && self_ !== self_
184
+ }
185
+
186
+ export function JsValue_isFinite(self_) {
187
+ return typeof self_ === 'number' && isFinite(self_)
188
+ }
189
+
190
+ export function JsValue_get(self_, key_, ff_core_JsValue_IsJsValue$K) {
191
+ return self_[key_]
192
+ }
193
+
194
+ export function JsValue_getOwn(self_, key_) {
195
+ if(ff_core_JsValue.JsValue_hasOwn(self_, key_)) {
196
+ return ff_core_Option.Some(ff_core_JsValue.JsValue_get(self_, key_, ff_core_JsValue.ff_core_JsValue_IsJsValue$ff_core_String_String))
197
+ } else {
198
+ return ff_core_Option.None()
199
+ }
200
+ }
201
+
202
+ export function JsValue_set(self_, key_, value_, ff_core_JsValue_IsJsValue$K, ff_core_JsValue_IsJsValue$V) {
203
+ self_[key_] = value_
204
+ }
205
+
206
+ export function JsValue_delete(self_, key_, ff_core_JsValue_IsJsValue$K) {
207
+ delete self_[key_]
208
+ }
209
+
210
+ export function JsValue_with(self_, key_, value_, ff_core_JsValue_IsJsValue$K, ff_core_JsValue_IsJsValue$V) {
211
+ return {...self_, [key_]: value_}
212
+ }
213
+
214
+ export function JsValue_hasOwn(self_, name_) {
215
+ return Object.prototype.hasOwnProperty.call(self_, name_)
216
+ }
217
+
218
+ export function JsValue_assign(self_, source_, source2_ = source_) {
219
+ return Object.assign(self_, source_, source2_ !== source_ ? source2_ : null)
220
+ }
221
+
222
+ export function JsValue_each(self_, body_) {
223
+ for(const value of self_) body_(value)
224
+ }
225
+
226
+ export function JsValue_eachWhile(self_, body_) {
227
+ for(const value of self_) if(!body_(value)) break
228
+ }
229
+
230
+ export function JsValue_call(self_, name_, arguments_) {
231
+ return self_[name_].apply(this_, ff_core_List.List_toArray(arguments_))
232
+ }
233
+
234
+ export function JsValue_call0(self_, name_) {
235
+ return self_[name_].call(self_)
236
+ }
237
+
238
+ export function JsValue_call1(self_, name_, a1_, ff_core_JsValue_IsJsValue$A1) {
239
+ return self_[name_].call(self_, a1_)
240
+ }
241
+
242
+ export function JsValue_call2(self_, name_, a1_, a2_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2) {
243
+ return self_[name_].call(self_, a1_, a2_)
244
+ }
245
+
246
+ export function JsValue_call3(self_, name_, a1_, a2_, a3_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, ff_core_JsValue_IsJsValue$A3) {
247
+ return self_[name_].call(self_, a1_, a2_, a3_)
248
+ }
249
+
250
+ export function JsValue_call4(self_, name_, a1_, a2_, a3_, a4_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, ff_core_JsValue_IsJsValue$A3, ff_core_JsValue_IsJsValue$A4) {
251
+ return self_[name_].call(self_, a1_, a2_, a3_, a4_)
252
+ }
253
+
254
+ export function JsValue_call5(self_, name_, a1_, a2_, a3_, a4_, a5_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, ff_core_JsValue_IsJsValue$A3, ff_core_JsValue_IsJsValue$A4, ff_core_JsValue_IsJsValue$A5) {
255
+ return self_[name_].call(self_, a1_, a2_, a3_, a4_, a5_)
256
+ }
257
+
258
+ export function JsValue_call6(self_, name_, a1_, a2_, a3_, a4_, a5_, a6_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, ff_core_JsValue_IsJsValue$A3, ff_core_JsValue_IsJsValue$A4, ff_core_JsValue_IsJsValue$A5, ff_core_JsValue_IsJsValue$A6) {
259
+ return self_[name_].call(self_, a1_, a2_, a3_, a4_, a5_, a6_)
260
+ }
261
+
262
+ export function JsValue_call7(self_, name_, a1_, a2_, a3_, a4_, a5_, a6_, a7_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, ff_core_JsValue_IsJsValue$A3, ff_core_JsValue_IsJsValue$A4, ff_core_JsValue_IsJsValue$A5, ff_core_JsValue_IsJsValue$A6, ff_core_JsValue_IsJsValue$A7) {
263
+ return self_[name_].call(self_, a1_, a2_, a3_, a4_, a5_, a6_, a7_)
264
+ }
265
+
266
+ export function JsValue_call8(self_, name_, a1_, a2_, a3_, a4_, a5_, a6_, a7_, a8_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, ff_core_JsValue_IsJsValue$A3, ff_core_JsValue_IsJsValue$A4, ff_core_JsValue_IsJsValue$A5, ff_core_JsValue_IsJsValue$A6, ff_core_JsValue_IsJsValue$A7, ff_core_JsValue_IsJsValue$A8) {
267
+ return self_[name_].call(self_, a1_, a2_, a3_, a4_, a5_, a6_, a7_, a8_)
268
+ }
269
+
270
+ export function JsValue_call9(self_, name_, a1_, a2_, a3_, a4_, a5_, a6_, a7_, a8_, a9_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, ff_core_JsValue_IsJsValue$A3, ff_core_JsValue_IsJsValue$A4, ff_core_JsValue_IsJsValue$A5, ff_core_JsValue_IsJsValue$A6, ff_core_JsValue_IsJsValue$A7, ff_core_JsValue_IsJsValue$A8, ff_core_JsValue_IsJsValue$A9) {
271
+ return self_[name_].call(self_, a1_, a2_, a3_, a4_, a5_, a6_, a7_, a8_, a9_)
272
+ }
273
+
274
+ export function JsValue_callValue(self_, this_, arguments_) {
275
+ return self_.apply(this_, ff_core_List.List_toArray(arguments_))
276
+ }
277
+
278
+ export function JsValue_callValue0(self_) {
279
+ return self_.call(self_)
280
+ }
281
+
282
+ export function JsValue_callValue1(self_, a1_, ff_core_JsValue_IsJsValue$A1) {
283
+ return self_.call(self_, a1_)
284
+ }
285
+
286
+ export function JsValue_callValue2(self_, a1_, a2_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2) {
287
+ return self_.call(self_, a1_, a2_)
288
+ }
289
+
290
+ export function JsValue_callValue3(self_, a1_, a2_, a3_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, ff_core_JsValue_IsJsValue$A3) {
291
+ return self_.call(self_, a1_, a2_, a3_)
292
+ }
293
+
294
+ export function JsValue_callValue4(self_, a1_, a2_, a3_, a4_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, ff_core_JsValue_IsJsValue$A3, ff_core_JsValue_IsJsValue$A4) {
295
+ return self_.call(self_, a1_, a2_, a3_, a4_)
296
+ }
297
+
298
+ export function JsValue_callValue5(self_, a1_, a2_, a3_, a4_, a5_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, ff_core_JsValue_IsJsValue$A3, ff_core_JsValue_IsJsValue$A4, ff_core_JsValue_IsJsValue$A5) {
299
+ return self_.call(self_, a1_, a2_, a3_, a4_, a5_)
300
+ }
301
+
302
+ export function JsValue_callValue6(self_, a1_, a2_, a3_, a4_, a5_, a6_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, ff_core_JsValue_IsJsValue$A3, ff_core_JsValue_IsJsValue$A4, ff_core_JsValue_IsJsValue$A5, ff_core_JsValue_IsJsValue$A6) {
303
+ return self_.call(self_, a1_, a2_, a3_, a4_, a5_, a6_)
304
+ }
305
+
306
+ export function JsValue_callValue7(self_, a1_, a2_, a3_, a4_, a5_, a6_, a7_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, ff_core_JsValue_IsJsValue$A3, ff_core_JsValue_IsJsValue$A4, ff_core_JsValue_IsJsValue$A5, ff_core_JsValue_IsJsValue$A6, ff_core_JsValue_IsJsValue$A7) {
307
+ return self_.call(self_, a1_, a2_, a3_, a4_, a5_, a6_, a7_)
308
+ }
309
+
310
+ export function JsValue_callValue8(self_, a1_, a2_, a3_, a4_, a5_, a6_, a7_, a8_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, ff_core_JsValue_IsJsValue$A3, ff_core_JsValue_IsJsValue$A4, ff_core_JsValue_IsJsValue$A5, ff_core_JsValue_IsJsValue$A6, ff_core_JsValue_IsJsValue$A7, ff_core_JsValue_IsJsValue$A8) {
311
+ return self_.call(self_, a1_, a2_, a3_, a4_, a5_, a6_, a7_, a8_)
312
+ }
313
+
314
+ export function JsValue_callValue9(self_, a1_, a2_, a3_, a4_, a5_, a6_, a7_, a8_, a9_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, ff_core_JsValue_IsJsValue$A3, ff_core_JsValue_IsJsValue$A4, ff_core_JsValue_IsJsValue$A5, ff_core_JsValue_IsJsValue$A6, ff_core_JsValue_IsJsValue$A7, ff_core_JsValue_IsJsValue$A8, ff_core_JsValue_IsJsValue$A9) {
315
+ return self_.call(self_, a1_, a2_, a3_, a4_, a5_, a6_, a7_, a8_, a9_)
316
+ }
317
+
318
+ export function JsValue_new(self_, this_, arguments_) {
319
+ return new (Function.prototype.bind.apply(self_, ff_core_List.List_toArray(arguments_)))
320
+ }
321
+
322
+ export function JsValue_new0(self_) {
323
+ return new self_()
324
+ }
325
+
326
+ export function JsValue_new1(self_, a1_, ff_core_JsValue_IsJsValue$A1) {
327
+ return new self_(a1_)
328
+ }
329
+
330
+ export function JsValue_new2(self_, a1_, a2_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2) {
331
+ return new self_(a1_, a2_)
332
+ }
333
+
334
+ export function JsValue_new3(self_, a1_, a2_, a3_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, ff_core_JsValue_IsJsValue$A3) {
335
+ return new self_(a1_, a2_, a3_)
336
+ }
337
+
338
+ export function JsValue_new4(self_, a1_, a2_, a3_, a4_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, ff_core_JsValue_IsJsValue$A3, ff_core_JsValue_IsJsValue$A4) {
339
+ return new self_(a1_, a2_, a3_, a4_)
340
+ }
341
+
342
+ export function JsValue_new5(self_, a1_, a2_, a3_, a4_, a5_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, ff_core_JsValue_IsJsValue$A3, ff_core_JsValue_IsJsValue$A4, ff_core_JsValue_IsJsValue$A5) {
343
+ return new self_(a1_, a2_, a3_, a4_, a5_)
344
+ }
345
+
346
+ export function JsValue_new6(self_, a1_, a2_, a3_, a4_, a5_, a6_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, ff_core_JsValue_IsJsValue$A3, ff_core_JsValue_IsJsValue$A4, ff_core_JsValue_IsJsValue$A5, ff_core_JsValue_IsJsValue$A6) {
347
+ return new self_(a1_, a2_, a3_, a4_, a5_, a6_)
348
+ }
349
+
350
+ export function JsValue_new7(self_, a1_, a2_, a3_, a4_, a5_, a6_, a7_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, ff_core_JsValue_IsJsValue$A3, ff_core_JsValue_IsJsValue$A4, ff_core_JsValue_IsJsValue$A5, ff_core_JsValue_IsJsValue$A6, ff_core_JsValue_IsJsValue$A7) {
351
+ return new self_(a1_, a2_, a3_, a4_, a5_, a6_, a7_)
352
+ }
353
+
354
+ export function JsValue_new8(self_, a1_, a2_, a3_, a4_, a5_, a6_, a7_, a8_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, ff_core_JsValue_IsJsValue$A3, ff_core_JsValue_IsJsValue$A4, ff_core_JsValue_IsJsValue$A5, ff_core_JsValue_IsJsValue$A6, ff_core_JsValue_IsJsValue$A7, ff_core_JsValue_IsJsValue$A8) {
355
+ return new self_(a1_, a2_, a3_, a4_, a5_, a6_, a7_, a8_)
356
+ }
357
+
358
+ export function JsValue_new9(self_, a1_, a2_, a3_, a4_, a5_, a6_, a7_, a8_, a9_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, ff_core_JsValue_IsJsValue$A3, ff_core_JsValue_IsJsValue$A4, ff_core_JsValue_IsJsValue$A5, ff_core_JsValue_IsJsValue$A6, ff_core_JsValue_IsJsValue$A7, ff_core_JsValue_IsJsValue$A8, ff_core_JsValue_IsJsValue$A9) {
359
+ return new self_(a1_, a2_, a3_, a4_, a5_, a6_, a7_, a8_, a9_)
360
+ }
361
+
362
+ export function JsValue_toJson(self_, space_ = ff_core_Option.None()) {
363
+ return JSON.stringify(self_, null, space_.value_)
364
+ }
365
+
366
+ export function JsValue_grabPairs(self_) {
355
367
 
356
368
  if(!(self_ instanceof Object)) throw new Error('Expected object, got '+ typeof self_);;
357
369
  let result = ff_core_List.Empty();
@@ -360,319 +372,357 @@ export function JsValue_grabPairs(self_) {
360
372
  result = ff_core_List.Link(pair, result);
361
373
  })
362
374
  return result;
363
-
364
- }
365
-
366
- export function JsValue_grabMap(self_) {
367
- return ff_core_List.List_toMap(ff_core_JsValue.JsValue_grabPairs(self_), ff_core_Ordering.ff_core_Ordering_Order$ff_core_String_String)
368
- }
369
-
370
- export async function JsValue_grabString$(self_, $task) {
371
- throw new Error('Function JsValue_grabString is missing on this target in async context.');
372
- }
373
-
374
- export async function JsValue_grabChar$(self_, $task) {
375
- throw new Error('Function JsValue_grabChar is missing on this target in async context.');
376
- }
377
-
378
- export async function JsValue_grabInt$(self_, $task) {
379
- throw new Error('Function JsValue_grabInt is missing on this target in async context.');
380
- }
381
-
382
- export async function JsValue_grabFloat$(self_, $task) {
383
- throw new Error('Function JsValue_grabFloat is missing on this target in async context.');
384
- }
385
-
386
- export async function JsValue_grabBool$(self_, $task) {
387
- throw new Error('Function JsValue_grabBool is missing on this target in async context.');
388
- }
389
-
390
- export async function JsValue_grabArray$(self_, $task) {
391
- throw new Error('Function JsValue_grabArray is missing on this target in async context.');
392
- }
393
-
394
- export async function JsValue_grabBuffer$(self_, $task) {
395
- throw new Error('Function JsValue_grabBuffer is missing on this target in async context.');
396
- }
397
-
398
- export async function JsValue_isString$(self_, $task) {
399
- throw new Error('Function JsValue_isString is missing on this target in async context.');
400
- }
401
-
402
- export async function JsValue_isChar$(self_, $task) {
403
- throw new Error('Function JsValue_isChar is missing on this target in async context.');
404
- }
405
-
406
- export async function JsValue_isInt$(self_, $task) {
407
- throw new Error('Function JsValue_isInt is missing on this target in async context.');
408
- }
409
-
410
- export async function JsValue_isFloat$(self_, $task) {
411
- throw new Error('Function JsValue_isFloat is missing on this target in async context.');
412
- }
413
-
414
- export async function JsValue_isBool$(self_, $task) {
415
- throw new Error('Function JsValue_isBool is missing on this target in async context.');
416
- }
417
-
418
- export async function JsValue_isArray$(self_, $task) {
419
- throw new Error('Function JsValue_isArray is missing on this target in async context.');
420
- }
421
-
422
- export async function JsValue_isObject$(self_, $task) {
423
- throw new Error('Function JsValue_isObject is missing on this target in async context.');
424
- }
425
-
426
- export async function JsValue_isFunction$(self_, $task) {
427
- throw new Error('Function JsValue_isFunction is missing on this target in async context.');
428
- }
429
-
430
- export async function JsValue_isNull$(self_, $task) {
431
- throw new Error('Function JsValue_isNull is missing on this target in async context.');
432
- }
433
-
434
- export async function JsValue_isUndefined$(self_, $task) {
435
- throw new Error('Function JsValue_isUndefined is missing on this target in async context.');
436
- }
437
-
438
- export async function JsValue_isNullOrUndefined$(self_, $task) {
439
- throw new Error('Function JsValue_isNullOrUndefined is missing on this target in async context.');
440
- }
441
-
442
- export async function JsValue_isNan$(self_, $task) {
443
- throw new Error('Function JsValue_isNan is missing on this target in async context.');
444
- }
445
-
446
- export async function JsValue_isFinite$(self_, $task) {
447
- throw new Error('Function JsValue_isFinite is missing on this target in async context.');
448
- }
449
-
450
- export async function JsValue_get$(self_, key_, ff_core_JsValue_IsJsValue$K, $task) {
451
- throw new Error('Function JsValue_get is missing on this target in async context.');
452
- }
453
-
454
- export async function JsValue_getOwn$(self_, key_, $task) {
455
- if(ff_core_JsValue.JsValue_hasOwn(self_, key_)) {
456
- return ff_core_Option.Some(ff_core_JsValue.JsValue_get(self_, key_, ff_core_JsValue.ff_core_JsValue_IsJsValue$ff_core_String_String))
457
- } else {
458
- return ff_core_Option.None()
459
- }
460
- }
461
-
462
- export async function JsValue_set$(self_, key_, value_, ff_core_JsValue_IsJsValue$K, ff_core_JsValue_IsJsValue$V, $task) {
463
- throw new Error('Function JsValue_set is missing on this target in async context.');
464
- }
465
-
466
- export async function JsValue_with$(self_, key_, value_, ff_core_JsValue_IsJsValue$K, ff_core_JsValue_IsJsValue$V, $task) {
467
- throw new Error('Function JsValue_with is missing on this target in async context.');
468
- }
469
-
470
- export async function JsValue_hasOwn$(self_, name_, $task) {
471
- throw new Error('Function JsValue_hasOwn is missing on this target in async context.');
472
- }
473
-
474
- export async function JsValue_assign$(self_, source_, source2_ = source_, $task) {
475
- throw new Error('Function JsValue_assign is missing on this target in async context.');
476
- }
477
-
478
- export async function JsValue_each$(self_, body_, $task) {
479
- for(const value of self_) await body_(value, $task)
480
- }
481
-
482
- export async function JsValue_eachWhile$(self_, body_, $task) {
483
- for(const value of self_) if(!await body_(value, $task)) break
484
- }
485
-
486
- export async function JsValue_call$(self_, name_, arguments_, $task) {
487
- throw new Error('Function JsValue_call is missing on this target in async context.');
488
- }
489
-
490
- export async function JsValue_call0$(self_, name_, $task) {
491
- throw new Error('Function JsValue_call0 is missing on this target in async context.');
492
- }
493
-
494
- export async function JsValue_call1$(self_, name_, a1_, ff_core_JsValue_IsJsValue$A1, $task) {
495
- throw new Error('Function JsValue_call1 is missing on this target in async context.');
496
- }
497
-
498
- export async function JsValue_call2$(self_, name_, a1_, a2_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, $task) {
499
- throw new Error('Function JsValue_call2 is missing on this target in async context.');
500
- }
501
-
502
- export async function JsValue_call3$(self_, name_, a1_, a2_, a3_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, ff_core_JsValue_IsJsValue$A3, $task) {
503
- throw new Error('Function JsValue_call3 is missing on this target in async context.');
504
- }
505
-
506
- export async function JsValue_call4$(self_, name_, a1_, a2_, a3_, a4_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, ff_core_JsValue_IsJsValue$A3, ff_core_JsValue_IsJsValue$A4, $task) {
507
- throw new Error('Function JsValue_call4 is missing on this target in async context.');
508
- }
509
-
510
- export async function JsValue_call5$(self_, name_, a1_, a2_, a3_, a4_, a5_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, ff_core_JsValue_IsJsValue$A3, ff_core_JsValue_IsJsValue$A4, ff_core_JsValue_IsJsValue$A5, $task) {
511
- throw new Error('Function JsValue_call5 is missing on this target in async context.');
512
- }
513
-
514
- export async function JsValue_call6$(self_, name_, a1_, a2_, a3_, a4_, a5_, a6_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, ff_core_JsValue_IsJsValue$A3, ff_core_JsValue_IsJsValue$A4, ff_core_JsValue_IsJsValue$A5, ff_core_JsValue_IsJsValue$A6, $task) {
515
- throw new Error('Function JsValue_call6 is missing on this target in async context.');
516
- }
517
-
518
- export async function JsValue_call7$(self_, name_, a1_, a2_, a3_, a4_, a5_, a6_, a7_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, ff_core_JsValue_IsJsValue$A3, ff_core_JsValue_IsJsValue$A4, ff_core_JsValue_IsJsValue$A5, ff_core_JsValue_IsJsValue$A6, ff_core_JsValue_IsJsValue$A7, $task) {
519
- throw new Error('Function JsValue_call7 is missing on this target in async context.');
520
- }
521
-
522
- export async function JsValue_call8$(self_, name_, a1_, a2_, a3_, a4_, a5_, a6_, a7_, a8_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, ff_core_JsValue_IsJsValue$A3, ff_core_JsValue_IsJsValue$A4, ff_core_JsValue_IsJsValue$A5, ff_core_JsValue_IsJsValue$A6, ff_core_JsValue_IsJsValue$A7, ff_core_JsValue_IsJsValue$A8, $task) {
523
- throw new Error('Function JsValue_call8 is missing on this target in async context.');
524
- }
525
-
526
- export async function JsValue_call9$(self_, name_, a1_, a2_, a3_, a4_, a5_, a6_, a7_, a8_, a9_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, ff_core_JsValue_IsJsValue$A3, ff_core_JsValue_IsJsValue$A4, ff_core_JsValue_IsJsValue$A5, ff_core_JsValue_IsJsValue$A6, ff_core_JsValue_IsJsValue$A7, ff_core_JsValue_IsJsValue$A8, ff_core_JsValue_IsJsValue$A9, $task) {
527
- throw new Error('Function JsValue_call9 is missing on this target in async context.');
528
- }
529
-
530
- export async function JsValue_callValue$(self_, this_, arguments_, $task) {
531
- throw new Error('Function JsValue_callValue is missing on this target in async context.');
532
- }
533
-
534
- export async function JsValue_callValue0$(self_, $task) {
535
- throw new Error('Function JsValue_callValue0 is missing on this target in async context.');
536
- }
537
-
538
- export async function JsValue_callValue1$(self_, a1_, ff_core_JsValue_IsJsValue$A1, $task) {
539
- throw new Error('Function JsValue_callValue1 is missing on this target in async context.');
540
- }
541
-
542
- export async function JsValue_callValue2$(self_, a1_, a2_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, $task) {
543
- throw new Error('Function JsValue_callValue2 is missing on this target in async context.');
544
- }
545
-
546
- export async function JsValue_callValue3$(self_, a1_, a2_, a3_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, ff_core_JsValue_IsJsValue$A3, $task) {
547
- throw new Error('Function JsValue_callValue3 is missing on this target in async context.');
548
- }
549
-
550
- export async function JsValue_callValue4$(self_, a1_, a2_, a3_, a4_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, ff_core_JsValue_IsJsValue$A3, ff_core_JsValue_IsJsValue$A4, $task) {
551
- throw new Error('Function JsValue_callValue4 is missing on this target in async context.');
552
- }
553
-
554
- export async function JsValue_callValue5$(self_, a1_, a2_, a3_, a4_, a5_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, ff_core_JsValue_IsJsValue$A3, ff_core_JsValue_IsJsValue$A4, ff_core_JsValue_IsJsValue$A5, $task) {
555
- throw new Error('Function JsValue_callValue5 is missing on this target in async context.');
556
- }
557
-
558
- export async function JsValue_callValue6$(self_, a1_, a2_, a3_, a4_, a5_, a6_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, ff_core_JsValue_IsJsValue$A3, ff_core_JsValue_IsJsValue$A4, ff_core_JsValue_IsJsValue$A5, ff_core_JsValue_IsJsValue$A6, $task) {
559
- throw new Error('Function JsValue_callValue6 is missing on this target in async context.');
560
- }
561
-
562
- export async function JsValue_callValue7$(self_, a1_, a2_, a3_, a4_, a5_, a6_, a7_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, ff_core_JsValue_IsJsValue$A3, ff_core_JsValue_IsJsValue$A4, ff_core_JsValue_IsJsValue$A5, ff_core_JsValue_IsJsValue$A6, ff_core_JsValue_IsJsValue$A7, $task) {
563
- throw new Error('Function JsValue_callValue7 is missing on this target in async context.');
564
- }
565
-
566
- export async function JsValue_callValue8$(self_, a1_, a2_, a3_, a4_, a5_, a6_, a7_, a8_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, ff_core_JsValue_IsJsValue$A3, ff_core_JsValue_IsJsValue$A4, ff_core_JsValue_IsJsValue$A5, ff_core_JsValue_IsJsValue$A6, ff_core_JsValue_IsJsValue$A7, ff_core_JsValue_IsJsValue$A8, $task) {
567
- throw new Error('Function JsValue_callValue8 is missing on this target in async context.');
568
- }
569
-
570
- export async function JsValue_callValue9$(self_, a1_, a2_, a3_, a4_, a5_, a6_, a7_, a8_, a9_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, ff_core_JsValue_IsJsValue$A3, ff_core_JsValue_IsJsValue$A4, ff_core_JsValue_IsJsValue$A5, ff_core_JsValue_IsJsValue$A6, ff_core_JsValue_IsJsValue$A7, ff_core_JsValue_IsJsValue$A8, ff_core_JsValue_IsJsValue$A9, $task) {
571
- throw new Error('Function JsValue_callValue9 is missing on this target in async context.');
572
- }
573
-
574
- export async function JsValue_new$(self_, this_, arguments_, $task) {
575
- throw new Error('Function JsValue_new is missing on this target in async context.');
576
- }
577
-
578
- export async function JsValue_new0$(self_, $task) {
579
- throw new Error('Function JsValue_new0 is missing on this target in async context.');
580
- }
581
-
582
- export async function JsValue_new1$(self_, a1_, ff_core_JsValue_IsJsValue$A1, $task) {
583
- throw new Error('Function JsValue_new1 is missing on this target in async context.');
584
- }
585
-
586
- export async function JsValue_new2$(self_, a1_, a2_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, $task) {
587
- throw new Error('Function JsValue_new2 is missing on this target in async context.');
588
- }
589
-
590
- export async function JsValue_new3$(self_, a1_, a2_, a3_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, ff_core_JsValue_IsJsValue$A3, $task) {
591
- throw new Error('Function JsValue_new3 is missing on this target in async context.');
592
- }
593
-
594
- export async function JsValue_new4$(self_, a1_, a2_, a3_, a4_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, ff_core_JsValue_IsJsValue$A3, ff_core_JsValue_IsJsValue$A4, $task) {
595
- throw new Error('Function JsValue_new4 is missing on this target in async context.');
596
- }
597
-
598
- export async function JsValue_new5$(self_, a1_, a2_, a3_, a4_, a5_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, ff_core_JsValue_IsJsValue$A3, ff_core_JsValue_IsJsValue$A4, ff_core_JsValue_IsJsValue$A5, $task) {
599
- throw new Error('Function JsValue_new5 is missing on this target in async context.');
600
- }
601
-
602
- export async function JsValue_new6$(self_, a1_, a2_, a3_, a4_, a5_, a6_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, ff_core_JsValue_IsJsValue$A3, ff_core_JsValue_IsJsValue$A4, ff_core_JsValue_IsJsValue$A5, ff_core_JsValue_IsJsValue$A6, $task) {
603
- throw new Error('Function JsValue_new6 is missing on this target in async context.');
604
- }
605
-
606
- export async function JsValue_new7$(self_, a1_, a2_, a3_, a4_, a5_, a6_, a7_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, ff_core_JsValue_IsJsValue$A3, ff_core_JsValue_IsJsValue$A4, ff_core_JsValue_IsJsValue$A5, ff_core_JsValue_IsJsValue$A6, ff_core_JsValue_IsJsValue$A7, $task) {
607
- throw new Error('Function JsValue_new7 is missing on this target in async context.');
608
- }
609
-
610
- export async function JsValue_new8$(self_, a1_, a2_, a3_, a4_, a5_, a6_, a7_, a8_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, ff_core_JsValue_IsJsValue$A3, ff_core_JsValue_IsJsValue$A4, ff_core_JsValue_IsJsValue$A5, ff_core_JsValue_IsJsValue$A6, ff_core_JsValue_IsJsValue$A7, ff_core_JsValue_IsJsValue$A8, $task) {
611
- throw new Error('Function JsValue_new8 is missing on this target in async context.');
612
- }
613
-
614
- export async function JsValue_new9$(self_, a1_, a2_, a3_, a4_, a5_, a6_, a7_, a8_, a9_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, ff_core_JsValue_IsJsValue$A3, ff_core_JsValue_IsJsValue$A4, ff_core_JsValue_IsJsValue$A5, ff_core_JsValue_IsJsValue$A6, ff_core_JsValue_IsJsValue$A7, ff_core_JsValue_IsJsValue$A8, ff_core_JsValue_IsJsValue$A9, $task) {
615
- throw new Error('Function JsValue_new9 is missing on this target in async context.');
616
- }
617
-
618
- export async function JsValue_toJson$(self_, space_ = ff_core_Option.None(), $task) {
619
- throw new Error('Function JsValue_toJson is missing on this target in async context.');
620
- }
621
-
622
- export async function JsValue_grabPairs$(self_, $task) {
623
- throw new Error('Function JsValue_grabPairs is missing on this target in async context.');
624
- }
625
-
626
- export async function JsValue_grabMap$(self_, $task) {
627
- return ff_core_List.List_toMap(ff_core_JsValue.JsValue_grabPairs(self_), ff_core_Ordering.ff_core_Ordering_Order$ff_core_String_String)
628
- }
629
-
630
- export const ff_core_JsValue_IsJsValue$ff_core_JsValue_JsValue = {
631
-
632
- };
633
-
634
- export const ff_core_JsValue_IsJsValue$ff_core_String_String = {
635
-
636
- };
637
-
638
- export const ff_core_JsValue_IsJsValue$ff_core_Char_Char = {
639
-
640
- };
641
-
642
- export const ff_core_JsValue_IsJsValue$ff_core_Int_Int = {
643
-
644
- };
645
-
646
- export const ff_core_JsValue_IsJsValue$ff_core_Float_Float = {
647
-
648
- };
649
-
650
- export const ff_core_JsValue_IsJsValue$ff_core_Bool_Bool = {
651
-
652
- };
653
-
654
- export function ff_core_JsValue_IsJsValue$ff_core_Array_Array(ff_core_JsValue_IsJsValue$T) { return {
655
-
656
- }}
657
-
658
- export const ff_core_JsValue_IsJsValue$ff_core_Error_Error = {
659
-
660
- };
661
-
662
- export const ff_core_JsValue_IsJsValue$ff_core_Instant_Instant = {
663
-
664
- };
665
-
666
- export const ff_core_JsValue_IsJsValue$ff_core_Duration_Duration = {
667
-
668
- };
669
-
670
- export const ff_core_JsValue_IsJsValue$ff_core_Buffer_Buffer = {
671
-
672
- };
673
-
674
- export const ff_core_JsValue_IsJsValue$ff_core_Nothing_Nothing = {
675
-
676
- };
677
-
678
-
375
+
376
+ }
377
+
378
+ export function JsValue_grabMap(self_) {
379
+ return ff_core_List.List_toMap(ff_core_JsValue.JsValue_grabPairs(self_), ff_core_Ordering.ff_core_Ordering_Order$ff_core_String_String)
380
+ }
381
+
382
+ export function JsValue_grabIntMap(self_) {
383
+
384
+ if(!(self_ instanceof Map)) throw new Error('Expected map, got '+ typeof self_);;
385
+ return self_
386
+
387
+ }
388
+
389
+ export function JsValue_grabStringMap(self_) {
390
+
391
+ if(!(self_ instanceof Map)) throw new Error('Expected map, got '+ typeof self_);;
392
+ return self_
393
+
394
+ }
395
+
396
+ export async function JsValue_grabString$(self_, $task) {
397
+ throw new Error('Function JsValue_grabString is missing on this target in async context.');
398
+ }
399
+
400
+ export async function JsValue_grabChar$(self_, $task) {
401
+ throw new Error('Function JsValue_grabChar is missing on this target in async context.');
402
+ }
403
+
404
+ export async function JsValue_grabInt$(self_, $task) {
405
+ throw new Error('Function JsValue_grabInt is missing on this target in async context.');
406
+ }
407
+
408
+ export async function JsValue_grabFloat$(self_, $task) {
409
+ throw new Error('Function JsValue_grabFloat is missing on this target in async context.');
410
+ }
411
+
412
+ export async function JsValue_grabBool$(self_, $task) {
413
+ throw new Error('Function JsValue_grabBool is missing on this target in async context.');
414
+ }
415
+
416
+ export async function JsValue_grabArray$(self_, $task) {
417
+ throw new Error('Function JsValue_grabArray is missing on this target in async context.');
418
+ }
419
+
420
+ export async function JsValue_grabBuffer$(self_, $task) {
421
+ throw new Error('Function JsValue_grabBuffer is missing on this target in async context.');
422
+ }
423
+
424
+ export async function JsValue_equals$(self_, value_, ff_core_JsValue_IsJsValue$V, $task) {
425
+ throw new Error('Function JsValue_equals is missing on this target in async context.');
426
+ }
427
+
428
+ export async function JsValue_isString$(self_, $task) {
429
+ throw new Error('Function JsValue_isString is missing on this target in async context.');
430
+ }
431
+
432
+ export async function JsValue_isChar$(self_, $task) {
433
+ throw new Error('Function JsValue_isChar is missing on this target in async context.');
434
+ }
435
+
436
+ export async function JsValue_isInt$(self_, $task) {
437
+ throw new Error('Function JsValue_isInt is missing on this target in async context.');
438
+ }
439
+
440
+ export async function JsValue_isFloat$(self_, $task) {
441
+ throw new Error('Function JsValue_isFloat is missing on this target in async context.');
442
+ }
443
+
444
+ export async function JsValue_isBool$(self_, $task) {
445
+ throw new Error('Function JsValue_isBool is missing on this target in async context.');
446
+ }
447
+
448
+ export async function JsValue_isArray$(self_, $task) {
449
+ throw new Error('Function JsValue_isArray is missing on this target in async context.');
450
+ }
451
+
452
+ export async function JsValue_isObject$(self_, $task) {
453
+ throw new Error('Function JsValue_isObject is missing on this target in async context.');
454
+ }
455
+
456
+ export async function JsValue_isFunction$(self_, $task) {
457
+ throw new Error('Function JsValue_isFunction is missing on this target in async context.');
458
+ }
459
+
460
+ export async function JsValue_isNull$(self_, $task) {
461
+ throw new Error('Function JsValue_isNull is missing on this target in async context.');
462
+ }
463
+
464
+ export async function JsValue_isUndefined$(self_, $task) {
465
+ throw new Error('Function JsValue_isUndefined is missing on this target in async context.');
466
+ }
467
+
468
+ export async function JsValue_isNullOrUndefined$(self_, $task) {
469
+ throw new Error('Function JsValue_isNullOrUndefined is missing on this target in async context.');
470
+ }
471
+
472
+ export async function JsValue_isNan$(self_, $task) {
473
+ throw new Error('Function JsValue_isNan is missing on this target in async context.');
474
+ }
475
+
476
+ export async function JsValue_isFinite$(self_, $task) {
477
+ throw new Error('Function JsValue_isFinite is missing on this target in async context.');
478
+ }
479
+
480
+ export async function JsValue_get$(self_, key_, ff_core_JsValue_IsJsValue$K, $task) {
481
+ throw new Error('Function JsValue_get is missing on this target in async context.');
482
+ }
483
+
484
+ export async function JsValue_getOwn$(self_, key_, $task) {
485
+ if(ff_core_JsValue.JsValue_hasOwn(self_, key_)) {
486
+ return ff_core_Option.Some(ff_core_JsValue.JsValue_get(self_, key_, ff_core_JsValue.ff_core_JsValue_IsJsValue$ff_core_String_String))
487
+ } else {
488
+ return ff_core_Option.None()
489
+ }
490
+ }
491
+
492
+ export async function JsValue_set$(self_, key_, value_, ff_core_JsValue_IsJsValue$K, ff_core_JsValue_IsJsValue$V, $task) {
493
+ throw new Error('Function JsValue_set is missing on this target in async context.');
494
+ }
495
+
496
+ export async function JsValue_delete$(self_, key_, ff_core_JsValue_IsJsValue$K, $task) {
497
+ throw new Error('Function JsValue_delete is missing on this target in async context.');
498
+ }
499
+
500
+ export async function JsValue_with$(self_, key_, value_, ff_core_JsValue_IsJsValue$K, ff_core_JsValue_IsJsValue$V, $task) {
501
+ throw new Error('Function JsValue_with is missing on this target in async context.');
502
+ }
503
+
504
+ export async function JsValue_hasOwn$(self_, name_, $task) {
505
+ throw new Error('Function JsValue_hasOwn is missing on this target in async context.');
506
+ }
507
+
508
+ export async function JsValue_assign$(self_, source_, source2_ = source_, $task) {
509
+ throw new Error('Function JsValue_assign is missing on this target in async context.');
510
+ }
511
+
512
+ export async function JsValue_each$(self_, body_, $task) {
513
+ for(const value of self_) await body_(value, $task)
514
+ }
515
+
516
+ export async function JsValue_eachWhile$(self_, body_, $task) {
517
+ for(const value of self_) if(!await body_(value, $task)) break
518
+ }
519
+
520
+ export async function JsValue_call$(self_, name_, arguments_, $task) {
521
+ throw new Error('Function JsValue_call is missing on this target in async context.');
522
+ }
523
+
524
+ export async function JsValue_call0$(self_, name_, $task) {
525
+ throw new Error('Function JsValue_call0 is missing on this target in async context.');
526
+ }
527
+
528
+ export async function JsValue_call1$(self_, name_, a1_, ff_core_JsValue_IsJsValue$A1, $task) {
529
+ throw new Error('Function JsValue_call1 is missing on this target in async context.');
530
+ }
531
+
532
+ export async function JsValue_call2$(self_, name_, a1_, a2_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, $task) {
533
+ throw new Error('Function JsValue_call2 is missing on this target in async context.');
534
+ }
535
+
536
+ export async function JsValue_call3$(self_, name_, a1_, a2_, a3_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, ff_core_JsValue_IsJsValue$A3, $task) {
537
+ throw new Error('Function JsValue_call3 is missing on this target in async context.');
538
+ }
539
+
540
+ export async function JsValue_call4$(self_, name_, a1_, a2_, a3_, a4_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, ff_core_JsValue_IsJsValue$A3, ff_core_JsValue_IsJsValue$A4, $task) {
541
+ throw new Error('Function JsValue_call4 is missing on this target in async context.');
542
+ }
543
+
544
+ export async function JsValue_call5$(self_, name_, a1_, a2_, a3_, a4_, a5_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, ff_core_JsValue_IsJsValue$A3, ff_core_JsValue_IsJsValue$A4, ff_core_JsValue_IsJsValue$A5, $task) {
545
+ throw new Error('Function JsValue_call5 is missing on this target in async context.');
546
+ }
547
+
548
+ export async function JsValue_call6$(self_, name_, a1_, a2_, a3_, a4_, a5_, a6_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, ff_core_JsValue_IsJsValue$A3, ff_core_JsValue_IsJsValue$A4, ff_core_JsValue_IsJsValue$A5, ff_core_JsValue_IsJsValue$A6, $task) {
549
+ throw new Error('Function JsValue_call6 is missing on this target in async context.');
550
+ }
551
+
552
+ export async function JsValue_call7$(self_, name_, a1_, a2_, a3_, a4_, a5_, a6_, a7_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, ff_core_JsValue_IsJsValue$A3, ff_core_JsValue_IsJsValue$A4, ff_core_JsValue_IsJsValue$A5, ff_core_JsValue_IsJsValue$A6, ff_core_JsValue_IsJsValue$A7, $task) {
553
+ throw new Error('Function JsValue_call7 is missing on this target in async context.');
554
+ }
555
+
556
+ export async function JsValue_call8$(self_, name_, a1_, a2_, a3_, a4_, a5_, a6_, a7_, a8_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, ff_core_JsValue_IsJsValue$A3, ff_core_JsValue_IsJsValue$A4, ff_core_JsValue_IsJsValue$A5, ff_core_JsValue_IsJsValue$A6, ff_core_JsValue_IsJsValue$A7, ff_core_JsValue_IsJsValue$A8, $task) {
557
+ throw new Error('Function JsValue_call8 is missing on this target in async context.');
558
+ }
559
+
560
+ export async function JsValue_call9$(self_, name_, a1_, a2_, a3_, a4_, a5_, a6_, a7_, a8_, a9_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, ff_core_JsValue_IsJsValue$A3, ff_core_JsValue_IsJsValue$A4, ff_core_JsValue_IsJsValue$A5, ff_core_JsValue_IsJsValue$A6, ff_core_JsValue_IsJsValue$A7, ff_core_JsValue_IsJsValue$A8, ff_core_JsValue_IsJsValue$A9, $task) {
561
+ throw new Error('Function JsValue_call9 is missing on this target in async context.');
562
+ }
563
+
564
+ export async function JsValue_callValue$(self_, this_, arguments_, $task) {
565
+ throw new Error('Function JsValue_callValue is missing on this target in async context.');
566
+ }
567
+
568
+ export async function JsValue_callValue0$(self_, $task) {
569
+ throw new Error('Function JsValue_callValue0 is missing on this target in async context.');
570
+ }
571
+
572
+ export async function JsValue_callValue1$(self_, a1_, ff_core_JsValue_IsJsValue$A1, $task) {
573
+ throw new Error('Function JsValue_callValue1 is missing on this target in async context.');
574
+ }
575
+
576
+ export async function JsValue_callValue2$(self_, a1_, a2_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, $task) {
577
+ throw new Error('Function JsValue_callValue2 is missing on this target in async context.');
578
+ }
579
+
580
+ export async function JsValue_callValue3$(self_, a1_, a2_, a3_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, ff_core_JsValue_IsJsValue$A3, $task) {
581
+ throw new Error('Function JsValue_callValue3 is missing on this target in async context.');
582
+ }
583
+
584
+ export async function JsValue_callValue4$(self_, a1_, a2_, a3_, a4_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, ff_core_JsValue_IsJsValue$A3, ff_core_JsValue_IsJsValue$A4, $task) {
585
+ throw new Error('Function JsValue_callValue4 is missing on this target in async context.');
586
+ }
587
+
588
+ export async function JsValue_callValue5$(self_, a1_, a2_, a3_, a4_, a5_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, ff_core_JsValue_IsJsValue$A3, ff_core_JsValue_IsJsValue$A4, ff_core_JsValue_IsJsValue$A5, $task) {
589
+ throw new Error('Function JsValue_callValue5 is missing on this target in async context.');
590
+ }
591
+
592
+ export async function JsValue_callValue6$(self_, a1_, a2_, a3_, a4_, a5_, a6_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, ff_core_JsValue_IsJsValue$A3, ff_core_JsValue_IsJsValue$A4, ff_core_JsValue_IsJsValue$A5, ff_core_JsValue_IsJsValue$A6, $task) {
593
+ throw new Error('Function JsValue_callValue6 is missing on this target in async context.');
594
+ }
595
+
596
+ export async function JsValue_callValue7$(self_, a1_, a2_, a3_, a4_, a5_, a6_, a7_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, ff_core_JsValue_IsJsValue$A3, ff_core_JsValue_IsJsValue$A4, ff_core_JsValue_IsJsValue$A5, ff_core_JsValue_IsJsValue$A6, ff_core_JsValue_IsJsValue$A7, $task) {
597
+ throw new Error('Function JsValue_callValue7 is missing on this target in async context.');
598
+ }
599
+
600
+ export async function JsValue_callValue8$(self_, a1_, a2_, a3_, a4_, a5_, a6_, a7_, a8_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, ff_core_JsValue_IsJsValue$A3, ff_core_JsValue_IsJsValue$A4, ff_core_JsValue_IsJsValue$A5, ff_core_JsValue_IsJsValue$A6, ff_core_JsValue_IsJsValue$A7, ff_core_JsValue_IsJsValue$A8, $task) {
601
+ throw new Error('Function JsValue_callValue8 is missing on this target in async context.');
602
+ }
603
+
604
+ export async function JsValue_callValue9$(self_, a1_, a2_, a3_, a4_, a5_, a6_, a7_, a8_, a9_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, ff_core_JsValue_IsJsValue$A3, ff_core_JsValue_IsJsValue$A4, ff_core_JsValue_IsJsValue$A5, ff_core_JsValue_IsJsValue$A6, ff_core_JsValue_IsJsValue$A7, ff_core_JsValue_IsJsValue$A8, ff_core_JsValue_IsJsValue$A9, $task) {
605
+ throw new Error('Function JsValue_callValue9 is missing on this target in async context.');
606
+ }
607
+
608
+ export async function JsValue_new$(self_, this_, arguments_, $task) {
609
+ throw new Error('Function JsValue_new is missing on this target in async context.');
610
+ }
611
+
612
+ export async function JsValue_new0$(self_, $task) {
613
+ throw new Error('Function JsValue_new0 is missing on this target in async context.');
614
+ }
615
+
616
+ export async function JsValue_new1$(self_, a1_, ff_core_JsValue_IsJsValue$A1, $task) {
617
+ throw new Error('Function JsValue_new1 is missing on this target in async context.');
618
+ }
619
+
620
+ export async function JsValue_new2$(self_, a1_, a2_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, $task) {
621
+ throw new Error('Function JsValue_new2 is missing on this target in async context.');
622
+ }
623
+
624
+ export async function JsValue_new3$(self_, a1_, a2_, a3_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, ff_core_JsValue_IsJsValue$A3, $task) {
625
+ throw new Error('Function JsValue_new3 is missing on this target in async context.');
626
+ }
627
+
628
+ export async function JsValue_new4$(self_, a1_, a2_, a3_, a4_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, ff_core_JsValue_IsJsValue$A3, ff_core_JsValue_IsJsValue$A4, $task) {
629
+ throw new Error('Function JsValue_new4 is missing on this target in async context.');
630
+ }
631
+
632
+ export async function JsValue_new5$(self_, a1_, a2_, a3_, a4_, a5_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, ff_core_JsValue_IsJsValue$A3, ff_core_JsValue_IsJsValue$A4, ff_core_JsValue_IsJsValue$A5, $task) {
633
+ throw new Error('Function JsValue_new5 is missing on this target in async context.');
634
+ }
635
+
636
+ export async function JsValue_new6$(self_, a1_, a2_, a3_, a4_, a5_, a6_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, ff_core_JsValue_IsJsValue$A3, ff_core_JsValue_IsJsValue$A4, ff_core_JsValue_IsJsValue$A5, ff_core_JsValue_IsJsValue$A6, $task) {
637
+ throw new Error('Function JsValue_new6 is missing on this target in async context.');
638
+ }
639
+
640
+ export async function JsValue_new7$(self_, a1_, a2_, a3_, a4_, a5_, a6_, a7_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, ff_core_JsValue_IsJsValue$A3, ff_core_JsValue_IsJsValue$A4, ff_core_JsValue_IsJsValue$A5, ff_core_JsValue_IsJsValue$A6, ff_core_JsValue_IsJsValue$A7, $task) {
641
+ throw new Error('Function JsValue_new7 is missing on this target in async context.');
642
+ }
643
+
644
+ export async function JsValue_new8$(self_, a1_, a2_, a3_, a4_, a5_, a6_, a7_, a8_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, ff_core_JsValue_IsJsValue$A3, ff_core_JsValue_IsJsValue$A4, ff_core_JsValue_IsJsValue$A5, ff_core_JsValue_IsJsValue$A6, ff_core_JsValue_IsJsValue$A7, ff_core_JsValue_IsJsValue$A8, $task) {
645
+ throw new Error('Function JsValue_new8 is missing on this target in async context.');
646
+ }
647
+
648
+ export async function JsValue_new9$(self_, a1_, a2_, a3_, a4_, a5_, a6_, a7_, a8_, a9_, ff_core_JsValue_IsJsValue$A1, ff_core_JsValue_IsJsValue$A2, ff_core_JsValue_IsJsValue$A3, ff_core_JsValue_IsJsValue$A4, ff_core_JsValue_IsJsValue$A5, ff_core_JsValue_IsJsValue$A6, ff_core_JsValue_IsJsValue$A7, ff_core_JsValue_IsJsValue$A8, ff_core_JsValue_IsJsValue$A9, $task) {
649
+ throw new Error('Function JsValue_new9 is missing on this target in async context.');
650
+ }
651
+
652
+ export async function JsValue_toJson$(self_, space_ = ff_core_Option.None(), $task) {
653
+ throw new Error('Function JsValue_toJson is missing on this target in async context.');
654
+ }
655
+
656
+ export async function JsValue_grabPairs$(self_, $task) {
657
+ throw new Error('Function JsValue_grabPairs is missing on this target in async context.');
658
+ }
659
+
660
+ export async function JsValue_grabMap$(self_, $task) {
661
+ return ff_core_List.List_toMap(ff_core_JsValue.JsValue_grabPairs(self_), ff_core_Ordering.ff_core_Ordering_Order$ff_core_String_String)
662
+ }
663
+
664
+ export async function JsValue_grabIntMap$(self_, $task) {
665
+ throw new Error('Function JsValue_grabIntMap is missing on this target in async context.');
666
+ }
667
+
668
+ export async function JsValue_grabStringMap$(self_, $task) {
669
+ throw new Error('Function JsValue_grabStringMap is missing on this target in async context.');
670
+ }
671
+
672
+ export const ff_core_JsValue_IsJsValue$ff_core_JsValue_JsValue = {
673
+
674
+ };
675
+
676
+ export const ff_core_JsValue_IsJsValue$ff_core_String_String = {
677
+
678
+ };
679
+
680
+ export const ff_core_JsValue_IsJsValue$ff_core_Char_Char = {
681
+
682
+ };
683
+
684
+ export const ff_core_JsValue_IsJsValue$ff_core_Int_Int = {
685
+
686
+ };
687
+
688
+ export const ff_core_JsValue_IsJsValue$ff_core_Float_Float = {
689
+
690
+ };
691
+
692
+ export const ff_core_JsValue_IsJsValue$ff_core_Bool_Bool = {
693
+
694
+ };
695
+
696
+ export function ff_core_JsValue_IsJsValue$ff_core_Array_Array(ff_core_JsValue_IsJsValue$T) { return {
697
+
698
+ }}
699
+
700
+ export function ff_core_JsValue_IsJsValue$ff_core_IntMap_IntMap(ff_core_JsValue_IsJsValue$T) { return {
701
+
702
+ }}
703
+
704
+ export function ff_core_JsValue_IsJsValue$ff_core_StringMap_StringMap(ff_core_JsValue_IsJsValue$T) { return {
705
+
706
+ }}
707
+
708
+ export const ff_core_JsValue_IsJsValue$ff_core_Error_Error = {
709
+
710
+ };
711
+
712
+ export const ff_core_JsValue_IsJsValue$ff_core_Instant_Instant = {
713
+
714
+ };
715
+
716
+ export const ff_core_JsValue_IsJsValue$ff_core_Duration_Duration = {
717
+
718
+ };
719
+
720
+ export const ff_core_JsValue_IsJsValue$ff_core_Buffer_Buffer = {
721
+
722
+ };
723
+
724
+ export const ff_core_JsValue_IsJsValue$ff_core_Nothing_Nothing = {
725
+
726
+ };
727
+
728
+