@cratis/chronicle 6.72.0 → 6.72.2
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/testing/for_ReadModelScenario/when_stepping_with_children/given/compiled_projection.d.ts +51 -0
- package/dist/testing/for_ReadModelScenario/when_stepping_with_children/given/compiled_projection.d.ts.map +1 -0
- package/dist/testing/for_ReadModelScenario/when_stepping_with_children/given/compiled_projection.js +115 -0
- package/dist/testing/for_ReadModelScenario/when_stepping_with_children/given/compiled_projection.js.map +1 -0
- package/dist/testing/for_ReadModelScenario/when_stepping_with_children/given/lifecycle.d.ts +24 -0
- package/dist/testing/for_ReadModelScenario/when_stepping_with_children/given/lifecycle.d.ts.map +1 -0
- package/dist/testing/for_ReadModelScenario/when_stepping_with_children/given/lifecycle.js +34 -0
- package/dist/testing/for_ReadModelScenario/when_stepping_with_children/given/lifecycle.js.map +1 -0
- package/dist/testing/for_ReadModelScenario/when_stepping_with_children/given/oracle_input.d.ts +7 -0
- package/dist/testing/for_ReadModelScenario/when_stepping_with_children/given/oracle_input.d.ts.map +1 -0
- package/dist/testing/for_ReadModelScenario/when_stepping_with_children/given/oracle_input.js +33 -0
- package/dist/testing/for_ReadModelScenario/when_stepping_with_children/given/oracle_input.js.map +1 -0
- package/dist/testing/for_ReadModelScenario/when_subtracting_with_children/given/compiled_projection.d.ts +145 -0
- package/dist/testing/for_ReadModelScenario/when_subtracting_with_children/given/compiled_projection.d.ts.map +1 -0
- package/dist/testing/for_ReadModelScenario/when_subtracting_with_children/given/compiled_projection.js +142 -0
- package/dist/testing/for_ReadModelScenario/when_subtracting_with_children/given/compiled_projection.js.map +1 -0
- package/dist/testing/for_ReadModelScenario/when_subtracting_with_children/given/lifecycle.d.ts +24 -0
- package/dist/testing/for_ReadModelScenario/when_subtracting_with_children/given/lifecycle.d.ts.map +1 -0
- package/dist/testing/for_ReadModelScenario/when_subtracting_with_children/given/lifecycle.js +34 -0
- package/dist/testing/for_ReadModelScenario/when_subtracting_with_children/given/lifecycle.js.map +1 -0
- package/dist/testing/for_ReadModelScenario/when_subtracting_with_children/given/oracle_input.d.ts +7 -0
- package/dist/testing/for_ReadModelScenario/when_subtracting_with_children/given/oracle_input.d.ts.map +1 -0
- package/dist/testing/for_ReadModelScenario/when_subtracting_with_children/given/oracle_input.js +33 -0
- package/dist/testing/for_ReadModelScenario/when_subtracting_with_children/given/oracle_input.js.map +1 -0
- package/dist/testing/projections/ProjectionArithmeticChildrenCapabilities.d.ts.map +1 -1
- package/dist/testing/projections/ProjectionArithmeticChildrenCapabilities.js +3 -1
- package/dist/testing/projections/ProjectionArithmeticChildrenCapabilities.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/testing/for_ReadModelScenario/when_stepping_with_children/given/compiled_projection.ts +59 -0
- package/testing/for_ReadModelScenario/when_stepping_with_children/given/lifecycle.ts +38 -0
- package/testing/for_ReadModelScenario/when_stepping_with_children/given/oracle_input.ts +36 -0
- package/testing/for_ReadModelScenario/when_stepping_with_children/with_a_fluent_projection.spec.ts +30 -0
- package/testing/for_ReadModelScenario/when_stepping_with_children/with_legacy_decorators.legacy.spec.ts +56 -0
- package/testing/for_ReadModelScenario/when_stepping_with_children/with_standard_decorators.standard.spec.ts +58 -0
- package/testing/for_ReadModelScenario/when_subtracting_with_children/given/compiled_projection.ts +71 -0
- package/testing/for_ReadModelScenario/when_subtracting_with_children/given/lifecycle.ts +38 -0
- package/testing/for_ReadModelScenario/when_subtracting_with_children/given/oracle_input.ts +36 -0
- package/testing/for_ReadModelScenario/when_subtracting_with_children/with_a_fluent_projection.spec.ts +40 -0
- package/testing/for_ReadModelScenario/when_subtracting_with_children/with_legacy_decorators.legacy.spec.ts +50 -0
- package/testing/for_ReadModelScenario/when_subtracting_with_children/with_standard_decorators.standard.spec.ts +51 -0
- package/testing/projections/ProjectionArithmeticChildrenCapabilities.ts +2 -1
- package/testing/projections/for_ProjectionCapabilities/when_validating_add_with_children.spec.ts +1 -1
- package/testing/projections/for_ProjectionCapabilities/when_validating_count_with_children.spec.ts +11 -10
- package/testing/projections/for_ProjectionCapabilities/when_validating_steps_with_children.spec.ts +99 -0
- package/testing/projections/for_ProjectionCapabilities/when_validating_subtract_with_children.spec.ts +105 -0
package/testing/projections/for_ProjectionCapabilities/when_validating_steps_with_children.spec.ts
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
2
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
|
+
|
|
4
|
+
import { beforeEach, chai, describe, it } from 'vitest';
|
|
5
|
+
import type { ProjectionDefinition } from '@cratis/chronicle.contracts';
|
|
6
|
+
import { EventType } from '../../../events/EventType.js';
|
|
7
|
+
import type { JsonSchema } from '../../../schemas/JsonSchema.js';
|
|
8
|
+
import { variants, Totals } from '../../for_ReadModelScenario/when_stepping_with_children/given/compiled_projection.js';
|
|
9
|
+
import type { ScenarioEvent } from '../../ScenarioEvent.js';
|
|
10
|
+
import { ProjectionReadModelProcessor } from '../ProjectionReadModelProcessor.js';
|
|
11
|
+
import { UnsupportedProjectionOperation } from '../UnsupportedProjectionOperation.js';
|
|
12
|
+
|
|
13
|
+
chai.should();
|
|
14
|
+
type Candidate = { compiled: ReturnType<typeof variants[number]['compile']>; definition: ProjectionDefinition; schema: JsonSchema };
|
|
15
|
+
type Mutation = (candidate: Candidate) => void;
|
|
16
|
+
const boundaries: Array<[string, Mutation]> = [
|
|
17
|
+
...['$increment()', '$increment(total)', '$increment + 1', '$incremented', '$decrement()', '$decrement(total)',
|
|
18
|
+
'$decrement + 1', '$decremented'].map(expression =>
|
|
19
|
+
[expression, ({ definition }: Candidate) => { definition.From[0].Value.Properties.total = expression; }] as [string, Mutation]),
|
|
20
|
+
...['int32', 'uint32', 'float', 'double', ''].map(format =>
|
|
21
|
+
[`${format || 'empty'} target format`, ({ schema }: Candidate) => { schema.properties!.total.format = format; }] as [string, Mutation]),
|
|
22
|
+
['integer target', ({ schema }) => { schema.properties!.total = { type: 'integer', format: 'int32' }; }],
|
|
23
|
+
['non-numeric target', ({ schema }) => { schema.properties!.total = { type: 'string' }; }],
|
|
24
|
+
['nullable target', ({ schema }) => { Object.assign(schema.properties!.total, { type: ['number', 'null'] }); }],
|
|
25
|
+
['protected target', ({ schema }) => { schema.properties!.total.security = [{ metadataType: 'EncryptedSubject', details: '' }]; }],
|
|
26
|
+
['compliance target', ({ schema }) => { schema.properties!.total.compliance = [{ metadataType: 'PII', details: '' }]; }],
|
|
27
|
+
['GUID root identifier', ({ schema }) => { schema.properties!.id.format = 'uuid'; }],
|
|
28
|
+
['extra root property', ({ schema }) => { schema.properties!.name = { type: 'string' }; }],
|
|
29
|
+
['extra root mapping', ({ definition }) => { definition.From[0].Value.Properties.id = '$eventSourceId'; }],
|
|
30
|
+
['multiple root subscriptions', ({ definition }) => { definition.From.push(structuredClone(definition.From[0])); }],
|
|
31
|
+
['initial values', ({ definition }) => { definition.InitialModelState = '{"total":0}'; }],
|
|
32
|
+
['root join', ({ definition }) => { definition.Join.push({ Key: definition.From[0].Key, Value: { On: 'id', Properties: {}, Key: '$eventSourceId' } }); }],
|
|
33
|
+
['multiple child collections', ({ definition }) => { definition.Children.other = structuredClone(definition.Children.items); }],
|
|
34
|
+
['untyped children', ({ schema }) => { delete schema.properties!.items.items!.properties; }],
|
|
35
|
+
['numeric child property', ({ schema }) => { schema.properties!.items.items!.properties!.name = { type: 'number' }; }],
|
|
36
|
+
['missing child identifier', ({ schema }) => { delete schema.properties!.items.items!.properties!.itemId; }],
|
|
37
|
+
['child From without event Key', ({ definition }) => { delete definition.Children.items.From[0].Key; }],
|
|
38
|
+
['child removal without event Key', ({ definition }) => { delete definition.Children.items.RemovedWith[0].Key; }],
|
|
39
|
+
['shared root and child From', ({ definition }) => { definition.Children.items.From[0].Key = definition.From[0].Key; }],
|
|
40
|
+
['shared root From and child removal', ({ definition }) => { definition.Children.items.RemovedWith[0].Key = definition.From[0].Key; }],
|
|
41
|
+
['shared root removal and child From', ({ definition }) => { definition.Children.items.From[0].Key = definition.RemovedWith[0].Key; }],
|
|
42
|
+
['shared root and child removal', ({ definition }) => { definition.Children.items.RemovedWith[0].Key = definition.RemovedWith[0].Key; }],
|
|
43
|
+
['shared root From and removal', ({ definition }) => { definition.RemovedWith[0].Key = definition.From[0].Key; }],
|
|
44
|
+
['custom root key', ({ definition }) => { definition.From[0].Value.Key = 'total'; }],
|
|
45
|
+
['custom root parent key', ({ definition }) => { definition.From[0].Value.ParentKey = 'total'; }],
|
|
46
|
+
['custom child parent key', ({ definition }) => { definition.Children.items.From[0].Value.ParentKey = 'itemId'; }],
|
|
47
|
+
['child join', ({ definition }) => { definition.Children.items.Join.push({}); }],
|
|
48
|
+
['nested children', ({ definition }) => { definition.Children.items.Children.nested = structuredClone(definition.Children.items); }],
|
|
49
|
+
['value children', ({ definition }) => { definition.Children.items.FromEventProperty = 'items'; }],
|
|
50
|
+
['unknown child expression', ({ definition }) => { definition.Children.items.From[0].Value.Properties.name = '$unknown(name)'; }],
|
|
51
|
+
['unknown root expression', ({ definition }) => { definition.From[0].Value.Properties.total = '$unknown(total)'; }]
|
|
52
|
+
];
|
|
53
|
+
|
|
54
|
+
function mixtures(expression: string): Array<[string, Mutation]> {
|
|
55
|
+
return ['$increment', '$decrement', '$add(total)', '$subtract(total)', '$count'].filter(other => other !== expression)
|
|
56
|
+
.flatMap(other => [false, true].flatMap(otherFirst => [
|
|
57
|
+
[`${expression}/${other} same target, other first=${otherFirst}`, ({ definition }: Candidate) => {
|
|
58
|
+
const second = structuredClone(definition.From[0]);
|
|
59
|
+
second.Value.Properties.total = other;
|
|
60
|
+
if (otherFirst) definition.From.unshift(second);
|
|
61
|
+
else definition.From.push(second);
|
|
62
|
+
}],
|
|
63
|
+
[`${expression}/${other} different targets, other first=${otherFirst}`, ({ definition, schema }: Candidate) => {
|
|
64
|
+
schema.properties!.other = { type: 'number' };
|
|
65
|
+
definition.From[0].Value.Properties = otherFirst ? { other, total: expression } : { total: expression, other };
|
|
66
|
+
}]
|
|
67
|
+
] as Array<[string, Mutation]>));
|
|
68
|
+
}
|
|
69
|
+
function candidate(variant: typeof variants[number]): Candidate {
|
|
70
|
+
const compiled = variant.compile();
|
|
71
|
+
return { compiled, definition: compiled.definitions[0], schema: JSON.parse(compiled.readModels[0].Schema) };
|
|
72
|
+
}
|
|
73
|
+
const seeded: ScenarioEvent = {
|
|
74
|
+
sourceId: 'A', content: { total: 2.5 },
|
|
75
|
+
context: {
|
|
76
|
+
eventSourceId: 'A', eventType: EventType.parse('Stepped+1'), sequenceNumber: 0n,
|
|
77
|
+
occurred: new Date('2025-01-01T00:00:00Z'), correlationId: '00000000-0000-0000-0000-000000000000',
|
|
78
|
+
causation: [], tags: []
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
for (const variant of variants) {
|
|
82
|
+
for (const [name, mutate] of [...boundaries, ...mixtures(`$${variant.operation}`)]) {
|
|
83
|
+
for (const [historyName, history] of [['empty', []], ['seeded', [seeded]]] as const) {
|
|
84
|
+
describe(`when rejecting ${variant.operation} with children: ${name}, ${historyName} history`, () => {
|
|
85
|
+
let act: () => Promise<unknown>;
|
|
86
|
+
beforeEach(() => {
|
|
87
|
+
const value = candidate(variant);
|
|
88
|
+
mutate(value);
|
|
89
|
+
value.compiled.readModels[0].Schema = JSON.stringify(value.schema);
|
|
90
|
+
act = () => new ProjectionReadModelProcessor(Totals, value.compiled, value.definition).process(history);
|
|
91
|
+
});
|
|
92
|
+
it('should reject before replay with the model and contract path', () => {
|
|
93
|
+
act.should.throw(UnsupportedProjectionOperation).and.satisfy((error: Error) =>
|
|
94
|
+
error.message.includes('Totals') && /Children|From|Join|Schema|Definition/.test(error.message));
|
|
95
|
+
});
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
2
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
|
+
|
|
4
|
+
import { beforeEach, chai, describe, it } from 'vitest';
|
|
5
|
+
import type { ProjectionDefinition } from '@cratis/chronicle.contracts';
|
|
6
|
+
import { EventType } from '../../../events/EventType.js';
|
|
7
|
+
import type { JsonSchema } from '../../../schemas/JsonSchema.js';
|
|
8
|
+
import { compile, Totals } from '../../for_ReadModelScenario/when_subtracting_with_children/given/compiled_projection.js';
|
|
9
|
+
import type { ScenarioEvent } from '../../ScenarioEvent.js';
|
|
10
|
+
import { ProjectionReadModelProcessor } from '../ProjectionReadModelProcessor.js';
|
|
11
|
+
import { UnsupportedProjectionOperation } from '../UnsupportedProjectionOperation.js';
|
|
12
|
+
|
|
13
|
+
chai.should();
|
|
14
|
+
type Candidate = { compiled: ReturnType<typeof compile>; definition: ProjectionDefinition; schema: JsonSchema; operand: JsonSchema };
|
|
15
|
+
type Mutation = (candidate: Candidate) => void;
|
|
16
|
+
const boundaries: Array<[string, Mutation]> = [
|
|
17
|
+
...['$subtract()', '$subtract(amount + 1)', '$subtract(nested.amount)', '$subtract($eventSourceId)',
|
|
18
|
+
'$subtract(1)', '$subtract(true)', '$subtract(snake_case)', '$subtract(missing)', '$subtract(amount', '$subtract(_snake_case)'].map(expression =>
|
|
19
|
+
[expression, ({ definition }: Candidate) => { definition.From[0].Value.Properties.total = expression; }] as [string, Mutation]),
|
|
20
|
+
...['int32', 'uint32', 'float', 'double', ''].flatMap(format => [
|
|
21
|
+
[`${format || 'empty'} operand format`, ({ operand }: Candidate) => { operand.format = format; }],
|
|
22
|
+
[`${format || 'empty'} target format`, ({ schema }: Candidate) => { schema.properties!.total.format = format; }]
|
|
23
|
+
] as Array<[string, Mutation]>),
|
|
24
|
+
['integer operand', ({ operand }) => { operand.type = 'integer'; operand.format = 'int32'; }],
|
|
25
|
+
['integer target', ({ schema }) => { schema.properties!.total = { type: 'integer', format: 'int32' }; }],
|
|
26
|
+
['non-numeric operand', ({ operand }) => { operand.type = 'string'; }],
|
|
27
|
+
['non-numeric target', ({ schema }) => { schema.properties!.total = { type: 'string' }; }],
|
|
28
|
+
['nullable operand', ({ operand }) => { Object.assign(operand, { type: ['number', 'null'] }); }],
|
|
29
|
+
['nullable target', ({ schema }) => { Object.assign(schema.properties!.total, { type: ['number', 'null'] }); }],
|
|
30
|
+
['protected operand', ({ operand }) => { operand.security = [{ metadataType: 'EncryptedSubject', details: '' }]; }],
|
|
31
|
+
['compliance operand', ({ operand }) => { operand.compliance = [{ metadataType: 'PII', details: '' }]; }],
|
|
32
|
+
['protected target', ({ schema }) => { schema.properties!.total.security = [{ metadataType: 'EncryptedSubject', details: '' }]; }],
|
|
33
|
+
['compliance target', ({ schema }) => { schema.properties!.total.compliance = [{ metadataType: 'PII', details: '' }]; }],
|
|
34
|
+
['GUID root identifier', ({ schema }) => { schema.properties!.id.format = 'uuid'; }],
|
|
35
|
+
['extra root property', ({ schema }) => { schema.properties!.name = { type: 'string' }; }],
|
|
36
|
+
['extra root mapping', ({ definition }) => { definition.From[0].Value.Properties.id = '$eventSourceId'; }],
|
|
37
|
+
['multiple root subscriptions', ({ definition }) => { definition.From.push(structuredClone(definition.From[0])); }],
|
|
38
|
+
...['add-first', 'subtract-first'].flatMap(order => [
|
|
39
|
+
[`mixed add/subtract subscriptions, ${order}`, ({ definition }: Candidate) => {
|
|
40
|
+
const added = structuredClone(definition.From[0]);
|
|
41
|
+
added.Value.Properties.total = '$add(amount)';
|
|
42
|
+
if (order === 'add-first') definition.From.unshift(added);
|
|
43
|
+
else definition.From.push(added);
|
|
44
|
+
}],
|
|
45
|
+
[`mixed add/subtract targets, ${order}`, ({ definition, schema }: Candidate) => {
|
|
46
|
+
schema.properties!.other = { type: 'number' };
|
|
47
|
+
definition.From[0].Value.Properties = order === 'add-first'
|
|
48
|
+
? { other: '$add(amount)', total: '$subtract(amount)' }
|
|
49
|
+
: { total: '$subtract(amount)', other: '$add(amount)' };
|
|
50
|
+
}]
|
|
51
|
+
] as Array<[string, Mutation]>),
|
|
52
|
+
['initial values', ({ definition }) => { definition.InitialModelState = '{"total":0}'; }],
|
|
53
|
+
['root join', ({ definition }) => { definition.Join.push({ Key: definition.From[0].Key, Value: { On: 'id', Properties: {}, Key: '$eventSourceId' } }); }],
|
|
54
|
+
['multiple child collections', ({ definition }) => { definition.Children.other = structuredClone(definition.Children.items); }],
|
|
55
|
+
['untyped children', ({ schema }) => { delete schema.properties!.items.items!.properties; }],
|
|
56
|
+
['numeric child property', ({ schema }) => { schema.properties!.items.items!.properties!.name = { type: 'number' }; }],
|
|
57
|
+
['missing child identifier', ({ schema }) => { delete schema.properties!.items.items!.properties!.itemId; }],
|
|
58
|
+
['child From without event Key', ({ definition }) => { delete definition.Children.items.From[0].Key; }],
|
|
59
|
+
['child removal without event Key', ({ definition }) => { delete definition.Children.items.RemovedWith[0].Key; }],
|
|
60
|
+
['shared root and child From', ({ definition }) => { definition.Children.items.From[0].Key = definition.From[0].Key; }],
|
|
61
|
+
['shared root From and child removal', ({ definition }) => { definition.Children.items.RemovedWith[0].Key = definition.From[0].Key; }],
|
|
62
|
+
['shared root removal and child From', ({ definition }) => { definition.Children.items.From[0].Key = definition.RemovedWith[0].Key; }],
|
|
63
|
+
['shared root and child removal', ({ definition }) => { definition.Children.items.RemovedWith[0].Key = definition.RemovedWith[0].Key; }],
|
|
64
|
+
['shared root From and removal', ({ definition }) => { definition.RemovedWith[0].Key = definition.From[0].Key; }],
|
|
65
|
+
['custom root key', ({ definition }) => { definition.From[0].Value.Key = 'amount'; }],
|
|
66
|
+
['custom root parent key', ({ definition }) => { definition.From[0].Value.ParentKey = 'amount'; }],
|
|
67
|
+
['custom child parent key', ({ definition }) => { definition.Children.items.From[0].Value.ParentKey = 'itemId'; }],
|
|
68
|
+
['child join', ({ definition }) => { definition.Children.items.Join.push({}); }],
|
|
69
|
+
['nested children', ({ definition }) => { definition.Children.items.Children.nested = structuredClone(definition.Children.items); }],
|
|
70
|
+
['value children', ({ definition }) => { definition.Children.items.FromEventProperty = 'items'; }],
|
|
71
|
+
['unknown child expression', ({ definition }) => { definition.Children.items.From[0].Value.Properties.name = '$unknown(name)'; }],
|
|
72
|
+
['unknown root expression', ({ definition }) => { definition.From[0].Value.Properties.total = '$unknown(amount)'; }]
|
|
73
|
+
];
|
|
74
|
+
|
|
75
|
+
function candidate(): Candidate {
|
|
76
|
+
const compiled = compile();
|
|
77
|
+
const definition = compiled.definitions[0];
|
|
78
|
+
const operand = [...compiled.eventSchemas.get(definition)!.values()].find(entry => entry.eventType.Id === 'Subtracted')!.schema.properties!.amount;
|
|
79
|
+
return { compiled, definition, schema: JSON.parse(compiled.readModels[0].Schema), operand };
|
|
80
|
+
}
|
|
81
|
+
const seeded: ScenarioEvent = {
|
|
82
|
+
sourceId: 'A', content: { amount: 2.5 },
|
|
83
|
+
context: {
|
|
84
|
+
eventSourceId: 'A', eventType: EventType.parse('Subtracted+1'), sequenceNumber: 0n,
|
|
85
|
+
occurred: new Date('2025-01-01T00:00:00Z'), correlationId: '00000000-0000-0000-0000-000000000000',
|
|
86
|
+
causation: [], tags: []
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
for (const [name, mutate] of boundaries) {
|
|
90
|
+
for (const [historyName, history] of [['empty', []], ['seeded', [seeded]]] as const) {
|
|
91
|
+
describe(`when rejecting subtraction with children: ${name}, ${historyName} history`, () => {
|
|
92
|
+
let act: () => Promise<unknown>;
|
|
93
|
+
beforeEach(() => {
|
|
94
|
+
const value = candidate();
|
|
95
|
+
mutate(value);
|
|
96
|
+
value.compiled.readModels[0].Schema = JSON.stringify(value.schema);
|
|
97
|
+
act = () => new ProjectionReadModelProcessor(Totals, value.compiled, value.definition).process(history);
|
|
98
|
+
});
|
|
99
|
+
it('should reject before replay with the model and contract path', () => {
|
|
100
|
+
act.should.throw(UnsupportedProjectionOperation).and.satisfy((error: Error) =>
|
|
101
|
+
error.message.includes('Totals') && /Children|From|Join|Schema|Definition/.test(error.message));
|
|
102
|
+
});
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
}
|