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