lalph 0.1.6 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.mjs +913 -589
- package/package.json +3 -3
- package/src/Linear/TokenManager.ts +7 -2
- package/src/Prd.ts +1 -1
- package/src/cli.ts +14 -3
package/dist/cli.mjs
CHANGED
|
@@ -43,7 +43,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
43
43
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
44
44
|
|
|
45
45
|
//#endregion
|
|
46
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
46
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/Pipeable.js
|
|
47
47
|
/**
|
|
48
48
|
* @since 2.0.0
|
|
49
49
|
*/
|
|
@@ -96,7 +96,7 @@ const Class$3 = class {
|
|
|
96
96
|
};
|
|
97
97
|
|
|
98
98
|
//#endregion
|
|
99
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
99
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/Function.js
|
|
100
100
|
/**
|
|
101
101
|
* Tests if a value is a `function`.
|
|
102
102
|
*
|
|
@@ -367,7 +367,7 @@ function memoize(f) {
|
|
|
367
367
|
}
|
|
368
368
|
|
|
369
369
|
//#endregion
|
|
370
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
370
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/internal/equal.js
|
|
371
371
|
/** @internal */
|
|
372
372
|
const getAllObjectKeys = (obj) => {
|
|
373
373
|
const keys$1 = new Set(Reflect.ownKeys(obj));
|
|
@@ -387,7 +387,7 @@ const getAllObjectKeys = (obj) => {
|
|
|
387
387
|
const byReferenceInstances = /* @__PURE__ */ new WeakSet();
|
|
388
388
|
|
|
389
389
|
//#endregion
|
|
390
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
390
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/Predicate.js
|
|
391
391
|
/**
|
|
392
392
|
* @since 2.0.0
|
|
393
393
|
*/
|
|
@@ -793,7 +793,7 @@ const isRegExp$1 = (input) => input instanceof RegExp;
|
|
|
793
793
|
* import * as N from "effect/Number"
|
|
794
794
|
* import * as assert from "node:assert"
|
|
795
795
|
*
|
|
796
|
-
* const nonZero = Predicate.or(N.
|
|
796
|
+
* const nonZero = Predicate.or(N.isLessThan(0), N.isGreaterThan(0))
|
|
797
797
|
*
|
|
798
798
|
* assert.deepStrictEqual(nonZero(-1), true)
|
|
799
799
|
* assert.deepStrictEqual(nonZero(0), false)
|
|
@@ -806,7 +806,7 @@ const isRegExp$1 = (input) => input instanceof RegExp;
|
|
|
806
806
|
const or = /* @__PURE__ */ dual(2, (self, that) => (a) => self(a) || that(a));
|
|
807
807
|
|
|
808
808
|
//#endregion
|
|
809
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
809
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/Hash.js
|
|
810
810
|
/**
|
|
811
811
|
* This module provides utilities for hashing values in TypeScript.
|
|
812
812
|
*
|
|
@@ -859,7 +859,7 @@ const symbol$3 = "~effect/interfaces/Hash";
|
|
|
859
859
|
*/
|
|
860
860
|
const hash = (self) => {
|
|
861
861
|
switch (typeof self) {
|
|
862
|
-
case "number": return number$
|
|
862
|
+
case "number": return number$2(self);
|
|
863
863
|
case "bigint": return string$2(self.toString(10));
|
|
864
864
|
case "boolean": return string$2(String(self));
|
|
865
865
|
case "symbol": return string$2(String(self));
|
|
@@ -875,7 +875,7 @@ const hash = (self) => {
|
|
|
875
875
|
const h = withVisitedTracking$1(self, () => {
|
|
876
876
|
if (isHash(self)) return self[symbol$3]();
|
|
877
877
|
else if (typeof self === "function") return random(self);
|
|
878
|
-
else if (Array.isArray(self)) return array
|
|
878
|
+
else if (Array.isArray(self)) return array(self);
|
|
879
879
|
else if (self instanceof Map) return hashMap(self);
|
|
880
880
|
else if (self instanceof Set) return hashSet(self);
|
|
881
881
|
return structure(self);
|
|
@@ -911,7 +911,7 @@ const hash = (self) => {
|
|
|
911
911
|
* @since 2.0.0
|
|
912
912
|
*/
|
|
913
913
|
const random = (self) => {
|
|
914
|
-
if (!randomHashCache.has(self)) randomHashCache.set(self, number$
|
|
914
|
+
if (!randomHashCache.has(self)) randomHashCache.set(self, number$2(Math.floor(Math.random() * Number.MAX_SAFE_INTEGER)));
|
|
915
915
|
return randomHashCache.get(self);
|
|
916
916
|
};
|
|
917
917
|
/**
|
|
@@ -1012,7 +1012,7 @@ const isHash = (u) => hasProperty(u, symbol$3);
|
|
|
1012
1012
|
* @category hashing
|
|
1013
1013
|
* @since 2.0.0
|
|
1014
1014
|
*/
|
|
1015
|
-
const number$
|
|
1015
|
+
const number$2 = (n) => {
|
|
1016
1016
|
if (n !== n) return string$2("NaN");
|
|
1017
1017
|
if (n === Infinity) return string$2("Infinity");
|
|
1018
1018
|
if (n === -Infinity) return string$2("-Infinity");
|
|
@@ -1141,7 +1141,7 @@ const iterableWith = (seed, f) => (iter) => {
|
|
|
1141
1141
|
* @category hashing
|
|
1142
1142
|
* @since 2.0.0
|
|
1143
1143
|
*/
|
|
1144
|
-
const array
|
|
1144
|
+
const array = /* @__PURE__ */ iterableWith(6151, hash);
|
|
1145
1145
|
const hashMap = /* @__PURE__ */ iterableWith(/* @__PURE__ */ string$2("Map"), ([k, v]) => combine$1(hash(k), hash(v)));
|
|
1146
1146
|
const hashSet = /* @__PURE__ */ iterableWith(/* @__PURE__ */ string$2("Set"), hash);
|
|
1147
1147
|
const randomHashCache = /* @__PURE__ */ new WeakMap();
|
|
@@ -1156,7 +1156,7 @@ function withVisitedTracking$1(obj, fn$2) {
|
|
|
1156
1156
|
}
|
|
1157
1157
|
|
|
1158
1158
|
//#endregion
|
|
1159
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
1159
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/Equal.js
|
|
1160
1160
|
/**
|
|
1161
1161
|
* The unique identifier used to identify objects that implement the `Equal` interface.
|
|
1162
1162
|
*
|
|
@@ -1266,11 +1266,11 @@ function makeCompareMap(keyEquivalence, valueEquivalence) {
|
|
|
1266
1266
|
}
|
|
1267
1267
|
const compareMaps = /* @__PURE__ */ makeCompareMap(compareBoth, compareBoth);
|
|
1268
1268
|
/** @internal */
|
|
1269
|
-
function makeCompareSet(equivalence
|
|
1269
|
+
function makeCompareSet(equivalence) {
|
|
1270
1270
|
return function compareSets$1(self, that) {
|
|
1271
1271
|
for (const selfValue of self) {
|
|
1272
1272
|
let found = false;
|
|
1273
|
-
for (const thatValue of that) if (equivalence
|
|
1273
|
+
for (const thatValue of that) if (equivalence(selfValue, thatValue)) {
|
|
1274
1274
|
found = true;
|
|
1275
1275
|
break;
|
|
1276
1276
|
}
|
|
@@ -1315,7 +1315,7 @@ const isEqual = (u) => hasProperty(u, symbol$2);
|
|
|
1315
1315
|
* ```ts
|
|
1316
1316
|
* import { Array, Equal } from "effect"
|
|
1317
1317
|
*
|
|
1318
|
-
* const eq = Equal.
|
|
1318
|
+
* const eq = Equal.asEquivalence<number>()
|
|
1319
1319
|
* const result = Array.dedupeWith([1, 2, 2, 3, 1], eq)
|
|
1320
1320
|
* console.log(result) // [1, 2, 3]
|
|
1321
1321
|
* ```
|
|
@@ -1323,7 +1323,7 @@ const isEqual = (u) => hasProperty(u, symbol$2);
|
|
|
1323
1323
|
* @category instances
|
|
1324
1324
|
* @since 2.0.0
|
|
1325
1325
|
*/
|
|
1326
|
-
const
|
|
1326
|
+
const asEquivalence = () => equals$1;
|
|
1327
1327
|
/**
|
|
1328
1328
|
* Marks an object to use reference equality instead of structural equality, without creating a proxy.
|
|
1329
1329
|
*
|
|
@@ -1358,7 +1358,7 @@ const byReferenceUnsafe = (obj) => {
|
|
|
1358
1358
|
};
|
|
1359
1359
|
|
|
1360
1360
|
//#endregion
|
|
1361
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
1361
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/Redactable.js
|
|
1362
1362
|
/**
|
|
1363
1363
|
* @since 4.0.0
|
|
1364
1364
|
*/
|
|
@@ -1453,7 +1453,7 @@ const emptyServiceMap$1 = {
|
|
|
1453
1453
|
};
|
|
1454
1454
|
|
|
1455
1455
|
//#endregion
|
|
1456
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
1456
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/Formatter.js
|
|
1457
1457
|
/**
|
|
1458
1458
|
* @since 4.0.0
|
|
1459
1459
|
*/
|
|
@@ -1618,7 +1618,7 @@ function formatJson(input, options) {
|
|
|
1618
1618
|
}
|
|
1619
1619
|
|
|
1620
1620
|
//#endregion
|
|
1621
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
1621
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/Inspectable.js
|
|
1622
1622
|
/**
|
|
1623
1623
|
* This module provides utilities for making values inspectable and debuggable in TypeScript.
|
|
1624
1624
|
*
|
|
@@ -1822,32 +1822,76 @@ var Class$2 = class {
|
|
|
1822
1822
|
};
|
|
1823
1823
|
|
|
1824
1824
|
//#endregion
|
|
1825
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
1826
|
-
/**
|
|
1827
|
-
* This module provides
|
|
1828
|
-
* An
|
|
1825
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/Order.js
|
|
1826
|
+
/**
|
|
1827
|
+
* This module provides the `Order` type class for defining total orderings on types.
|
|
1828
|
+
* An `Order` is a comparison function that returns `-1` (less than), `0` (equal), or `1` (greater than).
|
|
1829
|
+
*
|
|
1830
|
+
* Mental model:
|
|
1831
|
+
* - An `Order<A>` is a pure function `(a: A, b: A) => Ordering` that compares two values
|
|
1832
|
+
* - The result `-1` means the first value is less than the second
|
|
1833
|
+
* - The result `0` means the values are equal according to this ordering
|
|
1834
|
+
* - The result `1` means the first value is greater than the second
|
|
1835
|
+
* - Orders must satisfy total ordering laws: totality (either `x <= y` or `y <= x`), antisymmetry (if `x <= y` and `y <= x` then `x == y`), and transitivity (if `x <= y` and `y <= z` then `x <= z`)
|
|
1836
|
+
* - Orders can be composed using {@link combine} and {@link combineAll} to create multi-criteria comparisons
|
|
1837
|
+
* - Orders can be transformed using {@link mapInput} to compare values by extracting a comparable property
|
|
1838
|
+
* - Built-in orders exist for common types: {@link Number}, {@link String}, {@link Boolean}, {@link BigInt}, {@link Date}
|
|
1839
|
+
*
|
|
1840
|
+
* Common tasks:
|
|
1841
|
+
* - Creating custom orders → {@link make}
|
|
1842
|
+
* - Using built-in orders → {@link Number}, {@link String}, {@link Boolean}, {@link BigInt}, {@link Date}
|
|
1843
|
+
* - Combining multiple orders → {@link combine}, {@link combineAll}
|
|
1844
|
+
* - Transforming orders → {@link mapInput}
|
|
1845
|
+
* - Comparing values → {@link isLessThan}, {@link isGreaterThan}, {@link isLessThanOrEqualTo}, {@link isGreaterThanOrEqualTo}
|
|
1846
|
+
* - Finding min/max → {@link min}, {@link max}
|
|
1847
|
+
* - Clamping values → {@link clamp}, {@link isBetween}
|
|
1848
|
+
* - Ordering collections → {@link Array}, {@link Tuple}, {@link Struct}
|
|
1849
|
+
*
|
|
1850
|
+
* Gotchas:
|
|
1851
|
+
* - `Order.Number` treats all `NaN` values as equal and less than any other number
|
|
1852
|
+
* - `Order.make` uses reference equality (`===`) as a shortcut: if `self === that`, it returns `0` without calling the comparison function
|
|
1853
|
+
* - `Order.Array` compares arrays element-by-element, then by length if all elements are equal; `Order.all` only compares elements up to the shorter array's length
|
|
1854
|
+
* - `Order.Tuple` requires a fixed-length tuple with matching order types; `Order.Array` works with variable-length arrays
|
|
1855
|
+
* - `Order.min` and `Order.max` return the first argument when values are equal
|
|
1856
|
+
*
|
|
1857
|
+
* Quickstart:
|
|
1829
1858
|
*
|
|
1830
|
-
*
|
|
1831
|
-
* - if `x <= y` and `y <= x`, then `x == y` (antisymmetry)
|
|
1832
|
-
* - if `x <= y` and `y <= z`, then `x <= z` (transitivity)
|
|
1859
|
+
* **Example** (Basic Usage)
|
|
1833
1860
|
*
|
|
1834
|
-
*
|
|
1861
|
+
* ```ts
|
|
1862
|
+
* import { Order } from "effect"
|
|
1863
|
+
*
|
|
1864
|
+
* const result = Order.Number(5, 10)
|
|
1865
|
+
* console.log(result) // -1 (5 is less than 10)
|
|
1866
|
+
*
|
|
1867
|
+
* const isLessThan = Order.isLessThan(Order.Number)(5, 10)
|
|
1868
|
+
* console.log(isLessThan) // true
|
|
1869
|
+
* ```
|
|
1835
1870
|
*
|
|
1836
|
-
*
|
|
1837
|
-
*
|
|
1838
|
-
*
|
|
1839
|
-
* | `true` | `false` | `< 0` | corresponds to x < y |
|
|
1840
|
-
* | `false` | `true` | `> 0` | corresponds to x > y |
|
|
1871
|
+
* See also:
|
|
1872
|
+
* - {@link Ordering} - The result type of comparisons
|
|
1873
|
+
* - {@link Reducer} - For combining orders in collections
|
|
1841
1874
|
*
|
|
1842
1875
|
* @since 2.0.0
|
|
1843
1876
|
*/
|
|
1844
1877
|
/**
|
|
1845
1878
|
* Creates a new `Order` instance from a comparison function.
|
|
1846
1879
|
*
|
|
1847
|
-
*
|
|
1880
|
+
* When to use this:
|
|
1881
|
+
* - When creating a custom order for a type that doesn't have a built-in order
|
|
1882
|
+
* - When you need fine-grained control over comparison logic
|
|
1883
|
+
* - When implementing orders for complex types
|
|
1884
|
+
*
|
|
1885
|
+
* Behavior:
|
|
1886
|
+
* - Pure function: does not mutate inputs
|
|
1887
|
+
* - Uses reference equality (`===`) as a shortcut: if `self === that`, returns `0` without calling the comparison function
|
|
1888
|
+
* - The comparison function should return `-1`, `0`, or `1` based on the comparison result
|
|
1889
|
+
* - The returned order satisfies total ordering laws if the comparison function does
|
|
1890
|
+
*
|
|
1891
|
+
* **Example** (Creating an Order)
|
|
1892
|
+
*
|
|
1848
1893
|
* ```ts
|
|
1849
1894
|
* import { Order } from "effect"
|
|
1850
|
-
* import * as assert from "node:assert"
|
|
1851
1895
|
*
|
|
1852
1896
|
* const byAge = Order.make<{ name: string; age: number }>((self, that) => {
|
|
1853
1897
|
* if (self.age < that.age) return -1
|
|
@@ -1855,224 +1899,292 @@ var Class$2 = class {
|
|
|
1855
1899
|
* return 0
|
|
1856
1900
|
* })
|
|
1857
1901
|
*
|
|
1858
|
-
*
|
|
1859
|
-
*
|
|
1860
|
-
* 1
|
|
1861
|
-
* )
|
|
1862
|
-
* assert.deepStrictEqual(
|
|
1863
|
-
* byAge({ name: "Alice", age: 25 }, { name: "Bob", age: 30 }),
|
|
1864
|
-
* -1
|
|
1865
|
-
* )
|
|
1902
|
+
* console.log(byAge({ name: "Alice", age: 30 }, { name: "Bob", age: 25 })) // 1
|
|
1903
|
+
* console.log(byAge({ name: "Alice", age: 25 }, { name: "Bob", age: 30 })) // -1
|
|
1866
1904
|
* ```
|
|
1867
1905
|
*
|
|
1906
|
+
* See also:
|
|
1907
|
+
* - {@link mapInput} - Transform an order by mapping the input type
|
|
1908
|
+
* - {@link combine} - Combine multiple orders
|
|
1909
|
+
*
|
|
1868
1910
|
* @category constructors
|
|
1869
1911
|
* @since 2.0.0
|
|
1870
1912
|
*/
|
|
1871
|
-
|
|
1913
|
+
function make$50(compare) {
|
|
1914
|
+
return (self, that) => self === that ? 0 : compare(self, that);
|
|
1915
|
+
}
|
|
1872
1916
|
/**
|
|
1873
1917
|
* An `Order` instance for numbers that compares them numerically.
|
|
1874
1918
|
*
|
|
1875
|
-
*
|
|
1876
|
-
* -
|
|
1919
|
+
* When to use this:
|
|
1920
|
+
* - When comparing numbers for sorting or searching
|
|
1921
|
+
* - As a base for creating orders on types containing numbers
|
|
1922
|
+
* - When implementing numeric comparisons in data structures
|
|
1923
|
+
*
|
|
1924
|
+
* Behavior:
|
|
1925
|
+
* - Pure function: does not mutate inputs
|
|
1926
|
+
* - `0` is considered equal to `-0`
|
|
1927
|
+
* - All `NaN` values are considered equal to each other
|
|
1928
|
+
* - Any `NaN` is considered less than any non-NaN number
|
|
1929
|
+
* - Uses standard numeric comparison for all other values
|
|
1930
|
+
*
|
|
1931
|
+
* **Example** (Number Ordering)
|
|
1877
1932
|
*
|
|
1878
|
-
* @example
|
|
1879
1933
|
* ```ts
|
|
1880
1934
|
* import { Order } from "effect"
|
|
1881
|
-
* import * as assert from "node:assert"
|
|
1882
1935
|
*
|
|
1883
|
-
*
|
|
1884
|
-
*
|
|
1885
|
-
*
|
|
1936
|
+
* console.log(Order.Number(1, 1)) // 0
|
|
1937
|
+
* console.log(Order.Number(1, 2)) // -1
|
|
1938
|
+
* console.log(Order.Number(2, 1)) // 1
|
|
1886
1939
|
*
|
|
1887
|
-
*
|
|
1888
|
-
*
|
|
1940
|
+
* console.log(Order.Number(0, -0)) // 0
|
|
1941
|
+
* console.log(Order.Number(NaN, 1)) // -1
|
|
1889
1942
|
* ```
|
|
1890
1943
|
*
|
|
1944
|
+
* See also:
|
|
1945
|
+
* - {@link mapInput} - Use this order to compare objects by a number property
|
|
1946
|
+
* - {@link BigInt} - For bigint comparisons
|
|
1947
|
+
*
|
|
1891
1948
|
* @category instances
|
|
1892
|
-
* @since
|
|
1949
|
+
* @since 4.0.0
|
|
1893
1950
|
*/
|
|
1894
|
-
const
|
|
1895
|
-
if (Number.isNaN(self) && Number.isNaN(that)) return 0;
|
|
1896
|
-
if (Number.isNaN(self)) return -1;
|
|
1897
|
-
if (Number.isNaN(that)) return 1;
|
|
1951
|
+
const Number$4 = /* @__PURE__ */ make$50((self, that) => {
|
|
1952
|
+
if (globalThis.Number.isNaN(self) && globalThis.Number.isNaN(that)) return 0;
|
|
1953
|
+
if (globalThis.Number.isNaN(self)) return -1;
|
|
1954
|
+
if (globalThis.Number.isNaN(that)) return 1;
|
|
1898
1955
|
return self < that ? -1 : 1;
|
|
1899
1956
|
});
|
|
1900
1957
|
/**
|
|
1901
1958
|
* An `Order` instance for bigints that compares them numerically.
|
|
1902
1959
|
*
|
|
1903
|
-
*
|
|
1960
|
+
* When to use this:
|
|
1961
|
+
* - When comparing bigint values for sorting or searching
|
|
1962
|
+
* - As a base for creating orders on types containing bigints
|
|
1963
|
+
* - When working with large integers that exceed number precision
|
|
1964
|
+
*
|
|
1965
|
+
* Behavior:
|
|
1966
|
+
* - Pure function: does not mutate inputs
|
|
1967
|
+
* - Uses standard numeric comparison for bigint values
|
|
1968
|
+
* - Handles arbitrarily large integers
|
|
1969
|
+
*
|
|
1970
|
+
* **Example** (BigInt Ordering)
|
|
1971
|
+
*
|
|
1904
1972
|
* ```ts
|
|
1905
1973
|
* import { Order } from "effect"
|
|
1906
|
-
* import * as assert from "node:assert"
|
|
1907
1974
|
*
|
|
1908
|
-
*
|
|
1909
|
-
*
|
|
1910
|
-
*
|
|
1975
|
+
* console.log(Order.BigInt(1n, 2n)) // -1
|
|
1976
|
+
* console.log(Order.BigInt(2n, 1n)) // 1
|
|
1977
|
+
* console.log(Order.BigInt(1n, 1n)) // 0
|
|
1911
1978
|
* ```
|
|
1912
1979
|
*
|
|
1980
|
+
* See also:
|
|
1981
|
+
* - {@link Number} - For regular number comparisons
|
|
1982
|
+
* - {@link mapInput} - Use this order to compare objects by a bigint property
|
|
1983
|
+
*
|
|
1913
1984
|
* @category instances
|
|
1914
|
-
* @since
|
|
1985
|
+
* @since 4.0.0
|
|
1915
1986
|
*/
|
|
1916
|
-
const
|
|
1987
|
+
const BigInt$3 = /* @__PURE__ */ make$50((self, that) => self < that ? -1 : 1);
|
|
1917
1988
|
/**
|
|
1918
1989
|
* Transforms an `Order` on type `A` into an `Order` on type `B` by providing a function that
|
|
1919
1990
|
* maps values of type `B` to values of type `A`.
|
|
1920
1991
|
*
|
|
1921
|
-
*
|
|
1992
|
+
* When to use this:
|
|
1993
|
+
* - When you have an order for a property type and want to compare objects by that property
|
|
1994
|
+
* - When extracting a comparable value from a complex type
|
|
1995
|
+
* - When creating orders for types that contain comparable values
|
|
1996
|
+
*
|
|
1997
|
+
* Behavior:
|
|
1998
|
+
* - Pure function: does not mutate inputs
|
|
1999
|
+
* - Applies the mapping function to both values before comparison
|
|
2000
|
+
* - The mapping function should be pure and not have side effects
|
|
2001
|
+
* - Preserves the ordering properties of the original order
|
|
2002
|
+
*
|
|
2003
|
+
* **Example** (Mapping Input)
|
|
2004
|
+
*
|
|
1922
2005
|
* ```ts
|
|
1923
2006
|
* import { Order } from "effect"
|
|
1924
|
-
* import * as assert from "node:assert"
|
|
1925
2007
|
*
|
|
1926
|
-
* const byLength = Order.mapInput(Order.
|
|
2008
|
+
* const byLength = Order.mapInput(Order.Number, (s: string) => s.length)
|
|
1927
2009
|
*
|
|
1928
|
-
*
|
|
1929
|
-
*
|
|
1930
|
-
*
|
|
2010
|
+
* console.log(byLength("a", "bb")) // -1
|
|
2011
|
+
* console.log(byLength("bb", "a")) // 1
|
|
2012
|
+
* console.log(byLength("aa", "bb")) // 0
|
|
1931
2013
|
* ```
|
|
1932
2014
|
*
|
|
2015
|
+
* See also:
|
|
2016
|
+
* - {@link combine} - Combine mapped orders for multi-criteria comparison
|
|
2017
|
+
* - {@link Struct} - Create orders for structs with multiple fields
|
|
2018
|
+
*
|
|
1933
2019
|
* @category mapping
|
|
1934
2020
|
* @since 2.0.0
|
|
1935
2021
|
*/
|
|
1936
2022
|
const mapInput = /* @__PURE__ */ dual(2, (self, f) => make$50((b1, b2) => self(f(b1), f(b2))));
|
|
1937
2023
|
/**
|
|
1938
|
-
* An `Order` instance for `Date` objects that compares them chronologically.
|
|
2024
|
+
* An `Order` instance for `Date` objects that compares them chronologically by their timestamp.
|
|
2025
|
+
*
|
|
2026
|
+
* When to use this:
|
|
2027
|
+
* - When comparing dates for sorting or searching
|
|
2028
|
+
* - As a base for creating orders on types containing dates
|
|
2029
|
+
* - When implementing time-based comparisons
|
|
2030
|
+
*
|
|
2031
|
+
* Behavior:
|
|
2032
|
+
* - Pure function: does not mutate inputs
|
|
2033
|
+
* - Compares dates by their underlying timestamp (milliseconds since epoch)
|
|
2034
|
+
* - Earlier dates are less than later dates
|
|
2035
|
+
* - Invalid dates are compared as if they were valid (uses `getTime()` result)
|
|
2036
|
+
*
|
|
2037
|
+
* **Example** (Date Ordering)
|
|
1939
2038
|
*
|
|
1940
|
-
* @example
|
|
1941
2039
|
* ```ts
|
|
1942
2040
|
* import { Order } from "effect"
|
|
1943
|
-
* import * as assert from "node:assert"
|
|
1944
2041
|
*
|
|
1945
2042
|
* const date1 = new Date("2023-01-01")
|
|
1946
2043
|
* const date2 = new Date("2023-01-02")
|
|
1947
2044
|
*
|
|
1948
|
-
*
|
|
1949
|
-
*
|
|
1950
|
-
*
|
|
2045
|
+
* console.log(Order.Date(date1, date2)) // -1
|
|
2046
|
+
* console.log(Order.Date(date2, date1)) // 1
|
|
2047
|
+
* console.log(Order.Date(date1, date1)) // 0
|
|
1951
2048
|
* ```
|
|
1952
2049
|
*
|
|
2050
|
+
* See also:
|
|
2051
|
+
* - {@link mapInput} - Use this order to compare objects by a date property
|
|
2052
|
+
*
|
|
1953
2053
|
* @category instances
|
|
1954
2054
|
* @since 2.0.0
|
|
1955
2055
|
*/
|
|
1956
|
-
const Date$2 = /* @__PURE__ */ mapInput(
|
|
2056
|
+
const Date$2 = /* @__PURE__ */ mapInput(Number$4, (date$2) => date$2.getTime());
|
|
1957
2057
|
/**
|
|
1958
|
-
* Creates an `Order` for
|
|
1959
|
-
*
|
|
2058
|
+
* Creates an `Order` for a tuple type based on orders for each element.
|
|
2059
|
+
*
|
|
2060
|
+
* When to use this:
|
|
2061
|
+
* - When comparing tuples with different types for each position
|
|
2062
|
+
* - When you need type-safe tuple ordering
|
|
2063
|
+
* - When working with fixed-length heterogeneous collections
|
|
2064
|
+
*
|
|
2065
|
+
* Behavior:
|
|
2066
|
+
* - Pure function: does not mutate inputs
|
|
2067
|
+
* - Compares tuples element-by-element using the corresponding order
|
|
2068
|
+
* - Stops at the first non-zero comparison result
|
|
2069
|
+
* - Requires tuples to have the same length as the order collection
|
|
2070
|
+
* - Returns `0` if all elements are equal
|
|
2071
|
+
*
|
|
2072
|
+
* **Example** (Tuple Ordering)
|
|
1960
2073
|
*
|
|
1961
|
-
* @example
|
|
1962
2074
|
* ```ts
|
|
1963
2075
|
* import { Order } from "effect"
|
|
1964
|
-
* import * as assert from "node:assert"
|
|
1965
2076
|
*
|
|
1966
|
-
* const
|
|
2077
|
+
* const tupleOrder = Order.Tuple([Order.Number, Order.String])
|
|
1967
2078
|
*
|
|
1968
|
-
*
|
|
1969
|
-
*
|
|
1970
|
-
*
|
|
2079
|
+
* console.log(tupleOrder([1, "a"], [2, "b"])) // -1
|
|
2080
|
+
* console.log(tupleOrder([1, "b"], [1, "a"])) // 1
|
|
2081
|
+
* console.log(tupleOrder([1, "a"], [1, "a"])) // 0
|
|
1971
2082
|
* ```
|
|
1972
2083
|
*
|
|
1973
|
-
*
|
|
1974
|
-
* @
|
|
2084
|
+
* See also:
|
|
2085
|
+
* - {@link Array} - Compare arrays with length consideration
|
|
2086
|
+
*
|
|
2087
|
+
* @category combinators
|
|
2088
|
+
* @since 4.0.0
|
|
1975
2089
|
*/
|
|
1976
|
-
|
|
1977
|
-
return make$50((
|
|
1978
|
-
const len =
|
|
1979
|
-
let
|
|
1980
|
-
|
|
1981
|
-
if (collectionLength >= len) break;
|
|
1982
|
-
const o = O(x[collectionLength], y[collectionLength]);
|
|
2090
|
+
function Tuple$2(elements) {
|
|
2091
|
+
return make$50((self, that) => {
|
|
2092
|
+
const len = elements.length;
|
|
2093
|
+
for (let i = 0; i < len; i++) {
|
|
2094
|
+
const o = elements[i](self[i], that[i]);
|
|
1983
2095
|
if (o !== 0) return o;
|
|
1984
|
-
collectionLength++;
|
|
1985
2096
|
}
|
|
1986
2097
|
return 0;
|
|
1987
2098
|
});
|
|
1988
|
-
}
|
|
2099
|
+
}
|
|
1989
2100
|
/**
|
|
1990
|
-
*
|
|
2101
|
+
* Creates an `Order` for arrays by applying the given `Order` to each element, then comparing by length if all elements are equal.
|
|
1991
2102
|
*
|
|
1992
|
-
*
|
|
1993
|
-
*
|
|
1994
|
-
*
|
|
2103
|
+
* When to use this:
|
|
2104
|
+
* - When comparing arrays of the same element type
|
|
2105
|
+
* - When you want shorter arrays to be considered less than longer arrays
|
|
2106
|
+
* - When sorting collections of arrays
|
|
1995
2107
|
*
|
|
1996
|
-
*
|
|
1997
|
-
*
|
|
1998
|
-
*
|
|
1999
|
-
*
|
|
2108
|
+
* Behavior:
|
|
2109
|
+
* - Pure function: does not mutate inputs
|
|
2110
|
+
* - Compares arrays element-by-element using the provided order
|
|
2111
|
+
* - Stops at the first non-zero comparison result
|
|
2112
|
+
* - If all elements are equal, shorter arrays are less than longer arrays
|
|
2113
|
+
* - Returns `0` only if arrays have the same length and all elements are equal
|
|
2114
|
+
*
|
|
2115
|
+
* **Example** (Array Element Ordering)
|
|
2000
2116
|
*
|
|
2001
|
-
* @example
|
|
2002
2117
|
* ```ts
|
|
2003
2118
|
* import { Order } from "effect"
|
|
2004
|
-
* import * as assert from "node:assert"
|
|
2005
2119
|
*
|
|
2006
|
-
* const
|
|
2120
|
+
* const arrayOrder = Order.Array(Order.Number)
|
|
2007
2121
|
*
|
|
2008
|
-
*
|
|
2009
|
-
*
|
|
2010
|
-
*
|
|
2122
|
+
* console.log(arrayOrder([1, 2], [1, 3])) // -1
|
|
2123
|
+
* console.log(arrayOrder([1, 2], [1, 2, 3])) // -1 (shorter array is less)
|
|
2124
|
+
* console.log(arrayOrder([1, 2, 3], [1, 2])) // 1 (longer array is greater)
|
|
2125
|
+
* console.log(arrayOrder([1, 2], [1, 2])) // 0
|
|
2011
2126
|
* ```
|
|
2012
2127
|
*
|
|
2128
|
+
* See also:
|
|
2129
|
+
* - {@link Tuple} - Type-safe tuple ordering
|
|
2130
|
+
*
|
|
2013
2131
|
* @category combinators
|
|
2014
|
-
* @since
|
|
2132
|
+
* @since 4.0.0
|
|
2015
2133
|
*/
|
|
2016
|
-
|
|
2134
|
+
function Array$4(O) {
|
|
2135
|
+
return make$50((self, that) => {
|
|
2136
|
+
const aLen = self.length;
|
|
2137
|
+
const bLen = that.length;
|
|
2138
|
+
const len = Math.min(aLen, bLen);
|
|
2139
|
+
for (let i = 0; i < len; i++) {
|
|
2140
|
+
const o = O(self[i], that[i]);
|
|
2141
|
+
if (o !== 0) return o;
|
|
2142
|
+
}
|
|
2143
|
+
return Number$4(aLen, bLen);
|
|
2144
|
+
});
|
|
2145
|
+
}
|
|
2017
2146
|
/**
|
|
2018
|
-
*
|
|
2019
|
-
* The returned `Order` compares two arrays by applying the given `Order` to each element in the arrays.
|
|
2020
|
-
* If all elements are equal, the arrays are then compared based on their length.
|
|
2021
|
-
* It is useful when you need to compare two arrays of the same type and you have a specific way of comparing each element of the array.
|
|
2147
|
+
* Creates an `Order` for structs by applying the given `Order`s to each property in sequence.
|
|
2022
2148
|
*
|
|
2023
|
-
*
|
|
2024
|
-
*
|
|
2025
|
-
*
|
|
2026
|
-
*
|
|
2149
|
+
* When to use this:
|
|
2150
|
+
* - When comparing objects with multiple properties
|
|
2151
|
+
* - When you need multi-field comparison for structs
|
|
2152
|
+
* - When creating orders for complex data types
|
|
2027
2153
|
*
|
|
2028
|
-
*
|
|
2154
|
+
* Behavior:
|
|
2155
|
+
* - Pure function: does not mutate inputs
|
|
2156
|
+
* - Compares structs field-by-field in the order of keys in the fields object
|
|
2157
|
+
* - Stops at the first non-zero comparison result
|
|
2158
|
+
* - Returns `0` only if all fields are equal
|
|
2159
|
+
* - Field order matters: earlier fields take precedence
|
|
2029
2160
|
*
|
|
2030
|
-
*
|
|
2031
|
-
* assert.deepStrictEqual(arrayOrder([1, 2], [1, 2, 3]), -1) // shorter array is less
|
|
2032
|
-
* assert.deepStrictEqual(arrayOrder([1, 2, 3], [1, 2]), 1) // longer array is greater
|
|
2033
|
-
* assert.deepStrictEqual(arrayOrder([1, 2], [1, 2]), 0)
|
|
2034
|
-
* ```
|
|
2161
|
+
* **Example** (Struct Ordering)
|
|
2035
2162
|
*
|
|
2036
|
-
* @category combinators
|
|
2037
|
-
* @since 2.0.0
|
|
2038
|
-
*/
|
|
2039
|
-
const array$1 = (O) => make$50((self, that) => {
|
|
2040
|
-
const aLen = self.length;
|
|
2041
|
-
const bLen = that.length;
|
|
2042
|
-
const len = Math.min(aLen, bLen);
|
|
2043
|
-
for (let i = 0; i < len; i++) {
|
|
2044
|
-
const o = O(self[i], that[i]);
|
|
2045
|
-
if (o !== 0) return o;
|
|
2046
|
-
}
|
|
2047
|
-
return number$2(aLen, bLen);
|
|
2048
|
-
});
|
|
2049
|
-
/**
|
|
2050
|
-
* This function creates and returns a new `Order` for a struct of values based on the given `Order`s
|
|
2051
|
-
* for each property in the struct.
|
|
2052
|
-
*
|
|
2053
|
-
* @example
|
|
2054
2163
|
* ```ts
|
|
2055
2164
|
* import { Order } from "effect"
|
|
2056
|
-
* import * as assert from "node:assert"
|
|
2057
2165
|
*
|
|
2058
|
-
* const personOrder = Order.
|
|
2059
|
-
* name: Order.
|
|
2060
|
-
* age: Order.
|
|
2166
|
+
* const personOrder = Order.Struct({
|
|
2167
|
+
* name: Order.String,
|
|
2168
|
+
* age: Order.Number
|
|
2061
2169
|
* })
|
|
2062
2170
|
*
|
|
2063
2171
|
* const person1 = { name: "Alice", age: 30 }
|
|
2064
2172
|
* const person2 = { name: "Bob", age: 25 }
|
|
2065
2173
|
* const person3 = { name: "Alice", age: 25 }
|
|
2066
2174
|
*
|
|
2067
|
-
*
|
|
2068
|
-
*
|
|
2069
|
-
*
|
|
2175
|
+
* console.log(personOrder(person1, person2)) // -1 (Alice < Bob)
|
|
2176
|
+
* console.log(personOrder(person1, person3)) // 1 (same name, 30 > 25)
|
|
2177
|
+
* console.log(personOrder(person1, person1)) // 0
|
|
2070
2178
|
* ```
|
|
2071
2179
|
*
|
|
2180
|
+
* See also:
|
|
2181
|
+
* - {@link combine} - Combine orders manually
|
|
2182
|
+
* - {@link mapInput} - Extract and compare by a single property
|
|
2183
|
+
*
|
|
2072
2184
|
* @category combinators
|
|
2073
|
-
* @since
|
|
2185
|
+
* @since 4.0.0
|
|
2074
2186
|
*/
|
|
2075
|
-
|
|
2187
|
+
function Struct$2(fields) {
|
|
2076
2188
|
const keys$1 = Object.keys(fields);
|
|
2077
2189
|
return make$50((self, that) => {
|
|
2078
2190
|
for (const key of keys$1) {
|
|
@@ -2081,165 +2193,289 @@ const struct$2 = (fields) => {
|
|
|
2081
2193
|
}
|
|
2082
2194
|
return 0;
|
|
2083
2195
|
});
|
|
2084
|
-
}
|
|
2196
|
+
}
|
|
2085
2197
|
/**
|
|
2086
|
-
*
|
|
2198
|
+
* Tests whether one value is strictly less than another according to the given order.
|
|
2199
|
+
*
|
|
2200
|
+
* When to use this:
|
|
2201
|
+
* - When you need a boolean predicate instead of an ordering result
|
|
2202
|
+
* - When checking if a value is less than another in conditional logic
|
|
2203
|
+
* - When implementing range checks or comparisons
|
|
2204
|
+
*
|
|
2205
|
+
* Behavior:
|
|
2206
|
+
* - Pure function: does not mutate inputs
|
|
2207
|
+
* - Returns `true` if the order returns `-1` (first value is less than second)
|
|
2208
|
+
* - Returns `false` for equal or greater values
|
|
2209
|
+
* - Supports curried and uncurried call styles
|
|
2210
|
+
*
|
|
2211
|
+
* **Example** (Less Than)
|
|
2087
2212
|
*
|
|
2088
|
-
* @example
|
|
2089
2213
|
* ```ts
|
|
2090
2214
|
* import { Order } from "effect"
|
|
2091
|
-
* import * as assert from "node:assert"
|
|
2092
2215
|
*
|
|
2093
|
-
* const
|
|
2216
|
+
* const isLessThanNumber = Order.isLessThan(Order.Number)
|
|
2094
2217
|
*
|
|
2095
|
-
*
|
|
2096
|
-
*
|
|
2097
|
-
*
|
|
2218
|
+
* console.log(isLessThanNumber(1, 2)) // true
|
|
2219
|
+
* console.log(isLessThanNumber(2, 1)) // false
|
|
2220
|
+
* console.log(isLessThanNumber(1, 1)) // false
|
|
2098
2221
|
* ```
|
|
2099
2222
|
*
|
|
2223
|
+
* See also:
|
|
2224
|
+
* - {@link isLessThanOrEqualTo} - Non-strict less than or equal
|
|
2225
|
+
* - {@link isGreaterThan} - Strict greater than
|
|
2226
|
+
*
|
|
2100
2227
|
* @category predicates
|
|
2101
2228
|
* @since 2.0.0
|
|
2102
2229
|
*/
|
|
2103
|
-
const
|
|
2230
|
+
const isLessThan$3 = (O) => dual(2, (self, that) => O(self, that) === -1);
|
|
2104
2231
|
/**
|
|
2105
|
-
*
|
|
2232
|
+
* Tests whether one value is strictly greater than another according to the given order.
|
|
2233
|
+
*
|
|
2234
|
+
* When to use this:
|
|
2235
|
+
* - When you need a boolean predicate instead of an ordering result
|
|
2236
|
+
* - When checking if a value is greater than another in conditional logic
|
|
2237
|
+
* - When implementing range checks or comparisons
|
|
2238
|
+
*
|
|
2239
|
+
* Behavior:
|
|
2240
|
+
* - Pure function: does not mutate inputs
|
|
2241
|
+
* - Returns `true` if the order returns `1` (first value is greater than second)
|
|
2242
|
+
* - Returns `false` for equal or lesser values
|
|
2243
|
+
* - Supports curried and uncurried call styles
|
|
2244
|
+
*
|
|
2245
|
+
* **Example** (Greater Than)
|
|
2106
2246
|
*
|
|
2107
|
-
* @example
|
|
2108
2247
|
* ```ts
|
|
2109
2248
|
* import { Order } from "effect"
|
|
2110
|
-
* import * as assert from "node:assert"
|
|
2111
2249
|
*
|
|
2112
|
-
* const
|
|
2250
|
+
* const isGreaterThanNumber = Order.isGreaterThan(Order.Number)
|
|
2113
2251
|
*
|
|
2114
|
-
*
|
|
2115
|
-
*
|
|
2116
|
-
*
|
|
2252
|
+
* console.log(isGreaterThanNumber(2, 1)) // true
|
|
2253
|
+
* console.log(isGreaterThanNumber(1, 2)) // false
|
|
2254
|
+
* console.log(isGreaterThanNumber(1, 1)) // false
|
|
2117
2255
|
* ```
|
|
2118
2256
|
*
|
|
2257
|
+
* See also:
|
|
2258
|
+
* - {@link isGreaterThanOrEqualTo} - Non-strict greater than or equal
|
|
2259
|
+
* - {@link isLessThan} - Strict less than
|
|
2260
|
+
*
|
|
2119
2261
|
* @category predicates
|
|
2120
2262
|
* @since 2.0.0
|
|
2121
2263
|
*/
|
|
2122
|
-
const
|
|
2264
|
+
const isGreaterThan$4 = (O) => dual(2, (self, that) => O(self, that) === 1);
|
|
2123
2265
|
/**
|
|
2124
|
-
*
|
|
2266
|
+
* Tests whether one value is less than or equal to another according to the given order.
|
|
2267
|
+
*
|
|
2268
|
+
* When to use this:
|
|
2269
|
+
* - When you need a boolean predicate for non-strict comparison
|
|
2270
|
+
* - When checking if a value is within a range (inclusive lower bound)
|
|
2271
|
+
* - When implementing inclusive comparisons
|
|
2272
|
+
*
|
|
2273
|
+
* Behavior:
|
|
2274
|
+
* - Pure function: does not mutate inputs
|
|
2275
|
+
* - Returns `true` if the order returns `-1` or `0` (less than or equal)
|
|
2276
|
+
* - Returns `false` only if the order returns `1` (greater than)
|
|
2277
|
+
* - Supports curried and uncurried call styles
|
|
2278
|
+
*
|
|
2279
|
+
* **Example** (Less Than Or Equal)
|
|
2125
2280
|
*
|
|
2126
|
-
* @example
|
|
2127
2281
|
* ```ts
|
|
2128
2282
|
* import { Order } from "effect"
|
|
2129
|
-
* import * as assert from "node:assert"
|
|
2130
2283
|
*
|
|
2131
|
-
* const
|
|
2284
|
+
* const isLessThanOrEqualToNumber = Order.isLessThanOrEqualTo(Order.Number)
|
|
2132
2285
|
*
|
|
2133
|
-
*
|
|
2134
|
-
*
|
|
2135
|
-
*
|
|
2286
|
+
* console.log(isLessThanOrEqualToNumber(1, 2)) // true
|
|
2287
|
+
* console.log(isLessThanOrEqualToNumber(1, 1)) // true
|
|
2288
|
+
* console.log(isLessThanOrEqualToNumber(2, 1)) // false
|
|
2136
2289
|
* ```
|
|
2137
2290
|
*
|
|
2291
|
+
* See also:
|
|
2292
|
+
* - {@link isLessThan} - Strict less than
|
|
2293
|
+
* - {@link isGreaterThan} - Strict greater than
|
|
2294
|
+
*
|
|
2138
2295
|
* @category predicates
|
|
2139
2296
|
* @since 2.0.0
|
|
2140
2297
|
*/
|
|
2141
|
-
const
|
|
2298
|
+
const isLessThanOrEqualTo$3 = (O) => dual(2, (self, that) => O(self, that) !== 1);
|
|
2142
2299
|
/**
|
|
2143
|
-
*
|
|
2300
|
+
* Tests whether one value is greater than or equal to another according to the given order.
|
|
2301
|
+
*
|
|
2302
|
+
* When to use this:
|
|
2303
|
+
* - When you need a boolean predicate for non-strict comparison
|
|
2304
|
+
* - When checking if a value is within a range (inclusive upper bound)
|
|
2305
|
+
* - When implementing inclusive comparisons
|
|
2306
|
+
*
|
|
2307
|
+
* Behavior:
|
|
2308
|
+
* - Pure function: does not mutate inputs
|
|
2309
|
+
* - Returns `true` if the order returns `1` or `0` (greater than or equal)
|
|
2310
|
+
* - Returns `false` only if the order returns `-1` (less than)
|
|
2311
|
+
* - Supports curried and uncurried call styles
|
|
2312
|
+
*
|
|
2313
|
+
* **Example** (Greater Than Or Equal)
|
|
2144
2314
|
*
|
|
2145
|
-
* @example
|
|
2146
2315
|
* ```ts
|
|
2147
2316
|
* import { Order } from "effect"
|
|
2148
|
-
* import * as assert from "node:assert"
|
|
2149
2317
|
*
|
|
2150
|
-
* const
|
|
2318
|
+
* const isGreaterThanOrEqualToNumber = Order.isGreaterThanOrEqualTo(Order.Number)
|
|
2151
2319
|
*
|
|
2152
|
-
*
|
|
2153
|
-
*
|
|
2154
|
-
*
|
|
2320
|
+
* console.log(isGreaterThanOrEqualToNumber(2, 1)) // true
|
|
2321
|
+
* console.log(isGreaterThanOrEqualToNumber(1, 1)) // true
|
|
2322
|
+
* console.log(isGreaterThanOrEqualToNumber(1, 2)) // false
|
|
2155
2323
|
* ```
|
|
2156
2324
|
*
|
|
2325
|
+
* See also:
|
|
2326
|
+
* - {@link isGreaterThan} - Strict greater than
|
|
2327
|
+
* - {@link isLessThanOrEqualTo} - Less than or equal
|
|
2328
|
+
*
|
|
2157
2329
|
* @category predicates
|
|
2158
2330
|
* @since 2.0.0
|
|
2159
2331
|
*/
|
|
2160
|
-
const
|
|
2332
|
+
const isGreaterThanOrEqualTo$3 = (O) => dual(2, (self, that) => O(self, that) !== -1);
|
|
2161
2333
|
/**
|
|
2162
|
-
*
|
|
2334
|
+
* Returns the minimum of two values according to the given order. If they are equal, returns the first argument.
|
|
2335
|
+
*
|
|
2336
|
+
* When to use this:
|
|
2337
|
+
* - When you need to find the smaller of two values
|
|
2338
|
+
* - When implementing min/max operations
|
|
2339
|
+
* - When selecting values based on ordering
|
|
2340
|
+
*
|
|
2341
|
+
* Behavior:
|
|
2342
|
+
* - Pure function: does not mutate inputs
|
|
2343
|
+
* - Returns the value that compares as less than or equal to the other
|
|
2344
|
+
* - If values are equal, returns the first argument
|
|
2345
|
+
* - Supports curried and uncurried call styles
|
|
2346
|
+
*
|
|
2347
|
+
* **Example** (Minimum Value)
|
|
2163
2348
|
*
|
|
2164
|
-
* @example
|
|
2165
2349
|
* ```ts
|
|
2166
2350
|
* import { Order } from "effect"
|
|
2167
|
-
* import * as assert from "node:assert"
|
|
2168
2351
|
*
|
|
2169
|
-
* const minNumber = Order.min(Order.
|
|
2352
|
+
* const minNumber = Order.min(Order.Number)
|
|
2170
2353
|
*
|
|
2171
|
-
*
|
|
2172
|
-
*
|
|
2173
|
-
*
|
|
2354
|
+
* console.log(minNumber(1, 2)) // 1
|
|
2355
|
+
* console.log(minNumber(2, 1)) // 1
|
|
2356
|
+
* console.log(minNumber(1, 1)) // 1
|
|
2174
2357
|
* ```
|
|
2175
2358
|
*
|
|
2359
|
+
* See also:
|
|
2360
|
+
* - {@link max} - Maximum of two values
|
|
2361
|
+
* - {@link clamp} - Clamp a value between min and max
|
|
2362
|
+
*
|
|
2176
2363
|
* @category comparisons
|
|
2177
2364
|
* @since 2.0.0
|
|
2178
2365
|
*/
|
|
2179
2366
|
const min$2 = (O) => dual(2, (self, that) => self === that || O(self, that) < 1 ? self : that);
|
|
2180
2367
|
/**
|
|
2181
|
-
*
|
|
2368
|
+
* Returns the maximum of two values according to the given order. If they are equal, returns the first argument.
|
|
2369
|
+
*
|
|
2370
|
+
* When to use this:
|
|
2371
|
+
* - When you need to find the larger of two values
|
|
2372
|
+
* - When implementing min/max operations
|
|
2373
|
+
* - When selecting values based on ordering
|
|
2374
|
+
*
|
|
2375
|
+
* Behavior:
|
|
2376
|
+
* - Pure function: does not mutate inputs
|
|
2377
|
+
* - Returns the value that compares as greater than or equal to the other
|
|
2378
|
+
* - If values are equal, returns the first argument
|
|
2379
|
+
* - Supports curried and uncurried call styles
|
|
2380
|
+
*
|
|
2381
|
+
* **Example** (Maximum Value)
|
|
2182
2382
|
*
|
|
2183
|
-
* @example
|
|
2184
2383
|
* ```ts
|
|
2185
2384
|
* import { Order } from "effect"
|
|
2186
|
-
* import * as assert from "node:assert"
|
|
2187
2385
|
*
|
|
2188
|
-
* const maxNumber = Order.max(Order.
|
|
2386
|
+
* const maxNumber = Order.max(Order.Number)
|
|
2189
2387
|
*
|
|
2190
|
-
*
|
|
2191
|
-
*
|
|
2192
|
-
*
|
|
2388
|
+
* console.log(maxNumber(1, 2)) // 2
|
|
2389
|
+
* console.log(maxNumber(2, 1)) // 2
|
|
2390
|
+
* console.log(maxNumber(1, 1)) // 1
|
|
2193
2391
|
* ```
|
|
2194
2392
|
*
|
|
2393
|
+
* See also:
|
|
2394
|
+
* - {@link min} - Minimum of two values
|
|
2395
|
+
* - {@link clamp} - Clamp a value between min and max
|
|
2396
|
+
*
|
|
2195
2397
|
* @category comparisons
|
|
2196
2398
|
* @since 2.0.0
|
|
2197
2399
|
*/
|
|
2198
2400
|
const max$2 = (O) => dual(2, (self, that) => self === that || O(self, that) > -1 ? self : that);
|
|
2199
2401
|
/**
|
|
2200
|
-
*
|
|
2402
|
+
* Clamps a value between a minimum and a maximum according to the given order.
|
|
2403
|
+
*
|
|
2404
|
+
* When to use this:
|
|
2405
|
+
* - When you need to restrict a value to a specific range
|
|
2406
|
+
* - When implementing bounds checking and normalization
|
|
2407
|
+
* - When ensuring values stay within valid ranges
|
|
2408
|
+
*
|
|
2409
|
+
* Behavior:
|
|
2410
|
+
* - Pure function: does not mutate inputs
|
|
2411
|
+
* - Returns the value if it's between minimum and maximum (inclusive)
|
|
2412
|
+
* - Returns minimum if the value is less than minimum
|
|
2413
|
+
* - Returns maximum if the value is greater than maximum
|
|
2414
|
+
* - Supports curried and uncurried call styles
|
|
2415
|
+
* - Requires that minimum <= maximum according to the order
|
|
2416
|
+
*
|
|
2417
|
+
* **Example** (Clamping Values)
|
|
2201
2418
|
*
|
|
2202
|
-
* @example
|
|
2203
2419
|
* ```ts
|
|
2204
2420
|
* import { Order } from "effect"
|
|
2205
|
-
* import * as N from "effect/Number"
|
|
2206
|
-
* import * as assert from "node:assert"
|
|
2207
2421
|
*
|
|
2208
|
-
* const clamp = Order.clamp(
|
|
2422
|
+
* const clamp = Order.clamp(Order.Number)({ minimum: 1, maximum: 5 })
|
|
2209
2423
|
*
|
|
2210
|
-
*
|
|
2211
|
-
*
|
|
2212
|
-
*
|
|
2424
|
+
* console.log(clamp(3)) // 3
|
|
2425
|
+
* console.log(clamp(0)) // 1
|
|
2426
|
+
* console.log(clamp(6)) // 5
|
|
2213
2427
|
* ```
|
|
2214
2428
|
*
|
|
2429
|
+
* See also:
|
|
2430
|
+
* - {@link min} - Minimum of two values
|
|
2431
|
+
* - {@link max} - Maximum of two values
|
|
2432
|
+
* - {@link isBetween} - Check if a value is within a range
|
|
2433
|
+
*
|
|
2215
2434
|
* @category comparisons
|
|
2216
2435
|
* @since 2.0.0
|
|
2217
2436
|
*/
|
|
2218
2437
|
const clamp$2 = (O) => dual(2, (self, options) => min$2(O)(options.maximum, max$2(O)(options.minimum, self)));
|
|
2219
2438
|
/**
|
|
2220
|
-
*
|
|
2439
|
+
* Tests whether a value is between a minimum and a maximum (inclusive) according to the given order.
|
|
2440
|
+
*
|
|
2441
|
+
* When to use this:
|
|
2442
|
+
* - When validating that a value is within a valid range
|
|
2443
|
+
* - When implementing range checks for bounds validation
|
|
2444
|
+
* - When filtering or selecting values within a range
|
|
2445
|
+
*
|
|
2446
|
+
* Behavior:
|
|
2447
|
+
* - Pure function: does not mutate inputs
|
|
2448
|
+
* - Returns `true` if the value is greater than or equal to minimum and less than or equal to maximum
|
|
2449
|
+
* - Returns `false` if the value is outside the range
|
|
2450
|
+
* - Supports curried and uncurried call styles
|
|
2451
|
+
* - Both bounds are inclusive
|
|
2452
|
+
*
|
|
2453
|
+
* **Example** (Checking Range)
|
|
2221
2454
|
*
|
|
2222
|
-
* @example
|
|
2223
2455
|
* ```ts
|
|
2224
2456
|
* import { Order } from "effect"
|
|
2225
|
-
* import * as assert from "node:assert"
|
|
2226
2457
|
*
|
|
2227
|
-
* const betweenNumber = Order.
|
|
2458
|
+
* const betweenNumber = Order.isBetween(Order.Number)
|
|
2228
2459
|
*
|
|
2229
|
-
*
|
|
2230
|
-
*
|
|
2231
|
-
*
|
|
2232
|
-
*
|
|
2233
|
-
*
|
|
2460
|
+
* console.log(betweenNumber(5, { minimum: 1, maximum: 10 })) // true
|
|
2461
|
+
* console.log(betweenNumber(1, { minimum: 1, maximum: 10 })) // true
|
|
2462
|
+
* console.log(betweenNumber(10, { minimum: 1, maximum: 10 })) // true
|
|
2463
|
+
* console.log(betweenNumber(0, { minimum: 1, maximum: 10 })) // false
|
|
2464
|
+
* console.log(betweenNumber(11, { minimum: 1, maximum: 10 })) // false
|
|
2234
2465
|
* ```
|
|
2235
2466
|
*
|
|
2467
|
+
* See also:
|
|
2468
|
+
* - {@link clamp} - Clamp a value to a range
|
|
2469
|
+
* - {@link isLessThanOrEqualTo} - Less than or equal check
|
|
2470
|
+
* - {@link isGreaterThanOrEqualTo} - Greater than or equal check
|
|
2471
|
+
*
|
|
2236
2472
|
* @category predicates
|
|
2237
|
-
* @since
|
|
2473
|
+
* @since 4.0.0
|
|
2238
2474
|
*/
|
|
2239
|
-
const
|
|
2475
|
+
const isBetween$1 = (O) => dual(2, (self, options) => !isLessThan$3(O)(self, options.minimum) && !isGreaterThan$4(O)(self, options.maximum));
|
|
2240
2476
|
|
|
2241
2477
|
//#endregion
|
|
2242
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
2478
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/UndefinedOr.js
|
|
2243
2479
|
/**
|
|
2244
2480
|
* @since 4.0.0
|
|
2245
2481
|
*/
|
|
@@ -2260,7 +2496,7 @@ const liftThrowable = (f) => (...a) => {
|
|
|
2260
2496
|
};
|
|
2261
2497
|
|
|
2262
2498
|
//#endregion
|
|
2263
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
2499
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/Duration.js
|
|
2264
2500
|
const TypeId$55 = "~effect/time/Duration";
|
|
2265
2501
|
const bigint0$1 = /* @__PURE__ */ BigInt(0);
|
|
2266
2502
|
const bigint1e3 = /* @__PURE__ */ BigInt(1e3);
|
|
@@ -2773,7 +3009,7 @@ const Equivalence$4 = (self, that) => matchPair(self, that, {
|
|
|
2773
3009
|
const equals = /* @__PURE__ */ dual(2, (self, that) => Equivalence$4(self, that));
|
|
2774
3010
|
|
|
2775
3011
|
//#endregion
|
|
2776
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
3012
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/Utils.js
|
|
2777
3013
|
/**
|
|
2778
3014
|
* @since 2.0.0
|
|
2779
3015
|
*/
|
|
@@ -2851,7 +3087,7 @@ const internalCall = isNotOptimizedAway ? standard[InternalTypeId] : forced[Inte
|
|
|
2851
3087
|
const genConstructor = function* () {}.constructor;
|
|
2852
3088
|
|
|
2853
3089
|
//#endregion
|
|
2854
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
3090
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/internal/core.js
|
|
2855
3091
|
/** @internal */
|
|
2856
3092
|
const EffectTypeId = `~effect/Effect`;
|
|
2857
3093
|
/** @internal */
|
|
@@ -2964,7 +3200,7 @@ var CauseImpl = class {
|
|
|
2964
3200
|
return isCause$1(that) && this.failures.length === that.failures.length && this.failures.every((e, i) => equals$1(e, that.failures[i]));
|
|
2965
3201
|
}
|
|
2966
3202
|
[symbol$3]() {
|
|
2967
|
-
return array
|
|
3203
|
+
return array(this.failures);
|
|
2968
3204
|
}
|
|
2969
3205
|
};
|
|
2970
3206
|
const annotationsMap = /* @__PURE__ */ new WeakMap();
|
|
@@ -3220,18 +3456,26 @@ var NoSuchElementError$1 = class extends TaggedError$1("NoSuchElementError") {
|
|
|
3220
3456
|
};
|
|
3221
3457
|
|
|
3222
3458
|
//#endregion
|
|
3223
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
3459
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/Equivalence.js
|
|
3224
3460
|
/**
|
|
3225
3461
|
* Creates a custom equivalence relation with an optimized reference equality check.
|
|
3226
3462
|
*
|
|
3227
|
-
*
|
|
3228
|
-
*
|
|
3463
|
+
* When to use this:
|
|
3464
|
+
* - When you need a custom equivalence that isn't just strict equality
|
|
3465
|
+
* - When creating equivalences for complex types with custom comparison logic
|
|
3466
|
+
* - When you want the performance benefit of reference equality optimization
|
|
3467
|
+
*
|
|
3468
|
+
* Behavior:
|
|
3469
|
+
* - Does not mutate inputs
|
|
3470
|
+
* - First checks reference equality (`===`) for performance; if values are identical, returns `true` without calling the function
|
|
3471
|
+
* - Falls back to the provided equivalence function if values are not the same reference
|
|
3472
|
+
* - The provided function must satisfy reflexive, symmetric, and transitive properties
|
|
3473
|
+
*
|
|
3474
|
+
* **Example** (Case-insensitive string equivalence)
|
|
3229
3475
|
*
|
|
3230
|
-
* @example
|
|
3231
3476
|
* ```ts
|
|
3232
3477
|
* import { Equivalence } from "effect"
|
|
3233
3478
|
*
|
|
3234
|
-
* // Case-insensitive string equivalence
|
|
3235
3479
|
* const caseInsensitive = Equivalence.make<string>((a, b) =>
|
|
3236
3480
|
* a.toLowerCase() === b.toLowerCase()
|
|
3237
3481
|
* )
|
|
@@ -3242,14 +3486,21 @@ var NoSuchElementError$1 = class extends TaggedError$1("NoSuchElementError") {
|
|
|
3242
3486
|
* // Same reference optimization
|
|
3243
3487
|
* const str = "test"
|
|
3244
3488
|
* console.log(caseInsensitive(str, str)) // true (fast path)
|
|
3489
|
+
* ```
|
|
3490
|
+
*
|
|
3491
|
+
* **Example** (Numeric tolerance equivalence)
|
|
3492
|
+
*
|
|
3493
|
+
* ```ts
|
|
3494
|
+
* import { Equivalence } from "effect"
|
|
3245
3495
|
*
|
|
3246
|
-
* // Numeric tolerance equivalence
|
|
3247
3496
|
* const tolerance = Equivalence.make<number>((a, b) => Math.abs(a - b) < 0.0001)
|
|
3248
3497
|
*
|
|
3249
3498
|
* console.log(tolerance(1.0, 1.0001)) // false
|
|
3250
3499
|
* console.log(tolerance(1.0, 1.00001)) // true
|
|
3251
3500
|
* ```
|
|
3252
3501
|
*
|
|
3502
|
+
* See also: {@link strictEqual}, {@link mapInput}
|
|
3503
|
+
*
|
|
3253
3504
|
* @category constructors
|
|
3254
3505
|
* @since 2.0.0
|
|
3255
3506
|
*/
|
|
@@ -3258,51 +3509,74 @@ const isStrictEquivalent = (x, y) => x === y;
|
|
|
3258
3509
|
/**
|
|
3259
3510
|
* Creates an equivalence relation that uses strict equality (`===`) to compare values.
|
|
3260
3511
|
*
|
|
3261
|
-
*
|
|
3262
|
-
*
|
|
3512
|
+
* When to use this:
|
|
3513
|
+
* - For primitive types (numbers, strings, booleans) where `===` is appropriate
|
|
3514
|
+
* - When you need reference equality for objects (same object instance)
|
|
3515
|
+
* - As a building block for more complex equivalences via {@link mapInput} or {@link combine}
|
|
3516
|
+
* - When performance is critical and you don't need structural equality
|
|
3517
|
+
*
|
|
3518
|
+
* Behavior:
|
|
3519
|
+
* - Does not mutate inputs
|
|
3520
|
+
* - Uses JavaScript's strict equality operator (`===`)
|
|
3521
|
+
* - For primitives: compares values directly
|
|
3522
|
+
* - For objects: compares by reference (same object instance)
|
|
3523
|
+
* - Note: `NaN !== NaN`, so `NaN` values are never considered equivalent
|
|
3524
|
+
*
|
|
3525
|
+
* **Example** (Primitive types)
|
|
3263
3526
|
*
|
|
3264
|
-
* @example
|
|
3265
3527
|
* ```ts
|
|
3266
3528
|
* import { Equivalence } from "effect"
|
|
3267
3529
|
*
|
|
3268
|
-
* const strictEq = Equivalence.
|
|
3530
|
+
* const strictEq = Equivalence.strictEqual<number>()
|
|
3269
3531
|
*
|
|
3270
3532
|
* console.log(strictEq(1, 1)) // true
|
|
3271
3533
|
* console.log(strictEq(1, 2)) // false
|
|
3272
3534
|
* console.log(strictEq(NaN, NaN)) // false (NaN !== NaN)
|
|
3535
|
+
* ```
|
|
3536
|
+
*
|
|
3537
|
+
* **Example** (Reference equality for objects)
|
|
3538
|
+
*
|
|
3539
|
+
* ```ts
|
|
3540
|
+
* import { Equivalence } from "effect"
|
|
3273
3541
|
*
|
|
3274
|
-
* // Reference equality for objects
|
|
3275
3542
|
* const obj = { value: 42 }
|
|
3276
|
-
* const strictObjEq = Equivalence.
|
|
3543
|
+
* const strictObjEq = Equivalence.strictEqual<typeof obj>()
|
|
3277
3544
|
*
|
|
3278
3545
|
* console.log(strictObjEq(obj, obj)) // true
|
|
3279
3546
|
* console.log(strictObjEq(obj, { value: 42 })) // false (different references)
|
|
3280
3547
|
* ```
|
|
3281
3548
|
*
|
|
3549
|
+
* See also: {@link make}, {@link Equal} (for structural equality)
|
|
3550
|
+
*
|
|
3282
3551
|
* @category constructors
|
|
3283
|
-
* @since
|
|
3552
|
+
* @since 4.0.0
|
|
3284
3553
|
*/
|
|
3285
|
-
const
|
|
3554
|
+
const strictEqual = () => isStrictEquivalent;
|
|
3286
3555
|
/**
|
|
3287
3556
|
* Creates an equivalence for tuples with heterogeneous element types.
|
|
3288
3557
|
*
|
|
3289
|
-
*
|
|
3290
|
-
*
|
|
3291
|
-
*
|
|
3558
|
+
* When to use this:
|
|
3559
|
+
* - When comparing tuples with different types at each position
|
|
3560
|
+
* - When you need different equivalence logic for each tuple element
|
|
3561
|
+
* - When working with fixed-length tuples (not arrays)
|
|
3562
|
+
* - Prefer over `Array` when you have a known tuple structure with different types
|
|
3292
3563
|
*
|
|
3293
|
-
*
|
|
3294
|
-
*
|
|
3295
|
-
*
|
|
3564
|
+
* Behavior:
|
|
3565
|
+
* - Does not mutate inputs
|
|
3566
|
+
* - Requires tuples to have the same length; different lengths are never equivalent
|
|
3567
|
+
* - Applies each equivalence to the corresponding element position
|
|
3568
|
+
* - Returns `true` only if all elements are equivalent according to their respective equivalences
|
|
3569
|
+
* - The result is also an equivalence (satisfies reflexive, symmetric, transitive properties)
|
|
3570
|
+
*
|
|
3571
|
+
* **Example** (Homogeneous tuple equivalence)
|
|
3296
3572
|
*
|
|
3297
|
-
* @example
|
|
3298
3573
|
* ```ts
|
|
3299
3574
|
* import { Equivalence } from "effect"
|
|
3300
3575
|
*
|
|
3301
|
-
*
|
|
3302
|
-
*
|
|
3303
|
-
* Equivalence.
|
|
3304
|
-
* Equivalence.
|
|
3305
|
-
* Equivalence.strict<string>()
|
|
3576
|
+
* const stringTupleEq = Equivalence.Tuple([
|
|
3577
|
+
* Equivalence.strictEqual<string>(),
|
|
3578
|
+
* Equivalence.strictEqual<string>(),
|
|
3579
|
+
* Equivalence.strictEqual<string>()
|
|
3306
3580
|
* ])
|
|
3307
3581
|
*
|
|
3308
3582
|
* const tuple1 = ["hello", "world", "test"] as const
|
|
@@ -3311,16 +3585,21 @@ const strict = () => isStrictEquivalent;
|
|
|
3311
3585
|
*
|
|
3312
3586
|
* console.log(stringTupleEq(tuple1, tuple2)) // true
|
|
3313
3587
|
* console.log(stringTupleEq(tuple1, tuple3)) // false (different third element)
|
|
3588
|
+
* ```
|
|
3589
|
+
*
|
|
3590
|
+
* **Example** (Heterogeneous tuple with custom equivalences)
|
|
3591
|
+
*
|
|
3592
|
+
* ```ts
|
|
3593
|
+
* import { Equivalence } from "effect"
|
|
3314
3594
|
*
|
|
3315
|
-
* // Custom equivalences for each position
|
|
3316
3595
|
* const caseInsensitive = Equivalence.mapInput(
|
|
3317
|
-
* Equivalence.
|
|
3596
|
+
* Equivalence.strictEqual<string>(),
|
|
3318
3597
|
* (s: string) => s.toLowerCase()
|
|
3319
3598
|
* )
|
|
3320
3599
|
*
|
|
3321
|
-
* const customTupleEq = Equivalence.
|
|
3600
|
+
* const customTupleEq = Equivalence.Tuple([
|
|
3601
|
+
* caseInsensitive,
|
|
3322
3602
|
* caseInsensitive,
|
|
3323
|
-
* caseInsensitive, // Case-insensitive string comparison
|
|
3324
3603
|
* caseInsensitive
|
|
3325
3604
|
* ])
|
|
3326
3605
|
*
|
|
@@ -3329,10 +3608,12 @@ const strict = () => isStrictEquivalent;
|
|
|
3329
3608
|
* ) // true
|
|
3330
3609
|
* ```
|
|
3331
3610
|
*
|
|
3611
|
+
* See also: {@link Array}, {@link Struct}
|
|
3612
|
+
*
|
|
3332
3613
|
* @category combinators
|
|
3333
|
-
* @since
|
|
3614
|
+
* @since 4.0.0
|
|
3334
3615
|
*/
|
|
3335
|
-
function
|
|
3616
|
+
function Tuple$1(elements) {
|
|
3336
3617
|
return make$48((self, that) => {
|
|
3337
3618
|
if (self.length !== that.length) return false;
|
|
3338
3619
|
for (let i = 0; i < self.length; i++) if (!elements[i](self[i], that[i])) return false;
|
|
@@ -3342,37 +3623,54 @@ function tuple$1(elements) {
|
|
|
3342
3623
|
/**
|
|
3343
3624
|
* Creates an equivalence for arrays where all elements are compared using the same equivalence.
|
|
3344
3625
|
*
|
|
3345
|
-
*
|
|
3346
|
-
*
|
|
3626
|
+
* When to use this:
|
|
3627
|
+
* - When comparing arrays with homogeneous element types
|
|
3628
|
+
* - When all elements should use the same equivalence logic
|
|
3629
|
+
* - When working with variable-length arrays (not fixed tuples)
|
|
3630
|
+
* - Prefer over `Tuple` when you have arrays of the same type
|
|
3631
|
+
*
|
|
3632
|
+
* Behavior:
|
|
3633
|
+
* - Does not mutate inputs
|
|
3634
|
+
* - Requires arrays to have the same length; different lengths are never equivalent
|
|
3635
|
+
* - Compares elements positionally (index 0 with index 0, etc.)
|
|
3636
|
+
* - Returns `true` only if all corresponding elements are equivalent
|
|
3637
|
+
* - Empty arrays are considered equivalent
|
|
3638
|
+
* - The result is also an equivalence (satisfies reflexive, symmetric, transitive properties)
|
|
3639
|
+
*
|
|
3640
|
+
* **Example** (Number array equivalence)
|
|
3347
3641
|
*
|
|
3348
|
-
* @example
|
|
3349
3642
|
* ```ts
|
|
3350
3643
|
* import { Equivalence } from "effect"
|
|
3351
3644
|
*
|
|
3352
|
-
* const numberArrayEq = Equivalence.
|
|
3645
|
+
* const numberArrayEq = Equivalence.Array(Equivalence.strictEqual<number>())
|
|
3353
3646
|
*
|
|
3354
3647
|
* console.log(numberArrayEq([1, 2, 3], [1, 2, 3])) // true
|
|
3355
3648
|
* console.log(numberArrayEq([1, 2, 3], [1, 2, 4])) // false
|
|
3356
3649
|
* console.log(numberArrayEq([1, 2], [1, 2, 3])) // false (different length)
|
|
3650
|
+
* ```
|
|
3651
|
+
*
|
|
3652
|
+
* **Example** (Case-insensitive string array)
|
|
3653
|
+
*
|
|
3654
|
+
* ```ts
|
|
3655
|
+
* import { Equivalence } from "effect"
|
|
3357
3656
|
*
|
|
3358
|
-
* // Case-insensitive string array
|
|
3359
3657
|
* const caseInsensitive = Equivalence.mapInput(
|
|
3360
|
-
* Equivalence.
|
|
3658
|
+
* Equivalence.strictEqual<string>(),
|
|
3361
3659
|
* (s: string) => s.toLowerCase()
|
|
3362
3660
|
* )
|
|
3363
|
-
* const stringArrayEq = Equivalence.
|
|
3661
|
+
* const stringArrayEq = Equivalence.Array(caseInsensitive)
|
|
3364
3662
|
*
|
|
3365
3663
|
* console.log(stringArrayEq(["Hello", "World"], ["HELLO", "WORLD"])) // true
|
|
3366
3664
|
* console.log(stringArrayEq(["Hello"], ["Hi"])) // false
|
|
3367
|
-
*
|
|
3368
|
-
* // Empty arrays
|
|
3369
|
-
* console.log(numberArrayEq([], [])) // true
|
|
3665
|
+
* console.log(stringArrayEq([], [])) // true (empty arrays)
|
|
3370
3666
|
* ```
|
|
3371
3667
|
*
|
|
3668
|
+
* See also: {@link Tuple}, {@link Record}
|
|
3669
|
+
*
|
|
3372
3670
|
* @category combinators
|
|
3373
|
-
* @since
|
|
3671
|
+
* @since 4.0.0
|
|
3374
3672
|
*/
|
|
3375
|
-
function
|
|
3673
|
+
function Array$3(item) {
|
|
3376
3674
|
return make$48((self, that) => {
|
|
3377
3675
|
if (self.length !== that.length) return false;
|
|
3378
3676
|
for (let i = 0; i < self.length; i++) if (!item(self[i], that[i])) return false;
|
|
@@ -3380,13 +3678,24 @@ function array(item) {
|
|
|
3380
3678
|
});
|
|
3381
3679
|
}
|
|
3382
3680
|
/**
|
|
3383
|
-
* Creates an equivalence for objects by comparing their properties using
|
|
3384
|
-
* provided equivalences.
|
|
3681
|
+
* Creates an equivalence for objects by comparing their properties using provided equivalences.
|
|
3385
3682
|
*
|
|
3386
|
-
*
|
|
3387
|
-
*
|
|
3683
|
+
* When to use this:
|
|
3684
|
+
* - When comparing objects with known, fixed property names
|
|
3685
|
+
* - When you need different equivalence logic for different properties
|
|
3686
|
+
* - When working with struct/interface types with specific fields
|
|
3687
|
+
* - Prefer over `Record` when you have a fixed set of known properties
|
|
3688
|
+
*
|
|
3689
|
+
* Behavior:
|
|
3690
|
+
* - Does not mutate inputs
|
|
3691
|
+
* - Compares only the properties specified in the struct definition
|
|
3692
|
+
* - Properties not in the struct are ignored
|
|
3693
|
+
* - Returns `true` only if all specified properties are equivalent according to their equivalences
|
|
3694
|
+
* - Supports both string and symbol keys (via `Reflect.ownKeys`)
|
|
3695
|
+
* - The result is also an equivalence (satisfies reflexive, symmetric, transitive properties)
|
|
3696
|
+
*
|
|
3697
|
+
* **Example** (Struct with different equivalences per field)
|
|
3388
3698
|
*
|
|
3389
|
-
* @example
|
|
3390
3699
|
* ```ts
|
|
3391
3700
|
* import { Equivalence } from "effect"
|
|
3392
3701
|
*
|
|
@@ -3397,14 +3706,14 @@ function array(item) {
|
|
|
3397
3706
|
* }
|
|
3398
3707
|
*
|
|
3399
3708
|
* const caseInsensitive = Equivalence.mapInput(
|
|
3400
|
-
* Equivalence.
|
|
3709
|
+
* Equivalence.strictEqual<string>(),
|
|
3401
3710
|
* (s: string) => s.toLowerCase()
|
|
3402
3711
|
* )
|
|
3403
3712
|
*
|
|
3404
|
-
* const personEq = Equivalence.
|
|
3405
|
-
* name: caseInsensitive,
|
|
3406
|
-
* age: Equivalence.
|
|
3407
|
-
* email: caseInsensitive
|
|
3713
|
+
* const personEq = Equivalence.Struct({
|
|
3714
|
+
* name: caseInsensitive,
|
|
3715
|
+
* age: Equivalence.strictEqual<number>(),
|
|
3716
|
+
* email: caseInsensitive
|
|
3408
3717
|
* })
|
|
3409
3718
|
*
|
|
3410
3719
|
* const person1 = { name: "Alice", age: 30, email: "alice@example.com" }
|
|
@@ -3413,18 +3722,30 @@ function array(item) {
|
|
|
3413
3722
|
*
|
|
3414
3723
|
* console.log(personEq(person1, person2)) // true (case-insensitive match)
|
|
3415
3724
|
* console.log(personEq(person1, person3)) // false (different age)
|
|
3725
|
+
* ```
|
|
3726
|
+
*
|
|
3727
|
+
* **Example** (Partial equivalence for specific fields)
|
|
3728
|
+
*
|
|
3729
|
+
* ```ts
|
|
3730
|
+
* import { Equivalence } from "effect"
|
|
3416
3731
|
*
|
|
3417
|
-
*
|
|
3418
|
-
*
|
|
3419
|
-
*
|
|
3420
|
-
* age: Equivalence.strict<number>()
|
|
3732
|
+
* const nameAgeEq = Equivalence.Struct({
|
|
3733
|
+
* name: Equivalence.strictEqual<string>(),
|
|
3734
|
+
* age: Equivalence.strictEqual<number>()
|
|
3421
3735
|
* })
|
|
3736
|
+
*
|
|
3737
|
+
* // Only compares name and age, ignores other properties
|
|
3738
|
+
* const obj1 = { name: "Alice", age: 30, extra: "ignored" }
|
|
3739
|
+
* const obj2 = { name: "Alice", age: 30, extra: "different" }
|
|
3740
|
+
* console.log(nameAgeEq(obj1, obj2)) // true
|
|
3422
3741
|
* ```
|
|
3423
3742
|
*
|
|
3743
|
+
* See also: {@link Record}, {@link mapInput}, {@link combine}
|
|
3744
|
+
*
|
|
3424
3745
|
* @category combinators
|
|
3425
|
-
* @since
|
|
3746
|
+
* @since 4.0.0
|
|
3426
3747
|
*/
|
|
3427
|
-
function
|
|
3748
|
+
function Struct$1(fields) {
|
|
3428
3749
|
const keys$1 = Reflect.ownKeys(fields);
|
|
3429
3750
|
return make$48((self, that) => {
|
|
3430
3751
|
for (const key of keys$1) if (!fields[key](self[key], that[key])) return false;
|
|
@@ -3433,7 +3754,7 @@ function struct$1(fields) {
|
|
|
3433
3754
|
}
|
|
3434
3755
|
|
|
3435
3756
|
//#endregion
|
|
3436
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
3757
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/internal/option.js
|
|
3437
3758
|
/**
|
|
3438
3759
|
* @since 2.0.0
|
|
3439
3760
|
*/
|
|
@@ -3505,7 +3826,7 @@ const some$1 = (value) => {
|
|
|
3505
3826
|
};
|
|
3506
3827
|
|
|
3507
3828
|
//#endregion
|
|
3508
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
3829
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/internal/result.js
|
|
3509
3830
|
const TypeId$53 = "~effect/data/Result";
|
|
3510
3831
|
const CommonProto = {
|
|
3511
3832
|
[TypeId$53]: {
|
|
@@ -3587,7 +3908,7 @@ const getSuccess$3 = (self) => isFailure$5(self) ? none$4 : some$1(self.success)
|
|
|
3587
3908
|
const fromOption$4 = /* @__PURE__ */ dual(2, (self, onNone) => isNone$1(self) ? fail$9(onNone()) : succeed$6(self.value));
|
|
3588
3909
|
|
|
3589
3910
|
//#endregion
|
|
3590
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
3911
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/Option.js
|
|
3591
3912
|
/**
|
|
3592
3913
|
* Represents the absence of a value by creating an empty `Option`.
|
|
3593
3914
|
*
|
|
@@ -4145,7 +4466,7 @@ const filterMap = flatMap$3;
|
|
|
4145
4466
|
const filter$3 = /* @__PURE__ */ dual(2, (self, predicate) => filterMap(self, (b) => predicate(b) ? some$1(b) : none$4));
|
|
4146
4467
|
|
|
4147
4468
|
//#endregion
|
|
4148
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
4469
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/Result.js
|
|
4149
4470
|
/**
|
|
4150
4471
|
* Constructs a new `Result` holding a `Success` value.
|
|
4151
4472
|
*
|
|
@@ -4413,7 +4734,7 @@ const getOrThrow = /* @__PURE__ */ getOrThrowWith(identity);
|
|
|
4413
4734
|
const succeedNone$2 = /* @__PURE__ */ succeed$5(none$4);
|
|
4414
4735
|
|
|
4415
4736
|
//#endregion
|
|
4416
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
4737
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/Filter.js
|
|
4417
4738
|
const FailTypeId = "~effect/data/Filter/fail";
|
|
4418
4739
|
/**
|
|
4419
4740
|
* @since 4.0.0
|
|
@@ -4662,7 +4983,7 @@ const toOption = (self) => (input) => {
|
|
|
4662
4983
|
};
|
|
4663
4984
|
|
|
4664
4985
|
//#endregion
|
|
4665
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
4986
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/internal/array.js
|
|
4666
4987
|
/**
|
|
4667
4988
|
* @since 2.0.0
|
|
4668
4989
|
*/
|
|
@@ -4670,7 +4991,7 @@ const toOption = (self) => (input) => {
|
|
|
4670
4991
|
const isArrayNonEmpty$1 = (self) => self.length > 0;
|
|
4671
4992
|
|
|
4672
4993
|
//#endregion
|
|
4673
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
4994
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/Tuple.js
|
|
4674
4995
|
/**
|
|
4675
4996
|
* Creates an `Equivalence` for tuples by comparing corresponding elements using the provided `Equivalence`s.
|
|
4676
4997
|
*
|
|
@@ -4679,16 +5000,16 @@ const isArrayNonEmpty$1 = (self) => self.length > 0;
|
|
|
4679
5000
|
* import { Equivalence, Tuple } from "effect"
|
|
4680
5001
|
*
|
|
4681
5002
|
* // Creates an equivalence for tuples with string and number elements
|
|
4682
|
-
* const equivalence = Tuple.
|
|
4683
|
-
* Equivalence.
|
|
4684
|
-
* Equivalence.
|
|
5003
|
+
* const equivalence = Tuple.makeEquivalence([
|
|
5004
|
+
* Equivalence.strictEqual<string>(),
|
|
5005
|
+
* Equivalence.strictEqual<number>()
|
|
4685
5006
|
* ])
|
|
4686
5007
|
* ```
|
|
4687
5008
|
*
|
|
4688
5009
|
* @category Equivalence
|
|
4689
5010
|
* @since 2.0.0
|
|
4690
5011
|
*/
|
|
4691
|
-
const
|
|
5012
|
+
const makeEquivalence$3 = Tuple$1;
|
|
4692
5013
|
/**
|
|
4693
5014
|
* Creates an `Order` for tuples by comparing corresponding elements using the provided `Order`s.
|
|
4694
5015
|
*
|
|
@@ -4699,16 +5020,16 @@ const getEquivalence$3 = tuple$1;
|
|
|
4699
5020
|
* import * as S from "effect/String"
|
|
4700
5021
|
*
|
|
4701
5022
|
* // Creates an order for tuples with string and number elements
|
|
4702
|
-
* const tupleOrder = Tuple.
|
|
5023
|
+
* const tupleOrder = Tuple.makeOrder([S.Order, N.Order])
|
|
4703
5024
|
* ```
|
|
4704
5025
|
*
|
|
4705
5026
|
* @category Ordering
|
|
4706
5027
|
* @since 2.0.0
|
|
4707
5028
|
*/
|
|
4708
|
-
const
|
|
5029
|
+
const makeOrder$2 = Tuple$2;
|
|
4709
5030
|
|
|
4710
5031
|
//#endregion
|
|
4711
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
5032
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/Iterable.js
|
|
4712
5033
|
/**
|
|
4713
5034
|
* Returns the first element that satisfies the specified
|
|
4714
5035
|
* predicate, or `None` if no such element exists.
|
|
@@ -4796,7 +5117,7 @@ const constEmptyIterator = { next() {
|
|
|
4796
5117
|
const empty$13 = () => constEmpty;
|
|
4797
5118
|
|
|
4798
5119
|
//#endregion
|
|
4799
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
5120
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/Record.js
|
|
4800
5121
|
/**
|
|
4801
5122
|
* Creates a new, empty record.
|
|
4802
5123
|
*
|
|
@@ -4957,7 +5278,7 @@ const keys = (self) => Object.keys(self);
|
|
|
4957
5278
|
* import { Equal, Record } from "effect"
|
|
4958
5279
|
* import * as assert from "node:assert"
|
|
4959
5280
|
*
|
|
4960
|
-
* const isSubrecord = Record.isSubrecordBy(Equal.
|
|
5281
|
+
* const isSubrecord = Record.isSubrecordBy(Equal.asEquivalence<number>())
|
|
4961
5282
|
*
|
|
4962
5283
|
* assert.deepStrictEqual(
|
|
4963
5284
|
* Record.isSubrecord({ a: 1 } as Record<string, number>, { a: 1, b: 2 }),
|
|
@@ -4972,8 +5293,8 @@ const keys = (self) => Object.keys(self);
|
|
|
4972
5293
|
* @category predicates
|
|
4973
5294
|
* @since 2.0.0
|
|
4974
5295
|
*/
|
|
4975
|
-
const isSubrecordBy = (equivalence
|
|
4976
|
-
for (const key of keys(self)) if (!has(that, key) || !equivalence
|
|
5296
|
+
const isSubrecordBy = (equivalence) => dual(2, (self, that) => {
|
|
5297
|
+
for (const key of keys(self)) if (!has(that, key) || !equivalence(self[key], that[key])) return false;
|
|
4977
5298
|
return true;
|
|
4978
5299
|
});
|
|
4979
5300
|
/**
|
|
@@ -4985,7 +5306,7 @@ const isSubrecordBy = (equivalence$1) => dual(2, (self, that) => {
|
|
|
4985
5306
|
* import { Equal, Record } from "effect"
|
|
4986
5307
|
* import * as assert from "node:assert"
|
|
4987
5308
|
*
|
|
4988
|
-
* const recordEquivalence = Record.
|
|
5309
|
+
* const recordEquivalence = Record.makeEquivalence(Equal.asEquivalence<number>())
|
|
4989
5310
|
*
|
|
4990
5311
|
* assert.deepStrictEqual(recordEquivalence({ a: 1, b: 2 }, { a: 1, b: 2 }), true)
|
|
4991
5312
|
* assert.deepStrictEqual(recordEquivalence({ a: 1, b: 2 }, { a: 1, b: 3 }), false)
|
|
@@ -4994,13 +5315,13 @@ const isSubrecordBy = (equivalence$1) => dual(2, (self, that) => {
|
|
|
4994
5315
|
* @category instances
|
|
4995
5316
|
* @since 2.0.0
|
|
4996
5317
|
*/
|
|
4997
|
-
const
|
|
4998
|
-
const is$2 = isSubrecordBy(equivalence
|
|
5318
|
+
const makeEquivalence$2 = (equivalence) => {
|
|
5319
|
+
const is$2 = isSubrecordBy(equivalence);
|
|
4999
5320
|
return (self, that) => is$2(self, that) && is$2(that, self);
|
|
5000
5321
|
};
|
|
5001
5322
|
|
|
5002
5323
|
//#endregion
|
|
5003
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
5324
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/Array.js
|
|
5004
5325
|
/**
|
|
5005
5326
|
* This module provides utility functions for working with arrays in TypeScript.
|
|
5006
5327
|
*
|
|
@@ -5297,7 +5618,6 @@ const findFirst = findFirst$1;
|
|
|
5297
5618
|
* @since 2.0.0
|
|
5298
5619
|
*/
|
|
5299
5620
|
const reverse = (self) => Array$2.from(self).reverse();
|
|
5300
|
-
const _equivalence = /* @__PURE__ */ equivalence();
|
|
5301
5621
|
/**
|
|
5302
5622
|
* Calculates the union of two arrays using the provided equivalence relation.
|
|
5303
5623
|
*
|
|
@@ -5337,7 +5657,7 @@ const unionWith = /* @__PURE__ */ dual(3, (self, that, isEquivalent) => {
|
|
|
5337
5657
|
* @category elements
|
|
5338
5658
|
* @since 2.0.0
|
|
5339
5659
|
*/
|
|
5340
|
-
const union$1 = /* @__PURE__ */ dual(2, (self, that) => unionWith(self, that,
|
|
5660
|
+
const union$1 = /* @__PURE__ */ dual(2, (self, that) => unionWith(self, that, asEquivalence()));
|
|
5341
5661
|
/**
|
|
5342
5662
|
* Creates an empty array.
|
|
5343
5663
|
*
|
|
@@ -5393,14 +5713,14 @@ const map$8 = /* @__PURE__ */ dual(2, (self, f) => self.map(f));
|
|
|
5393
5713
|
* ```ts
|
|
5394
5714
|
* import { Array, Order } from "effect"
|
|
5395
5715
|
*
|
|
5396
|
-
* const arrayOrder = Array.
|
|
5716
|
+
* const arrayOrder = Array.makeOrder(Order.Number)
|
|
5397
5717
|
* console.log(arrayOrder([1, 2], [1, 3])) // -1 (first is less than second)
|
|
5398
5718
|
* ```
|
|
5399
5719
|
*
|
|
5400
5720
|
* @category instances
|
|
5401
5721
|
* @since 2.0.0
|
|
5402
5722
|
*/
|
|
5403
|
-
const
|
|
5723
|
+
const makeOrder$1 = Array$4;
|
|
5404
5724
|
/**
|
|
5405
5725
|
* Creates an equivalence relation for arrays.
|
|
5406
5726
|
*
|
|
@@ -5409,14 +5729,14 @@ const getOrder$1 = array$1;
|
|
|
5409
5729
|
* ```ts
|
|
5410
5730
|
* import { Array } from "effect"
|
|
5411
5731
|
*
|
|
5412
|
-
* const eq = Array.
|
|
5732
|
+
* const eq = Array.makeEquivalence<number>((a, b) => a === b)
|
|
5413
5733
|
* console.log(eq([1, 2, 3], [1, 2, 3])) // true
|
|
5414
5734
|
* ```
|
|
5415
5735
|
*
|
|
5416
5736
|
* @category instances
|
|
5417
5737
|
* @since 2.0.0
|
|
5418
5738
|
*/
|
|
5419
|
-
const
|
|
5739
|
+
const makeEquivalence$1 = Array$3;
|
|
5420
5740
|
/**
|
|
5421
5741
|
* Remove duplicates from an `Iterable` using the provided `isEquivalent` function,
|
|
5422
5742
|
* preserving the order of the first occurrence of each element.
|
|
@@ -5445,7 +5765,7 @@ const dedupeWith = /* @__PURE__ */ dual(2, (self, isEquivalent) => {
|
|
|
5445
5765
|
});
|
|
5446
5766
|
|
|
5447
5767
|
//#endregion
|
|
5448
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
5768
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/ServiceMap.js
|
|
5449
5769
|
const ServiceTypeId = "~effect/ServiceMap/Service";
|
|
5450
5770
|
/**
|
|
5451
5771
|
* @example
|
|
@@ -5568,7 +5888,7 @@ const Proto$19 = {
|
|
|
5568
5888
|
return true;
|
|
5569
5889
|
},
|
|
5570
5890
|
[symbol$3]() {
|
|
5571
|
-
return number$
|
|
5891
|
+
return number$2(this.mapUnsafe.size);
|
|
5572
5892
|
}
|
|
5573
5893
|
};
|
|
5574
5894
|
/**
|
|
@@ -5923,7 +6243,7 @@ const mergeAll$1 = (...ctxs) => {
|
|
|
5923
6243
|
const Reference = Service;
|
|
5924
6244
|
|
|
5925
6245
|
//#endregion
|
|
5926
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
6246
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/Scheduler.js
|
|
5927
6247
|
/**
|
|
5928
6248
|
* @since 4.0.0
|
|
5929
6249
|
* @category references
|
|
@@ -6129,7 +6449,7 @@ var MixedScheduler = class {
|
|
|
6129
6449
|
const MaxOpsBeforeYield = /* @__PURE__ */ Reference("effect/Scheduler/MaxOpsBeforeYield", { defaultValue: () => 2048 });
|
|
6130
6450
|
|
|
6131
6451
|
//#endregion
|
|
6132
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
6452
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/Tracer.js
|
|
6133
6453
|
/**
|
|
6134
6454
|
* @since 2.0.0
|
|
6135
6455
|
* @category tags
|
|
@@ -6338,7 +6658,7 @@ const randomHexString = /* @__PURE__ */ function() {
|
|
|
6338
6658
|
}();
|
|
6339
6659
|
|
|
6340
6660
|
//#endregion
|
|
6341
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
6661
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/References.js
|
|
6342
6662
|
/**
|
|
6343
6663
|
* This module provides a collection of reference implementations for commonly used
|
|
6344
6664
|
* Effect runtime configuration values. These references allow you to access and
|
|
@@ -6801,12 +7121,12 @@ const CurrentLogSpans = /* @__PURE__ */ Reference("effect/References/CurrentLogS
|
|
|
6801
7121
|
const MinimumLogLevel = /* @__PURE__ */ Reference("effect/References/MinimumLogLevel", { defaultValue: () => "Info" });
|
|
6802
7122
|
|
|
6803
7123
|
//#endregion
|
|
6804
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
7124
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/internal/metric.js
|
|
6805
7125
|
/** @internal */
|
|
6806
7126
|
const FiberRuntimeMetricsKey = "effect/observability/Metric/FiberRuntimeMetricsKey";
|
|
6807
7127
|
|
|
6808
7128
|
//#endregion
|
|
6809
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
7129
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/internal/tracer.js
|
|
6810
7130
|
/** @internal */
|
|
6811
7131
|
const addSpanStackTrace = (options) => {
|
|
6812
7132
|
if (options?.captureStackTrace === false) return options;
|
|
@@ -6837,11 +7157,11 @@ const makeStackCleaner = (line) => (stack) => {
|
|
|
6837
7157
|
const spanCleaner = /* @__PURE__ */ makeStackCleaner(3);
|
|
6838
7158
|
|
|
6839
7159
|
//#endregion
|
|
6840
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
7160
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/internal/version.js
|
|
6841
7161
|
const version = "dev";
|
|
6842
7162
|
|
|
6843
7163
|
//#endregion
|
|
6844
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
7164
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/internal/effect.js
|
|
6845
7165
|
/** @internal */
|
|
6846
7166
|
var Interrupt = class extends FailureBase {
|
|
6847
7167
|
fiberId;
|
|
@@ -7600,8 +7920,8 @@ const asVoid$2 = (self) => flatMap$2(self, (_) => exitVoid);
|
|
|
7600
7920
|
/** @internal */
|
|
7601
7921
|
const sandbox$1 = (self) => catchCause$2(self, fail$6);
|
|
7602
7922
|
/** @internal */
|
|
7603
|
-
const raceAll$1 = (all$
|
|
7604
|
-
const effects = fromIterable$2(all$
|
|
7923
|
+
const raceAll$1 = (all$2, options) => withFiber$1((parent) => callback$2((resume) => {
|
|
7924
|
+
const effects = fromIterable$2(all$2);
|
|
7605
7925
|
const len = effects.length;
|
|
7606
7926
|
let doneCount = 0;
|
|
7607
7927
|
let done$2 = false;
|
|
@@ -7635,7 +7955,7 @@ const raceAll$1 = (all$3, options) => withFiber$1((parent) => callback$2((resume
|
|
|
7635
7955
|
return fiberInterruptAll(fibers);
|
|
7636
7956
|
}));
|
|
7637
7957
|
/** @internal */
|
|
7638
|
-
const raceAllFirst$1 = (all$
|
|
7958
|
+
const raceAllFirst$1 = (all$2, options) => withFiber$1((parent) => callback$2((resume) => {
|
|
7639
7959
|
let done$2 = false;
|
|
7640
7960
|
const fibers = /* @__PURE__ */ new Set();
|
|
7641
7961
|
const onExit$4 = (exit$2) => {
|
|
@@ -7643,7 +7963,7 @@ const raceAllFirst$1 = (all$3, options) => withFiber$1((parent) => callback$2((r
|
|
|
7643
7963
|
resume(fibers.size === 0 ? exit$2 : flatMap$2(uninterruptible$1(fiberInterruptAll(fibers)), () => exit$2));
|
|
7644
7964
|
};
|
|
7645
7965
|
let i = 0;
|
|
7646
|
-
for (const effect$1 of all$
|
|
7966
|
+
for (const effect$1 of all$2) {
|
|
7647
7967
|
if (done$2) break;
|
|
7648
7968
|
const index = i++;
|
|
7649
7969
|
const fiber$2 = forkUnsafe$1(parent, effect$1, true, true, false);
|
|
@@ -8191,7 +8511,7 @@ const cachedInvalidateWithTTL$1 = /* @__PURE__ */ dual(2, (self, ttl) => sync$1(
|
|
|
8191
8511
|
})];
|
|
8192
8512
|
}));
|
|
8193
8513
|
/** @internal */
|
|
8194
|
-
const cachedWithTTL$1 = /* @__PURE__ */ dual(2, (self, timeToLive) => map$7(cachedInvalidateWithTTL$1(self, timeToLive), (tuple$
|
|
8514
|
+
const cachedWithTTL$1 = /* @__PURE__ */ dual(2, (self, timeToLive) => map$7(cachedInvalidateWithTTL$1(self, timeToLive), (tuple$1) => tuple$1[0]));
|
|
8195
8515
|
/** @internal */
|
|
8196
8516
|
const cached$1 = (self) => cachedWithTTL$1(self, infinity);
|
|
8197
8517
|
/** @internal */
|
|
@@ -8861,9 +9181,9 @@ const logLevelToOrder = (level) => {
|
|
|
8861
9181
|
}
|
|
8862
9182
|
};
|
|
8863
9183
|
/** @internal */
|
|
8864
|
-
const LogLevelOrder = /* @__PURE__ */ mapInput(
|
|
9184
|
+
const LogLevelOrder = /* @__PURE__ */ mapInput(Number$4, logLevelToOrder);
|
|
8865
9185
|
/** @internal */
|
|
8866
|
-
const
|
|
9186
|
+
const isLogLevelGreaterThan = /* @__PURE__ */ isGreaterThan$4(LogLevelOrder);
|
|
8867
9187
|
/** @internal */
|
|
8868
9188
|
const CurrentLoggers = /* @__PURE__ */ Reference("effect/Loggers/CurrentLoggers", { defaultValue: () => new Set([defaultLogger, tracerLogger]) });
|
|
8869
9189
|
/** @internal */
|
|
@@ -8915,7 +9235,7 @@ const logWithLevel$1 = (level) => (...message) => {
|
|
|
8915
9235
|
if (cause === void 0) cause = causeEmpty;
|
|
8916
9236
|
return withFiber$1((fiber$2) => {
|
|
8917
9237
|
const logLevel = level ?? fiber$2.getRef(CurrentLogLevel);
|
|
8918
|
-
if (
|
|
9238
|
+
if (isLogLevelGreaterThan(fiber$2.getRef(MinimumLogLevel), logLevel)) return void_$3;
|
|
8919
9239
|
const clock = fiber$2.getRef(ClockRef);
|
|
8920
9240
|
const loggers = fiber$2.getRef(CurrentLoggers);
|
|
8921
9241
|
if (loggers.size > 0) {
|
|
@@ -8991,7 +9311,7 @@ function interruptChildrenPatch() {
|
|
|
8991
9311
|
const undefined_$2 = /* @__PURE__ */ succeed$4(void 0);
|
|
8992
9312
|
|
|
8993
9313
|
//#endregion
|
|
8994
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
9314
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/Exit.js
|
|
8995
9315
|
ExitTypeId;
|
|
8996
9316
|
/**
|
|
8997
9317
|
* Tests if a value is an `Exit`.
|
|
@@ -9365,7 +9685,7 @@ const getCause = exitGetCause;
|
|
|
9365
9685
|
const getError = exitGetError;
|
|
9366
9686
|
|
|
9367
9687
|
//#endregion
|
|
9368
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
9688
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/Deferred.js
|
|
9369
9689
|
const DeferredProto = {
|
|
9370
9690
|
["~effect/Deferred"]: {
|
|
9371
9691
|
_A: identity,
|
|
@@ -9585,7 +9905,7 @@ const doneUnsafe$1 = (self, effect$1) => {
|
|
|
9585
9905
|
const into = /* @__PURE__ */ dual(2, (self, deferred) => uninterruptibleMask$1((restore) => flatMap$2(exit$1(restore(self)), (exit$2) => done$1(deferred, exit$2))));
|
|
9586
9906
|
|
|
9587
9907
|
//#endregion
|
|
9588
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
9908
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/Scope.js
|
|
9589
9909
|
/**
|
|
9590
9910
|
* The `Scope` module provides functionality for managing resource lifecycles
|
|
9591
9911
|
* and cleanup operations in a functional and composable manner.
|
|
@@ -9859,7 +10179,7 @@ const closeUnsafe = scopeCloseUnsafe;
|
|
|
9859
10179
|
const use$1 = scopeUse;
|
|
9860
10180
|
|
|
9861
10181
|
//#endregion
|
|
9862
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
10182
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/Layer.js
|
|
9863
10183
|
const TypeId$51 = "~effect/Layer";
|
|
9864
10184
|
const MemoMapTypeId = "~effect/Layer/MemoMap";
|
|
9865
10185
|
/**
|
|
@@ -10651,7 +10971,7 @@ const flatMap$1 = /* @__PURE__ */ dual(2, (self, f) => fromBuild((memoMap, scope
|
|
|
10651
10971
|
const fresh = (self) => fromBuildUnsafe((_, scope$2) => self.build(makeMemoMapUnsafe(), scope$2));
|
|
10652
10972
|
|
|
10653
10973
|
//#endregion
|
|
10654
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
10974
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/ExecutionPlan.js
|
|
10655
10975
|
/**
|
|
10656
10976
|
* @since 3.16.0
|
|
10657
10977
|
* @category Type IDs
|
|
@@ -10685,7 +11005,7 @@ const CurrentMetadata$1 = /* @__PURE__ */ Reference("effect/ExecutionPlan/Curren
|
|
|
10685
11005
|
}) });
|
|
10686
11006
|
|
|
10687
11007
|
//#endregion
|
|
10688
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
11008
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/Data.js
|
|
10689
11009
|
/**
|
|
10690
11010
|
* Provides a constructor for a Case Class.
|
|
10691
11011
|
*
|
|
@@ -10836,7 +11156,7 @@ const Error$2 = Error$3;
|
|
|
10836
11156
|
const TaggedError = TaggedError$1;
|
|
10837
11157
|
|
|
10838
11158
|
//#endregion
|
|
10839
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
11159
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/Cause.js
|
|
10840
11160
|
/**
|
|
10841
11161
|
* @since 2.0.0
|
|
10842
11162
|
*/
|
|
@@ -11371,7 +11691,7 @@ const failureAnnotations = failureAnnotations$1;
|
|
|
11371
11691
|
const annotations = causeAnnotations;
|
|
11372
11692
|
|
|
11373
11693
|
//#endregion
|
|
11374
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
11694
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/Clock.js
|
|
11375
11695
|
/**
|
|
11376
11696
|
* A reference to the current Clock service in the environment.
|
|
11377
11697
|
*
|
|
@@ -11447,7 +11767,7 @@ const currentTimeMillis = currentTimeMillis$1;
|
|
|
11447
11767
|
const currentTimeNanos = currentTimeNanos$1;
|
|
11448
11768
|
|
|
11449
11769
|
//#endregion
|
|
11450
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
11770
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/internal/dateTime.js
|
|
11451
11771
|
/** @internal */
|
|
11452
11772
|
const TypeId$48 = "~effect/time/DateTime";
|
|
11453
11773
|
/** @internal */
|
|
@@ -11468,7 +11788,7 @@ const ProtoUtc = {
|
|
|
11468
11788
|
...Proto$17,
|
|
11469
11789
|
_tag: "Utc",
|
|
11470
11790
|
[symbol$3]() {
|
|
11471
|
-
return number$
|
|
11791
|
+
return number$2(this.epochMillis);
|
|
11472
11792
|
},
|
|
11473
11793
|
[symbol$2](that) {
|
|
11474
11794
|
return isDateTime$1(that) && that._tag === "Utc" && this.epochMillis === that.epochMillis;
|
|
@@ -11481,7 +11801,7 @@ const ProtoZoned = {
|
|
|
11481
11801
|
...Proto$17,
|
|
11482
11802
|
_tag: "Zoned",
|
|
11483
11803
|
[symbol$3]() {
|
|
11484
|
-
return combine$1(number$
|
|
11804
|
+
return combine$1(number$2(this.epochMillis))(hash(this.zone));
|
|
11485
11805
|
},
|
|
11486
11806
|
[symbol$2](that) {
|
|
11487
11807
|
return isDateTime$1(that) && that._tag === "Zoned" && this.epochMillis === that.epochMillis && equals$1(this.zone, that.zone);
|
|
@@ -11731,23 +12051,23 @@ const min$1 = /* @__PURE__ */ min$2(Order$2);
|
|
|
11731
12051
|
/** @internal */
|
|
11732
12052
|
const max$1 = /* @__PURE__ */ max$2(Order$2);
|
|
11733
12053
|
/** @internal */
|
|
11734
|
-
const
|
|
12054
|
+
const isGreaterThan$3 = /* @__PURE__ */ isGreaterThan$4(Order$2);
|
|
11735
12055
|
/** @internal */
|
|
11736
|
-
const
|
|
12056
|
+
const isGreaterThanOrEqualTo$2 = /* @__PURE__ */ isGreaterThanOrEqualTo$3(Order$2);
|
|
11737
12057
|
/** @internal */
|
|
11738
|
-
const
|
|
12058
|
+
const isLessThan$2 = /* @__PURE__ */ isLessThan$3(Order$2);
|
|
11739
12059
|
/** @internal */
|
|
11740
|
-
const
|
|
12060
|
+
const isLessThanOrEqualTo$2 = /* @__PURE__ */ isLessThanOrEqualTo$3(Order$2);
|
|
11741
12061
|
/** @internal */
|
|
11742
|
-
const between$1 = /* @__PURE__ */
|
|
12062
|
+
const between$1 = /* @__PURE__ */ isBetween$1(Order$2);
|
|
11743
12063
|
/** @internal */
|
|
11744
|
-
const isFuture$1 = (self) => map$7(now$1,
|
|
12064
|
+
const isFuture$1 = (self) => map$7(now$1, isLessThan$2(self));
|
|
11745
12065
|
/** @internal */
|
|
11746
|
-
const isFutureUnsafe$1 = (self) =>
|
|
12066
|
+
const isFutureUnsafe$1 = (self) => isLessThan$2(nowUnsafe$1(), self);
|
|
11747
12067
|
/** @internal */
|
|
11748
|
-
const isPast$1 = (self) => map$7(now$1,
|
|
12068
|
+
const isPast$1 = (self) => map$7(now$1, isGreaterThan$3(self));
|
|
11749
12069
|
/** @internal */
|
|
11750
|
-
const isPastUnsafe$1 = (self) =>
|
|
12070
|
+
const isPastUnsafe$1 = (self) => isGreaterThan$3(nowUnsafe$1(), self);
|
|
11751
12071
|
/** @internal */
|
|
11752
12072
|
const toDateUtc$1 = (self) => new Date(self.epochMillis);
|
|
11753
12073
|
/** @internal */
|
|
@@ -12058,7 +12378,7 @@ const formatIsoOffset$1 = (self) => {
|
|
|
12058
12378
|
const formatIsoZoned$1 = (self) => self.zone._tag === "Offset" ? formatIsoOffset$1(self) : `${formatIsoOffset$1(self)}[${self.zone.id}]`;
|
|
12059
12379
|
|
|
12060
12380
|
//#endregion
|
|
12061
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
12381
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/Pull.js
|
|
12062
12382
|
/**
|
|
12063
12383
|
* @since 4.0.0
|
|
12064
12384
|
*/
|
|
@@ -12271,7 +12591,7 @@ const matchEffect$1 = /* @__PURE__ */ dual(2, (self, options) => matchCauseEffec
|
|
|
12271
12591
|
}));
|
|
12272
12592
|
|
|
12273
12593
|
//#endregion
|
|
12274
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
12594
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/Schedule.js
|
|
12275
12595
|
const TypeId$47 = "~effect/Schedule";
|
|
12276
12596
|
/**
|
|
12277
12597
|
* @since 4.0.0
|
|
@@ -12620,13 +12940,13 @@ const while_ = /* @__PURE__ */ dual(2, (self, predicate) => fromStep(map$7(toSte
|
|
|
12620
12940
|
const forever$1 = /* @__PURE__ */ spaced(zero);
|
|
12621
12941
|
|
|
12622
12942
|
//#endregion
|
|
12623
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
12943
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/internal/layer.js
|
|
12624
12944
|
const provideLayer = (self, layer$14) => scopedWith$1((scope$2) => flatMap$2(buildWithScope(layer$14, scope$2), (context) => provideServices$1(self, context)));
|
|
12625
12945
|
/** @internal */
|
|
12626
12946
|
const provide$1 = /* @__PURE__ */ dual(2, (self, source) => isServiceMap(source) ? provideServices$1(self, source) : provideLayer(self, Array.isArray(source) ? mergeAll(...source) : source));
|
|
12627
12947
|
|
|
12628
12948
|
//#endregion
|
|
12629
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
12949
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/internal/schedule.js
|
|
12630
12950
|
/** @internal */
|
|
12631
12951
|
const repeatOrElse$1 = /* @__PURE__ */ dual(3, (self, schedule, orElse) => flatMap$2(toStepWithMetadata(schedule), (step) => {
|
|
12632
12952
|
let meta = CurrentMetadata.defaultValue();
|
|
@@ -12681,7 +13001,7 @@ const buildFromOptions = (options) => {
|
|
|
12681
13001
|
};
|
|
12682
13002
|
|
|
12683
13003
|
//#endregion
|
|
12684
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
13004
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/internal/executionPlan.js
|
|
12685
13005
|
/** @internal */
|
|
12686
13006
|
const withExecutionPlan$1 = /* @__PURE__ */ dual(2, (self, plan) => suspend$3(() => {
|
|
12687
13007
|
let i = 0;
|
|
@@ -12740,7 +13060,7 @@ const scheduleFromStep = (step, first) => {
|
|
|
12740
13060
|
const scheduleOnce = /* @__PURE__ */ recurs(1);
|
|
12741
13061
|
|
|
12742
13062
|
//#endregion
|
|
12743
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
13063
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/Request.js
|
|
12744
13064
|
const TypeId$46 = "~effect/Request";
|
|
12745
13065
|
const requestVariance = /* @__PURE__ */ byReferenceUnsafe({
|
|
12746
13066
|
_E: (_) => _,
|
|
@@ -12761,7 +13081,7 @@ const RequestPrototype = {
|
|
|
12761
13081
|
const makeEntry = (options) => options;
|
|
12762
13082
|
|
|
12763
13083
|
//#endregion
|
|
12764
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
13084
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/internal/request.js
|
|
12765
13085
|
/** @internal */
|
|
12766
13086
|
const request$1 = /* @__PURE__ */ dual(2, (self, resolver) => {
|
|
12767
13087
|
const withResolver = (resolver$1) => callback$2((resume) => {
|
|
@@ -12861,7 +13181,7 @@ function runBatch(batch) {
|
|
|
12861
13181
|
}
|
|
12862
13182
|
|
|
12863
13183
|
//#endregion
|
|
12864
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
13184
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/Effect.js
|
|
12865
13185
|
const TypeId$45 = EffectTypeId;
|
|
12866
13186
|
/**
|
|
12867
13187
|
* Tests if a value is an `Effect`.
|
|
@@ -18743,7 +19063,7 @@ const catchEager = catchEager$1;
|
|
|
18743
19063
|
const fnUntracedEager = fnUntracedEager$1;
|
|
18744
19064
|
|
|
18745
19065
|
//#endregion
|
|
18746
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
19066
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/DateTime.js
|
|
18747
19067
|
TypeId$48;
|
|
18748
19068
|
TimeZoneTypeId;
|
|
18749
19069
|
/**
|
|
@@ -19404,14 +19724,14 @@ const max = max$1;
|
|
|
19404
19724
|
* const date1 = DateTime.makeUnsafe("2024-02-01")
|
|
19405
19725
|
* const date2 = DateTime.makeUnsafe("2024-01-01")
|
|
19406
19726
|
*
|
|
19407
|
-
* console.log(DateTime.
|
|
19408
|
-
* console.log(DateTime.
|
|
19727
|
+
* console.log(DateTime.isGreaterThan(date1, date2)) // true
|
|
19728
|
+
* console.log(DateTime.isGreaterThan(date2, date1)) // false
|
|
19409
19729
|
* ```
|
|
19410
19730
|
*
|
|
19411
19731
|
* @category comparisons
|
|
19412
19732
|
* @since 3.6.0
|
|
19413
19733
|
*/
|
|
19414
|
-
const
|
|
19734
|
+
const isGreaterThan$2 = isGreaterThan$3;
|
|
19415
19735
|
/**
|
|
19416
19736
|
* Checks if the first `DateTime` is after or equal to the second `DateTime`.
|
|
19417
19737
|
*
|
|
@@ -19423,15 +19743,15 @@ const greaterThan$1 = greaterThan$2;
|
|
|
19423
19743
|
* const date2 = DateTime.makeUnsafe("2024-01-01")
|
|
19424
19744
|
* const date3 = DateTime.makeUnsafe("2024-02-01")
|
|
19425
19745
|
*
|
|
19426
|
-
* console.log(DateTime.
|
|
19427
|
-
* console.log(DateTime.
|
|
19428
|
-
* console.log(DateTime.
|
|
19746
|
+
* console.log(DateTime.isGreaterThanOrEqualTo(date1, date2)) // true
|
|
19747
|
+
* console.log(DateTime.isGreaterThanOrEqualTo(date3, date1)) // true
|
|
19748
|
+
* console.log(DateTime.isGreaterThanOrEqualTo(date1, date3)) // false
|
|
19429
19749
|
* ```
|
|
19430
19750
|
*
|
|
19431
19751
|
* @category comparisons
|
|
19432
19752
|
* @since 3.6.0
|
|
19433
19753
|
*/
|
|
19434
|
-
const
|
|
19754
|
+
const isGreaterThanOrEqualTo$1 = isGreaterThanOrEqualTo$2;
|
|
19435
19755
|
/**
|
|
19436
19756
|
* Checks if the first `DateTime` is before the second `DateTime`.
|
|
19437
19757
|
*
|
|
@@ -19442,14 +19762,14 @@ const greaterThanOrEqualTo = greaterThanOrEqualTo$1;
|
|
|
19442
19762
|
* const date1 = DateTime.makeUnsafe("2024-01-01")
|
|
19443
19763
|
* const date2 = DateTime.makeUnsafe("2024-02-01")
|
|
19444
19764
|
*
|
|
19445
|
-
* console.log(DateTime.
|
|
19446
|
-
* console.log(DateTime.
|
|
19765
|
+
* console.log(DateTime.isLessThan(date1, date2)) // true
|
|
19766
|
+
* console.log(DateTime.isLessThan(date2, date1)) // false
|
|
19447
19767
|
* ```
|
|
19448
19768
|
*
|
|
19449
19769
|
* @category comparisons
|
|
19450
19770
|
* @since 3.6.0
|
|
19451
19771
|
*/
|
|
19452
|
-
const
|
|
19772
|
+
const isLessThan$1 = isLessThan$2;
|
|
19453
19773
|
/**
|
|
19454
19774
|
* Checks if the first `DateTime` is before or equal to the second `DateTime`.
|
|
19455
19775
|
*
|
|
@@ -19461,15 +19781,15 @@ const lessThan = lessThan$1;
|
|
|
19461
19781
|
* const date2 = DateTime.makeUnsafe("2024-01-01")
|
|
19462
19782
|
* const date3 = DateTime.makeUnsafe("2024-02-01")
|
|
19463
19783
|
*
|
|
19464
|
-
* console.log(DateTime.
|
|
19465
|
-
* console.log(DateTime.
|
|
19466
|
-
* console.log(DateTime.
|
|
19784
|
+
* console.log(DateTime.isLessThanOrEqualTo(date1, date2)) // true
|
|
19785
|
+
* console.log(DateTime.isLessThanOrEqualTo(date1, date3)) // true
|
|
19786
|
+
* console.log(DateTime.isLessThanOrEqualTo(date3, date1)) // false
|
|
19467
19787
|
* ```
|
|
19468
19788
|
*
|
|
19469
19789
|
* @category comparisons
|
|
19470
19790
|
* @since 3.6.0
|
|
19471
19791
|
*/
|
|
19472
|
-
const
|
|
19792
|
+
const isLessThanOrEqualTo$1 = isLessThanOrEqualTo$2;
|
|
19473
19793
|
/**
|
|
19474
19794
|
* Checks if a `DateTime` is between two other `DateTime` values (inclusive).
|
|
19475
19795
|
*
|
|
@@ -20357,7 +20677,7 @@ const formatIsoZoned = formatIsoZoned$1;
|
|
|
20357
20677
|
const layerCurrentZoneNamed = /* @__PURE__ */ effect(CurrentTimeZone)(zoneMakeNamedEffect$1);
|
|
20358
20678
|
|
|
20359
20679
|
//#endregion
|
|
20360
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
20680
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/encoding/EncodingError.js
|
|
20361
20681
|
/**
|
|
20362
20682
|
* @since 4.0.0
|
|
20363
20683
|
*/
|
|
@@ -20374,7 +20694,7 @@ var EncodingError = class extends TaggedError("EncodingError") {
|
|
|
20374
20694
|
};
|
|
20375
20695
|
|
|
20376
20696
|
//#endregion
|
|
20377
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
20697
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/encoding/Base64.js
|
|
20378
20698
|
/**
|
|
20379
20699
|
* This module provides encoding & decoding functionality for:
|
|
20380
20700
|
*
|
|
@@ -20679,7 +20999,7 @@ const base64codes = [
|
|
|
20679
20999
|
];
|
|
20680
21000
|
|
|
20681
21001
|
//#endregion
|
|
20682
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
21002
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/internal/schema/annotations.js
|
|
20683
21003
|
/** @internal */
|
|
20684
21004
|
function resolve$2(ast) {
|
|
20685
21005
|
return ast.checks ? ast.checks[ast.checks.length - 1].annotations : ast.annotations;
|
|
@@ -20700,7 +21020,7 @@ const getExpected = /* @__PURE__ */ memoize((ast) => {
|
|
|
20700
21020
|
});
|
|
20701
21021
|
|
|
20702
21022
|
//#endregion
|
|
20703
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
21023
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/internal/record.js
|
|
20704
21024
|
/**
|
|
20705
21025
|
* @since 4.0.0
|
|
20706
21026
|
*/
|
|
@@ -20717,7 +21037,7 @@ function set$3(self, key, value) {
|
|
|
20717
21037
|
}
|
|
20718
21038
|
|
|
20719
21039
|
//#endregion
|
|
20720
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
21040
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/RegExp.js
|
|
20721
21041
|
/**
|
|
20722
21042
|
* This module provides utility functions for working with RegExp in TypeScript.
|
|
20723
21043
|
*
|
|
@@ -20772,7 +21092,7 @@ const isRegExp = isRegExp$1;
|
|
|
20772
21092
|
const escape = (string$3) => string$3.replace(/[/\\^$*+?.()|[\]{}]/g, "\\$&");
|
|
20773
21093
|
|
|
20774
21094
|
//#endregion
|
|
20775
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
21095
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/encoding/Base64Url.js
|
|
20776
21096
|
/**
|
|
20777
21097
|
* Encodes the given value into a base64 (URL) `string`.
|
|
20778
21098
|
*
|
|
@@ -20795,7 +21115,7 @@ const encodeUint8Array = (data) => encode$1(data).replace(/=/g, "").replace(/\+/
|
|
|
20795
21115
|
const encoder$1 = /* @__PURE__ */ new TextEncoder();
|
|
20796
21116
|
|
|
20797
21117
|
//#endregion
|
|
20798
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
21118
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/SchemaIssue.js
|
|
20799
21119
|
const TypeId$44 = "~effect/SchemaIssue/Issue";
|
|
20800
21120
|
/**
|
|
20801
21121
|
* @since 4.0.0
|
|
@@ -21201,7 +21521,7 @@ function formatOption(actual) {
|
|
|
21201
21521
|
}
|
|
21202
21522
|
|
|
21203
21523
|
//#endregion
|
|
21204
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
21524
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/SchemaGetter.js
|
|
21205
21525
|
/**
|
|
21206
21526
|
* @since 4.0.0
|
|
21207
21527
|
*/
|
|
@@ -21377,7 +21697,7 @@ function collectBracketPathEntries(isLeaf) {
|
|
|
21377
21697
|
}
|
|
21378
21698
|
|
|
21379
21699
|
//#endregion
|
|
21380
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
21700
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/SchemaTransformation.js
|
|
21381
21701
|
/**
|
|
21382
21702
|
* @since 4.0.0
|
|
21383
21703
|
*/
|
|
@@ -21489,7 +21809,7 @@ const uint8ArrayFromBase64String = /* @__PURE__ */ new Transformation(/* @__PURE
|
|
|
21489
21809
|
const fromJsonString$1 = /* @__PURE__ */ new Transformation(/* @__PURE__ */ parseJson$1(), /* @__PURE__ */ stringifyJson());
|
|
21490
21810
|
|
|
21491
21811
|
//#endregion
|
|
21492
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
21812
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/SchemaAST.js
|
|
21493
21813
|
/**
|
|
21494
21814
|
* @since 4.0.0
|
|
21495
21815
|
*/
|
|
@@ -22911,20 +23231,20 @@ const resolveTitle = resolveTitle$1;
|
|
|
22911
23231
|
const resolveDescription = resolveDescription$1;
|
|
22912
23232
|
|
|
22913
23233
|
//#endregion
|
|
22914
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
23234
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/Struct.js
|
|
22915
23235
|
/**
|
|
22916
23236
|
* Given a struct of `Equivalence`s returns a new `Equivalence` that compares values of a struct
|
|
22917
23237
|
* by applying each `Equivalence` to the corresponding property of the struct.
|
|
22918
23238
|
*
|
|
22919
|
-
* Alias of {@link Equivalence.
|
|
23239
|
+
* Alias of {@link Equivalence.Struct}.
|
|
22920
23240
|
*
|
|
22921
23241
|
* @example
|
|
22922
23242
|
* ```ts
|
|
22923
23243
|
* import { Equivalence, Struct } from "effect"
|
|
22924
23244
|
*
|
|
22925
|
-
* const PersonEquivalence = Struct.
|
|
22926
|
-
* name: Equivalence.
|
|
22927
|
-
* age: Equivalence.
|
|
23245
|
+
* const PersonEquivalence = Struct.makeEquivalence({
|
|
23246
|
+
* name: Equivalence.strictEqual<string>(),
|
|
23247
|
+
* age: Equivalence.strictEqual<number>()
|
|
22928
23248
|
* })
|
|
22929
23249
|
*
|
|
22930
23250
|
* console.log(
|
|
@@ -22941,11 +23261,11 @@ const resolveDescription = resolveDescription$1;
|
|
|
22941
23261
|
* @category Equivalence
|
|
22942
23262
|
* @since 2.0.0
|
|
22943
23263
|
*/
|
|
22944
|
-
const
|
|
23264
|
+
const makeEquivalence = Struct$1;
|
|
22945
23265
|
/**
|
|
22946
23266
|
* Creates an `Order` for a struct of values based on the given `Order`s for each property.
|
|
22947
23267
|
*
|
|
22948
|
-
* Alias of {@link order.
|
|
23268
|
+
* Alias of {@link order.Struct}.
|
|
22949
23269
|
*
|
|
22950
23270
|
* @example
|
|
22951
23271
|
* ```ts
|
|
@@ -22953,7 +23273,7 @@ const getEquivalence = struct$1;
|
|
|
22953
23273
|
* import * as N from "effect/Number"
|
|
22954
23274
|
* import * as S from "effect/String"
|
|
22955
23275
|
*
|
|
22956
|
-
* const PersonOrder = Struct.
|
|
23276
|
+
* const PersonOrder = Struct.makeOrder({
|
|
22957
23277
|
* name: S.Order,
|
|
22958
23278
|
* age: N.Order
|
|
22959
23279
|
* })
|
|
@@ -22968,7 +23288,7 @@ const getEquivalence = struct$1;
|
|
|
22968
23288
|
* @category Ordering
|
|
22969
23289
|
* @since 2.0.0
|
|
22970
23290
|
*/
|
|
22971
|
-
const
|
|
23291
|
+
const makeOrder = Struct$2;
|
|
22972
23292
|
/**
|
|
22973
23293
|
* Creates a type-level function that can be used with struct mapping operations.
|
|
22974
23294
|
*
|
|
@@ -22986,7 +23306,7 @@ const getOrder = struct$2;
|
|
|
22986
23306
|
const lambda = (f) => f;
|
|
22987
23307
|
|
|
22988
23308
|
//#endregion
|
|
22989
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
23309
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/SchemaParser.js
|
|
22990
23310
|
/**
|
|
22991
23311
|
* @since 4.0.0
|
|
22992
23312
|
*/
|
|
@@ -23224,14 +23544,14 @@ const recur = /* @__PURE__ */ memoize((ast) => {
|
|
|
23224
23544
|
});
|
|
23225
23545
|
|
|
23226
23546
|
//#endregion
|
|
23227
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
23547
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/internal/schema/json-pointer.js
|
|
23228
23548
|
/** @internal */
|
|
23229
23549
|
function escapeToken(token) {
|
|
23230
23550
|
return token.replace(/~/g, "~0").replace(/\//g, "~1");
|
|
23231
23551
|
}
|
|
23232
23552
|
|
|
23233
23553
|
//#endregion
|
|
23234
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
23554
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/internal/schema/schema.js
|
|
23235
23555
|
/** @internal */
|
|
23236
23556
|
const TypeId$41 = "~effect/Schema/Schema";
|
|
23237
23557
|
const SchemaProto = {
|
|
@@ -23260,7 +23580,7 @@ function make$39(ast, options) {
|
|
|
23260
23580
|
}
|
|
23261
23581
|
|
|
23262
23582
|
//#endregion
|
|
23263
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
23583
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/internal/schema/to-codec.js
|
|
23264
23584
|
/** @internal */
|
|
23265
23585
|
const toCodecJson$1 = /* @__PURE__ */ toCodec((ast) => {
|
|
23266
23586
|
const out = toCodecJsonBase(ast);
|
|
@@ -23330,7 +23650,7 @@ function makeReorder(getPriority) {
|
|
|
23330
23650
|
const unknownToNull = /* @__PURE__ */ new Link(null_, /* @__PURE__ */ new Transformation(/* @__PURE__ */ passthrough$1(), /* @__PURE__ */ transform$1(() => null)));
|
|
23331
23651
|
|
|
23332
23652
|
//#endregion
|
|
23333
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
23653
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/internal/schema/representation.js
|
|
23334
23654
|
/** @internal */
|
|
23335
23655
|
function fromAST(ast) {
|
|
23336
23656
|
const { references, representations: schemas } = fromASTs([ast]);
|
|
@@ -23938,12 +24258,12 @@ function getPartPattern(part) {
|
|
|
23938
24258
|
}
|
|
23939
24259
|
|
|
23940
24260
|
//#endregion
|
|
23941
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
24261
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/internal/redacted.js
|
|
23942
24262
|
/** @internal */
|
|
23943
24263
|
const redactedRegistry = /* @__PURE__ */ new WeakMap();
|
|
23944
24264
|
|
|
23945
24265
|
//#endregion
|
|
23946
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
24266
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/Redacted.js
|
|
23947
24267
|
/**
|
|
23948
24268
|
* The Redacted module provides functionality for handling sensitive information
|
|
23949
24269
|
* securely within your application. By using the `Redacted` data type, you can
|
|
@@ -24008,7 +24328,7 @@ const Proto$16 = {
|
|
|
24008
24328
|
};
|
|
24009
24329
|
|
|
24010
24330
|
//#endregion
|
|
24011
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
24331
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/Schema.js
|
|
24012
24332
|
const TypeId$39 = TypeId$41;
|
|
24013
24333
|
/**
|
|
24014
24334
|
* An API for creating schemas for parametric types.
|
|
@@ -24671,10 +24991,10 @@ function isFinite$1(annotations$1) {
|
|
|
24671
24991
|
* @since 4.0.0
|
|
24672
24992
|
*/
|
|
24673
24993
|
function makeIsGreaterThan(options) {
|
|
24674
|
-
const
|
|
24994
|
+
const gt = isGreaterThan$4(options.order);
|
|
24675
24995
|
const formatter = options.formatter ?? format$2;
|
|
24676
24996
|
return (exclusiveMinimum, annotations$1) => {
|
|
24677
|
-
return makeFilter((input) =>
|
|
24997
|
+
return makeFilter((input) => gt(input, exclusiveMinimum), {
|
|
24678
24998
|
expected: `a value greater than ${formatter(exclusiveMinimum)}`,
|
|
24679
24999
|
...options.annotate?.(exclusiveMinimum),
|
|
24680
25000
|
...annotations$1
|
|
@@ -24686,10 +25006,10 @@ function makeIsGreaterThan(options) {
|
|
|
24686
25006
|
* @since 4.0.0
|
|
24687
25007
|
*/
|
|
24688
25008
|
function makeIsGreaterThanOrEqualTo(options) {
|
|
24689
|
-
const
|
|
25009
|
+
const gte = isGreaterThanOrEqualTo$3(options.order);
|
|
24690
25010
|
const formatter = options.formatter ?? format$2;
|
|
24691
25011
|
return (minimum, annotations$1) => {
|
|
24692
|
-
return makeFilter((input) =>
|
|
25012
|
+
return makeFilter((input) => gte(input, minimum), {
|
|
24693
25013
|
expected: `a value greater than or equal to ${formatter(minimum)}`,
|
|
24694
25014
|
...options.annotate?.(minimum),
|
|
24695
25015
|
...annotations$1
|
|
@@ -24701,10 +25021,10 @@ function makeIsGreaterThanOrEqualTo(options) {
|
|
|
24701
25021
|
* @since 4.0.0
|
|
24702
25022
|
*/
|
|
24703
25023
|
function makeIsLessThan(options) {
|
|
24704
|
-
const
|
|
25024
|
+
const lt = isLessThan$3(options.order);
|
|
24705
25025
|
const formatter = options.formatter ?? format$2;
|
|
24706
25026
|
return (exclusiveMaximum, annotations$1) => {
|
|
24707
|
-
return makeFilter((input) =>
|
|
25027
|
+
return makeFilter((input) => lt(input, exclusiveMaximum), {
|
|
24708
25028
|
expected: `a value less than ${formatter(exclusiveMaximum)}`,
|
|
24709
25029
|
...options.annotate?.(exclusiveMaximum),
|
|
24710
25030
|
...annotations$1
|
|
@@ -24716,10 +25036,10 @@ function makeIsLessThan(options) {
|
|
|
24716
25036
|
* @since 4.0.0
|
|
24717
25037
|
*/
|
|
24718
25038
|
function makeIsLessThanOrEqualTo(options) {
|
|
24719
|
-
const
|
|
25039
|
+
const lte = isLessThanOrEqualTo$3(options.order);
|
|
24720
25040
|
const formatter = options.formatter ?? format$2;
|
|
24721
25041
|
return (maximum, annotations$1) => {
|
|
24722
|
-
return makeFilter((input) =>
|
|
25042
|
+
return makeFilter((input) => lte(input, maximum), {
|
|
24723
25043
|
expected: `a value less than or equal to ${formatter(maximum)}`,
|
|
24724
25044
|
...options.annotate?.(maximum),
|
|
24725
25045
|
...annotations$1
|
|
@@ -24731,14 +25051,14 @@ function makeIsLessThanOrEqualTo(options) {
|
|
|
24731
25051
|
* @since 4.0.0
|
|
24732
25052
|
*/
|
|
24733
25053
|
function makeIsBetween(deriveOptions) {
|
|
24734
|
-
const greaterThanOrEqualTo
|
|
24735
|
-
const greaterThan
|
|
24736
|
-
const lessThanOrEqualTo
|
|
24737
|
-
const lessThan
|
|
25054
|
+
const greaterThanOrEqualTo = isGreaterThanOrEqualTo$3(deriveOptions.order);
|
|
25055
|
+
const greaterThan = isGreaterThan$4(deriveOptions.order);
|
|
25056
|
+
const lessThanOrEqualTo = isLessThanOrEqualTo$3(deriveOptions.order);
|
|
25057
|
+
const lessThan = isLessThan$3(deriveOptions.order);
|
|
24738
25058
|
const formatter = deriveOptions.formatter ?? format$2;
|
|
24739
25059
|
return (options, annotations$1) => {
|
|
24740
|
-
const gte = options.exclusiveMinimum ? greaterThan
|
|
24741
|
-
const lte = options.exclusiveMaximum ? lessThan
|
|
25060
|
+
const gte = options.exclusiveMinimum ? greaterThan : greaterThanOrEqualTo;
|
|
25061
|
+
const lte = options.exclusiveMaximum ? lessThan : lessThanOrEqualTo;
|
|
24742
25062
|
return makeFilter((input) => gte(input, options.minimum) && lte(input, options.maximum), {
|
|
24743
25063
|
expected: `a value between ${formatter(options.minimum)}${options.exclusiveMinimum ? " (excluded)" : ""} and ${formatter(options.maximum)}${options.exclusiveMaximum ? " (excluded)" : ""}`,
|
|
24744
25064
|
...deriveOptions.annotate?.(options),
|
|
@@ -24762,8 +25082,8 @@ function makeIsBetween(deriveOptions) {
|
|
|
24762
25082
|
* @category Number checks
|
|
24763
25083
|
* @since 4.0.0
|
|
24764
25084
|
*/
|
|
24765
|
-
const isGreaterThan = /* @__PURE__ */ makeIsGreaterThan({
|
|
24766
|
-
order:
|
|
25085
|
+
const isGreaterThan$1 = /* @__PURE__ */ makeIsGreaterThan({
|
|
25086
|
+
order: Number$4,
|
|
24767
25087
|
annotate: (exclusiveMinimum) => ({
|
|
24768
25088
|
meta: {
|
|
24769
25089
|
_tag: "isGreaterThan",
|
|
@@ -24792,7 +25112,7 @@ const isGreaterThan = /* @__PURE__ */ makeIsGreaterThan({
|
|
|
24792
25112
|
* @since 4.0.0
|
|
24793
25113
|
*/
|
|
24794
25114
|
const isGreaterThanOrEqualTo = /* @__PURE__ */ makeIsGreaterThanOrEqualTo({
|
|
24795
|
-
order:
|
|
25115
|
+
order: Number$4,
|
|
24796
25116
|
annotate: (minimum) => ({
|
|
24797
25117
|
meta: {
|
|
24798
25118
|
_tag: "isGreaterThanOrEqualTo",
|
|
@@ -24818,7 +25138,7 @@ const isGreaterThanOrEqualTo = /* @__PURE__ */ makeIsGreaterThanOrEqualTo({
|
|
|
24818
25138
|
* @since 4.0.0
|
|
24819
25139
|
*/
|
|
24820
25140
|
const isLessThan = /* @__PURE__ */ makeIsLessThan({
|
|
24821
|
-
order:
|
|
25141
|
+
order: Number$4,
|
|
24822
25142
|
annotate: (exclusiveMaximum) => ({
|
|
24823
25143
|
meta: {
|
|
24824
25144
|
_tag: "isLessThan",
|
|
@@ -24847,7 +25167,7 @@ const isLessThan = /* @__PURE__ */ makeIsLessThan({
|
|
|
24847
25167
|
* @since 4.0.0
|
|
24848
25168
|
*/
|
|
24849
25169
|
const isLessThanOrEqualTo = /* @__PURE__ */ makeIsLessThanOrEqualTo({
|
|
24850
|
-
order:
|
|
25170
|
+
order: Number$4,
|
|
24851
25171
|
annotate: (maximum) => ({
|
|
24852
25172
|
meta: {
|
|
24853
25173
|
_tag: "isLessThanOrEqualTo",
|
|
@@ -24875,7 +25195,7 @@ const isLessThanOrEqualTo = /* @__PURE__ */ makeIsLessThanOrEqualTo({
|
|
|
24875
25195
|
* @since 4.0.0
|
|
24876
25196
|
*/
|
|
24877
25197
|
const isBetween = /* @__PURE__ */ makeIsBetween({
|
|
24878
|
-
order:
|
|
25198
|
+
order: Number$4,
|
|
24879
25199
|
annotate: (options) => {
|
|
24880
25200
|
return {
|
|
24881
25201
|
meta: {
|
|
@@ -25089,7 +25409,7 @@ const isBetweenDate = /* @__PURE__ */ makeIsBetween({
|
|
|
25089
25409
|
* @since 4.0.0
|
|
25090
25410
|
*/
|
|
25091
25411
|
const isGreaterThanBigInt = /* @__PURE__ */ makeIsGreaterThan({
|
|
25092
|
-
order:
|
|
25412
|
+
order: BigInt$3,
|
|
25093
25413
|
annotate: (exclusiveMinimum) => ({
|
|
25094
25414
|
meta: {
|
|
25095
25415
|
_tag: "isGreaterThanBigInt",
|
|
@@ -25115,7 +25435,7 @@ const isGreaterThanBigInt = /* @__PURE__ */ makeIsGreaterThan({
|
|
|
25115
25435
|
* @since 4.0.0
|
|
25116
25436
|
*/
|
|
25117
25437
|
const isGreaterThanOrEqualToBigInt = /* @__PURE__ */ makeIsGreaterThanOrEqualTo({
|
|
25118
|
-
order:
|
|
25438
|
+
order: BigInt$3,
|
|
25119
25439
|
annotate: (minimum) => ({
|
|
25120
25440
|
meta: {
|
|
25121
25441
|
_tag: "isGreaterThanOrEqualToBigInt",
|
|
@@ -25137,7 +25457,7 @@ const isGreaterThanOrEqualToBigInt = /* @__PURE__ */ makeIsGreaterThanOrEqualTo(
|
|
|
25137
25457
|
* @since 4.0.0
|
|
25138
25458
|
*/
|
|
25139
25459
|
const isLessThanBigInt = /* @__PURE__ */ makeIsLessThan({
|
|
25140
|
-
order:
|
|
25460
|
+
order: BigInt$3,
|
|
25141
25461
|
annotate: (exclusiveMaximum) => ({
|
|
25142
25462
|
meta: {
|
|
25143
25463
|
_tag: "isLessThanBigInt",
|
|
@@ -25163,7 +25483,7 @@ const isLessThanBigInt = /* @__PURE__ */ makeIsLessThan({
|
|
|
25163
25483
|
* @since 4.0.0
|
|
25164
25484
|
*/
|
|
25165
25485
|
const isLessThanOrEqualToBigInt = /* @__PURE__ */ makeIsLessThanOrEqualTo({
|
|
25166
|
-
order:
|
|
25486
|
+
order: BigInt$3,
|
|
25167
25487
|
annotate: (maximum) => ({
|
|
25168
25488
|
meta: {
|
|
25169
25489
|
_tag: "isLessThanOrEqualToBigInt",
|
|
@@ -25186,7 +25506,7 @@ const isLessThanOrEqualToBigInt = /* @__PURE__ */ makeIsLessThanOrEqualTo({
|
|
|
25186
25506
|
* @since 4.0.0
|
|
25187
25507
|
*/
|
|
25188
25508
|
const isBetweenBigInt = /* @__PURE__ */ makeIsBetween({
|
|
25189
|
-
order:
|
|
25509
|
+
order: BigInt$3,
|
|
25190
25510
|
annotate: (options) => ({
|
|
25191
25511
|
meta: {
|
|
25192
25512
|
_tag: "isBetweenBigInt",
|
|
@@ -25745,14 +26065,14 @@ const DateTimeUtcFromMillis = /* @__PURE__ */ Number$1.pipe(/* @__PURE__ */ deco
|
|
|
25745
26065
|
encode: /* @__PURE__ */ transform$1(toEpochMillis)
|
|
25746
26066
|
}));
|
|
25747
26067
|
const immerable = /* @__PURE__ */ globalThis.Symbol.for("immer-draftable");
|
|
25748
|
-
function makeClass(Inherited, identifier$1, struct$
|
|
25749
|
-
const getClassSchema = getClassSchemaFactory(struct$
|
|
26068
|
+
function makeClass(Inherited, identifier$1, struct$1, annotations$1) {
|
|
26069
|
+
const getClassSchema = getClassSchemaFactory(struct$1, identifier$1, annotations$1);
|
|
25750
26070
|
const ClassTypeId$1 = getClassTypeId(identifier$1);
|
|
25751
26071
|
return class extends Inherited {
|
|
25752
26072
|
constructor(...[input, options]) {
|
|
25753
26073
|
if (options?.disableValidation) super(input, options);
|
|
25754
26074
|
else {
|
|
25755
|
-
const validated = struct$
|
|
26075
|
+
const validated = struct$1.makeUnsafe(input, options);
|
|
25756
26076
|
super({
|
|
25757
26077
|
...input,
|
|
25758
26078
|
...validated
|
|
@@ -25771,7 +26091,7 @@ function makeClass(Inherited, identifier$1, struct$3, annotations$1) {
|
|
|
25771
26091
|
}
|
|
25772
26092
|
static [immerable] = true;
|
|
25773
26093
|
static identifier = identifier$1;
|
|
25774
|
-
static fields = struct$
|
|
26094
|
+
static fields = struct$1.fields;
|
|
25775
26095
|
static get ast() {
|
|
25776
26096
|
return getClassSchema(this).ast;
|
|
25777
26097
|
}
|
|
@@ -25796,14 +26116,14 @@ function makeClass(Inherited, identifier$1, struct$3, annotations$1) {
|
|
|
25796
26116
|
static extend(identifier$2) {
|
|
25797
26117
|
return (newFields, annotations$2) => {
|
|
25798
26118
|
const fields = {
|
|
25799
|
-
...struct$
|
|
26119
|
+
...struct$1.fields,
|
|
25800
26120
|
...newFields
|
|
25801
26121
|
};
|
|
25802
|
-
return makeClass(this, identifier$2, makeStruct(struct(fields, struct$
|
|
26122
|
+
return makeClass(this, identifier$2, makeStruct(struct(fields, struct$1.ast.checks, { identifier: identifier$2 }), fields), annotations$2);
|
|
25803
26123
|
};
|
|
25804
26124
|
}
|
|
25805
26125
|
static mapFields(f, options) {
|
|
25806
|
-
return struct$
|
|
26126
|
+
return struct$1.mapFields(f, options);
|
|
25807
26127
|
}
|
|
25808
26128
|
};
|
|
25809
26129
|
}
|
|
@@ -25841,16 +26161,16 @@ function isStruct(schema) {
|
|
|
25841
26161
|
* @since 4.0.0
|
|
25842
26162
|
*/
|
|
25843
26163
|
const Class = (identifier$1) => (schema, annotations$1) => {
|
|
25844
|
-
const struct$
|
|
25845
|
-
return makeClass(Class$1, identifier$1, struct$
|
|
26164
|
+
const struct$1 = isStruct(schema) ? schema : Struct(schema);
|
|
26165
|
+
return makeClass(Class$1, identifier$1, struct$1, annotations$1);
|
|
25846
26166
|
};
|
|
25847
26167
|
/**
|
|
25848
26168
|
* @category Constructors
|
|
25849
26169
|
* @since 4.0.0
|
|
25850
26170
|
*/
|
|
25851
26171
|
const ErrorClass = (identifier$1) => (schema, annotations$1) => {
|
|
25852
|
-
const struct$
|
|
25853
|
-
return makeClass(Error$3, identifier$1, struct$
|
|
26172
|
+
const struct$1 = isStruct(schema) ? schema : Struct(schema);
|
|
26173
|
+
return makeClass(Error$3, identifier$1, struct$1, annotations$1);
|
|
25854
26174
|
};
|
|
25855
26175
|
/**
|
|
25856
26176
|
* Returns a JSON Schema Document (draft-2020-12).
|
|
@@ -25961,7 +26281,7 @@ function onSerializerEnsureArray(ast) {
|
|
|
25961
26281
|
}
|
|
25962
26282
|
|
|
25963
26283
|
//#endregion
|
|
25964
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
26284
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/unstable/cli/CliError.js
|
|
25965
26285
|
/**
|
|
25966
26286
|
* @since 4.0.0
|
|
25967
26287
|
*/
|
|
@@ -30286,14 +30606,14 @@ var require_compiler = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
|
|
|
30286
30606
|
}
|
|
30287
30607
|
return ctx;
|
|
30288
30608
|
}
|
|
30289
|
-
function reduceArrayWithTypeChecking(array$
|
|
30609
|
+
function reduceArrayWithTypeChecking(array$1) {
|
|
30290
30610
|
var firstType = null;
|
|
30291
|
-
for (var i = 0; i < array$
|
|
30292
|
-
var node = array$
|
|
30611
|
+
for (var i = 0; i < array$1.length; i++) {
|
|
30612
|
+
var node = array$1[i];
|
|
30293
30613
|
if (firstType === null) firstType = node.type;
|
|
30294
30614
|
else if (node.type !== firstType) genError("Cannot add value of type " + node.type + " to array of type " + firstType + ".", node.line, node.column);
|
|
30295
30615
|
}
|
|
30296
|
-
return array$
|
|
30616
|
+
return array$1.map(reduceValueNode);
|
|
30297
30617
|
}
|
|
30298
30618
|
function quoteDottedString(str) {
|
|
30299
30619
|
if (str.indexOf(".") > -1) return "\"" + str + "\"";
|
|
@@ -34220,7 +34540,7 @@ var require_resolve_block_scalar = /* @__PURE__ */ __commonJSMin$1(((exports) =>
|
|
|
34220
34540
|
]
|
|
34221
34541
|
};
|
|
34222
34542
|
}
|
|
34223
|
-
function parseBlockScalarHeader({ offset, props }, strict
|
|
34543
|
+
function parseBlockScalarHeader({ offset, props }, strict, onError$2) {
|
|
34224
34544
|
/* istanbul ignore if should not happen */
|
|
34225
34545
|
if (props[0].type !== "block-scalar-header") {
|
|
34226
34546
|
onError$2(props[0], "IMPOSSIBLE", "Block scalar header not found");
|
|
@@ -34252,7 +34572,7 @@ var require_resolve_block_scalar = /* @__PURE__ */ __commonJSMin$1(((exports) =>
|
|
|
34252
34572
|
length += token.source.length;
|
|
34253
34573
|
break;
|
|
34254
34574
|
case "comment":
|
|
34255
|
-
if (strict
|
|
34575
|
+
if (strict && !hasSpace) onError$2(token, "MISSING_CHAR", "Comments must be separated from other tokens by white space characters");
|
|
34256
34576
|
length += token.source.length;
|
|
34257
34577
|
comment = token.source.substring(1);
|
|
34258
34578
|
break;
|
|
@@ -34292,7 +34612,7 @@ var require_resolve_block_scalar = /* @__PURE__ */ __commonJSMin$1(((exports) =>
|
|
|
34292
34612
|
var require_resolve_flow_scalar = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
34293
34613
|
var Scalar = require_Scalar();
|
|
34294
34614
|
var resolveEnd = require_resolve_end();
|
|
34295
|
-
function resolveFlowScalar(scalar, strict
|
|
34615
|
+
function resolveFlowScalar(scalar, strict, onError$2) {
|
|
34296
34616
|
const { offset, type, source, end } = scalar;
|
|
34297
34617
|
let _type;
|
|
34298
34618
|
let value;
|
|
@@ -34324,7 +34644,7 @@ var require_resolve_flow_scalar = /* @__PURE__ */ __commonJSMin$1(((exports) =>
|
|
|
34324
34644
|
};
|
|
34325
34645
|
}
|
|
34326
34646
|
const valueEnd = offset + source.length;
|
|
34327
|
-
const re = resolveEnd.resolveEnd(end, valueEnd, strict
|
|
34647
|
+
const re = resolveEnd.resolveEnd(end, valueEnd, strict, onError$2);
|
|
34328
34648
|
return {
|
|
34329
34649
|
value,
|
|
34330
34650
|
type: _type,
|
|
@@ -34917,7 +35237,7 @@ var require_cst_scalar = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
|
34917
35237
|
var resolveFlowScalar = require_resolve_flow_scalar();
|
|
34918
35238
|
var errors = require_errors();
|
|
34919
35239
|
var stringifyString = require_stringifyString();
|
|
34920
|
-
function resolveAsScalar(token, strict
|
|
35240
|
+
function resolveAsScalar(token, strict = true, onError$2) {
|
|
34921
35241
|
if (token) {
|
|
34922
35242
|
const _onError = (pos, code, message) => {
|
|
34923
35243
|
const offset = typeof pos === "number" ? pos : Array.isArray(pos) ? pos[0] : pos.offset;
|
|
@@ -34927,8 +35247,8 @@ var require_cst_scalar = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
|
34927
35247
|
switch (token.type) {
|
|
34928
35248
|
case "scalar":
|
|
34929
35249
|
case "single-quoted-scalar":
|
|
34930
|
-
case "double-quoted-scalar": return resolveFlowScalar.resolveFlowScalar(token, strict
|
|
34931
|
-
case "block-scalar": return resolveBlockScalar.resolveBlockScalar({ options: { strict
|
|
35250
|
+
case "double-quoted-scalar": return resolveFlowScalar.resolveFlowScalar(token, strict, _onError);
|
|
35251
|
+
case "block-scalar": return resolveBlockScalar.resolveBlockScalar({ options: { strict } }, token, _onError);
|
|
34932
35252
|
}
|
|
34933
35253
|
}
|
|
34934
35254
|
return null;
|
|
@@ -36967,7 +37287,7 @@ var require_dist = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
|
36967
37287
|
}));
|
|
36968
37288
|
|
|
36969
37289
|
//#endregion
|
|
36970
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
37290
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/Brand.js
|
|
36971
37291
|
/**
|
|
36972
37292
|
* This function returns a `Constructor` that **does not apply any runtime
|
|
36973
37293
|
* checks**, it just returns the provided value. It can be used to create
|
|
@@ -36989,7 +37309,7 @@ function nominal() {
|
|
|
36989
37309
|
}
|
|
36990
37310
|
|
|
36991
37311
|
//#endregion
|
|
36992
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
37312
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/PlatformError.js
|
|
36993
37313
|
/**
|
|
36994
37314
|
* @since 4.0.0
|
|
36995
37315
|
*/
|
|
@@ -37032,7 +37352,7 @@ var SystemError = class extends TaggedError("PlatformError") {
|
|
|
37032
37352
|
};
|
|
37033
37353
|
|
|
37034
37354
|
//#endregion
|
|
37035
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
37355
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/Fiber.js
|
|
37036
37356
|
`${version}`;
|
|
37037
37357
|
const await_ = fiberAwait;
|
|
37038
37358
|
/**
|
|
@@ -37240,7 +37560,7 @@ const getCurrent = getCurrentFiber;
|
|
|
37240
37560
|
const runIn = fiberRunIn;
|
|
37241
37561
|
|
|
37242
37562
|
//#endregion
|
|
37243
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
37563
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/MutableList.js
|
|
37244
37564
|
/**
|
|
37245
37565
|
* @fileoverview
|
|
37246
37566
|
* MutableList is an efficient, mutable linked list implementation optimized for high-throughput
|
|
@@ -37598,29 +37918,29 @@ const takeN = (self, n) => {
|
|
|
37598
37918
|
if (n <= 0 || !self.head) return [];
|
|
37599
37919
|
n = Math.min(n, self.length);
|
|
37600
37920
|
if (n === self.length && self.head?.offset === 0 && !self.head.next) {
|
|
37601
|
-
const array$
|
|
37921
|
+
const array$2 = self.head.array;
|
|
37602
37922
|
clear(self);
|
|
37603
|
-
return array$
|
|
37923
|
+
return array$2;
|
|
37604
37924
|
}
|
|
37605
|
-
const array$
|
|
37925
|
+
const array$1 = new Array(n);
|
|
37606
37926
|
let index = 0;
|
|
37607
37927
|
let chunk = self.head;
|
|
37608
37928
|
while (chunk) {
|
|
37609
37929
|
while (chunk.offset < chunk.array.length) {
|
|
37610
|
-
array$
|
|
37930
|
+
array$1[index++] = chunk.array[chunk.offset];
|
|
37611
37931
|
if (chunk.mutable) chunk.array[chunk.offset] = void 0;
|
|
37612
37932
|
chunk.offset++;
|
|
37613
37933
|
if (index === n) {
|
|
37614
37934
|
self.head = chunk;
|
|
37615
37935
|
self.length -= n;
|
|
37616
37936
|
if (self.length === 0) clear(self);
|
|
37617
|
-
return array$
|
|
37937
|
+
return array$1;
|
|
37618
37938
|
}
|
|
37619
37939
|
}
|
|
37620
37940
|
chunk = chunk.next;
|
|
37621
37941
|
}
|
|
37622
37942
|
clear(self);
|
|
37623
|
-
return array$
|
|
37943
|
+
return array$1;
|
|
37624
37944
|
};
|
|
37625
37945
|
/**
|
|
37626
37946
|
* Takes a single element from the beginning of the MutableList.
|
|
@@ -37682,7 +38002,7 @@ const take$1 = (self) => {
|
|
|
37682
38002
|
};
|
|
37683
38003
|
|
|
37684
38004
|
//#endregion
|
|
37685
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
38005
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/MutableRef.js
|
|
37686
38006
|
const TypeId$36 = "~effect/MutableRef";
|
|
37687
38007
|
const MutableRefProto = {
|
|
37688
38008
|
[TypeId$36]: TypeId$36,
|
|
@@ -37725,7 +38045,7 @@ const make$35 = (value) => {
|
|
|
37725
38045
|
};
|
|
37726
38046
|
|
|
37727
38047
|
//#endregion
|
|
37728
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
38048
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/PubSub.js
|
|
37729
38049
|
const TypeId$35 = "~effect/PubSub";
|
|
37730
38050
|
const SubscriptionTypeId = "~effect/PubSub/Subscription";
|
|
37731
38051
|
/**
|
|
@@ -38185,7 +38505,7 @@ const emptyReplayWindow = {
|
|
|
38185
38505
|
};
|
|
38186
38506
|
|
|
38187
38507
|
//#endregion
|
|
38188
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
38508
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/Queue.js
|
|
38189
38509
|
/**
|
|
38190
38510
|
* This module provides utilities for working with asynchronous queues that support various backpressure strategies.
|
|
38191
38511
|
*
|
|
@@ -38989,7 +39309,7 @@ const finalize = (self, exit$2) => {
|
|
|
38989
39309
|
};
|
|
38990
39310
|
|
|
38991
39311
|
//#endregion
|
|
38992
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
39312
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/Channel.js
|
|
38993
39313
|
const TypeId$33 = "~effect/Channel";
|
|
38994
39314
|
const ChannelProto = {
|
|
38995
39315
|
[TypeId$33]: {
|
|
@@ -39626,7 +39946,7 @@ const runFold$1 = /* @__PURE__ */ dual(3, (self, initial, f) => suspend$2(() =>
|
|
|
39626
39946
|
const toPullScoped = (self, scope$2) => toTransform(self)(haltVoid, scope$2);
|
|
39627
39947
|
|
|
39628
39948
|
//#endregion
|
|
39629
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
39949
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/internal/stream.js
|
|
39630
39950
|
const TypeId$32 = "~effect/Stream";
|
|
39631
39951
|
const streamVariance = {
|
|
39632
39952
|
_R: identity,
|
|
@@ -39647,7 +39967,7 @@ const fromChannel$2 = (channel) => {
|
|
|
39647
39967
|
};
|
|
39648
39968
|
|
|
39649
39969
|
//#endregion
|
|
39650
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
39970
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/Sink.js
|
|
39651
39971
|
const TypeId$31 = "~effect/Sink";
|
|
39652
39972
|
const endVoid = /* @__PURE__ */ succeed([void 0]);
|
|
39653
39973
|
const sinkVariance = {
|
|
@@ -39853,7 +40173,7 @@ const forEachArray = (f) => fromTransform((upstream) => upstream.pipe(flatMap(f)
|
|
|
39853
40173
|
const unwrap$1 = (effect$1) => fromChannel$1(unwrap$2(map$4(effect$1, toChannel$1)));
|
|
39854
40174
|
|
|
39855
40175
|
//#endregion
|
|
39856
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
40176
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/MutableHashMap.js
|
|
39857
40177
|
const TypeId$30 = "~effect/collections/MutableHashMap";
|
|
39858
40178
|
const MutableHashMapProto = {
|
|
39859
40179
|
[TypeId$30]: TypeId$30,
|
|
@@ -40135,7 +40455,7 @@ const remove$2 = /* @__PURE__ */ dual(2, (self, key_) => {
|
|
|
40135
40455
|
const size = (self) => self.backing.size;
|
|
40136
40456
|
|
|
40137
40457
|
//#endregion
|
|
40138
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
40458
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/internal/rcRef.js
|
|
40139
40459
|
const TypeId$29 = "~effect/RcRef";
|
|
40140
40460
|
const stateEmpty = { _tag: "Empty" };
|
|
40141
40461
|
const stateClosed = { _tag: "Closed" };
|
|
@@ -40234,7 +40554,7 @@ const invalidate$1 = (self_) => {
|
|
|
40234
40554
|
};
|
|
40235
40555
|
|
|
40236
40556
|
//#endregion
|
|
40237
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
40557
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/RcRef.js
|
|
40238
40558
|
/**
|
|
40239
40559
|
* Create an `RcRef` from an acquire `Effect`.
|
|
40240
40560
|
*
|
|
@@ -40309,7 +40629,7 @@ const get$2 = get$3;
|
|
|
40309
40629
|
const invalidate = invalidate$1;
|
|
40310
40630
|
|
|
40311
40631
|
//#endregion
|
|
40312
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
40632
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/Stream.js
|
|
40313
40633
|
/**
|
|
40314
40634
|
* @since 2.0.0
|
|
40315
40635
|
*/
|
|
@@ -40971,7 +41291,7 @@ const toReadableStreamWith = /* @__PURE__ */ dual((args$1) => isStream(args$1[0]
|
|
|
40971
41291
|
const toReadableStreamEffect = /* @__PURE__ */ dual((args$1) => isStream(args$1[0]), (self, options) => map$4(services(), (context) => toReadableStreamWith(self, context, options)));
|
|
40972
41292
|
|
|
40973
41293
|
//#endregion
|
|
40974
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
41294
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/FileSystem.js
|
|
40975
41295
|
/**
|
|
40976
41296
|
* This module provides a comprehensive file system abstraction that supports both synchronous
|
|
40977
41297
|
* and asynchronous file operations through Effect. It includes utilities for file I/O, directory
|
|
@@ -41194,7 +41514,7 @@ const FileDescriptor = /* @__PURE__ */ nominal();
|
|
|
41194
41514
|
var WatchBackend = class extends Service()("effect/platform/FileSystem/WatchBackend") {};
|
|
41195
41515
|
|
|
41196
41516
|
//#endregion
|
|
41197
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
41517
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/Path.js
|
|
41198
41518
|
/**
|
|
41199
41519
|
* @since 4.0.0
|
|
41200
41520
|
*/
|
|
@@ -41619,7 +41939,7 @@ const posixImpl = /* @__PURE__ */ Path$1.of({
|
|
|
41619
41939
|
});
|
|
41620
41940
|
|
|
41621
41941
|
//#endregion
|
|
41622
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
41942
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/ConfigProvider.js
|
|
41623
41943
|
/**
|
|
41624
41944
|
* @category Constructors
|
|
41625
41945
|
* @since 4.0.0
|
|
@@ -41730,7 +42050,7 @@ function trieNodeAt(root$1, path) {
|
|
|
41730
42050
|
}
|
|
41731
42051
|
|
|
41732
42052
|
//#endregion
|
|
41733
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
42053
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/LogLevel.js
|
|
41734
42054
|
/**
|
|
41735
42055
|
* @since 2.0.0
|
|
41736
42056
|
*
|
|
@@ -41773,12 +42093,12 @@ function trieNodeAt(root$1, path) {
|
|
|
41773
42093
|
* import { LogLevel } from "effect"
|
|
41774
42094
|
*
|
|
41775
42095
|
* // Check if one level is more severe than another
|
|
41776
|
-
* console.log(LogLevel.
|
|
41777
|
-
* console.log(LogLevel.
|
|
42096
|
+
* console.log(LogLevel.isGreaterThan("Error", "Info")) // true
|
|
42097
|
+
* console.log(LogLevel.isGreaterThan("Debug", "Error")) // false
|
|
41778
42098
|
*
|
|
41779
42099
|
* // Check if level meets minimum threshold
|
|
41780
|
-
* console.log(LogLevel.
|
|
41781
|
-
* console.log(LogLevel.
|
|
42100
|
+
* console.log(LogLevel.isGreaterThanOrEqualTo("Info", "Debug")) // true
|
|
42101
|
+
* console.log(LogLevel.isLessThan("Trace", "Info")) // true
|
|
41782
42102
|
* ```
|
|
41783
42103
|
*
|
|
41784
42104
|
* ## Filtering by Level
|
|
@@ -41788,14 +42108,14 @@ function trieNodeAt(root$1, path) {
|
|
|
41788
42108
|
*
|
|
41789
42109
|
* // Create a logger that only logs Error and above
|
|
41790
42110
|
* const errorLogger = Logger.make((options) => {
|
|
41791
|
-
* if (LogLevel.
|
|
42111
|
+
* if (LogLevel.isGreaterThanOrEqualTo(options.logLevel, "Error")) {
|
|
41792
42112
|
* console.log(`[${options.logLevel}] ${options.message}`)
|
|
41793
42113
|
* }
|
|
41794
42114
|
* })
|
|
41795
42115
|
*
|
|
41796
42116
|
* // Production logger - Info and above
|
|
41797
42117
|
* const productionLogger = Logger.make((options) => {
|
|
41798
|
-
* if (LogLevel.
|
|
42118
|
+
* if (LogLevel.isGreaterThanOrEqualTo(options.logLevel, "Info")) {
|
|
41799
42119
|
* console.log(
|
|
41800
42120
|
* `${options.date.toISOString()} [${options.logLevel}] ${options.message}`
|
|
41801
42121
|
* )
|
|
@@ -41804,7 +42124,7 @@ function trieNodeAt(root$1, path) {
|
|
|
41804
42124
|
*
|
|
41805
42125
|
* // Development logger - Debug and above
|
|
41806
42126
|
* const devLogger = Logger.make((options) => {
|
|
41807
|
-
* if (LogLevel.
|
|
42127
|
+
* if (LogLevel.isGreaterThanOrEqualTo(options.logLevel, "Debug")) {
|
|
41808
42128
|
* console.log(`[${options.logLevel}] ${options.message}`)
|
|
41809
42129
|
* }
|
|
41810
42130
|
* })
|
|
@@ -41824,7 +42144,7 @@ function trieNodeAt(root$1, path) {
|
|
|
41824
42144
|
* const minLevel = yield* logLevelConfig
|
|
41825
42145
|
*
|
|
41826
42146
|
* return Logger.make((options) => {
|
|
41827
|
-
* if (LogLevel.
|
|
42147
|
+
* if (LogLevel.isGreaterThanOrEqualTo(options.logLevel, minLevel)) {
|
|
41828
42148
|
* console.log(`[${options.logLevel}] ${options.message}`)
|
|
41829
42149
|
* }
|
|
41830
42150
|
* })
|
|
@@ -41876,19 +42196,19 @@ const Order = LogLevelOrder;
|
|
|
41876
42196
|
* import { LogLevel } from "effect"
|
|
41877
42197
|
*
|
|
41878
42198
|
* // Check if Error is more severe than Info
|
|
41879
|
-
* console.log(LogLevel.
|
|
41880
|
-
* console.log(LogLevel.
|
|
42199
|
+
* console.log(LogLevel.isGreaterThan("Error", "Info")) // true
|
|
42200
|
+
* console.log(LogLevel.isGreaterThan("Debug", "Error")) // false
|
|
41881
42201
|
*
|
|
41882
42202
|
* // Use with filtering
|
|
41883
|
-
* const isFatal = LogLevel.
|
|
41884
|
-
* const isError = LogLevel.
|
|
41885
|
-
* const isDebug = LogLevel.
|
|
42203
|
+
* const isFatal = LogLevel.isGreaterThan("Fatal", "Warn")
|
|
42204
|
+
* const isError = LogLevel.isGreaterThan("Error", "Warn")
|
|
42205
|
+
* const isDebug = LogLevel.isGreaterThan("Debug", "Warn")
|
|
41886
42206
|
* console.log(isFatal) // true
|
|
41887
42207
|
* console.log(isError) // true
|
|
41888
42208
|
* console.log(isDebug) // false
|
|
41889
42209
|
*
|
|
41890
42210
|
* // Curried usage
|
|
41891
|
-
* const isMoreSevereThanInfo = LogLevel.
|
|
42211
|
+
* const isMoreSevereThanInfo = LogLevel.isGreaterThan("Info")
|
|
41892
42212
|
* console.log(isMoreSevereThanInfo("Error")) // true
|
|
41893
42213
|
* console.log(isMoreSevereThanInfo("Debug")) // false
|
|
41894
42214
|
* ```
|
|
@@ -41896,10 +42216,10 @@ const Order = LogLevelOrder;
|
|
|
41896
42216
|
* @since 2.0.0
|
|
41897
42217
|
* @category ordering
|
|
41898
42218
|
*/
|
|
41899
|
-
const
|
|
42219
|
+
const isGreaterThan = isLogLevelGreaterThan;
|
|
41900
42220
|
|
|
41901
42221
|
//#endregion
|
|
41902
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
42222
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/Config.js
|
|
41903
42223
|
const TypeId$25 = "~effect/Config";
|
|
41904
42224
|
const Proto$14 = {
|
|
41905
42225
|
...PipeInspectableProto,
|
|
@@ -41975,7 +42295,7 @@ const Duration = /* @__PURE__ */ String$1.pipe(/* @__PURE__ */ decodeTo(Duration
|
|
|
41975
42295
|
const LogLevel = /* @__PURE__ */ Literals(values);
|
|
41976
42296
|
|
|
41977
42297
|
//#endregion
|
|
41978
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
42298
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/unstable/cli/Primitive.js
|
|
41979
42299
|
var import_ini = /* @__PURE__ */ __toESM(require_ini(), 1);
|
|
41980
42300
|
var import_toml = /* @__PURE__ */ __toESM(require_toml(), 1);
|
|
41981
42301
|
var import_dist = /* @__PURE__ */ __toESM(require_dist(), 1);
|
|
@@ -42202,7 +42522,7 @@ const getTypeName = (primitive) => {
|
|
|
42202
42522
|
};
|
|
42203
42523
|
|
|
42204
42524
|
//#endregion
|
|
42205
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
42525
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/unstable/cli/Param.js
|
|
42206
42526
|
/**
|
|
42207
42527
|
* @internal
|
|
42208
42528
|
*
|
|
@@ -42808,7 +43128,7 @@ const getParamMetadata = (param) => {
|
|
|
42808
43128
|
};
|
|
42809
43129
|
|
|
42810
43130
|
//#endregion
|
|
42811
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
43131
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/unstable/cli/CliOutput.js
|
|
42812
43132
|
/**
|
|
42813
43133
|
* Service reference for the CLI output formatter. Provides a default implementation
|
|
42814
43134
|
* that can be overridden for custom formatting or testing.
|
|
@@ -43010,7 +43330,7 @@ const formatHelpDocImpl = (doc, colors$1) => {
|
|
|
43010
43330
|
};
|
|
43011
43331
|
|
|
43012
43332
|
//#endregion
|
|
43013
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
43333
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/Console.js
|
|
43014
43334
|
/**
|
|
43015
43335
|
* A reference to the current console service in the Effect system.
|
|
43016
43336
|
*
|
|
@@ -43103,7 +43423,7 @@ const log = (...args$1) => consoleWith((console$1) => sync$1(() => {
|
|
|
43103
43423
|
}));
|
|
43104
43424
|
|
|
43105
43425
|
//#endregion
|
|
43106
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
43426
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/unstable/cli/internal/config.js
|
|
43107
43427
|
const ConfigInternalTypeId = "~effect/cli/Command/Config/Internal";
|
|
43108
43428
|
/**
|
|
43109
43429
|
* Parses a Command.Config into a ConfigInternal.
|
|
@@ -43173,7 +43493,7 @@ const reconstructTree = (tree, results) => {
|
|
|
43173
43493
|
};
|
|
43174
43494
|
|
|
43175
43495
|
//#endregion
|
|
43176
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
43496
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/unstable/cli/internal/command.js
|
|
43177
43497
|
/**
|
|
43178
43498
|
* Command Implementation
|
|
43179
43499
|
* ======================
|
|
@@ -43326,7 +43646,7 @@ const getHelpForCommandPath = (command, commandPath) => {
|
|
|
43326
43646
|
};
|
|
43327
43647
|
|
|
43328
43648
|
//#endregion
|
|
43329
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
43649
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/unstable/cli/internal/completions/dynamic/bash.js
|
|
43330
43650
|
/**
|
|
43331
43651
|
* Dynamic Bash completion template.
|
|
43332
43652
|
* This generates a completion script that calls the CLI at runtime to get completions.
|
|
@@ -43383,7 +43703,7 @@ complete -F _${executableName}_dynamic_completions ${executableName}
|
|
|
43383
43703
|
};
|
|
43384
43704
|
|
|
43385
43705
|
//#endregion
|
|
43386
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
43706
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/unstable/cli/internal/completions/dynamic/fish.js
|
|
43387
43707
|
/**
|
|
43388
43708
|
* Dynamic Fish completion template.
|
|
43389
43709
|
* This generates a completion script that calls the CLI at runtime to get completions.
|
|
@@ -43443,7 +43763,7 @@ complete -c ${executableName} -f -a '(__${executableName}_complete)'
|
|
|
43443
43763
|
};
|
|
43444
43764
|
|
|
43445
43765
|
//#endregion
|
|
43446
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
43766
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/unstable/cli/internal/completions/dynamic/zsh.js
|
|
43447
43767
|
/**
|
|
43448
43768
|
* Dynamic Zsh completion template.
|
|
43449
43769
|
* This generates a completion script that calls the CLI at runtime to get completions.
|
|
@@ -43565,7 +43885,7 @@ fi
|
|
|
43565
43885
|
};
|
|
43566
43886
|
|
|
43567
43887
|
//#endregion
|
|
43568
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
43888
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/unstable/cli/internal/completions/dynamic/core.js
|
|
43569
43889
|
/**
|
|
43570
43890
|
* Core dynamic completion functions.
|
|
43571
43891
|
*/
|
|
@@ -43595,7 +43915,7 @@ const isCompletionRequest = (args$1) => {
|
|
|
43595
43915
|
};
|
|
43596
43916
|
|
|
43597
43917
|
//#endregion
|
|
43598
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
43918
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/unstable/cli/internal/completions/shared.js
|
|
43599
43919
|
/** @internal */
|
|
43600
43920
|
const getSingles = (flags) => flags.flatMap(extractSingleParams).filter((s) => s.kind === "flag").map((s) => {
|
|
43601
43921
|
const description = s.description;
|
|
@@ -43612,12 +43932,12 @@ const getSingles = (flags) => flags.flatMap(extractSingleParams).filter((s) => s
|
|
|
43612
43932
|
});
|
|
43613
43933
|
|
|
43614
43934
|
//#endregion
|
|
43615
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
43935
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/unstable/cli/internal/completions/types.js
|
|
43616
43936
|
/** @internal */
|
|
43617
43937
|
const optionRequiresValue = (s) => s.primitiveTag !== "Boolean";
|
|
43618
43938
|
|
|
43619
43939
|
//#endregion
|
|
43620
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
43940
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/unstable/cli/internal/completions/dynamic/handler.js
|
|
43621
43941
|
/**
|
|
43622
43942
|
* Runtime completion handler for dynamic completion.
|
|
43623
43943
|
* This processes completion requests from the shell and returns appropriate suggestions.
|
|
@@ -43789,7 +44109,7 @@ const handleCompletionRequest = (rootCmd) => {
|
|
|
43789
44109
|
};
|
|
43790
44110
|
|
|
43791
44111
|
//#endregion
|
|
43792
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
44112
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/unstable/cli/internal/lexer.js
|
|
43793
44113
|
/** @internal */
|
|
43794
44114
|
function lex(argv) {
|
|
43795
44115
|
const endIndex = argv.indexOf("--");
|
|
@@ -43841,7 +44161,7 @@ const lexTokens = (args$1) => {
|
|
|
43841
44161
|
};
|
|
43842
44162
|
|
|
43843
44163
|
//#endregion
|
|
43844
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
44164
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/unstable/cli/internal/auto-suggest.js
|
|
43845
44165
|
/**
|
|
43846
44166
|
* Simple Levenshtein distance implementation (small N, no perf worries)
|
|
43847
44167
|
*/
|
|
@@ -43870,7 +44190,7 @@ const suggest = (input, candidates) => {
|
|
|
43870
44190
|
};
|
|
43871
44191
|
|
|
43872
44192
|
//#endregion
|
|
43873
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
44193
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/unstable/cli/Flag.js
|
|
43874
44194
|
/**
|
|
43875
44195
|
* Creates a boolean flag that can be enabled or disabled.
|
|
43876
44196
|
*
|
|
@@ -44063,7 +44383,7 @@ const withDefault = /* @__PURE__ */ dual(2, (self, defaultValue) => withDefault$
|
|
|
44063
44383
|
const map = /* @__PURE__ */ dual(2, (self, f) => map$1(self, f));
|
|
44064
44384
|
|
|
44065
44385
|
//#endregion
|
|
44066
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
44386
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/unstable/cli/internal/builtInFlags.js
|
|
44067
44387
|
/**
|
|
44068
44388
|
* Built-in options that are automatically available for CLI commands.
|
|
44069
44389
|
* @since 4.0.0
|
|
@@ -44117,7 +44437,7 @@ const completionsFlag = /* @__PURE__ */ choice("completions", [
|
|
|
44117
44437
|
]).pipe(optional, /* @__PURE__ */ map((v) => map$10(v, (s) => s === "sh" ? "bash" : s)), /* @__PURE__ */ withDescription$1("Print shell completion script for the given shell"));
|
|
44118
44438
|
|
|
44119
44439
|
//#endregion
|
|
44120
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
44440
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/unstable/cli/internal/parser.js
|
|
44121
44441
|
/**
|
|
44122
44442
|
* Parsing Pipeline for CLI Commands
|
|
44123
44443
|
* ==================================
|
|
@@ -44428,7 +44748,7 @@ const scanCommandLevel = (tokens, context) => {
|
|
|
44428
44748
|
};
|
|
44429
44749
|
|
|
44430
44750
|
//#endregion
|
|
44431
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
44751
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/Terminal.js
|
|
44432
44752
|
const TypeId$22 = "~effect/platform/Terminal";
|
|
44433
44753
|
const QuitErrorTypeId = "effect/platform/Terminal/QuitError";
|
|
44434
44754
|
/**
|
|
@@ -44438,7 +44758,7 @@ const QuitErrorTypeId = "effect/platform/Terminal/QuitError";
|
|
|
44438
44758
|
* @since 4.0.0
|
|
44439
44759
|
* @category QuitError
|
|
44440
44760
|
*/
|
|
44441
|
-
var QuitError = class extends ErrorClass("QuitError")({
|
|
44761
|
+
var QuitError = class extends ErrorClass("QuitError")({ _tag: /* @__PURE__ */ tag("QuitError") }) {
|
|
44442
44762
|
/**
|
|
44443
44763
|
* @since 4.0.0
|
|
44444
44764
|
*/
|
|
@@ -44461,7 +44781,7 @@ const make$27 = (impl) => Terminal.of({
|
|
|
44461
44781
|
});
|
|
44462
44782
|
|
|
44463
44783
|
//#endregion
|
|
44464
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
44784
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/unstable/cli/internal/ansi.js
|
|
44465
44785
|
const ESC = "\x1B[";
|
|
44466
44786
|
const BEL = "\x07";
|
|
44467
44787
|
const SEP = ";";
|
|
@@ -44539,7 +44859,7 @@ const eraseLines = (rows) => {
|
|
|
44539
44859
|
};
|
|
44540
44860
|
|
|
44541
44861
|
//#endregion
|
|
44542
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
44862
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/unstable/cli/Prompt.js
|
|
44543
44863
|
/**
|
|
44544
44864
|
* @since 4.0.0
|
|
44545
44865
|
*/
|
|
@@ -44809,7 +45129,7 @@ const entriesToDisplay = (cursor, total, maxVisible) => {
|
|
|
44809
45129
|
};
|
|
44810
45130
|
|
|
44811
45131
|
//#endregion
|
|
44812
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
45132
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/unstable/cli/Command.js
|
|
44813
45133
|
/**
|
|
44814
45134
|
* @since 4.0.0
|
|
44815
45135
|
*/
|
|
@@ -45109,7 +45429,7 @@ const runWith = (command, config) => {
|
|
|
45109
45429
|
};
|
|
45110
45430
|
|
|
45111
45431
|
//#endregion
|
|
45112
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
45432
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/Cache.js
|
|
45113
45433
|
/**
|
|
45114
45434
|
* @since 4.0.0
|
|
45115
45435
|
*/
|
|
@@ -45480,7 +45800,7 @@ const set$1 = /* @__PURE__ */ dual(3, (self, key, value) => withFiber$1((fiber$2
|
|
|
45480
45800
|
}));
|
|
45481
45801
|
|
|
45482
45802
|
//#endregion
|
|
45483
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
45803
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/FiberSet.js
|
|
45484
45804
|
/**
|
|
45485
45805
|
* @since 2.0.0
|
|
45486
45806
|
*/
|
|
@@ -45664,7 +45984,7 @@ const runtime = (self) => () => map$4(services(), (services$2) => {
|
|
|
45664
45984
|
const join = (self) => _await(self.deferred);
|
|
45665
45985
|
|
|
45666
45986
|
//#endregion
|
|
45667
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
45987
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/Ref.js
|
|
45668
45988
|
const RefProto = {
|
|
45669
45989
|
["~effect/Ref"]: { _A: identity },
|
|
45670
45990
|
...PipeInspectableProto,
|
|
@@ -45706,7 +46026,7 @@ const makeUnsafe = (value) => {
|
|
|
45706
46026
|
};
|
|
45707
46027
|
|
|
45708
46028
|
//#endregion
|
|
45709
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
46029
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/unstable/persistence/KeyValueStore.js
|
|
45710
46030
|
/**
|
|
45711
46031
|
* @since 4.0.0
|
|
45712
46032
|
*/
|
|
@@ -45850,7 +46170,7 @@ const toSchemaStore = (self, schema) => {
|
|
|
45850
46170
|
};
|
|
45851
46171
|
|
|
45852
46172
|
//#endregion
|
|
45853
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
46173
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/Runtime.js
|
|
45854
46174
|
/**
|
|
45855
46175
|
* This module provides utilities for running Effect programs and managing their execution lifecycle.
|
|
45856
46176
|
*
|
|
@@ -45986,7 +46306,7 @@ const makeRunMain = (f) => dual((args$1) => isEffect(args$1[0]), (effect$1, opti
|
|
|
45986
46306
|
});
|
|
45987
46307
|
|
|
45988
46308
|
//#endregion
|
|
45989
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
46309
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/SubscriptionRef.js
|
|
45990
46310
|
/**
|
|
45991
46311
|
* @since 2.0.0
|
|
45992
46312
|
*/
|
|
@@ -47449,7 +47769,7 @@ var Mime_default$1 = Mime;
|
|
|
47449
47769
|
var src_default = new Mime_default$1(standard_default, other_default)._freeze();
|
|
47450
47770
|
|
|
47451
47771
|
//#endregion
|
|
47452
|
-
//#region node_modules/.pnpm/@effect+platform-node@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-node@
|
|
47772
|
+
//#region node_modules/.pnpm/@effect+platform-node@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-node@11_e41eed9c01fe65d9f63e2979c8fac523/node_modules/@effect/platform-node/dist/Mime.js
|
|
47453
47773
|
/**
|
|
47454
47774
|
* @since 1.0.0
|
|
47455
47775
|
*/
|
|
@@ -47460,7 +47780,7 @@ var src_default = new Mime_default$1(standard_default, other_default)._freeze();
|
|
|
47460
47780
|
var Mime_default = src_default;
|
|
47461
47781
|
|
|
47462
47782
|
//#endregion
|
|
47463
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
47783
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/unstable/process/ChildProcessSpawner.js
|
|
47464
47784
|
/**
|
|
47465
47785
|
* A module providing a generic service interface for spawning child processes.
|
|
47466
47786
|
*
|
|
@@ -47506,7 +47826,7 @@ const makeHandle = (params) => Object.assign(Object.create(HandleProto), params)
|
|
|
47506
47826
|
const ChildProcessSpawner = /* @__PURE__ */ Service("effect/process/ChildProcessSpawner");
|
|
47507
47827
|
|
|
47508
47828
|
//#endregion
|
|
47509
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
47829
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/unstable/process/ChildProcess.js
|
|
47510
47830
|
const TypeId$16 = "~effect/unstable/process/ChildProcess";
|
|
47511
47831
|
const Proto$7 = {
|
|
47512
47832
|
...PipeInspectableProto,
|
|
@@ -47643,7 +47963,7 @@ const parseFdName = (name) => {
|
|
|
47643
47963
|
const fdName = (fd) => `fd${fd}`;
|
|
47644
47964
|
|
|
47645
47965
|
//#endregion
|
|
47646
|
-
//#region node_modules/.pnpm/@effect+platform-node-shared@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-
|
|
47966
|
+
//#region node_modules/.pnpm/@effect+platform-node-shared@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-_ce145807d4d34cc94a2615fb48433791/node_modules/@effect/platform-node-shared/dist/internal/process.js
|
|
47647
47967
|
/**
|
|
47648
47968
|
* This is a derivative work copyright (c) 2025 Effectful Technologies Inc, under MIT license.
|
|
47649
47969
|
*
|
|
@@ -47764,7 +48084,7 @@ const concatTokens = (prevTokens, nextTokens, isSeparated) => isSeparated || pre
|
|
|
47764
48084
|
];
|
|
47765
48085
|
|
|
47766
48086
|
//#endregion
|
|
47767
|
-
//#region node_modules/.pnpm/@effect+platform-node-shared@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-
|
|
48087
|
+
//#region node_modules/.pnpm/@effect+platform-node-shared@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-_ce145807d4d34cc94a2615fb48433791/node_modules/@effect/platform-node-shared/dist/internal/utils.js
|
|
47768
48088
|
/** @internal */
|
|
47769
48089
|
const handleErrnoException = (module$1, method) => (err, [path]) => {
|
|
47770
48090
|
let reason = "Unknown";
|
|
@@ -47802,7 +48122,7 @@ const handleErrnoException = (module$1, method) => (err, [path]) => {
|
|
|
47802
48122
|
};
|
|
47803
48123
|
|
|
47804
48124
|
//#endregion
|
|
47805
|
-
//#region node_modules/.pnpm/@effect+platform-node-shared@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-
|
|
48125
|
+
//#region node_modules/.pnpm/@effect+platform-node-shared@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-_ce145807d4d34cc94a2615fb48433791/node_modules/@effect/platform-node-shared/dist/NodeSink.js
|
|
47806
48126
|
/**
|
|
47807
48127
|
* @category constructors
|
|
47808
48128
|
* @since 1.0.0
|
|
@@ -47841,7 +48161,7 @@ const pullIntoWritable = (options) => options.pull.pipe(flatMap((chunk) => {
|
|
|
47841
48161
|
}) : identity);
|
|
47842
48162
|
|
|
47843
48163
|
//#endregion
|
|
47844
|
-
//#region node_modules/.pnpm/@effect+platform-node-shared@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-
|
|
48164
|
+
//#region node_modules/.pnpm/@effect+platform-node-shared@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-_ce145807d4d34cc94a2615fb48433791/node_modules/@effect/platform-node-shared/dist/NodeStream.js
|
|
47845
48165
|
/**
|
|
47846
48166
|
* @since 1.0.0
|
|
47847
48167
|
*/
|
|
@@ -47972,7 +48292,7 @@ const readableToPullUnsafe = (options) => {
|
|
|
47972
48292
|
const defaultOnError = (error$1) => new UnknownError(error$1);
|
|
47973
48293
|
|
|
47974
48294
|
//#endregion
|
|
47975
|
-
//#region node_modules/.pnpm/@effect+platform-node-shared@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-
|
|
48295
|
+
//#region node_modules/.pnpm/@effect+platform-node-shared@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-_ce145807d4d34cc94a2615fb48433791/node_modules/@effect/platform-node-shared/dist/NodeChildProcessSpawner.js
|
|
47976
48296
|
const toError = (error$1) => error$1 instanceof globalThis.Error ? error$1 : new globalThis.Error(String(error$1));
|
|
47977
48297
|
const toPlatformError = (method, error$1, command) => {
|
|
47978
48298
|
const { commands } = flattenCommand(command);
|
|
@@ -48171,14 +48491,14 @@ const make$20 = /* @__PURE__ */ gen(function* () {
|
|
|
48171
48491
|
});
|
|
48172
48492
|
if (isSink(stderrConfig.stream)) stderr = transduce(stderr, stderrConfig.stream);
|
|
48173
48493
|
}
|
|
48174
|
-
const all$
|
|
48494
|
+
const all$2 = fromReadable({
|
|
48175
48495
|
evaluate: () => combinedPassThrough,
|
|
48176
48496
|
onError: (error$1) => toPlatformError("fromReadable(all)", toError(error$1), command)
|
|
48177
48497
|
});
|
|
48178
48498
|
return {
|
|
48179
48499
|
stdout,
|
|
48180
48500
|
stderr,
|
|
48181
|
-
all: all$
|
|
48501
|
+
all: all$2
|
|
48182
48502
|
};
|
|
48183
48503
|
};
|
|
48184
48504
|
const spawn$1 = fnUntraced(function* (command, spawnOptions) {
|
|
@@ -48274,7 +48594,7 @@ const make$20 = /* @__PURE__ */ gen(function* () {
|
|
|
48274
48594
|
}));
|
|
48275
48595
|
const pid = ProcessId(childProcess.pid);
|
|
48276
48596
|
const stdin = yield* setupChildStdin(command, childProcess, stdinConfig);
|
|
48277
|
-
const { all: all$
|
|
48597
|
+
const { all: all$2, stderr, stdout } = setupChildOutputStreams(command, childProcess, stdoutConfig, stderrConfig);
|
|
48278
48598
|
const { getInputFd, getOutputFd } = yield* setupAdditionalFds(command, childProcess, resolvedAdditionalFds);
|
|
48279
48599
|
const isRunning = map$4(isDone$1(exitSignal), (done$2) => !done$2);
|
|
48280
48600
|
return makeHandle({
|
|
@@ -48292,7 +48612,7 @@ const make$20 = /* @__PURE__ */ gen(function* () {
|
|
|
48292
48612
|
stdin,
|
|
48293
48613
|
stdout,
|
|
48294
48614
|
stderr,
|
|
48295
|
-
all: all$
|
|
48615
|
+
all: all$2,
|
|
48296
48616
|
getInputFd,
|
|
48297
48617
|
getOutputFd
|
|
48298
48618
|
});
|
|
@@ -48388,7 +48708,7 @@ const flattenCommand = (command) => {
|
|
|
48388
48708
|
};
|
|
48389
48709
|
|
|
48390
48710
|
//#endregion
|
|
48391
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
48711
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/unstable/http/Cookies.js
|
|
48392
48712
|
/**
|
|
48393
48713
|
* @since 4.0.0
|
|
48394
48714
|
*/
|
|
@@ -48764,7 +49084,7 @@ const tryDecodeURIComponent = (str) => {
|
|
|
48764
49084
|
};
|
|
48765
49085
|
|
|
48766
49086
|
//#endregion
|
|
48767
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
49087
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/unstable/http/Headers.js
|
|
48768
49088
|
/**
|
|
48769
49089
|
* @since 4.0.0
|
|
48770
49090
|
*/
|
|
@@ -48795,7 +49115,7 @@ const make$19 = (input) => Object.assign(Object.create(Proto$5), input);
|
|
|
48795
49115
|
* @since 4.0.0
|
|
48796
49116
|
* @category Equivalence
|
|
48797
49117
|
*/
|
|
48798
|
-
const Equivalence$1 = /* @__PURE__ */
|
|
49118
|
+
const Equivalence$1 = /* @__PURE__ */ makeEquivalence$2(/* @__PURE__ */ strictEqual());
|
|
48799
49119
|
/**
|
|
48800
49120
|
* @since 4.0.0
|
|
48801
49121
|
* @category constructors
|
|
@@ -48885,7 +49205,7 @@ const CurrentRedactedNames = /* @__PURE__ */ Reference("effect/Headers/CurrentRe
|
|
|
48885
49205
|
] });
|
|
48886
49206
|
|
|
48887
49207
|
//#endregion
|
|
48888
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
49208
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/unstable/http/HttpClientError.js
|
|
48889
49209
|
/**
|
|
48890
49210
|
* @since 4.0.0
|
|
48891
49211
|
*/
|
|
@@ -48942,7 +49262,7 @@ var ResponseError$1 = class extends TaggedError("ResponseError") {
|
|
|
48942
49262
|
};
|
|
48943
49263
|
|
|
48944
49264
|
//#endregion
|
|
48945
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
49265
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/unstable/http/UrlParams.js
|
|
48946
49266
|
/**
|
|
48947
49267
|
* @since 4.0.0
|
|
48948
49268
|
*/
|
|
@@ -48968,7 +49288,7 @@ const Proto$4 = {
|
|
|
48968
49288
|
return Equivalence(this, that);
|
|
48969
49289
|
},
|
|
48970
49290
|
[symbol$3]() {
|
|
48971
|
-
return array
|
|
49291
|
+
return array(this.params.flat());
|
|
48972
49292
|
}
|
|
48973
49293
|
};
|
|
48974
49294
|
/**
|
|
@@ -49009,7 +49329,7 @@ const fromInputNested = (input) => {
|
|
|
49009
49329
|
* @category Equivalence
|
|
49010
49330
|
*/
|
|
49011
49331
|
const Equivalence = /* @__PURE__ */ make$48((a, b) => arrayEquivalence(a.params, b.params));
|
|
49012
|
-
const arrayEquivalence = /* @__PURE__ */
|
|
49332
|
+
const arrayEquivalence = /* @__PURE__ */ makeEquivalence$1(/* @__PURE__ */ makeEquivalence$3([/* @__PURE__ */ strictEqual(), /* @__PURE__ */ strictEqual()]));
|
|
49013
49333
|
/**
|
|
49014
49334
|
* @since 4.0.0
|
|
49015
49335
|
* @category schemas
|
|
@@ -49155,7 +49475,7 @@ const schemaRecord = /* @__PURE__ */ UrlParamsSchema.pipe(/* @__PURE__ */ decode
|
|
|
49155
49475
|
})));
|
|
49156
49476
|
|
|
49157
49477
|
//#endregion
|
|
49158
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
49478
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/unstable/http/HttpBody.js
|
|
49159
49479
|
/**
|
|
49160
49480
|
* @since 4.0.0
|
|
49161
49481
|
*/
|
|
@@ -49303,7 +49623,7 @@ var Stream = class extends Proto$3 {
|
|
|
49303
49623
|
const stream$2 = (body, contentType, contentLength) => new Stream(body, contentType ?? "application/octet-stream", contentLength);
|
|
49304
49624
|
|
|
49305
49625
|
//#endregion
|
|
49306
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
49626
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/unstable/http/HttpClientRequest.js
|
|
49307
49627
|
const TypeId$10 = "~effect/http/HttpClientRequest";
|
|
49308
49628
|
const Proto$2 = {
|
|
49309
49629
|
[TypeId$10]: TypeId$10,
|
|
@@ -49441,7 +49761,7 @@ const setBody = /* @__PURE__ */ dual(2, (self, body) => {
|
|
|
49441
49761
|
const bodyUrlParams = /* @__PURE__ */ dual(2, (self, input) => setBody(self, urlParams(fromInput(input))));
|
|
49442
49762
|
|
|
49443
49763
|
//#endregion
|
|
49444
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
49764
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/unstable/http/HttpIncomingMessage.js
|
|
49445
49765
|
/**
|
|
49446
49766
|
* @since 4.0.0
|
|
49447
49767
|
*/
|
|
@@ -49485,7 +49805,7 @@ const inspect = (self, that) => {
|
|
|
49485
49805
|
};
|
|
49486
49806
|
|
|
49487
49807
|
//#endregion
|
|
49488
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
49808
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/unstable/http/HttpClientResponse.js
|
|
49489
49809
|
/**
|
|
49490
49810
|
* @since 4.0.0
|
|
49491
49811
|
*/
|
|
@@ -49617,7 +49937,7 @@ var WebHttpClientResponse = class extends Class$2 {
|
|
|
49617
49937
|
};
|
|
49618
49938
|
|
|
49619
49939
|
//#endregion
|
|
49620
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
49940
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/unstable/http/HttpMethod.js
|
|
49621
49941
|
/**
|
|
49622
49942
|
* @since 4.0.0
|
|
49623
49943
|
*/
|
|
@@ -49632,7 +49952,7 @@ const allShort = [
|
|
|
49632
49952
|
];
|
|
49633
49953
|
|
|
49634
49954
|
//#endregion
|
|
49635
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
49955
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/unstable/http/HttpTraceContext.js
|
|
49636
49956
|
/**
|
|
49637
49957
|
* @since 4.0.0
|
|
49638
49958
|
*/
|
|
@@ -49701,7 +50021,7 @@ const w3c = (headers) => {
|
|
|
49701
50021
|
};
|
|
49702
50022
|
|
|
49703
50023
|
//#endregion
|
|
49704
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
50024
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/unstable/http/HttpClient.js
|
|
49705
50025
|
const TypeId$7 = "~effect/http/HttpClient";
|
|
49706
50026
|
/**
|
|
49707
50027
|
* @since 4.0.0
|
|
@@ -50531,7 +50851,7 @@ const httpMethods = [
|
|
|
50531
50851
|
const make$14 = make$15;
|
|
50532
50852
|
|
|
50533
50853
|
//#endregion
|
|
50534
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
50854
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/unstable/http/Template.js
|
|
50535
50855
|
/**
|
|
50536
50856
|
* @since 4.0.0
|
|
50537
50857
|
*/
|
|
@@ -50581,7 +50901,7 @@ function isSuccess(u) {
|
|
|
50581
50901
|
}
|
|
50582
50902
|
|
|
50583
50903
|
//#endregion
|
|
50584
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
50904
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/unstable/http/HttpServerResponse.js
|
|
50585
50905
|
/**
|
|
50586
50906
|
* @since 4.0.0
|
|
50587
50907
|
*/
|
|
@@ -50684,7 +51004,7 @@ const makeResponse = (options) => {
|
|
|
50684
51004
|
};
|
|
50685
51005
|
|
|
50686
51006
|
//#endregion
|
|
50687
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
51007
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/unstable/http/HttpServerRespondable.js
|
|
50688
51008
|
/**
|
|
50689
51009
|
* @since 4.0.0
|
|
50690
51010
|
*/
|
|
@@ -50722,7 +51042,7 @@ const toResponseOrElseDefect = (u, orElse) => {
|
|
|
50722
51042
|
};
|
|
50723
51043
|
|
|
50724
51044
|
//#endregion
|
|
50725
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
51045
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/unstable/http/HttpServerError.js
|
|
50726
51046
|
/**
|
|
50727
51047
|
* @since 4.0.0
|
|
50728
51048
|
*/
|
|
@@ -50862,7 +51182,7 @@ const exitResponse = (exit$2) => {
|
|
|
50862
51182
|
};
|
|
50863
51183
|
|
|
50864
51184
|
//#endregion
|
|
50865
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
51185
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/unstable/socket/Socket.js
|
|
50866
51186
|
/**
|
|
50867
51187
|
* @since 4.0.0
|
|
50868
51188
|
* @category Type IDs
|
|
@@ -51943,7 +52263,7 @@ const defaultIsFile = defaultIsFile$1;
|
|
|
51943
52263
|
const decodeField = decodeField$1;
|
|
51944
52264
|
|
|
51945
52265
|
//#endregion
|
|
51946
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
52266
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/unstable/http/Multipart.js
|
|
51947
52267
|
/**
|
|
51948
52268
|
* @since 4.0.0
|
|
51949
52269
|
*/
|
|
@@ -52220,7 +52540,7 @@ const MaxFileSize = /* @__PURE__ */ Reference("effect/http/Multipart/MaxFileSize
|
|
|
52220
52540
|
const FieldMimeTypes = /* @__PURE__ */ Reference("effect/http/Multipart/FieldMimeTypes", { defaultValue: /* @__PURE__ */ constant(["application/json"]) });
|
|
52221
52541
|
|
|
52222
52542
|
//#endregion
|
|
52223
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
52543
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/unstable/http/HttpServerRequest.js
|
|
52224
52544
|
/**
|
|
52225
52545
|
* @since 4.0.0
|
|
52226
52546
|
* @category Type IDs
|
|
@@ -52383,7 +52703,7 @@ const toURL = (self) => {
|
|
|
52383
52703
|
};
|
|
52384
52704
|
|
|
52385
52705
|
//#endregion
|
|
52386
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
52706
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/unstable/http/HttpMiddleware.js
|
|
52387
52707
|
/**
|
|
52388
52708
|
* @since 4.0.0
|
|
52389
52709
|
*/
|
|
@@ -52486,7 +52806,7 @@ const tracer = /* @__PURE__ */ make$8((httpApp) => withFiber((fiber$2) => {
|
|
|
52486
52806
|
}));
|
|
52487
52807
|
|
|
52488
52808
|
//#endregion
|
|
52489
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
52809
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/unstable/http/HttpEffect.js
|
|
52490
52810
|
/**
|
|
52491
52811
|
* @since 4.0.0
|
|
52492
52812
|
* @category combinators
|
|
@@ -52564,7 +52884,7 @@ const scoped = (effect$1) => withFiber((fiber$2) => {
|
|
|
52564
52884
|
const PreResponseHandlers = /* @__PURE__ */ Reference("effect/http/HttpEffect/PreResponseHandlers", { defaultValue: () => void 0 });
|
|
52565
52885
|
|
|
52566
52886
|
//#endregion
|
|
52567
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
52887
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/unstable/http/Etag.js
|
|
52568
52888
|
/**
|
|
52569
52889
|
* @since 4.0.0
|
|
52570
52890
|
*/
|
|
@@ -52628,7 +52948,7 @@ const layerWeak = /* @__PURE__ */ succeed$1(Generator)({
|
|
|
52628
52948
|
});
|
|
52629
52949
|
|
|
52630
52950
|
//#endregion
|
|
52631
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
52951
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/unstable/http/HttpPlatform.js
|
|
52632
52952
|
/**
|
|
52633
52953
|
* @since 4.0.0
|
|
52634
52954
|
*/
|
|
@@ -52695,7 +53015,7 @@ const layer$11 = /* @__PURE__ */ effect(HttpPlatform)(flatMap(FileSystem.asEffec
|
|
|
52695
53015
|
}))).pipe(/* @__PURE__ */ provide$2(layerWeak));
|
|
52696
53016
|
|
|
52697
53017
|
//#endregion
|
|
52698
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
53018
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/unstable/http/HttpServer.js
|
|
52699
53019
|
/**
|
|
52700
53020
|
* @since 4.0.0
|
|
52701
53021
|
*/
|
|
@@ -52758,7 +53078,7 @@ const makeTestClient = /* @__PURE__ */ gen(function* () {
|
|
|
52758
53078
|
const layerTestClient = /* @__PURE__ */ effect(HttpClient)(makeTestClient);
|
|
52759
53079
|
|
|
52760
53080
|
//#endregion
|
|
52761
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
53081
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/unstable/http/HttpRouter.js
|
|
52762
53082
|
/**
|
|
52763
53083
|
* @since 4.0.0
|
|
52764
53084
|
*/
|
|
@@ -56628,7 +56948,7 @@ var import_websocket = /* @__PURE__ */ __toESM(require_websocket(), 1);
|
|
|
56628
56948
|
var import_websocket_server = /* @__PURE__ */ __toESM(require_websocket_server(), 1);
|
|
56629
56949
|
|
|
56630
56950
|
//#endregion
|
|
56631
|
-
//#region node_modules/.pnpm/@effect+platform-node-shared@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-
|
|
56951
|
+
//#region node_modules/.pnpm/@effect+platform-node-shared@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-_ce145807d4d34cc94a2615fb48433791/node_modules/@effect/platform-node-shared/dist/NodeFileSystem.js
|
|
56632
56952
|
/**
|
|
56633
56953
|
* @since 1.0.0
|
|
56634
56954
|
*/
|
|
@@ -56978,7 +57298,7 @@ const makeFileSystem = /* @__PURE__ */ map$4(/* @__PURE__ */ serviceOption(Watch
|
|
|
56978
57298
|
const layer$9 = /* @__PURE__ */ effect(FileSystem)(makeFileSystem);
|
|
56979
57299
|
|
|
56980
57300
|
//#endregion
|
|
56981
|
-
//#region node_modules/.pnpm/@effect+platform-node@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-node@
|
|
57301
|
+
//#region node_modules/.pnpm/@effect+platform-node@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-node@11_e41eed9c01fe65d9f63e2979c8fac523/node_modules/@effect/platform-node/dist/NodeFileSystem.js
|
|
56982
57302
|
/**
|
|
56983
57303
|
* @since 1.0.0
|
|
56984
57304
|
*/
|
|
@@ -56989,7 +57309,7 @@ const layer$9 = /* @__PURE__ */ effect(FileSystem)(makeFileSystem);
|
|
|
56989
57309
|
const layer$8 = layer$9;
|
|
56990
57310
|
|
|
56991
57311
|
//#endregion
|
|
56992
|
-
//#region node_modules/.pnpm/@effect+platform-node@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-node@
|
|
57312
|
+
//#region node_modules/.pnpm/@effect+platform-node@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-node@11_e41eed9c01fe65d9f63e2979c8fac523/node_modules/@effect/platform-node/dist/NodeHttpIncomingMessage.js
|
|
56993
57313
|
/**
|
|
56994
57314
|
* @since 1.0.0
|
|
56995
57315
|
*/
|
|
@@ -57060,7 +57380,7 @@ var NodeHttpIncomingMessage = class extends Class$2 {
|
|
|
57060
57380
|
};
|
|
57061
57381
|
|
|
57062
57382
|
//#endregion
|
|
57063
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@
|
|
57383
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@116f7c8_9b35cee4c324761fd30af9060c50d0d5/node_modules/effect/dist/unstable/http/FetchHttpClient.js
|
|
57064
57384
|
/**
|
|
57065
57385
|
* @since 4.0.0
|
|
57066
57386
|
*/
|
|
@@ -57108,7 +57428,7 @@ const fetch$1 = /* @__PURE__ */ make$16((request$2, url, signal, fiber$2) => {
|
|
|
57108
57428
|
const layer$7 = /* @__PURE__ */ layerMergedServices(/* @__PURE__ */ succeed(fetch$1));
|
|
57109
57429
|
|
|
57110
57430
|
//#endregion
|
|
57111
|
-
//#region node_modules/.pnpm/@effect+platform-node@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-node@
|
|
57431
|
+
//#region node_modules/.pnpm/@effect+platform-node@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-node@11_e41eed9c01fe65d9f63e2979c8fac523/node_modules/@effect/platform-node/dist/NodeHttpPlatform.js
|
|
57112
57432
|
/**
|
|
57113
57433
|
* @since 1.0.0
|
|
57114
57434
|
*/
|
|
@@ -57232,7 +57552,7 @@ var FileStream = class extends Readable {
|
|
|
57232
57552
|
};
|
|
57233
57553
|
|
|
57234
57554
|
//#endregion
|
|
57235
|
-
//#region node_modules/.pnpm/@effect+platform-node@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-node@
|
|
57555
|
+
//#region node_modules/.pnpm/@effect+platform-node@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-node@11_e41eed9c01fe65d9f63e2979c8fac523/node_modules/@effect/platform-node/dist/NodeMultipart.js
|
|
57236
57556
|
/**
|
|
57237
57557
|
* @since 1.0.0
|
|
57238
57558
|
*/
|
|
@@ -57352,7 +57672,7 @@ function convertError(cause) {
|
|
|
57352
57672
|
}
|
|
57353
57673
|
|
|
57354
57674
|
//#endregion
|
|
57355
|
-
//#region node_modules/.pnpm/@effect+platform-node-shared@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-
|
|
57675
|
+
//#region node_modules/.pnpm/@effect+platform-node-shared@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-_ce145807d4d34cc94a2615fb48433791/node_modules/@effect/platform-node-shared/dist/NodePath.js
|
|
57356
57676
|
/**
|
|
57357
57677
|
* @since 1.0.0
|
|
57358
57678
|
*/
|
|
@@ -57404,7 +57724,7 @@ const layer$5 = /* @__PURE__ */ succeed$1(Path$1)({
|
|
|
57404
57724
|
});
|
|
57405
57725
|
|
|
57406
57726
|
//#endregion
|
|
57407
|
-
//#region node_modules/.pnpm/@effect+platform-node@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-node@
|
|
57727
|
+
//#region node_modules/.pnpm/@effect+platform-node@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-node@11_e41eed9c01fe65d9f63e2979c8fac523/node_modules/@effect/platform-node/dist/NodePath.js
|
|
57408
57728
|
/**
|
|
57409
57729
|
* @since 1.0.0
|
|
57410
57730
|
*/
|
|
@@ -57425,7 +57745,7 @@ const layerPosix = layerPosix$1;
|
|
|
57425
57745
|
const layerWin32 = layerWin32$1;
|
|
57426
57746
|
|
|
57427
57747
|
//#endregion
|
|
57428
|
-
//#region node_modules/.pnpm/@effect+platform-node-shared@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-
|
|
57748
|
+
//#region node_modules/.pnpm/@effect+platform-node-shared@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-_ce145807d4d34cc94a2615fb48433791/node_modules/@effect/platform-node-shared/dist/NodeTerminal.js
|
|
57429
57749
|
/**
|
|
57430
57750
|
* @since 1.0.0
|
|
57431
57751
|
*/
|
|
@@ -57499,7 +57819,7 @@ function defaultShouldQuit(input) {
|
|
|
57499
57819
|
}
|
|
57500
57820
|
|
|
57501
57821
|
//#endregion
|
|
57502
|
-
//#region node_modules/.pnpm/@effect+platform-node@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-node@
|
|
57822
|
+
//#region node_modules/.pnpm/@effect+platform-node@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-node@11_e41eed9c01fe65d9f63e2979c8fac523/node_modules/@effect/platform-node/dist/NodeTerminal.js
|
|
57503
57823
|
/**
|
|
57504
57824
|
* @since 1.0.0
|
|
57505
57825
|
*/
|
|
@@ -57515,7 +57835,7 @@ const make$1 = make$2;
|
|
|
57515
57835
|
const layer$2 = layer$3;
|
|
57516
57836
|
|
|
57517
57837
|
//#endregion
|
|
57518
|
-
//#region node_modules/.pnpm/@effect+platform-node@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-node@
|
|
57838
|
+
//#region node_modules/.pnpm/@effect+platform-node@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-node@11_e41eed9c01fe65d9f63e2979c8fac523/node_modules/@effect/platform-node/dist/NodeServices.js
|
|
57519
57839
|
/**
|
|
57520
57840
|
* @since 1.0.0
|
|
57521
57841
|
* @category layer
|
|
@@ -57523,7 +57843,7 @@ const layer$2 = layer$3;
|
|
|
57523
57843
|
const layer$1 = /* @__PURE__ */ provideMerge(layer$13, /* @__PURE__ */ mergeAll(layer$8, layer$4, layer$2));
|
|
57524
57844
|
|
|
57525
57845
|
//#endregion
|
|
57526
|
-
//#region node_modules/.pnpm/@effect+platform-node@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-node@
|
|
57846
|
+
//#region node_modules/.pnpm/@effect+platform-node@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-node@11_e41eed9c01fe65d9f63e2979c8fac523/node_modules/@effect/platform-node/dist/NodeHttpServer.js
|
|
57527
57847
|
/**
|
|
57528
57848
|
* @since 1.0.0
|
|
57529
57849
|
*/
|
|
@@ -57786,10 +58106,10 @@ const handleResponse = (request$2, response) => {
|
|
|
57786
58106
|
nodeResponse.writeHead(response.status, headers);
|
|
57787
58107
|
const drainLatch = makeLatchUnsafe();
|
|
57788
58108
|
nodeResponse.on("drain", () => drainLatch.openUnsafe());
|
|
57789
|
-
return body.stream.pipe(orDie, runForEachArray((array$
|
|
58109
|
+
return body.stream.pipe(orDie, runForEachArray((array$1) => {
|
|
57790
58110
|
let needDrain = false;
|
|
57791
|
-
for (let i = 0; i < array$
|
|
57792
|
-
const written = nodeResponse.write(array$
|
|
58111
|
+
for (let i = 0; i < array$1.length; i++) {
|
|
58112
|
+
const written = nodeResponse.write(array$1[i]);
|
|
57793
58113
|
if (!written && !needDrain) {
|
|
57794
58114
|
needDrain = true;
|
|
57795
58115
|
drainLatch.closeUnsafe();
|
|
@@ -57812,7 +58132,7 @@ const handleCause = (nodeResponse, originalResponse) => (originalCause) => flatM
|
|
|
57812
58132
|
});
|
|
57813
58133
|
|
|
57814
58134
|
//#endregion
|
|
57815
|
-
//#region node_modules/.pnpm/@effect+platform-node-shared@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-
|
|
58135
|
+
//#region node_modules/.pnpm/@effect+platform-node-shared@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-_ce145807d4d34cc94a2615fb48433791/node_modules/@effect/platform-node-shared/dist/NodeRuntime.js
|
|
57816
58136
|
/**
|
|
57817
58137
|
* @since 1.0.0
|
|
57818
58138
|
* @category Run main
|
|
@@ -57839,7 +58159,7 @@ const runMain$1 = /* @__PURE__ */ makeRunMain(({ fiber: fiber$2, teardown }) =>
|
|
|
57839
58159
|
});
|
|
57840
58160
|
|
|
57841
58161
|
//#endregion
|
|
57842
|
-
//#region node_modules/.pnpm/@effect+platform-node@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-node@
|
|
58162
|
+
//#region node_modules/.pnpm/@effect+platform-node@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+platform-node@11_e41eed9c01fe65d9f63e2979c8fac523/node_modules/@effect/platform-node/dist/NodeRuntime.js
|
|
57843
58163
|
/**
|
|
57844
58164
|
* @since 1.0.0
|
|
57845
58165
|
*/
|
|
@@ -58202,13 +58522,13 @@ var require_inspect = /* @__PURE__ */ __commonJSMin(((exports$1) => {
|
|
|
58202
58522
|
return key + ": " + value;
|
|
58203
58523
|
}).join(", ") + " }";
|
|
58204
58524
|
}
|
|
58205
|
-
function formatArray(array$
|
|
58206
|
-
if (array$
|
|
58525
|
+
function formatArray(array$1, seenValues) {
|
|
58526
|
+
if (array$1.length === 0) return "[]";
|
|
58207
58527
|
if (seenValues.length > MAX_RECURSIVE_DEPTH) return "[Array]";
|
|
58208
|
-
var len = Math.min(MAX_ARRAY_LENGTH, array$
|
|
58209
|
-
var remaining = array$
|
|
58528
|
+
var len = Math.min(MAX_ARRAY_LENGTH, array$1.length);
|
|
58529
|
+
var remaining = array$1.length - len;
|
|
58210
58530
|
var items = [];
|
|
58211
|
-
for (var i = 0; i < len; ++i) items.push(formatValue(array$
|
|
58531
|
+
for (var i = 0; i < len; ++i) items.push(formatValue(array$1[i], seenValues));
|
|
58212
58532
|
if (remaining === 1) items.push("... 1 more item");
|
|
58213
58533
|
else if (remaining > 1) items.push("... ".concat(remaining, " more items"));
|
|
58214
58534
|
return "[" + items.join(", ") + "]";
|
|
@@ -59123,8 +59443,8 @@ var import_printer = (/* @__PURE__ */ __commonJSMin(((exports$1) => {
|
|
|
59123
59443
|
* Given array, print each item on its own line, wrapped in an
|
|
59124
59444
|
* indented "{ }" block.
|
|
59125
59445
|
*/
|
|
59126
|
-
function block(array$
|
|
59127
|
-
return wrap("{\n", indent(join$2(array$
|
|
59446
|
+
function block(array$1) {
|
|
59447
|
+
return wrap("{\n", indent(join$2(array$1, "\n")), "\n}");
|
|
59128
59448
|
}
|
|
59129
59449
|
/**
|
|
59130
59450
|
* If maybeString is not null or empty, then wrap with start and end, otherwise print an empty string.
|
|
@@ -119699,10 +120019,10 @@ var AttachmentLinkGitLabMrMutation = class extends Request$1 {
|
|
|
119699
120019
|
* @param variables - variables without 'issueId', 'number', 'projectPathWithNamespace', 'url' to pass into the AttachmentLinkGitLabMrMutation
|
|
119700
120020
|
* @returns parsed response from AttachmentLinkGitLabMrMutation
|
|
119701
120021
|
*/
|
|
119702
|
-
async fetch(issueId, number$
|
|
120022
|
+
async fetch(issueId, number$3, projectPathWithNamespace, url, variables) {
|
|
119703
120023
|
const data = (await this._request(AttachmentLinkGitLabMrDocument.toString(), {
|
|
119704
120024
|
issueId,
|
|
119705
|
-
number: number$
|
|
120025
|
+
number: number$3,
|
|
119706
120026
|
projectPathWithNamespace,
|
|
119707
120027
|
url,
|
|
119708
120028
|
...variables
|
|
@@ -129326,8 +129646,8 @@ var LinearSdk = class extends Request$1 {
|
|
|
129326
129646
|
* @param variables - variables without 'issueId', 'number', 'projectPathWithNamespace', 'url' to pass into the AttachmentLinkGitLabMrMutation
|
|
129327
129647
|
* @returns AttachmentPayload
|
|
129328
129648
|
*/
|
|
129329
|
-
attachmentLinkGitLabMR(issueId, number$
|
|
129330
|
-
return new AttachmentLinkGitLabMrMutation(this._request).fetch(issueId, number$
|
|
129649
|
+
attachmentLinkGitLabMR(issueId, number$3, projectPathWithNamespace, url, variables) {
|
|
129650
|
+
return new AttachmentLinkGitLabMrMutation(this._request).fetch(issueId, number$3, projectPathWithNamespace, url, variables);
|
|
129331
129651
|
}
|
|
129332
129652
|
/**
|
|
129333
129653
|
* Link an existing Intercom conversation to an issue.
|
|
@@ -131986,7 +132306,7 @@ var TokenManager = class extends Service()("lalph/Linear/TokenManager", { make:
|
|
|
131986
132306
|
yield* serve(CallbackRoute, {
|
|
131987
132307
|
disableListenLog: true,
|
|
131988
132308
|
disableLogger: true
|
|
131989
|
-
}).pipe(provide$2(layer(createServer, { port: 34338 })), build);
|
|
132309
|
+
}).pipe(provide$2(layer(createServer, { port: 34338 })), build, orDie$2);
|
|
131990
132310
|
const redirectUri = `http://localhost:34338/callback`;
|
|
131991
132311
|
const verifier = crypto.randomUUID();
|
|
131992
132312
|
const verifierSha256 = yield* promise(() => crypto.subtle.digest("SHA-256", new TextEncoder().encode(verifier)));
|
|
@@ -132002,7 +132322,7 @@ var TokenManager = class extends Service()("lalph/Linear/TokenManager", { make:
|
|
|
132002
132322
|
grant_type: "authorization_code"
|
|
132003
132323
|
}), httpClient.execute, flatMap(schemaBodyJson(TokenResponse)));
|
|
132004
132324
|
return AccessToken.fromResponse(res);
|
|
132005
|
-
}).pipe(scoped$1
|
|
132325
|
+
}).pipe(scoped$1);
|
|
132006
132326
|
const refresh = fnUntraced(function* (token) {
|
|
132007
132327
|
const res = yield* post("https://api.linear.app/oauth/token").pipe(bodyUrlParams({
|
|
132008
132328
|
refresh_token: token.refreshToken,
|
|
@@ -132283,7 +132603,7 @@ var Prd = class extends Service()("lalph/Prd", { make: gen(function* () {
|
|
|
132283
132603
|
}));
|
|
132284
132604
|
}
|
|
132285
132605
|
});
|
|
132286
|
-
yield* addFinalizer(() =>
|
|
132606
|
+
yield* addFinalizer(() => ignore(sync$2));
|
|
132287
132607
|
yield* fs.watch(prdFile).pipe(buffer({
|
|
132288
132608
|
capacity: 1,
|
|
132289
132609
|
strategy: "dropping"
|
|
@@ -132483,9 +132803,10 @@ const root = make$26("lalph", {
|
|
|
132483
132803
|
let iteration = 0;
|
|
132484
132804
|
let lastStartedAt = makeUnsafe$3(0);
|
|
132485
132805
|
let inProgress = 0;
|
|
132806
|
+
let quit = false;
|
|
132486
132807
|
while (true) {
|
|
132487
132808
|
yield* semaphore.take(1);
|
|
132488
|
-
if (isFinite$3 && iteration >= iterations$1) break;
|
|
132809
|
+
if (quit || isFinite$3 && iteration >= iterations$1) break;
|
|
132489
132810
|
const currentIteration = iteration;
|
|
132490
132811
|
if (inProgress > 0) {
|
|
132491
132812
|
const nextEarliestStart = lastStartedAt.pipe(add$1({ seconds: 30 }));
|
|
@@ -132494,13 +132815,16 @@ const root = make$26("lalph", {
|
|
|
132494
132815
|
}
|
|
132495
132816
|
lastStartedAt = yield* now;
|
|
132496
132817
|
inProgress++;
|
|
132497
|
-
yield* run.pipe(catchTag("NoMoreWork", (e) => {
|
|
132818
|
+
yield* run.pipe(catchFilter((e) => e._tag === "NoMoreWork" || e._tag === "QuitError" ? fail$7(e) : e, logWarning), catchTag("NoMoreWork", (e) => {
|
|
132498
132819
|
if (isFinite$3) {
|
|
132499
132820
|
iterations$1 = currentIteration;
|
|
132500
132821
|
return fail$3(e);
|
|
132501
132822
|
}
|
|
132502
132823
|
return log$1("No more work to process, waiting 30 seconds...").pipe(andThen(sleep("30 seconds")));
|
|
132503
|
-
}),
|
|
132824
|
+
}), catchTag("QuitError", (_) => {
|
|
132825
|
+
quit = true;
|
|
132826
|
+
return void_$1;
|
|
132827
|
+
}), annotateLogs({ iteration: currentIteration }), ensuring(suspend$2(() => {
|
|
132504
132828
|
inProgress--;
|
|
132505
132829
|
return semaphore.release(1);
|
|
132506
132830
|
})), forkChild);
|