firefly-compiler 0.5.47 → 0.5.49

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/.vscode/settings.json +1 -1
  2. package/bin/firefly.mjs +1 -1
  3. package/compiler/Builder.ff +9 -1
  4. package/compiler/Compiler.ff +1 -1
  5. package/compiler/Dependencies.ff +11 -7
  6. package/compiler/JsEmitter.ff +75 -58
  7. package/core/BrowserSystem.ff +5 -0
  8. package/core/Date.ff +623 -0
  9. package/core/Instant.ff +0 -24
  10. package/core/JsValue.ff +1 -1
  11. package/core/Map.ff +16 -0
  12. package/core/NodeSystem.ff +5 -0
  13. package/core/Path.ff +2 -2
  14. package/core/Random.ff +0 -4
  15. package/core/RbMap.ff +32 -0
  16. package/core/Set.ff +4 -0
  17. package/core/Task.ff +0 -4
  18. package/experimental/tests/TestDate.ff +10 -0
  19. package/experimental/tests/TestEmailAlertDateLogic.ff +84 -0
  20. package/firefly.sh +5 -5
  21. package/lsp/LanguageServer.ff +3 -0
  22. package/output/js/ff/compiler/Builder.mjs +46 -4
  23. package/output/js/ff/compiler/Compiler.mjs +3 -3
  24. package/output/js/ff/compiler/Dependencies.mjs +28 -14
  25. package/output/js/ff/compiler/DependencyLock.mjs +2 -2
  26. package/output/js/ff/compiler/Deriver.mjs +2 -2
  27. package/output/js/ff/compiler/Dictionaries.mjs +2 -2
  28. package/output/js/ff/compiler/Environment.mjs +2 -2
  29. package/output/js/ff/compiler/Inference.mjs +2 -2
  30. package/output/js/ff/compiler/JsEmitter.mjs +675 -575
  31. package/output/js/ff/compiler/JsImporter.mjs +2 -2
  32. package/output/js/ff/compiler/LspHook.mjs +2 -2
  33. package/output/js/ff/compiler/Main.mjs +2 -2
  34. package/output/js/ff/compiler/ModuleCache.mjs +2 -2
  35. package/output/js/ff/compiler/Parser.mjs +2 -2
  36. package/output/js/ff/compiler/Patterns.mjs +2 -2
  37. package/output/js/ff/compiler/Resolver.mjs +2 -2
  38. package/output/js/ff/compiler/Substitution.mjs +2 -2
  39. package/output/js/ff/compiler/Syntax.mjs +2 -2
  40. package/output/js/ff/compiler/Token.mjs +2 -2
  41. package/output/js/ff/compiler/Tokenizer.mjs +2 -2
  42. package/output/js/ff/compiler/Unification.mjs +2 -2
  43. package/output/js/ff/compiler/Wildcards.mjs +2 -2
  44. package/output/js/ff/compiler/Workspace.mjs +2 -2
  45. package/output/js/ff/core/Any.mjs +2 -2
  46. package/output/js/ff/core/Array.mjs +2 -2
  47. package/output/js/ff/core/AssetSystem.mjs +2 -2
  48. package/output/js/ff/core/Atomic.mjs +2 -2
  49. package/output/js/ff/core/Bool.mjs +2 -2
  50. package/output/js/ff/core/BrowserSystem.mjs +28 -2
  51. package/output/js/ff/core/Buffer.mjs +2 -2
  52. package/output/js/ff/core/BuildSystem.mjs +2 -2
  53. package/output/js/ff/core/Channel.mjs +2 -2
  54. package/output/js/ff/core/Char.mjs +2 -2
  55. package/output/js/ff/core/Core.mjs +2 -2
  56. package/output/js/ff/core/Crypto.mjs +2 -2
  57. package/output/js/ff/core/Date.mjs +1009 -0
  58. package/output/js/ff/core/Duration.mjs +2 -2
  59. package/output/js/ff/core/Equal.mjs +2 -2
  60. package/output/js/ff/core/Error.mjs +2 -2
  61. package/output/js/ff/core/FileHandle.mjs +2 -2
  62. package/output/js/ff/core/Float.mjs +2 -2
  63. package/output/js/ff/core/HttpClient.mjs +2 -2
  64. package/output/js/ff/core/Int.mjs +2 -2
  65. package/output/js/ff/core/IntMap.mjs +2 -2
  66. package/output/js/ff/core/Js.mjs +2 -2
  67. package/output/js/ff/core/JsSystem.mjs +2 -2
  68. package/output/js/ff/core/JsValue.mjs +3 -3
  69. package/output/js/ff/core/Json.mjs +2 -2
  70. package/output/js/ff/core/List.mjs +2 -2
  71. package/output/js/ff/core/Lock.mjs +2 -2
  72. package/output/js/ff/core/Log.mjs +2 -2
  73. package/output/js/ff/core/Map.mjs +34 -2
  74. package/output/js/ff/core/NodeSystem.mjs +28 -2
  75. package/output/js/ff/core/Nothing.mjs +2 -2
  76. package/output/js/ff/core/Option.mjs +2 -2
  77. package/output/js/ff/core/Ordering.mjs +2 -2
  78. package/output/js/ff/core/Pair.mjs +2 -2
  79. package/output/js/ff/core/Path.mjs +6 -12
  80. package/output/js/ff/core/Queue.mjs +2 -2
  81. package/output/js/ff/core/Random.mjs +2 -10
  82. package/output/js/ff/core/RbMap.mjs +186 -2
  83. package/output/js/ff/core/Serializable.mjs +2 -2
  84. package/output/js/ff/core/Set.mjs +50 -2
  85. package/output/js/ff/core/Show.mjs +2 -2
  86. package/output/js/ff/core/SourceLocation.mjs +2 -2
  87. package/output/js/ff/core/Stream.mjs +2 -2
  88. package/output/js/ff/core/String.mjs +2 -2
  89. package/output/js/ff/core/StringMap.mjs +2 -2
  90. package/output/js/ff/core/Task.mjs +2 -10
  91. package/output/js/ff/core/Try.mjs +2 -2
  92. package/output/js/ff/core/Unit.mjs +2 -2
  93. package/package.json +1 -1
  94. package/postgresql/Pg.ff +0 -40
  95. package/s3/S3.ff +4 -4
  96. package/vscode/package.json +1 -1
  97. package/output/js/ff/core/Instant.mjs +0 -149
  98. /package/fireflysite/assets/markdown/scratch/{Toc.md → toc.md} +0 -0
@@ -28,6 +28,8 @@ import * as ff_core_Core from "../../ff/core/Core.mjs"
28
28
 
29
29
  import * as ff_core_Crypto from "../../ff/core/Crypto.mjs"
30
30
 
31
+ import * as ff_core_Date from "../../ff/core/Date.mjs"
32
+
31
33
  import * as ff_core_Duration from "../../ff/core/Duration.mjs"
32
34
 
33
35
  import * as ff_core_Equal from "../../ff/core/Equal.mjs"
@@ -40,8 +42,6 @@ import * as ff_core_Float from "../../ff/core/Float.mjs"
40
42
 
41
43
  import * as ff_core_HttpClient from "../../ff/core/HttpClient.mjs"
42
44
 
43
- import * as ff_core_Instant from "../../ff/core/Instant.mjs"
44
-
45
45
  import * as ff_core_Int from "../../ff/core/Int.mjs"
46
46
 
47
47
  import * as ff_core_IntMap from "../../ff/core/IntMap.mjs"
@@ -32,6 +32,8 @@ import * as ff_core_Core from "../../ff/core/Core.mjs"
32
32
 
33
33
  import * as ff_core_Crypto from "../../ff/core/Crypto.mjs"
34
34
 
35
+ import * as ff_core_Date from "../../ff/core/Date.mjs"
36
+
35
37
  import * as ff_core_Duration from "../../ff/core/Duration.mjs"
36
38
 
37
39
  import * as ff_core_Equal from "../../ff/core/Equal.mjs"
@@ -44,8 +46,6 @@ import * as ff_core_Float from "../../ff/core/Float.mjs"
44
46
 
45
47
  import * as ff_core_HttpClient from "../../ff/core/HttpClient.mjs"
46
48
 
47
- import * as ff_core_Instant from "../../ff/core/Instant.mjs"
48
-
49
49
  import * as ff_core_Int from "../../ff/core/Int.mjs"
50
50
 
51
51
  import * as ff_core_IntMap from "../../ff/core/IntMap.mjs"
@@ -52,6 +52,8 @@ import * as ff_core_Core from "../../ff/core/Core.mjs"
52
52
 
53
53
  import * as ff_core_Crypto from "../../ff/core/Crypto.mjs"
54
54
 
55
+ import * as ff_core_Date from "../../ff/core/Date.mjs"
56
+
55
57
  import * as ff_core_Duration from "../../ff/core/Duration.mjs"
56
58
 
57
59
  import * as ff_core_Equal from "../../ff/core/Equal.mjs"
@@ -64,8 +66,6 @@ import * as ff_core_Float from "../../ff/core/Float.mjs"
64
66
 
65
67
  import * as ff_core_HttpClient from "../../ff/core/HttpClient.mjs"
66
68
 
67
- import * as ff_core_Instant from "../../ff/core/Instant.mjs"
68
-
69
69
  import * as ff_core_Int from "../../ff/core/Int.mjs"
70
70
 
71
71
  import * as ff_core_IntMap from "../../ff/core/IntMap.mjs"
@@ -28,6 +28,8 @@ import * as ff_core_Core from "../../ff/core/Core.mjs"
28
28
 
29
29
  import * as ff_core_Crypto from "../../ff/core/Crypto.mjs"
30
30
 
31
+ import * as ff_core_Date from "../../ff/core/Date.mjs"
32
+
31
33
  import * as ff_core_Duration from "../../ff/core/Duration.mjs"
32
34
 
33
35
  import * as ff_core_Equal from "../../ff/core/Equal.mjs"
@@ -40,8 +42,6 @@ import * as ff_core_Float from "../../ff/core/Float.mjs"
40
42
 
41
43
  import * as ff_core_HttpClient from "../../ff/core/HttpClient.mjs"
42
44
 
43
- import * as ff_core_Instant from "../../ff/core/Instant.mjs"
44
-
45
45
  import * as ff_core_Int from "../../ff/core/Int.mjs"
46
46
 
47
47
  import * as ff_core_IntMap from "../../ff/core/IntMap.mjs"
@@ -34,6 +34,8 @@ import * as ff_core_Core from "../../ff/core/Core.mjs"
34
34
 
35
35
  import * as ff_core_Crypto from "../../ff/core/Crypto.mjs"
36
36
 
37
+ import * as ff_core_Date from "../../ff/core/Date.mjs"
38
+
37
39
  import * as ff_core_Duration from "../../ff/core/Duration.mjs"
38
40
 
39
41
  import * as ff_core_Equal from "../../ff/core/Equal.mjs"
@@ -46,8 +48,6 @@ import * as ff_core_Float from "../../ff/core/Float.mjs"
46
48
 
47
49
  import * as ff_core_HttpClient from "../../ff/core/HttpClient.mjs"
48
50
 
49
- import * as ff_core_Instant from "../../ff/core/Instant.mjs"
50
-
51
51
  import * as ff_core_Int from "../../ff/core/Int.mjs"
52
52
 
53
53
  import * as ff_core_IntMap from "../../ff/core/IntMap.mjs"
@@ -28,6 +28,8 @@ import * as ff_core_Core from "../../ff/core/Core.mjs"
28
28
 
29
29
  import * as ff_core_Crypto from "../../ff/core/Crypto.mjs"
30
30
 
31
+ import * as ff_core_Date from "../../ff/core/Date.mjs"
32
+
31
33
  import * as ff_core_Duration from "../../ff/core/Duration.mjs"
32
34
 
33
35
  import * as ff_core_Equal from "../../ff/core/Equal.mjs"
@@ -40,8 +42,6 @@ import * as ff_core_Float from "../../ff/core/Float.mjs"
40
42
 
41
43
  import * as ff_core_HttpClient from "../../ff/core/HttpClient.mjs"
42
44
 
43
- import * as ff_core_Instant from "../../ff/core/Instant.mjs"
44
-
45
45
  import * as ff_core_Int from "../../ff/core/Int.mjs"
46
46
 
47
47
  import * as ff_core_IntMap from "../../ff/core/IntMap.mjs"
@@ -30,6 +30,8 @@ import * as ff_core_Core from "../../ff/core/Core.mjs"
30
30
 
31
31
  import * as ff_core_Crypto from "../../ff/core/Crypto.mjs"
32
32
 
33
+ import * as ff_core_Date from "../../ff/core/Date.mjs"
34
+
33
35
  import * as ff_core_Duration from "../../ff/core/Duration.mjs"
34
36
 
35
37
  import * as ff_core_Equal from "../../ff/core/Equal.mjs"
@@ -42,8 +44,6 @@ import * as ff_core_Float from "../../ff/core/Float.mjs"
42
44
 
43
45
  import * as ff_core_HttpClient from "../../ff/core/HttpClient.mjs"
44
46
 
45
- import * as ff_core_Instant from "../../ff/core/Instant.mjs"
46
-
47
47
  import * as ff_core_Int from "../../ff/core/Int.mjs"
48
48
 
49
49
  import * as ff_core_IntMap from "../../ff/core/IntMap.mjs"
@@ -28,6 +28,8 @@ import * as ff_core_Core from "../../ff/core/Core.mjs"
28
28
 
29
29
  import * as ff_core_Crypto from "../../ff/core/Crypto.mjs"
30
30
 
31
+ import * as ff_core_Date from "../../ff/core/Date.mjs"
32
+
31
33
  import * as ff_core_Duration from "../../ff/core/Duration.mjs"
32
34
 
33
35
  import * as ff_core_Equal from "../../ff/core/Equal.mjs"
@@ -40,8 +42,6 @@ import * as ff_core_Float from "../../ff/core/Float.mjs"
40
42
 
41
43
  import * as ff_core_HttpClient from "../../ff/core/HttpClient.mjs"
42
44
 
43
- import * as ff_core_Instant from "../../ff/core/Instant.mjs"
44
-
45
45
  import * as ff_core_Int from "../../ff/core/Int.mjs"
46
46
 
47
47
  import * as ff_core_IntMap from "../../ff/core/IntMap.mjs"
@@ -26,6 +26,8 @@ import * as ff_core_Core from "../../ff/core/Core.mjs"
26
26
 
27
27
  import * as ff_core_Crypto from "../../ff/core/Crypto.mjs"
28
28
 
29
+ import * as ff_core_Date from "../../ff/core/Date.mjs"
30
+
29
31
  import * as ff_core_Duration from "../../ff/core/Duration.mjs"
30
32
 
31
33
  import * as ff_core_Equal from "../../ff/core/Equal.mjs"
@@ -38,8 +40,6 @@ import * as ff_core_Float from "../../ff/core/Float.mjs"
38
40
 
39
41
  import * as ff_core_HttpClient from "../../ff/core/HttpClient.mjs"
40
42
 
41
- import * as ff_core_Instant from "../../ff/core/Instant.mjs"
42
-
43
43
  import * as ff_core_Int from "../../ff/core/Int.mjs"
44
44
 
45
45
  import * as ff_core_IntMap from "../../ff/core/IntMap.mjs"
@@ -28,6 +28,8 @@ import * as ff_core_Core from "../../ff/core/Core.mjs"
28
28
 
29
29
  import * as ff_core_Crypto from "../../ff/core/Crypto.mjs"
30
30
 
31
+ import * as ff_core_Date from "../../ff/core/Date.mjs"
32
+
31
33
  import * as ff_core_Duration from "../../ff/core/Duration.mjs"
32
34
 
33
35
  import * as ff_core_Equal from "../../ff/core/Equal.mjs"
@@ -40,8 +42,6 @@ import * as ff_core_Float from "../../ff/core/Float.mjs"
40
42
 
41
43
  import * as ff_core_HttpClient from "../../ff/core/HttpClient.mjs"
42
44
 
43
- import * as ff_core_Instant from "../../ff/core/Instant.mjs"
44
-
45
45
  import * as ff_core_Int from "../../ff/core/Int.mjs"
46
46
 
47
47
  import * as ff_core_IntMap from "../../ff/core/IntMap.mjs"
@@ -32,6 +32,8 @@ import * as ff_core_Core from "../../ff/core/Core.mjs"
32
32
 
33
33
  import * as ff_core_Crypto from "../../ff/core/Crypto.mjs"
34
34
 
35
+ import * as ff_core_Date from "../../ff/core/Date.mjs"
36
+
35
37
  import * as ff_core_Duration from "../../ff/core/Duration.mjs"
36
38
 
37
39
  import * as ff_core_Equal from "../../ff/core/Equal.mjs"
@@ -44,8 +46,6 @@ import * as ff_core_Float from "../../ff/core/Float.mjs"
44
46
 
45
47
  import * as ff_core_HttpClient from "../../ff/core/HttpClient.mjs"
46
48
 
47
- import * as ff_core_Instant from "../../ff/core/Instant.mjs"
48
-
49
49
  import * as ff_core_Int from "../../ff/core/Int.mjs"
50
50
 
51
51
  import * as ff_core_IntMap from "../../ff/core/IntMap.mjs"
@@ -30,6 +30,8 @@ import * as ff_core_Core from "../../ff/core/Core.mjs"
30
30
 
31
31
  import * as ff_core_Crypto from "../../ff/core/Crypto.mjs"
32
32
 
33
+ import * as ff_core_Date from "../../ff/core/Date.mjs"
34
+
33
35
  import * as ff_core_Duration from "../../ff/core/Duration.mjs"
34
36
 
35
37
  import * as ff_core_Equal from "../../ff/core/Equal.mjs"
@@ -42,8 +44,6 @@ import * as ff_core_Float from "../../ff/core/Float.mjs"
42
44
 
43
45
  import * as ff_core_HttpClient from "../../ff/core/HttpClient.mjs"
44
46
 
45
- import * as ff_core_Instant from "../../ff/core/Instant.mjs"
46
-
47
47
  import * as ff_core_Int from "../../ff/core/Int.mjs"
48
48
 
49
49
  import * as ff_core_IntMap from "../../ff/core/IntMap.mjs"
@@ -28,6 +28,8 @@ import * as ff_core_Core from "../../ff/core/Core.mjs"
28
28
 
29
29
  import * as ff_core_Crypto from "../../ff/core/Crypto.mjs"
30
30
 
31
+ import * as ff_core_Date from "../../ff/core/Date.mjs"
32
+
31
33
  import * as ff_core_Duration from "../../ff/core/Duration.mjs"
32
34
 
33
35
  import * as ff_core_Equal from "../../ff/core/Equal.mjs"
@@ -40,8 +42,6 @@ import * as ff_core_Float from "../../ff/core/Float.mjs"
40
42
 
41
43
  import * as ff_core_HttpClient from "../../ff/core/HttpClient.mjs"
42
44
 
43
- import * as ff_core_Instant from "../../ff/core/Instant.mjs"
44
-
45
45
  import * as ff_core_Int from "../../ff/core/Int.mjs"
46
46
 
47
47
  import * as ff_core_IntMap from "../../ff/core/IntMap.mjs"
@@ -28,6 +28,8 @@ import * as ff_core_Core from "../../ff/core/Core.mjs"
28
28
 
29
29
  import * as ff_core_Crypto from "../../ff/core/Crypto.mjs"
30
30
 
31
+ import * as ff_core_Date from "../../ff/core/Date.mjs"
32
+
31
33
  import * as ff_core_Duration from "../../ff/core/Duration.mjs"
32
34
 
33
35
  import * as ff_core_Equal from "../../ff/core/Equal.mjs"
@@ -40,8 +42,6 @@ import * as ff_core_Float from "../../ff/core/Float.mjs"
40
42
 
41
43
  import * as ff_core_HttpClient from "../../ff/core/HttpClient.mjs"
42
44
 
43
- import * as ff_core_Instant from "../../ff/core/Instant.mjs"
44
-
45
45
  import * as ff_core_Int from "../../ff/core/Int.mjs"
46
46
 
47
47
  import * as ff_core_IntMap from "../../ff/core/IntMap.mjs"
@@ -24,6 +24,8 @@ import * as ff_core_Core from "../../ff/core/Core.mjs"
24
24
 
25
25
  import * as ff_core_Crypto from "../../ff/core/Crypto.mjs"
26
26
 
27
+ import * as ff_core_Date from "../../ff/core/Date.mjs"
28
+
27
29
  import * as ff_core_Duration from "../../ff/core/Duration.mjs"
28
30
 
29
31
  import * as ff_core_Equal from "../../ff/core/Equal.mjs"
@@ -36,8 +38,6 @@ import * as ff_core_Float from "../../ff/core/Float.mjs"
36
38
 
37
39
  import * as ff_core_HttpClient from "../../ff/core/HttpClient.mjs"
38
40
 
39
- import * as ff_core_Instant from "../../ff/core/Instant.mjs"
40
-
41
41
  import * as ff_core_Int from "../../ff/core/Int.mjs"
42
42
 
43
43
  import * as ff_core_IntMap from "../../ff/core/IntMap.mjs"
@@ -24,6 +24,8 @@ import * as ff_core_Core from "../../ff/core/Core.mjs"
24
24
 
25
25
  import * as ff_core_Crypto from "../../ff/core/Crypto.mjs"
26
26
 
27
+ import * as ff_core_Date from "../../ff/core/Date.mjs"
28
+
27
29
  import * as ff_core_Duration from "../../ff/core/Duration.mjs"
28
30
 
29
31
  import * as ff_core_Equal from "../../ff/core/Equal.mjs"
@@ -36,8 +38,6 @@ import * as ff_core_Float from "../../ff/core/Float.mjs"
36
38
 
37
39
  import * as ff_core_HttpClient from "../../ff/core/HttpClient.mjs"
38
40
 
39
- import * as ff_core_Instant from "../../ff/core/Instant.mjs"
40
-
41
41
  import * as ff_core_Int from "../../ff/core/Int.mjs"
42
42
 
43
43
  import * as ff_core_IntMap from "../../ff/core/IntMap.mjs"
@@ -24,6 +24,8 @@ import * as ff_core_Core from "../../ff/core/Core.mjs"
24
24
 
25
25
  import * as ff_core_Crypto from "../../ff/core/Crypto.mjs"
26
26
 
27
+ import * as ff_core_Date from "../../ff/core/Date.mjs"
28
+
27
29
  import * as ff_core_Duration from "../../ff/core/Duration.mjs"
28
30
 
29
31
  import * as ff_core_Equal from "../../ff/core/Equal.mjs"
@@ -36,8 +38,6 @@ import * as ff_core_Float from "../../ff/core/Float.mjs"
36
38
 
37
39
  import * as ff_core_HttpClient from "../../ff/core/HttpClient.mjs"
38
40
 
39
- import * as ff_core_Instant from "../../ff/core/Instant.mjs"
40
-
41
41
  import * as ff_core_Int from "../../ff/core/Int.mjs"
42
42
 
43
43
  import * as ff_core_IntMap from "../../ff/core/IntMap.mjs"
@@ -24,6 +24,8 @@ import * as ff_core_Core from "../../ff/core/Core.mjs"
24
24
 
25
25
  import * as ff_core_Crypto from "../../ff/core/Crypto.mjs"
26
26
 
27
+ import * as ff_core_Date from "../../ff/core/Date.mjs"
28
+
27
29
  import * as ff_core_Duration from "../../ff/core/Duration.mjs"
28
30
 
29
31
  import * as ff_core_Equal from "../../ff/core/Equal.mjs"
@@ -36,8 +38,6 @@ import * as ff_core_Float from "../../ff/core/Float.mjs"
36
38
 
37
39
  import * as ff_core_HttpClient from "../../ff/core/HttpClient.mjs"
38
40
 
39
- import * as ff_core_Instant from "../../ff/core/Instant.mjs"
40
-
41
41
  import * as ff_core_Int from "../../ff/core/Int.mjs"
42
42
 
43
43
  import * as ff_core_IntMap from "../../ff/core/IntMap.mjs"
@@ -24,6 +24,8 @@ import * as ff_core_Core from "../../ff/core/Core.mjs"
24
24
 
25
25
  import * as ff_core_Crypto from "../../ff/core/Crypto.mjs"
26
26
 
27
+ import * as ff_core_Date from "../../ff/core/Date.mjs"
28
+
27
29
  import * as ff_core_Duration from "../../ff/core/Duration.mjs"
28
30
 
29
31
  import * as ff_core_Equal from "../../ff/core/Equal.mjs"
@@ -36,8 +38,6 @@ import * as ff_core_Float from "../../ff/core/Float.mjs"
36
38
 
37
39
  import * as ff_core_HttpClient from "../../ff/core/HttpClient.mjs"
38
40
 
39
- import * as ff_core_Instant from "../../ff/core/Instant.mjs"
40
-
41
41
  import * as ff_core_Int from "../../ff/core/Int.mjs"
42
42
 
43
43
  import * as ff_core_IntMap from "../../ff/core/IntMap.mjs"
@@ -24,6 +24,8 @@ import * as ff_core_Core from "../../ff/core/Core.mjs"
24
24
 
25
25
  import * as ff_core_Crypto from "../../ff/core/Crypto.mjs"
26
26
 
27
+ import * as ff_core_Date from "../../ff/core/Date.mjs"
28
+
27
29
  import * as ff_core_Duration from "../../ff/core/Duration.mjs"
28
30
 
29
31
  import * as ff_core_Equal from "../../ff/core/Equal.mjs"
@@ -36,8 +38,6 @@ import * as ff_core_Float from "../../ff/core/Float.mjs"
36
38
 
37
39
  import * as ff_core_HttpClient from "../../ff/core/HttpClient.mjs"
38
40
 
39
- import * as ff_core_Instant from "../../ff/core/Instant.mjs"
40
-
41
41
  import * as ff_core_Int from "../../ff/core/Int.mjs"
42
42
 
43
43
  import * as ff_core_IntMap from "../../ff/core/IntMap.mjs"
@@ -119,6 +119,19 @@ export function BrowserSystem_js(self_) {
119
119
  return globalThis
120
120
  }
121
121
 
122
+ export function BrowserSystem_date(self_, timeZoneId_ = ff_core_Option.None(), calendarId_ = ff_core_Date.isoCalendarId_) {
123
+ const date_ = Temporal.Now.zonedDateTimeISO(ff_core_Option.Option_else(ff_core_Option.Option_map(timeZoneId_, ((_w1) => {
124
+ return _w1
125
+ })), (() => {
126
+ return (void 0)
127
+ })));
128
+ if((calendarId_ === ff_core_Date.isoCalendarId_)) {
129
+ return date_
130
+ } else {
131
+ return ff_core_Date.Date_withCalendar(date_, calendarId_)
132
+ }
133
+ }
134
+
122
135
  export function BrowserSystem_url(self_) {
123
136
  return location.href
124
137
  }
@@ -160,6 +173,19 @@ export async function BrowserSystem_js$(self_, $task) {
160
173
  return globalThis
161
174
  }
162
175
 
176
+ export async function BrowserSystem_date$(self_, timeZoneId_ = ff_core_Option.None(), calendarId_ = ff_core_Date.isoCalendarId_, $task) {
177
+ const date_ = Temporal.Now.zonedDateTimeISO(ff_core_Option.Option_else(ff_core_Option.Option_map(timeZoneId_, ((_w1) => {
178
+ return _w1
179
+ })), (() => {
180
+ return (void 0)
181
+ })));
182
+ if((calendarId_ === ff_core_Date.isoCalendarId_)) {
183
+ return date_
184
+ } else {
185
+ return ff_core_Date.Date_withCalendar(date_, calendarId_)
186
+ }
187
+ }
188
+
163
189
  export async function BrowserSystem_url$(self_, $task) {
164
190
  return location.href
165
191
  }
@@ -24,6 +24,8 @@ import * as ff_core_Core from "../../ff/core/Core.mjs"
24
24
 
25
25
  import * as ff_core_Crypto from "../../ff/core/Crypto.mjs"
26
26
 
27
+ import * as ff_core_Date from "../../ff/core/Date.mjs"
28
+
27
29
  import * as ff_core_Duration from "../../ff/core/Duration.mjs"
28
30
 
29
31
  import * as ff_core_Equal from "../../ff/core/Equal.mjs"
@@ -36,8 +38,6 @@ import * as ff_core_Float from "../../ff/core/Float.mjs"
36
38
 
37
39
  import * as ff_core_HttpClient from "../../ff/core/HttpClient.mjs"
38
40
 
39
- import * as ff_core_Instant from "../../ff/core/Instant.mjs"
40
-
41
41
  import * as ff_core_Int from "../../ff/core/Int.mjs"
42
42
 
43
43
  import * as ff_core_IntMap from "../../ff/core/IntMap.mjs"
@@ -26,6 +26,8 @@ import * as ff_core_Core from "../../ff/core/Core.mjs"
26
26
 
27
27
  import * as ff_core_Crypto from "../../ff/core/Crypto.mjs"
28
28
 
29
+ import * as ff_core_Date from "../../ff/core/Date.mjs"
30
+
29
31
  import * as ff_core_Duration from "../../ff/core/Duration.mjs"
30
32
 
31
33
  import * as ff_core_Equal from "../../ff/core/Equal.mjs"
@@ -38,8 +40,6 @@ import * as ff_core_Float from "../../ff/core/Float.mjs"
38
40
 
39
41
  import * as ff_core_HttpClient from "../../ff/core/HttpClient.mjs"
40
42
 
41
- import * as ff_core_Instant from "../../ff/core/Instant.mjs"
42
-
43
43
  import * as ff_core_Int from "../../ff/core/Int.mjs"
44
44
 
45
45
  import * as ff_core_IntMap from "../../ff/core/IntMap.mjs"
@@ -24,6 +24,8 @@ import * as ff_core_Core from "../../ff/core/Core.mjs"
24
24
 
25
25
  import * as ff_core_Crypto from "../../ff/core/Crypto.mjs"
26
26
 
27
+ import * as ff_core_Date from "../../ff/core/Date.mjs"
28
+
27
29
  import * as ff_core_Duration from "../../ff/core/Duration.mjs"
28
30
 
29
31
  import * as ff_core_Equal from "../../ff/core/Equal.mjs"
@@ -36,8 +38,6 @@ import * as ff_core_Float from "../../ff/core/Float.mjs"
36
38
 
37
39
  import * as ff_core_HttpClient from "../../ff/core/HttpClient.mjs"
38
40
 
39
- import * as ff_core_Instant from "../../ff/core/Instant.mjs"
40
-
41
41
  import * as ff_core_Int from "../../ff/core/Int.mjs"
42
42
 
43
43
  import * as ff_core_IntMap from "../../ff/core/IntMap.mjs"
@@ -24,6 +24,8 @@ import * as ff_core_Core from "../../ff/core/Core.mjs"
24
24
 
25
25
  import * as ff_core_Crypto from "../../ff/core/Crypto.mjs"
26
26
 
27
+ import * as ff_core_Date from "../../ff/core/Date.mjs"
28
+
27
29
  import * as ff_core_Duration from "../../ff/core/Duration.mjs"
28
30
 
29
31
  import * as ff_core_Equal from "../../ff/core/Equal.mjs"
@@ -36,8 +38,6 @@ import * as ff_core_Float from "../../ff/core/Float.mjs"
36
38
 
37
39
  import * as ff_core_HttpClient from "../../ff/core/HttpClient.mjs"
38
40
 
39
- import * as ff_core_Instant from "../../ff/core/Instant.mjs"
40
-
41
41
  import * as ff_core_Int from "../../ff/core/Int.mjs"
42
42
 
43
43
  import * as ff_core_IntMap from "../../ff/core/IntMap.mjs"
@@ -24,6 +24,8 @@ import * as ff_core_Core from "../../ff/core/Core.mjs"
24
24
 
25
25
  import * as ff_core_Crypto from "../../ff/core/Crypto.mjs"
26
26
 
27
+ import * as ff_core_Date from "../../ff/core/Date.mjs"
28
+
27
29
  import * as ff_core_Duration from "../../ff/core/Duration.mjs"
28
30
 
29
31
  import * as ff_core_Equal from "../../ff/core/Equal.mjs"
@@ -36,8 +38,6 @@ import * as ff_core_Float from "../../ff/core/Float.mjs"
36
38
 
37
39
  import * as ff_core_HttpClient from "../../ff/core/HttpClient.mjs"
38
40
 
39
- import * as ff_core_Instant from "../../ff/core/Instant.mjs"
40
-
41
41
  import * as ff_core_Int from "../../ff/core/Int.mjs"
42
42
 
43
43
  import * as ff_core_IntMap from "../../ff/core/IntMap.mjs"
@@ -24,6 +24,8 @@ import * as ff_core_Core from "../../ff/core/Core.mjs"
24
24
 
25
25
  import * as ff_core_Crypto from "../../ff/core/Crypto.mjs"
26
26
 
27
+ import * as ff_core_Date from "../../ff/core/Date.mjs"
28
+
27
29
  import * as ff_core_Duration from "../../ff/core/Duration.mjs"
28
30
 
29
31
  import * as ff_core_Equal from "../../ff/core/Equal.mjs"
@@ -36,8 +38,6 @@ import * as ff_core_Float from "../../ff/core/Float.mjs"
36
38
 
37
39
  import * as ff_core_HttpClient from "../../ff/core/HttpClient.mjs"
38
40
 
39
- import * as ff_core_Instant from "../../ff/core/Instant.mjs"
40
-
41
41
  import * as ff_core_Int from "../../ff/core/Int.mjs"
42
42
 
43
43
  import * as ff_core_IntMap from "../../ff/core/IntMap.mjs"