@cliquify.me/state 4.0.16 → 4.0.18
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/events.d.ts +1 -0
- package/dist/handlers/add/composition.d.ts +1 -1
- package/dist/handlers/add/custom.d.ts +2 -2
- package/dist/index.es.js +1332 -1271
- package/dist/index.umd.js +2 -2
- package/dist/utils/load-item.d.ts +30 -1
- package/package.json +3 -3
package/dist/index.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Fs = Object.defineProperty;
|
|
2
2
|
var Ls = (t, r, e) => r in t ? Fs(t, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[r] = e;
|
|
3
|
-
var
|
|
4
|
-
import { subject as
|
|
3
|
+
var Ut = (t, r, e) => Ls(t, typeof r != "symbol" ? r + "" : r, e);
|
|
4
|
+
import { subject as jt, filter as Wt, dispatch as Ns } from "@designcombo/events";
|
|
5
5
|
var bn = function(t, r) {
|
|
6
6
|
return bn = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, n) {
|
|
7
7
|
e.__proto__ = n;
|
|
@@ -9,7 +9,7 @@ var bn = function(t, r) {
|
|
|
9
9
|
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (e[i] = n[i]);
|
|
10
10
|
}, bn(t, r);
|
|
11
11
|
};
|
|
12
|
-
function
|
|
12
|
+
function er(t, r) {
|
|
13
13
|
if (typeof r != "function" && r !== null)
|
|
14
14
|
throw new TypeError("Class extends value " + String(r) + " is not a constructor or null");
|
|
15
15
|
bn(t, r);
|
|
@@ -50,7 +50,7 @@ function _n(t, r, e) {
|
|
|
50
50
|
(o || !(n in r)) && (o || (o = Array.prototype.slice.call(r, 0, n)), o[n] = r[n]);
|
|
51
51
|
return t.concat(o || Array.prototype.slice.call(r));
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function Ct(t) {
|
|
54
54
|
return typeof t == "function";
|
|
55
55
|
}
|
|
56
56
|
function as(t) {
|
|
@@ -101,10 +101,10 @@ var Ar = function() {
|
|
|
101
101
|
}
|
|
102
102
|
else
|
|
103
103
|
c.remove(this);
|
|
104
|
-
var
|
|
105
|
-
if (
|
|
104
|
+
var h = this.initialTeardown;
|
|
105
|
+
if (Ct(h))
|
|
106
106
|
try {
|
|
107
|
-
|
|
107
|
+
h();
|
|
108
108
|
} catch (k) {
|
|
109
109
|
o = k instanceof pn ? k.errors : [k];
|
|
110
110
|
}
|
|
@@ -112,10 +112,10 @@ var Ar = function() {
|
|
|
112
112
|
if (b) {
|
|
113
113
|
this._finalizers = null;
|
|
114
114
|
try {
|
|
115
|
-
for (var
|
|
116
|
-
var
|
|
115
|
+
for (var m = kn(b), I = m.next(); !I.done; I = m.next()) {
|
|
116
|
+
var _ = I.value;
|
|
117
117
|
try {
|
|
118
|
-
|
|
118
|
+
Un(_);
|
|
119
119
|
} catch (k) {
|
|
120
120
|
o = o ?? [], k instanceof pn ? o = _n(_n([], vn(o)), vn(k.errors)) : o.push(k);
|
|
121
121
|
}
|
|
@@ -124,7 +124,7 @@ var Ar = function() {
|
|
|
124
124
|
n = { error: k };
|
|
125
125
|
} finally {
|
|
126
126
|
try {
|
|
127
|
-
|
|
127
|
+
I && !I.done && (i = m.return) && i.call(m);
|
|
128
128
|
} finally {
|
|
129
129
|
if (n) throw n.error;
|
|
130
130
|
}
|
|
@@ -137,7 +137,7 @@ var Ar = function() {
|
|
|
137
137
|
var e;
|
|
138
138
|
if (r && r !== this)
|
|
139
139
|
if (this.closed)
|
|
140
|
-
|
|
140
|
+
Un(r);
|
|
141
141
|
else {
|
|
142
142
|
if (r instanceof t) {
|
|
143
143
|
if (r.closed || r._hasParent(this))
|
|
@@ -164,14 +164,14 @@ var Ar = function() {
|
|
|
164
164
|
}(), t;
|
|
165
165
|
}(), os = Ar.EMPTY;
|
|
166
166
|
function cs(t) {
|
|
167
|
-
return t instanceof Ar || t && "closed" in t &&
|
|
167
|
+
return t instanceof Ar || t && "closed" in t && Ct(t.remove) && Ct(t.add) && Ct(t.unsubscribe);
|
|
168
168
|
}
|
|
169
|
-
function
|
|
170
|
-
|
|
169
|
+
function Un(t) {
|
|
170
|
+
Ct(t) ? t() : t.unsubscribe();
|
|
171
171
|
}
|
|
172
172
|
var Hs = {
|
|
173
173
|
Promise: void 0
|
|
174
|
-
},
|
|
174
|
+
}, Us = {
|
|
175
175
|
setTimeout: function(t, r) {
|
|
176
176
|
for (var e = [], n = 2; n < arguments.length; n++)
|
|
177
177
|
e[n - 2] = arguments[n];
|
|
@@ -182,21 +182,21 @@ var Hs = {
|
|
|
182
182
|
},
|
|
183
183
|
delegate: void 0
|
|
184
184
|
};
|
|
185
|
-
function
|
|
186
|
-
|
|
185
|
+
function js(t) {
|
|
186
|
+
Us.setTimeout(function() {
|
|
187
187
|
throw t;
|
|
188
188
|
});
|
|
189
189
|
}
|
|
190
|
-
function
|
|
190
|
+
function jn() {
|
|
191
191
|
}
|
|
192
192
|
function kr(t) {
|
|
193
193
|
t();
|
|
194
194
|
}
|
|
195
195
|
var us = function(t) {
|
|
196
|
-
|
|
196
|
+
er(r, t);
|
|
197
197
|
function r(e) {
|
|
198
198
|
var n = t.call(this) || this;
|
|
199
|
-
return n.isStopped = !1, e ? (n.destination = e, cs(e) && e.add(n)) : n.destination =
|
|
199
|
+
return n.isStopped = !1, e ? (n.destination = e, cs(e) && e.add(n)) : n.destination = Ys, n;
|
|
200
200
|
}
|
|
201
201
|
return r.create = function(e, n, i) {
|
|
202
202
|
return new wn(e, n, i);
|
|
@@ -223,7 +223,7 @@ var us = function(t) {
|
|
|
223
223
|
this.unsubscribe();
|
|
224
224
|
}
|
|
225
225
|
}, r;
|
|
226
|
-
}(Ar),
|
|
226
|
+
}(Ar), Ws = function() {
|
|
227
227
|
function t(r) {
|
|
228
228
|
this.partialObserver = r;
|
|
229
229
|
}
|
|
@@ -255,29 +255,29 @@ var us = function(t) {
|
|
|
255
255
|
}
|
|
256
256
|
}, t;
|
|
257
257
|
}(), wn = function(t) {
|
|
258
|
-
|
|
258
|
+
er(r, t);
|
|
259
259
|
function r(e, n, i) {
|
|
260
260
|
var o = t.call(this) || this, c;
|
|
261
|
-
return
|
|
261
|
+
return Ct(e) || !e ? c = {
|
|
262
262
|
next: e ?? void 0,
|
|
263
263
|
error: n ?? void 0,
|
|
264
264
|
complete: i ?? void 0
|
|
265
|
-
} : c = e, o.destination = new
|
|
265
|
+
} : c = e, o.destination = new Ws(c), o;
|
|
266
266
|
}
|
|
267
267
|
return r;
|
|
268
268
|
}(us);
|
|
269
269
|
function br(t) {
|
|
270
|
-
|
|
270
|
+
js(t);
|
|
271
271
|
}
|
|
272
|
-
function
|
|
272
|
+
function Bs(t) {
|
|
273
273
|
throw t;
|
|
274
274
|
}
|
|
275
|
-
var
|
|
275
|
+
var Ys = {
|
|
276
276
|
closed: !0,
|
|
277
|
-
next:
|
|
278
|
-
error:
|
|
279
|
-
complete:
|
|
280
|
-
},
|
|
277
|
+
next: jn,
|
|
278
|
+
error: Bs,
|
|
279
|
+
complete: jn
|
|
280
|
+
}, Gs = function() {
|
|
281
281
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
282
282
|
}();
|
|
283
283
|
function Xs(t) {
|
|
@@ -290,7 +290,7 @@ function Ks(t) {
|
|
|
290
290
|
}, e);
|
|
291
291
|
};
|
|
292
292
|
}
|
|
293
|
-
var
|
|
293
|
+
var Wn = function() {
|
|
294
294
|
function t(r) {
|
|
295
295
|
r && (this._subscribe = r);
|
|
296
296
|
}
|
|
@@ -298,7 +298,7 @@ var Bn = function() {
|
|
|
298
298
|
var e = new t();
|
|
299
299
|
return e.source = this, e.operator = r, e;
|
|
300
300
|
}, t.prototype.subscribe = function(r, e, n) {
|
|
301
|
-
var i = this, o =
|
|
301
|
+
var i = this, o = qs(r) ? r : new wn(r, e, n);
|
|
302
302
|
return kr(function() {
|
|
303
303
|
var c = i, u = c.operator, d = c.source;
|
|
304
304
|
o.add(u ? u.call(o, d) : d ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -311,7 +311,7 @@ var Bn = function() {
|
|
|
311
311
|
}
|
|
312
312
|
}, t.prototype.forEach = function(r, e) {
|
|
313
313
|
var n = this;
|
|
314
|
-
return e =
|
|
314
|
+
return e = Bn(e), new e(function(i, o) {
|
|
315
315
|
var c = new wn({
|
|
316
316
|
next: function(u) {
|
|
317
317
|
try {
|
|
@@ -328,7 +328,7 @@ var Bn = function() {
|
|
|
328
328
|
}, t.prototype._subscribe = function(r) {
|
|
329
329
|
var e;
|
|
330
330
|
return (e = this.source) === null || e === void 0 ? void 0 : e.subscribe(r);
|
|
331
|
-
}, t.prototype[
|
|
331
|
+
}, t.prototype[Gs] = function() {
|
|
332
332
|
return this;
|
|
333
333
|
}, t.prototype.pipe = function() {
|
|
334
334
|
for (var r = [], e = 0; e < arguments.length; e++)
|
|
@@ -336,7 +336,7 @@ var Bn = function() {
|
|
|
336
336
|
return Ks(r)(this);
|
|
337
337
|
}, t.prototype.toPromise = function(r) {
|
|
338
338
|
var e = this;
|
|
339
|
-
return r =
|
|
339
|
+
return r = Bn(r), new r(function(n, i) {
|
|
340
340
|
var o;
|
|
341
341
|
e.subscribe(function(c) {
|
|
342
342
|
return o = c;
|
|
@@ -350,32 +350,32 @@ var Bn = function() {
|
|
|
350
350
|
return new t(r);
|
|
351
351
|
}, t;
|
|
352
352
|
}();
|
|
353
|
-
function
|
|
353
|
+
function Bn(t) {
|
|
354
354
|
var r;
|
|
355
355
|
return (r = t ?? Hs.Promise) !== null && r !== void 0 ? r : Promise;
|
|
356
356
|
}
|
|
357
357
|
function Vs(t) {
|
|
358
|
-
return t &&
|
|
358
|
+
return t && Ct(t.next) && Ct(t.error) && Ct(t.complete);
|
|
359
359
|
}
|
|
360
|
-
function
|
|
360
|
+
function qs(t) {
|
|
361
361
|
return t && t instanceof us || Vs(t) && cs(t);
|
|
362
362
|
}
|
|
363
|
-
var
|
|
363
|
+
var Js = as(function(t) {
|
|
364
364
|
return function() {
|
|
365
365
|
t(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
366
366
|
};
|
|
367
367
|
}), ls = function(t) {
|
|
368
|
-
|
|
368
|
+
er(r, t);
|
|
369
369
|
function r() {
|
|
370
370
|
var e = t.call(this) || this;
|
|
371
371
|
return e.closed = !1, e.currentObservers = null, e.observers = [], e.isStopped = !1, e.hasError = !1, e.thrownError = null, e;
|
|
372
372
|
}
|
|
373
373
|
return r.prototype.lift = function(e) {
|
|
374
|
-
var n = new
|
|
374
|
+
var n = new Yn(this, this);
|
|
375
375
|
return n.operator = e, n;
|
|
376
376
|
}, r.prototype._throwIfClosed = function() {
|
|
377
377
|
if (this.closed)
|
|
378
|
-
throw new
|
|
378
|
+
throw new Js();
|
|
379
379
|
}, r.prototype.next = function(e) {
|
|
380
380
|
var n = this;
|
|
381
381
|
kr(function() {
|
|
@@ -438,13 +438,13 @@ var qs = as(function(t) {
|
|
|
438
438
|
var n = this, i = n.hasError, o = n.thrownError, c = n.isStopped;
|
|
439
439
|
i ? e.error(o) : c && e.complete();
|
|
440
440
|
}, r.prototype.asObservable = function() {
|
|
441
|
-
var e = new
|
|
441
|
+
var e = new Wn();
|
|
442
442
|
return e.source = this, e;
|
|
443
443
|
}, r.create = function(e, n) {
|
|
444
|
-
return new
|
|
444
|
+
return new Yn(e, n);
|
|
445
445
|
}, r;
|
|
446
|
-
}(
|
|
447
|
-
|
|
446
|
+
}(Wn), Yn = function(t) {
|
|
447
|
+
er(r, t);
|
|
448
448
|
function r(e, n) {
|
|
449
449
|
var i = t.call(this) || this;
|
|
450
450
|
return i.destination = e, i.source = n, i;
|
|
@@ -462,8 +462,8 @@ var qs = as(function(t) {
|
|
|
462
462
|
var n, i;
|
|
463
463
|
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(e)) !== null && i !== void 0 ? i : os;
|
|
464
464
|
}, r;
|
|
465
|
-
}(ls),
|
|
466
|
-
|
|
465
|
+
}(ls), Gn = function(t) {
|
|
466
|
+
er(r, t);
|
|
467
467
|
function r(e) {
|
|
468
468
|
var n = t.call(this) || this;
|
|
469
469
|
return n._value = e, n;
|
|
@@ -492,88 +492,88 @@ function Cn(t) {
|
|
|
492
492
|
var vr = { exports: {} };
|
|
493
493
|
vr.exports;
|
|
494
494
|
(function(t, r) {
|
|
495
|
-
var e = 200, n = "__lodash_hash_undefined__", i = 1, o = 2, c = 9007199254740991, u = "[object Arguments]", d = "[object Array]", p = "[object AsyncFunction]",
|
|
496
|
-
$[tt] = $[
|
|
497
|
-
var
|
|
495
|
+
var e = 200, n = "__lodash_hash_undefined__", i = 1, o = 2, c = 9007199254740991, u = "[object Arguments]", d = "[object Array]", p = "[object AsyncFunction]", h = "[object Boolean]", b = "[object Date]", m = "[object Error]", I = "[object Function]", _ = "[object GeneratorFunction]", k = "[object Map]", w = "[object Number]", f = "[object Null]", y = "[object Object]", v = "[object Promise]", S = "[object Proxy]", A = "[object RegExp]", E = "[object Set]", T = "[object String]", H = "[object Symbol]", R = "[object Undefined]", V = "[object WeakMap]", x = "[object ArrayBuffer]", F = "[object DataView]", tt = "[object Float32Array]", Xt = "[object Float64Array]", Kt = "[object Int8Array]", Ie = "[object Int16Array]", be = "[object Int32Array]", ke = "[object Uint8Array]", ve = "[object Uint8ClampedArray]", z = "[object Uint16Array]", _e = "[object Uint32Array]", Se = /[\\^$.*+?()[\]{}|]/g, st = /^\[object .+?Constructor\]$/, Vt = /^(?:0|[1-9]\d*)$/, $ = {};
|
|
496
|
+
$[tt] = $[Xt] = $[Kt] = $[Ie] = $[be] = $[ke] = $[ve] = $[z] = $[_e] = !0, $[u] = $[d] = $[x] = $[h] = $[F] = $[b] = $[m] = $[I] = $[k] = $[w] = $[y] = $[A] = $[E] = $[T] = $[V] = !1;
|
|
497
|
+
var qt = typeof dt == "object" && dt && dt.Object === Object && dt, we = typeof self == "object" && self && self.Object === Object && self, it = qt || we || Function("return this")(), Jt = r && !r.nodeType && r, Zt = Jt && !0 && t && !t.nodeType && t, Rt = Zt && Zt.exports === Jt, Pt = Rt && qt.process, Qt = function() {
|
|
498
498
|
try {
|
|
499
|
-
return
|
|
499
|
+
return Pt && Pt.binding && Pt.binding("util");
|
|
500
500
|
} catch {
|
|
501
501
|
}
|
|
502
|
-
}(),
|
|
503
|
-
function
|
|
504
|
-
for (var l = -1,
|
|
502
|
+
}(), Dt = Qt && Qt.isTypedArray;
|
|
503
|
+
function te(s, a) {
|
|
504
|
+
for (var l = -1, g = s == null ? 0 : s.length, O = 0, M = []; ++l < g; ) {
|
|
505
505
|
var D = s[l];
|
|
506
|
-
a(D, l, s) && (
|
|
506
|
+
a(D, l, s) && (M[O++] = D);
|
|
507
507
|
}
|
|
508
|
-
return
|
|
508
|
+
return M;
|
|
509
509
|
}
|
|
510
|
-
function
|
|
511
|
-
for (var l = -1,
|
|
510
|
+
function zt(s, a) {
|
|
511
|
+
for (var l = -1, g = a.length, O = s.length; ++l < g; )
|
|
512
512
|
s[O + l] = a[l];
|
|
513
513
|
return s;
|
|
514
514
|
}
|
|
515
|
-
function
|
|
516
|
-
for (var l = -1,
|
|
515
|
+
function ee(s, a) {
|
|
516
|
+
for (var l = -1, g = s == null ? 0 : s.length; ++l < g; )
|
|
517
517
|
if (a(s[l], l, s))
|
|
518
518
|
return !0;
|
|
519
519
|
return !1;
|
|
520
520
|
}
|
|
521
|
-
function
|
|
522
|
-
for (var l = -1,
|
|
523
|
-
|
|
524
|
-
return
|
|
521
|
+
function Te(s, a) {
|
|
522
|
+
for (var l = -1, g = Array(s); ++l < s; )
|
|
523
|
+
g[l] = a(l);
|
|
524
|
+
return g;
|
|
525
525
|
}
|
|
526
|
-
function
|
|
526
|
+
function Ae(s) {
|
|
527
527
|
return function(a) {
|
|
528
528
|
return s(a);
|
|
529
529
|
};
|
|
530
530
|
}
|
|
531
|
-
function
|
|
531
|
+
function _t(s, a) {
|
|
532
532
|
return s.has(a);
|
|
533
533
|
}
|
|
534
|
-
function
|
|
534
|
+
function $t(s, a) {
|
|
535
535
|
return s == null ? void 0 : s[a];
|
|
536
536
|
}
|
|
537
|
-
function
|
|
537
|
+
function re(s) {
|
|
538
538
|
var a = -1, l = Array(s.size);
|
|
539
|
-
return s.forEach(function(
|
|
540
|
-
l[++a] = [O,
|
|
539
|
+
return s.forEach(function(g, O) {
|
|
540
|
+
l[++a] = [O, g];
|
|
541
541
|
}), l;
|
|
542
542
|
}
|
|
543
|
-
function
|
|
543
|
+
function ne(s, a) {
|
|
544
544
|
return function(l) {
|
|
545
545
|
return s(a(l));
|
|
546
546
|
};
|
|
547
547
|
}
|
|
548
548
|
function ct(s) {
|
|
549
549
|
var a = -1, l = Array(s.size);
|
|
550
|
-
return s.forEach(function(
|
|
551
|
-
l[++a] =
|
|
550
|
+
return s.forEach(function(g) {
|
|
551
|
+
l[++a] = g;
|
|
552
552
|
}), l;
|
|
553
553
|
}
|
|
554
|
-
var
|
|
555
|
-
var s = /[^.]+$/.exec(
|
|
554
|
+
var St = Array.prototype, Ee = Function.prototype, gt = Object.prototype, wt = it["__core-js_shared__"], Ft = Ee.toString, et = gt.hasOwnProperty, se = function() {
|
|
555
|
+
var s = /[^.]+$/.exec(wt && wt.keys && wt.keys.IE_PROTO || "");
|
|
556
556
|
return s ? "Symbol(src)_1." + s : "";
|
|
557
|
-
}(),
|
|
558
|
-
"^" +
|
|
559
|
-
),
|
|
557
|
+
}(), ie = gt.toString, Me = RegExp(
|
|
558
|
+
"^" + Ft.call(et).replace(Se, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
559
|
+
), Lt = Rt ? it.Buffer : void 0, Tt = it.Symbol, ae = it.Uint8Array, At = gt.propertyIsEnumerable, yt = St.splice, ht = Tt ? Tt.toStringTag : void 0, xe = Object.getOwnPropertySymbols, Fe = Lt ? Lt.isBuffer : void 0, oe = ne(Object.keys, Object), Le = Mt(it, "DataView"), ce = Mt(it, "Map"), Ne = Mt(it, "Promise"), He = Mt(it, "Set"), Ue = Mt(it, "WeakMap"), Nt = Mt(Object, "create"), ar = rt(Le), Et = rt(ce), xr = rt(Ne), Or = rt(He), Cr = rt(Ue), or = Tt ? Tt.prototype : void 0, je = or ? or.valueOf : void 0;
|
|
560
560
|
function G(s) {
|
|
561
561
|
var a = -1, l = s == null ? 0 : s.length;
|
|
562
562
|
for (this.clear(); ++a < l; ) {
|
|
563
|
-
var
|
|
564
|
-
this.set(
|
|
563
|
+
var g = s[a];
|
|
564
|
+
this.set(g[0], g[1]);
|
|
565
565
|
}
|
|
566
566
|
}
|
|
567
|
-
function
|
|
568
|
-
this.__data__ =
|
|
567
|
+
function Rr() {
|
|
568
|
+
this.__data__ = Nt ? Nt(null) : {}, this.size = 0;
|
|
569
569
|
}
|
|
570
|
-
function
|
|
570
|
+
function Pr(s) {
|
|
571
571
|
var a = this.has(s) && delete this.__data__[s];
|
|
572
572
|
return this.size -= a ? 1 : 0, a;
|
|
573
573
|
}
|
|
574
574
|
function Dr(s) {
|
|
575
575
|
var a = this.__data__;
|
|
576
|
-
if (
|
|
576
|
+
if (Nt) {
|
|
577
577
|
var l = a[s];
|
|
578
578
|
return l === n ? void 0 : l;
|
|
579
579
|
}
|
|
@@ -581,72 +581,72 @@ vr.exports;
|
|
|
581
581
|
}
|
|
582
582
|
function zr(s) {
|
|
583
583
|
var a = this.__data__;
|
|
584
|
-
return
|
|
584
|
+
return Nt ? a[s] !== void 0 : et.call(a, s);
|
|
585
585
|
}
|
|
586
586
|
function $r(s, a) {
|
|
587
587
|
var l = this.__data__;
|
|
588
|
-
return this.size += this.has(s) ? 0 : 1, l[s] =
|
|
588
|
+
return this.size += this.has(s) ? 0 : 1, l[s] = Nt && a === void 0 ? n : a, this;
|
|
589
589
|
}
|
|
590
|
-
G.prototype.clear =
|
|
591
|
-
function
|
|
590
|
+
G.prototype.clear = Rr, G.prototype.delete = Pr, G.prototype.get = Dr, G.prototype.has = zr, G.prototype.set = $r;
|
|
591
|
+
function q(s) {
|
|
592
592
|
var a = -1, l = s == null ? 0 : s.length;
|
|
593
593
|
for (this.clear(); ++a < l; ) {
|
|
594
|
-
var
|
|
595
|
-
this.set(
|
|
594
|
+
var g = s[a];
|
|
595
|
+
this.set(g[0], g[1]);
|
|
596
596
|
}
|
|
597
597
|
}
|
|
598
598
|
function Fr() {
|
|
599
599
|
this.__data__ = [], this.size = 0;
|
|
600
600
|
}
|
|
601
601
|
function Lr(s) {
|
|
602
|
-
var a = this.__data__, l =
|
|
602
|
+
var a = this.__data__, l = Re(a, s);
|
|
603
603
|
if (l < 0)
|
|
604
604
|
return !1;
|
|
605
|
-
var
|
|
606
|
-
return l ==
|
|
605
|
+
var g = a.length - 1;
|
|
606
|
+
return l == g ? a.pop() : yt.call(a, l, 1), --this.size, !0;
|
|
607
607
|
}
|
|
608
608
|
function Nr(s) {
|
|
609
|
-
var a = this.__data__, l =
|
|
609
|
+
var a = this.__data__, l = Re(a, s);
|
|
610
610
|
return l < 0 ? void 0 : a[l][1];
|
|
611
611
|
}
|
|
612
612
|
function Hr(s) {
|
|
613
|
-
return
|
|
613
|
+
return Re(this.__data__, s) > -1;
|
|
614
614
|
}
|
|
615
|
-
function
|
|
616
|
-
var l = this.__data__,
|
|
617
|
-
return
|
|
615
|
+
function Ur(s, a) {
|
|
616
|
+
var l = this.__data__, g = Re(l, s);
|
|
617
|
+
return g < 0 ? (++this.size, l.push([s, a])) : l[g][1] = a, this;
|
|
618
618
|
}
|
|
619
|
-
|
|
619
|
+
q.prototype.clear = Fr, q.prototype.delete = Lr, q.prototype.get = Nr, q.prototype.has = Hr, q.prototype.set = Ur;
|
|
620
620
|
function at(s) {
|
|
621
621
|
var a = -1, l = s == null ? 0 : s.length;
|
|
622
622
|
for (this.clear(); ++a < l; ) {
|
|
623
|
-
var
|
|
624
|
-
this.set(
|
|
623
|
+
var g = s[a];
|
|
624
|
+
this.set(g[0], g[1]);
|
|
625
625
|
}
|
|
626
626
|
}
|
|
627
|
-
function
|
|
627
|
+
function jr() {
|
|
628
628
|
this.size = 0, this.__data__ = {
|
|
629
629
|
hash: new G(),
|
|
630
|
-
map: new (
|
|
630
|
+
map: new (ce || q)(),
|
|
631
631
|
string: new G()
|
|
632
632
|
};
|
|
633
633
|
}
|
|
634
|
-
function
|
|
635
|
-
var a =
|
|
634
|
+
function Wr(s) {
|
|
635
|
+
var a = mt(this, s).delete(s);
|
|
636
636
|
return this.size -= a ? 1 : 0, a;
|
|
637
637
|
}
|
|
638
|
-
function
|
|
639
|
-
return
|
|
638
|
+
function Br(s) {
|
|
639
|
+
return mt(this, s).get(s);
|
|
640
640
|
}
|
|
641
|
-
function
|
|
642
|
-
return
|
|
641
|
+
function Yr(s) {
|
|
642
|
+
return mt(this, s).has(s);
|
|
643
643
|
}
|
|
644
|
-
function
|
|
645
|
-
var l =
|
|
646
|
-
return l.set(s, a), this.size += l.size ==
|
|
644
|
+
function Gr(s, a) {
|
|
645
|
+
var l = mt(this, s), g = l.size;
|
|
646
|
+
return l.set(s, a), this.size += l.size == g ? 0 : 1, this;
|
|
647
647
|
}
|
|
648
|
-
at.prototype.clear =
|
|
649
|
-
function
|
|
648
|
+
at.prototype.clear = jr, at.prototype.delete = Wr, at.prototype.get = Br, at.prototype.has = Yr, at.prototype.set = Gr;
|
|
649
|
+
function Oe(s) {
|
|
650
650
|
var a = -1, l = s == null ? 0 : s.length;
|
|
651
651
|
for (this.__data__ = new at(); ++a < l; )
|
|
652
652
|
this.add(s[a]);
|
|
@@ -654,16 +654,16 @@ vr.exports;
|
|
|
654
654
|
function cr(s) {
|
|
655
655
|
return this.__data__.set(s, n), this;
|
|
656
656
|
}
|
|
657
|
-
function
|
|
657
|
+
function Ce(s) {
|
|
658
658
|
return this.__data__.has(s);
|
|
659
659
|
}
|
|
660
|
-
|
|
661
|
-
function
|
|
662
|
-
var a = this.__data__ = new
|
|
660
|
+
Oe.prototype.add = Oe.prototype.push = cr, Oe.prototype.has = Ce;
|
|
661
|
+
function It(s) {
|
|
662
|
+
var a = this.__data__ = new q(s);
|
|
663
663
|
this.size = a.size;
|
|
664
664
|
}
|
|
665
|
-
function
|
|
666
|
-
this.__data__ = new
|
|
665
|
+
function We() {
|
|
666
|
+
this.__data__ = new q(), this.size = 0;
|
|
667
667
|
}
|
|
668
668
|
function Xr(s) {
|
|
669
669
|
var a = this.__data__, l = a.delete(s);
|
|
@@ -675,246 +675,246 @@ vr.exports;
|
|
|
675
675
|
function Vr(s) {
|
|
676
676
|
return this.__data__.has(s);
|
|
677
677
|
}
|
|
678
|
-
function
|
|
678
|
+
function qr(s, a) {
|
|
679
679
|
var l = this.__data__;
|
|
680
|
-
if (l instanceof
|
|
681
|
-
var
|
|
682
|
-
if (!
|
|
683
|
-
return
|
|
684
|
-
l = this.__data__ = new at(
|
|
680
|
+
if (l instanceof q) {
|
|
681
|
+
var g = l.__data__;
|
|
682
|
+
if (!ce || g.length < e - 1)
|
|
683
|
+
return g.push([s, a]), this.size = ++l.size, this;
|
|
684
|
+
l = this.__data__ = new at(g);
|
|
685
685
|
}
|
|
686
686
|
return l.set(s, a), this.size = l.size, this;
|
|
687
687
|
}
|
|
688
|
-
|
|
689
|
-
function
|
|
690
|
-
var l =
|
|
688
|
+
It.prototype.clear = We, It.prototype.delete = Xr, It.prototype.get = Kr, It.prototype.has = Vr, It.prototype.set = qr;
|
|
689
|
+
function Jr(s, a) {
|
|
690
|
+
var l = Pe(s), g = !l && pr(s), O = !l && !g && De(s), M = !l && !g && !O && gr(s), D = l || g || O || M, P = D ? Te(s.length, String) : [], U = P.length;
|
|
691
691
|
for (var L in s)
|
|
692
692
|
et.call(s, L) && !(D && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
693
693
|
(L == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
694
694
|
O && (L == "offset" || L == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
695
|
-
|
|
696
|
-
an(L,
|
|
697
|
-
return
|
|
695
|
+
M && (L == "buffer" || L == "byteLength" || L == "byteOffset") || // Skip index properties.
|
|
696
|
+
an(L, U))) && P.push(L);
|
|
697
|
+
return P;
|
|
698
698
|
}
|
|
699
|
-
function
|
|
699
|
+
function Re(s, a) {
|
|
700
700
|
for (var l = s.length; l--; )
|
|
701
701
|
if (fr(s[l][0], a))
|
|
702
702
|
return l;
|
|
703
703
|
return -1;
|
|
704
704
|
}
|
|
705
705
|
function Be(s, a, l) {
|
|
706
|
-
var
|
|
707
|
-
return
|
|
706
|
+
var g = a(s);
|
|
707
|
+
return Pe(s) ? g : zt(g, l(s));
|
|
708
708
|
}
|
|
709
|
-
function
|
|
710
|
-
return s == null ? s === void 0 ?
|
|
709
|
+
function ue(s) {
|
|
710
|
+
return s == null ? s === void 0 ? R : f : ht && ht in Object(s) ? xt(s) : dr(s);
|
|
711
711
|
}
|
|
712
712
|
function ur(s) {
|
|
713
|
-
return
|
|
713
|
+
return kt(s) && ue(s) == u;
|
|
714
714
|
}
|
|
715
|
-
function lr(s, a, l,
|
|
716
|
-
return s === a ? !0 : s == null || a == null || !
|
|
715
|
+
function lr(s, a, l, g, O) {
|
|
716
|
+
return s === a ? !0 : s == null || a == null || !kt(s) && !kt(a) ? s !== s && a !== a : Zr(s, a, l, g, lr, O);
|
|
717
717
|
}
|
|
718
|
-
function Zr(s, a, l,
|
|
719
|
-
var D =
|
|
720
|
-
|
|
721
|
-
var
|
|
722
|
-
if (
|
|
723
|
-
if (!
|
|
718
|
+
function Zr(s, a, l, g, O, M) {
|
|
719
|
+
var D = Pe(s), P = Pe(a), U = D ? d : bt(s), L = P ? d : bt(a);
|
|
720
|
+
U = U == u ? y : U, L = L == u ? y : L;
|
|
721
|
+
var J = U == y, ot = L == y, j = U == L;
|
|
722
|
+
if (j && De(s)) {
|
|
723
|
+
if (!De(a))
|
|
724
724
|
return !1;
|
|
725
|
-
D = !0,
|
|
725
|
+
D = !0, J = !1;
|
|
726
726
|
}
|
|
727
|
-
if (
|
|
728
|
-
return
|
|
727
|
+
if (j && !J)
|
|
728
|
+
return M || (M = new It()), D || gr(s) ? Ye(s, a, l, g, O, M) : rn(s, a, U, l, g, O, M);
|
|
729
729
|
if (!(l & i)) {
|
|
730
|
-
var Z =
|
|
731
|
-
if (Z ||
|
|
732
|
-
var
|
|
733
|
-
return
|
|
730
|
+
var Z = J && et.call(s, "__wrapped__"), X = ot && et.call(a, "__wrapped__");
|
|
731
|
+
if (Z || X) {
|
|
732
|
+
var Ht = Z ? s.value() : s, Ot = X ? a.value() : a;
|
|
733
|
+
return M || (M = new It()), O(Ht, Ot, l, g, M);
|
|
734
734
|
}
|
|
735
735
|
}
|
|
736
|
-
return
|
|
736
|
+
return j ? (M || (M = new It()), nn(s, a, l, g, O, M)) : !1;
|
|
737
737
|
}
|
|
738
738
|
function Qr(s) {
|
|
739
739
|
if (!mr(s) || cn(s))
|
|
740
740
|
return !1;
|
|
741
|
-
var a = hr(s) ?
|
|
741
|
+
var a = hr(s) ? Me : st;
|
|
742
742
|
return a.test(rt(s));
|
|
743
743
|
}
|
|
744
744
|
function tn(s) {
|
|
745
|
-
return
|
|
745
|
+
return kt(s) && Xe(s.length) && !!$[ue(s)];
|
|
746
746
|
}
|
|
747
747
|
function en(s) {
|
|
748
748
|
if (!un(s))
|
|
749
|
-
return
|
|
749
|
+
return oe(s);
|
|
750
750
|
var a = [];
|
|
751
751
|
for (var l in Object(s))
|
|
752
752
|
et.call(s, l) && l != "constructor" && a.push(l);
|
|
753
753
|
return a;
|
|
754
754
|
}
|
|
755
|
-
function
|
|
756
|
-
var D = l & i,
|
|
757
|
-
if (
|
|
755
|
+
function Ye(s, a, l, g, O, M) {
|
|
756
|
+
var D = l & i, P = s.length, U = a.length;
|
|
757
|
+
if (P != U && !(D && U > P))
|
|
758
758
|
return !1;
|
|
759
|
-
var L =
|
|
760
|
-
if (L &&
|
|
759
|
+
var L = M.get(s);
|
|
760
|
+
if (L && M.get(a))
|
|
761
761
|
return L == a;
|
|
762
|
-
var
|
|
763
|
-
for (
|
|
764
|
-
var Z = s[
|
|
765
|
-
if (
|
|
766
|
-
var
|
|
767
|
-
if (
|
|
768
|
-
if (
|
|
762
|
+
var J = -1, ot = !0, j = l & o ? new Oe() : void 0;
|
|
763
|
+
for (M.set(s, a), M.set(a, s); ++J < P; ) {
|
|
764
|
+
var Z = s[J], X = a[J];
|
|
765
|
+
if (g)
|
|
766
|
+
var Ht = D ? g(X, Z, J, a, s, M) : g(Z, X, J, s, a, M);
|
|
767
|
+
if (Ht !== void 0) {
|
|
768
|
+
if (Ht)
|
|
769
769
|
continue;
|
|
770
770
|
ot = !1;
|
|
771
771
|
break;
|
|
772
772
|
}
|
|
773
|
-
if (
|
|
774
|
-
if (!
|
|
775
|
-
if (!
|
|
776
|
-
return
|
|
773
|
+
if (j) {
|
|
774
|
+
if (!ee(a, function(Ot, de) {
|
|
775
|
+
if (!_t(j, de) && (Z === Ot || O(Z, Ot, l, g, M)))
|
|
776
|
+
return j.push(de);
|
|
777
777
|
})) {
|
|
778
778
|
ot = !1;
|
|
779
779
|
break;
|
|
780
780
|
}
|
|
781
|
-
} else if (!(Z ===
|
|
781
|
+
} else if (!(Z === X || O(Z, X, l, g, M))) {
|
|
782
782
|
ot = !1;
|
|
783
783
|
break;
|
|
784
784
|
}
|
|
785
785
|
}
|
|
786
|
-
return
|
|
786
|
+
return M.delete(s), M.delete(a), ot;
|
|
787
787
|
}
|
|
788
|
-
function rn(s, a, l,
|
|
788
|
+
function rn(s, a, l, g, O, M, D) {
|
|
789
789
|
switch (l) {
|
|
790
790
|
case F:
|
|
791
791
|
if (s.byteLength != a.byteLength || s.byteOffset != a.byteOffset)
|
|
792
792
|
return !1;
|
|
793
793
|
s = s.buffer, a = a.buffer;
|
|
794
794
|
case x:
|
|
795
|
-
return !(s.byteLength != a.byteLength || !
|
|
796
|
-
case
|
|
795
|
+
return !(s.byteLength != a.byteLength || !M(new ae(s), new ae(a)));
|
|
796
|
+
case h:
|
|
797
797
|
case b:
|
|
798
798
|
case w:
|
|
799
799
|
return fr(+s, +a);
|
|
800
|
-
case
|
|
800
|
+
case m:
|
|
801
801
|
return s.name == a.name && s.message == a.message;
|
|
802
802
|
case A:
|
|
803
803
|
case T:
|
|
804
804
|
return s == a + "";
|
|
805
805
|
case k:
|
|
806
|
-
var
|
|
807
|
-
case
|
|
808
|
-
var
|
|
809
|
-
if (
|
|
806
|
+
var P = re;
|
|
807
|
+
case E:
|
|
808
|
+
var U = g & i;
|
|
809
|
+
if (P || (P = ct), s.size != a.size && !U)
|
|
810
810
|
return !1;
|
|
811
811
|
var L = D.get(s);
|
|
812
812
|
if (L)
|
|
813
813
|
return L == a;
|
|
814
|
-
|
|
815
|
-
var
|
|
816
|
-
return D.delete(s),
|
|
814
|
+
g |= o, D.set(s, a);
|
|
815
|
+
var J = Ye(P(s), P(a), g, O, M, D);
|
|
816
|
+
return D.delete(s), J;
|
|
817
817
|
case H:
|
|
818
818
|
if (je)
|
|
819
819
|
return je.call(s) == je.call(a);
|
|
820
820
|
}
|
|
821
821
|
return !1;
|
|
822
822
|
}
|
|
823
|
-
function nn(s, a, l,
|
|
824
|
-
var D = l & i,
|
|
825
|
-
if (
|
|
823
|
+
function nn(s, a, l, g, O, M) {
|
|
824
|
+
var D = l & i, P = le(s), U = P.length, L = le(a), J = L.length;
|
|
825
|
+
if (U != J && !D)
|
|
826
826
|
return !1;
|
|
827
|
-
for (var ot =
|
|
828
|
-
var
|
|
829
|
-
if (!(D ?
|
|
827
|
+
for (var ot = U; ot--; ) {
|
|
828
|
+
var j = P[ot];
|
|
829
|
+
if (!(D ? j in a : et.call(a, j)))
|
|
830
830
|
return !1;
|
|
831
831
|
}
|
|
832
|
-
var Z =
|
|
833
|
-
if (Z &&
|
|
832
|
+
var Z = M.get(s);
|
|
833
|
+
if (Z && M.get(a))
|
|
834
834
|
return Z == a;
|
|
835
|
-
var
|
|
836
|
-
|
|
837
|
-
for (var
|
|
838
|
-
|
|
839
|
-
var
|
|
840
|
-
if (
|
|
841
|
-
var Hn = D ?
|
|
842
|
-
if (!(Hn === void 0 ?
|
|
843
|
-
|
|
835
|
+
var X = !0;
|
|
836
|
+
M.set(s, a), M.set(a, s);
|
|
837
|
+
for (var Ht = D; ++ot < U; ) {
|
|
838
|
+
j = P[ot];
|
|
839
|
+
var Ot = s[j], de = a[j];
|
|
840
|
+
if (g)
|
|
841
|
+
var Hn = D ? g(de, Ot, j, a, s, M) : g(Ot, de, j, s, a, M);
|
|
842
|
+
if (!(Hn === void 0 ? Ot === de || O(Ot, de, l, g, M) : Hn)) {
|
|
843
|
+
X = !1;
|
|
844
844
|
break;
|
|
845
845
|
}
|
|
846
|
-
|
|
846
|
+
Ht || (Ht = j == "constructor");
|
|
847
847
|
}
|
|
848
|
-
if (
|
|
848
|
+
if (X && !Ht) {
|
|
849
849
|
var yr = s.constructor, Ir = a.constructor;
|
|
850
|
-
yr != Ir && "constructor" in s && "constructor" in a && !(typeof yr == "function" && yr instanceof yr && typeof Ir == "function" && Ir instanceof Ir) && (
|
|
850
|
+
yr != Ir && "constructor" in s && "constructor" in a && !(typeof yr == "function" && yr instanceof yr && typeof Ir == "function" && Ir instanceof Ir) && (X = !1);
|
|
851
851
|
}
|
|
852
|
-
return
|
|
852
|
+
return M.delete(s), M.delete(a), X;
|
|
853
853
|
}
|
|
854
|
-
function
|
|
855
|
-
return Be(s,
|
|
854
|
+
function le(s) {
|
|
855
|
+
return Be(s, Ke, sn);
|
|
856
856
|
}
|
|
857
|
-
function
|
|
857
|
+
function mt(s, a) {
|
|
858
858
|
var l = s.__data__;
|
|
859
859
|
return on(a) ? l[typeof a == "string" ? "string" : "hash"] : l.map;
|
|
860
860
|
}
|
|
861
|
-
function
|
|
862
|
-
var l =
|
|
861
|
+
function Mt(s, a) {
|
|
862
|
+
var l = $t(s, a);
|
|
863
863
|
return Qr(l) ? l : void 0;
|
|
864
864
|
}
|
|
865
|
-
function
|
|
866
|
-
var a = et.call(s,
|
|
865
|
+
function xt(s) {
|
|
866
|
+
var a = et.call(s, ht), l = s[ht];
|
|
867
867
|
try {
|
|
868
|
-
s[
|
|
869
|
-
var
|
|
868
|
+
s[ht] = void 0;
|
|
869
|
+
var g = !0;
|
|
870
870
|
} catch {
|
|
871
871
|
}
|
|
872
|
-
var O =
|
|
873
|
-
return
|
|
872
|
+
var O = ie.call(s);
|
|
873
|
+
return g && (a ? s[ht] = l : delete s[ht]), O;
|
|
874
874
|
}
|
|
875
|
-
var sn =
|
|
876
|
-
return s == null ? [] : (s = Object(s),
|
|
877
|
-
return
|
|
875
|
+
var sn = xe ? function(s) {
|
|
876
|
+
return s == null ? [] : (s = Object(s), te(xe(s), function(a) {
|
|
877
|
+
return At.call(s, a);
|
|
878
878
|
}));
|
|
879
|
-
} : dn,
|
|
880
|
-
(
|
|
881
|
-
var a =
|
|
882
|
-
if (
|
|
883
|
-
switch (
|
|
879
|
+
} : dn, bt = ue;
|
|
880
|
+
(Le && bt(new Le(new ArrayBuffer(1))) != F || ce && bt(new ce()) != k || Ne && bt(Ne.resolve()) != v || He && bt(new He()) != E || Ue && bt(new Ue()) != V) && (bt = function(s) {
|
|
881
|
+
var a = ue(s), l = a == y ? s.constructor : void 0, g = l ? rt(l) : "";
|
|
882
|
+
if (g)
|
|
883
|
+
switch (g) {
|
|
884
884
|
case ar:
|
|
885
885
|
return F;
|
|
886
|
-
case
|
|
886
|
+
case Et:
|
|
887
887
|
return k;
|
|
888
888
|
case xr:
|
|
889
889
|
return v;
|
|
890
890
|
case Or:
|
|
891
|
-
return
|
|
891
|
+
return E;
|
|
892
892
|
case Cr:
|
|
893
893
|
return V;
|
|
894
894
|
}
|
|
895
895
|
return a;
|
|
896
896
|
});
|
|
897
897
|
function an(s, a) {
|
|
898
|
-
return a = a ?? c, !!a && (typeof s == "number" ||
|
|
898
|
+
return a = a ?? c, !!a && (typeof s == "number" || Vt.test(s)) && s > -1 && s % 1 == 0 && s < a;
|
|
899
899
|
}
|
|
900
900
|
function on(s) {
|
|
901
901
|
var a = typeof s;
|
|
902
902
|
return a == "string" || a == "number" || a == "symbol" || a == "boolean" ? s !== "__proto__" : s === null;
|
|
903
903
|
}
|
|
904
904
|
function cn(s) {
|
|
905
|
-
return !!
|
|
905
|
+
return !!se && se in s;
|
|
906
906
|
}
|
|
907
907
|
function un(s) {
|
|
908
908
|
var a = s && s.constructor, l = typeof a == "function" && a.prototype || gt;
|
|
909
909
|
return s === l;
|
|
910
910
|
}
|
|
911
911
|
function dr(s) {
|
|
912
|
-
return
|
|
912
|
+
return ie.call(s);
|
|
913
913
|
}
|
|
914
914
|
function rt(s) {
|
|
915
915
|
if (s != null) {
|
|
916
916
|
try {
|
|
917
|
-
return
|
|
917
|
+
return Ft.call(s);
|
|
918
918
|
} catch {
|
|
919
919
|
}
|
|
920
920
|
try {
|
|
@@ -930,34 +930,34 @@ vr.exports;
|
|
|
930
930
|
var pr = ur(/* @__PURE__ */ function() {
|
|
931
931
|
return arguments;
|
|
932
932
|
}()) ? ur : function(s) {
|
|
933
|
-
return
|
|
934
|
-
},
|
|
933
|
+
return kt(s) && et.call(s, "callee") && !At.call(s, "callee");
|
|
934
|
+
}, Pe = Array.isArray;
|
|
935
935
|
function Ge(s) {
|
|
936
|
-
return s != null &&
|
|
936
|
+
return s != null && Xe(s.length) && !hr(s);
|
|
937
937
|
}
|
|
938
|
-
var
|
|
938
|
+
var De = Fe || fn;
|
|
939
939
|
function ln(s, a) {
|
|
940
940
|
return lr(s, a);
|
|
941
941
|
}
|
|
942
942
|
function hr(s) {
|
|
943
943
|
if (!mr(s))
|
|
944
944
|
return !1;
|
|
945
|
-
var a =
|
|
946
|
-
return a ==
|
|
945
|
+
var a = ue(s);
|
|
946
|
+
return a == I || a == _ || a == p || a == S;
|
|
947
947
|
}
|
|
948
|
-
function
|
|
948
|
+
function Xe(s) {
|
|
949
949
|
return typeof s == "number" && s > -1 && s % 1 == 0 && s <= c;
|
|
950
950
|
}
|
|
951
951
|
function mr(s) {
|
|
952
952
|
var a = typeof s;
|
|
953
953
|
return s != null && (a == "object" || a == "function");
|
|
954
954
|
}
|
|
955
|
-
function
|
|
955
|
+
function kt(s) {
|
|
956
956
|
return s != null && typeof s == "object";
|
|
957
957
|
}
|
|
958
|
-
var gr =
|
|
959
|
-
function
|
|
960
|
-
return Ge(s) ?
|
|
958
|
+
var gr = Dt ? Ae(Dt) : tn;
|
|
959
|
+
function Ke(s) {
|
|
960
|
+
return Ge(s) ? Jr(s) : en(s);
|
|
961
961
|
}
|
|
962
962
|
function dn() {
|
|
963
963
|
return [];
|
|
@@ -968,43 +968,43 @@ vr.exports;
|
|
|
968
968
|
t.exports = ln;
|
|
969
969
|
})(vr, vr.exports);
|
|
970
970
|
var Zs = vr.exports;
|
|
971
|
-
const
|
|
971
|
+
const W = /* @__PURE__ */ Cn(Zs), Io = "add", Qs = "track", ti = "trackItems", bo = `${Qs}:changed`, ko = `${ti}:changed`, ei = "state", vo = `${ei}:changed`, ri = "bulk", Xn = `${ri}:edit`, Rn = "design", ni = `${Rn}:load`, si = `${Rn}:resize`, N = "add", ii = `${N}:text`, ai = `${N}:video`, oi = `${N}:audio`, _o = `${N}:placeholder`, ci = `${N}:image`, ui = `${N}:illustration`, li = `${N}:shape`, So = `${N}:mask`, wo = `${N}:transition`, di = `${N}:animation`, fi = `${N}:caption`, pi = `${N}:template`, hi = `${N}:items`, mi = `${N}:composition`, gi = `${N}:progressBar`, yi = `${N}:progressFrame`, Ii = `${N}:radialAudioBars`, bi = `${N}:linealAudioBars`, ki = `${N}:progressSquare`, vi = `${N}:waveAudioBars`, _i = `${N}:hillAudioBars`, Si = `${N}:rect`, Gt = "edit", wi = `${Gt}:object`, Ti = `${Gt}:replaceMedia`, To = `${Gt}:text`, Ao = `${Gt}:shape`, Eo = `${Gt}:templateItem`, Mo = `${Gt}:deleteTemplateItem`, Ai = `${Gt}:backgroundEditor`, xo = "enterEditMode", ze = "active", Oo = `${ze}:set`, Co = `${ze}:delete`, Ei = `${ze}:paste`, Ro = `${ze}:clone`, Mi = `${ze}:split`, Q = "layer", Po = `${Q}:locked`, Do = `${Q}:hidden`, zo = `${Q}:move`, xi = `${Q}:select`, $o = `${Q}:selection`, Fo = `${Q}:sendTo`, Lo = `${Q}:rename`, No = `${Q}:editingName`, Oi = `${Q}:copy`, Ho = `${Q}:paste`, Ci = `${Q}:clone`, Uo = `${Q}:split`, jo = `${Q}:cut`, Ri = `${Q}:delete`, Pi = `${Q}:replace`, Er = "history", Di = `${Er}:undo`, zi = `${Er}:redo`, Wo = `${Er}:reset`, ds = "scale", $i = `${ds}:changed`;
|
|
972
972
|
var _r = { exports: {} };
|
|
973
973
|
_r.exports;
|
|
974
974
|
(function(t, r) {
|
|
975
|
-
var e = 200, n = "__lodash_hash_undefined__", i = 9007199254740991, o = "[object Arguments]", c = "[object Array]", u = "[object Boolean]", d = "[object Date]", p = "[object Error]",
|
|
976
|
-
z[o] = z[c] = z[A] = z[
|
|
977
|
-
var
|
|
978
|
-
function
|
|
975
|
+
var e = 200, n = "__lodash_hash_undefined__", i = 9007199254740991, o = "[object Arguments]", c = "[object Array]", u = "[object Boolean]", d = "[object Date]", p = "[object Error]", h = "[object Function]", b = "[object GeneratorFunction]", m = "[object Map]", I = "[object Number]", _ = "[object Object]", k = "[object Promise]", w = "[object RegExp]", f = "[object Set]", y = "[object String]", v = "[object Symbol]", S = "[object WeakMap]", A = "[object ArrayBuffer]", E = "[object DataView]", T = "[object Float32Array]", H = "[object Float64Array]", R = "[object Int8Array]", V = "[object Int16Array]", x = "[object Int32Array]", F = "[object Uint8Array]", tt = "[object Uint8ClampedArray]", Xt = "[object Uint16Array]", Kt = "[object Uint32Array]", Ie = /[\\^$.*+?()[\]{}|]/g, be = /\w*$/, ke = /^\[object .+?Constructor\]$/, ve = /^(?:0|[1-9]\d*)$/, z = {};
|
|
976
|
+
z[o] = z[c] = z[A] = z[E] = z[u] = z[d] = z[T] = z[H] = z[R] = z[V] = z[x] = z[m] = z[I] = z[_] = z[w] = z[f] = z[y] = z[v] = z[F] = z[tt] = z[Xt] = z[Kt] = !0, z[p] = z[h] = z[S] = !1;
|
|
977
|
+
var _e = typeof dt == "object" && dt && dt.Object === Object && dt, Se = typeof self == "object" && self && self.Object === Object && self, st = _e || Se || Function("return this")(), Vt = r && !r.nodeType && r, $ = Vt && !0 && t && !t.nodeType && t, qt = $ && $.exports === Vt;
|
|
978
|
+
function we(s, a) {
|
|
979
979
|
return s.set(a[0], a[1]), s;
|
|
980
980
|
}
|
|
981
981
|
function it(s, a) {
|
|
982
982
|
return s.add(a), s;
|
|
983
983
|
}
|
|
984
|
-
function
|
|
985
|
-
for (var l = -1,
|
|
984
|
+
function Jt(s, a) {
|
|
985
|
+
for (var l = -1, g = s ? s.length : 0; ++l < g && a(s[l], l, s) !== !1; )
|
|
986
986
|
;
|
|
987
987
|
return s;
|
|
988
988
|
}
|
|
989
|
-
function
|
|
990
|
-
for (var l = -1,
|
|
989
|
+
function Zt(s, a) {
|
|
990
|
+
for (var l = -1, g = a.length, O = s.length; ++l < g; )
|
|
991
991
|
s[O + l] = a[l];
|
|
992
992
|
return s;
|
|
993
993
|
}
|
|
994
|
-
function
|
|
995
|
-
for (var O = -1,
|
|
994
|
+
function Rt(s, a, l, g) {
|
|
995
|
+
for (var O = -1, M = s ? s.length : 0; ++O < M; )
|
|
996
996
|
l = a(l, s[O], O, s);
|
|
997
997
|
return l;
|
|
998
998
|
}
|
|
999
|
-
function
|
|
1000
|
-
for (var l = -1,
|
|
1001
|
-
|
|
1002
|
-
return
|
|
999
|
+
function Pt(s, a) {
|
|
1000
|
+
for (var l = -1, g = Array(s); ++l < s; )
|
|
1001
|
+
g[l] = a(l);
|
|
1002
|
+
return g;
|
|
1003
1003
|
}
|
|
1004
|
-
function
|
|
1004
|
+
function Qt(s, a) {
|
|
1005
1005
|
return s == null ? void 0 : s[a];
|
|
1006
1006
|
}
|
|
1007
|
-
function
|
|
1007
|
+
function Dt(s) {
|
|
1008
1008
|
var a = !1;
|
|
1009
1009
|
if (s != null && typeof s.toString != "function")
|
|
1010
1010
|
try {
|
|
@@ -1013,45 +1013,45 @@ _r.exports;
|
|
|
1013
1013
|
}
|
|
1014
1014
|
return a;
|
|
1015
1015
|
}
|
|
1016
|
-
function
|
|
1016
|
+
function te(s) {
|
|
1017
1017
|
var a = -1, l = Array(s.size);
|
|
1018
|
-
return s.forEach(function(
|
|
1019
|
-
l[++a] = [O,
|
|
1018
|
+
return s.forEach(function(g, O) {
|
|
1019
|
+
l[++a] = [O, g];
|
|
1020
1020
|
}), l;
|
|
1021
1021
|
}
|
|
1022
|
-
function
|
|
1022
|
+
function zt(s, a) {
|
|
1023
1023
|
return function(l) {
|
|
1024
1024
|
return s(a(l));
|
|
1025
1025
|
};
|
|
1026
1026
|
}
|
|
1027
|
-
function
|
|
1027
|
+
function ee(s) {
|
|
1028
1028
|
var a = -1, l = Array(s.size);
|
|
1029
|
-
return s.forEach(function(
|
|
1030
|
-
l[++a] =
|
|
1029
|
+
return s.forEach(function(g) {
|
|
1030
|
+
l[++a] = g;
|
|
1031
1031
|
}), l;
|
|
1032
1032
|
}
|
|
1033
|
-
var
|
|
1034
|
-
var s = /[^.]+$/.exec(
|
|
1033
|
+
var Te = Array.prototype, Ae = Function.prototype, _t = Object.prototype, $t = st["__core-js_shared__"], re = function() {
|
|
1034
|
+
var s = /[^.]+$/.exec($t && $t.keys && $t.keys.IE_PROTO || "");
|
|
1035
1035
|
return s ? "Symbol(src)_1." + s : "";
|
|
1036
|
-
}(),
|
|
1037
|
-
"^" +
|
|
1038
|
-
), gt =
|
|
1039
|
-
function
|
|
1036
|
+
}(), ne = Ae.toString, ct = _t.hasOwnProperty, St = _t.toString, Ee = RegExp(
|
|
1037
|
+
"^" + ne.call(ct).replace(Ie, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
1038
|
+
), gt = qt ? st.Buffer : void 0, wt = st.Symbol, Ft = st.Uint8Array, et = zt(Object.getPrototypeOf, Object), se = Object.create, ie = _t.propertyIsEnumerable, Me = Te.splice, Lt = Object.getOwnPropertySymbols, Tt = gt ? gt.isBuffer : void 0, ae = zt(Object.keys, Object), At = mt(st, "DataView"), yt = mt(st, "Map"), ht = mt(st, "Promise"), xe = mt(st, "Set"), Fe = mt(st, "WeakMap"), oe = mt(Object, "create"), Le = rt(At), ce = rt(yt), Ne = rt(ht), He = rt(xe), Ue = rt(Fe), Nt = wt ? wt.prototype : void 0, ar = Nt ? Nt.valueOf : void 0;
|
|
1039
|
+
function Et(s) {
|
|
1040
1040
|
var a = -1, l = s ? s.length : 0;
|
|
1041
1041
|
for (this.clear(); ++a < l; ) {
|
|
1042
|
-
var
|
|
1043
|
-
this.set(
|
|
1042
|
+
var g = s[a];
|
|
1043
|
+
this.set(g[0], g[1]);
|
|
1044
1044
|
}
|
|
1045
1045
|
}
|
|
1046
1046
|
function xr() {
|
|
1047
|
-
this.__data__ =
|
|
1047
|
+
this.__data__ = oe ? oe(null) : {};
|
|
1048
1048
|
}
|
|
1049
1049
|
function Or(s) {
|
|
1050
1050
|
return this.has(s) && delete this.__data__[s];
|
|
1051
1051
|
}
|
|
1052
1052
|
function Cr(s) {
|
|
1053
1053
|
var a = this.__data__;
|
|
1054
|
-
if (
|
|
1054
|
+
if (oe) {
|
|
1055
1055
|
var l = a[s];
|
|
1056
1056
|
return l === n ? void 0 : l;
|
|
1057
1057
|
}
|
|
@@ -1059,174 +1059,174 @@ _r.exports;
|
|
|
1059
1059
|
}
|
|
1060
1060
|
function or(s) {
|
|
1061
1061
|
var a = this.__data__;
|
|
1062
|
-
return
|
|
1062
|
+
return oe ? a[s] !== void 0 : ct.call(a, s);
|
|
1063
1063
|
}
|
|
1064
1064
|
function je(s, a) {
|
|
1065
1065
|
var l = this.__data__;
|
|
1066
|
-
return l[s] =
|
|
1066
|
+
return l[s] = oe && a === void 0 ? n : a, this;
|
|
1067
1067
|
}
|
|
1068
|
-
|
|
1068
|
+
Et.prototype.clear = xr, Et.prototype.delete = Or, Et.prototype.get = Cr, Et.prototype.has = or, Et.prototype.set = je;
|
|
1069
1069
|
function G(s) {
|
|
1070
1070
|
var a = -1, l = s ? s.length : 0;
|
|
1071
1071
|
for (this.clear(); ++a < l; ) {
|
|
1072
|
-
var
|
|
1073
|
-
this.set(
|
|
1072
|
+
var g = s[a];
|
|
1073
|
+
this.set(g[0], g[1]);
|
|
1074
1074
|
}
|
|
1075
1075
|
}
|
|
1076
|
-
function
|
|
1076
|
+
function Rr() {
|
|
1077
1077
|
this.__data__ = [];
|
|
1078
1078
|
}
|
|
1079
|
-
function
|
|
1080
|
-
var a = this.__data__, l =
|
|
1079
|
+
function Pr(s) {
|
|
1080
|
+
var a = this.__data__, l = Ce(a, s);
|
|
1081
1081
|
if (l < 0)
|
|
1082
1082
|
return !1;
|
|
1083
|
-
var
|
|
1084
|
-
return l ==
|
|
1083
|
+
var g = a.length - 1;
|
|
1084
|
+
return l == g ? a.pop() : Me.call(a, l, 1), !0;
|
|
1085
1085
|
}
|
|
1086
1086
|
function Dr(s) {
|
|
1087
|
-
var a = this.__data__, l =
|
|
1087
|
+
var a = this.__data__, l = Ce(a, s);
|
|
1088
1088
|
return l < 0 ? void 0 : a[l][1];
|
|
1089
1089
|
}
|
|
1090
1090
|
function zr(s) {
|
|
1091
|
-
return
|
|
1091
|
+
return Ce(this.__data__, s) > -1;
|
|
1092
1092
|
}
|
|
1093
1093
|
function $r(s, a) {
|
|
1094
|
-
var l = this.__data__,
|
|
1095
|
-
return
|
|
1094
|
+
var l = this.__data__, g = Ce(l, s);
|
|
1095
|
+
return g < 0 ? l.push([s, a]) : l[g][1] = a, this;
|
|
1096
1096
|
}
|
|
1097
|
-
G.prototype.clear =
|
|
1098
|
-
function
|
|
1097
|
+
G.prototype.clear = Rr, G.prototype.delete = Pr, G.prototype.get = Dr, G.prototype.has = zr, G.prototype.set = $r;
|
|
1098
|
+
function q(s) {
|
|
1099
1099
|
var a = -1, l = s ? s.length : 0;
|
|
1100
1100
|
for (this.clear(); ++a < l; ) {
|
|
1101
|
-
var
|
|
1102
|
-
this.set(
|
|
1101
|
+
var g = s[a];
|
|
1102
|
+
this.set(g[0], g[1]);
|
|
1103
1103
|
}
|
|
1104
1104
|
}
|
|
1105
1105
|
function Fr() {
|
|
1106
1106
|
this.__data__ = {
|
|
1107
|
-
hash: new
|
|
1108
|
-
map: new (
|
|
1109
|
-
string: new
|
|
1107
|
+
hash: new Et(),
|
|
1108
|
+
map: new (yt || G)(),
|
|
1109
|
+
string: new Et()
|
|
1110
1110
|
};
|
|
1111
1111
|
}
|
|
1112
1112
|
function Lr(s) {
|
|
1113
|
-
return
|
|
1113
|
+
return le(this, s).delete(s);
|
|
1114
1114
|
}
|
|
1115
1115
|
function Nr(s) {
|
|
1116
|
-
return
|
|
1116
|
+
return le(this, s).get(s);
|
|
1117
1117
|
}
|
|
1118
1118
|
function Hr(s) {
|
|
1119
|
-
return
|
|
1119
|
+
return le(this, s).has(s);
|
|
1120
1120
|
}
|
|
1121
|
-
function
|
|
1122
|
-
return
|
|
1121
|
+
function Ur(s, a) {
|
|
1122
|
+
return le(this, s).set(s, a), this;
|
|
1123
1123
|
}
|
|
1124
|
-
|
|
1124
|
+
q.prototype.clear = Fr, q.prototype.delete = Lr, q.prototype.get = Nr, q.prototype.has = Hr, q.prototype.set = Ur;
|
|
1125
1125
|
function at(s) {
|
|
1126
1126
|
this.__data__ = new G(s);
|
|
1127
1127
|
}
|
|
1128
|
-
function
|
|
1128
|
+
function jr() {
|
|
1129
1129
|
this.__data__ = new G();
|
|
1130
1130
|
}
|
|
1131
|
-
function
|
|
1131
|
+
function Wr(s) {
|
|
1132
1132
|
return this.__data__.delete(s);
|
|
1133
1133
|
}
|
|
1134
|
-
function
|
|
1134
|
+
function Br(s) {
|
|
1135
1135
|
return this.__data__.get(s);
|
|
1136
1136
|
}
|
|
1137
|
-
function
|
|
1137
|
+
function Yr(s) {
|
|
1138
1138
|
return this.__data__.has(s);
|
|
1139
1139
|
}
|
|
1140
|
-
function
|
|
1140
|
+
function Gr(s, a) {
|
|
1141
1141
|
var l = this.__data__;
|
|
1142
1142
|
if (l instanceof G) {
|
|
1143
|
-
var
|
|
1144
|
-
if (!
|
|
1145
|
-
return
|
|
1146
|
-
l = this.__data__ = new
|
|
1143
|
+
var g = l.__data__;
|
|
1144
|
+
if (!yt || g.length < e - 1)
|
|
1145
|
+
return g.push([s, a]), this;
|
|
1146
|
+
l = this.__data__ = new q(g);
|
|
1147
1147
|
}
|
|
1148
1148
|
return l.set(s, a), this;
|
|
1149
1149
|
}
|
|
1150
|
-
at.prototype.clear =
|
|
1151
|
-
function
|
|
1152
|
-
var l = Ge(s) ||
|
|
1153
|
-
for (var
|
|
1154
|
-
ct.call(s,
|
|
1150
|
+
at.prototype.clear = jr, at.prototype.delete = Wr, at.prototype.get = Br, at.prototype.has = Yr, at.prototype.set = Gr;
|
|
1151
|
+
function Oe(s, a) {
|
|
1152
|
+
var l = Ge(s) || Pe(s) ? Pt(s.length, String) : [], g = l.length, O = !!g;
|
|
1153
|
+
for (var M in s)
|
|
1154
|
+
ct.call(s, M) && !(O && (M == "length" || on(M, g))) && l.push(M);
|
|
1155
1155
|
return l;
|
|
1156
1156
|
}
|
|
1157
1157
|
function cr(s, a, l) {
|
|
1158
|
-
var
|
|
1159
|
-
(!(ct.call(s, a) && pr(
|
|
1158
|
+
var g = s[a];
|
|
1159
|
+
(!(ct.call(s, a) && pr(g, l)) || l === void 0 && !(a in s)) && (s[a] = l);
|
|
1160
1160
|
}
|
|
1161
|
-
function
|
|
1161
|
+
function Ce(s, a) {
|
|
1162
1162
|
for (var l = s.length; l--; )
|
|
1163
1163
|
if (pr(s[l][0], a))
|
|
1164
1164
|
return l;
|
|
1165
1165
|
return -1;
|
|
1166
1166
|
}
|
|
1167
|
-
function
|
|
1168
|
-
return s &&
|
|
1167
|
+
function It(s, a) {
|
|
1168
|
+
return s && Ye(a, Ke(a), s);
|
|
1169
1169
|
}
|
|
1170
|
-
function
|
|
1171
|
-
var
|
|
1172
|
-
if (
|
|
1173
|
-
return
|
|
1174
|
-
if (!
|
|
1170
|
+
function We(s, a, l, g, O, M, D) {
|
|
1171
|
+
var P;
|
|
1172
|
+
if (g && (P = M ? g(s, O, M, D) : g(s)), P !== void 0)
|
|
1173
|
+
return P;
|
|
1174
|
+
if (!kt(s))
|
|
1175
1175
|
return s;
|
|
1176
|
-
var
|
|
1177
|
-
if (
|
|
1178
|
-
if (
|
|
1179
|
-
return en(s,
|
|
1176
|
+
var U = Ge(s);
|
|
1177
|
+
if (U) {
|
|
1178
|
+
if (P = sn(s), !a)
|
|
1179
|
+
return en(s, P);
|
|
1180
1180
|
} else {
|
|
1181
|
-
var L =
|
|
1181
|
+
var L = xt(s), J = L == h || L == b;
|
|
1182
1182
|
if (hr(s))
|
|
1183
|
-
return
|
|
1184
|
-
if (L ==
|
|
1185
|
-
if (
|
|
1186
|
-
return
|
|
1187
|
-
if (
|
|
1188
|
-
return rn(s,
|
|
1183
|
+
return Re(s, a);
|
|
1184
|
+
if (L == _ || L == o || J && !M) {
|
|
1185
|
+
if (Dt(s))
|
|
1186
|
+
return M ? s : {};
|
|
1187
|
+
if (P = bt(J ? {} : s), !a)
|
|
1188
|
+
return rn(s, It(P, s));
|
|
1189
1189
|
} else {
|
|
1190
1190
|
if (!z[L])
|
|
1191
|
-
return
|
|
1192
|
-
|
|
1191
|
+
return M ? s : {};
|
|
1192
|
+
P = an(s, L, We, a);
|
|
1193
1193
|
}
|
|
1194
1194
|
}
|
|
1195
1195
|
D || (D = new at());
|
|
1196
1196
|
var ot = D.get(s);
|
|
1197
1197
|
if (ot)
|
|
1198
1198
|
return ot;
|
|
1199
|
-
if (D.set(s,
|
|
1200
|
-
var
|
|
1201
|
-
return
|
|
1202
|
-
|
|
1203
|
-
}),
|
|
1199
|
+
if (D.set(s, P), !U)
|
|
1200
|
+
var j = l ? nn(s) : Ke(s);
|
|
1201
|
+
return Jt(j || s, function(Z, X) {
|
|
1202
|
+
j && (X = Z, Z = s[X]), cr(P, X, We(Z, a, l, g, X, s, D));
|
|
1203
|
+
}), P;
|
|
1204
1204
|
}
|
|
1205
1205
|
function Xr(s) {
|
|
1206
|
-
return
|
|
1206
|
+
return kt(s) ? se(s) : {};
|
|
1207
1207
|
}
|
|
1208
1208
|
function Kr(s, a, l) {
|
|
1209
|
-
var
|
|
1210
|
-
return Ge(s) ?
|
|
1209
|
+
var g = a(s);
|
|
1210
|
+
return Ge(s) ? g : Zt(g, l(s));
|
|
1211
1211
|
}
|
|
1212
1212
|
function Vr(s) {
|
|
1213
|
-
return
|
|
1213
|
+
return St.call(s);
|
|
1214
1214
|
}
|
|
1215
|
-
function
|
|
1216
|
-
if (!
|
|
1215
|
+
function qr(s) {
|
|
1216
|
+
if (!kt(s) || un(s))
|
|
1217
1217
|
return !1;
|
|
1218
|
-
var a =
|
|
1218
|
+
var a = Xe(s) || Dt(s) ? Ee : ke;
|
|
1219
1219
|
return a.test(rt(s));
|
|
1220
1220
|
}
|
|
1221
|
-
function
|
|
1221
|
+
function Jr(s) {
|
|
1222
1222
|
if (!dr(s))
|
|
1223
|
-
return
|
|
1223
|
+
return ae(s);
|
|
1224
1224
|
var a = [];
|
|
1225
1225
|
for (var l in Object(s))
|
|
1226
1226
|
ct.call(s, l) && l != "constructor" && a.push(l);
|
|
1227
1227
|
return a;
|
|
1228
1228
|
}
|
|
1229
|
-
function
|
|
1229
|
+
function Re(s, a) {
|
|
1230
1230
|
if (a)
|
|
1231
1231
|
return s.slice();
|
|
1232
1232
|
var l = new s.constructor(s.length);
|
|
@@ -1234,23 +1234,23 @@ _r.exports;
|
|
|
1234
1234
|
}
|
|
1235
1235
|
function Be(s) {
|
|
1236
1236
|
var a = new s.constructor(s.byteLength);
|
|
1237
|
-
return new
|
|
1237
|
+
return new Ft(a).set(new Ft(s)), a;
|
|
1238
1238
|
}
|
|
1239
|
-
function
|
|
1239
|
+
function ue(s, a) {
|
|
1240
1240
|
var l = a ? Be(s.buffer) : s.buffer;
|
|
1241
1241
|
return new s.constructor(l, s.byteOffset, s.byteLength);
|
|
1242
1242
|
}
|
|
1243
1243
|
function ur(s, a, l) {
|
|
1244
|
-
var
|
|
1245
|
-
return
|
|
1244
|
+
var g = a ? l(te(s), !0) : te(s);
|
|
1245
|
+
return Rt(g, we, new s.constructor());
|
|
1246
1246
|
}
|
|
1247
1247
|
function lr(s) {
|
|
1248
|
-
var a = new s.constructor(s.source,
|
|
1248
|
+
var a = new s.constructor(s.source, be.exec(s));
|
|
1249
1249
|
return a.lastIndex = s.lastIndex, a;
|
|
1250
1250
|
}
|
|
1251
1251
|
function Zr(s, a, l) {
|
|
1252
|
-
var
|
|
1253
|
-
return
|
|
1252
|
+
var g = a ? l(ee(s), !0) : ee(s);
|
|
1253
|
+
return Rt(g, it, new s.constructor());
|
|
1254
1254
|
}
|
|
1255
1255
|
function Qr(s) {
|
|
1256
1256
|
return ar ? Object(ar.call(s)) : {};
|
|
@@ -1260,48 +1260,48 @@ _r.exports;
|
|
|
1260
1260
|
return new s.constructor(l, s.byteOffset, s.length);
|
|
1261
1261
|
}
|
|
1262
1262
|
function en(s, a) {
|
|
1263
|
-
var l = -1,
|
|
1264
|
-
for (a || (a = Array(
|
|
1263
|
+
var l = -1, g = s.length;
|
|
1264
|
+
for (a || (a = Array(g)); ++l < g; )
|
|
1265
1265
|
a[l] = s[l];
|
|
1266
1266
|
return a;
|
|
1267
1267
|
}
|
|
1268
|
-
function
|
|
1268
|
+
function Ye(s, a, l, g) {
|
|
1269
1269
|
l || (l = {});
|
|
1270
|
-
for (var O = -1,
|
|
1271
|
-
var D = a[O],
|
|
1272
|
-
cr(l, D,
|
|
1270
|
+
for (var O = -1, M = a.length; ++O < M; ) {
|
|
1271
|
+
var D = a[O], P = void 0;
|
|
1272
|
+
cr(l, D, P === void 0 ? s[D] : P);
|
|
1273
1273
|
}
|
|
1274
1274
|
return l;
|
|
1275
1275
|
}
|
|
1276
1276
|
function rn(s, a) {
|
|
1277
|
-
return
|
|
1277
|
+
return Ye(s, Mt(s), a);
|
|
1278
1278
|
}
|
|
1279
1279
|
function nn(s) {
|
|
1280
|
-
return Kr(s,
|
|
1280
|
+
return Kr(s, Ke, Mt);
|
|
1281
1281
|
}
|
|
1282
|
-
function
|
|
1282
|
+
function le(s, a) {
|
|
1283
1283
|
var l = s.__data__;
|
|
1284
1284
|
return cn(a) ? l[typeof a == "string" ? "string" : "hash"] : l.map;
|
|
1285
1285
|
}
|
|
1286
|
-
function
|
|
1287
|
-
var l =
|
|
1288
|
-
return
|
|
1289
|
-
}
|
|
1290
|
-
var
|
|
1291
|
-
(
|
|
1292
|
-
var a =
|
|
1293
|
-
if (
|
|
1294
|
-
switch (
|
|
1295
|
-
case Fe:
|
|
1296
|
-
return M;
|
|
1297
|
-
case ie:
|
|
1298
|
-
return h;
|
|
1286
|
+
function mt(s, a) {
|
|
1287
|
+
var l = Qt(s, a);
|
|
1288
|
+
return qr(l) ? l : void 0;
|
|
1289
|
+
}
|
|
1290
|
+
var Mt = Lt ? zt(Lt, Object) : dn, xt = Vr;
|
|
1291
|
+
(At && xt(new At(new ArrayBuffer(1))) != E || yt && xt(new yt()) != m || ht && xt(ht.resolve()) != k || xe && xt(new xe()) != f || Fe && xt(new Fe()) != S) && (xt = function(s) {
|
|
1292
|
+
var a = St.call(s), l = a == _ ? s.constructor : void 0, g = l ? rt(l) : void 0;
|
|
1293
|
+
if (g)
|
|
1294
|
+
switch (g) {
|
|
1299
1295
|
case Le:
|
|
1300
|
-
return
|
|
1296
|
+
return E;
|
|
1297
|
+
case ce:
|
|
1298
|
+
return m;
|
|
1301
1299
|
case Ne:
|
|
1302
|
-
return
|
|
1300
|
+
return k;
|
|
1303
1301
|
case He:
|
|
1304
|
-
return
|
|
1302
|
+
return f;
|
|
1303
|
+
case Ue:
|
|
1304
|
+
return S;
|
|
1305
1305
|
}
|
|
1306
1306
|
return a;
|
|
1307
1307
|
});
|
|
@@ -1309,10 +1309,10 @@ _r.exports;
|
|
|
1309
1309
|
var a = s.length, l = s.constructor(a);
|
|
1310
1310
|
return a && typeof s[0] == "string" && ct.call(s, "index") && (l.index = s.index, l.input = s.input), l;
|
|
1311
1311
|
}
|
|
1312
|
-
function
|
|
1312
|
+
function bt(s) {
|
|
1313
1313
|
return typeof s.constructor == "function" && !dr(s) ? Xr(et(s)) : {};
|
|
1314
1314
|
}
|
|
1315
|
-
function an(s, a, l,
|
|
1315
|
+
function an(s, a, l, g) {
|
|
1316
1316
|
var O = s.constructor;
|
|
1317
1317
|
switch (a) {
|
|
1318
1318
|
case A:
|
|
@@ -1320,49 +1320,49 @@ _r.exports;
|
|
|
1320
1320
|
case u:
|
|
1321
1321
|
case d:
|
|
1322
1322
|
return new O(+s);
|
|
1323
|
-
case
|
|
1324
|
-
return
|
|
1323
|
+
case E:
|
|
1324
|
+
return ue(s, g);
|
|
1325
1325
|
case T:
|
|
1326
1326
|
case H:
|
|
1327
|
-
case
|
|
1327
|
+
case R:
|
|
1328
1328
|
case V:
|
|
1329
1329
|
case x:
|
|
1330
1330
|
case F:
|
|
1331
1331
|
case tt:
|
|
1332
|
-
case
|
|
1333
|
-
case
|
|
1334
|
-
return tn(s,
|
|
1335
|
-
case
|
|
1336
|
-
return ur(s,
|
|
1337
|
-
case g:
|
|
1332
|
+
case Xt:
|
|
1333
|
+
case Kt:
|
|
1334
|
+
return tn(s, g);
|
|
1335
|
+
case m:
|
|
1336
|
+
return ur(s, g, l);
|
|
1338
1337
|
case I:
|
|
1338
|
+
case y:
|
|
1339
1339
|
return new O(s);
|
|
1340
1340
|
case w:
|
|
1341
1341
|
return lr(s);
|
|
1342
1342
|
case f:
|
|
1343
|
-
return Zr(s,
|
|
1343
|
+
return Zr(s, g, l);
|
|
1344
1344
|
case v:
|
|
1345
1345
|
return Qr(s);
|
|
1346
1346
|
}
|
|
1347
1347
|
}
|
|
1348
1348
|
function on(s, a) {
|
|
1349
|
-
return a = a ?? i, !!a && (typeof s == "number" ||
|
|
1349
|
+
return a = a ?? i, !!a && (typeof s == "number" || ve.test(s)) && s > -1 && s % 1 == 0 && s < a;
|
|
1350
1350
|
}
|
|
1351
1351
|
function cn(s) {
|
|
1352
1352
|
var a = typeof s;
|
|
1353
1353
|
return a == "string" || a == "number" || a == "symbol" || a == "boolean" ? s !== "__proto__" : s === null;
|
|
1354
1354
|
}
|
|
1355
1355
|
function un(s) {
|
|
1356
|
-
return !!
|
|
1356
|
+
return !!re && re in s;
|
|
1357
1357
|
}
|
|
1358
1358
|
function dr(s) {
|
|
1359
|
-
var a = s && s.constructor, l = typeof a == "function" && a.prototype ||
|
|
1359
|
+
var a = s && s.constructor, l = typeof a == "function" && a.prototype || _t;
|
|
1360
1360
|
return s === l;
|
|
1361
1361
|
}
|
|
1362
1362
|
function rt(s) {
|
|
1363
1363
|
if (s != null) {
|
|
1364
1364
|
try {
|
|
1365
|
-
return
|
|
1365
|
+
return ne.call(s);
|
|
1366
1366
|
} catch {
|
|
1367
1367
|
}
|
|
1368
1368
|
try {
|
|
@@ -1373,38 +1373,38 @@ _r.exports;
|
|
|
1373
1373
|
return "";
|
|
1374
1374
|
}
|
|
1375
1375
|
function fr(s) {
|
|
1376
|
-
return
|
|
1376
|
+
return We(s, !0, !0);
|
|
1377
1377
|
}
|
|
1378
1378
|
function pr(s, a) {
|
|
1379
1379
|
return s === a || s !== s && a !== a;
|
|
1380
1380
|
}
|
|
1381
|
-
function
|
|
1382
|
-
return ln(s) && ct.call(s, "callee") && (!
|
|
1381
|
+
function Pe(s) {
|
|
1382
|
+
return ln(s) && ct.call(s, "callee") && (!ie.call(s, "callee") || St.call(s) == o);
|
|
1383
1383
|
}
|
|
1384
1384
|
var Ge = Array.isArray;
|
|
1385
|
-
function
|
|
1386
|
-
return s != null && mr(s.length) && !
|
|
1385
|
+
function De(s) {
|
|
1386
|
+
return s != null && mr(s.length) && !Xe(s);
|
|
1387
1387
|
}
|
|
1388
1388
|
function ln(s) {
|
|
1389
|
-
return gr(s) &&
|
|
1389
|
+
return gr(s) && De(s);
|
|
1390
1390
|
}
|
|
1391
|
-
var hr =
|
|
1392
|
-
function
|
|
1393
|
-
var a =
|
|
1394
|
-
return a ==
|
|
1391
|
+
var hr = Tt || fn;
|
|
1392
|
+
function Xe(s) {
|
|
1393
|
+
var a = kt(s) ? St.call(s) : "";
|
|
1394
|
+
return a == h || a == b;
|
|
1395
1395
|
}
|
|
1396
1396
|
function mr(s) {
|
|
1397
1397
|
return typeof s == "number" && s > -1 && s % 1 == 0 && s <= i;
|
|
1398
1398
|
}
|
|
1399
|
-
function
|
|
1399
|
+
function kt(s) {
|
|
1400
1400
|
var a = typeof s;
|
|
1401
1401
|
return !!s && (a == "object" || a == "function");
|
|
1402
1402
|
}
|
|
1403
1403
|
function gr(s) {
|
|
1404
1404
|
return !!s && typeof s == "object";
|
|
1405
1405
|
}
|
|
1406
|
-
function
|
|
1407
|
-
return
|
|
1406
|
+
function Ke(s) {
|
|
1407
|
+
return De(s) ? Oe(s) : Jr(s);
|
|
1408
1408
|
}
|
|
1409
1409
|
function dn() {
|
|
1410
1410
|
return [];
|
|
@@ -1414,9 +1414,9 @@ _r.exports;
|
|
|
1414
1414
|
}
|
|
1415
1415
|
t.exports = fr;
|
|
1416
1416
|
})(_r, _r.exports);
|
|
1417
|
-
var
|
|
1418
|
-
const C = /* @__PURE__ */ Cn(
|
|
1419
|
-
function
|
|
1417
|
+
var Fi = _r.exports;
|
|
1418
|
+
const C = /* @__PURE__ */ Cn(Fi);
|
|
1419
|
+
function Li(t, r) {
|
|
1420
1420
|
return t.filter((n) => {
|
|
1421
1421
|
if (r.forEach((i) => {
|
|
1422
1422
|
n.items.includes(i) && (n.items = n.items.filter((o) => o !== i));
|
|
@@ -1424,142 +1424,142 @@ function Fi(t, r) {
|
|
|
1424
1424
|
return n;
|
|
1425
1425
|
});
|
|
1426
1426
|
}
|
|
1427
|
-
const
|
|
1427
|
+
const Y = (t) => Object.keys(t).reduce((r, e) => {
|
|
1428
1428
|
const { display: n } = t[e];
|
|
1429
1429
|
return Math.max(r, n.to);
|
|
1430
1430
|
}, 0);
|
|
1431
1431
|
function nt(t, r, e) {
|
|
1432
1432
|
t.forEach((n) => {
|
|
1433
1433
|
const i = Object.values(r).filter(
|
|
1434
|
-
(
|
|
1434
|
+
(I) => n.items.includes(I.id)
|
|
1435
1435
|
), c = i.filter(
|
|
1436
|
-
(
|
|
1436
|
+
(I) => !e.includes(I.id)
|
|
1437
1437
|
).sort(
|
|
1438
|
-
(
|
|
1438
|
+
(I, _) => I.display.from - _.display.from
|
|
1439
1439
|
), u = i.sort(
|
|
1440
|
-
(
|
|
1440
|
+
(I, _) => I.display.from - _.display.from
|
|
1441
1441
|
), d = c[c.length - 1];
|
|
1442
1442
|
let p = (d == null ? void 0 : d.display.to) || 0;
|
|
1443
|
-
u.forEach((
|
|
1444
|
-
if (e.includes(
|
|
1445
|
-
const
|
|
1446
|
-
|
|
1443
|
+
u.forEach((I) => {
|
|
1444
|
+
if (e.includes(I.id)) {
|
|
1445
|
+
const _ = I.display.to - I.display.from;
|
|
1446
|
+
I.display = {
|
|
1447
1447
|
from: p,
|
|
1448
|
-
to: p +
|
|
1449
|
-
}, p = p +
|
|
1448
|
+
to: p + _
|
|
1449
|
+
}, p = p + _;
|
|
1450
1450
|
}
|
|
1451
1451
|
});
|
|
1452
1452
|
const b = i.sort(
|
|
1453
|
-
(
|
|
1454
|
-
).map((
|
|
1455
|
-
let
|
|
1456
|
-
b.forEach((
|
|
1457
|
-
const
|
|
1453
|
+
(I, _) => I.display.from - _.display.from
|
|
1454
|
+
).map((I) => I.id);
|
|
1455
|
+
let m = 0;
|
|
1456
|
+
b.forEach((I) => {
|
|
1457
|
+
const _ = [];
|
|
1458
1458
|
let k = 0;
|
|
1459
|
-
if (
|
|
1459
|
+
if (_.forEach((w) => {
|
|
1460
1460
|
w.forEach((f) => {
|
|
1461
1461
|
f.type === "transition" && (k += f.duration);
|
|
1462
1462
|
});
|
|
1463
|
-
}), r[
|
|
1464
|
-
const w = r[
|
|
1465
|
-
r[
|
|
1466
|
-
from:
|
|
1467
|
-
to:
|
|
1468
|
-
},
|
|
1463
|
+
}), r[I]) {
|
|
1464
|
+
const w = r[I].display.to - r[I].display.from;
|
|
1465
|
+
r[I].display = {
|
|
1466
|
+
from: m - k,
|
|
1467
|
+
to: m + w - k
|
|
1468
|
+
}, m += w;
|
|
1469
1469
|
}
|
|
1470
1470
|
});
|
|
1471
1471
|
});
|
|
1472
1472
|
}
|
|
1473
|
-
function
|
|
1473
|
+
function Ni(t, r, e) {
|
|
1474
1474
|
const n = t.toId, i = e[n], o = r.find((c) => c.items.includes(n));
|
|
1475
1475
|
o && (o.magnetic || o.items.forEach((c) => {
|
|
1476
1476
|
const u = e[c];
|
|
1477
1477
|
u.display.from > i.display.from && (u.display.from = u.display.from + t.duration, u.display.to = u.display.to + t.duration);
|
|
1478
1478
|
}));
|
|
1479
1479
|
}
|
|
1480
|
-
function
|
|
1481
|
-
const e = C(t), n = r && r.length ? r : e.activeIds, i = n.map((
|
|
1482
|
-
(
|
|
1483
|
-
const v = e.transitionsMap[
|
|
1480
|
+
function Hi(t, r) {
|
|
1481
|
+
const e = C(t), n = r && r.length ? r : e.activeIds, i = n.map((y) => e.trackItemsMap[y]).filter((y) => !!y).map((y) => y.id), o = e.transitionIds.filter(
|
|
1482
|
+
(y) => {
|
|
1483
|
+
const v = e.transitionsMap[y];
|
|
1484
1484
|
return i.includes(v.fromId) || i.includes(v.toId);
|
|
1485
1485
|
}
|
|
1486
1486
|
);
|
|
1487
1487
|
i.push(...o);
|
|
1488
|
-
const c = {}, u = e.trackItemIds, d = e.transitionIds, p = C(e.tracks),
|
|
1489
|
-
i.forEach((
|
|
1490
|
-
var
|
|
1491
|
-
const v = e.trackItemsMap[
|
|
1488
|
+
const c = {}, u = e.trackItemIds, d = e.transitionIds, p = C(e.tracks), h = C(e.structure);
|
|
1489
|
+
i.forEach((y) => {
|
|
1490
|
+
var S;
|
|
1491
|
+
const v = e.trackItemsMap[y] || e.transitionsMap[y];
|
|
1492
1492
|
if (v.type === "template" || v.type === "composition") {
|
|
1493
|
-
const A = (
|
|
1493
|
+
const A = (S = e.structure.find(
|
|
1494
1494
|
(T) => T.id === v.id
|
|
1495
|
-
)) == null ? void 0 :
|
|
1495
|
+
)) == null ? void 0 : S.items;
|
|
1496
1496
|
i.push(...A);
|
|
1497
|
-
const
|
|
1497
|
+
const E = h.findIndex(
|
|
1498
1498
|
(T) => T.id === v.id
|
|
1499
1499
|
);
|
|
1500
|
-
|
|
1500
|
+
h.splice(E, 1);
|
|
1501
1501
|
}
|
|
1502
|
-
}), i.forEach((
|
|
1503
|
-
|
|
1504
|
-
v.items.includes(
|
|
1502
|
+
}), i.forEach((y) => {
|
|
1503
|
+
h.forEach((v) => {
|
|
1504
|
+
v.items.includes(y) && (v.items = v.items.filter((S) => S !== y));
|
|
1505
1505
|
});
|
|
1506
1506
|
});
|
|
1507
1507
|
const b = u.filter(
|
|
1508
|
-
(
|
|
1508
|
+
(y) => !i.includes(y)
|
|
1509
1509
|
);
|
|
1510
|
-
d.forEach((
|
|
1511
|
-
n.includes(
|
|
1510
|
+
d.forEach((y) => {
|
|
1511
|
+
n.includes(y) && n.length === 1 && (c[y] = C(e.transitionsMap[y]));
|
|
1512
1512
|
});
|
|
1513
|
-
const
|
|
1514
|
-
(
|
|
1515
|
-
),
|
|
1513
|
+
const m = d.filter(
|
|
1514
|
+
(y) => !i.includes(y) && !n.includes(y)
|
|
1515
|
+
), I = Object.fromEntries(
|
|
1516
1516
|
Object.entries(e.transitionsMap).filter(
|
|
1517
|
-
([
|
|
1517
|
+
([y]) => !i.includes(y)
|
|
1518
1518
|
)
|
|
1519
1519
|
);
|
|
1520
|
-
Object.keys(
|
|
1521
|
-
n.includes(
|
|
1520
|
+
Object.keys(I).forEach((y) => {
|
|
1521
|
+
n.includes(y) && (I[y].kind = "none");
|
|
1522
1522
|
});
|
|
1523
|
-
const
|
|
1523
|
+
const _ = Li(
|
|
1524
1524
|
e.tracks,
|
|
1525
1525
|
i
|
|
1526
1526
|
), k = Object.fromEntries(
|
|
1527
1527
|
Object.entries(e.trackItemsMap).filter(
|
|
1528
|
-
([
|
|
1528
|
+
([y]) => !i.includes(y)
|
|
1529
1529
|
)
|
|
1530
|
-
), w = p.filter((
|
|
1530
|
+
), w = p.filter((y) => y.magnetic);
|
|
1531
1531
|
nt(w, k, []);
|
|
1532
|
-
const f =
|
|
1533
|
-
return Object.keys(c).forEach((
|
|
1534
|
-
|
|
1535
|
-
c[
|
|
1536
|
-
|
|
1532
|
+
const f = Y(k);
|
|
1533
|
+
return Object.keys(c).forEach((y) => {
|
|
1534
|
+
Ni(
|
|
1535
|
+
c[y],
|
|
1536
|
+
_,
|
|
1537
1537
|
k
|
|
1538
1538
|
);
|
|
1539
1539
|
}), {
|
|
1540
1540
|
trackItemIds: b,
|
|
1541
1541
|
activeIds: [],
|
|
1542
1542
|
trackItemsMap: k,
|
|
1543
|
-
tracks:
|
|
1543
|
+
tracks: _,
|
|
1544
1544
|
duration: f,
|
|
1545
|
-
structure:
|
|
1546
|
-
transitionIds:
|
|
1547
|
-
transitionsMap:
|
|
1545
|
+
structure: h,
|
|
1546
|
+
transitionIds: m,
|
|
1547
|
+
transitionsMap: I
|
|
1548
1548
|
};
|
|
1549
1549
|
}
|
|
1550
|
-
const
|
|
1550
|
+
const Ui = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
1551
1551
|
let fs = (t = 21) => {
|
|
1552
1552
|
let r = "", e = crypto.getRandomValues(new Uint8Array(t |= 0));
|
|
1553
1553
|
for (; t--; )
|
|
1554
|
-
r +=
|
|
1554
|
+
r += Ui[e[t] & 63];
|
|
1555
1555
|
return r;
|
|
1556
1556
|
};
|
|
1557
|
-
function
|
|
1557
|
+
function Bt(t = 16) {
|
|
1558
1558
|
const r = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ", e = r.charAt(Math.floor(Math.random() * r.length));
|
|
1559
1559
|
let n = fs(t - 1);
|
|
1560
1560
|
return n = n.replace(/[^a-zA-Z0-9]/g, "").slice(0, t - 1), e + n;
|
|
1561
1561
|
}
|
|
1562
|
-
const
|
|
1562
|
+
const rr = (t) => {
|
|
1563
1563
|
const r = t.map((e) => new FontFace(e.fontFamily, `url(${e.url})`).load().catch((n) => n));
|
|
1564
1564
|
return r.length === 0 ? Promise.resolve(!0) : new Promise((e, n) => {
|
|
1565
1565
|
Promise.all(r).then((i) => {
|
|
@@ -1570,34 +1570,34 @@ const er = (t) => {
|
|
|
1570
1570
|
});
|
|
1571
1571
|
};
|
|
1572
1572
|
async function ji(t) {
|
|
1573
|
-
|
|
1573
|
+
let r = localStorage.getItem("DesignComboTemp");
|
|
1574
1574
|
if (!r) return {};
|
|
1575
|
-
const e =
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
{
|
|
1579
|
-
fontFamily: p.details.fontFamily,
|
|
1580
|
-
url: p.details.fontUrl
|
|
1581
|
-
}
|
|
1582
|
-
]);
|
|
1583
|
-
const m = le();
|
|
1584
|
-
return e.trackItemsMap[m] = {
|
|
1585
|
-
...i[d],
|
|
1586
|
-
id: m,
|
|
1587
|
-
details: p.details
|
|
1588
|
-
}, e.trackItemIds.push(m), !0;
|
|
1575
|
+
const e = C(t), i = C(JSON.parse(r)).activeIds, o = i.map(() => Bt());
|
|
1576
|
+
i.forEach((p, h) => {
|
|
1577
|
+
r = r == null ? void 0 : r.split(p).join(o[h]);
|
|
1589
1578
|
});
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1579
|
+
const u = JSON.parse(r).trackItemsMap, d = [];
|
|
1580
|
+
return o.forEach((p) => {
|
|
1581
|
+
const h = u[p];
|
|
1582
|
+
e.trackItemsMap[p] = h, e.trackItemIds.push(p);
|
|
1583
|
+
const b = {
|
|
1584
|
+
id: Bt(),
|
|
1585
|
+
type: h.type,
|
|
1586
|
+
items: [p],
|
|
1593
1587
|
magnetic: !1,
|
|
1594
1588
|
static: !1
|
|
1595
1589
|
};
|
|
1596
|
-
|
|
1597
|
-
|
|
1590
|
+
d.push(b), (h.type === "text" || h.type === "caption") && rr([
|
|
1591
|
+
{
|
|
1592
|
+
fontFamily: h.details.fontFamily,
|
|
1593
|
+
url: h.details.fontUrl
|
|
1594
|
+
}
|
|
1595
|
+
]);
|
|
1596
|
+
}), e.tracks = [...d, ...e.tracks], e.duration = Y(e.trackItemsMap), {
|
|
1598
1597
|
tracks: e.tracks,
|
|
1599
1598
|
trackItemIds: e.trackItemIds,
|
|
1600
|
-
trackItemsMap: e.trackItemsMap
|
|
1599
|
+
trackItemsMap: e.trackItemsMap,
|
|
1600
|
+
duration: e.duration
|
|
1601
1601
|
};
|
|
1602
1602
|
}
|
|
1603
1603
|
let Sr = {
|
|
@@ -1624,22 +1624,23 @@ let Sr = {
|
|
|
1624
1624
|
radialAudioBars: ["audio", "radialAudioBars"],
|
|
1625
1625
|
progressFrame: ["audio", "progressFrame"],
|
|
1626
1626
|
progressBar: ["audio", "progressBar"],
|
|
1627
|
-
rect: ["rect"]
|
|
1627
|
+
rect: ["rect"],
|
|
1628
|
+
progressSquare: ["progressSquare"]
|
|
1628
1629
|
}
|
|
1629
1630
|
};
|
|
1630
|
-
const
|
|
1631
|
+
const Wi = (t) => {
|
|
1631
1632
|
const r = Object.fromEntries(
|
|
1632
1633
|
Object.entries(t).filter(([e, n]) => n !== void 0)
|
|
1633
1634
|
);
|
|
1634
1635
|
Sr = { ...Sr, ...r };
|
|
1635
|
-
},
|
|
1636
|
+
}, Pn = () => Sr.cors, Bi = () => Sr.acceptsMap, $e = (t) => new Promise((r, e) => {
|
|
1636
1637
|
const n = new Image();
|
|
1637
1638
|
n.onload = () => {
|
|
1638
1639
|
const o = n.width, c = n.height;
|
|
1639
1640
|
r({ width: o, height: c });
|
|
1640
1641
|
}, n.onerror = (o) => {
|
|
1641
1642
|
e(o);
|
|
1642
|
-
},
|
|
1643
|
+
}, Pn().image && (n.crossOrigin = "anonymous"), n.src = t;
|
|
1643
1644
|
}), ps = (t) => new Promise((r, e) => {
|
|
1644
1645
|
const n = new Audio();
|
|
1645
1646
|
n.preload = "auto", n.addEventListener("loadedmetadata", () => {
|
|
@@ -1647,7 +1648,7 @@ const Ui = (t) => {
|
|
|
1647
1648
|
r({ duration: o });
|
|
1648
1649
|
}), n.addEventListener("error", (o) => {
|
|
1649
1650
|
e(o);
|
|
1650
|
-
}), n.src = t,
|
|
1651
|
+
}), n.src = t, Pn().audio && (n.crossOrigin = "anonymous"), n.load();
|
|
1651
1652
|
}), Dn = (t) => new Promise((r, e) => {
|
|
1652
1653
|
const n = document.createElement("video");
|
|
1653
1654
|
n.preload = "auto", n.addEventListener("loadedmetadata", () => {
|
|
@@ -1655,8 +1656,8 @@ const Ui = (t) => {
|
|
|
1655
1656
|
r({ duration: o, width: c, height: u });
|
|
1656
1657
|
}), n.addEventListener("error", (o) => {
|
|
1657
1658
|
e(o);
|
|
1658
|
-
}), n.src = t,
|
|
1659
|
-
}),
|
|
1659
|
+
}), n.src = t, Pn().video && (n.crossOrigin = "anonymous"), n.load();
|
|
1660
|
+
}), Yi = async (t) => {
|
|
1660
1661
|
var i, o;
|
|
1661
1662
|
const r = t.duration, e = (i = t.details) == null ? void 0 : i.width, n = (o = t.details) == null ? void 0 : o.height;
|
|
1662
1663
|
return r && e && n ? { duration: r, width: e, height: n } : Dn(t.details.src);
|
|
@@ -1694,14 +1695,14 @@ async function Gi(t, r) {
|
|
|
1694
1695
|
const e = { ...t }, n = Object.keys(r)[0], i = Object.values(r)[0], o = e.trackItemsMap[n], c = { ...e.trackItemsMap[n] }, u = o.details;
|
|
1695
1696
|
if (!i.details.src) return {};
|
|
1696
1697
|
if (o.type === "image") {
|
|
1697
|
-
const d = await
|
|
1698
|
-
i.details.crop = p, i.details.height =
|
|
1698
|
+
const d = await $e(i.details.src), { crop: p, newHeight: h, newWidth: b } = Kn(o, d);
|
|
1699
|
+
i.details.crop = p, i.details.height = h, i.details.width = b;
|
|
1699
1700
|
} else if (o.type === "video") {
|
|
1700
|
-
const d = await Dn(i.details.src), p = e.trackItemsMap[n], { display:
|
|
1701
|
-
i.details.crop =
|
|
1701
|
+
const d = await Dn(i.details.src), p = e.trackItemsMap[n], { display: h, duration: b, trim: m } = Vn(p, d), { crop: I, newHeight: _, newWidth: k } = Kn(o, d);
|
|
1702
|
+
i.details.crop = I, i.details.height = _, i.details.width = k, c.display = h, c.duration = b, c.trim = m;
|
|
1702
1703
|
} else if (o.type === "audio") {
|
|
1703
|
-
const d = await ps(i.details.src), p = e.trackItemsMap[n], { display:
|
|
1704
|
-
c.display =
|
|
1704
|
+
const d = await ps(i.details.src), p = e.trackItemsMap[n], { display: h, duration: b, trim: m } = Vn(p, d);
|
|
1705
|
+
c.display = h, c.duration = b, c.trim = m;
|
|
1705
1706
|
}
|
|
1706
1707
|
return o.details = { ...u, ...i.details }, e.trackItemsMap[n] = { ...c }, {
|
|
1707
1708
|
trackItemsMap: {
|
|
@@ -1710,21 +1711,21 @@ async function Gi(t, r) {
|
|
|
1710
1711
|
}
|
|
1711
1712
|
};
|
|
1712
1713
|
}
|
|
1713
|
-
function
|
|
1714
|
+
function Xi(t, r) {
|
|
1714
1715
|
const e = C(t), n = {}, i = r && r.length ? r : e.activeIds;
|
|
1715
1716
|
if (i.length === 0) return {};
|
|
1716
1717
|
i.forEach((c) => {
|
|
1717
|
-
const u = e.trackItemsMap[c], d =
|
|
1718
|
+
const u = e.trackItemsMap[c], d = Bt();
|
|
1718
1719
|
e.trackItemsMap[d] = {
|
|
1719
1720
|
...C(u),
|
|
1720
1721
|
id: d
|
|
1721
1722
|
}, e.trackItemIds.push(d);
|
|
1722
1723
|
const p = e.tracks.find(
|
|
1723
|
-
(
|
|
1724
|
+
(h) => h.items.includes(c)
|
|
1724
1725
|
);
|
|
1725
1726
|
n[p.id] ? n[p.id].items.push(d) : n[p.id] = {
|
|
1726
1727
|
...p,
|
|
1727
|
-
id:
|
|
1728
|
+
id: Bt(),
|
|
1728
1729
|
items: [d],
|
|
1729
1730
|
static: !1,
|
|
1730
1731
|
magnetic: !1
|
|
@@ -1737,7 +1738,7 @@ function Yi(t, r) {
|
|
|
1737
1738
|
trackItemIds: e.trackItemIds
|
|
1738
1739
|
};
|
|
1739
1740
|
}
|
|
1740
|
-
function
|
|
1741
|
+
function Ki(t) {
|
|
1741
1742
|
const r = /#([0-9a-fA-F]{3,6})\b/g, e = /rgb\(\s*(\d+),\s*(\d+),\s*(\d+)\s*\)/g, n = /rgba\(\s*(\d+),\s*(\d+),\s*(\d+),\s*([0-9.]+)\s*\)/g;
|
|
1742
1743
|
function i(c) {
|
|
1743
1744
|
return c.length === 3 ? `#${c[0]}${c[0]}${c[1]}${c[1]}${c[2]}${c[2]}`.toUpperCase() : `#${c.toUpperCase()}`;
|
|
@@ -1753,7 +1754,7 @@ function Xi(t) {
|
|
|
1753
1754
|
(c, u, d, p) => o(+u, +d, +p)
|
|
1754
1755
|
), t;
|
|
1755
1756
|
}
|
|
1756
|
-
function
|
|
1757
|
+
function K(t) {
|
|
1757
1758
|
return /^#[0-9a-fA-F]{3}$/.test(t) ? "#" + t[1] + t[1] + t[2] + t[2] + t[3] + t[3] : t;
|
|
1758
1759
|
}
|
|
1759
1760
|
function ms(t, r) {
|
|
@@ -1781,15 +1782,15 @@ function gs(t) {
|
|
|
1781
1782
|
const n = t.parentElement;
|
|
1782
1783
|
return n ? gs(n) : null;
|
|
1783
1784
|
}
|
|
1784
|
-
function
|
|
1785
|
+
function Ve(t) {
|
|
1785
1786
|
return /^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6})$/.test(t);
|
|
1786
1787
|
}
|
|
1787
|
-
const
|
|
1788
|
+
const Vi = (t) => {
|
|
1788
1789
|
const r = `.${t.split(".").filter((o) => o.includes("fill:")).join(".")}`, e = {}, n = /\.([\w-]+)\s*\{\s*([^}]+)\s*\}/g;
|
|
1789
1790
|
let i;
|
|
1790
1791
|
for (; (i = n.exec(r)) !== null; ) {
|
|
1791
1792
|
const o = i[1], c = i[2], u = {}, d = /fill\s*:\s*([^;]+);?/.exec(c), p = /stroke\s*:\s*([^;]+);?/.exec(c);
|
|
1792
|
-
d && (u.fill =
|
|
1793
|
+
d && (u.fill = K(d[1].trim())), p && (u.stroke = K(p[1].trim())), e[o] = u;
|
|
1793
1794
|
}
|
|
1794
1795
|
return e;
|
|
1795
1796
|
};
|
|
@@ -1802,80 +1803,80 @@ function hn(t) {
|
|
|
1802
1803
|
}
|
|
1803
1804
|
return !1;
|
|
1804
1805
|
}
|
|
1805
|
-
function
|
|
1806
|
+
function qi(t, r, e = 300, n = 300) {
|
|
1806
1807
|
const i = [], c = new DOMParser().parseFromString(t, "image/svg+xml"), u = c.documentElement;
|
|
1807
1808
|
u.setAttribute("width", `${e}`), u.setAttribute("height", `${n}`);
|
|
1808
1809
|
const d = u.querySelectorAll("style"), p = {};
|
|
1809
1810
|
d.forEach((k) => {
|
|
1810
|
-
const w = k.textContent || "", f =
|
|
1811
|
+
const w = k.textContent || "", f = Vi(w);
|
|
1811
1812
|
Object.assign(p, f);
|
|
1812
|
-
const
|
|
1813
|
-
k.textContent =
|
|
1814
|
-
const v = Array.from(c.querySelectorAll("*")),
|
|
1813
|
+
const y = w.replace(/\.(st[\w-]+)/g, `.${r}-$1`).replace(/url\(#(.*?)\)/g, `url(#${r}-$1)`);
|
|
1814
|
+
k.textContent = y;
|
|
1815
|
+
const v = Array.from(c.querySelectorAll("*")), S = /* @__PURE__ */ new Set();
|
|
1815
1816
|
v.forEach((A) => {
|
|
1816
1817
|
if (hn(A)) return;
|
|
1817
1818
|
["fill", "stroke", "stop-color"].forEach((H) => {
|
|
1818
|
-
const
|
|
1819
|
-
|
|
1819
|
+
const R = A.getAttribute(H);
|
|
1820
|
+
R && !["none", "transparent"].includes(R) && S.add(K(R));
|
|
1820
1821
|
});
|
|
1821
|
-
const
|
|
1822
|
-
if (
|
|
1823
|
-
const H = /fill\s*:\s*([^;]+);?/.exec(
|
|
1822
|
+
const E = A.getAttribute("style");
|
|
1823
|
+
if (E) {
|
|
1824
|
+
const H = /fill\s*:\s*([^;]+);?/.exec(E), R = /stroke\s*:\s*([^;]+);?/.exec(E), V = /stop-color\s*:\s*([^;]+);?/.exec(E);
|
|
1824
1825
|
if (H) {
|
|
1825
1826
|
const x = H[1].trim();
|
|
1826
|
-
x && !["none", "transparent"].includes(x) &&
|
|
1827
|
+
x && !["none", "transparent"].includes(x) && Ve(K(x)) && S.add(K(x));
|
|
1827
1828
|
}
|
|
1828
|
-
if (
|
|
1829
|
-
const x =
|
|
1830
|
-
x && !["none", "transparent"].includes(x) &&
|
|
1829
|
+
if (R) {
|
|
1830
|
+
const x = R[1].trim();
|
|
1831
|
+
x && !["none", "transparent"].includes(x) && Ve(K(x)) && S.add(K(x));
|
|
1831
1832
|
}
|
|
1832
1833
|
if (V) {
|
|
1833
1834
|
const x = V[1].trim();
|
|
1834
|
-
x && !["none", "transparent"].includes(x) &&
|
|
1835
|
+
x && !["none", "transparent"].includes(x) && Ve(K(x)) && S.add(K(x));
|
|
1835
1836
|
}
|
|
1836
1837
|
}
|
|
1837
1838
|
const T = A.getAttribute("class");
|
|
1838
1839
|
T && T.split(" ").forEach((H) => {
|
|
1839
|
-
const
|
|
1840
|
-
|
|
1840
|
+
const R = p[H];
|
|
1841
|
+
R != null && R.fill && !["none", "transparent"].includes(R.fill) && S.add(K(R.fill)), R != null && R.stroke && !["none", "transparent"].includes(R.stroke) && S.add(K(R.stroke));
|
|
1841
1842
|
});
|
|
1842
|
-
}), Array.from(
|
|
1843
|
-
|
|
1843
|
+
}), Array.from(S).forEach((A) => {
|
|
1844
|
+
Ve(A) && i.push(A);
|
|
1844
1845
|
});
|
|
1845
1846
|
});
|
|
1846
|
-
const
|
|
1847
|
-
return
|
|
1847
|
+
const h = Array.from(c.querySelectorAll("*")), b = /* @__PURE__ */ new Set();
|
|
1848
|
+
return h.forEach((k) => {
|
|
1848
1849
|
if (hn(k)) return;
|
|
1849
1850
|
const w = k.getAttribute("class");
|
|
1850
1851
|
if (w) {
|
|
1851
|
-
const
|
|
1852
|
-
k.setAttribute("class",
|
|
1853
|
-
const
|
|
1854
|
-
|
|
1852
|
+
const y = w.split(" ").map((v) => `${r}-${v}`).join(" ");
|
|
1853
|
+
k.setAttribute("class", y), y.split(" ").forEach((v) => {
|
|
1854
|
+
const S = p[v];
|
|
1855
|
+
S != null && S.fill && !["none", "transparent"].includes(S.fill) && b.add(K(S.fill)), S != null && S.stroke && !["none", "transparent"].includes(S.stroke) && b.add(K(S.stroke));
|
|
1855
1856
|
});
|
|
1856
1857
|
}
|
|
1857
|
-
["fill", "stroke", "stop-color"].forEach((
|
|
1858
|
-
const v = k.getAttribute(
|
|
1859
|
-
v && !["none", "transparent"].includes(v) && b.add(
|
|
1858
|
+
["fill", "stroke", "stop-color"].forEach((y) => {
|
|
1859
|
+
const v = k.getAttribute(y);
|
|
1860
|
+
v && !["none", "transparent"].includes(v) && b.add(K(v));
|
|
1860
1861
|
});
|
|
1861
1862
|
const f = k.getAttribute("style");
|
|
1862
1863
|
if (f) {
|
|
1863
|
-
const
|
|
1864
|
-
if (
|
|
1865
|
-
const A =
|
|
1866
|
-
A && !["none", "transparent"].includes(A) && b.add(
|
|
1864
|
+
const y = /fill\s*:\s*([^;]+);?/.exec(f), v = /stroke\s*:\s*([^;]+);?/.exec(f), S = /stop-color\s*:\s*([^;]+);?/.exec(f);
|
|
1865
|
+
if (y) {
|
|
1866
|
+
const A = y[1].trim();
|
|
1867
|
+
A && !["none", "transparent"].includes(A) && b.add(K(A));
|
|
1867
1868
|
}
|
|
1868
1869
|
if (v) {
|
|
1869
1870
|
const A = v[1].trim();
|
|
1870
|
-
A && !["none", "transparent"].includes(A) && b.add(
|
|
1871
|
+
A && !["none", "transparent"].includes(A) && b.add(K(A));
|
|
1871
1872
|
}
|
|
1872
|
-
if (
|
|
1873
|
-
const A =
|
|
1874
|
-
A && !["none", "transparent"].includes(A) && b.add(
|
|
1873
|
+
if (S) {
|
|
1874
|
+
const A = S[1].trim();
|
|
1875
|
+
A && !["none", "transparent"].includes(A) && b.add(K(A));
|
|
1875
1876
|
}
|
|
1876
1877
|
}
|
|
1877
1878
|
}), b.forEach(
|
|
1878
|
-
(k) => !i.includes(k) &&
|
|
1879
|
+
(k) => !i.includes(k) && Ve(k) && i.push(k)
|
|
1879
1880
|
), Array.from(c.querySelectorAll("*")).forEach((k) => {
|
|
1880
1881
|
if (k.hasAttribute("id")) {
|
|
1881
1882
|
const w = k.getAttribute("id");
|
|
@@ -1901,12 +1902,12 @@ function Vi(t, r, e = 300, n = 300) {
|
|
|
1901
1902
|
!gs(k) && !k.getAttribute("class") && (k.setAttribute("fill", "#000000"), i.includes("#000000") || i.push("#000000"));
|
|
1902
1903
|
}), { serializer: new XMLSerializer().serializeToString(c), colors: i };
|
|
1903
1904
|
}
|
|
1904
|
-
const
|
|
1905
|
+
const nr = {
|
|
1905
1906
|
color: "#000000",
|
|
1906
1907
|
x: 0,
|
|
1907
1908
|
y: 0,
|
|
1908
1909
|
blur: 0
|
|
1909
|
-
},
|
|
1910
|
+
}, ft = (t, r) => {
|
|
1910
1911
|
let e = r != null && r.trim ? r.trim.to - r.trim.from : (r == null ? void 0 : r.duration) || 5e3;
|
|
1911
1912
|
const n = {
|
|
1912
1913
|
from: 0,
|
|
@@ -1953,7 +1954,7 @@ function Is(t, r) {
|
|
|
1953
1954
|
// No scaling for text/captions
|
|
1954
1955
|
};
|
|
1955
1956
|
}
|
|
1956
|
-
function
|
|
1957
|
+
function pt(t, r) {
|
|
1957
1958
|
const e = t.scaleMode, n = {
|
|
1958
1959
|
x: t.size.width / 2,
|
|
1959
1960
|
y: t.size.height / 2
|
|
@@ -1983,7 +1984,7 @@ function mt(t, r) {
|
|
|
1983
1984
|
};
|
|
1984
1985
|
}
|
|
1985
1986
|
const bs = async (t, r) => {
|
|
1986
|
-
const e = t.details.src, n = await
|
|
1987
|
+
const e = t.details.src, n = await Yi(t), i = pt(r, {
|
|
1987
1988
|
...n
|
|
1988
1989
|
}), o = ys(t.trim, { duration: n.duration }), c = {
|
|
1989
1990
|
width: n.width,
|
|
@@ -1998,7 +1999,7 @@ const bs = async (t, r) => {
|
|
|
1998
1999
|
// Default border width
|
|
1999
2000
|
borderColor: t.details.borderColor || "#000000",
|
|
2000
2001
|
// Default border color
|
|
2001
|
-
boxShadow: t.details.boxShadow ||
|
|
2002
|
+
boxShadow: t.details.boxShadow || nr,
|
|
2002
2003
|
top: t.details.top || i.top || "0px",
|
|
2003
2004
|
// Default top
|
|
2004
2005
|
left: t.details.left || i.left || "0px",
|
|
@@ -2019,7 +2020,7 @@ const bs = async (t, r) => {
|
|
|
2019
2020
|
name: "video",
|
|
2020
2021
|
details: c,
|
|
2021
2022
|
playbackRate: t.playbackRate || 1,
|
|
2022
|
-
display:
|
|
2023
|
+
display: ft(t.display, { duration: n.duration, trim: o }),
|
|
2023
2024
|
duration: n.duration
|
|
2024
2025
|
};
|
|
2025
2026
|
}, ks = async (t) => {
|
|
@@ -2028,7 +2029,7 @@ const bs = async (t, r) => {
|
|
|
2028
2029
|
id: r,
|
|
2029
2030
|
name: t.name || "audio",
|
|
2030
2031
|
type: "audio",
|
|
2031
|
-
display:
|
|
2032
|
+
display: ft(t.display, { duration: i, trim: o }),
|
|
2032
2033
|
trim: o,
|
|
2033
2034
|
playbackRate: t.playbackRate || 1,
|
|
2034
2035
|
details: {
|
|
@@ -2044,7 +2045,7 @@ const bs = async (t, r) => {
|
|
|
2044
2045
|
const e = t.id, n = {
|
|
2045
2046
|
width: ((u = t.details) == null ? void 0 : u.width) || r.size.width,
|
|
2046
2047
|
height: ((d = t.details) == null ? void 0 : d.height) || r.size.height
|
|
2047
|
-
}, i = t.details, o =
|
|
2048
|
+
}, i = t.details, o = pt(r, n), c = ft(t.display);
|
|
2048
2049
|
return {
|
|
2049
2050
|
id: e,
|
|
2050
2051
|
name: t.type,
|
|
@@ -2077,12 +2078,12 @@ const bs = async (t, r) => {
|
|
|
2077
2078
|
},
|
|
2078
2079
|
metadata: {}
|
|
2079
2080
|
};
|
|
2080
|
-
},
|
|
2081
|
+
}, Zi = async (t, r) => {
|
|
2081
2082
|
var u, d;
|
|
2082
2083
|
const e = t.id, n = {
|
|
2083
2084
|
width: ((u = t.details) == null ? void 0 : u.width) || r.size.width,
|
|
2084
2085
|
height: ((d = t.details) == null ? void 0 : d.height) || r.size.height
|
|
2085
|
-
}, i = t.details, o =
|
|
2086
|
+
}, i = t.details, o = pt(r, n), c = ft(t.display);
|
|
2086
2087
|
return {
|
|
2087
2088
|
id: e,
|
|
2088
2089
|
name: t.type,
|
|
@@ -2116,12 +2117,12 @@ const bs = async (t, r) => {
|
|
|
2116
2117
|
},
|
|
2117
2118
|
metadata: {}
|
|
2118
2119
|
};
|
|
2119
|
-
},
|
|
2120
|
+
}, Qi = async (t, r) => {
|
|
2120
2121
|
var u, d;
|
|
2121
2122
|
const e = t.id, n = {
|
|
2122
2123
|
width: ((u = t.details) == null ? void 0 : u.width) || r.size.width,
|
|
2123
2124
|
height: ((d = t.details) == null ? void 0 : d.height) || r.size.height
|
|
2124
|
-
}, i = t.details, o =
|
|
2125
|
+
}, i = t.details, o = pt(r, n), c = ft(t.display);
|
|
2125
2126
|
return {
|
|
2126
2127
|
id: e,
|
|
2127
2128
|
name: t.type,
|
|
@@ -2150,12 +2151,50 @@ const bs = async (t, r) => {
|
|
|
2150
2151
|
},
|
|
2151
2152
|
metadata: {}
|
|
2152
2153
|
};
|
|
2154
|
+
}, ta = async (t, r) => {
|
|
2155
|
+
var u, d;
|
|
2156
|
+
const e = t.id, n = {
|
|
2157
|
+
width: ((u = t.details) == null ? void 0 : u.width) || r.size.width,
|
|
2158
|
+
height: ((d = t.details) == null ? void 0 : d.height) || r.size.height
|
|
2159
|
+
}, i = t.details, o = pt(r, n), c = ft(t.display);
|
|
2160
|
+
return {
|
|
2161
|
+
id: e,
|
|
2162
|
+
name: t.type,
|
|
2163
|
+
type: t.type,
|
|
2164
|
+
display: c,
|
|
2165
|
+
details: {
|
|
2166
|
+
width: (i == null ? void 0 : i.width) || n.width,
|
|
2167
|
+
// Default width
|
|
2168
|
+
height: (i == null ? void 0 : i.height) || n.height,
|
|
2169
|
+
// Default height
|
|
2170
|
+
top: (i == null ? void 0 : i.top) || o.top,
|
|
2171
|
+
left: (i == null ? void 0 : i.left) || o.left,
|
|
2172
|
+
border: i.border || "none",
|
|
2173
|
+
// Default border
|
|
2174
|
+
borderRadius: i.borderRadius || 0,
|
|
2175
|
+
// Default border radius
|
|
2176
|
+
borderWidth: i.borderWidth || 0,
|
|
2177
|
+
// Default border width
|
|
2178
|
+
borderColor: i.borderColor || "#000000",
|
|
2179
|
+
// Default border color
|
|
2180
|
+
opacity: i.opacity || 100,
|
|
2181
|
+
// Default opacity
|
|
2182
|
+
strokeColors: (i == null ? void 0 : i.strokeColors) || ["#ff9800", "#ff5722"],
|
|
2183
|
+
strokeWidth: (i == null ? void 0 : i.strokeWidth) || 100,
|
|
2184
|
+
strokeBackground: (i == null ? void 0 : i.strokeBackground) || "#fff",
|
|
2185
|
+
flipX: (i == null ? void 0 : i.flipX) || !1,
|
|
2186
|
+
flipY: (i == null ? void 0 : i.flipY) || !1,
|
|
2187
|
+
rotate: (i == null ? void 0 : i.rotate) || "0deg",
|
|
2188
|
+
transform: (i == null ? void 0 : i.transform) || "none"
|
|
2189
|
+
},
|
|
2190
|
+
metadata: {}
|
|
2191
|
+
};
|
|
2153
2192
|
}, mn = async (t, r) => {
|
|
2154
2193
|
var c, u;
|
|
2155
2194
|
const e = t.id, n = {
|
|
2156
2195
|
width: ((c = t.details) == null ? void 0 : c.width) || r.size.width,
|
|
2157
2196
|
height: ((u = t.details) == null ? void 0 : u.height) || r.size.height
|
|
2158
|
-
}, i = t.details, o =
|
|
2197
|
+
}, i = t.details, o = pt(r, n);
|
|
2159
2198
|
return {
|
|
2160
2199
|
id: e,
|
|
2161
2200
|
name: t.type,
|
|
@@ -2211,13 +2250,13 @@ const bs = async (t, r) => {
|
|
|
2211
2250
|
}, i = Math.min(
|
|
2212
2251
|
r.size.width / n.width,
|
|
2213
2252
|
r.size.height / n.height
|
|
2214
|
-
), o = ((b = t.details) == null ? void 0 : b.rotate) || 0, c =
|
|
2253
|
+
), o = ((b = t.details) == null ? void 0 : b.rotate) || 0, c = pt(r, n), u = t.display;
|
|
2215
2254
|
let d = 1 / 0, p = 0;
|
|
2216
|
-
e.forEach((
|
|
2217
|
-
const
|
|
2218
|
-
|
|
2255
|
+
e.forEach((m) => {
|
|
2256
|
+
const I = t.trackItemsMap[m];
|
|
2257
|
+
I.display.from < d && (d = I.display.from), I.display.to > p && (p = I.display.to);
|
|
2219
2258
|
});
|
|
2220
|
-
const
|
|
2259
|
+
const h = t.trim || t.display || { from: d, to: p };
|
|
2221
2260
|
return {
|
|
2222
2261
|
id: t.id,
|
|
2223
2262
|
type: "template",
|
|
@@ -2231,23 +2270,23 @@ const bs = async (t, r) => {
|
|
|
2231
2270
|
rotate: o,
|
|
2232
2271
|
background: t.details.background || "transparent"
|
|
2233
2272
|
},
|
|
2234
|
-
trim:
|
|
2273
|
+
trim: h,
|
|
2235
2274
|
display: u || { from: d, to: p },
|
|
2236
2275
|
activeEdit: !1
|
|
2237
2276
|
};
|
|
2238
|
-
},
|
|
2239
|
-
var
|
|
2277
|
+
}, ea = async (t, r) => {
|
|
2278
|
+
var h;
|
|
2240
2279
|
const e = t.trackItemIds, n = t.size || {
|
|
2241
2280
|
width: t.details.width,
|
|
2242
2281
|
height: t.details.height
|
|
2243
2282
|
}, i = Math.min(
|
|
2244
2283
|
r.size.width / n.width,
|
|
2245
2284
|
r.size.height / n.height
|
|
2246
|
-
), o = ((
|
|
2285
|
+
), o = ((h = t.details) == null ? void 0 : h.rotate) || 0, c = pt(r, n), u = t.display;
|
|
2247
2286
|
let d = 1 / 0, p = 0;
|
|
2248
2287
|
return e.forEach((b) => {
|
|
2249
|
-
const
|
|
2250
|
-
|
|
2288
|
+
const m = t.trackItemsMap[b];
|
|
2289
|
+
m.display.from < d && (d = m.display.from), m.display.to > p && (p = m.display.to);
|
|
2251
2290
|
}), {
|
|
2252
2291
|
id: t.id,
|
|
2253
2292
|
type: "composition",
|
|
@@ -2263,20 +2302,20 @@ const bs = async (t, r) => {
|
|
|
2263
2302
|
display: u || { from: d, to: p }
|
|
2264
2303
|
};
|
|
2265
2304
|
}, _s = async (t, r) => {
|
|
2266
|
-
const e = t.details, n =
|
|
2305
|
+
const e = t.details, n = $e(e.src), i = fetch(e.src), [o, c] = await Promise.all([
|
|
2267
2306
|
n,
|
|
2268
2307
|
i
|
|
2269
|
-
]), u = await c.text(), d =
|
|
2270
|
-
|
|
2308
|
+
]), u = await c.text(), d = pt(r, o), { serializer: p, colors: h } = qi(
|
|
2309
|
+
Ki(u),
|
|
2271
2310
|
t.id,
|
|
2272
2311
|
Number(e.width || o.width),
|
|
2273
2312
|
Number(e.height || o.height)
|
|
2274
|
-
), b = t.details.colorMap || Object.fromEntries(
|
|
2313
|
+
), b = t.details.colorMap || Object.fromEntries(h.map((m) => [m, m]));
|
|
2275
2314
|
return {
|
|
2276
2315
|
id: t.id,
|
|
2277
2316
|
name: "illustration",
|
|
2278
2317
|
type: t.type,
|
|
2279
|
-
display:
|
|
2318
|
+
display: ft(t.display),
|
|
2280
2319
|
playbackRate: t.playbackRate || 1,
|
|
2281
2320
|
details: {
|
|
2282
2321
|
src: e.src || "",
|
|
@@ -2311,13 +2350,13 @@ const bs = async (t, r) => {
|
|
|
2311
2350
|
},
|
|
2312
2351
|
metadata: t.metadata || {}
|
|
2313
2352
|
};
|
|
2314
|
-
},
|
|
2315
|
-
const e = t.details, n =
|
|
2353
|
+
}, ra = async (t, r) => {
|
|
2354
|
+
const e = t.details, n = $e(e.src), [i] = await Promise.all([n]), o = pt(r, i);
|
|
2316
2355
|
return {
|
|
2317
2356
|
id: t.id,
|
|
2318
2357
|
name: "shape",
|
|
2319
2358
|
type: t.type,
|
|
2320
|
-
display:
|
|
2359
|
+
display: ft(t.display),
|
|
2321
2360
|
playbackRate: t.playbackRate || 1,
|
|
2322
2361
|
details: {
|
|
2323
2362
|
src: e.src || "",
|
|
@@ -2350,8 +2389,8 @@ const bs = async (t, r) => {
|
|
|
2350
2389
|
},
|
|
2351
2390
|
metadata: t.metadata || {}
|
|
2352
2391
|
};
|
|
2353
|
-
},
|
|
2354
|
-
const e = t.details, n =
|
|
2392
|
+
}, na = async (t, r) => {
|
|
2393
|
+
const e = t.details, n = pt(r, {
|
|
2355
2394
|
width: e.width,
|
|
2356
2395
|
height: e.height
|
|
2357
2396
|
});
|
|
@@ -2359,7 +2398,7 @@ const bs = async (t, r) => {
|
|
|
2359
2398
|
id: t.id,
|
|
2360
2399
|
name: "rect",
|
|
2361
2400
|
type: t.type,
|
|
2362
|
-
display:
|
|
2401
|
+
display: ft(t.display),
|
|
2363
2402
|
playbackRate: t.playbackRate || 1,
|
|
2364
2403
|
details: {
|
|
2365
2404
|
width: e.width || 100,
|
|
@@ -2387,7 +2426,7 @@ const bs = async (t, r) => {
|
|
|
2387
2426
|
rotate: e.rotate || "0deg",
|
|
2388
2427
|
visibility: e.visibility || "visible",
|
|
2389
2428
|
backgroundColor: e.backgroundColor || "#808080",
|
|
2390
|
-
boxShadow: e.boxShadow ||
|
|
2429
|
+
boxShadow: e.boxShadow || nr,
|
|
2391
2430
|
// Default box shadow
|
|
2392
2431
|
blur: e.blur || 0,
|
|
2393
2432
|
brightness: e.brightness || 100
|
|
@@ -2395,12 +2434,12 @@ const bs = async (t, r) => {
|
|
|
2395
2434
|
metadata: t.metadata || {}
|
|
2396
2435
|
};
|
|
2397
2436
|
}, Ss = async (t, r) => {
|
|
2398
|
-
const e = t.details, n = await
|
|
2437
|
+
const e = t.details, n = await $e(e.src), i = pt(r, n);
|
|
2399
2438
|
return {
|
|
2400
2439
|
id: t.id,
|
|
2401
2440
|
type: "image",
|
|
2402
2441
|
name: "image",
|
|
2403
|
-
display:
|
|
2442
|
+
display: ft(t.display),
|
|
2404
2443
|
playbackRate: t.playbackRate || 1,
|
|
2405
2444
|
details: {
|
|
2406
2445
|
src: e.src || "",
|
|
@@ -2417,7 +2456,7 @@ const bs = async (t, r) => {
|
|
|
2417
2456
|
// Default border
|
|
2418
2457
|
borderRadius: e.borderRadius || 0,
|
|
2419
2458
|
// Default border radius
|
|
2420
|
-
boxShadow: e.boxShadow ||
|
|
2459
|
+
boxShadow: e.boxShadow || nr,
|
|
2421
2460
|
// Default box shadow
|
|
2422
2461
|
top: e.top || i.top || "0px",
|
|
2423
2462
|
// Default top
|
|
@@ -2438,7 +2477,7 @@ const bs = async (t, r) => {
|
|
|
2438
2477
|
};
|
|
2439
2478
|
}, ws = async (t, r) => {
|
|
2440
2479
|
const e = t;
|
|
2441
|
-
e.details.fontUrl && await
|
|
2480
|
+
e.details.fontUrl && await rr([
|
|
2442
2481
|
{
|
|
2443
2482
|
fontFamily: e.details.fontFamily,
|
|
2444
2483
|
url: e.details.fontUrl
|
|
@@ -2455,7 +2494,7 @@ const bs = async (t, r) => {
|
|
|
2455
2494
|
id: n,
|
|
2456
2495
|
name: "caption",
|
|
2457
2496
|
type: "caption",
|
|
2458
|
-
display:
|
|
2497
|
+
display: ft(e.display),
|
|
2459
2498
|
details: {
|
|
2460
2499
|
...e.details,
|
|
2461
2500
|
...o,
|
|
@@ -2468,7 +2507,7 @@ const bs = async (t, r) => {
|
|
|
2468
2507
|
left: o.left || u.left,
|
|
2469
2508
|
borderWidth: i.borderWidth || 0,
|
|
2470
2509
|
borderColor: i.borderColor || "#000000",
|
|
2471
|
-
boxShadow: i.boxShadow ||
|
|
2510
|
+
boxShadow: i.boxShadow || nr,
|
|
2472
2511
|
words: i.words || [],
|
|
2473
2512
|
appearedColor: i.appearedColor || i.color,
|
|
2474
2513
|
activeColor: i.activeColor || i.color,
|
|
@@ -2477,7 +2516,7 @@ const bs = async (t, r) => {
|
|
|
2477
2516
|
metadata: t.metadata || {}
|
|
2478
2517
|
};
|
|
2479
2518
|
}, Ts = async (t, r) => {
|
|
2480
|
-
t.details.fontUrl && await
|
|
2519
|
+
t.details.fontUrl && await rr([
|
|
2481
2520
|
{
|
|
2482
2521
|
fontFamily: t.details.fontFamily,
|
|
2483
2522
|
url: t.details.fontUrl
|
|
@@ -2494,7 +2533,7 @@ const bs = async (t, r) => {
|
|
|
2494
2533
|
id: e,
|
|
2495
2534
|
name: "text",
|
|
2496
2535
|
type: "text",
|
|
2497
|
-
display:
|
|
2536
|
+
display: ft(t.display),
|
|
2498
2537
|
details: {
|
|
2499
2538
|
...t.details,
|
|
2500
2539
|
...i,
|
|
@@ -2507,7 +2546,7 @@ const bs = async (t, r) => {
|
|
|
2507
2546
|
left: i.left || c.left,
|
|
2508
2547
|
borderWidth: n.borderWidth || 0,
|
|
2509
2548
|
borderColor: n.borderColor || "#000000",
|
|
2510
|
-
boxShadow: n.boxShadow ||
|
|
2549
|
+
boxShadow: n.boxShadow || nr
|
|
2511
2550
|
},
|
|
2512
2551
|
metadata: {}
|
|
2513
2552
|
};
|
|
@@ -2555,7 +2594,7 @@ const bs = async (t, r) => {
|
|
|
2555
2594
|
transform: t.transform || "none",
|
|
2556
2595
|
skewX: t.skewX || 0,
|
|
2557
2596
|
skewY: t.skewY || 0
|
|
2558
|
-
}),
|
|
2597
|
+
}), sa = async (t, r) => {
|
|
2559
2598
|
switch (t.type) {
|
|
2560
2599
|
case "video":
|
|
2561
2600
|
return bs(t, r || {});
|
|
@@ -2581,7 +2620,7 @@ function Es(t, r) {
|
|
|
2581
2620
|
);
|
|
2582
2621
|
}
|
|
2583
2622
|
const Ms = (t = [], r = []) => t.length === 0 ? r.map((n) => ({
|
|
2584
|
-
id:
|
|
2623
|
+
id: Bt(),
|
|
2585
2624
|
items: [n.id],
|
|
2586
2625
|
type: n.type,
|
|
2587
2626
|
accepts: ["text", "image", "video", "audio", "caption", "template"]
|
|
@@ -2592,76 +2631,76 @@ const Ms = (t = [], r = []) => t.length === 0 ? r.map((n) => ({
|
|
|
2592
2631
|
type: e.type || "text",
|
|
2593
2632
|
magnetic: e.magnetic || !1,
|
|
2594
2633
|
static: e.static || !1,
|
|
2595
|
-
id: e.id ||
|
|
2634
|
+
id: e.id || Bt()
|
|
2596
2635
|
}));
|
|
2597
|
-
async function
|
|
2636
|
+
async function ia(t, r) {
|
|
2598
2637
|
var c, u, d;
|
|
2599
2638
|
const e = r.trackItemsMap, n = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Map();
|
|
2600
2639
|
for (const p in e) {
|
|
2601
|
-
const
|
|
2602
|
-
if (
|
|
2603
|
-
if (
|
|
2640
|
+
const h = e[p];
|
|
2641
|
+
if (h.type === "text" || h.type === "caption") {
|
|
2642
|
+
if (h.details.fontUrl) {
|
|
2604
2643
|
const b = {
|
|
2605
|
-
fontFamily:
|
|
2606
|
-
url:
|
|
2644
|
+
fontFamily: h.details.fontFamily,
|
|
2645
|
+
url: h.details.fontUrl
|
|
2607
2646
|
};
|
|
2608
2647
|
n.add(JSON.stringify(b));
|
|
2609
2648
|
}
|
|
2610
|
-
(c =
|
|
2649
|
+
(c = h.animations) != null && c.in && h.animations.in.composition.forEach(
|
|
2611
2650
|
(b) => {
|
|
2612
|
-
var
|
|
2613
|
-
(
|
|
2614
|
-
(
|
|
2615
|
-
n.add(JSON.stringify(
|
|
2651
|
+
var m;
|
|
2652
|
+
(m = b.details) != null && m.fonts && b.details.fonts.forEach(
|
|
2653
|
+
(I) => {
|
|
2654
|
+
n.add(JSON.stringify(I));
|
|
2616
2655
|
}
|
|
2617
2656
|
);
|
|
2618
2657
|
}
|
|
2619
|
-
), (u =
|
|
2658
|
+
), (u = h.animations) != null && u.loop && h.animations.loop.composition.forEach(
|
|
2620
2659
|
(b) => {
|
|
2621
|
-
var
|
|
2622
|
-
(
|
|
2623
|
-
(
|
|
2624
|
-
n.add(JSON.stringify(
|
|
2660
|
+
var m;
|
|
2661
|
+
(m = b.details) != null && m.fonts && b.details.fonts.forEach(
|
|
2662
|
+
(I) => {
|
|
2663
|
+
n.add(JSON.stringify(I));
|
|
2625
2664
|
}
|
|
2626
2665
|
);
|
|
2627
2666
|
}
|
|
2628
|
-
), (d =
|
|
2667
|
+
), (d = h.animations) != null && d.out && h.animations.out.composition.forEach(
|
|
2629
2668
|
(b) => {
|
|
2630
|
-
var
|
|
2631
|
-
(
|
|
2632
|
-
(
|
|
2633
|
-
n.add(JSON.stringify(
|
|
2669
|
+
var m;
|
|
2670
|
+
(m = b.details) != null && m.fonts && b.details.fonts.forEach(
|
|
2671
|
+
(I) => {
|
|
2672
|
+
n.add(JSON.stringify(I));
|
|
2634
2673
|
}
|
|
2635
2674
|
);
|
|
2636
2675
|
}
|
|
2637
2676
|
);
|
|
2638
|
-
} else
|
|
2639
|
-
trackItem:
|
|
2640
|
-
details:
|
|
2677
|
+
} else h.type === "illustration" && i.set(p, {
|
|
2678
|
+
trackItem: h,
|
|
2679
|
+
details: h.details
|
|
2641
2680
|
});
|
|
2642
2681
|
}
|
|
2643
|
-
n.size > 0 && await
|
|
2682
|
+
n.size > 0 && await rr(
|
|
2644
2683
|
Array.from(n).map((p) => JSON.parse(p))
|
|
2645
2684
|
);
|
|
2646
|
-
for (const [p,
|
|
2685
|
+
for (const [p, h] of i) {
|
|
2647
2686
|
const b = await _s(
|
|
2648
|
-
{ ...
|
|
2687
|
+
{ ...h.trackItem, details: h.details },
|
|
2649
2688
|
{
|
|
2650
|
-
size: { width:
|
|
2689
|
+
size: { width: h.details.width, height: h.details.height }
|
|
2651
2690
|
}
|
|
2652
|
-
),
|
|
2691
|
+
), m = ms(
|
|
2653
2692
|
b.details.svgString,
|
|
2654
|
-
|
|
2693
|
+
h.details.colorMap
|
|
2655
2694
|
);
|
|
2656
|
-
b.details.svgString =
|
|
2695
|
+
b.details.svgString = m, e[p] = b;
|
|
2657
2696
|
}
|
|
2658
|
-
const o =
|
|
2697
|
+
const o = Y(e);
|
|
2659
2698
|
return {
|
|
2660
2699
|
...r,
|
|
2661
2700
|
duration: o
|
|
2662
2701
|
};
|
|
2663
2702
|
}
|
|
2664
|
-
function
|
|
2703
|
+
function aa(t) {
|
|
2665
2704
|
const r = C(t);
|
|
2666
2705
|
if (!r.activeIds.length) return;
|
|
2667
2706
|
const e = r.activeIds, n = [], i = {
|
|
@@ -2676,17 +2715,17 @@ function sa(t) {
|
|
|
2676
2715
|
n.filter((d) => o.has(d.id) ? !1 : (o.add(d.id), !0)), i.tracks = Array.from(o);
|
|
2677
2716
|
let u = JSON.stringify(i);
|
|
2678
2717
|
e.forEach((d) => {
|
|
2679
|
-
const p =
|
|
2718
|
+
const p = Bt();
|
|
2680
2719
|
u = u.split(d).join(p);
|
|
2681
2720
|
}), localStorage.setItem("DesignComboTemp", u);
|
|
2682
2721
|
}
|
|
2683
|
-
function
|
|
2722
|
+
function oa(t, r) {
|
|
2684
2723
|
const e = C(t);
|
|
2685
2724
|
if (e.activeIds.length !== 1) return {};
|
|
2686
2725
|
const n = e.activeIds[0], i = C(e.trackItemsMap[n]);
|
|
2687
2726
|
if (r >= i.display.to || r <= i.display.from)
|
|
2688
2727
|
return {};
|
|
2689
|
-
const o =
|
|
2728
|
+
const o = Bt(), c = {
|
|
2690
2729
|
...i,
|
|
2691
2730
|
display: {
|
|
2692
2731
|
from: i.display.from,
|
|
@@ -2700,52 +2739,52 @@ function ia(t, r) {
|
|
|
2700
2739
|
to: i.display.to
|
|
2701
2740
|
}
|
|
2702
2741
|
}, d = Object.values(e.transitionsMap).find(
|
|
2703
|
-
(
|
|
2742
|
+
(h) => h.fromId === i.id && h.kind !== "none"
|
|
2704
2743
|
), p = Object.values(e.transitionsMap).find(
|
|
2705
|
-
(
|
|
2744
|
+
(h) => h.toId === i.id && h.kind !== "none"
|
|
2706
2745
|
);
|
|
2707
2746
|
if (i.type === "video" || i.type === "audio") {
|
|
2708
|
-
const
|
|
2747
|
+
const h = r - c.display.from;
|
|
2709
2748
|
c.trim = {
|
|
2710
2749
|
from: i.trim.from,
|
|
2711
|
-
to: i.trim.from +
|
|
2750
|
+
to: i.trim.from + h
|
|
2712
2751
|
}, u.trim = {
|
|
2713
|
-
from: i.trim.from +
|
|
2752
|
+
from: i.trim.from + h,
|
|
2714
2753
|
to: i.trim.to
|
|
2715
2754
|
};
|
|
2716
2755
|
}
|
|
2717
2756
|
if (p) {
|
|
2718
|
-
const
|
|
2719
|
-
if (p.duration / 2 >
|
|
2757
|
+
const h = c.display.to - c.display.from;
|
|
2758
|
+
if (p.duration / 2 > h) {
|
|
2720
2759
|
e.transitionIds = e.transitionIds.filter(
|
|
2721
|
-
(
|
|
2760
|
+
(m) => m !== p.id
|
|
2722
2761
|
);
|
|
2723
2762
|
const b = {};
|
|
2724
2763
|
e.transitionIds.forEach(
|
|
2725
|
-
(
|
|
2764
|
+
(m) => b[m] = e.transitionsMap[m]
|
|
2726
2765
|
), e.transitionsMap = b;
|
|
2727
2766
|
}
|
|
2728
2767
|
}
|
|
2729
2768
|
if (d) {
|
|
2730
|
-
const
|
|
2731
|
-
d.duration / 2 >
|
|
2732
|
-
(
|
|
2769
|
+
const h = u.display.to - u.display.from, b = {};
|
|
2770
|
+
d.duration / 2 > h ? (e.transitionIds = e.transitionIds.filter(
|
|
2771
|
+
(m) => m !== d.id
|
|
2733
2772
|
), e.transitionIds.forEach(
|
|
2734
|
-
(
|
|
2735
|
-
), e.transitionsMap = b) : (e.transitionIds = e.transitionIds.map((
|
|
2736
|
-
if (e.transitionsMap[
|
|
2737
|
-
const
|
|
2738
|
-
b[
|
|
2739
|
-
...e.transitionsMap[
|
|
2740
|
-
id:
|
|
2773
|
+
(m) => b[m] = e.transitionsMap[m]
|
|
2774
|
+
), e.transitionsMap = b) : (e.transitionIds = e.transitionIds.map((m) => e.transitionsMap[m].fromId === c.id ? m.replace(c.id, o) : m), Object.keys(e.transitionsMap).forEach((m) => {
|
|
2775
|
+
if (e.transitionsMap[m].fromId === c.id) {
|
|
2776
|
+
const _ = m.replace(c.id, o);
|
|
2777
|
+
b[_] = {
|
|
2778
|
+
...e.transitionsMap[m],
|
|
2779
|
+
id: _,
|
|
2741
2780
|
fromId: o
|
|
2742
2781
|
};
|
|
2743
2782
|
} else
|
|
2744
|
-
b[
|
|
2783
|
+
b[m] = e.transitionsMap[m];
|
|
2745
2784
|
}), e.transitionsMap = b);
|
|
2746
2785
|
}
|
|
2747
|
-
return e.trackItemsMap[n] = c, e.trackItemsMap[o] = u, e.trackItemIds.push(o), e.tracks.forEach((
|
|
2748
|
-
|
|
2786
|
+
return e.trackItemsMap[n] = c, e.trackItemsMap[o] = u, e.trackItemIds.push(o), e.tracks.forEach((h) => {
|
|
2787
|
+
h.items.includes(n) && h.items.push(o);
|
|
2749
2788
|
}), {
|
|
2750
2789
|
tracks: e.tracks,
|
|
2751
2790
|
trackItemIds: e.trackItemIds,
|
|
@@ -2754,7 +2793,7 @@ function ia(t, r) {
|
|
|
2754
2793
|
transitionIds: e.transitionIds
|
|
2755
2794
|
};
|
|
2756
2795
|
}
|
|
2757
|
-
async function
|
|
2796
|
+
async function ca(t, r) {
|
|
2758
2797
|
const n = C(t).trackItemsMap, i = Object.keys(r);
|
|
2759
2798
|
if (!i.length) return {};
|
|
2760
2799
|
for (const c of i) {
|
|
@@ -2773,11 +2812,11 @@ async function aa(t, r) {
|
|
|
2773
2812
|
...n[c].metadata,
|
|
2774
2813
|
...u.metadata
|
|
2775
2814
|
} : n[c].metadata = u.metadata), u.display || u.playbackRate) {
|
|
2776
|
-
const d = u.playbackRate, p = n[c].playbackRate || 1,
|
|
2777
|
-
from:
|
|
2778
|
-
to:
|
|
2815
|
+
const d = u.playbackRate, p = n[c].playbackRate || 1, h = n[c].display, I = (h.to - h.from) * p / d, _ = {
|
|
2816
|
+
from: h.from,
|
|
2817
|
+
to: h.from + I
|
|
2779
2818
|
};
|
|
2780
|
-
n[c].display =
|
|
2819
|
+
n[c].display = _, n[c].playbackRate = d;
|
|
2781
2820
|
}
|
|
2782
2821
|
u.animations && (n[c].animations = {
|
|
2783
2822
|
...n[c].animations,
|
|
@@ -2787,39 +2826,39 @@ async function aa(t, r) {
|
|
|
2787
2826
|
for (const c of i) {
|
|
2788
2827
|
const u = r[c];
|
|
2789
2828
|
if (n[c].type === "shape" && u.details.src) {
|
|
2790
|
-
const d = await
|
|
2829
|
+
const d = await $e(u.details.src);
|
|
2791
2830
|
n[c].details.width = d.width, n[c].details.height = d.height;
|
|
2792
2831
|
}
|
|
2793
2832
|
}
|
|
2794
|
-
const o =
|
|
2833
|
+
const o = Y(n);
|
|
2795
2834
|
return {
|
|
2796
2835
|
trackItemsMap: { ...n },
|
|
2797
2836
|
duration: o
|
|
2798
2837
|
};
|
|
2799
2838
|
}
|
|
2800
|
-
async function
|
|
2839
|
+
async function ua(t, r) {
|
|
2801
2840
|
const e = C(t), n = Object.keys(r)[0], i = Object.values(r)[0], o = e.trackItemsMap[n], c = o.details;
|
|
2802
2841
|
if (!i.details.src) return {};
|
|
2803
2842
|
if (o.type === "image") {
|
|
2804
|
-
const u = await
|
|
2805
|
-
let
|
|
2806
|
-
const
|
|
2807
|
-
d / p >
|
|
2843
|
+
const u = await $e(i.details.src), d = o.details.width || 0, p = o.details.height || 0;
|
|
2844
|
+
let h = u.width, b = u.height;
|
|
2845
|
+
const m = u.width / u.height;
|
|
2846
|
+
d / p > m ? (h = d, b = d / m) : (b = p, h = p * m), c.crop = {
|
|
2808
2847
|
x: 0,
|
|
2809
2848
|
y: 0,
|
|
2810
2849
|
height: c.height,
|
|
2811
2850
|
width: c.width
|
|
2812
|
-
}, i.details.width =
|
|
2851
|
+
}, i.details.width = h, i.details.height = b;
|
|
2813
2852
|
} else if (o.type === "video") {
|
|
2814
2853
|
const u = await Dn(i.details.src), d = o.details.width || 0, p = o.details.height || 0;
|
|
2815
|
-
let
|
|
2816
|
-
const
|
|
2817
|
-
d / p >
|
|
2854
|
+
let h = u.width, b = u.height;
|
|
2855
|
+
const m = u.width / u.height;
|
|
2856
|
+
d / p > m ? (h = d, b = d / m) : (b = p, h = p * m), c.crop = {
|
|
2818
2857
|
x: 0,
|
|
2819
2858
|
y: 0,
|
|
2820
2859
|
height: c.height,
|
|
2821
2860
|
width: c.width
|
|
2822
|
-
}, i.details.width =
|
|
2861
|
+
}, i.details.width = h, i.details.height = b;
|
|
2823
2862
|
}
|
|
2824
2863
|
return i.details && (o.details = { ...c, ...i.details }, i.details = o.details), e.trackItemsMap[n] = {
|
|
2825
2864
|
...e.trackItemsMap[n],
|
|
@@ -2830,67 +2869,67 @@ async function oa(t, r) {
|
|
|
2830
2869
|
}
|
|
2831
2870
|
};
|
|
2832
2871
|
}
|
|
2833
|
-
function
|
|
2872
|
+
function la(t, r) {
|
|
2834
2873
|
const e = C(t);
|
|
2835
2874
|
return e.background.value = r.value, e.background.type = r.type || "color", {
|
|
2836
2875
|
...e
|
|
2837
2876
|
};
|
|
2838
2877
|
}
|
|
2839
|
-
async function
|
|
2878
|
+
async function da(t, r, e = {}) {
|
|
2840
2879
|
const n = C(t), i = r.trackItems.map(
|
|
2841
|
-
(
|
|
2880
|
+
(I) => sa(I, {
|
|
2842
2881
|
size: n.size
|
|
2843
2882
|
})
|
|
2844
|
-
), o = await Promise.all(i), c = Ms(r.tracks, r.trackItems), u = [], d = o.map((
|
|
2845
|
-
r.trackItems.forEach((
|
|
2846
|
-
if (
|
|
2883
|
+
), o = await Promise.all(i), c = Ms(r.tracks, r.trackItems), u = [], d = o.map((I) => I.id);
|
|
2884
|
+
r.trackItems.forEach((I) => {
|
|
2885
|
+
if (I.type !== "template") return;
|
|
2847
2886
|
n.trackItemsMap = {
|
|
2848
2887
|
...n.trackItemsMap,
|
|
2849
|
-
...
|
|
2888
|
+
...I.trackItemsMap
|
|
2850
2889
|
}, n.transitionsMap = {
|
|
2851
2890
|
...n.transitionsMap,
|
|
2852
|
-
...
|
|
2891
|
+
...I.transitionsMap
|
|
2853
2892
|
};
|
|
2854
|
-
const
|
|
2855
|
-
id:
|
|
2856
|
-
items:
|
|
2857
|
-
transitions:
|
|
2858
|
-
tracks:
|
|
2893
|
+
const _ = {
|
|
2894
|
+
id: I.id,
|
|
2895
|
+
items: I.trackItemIds,
|
|
2896
|
+
transitions: I.transitionsIds || [],
|
|
2897
|
+
tracks: I.tracks
|
|
2859
2898
|
};
|
|
2860
|
-
u.push(
|
|
2899
|
+
u.push(_);
|
|
2861
2900
|
});
|
|
2862
|
-
const p = [],
|
|
2863
|
-
if (o.forEach((
|
|
2864
|
-
p.push(
|
|
2901
|
+
const p = [], h = {};
|
|
2902
|
+
if (o.forEach((I) => {
|
|
2903
|
+
p.push(I.id), h[I.id] = I;
|
|
2865
2904
|
}), Es(
|
|
2866
2905
|
n.tracks,
|
|
2867
2906
|
c
|
|
2868
2907
|
))
|
|
2869
|
-
n.tracks.forEach((
|
|
2870
|
-
c.forEach((
|
|
2871
|
-
|
|
2872
|
-
[
|
|
2908
|
+
n.tracks.forEach((I) => {
|
|
2909
|
+
c.forEach((_) => {
|
|
2910
|
+
I.id === _.id && (I.magnetic && nt(
|
|
2911
|
+
[I],
|
|
2873
2912
|
n.trackItemsMap,
|
|
2874
2913
|
d
|
|
2875
|
-
),
|
|
2914
|
+
), I.items.push(...p));
|
|
2876
2915
|
});
|
|
2877
2916
|
});
|
|
2878
2917
|
else {
|
|
2879
|
-
const
|
|
2880
|
-
Math.max(
|
|
2918
|
+
const I = e.trackIndex || 0, _ = Math.min(
|
|
2919
|
+
Math.max(I, 0),
|
|
2881
2920
|
n.tracks.length
|
|
2882
2921
|
);
|
|
2883
|
-
n.tracks.splice(
|
|
2922
|
+
n.tracks.splice(_, 0, ...c);
|
|
2884
2923
|
}
|
|
2885
2924
|
n.trackItemsMap = {
|
|
2886
2925
|
...n.trackItemsMap,
|
|
2887
|
-
...
|
|
2926
|
+
...h
|
|
2888
2927
|
}, n.trackItemIds = [
|
|
2889
2928
|
...n.trackItemIds,
|
|
2890
2929
|
...p
|
|
2891
2930
|
], n.structure = [...n.structure, ...u];
|
|
2892
|
-
const
|
|
2893
|
-
return nt(
|
|
2931
|
+
const m = n.tracks.filter((I) => I.magnetic);
|
|
2932
|
+
return nt(m, n.trackItemsMap, d), n.duration = Y(n.trackItemsMap), {
|
|
2894
2933
|
trackItemIds: n.trackItemIds,
|
|
2895
2934
|
trackItemsMap: n.trackItemsMap,
|
|
2896
2935
|
tracks: n.tracks,
|
|
@@ -2900,7 +2939,7 @@ async function ua(t, r, e = {}) {
|
|
|
2900
2939
|
transitionsMap: n.transitionsMap
|
|
2901
2940
|
};
|
|
2902
2941
|
}
|
|
2903
|
-
function
|
|
2942
|
+
function vt(t, r, e = {}) {
|
|
2904
2943
|
const n = r.map((c) => c.id), i = [], o = {};
|
|
2905
2944
|
if (r.forEach((c) => {
|
|
2906
2945
|
i.push(c.id), o[c.id] = c;
|
|
@@ -2929,24 +2968,24 @@ function kt(t, r, e = {}) {
|
|
|
2929
2968
|
...i
|
|
2930
2969
|
], t;
|
|
2931
2970
|
}
|
|
2932
|
-
async function
|
|
2971
|
+
async function fa(t, r, e = {}) {
|
|
2933
2972
|
const n = C(t), i = [
|
|
2934
2973
|
Ss(r, {
|
|
2935
2974
|
size: n.size,
|
|
2936
2975
|
scaleMode: e.scaleMode,
|
|
2937
2976
|
scaleAspectRatio: e.scaleAspectRatio
|
|
2938
2977
|
})
|
|
2939
|
-
], o = await Promise.all(i), c = o.map((p) => p.id), u =
|
|
2940
|
-
return nt(d, u.trackItemsMap, c), u.duration =
|
|
2978
|
+
], o = await Promise.all(i), c = o.map((p) => p.id), u = vt(n, o, e), d = u.tracks.filter((p) => p.magnetic);
|
|
2979
|
+
return nt(d, u.trackItemsMap, c), u.duration = Y(u.trackItemsMap), {
|
|
2941
2980
|
trackItemIds: u.trackItemIds,
|
|
2942
2981
|
trackItemsMap: u.trackItemsMap,
|
|
2943
2982
|
tracks: u.tracks,
|
|
2944
2983
|
duration: u.duration
|
|
2945
2984
|
};
|
|
2946
2985
|
}
|
|
2947
|
-
async function
|
|
2948
|
-
const n = C(t), i = [ks(r)], o = await Promise.all(i), c = o.map((p) => p.id), u =
|
|
2949
|
-
u.duration =
|
|
2986
|
+
async function pa(t, r, e = {}) {
|
|
2987
|
+
const n = C(t), i = [ks(r)], o = await Promise.all(i), c = o.map((p) => p.id), u = vt(n, o, e);
|
|
2988
|
+
u.duration = Y(u.trackItemsMap);
|
|
2950
2989
|
const d = u.tracks.filter((p) => p.magnetic);
|
|
2951
2990
|
return nt(d, u.trackItemsMap, c), {
|
|
2952
2991
|
trackItemIds: u.trackItemIds,
|
|
@@ -2955,15 +2994,15 @@ async function da(t, r, e = {}) {
|
|
|
2955
2994
|
duration: u.duration
|
|
2956
2995
|
};
|
|
2957
2996
|
}
|
|
2958
|
-
async function
|
|
2997
|
+
async function ha(t, r, e = {}) {
|
|
2959
2998
|
const n = C(t), i = [
|
|
2960
2999
|
bs(r, {
|
|
2961
3000
|
size: n.size,
|
|
2962
3001
|
scaleMode: e.scaleMode,
|
|
2963
3002
|
scaleAspectRatio: e.scaleAspectRatio
|
|
2964
3003
|
})
|
|
2965
|
-
], o = await Promise.all(i), c = o.map((p) => p.id), u =
|
|
2966
|
-
u.duration =
|
|
3004
|
+
], o = await Promise.all(i), c = o.map((p) => p.id), u = vt(n, o, e);
|
|
3005
|
+
u.duration = Y(u.trackItemsMap);
|
|
2967
3006
|
const d = u.tracks.filter((p) => p.magnetic);
|
|
2968
3007
|
return nt(d, u.trackItemsMap, c), {
|
|
2969
3008
|
trackItemIds: u.trackItemIds,
|
|
@@ -2972,13 +3011,13 @@ async function fa(t, r, e = {}) {
|
|
|
2972
3011
|
duration: u.duration
|
|
2973
3012
|
};
|
|
2974
3013
|
}
|
|
2975
|
-
async function
|
|
3014
|
+
async function ma(t, r, e = {}) {
|
|
2976
3015
|
const n = C(t), i = [
|
|
2977
3016
|
Ts(r, {
|
|
2978
3017
|
size: e.size
|
|
2979
3018
|
})
|
|
2980
|
-
], o = await Promise.all(i), c = o.map((p) => p.id), u =
|
|
2981
|
-
u.duration =
|
|
3019
|
+
], o = await Promise.all(i), c = o.map((p) => p.id), u = vt(n, o, e);
|
|
3020
|
+
u.duration = Y(u.trackItemsMap);
|
|
2982
3021
|
const d = u.tracks.filter((p) => p.magnetic);
|
|
2983
3022
|
return nt(d, u.trackItemsMap, c), {
|
|
2984
3023
|
trackItemIds: u.trackItemIds,
|
|
@@ -2987,15 +3026,15 @@ async function pa(t, r, e = {}) {
|
|
|
2987
3026
|
duration: u.duration
|
|
2988
3027
|
};
|
|
2989
3028
|
}
|
|
2990
|
-
async function
|
|
3029
|
+
async function ga(t, r, e = {}) {
|
|
2991
3030
|
const n = C(t), i = [
|
|
2992
|
-
|
|
3031
|
+
ra(r, {
|
|
2993
3032
|
size: n.size,
|
|
2994
3033
|
scaleMode: e.scaleMode,
|
|
2995
3034
|
scaleAspectRatio: e.scaleAspectRatio
|
|
2996
3035
|
})
|
|
2997
|
-
], o = await Promise.all(i), c = o.map((p) => p.id), u =
|
|
2998
|
-
u.duration =
|
|
3036
|
+
], o = await Promise.all(i), c = o.map((p) => p.id), u = vt(n, o, e);
|
|
3037
|
+
u.duration = Y(u.trackItemsMap);
|
|
2999
3038
|
const d = u.tracks.filter((p) => p.magnetic);
|
|
3000
3039
|
return nt(d, u.trackItemsMap, c), {
|
|
3001
3040
|
trackItemIds: u.trackItemIds,
|
|
@@ -3004,15 +3043,15 @@ async function ha(t, r, e = {}) {
|
|
|
3004
3043
|
duration: u.duration
|
|
3005
3044
|
};
|
|
3006
3045
|
}
|
|
3007
|
-
async function
|
|
3046
|
+
async function ya(t, r, e = {}) {
|
|
3008
3047
|
const n = C(t), i = [
|
|
3009
3048
|
_s(r, {
|
|
3010
3049
|
size: n.size,
|
|
3011
3050
|
scaleMode: e.scaleMode,
|
|
3012
3051
|
scaleAspectRatio: e.scaleAspectRatio
|
|
3013
3052
|
})
|
|
3014
|
-
], o = await Promise.all(i), c = o.map((p) => p.id), u =
|
|
3015
|
-
u.duration =
|
|
3053
|
+
], o = await Promise.all(i), c = o.map((p) => p.id), u = vt(n, o, e);
|
|
3054
|
+
u.duration = Y(u.trackItemsMap);
|
|
3016
3055
|
const d = u.tracks.filter((p) => p.magnetic);
|
|
3017
3056
|
return nt(d, u.trackItemsMap, c), {
|
|
3018
3057
|
trackItemIds: u.trackItemIds,
|
|
@@ -3021,40 +3060,47 @@ async function ma(t, r, e = {}) {
|
|
|
3021
3060
|
duration: u.duration
|
|
3022
3061
|
};
|
|
3023
3062
|
}
|
|
3024
|
-
async function
|
|
3025
|
-
const n = C(t), i = "composition", o = r.trackItemsMap, c = r.trackItemIds, u = r.tracks || [], { details:
|
|
3063
|
+
async function Ia(t, r, e = {}) {
|
|
3064
|
+
const n = C(t), i = "composition", o = r.trackItemsMap, c = r.trackItemIds, u = r.tracks || [], d = r.trackItemDetailsMap, { details: p, ...h } = await ea(r, {
|
|
3026
3065
|
size: n.size,
|
|
3027
3066
|
scaleMode: e.scaleMode,
|
|
3028
3067
|
scaleAspectRatio: e.scaleAspectRatio
|
|
3029
|
-
}),
|
|
3030
|
-
id:
|
|
3068
|
+
}), b = {
|
|
3069
|
+
id: h.id,
|
|
3031
3070
|
items: c,
|
|
3032
3071
|
transitions: [],
|
|
3033
3072
|
tracks: u
|
|
3034
|
-
},
|
|
3035
|
-
...
|
|
3073
|
+
}, I = [{
|
|
3074
|
+
...h,
|
|
3036
3075
|
type: i,
|
|
3037
|
-
details:
|
|
3038
|
-
}],
|
|
3039
|
-
|
|
3040
|
-
...
|
|
3076
|
+
details: p
|
|
3077
|
+
}], _ = vt(n, I, e);
|
|
3078
|
+
_.trackItemsMap = {
|
|
3079
|
+
..._.trackItemsMap,
|
|
3041
3080
|
...o,
|
|
3042
|
-
[
|
|
3043
|
-
...
|
|
3081
|
+
[h.id]: {
|
|
3082
|
+
...h,
|
|
3044
3083
|
type: i,
|
|
3045
|
-
details:
|
|
3084
|
+
details: p
|
|
3046
3085
|
}
|
|
3047
|
-
},
|
|
3048
|
-
const
|
|
3049
|
-
return nt(
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3086
|
+
}, _.structure = [..._.structure, b], _.duration = Y(_.trackItemsMap);
|
|
3087
|
+
const k = _.tracks.filter((w) => w.magnetic);
|
|
3088
|
+
return nt(k, _.trackItemsMap, [h.id]), d && Object.keys(d).forEach((w) => {
|
|
3089
|
+
_.trackItemsMap[w] = {
|
|
3090
|
+
..._.trackItemsMap[w],
|
|
3091
|
+
details: {
|
|
3092
|
+
...d[w].details
|
|
3093
|
+
}
|
|
3094
|
+
};
|
|
3095
|
+
}), {
|
|
3096
|
+
trackItemIds: _.trackItemIds,
|
|
3097
|
+
trackItemsMap: _.trackItemsMap,
|
|
3098
|
+
tracks: _.tracks,
|
|
3099
|
+
duration: _.duration,
|
|
3100
|
+
structure: _.structure
|
|
3055
3101
|
};
|
|
3056
3102
|
}
|
|
3057
|
-
async function
|
|
3103
|
+
async function fe(t, r, e = {}, n) {
|
|
3058
3104
|
const i = C(t), o = (b) => b.display ? b.display : {
|
|
3059
3105
|
from: 0,
|
|
3060
3106
|
to: i.duration
|
|
@@ -3066,13 +3112,13 @@ async function Re(t, r, e = {}, n) {
|
|
|
3066
3112
|
scaleAspectRatio: e.scaleAspectRatio
|
|
3067
3113
|
})
|
|
3068
3114
|
), n === "progress-frame" && c.push(
|
|
3069
|
-
|
|
3115
|
+
Zi(r, {
|
|
3070
3116
|
size: i.size,
|
|
3071
3117
|
scaleMode: e.scaleMode,
|
|
3072
3118
|
scaleAspectRatio: e.scaleAspectRatio
|
|
3073
3119
|
})
|
|
3074
3120
|
), n === "radial-audio-bars" && (r.display = o(r), c.push(
|
|
3075
|
-
|
|
3121
|
+
Qi(r, {
|
|
3076
3122
|
size: i.size,
|
|
3077
3123
|
scaleMode: e.scaleMode,
|
|
3078
3124
|
scaleAspectRatio: e.scaleAspectRatio
|
|
@@ -3095,32 +3141,38 @@ async function Re(t, r, e = {}, n) {
|
|
|
3095
3141
|
scaleMode: e.scaleMode,
|
|
3096
3142
|
scaleAspectRatio: e.scaleAspectRatio
|
|
3097
3143
|
})
|
|
3098
|
-
))
|
|
3099
|
-
|
|
3100
|
-
|
|
3101
|
-
|
|
3102
|
-
|
|
3144
|
+
)), n === "progress-square" && c.push(
|
|
3145
|
+
ta(r, {
|
|
3146
|
+
size: i.size,
|
|
3147
|
+
scaleMode: e.scaleMode,
|
|
3148
|
+
scaleAspectRatio: e.scaleAspectRatio
|
|
3149
|
+
})
|
|
3150
|
+
);
|
|
3151
|
+
const u = await Promise.all(c), d = u.map((b) => b.id), p = vt(i, u, e);
|
|
3152
|
+
p.duration = Y(p.trackItemsMap);
|
|
3153
|
+
const h = p.tracks.filter((b) => b.magnetic);
|
|
3154
|
+
return nt(h, p.trackItemsMap, d), {
|
|
3103
3155
|
trackItemIds: p.trackItemIds,
|
|
3104
3156
|
trackItemsMap: p.trackItemsMap,
|
|
3105
3157
|
tracks: p.tracks,
|
|
3106
3158
|
duration: p.duration
|
|
3107
3159
|
};
|
|
3108
3160
|
}
|
|
3109
|
-
async function
|
|
3110
|
-
const n = C(t), i = "template", o = r.trackItemsMap, c = r.trackItemIds, u = r.transitionsMap, d = r.transitionIds || [], p = r.tracks || [],
|
|
3161
|
+
async function ba(t, r, e = {}) {
|
|
3162
|
+
const n = C(t), i = "template", o = r.trackItemsMap, c = r.trackItemIds, u = r.transitionsMap, d = r.transitionIds || [], p = r.tracks || [], h = r.structure || [], { details: b, ...m } = await vs(r, {
|
|
3111
3163
|
size: n.size,
|
|
3112
3164
|
scaleMode: e.scaleMode,
|
|
3113
3165
|
scaleAspectRatio: e.scaleAspectRatio
|
|
3114
|
-
}),
|
|
3115
|
-
id:
|
|
3166
|
+
}), I = {
|
|
3167
|
+
id: m.id,
|
|
3116
3168
|
items: c,
|
|
3117
3169
|
transitions: d,
|
|
3118
3170
|
tracks: p
|
|
3119
3171
|
}, k = [{
|
|
3120
|
-
...
|
|
3172
|
+
...m,
|
|
3121
3173
|
type: i,
|
|
3122
3174
|
details: b
|
|
3123
|
-
}], w =
|
|
3175
|
+
}], w = vt(n, k, e);
|
|
3124
3176
|
w.transitionIds = [
|
|
3125
3177
|
...w.transitionIds,
|
|
3126
3178
|
...d
|
|
@@ -3130,18 +3182,18 @@ async function ya(t, r, e = {}) {
|
|
|
3130
3182
|
}, w.trackItemsMap = {
|
|
3131
3183
|
...w.trackItemsMap,
|
|
3132
3184
|
...o,
|
|
3133
|
-
[
|
|
3134
|
-
...
|
|
3185
|
+
[m.id]: {
|
|
3186
|
+
...m,
|
|
3135
3187
|
type: i,
|
|
3136
3188
|
details: b
|
|
3137
3189
|
}
|
|
3138
3190
|
}, w.structure = [
|
|
3139
3191
|
...w.structure,
|
|
3140
|
-
|
|
3141
|
-
...
|
|
3142
|
-
], w.duration =
|
|
3143
|
-
const f = w.tracks.filter((
|
|
3144
|
-
return nt(f, w.trackItemsMap, [
|
|
3192
|
+
I,
|
|
3193
|
+
...h
|
|
3194
|
+
], w.duration = Y(w.trackItemsMap);
|
|
3195
|
+
const f = w.tracks.filter((y) => y.magnetic);
|
|
3196
|
+
return nt(f, w.trackItemsMap, [m.id]), {
|
|
3145
3197
|
trackItemIds: w.trackItemIds,
|
|
3146
3198
|
trackItemsMap: w.trackItemsMap,
|
|
3147
3199
|
tracks: w.tracks,
|
|
@@ -3150,7 +3202,7 @@ async function ya(t, r, e = {}) {
|
|
|
3150
3202
|
transitionsMap: w.transitionsMap
|
|
3151
3203
|
};
|
|
3152
3204
|
}
|
|
3153
|
-
async function
|
|
3205
|
+
async function ka(t, r, e = {}) {
|
|
3154
3206
|
const n = C(t), i = r.map((b) => ws(b, {
|
|
3155
3207
|
size: e.size
|
|
3156
3208
|
})), o = await Promise.all(i), c = Ms(
|
|
@@ -3164,15 +3216,15 @@ async function Ia(t, r, e = {}) {
|
|
|
3164
3216
|
o
|
|
3165
3217
|
), u = [], d = {};
|
|
3166
3218
|
if (o.forEach((b) => {
|
|
3167
|
-
const { details:
|
|
3168
|
-
u.push(b.id), d[b.id] =
|
|
3219
|
+
const { details: m, ...I } = b;
|
|
3220
|
+
u.push(b.id), d[b.id] = I;
|
|
3169
3221
|
}), Es(
|
|
3170
3222
|
n.tracks,
|
|
3171
3223
|
c
|
|
3172
3224
|
))
|
|
3173
3225
|
n.tracks.forEach((b) => {
|
|
3174
|
-
c.forEach((
|
|
3175
|
-
b.id ===
|
|
3226
|
+
c.forEach((m) => {
|
|
3227
|
+
b.id === m.id && (b.magnetic && nt(
|
|
3176
3228
|
[b],
|
|
3177
3229
|
n.trackItemsMap,
|
|
3178
3230
|
u
|
|
@@ -3180,11 +3232,11 @@ async function Ia(t, r, e = {}) {
|
|
|
3180
3232
|
});
|
|
3181
3233
|
});
|
|
3182
3234
|
else {
|
|
3183
|
-
const b = e.trackIndex || 0,
|
|
3235
|
+
const b = e.trackIndex || 0, m = Math.min(
|
|
3184
3236
|
Math.max(b, 0),
|
|
3185
3237
|
n.tracks.length
|
|
3186
3238
|
);
|
|
3187
|
-
n.tracks.splice(
|
|
3239
|
+
n.tracks.splice(m, 0, ...c);
|
|
3188
3240
|
}
|
|
3189
3241
|
n.trackItemsMap = {
|
|
3190
3242
|
...n.trackItemsMap,
|
|
@@ -3192,10 +3244,10 @@ async function Ia(t, r, e = {}) {
|
|
|
3192
3244
|
}, n.trackItemIds = [
|
|
3193
3245
|
...n.trackItemIds,
|
|
3194
3246
|
...u
|
|
3195
|
-
], n.duration =
|
|
3196
|
-
const
|
|
3247
|
+
], n.duration = Y(n.trackItemsMap);
|
|
3248
|
+
const h = n.tracks.filter((b) => b.magnetic);
|
|
3197
3249
|
return nt(
|
|
3198
|
-
|
|
3250
|
+
h,
|
|
3199
3251
|
n.trackItemsMap,
|
|
3200
3252
|
u
|
|
3201
3253
|
), {
|
|
@@ -3205,7 +3257,7 @@ async function Ia(t, r, e = {}) {
|
|
|
3205
3257
|
duration: n.duration
|
|
3206
3258
|
};
|
|
3207
3259
|
}
|
|
3208
|
-
async function
|
|
3260
|
+
async function va(t, r) {
|
|
3209
3261
|
const e = C(t), n = e.trackItemsMap[r.id], i = [];
|
|
3210
3262
|
if (!n) return {};
|
|
3211
3263
|
let o = n.animations || {};
|
|
@@ -3224,19 +3276,19 @@ async function ba(t, r) {
|
|
|
3224
3276
|
var u;
|
|
3225
3277
|
(u = c.details) != null && u.fonts && i.push(...c.details.fonts);
|
|
3226
3278
|
}
|
|
3227
|
-
), i.length > 0 && await
|
|
3279
|
+
), i.length > 0 && await rr(i), o.in && r.animations.in ? o.in = r.animations.in : o.out && r.animations.out ? o.out = r.animations.out : o.loop && r.animations.loop ? o.loop = r.animations.loop : !o.out && r.animations.out ? o.out = r.animations.out : !o.in && r.animations.in ? o.in = r.animations.in : !o.loop && r.animations.loop ? o.loop = r.animations.loop : o = r.animations, n.animations = o, {
|
|
3228
3280
|
trackItemsMap: e.trackItemsMap
|
|
3229
3281
|
};
|
|
3230
3282
|
}
|
|
3231
|
-
async function
|
|
3283
|
+
async function _a(t, r, e = {}) {
|
|
3232
3284
|
const n = C(t), i = [
|
|
3233
|
-
|
|
3285
|
+
na(r, {
|
|
3234
3286
|
size: n.size,
|
|
3235
3287
|
scaleMode: e.scaleMode,
|
|
3236
3288
|
scaleAspectRatio: e.scaleAspectRatio
|
|
3237
3289
|
})
|
|
3238
|
-
], o = await Promise.all(i), c = o.map((p) => p.id), u =
|
|
3239
|
-
u.duration =
|
|
3290
|
+
], o = await Promise.all(i), c = o.map((p) => p.id), u = vt(n, o, e);
|
|
3291
|
+
u.duration = Y(u.trackItemsMap);
|
|
3240
3292
|
const d = u.tracks.filter((p) => p.magnetic);
|
|
3241
3293
|
return nt(d, u.trackItemsMap, c), {
|
|
3242
3294
|
trackItemIds: u.trackItemIds,
|
|
@@ -3245,45 +3297,45 @@ async function ka(t, r, e = {}) {
|
|
|
3245
3297
|
duration: u.duration
|
|
3246
3298
|
};
|
|
3247
3299
|
}
|
|
3248
|
-
function
|
|
3249
|
-
const r =
|
|
3250
|
-
|
|
3251
|
-
), e =
|
|
3252
|
-
|
|
3253
|
-
), n =
|
|
3254
|
-
|
|
3255
|
-
), i =
|
|
3256
|
-
|
|
3257
|
-
), o =
|
|
3258
|
-
|
|
3259
|
-
), c =
|
|
3260
|
-
|
|
3261
|
-
), u =
|
|
3262
|
-
|
|
3263
|
-
), d =
|
|
3264
|
-
|
|
3300
|
+
function Sa(t) {
|
|
3301
|
+
const r = jt.pipe(
|
|
3302
|
+
Wt(({ key: f }) => f.startsWith(Xn))
|
|
3303
|
+
), e = jt.pipe(
|
|
3304
|
+
Wt(({ key: f }) => f.startsWith(Rn))
|
|
3305
|
+
), n = jt.pipe(
|
|
3306
|
+
Wt(({ key: f }) => f.startsWith(N))
|
|
3307
|
+
), i = jt.pipe(
|
|
3308
|
+
Wt(({ key: f }) => f.startsWith(Q))
|
|
3309
|
+
), o = jt.pipe(
|
|
3310
|
+
Wt(({ key: f }) => f.startsWith(Er))
|
|
3311
|
+
), c = jt.pipe(
|
|
3312
|
+
Wt(({ key: f }) => f.startsWith(ze))
|
|
3313
|
+
), u = jt.pipe(
|
|
3314
|
+
Wt(({ key: f }) => f.startsWith(Gt))
|
|
3315
|
+
), d = jt.pipe(
|
|
3316
|
+
Wt(({ key: f }) => f.startsWith(ds))
|
|
3265
3317
|
), p = r.subscribe(async (f) => {
|
|
3266
|
-
var
|
|
3318
|
+
var y;
|
|
3267
3319
|
if (f.key === Xn) {
|
|
3268
|
-
const { actions: v } = (
|
|
3269
|
-
v.forEach((
|
|
3270
|
-
Ns(
|
|
3320
|
+
const { actions: v } = (y = f.value) == null ? void 0 : y.payload;
|
|
3321
|
+
v.forEach((S) => {
|
|
3322
|
+
Ns(S.type, S.payload && { payload: S.payload });
|
|
3271
3323
|
});
|
|
3272
3324
|
}
|
|
3273
|
-
}),
|
|
3274
|
-
var
|
|
3325
|
+
}), h = e.subscribe(async (f) => {
|
|
3326
|
+
var y, v;
|
|
3275
3327
|
if (f.key === ni) {
|
|
3276
|
-
const
|
|
3328
|
+
const S = (y = f.value) == null ? void 0 : y.payload, A = await ia(t.getState(), S);
|
|
3277
3329
|
t.updateState(A, {
|
|
3278
3330
|
kind: "design:load",
|
|
3279
3331
|
updateHistory: !1
|
|
3280
3332
|
});
|
|
3281
3333
|
}
|
|
3282
3334
|
if (f.key === si) {
|
|
3283
|
-
const
|
|
3335
|
+
const S = (v = f.value) == null ? void 0 : v.payload;
|
|
3284
3336
|
t.updateState(
|
|
3285
3337
|
{
|
|
3286
|
-
size:
|
|
3338
|
+
size: S
|
|
3287
3339
|
},
|
|
3288
3340
|
{
|
|
3289
3341
|
kind: "design:resize",
|
|
@@ -3292,12 +3344,12 @@ function va(t) {
|
|
|
3292
3344
|
);
|
|
3293
3345
|
}
|
|
3294
3346
|
}), b = o.subscribe((f) => {
|
|
3295
|
-
if (f.key ===
|
|
3296
|
-
if (f.key ===
|
|
3297
|
-
}),
|
|
3298
|
-
var
|
|
3299
|
-
if (f.key ===
|
|
3300
|
-
const v = (
|
|
3347
|
+
if (f.key === Di) return t.undo();
|
|
3348
|
+
if (f.key === zi) return t.redo();
|
|
3349
|
+
}), m = d.subscribe((f) => {
|
|
3350
|
+
var y;
|
|
3351
|
+
if (f.key === $i) {
|
|
3352
|
+
const v = (y = f.value) == null ? void 0 : y.payload.scale;
|
|
3301
3353
|
t.updateState(
|
|
3302
3354
|
{
|
|
3303
3355
|
scale: v
|
|
@@ -3308,135 +3360,143 @@ function va(t) {
|
|
|
3308
3360
|
}
|
|
3309
3361
|
);
|
|
3310
3362
|
}
|
|
3311
|
-
}),
|
|
3312
|
-
var
|
|
3313
|
-
if (f.key ===
|
|
3314
|
-
const
|
|
3363
|
+
}), I = i.subscribe(async (f) => {
|
|
3364
|
+
var y, v, S, A;
|
|
3365
|
+
if (f.key === xi) {
|
|
3366
|
+
const E = ((y = f.value) == null ? void 0 : y.payload.trackItemIds) || [];
|
|
3315
3367
|
t.updateState(
|
|
3316
|
-
{ activeIds:
|
|
3368
|
+
{ activeIds: E },
|
|
3317
3369
|
{
|
|
3318
3370
|
kind: "update",
|
|
3319
3371
|
updateHistory: !1
|
|
3320
3372
|
}
|
|
3321
3373
|
);
|
|
3322
3374
|
}
|
|
3323
|
-
if (f.key ===
|
|
3324
|
-
const
|
|
3375
|
+
if (f.key === Oi && aa(t.getState()), f.key === Ri) {
|
|
3376
|
+
const E = (v = f.value) == null ? void 0 : v.payload.trackItemIds, T = Hi(t.getState(), E);
|
|
3325
3377
|
t.updateState(T, { updateHistory: !0, kind: "remove" });
|
|
3326
3378
|
}
|
|
3327
|
-
if (f.key ===
|
|
3328
|
-
const
|
|
3379
|
+
if (f.key === Ci) {
|
|
3380
|
+
const E = Xi(
|
|
3329
3381
|
t.getState(),
|
|
3330
|
-
(
|
|
3382
|
+
(S = f.value) == null ? void 0 : S.payload.trackItemIds
|
|
3331
3383
|
);
|
|
3332
|
-
t.updateState(
|
|
3384
|
+
t.updateState(E, {
|
|
3333
3385
|
updateHistory: !0,
|
|
3334
3386
|
kind: "update"
|
|
3335
3387
|
});
|
|
3336
3388
|
}
|
|
3337
3389
|
if (f.key === Pi) {
|
|
3338
|
-
const
|
|
3390
|
+
const E = (A = f.value) == null ? void 0 : A.payload, T = await Gi(t.getState(), E);
|
|
3339
3391
|
t.updateState(T, {
|
|
3340
3392
|
updateHistory: !0,
|
|
3341
3393
|
kind: "update:details"
|
|
3342
3394
|
});
|
|
3343
3395
|
}
|
|
3344
|
-
}),
|
|
3345
|
-
var H,
|
|
3346
|
-
const
|
|
3396
|
+
}), _ = n.subscribe(async (f) => {
|
|
3397
|
+
var H, R, V, x, F, tt, Xt, Kt, Ie, be, ke, ve, z, _e, Se, st, Vt, $, qt, we, it, Jt, Zt, Rt, Pt, Qt, Dt, te, zt, ee, Te, Ae, _t, $t, re, ne, ct, St, Ee, gt, wt, Ft, et, se, ie, Me, Lt, Tt, ae, At, yt;
|
|
3398
|
+
const y = C(t.getState()), v = ((R = (H = f.value) == null ? void 0 : H.options) == null ? void 0 : R.isSelected) || !1, S = (x = (V = f.value) == null ? void 0 : V.options) == null ? void 0 : x.scaleMode, A = (tt = (F = f.value) == null ? void 0 : F.options) == null ? void 0 : tt.scaleAspectRatio, E = (Kt = (Xt = f.value) == null ? void 0 : Xt.options) == null ? void 0 : Kt.trackIndex;
|
|
3347
3399
|
let T = {};
|
|
3348
|
-
f.key === di ? T = await
|
|
3349
|
-
trackIndex:
|
|
3350
|
-
}) : f.key === fi ? T = await
|
|
3351
|
-
size:
|
|
3352
|
-
}) : f.key === ii ? T = await
|
|
3353
|
-
targetTrackIndex:
|
|
3400
|
+
f.key === di ? T = await va(y, (Ie = f.value) == null ? void 0 : Ie.payload) : f.key === hi ? T = await da(y, (be = f.value) == null ? void 0 : be.payload, {
|
|
3401
|
+
trackIndex: E
|
|
3402
|
+
}) : f.key === fi ? T = await ka(y, (ke = f.value) == null ? void 0 : ke.payload, {
|
|
3403
|
+
size: y.size
|
|
3404
|
+
}) : f.key === ii ? T = await ma(y, (ve = f.value) == null ? void 0 : ve.payload, {
|
|
3405
|
+
targetTrackIndex: E,
|
|
3354
3406
|
targetTrackId: (z = f.value) == null ? void 0 : z.options.targetTrackId,
|
|
3355
|
-
size:
|
|
3356
|
-
}) : f.key === pi ? T = await
|
|
3357
|
-
scaleMode:
|
|
3407
|
+
size: y.size
|
|
3408
|
+
}) : f.key === pi ? T = await ba(y, (_e = f.value) == null ? void 0 : _e.payload, {
|
|
3409
|
+
scaleMode: S,
|
|
3358
3410
|
scaleAspectRatio: A,
|
|
3359
|
-
targetTrackIndex:
|
|
3360
|
-
targetTrackId: (st = (
|
|
3361
|
-
}) : f.key === ui ? T = await
|
|
3362
|
-
scaleMode:
|
|
3411
|
+
targetTrackIndex: E,
|
|
3412
|
+
targetTrackId: (st = (Se = f.value) == null ? void 0 : Se.options) == null ? void 0 : st.targetTrackId
|
|
3413
|
+
}) : f.key === ui ? T = await ya(y, (Vt = f.value) == null ? void 0 : Vt.payload, {
|
|
3414
|
+
scaleMode: S,
|
|
3363
3415
|
scaleAspectRatio: A,
|
|
3364
|
-
targetTrackIndex:
|
|
3416
|
+
targetTrackIndex: E,
|
|
3365
3417
|
targetTrackId: ($ = f.value) == null ? void 0 : $.options.targetTrackId
|
|
3366
|
-
}) : f.key === li ? T = await
|
|
3367
|
-
scaleMode:
|
|
3418
|
+
}) : f.key === li ? T = await ga(y, (qt = f.value) == null ? void 0 : qt.payload, {
|
|
3419
|
+
scaleMode: S,
|
|
3368
3420
|
scaleAspectRatio: A,
|
|
3369
|
-
targetTrackIndex:
|
|
3370
|
-
targetTrackId: (
|
|
3371
|
-
}) : f.key ===
|
|
3372
|
-
scaleMode:
|
|
3421
|
+
targetTrackIndex: E,
|
|
3422
|
+
targetTrackId: (we = f.value) == null ? void 0 : we.options.targetTrackId
|
|
3423
|
+
}) : f.key === Si ? T = await _a(y, (it = f.value) == null ? void 0 : it.payload, {
|
|
3424
|
+
scaleMode: S,
|
|
3373
3425
|
scaleAspectRatio: A,
|
|
3374
|
-
targetTrackIndex:
|
|
3375
|
-
targetTrackId: (Kt = f.value) == null ? void 0 : Kt.options.targetTrackId
|
|
3376
|
-
}) : f.key === ci ? T = await la(I, (Vt = f.value) == null ? void 0 : Vt.payload, {
|
|
3377
|
-
scaleMode: _,
|
|
3378
|
-
scaleAspectRatio: A,
|
|
3379
|
-
targetTrackIndex: M,
|
|
3380
|
-
targetTrackId: (Ot = f.value) == null ? void 0 : Ot.options.targetTrackId
|
|
3381
|
-
}) : f.key === oi ? T = await da(I, (Ct = f.value) == null ? void 0 : Ct.payload, {
|
|
3382
|
-
targetTrackIndex: M,
|
|
3426
|
+
targetTrackIndex: E,
|
|
3383
3427
|
targetTrackId: (Jt = f.value) == null ? void 0 : Jt.options.targetTrackId
|
|
3384
|
-
}) : f.key ===
|
|
3385
|
-
scaleMode:
|
|
3428
|
+
}) : f.key === ci ? T = await fa(y, (Zt = f.value) == null ? void 0 : Zt.payload, {
|
|
3429
|
+
scaleMode: S,
|
|
3430
|
+
scaleAspectRatio: A,
|
|
3431
|
+
targetTrackIndex: E,
|
|
3432
|
+
targetTrackId: (Rt = f.value) == null ? void 0 : Rt.options.targetTrackId
|
|
3433
|
+
}) : f.key === oi ? T = await pa(y, (Pt = f.value) == null ? void 0 : Pt.payload, {
|
|
3434
|
+
targetTrackIndex: E,
|
|
3435
|
+
targetTrackId: (Qt = f.value) == null ? void 0 : Qt.options.targetTrackId
|
|
3436
|
+
}) : f.key === ai ? T = await ha(y, (Dt = f.value) == null ? void 0 : Dt.payload, {
|
|
3437
|
+
scaleMode: S,
|
|
3386
3438
|
scaleAspectRatio: A,
|
|
3387
|
-
targetTrackIndex:
|
|
3388
|
-
targetTrackId: (
|
|
3389
|
-
}) : f.key === mi ? T = await
|
|
3390
|
-
scaleMode:
|
|
3439
|
+
targetTrackIndex: E,
|
|
3440
|
+
targetTrackId: (te = f.value) == null ? void 0 : te.options.targetTrackId
|
|
3441
|
+
}) : f.key === mi ? T = await Ia(y, (zt = f.value) == null ? void 0 : zt.payload, {
|
|
3442
|
+
scaleMode: S,
|
|
3391
3443
|
scaleAspectRatio: A,
|
|
3392
|
-
targetTrackIndex:
|
|
3393
|
-
targetTrackId: (
|
|
3394
|
-
}) : f.key === gi ? T = await
|
|
3395
|
-
|
|
3396
|
-
(
|
|
3444
|
+
targetTrackIndex: E,
|
|
3445
|
+
targetTrackId: (ee = f.value) == null ? void 0 : ee.options.targetTrackId
|
|
3446
|
+
}) : f.key === gi ? T = await fe(
|
|
3447
|
+
y,
|
|
3448
|
+
(Te = f.value) == null ? void 0 : Te.payload,
|
|
3397
3449
|
{
|
|
3398
|
-
targetTrackIndex:
|
|
3399
|
-
targetTrackId: (
|
|
3450
|
+
targetTrackIndex: E,
|
|
3451
|
+
targetTrackId: (_t = (Ae = f.value) == null ? void 0 : Ae.options) == null ? void 0 : _t.targetTrackId
|
|
3400
3452
|
},
|
|
3401
3453
|
"progress-bar"
|
|
3402
|
-
) : f.key ===
|
|
3403
|
-
|
|
3404
|
-
(
|
|
3454
|
+
) : f.key === ki ? T = await fe(
|
|
3455
|
+
y,
|
|
3456
|
+
($t = f.value) == null ? void 0 : $t.payload,
|
|
3405
3457
|
{
|
|
3406
|
-
targetTrackIndex:
|
|
3407
|
-
targetTrackId: (
|
|
3458
|
+
targetTrackIndex: E,
|
|
3459
|
+
targetTrackId: (ne = (re = f.value) == null ? void 0 : re.options) == null ? void 0 : ne.targetTrackId
|
|
3408
3460
|
},
|
|
3409
|
-
"progress-
|
|
3410
|
-
) : f.key ===
|
|
3411
|
-
|
|
3461
|
+
"progress-square"
|
|
3462
|
+
) : f.key === yi ? T = await fe(
|
|
3463
|
+
y,
|
|
3412
3464
|
(ct = f.value) == null ? void 0 : ct.payload,
|
|
3413
3465
|
{
|
|
3414
|
-
targetTrackIndex:
|
|
3415
|
-
targetTrackId: (
|
|
3466
|
+
targetTrackIndex: E,
|
|
3467
|
+
targetTrackId: (Ee = (St = f.value) == null ? void 0 : St.options) == null ? void 0 : Ee.targetTrackId
|
|
3416
3468
|
},
|
|
3417
|
-
"
|
|
3418
|
-
) : f.key ===
|
|
3419
|
-
|
|
3469
|
+
"progress-frame"
|
|
3470
|
+
) : f.key === Ii ? T = await fe(
|
|
3471
|
+
y,
|
|
3420
3472
|
(gt = f.value) == null ? void 0 : gt.payload,
|
|
3421
3473
|
{
|
|
3422
|
-
targetTrackIndex:
|
|
3423
|
-
targetTrackId: (
|
|
3474
|
+
targetTrackIndex: E,
|
|
3475
|
+
targetTrackId: (Ft = (wt = f.value) == null ? void 0 : wt.options) == null ? void 0 : Ft.targetTrackId
|
|
3424
3476
|
},
|
|
3425
|
-
"
|
|
3426
|
-
) : f.key ===
|
|
3427
|
-
|
|
3477
|
+
"radial-audio-bars"
|
|
3478
|
+
) : f.key === bi ? T = await fe(
|
|
3479
|
+
y,
|
|
3428
3480
|
(et = f.value) == null ? void 0 : et.payload,
|
|
3429
3481
|
{
|
|
3430
|
-
targetTrackIndex:
|
|
3431
|
-
targetTrackId: (
|
|
3482
|
+
targetTrackIndex: E,
|
|
3483
|
+
targetTrackId: (ie = (se = f.value) == null ? void 0 : se.options) == null ? void 0 : ie.targetTrackId
|
|
3484
|
+
},
|
|
3485
|
+
"lineal-audio-bars"
|
|
3486
|
+
) : f.key === vi ? T = await fe(
|
|
3487
|
+
y,
|
|
3488
|
+
(Me = f.value) == null ? void 0 : Me.payload,
|
|
3489
|
+
{
|
|
3490
|
+
targetTrackIndex: E,
|
|
3491
|
+
targetTrackId: (Tt = (Lt = f.value) == null ? void 0 : Lt.options) == null ? void 0 : Tt.targetTrackId
|
|
3432
3492
|
},
|
|
3433
3493
|
"wave-audio-bars"
|
|
3434
|
-
) : f.key ===
|
|
3435
|
-
|
|
3436
|
-
(
|
|
3494
|
+
) : f.key === _i && (T = await fe(
|
|
3495
|
+
y,
|
|
3496
|
+
(ae = f.value) == null ? void 0 : ae.payload,
|
|
3437
3497
|
{
|
|
3438
|
-
targetTrackIndex:
|
|
3439
|
-
targetTrackId: (
|
|
3498
|
+
targetTrackIndex: E,
|
|
3499
|
+
targetTrackId: (yt = (At = f.value) == null ? void 0 : At.options) == null ? void 0 : yt.targetTrackId
|
|
3440
3500
|
},
|
|
3441
3501
|
"hill-audio-bars"
|
|
3442
3502
|
)), v && T.trackItemIds && (T.activeIds = T.trackItemIds), t.updateState(T, {
|
|
@@ -3444,15 +3504,15 @@ function va(t) {
|
|
|
3444
3504
|
kind: "add"
|
|
3445
3505
|
});
|
|
3446
3506
|
}), k = c.subscribe(async (f) => {
|
|
3447
|
-
var
|
|
3448
|
-
if (f.key ===
|
|
3449
|
-
const v = (
|
|
3450
|
-
Object.keys(
|
|
3507
|
+
var y;
|
|
3508
|
+
if (f.key === Mi) {
|
|
3509
|
+
const v = (y = f.value) == null ? void 0 : y.options.time, S = oa(t.getState(), v);
|
|
3510
|
+
Object.keys(S).length > 0 && t.updateState(S, {
|
|
3451
3511
|
updateHistory: !0,
|
|
3452
3512
|
kind: "update"
|
|
3453
3513
|
});
|
|
3454
3514
|
}
|
|
3455
|
-
if (f.key ===
|
|
3515
|
+
if (f.key === Ei) {
|
|
3456
3516
|
const v = await ji(t.getState());
|
|
3457
3517
|
t.updateState(v, {
|
|
3458
3518
|
updateHistory: !0,
|
|
@@ -3460,19 +3520,19 @@ function va(t) {
|
|
|
3460
3520
|
});
|
|
3461
3521
|
}
|
|
3462
3522
|
}), w = u.subscribe(async (f) => {
|
|
3463
|
-
var
|
|
3464
|
-
if (f.key ===
|
|
3465
|
-
const A = await
|
|
3523
|
+
var y, v, S;
|
|
3524
|
+
if (f.key === wi) {
|
|
3525
|
+
const A = await ca(
|
|
3466
3526
|
t.getState(),
|
|
3467
|
-
(
|
|
3527
|
+
(y = f.value) == null ? void 0 : y.payload
|
|
3468
3528
|
);
|
|
3469
3529
|
t.updateState(A, {
|
|
3470
3530
|
updateHistory: !0,
|
|
3471
3531
|
kind: "update:details"
|
|
3472
3532
|
});
|
|
3473
3533
|
}
|
|
3474
|
-
if (f.key ===
|
|
3475
|
-
const A = await
|
|
3534
|
+
if (f.key === Ti) {
|
|
3535
|
+
const A = await ua(
|
|
3476
3536
|
t.getState(),
|
|
3477
3537
|
(v = f.value) == null ? void 0 : v.payload
|
|
3478
3538
|
);
|
|
@@ -3481,8 +3541,8 @@ function va(t) {
|
|
|
3481
3541
|
kind: "update:details"
|
|
3482
3542
|
});
|
|
3483
3543
|
}
|
|
3484
|
-
if (f.key ===
|
|
3485
|
-
const A =
|
|
3544
|
+
if (f.key === Ai) {
|
|
3545
|
+
const A = la(t.getState(), (S = f.value) == null ? void 0 : S.payload);
|
|
3486
3546
|
t.updateState(A, {
|
|
3487
3547
|
updateHistory: !0,
|
|
3488
3548
|
kind: "update:details"
|
|
@@ -3491,17 +3551,17 @@ function va(t) {
|
|
|
3491
3551
|
});
|
|
3492
3552
|
return {
|
|
3493
3553
|
unsubscribe: () => {
|
|
3494
|
-
|
|
3554
|
+
_.unsubscribe(), k.unsubscribe(), w.unsubscribe(), b.unsubscribe(), I.unsubscribe(), h.unsubscribe(), m.unsubscribe(), p.unsubscribe();
|
|
3495
3555
|
}
|
|
3496
3556
|
};
|
|
3497
3557
|
}
|
|
3498
|
-
const
|
|
3558
|
+
const wa = { Date: !0, RegExp: !0, String: !0, Number: !0 };
|
|
3499
3559
|
function xs(t, r, e = { cyclesFix: !0 }, n = []) {
|
|
3500
3560
|
var u, d;
|
|
3501
3561
|
let i = [];
|
|
3502
3562
|
const o = Array.isArray(t);
|
|
3503
3563
|
for (const p in t) {
|
|
3504
|
-
const
|
|
3564
|
+
const h = t[p], b = o ? +p : p;
|
|
3505
3565
|
if (!(p in r)) {
|
|
3506
3566
|
i.push({
|
|
3507
3567
|
type: "REMOVE",
|
|
@@ -3510,13 +3570,13 @@ function xs(t, r, e = { cyclesFix: !0 }, n = []) {
|
|
|
3510
3570
|
});
|
|
3511
3571
|
continue;
|
|
3512
3572
|
}
|
|
3513
|
-
const
|
|
3514
|
-
|
|
3515
|
-
!(Number.isNaN(
|
|
3573
|
+
const m = r[p], I = typeof h == "object" && typeof m == "object" && Array.isArray(h) === Array.isArray(m);
|
|
3574
|
+
h && m && I && !wa[(d = (u = Object.getPrototypeOf(h)) == null ? void 0 : u.constructor) == null ? void 0 : d.name] && (!e.cyclesFix || !n.includes(h)) ? i.push.apply(i, xs(h, m, e, e.cyclesFix ? n.concat([h]) : []).map((_) => (_.path.unshift(b), _))) : h !== m && // treat NaN values as equivalent
|
|
3575
|
+
!(Number.isNaN(h) && Number.isNaN(m)) && !(I && (isNaN(h) ? h + "" == m + "" : +h == +m)) && i.push({
|
|
3516
3576
|
path: [b],
|
|
3517
3577
|
type: "CHANGE",
|
|
3518
|
-
value:
|
|
3519
|
-
oldValue:
|
|
3578
|
+
value: m,
|
|
3579
|
+
oldValue: h
|
|
3520
3580
|
});
|
|
3521
3581
|
}
|
|
3522
3582
|
const c = Array.isArray(r);
|
|
@@ -3528,7 +3588,7 @@ function xs(t, r, e = { cyclesFix: !0 }, n = []) {
|
|
|
3528
3588
|
});
|
|
3529
3589
|
return i;
|
|
3530
3590
|
}
|
|
3531
|
-
var zn = Symbol.for("immer-nothing"),
|
|
3591
|
+
var zn = Symbol.for("immer-nothing"), qe = Symbol.for("immer-draftable"), ut = Symbol.for("immer-state"), Os = process.env.NODE_ENV !== "production" ? [
|
|
3532
3592
|
// All error codes, starting by 0:
|
|
3533
3593
|
function(t) {
|
|
3534
3594
|
return `The plugin for '${t}' has not been loaded into Immer. To enable the plugin, import and call \`enable${t}()\` when initializing your application.`;
|
|
@@ -3559,7 +3619,7 @@ var zn = Symbol.for("immer-nothing"), Ve = Symbol.for("immer-draftable"), ut = S
|
|
|
3559
3619
|
// Note: if more errors are added, the errorOffset in Patches.ts should be increased
|
|
3560
3620
|
// See Patches.ts for additional errors
|
|
3561
3621
|
] : [];
|
|
3562
|
-
function
|
|
3622
|
+
function B(t, ...r) {
|
|
3563
3623
|
if (process.env.NODE_ENV !== "production") {
|
|
3564
3624
|
const e = Os[t], n = typeof e == "function" ? e.apply(null, r) : e;
|
|
3565
3625
|
throw new Error(`[Immer] ${n}`);
|
|
@@ -3568,59 +3628,59 @@ function W(t, ...r) {
|
|
|
3568
3628
|
`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`
|
|
3569
3629
|
);
|
|
3570
3630
|
}
|
|
3571
|
-
var
|
|
3572
|
-
function
|
|
3631
|
+
var he = Object.getPrototypeOf;
|
|
3632
|
+
function me(t) {
|
|
3573
3633
|
return !!t && !!t[ut];
|
|
3574
3634
|
}
|
|
3575
|
-
function
|
|
3635
|
+
function Yt(t) {
|
|
3576
3636
|
var r;
|
|
3577
|
-
return t ? Cs(t) || Array.isArray(t) || !!t[
|
|
3637
|
+
return t ? Cs(t) || Array.isArray(t) || !!t[qe] || !!((r = t.constructor) != null && r[qe]) || sr(t) || ir(t) : !1;
|
|
3578
3638
|
}
|
|
3579
|
-
var
|
|
3639
|
+
var Ta = Object.prototype.constructor.toString();
|
|
3580
3640
|
function Cs(t) {
|
|
3581
3641
|
if (!t || typeof t != "object")
|
|
3582
3642
|
return !1;
|
|
3583
|
-
const r =
|
|
3643
|
+
const r = he(t);
|
|
3584
3644
|
if (r === null)
|
|
3585
3645
|
return !0;
|
|
3586
3646
|
const e = Object.hasOwnProperty.call(r, "constructor") && r.constructor;
|
|
3587
|
-
return e === Object ? !0 : typeof e == "function" && Function.toString.call(e) ===
|
|
3647
|
+
return e === Object ? !0 : typeof e == "function" && Function.toString.call(e) === Ta;
|
|
3588
3648
|
}
|
|
3589
3649
|
function Je(t, r) {
|
|
3590
|
-
|
|
3650
|
+
ge(t) === 0 ? Reflect.ownKeys(t).forEach((e) => {
|
|
3591
3651
|
r(e, t[e], t);
|
|
3592
3652
|
}) : t.forEach((e, n) => r(n, e, t));
|
|
3593
3653
|
}
|
|
3594
|
-
function
|
|
3654
|
+
function ge(t) {
|
|
3595
3655
|
const r = t[ut];
|
|
3596
|
-
return r ? r.type_ : Array.isArray(t) ? 1 :
|
|
3656
|
+
return r ? r.type_ : Array.isArray(t) ? 1 : sr(t) ? 2 : ir(t) ? 3 : 0;
|
|
3597
3657
|
}
|
|
3598
|
-
function
|
|
3599
|
-
return
|
|
3658
|
+
function Ze(t, r) {
|
|
3659
|
+
return ge(t) === 2 ? t.has(r) : Object.prototype.hasOwnProperty.call(t, r);
|
|
3600
3660
|
}
|
|
3601
3661
|
function gn(t, r) {
|
|
3602
|
-
return
|
|
3662
|
+
return ge(t) === 2 ? t.get(r) : t[r];
|
|
3603
3663
|
}
|
|
3604
|
-
function
|
|
3605
|
-
const n =
|
|
3664
|
+
function Rs(t, r, e) {
|
|
3665
|
+
const n = ge(t);
|
|
3606
3666
|
n === 2 ? t.set(r, e) : n === 3 ? t.add(e) : t[r] = e;
|
|
3607
3667
|
}
|
|
3608
|
-
function
|
|
3668
|
+
function Aa(t, r) {
|
|
3609
3669
|
return t === r ? t !== 0 || 1 / t === 1 / r : t !== t && r !== r;
|
|
3610
3670
|
}
|
|
3611
|
-
function
|
|
3671
|
+
function sr(t) {
|
|
3612
3672
|
return t instanceof Map;
|
|
3613
3673
|
}
|
|
3614
|
-
function
|
|
3674
|
+
function ir(t) {
|
|
3615
3675
|
return t instanceof Set;
|
|
3616
3676
|
}
|
|
3617
|
-
function
|
|
3677
|
+
function pe(t) {
|
|
3618
3678
|
return t.copy_ || t.base_;
|
|
3619
3679
|
}
|
|
3620
3680
|
function Tn(t, r) {
|
|
3621
|
-
if (nr(t))
|
|
3622
|
-
return new Map(t);
|
|
3623
3681
|
if (sr(t))
|
|
3682
|
+
return new Map(t);
|
|
3683
|
+
if (ir(t))
|
|
3624
3684
|
return new Set(t);
|
|
3625
3685
|
if (Array.isArray(t))
|
|
3626
3686
|
return Array.prototype.slice.call(t);
|
|
@@ -3639,9 +3699,9 @@ function Tn(t, r) {
|
|
|
3639
3699
|
value: t[c]
|
|
3640
3700
|
});
|
|
3641
3701
|
}
|
|
3642
|
-
return Object.create(
|
|
3702
|
+
return Object.create(he(t), n);
|
|
3643
3703
|
} else {
|
|
3644
|
-
const n =
|
|
3704
|
+
const n = he(t);
|
|
3645
3705
|
if (n !== null && e)
|
|
3646
3706
|
return { ...t };
|
|
3647
3707
|
const i = Object.create(n);
|
|
@@ -3649,27 +3709,27 @@ function Tn(t, r) {
|
|
|
3649
3709
|
}
|
|
3650
3710
|
}
|
|
3651
3711
|
function $n(t, r = !1) {
|
|
3652
|
-
return Mr(t) ||
|
|
3712
|
+
return Mr(t) || me(t) || !Yt(t) || (ge(t) > 1 && (t.set = t.add = t.clear = t.delete = Ea), Object.freeze(t), r && Object.entries(t).forEach(([e, n]) => $n(n, !0))), t;
|
|
3653
3713
|
}
|
|
3654
|
-
function
|
|
3655
|
-
|
|
3714
|
+
function Ea() {
|
|
3715
|
+
B(2);
|
|
3656
3716
|
}
|
|
3657
3717
|
function Mr(t) {
|
|
3658
3718
|
return Object.isFrozen(t);
|
|
3659
3719
|
}
|
|
3660
3720
|
var An = {};
|
|
3661
|
-
function
|
|
3721
|
+
function ye(t) {
|
|
3662
3722
|
const r = An[t];
|
|
3663
|
-
return r ||
|
|
3723
|
+
return r || B(0, t), r;
|
|
3664
3724
|
}
|
|
3665
|
-
function
|
|
3725
|
+
function Ma(t, r) {
|
|
3666
3726
|
An[t] || (An[t] = r);
|
|
3667
3727
|
}
|
|
3668
|
-
var
|
|
3669
|
-
function
|
|
3670
|
-
return
|
|
3728
|
+
var Qe;
|
|
3729
|
+
function Ps() {
|
|
3730
|
+
return Qe;
|
|
3671
3731
|
}
|
|
3672
|
-
function
|
|
3732
|
+
function xa(t, r) {
|
|
3673
3733
|
return {
|
|
3674
3734
|
drafts_: [],
|
|
3675
3735
|
parent_: t,
|
|
@@ -3680,26 +3740,26 @@ function Ea(t, r) {
|
|
|
3680
3740
|
unfinalizedDrafts_: 0
|
|
3681
3741
|
};
|
|
3682
3742
|
}
|
|
3683
|
-
function
|
|
3684
|
-
r && (
|
|
3743
|
+
function qn(t, r) {
|
|
3744
|
+
r && (ye("Patches"), t.patches_ = [], t.inversePatches_ = [], t.patchListener_ = r);
|
|
3685
3745
|
}
|
|
3686
3746
|
function En(t) {
|
|
3687
|
-
Mn(t), t.drafts_.forEach(
|
|
3747
|
+
Mn(t), t.drafts_.forEach(Oa), t.drafts_ = null;
|
|
3688
3748
|
}
|
|
3689
3749
|
function Mn(t) {
|
|
3690
|
-
t ===
|
|
3750
|
+
t === Qe && (Qe = t.parent_);
|
|
3691
3751
|
}
|
|
3692
|
-
function
|
|
3693
|
-
return
|
|
3752
|
+
function Jn(t) {
|
|
3753
|
+
return Qe = xa(Qe, t);
|
|
3694
3754
|
}
|
|
3695
|
-
function
|
|
3755
|
+
function Oa(t) {
|
|
3696
3756
|
const r = t[ut];
|
|
3697
3757
|
r.type_ === 0 || r.type_ === 1 ? r.revoke_() : r.revoked_ = !0;
|
|
3698
3758
|
}
|
|
3699
3759
|
function Zn(t, r) {
|
|
3700
3760
|
r.unfinalizedDrafts_ = r.drafts_.length;
|
|
3701
3761
|
const e = r.drafts_[0];
|
|
3702
|
-
return t !== void 0 && t !== e ? (e[ut].modified_ && (En(r),
|
|
3762
|
+
return t !== void 0 && t !== e ? (e[ut].modified_ && (En(r), B(4)), Yt(t) && (t = wr(r, t), r.parent_ || Tr(r, t)), r.patches_ && ye("Patches").generateReplacementPatches_(
|
|
3703
3763
|
e[ut].base_,
|
|
3704
3764
|
t,
|
|
3705
3765
|
r.patches_,
|
|
@@ -3726,7 +3786,7 @@ function wr(t, r, e) {
|
|
|
3726
3786
|
n.type_ === 3 && (o = new Set(i), i.clear(), c = !0), Je(
|
|
3727
3787
|
o,
|
|
3728
3788
|
(u, d) => Qn(t, n, i, u, d, e, c)
|
|
3729
|
-
), Tr(t, i, !1), e && t.patches_ &&
|
|
3789
|
+
), Tr(t, i, !1), e && t.patches_ && ye("Patches").generatePatches_(
|
|
3730
3790
|
n,
|
|
3731
3791
|
e,
|
|
3732
3792
|
t.patches_,
|
|
@@ -3736,15 +3796,15 @@ function wr(t, r, e) {
|
|
|
3736
3796
|
return n.copy_;
|
|
3737
3797
|
}
|
|
3738
3798
|
function Qn(t, r, e, n, i, o, c) {
|
|
3739
|
-
if (process.env.NODE_ENV !== "production" && i === e &&
|
|
3799
|
+
if (process.env.NODE_ENV !== "production" && i === e && B(5), me(i)) {
|
|
3740
3800
|
const u = o && r && r.type_ !== 3 && // Set objects are atomic since they have no keys.
|
|
3741
|
-
!
|
|
3742
|
-
if (
|
|
3801
|
+
!Ze(r.assigned_, n) ? o.concat(n) : void 0, d = wr(t, i, u);
|
|
3802
|
+
if (Rs(e, n, d), me(d))
|
|
3743
3803
|
t.canAutoFreeze_ = !1;
|
|
3744
3804
|
else
|
|
3745
3805
|
return;
|
|
3746
3806
|
} else c && e.add(i);
|
|
3747
|
-
if (
|
|
3807
|
+
if (Yt(i) && !Mr(i)) {
|
|
3748
3808
|
if (!t.immer_.autoFreeze_ && t.unfinalizedDrafts_ < 1)
|
|
3749
3809
|
return;
|
|
3750
3810
|
wr(t, i), (!r || !r.scope_.parent_) && typeof n != "symbol" && Object.prototype.propertyIsEnumerable.call(e, n) && Tr(t, i);
|
|
@@ -3753,11 +3813,11 @@ function Qn(t, r, e, n, i, o, c) {
|
|
|
3753
3813
|
function Tr(t, r, e = !1) {
|
|
3754
3814
|
!t.parent_ && t.immer_.autoFreeze_ && t.canAutoFreeze_ && $n(r, e);
|
|
3755
3815
|
}
|
|
3756
|
-
function
|
|
3816
|
+
function Ca(t, r) {
|
|
3757
3817
|
const e = Array.isArray(t), n = {
|
|
3758
3818
|
type_: e ? 1 : 0,
|
|
3759
3819
|
// Track which produce call this is associated with.
|
|
3760
|
-
scope_: r ? r.scope_ :
|
|
3820
|
+
scope_: r ? r.scope_ : Ps(),
|
|
3761
3821
|
// True for both shallow and deep changes.
|
|
3762
3822
|
modified_: !1,
|
|
3763
3823
|
// Used during finalization.
|
|
@@ -3778,7 +3838,7 @@ function xa(t, r) {
|
|
|
3778
3838
|
isManual_: !1
|
|
3779
3839
|
};
|
|
3780
3840
|
let i = n, o = Fn;
|
|
3781
|
-
e && (i = [n], o =
|
|
3841
|
+
e && (i = [n], o = tr);
|
|
3782
3842
|
const { revoke: c, proxy: u } = Proxy.revocable(i, o);
|
|
3783
3843
|
return n.draft_ = u, n.revoke_ = c, u;
|
|
3784
3844
|
}
|
|
@@ -3786,27 +3846,27 @@ var Fn = {
|
|
|
3786
3846
|
get(t, r) {
|
|
3787
3847
|
if (r === ut)
|
|
3788
3848
|
return t;
|
|
3789
|
-
const e =
|
|
3790
|
-
if (!
|
|
3791
|
-
return
|
|
3849
|
+
const e = pe(t);
|
|
3850
|
+
if (!Ze(e, r))
|
|
3851
|
+
return Ra(t, e, r);
|
|
3792
3852
|
const n = e[r];
|
|
3793
|
-
return t.finalized_ || !
|
|
3853
|
+
return t.finalized_ || !Yt(n) ? n : n === yn(t.base_, r) ? (In(t), t.copy_[r] = On(n, t)) : n;
|
|
3794
3854
|
},
|
|
3795
3855
|
has(t, r) {
|
|
3796
|
-
return r in
|
|
3856
|
+
return r in pe(t);
|
|
3797
3857
|
},
|
|
3798
3858
|
ownKeys(t) {
|
|
3799
|
-
return Reflect.ownKeys(
|
|
3859
|
+
return Reflect.ownKeys(pe(t));
|
|
3800
3860
|
},
|
|
3801
3861
|
set(t, r, e) {
|
|
3802
|
-
const n = Ds(
|
|
3862
|
+
const n = Ds(pe(t), r);
|
|
3803
3863
|
if (n != null && n.set)
|
|
3804
3864
|
return n.set.call(t.draft_, e), !0;
|
|
3805
3865
|
if (!t.modified_) {
|
|
3806
|
-
const i = yn(
|
|
3866
|
+
const i = yn(pe(t), r), o = i == null ? void 0 : i[ut];
|
|
3807
3867
|
if (o && o.base_ === e)
|
|
3808
3868
|
return t.copy_[r] = e, t.assigned_[r] = !1, !0;
|
|
3809
|
-
if (
|
|
3869
|
+
if (Aa(e, i) && (e !== void 0 || Ze(t.base_, r)))
|
|
3810
3870
|
return !0;
|
|
3811
3871
|
In(t), xn(t);
|
|
3812
3872
|
}
|
|
@@ -3820,7 +3880,7 @@ var Fn = {
|
|
|
3820
3880
|
// Note: We never coerce `desc.value` into an Immer draft, because we can't make
|
|
3821
3881
|
// the same guarantee in ES5 mode.
|
|
3822
3882
|
getOwnPropertyDescriptor(t, r) {
|
|
3823
|
-
const e =
|
|
3883
|
+
const e = pe(t), n = Reflect.getOwnPropertyDescriptor(e, r);
|
|
3824
3884
|
return n && {
|
|
3825
3885
|
writable: !0,
|
|
3826
3886
|
configurable: t.type_ !== 1 || r !== "length",
|
|
@@ -3829,31 +3889,31 @@ var Fn = {
|
|
|
3829
3889
|
};
|
|
3830
3890
|
},
|
|
3831
3891
|
defineProperty() {
|
|
3832
|
-
|
|
3892
|
+
B(11);
|
|
3833
3893
|
},
|
|
3834
3894
|
getPrototypeOf(t) {
|
|
3835
|
-
return
|
|
3895
|
+
return he(t.base_);
|
|
3836
3896
|
},
|
|
3837
3897
|
setPrototypeOf() {
|
|
3838
|
-
|
|
3898
|
+
B(12);
|
|
3839
3899
|
}
|
|
3840
|
-
},
|
|
3900
|
+
}, tr = {};
|
|
3841
3901
|
Je(Fn, (t, r) => {
|
|
3842
|
-
|
|
3902
|
+
tr[t] = function() {
|
|
3843
3903
|
return arguments[0] = arguments[0][0], r.apply(this, arguments);
|
|
3844
3904
|
};
|
|
3845
3905
|
});
|
|
3846
|
-
|
|
3847
|
-
return process.env.NODE_ENV !== "production" && isNaN(parseInt(r)) &&
|
|
3906
|
+
tr.deleteProperty = function(t, r) {
|
|
3907
|
+
return process.env.NODE_ENV !== "production" && isNaN(parseInt(r)) && B(13), tr.set.call(this, t, r, void 0);
|
|
3848
3908
|
};
|
|
3849
|
-
|
|
3850
|
-
return process.env.NODE_ENV !== "production" && r !== "length" && isNaN(parseInt(r)) &&
|
|
3909
|
+
tr.set = function(t, r, e) {
|
|
3910
|
+
return process.env.NODE_ENV !== "production" && r !== "length" && isNaN(parseInt(r)) && B(14), Fn.set.call(this, t[0], r, e, t[0]);
|
|
3851
3911
|
};
|
|
3852
3912
|
function yn(t, r) {
|
|
3853
3913
|
const e = t[ut];
|
|
3854
|
-
return (e ?
|
|
3914
|
+
return (e ? pe(e) : t)[r];
|
|
3855
3915
|
}
|
|
3856
|
-
function
|
|
3916
|
+
function Ra(t, r, e) {
|
|
3857
3917
|
var i;
|
|
3858
3918
|
const n = Ds(r, e);
|
|
3859
3919
|
return n ? "value" in n ? n.value : (
|
|
@@ -3865,12 +3925,12 @@ function Oa(t, r, e) {
|
|
|
3865
3925
|
function Ds(t, r) {
|
|
3866
3926
|
if (!(r in t))
|
|
3867
3927
|
return;
|
|
3868
|
-
let e =
|
|
3928
|
+
let e = he(t);
|
|
3869
3929
|
for (; e; ) {
|
|
3870
3930
|
const n = Object.getOwnPropertyDescriptor(e, r);
|
|
3871
3931
|
if (n)
|
|
3872
3932
|
return n;
|
|
3873
|
-
e =
|
|
3933
|
+
e = he(e);
|
|
3874
3934
|
}
|
|
3875
3935
|
}
|
|
3876
3936
|
function xn(t) {
|
|
@@ -3882,7 +3942,7 @@ function In(t) {
|
|
|
3882
3942
|
t.scope_.immer_.useStrictShallowCopy_
|
|
3883
3943
|
));
|
|
3884
3944
|
}
|
|
3885
|
-
var
|
|
3945
|
+
var Pa = class {
|
|
3886
3946
|
constructor(t) {
|
|
3887
3947
|
this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.produce = (r, e, n) => {
|
|
3888
3948
|
if (typeof r == "function" && typeof e != "function") {
|
|
@@ -3890,28 +3950,28 @@ var Ca = class {
|
|
|
3890
3950
|
e = r;
|
|
3891
3951
|
const c = this;
|
|
3892
3952
|
return function(d = o, ...p) {
|
|
3893
|
-
return c.produce(d, (
|
|
3953
|
+
return c.produce(d, (h) => e.call(this, h, ...p));
|
|
3894
3954
|
};
|
|
3895
3955
|
}
|
|
3896
|
-
typeof e != "function" &&
|
|
3956
|
+
typeof e != "function" && B(6), n !== void 0 && typeof n != "function" && B(7);
|
|
3897
3957
|
let i;
|
|
3898
|
-
if (
|
|
3899
|
-
const o =
|
|
3958
|
+
if (Yt(r)) {
|
|
3959
|
+
const o = Jn(this), c = On(r, void 0);
|
|
3900
3960
|
let u = !0;
|
|
3901
3961
|
try {
|
|
3902
3962
|
i = e(c), u = !1;
|
|
3903
3963
|
} finally {
|
|
3904
3964
|
u ? En(o) : Mn(o);
|
|
3905
3965
|
}
|
|
3906
|
-
return
|
|
3966
|
+
return qn(o, n), Zn(i, o);
|
|
3907
3967
|
} else if (!r || typeof r != "object") {
|
|
3908
3968
|
if (i = e(r), i === void 0 && (i = r), i === zn && (i = void 0), this.autoFreeze_ && $n(i, !0), n) {
|
|
3909
3969
|
const o = [], c = [];
|
|
3910
|
-
|
|
3970
|
+
ye("Patches").generateReplacementPatches_(r, i, o, c), n(o, c);
|
|
3911
3971
|
}
|
|
3912
3972
|
return i;
|
|
3913
3973
|
} else
|
|
3914
|
-
|
|
3974
|
+
B(1, r);
|
|
3915
3975
|
}, this.produceWithPatches = (r, e) => {
|
|
3916
3976
|
if (typeof r == "function")
|
|
3917
3977
|
return (c, ...u) => this.produceWithPatches(c, (d) => r(d, ...u));
|
|
@@ -3922,15 +3982,15 @@ var Ca = class {
|
|
|
3922
3982
|
}, typeof (t == null ? void 0 : t.autoFreeze) == "boolean" && this.setAutoFreeze(t.autoFreeze), typeof (t == null ? void 0 : t.useStrictShallowCopy) == "boolean" && this.setUseStrictShallowCopy(t.useStrictShallowCopy);
|
|
3923
3983
|
}
|
|
3924
3984
|
createDraft(t) {
|
|
3925
|
-
|
|
3926
|
-
const r =
|
|
3985
|
+
Yt(t) || B(8), me(t) && (t = Da(t));
|
|
3986
|
+
const r = Jn(this), e = On(t, void 0);
|
|
3927
3987
|
return e[ut].isManual_ = !0, Mn(r), e;
|
|
3928
3988
|
}
|
|
3929
3989
|
finishDraft(t, r) {
|
|
3930
3990
|
const e = t && t[ut];
|
|
3931
|
-
(!e || !e.isManual_) &&
|
|
3991
|
+
(!e || !e.isManual_) && B(9);
|
|
3932
3992
|
const { scope_: n } = e;
|
|
3933
|
-
return
|
|
3993
|
+
return qn(n, r), Zn(void 0, n);
|
|
3934
3994
|
}
|
|
3935
3995
|
/**
|
|
3936
3996
|
* Pass true to automatically freeze all copies created by Immer.
|
|
@@ -3958,22 +4018,22 @@ var Ca = class {
|
|
|
3958
4018
|
}
|
|
3959
4019
|
}
|
|
3960
4020
|
e > -1 && (r = r.slice(e + 1));
|
|
3961
|
-
const n =
|
|
3962
|
-
return
|
|
4021
|
+
const n = ye("Patches").applyPatches_;
|
|
4022
|
+
return me(t) ? n(t, r) : this.produce(
|
|
3963
4023
|
t,
|
|
3964
4024
|
(i) => n(i, r)
|
|
3965
4025
|
);
|
|
3966
4026
|
}
|
|
3967
4027
|
};
|
|
3968
4028
|
function On(t, r) {
|
|
3969
|
-
const e =
|
|
3970
|
-
return (r ? r.scope_ :
|
|
4029
|
+
const e = sr(t) ? ye("MapSet").proxyMap_(t, r) : ir(t) ? ye("MapSet").proxySet_(t, r) : Ca(t, r);
|
|
4030
|
+
return (r ? r.scope_ : Ps()).drafts_.push(e), e;
|
|
3971
4031
|
}
|
|
3972
|
-
function
|
|
3973
|
-
return
|
|
4032
|
+
function Da(t) {
|
|
4033
|
+
return me(t) || B(10, t), zs(t);
|
|
3974
4034
|
}
|
|
3975
4035
|
function zs(t) {
|
|
3976
|
-
if (!
|
|
4036
|
+
if (!Yt(t) || Mr(t))
|
|
3977
4037
|
return t;
|
|
3978
4038
|
const r = t[ut];
|
|
3979
4039
|
let e;
|
|
@@ -3984,216 +4044,216 @@ function zs(t) {
|
|
|
3984
4044
|
} else
|
|
3985
4045
|
e = Tn(t, !0);
|
|
3986
4046
|
return Je(e, (n, i) => {
|
|
3987
|
-
|
|
4047
|
+
Rs(e, n, zs(i));
|
|
3988
4048
|
}), r && (r.finalized_ = !1), e;
|
|
3989
4049
|
}
|
|
3990
4050
|
function ts() {
|
|
3991
4051
|
process.env.NODE_ENV !== "production" && Os.push(
|
|
3992
4052
|
'Sets cannot have "replace" patches.',
|
|
3993
|
-
function(
|
|
3994
|
-
return "Unsupported patch operation: " +
|
|
4053
|
+
function(m) {
|
|
4054
|
+
return "Unsupported patch operation: " + m;
|
|
3995
4055
|
},
|
|
3996
|
-
function(
|
|
3997
|
-
return "Cannot apply patch, path doesn't resolve: " +
|
|
4056
|
+
function(m) {
|
|
4057
|
+
return "Cannot apply patch, path doesn't resolve: " + m;
|
|
3998
4058
|
},
|
|
3999
4059
|
"Patching reserved attributes like __proto__, prototype and constructor is not allowed"
|
|
4000
4060
|
);
|
|
4001
4061
|
const r = "replace", e = "add", n = "remove";
|
|
4002
|
-
function i(
|
|
4003
|
-
switch (
|
|
4062
|
+
function i(m, I, _, k) {
|
|
4063
|
+
switch (m.type_) {
|
|
4004
4064
|
case 0:
|
|
4005
4065
|
case 2:
|
|
4006
4066
|
return c(
|
|
4007
|
-
|
|
4008
|
-
|
|
4009
|
-
|
|
4067
|
+
m,
|
|
4068
|
+
I,
|
|
4069
|
+
_,
|
|
4010
4070
|
k
|
|
4011
4071
|
);
|
|
4012
4072
|
case 1:
|
|
4013
|
-
return o(
|
|
4073
|
+
return o(m, I, _, k);
|
|
4014
4074
|
case 3:
|
|
4015
4075
|
return u(
|
|
4016
|
-
|
|
4017
|
-
|
|
4018
|
-
|
|
4076
|
+
m,
|
|
4077
|
+
I,
|
|
4078
|
+
_,
|
|
4019
4079
|
k
|
|
4020
4080
|
);
|
|
4021
4081
|
}
|
|
4022
4082
|
}
|
|
4023
|
-
function o(
|
|
4024
|
-
let { base_: w, assigned_: f } =
|
|
4025
|
-
|
|
4083
|
+
function o(m, I, _, k) {
|
|
4084
|
+
let { base_: w, assigned_: f } = m, y = m.copy_;
|
|
4085
|
+
y.length < w.length && ([w, y] = [y, w], [_, k] = [k, _]);
|
|
4026
4086
|
for (let v = 0; v < w.length; v++)
|
|
4027
|
-
if (f[v] &&
|
|
4028
|
-
const
|
|
4029
|
-
|
|
4087
|
+
if (f[v] && y[v] !== w[v]) {
|
|
4088
|
+
const S = I.concat([v]);
|
|
4089
|
+
_.push({
|
|
4030
4090
|
op: r,
|
|
4031
|
-
path:
|
|
4091
|
+
path: S,
|
|
4032
4092
|
// Need to maybe clone it, as it can in fact be the original value
|
|
4033
4093
|
// due to the base/copy inversion at the start of this function
|
|
4034
|
-
value: b(
|
|
4094
|
+
value: b(y[v])
|
|
4035
4095
|
}), k.push({
|
|
4036
4096
|
op: r,
|
|
4037
|
-
path:
|
|
4097
|
+
path: S,
|
|
4038
4098
|
value: b(w[v])
|
|
4039
4099
|
});
|
|
4040
4100
|
}
|
|
4041
|
-
for (let v = w.length; v <
|
|
4042
|
-
const
|
|
4043
|
-
|
|
4101
|
+
for (let v = w.length; v < y.length; v++) {
|
|
4102
|
+
const S = I.concat([v]);
|
|
4103
|
+
_.push({
|
|
4044
4104
|
op: e,
|
|
4045
|
-
path:
|
|
4105
|
+
path: S,
|
|
4046
4106
|
// Need to maybe clone it, as it can in fact be the original value
|
|
4047
4107
|
// due to the base/copy inversion at the start of this function
|
|
4048
|
-
value: b(
|
|
4108
|
+
value: b(y[v])
|
|
4049
4109
|
});
|
|
4050
4110
|
}
|
|
4051
|
-
for (let v =
|
|
4052
|
-
const
|
|
4111
|
+
for (let v = y.length - 1; w.length <= v; --v) {
|
|
4112
|
+
const S = I.concat([v]);
|
|
4053
4113
|
k.push({
|
|
4054
4114
|
op: n,
|
|
4055
|
-
path:
|
|
4115
|
+
path: S
|
|
4056
4116
|
});
|
|
4057
4117
|
}
|
|
4058
4118
|
}
|
|
4059
|
-
function c(
|
|
4060
|
-
const { base_: w, copy_: f } =
|
|
4061
|
-
Je(
|
|
4062
|
-
const
|
|
4063
|
-
if (
|
|
4119
|
+
function c(m, I, _, k) {
|
|
4120
|
+
const { base_: w, copy_: f } = m;
|
|
4121
|
+
Je(m.assigned_, (y, v) => {
|
|
4122
|
+
const S = gn(w, y), A = gn(f, y), E = v ? Ze(w, y) ? r : e : n;
|
|
4123
|
+
if (S === A && E === r)
|
|
4064
4124
|
return;
|
|
4065
|
-
const T =
|
|
4066
|
-
|
|
4067
|
-
|
|
4125
|
+
const T = I.concat(y);
|
|
4126
|
+
_.push(E === n ? { op: E, path: T } : { op: E, path: T, value: A }), k.push(
|
|
4127
|
+
E === e ? { op: n, path: T } : E === n ? { op: e, path: T, value: b(S) } : { op: r, path: T, value: b(S) }
|
|
4068
4128
|
);
|
|
4069
4129
|
});
|
|
4070
4130
|
}
|
|
4071
|
-
function u(
|
|
4072
|
-
let { base_: w, copy_: f } =
|
|
4131
|
+
function u(m, I, _, k) {
|
|
4132
|
+
let { base_: w, copy_: f } = m, y = 0;
|
|
4073
4133
|
w.forEach((v) => {
|
|
4074
4134
|
if (!f.has(v)) {
|
|
4075
|
-
const
|
|
4076
|
-
|
|
4135
|
+
const S = I.concat([y]);
|
|
4136
|
+
_.push({
|
|
4077
4137
|
op: n,
|
|
4078
|
-
path:
|
|
4138
|
+
path: S,
|
|
4079
4139
|
value: v
|
|
4080
4140
|
}), k.unshift({
|
|
4081
4141
|
op: e,
|
|
4082
|
-
path:
|
|
4142
|
+
path: S,
|
|
4083
4143
|
value: v
|
|
4084
4144
|
});
|
|
4085
4145
|
}
|
|
4086
|
-
|
|
4087
|
-
}),
|
|
4146
|
+
y++;
|
|
4147
|
+
}), y = 0, f.forEach((v) => {
|
|
4088
4148
|
if (!w.has(v)) {
|
|
4089
|
-
const
|
|
4090
|
-
|
|
4149
|
+
const S = I.concat([y]);
|
|
4150
|
+
_.push({
|
|
4091
4151
|
op: e,
|
|
4092
|
-
path:
|
|
4152
|
+
path: S,
|
|
4093
4153
|
value: v
|
|
4094
4154
|
}), k.unshift({
|
|
4095
4155
|
op: n,
|
|
4096
|
-
path:
|
|
4156
|
+
path: S,
|
|
4097
4157
|
value: v
|
|
4098
4158
|
});
|
|
4099
4159
|
}
|
|
4100
|
-
|
|
4160
|
+
y++;
|
|
4101
4161
|
});
|
|
4102
4162
|
}
|
|
4103
|
-
function d(
|
|
4104
|
-
|
|
4163
|
+
function d(m, I, _, k) {
|
|
4164
|
+
_.push({
|
|
4105
4165
|
op: r,
|
|
4106
4166
|
path: [],
|
|
4107
|
-
value:
|
|
4167
|
+
value: I === zn ? void 0 : I
|
|
4108
4168
|
}), k.push({
|
|
4109
4169
|
op: r,
|
|
4110
4170
|
path: [],
|
|
4111
|
-
value:
|
|
4171
|
+
value: m
|
|
4112
4172
|
});
|
|
4113
4173
|
}
|
|
4114
|
-
function p(
|
|
4115
|
-
return
|
|
4116
|
-
const { path: k, op: w } =
|
|
4117
|
-
let f =
|
|
4174
|
+
function p(m, I) {
|
|
4175
|
+
return I.forEach((_) => {
|
|
4176
|
+
const { path: k, op: w } = _;
|
|
4177
|
+
let f = m;
|
|
4118
4178
|
for (let A = 0; A < k.length - 1; A++) {
|
|
4119
|
-
const
|
|
4179
|
+
const E = ge(f);
|
|
4120
4180
|
let T = k[A];
|
|
4121
|
-
typeof T != "string" && typeof T != "number" && (T = "" + T), (
|
|
4181
|
+
typeof T != "string" && typeof T != "number" && (T = "" + T), (E === 0 || E === 1) && (T === "__proto__" || T === "constructor") && B(19), typeof f == "function" && T === "prototype" && B(19), f = gn(f, T), typeof f != "object" && B(18, k.join("/"));
|
|
4122
4182
|
}
|
|
4123
|
-
const
|
|
4183
|
+
const y = ge(f), v = h(_.value), S = k[k.length - 1];
|
|
4124
4184
|
switch (w) {
|
|
4125
4185
|
case r:
|
|
4126
|
-
switch (
|
|
4186
|
+
switch (y) {
|
|
4127
4187
|
case 2:
|
|
4128
|
-
return f.set(
|
|
4188
|
+
return f.set(S, v);
|
|
4129
4189
|
case 3:
|
|
4130
|
-
|
|
4190
|
+
B(16);
|
|
4131
4191
|
default:
|
|
4132
|
-
return f[
|
|
4192
|
+
return f[S] = v;
|
|
4133
4193
|
}
|
|
4134
4194
|
case e:
|
|
4135
|
-
switch (
|
|
4195
|
+
switch (y) {
|
|
4136
4196
|
case 1:
|
|
4137
|
-
return
|
|
4197
|
+
return S === "-" ? f.push(v) : f.splice(S, 0, v);
|
|
4138
4198
|
case 2:
|
|
4139
|
-
return f.set(
|
|
4199
|
+
return f.set(S, v);
|
|
4140
4200
|
case 3:
|
|
4141
4201
|
return f.add(v);
|
|
4142
4202
|
default:
|
|
4143
|
-
return f[
|
|
4203
|
+
return f[S] = v;
|
|
4144
4204
|
}
|
|
4145
4205
|
case n:
|
|
4146
|
-
switch (
|
|
4206
|
+
switch (y) {
|
|
4147
4207
|
case 1:
|
|
4148
|
-
return f.splice(
|
|
4208
|
+
return f.splice(S, 1);
|
|
4149
4209
|
case 2:
|
|
4150
|
-
return f.delete(
|
|
4210
|
+
return f.delete(S);
|
|
4151
4211
|
case 3:
|
|
4152
|
-
return f.delete(
|
|
4212
|
+
return f.delete(_.value);
|
|
4153
4213
|
default:
|
|
4154
|
-
return delete f[
|
|
4214
|
+
return delete f[S];
|
|
4155
4215
|
}
|
|
4156
4216
|
default:
|
|
4157
|
-
|
|
4217
|
+
B(17, w);
|
|
4158
4218
|
}
|
|
4159
|
-
}),
|
|
4160
|
-
}
|
|
4161
|
-
function m
|
|
4162
|
-
if (!
|
|
4163
|
-
return
|
|
4164
|
-
if (Array.isArray(
|
|
4165
|
-
return
|
|
4166
|
-
if (
|
|
4219
|
+
}), m;
|
|
4220
|
+
}
|
|
4221
|
+
function h(m) {
|
|
4222
|
+
if (!Yt(m))
|
|
4223
|
+
return m;
|
|
4224
|
+
if (Array.isArray(m))
|
|
4225
|
+
return m.map(h);
|
|
4226
|
+
if (sr(m))
|
|
4167
4227
|
return new Map(
|
|
4168
|
-
Array.from(
|
|
4228
|
+
Array.from(m.entries()).map(([_, k]) => [_, h(k)])
|
|
4169
4229
|
);
|
|
4170
|
-
if (
|
|
4171
|
-
return new Set(Array.from(
|
|
4172
|
-
const
|
|
4173
|
-
for (const
|
|
4174
|
-
|
|
4175
|
-
return
|
|
4230
|
+
if (ir(m))
|
|
4231
|
+
return new Set(Array.from(m).map(h));
|
|
4232
|
+
const I = Object.create(he(m));
|
|
4233
|
+
for (const _ in m)
|
|
4234
|
+
I[_] = h(m[_]);
|
|
4235
|
+
return Ze(m, qe) && (I[qe] = m[qe]), I;
|
|
4176
4236
|
}
|
|
4177
|
-
function b(
|
|
4178
|
-
return
|
|
4237
|
+
function b(m) {
|
|
4238
|
+
return me(m) ? h(m) : m;
|
|
4179
4239
|
}
|
|
4180
|
-
|
|
4240
|
+
Ma("Patches", {
|
|
4181
4241
|
applyPatches_: p,
|
|
4182
4242
|
generatePatches_: i,
|
|
4183
4243
|
generateReplacementPatches_: d
|
|
4184
4244
|
});
|
|
4185
4245
|
}
|
|
4186
|
-
var lt = new
|
|
4246
|
+
var lt = new Pa(), za = lt.produce;
|
|
4187
4247
|
lt.produceWithPatches.bind(
|
|
4188
4248
|
lt
|
|
4189
4249
|
);
|
|
4190
4250
|
lt.setAutoFreeze.bind(lt);
|
|
4191
4251
|
lt.setUseStrictShallowCopy.bind(lt);
|
|
4192
|
-
var
|
|
4252
|
+
var $a = lt.applyPatches.bind(lt);
|
|
4193
4253
|
lt.createDraft.bind(lt);
|
|
4194
4254
|
lt.finishDraft.bind(lt);
|
|
4195
|
-
var
|
|
4196
|
-
function
|
|
4255
|
+
var Fa = 9007199254740991, La = "[object Arguments]", Na = "[object Function]", Ha = "[object GeneratorFunction]", Ua = "[object Symbol]", ja = typeof dt == "object" && dt && dt.Object === Object && dt, Wa = typeof self == "object" && self && self.Object === Object && self, Ba = ja || Wa || Function("return this")();
|
|
4256
|
+
function Ya(t, r, e) {
|
|
4197
4257
|
switch (e.length) {
|
|
4198
4258
|
case 0:
|
|
4199
4259
|
return t.call(r);
|
|
@@ -4206,92 +4266,92 @@ function Ba(t, r, e) {
|
|
|
4206
4266
|
}
|
|
4207
4267
|
return t.apply(r, e);
|
|
4208
4268
|
}
|
|
4209
|
-
function
|
|
4269
|
+
function Ga(t, r) {
|
|
4210
4270
|
for (var e = -1, n = t ? t.length : 0, i = Array(n); ++e < n; )
|
|
4211
4271
|
i[e] = r(t[e], e, t);
|
|
4212
4272
|
return i;
|
|
4213
4273
|
}
|
|
4214
|
-
function
|
|
4274
|
+
function Xa(t, r) {
|
|
4215
4275
|
for (var e = -1, n = r.length, i = t.length; ++e < n; )
|
|
4216
4276
|
t[i + e] = r[e];
|
|
4217
4277
|
return t;
|
|
4218
4278
|
}
|
|
4219
|
-
var Ln = Object.prototype,
|
|
4220
|
-
function
|
|
4279
|
+
var Ln = Object.prototype, Ka = Ln.hasOwnProperty, Nn = Ln.toString, es = Ba.Symbol, Va = Ln.propertyIsEnumerable, rs = es ? es.isConcatSpreadable : void 0, ns = Math.max;
|
|
4280
|
+
function qa(t, r, e, n, i) {
|
|
4221
4281
|
var o = -1, c = t.length;
|
|
4222
|
-
for (e || (e =
|
|
4282
|
+
for (e || (e = to), i || (i = []); ++o < c; ) {
|
|
4223
4283
|
var u = t[o];
|
|
4224
|
-
e(u) ?
|
|
4284
|
+
e(u) ? Xa(i, u) : i[i.length] = u;
|
|
4225
4285
|
}
|
|
4226
4286
|
return i;
|
|
4227
4287
|
}
|
|
4228
|
-
function
|
|
4229
|
-
return t = Object(t),
|
|
4288
|
+
function Ja(t, r) {
|
|
4289
|
+
return t = Object(t), Za(t, r, function(e, n) {
|
|
4230
4290
|
return n in t;
|
|
4231
4291
|
});
|
|
4232
4292
|
}
|
|
4233
|
-
function
|
|
4293
|
+
function Za(t, r, e) {
|
|
4234
4294
|
for (var n = -1, i = r.length, o = {}; ++n < i; ) {
|
|
4235
4295
|
var c = r[n], u = t[c];
|
|
4236
4296
|
e(u, c) && (o[c] = u);
|
|
4237
4297
|
}
|
|
4238
4298
|
return o;
|
|
4239
4299
|
}
|
|
4240
|
-
function
|
|
4300
|
+
function Qa(t, r) {
|
|
4241
4301
|
return r = ns(r === void 0 ? t.length - 1 : r, 0), function() {
|
|
4242
4302
|
for (var e = arguments, n = -1, i = ns(e.length - r, 0), o = Array(i); ++n < i; )
|
|
4243
4303
|
o[n] = e[r + n];
|
|
4244
4304
|
n = -1;
|
|
4245
4305
|
for (var c = Array(r + 1); ++n < r; )
|
|
4246
4306
|
c[n] = e[n];
|
|
4247
|
-
return c[r] = o,
|
|
4307
|
+
return c[r] = o, Ya(t, this, c);
|
|
4248
4308
|
};
|
|
4249
4309
|
}
|
|
4250
|
-
function
|
|
4251
|
-
return
|
|
4310
|
+
function to(t) {
|
|
4311
|
+
return no(t) || ro(t) || !!(rs && t && t[rs]);
|
|
4252
4312
|
}
|
|
4253
|
-
function
|
|
4254
|
-
if (typeof t == "string" ||
|
|
4313
|
+
function eo(t) {
|
|
4314
|
+
if (typeof t == "string" || uo(t))
|
|
4255
4315
|
return t;
|
|
4256
4316
|
var r = t + "";
|
|
4257
4317
|
return r == "0" && 1 / t == -1 / 0 ? "-0" : r;
|
|
4258
4318
|
}
|
|
4259
|
-
function to(t) {
|
|
4260
|
-
return no(t) && Ya.call(t, "callee") && (!Xa.call(t, "callee") || Nn.call(t) == $a);
|
|
4261
|
-
}
|
|
4262
|
-
var eo = Array.isArray;
|
|
4263
4319
|
function ro(t) {
|
|
4264
|
-
return t
|
|
4265
|
-
}
|
|
4266
|
-
function no(t) {
|
|
4267
|
-
return $s(t) && ro(t);
|
|
4320
|
+
return io(t) && Ka.call(t, "callee") && (!Va.call(t, "callee") || Nn.call(t) == La);
|
|
4268
4321
|
}
|
|
4322
|
+
var no = Array.isArray;
|
|
4269
4323
|
function so(t) {
|
|
4270
|
-
|
|
4271
|
-
return r == Fa || r == La;
|
|
4324
|
+
return t != null && oo(t.length) && !ao(t);
|
|
4272
4325
|
}
|
|
4273
4326
|
function io(t) {
|
|
4274
|
-
return
|
|
4327
|
+
return $s(t) && so(t);
|
|
4275
4328
|
}
|
|
4276
4329
|
function ao(t) {
|
|
4330
|
+
var r = co(t) ? Nn.call(t) : "";
|
|
4331
|
+
return r == Na || r == Ha;
|
|
4332
|
+
}
|
|
4333
|
+
function oo(t) {
|
|
4334
|
+
return typeof t == "number" && t > -1 && t % 1 == 0 && t <= Fa;
|
|
4335
|
+
}
|
|
4336
|
+
function co(t) {
|
|
4277
4337
|
var r = typeof t;
|
|
4278
4338
|
return !!t && (r == "object" || r == "function");
|
|
4279
4339
|
}
|
|
4280
4340
|
function $s(t) {
|
|
4281
4341
|
return !!t && typeof t == "object";
|
|
4282
4342
|
}
|
|
4283
|
-
function
|
|
4284
|
-
return typeof t == "symbol" || $s(t) && Nn.call(t) ==
|
|
4343
|
+
function uo(t) {
|
|
4344
|
+
return typeof t == "symbol" || $s(t) && Nn.call(t) == Ua;
|
|
4285
4345
|
}
|
|
4286
|
-
var
|
|
4287
|
-
return t == null ? {} :
|
|
4288
|
-
}),
|
|
4289
|
-
const ss = /* @__PURE__ */ Cn(
|
|
4346
|
+
var lo = Qa(function(t, r) {
|
|
4347
|
+
return t == null ? {} : Ja(t, Ga(qa(r), eo));
|
|
4348
|
+
}), fo = lo;
|
|
4349
|
+
const ss = /* @__PURE__ */ Cn(fo), po = {
|
|
4290
4350
|
width: 1080,
|
|
4291
4351
|
height: 1920
|
|
4292
|
-
},
|
|
4293
|
-
size:
|
|
4294
|
-
fps:
|
|
4352
|
+
}, ho = 30, mo = {
|
|
4353
|
+
size: po,
|
|
4354
|
+
fps: ho,
|
|
4295
4355
|
tracks: [],
|
|
4296
4356
|
trackItemIds: [],
|
|
4297
4357
|
trackItemsMap: {},
|
|
@@ -4319,32 +4379,32 @@ const ss = /* @__PURE__ */ Cn(uo), lo = {
|
|
|
4319
4379
|
"trackItemIds",
|
|
4320
4380
|
"structure"
|
|
4321
4381
|
];
|
|
4322
|
-
class
|
|
4382
|
+
class Bo {
|
|
4323
4383
|
// Clean constructor with clear configuration interface
|
|
4324
4384
|
constructor(r, e) {
|
|
4325
|
-
|
|
4326
|
-
|
|
4327
|
-
|
|
4328
|
-
|
|
4329
|
-
|
|
4330
|
-
|
|
4331
|
-
|
|
4385
|
+
Ut(this, "stateSubject");
|
|
4386
|
+
Ut(this, "stateHistorySubject");
|
|
4387
|
+
Ut(this, "prevState");
|
|
4388
|
+
Ut(this, "background");
|
|
4389
|
+
Ut(this, "undos", []);
|
|
4390
|
+
Ut(this, "redos", []);
|
|
4391
|
+
Ut(this, "listener");
|
|
4332
4392
|
const n = Object.assign(
|
|
4333
4393
|
{},
|
|
4334
|
-
|
|
4394
|
+
mo,
|
|
4335
4395
|
r,
|
|
4336
4396
|
e != null && e.scale ? { scale: e.scale } : {}
|
|
4337
4397
|
);
|
|
4338
|
-
this.stateSubject = new
|
|
4398
|
+
this.stateSubject = new Gn(n), this.stateHistorySubject = new Gn({
|
|
4339
4399
|
handleRedo: !1,
|
|
4340
4400
|
handleUndo: !1
|
|
4341
|
-
}), this.background = n.background, this.prevState = n, (e != null && e.cors || e != null && e.acceptsMap) &&
|
|
4401
|
+
}), this.background = n.background, this.prevState = n, (e != null && e.cors || e != null && e.acceptsMap) && Wi({
|
|
4342
4402
|
cors: e.cors,
|
|
4343
4403
|
acceptsMap: e.acceptsMap
|
|
4344
4404
|
}), this.initListeners();
|
|
4345
4405
|
}
|
|
4346
4406
|
initListeners() {
|
|
4347
|
-
|
|
4407
|
+
Sa(this);
|
|
4348
4408
|
}
|
|
4349
4409
|
destroyListeners() {
|
|
4350
4410
|
this.listener && this.listener.unsubscribe();
|
|
@@ -4376,12 +4436,12 @@ class Uo {
|
|
|
4376
4436
|
...C(n),
|
|
4377
4437
|
...C(r)
|
|
4378
4438
|
};
|
|
4379
|
-
|
|
4439
|
+
W(n, i) || (e.updateHistory && this.updateHistory(i, e.kind), this.prevState = n, this.stateSubject.next(i));
|
|
4380
4440
|
}
|
|
4381
4441
|
// emit changes for design size
|
|
4382
4442
|
subscribeToUpdateStateDetails(r) {
|
|
4383
4443
|
return this.stateSubject.asObservable().subscribe((e) => {
|
|
4384
|
-
(!
|
|
4444
|
+
(!W(e.size, this.prevState.size) || !W(e.background, this.prevState.background)) && r({
|
|
4385
4445
|
size: e.size,
|
|
4386
4446
|
background: e.background
|
|
4387
4447
|
});
|
|
@@ -4390,7 +4450,7 @@ class Uo {
|
|
|
4390
4450
|
// Selectively subscribe to scale changes
|
|
4391
4451
|
subscribeToScale(r) {
|
|
4392
4452
|
return this.stateSubject.asObservable().subscribe((e) => {
|
|
4393
|
-
|
|
4453
|
+
W(e.scale, this.prevState.scale) || r({ scale: e.scale });
|
|
4394
4454
|
});
|
|
4395
4455
|
}
|
|
4396
4456
|
// Selectively subscribe to fps changes
|
|
@@ -4401,7 +4461,7 @@ class Uo {
|
|
|
4401
4461
|
}
|
|
4402
4462
|
subscribeToUpdateTrackItem(r) {
|
|
4403
4463
|
return this.stateSubject.asObservable().subscribe((e) => {
|
|
4404
|
-
|
|
4464
|
+
W(e.trackItemsMap, this.prevState.trackItemsMap) || r({ trackItemsMap: e.trackItemsMap });
|
|
4405
4465
|
});
|
|
4406
4466
|
}
|
|
4407
4467
|
subscribeToUpdateAnimations(r) {
|
|
@@ -4409,7 +4469,7 @@ class Uo {
|
|
|
4409
4469
|
const n = Object.keys(e.trackItemsMap).filter(
|
|
4410
4470
|
(i) => {
|
|
4411
4471
|
const o = this.prevState.trackItemsMap[i], c = e.trackItemsMap[i];
|
|
4412
|
-
return o && c && !
|
|
4472
|
+
return o && c && !W(o.animations, c.animations);
|
|
4413
4473
|
}
|
|
4414
4474
|
);
|
|
4415
4475
|
r({ trackItemsMap: e.trackItemsMap, changedAnimationIds: n });
|
|
@@ -4417,14 +4477,14 @@ class Uo {
|
|
|
4417
4477
|
}
|
|
4418
4478
|
subscribeToUpdateTrackItemTiming(r) {
|
|
4419
4479
|
return this.stateSubject.asObservable().subscribe((e) => {
|
|
4420
|
-
if (!
|
|
4480
|
+
if (!W(e.trackItemsMap, this.prevState.trackItemsMap)) {
|
|
4421
4481
|
const n = Object.keys(e.trackItemsMap).filter((o) => {
|
|
4422
4482
|
const c = this.prevState.trackItemsMap[o], u = e.trackItemsMap[o];
|
|
4423
|
-
return c && u && !
|
|
4483
|
+
return c && u && !W(c.trim, u.trim);
|
|
4424
4484
|
}), i = Object.keys(e.trackItemsMap).filter(
|
|
4425
4485
|
(o) => {
|
|
4426
4486
|
const c = this.prevState.trackItemsMap[o], u = e.trackItemsMap[o];
|
|
4427
|
-
return c && u && !
|
|
4487
|
+
return c && u && !W(c.display, u.display);
|
|
4428
4488
|
}
|
|
4429
4489
|
);
|
|
4430
4490
|
r({
|
|
@@ -4439,7 +4499,7 @@ class Uo {
|
|
|
4439
4499
|
return this.stateSubject.asObservable().subscribe((e) => {
|
|
4440
4500
|
Object.keys(e.trackItemsMap).some((i) => {
|
|
4441
4501
|
const o = this.prevState.trackItemsMap[i], c = e.trackItemsMap[i];
|
|
4442
|
-
return o && c && !
|
|
4502
|
+
return o && c && !W(o.details, c.details);
|
|
4443
4503
|
}) && r({ trackItemsMap: e.trackItemsMap });
|
|
4444
4504
|
});
|
|
4445
4505
|
}
|
|
@@ -4464,13 +4524,13 @@ class Uo {
|
|
|
4464
4524
|
subscribeToAddOrRemoveItems(r) {
|
|
4465
4525
|
return this.stateSubject.asObservable().subscribe((e) => {
|
|
4466
4526
|
const n = [...e.trackItemIds].sort(), i = [...this.prevState.trackItemIds].sort(), o = [...e.transitionIds].sort(), c = [...this.prevState.transitionIds].sort();
|
|
4467
|
-
(!
|
|
4527
|
+
(!W(n, i) || !W(o, c)) && r({ trackItemIds: e.trackItemIds });
|
|
4468
4528
|
});
|
|
4469
4529
|
}
|
|
4470
4530
|
// Selectively subscribe to activeIds changes
|
|
4471
4531
|
subscribeToActiveIds(r) {
|
|
4472
4532
|
return this.stateSubject.asObservable().subscribe((e) => {
|
|
4473
|
-
|
|
4533
|
+
W(e.activeIds, this.prevState.activeIds) || r({ activeIds: e.activeIds });
|
|
4474
4534
|
});
|
|
4475
4535
|
}
|
|
4476
4536
|
subscribeToTracks(r) {
|
|
@@ -4487,7 +4547,7 @@ class Uo {
|
|
|
4487
4547
|
// Selectively subscribe to multiple track-related properties
|
|
4488
4548
|
subscribeToState(r) {
|
|
4489
4549
|
return this.stateSubject.asObservable().subscribe((e) => {
|
|
4490
|
-
(!
|
|
4550
|
+
(!W(e.tracks, this.prevState.tracks) || !W(e.trackItemIds, this.prevState.trackItemIds) || !W(e.trackItemsMap, this.prevState.trackItemsMap) || !W(e.transitionIds, this.prevState.transitionIds) || !W(e.transitionsMap, this.prevState.transitionsMap) || !W(e.structure, this.prevState.structure)) && r({
|
|
4491
4551
|
tracks: e.tracks,
|
|
4492
4552
|
trackItemIds: e.trackItemIds,
|
|
4493
4553
|
trackItemsMap: e.trackItemsMap,
|
|
@@ -4508,14 +4568,14 @@ class Uo {
|
|
|
4508
4568
|
transitionsMap: u,
|
|
4509
4569
|
trackItemsMap: d,
|
|
4510
4570
|
structure: p
|
|
4511
|
-
} = this.getState(),
|
|
4571
|
+
} = this.getState(), h = C({
|
|
4512
4572
|
trackItemIds: i,
|
|
4513
4573
|
tracks: o,
|
|
4514
4574
|
transitionIds: c,
|
|
4515
4575
|
transitionsMap: u,
|
|
4516
4576
|
trackItemsMap: d,
|
|
4517
4577
|
structure: p
|
|
4518
|
-
}), b = [],
|
|
4578
|
+
}), b = [], m = [], I = [], _ = [], k = [], w = [];
|
|
4519
4579
|
e.forEach((x) => {
|
|
4520
4580
|
let F;
|
|
4521
4581
|
const tt = x.path.slice(1);
|
|
@@ -4531,41 +4591,41 @@ class Uo {
|
|
|
4531
4591
|
path: tt,
|
|
4532
4592
|
op: "add",
|
|
4533
4593
|
value: x.oldValue
|
|
4534
|
-
}, x.path.includes("trackItemIds") ?
|
|
4594
|
+
}, x.path.includes("trackItemIds") ? I.push(F) : x.path.includes("transitionIds") ? m.push(F) : x.path.includes("trackItemsMap") ? k.push(F) : x.path.includes("transitionsMap") ? _.push(F) : x.path.includes("tracks") ? b.push(F) : x.path.includes("structure") && w.push(F);
|
|
4535
4595
|
});
|
|
4536
4596
|
const f = this.applyPatch(
|
|
4537
|
-
|
|
4597
|
+
h.tracks,
|
|
4538
4598
|
b
|
|
4539
|
-
),
|
|
4540
|
-
|
|
4541
|
-
|
|
4599
|
+
), y = this.applyPatch(
|
|
4600
|
+
h.transitionIds,
|
|
4601
|
+
m
|
|
4542
4602
|
), v = this.applyPatch(
|
|
4543
|
-
|
|
4544
|
-
|
|
4545
|
-
),
|
|
4546
|
-
|
|
4547
|
-
|
|
4603
|
+
h.trackItemIds,
|
|
4604
|
+
I
|
|
4605
|
+
), S = this.applyPatch(
|
|
4606
|
+
h.transitionsMap,
|
|
4607
|
+
_
|
|
4548
4608
|
), A = this.applyPatch(
|
|
4549
|
-
|
|
4609
|
+
h.trackItemsMap,
|
|
4550
4610
|
k
|
|
4551
|
-
),
|
|
4552
|
-
|
|
4611
|
+
), E = this.applyPatch(
|
|
4612
|
+
h.structure,
|
|
4553
4613
|
w
|
|
4554
4614
|
), T = C({
|
|
4555
4615
|
tracks: f,
|
|
4556
|
-
transitionIds:
|
|
4616
|
+
transitionIds: y,
|
|
4557
4617
|
trackItemIds: v,
|
|
4558
|
-
transitionsMap:
|
|
4618
|
+
transitionsMap: S,
|
|
4559
4619
|
trackItemsMap: A,
|
|
4560
|
-
structure:
|
|
4561
|
-
}), H = C(this.getState()),
|
|
4620
|
+
structure: E
|
|
4621
|
+
}), H = C(this.getState()), R = { ...H, ...T };
|
|
4562
4622
|
this.prevState = H, this.redos.push({ redos: e, type: n });
|
|
4563
|
-
const V =
|
|
4564
|
-
this.stateSubject.next({ ...
|
|
4623
|
+
const V = Y(R.trackItemsMap);
|
|
4624
|
+
this.stateSubject.next({ ...R, duration: V }), this.stateHistorySubject.next({ handleRedo: !1, handleUndo: !0 }), this.updateState(R, { updateHistory: !1 });
|
|
4565
4625
|
}
|
|
4566
4626
|
applyPatch(r, e) {
|
|
4567
|
-
return e.reverse().reduce((n, i) =>
|
|
4568
|
-
|
|
4627
|
+
return e.reverse().reduce((n, i) => za(n, (o) => {
|
|
4628
|
+
$a(o, [i]);
|
|
4569
4629
|
}), r);
|
|
4570
4630
|
}
|
|
4571
4631
|
redo() {
|
|
@@ -4579,14 +4639,14 @@ class Uo {
|
|
|
4579
4639
|
transitionsMap: u,
|
|
4580
4640
|
trackItemsMap: d,
|
|
4581
4641
|
structure: p
|
|
4582
|
-
} = this.getState(),
|
|
4642
|
+
} = this.getState(), h = C({
|
|
4583
4643
|
trackItemIds: i,
|
|
4584
4644
|
tracks: o,
|
|
4585
4645
|
transitionIds: c,
|
|
4586
4646
|
transitionsMap: u,
|
|
4587
4647
|
trackItemsMap: d,
|
|
4588
4648
|
structure: p
|
|
4589
|
-
}), b = [],
|
|
4649
|
+
}), b = [], m = [], I = [], _ = [], k = [], w = [];
|
|
4590
4650
|
e.forEach((x) => {
|
|
4591
4651
|
let F;
|
|
4592
4652
|
const tt = x.path.slice(1);
|
|
@@ -4602,37 +4662,37 @@ class Uo {
|
|
|
4602
4662
|
path: tt,
|
|
4603
4663
|
op: "remove",
|
|
4604
4664
|
value: x.oldValue
|
|
4605
|
-
}, x.path.includes("trackItemIds") ?
|
|
4665
|
+
}, x.path.includes("trackItemIds") ? I.push(F) : x.path.includes("transitionIds") ? m.push(F) : x.path.includes("trackItemsMap") ? k.push(F) : x.path.includes("transitionsMap") ? _.push(F) : x.path.includes("structure") ? w.push(F) : b.push(F);
|
|
4606
4666
|
});
|
|
4607
4667
|
const f = this.applyPatch(
|
|
4608
|
-
|
|
4668
|
+
h.tracks,
|
|
4609
4669
|
b
|
|
4610
|
-
),
|
|
4611
|
-
|
|
4612
|
-
|
|
4670
|
+
), y = this.applyPatch(
|
|
4671
|
+
h.transitionIds,
|
|
4672
|
+
m
|
|
4613
4673
|
), v = this.applyPatch(
|
|
4614
|
-
|
|
4615
|
-
|
|
4616
|
-
),
|
|
4617
|
-
|
|
4618
|
-
|
|
4674
|
+
h.trackItemIds,
|
|
4675
|
+
I
|
|
4676
|
+
), S = this.applyPatch(
|
|
4677
|
+
h.transitionsMap,
|
|
4678
|
+
_
|
|
4619
4679
|
), A = this.applyPatch(
|
|
4620
|
-
|
|
4680
|
+
h.trackItemsMap,
|
|
4621
4681
|
k
|
|
4622
|
-
),
|
|
4623
|
-
|
|
4682
|
+
), E = this.applyPatch(
|
|
4683
|
+
h.structure,
|
|
4624
4684
|
w
|
|
4625
4685
|
), T = C({
|
|
4626
4686
|
tracks: f,
|
|
4627
|
-
transitionIds:
|
|
4687
|
+
transitionIds: y,
|
|
4628
4688
|
trackItemIds: v,
|
|
4629
|
-
transitionsMap:
|
|
4689
|
+
transitionsMap: S,
|
|
4630
4690
|
trackItemsMap: A,
|
|
4631
|
-
structure:
|
|
4632
|
-
}), H = C(this.getState()),
|
|
4691
|
+
structure: E
|
|
4692
|
+
}), H = C(this.getState()), R = { ...H, ...T };
|
|
4633
4693
|
this.prevState = H, this.undos.push({ undos: e, type: n });
|
|
4634
|
-
const V =
|
|
4635
|
-
this.stateSubject.next({ ...
|
|
4694
|
+
const V = Y(R.trackItemsMap);
|
|
4695
|
+
this.stateSubject.next({ ...R, duration: V }), this.stateHistorySubject.next({ handleRedo: !0, handleUndo: !1 }), this.updateState(R, { updateHistory: !1 });
|
|
4636
4696
|
}
|
|
4637
4697
|
toJSON() {
|
|
4638
4698
|
const {
|
|
@@ -4656,77 +4716,78 @@ class Uo {
|
|
|
4656
4716
|
}
|
|
4657
4717
|
}
|
|
4658
4718
|
export {
|
|
4659
|
-
|
|
4660
|
-
|
|
4661
|
-
|
|
4662
|
-
|
|
4663
|
-
|
|
4664
|
-
|
|
4719
|
+
Ro as ACTIVE_CLONE,
|
|
4720
|
+
Co as ACTIVE_DELETE,
|
|
4721
|
+
Ei as ACTIVE_PASTE,
|
|
4722
|
+
ze as ACTIVE_PREFIX,
|
|
4723
|
+
Oo as ACTIVE_SET,
|
|
4724
|
+
Mi as ACTIVE_SPLIT,
|
|
4665
4725
|
di as ADD_ANIMATION,
|
|
4666
4726
|
oi as ADD_AUDIO,
|
|
4667
4727
|
fi as ADD_CAPTIONS,
|
|
4668
4728
|
mi as ADD_COMPOSITION,
|
|
4669
|
-
|
|
4729
|
+
_i as ADD_HILL_AUDIO_BARS,
|
|
4670
4730
|
ui as ADD_ILLUSTRATION,
|
|
4671
4731
|
ci as ADD_IMAGE,
|
|
4672
4732
|
hi as ADD_ITEMS,
|
|
4673
4733
|
bi as ADD_LINEAL_AUDIO_BARS,
|
|
4674
|
-
|
|
4675
|
-
|
|
4734
|
+
So as ADD_MASK,
|
|
4735
|
+
_o as ADD_PLACEHOLDER,
|
|
4676
4736
|
N as ADD_PREFIX,
|
|
4677
4737
|
gi as ADD_PROGRESS_BAR,
|
|
4678
4738
|
yi as ADD_PROGRESS_FRAME,
|
|
4739
|
+
ki as ADD_PROGRESS_SQUARE,
|
|
4679
4740
|
Ii as ADD_RADIAL_AUDIO_BARS,
|
|
4680
|
-
|
|
4741
|
+
Si as ADD_RECT,
|
|
4681
4742
|
li as ADD_SHAPE,
|
|
4682
|
-
|
|
4743
|
+
Io as ADD_SUFFIX,
|
|
4683
4744
|
pi as ADD_TEMPLATE,
|
|
4684
4745
|
ii as ADD_TEXT,
|
|
4685
|
-
|
|
4746
|
+
wo as ADD_TRANSITION,
|
|
4686
4747
|
ai as ADD_VIDEO,
|
|
4687
|
-
|
|
4748
|
+
vi as ADD_WAVE_AUDIO_BARS,
|
|
4688
4749
|
ri as BULK_PREFIX,
|
|
4689
|
-
|
|
4750
|
+
Mo as DELETE_TEMPLATE_ITEM,
|
|
4690
4751
|
ni as DESIGN_LOAD,
|
|
4691
|
-
|
|
4752
|
+
Rn as DESIGN_PREFIX,
|
|
4692
4753
|
si as DESIGN_RESIZE,
|
|
4693
|
-
|
|
4754
|
+
Ai as EDIT_BACKGROUND_EDITOR,
|
|
4694
4755
|
Xn as EDIT_BULK,
|
|
4695
|
-
|
|
4696
|
-
|
|
4697
|
-
|
|
4698
|
-
|
|
4699
|
-
|
|
4700
|
-
|
|
4756
|
+
wi as EDIT_OBJECT,
|
|
4757
|
+
Gt as EDIT_PREFIX,
|
|
4758
|
+
Ao as EDIT_SHAPE,
|
|
4759
|
+
Eo as EDIT_TEMPLATE_ITEM,
|
|
4760
|
+
To as EDIT_TEXT,
|
|
4761
|
+
xo as ENTER_EDIT_MODE,
|
|
4701
4762
|
Er as HISTORY_PREFIX,
|
|
4702
|
-
|
|
4703
|
-
|
|
4704
|
-
|
|
4705
|
-
|
|
4706
|
-
|
|
4707
|
-
|
|
4708
|
-
|
|
4709
|
-
|
|
4710
|
-
|
|
4711
|
-
|
|
4712
|
-
|
|
4713
|
-
|
|
4763
|
+
zi as HISTORY_REDO,
|
|
4764
|
+
Wo as HISTORY_RESET,
|
|
4765
|
+
Di as HISTORY_UNDO,
|
|
4766
|
+
Ci as LAYER_CLONE,
|
|
4767
|
+
Oi as LAYER_COPY,
|
|
4768
|
+
jo as LAYER_CUT,
|
|
4769
|
+
Ri as LAYER_DELETE,
|
|
4770
|
+
No as LAYER_EDITING_NAME,
|
|
4771
|
+
Do as LAYER_HIDDEN,
|
|
4772
|
+
Po as LAYER_LOCKED,
|
|
4773
|
+
zo as LAYER_MOVE,
|
|
4774
|
+
Ho as LAYER_PASTE,
|
|
4714
4775
|
Q as LAYER_PREFIX,
|
|
4715
|
-
|
|
4776
|
+
Lo as LAYER_RENAME,
|
|
4716
4777
|
Pi as LAYER_REPLACE,
|
|
4717
|
-
|
|
4718
|
-
|
|
4719
|
-
|
|
4720
|
-
|
|
4721
|
-
|
|
4722
|
-
|
|
4778
|
+
xi as LAYER_SELECT,
|
|
4779
|
+
$o as LAYER_SELECTION,
|
|
4780
|
+
Fo as LAYER_SEND_TO,
|
|
4781
|
+
Uo as LAYER_SPLIT,
|
|
4782
|
+
Ti as REPLACE_MEDIA,
|
|
4783
|
+
vo as STATE_CHANGED,
|
|
4723
4784
|
ei as STATE_PREFIX,
|
|
4724
|
-
|
|
4785
|
+
$i as TIMELINE_SCALE_CHANGED,
|
|
4725
4786
|
ds as TIMELINE_SCALE_PREFIX,
|
|
4726
|
-
|
|
4727
|
-
|
|
4787
|
+
bo as TRACKS_CHANGED,
|
|
4788
|
+
ko as TRACK_ITEMS_CHANGED,
|
|
4728
4789
|
ti as TRACK_ITEMS_PREFIX,
|
|
4729
4790
|
Qs as TRACK_PREFIX,
|
|
4730
|
-
|
|
4791
|
+
Bo as default,
|
|
4731
4792
|
Bi as getAcceptsMap
|
|
4732
4793
|
};
|