@quick-threejs/reactive 0.1.17 → 0.1.19
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/main.d.mts +2 -3
- package/dist/main.d.ts +2 -3
- package/dist/main.js +1312 -628
- package/dist/main.js.map +1 -1
- package/dist/main.mjs +1317 -652
- package/dist/main.mjs.map +1 -1
- package/dist/{main.worker-WTRf-uyZ.d.mts → main.worker-Dms3WqJl.d.mts} +3 -4
- package/dist/{main.worker-WTRf-uyZ.d.ts → main.worker-Dms3WqJl.d.ts} +3 -4
- package/dist/main.worker.d.mts +1 -2
- package/dist/main.worker.d.ts +1 -2
- package/dist/main.worker.js +1064 -460
- package/dist/main.worker.js.map +1 -1
- package/dist/main.worker.mjs +1067 -476
- package/dist/main.worker.mjs.map +1 -1
- package/package.json +4 -7
package/dist/main.js
CHANGED
|
@@ -5,7 +5,7 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __getProtoOf = Object.getPrototypeOf;
|
|
7
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var
|
|
8
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
9
9
|
var __commonJS = (cb, mod) => function __require() {
|
|
10
10
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
11
11
|
};
|
|
@@ -30,16 +30,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
30
30
|
mod
|
|
31
31
|
));
|
|
32
32
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
33
|
-
var __decorateClass = (decorators, target, key, kind) => {
|
|
34
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
35
|
-
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
36
|
-
if (decorator = decorators[i])
|
|
37
|
-
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
38
|
-
if (kind && result) __defProp(target, key, result);
|
|
39
|
-
return result;
|
|
40
|
-
};
|
|
41
|
-
var __decorateParam = (index, decorator) => (target, key) => decorator(target, key, index);
|
|
42
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
43
33
|
|
|
44
34
|
// ../../node_modules/.pnpm/reflect-metadata@0.2.2/node_modules/reflect-metadata/Reflect.js
|
|
45
35
|
var require_Reflect = __commonJS({
|
|
@@ -59,40 +49,51 @@ var require_Reflect = __commonJS({
|
|
|
59
49
|
}
|
|
60
50
|
function makeExporter(target, previous) {
|
|
61
51
|
return function(key, value) {
|
|
62
|
-
Object.defineProperty(target, key, {
|
|
63
|
-
|
|
64
|
-
|
|
52
|
+
Object.defineProperty(target, key, {
|
|
53
|
+
configurable: true,
|
|
54
|
+
writable: true,
|
|
55
|
+
value
|
|
56
|
+
});
|
|
57
|
+
if (previous) previous(key, value);
|
|
65
58
|
};
|
|
66
59
|
}
|
|
60
|
+
__name(makeExporter, "makeExporter");
|
|
67
61
|
function functionThis() {
|
|
68
62
|
try {
|
|
69
63
|
return Function("return this;")();
|
|
70
64
|
} catch (_) {
|
|
71
65
|
}
|
|
72
66
|
}
|
|
67
|
+
__name(functionThis, "functionThis");
|
|
73
68
|
function indirectEvalThis() {
|
|
74
69
|
try {
|
|
75
|
-
return (
|
|
70
|
+
return (0, eval)("(function() { return this; })()");
|
|
76
71
|
} catch (_) {
|
|
77
72
|
}
|
|
78
73
|
}
|
|
74
|
+
__name(indirectEvalThis, "indirectEvalThis");
|
|
79
75
|
function sloppyModeThis() {
|
|
80
76
|
return functionThis() || indirectEvalThis();
|
|
81
77
|
}
|
|
78
|
+
__name(sloppyModeThis, "sloppyModeThis");
|
|
82
79
|
})(function(exporter, root) {
|
|
83
80
|
var hasOwn = Object.prototype.hasOwnProperty;
|
|
84
81
|
var supportsSymbol = typeof Symbol === "function";
|
|
85
82
|
var toPrimitiveSymbol = supportsSymbol && typeof Symbol.toPrimitive !== "undefined" ? Symbol.toPrimitive : "@@toPrimitive";
|
|
86
83
|
var iteratorSymbol = supportsSymbol && typeof Symbol.iterator !== "undefined" ? Symbol.iterator : "@@iterator";
|
|
87
84
|
var supportsCreate = typeof Object.create === "function";
|
|
88
|
-
var supportsProto = {
|
|
85
|
+
var supportsProto = {
|
|
86
|
+
__proto__: []
|
|
87
|
+
} instanceof Array;
|
|
89
88
|
var downLevel = !supportsCreate && !supportsProto;
|
|
90
89
|
var HashMap = {
|
|
91
90
|
// create an object in dictionary mode (a.k.a. "slow" mode in v8)
|
|
92
91
|
create: supportsCreate ? function() {
|
|
93
92
|
return MakeDictionary(/* @__PURE__ */ Object.create(null));
|
|
94
93
|
} : supportsProto ? function() {
|
|
95
|
-
return MakeDictionary({
|
|
94
|
+
return MakeDictionary({
|
|
95
|
+
__proto__: null
|
|
96
|
+
});
|
|
96
97
|
} : function() {
|
|
97
98
|
return MakeDictionary({});
|
|
98
99
|
},
|
|
@@ -116,145 +117,128 @@ var require_Reflect = __commonJS({
|
|
|
116
117
|
var metadataProvider = CreateMetadataProvider(metadataRegistry);
|
|
117
118
|
function decorate(decorators, target, propertyKey, attributes) {
|
|
118
119
|
if (!IsUndefined(propertyKey)) {
|
|
119
|
-
if (!IsArray(decorators))
|
|
120
|
-
|
|
121
|
-
if (!IsObject(
|
|
122
|
-
|
|
123
|
-
if (!IsObject(attributes) && !IsUndefined(attributes) && !IsNull(attributes))
|
|
124
|
-
throw new TypeError();
|
|
125
|
-
if (IsNull(attributes))
|
|
126
|
-
attributes = void 0;
|
|
120
|
+
if (!IsArray(decorators)) throw new TypeError();
|
|
121
|
+
if (!IsObject(target)) throw new TypeError();
|
|
122
|
+
if (!IsObject(attributes) && !IsUndefined(attributes) && !IsNull(attributes)) throw new TypeError();
|
|
123
|
+
if (IsNull(attributes)) attributes = void 0;
|
|
127
124
|
propertyKey = ToPropertyKey(propertyKey);
|
|
128
125
|
return DecorateProperty(decorators, target, propertyKey, attributes);
|
|
129
126
|
} else {
|
|
130
|
-
if (!IsArray(decorators))
|
|
131
|
-
|
|
132
|
-
if (!IsConstructor(target))
|
|
133
|
-
throw new TypeError();
|
|
127
|
+
if (!IsArray(decorators)) throw new TypeError();
|
|
128
|
+
if (!IsConstructor(target)) throw new TypeError();
|
|
134
129
|
return DecorateConstructor(decorators, target);
|
|
135
130
|
}
|
|
136
131
|
}
|
|
132
|
+
__name(decorate, "decorate");
|
|
137
133
|
exporter("decorate", decorate);
|
|
138
134
|
function metadata(metadataKey, metadataValue) {
|
|
139
135
|
function decorator(target, propertyKey) {
|
|
140
|
-
if (!IsObject(target))
|
|
141
|
-
|
|
142
|
-
if (!IsUndefined(propertyKey) && !IsPropertyKey(propertyKey))
|
|
143
|
-
throw new TypeError();
|
|
136
|
+
if (!IsObject(target)) throw new TypeError();
|
|
137
|
+
if (!IsUndefined(propertyKey) && !IsPropertyKey(propertyKey)) throw new TypeError();
|
|
144
138
|
OrdinaryDefineOwnMetadata(metadataKey, metadataValue, target, propertyKey);
|
|
145
139
|
}
|
|
140
|
+
__name(decorator, "decorator");
|
|
146
141
|
return decorator;
|
|
147
142
|
}
|
|
143
|
+
__name(metadata, "metadata");
|
|
148
144
|
exporter("metadata", metadata);
|
|
149
145
|
function defineMetadata(metadataKey, metadataValue, target, propertyKey) {
|
|
150
|
-
if (!IsObject(target))
|
|
151
|
-
|
|
152
|
-
if (!IsUndefined(propertyKey))
|
|
153
|
-
propertyKey = ToPropertyKey(propertyKey);
|
|
146
|
+
if (!IsObject(target)) throw new TypeError();
|
|
147
|
+
if (!IsUndefined(propertyKey)) propertyKey = ToPropertyKey(propertyKey);
|
|
154
148
|
return OrdinaryDefineOwnMetadata(metadataKey, metadataValue, target, propertyKey);
|
|
155
149
|
}
|
|
150
|
+
__name(defineMetadata, "defineMetadata");
|
|
156
151
|
exporter("defineMetadata", defineMetadata);
|
|
157
152
|
function hasMetadata(metadataKey, target, propertyKey) {
|
|
158
|
-
if (!IsObject(target))
|
|
159
|
-
|
|
160
|
-
if (!IsUndefined(propertyKey))
|
|
161
|
-
propertyKey = ToPropertyKey(propertyKey);
|
|
153
|
+
if (!IsObject(target)) throw new TypeError();
|
|
154
|
+
if (!IsUndefined(propertyKey)) propertyKey = ToPropertyKey(propertyKey);
|
|
162
155
|
return OrdinaryHasMetadata(metadataKey, target, propertyKey);
|
|
163
156
|
}
|
|
157
|
+
__name(hasMetadata, "hasMetadata");
|
|
164
158
|
exporter("hasMetadata", hasMetadata);
|
|
165
159
|
function hasOwnMetadata(metadataKey, target, propertyKey) {
|
|
166
|
-
if (!IsObject(target))
|
|
167
|
-
|
|
168
|
-
if (!IsUndefined(propertyKey))
|
|
169
|
-
propertyKey = ToPropertyKey(propertyKey);
|
|
160
|
+
if (!IsObject(target)) throw new TypeError();
|
|
161
|
+
if (!IsUndefined(propertyKey)) propertyKey = ToPropertyKey(propertyKey);
|
|
170
162
|
return OrdinaryHasOwnMetadata(metadataKey, target, propertyKey);
|
|
171
163
|
}
|
|
164
|
+
__name(hasOwnMetadata, "hasOwnMetadata");
|
|
172
165
|
exporter("hasOwnMetadata", hasOwnMetadata);
|
|
173
166
|
function getMetadata(metadataKey, target, propertyKey) {
|
|
174
|
-
if (!IsObject(target))
|
|
175
|
-
|
|
176
|
-
if (!IsUndefined(propertyKey))
|
|
177
|
-
propertyKey = ToPropertyKey(propertyKey);
|
|
167
|
+
if (!IsObject(target)) throw new TypeError();
|
|
168
|
+
if (!IsUndefined(propertyKey)) propertyKey = ToPropertyKey(propertyKey);
|
|
178
169
|
return OrdinaryGetMetadata(metadataKey, target, propertyKey);
|
|
179
170
|
}
|
|
171
|
+
__name(getMetadata, "getMetadata");
|
|
180
172
|
exporter("getMetadata", getMetadata);
|
|
181
173
|
function getOwnMetadata(metadataKey, target, propertyKey) {
|
|
182
|
-
if (!IsObject(target))
|
|
183
|
-
|
|
184
|
-
if (!IsUndefined(propertyKey))
|
|
185
|
-
propertyKey = ToPropertyKey(propertyKey);
|
|
174
|
+
if (!IsObject(target)) throw new TypeError();
|
|
175
|
+
if (!IsUndefined(propertyKey)) propertyKey = ToPropertyKey(propertyKey);
|
|
186
176
|
return OrdinaryGetOwnMetadata(metadataKey, target, propertyKey);
|
|
187
177
|
}
|
|
178
|
+
__name(getOwnMetadata, "getOwnMetadata");
|
|
188
179
|
exporter("getOwnMetadata", getOwnMetadata);
|
|
189
180
|
function getMetadataKeys(target, propertyKey) {
|
|
190
|
-
if (!IsObject(target))
|
|
191
|
-
|
|
192
|
-
if (!IsUndefined(propertyKey))
|
|
193
|
-
propertyKey = ToPropertyKey(propertyKey);
|
|
181
|
+
if (!IsObject(target)) throw new TypeError();
|
|
182
|
+
if (!IsUndefined(propertyKey)) propertyKey = ToPropertyKey(propertyKey);
|
|
194
183
|
return OrdinaryMetadataKeys(target, propertyKey);
|
|
195
184
|
}
|
|
185
|
+
__name(getMetadataKeys, "getMetadataKeys");
|
|
196
186
|
exporter("getMetadataKeys", getMetadataKeys);
|
|
197
187
|
function getOwnMetadataKeys(target, propertyKey) {
|
|
198
|
-
if (!IsObject(target))
|
|
199
|
-
|
|
200
|
-
if (!IsUndefined(propertyKey))
|
|
201
|
-
propertyKey = ToPropertyKey(propertyKey);
|
|
188
|
+
if (!IsObject(target)) throw new TypeError();
|
|
189
|
+
if (!IsUndefined(propertyKey)) propertyKey = ToPropertyKey(propertyKey);
|
|
202
190
|
return OrdinaryOwnMetadataKeys(target, propertyKey);
|
|
203
191
|
}
|
|
192
|
+
__name(getOwnMetadataKeys, "getOwnMetadataKeys");
|
|
204
193
|
exporter("getOwnMetadataKeys", getOwnMetadataKeys);
|
|
205
194
|
function deleteMetadata(metadataKey, target, propertyKey) {
|
|
206
|
-
if (!IsObject(target))
|
|
207
|
-
|
|
208
|
-
if (!
|
|
209
|
-
|
|
210
|
-
if (!IsObject(target))
|
|
211
|
-
throw new TypeError();
|
|
212
|
-
if (!IsUndefined(propertyKey))
|
|
213
|
-
propertyKey = ToPropertyKey(propertyKey);
|
|
195
|
+
if (!IsObject(target)) throw new TypeError();
|
|
196
|
+
if (!IsUndefined(propertyKey)) propertyKey = ToPropertyKey(propertyKey);
|
|
197
|
+
if (!IsObject(target)) throw new TypeError();
|
|
198
|
+
if (!IsUndefined(propertyKey)) propertyKey = ToPropertyKey(propertyKey);
|
|
214
199
|
var provider = GetMetadataProvider(
|
|
215
200
|
target,
|
|
216
201
|
propertyKey,
|
|
217
202
|
/*Create*/
|
|
218
203
|
false
|
|
219
204
|
);
|
|
220
|
-
if (IsUndefined(provider))
|
|
221
|
-
return false;
|
|
205
|
+
if (IsUndefined(provider)) return false;
|
|
222
206
|
return provider.OrdinaryDeleteMetadata(metadataKey, target, propertyKey);
|
|
223
207
|
}
|
|
208
|
+
__name(deleteMetadata, "deleteMetadata");
|
|
224
209
|
exporter("deleteMetadata", deleteMetadata);
|
|
225
210
|
function DecorateConstructor(decorators, target) {
|
|
226
211
|
for (var i = decorators.length - 1; i >= 0; --i) {
|
|
227
212
|
var decorator = decorators[i];
|
|
228
213
|
var decorated = decorator(target);
|
|
229
214
|
if (!IsUndefined(decorated) && !IsNull(decorated)) {
|
|
230
|
-
if (!IsConstructor(decorated))
|
|
231
|
-
throw new TypeError();
|
|
215
|
+
if (!IsConstructor(decorated)) throw new TypeError();
|
|
232
216
|
target = decorated;
|
|
233
217
|
}
|
|
234
218
|
}
|
|
235
219
|
return target;
|
|
236
220
|
}
|
|
221
|
+
__name(DecorateConstructor, "DecorateConstructor");
|
|
237
222
|
function DecorateProperty(decorators, target, propertyKey, descriptor) {
|
|
238
223
|
for (var i = decorators.length - 1; i >= 0; --i) {
|
|
239
224
|
var decorator = decorators[i];
|
|
240
225
|
var decorated = decorator(target, propertyKey, descriptor);
|
|
241
226
|
if (!IsUndefined(decorated) && !IsNull(decorated)) {
|
|
242
|
-
if (!IsObject(decorated))
|
|
243
|
-
throw new TypeError();
|
|
227
|
+
if (!IsObject(decorated)) throw new TypeError();
|
|
244
228
|
descriptor = decorated;
|
|
245
229
|
}
|
|
246
230
|
}
|
|
247
231
|
return descriptor;
|
|
248
232
|
}
|
|
233
|
+
__name(DecorateProperty, "DecorateProperty");
|
|
249
234
|
function OrdinaryHasMetadata(MetadataKey, O, P) {
|
|
250
235
|
var hasOwn2 = OrdinaryHasOwnMetadata(MetadataKey, O, P);
|
|
251
|
-
if (hasOwn2)
|
|
252
|
-
return true;
|
|
236
|
+
if (hasOwn2) return true;
|
|
253
237
|
var parent = OrdinaryGetPrototypeOf(O);
|
|
254
|
-
if (!IsNull(parent))
|
|
255
|
-
return OrdinaryHasMetadata(MetadataKey, parent, P);
|
|
238
|
+
if (!IsNull(parent)) return OrdinaryHasMetadata(MetadataKey, parent, P);
|
|
256
239
|
return false;
|
|
257
240
|
}
|
|
241
|
+
__name(OrdinaryHasMetadata, "OrdinaryHasMetadata");
|
|
258
242
|
function OrdinaryHasOwnMetadata(MetadataKey, O, P) {
|
|
259
243
|
var provider = GetMetadataProvider(
|
|
260
244
|
O,
|
|
@@ -262,19 +246,18 @@ var require_Reflect = __commonJS({
|
|
|
262
246
|
/*Create*/
|
|
263
247
|
false
|
|
264
248
|
);
|
|
265
|
-
if (IsUndefined(provider))
|
|
266
|
-
return false;
|
|
249
|
+
if (IsUndefined(provider)) return false;
|
|
267
250
|
return ToBoolean(provider.OrdinaryHasOwnMetadata(MetadataKey, O, P));
|
|
268
251
|
}
|
|
252
|
+
__name(OrdinaryHasOwnMetadata, "OrdinaryHasOwnMetadata");
|
|
269
253
|
function OrdinaryGetMetadata(MetadataKey, O, P) {
|
|
270
254
|
var hasOwn2 = OrdinaryHasOwnMetadata(MetadataKey, O, P);
|
|
271
|
-
if (hasOwn2)
|
|
272
|
-
return OrdinaryGetOwnMetadata(MetadataKey, O, P);
|
|
255
|
+
if (hasOwn2) return OrdinaryGetOwnMetadata(MetadataKey, O, P);
|
|
273
256
|
var parent = OrdinaryGetPrototypeOf(O);
|
|
274
|
-
if (!IsNull(parent))
|
|
275
|
-
return OrdinaryGetMetadata(MetadataKey, parent, P);
|
|
257
|
+
if (!IsNull(parent)) return OrdinaryGetMetadata(MetadataKey, parent, P);
|
|
276
258
|
return void 0;
|
|
277
259
|
}
|
|
260
|
+
__name(OrdinaryGetMetadata, "OrdinaryGetMetadata");
|
|
278
261
|
function OrdinaryGetOwnMetadata(MetadataKey, O, P) {
|
|
279
262
|
var provider = GetMetadataProvider(
|
|
280
263
|
O,
|
|
@@ -282,10 +265,10 @@ var require_Reflect = __commonJS({
|
|
|
282
265
|
/*Create*/
|
|
283
266
|
false
|
|
284
267
|
);
|
|
285
|
-
if (IsUndefined(provider))
|
|
286
|
-
return;
|
|
268
|
+
if (IsUndefined(provider)) return;
|
|
287
269
|
return provider.OrdinaryGetOwnMetadata(MetadataKey, O, P);
|
|
288
270
|
}
|
|
271
|
+
__name(OrdinaryGetOwnMetadata, "OrdinaryGetOwnMetadata");
|
|
289
272
|
function OrdinaryDefineOwnMetadata(MetadataKey, MetadataValue, O, P) {
|
|
290
273
|
var provider = GetMetadataProvider(
|
|
291
274
|
O,
|
|
@@ -295,16 +278,14 @@ var require_Reflect = __commonJS({
|
|
|
295
278
|
);
|
|
296
279
|
provider.OrdinaryDefineOwnMetadata(MetadataKey, MetadataValue, O, P);
|
|
297
280
|
}
|
|
281
|
+
__name(OrdinaryDefineOwnMetadata, "OrdinaryDefineOwnMetadata");
|
|
298
282
|
function OrdinaryMetadataKeys(O, P) {
|
|
299
283
|
var ownKeys = OrdinaryOwnMetadataKeys(O, P);
|
|
300
284
|
var parent = OrdinaryGetPrototypeOf(O);
|
|
301
|
-
if (parent === null)
|
|
302
|
-
return ownKeys;
|
|
285
|
+
if (parent === null) return ownKeys;
|
|
303
286
|
var parentKeys = OrdinaryMetadataKeys(parent, P);
|
|
304
|
-
if (parentKeys.length <= 0)
|
|
305
|
-
|
|
306
|
-
if (ownKeys.length <= 0)
|
|
307
|
-
return parentKeys;
|
|
287
|
+
if (parentKeys.length <= 0) return ownKeys;
|
|
288
|
+
if (ownKeys.length <= 0) return parentKeys;
|
|
308
289
|
var set = new _Set();
|
|
309
290
|
var keys = [];
|
|
310
291
|
for (var _i = 0, ownKeys_1 = ownKeys; _i < ownKeys_1.length; _i++) {
|
|
@@ -325,6 +306,7 @@ var require_Reflect = __commonJS({
|
|
|
325
306
|
}
|
|
326
307
|
return keys;
|
|
327
308
|
}
|
|
309
|
+
__name(OrdinaryMetadataKeys, "OrdinaryMetadataKeys");
|
|
328
310
|
function OrdinaryOwnMetadataKeys(O, P) {
|
|
329
311
|
var provider = GetMetadataProvider(
|
|
330
312
|
O,
|
|
@@ -337,9 +319,9 @@ var require_Reflect = __commonJS({
|
|
|
337
319
|
}
|
|
338
320
|
return provider.OrdinaryOwnMetadataKeys(O, P);
|
|
339
321
|
}
|
|
322
|
+
__name(OrdinaryOwnMetadataKeys, "OrdinaryOwnMetadataKeys");
|
|
340
323
|
function Type(x) {
|
|
341
|
-
if (x === null)
|
|
342
|
-
return 1;
|
|
324
|
+
if (x === null) return 1;
|
|
343
325
|
switch (typeof x) {
|
|
344
326
|
case "undefined":
|
|
345
327
|
return 0;
|
|
@@ -357,18 +339,23 @@ var require_Reflect = __commonJS({
|
|
|
357
339
|
return 6;
|
|
358
340
|
}
|
|
359
341
|
}
|
|
342
|
+
__name(Type, "Type");
|
|
360
343
|
function IsUndefined(x) {
|
|
361
344
|
return x === void 0;
|
|
362
345
|
}
|
|
346
|
+
__name(IsUndefined, "IsUndefined");
|
|
363
347
|
function IsNull(x) {
|
|
364
348
|
return x === null;
|
|
365
349
|
}
|
|
350
|
+
__name(IsNull, "IsNull");
|
|
366
351
|
function IsSymbol(x) {
|
|
367
352
|
return typeof x === "symbol";
|
|
368
353
|
}
|
|
354
|
+
__name(IsSymbol, "IsSymbol");
|
|
369
355
|
function IsObject(x) {
|
|
370
356
|
return typeof x === "object" ? x !== null : typeof x === "function";
|
|
371
357
|
}
|
|
358
|
+
__name(IsObject, "IsObject");
|
|
372
359
|
function ToPrimitive(input, PreferredType) {
|
|
373
360
|
switch (Type(input)) {
|
|
374
361
|
case 0:
|
|
@@ -388,67 +375,69 @@ var require_Reflect = __commonJS({
|
|
|
388
375
|
var exoticToPrim = GetMethod(input, toPrimitiveSymbol);
|
|
389
376
|
if (exoticToPrim !== void 0) {
|
|
390
377
|
var result = exoticToPrim.call(input, hint);
|
|
391
|
-
if (IsObject(result))
|
|
392
|
-
throw new TypeError();
|
|
378
|
+
if (IsObject(result)) throw new TypeError();
|
|
393
379
|
return result;
|
|
394
380
|
}
|
|
395
381
|
return OrdinaryToPrimitive(input, hint === "default" ? "number" : hint);
|
|
396
382
|
}
|
|
383
|
+
__name(ToPrimitive, "ToPrimitive");
|
|
397
384
|
function OrdinaryToPrimitive(O, hint) {
|
|
398
385
|
if (hint === "string") {
|
|
399
386
|
var toString_1 = O.toString;
|
|
400
387
|
if (IsCallable(toString_1)) {
|
|
401
388
|
var result = toString_1.call(O);
|
|
402
|
-
if (!IsObject(result))
|
|
403
|
-
return result;
|
|
389
|
+
if (!IsObject(result)) return result;
|
|
404
390
|
}
|
|
405
391
|
var valueOf = O.valueOf;
|
|
406
392
|
if (IsCallable(valueOf)) {
|
|
407
393
|
var result = valueOf.call(O);
|
|
408
|
-
if (!IsObject(result))
|
|
409
|
-
return result;
|
|
394
|
+
if (!IsObject(result)) return result;
|
|
410
395
|
}
|
|
411
396
|
} else {
|
|
412
397
|
var valueOf = O.valueOf;
|
|
413
398
|
if (IsCallable(valueOf)) {
|
|
414
399
|
var result = valueOf.call(O);
|
|
415
|
-
if (!IsObject(result))
|
|
416
|
-
return result;
|
|
400
|
+
if (!IsObject(result)) return result;
|
|
417
401
|
}
|
|
418
402
|
var toString_2 = O.toString;
|
|
419
403
|
if (IsCallable(toString_2)) {
|
|
420
404
|
var result = toString_2.call(O);
|
|
421
|
-
if (!IsObject(result))
|
|
422
|
-
return result;
|
|
405
|
+
if (!IsObject(result)) return result;
|
|
423
406
|
}
|
|
424
407
|
}
|
|
425
408
|
throw new TypeError();
|
|
426
409
|
}
|
|
410
|
+
__name(OrdinaryToPrimitive, "OrdinaryToPrimitive");
|
|
427
411
|
function ToBoolean(argument) {
|
|
428
412
|
return !!argument;
|
|
429
413
|
}
|
|
414
|
+
__name(ToBoolean, "ToBoolean");
|
|
430
415
|
function ToString(argument) {
|
|
431
416
|
return "" + argument;
|
|
432
417
|
}
|
|
418
|
+
__name(ToString, "ToString");
|
|
433
419
|
function ToPropertyKey(argument) {
|
|
434
420
|
var key = ToPrimitive(
|
|
435
421
|
argument,
|
|
436
422
|
3
|
|
437
423
|
/* String */
|
|
438
424
|
);
|
|
439
|
-
if (IsSymbol(key))
|
|
440
|
-
return key;
|
|
425
|
+
if (IsSymbol(key)) return key;
|
|
441
426
|
return ToString(key);
|
|
442
427
|
}
|
|
428
|
+
__name(ToPropertyKey, "ToPropertyKey");
|
|
443
429
|
function IsArray(argument) {
|
|
444
430
|
return Array.isArray ? Array.isArray(argument) : argument instanceof Object ? argument instanceof Array : Object.prototype.toString.call(argument) === "[object Array]";
|
|
445
431
|
}
|
|
432
|
+
__name(IsArray, "IsArray");
|
|
446
433
|
function IsCallable(argument) {
|
|
447
434
|
return typeof argument === "function";
|
|
448
435
|
}
|
|
436
|
+
__name(IsCallable, "IsCallable");
|
|
449
437
|
function IsConstructor(argument) {
|
|
450
438
|
return typeof argument === "function";
|
|
451
439
|
}
|
|
440
|
+
__name(IsConstructor, "IsConstructor");
|
|
452
441
|
function IsPropertyKey(argument) {
|
|
453
442
|
switch (Type(argument)) {
|
|
454
443
|
case 3:
|
|
@@ -459,55 +448,53 @@ var require_Reflect = __commonJS({
|
|
|
459
448
|
return false;
|
|
460
449
|
}
|
|
461
450
|
}
|
|
451
|
+
__name(IsPropertyKey, "IsPropertyKey");
|
|
462
452
|
function SameValueZero(x, y) {
|
|
463
453
|
return x === y || x !== x && y !== y;
|
|
464
454
|
}
|
|
455
|
+
__name(SameValueZero, "SameValueZero");
|
|
465
456
|
function GetMethod(V, P) {
|
|
466
457
|
var func = V[P];
|
|
467
|
-
if (func === void 0 || func === null)
|
|
468
|
-
|
|
469
|
-
if (!IsCallable(func))
|
|
470
|
-
throw new TypeError();
|
|
458
|
+
if (func === void 0 || func === null) return void 0;
|
|
459
|
+
if (!IsCallable(func)) throw new TypeError();
|
|
471
460
|
return func;
|
|
472
461
|
}
|
|
462
|
+
__name(GetMethod, "GetMethod");
|
|
473
463
|
function GetIterator(obj) {
|
|
474
464
|
var method = GetMethod(obj, iteratorSymbol);
|
|
475
|
-
if (!IsCallable(method))
|
|
476
|
-
throw new TypeError();
|
|
465
|
+
if (!IsCallable(method)) throw new TypeError();
|
|
477
466
|
var iterator = method.call(obj);
|
|
478
|
-
if (!IsObject(iterator))
|
|
479
|
-
throw new TypeError();
|
|
467
|
+
if (!IsObject(iterator)) throw new TypeError();
|
|
480
468
|
return iterator;
|
|
481
469
|
}
|
|
470
|
+
__name(GetIterator, "GetIterator");
|
|
482
471
|
function IteratorValue(iterResult) {
|
|
483
472
|
return iterResult.value;
|
|
484
473
|
}
|
|
474
|
+
__name(IteratorValue, "IteratorValue");
|
|
485
475
|
function IteratorStep(iterator) {
|
|
486
476
|
var result = iterator.next();
|
|
487
477
|
return result.done ? false : result;
|
|
488
478
|
}
|
|
479
|
+
__name(IteratorStep, "IteratorStep");
|
|
489
480
|
function IteratorClose(iterator) {
|
|
490
481
|
var f = iterator["return"];
|
|
491
|
-
if (f)
|
|
492
|
-
f.call(iterator);
|
|
482
|
+
if (f) f.call(iterator);
|
|
493
483
|
}
|
|
484
|
+
__name(IteratorClose, "IteratorClose");
|
|
494
485
|
function OrdinaryGetPrototypeOf(O) {
|
|
495
486
|
var proto = Object.getPrototypeOf(O);
|
|
496
|
-
if (typeof O !== "function" || O === functionPrototype)
|
|
497
|
-
|
|
498
|
-
if (proto !== functionPrototype)
|
|
499
|
-
return proto;
|
|
487
|
+
if (typeof O !== "function" || O === functionPrototype) return proto;
|
|
488
|
+
if (proto !== functionPrototype) return proto;
|
|
500
489
|
var prototype = O.prototype;
|
|
501
490
|
var prototypeProto = prototype && Object.getPrototypeOf(prototype);
|
|
502
|
-
if (prototypeProto == null || prototypeProto === Object.prototype)
|
|
503
|
-
return proto;
|
|
491
|
+
if (prototypeProto == null || prototypeProto === Object.prototype) return proto;
|
|
504
492
|
var constructor = prototypeProto.constructor;
|
|
505
|
-
if (typeof constructor !== "function")
|
|
506
|
-
|
|
507
|
-
if (constructor === O)
|
|
508
|
-
return proto;
|
|
493
|
+
if (typeof constructor !== "function") return proto;
|
|
494
|
+
if (constructor === O) return proto;
|
|
509
495
|
return constructor;
|
|
510
496
|
}
|
|
497
|
+
__name(OrdinaryGetPrototypeOf, "OrdinaryGetPrototypeOf");
|
|
511
498
|
function CreateMetadataRegistry() {
|
|
512
499
|
var fallback;
|
|
513
500
|
if (!IsUndefined(registrySymbol) && typeof root.Reflect !== "undefined" && !(registrySymbol in root.Reflect) && typeof root.Reflect.defineMetadata === "function") {
|
|
@@ -541,19 +528,17 @@ var require_Reflect = __commonJS({
|
|
|
541
528
|
case second === provider:
|
|
542
529
|
break;
|
|
543
530
|
default:
|
|
544
|
-
if (rest === void 0)
|
|
545
|
-
rest = new _Set();
|
|
531
|
+
if (rest === void 0) rest = new _Set();
|
|
546
532
|
rest.add(provider);
|
|
547
533
|
break;
|
|
548
534
|
}
|
|
549
535
|
}
|
|
536
|
+
__name(registerProvider, "registerProvider");
|
|
550
537
|
function getProviderNoCache(O, P) {
|
|
551
538
|
if (!IsUndefined(first)) {
|
|
552
|
-
if (first.isProviderFor(O, P))
|
|
553
|
-
return first;
|
|
539
|
+
if (first.isProviderFor(O, P)) return first;
|
|
554
540
|
if (!IsUndefined(second)) {
|
|
555
|
-
if (second.isProviderFor(O, P))
|
|
556
|
-
return first;
|
|
541
|
+
if (second.isProviderFor(O, P)) return first;
|
|
557
542
|
if (!IsUndefined(rest)) {
|
|
558
543
|
var iterator = GetIterator(rest);
|
|
559
544
|
while (true) {
|
|
@@ -575,6 +560,7 @@ var require_Reflect = __commonJS({
|
|
|
575
560
|
}
|
|
576
561
|
return void 0;
|
|
577
562
|
}
|
|
563
|
+
__name(getProviderNoCache, "getProviderNoCache");
|
|
578
564
|
function getProvider(O, P) {
|
|
579
565
|
var providerMap = targetProviderMap.get(O);
|
|
580
566
|
var provider;
|
|
@@ -594,11 +580,12 @@ var require_Reflect = __commonJS({
|
|
|
594
580
|
}
|
|
595
581
|
return provider;
|
|
596
582
|
}
|
|
583
|
+
__name(getProvider, "getProvider");
|
|
597
584
|
function hasProvider(provider) {
|
|
598
|
-
if (IsUndefined(provider))
|
|
599
|
-
throw new TypeError();
|
|
585
|
+
if (IsUndefined(provider)) throw new TypeError();
|
|
600
586
|
return first === provider || second === provider || !IsUndefined(rest) && rest.has(provider);
|
|
601
587
|
}
|
|
588
|
+
__name(hasProvider, "hasProvider");
|
|
602
589
|
function setProvider(O, P, provider) {
|
|
603
590
|
if (!hasProvider(provider)) {
|
|
604
591
|
throw new Error("Metadata provider not registered.");
|
|
@@ -617,7 +604,9 @@ var require_Reflect = __commonJS({
|
|
|
617
604
|
}
|
|
618
605
|
return true;
|
|
619
606
|
}
|
|
607
|
+
__name(setProvider, "setProvider");
|
|
620
608
|
}
|
|
609
|
+
__name(CreateMetadataRegistry, "CreateMetadataRegistry");
|
|
621
610
|
function GetOrCreateMetadataRegistry() {
|
|
622
611
|
var metadataRegistry2;
|
|
623
612
|
if (!IsUndefined(registrySymbol) && IsObject(root.Reflect) && Object.isExtensible(root.Reflect)) {
|
|
@@ -636,15 +625,15 @@ var require_Reflect = __commonJS({
|
|
|
636
625
|
}
|
|
637
626
|
return metadataRegistry2;
|
|
638
627
|
}
|
|
628
|
+
__name(GetOrCreateMetadataRegistry, "GetOrCreateMetadataRegistry");
|
|
639
629
|
function CreateMetadataProvider(registry) {
|
|
640
630
|
var metadata2 = new _WeakMap();
|
|
641
631
|
var provider = {
|
|
642
|
-
isProviderFor: function(O, P) {
|
|
632
|
+
isProviderFor: /* @__PURE__ */ __name(function(O, P) {
|
|
643
633
|
var targetMetadata = metadata2.get(O);
|
|
644
|
-
if (IsUndefined(targetMetadata))
|
|
645
|
-
return false;
|
|
634
|
+
if (IsUndefined(targetMetadata)) return false;
|
|
646
635
|
return targetMetadata.has(P);
|
|
647
|
-
},
|
|
636
|
+
}, "isProviderFor"),
|
|
648
637
|
OrdinaryDefineOwnMetadata: OrdinaryDefineOwnMetadata2,
|
|
649
638
|
OrdinaryHasOwnMetadata: OrdinaryHasOwnMetadata2,
|
|
650
639
|
OrdinaryGetOwnMetadata: OrdinaryGetOwnMetadata2,
|
|
@@ -657,16 +646,14 @@ var require_Reflect = __commonJS({
|
|
|
657
646
|
var targetMetadata = metadata2.get(O);
|
|
658
647
|
var createdTargetMetadata = false;
|
|
659
648
|
if (IsUndefined(targetMetadata)) {
|
|
660
|
-
if (!Create)
|
|
661
|
-
return void 0;
|
|
649
|
+
if (!Create) return void 0;
|
|
662
650
|
targetMetadata = new _Map();
|
|
663
651
|
metadata2.set(O, targetMetadata);
|
|
664
652
|
createdTargetMetadata = true;
|
|
665
653
|
}
|
|
666
654
|
var metadataMap = targetMetadata.get(P);
|
|
667
655
|
if (IsUndefined(metadataMap)) {
|
|
668
|
-
if (!Create)
|
|
669
|
-
return void 0;
|
|
656
|
+
if (!Create) return void 0;
|
|
670
657
|
metadataMap = new _Map();
|
|
671
658
|
targetMetadata.set(P, metadataMap);
|
|
672
659
|
if (!registry.setProvider(O, P, provider)) {
|
|
@@ -679,6 +666,7 @@ var require_Reflect = __commonJS({
|
|
|
679
666
|
}
|
|
680
667
|
return metadataMap;
|
|
681
668
|
}
|
|
669
|
+
__name(GetOrCreateMetadataMap, "GetOrCreateMetadataMap");
|
|
682
670
|
function OrdinaryHasOwnMetadata2(MetadataKey, O, P) {
|
|
683
671
|
var metadataMap = GetOrCreateMetadataMap(
|
|
684
672
|
O,
|
|
@@ -686,10 +674,10 @@ var require_Reflect = __commonJS({
|
|
|
686
674
|
/*Create*/
|
|
687
675
|
false
|
|
688
676
|
);
|
|
689
|
-
if (IsUndefined(metadataMap))
|
|
690
|
-
return false;
|
|
677
|
+
if (IsUndefined(metadataMap)) return false;
|
|
691
678
|
return ToBoolean(metadataMap.has(MetadataKey));
|
|
692
679
|
}
|
|
680
|
+
__name(OrdinaryHasOwnMetadata2, "OrdinaryHasOwnMetadata");
|
|
693
681
|
function OrdinaryGetOwnMetadata2(MetadataKey, O, P) {
|
|
694
682
|
var metadataMap = GetOrCreateMetadataMap(
|
|
695
683
|
O,
|
|
@@ -697,10 +685,10 @@ var require_Reflect = __commonJS({
|
|
|
697
685
|
/*Create*/
|
|
698
686
|
false
|
|
699
687
|
);
|
|
700
|
-
if (IsUndefined(metadataMap))
|
|
701
|
-
return void 0;
|
|
688
|
+
if (IsUndefined(metadataMap)) return void 0;
|
|
702
689
|
return metadataMap.get(MetadataKey);
|
|
703
690
|
}
|
|
691
|
+
__name(OrdinaryGetOwnMetadata2, "OrdinaryGetOwnMetadata");
|
|
704
692
|
function OrdinaryDefineOwnMetadata2(MetadataKey, MetadataValue, O, P) {
|
|
705
693
|
var metadataMap = GetOrCreateMetadataMap(
|
|
706
694
|
O,
|
|
@@ -710,6 +698,7 @@ var require_Reflect = __commonJS({
|
|
|
710
698
|
);
|
|
711
699
|
metadataMap.set(MetadataKey, MetadataValue);
|
|
712
700
|
}
|
|
701
|
+
__name(OrdinaryDefineOwnMetadata2, "OrdinaryDefineOwnMetadata");
|
|
713
702
|
function OrdinaryOwnMetadataKeys2(O, P) {
|
|
714
703
|
var keys = [];
|
|
715
704
|
var metadataMap = GetOrCreateMetadataMap(
|
|
@@ -718,8 +707,7 @@ var require_Reflect = __commonJS({
|
|
|
718
707
|
/*Create*/
|
|
719
708
|
false
|
|
720
709
|
);
|
|
721
|
-
if (IsUndefined(metadataMap))
|
|
722
|
-
return keys;
|
|
710
|
+
if (IsUndefined(metadataMap)) return keys;
|
|
723
711
|
var keysObj = metadataMap.keys();
|
|
724
712
|
var iterator = GetIterator(keysObj);
|
|
725
713
|
var k = 0;
|
|
@@ -742,6 +730,7 @@ var require_Reflect = __commonJS({
|
|
|
742
730
|
k++;
|
|
743
731
|
}
|
|
744
732
|
}
|
|
733
|
+
__name(OrdinaryOwnMetadataKeys2, "OrdinaryOwnMetadataKeys");
|
|
745
734
|
function OrdinaryDeleteMetadata(MetadataKey, O, P) {
|
|
746
735
|
var metadataMap = GetOrCreateMetadataMap(
|
|
747
736
|
O,
|
|
@@ -749,10 +738,8 @@ var require_Reflect = __commonJS({
|
|
|
749
738
|
/*Create*/
|
|
750
739
|
false
|
|
751
740
|
);
|
|
752
|
-
if (IsUndefined(metadataMap))
|
|
753
|
-
|
|
754
|
-
if (!metadataMap.delete(MetadataKey))
|
|
755
|
-
return false;
|
|
741
|
+
if (IsUndefined(metadataMap)) return false;
|
|
742
|
+
if (!metadataMap.delete(MetadataKey)) return false;
|
|
756
743
|
if (metadataMap.size === 0) {
|
|
757
744
|
var targetMetadata = metadata2.get(O);
|
|
758
745
|
if (!IsUndefined(targetMetadata)) {
|
|
@@ -764,12 +751,14 @@ var require_Reflect = __commonJS({
|
|
|
764
751
|
}
|
|
765
752
|
return true;
|
|
766
753
|
}
|
|
754
|
+
__name(OrdinaryDeleteMetadata, "OrdinaryDeleteMetadata");
|
|
767
755
|
}
|
|
756
|
+
__name(CreateMetadataProvider, "CreateMetadataProvider");
|
|
768
757
|
function CreateFallbackProvider(reflect) {
|
|
769
758
|
var defineMetadata2 = reflect.defineMetadata, hasOwnMetadata2 = reflect.hasOwnMetadata, getOwnMetadata2 = reflect.getOwnMetadata, getOwnMetadataKeys2 = reflect.getOwnMetadataKeys, deleteMetadata2 = reflect.deleteMetadata;
|
|
770
759
|
var metadataOwner = new _WeakMap();
|
|
771
760
|
var provider = {
|
|
772
|
-
isProviderFor: function(O, P) {
|
|
761
|
+
isProviderFor: /* @__PURE__ */ __name(function(O, P) {
|
|
773
762
|
var metadataPropertySet = metadataOwner.get(O);
|
|
774
763
|
if (!IsUndefined(metadataPropertySet) && metadataPropertySet.has(P)) {
|
|
775
764
|
return true;
|
|
@@ -783,7 +772,7 @@ var require_Reflect = __commonJS({
|
|
|
783
772
|
return true;
|
|
784
773
|
}
|
|
785
774
|
return false;
|
|
786
|
-
},
|
|
775
|
+
}, "isProviderFor"),
|
|
787
776
|
OrdinaryDefineOwnMetadata: defineMetadata2,
|
|
788
777
|
OrdinaryHasOwnMetadata: hasOwnMetadata2,
|
|
789
778
|
OrdinaryGetOwnMetadata: getOwnMetadata2,
|
|
@@ -792,6 +781,7 @@ var require_Reflect = __commonJS({
|
|
|
792
781
|
};
|
|
793
782
|
return provider;
|
|
794
783
|
}
|
|
784
|
+
__name(CreateFallbackProvider, "CreateFallbackProvider");
|
|
795
785
|
function GetMetadataProvider(O, P, Create) {
|
|
796
786
|
var registeredProvider = metadataRegistry.getProvider(O, P);
|
|
797
787
|
if (!IsUndefined(registeredProvider)) {
|
|
@@ -805,6 +795,7 @@ var require_Reflect = __commonJS({
|
|
|
805
795
|
}
|
|
806
796
|
return void 0;
|
|
807
797
|
}
|
|
798
|
+
__name(GetMetadataProvider, "GetMetadataProvider");
|
|
808
799
|
function CreateMapPolyfill() {
|
|
809
800
|
var cacheSentinel = {};
|
|
810
801
|
var arraySentinel = [];
|
|
@@ -817,6 +808,7 @@ var require_Reflect = __commonJS({
|
|
|
817
808
|
this._values = values;
|
|
818
809
|
this._selector = selector;
|
|
819
810
|
}
|
|
811
|
+
__name(MapIterator2, "MapIterator");
|
|
820
812
|
MapIterator2.prototype["@@iterator"] = function() {
|
|
821
813
|
return this;
|
|
822
814
|
};
|
|
@@ -834,9 +826,15 @@ var require_Reflect = __commonJS({
|
|
|
834
826
|
} else {
|
|
835
827
|
this._index++;
|
|
836
828
|
}
|
|
837
|
-
return {
|
|
829
|
+
return {
|
|
830
|
+
value: result,
|
|
831
|
+
done: false
|
|
832
|
+
};
|
|
838
833
|
}
|
|
839
|
-
return {
|
|
834
|
+
return {
|
|
835
|
+
value: void 0,
|
|
836
|
+
done: true
|
|
837
|
+
};
|
|
840
838
|
};
|
|
841
839
|
MapIterator2.prototype.throw = function(error) {
|
|
842
840
|
if (this._index >= 0) {
|
|
@@ -852,35 +850,39 @@ var require_Reflect = __commonJS({
|
|
|
852
850
|
this._keys = arraySentinel;
|
|
853
851
|
this._values = arraySentinel;
|
|
854
852
|
}
|
|
855
|
-
return {
|
|
853
|
+
return {
|
|
854
|
+
value,
|
|
855
|
+
done: true
|
|
856
|
+
};
|
|
856
857
|
};
|
|
857
858
|
return MapIterator2;
|
|
858
859
|
}()
|
|
859
860
|
);
|
|
860
|
-
var
|
|
861
|
+
var Map1 = (
|
|
861
862
|
/** @class */
|
|
862
863
|
function() {
|
|
863
|
-
function
|
|
864
|
+
function Map12() {
|
|
864
865
|
this._keys = [];
|
|
865
866
|
this._values = [];
|
|
866
867
|
this._cacheKey = cacheSentinel;
|
|
867
868
|
this._cacheIndex = -2;
|
|
868
869
|
}
|
|
869
|
-
|
|
870
|
-
|
|
870
|
+
__name(Map12, "Map1");
|
|
871
|
+
Object.defineProperty(Map12.prototype, "size", {
|
|
872
|
+
get: /* @__PURE__ */ __name(function() {
|
|
871
873
|
return this._keys.length;
|
|
872
|
-
},
|
|
874
|
+
}, "get"),
|
|
873
875
|
enumerable: true,
|
|
874
876
|
configurable: true
|
|
875
877
|
});
|
|
876
|
-
|
|
878
|
+
Map12.prototype.has = function(key) {
|
|
877
879
|
return this._find(
|
|
878
880
|
key,
|
|
879
881
|
/*insert*/
|
|
880
882
|
false
|
|
881
883
|
) >= 0;
|
|
882
884
|
};
|
|
883
|
-
|
|
885
|
+
Map12.prototype.get = function(key) {
|
|
884
886
|
var index = this._find(
|
|
885
887
|
key,
|
|
886
888
|
/*insert*/
|
|
@@ -888,7 +890,7 @@ var require_Reflect = __commonJS({
|
|
|
888
890
|
);
|
|
889
891
|
return index >= 0 ? this._values[index] : void 0;
|
|
890
892
|
};
|
|
891
|
-
|
|
893
|
+
Map12.prototype.set = function(key, value) {
|
|
892
894
|
var index = this._find(
|
|
893
895
|
key,
|
|
894
896
|
/*insert*/
|
|
@@ -897,7 +899,7 @@ var require_Reflect = __commonJS({
|
|
|
897
899
|
this._values[index] = value;
|
|
898
900
|
return this;
|
|
899
901
|
};
|
|
900
|
-
|
|
902
|
+
Map12.prototype.delete = function(key) {
|
|
901
903
|
var index = this._find(
|
|
902
904
|
key,
|
|
903
905
|
/*insert*/
|
|
@@ -919,28 +921,28 @@ var require_Reflect = __commonJS({
|
|
|
919
921
|
}
|
|
920
922
|
return false;
|
|
921
923
|
};
|
|
922
|
-
|
|
924
|
+
Map12.prototype.clear = function() {
|
|
923
925
|
this._keys.length = 0;
|
|
924
926
|
this._values.length = 0;
|
|
925
927
|
this._cacheKey = cacheSentinel;
|
|
926
928
|
this._cacheIndex = -2;
|
|
927
929
|
};
|
|
928
|
-
|
|
930
|
+
Map12.prototype.keys = function() {
|
|
929
931
|
return new MapIterator(this._keys, this._values, getKey);
|
|
930
932
|
};
|
|
931
|
-
|
|
933
|
+
Map12.prototype.values = function() {
|
|
932
934
|
return new MapIterator(this._keys, this._values, getValue);
|
|
933
935
|
};
|
|
934
|
-
|
|
936
|
+
Map12.prototype.entries = function() {
|
|
935
937
|
return new MapIterator(this._keys, this._values, getEntry);
|
|
936
938
|
};
|
|
937
|
-
|
|
939
|
+
Map12.prototype["@@iterator"] = function() {
|
|
938
940
|
return this.entries();
|
|
939
941
|
};
|
|
940
|
-
|
|
942
|
+
Map12.prototype[iteratorSymbol] = function() {
|
|
941
943
|
return this.entries();
|
|
942
944
|
};
|
|
943
|
-
|
|
945
|
+
Map12.prototype._find = function(key, insert) {
|
|
944
946
|
if (!SameValueZero(this._cacheKey, key)) {
|
|
945
947
|
this._cacheIndex = -1;
|
|
946
948
|
for (var i = 0; i < this._keys.length; i++) {
|
|
@@ -957,66 +959,75 @@ var require_Reflect = __commonJS({
|
|
|
957
959
|
}
|
|
958
960
|
return this._cacheIndex;
|
|
959
961
|
};
|
|
960
|
-
return
|
|
962
|
+
return Map12;
|
|
961
963
|
}()
|
|
962
964
|
);
|
|
963
|
-
return
|
|
965
|
+
return Map1;
|
|
964
966
|
function getKey(key, _) {
|
|
965
967
|
return key;
|
|
966
968
|
}
|
|
969
|
+
__name(getKey, "getKey");
|
|
967
970
|
function getValue(_, value) {
|
|
968
971
|
return value;
|
|
969
972
|
}
|
|
973
|
+
__name(getValue, "getValue");
|
|
970
974
|
function getEntry(key, value) {
|
|
971
|
-
return [
|
|
975
|
+
return [
|
|
976
|
+
key,
|
|
977
|
+
value
|
|
978
|
+
];
|
|
972
979
|
}
|
|
980
|
+
__name(getEntry, "getEntry");
|
|
973
981
|
}
|
|
982
|
+
__name(CreateMapPolyfill, "CreateMapPolyfill");
|
|
974
983
|
function CreateSetPolyfill() {
|
|
975
|
-
var
|
|
984
|
+
var Set1 = (
|
|
976
985
|
/** @class */
|
|
977
986
|
function() {
|
|
978
|
-
function
|
|
987
|
+
function Set12() {
|
|
979
988
|
this._map = new _Map();
|
|
980
989
|
}
|
|
981
|
-
|
|
982
|
-
|
|
990
|
+
__name(Set12, "Set1");
|
|
991
|
+
Object.defineProperty(Set12.prototype, "size", {
|
|
992
|
+
get: /* @__PURE__ */ __name(function() {
|
|
983
993
|
return this._map.size;
|
|
984
|
-
},
|
|
994
|
+
}, "get"),
|
|
985
995
|
enumerable: true,
|
|
986
996
|
configurable: true
|
|
987
997
|
});
|
|
988
|
-
|
|
998
|
+
Set12.prototype.has = function(value) {
|
|
989
999
|
return this._map.has(value);
|
|
990
1000
|
};
|
|
991
|
-
|
|
1001
|
+
Set12.prototype.add = function(value) {
|
|
992
1002
|
return this._map.set(value, value), this;
|
|
993
1003
|
};
|
|
994
|
-
|
|
1004
|
+
Set12.prototype.delete = function(value) {
|
|
995
1005
|
return this._map.delete(value);
|
|
996
1006
|
};
|
|
997
|
-
|
|
1007
|
+
Set12.prototype.clear = function() {
|
|
998
1008
|
this._map.clear();
|
|
999
1009
|
};
|
|
1000
|
-
|
|
1010
|
+
Set12.prototype.keys = function() {
|
|
1001
1011
|
return this._map.keys();
|
|
1002
1012
|
};
|
|
1003
|
-
|
|
1013
|
+
Set12.prototype.values = function() {
|
|
1004
1014
|
return this._map.keys();
|
|
1005
1015
|
};
|
|
1006
|
-
|
|
1016
|
+
Set12.prototype.entries = function() {
|
|
1007
1017
|
return this._map.entries();
|
|
1008
1018
|
};
|
|
1009
|
-
|
|
1019
|
+
Set12.prototype["@@iterator"] = function() {
|
|
1010
1020
|
return this.keys();
|
|
1011
1021
|
};
|
|
1012
|
-
|
|
1022
|
+
Set12.prototype[iteratorSymbol] = function() {
|
|
1013
1023
|
return this.keys();
|
|
1014
1024
|
};
|
|
1015
|
-
return
|
|
1025
|
+
return Set12;
|
|
1016
1026
|
}()
|
|
1017
1027
|
);
|
|
1018
|
-
return
|
|
1028
|
+
return Set1;
|
|
1019
1029
|
}
|
|
1030
|
+
__name(CreateSetPolyfill, "CreateSetPolyfill");
|
|
1020
1031
|
function CreateWeakMapPolyfill() {
|
|
1021
1032
|
var UUID_SIZE = 16;
|
|
1022
1033
|
var keys = HashMap.create();
|
|
@@ -1024,10 +1035,11 @@ var require_Reflect = __commonJS({
|
|
|
1024
1035
|
return (
|
|
1025
1036
|
/** @class */
|
|
1026
1037
|
function() {
|
|
1027
|
-
function
|
|
1038
|
+
function WeakMap1() {
|
|
1028
1039
|
this._key = CreateUniqueKey();
|
|
1029
1040
|
}
|
|
1030
|
-
|
|
1041
|
+
__name(WeakMap1, "WeakMap1");
|
|
1042
|
+
WeakMap1.prototype.has = function(target) {
|
|
1031
1043
|
var table = GetOrCreateWeakMapTable(
|
|
1032
1044
|
target,
|
|
1033
1045
|
/*create*/
|
|
@@ -1035,7 +1047,7 @@ var require_Reflect = __commonJS({
|
|
|
1035
1047
|
);
|
|
1036
1048
|
return table !== void 0 ? HashMap.has(table, this._key) : false;
|
|
1037
1049
|
};
|
|
1038
|
-
|
|
1050
|
+
WeakMap1.prototype.get = function(target) {
|
|
1039
1051
|
var table = GetOrCreateWeakMapTable(
|
|
1040
1052
|
target,
|
|
1041
1053
|
/*create*/
|
|
@@ -1043,7 +1055,7 @@ var require_Reflect = __commonJS({
|
|
|
1043
1055
|
);
|
|
1044
1056
|
return table !== void 0 ? HashMap.get(table, this._key) : void 0;
|
|
1045
1057
|
};
|
|
1046
|
-
|
|
1058
|
+
WeakMap1.prototype.set = function(target, value) {
|
|
1047
1059
|
var table = GetOrCreateWeakMapTable(
|
|
1048
1060
|
target,
|
|
1049
1061
|
/*create*/
|
|
@@ -1052,7 +1064,7 @@ var require_Reflect = __commonJS({
|
|
|
1052
1064
|
table[this._key] = value;
|
|
1053
1065
|
return this;
|
|
1054
1066
|
};
|
|
1055
|
-
|
|
1067
|
+
WeakMap1.prototype.delete = function(target) {
|
|
1056
1068
|
var table = GetOrCreateWeakMapTable(
|
|
1057
1069
|
target,
|
|
1058
1070
|
/*create*/
|
|
@@ -1060,10 +1072,10 @@ var require_Reflect = __commonJS({
|
|
|
1060
1072
|
);
|
|
1061
1073
|
return table !== void 0 ? delete table[this._key] : false;
|
|
1062
1074
|
};
|
|
1063
|
-
|
|
1075
|
+
WeakMap1.prototype.clear = function() {
|
|
1064
1076
|
this._key = CreateUniqueKey();
|
|
1065
1077
|
};
|
|
1066
|
-
return
|
|
1078
|
+
return WeakMap1;
|
|
1067
1079
|
}()
|
|
1068
1080
|
);
|
|
1069
1081
|
function CreateUniqueKey() {
|
|
@@ -1074,19 +1086,22 @@ var require_Reflect = __commonJS({
|
|
|
1074
1086
|
keys[key] = true;
|
|
1075
1087
|
return key;
|
|
1076
1088
|
}
|
|
1089
|
+
__name(CreateUniqueKey, "CreateUniqueKey");
|
|
1077
1090
|
function GetOrCreateWeakMapTable(target, create) {
|
|
1078
1091
|
if (!hasOwn.call(target, rootKey)) {
|
|
1079
|
-
if (!create)
|
|
1080
|
-
|
|
1081
|
-
|
|
1092
|
+
if (!create) return void 0;
|
|
1093
|
+
Object.defineProperty(target, rootKey, {
|
|
1094
|
+
value: HashMap.create()
|
|
1095
|
+
});
|
|
1082
1096
|
}
|
|
1083
1097
|
return target[rootKey];
|
|
1084
1098
|
}
|
|
1099
|
+
__name(GetOrCreateWeakMapTable, "GetOrCreateWeakMapTable");
|
|
1085
1100
|
function FillRandomBytes(buffer, size) {
|
|
1086
|
-
for (var i = 0; i < size; ++i)
|
|
1087
|
-
buffer[i] = Math.random() * 255 | 0;
|
|
1101
|
+
for (var i = 0; i < size; ++i) buffer[i] = Math.random() * 255 | 0;
|
|
1088
1102
|
return buffer;
|
|
1089
1103
|
}
|
|
1104
|
+
__name(FillRandomBytes, "FillRandomBytes");
|
|
1090
1105
|
function GenRandomBytes(size) {
|
|
1091
1106
|
if (typeof Uint8Array === "function") {
|
|
1092
1107
|
var array = new Uint8Array(size);
|
|
@@ -1101,6 +1116,7 @@ var require_Reflect = __commonJS({
|
|
|
1101
1116
|
}
|
|
1102
1117
|
return FillRandomBytes(new Array(size), size);
|
|
1103
1118
|
}
|
|
1119
|
+
__name(GenRandomBytes, "GenRandomBytes");
|
|
1104
1120
|
function CreateUUID() {
|
|
1105
1121
|
var data = GenRandomBytes(UUID_SIZE);
|
|
1106
1122
|
data[6] = data[6] & 79 | 64;
|
|
@@ -1108,20 +1124,21 @@ var require_Reflect = __commonJS({
|
|
|
1108
1124
|
var result = "";
|
|
1109
1125
|
for (var offset = 0; offset < UUID_SIZE; ++offset) {
|
|
1110
1126
|
var byte = data[offset];
|
|
1111
|
-
if (offset === 4 || offset === 6 || offset === 8)
|
|
1112
|
-
|
|
1113
|
-
if (byte < 16)
|
|
1114
|
-
result += "0";
|
|
1127
|
+
if (offset === 4 || offset === 6 || offset === 8) result += "-";
|
|
1128
|
+
if (byte < 16) result += "0";
|
|
1115
1129
|
result += byte.toString(16).toLowerCase();
|
|
1116
1130
|
}
|
|
1117
1131
|
return result;
|
|
1118
1132
|
}
|
|
1133
|
+
__name(CreateUUID, "CreateUUID");
|
|
1119
1134
|
}
|
|
1135
|
+
__name(CreateWeakMapPolyfill, "CreateWeakMapPolyfill");
|
|
1120
1136
|
function MakeDictionary(obj) {
|
|
1121
1137
|
obj.__ = void 0;
|
|
1122
1138
|
delete obj.__;
|
|
1123
1139
|
return obj;
|
|
1124
1140
|
}
|
|
1141
|
+
__name(MakeDictionary, "MakeDictionary");
|
|
1125
1142
|
});
|
|
1126
1143
|
})(Reflect2 || (Reflect2 = {}));
|
|
1127
1144
|
}
|
|
@@ -1166,27 +1183,32 @@ var Lifecycle;
|
|
|
1166
1183
|
var lifecycle_default = Lifecycle;
|
|
1167
1184
|
|
|
1168
1185
|
// ../../node_modules/.pnpm/tslib@1.14.1/node_modules/tslib/tslib.es6.js
|
|
1169
|
-
var extendStatics = function(d, b) {
|
|
1170
|
-
extendStatics = Object.setPrototypeOf || {
|
|
1186
|
+
var extendStatics = /* @__PURE__ */ __name(function(d, b) {
|
|
1187
|
+
extendStatics = Object.setPrototypeOf || {
|
|
1188
|
+
__proto__: []
|
|
1189
|
+
} instanceof Array && function(d2, b2) {
|
|
1171
1190
|
d2.__proto__ = b2;
|
|
1172
1191
|
} || function(d2, b2) {
|
|
1173
1192
|
for (var p in b2) if (b2.hasOwnProperty(p)) d2[p] = b2[p];
|
|
1174
1193
|
};
|
|
1175
1194
|
return extendStatics(d, b);
|
|
1176
|
-
};
|
|
1195
|
+
}, "extendStatics");
|
|
1177
1196
|
function __extends(d, b) {
|
|
1178
1197
|
extendStatics(d, b);
|
|
1179
1198
|
function __() {
|
|
1180
1199
|
this.constructor = d;
|
|
1181
1200
|
}
|
|
1201
|
+
__name(__, "__");
|
|
1182
1202
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
1183
1203
|
}
|
|
1204
|
+
__name(__extends, "__extends");
|
|
1184
1205
|
function __awaiter(thisArg, _arguments, P, generator) {
|
|
1185
1206
|
function adopt(value) {
|
|
1186
1207
|
return value instanceof P ? value : new P(function(resolve) {
|
|
1187
1208
|
resolve(value);
|
|
1188
1209
|
});
|
|
1189
1210
|
}
|
|
1211
|
+
__name(adopt, "adopt");
|
|
1190
1212
|
return new (P || (P = Promise))(function(resolve, reject) {
|
|
1191
1213
|
function fulfilled(value) {
|
|
1192
1214
|
try {
|
|
@@ -1195,6 +1217,7 @@ function __awaiter(thisArg, _arguments, P, generator) {
|
|
|
1195
1217
|
reject(e);
|
|
1196
1218
|
}
|
|
1197
1219
|
}
|
|
1220
|
+
__name(fulfilled, "fulfilled");
|
|
1198
1221
|
function rejected(value) {
|
|
1199
1222
|
try {
|
|
1200
1223
|
step(generator["throw"](value));
|
|
@@ -1202,30 +1225,49 @@ function __awaiter(thisArg, _arguments, P, generator) {
|
|
|
1202
1225
|
reject(e);
|
|
1203
1226
|
}
|
|
1204
1227
|
}
|
|
1228
|
+
__name(rejected, "rejected");
|
|
1205
1229
|
function step(result) {
|
|
1206
1230
|
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
1207
1231
|
}
|
|
1232
|
+
__name(step, "step");
|
|
1208
1233
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
1209
1234
|
});
|
|
1210
1235
|
}
|
|
1236
|
+
__name(__awaiter, "__awaiter");
|
|
1211
1237
|
function __generator(thisArg, body) {
|
|
1212
|
-
var _ = {
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1238
|
+
var _ = {
|
|
1239
|
+
label: 0,
|
|
1240
|
+
sent: /* @__PURE__ */ __name(function() {
|
|
1241
|
+
if (t[0] & 1) throw t[1];
|
|
1242
|
+
return t[1];
|
|
1243
|
+
}, "sent"),
|
|
1244
|
+
trys: [],
|
|
1245
|
+
ops: []
|
|
1246
|
+
}, f, y, t, g;
|
|
1247
|
+
return g = {
|
|
1248
|
+
next: verb(0),
|
|
1249
|
+
"throw": verb(1),
|
|
1250
|
+
"return": verb(2)
|
|
1251
|
+
}, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
|
|
1217
1252
|
return this;
|
|
1218
1253
|
}), g;
|
|
1219
1254
|
function verb(n) {
|
|
1220
1255
|
return function(v) {
|
|
1221
|
-
return step([
|
|
1256
|
+
return step([
|
|
1257
|
+
n,
|
|
1258
|
+
v
|
|
1259
|
+
]);
|
|
1222
1260
|
};
|
|
1223
1261
|
}
|
|
1262
|
+
__name(verb, "verb");
|
|
1224
1263
|
function step(op) {
|
|
1225
1264
|
if (f) throw new TypeError("Generator is already executing.");
|
|
1226
1265
|
while (_) try {
|
|
1227
1266
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
1228
|
-
if (y = 0, t) op = [
|
|
1267
|
+
if (y = 0, t) op = [
|
|
1268
|
+
op[0] & 2,
|
|
1269
|
+
t.value
|
|
1270
|
+
];
|
|
1229
1271
|
switch (op[0]) {
|
|
1230
1272
|
case 0:
|
|
1231
1273
|
case 1:
|
|
@@ -1233,11 +1275,16 @@ function __generator(thisArg, body) {
|
|
|
1233
1275
|
break;
|
|
1234
1276
|
case 4:
|
|
1235
1277
|
_.label++;
|
|
1236
|
-
return {
|
|
1278
|
+
return {
|
|
1279
|
+
value: op[1],
|
|
1280
|
+
done: false
|
|
1281
|
+
};
|
|
1237
1282
|
case 5:
|
|
1238
1283
|
_.label++;
|
|
1239
1284
|
y = op[1];
|
|
1240
|
-
op = [
|
|
1285
|
+
op = [
|
|
1286
|
+
0
|
|
1287
|
+
];
|
|
1241
1288
|
continue;
|
|
1242
1289
|
case 7:
|
|
1243
1290
|
op = _.ops.pop();
|
|
@@ -1268,26 +1315,38 @@ function __generator(thisArg, body) {
|
|
|
1268
1315
|
}
|
|
1269
1316
|
op = body.call(thisArg, _);
|
|
1270
1317
|
} catch (e) {
|
|
1271
|
-
op = [
|
|
1318
|
+
op = [
|
|
1319
|
+
6,
|
|
1320
|
+
e
|
|
1321
|
+
];
|
|
1272
1322
|
y = 0;
|
|
1273
1323
|
} finally {
|
|
1274
1324
|
f = t = 0;
|
|
1275
1325
|
}
|
|
1276
1326
|
if (op[0] & 5) throw op[1];
|
|
1277
|
-
return {
|
|
1327
|
+
return {
|
|
1328
|
+
value: op[0] ? op[1] : void 0,
|
|
1329
|
+
done: true
|
|
1330
|
+
};
|
|
1278
1331
|
}
|
|
1332
|
+
__name(step, "step");
|
|
1279
1333
|
}
|
|
1334
|
+
__name(__generator, "__generator");
|
|
1280
1335
|
function __values(o) {
|
|
1281
1336
|
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
1282
1337
|
if (m) return m.call(o);
|
|
1283
1338
|
if (o && typeof o.length === "number") return {
|
|
1284
|
-
next: function() {
|
|
1339
|
+
next: /* @__PURE__ */ __name(function() {
|
|
1285
1340
|
if (o && i >= o.length) o = void 0;
|
|
1286
|
-
return {
|
|
1287
|
-
|
|
1341
|
+
return {
|
|
1342
|
+
value: o && o[i++],
|
|
1343
|
+
done: !o
|
|
1344
|
+
};
|
|
1345
|
+
}, "next")
|
|
1288
1346
|
};
|
|
1289
1347
|
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
1290
1348
|
}
|
|
1349
|
+
__name(__values, "__values");
|
|
1291
1350
|
function __read(o, n) {
|
|
1292
1351
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
1293
1352
|
if (!m) return o;
|
|
@@ -1295,7 +1354,9 @@ function __read(o, n) {
|
|
|
1295
1354
|
try {
|
|
1296
1355
|
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
1297
1356
|
} catch (error) {
|
|
1298
|
-
e = {
|
|
1357
|
+
e = {
|
|
1358
|
+
error
|
|
1359
|
+
};
|
|
1299
1360
|
} finally {
|
|
1300
1361
|
try {
|
|
1301
1362
|
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
@@ -1305,11 +1366,12 @@ function __read(o, n) {
|
|
|
1305
1366
|
}
|
|
1306
1367
|
return ar;
|
|
1307
1368
|
}
|
|
1369
|
+
__name(__read, "__read");
|
|
1308
1370
|
function __spread() {
|
|
1309
|
-
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
1310
|
-
ar = ar.concat(__read(arguments[i]));
|
|
1371
|
+
for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));
|
|
1311
1372
|
return ar;
|
|
1312
1373
|
}
|
|
1374
|
+
__name(__spread, "__spread");
|
|
1313
1375
|
|
|
1314
1376
|
// ../../node_modules/.pnpm/tsyringe@4.8.0/node_modules/tsyringe/dist/esm5/reflection-helpers.js
|
|
1315
1377
|
var INJECTION_TOKEN_METADATA_KEY = "injectionTokens";
|
|
@@ -1321,6 +1383,7 @@ function getParamInfo(target) {
|
|
|
1321
1383
|
});
|
|
1322
1384
|
return params;
|
|
1323
1385
|
}
|
|
1386
|
+
__name(getParamInfo, "getParamInfo");
|
|
1324
1387
|
function defineInjectionTokenMetadata(data, transform) {
|
|
1325
1388
|
return function(target, _propertyKey, parameterIndex) {
|
|
1326
1389
|
var descriptors = Reflect.getOwnMetadata(INJECTION_TOKEN_METADATA_KEY, target) || {};
|
|
@@ -1332,16 +1395,19 @@ function defineInjectionTokenMetadata(data, transform) {
|
|
|
1332
1395
|
Reflect.defineMetadata(INJECTION_TOKEN_METADATA_KEY, descriptors, target);
|
|
1333
1396
|
};
|
|
1334
1397
|
}
|
|
1398
|
+
__name(defineInjectionTokenMetadata, "defineInjectionTokenMetadata");
|
|
1335
1399
|
|
|
1336
1400
|
// ../../node_modules/.pnpm/tsyringe@4.8.0/node_modules/tsyringe/dist/esm5/providers/class-provider.js
|
|
1337
1401
|
function isClassProvider(provider) {
|
|
1338
1402
|
return !!provider.useClass;
|
|
1339
1403
|
}
|
|
1404
|
+
__name(isClassProvider, "isClassProvider");
|
|
1340
1405
|
|
|
1341
1406
|
// ../../node_modules/.pnpm/tsyringe@4.8.0/node_modules/tsyringe/dist/esm5/providers/factory-provider.js
|
|
1342
1407
|
function isFactoryProvider(provider) {
|
|
1343
1408
|
return !!provider.useFactory;
|
|
1344
1409
|
}
|
|
1410
|
+
__name(isFactoryProvider, "isFactoryProvider");
|
|
1345
1411
|
|
|
1346
1412
|
// ../../node_modules/.pnpm/tsyringe@4.8.0/node_modules/tsyringe/dist/esm5/lazy-helpers.js
|
|
1347
1413
|
var DelayedConstructor = function() {
|
|
@@ -1361,23 +1427,24 @@ var DelayedConstructor = function() {
|
|
|
1361
1427
|
"ownKeys"
|
|
1362
1428
|
];
|
|
1363
1429
|
}
|
|
1430
|
+
__name(DelayedConstructor2, "DelayedConstructor");
|
|
1364
1431
|
DelayedConstructor2.prototype.createProxy = function(createObject) {
|
|
1365
1432
|
var _this = this;
|
|
1366
1433
|
var target = {};
|
|
1367
1434
|
var init = false;
|
|
1368
1435
|
var value;
|
|
1369
|
-
var delayedObject = function() {
|
|
1436
|
+
var delayedObject = /* @__PURE__ */ __name(function() {
|
|
1370
1437
|
if (!init) {
|
|
1371
1438
|
value = createObject(_this.wrap());
|
|
1372
1439
|
init = true;
|
|
1373
1440
|
}
|
|
1374
1441
|
return value;
|
|
1375
|
-
};
|
|
1442
|
+
}, "delayedObject");
|
|
1376
1443
|
return new Proxy(target, this.createHandler(delayedObject));
|
|
1377
1444
|
};
|
|
1378
1445
|
DelayedConstructor2.prototype.createHandler = function(delayedObject) {
|
|
1379
1446
|
var handler = {};
|
|
1380
|
-
var install = function(name) {
|
|
1447
|
+
var install = /* @__PURE__ */ __name(function(name) {
|
|
1381
1448
|
handler[name] = function() {
|
|
1382
1449
|
var args = [];
|
|
1383
1450
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
@@ -1387,7 +1454,7 @@ var DelayedConstructor = function() {
|
|
|
1387
1454
|
var method = Reflect[name];
|
|
1388
1455
|
return method.apply(void 0, __spread(args));
|
|
1389
1456
|
};
|
|
1390
|
-
};
|
|
1457
|
+
}, "install");
|
|
1391
1458
|
this.reflectMethods.forEach(install);
|
|
1392
1459
|
return handler;
|
|
1393
1460
|
};
|
|
@@ -1398,36 +1465,44 @@ var DelayedConstructor = function() {
|
|
|
1398
1465
|
function isNormalToken(token) {
|
|
1399
1466
|
return typeof token === "string" || typeof token === "symbol";
|
|
1400
1467
|
}
|
|
1468
|
+
__name(isNormalToken, "isNormalToken");
|
|
1401
1469
|
function isTokenDescriptor(descriptor) {
|
|
1402
1470
|
return typeof descriptor === "object" && "token" in descriptor && "multiple" in descriptor;
|
|
1403
1471
|
}
|
|
1472
|
+
__name(isTokenDescriptor, "isTokenDescriptor");
|
|
1404
1473
|
function isTransformDescriptor(descriptor) {
|
|
1405
1474
|
return typeof descriptor === "object" && "token" in descriptor && "transform" in descriptor;
|
|
1406
1475
|
}
|
|
1476
|
+
__name(isTransformDescriptor, "isTransformDescriptor");
|
|
1407
1477
|
function isConstructorToken(token) {
|
|
1408
1478
|
return typeof token === "function" || token instanceof DelayedConstructor;
|
|
1409
1479
|
}
|
|
1480
|
+
__name(isConstructorToken, "isConstructorToken");
|
|
1410
1481
|
|
|
1411
1482
|
// ../../node_modules/.pnpm/tsyringe@4.8.0/node_modules/tsyringe/dist/esm5/providers/token-provider.js
|
|
1412
1483
|
function isTokenProvider(provider) {
|
|
1413
1484
|
return !!provider.useToken;
|
|
1414
1485
|
}
|
|
1486
|
+
__name(isTokenProvider, "isTokenProvider");
|
|
1415
1487
|
|
|
1416
1488
|
// ../../node_modules/.pnpm/tsyringe@4.8.0/node_modules/tsyringe/dist/esm5/providers/value-provider.js
|
|
1417
1489
|
function isValueProvider(provider) {
|
|
1418
1490
|
return provider.useValue != void 0;
|
|
1419
1491
|
}
|
|
1492
|
+
__name(isValueProvider, "isValueProvider");
|
|
1420
1493
|
|
|
1421
1494
|
// ../../node_modules/.pnpm/tsyringe@4.8.0/node_modules/tsyringe/dist/esm5/providers/provider.js
|
|
1422
1495
|
function isProvider(provider) {
|
|
1423
1496
|
return isClassProvider(provider) || isValueProvider(provider) || isTokenProvider(provider) || isFactoryProvider(provider);
|
|
1424
1497
|
}
|
|
1498
|
+
__name(isProvider, "isProvider");
|
|
1425
1499
|
|
|
1426
1500
|
// ../../node_modules/.pnpm/tsyringe@4.8.0/node_modules/tsyringe/dist/esm5/registry-base.js
|
|
1427
1501
|
var RegistryBase = function() {
|
|
1428
1502
|
function RegistryBase2() {
|
|
1429
1503
|
this._registryMap = /* @__PURE__ */ new Map();
|
|
1430
1504
|
}
|
|
1505
|
+
__name(RegistryBase2, "RegistryBase");
|
|
1431
1506
|
RegistryBase2.prototype.entries = function() {
|
|
1432
1507
|
return this._registryMap.entries();
|
|
1433
1508
|
};
|
|
@@ -1469,6 +1544,7 @@ var Registry = function(_super) {
|
|
|
1469
1544
|
function Registry2() {
|
|
1470
1545
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
1471
1546
|
}
|
|
1547
|
+
__name(Registry2, "Registry");
|
|
1472
1548
|
return Registry2;
|
|
1473
1549
|
}(registry_base_default);
|
|
1474
1550
|
var registry_default = Registry;
|
|
@@ -1478,6 +1554,7 @@ var ResolutionContext = /* @__PURE__ */ function() {
|
|
|
1478
1554
|
function ResolutionContext2() {
|
|
1479
1555
|
this.scopedResolutions = /* @__PURE__ */ new Map();
|
|
1480
1556
|
}
|
|
1557
|
+
__name(ResolutionContext2, "ResolutionContext");
|
|
1481
1558
|
return ResolutionContext2;
|
|
1482
1559
|
}();
|
|
1483
1560
|
var resolution_context_default = ResolutionContext;
|
|
@@ -1490,30 +1567,35 @@ function formatDependency(params, idx) {
|
|
|
1490
1567
|
var argName = params.split(",")[idx].trim();
|
|
1491
1568
|
return '"' + argName + '" at position #' + idx;
|
|
1492
1569
|
}
|
|
1570
|
+
__name(formatDependency, "formatDependency");
|
|
1493
1571
|
function composeErrorMessage(msg, e, indent) {
|
|
1494
1572
|
if (indent === void 0) {
|
|
1495
1573
|
indent = " ";
|
|
1496
1574
|
}
|
|
1497
|
-
return __spread([
|
|
1575
|
+
return __spread([
|
|
1576
|
+
msg
|
|
1577
|
+
], e.message.split("\n").map(function(l) {
|
|
1498
1578
|
return indent + l;
|
|
1499
1579
|
})).join("\n");
|
|
1500
1580
|
}
|
|
1581
|
+
__name(composeErrorMessage, "composeErrorMessage");
|
|
1501
1582
|
function formatErrorCtor(ctor, paramIdx, error) {
|
|
1502
1583
|
var _a = __read(ctor.toString().match(/constructor\(([\w, ]+)\)/) || [], 2), _b = _a[1], params = _b === void 0 ? null : _b;
|
|
1503
1584
|
var dep = formatDependency(params, paramIdx);
|
|
1504
1585
|
return composeErrorMessage("Cannot inject the dependency " + dep + ' of "' + ctor.name + '" constructor. Reason:', error);
|
|
1505
1586
|
}
|
|
1587
|
+
__name(formatErrorCtor, "formatErrorCtor");
|
|
1506
1588
|
|
|
1507
1589
|
// ../../node_modules/.pnpm/tsyringe@4.8.0/node_modules/tsyringe/dist/esm5/types/disposable.js
|
|
1508
1590
|
function isDisposable(value) {
|
|
1509
|
-
if (typeof value.dispose !== "function")
|
|
1510
|
-
return false;
|
|
1591
|
+
if (typeof value.dispose !== "function") return false;
|
|
1511
1592
|
var disposeFun = value.dispose;
|
|
1512
1593
|
if (disposeFun.length > 0) {
|
|
1513
1594
|
return false;
|
|
1514
1595
|
}
|
|
1515
1596
|
return true;
|
|
1516
1597
|
}
|
|
1598
|
+
__name(isDisposable, "isDisposable");
|
|
1517
1599
|
|
|
1518
1600
|
// ../../node_modules/.pnpm/tsyringe@4.8.0/node_modules/tsyringe/dist/esm5/interceptors.js
|
|
1519
1601
|
var PreResolutionInterceptors = function(_super) {
|
|
@@ -1521,6 +1603,7 @@ var PreResolutionInterceptors = function(_super) {
|
|
|
1521
1603
|
function PreResolutionInterceptors2() {
|
|
1522
1604
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
1523
1605
|
}
|
|
1606
|
+
__name(PreResolutionInterceptors2, "PreResolutionInterceptors");
|
|
1524
1607
|
return PreResolutionInterceptors2;
|
|
1525
1608
|
}(registry_base_default);
|
|
1526
1609
|
var PostResolutionInterceptors = function(_super) {
|
|
@@ -1528,6 +1611,7 @@ var PostResolutionInterceptors = function(_super) {
|
|
|
1528
1611
|
function PostResolutionInterceptors2() {
|
|
1529
1612
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
1530
1613
|
}
|
|
1614
|
+
__name(PostResolutionInterceptors2, "PostResolutionInterceptors");
|
|
1531
1615
|
return PostResolutionInterceptors2;
|
|
1532
1616
|
}(registry_base_default);
|
|
1533
1617
|
var Interceptors = /* @__PURE__ */ function() {
|
|
@@ -1535,6 +1619,7 @@ var Interceptors = /* @__PURE__ */ function() {
|
|
|
1535
1619
|
this.preResolution = new PreResolutionInterceptors();
|
|
1536
1620
|
this.postResolution = new PostResolutionInterceptors();
|
|
1537
1621
|
}
|
|
1622
|
+
__name(Interceptors2, "Interceptors");
|
|
1538
1623
|
return Interceptors2;
|
|
1539
1624
|
}();
|
|
1540
1625
|
var interceptors_default = Interceptors;
|
|
@@ -1549,24 +1634,33 @@ var InternalDependencyContainer = function() {
|
|
|
1549
1634
|
this.disposed = false;
|
|
1550
1635
|
this.disposables = /* @__PURE__ */ new Set();
|
|
1551
1636
|
}
|
|
1637
|
+
__name(InternalDependencyContainer2, "InternalDependencyContainer");
|
|
1552
1638
|
InternalDependencyContainer2.prototype.register = function(token, providerOrConstructor, options) {
|
|
1553
1639
|
if (options === void 0) {
|
|
1554
|
-
options = {
|
|
1640
|
+
options = {
|
|
1641
|
+
lifecycle: lifecycle_default.Transient
|
|
1642
|
+
};
|
|
1555
1643
|
}
|
|
1556
1644
|
this.ensureNotDisposed();
|
|
1557
1645
|
var provider;
|
|
1558
1646
|
if (!isProvider(providerOrConstructor)) {
|
|
1559
|
-
provider = {
|
|
1647
|
+
provider = {
|
|
1648
|
+
useClass: providerOrConstructor
|
|
1649
|
+
};
|
|
1560
1650
|
} else {
|
|
1561
1651
|
provider = providerOrConstructor;
|
|
1562
1652
|
}
|
|
1563
1653
|
if (isTokenProvider(provider)) {
|
|
1564
|
-
var path = [
|
|
1654
|
+
var path = [
|
|
1655
|
+
token
|
|
1656
|
+
];
|
|
1565
1657
|
var tokenProvider = provider;
|
|
1566
1658
|
while (tokenProvider != null) {
|
|
1567
1659
|
var currentToken = tokenProvider.useToken;
|
|
1568
1660
|
if (path.includes(currentToken)) {
|
|
1569
|
-
throw new Error("Token registration cycle detected! " + __spread(path, [
|
|
1661
|
+
throw new Error("Token registration cycle detected! " + __spread(path, [
|
|
1662
|
+
currentToken
|
|
1663
|
+
]).join(" -> "));
|
|
1570
1664
|
}
|
|
1571
1665
|
path.push(currentToken);
|
|
1572
1666
|
var registration = this._registry.get(currentToken);
|
|
@@ -1582,7 +1676,10 @@ var InternalDependencyContainer = function() {
|
|
|
1582
1676
|
throw new Error('Cannot use lifecycle "' + lifecycle_default[options.lifecycle] + '" with ValueProviders or FactoryProviders');
|
|
1583
1677
|
}
|
|
1584
1678
|
}
|
|
1585
|
-
this._registry.set(token, {
|
|
1679
|
+
this._registry.set(token, {
|
|
1680
|
+
provider,
|
|
1681
|
+
options
|
|
1682
|
+
});
|
|
1586
1683
|
return this;
|
|
1587
1684
|
};
|
|
1588
1685
|
InternalDependencyContainer2.prototype.registerType = function(from, to) {
|
|
@@ -1608,11 +1705,15 @@ var InternalDependencyContainer = function() {
|
|
|
1608
1705
|
if (isNormalToken(to)) {
|
|
1609
1706
|
return this.register(from, {
|
|
1610
1707
|
useToken: to
|
|
1611
|
-
}, {
|
|
1708
|
+
}, {
|
|
1709
|
+
lifecycle: lifecycle_default.Singleton
|
|
1710
|
+
});
|
|
1612
1711
|
} else if (to) {
|
|
1613
1712
|
return this.register(from, {
|
|
1614
1713
|
useClass: to
|
|
1615
|
-
}, {
|
|
1714
|
+
}, {
|
|
1715
|
+
lifecycle: lifecycle_default.Singleton
|
|
1716
|
+
});
|
|
1616
1717
|
}
|
|
1617
1718
|
throw new Error('Cannot register a type name as a singleton without a "to" token');
|
|
1618
1719
|
}
|
|
@@ -1622,7 +1723,9 @@ var InternalDependencyContainer = function() {
|
|
|
1622
1723
|
}
|
|
1623
1724
|
return this.register(from, {
|
|
1624
1725
|
useClass
|
|
1625
|
-
}, {
|
|
1726
|
+
}, {
|
|
1727
|
+
lifecycle: lifecycle_default.Singleton
|
|
1728
|
+
});
|
|
1626
1729
|
};
|
|
1627
1730
|
InternalDependencyContainer2.prototype.resolve = function(token, context) {
|
|
1628
1731
|
if (context === void 0) {
|
|
@@ -1659,7 +1762,9 @@ var InternalDependencyContainer = function() {
|
|
|
1659
1762
|
interceptor.callback(token, resolutionType);
|
|
1660
1763
|
}
|
|
1661
1764
|
} catch (e_1_1) {
|
|
1662
|
-
e_1 = {
|
|
1765
|
+
e_1 = {
|
|
1766
|
+
error: e_1_1
|
|
1767
|
+
};
|
|
1663
1768
|
} finally {
|
|
1664
1769
|
try {
|
|
1665
1770
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
@@ -1683,7 +1788,9 @@ var InternalDependencyContainer = function() {
|
|
|
1683
1788
|
interceptor.callback(token, result, resolutionType);
|
|
1684
1789
|
}
|
|
1685
1790
|
} catch (e_2_1) {
|
|
1686
|
-
e_2 = {
|
|
1791
|
+
e_2 = {
|
|
1792
|
+
error: e_2_1
|
|
1793
|
+
};
|
|
1687
1794
|
} finally {
|
|
1688
1795
|
try {
|
|
1689
1796
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
@@ -1737,7 +1844,9 @@ var InternalDependencyContainer = function() {
|
|
|
1737
1844
|
this.executePostResolutionInterceptor(token, result_1, "All");
|
|
1738
1845
|
return result_1;
|
|
1739
1846
|
}
|
|
1740
|
-
var result = [
|
|
1847
|
+
var result = [
|
|
1848
|
+
this.construct(token, context)
|
|
1849
|
+
];
|
|
1741
1850
|
this.executePostResolutionInterceptor(token, result, "All");
|
|
1742
1851
|
return result;
|
|
1743
1852
|
};
|
|
@@ -1768,7 +1877,9 @@ var InternalDependencyContainer = function() {
|
|
|
1768
1877
|
}));
|
|
1769
1878
|
}
|
|
1770
1879
|
} catch (e_3_1) {
|
|
1771
|
-
e_3 = {
|
|
1880
|
+
e_3 = {
|
|
1881
|
+
error: e_3_1
|
|
1882
|
+
};
|
|
1772
1883
|
} finally {
|
|
1773
1884
|
try {
|
|
1774
1885
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
@@ -1800,7 +1911,9 @@ var InternalDependencyContainer = function() {
|
|
|
1800
1911
|
}
|
|
1801
1912
|
}
|
|
1802
1913
|
} catch (e_4_1) {
|
|
1803
|
-
e_4 = {
|
|
1914
|
+
e_4 = {
|
|
1915
|
+
error: e_4_1
|
|
1916
|
+
};
|
|
1804
1917
|
} finally {
|
|
1805
1918
|
try {
|
|
1806
1919
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
@@ -1812,7 +1925,9 @@ var InternalDependencyContainer = function() {
|
|
|
1812
1925
|
};
|
|
1813
1926
|
InternalDependencyContainer2.prototype.beforeResolution = function(token, callback, options) {
|
|
1814
1927
|
if (options === void 0) {
|
|
1815
|
-
options = {
|
|
1928
|
+
options = {
|
|
1929
|
+
frequency: "Always"
|
|
1930
|
+
};
|
|
1816
1931
|
}
|
|
1817
1932
|
this.interceptors.preResolution.set(token, {
|
|
1818
1933
|
callback,
|
|
@@ -1821,7 +1936,9 @@ var InternalDependencyContainer = function() {
|
|
|
1821
1936
|
};
|
|
1822
1937
|
InternalDependencyContainer2.prototype.afterResolution = function(token, callback, options) {
|
|
1823
1938
|
if (options === void 0) {
|
|
1824
|
-
options = {
|
|
1939
|
+
options = {
|
|
1940
|
+
frequency: "Always"
|
|
1941
|
+
};
|
|
1825
1942
|
}
|
|
1826
1943
|
this.interceptors.postResolution.set(token, {
|
|
1827
1944
|
callback,
|
|
@@ -1842,10 +1959,15 @@ var InternalDependencyContainer = function() {
|
|
|
1842
1959
|
promises.push(maybePromise);
|
|
1843
1960
|
}
|
|
1844
1961
|
});
|
|
1845
|
-
return [
|
|
1962
|
+
return [
|
|
1963
|
+
4,
|
|
1964
|
+
Promise.all(promises)
|
|
1965
|
+
];
|
|
1846
1966
|
case 1:
|
|
1847
1967
|
_a.sent();
|
|
1848
|
-
return [
|
|
1968
|
+
return [
|
|
1969
|
+
2
|
|
1970
|
+
];
|
|
1849
1971
|
}
|
|
1850
1972
|
});
|
|
1851
1973
|
});
|
|
@@ -1885,7 +2007,9 @@ var InternalDependencyContainer = function() {
|
|
|
1885
2007
|
}
|
|
1886
2008
|
}
|
|
1887
2009
|
var params = paramInfo.map(_this.resolveParams(context, ctor));
|
|
1888
|
-
return new (ctor.bind.apply(ctor, __spread([
|
|
2010
|
+
return new (ctor.bind.apply(ctor, __spread([
|
|
2011
|
+
void 0
|
|
2012
|
+
], params)))();
|
|
1889
2013
|
}();
|
|
1890
2014
|
if (isDisposable(instance2)) {
|
|
1891
2015
|
this.disposables.add(instance2);
|
|
@@ -1899,12 +2023,18 @@ var InternalDependencyContainer = function() {
|
|
|
1899
2023
|
try {
|
|
1900
2024
|
if (isTokenDescriptor(param)) {
|
|
1901
2025
|
if (isTransformDescriptor(param)) {
|
|
1902
|
-
return param.multiple ? (_a = _this.resolve(param.transform)).transform.apply(_a, __spread([
|
|
2026
|
+
return param.multiple ? (_a = _this.resolve(param.transform)).transform.apply(_a, __spread([
|
|
2027
|
+
_this.resolveAll(param.token)
|
|
2028
|
+
], param.transformArgs)) : (_b = _this.resolve(param.transform)).transform.apply(_b, __spread([
|
|
2029
|
+
_this.resolve(param.token, context)
|
|
2030
|
+
], param.transformArgs));
|
|
1903
2031
|
} else {
|
|
1904
2032
|
return param.multiple ? _this.resolveAll(param.token) : _this.resolve(param.token, context);
|
|
1905
2033
|
}
|
|
1906
2034
|
} else if (isTransformDescriptor(param)) {
|
|
1907
|
-
return (_c = _this.resolve(param.transform, context)).transform.apply(_c, __spread([
|
|
2035
|
+
return (_c = _this.resolve(param.transform, context)).transform.apply(_c, __spread([
|
|
2036
|
+
_this.resolve(param.token, context)
|
|
2037
|
+
], param.transformArgs));
|
|
1908
2038
|
}
|
|
1909
2039
|
return _this.resolve(param, context);
|
|
1910
2040
|
} catch (e) {
|
|
@@ -1925,6 +2055,7 @@ var instance = new InternalDependencyContainer();
|
|
|
1925
2055
|
function inject(token) {
|
|
1926
2056
|
return defineInjectionTokenMetadata(token);
|
|
1927
2057
|
}
|
|
2058
|
+
__name(inject, "inject");
|
|
1928
2059
|
var inject_default = inject;
|
|
1929
2060
|
|
|
1930
2061
|
// ../../node_modules/.pnpm/tsyringe@4.8.0/node_modules/tsyringe/dist/esm5/decorators/injectable.js
|
|
@@ -1933,6 +2064,7 @@ function injectable() {
|
|
|
1933
2064
|
typeInfo.set(target, getParamInfo(target));
|
|
1934
2065
|
};
|
|
1935
2066
|
}
|
|
2067
|
+
__name(injectable, "injectable");
|
|
1936
2068
|
var injectable_default = injectable;
|
|
1937
2069
|
|
|
1938
2070
|
// ../../node_modules/.pnpm/tsyringe@4.8.0/node_modules/tsyringe/dist/esm5/decorators/singleton.js
|
|
@@ -1942,6 +2074,7 @@ function singleton() {
|
|
|
1942
2074
|
instance.registerSingleton(target);
|
|
1943
2075
|
};
|
|
1944
2076
|
}
|
|
2077
|
+
__name(singleton, "singleton");
|
|
1945
2078
|
var singleton_default = singleton;
|
|
1946
2079
|
|
|
1947
2080
|
// ../../node_modules/.pnpm/tsyringe@4.8.0/node_modules/tsyringe/dist/esm5/decorators/scoped.js
|
|
@@ -1953,6 +2086,7 @@ function scoped(lifecycle, token) {
|
|
|
1953
2086
|
});
|
|
1954
2087
|
};
|
|
1955
2088
|
}
|
|
2089
|
+
__name(scoped, "scoped");
|
|
1956
2090
|
|
|
1957
2091
|
// ../../node_modules/.pnpm/tsyringe@4.8.0/node_modules/tsyringe/dist/esm5/index.js
|
|
1958
2092
|
if (typeof Reflect === "undefined" || !Reflect.getMetadata) {
|
|
@@ -1964,17 +2098,30 @@ var import_rxjs = require("rxjs");
|
|
|
1964
2098
|
|
|
1965
2099
|
// src/core/app/app.component.ts
|
|
1966
2100
|
var import_utils = require("@quick-threejs/utils");
|
|
2101
|
+
function _ts_decorate(decorators, target, key, desc) {
|
|
2102
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2103
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2104
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
2105
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2106
|
+
}
|
|
2107
|
+
__name(_ts_decorate, "_ts_decorate");
|
|
1967
2108
|
var AppComponent = class {
|
|
2109
|
+
static {
|
|
2110
|
+
__name(this, "AppComponent");
|
|
2111
|
+
}
|
|
1968
2112
|
proxyReceiver = new import_utils.ProxyReceiver();
|
|
1969
2113
|
initialized = false;
|
|
1970
2114
|
canvas;
|
|
1971
2115
|
};
|
|
1972
|
-
AppComponent =
|
|
2116
|
+
AppComponent = _ts_decorate([
|
|
1973
2117
|
singleton_default()
|
|
1974
2118
|
], AppComponent);
|
|
1975
2119
|
|
|
1976
2120
|
// src/common/models/proxy-event-subjects.models.ts
|
|
1977
2121
|
var ProxyEventSubjectsModel = class {
|
|
2122
|
+
static {
|
|
2123
|
+
__name(this, "ProxyEventSubjectsModel");
|
|
2124
|
+
}
|
|
1978
2125
|
contextmenu$$;
|
|
1979
2126
|
resize$$;
|
|
1980
2127
|
mousedown$$;
|
|
@@ -1993,6 +2140,9 @@ var ProxyEventSubjectsModel = class {
|
|
|
1993
2140
|
|
|
1994
2141
|
// src/common/models/proxy-event-observables.model.ts
|
|
1995
2142
|
var ProxyEventObservablesModel = class extends ProxyEventSubjectsModel {
|
|
2143
|
+
static {
|
|
2144
|
+
__name(this, "ProxyEventObservablesModel");
|
|
2145
|
+
}
|
|
1996
2146
|
contextmenu$;
|
|
1997
2147
|
resize$;
|
|
1998
2148
|
mousedown$;
|
|
@@ -2011,6 +2161,9 @@ var ProxyEventObservablesModel = class extends ProxyEventSubjectsModel {
|
|
|
2011
2161
|
|
|
2012
2162
|
// src/common/models/proxy-event-handler.model.ts
|
|
2013
2163
|
var ProxyEventHandlersModel = class extends ProxyEventObservablesModel {
|
|
2164
|
+
static {
|
|
2165
|
+
__name(this, "ProxyEventHandlersModel");
|
|
2166
|
+
}
|
|
2014
2167
|
contextmenu;
|
|
2015
2168
|
resize;
|
|
2016
2169
|
mousedown;
|
|
@@ -2052,10 +2205,32 @@ var PROXY_EVENT_LISTENERS = [
|
|
|
2052
2205
|
];
|
|
2053
2206
|
|
|
2054
2207
|
// src/core/app/app.controller.ts
|
|
2208
|
+
function _ts_decorate2(decorators, target, key, desc) {
|
|
2209
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2210
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2211
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
2212
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2213
|
+
}
|
|
2214
|
+
__name(_ts_decorate2, "_ts_decorate");
|
|
2215
|
+
function _ts_metadata(k, v) {
|
|
2216
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
2217
|
+
}
|
|
2218
|
+
__name(_ts_metadata, "_ts_metadata");
|
|
2219
|
+
function _ts_param(paramIndex, decorator) {
|
|
2220
|
+
return function(target, key) {
|
|
2221
|
+
decorator(target, key, paramIndex);
|
|
2222
|
+
};
|
|
2223
|
+
}
|
|
2224
|
+
__name(_ts_param, "_ts_param");
|
|
2055
2225
|
var AppController = class extends ProxyEventHandlersModel {
|
|
2226
|
+
static {
|
|
2227
|
+
__name(this, "AppController");
|
|
2228
|
+
}
|
|
2229
|
+
component;
|
|
2230
|
+
lifecycle$$;
|
|
2231
|
+
lifecycle$;
|
|
2056
2232
|
constructor(component) {
|
|
2057
|
-
super();
|
|
2058
|
-
this.component = component;
|
|
2233
|
+
super(), this.component = component, this.lifecycle$$ = new import_rxjs.Subject(), this.lifecycle$ = this.lifecycle$$.pipe();
|
|
2059
2234
|
for (const eventType of PROXY_EVENT_LISTENERS) {
|
|
2060
2235
|
this[`${eventType}$$`] = new import_rxjs.Subject();
|
|
2061
2236
|
this[`${eventType}$`] = this[`${eventType}$$`].pipe();
|
|
@@ -2068,24 +2243,36 @@ var AppController = class extends ProxyEventHandlersModel {
|
|
|
2068
2243
|
};
|
|
2069
2244
|
}
|
|
2070
2245
|
}
|
|
2071
|
-
lifecycle$$ = new import_rxjs.Subject();
|
|
2072
|
-
lifecycle$ = this.lifecycle$$.pipe();
|
|
2073
2246
|
};
|
|
2074
|
-
AppController =
|
|
2247
|
+
AppController = _ts_decorate2([
|
|
2075
2248
|
singleton_default(),
|
|
2076
|
-
|
|
2249
|
+
_ts_param(0, inject_default(AppComponent)),
|
|
2250
|
+
_ts_metadata("design:type", Function),
|
|
2251
|
+
_ts_metadata("design:paramtypes", [
|
|
2252
|
+
typeof AppComponent === "undefined" ? Object : AppComponent
|
|
2253
|
+
])
|
|
2077
2254
|
], AppController);
|
|
2078
2255
|
|
|
2079
2256
|
// src/core/app/timer/timer.component.ts
|
|
2080
2257
|
var import_three = require("three");
|
|
2258
|
+
function _ts_decorate3(decorators, target, key, desc) {
|
|
2259
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2260
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2261
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
2262
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2263
|
+
}
|
|
2264
|
+
__name(_ts_decorate3, "_ts_decorate");
|
|
2081
2265
|
var TimerComponent = class {
|
|
2266
|
+
static {
|
|
2267
|
+
__name(this, "TimerComponent");
|
|
2268
|
+
}
|
|
2082
2269
|
clock = new import_three.Clock();
|
|
2083
2270
|
frame = 1e3 / 60;
|
|
2084
2271
|
delta = 0;
|
|
2085
2272
|
deltaRatio = 0;
|
|
2086
2273
|
enabled = false;
|
|
2087
2274
|
};
|
|
2088
|
-
TimerComponent =
|
|
2275
|
+
TimerComponent = _ts_decorate3([
|
|
2089
2276
|
singleton_default()
|
|
2090
2277
|
], TimerComponent);
|
|
2091
2278
|
|
|
@@ -2094,11 +2281,21 @@ var import_three5 = require("three");
|
|
|
2094
2281
|
|
|
2095
2282
|
// src/core/app/world/world.component.ts
|
|
2096
2283
|
var import_three2 = require("three");
|
|
2284
|
+
function _ts_decorate4(decorators, target, key, desc) {
|
|
2285
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2286
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2287
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
2288
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2289
|
+
}
|
|
2290
|
+
__name(_ts_decorate4, "_ts_decorate");
|
|
2097
2291
|
var WorldComponent = class {
|
|
2292
|
+
static {
|
|
2293
|
+
__name(this, "WorldComponent");
|
|
2294
|
+
}
|
|
2098
2295
|
scene = new import_three2.Scene();
|
|
2099
2296
|
enabled = true;
|
|
2100
2297
|
};
|
|
2101
|
-
WorldComponent =
|
|
2298
|
+
WorldComponent = _ts_decorate4([
|
|
2102
2299
|
singleton_default()
|
|
2103
2300
|
], WorldComponent);
|
|
2104
2301
|
|
|
@@ -2106,7 +2303,17 @@ WorldComponent = __decorateClass([
|
|
|
2106
2303
|
var import_three3 = require("three");
|
|
2107
2304
|
|
|
2108
2305
|
// src/core/app/sizes/sizes.component.ts
|
|
2306
|
+
function _ts_decorate5(decorators, target, key, desc) {
|
|
2307
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2308
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2309
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
2310
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2311
|
+
}
|
|
2312
|
+
__name(_ts_decorate5, "_ts_decorate");
|
|
2109
2313
|
var SizesComponent = class {
|
|
2314
|
+
static {
|
|
2315
|
+
__name(this, "SizesComponent");
|
|
2316
|
+
}
|
|
2110
2317
|
width = 0;
|
|
2111
2318
|
height = 0;
|
|
2112
2319
|
aspect = 0;
|
|
@@ -2120,30 +2327,50 @@ var SizesComponent = class {
|
|
|
2120
2327
|
this.enabled = enabled === void 0 ? true : !!enabled;
|
|
2121
2328
|
}
|
|
2122
2329
|
};
|
|
2123
|
-
SizesComponent =
|
|
2330
|
+
SizesComponent = _ts_decorate5([
|
|
2124
2331
|
singleton_default()
|
|
2125
2332
|
], SizesComponent);
|
|
2126
2333
|
|
|
2127
2334
|
// src/common/enums/camera.enum.ts
|
|
2128
|
-
var DefaultCameraType = /* @__PURE__ */ (
|
|
2335
|
+
var DefaultCameraType = /* @__PURE__ */ function(DefaultCameraType2) {
|
|
2129
2336
|
DefaultCameraType2[DefaultCameraType2["PERSPECTIVE"] = 0] = "PERSPECTIVE";
|
|
2130
2337
|
DefaultCameraType2[DefaultCameraType2["ORTHOGRAPHIC"] = 1] = "ORTHOGRAPHIC";
|
|
2131
2338
|
return DefaultCameraType2;
|
|
2132
|
-
}
|
|
2339
|
+
}({});
|
|
2133
2340
|
|
|
2134
2341
|
// src/core/app/camera/camera.component.ts
|
|
2342
|
+
function _ts_decorate6(decorators, target, key, desc) {
|
|
2343
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2344
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2345
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
2346
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2347
|
+
}
|
|
2348
|
+
__name(_ts_decorate6, "_ts_decorate");
|
|
2349
|
+
function _ts_metadata2(k, v) {
|
|
2350
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
2351
|
+
}
|
|
2352
|
+
__name(_ts_metadata2, "_ts_metadata");
|
|
2353
|
+
function _ts_param2(paramIndex, decorator) {
|
|
2354
|
+
return function(target, key) {
|
|
2355
|
+
decorator(target, key, paramIndex);
|
|
2356
|
+
};
|
|
2357
|
+
}
|
|
2358
|
+
__name(_ts_param2, "_ts_param");
|
|
2135
2359
|
var CameraComponent = class {
|
|
2136
|
-
|
|
2137
|
-
this
|
|
2360
|
+
static {
|
|
2361
|
+
__name(this, "CameraComponent");
|
|
2138
2362
|
}
|
|
2363
|
+
sizesComponent;
|
|
2139
2364
|
instance;
|
|
2140
2365
|
miniCamera;
|
|
2141
|
-
enabled
|
|
2366
|
+
enabled;
|
|
2367
|
+
constructor(sizesComponent) {
|
|
2368
|
+
this.sizesComponent = sizesComponent;
|
|
2369
|
+
this.enabled = true;
|
|
2370
|
+
}
|
|
2142
2371
|
set aspectRatio(ratio) {
|
|
2143
|
-
if (this.instance instanceof import_three3.PerspectiveCamera)
|
|
2144
|
-
|
|
2145
|
-
if (this.instance instanceof import_three3.PerspectiveCamera || this.instance instanceof import_three3.OrthographicCamera)
|
|
2146
|
-
this.instance?.updateProjectionMatrix();
|
|
2372
|
+
if (this.instance instanceof import_three3.PerspectiveCamera) this.instance.aspect = ratio;
|
|
2373
|
+
if (this.instance instanceof import_three3.PerspectiveCamera || this.instance instanceof import_three3.OrthographicCamera) this.instance?.updateProjectionMatrix();
|
|
2147
2374
|
}
|
|
2148
2375
|
set quaternion(quaternion) {
|
|
2149
2376
|
this.instance?.quaternion.copy(quaternion);
|
|
@@ -2156,42 +2383,24 @@ var CameraComponent = class {
|
|
|
2156
2383
|
}
|
|
2157
2384
|
initDefaultCamera(cameraType) {
|
|
2158
2385
|
this.removeCamera();
|
|
2159
|
-
if (cameraType ===
|
|
2160
|
-
this.instance = new import_three3.PerspectiveCamera(
|
|
2161
|
-
70,
|
|
2162
|
-
this.sizesComponent.width / this.sizesComponent.height,
|
|
2163
|
-
1e-4,
|
|
2164
|
-
100
|
|
2165
|
-
);
|
|
2386
|
+
if (cameraType === DefaultCameraType.PERSPECTIVE || cameraType === void 0) {
|
|
2387
|
+
this.instance = new import_three3.PerspectiveCamera(70, this.sizesComponent.width / this.sizesComponent.height, 1e-4, 100);
|
|
2166
2388
|
this.instance.position.z = 8;
|
|
2167
2389
|
return;
|
|
2168
2390
|
}
|
|
2169
|
-
if (cameraType ===
|
|
2170
|
-
this.instance = new import_three3.OrthographicCamera(
|
|
2171
|
-
-this.sizesComponent.aspect * this.sizesComponent.frustrum / 2,
|
|
2172
|
-
this.sizesComponent.aspect * this.sizesComponent.frustrum / 2,
|
|
2173
|
-
this.sizesComponent.frustrum / 2,
|
|
2174
|
-
-this.sizesComponent.frustrum / 2,
|
|
2175
|
-
-50,
|
|
2176
|
-
50
|
|
2177
|
-
);
|
|
2391
|
+
if (cameraType === DefaultCameraType.ORTHOGRAPHIC) {
|
|
2392
|
+
this.instance = new import_three3.OrthographicCamera(-this.sizesComponent.aspect * this.sizesComponent.frustrum / 2, this.sizesComponent.aspect * this.sizesComponent.frustrum / 2, this.sizesComponent.frustrum / 2, -this.sizesComponent.frustrum / 2, -50, 50);
|
|
2178
2393
|
}
|
|
2179
2394
|
}
|
|
2180
2395
|
setMiniCamera() {
|
|
2181
2396
|
this.removeMiniCamera();
|
|
2182
|
-
this.miniCamera = new import_three3.PerspectiveCamera(
|
|
2183
|
-
75,
|
|
2184
|
-
this.sizesComponent.width / this.sizesComponent.height,
|
|
2185
|
-
0.1,
|
|
2186
|
-
500
|
|
2187
|
-
);
|
|
2397
|
+
this.miniCamera = new import_three3.PerspectiveCamera(75, this.sizesComponent.width / this.sizesComponent.height, 0.1, 500);
|
|
2188
2398
|
this.miniCamera.position.z = 10;
|
|
2189
2399
|
this.miniCamera.position.x = -5;
|
|
2190
2400
|
}
|
|
2191
2401
|
removeCamera() {
|
|
2192
2402
|
if (!(this.instance instanceof import_three3.Camera)) return;
|
|
2193
|
-
if (this.instance instanceof import_three3.PerspectiveCamera || this.instance instanceof import_three3.OrthographicCamera)
|
|
2194
|
-
this.instance.clearViewOffset();
|
|
2403
|
+
if (this.instance instanceof import_three3.PerspectiveCamera || this.instance instanceof import_three3.OrthographicCamera) this.instance.clearViewOffset();
|
|
2195
2404
|
this.instance.clear();
|
|
2196
2405
|
this.instance = void 0;
|
|
2197
2406
|
}
|
|
@@ -2202,38 +2411,62 @@ var CameraComponent = class {
|
|
|
2202
2411
|
this.miniCamera = void 0;
|
|
2203
2412
|
}
|
|
2204
2413
|
};
|
|
2205
|
-
CameraComponent =
|
|
2414
|
+
CameraComponent = _ts_decorate6([
|
|
2206
2415
|
singleton_default(),
|
|
2207
|
-
|
|
2416
|
+
_ts_param2(0, inject_default(SizesComponent)),
|
|
2417
|
+
_ts_metadata2("design:type", Function),
|
|
2418
|
+
_ts_metadata2("design:paramtypes", [
|
|
2419
|
+
typeof SizesComponent === "undefined" ? Object : SizesComponent
|
|
2420
|
+
])
|
|
2208
2421
|
], CameraComponent);
|
|
2209
2422
|
|
|
2210
2423
|
// src/core/app/debug/debug.component.ts
|
|
2211
2424
|
var import_three4 = require("three");
|
|
2212
2425
|
var import_Addons = require("three/examples/jsm/Addons");
|
|
2426
|
+
function _ts_decorate7(decorators, target, key, desc) {
|
|
2427
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2428
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2429
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
2430
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2431
|
+
}
|
|
2432
|
+
__name(_ts_decorate7, "_ts_decorate");
|
|
2433
|
+
function _ts_metadata3(k, v) {
|
|
2434
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
2435
|
+
}
|
|
2436
|
+
__name(_ts_metadata3, "_ts_metadata");
|
|
2437
|
+
function _ts_param3(paramIndex, decorator) {
|
|
2438
|
+
return function(target, key) {
|
|
2439
|
+
decorator(target, key, paramIndex);
|
|
2440
|
+
};
|
|
2441
|
+
}
|
|
2442
|
+
__name(_ts_param3, "_ts_param");
|
|
2213
2443
|
var DebugComponent = class {
|
|
2214
|
-
|
|
2215
|
-
this
|
|
2216
|
-
this.cameraComponent = cameraComponent;
|
|
2217
|
-
this.worldComponent = worldComponent;
|
|
2444
|
+
static {
|
|
2445
|
+
__name(this, "DebugComponent");
|
|
2218
2446
|
}
|
|
2219
|
-
|
|
2447
|
+
appComponent;
|
|
2448
|
+
cameraComponent;
|
|
2449
|
+
worldComponent;
|
|
2450
|
+
enabled;
|
|
2220
2451
|
cameraControls;
|
|
2221
2452
|
miniCameraControls;
|
|
2222
2453
|
cameraHelper;
|
|
2223
2454
|
axesHelper;
|
|
2224
2455
|
gridHelper;
|
|
2456
|
+
constructor(appComponent, cameraComponent, worldComponent) {
|
|
2457
|
+
this.appComponent = appComponent;
|
|
2458
|
+
this.cameraComponent = cameraComponent;
|
|
2459
|
+
this.worldComponent = worldComponent;
|
|
2460
|
+
this.enabled = true;
|
|
2461
|
+
}
|
|
2225
2462
|
_setCameraOrbitControl() {
|
|
2226
2463
|
if (this.cameraControls) {
|
|
2227
2464
|
this.cameraControls?.dispose();
|
|
2228
2465
|
this.cameraControls = void 0;
|
|
2229
2466
|
}
|
|
2230
|
-
if (!this.enabled || !(this.cameraComponent.instance instanceof import_three4.Camera))
|
|
2231
|
-
return;
|
|
2467
|
+
if (!this.enabled || !(this.cameraComponent.instance instanceof import_three4.Camera)) return;
|
|
2232
2468
|
if (this.cameraComponent.instance instanceof import_three4.Camera) {
|
|
2233
|
-
this.cameraControls = new import_Addons.OrbitControls(
|
|
2234
|
-
this.cameraComponent.instance,
|
|
2235
|
-
this.appComponent.proxyReceiver
|
|
2236
|
-
);
|
|
2469
|
+
this.cameraControls = new import_Addons.OrbitControls(this.cameraComponent.instance, this.appComponent.proxyReceiver);
|
|
2237
2470
|
if (this.cameraControls) this.cameraControls.enableDamping = true;
|
|
2238
2471
|
}
|
|
2239
2472
|
}
|
|
@@ -2244,10 +2477,7 @@ var DebugComponent = class {
|
|
|
2244
2477
|
}
|
|
2245
2478
|
if (!this.enabled) return;
|
|
2246
2479
|
if (this.cameraComponent.miniCamera) {
|
|
2247
|
-
this.miniCameraControls = new import_Addons.OrbitControls(
|
|
2248
|
-
this.cameraComponent.miniCamera,
|
|
2249
|
-
this.appComponent.proxyReceiver
|
|
2250
|
-
);
|
|
2480
|
+
this.miniCameraControls = new import_Addons.OrbitControls(this.cameraComponent.miniCamera, this.appComponent.proxyReceiver);
|
|
2251
2481
|
this.miniCameraControls.enableDamping = true;
|
|
2252
2482
|
}
|
|
2253
2483
|
}
|
|
@@ -2274,10 +2504,8 @@ var DebugComponent = class {
|
|
|
2274
2504
|
this._setCameraOrbitControl();
|
|
2275
2505
|
this._setMiniCameraOrbitControls();
|
|
2276
2506
|
this._setCameraHelper();
|
|
2277
|
-
if (typeof props?.axesSizes === "number")
|
|
2278
|
-
|
|
2279
|
-
if (typeof props?.gridSizes === "number")
|
|
2280
|
-
this._setGridHelper(props.gridSizes);
|
|
2507
|
+
if (typeof props?.axesSizes === "number") this._setAxesHelper(props.axesSizes);
|
|
2508
|
+
if (typeof props?.gridSizes === "number") this._setGridHelper(props.gridSizes);
|
|
2281
2509
|
}
|
|
2282
2510
|
update() {
|
|
2283
2511
|
if (!this.enabled) return;
|
|
@@ -2299,23 +2527,55 @@ var DebugComponent = class {
|
|
|
2299
2527
|
}
|
|
2300
2528
|
}
|
|
2301
2529
|
};
|
|
2302
|
-
DebugComponent =
|
|
2530
|
+
DebugComponent = _ts_decorate7([
|
|
2303
2531
|
singleton_default(),
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2532
|
+
_ts_param3(0, inject_default(AppComponent)),
|
|
2533
|
+
_ts_param3(1, inject_default(CameraComponent)),
|
|
2534
|
+
_ts_param3(2, inject_default(WorldComponent)),
|
|
2535
|
+
_ts_metadata3("design:type", Function),
|
|
2536
|
+
_ts_metadata3("design:paramtypes", [
|
|
2537
|
+
typeof AppComponent === "undefined" ? Object : AppComponent,
|
|
2538
|
+
typeof CameraComponent === "undefined" ? Object : CameraComponent,
|
|
2539
|
+
typeof WorldComponent === "undefined" ? Object : WorldComponent
|
|
2540
|
+
])
|
|
2307
2541
|
], DebugComponent);
|
|
2308
2542
|
|
|
2309
2543
|
// src/core/app/renderer/renderer.component.ts
|
|
2310
|
-
|
|
2544
|
+
function _ts_decorate8(decorators, target, key, desc) {
|
|
2545
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2546
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2547
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
2548
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2549
|
+
}
|
|
2550
|
+
__name(_ts_decorate8, "_ts_decorate");
|
|
2551
|
+
function _ts_metadata4(k, v) {
|
|
2552
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
2553
|
+
}
|
|
2554
|
+
__name(_ts_metadata4, "_ts_metadata");
|
|
2555
|
+
function _ts_param4(paramIndex, decorator) {
|
|
2556
|
+
return function(target, key) {
|
|
2557
|
+
decorator(target, key, paramIndex);
|
|
2558
|
+
};
|
|
2559
|
+
}
|
|
2560
|
+
__name(_ts_param4, "_ts_param");
|
|
2561
|
+
var RendererComponent = class _RendererComponent {
|
|
2562
|
+
static {
|
|
2563
|
+
__name(this, "RendererComponent");
|
|
2564
|
+
}
|
|
2565
|
+
worldComponent;
|
|
2566
|
+
cameraComponent;
|
|
2567
|
+
sizesComponent;
|
|
2568
|
+
debugComponent;
|
|
2569
|
+
static RENDERER_PIXEL_RATIO = 1;
|
|
2570
|
+
enabled;
|
|
2571
|
+
instance;
|
|
2311
2572
|
constructor(worldComponent, cameraComponent, sizesComponent, debugComponent) {
|
|
2312
2573
|
this.worldComponent = worldComponent;
|
|
2313
2574
|
this.cameraComponent = cameraComponent;
|
|
2314
2575
|
this.sizesComponent = sizesComponent;
|
|
2315
2576
|
this.debugComponent = debugComponent;
|
|
2577
|
+
this.enabled = true;
|
|
2316
2578
|
}
|
|
2317
|
-
enabled = true;
|
|
2318
|
-
instance;
|
|
2319
2579
|
init(canvas) {
|
|
2320
2580
|
this.instance = new import_three5.WebGLRenderer({
|
|
2321
2581
|
canvas,
|
|
@@ -2328,7 +2588,7 @@ var RendererComponent = class {
|
|
|
2328
2588
|
antialias: true
|
|
2329
2589
|
});
|
|
2330
2590
|
this.instance.autoClear = false;
|
|
2331
|
-
this.instance.setPixelRatio(
|
|
2591
|
+
this.instance.setPixelRatio(_RendererComponent.RENDERER_PIXEL_RATIO);
|
|
2332
2592
|
this.instance.setClearColor(0, 0);
|
|
2333
2593
|
this.instance.shadowMap.enabled = true;
|
|
2334
2594
|
this.instance.shadowMap.type = import_three5.PCFSoftShadowMap;
|
|
@@ -2340,78 +2600,88 @@ var RendererComponent = class {
|
|
|
2340
2600
|
this.instance?.setSize(width, height);
|
|
2341
2601
|
}
|
|
2342
2602
|
render() {
|
|
2343
|
-
if (!(this.enabled && this.cameraComponent.instance instanceof import_three5.Camera && this.instance instanceof import_three5.WebGLRenderer))
|
|
2344
|
-
|
|
2345
|
-
this.instance.
|
|
2346
|
-
0,
|
|
2347
|
-
0,
|
|
2348
|
-
this.sizesComponent.width,
|
|
2349
|
-
this.sizesComponent.height
|
|
2350
|
-
);
|
|
2351
|
-
this.instance.render(
|
|
2352
|
-
this.worldComponent.scene,
|
|
2353
|
-
this.cameraComponent.instance
|
|
2354
|
-
);
|
|
2603
|
+
if (!(this.enabled && this.cameraComponent.instance instanceof import_three5.Camera && this.instance instanceof import_three5.WebGLRenderer)) return;
|
|
2604
|
+
this.instance.setViewport(0, 0, this.sizesComponent.width, this.sizesComponent.height);
|
|
2605
|
+
this.instance.render(this.worldComponent.scene, this.cameraComponent.instance);
|
|
2355
2606
|
if (this.debugComponent.enabled && this.cameraComponent.miniCamera) {
|
|
2356
2607
|
this.instance.setScissorTest(true);
|
|
2357
|
-
this.instance.setViewport(
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
this.sizesComponent.width / 3,
|
|
2361
|
-
this.sizesComponent.height / 3
|
|
2362
|
-
);
|
|
2363
|
-
this.instance.setScissor(
|
|
2364
|
-
this.sizesComponent.width - this.sizesComponent.width / 3,
|
|
2365
|
-
this.sizesComponent.height - this.sizesComponent.height / 3,
|
|
2366
|
-
this.sizesComponent.width / 3,
|
|
2367
|
-
this.sizesComponent.height / 3
|
|
2368
|
-
);
|
|
2369
|
-
this.instance.render(
|
|
2370
|
-
this.worldComponent.scene,
|
|
2371
|
-
this.cameraComponent.miniCamera
|
|
2372
|
-
);
|
|
2608
|
+
this.instance.setViewport(this.sizesComponent.width - this.sizesComponent.width / 3, this.sizesComponent.height - this.sizesComponent.height / 3, this.sizesComponent.width / 3, this.sizesComponent.height / 3);
|
|
2609
|
+
this.instance.setScissor(this.sizesComponent.width - this.sizesComponent.width / 3, this.sizesComponent.height - this.sizesComponent.height / 3, this.sizesComponent.width / 3, this.sizesComponent.height / 3);
|
|
2610
|
+
this.instance.render(this.worldComponent.scene, this.cameraComponent.miniCamera);
|
|
2373
2611
|
this.instance.setScissorTest(false);
|
|
2374
2612
|
}
|
|
2375
2613
|
}
|
|
2376
2614
|
};
|
|
2377
|
-
|
|
2378
|
-
RendererComponent = __decorateClass([
|
|
2615
|
+
RendererComponent = _ts_decorate8([
|
|
2379
2616
|
singleton_default(),
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2617
|
+
_ts_param4(0, inject_default(WorldComponent)),
|
|
2618
|
+
_ts_param4(1, inject_default(CameraComponent)),
|
|
2619
|
+
_ts_param4(2, inject_default(SizesComponent)),
|
|
2620
|
+
_ts_param4(3, inject_default(DebugComponent)),
|
|
2621
|
+
_ts_metadata4("design:type", Function),
|
|
2622
|
+
_ts_metadata4("design:paramtypes", [
|
|
2623
|
+
typeof WorldComponent === "undefined" ? Object : WorldComponent,
|
|
2624
|
+
typeof CameraComponent === "undefined" ? Object : CameraComponent,
|
|
2625
|
+
typeof SizesComponent === "undefined" ? Object : SizesComponent,
|
|
2626
|
+
typeof DebugComponent === "undefined" ? Object : DebugComponent
|
|
2627
|
+
])
|
|
2384
2628
|
], RendererComponent);
|
|
2385
2629
|
|
|
2386
2630
|
// src/core/app/timer/timer.controller.ts
|
|
2387
2631
|
var import_rxjs2 = require("rxjs");
|
|
2388
2632
|
|
|
2389
2633
|
// src/common/enums/lifecycle.enum.ts
|
|
2390
|
-
var RegisterLifecycleState = /* @__PURE__ */ (
|
|
2634
|
+
var RegisterLifecycleState = /* @__PURE__ */ function(RegisterLifecycleState2) {
|
|
2391
2635
|
RegisterLifecycleState2[RegisterLifecycleState2["INITIALIZED"] = 0] = "INITIALIZED";
|
|
2392
2636
|
RegisterLifecycleState2[RegisterLifecycleState2["DISPOSED"] = 1] = "DISPOSED";
|
|
2393
2637
|
return RegisterLifecycleState2;
|
|
2394
|
-
}
|
|
2395
|
-
var AppLifecycleState = /* @__PURE__ */ (
|
|
2638
|
+
}({});
|
|
2639
|
+
var AppLifecycleState = /* @__PURE__ */ function(AppLifecycleState2) {
|
|
2396
2640
|
AppLifecycleState2[AppLifecycleState2["INITIALIZED"] = 0] = "INITIALIZED";
|
|
2397
2641
|
AppLifecycleState2[AppLifecycleState2["STEP_STARTED"] = 1] = "STEP_STARTED";
|
|
2398
2642
|
AppLifecycleState2[AppLifecycleState2["STEP_ENDED"] = 2] = "STEP_ENDED";
|
|
2399
2643
|
AppLifecycleState2[AppLifecycleState2["DISPOSED"] = 3] = "DISPOSED";
|
|
2400
2644
|
return AppLifecycleState2;
|
|
2401
|
-
}
|
|
2645
|
+
}({});
|
|
2402
2646
|
|
|
2403
2647
|
// src/core/app/timer/timer.controller.ts
|
|
2648
|
+
function _ts_decorate9(decorators, target, key, desc) {
|
|
2649
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2650
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2651
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
2652
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2653
|
+
}
|
|
2654
|
+
__name(_ts_decorate9, "_ts_decorate");
|
|
2655
|
+
function _ts_metadata5(k, v) {
|
|
2656
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
2657
|
+
}
|
|
2658
|
+
__name(_ts_metadata5, "_ts_metadata");
|
|
2659
|
+
function _ts_param5(paramIndex, decorator) {
|
|
2660
|
+
return function(target, key) {
|
|
2661
|
+
decorator(target, key, paramIndex);
|
|
2662
|
+
};
|
|
2663
|
+
}
|
|
2664
|
+
__name(_ts_param5, "_ts_param");
|
|
2404
2665
|
var TimerController = class {
|
|
2666
|
+
static {
|
|
2667
|
+
__name(this, "TimerController");
|
|
2668
|
+
}
|
|
2669
|
+
component;
|
|
2670
|
+
appController;
|
|
2671
|
+
step$$;
|
|
2672
|
+
enable$$;
|
|
2673
|
+
step$;
|
|
2674
|
+
enable$;
|
|
2405
2675
|
constructor(component, appController) {
|
|
2406
2676
|
this.component = component;
|
|
2407
2677
|
this.appController = appController;
|
|
2678
|
+
this.step$$ = new import_rxjs2.Subject();
|
|
2679
|
+
this.enable$$ = new import_rxjs2.Subject();
|
|
2680
|
+
this.step$ = this.step$$.pipe();
|
|
2681
|
+
this.enable$ = this.enable$$.pipe();
|
|
2408
2682
|
}
|
|
2409
|
-
step$$ = new import_rxjs2.Subject();
|
|
2410
|
-
enable$$ = new import_rxjs2.Subject();
|
|
2411
|
-
step$ = this.step$$.pipe();
|
|
2412
|
-
enable$ = this.enable$$.pipe();
|
|
2413
2683
|
step() {
|
|
2414
|
-
this.appController.lifecycle$$.next(
|
|
2684
|
+
this.appController.lifecycle$$.next(AppLifecycleState.STEP_STARTED);
|
|
2415
2685
|
if (this.component.enabled) {
|
|
2416
2686
|
this.component.delta = this.component.clock.getDelta() ?? this.component.frame;
|
|
2417
2687
|
this.component.deltaRatio = this.component.delta * 1e3 / this.component.frame;
|
|
@@ -2420,17 +2690,45 @@ var TimerController = class {
|
|
|
2420
2690
|
deltaRatio: this.component.deltaRatio
|
|
2421
2691
|
});
|
|
2422
2692
|
}
|
|
2423
|
-
this.appController.lifecycle$$.next(
|
|
2693
|
+
this.appController.lifecycle$$.next(AppLifecycleState.STEP_ENDED);
|
|
2424
2694
|
}
|
|
2425
2695
|
};
|
|
2426
|
-
TimerController =
|
|
2696
|
+
TimerController = _ts_decorate9([
|
|
2427
2697
|
singleton_default(),
|
|
2428
|
-
|
|
2429
|
-
|
|
2698
|
+
_ts_param5(0, inject_default(TimerComponent)),
|
|
2699
|
+
_ts_param5(1, inject_default(AppController)),
|
|
2700
|
+
_ts_metadata5("design:type", Function),
|
|
2701
|
+
_ts_metadata5("design:paramtypes", [
|
|
2702
|
+
typeof TimerComponent === "undefined" ? Object : TimerComponent,
|
|
2703
|
+
typeof AppController === "undefined" ? Object : AppController
|
|
2704
|
+
])
|
|
2430
2705
|
], TimerController);
|
|
2431
2706
|
|
|
2432
2707
|
// src/core/app/timer/timer.module.ts
|
|
2708
|
+
function _ts_decorate10(decorators, target, key, desc) {
|
|
2709
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2710
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2711
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
2712
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2713
|
+
}
|
|
2714
|
+
__name(_ts_decorate10, "_ts_decorate");
|
|
2715
|
+
function _ts_metadata6(k, v) {
|
|
2716
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
2717
|
+
}
|
|
2718
|
+
__name(_ts_metadata6, "_ts_metadata");
|
|
2719
|
+
function _ts_param6(paramIndex, decorator) {
|
|
2720
|
+
return function(target, key) {
|
|
2721
|
+
decorator(target, key, paramIndex);
|
|
2722
|
+
};
|
|
2723
|
+
}
|
|
2724
|
+
__name(_ts_param6, "_ts_param");
|
|
2433
2725
|
var TimerModule = class {
|
|
2726
|
+
static {
|
|
2727
|
+
__name(this, "TimerModule");
|
|
2728
|
+
}
|
|
2729
|
+
component;
|
|
2730
|
+
controller;
|
|
2731
|
+
rendererComponent;
|
|
2434
2732
|
constructor(component, controller, rendererComponent) {
|
|
2435
2733
|
this.component = component;
|
|
2436
2734
|
this.controller = controller;
|
|
@@ -2439,10 +2737,7 @@ var TimerModule = class {
|
|
|
2439
2737
|
init(startTimer) {
|
|
2440
2738
|
this.controller.enable$.subscribe((status) => {
|
|
2441
2739
|
this.component.enabled = !!status;
|
|
2442
|
-
if (status)
|
|
2443
|
-
this.rendererComponent.instance?.setAnimationLoop(
|
|
2444
|
-
this.controller.step.bind(this.controller)
|
|
2445
|
-
);
|
|
2740
|
+
if (status) this.rendererComponent.instance?.setAnimationLoop(this.controller.step.bind(this.controller));
|
|
2446
2741
|
else this.rendererComponent.instance?.setAnimationLoop(null);
|
|
2447
2742
|
});
|
|
2448
2743
|
if (startTimer) this.enabled(true);
|
|
@@ -2476,11 +2771,17 @@ var TimerModule = class {
|
|
|
2476
2771
|
return this.controller.step$;
|
|
2477
2772
|
}
|
|
2478
2773
|
};
|
|
2479
|
-
TimerModule =
|
|
2774
|
+
TimerModule = _ts_decorate10([
|
|
2480
2775
|
singleton_default(),
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2776
|
+
_ts_param6(0, inject_default(TimerComponent)),
|
|
2777
|
+
_ts_param6(1, inject_default(TimerController)),
|
|
2778
|
+
_ts_param6(2, inject_default(RendererComponent)),
|
|
2779
|
+
_ts_metadata6("design:type", Function),
|
|
2780
|
+
_ts_metadata6("design:paramtypes", [
|
|
2781
|
+
typeof TimerComponent === "undefined" ? Object : TimerComponent,
|
|
2782
|
+
typeof TimerController === "undefined" ? Object : TimerController,
|
|
2783
|
+
typeof RendererComponent === "undefined" ? Object : RendererComponent
|
|
2784
|
+
])
|
|
2484
2785
|
], TimerModule);
|
|
2485
2786
|
|
|
2486
2787
|
// src/core/app/camera/camera.module.ts
|
|
@@ -2488,26 +2789,76 @@ var import_three6 = require("three");
|
|
|
2488
2789
|
|
|
2489
2790
|
// src/core/app/camera/camera.controller.ts
|
|
2490
2791
|
var import_rxjs3 = require("rxjs");
|
|
2792
|
+
function _ts_decorate11(decorators, target, key, desc) {
|
|
2793
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2794
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2795
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
2796
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2797
|
+
}
|
|
2798
|
+
__name(_ts_decorate11, "_ts_decorate");
|
|
2799
|
+
function _ts_metadata7(k, v) {
|
|
2800
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
2801
|
+
}
|
|
2802
|
+
__name(_ts_metadata7, "_ts_metadata");
|
|
2803
|
+
function _ts_param7(paramIndex, decorator) {
|
|
2804
|
+
return function(target, key) {
|
|
2805
|
+
decorator(target, key, paramIndex);
|
|
2806
|
+
};
|
|
2807
|
+
}
|
|
2808
|
+
__name(_ts_param7, "_ts_param");
|
|
2491
2809
|
var CameraController = class {
|
|
2810
|
+
static {
|
|
2811
|
+
__name(this, "CameraController");
|
|
2812
|
+
}
|
|
2813
|
+
component;
|
|
2814
|
+
timerController;
|
|
2815
|
+
enable$$;
|
|
2816
|
+
enable$;
|
|
2817
|
+
step$;
|
|
2492
2818
|
constructor(component, timerController) {
|
|
2493
2819
|
this.component = component;
|
|
2494
2820
|
this.timerController = timerController;
|
|
2495
|
-
this.
|
|
2496
|
-
|
|
2497
|
-
);
|
|
2821
|
+
this.enable$$ = new import_rxjs3.Subject();
|
|
2822
|
+
this.enable$ = this.enable$$.pipe();
|
|
2823
|
+
this.step$ = this.timerController.step$.pipe((0, import_rxjs3.filter)(() => this.component.enabled));
|
|
2498
2824
|
}
|
|
2499
|
-
enable$$ = new import_rxjs3.Subject();
|
|
2500
|
-
enable$ = this.enable$$.pipe();
|
|
2501
|
-
step$;
|
|
2502
2825
|
};
|
|
2503
|
-
CameraController =
|
|
2826
|
+
CameraController = _ts_decorate11([
|
|
2504
2827
|
singleton_default(),
|
|
2505
|
-
|
|
2506
|
-
|
|
2828
|
+
_ts_param7(0, inject_default(CameraComponent)),
|
|
2829
|
+
_ts_param7(1, inject_default(TimerController)),
|
|
2830
|
+
_ts_metadata7("design:type", Function),
|
|
2831
|
+
_ts_metadata7("design:paramtypes", [
|
|
2832
|
+
typeof CameraComponent === "undefined" ? Object : CameraComponent,
|
|
2833
|
+
typeof TimerController === "undefined" ? Object : TimerController
|
|
2834
|
+
])
|
|
2507
2835
|
], CameraController);
|
|
2508
2836
|
|
|
2509
2837
|
// src/core/app/camera/camera.module.ts
|
|
2838
|
+
function _ts_decorate12(decorators, target, key, desc) {
|
|
2839
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2840
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2841
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
2842
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2843
|
+
}
|
|
2844
|
+
__name(_ts_decorate12, "_ts_decorate");
|
|
2845
|
+
function _ts_metadata8(k, v) {
|
|
2846
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
2847
|
+
}
|
|
2848
|
+
__name(_ts_metadata8, "_ts_metadata");
|
|
2849
|
+
function _ts_param8(paramIndex, decorator) {
|
|
2850
|
+
return function(target, key) {
|
|
2851
|
+
decorator(target, key, paramIndex);
|
|
2852
|
+
};
|
|
2853
|
+
}
|
|
2854
|
+
__name(_ts_param8, "_ts_param");
|
|
2510
2855
|
var CameraModule = class {
|
|
2856
|
+
static {
|
|
2857
|
+
__name(this, "CameraModule");
|
|
2858
|
+
}
|
|
2859
|
+
component;
|
|
2860
|
+
sizesComponent;
|
|
2861
|
+
controller;
|
|
2511
2862
|
constructor(component, sizesComponent, controller) {
|
|
2512
2863
|
this.component = component;
|
|
2513
2864
|
this.sizesComponent = sizesComponent;
|
|
@@ -2522,8 +2873,7 @@ var CameraModule = class {
|
|
|
2522
2873
|
this.controller.step$.subscribe(() => {
|
|
2523
2874
|
if (!this.component.enabled) return;
|
|
2524
2875
|
this.component.aspectRatio = this.sizesComponent.aspect;
|
|
2525
|
-
if (this.component.instance instanceof import_three6.PerspectiveCamera || this.component.instance instanceof import_three6.OrthographicCamera)
|
|
2526
|
-
this.component.instance?.updateProjectionMatrix();
|
|
2876
|
+
if (this.component.instance instanceof import_three6.PerspectiveCamera || this.component.instance instanceof import_three6.OrthographicCamera) this.component.instance?.updateProjectionMatrix();
|
|
2527
2877
|
this.component.miniCamera?.updateProjectionMatrix();
|
|
2528
2878
|
});
|
|
2529
2879
|
}
|
|
@@ -2559,11 +2909,17 @@ var CameraModule = class {
|
|
|
2559
2909
|
return this.controller.enable$;
|
|
2560
2910
|
}
|
|
2561
2911
|
};
|
|
2562
|
-
CameraModule =
|
|
2912
|
+
CameraModule = _ts_decorate12([
|
|
2563
2913
|
singleton_default(),
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2914
|
+
_ts_param8(0, inject_default(CameraComponent)),
|
|
2915
|
+
_ts_param8(1, inject_default(SizesComponent)),
|
|
2916
|
+
_ts_param8(2, inject_default(CameraController)),
|
|
2917
|
+
_ts_metadata8("design:type", Function),
|
|
2918
|
+
_ts_metadata8("design:paramtypes", [
|
|
2919
|
+
typeof CameraComponent === "undefined" ? Object : CameraComponent,
|
|
2920
|
+
typeof SizesComponent === "undefined" ? Object : SizesComponent,
|
|
2921
|
+
typeof CameraController === "undefined" ? Object : CameraController
|
|
2922
|
+
])
|
|
2567
2923
|
], CameraModule);
|
|
2568
2924
|
|
|
2569
2925
|
// src/core/app/renderer/renderer.controller.ts
|
|
@@ -2571,51 +2927,127 @@ var import_rxjs5 = require("rxjs");
|
|
|
2571
2927
|
|
|
2572
2928
|
// src/core/app/sizes/sizes.controller.ts
|
|
2573
2929
|
var import_rxjs4 = require("rxjs");
|
|
2930
|
+
function _ts_decorate13(decorators, target, key, desc) {
|
|
2931
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2932
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2933
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
2934
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2935
|
+
}
|
|
2936
|
+
__name(_ts_decorate13, "_ts_decorate");
|
|
2937
|
+
function _ts_metadata9(k, v) {
|
|
2938
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
2939
|
+
}
|
|
2940
|
+
__name(_ts_metadata9, "_ts_metadata");
|
|
2941
|
+
function _ts_param9(paramIndex, decorator) {
|
|
2942
|
+
return function(target, key) {
|
|
2943
|
+
decorator(target, key, paramIndex);
|
|
2944
|
+
};
|
|
2945
|
+
}
|
|
2946
|
+
__name(_ts_param9, "_ts_param");
|
|
2574
2947
|
var SizesController = class {
|
|
2948
|
+
static {
|
|
2949
|
+
__name(this, "SizesController");
|
|
2950
|
+
}
|
|
2951
|
+
appController;
|
|
2952
|
+
component;
|
|
2953
|
+
enable$$;
|
|
2954
|
+
enable$;
|
|
2955
|
+
resize$;
|
|
2575
2956
|
constructor(appController, component) {
|
|
2576
2957
|
this.appController = appController;
|
|
2577
2958
|
this.component = component;
|
|
2578
|
-
this.
|
|
2579
|
-
|
|
2580
|
-
);
|
|
2959
|
+
this.enable$$ = new import_rxjs4.Subject();
|
|
2960
|
+
this.enable$ = this.enable$$.pipe();
|
|
2961
|
+
this.resize$ = this.appController.resize$$.pipe((0, import_rxjs4.filter)(() => this.component.enabled));
|
|
2581
2962
|
}
|
|
2582
|
-
enable$$ = new import_rxjs4.Subject();
|
|
2583
|
-
enable$ = this.enable$$.pipe();
|
|
2584
|
-
resize$;
|
|
2585
2963
|
};
|
|
2586
|
-
SizesController =
|
|
2964
|
+
SizesController = _ts_decorate13([
|
|
2587
2965
|
singleton_default(),
|
|
2588
|
-
|
|
2589
|
-
|
|
2966
|
+
_ts_param9(0, inject_default(AppController)),
|
|
2967
|
+
_ts_param9(1, inject_default(SizesComponent)),
|
|
2968
|
+
_ts_metadata9("design:type", Function),
|
|
2969
|
+
_ts_metadata9("design:paramtypes", [
|
|
2970
|
+
typeof AppController === "undefined" ? Object : AppController,
|
|
2971
|
+
typeof SizesComponent === "undefined" ? Object : SizesComponent
|
|
2972
|
+
])
|
|
2590
2973
|
], SizesController);
|
|
2591
2974
|
|
|
2592
2975
|
// src/core/app/renderer/renderer.controller.ts
|
|
2976
|
+
function _ts_decorate14(decorators, target, key, desc) {
|
|
2977
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2978
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2979
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
2980
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2981
|
+
}
|
|
2982
|
+
__name(_ts_decorate14, "_ts_decorate");
|
|
2983
|
+
function _ts_metadata10(k, v) {
|
|
2984
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
2985
|
+
}
|
|
2986
|
+
__name(_ts_metadata10, "_ts_metadata");
|
|
2987
|
+
function _ts_param10(paramIndex, decorator) {
|
|
2988
|
+
return function(target, key) {
|
|
2989
|
+
decorator(target, key, paramIndex);
|
|
2990
|
+
};
|
|
2991
|
+
}
|
|
2992
|
+
__name(_ts_param10, "_ts_param");
|
|
2593
2993
|
var RendererController = class {
|
|
2994
|
+
static {
|
|
2995
|
+
__name(this, "RendererController");
|
|
2996
|
+
}
|
|
2997
|
+
rendererComponent;
|
|
2998
|
+
timerController;
|
|
2999
|
+
sizesController;
|
|
3000
|
+
enable$$;
|
|
3001
|
+
enable$;
|
|
3002
|
+
step$;
|
|
3003
|
+
resize$;
|
|
2594
3004
|
constructor(rendererComponent, timerController, sizesController) {
|
|
2595
3005
|
this.rendererComponent = rendererComponent;
|
|
2596
3006
|
this.timerController = timerController;
|
|
2597
3007
|
this.sizesController = sizesController;
|
|
2598
|
-
this.
|
|
2599
|
-
|
|
2600
|
-
);
|
|
2601
|
-
this.resize$ = this.sizesController.resize$.pipe(
|
|
2602
|
-
|
|
2603
|
-
);
|
|
2604
|
-
}
|
|
2605
|
-
enable$$ = new import_rxjs5.Subject();
|
|
2606
|
-
enable$ = this.enable$$.pipe();
|
|
2607
|
-
step$;
|
|
2608
|
-
resize$;
|
|
3008
|
+
this.enable$$ = new import_rxjs5.Subject();
|
|
3009
|
+
this.enable$ = this.enable$$.pipe();
|
|
3010
|
+
this.step$ = this.timerController.step$.pipe((0, import_rxjs5.filter)(() => this.rendererComponent.enabled));
|
|
3011
|
+
this.resize$ = this.sizesController.resize$.pipe((0, import_rxjs5.filter)(() => this.rendererComponent.enabled));
|
|
3012
|
+
}
|
|
2609
3013
|
};
|
|
2610
|
-
RendererController =
|
|
3014
|
+
RendererController = _ts_decorate14([
|
|
2611
3015
|
singleton_default(),
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
3016
|
+
_ts_param10(0, inject_default(RendererComponent)),
|
|
3017
|
+
_ts_param10(1, inject_default(TimerController)),
|
|
3018
|
+
_ts_param10(2, inject_default(SizesController)),
|
|
3019
|
+
_ts_metadata10("design:type", Function),
|
|
3020
|
+
_ts_metadata10("design:paramtypes", [
|
|
3021
|
+
typeof RendererComponent === "undefined" ? Object : RendererComponent,
|
|
3022
|
+
typeof TimerController === "undefined" ? Object : TimerController,
|
|
3023
|
+
typeof SizesController === "undefined" ? Object : SizesController
|
|
3024
|
+
])
|
|
2615
3025
|
], RendererController);
|
|
2616
3026
|
|
|
2617
3027
|
// src/core/app/renderer/renderer.module.ts
|
|
3028
|
+
function _ts_decorate15(decorators, target, key, desc) {
|
|
3029
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3030
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
3031
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
3032
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3033
|
+
}
|
|
3034
|
+
__name(_ts_decorate15, "_ts_decorate");
|
|
3035
|
+
function _ts_metadata11(k, v) {
|
|
3036
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
3037
|
+
}
|
|
3038
|
+
__name(_ts_metadata11, "_ts_metadata");
|
|
3039
|
+
function _ts_param11(paramIndex, decorator) {
|
|
3040
|
+
return function(target, key) {
|
|
3041
|
+
decorator(target, key, paramIndex);
|
|
3042
|
+
};
|
|
3043
|
+
}
|
|
3044
|
+
__name(_ts_param11, "_ts_param");
|
|
2618
3045
|
var RendererModule = class {
|
|
3046
|
+
static {
|
|
3047
|
+
__name(this, "RendererModule");
|
|
3048
|
+
}
|
|
3049
|
+
component;
|
|
3050
|
+
controller;
|
|
2619
3051
|
constructor(component, controller) {
|
|
2620
3052
|
this.component = component;
|
|
2621
3053
|
this.controller = controller;
|
|
@@ -2625,9 +3057,7 @@ var RendererModule = class {
|
|
|
2625
3057
|
this.component.enabled = !!status;
|
|
2626
3058
|
});
|
|
2627
3059
|
this.controller.step$.subscribe(() => this.component.render());
|
|
2628
|
-
this.controller.resize$.subscribe(
|
|
2629
|
-
(size) => this.component.setSize(size.windowWidth, size.windowHeight)
|
|
2630
|
-
);
|
|
3060
|
+
this.controller.resize$.subscribe((size) => this.component.setSize(size.windowWidth, size.windowHeight));
|
|
2631
3061
|
this.component.init(canvas);
|
|
2632
3062
|
}
|
|
2633
3063
|
dispose() {
|
|
@@ -2650,14 +3080,41 @@ var RendererModule = class {
|
|
|
2650
3080
|
return this.controller.enable$;
|
|
2651
3081
|
}
|
|
2652
3082
|
};
|
|
2653
|
-
RendererModule =
|
|
3083
|
+
RendererModule = _ts_decorate15([
|
|
2654
3084
|
singleton_default(),
|
|
2655
|
-
|
|
2656
|
-
|
|
3085
|
+
_ts_param11(0, inject_default(RendererComponent)),
|
|
3086
|
+
_ts_param11(1, inject_default(RendererController)),
|
|
3087
|
+
_ts_metadata11("design:type", Function),
|
|
3088
|
+
_ts_metadata11("design:paramtypes", [
|
|
3089
|
+
typeof RendererComponent === "undefined" ? Object : RendererComponent,
|
|
3090
|
+
typeof RendererController === "undefined" ? Object : RendererController
|
|
3091
|
+
])
|
|
2657
3092
|
], RendererModule);
|
|
2658
3093
|
|
|
2659
3094
|
// src/core/app/sizes/sizes.module.ts
|
|
3095
|
+
function _ts_decorate16(decorators, target, key, desc) {
|
|
3096
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3097
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
3098
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
3099
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3100
|
+
}
|
|
3101
|
+
__name(_ts_decorate16, "_ts_decorate");
|
|
3102
|
+
function _ts_metadata12(k, v) {
|
|
3103
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
3104
|
+
}
|
|
3105
|
+
__name(_ts_metadata12, "_ts_metadata");
|
|
3106
|
+
function _ts_param12(paramIndex, decorator) {
|
|
3107
|
+
return function(target, key) {
|
|
3108
|
+
decorator(target, key, paramIndex);
|
|
3109
|
+
};
|
|
3110
|
+
}
|
|
3111
|
+
__name(_ts_param12, "_ts_param");
|
|
2660
3112
|
var SizesModule = class {
|
|
3113
|
+
static {
|
|
3114
|
+
__name(this, "SizesModule");
|
|
3115
|
+
}
|
|
3116
|
+
component;
|
|
3117
|
+
controller;
|
|
2661
3118
|
constructor(component, controller) {
|
|
2662
3119
|
this.component = component;
|
|
2663
3120
|
this.controller = controller;
|
|
@@ -2706,10 +3163,15 @@ var SizesModule = class {
|
|
|
2706
3163
|
return this.controller.resize$;
|
|
2707
3164
|
}
|
|
2708
3165
|
};
|
|
2709
|
-
SizesModule =
|
|
3166
|
+
SizesModule = _ts_decorate16([
|
|
2710
3167
|
singleton_default(),
|
|
2711
|
-
|
|
2712
|
-
|
|
3168
|
+
_ts_param12(0, inject_default(SizesComponent)),
|
|
3169
|
+
_ts_param12(1, inject_default(SizesController)),
|
|
3170
|
+
_ts_metadata12("design:type", Function),
|
|
3171
|
+
_ts_metadata12("design:paramtypes", [
|
|
3172
|
+
typeof SizesComponent === "undefined" ? Object : SizesComponent,
|
|
3173
|
+
typeof SizesController === "undefined" ? Object : SizesController
|
|
3174
|
+
])
|
|
2713
3175
|
], SizesModule);
|
|
2714
3176
|
|
|
2715
3177
|
// src/core/app/world/world.module.ts
|
|
@@ -2717,16 +3179,48 @@ var import_three7 = require("three");
|
|
|
2717
3179
|
|
|
2718
3180
|
// src/core/app/world/world.controller.ts
|
|
2719
3181
|
var import_rxjs6 = require("rxjs");
|
|
3182
|
+
function _ts_decorate17(decorators, target, key, desc) {
|
|
3183
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3184
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
3185
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
3186
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3187
|
+
}
|
|
3188
|
+
__name(_ts_decorate17, "_ts_decorate");
|
|
2720
3189
|
var WorldController = class {
|
|
3190
|
+
static {
|
|
3191
|
+
__name(this, "WorldController");
|
|
3192
|
+
}
|
|
2721
3193
|
enable$$ = new import_rxjs6.Subject();
|
|
2722
3194
|
enable$ = this.enable$$.pipe();
|
|
2723
3195
|
};
|
|
2724
|
-
WorldController =
|
|
3196
|
+
WorldController = _ts_decorate17([
|
|
2725
3197
|
singleton_default()
|
|
2726
3198
|
], WorldController);
|
|
2727
3199
|
|
|
2728
3200
|
// src/core/app/world/world.module.ts
|
|
3201
|
+
function _ts_decorate18(decorators, target, key, desc) {
|
|
3202
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3203
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
3204
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
3205
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3206
|
+
}
|
|
3207
|
+
__name(_ts_decorate18, "_ts_decorate");
|
|
3208
|
+
function _ts_metadata13(k, v) {
|
|
3209
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
3210
|
+
}
|
|
3211
|
+
__name(_ts_metadata13, "_ts_metadata");
|
|
3212
|
+
function _ts_param13(paramIndex, decorator) {
|
|
3213
|
+
return function(target, key) {
|
|
3214
|
+
decorator(target, key, paramIndex);
|
|
3215
|
+
};
|
|
3216
|
+
}
|
|
3217
|
+
__name(_ts_param13, "_ts_param");
|
|
2729
3218
|
var WorldModule = class {
|
|
3219
|
+
static {
|
|
3220
|
+
__name(this, "WorldModule");
|
|
3221
|
+
}
|
|
3222
|
+
component;
|
|
3223
|
+
controller;
|
|
2730
3224
|
constructor(component, controller) {
|
|
2731
3225
|
this.component = component;
|
|
2732
3226
|
this.controller = controller;
|
|
@@ -2750,30 +3244,84 @@ var WorldModule = class {
|
|
|
2750
3244
|
return this.controller.enable$;
|
|
2751
3245
|
}
|
|
2752
3246
|
};
|
|
2753
|
-
WorldModule =
|
|
3247
|
+
WorldModule = _ts_decorate18([
|
|
2754
3248
|
singleton_default(),
|
|
2755
|
-
|
|
2756
|
-
|
|
3249
|
+
_ts_param13(0, inject_default(WorldComponent)),
|
|
3250
|
+
_ts_param13(1, inject_default(WorldController)),
|
|
3251
|
+
_ts_metadata13("design:type", Function),
|
|
3252
|
+
_ts_metadata13("design:paramtypes", [
|
|
3253
|
+
typeof WorldComponent === "undefined" ? Object : WorldComponent,
|
|
3254
|
+
typeof WorldController === "undefined" ? Object : WorldController
|
|
3255
|
+
])
|
|
2757
3256
|
], WorldModule);
|
|
2758
3257
|
|
|
2759
3258
|
// src/core/app/debug/debug.controller.ts
|
|
2760
3259
|
var import_rxjs7 = require("rxjs");
|
|
3260
|
+
function _ts_decorate19(decorators, target, key, desc) {
|
|
3261
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3262
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
3263
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
3264
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3265
|
+
}
|
|
3266
|
+
__name(_ts_decorate19, "_ts_decorate");
|
|
3267
|
+
function _ts_metadata14(k, v) {
|
|
3268
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
3269
|
+
}
|
|
3270
|
+
__name(_ts_metadata14, "_ts_metadata");
|
|
3271
|
+
function _ts_param14(paramIndex, decorator) {
|
|
3272
|
+
return function(target, key) {
|
|
3273
|
+
decorator(target, key, paramIndex);
|
|
3274
|
+
};
|
|
3275
|
+
}
|
|
3276
|
+
__name(_ts_param14, "_ts_param");
|
|
2761
3277
|
var DebugController = class {
|
|
3278
|
+
static {
|
|
3279
|
+
__name(this, "DebugController");
|
|
3280
|
+
}
|
|
3281
|
+
timerController;
|
|
3282
|
+
enable$$;
|
|
3283
|
+
enable$;
|
|
3284
|
+
step$;
|
|
2762
3285
|
constructor(timerController) {
|
|
2763
3286
|
this.timerController = timerController;
|
|
3287
|
+
this.enable$$ = new import_rxjs7.Subject();
|
|
3288
|
+
this.enable$ = this.enable$$.pipe();
|
|
2764
3289
|
this.step$ = this.timerController.step$;
|
|
2765
3290
|
}
|
|
2766
|
-
enable$$ = new import_rxjs7.Subject();
|
|
2767
|
-
enable$ = this.enable$$.pipe();
|
|
2768
|
-
step$;
|
|
2769
3291
|
};
|
|
2770
|
-
DebugController =
|
|
3292
|
+
DebugController = _ts_decorate19([
|
|
2771
3293
|
singleton_default(),
|
|
2772
|
-
|
|
3294
|
+
_ts_param14(0, inject_default(TimerController)),
|
|
3295
|
+
_ts_metadata14("design:type", Function),
|
|
3296
|
+
_ts_metadata14("design:paramtypes", [
|
|
3297
|
+
typeof TimerController === "undefined" ? Object : TimerController
|
|
3298
|
+
])
|
|
2773
3299
|
], DebugController);
|
|
2774
3300
|
|
|
2775
3301
|
// src/core/app/debug/debug.module.ts
|
|
3302
|
+
function _ts_decorate20(decorators, target, key, desc) {
|
|
3303
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3304
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
3305
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
3306
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3307
|
+
}
|
|
3308
|
+
__name(_ts_decorate20, "_ts_decorate");
|
|
3309
|
+
function _ts_metadata15(k, v) {
|
|
3310
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
3311
|
+
}
|
|
3312
|
+
__name(_ts_metadata15, "_ts_metadata");
|
|
3313
|
+
function _ts_param15(paramIndex, decorator) {
|
|
3314
|
+
return function(target, key) {
|
|
3315
|
+
decorator(target, key, paramIndex);
|
|
3316
|
+
};
|
|
3317
|
+
}
|
|
3318
|
+
__name(_ts_param15, "_ts_param");
|
|
2776
3319
|
var DebugModule = class {
|
|
3320
|
+
static {
|
|
3321
|
+
__name(this, "DebugModule");
|
|
3322
|
+
}
|
|
3323
|
+
component;
|
|
3324
|
+
controller;
|
|
2777
3325
|
constructor(component, controller) {
|
|
2778
3326
|
this.component = component;
|
|
2779
3327
|
this.controller = controller;
|
|
@@ -2810,14 +3358,22 @@ var DebugModule = class {
|
|
|
2810
3358
|
return this.controller.enable$;
|
|
2811
3359
|
}
|
|
2812
3360
|
};
|
|
2813
|
-
DebugModule =
|
|
3361
|
+
DebugModule = _ts_decorate20([
|
|
2814
3362
|
singleton_default(),
|
|
2815
|
-
|
|
2816
|
-
|
|
3363
|
+
_ts_param15(0, inject_default(DebugComponent)),
|
|
3364
|
+
_ts_param15(1, inject_default(DebugController)),
|
|
3365
|
+
_ts_metadata15("design:type", Function),
|
|
3366
|
+
_ts_metadata15("design:paramtypes", [
|
|
3367
|
+
typeof DebugComponent === "undefined" ? Object : DebugComponent,
|
|
3368
|
+
typeof DebugController === "undefined" ? Object : DebugController
|
|
3369
|
+
])
|
|
2817
3370
|
], DebugModule);
|
|
2818
3371
|
|
|
2819
3372
|
// src/common/models/app-proxy-event-handler.model.ts
|
|
2820
3373
|
var AppProxyEventHandlersModel = class {
|
|
3374
|
+
static {
|
|
3375
|
+
__name(this, "AppProxyEventHandlersModel");
|
|
3376
|
+
}
|
|
2821
3377
|
contextmenu$;
|
|
2822
3378
|
resize$;
|
|
2823
3379
|
mousedown$;
|
|
@@ -2849,17 +3405,37 @@ var AppProxyEventHandlersModel = class {
|
|
|
2849
3405
|
};
|
|
2850
3406
|
|
|
2851
3407
|
// src/core/app/app.module.ts
|
|
3408
|
+
function _ts_decorate21(decorators, target, key, desc) {
|
|
3409
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3410
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
3411
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
3412
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3413
|
+
}
|
|
3414
|
+
__name(_ts_decorate21, "_ts_decorate");
|
|
3415
|
+
function _ts_metadata16(k, v) {
|
|
3416
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
3417
|
+
}
|
|
3418
|
+
__name(_ts_metadata16, "_ts_metadata");
|
|
3419
|
+
function _ts_param16(paramIndex, decorator) {
|
|
3420
|
+
return function(target, key) {
|
|
3421
|
+
decorator(target, key, paramIndex);
|
|
3422
|
+
};
|
|
3423
|
+
}
|
|
3424
|
+
__name(_ts_param16, "_ts_param");
|
|
2852
3425
|
var AppModule = class extends AppProxyEventHandlersModel {
|
|
3426
|
+
static {
|
|
3427
|
+
__name(this, "AppModule");
|
|
3428
|
+
}
|
|
3429
|
+
controller;
|
|
3430
|
+
component;
|
|
3431
|
+
timer;
|
|
3432
|
+
sizes;
|
|
3433
|
+
camera;
|
|
3434
|
+
world;
|
|
3435
|
+
renderer;
|
|
3436
|
+
debug;
|
|
2853
3437
|
constructor(controller, component, timer, sizes, camera, world, renderer, debug) {
|
|
2854
|
-
super();
|
|
2855
|
-
this.controller = controller;
|
|
2856
|
-
this.component = component;
|
|
2857
|
-
this.timer = timer;
|
|
2858
|
-
this.sizes = sizes;
|
|
2859
|
-
this.camera = camera;
|
|
2860
|
-
this.world = world;
|
|
2861
|
-
this.renderer = renderer;
|
|
2862
|
-
this.debug = debug;
|
|
3438
|
+
super(), this.controller = controller, this.component = component, this.timer = timer, this.sizes = sizes, this.camera = camera, this.world = world, this.renderer = renderer, this.debug = debug;
|
|
2863
3439
|
this._initProxyEvents();
|
|
2864
3440
|
self.addEventListener("message", this._onMessage.bind(this));
|
|
2865
3441
|
}
|
|
@@ -2896,7 +3472,7 @@ var AppModule = class extends AppProxyEventHandlersModel {
|
|
|
2896
3472
|
this.renderer.init(canvas);
|
|
2897
3473
|
this.timer.init(props.startTimer);
|
|
2898
3474
|
this.debug.init(props);
|
|
2899
|
-
this.controller.lifecycle$$.next(
|
|
3475
|
+
this.controller.lifecycle$$.next(AppLifecycleState.INITIALIZED);
|
|
2900
3476
|
}
|
|
2901
3477
|
get canvas() {
|
|
2902
3478
|
return this.component.canvas;
|
|
@@ -2914,7 +3490,7 @@ var AppModule = class extends AppProxyEventHandlersModel {
|
|
|
2914
3490
|
this.renderer.dispose();
|
|
2915
3491
|
this.timer.dispose();
|
|
2916
3492
|
this.debug.dispose();
|
|
2917
|
-
this.controller.lifecycle$$.next(
|
|
3493
|
+
this.controller.lifecycle$$.next(AppLifecycleState.DISPOSED);
|
|
2918
3494
|
this.controller.lifecycle$$.complete();
|
|
2919
3495
|
self.removeEventListener("message", this._onMessage.bind(this));
|
|
2920
3496
|
}
|
|
@@ -2922,16 +3498,27 @@ var AppModule = class extends AppProxyEventHandlersModel {
|
|
|
2922
3498
|
return this.controller.lifecycle$;
|
|
2923
3499
|
}
|
|
2924
3500
|
};
|
|
2925
|
-
AppModule =
|
|
3501
|
+
AppModule = _ts_decorate21([
|
|
2926
3502
|
singleton_default(),
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
|
|
2930
|
-
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
|
|
2934
|
-
|
|
3503
|
+
_ts_param16(0, inject_default(AppController)),
|
|
3504
|
+
_ts_param16(1, inject_default(AppComponent)),
|
|
3505
|
+
_ts_param16(2, inject_default(TimerModule)),
|
|
3506
|
+
_ts_param16(3, inject_default(SizesModule)),
|
|
3507
|
+
_ts_param16(4, inject_default(CameraModule)),
|
|
3508
|
+
_ts_param16(5, inject_default(WorldModule)),
|
|
3509
|
+
_ts_param16(6, inject_default(RendererModule)),
|
|
3510
|
+
_ts_param16(7, inject_default(DebugModule)),
|
|
3511
|
+
_ts_metadata16("design:type", Function),
|
|
3512
|
+
_ts_metadata16("design:paramtypes", [
|
|
3513
|
+
typeof AppController === "undefined" ? Object : AppController,
|
|
3514
|
+
typeof AppComponent === "undefined" ? Object : AppComponent,
|
|
3515
|
+
typeof TimerModule === "undefined" ? Object : TimerModule,
|
|
3516
|
+
typeof SizesModule === "undefined" ? Object : SizesModule,
|
|
3517
|
+
typeof CameraModule === "undefined" ? Object : CameraModule,
|
|
3518
|
+
typeof WorldModule === "undefined" ? Object : WorldModule,
|
|
3519
|
+
typeof RendererModule === "undefined" ? Object : RendererModule,
|
|
3520
|
+
typeof DebugModule === "undefined" ? Object : DebugModule
|
|
3521
|
+
])
|
|
2935
3522
|
], AppModule);
|
|
2936
3523
|
var appModule = instance.resolve(AppModule);
|
|
2937
3524
|
|
|
@@ -2943,23 +3530,41 @@ var import_Addons3 = require("three/examples/jsm/Addons");
|
|
|
2943
3530
|
// src/core/loader/loader.controller.ts
|
|
2944
3531
|
var import_rxjs8 = require("rxjs");
|
|
2945
3532
|
var import_rxjs9 = require("rxjs");
|
|
3533
|
+
function _ts_decorate22(decorators, target, key, desc) {
|
|
3534
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3535
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
3536
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
3537
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3538
|
+
}
|
|
3539
|
+
__name(_ts_decorate22, "_ts_decorate");
|
|
2946
3540
|
var LoaderController = class {
|
|
3541
|
+
static {
|
|
3542
|
+
__name(this, "LoaderController");
|
|
3543
|
+
}
|
|
2947
3544
|
lifecycle$$ = new import_rxjs8.Subject();
|
|
2948
3545
|
progress$$ = new import_rxjs8.Subject();
|
|
2949
3546
|
progress$ = this.progress$$.pipe();
|
|
2950
3547
|
lifecycle$ = this.lifecycle$$.pipe();
|
|
2951
|
-
progressCompleted$ = this.progress$.pipe(
|
|
2952
|
-
(0, import_rxjs9.filter)((resource) => resource.toLoad === resource.loaded)
|
|
2953
|
-
);
|
|
3548
|
+
progressCompleted$ = this.progress$.pipe((0, import_rxjs9.filter)((resource) => resource.toLoad === resource.loaded));
|
|
2954
3549
|
};
|
|
2955
|
-
LoaderController =
|
|
3550
|
+
LoaderController = _ts_decorate22([
|
|
2956
3551
|
scoped(lifecycle_default.ResolutionScoped)
|
|
2957
3552
|
], LoaderController);
|
|
2958
3553
|
|
|
2959
3554
|
// src/core/loader/loader.component.ts
|
|
2960
3555
|
var import_three8 = require("three");
|
|
2961
3556
|
var import_Addons2 = require("three/examples/jsm/Addons");
|
|
3557
|
+
function _ts_decorate23(decorators, target, key, desc) {
|
|
3558
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3559
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
3560
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
3561
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3562
|
+
}
|
|
3563
|
+
__name(_ts_decorate23, "_ts_decorate");
|
|
2962
3564
|
var LoaderComponent = class {
|
|
3565
|
+
static {
|
|
3566
|
+
__name(this, "LoaderComponent");
|
|
3567
|
+
}
|
|
2963
3568
|
loadingManager = new import_three8.LoadingManager();
|
|
2964
3569
|
loaders = {};
|
|
2965
3570
|
resources = [];
|
|
@@ -2968,7 +3573,7 @@ var LoaderComponent = class {
|
|
|
2968
3573
|
loaded = 0;
|
|
2969
3574
|
get videoLoader() {
|
|
2970
3575
|
return {
|
|
2971
|
-
load: (url, callback) => {
|
|
3576
|
+
load: /* @__PURE__ */ __name((url, callback) => {
|
|
2972
3577
|
let element = document.createElement("video");
|
|
2973
3578
|
element.muted = true;
|
|
2974
3579
|
element.loop = true;
|
|
@@ -2976,7 +3581,7 @@ var LoaderComponent = class {
|
|
|
2976
3581
|
element.playsInline = true;
|
|
2977
3582
|
element.src = url;
|
|
2978
3583
|
element.autoplay = true;
|
|
2979
|
-
const oncanplaythrough = () => {
|
|
3584
|
+
const oncanplaythrough = /* @__PURE__ */ __name(() => {
|
|
2980
3585
|
if (!element) return;
|
|
2981
3586
|
element.play();
|
|
2982
3587
|
const texture = new import_three8.VideoTexture(element);
|
|
@@ -2990,9 +3595,9 @@ var LoaderComponent = class {
|
|
|
2990
3595
|
callback(texture);
|
|
2991
3596
|
texture.userData.element = element;
|
|
2992
3597
|
element.removeEventListener("canplaythrough", oncanplaythrough);
|
|
2993
|
-
};
|
|
3598
|
+
}, "oncanplaythrough");
|
|
2994
3599
|
element.addEventListener("canplaythrough", oncanplaythrough);
|
|
2995
|
-
}
|
|
3600
|
+
}, "load")
|
|
2996
3601
|
};
|
|
2997
3602
|
}
|
|
2998
3603
|
_setLoaders() {
|
|
@@ -3012,12 +3617,34 @@ var LoaderComponent = class {
|
|
|
3012
3617
|
this._setLoaders();
|
|
3013
3618
|
}
|
|
3014
3619
|
};
|
|
3015
|
-
LoaderComponent =
|
|
3620
|
+
LoaderComponent = _ts_decorate23([
|
|
3016
3621
|
scoped(lifecycle_default.ResolutionScoped)
|
|
3017
3622
|
], LoaderComponent);
|
|
3018
3623
|
|
|
3019
3624
|
// src/core/loader/loader.module.ts
|
|
3625
|
+
function _ts_decorate24(decorators, target, key, desc) {
|
|
3626
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3627
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
3628
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
3629
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3630
|
+
}
|
|
3631
|
+
__name(_ts_decorate24, "_ts_decorate");
|
|
3632
|
+
function _ts_metadata17(k, v) {
|
|
3633
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
3634
|
+
}
|
|
3635
|
+
__name(_ts_metadata17, "_ts_metadata");
|
|
3636
|
+
function _ts_param17(paramIndex, decorator) {
|
|
3637
|
+
return function(target, key) {
|
|
3638
|
+
decorator(target, key, paramIndex);
|
|
3639
|
+
};
|
|
3640
|
+
}
|
|
3641
|
+
__name(_ts_param17, "_ts_param");
|
|
3020
3642
|
var LoaderModule = class {
|
|
3643
|
+
static {
|
|
3644
|
+
__name(this, "LoaderModule");
|
|
3645
|
+
}
|
|
3646
|
+
controller;
|
|
3647
|
+
component;
|
|
3021
3648
|
constructor(controller, component) {
|
|
3022
3649
|
this.controller = controller;
|
|
3023
3650
|
this.component = component;
|
|
@@ -3037,14 +3664,9 @@ var LoaderModule = class {
|
|
|
3037
3664
|
});
|
|
3038
3665
|
}
|
|
3039
3666
|
setDracoLoader(dracoDecoderPath, linkWithGltfLoader = true) {
|
|
3040
|
-
this.component.loaders.dracoLoader = new import_Addons3.DRACOLoader(
|
|
3041
|
-
this.component.loadingManager
|
|
3042
|
-
);
|
|
3667
|
+
this.component.loaders.dracoLoader = new import_Addons3.DRACOLoader(this.component.loadingManager);
|
|
3043
3668
|
this.component.loaders.dracoLoader.setDecoderPath(dracoDecoderPath);
|
|
3044
|
-
if (linkWithGltfLoader && this.component.loaders.gltfLoader)
|
|
3045
|
-
this.component.loaders.gltfLoader.setDRACOLoader(
|
|
3046
|
-
this.component.loaders.dracoLoader
|
|
3047
|
-
);
|
|
3669
|
+
if (linkWithGltfLoader && this.component.loaders.gltfLoader) this.component.loaders.gltfLoader.setDRACOLoader(this.component.loaders.dracoLoader);
|
|
3048
3670
|
}
|
|
3049
3671
|
load() {
|
|
3050
3672
|
const firstResource = this.component.resources[0];
|
|
@@ -3054,40 +3676,27 @@ var LoaderModule = class {
|
|
|
3054
3676
|
loaded: this.component.loaded,
|
|
3055
3677
|
toLoad: this.component.toLoad
|
|
3056
3678
|
});
|
|
3057
|
-
for (const source of this.component.resources)
|
|
3058
|
-
if (
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
);
|
|
3064
|
-
}
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
);
|
|
3075
|
-
}
|
|
3076
|
-
if (source.type === "video" && typeof source.path === "string") {
|
|
3077
|
-
this.component.loaders.videoLoader?.load(
|
|
3078
|
-
source.path,
|
|
3079
|
-
(texture) => this._handleLoadedResource(source, texture)
|
|
3080
|
-
);
|
|
3081
|
-
}
|
|
3082
|
-
if (source.type === "audio" && typeof source.path === "string") {
|
|
3083
|
-
this.component.loaders.audioLoader?.load(
|
|
3084
|
-
source.path,
|
|
3085
|
-
(audioBuffer) => {
|
|
3086
|
-
this._handleLoadedResource(source, audioBuffer);
|
|
3087
|
-
}
|
|
3088
|
-
);
|
|
3089
|
-
}
|
|
3679
|
+
for (const source of this.component.resources) if (!this.component.items[source.name]) {
|
|
3680
|
+
if (source.type === "gltfModel" && typeof source.path === "string") {
|
|
3681
|
+
this.component.loaders.gltfLoader?.load(source.path, (model) => this._handleLoadedResource(source, model));
|
|
3682
|
+
}
|
|
3683
|
+
if (source.type === "texture" && typeof source.path === "string") {
|
|
3684
|
+
this.component.loaders.textureLoader?.load(source.path, (texture) => {
|
|
3685
|
+
this._handleLoadedResource(source, new import_three9.CanvasTexture(texture));
|
|
3686
|
+
});
|
|
3687
|
+
}
|
|
3688
|
+
if (source.type === "cubeTexture" && typeof source.path === "object") {
|
|
3689
|
+
this.component.loaders.cubeTextureLoader?.load(source.path, (texture) => this._handleLoadedResource(source, texture));
|
|
3690
|
+
}
|
|
3691
|
+
if (source.type === "video" && typeof source.path === "string") {
|
|
3692
|
+
this.component.loaders.videoLoader?.load(source.path, (texture) => this._handleLoadedResource(source, texture));
|
|
3693
|
+
}
|
|
3694
|
+
if (source.type === "audio" && typeof source.path === "string") {
|
|
3695
|
+
this.component.loaders.audioLoader?.load(source.path, (audioBuffer) => {
|
|
3696
|
+
this._handleLoadedResource(source, audioBuffer);
|
|
3697
|
+
});
|
|
3090
3698
|
}
|
|
3699
|
+
}
|
|
3091
3700
|
}
|
|
3092
3701
|
items() {
|
|
3093
3702
|
return this.component.items;
|
|
@@ -3121,10 +3730,15 @@ var LoaderModule = class {
|
|
|
3121
3730
|
return this.controller.progressCompleted$;
|
|
3122
3731
|
}
|
|
3123
3732
|
};
|
|
3124
|
-
LoaderModule =
|
|
3733
|
+
LoaderModule = _ts_decorate24([
|
|
3125
3734
|
scoped(lifecycle_default.ResolutionScoped),
|
|
3126
|
-
|
|
3127
|
-
|
|
3735
|
+
_ts_param17(0, inject_default(LoaderController)),
|
|
3736
|
+
_ts_param17(1, inject_default(LoaderComponent)),
|
|
3737
|
+
_ts_metadata17("design:type", Function),
|
|
3738
|
+
_ts_metadata17("design:paramtypes", [
|
|
3739
|
+
typeof LoaderController === "undefined" ? Object : LoaderController,
|
|
3740
|
+
typeof LoaderComponent === "undefined" ? Object : LoaderComponent
|
|
3741
|
+
])
|
|
3128
3742
|
], LoaderModule);
|
|
3129
3743
|
var loaderModule = instance.resolve(LoaderModule);
|
|
3130
3744
|
|
|
@@ -3137,7 +3751,17 @@ var import_utils5 = require("@quick-threejs/utils");
|
|
|
3137
3751
|
var import_utils2 = require("@quick-threejs/utils");
|
|
3138
3752
|
var import_lil_gui_module_min = __toESM(require("three/examples/jsm/libs/lil-gui.module.min.js"));
|
|
3139
3753
|
var import_stats = __toESM(require("stats.js"));
|
|
3754
|
+
function _ts_decorate25(decorators, target, key, desc) {
|
|
3755
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3756
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
3757
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
3758
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3759
|
+
}
|
|
3760
|
+
__name(_ts_decorate25, "_ts_decorate");
|
|
3140
3761
|
var RegisterComponent = class {
|
|
3762
|
+
static {
|
|
3763
|
+
__name(this, "RegisterComponent");
|
|
3764
|
+
}
|
|
3141
3765
|
workerPool = (0, import_utils2.createWorkerPool)();
|
|
3142
3766
|
canvas;
|
|
3143
3767
|
worker;
|
|
@@ -3155,29 +3779,46 @@ var RegisterComponent = class {
|
|
|
3155
3779
|
if (window.innerWidth <= 450) this.gui.close();
|
|
3156
3780
|
}
|
|
3157
3781
|
};
|
|
3158
|
-
RegisterComponent =
|
|
3782
|
+
RegisterComponent = _ts_decorate25([
|
|
3159
3783
|
singleton_default()
|
|
3160
3784
|
], RegisterComponent);
|
|
3161
3785
|
|
|
3162
3786
|
// src/core/register/register.controller.ts
|
|
3163
3787
|
var import_rxjs10 = require("rxjs");
|
|
3164
3788
|
var import_utils3 = require("@quick-threejs/utils");
|
|
3789
|
+
function _ts_decorate26(decorators, target, key, desc) {
|
|
3790
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3791
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
3792
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
3793
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3794
|
+
}
|
|
3795
|
+
__name(_ts_decorate26, "_ts_decorate");
|
|
3796
|
+
function _ts_metadata18(k, v) {
|
|
3797
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
3798
|
+
}
|
|
3799
|
+
__name(_ts_metadata18, "_ts_metadata");
|
|
3800
|
+
function _ts_param18(paramIndex, decorator) {
|
|
3801
|
+
return function(target, key) {
|
|
3802
|
+
decorator(target, key, paramIndex);
|
|
3803
|
+
};
|
|
3804
|
+
}
|
|
3805
|
+
__name(_ts_param18, "_ts_param");
|
|
3165
3806
|
var RegisterController = class extends ProxyEventHandlersModel {
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
this.component = component;
|
|
3807
|
+
static {
|
|
3808
|
+
__name(this, "RegisterController");
|
|
3169
3809
|
}
|
|
3810
|
+
component;
|
|
3170
3811
|
canvas;
|
|
3171
|
-
lifecycle
|
|
3172
|
-
lifecycle
|
|
3812
|
+
lifecycle$$;
|
|
3813
|
+
lifecycle$;
|
|
3814
|
+
constructor(component) {
|
|
3815
|
+
super(), this.component = component, this.lifecycle$$ = new import_rxjs10.Subject(), this.lifecycle$ = this.lifecycle$$.pipe();
|
|
3816
|
+
}
|
|
3173
3817
|
init(canvas) {
|
|
3174
3818
|
this.canvas = canvas;
|
|
3175
3819
|
for (const key of PROXY_EVENT_LISTENERS) {
|
|
3176
3820
|
const eventHandler = key.startsWith("mouse") || key.startsWith("pointer") || key.startsWith("touch") ? this.mouseEventHandler : key.startsWith("key") ? this.keyEventHandler : key === "resize" ? this.uiEventHandler : key === "wheel" ? this.wheelEventHandler : this.preventDefaultHandler;
|
|
3177
|
-
this[`${key}$`] = (0, import_rxjs10.fromEvent)(
|
|
3178
|
-
key === "resize" ? window : canvas,
|
|
3179
|
-
key
|
|
3180
|
-
).pipe(
|
|
3821
|
+
this[`${key}$`] = (0, import_rxjs10.fromEvent)(key === "resize" ? window : canvas, key).pipe(
|
|
3181
3822
|
// @ts-ignore
|
|
3182
3823
|
(0, import_rxjs10.map)(eventHandler.bind(this)),
|
|
3183
3824
|
(0, import_rxjs10.filter)((e) => key === "keydown" && !e ? false : true)
|
|
@@ -3228,7 +3869,10 @@ var RegisterController = class extends ProxyEventHandlersModel {
|
|
|
3228
3869
|
}
|
|
3229
3870
|
touchEventHandler(e) {
|
|
3230
3871
|
const touches = [];
|
|
3231
|
-
const data = {
|
|
3872
|
+
const data = {
|
|
3873
|
+
type: e.type,
|
|
3874
|
+
touches
|
|
3875
|
+
};
|
|
3232
3876
|
for (let i = 0; i < e.touches.length; ++i) {
|
|
3233
3877
|
const touch = e.touches[i];
|
|
3234
3878
|
touches.push({
|
|
@@ -3236,13 +3880,19 @@ var RegisterController = class extends ProxyEventHandlersModel {
|
|
|
3236
3880
|
pageY: touch?.pageY ?? 0
|
|
3237
3881
|
});
|
|
3238
3882
|
}
|
|
3239
|
-
return {
|
|
3883
|
+
return {
|
|
3884
|
+
...this.getScreenSizes(),
|
|
3885
|
+
...data
|
|
3886
|
+
};
|
|
3240
3887
|
}
|
|
3241
3888
|
wheelEventHandler(e) {
|
|
3242
3889
|
e.preventDefault();
|
|
3243
3890
|
return {
|
|
3244
3891
|
...this.getScreenSizes(),
|
|
3245
|
-
...(0, import_utils3.copyProperties)(e, [
|
|
3892
|
+
...(0, import_utils3.copyProperties)(e, [
|
|
3893
|
+
"deltaX",
|
|
3894
|
+
"deltaY"
|
|
3895
|
+
])
|
|
3246
3896
|
};
|
|
3247
3897
|
}
|
|
3248
3898
|
keyEventHandler(e) {
|
|
@@ -3250,13 +3900,22 @@ var RegisterController = class extends ProxyEventHandlersModel {
|
|
|
3250
3900
|
e.preventDefault();
|
|
3251
3901
|
return {
|
|
3252
3902
|
...this.getScreenSizes(),
|
|
3253
|
-
...(0, import_utils3.copyProperties)(e, [
|
|
3903
|
+
...(0, import_utils3.copyProperties)(e, [
|
|
3904
|
+
"ctrlKey",
|
|
3905
|
+
"metaKey",
|
|
3906
|
+
"shiftKey",
|
|
3907
|
+
"keyCode"
|
|
3908
|
+
])
|
|
3254
3909
|
};
|
|
3255
3910
|
}
|
|
3256
3911
|
};
|
|
3257
|
-
RegisterController =
|
|
3912
|
+
RegisterController = _ts_decorate26([
|
|
3258
3913
|
singleton_default(),
|
|
3259
|
-
|
|
3914
|
+
_ts_param18(0, inject_default(RegisterComponent)),
|
|
3915
|
+
_ts_metadata18("design:type", Function),
|
|
3916
|
+
_ts_metadata18("design:paramtypes", [
|
|
3917
|
+
typeof RegisterComponent === "undefined" ? Object : RegisterComponent
|
|
3918
|
+
])
|
|
3260
3919
|
], RegisterController);
|
|
3261
3920
|
|
|
3262
3921
|
// src/common/serializers/object3d.serializer.ts
|
|
@@ -3276,80 +3935,86 @@ var object3DSerializer = {
|
|
|
3276
3935
|
|
|
3277
3936
|
// src/common/models/register-props.model.ts
|
|
3278
3937
|
var RegisterPropsModel = class {
|
|
3938
|
+
static {
|
|
3939
|
+
__name(this, "RegisterPropsModel");
|
|
3940
|
+
}
|
|
3279
3941
|
/**
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
|
|
3283
|
-
|
|
3942
|
+
* @description The app worker logic location.
|
|
3943
|
+
*
|
|
3944
|
+
* @required
|
|
3945
|
+
*/
|
|
3284
3946
|
location;
|
|
3285
3947
|
/**
|
|
3286
|
-
|
|
3287
|
-
|
|
3288
|
-
|
|
3289
|
-
|
|
3948
|
+
* @description App `canvas` element reference.
|
|
3949
|
+
*
|
|
3950
|
+
* @default undefined
|
|
3951
|
+
*/
|
|
3290
3952
|
canvas;
|
|
3291
3953
|
/**
|
|
3292
|
-
|
|
3293
|
-
|
|
3294
|
-
|
|
3295
|
-
|
|
3954
|
+
* @description Set the `canvas` view in fullscreen and auto-resize it.
|
|
3955
|
+
*
|
|
3956
|
+
* @default true
|
|
3957
|
+
*/
|
|
3296
3958
|
fullScreen;
|
|
3297
3959
|
/**
|
|
3298
|
-
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
|
|
3303
|
-
|
|
3960
|
+
* Default used camera.
|
|
3961
|
+
*
|
|
3962
|
+
* @see {@link DefaultCameraType}
|
|
3963
|
+
*
|
|
3964
|
+
* @default DefaultCameraType.PERSPECTIVE
|
|
3965
|
+
*/
|
|
3304
3966
|
defaultCamera;
|
|
3305
3967
|
/**
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
|
|
3968
|
+
* @description Start timer update on launch.
|
|
3969
|
+
*
|
|
3970
|
+
* @default true
|
|
3971
|
+
*/
|
|
3310
3972
|
startTimer;
|
|
3311
3973
|
/**
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
|
|
3974
|
+
* Enable the debug mode
|
|
3975
|
+
*
|
|
3976
|
+
* @default undefined
|
|
3977
|
+
*/
|
|
3316
3978
|
enableDebug;
|
|
3317
3979
|
/**
|
|
3318
|
-
|
|
3319
|
-
|
|
3320
|
-
|
|
3321
|
-
|
|
3322
|
-
|
|
3323
|
-
|
|
3324
|
-
|
|
3980
|
+
* Define the {@link THREE.AxesHelper} sizes.
|
|
3981
|
+
*
|
|
3982
|
+
* @remark __Deactivated if the value is `0` or `undefined`__
|
|
3983
|
+
* @remark __This property depends on {@link RegisterPropsModel.enableDebug}__
|
|
3984
|
+
*
|
|
3985
|
+
* @default undefined
|
|
3986
|
+
*/
|
|
3325
3987
|
axesSizes;
|
|
3326
3988
|
/**
|
|
3327
|
-
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
|
|
3332
|
-
|
|
3333
|
-
|
|
3989
|
+
* Define the {@link THREE.GridHelper} sizes.
|
|
3990
|
+
*
|
|
3991
|
+
* @remark __Deactivated if the value is `0` or `undefined`__
|
|
3992
|
+
* @remark __This property depends on {@link RegisterPropsModel.enableDebug}__
|
|
3993
|
+
*
|
|
3994
|
+
* @default undefined
|
|
3995
|
+
*/
|
|
3334
3996
|
gridSizes;
|
|
3335
3997
|
/**
|
|
3336
|
-
|
|
3337
|
-
|
|
3338
|
-
|
|
3339
|
-
|
|
3340
|
-
|
|
3341
|
-
|
|
3998
|
+
* Display a mini perfective camera at the top right corner of the screen.
|
|
3999
|
+
*
|
|
4000
|
+
* @remark __This property depends on {@link RegisterPropsModel.enableDebug}__
|
|
4001
|
+
*
|
|
4002
|
+
* @default false
|
|
4003
|
+
*/
|
|
3342
4004
|
withMiniCamera;
|
|
3343
4005
|
/**
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
|
|
4006
|
+
* @description Handler called when the app is ready.
|
|
4007
|
+
*
|
|
4008
|
+
* @default undefined
|
|
4009
|
+
*/
|
|
3348
4010
|
onReady;
|
|
3349
4011
|
};
|
|
3350
4012
|
|
|
3351
4013
|
// src/common/models/register-proxy-event-handler.model.ts
|
|
3352
4014
|
var RegisterProxyEventHandlersModel = class {
|
|
4015
|
+
static {
|
|
4016
|
+
__name(this, "RegisterProxyEventHandlersModel");
|
|
4017
|
+
}
|
|
3353
4018
|
contextmenu$;
|
|
3354
4019
|
resize$;
|
|
3355
4020
|
mousedown$;
|
|
@@ -3367,33 +4032,46 @@ var RegisterProxyEventHandlersModel = class {
|
|
|
3367
4032
|
};
|
|
3368
4033
|
|
|
3369
4034
|
// src/core/register/register.module.ts
|
|
4035
|
+
function _ts_decorate27(decorators, target, key, desc) {
|
|
4036
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4037
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4038
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
4039
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
4040
|
+
}
|
|
4041
|
+
__name(_ts_decorate27, "_ts_decorate");
|
|
4042
|
+
function _ts_metadata19(k, v) {
|
|
4043
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
4044
|
+
}
|
|
4045
|
+
__name(_ts_metadata19, "_ts_metadata");
|
|
4046
|
+
function _ts_param19(paramIndex, decorator) {
|
|
4047
|
+
return function(target, key) {
|
|
4048
|
+
decorator(target, key, paramIndex);
|
|
4049
|
+
};
|
|
4050
|
+
}
|
|
4051
|
+
__name(_ts_param19, "_ts_param");
|
|
3370
4052
|
var RegisterModule = class extends RegisterProxyEventHandlersModel {
|
|
4053
|
+
static {
|
|
4054
|
+
__name(this, "RegisterModule");
|
|
4055
|
+
}
|
|
4056
|
+
component;
|
|
4057
|
+
controller;
|
|
4058
|
+
registerProps;
|
|
3371
4059
|
constructor(component, controller, registerProps) {
|
|
3372
|
-
super();
|
|
3373
|
-
this.component = component;
|
|
3374
|
-
this.controller = controller;
|
|
3375
|
-
this.registerProps = registerProps;
|
|
4060
|
+
super(), this.component = component, this.controller = controller, this.registerProps = registerProps;
|
|
3376
4061
|
this.init();
|
|
3377
4062
|
}
|
|
3378
4063
|
async _initCanvas() {
|
|
3379
4064
|
try {
|
|
3380
4065
|
this.component.canvas = document.createElement("canvas");
|
|
3381
|
-
if (this.registerProps.canvas instanceof HTMLCanvasElement)
|
|
3382
|
-
this.component.canvas = this.registerProps.canvas;
|
|
4066
|
+
if (this.registerProps.canvas instanceof HTMLCanvasElement) this.component.canvas = this.registerProps.canvas;
|
|
3383
4067
|
if (typeof this.registerProps.canvas === "string") {
|
|
3384
|
-
const canvas_ = document.querySelector(
|
|
3385
|
-
|
|
3386
|
-
);
|
|
3387
|
-
if (canvas_ instanceof HTMLCanvasElement)
|
|
3388
|
-
this.component.canvas = canvas_;
|
|
4068
|
+
const canvas_ = document.querySelector(this.registerProps.canvas);
|
|
4069
|
+
if (canvas_ instanceof HTMLCanvasElement) this.component.canvas = canvas_;
|
|
3389
4070
|
}
|
|
3390
|
-
if (!this.component.canvas.parentElement)
|
|
3391
|
-
document.body.appendChild(this.component.canvas);
|
|
4071
|
+
if (!this.component.canvas.parentElement) document.body.appendChild(this.component.canvas);
|
|
3392
4072
|
} catch (err) {
|
|
3393
|
-
console.error(
|
|
3394
|
-
|
|
3395
|
-
${err?.message ?? "Something went wrong"}`
|
|
3396
|
-
);
|
|
4073
|
+
console.error(`\u{1F6D1} Unable to initialize the canvas:
|
|
4074
|
+
${err?.message ?? "Something went wrong"}`);
|
|
3397
4075
|
}
|
|
3398
4076
|
}
|
|
3399
4077
|
async _initComponent() {
|
|
@@ -3406,12 +4084,13 @@ ${err?.message ?? "Something went wrong"}`
|
|
|
3406
4084
|
this.controller.init(this.component.canvas);
|
|
3407
4085
|
if (!this.component.thread || !this.component.worker) return;
|
|
3408
4086
|
this.component.thread?.resize?.({
|
|
3409
|
-
...this.controller.uiEventHandler({
|
|
4087
|
+
...this.controller.uiEventHandler({
|
|
4088
|
+
type: "resize"
|
|
4089
|
+
})
|
|
3410
4090
|
});
|
|
3411
4091
|
this.component.thread?.lifecycle$().subscribe((state) => {
|
|
3412
|
-
if (state ===
|
|
3413
|
-
|
|
3414
|
-
if (state === 2 /* STEP_ENDED */) this.component.stats?.end();
|
|
4092
|
+
if (state === AppLifecycleState.STEP_STARTED) this.component.stats?.begin();
|
|
4093
|
+
if (state === AppLifecycleState.STEP_ENDED) this.component.stats?.end();
|
|
3415
4094
|
});
|
|
3416
4095
|
}
|
|
3417
4096
|
async _initWorkerThread() {
|
|
@@ -3429,18 +4108,17 @@ ${err?.message ?? "Something went wrong"}`
|
|
|
3429
4108
|
]),
|
|
3430
4109
|
canvas: offscreenCanvas
|
|
3431
4110
|
},
|
|
3432
|
-
transferSubject: [
|
|
4111
|
+
transferSubject: [
|
|
4112
|
+
offscreenCanvas
|
|
4113
|
+
]
|
|
3433
4114
|
}
|
|
3434
4115
|
});
|
|
3435
|
-
if (!app.thread || !app.worker)
|
|
3436
|
-
throw new Error("Unable to retrieve app worker info.");
|
|
4116
|
+
if (!app.thread || !app.worker) throw new Error("Unable to retrieve app worker info.");
|
|
3437
4117
|
this.component.worker = app.worker;
|
|
3438
4118
|
this.component.thread = app.thread;
|
|
3439
4119
|
}
|
|
3440
4120
|
async _initProxyEvents() {
|
|
3441
|
-
PROXY_EVENT_LISTENERS.forEach(
|
|
3442
|
-
(key) => this[`${key}$`] = () => this.controller?.[`${key}$`]
|
|
3443
|
-
);
|
|
4121
|
+
PROXY_EVENT_LISTENERS.forEach((key) => this[`${key}$`] = () => this.controller?.[`${key}$`]);
|
|
3444
4122
|
}
|
|
3445
4123
|
async init() {
|
|
3446
4124
|
(0, import_threads.registerSerializer)(object3DSerializer);
|
|
@@ -3449,7 +4127,7 @@ ${err?.message ?? "Something went wrong"}`
|
|
|
3449
4127
|
await this._initComponent();
|
|
3450
4128
|
await this._initController();
|
|
3451
4129
|
await this._initProxyEvents();
|
|
3452
|
-
this.controller.lifecycle$$.next(
|
|
4130
|
+
this.controller.lifecycle$$.next(RegisterLifecycleState.INITIALIZED);
|
|
3453
4131
|
this.registerProps.onReady?.(this);
|
|
3454
4132
|
}
|
|
3455
4133
|
async loadResources(props) {
|
|
@@ -3466,11 +4144,9 @@ ${err?.message ?? "Something went wrong"}`
|
|
|
3466
4144
|
});
|
|
3467
4145
|
loaderWorkerThread.thread?.progressCompleted$().subscribe((resource) => {
|
|
3468
4146
|
props.onProgressComplete?.(resource);
|
|
3469
|
-
if (props.disposeOnComplete || props.disposeOnComplete === void 0)
|
|
3470
|
-
loaderWorkerThread.thread?.dispose();
|
|
4147
|
+
if (props.disposeOnComplete || props.disposeOnComplete === void 0) loaderWorkerThread.thread?.dispose();
|
|
3471
4148
|
});
|
|
3472
|
-
if (props.immediateLoad || props.immediateLoad === void 0)
|
|
3473
|
-
await loaderWorkerThread.thread?.load();
|
|
4149
|
+
if (props.immediateLoad || props.immediateLoad === void 0) await loaderWorkerThread.thread?.load();
|
|
3474
4150
|
return {
|
|
3475
4151
|
...loaderWorkerThread,
|
|
3476
4152
|
load: await loaderWorkerThread.thread?.load,
|
|
@@ -3498,40 +4174,48 @@ ${err?.message ?? "Something went wrong"}`
|
|
|
3498
4174
|
}
|
|
3499
4175
|
dispose() {
|
|
3500
4176
|
this.component.workerPool.terminateAll();
|
|
3501
|
-
this.controller.lifecycle$$.next(
|
|
4177
|
+
this.controller.lifecycle$$.next(RegisterLifecycleState.DISPOSED);
|
|
3502
4178
|
}
|
|
3503
4179
|
lifecycle$() {
|
|
3504
4180
|
return this.controller.lifecycle$;
|
|
3505
4181
|
}
|
|
3506
4182
|
};
|
|
3507
|
-
RegisterModule =
|
|
4183
|
+
RegisterModule = _ts_decorate27([
|
|
3508
4184
|
singleton_default(),
|
|
3509
|
-
|
|
3510
|
-
|
|
3511
|
-
|
|
4185
|
+
_ts_param19(0, inject_default(RegisterComponent)),
|
|
4186
|
+
_ts_param19(1, inject_default(RegisterController)),
|
|
4187
|
+
_ts_param19(2, inject_default(RegisterPropsModel)),
|
|
4188
|
+
_ts_metadata19("design:type", Function),
|
|
4189
|
+
_ts_metadata19("design:paramtypes", [
|
|
4190
|
+
typeof RegisterComponent === "undefined" ? Object : RegisterComponent,
|
|
4191
|
+
typeof RegisterController === "undefined" ? Object : RegisterController,
|
|
4192
|
+
typeof RegisterPropsModel === "undefined" ? Object : RegisterPropsModel
|
|
4193
|
+
])
|
|
3512
4194
|
], RegisterModule);
|
|
3513
4195
|
|
|
3514
4196
|
// src/core/register/register.util.ts
|
|
3515
4197
|
var import_utils6 = require("@quick-threejs/utils");
|
|
3516
|
-
var register = (props) => {
|
|
3517
|
-
if (typeof props?.location !== "string" && !(props?.location instanceof URL))
|
|
3518
|
-
|
|
3519
|
-
"Invalid register props detected. location path is required"
|
|
3520
|
-
);
|
|
3521
|
-
props.defaultCamera = !(props?.defaultCamera && props.defaultCamera in DefaultCameraType) ? 0 /* PERSPECTIVE */ : props.defaultCamera;
|
|
4198
|
+
var register = /* @__PURE__ */ __name((props) => {
|
|
4199
|
+
if (typeof props?.location !== "string" && !(props?.location instanceof URL)) throw new Error("Invalid register props detected. location path is required");
|
|
4200
|
+
props.defaultCamera = !(props?.defaultCamera && props.defaultCamera in DefaultCameraType) ? DefaultCameraType.PERSPECTIVE : props.defaultCamera;
|
|
3522
4201
|
props.withMiniCamera = (0, import_utils6.isUndefined)(props.withMiniCamera) || !(0, import_utils6.isBoolean)(props.withMiniCamera) ? false : props.withMiniCamera;
|
|
3523
4202
|
props.startTimer = (0, import_utils6.isUndefined)(props.startTimer) || !(0, import_utils6.isBoolean)(props.startTimer) ? true : props.startTimer;
|
|
3524
4203
|
props.fullScreen = (0, import_utils6.isUndefined)(props.fullScreen) || !(0, import_utils6.isBoolean)(props.fullScreen) ? true : props.fullScreen;
|
|
3525
4204
|
props.onReady = !(0, import_utils6.isFunction)(props.onReady) ? void 0 : props.onReady;
|
|
3526
|
-
instance.register(RegisterPropsModel, {
|
|
4205
|
+
instance.register(RegisterPropsModel, {
|
|
4206
|
+
useValue: props
|
|
4207
|
+
});
|
|
3527
4208
|
return instance.resolve(RegisterModule);
|
|
3528
|
-
};
|
|
4209
|
+
}, "register");
|
|
3529
4210
|
|
|
3530
4211
|
// src/common/models/launch-app-props.model.ts
|
|
3531
4212
|
var LaunchAppProps = class {
|
|
4213
|
+
static {
|
|
4214
|
+
__name(this, "LaunchAppProps");
|
|
4215
|
+
}
|
|
3532
4216
|
/**
|
|
3533
|
-
|
|
3534
|
-
|
|
4217
|
+
* @description Handler triggered when the app is ready.
|
|
4218
|
+
*/
|
|
3535
4219
|
onReady;
|
|
3536
4220
|
};
|
|
3537
4221
|
// Annotate the CommonJS export names for ESM import in node:
|