compostjs 0.0.8 → 0.0.12
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.
- package/README.md +4 -4
- package/dist/fable_modules/fable-library-js.4.28.0/Array.d.ts +123 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Array.js +1242 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Async.d.ts +26 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Async.js +145 -0
- package/dist/fable_modules/fable-library-js.4.28.0/AsyncBuilder.d.ts +59 -0
- package/dist/fable_modules/fable-library-js.4.28.0/AsyncBuilder.js +183 -0
- package/dist/fable_modules/fable-library-js.4.28.0/BigInt.d.ts +115 -0
- package/dist/fable_modules/fable-library-js.4.28.0/BigInt.js +283 -0
- package/dist/fable_modules/fable-library-js.4.28.0/BitConverter.d.ts +27 -0
- package/dist/fable_modules/fable-library-js.4.28.0/BitConverter.js +138 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Boolean.d.ts +3 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Boolean.js +21 -0
- package/dist/fable_modules/fable-library-js.4.28.0/CHANGELOG.md +100 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Char.d.ts +65 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Char.js +169 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Choice.d.ts +121 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Choice.js +184 -0
- package/dist/fable_modules/fable-library-js.4.28.0/CollectionUtil.d.ts +7 -0
- package/dist/fable_modules/fable-library-js.4.28.0/CollectionUtil.js +182 -0
- package/dist/fable_modules/fable-library-js.4.28.0/ConditionalWeakTable.d.ts +9 -0
- package/dist/fable_modules/fable-library-js.4.28.0/ConditionalWeakTable.js +21 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Date.d.ts +70 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Date.js +748 -0
- package/dist/fable_modules/fable-library-js.4.28.0/DateOffset.d.ts +63 -0
- package/dist/fable_modules/fable-library-js.4.28.0/DateOffset.js +268 -0
- package/dist/fable_modules/fable-library-js.4.28.0/DateOnly.d.ts +18 -0
- package/dist/fable_modules/fable-library-js.4.28.0/DateOnly.js +124 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Decimal.d.ts +45 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Decimal.js +212 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Double.d.ts +11 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Double.js +46 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Encoding.d.ts +12 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Encoding.js +173 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Event.d.ts +31 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Event.js +93 -0
- package/dist/fable_modules/fable-library-js.4.28.0/FSharp.Collections.d.ts +7 -0
- package/dist/fable_modules/fable-library-js.4.28.0/FSharp.Collections.js +27 -0
- package/dist/fable_modules/fable-library-js.4.28.0/FSharp.Core.CompilerServices.d.ts +12 -0
- package/dist/fable_modules/fable-library-js.4.28.0/FSharp.Core.CompilerServices.js +27 -0
- package/dist/fable_modules/fable-library-js.4.28.0/FSharp.Core.d.ts +17 -0
- package/dist/fable_modules/fable-library-js.4.28.0/FSharp.Core.js +69 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Global.d.ts +24 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Global.js +8 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Guid.d.ts +10 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Guid.js +142 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Int32.d.ts +28 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Int32.js +135 -0
- package/dist/fable_modules/fable-library-js.4.28.0/List.d.ts +143 -0
- package/dist/fable_modules/fable-library-js.4.28.0/List.js +1273 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Long.d.ts +3 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Long.js +46 -0
- package/dist/fable_modules/fable-library-js.4.28.0/MailboxProcessor.d.ts +25 -0
- package/dist/fable_modules/fable-library-js.4.28.0/MailboxProcessor.js +93 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Map.d.ts +178 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Map.js +1396 -0
- package/dist/fable_modules/fable-library-js.4.28.0/MapUtil.d.ts +12 -0
- package/dist/fable_modules/fable-library-js.4.28.0/MapUtil.js +127 -0
- package/dist/fable_modules/fable-library-js.4.28.0/MutableMap.d.ts +52 -0
- package/dist/fable_modules/fable-library-js.4.28.0/MutableMap.js +327 -0
- package/dist/fable_modules/fable-library-js.4.28.0/MutableSet.d.ts +39 -0
- package/dist/fable_modules/fable-library-js.4.28.0/MutableSet.js +233 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Native.d.ts +2 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Native.js +8 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Numeric.d.ts +19 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Numeric.js +71 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Observable.d.ts +32 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Observable.js +113 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Option.d.ts +28 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Option.js +96 -0
- package/dist/fable_modules/fable-library-js.4.28.0/README.md +3 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Random.d.ts +37 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Random.js +170 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Range.d.ts +12 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Range.js +45 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Reflection.d.ts +119 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Reflection.js +461 -0
- package/dist/fable_modules/fable-library-js.4.28.0/RegExp.d.ts +10 -0
- package/dist/fable_modules/fable-library-js.4.28.0/RegExp.js +131 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Result.d.ts +37 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Result.js +165 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Seq.d.ts +165 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Seq.js +1378 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Seq2.d.ts +18 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Seq2.js +111 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Set.d.ts +190 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Set.js +1789 -0
- package/dist/fable_modules/fable-library-js.4.28.0/String.d.ts +58 -0
- package/dist/fable_modules/fable-library-js.4.28.0/String.js +554 -0
- package/dist/fable_modules/fable-library-js.4.28.0/System.Collections.Generic.d.ts +79 -0
- package/dist/fable_modules/fable-library-js.4.28.0/System.Collections.Generic.js +317 -0
- package/dist/fable_modules/fable-library-js.4.28.0/System.Text.d.ts +38 -0
- package/dist/fable_modules/fable-library-js.4.28.0/System.Text.js +162 -0
- package/dist/fable_modules/fable-library-js.4.28.0/SystemException.d.ts +5 -0
- package/dist/fable_modules/fable-library-js.4.28.0/SystemException.js +5 -0
- package/dist/fable_modules/fable-library-js.4.28.0/TimeOnly.d.ts +15 -0
- package/dist/fable_modules/fable-library-js.4.28.0/TimeOnly.js +122 -0
- package/dist/fable_modules/fable-library-js.4.28.0/TimeSpan.d.ts +34 -0
- package/dist/fable_modules/fable-library-js.4.28.0/TimeSpan.js +177 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Timer.d.ts +19 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Timer.js +67 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Types.d.ts +58 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Types.js +208 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Unicode.13.0.0.d.ts +2 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Unicode.13.0.0.js +4 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Uri.d.ts +31 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Uri.js +159 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Util.d.ts +210 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Util.js +769 -0
- package/dist/fable_modules/fable-library-js.4.28.0/big.d.ts +338 -0
- package/dist/fable_modules/fable-library-js.4.28.0/lib/big.d.ts +5 -0
- package/dist/fable_modules/fable-library-js.4.28.0/lib/big.js +825 -0
- package/dist/fable_modules/fable-library-js.4.28.0/package.json +24 -0
- package/dist/fable_modules/project_cracked.json +1 -0
- package/package.json +6 -5
- package/.claude/settings.local.json +0 -11
- package/dist/fable-library.2.10.1/Array.js +0 -1336
- package/dist/fable-library.2.10.1/Async.js +0 -121
- package/dist/fable-library.2.10.1/AsyncBuilder.js +0 -200
- package/dist/fable-library.2.10.1/Date.js +0 -501
- package/dist/fable-library.2.10.1/Decimal.js +0 -208
- package/dist/fable-library.2.10.1/Event.js +0 -193
- package/dist/fable-library.2.10.1/Int32.js +0 -157
- package/dist/fable-library.2.10.1/List.js +0 -1234
- package/dist/fable-library.2.10.1/Long.js +0 -155
- package/dist/fable-library.2.10.1/Map.js +0 -1292
- package/dist/fable-library.2.10.1/MutableMap.js +0 -360
- package/dist/fable-library.2.10.1/MutableSet.js +0 -279
- package/dist/fable-library.2.10.1/Observable.js +0 -131
- package/dist/fable-library.2.10.1/Option.js +0 -118
- package/dist/fable-library.2.10.1/Reflection.js +0 -345
- package/dist/fable-library.2.10.1/RegExp.js +0 -118
- package/dist/fable-library.2.10.1/Seq.js +0 -917
- package/dist/fable-library.2.10.1/Set.js +0 -1692
- package/dist/fable-library.2.10.1/String.js +0 -679
- package/dist/fable-library.2.10.1/Types.js +0 -308
- package/dist/fable-library.2.10.1/Util.js +0 -761
- package/dist/helpers.js +0 -31
- package/dist/lib/big.js +0 -905
- package/dist/lib/long.js +0 -1375
- package/index.html +0 -49
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { FSharpRef } from "./Types.js";
|
|
2
|
+
import { comparePrimitives } from "./Util.js";
|
|
3
|
+
export type TimeSpan = number;
|
|
4
|
+
export declare function create(d?: number, h?: number, m?: number, s?: number, ms?: number): number;
|
|
5
|
+
export declare function fromTicks(ticks: number | bigint): number;
|
|
6
|
+
export declare function fromDays(d: number): number;
|
|
7
|
+
export declare function fromHours(h: number): number;
|
|
8
|
+
export declare function fromMinutes(m: number): number;
|
|
9
|
+
export declare function fromSeconds(s: number): number;
|
|
10
|
+
export declare function days(ts: TimeSpan): number;
|
|
11
|
+
export declare function hours(ts: TimeSpan): number;
|
|
12
|
+
export declare function minutes(ts: TimeSpan): number;
|
|
13
|
+
export declare function seconds(ts: TimeSpan): number;
|
|
14
|
+
export declare function milliseconds(ts: TimeSpan): number;
|
|
15
|
+
export declare function ticks(ts: TimeSpan): bigint;
|
|
16
|
+
export declare function totalDays(ts: TimeSpan): number;
|
|
17
|
+
export declare function totalHours(ts: TimeSpan): number;
|
|
18
|
+
export declare function totalMinutes(ts: TimeSpan): number;
|
|
19
|
+
export declare function totalSeconds(ts: TimeSpan): number;
|
|
20
|
+
export declare function negate(ts: TimeSpan): number;
|
|
21
|
+
export declare function add(ts1: number, ts2: number): number;
|
|
22
|
+
export declare function subtract(ts1: number, ts2: number): number;
|
|
23
|
+
export declare function multiply(ts: TimeSpan, factor: number): number;
|
|
24
|
+
export declare function divide(ts: TimeSpan, b: number): number;
|
|
25
|
+
export declare const op_Addition: typeof add;
|
|
26
|
+
export declare const op_Subtraction: typeof subtract;
|
|
27
|
+
export declare const op_Multiply: typeof multiply;
|
|
28
|
+
export declare const op_Division: typeof divide;
|
|
29
|
+
export declare const compare: typeof comparePrimitives;
|
|
30
|
+
export declare const compareTo: typeof comparePrimitives;
|
|
31
|
+
export declare function duration(x: number): number;
|
|
32
|
+
export declare function toString(ts: TimeSpan, format?: string, _provider?: any): string;
|
|
33
|
+
export declare function parse(str: string): number;
|
|
34
|
+
export declare function tryParse(v: string, defValue: FSharpRef<number>): boolean;
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
import { comparePrimitives, padLeftAndRightWithZeros, padWithZeros } from "./Util.js";
|
|
2
|
+
import { toInt64, fromFloat64 } from "./BigInt.js";
|
|
3
|
+
/**
|
|
4
|
+
* Calls:
|
|
5
|
+
* - `Math.ceil` if the `value` is **negative**
|
|
6
|
+
* - `Math.floor` if the `value` is **positive**
|
|
7
|
+
* @param value Value to round
|
|
8
|
+
*/
|
|
9
|
+
function signedRound(value) {
|
|
10
|
+
return value < 0 ? Math.ceil(value) : Math.floor(value);
|
|
11
|
+
}
|
|
12
|
+
export function create(d = 0, h = 0, m = 0, s = 0, ms = 0) {
|
|
13
|
+
switch (arguments.length) {
|
|
14
|
+
case 1:
|
|
15
|
+
// ticks
|
|
16
|
+
return fromTicks(arguments[0]);
|
|
17
|
+
case 3:
|
|
18
|
+
// h,m,s
|
|
19
|
+
d = 0, h = arguments[0], m = arguments[1], s = arguments[2], ms = 0;
|
|
20
|
+
break;
|
|
21
|
+
default:
|
|
22
|
+
// d,h,m,s,ms
|
|
23
|
+
break;
|
|
24
|
+
}
|
|
25
|
+
return d * 86400000 + h * 3600000 + m * 60000 + s * 1000 + ms;
|
|
26
|
+
}
|
|
27
|
+
export function fromTicks(ticks) {
|
|
28
|
+
return Number(BigInt(ticks) / 10000n);
|
|
29
|
+
}
|
|
30
|
+
export function fromDays(d) {
|
|
31
|
+
return create(d, 0, 0, 0);
|
|
32
|
+
}
|
|
33
|
+
export function fromHours(h) {
|
|
34
|
+
return create(h, 0, 0);
|
|
35
|
+
}
|
|
36
|
+
export function fromMinutes(m) {
|
|
37
|
+
return create(0, m, 0);
|
|
38
|
+
}
|
|
39
|
+
export function fromSeconds(s) {
|
|
40
|
+
return create(0, 0, s);
|
|
41
|
+
}
|
|
42
|
+
export function days(ts) {
|
|
43
|
+
return signedRound(ts / 86400000);
|
|
44
|
+
}
|
|
45
|
+
export function hours(ts) {
|
|
46
|
+
return signedRound(ts % 86400000 / 3600000);
|
|
47
|
+
}
|
|
48
|
+
export function minutes(ts) {
|
|
49
|
+
return signedRound(ts % 3600000 / 60000);
|
|
50
|
+
}
|
|
51
|
+
export function seconds(ts) {
|
|
52
|
+
return signedRound(ts % 60000 / 1000);
|
|
53
|
+
}
|
|
54
|
+
export function milliseconds(ts) {
|
|
55
|
+
return signedRound(ts % 1000);
|
|
56
|
+
}
|
|
57
|
+
export function ticks(ts) {
|
|
58
|
+
return toInt64(fromFloat64(ts * 10000));
|
|
59
|
+
}
|
|
60
|
+
export function totalDays(ts) {
|
|
61
|
+
return ts / 86400000;
|
|
62
|
+
}
|
|
63
|
+
export function totalHours(ts) {
|
|
64
|
+
return ts / 3600000;
|
|
65
|
+
}
|
|
66
|
+
export function totalMinutes(ts) {
|
|
67
|
+
return ts / 60000;
|
|
68
|
+
}
|
|
69
|
+
export function totalSeconds(ts) {
|
|
70
|
+
return ts / 1000;
|
|
71
|
+
}
|
|
72
|
+
export function negate(ts) {
|
|
73
|
+
return ts * -1;
|
|
74
|
+
}
|
|
75
|
+
export function add(ts1, ts2) {
|
|
76
|
+
return ts1 + ts2;
|
|
77
|
+
}
|
|
78
|
+
export function subtract(ts1, ts2) {
|
|
79
|
+
return ts1 - ts2;
|
|
80
|
+
}
|
|
81
|
+
export function multiply(ts, factor) {
|
|
82
|
+
return ts * factor;
|
|
83
|
+
}
|
|
84
|
+
export function divide(ts, b) {
|
|
85
|
+
return ts / b;
|
|
86
|
+
}
|
|
87
|
+
export const op_Addition = add;
|
|
88
|
+
export const op_Subtraction = subtract;
|
|
89
|
+
export const op_Multiply = multiply;
|
|
90
|
+
export const op_Division = divide;
|
|
91
|
+
export const compare = comparePrimitives;
|
|
92
|
+
export const compareTo = comparePrimitives;
|
|
93
|
+
export function duration(x) {
|
|
94
|
+
return Math.abs(x);
|
|
95
|
+
}
|
|
96
|
+
export function toString(ts, format = "c", _provider) {
|
|
97
|
+
if (["c", "g", "G"].indexOf(format) === -1) {
|
|
98
|
+
throw new Error("Custom formats are not supported");
|
|
99
|
+
}
|
|
100
|
+
const d = Math.abs(days(ts));
|
|
101
|
+
const h = Math.abs(hours(ts));
|
|
102
|
+
const m = Math.abs(minutes(ts));
|
|
103
|
+
const s = Math.abs(seconds(ts));
|
|
104
|
+
const ms = Math.abs(milliseconds(ts));
|
|
105
|
+
const sign = ts < 0 ? "-" : "";
|
|
106
|
+
return `${sign}${d === 0 && (format === "c" || format === "g") ? "" : format === "c" ? d + "." : d + ":"}${format === "g" ? h : padWithZeros(h, 2)}:${padWithZeros(m, 2)}:${padWithZeros(s, 2)}${ms === 0 && (format === "c" || format === "g") ? "" : format === "g" ? "." + padWithZeros(ms, 3) : "." + padLeftAndRightWithZeros(ms, 3, 7)}`;
|
|
107
|
+
}
|
|
108
|
+
export function parse(str) {
|
|
109
|
+
const firstDot = str.search("\\.");
|
|
110
|
+
const firstColon = str.search("\\:");
|
|
111
|
+
if (firstDot === -1 && firstColon === -1) { // There is only a day ex: 4
|
|
112
|
+
const d = parseInt(str, 0);
|
|
113
|
+
if (isNaN(d)) {
|
|
114
|
+
throw new Error(`String '${str}' was not recognized as a valid TimeSpan.`);
|
|
115
|
+
}
|
|
116
|
+
else {
|
|
117
|
+
return create(d, 0, 0, 0, 0);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
if (firstColon > 0) { // process time part
|
|
121
|
+
// WIP: (-?)(((\d+)\.)?([0-9]|0[0-9]|1[0-9]|2[0-3]):(\d+)(:\d+(\.\d{1,7})?)?|\d+(?:(?!\.)))
|
|
122
|
+
const r = /^(-?)((\d+)\.)?(?:0*)([0-9]|0[0-9]|1[0-9]|2[0-3]):(?:0*)([0-5][0-9]|[0-9])(:(?:0*)([0-5][0-9]|[0-9]))?\.?(\d+)?$/.exec(str);
|
|
123
|
+
if (r != null && r[4] != null && r[5] != null) {
|
|
124
|
+
let d = 0;
|
|
125
|
+
let ms = 0;
|
|
126
|
+
let s = 0;
|
|
127
|
+
const sign = r[1] != null && r[1] === "-" ? -1 : 1;
|
|
128
|
+
const h = +r[4];
|
|
129
|
+
const m = +r[5];
|
|
130
|
+
if (r[3] != null) {
|
|
131
|
+
d = +r[3];
|
|
132
|
+
}
|
|
133
|
+
if (r[7] != null) {
|
|
134
|
+
s = +r[7];
|
|
135
|
+
}
|
|
136
|
+
if (r[8] != null) {
|
|
137
|
+
// Depending on the number of decimals passed, we need to adapt the numbers
|
|
138
|
+
switch (r[8].length) {
|
|
139
|
+
case 1:
|
|
140
|
+
ms = +r[8] * 100;
|
|
141
|
+
break;
|
|
142
|
+
case 2:
|
|
143
|
+
ms = +r[8] * 10;
|
|
144
|
+
break;
|
|
145
|
+
case 3:
|
|
146
|
+
ms = +r[8];
|
|
147
|
+
break;
|
|
148
|
+
case 4:
|
|
149
|
+
ms = +r[8] / 10;
|
|
150
|
+
break;
|
|
151
|
+
case 5:
|
|
152
|
+
ms = +r[8] / 100;
|
|
153
|
+
break;
|
|
154
|
+
case 6:
|
|
155
|
+
ms = +r[8] / 1000;
|
|
156
|
+
break;
|
|
157
|
+
case 7:
|
|
158
|
+
ms = +r[8] / 10000;
|
|
159
|
+
break;
|
|
160
|
+
default:
|
|
161
|
+
throw new Error(`String '${str}' was not recognized as a valid TimeSpan.`);
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
return sign * create(d, h, m, s, ms);
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
throw new Error(`String '${str}' was not recognized as a valid TimeSpan.`);
|
|
168
|
+
}
|
|
169
|
+
export function tryParse(v, defValue) {
|
|
170
|
+
try {
|
|
171
|
+
defValue.contents = parse(v);
|
|
172
|
+
return true;
|
|
173
|
+
}
|
|
174
|
+
catch {
|
|
175
|
+
return false;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { IDisposable } from "./Util.js";
|
|
2
|
+
export declare class Timer implements IDisposable {
|
|
3
|
+
Interval: number;
|
|
4
|
+
AutoReset: boolean;
|
|
5
|
+
private _elapsed;
|
|
6
|
+
private _enabled;
|
|
7
|
+
private _isDisposed;
|
|
8
|
+
private _intervalId;
|
|
9
|
+
private _timeoutId;
|
|
10
|
+
constructor(interval?: number);
|
|
11
|
+
Elapsed(): import("./Event.js").IEvent$2<import("./Event.js").Handler<Date>, Date>;
|
|
12
|
+
get Enabled(): boolean;
|
|
13
|
+
set Enabled(x: boolean);
|
|
14
|
+
Dispose(): void;
|
|
15
|
+
Close(): void;
|
|
16
|
+
Start(): void;
|
|
17
|
+
Stop(): void;
|
|
18
|
+
}
|
|
19
|
+
export default Timer;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { Event } from "./Event.js";
|
|
2
|
+
export class Timer {
|
|
3
|
+
constructor(interval) {
|
|
4
|
+
this._enabled = false;
|
|
5
|
+
this._isDisposed = false;
|
|
6
|
+
this._intervalId = 0;
|
|
7
|
+
this._timeoutId = 0;
|
|
8
|
+
this.Interval = interval && interval > 0 ? interval : 100;
|
|
9
|
+
this.AutoReset = true;
|
|
10
|
+
this._elapsed = new Event();
|
|
11
|
+
}
|
|
12
|
+
Elapsed() {
|
|
13
|
+
return this._elapsed.Publish;
|
|
14
|
+
}
|
|
15
|
+
get Enabled() {
|
|
16
|
+
return this._enabled;
|
|
17
|
+
}
|
|
18
|
+
set Enabled(x) {
|
|
19
|
+
if (!this._isDisposed && this._enabled !== x) {
|
|
20
|
+
this._enabled = x;
|
|
21
|
+
if (this._enabled) {
|
|
22
|
+
if (this.AutoReset) {
|
|
23
|
+
this._intervalId = setInterval(() => {
|
|
24
|
+
if (!this.AutoReset) {
|
|
25
|
+
this.Enabled = false;
|
|
26
|
+
}
|
|
27
|
+
this._elapsed.Trigger(new Date());
|
|
28
|
+
}, this.Interval);
|
|
29
|
+
}
|
|
30
|
+
else {
|
|
31
|
+
this._timeoutId = setTimeout(() => {
|
|
32
|
+
this.Enabled = false;
|
|
33
|
+
this._timeoutId = 0;
|
|
34
|
+
if (this.AutoReset) {
|
|
35
|
+
this.Enabled = true;
|
|
36
|
+
}
|
|
37
|
+
this._elapsed.Trigger(new Date());
|
|
38
|
+
}, this.Interval);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
else {
|
|
42
|
+
if (this._timeoutId) {
|
|
43
|
+
clearTimeout(this._timeoutId);
|
|
44
|
+
this._timeoutId = 0;
|
|
45
|
+
}
|
|
46
|
+
if (this._intervalId) {
|
|
47
|
+
clearInterval(this._intervalId);
|
|
48
|
+
this._intervalId = 0;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
Dispose() {
|
|
54
|
+
this.Enabled = false;
|
|
55
|
+
this._isDisposed = true;
|
|
56
|
+
}
|
|
57
|
+
Close() {
|
|
58
|
+
this.Dispose();
|
|
59
|
+
}
|
|
60
|
+
Start() {
|
|
61
|
+
this.Enabled = true;
|
|
62
|
+
}
|
|
63
|
+
Stop() {
|
|
64
|
+
this.Enabled = false;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
export default Timer;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { IComparable, IEquatable, IHashable } from "./Util.js";
|
|
2
|
+
export type Result<T> = {
|
|
3
|
+
tag: "ok";
|
|
4
|
+
value: T;
|
|
5
|
+
} | {
|
|
6
|
+
tag: "error";
|
|
7
|
+
error: string;
|
|
8
|
+
};
|
|
9
|
+
export declare function seqToString<T>(self: Iterable<T>): string;
|
|
10
|
+
export declare function toString(x: any, callStack?: number): string;
|
|
11
|
+
export declare function unionToString(name: string, fields: any[]): string;
|
|
12
|
+
export declare abstract class Union<Tag extends number, Name extends string> implements IEquatable<Union<Tag, Name>>, IComparable<Union<Tag, Name>> {
|
|
13
|
+
abstract readonly tag: Tag;
|
|
14
|
+
abstract readonly fields: any[];
|
|
15
|
+
abstract cases(): string[];
|
|
16
|
+
get name(): Name;
|
|
17
|
+
toJSON(): Name | Name[];
|
|
18
|
+
toString(): string;
|
|
19
|
+
GetHashCode(): number;
|
|
20
|
+
Equals(other: Union<Tag, Name>): boolean;
|
|
21
|
+
CompareTo(other: Union<Tag, Name>): number;
|
|
22
|
+
}
|
|
23
|
+
export declare abstract class Record implements IEquatable<Record>, IComparable<Record>, IHashable {
|
|
24
|
+
toJSON(): any;
|
|
25
|
+
toString(): string;
|
|
26
|
+
GetHashCode(): number;
|
|
27
|
+
Equals(other: Record): boolean;
|
|
28
|
+
CompareTo(other: Record): number;
|
|
29
|
+
}
|
|
30
|
+
export declare class FSharpRef<T> {
|
|
31
|
+
private readonly getter;
|
|
32
|
+
private readonly setter;
|
|
33
|
+
get contents(): T;
|
|
34
|
+
set contents(v: T);
|
|
35
|
+
constructor(contentsOrGetter: T | (() => T), setter?: (v: T) => void);
|
|
36
|
+
}
|
|
37
|
+
export declare class Exception {
|
|
38
|
+
message?: string | undefined;
|
|
39
|
+
constructor(message?: string | undefined);
|
|
40
|
+
}
|
|
41
|
+
export declare function isException(x: any): x is Error | Exception;
|
|
42
|
+
export declare function isPromise(x: any): x is Promise<any>;
|
|
43
|
+
export declare function ensureErrorOrException(e: any): any;
|
|
44
|
+
export declare abstract class FSharpException extends Exception implements IEquatable<FSharpException>, IComparable<FSharpException> {
|
|
45
|
+
toJSON(): any;
|
|
46
|
+
toString(): string;
|
|
47
|
+
GetHashCode(): number;
|
|
48
|
+
Equals(other: FSharpException): boolean;
|
|
49
|
+
CompareTo(other: FSharpException): number;
|
|
50
|
+
}
|
|
51
|
+
export declare class MatchFailureException extends FSharpException {
|
|
52
|
+
arg1: string;
|
|
53
|
+
arg2: number;
|
|
54
|
+
arg3: number;
|
|
55
|
+
constructor(arg1: string, arg2: number, arg3: number);
|
|
56
|
+
}
|
|
57
|
+
export declare class Attribute {
|
|
58
|
+
}
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
import { combineHashCodes, compare, compareArrays, equalArrays, equals, sameConstructor, numberHash, structuralHash } from "./Util.js";
|
|
2
|
+
export function seqToString(self) {
|
|
3
|
+
let count = 0;
|
|
4
|
+
let str = "[";
|
|
5
|
+
for (const x of self) {
|
|
6
|
+
if (count === 0) {
|
|
7
|
+
str += toString(x);
|
|
8
|
+
}
|
|
9
|
+
else if (count === 100) {
|
|
10
|
+
str += "; ...";
|
|
11
|
+
break;
|
|
12
|
+
}
|
|
13
|
+
else {
|
|
14
|
+
str += "; " + toString(x);
|
|
15
|
+
}
|
|
16
|
+
count++;
|
|
17
|
+
}
|
|
18
|
+
return str + "]";
|
|
19
|
+
}
|
|
20
|
+
export function toString(x, callStack = 0) {
|
|
21
|
+
if (x != null && typeof x === "object") {
|
|
22
|
+
if (typeof x.toString === "function") {
|
|
23
|
+
return x.toString();
|
|
24
|
+
}
|
|
25
|
+
else if (Symbol.iterator in x) {
|
|
26
|
+
return seqToString(x);
|
|
27
|
+
}
|
|
28
|
+
else { // TODO: Date?
|
|
29
|
+
const cons = Object.getPrototypeOf(x)?.constructor;
|
|
30
|
+
return cons === Object && callStack < 10
|
|
31
|
+
// Same format as recordToString
|
|
32
|
+
? "{ " + Object.entries(x).map(([k, v]) => k + " = " + toString(v, callStack + 1)).join("\n ") + " }"
|
|
33
|
+
: cons?.name ?? "";
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
return String(x);
|
|
37
|
+
}
|
|
38
|
+
export function unionToString(name, fields) {
|
|
39
|
+
if (fields.length === 0) {
|
|
40
|
+
return name;
|
|
41
|
+
}
|
|
42
|
+
else {
|
|
43
|
+
let fieldStr;
|
|
44
|
+
let withParens = true;
|
|
45
|
+
if (fields.length === 1) {
|
|
46
|
+
fieldStr = toString(fields[0]);
|
|
47
|
+
withParens = fieldStr.indexOf(" ") >= 0;
|
|
48
|
+
}
|
|
49
|
+
else {
|
|
50
|
+
fieldStr = fields.map((x) => toString(x)).join(", ");
|
|
51
|
+
}
|
|
52
|
+
return name + (withParens ? " (" : " ") + fieldStr + (withParens ? ")" : "");
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
export class Union {
|
|
56
|
+
get name() {
|
|
57
|
+
return this.cases()[this.tag];
|
|
58
|
+
}
|
|
59
|
+
toJSON() {
|
|
60
|
+
return this.fields.length === 0 ? this.name : [this.name].concat(this.fields);
|
|
61
|
+
}
|
|
62
|
+
toString() {
|
|
63
|
+
return unionToString(this.name, this.fields);
|
|
64
|
+
}
|
|
65
|
+
GetHashCode() {
|
|
66
|
+
const hashes = this.fields.map((x) => structuralHash(x));
|
|
67
|
+
hashes.splice(0, 0, numberHash(this.tag));
|
|
68
|
+
return combineHashCodes(hashes);
|
|
69
|
+
}
|
|
70
|
+
Equals(other) {
|
|
71
|
+
if (this === other) {
|
|
72
|
+
return true;
|
|
73
|
+
}
|
|
74
|
+
else if (!sameConstructor(this, other)) {
|
|
75
|
+
return false;
|
|
76
|
+
}
|
|
77
|
+
else if (this.tag === other.tag) {
|
|
78
|
+
return equalArrays(this.fields, other.fields);
|
|
79
|
+
}
|
|
80
|
+
else {
|
|
81
|
+
return false;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
CompareTo(other) {
|
|
85
|
+
if (this === other) {
|
|
86
|
+
return 0;
|
|
87
|
+
}
|
|
88
|
+
else if (!sameConstructor(this, other)) {
|
|
89
|
+
return -1;
|
|
90
|
+
}
|
|
91
|
+
else if (this.tag === other.tag) {
|
|
92
|
+
return compareArrays(this.fields, other.fields);
|
|
93
|
+
}
|
|
94
|
+
else {
|
|
95
|
+
return this.tag < other.tag ? -1 : 1;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
function recordToJSON(self) {
|
|
100
|
+
const o = {};
|
|
101
|
+
const keys = Object.keys(self);
|
|
102
|
+
for (let i = 0; i < keys.length; i++) {
|
|
103
|
+
o[keys[i]] = self[keys[i]];
|
|
104
|
+
}
|
|
105
|
+
return o;
|
|
106
|
+
}
|
|
107
|
+
function recordToString(self) {
|
|
108
|
+
return "{ " + Object.entries(self).map(([k, v]) => k + " = " + toString(v)).join("\n ") + " }";
|
|
109
|
+
}
|
|
110
|
+
function recordGetHashCode(self) {
|
|
111
|
+
const hashes = Object.values(self).map((v) => structuralHash(v));
|
|
112
|
+
return combineHashCodes(hashes);
|
|
113
|
+
}
|
|
114
|
+
function recordEquals(self, other) {
|
|
115
|
+
if (self === other) {
|
|
116
|
+
return true;
|
|
117
|
+
}
|
|
118
|
+
else if (!sameConstructor(self, other)) {
|
|
119
|
+
return false;
|
|
120
|
+
}
|
|
121
|
+
else {
|
|
122
|
+
const thisNames = Object.keys(self);
|
|
123
|
+
for (let i = 0; i < thisNames.length; i++) {
|
|
124
|
+
if (!equals(self[thisNames[i]], other[thisNames[i]])) {
|
|
125
|
+
return false;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
return true;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
function recordCompareTo(self, other) {
|
|
132
|
+
if (self === other) {
|
|
133
|
+
return 0;
|
|
134
|
+
}
|
|
135
|
+
else if (!sameConstructor(self, other)) {
|
|
136
|
+
return -1;
|
|
137
|
+
}
|
|
138
|
+
else {
|
|
139
|
+
const thisNames = Object.keys(self);
|
|
140
|
+
for (let i = 0; i < thisNames.length; i++) {
|
|
141
|
+
const result = compare(self[thisNames[i]], other[thisNames[i]]);
|
|
142
|
+
if (result !== 0) {
|
|
143
|
+
return result;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
return 0;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
export class Record {
|
|
150
|
+
toJSON() { return recordToJSON(this); }
|
|
151
|
+
toString() { return recordToString(this); }
|
|
152
|
+
GetHashCode() { return recordGetHashCode(this); }
|
|
153
|
+
Equals(other) { return recordEquals(this, other); }
|
|
154
|
+
CompareTo(other) { return recordCompareTo(this, other); }
|
|
155
|
+
}
|
|
156
|
+
export class FSharpRef {
|
|
157
|
+
get contents() {
|
|
158
|
+
return this.getter();
|
|
159
|
+
}
|
|
160
|
+
set contents(v) {
|
|
161
|
+
this.setter(v);
|
|
162
|
+
}
|
|
163
|
+
constructor(contentsOrGetter, setter) {
|
|
164
|
+
if (typeof setter === "function") {
|
|
165
|
+
this.getter = contentsOrGetter;
|
|
166
|
+
this.setter = setter;
|
|
167
|
+
}
|
|
168
|
+
else {
|
|
169
|
+
this.getter = () => contentsOrGetter;
|
|
170
|
+
this.setter = (v) => { contentsOrGetter = v; };
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
// EXCEPTIONS
|
|
175
|
+
// Exception is intentionally not derived from Error, for performance reasons (see #2160)
|
|
176
|
+
export class Exception {
|
|
177
|
+
constructor(message) {
|
|
178
|
+
this.message = message;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
export function isException(x) {
|
|
182
|
+
return x instanceof Exception || x instanceof Error;
|
|
183
|
+
}
|
|
184
|
+
export function isPromise(x) {
|
|
185
|
+
return x instanceof Promise;
|
|
186
|
+
}
|
|
187
|
+
export function ensureErrorOrException(e) {
|
|
188
|
+
// Exceptionally admitting promises as errors for compatibility with React.suspense (see #3298)
|
|
189
|
+
return (isException(e) || isPromise(e)) ? e : new Error(String(e));
|
|
190
|
+
}
|
|
191
|
+
export class FSharpException extends Exception {
|
|
192
|
+
toJSON() { return recordToJSON(this); }
|
|
193
|
+
toString() { return recordToString(this); }
|
|
194
|
+
GetHashCode() { return recordGetHashCode(this); }
|
|
195
|
+
Equals(other) { return recordEquals(this, other); }
|
|
196
|
+
CompareTo(other) { return recordCompareTo(this, other); }
|
|
197
|
+
}
|
|
198
|
+
export class MatchFailureException extends FSharpException {
|
|
199
|
+
constructor(arg1, arg2, arg3) {
|
|
200
|
+
super();
|
|
201
|
+
this.arg1 = arg1;
|
|
202
|
+
this.arg2 = arg2 | 0;
|
|
203
|
+
this.arg3 = arg3 | 0;
|
|
204
|
+
this.message = "The match cases were incomplete";
|
|
205
|
+
}
|
|
206
|
+
}
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3\u015A,9-+\u00BB)%$$O$%&$%:$$+:%*B+,S6$%((9)&$=($c['%%3%Q$&$%(''$&$@%&'$,*,*@%$@&C+$?%'(*,Y&*9%+6(+5*'/*slZV0V*)G'+-\u0149B$M$%$%%q@-$+9.'(y8*7:,$$$X2*'7-2&$P&'%%%$'.$%<*-)&G($+$-'$%$+F$%$,%$S&,%'''$$$-$$$&$7.5$<&&%$$%)$d*$$$'$2$-$)R$&+(-)%%$+%%%9$*$%$($%$%$'%%%&%$)$((%%*&(\u00AEX&+%&$$'(-%$$$&AS&)$$'%$%%$$+-\u00C9R&'%'%$%:'%ES&+%$$%&$.-)06N$$$%)$$$*-Y>%&%'$('-%&$\u00E3O&,$%$\u0087CC-,/+%$%+$%$;)$%%%$$$$$$$&,-i+%J&'%%'$$$$$>$-K)$$'+$+$)%&Q0$%&$(@\\\u012A,$H$*$)$$$(--6&%A%9$$*$%$%l*$%$I)&$$%$*$$+-))$%$C($%$%$$$$*-\u01596%%%\u00DA$28+'40$\u03BD\u0089\u0092$(.\u00E7\u0ADF\u0452$,\u0FEA\u026A\u21DC\u025C*B$-'%\u0083A%($-S*(''$$--$*$8(6\u02D3CC:'\u0088n'$$Z*'0c%$$$.%1\u181B+\u04F9M,\u231A\u0142T&4'+\u01AF\u0927\u008E(0&,*-%$%$'\u137F\u0119-J%_%&&)++%*A'^:e&$\u00BD7/z,<\u00AA===*$5==$$%%$%%%'$+'$$$*$.==%$'%+$*$=%$'$($$&*$============?%<$<$)<$<$)<$<$)<$<$)<$<$)$$%U\u0223Z'U+$1$%(2($2\u0573*$4%*$%$(\u00F8P&**%-'$$\u0193O'-($\u0523\u00E8%,*LEE*$'-'%\u0334^$&$'oP$2\u00E5'$>$%$$%$$-$'$$$$)$'$$$$$$&$%$$%$$$$$$$$$$%$$%'$*$'$'$$$-$4(&$($4W%\u0131O'\u0087/2%2$2$H-0\u00C4[@0O',*%1)\u00BD\u011E(\u02FB+0&0&\u0097/|*/7/'[+-)K+A%%q\u009C$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@'@'(@+?'-@('@'@'@'@'@'@'@'@'@'@)()@)@)(@'@)@+-?=?@()('@'@'@'@'()@(@(@(@'@'(@+@;-?'();'@'@'@'@'@(')()@()@)(@)@'@'(@+@'@()'@'@'(')(@)@)('?@')-'(@+-?'@()@'@'@'@'@'@(@)(@(@)@+@);@'('(@='&(;+;@'@'@'@'@'@'('('@'@&@(@+@'@'?;?;?(?+-?(?(?(7878)'@'@()(;('(@(@?(?@?;?;@')()()()('+;')('(')')'('()()(')+)(?#@#@#@$;&$'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@(;-@'?@#@$@6'?;'.'78@';,'@'@'(@'(;@'(@'@'@(@'()()()(;&;='(@+@-@;6;(2@+@'&'@'('('@'@'@()()@)()(@?@;+'@'@'@'@+-@?'()(@;')()(@()()()(@(+@+@;&;@(*(@()'()()()()'@+;?(?@()')()()('+'()()()()@;')()(@;+@'+'&;$@#@#;@(;()('('(')('@$&$&$&(@(#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$@#@$#$#$@#@$@#@#@#@#$#$@$%$%$%$@$#%>$>$@$#%>$@$#@>$#>@$@$#%>@.26;9:79:79;/02.;9:;5;<78;<;5;.2@2-&@-<78&-<78@&@=@(*(*(@?#?#?$#$#$?#?<#?#?#?#?#?$#$'$?$#<#$?<?$?-,#$,-?@<?<?<?<?<?<?<?<?<?<?7878?<?78?<?<?<?@?@-?-?<?<?<?<?78787878787878-?<78<7878787878<?<7878787878787878787878<7878<78<?<?<?@?@?#@$@#$#$#$#$#$#$#$#$&#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$?#$#$(#$@;-;$@$@$@'@&;@('@'@'@'@'@'@'@'@'@(;9:9:;9:;9:;6;6;9:;9:78787878;&;6;6;7;?;@?@?@?@?@.;?&',7878787878?78787878678?,()6&?,&';?@'@(>&'6';&'@'@'@?-?'?@'?@-?-?-?-?-?'?'@'&'@?@'&;'&;'+'@#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$'(*;(;&#$#$#$#$#$#$#$#$#$#$#$#$#$#$&(',(;@>&>#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$&$#$#$#$#$#$#$#$&>#$#$'#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$@#$#$#$@#$'&$'('('(')()?(@-?=?@';@)')(@;+@(';';'(+'(;'()@;'@()'()()();@&+@;'(&'+'@'()()(@'('()@+@;'&'?')()'('('('('('@'&;')();'&)(@'@'@'@'@'@$>&$&>@$')()();)(@+@'@'@'@34'@'@$@$@'('<'@'@'@'@'@'>@'87@'@'@'=?@(;78;@(;657878787878787878;78;5;@;6787878;<6<@;=;@'@'@2@;=;78;<;6;+;<;#7;8>5>$7<8<78;78;'&'&'@'@'@'@'@=<>?=@?<?@2?@'@'@'@'@'@'@'@;@-@?,-?-?@?@?@?(@'@'@(-@'-@',',@'(@'@;'@';,@#$'@+@#@$@'@'@;@'@'@'@'@'@'@'@'@'@;-'?-'@-@'@'@-'-@;'@;@'@-'-@-'(@(@('@'@'@(@(-@;@'-;'-@'?'(@-;@'@;'@-'@-'@;@-@'@#@$@-'(@+@-@'@(6@'@'-'@'(-;@'-@'@)()'(;@-+@()')()(;2;@2@'@+@('()(@+;')'@'(;'@()')()';(;)(+';';@-@'@')()()(;(@'@'@'@'@';@'()(@+@()@'@'@'@'@'@'@(')()@)@)@'@)@')@(@(@')()()(';+;@;('@')()()()(';'@+@')(@)()(;'(@')()()(;'@+@;@'()()()('@+@'@()()(@+-;?@')()(;@#$+-@'@'@'@'@')@)@()(')')(;@+@'@')(@()(';')@'('()'(;(@'()('()(;';@'@'@')(@()(';@+-@;'@(@)()()(@'@'@'(@(@(@('(@+@'@'@')@(@)()('@+@'();@'@-?=?@;'@,@;@'@'@2@'@'@'@+@;@'@(;@'(;?&;?@+@-@'@'@#$-;@'@(')@(&@&;&(@)@'@'@'@'@'@'@'@'@'@'@'@?(;2@?@?@?)(?)2(?(?(?@?(?@-@?@-@#$#$@$#$#@#@#@#@#@#$@$@$@$#$#@#@#@#@$#@#@#@#@#@$#$#$#$#$#$#$@#<$<$#<$<$#<$<$#<$<$#<$<$#$@+?(?(?(?(?;@(@(@(@(@(@(@(@'@(&@+@'?@'(+@=@'@-(@#$(&@+@;@-?-=-@-?-@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@<@?@?@?@?@?@?@-?@?@?@?@?@?@?>?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@+@'@'@'@'@'@'@'@2@2@(@4@4@";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
// Unicode 13.0.0 codepoint ranges (delta encoded) and general categories.
|
|
2
|
+
// Integer delta values are offset by 35 and stored as Unicode characters.
|
|
3
|
+
export const rangeDeltas = "#C$&$&$$$$$$%-%&%=$$$$$$=$$$$D$$'$$$$$$$$$$$$%$$%$$$$&$:$*;$+$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%$$$$$$$$$$$$$$$%$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%$$$$&%$$$%$&%'$%$&&%$%$$$$$%$$%$$%$&$$$%%$$&'$$$$$$$$$$$$$$$$$$$$$$$$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$>&$&>@$')()();)(@+@'@'@'@34'@'@$@$@'('<'@'@'@'@'@'>@'87@'@'@'=?@(;78;@(;657878787878787878;78;5;@;6787878;<6<@;=;@'@'@2@;=;78;<;6;+;<;#7;8>5>$7<8<78;78;'&'&'@'@'@'@'@=<>?=@?<?@2?@'@'@'@'@'@'@'@;@-@?,-?-?@?@?@?(@'@'@(-@'-@',',@'(@'@;'@';,@#$'@+@#@$@'@'@;@'@'@'@'@'@'@'@'@'@;-'?-'@-@'@'@-'-@;'@;@'@-'-@-'(@(@('@'@'@(@(-@;@'-;'-@'?'(@-;@'@;'@-'@-'@;@-@'@#@$@-'(@+@-@'@(6@'@'-'@'(-;@'-@'@)()'(;@-+@()')()(;2;@2@'@+@('()(@+;')'@'(;'@()')()';(;)(+';';@-@'@')()()(;(@'@'@'@'@';@'()(@+@()@'@'@'@'@'@'@(')()@)@)@'@)@')@(@(@')()()(';+;@;('@')()()()(';'@+@')(@)()(;'(@')()()(;'@+@;@'()()()('@+@'@()()(@+-;?@')()(;@#$+-@'@'@'@'@')@)@()(')')(;@+@'@')(@()(';')@'('()'(;(@'()('()(;';@'@'@')(@()(';@+-@;'@(@)()()(@'@'@'(@(@(@('(@+@'@'@')@(@)()('@+@'();@'@-?=?@;'@,@;@'@'@2@'@'@'@+@;@'@(;@'(;?&;?@+@-@'@'@#$-;@'@(')@(&@&;&(@)@'@'@'@'@'@'@'@'@'@'@'@?(;2@?@?@?)(?)2(?(?(?@?(?@-@?@-@#$#$@$#$#@#@#@#@#@#$@$@$@$#$#@#@#@#@$#@#@#@#@#@$#$#$#$#$#$#$@#<$<$#<$<$#<$<$#<$<$#<$<$#$@+?(?(?(?(?;@(@(@(@(@(@(@(@'@(&@+@'?@'(+@=@'@-(@#$(&@+@;@-?-=-@-?-@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@<@?@?@?@?@?@?@-?@?@?@?@?@?@?>?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@+@'@'@'@'@'@'@'@2@2@(@4@4@";
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { FSharpRef } from "./Types.js";
|
|
2
|
+
export declare const enum UriKind {
|
|
3
|
+
RelativeOrAbsolute = 0,
|
|
4
|
+
Absolute = 1,
|
|
5
|
+
Relative = 2
|
|
6
|
+
}
|
|
7
|
+
export declare class Uri {
|
|
8
|
+
private uri;
|
|
9
|
+
private constructor();
|
|
10
|
+
private static isAbsoluteUri;
|
|
11
|
+
private static tryCreateWithKind;
|
|
12
|
+
private static tryCreateWithBase;
|
|
13
|
+
private static tryCreateImpl;
|
|
14
|
+
static create(value: string | Uri, kindOrUri?: UriKind | string | Uri): Uri;
|
|
15
|
+
static tryCreate(baseUri: Uri, relativeUri: string | Uri, result: FSharpRef<Uri>): boolean;
|
|
16
|
+
static tryCreate(uriString: string, uriKind: UriKind, result: FSharpRef<Uri>): boolean;
|
|
17
|
+
toString(): string;
|
|
18
|
+
private asUrl;
|
|
19
|
+
get isAbsoluteUri(): boolean;
|
|
20
|
+
get absoluteUri(): string;
|
|
21
|
+
get scheme(): string;
|
|
22
|
+
get host(): string;
|
|
23
|
+
get absolutePath(): string;
|
|
24
|
+
get query(): string;
|
|
25
|
+
get isDefaultPort(): boolean;
|
|
26
|
+
get port(): number;
|
|
27
|
+
get pathAndQuery(): string;
|
|
28
|
+
get fragment(): string;
|
|
29
|
+
get originalString(): string;
|
|
30
|
+
}
|
|
31
|
+
export default Uri;
|