@hatiolab/things-scene 10.0.0-beta.79 → 10.0.0-beta.80
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-types/components/component-data.d.ts +22 -0
- package/dist-types/components/component-data.d.ts.map +1 -1
- package/dist-types/components/drawer/stroke.d.ts.map +1 -1
- package/dist-types/components/index.d.ts +1 -0
- package/dist-types/components/index.d.ts.map +1 -1
- package/dist-types/components/mixins/three-d-only.d.ts +243 -0
- package/dist-types/components/mixins/three-d-only.d.ts.map +1 -0
- package/dist-types/threed/factories/decal.d.ts +502 -0
- package/dist-types/threed/factories/decal.d.ts.map +1 -0
- package/dist-types/threed/handle-3d.d.ts +21 -0
- package/dist-types/threed/handle-3d.d.ts.map +1 -0
- package/dist-types/threed/index.d.ts +3 -0
- package/dist-types/threed/index.d.ts.map +1 -1
- package/dist-types/threed/real-object.d.ts +51 -0
- package/dist-types/threed/real-object.d.ts.map +1 -1
- package/dist-types/threed/utils/dispose.d.ts.map +1 -1
- package/package.json +1 -1
- package/things-scene-min.js +10 -10
- package/things-scene-min.js.map +1 -1
- package/things-scene.mjs +2 -2
- package/things-scene.mjs.map +1 -1
|
@@ -1,6 +1,28 @@
|
|
|
1
1
|
export declare function animate(this: any, opts: any): any;
|
|
2
2
|
export declare function effect(this: any, context: any, model: any): void;
|
|
3
|
+
/**
|
|
4
|
+
* JSON.stringify replacer used for scene serialization.
|
|
5
|
+
*
|
|
6
|
+
* Three jobs in priority order:
|
|
7
|
+
* 1. Drop **null** — semantically equivalent to "not set" in things-scene's
|
|
8
|
+
* state model, so persisting it is misleading. On reload the field is
|
|
9
|
+
* undefined and the component's default kicks in.
|
|
10
|
+
* 2. Drop **non-finite numbers** (NaN, ±Infinity) — JSON.stringify would
|
|
11
|
+
* otherwise coerce NaN to `null`, leaving a poisoned `"depth": null`
|
|
12
|
+
* in the saved scene that survives reload as a falsy value.
|
|
13
|
+
* 3. Round non-integer numbers to two decimal places (existing behavior,
|
|
14
|
+
* keeps file size + diff churn down).
|
|
15
|
+
*
|
|
16
|
+
* Returning `undefined` from a replacer omits the property entirely.
|
|
17
|
+
* (Inside arrays, elements get serialized as `null` instead — acceptable
|
|
18
|
+
* for things-scene since model arrays don't carry meaningful null slots.)
|
|
19
|
+
*/
|
|
3
20
|
export declare function roundReplacer(_key: string, value: any): any;
|
|
21
|
+
/**
|
|
22
|
+
* In-place mirror of `roundReplacer` for paths that mutate the model
|
|
23
|
+
* directly (e.g., template normalization, pre-serialize cleanup) instead
|
|
24
|
+
* of going through JSON.stringify. Same NaN / null / round semantics.
|
|
25
|
+
*/
|
|
4
26
|
export declare function roundNumbers(obj: any): any;
|
|
5
27
|
export declare function serialize(this: any, ...others: any[]): string;
|
|
6
28
|
export declare function trim(this: any): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component-data.d.ts","sourceRoot":"","sources":["../../src/components/component-data.ts"],"names":[],"mappings":"AAQA,wBAAgB,OAAO,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,OAK3C;AAED,wBAAgB,MAAM,CAAC,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,QAEzD;AAID,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,GAAG,GAAG,
|
|
1
|
+
{"version":3,"file":"component-data.d.ts","sourceRoot":"","sources":["../../src/components/component-data.ts"],"names":[],"mappings":"AAQA,wBAAgB,OAAO,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,OAK3C;AAED,wBAAgB,MAAM,CAAC,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,QAEzD;AAID;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,GAAG,GAAG,CAO3D;AAED;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O,UAAU,MAAM,CAAC,OAAO,EAAE,wBAAwB,EAAE,KAAK,EAAE,GAAG,EAAE,aAAa,CAAC,EAAE,GAAG,
|
|
1
|
+
{"version":3,"file":"stroke.d.ts","sourceRoot":"","sources":["../../../src/components/drawer/stroke.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,OAAO,EAAE,wBAAwB,EAAE,KAAK,EAAE,GAAG,EAAE,aAAa,CAAC,EAAE,GAAG,QA+DhG"}
|
|
@@ -32,4 +32,5 @@ export { default as ValueHolder } from './mixins/value-holder.js';
|
|
|
32
32
|
export { default as DataSource } from './mixins/data-source.js';
|
|
33
33
|
export { default as MoveHandle } from './mixins/move-handle.js';
|
|
34
34
|
export { default as Connectable } from './mixins/connectable.js';
|
|
35
|
+
export { default as ThreeDOnly } from './mixins/three-d-only.js';
|
|
35
36
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,gBAAgB,CAAA;AACrD,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AACtE,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAGrD,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAC9D,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,YAAY,CAAA;AAE7C,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,WAAW,CAAA;AAC3C,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,cAAc,CAAA;AACjD,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,WAAW,CAAA;AAC3C,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,cAAc,CAAA;AACjD,O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AC/D,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAChE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,0BAA0B,CAAA"}
|
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
import type Component from '../component.js';
|
|
2
|
+
type Constructor<T = {}> = new (...args: any[]) => T;
|
|
3
|
+
export default function ThreeDOnly<T extends Constructor<Component>>(superclass: T): {
|
|
4
|
+
new (...args: any[]): {
|
|
5
|
+
is3dish(): boolean;
|
|
6
|
+
get hasTextProperty(): boolean;
|
|
7
|
+
/** Never selectable in 2D — modeler nor runtime. */
|
|
8
|
+
get capturable(): boolean;
|
|
9
|
+
/** No 2D paint of own visual. Container children render via postrender unaffected. */
|
|
10
|
+
render(_ctx: CanvasRenderingContext2D): void;
|
|
11
|
+
_app: any;
|
|
12
|
+
_model: any;
|
|
13
|
+
_state: any;
|
|
14
|
+
_delta: any;
|
|
15
|
+
_animation: any;
|
|
16
|
+
_animate: any;
|
|
17
|
+
_parent: any;
|
|
18
|
+
_disposed: any;
|
|
19
|
+
_textHidden: any;
|
|
20
|
+
_text_substitutor: any;
|
|
21
|
+
_value_substitutor: any;
|
|
22
|
+
_mappings: any;
|
|
23
|
+
_realObject: import("../../index.js").IRealObject | undefined;
|
|
24
|
+
_cachedState: any;
|
|
25
|
+
updatedAt: any;
|
|
26
|
+
fontSize: any;
|
|
27
|
+
__cache__: any;
|
|
28
|
+
created(): void;
|
|
29
|
+
added(parent: any): void;
|
|
30
|
+
removed(parent: any): void;
|
|
31
|
+
ready(): Promise<void>;
|
|
32
|
+
touch(): void;
|
|
33
|
+
clearCache(...attrs: any[]): void;
|
|
34
|
+
removeSelf(completely: any): void;
|
|
35
|
+
resetAnimation(): void;
|
|
36
|
+
dispose(): void;
|
|
37
|
+
get nature(): import("../../index.js").ComponentNature;
|
|
38
|
+
get disposed(): boolean;
|
|
39
|
+
isLayer(): boolean;
|
|
40
|
+
isGroup(): boolean;
|
|
41
|
+
isContainer(): this is import("../../types/component.js").Container;
|
|
42
|
+
isLine(): boolean;
|
|
43
|
+
isRoot(): boolean;
|
|
44
|
+
isRootModel(): boolean;
|
|
45
|
+
get is3dMode(): boolean;
|
|
46
|
+
isIn3DSpace(): boolean;
|
|
47
|
+
isTemplate(): boolean;
|
|
48
|
+
isHTMLElement(): boolean;
|
|
49
|
+
isConnectable(): boolean;
|
|
50
|
+
isIdentifiable(): boolean;
|
|
51
|
+
isPositionable(): boolean;
|
|
52
|
+
replaceRefids(replaceMap: any): void;
|
|
53
|
+
get(property: any): any;
|
|
54
|
+
set(props: any, propval?: any): any;
|
|
55
|
+
getState(property: any): any;
|
|
56
|
+
setState(props: any, propval?: any): any;
|
|
57
|
+
get model(): any;
|
|
58
|
+
get state(): any;
|
|
59
|
+
get hierarchy(): any;
|
|
60
|
+
get volatile(): never[];
|
|
61
|
+
_applyProps(target: any, props: any, options: any): /*elided*/ any;
|
|
62
|
+
contains(x: number, y: number): boolean;
|
|
63
|
+
move(offset: {
|
|
64
|
+
x: number;
|
|
65
|
+
y: number;
|
|
66
|
+
}, ...args: boolean[]): void;
|
|
67
|
+
symmetryX(x?: number): void;
|
|
68
|
+
symmetryY(y: number): void;
|
|
69
|
+
adjustResize(bounds: import("../../index.js").BOUNDS, origin_bounds: import("../../index.js").BOUNDS, diagonal: boolean): {
|
|
70
|
+
left: any;
|
|
71
|
+
top: any;
|
|
72
|
+
width: any;
|
|
73
|
+
height: any;
|
|
74
|
+
};
|
|
75
|
+
adjustRotation(rotation: number, step: boolean): number;
|
|
76
|
+
outline(progress: number): any;
|
|
77
|
+
get bounds(): import("../../index.js").BOUNDS;
|
|
78
|
+
set bounds(b: import("../../index.js").BOUNDS);
|
|
79
|
+
get center(): import("../../index.js").POINT;
|
|
80
|
+
set center(p: import("../../index.js").POINT);
|
|
81
|
+
get location(): import("../../index.js").POINT;
|
|
82
|
+
set location(l: import("../../index.js").POINT);
|
|
83
|
+
get rotate(): import("../../index.js").POINT;
|
|
84
|
+
set rotate(r: import("../../index.js").POINT);
|
|
85
|
+
get dimension(): import("../../index.js").DIMENSION;
|
|
86
|
+
set dimension(d: import("../../index.js").DIMENSION);
|
|
87
|
+
get path(): import("../../index.js").POINT[];
|
|
88
|
+
set path(p: import("../../index.js").POINT[]);
|
|
89
|
+
get drawPath(): import("../../index.js").POINT[];
|
|
90
|
+
get rotatePoint(): import("../../index.js").POINT;
|
|
91
|
+
get mutable(): boolean;
|
|
92
|
+
get resizable(): boolean;
|
|
93
|
+
get rotatable(): boolean;
|
|
94
|
+
buildRealObject(): import("../../index.js").IRealObject | undefined;
|
|
95
|
+
get realObject(): import("../../index.js").IRealObject | undefined;
|
|
96
|
+
draw(context?: import("../../index.js").SceneRenderContext): void;
|
|
97
|
+
prerender(context: import("../../index.js").SceneRenderContext): void;
|
|
98
|
+
postrender(context: import("../../index.js").SceneRenderContext): void;
|
|
99
|
+
prepare(resolve: (component: Component) => void, reject: (reason: any) => void): void;
|
|
100
|
+
prepareIf(condition: boolean): void;
|
|
101
|
+
drawText(context: import("../../index.js").SceneRenderContext): void;
|
|
102
|
+
drawStroke(context: import("../../index.js").SceneRenderContext, override?: Record<string, unknown>): void;
|
|
103
|
+
drawFill(context: import("../../index.js").SceneRenderContext, override?: Record<string, unknown>): void;
|
|
104
|
+
get strokeStyle(): any;
|
|
105
|
+
set strokeStyle(v: any);
|
|
106
|
+
get fillStyle(): any;
|
|
107
|
+
set fillStyle(v: any);
|
|
108
|
+
get fontColor(): string;
|
|
109
|
+
set fontColor(v: string);
|
|
110
|
+
get rotation(): number;
|
|
111
|
+
set rotation(v: number);
|
|
112
|
+
get decorators(): string[];
|
|
113
|
+
get decotag(): string;
|
|
114
|
+
get hidden(): boolean;
|
|
115
|
+
set hidden(v: boolean);
|
|
116
|
+
get tag(): string;
|
|
117
|
+
set tag(v: string);
|
|
118
|
+
get appendum(): any;
|
|
119
|
+
set appendum(v: any);
|
|
120
|
+
defaultTextSubstitutor(): string;
|
|
121
|
+
textLines(context?: import("../../index.js").SceneRenderContext): any[][];
|
|
122
|
+
get font(): string;
|
|
123
|
+
get lineHeight(): number;
|
|
124
|
+
get textSubstitutor(): () => string;
|
|
125
|
+
get text(): string;
|
|
126
|
+
set text(v: string);
|
|
127
|
+
get textBounds(): import("../../index.js").BOUNDS;
|
|
128
|
+
get textRotation(): number;
|
|
129
|
+
get textHidden(): boolean;
|
|
130
|
+
set textHidden(v: boolean);
|
|
131
|
+
animate(opts: import("../../index.js").AnimationConfig): any;
|
|
132
|
+
effect(context: import("../../index.js").SceneRenderContext, model: any): void;
|
|
133
|
+
serialize(...others: any[]): string;
|
|
134
|
+
trim(): void;
|
|
135
|
+
closeScene(data: any): void;
|
|
136
|
+
delta(attr?: string | object, value?: any): any;
|
|
137
|
+
invalidate(): void;
|
|
138
|
+
get value(): any;
|
|
139
|
+
set value(v: any);
|
|
140
|
+
get data(): any;
|
|
141
|
+
set data(v: any);
|
|
142
|
+
set tap(v: any);
|
|
143
|
+
get mappings(): any[];
|
|
144
|
+
get retention(): number;
|
|
145
|
+
get animation(): import("../../index.js").AnimationController | undefined;
|
|
146
|
+
get started(): boolean;
|
|
147
|
+
set started(v: boolean);
|
|
148
|
+
get controls(): import("../../index.js").Control[] | undefined;
|
|
149
|
+
findFirst(finder: string | ((c: Component) => boolean), ...others: any[]): Component | undefined;
|
|
150
|
+
findAll(s: string | ((c: Component) => boolean), ...others: any[]): any[] | undefined;
|
|
151
|
+
capture(x: number, y: number, except?: (c: Component) => boolean): any;
|
|
152
|
+
findAnchor(name: string): any;
|
|
153
|
+
isDescendible(container: Component): boolean;
|
|
154
|
+
getContext(component?: unknown): any;
|
|
155
|
+
get root(): Component;
|
|
156
|
+
get rootModel(): Component;
|
|
157
|
+
get parent(): Component;
|
|
158
|
+
set parent(v: Component);
|
|
159
|
+
get anchors(): import("../../index.js").Anchor[];
|
|
160
|
+
get scalable(): boolean;
|
|
161
|
+
get stuck(): boolean;
|
|
162
|
+
get position(): string;
|
|
163
|
+
get origin(): string;
|
|
164
|
+
get offset(): import("../../index.js").POINT;
|
|
165
|
+
get app(): import("../../index.js").ApplicationContext;
|
|
166
|
+
drawEffect(context: import("../../index.js").SceneRenderContext): void;
|
|
167
|
+
prepareFill(resolve: Function, reject: Function): void;
|
|
168
|
+
prepareFillIf(condition: boolean): void;
|
|
169
|
+
onchangeFill(after: Record<string, any>, before: Record<string, any>): void;
|
|
170
|
+
drawImage(context: import("../../index.js").SceneRenderContext, image: HTMLImageElement, left: number, top: number, width: number, height: number): void;
|
|
171
|
+
mutateBounds(logic: ((bounds: import("../../index.js").BOUNDS) => import("../../index.js").BOUNDS | void) | null, context?: any): void;
|
|
172
|
+
mutatePath(beforeLogic: ((path: import("../../index.js").POINT[]) => import("../../index.js").POINT[] | void) | null, afterLogic: ((path: import("../../index.js").POINT[]) => import("../../index.js").POINT[] | void) | null, context?: any): void;
|
|
173
|
+
access(accessor: string): any;
|
|
174
|
+
substitute(template: string, data: any): string | undefined;
|
|
175
|
+
onchangeMappings(after: Record<string, any>, before: Record<string, any>): void;
|
|
176
|
+
onchangeData(after: Record<string, any>, before: Record<string, any>): void;
|
|
177
|
+
buildMappings(): void;
|
|
178
|
+
executeMappings(force?: boolean): void;
|
|
179
|
+
disposeMappings(): void;
|
|
180
|
+
ondropfile(transfered: FileList, files: string[]): void;
|
|
181
|
+
transcoordS2P(x: number, y: number, rp?: import("../../index.js").POINT): import("../../index.js").POINT;
|
|
182
|
+
transcoordP2S(x: number, y: number, rp?: import("../../index.js").POINT): import("../../index.js").POINT;
|
|
183
|
+
transcoordS2T(x: number, y: number, top?: Component): import("../../index.js").POINT;
|
|
184
|
+
transcoordT2P(x: number, y: number, top?: Component): import("../../index.js").POINT;
|
|
185
|
+
transcoordT2S(x: number, y: number, top?: Component): import("../../index.js").POINT;
|
|
186
|
+
transcoordS2TR(x: number, y: number, top?: Component): import("../../index.js").POINT;
|
|
187
|
+
transcoordS2O(x: number, y: number, target: Component): import("../../index.js").POINT;
|
|
188
|
+
transcoordC2S(x: number, y: number, top?: Component): import("../../index.js").POINT;
|
|
189
|
+
transcoordS2C(x: number, y: number, top?: Component): import("../../index.js").POINT;
|
|
190
|
+
toParent(x: number, y: number, rp?: import("../../index.js").POINT): import("../../index.js").POINT;
|
|
191
|
+
fromParent(x: number, y: number, rp?: import("../../index.js").POINT): import("../../index.js").POINT;
|
|
192
|
+
toScene(x: number, y: number, top?: Component): import("../../index.js").POINT;
|
|
193
|
+
fromScene(x: number, y: number, top?: Component): import("../../index.js").POINT;
|
|
194
|
+
toLocal(x: number, y: number, top?: Component): import("../../index.js").POINT;
|
|
195
|
+
toGlobal(x: number, y: number, top?: Component): import("../../index.js").POINT;
|
|
196
|
+
toOther(x: number, y: number, target: Component): import("../../index.js").POINT;
|
|
197
|
+
on(name: string | object, callback: Function, context?: any): /*elided*/ any;
|
|
198
|
+
off(name?: string | object, callback?: Function, context?: any): /*elided*/ any;
|
|
199
|
+
once(name: string | object, callback: Function, context?: any): /*elided*/ any;
|
|
200
|
+
trigger(name: string, ...args: any[]): /*elided*/ any;
|
|
201
|
+
delegate_on(delegator: any): /*elided*/ any;
|
|
202
|
+
delegate_off(delegator: any): /*elided*/ any;
|
|
203
|
+
onchange(after: Record<string, any>, before: Record<string, any>): void;
|
|
204
|
+
calculateBounds?(): void;
|
|
205
|
+
oncreate_element?(element: HTMLElement): void;
|
|
206
|
+
removeComponent(component: Component, ghost?: boolean): void;
|
|
207
|
+
addComponent(component: Component, ghost?: boolean): void;
|
|
208
|
+
insertComponentAt(component: Component, index: number, ghost?: boolean): void;
|
|
209
|
+
getOverlay(component: Component): HTMLElement | undefined;
|
|
210
|
+
findById(id: string): Component | undefined;
|
|
211
|
+
findByRefid(ref: string | number): Component | undefined;
|
|
212
|
+
findAllById(id: string): Component[];
|
|
213
|
+
resize(): void;
|
|
214
|
+
fit(type?: string): void;
|
|
215
|
+
get components(): Component[] | undefined;
|
|
216
|
+
get layout(): any;
|
|
217
|
+
get auxOverlay(): HTMLElement | undefined;
|
|
218
|
+
get isReady(): boolean;
|
|
219
|
+
get unitScale(): number;
|
|
220
|
+
get selected(): Component[];
|
|
221
|
+
set selected(_v: Component[]);
|
|
222
|
+
get focused(): Component | null;
|
|
223
|
+
set focused(_v: Component | null);
|
|
224
|
+
get hasSameParentForAllSelected(): boolean;
|
|
225
|
+
set hasSameParentForAllSelected(_v: boolean);
|
|
226
|
+
get fitMode(): string | undefined;
|
|
227
|
+
set fitMode(_v: string | undefined);
|
|
228
|
+
get element(): HTMLElement | null;
|
|
229
|
+
set element(_v: HTMLElement | null);
|
|
230
|
+
};
|
|
231
|
+
/**
|
|
232
|
+
* Raycast opt-out by default. Atmospheric / decoration components are
|
|
233
|
+
* usually larger than the contents placed inside them, so making the
|
|
234
|
+
* envelope itself raycastable would block selection of those contents.
|
|
235
|
+
* Subclasses pair this with `createSelectionHandle3D` to supply a small
|
|
236
|
+
* editor-only handle that's the actual click target. A per-instance
|
|
237
|
+
* `state.raycastTarget = true` overrides this if the user wants the
|
|
238
|
+
* envelope itself to be clickable.
|
|
239
|
+
*/
|
|
240
|
+
raycastTargetDefault: boolean;
|
|
241
|
+
} & T;
|
|
242
|
+
export {};
|
|
243
|
+
//# sourceMappingURL=three-d-only.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"three-d-only.d.ts","sourceRoot":"","sources":["../../../src/components/mixins/three-d-only.ts"],"names":[],"mappings":"AAmCA,OAAO,KAAK,SAAS,MAAM,iBAAiB,CAAA;AAE5C,KAAK,WAAW,CAAC,CAAC,GAAG,EAAE,IAAI,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,CAAA;AAEpD,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,CAAC,SAAS,WAAW,CAAC,SAAS,CAAC,EAAE,UAAU,EAAE,CAAC;kBAFzC,GAAG,EAAE;;;QAuB1C,oDAAoD;0BAClC,OAAO;QAIzB,sFAAsF;qBACzE,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAzBrC;;;;;;;;OAQG;;MAqBN"}
|