@quick-threejs/reactive 0.1.26 → 0.1.28
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.
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var p = (t, e, r) =>
|
|
4
|
-
import { EventDispatcher as
|
|
5
|
-
var
|
|
6
|
-
function
|
|
1
|
+
var Oi = Object.defineProperty;
|
|
2
|
+
var Mi = (t, e, r) => e in t ? Oi(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
|
|
3
|
+
var p = (t, e, r) => Mi(t, typeof e != "symbol" ? e + "" : e, r);
|
|
4
|
+
import { EventDispatcher as Ri, ObjectLoader as ji, PerspectiveCamera as Ie, OrthographicCamera as mt, Camera as Xe, Scene as In, Ray as $i, Plane as xi, MathUtils as Di, Vector3 as le, Controls as ki, MOUSE as Fe, TOUCH as ze, Quaternion as Lr, Spherical as Wr, Vector2 as ae, CameraHelper as Ai, AxesHelper as Ii, GridHelper as zi, WebGLRenderer as Nr, PCFSoftShadowMap as Fi, SRGBColorSpace as Li, CineonToneMapping as Wi, AnimationClip as Ni } from "three";
|
|
5
|
+
var qr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
6
|
+
function qi(t) {
|
|
7
7
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function Hi(t) {
|
|
10
10
|
if (t.__esModule) return t;
|
|
11
11
|
var e = t.default;
|
|
12
12
|
if (typeof e == "function") {
|
|
@@ -25,7 +25,7 @@ function Ni(t) {
|
|
|
25
25
|
});
|
|
26
26
|
}), r;
|
|
27
27
|
}
|
|
28
|
-
var
|
|
28
|
+
var Hr = {};
|
|
29
29
|
/*! *****************************************************************************
|
|
30
30
|
Copyright (C) Microsoft. All rights reserved.
|
|
31
31
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
@@ -40,14 +40,14 @@ MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
|
40
40
|
See the Apache Version 2.0 License for specific language governing permissions
|
|
41
41
|
and limitations under the License.
|
|
42
42
|
***************************************************************************** */
|
|
43
|
-
var
|
|
44
|
-
function
|
|
45
|
-
if (
|
|
46
|
-
|
|
43
|
+
var Ur;
|
|
44
|
+
function Ui() {
|
|
45
|
+
if (Ur) return Hr;
|
|
46
|
+
Ur = 1;
|
|
47
47
|
var t;
|
|
48
48
|
return function(e) {
|
|
49
49
|
(function(r) {
|
|
50
|
-
var n = typeof globalThis == "object" ? globalThis : typeof
|
|
50
|
+
var n = typeof globalThis == "object" ? globalThis : typeof qr == "object" ? qr : typeof self == "object" ? self : typeof this == "object" ? this : u(), i = s(e);
|
|
51
51
|
typeof n.Reflect < "u" && (i = s(n.Reflect, i)), r(i, n), typeof n.Reflect > "u" && (n.Reflect = e);
|
|
52
52
|
function s(c, l) {
|
|
53
53
|
return function(f, v) {
|
|
@@ -89,16 +89,16 @@ function qi() {
|
|
|
89
89
|
} : function(h, d) {
|
|
90
90
|
return h[d];
|
|
91
91
|
}
|
|
92
|
-
}, v = Object.getPrototypeOf(Function), w = typeof Map == "function" && typeof Map.prototype.entries == "function" ? Map :
|
|
92
|
+
}, v = Object.getPrototypeOf(Function), w = typeof Map == "function" && typeof Map.prototype.entries == "function" ? Map : Pi(), z = typeof Set == "function" && typeof Set.prototype.entries == "function" ? Set : Si(), D = typeof WeakMap == "function" ? WeakMap : Ci(), F = s ? Symbol.for("@reflect-metadata:registry") : void 0, _ = bi(), C = wi(_);
|
|
93
93
|
function P(h, d, m, S) {
|
|
94
94
|
if (A(m)) {
|
|
95
|
-
if (
|
|
95
|
+
if (!$r(h))
|
|
96
96
|
throw new TypeError();
|
|
97
|
-
if (
|
|
97
|
+
if (!xr(d))
|
|
98
98
|
throw new TypeError();
|
|
99
99
|
return te(h, d);
|
|
100
100
|
} else {
|
|
101
|
-
if (
|
|
101
|
+
if (!$r(h))
|
|
102
102
|
throw new TypeError();
|
|
103
103
|
if (!Q(d))
|
|
104
104
|
throw new TypeError();
|
|
@@ -112,7 +112,7 @@ function qi() {
|
|
|
112
112
|
function m(S, $) {
|
|
113
113
|
if (!Q(S))
|
|
114
114
|
throw new TypeError();
|
|
115
|
-
if (!A($) && !
|
|
115
|
+
if (!A($) && !yi($))
|
|
116
116
|
throw new TypeError();
|
|
117
117
|
ue(h, d, S, $);
|
|
118
118
|
}
|
|
@@ -158,7 +158,7 @@ function qi() {
|
|
|
158
158
|
function k(h, d) {
|
|
159
159
|
if (!Q(h))
|
|
160
160
|
throw new TypeError();
|
|
161
|
-
return A(d) || (d = ce(d)),
|
|
161
|
+
return A(d) || (d = ce(d)), Mr(h, d);
|
|
162
162
|
}
|
|
163
163
|
r("getOwnMetadataKeys", k);
|
|
164
164
|
function q(h, d, m) {
|
|
@@ -180,7 +180,7 @@ function qi() {
|
|
|
180
180
|
for (var m = h.length - 1; m >= 0; --m) {
|
|
181
181
|
var S = h[m], $ = S(d);
|
|
182
182
|
if (!A($) && !ke($)) {
|
|
183
|
-
if (
|
|
183
|
+
if (!xr($))
|
|
184
184
|
throw new TypeError();
|
|
185
185
|
d = $;
|
|
186
186
|
}
|
|
@@ -212,7 +212,7 @@ function qi() {
|
|
|
212
212
|
/*Create*/
|
|
213
213
|
!1
|
|
214
214
|
);
|
|
215
|
-
return A(S) ? !1 :
|
|
215
|
+
return A(S) ? !1 : jr(S.OrdinaryHasOwnMetadata(h, d, m));
|
|
216
216
|
}
|
|
217
217
|
function at(h, d, m) {
|
|
218
218
|
var S = fe(h, d, m);
|
|
@@ -242,7 +242,7 @@ function qi() {
|
|
|
242
242
|
$.OrdinaryDefineOwnMetadata(h, d, m, S);
|
|
243
243
|
}
|
|
244
244
|
function De(h, d) {
|
|
245
|
-
var m =
|
|
245
|
+
var m = Mr(h, d), S = xt(h);
|
|
246
246
|
if (S === null)
|
|
247
247
|
return m;
|
|
248
248
|
var $ = De(S, d);
|
|
@@ -260,7 +260,7 @@ function qi() {
|
|
|
260
260
|
}
|
|
261
261
|
return K;
|
|
262
262
|
}
|
|
263
|
-
function
|
|
263
|
+
function Mr(h, d) {
|
|
264
264
|
var m = Be(
|
|
265
265
|
h,
|
|
266
266
|
d,
|
|
@@ -269,7 +269,7 @@ function qi() {
|
|
|
269
269
|
);
|
|
270
270
|
return m ? m.OrdinaryOwnMetadataKeys(h, d) : [];
|
|
271
271
|
}
|
|
272
|
-
function
|
|
272
|
+
function Rr(h) {
|
|
273
273
|
if (h === null)
|
|
274
274
|
return 1;
|
|
275
275
|
switch (typeof h) {
|
|
@@ -295,14 +295,14 @@ function qi() {
|
|
|
295
295
|
function ke(h) {
|
|
296
296
|
return h === null;
|
|
297
297
|
}
|
|
298
|
-
function
|
|
298
|
+
function di(h) {
|
|
299
299
|
return typeof h == "symbol";
|
|
300
300
|
}
|
|
301
301
|
function Q(h) {
|
|
302
302
|
return typeof h == "object" ? h !== null : typeof h == "function";
|
|
303
303
|
}
|
|
304
|
-
function
|
|
305
|
-
switch (
|
|
304
|
+
function pi(h, d) {
|
|
305
|
+
switch (Rr(h)) {
|
|
306
306
|
case 0:
|
|
307
307
|
return h;
|
|
308
308
|
case 1:
|
|
@@ -316,16 +316,16 @@ function qi() {
|
|
|
316
316
|
case 5:
|
|
317
317
|
return h;
|
|
318
318
|
}
|
|
319
|
-
var m = "string", S =
|
|
319
|
+
var m = "string", S = Dr(h, o);
|
|
320
320
|
if (S !== void 0) {
|
|
321
321
|
var $ = S.call(h, m);
|
|
322
322
|
if (Q($))
|
|
323
323
|
throw new TypeError();
|
|
324
324
|
return $;
|
|
325
325
|
}
|
|
326
|
-
return
|
|
326
|
+
return mi(h);
|
|
327
327
|
}
|
|
328
|
-
function
|
|
328
|
+
function mi(h, d) {
|
|
329
329
|
var m, S;
|
|
330
330
|
{
|
|
331
331
|
var $ = h.toString;
|
|
@@ -343,27 +343,27 @@ function qi() {
|
|
|
343
343
|
}
|
|
344
344
|
throw new TypeError();
|
|
345
345
|
}
|
|
346
|
-
function
|
|
346
|
+
function jr(h) {
|
|
347
347
|
return !!h;
|
|
348
348
|
}
|
|
349
|
-
function
|
|
349
|
+
function vi(h) {
|
|
350
350
|
return "" + h;
|
|
351
351
|
}
|
|
352
352
|
function ce(h) {
|
|
353
|
-
var d =
|
|
354
|
-
return
|
|
353
|
+
var d = pi(h);
|
|
354
|
+
return di(d) ? d : vi(d);
|
|
355
355
|
}
|
|
356
|
-
function
|
|
356
|
+
function $r(h) {
|
|
357
357
|
return Array.isArray ? Array.isArray(h) : h instanceof Object ? h instanceof Array : Object.prototype.toString.call(h) === "[object Array]";
|
|
358
358
|
}
|
|
359
359
|
function ut(h) {
|
|
360
360
|
return typeof h == "function";
|
|
361
361
|
}
|
|
362
|
-
function
|
|
362
|
+
function xr(h) {
|
|
363
363
|
return typeof h == "function";
|
|
364
364
|
}
|
|
365
|
-
function
|
|
366
|
-
switch (
|
|
365
|
+
function yi(h) {
|
|
366
|
+
switch (Rr(h)) {
|
|
367
367
|
case 3:
|
|
368
368
|
return !0;
|
|
369
369
|
case 4:
|
|
@@ -375,7 +375,7 @@ function qi() {
|
|
|
375
375
|
function $t(h, d) {
|
|
376
376
|
return h === d || h !== h && d !== d;
|
|
377
377
|
}
|
|
378
|
-
function
|
|
378
|
+
function Dr(h, d) {
|
|
379
379
|
var m = h[d];
|
|
380
380
|
if (m != null) {
|
|
381
381
|
if (!ut(m))
|
|
@@ -383,8 +383,8 @@ function qi() {
|
|
|
383
383
|
return m;
|
|
384
384
|
}
|
|
385
385
|
}
|
|
386
|
-
function
|
|
387
|
-
var d =
|
|
386
|
+
function kr(h) {
|
|
387
|
+
var d = Dr(h, a);
|
|
388
388
|
if (!ut(d))
|
|
389
389
|
throw new TypeError();
|
|
390
390
|
var m = d.call(h);
|
|
@@ -392,14 +392,14 @@ function qi() {
|
|
|
392
392
|
throw new TypeError();
|
|
393
393
|
return m;
|
|
394
394
|
}
|
|
395
|
-
function
|
|
395
|
+
function Ar(h) {
|
|
396
396
|
return h.value;
|
|
397
397
|
}
|
|
398
|
-
function
|
|
398
|
+
function Ir(h) {
|
|
399
399
|
var d = h.next();
|
|
400
400
|
return d.done ? !1 : d;
|
|
401
401
|
}
|
|
402
|
-
function
|
|
402
|
+
function zr(h) {
|
|
403
403
|
var d = h.return;
|
|
404
404
|
d && d.call(h);
|
|
405
405
|
}
|
|
@@ -413,9 +413,9 @@ function qi() {
|
|
|
413
413
|
var $ = S.constructor;
|
|
414
414
|
return typeof $ != "function" || $ === h ? d : $;
|
|
415
415
|
}
|
|
416
|
-
function
|
|
416
|
+
function _i() {
|
|
417
417
|
var h;
|
|
418
|
-
!A(F) && typeof n.Reflect < "u" && !(F in n.Reflect) && typeof n.Reflect.defineMetadata == "function" && (h =
|
|
418
|
+
!A(F) && typeof n.Reflect < "u" && !(F in n.Reflect) && typeof n.Reflect.defineMetadata == "function" && (h = gi(n.Reflect));
|
|
419
419
|
var d, m, S, $ = new D(), J = {
|
|
420
420
|
registerProvider: K,
|
|
421
421
|
getProvider: E,
|
|
@@ -451,13 +451,13 @@ function qi() {
|
|
|
451
451
|
if (m.isProviderFor(R, W))
|
|
452
452
|
return d;
|
|
453
453
|
if (!A(S))
|
|
454
|
-
for (var U =
|
|
455
|
-
var V =
|
|
454
|
+
for (var U = kr(S); ; ) {
|
|
455
|
+
var V = Ir(U);
|
|
456
456
|
if (!V)
|
|
457
457
|
return;
|
|
458
|
-
var oe =
|
|
458
|
+
var oe = Ar(V);
|
|
459
459
|
if (oe.isProviderFor(R, W))
|
|
460
|
-
return
|
|
460
|
+
return zr(U), oe;
|
|
461
461
|
}
|
|
462
462
|
}
|
|
463
463
|
}
|
|
@@ -486,16 +486,16 @@ function qi() {
|
|
|
486
486
|
return !0;
|
|
487
487
|
}
|
|
488
488
|
}
|
|
489
|
-
function
|
|
489
|
+
function bi() {
|
|
490
490
|
var h;
|
|
491
|
-
return !A(F) && Q(n.Reflect) && Object.isExtensible(n.Reflect) && (h = n.Reflect[F]), A(h) && (h =
|
|
491
|
+
return !A(F) && Q(n.Reflect) && Object.isExtensible(n.Reflect) && (h = n.Reflect[F]), A(h) && (h = _i()), !A(F) && Q(n.Reflect) && Object.isExtensible(n.Reflect) && Object.defineProperty(n.Reflect, F, {
|
|
492
492
|
enumerable: !1,
|
|
493
493
|
configurable: !1,
|
|
494
494
|
writable: !1,
|
|
495
495
|
value: h
|
|
496
496
|
}), h;
|
|
497
497
|
}
|
|
498
|
-
function
|
|
498
|
+
function wi(h) {
|
|
499
499
|
var d = new D(), m = {
|
|
500
500
|
isProviderFor: function(T, O) {
|
|
501
501
|
var R = d.get(T);
|
|
@@ -531,7 +531,7 @@ function qi() {
|
|
|
531
531
|
/*Create*/
|
|
532
532
|
!1
|
|
533
533
|
);
|
|
534
|
-
return A(W) ? !1 :
|
|
534
|
+
return A(W) ? !1 : jr(W.has(T));
|
|
535
535
|
}
|
|
536
536
|
function J(T, O, R) {
|
|
537
537
|
var W = S(
|
|
@@ -561,18 +561,18 @@ function qi() {
|
|
|
561
561
|
);
|
|
562
562
|
if (A(W))
|
|
563
563
|
return R;
|
|
564
|
-
for (var U = W.keys(), V =
|
|
565
|
-
var
|
|
566
|
-
if (!
|
|
564
|
+
for (var U = W.keys(), V = kr(U), oe = 0; ; ) {
|
|
565
|
+
var Fr = Ir(V);
|
|
566
|
+
if (!Fr)
|
|
567
567
|
return R.length = oe, R;
|
|
568
|
-
var
|
|
568
|
+
var Ei = Ar(Fr);
|
|
569
569
|
try {
|
|
570
|
-
R[oe] =
|
|
571
|
-
} catch (
|
|
570
|
+
R[oe] = Ei;
|
|
571
|
+
} catch (Ti) {
|
|
572
572
|
try {
|
|
573
|
-
|
|
573
|
+
zr(V);
|
|
574
574
|
} finally {
|
|
575
|
-
throw
|
|
575
|
+
throw Ti;
|
|
576
576
|
}
|
|
577
577
|
}
|
|
578
578
|
oe++;
|
|
@@ -594,7 +594,7 @@ function qi() {
|
|
|
594
594
|
return !0;
|
|
595
595
|
}
|
|
596
596
|
}
|
|
597
|
-
function
|
|
597
|
+
function gi(h) {
|
|
598
598
|
var d = h.defineMetadata, m = h.hasOwnMetadata, S = h.getOwnMetadata, $ = h.getOwnMetadataKeys, J = h.deleteMetadata, K = new D(), L = {
|
|
599
599
|
isProviderFor: function(E, T) {
|
|
600
600
|
var O = K.get(E);
|
|
@@ -618,7 +618,7 @@ function qi() {
|
|
|
618
618
|
throw new Error("Illegal state.");
|
|
619
619
|
}
|
|
620
620
|
}
|
|
621
|
-
function
|
|
621
|
+
function Pi() {
|
|
622
622
|
var h = {}, d = [], m = (
|
|
623
623
|
/** @class */
|
|
624
624
|
function() {
|
|
@@ -722,7 +722,7 @@ function qi() {
|
|
|
722
722
|
return [L, E];
|
|
723
723
|
}
|
|
724
724
|
}
|
|
725
|
-
function
|
|
725
|
+
function Si() {
|
|
726
726
|
var h = (
|
|
727
727
|
/** @class */
|
|
728
728
|
function() {
|
|
@@ -758,7 +758,7 @@ function qi() {
|
|
|
758
758
|
);
|
|
759
759
|
return h;
|
|
760
760
|
}
|
|
761
|
-
function
|
|
761
|
+
function Ci() {
|
|
762
762
|
var h = 16, d = f.create(), m = S();
|
|
763
763
|
return (
|
|
764
764
|
/** @class */
|
|
@@ -840,14 +840,14 @@ function qi() {
|
|
|
840
840
|
return h.__ = void 0, delete h.__, h;
|
|
841
841
|
}
|
|
842
842
|
});
|
|
843
|
-
}(t || (t = {})),
|
|
843
|
+
}(t || (t = {})), Hr;
|
|
844
844
|
}
|
|
845
|
-
|
|
846
|
-
var
|
|
845
|
+
Ui();
|
|
846
|
+
var Qt;
|
|
847
847
|
(function(t) {
|
|
848
848
|
t[t.Transient = 0] = "Transient", t[t.Singleton = 1] = "Singleton", t[t.ResolutionScoped = 2] = "ResolutionScoped", t[t.ContainerScoped = 3] = "ContainerScoped";
|
|
849
|
-
})(
|
|
850
|
-
const re =
|
|
849
|
+
})(Qt || (Qt = {}));
|
|
850
|
+
const re = Qt;
|
|
851
851
|
/*! *****************************************************************************
|
|
852
852
|
Copyright (c) Microsoft Corporation.
|
|
853
853
|
|
|
@@ -862,21 +862,21 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
862
862
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
863
863
|
PERFORMANCE OF THIS SOFTWARE.
|
|
864
864
|
***************************************************************************** */
|
|
865
|
-
var
|
|
866
|
-
return
|
|
865
|
+
var Kt = function(t, e) {
|
|
866
|
+
return Kt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
867
867
|
r.__proto__ = n;
|
|
868
868
|
} || function(r, n) {
|
|
869
869
|
for (var i in n) n.hasOwnProperty(i) && (r[i] = n[i]);
|
|
870
|
-
},
|
|
870
|
+
}, Kt(t, e);
|
|
871
871
|
};
|
|
872
|
-
function
|
|
873
|
-
|
|
872
|
+
function br(t, e) {
|
|
873
|
+
Kt(t, e);
|
|
874
874
|
function r() {
|
|
875
875
|
this.constructor = t;
|
|
876
876
|
}
|
|
877
877
|
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
|
|
878
878
|
}
|
|
879
|
-
function
|
|
879
|
+
function Yi(t, e, r, n) {
|
|
880
880
|
function i(s) {
|
|
881
881
|
return s instanceof r ? s : new r(function(o) {
|
|
882
882
|
o(s);
|
|
@@ -903,7 +903,7 @@ function Hi(t, e, r, n) {
|
|
|
903
903
|
c((n = n.apply(t, [])).next());
|
|
904
904
|
});
|
|
905
905
|
}
|
|
906
|
-
function
|
|
906
|
+
function Bi(t, e) {
|
|
907
907
|
var r = { label: 0, sent: function() {
|
|
908
908
|
if (s[0] & 1) throw s[1];
|
|
909
909
|
return s[1];
|
|
@@ -995,26 +995,26 @@ function Oe() {
|
|
|
995
995
|
t = t.concat(wt(arguments[e]));
|
|
996
996
|
return t;
|
|
997
997
|
}
|
|
998
|
-
var
|
|
999
|
-
function
|
|
1000
|
-
var e = Reflect.getMetadata("design:paramtypes", t) || [], r = Reflect.getOwnMetadata(
|
|
998
|
+
var Xt = "injectionTokens";
|
|
999
|
+
function Vi(t) {
|
|
1000
|
+
var e = Reflect.getMetadata("design:paramtypes", t) || [], r = Reflect.getOwnMetadata(Xt, t) || {};
|
|
1001
1001
|
return Object.keys(r).forEach(function(n) {
|
|
1002
1002
|
e[+n] = r[n];
|
|
1003
1003
|
}), e;
|
|
1004
1004
|
}
|
|
1005
|
-
function
|
|
1005
|
+
function Zi(t, e) {
|
|
1006
1006
|
return function(r, n, i) {
|
|
1007
|
-
var s = Reflect.getOwnMetadata(
|
|
1008
|
-
s[i] = t, Reflect.defineMetadata(
|
|
1007
|
+
var s = Reflect.getOwnMetadata(Xt, r) || {};
|
|
1008
|
+
s[i] = t, Reflect.defineMetadata(Xt, s, r);
|
|
1009
1009
|
};
|
|
1010
1010
|
}
|
|
1011
|
-
function
|
|
1011
|
+
function zn(t) {
|
|
1012
1012
|
return !!t.useClass;
|
|
1013
1013
|
}
|
|
1014
|
-
function
|
|
1014
|
+
function Jt(t) {
|
|
1015
1015
|
return !!t.useFactory;
|
|
1016
1016
|
}
|
|
1017
|
-
var
|
|
1017
|
+
var Fn = function() {
|
|
1018
1018
|
function t(e) {
|
|
1019
1019
|
this.wrap = e, this.reflectMethods = [
|
|
1020
1020
|
"get",
|
|
@@ -1051,14 +1051,14 @@ var zn = function() {
|
|
|
1051
1051
|
function Ae(t) {
|
|
1052
1052
|
return typeof t == "string" || typeof t == "symbol";
|
|
1053
1053
|
}
|
|
1054
|
-
function
|
|
1054
|
+
function Gi(t) {
|
|
1055
1055
|
return typeof t == "object" && "token" in t && "multiple" in t;
|
|
1056
1056
|
}
|
|
1057
|
-
function
|
|
1057
|
+
function Yr(t) {
|
|
1058
1058
|
return typeof t == "object" && "token" in t && "transform" in t;
|
|
1059
1059
|
}
|
|
1060
|
-
function
|
|
1061
|
-
return typeof t == "function" || t instanceof
|
|
1060
|
+
function Qi(t) {
|
|
1061
|
+
return typeof t == "function" || t instanceof Fn;
|
|
1062
1062
|
}
|
|
1063
1063
|
function vt(t) {
|
|
1064
1064
|
return !!t.useToken;
|
|
@@ -1066,10 +1066,10 @@ function vt(t) {
|
|
|
1066
1066
|
function yt(t) {
|
|
1067
1067
|
return t.useValue != null;
|
|
1068
1068
|
}
|
|
1069
|
-
function
|
|
1070
|
-
return
|
|
1069
|
+
function Ki(t) {
|
|
1070
|
+
return zn(t) || yt(t) || vt(t) || Jt(t);
|
|
1071
1071
|
}
|
|
1072
|
-
var
|
|
1072
|
+
var wr = function() {
|
|
1073
1073
|
function t() {
|
|
1074
1074
|
this._registryMap = /* @__PURE__ */ new Map();
|
|
1075
1075
|
}
|
|
@@ -1092,66 +1092,66 @@ var br = function() {
|
|
|
1092
1092
|
}, t.prototype.ensure = function(e) {
|
|
1093
1093
|
this._registryMap.has(e) || this._registryMap.set(e, []);
|
|
1094
1094
|
}, t;
|
|
1095
|
-
}(),
|
|
1096
|
-
|
|
1095
|
+
}(), Xi = function(t) {
|
|
1096
|
+
br(e, t);
|
|
1097
1097
|
function e() {
|
|
1098
1098
|
return t !== null && t.apply(this, arguments) || this;
|
|
1099
1099
|
}
|
|
1100
1100
|
return e;
|
|
1101
|
-
}(
|
|
1101
|
+
}(wr), Br = /* @__PURE__ */ function() {
|
|
1102
1102
|
function t() {
|
|
1103
1103
|
this.scopedResolutions = /* @__PURE__ */ new Map();
|
|
1104
1104
|
}
|
|
1105
1105
|
return t;
|
|
1106
1106
|
}();
|
|
1107
|
-
function
|
|
1107
|
+
function Ji(t, e) {
|
|
1108
1108
|
if (t === null)
|
|
1109
1109
|
return "at position #" + e;
|
|
1110
1110
|
var r = t.split(",")[e].trim();
|
|
1111
1111
|
return '"' + r + '" at position #' + e;
|
|
1112
1112
|
}
|
|
1113
|
-
function
|
|
1113
|
+
function es(t, e, r) {
|
|
1114
1114
|
return r === void 0 && (r = " "), Oe([t], e.message.split(`
|
|
1115
1115
|
`).map(function(n) {
|
|
1116
1116
|
return r + n;
|
|
1117
1117
|
})).join(`
|
|
1118
1118
|
`);
|
|
1119
1119
|
}
|
|
1120
|
-
function
|
|
1121
|
-
var n = wt(t.toString().match(/constructor\(([\w, ]+)\)/) || [], 2), i = n[1], s = i === void 0 ? null : i, o =
|
|
1122
|
-
return
|
|
1120
|
+
function ts(t, e, r) {
|
|
1121
|
+
var n = wt(t.toString().match(/constructor\(([\w, ]+)\)/) || [], 2), i = n[1], s = i === void 0 ? null : i, o = Ji(s, e);
|
|
1122
|
+
return es("Cannot inject the dependency " + o + ' of "' + t.name + '" constructor. Reason:', r);
|
|
1123
1123
|
}
|
|
1124
|
-
function
|
|
1124
|
+
function rs(t) {
|
|
1125
1125
|
if (typeof t.dispose != "function")
|
|
1126
1126
|
return !1;
|
|
1127
1127
|
var e = t.dispose;
|
|
1128
1128
|
return !(e.length > 0);
|
|
1129
1129
|
}
|
|
1130
|
-
var
|
|
1131
|
-
|
|
1130
|
+
var ns = function(t) {
|
|
1131
|
+
br(e, t);
|
|
1132
1132
|
function e() {
|
|
1133
1133
|
return t !== null && t.apply(this, arguments) || this;
|
|
1134
1134
|
}
|
|
1135
1135
|
return e;
|
|
1136
|
-
}(
|
|
1137
|
-
|
|
1136
|
+
}(wr), is = function(t) {
|
|
1137
|
+
br(e, t);
|
|
1138
1138
|
function e() {
|
|
1139
1139
|
return t !== null && t.apply(this, arguments) || this;
|
|
1140
1140
|
}
|
|
1141
1141
|
return e;
|
|
1142
|
-
}(
|
|
1142
|
+
}(wr), ss = /* @__PURE__ */ function() {
|
|
1143
1143
|
function t() {
|
|
1144
|
-
this.preResolution = new
|
|
1144
|
+
this.preResolution = new ns(), this.postResolution = new is();
|
|
1145
1145
|
}
|
|
1146
1146
|
return t;
|
|
1147
|
-
}(),
|
|
1147
|
+
}(), Ln = /* @__PURE__ */ new Map(), os = function() {
|
|
1148
1148
|
function t(e) {
|
|
1149
|
-
this.parent = e, this._registry = new
|
|
1149
|
+
this.parent = e, this._registry = new Xi(), this.interceptors = new ss(), this.disposed = !1, this.disposables = /* @__PURE__ */ new Set();
|
|
1150
1150
|
}
|
|
1151
1151
|
return t.prototype.register = function(e, r, n) {
|
|
1152
1152
|
n === void 0 && (n = { lifecycle: re.Transient }), this.ensureNotDisposed();
|
|
1153
1153
|
var i;
|
|
1154
|
-
if (
|
|
1154
|
+
if (Ki(r) ? i = r : i = { useClass: r }, vt(i))
|
|
1155
1155
|
for (var s = [e], o = i; o != null; ) {
|
|
1156
1156
|
var a = o.useToken;
|
|
1157
1157
|
if (s.includes(a))
|
|
@@ -1160,7 +1160,7 @@ var ts = function(t) {
|
|
|
1160
1160
|
var u = this._registry.get(a);
|
|
1161
1161
|
u && vt(u.provider) ? o = u.provider : o = null;
|
|
1162
1162
|
}
|
|
1163
|
-
if ((n.lifecycle === re.Singleton || n.lifecycle == re.ContainerScoped || n.lifecycle == re.ResolutionScoped) && (yt(i) ||
|
|
1163
|
+
if ((n.lifecycle === re.Singleton || n.lifecycle == re.ContainerScoped || n.lifecycle == re.ResolutionScoped) && (yt(i) || Jt(i)))
|
|
1164
1164
|
throw new Error('Cannot use lifecycle "' + re[n.lifecycle] + '" with ValueProviders or FactoryProviders');
|
|
1165
1165
|
return this._registry.set(e, { provider: i, options: n }), this;
|
|
1166
1166
|
}, t.prototype.registerType = function(e, r) {
|
|
@@ -1190,7 +1190,7 @@ var ts = function(t) {
|
|
|
1190
1190
|
useClass: n
|
|
1191
1191
|
}, { lifecycle: re.Singleton });
|
|
1192
1192
|
}, t.prototype.resolve = function(e, r) {
|
|
1193
|
-
r === void 0 && (r = new
|
|
1193
|
+
r === void 0 && (r = new Br()), this.ensureNotDisposed();
|
|
1194
1194
|
var n = this.getRegistration(e);
|
|
1195
1195
|
if (!n && Ae(e))
|
|
1196
1196
|
throw new Error('Attempted to resolve unregistered dependency token: "' + e.toString() + '"');
|
|
@@ -1198,7 +1198,7 @@ var ts = function(t) {
|
|
|
1198
1198
|
var i = this.resolveRegistration(n, r);
|
|
1199
1199
|
return this.executePostResolutionInterceptor(e, i, "Single"), i;
|
|
1200
1200
|
}
|
|
1201
|
-
if (
|
|
1201
|
+
if (Qi(e)) {
|
|
1202
1202
|
var i = this.construct(e, r);
|
|
1203
1203
|
return this.executePostResolutionInterceptor(e, i, "Single"), i;
|
|
1204
1204
|
}
|
|
@@ -1247,10 +1247,10 @@ var ts = function(t) {
|
|
|
1247
1247
|
if (this.ensureNotDisposed(), e.options.lifecycle === re.ResolutionScoped && r.scopedResolutions.has(e))
|
|
1248
1248
|
return r.scopedResolutions.get(e);
|
|
1249
1249
|
var n = e.options.lifecycle === re.Singleton, i = e.options.lifecycle === re.ContainerScoped, s = n || i, o;
|
|
1250
|
-
return yt(e.provider) ? o = e.provider.useValue : vt(e.provider) ? o = s ? e.instance || (e.instance = this.resolve(e.provider.useToken, r)) : this.resolve(e.provider.useToken, r) :
|
|
1250
|
+
return yt(e.provider) ? o = e.provider.useValue : vt(e.provider) ? o = s ? e.instance || (e.instance = this.resolve(e.provider.useToken, r)) : this.resolve(e.provider.useToken, r) : zn(e.provider) ? o = s ? e.instance || (e.instance = this.construct(e.provider.useClass, r)) : this.construct(e.provider.useClass, r) : Jt(e.provider) ? o = e.provider.useFactory(this) : o = this.construct(e.provider, r), e.options.lifecycle === re.ResolutionScoped && r.scopedResolutions.set(e, o), o;
|
|
1251
1251
|
}, t.prototype.resolveAll = function(e, r) {
|
|
1252
1252
|
var n = this;
|
|
1253
|
-
r === void 0 && (r = new
|
|
1253
|
+
r === void 0 && (r = new Br()), this.ensureNotDisposed();
|
|
1254
1254
|
var i = this.getAllRegistrations(e);
|
|
1255
1255
|
if (!i && Ae(e))
|
|
1256
1256
|
throw new Error('Attempted to resolve unregistered dependency token: "' + e.toString() + '"');
|
|
@@ -1325,9 +1325,9 @@ var ts = function(t) {
|
|
|
1325
1325
|
options: n
|
|
1326
1326
|
});
|
|
1327
1327
|
}, t.prototype.dispose = function() {
|
|
1328
|
-
return
|
|
1328
|
+
return Yi(this, void 0, void 0, function() {
|
|
1329
1329
|
var e;
|
|
1330
|
-
return
|
|
1330
|
+
return Bi(this, function(r) {
|
|
1331
1331
|
switch (r.label) {
|
|
1332
1332
|
case 0:
|
|
1333
1333
|
return this.disposed = !0, e = [], this.disposables.forEach(function(n) {
|
|
@@ -1345,12 +1345,12 @@ var ts = function(t) {
|
|
|
1345
1345
|
return this.isRegistered(e) ? this._registry.getAll(e) : this.parent ? this.parent.getAllRegistrations(e) : null;
|
|
1346
1346
|
}, t.prototype.construct = function(e, r) {
|
|
1347
1347
|
var n = this;
|
|
1348
|
-
if (e instanceof
|
|
1348
|
+
if (e instanceof Fn)
|
|
1349
1349
|
return e.createProxy(function(s) {
|
|
1350
1350
|
return n.resolve(s, r);
|
|
1351
1351
|
});
|
|
1352
1352
|
var i = function() {
|
|
1353
|
-
var s =
|
|
1353
|
+
var s = Ln.get(e);
|
|
1354
1354
|
if (!s || s.length === 0) {
|
|
1355
1355
|
if (e.length === 0)
|
|
1356
1356
|
return new e();
|
|
@@ -1359,50 +1359,50 @@ var ts = function(t) {
|
|
|
1359
1359
|
var o = s.map(n.resolveParams(r, e));
|
|
1360
1360
|
return new (e.bind.apply(e, Oe([void 0], o)))();
|
|
1361
1361
|
}();
|
|
1362
|
-
return
|
|
1362
|
+
return rs(i) && this.disposables.add(i), i;
|
|
1363
1363
|
}, t.prototype.resolveParams = function(e, r) {
|
|
1364
1364
|
var n = this;
|
|
1365
1365
|
return function(i, s) {
|
|
1366
1366
|
var o, a, u;
|
|
1367
1367
|
try {
|
|
1368
|
-
return
|
|
1368
|
+
return Gi(i) ? Yr(i) ? i.multiple ? (o = n.resolve(i.transform)).transform.apply(o, Oe([n.resolveAll(i.token)], i.transformArgs)) : (a = n.resolve(i.transform)).transform.apply(a, Oe([n.resolve(i.token, e)], i.transformArgs)) : i.multiple ? n.resolveAll(i.token) : n.resolve(i.token, e) : Yr(i) ? (u = n.resolve(i.transform, e)).transform.apply(u, Oe([n.resolve(i.token, e)], i.transformArgs)) : n.resolve(i, e);
|
|
1369
1369
|
} catch (c) {
|
|
1370
|
-
throw new Error(
|
|
1370
|
+
throw new Error(ts(r, s, c));
|
|
1371
1371
|
}
|
|
1372
1372
|
};
|
|
1373
1373
|
}, t.prototype.ensureNotDisposed = function() {
|
|
1374
1374
|
if (this.disposed)
|
|
1375
1375
|
throw new Error("This container has been disposed, you cannot interact with a disposed container");
|
|
1376
1376
|
}, t;
|
|
1377
|
-
}(),
|
|
1377
|
+
}(), Wn = new os();
|
|
1378
1378
|
function I(t) {
|
|
1379
|
-
return
|
|
1379
|
+
return Zi(t);
|
|
1380
1380
|
}
|
|
1381
|
-
function
|
|
1381
|
+
function Nn() {
|
|
1382
1382
|
return function(t) {
|
|
1383
|
-
|
|
1383
|
+
Ln.set(t, Vi(t));
|
|
1384
1384
|
};
|
|
1385
1385
|
}
|
|
1386
1386
|
function Z() {
|
|
1387
1387
|
return function(t) {
|
|
1388
|
-
|
|
1388
|
+
Nn()(t), Wn.registerSingleton(t);
|
|
1389
1389
|
};
|
|
1390
1390
|
}
|
|
1391
|
-
function
|
|
1391
|
+
function gr(t, e) {
|
|
1392
1392
|
return function(r) {
|
|
1393
|
-
|
|
1393
|
+
Nn()(r), Wn.register(r, r, {
|
|
1394
1394
|
lifecycle: t
|
|
1395
1395
|
});
|
|
1396
1396
|
};
|
|
1397
1397
|
}
|
|
1398
1398
|
if (typeof Reflect > "u" || !Reflect.getMetadata)
|
|
1399
1399
|
throw new Error(`tsyringe requires a reflect polyfill. Please add 'import "reflect-metadata"' to the top of your entry point.`);
|
|
1400
|
-
const
|
|
1400
|
+
const Du = [
|
|
1401
1401
|
"ArrowUp",
|
|
1402
1402
|
"ArrowDown",
|
|
1403
1403
|
"ArrowLeft",
|
|
1404
1404
|
"ArrowRight"
|
|
1405
|
-
],
|
|
1405
|
+
], qn = [
|
|
1406
1406
|
"contextmenu",
|
|
1407
1407
|
"resize",
|
|
1408
1408
|
"mousedown",
|
|
@@ -1418,8 +1418,8 @@ const xu = [
|
|
|
1418
1418
|
"wheel",
|
|
1419
1419
|
"keydown"
|
|
1420
1420
|
];
|
|
1421
|
-
var
|
|
1422
|
-
class
|
|
1421
|
+
var er = /* @__PURE__ */ ((t) => (t[t.PERSPECTIVE = 0] = "PERSPECTIVE", t[t.ORTHOGRAPHIC = 1] = "ORTHOGRAPHIC", t))(er || {});
|
|
1422
|
+
class as {
|
|
1423
1423
|
constructor() {
|
|
1424
1424
|
p(this, "contextmenu$$");
|
|
1425
1425
|
p(this, "resize$$");
|
|
@@ -1437,7 +1437,7 @@ class ss {
|
|
|
1437
1437
|
p(this, "keydown$$");
|
|
1438
1438
|
}
|
|
1439
1439
|
}
|
|
1440
|
-
class
|
|
1440
|
+
class us extends as {
|
|
1441
1441
|
constructor() {
|
|
1442
1442
|
super(...arguments);
|
|
1443
1443
|
p(this, "contextmenu$");
|
|
@@ -1456,7 +1456,7 @@ class os extends ss {
|
|
|
1456
1456
|
p(this, "keydown$");
|
|
1457
1457
|
}
|
|
1458
1458
|
}
|
|
1459
|
-
class
|
|
1459
|
+
class cs extends us {
|
|
1460
1460
|
constructor() {
|
|
1461
1461
|
super(...arguments);
|
|
1462
1462
|
p(this, "contextmenu");
|
|
@@ -1475,7 +1475,7 @@ class as extends os {
|
|
|
1475
1475
|
p(this, "keydown");
|
|
1476
1476
|
}
|
|
1477
1477
|
}
|
|
1478
|
-
class
|
|
1478
|
+
class ls {
|
|
1479
1479
|
constructor() {
|
|
1480
1480
|
p(this, "contextmenu$");
|
|
1481
1481
|
p(this, "resize$");
|
|
@@ -1507,7 +1507,7 @@ class us {
|
|
|
1507
1507
|
p(this, "keydown");
|
|
1508
1508
|
}
|
|
1509
1509
|
}
|
|
1510
|
-
class
|
|
1510
|
+
class ku {
|
|
1511
1511
|
constructor() {
|
|
1512
1512
|
p(this, "contextmenu$");
|
|
1513
1513
|
p(this, "resize$");
|
|
@@ -1525,24 +1525,24 @@ class Du {
|
|
|
1525
1525
|
p(this, "keydown$");
|
|
1526
1526
|
}
|
|
1527
1527
|
}
|
|
1528
|
-
const
|
|
1529
|
-
var
|
|
1530
|
-
return
|
|
1528
|
+
const Au = "CONTAINER", hs = "LOADER_SERIALIZED_LOAD";
|
|
1529
|
+
var tr = function(t, e) {
|
|
1530
|
+
return tr = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
1531
1531
|
r.__proto__ = n;
|
|
1532
1532
|
} || function(r, n) {
|
|
1533
1533
|
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1534
|
-
},
|
|
1534
|
+
}, tr(t, e);
|
|
1535
1535
|
};
|
|
1536
1536
|
function nt(t, e) {
|
|
1537
1537
|
if (typeof e != "function" && e !== null)
|
|
1538
1538
|
throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
|
|
1539
|
-
|
|
1539
|
+
tr(t, e);
|
|
1540
1540
|
function r() {
|
|
1541
1541
|
this.constructor = t;
|
|
1542
1542
|
}
|
|
1543
1543
|
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
|
|
1544
1544
|
}
|
|
1545
|
-
function
|
|
1545
|
+
function fs(t, e, r, n) {
|
|
1546
1546
|
function i(s) {
|
|
1547
1547
|
return s instanceof r ? s : new r(function(o) {
|
|
1548
1548
|
o(s);
|
|
@@ -1569,7 +1569,7 @@ function ls(t, e, r, n) {
|
|
|
1569
1569
|
c((n = n.apply(t, e || [])).next());
|
|
1570
1570
|
});
|
|
1571
1571
|
}
|
|
1572
|
-
function
|
|
1572
|
+
function Hn(t, e) {
|
|
1573
1573
|
var r = { label: 0, sent: function() {
|
|
1574
1574
|
if (s[0] & 1) throw s[1];
|
|
1575
1575
|
return s[1];
|
|
@@ -1664,7 +1664,7 @@ function Me(t, e, r) {
|
|
|
1664
1664
|
function Le(t) {
|
|
1665
1665
|
return this instanceof Le ? (this.v = t, this) : new Le(t);
|
|
1666
1666
|
}
|
|
1667
|
-
function
|
|
1667
|
+
function ds(t, e, r) {
|
|
1668
1668
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
1669
1669
|
var n = r.apply(t, e || []), i, s = [];
|
|
1670
1670
|
return i = Object.create((typeof AsyncIterator == "function" ? AsyncIterator : Object).prototype), a("next"), a("throw"), a("return", o), i[Symbol.asyncIterator] = function() {
|
|
@@ -1702,7 +1702,7 @@ function hs(t, e, r) {
|
|
|
1702
1702
|
w(z), s.shift(), s.length && u(s[0][0], s[0][1]);
|
|
1703
1703
|
}
|
|
1704
1704
|
}
|
|
1705
|
-
function
|
|
1705
|
+
function ps(t) {
|
|
1706
1706
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
1707
1707
|
var e = t[Symbol.asyncIterator], r;
|
|
1708
1708
|
return e ? e.call(t) : (t = typeof We == "function" ? We(t) : t[Symbol.iterator](), r = {}, n("next"), n("throw"), n("return"), r[Symbol.asyncIterator] = function() {
|
|
@@ -1724,13 +1724,13 @@ function fs(t) {
|
|
|
1724
1724
|
function Y(t) {
|
|
1725
1725
|
return typeof t == "function";
|
|
1726
1726
|
}
|
|
1727
|
-
function
|
|
1727
|
+
function Un(t) {
|
|
1728
1728
|
var e = function(n) {
|
|
1729
1729
|
Error.call(n), n.stack = new Error().stack;
|
|
1730
1730
|
}, r = t(e);
|
|
1731
1731
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
1732
1732
|
}
|
|
1733
|
-
var kt =
|
|
1733
|
+
var kt = Un(function(t) {
|
|
1734
1734
|
return function(r) {
|
|
1735
1735
|
t(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
1736
1736
|
` + r.map(function(n, i) {
|
|
@@ -1739,7 +1739,7 @@ var kt = Hn(function(t) {
|
|
|
1739
1739
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
1740
1740
|
};
|
|
1741
1741
|
});
|
|
1742
|
-
function
|
|
1742
|
+
function rr(t, e) {
|
|
1743
1743
|
if (t) {
|
|
1744
1744
|
var r = t.indexOf(e);
|
|
1745
1745
|
0 <= r && t.splice(r, 1);
|
|
@@ -1786,7 +1786,7 @@ var it = function() {
|
|
|
1786
1786
|
for (var v = We(f), w = v.next(); !w.done; w = v.next()) {
|
|
1787
1787
|
var z = w.value;
|
|
1788
1788
|
try {
|
|
1789
|
-
|
|
1789
|
+
Vr(z);
|
|
1790
1790
|
} catch (D) {
|
|
1791
1791
|
s = s ?? [], D instanceof kt ? s = Me(Me([], _e(s)), _e(D.errors)) : s.push(D);
|
|
1792
1792
|
}
|
|
@@ -1808,7 +1808,7 @@ var it = function() {
|
|
|
1808
1808
|
var r;
|
|
1809
1809
|
if (e && e !== this)
|
|
1810
1810
|
if (this.closed)
|
|
1811
|
-
|
|
1811
|
+
Vr(e);
|
|
1812
1812
|
else {
|
|
1813
1813
|
if (e instanceof t) {
|
|
1814
1814
|
if (e.closed || e._hasParent(this))
|
|
@@ -1825,54 +1825,54 @@ var it = function() {
|
|
|
1825
1825
|
this._parentage = Array.isArray(r) ? (r.push(e), r) : r ? [r, e] : e;
|
|
1826
1826
|
}, t.prototype._removeParent = function(e) {
|
|
1827
1827
|
var r = this._parentage;
|
|
1828
|
-
r === e ? this._parentage = null : Array.isArray(r) &&
|
|
1828
|
+
r === e ? this._parentage = null : Array.isArray(r) && rr(r, e);
|
|
1829
1829
|
}, t.prototype.remove = function(e) {
|
|
1830
1830
|
var r = this._finalizers;
|
|
1831
|
-
r &&
|
|
1831
|
+
r && rr(r, e), e instanceof t && e._removeParent(this);
|
|
1832
1832
|
}, t.EMPTY = function() {
|
|
1833
1833
|
var e = new t();
|
|
1834
1834
|
return e.closed = !0, e;
|
|
1835
1835
|
}(), t;
|
|
1836
|
-
}(),
|
|
1837
|
-
function
|
|
1836
|
+
}(), Yn = it.EMPTY;
|
|
1837
|
+
function Bn(t) {
|
|
1838
1838
|
return t instanceof it || t && "closed" in t && Y(t.remove) && Y(t.add) && Y(t.unsubscribe);
|
|
1839
1839
|
}
|
|
1840
|
-
function
|
|
1840
|
+
function Vr(t) {
|
|
1841
1841
|
Y(t) ? t() : t.unsubscribe();
|
|
1842
1842
|
}
|
|
1843
|
-
var
|
|
1843
|
+
var Vn = {
|
|
1844
1844
|
onUnhandledError: null,
|
|
1845
1845
|
onStoppedNotification: null,
|
|
1846
1846
|
Promise: void 0,
|
|
1847
1847
|
useDeprecatedSynchronousErrorHandling: !1,
|
|
1848
1848
|
useDeprecatedNextContext: !1
|
|
1849
|
-
},
|
|
1849
|
+
}, Zn = {
|
|
1850
1850
|
setTimeout: function(t, e) {
|
|
1851
1851
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
1852
1852
|
r[n - 2] = arguments[n];
|
|
1853
1853
|
return setTimeout.apply(void 0, Me([t, e], _e(r)));
|
|
1854
1854
|
},
|
|
1855
1855
|
clearTimeout: function(t) {
|
|
1856
|
-
var e =
|
|
1856
|
+
var e = Zn.delegate;
|
|
1857
1857
|
return ((e == null ? void 0 : e.clearTimeout) || clearTimeout)(t);
|
|
1858
1858
|
},
|
|
1859
1859
|
delegate: void 0
|
|
1860
1860
|
};
|
|
1861
|
-
function
|
|
1862
|
-
|
|
1861
|
+
function Gn(t) {
|
|
1862
|
+
Zn.setTimeout(function() {
|
|
1863
1863
|
throw t;
|
|
1864
1864
|
});
|
|
1865
1865
|
}
|
|
1866
|
-
function
|
|
1866
|
+
function Zr() {
|
|
1867
1867
|
}
|
|
1868
1868
|
function _t(t) {
|
|
1869
1869
|
t();
|
|
1870
1870
|
}
|
|
1871
|
-
var
|
|
1871
|
+
var Pr = function(t) {
|
|
1872
1872
|
nt(e, t);
|
|
1873
1873
|
function e(r) {
|
|
1874
1874
|
var n = t.call(this) || this;
|
|
1875
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
1875
|
+
return n.isStopped = !1, r ? (n.destination = r, Bn(r) && r.add(n)) : n.destination = _s, n;
|
|
1876
1876
|
}
|
|
1877
1877
|
return e.create = function(r, n, i) {
|
|
1878
1878
|
return new Je(r, n, i);
|
|
@@ -1899,11 +1899,11 @@ var gr = function(t) {
|
|
|
1899
1899
|
this.unsubscribe();
|
|
1900
1900
|
}
|
|
1901
1901
|
}, e;
|
|
1902
|
-
}(it),
|
|
1902
|
+
}(it), ms = Function.prototype.bind;
|
|
1903
1903
|
function At(t, e) {
|
|
1904
|
-
return
|
|
1904
|
+
return ms.call(t, e);
|
|
1905
1905
|
}
|
|
1906
|
-
var
|
|
1906
|
+
var vs = function() {
|
|
1907
1907
|
function t(e) {
|
|
1908
1908
|
this.partialObserver = e;
|
|
1909
1909
|
}
|
|
@@ -1946,7 +1946,7 @@ var ps = function() {
|
|
|
1946
1946
|
};
|
|
1947
1947
|
else {
|
|
1948
1948
|
var a;
|
|
1949
|
-
s &&
|
|
1949
|
+
s && Vn.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
|
|
1950
1950
|
return s.unsubscribe();
|
|
1951
1951
|
}, o = {
|
|
1952
1952
|
next: r.next && At(r.next, a),
|
|
@@ -1954,29 +1954,29 @@ var ps = function() {
|
|
|
1954
1954
|
complete: r.complete && At(r.complete, a)
|
|
1955
1955
|
}) : o = r;
|
|
1956
1956
|
}
|
|
1957
|
-
return s.destination = new
|
|
1957
|
+
return s.destination = new vs(o), s;
|
|
1958
1958
|
}
|
|
1959
1959
|
return e;
|
|
1960
|
-
}(
|
|
1960
|
+
}(Pr);
|
|
1961
1961
|
function lt(t) {
|
|
1962
|
-
|
|
1962
|
+
Gn(t);
|
|
1963
1963
|
}
|
|
1964
|
-
function
|
|
1964
|
+
function ys(t) {
|
|
1965
1965
|
throw t;
|
|
1966
1966
|
}
|
|
1967
|
-
var
|
|
1967
|
+
var _s = {
|
|
1968
1968
|
closed: !0,
|
|
1969
|
-
next:
|
|
1970
|
-
error:
|
|
1971
|
-
complete:
|
|
1972
|
-
},
|
|
1969
|
+
next: Zr,
|
|
1970
|
+
error: ys,
|
|
1971
|
+
complete: Zr
|
|
1972
|
+
}, Sr = function() {
|
|
1973
1973
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
1974
1974
|
}();
|
|
1975
|
-
function
|
|
1975
|
+
function Qn(t) {
|
|
1976
1976
|
return t;
|
|
1977
1977
|
}
|
|
1978
|
-
function
|
|
1979
|
-
return t.length === 0 ?
|
|
1978
|
+
function bs(t) {
|
|
1979
|
+
return t.length === 0 ? Qn : t.length === 1 ? t[0] : function(r) {
|
|
1980
1980
|
return t.reduce(function(n, i) {
|
|
1981
1981
|
return i(n);
|
|
1982
1982
|
}, r);
|
|
@@ -1990,7 +1990,7 @@ var he = function() {
|
|
|
1990
1990
|
var r = new t();
|
|
1991
1991
|
return r.source = this, r.operator = e, r;
|
|
1992
1992
|
}, t.prototype.subscribe = function(e, r, n) {
|
|
1993
|
-
var i = this, s =
|
|
1993
|
+
var i = this, s = gs(e) ? e : new Je(e, r, n);
|
|
1994
1994
|
return _t(function() {
|
|
1995
1995
|
var o = i, a = o.operator, u = o.source;
|
|
1996
1996
|
s.add(a ? a.call(s, u) : u ? i._subscribe(s) : i._trySubscribe(s));
|
|
@@ -2003,7 +2003,7 @@ var he = function() {
|
|
|
2003
2003
|
}
|
|
2004
2004
|
}, t.prototype.forEach = function(e, r) {
|
|
2005
2005
|
var n = this;
|
|
2006
|
-
return r =
|
|
2006
|
+
return r = Gr(r), new r(function(i, s) {
|
|
2007
2007
|
var o = new Je({
|
|
2008
2008
|
next: function(a) {
|
|
2009
2009
|
try {
|
|
@@ -2020,15 +2020,15 @@ var he = function() {
|
|
|
2020
2020
|
}, t.prototype._subscribe = function(e) {
|
|
2021
2021
|
var r;
|
|
2022
2022
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(e);
|
|
2023
|
-
}, t.prototype[
|
|
2023
|
+
}, t.prototype[Sr] = function() {
|
|
2024
2024
|
return this;
|
|
2025
2025
|
}, t.prototype.pipe = function() {
|
|
2026
2026
|
for (var e = [], r = 0; r < arguments.length; r++)
|
|
2027
2027
|
e[r] = arguments[r];
|
|
2028
|
-
return
|
|
2028
|
+
return bs(e)(this);
|
|
2029
2029
|
}, t.prototype.toPromise = function(e) {
|
|
2030
2030
|
var r = this;
|
|
2031
|
-
return e =
|
|
2031
|
+
return e = Gr(e), new e(function(n, i) {
|
|
2032
2032
|
var s;
|
|
2033
2033
|
r.subscribe(function(o) {
|
|
2034
2034
|
return s = o;
|
|
@@ -2042,22 +2042,22 @@ var he = function() {
|
|
|
2042
2042
|
return new t(e);
|
|
2043
2043
|
}, t;
|
|
2044
2044
|
}();
|
|
2045
|
-
function
|
|
2045
|
+
function Gr(t) {
|
|
2046
2046
|
var e;
|
|
2047
|
-
return (e = t ??
|
|
2047
|
+
return (e = t ?? Vn.Promise) !== null && e !== void 0 ? e : Promise;
|
|
2048
2048
|
}
|
|
2049
|
-
function
|
|
2049
|
+
function ws(t) {
|
|
2050
2050
|
return t && Y(t.next) && Y(t.error) && Y(t.complete);
|
|
2051
2051
|
}
|
|
2052
|
-
function
|
|
2053
|
-
return t && t instanceof
|
|
2052
|
+
function gs(t) {
|
|
2053
|
+
return t && t instanceof Pr || ws(t) && Bn(t);
|
|
2054
2054
|
}
|
|
2055
|
-
function
|
|
2055
|
+
function Ps(t) {
|
|
2056
2056
|
return Y(t == null ? void 0 : t.lift);
|
|
2057
2057
|
}
|
|
2058
2058
|
function Ye(t) {
|
|
2059
2059
|
return function(e) {
|
|
2060
|
-
if (
|
|
2060
|
+
if (Ps(e))
|
|
2061
2061
|
return e.lift(function(r) {
|
|
2062
2062
|
try {
|
|
2063
2063
|
return t(r, this);
|
|
@@ -2069,9 +2069,9 @@ function Ye(t) {
|
|
|
2069
2069
|
};
|
|
2070
2070
|
}
|
|
2071
2071
|
function Ne(t, e, r, n, i) {
|
|
2072
|
-
return new
|
|
2072
|
+
return new Ss(t, e, r, n, i);
|
|
2073
2073
|
}
|
|
2074
|
-
var
|
|
2074
|
+
var Ss = function(t) {
|
|
2075
2075
|
nt(e, t);
|
|
2076
2076
|
function e(r, n, i, s, o, a) {
|
|
2077
2077
|
var u = t.call(this, r) || this;
|
|
@@ -2106,14 +2106,14 @@ var gs = function(t) {
|
|
|
2106
2106
|
t.prototype.unsubscribe.call(this), !n && ((r = this.onFinalize) === null || r === void 0 || r.call(this));
|
|
2107
2107
|
}
|
|
2108
2108
|
}, e;
|
|
2109
|
-
}(
|
|
2109
|
+
}(Pr), Cs = {
|
|
2110
2110
|
now: function() {
|
|
2111
2111
|
return performance.now();
|
|
2112
2112
|
},
|
|
2113
2113
|
delegate: void 0
|
|
2114
|
-
},
|
|
2114
|
+
}, nr = {
|
|
2115
2115
|
schedule: function(t) {
|
|
2116
|
-
var e = requestAnimationFrame, r = cancelAnimationFrame, n =
|
|
2116
|
+
var e = requestAnimationFrame, r = cancelAnimationFrame, n = nr.delegate;
|
|
2117
2117
|
n && (e = n.requestAnimationFrame, r = n.cancelAnimationFrame);
|
|
2118
2118
|
var i = e(function(s) {
|
|
2119
2119
|
r = void 0, t(s);
|
|
@@ -2134,13 +2134,13 @@ var gs = function(t) {
|
|
|
2134
2134
|
},
|
|
2135
2135
|
delegate: void 0
|
|
2136
2136
|
};
|
|
2137
|
-
function
|
|
2138
|
-
return t ?
|
|
2137
|
+
function Es(t) {
|
|
2138
|
+
return t ? Kn(t) : Ts;
|
|
2139
2139
|
}
|
|
2140
|
-
function
|
|
2140
|
+
function Kn(t) {
|
|
2141
2141
|
return new he(function(e) {
|
|
2142
|
-
var r = t ||
|
|
2143
|
-
e.closed || (i =
|
|
2142
|
+
var r = t || Cs, n = r.now(), i = 0, s = function() {
|
|
2143
|
+
e.closed || (i = nr.requestAnimationFrame(function(o) {
|
|
2144
2144
|
i = 0;
|
|
2145
2145
|
var a = r.now();
|
|
2146
2146
|
e.next({
|
|
@@ -2150,11 +2150,11 @@ function Qn(t) {
|
|
|
2150
2150
|
}));
|
|
2151
2151
|
};
|
|
2152
2152
|
return s(), function() {
|
|
2153
|
-
i &&
|
|
2153
|
+
i && nr.cancelAnimationFrame(i);
|
|
2154
2154
|
};
|
|
2155
2155
|
});
|
|
2156
2156
|
}
|
|
2157
|
-
var
|
|
2157
|
+
var Ts = Kn(), Os = Un(function(t) {
|
|
2158
2158
|
return function() {
|
|
2159
2159
|
t(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
2160
2160
|
};
|
|
@@ -2165,11 +2165,11 @@ var Cs = Qn(), Es = Hn(function(t) {
|
|
|
2165
2165
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
2166
2166
|
}
|
|
2167
2167
|
return e.prototype.lift = function(r) {
|
|
2168
|
-
var n = new
|
|
2168
|
+
var n = new Qr(this, this);
|
|
2169
2169
|
return n.operator = r, n;
|
|
2170
2170
|
}, e.prototype._throwIfClosed = function() {
|
|
2171
2171
|
if (this.closed)
|
|
2172
|
-
throw new
|
|
2172
|
+
throw new Os();
|
|
2173
2173
|
}, e.prototype.next = function(r) {
|
|
2174
2174
|
var n = this;
|
|
2175
2175
|
_t(function() {
|
|
@@ -2225,8 +2225,8 @@ var Cs = Qn(), Es = Hn(function(t) {
|
|
|
2225
2225
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
2226
2226
|
}, e.prototype._innerSubscribe = function(r) {
|
|
2227
2227
|
var n = this, i = this, s = i.hasError, o = i.isStopped, a = i.observers;
|
|
2228
|
-
return s || o ?
|
|
2229
|
-
n.currentObservers = null,
|
|
2228
|
+
return s || o ? Yn : (this.currentObservers = null, a.push(r), new it(function() {
|
|
2229
|
+
n.currentObservers = null, rr(a, r);
|
|
2230
2230
|
}));
|
|
2231
2231
|
}, e.prototype._checkFinalizedStatuses = function(r) {
|
|
2232
2232
|
var n = this, i = n.hasError, s = n.thrownError, o = n.isStopped;
|
|
@@ -2235,9 +2235,9 @@ var Cs = Qn(), Es = Hn(function(t) {
|
|
|
2235
2235
|
var r = new he();
|
|
2236
2236
|
return r.source = this, r;
|
|
2237
2237
|
}, e.create = function(r, n) {
|
|
2238
|
-
return new
|
|
2238
|
+
return new Qr(r, n);
|
|
2239
2239
|
}, e;
|
|
2240
|
-
}(he),
|
|
2240
|
+
}(he), Qr = function(t) {
|
|
2241
2241
|
nt(e, t);
|
|
2242
2242
|
function e(r, n) {
|
|
2243
2243
|
var i = t.call(this) || this;
|
|
@@ -2254,34 +2254,34 @@ var Cs = Qn(), Es = Hn(function(t) {
|
|
|
2254
2254
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
2255
2255
|
}, e.prototype._subscribe = function(r) {
|
|
2256
2256
|
var n, i;
|
|
2257
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
2257
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Yn;
|
|
2258
2258
|
}, e;
|
|
2259
|
-
}(Ot),
|
|
2259
|
+
}(Ot), Xn = function(t) {
|
|
2260
2260
|
return t && typeof t.length == "number" && typeof t != "function";
|
|
2261
2261
|
};
|
|
2262
|
-
function
|
|
2262
|
+
function Ms(t) {
|
|
2263
2263
|
return Y(t == null ? void 0 : t.then);
|
|
2264
2264
|
}
|
|
2265
|
-
function
|
|
2266
|
-
return Y(t[
|
|
2265
|
+
function Rs(t) {
|
|
2266
|
+
return Y(t[Sr]);
|
|
2267
2267
|
}
|
|
2268
|
-
function
|
|
2268
|
+
function js(t) {
|
|
2269
2269
|
return Symbol.asyncIterator && Y(t == null ? void 0 : t[Symbol.asyncIterator]);
|
|
2270
2270
|
}
|
|
2271
|
-
function
|
|
2271
|
+
function $s(t) {
|
|
2272
2272
|
return new TypeError("You provided " + (t !== null && typeof t == "object" ? "an invalid object" : "'" + t + "'") + " where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.");
|
|
2273
2273
|
}
|
|
2274
|
-
function
|
|
2274
|
+
function xs() {
|
|
2275
2275
|
return typeof Symbol != "function" || !Symbol.iterator ? "@@iterator" : Symbol.iterator;
|
|
2276
2276
|
}
|
|
2277
|
-
var
|
|
2278
|
-
function
|
|
2279
|
-
return Y(t == null ? void 0 : t[
|
|
2277
|
+
var Ds = xs();
|
|
2278
|
+
function ks(t) {
|
|
2279
|
+
return Y(t == null ? void 0 : t[Ds]);
|
|
2280
2280
|
}
|
|
2281
|
-
function
|
|
2282
|
-
return
|
|
2281
|
+
function As(t) {
|
|
2282
|
+
return ds(this, arguments, function() {
|
|
2283
2283
|
var r, n, i, s;
|
|
2284
|
-
return
|
|
2284
|
+
return Hn(this, function(o) {
|
|
2285
2285
|
switch (o.label) {
|
|
2286
2286
|
case 0:
|
|
2287
2287
|
r = t.getReader(), o.label = 1;
|
|
@@ -2309,53 +2309,53 @@ function Ds(t) {
|
|
|
2309
2309
|
});
|
|
2310
2310
|
});
|
|
2311
2311
|
}
|
|
2312
|
-
function
|
|
2312
|
+
function Is(t) {
|
|
2313
2313
|
return Y(t == null ? void 0 : t.getReader);
|
|
2314
2314
|
}
|
|
2315
2315
|
function st(t) {
|
|
2316
2316
|
if (t instanceof he)
|
|
2317
2317
|
return t;
|
|
2318
2318
|
if (t != null) {
|
|
2319
|
-
if (
|
|
2320
|
-
return As(t);
|
|
2321
|
-
if (Kn(t))
|
|
2322
|
-
return Is(t);
|
|
2323
|
-
if (Ts(t))
|
|
2319
|
+
if (Rs(t))
|
|
2324
2320
|
return zs(t);
|
|
2325
|
-
if (
|
|
2326
|
-
return Xn(t);
|
|
2327
|
-
if (xs(t))
|
|
2321
|
+
if (Xn(t))
|
|
2328
2322
|
return Fs(t);
|
|
2329
|
-
if (
|
|
2323
|
+
if (Ms(t))
|
|
2330
2324
|
return Ls(t);
|
|
2325
|
+
if (js(t))
|
|
2326
|
+
return Jn(t);
|
|
2327
|
+
if (ks(t))
|
|
2328
|
+
return Ws(t);
|
|
2329
|
+
if (Is(t))
|
|
2330
|
+
return Ns(t);
|
|
2331
2331
|
}
|
|
2332
|
-
throw
|
|
2332
|
+
throw $s(t);
|
|
2333
2333
|
}
|
|
2334
|
-
function
|
|
2334
|
+
function zs(t) {
|
|
2335
2335
|
return new he(function(e) {
|
|
2336
|
-
var r = t[
|
|
2336
|
+
var r = t[Sr]();
|
|
2337
2337
|
if (Y(r.subscribe))
|
|
2338
2338
|
return r.subscribe(e);
|
|
2339
2339
|
throw new TypeError("Provided object does not correctly implement Symbol.observable");
|
|
2340
2340
|
});
|
|
2341
2341
|
}
|
|
2342
|
-
function
|
|
2342
|
+
function Fs(t) {
|
|
2343
2343
|
return new he(function(e) {
|
|
2344
2344
|
for (var r = 0; r < t.length && !e.closed; r++)
|
|
2345
2345
|
e.next(t[r]);
|
|
2346
2346
|
e.complete();
|
|
2347
2347
|
});
|
|
2348
2348
|
}
|
|
2349
|
-
function
|
|
2349
|
+
function Ls(t) {
|
|
2350
2350
|
return new he(function(e) {
|
|
2351
2351
|
t.then(function(r) {
|
|
2352
2352
|
e.closed || (e.next(r), e.complete());
|
|
2353
2353
|
}, function(r) {
|
|
2354
2354
|
return e.error(r);
|
|
2355
|
-
}).then(null,
|
|
2355
|
+
}).then(null, Gn);
|
|
2356
2356
|
});
|
|
2357
2357
|
}
|
|
2358
|
-
function
|
|
2358
|
+
function Ws(t) {
|
|
2359
2359
|
return new he(function(e) {
|
|
2360
2360
|
var r, n;
|
|
2361
2361
|
try {
|
|
@@ -2376,24 +2376,24 @@ function Fs(t) {
|
|
|
2376
2376
|
e.complete();
|
|
2377
2377
|
});
|
|
2378
2378
|
}
|
|
2379
|
-
function
|
|
2379
|
+
function Jn(t) {
|
|
2380
2380
|
return new he(function(e) {
|
|
2381
|
-
|
|
2381
|
+
qs(t, e).catch(function(r) {
|
|
2382
2382
|
return e.error(r);
|
|
2383
2383
|
});
|
|
2384
2384
|
});
|
|
2385
2385
|
}
|
|
2386
|
-
function
|
|
2387
|
-
return
|
|
2386
|
+
function Ns(t) {
|
|
2387
|
+
return Jn(As(t));
|
|
2388
2388
|
}
|
|
2389
|
-
function
|
|
2389
|
+
function qs(t, e) {
|
|
2390
2390
|
var r, n, i, s;
|
|
2391
|
-
return
|
|
2391
|
+
return fs(this, void 0, void 0, function() {
|
|
2392
2392
|
var o, a;
|
|
2393
|
-
return
|
|
2393
|
+
return Hn(this, function(u) {
|
|
2394
2394
|
switch (u.label) {
|
|
2395
2395
|
case 0:
|
|
2396
|
-
u.trys.push([0, 5, 6, 11]), r =
|
|
2396
|
+
u.trys.push([0, 5, 6, 11]), r = ps(t), u.label = 1;
|
|
2397
2397
|
case 1:
|
|
2398
2398
|
return [4, r.next()];
|
|
2399
2399
|
case 2:
|
|
@@ -2432,16 +2432,16 @@ function Mt(t, e) {
|
|
|
2432
2432
|
}));
|
|
2433
2433
|
});
|
|
2434
2434
|
}
|
|
2435
|
-
var
|
|
2436
|
-
function
|
|
2437
|
-
return
|
|
2435
|
+
var Hs = Array.isArray;
|
|
2436
|
+
function Us(t, e) {
|
|
2437
|
+
return Hs(e) ? t.apply(void 0, Me([], _e(e))) : t(e);
|
|
2438
2438
|
}
|
|
2439
|
-
function
|
|
2439
|
+
function Ys(t) {
|
|
2440
2440
|
return Mt(function(e) {
|
|
2441
|
-
return
|
|
2441
|
+
return Us(t, e);
|
|
2442
2442
|
});
|
|
2443
2443
|
}
|
|
2444
|
-
function
|
|
2444
|
+
function Bs(t, e, r, n, i, s, o, a) {
|
|
2445
2445
|
var u = [], c = 0, l = 0, f = !1, v = function() {
|
|
2446
2446
|
f && !u.length && !c && e.complete();
|
|
2447
2447
|
}, w = function(D) {
|
|
@@ -2473,27 +2473,27 @@ function Us(t, e, r, n, i, s, o, a) {
|
|
|
2473
2473
|
})), function() {
|
|
2474
2474
|
};
|
|
2475
2475
|
}
|
|
2476
|
-
function
|
|
2477
|
-
return r === void 0 && (r = 1 / 0), Y(e) ?
|
|
2476
|
+
function ei(t, e, r) {
|
|
2477
|
+
return r === void 0 && (r = 1 / 0), Y(e) ? ei(function(n, i) {
|
|
2478
2478
|
return Mt(function(s, o) {
|
|
2479
2479
|
return e(n, s, i, o);
|
|
2480
2480
|
})(st(t(n, i)));
|
|
2481
2481
|
}, r) : (typeof e == "number" && (r = e), Ye(function(n, i) {
|
|
2482
|
-
return
|
|
2482
|
+
return Bs(n, i, t, r);
|
|
2483
2483
|
}));
|
|
2484
2484
|
}
|
|
2485
|
-
var
|
|
2486
|
-
function
|
|
2485
|
+
var Vs = ["addListener", "removeListener"], Zs = ["addEventListener", "removeEventListener"], Gs = ["on", "off"];
|
|
2486
|
+
function ir(t, e, r, n) {
|
|
2487
2487
|
if (Y(r) && (n = r, r = void 0), n)
|
|
2488
|
-
return
|
|
2489
|
-
var i = _e(
|
|
2488
|
+
return ir(t, e, r).pipe(Ys(n));
|
|
2489
|
+
var i = _e(Xs(t) ? Zs.map(function(a) {
|
|
2490
2490
|
return function(u) {
|
|
2491
2491
|
return t[a](e, u, r);
|
|
2492
2492
|
};
|
|
2493
|
-
}) :
|
|
2494
|
-
if (!s &&
|
|
2495
|
-
return
|
|
2496
|
-
return
|
|
2493
|
+
}) : Qs(t) ? Vs.map(Kr(t, e)) : Ks(t) ? Gs.map(Kr(t, e)) : [], 2), s = i[0], o = i[1];
|
|
2494
|
+
if (!s && Xn(t))
|
|
2495
|
+
return ei(function(a) {
|
|
2496
|
+
return ir(a, e, r);
|
|
2497
2497
|
})(st(t));
|
|
2498
2498
|
if (!s)
|
|
2499
2499
|
throw new TypeError("Invalid event target");
|
|
@@ -2508,20 +2508,20 @@ function nr(t, e, r, n) {
|
|
|
2508
2508
|
};
|
|
2509
2509
|
});
|
|
2510
2510
|
}
|
|
2511
|
-
function
|
|
2511
|
+
function Kr(t, e) {
|
|
2512
2512
|
return function(r) {
|
|
2513
2513
|
return function(n) {
|
|
2514
2514
|
return t[r](e, n);
|
|
2515
2515
|
};
|
|
2516
2516
|
};
|
|
2517
2517
|
}
|
|
2518
|
-
function
|
|
2518
|
+
function Qs(t) {
|
|
2519
2519
|
return Y(t.addListener) && Y(t.removeListener);
|
|
2520
2520
|
}
|
|
2521
|
-
function
|
|
2521
|
+
function Ks(t) {
|
|
2522
2522
|
return Y(t.on) && Y(t.off);
|
|
2523
2523
|
}
|
|
2524
|
-
function
|
|
2524
|
+
function Xs(t) {
|
|
2525
2525
|
return Y(t.addEventListener) && Y(t.removeEventListener);
|
|
2526
2526
|
}
|
|
2527
2527
|
function be(t, e) {
|
|
@@ -2532,7 +2532,7 @@ function be(t, e) {
|
|
|
2532
2532
|
}));
|
|
2533
2533
|
});
|
|
2534
2534
|
}
|
|
2535
|
-
function
|
|
2535
|
+
function ti(t) {
|
|
2536
2536
|
t === void 0 && (t = {});
|
|
2537
2537
|
var e = t.connector, r = e === void 0 ? function() {
|
|
2538
2538
|
return new Ot();
|
|
@@ -2581,7 +2581,7 @@ function It(t, e) {
|
|
|
2581
2581
|
return st(e.apply(void 0, Me([], _e(r)))).subscribe(i);
|
|
2582
2582
|
}
|
|
2583
2583
|
}
|
|
2584
|
-
function
|
|
2584
|
+
function Js(t, e) {
|
|
2585
2585
|
return e === void 0 && (e = !1), Ye(function(r, n) {
|
|
2586
2586
|
var i = 0;
|
|
2587
2587
|
r.subscribe(Ne(n, function(s) {
|
|
@@ -2590,7 +2590,7 @@ function Ks(t, e) {
|
|
|
2590
2590
|
}));
|
|
2591
2591
|
});
|
|
2592
2592
|
}
|
|
2593
|
-
function
|
|
2593
|
+
function eo(t, e, r) {
|
|
2594
2594
|
var n = Y(t) || e || r ? { next: t, error: e, complete: r } : t;
|
|
2595
2595
|
return n ? Ye(function(i, s) {
|
|
2596
2596
|
var o;
|
|
@@ -2609,12 +2609,12 @@ function Xs(t, e, r) {
|
|
|
2609
2609
|
var u, c;
|
|
2610
2610
|
a && ((u = n.unsubscribe) === null || u === void 0 || u.call(n)), (c = n.finalize) === null || c === void 0 || c.call(n);
|
|
2611
2611
|
}));
|
|
2612
|
-
}) :
|
|
2612
|
+
}) : Qn;
|
|
2613
2613
|
}
|
|
2614
|
-
var ge = {}, de = {}, Pe = {},
|
|
2615
|
-
function
|
|
2616
|
-
if (
|
|
2617
|
-
|
|
2614
|
+
var ge = {}, de = {}, Pe = {}, Xr;
|
|
2615
|
+
function ri() {
|
|
2616
|
+
if (Xr) return Pe;
|
|
2617
|
+
Xr = 1, Object.defineProperty(Pe, "__esModule", { value: !0 }), Pe.DefaultSerializer = Pe.extendSerializer = void 0;
|
|
2618
2618
|
function t(n, i) {
|
|
2619
2619
|
const s = n.deserialize.bind(n), o = n.serialize.bind(n);
|
|
2620
2620
|
return {
|
|
@@ -2652,11 +2652,11 @@ function ti() {
|
|
|
2652
2652
|
}
|
|
2653
2653
|
}, Pe;
|
|
2654
2654
|
}
|
|
2655
|
-
var
|
|
2655
|
+
var Jr;
|
|
2656
2656
|
function et() {
|
|
2657
|
-
if (
|
|
2658
|
-
|
|
2659
|
-
const t = /* @__PURE__ */
|
|
2657
|
+
if (Jr) return de;
|
|
2658
|
+
Jr = 1, Object.defineProperty(de, "__esModule", { value: !0 }), de.serialize = de.deserialize = de.registerSerializer = void 0;
|
|
2659
|
+
const t = /* @__PURE__ */ ri();
|
|
2660
2660
|
let e = t.DefaultSerializer;
|
|
2661
2661
|
function r(s) {
|
|
2662
2662
|
e = t.extendSerializer(e, s);
|
|
@@ -2671,10 +2671,10 @@ function et() {
|
|
|
2671
2671
|
}
|
|
2672
2672
|
return de.serialize = i, de;
|
|
2673
2673
|
}
|
|
2674
|
-
var zt = {}, pe = {}, Se = {},
|
|
2675
|
-
function
|
|
2676
|
-
if (
|
|
2677
|
-
|
|
2674
|
+
var zt = {}, pe = {}, Se = {}, en;
|
|
2675
|
+
function to() {
|
|
2676
|
+
if (en) return Se;
|
|
2677
|
+
en = 1, Object.defineProperty(Se, "__esModule", { value: !0 }), Se.getBundleURL = Se.getBaseURL = void 0;
|
|
2678
2678
|
let t;
|
|
2679
2679
|
function e() {
|
|
2680
2680
|
return t || (t = r()), t;
|
|
@@ -2695,11 +2695,11 @@ function Js() {
|
|
|
2695
2695
|
}
|
|
2696
2696
|
return Se.getBaseURL = n, Se;
|
|
2697
2697
|
}
|
|
2698
|
-
var
|
|
2699
|
-
function
|
|
2700
|
-
if (
|
|
2701
|
-
|
|
2702
|
-
const t = /* @__PURE__ */
|
|
2698
|
+
var tn;
|
|
2699
|
+
function ni() {
|
|
2700
|
+
if (tn) return pe;
|
|
2701
|
+
tn = 1, Object.defineProperty(pe, "__esModule", { value: !0 }), pe.isWorkerRuntime = pe.getWorkerImplementation = pe.defaultPoolSize = void 0;
|
|
2702
|
+
const t = /* @__PURE__ */ to();
|
|
2703
2703
|
pe.defaultPoolSize = typeof navigator < "u" && navigator.hardwareConcurrency ? navigator.hardwareConcurrency : 4;
|
|
2704
2704
|
const e = (a) => /^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(a);
|
|
2705
2705
|
function r(a) {
|
|
@@ -2745,10 +2745,10 @@ function ri() {
|
|
|
2745
2745
|
}
|
|
2746
2746
|
return pe.isWorkerRuntime = o, pe;
|
|
2747
2747
|
}
|
|
2748
|
-
var Ce = {}, ht = { exports: {} }, Ft,
|
|
2749
|
-
function
|
|
2750
|
-
if (
|
|
2751
|
-
|
|
2748
|
+
var Ce = {}, ht = { exports: {} }, Ft, rn;
|
|
2749
|
+
function ro() {
|
|
2750
|
+
if (rn) return Ft;
|
|
2751
|
+
rn = 1;
|
|
2752
2752
|
var t = 1e3, e = t * 60, r = e * 60, n = r * 24, i = n * 7, s = n * 365.25;
|
|
2753
2753
|
Ft = function(l, f) {
|
|
2754
2754
|
f = f || {};
|
|
@@ -2827,12 +2827,12 @@ function eo() {
|
|
|
2827
2827
|
}
|
|
2828
2828
|
return Ft;
|
|
2829
2829
|
}
|
|
2830
|
-
var Lt,
|
|
2831
|
-
function
|
|
2832
|
-
if (
|
|
2833
|
-
|
|
2830
|
+
var Lt, nn;
|
|
2831
|
+
function no() {
|
|
2832
|
+
if (nn) return Lt;
|
|
2833
|
+
nn = 1;
|
|
2834
2834
|
function t(e) {
|
|
2835
|
-
n.debug = n, n.default = n, n.coerce = c, n.disable = o, n.enable = s, n.enabled = a, n.humanize =
|
|
2835
|
+
n.debug = n, n.default = n, n.coerce = c, n.disable = o, n.enable = s, n.enabled = a, n.humanize = ro(), n.destroy = l, Object.keys(e).forEach((f) => {
|
|
2836
2836
|
n[f] = e[f];
|
|
2837
2837
|
}), n.names = [], n.skips = [], n.formatters = {};
|
|
2838
2838
|
function r(f) {
|
|
@@ -2914,9 +2914,9 @@ function to() {
|
|
|
2914
2914
|
}
|
|
2915
2915
|
return Lt = t, Lt;
|
|
2916
2916
|
}
|
|
2917
|
-
var
|
|
2918
|
-
function
|
|
2919
|
-
return
|
|
2917
|
+
var sn;
|
|
2918
|
+
function Cr() {
|
|
2919
|
+
return sn || (sn = 1, function(t, e) {
|
|
2920
2920
|
e.formatArgs = n, e.save = i, e.load = s, e.useColors = r, e.storage = o(), e.destroy = /* @__PURE__ */ (() => {
|
|
2921
2921
|
let u = !1;
|
|
2922
2922
|
return () => {
|
|
@@ -3044,7 +3044,7 @@ function Sr() {
|
|
|
3044
3044
|
} catch {
|
|
3045
3045
|
}
|
|
3046
3046
|
}
|
|
3047
|
-
t.exports =
|
|
3047
|
+
t.exports = no()(e);
|
|
3048
3048
|
const { formatters: a } = t.exports;
|
|
3049
3049
|
a.j = function(u) {
|
|
3050
3050
|
try {
|
|
@@ -3055,7 +3055,7 @@ function Sr() {
|
|
|
3055
3055
|
};
|
|
3056
3056
|
}(ht, ht.exports)), ht.exports;
|
|
3057
3057
|
}
|
|
3058
|
-
var
|
|
3058
|
+
var io = function(t, e, r, n) {
|
|
3059
3059
|
function i(s) {
|
|
3060
3060
|
return s instanceof r ? s : new r(function(o) {
|
|
3061
3061
|
o(s);
|
|
@@ -3093,7 +3093,7 @@ class Rt {
|
|
|
3093
3093
|
this._baseObserver.error(e);
|
|
3094
3094
|
}
|
|
3095
3095
|
schedule(e) {
|
|
3096
|
-
const r = Promise.all(this._pendingPromises), n = [], i = (o) => n.push(o), s = Promise.resolve().then(() =>
|
|
3096
|
+
const r = Promise.all(this._pendingPromises), n = [], i = (o) => n.push(o), s = Promise.resolve().then(() => io(this, void 0, void 0, function* () {
|
|
3097
3097
|
yield r, yield e(i), this._pendingPromises.delete(s);
|
|
3098
3098
|
for (const o of n)
|
|
3099
3099
|
this._baseObserver.next(o);
|
|
@@ -3103,9 +3103,9 @@ class Rt {
|
|
|
3103
3103
|
this._pendingPromises.add(s);
|
|
3104
3104
|
}
|
|
3105
3105
|
}
|
|
3106
|
-
const
|
|
3106
|
+
const ii = () => typeof Symbol == "function", ot = (t) => ii() && !!Symbol[t], Er = (t) => ot(t) ? Symbol[t] : "@@" + t;
|
|
3107
3107
|
ot("asyncIterator") || (Symbol.asyncIterator = Symbol.asyncIterator || Symbol.for("Symbol.asyncIterator"));
|
|
3108
|
-
const
|
|
3108
|
+
const so = Er("iterator"), sr = Er("observable"), si = Er("species");
|
|
3109
3109
|
function gt(t, e) {
|
|
3110
3110
|
const r = t[e];
|
|
3111
3111
|
if (r != null) {
|
|
@@ -3116,9 +3116,9 @@ function gt(t, e) {
|
|
|
3116
3116
|
}
|
|
3117
3117
|
function Ve(t) {
|
|
3118
3118
|
let e = t.constructor;
|
|
3119
|
-
return e !== void 0 && (e = e[
|
|
3119
|
+
return e !== void 0 && (e = e[si], e === null && (e = void 0)), e !== void 0 ? e : ee;
|
|
3120
3120
|
}
|
|
3121
|
-
function
|
|
3121
|
+
function oo(t) {
|
|
3122
3122
|
return t instanceof ee;
|
|
3123
3123
|
}
|
|
3124
3124
|
function qe(t) {
|
|
@@ -3135,7 +3135,7 @@ function bt(t) {
|
|
|
3135
3135
|
}
|
|
3136
3136
|
});
|
|
3137
3137
|
}
|
|
3138
|
-
function
|
|
3138
|
+
function oi(t) {
|
|
3139
3139
|
const e = t._cleanup;
|
|
3140
3140
|
if (e !== void 0 && (t._cleanup = void 0, !!e))
|
|
3141
3141
|
try {
|
|
@@ -3149,19 +3149,19 @@ function si(t) {
|
|
|
3149
3149
|
qe(r);
|
|
3150
3150
|
}
|
|
3151
3151
|
}
|
|
3152
|
-
function
|
|
3152
|
+
function or(t) {
|
|
3153
3153
|
t._observer = void 0, t._queue = void 0, t._state = "closed";
|
|
3154
3154
|
}
|
|
3155
|
-
function
|
|
3155
|
+
function ao(t) {
|
|
3156
3156
|
const e = t._queue;
|
|
3157
3157
|
if (e) {
|
|
3158
3158
|
t._queue = void 0, t._state = "ready";
|
|
3159
3159
|
for (const r of e)
|
|
3160
|
-
if (
|
|
3160
|
+
if (ai(t, r.type, r.value), t._state === "closed")
|
|
3161
3161
|
break;
|
|
3162
3162
|
}
|
|
3163
3163
|
}
|
|
3164
|
-
function
|
|
3164
|
+
function ai(t, e, r) {
|
|
3165
3165
|
t._state = "running";
|
|
3166
3166
|
const n = t._observer;
|
|
3167
3167
|
try {
|
|
@@ -3171,19 +3171,19 @@ function oi(t, e, r) {
|
|
|
3171
3171
|
i && i.call(n, r);
|
|
3172
3172
|
break;
|
|
3173
3173
|
case "error":
|
|
3174
|
-
if (
|
|
3174
|
+
if (or(t), i)
|
|
3175
3175
|
i.call(n, r);
|
|
3176
3176
|
else
|
|
3177
3177
|
throw r;
|
|
3178
3178
|
break;
|
|
3179
3179
|
case "complete":
|
|
3180
|
-
|
|
3180
|
+
or(t), i && i.call(n);
|
|
3181
3181
|
break;
|
|
3182
3182
|
}
|
|
3183
3183
|
} catch (i) {
|
|
3184
3184
|
qe(i);
|
|
3185
3185
|
}
|
|
3186
|
-
t._state === "closed" ?
|
|
3186
|
+
t._state === "closed" ? oi(t) : t._state === "running" && (t._state = "ready");
|
|
3187
3187
|
}
|
|
3188
3188
|
function Wt(t, e, r) {
|
|
3189
3189
|
if (t._state !== "closed") {
|
|
@@ -3192,16 +3192,16 @@ function Wt(t, e, r) {
|
|
|
3192
3192
|
return;
|
|
3193
3193
|
}
|
|
3194
3194
|
if (t._state !== "ready") {
|
|
3195
|
-
t._state = "buffering", t._queue = [{ type: e, value: r }], bt(() =>
|
|
3195
|
+
t._state = "buffering", t._queue = [{ type: e, value: r }], bt(() => ao(t));
|
|
3196
3196
|
return;
|
|
3197
3197
|
}
|
|
3198
|
-
|
|
3198
|
+
ai(t, e, r);
|
|
3199
3199
|
}
|
|
3200
3200
|
}
|
|
3201
|
-
class
|
|
3201
|
+
class uo {
|
|
3202
3202
|
constructor(e, r) {
|
|
3203
3203
|
this._cleanup = void 0, this._observer = e, this._queue = void 0, this._state = "initializing";
|
|
3204
|
-
const n = new
|
|
3204
|
+
const n = new co(this);
|
|
3205
3205
|
try {
|
|
3206
3206
|
this._cleanup = r.call(void 0, n);
|
|
3207
3207
|
} catch (i) {
|
|
@@ -3213,10 +3213,10 @@ class oo {
|
|
|
3213
3213
|
return this._state === "closed";
|
|
3214
3214
|
}
|
|
3215
3215
|
unsubscribe() {
|
|
3216
|
-
this._state !== "closed" && (
|
|
3216
|
+
this._state !== "closed" && (or(this), oi(this));
|
|
3217
3217
|
}
|
|
3218
3218
|
}
|
|
3219
|
-
class
|
|
3219
|
+
class co {
|
|
3220
3220
|
constructor(e) {
|
|
3221
3221
|
this._subscription = e;
|
|
3222
3222
|
}
|
|
@@ -3246,7 +3246,7 @@ class ee {
|
|
|
3246
3246
|
next: e,
|
|
3247
3247
|
error: r,
|
|
3248
3248
|
complete: n
|
|
3249
|
-
}), new
|
|
3249
|
+
}), new uo(e, this._subscriber);
|
|
3250
3250
|
}
|
|
3251
3251
|
pipe(e, ...r) {
|
|
3252
3252
|
let n = this;
|
|
@@ -3439,22 +3439,22 @@ class ee {
|
|
|
3439
3439
|
};
|
|
3440
3440
|
});
|
|
3441
3441
|
}
|
|
3442
|
-
[
|
|
3442
|
+
[sr]() {
|
|
3443
3443
|
return this;
|
|
3444
3444
|
}
|
|
3445
3445
|
static from(e) {
|
|
3446
3446
|
const r = typeof this == "function" ? this : ee;
|
|
3447
3447
|
if (e == null)
|
|
3448
3448
|
throw new TypeError(e + " is not an object");
|
|
3449
|
-
const n = gt(e,
|
|
3449
|
+
const n = gt(e, sr);
|
|
3450
3450
|
if (n) {
|
|
3451
3451
|
const i = n.call(e);
|
|
3452
3452
|
if (Object(i) !== i)
|
|
3453
3453
|
throw new TypeError(i + " is not an object");
|
|
3454
|
-
return
|
|
3454
|
+
return oo(i) && i.constructor === r ? i : new r((s) => i.subscribe(s));
|
|
3455
3455
|
}
|
|
3456
3456
|
if (ot("iterator")) {
|
|
3457
|
-
const i = gt(e,
|
|
3457
|
+
const i = gt(e, so);
|
|
3458
3458
|
if (i)
|
|
3459
3459
|
return new r((s) => {
|
|
3460
3460
|
bt(() => {
|
|
@@ -3493,13 +3493,13 @@ class ee {
|
|
|
3493
3493
|
});
|
|
3494
3494
|
});
|
|
3495
3495
|
}
|
|
3496
|
-
static get [
|
|
3496
|
+
static get [si]() {
|
|
3497
3497
|
return this;
|
|
3498
3498
|
}
|
|
3499
3499
|
}
|
|
3500
|
-
|
|
3500
|
+
ii() && Object.defineProperty(ee, Symbol("extensions"), {
|
|
3501
3501
|
value: {
|
|
3502
|
-
symbol:
|
|
3502
|
+
symbol: sr,
|
|
3503
3503
|
hostReportError: qe
|
|
3504
3504
|
},
|
|
3505
3505
|
configurable: !0
|
|
@@ -3507,7 +3507,7 @@ ni() && Object.defineProperty(ee, Symbol("extensions"), {
|
|
|
3507
3507
|
function $e(t) {
|
|
3508
3508
|
typeof t == "function" ? t() : t && typeof t.unsubscribe == "function" && t.unsubscribe();
|
|
3509
3509
|
}
|
|
3510
|
-
var
|
|
3510
|
+
var lo = function(t, e, r, n) {
|
|
3511
3511
|
function i(s) {
|
|
3512
3512
|
return s instanceof r ? s : new r(function(o) {
|
|
3513
3513
|
o(s);
|
|
@@ -3534,7 +3534,7 @@ var uo = function(t, e, r, n) {
|
|
|
3534
3534
|
c((n = n.apply(t, e || [])).next());
|
|
3535
3535
|
});
|
|
3536
3536
|
};
|
|
3537
|
-
function
|
|
3537
|
+
function ho(t) {
|
|
3538
3538
|
return (e) => new ee((r) => {
|
|
3539
3539
|
const n = new Rt(r), i = e.subscribe({
|
|
3540
3540
|
complete() {
|
|
@@ -3544,7 +3544,7 @@ function co(t) {
|
|
|
3544
3544
|
n.error(s);
|
|
3545
3545
|
},
|
|
3546
3546
|
next(s) {
|
|
3547
|
-
n.schedule((o) =>
|
|
3547
|
+
n.schedule((o) => lo(this, void 0, void 0, function* () {
|
|
3548
3548
|
(yield t(s)) && o(s);
|
|
3549
3549
|
}));
|
|
3550
3550
|
}
|
|
@@ -3552,13 +3552,13 @@ function co(t) {
|
|
|
3552
3552
|
return () => $e(i);
|
|
3553
3553
|
});
|
|
3554
3554
|
}
|
|
3555
|
-
function
|
|
3555
|
+
function fo(t) {
|
|
3556
3556
|
return t && ot("asyncIterator") && t[Symbol.asyncIterator];
|
|
3557
3557
|
}
|
|
3558
|
-
function
|
|
3558
|
+
function po(t) {
|
|
3559
3559
|
return t && ot("iterator") && t[Symbol.iterator];
|
|
3560
3560
|
}
|
|
3561
|
-
var
|
|
3561
|
+
var mo = function(t, e, r, n) {
|
|
3562
3562
|
function i(s) {
|
|
3563
3563
|
return s instanceof r ? s : new r(function(o) {
|
|
3564
3564
|
o(s);
|
|
@@ -3584,7 +3584,7 @@ var fo = function(t, e, r, n) {
|
|
|
3584
3584
|
}
|
|
3585
3585
|
c((n = n.apply(t, e || [])).next());
|
|
3586
3586
|
});
|
|
3587
|
-
},
|
|
3587
|
+
}, vo = function(t) {
|
|
3588
3588
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
3589
3589
|
var e = t[Symbol.asyncIterator], r;
|
|
3590
3590
|
return e ? e.call(t) : (t = typeof __values == "function" ? __values(t) : t[Symbol.iterator](), r = {}, n("next"), n("throw"), n("return"), r[Symbol.asyncIterator] = function() {
|
|
@@ -3603,7 +3603,7 @@ var fo = function(t, e, r, n) {
|
|
|
3603
3603
|
}, o);
|
|
3604
3604
|
}
|
|
3605
3605
|
};
|
|
3606
|
-
function
|
|
3606
|
+
function yo(t) {
|
|
3607
3607
|
return (e) => new ee((r) => {
|
|
3608
3608
|
const n = new Rt(r), i = e.subscribe({
|
|
3609
3609
|
complete() {
|
|
@@ -3613,12 +3613,12 @@ function mo(t) {
|
|
|
3613
3613
|
n.error(s);
|
|
3614
3614
|
},
|
|
3615
3615
|
next(s) {
|
|
3616
|
-
n.schedule((o) =>
|
|
3616
|
+
n.schedule((o) => mo(this, void 0, void 0, function* () {
|
|
3617
3617
|
var a, u;
|
|
3618
3618
|
const c = yield t(s);
|
|
3619
|
-
if (
|
|
3619
|
+
if (po(c) || fo(c))
|
|
3620
3620
|
try {
|
|
3621
|
-
for (var l =
|
|
3621
|
+
for (var l = vo(c), f; f = yield l.next(), !f.done; ) {
|
|
3622
3622
|
const v = f.value;
|
|
3623
3623
|
o(v);
|
|
3624
3624
|
}
|
|
@@ -3639,7 +3639,7 @@ function mo(t) {
|
|
|
3639
3639
|
return () => $e(i);
|
|
3640
3640
|
});
|
|
3641
3641
|
}
|
|
3642
|
-
function
|
|
3642
|
+
function _o(t) {
|
|
3643
3643
|
return new ee((e) => {
|
|
3644
3644
|
let r = 0;
|
|
3645
3645
|
const n = setInterval(() => {
|
|
@@ -3648,7 +3648,7 @@ function vo(t) {
|
|
|
3648
3648
|
return () => clearInterval(n);
|
|
3649
3649
|
});
|
|
3650
3650
|
}
|
|
3651
|
-
var
|
|
3651
|
+
var bo = function(t, e, r, n) {
|
|
3652
3652
|
function i(s) {
|
|
3653
3653
|
return s instanceof r ? s : new r(function(o) {
|
|
3654
3654
|
o(s);
|
|
@@ -3675,7 +3675,7 @@ var yo = function(t, e, r, n) {
|
|
|
3675
3675
|
c((n = n.apply(t, e || [])).next());
|
|
3676
3676
|
});
|
|
3677
3677
|
};
|
|
3678
|
-
function
|
|
3678
|
+
function wo(t) {
|
|
3679
3679
|
return (e) => new ee((r) => {
|
|
3680
3680
|
const n = new Rt(r), i = e.subscribe({
|
|
3681
3681
|
complete() {
|
|
@@ -3685,7 +3685,7 @@ function _o(t) {
|
|
|
3685
3685
|
n.error(s);
|
|
3686
3686
|
},
|
|
3687
3687
|
next(s) {
|
|
3688
|
-
n.schedule((o) =>
|
|
3688
|
+
n.schedule((o) => bo(this, void 0, void 0, function* () {
|
|
3689
3689
|
const a = yield t(s);
|
|
3690
3690
|
o(a);
|
|
3691
3691
|
}));
|
|
@@ -3694,7 +3694,7 @@ function _o(t) {
|
|
|
3694
3694
|
return () => $e(i);
|
|
3695
3695
|
});
|
|
3696
3696
|
}
|
|
3697
|
-
function
|
|
3697
|
+
function go(...t) {
|
|
3698
3698
|
return t.length === 0 ? ee.from([]) : new ee((e) => {
|
|
3699
3699
|
let r = 0;
|
|
3700
3700
|
const n = t.map((s) => s.subscribe({
|
|
@@ -3713,7 +3713,7 @@ function bo(...t) {
|
|
|
3713
3713
|
return i;
|
|
3714
3714
|
});
|
|
3715
3715
|
}
|
|
3716
|
-
class
|
|
3716
|
+
class ui extends ee {
|
|
3717
3717
|
constructor() {
|
|
3718
3718
|
super((e) => (this._observers.add(e), () => this._observers.delete(e))), this._observers = /* @__PURE__ */ new Set();
|
|
3719
3719
|
}
|
|
@@ -3730,8 +3730,8 @@ class ai extends ee {
|
|
|
3730
3730
|
e.complete();
|
|
3731
3731
|
}
|
|
3732
3732
|
}
|
|
3733
|
-
function
|
|
3734
|
-
const e = new
|
|
3733
|
+
function Po(t) {
|
|
3734
|
+
const e = new ui();
|
|
3735
3735
|
let r, n = 0;
|
|
3736
3736
|
return new ee((i) => {
|
|
3737
3737
|
r || (r = t.subscribe(e));
|
|
@@ -3741,7 +3741,7 @@ function wo(t) {
|
|
|
3741
3741
|
};
|
|
3742
3742
|
});
|
|
3743
3743
|
}
|
|
3744
|
-
var
|
|
3744
|
+
var So = function(t, e, r, n) {
|
|
3745
3745
|
function i(s) {
|
|
3746
3746
|
return s instanceof r ? s : new r(function(o) {
|
|
3747
3747
|
o(s);
|
|
@@ -3768,7 +3768,7 @@ var go = function(t, e, r, n) {
|
|
|
3768
3768
|
c((n = n.apply(t, e || [])).next());
|
|
3769
3769
|
});
|
|
3770
3770
|
};
|
|
3771
|
-
function
|
|
3771
|
+
function Co(t, e) {
|
|
3772
3772
|
return (r) => new ee((n) => {
|
|
3773
3773
|
let i, s = 0;
|
|
3774
3774
|
const o = new Rt(n), a = r.subscribe({
|
|
@@ -3779,7 +3779,7 @@ function Po(t, e) {
|
|
|
3779
3779
|
o.error(u);
|
|
3780
3780
|
},
|
|
3781
3781
|
next(u) {
|
|
3782
|
-
o.schedule((c) =>
|
|
3782
|
+
o.schedule((c) => So(this, void 0, void 0, function* () {
|
|
3783
3783
|
i = yield t(s === 0 ? typeof e > "u" ? u : e : i, u, s++), c(i);
|
|
3784
3784
|
}));
|
|
3785
3785
|
}
|
|
@@ -3787,23 +3787,23 @@ function Po(t, e) {
|
|
|
3787
3787
|
return () => $e(a);
|
|
3788
3788
|
});
|
|
3789
3789
|
}
|
|
3790
|
-
const
|
|
3790
|
+
const Eo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3791
3791
|
__proto__: null,
|
|
3792
3792
|
Observable: ee,
|
|
3793
|
-
Subject:
|
|
3794
|
-
filter:
|
|
3795
|
-
flatMap:
|
|
3796
|
-
interval:
|
|
3797
|
-
map:
|
|
3798
|
-
merge:
|
|
3799
|
-
multicast:
|
|
3800
|
-
scan:
|
|
3793
|
+
Subject: ui,
|
|
3794
|
+
filter: ho,
|
|
3795
|
+
flatMap: yo,
|
|
3796
|
+
interval: _o,
|
|
3797
|
+
map: wo,
|
|
3798
|
+
merge: go,
|
|
3799
|
+
multicast: Po,
|
|
3800
|
+
scan: Co,
|
|
3801
3801
|
unsubscribe: $e
|
|
3802
|
-
}, Symbol.toStringTag, { value: "Module" })), jt = /* @__PURE__ */
|
|
3803
|
-
var Ze = {},
|
|
3804
|
-
function
|
|
3805
|
-
if (
|
|
3806
|
-
|
|
3802
|
+
}, Symbol.toStringTag, { value: "Module" })), jt = /* @__PURE__ */ Hi(Eo);
|
|
3803
|
+
var Ze = {}, on;
|
|
3804
|
+
function To() {
|
|
3805
|
+
if (on) return Ze;
|
|
3806
|
+
on = 1, Object.defineProperty(Ze, "__esModule", { value: !0 }), Ze.allSettled = void 0;
|
|
3807
3807
|
function t(e) {
|
|
3808
3808
|
return Promise.all(e.map((r) => {
|
|
3809
3809
|
const n = (o) => ({ status: "fulfilled", value: o }), i = (o) => ({ status: "rejected", reason: o }), s = Promise.resolve(r);
|
|
@@ -3816,23 +3816,23 @@ function Co() {
|
|
|
3816
3816
|
}
|
|
3817
3817
|
return Ze.allSettled = t, Ze;
|
|
3818
3818
|
}
|
|
3819
|
-
var Nt = {},
|
|
3820
|
-
function
|
|
3821
|
-
return
|
|
3819
|
+
var Nt = {}, an;
|
|
3820
|
+
function Oo() {
|
|
3821
|
+
return an || (an = 1, function(t) {
|
|
3822
3822
|
Object.defineProperty(t, "__esModule", { value: !0 }), t.PoolEventType = void 0, function(e) {
|
|
3823
3823
|
e.initialized = "initialized", e.taskCanceled = "taskCanceled", e.taskCompleted = "taskCompleted", e.taskFailed = "taskFailed", e.taskQueued = "taskQueued", e.taskQueueDrained = "taskQueueDrained", e.taskStart = "taskStart", e.terminated = "terminated";
|
|
3824
3824
|
}(t.PoolEventType || (t.PoolEventType = {}));
|
|
3825
3825
|
}(Nt)), Nt;
|
|
3826
3826
|
}
|
|
3827
|
-
var Ge = {}, se = {},
|
|
3828
|
-
function
|
|
3829
|
-
return
|
|
3827
|
+
var Ge = {}, se = {}, un;
|
|
3828
|
+
function Tr() {
|
|
3829
|
+
return un || (un = 1, Object.defineProperty(se, "__esModule", { value: !0 }), se.$worker = se.$transferable = se.$terminate = se.$events = se.$errors = void 0, se.$errors = Symbol("thread.errors"), se.$events = Symbol("thread.events"), se.$terminate = Symbol("thread.terminate"), se.$transferable = Symbol("thread.transferable"), se.$worker = Symbol("thread.worker")), se;
|
|
3830
3830
|
}
|
|
3831
|
-
var
|
|
3832
|
-
function
|
|
3833
|
-
if (
|
|
3834
|
-
|
|
3835
|
-
const t = /* @__PURE__ */
|
|
3831
|
+
var cn;
|
|
3832
|
+
function ci() {
|
|
3833
|
+
if (cn) return Ge;
|
|
3834
|
+
cn = 1, Object.defineProperty(Ge, "__esModule", { value: !0 }), Ge.Thread = void 0;
|
|
3835
|
+
const t = /* @__PURE__ */ Tr();
|
|
3836
3836
|
function e(r) {
|
|
3837
3837
|
throw Error(r);
|
|
3838
3838
|
}
|
|
@@ -3851,9 +3851,9 @@ function ui() {
|
|
|
3851
3851
|
}
|
|
3852
3852
|
}, Ge;
|
|
3853
3853
|
}
|
|
3854
|
-
var
|
|
3855
|
-
function
|
|
3856
|
-
return
|
|
3854
|
+
var ln;
|
|
3855
|
+
function Mo() {
|
|
3856
|
+
return ln || (ln = 1, function(t) {
|
|
3857
3857
|
var e = Ce && Ce.__awaiter || function(_, C, P, M) {
|
|
3858
3858
|
function g(b) {
|
|
3859
3859
|
return b instanceof P ? b : new P(function(x) {
|
|
@@ -3884,11 +3884,11 @@ function To() {
|
|
|
3884
3884
|
return _ && _.__esModule ? _ : { default: _ };
|
|
3885
3885
|
};
|
|
3886
3886
|
Object.defineProperty(t, "__esModule", { value: !0 }), t.Pool = t.Thread = t.PoolEventType = void 0;
|
|
3887
|
-
const n = r(
|
|
3887
|
+
const n = r(Cr()), i = jt, s = /* @__PURE__ */ To(), o = /* @__PURE__ */ ni(), a = /* @__PURE__ */ Oo();
|
|
3888
3888
|
Object.defineProperty(t, "PoolEventType", { enumerable: !0, get: function() {
|
|
3889
3889
|
return a.PoolEventType;
|
|
3890
3890
|
} });
|
|
3891
|
-
const u = /* @__PURE__ */
|
|
3891
|
+
const u = /* @__PURE__ */ ci();
|
|
3892
3892
|
Object.defineProperty(t, "Thread", { enumerable: !0, get: function() {
|
|
3893
3893
|
return u.Thread;
|
|
3894
3894
|
} });
|
|
@@ -4074,10 +4074,10 @@ This usually happens for one of two reasons: We are either at peak workload righ
|
|
|
4074
4074
|
F.EventType = a.PoolEventType, t.Pool = F;
|
|
4075
4075
|
}(Ce)), Ce;
|
|
4076
4076
|
}
|
|
4077
|
-
var me = {}, Qe = {},
|
|
4078
|
-
function
|
|
4079
|
-
if (
|
|
4080
|
-
|
|
4077
|
+
var me = {}, Qe = {}, hn;
|
|
4078
|
+
function Ro() {
|
|
4079
|
+
if (hn) return Qe;
|
|
4080
|
+
hn = 1, Object.defineProperty(Qe, "__esModule", { value: !0 }), Qe.createPromiseWithResolver = void 0;
|
|
4081
4081
|
const t = () => {
|
|
4082
4082
|
};
|
|
4083
4083
|
function e() {
|
|
@@ -4090,18 +4090,18 @@ function Oo() {
|
|
|
4090
4090
|
}
|
|
4091
4091
|
return Qe.createPromiseWithResolver = e, Qe;
|
|
4092
4092
|
}
|
|
4093
|
-
var qt = {},
|
|
4094
|
-
function
|
|
4095
|
-
return
|
|
4093
|
+
var qt = {}, fn;
|
|
4094
|
+
function jo() {
|
|
4095
|
+
return fn || (fn = 1, function(t) {
|
|
4096
4096
|
Object.defineProperty(t, "__esModule", { value: !0 }), t.WorkerEventType = void 0, function(e) {
|
|
4097
4097
|
e.internalError = "internalError", e.message = "message", e.termination = "termination";
|
|
4098
4098
|
}(t.WorkerEventType || (t.WorkerEventType = {}));
|
|
4099
4099
|
}(qt)), qt;
|
|
4100
4100
|
}
|
|
4101
|
-
var ve = {}, Ke = {},
|
|
4102
|
-
function
|
|
4103
|
-
if (
|
|
4104
|
-
|
|
4101
|
+
var ve = {}, Ke = {}, dn;
|
|
4102
|
+
function $o() {
|
|
4103
|
+
if (dn) return Ke;
|
|
4104
|
+
dn = 1, Object.defineProperty(Ke, "__esModule", { value: !0 }), Ke.ObservablePromise = void 0;
|
|
4105
4105
|
const t = jt, e = () => {
|
|
4106
4106
|
}, r = (a) => a, n = (a) => Promise.resolve().then(a);
|
|
4107
4107
|
function i(a) {
|
|
@@ -4191,11 +4191,11 @@ function Ro() {
|
|
|
4191
4191
|
}
|
|
4192
4192
|
return Ke.ObservablePromise = o, Ke;
|
|
4193
4193
|
}
|
|
4194
|
-
var Ee = {},
|
|
4194
|
+
var Ee = {}, pn;
|
|
4195
4195
|
function Pt() {
|
|
4196
|
-
if (
|
|
4197
|
-
|
|
4198
|
-
const t = /* @__PURE__ */
|
|
4196
|
+
if (pn) return Ee;
|
|
4197
|
+
pn = 1, Object.defineProperty(Ee, "__esModule", { value: !0 }), Ee.Transfer = Ee.isTransferDescriptor = void 0;
|
|
4198
|
+
const t = /* @__PURE__ */ Tr();
|
|
4199
4199
|
function e(i) {
|
|
4200
4200
|
return !(!i || typeof i != "object");
|
|
4201
4201
|
}
|
|
@@ -4217,9 +4217,9 @@ function Pt() {
|
|
|
4217
4217
|
}
|
|
4218
4218
|
return Ee.Transfer = n, Ee;
|
|
4219
4219
|
}
|
|
4220
|
-
var Ht = {},
|
|
4221
|
-
function
|
|
4222
|
-
return
|
|
4220
|
+
var Ht = {}, mn;
|
|
4221
|
+
function li() {
|
|
4222
|
+
return mn || (mn = 1, function(t) {
|
|
4223
4223
|
Object.defineProperty(t, "__esModule", { value: !0 }), t.WorkerMessageType = t.MasterMessageType = void 0, function(e) {
|
|
4224
4224
|
e.cancel = "cancel", e.run = "run";
|
|
4225
4225
|
}(t.MasterMessageType || (t.MasterMessageType = {})), function(e) {
|
|
@@ -4227,15 +4227,15 @@ function ci() {
|
|
|
4227
4227
|
}(t.WorkerMessageType || (t.WorkerMessageType = {}));
|
|
4228
4228
|
}(Ht)), Ht;
|
|
4229
4229
|
}
|
|
4230
|
-
var
|
|
4231
|
-
function
|
|
4232
|
-
if (
|
|
4233
|
-
|
|
4230
|
+
var vn;
|
|
4231
|
+
function xo() {
|
|
4232
|
+
if (vn) return ve;
|
|
4233
|
+
vn = 1;
|
|
4234
4234
|
var t = ve && ve.__importDefault || function(_) {
|
|
4235
4235
|
return _ && _.__esModule ? _ : { default: _ };
|
|
4236
4236
|
};
|
|
4237
4237
|
Object.defineProperty(ve, "__esModule", { value: !0 }), ve.createProxyModule = ve.createProxyFunction = void 0;
|
|
4238
|
-
const e = t(
|
|
4238
|
+
const e = t(Cr()), r = jt, n = /* @__PURE__ */ et(), i = /* @__PURE__ */ $o(), s = /* @__PURE__ */ Pt(), o = /* @__PURE__ */ li(), a = e.default("threads:master:messages");
|
|
4239
4239
|
let u = 1;
|
|
4240
4240
|
const c = (_) => Array.from(new Set(_)), l = (_) => _ && _.type === o.WorkerMessageType.error, f = (_) => _ && _.type === o.WorkerMessageType.result, v = (_) => _ && _.type === o.WorkerMessageType.running;
|
|
4241
4241
|
function w(_, C) {
|
|
@@ -4305,10 +4305,10 @@ function jo() {
|
|
|
4305
4305
|
}
|
|
4306
4306
|
return ve.createProxyModule = F, ve;
|
|
4307
4307
|
}
|
|
4308
|
-
var
|
|
4309
|
-
function
|
|
4310
|
-
if (
|
|
4311
|
-
|
|
4308
|
+
var yn;
|
|
4309
|
+
function Do() {
|
|
4310
|
+
if (yn) return me;
|
|
4311
|
+
yn = 1;
|
|
4312
4312
|
var t = me && me.__awaiter || function(g, b, x, N) {
|
|
4313
4313
|
function y(j) {
|
|
4314
4314
|
return j instanceof x ? j : new x(function(k) {
|
|
@@ -4339,7 +4339,7 @@ function $o() {
|
|
|
4339
4339
|
return g && g.__esModule ? g : { default: g };
|
|
4340
4340
|
};
|
|
4341
4341
|
Object.defineProperty(me, "__esModule", { value: !0 }), me.spawn = void 0;
|
|
4342
|
-
const r = e(
|
|
4342
|
+
const r = e(Cr()), n = jt, i = /* @__PURE__ */ et(), s = /* @__PURE__ */ Ro(), o = /* @__PURE__ */ Tr(), a = /* @__PURE__ */ jo(), u = /* @__PURE__ */ xo(), c = r.default("threads:master:messages"), l = r.default("threads:master:spawn"), f = r.default("threads:master:thread-utils"), v = (g) => g && g.type === "init", w = (g) => g && g.type === "uncaughtError", z = typeof process < "u" && process.env.THREADS_WORKER_INIT_TIMEOUT ? Number.parseInt(process.env.THREADS_WORKER_INIT_TIMEOUT, 10) : 1e4;
|
|
4343
4343
|
function D(g, b, x) {
|
|
4344
4344
|
return t(this, void 0, void 0, function* () {
|
|
4345
4345
|
let N;
|
|
@@ -4417,36 +4417,36 @@ function $o() {
|
|
|
4417
4417
|
}
|
|
4418
4418
|
return me.spawn = M, me;
|
|
4419
4419
|
}
|
|
4420
|
-
var
|
|
4421
|
-
function
|
|
4422
|
-
return
|
|
4420
|
+
var _n;
|
|
4421
|
+
function ko() {
|
|
4422
|
+
return _n || (_n = 1, function(t) {
|
|
4423
4423
|
Object.defineProperty(t, "__esModule", { value: !0 }), t.Worker = t.BlobWorker = t.isWorkerRuntime = t.Thread = t.spawn = t.Pool = void 0;
|
|
4424
|
-
const e = /* @__PURE__ */
|
|
4424
|
+
const e = /* @__PURE__ */ ni();
|
|
4425
4425
|
Object.defineProperty(t, "isWorkerRuntime", { enumerable: !0, get: function() {
|
|
4426
4426
|
return e.isWorkerRuntime;
|
|
4427
4427
|
} });
|
|
4428
|
-
var r = /* @__PURE__ */
|
|
4428
|
+
var r = /* @__PURE__ */ Mo();
|
|
4429
4429
|
Object.defineProperty(t, "Pool", { enumerable: !0, get: function() {
|
|
4430
4430
|
return r.Pool;
|
|
4431
4431
|
} });
|
|
4432
|
-
var n = /* @__PURE__ */
|
|
4432
|
+
var n = /* @__PURE__ */ Do();
|
|
4433
4433
|
Object.defineProperty(t, "spawn", { enumerable: !0, get: function() {
|
|
4434
4434
|
return n.spawn;
|
|
4435
4435
|
} });
|
|
4436
|
-
var i = /* @__PURE__ */
|
|
4436
|
+
var i = /* @__PURE__ */ ci();
|
|
4437
4437
|
Object.defineProperty(t, "Thread", { enumerable: !0, get: function() {
|
|
4438
4438
|
return i.Thread;
|
|
4439
4439
|
} }), t.BlobWorker = e.getWorkerImplementation().blob, t.Worker = e.getWorkerImplementation().default;
|
|
4440
4440
|
}(zt)), zt;
|
|
4441
4441
|
}
|
|
4442
|
-
var Te = {}, Ut,
|
|
4443
|
-
function
|
|
4444
|
-
return
|
|
4442
|
+
var Te = {}, Ut, bn;
|
|
4443
|
+
function Ao() {
|
|
4444
|
+
return bn || (bn = 1, Ut = (t) => t ? typeof Symbol.observable == "symbol" && typeof t[Symbol.observable] == "function" ? t === t[Symbol.observable]() : typeof t["@@observable"] == "function" ? t === t["@@observable"]() : !1 : !1), Ut;
|
|
4445
4445
|
}
|
|
4446
|
-
var ft = {},
|
|
4447
|
-
function
|
|
4448
|
-
if (
|
|
4449
|
-
|
|
4446
|
+
var ft = {}, wn;
|
|
4447
|
+
function Io() {
|
|
4448
|
+
if (wn) return ft;
|
|
4449
|
+
wn = 1, Object.defineProperty(ft, "__esModule", { value: !0 });
|
|
4450
4450
|
const t = function() {
|
|
4451
4451
|
const i = typeof self < "u" && typeof Window < "u" && self instanceof Window;
|
|
4452
4452
|
return !!(typeof self < "u" && self.postMessage && !i);
|
|
@@ -4466,9 +4466,9 @@ function ko() {
|
|
|
4466
4466
|
subscribeToMasterMessages: r
|
|
4467
4467
|
}, ft;
|
|
4468
4468
|
}
|
|
4469
|
-
var
|
|
4470
|
-
function
|
|
4471
|
-
return
|
|
4469
|
+
var gn;
|
|
4470
|
+
function zo() {
|
|
4471
|
+
return gn || (gn = 1, function(t) {
|
|
4472
4472
|
var e = Te && Te.__awaiter || function(y, j, k, q) {
|
|
4473
4473
|
function te(B) {
|
|
4474
4474
|
return B instanceof k ? B : new k(function(G) {
|
|
@@ -4499,7 +4499,7 @@ function Ao() {
|
|
|
4499
4499
|
return y && y.__esModule ? y : { default: y };
|
|
4500
4500
|
};
|
|
4501
4501
|
Object.defineProperty(t, "__esModule", { value: !0 }), t.expose = t.isWorkerRuntime = t.Transfer = t.registerSerializer = void 0;
|
|
4502
|
-
const n = r(
|
|
4502
|
+
const n = r(Ao()), i = /* @__PURE__ */ et(), s = /* @__PURE__ */ Pt(), o = /* @__PURE__ */ li(), a = r(/* @__PURE__ */ Io());
|
|
4503
4503
|
var u = /* @__PURE__ */ et();
|
|
4504
4504
|
Object.defineProperty(t, "registerSerializer", { enumerable: !0, get: function() {
|
|
4505
4505
|
return u.registerSerializer;
|
|
@@ -4634,9 +4634,9 @@ Original error:`, y);
|
|
|
4634
4634
|
}));
|
|
4635
4635
|
}(Te)), Te;
|
|
4636
4636
|
}
|
|
4637
|
-
var
|
|
4638
|
-
function
|
|
4639
|
-
return
|
|
4637
|
+
var Pn;
|
|
4638
|
+
function Fo() {
|
|
4639
|
+
return Pn || (Pn = 1, function(t) {
|
|
4640
4640
|
var e = ge && ge.__createBinding || (Object.create ? function(a, u, c, l) {
|
|
4641
4641
|
l === void 0 && (l = c), Object.defineProperty(a, l, { enumerable: !0, get: function() {
|
|
4642
4642
|
return u[c];
|
|
@@ -4650,12 +4650,12 @@ function Io() {
|
|
|
4650
4650
|
var n = /* @__PURE__ */ et();
|
|
4651
4651
|
Object.defineProperty(t, "registerSerializer", { enumerable: !0, get: function() {
|
|
4652
4652
|
return n.registerSerializer;
|
|
4653
|
-
} }), r(/* @__PURE__ */
|
|
4654
|
-
var i =
|
|
4653
|
+
} }), r(/* @__PURE__ */ ko(), t);
|
|
4654
|
+
var i = zo();
|
|
4655
4655
|
Object.defineProperty(t, "expose", { enumerable: !0, get: function() {
|
|
4656
4656
|
return i.expose;
|
|
4657
4657
|
} });
|
|
4658
|
-
var s = /* @__PURE__ */
|
|
4658
|
+
var s = /* @__PURE__ */ ri();
|
|
4659
4659
|
Object.defineProperty(t, "DefaultSerializer", { enumerable: !0, get: function() {
|
|
4660
4660
|
return s.DefaultSerializer;
|
|
4661
4661
|
} });
|
|
@@ -4665,18 +4665,18 @@ function Io() {
|
|
|
4665
4665
|
} });
|
|
4666
4666
|
}(ge)), ge;
|
|
4667
4667
|
}
|
|
4668
|
-
var
|
|
4669
|
-
const we = /* @__PURE__ */
|
|
4668
|
+
var Lo = /* @__PURE__ */ Fo();
|
|
4669
|
+
const we = /* @__PURE__ */ qi(Lo);
|
|
4670
4670
|
we.registerSerializer;
|
|
4671
|
-
const
|
|
4671
|
+
const Wo = we.spawn;
|
|
4672
4672
|
we.BlobWorker;
|
|
4673
4673
|
we.DefaultSerializer;
|
|
4674
4674
|
we.Pool;
|
|
4675
|
-
const
|
|
4675
|
+
const No = we.Thread;
|
|
4676
4676
|
we.Transfer;
|
|
4677
|
-
const
|
|
4678
|
-
var
|
|
4679
|
-
class
|
|
4677
|
+
const qo = we.Worker;
|
|
4678
|
+
var Ho = Object.defineProperty, Uo = (t, e, r) => e in t ? Ho(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, ie = (t, e, r) => Uo(t, typeof e != "symbol" ? e + "" : e, r);
|
|
4679
|
+
class Yo extends Ri {
|
|
4680
4680
|
constructor() {
|
|
4681
4681
|
super(), ie(this, "style", {}), ie(this, "width", 0), ie(this, "height", 0), ie(this, "left", 0), ie(this, "top", 0), this.getRootNode = this.getRootNode.bind(this), this.handleEvent = this.handleEvent.bind(this);
|
|
4682
4682
|
}
|
|
@@ -4715,7 +4715,7 @@ class Ho extends Mi {
|
|
|
4715
4715
|
focus() {
|
|
4716
4716
|
}
|
|
4717
4717
|
}
|
|
4718
|
-
const
|
|
4718
|
+
const Bo = () => {
|
|
4719
4719
|
try {
|
|
4720
4720
|
if (window) {
|
|
4721
4721
|
if (navigator != null && navigator.hardwareConcurrency)
|
|
@@ -4725,24 +4725,24 @@ const Uo = () => {
|
|
|
4725
4725
|
} catch (t) {
|
|
4726
4726
|
return console.error("🛑 Unable to detect available cores", t), 2;
|
|
4727
4727
|
}
|
|
4728
|
-
},
|
|
4729
|
-
let
|
|
4730
|
-
class
|
|
4728
|
+
}, Vo = () => Bo() - 1, Zo = "TERMINATE_THREAD_FROM_WORKER";
|
|
4729
|
+
let Go = -1;
|
|
4730
|
+
class Qo {
|
|
4731
4731
|
constructor(e) {
|
|
4732
|
-
ie(this, "_handleTerminate"), ie(this, "_handleError"), ie(this, "_task"), ie(this, "id",
|
|
4732
|
+
ie(this, "_handleTerminate"), ie(this, "_handleError"), ie(this, "_task"), ie(this, "id", Go += 1), ie(this, "idle", !0), ie(this, "worker"), ie(this, "thread"), this._handleTerminate = e == null ? void 0 : e.onTerminate, this._handleError = e == null ? void 0 : e.onError;
|
|
4733
4733
|
}
|
|
4734
4734
|
_handleMessages(e) {
|
|
4735
4735
|
var r;
|
|
4736
|
-
e instanceof MessageEvent && ((r = e.data) == null ? void 0 : r.token) ===
|
|
4736
|
+
e instanceof MessageEvent && ((r = e.data) == null ? void 0 : r.token) === Zo && this.terminate();
|
|
4737
4737
|
}
|
|
4738
4738
|
async run(e) {
|
|
4739
4739
|
var r;
|
|
4740
4740
|
try {
|
|
4741
4741
|
const { payload: n, options: i } = e;
|
|
4742
|
-
return this.idle = !1, this.worker = new
|
|
4742
|
+
return this.idle = !1, this.worker = new qo(n.path, {
|
|
4743
4743
|
type: "module",
|
|
4744
4744
|
...i == null ? void 0 : i.worker
|
|
4745
|
-
}), this.thread = await
|
|
4745
|
+
}), this.thread = await Wo(this.worker, {
|
|
4746
4746
|
timeout: 1e4,
|
|
4747
4747
|
...i == null ? void 0 : i.spawn
|
|
4748
4748
|
}), this._task = e, this.worker.postMessage(n.subject, n.transferSubject), this.worker.addEventListener("message", this._handleMessages.bind(this)), {
|
|
@@ -4762,10 +4762,10 @@ class Zo {
|
|
|
4762
4762
|
(e = this.worker) == null || e.removeEventListener(
|
|
4763
4763
|
"message",
|
|
4764
4764
|
this._handleMessages.bind(this)
|
|
4765
|
-
), this.thread && await
|
|
4765
|
+
), this.thread && await No.terminate(this.thread), await ((r = this.worker) == null ? void 0 : r.terminate()), this.worker = void 0, this.thread = void 0, this._task = void 0, this.idle = !0, (n = this._handleTerminate) == null || n.call(this);
|
|
4766
4766
|
}
|
|
4767
4767
|
}
|
|
4768
|
-
class
|
|
4768
|
+
class Ko {
|
|
4769
4769
|
constructor(e, r, n) {
|
|
4770
4770
|
ie(this, "_workerThreads", []), ie(this, "_tasksQueue", []), this.maxWorkersCount = e, this.debugMode = r, this.onWorkerThreadRun = n;
|
|
4771
4771
|
for (let i = 0; i < this.maxWorkersCount; i++)
|
|
@@ -4778,7 +4778,7 @@ class Go {
|
|
|
4778
4778
|
console.error(`Error from worker #${r.id}:`, e), this.runNext();
|
|
4779
4779
|
}
|
|
4780
4780
|
_createWorkerThread() {
|
|
4781
|
-
const e = new
|
|
4781
|
+
const e = new Qo({
|
|
4782
4782
|
onTerminate: () => this._handleWorkerThreadTerminate(e),
|
|
4783
4783
|
onError: (r) => this._handleWorkerThreadError(r, e)
|
|
4784
4784
|
});
|
|
@@ -4841,7 +4841,7 @@ class Go {
|
|
|
4841
4841
|
this._tasksQueue = [], await Promise.all(this._workerThreads.map((e) => e.terminate()));
|
|
4842
4842
|
}
|
|
4843
4843
|
}
|
|
4844
|
-
const
|
|
4844
|
+
const zu = (t, e) => new Ko(Vo(), !!e), Fu = (t) => t === void 0, Lu = (t) => typeof t == "boolean", Wu = (t) => !!t && typeof t == "function", Nu = (t) => {
|
|
4845
4845
|
var e, r;
|
|
4846
4846
|
const n = t.toJSON();
|
|
4847
4847
|
return JSON.stringify({
|
|
@@ -4872,7 +4872,7 @@ const Iu = (t, e) => new Go(Yo(), !!e), zu = (t) => t === void 0, Fu = (t) => ty
|
|
|
4872
4872
|
},
|
|
4873
4873
|
isSerialized: !0
|
|
4874
4874
|
});
|
|
4875
|
-
},
|
|
4875
|
+
}, Yt = (t, e = new ji()) => {
|
|
4876
4876
|
const r = JSON.parse(t);
|
|
4877
4877
|
if (r != null && r.metadata && r.object && r.isSerialized) {
|
|
4878
4878
|
const n = e.parse(r);
|
|
@@ -4891,14 +4891,14 @@ const Iu = (t, e) => new Go(Yo(), !!e), zu = (t) => t === void 0, Fu = (t) => ty
|
|
|
4891
4891
|
}), n;
|
|
4892
4892
|
}
|
|
4893
4893
|
return r;
|
|
4894
|
-
},
|
|
4894
|
+
}, qu = (t, e) => {
|
|
4895
4895
|
const r = {
|
|
4896
4896
|
type: t == null ? void 0 : t.type
|
|
4897
4897
|
};
|
|
4898
4898
|
for (const n of e)
|
|
4899
4899
|
t[n] !== void 0 && (r[n] = t[n]);
|
|
4900
4900
|
return r;
|
|
4901
|
-
},
|
|
4901
|
+
}, Sn = (t, e) => {
|
|
4902
4902
|
const r = {
|
|
4903
4903
|
type: t == null ? void 0 : t.type
|
|
4904
4904
|
};
|
|
@@ -4906,15 +4906,15 @@ const Iu = (t, e) => new Go(Yo(), !!e), zu = (t) => t === void 0, Fu = (t) => ty
|
|
|
4906
4906
|
e.includes(n) || (r[n] = i);
|
|
4907
4907
|
return r;
|
|
4908
4908
|
};
|
|
4909
|
-
var
|
|
4910
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
4909
|
+
var Xo = Object.defineProperty, Jo = Object.getOwnPropertyDescriptor, ea = (t, e, r, n) => {
|
|
4910
|
+
for (var i = n > 1 ? void 0 : n ? Jo(e, r) : e, s = t.length - 1, o; s >= 0; s--)
|
|
4911
4911
|
(o = t[s]) && (i = (n ? o(e, r, i) : o(i)) || i);
|
|
4912
|
-
return n && i &&
|
|
4912
|
+
return n && i && Xo(e, r, i), i;
|
|
4913
4913
|
};
|
|
4914
4914
|
let tt = class {
|
|
4915
4915
|
constructor() {
|
|
4916
4916
|
p(this, "_canvas");
|
|
4917
|
-
p(this, "proxyReceiver", new
|
|
4917
|
+
p(this, "proxyReceiver", new Yo());
|
|
4918
4918
|
p(this, "initialized", !1);
|
|
4919
4919
|
}
|
|
4920
4920
|
get canvas() {
|
|
@@ -4927,18 +4927,18 @@ let tt = class {
|
|
|
4927
4927
|
}, this._canvas = t;
|
|
4928
4928
|
}
|
|
4929
4929
|
};
|
|
4930
|
-
tt =
|
|
4930
|
+
tt = ea([
|
|
4931
4931
|
Z()
|
|
4932
4932
|
], tt);
|
|
4933
|
-
var
|
|
4934
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
4933
|
+
var ta = Object.defineProperty, ra = Object.getOwnPropertyDescriptor, na = (t, e, r, n) => {
|
|
4934
|
+
for (var i = n > 1 ? void 0 : n ? ra(e, r) : e, s = t.length - 1, o; s >= 0; s--)
|
|
4935
4935
|
(o = t[s]) && (i = (n ? o(e, r, i) : o(i)) || i);
|
|
4936
|
-
return n && i &&
|
|
4937
|
-
},
|
|
4938
|
-
let St = class extends
|
|
4936
|
+
return n && i && ta(e, r, i), i;
|
|
4937
|
+
}, ia = (t, e) => (r, n) => e(r, n, t);
|
|
4938
|
+
let St = class extends cs {
|
|
4939
4939
|
constructor(t) {
|
|
4940
4940
|
super(), this._service = t;
|
|
4941
|
-
for (const e of
|
|
4941
|
+
for (const e of qn)
|
|
4942
4942
|
this[`${e}$$`] = new Ot(), this[`${e}$`] = this[`${e}$$`].pipe(), this[e] = (r) => {
|
|
4943
4943
|
this._service.proxyReceiver.handleEvent({
|
|
4944
4944
|
...r,
|
|
@@ -4947,14 +4947,14 @@ let St = class extends as {
|
|
|
4947
4947
|
};
|
|
4948
4948
|
}
|
|
4949
4949
|
};
|
|
4950
|
-
St =
|
|
4950
|
+
St = na([
|
|
4951
4951
|
Z(),
|
|
4952
|
-
|
|
4952
|
+
ia(0, I(tt))
|
|
4953
4953
|
], St);
|
|
4954
|
-
var
|
|
4955
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
4954
|
+
var sa = Object.defineProperty, oa = Object.getOwnPropertyDescriptor, aa = (t, e, r, n) => {
|
|
4955
|
+
for (var i = n > 1 ? void 0 : n ? oa(e, r) : e, s = t.length - 1, o; s >= 0; s--)
|
|
4956
4956
|
(o = t[s]) && (i = (n ? o(e, r, i) : o(i)) || i);
|
|
4957
|
-
return n && i &&
|
|
4957
|
+
return n && i && sa(e, r, i), i;
|
|
4958
4958
|
};
|
|
4959
4959
|
let Ct = class {
|
|
4960
4960
|
constructor() {
|
|
@@ -4971,42 +4971,42 @@ let Ct = class {
|
|
|
4971
4971
|
this.deltaTime = t - this.currentTime, this.currentTime = t, this.elapsedTime = t - this.initialTime, this.deltaRatio = this.deltaTime / this.frame;
|
|
4972
4972
|
}
|
|
4973
4973
|
};
|
|
4974
|
-
Ct =
|
|
4974
|
+
Ct = aa([
|
|
4975
4975
|
Z()
|
|
4976
4976
|
], Ct);
|
|
4977
|
-
var
|
|
4978
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
4977
|
+
var ua = Object.defineProperty, ca = Object.getOwnPropertyDescriptor, la = (t, e, r, n) => {
|
|
4978
|
+
for (var i = n > 1 ? void 0 : n ? ca(e, r) : e, s = t.length - 1, o; s >= 0; s--)
|
|
4979
4979
|
(o = t[s]) && (i = (n ? o(e, r, i) : o(i)) || i);
|
|
4980
|
-
return n && i &&
|
|
4981
|
-
},
|
|
4980
|
+
return n && i && ua(e, r, i), i;
|
|
4981
|
+
}, ha = (t, e) => (r, n) => e(r, n, t);
|
|
4982
4982
|
let He = class {
|
|
4983
4983
|
constructor(t) {
|
|
4984
4984
|
p(this, "beforeStep$$", new Ot());
|
|
4985
4985
|
p(this, "_previousTime", 0);
|
|
4986
4986
|
p(this, "beforeStep$", this.beforeStep$$.asObservable());
|
|
4987
|
-
p(this, "step$",
|
|
4988
|
-
|
|
4987
|
+
p(this, "step$", Es().pipe(
|
|
4988
|
+
eo(({ elapsed: t }) => {
|
|
4989
4989
|
var e;
|
|
4990
|
-
this._previousTime !== t && ((e = this.beforeStep$$) == null || e.next(
|
|
4990
|
+
this._previousTime !== t && ((e = this.beforeStep$$) == null || e.next(Sn(this._service, [])), this._previousTime = t);
|
|
4991
4991
|
}),
|
|
4992
4992
|
be(() => this._service.enabled),
|
|
4993
|
-
|
|
4994
|
-
Mt(() =>
|
|
4995
|
-
|
|
4993
|
+
Js(() => this._service.enabled),
|
|
4994
|
+
Mt(() => Sn(this._service, [])),
|
|
4995
|
+
ti()
|
|
4996
4996
|
));
|
|
4997
4997
|
this._service = t;
|
|
4998
4998
|
}
|
|
4999
4999
|
};
|
|
5000
|
-
He =
|
|
5000
|
+
He = la([
|
|
5001
5001
|
Z(),
|
|
5002
|
-
|
|
5002
|
+
ha(0, I(Ct))
|
|
5003
5003
|
], He);
|
|
5004
|
-
var
|
|
5005
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
5004
|
+
var fa = Object.defineProperty, da = Object.getOwnPropertyDescriptor, pa = (t, e, r, n) => {
|
|
5005
|
+
for (var i = n > 1 ? void 0 : n ? da(e, r) : e, s = t.length - 1, o; s >= 0; s--)
|
|
5006
5006
|
(o = t[s]) && (i = (n ? o(e, r, i) : o(i)) || i);
|
|
5007
|
-
return n && i &&
|
|
5008
|
-
},
|
|
5009
|
-
let
|
|
5007
|
+
return n && i && fa(e, r, i), i;
|
|
5008
|
+
}, Cn = (t, e) => (r, n) => e(r, n, t);
|
|
5009
|
+
let ar = class {
|
|
5010
5010
|
constructor(t, e) {
|
|
5011
5011
|
p(this, "_initialAnimationFrameId");
|
|
5012
5012
|
p(this, "_subscriptions", []);
|
|
@@ -5039,15 +5039,15 @@ let or = class {
|
|
|
5039
5039
|
return this._controller.step$;
|
|
5040
5040
|
}
|
|
5041
5041
|
};
|
|
5042
|
-
|
|
5042
|
+
ar = pa([
|
|
5043
5043
|
Z(),
|
|
5044
|
-
|
|
5045
|
-
|
|
5046
|
-
],
|
|
5047
|
-
var
|
|
5048
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
5044
|
+
Cn(0, I(He)),
|
|
5045
|
+
Cn(1, I(Ct))
|
|
5046
|
+
], ar);
|
|
5047
|
+
var ma = Object.defineProperty, va = Object.getOwnPropertyDescriptor, ya = (t, e, r, n) => {
|
|
5048
|
+
for (var i = n > 1 ? void 0 : n ? va(e, r) : e, s = t.length - 1, o; s >= 0; s--)
|
|
5049
5049
|
(o = t[s]) && (i = (n ? o(e, r, i) : o(i)) || i);
|
|
5050
|
-
return n && i &&
|
|
5050
|
+
return n && i && ma(e, r, i), i;
|
|
5051
5051
|
};
|
|
5052
5052
|
let Re = class {
|
|
5053
5053
|
constructor() {
|
|
@@ -5062,14 +5062,14 @@ let Re = class {
|
|
|
5062
5062
|
this.height = Number(t.height ?? this.height), this.width = Number(t.width ?? this.width), this.aspect = this.width / this.height, this.enabled = e === void 0 ? !0 : !!e;
|
|
5063
5063
|
}
|
|
5064
5064
|
};
|
|
5065
|
-
Re =
|
|
5065
|
+
Re = ya([
|
|
5066
5066
|
Z()
|
|
5067
5067
|
], Re);
|
|
5068
|
-
var
|
|
5069
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
5068
|
+
var _a = Object.defineProperty, ba = Object.getOwnPropertyDescriptor, wa = (t, e, r, n) => {
|
|
5069
|
+
for (var i = n > 1 ? void 0 : n ? ba(e, r) : e, s = t.length - 1, o; s >= 0; s--)
|
|
5070
5070
|
(o = t[s]) && (i = (n ? o(e, r, i) : o(i)) || i);
|
|
5071
|
-
return n && i &&
|
|
5072
|
-
},
|
|
5071
|
+
return n && i && _a(e, r, i), i;
|
|
5072
|
+
}, ga = (t, e) => (r, n) => e(r, n, t);
|
|
5073
5073
|
let je = class {
|
|
5074
5074
|
constructor(t) {
|
|
5075
5075
|
p(this, "instance");
|
|
@@ -5094,7 +5094,7 @@ let je = class {
|
|
|
5094
5094
|
(e = this.instance) == null || e.rotation.copy(t);
|
|
5095
5095
|
}
|
|
5096
5096
|
initDefaultCamera(t) {
|
|
5097
|
-
if (this.removeCamera(), t ===
|
|
5097
|
+
if (this.removeCamera(), t === er.PERSPECTIVE || t === void 0) {
|
|
5098
5098
|
this.instance = new Ie(
|
|
5099
5099
|
70,
|
|
5100
5100
|
this._sizesService.width / this._sizesService.height,
|
|
@@ -5103,7 +5103,7 @@ let je = class {
|
|
|
5103
5103
|
), this.instance.position.z = 8;
|
|
5104
5104
|
return;
|
|
5105
5105
|
}
|
|
5106
|
-
t ===
|
|
5106
|
+
t === er.ORTHOGRAPHIC && (this.instance = new mt(
|
|
5107
5107
|
-this._sizesService.aspect * this._sizesService.frustrum / 2,
|
|
5108
5108
|
this._sizesService.aspect * this._sizesService.frustrum / 2,
|
|
5109
5109
|
this._sizesService.frustrum / 2,
|
|
@@ -5127,16 +5127,16 @@ let je = class {
|
|
|
5127
5127
|
this.miniCamera instanceof Xe && (this.miniCamera.clearViewOffset(), this.miniCamera.clear(), this.miniCamera = void 0);
|
|
5128
5128
|
}
|
|
5129
5129
|
};
|
|
5130
|
-
je =
|
|
5130
|
+
je = wa([
|
|
5131
5131
|
Z(),
|
|
5132
|
-
|
|
5132
|
+
ga(0, I(Re))
|
|
5133
5133
|
], je);
|
|
5134
|
-
var
|
|
5135
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
5134
|
+
var Pa = Object.defineProperty, Sa = Object.getOwnPropertyDescriptor, Ca = (t, e, r, n) => {
|
|
5135
|
+
for (var i = n > 1 ? void 0 : n ? Sa(e, r) : e, s = t.length - 1, o; s >= 0; s--)
|
|
5136
5136
|
(o = t[s]) && (i = (n ? o(e, r, i) : o(i)) || i);
|
|
5137
|
-
return n && i &&
|
|
5138
|
-
},
|
|
5139
|
-
let
|
|
5137
|
+
return n && i && Pa(e, r, i), i;
|
|
5138
|
+
}, En = (t, e) => (r, n) => e(r, n, t);
|
|
5139
|
+
let ur = class {
|
|
5140
5140
|
constructor(t, e) {
|
|
5141
5141
|
p(this, "step$");
|
|
5142
5142
|
this.timerController = t, this._service = e, this.step$ = this.timerController.step$.pipe(
|
|
@@ -5144,17 +5144,17 @@ let ar = class {
|
|
|
5144
5144
|
);
|
|
5145
5145
|
}
|
|
5146
5146
|
};
|
|
5147
|
-
|
|
5147
|
+
ur = Ca([
|
|
5148
5148
|
Z(),
|
|
5149
|
-
|
|
5150
|
-
|
|
5151
|
-
],
|
|
5152
|
-
var
|
|
5153
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
5149
|
+
En(0, I(He)),
|
|
5150
|
+
En(1, I(je))
|
|
5151
|
+
], ur);
|
|
5152
|
+
var Ea = Object.defineProperty, Ta = Object.getOwnPropertyDescriptor, Oa = (t, e, r, n) => {
|
|
5153
|
+
for (var i = n > 1 ? void 0 : n ? Ta(e, r) : e, s = t.length - 1, o; s >= 0; s--)
|
|
5154
5154
|
(o = t[s]) && (i = (n ? o(e, r, i) : o(i)) || i);
|
|
5155
|
-
return n && i &&
|
|
5156
|
-
},
|
|
5157
|
-
let
|
|
5155
|
+
return n && i && Ea(e, r, i), i;
|
|
5156
|
+
}, Bt = (t, e) => (r, n) => e(r, n, t);
|
|
5157
|
+
let cr = class {
|
|
5158
5158
|
constructor(t, e, r) {
|
|
5159
5159
|
this._sizesService = t, this._controller = e, this._service = r;
|
|
5160
5160
|
}
|
|
@@ -5186,27 +5186,27 @@ let ur = class {
|
|
|
5186
5186
|
return t && (this._service.quaternion = t), this._service.quaternion;
|
|
5187
5187
|
}
|
|
5188
5188
|
};
|
|
5189
|
-
|
|
5189
|
+
cr = Oa([
|
|
5190
5190
|
Z(),
|
|
5191
|
-
|
|
5192
|
-
|
|
5193
|
-
|
|
5194
|
-
],
|
|
5195
|
-
var
|
|
5196
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
5191
|
+
Bt(0, I(Re)),
|
|
5192
|
+
Bt(1, I(ur)),
|
|
5193
|
+
Bt(2, I(je))
|
|
5194
|
+
], cr);
|
|
5195
|
+
var Ma = Object.defineProperty, Ra = Object.getOwnPropertyDescriptor, ja = (t, e, r, n) => {
|
|
5196
|
+
for (var i = n > 1 ? void 0 : n ? Ra(e, r) : e, s = t.length - 1, o; s >= 0; s--)
|
|
5197
5197
|
(o = t[s]) && (i = (n ? o(e, r, i) : o(i)) || i);
|
|
5198
|
-
return n && i &&
|
|
5198
|
+
return n && i && Ma(e, r, i), i;
|
|
5199
5199
|
};
|
|
5200
5200
|
let rt = class {
|
|
5201
5201
|
constructor() {
|
|
5202
|
-
p(this, "scene", new
|
|
5202
|
+
p(this, "scene", new In());
|
|
5203
5203
|
p(this, "enabled", !0);
|
|
5204
5204
|
}
|
|
5205
5205
|
};
|
|
5206
|
-
rt =
|
|
5206
|
+
rt = ja([
|
|
5207
5207
|
Z()
|
|
5208
5208
|
], rt);
|
|
5209
|
-
const
|
|
5209
|
+
const Tn = { type: "change" }, Or = { type: "start" }, hi = { type: "end" }, dt = new $i(), On = new xi(), $a = Math.cos(70 * Di.DEG2RAD), X = new le(), ne = 2 * Math.PI, H = {
|
|
5210
5210
|
NONE: -1,
|
|
5211
5211
|
ROTATE: 0,
|
|
5212
5212
|
DOLLY: 1,
|
|
@@ -5215,10 +5215,10 @@ const En = { type: "change" }, Tr = { type: "start" }, li = { type: "end" }, dt
|
|
|
5215
5215
|
TOUCH_PAN: 4,
|
|
5216
5216
|
TOUCH_DOLLY_PAN: 5,
|
|
5217
5217
|
TOUCH_DOLLY_ROTATE: 6
|
|
5218
|
-
},
|
|
5219
|
-
class
|
|
5218
|
+
}, Vt = 1e-6;
|
|
5219
|
+
class Mn extends ki {
|
|
5220
5220
|
constructor(e, r = null) {
|
|
5221
|
-
super(e, r), this.state = H.NONE, this.enabled = !0, this.target = new le(), this.cursor = new le(), this.minDistance = 0, this.maxDistance = 1 / 0, this.minZoom = 0, this.maxZoom = 1 / 0, this.minTargetRadius = 0, this.maxTargetRadius = 1 / 0, this.minPolarAngle = 0, this.maxPolarAngle = Math.PI, this.minAzimuthAngle = -1 / 0, this.maxAzimuthAngle = 1 / 0, this.enableDamping = !1, this.dampingFactor = 0.05, this.enableZoom = !0, this.zoomSpeed = 1, this.enableRotate = !0, this.rotateSpeed = 1, this.enablePan = !0, this.panSpeed = 1, this.screenSpacePanning = !0, this.keyPanSpeed = 7, this.zoomToCursor = !1, this.autoRotate = !1, this.autoRotateSpeed = 2, this.keys = { LEFT: "ArrowLeft", UP: "ArrowUp", RIGHT: "ArrowRight", BOTTOM: "ArrowDown" }, this.mouseButtons = { LEFT: Fe.ROTATE, MIDDLE: Fe.DOLLY, RIGHT: Fe.PAN }, this.touches = { ONE: ze.ROTATE, TWO: ze.DOLLY_PAN }, this.target0 = this.target.clone(), this.position0 = this.object.position.clone(), this.zoom0 = this.object.zoom, this._domElementKeyEvents = null, this._lastPosition = new le(), this._lastQuaternion = new
|
|
5221
|
+
super(e, r), this.state = H.NONE, this.enabled = !0, this.target = new le(), this.cursor = new le(), this.minDistance = 0, this.maxDistance = 1 / 0, this.minZoom = 0, this.maxZoom = 1 / 0, this.minTargetRadius = 0, this.maxTargetRadius = 1 / 0, this.minPolarAngle = 0, this.maxPolarAngle = Math.PI, this.minAzimuthAngle = -1 / 0, this.maxAzimuthAngle = 1 / 0, this.enableDamping = !1, this.dampingFactor = 0.05, this.enableZoom = !0, this.zoomSpeed = 1, this.enableRotate = !0, this.rotateSpeed = 1, this.enablePan = !0, this.panSpeed = 1, this.screenSpacePanning = !0, this.keyPanSpeed = 7, this.zoomToCursor = !1, this.autoRotate = !1, this.autoRotateSpeed = 2, this.keys = { LEFT: "ArrowLeft", UP: "ArrowUp", RIGHT: "ArrowRight", BOTTOM: "ArrowDown" }, this.mouseButtons = { LEFT: Fe.ROTATE, MIDDLE: Fe.DOLLY, RIGHT: Fe.PAN }, this.touches = { ONE: ze.ROTATE, TWO: ze.DOLLY_PAN }, this.target0 = this.target.clone(), this.position0 = this.object.position.clone(), this.zoom0 = this.object.zoom, this._domElementKeyEvents = null, this._lastPosition = new le(), this._lastQuaternion = new Lr(), this._lastTargetPosition = new le(), this._quat = new Lr().setFromUnitVectors(e.up, new le(0, 1, 0)), this._quatInverse = this._quat.clone().invert(), this._spherical = new Wr(), this._sphericalDelta = new Wr(), this._scale = 1, this._panOffset = new le(), this._rotateStart = new ae(), this._rotateEnd = new ae(), this._rotateDelta = new ae(), this._panStart = new ae(), this._panEnd = new ae(), this._panDelta = new ae(), this._dollyStart = new ae(), this._dollyEnd = new ae(), this._dollyDelta = new ae(), this._dollyDirection = new le(), this._mouse = new ae(), this._performCursorZoom = !1, this._pointers = [], this._pointerPositions = {}, this._controlActive = !1, this._onPointerMove = Da.bind(this), this._onPointerDown = xa.bind(this), this._onPointerUp = ka.bind(this), this._onContextMenu = Na.bind(this), this._onMouseWheel = za.bind(this), this._onKeyDown = Fa.bind(this), this._onTouchStart = La.bind(this), this._onTouchMove = Wa.bind(this), this._onMouseDown = Aa.bind(this), this._onMouseMove = Ia.bind(this), this._interceptControlDown = qa.bind(this), this._interceptControlUp = Ha.bind(this), this.domElement !== null && this.connect(), this.update();
|
|
5222
5222
|
}
|
|
5223
5223
|
connect() {
|
|
5224
5224
|
this.domElement.addEventListener("pointerdown", this._onPointerDown), this.domElement.addEventListener("pointercancel", this._onPointerUp), this.domElement.addEventListener("contextmenu", this._onContextMenu), this.domElement.addEventListener("wheel", this._onMouseWheel, { passive: !1 }), this.domElement.getRootNode().addEventListener("keydown", this._interceptControlDown, { passive: !0, capture: !0 }), this.domElement.style.touchAction = "none";
|
|
@@ -5248,7 +5248,7 @@ class On extends Di {
|
|
|
5248
5248
|
this.target0.copy(this.target), this.position0.copy(this.object.position), this.zoom0 = this.object.zoom;
|
|
5249
5249
|
}
|
|
5250
5250
|
reset() {
|
|
5251
|
-
this.target.copy(this.target0), this.object.position.copy(this.position0), this.object.zoom = this.zoom0, this.object.updateProjectionMatrix(), this.dispatchEvent(
|
|
5251
|
+
this.target.copy(this.target0), this.object.position.copy(this.position0), this.object.zoom = this.zoom0, this.object.updateProjectionMatrix(), this.dispatchEvent(Tn), this.update(), this.state = H.NONE;
|
|
5252
5252
|
}
|
|
5253
5253
|
update(e = null) {
|
|
5254
5254
|
const r = this.object.position;
|
|
@@ -5278,12 +5278,12 @@ class On extends Di {
|
|
|
5278
5278
|
c.unproject(this.object), this.object.position.sub(c).add(a), this.object.updateMatrixWorld(), o = X.length();
|
|
5279
5279
|
} else
|
|
5280
5280
|
console.warn("WARNING: OrbitControls.js encountered an unknown camera type - zoom to cursor disabled."), this.zoomToCursor = !1;
|
|
5281
|
-
o !== null && (this.screenSpacePanning ? this.target.set(0, 0, -1).transformDirection(this.object.matrix).multiplyScalar(o).add(this.object.position) : (dt.origin.copy(this.object.position), dt.direction.set(0, 0, -1).transformDirection(this.object.matrix), Math.abs(this.object.up.dot(dt.direction)) <
|
|
5281
|
+
o !== null && (this.screenSpacePanning ? this.target.set(0, 0, -1).transformDirection(this.object.matrix).multiplyScalar(o).add(this.object.position) : (dt.origin.copy(this.object.position), dt.direction.set(0, 0, -1).transformDirection(this.object.matrix), Math.abs(this.object.up.dot(dt.direction)) < $a ? this.object.lookAt(this.target) : (On.setFromNormalAndCoplanarPoint(this.object.up, this.target), dt.intersectPlane(On, this.target))));
|
|
5282
5282
|
} else if (this.object.isOrthographicCamera) {
|
|
5283
5283
|
const o = this.object.zoom;
|
|
5284
5284
|
this.object.zoom = Math.max(this.minZoom, Math.min(this.maxZoom, this.object.zoom / this._scale)), o !== this.object.zoom && (this.object.updateProjectionMatrix(), s = !0);
|
|
5285
5285
|
}
|
|
5286
|
-
return this._scale = 1, this._performCursorZoom = !1, s || this._lastPosition.distanceToSquared(this.object.position) >
|
|
5286
|
+
return this._scale = 1, this._performCursorZoom = !1, s || this._lastPosition.distanceToSquared(this.object.position) > Vt || 8 * (1 - this._lastQuaternion.dot(this.object.quaternion)) > Vt || this._lastTargetPosition.distanceToSquared(this.target) > Vt ? (this.dispatchEvent(Tn), this._lastPosition.copy(this.object.position), this._lastQuaternion.copy(this.object.quaternion), this._lastTargetPosition.copy(this.target), !0) : !1;
|
|
5287
5287
|
}
|
|
5288
5288
|
_getAutoRotationAngle(e) {
|
|
5289
5289
|
return e !== null ? ne / 60 * this.autoRotateSpeed * e : ne / 60 / 60 * this.autoRotateSpeed;
|
|
@@ -5475,16 +5475,16 @@ class On extends Di {
|
|
|
5475
5475
|
return e.ctrlKey && !this._controlActive && (n.deltaY *= 10), n;
|
|
5476
5476
|
}
|
|
5477
5477
|
}
|
|
5478
|
-
function
|
|
5478
|
+
function xa(t) {
|
|
5479
5479
|
this.enabled !== !1 && (this._pointers.length === 0 && (this.domElement.setPointerCapture(t.pointerId), this.domElement.addEventListener("pointermove", this._onPointerMove), this.domElement.addEventListener("pointerup", this._onPointerUp)), !this._isTrackingPointer(t) && (this._addPointer(t), t.pointerType === "touch" ? this._onTouchStart(t) : this._onMouseDown(t)));
|
|
5480
5480
|
}
|
|
5481
|
-
function
|
|
5481
|
+
function Da(t) {
|
|
5482
5482
|
this.enabled !== !1 && (t.pointerType === "touch" ? this._onTouchMove(t) : this._onMouseMove(t));
|
|
5483
5483
|
}
|
|
5484
|
-
function
|
|
5484
|
+
function ka(t) {
|
|
5485
5485
|
switch (this._removePointer(t), this._pointers.length) {
|
|
5486
5486
|
case 0:
|
|
5487
|
-
this.domElement.releasePointerCapture(t.pointerId), this.domElement.removeEventListener("pointermove", this._onPointerMove), this.domElement.removeEventListener("pointerup", this._onPointerUp), this.dispatchEvent(
|
|
5487
|
+
this.domElement.releasePointerCapture(t.pointerId), this.domElement.removeEventListener("pointermove", this._onPointerMove), this.domElement.removeEventListener("pointerup", this._onPointerUp), this.dispatchEvent(hi), this.state = H.NONE;
|
|
5488
5488
|
break;
|
|
5489
5489
|
case 1:
|
|
5490
5490
|
const e = this._pointers[0], r = this._pointerPositions[e];
|
|
@@ -5492,7 +5492,7 @@ function Da(t) {
|
|
|
5492
5492
|
break;
|
|
5493
5493
|
}
|
|
5494
5494
|
}
|
|
5495
|
-
function
|
|
5495
|
+
function Aa(t) {
|
|
5496
5496
|
let e;
|
|
5497
5497
|
switch (t.button) {
|
|
5498
5498
|
case 0:
|
|
@@ -5533,9 +5533,9 @@ function ka(t) {
|
|
|
5533
5533
|
default:
|
|
5534
5534
|
this.state = H.NONE;
|
|
5535
5535
|
}
|
|
5536
|
-
this.state !== H.NONE && this.dispatchEvent(
|
|
5536
|
+
this.state !== H.NONE && this.dispatchEvent(Or);
|
|
5537
5537
|
}
|
|
5538
|
-
function
|
|
5538
|
+
function Ia(t) {
|
|
5539
5539
|
switch (this.state) {
|
|
5540
5540
|
case H.ROTATE:
|
|
5541
5541
|
if (this.enableRotate === !1) return;
|
|
@@ -5551,13 +5551,13 @@ function Aa(t) {
|
|
|
5551
5551
|
break;
|
|
5552
5552
|
}
|
|
5553
5553
|
}
|
|
5554
|
-
function Ia(t) {
|
|
5555
|
-
this.enabled === !1 || this.enableZoom === !1 || this.state !== H.NONE || (t.preventDefault(), this.dispatchEvent(Tr), this._handleMouseWheel(this._customWheelEvent(t)), this.dispatchEvent(li));
|
|
5556
|
-
}
|
|
5557
5554
|
function za(t) {
|
|
5558
|
-
this.enabled
|
|
5555
|
+
this.enabled === !1 || this.enableZoom === !1 || this.state !== H.NONE || (t.preventDefault(), this.dispatchEvent(Or), this._handleMouseWheel(this._customWheelEvent(t)), this.dispatchEvent(hi));
|
|
5559
5556
|
}
|
|
5560
5557
|
function Fa(t) {
|
|
5558
|
+
this.enabled !== !1 && this._handleKeyDown(t);
|
|
5559
|
+
}
|
|
5560
|
+
function La(t) {
|
|
5561
5561
|
switch (this._trackPointer(t), this._pointers.length) {
|
|
5562
5562
|
case 1:
|
|
5563
5563
|
switch (this.touches.ONE) {
|
|
@@ -5590,9 +5590,9 @@ function Fa(t) {
|
|
|
5590
5590
|
default:
|
|
5591
5591
|
this.state = H.NONE;
|
|
5592
5592
|
}
|
|
5593
|
-
this.state !== H.NONE && this.dispatchEvent(
|
|
5593
|
+
this.state !== H.NONE && this.dispatchEvent(Or);
|
|
5594
5594
|
}
|
|
5595
|
-
function
|
|
5595
|
+
function Wa(t) {
|
|
5596
5596
|
switch (this._trackPointer(t), this.state) {
|
|
5597
5597
|
case H.TOUCH_ROTATE:
|
|
5598
5598
|
if (this.enableRotate === !1) return;
|
|
@@ -5614,20 +5614,20 @@ function La(t) {
|
|
|
5614
5614
|
this.state = H.NONE;
|
|
5615
5615
|
}
|
|
5616
5616
|
}
|
|
5617
|
-
function
|
|
5617
|
+
function Na(t) {
|
|
5618
5618
|
this.enabled !== !1 && t.preventDefault();
|
|
5619
5619
|
}
|
|
5620
|
-
function
|
|
5620
|
+
function qa(t) {
|
|
5621
5621
|
t.key === "Control" && (this._controlActive = !0, this.domElement.getRootNode().addEventListener("keyup", this._interceptControlUp, { passive: !0, capture: !0 }));
|
|
5622
5622
|
}
|
|
5623
|
-
function
|
|
5623
|
+
function Ha(t) {
|
|
5624
5624
|
t.key === "Control" && (this._controlActive = !1, this.domElement.getRootNode().removeEventListener("keyup", this._interceptControlUp, { passive: !0, capture: !0 }));
|
|
5625
5625
|
}
|
|
5626
|
-
var
|
|
5627
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
5626
|
+
var Ua = Object.defineProperty, Ya = Object.getOwnPropertyDescriptor, Ba = (t, e, r, n) => {
|
|
5627
|
+
for (var i = n > 1 ? void 0 : n ? Ya(e, r) : e, s = t.length - 1, o; s >= 0; s--)
|
|
5628
5628
|
(o = t[s]) && (i = (n ? o(e, r, i) : o(i)) || i);
|
|
5629
|
-
return n && i &&
|
|
5630
|
-
},
|
|
5629
|
+
return n && i && Ua(e, r, i), i;
|
|
5630
|
+
}, Zt = (t, e) => (r, n) => e(r, n, t);
|
|
5631
5631
|
let Et = class {
|
|
5632
5632
|
constructor(t, e, r) {
|
|
5633
5633
|
p(this, "enabled", !0);
|
|
@@ -5640,26 +5640,26 @@ let Et = class {
|
|
|
5640
5640
|
}
|
|
5641
5641
|
_setCameraOrbitControl() {
|
|
5642
5642
|
var t;
|
|
5643
|
-
this.cameraControls && ((t = this.cameraControls) == null || t.dispose(), this.cameraControls = void 0), !(!this.enabled || !(this._cameraService.instance instanceof Xe)) && this._cameraService.instance instanceof Xe && (this.cameraControls = new
|
|
5643
|
+
this.cameraControls && ((t = this.cameraControls) == null || t.dispose(), this.cameraControls = void 0), !(!this.enabled || !(this._cameraService.instance instanceof Xe)) && this._cameraService.instance instanceof Xe && (this.cameraControls = new Mn(
|
|
5644
5644
|
this._cameraService.instance,
|
|
5645
5645
|
this._appService.proxyReceiver
|
|
5646
5646
|
), this.cameraControls.rotateSpeed = 0.1, this.cameraControls.enableDamping = !0);
|
|
5647
5647
|
}
|
|
5648
5648
|
_setMiniCameraOrbitControls() {
|
|
5649
|
-
this.miniCameraControls && (this.miniCameraControls.dispose(), this.miniCameraControls = void 0), !(!this.enabled || !this._cameraService.miniCamera) && (this.miniCameraControls = new
|
|
5649
|
+
this.miniCameraControls && (this.miniCameraControls.dispose(), this.miniCameraControls = void 0), !(!this.enabled || !this._cameraService.miniCamera) && (this.miniCameraControls = new Mn(
|
|
5650
5650
|
this._cameraService.miniCamera,
|
|
5651
5651
|
this._appService.proxyReceiver
|
|
5652
5652
|
), this.miniCameraControls.rotateSpeed = 0.15, this.miniCameraControls.enableDamping = !0);
|
|
5653
5653
|
}
|
|
5654
5654
|
_setCameraHelper() {
|
|
5655
|
-
this.cameraHelper && (this._worldService.scene.remove(this.cameraHelper), this.cameraHelper = void 0), this.enabled && this._cameraService.instance && (this.cameraHelper = new
|
|
5655
|
+
this.cameraHelper && (this._worldService.scene.remove(this.cameraHelper), this.cameraHelper = void 0), this.enabled && this._cameraService.instance && (this.cameraHelper = new Ai(this._cameraService.instance), this._worldService.scene.add(this.cameraHelper));
|
|
5656
5656
|
}
|
|
5657
5657
|
_setAxesHelper(t) {
|
|
5658
|
-
const e = new
|
|
5658
|
+
const e = new Ii(t);
|
|
5659
5659
|
this._worldService.scene.add(e);
|
|
5660
5660
|
}
|
|
5661
5661
|
_setGridHelper(t) {
|
|
5662
|
-
const e = new
|
|
5662
|
+
const e = new zi(t, t);
|
|
5663
5663
|
this._worldService.scene.add(e);
|
|
5664
5664
|
}
|
|
5665
5665
|
activate(t) {
|
|
@@ -5673,17 +5673,17 @@ let Et = class {
|
|
|
5673
5673
|
this.cameraHelper && (this._worldService.scene.remove(this.cameraHelper), this.cameraHelper = void 0), this.cameraControls && (this.cameraControls.dispose(), this.cameraControls = void 0), this.miniCameraControls && (this.miniCameraControls.dispose(), this.miniCameraControls = void 0);
|
|
5674
5674
|
}
|
|
5675
5675
|
};
|
|
5676
|
-
Et =
|
|
5676
|
+
Et = Ba([
|
|
5677
5677
|
Z(),
|
|
5678
|
-
|
|
5679
|
-
|
|
5680
|
-
|
|
5678
|
+
Zt(0, I(tt)),
|
|
5679
|
+
Zt(1, I(je)),
|
|
5680
|
+
Zt(2, I(rt))
|
|
5681
5681
|
], Et);
|
|
5682
|
-
var
|
|
5683
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
5682
|
+
var fi = Object.defineProperty, Va = Object.getOwnPropertyDescriptor, Za = (t, e, r) => e in t ? fi(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, Ga = (t, e, r, n) => {
|
|
5683
|
+
for (var i = n > 1 ? void 0 : n ? Va(e, r) : e, s = t.length - 1, o; s >= 0; s--)
|
|
5684
5684
|
(o = t[s]) && (i = (n ? o(e, r, i) : o(i)) || i);
|
|
5685
|
-
return n && i &&
|
|
5686
|
-
}, pt = (t, e) => (r, n) => e(r, n, t),
|
|
5685
|
+
return n && i && fi(e, r, i), i;
|
|
5686
|
+
}, pt = (t, e) => (r, n) => e(r, n, t), Qa = (t, e, r) => Za(t, e + "", r);
|
|
5687
5687
|
let Ue = class {
|
|
5688
5688
|
constructor(t, e, r, n) {
|
|
5689
5689
|
p(this, "enabled", !0);
|
|
@@ -5691,7 +5691,7 @@ let Ue = class {
|
|
|
5691
5691
|
this._worldService = t, this._cameraService = e, this._sizesService = r, this._debugComponent = n;
|
|
5692
5692
|
}
|
|
5693
5693
|
setWebGLRenderer(t) {
|
|
5694
|
-
this.instance = new
|
|
5694
|
+
this.instance = new Nr({
|
|
5695
5695
|
canvas: t,
|
|
5696
5696
|
context: t.getContext("webgl2", {
|
|
5697
5697
|
stencil: !0,
|
|
@@ -5700,14 +5700,14 @@ let Ue = class {
|
|
|
5700
5700
|
powerPreference: "high-performance",
|
|
5701
5701
|
depth: !0,
|
|
5702
5702
|
antialias: !0
|
|
5703
|
-
}), this.instance.autoClear = !1, this.instance.setPixelRatio(Ue.RENDERER_PIXEL_RATIO), this.instance.setClearColor(0, 0), this.instance.shadowMap.enabled = !0, this.instance.shadowMap.type =
|
|
5703
|
+
}), this.instance.autoClear = !1, this.instance.setPixelRatio(Ue.RENDERER_PIXEL_RATIO), this.instance.setClearColor(0, 0), this.instance.shadowMap.enabled = !0, this.instance.shadowMap.type = Fi, this.instance.outputColorSpace = Li, this.instance.toneMapping = Wi, this.instance.toneMappingExposure = 1.75;
|
|
5704
5704
|
}
|
|
5705
5705
|
setSize(t, e) {
|
|
5706
5706
|
var r;
|
|
5707
5707
|
(r = this.instance) == null || r.setSize(t, e);
|
|
5708
5708
|
}
|
|
5709
5709
|
render() {
|
|
5710
|
-
this.enabled && this._cameraService.instance instanceof Xe && this.instance instanceof
|
|
5710
|
+
this.enabled && this._cameraService.instance instanceof Xe && this.instance instanceof Nr && (this.instance.setViewport(
|
|
5711
5711
|
0,
|
|
5712
5712
|
0,
|
|
5713
5713
|
this._sizesService.width,
|
|
@@ -5731,19 +5731,19 @@ let Ue = class {
|
|
|
5731
5731
|
), this.instance.setScissorTest(!1)));
|
|
5732
5732
|
}
|
|
5733
5733
|
};
|
|
5734
|
-
|
|
5735
|
-
Ue =
|
|
5734
|
+
Qa(Ue, "RENDERER_PIXEL_RATIO", 1);
|
|
5735
|
+
Ue = Ga([
|
|
5736
5736
|
Z(),
|
|
5737
5737
|
pt(0, I(rt)),
|
|
5738
5738
|
pt(1, I(je)),
|
|
5739
5739
|
pt(2, I(Re)),
|
|
5740
5740
|
pt(3, I(Et))
|
|
5741
5741
|
], Ue);
|
|
5742
|
-
var
|
|
5743
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
5742
|
+
var Ka = Object.defineProperty, Xa = Object.getOwnPropertyDescriptor, Ja = (t, e, r, n) => {
|
|
5743
|
+
for (var i = n > 1 ? void 0 : n ? Xa(e, r) : e, s = t.length - 1, o; s >= 0; s--)
|
|
5744
5744
|
(o = t[s]) && (i = (n ? o(e, r, i) : o(i)) || i);
|
|
5745
|
-
return n && i &&
|
|
5746
|
-
},
|
|
5745
|
+
return n && i && Ka(e, r, i), i;
|
|
5746
|
+
}, Rn = (t, e) => (r, n) => e(r, n, t);
|
|
5747
5747
|
let Tt = class {
|
|
5748
5748
|
constructor(t, e) {
|
|
5749
5749
|
p(this, "resize$");
|
|
@@ -5752,17 +5752,17 @@ let Tt = class {
|
|
|
5752
5752
|
);
|
|
5753
5753
|
}
|
|
5754
5754
|
};
|
|
5755
|
-
Tt =
|
|
5755
|
+
Tt = Ja([
|
|
5756
5756
|
Z(),
|
|
5757
|
-
|
|
5758
|
-
|
|
5757
|
+
Rn(0, I(St)),
|
|
5758
|
+
Rn(1, I(Re))
|
|
5759
5759
|
], Tt);
|
|
5760
|
-
var
|
|
5761
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
5760
|
+
var eu = Object.defineProperty, tu = Object.getOwnPropertyDescriptor, ru = (t, e, r, n) => {
|
|
5761
|
+
for (var i = n > 1 ? void 0 : n ? tu(e, r) : e, s = t.length - 1, o; s >= 0; s--)
|
|
5762
5762
|
(o = t[s]) && (i = (n ? o(e, r, i) : o(i)) || i);
|
|
5763
|
-
return n && i &&
|
|
5764
|
-
},
|
|
5765
|
-
let
|
|
5763
|
+
return n && i && eu(e, r, i), i;
|
|
5764
|
+
}, Gt = (t, e) => (r, n) => e(r, n, t);
|
|
5765
|
+
let lr = class {
|
|
5766
5766
|
constructor(t, e, r) {
|
|
5767
5767
|
p(this, "step$");
|
|
5768
5768
|
p(this, "resize$");
|
|
@@ -5773,18 +5773,18 @@ let cr = class {
|
|
|
5773
5773
|
);
|
|
5774
5774
|
}
|
|
5775
5775
|
};
|
|
5776
|
-
|
|
5776
|
+
lr = ru([
|
|
5777
5777
|
Z(),
|
|
5778
|
-
|
|
5779
|
-
|
|
5780
|
-
|
|
5781
|
-
],
|
|
5782
|
-
var
|
|
5783
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
5778
|
+
Gt(0, I(Ue)),
|
|
5779
|
+
Gt(1, I(He)),
|
|
5780
|
+
Gt(2, I(Tt))
|
|
5781
|
+
], lr);
|
|
5782
|
+
var nu = Object.defineProperty, iu = Object.getOwnPropertyDescriptor, su = (t, e, r, n) => {
|
|
5783
|
+
for (var i = n > 1 ? void 0 : n ? iu(e, r) : e, s = t.length - 1, o; s >= 0; s--)
|
|
5784
5784
|
(o = t[s]) && (i = (n ? o(e, r, i) : o(i)) || i);
|
|
5785
|
-
return n && i &&
|
|
5786
|
-
},
|
|
5787
|
-
let
|
|
5785
|
+
return n && i && nu(e, r, i), i;
|
|
5786
|
+
}, jn = (t, e) => (r, n) => e(r, n, t);
|
|
5787
|
+
let hr = class {
|
|
5788
5788
|
constructor(t, e) {
|
|
5789
5789
|
this._controller = t, this._service = e;
|
|
5790
5790
|
}
|
|
@@ -5810,17 +5810,17 @@ let lr = class {
|
|
|
5810
5810
|
(t = this._service.instance) == null || t.dispose(), this._service.instance = void 0;
|
|
5811
5811
|
}
|
|
5812
5812
|
};
|
|
5813
|
-
|
|
5813
|
+
hr = su([
|
|
5814
5814
|
Z(),
|
|
5815
|
-
|
|
5816
|
-
|
|
5817
|
-
],
|
|
5818
|
-
var
|
|
5819
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
5815
|
+
jn(0, I(lr)),
|
|
5816
|
+
jn(1, I(Ue))
|
|
5817
|
+
], hr);
|
|
5818
|
+
var ou = Object.defineProperty, au = Object.getOwnPropertyDescriptor, uu = (t, e, r, n) => {
|
|
5819
|
+
for (var i = n > 1 ? void 0 : n ? au(e, r) : e, s = t.length - 1, o; s >= 0; s--)
|
|
5820
5820
|
(o = t[s]) && (i = (n ? o(e, r, i) : o(i)) || i);
|
|
5821
|
-
return n && i &&
|
|
5822
|
-
},
|
|
5823
|
-
let
|
|
5821
|
+
return n && i && ou(e, r, i), i;
|
|
5822
|
+
}, $n = (t, e) => (r, n) => e(r, n, t);
|
|
5823
|
+
let fr = class {
|
|
5824
5824
|
constructor(t, e) {
|
|
5825
5825
|
this._controller = t, this._service = e;
|
|
5826
5826
|
}
|
|
@@ -5853,17 +5853,17 @@ let hr = class {
|
|
|
5853
5853
|
return this._controller.resize$;
|
|
5854
5854
|
}
|
|
5855
5855
|
};
|
|
5856
|
-
|
|
5856
|
+
fr = uu([
|
|
5857
5857
|
Z(),
|
|
5858
|
-
|
|
5859
|
-
|
|
5860
|
-
],
|
|
5861
|
-
var
|
|
5862
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
5858
|
+
$n(0, I(Tt)),
|
|
5859
|
+
$n(1, I(Re))
|
|
5860
|
+
], fr);
|
|
5861
|
+
var cu = Object.defineProperty, lu = Object.getOwnPropertyDescriptor, hu = (t, e, r, n) => {
|
|
5862
|
+
for (var i = n > 1 ? void 0 : n ? lu(e, r) : e, s = t.length - 1, o; s >= 0; s--)
|
|
5863
5863
|
(o = t[s]) && (i = (n ? o(e, r, i) : o(i)) || i);
|
|
5864
|
-
return n && i &&
|
|
5865
|
-
},
|
|
5866
|
-
let
|
|
5864
|
+
return n && i && cu(e, r, i), i;
|
|
5865
|
+
}, fu = (t, e) => (r, n) => e(r, n, t);
|
|
5866
|
+
let dr = class {
|
|
5867
5867
|
constructor(t) {
|
|
5868
5868
|
this._service = t;
|
|
5869
5869
|
}
|
|
@@ -5872,22 +5872,22 @@ let fr = class {
|
|
|
5872
5872
|
dispose() {
|
|
5873
5873
|
}
|
|
5874
5874
|
scene(t) {
|
|
5875
|
-
return t instanceof
|
|
5875
|
+
return t instanceof In && (this._service.scene = t), this._service.scene;
|
|
5876
5876
|
}
|
|
5877
5877
|
enabled(t) {
|
|
5878
5878
|
return typeof t == "boolean" && (this._service.enabled = t), this._service.enabled;
|
|
5879
5879
|
}
|
|
5880
5880
|
};
|
|
5881
|
-
|
|
5881
|
+
dr = hu([
|
|
5882
5882
|
Z(),
|
|
5883
|
-
|
|
5884
|
-
],
|
|
5885
|
-
var
|
|
5886
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
5883
|
+
fu(0, I(rt))
|
|
5884
|
+
], dr);
|
|
5885
|
+
var du = Object.defineProperty, pu = Object.getOwnPropertyDescriptor, mu = (t, e, r, n) => {
|
|
5886
|
+
for (var i = n > 1 ? void 0 : n ? pu(e, r) : e, s = t.length - 1, o; s >= 0; s--)
|
|
5887
5887
|
(o = t[s]) && (i = (n ? o(e, r, i) : o(i)) || i);
|
|
5888
|
-
return n && i &&
|
|
5889
|
-
},
|
|
5890
|
-
let
|
|
5888
|
+
return n && i && du(e, r, i), i;
|
|
5889
|
+
}, xn = (t, e) => (r, n) => e(r, n, t);
|
|
5890
|
+
let pr = class {
|
|
5891
5891
|
constructor(t, e) {
|
|
5892
5892
|
p(this, "step$");
|
|
5893
5893
|
this.timerController = t, this._service = e, this.step$ = this.timerController.step$.pipe(
|
|
@@ -5895,17 +5895,17 @@ let dr = class {
|
|
|
5895
5895
|
);
|
|
5896
5896
|
}
|
|
5897
5897
|
};
|
|
5898
|
-
|
|
5898
|
+
pr = mu([
|
|
5899
5899
|
Z(),
|
|
5900
|
-
|
|
5901
|
-
|
|
5902
|
-
],
|
|
5903
|
-
var
|
|
5904
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
5900
|
+
xn(0, I(He)),
|
|
5901
|
+
xn(1, I(je))
|
|
5902
|
+
], pr);
|
|
5903
|
+
var vu = Object.defineProperty, yu = Object.getOwnPropertyDescriptor, _u = (t, e, r, n) => {
|
|
5904
|
+
for (var i = n > 1 ? void 0 : n ? yu(e, r) : e, s = t.length - 1, o; s >= 0; s--)
|
|
5905
5905
|
(o = t[s]) && (i = (n ? o(e, r, i) : o(i)) || i);
|
|
5906
|
-
return n && i &&
|
|
5907
|
-
},
|
|
5908
|
-
let
|
|
5906
|
+
return n && i && vu(e, r, i), i;
|
|
5907
|
+
}, Dn = (t, e) => (r, n) => e(r, n, t);
|
|
5908
|
+
let mr = class {
|
|
5909
5909
|
constructor(t, e) {
|
|
5910
5910
|
this._service = t, this._controller = e, this._controller.step$.subscribe(() => {
|
|
5911
5911
|
this._service.update();
|
|
@@ -5939,52 +5939,59 @@ let pr = class {
|
|
|
5939
5939
|
this._service.deactivate();
|
|
5940
5940
|
}
|
|
5941
5941
|
};
|
|
5942
|
-
|
|
5942
|
+
mr = _u([
|
|
5943
5943
|
Z(),
|
|
5944
|
-
|
|
5945
|
-
|
|
5946
|
-
],
|
|
5947
|
-
var
|
|
5948
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
5944
|
+
Dn(0, I(Et)),
|
|
5945
|
+
Dn(1, I(pr))
|
|
5946
|
+
], mr);
|
|
5947
|
+
var bu = Object.defineProperty, wu = Object.getOwnPropertyDescriptor, gu = (t, e, r, n) => {
|
|
5948
|
+
for (var i = n > 1 ? void 0 : n ? wu(e, r) : e, s = t.length - 1, o; s >= 0; s--)
|
|
5949
5949
|
(o = t[s]) && (i = (n ? o(e, r, i) : o(i)) || i);
|
|
5950
|
-
return n && i &&
|
|
5950
|
+
return n && i && bu(e, r, i), i;
|
|
5951
5951
|
};
|
|
5952
|
-
let
|
|
5952
|
+
let vr = class {
|
|
5953
5953
|
constructor() {
|
|
5954
|
-
p(this, "load$",
|
|
5954
|
+
p(this, "load$", ir(self, "message").pipe(
|
|
5955
5955
|
be(
|
|
5956
5956
|
(t) => {
|
|
5957
5957
|
var e, r, n;
|
|
5958
|
-
return ((e = t.data) == null ? void 0 : e.token) ===
|
|
5958
|
+
return ((e = t.data) == null ? void 0 : e.token) === hs && !!((n = (r = t.data) == null ? void 0 : r.payload) != null && n.resource);
|
|
5959
5959
|
}
|
|
5960
5960
|
),
|
|
5961
5961
|
Mt((t) => {
|
|
5962
|
+
var r, n, i;
|
|
5962
5963
|
const { payload: e } = t.data || {};
|
|
5963
5964
|
if (e != null && e.resource && e.source.type === "gltfModel") {
|
|
5964
|
-
const
|
|
5965
|
+
const s = e.resource, o = (r = s.animations) == null ? void 0 : r.map(
|
|
5966
|
+
(l) => Ni.parse(l)
|
|
5967
|
+
), a = (n = s.cameras) == null ? void 0 : n.map(
|
|
5968
|
+
(l) => Yt(l)
|
|
5969
|
+
), u = Yt((s == null ? void 0 : s.scene) || ""), c = (i = s.scenes) == null ? void 0 : i.map(
|
|
5970
|
+
(l) => Yt(l)
|
|
5971
|
+
);
|
|
5965
5972
|
return {
|
|
5966
5973
|
...e,
|
|
5967
|
-
resource: { ...
|
|
5974
|
+
resource: { ...s, animations: o, cameras: a, scene: u, scenes: c }
|
|
5968
5975
|
};
|
|
5969
5976
|
}
|
|
5970
5977
|
return e;
|
|
5971
5978
|
}),
|
|
5972
|
-
|
|
5979
|
+
ti()
|
|
5973
5980
|
));
|
|
5974
5981
|
p(this, "loadCompleted$", this.load$.pipe(
|
|
5975
5982
|
be((t) => (t == null ? void 0 : t.toLoadCount) === t.loadedCount)
|
|
5976
5983
|
));
|
|
5977
5984
|
}
|
|
5978
5985
|
};
|
|
5979
|
-
|
|
5980
|
-
|
|
5981
|
-
],
|
|
5982
|
-
var
|
|
5983
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
5986
|
+
vr = gu([
|
|
5987
|
+
gr(re.ResolutionScoped)
|
|
5988
|
+
], vr);
|
|
5989
|
+
var Pu = Object.defineProperty, Su = Object.getOwnPropertyDescriptor, Cu = (t, e, r, n) => {
|
|
5990
|
+
for (var i = n > 1 ? void 0 : n ? Su(e, r) : e, s = t.length - 1, o; s >= 0; s--)
|
|
5984
5991
|
(o = t[s]) && (i = (n ? o(e, r, i) : o(i)) || i);
|
|
5985
|
-
return n && i &&
|
|
5992
|
+
return n && i && Pu(e, r, i), i;
|
|
5986
5993
|
};
|
|
5987
|
-
let
|
|
5994
|
+
let yr = class {
|
|
5988
5995
|
constructor() {
|
|
5989
5996
|
p(this, "loadedResources", {});
|
|
5990
5997
|
p(this, "toLoadCount", 0);
|
|
@@ -5995,15 +6002,15 @@ let vr = class {
|
|
|
5995
6002
|
r && (this.loadedResources[e.name] = r, this.toLoadCount = n, this.loadedCount = i);
|
|
5996
6003
|
}
|
|
5997
6004
|
};
|
|
5998
|
-
|
|
5999
|
-
|
|
6000
|
-
],
|
|
6001
|
-
var
|
|
6002
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
6005
|
+
yr = Cu([
|
|
6006
|
+
gr(re.ResolutionScoped)
|
|
6007
|
+
], yr);
|
|
6008
|
+
var Eu = Object.defineProperty, Tu = Object.getOwnPropertyDescriptor, Ou = (t, e, r, n) => {
|
|
6009
|
+
for (var i = n > 1 ? void 0 : n ? Tu(e, r) : e, s = t.length - 1, o; s >= 0; s--)
|
|
6003
6010
|
(o = t[s]) && (i = (n ? o(e, r, i) : o(i)) || i);
|
|
6004
|
-
return n && i &&
|
|
6005
|
-
},
|
|
6006
|
-
let
|
|
6011
|
+
return n && i && Eu(e, r, i), i;
|
|
6012
|
+
}, kn = (t, e) => (r, n) => e(r, n, t);
|
|
6013
|
+
let _r = class {
|
|
6007
6014
|
constructor(t, e) {
|
|
6008
6015
|
p(this, "_subscriptions", []);
|
|
6009
6016
|
this._controller = t, this._service = e;
|
|
@@ -6034,22 +6041,22 @@ let yr = class {
|
|
|
6034
6041
|
this._subscriptions.forEach((t) => t.unsubscribe());
|
|
6035
6042
|
}
|
|
6036
6043
|
};
|
|
6037
|
-
|
|
6044
|
+
_r = Ou([
|
|
6038
6045
|
Z(),
|
|
6039
|
-
|
|
6040
|
-
|
|
6041
|
-
],
|
|
6042
|
-
var
|
|
6043
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
6046
|
+
kn(0, I(vr)),
|
|
6047
|
+
kn(1, I(yr))
|
|
6048
|
+
], _r);
|
|
6049
|
+
var Mu = Object.defineProperty, Ru = Object.getOwnPropertyDescriptor, ju = (t, e, r, n) => {
|
|
6050
|
+
for (var i = n > 1 ? void 0 : n ? Ru(e, r) : e, s = t.length - 1, o; s >= 0; s--)
|
|
6044
6051
|
(o = t[s]) && (i = (n ? o(e, r, i) : o(i)) || i);
|
|
6045
|
-
return n && i &&
|
|
6052
|
+
return n && i && Mu(e, r, i), i;
|
|
6046
6053
|
}, ye = (t, e) => (r, n) => e(r, n, t);
|
|
6047
|
-
let
|
|
6054
|
+
let An = class extends ls {
|
|
6048
6055
|
constructor(t, e, r, n, i, s, o, a, u) {
|
|
6049
6056
|
super(), this._controller = t, this._service = e, this.timer = r, this.sizes = n, this.camera = i, this.world = s, this.renderer = o, this.loader = a, this.debug = u, this._initProxyEvents();
|
|
6050
6057
|
}
|
|
6051
6058
|
_initProxyEvents() {
|
|
6052
|
-
|
|
6059
|
+
qn.forEach((t) => {
|
|
6053
6060
|
this[`${t}$`] = () => {
|
|
6054
6061
|
var e;
|
|
6055
6062
|
return (e = this._controller) == null ? void 0 : e[`${t}$`];
|
|
@@ -6075,47 +6082,47 @@ let kn = class extends us {
|
|
|
6075
6082
|
this.sizes.dispose(), this.camera.dispose(), this.world.dispose(), this.renderer.dispose(), this.timer.dispose(), this.loader.dispose(), this.debug.dispose();
|
|
6076
6083
|
}
|
|
6077
6084
|
};
|
|
6078
|
-
|
|
6079
|
-
|
|
6085
|
+
An = ju([
|
|
6086
|
+
gr(re.ContainerScoped),
|
|
6080
6087
|
ye(0, I(St)),
|
|
6081
6088
|
ye(1, I(tt)),
|
|
6082
|
-
ye(2, I(
|
|
6083
|
-
ye(3, I(
|
|
6084
|
-
ye(4, I(
|
|
6085
|
-
ye(5, I(
|
|
6086
|
-
ye(6, I(
|
|
6087
|
-
ye(7, I(
|
|
6088
|
-
ye(8, I(
|
|
6089
|
-
],
|
|
6089
|
+
ye(2, I(ar)),
|
|
6090
|
+
ye(3, I(fr)),
|
|
6091
|
+
ye(4, I(cr)),
|
|
6092
|
+
ye(5, I(dr)),
|
|
6093
|
+
ye(6, I(hr)),
|
|
6094
|
+
ye(7, I(_r)),
|
|
6095
|
+
ye(8, I(mr))
|
|
6096
|
+
], An);
|
|
6090
6097
|
export {
|
|
6091
|
-
|
|
6092
|
-
|
|
6093
|
-
|
|
6094
|
-
|
|
6095
|
-
|
|
6098
|
+
Fu as A,
|
|
6099
|
+
zu as C,
|
|
6100
|
+
Lu as D,
|
|
6101
|
+
qu as J,
|
|
6102
|
+
Du as K,
|
|
6096
6103
|
re as L,
|
|
6097
|
-
|
|
6098
|
-
|
|
6099
|
-
|
|
6104
|
+
cs as P,
|
|
6105
|
+
Wu as Q,
|
|
6106
|
+
ku as R,
|
|
6100
6107
|
Ot as S,
|
|
6101
|
-
|
|
6102
|
-
|
|
6103
|
-
|
|
6108
|
+
Sn as U,
|
|
6109
|
+
Nu as W,
|
|
6110
|
+
qn as a,
|
|
6104
6111
|
be as b,
|
|
6105
|
-
|
|
6106
|
-
|
|
6107
|
-
|
|
6108
|
-
|
|
6109
|
-
|
|
6110
|
-
|
|
6112
|
+
ti as c,
|
|
6113
|
+
Wn as d,
|
|
6114
|
+
gr as e,
|
|
6115
|
+
ir as f,
|
|
6116
|
+
hs as g,
|
|
6117
|
+
Au as h,
|
|
6111
6118
|
I as i,
|
|
6112
|
-
|
|
6113
|
-
|
|
6114
|
-
|
|
6119
|
+
er as j,
|
|
6120
|
+
An as k,
|
|
6121
|
+
as as l,
|
|
6115
6122
|
Mt as m,
|
|
6116
|
-
|
|
6117
|
-
|
|
6118
|
-
|
|
6119
|
-
|
|
6123
|
+
us as n,
|
|
6124
|
+
ls as o,
|
|
6125
|
+
qi as p,
|
|
6126
|
+
zo as r,
|
|
6120
6127
|
Z as s
|
|
6121
6128
|
};
|