@ember-data/store 5.6.0-alpha.3 → 5.6.0-alpha.4
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/-private.js +2 -2
- package/dist/{configure-BfLLW6GY.js → configure-BCr2QDik.js} +0 -1
- package/dist/configure-BCr2QDik.js.map +1 -0
- package/dist/configure.js +1 -1
- package/dist/index.js +2 -2
- package/dist/{request-state-DCuV984f.js → request-state-BEsHKec0.js} +101 -243
- package/dist/request-state-BEsHKec0.js.map +1 -0
- package/package.json +11 -14
- package/unstable-preview-types/-private/cache-handler/handler.d.ts +0 -4
- package/unstable-preview-types/-private/cache-handler/handler.d.ts.map +1 -1
- package/unstable-preview-types/-private/cache-handler/types.d.ts +1 -5
- package/unstable-preview-types/-private/cache-handler/types.d.ts.map +1 -1
- package/unstable-preview-types/-private/caches/identifier-cache.d.ts +0 -9
- package/unstable-preview-types/-private/caches/identifier-cache.d.ts.map +1 -1
- package/unstable-preview-types/-private/caches/instance-cache.d.ts +2 -3
- package/unstable-preview-types/-private/caches/instance-cache.d.ts.map +1 -1
- package/unstable-preview-types/-private/document.d.ts +0 -6
- package/unstable-preview-types/-private/document.d.ts.map +1 -1
- package/unstable-preview-types/-private/legacy-model-support/record-reference.d.ts +0 -13
- package/unstable-preview-types/-private/legacy-model-support/record-reference.d.ts.map +1 -1
- package/unstable-preview-types/-private/managers/cache-capabilities-manager.d.ts +0 -3
- package/unstable-preview-types/-private/managers/cache-capabilities-manager.d.ts.map +1 -1
- package/unstable-preview-types/-private/managers/cache-manager.d.ts +2 -35
- package/unstable-preview-types/-private/managers/cache-manager.d.ts.map +1 -1
- package/unstable-preview-types/-private/managers/notification-manager.d.ts +0 -6
- package/unstable-preview-types/-private/managers/notification-manager.d.ts.map +1 -1
- package/unstable-preview-types/-private/managers/record-array-manager.d.ts +0 -1
- package/unstable-preview-types/-private/managers/record-array-manager.d.ts.map +1 -1
- package/unstable-preview-types/-private/network/request-cache.d.ts +0 -3
- package/unstable-preview-types/-private/network/request-cache.d.ts.map +1 -1
- package/unstable-preview-types/-private/new-core-tmp/promise-state.d.ts +0 -32
- package/unstable-preview-types/-private/new-core-tmp/promise-state.d.ts.map +1 -1
- package/unstable-preview-types/-private/new-core-tmp/reactivity/configure.d.ts +0 -1
- package/unstable-preview-types/-private/new-core-tmp/reactivity/configure.d.ts.map +1 -1
- package/unstable-preview-types/-private/new-core-tmp/request-state.d.ts +0 -20
- package/unstable-preview-types/-private/new-core-tmp/request-state.d.ts.map +1 -1
- package/unstable-preview-types/-private/record-arrays/identifier-array.d.ts +0 -2
- package/unstable-preview-types/-private/record-arrays/identifier-array.d.ts.map +1 -1
- package/unstable-preview-types/-private/record-arrays/many-array.d.ts +12 -13
- package/unstable-preview-types/-private/record-arrays/many-array.d.ts.map +1 -1
- package/unstable-preview-types/-private/store-service.d.ts +40 -51
- package/unstable-preview-types/-private/store-service.d.ts.map +1 -1
- package/unstable-preview-types/-private/utils/coerce-id.d.ts +0 -3
- package/unstable-preview-types/-private/utils/coerce-id.d.ts.map +1 -1
- package/unstable-preview-types/-private/utils/uuid-polyfill.d.ts.map +1 -1
- package/unstable-preview-types/-private.d.ts +0 -3
- package/unstable-preview-types/-private.d.ts.map +1 -1
- package/unstable-preview-types/-types/q/cache-capabilities-manager.d.ts +0 -8
- package/unstable-preview-types/-types/q/cache-capabilities-manager.d.ts.map +1 -1
- package/unstable-preview-types/-types/q/ds-model.d.ts +0 -1
- package/unstable-preview-types/-types/q/ds-model.d.ts.map +1 -1
- package/unstable-preview-types/-types/q/identifier.d.ts +0 -18
- package/unstable-preview-types/-types/q/identifier.d.ts.map +1 -1
- package/unstable-preview-types/-types/q/record-data-json-api.d.ts +0 -3
- package/unstable-preview-types/-types/q/record-data-json-api.d.ts.map +1 -1
- package/unstable-preview-types/-types/q/record-instance.d.ts +0 -5
- package/unstable-preview-types/-types/q/record-instance.d.ts.map +1 -1
- package/unstable-preview-types/-types/q/schema-service.d.ts +1 -21
- package/unstable-preview-types/-types/q/schema-service.d.ts.map +1 -1
- package/unstable-preview-types/-types/q/store.d.ts +0 -1
- package/unstable-preview-types/-types/q/store.d.ts.map +1 -1
- package/unstable-preview-types/configure.d.ts +1 -5
- package/unstable-preview-types/configure.d.ts.map +1 -1
- package/unstable-preview-types/index.d.ts +29 -31
- package/unstable-preview-types/index.d.ts.map +1 -1
- package/dist/configure-BfLLW6GY.js.map +0 -1
- package/dist/request-state-DCuV984f.js.map +0 -1
- package/unstable-preview-types/-types/overview.d.ts +0 -21
- package/unstable-preview-types/-types/overview.d.ts.map +0 -1
|
@@ -6,7 +6,6 @@ declare module '@ember-data/store/-private/new-core-tmp/request-state' {
|
|
|
6
6
|
* reactive properties that can be used to build UIs that respond
|
|
7
7
|
* to the progress of a request.
|
|
8
8
|
*
|
|
9
|
-
* @typedoc
|
|
10
9
|
*/
|
|
11
10
|
export class RequestLoadingState {
|
|
12
11
|
_sizeHint: number;
|
|
@@ -51,13 +50,11 @@ declare module '@ember-data/store/-private/new-core-tmp/request-state' {
|
|
|
51
50
|
*
|
|
52
51
|
* Extends the {@link PendingPromise} interface.
|
|
53
52
|
*
|
|
54
|
-
* @typedoc
|
|
55
53
|
*/
|
|
56
54
|
export interface PendingRequest extends PendingPromise {
|
|
57
55
|
/**
|
|
58
56
|
* Whether the request is cancelled.
|
|
59
57
|
*
|
|
60
|
-
* @typedoc
|
|
61
58
|
*/
|
|
62
59
|
isCancelled: false;
|
|
63
60
|
loadingState: RequestLoadingState;
|
|
@@ -71,13 +68,11 @@ declare module '@ember-data/store/-private/new-core-tmp/request-state' {
|
|
|
71
68
|
*
|
|
72
69
|
* Extends the {@link ResolvedPromise} interface.
|
|
73
70
|
*
|
|
74
|
-
* @typedoc
|
|
75
71
|
*/
|
|
76
72
|
export interface ResolvedRequest<RT, T> extends ResolvedPromise<RT> {
|
|
77
73
|
/**
|
|
78
74
|
* Whether the request is cancelled.
|
|
79
75
|
*
|
|
80
|
-
* @typedoc
|
|
81
76
|
*/
|
|
82
77
|
isCancelled: false;
|
|
83
78
|
loadingState: RequestLoadingState;
|
|
@@ -91,13 +86,11 @@ declare module '@ember-data/store/-private/new-core-tmp/request-state' {
|
|
|
91
86
|
*
|
|
92
87
|
* Extends the {@link RejectedPromise} interface.
|
|
93
88
|
*
|
|
94
|
-
* @typedoc
|
|
95
89
|
*/
|
|
96
90
|
export interface RejectedRequest<RT, T, E extends StructuredErrorDocument = StructuredErrorDocument> extends RejectedPromise<E> {
|
|
97
91
|
/**
|
|
98
92
|
* Whether the request is cancelled.
|
|
99
93
|
*
|
|
100
|
-
* @typedoc
|
|
101
94
|
*/
|
|
102
95
|
isCancelled: false;
|
|
103
96
|
loadingState: RequestLoadingState;
|
|
@@ -109,46 +102,39 @@ declare module '@ember-data/store/-private/new-core-tmp/request-state' {
|
|
|
109
102
|
* This is the state of a promise that has been
|
|
110
103
|
* cancelled.
|
|
111
104
|
*
|
|
112
|
-
* @typedoc
|
|
113
105
|
*/
|
|
114
106
|
export interface CancelledRequest<RT, T, E extends StructuredErrorDocument = StructuredErrorDocument> {
|
|
115
107
|
/**
|
|
116
108
|
* The status of the request.
|
|
117
109
|
*
|
|
118
|
-
* @typedoc
|
|
119
110
|
*/
|
|
120
111
|
status: 'cancelled';
|
|
121
112
|
/**
|
|
122
113
|
* Whether the request is pending.
|
|
123
114
|
*
|
|
124
|
-
* @typedoc
|
|
125
115
|
*/
|
|
126
116
|
isPending: false;
|
|
127
117
|
/**
|
|
128
118
|
* Whether the request is pending.
|
|
129
119
|
*
|
|
130
|
-
* @typedoc
|
|
131
120
|
*/
|
|
132
121
|
isLoading: false;
|
|
133
122
|
/**
|
|
134
123
|
* Whether the request has resolved
|
|
135
124
|
* successfully.
|
|
136
125
|
*
|
|
137
|
-
* @typedoc
|
|
138
126
|
*/
|
|
139
127
|
isSuccess: false;
|
|
140
128
|
/**
|
|
141
129
|
* Whether the request has rejected
|
|
142
130
|
* with an error.
|
|
143
131
|
*
|
|
144
|
-
* @typedoc
|
|
145
132
|
*/
|
|
146
133
|
isError: true;
|
|
147
134
|
/**
|
|
148
135
|
* Once the request has resolved, this will
|
|
149
136
|
* be the value the request resolved to.
|
|
150
137
|
*
|
|
151
|
-
* @typedoc
|
|
152
138
|
*/
|
|
153
139
|
value: null;
|
|
154
140
|
/**
|
|
@@ -156,7 +142,6 @@ declare module '@ember-data/store/-private/new-core-tmp/request-state' {
|
|
|
156
142
|
* be the value the request resolved to.
|
|
157
143
|
*
|
|
158
144
|
* @deprecated use `value` instead
|
|
159
|
-
* @typedoc
|
|
160
145
|
*/
|
|
161
146
|
result: null;
|
|
162
147
|
/**
|
|
@@ -165,20 +150,17 @@ declare module '@ember-data/store/-private/new-core-tmp/request-state' {
|
|
|
165
150
|
*
|
|
166
151
|
*
|
|
167
152
|
* @deprecated use `reason` instead
|
|
168
|
-
* @typedoc
|
|
169
153
|
*/
|
|
170
154
|
error: E;
|
|
171
155
|
/**
|
|
172
156
|
* Once the request has rejected, this will
|
|
173
157
|
* be the error the request rejected with.
|
|
174
158
|
*
|
|
175
|
-
* @typedoc
|
|
176
159
|
*/
|
|
177
160
|
reason: E;
|
|
178
161
|
/**
|
|
179
162
|
* Whether the request is cancelled.
|
|
180
163
|
*
|
|
181
|
-
* @typedoc
|
|
182
164
|
*/
|
|
183
165
|
isCancelled: true;
|
|
184
166
|
loadingState: RequestLoadingState;
|
|
@@ -216,7 +198,6 @@ declare module '@ember-data/store/-private/new-core-tmp/request-state' {
|
|
|
216
198
|
* - {@link RejectedRequest}
|
|
217
199
|
* - {@link CancelledRequest}
|
|
218
200
|
*
|
|
219
|
-
* @typedoc
|
|
220
201
|
*/
|
|
221
202
|
export type RequestCacheRequestState<RT = unknown, T = unknown, E extends StructuredErrorDocument = StructuredErrorDocument> = PendingRequest | ResolvedRequest<RT, T> | RejectedRequest<RT, T, E> | CancelledRequest<RT, T, E>;
|
|
222
203
|
export function createRequestState<RT, T, E>(future: Future<RT>): Readonly<RequestCacheRequestState<RT, T, StructuredErrorDocument<E>>>;
|
|
@@ -269,7 +250,6 @@ declare module '@ember-data/store/-private/new-core-tmp/request-state' {
|
|
|
269
250
|
* which offers a numbe of additional capabilities for requests *beyond* what
|
|
270
251
|
* `RequestState` provides.
|
|
271
252
|
*
|
|
272
|
-
* @typedoc
|
|
273
253
|
*/
|
|
274
254
|
export function getRequestState<RT, T, E>(future: Future<RT>): Readonly<RequestCacheRequestState<RT, T, StructuredErrorDocument<E>>>;
|
|
275
255
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request-state.d.ts","sourceRoot":"","sources":["../../../src/-private/new-core-tmp/request-state.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,MAAM,EACN,oBAAoB,EACpB,YAAY,EAEZ,uBAAuB,EACxB,MAAM,qBAAqB,CAAC;AAG7B,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAiExF
|
|
1
|
+
{"version":3,"file":"request-state.d.ts","sourceRoot":"","sources":["../../../src/-private/new-core-tmp/request-state.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,MAAM,EACN,oBAAoB,EACpB,YAAY,EAEZ,uBAAuB,EACxB,MAAM,qBAAqB,CAAC;AAG7B,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAiExF;;;;;GAKG;AACH,qBAAa,mBAAmB;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;IACpB,WAAW,EAAE,OAAO,CAAC;IACrB,YAAY,EAAE,OAAO,CAAC;IACtB,UAAU,EAAE,OAAO,CAAC;IACpB,MAAM,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CAAC;IAC5C,QAAQ,EAAE,QAAQ,GAAG,YAAY,GAAG,IAAI,CAAC;CAC1C;AAOD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,MAAM,MAAM,wBAAwB,CAClC,EAAE,GAAG,OAAO,EACZ,CAAC,GAAG,OAAO,EACX,CAAC,SAAS,uBAAuB,GAAG,uBAAuB,IACzD,cAAc,GAAG,eAAe,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,eAAe,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC,GAAG,gBAAgB,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;AAiCrG,wBAAgB,kBAAkB,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC,EACzC,MAAM,EAAE,MAAM,CAAC,EAAE,CAAC,GACjB,QAAQ,CAAC,wBAAwB,CAAC,EAAE,EAAE,CAAC,EAAE,uBAAuB,CAAC,CAAC,CAAC,CAAC,CAAC,CAwDvE;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AACH,wBAAgB,eAAe,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC,EACtC,MAAM,EAAE,MAAM,CAAC,EAAE,CAAC,GACjB,QAAQ,CAAC,wBAAwB,CAAC,EAAE,EAAE,CAAC,EAAE,uBAAuB,CAAC,CAAC,CAAC,CAAC,CAAC,CASvE"}
|
|
@@ -104,7 +104,6 @@ declare module '@ember-data/store/-private/record-arrays/identifier-array' {
|
|
|
104
104
|
people.isUpdating; // true
|
|
105
105
|
```
|
|
106
106
|
|
|
107
|
-
@method update
|
|
108
107
|
@public
|
|
109
108
|
*/
|
|
110
109
|
update(): Promise<IdentifierArray<T>>;
|
|
@@ -122,7 +121,6 @@ declare module '@ember-data/store/-private/record-arrays/identifier-array' {
|
|
|
122
121
|
messages.save();
|
|
123
122
|
```
|
|
124
123
|
|
|
125
|
-
@method save
|
|
126
124
|
@public
|
|
127
125
|
@return {Promise<IdentifierArray>} promise
|
|
128
126
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"identifier-array.d.ts","sourceRoot":"","sources":["../../../src/-private/record-arrays/identifier-array.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"identifier-array.d.ts","sourceRoot":"","sources":["../../../src/-private/record-arrays/identifier-array.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC/E,OAAO,KAAK,EAAE,wBAAwB,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAC1G,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAC9E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,KAAK,EAAE,KAAK,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAGvF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAGrD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAC3E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAC3E,OAAO,EACL,YAAY,EAIb,MAAM,qCAAqC,CAAC;AAE7C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAuCtD,eAAO,MAAM,MAAM,+BAA+C,CAAC;AACnE,eAAO,MAAM,MAAM,+BAA+C,CAAC;AACnE,QAAA,MAAM,aAAa,qCAA4D,CAAC;AAchF,MAAM,MAAM,4BAA4B,CAAC,CAAC,GAAG,OAAO,IAAI;IACtD,WAAW,EAAE,sBAAsB,CAAC,wBAAwB,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IACnE,IAAI,CAAC,EAAE,wBAAwB,CAAC,CAAC,CAAC,CAAC;IACnC,KAAK,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4B,GAAG;IACnE,OAAO,EAAE,kBAAkB,CAAC;IAC5B,KAAK,EAAE,oBAAoB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IAC7D,QAAQ,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,qBAAa,UAAU,CAAC,CAAC,GAAG,OAAO,CAAE,SAAQ,eAAe,CAAC,CAAC,CAAC;IAC7D,KAAK,EAAE,oBAAoB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAQ;IAC5D,QAAQ,EAAE,kBAAkB,CAAC;gBAEzB,OAAO,EAAE,uBAAuB;IAM5C,OAAO,IAAI,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;IAejC,OAAO,CAAC,KAAK,EAAE,OAAO;CAKvB"}
|
|
@@ -40,7 +40,7 @@ declare module '@ember-data/store/-private/record-arrays/many-array' {
|
|
|
40
40
|
an inverse. For example, imagine the following models are
|
|
41
41
|
defined:
|
|
42
42
|
|
|
43
|
-
```app/models/post.js
|
|
43
|
+
```js [app/models/post.js]
|
|
44
44
|
import Model, { hasMany } from '@ember-data/model';
|
|
45
45
|
|
|
46
46
|
export default class PostModel extends Model {
|
|
@@ -48,7 +48,7 @@ declare module '@ember-data/store/-private/record-arrays/many-array' {
|
|
|
48
48
|
}
|
|
49
49
|
```
|
|
50
50
|
|
|
51
|
-
```app/models/comment.js
|
|
51
|
+
```js [app/models/comment.js]
|
|
52
52
|
import Model, { belongsTo } from '@ember-data/model';
|
|
53
53
|
|
|
54
54
|
export default class CommentModel extends Model {
|
|
@@ -163,10 +163,17 @@ declare module '@ember-data/store/-private/record-arrays/many-array' {
|
|
|
163
163
|
await permissions.reload();
|
|
164
164
|
```
|
|
165
165
|
|
|
166
|
-
@method reload
|
|
167
166
|
@public
|
|
168
167
|
*/
|
|
169
168
|
reload(options?: BaseFinderOptions): Promise<this>;
|
|
169
|
+
/**
|
|
170
|
+
Create a child record within the owner
|
|
171
|
+
|
|
172
|
+
@public
|
|
173
|
+
@param {Object} hash
|
|
174
|
+
@return {Model} record
|
|
175
|
+
*/
|
|
176
|
+
createRecord(hash: CreateRecordProperties<T>): T;
|
|
170
177
|
/**
|
|
171
178
|
Saves all of the records in the `ManyArray`.
|
|
172
179
|
|
|
@@ -184,19 +191,11 @@ declare module '@ember-data/store/-private/record-arrays/many-array' {
|
|
|
184
191
|
messages.save();
|
|
185
192
|
```
|
|
186
193
|
|
|
187
|
-
@method save
|
|
188
194
|
@public
|
|
189
195
|
@return {PromiseArray} promise
|
|
190
196
|
*/
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
@method createRecord
|
|
195
|
-
@public
|
|
196
|
-
@param {Object} hash
|
|
197
|
-
@return {Model} record
|
|
198
|
-
*/
|
|
199
|
-
createRecord(hash: CreateRecordProperties<T>): T;
|
|
197
|
+
save: () => Promise<IdentifierArray<T>>;
|
|
198
|
+
/** @internal */
|
|
200
199
|
destroy(): void;
|
|
201
200
|
}
|
|
202
201
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"many-array.d.ts","sourceRoot":"","sources":["../../../src/-private/record-arrays/many-array.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"many-array.d.ts","sourceRoot":"","sources":["../../../src/-private/record-arrays/many-array.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AACrE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,KAAK,EAEV,mBAAmB,EACnB,gBAAgB,EAChB,wBAAwB,EACzB,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EAAE,KAAK,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAEvF,OAAO,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAGlE,OAAO,EAAsC,KAAK,eAAe,EAA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