@formancy/report-core 0.1.0 → 0.2.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/NOTICE +8 -0
- package/README.md +94 -8
- package/dist/index.d.mts +48 -8
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +676 -193
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/NOTICE
CHANGED
|
@@ -7,3 +7,11 @@ This product is distributed under the Formancy Report Source-Available Licence
|
|
|
7
7
|
This product includes software developed by the formancy project
|
|
8
8
|
(https://github.com/sharkysan/formancy.ai), licensed under the Apache License,
|
|
9
9
|
Version 2.0. Those packages keep their licence; nothing here changes it.
|
|
10
|
+
|
|
11
|
+
@formancy/report-render-pdf includes the Liberation Sans fonts, version
|
|
12
|
+
2.1.5, Regular and Bold, in its fonts directory and, as base64, in its
|
|
13
|
+
browser build. Digitized data copyright (c) 2010 Google Corporation, with
|
|
14
|
+
Reserved Font Arimo, Tinos and Cousine. Copyright (c) 2012 Red Hat, Inc.,
|
|
15
|
+
with Reserved Font Name Liberation. They are licensed under the SIL Open
|
|
16
|
+
Font License, Version 1.1, whose text travels with them as
|
|
17
|
+
fonts/LICENSE-LiberationSans.txt; nothing here changes it.
|
package/README.md
CHANGED
|
@@ -59,18 +59,34 @@ clamps when what it names is not there:
|
|
|
59
59
|
- **the document:** `setTitle`, `setLocale`, `setPage`, `replaceDocument`;
|
|
60
60
|
- **declarations:** `putStyle`, `removeStyle`, `putDataset`, `removeDataset`,
|
|
61
61
|
`putField`, `removeField`, `putParameter`, `removeParameter`,
|
|
62
|
-
`moveParameter`, `putAsset`, `removeAsset`, `putAggregate`,
|
|
62
|
+
`moveParameter`, `addAsset`, `putAsset`, `removeAsset`, `putAggregate`,
|
|
63
63
|
`removeAggregate`. A put replaces the declaration with that id where it
|
|
64
|
-
stands, or appends it; it cannot rename
|
|
64
|
+
stands, or appends it; it cannot rename. `addAsset` only appends, and
|
|
65
|
+
refuses an id the report already declares as `already-declared`: a
|
|
66
|
+
builder names an image a person adds, a host keeps its bytes under that
|
|
67
|
+
id, and only then is it declared, so a put under an id the report came
|
|
68
|
+
to declare meanwhile would swap another image for it, unseen.
|
|
69
|
+
`nextAssetId(report, base, handed)` names it: `base`, or `base-2`,
|
|
70
|
+
`base-3`, by the rule a new component's id is made by, counting asset
|
|
71
|
+
ids alone and the ids in `handed`, those a builder has handed a host
|
|
72
|
+
already; a base that ends in a number is numbered as it stands, since
|
|
73
|
+
it is a file's name (`img-4711` taken gives `img-4711-2`);
|
|
65
74
|
- **components:** `insertComponent`, `removeComponent`, `moveComponent`,
|
|
66
75
|
`updateComponent` (a patch typed per kind; the id and kind never change),
|
|
67
76
|
`duplicateComponent` (fresh ids for the copy and all it holds), and
|
|
68
77
|
`nextComponentId`, which also names a new component after its kind:
|
|
69
|
-
`pageBreak` gives `page-break
|
|
78
|
+
`pageBreak` gives `page-break`, `qrCode` gives `qr-code`, `epcQrCode`
|
|
79
|
+
gives `epc-qr-code`;
|
|
70
80
|
- **the table:** `insertColumn`, `removeColumn` (with its footer cells),
|
|
71
81
|
`moveColumn`, `updateColumn`, `setGroup`, `setSort`, and the footer rows
|
|
72
82
|
under the table and under each group, row by row and cell by cell.
|
|
73
83
|
|
|
84
|
+
No command edits a report's payment part yet, its Swiss QR-bill, or its
|
|
85
|
+
e-invoice, and every one keeps each as it was: the very object, through
|
|
86
|
+
every edit. `replaceDocument` takes them with the rest of the document. An
|
|
87
|
+
edit that would leave an e-invoice's line with no column to print it, or
|
|
88
|
+
with a column that may be hidden, is refused with the validator's reason.
|
|
89
|
+
|
|
74
90
|
A patch removes an optional property with `null`, and `setGroup` and `setSort`
|
|
75
91
|
remove theirs with `null`, never with `undefined`: a proposal carries its
|
|
76
92
|
operations as JSON, which has no undefined.
|
|
@@ -142,6 +158,47 @@ proposal's review shows before Apply.
|
|
|
142
158
|
- the order to compute the aggregates in;
|
|
143
159
|
- its errors.
|
|
144
160
|
|
|
161
|
+
An expression in a QR code's content is compiled as one in a paragraph in
|
|
162
|
+
its place is: in the report's scope, its diagnostics naming the code. An
|
|
163
|
+
EPC QR code's texts are read the same way, in the order its payload holds
|
|
164
|
+
them, and named after the code. A payment part's texts are read the same
|
|
165
|
+
way too, in the report's scope, and its diagnostics name no component,
|
|
166
|
+
only the path: the bill stands in none. A payment code's amount, a
|
|
167
|
+
QR-bill's or an EPC QR code's, is compiled as a value that must give a
|
|
168
|
+
decimal or null, by one rule for both. One that may be null is checked as
|
|
169
|
+
`dyn`, which may be either, and the render checks what it holds. An integer
|
|
170
|
+
or a string is a type error, with `dec()` as the hint.
|
|
171
|
+
|
|
172
|
+
An e-invoice ([0027](../../docs/decisions/0027-a-report-carries-one-en-16931-invoice-written-from-the-values-its-page-prints.md)) is read as a payment part is: its texts in the
|
|
173
|
+
report's scope, named by their paths alone. Its dates and its paid amount
|
|
174
|
+
are values there, and the codes of each line -- its identifier, its unit
|
|
175
|
+
and its VAT category -- are values in each row's scope, as what an
|
|
176
|
+
aggregate reads from a row. Each is held to the term the XML writes it as:
|
|
177
|
+
|
|
178
|
+
- a date is a text, as a date field is read;
|
|
179
|
+
- the paid amount is a decimal;
|
|
180
|
+
- an identifier is a text or an integer, and a unit or a category a text.
|
|
181
|
+
|
|
182
|
+
The four columns that print a line's name, quantity, net price and net
|
|
183
|
+
amount are held to their terms too, wherever they compute one: a text for
|
|
184
|
+
the name, an integer or a decimal for the others. Each type comes from
|
|
185
|
+
report-spec's tables, which the validator holds a field to.
|
|
186
|
+
|
|
187
|
+
In a report that is an e-invoice, and in no other, every place that reads
|
|
188
|
+
`totals` also reads the totals the runtime computes once for the page and
|
|
189
|
+
the XML:
|
|
190
|
+
|
|
191
|
+
- `invoice.lineTotal`, `taxBasisTotal`, `taxTotal`, `grandTotal` and
|
|
192
|
+
`duePayable`, each a decimal, never null;
|
|
193
|
+
- `invoice.paid`, where a paid amount is declared, null where it may be;
|
|
194
|
+
- `vatBasis.<id>` and `vatAmount.<id>` for each declared category, null
|
|
195
|
+
when no line is in it.
|
|
196
|
+
|
|
197
|
+
They are not read where they are computed from, which would be a circle
|
|
198
|
+
no render could close: an aggregate's expression, the e-invoice's own, and
|
|
199
|
+
the columns that print a line. A read there is `expression-unknown-name`,
|
|
200
|
+
as one in any other report is.
|
|
201
|
+
|
|
145
202
|
`diagnose(report)` lists those errors, then the warnings. The runtime refuses
|
|
146
203
|
a report with an error, so the editor and the runtime cannot disagree about
|
|
147
204
|
one.
|
|
@@ -159,12 +216,24 @@ one.
|
|
|
159
216
|
one, and the position in its source. Two more are about totals: a rounding
|
|
160
217
|
declared on an aggregate that computes an integer, a date or an instant,
|
|
161
218
|
and a number format that prints a rounded total at fewer places than its
|
|
162
|
-
rounding keeps, which would round it twice.
|
|
219
|
+
rounding keeps, which would round it twice. And one is about an
|
|
220
|
+
e-invoice: a total its XML holds that no text or table of the page
|
|
221
|
+
prints (`e-invoice-total-unprinted`). Each of these is held: the total
|
|
222
|
+
without VAT, `invoice.taxBasisTotal` or `invoice.lineTotal`; the VAT
|
|
223
|
+
total; the total with VAT; and each declared category's basis and amount.
|
|
224
|
+
The paid amount and the amount due are held too where a paid amount is
|
|
225
|
+
declared. And one prints what the XML holds otherwise
|
|
226
|
+
(`e-invoice-format-differs`): a run that reads a total, or the column of
|
|
227
|
+
a line's net amount, at fewer than two places or in another currency
|
|
228
|
+
than the e-invoice's, named as a code; the column of a net price in
|
|
229
|
+
another currency; the column of an item's name in upper or lower case.
|
|
230
|
+
A quantity's and a price's places are the data's, and the runtime holds
|
|
231
|
+
them row by row.
|
|
163
232
|
- **Warnings:** an unused style, asset, parameter, field or aggregate, an
|
|
164
233
|
empty body, a text that prints nothing.
|
|
165
234
|
|
|
166
|
-
Every member read is checked as its type. `@formancy/expressions` 0.
|
|
167
|
-
declares a variable only by its whole name, so each read of `row.amount` is
|
|
235
|
+
Every member read is checked as its type. `@formancy/expressions` 0.6.0,
|
|
236
|
+
as 0.5.0 before it, declares a variable only by its whole name, so each read of `row.amount` is
|
|
168
237
|
spliced, by upstream's own `rewritePath`, into a read of `row_amount`, a
|
|
169
238
|
variable declared as a decimal. An exact value is used as what it is,
|
|
170
239
|
`row.amount * dec("1.081")`, and `dec(row.amount)` is a type error. A member
|
|
@@ -186,7 +255,24 @@ What this does not do:
|
|
|
186
255
|
decimal and a `dyn`, so it cannot be written directly; ordering works.
|
|
187
256
|
- **`has()` on a member.** Every member is bound, null when it has no value,
|
|
188
257
|
so `!= null` is the way to ask.
|
|
189
|
-
- **Layout.** Whether a keep-together block fits a page,
|
|
190
|
-
|
|
258
|
+
- **Layout.** Whether a keep-together block fits a page, a column its width,
|
|
259
|
+
or a QR code's content its square, is the renderer's to say.
|
|
260
|
+
- **A payment code's values.** Whether an amount has two decimals at
|
|
261
|
+
most, and whether what a field puts in a QR-bill or an EPC QR code is an
|
|
262
|
+
IBAN, a reference or a name its rules allow, depends on the data. The
|
|
263
|
+
runtime checks them with `@formancy/report-spec`'s rules, the ones the
|
|
264
|
+
validator applies to a literal.
|
|
265
|
+
- **An e-invoice's values.** A date is held to be a text, not to be a
|
|
266
|
+
date: `header.customer` passes where `params.copies` does not. Whether
|
|
267
|
+
each text is a calendar date, an amount a whole number of cents, or a
|
|
268
|
+
line's category one the e-invoice declares, the runtime checks with the
|
|
269
|
+
same rules, once the data has resolved it.
|
|
270
|
+
- **What a page prints beside a total.** `e-invoice-total-unprinted` and
|
|
271
|
+
`e-invoice-format-differs` are the template's, not the data's: a run
|
|
272
|
+
behind a condition counts as printing what it reads, a run that reads a
|
|
273
|
+
total counts whatever it computes from it, and every declared category
|
|
274
|
+
is held, since which ones the lines use is known only at render. A
|
|
275
|
+
condition, a style rule, a QR code and a payment code's amount print
|
|
276
|
+
nothing.
|
|
191
277
|
|
|
192
278
|
Source-available, not open source: see [`LICENSE.md`](../../LICENSE.md).
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AggregateDef, AssetRef, Component, ComponentKind, DatasetContract, DatasetRole, FieldContract, FieldType, GROUP_KEY, Margins, Orientation, PageSizeName, ParameterDef, PrintStyle, RegionName, ReportDefinition, ReportError, SortKey, TableColumn, TableFooterCell, TableFooterRow, TableGroup, ValueScope } from "@formancy/report-spec";
|
|
1
|
+
import { AggregateDef, AssetRef, Component, ComponentKind, DatasetContract, DatasetRole, FieldContract, FieldType, Format, GROUP_KEY, Margins, Orientation, PageSizeName, ParameterDef, PrintStyle, RegionName, ReportDefinition, ReportError, SortKey, TableColumn, TableFooterCell, TableFooterRow, TableGroup, ValueScope } from "@formancy/report-spec";
|
|
2
2
|
import { DeclaredType, Program, SourceSpan } from "@formancy/expressions";
|
|
3
3
|
//#region src/outcome.d.ts
|
|
4
4
|
/**
|
|
@@ -8,7 +8,7 @@ import { DeclaredType, Program, SourceSpan } from "@formancy/expressions";
|
|
|
8
8
|
* new reason gets a new code. Each has a case in `outcome.test.ts` that is
|
|
9
9
|
* refused with it, which does not compile while one is missing.
|
|
10
10
|
*/
|
|
11
|
-
export declare const REFUSAL_CODES: readonly ["not-found", "not-a-container", "invalid-location", "index-out-of-range", "into-itself", "kind-mismatch", "immutable-property", "unknown-command", "invalid-arguments", "invalid-document", "stale-document"];
|
|
11
|
+
export declare const REFUSAL_CODES: readonly ["not-found", "not-a-container", "invalid-location", "index-out-of-range", "into-itself", "kind-mismatch", "immutable-property", "already-declared", "unknown-command", "invalid-arguments", "invalid-document", "stale-document"];
|
|
12
12
|
type RefusalCode = (typeof REFUSAL_CODES)[number];
|
|
13
13
|
interface Refusal {
|
|
14
14
|
readonly ok: false;
|
|
@@ -102,6 +102,20 @@ export declare function removeParameter(report: ReportDefinition, id: string): C
|
|
|
102
102
|
/** The parameter `id` moved so that it ends at `index`: the order the parameter form shows. */
|
|
103
103
|
export declare function moveParameter(report: ReportDefinition, id: string, index: number): CommandOutcome;
|
|
104
104
|
export declare function putAsset(report: ReportDefinition, id: string, asset: Omit<AssetRef, 'id'>): CommandOutcome;
|
|
105
|
+
/** The asset appended under `id`; refused as `already-declared` when the report declares one under it already. */
|
|
106
|
+
export declare function addAsset(report: ReportDefinition, id: string, asset: Omit<AssetRef, 'id'>): CommandOutcome;
|
|
107
|
+
/**
|
|
108
|
+
* An id no asset of `report` has, and none of `handed`: `base` itself when
|
|
109
|
+
* it is free, and otherwise `base-2`, `base-3` and so on, shortened so that
|
|
110
|
+
* its number fits, as a new component's is. The base is a file's name,
|
|
111
|
+
* folded, so a number it ends in is its own and is numbered too:
|
|
112
|
+
* `img-4711` taken gives `img-4711-2`. Assets are a namespace of their own
|
|
113
|
+
* (0007), so a component's id does not count; `handed` holds the ids a
|
|
114
|
+
* builder has handed a host already, which an undo may declare again for
|
|
115
|
+
* the bytes it handed under them (0033). Throws a RangeError for a base
|
|
116
|
+
* that is not an identifier.
|
|
117
|
+
*/
|
|
118
|
+
export declare function nextAssetId(report: ReportDefinition, base: string, handed?: ReadonlySet<string>): string;
|
|
105
119
|
export declare function removeAsset(report: ReportDefinition, id: string): CommandOutcome;
|
|
106
120
|
export declare function putAggregate(report: ReportDefinition, id: string, aggregate: Omit<AggregateDef, 'id'>): CommandOutcome;
|
|
107
121
|
export declare function removeAggregate(report: ReportDefinition, id: string): CommandOutcome;
|
|
@@ -167,6 +181,7 @@ export declare const COMMANDS: Readonly<{
|
|
|
167
181
|
putParameter: typeof putParameter;
|
|
168
182
|
removeParameter: typeof removeParameter;
|
|
169
183
|
moveParameter: typeof moveParameter;
|
|
184
|
+
addAsset: typeof addAsset;
|
|
170
185
|
putAsset: typeof putAsset;
|
|
171
186
|
removeAsset: typeof removeAsset;
|
|
172
187
|
putAggregate: typeof putAggregate;
|
|
@@ -412,11 +427,11 @@ export declare const DIAGNOSTIC_SEVERITIES: {
|
|
|
412
427
|
readonly 'expression-syntax': "error";
|
|
413
428
|
/** An expression past a structural limit of `@formancy/expressions`: too deep, too many nodes, too long a list. */
|
|
414
429
|
readonly 'expression-limit': "error";
|
|
415
|
-
/** An expression whose types do not meet, each member read as the type it is declared: an integer parameter added to a string, a decimal field compared with an integer, a decimal converted with dec() again. */
|
|
430
|
+
/** An expression whose types do not meet, each member read as the type it is declared: an integer parameter added to a string, a decimal field compared with an integer, a decimal converted with dec() again; a QR-bill's or an EPC QR code's amount that gives anything but a decimal or null; or an e-invoice's date, paid amount or line term that gives what its term is not. */
|
|
416
431
|
readonly 'expression-type': "error";
|
|
417
432
|
/** An expression its place does not allow: a condition that is not a boolean, a function its kind forbids. */
|
|
418
433
|
readonly 'expression-policy': "error";
|
|
419
|
-
/** An expression that reads a name, or a member of one, that nothing declares, or a member of a single value. */
|
|
434
|
+
/** An expression that reads a name, or a member of one, that nothing declares, or a member of a single value; or an e-invoice's total where there is none, or where it is computed from. */
|
|
420
435
|
readonly 'expression-unknown-name': "error";
|
|
421
436
|
/** An expression that reads `row` or `group` where there is no row or group. */
|
|
422
437
|
readonly 'expression-out-of-scope': "error";
|
|
@@ -438,6 +453,10 @@ export declare const DIAGNOSTIC_SEVERITIES: {
|
|
|
438
453
|
readonly 'format-rounds-again': "error";
|
|
439
454
|
/** A rounding declared on an aggregate that computes an integer, a date or an instant, which have no places to round: the runtime refuses it. */
|
|
440
455
|
readonly 'rounding-not-decimal': "error";
|
|
456
|
+
/** A total an e-invoice's XML holds -- a document total, or a declared VAT category's basis or amount -- that no text or table of the page prints: the page would show another invoice than the one it carries. */
|
|
457
|
+
readonly 'e-invoice-total-unprinted': "error";
|
|
458
|
+
/** A format that prints what an e-invoice's XML holds otherwise: a total or a line's net amount at fewer than two places, or in another currency than the e-invoice's; a line's net price in another currency; a line's name in another case. The page would show another invoice than the one it carries. */
|
|
459
|
+
readonly 'e-invoice-format-differs': "error";
|
|
441
460
|
/** A print style nothing uses. */
|
|
442
461
|
readonly 'unused-style': "warning";
|
|
443
462
|
/** An asset nothing draws. */
|
|
@@ -486,7 +505,28 @@ interface ExpressionSite {
|
|
|
486
505
|
readonly componentId?: string;
|
|
487
506
|
/** The table column it belongs to, for a column's value, condition or style rule. */
|
|
488
507
|
readonly columnId?: string;
|
|
508
|
+
/** What the expression is the amount of, when it is a payment code's -- a decimal, or null to leave it for the payer. */
|
|
509
|
+
readonly amount?: PaymentAmount;
|
|
510
|
+
/**
|
|
511
|
+
* For an expression an e-invoice is written from -- one of the e-invoice's
|
|
512
|
+
* own, or the value of a column that prints a term of each line -- the
|
|
513
|
+
* term it gives the XML. Such an expression is part of what the
|
|
514
|
+
* e-invoice's totals are computed from or written with, so it never
|
|
515
|
+
* reads them.
|
|
516
|
+
*/
|
|
517
|
+
readonly term?: InvoiceTerm;
|
|
518
|
+
/** For an expression a run holds, the format the run prints its value with, where it has one. */
|
|
519
|
+
readonly format?: Format;
|
|
520
|
+
}
|
|
521
|
+
/** What an expression gives an e-invoice's XML. */
|
|
522
|
+
interface InvoiceTerm {
|
|
523
|
+
/** As a message names it: "the issue date (BT-2)", or, for a run of one of the e-invoice's texts, "a text of the e-invoice". */
|
|
524
|
+
readonly what: string;
|
|
525
|
+
/** The types of field it may be, given as an expression reads each -- for a line's term, report-spec's own -- absent for a run, which gives text whatever it computes. */
|
|
526
|
+
readonly types?: readonly FieldType[];
|
|
489
527
|
}
|
|
528
|
+
/** The payment codes an amount is printed in, as a message names each. */
|
|
529
|
+
type PaymentAmount = 'a QR-bill' | 'an EPC QR code';
|
|
490
530
|
/** Every expression in the report, each with the scope it is compiled in and what it is for. */
|
|
491
531
|
export declare function expressionSites(report: ReportDefinition): readonly ExpressionSite[];
|
|
492
532
|
//#endregion
|
|
@@ -516,8 +556,8 @@ interface ExpressionMember {
|
|
|
516
556
|
readonly type: DeclaredType;
|
|
517
557
|
readonly nullable: boolean;
|
|
518
558
|
}
|
|
519
|
-
/** Every name the format binds, in some scope. A test holds this to the union of `EXPRESSION_NAMES`. */
|
|
520
|
-
export declare const SCOPE_NAMES: readonly ["params", "header", "row", "totals", "group"];
|
|
559
|
+
/** Every name the format binds, in some scope or in an e-invoice. A test holds this to the union of `EXPRESSION_NAMES` and `E_INVOICE_NAMES`. */
|
|
560
|
+
export declare const SCOPE_NAMES: readonly ["params", "header", "row", "totals", "group", "invoice", "vatBasis", "vatAmount"];
|
|
521
561
|
type ScopeName = (typeof SCOPE_NAMES)[number];
|
|
522
562
|
/** What each name holds in one report, member by member, in declaration order. */
|
|
523
563
|
type Members = { readonly [N in ScopeName]: ReadonlyMap<string, ExpressionMember>; };
|
|
@@ -590,8 +630,8 @@ type UnreproducibleFunction = (typeof UNREPRODUCIBLE_FUNCTIONS)[number];
|
|
|
590
630
|
/**
|
|
591
631
|
* Every diagnostic for `report`, a report the validator accepts -- a
|
|
592
632
|
* session's document is one. Expressions first, in document order, the
|
|
593
|
-
* aggregates' last, then roundings, then
|
|
594
|
-
* in the order they are declared. The expressions' are `compileReport`'s,
|
|
633
|
+
* aggregates' last, then roundings, then the e-invoice's unprinted totals,
|
|
634
|
+
* then content, then unused declarations in the order they are declared. The expressions' are `compileReport`'s,
|
|
595
635
|
* so the editor reports exactly what the runtime refuses.
|
|
596
636
|
*/
|
|
597
637
|
export declare function diagnose(report: ReportDefinition): Diagnostic[];
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/outcome.ts","../src/lists.ts","../src/tree.ts","../src/commands/components.ts","../src/commands/declarations.ts","../src/commands/document.ts","../src/commands/table.ts","../src/commands/registry.ts","../src/draft.ts","../src/snapshot.ts","../src/session.ts","../src/locations.ts","../src/diagnostics/codes.ts","../src/diagnostics/parts.ts","../src/expressions/members.ts","../src/expressions/compile-site.ts","../src/expressions/compile-report.ts","../src/expressions/values.ts","../src/expressions/reproducible.ts","../src/diagnostics/diagnose.ts"],"mappings":";;;;;;;;;;qBAoBa;
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/outcome.ts","../src/lists.ts","../src/tree.ts","../src/commands/components.ts","../src/commands/declarations.ts","../src/commands/document.ts","../src/commands/table.ts","../src/commands/registry.ts","../src/draft.ts","../src/snapshot.ts","../src/session.ts","../src/locations.ts","../src/diagnostics/codes.ts","../src/diagnostics/parts.ts","../src/expressions/members.ts","../src/expressions/compile-site.ts","../src/expressions/compile-report.ts","../src/expressions/values.ts","../src/expressions/reproducible.ts","../src/diagnostics/diagnose.ts"],"mappings":";;;;;;;;;;qBAoBa;KA2BD,sBAAsB;UAEjB;WACN;WACA,MAAM;WACN;;WAEA;;WAEA;;WAEA,kBAAkB;;;KAIjB,eAAe;WAAyC;WAAmB,QAAQ;IAAqB,SAAS,MAAM;;KAGvH,QAAQ,8BAA8B,QAAQ,qBAAqB,eAAe;;;;;;;;;;;;KChDlF,MAAM,iBAAiB,WAAW,uBAAuB,EAAE,KAAK,QAAQ,EAAE,wBAAwB,EAAE;;;;;;;;UCC/F;WACN,QAAQ;;WAER;;WAEA;WACA;;;;;;;;;KCAC,eAAe,UAAU,iBAAiB,UAAU,gBAAgB,MAAM,KAAK,QAAQ;EAAa,MAAM;;wBAatG,gBAAgB,QAAQ,kBAAkB,UAAU,UAAU,WAAW,YAAY;;wBAMrF,gBAAgB,QAAQ,kBAAkB,aAAa;;;;;;wBAYvD,cAAc,QAAQ,kBAAkB,YAAY,UAAU,WAAW;;;;;;wBAkBzE,gBAAgB,UAAU,eAAe,QAAQ,kBAAkB,YAAY,MAAM,GAAG,OAAO,eAAe,KAAK;;;;;;;;;wBA4CnH,gBAAgB,QAAQ,kBAAkB;;wBAa1C,mBAAmB,QAAQ,kBAAkB,aAAa;WAA0B;;;;wBChFpF,SAAS,QAAQ,kBAAkB,YAAY,OAAO,KAAK,oBAAoB;wBAI/E,YAAY,QAAQ,kBAAkB,aAAa;wBAInD,aAAa,QAAQ,kBAAkB,YAAY,WAAW,KAAK,sBAAsB;wBAIzF,gBAAgB,QAAQ,kBAAkB,aAAa;;wBAKvD,cAAc,QAAQ,kBAAkB,YAAY,gBAAgB;wBAOpE,SAAS,QAAQ,kBAAkB,YAAY,OAAO,KAAK,kBAAkB;;wBAK7E,SAAS,QAAQ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