@mark1russell7/vex 0.2.0 → 0.4.0

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/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2025 Mark Russell
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Mark Russell
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,53 @@
1
+ # @mark1russell7/vex
2
+
3
+ [![npm](https://img.shields.io/npm/v/@mark1russell7/vex)](https://www.npmjs.com/package/@mark1russell7/vex) [![CI](https://github.com/mark1russell7/vex/actions/workflows/ci.yml/badge.svg)](https://github.com/mark1russell7/vex/actions/workflows/ci.yml) [![license](https://img.shields.io/npm/l/@mark1russell7/vex)](https://github.com/mark1russell7/vex/blob/main/LICENSE)
4
+
5
+ Typed spreadsheet formulas over TypeScript objects. A Vex program evaluates at one record of a collection. It reads fields relative to that record, and combines them with the ops of domains, for example 2D vectors. A failure does not throw: it is an error value with a code like `#REF!` or `#N/A`, and a trace shows where it started.
6
+
7
+ **[Documentation, live examples and the Lab](https://mark1russell7.github.io/vex/)**
8
+
9
+ ## Install
10
+
11
+ ```sh
12
+ npm install @mark1russell7/vex @mark1russell7/vex-domains
13
+ ```
14
+
15
+ ## Example
16
+
17
+ The distance from each box to the nearest other box:
18
+
19
+ ```ts doctest
20
+ import { space, vex } from "@mark1russell7/vex";
21
+ import { NumDomain, Vec2, Vec2Domain } from "@mark1russell7/vex-domains";
22
+
23
+ const boxes = space.record({
24
+ A: { position: new Vec2(0, 0) },
25
+ B: { position: new Vec2(3, 4) },
26
+ C: { position: new Vec2(6, 8) },
27
+ });
28
+ const root = vex(Vec2Domain, NumDomain).over(boxes);
29
+ const nearest = root.from("position").others((e) => e._.distance("position")).min();
30
+
31
+ nearest.at("A"); // => { tag: "some", value: 5 }
32
+ nearest.all().values(); // => [5, 5, 5]
33
+ nearest.at("A"); // : Optional<number>
34
+ ```
35
+
36
+ The types know the fields of the records and the ops of each domain. `root.from("mass")` and `._.explode()` do not compile.
37
+
38
+ ## Features
39
+
40
+ - **Axes.** `others`, `each`, `neighbors` in a grid, and `children`, `ancestors`, `descendants` and `siblings` in a tree. A `where` test filters the targets.
41
+ - **Sheets.** Named columns of formulas that read each other, like the columns of a spreadsheet. A cycle of reads gives `#CYCLE!`.
42
+ - **Error values.** Each failure has a code, a kind, a message, the path of its node, the origin and the focus. `ifError` catches an error.
43
+ - **Programs are data.** A program is a JSON tree. `explain` gives a trace, `deps` gives the reads, and `compile` gives a program that evaluates at each record of each space.
44
+ - **No runtime dependencies.** The package is one ES module with its type declarations.
45
+
46
+ ## Related packages
47
+
48
+ - [`@mark1russell7/vex-domains`](https://www.npmjs.com/package/@mark1russell7/vex-domains): 2D vectors, colors, angles, numbers and booleans
49
+ - [`@mark1russell7/vex-testkit`](https://www.npmjs.com/package/@mark1russell7/vex-testkit): property tests for the laws of your domains
50
+
51
+ ## License
52
+
53
+ MIT
package/build/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- //#region ../../node_modules/.pnpm/@mark1russell7+optional@htt_51d63135d3a4bb347c942166e3e4ba82/node_modules/@mark1russell7/optional/dist/index.d.ts
1
+ //#region ../../node_modules/.pnpm/@mark1russell7+optional@https+++codeload.github.com+mark1russell7+optional+tar.gz+1c649_51d63135d3a4bb347c942166e3e4ba82/node_modules/@mark1russell7/optional/dist/index.d.ts
2
2
  /**
3
3
  * The Optional of the family: a value that is present (`Some`) or absent (`None`). The packages render and Vex use
4
4
  * this form. Graph uses a sentinel form, and `fromSentinel` and `toSentinel` convert between the two forms.
@@ -174,6 +174,7 @@ export type Expr = {
174
174
  readonly tag: "each";
175
175
  readonly axis: Axis;
176
176
  readonly body: Expr;
177
+ readonly at?: Addr;
177
178
  } | {
178
179
  readonly tag: "ext";
179
180
  readonly kind: string;
@@ -199,8 +200,11 @@ export declare const let_: (bind: Readonly<Record<string, Expr>>, body: Expr) =>
199
200
  export declare const v: (name: string) => ExprOf<"var">;
200
201
  /** This function makes a record from field expressions. */
201
202
  export declare const rec: (fields: Readonly<Record<string, Expr>>) => ExprOf<"rec">;
202
- /** This function evaluates `body` once for each target of `axis`. The result is a list. */
203
- export declare const each: (axis: Axis, body: Expr) => ExprOf<"each">;
203
+ /**
204
+ * This function evaluates `body` once for each target of `axis`. The result is a list. With `at`, the axis finds its
205
+ * targets from the key of that address, not from the focus.
206
+ */
207
+ export declare function each(axis: Axis, body: Expr, at?: Addr): ExprOf<"each">;
204
208
  /** This function makes an expression of an extension kind. */
205
209
  export declare const ext: (kind: string, data: unknown) => ExprOf<"ext">;
206
210
  /** The move to an absolute key. */
@@ -531,6 +535,8 @@ export interface Dependency {
531
535
  readonly path: readonly string[];
532
536
  /** The axes around the read, from the outside to the inside. Inside an axis, the focus is the target. */
533
537
  readonly axes: readonly Axis["t"][];
538
+ /** The address of each axis in `axes`, in the same order. The empty address is the focus. */
539
+ readonly axisAt: readonly Addr[];
534
540
  }
535
541
  /**
536
542
  * This function gives the static reads of an expression. A host can use them to recompute a program only
@@ -540,8 +546,8 @@ export declare function deps(e: Expr): readonly Dependency[];
540
546
  //#endregion
541
547
  //#region src/json.d.ts
542
548
  /**
543
- * This function gives the JSON text of an expression. A literal that is a domain value needs a domain with
544
- * `encode`. A literal that is not JSON data and has no such domain gives the error `#VALUE!`.
549
+ * This function gives the JSON text of an expression. A literal value that is a domain value needs a domain with
550
+ * `encode`. A literal value that is not JSON data and has no such domain gives the error `#VALUE!`.
545
551
  */
546
552
  export declare function serialize(e: Expr, domains?: readonly AnyDomain[]): Result<string>;
547
553
  /** This function reads an expression from JSON text. It checks the whole tree. */
@@ -622,7 +628,11 @@ export type SheetOptions = Omit<EvalOptions, "origin" | "trace">;
622
628
  export declare class SheetRun {
623
629
  #private;
624
630
  constructor(columns: ReadonlyMap<string, Expr>, opts: SheetOptions);
625
- /** This method gives the result of one cell: the column `column` at the key `key`. */
631
+ /**
632
+ * This method gives the result of one cell: the column `column` at the key `key`. A read from a host first evaluates
633
+ * the column at the keys before `key`, in key order. Thus a recurrence over the keys reads finished cells, and a
634
+ * first read at the last key does not go deep into the call stack.
635
+ */
626
636
  cell(column: string, key: string): Result<unknown>;
627
637
  /** This method evaluates one cell with a trace of the nodes of its column. The result is the result of the cell. */
628
638
  explain(column: string, key: string): Trace;
@@ -686,14 +696,34 @@ export type AllowsOther<K extends string> = string extends K ? true : `${number}
686
696
  * string. It can be a field of the record with type `P`, an argument token, or a chain that gives `P`. If the op
687
697
  * lifts scalars, it can also be a number.
688
698
  */
689
- export type ArgInput<P, Ctx extends ChainContext, Lift extends boolean> = (P extends string ? never : P) | KeysOfType<Ctx["record"], P> | Arg<P> | ChainOf<Ctx, P> | (Lift extends true ? ([P] extends [DomainValue<DomainFor<Ctx["domains"], P>>] ? number : never) : never);
699
+ export type ArgInput<P, Ctx extends ChainContext, Lift extends boolean> = (P extends string ? never : P) | KeysOfType<Ctx["record"], P> | Arg<P> | ChainOf<Ctx, P> | (Lift extends true ? ([P] extends [DomainValue<DomainFor<Ctx["domains"], P>>] ? LiftedNumber<Ctx> : never) : never);
700
+ /**
701
+ * A number argument for a domain parameter of an op with `liftScalar` (TYPE.LIFT): a number, a field with numbers, an
702
+ * argument or a chain. The interpreter lifts each of them with `fromScalar` (CALL.LIFT).
703
+ */
704
+ type LiftedNumber<Ctx extends ChainContext> = number | KeysOfType<Ctx["record"], number> | Arg<number> | ChainOf<Ctx, number>;
690
705
  type MapArgs<P extends readonly unknown[], Ctx extends ChainContext, Lift extends boolean> = { [I in keyof P]: ArgInput<P[I], Ctx, Lift>; };
691
- /** The static context of a chain: its domains, its key type and its record type. */
706
+ /** A table of free functions. The first parameter of a function gets the current value of the chain. */
707
+ export type FnTable = Readonly<Record<string, (...args: never[]) => unknown>>;
708
+ /** The free functions of a builder without `withOptions`: none, so `call` accepts no name. */
709
+ export type NoFns = Record<never, never>;
710
+ /** The static context of a chain: its domains, its key type, its record type and its free functions. */
692
711
  export interface ChainContext {
693
712
  readonly domains: readonly AnyDomain[];
694
713
  readonly keys: string;
695
714
  readonly record: unknown;
696
- }
715
+ readonly fns?: FnTable;
716
+ }
717
+ type FnsOf<Ctx extends ChainContext> = NonNullable<Ctx["fns"]>;
718
+ type FnParams<F> = F extends ((...args: infer P) => unknown) ? P : never;
719
+ type FirstParam<P> = P extends readonly [infer A, ...unknown[]] ? A : unknown;
720
+ type RestParams<P> = P extends readonly [unknown, ...infer R] ? R : [];
721
+ /** The names of the free functions whose first parameter accepts a value of type `T`. */
722
+ export type CallableFns<Ctx extends ChainContext, T> = { [K in keyof FnsOf<Ctx>]: [T] extends [FirstParam<FnParams<FnsOf<Ctx>[K]>>] ? K : never; }[keyof FnsOf<Ctx>] & string;
723
+ /** The inputs for the parameters of the free function `N` after its first parameter. */
724
+ export type CallArgs<Ctx extends ChainContext, N extends keyof FnsOf<Ctx>> = MapArgs<RestParams<FnParams<FnsOf<Ctx>[N]>>, Ctx, false>;
725
+ /** The return type of the free function `N`. */
726
+ export type CallReturn<Ctx extends ChainContext, N extends keyof FnsOf<Ctx>> = FnsOf<Ctx>[N] extends ((...args: never[]) => infer R) ? R : unknown;
697
727
  /** The ops section `._` of a chain whose value has domain `Dm`. */
698
728
  export type OpsProxy<Ctx extends ChainContext, Dm> = { readonly [M in OpNames<Dm>]: (...args: MapArgs<OpParams<Dm, M>, Ctx, Lifts<Dm, M>>) => ChainOf<Ctx, OpReturn<Dm, M>>; };
699
729
  /** The members of every chain. */
@@ -727,6 +757,16 @@ export interface ChainBase<Ctx extends ChainContext, T> {
727
757
  parent(): ChainOf<Ctx, T>;
728
758
  /** This method uses `fallback` when the chain gives an error. */
729
759
  ifError<U>(fallback: ArgInput<U, Ctx, false> | T): ChainOf<Ctx, T | U>;
760
+ /**
761
+ * This method gives `then` when the boolean value is true, and `otherwise` when it is false (the form `if`). Only
762
+ * the selected branch evaluates.
763
+ */
764
+ if<U, V>(this: ChainBase<Ctx, boolean>, then: ArgInput<U, Ctx, false>, otherwise: ArgInput<V, Ctx, false>): ChainOf<Ctx, U | V>;
765
+ /**
766
+ * This method applies the free function `name` of `withOptions`. The function gets the current value as its first
767
+ * argument, then `args`. The types accept only the functions whose first parameter accepts the current value.
768
+ */
769
+ call<N extends CallableFns<Ctx, T>>(name: N, ...args: CallArgs<Ctx, N>): ChainOf<Ctx, CallReturn<Ctx, N>>;
730
770
  /** This method evaluates each branch with the current value, and gives a record of the results. */
731
771
  fork<const B extends Readonly<Record<string, (c: ChainOf<Ctx, T>) => ChainBase<Ctx, unknown>>>>(branches: B): ChainOf<Ctx, { readonly [N in keyof B]: ValueOf<ReturnType<B[N]>>; }>;
732
772
  /** This method binds names for the body. The body gets a variable token for each name. */
@@ -785,14 +825,28 @@ export interface ListChain<Ctx extends ChainContext, U> {
785
825
  all(this: ListChain<Ctx, boolean>, opts?: ListOpts): ChainOf<Ctx, boolean>;
786
826
  none(this: ListChain<Ctx, boolean>, opts?: ListOpts): ChainOf<Ctx, boolean>;
787
827
  values(opts?: ListOpts): ChainOf<Ctx, readonly U[]>;
828
+ /** The keys of the items with a value, in the order of the axis. */
829
+ keys(opts?: ListOpts): ChainOf<Ctx, readonly Ctx["keys"][]>;
830
+ /** The error of each item that failed, in the order of the axis. */
831
+ errors(): ChainOf<Ctx, readonly VexError[]>;
788
832
  first(opts?: ListOpts): ChainOf<Ctx, U>;
789
- reduce(op: OpNames<DomainFor<Ctx["domains"], U>>, opts?: ListOpts): ChainOf<Ctx, U>;
833
+ reduce(op: OpNames<DomainFor<Ctx["domains"], U>>, opts?: ReduceOpts<Ctx>): ChainOf<Ctx, U>;
834
+ /** The list at the origin `k`: one item for each target of the axis, with its key and its result. */
835
+ result(k: Ctx["keys"]): Result<VexList<U>>;
836
+ /** The list at the origin `k`, as an `Optional`. */
837
+ at(k: Ctx["keys"]): Optional<VexList<U>>;
838
+ /** The trace of the evaluation of the list at the origin `k`. */
839
+ explain(k: Ctx["keys"]): Trace;
790
840
  }
791
841
  /** The options of a list reduction. */
792
842
  export interface ListOpts {
793
843
  /** With `true`, an error item makes the result that error. The default skips error items. */
794
844
  readonly strict?: boolean;
795
845
  }
846
+ /** The options of `reduce`. `domain` names the domain whose identity an empty list gives (LIST.EMPTY). */
847
+ export interface ReduceOpts<Ctx extends ChainContext> extends ListOpts {
848
+ readonly domain?: Ctx["domains"][number]["name"];
849
+ }
796
850
  /** The root of the builder for one space. */
797
851
  export interface Root<Ctx extends ChainContext> {
798
852
  /** This method starts a chain with a field of the record at the focus. */
@@ -839,9 +893,17 @@ export interface SheetRow<K extends string, Cols> {
839
893
  * other columns with `cell`. Each evaluation evaluates a cell once, and each cell on a cycle of references gives
840
894
  * `#CYCLE!`. A sheet is immutable: `column` gives a new sheet.
841
895
  */
842
- export interface Sheet<Ctx extends ChainContext, Cols> {
843
- /** This method gives a new sheet with one more column. The formula gets a root with `cell`. */
844
- column<const N extends string, C extends ChainBase<Ctx, unknown>>(name: N, formula: (r: SheetRoot<Ctx, Cols>) => C): Sheet<Ctx, Cols & { readonly [P in N]: ValueOf<C>; }>;
896
+ export interface Sheet<Ctx extends ChainContext, Cols, Decl = object> {
897
+ /**
898
+ * This method gives a new sheet with one more column. The formula gets a root with `cell`. If `declare` gave the
899
+ * column a type, the formula must give a value of that type.
900
+ */
901
+ column<const N extends string, C extends ChainBase<Ctx, DeclaredType<Decl, N>>>(name: N, formula: (r: SheetRoot<Ctx, Cols & Decl>) => C): Sheet<Ctx, Cols & { readonly [P in N]: ValueOf<C>; }, Decl>;
902
+ /**
903
+ * This method gives the types of columns before their formulas. A formula can then read a declared column with
904
+ * `cell` and its type: the column itself (a recurrence) or a later column. It has no effect at run time.
905
+ */
906
+ declare<D extends Readonly<Record<string, unknown>>>(): Sheet<Ctx, Cols, Decl & D>;
845
907
  /** The program of each column. */
846
908
  readonly columns: Readonly<Record<string, Expr>>;
847
909
  /** This method evaluates one cell, and gives the error if there is one. */
@@ -853,20 +915,23 @@ export interface Sheet<Ctx extends ChainContext, Cols> {
853
915
  /** This method evaluates each cell, in key order, with one result for each cell. */
854
916
  table(): readonly SheetRow<Ctx["keys"], Cols>[];
855
917
  }
918
+ /** The declared type of the column `N`, or `unknown` for a column without a declaration. */
919
+ export type DeclaredType<Decl, N extends string> = N extends keyof Decl ? Decl[N] : unknown;
856
920
  /** The options of the builder. */
857
- export interface VexOptions {
858
- /** Free function ops. */
859
- readonly fns?: Readonly<Record<string, FreeFn>>;
921
+ export interface VexOptions<F extends FnTable = FnTable> {
922
+ /** Free function ops. A chain applies them with `call`. */
923
+ readonly fns?: F;
860
924
  /** Handlers of extension expression kinds. */
861
925
  readonly extensions?: Readonly<Record<string, ExtHandler>>;
862
926
  }
863
927
  /** The entry point for a list of domains. */
864
- export interface VexEntry<Dms extends readonly AnyDomain[]> {
928
+ export interface VexEntry<Dms extends readonly AnyDomain[], F extends FnTable = NoFns> {
865
929
  /** This method gives the root of the builder for a space. */
866
930
  over<K extends string, O>(s: Space<K, O>): Root<{
867
931
  readonly domains: Dms;
868
932
  readonly keys: K;
869
933
  readonly record: Merge<O>;
934
+ readonly fns: F;
870
935
  }>;
871
936
  /** The domains. */
872
937
  readonly domains: Dms;
@@ -876,7 +941,7 @@ export interface VexEntry<Dms extends readonly AnyDomain[]> {
876
941
  * value in the first domain that accepts the value.
877
942
  */
878
943
  export declare function vex<const Dms extends readonly AnyDomain[]>(...domains: Dms): VexEntry<Dms> & {
879
- withOptions(options: VexOptions): VexEntry<Dms>;
944
+ withOptions<const F extends FnTable = NoFns>(options: VexOptions<F>): VexEntry<Dms, F>;
880
945
  };
881
946
  /** The type of a domain value, from the domain object. */
882
947
  export type ValueOfDomain<Dm> = DomainValue<Dm>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":["Optional","FamilyOptional"],"sources":["../../../node_modules/.pnpm/@mark1russell7+optional@htt_51d63135d3a4bb347c942166e3e4ba82/node_modules/@mark1russell7/optional/dist/index.d.ts","../src/errors.ts","../src/result.ts","../src/ir.ts","../src/space.ts","../src/domain.ts","../src/list.ts","../src/trace.ts","../src/evaluate.ts","../src/deps.ts","../src/json.ts","../src/traversal.ts","../src/sheet.ts","../src/builder.ts"],"ignoreList":[0],"mappings":";;;;;;KAKY;WACC;;;KAGD,KAAK;WACJ;WACA,OAAO;;;KAGRA,WAAS,KAAK,OAAO,KAAK;;;;;;;YCV1B;;YAGA;;iBA4CK;;WAEN,MAAM;;WAEN,MAAM;;WAEN;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA,kBAAkB;;WAElB;;;iBAIM;WACN;WACA;WACA;WACA;WACA,kBAAkB;WAClB;;;qBAIE,SAAU,MAAM,cAAY;;wBAGzB,SAAS,MAAM,WAAW,iBAAiB,UAAS,eAAoB;;qBAe3E,cAAe,GAAG;;;;;;;;YC7FnB,SAAS,KAAKC,WAAe;;YAG7B,OAAO;WAAgB;WAAmB,OAAO;;WAAiB;WAAoB,OAAO;;;qBAK5F,OAAQ,GAAG,OAAO,MAAI,SAAS;;qBAG/B,OAAQ,gBAAc,SAAS;;qBAG/B,KAAM,GAAG,OAAO,MAAI,OAAO;;qBAG3B,OAAQ,WAAW,OAAO,aAAW,OAAO;;qBAG5C,SAAU,GAAG,GAAG,SAAS,OAAK;WAAgB;WAAsB,OAAO;;;qBAG3E,SAAU,GAAG,GAAG,SAAS,OAAK;WAAgB;;;qBAG9C,aAAc,GAAG,GAAG,OAAO,OAAK,SAAS;;qBAGzC,QAAS,GAAG,GAAG,GAAG,SAAS,IAAI,UAAU,MAAI,IAAI;;qBAGjD,YAAa,GAAG,GAAG,GAAG,OAAO,IAAI,IAAI,OAAO,MAAM,MAAI,OAAO;;qBAG7D,cAAe,GAAG,GAAG,GAAG,OAAO,IAAI,IAAI,OAAO,MAAM,OAAO,OAAK,OAAO;;;;;;;;YCrCxE;WACG;WAAmB;;WACnB;WAAqB;;WACrB;;WACA;WAAsB;;WACtB;;W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AAS,MAAM;;WAEN,OAAO,MAAM,aAAa;;;iBAIpB,UAAU,YAAY,cAAc,cAAc,KAAK;;;;;EAKtE,KAAK,gBAAgB,eAAe,QAAQ,GAAG,KAAK,cAAc,OAAO,IAAI,KAAK;;EAElF,KAAK,GAAG,gBAAgB,KAAK,cAAc,OAAO,IAAI;;;iBAIvC,SAAS,kBAAkB;WACjC,KAAK;WACL,mBAAmB,WAAW,OAAO,OAAO,KAAK;;;;;;;iBAQ3C,MAAM,YAAY,cAAc;;EAE/C,aAAa,kBAAkB,UAAU,UAAU,eAAe,MAAM,GAAG,UAAU,GAAG,UAAU,KAAK,UAAU,IAAI,MAAM,KAAK,mBAAmB,KAAK,IAAI,QAAQ;;WAE3J,SAAS,SAAS,eAAe;;EAE1C,OAAO,gBAAgB,eAAe,GAAG,aAAa,QAAQ,IAAI,OAAO,KAAK;;EAE9E,GAAG,gBAAgB,eAAe,GAAG,aAAa,QAAQ,IAAI,SAAS,KAAK;;EAE5E,QAAQ,GAAG,aAAa,cAAc,gBAAgB;;EAEtD,kBAAkB,SAAS,aAAa;;;iBAIzB;;WAEN,MAAM,SAAS,eAAe;;WAE9B,aAAa,SAAS,eAAe;;;iBAI/B,SAAS,qBAAqB;;EAE7C,KAAK,kBAAkB,GAAG,GAAG,MAAM,GAAG,KAAK;aAAgB,SAAS;aAAc,MAAM;aAAY,QAAQ,MAAM;;;WAEzG,SAAS;;;;;;wBA6TJ,UAAU,qBAAqB,gBAAgB,SAAS,MAAM,SAAS;EAAS,YAAY,SAAS,aAAa,SAAS;;;YAU/H,cAAc,MAAM,YAAY"}
1
+ {"version":3,"file":"index.d.ts","names":["Optional","FamilyOptional"],"sources":["../../../node_modules/.pnpm/@mark1russell7+optional@https+++codeload.github.com+mark1russell7+optional+tar.gz+1c649_51d63135d3a4bb347c942166e3e4ba82/node_modules/@mark1russell7/optional/dist/index.d.ts","../src/errors.ts","../src/result.ts","../src/ir.ts","../src/space.ts","../src/domain.ts","../src/list.ts","../src/tr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