@quick-threejs/reactive 0.1.43 → 0.1.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{FontLoader-DvGzwRip.js → FontLoader-D3WA1QGd.js} +8 -8
- package/dist/{FontLoader-Dz0z8aMc.mjs → FontLoader-ejhD_xZ1.mjs} +430 -423
- package/dist/core/app/app.controller.d.ts +1 -1
- package/dist/core/app/app.module.d.ts +7 -4
- package/dist/core/app/app.service.d.ts +1 -1
- package/dist/core/app/app.worker.d.ts +1 -2
- package/dist/core/app/camera/camera.module.d.ts +1 -1
- package/dist/core/app/camera/camera.service.d.ts +2 -2
- package/dist/core/app/debug/debug.service.d.ts +1 -1
- package/dist/core/app/loader/loader.controller.d.ts +1 -1
- package/dist/core/app/loader/loader.module.d.ts +4 -4
- package/dist/core/app/loader/loader.service.d.ts +1 -1
- package/dist/core/app/renderer/renderer.controller.d.ts +1 -1
- package/dist/core/app/renderer/renderer.module.d.ts +1 -1
- package/dist/core/app/renderer/renderer.service.d.ts +1 -1
- package/dist/core/app/sizes/sizes.controller.d.ts +1 -1
- package/dist/core/app/sizes/sizes.module.d.ts +1 -2
- package/dist/core/app/sizes/sizes.service.d.ts +1 -1
- package/dist/core/app/timer/timer.controller.d.ts +6 -3
- package/dist/core/app/timer/timer.module.d.ts +7 -4
- package/dist/core/app/timer/timer.service.d.ts +8 -3
- package/dist/core/app/world/world.module.d.ts +1 -1
- package/dist/core/register/loader/loader.controller.d.ts +2 -2
- package/dist/core/register/loader/loader.module.d.ts +3 -3
- package/dist/core/register/loader/loader.service.d.ts +1 -1
- package/dist/core/register/register.controller.d.ts +1 -1
- package/dist/core/register/register.module.d.ts +1 -1
- package/dist/main.js +4 -4
- package/dist/main.mjs +1502 -1479
- package/dist/worker.js +1 -1
- package/dist/worker.mjs +333 -275
- package/package.json +7 -7
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var h = (e, t, r) =>
|
|
4
|
-
import { EventDispatcher as
|
|
5
|
-
const
|
|
1
|
+
var sr = Object.defineProperty;
|
|
2
|
+
var ar = (e, t, r) => t in e ? sr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
|
+
var h = (e, t, r) => ar(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
|
+
import { EventDispatcher as ur, ObjectLoader as cr, Loader as fr, FileLoader as lr, ShapePath as dr } from "three";
|
|
5
|
+
const jn = [
|
|
6
6
|
"ArrowUp",
|
|
7
7
|
"ArrowDown",
|
|
8
8
|
"ArrowLeft",
|
|
9
9
|
"ArrowRight"
|
|
10
|
-
],
|
|
10
|
+
], An = [
|
|
11
11
|
"contextmenu",
|
|
12
12
|
"resize",
|
|
13
13
|
"mousedown",
|
|
@@ -23,8 +23,8 @@ const $n = [
|
|
|
23
23
|
"wheel",
|
|
24
24
|
"keydown"
|
|
25
25
|
];
|
|
26
|
-
var
|
|
27
|
-
class
|
|
26
|
+
var hr = /* @__PURE__ */ ((e) => (e[e.PERSPECTIVE = 0] = "PERSPECTIVE", e[e.ORTHOGRAPHIC = 1] = "ORTHOGRAPHIC", e))(hr || {});
|
|
27
|
+
class pr {
|
|
28
28
|
constructor() {
|
|
29
29
|
h(this, "contextmenu$$");
|
|
30
30
|
h(this, "resize$$");
|
|
@@ -42,7 +42,7 @@ class hr {
|
|
|
42
42
|
h(this, "keydown$$");
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
-
class
|
|
45
|
+
class vr extends pr {
|
|
46
46
|
constructor() {
|
|
47
47
|
super(...arguments);
|
|
48
48
|
h(this, "contextmenu$");
|
|
@@ -61,7 +61,7 @@ class pr extends hr {
|
|
|
61
61
|
h(this, "keydown$");
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
class
|
|
64
|
+
class Cn extends vr {
|
|
65
65
|
constructor() {
|
|
66
66
|
super(...arguments);
|
|
67
67
|
h(this, "contextmenu");
|
|
@@ -80,7 +80,7 @@ class An extends pr {
|
|
|
80
80
|
h(this, "keydown");
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
-
class
|
|
83
|
+
class zn {
|
|
84
84
|
constructor() {
|
|
85
85
|
h(this, "contextmenu$");
|
|
86
86
|
h(this, "resize$");
|
|
@@ -112,7 +112,7 @@ class Cn {
|
|
|
112
112
|
h(this, "keydown");
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
|
-
class
|
|
115
|
+
class Dn {
|
|
116
116
|
constructor() {
|
|
117
117
|
h(this, "contextmenu$");
|
|
118
118
|
h(this, "resize$");
|
|
@@ -130,12 +130,12 @@ class zn {
|
|
|
130
130
|
h(this, "keydown$");
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
|
-
const
|
|
133
|
+
const Fn = "CONTAINER", qn = "LOADER_SERIALIZED_LOAD";
|
|
134
134
|
var ft = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
135
|
-
function
|
|
135
|
+
function Ln(e) {
|
|
136
136
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
137
137
|
}
|
|
138
|
-
function
|
|
138
|
+
function Nn(e) {
|
|
139
139
|
if (e.__esModule) return e;
|
|
140
140
|
var t = e.default;
|
|
141
141
|
if (typeof t == "function") {
|
|
@@ -170,7 +170,7 @@ See the Apache Version 2.0 License for specific language governing permissions
|
|
|
170
170
|
and limitations under the License.
|
|
171
171
|
***************************************************************************** */
|
|
172
172
|
var dt;
|
|
173
|
-
function
|
|
173
|
+
function yr() {
|
|
174
174
|
if (dt) return lt;
|
|
175
175
|
dt = 1;
|
|
176
176
|
var e;
|
|
@@ -179,8 +179,8 @@ function vr() {
|
|
|
179
179
|
var n = typeof globalThis == "object" ? globalThis : typeof ft == "object" ? ft : typeof self == "object" ? self : typeof this == "object" ? this : d(), i = o(t);
|
|
180
180
|
typeof n.Reflect < "u" && (i = o(n.Reflect, i)), r(i, n), typeof n.Reflect > "u" && (n.Reflect = t);
|
|
181
181
|
function o(f, b) {
|
|
182
|
-
return function(M,
|
|
183
|
-
Object.defineProperty(f, M, { configurable: !0, writable: !0, value:
|
|
182
|
+
return function(M, k) {
|
|
183
|
+
Object.defineProperty(f, M, { configurable: !0, writable: !0, value: k }), b && b(M, k);
|
|
184
184
|
};
|
|
185
185
|
}
|
|
186
186
|
function s() {
|
|
@@ -218,7 +218,7 @@ function vr() {
|
|
|
218
218
|
} : function(a, u) {
|
|
219
219
|
return a[u];
|
|
220
220
|
}
|
|
221
|
-
},
|
|
221
|
+
}, k = Object.getPrototypeOf(Function), O = typeof Map == "function" && typeof Map.prototype.entries == "function" ? Map : tr(), x = typeof Set == "function" && typeof Set.prototype.entries == "function" ? Set : rr(), S = typeof WeakMap == "function" ? WeakMap : nr(), T = o ? Symbol.for("@reflect-metadata:registry") : void 0, q = Xt(), G = Kt(q);
|
|
222
222
|
function B(a, u, l, p) {
|
|
223
223
|
if (E(l)) {
|
|
224
224
|
if (!rt(a))
|
|
@@ -241,7 +241,7 @@ function vr() {
|
|
|
241
241
|
function l(p, _) {
|
|
242
242
|
if (!D(p))
|
|
243
243
|
throw new TypeError();
|
|
244
|
-
if (!E(_) && !
|
|
244
|
+
if (!E(_) && !Yt(_))
|
|
245
245
|
throw new TypeError();
|
|
246
246
|
Z(a, u, p, _);
|
|
247
247
|
}
|
|
@@ -263,7 +263,7 @@ function vr() {
|
|
|
263
263
|
function ge(a, u, l) {
|
|
264
264
|
if (!D(u))
|
|
265
265
|
throw new TypeError();
|
|
266
|
-
return E(l) || (l = Y(l)),
|
|
266
|
+
return E(l) || (l = Y(l)), pe(a, u, l);
|
|
267
267
|
}
|
|
268
268
|
r("hasOwnMetadata", ge);
|
|
269
269
|
function Ae(a, u, l) {
|
|
@@ -278,12 +278,12 @@ function vr() {
|
|
|
278
278
|
return E(l) || (l = Y(l)), se(a, u, l);
|
|
279
279
|
}
|
|
280
280
|
r("getOwnMetadata", y);
|
|
281
|
-
function
|
|
281
|
+
function I(a, u) {
|
|
282
282
|
if (!D(a))
|
|
283
283
|
throw new TypeError();
|
|
284
284
|
return E(u) || (u = Y(u)), ae(a, u);
|
|
285
285
|
}
|
|
286
|
-
r("getMetadataKeys",
|
|
286
|
+
r("getMetadataKeys", I);
|
|
287
287
|
function $(a, u) {
|
|
288
288
|
if (!D(a))
|
|
289
289
|
throw new TypeError();
|
|
@@ -296,7 +296,7 @@ function vr() {
|
|
|
296
296
|
if (E(l) || (l = Y(l)), !D(u))
|
|
297
297
|
throw new TypeError();
|
|
298
298
|
E(l) || (l = Y(l));
|
|
299
|
-
var p =
|
|
299
|
+
var p = ve(
|
|
300
300
|
u,
|
|
301
301
|
l,
|
|
302
302
|
/*Create*/
|
|
@@ -328,14 +328,14 @@ function vr() {
|
|
|
328
328
|
return p;
|
|
329
329
|
}
|
|
330
330
|
function V(a, u, l) {
|
|
331
|
-
var p =
|
|
331
|
+
var p = pe(a, u, l);
|
|
332
332
|
if (p)
|
|
333
333
|
return !0;
|
|
334
334
|
var _ = ze(u);
|
|
335
335
|
return ue(_) ? !1 : V(a, _, l);
|
|
336
336
|
}
|
|
337
|
-
function
|
|
338
|
-
var p =
|
|
337
|
+
function pe(a, u, l) {
|
|
338
|
+
var p = ve(
|
|
339
339
|
u,
|
|
340
340
|
l,
|
|
341
341
|
/*Create*/
|
|
@@ -344,7 +344,7 @@ function vr() {
|
|
|
344
344
|
return E(p) ? !1 : tt(p.OrdinaryHasOwnMetadata(a, u, l));
|
|
345
345
|
}
|
|
346
346
|
function _e(a, u, l) {
|
|
347
|
-
var p =
|
|
347
|
+
var p = pe(a, u, l);
|
|
348
348
|
if (p)
|
|
349
349
|
return se(a, u, l);
|
|
350
350
|
var _ = ze(u);
|
|
@@ -352,7 +352,7 @@ function vr() {
|
|
|
352
352
|
return _e(a, _, l);
|
|
353
353
|
}
|
|
354
354
|
function se(a, u, l) {
|
|
355
|
-
var p =
|
|
355
|
+
var p = ve(
|
|
356
356
|
u,
|
|
357
357
|
l,
|
|
358
358
|
/*Create*/
|
|
@@ -362,7 +362,7 @@ function vr() {
|
|
|
362
362
|
return p.OrdinaryGetOwnMetadata(a, u, l);
|
|
363
363
|
}
|
|
364
364
|
function Z(a, u, l, p) {
|
|
365
|
-
var _ =
|
|
365
|
+
var _ = ve(
|
|
366
366
|
l,
|
|
367
367
|
p,
|
|
368
368
|
/*Create*/
|
|
@@ -379,8 +379,8 @@ function vr() {
|
|
|
379
379
|
return l;
|
|
380
380
|
if (l.length <= 0)
|
|
381
381
|
return _;
|
|
382
|
-
for (var L = new x(), F = [],
|
|
383
|
-
var m = v[
|
|
382
|
+
for (var L = new x(), F = [], R = 0, v = l; R < v.length; R++) {
|
|
383
|
+
var m = v[R], w = L.has(m);
|
|
384
384
|
w || (L.add(m), F.push(m));
|
|
385
385
|
}
|
|
386
386
|
for (var g = 0, P = _; g < P.length; g++) {
|
|
@@ -390,7 +390,7 @@ function vr() {
|
|
|
390
390
|
return F;
|
|
391
391
|
}
|
|
392
392
|
function Ke(a, u) {
|
|
393
|
-
var l =
|
|
393
|
+
var l = ve(
|
|
394
394
|
a,
|
|
395
395
|
u,
|
|
396
396
|
/*create*/
|
|
@@ -424,13 +424,13 @@ function vr() {
|
|
|
424
424
|
function ue(a) {
|
|
425
425
|
return a === null;
|
|
426
426
|
}
|
|
427
|
-
function
|
|
427
|
+
function Ut(a) {
|
|
428
428
|
return typeof a == "symbol";
|
|
429
429
|
}
|
|
430
430
|
function D(a) {
|
|
431
431
|
return typeof a == "object" ? a !== null : typeof a == "function";
|
|
432
432
|
}
|
|
433
|
-
function
|
|
433
|
+
function Vt(a, u) {
|
|
434
434
|
switch (et(a)) {
|
|
435
435
|
case 0:
|
|
436
436
|
return a;
|
|
@@ -452,9 +452,9 @@ function vr() {
|
|
|
452
452
|
throw new TypeError();
|
|
453
453
|
return _;
|
|
454
454
|
}
|
|
455
|
-
return
|
|
455
|
+
return Jt(a);
|
|
456
456
|
}
|
|
457
|
-
function
|
|
457
|
+
function Jt(a, u) {
|
|
458
458
|
var l, p;
|
|
459
459
|
{
|
|
460
460
|
var _ = a.toString;
|
|
@@ -475,12 +475,12 @@ function vr() {
|
|
|
475
475
|
function tt(a) {
|
|
476
476
|
return !!a;
|
|
477
477
|
}
|
|
478
|
-
function
|
|
478
|
+
function Zt(a) {
|
|
479
479
|
return "" + a;
|
|
480
480
|
}
|
|
481
481
|
function Y(a) {
|
|
482
|
-
var u =
|
|
483
|
-
return
|
|
482
|
+
var u = Vt(a);
|
|
483
|
+
return Ut(u) ? u : Zt(u);
|
|
484
484
|
}
|
|
485
485
|
function rt(a) {
|
|
486
486
|
return Array.isArray ? Array.isArray(a) : a instanceof Object ? a instanceof Array : Object.prototype.toString.call(a) === "[object Array]";
|
|
@@ -491,7 +491,7 @@ function vr() {
|
|
|
491
491
|
function nt(a) {
|
|
492
492
|
return typeof a == "function";
|
|
493
493
|
}
|
|
494
|
-
function
|
|
494
|
+
function Yt(a) {
|
|
495
495
|
switch (et(a)) {
|
|
496
496
|
case 3:
|
|
497
497
|
return !0;
|
|
@@ -534,7 +534,7 @@ function vr() {
|
|
|
534
534
|
}
|
|
535
535
|
function ze(a) {
|
|
536
536
|
var u = Object.getPrototypeOf(a);
|
|
537
|
-
if (typeof a != "function" || a ===
|
|
537
|
+
if (typeof a != "function" || a === k || u !== k)
|
|
538
538
|
return u;
|
|
539
539
|
var l = a.prototype, p = l && Object.getPrototypeOf(l);
|
|
540
540
|
if (p == null || p === Object.prototype)
|
|
@@ -542,9 +542,9 @@ function vr() {
|
|
|
542
542
|
var _ = p.constructor;
|
|
543
543
|
return typeof _ != "function" || _ === a ? u : _;
|
|
544
544
|
}
|
|
545
|
-
function
|
|
545
|
+
function Qt() {
|
|
546
546
|
var a;
|
|
547
|
-
!E(
|
|
547
|
+
!E(T) && typeof n.Reflect < "u" && !(T in n.Reflect) && typeof n.Reflect.defineMetadata == "function" && (a = er(n.Reflect));
|
|
548
548
|
var u, l, p, _ = new S(), L = {
|
|
549
549
|
registerProvider: F,
|
|
550
550
|
getProvider: v,
|
|
@@ -572,7 +572,7 @@ function vr() {
|
|
|
572
572
|
break;
|
|
573
573
|
}
|
|
574
574
|
}
|
|
575
|
-
function
|
|
575
|
+
function R(g, P) {
|
|
576
576
|
if (!E(u)) {
|
|
577
577
|
if (u.isProviderFor(g, P))
|
|
578
578
|
return u;
|
|
@@ -595,7 +595,7 @@ function vr() {
|
|
|
595
595
|
}
|
|
596
596
|
function v(g, P) {
|
|
597
597
|
var j = _.get(g), C;
|
|
598
|
-
return E(j) || (C = j.get(P)), E(C) && (C =
|
|
598
|
+
return E(j) || (C = j.get(P)), E(C) && (C = R(g, P), E(C) || (E(j) && (j = new O(), _.set(g, j)), j.set(P, C))), C;
|
|
599
599
|
}
|
|
600
600
|
function m(g) {
|
|
601
601
|
if (E(g))
|
|
@@ -615,16 +615,16 @@ function vr() {
|
|
|
615
615
|
return !0;
|
|
616
616
|
}
|
|
617
617
|
}
|
|
618
|
-
function
|
|
618
|
+
function Xt() {
|
|
619
619
|
var a;
|
|
620
|
-
return !E(
|
|
620
|
+
return !E(T) && D(n.Reflect) && Object.isExtensible(n.Reflect) && (a = n.Reflect[T]), E(a) && (a = Qt()), !E(T) && D(n.Reflect) && Object.isExtensible(n.Reflect) && Object.defineProperty(n.Reflect, T, {
|
|
621
621
|
enumerable: !1,
|
|
622
622
|
configurable: !1,
|
|
623
623
|
writable: !1,
|
|
624
624
|
value: a
|
|
625
625
|
}), a;
|
|
626
626
|
}
|
|
627
|
-
function
|
|
627
|
+
function Kt(a) {
|
|
628
628
|
var u = new S(), l = {
|
|
629
629
|
isProviderFor: function(m, w) {
|
|
630
630
|
var g = u.get(m);
|
|
@@ -633,7 +633,7 @@ function vr() {
|
|
|
633
633
|
OrdinaryDefineOwnMetadata: F,
|
|
634
634
|
OrdinaryHasOwnMetadata: _,
|
|
635
635
|
OrdinaryGetOwnMetadata: L,
|
|
636
|
-
OrdinaryOwnMetadataKeys:
|
|
636
|
+
OrdinaryOwnMetadataKeys: R,
|
|
637
637
|
OrdinaryDeleteMetadata: v
|
|
638
638
|
};
|
|
639
639
|
return q.registerProvider(l), l;
|
|
@@ -681,7 +681,7 @@ function vr() {
|
|
|
681
681
|
);
|
|
682
682
|
j.set(m, w);
|
|
683
683
|
}
|
|
684
|
-
function
|
|
684
|
+
function R(m, w) {
|
|
685
685
|
var g = [], P = p(
|
|
686
686
|
m,
|
|
687
687
|
w,
|
|
@@ -694,14 +694,14 @@ function vr() {
|
|
|
694
694
|
var ct = at(C);
|
|
695
695
|
if (!ct)
|
|
696
696
|
return g.length = J, g;
|
|
697
|
-
var
|
|
697
|
+
var ir = st(ct);
|
|
698
698
|
try {
|
|
699
|
-
g[J] =
|
|
700
|
-
} catch (
|
|
699
|
+
g[J] = ir;
|
|
700
|
+
} catch (or) {
|
|
701
701
|
try {
|
|
702
702
|
ut(C);
|
|
703
703
|
} finally {
|
|
704
|
-
throw
|
|
704
|
+
throw or;
|
|
705
705
|
}
|
|
706
706
|
}
|
|
707
707
|
J++;
|
|
@@ -723,8 +723,8 @@ function vr() {
|
|
|
723
723
|
return !0;
|
|
724
724
|
}
|
|
725
725
|
}
|
|
726
|
-
function
|
|
727
|
-
var u = a.defineMetadata, l = a.hasOwnMetadata, p = a.getOwnMetadata, _ = a.getOwnMetadataKeys, L = a.deleteMetadata, F = new S(),
|
|
726
|
+
function er(a) {
|
|
727
|
+
var u = a.defineMetadata, l = a.hasOwnMetadata, p = a.getOwnMetadata, _ = a.getOwnMetadataKeys, L = a.deleteMetadata, F = new S(), R = {
|
|
728
728
|
isProviderFor: function(v, m) {
|
|
729
729
|
var w = F.get(v);
|
|
730
730
|
return !E(w) && w.has(m) ? !0 : _(v, m).length ? (E(w) && (w = new x(), F.set(v, w)), w.add(m), !0) : !1;
|
|
@@ -735,9 +735,9 @@ function vr() {
|
|
|
735
735
|
OrdinaryOwnMetadataKeys: _,
|
|
736
736
|
OrdinaryDeleteMetadata: L
|
|
737
737
|
};
|
|
738
|
-
return
|
|
738
|
+
return R;
|
|
739
739
|
}
|
|
740
|
-
function
|
|
740
|
+
function ve(a, u, l) {
|
|
741
741
|
var p = q.getProvider(a, u);
|
|
742
742
|
if (!E(p))
|
|
743
743
|
return p;
|
|
@@ -747,63 +747,63 @@ function vr() {
|
|
|
747
747
|
throw new Error("Illegal state.");
|
|
748
748
|
}
|
|
749
749
|
}
|
|
750
|
-
function
|
|
750
|
+
function tr() {
|
|
751
751
|
var a = {}, u = [], l = (
|
|
752
752
|
/** @class */
|
|
753
753
|
function() {
|
|
754
|
-
function
|
|
754
|
+
function R(v, m, w) {
|
|
755
755
|
this._index = 0, this._keys = v, this._values = m, this._selector = w;
|
|
756
756
|
}
|
|
757
|
-
return
|
|
757
|
+
return R.prototype["@@iterator"] = function() {
|
|
758
758
|
return this;
|
|
759
|
-
},
|
|
759
|
+
}, R.prototype[c] = function() {
|
|
760
760
|
return this;
|
|
761
|
-
},
|
|
761
|
+
}, R.prototype.next = function() {
|
|
762
762
|
var v = this._index;
|
|
763
763
|
if (v >= 0 && v < this._keys.length) {
|
|
764
764
|
var m = this._selector(this._keys[v], this._values[v]);
|
|
765
765
|
return v + 1 >= this._keys.length ? (this._index = -1, this._keys = u, this._values = u) : this._index++, { value: m, done: !1 };
|
|
766
766
|
}
|
|
767
767
|
return { value: void 0, done: !0 };
|
|
768
|
-
},
|
|
768
|
+
}, R.prototype.throw = function(v) {
|
|
769
769
|
throw this._index >= 0 && (this._index = -1, this._keys = u, this._values = u), v;
|
|
770
|
-
},
|
|
770
|
+
}, R.prototype.return = function(v) {
|
|
771
771
|
return this._index >= 0 && (this._index = -1, this._keys = u, this._values = u), { value: v, done: !0 };
|
|
772
|
-
},
|
|
772
|
+
}, R;
|
|
773
773
|
}()
|
|
774
774
|
), p = (
|
|
775
775
|
/** @class */
|
|
776
776
|
function() {
|
|
777
|
-
function
|
|
777
|
+
function R() {
|
|
778
778
|
this._keys = [], this._values = [], this._cacheKey = a, this._cacheIndex = -2;
|
|
779
779
|
}
|
|
780
|
-
return Object.defineProperty(
|
|
780
|
+
return Object.defineProperty(R.prototype, "size", {
|
|
781
781
|
get: function() {
|
|
782
782
|
return this._keys.length;
|
|
783
783
|
},
|
|
784
784
|
enumerable: !0,
|
|
785
785
|
configurable: !0
|
|
786
|
-
}),
|
|
786
|
+
}), R.prototype.has = function(v) {
|
|
787
787
|
return this._find(
|
|
788
788
|
v,
|
|
789
789
|
/*insert*/
|
|
790
790
|
!1
|
|
791
791
|
) >= 0;
|
|
792
|
-
},
|
|
792
|
+
}, R.prototype.get = function(v) {
|
|
793
793
|
var m = this._find(
|
|
794
794
|
v,
|
|
795
795
|
/*insert*/
|
|
796
796
|
!1
|
|
797
797
|
);
|
|
798
798
|
return m >= 0 ? this._values[m] : void 0;
|
|
799
|
-
},
|
|
799
|
+
}, R.prototype.set = function(v, m) {
|
|
800
800
|
var w = this._find(
|
|
801
801
|
v,
|
|
802
802
|
/*insert*/
|
|
803
803
|
!0
|
|
804
804
|
);
|
|
805
805
|
return this._values[w] = m, this;
|
|
806
|
-
},
|
|
806
|
+
}, R.prototype.delete = function(v) {
|
|
807
807
|
var m = this._find(
|
|
808
808
|
v,
|
|
809
809
|
/*insert*/
|
|
@@ -815,19 +815,19 @@ function vr() {
|
|
|
815
815
|
return this._keys.length--, this._values.length--, Ce(v, this._cacheKey) && (this._cacheKey = a, this._cacheIndex = -2), !0;
|
|
816
816
|
}
|
|
817
817
|
return !1;
|
|
818
|
-
},
|
|
818
|
+
}, R.prototype.clear = function() {
|
|
819
819
|
this._keys.length = 0, this._values.length = 0, this._cacheKey = a, this._cacheIndex = -2;
|
|
820
|
-
},
|
|
820
|
+
}, R.prototype.keys = function() {
|
|
821
821
|
return new l(this._keys, this._values, _);
|
|
822
|
-
},
|
|
822
|
+
}, R.prototype.values = function() {
|
|
823
823
|
return new l(this._keys, this._values, L);
|
|
824
|
-
},
|
|
824
|
+
}, R.prototype.entries = function() {
|
|
825
825
|
return new l(this._keys, this._values, F);
|
|
826
|
-
},
|
|
826
|
+
}, R.prototype["@@iterator"] = function() {
|
|
827
827
|
return this.entries();
|
|
828
|
-
},
|
|
828
|
+
}, R.prototype[c] = function() {
|
|
829
829
|
return this.entries();
|
|
830
|
-
},
|
|
830
|
+
}, R.prototype._find = function(v, m) {
|
|
831
831
|
if (!Ce(this._cacheKey, v)) {
|
|
832
832
|
this._cacheIndex = -1;
|
|
833
833
|
for (var w = 0; w < this._keys.length; w++)
|
|
@@ -837,21 +837,21 @@ function vr() {
|
|
|
837
837
|
}
|
|
838
838
|
}
|
|
839
839
|
return this._cacheIndex < 0 && m && (this._cacheIndex = this._keys.length, this._keys.push(v), this._values.push(void 0)), this._cacheIndex;
|
|
840
|
-
},
|
|
840
|
+
}, R;
|
|
841
841
|
}()
|
|
842
842
|
);
|
|
843
843
|
return p;
|
|
844
|
-
function _(
|
|
845
|
-
return
|
|
844
|
+
function _(R, v) {
|
|
845
|
+
return R;
|
|
846
846
|
}
|
|
847
|
-
function L(
|
|
847
|
+
function L(R, v) {
|
|
848
848
|
return v;
|
|
849
849
|
}
|
|
850
|
-
function F(
|
|
851
|
-
return [
|
|
850
|
+
function F(R, v) {
|
|
851
|
+
return [R, v];
|
|
852
852
|
}
|
|
853
853
|
}
|
|
854
|
-
function
|
|
854
|
+
function rr() {
|
|
855
855
|
var a = (
|
|
856
856
|
/** @class */
|
|
857
857
|
function() {
|
|
@@ -887,7 +887,7 @@ function vr() {
|
|
|
887
887
|
);
|
|
888
888
|
return a;
|
|
889
889
|
}
|
|
890
|
-
function
|
|
890
|
+
function nr() {
|
|
891
891
|
var a = 16, u = M.create(), l = p();
|
|
892
892
|
return (
|
|
893
893
|
/** @class */
|
|
@@ -931,7 +931,7 @@ function vr() {
|
|
|
931
931
|
function p() {
|
|
932
932
|
var v;
|
|
933
933
|
do
|
|
934
|
-
v = "@@WeakMap@@" +
|
|
934
|
+
v = "@@WeakMap@@" + R();
|
|
935
935
|
while (M.has(u, v));
|
|
936
936
|
return u[v] = !0, v;
|
|
937
937
|
}
|
|
@@ -955,7 +955,7 @@ function vr() {
|
|
|
955
955
|
}
|
|
956
956
|
return L(new Array(v), v);
|
|
957
957
|
}
|
|
958
|
-
function
|
|
958
|
+
function R() {
|
|
959
959
|
var v = F(a);
|
|
960
960
|
v[6] = v[6] & 79 | 64, v[8] = v[8] & 191 | 128;
|
|
961
961
|
for (var m = "", w = 0; w < a; ++w) {
|
|
@@ -971,11 +971,11 @@ function vr() {
|
|
|
971
971
|
});
|
|
972
972
|
}(e || (e = {})), lt;
|
|
973
973
|
}
|
|
974
|
-
|
|
975
|
-
var
|
|
976
|
-
class
|
|
974
|
+
yr();
|
|
975
|
+
var br = Object.defineProperty, mr = (e, t, r) => t in e ? br(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, fe = (e, t, r) => mr(e, typeof t != "symbol" ? t + "" : t, r);
|
|
976
|
+
class ht extends ur {
|
|
977
977
|
constructor() {
|
|
978
|
-
super(),
|
|
978
|
+
super(), fe(this, "style", {}), fe(this, "width", 0), fe(this, "height", 0), fe(this, "left", 0), fe(this, "top", 0), this.getRootNode = this.getRootNode.bind(this), this.handleEvent = this.handleEvent.bind(this);
|
|
979
979
|
}
|
|
980
980
|
get clientWidth() {
|
|
981
981
|
return this.width;
|
|
@@ -1012,7 +1012,12 @@ class Nn extends ar {
|
|
|
1012
1012
|
focus() {
|
|
1013
1013
|
}
|
|
1014
1014
|
}
|
|
1015
|
-
|
|
1015
|
+
class Wn extends ht {
|
|
1016
|
+
constructor() {
|
|
1017
|
+
super(...arguments), fe(this, "ownerDocument", new ht());
|
|
1018
|
+
}
|
|
1019
|
+
}
|
|
1020
|
+
const Hn = (e) => e === void 0, Gn = (e) => typeof e == "boolean", Bn = (e) => !!e && typeof e == "function", Un = (e) => {
|
|
1016
1021
|
var t, r;
|
|
1017
1022
|
const n = e.toJSON();
|
|
1018
1023
|
return JSON.stringify({
|
|
@@ -1043,7 +1048,7 @@ const Wn = (e) => e === void 0, Hn = (e) => typeof e == "boolean", Gn = (e) => !
|
|
|
1043
1048
|
},
|
|
1044
1049
|
isSerialized: !0
|
|
1045
1050
|
});
|
|
1046
|
-
},
|
|
1051
|
+
}, Vn = (e, t = new cr()) => {
|
|
1047
1052
|
const r = JSON.parse(e);
|
|
1048
1053
|
if (r != null && r.metadata && r.object && r.isSerialized) {
|
|
1049
1054
|
const n = t.parse(r);
|
|
@@ -1062,14 +1067,14 @@ const Wn = (e) => e === void 0, Hn = (e) => typeof e == "boolean", Gn = (e) => !
|
|
|
1062
1067
|
}), n;
|
|
1063
1068
|
}
|
|
1064
1069
|
return r;
|
|
1065
|
-
},
|
|
1070
|
+
}, Jn = (e, t) => {
|
|
1066
1071
|
const r = {
|
|
1067
1072
|
type: e == null ? void 0 : e.type
|
|
1068
1073
|
};
|
|
1069
1074
|
for (const n of t)
|
|
1070
1075
|
e[n] !== void 0 && (r[n] = e[n]);
|
|
1071
1076
|
return r;
|
|
1072
|
-
},
|
|
1077
|
+
}, Zn = (e, t) => {
|
|
1073
1078
|
const r = {
|
|
1074
1079
|
type: e == null ? void 0 : e.type
|
|
1075
1080
|
};
|
|
@@ -1110,7 +1115,7 @@ function Ze(e, t) {
|
|
|
1110
1115
|
}
|
|
1111
1116
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1112
1117
|
}
|
|
1113
|
-
function
|
|
1118
|
+
function wr(e, t, r, n) {
|
|
1114
1119
|
function i(o) {
|
|
1115
1120
|
return o instanceof r ? o : new r(function(s) {
|
|
1116
1121
|
s(o);
|
|
@@ -1137,7 +1142,7 @@ function mr(e, t, r, n) {
|
|
|
1137
1142
|
f((n = n.apply(e, [])).next());
|
|
1138
1143
|
});
|
|
1139
1144
|
}
|
|
1140
|
-
function
|
|
1145
|
+
function gr(e, t) {
|
|
1141
1146
|
var r = { label: 0, sent: function() {
|
|
1142
1147
|
if (o[0] & 1) throw o[1];
|
|
1143
1148
|
return o[1];
|
|
@@ -1230,25 +1235,25 @@ function oe() {
|
|
|
1230
1235
|
return e;
|
|
1231
1236
|
}
|
|
1232
1237
|
var Be = "injectionTokens";
|
|
1233
|
-
function
|
|
1238
|
+
function _r(e) {
|
|
1234
1239
|
var t = Reflect.getMetadata("design:paramtypes", e) || [], r = Reflect.getOwnMetadata(Be, e) || {};
|
|
1235
1240
|
return Object.keys(r).forEach(function(n) {
|
|
1236
1241
|
t[+n] = r[n];
|
|
1237
1242
|
}), t;
|
|
1238
1243
|
}
|
|
1239
|
-
function
|
|
1244
|
+
function Sr(e, t) {
|
|
1240
1245
|
return function(r, n, i) {
|
|
1241
1246
|
var o = Reflect.getOwnMetadata(Be, r) || {};
|
|
1242
1247
|
o[i] = e, Reflect.defineMetadata(Be, o, r);
|
|
1243
1248
|
};
|
|
1244
1249
|
}
|
|
1245
|
-
function
|
|
1250
|
+
function xt(e) {
|
|
1246
1251
|
return !!e.useClass;
|
|
1247
1252
|
}
|
|
1248
1253
|
function Ue(e) {
|
|
1249
1254
|
return !!e.useFactory;
|
|
1250
1255
|
}
|
|
1251
|
-
var
|
|
1256
|
+
var $t = function() {
|
|
1252
1257
|
function e(t) {
|
|
1253
1258
|
this.wrap = t, this.reflectMethods = [
|
|
1254
1259
|
"get",
|
|
@@ -1285,23 +1290,23 @@ var xt = function() {
|
|
|
1285
1290
|
function ce(e) {
|
|
1286
1291
|
return typeof e == "string" || typeof e == "symbol";
|
|
1287
1292
|
}
|
|
1288
|
-
function
|
|
1293
|
+
function Mr(e) {
|
|
1289
1294
|
return typeof e == "object" && "token" in e && "multiple" in e;
|
|
1290
1295
|
}
|
|
1291
|
-
function
|
|
1296
|
+
function pt(e) {
|
|
1292
1297
|
return typeof e == "object" && "token" in e && "transform" in e;
|
|
1293
1298
|
}
|
|
1294
|
-
function
|
|
1295
|
-
return typeof e == "function" || e instanceof
|
|
1299
|
+
function Er(e) {
|
|
1300
|
+
return typeof e == "function" || e instanceof $t;
|
|
1296
1301
|
}
|
|
1297
|
-
function
|
|
1302
|
+
function Te(e) {
|
|
1298
1303
|
return !!e.useToken;
|
|
1299
1304
|
}
|
|
1300
1305
|
function Pe(e) {
|
|
1301
1306
|
return e.useValue != null;
|
|
1302
1307
|
}
|
|
1303
|
-
function
|
|
1304
|
-
return
|
|
1308
|
+
function Or(e) {
|
|
1309
|
+
return xt(e) || Pe(e) || Te(e) || Ue(e);
|
|
1305
1310
|
}
|
|
1306
1311
|
var Ye = function() {
|
|
1307
1312
|
function e() {
|
|
@@ -1326,7 +1331,7 @@ var Ye = function() {
|
|
|
1326
1331
|
}, e.prototype.ensure = function(t) {
|
|
1327
1332
|
this._registryMap.has(t) || this._registryMap.set(t, []);
|
|
1328
1333
|
}, e;
|
|
1329
|
-
}(),
|
|
1334
|
+
}(), Rr = function(e) {
|
|
1330
1335
|
Ze(t, e);
|
|
1331
1336
|
function t() {
|
|
1332
1337
|
return e !== null && e.apply(this, arguments) || this;
|
|
@@ -1344,55 +1349,55 @@ function Tr(e, t) {
|
|
|
1344
1349
|
var r = e.split(",")[t].trim();
|
|
1345
1350
|
return '"' + r + '" at position #' + t;
|
|
1346
1351
|
}
|
|
1347
|
-
function
|
|
1352
|
+
function Pr(e, t, r) {
|
|
1348
1353
|
return r === void 0 && (r = " "), oe([e], t.message.split(`
|
|
1349
1354
|
`).map(function(n) {
|
|
1350
1355
|
return r + n;
|
|
1351
1356
|
})).join(`
|
|
1352
1357
|
`);
|
|
1353
1358
|
}
|
|
1354
|
-
function
|
|
1359
|
+
function kr(e, t, r) {
|
|
1355
1360
|
var n = Ie(e.toString().match(/constructor\(([\w, ]+)\)/) || [], 2), i = n[1], o = i === void 0 ? null : i, s = Tr(o, t);
|
|
1356
|
-
return
|
|
1361
|
+
return Pr("Cannot inject the dependency " + s + ' of "' + e.name + '" constructor. Reason:', r);
|
|
1357
1362
|
}
|
|
1358
|
-
function
|
|
1363
|
+
function Ir(e) {
|
|
1359
1364
|
if (typeof e.dispose != "function")
|
|
1360
1365
|
return !1;
|
|
1361
1366
|
var t = e.dispose;
|
|
1362
1367
|
return !(t.length > 0);
|
|
1363
1368
|
}
|
|
1364
|
-
var
|
|
1369
|
+
var xr = function(e) {
|
|
1365
1370
|
Ze(t, e);
|
|
1366
1371
|
function t() {
|
|
1367
1372
|
return e !== null && e.apply(this, arguments) || this;
|
|
1368
1373
|
}
|
|
1369
1374
|
return t;
|
|
1370
|
-
}(Ye),
|
|
1375
|
+
}(Ye), $r = function(e) {
|
|
1371
1376
|
Ze(t, e);
|
|
1372
1377
|
function t() {
|
|
1373
1378
|
return e !== null && e.apply(this, arguments) || this;
|
|
1374
1379
|
}
|
|
1375
1380
|
return t;
|
|
1376
|
-
}(Ye),
|
|
1381
|
+
}(Ye), jr = /* @__PURE__ */ function() {
|
|
1377
1382
|
function e() {
|
|
1378
|
-
this.preResolution = new
|
|
1383
|
+
this.preResolution = new xr(), this.postResolution = new $r();
|
|
1379
1384
|
}
|
|
1380
1385
|
return e;
|
|
1381
|
-
}(),
|
|
1386
|
+
}(), jt = /* @__PURE__ */ new Map(), Ar = function() {
|
|
1382
1387
|
function e(t) {
|
|
1383
|
-
this.parent = t, this._registry = new
|
|
1388
|
+
this.parent = t, this._registry = new Rr(), this.interceptors = new jr(), this.disposed = !1, this.disposables = /* @__PURE__ */ new Set();
|
|
1384
1389
|
}
|
|
1385
1390
|
return e.prototype.register = function(t, r, n) {
|
|
1386
1391
|
n === void 0 && (n = { lifecycle: W.Transient }), this.ensureNotDisposed();
|
|
1387
1392
|
var i;
|
|
1388
|
-
if (
|
|
1393
|
+
if (Or(r) ? i = r : i = { useClass: r }, Te(i))
|
|
1389
1394
|
for (var o = [t], s = i; s != null; ) {
|
|
1390
1395
|
var c = s.useToken;
|
|
1391
1396
|
if (o.includes(c))
|
|
1392
1397
|
throw new Error("Token registration cycle detected! " + oe(o, [c]).join(" -> "));
|
|
1393
1398
|
o.push(c);
|
|
1394
1399
|
var d = this._registry.get(c);
|
|
1395
|
-
d &&
|
|
1400
|
+
d && Te(d.provider) ? s = d.provider : s = null;
|
|
1396
1401
|
}
|
|
1397
1402
|
if ((n.lifecycle === W.Singleton || n.lifecycle == W.ContainerScoped || n.lifecycle == W.ResolutionScoped) && (Pe(i) || Ue(i)))
|
|
1398
1403
|
throw new Error('Cannot use lifecycle "' + W[n.lifecycle] + '" with ValueProviders or FactoryProviders');
|
|
@@ -1435,7 +1440,7 @@ var Ir = function(e) {
|
|
|
1435
1440
|
var o = this.resolveRegistration(i, r);
|
|
1436
1441
|
return this.executePostResolutionInterceptor(t, o, "Single"), o;
|
|
1437
1442
|
}
|
|
1438
|
-
if (
|
|
1443
|
+
if (Er(t)) {
|
|
1439
1444
|
var o = this.construct(t, r);
|
|
1440
1445
|
return this.executePostResolutionInterceptor(t, o, "Single"), o;
|
|
1441
1446
|
}
|
|
@@ -1484,7 +1489,7 @@ var Ir = function(e) {
|
|
|
1484
1489
|
if (this.ensureNotDisposed(), t.options.lifecycle === W.ResolutionScoped && r.scopedResolutions.has(t))
|
|
1485
1490
|
return r.scopedResolutions.get(t);
|
|
1486
1491
|
var n = t.options.lifecycle === W.Singleton, i = t.options.lifecycle === W.ContainerScoped, o = n || i, s;
|
|
1487
|
-
return Pe(t.provider) ? s = t.provider.useValue :
|
|
1492
|
+
return Pe(t.provider) ? s = t.provider.useValue : Te(t.provider) ? s = o ? t.instance || (t.instance = this.resolve(t.provider.useToken, r)) : this.resolve(t.provider.useToken, r) : xt(t.provider) ? s = o ? t.instance || (t.instance = this.construct(t.provider.useClass, r)) : this.construct(t.provider.useClass, r) : Ue(t.provider) ? s = t.provider.useFactory(this) : s = this.construct(t.provider, r), t.options.lifecycle === W.ResolutionScoped && r.scopedResolutions.set(t, s), s;
|
|
1488
1493
|
}, e.prototype.resolveAll = function(t, r, n) {
|
|
1489
1494
|
var i = this;
|
|
1490
1495
|
r === void 0 && (r = new Ee()), n === void 0 && (n = !1), this.ensureNotDisposed();
|
|
@@ -1565,9 +1570,9 @@ var Ir = function(e) {
|
|
|
1565
1570
|
options: n
|
|
1566
1571
|
});
|
|
1567
1572
|
}, e.prototype.dispose = function() {
|
|
1568
|
-
return
|
|
1573
|
+
return wr(this, void 0, void 0, function() {
|
|
1569
1574
|
var t;
|
|
1570
|
-
return
|
|
1575
|
+
return gr(this, function(r) {
|
|
1571
1576
|
switch (r.label) {
|
|
1572
1577
|
case 0:
|
|
1573
1578
|
return this.disposed = !0, t = [], this.disposables.forEach(function(n) {
|
|
@@ -1585,12 +1590,12 @@ var Ir = function(e) {
|
|
|
1585
1590
|
return this.isRegistered(t) ? this._registry.getAll(t) : this.parent ? this.parent.getAllRegistrations(t) : null;
|
|
1586
1591
|
}, e.prototype.construct = function(t, r) {
|
|
1587
1592
|
var n = this;
|
|
1588
|
-
if (t instanceof
|
|
1593
|
+
if (t instanceof $t)
|
|
1589
1594
|
return t.createProxy(function(o) {
|
|
1590
1595
|
return n.resolve(o, r);
|
|
1591
1596
|
});
|
|
1592
1597
|
var i = function() {
|
|
1593
|
-
var o =
|
|
1598
|
+
var o = jt.get(t);
|
|
1594
1599
|
if (!o || o.length === 0) {
|
|
1595
1600
|
if (t.length === 0)
|
|
1596
1601
|
return new t();
|
|
@@ -1599,48 +1604,48 @@ var Ir = function(e) {
|
|
|
1599
1604
|
var s = o.map(n.resolveParams(r, t));
|
|
1600
1605
|
return new (t.bind.apply(t, oe([void 0], s)))();
|
|
1601
1606
|
}();
|
|
1602
|
-
return
|
|
1607
|
+
return Ir(i) && this.disposables.add(i), i;
|
|
1603
1608
|
}, e.prototype.resolveParams = function(t, r) {
|
|
1604
1609
|
var n = this;
|
|
1605
1610
|
return function(i, o) {
|
|
1606
1611
|
var s, c, d;
|
|
1607
1612
|
try {
|
|
1608
|
-
return
|
|
1613
|
+
return Mr(i) ? pt(i) ? i.multiple ? (s = n.resolve(i.transform)).transform.apply(s, oe([n.resolveAll(i.token, new Ee(), i.isOptional)], i.transformArgs)) : (c = n.resolve(i.transform)).transform.apply(c, oe([n.resolve(i.token, t, i.isOptional)], i.transformArgs)) : i.multiple ? n.resolveAll(i.token, new Ee(), i.isOptional) : n.resolve(i.token, t, i.isOptional) : pt(i) ? (d = n.resolve(i.transform, t)).transform.apply(d, oe([n.resolve(i.token, t)], i.transformArgs)) : n.resolve(i, t);
|
|
1609
1614
|
} catch (f) {
|
|
1610
|
-
throw new Error(
|
|
1615
|
+
throw new Error(kr(r, o, f));
|
|
1611
1616
|
}
|
|
1612
1617
|
};
|
|
1613
1618
|
}, e.prototype.ensureNotDisposed = function() {
|
|
1614
1619
|
if (this.disposed)
|
|
1615
1620
|
throw new Error("This container has been disposed, you cannot interact with a disposed container");
|
|
1616
1621
|
}, e;
|
|
1617
|
-
}(),
|
|
1618
|
-
function
|
|
1622
|
+
}(), Cr = new Ar();
|
|
1623
|
+
function Yn(e, t) {
|
|
1619
1624
|
var r = {
|
|
1620
1625
|
token: e,
|
|
1621
1626
|
multiple: !1,
|
|
1622
1627
|
isOptional: t
|
|
1623
1628
|
};
|
|
1624
|
-
return
|
|
1629
|
+
return Sr(r);
|
|
1625
1630
|
}
|
|
1626
|
-
function
|
|
1631
|
+
function zr(e) {
|
|
1627
1632
|
return function(t) {
|
|
1628
|
-
|
|
1633
|
+
jt.set(t, _r(t));
|
|
1629
1634
|
};
|
|
1630
1635
|
}
|
|
1631
|
-
function
|
|
1636
|
+
function Qn(e, t) {
|
|
1632
1637
|
return function(r) {
|
|
1633
|
-
|
|
1638
|
+
zr()(r), Cr.register(r, r, {
|
|
1634
1639
|
lifecycle: e
|
|
1635
1640
|
});
|
|
1636
1641
|
};
|
|
1637
1642
|
}
|
|
1638
1643
|
if (typeof Reflect > "u" || !Reflect.getMetadata)
|
|
1639
1644
|
throw new Error(`tsyringe requires a reflect polyfill. Please add 'import "reflect-metadata"' to the top of your entry point.`);
|
|
1640
|
-
var X = {}, re = {},
|
|
1641
|
-
function
|
|
1642
|
-
if (
|
|
1643
|
-
|
|
1645
|
+
var X = {}, re = {}, vt;
|
|
1646
|
+
function Dr() {
|
|
1647
|
+
if (vt) return re;
|
|
1648
|
+
vt = 1, Object.defineProperty(re, "__esModule", { value: !0 }), re.DefaultSerializer = re.extendSerializer = void 0;
|
|
1644
1649
|
function e(n, i) {
|
|
1645
1650
|
const o = n.deserialize.bind(n), s = n.serialize.bind(n);
|
|
1646
1651
|
return {
|
|
@@ -1678,11 +1683,11 @@ function zr() {
|
|
|
1678
1683
|
}
|
|
1679
1684
|
}, re;
|
|
1680
1685
|
}
|
|
1681
|
-
var
|
|
1682
|
-
function
|
|
1683
|
-
if (
|
|
1684
|
-
|
|
1685
|
-
const e = /* @__PURE__ */
|
|
1686
|
+
var yt;
|
|
1687
|
+
function bt() {
|
|
1688
|
+
if (yt) return X;
|
|
1689
|
+
yt = 1, Object.defineProperty(X, "__esModule", { value: !0 }), X.serialize = X.deserialize = X.registerSerializer = void 0;
|
|
1690
|
+
const e = /* @__PURE__ */ Dr();
|
|
1686
1691
|
let t = e.DefaultSerializer;
|
|
1687
1692
|
function r(o) {
|
|
1688
1693
|
t = e.extendSerializer(t, o);
|
|
@@ -1697,15 +1702,15 @@ function yt() {
|
|
|
1697
1702
|
}
|
|
1698
1703
|
return X.serialize = i, X;
|
|
1699
1704
|
}
|
|
1700
|
-
var H = {},
|
|
1701
|
-
function
|
|
1702
|
-
return
|
|
1705
|
+
var H = {}, mt;
|
|
1706
|
+
function Fr() {
|
|
1707
|
+
return mt || (mt = 1, Object.defineProperty(H, "__esModule", { value: !0 }), H.$worker = H.$transferable = H.$terminate = H.$events = H.$errors = void 0, H.$errors = Symbol("thread.errors"), H.$events = Symbol("thread.events"), H.$terminate = Symbol("thread.terminate"), H.$transferable = Symbol("thread.transferable"), H.$worker = Symbol("thread.worker")), H;
|
|
1703
1708
|
}
|
|
1704
|
-
var ne = {},
|
|
1705
|
-
function
|
|
1706
|
-
if (
|
|
1707
|
-
|
|
1708
|
-
const e = /* @__PURE__ */
|
|
1709
|
+
var ne = {}, wt;
|
|
1710
|
+
function gt() {
|
|
1711
|
+
if (wt) return ne;
|
|
1712
|
+
wt = 1, Object.defineProperty(ne, "__esModule", { value: !0 }), ne.Transfer = ne.isTransferDescriptor = void 0;
|
|
1713
|
+
const e = /* @__PURE__ */ Fr();
|
|
1709
1714
|
function t(i) {
|
|
1710
1715
|
return !(!i || typeof i != "object");
|
|
1711
1716
|
}
|
|
@@ -1727,9 +1732,9 @@ function wt() {
|
|
|
1727
1732
|
}
|
|
1728
1733
|
return ne.Transfer = n, ne;
|
|
1729
1734
|
}
|
|
1730
|
-
var Fe = {},
|
|
1731
|
-
function
|
|
1732
|
-
return
|
|
1735
|
+
var Fe = {}, _t;
|
|
1736
|
+
function qr() {
|
|
1737
|
+
return _t || (_t = 1, function(e) {
|
|
1733
1738
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.WorkerMessageType = e.MasterMessageType = void 0, function(t) {
|
|
1734
1739
|
t.cancel = "cancel", t.run = "run";
|
|
1735
1740
|
}(e.MasterMessageType || (e.MasterMessageType = {})), function(t) {
|
|
@@ -1737,14 +1742,14 @@ function Fr() {
|
|
|
1737
1742
|
}(e.WorkerMessageType || (e.WorkerMessageType = {}));
|
|
1738
1743
|
}(Fe)), Fe;
|
|
1739
1744
|
}
|
|
1740
|
-
var ie = {}, qe,
|
|
1741
|
-
function qr() {
|
|
1742
|
-
return _t || (_t = 1, qe = (e) => e ? typeof Symbol.observable == "symbol" && typeof e[Symbol.observable] == "function" ? e === e[Symbol.observable]() : typeof e["@@observable"] == "function" ? e === e["@@observable"]() : !1 : !1), qe;
|
|
1743
|
-
}
|
|
1744
|
-
var Oe = {}, St;
|
|
1745
|
+
var ie = {}, qe, St;
|
|
1745
1746
|
function Lr() {
|
|
1746
|
-
|
|
1747
|
-
|
|
1747
|
+
return St || (St = 1, qe = (e) => e ? typeof Symbol.observable == "symbol" && typeof e[Symbol.observable] == "function" ? e === e[Symbol.observable]() : typeof e["@@observable"] == "function" ? e === e["@@observable"]() : !1 : !1), qe;
|
|
1748
|
+
}
|
|
1749
|
+
var Oe = {}, Mt;
|
|
1750
|
+
function Nr() {
|
|
1751
|
+
if (Mt) return Oe;
|
|
1752
|
+
Mt = 1, Object.defineProperty(Oe, "__esModule", { value: !0 });
|
|
1748
1753
|
const e = function() {
|
|
1749
1754
|
const i = typeof self < "u" && typeof Window < "u" && self instanceof Window;
|
|
1750
1755
|
return !!(typeof self < "u" && self.postMessage && !i);
|
|
@@ -1764,17 +1769,17 @@ function Lr() {
|
|
|
1764
1769
|
subscribeToMasterMessages: r
|
|
1765
1770
|
}, Oe;
|
|
1766
1771
|
}
|
|
1767
|
-
var
|
|
1768
|
-
function
|
|
1769
|
-
return
|
|
1770
|
-
var t = ie && ie.__awaiter || function(y,
|
|
1772
|
+
var Et;
|
|
1773
|
+
function Xn() {
|
|
1774
|
+
return Et || (Et = 1, function(e) {
|
|
1775
|
+
var t = ie && ie.__awaiter || function(y, I, $, z) {
|
|
1771
1776
|
function Q(N) {
|
|
1772
1777
|
return N instanceof $ ? N : new $(function(V) {
|
|
1773
1778
|
V(N);
|
|
1774
1779
|
});
|
|
1775
1780
|
}
|
|
1776
1781
|
return new ($ || ($ = Promise))(function(N, V) {
|
|
1777
|
-
function
|
|
1782
|
+
function pe(Z) {
|
|
1778
1783
|
try {
|
|
1779
1784
|
se(z.next(Z));
|
|
1780
1785
|
} catch (ae) {
|
|
@@ -1789,29 +1794,29 @@ function Qn() {
|
|
|
1789
1794
|
}
|
|
1790
1795
|
}
|
|
1791
1796
|
function se(Z) {
|
|
1792
|
-
Z.done ? N(Z.value) : Q(Z.value).then(
|
|
1797
|
+
Z.done ? N(Z.value) : Q(Z.value).then(pe, _e);
|
|
1793
1798
|
}
|
|
1794
|
-
se((z = z.apply(y,
|
|
1799
|
+
se((z = z.apply(y, I || [])).next());
|
|
1795
1800
|
});
|
|
1796
1801
|
}, r = ie && ie.__importDefault || function(y) {
|
|
1797
1802
|
return y && y.__esModule ? y : { default: y };
|
|
1798
1803
|
};
|
|
1799
1804
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.expose = e.isWorkerRuntime = e.Transfer = e.registerSerializer = void 0;
|
|
1800
|
-
const n = r(
|
|
1801
|
-
var d = /* @__PURE__ */
|
|
1805
|
+
const n = r(Lr()), i = /* @__PURE__ */ bt(), o = /* @__PURE__ */ gt(), s = /* @__PURE__ */ qr(), c = r(/* @__PURE__ */ Nr());
|
|
1806
|
+
var d = /* @__PURE__ */ bt();
|
|
1802
1807
|
Object.defineProperty(e, "registerSerializer", { enumerable: !0, get: function() {
|
|
1803
1808
|
return d.registerSerializer;
|
|
1804
1809
|
} });
|
|
1805
|
-
var f = /* @__PURE__ */
|
|
1810
|
+
var f = /* @__PURE__ */ gt();
|
|
1806
1811
|
Object.defineProperty(e, "Transfer", { enumerable: !0, get: function() {
|
|
1807
1812
|
return f.Transfer;
|
|
1808
1813
|
} }), e.isWorkerRuntime = c.default.isWorkerRuntime;
|
|
1809
1814
|
let b = !1;
|
|
1810
|
-
const M = /* @__PURE__ */ new Map(),
|
|
1815
|
+
const M = /* @__PURE__ */ new Map(), k = (y) => y && y.type === s.MasterMessageType.cancel, O = (y) => y && y.type === s.MasterMessageType.run, x = (y) => n.default(y) || S(y);
|
|
1811
1816
|
function S(y) {
|
|
1812
1817
|
return y && typeof y == "object" && typeof y.subscribe == "function";
|
|
1813
1818
|
}
|
|
1814
|
-
function
|
|
1819
|
+
function T(y) {
|
|
1815
1820
|
return o.isTransferDescriptor(y) ? { payload: y.send, transferables: y.transferables } : { payload: y, transferables: void 0 };
|
|
1816
1821
|
}
|
|
1817
1822
|
function q() {
|
|
@@ -1824,58 +1829,58 @@ function Qn() {
|
|
|
1824
1829
|
c.default.postMessageToMaster(y);
|
|
1825
1830
|
}
|
|
1826
1831
|
function G(y) {
|
|
1827
|
-
const
|
|
1832
|
+
const I = {
|
|
1828
1833
|
type: s.WorkerMessageType.init,
|
|
1829
1834
|
exposed: {
|
|
1830
1835
|
type: "module",
|
|
1831
1836
|
methods: y
|
|
1832
1837
|
}
|
|
1833
1838
|
};
|
|
1834
|
-
c.default.postMessageToMaster(
|
|
1839
|
+
c.default.postMessageToMaster(I);
|
|
1835
1840
|
}
|
|
1836
|
-
function B(y,
|
|
1837
|
-
const { payload: $, transferables: z } =
|
|
1841
|
+
function B(y, I) {
|
|
1842
|
+
const { payload: $, transferables: z } = T(I), Q = {
|
|
1838
1843
|
type: s.WorkerMessageType.error,
|
|
1839
1844
|
uid: y,
|
|
1840
1845
|
error: i.serialize($)
|
|
1841
1846
|
};
|
|
1842
1847
|
c.default.postMessageToMaster(Q, z);
|
|
1843
1848
|
}
|
|
1844
|
-
function ee(y,
|
|
1845
|
-
const { payload: z, transferables: Q } =
|
|
1849
|
+
function ee(y, I, $) {
|
|
1850
|
+
const { payload: z, transferables: Q } = T($), N = {
|
|
1846
1851
|
type: s.WorkerMessageType.result,
|
|
1847
1852
|
uid: y,
|
|
1848
|
-
complete:
|
|
1853
|
+
complete: I ? !0 : void 0,
|
|
1849
1854
|
payload: z
|
|
1850
1855
|
};
|
|
1851
1856
|
c.default.postMessageToMaster(N, Q);
|
|
1852
1857
|
}
|
|
1853
|
-
function te(y,
|
|
1858
|
+
function te(y, I) {
|
|
1854
1859
|
const $ = {
|
|
1855
1860
|
type: s.WorkerMessageType.running,
|
|
1856
1861
|
uid: y,
|
|
1857
|
-
resultType:
|
|
1862
|
+
resultType: I
|
|
1858
1863
|
};
|
|
1859
1864
|
c.default.postMessageToMaster($);
|
|
1860
1865
|
}
|
|
1861
1866
|
function U(y) {
|
|
1862
1867
|
try {
|
|
1863
|
-
const
|
|
1868
|
+
const I = {
|
|
1864
1869
|
type: s.WorkerMessageType.uncaughtError,
|
|
1865
1870
|
error: i.serialize(y)
|
|
1866
1871
|
};
|
|
1867
|
-
c.default.postMessageToMaster(
|
|
1868
|
-
} catch (
|
|
1872
|
+
c.default.postMessageToMaster(I);
|
|
1873
|
+
} catch (I) {
|
|
1869
1874
|
console.error(`Not reporting uncaught error back to master thread as it occured while reporting an uncaught error already.
|
|
1870
|
-
Latest error:`,
|
|
1875
|
+
Latest error:`, I, `
|
|
1871
1876
|
Original error:`, y);
|
|
1872
1877
|
}
|
|
1873
1878
|
}
|
|
1874
|
-
function ge(y,
|
|
1879
|
+
function ge(y, I, $) {
|
|
1875
1880
|
return t(this, void 0, void 0, function* () {
|
|
1876
1881
|
let z;
|
|
1877
1882
|
try {
|
|
1878
|
-
z =
|
|
1883
|
+
z = I(...$);
|
|
1879
1884
|
} catch (N) {
|
|
1880
1885
|
return B(y, N);
|
|
1881
1886
|
}
|
|
@@ -1902,20 +1907,20 @@ Original error:`, y);
|
|
|
1902
1907
|
if (b)
|
|
1903
1908
|
throw Error("expose() called more than once. This is not possible. Pass an object to expose() if you want to expose multiple functions.");
|
|
1904
1909
|
if (b = !0, typeof y == "function")
|
|
1905
|
-
c.default.subscribeToMasterMessages((
|
|
1906
|
-
O(
|
|
1910
|
+
c.default.subscribeToMasterMessages((I) => {
|
|
1911
|
+
O(I) && !I.method && ge(I.uid, y, I.args.map(i.deserialize));
|
|
1907
1912
|
}), q();
|
|
1908
1913
|
else if (typeof y == "object" && y) {
|
|
1909
1914
|
c.default.subscribeToMasterMessages(($) => {
|
|
1910
1915
|
O($) && $.method && ge($.uid, y[$.method], $.args.map(i.deserialize));
|
|
1911
1916
|
});
|
|
1912
|
-
const
|
|
1913
|
-
G(
|
|
1917
|
+
const I = Object.keys(y).filter(($) => typeof y[$] == "function");
|
|
1918
|
+
G(I);
|
|
1914
1919
|
} else
|
|
1915
1920
|
throw Error(`Invalid argument passed to expose(). Expected a function or an object, got: ${y}`);
|
|
1916
|
-
c.default.subscribeToMasterMessages((
|
|
1917
|
-
if (I
|
|
1918
|
-
const $ =
|
|
1921
|
+
c.default.subscribeToMasterMessages((I) => {
|
|
1922
|
+
if (k(I)) {
|
|
1923
|
+
const $ = I.uid, z = M.get($);
|
|
1919
1924
|
z && (z.unsubscribe(), M.delete($));
|
|
1920
1925
|
}
|
|
1921
1926
|
});
|
|
@@ -1923,8 +1928,8 @@ Original error:`, y);
|
|
|
1923
1928
|
e.expose = Ae, typeof self < "u" && typeof self.addEventListener == "function" && c.default.isWorkerRuntime() && (self.addEventListener("error", (y) => {
|
|
1924
1929
|
setTimeout(() => U(y.error || y), 250);
|
|
1925
1930
|
}), self.addEventListener("unhandledrejection", (y) => {
|
|
1926
|
-
const
|
|
1927
|
-
|
|
1931
|
+
const I = y.reason;
|
|
1932
|
+
I && typeof I.message == "string" && setTimeout(() => U(I), 250);
|
|
1928
1933
|
})), typeof process < "u" && typeof process.on == "function" && c.default.isWorkerRuntime() && (process.on("uncaughtException", (y) => {
|
|
1929
1934
|
setTimeout(() => U(y), 250);
|
|
1930
1935
|
}), process.on("unhandledRejection", (y) => {
|
|
@@ -1948,7 +1953,7 @@ function me(e, t) {
|
|
|
1948
1953
|
}
|
|
1949
1954
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1950
1955
|
}
|
|
1951
|
-
function
|
|
1956
|
+
function Wr(e, t, r, n) {
|
|
1952
1957
|
function i(o) {
|
|
1953
1958
|
return o instanceof r ? o : new r(function(s) {
|
|
1954
1959
|
s(o);
|
|
@@ -1975,7 +1980,7 @@ function Nr(e, t, r, n) {
|
|
|
1975
1980
|
f((n = n.apply(e, t || [])).next());
|
|
1976
1981
|
});
|
|
1977
1982
|
}
|
|
1978
|
-
function
|
|
1983
|
+
function At(e, t) {
|
|
1979
1984
|
var r = { label: 0, sent: function() {
|
|
1980
1985
|
if (o[0] & 1) throw o[1];
|
|
1981
1986
|
return o[1];
|
|
@@ -2035,7 +2040,7 @@ function jt(e, t) {
|
|
|
2035
2040
|
return { value: f[0] ? f[1] : void 0, done: !0 };
|
|
2036
2041
|
}
|
|
2037
2042
|
}
|
|
2038
|
-
function
|
|
2043
|
+
function de(e) {
|
|
2039
2044
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
2040
2045
|
if (r) return r.call(e);
|
|
2041
2046
|
if (e && typeof e.length == "number") return {
|
|
@@ -2045,7 +2050,7 @@ function le(e) {
|
|
|
2045
2050
|
};
|
|
2046
2051
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
2047
2052
|
}
|
|
2048
|
-
function
|
|
2053
|
+
function he(e, t) {
|
|
2049
2054
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
2050
2055
|
if (!r) return e;
|
|
2051
2056
|
var n = r.call(e), i, o = [], s;
|
|
@@ -2067,10 +2072,10 @@ function ye(e, t, r) {
|
|
|
2067
2072
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
2068
2073
|
return e.concat(o || Array.prototype.slice.call(t));
|
|
2069
2074
|
}
|
|
2070
|
-
function
|
|
2071
|
-
return this instanceof
|
|
2075
|
+
function le(e) {
|
|
2076
|
+
return this instanceof le ? (this.v = e, this) : new le(e);
|
|
2072
2077
|
}
|
|
2073
|
-
function
|
|
2078
|
+
function Hr(e, t, r) {
|
|
2074
2079
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
2075
2080
|
var n = r.apply(e, t || []), i, o = [];
|
|
2076
2081
|
return i = Object.create((typeof AsyncIterator == "function" ? AsyncIterator : Object).prototype), c("next"), c("throw"), c("return", s), i[Symbol.asyncIterator] = function() {
|
|
@@ -2083,8 +2088,8 @@ function Wr(e, t, r) {
|
|
|
2083
2088
|
}
|
|
2084
2089
|
function c(O, x) {
|
|
2085
2090
|
n[O] && (i[O] = function(S) {
|
|
2086
|
-
return new Promise(function(
|
|
2087
|
-
o.push([O, S,
|
|
2091
|
+
return new Promise(function(T, q) {
|
|
2092
|
+
o.push([O, S, T, q]) > 1 || d(O, S);
|
|
2088
2093
|
});
|
|
2089
2094
|
}, x && (i[O] = x(i[O])));
|
|
2090
2095
|
}
|
|
@@ -2092,11 +2097,11 @@ function Wr(e, t, r) {
|
|
|
2092
2097
|
try {
|
|
2093
2098
|
f(n[O](x));
|
|
2094
2099
|
} catch (S) {
|
|
2095
|
-
|
|
2100
|
+
k(o[0][3], S);
|
|
2096
2101
|
}
|
|
2097
2102
|
}
|
|
2098
2103
|
function f(O) {
|
|
2099
|
-
O.value instanceof
|
|
2104
|
+
O.value instanceof le ? Promise.resolve(O.value.v).then(b, M) : k(o[0][2], O);
|
|
2100
2105
|
}
|
|
2101
2106
|
function b(O) {
|
|
2102
2107
|
d("next", O);
|
|
@@ -2104,14 +2109,14 @@ function Wr(e, t, r) {
|
|
|
2104
2109
|
function M(O) {
|
|
2105
2110
|
d("throw", O);
|
|
2106
2111
|
}
|
|
2107
|
-
function
|
|
2112
|
+
function k(O, x) {
|
|
2108
2113
|
O(x), o.shift(), o.length && d(o[0][0], o[0][1]);
|
|
2109
2114
|
}
|
|
2110
2115
|
}
|
|
2111
|
-
function
|
|
2116
|
+
function Gr(e) {
|
|
2112
2117
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
2113
2118
|
var t = e[Symbol.asyncIterator], r;
|
|
2114
|
-
return t ? t.call(e) : (e = typeof
|
|
2119
|
+
return t ? t.call(e) : (e = typeof de == "function" ? de(e) : e[Symbol.iterator](), r = {}, n("next"), n("throw"), n("return"), r[Symbol.asyncIterator] = function() {
|
|
2115
2120
|
return this;
|
|
2116
2121
|
}, r);
|
|
2117
2122
|
function n(o) {
|
|
@@ -2130,13 +2135,13 @@ function Hr(e) {
|
|
|
2130
2135
|
function A(e) {
|
|
2131
2136
|
return typeof e == "function";
|
|
2132
2137
|
}
|
|
2133
|
-
function
|
|
2138
|
+
function Ct(e) {
|
|
2134
2139
|
var t = function(n) {
|
|
2135
2140
|
Error.call(n), n.stack = new Error().stack;
|
|
2136
2141
|
}, r = e(t);
|
|
2137
2142
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
2138
2143
|
}
|
|
2139
|
-
var Le =
|
|
2144
|
+
var Le = Ct(function(e) {
|
|
2140
2145
|
return function(r) {
|
|
2141
2146
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
2142
2147
|
` + r.map(function(n, i) {
|
|
@@ -2163,7 +2168,7 @@ var $e = function() {
|
|
|
2163
2168
|
if (s)
|
|
2164
2169
|
if (this._parentage = null, Array.isArray(s))
|
|
2165
2170
|
try {
|
|
2166
|
-
for (var c =
|
|
2171
|
+
for (var c = de(s), d = c.next(); !d.done; d = c.next()) {
|
|
2167
2172
|
var f = d.value;
|
|
2168
2173
|
f.remove(this);
|
|
2169
2174
|
}
|
|
@@ -2189,19 +2194,19 @@ var $e = function() {
|
|
|
2189
2194
|
if (M) {
|
|
2190
2195
|
this._finalizers = null;
|
|
2191
2196
|
try {
|
|
2192
|
-
for (var
|
|
2197
|
+
for (var k = de(M), O = k.next(); !O.done; O = k.next()) {
|
|
2193
2198
|
var x = O.value;
|
|
2194
2199
|
try {
|
|
2195
|
-
|
|
2200
|
+
Ot(x);
|
|
2196
2201
|
} catch (S) {
|
|
2197
|
-
o = o ?? [], S instanceof Le ? o = ye(ye([],
|
|
2202
|
+
o = o ?? [], S instanceof Le ? o = ye(ye([], he(o)), he(S.errors)) : o.push(S);
|
|
2198
2203
|
}
|
|
2199
2204
|
}
|
|
2200
2205
|
} catch (S) {
|
|
2201
2206
|
n = { error: S };
|
|
2202
2207
|
} finally {
|
|
2203
2208
|
try {
|
|
2204
|
-
O && !O.done && (i =
|
|
2209
|
+
O && !O.done && (i = k.return) && i.call(k);
|
|
2205
2210
|
} finally {
|
|
2206
2211
|
if (n) throw n.error;
|
|
2207
2212
|
}
|
|
@@ -2214,7 +2219,7 @@ var $e = function() {
|
|
|
2214
2219
|
var r;
|
|
2215
2220
|
if (t && t !== this)
|
|
2216
2221
|
if (this.closed)
|
|
2217
|
-
|
|
2222
|
+
Ot(t);
|
|
2218
2223
|
else {
|
|
2219
2224
|
if (t instanceof e) {
|
|
2220
2225
|
if (t.closed || t._hasParent(this))
|
|
@@ -2239,37 +2244,37 @@ var $e = function() {
|
|
|
2239
2244
|
var t = new e();
|
|
2240
2245
|
return t.closed = !0, t;
|
|
2241
2246
|
}(), e;
|
|
2242
|
-
}(),
|
|
2243
|
-
function
|
|
2247
|
+
}(), zt = $e.EMPTY;
|
|
2248
|
+
function Dt(e) {
|
|
2244
2249
|
return e instanceof $e || e && "closed" in e && A(e.remove) && A(e.add) && A(e.unsubscribe);
|
|
2245
2250
|
}
|
|
2246
|
-
function
|
|
2251
|
+
function Ot(e) {
|
|
2247
2252
|
A(e) ? e() : e.unsubscribe();
|
|
2248
2253
|
}
|
|
2249
|
-
var
|
|
2254
|
+
var Ft = {
|
|
2250
2255
|
onUnhandledError: null,
|
|
2251
2256
|
onStoppedNotification: null,
|
|
2252
2257
|
Promise: void 0,
|
|
2253
2258
|
useDeprecatedSynchronousErrorHandling: !1,
|
|
2254
2259
|
useDeprecatedNextContext: !1
|
|
2255
|
-
},
|
|
2260
|
+
}, qt = {
|
|
2256
2261
|
setTimeout: function(e, t) {
|
|
2257
2262
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
2258
2263
|
r[n - 2] = arguments[n];
|
|
2259
|
-
return setTimeout.apply(void 0, ye([e, t],
|
|
2264
|
+
return setTimeout.apply(void 0, ye([e, t], he(r)));
|
|
2260
2265
|
},
|
|
2261
2266
|
clearTimeout: function(e) {
|
|
2262
|
-
var t =
|
|
2267
|
+
var t = qt.delegate;
|
|
2263
2268
|
return ((t == null ? void 0 : t.clearTimeout) || clearTimeout)(e);
|
|
2264
2269
|
},
|
|
2265
2270
|
delegate: void 0
|
|
2266
2271
|
};
|
|
2267
|
-
function
|
|
2268
|
-
|
|
2272
|
+
function Lt(e) {
|
|
2273
|
+
qt.setTimeout(function() {
|
|
2269
2274
|
throw e;
|
|
2270
2275
|
});
|
|
2271
2276
|
}
|
|
2272
|
-
function
|
|
2277
|
+
function Rt() {
|
|
2273
2278
|
}
|
|
2274
2279
|
function ke(e) {
|
|
2275
2280
|
e();
|
|
@@ -2278,7 +2283,7 @@ var Qe = function(e) {
|
|
|
2278
2283
|
me(t, e);
|
|
2279
2284
|
function t(r) {
|
|
2280
2285
|
var n = e.call(this) || this;
|
|
2281
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
2286
|
+
return n.isStopped = !1, r ? (n.destination = r, Dt(r) && r.add(n)) : n.destination = Jr, n;
|
|
2282
2287
|
}
|
|
2283
2288
|
return t.create = function(r, n, i) {
|
|
2284
2289
|
return new be(r, n, i);
|
|
@@ -2305,11 +2310,11 @@ var Qe = function(e) {
|
|
|
2305
2310
|
this.unsubscribe();
|
|
2306
2311
|
}
|
|
2307
2312
|
}, t;
|
|
2308
|
-
}($e),
|
|
2313
|
+
}($e), Br = Function.prototype.bind;
|
|
2309
2314
|
function Ne(e, t) {
|
|
2310
|
-
return
|
|
2315
|
+
return Br.call(e, t);
|
|
2311
2316
|
}
|
|
2312
|
-
var
|
|
2317
|
+
var Ur = function() {
|
|
2313
2318
|
function e(t) {
|
|
2314
2319
|
this.partialObserver = t;
|
|
2315
2320
|
}
|
|
@@ -2319,7 +2324,7 @@ var Br = function() {
|
|
|
2319
2324
|
try {
|
|
2320
2325
|
r.next(t);
|
|
2321
2326
|
} catch (n) {
|
|
2322
|
-
|
|
2327
|
+
Re(n);
|
|
2323
2328
|
}
|
|
2324
2329
|
}, e.prototype.error = function(t) {
|
|
2325
2330
|
var r = this.partialObserver;
|
|
@@ -2327,17 +2332,17 @@ var Br = function() {
|
|
|
2327
2332
|
try {
|
|
2328
2333
|
r.error(t);
|
|
2329
2334
|
} catch (n) {
|
|
2330
|
-
|
|
2335
|
+
Re(n);
|
|
2331
2336
|
}
|
|
2332
2337
|
else
|
|
2333
|
-
|
|
2338
|
+
Re(t);
|
|
2334
2339
|
}, e.prototype.complete = function() {
|
|
2335
2340
|
var t = this.partialObserver;
|
|
2336
2341
|
if (t.complete)
|
|
2337
2342
|
try {
|
|
2338
2343
|
t.complete();
|
|
2339
2344
|
} catch (r) {
|
|
2340
|
-
|
|
2345
|
+
Re(r);
|
|
2341
2346
|
}
|
|
2342
2347
|
}, e;
|
|
2343
2348
|
}(), be = function(e) {
|
|
@@ -2352,7 +2357,7 @@ var Br = function() {
|
|
|
2352
2357
|
};
|
|
2353
2358
|
else {
|
|
2354
2359
|
var c;
|
|
2355
|
-
o &&
|
|
2360
|
+
o && Ft.useDeprecatedNextContext ? (c = Object.create(r), c.unsubscribe = function() {
|
|
2356
2361
|
return o.unsubscribe();
|
|
2357
2362
|
}, s = {
|
|
2358
2363
|
next: r.next && Ne(r.next, c),
|
|
@@ -2360,29 +2365,29 @@ var Br = function() {
|
|
|
2360
2365
|
complete: r.complete && Ne(r.complete, c)
|
|
2361
2366
|
}) : s = r;
|
|
2362
2367
|
}
|
|
2363
|
-
return o.destination = new
|
|
2368
|
+
return o.destination = new Ur(s), o;
|
|
2364
2369
|
}
|
|
2365
2370
|
return t;
|
|
2366
2371
|
}(Qe);
|
|
2367
|
-
function
|
|
2368
|
-
|
|
2372
|
+
function Re(e) {
|
|
2373
|
+
Lt(e);
|
|
2369
2374
|
}
|
|
2370
|
-
function
|
|
2375
|
+
function Vr(e) {
|
|
2371
2376
|
throw e;
|
|
2372
2377
|
}
|
|
2373
|
-
var
|
|
2378
|
+
var Jr = {
|
|
2374
2379
|
closed: !0,
|
|
2375
|
-
next:
|
|
2376
|
-
error:
|
|
2377
|
-
complete:
|
|
2380
|
+
next: Rt,
|
|
2381
|
+
error: Vr,
|
|
2382
|
+
complete: Rt
|
|
2378
2383
|
}, Xe = function() {
|
|
2379
2384
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
2380
2385
|
}();
|
|
2381
|
-
function
|
|
2386
|
+
function Zr(e) {
|
|
2382
2387
|
return e;
|
|
2383
2388
|
}
|
|
2384
|
-
function
|
|
2385
|
-
return e.length === 0 ?
|
|
2389
|
+
function Yr(e) {
|
|
2390
|
+
return e.length === 0 ? Zr : e.length === 1 ? e[0] : function(r) {
|
|
2386
2391
|
return e.reduce(function(n, i) {
|
|
2387
2392
|
return i(n);
|
|
2388
2393
|
}, r);
|
|
@@ -2396,7 +2401,7 @@ var K = function() {
|
|
|
2396
2401
|
var r = new e();
|
|
2397
2402
|
return r.source = this, r.operator = t, r;
|
|
2398
2403
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
2399
|
-
var i = this, o =
|
|
2404
|
+
var i = this, o = Xr(t) ? t : new be(t, r, n);
|
|
2400
2405
|
return ke(function() {
|
|
2401
2406
|
var s = i, c = s.operator, d = s.source;
|
|
2402
2407
|
o.add(c ? c.call(o, d) : d ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -2431,7 +2436,7 @@ var K = function() {
|
|
|
2431
2436
|
}, e.prototype.pipe = function() {
|
|
2432
2437
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
2433
2438
|
t[r] = arguments[r];
|
|
2434
|
-
return
|
|
2439
|
+
return Yr(t)(this);
|
|
2435
2440
|
}, e.prototype.toPromise = function(t) {
|
|
2436
2441
|
var r = this;
|
|
2437
2442
|
return t = Tt(t), new t(function(n, i) {
|
|
@@ -2450,20 +2455,20 @@ var K = function() {
|
|
|
2450
2455
|
}();
|
|
2451
2456
|
function Tt(e) {
|
|
2452
2457
|
var t;
|
|
2453
|
-
return (t = e ??
|
|
2454
|
-
}
|
|
2455
|
-
function Yr(e) {
|
|
2456
|
-
return e && A(e.next) && A(e.error) && A(e.complete);
|
|
2458
|
+
return (t = e ?? Ft.Promise) !== null && t !== void 0 ? t : Promise;
|
|
2457
2459
|
}
|
|
2458
2460
|
function Qr(e) {
|
|
2459
|
-
return e && e
|
|
2461
|
+
return e && A(e.next) && A(e.error) && A(e.complete);
|
|
2460
2462
|
}
|
|
2461
2463
|
function Xr(e) {
|
|
2464
|
+
return e && e instanceof Qe || Qr(e) && Dt(e);
|
|
2465
|
+
}
|
|
2466
|
+
function Kr(e) {
|
|
2462
2467
|
return A(e == null ? void 0 : e.lift);
|
|
2463
2468
|
}
|
|
2464
2469
|
function je(e) {
|
|
2465
2470
|
return function(t) {
|
|
2466
|
-
if (
|
|
2471
|
+
if (Kr(t))
|
|
2467
2472
|
return t.lift(function(r) {
|
|
2468
2473
|
try {
|
|
2469
2474
|
return e(r, this);
|
|
@@ -2475,9 +2480,9 @@ function je(e) {
|
|
|
2475
2480
|
};
|
|
2476
2481
|
}
|
|
2477
2482
|
function xe(e, t, r, n, i) {
|
|
2478
|
-
return new
|
|
2483
|
+
return new en(e, t, r, n, i);
|
|
2479
2484
|
}
|
|
2480
|
-
var
|
|
2485
|
+
var en = function(e) {
|
|
2481
2486
|
me(t, e);
|
|
2482
2487
|
function t(r, n, i, o, s, c) {
|
|
2483
2488
|
var d = e.call(this, r) || this;
|
|
@@ -2512,22 +2517,22 @@ var Kr = function(e) {
|
|
|
2512
2517
|
e.prototype.unsubscribe.call(this), !n && ((r = this.onFinalize) === null || r === void 0 || r.call(this));
|
|
2513
2518
|
}
|
|
2514
2519
|
}, t;
|
|
2515
|
-
}(Qe),
|
|
2520
|
+
}(Qe), tn = Ct(function(e) {
|
|
2516
2521
|
return function() {
|
|
2517
2522
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
2518
2523
|
};
|
|
2519
|
-
}),
|
|
2524
|
+
}), Nt = function(e) {
|
|
2520
2525
|
me(t, e);
|
|
2521
2526
|
function t() {
|
|
2522
2527
|
var r = e.call(this) || this;
|
|
2523
2528
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
2524
2529
|
}
|
|
2525
2530
|
return t.prototype.lift = function(r) {
|
|
2526
|
-
var n = new
|
|
2531
|
+
var n = new Pt(this, this);
|
|
2527
2532
|
return n.operator = r, n;
|
|
2528
2533
|
}, t.prototype._throwIfClosed = function() {
|
|
2529
2534
|
if (this.closed)
|
|
2530
|
-
throw new
|
|
2535
|
+
throw new tn();
|
|
2531
2536
|
}, t.prototype.next = function(r) {
|
|
2532
2537
|
var n = this;
|
|
2533
2538
|
ke(function() {
|
|
@@ -2535,7 +2540,7 @@ var Kr = function(e) {
|
|
|
2535
2540
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
2536
2541
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
2537
2542
|
try {
|
|
2538
|
-
for (var s =
|
|
2543
|
+
for (var s = de(n.currentObservers), c = s.next(); !c.done; c = s.next()) {
|
|
2539
2544
|
var d = c.value;
|
|
2540
2545
|
d.next(r);
|
|
2541
2546
|
}
|
|
@@ -2583,7 +2588,7 @@ var Kr = function(e) {
|
|
|
2583
2588
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
2584
2589
|
}, t.prototype._innerSubscribe = function(r) {
|
|
2585
2590
|
var n = this, i = this, o = i.hasError, s = i.isStopped, c = i.observers;
|
|
2586
|
-
return o || s ?
|
|
2591
|
+
return o || s ? zt : (this.currentObservers = null, c.push(r), new $e(function() {
|
|
2587
2592
|
n.currentObservers = null, Je(c, r);
|
|
2588
2593
|
}));
|
|
2589
2594
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
@@ -2593,9 +2598,9 @@ var Kr = function(e) {
|
|
|
2593
2598
|
var r = new K();
|
|
2594
2599
|
return r.source = this, r;
|
|
2595
2600
|
}, t.create = function(r, n) {
|
|
2596
|
-
return new
|
|
2601
|
+
return new Pt(r, n);
|
|
2597
2602
|
}, t;
|
|
2598
|
-
}(K),
|
|
2603
|
+
}(K), Pt = function(e) {
|
|
2599
2604
|
me(t, e);
|
|
2600
2605
|
function t(r, n) {
|
|
2601
2606
|
var i = e.call(this) || this;
|
|
@@ -2612,47 +2617,47 @@ var Kr = function(e) {
|
|
|
2612
2617
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
2613
2618
|
}, t.prototype._subscribe = function(r) {
|
|
2614
2619
|
var n, i;
|
|
2615
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
2620
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : zt;
|
|
2616
2621
|
}, t;
|
|
2617
|
-
}(
|
|
2622
|
+
}(Nt), Wt = function(e) {
|
|
2618
2623
|
return e && typeof e.length == "number" && typeof e != "function";
|
|
2619
2624
|
};
|
|
2620
|
-
function
|
|
2625
|
+
function rn(e) {
|
|
2621
2626
|
return A(e == null ? void 0 : e.then);
|
|
2622
2627
|
}
|
|
2623
|
-
function
|
|
2628
|
+
function nn(e) {
|
|
2624
2629
|
return A(e[Xe]);
|
|
2625
2630
|
}
|
|
2626
|
-
function
|
|
2631
|
+
function on(e) {
|
|
2627
2632
|
return Symbol.asyncIterator && A(e == null ? void 0 : e[Symbol.asyncIterator]);
|
|
2628
2633
|
}
|
|
2629
|
-
function
|
|
2634
|
+
function sn(e) {
|
|
2630
2635
|
return new TypeError("You provided " + (e !== null && typeof e == "object" ? "an invalid object" : "'" + e + "'") + " where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.");
|
|
2631
2636
|
}
|
|
2632
|
-
function
|
|
2637
|
+
function an() {
|
|
2633
2638
|
return typeof Symbol != "function" || !Symbol.iterator ? "@@iterator" : Symbol.iterator;
|
|
2634
2639
|
}
|
|
2635
|
-
var
|
|
2636
|
-
function un(e) {
|
|
2637
|
-
return A(e == null ? void 0 : e[an]);
|
|
2638
|
-
}
|
|
2640
|
+
var un = an();
|
|
2639
2641
|
function cn(e) {
|
|
2640
|
-
return
|
|
2642
|
+
return A(e == null ? void 0 : e[un]);
|
|
2643
|
+
}
|
|
2644
|
+
function fn(e) {
|
|
2645
|
+
return Hr(this, arguments, function() {
|
|
2641
2646
|
var r, n, i, o;
|
|
2642
|
-
return
|
|
2647
|
+
return At(this, function(s) {
|
|
2643
2648
|
switch (s.label) {
|
|
2644
2649
|
case 0:
|
|
2645
2650
|
r = e.getReader(), s.label = 1;
|
|
2646
2651
|
case 1:
|
|
2647
2652
|
s.trys.push([1, , 9, 10]), s.label = 2;
|
|
2648
2653
|
case 2:
|
|
2649
|
-
return [4,
|
|
2654
|
+
return [4, le(r.read())];
|
|
2650
2655
|
case 3:
|
|
2651
|
-
return n = s.sent(), i = n.value, o = n.done, o ? [4,
|
|
2656
|
+
return n = s.sent(), i = n.value, o = n.done, o ? [4, le(void 0)] : [3, 5];
|
|
2652
2657
|
case 4:
|
|
2653
2658
|
return [2, s.sent()];
|
|
2654
2659
|
case 5:
|
|
2655
|
-
return [4,
|
|
2660
|
+
return [4, le(i)];
|
|
2656
2661
|
case 6:
|
|
2657
2662
|
return [4, s.sent()];
|
|
2658
2663
|
case 7:
|
|
@@ -2667,29 +2672,29 @@ function cn(e) {
|
|
|
2667
2672
|
});
|
|
2668
2673
|
});
|
|
2669
2674
|
}
|
|
2670
|
-
function
|
|
2675
|
+
function ln(e) {
|
|
2671
2676
|
return A(e == null ? void 0 : e.getReader);
|
|
2672
2677
|
}
|
|
2673
2678
|
function we(e) {
|
|
2674
2679
|
if (e instanceof K)
|
|
2675
2680
|
return e;
|
|
2676
2681
|
if (e != null) {
|
|
2677
|
-
if (
|
|
2678
|
-
return ln(e);
|
|
2679
|
-
if (Nt(e))
|
|
2682
|
+
if (nn(e))
|
|
2680
2683
|
return dn(e);
|
|
2681
|
-
if (
|
|
2684
|
+
if (Wt(e))
|
|
2682
2685
|
return hn(e);
|
|
2683
|
-
if (
|
|
2684
|
-
return Wt(e);
|
|
2685
|
-
if (un(e))
|
|
2686
|
+
if (rn(e))
|
|
2686
2687
|
return pn(e);
|
|
2687
|
-
if (
|
|
2688
|
+
if (on(e))
|
|
2689
|
+
return Ht(e);
|
|
2690
|
+
if (cn(e))
|
|
2688
2691
|
return vn(e);
|
|
2692
|
+
if (ln(e))
|
|
2693
|
+
return yn(e);
|
|
2689
2694
|
}
|
|
2690
|
-
throw
|
|
2695
|
+
throw sn(e);
|
|
2691
2696
|
}
|
|
2692
|
-
function
|
|
2697
|
+
function dn(e) {
|
|
2693
2698
|
return new K(function(t) {
|
|
2694
2699
|
var r = e[Xe]();
|
|
2695
2700
|
if (A(r.subscribe))
|
|
@@ -2697,27 +2702,27 @@ function ln(e) {
|
|
|
2697
2702
|
throw new TypeError("Provided object does not correctly implement Symbol.observable");
|
|
2698
2703
|
});
|
|
2699
2704
|
}
|
|
2700
|
-
function
|
|
2705
|
+
function hn(e) {
|
|
2701
2706
|
return new K(function(t) {
|
|
2702
2707
|
for (var r = 0; r < e.length && !t.closed; r++)
|
|
2703
2708
|
t.next(e[r]);
|
|
2704
2709
|
t.complete();
|
|
2705
2710
|
});
|
|
2706
2711
|
}
|
|
2707
|
-
function
|
|
2712
|
+
function pn(e) {
|
|
2708
2713
|
return new K(function(t) {
|
|
2709
2714
|
e.then(function(r) {
|
|
2710
2715
|
t.closed || (t.next(r), t.complete());
|
|
2711
2716
|
}, function(r) {
|
|
2712
2717
|
return t.error(r);
|
|
2713
|
-
}).then(null,
|
|
2718
|
+
}).then(null, Lt);
|
|
2714
2719
|
});
|
|
2715
2720
|
}
|
|
2716
|
-
function
|
|
2721
|
+
function vn(e) {
|
|
2717
2722
|
return new K(function(t) {
|
|
2718
2723
|
var r, n;
|
|
2719
2724
|
try {
|
|
2720
|
-
for (var i =
|
|
2725
|
+
for (var i = de(e), o = i.next(); !o.done; o = i.next()) {
|
|
2721
2726
|
var s = o.value;
|
|
2722
2727
|
if (t.next(s), t.closed)
|
|
2723
2728
|
return;
|
|
@@ -2734,24 +2739,24 @@ function pn(e) {
|
|
|
2734
2739
|
t.complete();
|
|
2735
2740
|
});
|
|
2736
2741
|
}
|
|
2737
|
-
function
|
|
2742
|
+
function Ht(e) {
|
|
2738
2743
|
return new K(function(t) {
|
|
2739
|
-
|
|
2744
|
+
bn(e, t).catch(function(r) {
|
|
2740
2745
|
return t.error(r);
|
|
2741
2746
|
});
|
|
2742
2747
|
});
|
|
2743
2748
|
}
|
|
2744
|
-
function
|
|
2745
|
-
return
|
|
2749
|
+
function yn(e) {
|
|
2750
|
+
return Ht(fn(e));
|
|
2746
2751
|
}
|
|
2747
|
-
function
|
|
2752
|
+
function bn(e, t) {
|
|
2748
2753
|
var r, n, i, o;
|
|
2749
|
-
return
|
|
2754
|
+
return Wr(this, void 0, void 0, function() {
|
|
2750
2755
|
var s, c;
|
|
2751
|
-
return
|
|
2756
|
+
return At(this, function(d) {
|
|
2752
2757
|
switch (d.label) {
|
|
2753
2758
|
case 0:
|
|
2754
|
-
d.trys.push([0, 5, 6, 11]), r =
|
|
2759
|
+
d.trys.push([0, 5, 6, 11]), r = Gr(e), d.label = 1;
|
|
2755
2760
|
case 1:
|
|
2756
2761
|
return [4, r.next()];
|
|
2757
2762
|
case 2:
|
|
@@ -2782,7 +2787,7 @@ function yn(e, t) {
|
|
|
2782
2787
|
});
|
|
2783
2788
|
});
|
|
2784
2789
|
}
|
|
2785
|
-
function
|
|
2790
|
+
function Gt(e, t) {
|
|
2786
2791
|
return je(function(r, n) {
|
|
2787
2792
|
var i = 0;
|
|
2788
2793
|
r.subscribe(xe(n, function(o) {
|
|
@@ -2790,29 +2795,29 @@ function Ht(e, t) {
|
|
|
2790
2795
|
}));
|
|
2791
2796
|
});
|
|
2792
2797
|
}
|
|
2793
|
-
var
|
|
2794
|
-
function
|
|
2795
|
-
return
|
|
2798
|
+
var mn = Array.isArray;
|
|
2799
|
+
function wn(e, t) {
|
|
2800
|
+
return mn(t) ? e.apply(void 0, ye([], he(t))) : e(t);
|
|
2796
2801
|
}
|
|
2797
|
-
function
|
|
2798
|
-
return
|
|
2799
|
-
return
|
|
2802
|
+
function gn(e) {
|
|
2803
|
+
return Gt(function(t) {
|
|
2804
|
+
return wn(e, t);
|
|
2800
2805
|
});
|
|
2801
2806
|
}
|
|
2802
|
-
function
|
|
2803
|
-
var d = [], f = 0, b = 0, M = !1,
|
|
2807
|
+
function _n(e, t, r, n, i, o, s, c) {
|
|
2808
|
+
var d = [], f = 0, b = 0, M = !1, k = function() {
|
|
2804
2809
|
M && !d.length && !f && t.complete();
|
|
2805
2810
|
}, O = function(S) {
|
|
2806
2811
|
return f < n ? x(S) : d.push(S);
|
|
2807
2812
|
}, x = function(S) {
|
|
2808
2813
|
f++;
|
|
2809
|
-
var
|
|
2814
|
+
var T = !1;
|
|
2810
2815
|
we(r(S, b++)).subscribe(xe(t, function(q) {
|
|
2811
2816
|
t.next(q);
|
|
2812
2817
|
}, function() {
|
|
2813
|
-
|
|
2818
|
+
T = !0;
|
|
2814
2819
|
}, void 0, function() {
|
|
2815
|
-
if (
|
|
2820
|
+
if (T)
|
|
2816
2821
|
try {
|
|
2817
2822
|
f--;
|
|
2818
2823
|
for (var q = function() {
|
|
@@ -2820,38 +2825,38 @@ function gn(e, t, r, n, i, o, s, c) {
|
|
|
2820
2825
|
s || x(G);
|
|
2821
2826
|
}; d.length && f < n; )
|
|
2822
2827
|
q();
|
|
2823
|
-
|
|
2828
|
+
k();
|
|
2824
2829
|
} catch (G) {
|
|
2825
2830
|
t.error(G);
|
|
2826
2831
|
}
|
|
2827
2832
|
}));
|
|
2828
2833
|
};
|
|
2829
2834
|
return e.subscribe(xe(t, O, function() {
|
|
2830
|
-
M = !0,
|
|
2835
|
+
M = !0, k();
|
|
2831
2836
|
})), function() {
|
|
2832
2837
|
};
|
|
2833
2838
|
}
|
|
2834
|
-
function
|
|
2835
|
-
return r === void 0 && (r = 1 / 0), A(t) ?
|
|
2836
|
-
return
|
|
2839
|
+
function Bt(e, t, r) {
|
|
2840
|
+
return r === void 0 && (r = 1 / 0), A(t) ? Bt(function(n, i) {
|
|
2841
|
+
return Gt(function(o, s) {
|
|
2837
2842
|
return t(n, o, i, s);
|
|
2838
2843
|
})(we(e(n, i)));
|
|
2839
2844
|
}, r) : (typeof t == "number" && (r = t), je(function(n, i) {
|
|
2840
|
-
return
|
|
2845
|
+
return _n(n, i, e, r);
|
|
2841
2846
|
}));
|
|
2842
2847
|
}
|
|
2843
|
-
var
|
|
2844
|
-
function
|
|
2848
|
+
var Sn = ["addListener", "removeListener"], Mn = ["addEventListener", "removeEventListener"], En = ["on", "off"];
|
|
2849
|
+
function kt(e, t, r, n) {
|
|
2845
2850
|
if (A(r) && (n = r, r = void 0), n)
|
|
2846
|
-
return
|
|
2847
|
-
var i =
|
|
2851
|
+
return kt(e, t, r).pipe(gn(n));
|
|
2852
|
+
var i = he(Tn(e) ? Mn.map(function(c) {
|
|
2848
2853
|
return function(d) {
|
|
2849
2854
|
return e[c](t, d, r);
|
|
2850
2855
|
};
|
|
2851
|
-
}) :
|
|
2852
|
-
if (!o &&
|
|
2853
|
-
return
|
|
2854
|
-
return
|
|
2856
|
+
}) : On(e) ? Sn.map(It(e, t)) : Rn(e) ? En.map(It(e, t)) : [], 2), o = i[0], s = i[1];
|
|
2857
|
+
if (!o && Wt(e))
|
|
2858
|
+
return Bt(function(c) {
|
|
2859
|
+
return kt(c, t, r);
|
|
2855
2860
|
})(we(e));
|
|
2856
2861
|
if (!o)
|
|
2857
2862
|
throw new TypeError("Invalid event target");
|
|
@@ -2866,23 +2871,23 @@ function Pt(e, t, r, n) {
|
|
|
2866
2871
|
};
|
|
2867
2872
|
});
|
|
2868
2873
|
}
|
|
2869
|
-
function
|
|
2874
|
+
function It(e, t) {
|
|
2870
2875
|
return function(r) {
|
|
2871
2876
|
return function(n) {
|
|
2872
2877
|
return e[r](t, n);
|
|
2873
2878
|
};
|
|
2874
2879
|
};
|
|
2875
2880
|
}
|
|
2876
|
-
function
|
|
2881
|
+
function On(e) {
|
|
2877
2882
|
return A(e.addListener) && A(e.removeListener);
|
|
2878
2883
|
}
|
|
2879
|
-
function
|
|
2884
|
+
function Rn(e) {
|
|
2880
2885
|
return A(e.on) && A(e.off);
|
|
2881
2886
|
}
|
|
2882
2887
|
function Tn(e) {
|
|
2883
2888
|
return A(e.addEventListener) && A(e.removeEventListener);
|
|
2884
2889
|
}
|
|
2885
|
-
function
|
|
2890
|
+
function Kn(e, t) {
|
|
2886
2891
|
return je(function(r, n) {
|
|
2887
2892
|
var i = 0;
|
|
2888
2893
|
r.subscribe(xe(n, function(o) {
|
|
@@ -2890,23 +2895,23 @@ function Xn(e, t) {
|
|
|
2890
2895
|
}));
|
|
2891
2896
|
});
|
|
2892
2897
|
}
|
|
2893
|
-
function
|
|
2898
|
+
function ei(e) {
|
|
2894
2899
|
e === void 0 && (e = {});
|
|
2895
2900
|
var t = e.connector, r = t === void 0 ? function() {
|
|
2896
|
-
return new
|
|
2901
|
+
return new Nt();
|
|
2897
2902
|
} : t, n = e.resetOnError, i = n === void 0 ? !0 : n, o = e.resetOnComplete, s = o === void 0 ? !0 : o, c = e.resetOnRefCountZero, d = c === void 0 ? !0 : c;
|
|
2898
2903
|
return function(f) {
|
|
2899
|
-
var b, M,
|
|
2904
|
+
var b, M, k, O = 0, x = !1, S = !1, T = function() {
|
|
2900
2905
|
M == null || M.unsubscribe(), M = void 0;
|
|
2901
2906
|
}, q = function() {
|
|
2902
|
-
|
|
2907
|
+
T(), b = k = void 0, x = S = !1;
|
|
2903
2908
|
}, G = function() {
|
|
2904
2909
|
var B = b;
|
|
2905
2910
|
q(), B == null || B.unsubscribe();
|
|
2906
2911
|
};
|
|
2907
2912
|
return je(function(B, ee) {
|
|
2908
|
-
O++, !S && !x &&
|
|
2909
|
-
var te =
|
|
2913
|
+
O++, !S && !x && T();
|
|
2914
|
+
var te = k = k ?? r();
|
|
2910
2915
|
ee.add(function() {
|
|
2911
2916
|
O--, O === 0 && !S && !x && (M = We(G, d));
|
|
2912
2917
|
}), te.subscribe(ee), !b && O > 0 && (b = new be({
|
|
@@ -2914,10 +2919,10 @@ function Kn(e) {
|
|
|
2914
2919
|
return te.next(U);
|
|
2915
2920
|
},
|
|
2916
2921
|
error: function(U) {
|
|
2917
|
-
S = !0,
|
|
2922
|
+
S = !0, T(), M = We(q, i, U), te.error(U);
|
|
2918
2923
|
},
|
|
2919
2924
|
complete: function() {
|
|
2920
|
-
x = !0,
|
|
2925
|
+
x = !0, T(), M = We(q, s), te.complete();
|
|
2921
2926
|
}
|
|
2922
2927
|
}), we(B).subscribe(b));
|
|
2923
2928
|
})(f);
|
|
@@ -2936,10 +2941,10 @@ function We(e, t) {
|
|
|
2936
2941
|
i.unsubscribe(), e();
|
|
2937
2942
|
}
|
|
2938
2943
|
});
|
|
2939
|
-
return we(t.apply(void 0, ye([],
|
|
2944
|
+
return we(t.apply(void 0, ye([], he(r)))).subscribe(i);
|
|
2940
2945
|
}
|
|
2941
2946
|
}
|
|
2942
|
-
class
|
|
2947
|
+
class ti extends fr {
|
|
2943
2948
|
/**
|
|
2944
2949
|
* Constructs a new font loader.
|
|
2945
2950
|
*
|
|
@@ -2958,7 +2963,7 @@ class ei extends cr {
|
|
|
2958
2963
|
* @param {onErrorCallback} onError - Executed when errors occur.
|
|
2959
2964
|
*/
|
|
2960
2965
|
load(t, r, n, i) {
|
|
2961
|
-
const o = this, s = new
|
|
2966
|
+
const o = this, s = new lr(this.manager);
|
|
2962
2967
|
s.setPath(this.path), s.setRequestHeader(this.requestHeader), s.setWithCredentials(this.withCredentials), s.load(t, function(c) {
|
|
2963
2968
|
const d = o.parse(JSON.parse(c));
|
|
2964
2969
|
r && r(d);
|
|
@@ -2971,10 +2976,10 @@ class ei extends cr {
|
|
|
2971
2976
|
* @return {Font} The font.
|
|
2972
2977
|
*/
|
|
2973
2978
|
parse(t) {
|
|
2974
|
-
return new
|
|
2979
|
+
return new Pn(t);
|
|
2975
2980
|
}
|
|
2976
2981
|
}
|
|
2977
|
-
class
|
|
2982
|
+
class Pn {
|
|
2978
2983
|
/**
|
|
2979
2984
|
* Constructs a new font.
|
|
2980
2985
|
*
|
|
@@ -2989,102 +2994,104 @@ class Rn {
|
|
|
2989
2994
|
*
|
|
2990
2995
|
* @param {string} text - The text.
|
|
2991
2996
|
* @param {number} [size=100] - The text size.
|
|
2997
|
+
* @param {string} [direction='ltr'] - Char direction: ltr(left to right), rtl(right to left) & tb(top bottom).
|
|
2992
2998
|
* @return {Array<Shape>} An array of shapes representing the text.
|
|
2993
2999
|
*/
|
|
2994
|
-
generateShapes(t, r = 100) {
|
|
2995
|
-
const
|
|
2996
|
-
for (let
|
|
2997
|
-
|
|
2998
|
-
return
|
|
2999
|
-
}
|
|
3000
|
-
}
|
|
3001
|
-
function
|
|
3002
|
-
const
|
|
3003
|
-
let
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3000
|
+
generateShapes(t, r = 100, n = "ltr") {
|
|
3001
|
+
const i = [], o = kn(t, r, this.data, n);
|
|
3002
|
+
for (let s = 0, c = o.length; s < c; s++)
|
|
3003
|
+
i.push(...o[s].toShapes());
|
|
3004
|
+
return i;
|
|
3005
|
+
}
|
|
3006
|
+
}
|
|
3007
|
+
function kn(e, t, r, n) {
|
|
3008
|
+
const i = Array.from(e), o = t / r.resolution, s = (r.boundingBox.yMax - r.boundingBox.yMin + r.underlineThickness) * o, c = [];
|
|
3009
|
+
let d = 0, f = 0;
|
|
3010
|
+
(n == "rtl" || n == "tb") && i.reverse();
|
|
3011
|
+
for (let b = 0; b < i.length; b++) {
|
|
3012
|
+
const M = i[b];
|
|
3013
|
+
if (M === `
|
|
3007
3014
|
`)
|
|
3008
|
-
|
|
3015
|
+
d = 0, f -= s;
|
|
3009
3016
|
else {
|
|
3010
|
-
const
|
|
3011
|
-
|
|
3017
|
+
const k = In(M, o, d, f, r);
|
|
3018
|
+
n == "tb" ? (d = 0, f += r.ascender * o) : d += k.offsetX, c.push(k.path);
|
|
3012
3019
|
}
|
|
3013
3020
|
}
|
|
3014
|
-
return
|
|
3021
|
+
return c;
|
|
3015
3022
|
}
|
|
3016
|
-
function
|
|
3023
|
+
function In(e, t, r, n, i) {
|
|
3017
3024
|
const o = i.glyphs[e] || i.glyphs["?"];
|
|
3018
3025
|
if (!o) {
|
|
3019
3026
|
console.error('THREE.Font: character "' + e + '" does not exists in font family ' + i.familyName + ".");
|
|
3020
3027
|
return;
|
|
3021
3028
|
}
|
|
3022
|
-
const s = new
|
|
3023
|
-
let c, d, f, b, M,
|
|
3029
|
+
const s = new dr();
|
|
3030
|
+
let c, d, f, b, M, k, O, x;
|
|
3024
3031
|
if (o.o) {
|
|
3025
3032
|
const S = o._cachedOutline || (o._cachedOutline = o.o.split(" "));
|
|
3026
|
-
for (let
|
|
3027
|
-
switch (S[
|
|
3033
|
+
for (let T = 0, q = S.length; T < q; )
|
|
3034
|
+
switch (S[T++]) {
|
|
3028
3035
|
case "m":
|
|
3029
|
-
c = S[
|
|
3036
|
+
c = S[T++] * t + r, d = S[T++] * t + n, s.moveTo(c, d);
|
|
3030
3037
|
break;
|
|
3031
3038
|
case "l":
|
|
3032
|
-
c = S[
|
|
3039
|
+
c = S[T++] * t + r, d = S[T++] * t + n, s.lineTo(c, d);
|
|
3033
3040
|
break;
|
|
3034
3041
|
case "q":
|
|
3035
|
-
f = S[
|
|
3042
|
+
f = S[T++] * t + r, b = S[T++] * t + n, M = S[T++] * t + r, k = S[T++] * t + n, s.quadraticCurveTo(M, k, f, b);
|
|
3036
3043
|
break;
|
|
3037
3044
|
case "b":
|
|
3038
|
-
f = S[
|
|
3045
|
+
f = S[T++] * t + r, b = S[T++] * t + n, M = S[T++] * t + r, k = S[T++] * t + n, O = S[T++] * t + r, x = S[T++] * t + n, s.bezierCurveTo(M, k, O, x, f, b);
|
|
3039
3046
|
break;
|
|
3040
3047
|
}
|
|
3041
3048
|
}
|
|
3042
3049
|
return { offsetX: o.ha * t, path: s };
|
|
3043
3050
|
}
|
|
3044
3051
|
export {
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
|
|
3052
|
+
zn as A,
|
|
3053
|
+
Zr as B,
|
|
3054
|
+
Fn as C,
|
|
3055
|
+
hr as D,
|
|
3049
3056
|
Jn as E,
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3057
|
+
ti as F,
|
|
3058
|
+
A as G,
|
|
3059
|
+
Wn as H,
|
|
3060
|
+
Vn as I,
|
|
3061
|
+
Pn as J,
|
|
3062
|
+
jn as K,
|
|
3056
3063
|
W as L,
|
|
3057
|
-
|
|
3058
|
-
Hn as N,
|
|
3064
|
+
Gn as N,
|
|
3059
3065
|
K as O,
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3066
|
+
Cn as P,
|
|
3067
|
+
Dn as R,
|
|
3068
|
+
Nt as S,
|
|
3069
|
+
Zn as U,
|
|
3063
3070
|
ye as _,
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3071
|
+
qr as a,
|
|
3072
|
+
bt as b,
|
|
3073
|
+
gt as c,
|
|
3074
|
+
Xn as d,
|
|
3075
|
+
Dr as e,
|
|
3076
|
+
Ln as f,
|
|
3077
|
+
Nn as g,
|
|
3078
|
+
Cr as h,
|
|
3079
|
+
Yn as i,
|
|
3080
|
+
An as j,
|
|
3081
|
+
kt as k,
|
|
3082
|
+
Kn as l,
|
|
3083
|
+
Gt as m,
|
|
3084
|
+
ei as n,
|
|
3085
|
+
Un as o,
|
|
3086
|
+
qn as p,
|
|
3087
|
+
Bn as q,
|
|
3088
|
+
Fr as r,
|
|
3089
|
+
Qn as s,
|
|
3090
|
+
pr as t,
|
|
3091
|
+
vr as u,
|
|
3092
|
+
$e as v,
|
|
3093
|
+
he as w,
|
|
3094
|
+
je as x,
|
|
3095
|
+
xe as y,
|
|
3096
|
+
Hn as z
|
|
3090
3097
|
};
|