@designcombo/state 3.1.4 → 3.1.5
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/index.es.js +791 -784
- package/dist/index.umd.js +2 -2
- package/dist/utils/load-item.d.ts +3 -0
- package/dist/utils/media.d.ts +7 -0
- package/package.json +3 -3
package/dist/index.es.js
CHANGED
@@ -1,12 +1,12 @@
|
|
1
|
-
var
|
2
|
-
var
|
3
|
-
var
|
1
|
+
var Ta = Object.defineProperty;
|
2
|
+
var Ma = (t, r, n) => r in t ? Ta(t, r, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[r] = n;
|
3
|
+
var se = (t, r, n) => Ma(t, typeof r != "symbol" ? r + "" : r, n);
|
4
4
|
import { subject as ie, filter as oe } from "@designcombo/events";
|
5
5
|
var fn = function(t, r) {
|
6
|
-
return fn = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n,
|
7
|
-
n.__proto__ =
|
8
|
-
} || function(n,
|
9
|
-
for (var i in
|
6
|
+
return fn = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, a) {
|
7
|
+
n.__proto__ = a;
|
8
|
+
} || function(n, a) {
|
9
|
+
for (var i in a) Object.prototype.hasOwnProperty.call(a, i) && (n[i] = a[i]);
|
10
10
|
}, fn(t, r);
|
11
11
|
};
|
12
12
|
function We(t, r) {
|
@@ -19,11 +19,11 @@ function We(t, r) {
|
|
19
19
|
t.prototype = r === null ? Object.create(r) : (n.prototype = r.prototype, new n());
|
20
20
|
}
|
21
21
|
function pn(t) {
|
22
|
-
var r = typeof Symbol == "function" && Symbol.iterator, n = r && t[r],
|
22
|
+
var r = typeof Symbol == "function" && Symbol.iterator, n = r && t[r], a = 0;
|
23
23
|
if (n) return n.call(t);
|
24
24
|
if (t && typeof t.length == "number") return {
|
25
25
|
next: function() {
|
26
|
-
return t &&
|
26
|
+
return t && a >= t.length && (t = void 0), { value: t && t[a++], done: !t };
|
27
27
|
}
|
28
28
|
};
|
29
29
|
throw new TypeError(r ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
@@ -31,14 +31,14 @@ function pn(t) {
|
|
31
31
|
function hn(t, r) {
|
32
32
|
var n = typeof Symbol == "function" && t[Symbol.iterator];
|
33
33
|
if (!n) return t;
|
34
|
-
var
|
34
|
+
var a = n.call(t), i, c = [], f;
|
35
35
|
try {
|
36
|
-
for (; (r === void 0 || r-- > 0) && !(i =
|
36
|
+
for (; (r === void 0 || r-- > 0) && !(i = a.next()).done; ) c.push(i.value);
|
37
37
|
} catch (p) {
|
38
38
|
f = { error: p };
|
39
39
|
} finally {
|
40
40
|
try {
|
41
|
-
i && !i.done && (n =
|
41
|
+
i && !i.done && (n = a.return) && n.call(a);
|
42
42
|
} finally {
|
43
43
|
if (f) throw f.error;
|
44
44
|
}
|
@@ -46,24 +46,24 @@ function hn(t, r) {
|
|
46
46
|
return c;
|
47
47
|
}
|
48
48
|
function mn(t, r, n) {
|
49
|
-
if (n || arguments.length === 2) for (var
|
50
|
-
(c || !(
|
49
|
+
if (n || arguments.length === 2) for (var a = 0, i = r.length, c; a < i; a++)
|
50
|
+
(c || !(a in r)) && (c || (c = Array.prototype.slice.call(r, 0, a)), c[a] = r[a]);
|
51
51
|
return t.concat(c || Array.prototype.slice.call(r));
|
52
52
|
}
|
53
53
|
function $t(t) {
|
54
54
|
return typeof t == "function";
|
55
55
|
}
|
56
56
|
function Qn(t) {
|
57
|
-
var r = function(
|
58
|
-
Error.call(
|
57
|
+
var r = function(a) {
|
58
|
+
Error.call(a), a.stack = new Error().stack;
|
59
59
|
}, n = t(r);
|
60
60
|
return n.prototype = Object.create(Error.prototype), n.prototype.constructor = n, n;
|
61
61
|
}
|
62
62
|
var on = Qn(function(t) {
|
63
63
|
return function(n) {
|
64
64
|
t(this), this.message = n ? n.length + ` errors occurred during unsubscription:
|
65
|
-
` + n.map(function(
|
66
|
-
return i + 1 + ") " +
|
65
|
+
` + n.map(function(a, i) {
|
66
|
+
return i + 1 + ") " + a.toString();
|
67
67
|
}).join(`
|
68
68
|
`) : "", this.name = "UnsubscriptionError", this.errors = n;
|
69
69
|
};
|
@@ -79,7 +79,7 @@ var gr = function() {
|
|
79
79
|
this.initialTeardown = r, this.closed = !1, this._parentage = null, this._finalizers = null;
|
80
80
|
}
|
81
81
|
return t.prototype.unsubscribe = function() {
|
82
|
-
var r, n,
|
82
|
+
var r, n, a, i, c;
|
83
83
|
if (!this.closed) {
|
84
84
|
this.closed = !0;
|
85
85
|
var f = this._parentage;
|
@@ -121,12 +121,12 @@ var gr = function() {
|
|
121
121
|
}
|
122
122
|
}
|
123
123
|
} catch (u) {
|
124
|
-
|
124
|
+
a = { error: u };
|
125
125
|
} finally {
|
126
126
|
try {
|
127
127
|
T && !T.done && (i = y.return) && i.call(y);
|
128
128
|
} finally {
|
129
|
-
if (
|
129
|
+
if (a) throw a.error;
|
130
130
|
}
|
131
131
|
}
|
132
132
|
}
|
@@ -162,33 +162,33 @@ var gr = function() {
|
|
162
162
|
var r = new t();
|
163
163
|
return r.closed = !0, r;
|
164
164
|
}(), t;
|
165
|
-
}(),
|
166
|
-
function
|
165
|
+
}(), ta = gr.EMPTY;
|
166
|
+
function ea(t) {
|
167
167
|
return t instanceof gr || t && "closed" in t && $t(t.remove) && $t(t.add) && $t(t.unsubscribe);
|
168
168
|
}
|
169
169
|
function Fn(t) {
|
170
170
|
$t(t) ? t() : t.unsubscribe();
|
171
171
|
}
|
172
|
-
var
|
172
|
+
var ra = {
|
173
173
|
onUnhandledError: null,
|
174
174
|
onStoppedNotification: null,
|
175
175
|
Promise: void 0,
|
176
176
|
useDeprecatedSynchronousErrorHandling: !1,
|
177
177
|
useDeprecatedNextContext: !1
|
178
|
-
},
|
178
|
+
}, na = {
|
179
179
|
setTimeout: function(t, r) {
|
180
|
-
for (var n = [],
|
181
|
-
n[
|
180
|
+
for (var n = [], a = 2; a < arguments.length; a++)
|
181
|
+
n[a - 2] = arguments[a];
|
182
182
|
return setTimeout.apply(void 0, mn([t, r], hn(n)));
|
183
183
|
},
|
184
184
|
clearTimeout: function(t) {
|
185
|
-
var r =
|
185
|
+
var r = na.delegate;
|
186
186
|
return ((r == null ? void 0 : r.clearTimeout) || clearTimeout)(t);
|
187
187
|
},
|
188
188
|
delegate: void 0
|
189
189
|
};
|
190
|
-
function
|
191
|
-
|
190
|
+
function Ea(t) {
|
191
|
+
na.setTimeout(function() {
|
192
192
|
throw t;
|
193
193
|
});
|
194
194
|
}
|
@@ -197,14 +197,14 @@ function zn() {
|
|
197
197
|
function fr(t) {
|
198
198
|
t();
|
199
199
|
}
|
200
|
-
var
|
200
|
+
var aa = function(t) {
|
201
201
|
We(r, t);
|
202
202
|
function r(n) {
|
203
|
-
var
|
204
|
-
return
|
203
|
+
var a = t.call(this) || this;
|
204
|
+
return a.isStopped = !1, n ? (a.destination = n, ea(n) && n.add(a)) : a.destination = xa, a;
|
205
205
|
}
|
206
|
-
return r.create = function(n,
|
207
|
-
return new In(n,
|
206
|
+
return r.create = function(n, a, i) {
|
207
|
+
return new In(n, a, i);
|
208
208
|
}, r.prototype.next = function(n) {
|
209
209
|
this.isStopped || this._next(n);
|
210
210
|
}, r.prototype.error = function(n) {
|
@@ -228,11 +228,11 @@ var ss = function(t) {
|
|
228
228
|
this.unsubscribe();
|
229
229
|
}
|
230
230
|
}, r;
|
231
|
-
}(gr),
|
231
|
+
}(gr), Aa = Function.prototype.bind;
|
232
232
|
function cn(t, r) {
|
233
|
-
return
|
233
|
+
return Aa.call(t, r);
|
234
234
|
}
|
235
|
-
var
|
235
|
+
var Da = function() {
|
236
236
|
function t(r) {
|
237
237
|
this.partialObserver = r;
|
238
238
|
}
|
@@ -241,16 +241,16 @@ var Ds = function() {
|
|
241
241
|
if (n.next)
|
242
242
|
try {
|
243
243
|
n.next(r);
|
244
|
-
} catch (
|
245
|
-
dr(
|
244
|
+
} catch (a) {
|
245
|
+
dr(a);
|
246
246
|
}
|
247
247
|
}, t.prototype.error = function(r) {
|
248
248
|
var n = this.partialObserver;
|
249
249
|
if (n.error)
|
250
250
|
try {
|
251
251
|
n.error(r);
|
252
|
-
} catch (
|
253
|
-
dr(
|
252
|
+
} catch (a) {
|
253
|
+
dr(a);
|
254
254
|
}
|
255
255
|
else
|
256
256
|
dr(r);
|
@@ -265,17 +265,17 @@ var Ds = function() {
|
|
265
265
|
}, t;
|
266
266
|
}(), In = function(t) {
|
267
267
|
We(r, t);
|
268
|
-
function r(n,
|
268
|
+
function r(n, a, i) {
|
269
269
|
var c = t.call(this) || this, f;
|
270
270
|
if ($t(n) || !n)
|
271
271
|
f = {
|
272
272
|
next: n ?? void 0,
|
273
|
-
error:
|
273
|
+
error: a ?? void 0,
|
274
274
|
complete: i ?? void 0
|
275
275
|
};
|
276
276
|
else {
|
277
277
|
var p;
|
278
|
-
c &&
|
278
|
+
c && ra.useDeprecatedNextContext ? (p = Object.create(n), p.unsubscribe = function() {
|
279
279
|
return c.unsubscribe();
|
280
280
|
}, f = {
|
281
281
|
next: n.next && cn(n.next, p),
|
@@ -283,31 +283,31 @@ var Ds = function() {
|
|
283
283
|
complete: n.complete && cn(n.complete, p)
|
284
284
|
}) : f = n;
|
285
285
|
}
|
286
|
-
return c.destination = new
|
286
|
+
return c.destination = new Da(f), c;
|
287
287
|
}
|
288
288
|
return r;
|
289
|
-
}(
|
289
|
+
}(aa);
|
290
290
|
function dr(t) {
|
291
|
-
|
291
|
+
Ea(t);
|
292
292
|
}
|
293
|
-
function
|
293
|
+
function Oa(t) {
|
294
294
|
throw t;
|
295
295
|
}
|
296
|
-
var
|
296
|
+
var xa = {
|
297
297
|
closed: !0,
|
298
298
|
next: zn,
|
299
|
-
error:
|
299
|
+
error: Oa,
|
300
300
|
complete: zn
|
301
|
-
},
|
301
|
+
}, Pa = function() {
|
302
302
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
303
303
|
}();
|
304
|
-
function
|
304
|
+
function Ca(t) {
|
305
305
|
return t;
|
306
306
|
}
|
307
|
-
function
|
308
|
-
return t.length === 0 ?
|
309
|
-
return t.reduce(function(
|
310
|
-
return i(
|
307
|
+
function Ra(t) {
|
308
|
+
return t.length === 0 ? Ca : t.length === 1 ? t[0] : function(n) {
|
309
|
+
return t.reduce(function(a, i) {
|
310
|
+
return i(a);
|
311
311
|
}, n);
|
312
312
|
};
|
313
313
|
}
|
@@ -318,8 +318,8 @@ var jn = function() {
|
|
318
318
|
return t.prototype.lift = function(r) {
|
319
319
|
var n = new t();
|
320
320
|
return n.source = this, n.operator = r, n;
|
321
|
-
}, t.prototype.subscribe = function(r, n,
|
322
|
-
var i = this, c =
|
321
|
+
}, t.prototype.subscribe = function(r, n, a) {
|
322
|
+
var i = this, c = za(r) ? r : new In(r, n, a);
|
323
323
|
return fr(function() {
|
324
324
|
var f = i, p = f.operator, k = f.source;
|
325
325
|
c.add(p ? p.call(c, k) : k ? i._subscribe(c) : i._trySubscribe(c));
|
@@ -331,7 +331,7 @@ var jn = function() {
|
|
331
331
|
r.error(n);
|
332
332
|
}
|
333
333
|
}, t.prototype.forEach = function(r, n) {
|
334
|
-
var
|
334
|
+
var a = this;
|
335
335
|
return n = Hn(n), new n(function(i, c) {
|
336
336
|
var f = new In({
|
337
337
|
next: function(p) {
|
@@ -344,27 +344,27 @@ var jn = function() {
|
|
344
344
|
error: c,
|
345
345
|
complete: i
|
346
346
|
});
|
347
|
-
|
347
|
+
a.subscribe(f);
|
348
348
|
});
|
349
349
|
}, t.prototype._subscribe = function(r) {
|
350
350
|
var n;
|
351
351
|
return (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r);
|
352
|
-
}, t.prototype[
|
352
|
+
}, t.prototype[Pa] = function() {
|
353
353
|
return this;
|
354
354
|
}, t.prototype.pipe = function() {
|
355
355
|
for (var r = [], n = 0; n < arguments.length; n++)
|
356
356
|
r[n] = arguments[n];
|
357
|
-
return
|
357
|
+
return Ra(r)(this);
|
358
358
|
}, t.prototype.toPromise = function(r) {
|
359
359
|
var n = this;
|
360
|
-
return r = Hn(r), new r(function(
|
360
|
+
return r = Hn(r), new r(function(a, i) {
|
361
361
|
var c;
|
362
362
|
n.subscribe(function(f) {
|
363
363
|
return c = f;
|
364
364
|
}, function(f) {
|
365
365
|
return i(f);
|
366
366
|
}, function() {
|
367
|
-
return
|
367
|
+
return a(c);
|
368
368
|
});
|
369
369
|
});
|
370
370
|
}, t.create = function(r) {
|
@@ -373,38 +373,38 @@ var jn = function() {
|
|
373
373
|
}();
|
374
374
|
function Hn(t) {
|
375
375
|
var r;
|
376
|
-
return (r = t ??
|
376
|
+
return (r = t ?? ra.Promise) !== null && r !== void 0 ? r : Promise;
|
377
377
|
}
|
378
|
-
function
|
378
|
+
function Fa(t) {
|
379
379
|
return t && $t(t.next) && $t(t.error) && $t(t.complete);
|
380
380
|
}
|
381
|
-
function
|
382
|
-
return t && t instanceof
|
381
|
+
function za(t) {
|
382
|
+
return t && t instanceof aa || Fa(t) && ea(t);
|
383
383
|
}
|
384
|
-
var
|
384
|
+
var ja = Qn(function(t) {
|
385
385
|
return function() {
|
386
386
|
t(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
387
387
|
};
|
388
|
-
}),
|
388
|
+
}), sa = function(t) {
|
389
389
|
We(r, t);
|
390
390
|
function r() {
|
391
391
|
var n = t.call(this) || this;
|
392
392
|
return n.closed = !1, n.currentObservers = null, n.observers = [], n.isStopped = !1, n.hasError = !1, n.thrownError = null, n;
|
393
393
|
}
|
394
394
|
return r.prototype.lift = function(n) {
|
395
|
-
var
|
396
|
-
return
|
395
|
+
var a = new Nn(this, this);
|
396
|
+
return a.operator = n, a;
|
397
397
|
}, r.prototype._throwIfClosed = function() {
|
398
398
|
if (this.closed)
|
399
|
-
throw new
|
399
|
+
throw new ja();
|
400
400
|
}, r.prototype.next = function(n) {
|
401
|
-
var
|
401
|
+
var a = this;
|
402
402
|
fr(function() {
|
403
403
|
var i, c;
|
404
|
-
if (
|
405
|
-
|
404
|
+
if (a._throwIfClosed(), !a.isStopped) {
|
405
|
+
a.currentObservers || (a.currentObservers = Array.from(a.observers));
|
406
406
|
try {
|
407
|
-
for (var f = pn(
|
407
|
+
for (var f = pn(a.currentObservers), p = f.next(); !p.done; p = f.next()) {
|
408
408
|
var k = p.value;
|
409
409
|
k.next(n);
|
410
410
|
}
|
@@ -420,11 +420,11 @@ var js = Qn(function(t) {
|
|
420
420
|
}
|
421
421
|
});
|
422
422
|
}, r.prototype.error = function(n) {
|
423
|
-
var
|
423
|
+
var a = this;
|
424
424
|
fr(function() {
|
425
|
-
if (
|
426
|
-
|
427
|
-
for (var i =
|
425
|
+
if (a._throwIfClosed(), !a.isStopped) {
|
426
|
+
a.hasError = a.isStopped = !0, a.thrownError = n;
|
427
|
+
for (var i = a.observers; i.length; )
|
428
428
|
i.shift().error(n);
|
429
429
|
}
|
430
430
|
});
|
@@ -433,8 +433,8 @@ var js = Qn(function(t) {
|
|
433
433
|
fr(function() {
|
434
434
|
if (n._throwIfClosed(), !n.isStopped) {
|
435
435
|
n.isStopped = !0;
|
436
|
-
for (var
|
437
|
-
|
436
|
+
for (var a = n.observers; a.length; )
|
437
|
+
a.shift().complete();
|
438
438
|
}
|
439
439
|
});
|
440
440
|
}, r.prototype.unsubscribe = function() {
|
@@ -451,43 +451,43 @@ var js = Qn(function(t) {
|
|
451
451
|
}, r.prototype._subscribe = function(n) {
|
452
452
|
return this._throwIfClosed(), this._checkFinalizedStatuses(n), this._innerSubscribe(n);
|
453
453
|
}, r.prototype._innerSubscribe = function(n) {
|
454
|
-
var
|
455
|
-
return c || f ?
|
456
|
-
|
454
|
+
var a = this, i = this, c = i.hasError, f = i.isStopped, p = i.observers;
|
455
|
+
return c || f ? ta : (this.currentObservers = null, p.push(n), new gr(function() {
|
456
|
+
a.currentObservers = null, yn(p, n);
|
457
457
|
}));
|
458
458
|
}, r.prototype._checkFinalizedStatuses = function(n) {
|
459
|
-
var
|
459
|
+
var a = this, i = a.hasError, c = a.thrownError, f = a.isStopped;
|
460
460
|
i ? n.error(c) : f && n.complete();
|
461
461
|
}, r.prototype.asObservable = function() {
|
462
462
|
var n = new jn();
|
463
463
|
return n.source = this, n;
|
464
|
-
}, r.create = function(n,
|
465
|
-
return new Nn(n,
|
464
|
+
}, r.create = function(n, a) {
|
465
|
+
return new Nn(n, a);
|
466
466
|
}, r;
|
467
467
|
}(jn), Nn = function(t) {
|
468
468
|
We(r, t);
|
469
|
-
function r(n,
|
469
|
+
function r(n, a) {
|
470
470
|
var i = t.call(this) || this;
|
471
|
-
return i.destination = n, i.source =
|
471
|
+
return i.destination = n, i.source = a, i;
|
472
472
|
}
|
473
473
|
return r.prototype.next = function(n) {
|
474
|
-
var
|
475
|
-
(i = (
|
474
|
+
var a, i;
|
475
|
+
(i = (a = this.destination) === null || a === void 0 ? void 0 : a.next) === null || i === void 0 || i.call(a, n);
|
476
476
|
}, r.prototype.error = function(n) {
|
477
|
-
var
|
478
|
-
(i = (
|
477
|
+
var a, i;
|
478
|
+
(i = (a = this.destination) === null || a === void 0 ? void 0 : a.error) === null || i === void 0 || i.call(a, n);
|
479
479
|
}, r.prototype.complete = function() {
|
480
|
-
var n,
|
481
|
-
(
|
480
|
+
var n, a;
|
481
|
+
(a = (n = this.destination) === null || n === void 0 ? void 0 : n.complete) === null || a === void 0 || a.call(n);
|
482
482
|
}, r.prototype._subscribe = function(n) {
|
483
|
-
var
|
484
|
-
return (i = (
|
483
|
+
var a, i;
|
484
|
+
return (i = (a = this.source) === null || a === void 0 ? void 0 : a.subscribe(n)) !== null && i !== void 0 ? i : ta;
|
485
485
|
}, r;
|
486
|
-
}(
|
486
|
+
}(sa), Ln = function(t) {
|
487
487
|
We(r, t);
|
488
488
|
function r(n) {
|
489
|
-
var
|
490
|
-
return
|
489
|
+
var a = t.call(this) || this;
|
490
|
+
return a._value = n, a;
|
491
491
|
}
|
492
492
|
return Object.defineProperty(r.prototype, "value", {
|
493
493
|
get: function() {
|
@@ -496,80 +496,80 @@ var js = Qn(function(t) {
|
|
496
496
|
enumerable: !1,
|
497
497
|
configurable: !0
|
498
498
|
}), r.prototype._subscribe = function(n) {
|
499
|
-
var
|
500
|
-
return !
|
499
|
+
var a = t.prototype._subscribe.call(this, n);
|
500
|
+
return !a.closed && n.next(this._value), a;
|
501
501
|
}, r.prototype.getValue = function() {
|
502
|
-
var n = this,
|
503
|
-
if (
|
502
|
+
var n = this, a = n.hasError, i = n.thrownError, c = n._value;
|
503
|
+
if (a)
|
504
504
|
throw i;
|
505
505
|
return this._throwIfClosed(), c;
|
506
506
|
}, r.prototype.next = function(n) {
|
507
507
|
t.prototype.next.call(this, this._value = n);
|
508
508
|
}, r;
|
509
|
-
}(
|
509
|
+
}(sa), wt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
510
510
|
function En(t) {
|
511
511
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
512
512
|
}
|
513
513
|
var pr = { exports: {} };
|
514
514
|
pr.exports;
|
515
515
|
(function(t, r) {
|
516
|
-
var n = 200,
|
516
|
+
var n = 200, a = "__lodash_hash_undefined__", i = 1, c = 2, f = 9007199254740991, p = "[object Arguments]", k = "[object Array]", H = "[object AsyncFunction]", A = "[object Boolean]", x = "[object Date]", y = "[object Error]", T = "[object Function]", C = "[object GeneratorFunction]", u = "[object Map]", d = "[object Number]", g = "[object Null]", b = "[object Object]", _ = "[object Promise]", h = "[object Proxy]", v = "[object RegExp]", I = "[object Set]", m = "[object String]", O = "[object Symbol]", D = "[object Undefined]", w = "[object WeakMap]", R = "[object ArrayBuffer]", j = "[object DataView]", N = "[object Float32Array]", E = "[object Float64Array]", P = "[object Int8Array]", X = "[object Int16Array]", vt = "[object Int32Array]", Dt = "[object Uint8Array]", Ot = "[object Uint8ClampedArray]", L = "[object Uint16Array]", Ut = "[object Uint32Array]", yt = /[\\^$.*+?()[\]{}|]/g, ft = /^\[object .+?Constructor\]$/, Ft = /^(?:0|[1-9]\d*)$/, S = {};
|
517
517
|
S[N] = S[E] = S[P] = S[X] = S[vt] = S[Dt] = S[Ot] = S[L] = S[Ut] = !0, S[p] = S[k] = S[R] = S[A] = S[j] = S[x] = S[y] = S[T] = S[u] = S[d] = S[b] = S[v] = S[I] = S[m] = S[w] = !1;
|
518
|
-
var V = typeof wt == "object" && wt && wt.Object === Object && wt,
|
518
|
+
var V = typeof wt == "object" && wt && wt.Object === Object && wt, st = typeof self == "object" && self && self.Object === Object && self, Z = V || st || Function("return this")(), zt = r && !r.nodeType && r, Mt = zt && !0 && t && !t.nodeType && t, Gt = Mt && Mt.exports === zt, Wt = Gt && V.process, Jt = function() {
|
519
519
|
try {
|
520
520
|
return Wt && Wt.binding && Wt.binding("util");
|
521
521
|
} catch {
|
522
522
|
}
|
523
523
|
}(), Yt = Jt && Jt.isTypedArray;
|
524
|
-
function z(e,
|
524
|
+
function z(e, s) {
|
525
525
|
for (var o = -1, l = e == null ? 0 : e.length, F = 0, M = []; ++o < l; ) {
|
526
526
|
var W = e[o];
|
527
|
-
|
527
|
+
s(W, o, e) && (M[F++] = W);
|
528
528
|
}
|
529
529
|
return M;
|
530
530
|
}
|
531
|
-
function $(e,
|
532
|
-
for (var o = -1, l =
|
533
|
-
e[F + o] =
|
531
|
+
function $(e, s) {
|
532
|
+
for (var o = -1, l = s.length, F = e.length; ++o < l; )
|
533
|
+
e[F + o] = s[o];
|
534
534
|
return e;
|
535
535
|
}
|
536
|
-
function U(e,
|
536
|
+
function U(e, s) {
|
537
537
|
for (var o = -1, l = e == null ? 0 : e.length; ++o < l; )
|
538
|
-
if (
|
538
|
+
if (s(e[o], o, e))
|
539
539
|
return !0;
|
540
540
|
return !1;
|
541
541
|
}
|
542
|
-
function St(e,
|
542
|
+
function St(e, s) {
|
543
543
|
for (var o = -1, l = Array(e); ++o < e; )
|
544
|
-
l[o] =
|
544
|
+
l[o] = s(o);
|
545
545
|
return l;
|
546
546
|
}
|
547
547
|
function It(e) {
|
548
|
-
return function(
|
549
|
-
return e(
|
548
|
+
return function(s) {
|
549
|
+
return e(s);
|
550
550
|
};
|
551
551
|
}
|
552
|
-
function Q(e,
|
553
|
-
return e.has(
|
552
|
+
function Q(e, s) {
|
553
|
+
return e.has(s);
|
554
554
|
}
|
555
|
-
function gt(e,
|
556
|
-
return e == null ? void 0 : e[
|
555
|
+
function gt(e, s) {
|
556
|
+
return e == null ? void 0 : e[s];
|
557
557
|
}
|
558
558
|
function J(e) {
|
559
|
-
var
|
559
|
+
var s = -1, o = Array(e.size);
|
560
560
|
return e.forEach(function(l, F) {
|
561
|
-
o[++
|
561
|
+
o[++s] = [F, l];
|
562
562
|
}), o;
|
563
563
|
}
|
564
|
-
function qt(e,
|
564
|
+
function qt(e, s) {
|
565
565
|
return function(o) {
|
566
|
-
return e(
|
566
|
+
return e(s(o));
|
567
567
|
};
|
568
568
|
}
|
569
569
|
function kt(e) {
|
570
|
-
var
|
570
|
+
var s = -1, o = Array(e.size);
|
571
571
|
return e.forEach(function(l) {
|
572
|
-
o[++
|
572
|
+
o[++s] = l;
|
573
573
|
}), o;
|
574
574
|
}
|
575
575
|
var Bt = Array.prototype, K = Function.prototype, it = Object.prototype, xt = Z["__core-js_shared__"], Zt = K.toString, ot = it.hasOwnProperty, Ve = function() {
|
@@ -579,9 +579,9 @@ pr.exports;
|
|
579
579
|
"^" + Zt.call(ot).replace(yt, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
580
580
|
), Te = Gt ? Z.Buffer : void 0, me = Z.Symbol, qe = Z.Uint8Array, ye = it.propertyIsEnumerable, Qt = Bt.splice, Et = me ? me.toStringTag : void 0, Ie = Object.getOwnPropertySymbols, Me = Te ? Te.isBuffer : void 0, te = qt(Object.keys, Object), Ee = Ht(Z, "DataView"), ee = Ht(Z, "Map"), Ae = Ht(Z, "Promise"), De = Ht(Z, "Set"), Oe = Ht(Z, "WeakMap"), Kt = Ht(Object, "create"), Ze = pt(Ee), jt = pt(ee), kr = pt(Ae), wr = pt(De), Tr = pt(Oe), Qe = me ? me.prototype : void 0, xe = Qe ? Qe.valueOf : void 0;
|
581
581
|
function nt(e) {
|
582
|
-
var
|
583
|
-
for (this.clear(); ++
|
584
|
-
var l = e[
|
582
|
+
var s = -1, o = e == null ? 0 : e.length;
|
583
|
+
for (this.clear(); ++s < o; ) {
|
584
|
+
var l = e[s];
|
585
585
|
this.set(l[0], l[1]);
|
586
586
|
}
|
587
587
|
}
|
@@ -589,30 +589,30 @@ pr.exports;
|
|
589
589
|
this.__data__ = Kt ? Kt(null) : {}, this.size = 0;
|
590
590
|
}
|
591
591
|
function Er(e) {
|
592
|
-
var
|
593
|
-
return this.size -=
|
592
|
+
var s = this.has(e) && delete this.__data__[e];
|
593
|
+
return this.size -= s ? 1 : 0, s;
|
594
594
|
}
|
595
595
|
function Ar(e) {
|
596
|
-
var
|
596
|
+
var s = this.__data__;
|
597
597
|
if (Kt) {
|
598
|
-
var o =
|
599
|
-
return o ===
|
598
|
+
var o = s[e];
|
599
|
+
return o === a ? void 0 : o;
|
600
600
|
}
|
601
|
-
return ot.call(
|
601
|
+
return ot.call(s, e) ? s[e] : void 0;
|
602
602
|
}
|
603
603
|
function Dr(e) {
|
604
|
-
var
|
605
|
-
return Kt ?
|
604
|
+
var s = this.__data__;
|
605
|
+
return Kt ? s[e] !== void 0 : ot.call(s, e);
|
606
606
|
}
|
607
|
-
function Or(e,
|
607
|
+
function Or(e, s) {
|
608
608
|
var o = this.__data__;
|
609
|
-
return this.size += this.has(e) ? 0 : 1, o[e] = Kt &&
|
609
|
+
return this.size += this.has(e) ? 0 : 1, o[e] = Kt && s === void 0 ? a : s, this;
|
610
610
|
}
|
611
611
|
nt.prototype.clear = Mr, nt.prototype.delete = Er, nt.prototype.get = Ar, nt.prototype.has = Dr, nt.prototype.set = Or;
|
612
612
|
function ct(e) {
|
613
|
-
var
|
614
|
-
for (this.clear(); ++
|
615
|
-
var l = e[
|
613
|
+
var s = -1, o = e == null ? 0 : e.length;
|
614
|
+
for (this.clear(); ++s < o; ) {
|
615
|
+
var l = e[s];
|
616
616
|
this.set(l[0], l[1]);
|
617
617
|
}
|
618
618
|
}
|
@@ -620,28 +620,28 @@ pr.exports;
|
|
620
620
|
this.__data__ = [], this.size = 0;
|
621
621
|
}
|
622
622
|
function Pr(e) {
|
623
|
-
var
|
623
|
+
var s = this.__data__, o = _e(s, e);
|
624
624
|
if (o < 0)
|
625
625
|
return !1;
|
626
|
-
var l =
|
627
|
-
return o == l ?
|
626
|
+
var l = s.length - 1;
|
627
|
+
return o == l ? s.pop() : Qt.call(s, o, 1), --this.size, !0;
|
628
628
|
}
|
629
629
|
function Cr(e) {
|
630
|
-
var
|
631
|
-
return o < 0 ? void 0 :
|
630
|
+
var s = this.__data__, o = _e(s, e);
|
631
|
+
return o < 0 ? void 0 : s[o][1];
|
632
632
|
}
|
633
633
|
function Rr(e) {
|
634
634
|
return _e(this.__data__, e) > -1;
|
635
635
|
}
|
636
|
-
function Fr(e,
|
636
|
+
function Fr(e, s) {
|
637
637
|
var o = this.__data__, l = _e(o, e);
|
638
|
-
return l < 0 ? (++this.size, o.push([e,
|
638
|
+
return l < 0 ? (++this.size, o.push([e, s])) : o[l][1] = s, this;
|
639
639
|
}
|
640
640
|
ct.prototype.clear = xr, ct.prototype.delete = Pr, ct.prototype.get = Cr, ct.prototype.has = Rr, ct.prototype.set = Fr;
|
641
641
|
function ht(e) {
|
642
|
-
var
|
643
|
-
for (this.clear(); ++
|
644
|
-
var l = e[
|
642
|
+
var s = -1, o = e == null ? 0 : e.length;
|
643
|
+
for (this.clear(); ++s < o; ) {
|
644
|
+
var l = e[s];
|
645
645
|
this.set(l[0], l[1]);
|
646
646
|
}
|
647
647
|
}
|
@@ -653,8 +653,8 @@ pr.exports;
|
|
653
653
|
};
|
654
654
|
}
|
655
655
|
function jr(e) {
|
656
|
-
var
|
657
|
-
return this.size -=
|
656
|
+
var s = At(this, e).delete(e);
|
657
|
+
return this.size -= s ? 1 : 0, s;
|
658
658
|
}
|
659
659
|
function Hr(e) {
|
660
660
|
return At(this, e).get(e);
|
@@ -662,33 +662,33 @@ pr.exports;
|
|
662
662
|
function Nr(e) {
|
663
663
|
return At(this, e).has(e);
|
664
664
|
}
|
665
|
-
function Lr(e,
|
665
|
+
function Lr(e, s) {
|
666
666
|
var o = At(this, e), l = o.size;
|
667
|
-
return o.set(e,
|
667
|
+
return o.set(e, s), this.size += o.size == l ? 0 : 1, this;
|
668
668
|
}
|
669
669
|
ht.prototype.clear = zr, ht.prototype.delete = jr, ht.prototype.get = Hr, ht.prototype.has = Nr, ht.prototype.set = Lr;
|
670
670
|
function ge(e) {
|
671
|
-
var
|
672
|
-
for (this.__data__ = new ht(); ++
|
673
|
-
this.add(e[
|
671
|
+
var s = -1, o = e == null ? 0 : e.length;
|
672
|
+
for (this.__data__ = new ht(); ++s < o; )
|
673
|
+
this.add(e[s]);
|
674
674
|
}
|
675
675
|
function tr(e) {
|
676
|
-
return this.__data__.set(e,
|
676
|
+
return this.__data__.set(e, a), this;
|
677
677
|
}
|
678
678
|
function be(e) {
|
679
679
|
return this.__data__.has(e);
|
680
680
|
}
|
681
681
|
ge.prototype.add = ge.prototype.push = tr, ge.prototype.has = be;
|
682
682
|
function Pt(e) {
|
683
|
-
var
|
684
|
-
this.size =
|
683
|
+
var s = this.__data__ = new ct(e);
|
684
|
+
this.size = s.size;
|
685
685
|
}
|
686
686
|
function Pe() {
|
687
687
|
this.__data__ = new ct(), this.size = 0;
|
688
688
|
}
|
689
689
|
function $r(e) {
|
690
|
-
var
|
691
|
-
return this.size =
|
690
|
+
var s = this.__data__, o = s.delete(e);
|
691
|
+
return this.size = s.size, o;
|
692
692
|
}
|
693
693
|
function Ur(e) {
|
694
694
|
return this.__data__.get(e);
|
@@ -696,19 +696,19 @@ pr.exports;
|
|
696
696
|
function Gr(e) {
|
697
697
|
return this.__data__.has(e);
|
698
698
|
}
|
699
|
-
function Wr(e,
|
699
|
+
function Wr(e, s) {
|
700
700
|
var o = this.__data__;
|
701
701
|
if (o instanceof ct) {
|
702
702
|
var l = o.__data__;
|
703
703
|
if (!ee || l.length < n - 1)
|
704
|
-
return l.push([e,
|
704
|
+
return l.push([e, s]), this.size = ++o.size, this;
|
705
705
|
o = this.__data__ = new ht(l);
|
706
706
|
}
|
707
|
-
return o.set(e,
|
707
|
+
return o.set(e, s), this.size = o.size, this;
|
708
708
|
}
|
709
709
|
Pt.prototype.clear = Pe, Pt.prototype.delete = $r, Pt.prototype.get = Ur, Pt.prototype.has = Gr, Pt.prototype.set = Wr;
|
710
|
-
function Yr(e,
|
711
|
-
var o = ve(e), l = !o &&
|
710
|
+
function Yr(e, s) {
|
711
|
+
var o = ve(e), l = !o && sr(e), F = !o && !l && Se(e), M = !o && !l && !F && cr(e), W = o || l || F || M, G = W ? St(e.length, String) : [], q = G.length;
|
712
712
|
for (var Y in e)
|
713
713
|
ot.call(e, Y) && !(W && // Safari 9 has enumerable `arguments.length` in strict mode.
|
714
714
|
(Y == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
@@ -717,14 +717,14 @@ pr.exports;
|
|
717
717
|
Qr(Y, q))) && G.push(Y);
|
718
718
|
return G;
|
719
719
|
}
|
720
|
-
function _e(e,
|
720
|
+
function _e(e, s) {
|
721
721
|
for (var o = e.length; o--; )
|
722
|
-
if (
|
722
|
+
if (ar(e[o][0], s))
|
723
723
|
return o;
|
724
724
|
return -1;
|
725
725
|
}
|
726
|
-
function Ce(e,
|
727
|
-
var l =
|
726
|
+
function Ce(e, s, o) {
|
727
|
+
var l = s(e);
|
728
728
|
return ve(e) ? l : $(l, o(e));
|
729
729
|
}
|
730
730
|
function re(e) {
|
@@ -733,34 +733,34 @@ pr.exports;
|
|
733
733
|
function er(e) {
|
734
734
|
return Rt(e) && re(e) == p;
|
735
735
|
}
|
736
|
-
function rr(e,
|
737
|
-
return e ===
|
736
|
+
function rr(e, s, o, l, F) {
|
737
|
+
return e === s ? !0 : e == null || s == null || !Rt(e) && !Rt(s) ? e !== e && s !== s : Br(e, s, o, l, rr, F);
|
738
738
|
}
|
739
|
-
function Br(e,
|
740
|
-
var W = ve(e), G = ve(
|
739
|
+
function Br(e, s, o, l, F, M) {
|
740
|
+
var W = ve(e), G = ve(s), q = W ? k : Ct(e), Y = G ? k : Ct(s);
|
741
741
|
q = q == p ? b : q, Y = Y == p ? b : Y;
|
742
742
|
var ut = q == b, mt = Y == b, tt = q == Y;
|
743
743
|
if (tt && Se(e)) {
|
744
|
-
if (!Se(
|
744
|
+
if (!Se(s))
|
745
745
|
return !1;
|
746
746
|
W = !0, ut = !1;
|
747
747
|
}
|
748
748
|
if (tt && !ut)
|
749
|
-
return M || (M = new Pt()), W || cr(e) ? Re(e,
|
749
|
+
return M || (M = new Pt()), W || cr(e) ? Re(e, s, o, l, F, M) : Jr(e, s, q, o, l, F, M);
|
750
750
|
if (!(o & i)) {
|
751
|
-
var lt = ut && ot.call(e, "__wrapped__"),
|
752
|
-
if (lt ||
|
753
|
-
var Xt = lt ? e.value() : e, Lt =
|
751
|
+
var lt = ut && ot.call(e, "__wrapped__"), at = mt && ot.call(s, "__wrapped__");
|
752
|
+
if (lt || at) {
|
753
|
+
var Xt = lt ? e.value() : e, Lt = at ? s.value() : s;
|
754
754
|
return M || (M = new Pt()), F(Xt, Lt, o, l, M);
|
755
755
|
}
|
756
756
|
}
|
757
|
-
return tt ? (M || (M = new Pt()), qr(e,
|
757
|
+
return tt ? (M || (M = new Pt()), qr(e, s, o, l, F, M)) : !1;
|
758
758
|
}
|
759
759
|
function Kr(e) {
|
760
760
|
if (!or(e) || en(e))
|
761
761
|
return !1;
|
762
|
-
var
|
763
|
-
return
|
762
|
+
var s = ir(e) ? Sr : ft;
|
763
|
+
return s.test(pt(e));
|
764
764
|
}
|
765
765
|
function Xr(e) {
|
766
766
|
return Rt(e) && ze(e.length) && !!S[re(e)];
|
@@ -768,23 +768,23 @@ pr.exports;
|
|
768
768
|
function Vr(e) {
|
769
769
|
if (!rn(e))
|
770
770
|
return te(e);
|
771
|
-
var
|
771
|
+
var s = [];
|
772
772
|
for (var o in Object(e))
|
773
|
-
ot.call(e, o) && o != "constructor" &&
|
774
|
-
return
|
773
|
+
ot.call(e, o) && o != "constructor" && s.push(o);
|
774
|
+
return s;
|
775
775
|
}
|
776
|
-
function Re(e,
|
777
|
-
var W = o & i, G = e.length, q =
|
776
|
+
function Re(e, s, o, l, F, M) {
|
777
|
+
var W = o & i, G = e.length, q = s.length;
|
778
778
|
if (G != q && !(W && q > G))
|
779
779
|
return !1;
|
780
780
|
var Y = M.get(e);
|
781
|
-
if (Y && M.get(
|
782
|
-
return Y ==
|
781
|
+
if (Y && M.get(s))
|
782
|
+
return Y == s;
|
783
783
|
var ut = -1, mt = !0, tt = o & c ? new ge() : void 0;
|
784
|
-
for (M.set(e,
|
785
|
-
var lt = e[ut],
|
784
|
+
for (M.set(e, s), M.set(s, e); ++ut < G; ) {
|
785
|
+
var lt = e[ut], at = s[ut];
|
786
786
|
if (l)
|
787
|
-
var Xt = W ? l(
|
787
|
+
var Xt = W ? l(at, lt, ut, s, e, M) : l(lt, at, ut, e, s, M);
|
788
788
|
if (Xt !== void 0) {
|
789
789
|
if (Xt)
|
790
790
|
continue;
|
@@ -792,114 +792,114 @@ pr.exports;
|
|
792
792
|
break;
|
793
793
|
}
|
794
794
|
if (tt) {
|
795
|
-
if (!U(
|
796
|
-
if (!Q(tt,
|
797
|
-
return tt.push(
|
795
|
+
if (!U(s, function(Lt, ae) {
|
796
|
+
if (!Q(tt, ae) && (lt === Lt || F(lt, Lt, o, l, M)))
|
797
|
+
return tt.push(ae);
|
798
798
|
})) {
|
799
799
|
mt = !1;
|
800
800
|
break;
|
801
801
|
}
|
802
|
-
} else if (!(lt ===
|
802
|
+
} else if (!(lt === at || F(lt, at, o, l, M))) {
|
803
803
|
mt = !1;
|
804
804
|
break;
|
805
805
|
}
|
806
806
|
}
|
807
|
-
return M.delete(e), M.delete(
|
807
|
+
return M.delete(e), M.delete(s), mt;
|
808
808
|
}
|
809
|
-
function Jr(e,
|
809
|
+
function Jr(e, s, o, l, F, M, W) {
|
810
810
|
switch (o) {
|
811
811
|
case j:
|
812
|
-
if (e.byteLength !=
|
812
|
+
if (e.byteLength != s.byteLength || e.byteOffset != s.byteOffset)
|
813
813
|
return !1;
|
814
|
-
e = e.buffer,
|
814
|
+
e = e.buffer, s = s.buffer;
|
815
815
|
case R:
|
816
|
-
return !(e.byteLength !=
|
816
|
+
return !(e.byteLength != s.byteLength || !M(new qe(e), new qe(s)));
|
817
817
|
case A:
|
818
818
|
case x:
|
819
819
|
case d:
|
820
|
-
return
|
820
|
+
return ar(+e, +s);
|
821
821
|
case y:
|
822
|
-
return e.name ==
|
822
|
+
return e.name == s.name && e.message == s.message;
|
823
823
|
case v:
|
824
824
|
case m:
|
825
|
-
return e ==
|
825
|
+
return e == s + "";
|
826
826
|
case u:
|
827
827
|
var G = J;
|
828
828
|
case I:
|
829
829
|
var q = l & i;
|
830
|
-
if (G || (G = kt), e.size !=
|
830
|
+
if (G || (G = kt), e.size != s.size && !q)
|
831
831
|
return !1;
|
832
832
|
var Y = W.get(e);
|
833
833
|
if (Y)
|
834
|
-
return Y ==
|
835
|
-
l |= c, W.set(e,
|
836
|
-
var ut = Re(G(e), G(
|
834
|
+
return Y == s;
|
835
|
+
l |= c, W.set(e, s);
|
836
|
+
var ut = Re(G(e), G(s), l, F, M, W);
|
837
837
|
return W.delete(e), ut;
|
838
838
|
case O:
|
839
839
|
if (xe)
|
840
|
-
return xe.call(e) == xe.call(
|
840
|
+
return xe.call(e) == xe.call(s);
|
841
841
|
}
|
842
842
|
return !1;
|
843
843
|
}
|
844
|
-
function qr(e,
|
845
|
-
var W = o & i, G = ne(e), q = G.length, Y = ne(
|
844
|
+
function qr(e, s, o, l, F, M) {
|
845
|
+
var W = o & i, G = ne(e), q = G.length, Y = ne(s), ut = Y.length;
|
846
846
|
if (q != ut && !W)
|
847
847
|
return !1;
|
848
848
|
for (var mt = q; mt--; ) {
|
849
849
|
var tt = G[mt];
|
850
|
-
if (!(W ? tt in
|
850
|
+
if (!(W ? tt in s : ot.call(s, tt)))
|
851
851
|
return !1;
|
852
852
|
}
|
853
853
|
var lt = M.get(e);
|
854
|
-
if (lt && M.get(
|
855
|
-
return lt ==
|
856
|
-
var
|
857
|
-
M.set(e,
|
854
|
+
if (lt && M.get(s))
|
855
|
+
return lt == s;
|
856
|
+
var at = !0;
|
857
|
+
M.set(e, s), M.set(s, e);
|
858
858
|
for (var Xt = W; ++mt < q; ) {
|
859
859
|
tt = G[mt];
|
860
|
-
var Lt = e[tt],
|
860
|
+
var Lt = e[tt], ae = s[tt];
|
861
861
|
if (l)
|
862
|
-
var Rn = W ? l(
|
863
|
-
if (!(Rn === void 0 ? Lt ===
|
864
|
-
|
862
|
+
var Rn = W ? l(ae, Lt, tt, s, e, M) : l(Lt, ae, tt, e, s, M);
|
863
|
+
if (!(Rn === void 0 ? Lt === ae || F(Lt, ae, o, l, M) : Rn)) {
|
864
|
+
at = !1;
|
865
865
|
break;
|
866
866
|
}
|
867
867
|
Xt || (Xt = tt == "constructor");
|
868
868
|
}
|
869
|
-
if (
|
870
|
-
var ur = e.constructor, lr =
|
871
|
-
ur != lr && "constructor" in e && "constructor" in
|
869
|
+
if (at && !Xt) {
|
870
|
+
var ur = e.constructor, lr = s.constructor;
|
871
|
+
ur != lr && "constructor" in e && "constructor" in s && !(typeof ur == "function" && ur instanceof ur && typeof lr == "function" && lr instanceof lr) && (at = !1);
|
872
872
|
}
|
873
|
-
return M.delete(e), M.delete(
|
873
|
+
return M.delete(e), M.delete(s), at;
|
874
874
|
}
|
875
875
|
function ne(e) {
|
876
876
|
return Ce(e, je, Zr);
|
877
877
|
}
|
878
|
-
function At(e,
|
878
|
+
function At(e, s) {
|
879
879
|
var o = e.__data__;
|
880
|
-
return tn(
|
880
|
+
return tn(s) ? o[typeof s == "string" ? "string" : "hash"] : o.map;
|
881
881
|
}
|
882
|
-
function Ht(e,
|
883
|
-
var o = gt(e,
|
882
|
+
function Ht(e, s) {
|
883
|
+
var o = gt(e, s);
|
884
884
|
return Kr(o) ? o : void 0;
|
885
885
|
}
|
886
886
|
function Nt(e) {
|
887
|
-
var
|
887
|
+
var s = ot.call(e, Et), o = e[Et];
|
888
888
|
try {
|
889
889
|
e[Et] = void 0;
|
890
890
|
var l = !0;
|
891
891
|
} catch {
|
892
892
|
}
|
893
893
|
var F = Je.call(e);
|
894
|
-
return l && (
|
894
|
+
return l && (s ? e[Et] = o : delete e[Et]), F;
|
895
895
|
}
|
896
896
|
var Zr = Ie ? function(e) {
|
897
|
-
return e == null ? [] : (e = Object(e), z(Ie(e), function(
|
898
|
-
return ye.call(e,
|
897
|
+
return e == null ? [] : (e = Object(e), z(Ie(e), function(s) {
|
898
|
+
return ye.call(e, s);
|
899
899
|
}));
|
900
|
-
} :
|
900
|
+
} : an, Ct = re;
|
901
901
|
(Ee && Ct(new Ee(new ArrayBuffer(1))) != j || ee && Ct(new ee()) != u || Ae && Ct(Ae.resolve()) != _ || De && Ct(new De()) != I || Oe && Ct(new Oe()) != w) && (Ct = function(e) {
|
902
|
-
var
|
902
|
+
var s = re(e), o = s == b ? e.constructor : void 0, l = o ? pt(o) : "";
|
903
903
|
if (l)
|
904
904
|
switch (l) {
|
905
905
|
case Ze:
|
@@ -913,20 +913,20 @@ pr.exports;
|
|
913
913
|
case Tr:
|
914
914
|
return w;
|
915
915
|
}
|
916
|
-
return
|
916
|
+
return s;
|
917
917
|
});
|
918
|
-
function Qr(e,
|
919
|
-
return
|
918
|
+
function Qr(e, s) {
|
919
|
+
return s = s ?? f, !!s && (typeof e == "number" || Ft.test(e)) && e > -1 && e % 1 == 0 && e < s;
|
920
920
|
}
|
921
921
|
function tn(e) {
|
922
|
-
var
|
923
|
-
return
|
922
|
+
var s = typeof e;
|
923
|
+
return s == "string" || s == "number" || s == "symbol" || s == "boolean" ? e !== "__proto__" : e === null;
|
924
924
|
}
|
925
925
|
function en(e) {
|
926
926
|
return !!Ve && Ve in e;
|
927
927
|
}
|
928
928
|
function rn(e) {
|
929
|
-
var
|
929
|
+
var s = e && e.constructor, o = typeof s == "function" && s.prototype || it;
|
930
930
|
return e === o;
|
931
931
|
}
|
932
932
|
function nr(e) {
|
@@ -945,10 +945,10 @@ pr.exports;
|
|
945
945
|
}
|
946
946
|
return "";
|
947
947
|
}
|
948
|
-
function
|
949
|
-
return e ===
|
948
|
+
function ar(e, s) {
|
949
|
+
return e === s || e !== e && s !== s;
|
950
950
|
}
|
951
|
-
var
|
951
|
+
var sr = er(/* @__PURE__ */ function() {
|
952
952
|
return arguments;
|
953
953
|
}()) ? er : function(e) {
|
954
954
|
return Rt(e) && ot.call(e, "callee") && !ye.call(e, "callee");
|
@@ -956,22 +956,22 @@ pr.exports;
|
|
956
956
|
function Fe(e) {
|
957
957
|
return e != null && ze(e.length) && !ir(e);
|
958
958
|
}
|
959
|
-
var Se = Me ||
|
960
|
-
function nn(e,
|
961
|
-
return rr(e,
|
959
|
+
var Se = Me || sn;
|
960
|
+
function nn(e, s) {
|
961
|
+
return rr(e, s);
|
962
962
|
}
|
963
963
|
function ir(e) {
|
964
964
|
if (!or(e))
|
965
965
|
return !1;
|
966
|
-
var
|
967
|
-
return
|
966
|
+
var s = re(e);
|
967
|
+
return s == T || s == C || s == H || s == h;
|
968
968
|
}
|
969
969
|
function ze(e) {
|
970
970
|
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= f;
|
971
971
|
}
|
972
972
|
function or(e) {
|
973
|
-
var
|
974
|
-
return e != null && (
|
973
|
+
var s = typeof e;
|
974
|
+
return e != null && (s == "object" || s == "function");
|
975
975
|
}
|
976
976
|
function Rt(e) {
|
977
977
|
return e != null && typeof e == "object";
|
@@ -980,75 +980,75 @@ pr.exports;
|
|
980
980
|
function je(e) {
|
981
981
|
return Fe(e) ? Yr(e) : Vr(e);
|
982
982
|
}
|
983
|
-
function
|
983
|
+
function an() {
|
984
984
|
return [];
|
985
985
|
}
|
986
|
-
function
|
986
|
+
function sn() {
|
987
987
|
return !1;
|
988
988
|
}
|
989
989
|
t.exports = nn;
|
990
990
|
})(pr, pr.exports);
|
991
|
-
var
|
992
|
-
const rt = /* @__PURE__ */ En(
|
991
|
+
var Ha = pr.exports;
|
992
|
+
const rt = /* @__PURE__ */ En(Ha), hi = "add", Na = "track", La = "trackItems", mi = `${Na}:changed`, yi = `${La}:changed`, $a = "state", Ii = `${$a}:changed`, An = "design", Ua = `${An}:load`, Ga = `${An}:resize`, Tt = "add", Wa = `${Tt}:text`, Ya = `${Tt}:video`, Ba = `${Tt}:audio`, gi = `${Tt}:placeholder`, Ka = `${Tt}:image`, bi = `${Tt}:mask`, _i = `${Tt}:transition`, Xa = `${Tt}:animation`, Va = `${Tt}:caption`, Ja = `${Tt}:template`, qa = `${Tt}:items`, he = "edit", Za = `${he}:object`, Qa = `${he}:replaceMedia`, vi = `${he}:text`, Si = `${he}:shape`, ki = `${he}:templateItem`, wi = `${he}:deleteTemplateItem`, Ti = "enterEditMode", we = "active", Mi = `${we}:set`, Ei = `${we}:delete`, ts = `${we}:paste`, es = `${we}:clone`, rs = `${we}:split`, dt = "layer", Ai = `${dt}:locked`, Di = `${dt}:hidden`, Oi = `${dt}:move`, xi = `${dt}:select`, Pi = `${dt}:selection`, Ci = `${dt}:sendTo`, Ri = `${dt}:rename`, Fi = `${dt}:editingName`, zi = `${dt}:copy`, ji = `${dt}:paste`, ns = `${dt}:clone`, Hi = `${dt}:split`, Ni = `${dt}:cut`, as = `${dt}:delete`, ss = `${dt}:replace`, br = "history", is = `${br}:undo`, os = `${br}:redo`, Li = `${br}:reset`, ia = "scale", cs = `${ia}:changed`;
|
993
993
|
var hr = { exports: {} };
|
994
994
|
hr.exports;
|
995
995
|
(function(t, r) {
|
996
|
-
var n = 200,
|
996
|
+
var n = 200, a = "__lodash_hash_undefined__", i = 9007199254740991, c = "[object Arguments]", f = "[object Array]", p = "[object Boolean]", k = "[object Date]", H = "[object Error]", A = "[object Function]", x = "[object GeneratorFunction]", y = "[object Map]", T = "[object Number]", C = "[object Object]", u = "[object Promise]", d = "[object RegExp]", g = "[object Set]", b = "[object String]", _ = "[object Symbol]", h = "[object WeakMap]", v = "[object ArrayBuffer]", I = "[object DataView]", m = "[object Float32Array]", O = "[object Float64Array]", D = "[object Int8Array]", w = "[object Int16Array]", R = "[object Int32Array]", j = "[object Uint8Array]", N = "[object Uint8ClampedArray]", E = "[object Uint16Array]", P = "[object Uint32Array]", X = /[\\^$.*+?()[\]{}|]/g, vt = /\w*$/, Dt = /^\[object .+?Constructor\]$/, Ot = /^(?:0|[1-9]\d*)$/, L = {};
|
997
997
|
L[c] = L[f] = L[v] = L[I] = L[p] = L[k] = L[m] = L[O] = L[D] = L[w] = L[R] = L[y] = L[T] = L[C] = L[d] = L[g] = L[b] = L[_] = L[j] = L[N] = L[E] = L[P] = !0, L[H] = L[A] = L[h] = !1;
|
998
998
|
var Ut = typeof wt == "object" && wt && wt.Object === Object && wt, yt = typeof self == "object" && self && self.Object === Object && self, ft = Ut || yt || Function("return this")(), Ft = r && !r.nodeType && r, S = Ft && !0 && t && !t.nodeType && t, V = S && S.exports === Ft;
|
999
|
-
function
|
1000
|
-
return e.set(
|
999
|
+
function st(e, s) {
|
1000
|
+
return e.set(s[0], s[1]), e;
|
1001
1001
|
}
|
1002
|
-
function Z(e,
|
1003
|
-
return e.add(
|
1002
|
+
function Z(e, s) {
|
1003
|
+
return e.add(s), e;
|
1004
1004
|
}
|
1005
|
-
function zt(e,
|
1006
|
-
for (var o = -1, l = e ? e.length : 0; ++o < l &&
|
1005
|
+
function zt(e, s) {
|
1006
|
+
for (var o = -1, l = e ? e.length : 0; ++o < l && s(e[o], o, e) !== !1; )
|
1007
1007
|
;
|
1008
1008
|
return e;
|
1009
1009
|
}
|
1010
|
-
function Mt(e,
|
1011
|
-
for (var o = -1, l =
|
1012
|
-
e[F + o] =
|
1010
|
+
function Mt(e, s) {
|
1011
|
+
for (var o = -1, l = s.length, F = e.length; ++o < l; )
|
1012
|
+
e[F + o] = s[o];
|
1013
1013
|
return e;
|
1014
1014
|
}
|
1015
|
-
function Gt(e,
|
1015
|
+
function Gt(e, s, o, l) {
|
1016
1016
|
for (var F = -1, M = e ? e.length : 0; ++F < M; )
|
1017
|
-
o =
|
1017
|
+
o = s(o, e[F], F, e);
|
1018
1018
|
return o;
|
1019
1019
|
}
|
1020
|
-
function Wt(e,
|
1020
|
+
function Wt(e, s) {
|
1021
1021
|
for (var o = -1, l = Array(e); ++o < e; )
|
1022
|
-
l[o] =
|
1022
|
+
l[o] = s(o);
|
1023
1023
|
return l;
|
1024
1024
|
}
|
1025
|
-
function Jt(e,
|
1026
|
-
return e == null ? void 0 : e[
|
1025
|
+
function Jt(e, s) {
|
1026
|
+
return e == null ? void 0 : e[s];
|
1027
1027
|
}
|
1028
1028
|
function Yt(e) {
|
1029
|
-
var
|
1029
|
+
var s = !1;
|
1030
1030
|
if (e != null && typeof e.toString != "function")
|
1031
1031
|
try {
|
1032
|
-
|
1032
|
+
s = !!(e + "");
|
1033
1033
|
} catch {
|
1034
1034
|
}
|
1035
|
-
return
|
1035
|
+
return s;
|
1036
1036
|
}
|
1037
1037
|
function z(e) {
|
1038
|
-
var
|
1038
|
+
var s = -1, o = Array(e.size);
|
1039
1039
|
return e.forEach(function(l, F) {
|
1040
|
-
o[++
|
1040
|
+
o[++s] = [F, l];
|
1041
1041
|
}), o;
|
1042
1042
|
}
|
1043
|
-
function $(e,
|
1043
|
+
function $(e, s) {
|
1044
1044
|
return function(o) {
|
1045
|
-
return e(
|
1045
|
+
return e(s(o));
|
1046
1046
|
};
|
1047
1047
|
}
|
1048
1048
|
function U(e) {
|
1049
|
-
var
|
1049
|
+
var s = -1, o = Array(e.size);
|
1050
1050
|
return e.forEach(function(l) {
|
1051
|
-
o[++
|
1051
|
+
o[++s] = l;
|
1052
1052
|
}), o;
|
1053
1053
|
}
|
1054
1054
|
var St = Array.prototype, It = Function.prototype, Q = Object.prototype, gt = ft["__core-js_shared__"], J = function() {
|
@@ -1058,9 +1058,9 @@ hr.exports;
|
|
1058
1058
|
"^" + qt.call(kt).replace(X, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
1059
1059
|
), it = V ? ft.Buffer : void 0, xt = ft.Symbol, Zt = ft.Uint8Array, ot = $(Object.getPrototypeOf, Object), Ve = Object.create, Je = Q.propertyIsEnumerable, Sr = St.splice, Te = Object.getOwnPropertySymbols, me = it ? it.isBuffer : void 0, qe = $(Object.keys, Object), ye = At(ft, "DataView"), Qt = At(ft, "Map"), Et = At(ft, "Promise"), Ie = At(ft, "Set"), Me = At(ft, "WeakMap"), te = At(Object, "create"), Ee = pt(ye), ee = pt(Qt), Ae = pt(Et), De = pt(Ie), Oe = pt(Me), Kt = xt ? xt.prototype : void 0, Ze = Kt ? Kt.valueOf : void 0;
|
1060
1060
|
function jt(e) {
|
1061
|
-
var
|
1062
|
-
for (this.clear(); ++
|
1063
|
-
var l = e[
|
1061
|
+
var s = -1, o = e ? e.length : 0;
|
1062
|
+
for (this.clear(); ++s < o; ) {
|
1063
|
+
var l = e[s];
|
1064
1064
|
this.set(l[0], l[1]);
|
1065
1065
|
}
|
1066
1066
|
}
|
@@ -1071,26 +1071,26 @@ hr.exports;
|
|
1071
1071
|
return this.has(e) && delete this.__data__[e];
|
1072
1072
|
}
|
1073
1073
|
function Tr(e) {
|
1074
|
-
var
|
1074
|
+
var s = this.__data__;
|
1075
1075
|
if (te) {
|
1076
|
-
var o =
|
1077
|
-
return o ===
|
1076
|
+
var o = s[e];
|
1077
|
+
return o === a ? void 0 : o;
|
1078
1078
|
}
|
1079
|
-
return kt.call(
|
1079
|
+
return kt.call(s, e) ? s[e] : void 0;
|
1080
1080
|
}
|
1081
1081
|
function Qe(e) {
|
1082
|
-
var
|
1083
|
-
return te ?
|
1082
|
+
var s = this.__data__;
|
1083
|
+
return te ? s[e] !== void 0 : kt.call(s, e);
|
1084
1084
|
}
|
1085
|
-
function xe(e,
|
1085
|
+
function xe(e, s) {
|
1086
1086
|
var o = this.__data__;
|
1087
|
-
return o[e] = te &&
|
1087
|
+
return o[e] = te && s === void 0 ? a : s, this;
|
1088
1088
|
}
|
1089
1089
|
jt.prototype.clear = kr, jt.prototype.delete = wr, jt.prototype.get = Tr, jt.prototype.has = Qe, jt.prototype.set = xe;
|
1090
1090
|
function nt(e) {
|
1091
|
-
var
|
1092
|
-
for (this.clear(); ++
|
1093
|
-
var l = e[
|
1091
|
+
var s = -1, o = e ? e.length : 0;
|
1092
|
+
for (this.clear(); ++s < o; ) {
|
1093
|
+
var l = e[s];
|
1094
1094
|
this.set(l[0], l[1]);
|
1095
1095
|
}
|
1096
1096
|
}
|
@@ -1098,28 +1098,28 @@ hr.exports;
|
|
1098
1098
|
this.__data__ = [];
|
1099
1099
|
}
|
1100
1100
|
function Er(e) {
|
1101
|
-
var
|
1101
|
+
var s = this.__data__, o = be(s, e);
|
1102
1102
|
if (o < 0)
|
1103
1103
|
return !1;
|
1104
|
-
var l =
|
1105
|
-
return o == l ?
|
1104
|
+
var l = s.length - 1;
|
1105
|
+
return o == l ? s.pop() : Sr.call(s, o, 1), !0;
|
1106
1106
|
}
|
1107
1107
|
function Ar(e) {
|
1108
|
-
var
|
1109
|
-
return o < 0 ? void 0 :
|
1108
|
+
var s = this.__data__, o = be(s, e);
|
1109
|
+
return o < 0 ? void 0 : s[o][1];
|
1110
1110
|
}
|
1111
1111
|
function Dr(e) {
|
1112
1112
|
return be(this.__data__, e) > -1;
|
1113
1113
|
}
|
1114
|
-
function Or(e,
|
1114
|
+
function Or(e, s) {
|
1115
1115
|
var o = this.__data__, l = be(o, e);
|
1116
|
-
return l < 0 ? o.push([e,
|
1116
|
+
return l < 0 ? o.push([e, s]) : o[l][1] = s, this;
|
1117
1117
|
}
|
1118
1118
|
nt.prototype.clear = Mr, nt.prototype.delete = Er, nt.prototype.get = Ar, nt.prototype.has = Dr, nt.prototype.set = Or;
|
1119
1119
|
function ct(e) {
|
1120
|
-
var
|
1121
|
-
for (this.clear(); ++
|
1122
|
-
var l = e[
|
1120
|
+
var s = -1, o = e ? e.length : 0;
|
1121
|
+
for (this.clear(); ++s < o; ) {
|
1122
|
+
var l = e[s];
|
1123
1123
|
this.set(l[0], l[1]);
|
1124
1124
|
}
|
1125
1125
|
}
|
@@ -1139,8 +1139,8 @@ hr.exports;
|
|
1139
1139
|
function Rr(e) {
|
1140
1140
|
return ne(this, e).has(e);
|
1141
1141
|
}
|
1142
|
-
function Fr(e,
|
1143
|
-
return ne(this, e).set(e,
|
1142
|
+
function Fr(e, s) {
|
1143
|
+
return ne(this, e).set(e, s), this;
|
1144
1144
|
}
|
1145
1145
|
ct.prototype.clear = xr, ct.prototype.delete = Pr, ct.prototype.get = Cr, ct.prototype.has = Rr, ct.prototype.set = Fr;
|
1146
1146
|
function ht(e) {
|
@@ -1158,37 +1158,37 @@ hr.exports;
|
|
1158
1158
|
function Nr(e) {
|
1159
1159
|
return this.__data__.has(e);
|
1160
1160
|
}
|
1161
|
-
function Lr(e,
|
1161
|
+
function Lr(e, s) {
|
1162
1162
|
var o = this.__data__;
|
1163
1163
|
if (o instanceof nt) {
|
1164
1164
|
var l = o.__data__;
|
1165
1165
|
if (!Qt || l.length < n - 1)
|
1166
|
-
return l.push([e,
|
1166
|
+
return l.push([e, s]), this;
|
1167
1167
|
o = this.__data__ = new ct(l);
|
1168
1168
|
}
|
1169
|
-
return o.set(e,
|
1169
|
+
return o.set(e, s), this;
|
1170
1170
|
}
|
1171
1171
|
ht.prototype.clear = zr, ht.prototype.delete = jr, ht.prototype.get = Hr, ht.prototype.has = Nr, ht.prototype.set = Lr;
|
1172
|
-
function ge(e,
|
1172
|
+
function ge(e, s) {
|
1173
1173
|
var o = Fe(e) || ve(e) ? Wt(e.length, String) : [], l = o.length, F = !!l;
|
1174
1174
|
for (var M in e)
|
1175
1175
|
kt.call(e, M) && !(F && (M == "length" || tn(M, l))) && o.push(M);
|
1176
1176
|
return o;
|
1177
1177
|
}
|
1178
|
-
function tr(e,
|
1179
|
-
var l = e[
|
1180
|
-
(!(kt.call(e,
|
1178
|
+
function tr(e, s, o) {
|
1179
|
+
var l = e[s];
|
1180
|
+
(!(kt.call(e, s) && sr(l, o)) || o === void 0 && !(s in e)) && (e[s] = o);
|
1181
1181
|
}
|
1182
|
-
function be(e,
|
1182
|
+
function be(e, s) {
|
1183
1183
|
for (var o = e.length; o--; )
|
1184
|
-
if (
|
1184
|
+
if (sr(e[o][0], s))
|
1185
1185
|
return o;
|
1186
1186
|
return -1;
|
1187
1187
|
}
|
1188
|
-
function Pt(e,
|
1189
|
-
return e && Re(
|
1188
|
+
function Pt(e, s) {
|
1189
|
+
return e && Re(s, je(s), e);
|
1190
1190
|
}
|
1191
|
-
function Pe(e,
|
1191
|
+
function Pe(e, s, o, l, F, M, W) {
|
1192
1192
|
var G;
|
1193
1193
|
if (l && (G = M ? l(e, F, M, W) : l(e)), G !== void 0)
|
1194
1194
|
return G;
|
@@ -1196,21 +1196,21 @@ hr.exports;
|
|
1196
1196
|
return e;
|
1197
1197
|
var q = Fe(e);
|
1198
1198
|
if (q) {
|
1199
|
-
if (G = Zr(e), !
|
1199
|
+
if (G = Zr(e), !s)
|
1200
1200
|
return Vr(e, G);
|
1201
1201
|
} else {
|
1202
1202
|
var Y = Nt(e), ut = Y == A || Y == x;
|
1203
1203
|
if (ir(e))
|
1204
|
-
return _e(e,
|
1204
|
+
return _e(e, s);
|
1205
1205
|
if (Y == C || Y == c || ut && !M) {
|
1206
1206
|
if (Yt(e))
|
1207
1207
|
return M ? e : {};
|
1208
|
-
if (G = Ct(ut ? {} : e), !
|
1208
|
+
if (G = Ct(ut ? {} : e), !s)
|
1209
1209
|
return Jr(e, Pt(G, e));
|
1210
1210
|
} else {
|
1211
1211
|
if (!L[Y])
|
1212
1212
|
return M ? e : {};
|
1213
|
-
G = Qr(e, Y, Pe,
|
1213
|
+
G = Qr(e, Y, Pe, s);
|
1214
1214
|
}
|
1215
1215
|
}
|
1216
1216
|
W || (W = new ht());
|
@@ -1219,15 +1219,15 @@ hr.exports;
|
|
1219
1219
|
return mt;
|
1220
1220
|
if (W.set(e, G), !q)
|
1221
1221
|
var tt = o ? qr(e) : je(e);
|
1222
|
-
return zt(tt || e, function(lt,
|
1223
|
-
tt && (
|
1222
|
+
return zt(tt || e, function(lt, at) {
|
1223
|
+
tt && (at = lt, lt = e[at]), tr(G, at, Pe(lt, s, o, l, at, e, W));
|
1224
1224
|
}), G;
|
1225
1225
|
}
|
1226
1226
|
function $r(e) {
|
1227
1227
|
return Rt(e) ? Ve(e) : {};
|
1228
1228
|
}
|
1229
|
-
function Ur(e,
|
1230
|
-
var l =
|
1229
|
+
function Ur(e, s, o) {
|
1230
|
+
var l = s(e);
|
1231
1231
|
return Fe(e) ? l : Mt(l, o(e));
|
1232
1232
|
}
|
1233
1233
|
function Gr(e) {
|
@@ -1236,81 +1236,81 @@ hr.exports;
|
|
1236
1236
|
function Wr(e) {
|
1237
1237
|
if (!Rt(e) || rn(e))
|
1238
1238
|
return !1;
|
1239
|
-
var
|
1240
|
-
return
|
1239
|
+
var s = ze(e) || Yt(e) ? K : Dt;
|
1240
|
+
return s.test(pt(e));
|
1241
1241
|
}
|
1242
1242
|
function Yr(e) {
|
1243
1243
|
if (!nr(e))
|
1244
1244
|
return qe(e);
|
1245
|
-
var
|
1245
|
+
var s = [];
|
1246
1246
|
for (var o in Object(e))
|
1247
|
-
kt.call(e, o) && o != "constructor" &&
|
1248
|
-
return
|
1247
|
+
kt.call(e, o) && o != "constructor" && s.push(o);
|
1248
|
+
return s;
|
1249
1249
|
}
|
1250
|
-
function _e(e,
|
1251
|
-
if (
|
1250
|
+
function _e(e, s) {
|
1251
|
+
if (s)
|
1252
1252
|
return e.slice();
|
1253
1253
|
var o = new e.constructor(e.length);
|
1254
1254
|
return e.copy(o), o;
|
1255
1255
|
}
|
1256
1256
|
function Ce(e) {
|
1257
|
-
var
|
1258
|
-
return new Zt(
|
1257
|
+
var s = new e.constructor(e.byteLength);
|
1258
|
+
return new Zt(s).set(new Zt(e)), s;
|
1259
1259
|
}
|
1260
|
-
function re(e,
|
1261
|
-
var o =
|
1260
|
+
function re(e, s) {
|
1261
|
+
var o = s ? Ce(e.buffer) : e.buffer;
|
1262
1262
|
return new e.constructor(o, e.byteOffset, e.byteLength);
|
1263
1263
|
}
|
1264
|
-
function er(e,
|
1265
|
-
var l =
|
1266
|
-
return Gt(l,
|
1264
|
+
function er(e, s, o) {
|
1265
|
+
var l = s ? o(z(e), !0) : z(e);
|
1266
|
+
return Gt(l, st, new e.constructor());
|
1267
1267
|
}
|
1268
1268
|
function rr(e) {
|
1269
|
-
var
|
1270
|
-
return
|
1269
|
+
var s = new e.constructor(e.source, vt.exec(e));
|
1270
|
+
return s.lastIndex = e.lastIndex, s;
|
1271
1271
|
}
|
1272
|
-
function Br(e,
|
1273
|
-
var l =
|
1272
|
+
function Br(e, s, o) {
|
1273
|
+
var l = s ? o(U(e), !0) : U(e);
|
1274
1274
|
return Gt(l, Z, new e.constructor());
|
1275
1275
|
}
|
1276
1276
|
function Kr(e) {
|
1277
1277
|
return Ze ? Object(Ze.call(e)) : {};
|
1278
1278
|
}
|
1279
|
-
function Xr(e,
|
1280
|
-
var o =
|
1279
|
+
function Xr(e, s) {
|
1280
|
+
var o = s ? Ce(e.buffer) : e.buffer;
|
1281
1281
|
return new e.constructor(o, e.byteOffset, e.length);
|
1282
1282
|
}
|
1283
|
-
function Vr(e,
|
1283
|
+
function Vr(e, s) {
|
1284
1284
|
var o = -1, l = e.length;
|
1285
|
-
for (
|
1286
|
-
|
1287
|
-
return
|
1285
|
+
for (s || (s = Array(l)); ++o < l; )
|
1286
|
+
s[o] = e[o];
|
1287
|
+
return s;
|
1288
1288
|
}
|
1289
|
-
function Re(e,
|
1289
|
+
function Re(e, s, o, l) {
|
1290
1290
|
o || (o = {});
|
1291
|
-
for (var F = -1, M =
|
1292
|
-
var W =
|
1291
|
+
for (var F = -1, M = s.length; ++F < M; ) {
|
1292
|
+
var W = s[F], G = void 0;
|
1293
1293
|
tr(o, W, G === void 0 ? e[W] : G);
|
1294
1294
|
}
|
1295
1295
|
return o;
|
1296
1296
|
}
|
1297
|
-
function Jr(e,
|
1298
|
-
return Re(e, Ht(e),
|
1297
|
+
function Jr(e, s) {
|
1298
|
+
return Re(e, Ht(e), s);
|
1299
1299
|
}
|
1300
1300
|
function qr(e) {
|
1301
1301
|
return Ur(e, je, Ht);
|
1302
1302
|
}
|
1303
|
-
function ne(e,
|
1303
|
+
function ne(e, s) {
|
1304
1304
|
var o = e.__data__;
|
1305
|
-
return en(
|
1305
|
+
return en(s) ? o[typeof s == "string" ? "string" : "hash"] : o.map;
|
1306
1306
|
}
|
1307
|
-
function At(e,
|
1308
|
-
var o = Jt(e,
|
1307
|
+
function At(e, s) {
|
1308
|
+
var o = Jt(e, s);
|
1309
1309
|
return Wr(o) ? o : void 0;
|
1310
1310
|
}
|
1311
|
-
var Ht = Te ? $(Te, Object) :
|
1311
|
+
var Ht = Te ? $(Te, Object) : an, Nt = Gr;
|
1312
1312
|
(ye && Nt(new ye(new ArrayBuffer(1))) != I || Qt && Nt(new Qt()) != y || Et && Nt(Et.resolve()) != u || Ie && Nt(new Ie()) != g || Me && Nt(new Me()) != h) && (Nt = function(e) {
|
1313
|
-
var
|
1313
|
+
var s = Bt.call(e), o = s == C ? e.constructor : void 0, l = o ? pt(o) : void 0;
|
1314
1314
|
if (l)
|
1315
1315
|
switch (l) {
|
1316
1316
|
case Ee:
|
@@ -1324,18 +1324,18 @@ hr.exports;
|
|
1324
1324
|
case Oe:
|
1325
1325
|
return h;
|
1326
1326
|
}
|
1327
|
-
return
|
1327
|
+
return s;
|
1328
1328
|
});
|
1329
1329
|
function Zr(e) {
|
1330
|
-
var
|
1331
|
-
return
|
1330
|
+
var s = e.length, o = e.constructor(s);
|
1331
|
+
return s && typeof e[0] == "string" && kt.call(e, "index") && (o.index = e.index, o.input = e.input), o;
|
1332
1332
|
}
|
1333
1333
|
function Ct(e) {
|
1334
1334
|
return typeof e.constructor == "function" && !nr(e) ? $r(ot(e)) : {};
|
1335
1335
|
}
|
1336
|
-
function Qr(e,
|
1336
|
+
function Qr(e, s, o, l) {
|
1337
1337
|
var F = e.constructor;
|
1338
|
-
switch (
|
1338
|
+
switch (s) {
|
1339
1339
|
case v:
|
1340
1340
|
return Ce(e);
|
1341
1341
|
case p:
|
@@ -1366,18 +1366,18 @@ hr.exports;
|
|
1366
1366
|
return Kr(e);
|
1367
1367
|
}
|
1368
1368
|
}
|
1369
|
-
function tn(e,
|
1370
|
-
return
|
1369
|
+
function tn(e, s) {
|
1370
|
+
return s = s ?? i, !!s && (typeof e == "number" || Ot.test(e)) && e > -1 && e % 1 == 0 && e < s;
|
1371
1371
|
}
|
1372
1372
|
function en(e) {
|
1373
|
-
var
|
1374
|
-
return
|
1373
|
+
var s = typeof e;
|
1374
|
+
return s == "string" || s == "number" || s == "symbol" || s == "boolean" ? e !== "__proto__" : e === null;
|
1375
1375
|
}
|
1376
1376
|
function rn(e) {
|
1377
1377
|
return !!J && J in e;
|
1378
1378
|
}
|
1379
1379
|
function nr(e) {
|
1380
|
-
var
|
1380
|
+
var s = e && e.constructor, o = typeof s == "function" && s.prototype || Q;
|
1381
1381
|
return e === o;
|
1382
1382
|
}
|
1383
1383
|
function pt(e) {
|
@@ -1393,11 +1393,11 @@ hr.exports;
|
|
1393
1393
|
}
|
1394
1394
|
return "";
|
1395
1395
|
}
|
1396
|
-
function
|
1396
|
+
function ar(e) {
|
1397
1397
|
return Pe(e, !0, !0);
|
1398
1398
|
}
|
1399
|
-
function
|
1400
|
-
return e ===
|
1399
|
+
function sr(e, s) {
|
1400
|
+
return e === s || e !== e && s !== s;
|
1401
1401
|
}
|
1402
1402
|
function ve(e) {
|
1403
1403
|
return nn(e) && kt.call(e, "callee") && (!Je.call(e, "callee") || Bt.call(e) == c);
|
@@ -1409,17 +1409,17 @@ hr.exports;
|
|
1409
1409
|
function nn(e) {
|
1410
1410
|
return cr(e) && Se(e);
|
1411
1411
|
}
|
1412
|
-
var ir = me ||
|
1412
|
+
var ir = me || sn;
|
1413
1413
|
function ze(e) {
|
1414
|
-
var
|
1415
|
-
return
|
1414
|
+
var s = Rt(e) ? Bt.call(e) : "";
|
1415
|
+
return s == A || s == x;
|
1416
1416
|
}
|
1417
1417
|
function or(e) {
|
1418
1418
|
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= i;
|
1419
1419
|
}
|
1420
1420
|
function Rt(e) {
|
1421
|
-
var
|
1422
|
-
return !!e && (
|
1421
|
+
var s = typeof e;
|
1422
|
+
return !!e && (s == "object" || s == "function");
|
1423
1423
|
}
|
1424
1424
|
function cr(e) {
|
1425
1425
|
return !!e && typeof e == "object";
|
@@ -1427,66 +1427,70 @@ hr.exports;
|
|
1427
1427
|
function je(e) {
|
1428
1428
|
return Se(e) ? ge(e) : Yr(e);
|
1429
1429
|
}
|
1430
|
-
function
|
1430
|
+
function an() {
|
1431
1431
|
return [];
|
1432
1432
|
}
|
1433
|
-
function
|
1433
|
+
function sn() {
|
1434
1434
|
return !1;
|
1435
1435
|
}
|
1436
|
-
t.exports =
|
1436
|
+
t.exports = ar;
|
1437
1437
|
})(hr, hr.exports);
|
1438
|
-
var
|
1439
|
-
const B = /* @__PURE__ */ En(
|
1440
|
-
const
|
1441
|
-
console.warn("update cdn config for cors?"),
|
1442
|
-
const i =
|
1438
|
+
var us = hr.exports;
|
1439
|
+
const B = /* @__PURE__ */ En(us), gn = (t) => new Promise((r, n) => {
|
1440
|
+
const a = new Image();
|
1441
|
+
console.warn("update cdn config for cors?"), a.onload = () => {
|
1442
|
+
const i = a.width, c = a.height;
|
1443
1443
|
r({ width: i, height: c });
|
1444
|
-
},
|
1444
|
+
}, a.onerror = (i) => {
|
1445
1445
|
n(i);
|
1446
|
-
},
|
1447
|
-
}),
|
1448
|
-
const
|
1449
|
-
|
1450
|
-
const i =
|
1446
|
+
}, a.crossOrigin = "anonymous", a.src = t;
|
1447
|
+
}), oa = (t) => new Promise((r, n) => {
|
1448
|
+
const a = new Audio();
|
1449
|
+
a.preload = "auto", a.addEventListener("loadedmetadata", () => {
|
1450
|
+
const i = a.duration * 1e3;
|
1451
1451
|
r({ duration: i });
|
1452
|
-
}),
|
1452
|
+
}), a.addEventListener("error", (i) => {
|
1453
1453
|
n(i);
|
1454
|
-
}),
|
1454
|
+
}), a.src = t, a.crossOrigin = "anonymous", a.load();
|
1455
1455
|
}), bn = (t) => new Promise((r, n) => {
|
1456
|
-
const
|
1457
|
-
|
1458
|
-
const i =
|
1456
|
+
const a = document.createElement("video");
|
1457
|
+
a.preload = "auto", a.addEventListener("loadedmetadata", () => {
|
1458
|
+
const i = a.duration * 1e3, c = a.videoWidth, f = a.videoHeight;
|
1459
1459
|
r({ duration: i, width: c, height: f });
|
1460
|
-
}),
|
1460
|
+
}), a.addEventListener("error", (i) => {
|
1461
1461
|
n(i);
|
1462
|
-
}),
|
1463
|
-
}),
|
1462
|
+
}), a.src = t, a.load();
|
1463
|
+
}), ls = async (t) => {
|
1464
|
+
var i, c;
|
1465
|
+
const r = t.duration, n = (i = t.details) == null ? void 0 : i.width, a = (c = t.details) == null ? void 0 : c.height;
|
1466
|
+
return r && n && a ? { duration: r, width: n, height: a } : bn(t.details.src);
|
1467
|
+
}, ca = (t, r) => {
|
1464
1468
|
const n = document.createElement("div");
|
1465
1469
|
Object.keys(r).forEach((i) => {
|
1466
1470
|
i !== "height" && (n.style[i] = r[i]);
|
1467
1471
|
}), document.body.appendChild(n), n.textContent = t, n.style.whiteSpace = "normal", n.style.position = "absolute", n.style.visibility = "hidden", n.style.display = "inline-block", n.style.width = r.width + "px", n.style.fontSize = r.fontSize + "px";
|
1468
|
-
const
|
1469
|
-
return document.body.removeChild(n), parseFloat(
|
1472
|
+
const a = getComputedStyle(n).height;
|
1473
|
+
return document.body.removeChild(n), parseFloat(a);
|
1470
1474
|
}, mr = (t) => {
|
1471
|
-
const r = t.map((n) => new FontFace(n.fontFamily, `url(${n.url})`).load().catch((
|
1472
|
-
return r.length === 0 ? Promise.resolve(!0) : new Promise((n,
|
1475
|
+
const r = t.map((n) => new FontFace(n.fontFamily, `url(${n.url})`).load().catch((a) => a));
|
1476
|
+
return r.length === 0 ? Promise.resolve(!0) : new Promise((n, a) => {
|
1473
1477
|
Promise.all(r).then((i) => {
|
1474
1478
|
i.forEach((c) => {
|
1475
1479
|
c && c.family && (document.fonts.add(c), n(!0));
|
1476
1480
|
});
|
1477
|
-
}).catch((i) =>
|
1481
|
+
}).catch((i) => a(i));
|
1478
1482
|
});
|
1479
|
-
},
|
1483
|
+
}, ds = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
1480
1484
|
let He = (t = 21) => {
|
1481
1485
|
let r = "", n = crypto.getRandomValues(new Uint8Array(t));
|
1482
1486
|
for (; t--; )
|
1483
|
-
r +=
|
1487
|
+
r += ds[n[t] & 63];
|
1484
1488
|
return r;
|
1485
1489
|
};
|
1486
1490
|
function ke(t = 16) {
|
1487
1491
|
const r = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ", n = r.charAt(Math.floor(Math.random() * r.length));
|
1488
|
-
let
|
1489
|
-
return
|
1492
|
+
let a = He(t - 1);
|
1493
|
+
return a = a.replace(/[^a-zA-Z0-9]/g, "").slice(0, t - 1), n + a;
|
1490
1494
|
}
|
1491
1495
|
const _r = {
|
1492
1496
|
color: "#000000",
|
@@ -1495,16 +1499,16 @@ const _r = {
|
|
1495
1499
|
blur: 0
|
1496
1500
|
}, Ye = (t, r) => {
|
1497
1501
|
let n = r != null && r.trim ? r.trim.to - r.trim.from : (r == null ? void 0 : r.duration) || 5e3;
|
1498
|
-
const
|
1502
|
+
const a = {
|
1499
1503
|
from: 0,
|
1500
1504
|
to: n
|
1501
1505
|
};
|
1502
1506
|
if (!t)
|
1503
|
-
return
|
1507
|
+
return a;
|
1504
1508
|
if (t.from < 0)
|
1505
1509
|
return console.error(
|
1506
1510
|
"'from' must be a non-negative number. Returning default display."
|
1507
|
-
),
|
1511
|
+
), a;
|
1508
1512
|
if (t.from !== void 0 && t.to === void 0)
|
1509
1513
|
return {
|
1510
1514
|
from: t.from,
|
@@ -1514,14 +1518,14 @@ const _r = {
|
|
1514
1518
|
if (t.to < 0)
|
1515
1519
|
return console.error(
|
1516
1520
|
"'to' must be a non-negative number. Returning default display."
|
1517
|
-
),
|
1521
|
+
), a;
|
1518
1522
|
if (t.to < t.from)
|
1519
1523
|
return console.error(
|
1520
1524
|
"'to' must be greater than or equal to 'from'. Returning default display."
|
1521
|
-
),
|
1525
|
+
), a;
|
1522
1526
|
}
|
1523
1527
|
return t;
|
1524
|
-
},
|
1528
|
+
}, ua = (t, r) => t ? t.from && !t.to ? {
|
1525
1529
|
from: t.from,
|
1526
1530
|
to: r.duration
|
1527
1531
|
} : t : {
|
@@ -1529,7 +1533,7 @@ const _r = {
|
|
1529
1533
|
to: r.duration
|
1530
1534
|
};
|
1531
1535
|
function Be(t, r) {
|
1532
|
-
const n = t.scaleMode,
|
1536
|
+
const n = t.scaleMode, a = {
|
1533
1537
|
x: t.size.width / 2,
|
1534
1538
|
y: t.size.height / 2
|
1535
1539
|
}, i = { x: r.width / 2, y: r.height / 2 };
|
@@ -1541,19 +1545,19 @@ function Be(t, r) {
|
|
1541
1545
|
t.size.width / r.width,
|
1542
1546
|
t.size.height / r.height
|
1543
1547
|
);
|
1544
|
-
const f =
|
1548
|
+
const f = a.x - i.x;
|
1545
1549
|
return {
|
1546
|
-
top: `${
|
1550
|
+
top: `${a.y - i.y}px`,
|
1547
1551
|
left: `${f}px`,
|
1548
1552
|
transform: `scale(${c})`
|
1549
1553
|
};
|
1550
1554
|
}
|
1551
|
-
const
|
1552
|
-
const n = t.details.src,
|
1553
|
-
...
|
1554
|
-
}), c =
|
1555
|
-
width:
|
1556
|
-
height:
|
1555
|
+
const la = async (t, r) => {
|
1556
|
+
const n = t.details.src, a = await ls(t), i = Be(r, {
|
1557
|
+
...a
|
1558
|
+
}), c = ua(t.trim, { duration: a.duration }), f = {
|
1559
|
+
width: a.width,
|
1560
|
+
height: a.height,
|
1557
1561
|
opacity: 100,
|
1558
1562
|
src: n,
|
1559
1563
|
volume: t.details.volume ?? 100,
|
@@ -1585,11 +1589,11 @@ const ls = async (t, r) => {
|
|
1585
1589
|
name: "video",
|
1586
1590
|
details: f,
|
1587
1591
|
playbackRate: t.playbackRate || 1,
|
1588
|
-
display: Ye(t.display, { duration:
|
1589
|
-
duration:
|
1592
|
+
display: Ye(t.display, { duration: a.duration, trim: c }),
|
1593
|
+
duration: a.duration
|
1590
1594
|
};
|
1591
|
-
},
|
1592
|
-
const r = t.id, n = t.details, i = (await
|
1595
|
+
}, da = async (t) => {
|
1596
|
+
const r = t.id, n = t.details, i = (await oa(n.src)).duration, c = ua(t.trim, { duration: i });
|
1593
1597
|
return {
|
1594
1598
|
id: r,
|
1595
1599
|
name: t.name || "audio",
|
@@ -1605,15 +1609,15 @@ const ls = async (t, r) => {
|
|
1605
1609
|
metadata: { ...t.metadata },
|
1606
1610
|
duration: i
|
1607
1611
|
};
|
1608
|
-
},
|
1612
|
+
}, fa = async (t, r) => {
|
1609
1613
|
var x;
|
1610
|
-
const n = t.trackItemIds,
|
1614
|
+
const n = t.trackItemIds, a = t.size || {
|
1611
1615
|
width: t.details.width,
|
1612
1616
|
height: t.details.height
|
1613
1617
|
}, i = Math.min(
|
1614
|
-
r.size.width /
|
1615
|
-
r.size.height /
|
1616
|
-
), c = ((x = t.details) == null ? void 0 : x.rotate) || 0, f = Be(r,
|
1618
|
+
r.size.width / a.width,
|
1619
|
+
r.size.height / a.height
|
1620
|
+
), c = ((x = t.details) == null ? void 0 : x.rotate) || 0, f = Be(r, a), p = t.display;
|
1617
1621
|
let k = 1 / 0, H = 0;
|
1618
1622
|
n.forEach((y) => {
|
1619
1623
|
const T = t.trackItemsMap[y];
|
@@ -1624,7 +1628,7 @@ const ls = async (t, r) => {
|
|
1624
1628
|
id: t.id,
|
1625
1629
|
type: "template",
|
1626
1630
|
details: {
|
1627
|
-
...
|
1631
|
+
...a,
|
1628
1632
|
top: t.details.top || f.top,
|
1629
1633
|
left: t.details.left || f.left,
|
1630
1634
|
scale: i,
|
@@ -1634,8 +1638,8 @@ const ls = async (t, r) => {
|
|
1634
1638
|
display: p || { from: k, to: H },
|
1635
1639
|
activeEdit: !1
|
1636
1640
|
};
|
1637
|
-
},
|
1638
|
-
const n = t.details,
|
1641
|
+
}, pa = async (t, r) => {
|
1642
|
+
const n = t.details, a = await gn(n.src), i = Be(r, a);
|
1639
1643
|
return {
|
1640
1644
|
id: t.id,
|
1641
1645
|
type: "image",
|
@@ -1645,9 +1649,9 @@ const ls = async (t, r) => {
|
|
1645
1649
|
details: {
|
1646
1650
|
src: n.src || "",
|
1647
1651
|
// Default source URL
|
1648
|
-
width: n.width ||
|
1652
|
+
width: n.width || a.width || 100,
|
1649
1653
|
// Default width
|
1650
|
-
height: n.height ||
|
1654
|
+
height: n.height || a.height || 100,
|
1651
1655
|
// Default height
|
1652
1656
|
opacity: n.opacity ?? 100,
|
1653
1657
|
// Default opacity
|
@@ -1676,7 +1680,7 @@ const ls = async (t, r) => {
|
|
1676
1680
|
},
|
1677
1681
|
metadata: t.metadata || {}
|
1678
1682
|
};
|
1679
|
-
},
|
1683
|
+
}, ha = async (t, r) => {
|
1680
1684
|
const n = t;
|
1681
1685
|
n.details.fontUrl && await mr([
|
1682
1686
|
{
|
@@ -1684,12 +1688,12 @@ const ls = async (t, r) => {
|
|
1684
1688
|
url: n.details.fontUrl
|
1685
1689
|
}
|
1686
1690
|
]);
|
1687
|
-
const
|
1691
|
+
const a = n.id, i = n.details, c = ya(i), f = ca(n.details.text, c), p = Be(r, {
|
1688
1692
|
width: c.width,
|
1689
1693
|
height: f
|
1690
1694
|
});
|
1691
1695
|
return {
|
1692
|
-
id:
|
1696
|
+
id: a,
|
1693
1697
|
name: "caption",
|
1694
1698
|
type: "caption",
|
1695
1699
|
display: Ye(n.display),
|
@@ -1705,18 +1709,21 @@ const ls = async (t, r) => {
|
|
1705
1709
|
borderWidth: i.borderWidth || 0,
|
1706
1710
|
borderColor: i.borderColor || "#000000",
|
1707
1711
|
boxShadow: i.boxShadow || _r,
|
1708
|
-
words: i.words || []
|
1712
|
+
words: i.words || [],
|
1713
|
+
appearedColor: i.appearedColor || i.color,
|
1714
|
+
activeColor: i.activeColor || i.color,
|
1715
|
+
activeFillColor: i.activeFillColor || "transparent"
|
1709
1716
|
},
|
1710
1717
|
metadata: t.metadata || {}
|
1711
1718
|
};
|
1712
|
-
},
|
1719
|
+
}, ma = async (t, r) => {
|
1713
1720
|
t.details.fontUrl && await mr([
|
1714
1721
|
{
|
1715
1722
|
fontFamily: t.details.fontFamily,
|
1716
1723
|
url: t.details.fontUrl
|
1717
1724
|
}
|
1718
1725
|
]);
|
1719
|
-
const n = t.id,
|
1726
|
+
const n = t.id, a = t.details, i = ya(a), c = ca(t.details.text, i), f = Be(r, {
|
1720
1727
|
width: i.width,
|
1721
1728
|
height: c
|
1722
1729
|
});
|
@@ -1727,20 +1734,20 @@ const ls = async (t, r) => {
|
|
1727
1734
|
display: Ye(t.display),
|
1728
1735
|
details: {
|
1729
1736
|
...i,
|
1730
|
-
text:
|
1737
|
+
text: a.text || "",
|
1731
1738
|
// Default text content
|
1732
1739
|
height: c,
|
1733
1740
|
// Default height
|
1734
|
-
fontUrl:
|
1741
|
+
fontUrl: a.fontUrl,
|
1735
1742
|
top: i.top || f.top,
|
1736
1743
|
left: i.left || f.left,
|
1737
|
-
borderWidth:
|
1738
|
-
borderColor:
|
1739
|
-
boxShadow:
|
1744
|
+
borderWidth: a.borderWidth || 0,
|
1745
|
+
borderColor: a.borderColor || "#000000",
|
1746
|
+
boxShadow: a.boxShadow || _r
|
1740
1747
|
},
|
1741
1748
|
metadata: {}
|
1742
1749
|
};
|
1743
|
-
},
|
1750
|
+
}, ya = (t) => ({
|
1744
1751
|
fontFamily: t.fontFamily || "Arial",
|
1745
1752
|
// Default font family
|
1746
1753
|
fontSize: t.fontSize || "16px",
|
@@ -1784,35 +1791,35 @@ const ls = async (t, r) => {
|
|
1784
1791
|
transform: t.transform || "none",
|
1785
1792
|
skewX: t.skewX || 0,
|
1786
1793
|
skewY: t.skewY || 0
|
1787
|
-
}),
|
1794
|
+
}), fs = async (t, r) => {
|
1788
1795
|
switch (t.type) {
|
1789
1796
|
case "video":
|
1790
|
-
return
|
1797
|
+
return la(t, r || {});
|
1791
1798
|
case "audio":
|
1792
|
-
return
|
1799
|
+
return da(t);
|
1793
1800
|
case "image":
|
1794
|
-
return
|
1801
|
+
return pa(t, r || {});
|
1795
1802
|
case "text":
|
1796
|
-
return
|
1803
|
+
return ma(t, r || {});
|
1797
1804
|
case "caption":
|
1798
|
-
return
|
1805
|
+
return ha(t, r || {});
|
1799
1806
|
case "template":
|
1800
|
-
return
|
1807
|
+
return fa(t, {
|
1801
1808
|
size: r == null ? void 0 : r.size
|
1802
1809
|
});
|
1803
1810
|
default:
|
1804
1811
|
throw new Error("Unsupported track item");
|
1805
1812
|
}
|
1806
1813
|
};
|
1807
|
-
function
|
1814
|
+
function ps(t, r) {
|
1808
1815
|
return r.some(
|
1809
|
-
(n) => t.some((
|
1816
|
+
(n) => t.some((a) => a.id === n.id)
|
1810
1817
|
);
|
1811
1818
|
}
|
1812
|
-
const
|
1819
|
+
const hs = (t = [], r = []) => t.length === 0 ? r.map((a) => ({
|
1813
1820
|
id: ke(),
|
1814
|
-
items: [
|
1815
|
-
type:
|
1821
|
+
items: [a.id],
|
1822
|
+
type: a.type,
|
1816
1823
|
accepts: ["text", "image", "video", "audio", "caption", "template"]
|
1817
1824
|
})) : t.map((n) => ({
|
1818
1825
|
...n,
|
@@ -1823,25 +1830,25 @@ const pa = (t = [], r = []) => t.length === 0 ? r.map((s) => ({
|
|
1823
1830
|
static: n.static || !1,
|
1824
1831
|
id: n.id || ke()
|
1825
1832
|
}));
|
1826
|
-
function
|
1827
|
-
return t.filter((
|
1833
|
+
function ms(t, r) {
|
1834
|
+
return t.filter((a) => {
|
1828
1835
|
if (r.forEach((i) => {
|
1829
|
-
|
1830
|
-
}),
|
1831
|
-
return
|
1836
|
+
a.items.includes(i) && (a.items = a.items.filter((c) => c !== i));
|
1837
|
+
}), a.items.length !== 0 || a.static)
|
1838
|
+
return a;
|
1832
1839
|
});
|
1833
1840
|
}
|
1834
1841
|
const ue = (t) => Object.keys(t).reduce((r, n) => {
|
1835
|
-
const { display:
|
1836
|
-
return Math.max(r,
|
1842
|
+
const { display: a, playbackRate: i } = t[n];
|
1843
|
+
return Math.max(r, a.to / (i || 1));
|
1837
1844
|
}, 0);
|
1838
1845
|
function _n(t, r, n) {
|
1839
1846
|
return Math.min(Math.max(t, r), n);
|
1840
1847
|
}
|
1841
|
-
const
|
1842
|
-
if (
|
1848
|
+
const ys = (t, r, n, a, i) => {
|
1849
|
+
if (a === void 0 && i === void 0)
|
1843
1850
|
return { trackId: void 0, trackIndex: void 0 };
|
1844
|
-
const c = i !== void 0 ? r[_n(i, 0, r.length)] : r.find((k) => k.id ===
|
1851
|
+
const c = i !== void 0 ? r[_n(i, 0, r.length)] : r.find((k) => k.id === a);
|
1845
1852
|
if (!c)
|
1846
1853
|
return {
|
1847
1854
|
trackId: void 0,
|
@@ -1865,42 +1872,42 @@ const ma = (t, r, n, s, i) => {
|
|
1865
1872
|
};
|
1866
1873
|
}, $n = (t, r) => {
|
1867
1874
|
var p, k;
|
1868
|
-
const n = ((p = t.details.crop) == null ? void 0 : p.width) || t.details.width || 0,
|
1875
|
+
const n = ((p = t.details.crop) == null ? void 0 : p.width) || t.details.width || 0, a = ((k = t.details.crop) == null ? void 0 : k.height) || t.details.height || 0;
|
1869
1876
|
let i = r.width, c = r.height;
|
1870
1877
|
const f = r.width / r.height;
|
1871
|
-
return n /
|
1878
|
+
return n / a > f ? (i = n, c = n / f) : (c = a, i = a * f), {
|
1872
1879
|
newWidth: i,
|
1873
1880
|
newHeight: c,
|
1874
1881
|
crop: {
|
1875
1882
|
x: 0,
|
1876
1883
|
y: 0,
|
1877
|
-
height:
|
1884
|
+
height: a,
|
1878
1885
|
width: n
|
1879
1886
|
}
|
1880
1887
|
};
|
1881
1888
|
}, Un = (t, r) => {
|
1882
|
-
const n = B(t.trim),
|
1883
|
-
return r.duration < t.display.to && (
|
1889
|
+
const n = B(t.trim), a = B(t.display);
|
1890
|
+
return r.duration < t.display.to && (a.to = r.duration, n && (n.to = r.duration)), {
|
1884
1891
|
duration: r.duration,
|
1885
1892
|
trim: n,
|
1886
|
-
display:
|
1893
|
+
display: a
|
1887
1894
|
};
|
1888
1895
|
};
|
1889
|
-
function
|
1890
|
-
let
|
1896
|
+
function Is(t, r) {
|
1897
|
+
let a = r.reduce(
|
1891
1898
|
(i, c) => c.display.to > i.display.to ? c : i,
|
1892
1899
|
{ display: { to: 0 } }
|
1893
1900
|
).display.to;
|
1894
1901
|
t.forEach((i) => {
|
1895
1902
|
const c = i.display.from, p = i.display.to - c;
|
1896
|
-
i.display.from =
|
1903
|
+
i.display.from = a, i.display.to = i.display.from + p, a = i.display.to;
|
1897
1904
|
});
|
1898
1905
|
}
|
1899
|
-
function
|
1900
|
-
const r = t, n = r.tracks,
|
1906
|
+
function gs(t) {
|
1907
|
+
const r = t, n = r.tracks, a = r.trackItemsMap, i = [], c = {}, f = r.structure;
|
1901
1908
|
return n.forEach((p) => {
|
1902
1909
|
var H;
|
1903
|
-
const k = p.items.map((A) =>
|
1910
|
+
const k = p.items.map((A) => a[A]).sort((A, x) => A.display.from - x.display.from);
|
1904
1911
|
for (let A = 0; A < k.length - 1; A++) {
|
1905
1912
|
const x = k[A], y = k[A + 1];
|
1906
1913
|
if (Math.abs(x.display.to - y.display.from) <= 1) {
|
@@ -1934,12 +1941,12 @@ function Ia(t) {
|
|
1934
1941
|
transitionsMap: c
|
1935
1942
|
};
|
1936
1943
|
}
|
1937
|
-
function
|
1944
|
+
function bs(t) {
|
1938
1945
|
const r = ie.pipe(
|
1939
1946
|
oe(({ key: u }) => u.startsWith(An))
|
1940
1947
|
), n = ie.pipe(
|
1941
1948
|
oe(({ key: u }) => u.startsWith(Tt))
|
1942
|
-
),
|
1949
|
+
), a = ie.pipe(
|
1943
1950
|
oe(({ key: u }) => u.startsWith(dt))
|
1944
1951
|
), i = ie.pipe(
|
1945
1952
|
oe(({ key: u }) => u.startsWith(br))
|
@@ -1948,10 +1955,10 @@ function ga(t) {
|
|
1948
1955
|
), f = ie.pipe(
|
1949
1956
|
oe(({ key: u }) => u.startsWith(he))
|
1950
1957
|
), p = ie.pipe(
|
1951
|
-
oe(({ key: u }) => u.startsWith(
|
1958
|
+
oe(({ key: u }) => u.startsWith(ia))
|
1952
1959
|
), k = r.subscribe(async (u) => {
|
1953
1960
|
var d, g;
|
1954
|
-
if (u.key ===
|
1961
|
+
if (u.key === Ua) {
|
1955
1962
|
const b = (d = u.value) == null ? void 0 : d.payload, _ = b.trackItemsMap, h = b.trackItemDetailsMap;
|
1956
1963
|
console.warn("IMPROVE FONTS LOADING");
|
1957
1964
|
for (const I in h)
|
@@ -1976,7 +1983,7 @@ function ga(t) {
|
|
1976
1983
|
}
|
1977
1984
|
);
|
1978
1985
|
}
|
1979
|
-
if (u.key ===
|
1986
|
+
if (u.key === Ga) {
|
1980
1987
|
const b = (g = u.value) == null ? void 0 : g.payload;
|
1981
1988
|
t.updateState(
|
1982
1989
|
{
|
@@ -1989,11 +1996,11 @@ function ga(t) {
|
|
1989
1996
|
);
|
1990
1997
|
}
|
1991
1998
|
}), H = i.subscribe((u) => {
|
1992
|
-
if (u.key ===
|
1993
|
-
if (u.key ===
|
1999
|
+
if (u.key === is) return t.undo();
|
2000
|
+
if (u.key === os) return t.redo();
|
1994
2001
|
}), A = p.subscribe((u) => {
|
1995
2002
|
var d;
|
1996
|
-
if (u.key ===
|
2003
|
+
if (u.key === cs) {
|
1997
2004
|
const g = (d = u.value) == null ? void 0 : d.payload.scale;
|
1998
2005
|
t.updateState(
|
1999
2006
|
{
|
@@ -2005,7 +2012,7 @@ function ga(t) {
|
|
2005
2012
|
}
|
2006
2013
|
);
|
2007
2014
|
}
|
2008
|
-
}), x =
|
2015
|
+
}), x = a.subscribe(async (u) => {
|
2009
2016
|
var g, b, _, h, v;
|
2010
2017
|
const d = [];
|
2011
2018
|
if ((g = u.value) != null && g.payload.trackItemIds && (d.push((b = u.value) == null ? void 0 : b.payload.trackItemIds), t.updateState(
|
@@ -2014,7 +2021,7 @@ function ga(t) {
|
|
2014
2021
|
kind: "update",
|
2015
2022
|
updateHistory: !1
|
2016
2023
|
}
|
2017
|
-
)), u.key ===
|
2024
|
+
)), u.key === as) {
|
2018
2025
|
const I = (_ = u.value) == null ? void 0 : _.payload.trackItemIds, m = B(t.getState()), O = I && I.length ? I : m.activeIds, D = O.map((S) => m.transitionsMap[S]).filter((S) => !!S).map((S) => S.id), w = O.map((S) => m.trackItemsMap[S]).filter((S) => !!S).map((S) => S.id), R = m.transitionIds.filter(
|
2019
2026
|
(S) => {
|
2020
2027
|
const V = m.transitionsMap[S];
|
@@ -2024,12 +2031,12 @@ function ga(t) {
|
|
2024
2031
|
w.push(...R, ...D);
|
2025
2032
|
const j = m.trackItemIds, N = m.transitionIds, E = m.trackItemDetailsMap, P = B(m.tracks), X = B(m.structure);
|
2026
2033
|
w.forEach((S) => {
|
2027
|
-
var
|
2034
|
+
var st;
|
2028
2035
|
const V = m.trackItemsMap[S] || m.transitionsMap[S];
|
2029
2036
|
if (V.type === "template") {
|
2030
|
-
const Z = (
|
2037
|
+
const Z = (st = m.structure.find(
|
2031
2038
|
(Mt) => Mt.id === V.id
|
2032
|
-
)) == null ? void 0 :
|
2039
|
+
)) == null ? void 0 : st.items;
|
2033
2040
|
w.push(...Z);
|
2034
2041
|
const zt = X.findIndex(
|
2035
2042
|
(Mt) => Mt.id === V.id
|
@@ -2038,7 +2045,7 @@ function ga(t) {
|
|
2038
2045
|
}
|
2039
2046
|
}), w.forEach((S) => {
|
2040
2047
|
X.forEach((V) => {
|
2041
|
-
V.items.includes(S) && (V.items = V.items.filter((
|
2048
|
+
V.items.includes(S) && (V.items = V.items.filter((st) => st !== S));
|
2042
2049
|
});
|
2043
2050
|
});
|
2044
2051
|
const vt = j.filter(
|
@@ -2053,7 +2060,7 @@ function ga(t) {
|
|
2053
2060
|
Object.entries(m.transitionsMap).filter(
|
2054
2061
|
([S]) => !w.includes(S)
|
2055
2062
|
)
|
2056
|
-
), Ut =
|
2063
|
+
), Ut = ms(
|
2057
2064
|
m.tracks,
|
2058
2065
|
w
|
2059
2066
|
), yt = Object.fromEntries(
|
@@ -2063,10 +2070,10 @@ function ga(t) {
|
|
2063
2070
|
);
|
2064
2071
|
P.filter((S) => S.magnetic).forEach((S) => {
|
2065
2072
|
let V = 0;
|
2066
|
-
S == null || S.items.forEach((
|
2067
|
-
if (yt[
|
2068
|
-
const Z = yt[
|
2069
|
-
yt[
|
2073
|
+
S == null || S.items.forEach((st) => {
|
2074
|
+
if (yt[st]) {
|
2075
|
+
const Z = yt[st].display.to - yt[st].display.from;
|
2076
|
+
yt[st].display = {
|
2070
2077
|
from: V,
|
2071
2078
|
to: V + Z
|
2072
2079
|
}, V += Z;
|
@@ -2089,7 +2096,7 @@ function ga(t) {
|
|
2089
2096
|
{ updateHistory: !0, kind: "remove" }
|
2090
2097
|
);
|
2091
2098
|
}
|
2092
|
-
if (u.key ===
|
2099
|
+
if (u.key === ns) {
|
2093
2100
|
const I = B(t.getState()), m = {}, O = ((h = u.value) == null ? void 0 : h.payload.trackItemIds) || I.activeIds;
|
2094
2101
|
if (O.length === 0) return;
|
2095
2102
|
O.forEach((w) => {
|
@@ -2125,7 +2132,7 @@ function ga(t) {
|
|
2125
2132
|
}
|
2126
2133
|
);
|
2127
2134
|
}
|
2128
|
-
if (u.key ===
|
2135
|
+
if (u.key === ss) {
|
2129
2136
|
const I = (v = u.value) == null ? void 0 : v.payload, m = Object.keys(I)[0], O = Object.values(I)[0], D = B(t.getState()), w = D.trackItemDetailsMap[m], R = B(D.trackItemsMap[m]), j = w.details;
|
2130
2137
|
if (!O.details.src) return;
|
2131
2138
|
if (w.type === "image") {
|
@@ -2141,7 +2148,7 @@ function ga(t) {
|
|
2141
2148
|
);
|
2142
2149
|
O.details.crop = Dt, O.details.height = Ot, O.details.width = L, R.display = P, R.duration = X, R.trim = vt;
|
2143
2150
|
} else if (w.type === "audio") {
|
2144
|
-
const N = await
|
2151
|
+
const N = await oa(O.details.src), E = D.trackItemsMap[m], { display: P, duration: X, trim: vt } = Un(E, N);
|
2145
2152
|
R.display = P, R.duration = X, R.trim = vt;
|
2146
2153
|
}
|
2147
2154
|
w.details = { ...j, ...O.details }, D.trackItemDetailsMap[m] = { ...w }, D.trackItemsMap[m] = { ...R }, t.updateState(
|
@@ -2156,22 +2163,22 @@ function ga(t) {
|
|
2156
2163
|
);
|
2157
2164
|
}
|
2158
2165
|
}), y = n.subscribe(async (u) => {
|
2159
|
-
var D, w, R, j, N, E, P, X, vt, Dt, Ot, L, Ut, yt, ft, Ft, S, V,
|
2166
|
+
var D, w, R, j, N, E, P, X, vt, Dt, Ot, L, Ut, yt, ft, Ft, S, V, st, Z, zt, Mt, Gt, Wt, Jt, Yt;
|
2160
2167
|
const d = B(t.getState()), g = ((w = (D = u.value) == null ? void 0 : D.options) == null ? void 0 : w.isSelected) || !1, b = (j = (R = u.value) == null ? void 0 : R.options) == null ? void 0 : j.scaleMode, _ = (E = (N = u.value) == null ? void 0 : N.options) == null ? void 0 : E.isNewTrack;
|
2161
2168
|
let h = [], v = "text";
|
2162
2169
|
const I = (X = (P = u.value) == null ? void 0 : P.options) == null ? void 0 : X.trackId;
|
2163
2170
|
let m = (Dt = (vt = u.value) == null ? void 0 : vt.options) == null ? void 0 : Dt.trackIndex;
|
2164
|
-
if (u.key ===
|
2171
|
+
if (u.key === Xa) {
|
2165
2172
|
const z = (Ot = u.value) == null ? void 0 : Ot.payload;
|
2166
2173
|
let $ = d.trackItemsMap[z.id].animations;
|
2167
2174
|
$ ? $.in && z.animations.in ? $.in = z.animations.in : $.out && z.animations.out || !$.out && z.animations.out ? $.out = z.animations.out : !$.in && z.animations.in ? $.in = z.animations.in : $ = z.animations : d.trackItemsMap[z.id].animations = z.animations;
|
2168
2175
|
}
|
2169
|
-
if (u.key ===
|
2176
|
+
if (u.key === qa) {
|
2170
2177
|
const z = (L = u.value) == null ? void 0 : L.payload, $ = z.trackItems.map(
|
2171
|
-
(K) =>
|
2178
|
+
(K) => fs(K, {
|
2172
2179
|
size: d.size
|
2173
2180
|
})
|
2174
|
-
), U = await Promise.all($), St =
|
2181
|
+
), U = await Promise.all($), St = hs(z.tracks, z.trackItems), It = [];
|
2175
2182
|
z.trackItems.forEach((K) => {
|
2176
2183
|
if (K.type !== "template") return;
|
2177
2184
|
d.trackItemsMap = {
|
@@ -2199,7 +2206,7 @@ function ga(t) {
|
|
2199
2206
|
type: K.type,
|
2200
2207
|
details: it
|
2201
2208
|
}, J[K.id] = xt;
|
2202
|
-
}),
|
2209
|
+
}), ps(
|
2203
2210
|
d.tracks,
|
2204
2211
|
St
|
2205
2212
|
))
|
@@ -2210,7 +2217,7 @@ function ga(t) {
|
|
2210
2217
|
const xt = it.items.map((ot) => J[ot]), Zt = K.items.map(
|
2211
2218
|
(ot) => d.trackItemsMap[ot]
|
2212
2219
|
);
|
2213
|
-
|
2220
|
+
Is(
|
2214
2221
|
xt,
|
2215
2222
|
Zt
|
2216
2223
|
);
|
@@ -2237,7 +2244,7 @@ function ga(t) {
|
|
2237
2244
|
...d.trackItemIds,
|
2238
2245
|
...Q
|
2239
2246
|
], d.structure = [...d.structure, ...It], d.duration = ue(d.trackItemsMap);
|
2240
|
-
const { transitionIds: kt, transitionsMap: Bt } =
|
2247
|
+
const { transitionIds: kt, transitionsMap: Bt } = gs(
|
2241
2248
|
d
|
2242
2249
|
);
|
2243
2250
|
t.updateState(
|
@@ -2258,11 +2265,11 @@ function ga(t) {
|
|
2258
2265
|
);
|
2259
2266
|
return;
|
2260
2267
|
}
|
2261
|
-
if (u.key ===
|
2268
|
+
if (u.key === Va) {
|
2262
2269
|
v = "caption";
|
2263
2270
|
const z = (ft = u.value) == null ? void 0 : ft.payload, $ = [];
|
2264
2271
|
for (const It of z) {
|
2265
|
-
const Q =
|
2272
|
+
const Q = ha(It, {
|
2266
2273
|
size: d.size
|
2267
2274
|
});
|
2268
2275
|
$.push(Q);
|
@@ -2279,9 +2286,9 @@ function ga(t) {
|
|
2279
2286
|
}
|
2280
2287
|
h = St;
|
2281
2288
|
}
|
2282
|
-
if (u.key ===
|
2289
|
+
if (u.key === Wa) {
|
2283
2290
|
v = "text";
|
2284
|
-
const z = await
|
2291
|
+
const z = await ma((Ft = u.value) == null ? void 0 : Ft.payload, {
|
2285
2292
|
size: d.size
|
2286
2293
|
}), { details: $, ...U } = z;
|
2287
2294
|
d.trackItemDetailsMap[U.id] = {
|
@@ -2289,9 +2296,9 @@ function ga(t) {
|
|
2289
2296
|
details: $
|
2290
2297
|
}, d.trackItemsMap[U.id] = U, d.trackItemIds.push(U.id), h = [U.id];
|
2291
2298
|
}
|
2292
|
-
if (u.key ===
|
2299
|
+
if (u.key === Ja) {
|
2293
2300
|
v = "template";
|
2294
|
-
const z = (S = u.value) == null ? void 0 : S.payload.trackItemsMap, $ = (V = u.value) == null ? void 0 : V.payload.trackItemDetailsMap, U = (
|
2301
|
+
const z = (S = u.value) == null ? void 0 : S.payload.trackItemsMap, $ = (V = u.value) == null ? void 0 : V.payload.trackItemDetailsMap, U = (st = u.value) == null ? void 0 : st.payload.transitionsMap, St = ((Z = u.value) == null ? void 0 : Z.payload.transitionIds) || [], It = (zt = u.value) == null ? void 0 : zt.payload.trackItemIds, Q = ((Mt = u.value) == null ? void 0 : Mt.payload.tracks) || [], { details: gt, ...J } = await fa((Gt = u.value) == null ? void 0 : Gt.payload, {
|
2295
2302
|
size: d.size
|
2296
2303
|
}), qt = {
|
2297
2304
|
id: J.id,
|
@@ -2320,9 +2327,9 @@ function ga(t) {
|
|
2320
2327
|
...U
|
2321
2328
|
}, d.structure = [...d.structure, qt];
|
2322
2329
|
}
|
2323
|
-
if (u.key ===
|
2330
|
+
if (u.key === Ka) {
|
2324
2331
|
v = "image";
|
2325
|
-
const z = await
|
2332
|
+
const z = await pa((Wt = u.value) == null ? void 0 : Wt.payload, {
|
2326
2333
|
size: d.size,
|
2327
2334
|
scaleMode: b
|
2328
2335
|
}), { details: $, ...U } = z;
|
@@ -2331,17 +2338,17 @@ function ga(t) {
|
|
2331
2338
|
details: $
|
2332
2339
|
}, d.trackItemsMap[U.id] = U, d.trackItemIds.push(U.id), h = [U.id];
|
2333
2340
|
}
|
2334
|
-
if (u.key ===
|
2341
|
+
if (u.key === Ba) {
|
2335
2342
|
v = "audio";
|
2336
|
-
const z = await
|
2343
|
+
const z = await da((Jt = u.value) == null ? void 0 : Jt.payload), { details: $, ...U } = z;
|
2337
2344
|
d.trackItemDetailsMap[U.id] = {
|
2338
2345
|
type: v,
|
2339
2346
|
details: $
|
2340
2347
|
}, d.trackItemsMap[U.id] = U, d.trackItemIds.push(U.id), h = [U.id];
|
2341
2348
|
}
|
2342
|
-
if (u.key ===
|
2349
|
+
if (u.key === Ya) {
|
2343
2350
|
v = "video";
|
2344
|
-
const z = await
|
2351
|
+
const z = await la((Yt = u.value) == null ? void 0 : Yt.payload, {
|
2345
2352
|
size: d.size,
|
2346
2353
|
scaleMode: b
|
2347
2354
|
}), { details: $, ...U } = z;
|
@@ -2351,7 +2358,7 @@ function ga(t) {
|
|
2351
2358
|
metadata: U.metadata
|
2352
2359
|
}, d.trackItemsMap[U.id] = U, d.trackItemIds.push(U.id), h = [U.id];
|
2353
2360
|
}
|
2354
|
-
const O =
|
2361
|
+
const O = ys(
|
2355
2362
|
h,
|
2356
2363
|
d.tracks,
|
2357
2364
|
d.trackItemsMap,
|
@@ -2436,7 +2443,7 @@ function ga(t) {
|
|
2436
2443
|
);
|
2437
2444
|
}), T = c.subscribe(async (u) => {
|
2438
2445
|
var d;
|
2439
|
-
if (u.key ===
|
2446
|
+
if (u.key === rs) {
|
2440
2447
|
const g = B(t.getState()), b = (d = u.value) == null ? void 0 : d.options.time;
|
2441
2448
|
if (g.activeIds.length === 1) {
|
2442
2449
|
const _ = g.activeIds[0], h = B(g.trackItemsMap[_]);
|
@@ -2483,7 +2490,7 @@ function ga(t) {
|
|
2483
2490
|
}
|
2484
2491
|
return;
|
2485
2492
|
}
|
2486
|
-
if (u.key ===
|
2493
|
+
if (u.key === es) {
|
2487
2494
|
const g = B(t.getState());
|
2488
2495
|
if (g.activeIds.length) {
|
2489
2496
|
const b = g.activeIds, _ = [], h = {
|
@@ -2501,7 +2508,7 @@ function ga(t) {
|
|
2501
2508
|
_.filter((I) => v.has(I.id) ? !1 : (v.add(I), !0)), h.tracks = Array.from(v.keys()), localStorage.setItem("DesignComboTemp", JSON.stringify(h));
|
2502
2509
|
}
|
2503
2510
|
}
|
2504
|
-
if (u.key ===
|
2511
|
+
if (u.key === ts) {
|
2505
2512
|
const g = localStorage.getItem("DesignComboTemp");
|
2506
2513
|
if (!g) return;
|
2507
2514
|
const b = B(t.getState()), _ = JSON.parse(g), h = {}, v = _.trackItemsMap, I = _.trackItemDetailsMap, m = _.tracks, O = [], D = _.activeIds.map(async (w) => {
|
@@ -2540,7 +2547,7 @@ function ga(t) {
|
|
2540
2547
|
}
|
2541
2548
|
}), C = f.subscribe(async (u) => {
|
2542
2549
|
var d, g, b;
|
2543
|
-
if (u.key ===
|
2550
|
+
if (u.key === Za) {
|
2544
2551
|
const _ = B(t.getState()), h = _.trackItemDetailsMap, v = _.trackItemsMap, I = Object.keys((d = u.value) == null ? void 0 : d.payload);
|
2545
2552
|
if (!I.length) return;
|
2546
2553
|
const m = (g = u.value) == null ? void 0 : g.payload;
|
@@ -2567,7 +2574,7 @@ function ga(t) {
|
|
2567
2574
|
}
|
2568
2575
|
);
|
2569
2576
|
}
|
2570
|
-
if (u.key ===
|
2577
|
+
if (u.key === Qa) {
|
2571
2578
|
const _ = (b = u.value) == null ? void 0 : b.payload, h = Object.keys(_)[0], v = Object.values(_)[0], I = B(t.getState()), m = I.trackItemDetailsMap[h], O = m.details;
|
2572
2579
|
if (v.details) {
|
2573
2580
|
if (v.type === "image" && v.details.src) {
|
@@ -2620,8 +2627,8 @@ function ga(t) {
|
|
2620
2627
|
}
|
2621
2628
|
};
|
2622
2629
|
}
|
2623
|
-
const
|
2624
|
-
function
|
2630
|
+
const _s = { Date: !0, RegExp: !0, String: !0, Number: !0 };
|
2631
|
+
function Ia(t, r, n = { cyclesFix: !0 }, a = []) {
|
2625
2632
|
var p, k;
|
2626
2633
|
let i = [];
|
2627
2634
|
const c = Array.isArray(t);
|
@@ -2636,8 +2643,8 @@ function Is(t, r, n = { cyclesFix: !0 }, s = []) {
|
|
2636
2643
|
continue;
|
2637
2644
|
}
|
2638
2645
|
const y = r[H], T = typeof A == "object" && typeof y == "object" && Array.isArray(A) === Array.isArray(y);
|
2639
|
-
if (A && y && T && !
|
2640
|
-
const C =
|
2646
|
+
if (A && y && T && !_s[(k = (p = Object.getPrototypeOf(A)) == null ? void 0 : p.constructor) == null ? void 0 : k.name] && (!n.cyclesFix || !a.includes(A))) {
|
2647
|
+
const C = Ia(A, y, n, n.cyclesFix ? a.concat([A]) : []);
|
2641
2648
|
i.push.apply(i, C.map((u) => (u.path.unshift(x), u)));
|
2642
2649
|
} else A !== y && // treat NaN values as equivalent
|
2643
2650
|
!(Number.isNaN(A) && Number.isNaN(y)) && !(T && (isNaN(A) ? A + "" == y + "" : +A == +y)) && i.push({
|
@@ -2656,7 +2663,7 @@ function Is(t, r, n = { cyclesFix: !0 }, s = []) {
|
|
2656
2663
|
});
|
2657
2664
|
return i;
|
2658
2665
|
}
|
2659
|
-
var Dn = Symbol.for("immer-nothing"), Ne = Symbol.for("immer-draftable"), bt = Symbol.for("immer-state"),
|
2666
|
+
var Dn = Symbol.for("immer-nothing"), Ne = Symbol.for("immer-draftable"), bt = Symbol.for("immer-state"), ga = process.env.NODE_ENV !== "production" ? [
|
2660
2667
|
// All error codes, starting by 0:
|
2661
2668
|
function(t) {
|
2662
2669
|
return `The plugin for '${t}' has not been loaded into Immer. To enable the plugin, import and call \`enable${t}()\` when initializing your application.`;
|
@@ -2689,8 +2696,8 @@ var Dn = Symbol.for("immer-nothing"), Ne = Symbol.for("immer-draftable"), bt = S
|
|
2689
2696
|
] : [];
|
2690
2697
|
function et(t, ...r) {
|
2691
2698
|
if (process.env.NODE_ENV !== "production") {
|
2692
|
-
const n =
|
2693
|
-
throw new Error(`[Immer] ${
|
2699
|
+
const n = ga[t], a = typeof n == "function" ? n.apply(null, r) : n;
|
2700
|
+
throw new Error(`[Immer] ${a}`);
|
2694
2701
|
}
|
2695
2702
|
throw new Error(
|
2696
2703
|
`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`
|
@@ -2702,22 +2709,22 @@ function de(t) {
|
|
2702
2709
|
}
|
2703
2710
|
function Vt(t) {
|
2704
2711
|
var r;
|
2705
|
-
return t ?
|
2712
|
+
return t ? ba(t) || Array.isArray(t) || !!t[Ne] || !!((r = t.constructor) != null && r[Ne]) || Ke(t) || Xe(t) : !1;
|
2706
2713
|
}
|
2707
|
-
var
|
2708
|
-
function
|
2714
|
+
var vs = Object.prototype.constructor.toString();
|
2715
|
+
function ba(t) {
|
2709
2716
|
if (!t || typeof t != "object")
|
2710
2717
|
return !1;
|
2711
2718
|
const r = le(t);
|
2712
2719
|
if (r === null)
|
2713
2720
|
return !0;
|
2714
2721
|
const n = Object.hasOwnProperty.call(r, "constructor") && r.constructor;
|
2715
|
-
return n === Object ? !0 : typeof n == "function" && Function.toString.call(n) ===
|
2722
|
+
return n === Object ? !0 : typeof n == "function" && Function.toString.call(n) === vs;
|
2716
2723
|
}
|
2717
2724
|
function Le(t, r) {
|
2718
2725
|
fe(t) === 0 ? Reflect.ownKeys(t).forEach((n) => {
|
2719
2726
|
r(n, t[n], t);
|
2720
|
-
}) : t.forEach((n,
|
2727
|
+
}) : t.forEach((n, a) => r(a, n, t));
|
2721
2728
|
}
|
2722
2729
|
function fe(t) {
|
2723
2730
|
const r = t[bt];
|
@@ -2729,11 +2736,11 @@ function $e(t, r) {
|
|
2729
2736
|
function un(t, r) {
|
2730
2737
|
return fe(t) === 2 ? t.get(r) : t[r];
|
2731
2738
|
}
|
2732
|
-
function
|
2733
|
-
const
|
2734
|
-
|
2739
|
+
function _a(t, r, n) {
|
2740
|
+
const a = fe(t);
|
2741
|
+
a === 2 ? t.set(r, n) : a === 3 ? t.add(n) : t[r] = n;
|
2735
2742
|
}
|
2736
|
-
function
|
2743
|
+
function Ss(t, r) {
|
2737
2744
|
return t === r ? t !== 0 || 1 / t === 1 / r : t !== t && r !== r;
|
2738
2745
|
}
|
2739
2746
|
function Ke(t) {
|
@@ -2752,14 +2759,14 @@ function vn(t, r) {
|
|
2752
2759
|
return new Set(t);
|
2753
2760
|
if (Array.isArray(t))
|
2754
2761
|
return Array.prototype.slice.call(t);
|
2755
|
-
const n =
|
2762
|
+
const n = ba(t);
|
2756
2763
|
if (r === !0 || r === "class_only" && !n) {
|
2757
|
-
const
|
2758
|
-
delete
|
2759
|
-
let i = Reflect.ownKeys(
|
2764
|
+
const a = Object.getOwnPropertyDescriptors(t);
|
2765
|
+
delete a[bt];
|
2766
|
+
let i = Reflect.ownKeys(a);
|
2760
2767
|
for (let c = 0; c < i.length; c++) {
|
2761
|
-
const f = i[c], p =
|
2762
|
-
p.writable === !1 && (p.writable = !0, p.configurable = !0), (p.get || p.set) && (
|
2768
|
+
const f = i[c], p = a[f];
|
2769
|
+
p.writable === !1 && (p.writable = !0, p.configurable = !0), (p.get || p.set) && (a[f] = {
|
2763
2770
|
configurable: !0,
|
2764
2771
|
writable: !0,
|
2765
2772
|
// could live with !!desc.set as well here...
|
@@ -2767,19 +2774,19 @@ function vn(t, r) {
|
|
2767
2774
|
value: t[f]
|
2768
2775
|
});
|
2769
2776
|
}
|
2770
|
-
return Object.create(le(t),
|
2777
|
+
return Object.create(le(t), a);
|
2771
2778
|
} else {
|
2772
|
-
const
|
2773
|
-
if (
|
2779
|
+
const a = le(t);
|
2780
|
+
if (a !== null && n)
|
2774
2781
|
return { ...t };
|
2775
|
-
const i = Object.create(
|
2782
|
+
const i = Object.create(a);
|
2776
2783
|
return Object.assign(i, t);
|
2777
2784
|
}
|
2778
2785
|
}
|
2779
2786
|
function On(t, r = !1) {
|
2780
|
-
return vr(t) || de(t) || !Vt(t) || (fe(t) > 1 && (t.set = t.add = t.clear = t.delete =
|
2787
|
+
return vr(t) || de(t) || !Vt(t) || (fe(t) > 1 && (t.set = t.add = t.clear = t.delete = ks), Object.freeze(t), r && Object.entries(t).forEach(([n, a]) => On(a, !0))), t;
|
2781
2788
|
}
|
2782
|
-
function
|
2789
|
+
function ks() {
|
2783
2790
|
et(2);
|
2784
2791
|
}
|
2785
2792
|
function vr(t) {
|
@@ -2790,14 +2797,14 @@ function pe(t) {
|
|
2790
2797
|
const r = Sn[t];
|
2791
2798
|
return r || et(0, t), r;
|
2792
2799
|
}
|
2793
|
-
function
|
2800
|
+
function ws(t, r) {
|
2794
2801
|
Sn[t] || (Sn[t] = r);
|
2795
2802
|
}
|
2796
2803
|
var Ue;
|
2797
|
-
function
|
2804
|
+
function va() {
|
2798
2805
|
return Ue;
|
2799
2806
|
}
|
2800
|
-
function
|
2807
|
+
function Ts(t, r) {
|
2801
2808
|
return {
|
2802
2809
|
drafts_: [],
|
2803
2810
|
parent_: t,
|
@@ -2812,15 +2819,15 @@ function Gn(t, r) {
|
|
2812
2819
|
r && (pe("Patches"), t.patches_ = [], t.inversePatches_ = [], t.patchListener_ = r);
|
2813
2820
|
}
|
2814
2821
|
function kn(t) {
|
2815
|
-
wn(t), t.drafts_.forEach(
|
2822
|
+
wn(t), t.drafts_.forEach(Ms), t.drafts_ = null;
|
2816
2823
|
}
|
2817
2824
|
function wn(t) {
|
2818
2825
|
t === Ue && (Ue = t.parent_);
|
2819
2826
|
}
|
2820
2827
|
function Wn(t) {
|
2821
|
-
return Ue =
|
2828
|
+
return Ue = Ts(Ue, t);
|
2822
2829
|
}
|
2823
|
-
function
|
2830
|
+
function Ms(t) {
|
2824
2831
|
const r = t[bt];
|
2825
2832
|
r.type_ === 0 || r.type_ === 1 ? r.revoke_() : r.revoked_ = !0;
|
2826
2833
|
}
|
@@ -2837,37 +2844,37 @@ function Yn(t, r) {
|
|
2837
2844
|
function yr(t, r, n) {
|
2838
2845
|
if (vr(r))
|
2839
2846
|
return r;
|
2840
|
-
const
|
2841
|
-
if (!
|
2847
|
+
const a = r[bt];
|
2848
|
+
if (!a)
|
2842
2849
|
return Le(
|
2843
2850
|
r,
|
2844
|
-
(i, c) => Bn(t,
|
2851
|
+
(i, c) => Bn(t, a, r, i, c, n)
|
2845
2852
|
), r;
|
2846
|
-
if (
|
2853
|
+
if (a.scope_ !== t)
|
2847
2854
|
return r;
|
2848
|
-
if (!
|
2849
|
-
return Ir(t,
|
2850
|
-
if (!
|
2851
|
-
|
2852
|
-
const i =
|
2855
|
+
if (!a.modified_)
|
2856
|
+
return Ir(t, a.base_, !0), a.base_;
|
2857
|
+
if (!a.finalized_) {
|
2858
|
+
a.finalized_ = !0, a.scope_.unfinalizedDrafts_--;
|
2859
|
+
const i = a.copy_;
|
2853
2860
|
let c = i, f = !1;
|
2854
|
-
|
2861
|
+
a.type_ === 3 && (c = new Set(i), i.clear(), f = !0), Le(
|
2855
2862
|
c,
|
2856
|
-
(p, k) => Bn(t,
|
2863
|
+
(p, k) => Bn(t, a, i, p, k, n, f)
|
2857
2864
|
), Ir(t, i, !1), n && t.patches_ && pe("Patches").generatePatches_(
|
2858
|
-
|
2865
|
+
a,
|
2859
2866
|
n,
|
2860
2867
|
t.patches_,
|
2861
2868
|
t.inversePatches_
|
2862
2869
|
);
|
2863
2870
|
}
|
2864
|
-
return
|
2871
|
+
return a.copy_;
|
2865
2872
|
}
|
2866
|
-
function Bn(t, r, n,
|
2873
|
+
function Bn(t, r, n, a, i, c, f) {
|
2867
2874
|
if (process.env.NODE_ENV !== "production" && i === n && et(5), de(i)) {
|
2868
2875
|
const p = c && r && r.type_ !== 3 && // Set objects are atomic since they have no keys.
|
2869
|
-
!$e(r.assigned_,
|
2870
|
-
if (
|
2876
|
+
!$e(r.assigned_, a) ? c.concat(a) : void 0, k = yr(t, i, p);
|
2877
|
+
if (_a(n, a, k), de(k))
|
2871
2878
|
t.canAutoFreeze_ = !1;
|
2872
2879
|
else
|
2873
2880
|
return;
|
@@ -2875,17 +2882,17 @@ function Bn(t, r, n, s, i, c, f) {
|
|
2875
2882
|
if (Vt(i) && !vr(i)) {
|
2876
2883
|
if (!t.immer_.autoFreeze_ && t.unfinalizedDrafts_ < 1)
|
2877
2884
|
return;
|
2878
|
-
yr(t, i), (!r || !r.scope_.parent_) && typeof
|
2885
|
+
yr(t, i), (!r || !r.scope_.parent_) && typeof a != "symbol" && Object.prototype.propertyIsEnumerable.call(n, a) && Ir(t, i);
|
2879
2886
|
}
|
2880
2887
|
}
|
2881
2888
|
function Ir(t, r, n = !1) {
|
2882
2889
|
!t.parent_ && t.immer_.autoFreeze_ && t.canAutoFreeze_ && On(r, n);
|
2883
2890
|
}
|
2884
|
-
function
|
2885
|
-
const n = Array.isArray(t),
|
2891
|
+
function Es(t, r) {
|
2892
|
+
const n = Array.isArray(t), a = {
|
2886
2893
|
type_: n ? 1 : 0,
|
2887
2894
|
// Track which produce call this is associated with.
|
2888
|
-
scope_: r ? r.scope_ :
|
2895
|
+
scope_: r ? r.scope_ : va(),
|
2889
2896
|
// True for both shallow and deep changes.
|
2890
2897
|
modified_: !1,
|
2891
2898
|
// Used during finalization.
|
@@ -2905,10 +2912,10 @@ function Ma(t, r) {
|
|
2905
2912
|
revoke_: null,
|
2906
2913
|
isManual_: !1
|
2907
2914
|
};
|
2908
|
-
let i =
|
2909
|
-
n && (i = [
|
2915
|
+
let i = a, c = xn;
|
2916
|
+
n && (i = [a], c = Ge);
|
2910
2917
|
const { revoke: f, proxy: p } = Proxy.revocable(i, c);
|
2911
|
-
return
|
2918
|
+
return a.draft_ = p, a.revoke_ = f, p;
|
2912
2919
|
}
|
2913
2920
|
var xn = {
|
2914
2921
|
get(t, r) {
|
@@ -2916,9 +2923,9 @@ var xn = {
|
|
2916
2923
|
return t;
|
2917
2924
|
const n = ce(t);
|
2918
2925
|
if (!$e(n, r))
|
2919
|
-
return
|
2920
|
-
const
|
2921
|
-
return t.finalized_ || !Vt(
|
2926
|
+
return As(t, n, r);
|
2927
|
+
const a = n[r];
|
2928
|
+
return t.finalized_ || !Vt(a) ? a : a === ln(t.base_, r) ? (dn(t), t.copy_[r] = Mn(a, t)) : a;
|
2922
2929
|
},
|
2923
2930
|
has(t, r) {
|
2924
2931
|
return r in ce(t);
|
@@ -2927,14 +2934,14 @@ var xn = {
|
|
2927
2934
|
return Reflect.ownKeys(ce(t));
|
2928
2935
|
},
|
2929
2936
|
set(t, r, n) {
|
2930
|
-
const
|
2931
|
-
if (
|
2932
|
-
return
|
2937
|
+
const a = Sa(ce(t), r);
|
2938
|
+
if (a != null && a.set)
|
2939
|
+
return a.set.call(t.draft_, n), !0;
|
2933
2940
|
if (!t.modified_) {
|
2934
2941
|
const i = ln(ce(t), r), c = i == null ? void 0 : i[bt];
|
2935
2942
|
if (c && c.base_ === n)
|
2936
2943
|
return t.copy_[r] = n, t.assigned_[r] = !1, !0;
|
2937
|
-
if (
|
2944
|
+
if (Ss(n, i) && (n !== void 0 || $e(t.base_, r)))
|
2938
2945
|
return !0;
|
2939
2946
|
dn(t), Tn(t);
|
2940
2947
|
}
|
@@ -2948,11 +2955,11 @@ var xn = {
|
|
2948
2955
|
// Note: We never coerce `desc.value` into an Immer draft, because we can't make
|
2949
2956
|
// the same guarantee in ES5 mode.
|
2950
2957
|
getOwnPropertyDescriptor(t, r) {
|
2951
|
-
const n = ce(t),
|
2952
|
-
return
|
2958
|
+
const n = ce(t), a = Reflect.getOwnPropertyDescriptor(n, r);
|
2959
|
+
return a && {
|
2953
2960
|
writable: !0,
|
2954
2961
|
configurable: t.type_ !== 1 || r !== "length",
|
2955
|
-
enumerable:
|
2962
|
+
enumerable: a.enumerable,
|
2956
2963
|
value: n[r]
|
2957
2964
|
};
|
2958
2965
|
},
|
@@ -2981,23 +2988,23 @@ function ln(t, r) {
|
|
2981
2988
|
const n = t[bt];
|
2982
2989
|
return (n ? ce(n) : t)[r];
|
2983
2990
|
}
|
2984
|
-
function
|
2991
|
+
function As(t, r, n) {
|
2985
2992
|
var i;
|
2986
|
-
const
|
2987
|
-
return
|
2993
|
+
const a = Sa(r, n);
|
2994
|
+
return a ? "value" in a ? a.value : (
|
2988
2995
|
// This is a very special case, if the prop is a getter defined by the
|
2989
2996
|
// prototype, we should invoke it with the draft as context!
|
2990
|
-
(i =
|
2997
|
+
(i = a.get) == null ? void 0 : i.call(t.draft_)
|
2991
2998
|
) : void 0;
|
2992
2999
|
}
|
2993
|
-
function
|
3000
|
+
function Sa(t, r) {
|
2994
3001
|
if (!(r in t))
|
2995
3002
|
return;
|
2996
3003
|
let n = le(t);
|
2997
3004
|
for (; n; ) {
|
2998
|
-
const
|
2999
|
-
if (
|
3000
|
-
return
|
3005
|
+
const a = Object.getOwnPropertyDescriptor(n, r);
|
3006
|
+
if (a)
|
3007
|
+
return a;
|
3001
3008
|
n = le(n);
|
3002
3009
|
}
|
3003
3010
|
}
|
@@ -3010,9 +3017,9 @@ function dn(t) {
|
|
3010
3017
|
t.scope_.immer_.useStrictShallowCopy_
|
3011
3018
|
));
|
3012
3019
|
}
|
3013
|
-
var
|
3020
|
+
var Ds = class {
|
3014
3021
|
constructor(t) {
|
3015
|
-
this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.produce = (r, n,
|
3022
|
+
this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.produce = (r, n, a) => {
|
3016
3023
|
if (typeof r == "function" && typeof n != "function") {
|
3017
3024
|
const c = n;
|
3018
3025
|
n = r;
|
@@ -3021,7 +3028,7 @@ var Aa = class {
|
|
3021
3028
|
return f.produce(k, (A) => n.call(this, A, ...H));
|
3022
3029
|
};
|
3023
3030
|
}
|
3024
|
-
typeof n != "function" && et(6),
|
3031
|
+
typeof n != "function" && et(6), a !== void 0 && typeof a != "function" && et(7);
|
3025
3032
|
let i;
|
3026
3033
|
if (Vt(r)) {
|
3027
3034
|
const c = Wn(this), f = Mn(r, void 0);
|
@@ -3031,11 +3038,11 @@ var Aa = class {
|
|
3031
3038
|
} finally {
|
3032
3039
|
p ? kn(c) : wn(c);
|
3033
3040
|
}
|
3034
|
-
return Gn(c,
|
3041
|
+
return Gn(c, a), Yn(i, c);
|
3035
3042
|
} else if (!r || typeof r != "object") {
|
3036
|
-
if (i = n(r), i === void 0 && (i = r), i === Dn && (i = void 0), this.autoFreeze_ && On(i, !0),
|
3043
|
+
if (i = n(r), i === void 0 && (i = r), i === Dn && (i = void 0), this.autoFreeze_ && On(i, !0), a) {
|
3037
3044
|
const c = [], f = [];
|
3038
|
-
pe("Patches").generateReplacementPatches_(r, i, c, f),
|
3045
|
+
pe("Patches").generateReplacementPatches_(r, i, c, f), a(c, f);
|
3039
3046
|
}
|
3040
3047
|
return i;
|
3041
3048
|
} else
|
@@ -3043,22 +3050,22 @@ var Aa = class {
|
|
3043
3050
|
}, this.produceWithPatches = (r, n) => {
|
3044
3051
|
if (typeof r == "function")
|
3045
3052
|
return (f, ...p) => this.produceWithPatches(f, (k) => r(k, ...p));
|
3046
|
-
let
|
3053
|
+
let a, i;
|
3047
3054
|
return [this.produce(r, n, (f, p) => {
|
3048
|
-
|
3049
|
-
}),
|
3055
|
+
a = f, i = p;
|
3056
|
+
}), a, i];
|
3050
3057
|
}, typeof (t == null ? void 0 : t.autoFreeze) == "boolean" && this.setAutoFreeze(t.autoFreeze), typeof (t == null ? void 0 : t.useStrictShallowCopy) == "boolean" && this.setUseStrictShallowCopy(t.useStrictShallowCopy);
|
3051
3058
|
}
|
3052
3059
|
createDraft(t) {
|
3053
|
-
Vt(t) || et(8), de(t) && (t =
|
3060
|
+
Vt(t) || et(8), de(t) && (t = Os(t));
|
3054
3061
|
const r = Wn(this), n = Mn(t, void 0);
|
3055
3062
|
return n[bt].isManual_ = !0, wn(r), n;
|
3056
3063
|
}
|
3057
3064
|
finishDraft(t, r) {
|
3058
3065
|
const n = t && t[bt];
|
3059
3066
|
(!n || !n.isManual_) && et(9);
|
3060
|
-
const { scope_:
|
3061
|
-
return Gn(
|
3067
|
+
const { scope_: a } = n;
|
3068
|
+
return Gn(a, r), Yn(void 0, a);
|
3062
3069
|
}
|
3063
3070
|
/**
|
3064
3071
|
* Pass true to automatically freeze all copies created by Immer.
|
@@ -3086,21 +3093,21 @@ var Aa = class {
|
|
3086
3093
|
}
|
3087
3094
|
}
|
3088
3095
|
n > -1 && (r = r.slice(n + 1));
|
3089
|
-
const
|
3090
|
-
return de(t) ?
|
3096
|
+
const a = pe("Patches").applyPatches_;
|
3097
|
+
return de(t) ? a(t, r) : this.produce(
|
3091
3098
|
t,
|
3092
|
-
(i) =>
|
3099
|
+
(i) => a(i, r)
|
3093
3100
|
);
|
3094
3101
|
}
|
3095
3102
|
};
|
3096
3103
|
function Mn(t, r) {
|
3097
|
-
const n = Ke(t) ? pe("MapSet").proxyMap_(t, r) : Xe(t) ? pe("MapSet").proxySet_(t, r) :
|
3098
|
-
return (r ? r.scope_ :
|
3104
|
+
const n = Ke(t) ? pe("MapSet").proxyMap_(t, r) : Xe(t) ? pe("MapSet").proxySet_(t, r) : Es(t, r);
|
3105
|
+
return (r ? r.scope_ : va()).drafts_.push(n), n;
|
3099
3106
|
}
|
3100
|
-
function
|
3101
|
-
return de(t) || et(10, t),
|
3107
|
+
function Os(t) {
|
3108
|
+
return de(t) || et(10, t), ka(t);
|
3102
3109
|
}
|
3103
|
-
function
|
3110
|
+
function ka(t) {
|
3104
3111
|
if (!Vt(t) || vr(t))
|
3105
3112
|
return t;
|
3106
3113
|
const r = t[bt];
|
@@ -3111,12 +3118,12 @@ function ks(t) {
|
|
3111
3118
|
r.finalized_ = !0, n = vn(t, r.scope_.immer_.useStrictShallowCopy_);
|
3112
3119
|
} else
|
3113
3120
|
n = vn(t, !0);
|
3114
|
-
return Le(n, (
|
3115
|
-
|
3121
|
+
return Le(n, (a, i) => {
|
3122
|
+
_a(n, a, ka(i));
|
3116
3123
|
}), r && (r.finalized_ = !1), n;
|
3117
3124
|
}
|
3118
3125
|
function Kn() {
|
3119
|
-
process.env.NODE_ENV !== "production" &&
|
3126
|
+
process.env.NODE_ENV !== "production" && ga.push(
|
3120
3127
|
'Sets cannot have "replace" patches.',
|
3121
3128
|
function(y) {
|
3122
3129
|
return "Unsupported patch operation: " + y;
|
@@ -3126,7 +3133,7 @@ function Kn() {
|
|
3126
3133
|
},
|
3127
3134
|
"Patching reserved attributes like __proto__, prototype and constructor is not allowed"
|
3128
3135
|
);
|
3129
|
-
const r = "replace", n = "add",
|
3136
|
+
const r = "replace", n = "add", a = "remove";
|
3130
3137
|
function i(y, T, C, u) {
|
3131
3138
|
switch (y.type_) {
|
3132
3139
|
case 0:
|
@@ -3179,7 +3186,7 @@ function Kn() {
|
|
3179
3186
|
for (let _ = b.length - 1; d.length <= _; --_) {
|
3180
3187
|
const h = T.concat([_]);
|
3181
3188
|
u.push({
|
3182
|
-
op:
|
3189
|
+
op: a,
|
3183
3190
|
path: h
|
3184
3191
|
});
|
3185
3192
|
}
|
@@ -3187,12 +3194,12 @@ function Kn() {
|
|
3187
3194
|
function f(y, T, C, u) {
|
3188
3195
|
const { base_: d, copy_: g } = y;
|
3189
3196
|
Le(y.assigned_, (b, _) => {
|
3190
|
-
const h = un(d, b), v = un(g, b), I = _ ? $e(d, b) ? r : n :
|
3197
|
+
const h = un(d, b), v = un(g, b), I = _ ? $e(d, b) ? r : n : a;
|
3191
3198
|
if (h === v && I === r)
|
3192
3199
|
return;
|
3193
3200
|
const m = T.concat(b);
|
3194
|
-
C.push(I ===
|
3195
|
-
I === n ? { op:
|
3201
|
+
C.push(I === a ? { op: I, path: m } : { op: I, path: m, value: v }), u.push(
|
3202
|
+
I === n ? { op: a, path: m } : I === a ? { op: n, path: m, value: x(h) } : { op: r, path: m, value: x(h) }
|
3196
3203
|
);
|
3197
3204
|
});
|
3198
3205
|
}
|
@@ -3202,7 +3209,7 @@ function Kn() {
|
|
3202
3209
|
if (!g.has(_)) {
|
3203
3210
|
const h = T.concat([b]);
|
3204
3211
|
C.push({
|
3205
|
-
op:
|
3212
|
+
op: a,
|
3206
3213
|
path: h,
|
3207
3214
|
value: _
|
3208
3215
|
}), u.unshift({
|
@@ -3220,7 +3227,7 @@ function Kn() {
|
|
3220
3227
|
path: h,
|
3221
3228
|
value: _
|
3222
3229
|
}), u.unshift({
|
3223
|
-
op:
|
3230
|
+
op: a,
|
3224
3231
|
path: h,
|
3225
3232
|
value: _
|
3226
3233
|
});
|
@@ -3270,7 +3277,7 @@ function Kn() {
|
|
3270
3277
|
default:
|
3271
3278
|
return g[h] = _;
|
3272
3279
|
}
|
3273
|
-
case
|
3280
|
+
case a:
|
3274
3281
|
switch (b) {
|
3275
3282
|
case 1:
|
3276
3283
|
return g.splice(h, 1);
|
@@ -3305,23 +3312,23 @@ function Kn() {
|
|
3305
3312
|
function x(y) {
|
3306
3313
|
return de(y) ? A(y) : y;
|
3307
3314
|
}
|
3308
|
-
|
3315
|
+
ws("Patches", {
|
3309
3316
|
applyPatches_: H,
|
3310
3317
|
generatePatches_: i,
|
3311
3318
|
generateReplacementPatches_: k
|
3312
3319
|
});
|
3313
3320
|
}
|
3314
|
-
var _t = new
|
3321
|
+
var _t = new Ds(), xs = _t.produce;
|
3315
3322
|
_t.produceWithPatches.bind(
|
3316
3323
|
_t
|
3317
3324
|
);
|
3318
3325
|
_t.setAutoFreeze.bind(_t);
|
3319
3326
|
_t.setUseStrictShallowCopy.bind(_t);
|
3320
|
-
var
|
3327
|
+
var Ps = _t.applyPatches.bind(_t);
|
3321
3328
|
_t.createDraft.bind(_t);
|
3322
3329
|
_t.finishDraft.bind(_t);
|
3323
|
-
var
|
3324
|
-
function
|
3330
|
+
var Cs = 1 / 0, Rs = 9007199254740991, Fs = "[object Arguments]", zs = "[object Function]", js = "[object GeneratorFunction]", Hs = "[object Symbol]", Ns = typeof wt == "object" && wt && wt.Object === Object && wt, Ls = typeof self == "object" && self && self.Object === Object && self, $s = Ns || Ls || Function("return this")();
|
3331
|
+
function Us(t, r, n) {
|
3325
3332
|
switch (n.length) {
|
3326
3333
|
case 0:
|
3327
3334
|
return t.call(r);
|
@@ -3334,92 +3341,92 @@ function $a(t, r, n) {
|
|
3334
3341
|
}
|
3335
3342
|
return t.apply(r, n);
|
3336
3343
|
}
|
3337
|
-
function
|
3338
|
-
for (var n = -1,
|
3344
|
+
function Gs(t, r) {
|
3345
|
+
for (var n = -1, a = t ? t.length : 0, i = Array(a); ++n < a; )
|
3339
3346
|
i[n] = r(t[n], n, t);
|
3340
3347
|
return i;
|
3341
3348
|
}
|
3342
|
-
function
|
3343
|
-
for (var n = -1,
|
3349
|
+
function Ws(t, r) {
|
3350
|
+
for (var n = -1, a = r.length, i = t.length; ++n < a; )
|
3344
3351
|
t[i + n] = r[n];
|
3345
3352
|
return t;
|
3346
3353
|
}
|
3347
|
-
var Pn = Object.prototype,
|
3348
|
-
function
|
3354
|
+
var Pn = Object.prototype, Ys = Pn.hasOwnProperty, Cn = Pn.toString, Xn = $s.Symbol, Bs = Pn.propertyIsEnumerable, Vn = Xn ? Xn.isConcatSpreadable : void 0, Jn = Math.max;
|
3355
|
+
function Ks(t, r, n, a, i) {
|
3349
3356
|
var c = -1, f = t.length;
|
3350
|
-
for (n || (n =
|
3357
|
+
for (n || (n = qs), i || (i = []); ++c < f; ) {
|
3351
3358
|
var p = t[c];
|
3352
|
-
n(p) ?
|
3359
|
+
n(p) ? Ws(i, p) : i[i.length] = p;
|
3353
3360
|
}
|
3354
3361
|
return i;
|
3355
3362
|
}
|
3356
|
-
function
|
3357
|
-
return t = Object(t),
|
3358
|
-
return
|
3363
|
+
function Xs(t, r) {
|
3364
|
+
return t = Object(t), Vs(t, r, function(n, a) {
|
3365
|
+
return a in t;
|
3359
3366
|
});
|
3360
3367
|
}
|
3361
|
-
function
|
3362
|
-
for (var
|
3363
|
-
var f = r[
|
3368
|
+
function Vs(t, r, n) {
|
3369
|
+
for (var a = -1, i = r.length, c = {}; ++a < i; ) {
|
3370
|
+
var f = r[a], p = t[f];
|
3364
3371
|
n(p, f) && (c[f] = p);
|
3365
3372
|
}
|
3366
3373
|
return c;
|
3367
3374
|
}
|
3368
|
-
function
|
3375
|
+
function Js(t, r) {
|
3369
3376
|
return r = Jn(r === void 0 ? t.length - 1 : r, 0), function() {
|
3370
|
-
for (var n = arguments,
|
3371
|
-
c[
|
3372
|
-
|
3373
|
-
for (var f = Array(r + 1); ++
|
3374
|
-
f[
|
3375
|
-
return f[r] = c,
|
3377
|
+
for (var n = arguments, a = -1, i = Jn(n.length - r, 0), c = Array(i); ++a < i; )
|
3378
|
+
c[a] = n[r + a];
|
3379
|
+
a = -1;
|
3380
|
+
for (var f = Array(r + 1); ++a < r; )
|
3381
|
+
f[a] = n[a];
|
3382
|
+
return f[r] = c, Us(t, this, f);
|
3376
3383
|
};
|
3377
3384
|
}
|
3378
|
-
function
|
3379
|
-
return
|
3385
|
+
function qs(t) {
|
3386
|
+
return ti(t) || Qs(t) || !!(Vn && t && t[Vn]);
|
3380
3387
|
}
|
3381
|
-
function
|
3382
|
-
if (typeof t == "string" ||
|
3388
|
+
function Zs(t) {
|
3389
|
+
if (typeof t == "string" || ii(t))
|
3383
3390
|
return t;
|
3384
3391
|
var r = t + "";
|
3385
|
-
return r == "0" && 1 / t == -
|
3386
|
-
}
|
3387
|
-
function Za(t) {
|
3388
|
-
return ei(t) && Wa.call(t, "callee") && (!Ya.call(t, "callee") || Cn.call(t) == Ra);
|
3392
|
+
return r == "0" && 1 / t == -Cs ? "-0" : r;
|
3389
3393
|
}
|
3390
|
-
|
3391
|
-
|
3392
|
-
return t != null && ni(t.length) && !ri(t);
|
3394
|
+
function Qs(t) {
|
3395
|
+
return ri(t) && Ys.call(t, "callee") && (!Bs.call(t, "callee") || Cn.call(t) == Fs);
|
3393
3396
|
}
|
3397
|
+
var ti = Array.isArray;
|
3394
3398
|
function ei(t) {
|
3395
|
-
return
|
3399
|
+
return t != null && ai(t.length) && !ni(t);
|
3396
3400
|
}
|
3397
3401
|
function ri(t) {
|
3398
|
-
|
3399
|
-
return r == Fa || r == za;
|
3402
|
+
return wa(t) && ei(t);
|
3400
3403
|
}
|
3401
3404
|
function ni(t) {
|
3402
|
-
|
3405
|
+
var r = si(t) ? Cn.call(t) : "";
|
3406
|
+
return r == zs || r == js;
|
3407
|
+
}
|
3408
|
+
function ai(t) {
|
3409
|
+
return typeof t == "number" && t > -1 && t % 1 == 0 && t <= Rs;
|
3403
3410
|
}
|
3404
3411
|
function si(t) {
|
3405
3412
|
var r = typeof t;
|
3406
3413
|
return !!t && (r == "object" || r == "function");
|
3407
3414
|
}
|
3408
|
-
function
|
3415
|
+
function wa(t) {
|
3409
3416
|
return !!t && typeof t == "object";
|
3410
3417
|
}
|
3411
|
-
function
|
3412
|
-
return typeof t == "symbol" ||
|
3418
|
+
function ii(t) {
|
3419
|
+
return typeof t == "symbol" || wa(t) && Cn.call(t) == Hs;
|
3413
3420
|
}
|
3414
|
-
var
|
3415
|
-
return t == null ? {} :
|
3416
|
-
}),
|
3417
|
-
const qn = /* @__PURE__ */ En(
|
3421
|
+
var oi = Js(function(t, r) {
|
3422
|
+
return t == null ? {} : Xs(t, Gs(Ks(r), Zs));
|
3423
|
+
}), ci = oi;
|
3424
|
+
const qn = /* @__PURE__ */ En(ci), ui = {
|
3418
3425
|
width: 1080,
|
3419
3426
|
height: 1920
|
3420
|
-
},
|
3421
|
-
size:
|
3422
|
-
fps:
|
3427
|
+
}, li = 30, di = {
|
3428
|
+
size: ui,
|
3429
|
+
fps: li,
|
3423
3430
|
tracks: [],
|
3424
3431
|
trackItemIds: [],
|
3425
3432
|
trackItemsMap: {},
|
@@ -3444,22 +3451,22 @@ const qn = /* @__PURE__ */ En(oi), ci = {
|
|
3444
3451
|
"trackItemIds",
|
3445
3452
|
"structure"
|
3446
3453
|
];
|
3447
|
-
class
|
3454
|
+
class $i {
|
3448
3455
|
constructor(r) {
|
3449
|
-
|
3450
|
-
|
3451
|
-
|
3452
|
-
|
3453
|
-
|
3454
|
-
|
3455
|
-
const n = Object.assign({},
|
3456
|
+
se(this, "stateSubject");
|
3457
|
+
se(this, "stateHistorySubject");
|
3458
|
+
se(this, "prevState");
|
3459
|
+
se(this, "undos", []);
|
3460
|
+
se(this, "redos", []);
|
3461
|
+
se(this, "listener");
|
3462
|
+
const n = Object.assign({}, di, r);
|
3456
3463
|
this.stateSubject = new Ln(n), this.stateHistorySubject = new Ln({
|
3457
3464
|
handleRedo: !1,
|
3458
3465
|
handleUndo: !1
|
3459
3466
|
}), this.prevState = n, this.initListeners();
|
3460
3467
|
}
|
3461
3468
|
initListeners() {
|
3462
|
-
|
3469
|
+
bs(this);
|
3463
3470
|
}
|
3464
3471
|
destroyListeners() {
|
3465
3472
|
this.listener && this.listener.unsubscribe();
|
@@ -3468,7 +3475,7 @@ class Li {
|
|
3468
3475
|
this.destroyListeners();
|
3469
3476
|
}
|
3470
3477
|
updateHistory(r, n) {
|
3471
|
-
const
|
3478
|
+
const a = qn(r, Zn), i = qn(this.getState(), Zn), c = Ia(i, a);
|
3472
3479
|
c.length && (this.undos.push({ undos: c, type: n }), this.redos = []);
|
3473
3480
|
}
|
3474
3481
|
getStateHistory() {
|
@@ -3487,11 +3494,11 @@ class Li {
|
|
3487
3494
|
}
|
3488
3495
|
// Update the state, emitting only if the part of the state has changed
|
3489
3496
|
updateState(r, n = { updateHistory: !1 }) {
|
3490
|
-
const
|
3491
|
-
...B(
|
3497
|
+
const a = this.getState(), i = {
|
3498
|
+
...B(a),
|
3492
3499
|
...B(r)
|
3493
3500
|
};
|
3494
|
-
rt(
|
3501
|
+
rt(a, i) || (n.updateHistory && this.updateHistory(i, n.kind), this.prevState = a, this.stateSubject.next(i));
|
3495
3502
|
}
|
3496
3503
|
// emit changes for design size
|
3497
3504
|
subscribeToSize(r) {
|
@@ -3518,19 +3525,19 @@ class Li {
|
|
3518
3525
|
}
|
3519
3526
|
subscribeToUpdateAnimations(r) {
|
3520
3527
|
return this.stateSubject.asObservable().subscribe((n) => {
|
3521
|
-
const
|
3528
|
+
const a = Object.keys(n.trackItemsMap).filter(
|
3522
3529
|
(i) => {
|
3523
3530
|
const c = this.prevState.trackItemsMap[i], f = n.trackItemsMap[i];
|
3524
3531
|
return c && f && !rt(c.animations, f.animations);
|
3525
3532
|
}
|
3526
3533
|
);
|
3527
|
-
r({ trackItemsMap: n.trackItemsMap, changedAnimationIds:
|
3534
|
+
r({ trackItemsMap: n.trackItemsMap, changedAnimationIds: a });
|
3528
3535
|
});
|
3529
3536
|
}
|
3530
3537
|
subscribeToUpdateTrackItemTiming(r) {
|
3531
3538
|
return this.stateSubject.asObservable().subscribe((n) => {
|
3532
3539
|
if (!rt(n.trackItemsMap, this.prevState.trackItemsMap)) {
|
3533
|
-
const
|
3540
|
+
const a = Object.keys(n.trackItemsMap).filter((c) => {
|
3534
3541
|
const f = this.prevState.trackItemsMap[c], p = n.trackItemsMap[c];
|
3535
3542
|
return f && p && !rt(f.trim, p.trim);
|
3536
3543
|
}), i = Object.keys(n.trackItemsMap).filter(
|
@@ -3541,7 +3548,7 @@ class Li {
|
|
3541
3548
|
);
|
3542
3549
|
r({
|
3543
3550
|
trackItemsMap: n.trackItemsMap,
|
3544
|
-
changedTrimIds:
|
3551
|
+
changedTrimIds: a.length > 0 ? a : void 0,
|
3545
3552
|
changedDisplayIds: i.length > 0 ? i : void 0
|
3546
3553
|
});
|
3547
3554
|
}
|
@@ -3561,19 +3568,19 @@ class Li {
|
|
3561
3568
|
subscribeToHistory(r) {
|
3562
3569
|
return this.stateHistorySubject.asObservable().subscribe((n) => {
|
3563
3570
|
if (n.handleRedo) {
|
3564
|
-
const
|
3565
|
-
r({ ...this.getState(), type:
|
3571
|
+
const a = this.undos[this.undos.length - 1].type;
|
3572
|
+
r({ ...this.getState(), type: a }), this.stateHistorySubject.next({ handleRedo: !1, handleUndo: !1 });
|
3566
3573
|
}
|
3567
3574
|
if (n.handleUndo) {
|
3568
|
-
const
|
3569
|
-
r({ ...this.getState(), type:
|
3575
|
+
const a = this.redos[this.redos.length - 1].type;
|
3576
|
+
r({ ...this.getState(), type: a }), this.stateHistorySubject.next({ handleRedo: !1, handleUndo: !1 });
|
3570
3577
|
}
|
3571
3578
|
});
|
3572
3579
|
}
|
3573
3580
|
subscribeToAddOrRemoveItems(r) {
|
3574
3581
|
return this.stateSubject.asObservable().subscribe((n) => {
|
3575
|
-
const
|
3576
|
-
rt(
|
3582
|
+
const a = [...n.trackItemIds].sort(), i = [...this.prevState.trackItemIds].sort();
|
3583
|
+
rt(a, i) || r({ trackItemIds: n.trackItemIds });
|
3577
3584
|
});
|
3578
3585
|
}
|
3579
3586
|
// Selectively subscribe to activeIds changes
|
@@ -3584,7 +3591,7 @@ class Li {
|
|
3584
3591
|
}
|
3585
3592
|
subscribeToTracks(r) {
|
3586
3593
|
return this.stateSubject.asObservable().subscribe((n) => {
|
3587
|
-
const
|
3594
|
+
const a = n.tracks, c = this.prevState.tracks.map((p) => p.id), f = a.filter(
|
3588
3595
|
(p) => !c.includes(p.id)
|
3589
3596
|
);
|
3590
3597
|
f.length && r({
|
@@ -3611,8 +3618,8 @@ class Li {
|
|
3611
3618
|
});
|
3612
3619
|
}
|
3613
3620
|
undo() {
|
3614
|
-
const r = this.undos.pop(), n = r == null ? void 0 : r.undos,
|
3615
|
-
if (!n || !
|
3621
|
+
const r = this.undos.pop(), n = r == null ? void 0 : r.undos, a = r == null ? void 0 : r.type;
|
3622
|
+
if (!n || !a) return;
|
3616
3623
|
Kn();
|
3617
3624
|
const {
|
3618
3625
|
trackItemDetailsMap: i,
|
@@ -3678,18 +3685,18 @@ class Li {
|
|
3678
3685
|
trackItemDetailsMap: O,
|
3679
3686
|
structure: D
|
3680
3687
|
}), R = B(this.getState()), j = { ...R, ...w };
|
3681
|
-
this.prevState = R, this.redos.push({ redos: n, type:
|
3688
|
+
this.prevState = R, this.redos.push({ redos: n, type: a });
|
3682
3689
|
const N = ue(j.trackItemsMap);
|
3683
3690
|
this.stateSubject.next({ ...j, duration: N }), this.stateHistorySubject.next({ handleRedo: !1, handleUndo: !0 }), this.updateState(j, { updateHistory: !1 });
|
3684
3691
|
}
|
3685
3692
|
applyPatch(r, n) {
|
3686
|
-
return n.reverse().reduce((
|
3687
|
-
|
3693
|
+
return n.reverse().reduce((a, i) => xs(a, (c) => {
|
3694
|
+
Ps(c, [i]);
|
3688
3695
|
}), r);
|
3689
3696
|
}
|
3690
3697
|
redo() {
|
3691
|
-
const r = this.redos.pop(), n = r == null ? void 0 : r.redos,
|
3692
|
-
if (!n || !
|
3698
|
+
const r = this.redos.pop(), n = r == null ? void 0 : r.redos, a = r == null ? void 0 : r.type;
|
3699
|
+
if (!n || !a) return;
|
3693
3700
|
Kn();
|
3694
3701
|
const {
|
3695
3702
|
trackItemDetailsMap: i,
|
@@ -3755,7 +3762,7 @@ class Li {
|
|
3755
3762
|
trackItemDetailsMap: O,
|
3756
3763
|
structure: D
|
3757
3764
|
}), R = B(this.getState()), j = { ...R, ...w };
|
3758
|
-
this.prevState = R, this.undos.push({ undos: n, type:
|
3765
|
+
this.prevState = R, this.undos.push({ undos: n, type: a });
|
3759
3766
|
const N = ue(j.trackItemsMap);
|
3760
3767
|
this.stateSubject.next({ ...j, duration: N }), this.stateHistorySubject.next({ handleRedo: !0, handleUndo: !1 }), this.updateState(j, { updateHistory: !1 });
|
3761
3768
|
}
|
@@ -3763,7 +3770,7 @@ class Li {
|
|
3763
3770
|
const {
|
3764
3771
|
fps: r,
|
3765
3772
|
tracks: n,
|
3766
|
-
size:
|
3773
|
+
size: a,
|
3767
3774
|
trackItemDetailsMap: i,
|
3768
3775
|
trackItemIds: c,
|
3769
3776
|
transitionsMap: f,
|
@@ -3773,7 +3780,7 @@ class Li {
|
|
3773
3780
|
return {
|
3774
3781
|
fps: r,
|
3775
3782
|
tracks: n,
|
3776
|
-
size:
|
3783
|
+
size: a,
|
3777
3784
|
trackItemDetailsMap: i,
|
3778
3785
|
trackItemIds: c,
|
3779
3786
|
transitionsMap: f,
|
@@ -3783,63 +3790,63 @@ class Li {
|
|
3783
3790
|
}
|
3784
3791
|
}
|
3785
3792
|
export {
|
3786
|
-
|
3787
|
-
|
3788
|
-
|
3793
|
+
es as ACTIVE_CLONE,
|
3794
|
+
Ei as ACTIVE_DELETE,
|
3795
|
+
ts as ACTIVE_PASTE,
|
3789
3796
|
we as ACTIVE_PREFIX,
|
3790
|
-
|
3791
|
-
|
3792
|
-
|
3793
|
-
|
3794
|
-
|
3795
|
-
|
3796
|
-
|
3797
|
-
|
3798
|
-
|
3797
|
+
Mi as ACTIVE_SET,
|
3798
|
+
rs as ACTIVE_SPLIT,
|
3799
|
+
Xa as ADD_ANIMATION,
|
3800
|
+
Ba as ADD_AUDIO,
|
3801
|
+
Va as ADD_CAPTIONS,
|
3802
|
+
Ka as ADD_IMAGE,
|
3803
|
+
qa as ADD_ITEMS,
|
3804
|
+
bi as ADD_MASK,
|
3805
|
+
gi as ADD_PLACEHOLDER,
|
3799
3806
|
Tt as ADD_PREFIX,
|
3800
|
-
|
3801
|
-
|
3802
|
-
|
3803
|
-
|
3804
|
-
|
3805
|
-
|
3806
|
-
|
3807
|
+
hi as ADD_SUFFIX,
|
3808
|
+
Ja as ADD_TEMPLATE,
|
3809
|
+
Wa as ADD_TEXT,
|
3810
|
+
_i as ADD_TRANSITION,
|
3811
|
+
Ya as ADD_VIDEO,
|
3812
|
+
wi as DELETE_TEMPLATE_ITEM,
|
3813
|
+
Ua as DESIGN_LOAD,
|
3807
3814
|
An as DESIGN_PREFIX,
|
3808
|
-
|
3809
|
-
|
3815
|
+
Ga as DESIGN_RESIZE,
|
3816
|
+
Za as EDIT_OBJECT,
|
3810
3817
|
he as EDIT_PREFIX,
|
3811
|
-
|
3812
|
-
|
3813
|
-
|
3814
|
-
|
3818
|
+
Si as EDIT_SHAPE,
|
3819
|
+
ki as EDIT_TEMPLATE_ITEM,
|
3820
|
+
vi as EDIT_TEXT,
|
3821
|
+
Ti as ENTER_EDIT_MODE,
|
3815
3822
|
br as HISTORY_PREFIX,
|
3816
|
-
|
3817
|
-
|
3818
|
-
|
3819
|
-
|
3820
|
-
|
3821
|
-
|
3822
|
-
|
3823
|
-
|
3824
|
-
|
3825
|
-
|
3826
|
-
|
3827
|
-
|
3823
|
+
os as HISTORY_REDO,
|
3824
|
+
Li as HISTORY_RESET,
|
3825
|
+
is as HISTORY_UNDO,
|
3826
|
+
ns as LAYER_CLONE,
|
3827
|
+
zi as LAYER_COPY,
|
3828
|
+
Ni as LAYER_CUT,
|
3829
|
+
as as LAYER_DELETE,
|
3830
|
+
Fi as LAYER_EDITING_NAME,
|
3831
|
+
Di as LAYER_HIDDEN,
|
3832
|
+
Ai as LAYER_LOCKED,
|
3833
|
+
Oi as LAYER_MOVE,
|
3834
|
+
ji as LAYER_PASTE,
|
3828
3835
|
dt as LAYER_PREFIX,
|
3829
|
-
|
3830
|
-
|
3831
|
-
|
3832
|
-
|
3833
|
-
|
3834
|
-
|
3835
|
-
|
3836
|
-
|
3837
|
-
$
|
3838
|
-
|
3839
|
-
|
3840
|
-
|
3841
|
-
|
3842
|
-
|
3843
|
-
|
3844
|
-
|
3836
|
+
Ri as LAYER_RENAME,
|
3837
|
+
ss as LAYER_REPLACE,
|
3838
|
+
xi as LAYER_SELECT,
|
3839
|
+
Pi as LAYER_SELECTION,
|
3840
|
+
Ci as LAYER_SEND_TO,
|
3841
|
+
Hi as LAYER_SPLIT,
|
3842
|
+
Qa as REPLACE_MEDIA,
|
3843
|
+
Ii as STATE_CHANGED,
|
3844
|
+
$a as STATE_PREFIX,
|
3845
|
+
cs as TIMELINE_SCALE_CHANGED,
|
3846
|
+
ia as TIMELINE_SCALE_PREFIX,
|
3847
|
+
mi as TRACKS_CHANGED,
|
3848
|
+
yi as TRACK_ITEMS_CHANGED,
|
3849
|
+
La as TRACK_ITEMS_PREFIX,
|
3850
|
+
Na as TRACK_PREFIX,
|
3851
|
+
$i as default
|
3845
3852
|
};
|