@casmo/tree.js 0.2.0 → 0.3.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/README.md +206 -0
- package/dist/{apply-CcodnAbs.js → apply-Cio2t7CZ.js} +51 -16
- package/dist/apply-Cio2t7CZ.js.map +1 -0
- package/dist/bake/index.d.ts +43 -4
- package/dist/bake/index.d.ts.map +1 -1
- package/dist/definition/defaults.d.ts +9 -1
- package/dist/definition/defaults.d.ts.map +1 -1
- package/dist/definition/index.d.ts +2 -2
- package/dist/definition/index.d.ts.map +1 -1
- package/dist/definition/schema.d.ts.map +1 -1
- package/dist/definition/types.d.ts +86 -0
- package/dist/definition/types.d.ts.map +1 -1
- package/dist/forest/Forest.d.ts +27 -1
- package/dist/forest/Forest.d.ts.map +1 -1
- package/dist/forest/nodes.d.ts +2 -0
- package/dist/forest/nodes.d.ts.map +1 -1
- package/dist/{forest-DTrD8puH.js → forest-ChEaWJrf.js} +1121 -191
- package/dist/forest-ChEaWJrf.js.map +1 -0
- package/dist/generator/crown.d.ts +28 -0
- package/dist/generator/crown.d.ts.map +1 -0
- package/dist/generator/growth.d.ts +1 -1
- package/dist/generator/growth.d.ts.map +1 -1
- package/dist/generator/index.d.ts +2 -1
- package/dist/generator/index.d.ts.map +1 -1
- package/dist/generator/mesh.d.ts +10 -2
- package/dist/generator/mesh.d.ts.map +1 -1
- package/dist/generator/occlusion.d.ts +8 -0
- package/dist/generator/occlusion.d.ts.map +1 -0
- package/dist/generator/roots.d.ts +16 -0
- package/dist/generator/roots.d.ts.map +1 -0
- package/dist/generator/trunk.d.ts +8 -0
- package/dist/generator/trunk.d.ts.map +1 -1
- package/dist/generator/types.d.ts +27 -1
- package/dist/generator/types.d.ts.map +1 -1
- package/dist/growth/index.d.ts +1 -1
- package/dist/growth/index.d.ts.map +1 -1
- package/dist/growth/tsl.d.ts +2 -0
- package/dist/growth/tsl.d.ts.map +1 -1
- package/dist/index.d.ts +4 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +234 -28
- package/dist/index.js.map +1 -1
- package/dist/materials/crown-nodes.d.ts +20 -0
- package/dist/materials/crown-nodes.d.ts.map +1 -0
- package/dist/materials/crown-normals.d.ts +17 -0
- package/dist/materials/crown-normals.d.ts.map +1 -0
- package/dist/materials/ground-tint.d.ts +13 -0
- package/dist/materials/ground-tint.d.ts.map +1 -0
- package/dist/materials/index.d.ts +7 -1
- package/dist/materials/index.d.ts.map +1 -1
- package/dist/materials/leaf-translucency-model.d.ts +14 -0
- package/dist/materials/leaf-translucency-model.d.ts.map +1 -0
- package/dist/materials/leaf-translucency.d.ts +73 -0
- package/dist/materials/leaf-translucency.d.ts.map +1 -0
- package/dist/materials/material-features.d.ts +43 -0
- package/dist/materials/material-features.d.ts.map +1 -0
- package/dist/materials/occlusion.d.ts +10 -0
- package/dist/materials/occlusion.d.ts.map +1 -0
- package/dist/materials/toon.d.ts +18 -1
- package/dist/materials/toon.d.ts.map +1 -1
- package/dist/{names-C6-wuJ29.js → names-BE9he6CS.js} +133 -9
- package/dist/names-BE9he6CS.js.map +1 -0
- package/dist/react.js +1 -1
- package/dist/species/almond.js +12 -2
- package/dist/species/almond.json +10 -1
- package/dist/species/apple.js +12 -2
- package/dist/species/apple.json +10 -1
- package/dist/species/ash.js +12 -2
- package/dist/species/ash.json +10 -1
- package/dist/species/beech.js +12 -2
- package/dist/species/beech.json +10 -1
- package/dist/species/birch.js +12 -2
- package/dist/species/birch.json +10 -1
- package/dist/species/cedar.js +12 -2
- package/dist/species/cedar.json +10 -1
- package/dist/species/cherry.js +12 -2
- package/dist/species/cherry.json +10 -1
- package/dist/species/chestnut.js +12 -2
- package/dist/species/chestnut.json +10 -1
- package/dist/species/douglas-fir.js +12 -2
- package/dist/species/douglas-fir.json +10 -1
- package/dist/species/elm.js +12 -2
- package/dist/species/elm.json +10 -1
- package/dist/species/hemlock.js +12 -2
- package/dist/species/hemlock.json +10 -1
- package/dist/species/hickory.js +12 -2
- package/dist/species/hickory.json +10 -1
- package/dist/species/juniper.js +12 -2
- package/dist/species/juniper.json +10 -1
- package/dist/species/mahogany.js +12 -2
- package/dist/species/mahogany.json +10 -1
- package/dist/species/maple.js +12 -2
- package/dist/species/maple.json +10 -1
- package/dist/species/oak.js +12 -2
- package/dist/species/oak.json +10 -1
- package/dist/species/olive.js +12 -2
- package/dist/species/olive.json +10 -1
- package/dist/species/peach.js +12 -2
- package/dist/species/peach.json +10 -1
- package/dist/species/pear.js +12 -2
- package/dist/species/pear.json +10 -1
- package/dist/species/pine.js +12 -2
- package/dist/species/pine.json +10 -1
- package/dist/species/plum.js +12 -2
- package/dist/species/plum.json +10 -1
- package/dist/species/red-oak.js +12 -2
- package/dist/species/red-oak.json +10 -1
- package/dist/species/redwood.js +12 -2
- package/dist/species/redwood.json +10 -1
- package/dist/species/sequoia.js +12 -2
- package/dist/species/sequoia.json +10 -1
- package/dist/species/spruce.js +12 -2
- package/dist/species/spruce.json +10 -1
- package/dist/species/teak.js +12 -2
- package/dist/species/teak.json +10 -1
- package/dist/species/types.d.ts +7 -3
- package/dist/species/types.d.ts.map +1 -1
- package/dist/species/walnut.js +12 -2
- package/dist/species/walnut.json +10 -1
- package/dist/species/white-oak.js +12 -2
- package/dist/species/white-oak.json +10 -1
- package/dist/styles/apply.d.ts.map +1 -1
- package/dist/styles/low-poly.js +6 -4
- package/dist/styles/low-poly.js.map +1 -1
- package/dist/styles/material-features.d.ts +27 -0
- package/dist/styles/material-features.d.ts.map +1 -0
- package/dist/styles/realistic.js +6 -4
- package/dist/styles/realistic.js.map +1 -1
- package/dist/styles/stylized.js +6 -4
- package/dist/styles/stylized.js.map +1 -1
- package/dist/tree/Tree.d.ts +28 -1
- package/dist/tree/Tree.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/apply-CcodnAbs.js.map +0 -1
- package/dist/forest-DTrD8puH.js.map +0 -1
- package/dist/names-C6-wuJ29.js.map +0 -1
|
@@ -53,6 +53,17 @@ export interface TrunkDefinition {
|
|
|
53
53
|
* drooping tip), + pulls a leaning Stem back up. The lower trunk is never bent. Absent = 0 (none).
|
|
54
54
|
*/
|
|
55
55
|
gravity?: number;
|
|
56
|
+
/**
|
|
57
|
+
* Root Flare (0..1): how much each Stem widens towards the ground over the bottom of its length.
|
|
58
|
+
* 1 makes the base ring 1.8 × the trunk radius. Geometry only (ADR 0007): branches, leaves, Fruit,
|
|
59
|
+
* Growth, Wind and Sculpts never move. Absent = 0 (none).
|
|
60
|
+
*/
|
|
61
|
+
flare?: number;
|
|
62
|
+
/**
|
|
63
|
+
* Number of extra sections the trunk sweep puts in the Root Flare (integer >= 1), set by the Style
|
|
64
|
+
* like `sides` and `sections`: 2 in low-poly, 3 in the others. Unused without flare. Absent = 3.
|
|
65
|
+
*/
|
|
66
|
+
flareSections?: number;
|
|
56
67
|
}
|
|
57
68
|
/**
|
|
58
69
|
* One level of branching. `branches[0]` grows from the trunk, `branches[1]` from the
|
|
@@ -166,6 +177,30 @@ export interface FruitDefinition {
|
|
|
166
177
|
*/
|
|
167
178
|
sides?: number;
|
|
168
179
|
}
|
|
180
|
+
/**
|
|
181
|
+
* Roots (ADR 0007): their own tree part, grown after the Sculpt pass from the Root Flare of every
|
|
182
|
+
* remaining Stem, each from its own random stream, and drawn in the wood mesh after the branches.
|
|
183
|
+
* They run outward and down, taper to a point below the ground, grow with the trunk and never sway.
|
|
184
|
+
* They are not Sculptable. Absent = no Roots.
|
|
185
|
+
*/
|
|
186
|
+
export interface RootsDefinition {
|
|
187
|
+
/** Roots per Stem (integer 0..12). */
|
|
188
|
+
count: number;
|
|
189
|
+
/** Root length as a fraction of its Stem's length (after Seed variation and Sculpts), 0..1. */
|
|
190
|
+
length: number;
|
|
191
|
+
/** Seed range: ± this fraction of `length` (0..1). */
|
|
192
|
+
lengthVariation: number;
|
|
193
|
+
/** Base radius as a fraction of the trunk's base radius (0..1). */
|
|
194
|
+
radius: number;
|
|
195
|
+
/** How steeply a Root dives, degrees below horizontal (0..60). Every Root still ends below the ground. */
|
|
196
|
+
angle: number;
|
|
197
|
+
/** Seed range: sideways wander per section (0..1). */
|
|
198
|
+
bend: number;
|
|
199
|
+
/** Polygon detail, set by the Style: sides around each Root (integer 3..16). Absent = derived from `trunk.sides`. */
|
|
200
|
+
sides?: number;
|
|
201
|
+
/** Polygon detail, set by the Style: sections along each Root (integer >= 1). Absent = 4. */
|
|
202
|
+
sections?: number;
|
|
203
|
+
}
|
|
169
204
|
/** Material shading model. Low-poly uses `flat`, stylized `toon`, realistic `standard`. */
|
|
170
205
|
export type Shading = 'standard' | 'flat' | 'toon';
|
|
171
206
|
export interface BarkMaterialDefinition {
|
|
@@ -179,6 +214,20 @@ export interface BarkMaterialDefinition {
|
|
|
179
214
|
map: string | null;
|
|
180
215
|
/** Normal map URL, or null for none. */
|
|
181
216
|
normalMap: string | null;
|
|
217
|
+
/** Ground Tint: a darker or mossy bark colour near the ground. Optional; absent = none. */
|
|
218
|
+
groundTint?: GroundTintDefinition;
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
* Ground Tint: at and below the ground (tree-space height <= 0, measured on the grown tree) the
|
|
222
|
+
* bark colour blends towards `color` by `strength`; the blend fades smoothly to nothing at `height`.
|
|
223
|
+
*/
|
|
224
|
+
export interface GroundTintDefinition {
|
|
225
|
+
/** The colour the bark blends towards near the ground. */
|
|
226
|
+
color: HexColor;
|
|
227
|
+
/** Metres above the ground where the tint has faded out (> 0). */
|
|
228
|
+
height: number;
|
|
229
|
+
/** How far the bark blends towards `color` at the ground (0..1). */
|
|
230
|
+
strength: number;
|
|
182
231
|
}
|
|
183
232
|
export interface LeafMaterialDefinition {
|
|
184
233
|
/** PBR roughness (0..1). Leaf colour comes from the Season Profile. */
|
|
@@ -187,11 +236,46 @@ export interface LeafMaterialDefinition {
|
|
|
187
236
|
map: string | null;
|
|
188
237
|
/** Alpha cut-off for `map` (0..1). */
|
|
189
238
|
alphaTest: number;
|
|
239
|
+
/**
|
|
240
|
+
* Crown Normals (a Material Feature, ADR 0008): how far each leaf's normal bends towards the
|
|
241
|
+
* Crown Volume's normal, 0 (each leaf lit on its own) .. 1 (the crown lit as one shape). Absent or 0 = off.
|
|
242
|
+
*/
|
|
243
|
+
crownNormals?: number;
|
|
244
|
+
/** Leaf Translucency (a Material Feature, ADR 0008). Absent = off. */
|
|
245
|
+
translucency?: TranslucencyDefinition;
|
|
246
|
+
}
|
|
247
|
+
/**
|
|
248
|
+
* Leaf Translucency: light shining through the leaves towards the viewer makes them glow in their
|
|
249
|
+
* own (Season) colour, more at the thin edge of the crown. All plain numbers, 0..1.
|
|
250
|
+
*/
|
|
251
|
+
export interface TranslucencyDefinition {
|
|
252
|
+
/** How strongly leaves with a direct light behind them glow (0..1). */
|
|
253
|
+
strength: number;
|
|
254
|
+
/** Extra glow at the thin edge of the Crown Volume (0 = the same everywhere .. 1 = only at the edge). */
|
|
255
|
+
edge: number;
|
|
256
|
+
/** The indirect (sky) part shining through the canopy, dimmed by occlusion (0..1). */
|
|
257
|
+
ambient: number;
|
|
258
|
+
}
|
|
259
|
+
/** Structural Occlusion: ambient light darkened where the tree hides itself (wood, leaves and Fruit). */
|
|
260
|
+
export interface OcclusionDefinition {
|
|
261
|
+
/** How far the baked occlusion darkens ambient and indirect light (0 = none .. 1 = fully). */
|
|
262
|
+
strength: number;
|
|
263
|
+
}
|
|
264
|
+
/**
|
|
265
|
+
* The three Material Features (GLOSSARY, ADR 0008), with the same shapes as in a Definition
|
|
266
|
+
* (`materials.leaf.crownNormals`, `materials.leaf.translucency`, `materials.occlusion`). Absent = off.
|
|
267
|
+
*/
|
|
268
|
+
export interface MaterialFeatures {
|
|
269
|
+
crownNormals?: number;
|
|
270
|
+
translucency?: TranslucencyDefinition;
|
|
271
|
+
occlusion?: OcclusionDefinition;
|
|
190
272
|
}
|
|
191
273
|
export interface MaterialsDefinition {
|
|
192
274
|
shading: Shading;
|
|
193
275
|
bark: BarkMaterialDefinition;
|
|
194
276
|
leaf: LeafMaterialDefinition;
|
|
277
|
+
/** Structural Occlusion (a Material Feature, ADR 0008). Absent = off. */
|
|
278
|
+
occlusion?: OcclusionDefinition;
|
|
195
279
|
}
|
|
196
280
|
/**
|
|
197
281
|
* One keyframe of a track. In a Season Profile `t` is the Season (0 = first day of spring .. 1 = last
|
|
@@ -281,6 +365,8 @@ export interface TreeDefinition {
|
|
|
281
365
|
leaves: LeavesDefinition;
|
|
282
366
|
/** Fruit on the outermost twigs; absent = none. */
|
|
283
367
|
fruit?: FruitDefinition;
|
|
368
|
+
/** Roots on every Stem; absent = none. */
|
|
369
|
+
roots?: RootsDefinition;
|
|
284
370
|
materials: MaterialsDefinition;
|
|
285
371
|
season: SeasonProfileDefinition;
|
|
286
372
|
wind: WindResponseDefinition;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/definition/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH;;;GAGG;AACH,eAAO,MAAM,sBAAsB,IAAI,CAAC;AAExC,+BAA+B;AAC/B,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC;AAE9B,gBAAgB;AAChB,MAAM,MAAM,SAAS,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AAEjD;;;;GAIG;AACH,MAAM,MAAM,QAAQ,GAAG,WAAW,GAAG,SAAS,CAAC;AAE/C,yCAAyC;AACzC,MAAM,WAAW,eAAe;IAC9B,iDAAiD;IACjD,MAAM,EAAE,MAAM,CAAC;IACf,wCAAwC;IACxC,MAAM,EAAE,MAAM,CAAC;IACf,6EAA6E;IAC7E,KAAK,EAAE,MAAM,CAAC;IACd,uDAAuD;IACvD,KAAK,EAAE,MAAM,CAAC;IACd,yDAAyD;IACzD,QAAQ,EAAE,MAAM,CAAC;IACjB,0EAA0E;IAC1E,eAAe,EAAE,MAAM,CAAC;IACxB,kGAAkG;IAClG,IAAI,EAAE,MAAM,CAAC;IACb;;;OAGG;IAC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AAC,EAAE,GAC9C,CAAC,CAAC,SAAS,QAAQ,CAAC,OAAO,CAAC,GAAG,MAAM,GAAG,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC,EAAE,GAC7D,CAAC,SAAS,MAAM,GACd;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAAE,GACtC,CAAC,CAAC;AAER;;;GAGG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAAE,aAAa,EAAE,MAAM,CAAA;CAAE,GAAG,WAAW,CAAC,IAAI,CAAC,cAAc,EAAE,eAAe,CAAC,CAAC,CAAC"}
|
package/dist/forest/Forest.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BufferGeometry, Group, InstancedMesh, type MeshStandardNodeMaterial } from 'three/webgpu';
|
|
2
|
-
import type { TreeDefinition } from '../definition';
|
|
2
|
+
import type { MaterialFeatures, TranslucencyDefinition, TreeDefinition } from '../definition';
|
|
3
3
|
import { type TreeData } from '../generator';
|
|
4
4
|
import { type TextureOptions } from '../textures';
|
|
5
5
|
import { Wind, WindResponse, type WindSource } from '../wind';
|
|
@@ -126,6 +126,7 @@ export declare class Forest extends Group {
|
|
|
126
126
|
private readonly windBinding;
|
|
127
127
|
private growthValue;
|
|
128
128
|
private seasonValue;
|
|
129
|
+
private readonly features;
|
|
129
130
|
constructor(definition: TreeDefinition, placements?: readonly ForestPlacement[], options?: ForestOptions);
|
|
130
131
|
/**
|
|
131
132
|
* The Wind every tree of this forest sways with. Assigning another Wind only rebinds uniforms:
|
|
@@ -159,6 +160,31 @@ export declare class Forest extends Group {
|
|
|
159
160
|
/** Season of the whole forest: setting it sets every tree's Season (and that of trees planted later). */
|
|
160
161
|
get season(): number;
|
|
161
162
|
set season(value: number);
|
|
163
|
+
/**
|
|
164
|
+
* Crown Normals amount (0..1), from the Definition's `materials.leaf.crownNormals`; null when it is off.
|
|
165
|
+
* Setting it (clamped to 0..1) only writes a uniform: no regeneration, no recompile. Throws on a
|
|
166
|
+
* forest without Crown Normals (switching the feature on needs a new forest).
|
|
167
|
+
*/
|
|
168
|
+
get crownNormals(): number | null;
|
|
169
|
+
set crownNormals(value: number);
|
|
170
|
+
/**
|
|
171
|
+
* Leaf Translucency settings (a copy), from the Definition's `materials.leaf.translucency`; null when it
|
|
172
|
+
* is off. Setting any of them (each clamped to 0..1, the others kept) only writes uniforms: no
|
|
173
|
+
* regeneration, no recompile. Throws on a forest without Leaf Translucency.
|
|
174
|
+
*/
|
|
175
|
+
get translucency(): TranslucencyDefinition | null;
|
|
176
|
+
set translucency(value: Partial<TranslucencyDefinition>);
|
|
177
|
+
/**
|
|
178
|
+
* The Material Features this forest shows, with their current (possibly live-tuned) values: the
|
|
179
|
+
* Definition's (see `materialFeaturesOf`), except that Crown Normals at 0 count as off.
|
|
180
|
+
*/
|
|
181
|
+
get materialFeatures(): MaterialFeatures;
|
|
182
|
+
/**
|
|
183
|
+
* Structural Occlusion strength (0..1) of every tree, from the Definition's `materials.occlusion`; null
|
|
184
|
+
* when it has none. Setting it (clamped to 0..1) only writes a uniform. Throws without Structural Occlusion.
|
|
185
|
+
*/
|
|
186
|
+
get occlusionStrength(): number | null;
|
|
187
|
+
set occlusionStrength(value: number);
|
|
162
188
|
/** Frees every Variant's geometries, materials and instance buffers, and removes the forest from its parent. */
|
|
163
189
|
dispose(): void;
|
|
164
190
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Forest.d.ts","sourceRoot":"","sources":["../../src/forest/Forest.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,cAAc,EAGd,KAAK,EAGL,aAAa,EAMb,KAAK,wBAAwB,EAC9B,MAAM,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"Forest.d.ts","sourceRoot":"","sources":["../../src/forest/Forest.ts"],"names":[],"mappings":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AAI,MAAM,CAAC,KAAK,EAAE,MAAM,EAGvB;IAED,yGAAyG;IACzG,IAAI,MAAM,IAAI,MAAM,CAEnB;IAED,IAAI,MAAM,CAAC,KAAK,EAAE,MAAM,EAGvB;IAED;;;;OAIG;IACH,IAAI,YAAY,IAAI,MAAM,GAAG,IAAI,CAEhC;IAED,IAAI,YAAY,CAAC,KAAK,EAAE,MAAM,EAE7B;IAED;;;;OAIG;IACH,IAAI,YAAY,IAAI,sBAAsB,GAAG,IAAI,CAEhD;IAED,IAAI,YAAY,CAAC,KAAK,EAAE,OAAO,CAAC,sBAAsB,CAAC,EAEtD;IAED;;;OAGG;IACH,IAAI,gBAAgB,IAAI,gBAAgB,CAEvC;IAED;;;OAGG;IACH,IAAI,iBAAiB,IAAI,MAAM,GAAG,IAAI,CAErC;IAED,IAAI,iBAAiB,CAAC,KAAK,EAAE,MAAM,EAElC;IAED,gHAAgH;IACvG,OAAO,IAAI,IAAI;CAMzB"}
|
package/dist/forest/nodes.d.ts
CHANGED
|
@@ -17,6 +17,8 @@ export declare function instanceState(): {
|
|
|
17
17
|
season: Node<'float'>;
|
|
18
18
|
windPhase: Node<'float'>;
|
|
19
19
|
};
|
|
20
|
+
/** Rotates `v` by the instance quaternion (`inverse` = by its conjugate): tree space to forest space. */
|
|
21
|
+
export declare function instanceRotate(v: Node<'vec3'>, inverse?: boolean): Node<'vec3'>;
|
|
20
22
|
/**
|
|
21
23
|
* The vertex position of a Forest tree (positionNode of an instanced Variant mesh).
|
|
22
24
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nodes.d.ts","sourceRoot":"","sources":["../../src/forest/nodes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAGzC,OAAO,EAAmC,KAAK,YAAY,EAAE,KAAK,UAAU,EAAE,MAAM,SAAS,CAAC;AAE9F;;;;GAIG;AACH,eAAO,MAAM,eAAe,IAAI,CAAC;AACjC,eA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