@designcombo/state 0.1.9 → 0.1.10

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.es.js CHANGED
@@ -1,94 +1,94 @@
1
- var ai = Object.defineProperty;
2
- var si = (t, r, n) => r in t ? ai(t, r, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[r] = n;
3
- var Et = (t, r, n) => si(t, typeof r != "symbol" ? r + "" : r, n);
4
- import { subject as Bt, filter as Wt, DESIGN_PREFIX as oi, ADD_PREFIX as ci, LAYER_PREFIX as ui, HISTORY_PREFIX as fi, ACTIVE_PREFIX as li, EDIT_PREFIX as pi, DESIGN_LOAD as di, HISTORY_UNDO as hi, HISTORY_REDO as yi, LAYER_DELETE as mi, ADD_CAPTION as bi, ADD_TEXT as _i, ADD_IMAGE as gi, ADD_AUDIO as vi, ADD_VIDEO as Ii, ACTIVE_SPLIT as Si, ACTIVE_CLONE as wi, ACTIVE_PASTE as Ti, EDIT_OBJECT as Ai } from "@designcombo/events";
5
- var en = function(t, r) {
6
- return en = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, a) {
7
- n.__proto__ = a;
8
- } || function(n, a) {
9
- for (var o in a) Object.prototype.hasOwnProperty.call(a, o) && (n[o] = a[o]);
10
- }, en(t, r);
1
+ var si = Object.defineProperty;
2
+ var oi = (t, r, n) => r in t ? si(t, r, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[r] = n;
3
+ var Et = (t, r, n) => oi(t, typeof r != "symbol" ? r + "" : r, n);
4
+ import { subject as $t, filter as Kt, DESIGN_PREFIX as ci, ADD_PREFIX as ui, LAYER_PREFIX as fi, HISTORY_PREFIX as li, ACTIVE_PREFIX as pi, EDIT_PREFIX as di, DESIGN_LOAD as hi, HISTORY_UNDO as yi, HISTORY_REDO as mi, LAYER_DELETE as bi, ADD_CAPTION as gi, ADD_TEXT as _i, ADD_IMAGE as vi, ADD_AUDIO as Ii, ADD_VIDEO as Si, ACTIVE_SPLIT as wi, ACTIVE_CLONE as Ti, ACTIVE_PASTE as Ai, EDIT_OBJECT as Ei } from "@designcombo/events";
5
+ var nn = function(t, r) {
6
+ return nn = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
7
+ n.__proto__ = i;
8
+ } || function(n, i) {
9
+ for (var o in i) Object.prototype.hasOwnProperty.call(i, o) && (n[o] = i[o]);
10
+ }, nn(t, r);
11
11
  };
12
- function ye(t, r) {
12
+ function be(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
- en(t, r);
15
+ nn(t, r);
16
16
  function n() {
17
17
  this.constructor = t;
18
18
  }
19
19
  t.prototype = r === null ? Object.create(r) : (n.prototype = r.prototype, new n());
20
20
  }
21
- function rn(t) {
22
- var r = typeof Symbol == "function" && Symbol.iterator, n = r && t[r], a = 0;
21
+ function an(t) {
22
+ var r = typeof Symbol == "function" && Symbol.iterator, n = r && t[r], i = 0;
23
23
  if (n) return n.call(t);
24
24
  if (t && typeof t.length == "number") return {
25
25
  next: function() {
26
- return t && a >= t.length && (t = void 0), { value: t && t[a++], done: !t };
26
+ return t && i >= t.length && (t = void 0), { value: t && t[i++], done: !t };
27
27
  }
28
28
  };
29
29
  throw new TypeError(r ? "Object is not iterable." : "Symbol.iterator is not defined.");
30
30
  }
31
- function nn(t, r) {
31
+ function sn(t, r) {
32
32
  var n = typeof Symbol == "function" && t[Symbol.iterator];
33
33
  if (!n) return t;
34
- var a = n.call(t), o, c = [], l;
34
+ var i = n.call(t), o, c = [], l;
35
35
  try {
36
- for (; (r === void 0 || r-- > 0) && !(o = a.next()).done; ) c.push(o.value);
36
+ for (; (r === void 0 || r-- > 0) && !(o = i.next()).done; ) c.push(o.value);
37
37
  } catch (d) {
38
38
  l = { error: d };
39
39
  } finally {
40
40
  try {
41
- o && !o.done && (n = a.return) && n.call(a);
41
+ o && !o.done && (n = i.return) && n.call(i);
42
42
  } finally {
43
43
  if (l) throw l.error;
44
44
  }
45
45
  }
46
46
  return c;
47
47
  }
48
- function an(t, r, n) {
49
- if (n || arguments.length === 2) for (var a = 0, o = r.length, c; a < o; a++)
50
- (c || !(a in r)) && (c || (c = Array.prototype.slice.call(r, 0, a)), c[a] = r[a]);
48
+ function on(t, r, n) {
49
+ if (n || arguments.length === 2) for (var i = 0, o = r.length, c; i < o; i++)
50
+ (c || !(i in r)) && (c || (c = Array.prototype.slice.call(r, 0, i)), c[i] = r[i]);
51
51
  return t.concat(c || Array.prototype.slice.call(r));
52
52
  }
53
53
  function yt(t) {
54
54
  return typeof t == "function";
55
55
  }
56
- function Bn(t) {
57
- var r = function(a) {
58
- Error.call(a), a.stack = new Error().stack;
56
+ function Gn(t) {
57
+ var r = function(i) {
58
+ Error.call(i), i.stack = new Error().stack;
59
59
  }, n = t(r);
60
60
  return n.prototype = Object.create(Error.prototype), n.prototype.constructor = n, n;
61
61
  }
62
- var Xr = Bn(function(t) {
62
+ var Zr = Gn(function(t) {
63
63
  return function(n) {
64
64
  t(this), this.message = n ? n.length + ` errors occurred during unsubscription:
65
- ` + n.map(function(a, o) {
66
- return o + 1 + ") " + a.toString();
65
+ ` + n.map(function(i, o) {
66
+ return o + 1 + ") " + i.toString();
67
67
  }).join(`
68
68
  `) : "", this.name = "UnsubscriptionError", this.errors = n;
69
69
  };
70
70
  });
71
- function sn(t, r) {
71
+ function cn(t, r) {
72
72
  if (t) {
73
73
  var n = t.indexOf(r);
74
74
  0 <= n && t.splice(n, 1);
75
75
  }
76
76
  }
77
- var Ze = function() {
77
+ var tr = function() {
78
78
  function t(r) {
79
79
  this.initialTeardown = r, this.closed = !1, this._parentage = null, this._finalizers = null;
80
80
  }
81
81
  return t.prototype.unsubscribe = function() {
82
- var r, n, a, o, c;
82
+ var r, n, i, o, c;
83
83
  if (!this.closed) {
84
84
  this.closed = !0;
85
85
  var l = this._parentage;
86
86
  if (l)
87
87
  if (this._parentage = null, Array.isArray(l))
88
88
  try {
89
- for (var d = rn(l), E = d.next(); !E.done; E = d.next()) {
90
- var D = E.value;
91
- D.remove(this);
89
+ for (var d = an(l), E = d.next(); !E.done; E = d.next()) {
90
+ var j = E.value;
91
+ j.remove(this);
92
92
  }
93
93
  } catch (f) {
94
94
  r = { error: f };
@@ -101,43 +101,43 @@ var Ze = function() {
101
101
  }
102
102
  else
103
103
  l.remove(this);
104
- var w = this.initialTeardown;
105
- if (yt(w))
104
+ var S = this.initialTeardown;
105
+ if (yt(S))
106
106
  try {
107
- w();
107
+ S();
108
108
  } catch (f) {
109
- c = f instanceof Xr ? f.errors : [f];
109
+ c = f instanceof Zr ? f.errors : [f];
110
110
  }
111
- var z = this._finalizers;
112
- if (z) {
111
+ var N = this._finalizers;
112
+ if (N) {
113
113
  this._finalizers = null;
114
114
  try {
115
- for (var h = rn(z), p = h.next(); !p.done; p = h.next()) {
116
- var g = p.value;
115
+ for (var y = an(N), p = y.next(); !p.done; p = y.next()) {
116
+ var h = p.value;
117
117
  try {
118
- An(g);
118
+ Tn(h);
119
119
  } catch (f) {
120
- c = c ?? [], f instanceof Xr ? c = an(an([], nn(c)), nn(f.errors)) : c.push(f);
120
+ c = c ?? [], f instanceof Zr ? c = on(on([], sn(c)), sn(f.errors)) : c.push(f);
121
121
  }
122
122
  }
123
123
  } catch (f) {
124
- a = { error: f };
124
+ i = { error: f };
125
125
  } finally {
126
126
  try {
127
- p && !p.done && (o = h.return) && o.call(h);
127
+ p && !p.done && (o = y.return) && o.call(y);
128
128
  } finally {
129
- if (a) throw a.error;
129
+ if (i) throw i.error;
130
130
  }
131
131
  }
132
132
  }
133
133
  if (c)
134
- throw new Xr(c);
134
+ throw new Zr(c);
135
135
  }
136
136
  }, t.prototype.add = function(r) {
137
137
  var n;
138
138
  if (r && r !== this)
139
139
  if (this.closed)
140
- An(r);
140
+ Tn(r);
141
141
  else {
142
142
  if (r instanceof t) {
143
143
  if (r.closed || r._hasParent(this))
@@ -154,57 +154,57 @@ var Ze = function() {
154
154
  this._parentage = Array.isArray(n) ? (n.push(r), n) : n ? [n, r] : r;
155
155
  }, t.prototype._removeParent = function(r) {
156
156
  var n = this._parentage;
157
- n === r ? this._parentage = null : Array.isArray(n) && sn(n, r);
157
+ n === r ? this._parentage = null : Array.isArray(n) && cn(n, r);
158
158
  }, t.prototype.remove = function(r) {
159
159
  var n = this._finalizers;
160
- n && sn(n, r), r instanceof t && r._removeParent(this);
160
+ n && cn(n, 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
- }(), Wn = Ze.EMPTY;
166
- function $n(t) {
167
- return t instanceof Ze || t && "closed" in t && yt(t.remove) && yt(t.add) && yt(t.unsubscribe);
165
+ }(), Wn = tr.EMPTY;
166
+ function Bn(t) {
167
+ return t instanceof tr || t && "closed" in t && yt(t.remove) && yt(t.add) && yt(t.unsubscribe);
168
168
  }
169
- function An(t) {
169
+ function Tn(t) {
170
170
  yt(t) ? t() : t.unsubscribe();
171
171
  }
172
- var Kn = {
172
+ var $n = {
173
173
  onUnhandledError: null,
174
174
  onStoppedNotification: null,
175
175
  Promise: void 0,
176
176
  useDeprecatedSynchronousErrorHandling: !1,
177
177
  useDeprecatedNextContext: !1
178
- }, Vn = {
178
+ }, Kn = {
179
179
  setTimeout: function(t, r) {
180
- for (var n = [], a = 2; a < arguments.length; a++)
181
- n[a - 2] = arguments[a];
182
- return setTimeout.apply(void 0, an([t, r], nn(n)));
180
+ for (var n = [], i = 2; i < arguments.length; i++)
181
+ n[i - 2] = arguments[i];
182
+ return setTimeout.apply(void 0, on([t, r], sn(n)));
183
183
  },
184
184
  clearTimeout: function(t) {
185
- var r = Vn.delegate;
185
+ var r = Kn.delegate;
186
186
  return ((r == null ? void 0 : r.clearTimeout) || clearTimeout)(t);
187
187
  },
188
188
  delegate: void 0
189
189
  };
190
- function Ei(t) {
191
- Vn.setTimeout(function() {
190
+ function ki(t) {
191
+ Kn.setTimeout(function() {
192
192
  throw t;
193
193
  });
194
194
  }
195
- function En() {
195
+ function An() {
196
196
  }
197
197
  function Ve(t) {
198
198
  t();
199
199
  }
200
200
  var Yn = function(t) {
201
- ye(r, t);
201
+ be(r, t);
202
202
  function r(n) {
203
- var a = t.call(this) || this;
204
- return a.isStopped = !1, n ? (a.destination = n, $n(n) && n.add(a)) : a.destination = Mi, a;
203
+ var i = t.call(this) || this;
204
+ return i.isStopped = !1, n ? (i.destination = n, Bn(n) && n.add(i)) : i.destination = Pi, i;
205
205
  }
206
- return r.create = function(n, a, o) {
207
- return new on(n, a, o);
206
+ return r.create = function(n, i, o) {
207
+ return new un(n, i, o);
208
208
  }, r.prototype.next = function(n) {
209
209
  this.isStopped || this._next(n);
210
210
  }, r.prototype.error = function(n) {
@@ -228,11 +228,11 @@ var Yn = function(t) {
228
228
  this.unsubscribe();
229
229
  }
230
230
  }, r;
231
- }(Ze), ki = Function.prototype.bind;
232
- function qr(t, r) {
233
- return ki.call(t, r);
231
+ }(tr), Oi = Function.prototype.bind;
232
+ function Qr(t, r) {
233
+ return Oi.call(t, r);
234
234
  }
235
- var Oi = function() {
235
+ var xi = function() {
236
236
  function t(r) {
237
237
  this.partialObserver = r;
238
238
  }
@@ -241,85 +241,85 @@ var Oi = function() {
241
241
  if (n.next)
242
242
  try {
243
243
  n.next(r);
244
- } catch (a) {
245
- Ke(a);
244
+ } catch (i) {
245
+ Ye(i);
246
246
  }
247
247
  }, t.prototype.error = function(r) {
248
248
  var n = this.partialObserver;
249
249
  if (n.error)
250
250
  try {
251
251
  n.error(r);
252
- } catch (a) {
253
- Ke(a);
252
+ } catch (i) {
253
+ Ye(i);
254
254
  }
255
255
  else
256
- Ke(r);
256
+ Ye(r);
257
257
  }, t.prototype.complete = function() {
258
258
  var r = this.partialObserver;
259
259
  if (r.complete)
260
260
  try {
261
261
  r.complete();
262
262
  } catch (n) {
263
- Ke(n);
263
+ Ye(n);
264
264
  }
265
265
  }, t;
266
- }(), on = function(t) {
267
- ye(r, t);
268
- function r(n, a, o) {
266
+ }(), un = function(t) {
267
+ be(r, t);
268
+ function r(n, i, o) {
269
269
  var c = t.call(this) || this, l;
270
270
  if (yt(n) || !n)
271
271
  l = {
272
272
  next: n ?? void 0,
273
- error: a ?? void 0,
273
+ error: i ?? void 0,
274
274
  complete: o ?? void 0
275
275
  };
276
276
  else {
277
277
  var d;
278
- c && Kn.useDeprecatedNextContext ? (d = Object.create(n), d.unsubscribe = function() {
278
+ c && $n.useDeprecatedNextContext ? (d = Object.create(n), d.unsubscribe = function() {
279
279
  return c.unsubscribe();
280
280
  }, l = {
281
- next: n.next && qr(n.next, d),
282
- error: n.error && qr(n.error, d),
283
- complete: n.complete && qr(n.complete, d)
281
+ next: n.next && Qr(n.next, d),
282
+ error: n.error && Qr(n.error, d),
283
+ complete: n.complete && Qr(n.complete, d)
284
284
  }) : l = n;
285
285
  }
286
- return c.destination = new Oi(l), c;
286
+ return c.destination = new xi(l), c;
287
287
  }
288
288
  return r;
289
289
  }(Yn);
290
- function Ke(t) {
291
- Ei(t);
290
+ function Ye(t) {
291
+ ki(t);
292
292
  }
293
- function xi(t) {
293
+ function Mi(t) {
294
294
  throw t;
295
295
  }
296
- var Mi = {
296
+ var Pi = {
297
297
  closed: !0,
298
- next: En,
299
- error: xi,
300
- complete: En
301
- }, Pi = function() {
298
+ next: An,
299
+ error: Mi,
300
+ complete: An
301
+ }, Di = function() {
302
302
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
303
303
  }();
304
- function Di(t) {
304
+ function Ci(t) {
305
305
  return t;
306
306
  }
307
- function Ci(t) {
308
- return t.length === 0 ? Di : t.length === 1 ? t[0] : function(n) {
309
- return t.reduce(function(a, o) {
310
- return o(a);
307
+ function ji(t) {
308
+ return t.length === 0 ? Ci : t.length === 1 ? t[0] : function(n) {
309
+ return t.reduce(function(i, o) {
310
+ return o(i);
311
311
  }, n);
312
312
  };
313
313
  }
314
- var kn = function() {
314
+ var En = function() {
315
315
  function t(r) {
316
316
  r && (this._subscribe = r);
317
317
  }
318
318
  return t.prototype.lift = function(r) {
319
319
  var n = new t();
320
320
  return n.source = this, n.operator = r, n;
321
- }, t.prototype.subscribe = function(r, n, a) {
322
- var o = this, c = Fi(r) ? r : new on(r, n, a);
321
+ }, t.prototype.subscribe = function(r, n, i) {
322
+ var o = this, c = Ri(r) ? r : new un(r, n, i);
323
323
  return Ve(function() {
324
324
  var l = o, d = l.operator, E = l.source;
325
325
  c.add(d ? d.call(c, E) : E ? o._subscribe(c) : o._trySubscribe(c));
@@ -331,9 +331,9 @@ var kn = function() {
331
331
  r.error(n);
332
332
  }
333
333
  }, t.prototype.forEach = function(r, n) {
334
- var a = this;
335
- return n = On(n), new n(function(o, c) {
336
- var l = new on({
334
+ var i = this;
335
+ return n = kn(n), new n(function(o, c) {
336
+ var l = new un({
337
337
  next: function(d) {
338
338
  try {
339
339
  r(d);
@@ -344,72 +344,72 @@ var kn = function() {
344
344
  error: c,
345
345
  complete: o
346
346
  });
347
- a.subscribe(l);
347
+ i.subscribe(l);
348
348
  });
349
349
  }, t.prototype._subscribe = function(r) {
350
350
  var n;
351
351
  return (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r);
352
- }, t.prototype[Pi] = function() {
352
+ }, t.prototype[Di] = function() {
353
353
  return this;
354
354
  }, t.prototype.pipe = function() {
355
355
  for (var r = [], n = 0; n < arguments.length; n++)
356
356
  r[n] = arguments[n];
357
- return Ci(r)(this);
357
+ return ji(r)(this);
358
358
  }, t.prototype.toPromise = function(r) {
359
359
  var n = this;
360
- return r = On(r), new r(function(a, o) {
360
+ return r = kn(r), new r(function(i, o) {
361
361
  var c;
362
362
  n.subscribe(function(l) {
363
363
  return c = l;
364
364
  }, function(l) {
365
365
  return o(l);
366
366
  }, function() {
367
- return a(c);
367
+ return i(c);
368
368
  });
369
369
  });
370
370
  }, t.create = function(r) {
371
371
  return new t(r);
372
372
  }, t;
373
373
  }();
374
- function On(t) {
374
+ function kn(t) {
375
375
  var r;
376
- return (r = t ?? Kn.Promise) !== null && r !== void 0 ? r : Promise;
376
+ return (r = t ?? $n.Promise) !== null && r !== void 0 ? r : Promise;
377
377
  }
378
- function ji(t) {
378
+ function Fi(t) {
379
379
  return t && yt(t.next) && yt(t.error) && yt(t.complete);
380
380
  }
381
- function Fi(t) {
382
- return t && t instanceof Yn || ji(t) && $n(t);
381
+ function Ri(t) {
382
+ return t && t instanceof Yn || Fi(t) && Bn(t);
383
383
  }
384
- var Ri = Bn(function(t) {
384
+ var zi = Gn(function(t) {
385
385
  return function() {
386
386
  t(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
387
387
  };
388
- }), Xn = function(t) {
389
- ye(r, t);
388
+ }), Vn = function(t) {
389
+ be(r, t);
390
390
  function r() {
391
391
  var n = t.call(this) || this;
392
392
  return n.closed = !1, n.currentObservers = null, n.observers = [], n.isStopped = !1, n.hasError = !1, n.thrownError = null, n;
393
393
  }
394
394
  return r.prototype.lift = function(n) {
395
- var a = new xn(this, this);
396
- return a.operator = n, a;
395
+ var i = new On(this, this);
396
+ return i.operator = n, i;
397
397
  }, r.prototype._throwIfClosed = function() {
398
398
  if (this.closed)
399
- throw new Ri();
399
+ throw new zi();
400
400
  }, r.prototype.next = function(n) {
401
- var a = this;
401
+ var i = this;
402
402
  Ve(function() {
403
403
  var o, c;
404
- if (a._throwIfClosed(), !a.isStopped) {
405
- a.currentObservers || (a.currentObservers = Array.from(a.observers));
404
+ if (i._throwIfClosed(), !i.isStopped) {
405
+ i.currentObservers || (i.currentObservers = Array.from(i.observers));
406
406
  try {
407
- for (var l = rn(a.currentObservers), d = l.next(); !d.done; d = l.next()) {
407
+ for (var l = an(i.currentObservers), d = l.next(); !d.done; d = l.next()) {
408
408
  var E = d.value;
409
409
  E.next(n);
410
410
  }
411
- } catch (D) {
412
- o = { error: D };
411
+ } catch (j) {
412
+ o = { error: j };
413
413
  } finally {
414
414
  try {
415
415
  d && !d.done && (c = l.return) && c.call(l);
@@ -420,11 +420,11 @@ var Ri = Bn(function(t) {
420
420
  }
421
421
  });
422
422
  }, r.prototype.error = function(n) {
423
- var a = this;
423
+ var i = this;
424
424
  Ve(function() {
425
- if (a._throwIfClosed(), !a.isStopped) {
426
- a.hasError = a.isStopped = !0, a.thrownError = n;
427
- for (var o = a.observers; o.length; )
425
+ if (i._throwIfClosed(), !i.isStopped) {
426
+ i.hasError = i.isStopped = !0, i.thrownError = n;
427
+ for (var o = i.observers; o.length; )
428
428
  o.shift().error(n);
429
429
  }
430
430
  });
@@ -433,8 +433,8 @@ var Ri = Bn(function(t) {
433
433
  Ve(function() {
434
434
  if (n._throwIfClosed(), !n.isStopped) {
435
435
  n.isStopped = !0;
436
- for (var a = n.observers; a.length; )
437
- a.shift().complete();
436
+ for (var i = n.observers; i.length; )
437
+ i.shift().complete();
438
438
  }
439
439
  });
440
440
  }, r.prototype.unsubscribe = function() {
@@ -451,43 +451,43 @@ var Ri = Bn(function(t) {
451
451
  }, r.prototype._subscribe = function(n) {
452
452
  return this._throwIfClosed(), this._checkFinalizedStatuses(n), this._innerSubscribe(n);
453
453
  }, r.prototype._innerSubscribe = function(n) {
454
- var a = this, o = this, c = o.hasError, l = o.isStopped, d = o.observers;
455
- return c || l ? Wn : (this.currentObservers = null, d.push(n), new Ze(function() {
456
- a.currentObservers = null, sn(d, n);
454
+ var i = this, o = this, c = o.hasError, l = o.isStopped, d = o.observers;
455
+ return c || l ? Wn : (this.currentObservers = null, d.push(n), new tr(function() {
456
+ i.currentObservers = null, cn(d, n);
457
457
  }));
458
458
  }, r.prototype._checkFinalizedStatuses = function(n) {
459
- var a = this, o = a.hasError, c = a.thrownError, l = a.isStopped;
459
+ var i = this, o = i.hasError, c = i.thrownError, l = i.isStopped;
460
460
  o ? n.error(c) : l && n.complete();
461
461
  }, r.prototype.asObservable = function() {
462
- var n = new kn();
462
+ var n = new En();
463
463
  return n.source = this, n;
464
- }, r.create = function(n, a) {
465
- return new xn(n, a);
464
+ }, r.create = function(n, i) {
465
+ return new On(n, i);
466
466
  }, r;
467
- }(kn), xn = function(t) {
468
- ye(r, t);
469
- function r(n, a) {
467
+ }(En), On = function(t) {
468
+ be(r, t);
469
+ function r(n, i) {
470
470
  var o = t.call(this) || this;
471
- return o.destination = n, o.source = a, o;
471
+ return o.destination = n, o.source = i, o;
472
472
  }
473
473
  return r.prototype.next = function(n) {
474
- var a, o;
475
- (o = (a = this.destination) === null || a === void 0 ? void 0 : a.next) === null || o === void 0 || o.call(a, n);
474
+ var i, o;
475
+ (o = (i = this.destination) === null || i === void 0 ? void 0 : i.next) === null || o === void 0 || o.call(i, n);
476
476
  }, r.prototype.error = function(n) {
477
- var a, o;
478
- (o = (a = this.destination) === null || a === void 0 ? void 0 : a.error) === null || o === void 0 || o.call(a, n);
477
+ var i, o;
478
+ (o = (i = this.destination) === null || i === void 0 ? void 0 : i.error) === null || o === void 0 || o.call(i, n);
479
479
  }, r.prototype.complete = function() {
480
- var n, a;
481
- (a = (n = this.destination) === null || n === void 0 ? void 0 : n.complete) === null || a === void 0 || a.call(n);
480
+ var n, i;
481
+ (i = (n = this.destination) === null || n === void 0 ? void 0 : n.complete) === null || i === void 0 || i.call(n);
482
482
  }, r.prototype._subscribe = function(n) {
483
- var a, o;
484
- return (o = (a = this.source) === null || a === void 0 ? void 0 : a.subscribe(n)) !== null && o !== void 0 ? o : Wn;
483
+ var i, o;
484
+ return (o = (i = this.source) === null || i === void 0 ? void 0 : i.subscribe(n)) !== null && o !== void 0 ? o : Wn;
485
485
  }, r;
486
- }(Xn), Mn = function(t) {
487
- ye(r, t);
486
+ }(Vn), xn = function(t) {
487
+ be(r, t);
488
488
  function r(n) {
489
- var a = t.call(this) || this;
490
- return a._value = n, a;
489
+ var i = t.call(this) || this;
490
+ return i._value = n, i;
491
491
  }
492
492
  return Object.defineProperty(r.prototype, "value", {
493
493
  get: function() {
@@ -496,446 +496,446 @@ var Ri = Bn(function(t) {
496
496
  enumerable: !1,
497
497
  configurable: !0
498
498
  }), r.prototype._subscribe = function(n) {
499
- var a = t.prototype._subscribe.call(this, n);
500
- return !a.closed && n.next(this._value), a;
499
+ var i = t.prototype._subscribe.call(this, n);
500
+ return !i.closed && n.next(this._value), i;
501
501
  }, r.prototype.getValue = function() {
502
- var n = this, a = n.hasError, o = n.thrownError, c = n._value;
503
- if (a)
502
+ var n = this, i = n.hasError, o = n.thrownError, c = n._value;
503
+ if (i)
504
504
  throw o;
505
505
  return this._throwIfClosed(), c;
506
506
  }, r.prototype.next = function(n) {
507
507
  t.prototype.next.call(this, this._value = n);
508
508
  }, r;
509
- }(Xn), et = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
510
- function mn(t) {
509
+ }(Vn), et = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
510
+ function bn(t) {
511
511
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
512
512
  }
513
- var Ye = { exports: {} };
514
- Ye.exports;
513
+ var Xe = { exports: {} };
514
+ Xe.exports;
515
515
  (function(t, r) {
516
- var n = 200, a = "__lodash_hash_undefined__", o = 1, c = 2, l = 9007199254740991, d = "[object Arguments]", E = "[object Array]", D = "[object AsyncFunction]", w = "[object Boolean]", z = "[object Date]", h = "[object Error]", p = "[object Function]", g = "[object GeneratorFunction]", f = "[object Map]", v = "[object Number]", b = "[object Null]", _ = "[object Object]", m = "[object Promise]", y = "[object Proxy]", F = "[object RegExp]", k = "[object Set]", M = "[object String]", N = "[object Symbol]", R = "[object Undefined]", S = "[object WeakMap]", T = "[object ArrayBuffer]", H = "[object DataView]", _e = "[object Float32Array]", ge = "[object Float64Array]", ve = "[object Int8Array]", er = "[object Int16Array]", rr = "[object Int32Array]", nr = "[object Uint8Array]", ir = "[object Uint8ClampedArray]", C = "[object Uint16Array]", ar = "[object Uint32Array]", sr = /[\\^$.*+?()[\]{}|]/g, rt = /^\[object .+?Constructor\]$/, Ie = /^(?:0|[1-9]\d*)$/, j = {};
517
- j[_e] = j[ge] = j[ve] = j[er] = j[rr] = j[nr] = j[ir] = j[C] = j[ar] = !0, j[d] = j[E] = j[T] = j[w] = j[H] = j[z] = j[h] = j[p] = j[f] = j[v] = j[_] = j[F] = j[k] = j[M] = j[S] = !1;
518
- var Se = typeof et == "object" && et && et.Object === Object && et, or = typeof self == "object" && self && self.Object === Object && self, nt = Se || or || Function("return this")(), we = r && !r.nodeType && r, Te = we && !0 && t && !t.nodeType && t, $t = Te && Te.exports === we, Kt = $t && Se.process, Ae = function() {
516
+ var n = 200, i = "__lodash_hash_undefined__", o = 1, c = 2, l = 9007199254740991, d = "[object Arguments]", E = "[object Array]", j = "[object AsyncFunction]", S = "[object Boolean]", N = "[object Date]", y = "[object Error]", p = "[object Function]", h = "[object GeneratorFunction]", f = "[object Map]", g = "[object Number]", v = "[object Null]", _ = "[object Object]", b = "[object Promise]", m = "[object Proxy]", H = "[object RegExp]", O = "[object Set]", k = "[object String]", D = "[object Symbol]", w = "[object Undefined]", T = "[object WeakMap]", x = "[object ArrayBuffer]", F = "[object DataView]", Dt = "[object Float32Array]", Ct = "[object Float64Array]", Ie = "[object Int8Array]", ir = "[object Int16Array]", ar = "[object Int32Array]", sr = "[object Uint8Array]", or = "[object Uint8ClampedArray]", R = "[object Uint16Array]", cr = "[object Uint32Array]", ur = /[\\^$.*+?()[\]{}|]/g, rt = /^\[object .+?Constructor\]$/, Se = /^(?:0|[1-9]\d*)$/, z = {};
517
+ z[Dt] = z[Ct] = z[Ie] = z[ir] = z[ar] = z[sr] = z[or] = z[R] = z[cr] = !0, z[d] = z[E] = z[x] = z[S] = z[F] = z[N] = z[y] = z[p] = z[f] = z[g] = z[_] = z[H] = z[O] = z[k] = z[T] = !1;
518
+ var we = typeof et == "object" && et && et.Object === Object && et, fr = typeof self == "object" && self && self.Object === Object && self, nt = we || fr || Function("return this")(), Te = r && !r.nodeType && r, Ae = Te && !0 && t && !t.nodeType && t, Yt = Ae && Ae.exports === Te, Vt = Yt && we.process, Ee = function() {
519
519
  try {
520
- return Kt && Kt.binding && Kt.binding("util");
520
+ return Vt && Vt.binding && Vt.binding("util");
521
521
  } catch {
522
522
  }
523
- }(), Vt = Ae && Ae.isTypedArray;
524
- function Ee(e, i) {
523
+ }(), Xt = Ee && Ee.isTypedArray;
524
+ function ke(e, a) {
525
525
  for (var s = -1, u = e == null ? 0 : e.length, A = 0, I = []; ++s < u; ) {
526
- var x = e[s];
527
- i(x, s, e) && (I[A++] = x);
526
+ var P = e[s];
527
+ a(P, s, e) && (I[A++] = P);
528
528
  }
529
529
  return I;
530
530
  }
531
- function Yt(e, i) {
532
- for (var s = -1, u = i.length, A = e.length; ++s < u; )
533
- e[A + s] = i[s];
531
+ function qt(e, a) {
532
+ for (var s = -1, u = a.length, A = e.length; ++s < u; )
533
+ e[A + s] = a[s];
534
534
  return e;
535
535
  }
536
- function ke(e, i) {
536
+ function Oe(e, a) {
537
537
  for (var s = -1, u = e == null ? 0 : e.length; ++s < u; )
538
- if (i(e[s], s, e))
538
+ if (a(e[s], s, e))
539
539
  return !0;
540
540
  return !1;
541
541
  }
542
- function cr(e, i) {
542
+ function lr(e, a) {
543
543
  for (var s = -1, u = Array(e); ++s < e; )
544
- u[s] = i(s);
544
+ u[s] = a(s);
545
545
  return u;
546
546
  }
547
- function ur(e) {
548
- return function(i) {
549
- return e(i);
547
+ function pr(e) {
548
+ return function(a) {
549
+ return e(a);
550
550
  };
551
551
  }
552
- function Dt(e, i) {
553
- return e.has(i);
552
+ function jt(e, a) {
553
+ return e.has(a);
554
554
  }
555
- function Xt(e, i) {
556
- return e == null ? void 0 : e[i];
555
+ function Jt(e, a) {
556
+ return e == null ? void 0 : e[a];
557
557
  }
558
- function Oe(e) {
559
- var i = -1, s = Array(e.size);
558
+ function xe(e) {
559
+ var a = -1, s = Array(e.size);
560
560
  return e.forEach(function(u, A) {
561
- s[++i] = [A, u];
561
+ s[++a] = [A, u];
562
562
  }), s;
563
563
  }
564
- function xe(e, i) {
564
+ function Me(e, a) {
565
565
  return function(s) {
566
- return e(i(s));
566
+ return e(a(s));
567
567
  };
568
568
  }
569
569
  function st(e) {
570
- var i = -1, s = Array(e.size);
570
+ var a = -1, s = Array(e.size);
571
571
  return e.forEach(function(u) {
572
- s[++i] = u;
572
+ s[++a] = u;
573
573
  }), s;
574
574
  }
575
- var Ct = Array.prototype, fr = Function.prototype, gt = Object.prototype, jt = nt["__core-js_shared__"], qt = fr.toString, Q = gt.hasOwnProperty, Me = function() {
576
- var e = /[^.]+$/.exec(jt && jt.keys && jt.keys.IE_PROTO || "");
575
+ var Ft = Array.prototype, dr = Function.prototype, _t = Object.prototype, Rt = nt["__core-js_shared__"], Zt = dr.toString, Q = _t.hasOwnProperty, Pe = function() {
576
+ var e = /[^.]+$/.exec(Rt && Rt.keys && Rt.keys.IE_PROTO || "");
577
577
  return e ? "Symbol(src)_1." + e : "";
578
- }(), Pe = gt.toString, lr = RegExp(
579
- "^" + qt.call(Q).replace(sr, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
580
- ), Jt = $t ? nt.Buffer : void 0, Ft = nt.Symbol, De = nt.Uint8Array, Rt = gt.propertyIsEnumerable, vt = Ct.splice, it = Ft ? Ft.toStringTag : void 0, zt = Object.getOwnPropertySymbols, Zt = Jt ? Jt.isBuffer : void 0, It = xe(Object.keys, Object), Qt = pt(nt, "DataView"), St = pt(nt, "Map"), te = pt(nt, "Promise"), ee = pt(nt, "Set"), re = pt(nt, "WeakMap"), mt = pt(Object, "create"), Ce = Y(Qt), lt = Y(St), pr = Y(te), dr = Y(ee), hr = Y(re), je = Ft ? Ft.prototype : void 0, ne = je ? je.valueOf : void 0;
581
- function B(e) {
582
- var i = -1, s = e == null ? 0 : e.length;
583
- for (this.clear(); ++i < s; ) {
584
- var u = e[i];
578
+ }(), De = _t.toString, hr = RegExp(
579
+ "^" + Zt.call(Q).replace(ur, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
580
+ ), Qt = Yt ? nt.Buffer : void 0, zt = nt.Symbol, Ce = nt.Uint8Array, Ht = _t.propertyIsEnumerable, vt = Ft.splice, it = zt ? zt.toStringTag : void 0, Nt = Object.getOwnPropertySymbols, te = Qt ? Qt.isBuffer : void 0, It = Me(Object.keys, Object), ee = pt(nt, "DataView"), St = pt(nt, "Map"), re = pt(nt, "Promise"), ne = pt(nt, "Set"), ie = pt(nt, "WeakMap"), mt = pt(Object, "create"), je = V(ee), lt = V(St), yr = V(re), mr = V(ne), br = V(ie), Fe = zt ? zt.prototype : void 0, ae = Fe ? Fe.valueOf : void 0;
581
+ function W(e) {
582
+ var a = -1, s = e == null ? 0 : e.length;
583
+ for (this.clear(); ++a < s; ) {
584
+ var u = e[a];
585
585
  this.set(u[0], u[1]);
586
586
  }
587
587
  }
588
- function yr() {
588
+ function gr() {
589
589
  this.__data__ = mt ? mt(null) : {}, this.size = 0;
590
590
  }
591
- function mr(e) {
592
- var i = this.has(e) && delete this.__data__[e];
593
- return this.size -= i ? 1 : 0, i;
591
+ function _r(e) {
592
+ var a = this.has(e) && delete this.__data__[e];
593
+ return this.size -= a ? 1 : 0, a;
594
594
  }
595
- function br(e) {
596
- var i = this.__data__;
595
+ function vr(e) {
596
+ var a = this.__data__;
597
597
  if (mt) {
598
- var s = i[e];
599
- return s === a ? void 0 : s;
598
+ var s = a[e];
599
+ return s === i ? void 0 : s;
600
600
  }
601
- return Q.call(i, e) ? i[e] : void 0;
601
+ return Q.call(a, e) ? a[e] : void 0;
602
602
  }
603
- function _r(e) {
604
- var i = this.__data__;
605
- return mt ? i[e] !== void 0 : Q.call(i, e);
603
+ function Ir(e) {
604
+ var a = this.__data__;
605
+ return mt ? a[e] !== void 0 : Q.call(a, e);
606
606
  }
607
- function gr(e, i) {
607
+ function Sr(e, a) {
608
608
  var s = this.__data__;
609
- return this.size += this.has(e) ? 0 : 1, s[e] = mt && i === void 0 ? a : i, this;
609
+ return this.size += this.has(e) ? 0 : 1, s[e] = mt && a === void 0 ? i : a, this;
610
610
  }
611
- B.prototype.clear = yr, B.prototype.delete = mr, B.prototype.get = br, B.prototype.has = _r, B.prototype.set = gr;
611
+ W.prototype.clear = gr, W.prototype.delete = _r, W.prototype.get = vr, W.prototype.has = Ir, W.prototype.set = Sr;
612
612
  function $(e) {
613
- var i = -1, s = e == null ? 0 : e.length;
614
- for (this.clear(); ++i < s; ) {
615
- var u = e[i];
613
+ var a = -1, s = e == null ? 0 : e.length;
614
+ for (this.clear(); ++a < s; ) {
615
+ var u = e[a];
616
616
  this.set(u[0], u[1]);
617
617
  }
618
618
  }
619
- function vr() {
619
+ function wr() {
620
620
  this.__data__ = [], this.size = 0;
621
621
  }
622
- function Ir(e) {
623
- var i = this.__data__, s = Lt(i, e);
622
+ function Tr(e) {
623
+ var a = this.__data__, s = Gt(a, e);
624
624
  if (s < 0)
625
625
  return !1;
626
- var u = i.length - 1;
627
- return s == u ? i.pop() : vt.call(i, s, 1), --this.size, !0;
626
+ var u = a.length - 1;
627
+ return s == u ? a.pop() : vt.call(a, s, 1), --this.size, !0;
628
628
  }
629
- function Sr(e) {
630
- var i = this.__data__, s = Lt(i, e);
631
- return s < 0 ? void 0 : i[s][1];
629
+ function Ar(e) {
630
+ var a = this.__data__, s = Gt(a, e);
631
+ return s < 0 ? void 0 : a[s][1];
632
632
  }
633
- function wr(e) {
634
- return Lt(this.__data__, e) > -1;
633
+ function Er(e) {
634
+ return Gt(this.__data__, e) > -1;
635
635
  }
636
- function Tr(e, i) {
637
- var s = this.__data__, u = Lt(s, e);
638
- return u < 0 ? (++this.size, s.push([e, i])) : s[u][1] = i, this;
636
+ function kr(e, a) {
637
+ var s = this.__data__, u = Gt(s, e);
638
+ return u < 0 ? (++this.size, s.push([e, a])) : s[u][1] = a, this;
639
639
  }
640
- $.prototype.clear = vr, $.prototype.delete = Ir, $.prototype.get = Sr, $.prototype.has = wr, $.prototype.set = Tr;
640
+ $.prototype.clear = wr, $.prototype.delete = Tr, $.prototype.get = Ar, $.prototype.has = Er, $.prototype.set = kr;
641
641
  function X(e) {
642
- var i = -1, s = e == null ? 0 : e.length;
643
- for (this.clear(); ++i < s; ) {
644
- var u = e[i];
642
+ var a = -1, s = e == null ? 0 : e.length;
643
+ for (this.clear(); ++a < s; ) {
644
+ var u = e[a];
645
645
  this.set(u[0], u[1]);
646
646
  }
647
647
  }
648
- function Ar() {
648
+ function Or() {
649
649
  this.size = 0, this.__data__ = {
650
- hash: new B(),
650
+ hash: new W(),
651
651
  map: new (St || $)(),
652
- string: new B()
652
+ string: new W()
653
653
  };
654
654
  }
655
- function Er(e) {
656
- var i = at(this, e).delete(e);
657
- return this.size -= i ? 1 : 0, i;
655
+ function xr(e) {
656
+ var a = at(this, e).delete(e);
657
+ return this.size -= a ? 1 : 0, a;
658
658
  }
659
- function kr(e) {
659
+ function Mr(e) {
660
660
  return at(this, e).get(e);
661
661
  }
662
- function Or(e) {
662
+ function Pr(e) {
663
663
  return at(this, e).has(e);
664
664
  }
665
- function xr(e, i) {
665
+ function Dr(e, a) {
666
666
  var s = at(this, e), u = s.size;
667
- return s.set(e, i), this.size += s.size == u ? 0 : 1, this;
667
+ return s.set(e, a), this.size += s.size == u ? 0 : 1, this;
668
668
  }
669
- X.prototype.clear = Ar, X.prototype.delete = Er, X.prototype.get = kr, X.prototype.has = Or, X.prototype.set = xr;
670
- function Nt(e) {
671
- var i = -1, s = e == null ? 0 : e.length;
672
- for (this.__data__ = new X(); ++i < s; )
673
- this.add(e[i]);
669
+ X.prototype.clear = Or, X.prototype.delete = xr, X.prototype.get = Mr, X.prototype.has = Pr, X.prototype.set = Dr;
670
+ function Ut(e) {
671
+ var a = -1, s = e == null ? 0 : e.length;
672
+ for (this.__data__ = new X(); ++a < s; )
673
+ this.add(e[a]);
674
674
  }
675
- function Fe(e) {
676
- return this.__data__.set(e, a), this;
675
+ function Re(e) {
676
+ return this.__data__.set(e, i), this;
677
677
  }
678
- function Ht(e) {
678
+ function Lt(e) {
679
679
  return this.__data__.has(e);
680
680
  }
681
- Nt.prototype.add = Nt.prototype.push = Fe, Nt.prototype.has = Ht;
681
+ Ut.prototype.add = Ut.prototype.push = Re, Ut.prototype.has = Lt;
682
682
  function ot(e) {
683
- var i = this.__data__ = new $(e);
684
- this.size = i.size;
683
+ var a = this.__data__ = new $(e);
684
+ this.size = a.size;
685
685
  }
686
- function ie() {
686
+ function se() {
687
687
  this.__data__ = new $(), this.size = 0;
688
688
  }
689
- function Mr(e) {
690
- var i = this.__data__, s = i.delete(e);
691
- return this.size = i.size, s;
689
+ function Cr(e) {
690
+ var a = this.__data__, s = a.delete(e);
691
+ return this.size = a.size, s;
692
692
  }
693
- function Pr(e) {
693
+ function jr(e) {
694
694
  return this.__data__.get(e);
695
695
  }
696
- function Dr(e) {
696
+ function Fr(e) {
697
697
  return this.__data__.has(e);
698
698
  }
699
- function Cr(e, i) {
699
+ function Rr(e, a) {
700
700
  var s = this.__data__;
701
701
  if (s instanceof $) {
702
702
  var u = s.__data__;
703
703
  if (!St || u.length < n - 1)
704
- return u.push([e, i]), this.size = ++s.size, this;
704
+ return u.push([e, a]), this.size = ++s.size, this;
705
705
  s = this.__data__ = new X(u);
706
706
  }
707
- return s.set(e, i), this.size = s.size, this;
708
- }
709
- ot.prototype.clear = ie, ot.prototype.delete = Mr, ot.prototype.get = Pr, ot.prototype.has = Dr, ot.prototype.set = Cr;
710
- function jr(e, i) {
711
- var s = Ut(e), u = !s && Le(e), A = !s && !u && Gt(e), I = !s && !u && !A && Be(e), x = s || u || A || I, O = x ? cr(e.length, String) : [], L = O.length;
712
- for (var P in e)
713
- Q.call(e, P) && !(x && // Safari 9 has enumerable `arguments.length` in strict mode.
714
- (P == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
715
- A && (P == "offset" || P == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
716
- I && (P == "buffer" || P == "byteLength" || P == "byteOffset") || // Skip index properties.
717
- Gr(P, L))) && O.push(P);
718
- return O;
719
- }
720
- function Lt(e, i) {
707
+ return s.set(e, a), this.size = s.size, this;
708
+ }
709
+ ot.prototype.clear = se, ot.prototype.delete = Cr, ot.prototype.get = jr, ot.prototype.has = Fr, ot.prototype.set = Rr;
710
+ function zr(e, a) {
711
+ var s = Wt(e), u = !s && Le(e), A = !s && !u && Bt(e), I = !s && !u && !A && Be(e), P = s || u || A || I, M = P ? lr(e.length, String) : [], U = M.length;
712
+ for (var C in e)
713
+ Q.call(e, C) && !(P && // Safari 9 has enumerable `arguments.length` in strict mode.
714
+ (C == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
715
+ A && (C == "offset" || C == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
716
+ I && (C == "buffer" || C == "byteLength" || C == "byteOffset") || // Skip index properties.
717
+ $r(C, U))) && M.push(C);
718
+ return M;
719
+ }
720
+ function Gt(e, a) {
721
721
  for (var s = e.length; s--; )
722
- if (He(e[s][0], i))
722
+ if (Ue(e[s][0], a))
723
723
  return s;
724
724
  return -1;
725
725
  }
726
- function ae(e, i, s) {
727
- var u = i(e);
728
- return Ut(e) ? u : Yt(u, s(e));
726
+ function oe(e, a, s) {
727
+ var u = a(e);
728
+ return Wt(e) ? u : qt(u, s(e));
729
729
  }
730
730
  function wt(e) {
731
- return e == null ? e === void 0 ? R : b : it && it in Object(e) ? dt(e) : Ne(e);
731
+ return e == null ? e === void 0 ? w : v : it && it in Object(e) ? dt(e) : Ne(e);
732
732
  }
733
- function Re(e) {
733
+ function ze(e) {
734
734
  return ut(e) && wt(e) == d;
735
735
  }
736
- function ze(e, i, s, u, A) {
737
- return e === i ? !0 : e == null || i == null || !ut(e) && !ut(i) ? e !== e && i !== i : Fr(e, i, s, u, ze, A);
736
+ function He(e, a, s, u, A) {
737
+ return e === a ? !0 : e == null || a == null || !ut(e) && !ut(a) ? e !== e && a !== a : Hr(e, a, s, u, He, A);
738
738
  }
739
- function Fr(e, i, s, u, A, I) {
740
- var x = Ut(e), O = Ut(i), L = x ? E : ct(e), P = O ? E : ct(i);
741
- L = L == d ? _ : L, P = P == d ? _ : P;
742
- var K = L == _, q = P == _, U = L == P;
743
- if (U && Gt(e)) {
744
- if (!Gt(i))
739
+ function Hr(e, a, s, u, A, I) {
740
+ var P = Wt(e), M = Wt(a), U = P ? E : ct(e), C = M ? E : ct(a);
741
+ U = U == d ? _ : U, C = C == d ? _ : C;
742
+ var K = U == _, q = C == _, L = U == C;
743
+ if (L && Bt(e)) {
744
+ if (!Bt(a))
745
745
  return !1;
746
- x = !0, K = !1;
746
+ P = !0, K = !1;
747
747
  }
748
- if (U && !K)
749
- return I || (I = new ot()), x || Be(e) ? se(e, i, s, u, A, I) : Hr(e, i, L, s, u, A, I);
748
+ if (L && !K)
749
+ return I || (I = new ot()), P || Be(e) ? ce(e, a, s, u, A, I) : Gr(e, a, U, s, u, A, I);
750
750
  if (!(s & o)) {
751
- var V = K && Q.call(e, "__wrapped__"), W = q && Q.call(i, "__wrapped__");
752
- if (V || W) {
753
- var bt = V ? e.value() : e, ht = W ? i.value() : i;
751
+ var Y = K && Q.call(e, "__wrapped__"), B = q && Q.call(a, "__wrapped__");
752
+ if (Y || B) {
753
+ var bt = Y ? e.value() : e, ht = B ? a.value() : a;
754
754
  return I || (I = new ot()), A(bt, ht, s, u, I);
755
755
  }
756
756
  }
757
- return U ? (I || (I = new ot()), Lr(e, i, s, u, A, I)) : !1;
757
+ return L ? (I || (I = new ot()), Wr(e, a, s, u, A, I)) : !1;
758
758
  }
759
- function Rr(e) {
760
- if (!Ge(e) || Wr(e))
759
+ function Nr(e) {
760
+ if (!We(e) || Yr(e))
761
761
  return !1;
762
- var i = Ue(e) ? lr : rt;
763
- return i.test(Y(e));
762
+ var a = Ge(e) ? hr : rt;
763
+ return a.test(V(e));
764
764
  }
765
- function zr(e) {
766
- return ut(e) && ce(e.length) && !!j[wt(e)];
765
+ function Ur(e) {
766
+ return ut(e) && fe(e.length) && !!z[wt(e)];
767
767
  }
768
- function Nr(e) {
769
- if (!$r(e))
768
+ function Lr(e) {
769
+ if (!Vr(e))
770
770
  return It(e);
771
- var i = [];
771
+ var a = [];
772
772
  for (var s in Object(e))
773
- Q.call(e, s) && s != "constructor" && i.push(s);
774
- return i;
773
+ Q.call(e, s) && s != "constructor" && a.push(s);
774
+ return a;
775
775
  }
776
- function se(e, i, s, u, A, I) {
777
- var x = s & o, O = e.length, L = i.length;
778
- if (O != L && !(x && L > O))
776
+ function ce(e, a, s, u, A, I) {
777
+ var P = s & o, M = e.length, U = a.length;
778
+ if (M != U && !(P && U > M))
779
779
  return !1;
780
- var P = I.get(e);
781
- if (P && I.get(i))
782
- return P == i;
783
- var K = -1, q = !0, U = s & c ? new Nt() : void 0;
784
- for (I.set(e, i), I.set(i, e); ++K < O; ) {
785
- var V = e[K], W = i[K];
780
+ var C = I.get(e);
781
+ if (C && I.get(a))
782
+ return C == a;
783
+ var K = -1, q = !0, L = s & c ? new Ut() : void 0;
784
+ for (I.set(e, a), I.set(a, e); ++K < M; ) {
785
+ var Y = e[K], B = a[K];
786
786
  if (u)
787
- var bt = x ? u(W, V, K, i, e, I) : u(V, W, K, e, i, I);
787
+ var bt = P ? u(B, Y, K, a, e, I) : u(Y, B, K, e, a, I);
788
788
  if (bt !== void 0) {
789
789
  if (bt)
790
790
  continue;
791
791
  q = !1;
792
792
  break;
793
793
  }
794
- if (U) {
795
- if (!ke(i, function(ht, At) {
796
- if (!Dt(U, At) && (V === ht || A(V, ht, s, u, I)))
797
- return U.push(At);
794
+ if (L) {
795
+ if (!Oe(a, function(ht, At) {
796
+ if (!jt(L, At) && (Y === ht || A(Y, ht, s, u, I)))
797
+ return L.push(At);
798
798
  })) {
799
799
  q = !1;
800
800
  break;
801
801
  }
802
- } else if (!(V === W || A(V, W, s, u, I))) {
802
+ } else if (!(Y === B || A(Y, B, s, u, I))) {
803
803
  q = !1;
804
804
  break;
805
805
  }
806
806
  }
807
- return I.delete(e), I.delete(i), q;
807
+ return I.delete(e), I.delete(a), q;
808
808
  }
809
- function Hr(e, i, s, u, A, I, x) {
809
+ function Gr(e, a, s, u, A, I, P) {
810
810
  switch (s) {
811
- case H:
812
- if (e.byteLength != i.byteLength || e.byteOffset != i.byteOffset)
813
- return !1;
814
- e = e.buffer, i = i.buffer;
815
- case T:
816
- return !(e.byteLength != i.byteLength || !I(new De(e), new De(i)));
817
- case w:
818
- case z:
819
- case v:
820
- return He(+e, +i);
821
- case h:
822
- return e.name == i.name && e.message == i.message;
823
811
  case F:
824
- case M:
825
- return e == i + "";
826
- case f:
827
- var O = Oe;
828
- case k:
829
- var L = u & o;
830
- if (O || (O = st), e.size != i.size && !L)
812
+ if (e.byteLength != a.byteLength || e.byteOffset != a.byteOffset)
831
813
  return !1;
832
- var P = x.get(e);
833
- if (P)
834
- return P == i;
835
- u |= c, x.set(e, i);
836
- var K = se(O(e), O(i), u, A, I, x);
837
- return x.delete(e), K;
814
+ e = e.buffer, a = a.buffer;
815
+ case x:
816
+ return !(e.byteLength != a.byteLength || !I(new Ce(e), new Ce(a)));
817
+ case S:
838
818
  case N:
839
- if (ne)
840
- return ne.call(e) == ne.call(i);
819
+ case g:
820
+ return Ue(+e, +a);
821
+ case y:
822
+ return e.name == a.name && e.message == a.message;
823
+ case H:
824
+ case k:
825
+ return e == a + "";
826
+ case f:
827
+ var M = xe;
828
+ case O:
829
+ var U = u & o;
830
+ if (M || (M = st), e.size != a.size && !U)
831
+ return !1;
832
+ var C = P.get(e);
833
+ if (C)
834
+ return C == a;
835
+ u |= c, P.set(e, a);
836
+ var K = ce(M(e), M(a), u, A, I, P);
837
+ return P.delete(e), K;
838
+ case D:
839
+ if (ae)
840
+ return ae.call(e) == ae.call(a);
841
841
  }
842
842
  return !1;
843
843
  }
844
- function Lr(e, i, s, u, A, I) {
845
- var x = s & o, O = Tt(e), L = O.length, P = Tt(i), K = P.length;
846
- if (L != K && !x)
844
+ function Wr(e, a, s, u, A, I) {
845
+ var P = s & o, M = Tt(e), U = M.length, C = Tt(a), K = C.length;
846
+ if (U != K && !P)
847
847
  return !1;
848
- for (var q = L; q--; ) {
849
- var U = O[q];
850
- if (!(x ? U in i : Q.call(i, U)))
848
+ for (var q = U; q--; ) {
849
+ var L = M[q];
850
+ if (!(P ? L in a : Q.call(a, L)))
851
851
  return !1;
852
852
  }
853
- var V = I.get(e);
854
- if (V && I.get(i))
855
- return V == i;
856
- var W = !0;
857
- I.set(e, i), I.set(i, e);
858
- for (var bt = x; ++q < L; ) {
859
- U = O[q];
860
- var ht = e[U], At = i[U];
853
+ var Y = I.get(e);
854
+ if (Y && I.get(a))
855
+ return Y == a;
856
+ var B = !0;
857
+ I.set(e, a), I.set(a, e);
858
+ for (var bt = P; ++q < U; ) {
859
+ L = M[q];
860
+ var ht = e[L], At = a[L];
861
861
  if (u)
862
- var Tn = x ? u(At, ht, U, i, e, I) : u(ht, At, U, e, i, I);
863
- if (!(Tn === void 0 ? ht === At || A(ht, At, s, u, I) : Tn)) {
864
- W = !1;
862
+ var wn = P ? u(At, ht, L, a, e, I) : u(ht, At, L, e, a, I);
863
+ if (!(wn === void 0 ? ht === At || A(ht, At, s, u, I) : wn)) {
864
+ B = !1;
865
865
  break;
866
866
  }
867
- bt || (bt = U == "constructor");
867
+ bt || (bt = L == "constructor");
868
868
  }
869
- if (W && !bt) {
870
- var We = e.constructor, $e = i.constructor;
871
- We != $e && "constructor" in e && "constructor" in i && !(typeof We == "function" && We instanceof We && typeof $e == "function" && $e instanceof $e) && (W = !1);
869
+ if (B && !bt) {
870
+ var $e = e.constructor, Ke = a.constructor;
871
+ $e != Ke && "constructor" in e && "constructor" in a && !(typeof $e == "function" && $e instanceof $e && typeof Ke == "function" && Ke instanceof Ke) && (B = !1);
872
872
  }
873
- return I.delete(e), I.delete(i), W;
873
+ return I.delete(e), I.delete(a), B;
874
874
  }
875
875
  function Tt(e) {
876
- return ae(e, ue, Ur);
876
+ return oe(e, le, Br);
877
877
  }
878
- function at(e, i) {
878
+ function at(e, a) {
879
879
  var s = e.__data__;
880
- return Br(i) ? s[typeof i == "string" ? "string" : "hash"] : s.map;
880
+ return Kr(a) ? s[typeof a == "string" ? "string" : "hash"] : s.map;
881
881
  }
882
- function pt(e, i) {
883
- var s = Xt(e, i);
884
- return Rr(s) ? s : void 0;
882
+ function pt(e, a) {
883
+ var s = Jt(e, a);
884
+ return Nr(s) ? s : void 0;
885
885
  }
886
886
  function dt(e) {
887
- var i = Q.call(e, it), s = e[it];
887
+ var a = Q.call(e, it), s = e[it];
888
888
  try {
889
889
  e[it] = void 0;
890
890
  var u = !0;
891
891
  } catch {
892
892
  }
893
- var A = Pe.call(e);
894
- return u && (i ? e[it] = s : delete e[it]), A;
893
+ var A = De.call(e);
894
+ return u && (a ? e[it] = s : delete e[it]), A;
895
895
  }
896
- var Ur = zt ? function(e) {
897
- return e == null ? [] : (e = Object(e), Ee(zt(e), function(i) {
898
- return Rt.call(e, i);
896
+ var Br = Nt ? function(e) {
897
+ return e == null ? [] : (e = Object(e), ke(Nt(e), function(a) {
898
+ return Ht.call(e, a);
899
899
  }));
900
- } : Vr, ct = wt;
901
- (Qt && ct(new Qt(new ArrayBuffer(1))) != H || St && ct(new St()) != f || te && ct(te.resolve()) != m || ee && ct(new ee()) != k || re && ct(new re()) != S) && (ct = function(e) {
902
- var i = wt(e), s = i == _ ? e.constructor : void 0, u = s ? Y(s) : "";
900
+ } : qr, ct = wt;
901
+ (ee && ct(new ee(new ArrayBuffer(1))) != F || St && ct(new St()) != f || re && ct(re.resolve()) != b || ne && ct(new ne()) != O || ie && ct(new ie()) != T) && (ct = function(e) {
902
+ var a = wt(e), s = a == _ ? e.constructor : void 0, u = s ? V(s) : "";
903
903
  if (u)
904
904
  switch (u) {
905
- case Ce:
906
- return H;
905
+ case je:
906
+ return F;
907
907
  case lt:
908
908
  return f;
909
- case pr:
910
- return m;
911
- case dr:
912
- return k;
913
- case hr:
914
- return S;
909
+ case yr:
910
+ return b;
911
+ case mr:
912
+ return O;
913
+ case br:
914
+ return T;
915
915
  }
916
- return i;
916
+ return a;
917
917
  });
918
- function Gr(e, i) {
919
- return i = i ?? l, !!i && (typeof e == "number" || Ie.test(e)) && e > -1 && e % 1 == 0 && e < i;
918
+ function $r(e, a) {
919
+ return a = a ?? l, !!a && (typeof e == "number" || Se.test(e)) && e > -1 && e % 1 == 0 && e < a;
920
920
  }
921
- function Br(e) {
922
- var i = typeof e;
923
- return i == "string" || i == "number" || i == "symbol" || i == "boolean" ? e !== "__proto__" : e === null;
921
+ function Kr(e) {
922
+ var a = typeof e;
923
+ return a == "string" || a == "number" || a == "symbol" || a == "boolean" ? e !== "__proto__" : e === null;
924
924
  }
925
- function Wr(e) {
926
- return !!Me && Me in e;
925
+ function Yr(e) {
926
+ return !!Pe && Pe in e;
927
927
  }
928
- function $r(e) {
929
- var i = e && e.constructor, s = typeof i == "function" && i.prototype || gt;
928
+ function Vr(e) {
929
+ var a = e && e.constructor, s = typeof a == "function" && a.prototype || _t;
930
930
  return e === s;
931
931
  }
932
932
  function Ne(e) {
933
- return Pe.call(e);
933
+ return De.call(e);
934
934
  }
935
- function Y(e) {
935
+ function V(e) {
936
936
  if (e != null) {
937
937
  try {
938
- return qt.call(e);
938
+ return Zt.call(e);
939
939
  } catch {
940
940
  }
941
941
  try {
@@ -945,445 +945,445 @@ Ye.exports;
945
945
  }
946
946
  return "";
947
947
  }
948
- function He(e, i) {
949
- return e === i || e !== e && i !== i;
948
+ function Ue(e, a) {
949
+ return e === a || e !== e && a !== a;
950
950
  }
951
- var Le = Re(/* @__PURE__ */ function() {
951
+ var Le = ze(/* @__PURE__ */ function() {
952
952
  return arguments;
953
- }()) ? Re : function(e) {
954
- return ut(e) && Q.call(e, "callee") && !Rt.call(e, "callee");
955
- }, Ut = Array.isArray;
956
- function oe(e) {
957
- return e != null && ce(e.length) && !Ue(e);
953
+ }()) ? ze : function(e) {
954
+ return ut(e) && Q.call(e, "callee") && !Ht.call(e, "callee");
955
+ }, Wt = Array.isArray;
956
+ function ue(e) {
957
+ return e != null && fe(e.length) && !Ge(e);
958
958
  }
959
- var Gt = Zt || Yr;
960
- function Kr(e, i) {
961
- return ze(e, i);
959
+ var Bt = te || Jr;
960
+ function Xr(e, a) {
961
+ return He(e, a);
962
962
  }
963
- function Ue(e) {
964
- if (!Ge(e))
963
+ function Ge(e) {
964
+ if (!We(e))
965
965
  return !1;
966
- var i = wt(e);
967
- return i == p || i == g || i == D || i == y;
966
+ var a = wt(e);
967
+ return a == p || a == h || a == j || a == m;
968
968
  }
969
- function ce(e) {
969
+ function fe(e) {
970
970
  return typeof e == "number" && e > -1 && e % 1 == 0 && e <= l;
971
971
  }
972
- function Ge(e) {
973
- var i = typeof e;
974
- return e != null && (i == "object" || i == "function");
972
+ function We(e) {
973
+ var a = typeof e;
974
+ return e != null && (a == "object" || a == "function");
975
975
  }
976
976
  function ut(e) {
977
977
  return e != null && typeof e == "object";
978
978
  }
979
- var Be = Vt ? ur(Vt) : zr;
980
- function ue(e) {
981
- return oe(e) ? jr(e) : Nr(e);
979
+ var Be = Xt ? pr(Xt) : Ur;
980
+ function le(e) {
981
+ return ue(e) ? zr(e) : Lr(e);
982
982
  }
983
- function Vr() {
983
+ function qr() {
984
984
  return [];
985
985
  }
986
- function Yr() {
986
+ function Jr() {
987
987
  return !1;
988
988
  }
989
- t.exports = Kr;
990
- })(Ye, Ye.exports);
991
- var zi = Ye.exports;
992
- const ft = /* @__PURE__ */ mn(zi);
993
- var Xe = { exports: {} };
994
- Xe.exports;
989
+ t.exports = Xr;
990
+ })(Xe, Xe.exports);
991
+ var Hi = Xe.exports;
992
+ const ft = /* @__PURE__ */ bn(Hi);
993
+ var qe = { exports: {} };
994
+ qe.exports;
995
995
  (function(t, r) {
996
- var n = 200, a = "__lodash_hash_undefined__", o = 9007199254740991, c = "[object Arguments]", l = "[object Array]", d = "[object Boolean]", E = "[object Date]", D = "[object Error]", w = "[object Function]", z = "[object GeneratorFunction]", h = "[object Map]", p = "[object Number]", g = "[object Object]", f = "[object Promise]", v = "[object RegExp]", b = "[object Set]", _ = "[object String]", m = "[object Symbol]", y = "[object WeakMap]", F = "[object ArrayBuffer]", k = "[object DataView]", M = "[object Float32Array]", N = "[object Float64Array]", R = "[object Int8Array]", S = "[object Int16Array]", T = "[object Int32Array]", H = "[object Uint8Array]", _e = "[object Uint8ClampedArray]", ge = "[object Uint16Array]", ve = "[object Uint32Array]", er = /[\\^$.*+?()[\]{}|]/g, rr = /\w*$/, nr = /^\[object .+?Constructor\]$/, ir = /^(?:0|[1-9]\d*)$/, C = {};
997
- C[c] = C[l] = C[F] = C[k] = C[d] = C[E] = C[M] = C[N] = C[R] = C[S] = C[T] = C[h] = C[p] = C[g] = C[v] = C[b] = C[_] = C[m] = C[H] = C[_e] = C[ge] = C[ve] = !0, C[D] = C[w] = C[y] = !1;
998
- var ar = typeof et == "object" && et && et.Object === Object && et, sr = typeof self == "object" && self && self.Object === Object && self, rt = ar || sr || Function("return this")(), Ie = r && !r.nodeType && r, j = Ie && !0 && t && !t.nodeType && t, Se = j && j.exports === Ie;
999
- function or(e, i) {
1000
- return e.set(i[0], i[1]), e;
996
+ var n = 200, i = "__lodash_hash_undefined__", o = 9007199254740991, c = "[object Arguments]", l = "[object Array]", d = "[object Boolean]", E = "[object Date]", j = "[object Error]", S = "[object Function]", N = "[object GeneratorFunction]", y = "[object Map]", p = "[object Number]", h = "[object Object]", f = "[object Promise]", g = "[object RegExp]", v = "[object Set]", _ = "[object String]", b = "[object Symbol]", m = "[object WeakMap]", H = "[object ArrayBuffer]", O = "[object DataView]", k = "[object Float32Array]", D = "[object Float64Array]", w = "[object Int8Array]", T = "[object Int16Array]", x = "[object Int32Array]", F = "[object Uint8Array]", Dt = "[object Uint8ClampedArray]", Ct = "[object Uint16Array]", Ie = "[object Uint32Array]", ir = /[\\^$.*+?()[\]{}|]/g, ar = /\w*$/, sr = /^\[object .+?Constructor\]$/, or = /^(?:0|[1-9]\d*)$/, R = {};
997
+ R[c] = R[l] = R[H] = R[O] = R[d] = R[E] = R[k] = R[D] = R[w] = R[T] = R[x] = R[y] = R[p] = R[h] = R[g] = R[v] = R[_] = R[b] = R[F] = R[Dt] = R[Ct] = R[Ie] = !0, R[j] = R[S] = R[m] = !1;
998
+ var cr = typeof et == "object" && et && et.Object === Object && et, ur = typeof self == "object" && self && self.Object === Object && self, rt = cr || ur || Function("return this")(), Se = r && !r.nodeType && r, z = Se && !0 && t && !t.nodeType && t, we = z && z.exports === Se;
999
+ function fr(e, a) {
1000
+ return e.set(a[0], a[1]), e;
1001
1001
  }
1002
- function nt(e, i) {
1003
- return e.add(i), e;
1002
+ function nt(e, a) {
1003
+ return e.add(a), e;
1004
1004
  }
1005
- function we(e, i) {
1006
- for (var s = -1, u = e ? e.length : 0; ++s < u && i(e[s], s, e) !== !1; )
1005
+ function Te(e, a) {
1006
+ for (var s = -1, u = e ? e.length : 0; ++s < u && a(e[s], s, e) !== !1; )
1007
1007
  ;
1008
1008
  return e;
1009
1009
  }
1010
- function Te(e, i) {
1011
- for (var s = -1, u = i.length, A = e.length; ++s < u; )
1012
- e[A + s] = i[s];
1010
+ function Ae(e, a) {
1011
+ for (var s = -1, u = a.length, A = e.length; ++s < u; )
1012
+ e[A + s] = a[s];
1013
1013
  return e;
1014
1014
  }
1015
- function $t(e, i, s, u) {
1015
+ function Yt(e, a, s, u) {
1016
1016
  for (var A = -1, I = e ? e.length : 0; ++A < I; )
1017
- s = i(s, e[A], A, e);
1017
+ s = a(s, e[A], A, e);
1018
1018
  return s;
1019
1019
  }
1020
- function Kt(e, i) {
1020
+ function Vt(e, a) {
1021
1021
  for (var s = -1, u = Array(e); ++s < e; )
1022
- u[s] = i(s);
1022
+ u[s] = a(s);
1023
1023
  return u;
1024
1024
  }
1025
- function Ae(e, i) {
1026
- return e == null ? void 0 : e[i];
1025
+ function Ee(e, a) {
1026
+ return e == null ? void 0 : e[a];
1027
1027
  }
1028
- function Vt(e) {
1029
- var i = !1;
1028
+ function Xt(e) {
1029
+ var a = !1;
1030
1030
  if (e != null && typeof e.toString != "function")
1031
1031
  try {
1032
- i = !!(e + "");
1032
+ a = !!(e + "");
1033
1033
  } catch {
1034
1034
  }
1035
- return i;
1035
+ return a;
1036
1036
  }
1037
- function Ee(e) {
1038
- var i = -1, s = Array(e.size);
1037
+ function ke(e) {
1038
+ var a = -1, s = Array(e.size);
1039
1039
  return e.forEach(function(u, A) {
1040
- s[++i] = [A, u];
1040
+ s[++a] = [A, u];
1041
1041
  }), s;
1042
1042
  }
1043
- function Yt(e, i) {
1043
+ function qt(e, a) {
1044
1044
  return function(s) {
1045
- return e(i(s));
1045
+ return e(a(s));
1046
1046
  };
1047
1047
  }
1048
- function ke(e) {
1049
- var i = -1, s = Array(e.size);
1048
+ function Oe(e) {
1049
+ var a = -1, s = Array(e.size);
1050
1050
  return e.forEach(function(u) {
1051
- s[++i] = u;
1051
+ s[++a] = u;
1052
1052
  }), s;
1053
1053
  }
1054
- var cr = Array.prototype, ur = Function.prototype, Dt = Object.prototype, Xt = rt["__core-js_shared__"], Oe = function() {
1055
- var e = /[^.]+$/.exec(Xt && Xt.keys && Xt.keys.IE_PROTO || "");
1054
+ var lr = Array.prototype, pr = Function.prototype, jt = Object.prototype, Jt = rt["__core-js_shared__"], xe = function() {
1055
+ var e = /[^.]+$/.exec(Jt && Jt.keys && Jt.keys.IE_PROTO || "");
1056
1056
  return e ? "Symbol(src)_1." + e : "";
1057
- }(), xe = ur.toString, st = Dt.hasOwnProperty, Ct = Dt.toString, fr = RegExp(
1058
- "^" + xe.call(st).replace(er, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
1059
- ), gt = Se ? rt.Buffer : void 0, jt = rt.Symbol, qt = rt.Uint8Array, Q = Yt(Object.getPrototypeOf, Object), Me = Object.create, Pe = Dt.propertyIsEnumerable, lr = cr.splice, Jt = Object.getOwnPropertySymbols, Ft = gt ? gt.isBuffer : void 0, De = Yt(Object.keys, Object), Rt = at(rt, "DataView"), vt = at(rt, "Map"), it = at(rt, "Promise"), zt = at(rt, "Set"), Zt = at(rt, "WeakMap"), It = at(Object, "create"), Qt = Y(Rt), St = Y(vt), te = Y(it), ee = Y(zt), re = Y(Zt), mt = jt ? jt.prototype : void 0, Ce = mt ? mt.valueOf : void 0;
1057
+ }(), Me = pr.toString, st = jt.hasOwnProperty, Ft = jt.toString, dr = RegExp(
1058
+ "^" + Me.call(st).replace(ir, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
1059
+ ), _t = we ? rt.Buffer : void 0, Rt = rt.Symbol, Zt = rt.Uint8Array, Q = qt(Object.getPrototypeOf, Object), Pe = Object.create, De = jt.propertyIsEnumerable, hr = lr.splice, Qt = Object.getOwnPropertySymbols, zt = _t ? _t.isBuffer : void 0, Ce = qt(Object.keys, Object), Ht = at(rt, "DataView"), vt = at(rt, "Map"), it = at(rt, "Promise"), Nt = at(rt, "Set"), te = at(rt, "WeakMap"), It = at(Object, "create"), ee = V(Ht), St = V(vt), re = V(it), ne = V(Nt), ie = V(te), mt = Rt ? Rt.prototype : void 0, je = mt ? mt.valueOf : void 0;
1060
1060
  function lt(e) {
1061
- var i = -1, s = e ? e.length : 0;
1062
- for (this.clear(); ++i < s; ) {
1063
- var u = e[i];
1061
+ var a = -1, s = e ? e.length : 0;
1062
+ for (this.clear(); ++a < s; ) {
1063
+ var u = e[a];
1064
1064
  this.set(u[0], u[1]);
1065
1065
  }
1066
1066
  }
1067
- function pr() {
1067
+ function yr() {
1068
1068
  this.__data__ = It ? It(null) : {};
1069
1069
  }
1070
- function dr(e) {
1070
+ function mr(e) {
1071
1071
  return this.has(e) && delete this.__data__[e];
1072
1072
  }
1073
- function hr(e) {
1074
- var i = this.__data__;
1073
+ function br(e) {
1074
+ var a = this.__data__;
1075
1075
  if (It) {
1076
- var s = i[e];
1077
- return s === a ? void 0 : s;
1076
+ var s = a[e];
1077
+ return s === i ? void 0 : s;
1078
1078
  }
1079
- return st.call(i, e) ? i[e] : void 0;
1079
+ return st.call(a, e) ? a[e] : void 0;
1080
1080
  }
1081
- function je(e) {
1082
- var i = this.__data__;
1083
- return It ? i[e] !== void 0 : st.call(i, e);
1081
+ function Fe(e) {
1082
+ var a = this.__data__;
1083
+ return It ? a[e] !== void 0 : st.call(a, e);
1084
1084
  }
1085
- function ne(e, i) {
1085
+ function ae(e, a) {
1086
1086
  var s = this.__data__;
1087
- return s[e] = It && i === void 0 ? a : i, this;
1087
+ return s[e] = It && a === void 0 ? i : a, this;
1088
1088
  }
1089
- lt.prototype.clear = pr, lt.prototype.delete = dr, lt.prototype.get = hr, lt.prototype.has = je, lt.prototype.set = ne;
1090
- function B(e) {
1091
- var i = -1, s = e ? e.length : 0;
1092
- for (this.clear(); ++i < s; ) {
1093
- var u = e[i];
1089
+ lt.prototype.clear = yr, lt.prototype.delete = mr, lt.prototype.get = br, lt.prototype.has = Fe, lt.prototype.set = ae;
1090
+ function W(e) {
1091
+ var a = -1, s = e ? e.length : 0;
1092
+ for (this.clear(); ++a < s; ) {
1093
+ var u = e[a];
1094
1094
  this.set(u[0], u[1]);
1095
1095
  }
1096
1096
  }
1097
- function yr() {
1097
+ function gr() {
1098
1098
  this.__data__ = [];
1099
1099
  }
1100
- function mr(e) {
1101
- var i = this.__data__, s = Ht(i, e);
1100
+ function _r(e) {
1101
+ var a = this.__data__, s = Lt(a, e);
1102
1102
  if (s < 0)
1103
1103
  return !1;
1104
- var u = i.length - 1;
1105
- return s == u ? i.pop() : lr.call(i, s, 1), !0;
1104
+ var u = a.length - 1;
1105
+ return s == u ? a.pop() : hr.call(a, s, 1), !0;
1106
1106
  }
1107
- function br(e) {
1108
- var i = this.__data__, s = Ht(i, e);
1109
- return s < 0 ? void 0 : i[s][1];
1107
+ function vr(e) {
1108
+ var a = this.__data__, s = Lt(a, e);
1109
+ return s < 0 ? void 0 : a[s][1];
1110
1110
  }
1111
- function _r(e) {
1112
- return Ht(this.__data__, e) > -1;
1111
+ function Ir(e) {
1112
+ return Lt(this.__data__, e) > -1;
1113
1113
  }
1114
- function gr(e, i) {
1115
- var s = this.__data__, u = Ht(s, e);
1116
- return u < 0 ? s.push([e, i]) : s[u][1] = i, this;
1114
+ function Sr(e, a) {
1115
+ var s = this.__data__, u = Lt(s, e);
1116
+ return u < 0 ? s.push([e, a]) : s[u][1] = a, this;
1117
1117
  }
1118
- B.prototype.clear = yr, B.prototype.delete = mr, B.prototype.get = br, B.prototype.has = _r, B.prototype.set = gr;
1118
+ W.prototype.clear = gr, W.prototype.delete = _r, W.prototype.get = vr, W.prototype.has = Ir, W.prototype.set = Sr;
1119
1119
  function $(e) {
1120
- var i = -1, s = e ? e.length : 0;
1121
- for (this.clear(); ++i < s; ) {
1122
- var u = e[i];
1120
+ var a = -1, s = e ? e.length : 0;
1121
+ for (this.clear(); ++a < s; ) {
1122
+ var u = e[a];
1123
1123
  this.set(u[0], u[1]);
1124
1124
  }
1125
1125
  }
1126
- function vr() {
1126
+ function wr() {
1127
1127
  this.__data__ = {
1128
1128
  hash: new lt(),
1129
- map: new (vt || B)(),
1129
+ map: new (vt || W)(),
1130
1130
  string: new lt()
1131
1131
  };
1132
1132
  }
1133
- function Ir(e) {
1133
+ function Tr(e) {
1134
1134
  return Tt(this, e).delete(e);
1135
1135
  }
1136
- function Sr(e) {
1136
+ function Ar(e) {
1137
1137
  return Tt(this, e).get(e);
1138
1138
  }
1139
- function wr(e) {
1139
+ function Er(e) {
1140
1140
  return Tt(this, e).has(e);
1141
1141
  }
1142
- function Tr(e, i) {
1143
- return Tt(this, e).set(e, i), this;
1142
+ function kr(e, a) {
1143
+ return Tt(this, e).set(e, a), this;
1144
1144
  }
1145
- $.prototype.clear = vr, $.prototype.delete = Ir, $.prototype.get = Sr, $.prototype.has = wr, $.prototype.set = Tr;
1145
+ $.prototype.clear = wr, $.prototype.delete = Tr, $.prototype.get = Ar, $.prototype.has = Er, $.prototype.set = kr;
1146
1146
  function X(e) {
1147
- this.__data__ = new B(e);
1147
+ this.__data__ = new W(e);
1148
1148
  }
1149
- function Ar() {
1150
- this.__data__ = new B();
1149
+ function Or() {
1150
+ this.__data__ = new W();
1151
1151
  }
1152
- function Er(e) {
1152
+ function xr(e) {
1153
1153
  return this.__data__.delete(e);
1154
1154
  }
1155
- function kr(e) {
1155
+ function Mr(e) {
1156
1156
  return this.__data__.get(e);
1157
1157
  }
1158
- function Or(e) {
1158
+ function Pr(e) {
1159
1159
  return this.__data__.has(e);
1160
1160
  }
1161
- function xr(e, i) {
1161
+ function Dr(e, a) {
1162
1162
  var s = this.__data__;
1163
- if (s instanceof B) {
1163
+ if (s instanceof W) {
1164
1164
  var u = s.__data__;
1165
1165
  if (!vt || u.length < n - 1)
1166
- return u.push([e, i]), this;
1166
+ return u.push([e, a]), this;
1167
1167
  s = this.__data__ = new $(u);
1168
1168
  }
1169
- return s.set(e, i), this;
1169
+ return s.set(e, a), this;
1170
1170
  }
1171
- X.prototype.clear = Ar, X.prototype.delete = Er, X.prototype.get = kr, X.prototype.has = Or, X.prototype.set = xr;
1172
- function Nt(e, i) {
1173
- var s = oe(e) || Ut(e) ? Kt(e.length, String) : [], u = s.length, A = !!u;
1171
+ X.prototype.clear = Or, X.prototype.delete = xr, X.prototype.get = Mr, X.prototype.has = Pr, X.prototype.set = Dr;
1172
+ function Ut(e, a) {
1173
+ var s = ue(e) || Wt(e) ? Vt(e.length, String) : [], u = s.length, A = !!u;
1174
1174
  for (var I in e)
1175
- st.call(e, I) && !(A && (I == "length" || Br(I, u))) && s.push(I);
1175
+ st.call(e, I) && !(A && (I == "length" || Kr(I, u))) && s.push(I);
1176
1176
  return s;
1177
1177
  }
1178
- function Fe(e, i, s) {
1179
- var u = e[i];
1180
- (!(st.call(e, i) && Le(u, s)) || s === void 0 && !(i in e)) && (e[i] = s);
1178
+ function Re(e, a, s) {
1179
+ var u = e[a];
1180
+ (!(st.call(e, a) && Le(u, s)) || s === void 0 && !(a in e)) && (e[a] = s);
1181
1181
  }
1182
- function Ht(e, i) {
1182
+ function Lt(e, a) {
1183
1183
  for (var s = e.length; s--; )
1184
- if (Le(e[s][0], i))
1184
+ if (Le(e[s][0], a))
1185
1185
  return s;
1186
1186
  return -1;
1187
1187
  }
1188
- function ot(e, i) {
1189
- return e && se(i, ue(i), e);
1188
+ function ot(e, a) {
1189
+ return e && ce(a, le(a), e);
1190
1190
  }
1191
- function ie(e, i, s, u, A, I, x) {
1192
- var O;
1193
- if (u && (O = I ? u(e, A, I, x) : u(e)), O !== void 0)
1194
- return O;
1191
+ function se(e, a, s, u, A, I, P) {
1192
+ var M;
1193
+ if (u && (M = I ? u(e, A, I, P) : u(e)), M !== void 0)
1194
+ return M;
1195
1195
  if (!ut(e))
1196
1196
  return e;
1197
- var L = oe(e);
1198
- if (L) {
1199
- if (O = Ur(e), !i)
1200
- return Nr(e, O);
1197
+ var U = ue(e);
1198
+ if (U) {
1199
+ if (M = Br(e), !a)
1200
+ return Lr(e, M);
1201
1201
  } else {
1202
- var P = dt(e), K = P == w || P == z;
1203
- if (Ue(e))
1204
- return Lt(e, i);
1205
- if (P == g || P == c || K && !I) {
1206
- if (Vt(e))
1202
+ var C = dt(e), K = C == S || C == N;
1203
+ if (Ge(e))
1204
+ return Gt(e, a);
1205
+ if (C == h || C == c || K && !I) {
1206
+ if (Xt(e))
1207
1207
  return I ? e : {};
1208
- if (O = ct(K ? {} : e), !i)
1209
- return Hr(e, ot(O, e));
1208
+ if (M = ct(K ? {} : e), !a)
1209
+ return Gr(e, ot(M, e));
1210
1210
  } else {
1211
- if (!C[P])
1211
+ if (!R[C])
1212
1212
  return I ? e : {};
1213
- O = Gr(e, P, ie, i);
1213
+ M = $r(e, C, se, a);
1214
1214
  }
1215
1215
  }
1216
- x || (x = new X());
1217
- var q = x.get(e);
1216
+ P || (P = new X());
1217
+ var q = P.get(e);
1218
1218
  if (q)
1219
1219
  return q;
1220
- if (x.set(e, O), !L)
1221
- var U = s ? Lr(e) : ue(e);
1222
- return we(U || e, function(V, W) {
1223
- U && (W = V, V = e[W]), Fe(O, W, ie(V, i, s, u, W, e, x));
1224
- }), O;
1220
+ if (P.set(e, M), !U)
1221
+ var L = s ? Wr(e) : le(e);
1222
+ return Te(L || e, function(Y, B) {
1223
+ L && (B = Y, Y = e[B]), Re(M, B, se(Y, a, s, u, B, e, P));
1224
+ }), M;
1225
1225
  }
1226
- function Mr(e) {
1227
- return ut(e) ? Me(e) : {};
1226
+ function Cr(e) {
1227
+ return ut(e) ? Pe(e) : {};
1228
1228
  }
1229
- function Pr(e, i, s) {
1230
- var u = i(e);
1231
- return oe(e) ? u : Te(u, s(e));
1229
+ function jr(e, a, s) {
1230
+ var u = a(e);
1231
+ return ue(e) ? u : Ae(u, s(e));
1232
1232
  }
1233
- function Dr(e) {
1234
- return Ct.call(e);
1233
+ function Fr(e) {
1234
+ return Ft.call(e);
1235
1235
  }
1236
- function Cr(e) {
1237
- if (!ut(e) || $r(e))
1236
+ function Rr(e) {
1237
+ if (!ut(e) || Vr(e))
1238
1238
  return !1;
1239
- var i = ce(e) || Vt(e) ? fr : nr;
1240
- return i.test(Y(e));
1239
+ var a = fe(e) || Xt(e) ? dr : sr;
1240
+ return a.test(V(e));
1241
1241
  }
1242
- function jr(e) {
1242
+ function zr(e) {
1243
1243
  if (!Ne(e))
1244
- return De(e);
1245
- var i = [];
1244
+ return Ce(e);
1245
+ var a = [];
1246
1246
  for (var s in Object(e))
1247
- st.call(e, s) && s != "constructor" && i.push(s);
1248
- return i;
1247
+ st.call(e, s) && s != "constructor" && a.push(s);
1248
+ return a;
1249
1249
  }
1250
- function Lt(e, i) {
1251
- if (i)
1250
+ function Gt(e, a) {
1251
+ if (a)
1252
1252
  return e.slice();
1253
1253
  var s = new e.constructor(e.length);
1254
1254
  return e.copy(s), s;
1255
1255
  }
1256
- function ae(e) {
1257
- var i = new e.constructor(e.byteLength);
1258
- return new qt(i).set(new qt(e)), i;
1256
+ function oe(e) {
1257
+ var a = new e.constructor(e.byteLength);
1258
+ return new Zt(a).set(new Zt(e)), a;
1259
1259
  }
1260
- function wt(e, i) {
1261
- var s = i ? ae(e.buffer) : e.buffer;
1260
+ function wt(e, a) {
1261
+ var s = a ? oe(e.buffer) : e.buffer;
1262
1262
  return new e.constructor(s, e.byteOffset, e.byteLength);
1263
1263
  }
1264
- function Re(e, i, s) {
1265
- var u = i ? s(Ee(e), !0) : Ee(e);
1266
- return $t(u, or, new e.constructor());
1264
+ function ze(e, a, s) {
1265
+ var u = a ? s(ke(e), !0) : ke(e);
1266
+ return Yt(u, fr, new e.constructor());
1267
1267
  }
1268
- function ze(e) {
1269
- var i = new e.constructor(e.source, rr.exec(e));
1270
- return i.lastIndex = e.lastIndex, i;
1268
+ function He(e) {
1269
+ var a = new e.constructor(e.source, ar.exec(e));
1270
+ return a.lastIndex = e.lastIndex, a;
1271
1271
  }
1272
- function Fr(e, i, s) {
1273
- var u = i ? s(ke(e), !0) : ke(e);
1274
- return $t(u, nt, new e.constructor());
1272
+ function Hr(e, a, s) {
1273
+ var u = a ? s(Oe(e), !0) : Oe(e);
1274
+ return Yt(u, nt, new e.constructor());
1275
1275
  }
1276
- function Rr(e) {
1277
- return Ce ? Object(Ce.call(e)) : {};
1276
+ function Nr(e) {
1277
+ return je ? Object(je.call(e)) : {};
1278
1278
  }
1279
- function zr(e, i) {
1280
- var s = i ? ae(e.buffer) : e.buffer;
1279
+ function Ur(e, a) {
1280
+ var s = a ? oe(e.buffer) : e.buffer;
1281
1281
  return new e.constructor(s, e.byteOffset, e.length);
1282
1282
  }
1283
- function Nr(e, i) {
1283
+ function Lr(e, a) {
1284
1284
  var s = -1, u = e.length;
1285
- for (i || (i = Array(u)); ++s < u; )
1286
- i[s] = e[s];
1287
- return i;
1285
+ for (a || (a = Array(u)); ++s < u; )
1286
+ a[s] = e[s];
1287
+ return a;
1288
1288
  }
1289
- function se(e, i, s, u) {
1289
+ function ce(e, a, s, u) {
1290
1290
  s || (s = {});
1291
- for (var A = -1, I = i.length; ++A < I; ) {
1292
- var x = i[A], O = void 0;
1293
- Fe(s, x, O === void 0 ? e[x] : O);
1291
+ for (var A = -1, I = a.length; ++A < I; ) {
1292
+ var P = a[A], M = void 0;
1293
+ Re(s, P, M === void 0 ? e[P] : M);
1294
1294
  }
1295
1295
  return s;
1296
1296
  }
1297
- function Hr(e, i) {
1298
- return se(e, pt(e), i);
1297
+ function Gr(e, a) {
1298
+ return ce(e, pt(e), a);
1299
1299
  }
1300
- function Lr(e) {
1301
- return Pr(e, ue, pt);
1300
+ function Wr(e) {
1301
+ return jr(e, le, pt);
1302
1302
  }
1303
- function Tt(e, i) {
1303
+ function Tt(e, a) {
1304
1304
  var s = e.__data__;
1305
- return Wr(i) ? s[typeof i == "string" ? "string" : "hash"] : s.map;
1305
+ return Yr(a) ? s[typeof a == "string" ? "string" : "hash"] : s.map;
1306
1306
  }
1307
- function at(e, i) {
1308
- var s = Ae(e, i);
1309
- return Cr(s) ? s : void 0;
1307
+ function at(e, a) {
1308
+ var s = Ee(e, a);
1309
+ return Rr(s) ? s : void 0;
1310
1310
  }
1311
- var pt = Jt ? Yt(Jt, Object) : Vr, dt = Dr;
1312
- (Rt && dt(new Rt(new ArrayBuffer(1))) != k || vt && dt(new vt()) != h || it && dt(it.resolve()) != f || zt && dt(new zt()) != b || Zt && dt(new Zt()) != y) && (dt = function(e) {
1313
- var i = Ct.call(e), s = i == g ? e.constructor : void 0, u = s ? Y(s) : void 0;
1311
+ var pt = Qt ? qt(Qt, Object) : qr, dt = Fr;
1312
+ (Ht && dt(new Ht(new ArrayBuffer(1))) != O || vt && dt(new vt()) != y || it && dt(it.resolve()) != f || Nt && dt(new Nt()) != v || te && dt(new te()) != m) && (dt = function(e) {
1313
+ var a = Ft.call(e), s = a == h ? e.constructor : void 0, u = s ? V(s) : void 0;
1314
1314
  if (u)
1315
1315
  switch (u) {
1316
- case Qt:
1317
- return k;
1318
- case St:
1319
- return h;
1320
- case te:
1321
- return f;
1322
1316
  case ee:
1323
- return b;
1324
- case re:
1317
+ return O;
1318
+ case St:
1325
1319
  return y;
1320
+ case re:
1321
+ return f;
1322
+ case ne:
1323
+ return v;
1324
+ case ie:
1325
+ return m;
1326
1326
  }
1327
- return i;
1327
+ return a;
1328
1328
  });
1329
- function Ur(e) {
1330
- var i = e.length, s = e.constructor(i);
1331
- return i && typeof e[0] == "string" && st.call(e, "index") && (s.index = e.index, s.input = e.input), s;
1329
+ function Br(e) {
1330
+ var a = e.length, s = e.constructor(a);
1331
+ return a && typeof e[0] == "string" && st.call(e, "index") && (s.index = e.index, s.input = e.input), s;
1332
1332
  }
1333
1333
  function ct(e) {
1334
- return typeof e.constructor == "function" && !Ne(e) ? Mr(Q(e)) : {};
1334
+ return typeof e.constructor == "function" && !Ne(e) ? Cr(Q(e)) : {};
1335
1335
  }
1336
- function Gr(e, i, s, u) {
1336
+ function $r(e, a, s, u) {
1337
1337
  var A = e.constructor;
1338
- switch (i) {
1339
- case F:
1340
- return ae(e);
1338
+ switch (a) {
1339
+ case H:
1340
+ return oe(e);
1341
1341
  case d:
1342
1342
  case E:
1343
1343
  return new A(+e);
1344
- case k:
1344
+ case O:
1345
1345
  return wt(e, u);
1346
- case M:
1347
- case N:
1348
- case R:
1349
- case S:
1346
+ case k:
1347
+ case D:
1348
+ case w:
1350
1349
  case T:
1351
- case H:
1352
- case _e:
1353
- case ge:
1354
- case ve:
1355
- return zr(e, u);
1356
- case h:
1357
- return Re(e, u, s);
1350
+ case x:
1351
+ case F:
1352
+ case Dt:
1353
+ case Ct:
1354
+ case Ie:
1355
+ return Ur(e, u);
1356
+ case y:
1357
+ return ze(e, u, s);
1358
1358
  case p:
1359
1359
  case _:
1360
1360
  return new A(e);
1361
+ case g:
1362
+ return He(e);
1361
1363
  case v:
1362
- return ze(e);
1364
+ return Hr(e, u, s);
1363
1365
  case b:
1364
- return Fr(e, u, s);
1365
- case m:
1366
- return Rr(e);
1366
+ return Nr(e);
1367
1367
  }
1368
1368
  }
1369
- function Br(e, i) {
1370
- return i = i ?? o, !!i && (typeof e == "number" || ir.test(e)) && e > -1 && e % 1 == 0 && e < i;
1369
+ function Kr(e, a) {
1370
+ return a = a ?? o, !!a && (typeof e == "number" || or.test(e)) && e > -1 && e % 1 == 0 && e < a;
1371
1371
  }
1372
- function Wr(e) {
1373
- var i = typeof e;
1374
- return i == "string" || i == "number" || i == "symbol" || i == "boolean" ? e !== "__proto__" : e === null;
1372
+ function Yr(e) {
1373
+ var a = typeof e;
1374
+ return a == "string" || a == "number" || a == "symbol" || a == "boolean" ? e !== "__proto__" : e === null;
1375
1375
  }
1376
- function $r(e) {
1377
- return !!Oe && Oe in e;
1376
+ function Vr(e) {
1377
+ return !!xe && xe in e;
1378
1378
  }
1379
1379
  function Ne(e) {
1380
- var i = e && e.constructor, s = typeof i == "function" && i.prototype || Dt;
1380
+ var a = e && e.constructor, s = typeof a == "function" && a.prototype || jt;
1381
1381
  return e === s;
1382
1382
  }
1383
- function Y(e) {
1383
+ function V(e) {
1384
1384
  if (e != null) {
1385
1385
  try {
1386
- return xe.call(e);
1386
+ return Me.call(e);
1387
1387
  } catch {
1388
1388
  }
1389
1389
  try {
@@ -1393,106 +1393,106 @@ Xe.exports;
1393
1393
  }
1394
1394
  return "";
1395
1395
  }
1396
- function He(e) {
1397
- return ie(e, !0, !0);
1396
+ function Ue(e) {
1397
+ return se(e, !0, !0);
1398
1398
  }
1399
- function Le(e, i) {
1400
- return e === i || e !== e && i !== i;
1399
+ function Le(e, a) {
1400
+ return e === a || e !== e && a !== a;
1401
1401
  }
1402
- function Ut(e) {
1403
- return Kr(e) && st.call(e, "callee") && (!Pe.call(e, "callee") || Ct.call(e) == c);
1402
+ function Wt(e) {
1403
+ return Xr(e) && st.call(e, "callee") && (!De.call(e, "callee") || Ft.call(e) == c);
1404
1404
  }
1405
- var oe = Array.isArray;
1406
- function Gt(e) {
1407
- return e != null && Ge(e.length) && !ce(e);
1405
+ var ue = Array.isArray;
1406
+ function Bt(e) {
1407
+ return e != null && We(e.length) && !fe(e);
1408
1408
  }
1409
- function Kr(e) {
1410
- return Be(e) && Gt(e);
1409
+ function Xr(e) {
1410
+ return Be(e) && Bt(e);
1411
1411
  }
1412
- var Ue = Ft || Yr;
1413
- function ce(e) {
1414
- var i = ut(e) ? Ct.call(e) : "";
1415
- return i == w || i == z;
1412
+ var Ge = zt || Jr;
1413
+ function fe(e) {
1414
+ var a = ut(e) ? Ft.call(e) : "";
1415
+ return a == S || a == N;
1416
1416
  }
1417
- function Ge(e) {
1417
+ function We(e) {
1418
1418
  return typeof e == "number" && e > -1 && e % 1 == 0 && e <= o;
1419
1419
  }
1420
1420
  function ut(e) {
1421
- var i = typeof e;
1422
- return !!e && (i == "object" || i == "function");
1421
+ var a = typeof e;
1422
+ return !!e && (a == "object" || a == "function");
1423
1423
  }
1424
1424
  function Be(e) {
1425
1425
  return !!e && typeof e == "object";
1426
1426
  }
1427
- function ue(e) {
1428
- return Gt(e) ? Nt(e) : jr(e);
1427
+ function le(e) {
1428
+ return Bt(e) ? Ut(e) : zr(e);
1429
1429
  }
1430
- function Vr() {
1430
+ function qr() {
1431
1431
  return [];
1432
1432
  }
1433
- function Yr() {
1433
+ function Jr() {
1434
1434
  return !1;
1435
1435
  }
1436
- t.exports = He;
1437
- })(Xe, Xe.exports);
1438
- var Ni = Xe.exports;
1439
- const tt = /* @__PURE__ */ mn(Ni), cn = (t) => {
1440
- const r = t.map((n) => new FontFace(n.fontFamily, `url(${n.url})`).load().catch((a) => a));
1441
- return r.length === 0 ? Promise.resolve(!0) : new Promise((n, a) => {
1442
- Promise.all(r).then((o) => {
1443
- o.forEach((c) => {
1444
- c && c.family && (document.fonts.add(c), n(!0));
1445
- });
1446
- }).catch((o) => a(o));
1447
- });
1448
- }, Hi = (t) => new Promise((r, n) => {
1449
- const a = new Image();
1450
- console.warn("update cdn config for cors?"), a.onload = () => {
1451
- const o = a.width, c = a.height;
1436
+ t.exports = Ue;
1437
+ })(qe, qe.exports);
1438
+ var Ni = qe.exports;
1439
+ const tt = /* @__PURE__ */ bn(Ni), Ui = (t) => new Promise((r, n) => {
1440
+ const i = new Image();
1441
+ console.warn("update cdn config for cors?"), i.onload = () => {
1442
+ const o = i.width, c = i.height;
1452
1443
  r({ width: o, height: c });
1453
- }, a.onerror = (o) => {
1444
+ }, i.onerror = (o) => {
1454
1445
  n(o);
1455
- }, a.crossOrigin = "anonymous", a.src = t;
1446
+ }, i.crossOrigin = "anonymous", i.src = t;
1456
1447
  }), Li = (t) => new Promise((r, n) => {
1457
- const a = new Audio();
1458
- a.preload = "auto", a.addEventListener("loadedmetadata", () => {
1459
- const o = a.duration * 1e3;
1448
+ const i = new Audio();
1449
+ i.preload = "auto", i.addEventListener("loadedmetadata", () => {
1450
+ const o = i.duration * 1e3;
1460
1451
  r({ duration: o });
1461
- }), a.addEventListener("error", (o) => {
1452
+ }), i.addEventListener("error", (o) => {
1462
1453
  n(o);
1463
- }), a.src = t, a.crossOrigin = "anonymous", a.load();
1464
- }), Ui = (t) => new Promise((r, n) => {
1465
- const a = document.createElement("video");
1466
- a.preload = "auto", a.addEventListener("loadedmetadata", () => {
1467
- const o = a.duration * 1e3, c = a.videoWidth, l = a.videoHeight;
1454
+ }), i.src = t, i.crossOrigin = "anonymous", i.load();
1455
+ }), Gi = (t) => new Promise((r, n) => {
1456
+ const i = document.createElement("video");
1457
+ i.preload = "auto", i.addEventListener("loadedmetadata", () => {
1458
+ const o = i.duration * 1e3, c = i.videoWidth, l = i.videoHeight;
1468
1459
  r({ duration: o, width: c, height: l });
1469
- }), a.addEventListener("error", (o) => {
1460
+ }), i.addEventListener("error", (o) => {
1470
1461
  n(o);
1471
- }), a.src = t, a.load();
1472
- }), Gi = (t, r) => {
1462
+ }), i.src = t, i.load();
1463
+ }), Xn = (t, r) => {
1473
1464
  const n = document.createElement("div");
1474
1465
  Object.keys(r).forEach((o) => {
1475
1466
  o !== "height" && (n.style[o] = r[o]);
1476
1467
  }), document.body.appendChild(n), n.textContent = t, n.style.whiteSpace = "normal", n.style.position = "absolute", n.style.visibility = "hidden", n.style.display = "inline-block", n.style.width = r.width + "px", n.style.fontSize = r.fontSize + "px";
1477
- const a = getComputedStyle(n).height;
1478
- return document.body.removeChild(n), parseFloat(a);
1479
- }, bn = {
1468
+ const i = getComputedStyle(n).height;
1469
+ return document.body.removeChild(n), parseFloat(i);
1470
+ }, Je = (t) => {
1471
+ const r = t.map((n) => new FontFace(n.fontFamily, `url(${n.url})`).load().catch((i) => i));
1472
+ return r.length === 0 ? Promise.resolve(!0) : new Promise((n, i) => {
1473
+ Promise.all(r).then((o) => {
1474
+ o.forEach((c) => {
1475
+ c && c.family && (document.fonts.add(c), n(!0));
1476
+ });
1477
+ }).catch((o) => i(o));
1478
+ });
1479
+ }, er = {
1480
1480
  color: "#000000",
1481
1481
  x: 0,
1482
1482
  y: 0,
1483
1483
  blur: 0
1484
- }, Qe = (t, r) => {
1484
+ }, ge = (t, r) => {
1485
1485
  let n = r != null && r.trim ? r.trim.to - r.trim.from : (r == null ? void 0 : r.duration) || 5e3;
1486
- const a = {
1486
+ const i = {
1487
1487
  from: 0,
1488
1488
  to: n
1489
1489
  };
1490
1490
  if (!t)
1491
- return a;
1491
+ return i;
1492
1492
  if (t.from < 0)
1493
1493
  return console.error(
1494
1494
  "'from' must be a non-negative number. Returning default display."
1495
- ), a;
1495
+ ), i;
1496
1496
  if (t.from !== void 0 && t.to === void 0)
1497
1497
  return {
1498
1498
  from: t.from,
@@ -1502,11 +1502,11 @@ const tt = /* @__PURE__ */ mn(Ni), cn = (t) => {
1502
1502
  if (t.to < 0)
1503
1503
  return console.error(
1504
1504
  "'to' must be a non-negative number. Returning default display."
1505
- ), a;
1505
+ ), i;
1506
1506
  if (t.to < t.from)
1507
1507
  return console.error(
1508
1508
  "'to' must be greater than or equal to 'from'. Returning default display."
1509
- ), a;
1509
+ ), i;
1510
1510
  }
1511
1511
  return t;
1512
1512
  }, qn = (t, r) => t ? t.from && !t.to ? {
@@ -1516,27 +1516,27 @@ const tt = /* @__PURE__ */ mn(Ni), cn = (t) => {
1516
1516
  from: 0,
1517
1517
  to: r.duration
1518
1518
  };
1519
- function _n(t, r) {
1519
+ function rr(t, r) {
1520
1520
  const n = {
1521
1521
  x: t.size.width / 2,
1522
1522
  y: t.size.height / 2
1523
- }, a = { x: r.width / 2, y: r.height / 2 }, o = Math.min(
1523
+ }, i = { x: r.width / 2, y: r.height / 2 }, o = Math.min(
1524
1524
  t.size.width / r.width,
1525
1525
  t.size.height / r.height
1526
- ), c = n.x - a.x;
1526
+ ), c = n.x - i.x;
1527
1527
  return {
1528
- top: `${n.y - a.y}px`,
1528
+ top: `${n.y - i.y}px`,
1529
1529
  left: `${c}px`,
1530
1530
  transform: `scale(${o})`
1531
1531
  };
1532
1532
  }
1533
- const Bi = async (t, r) => {
1534
- const n = t.details.src, a = await Ui(n), o = _n(r, {
1535
- ...a
1536
- }), c = qn(t.trim, { duration: a.duration }), l = {
1537
- width: a.width,
1538
- height: a.height,
1539
- duration: a.duration,
1533
+ const Wi = async (t, r) => {
1534
+ const n = t.details.src, i = await Gi(n), o = rr(r, {
1535
+ ...i
1536
+ }), c = qn(t.trim, { duration: i.duration }), l = {
1537
+ width: i.width,
1538
+ height: i.height,
1539
+ duration: i.duration,
1540
1540
  opacity: 100,
1541
1541
  src: n,
1542
1542
  volume: t.details.volume ?? 100,
@@ -1547,13 +1547,17 @@ const Bi = async (t, r) => {
1547
1547
  // Default border width
1548
1548
  borderColor: t.details.borderColor || "#000000",
1549
1549
  // Default border color
1550
- boxShadow: t.details.boxShadow || bn,
1550
+ boxShadow: t.details.boxShadow || er,
1551
1551
  top: o.top || "0px",
1552
1552
  // Default top
1553
1553
  left: o.left || "0px",
1554
1554
  // Default left
1555
- transform: o.transform
1555
+ transform: o.transform,
1556
1556
  // Default transform
1557
+ blur: t.details.blur || 0,
1558
+ brightness: t.details.brightness || 100,
1559
+ flipX: t.details.flipX || !1,
1560
+ flipY: t.details.flipY || !1
1557
1561
  };
1558
1562
  return {
1559
1563
  ...t,
@@ -1561,15 +1565,15 @@ const Bi = async (t, r) => {
1561
1565
  type: "video",
1562
1566
  name: "video",
1563
1567
  details: l,
1564
- display: Qe(t.display, { duration: a.duration, trim: c })
1568
+ display: ge(t.display, { duration: i.duration, trim: c })
1565
1569
  };
1566
- }, Wi = async (t) => {
1570
+ }, Bi = async (t) => {
1567
1571
  const r = t.id, n = t.details, o = (await Li(n.src)).duration, c = qn(t.trim, { duration: o });
1568
1572
  return {
1569
1573
  id: r,
1570
1574
  name: "",
1571
1575
  type: "audio",
1572
- display: Qe(t.display, { duration: o, trim: c }),
1576
+ display: ge(t.display, { duration: o, trim: c }),
1573
1577
  trim: c,
1574
1578
  details: {
1575
1579
  src: n.src,
@@ -1580,18 +1584,18 @@ const Bi = async (t, r) => {
1580
1584
  metadata: { ...t.metadata }
1581
1585
  };
1582
1586
  }, $i = async (t, r) => {
1583
- const n = t.details, a = await Hi(n.src), o = _n(r, a);
1587
+ const n = t.details, i = await Ui(n.src), o = rr(r, i);
1584
1588
  return {
1585
1589
  id: t.id,
1586
1590
  type: "image",
1587
1591
  name: "image",
1588
- display: Qe(t.display),
1592
+ display: ge(t.display),
1589
1593
  details: {
1590
1594
  src: n.src || "",
1591
1595
  // Default source URL
1592
- width: n.width || a.width || 100,
1596
+ width: n.width || i.width || 100,
1593
1597
  // Default width
1594
- height: n.height || a.height || 100,
1598
+ height: n.height || i.height || 100,
1595
1599
  // Default height
1596
1600
  opacity: n.opacity ?? 100,
1597
1601
  // Default opacity
@@ -1601,7 +1605,7 @@ const Bi = async (t, r) => {
1601
1605
  // Default border
1602
1606
  borderRadius: n.borderRadius || 0,
1603
1607
  // Default border radius
1604
- boxShadow: n.boxShadow || bn,
1608
+ boxShadow: n.boxShadow || er,
1605
1609
  // Default box shadow
1606
1610
  top: o.top || "0px",
1607
1611
  // Default top
@@ -1609,44 +1613,78 @@ const Bi = async (t, r) => {
1609
1613
  // Default left
1610
1614
  borderWidth: n.borderWidth ?? 0,
1611
1615
  // Default border width
1612
- borderColor: n.borderColor || "#000000"
1616
+ borderColor: n.borderColor || "#000000",
1613
1617
  // Default border color
1618
+ blur: n.blur || 0,
1619
+ brightness: n.brightness || 100,
1620
+ flipX: n.flipX || !1,
1621
+ flipY: n.flipY || !1
1614
1622
  },
1615
1623
  metadata: t.metadata || {}
1616
1624
  };
1617
- }, Ki = async (t, r, n = !0) => {
1618
- const a = t.id;
1619
- n && await cn([
1625
+ }, Ki = async (t, r) => {
1626
+ await Je([
1620
1627
  {
1621
1628
  fontFamily: t.details.fontFamily,
1622
1629
  url: t.details.fontUrl
1623
1630
  }
1624
1631
  ]);
1625
- const o = t.details, c = Vi(o), l = Gi(t.details.text, c), d = _n(r, {
1626
- width: c.width,
1627
- height: l
1632
+ const n = t.id, i = t.details, o = Jn(i), c = Xn(t.details.text, o), l = rr(r, {
1633
+ width: o.width,
1634
+ height: c
1628
1635
  });
1629
1636
  return {
1630
- id: a,
1631
- name: r.type,
1632
- type: r.type,
1633
- display: Qe(t.display),
1637
+ id: n,
1638
+ name: "caption",
1639
+ type: "caption",
1640
+ display: ge(t.display),
1634
1641
  details: {
1635
- ...c,
1636
- text: o.text || "",
1642
+ ...o,
1643
+ text: i.text || "",
1637
1644
  // Default text content
1638
- height: l,
1645
+ height: c,
1639
1646
  // Default height
1640
- fontUrl: o.fontUrl,
1641
- top: d.top,
1642
- left: d.left,
1643
- borderWidth: o.borderWidth || 0,
1644
- borderColor: o.borderColor || "#000000",
1645
- boxShadow: o.boxShadow || bn
1647
+ fontUrl: i.fontUrl,
1648
+ top: l.top,
1649
+ left: l.left,
1650
+ borderWidth: i.borderWidth || 0,
1651
+ borderColor: i.borderColor || "#000000",
1652
+ boxShadow: i.boxShadow || er
1646
1653
  },
1647
1654
  metadata: {}
1648
1655
  };
1649
- }, Vi = (t) => ({
1656
+ }, Yi = async (t, r) => {
1657
+ await Je([
1658
+ {
1659
+ fontFamily: t.details.fontFamily,
1660
+ url: t.details.fontUrl
1661
+ }
1662
+ ]);
1663
+ const n = t.id, i = t.details, o = Jn(i), c = Xn(t.details.text, o), l = rr(r, {
1664
+ width: o.width,
1665
+ height: c
1666
+ });
1667
+ return {
1668
+ id: n,
1669
+ name: "text",
1670
+ type: "text",
1671
+ display: ge(t.display),
1672
+ details: {
1673
+ ...o,
1674
+ text: i.text || "",
1675
+ // Default text content
1676
+ height: c,
1677
+ // Default height
1678
+ fontUrl: i.fontUrl,
1679
+ top: l.top,
1680
+ left: l.left,
1681
+ borderWidth: i.borderWidth || 0,
1682
+ borderColor: i.borderColor || "#000000",
1683
+ boxShadow: i.boxShadow || er
1684
+ },
1685
+ metadata: {}
1686
+ };
1687
+ }, Jn = (t) => ({
1650
1688
  fontFamily: t.fontFamily || "Arial",
1651
1689
  // Default font family
1652
1690
  fontSize: t.fontSize || "16px",
@@ -1685,63 +1723,52 @@ const Bi = async (t, r) => {
1685
1723
  WebkitTextStrokeColor: t.WebkitTextStrokeColor || "#ffffff",
1686
1724
  WebkitTextStrokeWidth: t.WebkitTextStrokeWidth || "0px",
1687
1725
  top: t.top || "0px",
1688
- left: t.left || "0px"
1689
- }), Yi = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
1690
- let un = (t = 21) => {
1726
+ left: t.left || "0px",
1727
+ textTransform: t.textTransform || "none"
1728
+ }), Vi = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
1729
+ let fn = (t = 21) => {
1691
1730
  let r = "", n = crypto.getRandomValues(new Uint8Array(t));
1692
1731
  for (; t--; )
1693
- r += Yi[n[t] & 63];
1732
+ r += Vi[n[t] & 63];
1694
1733
  return r;
1695
1734
  };
1696
1735
  function Xi(t, r) {
1697
- return t.map((n) => ({
1698
- ...n,
1699
- items: n.items.filter((a) => !r.includes(a))
1700
- }));
1736
+ return t.filter((i) => ({
1737
+ ...i,
1738
+ items: i.items.filter((o) => !r.includes(o))
1739
+ })).filter((i) => !i.items.length);
1701
1740
  }
1702
- function Jr(t = 16) {
1741
+ function Mn(t = 16) {
1703
1742
  const r = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ", n = r.charAt(Math.floor(Math.random() * r.length));
1704
- let a = un(t - 1);
1705
- return a = a.replace(/[^a-zA-Z0-9]/g, "").slice(0, t - 1), n + a;
1743
+ let i = fn(t - 1);
1744
+ return i = i.replace(/[^a-zA-Z0-9]/g, "").slice(0, t - 1), n + i;
1706
1745
  }
1707
1746
  const Pn = (t) => Object.keys(t).reduce((r, n) => {
1708
- const { display: a } = t[n];
1709
- return Math.max(r, a.to);
1710
- }, 0), Dn = async (t, r, n) => {
1711
- const a = await Ki(t, {
1712
- size: {
1713
- width: 1080,
1714
- height: 1920
1715
- },
1716
- type: n
1717
- }), { details: o, ...c } = a;
1718
- return r.trackItemDetailsMap[c.id] = {
1719
- type: n,
1720
- details: o
1721
- }, r.trackItemsMap[c.id] = c, c.id;
1722
- };
1747
+ const { display: i } = t[n];
1748
+ return Math.max(r, i.to);
1749
+ }, 0);
1723
1750
  function qi(t) {
1724
- const r = Bt.pipe(
1725
- Wt(({ key: p }) => p.startsWith(oi))
1726
- ), n = Bt.pipe(
1727
- Wt(({ key: p }) => p.startsWith(ci))
1728
- ), a = Bt.pipe(
1729
- Wt(({ key: p }) => p.startsWith(ui))
1730
- ), o = Bt.pipe(
1731
- Wt(({ key: p }) => p.startsWith(fi))
1732
- ), c = Bt.pipe(
1733
- Wt(({ key: p }) => p.startsWith(li))
1734
- ), l = Bt.pipe(
1735
- Wt(({ key: p }) => p.startsWith(pi))
1751
+ const r = $t.pipe(
1752
+ Kt(({ key: p }) => p.startsWith(ci))
1753
+ ), n = $t.pipe(
1754
+ Kt(({ key: p }) => p.startsWith(ui))
1755
+ ), i = $t.pipe(
1756
+ Kt(({ key: p }) => p.startsWith(fi))
1757
+ ), o = $t.pipe(
1758
+ Kt(({ key: p }) => p.startsWith(li))
1759
+ ), c = $t.pipe(
1760
+ Kt(({ key: p }) => p.startsWith(pi))
1761
+ ), l = $t.pipe(
1762
+ Kt(({ key: p }) => p.startsWith(di))
1736
1763
  ), d = r.subscribe(async (p) => {
1737
- var g;
1738
- if (p.key === di) {
1739
- const f = (g = p.value) == null ? void 0 : g.payload, v = f.trackItemIds, b = f.trackItemDetailsMap, _ = v.map(async (m) => {
1740
- const y = b[m];
1741
- return (y.type === "caption" || y.type === "text") && await cn([
1764
+ var h;
1765
+ if (p.key === hi) {
1766
+ const f = (h = p.value) == null ? void 0 : h.payload, g = f.trackItemIds, v = f.trackItemDetailsMap, _ = g.map(async (b) => {
1767
+ const m = v[b];
1768
+ return (m.type === "caption" || m.type === "text") && await Je([
1742
1769
  {
1743
- fontFamily: y.details.fontFamily,
1744
- url: y.details.fontUrl
1770
+ fontFamily: m.details.fontFamily,
1771
+ url: m.details.fontUrl
1745
1772
  }
1746
1773
  ]), !0;
1747
1774
  });
@@ -1750,125 +1777,152 @@ function qi(t) {
1750
1777
  });
1751
1778
  }
1752
1779
  }), E = o.subscribe((p) => {
1753
- if (p.key === hi) return t.undo();
1754
- if (p.key === yi) return t.redo();
1755
- }), D = a.subscribe((p) => {
1756
- var f, v, b;
1757
- const g = [];
1758
- if ((f = p.value) != null && f.payload.trackItemIds && (g.push((v = p.value) == null ? void 0 : v.payload.trackItemIds), t.updateState({ activeIds: g })), p.key === mi) {
1759
- const _ = (b = p.value) == null ? void 0 : b.payload.trackItemIds, m = tt(t.getState()), y = _ && _.length ? _ : m.activeIds, F = m.trackItemIds, k = m.trackItemDetailsMap, M = F.filter(
1760
- (T) => !y.includes(T)
1761
- ), N = Object.fromEntries(
1762
- Object.entries(k).filter(
1763
- ([T]) => !y.includes(T)
1780
+ if (p.key === yi) return t.undo();
1781
+ if (p.key === mi) return t.redo();
1782
+ }), j = i.subscribe((p) => {
1783
+ var f, g, v;
1784
+ const h = [];
1785
+ if ((f = p.value) != null && f.payload.trackItemIds && (h.push((g = p.value) == null ? void 0 : g.payload.trackItemIds), t.updateState({ activeIds: h })), p.key === bi) {
1786
+ const _ = (v = p.value) == null ? void 0 : v.payload.trackItemIds, b = tt(t.getState()), m = _ && _.length ? _ : b.activeIds, H = b.trackItemIds, O = b.trackItemDetailsMap, k = H.filter(
1787
+ (F) => !m.includes(F)
1788
+ ), D = Object.fromEntries(
1789
+ Object.entries(O).filter(
1790
+ ([F]) => !m.includes(F)
1791
+ )
1792
+ ), w = Xi(
1793
+ b.tracks,
1794
+ m
1795
+ ), T = Object.fromEntries(
1796
+ Object.entries(b.trackItemsMap).filter(
1797
+ ([F]) => !m.includes(F)
1764
1798
  )
1765
- ), R = Xi(
1766
- m.tracks,
1767
- y
1768
- ), S = Pn(m.trackItemsMap);
1799
+ ), x = Pn(b.trackItemsMap);
1769
1800
  t.updateState(
1770
1801
  {
1771
- trackItemIds: M,
1772
- trackItemDetailsMap: N,
1802
+ trackItemIds: k,
1803
+ trackItemDetailsMap: D,
1773
1804
  activeIds: [],
1774
- tracks: R,
1775
- duration: S
1805
+ trackItemsMap: T,
1806
+ tracks: w,
1807
+ duration: x
1776
1808
  },
1777
1809
  { updateHistory: !0, kind: "remove" }
1778
1810
  );
1779
1811
  }
1780
- }), w = n.subscribe(async (p) => {
1781
- var m, y, F, k, M, N;
1782
- const g = [], f = tt(t.getState()), v = ((m = p.value) == null ? void 0 : m.payload.id) ?? Jr();
1783
- if (g.push(v), p.key === bi) {
1784
- const S = ((y = p.value) == null ? void 0 : y.payload).map(async (H) => await Dn(H, f, "caption")), T = await Promise.all(S);
1785
- g.splice(0, g.length), T.forEach((H) => {
1786
- g.push(H), f.trackItemIds.push(H);
1787
- });
1812
+ }), S = n.subscribe(async (p) => {
1813
+ var _, b, m, H, O;
1814
+ const h = tt(t.getState());
1815
+ let f = [], g = "text";
1816
+ if (p.key === gi) {
1817
+ const k = (_ = p.value) == null ? void 0 : _.payload, D = [];
1818
+ for (const x of k) {
1819
+ const F = Ki(x, {
1820
+ size: {
1821
+ width: 1080,
1822
+ height: 1920
1823
+ }
1824
+ });
1825
+ D.push(F);
1826
+ }
1827
+ const w = await Promise.all(D), T = [];
1828
+ for (const x of w) {
1829
+ const F = x.id;
1830
+ T.push(F);
1831
+ const { details: Dt, ...Ct } = x;
1832
+ h.trackItemDetailsMap[F] = {
1833
+ type: g,
1834
+ details: Dt
1835
+ }, h.trackItemsMap[F] = Ct, h.trackItemIds.push(F);
1836
+ }
1837
+ f = T;
1788
1838
  }
1789
1839
  if (p.key === _i) {
1790
- const R = await Dn(
1791
- (F = p.value) == null ? void 0 : F.payload,
1792
- f,
1793
- "text"
1794
- );
1795
- f.trackItemIds.push(R);
1796
- }
1797
- let b = "text";
1798
- if (p.key === gi) {
1799
- b = "image";
1800
- const R = await $i((k = p.value) == null ? void 0 : k.payload, {
1840
+ g = "text";
1841
+ const k = await Yi((b = p.value) == null ? void 0 : b.payload, {
1801
1842
  size: {
1802
1843
  width: 1080,
1803
1844
  height: 1920
1804
1845
  }
1805
- }), { details: S, ...T } = R;
1806
- f.trackItemDetailsMap[T.id] = {
1807
- type: b,
1808
- details: S
1809
- }, f.trackItemsMap[T.id] = T, f.trackItemIds.push(T.id);
1846
+ }), { details: D, ...w } = k;
1847
+ h.trackItemDetailsMap[w.id] = {
1848
+ type: g,
1849
+ details: D
1850
+ }, h.trackItemsMap[w.id] = w, h.trackItemIds.push(w.id), f = [w.id];
1810
1851
  }
1811
1852
  if (p.key === vi) {
1812
- b = "audio";
1813
- const R = await Wi((M = p.value) == null ? void 0 : M.payload), { details: S, ...T } = R;
1814
- f.trackItemDetailsMap[T.id] = {
1815
- type: b,
1816
- details: S
1817
- }, f.trackItemsMap[T.id] = T, f.trackItemIds.push(T.id);
1853
+ g = "image";
1854
+ const k = await $i((m = p.value) == null ? void 0 : m.payload, {
1855
+ size: {
1856
+ width: 1080,
1857
+ height: 1920
1858
+ }
1859
+ }), { details: D, ...w } = k;
1860
+ h.trackItemDetailsMap[w.id] = {
1861
+ type: g,
1862
+ details: D
1863
+ }, h.trackItemsMap[w.id] = w, h.trackItemIds.push(w.id), f = [w.id];
1818
1864
  }
1819
1865
  if (p.key === Ii) {
1820
- b = "video";
1821
- const R = await Bi((N = p.value) == null ? void 0 : N.payload, {
1866
+ g = "audio";
1867
+ const k = await Bi((H = p.value) == null ? void 0 : H.payload), { details: D, ...w } = k;
1868
+ h.trackItemDetailsMap[w.id] = {
1869
+ type: g,
1870
+ details: D
1871
+ }, h.trackItemsMap[w.id] = w, h.trackItemIds.push(w.id), f = [w.id];
1872
+ }
1873
+ if (p.key === Si) {
1874
+ g = "video";
1875
+ const k = await Wi((O = p.value) == null ? void 0 : O.payload, {
1822
1876
  size: {
1823
1877
  width: 1080,
1824
1878
  height: 1920
1825
1879
  }
1826
- }), { details: S, ...T } = R;
1827
- f.trackItemDetailsMap[T.id] = {
1828
- type: b,
1829
- details: S
1830
- }, f.trackItemsMap[T.id] = T, f.trackItemIds.push(T.id);
1880
+ }), { details: D, ...w } = k;
1881
+ h.trackItemDetailsMap[w.id] = {
1882
+ type: g,
1883
+ details: D
1884
+ }, h.trackItemsMap[w.id] = w, h.trackItemIds.push(w.id), f = [w.id];
1831
1885
  }
1832
- f.tracks.unshift({
1833
- id: un(),
1886
+ h.tracks.unshift({
1887
+ id: fn(),
1834
1888
  accepts: ["text", "audio", "helper", "video", "image", "caption"],
1835
- type: b,
1836
- items: g,
1889
+ type: g,
1890
+ items: f,
1837
1891
  magnetic: !1,
1838
1892
  static: !1
1839
1893
  });
1840
- const _ = Pn(f.trackItemsMap);
1894
+ const v = Pn(h.trackItemsMap);
1841
1895
  t.updateState(
1842
1896
  {
1843
- trackItemIds: f.trackItemIds,
1844
- trackItemDetailsMap: f.trackItemDetailsMap,
1845
- trackItemsMap: f.trackItemsMap,
1846
- tracks: f.tracks,
1847
- duration: _
1897
+ trackItemIds: h.trackItemIds,
1898
+ trackItemDetailsMap: h.trackItemDetailsMap,
1899
+ trackItemsMap: h.trackItemsMap,
1900
+ tracks: h.tracks,
1901
+ duration: v
1848
1902
  },
1849
1903
  {
1850
1904
  updateHistory: !0,
1851
1905
  kind: "add"
1852
1906
  }
1853
1907
  );
1854
- }), z = c.subscribe(async (p) => {
1855
- var g;
1856
- if (p.key === Si) {
1857
- const f = tt(t.getState()), v = (g = p.value) == null ? void 0 : g.options.time;
1908
+ }), N = c.subscribe(async (p) => {
1909
+ var h;
1910
+ if (p.key === wi) {
1911
+ const f = tt(t.getState()), g = (h = p.value) == null ? void 0 : h.options.time;
1858
1912
  if (f.activeIds.length === 1) {
1859
- const b = f.activeIds[0], _ = f.trackItemsMap[b];
1860
- if (v >= _.display.to || v <= _.display.from)
1913
+ const v = f.activeIds[0], _ = f.trackItemsMap[v];
1914
+ if (g >= _.display.to || g <= _.display.from)
1861
1915
  return;
1862
- const m = f.trackItemDetailsMap[b], y = Jr(), F = {
1916
+ const b = f.trackItemDetailsMap[v], m = Mn(), H = {
1863
1917
  ..._,
1864
- id: y,
1918
+ id: m,
1865
1919
  display: {
1866
- from: v,
1920
+ from: g,
1867
1921
  to: _.display.to
1868
1922
  }
1869
1923
  };
1870
- f.trackItemsMap[b].display.to = v, f.trackItemsMap[y] = F, f.trackItemIds.push(y), f.trackItemDetailsMap[y] = m, f.tracks.forEach((k) => {
1871
- k.items.includes(b) && k.items.push(y);
1924
+ f.trackItemsMap[v].display.to = g, f.trackItemsMap[m] = H, f.trackItemIds.push(m), f.trackItemDetailsMap[m] = b, f.tracks.forEach((O) => {
1925
+ O.items.includes(v) && O.items.push(m);
1872
1926
  }), t.updateState(
1873
1927
  {
1874
1928
  trackItemDetailsMap: f.trackItemDetailsMap,
@@ -1884,54 +1938,54 @@ function qi(t) {
1884
1938
  }
1885
1939
  return;
1886
1940
  }
1887
- if (p.key === wi) {
1941
+ if (p.key === Ti) {
1888
1942
  const f = tt(t.getState());
1889
1943
  if (f.activeIds.length) {
1890
- const v = f.activeIds, b = [], _ = {
1891
- activeIds: v,
1944
+ const g = f.activeIds, v = [], _ = {
1945
+ activeIds: g,
1892
1946
  trackItemDetailsMap: {},
1893
1947
  trackItemsMap: {},
1894
1948
  tracks: []
1895
1949
  };
1896
- v.forEach((y) => {
1897
- _.trackItemDetailsMap[y] = f.trackItemDetailsMap[y], _.trackItemsMap[y] = f.trackItemsMap[y], b.push(
1898
- f.tracks.find((F) => F.items.includes(y))
1950
+ g.forEach((m) => {
1951
+ _.trackItemDetailsMap[m] = f.trackItemDetailsMap[m], _.trackItemsMap[m] = f.trackItemsMap[m], v.push(
1952
+ f.tracks.find((H) => H.items.includes(m))
1899
1953
  );
1900
1954
  });
1901
- const m = /* @__PURE__ */ new Set();
1902
- b.filter((y) => m.has(y.id) ? !1 : (m.add(y), !0)), _.tracks = Array.from(m.keys()), localStorage.setItem("DesignComboTemp", JSON.stringify(_));
1955
+ const b = /* @__PURE__ */ new Set();
1956
+ v.filter((m) => b.has(m.id) ? !1 : (b.add(m), !0)), _.tracks = Array.from(b.keys()), localStorage.setItem("DesignComboTemp", JSON.stringify(_));
1903
1957
  }
1904
1958
  }
1905
- if (p.key === Ti) {
1959
+ if (p.key === Ai) {
1906
1960
  const f = localStorage.getItem("DesignComboTemp");
1907
1961
  if (!f) return;
1908
- const v = tt(t.getState()), b = JSON.parse(f), _ = {}, m = b.trackItemsMap, y = b.trackItemDetailsMap, F = b.tracks, k = [], M = b.activeIds.map(async (N) => {
1909
- const R = y[N];
1910
- (R.type === "caption" || R.type === "text") && await cn([
1962
+ const g = tt(t.getState()), v = JSON.parse(f), _ = {}, b = v.trackItemsMap, m = v.trackItemDetailsMap, H = v.tracks, O = [], k = v.activeIds.map(async (D) => {
1963
+ const w = m[D];
1964
+ (w.type === "caption" || w.type === "text") && await Je([
1911
1965
  {
1912
- fontFamily: R.details.fontFamily,
1913
- url: R.details.fontUrl
1966
+ fontFamily: w.details.fontFamily,
1967
+ url: w.details.fontUrl
1914
1968
  }
1915
1969
  ]);
1916
- const S = Jr();
1917
- return _[N] = S, v.trackItemsMap[S] = {
1918
- ...m[N],
1919
- id: S
1920
- }, v.trackItemDetailsMap[S] = R, v.trackItemIds.push(S), !0;
1970
+ const T = Mn();
1971
+ return _[D] = T, g.trackItemsMap[T] = {
1972
+ ...b[D],
1973
+ id: T
1974
+ }, g.trackItemDetailsMap[T] = w, g.trackItemIds.push(T), !0;
1921
1975
  });
1922
- await Promise.all(M), F.forEach((N) => {
1923
- const R = N.items.map((T) => _[T]), S = {
1924
- ...N,
1925
- items: R,
1926
- id: un()
1976
+ await Promise.all(k), H.forEach((D) => {
1977
+ const w = D.items.map((x) => _[x]), T = {
1978
+ ...D,
1979
+ items: w,
1980
+ id: fn()
1927
1981
  };
1928
- k.push(S);
1929
- }), v.tracks = [...v.tracks, ...k], t.updateState(
1982
+ O.push(T);
1983
+ }), g.tracks = [...g.tracks, ...O], t.updateState(
1930
1984
  {
1931
- trackItemDetailsMap: v.trackItemDetailsMap,
1932
- tracks: v.tracks,
1933
- trackItemIds: v.trackItemIds,
1934
- trackItemsMap: v.trackItemsMap
1985
+ trackItemDetailsMap: g.trackItemDetailsMap,
1986
+ tracks: g.tracks,
1987
+ trackItemIds: g.trackItemIds,
1988
+ trackItemsMap: g.trackItemsMap
1935
1989
  },
1936
1990
  {
1937
1991
  updateHistory: !0,
@@ -1939,20 +1993,20 @@ function qi(t) {
1939
1993
  }
1940
1994
  );
1941
1995
  }
1942
- }), h = l.subscribe((p) => {
1943
- var g, f;
1944
- if (p.key === Ai) {
1945
- const v = t.getState(), b = tt(v.trackItemDetailsMap), _ = Object.keys((g = p.value) == null ? void 0 : g.payload);
1996
+ }), y = l.subscribe((p) => {
1997
+ var h, f;
1998
+ if (p.key === Ei) {
1999
+ const g = t.getState(), v = tt(g.trackItemDetailsMap), _ = Object.keys((h = p.value) == null ? void 0 : h.payload);
1946
2000
  if (!_.length) return;
1947
- const m = (f = p.value) == null ? void 0 : f.payload;
1948
- _.forEach((y) => {
1949
- b[y].details = {
1950
- ...b[y].details,
1951
- ...m[y].details
2001
+ const b = (f = p.value) == null ? void 0 : f.payload;
2002
+ _.forEach((m) => {
2003
+ v[m].details = {
2004
+ ...v[m].details,
2005
+ ...b[m].details
1952
2006
  };
1953
2007
  }), t.updateState(
1954
2008
  {
1955
- trackItemDetailsMap: { ...b }
2009
+ trackItemDetailsMap: { ...v }
1956
2010
  },
1957
2011
  {
1958
2012
  updateHistory: !0,
@@ -1963,47 +2017,47 @@ function qi(t) {
1963
2017
  });
1964
2018
  return {
1965
2019
  unsubscribe: () => {
1966
- w.unsubscribe(), z.unsubscribe(), h.unsubscribe(), E.unsubscribe(), D.unsubscribe(), d.unsubscribe();
2020
+ S.unsubscribe(), N.unsubscribe(), y.unsubscribe(), E.unsubscribe(), j.unsubscribe(), d.unsubscribe();
1967
2021
  }
1968
2022
  };
1969
2023
  }
1970
2024
  const Ji = { Date: !0, RegExp: !0, String: !0, Number: !0 };
1971
- function Jn(t, r, n = { cyclesFix: !0 }, a = []) {
2025
+ function Zn(t, r, n = { cyclesFix: !0 }, i = []) {
1972
2026
  var d, E;
1973
2027
  let o = [];
1974
2028
  const c = Array.isArray(t);
1975
- for (const D in t) {
1976
- const w = t[D], z = c ? +D : D;
1977
- if (!(D in r)) {
2029
+ for (const j in t) {
2030
+ const S = t[j], N = c ? +j : j;
2031
+ if (!(j in r)) {
1978
2032
  o.push({
1979
2033
  type: "REMOVE",
1980
- path: [z],
1981
- oldValue: t[D]
2034
+ path: [N],
2035
+ oldValue: t[j]
1982
2036
  });
1983
2037
  continue;
1984
2038
  }
1985
- const h = r[D], p = typeof w == "object" && typeof h == "object" && Array.isArray(w) === Array.isArray(h);
1986
- if (w && h && p && !Ji[(E = (d = Object.getPrototypeOf(w)) == null ? void 0 : d.constructor) == null ? void 0 : E.name] && (!n.cyclesFix || !a.includes(w))) {
1987
- const g = Jn(w, h, n, n.cyclesFix ? a.concat([w]) : []);
1988
- o.push.apply(o, g.map((f) => (f.path.unshift(z), f)));
1989
- } else w !== h && // treat NaN values as equivalent
1990
- !(Number.isNaN(w) && Number.isNaN(h)) && !(p && (isNaN(w) ? w + "" == h + "" : +w == +h)) && o.push({
1991
- path: [z],
2039
+ const y = r[j], p = typeof S == "object" && typeof y == "object" && Array.isArray(S) === Array.isArray(y);
2040
+ if (S && y && p && !Ji[(E = (d = Object.getPrototypeOf(S)) == null ? void 0 : d.constructor) == null ? void 0 : E.name] && (!n.cyclesFix || !i.includes(S))) {
2041
+ const h = Zn(S, y, n, n.cyclesFix ? i.concat([S]) : []);
2042
+ o.push.apply(o, h.map((f) => (f.path.unshift(N), f)));
2043
+ } else S !== y && // treat NaN values as equivalent
2044
+ !(Number.isNaN(S) && Number.isNaN(y)) && !(p && (isNaN(S) ? S + "" == y + "" : +S == +y)) && o.push({
2045
+ path: [N],
1992
2046
  type: "CHANGE",
1993
- value: h,
1994
- oldValue: w
2047
+ value: y,
2048
+ oldValue: S
1995
2049
  });
1996
2050
  }
1997
2051
  const l = Array.isArray(r);
1998
- for (const D in r)
1999
- D in t || o.push({
2052
+ for (const j in r)
2053
+ j in t || o.push({
2000
2054
  type: "CREATE",
2001
- path: [l ? +D : D],
2002
- value: r[D]
2055
+ path: [l ? +j : j],
2056
+ value: r[j]
2003
2057
  });
2004
2058
  return o;
2005
2059
  }
2006
- var gn = Symbol.for("immer-nothing"), fe = Symbol.for("immer-draftable"), J = Symbol.for("immer-state"), Zn = process.env.NODE_ENV !== "production" ? [
2060
+ var gn = Symbol.for("immer-nothing"), pe = Symbol.for("immer-draftable"), J = Symbol.for("immer-state"), Qn = process.env.NODE_ENV !== "production" ? [
2007
2061
  // All error codes, starting by 0:
2008
2062
  function(t) {
2009
2063
  return `The plugin for '${t}' has not been loaded into Immer. To enable the plugin, import and call \`enable${t}()\` when initializing your application.`;
@@ -2036,8 +2090,8 @@ var gn = Symbol.for("immer-nothing"), fe = Symbol.for("immer-draftable"), J = Sy
2036
2090
  ] : [];
2037
2091
  function G(t, ...r) {
2038
2092
  if (process.env.NODE_ENV !== "production") {
2039
- const n = Zn[t], a = typeof n == "function" ? n.apply(null, r) : n;
2040
- throw new Error(`[Immer] ${a}`);
2093
+ const n = Qn[t], i = typeof n == "function" ? n.apply(null, r) : n;
2094
+ throw new Error(`[Immer] ${i}`);
2041
2095
  }
2042
2096
  throw new Error(
2043
2097
  `[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`
@@ -2047,12 +2101,12 @@ var Ot = Object.getPrototypeOf;
2047
2101
  function xt(t) {
2048
2102
  return !!t && !!t[J];
2049
2103
  }
2050
- function _t(t) {
2104
+ function gt(t) {
2051
2105
  var r;
2052
- return t ? Qn(t) || Array.isArray(t) || !!t[fe] || !!((r = t.constructor) != null && r[fe]) || me(t) || be(t) : !1;
2106
+ return t ? ti(t) || Array.isArray(t) || !!t[pe] || !!((r = t.constructor) != null && r[pe]) || _e(t) || ve(t) : !1;
2053
2107
  }
2054
2108
  var Zi = Object.prototype.constructor.toString();
2055
- function Qn(t) {
2109
+ function ti(t) {
2056
2110
  if (!t || typeof t != "object")
2057
2111
  return !1;
2058
2112
  const r = Ot(t);
@@ -2061,52 +2115,52 @@ function Qn(t) {
2061
2115
  const n = Object.hasOwnProperty.call(r, "constructor") && r.constructor;
2062
2116
  return n === Object ? !0 : typeof n == "function" && Function.toString.call(n) === Zi;
2063
2117
  }
2064
- function le(t, r) {
2118
+ function de(t, r) {
2065
2119
  Mt(t) === 0 ? Reflect.ownKeys(t).forEach((n) => {
2066
2120
  r(n, t[n], t);
2067
- }) : t.forEach((n, a) => r(a, n, t));
2121
+ }) : t.forEach((n, i) => r(i, n, t));
2068
2122
  }
2069
2123
  function Mt(t) {
2070
2124
  const r = t[J];
2071
- return r ? r.type_ : Array.isArray(t) ? 1 : me(t) ? 2 : be(t) ? 3 : 0;
2125
+ return r ? r.type_ : Array.isArray(t) ? 1 : _e(t) ? 2 : ve(t) ? 3 : 0;
2072
2126
  }
2073
- function pe(t, r) {
2127
+ function he(t, r) {
2074
2128
  return Mt(t) === 2 ? t.has(r) : Object.prototype.hasOwnProperty.call(t, r);
2075
2129
  }
2076
- function Zr(t, r) {
2130
+ function tn(t, r) {
2077
2131
  return Mt(t) === 2 ? t.get(r) : t[r];
2078
2132
  }
2079
- function ti(t, r, n) {
2080
- const a = Mt(t);
2081
- a === 2 ? t.set(r, n) : a === 3 ? t.add(n) : t[r] = n;
2133
+ function ei(t, r, n) {
2134
+ const i = Mt(t);
2135
+ i === 2 ? t.set(r, n) : i === 3 ? t.add(n) : t[r] = n;
2082
2136
  }
2083
2137
  function Qi(t, r) {
2084
2138
  return t === r ? t !== 0 || 1 / t === 1 / r : t !== t && r !== r;
2085
2139
  }
2086
- function me(t) {
2140
+ function _e(t) {
2087
2141
  return t instanceof Map;
2088
2142
  }
2089
- function be(t) {
2143
+ function ve(t) {
2090
2144
  return t instanceof Set;
2091
2145
  }
2092
2146
  function kt(t) {
2093
2147
  return t.copy_ || t.base_;
2094
2148
  }
2095
- function fn(t, r) {
2096
- if (me(t))
2149
+ function ln(t, r) {
2150
+ if (_e(t))
2097
2151
  return new Map(t);
2098
- if (be(t))
2152
+ if (ve(t))
2099
2153
  return new Set(t);
2100
2154
  if (Array.isArray(t))
2101
2155
  return Array.prototype.slice.call(t);
2102
- const n = Qn(t);
2156
+ const n = ti(t);
2103
2157
  if (r === !0 || r === "class_only" && !n) {
2104
- const a = Object.getOwnPropertyDescriptors(t);
2105
- delete a[J];
2106
- let o = Reflect.ownKeys(a);
2158
+ const i = Object.getOwnPropertyDescriptors(t);
2159
+ delete i[J];
2160
+ let o = Reflect.ownKeys(i);
2107
2161
  for (let c = 0; c < o.length; c++) {
2108
- const l = o[c], d = a[l];
2109
- d.writable === !1 && (d.writable = !0, d.configurable = !0), (d.get || d.set) && (a[l] = {
2162
+ const l = o[c], d = i[l];
2163
+ d.writable === !1 && (d.writable = !0, d.configurable = !0), (d.get || d.set) && (i[l] = {
2110
2164
  configurable: !0,
2111
2165
  writable: !0,
2112
2166
  // could live with !!desc.set as well here...
@@ -2114,35 +2168,35 @@ function fn(t, r) {
2114
2168
  value: t[l]
2115
2169
  });
2116
2170
  }
2117
- return Object.create(Ot(t), a);
2171
+ return Object.create(Ot(t), i);
2118
2172
  } else {
2119
- const a = Ot(t);
2120
- if (a !== null && n)
2173
+ const i = Ot(t);
2174
+ if (i !== null && n)
2121
2175
  return { ...t };
2122
- const o = Object.create(a);
2176
+ const o = Object.create(i);
2123
2177
  return Object.assign(o, t);
2124
2178
  }
2125
2179
  }
2126
- function vn(t, r = !1) {
2127
- return tr(t) || xt(t) || !_t(t) || (Mt(t) > 1 && (t.set = t.add = t.clear = t.delete = ta), Object.freeze(t), r && Object.entries(t).forEach(([n, a]) => vn(a, !0))), t;
2180
+ function _n(t, r = !1) {
2181
+ return nr(t) || xt(t) || !gt(t) || (Mt(t) > 1 && (t.set = t.add = t.clear = t.delete = ta), Object.freeze(t), r && Object.entries(t).forEach(([n, i]) => _n(i, !0))), t;
2128
2182
  }
2129
2183
  function ta() {
2130
2184
  G(2);
2131
2185
  }
2132
- function tr(t) {
2186
+ function nr(t) {
2133
2187
  return Object.isFrozen(t);
2134
2188
  }
2135
- var ln = {};
2189
+ var pn = {};
2136
2190
  function Pt(t) {
2137
- const r = ln[t];
2191
+ const r = pn[t];
2138
2192
  return r || G(0, t), r;
2139
2193
  }
2140
2194
  function ea(t, r) {
2141
- ln[t] || (ln[t] = r);
2195
+ pn[t] || (pn[t] = r);
2142
2196
  }
2143
- var de;
2144
- function ei() {
2145
- return de;
2197
+ var ye;
2198
+ function ri() {
2199
+ return ye;
2146
2200
  }
2147
2201
  function ra(t, r) {
2148
2202
  return {
@@ -2155,84 +2209,84 @@ function ra(t, r) {
2155
2209
  unfinalizedDrafts_: 0
2156
2210
  };
2157
2211
  }
2158
- function Cn(t, r) {
2212
+ function Dn(t, r) {
2159
2213
  r && (Pt("Patches"), t.patches_ = [], t.inversePatches_ = [], t.patchListener_ = r);
2160
2214
  }
2161
- function pn(t) {
2162
- dn(t), t.drafts_.forEach(na), t.drafts_ = null;
2163
- }
2164
2215
  function dn(t) {
2165
- t === de && (de = t.parent_);
2216
+ hn(t), t.drafts_.forEach(na), t.drafts_ = null;
2217
+ }
2218
+ function hn(t) {
2219
+ t === ye && (ye = t.parent_);
2166
2220
  }
2167
- function jn(t) {
2168
- return de = ra(de, t);
2221
+ function Cn(t) {
2222
+ return ye = ra(ye, t);
2169
2223
  }
2170
2224
  function na(t) {
2171
2225
  const r = t[J];
2172
2226
  r.type_ === 0 || r.type_ === 1 ? r.revoke_() : r.revoked_ = !0;
2173
2227
  }
2174
- function Fn(t, r) {
2228
+ function jn(t, r) {
2175
2229
  r.unfinalizedDrafts_ = r.drafts_.length;
2176
2230
  const n = r.drafts_[0];
2177
- return t !== void 0 && t !== n ? (n[J].modified_ && (pn(r), G(4)), _t(t) && (t = qe(r, t), r.parent_ || Je(r, t)), r.patches_ && Pt("Patches").generateReplacementPatches_(
2231
+ return t !== void 0 && t !== n ? (n[J].modified_ && (dn(r), G(4)), gt(t) && (t = Ze(r, t), r.parent_ || Qe(r, t)), r.patches_ && Pt("Patches").generateReplacementPatches_(
2178
2232
  n[J].base_,
2179
2233
  t,
2180
2234
  r.patches_,
2181
2235
  r.inversePatches_
2182
- )) : t = qe(r, n, []), pn(r), r.patches_ && r.patchListener_(r.patches_, r.inversePatches_), t !== gn ? t : void 0;
2236
+ )) : t = Ze(r, n, []), dn(r), r.patches_ && r.patchListener_(r.patches_, r.inversePatches_), t !== gn ? t : void 0;
2183
2237
  }
2184
- function qe(t, r, n) {
2185
- if (tr(r))
2238
+ function Ze(t, r, n) {
2239
+ if (nr(r))
2186
2240
  return r;
2187
- const a = r[J];
2188
- if (!a)
2189
- return le(
2241
+ const i = r[J];
2242
+ if (!i)
2243
+ return de(
2190
2244
  r,
2191
- (o, c) => Rn(t, a, r, o, c, n)
2245
+ (o, c) => Fn(t, i, r, o, c, n)
2192
2246
  ), r;
2193
- if (a.scope_ !== t)
2247
+ if (i.scope_ !== t)
2194
2248
  return r;
2195
- if (!a.modified_)
2196
- return Je(t, a.base_, !0), a.base_;
2197
- if (!a.finalized_) {
2198
- a.finalized_ = !0, a.scope_.unfinalizedDrafts_--;
2199
- const o = a.copy_;
2249
+ if (!i.modified_)
2250
+ return Qe(t, i.base_, !0), i.base_;
2251
+ if (!i.finalized_) {
2252
+ i.finalized_ = !0, i.scope_.unfinalizedDrafts_--;
2253
+ const o = i.copy_;
2200
2254
  let c = o, l = !1;
2201
- a.type_ === 3 && (c = new Set(o), o.clear(), l = !0), le(
2255
+ i.type_ === 3 && (c = new Set(o), o.clear(), l = !0), de(
2202
2256
  c,
2203
- (d, E) => Rn(t, a, o, d, E, n, l)
2204
- ), Je(t, o, !1), n && t.patches_ && Pt("Patches").generatePatches_(
2205
- a,
2257
+ (d, E) => Fn(t, i, o, d, E, n, l)
2258
+ ), Qe(t, o, !1), n && t.patches_ && Pt("Patches").generatePatches_(
2259
+ i,
2206
2260
  n,
2207
2261
  t.patches_,
2208
2262
  t.inversePatches_
2209
2263
  );
2210
2264
  }
2211
- return a.copy_;
2265
+ return i.copy_;
2212
2266
  }
2213
- function Rn(t, r, n, a, o, c, l) {
2267
+ function Fn(t, r, n, i, o, c, l) {
2214
2268
  if (process.env.NODE_ENV !== "production" && o === n && G(5), xt(o)) {
2215
2269
  const d = c && r && r.type_ !== 3 && // Set objects are atomic since they have no keys.
2216
- !pe(r.assigned_, a) ? c.concat(a) : void 0, E = qe(t, o, d);
2217
- if (ti(n, a, E), xt(E))
2270
+ !he(r.assigned_, i) ? c.concat(i) : void 0, E = Ze(t, o, d);
2271
+ if (ei(n, i, E), xt(E))
2218
2272
  t.canAutoFreeze_ = !1;
2219
2273
  else
2220
2274
  return;
2221
2275
  } else l && n.add(o);
2222
- if (_t(o) && !tr(o)) {
2276
+ if (gt(o) && !nr(o)) {
2223
2277
  if (!t.immer_.autoFreeze_ && t.unfinalizedDrafts_ < 1)
2224
2278
  return;
2225
- qe(t, o), (!r || !r.scope_.parent_) && typeof a != "symbol" && Object.prototype.propertyIsEnumerable.call(n, a) && Je(t, o);
2279
+ Ze(t, o), (!r || !r.scope_.parent_) && typeof i != "symbol" && Object.prototype.propertyIsEnumerable.call(n, i) && Qe(t, o);
2226
2280
  }
2227
2281
  }
2228
- function Je(t, r, n = !1) {
2229
- !t.parent_ && t.immer_.autoFreeze_ && t.canAutoFreeze_ && vn(r, n);
2282
+ function Qe(t, r, n = !1) {
2283
+ !t.parent_ && t.immer_.autoFreeze_ && t.canAutoFreeze_ && _n(r, n);
2230
2284
  }
2231
2285
  function ia(t, r) {
2232
- const n = Array.isArray(t), a = {
2286
+ const n = Array.isArray(t), i = {
2233
2287
  type_: n ? 1 : 0,
2234
2288
  // Track which produce call this is associated with.
2235
- scope_: r ? r.scope_ : ei(),
2289
+ scope_: r ? r.scope_ : ri(),
2236
2290
  // True for both shallow and deep changes.
2237
2291
  modified_: !1,
2238
2292
  // Used during finalization.
@@ -2252,20 +2306,20 @@ function ia(t, r) {
2252
2306
  revoke_: null,
2253
2307
  isManual_: !1
2254
2308
  };
2255
- let o = a, c = In;
2256
- n && (o = [a], c = he);
2309
+ let o = i, c = vn;
2310
+ n && (o = [i], c = me);
2257
2311
  const { revoke: l, proxy: d } = Proxy.revocable(o, c);
2258
- return a.draft_ = d, a.revoke_ = l, d;
2312
+ return i.draft_ = d, i.revoke_ = l, d;
2259
2313
  }
2260
- var In = {
2314
+ var vn = {
2261
2315
  get(t, r) {
2262
2316
  if (r === J)
2263
2317
  return t;
2264
2318
  const n = kt(t);
2265
- if (!pe(n, r))
2319
+ if (!he(n, r))
2266
2320
  return aa(t, n, r);
2267
- const a = n[r];
2268
- return t.finalized_ || !_t(a) ? a : a === Qr(t.base_, r) ? (tn(t), t.copy_[r] = yn(a, t)) : a;
2321
+ const i = n[r];
2322
+ return t.finalized_ || !gt(i) ? i : i === en(t.base_, r) ? (rn(t), t.copy_[r] = mn(i, t)) : i;
2269
2323
  },
2270
2324
  has(t, r) {
2271
2325
  return r in kt(t);
@@ -2274,32 +2328,32 @@ var In = {
2274
2328
  return Reflect.ownKeys(kt(t));
2275
2329
  },
2276
2330
  set(t, r, n) {
2277
- const a = ri(kt(t), r);
2278
- if (a != null && a.set)
2279
- return a.set.call(t.draft_, n), !0;
2331
+ const i = ni(kt(t), r);
2332
+ if (i != null && i.set)
2333
+ return i.set.call(t.draft_, n), !0;
2280
2334
  if (!t.modified_) {
2281
- const o = Qr(kt(t), r), c = o == null ? void 0 : o[J];
2335
+ const o = en(kt(t), r), c = o == null ? void 0 : o[J];
2282
2336
  if (c && c.base_ === n)
2283
2337
  return t.copy_[r] = n, t.assigned_[r] = !1, !0;
2284
- if (Qi(n, o) && (n !== void 0 || pe(t.base_, r)))
2338
+ if (Qi(n, o) && (n !== void 0 || he(t.base_, r)))
2285
2339
  return !0;
2286
- tn(t), hn(t);
2340
+ rn(t), yn(t);
2287
2341
  }
2288
2342
  return t.copy_[r] === n && // special case: handle new props with value 'undefined'
2289
2343
  (n !== void 0 || r in t.copy_) || // special case: NaN
2290
2344
  Number.isNaN(n) && Number.isNaN(t.copy_[r]) || (t.copy_[r] = n, t.assigned_[r] = !0), !0;
2291
2345
  },
2292
2346
  deleteProperty(t, r) {
2293
- return Qr(t.base_, r) !== void 0 || r in t.base_ ? (t.assigned_[r] = !1, tn(t), hn(t)) : delete t.assigned_[r], t.copy_ && delete t.copy_[r], !0;
2347
+ return en(t.base_, r) !== void 0 || r in t.base_ ? (t.assigned_[r] = !1, rn(t), yn(t)) : delete t.assigned_[r], t.copy_ && delete t.copy_[r], !0;
2294
2348
  },
2295
2349
  // Note: We never coerce `desc.value` into an Immer draft, because we can't make
2296
2350
  // the same guarantee in ES5 mode.
2297
2351
  getOwnPropertyDescriptor(t, r) {
2298
- const n = kt(t), a = Reflect.getOwnPropertyDescriptor(n, r);
2299
- return a && {
2352
+ const n = kt(t), i = Reflect.getOwnPropertyDescriptor(n, r);
2353
+ return i && {
2300
2354
  writable: !0,
2301
2355
  configurable: t.type_ !== 1 || r !== "length",
2302
- enumerable: a.enumerable,
2356
+ enumerable: i.enumerable,
2303
2357
  value: n[r]
2304
2358
  };
2305
2359
  },
@@ -2312,77 +2366,77 @@ var In = {
2312
2366
  setPrototypeOf() {
2313
2367
  G(12);
2314
2368
  }
2315
- }, he = {};
2316
- le(In, (t, r) => {
2317
- he[t] = function() {
2369
+ }, me = {};
2370
+ de(vn, (t, r) => {
2371
+ me[t] = function() {
2318
2372
  return arguments[0] = arguments[0][0], r.apply(this, arguments);
2319
2373
  };
2320
2374
  });
2321
- he.deleteProperty = function(t, r) {
2322
- return process.env.NODE_ENV !== "production" && isNaN(parseInt(r)) && G(13), he.set.call(this, t, r, void 0);
2375
+ me.deleteProperty = function(t, r) {
2376
+ return process.env.NODE_ENV !== "production" && isNaN(parseInt(r)) && G(13), me.set.call(this, t, r, void 0);
2323
2377
  };
2324
- he.set = function(t, r, n) {
2325
- return process.env.NODE_ENV !== "production" && r !== "length" && isNaN(parseInt(r)) && G(14), In.set.call(this, t[0], r, n, t[0]);
2378
+ me.set = function(t, r, n) {
2379
+ return process.env.NODE_ENV !== "production" && r !== "length" && isNaN(parseInt(r)) && G(14), vn.set.call(this, t[0], r, n, t[0]);
2326
2380
  };
2327
- function Qr(t, r) {
2381
+ function en(t, r) {
2328
2382
  const n = t[J];
2329
2383
  return (n ? kt(n) : t)[r];
2330
2384
  }
2331
2385
  function aa(t, r, n) {
2332
2386
  var o;
2333
- const a = ri(r, n);
2334
- return a ? "value" in a ? a.value : (
2387
+ const i = ni(r, n);
2388
+ return i ? "value" in i ? i.value : (
2335
2389
  // This is a very special case, if the prop is a getter defined by the
2336
2390
  // prototype, we should invoke it with the draft as context!
2337
- (o = a.get) == null ? void 0 : o.call(t.draft_)
2391
+ (o = i.get) == null ? void 0 : o.call(t.draft_)
2338
2392
  ) : void 0;
2339
2393
  }
2340
- function ri(t, r) {
2394
+ function ni(t, r) {
2341
2395
  if (!(r in t))
2342
2396
  return;
2343
2397
  let n = Ot(t);
2344
2398
  for (; n; ) {
2345
- const a = Object.getOwnPropertyDescriptor(n, r);
2346
- if (a)
2347
- return a;
2399
+ const i = Object.getOwnPropertyDescriptor(n, r);
2400
+ if (i)
2401
+ return i;
2348
2402
  n = Ot(n);
2349
2403
  }
2350
2404
  }
2351
- function hn(t) {
2352
- t.modified_ || (t.modified_ = !0, t.parent_ && hn(t.parent_));
2405
+ function yn(t) {
2406
+ t.modified_ || (t.modified_ = !0, t.parent_ && yn(t.parent_));
2353
2407
  }
2354
- function tn(t) {
2355
- t.copy_ || (t.copy_ = fn(
2408
+ function rn(t) {
2409
+ t.copy_ || (t.copy_ = ln(
2356
2410
  t.base_,
2357
2411
  t.scope_.immer_.useStrictShallowCopy_
2358
2412
  ));
2359
2413
  }
2360
2414
  var sa = class {
2361
2415
  constructor(t) {
2362
- this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.produce = (r, n, a) => {
2416
+ this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.produce = (r, n, i) => {
2363
2417
  if (typeof r == "function" && typeof n != "function") {
2364
2418
  const c = n;
2365
2419
  n = r;
2366
2420
  const l = this;
2367
- return function(E = c, ...D) {
2368
- return l.produce(E, (w) => n.call(this, w, ...D));
2421
+ return function(E = c, ...j) {
2422
+ return l.produce(E, (S) => n.call(this, S, ...j));
2369
2423
  };
2370
2424
  }
2371
- typeof n != "function" && G(6), a !== void 0 && typeof a != "function" && G(7);
2425
+ typeof n != "function" && G(6), i !== void 0 && typeof i != "function" && G(7);
2372
2426
  let o;
2373
- if (_t(r)) {
2374
- const c = jn(this), l = yn(r, void 0);
2427
+ if (gt(r)) {
2428
+ const c = Cn(this), l = mn(r, void 0);
2375
2429
  let d = !0;
2376
2430
  try {
2377
2431
  o = n(l), d = !1;
2378
2432
  } finally {
2379
- d ? pn(c) : dn(c);
2433
+ d ? dn(c) : hn(c);
2380
2434
  }
2381
- return Cn(c, a), Fn(o, c);
2435
+ return Dn(c, i), jn(o, c);
2382
2436
  } else if (!r || typeof r != "object") {
2383
- if (o = n(r), o === void 0 && (o = r), o === gn && (o = void 0), this.autoFreeze_ && vn(o, !0), a) {
2437
+ if (o = n(r), o === void 0 && (o = r), o === gn && (o = void 0), this.autoFreeze_ && _n(o, !0), i) {
2384
2438
  const c = [], l = [];
2385
- Pt("Patches").generateReplacementPatches_(r, o, c, l), a(c, l);
2439
+ Pt("Patches").generateReplacementPatches_(r, o, c, l), i(c, l);
2386
2440
  }
2387
2441
  return o;
2388
2442
  } else
@@ -2390,22 +2444,22 @@ var sa = class {
2390
2444
  }, this.produceWithPatches = (r, n) => {
2391
2445
  if (typeof r == "function")
2392
2446
  return (l, ...d) => this.produceWithPatches(l, (E) => r(E, ...d));
2393
- let a, o;
2447
+ let i, o;
2394
2448
  return [this.produce(r, n, (l, d) => {
2395
- a = l, o = d;
2396
- }), a, o];
2449
+ i = l, o = d;
2450
+ }), i, o];
2397
2451
  }, typeof (t == null ? void 0 : t.autoFreeze) == "boolean" && this.setAutoFreeze(t.autoFreeze), typeof (t == null ? void 0 : t.useStrictShallowCopy) == "boolean" && this.setUseStrictShallowCopy(t.useStrictShallowCopy);
2398
2452
  }
2399
2453
  createDraft(t) {
2400
- _t(t) || G(8), xt(t) && (t = oa(t));
2401
- const r = jn(this), n = yn(t, void 0);
2402
- return n[J].isManual_ = !0, dn(r), n;
2454
+ gt(t) || G(8), xt(t) && (t = oa(t));
2455
+ const r = Cn(this), n = mn(t, void 0);
2456
+ return n[J].isManual_ = !0, hn(r), n;
2403
2457
  }
2404
2458
  finishDraft(t, r) {
2405
2459
  const n = t && t[J];
2406
2460
  (!n || !n.isManual_) && G(9);
2407
- const { scope_: a } = n;
2408
- return Cn(a, r), Fn(void 0, a);
2461
+ const { scope_: i } = n;
2462
+ return Dn(i, r), jn(void 0, i);
2409
2463
  }
2410
2464
  /**
2411
2465
  * Pass true to automatically freeze all copies created by Immer.
@@ -2433,227 +2487,227 @@ var sa = class {
2433
2487
  }
2434
2488
  }
2435
2489
  n > -1 && (r = r.slice(n + 1));
2436
- const a = Pt("Patches").applyPatches_;
2437
- return xt(t) ? a(t, r) : this.produce(
2490
+ const i = Pt("Patches").applyPatches_;
2491
+ return xt(t) ? i(t, r) : this.produce(
2438
2492
  t,
2439
- (o) => a(o, r)
2493
+ (o) => i(o, r)
2440
2494
  );
2441
2495
  }
2442
2496
  };
2443
- function yn(t, r) {
2444
- const n = me(t) ? Pt("MapSet").proxyMap_(t, r) : be(t) ? Pt("MapSet").proxySet_(t, r) : ia(t, r);
2445
- return (r ? r.scope_ : ei()).drafts_.push(n), n;
2497
+ function mn(t, r) {
2498
+ const n = _e(t) ? Pt("MapSet").proxyMap_(t, r) : ve(t) ? Pt("MapSet").proxySet_(t, r) : ia(t, r);
2499
+ return (r ? r.scope_ : ri()).drafts_.push(n), n;
2446
2500
  }
2447
2501
  function oa(t) {
2448
- return xt(t) || G(10, t), ni(t);
2502
+ return xt(t) || G(10, t), ii(t);
2449
2503
  }
2450
- function ni(t) {
2451
- if (!_t(t) || tr(t))
2504
+ function ii(t) {
2505
+ if (!gt(t) || nr(t))
2452
2506
  return t;
2453
2507
  const r = t[J];
2454
2508
  let n;
2455
2509
  if (r) {
2456
2510
  if (!r.modified_)
2457
2511
  return r.base_;
2458
- r.finalized_ = !0, n = fn(t, r.scope_.immer_.useStrictShallowCopy_);
2512
+ r.finalized_ = !0, n = ln(t, r.scope_.immer_.useStrictShallowCopy_);
2459
2513
  } else
2460
- n = fn(t, !0);
2461
- return le(n, (a, o) => {
2462
- ti(n, a, ni(o));
2514
+ n = ln(t, !0);
2515
+ return de(n, (i, o) => {
2516
+ ei(n, i, ii(o));
2463
2517
  }), r && (r.finalized_ = !1), n;
2464
2518
  }
2465
- function zn() {
2466
- process.env.NODE_ENV !== "production" && Zn.push(
2519
+ function Rn() {
2520
+ process.env.NODE_ENV !== "production" && Qn.push(
2467
2521
  'Sets cannot have "replace" patches.',
2468
- function(h) {
2469
- return "Unsupported patch operation: " + h;
2522
+ function(y) {
2523
+ return "Unsupported patch operation: " + y;
2470
2524
  },
2471
- function(h) {
2472
- return "Cannot apply patch, path doesn't resolve: " + h;
2525
+ function(y) {
2526
+ return "Cannot apply patch, path doesn't resolve: " + y;
2473
2527
  },
2474
2528
  "Patching reserved attributes like __proto__, prototype and constructor is not allowed"
2475
2529
  );
2476
- const r = "replace", n = "add", a = "remove";
2477
- function o(h, p, g, f) {
2478
- switch (h.type_) {
2530
+ const r = "replace", n = "add", i = "remove";
2531
+ function o(y, p, h, f) {
2532
+ switch (y.type_) {
2479
2533
  case 0:
2480
2534
  case 2:
2481
2535
  return l(
2482
- h,
2536
+ y,
2483
2537
  p,
2484
- g,
2538
+ h,
2485
2539
  f
2486
2540
  );
2487
2541
  case 1:
2488
- return c(h, p, g, f);
2542
+ return c(y, p, h, f);
2489
2543
  case 3:
2490
2544
  return d(
2491
- h,
2545
+ y,
2492
2546
  p,
2493
- g,
2547
+ h,
2494
2548
  f
2495
2549
  );
2496
2550
  }
2497
2551
  }
2498
- function c(h, p, g, f) {
2499
- let { base_: v, assigned_: b } = h, _ = h.copy_;
2500
- _.length < v.length && ([v, _] = [_, v], [g, f] = [f, g]);
2501
- for (let m = 0; m < v.length; m++)
2502
- if (b[m] && _[m] !== v[m]) {
2503
- const y = p.concat([m]);
2504
- g.push({
2552
+ function c(y, p, h, f) {
2553
+ let { base_: g, assigned_: v } = y, _ = y.copy_;
2554
+ _.length < g.length && ([g, _] = [_, g], [h, f] = [f, h]);
2555
+ for (let b = 0; b < g.length; b++)
2556
+ if (v[b] && _[b] !== g[b]) {
2557
+ const m = p.concat([b]);
2558
+ h.push({
2505
2559
  op: r,
2506
- path: y,
2560
+ path: m,
2507
2561
  // Need to maybe clone it, as it can in fact be the original value
2508
2562
  // due to the base/copy inversion at the start of this function
2509
- value: z(_[m])
2563
+ value: N(_[b])
2510
2564
  }), f.push({
2511
2565
  op: r,
2512
- path: y,
2513
- value: z(v[m])
2566
+ path: m,
2567
+ value: N(g[b])
2514
2568
  });
2515
2569
  }
2516
- for (let m = v.length; m < _.length; m++) {
2517
- const y = p.concat([m]);
2518
- g.push({
2570
+ for (let b = g.length; b < _.length; b++) {
2571
+ const m = p.concat([b]);
2572
+ h.push({
2519
2573
  op: n,
2520
- path: y,
2574
+ path: m,
2521
2575
  // Need to maybe clone it, as it can in fact be the original value
2522
2576
  // due to the base/copy inversion at the start of this function
2523
- value: z(_[m])
2577
+ value: N(_[b])
2524
2578
  });
2525
2579
  }
2526
- for (let m = _.length - 1; v.length <= m; --m) {
2527
- const y = p.concat([m]);
2580
+ for (let b = _.length - 1; g.length <= b; --b) {
2581
+ const m = p.concat([b]);
2528
2582
  f.push({
2529
- op: a,
2530
- path: y
2583
+ op: i,
2584
+ path: m
2531
2585
  });
2532
2586
  }
2533
2587
  }
2534
- function l(h, p, g, f) {
2535
- const { base_: v, copy_: b } = h;
2536
- le(h.assigned_, (_, m) => {
2537
- const y = Zr(v, _), F = Zr(b, _), k = m ? pe(v, _) ? r : n : a;
2538
- if (y === F && k === r)
2588
+ function l(y, p, h, f) {
2589
+ const { base_: g, copy_: v } = y;
2590
+ de(y.assigned_, (_, b) => {
2591
+ const m = tn(g, _), H = tn(v, _), O = b ? he(g, _) ? r : n : i;
2592
+ if (m === H && O === r)
2539
2593
  return;
2540
- const M = p.concat(_);
2541
- g.push(k === a ? { op: k, path: M } : { op: k, path: M, value: F }), f.push(
2542
- k === n ? { op: a, path: M } : k === a ? { op: n, path: M, value: z(y) } : { op: r, path: M, value: z(y) }
2594
+ const k = p.concat(_);
2595
+ h.push(O === i ? { op: O, path: k } : { op: O, path: k, value: H }), f.push(
2596
+ O === n ? { op: i, path: k } : O === i ? { op: n, path: k, value: N(m) } : { op: r, path: k, value: N(m) }
2543
2597
  );
2544
2598
  });
2545
2599
  }
2546
- function d(h, p, g, f) {
2547
- let { base_: v, copy_: b } = h, _ = 0;
2548
- v.forEach((m) => {
2549
- if (!b.has(m)) {
2550
- const y = p.concat([_]);
2551
- g.push({
2552
- op: a,
2553
- path: y,
2554
- value: m
2600
+ function d(y, p, h, f) {
2601
+ let { base_: g, copy_: v } = y, _ = 0;
2602
+ g.forEach((b) => {
2603
+ if (!v.has(b)) {
2604
+ const m = p.concat([_]);
2605
+ h.push({
2606
+ op: i,
2607
+ path: m,
2608
+ value: b
2555
2609
  }), f.unshift({
2556
2610
  op: n,
2557
- path: y,
2558
- value: m
2611
+ path: m,
2612
+ value: b
2559
2613
  });
2560
2614
  }
2561
2615
  _++;
2562
- }), _ = 0, b.forEach((m) => {
2563
- if (!v.has(m)) {
2564
- const y = p.concat([_]);
2565
- g.push({
2616
+ }), _ = 0, v.forEach((b) => {
2617
+ if (!g.has(b)) {
2618
+ const m = p.concat([_]);
2619
+ h.push({
2566
2620
  op: n,
2567
- path: y,
2568
- value: m
2621
+ path: m,
2622
+ value: b
2569
2623
  }), f.unshift({
2570
- op: a,
2571
- path: y,
2572
- value: m
2624
+ op: i,
2625
+ path: m,
2626
+ value: b
2573
2627
  });
2574
2628
  }
2575
2629
  _++;
2576
2630
  });
2577
2631
  }
2578
- function E(h, p, g, f) {
2579
- g.push({
2632
+ function E(y, p, h, f) {
2633
+ h.push({
2580
2634
  op: r,
2581
2635
  path: [],
2582
2636
  value: p === gn ? void 0 : p
2583
2637
  }), f.push({
2584
2638
  op: r,
2585
2639
  path: [],
2586
- value: h
2640
+ value: y
2587
2641
  });
2588
2642
  }
2589
- function D(h, p) {
2590
- return p.forEach((g) => {
2591
- const { path: f, op: v } = g;
2592
- let b = h;
2593
- for (let F = 0; F < f.length - 1; F++) {
2594
- const k = Mt(b);
2595
- let M = f[F];
2596
- typeof M != "string" && typeof M != "number" && (M = "" + M), (k === 0 || k === 1) && (M === "__proto__" || M === "constructor") && G(19), typeof b == "function" && M === "prototype" && G(19), b = Zr(b, M), typeof b != "object" && G(18, f.join("/"));
2643
+ function j(y, p) {
2644
+ return p.forEach((h) => {
2645
+ const { path: f, op: g } = h;
2646
+ let v = y;
2647
+ for (let H = 0; H < f.length - 1; H++) {
2648
+ const O = Mt(v);
2649
+ let k = f[H];
2650
+ typeof k != "string" && typeof k != "number" && (k = "" + k), (O === 0 || O === 1) && (k === "__proto__" || k === "constructor") && G(19), typeof v == "function" && k === "prototype" && G(19), v = tn(v, k), typeof v != "object" && G(18, f.join("/"));
2597
2651
  }
2598
- const _ = Mt(b), m = w(g.value), y = f[f.length - 1];
2599
- switch (v) {
2652
+ const _ = Mt(v), b = S(h.value), m = f[f.length - 1];
2653
+ switch (g) {
2600
2654
  case r:
2601
2655
  switch (_) {
2602
2656
  case 2:
2603
- return b.set(y, m);
2657
+ return v.set(m, b);
2604
2658
  case 3:
2605
2659
  G(16);
2606
2660
  default:
2607
- return b[y] = m;
2661
+ return v[m] = b;
2608
2662
  }
2609
2663
  case n:
2610
2664
  switch (_) {
2611
2665
  case 1:
2612
- return y === "-" ? b.push(m) : b.splice(y, 0, m);
2666
+ return m === "-" ? v.push(b) : v.splice(m, 0, b);
2613
2667
  case 2:
2614
- return b.set(y, m);
2668
+ return v.set(m, b);
2615
2669
  case 3:
2616
- return b.add(m);
2670
+ return v.add(b);
2617
2671
  default:
2618
- return b[y] = m;
2672
+ return v[m] = b;
2619
2673
  }
2620
- case a:
2674
+ case i:
2621
2675
  switch (_) {
2622
2676
  case 1:
2623
- return b.splice(y, 1);
2677
+ return v.splice(m, 1);
2624
2678
  case 2:
2625
- return b.delete(y);
2679
+ return v.delete(m);
2626
2680
  case 3:
2627
- return b.delete(g.value);
2681
+ return v.delete(h.value);
2628
2682
  default:
2629
- return delete b[y];
2683
+ return delete v[m];
2630
2684
  }
2631
2685
  default:
2632
- G(17, v);
2686
+ G(17, g);
2633
2687
  }
2634
- }), h;
2635
- }
2636
- function w(h) {
2637
- if (!_t(h))
2638
- return h;
2639
- if (Array.isArray(h))
2640
- return h.map(w);
2641
- if (me(h))
2688
+ }), y;
2689
+ }
2690
+ function S(y) {
2691
+ if (!gt(y))
2692
+ return y;
2693
+ if (Array.isArray(y))
2694
+ return y.map(S);
2695
+ if (_e(y))
2642
2696
  return new Map(
2643
- Array.from(h.entries()).map(([g, f]) => [g, w(f)])
2697
+ Array.from(y.entries()).map(([h, f]) => [h, S(f)])
2644
2698
  );
2645
- if (be(h))
2646
- return new Set(Array.from(h).map(w));
2647
- const p = Object.create(Ot(h));
2648
- for (const g in h)
2649
- p[g] = w(h[g]);
2650
- return pe(h, fe) && (p[fe] = h[fe]), p;
2699
+ if (ve(y))
2700
+ return new Set(Array.from(y).map(S));
2701
+ const p = Object.create(Ot(y));
2702
+ for (const h in y)
2703
+ p[h] = S(y[h]);
2704
+ return he(y, pe) && (p[pe] = y[pe]), p;
2651
2705
  }
2652
- function z(h) {
2653
- return xt(h) ? w(h) : h;
2706
+ function N(y) {
2707
+ return xt(y) ? S(y) : y;
2654
2708
  }
2655
2709
  ea("Patches", {
2656
- applyPatches_: D,
2710
+ applyPatches_: j,
2657
2711
  generatePatches_: o,
2658
2712
  generateReplacementPatches_: E
2659
2713
  });
@@ -2667,8 +2721,8 @@ Z.setUseStrictShallowCopy.bind(Z);
2667
2721
  var ua = Z.applyPatches.bind(Z);
2668
2722
  Z.createDraft.bind(Z);
2669
2723
  Z.finishDraft.bind(Z);
2670
- var fa = 1 / 0, la = 9007199254740991, pa = "[object Arguments]", da = "[object Function]", ha = "[object GeneratorFunction]", ya = "[object Symbol]", ma = typeof et == "object" && et && et.Object === Object && et, ba = typeof self == "object" && self && self.Object === Object && self, _a = ma || ba || Function("return this")();
2671
- function ga(t, r, n) {
2724
+ var fa = 1 / 0, la = 9007199254740991, pa = "[object Arguments]", da = "[object Function]", ha = "[object GeneratorFunction]", ya = "[object Symbol]", ma = typeof et == "object" && et && et.Object === Object && et, ba = typeof self == "object" && self && self.Object === Object && self, ga = ma || ba || Function("return this")();
2725
+ function _a(t, r, n) {
2672
2726
  switch (n.length) {
2673
2727
  case 0:
2674
2728
  return t.call(r);
@@ -2682,17 +2736,17 @@ function ga(t, r, n) {
2682
2736
  return t.apply(r, n);
2683
2737
  }
2684
2738
  function va(t, r) {
2685
- for (var n = -1, a = t ? t.length : 0, o = Array(a); ++n < a; )
2739
+ for (var n = -1, i = t ? t.length : 0, o = Array(i); ++n < i; )
2686
2740
  o[n] = r(t[n], n, t);
2687
2741
  return o;
2688
2742
  }
2689
2743
  function Ia(t, r) {
2690
- for (var n = -1, a = r.length, o = t.length; ++n < a; )
2744
+ for (var n = -1, i = r.length, o = t.length; ++n < i; )
2691
2745
  t[o + n] = r[n];
2692
2746
  return t;
2693
2747
  }
2694
- var Sn = Object.prototype, Sa = Sn.hasOwnProperty, wn = Sn.toString, Nn = _a.Symbol, wa = Sn.propertyIsEnumerable, Hn = Nn ? Nn.isConcatSpreadable : void 0, Ln = Math.max;
2695
- function Ta(t, r, n, a, o) {
2748
+ var In = Object.prototype, Sa = In.hasOwnProperty, Sn = In.toString, zn = ga.Symbol, wa = In.propertyIsEnumerable, Hn = zn ? zn.isConcatSpreadable : void 0, Nn = Math.max;
2749
+ function Ta(t, r, n, i, o) {
2696
2750
  var c = -1, l = t.length;
2697
2751
  for (n || (n = Oa), o || (o = []); ++c < l; ) {
2698
2752
  var d = t[c];
@@ -2701,25 +2755,25 @@ function Ta(t, r, n, a, o) {
2701
2755
  return o;
2702
2756
  }
2703
2757
  function Aa(t, r) {
2704
- return t = Object(t), Ea(t, r, function(n, a) {
2705
- return a in t;
2758
+ return t = Object(t), Ea(t, r, function(n, i) {
2759
+ return i in t;
2706
2760
  });
2707
2761
  }
2708
2762
  function Ea(t, r, n) {
2709
- for (var a = -1, o = r.length, c = {}; ++a < o; ) {
2710
- var l = r[a], d = t[l];
2763
+ for (var i = -1, o = r.length, c = {}; ++i < o; ) {
2764
+ var l = r[i], d = t[l];
2711
2765
  n(d, l) && (c[l] = d);
2712
2766
  }
2713
2767
  return c;
2714
2768
  }
2715
2769
  function ka(t, r) {
2716
- return r = Ln(r === void 0 ? t.length - 1 : r, 0), function() {
2717
- for (var n = arguments, a = -1, o = Ln(n.length - r, 0), c = Array(o); ++a < o; )
2718
- c[a] = n[r + a];
2719
- a = -1;
2720
- for (var l = Array(r + 1); ++a < r; )
2721
- l[a] = n[a];
2722
- return l[r] = c, ga(t, this, l);
2770
+ return r = Nn(r === void 0 ? t.length - 1 : r, 0), function() {
2771
+ for (var n = arguments, i = -1, o = Nn(n.length - r, 0), c = Array(o); ++i < o; )
2772
+ c[i] = n[r + i];
2773
+ i = -1;
2774
+ for (var l = Array(r + 1); ++i < r; )
2775
+ l[i] = n[i];
2776
+ return l[r] = c, _a(t, this, l);
2723
2777
  };
2724
2778
  }
2725
2779
  function Oa(t) {
@@ -2732,17 +2786,17 @@ function xa(t) {
2732
2786
  return r == "0" && 1 / t == -fa ? "-0" : r;
2733
2787
  }
2734
2788
  function Ma(t) {
2735
- return Ca(t) && Sa.call(t, "callee") && (!wa.call(t, "callee") || wn.call(t) == pa);
2789
+ return Ca(t) && Sa.call(t, "callee") && (!wa.call(t, "callee") || Sn.call(t) == pa);
2736
2790
  }
2737
2791
  var Pa = Array.isArray;
2738
2792
  function Da(t) {
2739
2793
  return t != null && Fa(t.length) && !ja(t);
2740
2794
  }
2741
2795
  function Ca(t) {
2742
- return ii(t) && Da(t);
2796
+ return ai(t) && Da(t);
2743
2797
  }
2744
2798
  function ja(t) {
2745
- var r = Ra(t) ? wn.call(t) : "";
2799
+ var r = Ra(t) ? Sn.call(t) : "";
2746
2800
  return r == da || r == ha;
2747
2801
  }
2748
2802
  function Fa(t) {
@@ -2752,16 +2806,16 @@ function Ra(t) {
2752
2806
  var r = typeof t;
2753
2807
  return !!t && (r == "object" || r == "function");
2754
2808
  }
2755
- function ii(t) {
2809
+ function ai(t) {
2756
2810
  return !!t && typeof t == "object";
2757
2811
  }
2758
2812
  function za(t) {
2759
- return typeof t == "symbol" || ii(t) && wn.call(t) == ya;
2813
+ return typeof t == "symbol" || ai(t) && Sn.call(t) == ya;
2760
2814
  }
2761
- var Na = ka(function(t, r) {
2815
+ var Ha = ka(function(t, r) {
2762
2816
  return t == null ? {} : Aa(t, va(Ta(r), xa));
2763
- }), Ha = Na;
2764
- const Un = /* @__PURE__ */ mn(Ha), La = {
2817
+ }), Na = Ha;
2818
+ const Un = /* @__PURE__ */ bn(Na), Ua = {
2765
2819
  tracks: [],
2766
2820
  trackItemIds: [],
2767
2821
  trackItemsMap: {},
@@ -2775,7 +2829,7 @@ const Un = /* @__PURE__ */ mn(Ha), La = {
2775
2829
  duration: 0,
2776
2830
  activeIds: [],
2777
2831
  trackItemDetailsMap: {}
2778
- }, Gn = [
2832
+ }, Ln = [
2779
2833
  "tracks",
2780
2834
  "trackItemsMap",
2781
2835
  "trackItemDetailsMap",
@@ -2783,7 +2837,7 @@ const Un = /* @__PURE__ */ mn(Ha), La = {
2783
2837
  "transitionsMap",
2784
2838
  "trackItemIds"
2785
2839
  ];
2786
- class Ba {
2840
+ class Wa {
2787
2841
  constructor(r) {
2788
2842
  Et(this, "stateSubject");
2789
2843
  Et(this, "stateHistorySubject");
@@ -2791,8 +2845,8 @@ class Ba {
2791
2845
  Et(this, "undos", []);
2792
2846
  Et(this, "redos", []);
2793
2847
  Et(this, "listener");
2794
- const n = r || La;
2795
- this.stateSubject = new Mn(n), this.stateHistorySubject = new Mn({
2848
+ const n = r || Ua;
2849
+ this.stateSubject = new xn(n), this.stateHistorySubject = new xn({
2796
2850
  handleRedo: !1,
2797
2851
  handleUndo: !1
2798
2852
  }), this.prevState = n, this.initListeners();
@@ -2807,7 +2861,7 @@ class Ba {
2807
2861
  this.destroyListeners();
2808
2862
  }
2809
2863
  updateHistory(r, n) {
2810
- const a = Un(r, Gn), o = Un(this.getState(), Gn), c = Jn(o, a);
2864
+ const i = Un(r, Ln), o = Un(this.getState(), Ln), c = Zn(o, i);
2811
2865
  c.length && (this.undos.push({ undos: c, type: n }), this.redos = []);
2812
2866
  }
2813
2867
  getStateHistory() {
@@ -2826,11 +2880,11 @@ class Ba {
2826
2880
  }
2827
2881
  // Update the state, emitting only if the part of the state has changed
2828
2882
  updateState(r, n = { updateHistory: !1 }) {
2829
- const a = this.getState(), o = {
2830
- ...a,
2883
+ const i = this.getState(), o = {
2884
+ ...i,
2831
2885
  ...r
2832
2886
  };
2833
- ft(a, o) || (n.updateHistory && this.updateHistory(o, n.kind), this.prevState = a, this.stateSubject.next(o));
2887
+ ft(i, o) || (n.updateHistory && this.updateHistory(o, n.kind), this.prevState = i, this.stateSubject.next(o));
2834
2888
  }
2835
2889
  // Selectively subscribe to scale changes
2836
2890
  subscribeToScale(r) {
@@ -2852,12 +2906,12 @@ class Ba {
2852
2906
  subscribeToHistory(r) {
2853
2907
  return this.stateHistorySubject.asObservable().subscribe((n) => {
2854
2908
  if (n.handleRedo) {
2855
- const a = this.undos[this.undos.length - 1].type;
2856
- a === "update" && r({ ...this.getState(), type: a }), this.stateHistorySubject.next({ handleRedo: !1, handleUndo: !1 });
2909
+ const i = this.undos[this.undos.length - 1].type;
2910
+ i === "update" && r({ ...this.getState(), type: i }), this.stateHistorySubject.next({ handleRedo: !1, handleUndo: !1 });
2857
2911
  }
2858
2912
  if (n.handleUndo) {
2859
- const a = this.redos[this.redos.length - 1].type;
2860
- a === "update" && r({ ...this.getState(), type: a }), this.stateHistorySubject.next({ handleRedo: !1, handleUndo: !1 });
2913
+ const i = this.redos[this.redos.length - 1].type;
2914
+ i === "update" && r({ ...this.getState(), type: i }), this.stateHistorySubject.next({ handleRedo: !1, handleUndo: !1 });
2861
2915
  }
2862
2916
  });
2863
2917
  }
@@ -2886,139 +2940,139 @@ class Ba {
2886
2940
  });
2887
2941
  }
2888
2942
  undo() {
2889
- const r = this.undos.pop(), n = r == null ? void 0 : r.undos, a = r == null ? void 0 : r.type;
2890
- if (!n || !a) return;
2891
- zn();
2943
+ const r = this.undos.pop(), n = r == null ? void 0 : r.undos, i = r == null ? void 0 : r.type;
2944
+ if (!n || !i) return;
2945
+ Rn();
2892
2946
  const {
2893
2947
  trackItemDetailsMap: o,
2894
2948
  trackItemIds: c,
2895
2949
  tracks: l,
2896
2950
  transitionIds: d,
2897
2951
  transitionsMap: E,
2898
- trackItemsMap: D
2899
- } = this.getState(), w = tt({
2952
+ trackItemsMap: j
2953
+ } = this.getState(), S = tt({
2900
2954
  trackItemDetailsMap: o,
2901
2955
  trackItemIds: c,
2902
2956
  tracks: l,
2903
2957
  transitionIds: d,
2904
2958
  transitionsMap: E,
2905
- trackItemsMap: D
2906
- }), z = [], h = [], p = [], g = [], f = [], v = [];
2907
- n.forEach((S) => {
2908
- let T;
2909
- const H = S.path.slice(1);
2910
- S.type === "CREATE" ? T = {
2911
- path: H,
2959
+ trackItemsMap: j
2960
+ }), N = [], y = [], p = [], h = [], f = [], g = [];
2961
+ n.forEach((T) => {
2962
+ let x;
2963
+ const F = T.path.slice(1);
2964
+ T.type === "CREATE" ? x = {
2965
+ path: F,
2912
2966
  op: "remove",
2913
- value: S.value
2914
- } : S.type === "CHANGE" ? T = {
2915
- path: H,
2967
+ value: T.value
2968
+ } : T.type === "CHANGE" ? x = {
2969
+ path: F,
2916
2970
  op: "replace",
2917
- value: S.oldValue
2918
- } : T = {
2919
- path: H,
2971
+ value: T.oldValue
2972
+ } : x = {
2973
+ path: F,
2920
2974
  op: "add",
2921
- value: S.oldValue
2922
- }, S.path.includes("trackItemIds") ? p.push(T) : S.path.includes("transitionIds") ? h.push(T) : S.path.includes("trackItemsMap") ? f.push(T) : S.path.includes("transitionsMap") ? g.push(T) : S.path.includes("tracks") ? z.push(T) : S.path.includes("trackItemDetailsMap") && v.push(T);
2975
+ value: T.oldValue
2976
+ }, T.path.includes("trackItemIds") ? p.push(x) : T.path.includes("transitionIds") ? y.push(x) : T.path.includes("trackItemsMap") ? f.push(x) : T.path.includes("transitionsMap") ? h.push(x) : T.path.includes("tracks") ? N.push(x) : T.path.includes("trackItemDetailsMap") && g.push(x);
2923
2977
  });
2924
- const b = this.applyPatch(
2925
- w.tracks,
2926
- z
2978
+ const v = this.applyPatch(
2979
+ S.tracks,
2980
+ N
2927
2981
  ), _ = this.applyPatch(
2928
- w.transitionIds,
2929
- h
2930
- ), m = this.applyPatch(
2931
- w.trackItemIds,
2982
+ S.transitionIds,
2983
+ y
2984
+ ), b = this.applyPatch(
2985
+ S.trackItemIds,
2932
2986
  p
2933
- ), y = this.applyPatch(
2934
- w.transitionsMap,
2935
- g
2936
- ), F = this.applyPatch(
2937
- w.trackItemsMap,
2987
+ ), m = this.applyPatch(
2988
+ S.transitionsMap,
2989
+ h
2990
+ ), H = this.applyPatch(
2991
+ S.trackItemsMap,
2938
2992
  f
2939
- ), k = this.applyPatch(
2940
- w.trackItemDetailsMap,
2941
- v
2942
- ), M = tt({
2943
- tracks: b,
2993
+ ), O = this.applyPatch(
2994
+ S.trackItemDetailsMap,
2995
+ g
2996
+ ), k = tt({
2997
+ tracks: v,
2944
2998
  transitionIds: _,
2945
- trackItemIds: m,
2946
- transitionsMap: y,
2947
- trackItemsMap: F,
2948
- trackItemDetailsMap: k
2949
- }), N = tt(this.getState()), R = { ...N, ...M };
2950
- this.prevState = N, this.redos.push({ redos: n, type: a }), this.stateSubject.next(R), this.stateHistorySubject.next({ handleRedo: !1, handleUndo: !0 });
2999
+ trackItemIds: b,
3000
+ transitionsMap: m,
3001
+ trackItemsMap: H,
3002
+ trackItemDetailsMap: O
3003
+ }), D = tt(this.getState()), w = { ...D, ...k };
3004
+ this.prevState = D, this.redos.push({ redos: n, type: i }), this.stateSubject.next(w), this.stateHistorySubject.next({ handleRedo: !1, handleUndo: !0 });
2951
3005
  }
2952
3006
  applyPatch(r, n) {
2953
- return n.reverse().reduce((a, o) => ca(a, (c) => {
3007
+ return n.reverse().reduce((i, o) => ca(i, (c) => {
2954
3008
  ua(c, [o]);
2955
3009
  }), r);
2956
3010
  }
2957
3011
  redo() {
2958
- const r = this.redos.pop(), n = r == null ? void 0 : r.redos, a = r == null ? void 0 : r.type;
2959
- if (!n || !a) return;
2960
- zn();
3012
+ const r = this.redos.pop(), n = r == null ? void 0 : r.redos, i = r == null ? void 0 : r.type;
3013
+ if (!n || !i) return;
3014
+ Rn();
2961
3015
  const {
2962
3016
  trackItemDetailsMap: o,
2963
3017
  trackItemIds: c,
2964
3018
  tracks: l,
2965
3019
  transitionIds: d,
2966
3020
  transitionsMap: E,
2967
- trackItemsMap: D
2968
- } = this.getState(), w = tt({
3021
+ trackItemsMap: j
3022
+ } = this.getState(), S = tt({
2969
3023
  trackItemDetailsMap: o,
2970
3024
  trackItemIds: c,
2971
3025
  tracks: l,
2972
3026
  transitionIds: d,
2973
3027
  transitionsMap: E,
2974
- trackItemsMap: D
2975
- }), z = [], h = [], p = [], g = [], f = [], v = [];
2976
- n.forEach((S) => {
2977
- let T;
2978
- const H = S.path.slice(1);
2979
- S.type === "CREATE" ? T = {
2980
- path: H,
3028
+ trackItemsMap: j
3029
+ }), N = [], y = [], p = [], h = [], f = [], g = [];
3030
+ n.forEach((T) => {
3031
+ let x;
3032
+ const F = T.path.slice(1);
3033
+ T.type === "CREATE" ? x = {
3034
+ path: F,
2981
3035
  op: "add",
2982
- value: S.value
2983
- } : S.type === "CHANGE" ? T = {
2984
- path: H,
3036
+ value: T.value
3037
+ } : T.type === "CHANGE" ? x = {
3038
+ path: F,
2985
3039
  op: "replace",
2986
- value: S.value
2987
- } : T = {
2988
- path: H,
3040
+ value: T.value
3041
+ } : x = {
3042
+ path: F,
2989
3043
  op: "remove",
2990
- value: S.oldValue
2991
- }, S.path.includes("trackItemIds") ? p.push(T) : S.path.includes("transitionIds") ? h.push(T) : S.path.includes("trackItemsMap") ? f.push(T) : S.path.includes("transitionsMap") ? g.push(T) : S.path.includes("trackItemDetailsMap") ? v.push(T) : z.push(T);
3044
+ value: T.oldValue
3045
+ }, T.path.includes("trackItemIds") ? p.push(x) : T.path.includes("transitionIds") ? y.push(x) : T.path.includes("trackItemsMap") ? f.push(x) : T.path.includes("transitionsMap") ? h.push(x) : T.path.includes("trackItemDetailsMap") ? g.push(x) : N.push(x);
2992
3046
  });
2993
- const b = this.applyPatch(
2994
- w.tracks,
2995
- z
3047
+ const v = this.applyPatch(
3048
+ S.tracks,
3049
+ N
2996
3050
  ), _ = this.applyPatch(
2997
- w.transitionIds,
2998
- h
2999
- ), m = this.applyPatch(
3000
- w.trackItemIds,
3051
+ S.transitionIds,
3052
+ y
3053
+ ), b = this.applyPatch(
3054
+ S.trackItemIds,
3001
3055
  p
3002
- ), y = this.applyPatch(
3003
- w.transitionsMap,
3004
- g
3005
- ), F = this.applyPatch(
3006
- w.trackItemsMap,
3056
+ ), m = this.applyPatch(
3057
+ S.transitionsMap,
3058
+ h
3059
+ ), H = this.applyPatch(
3060
+ S.trackItemsMap,
3007
3061
  f
3008
- ), k = this.applyPatch(
3009
- w.trackItemDetailsMap,
3010
- v
3011
- ), M = tt({
3012
- tracks: b,
3062
+ ), O = this.applyPatch(
3063
+ S.trackItemDetailsMap,
3064
+ g
3065
+ ), k = tt({
3066
+ tracks: v,
3013
3067
  transitionIds: _,
3014
- trackItemIds: m,
3015
- transitionsMap: y,
3016
- trackItemsMap: F,
3017
- trackItemDetailsMap: k
3018
- }), N = tt(this.getState()), R = { ...N, ...M };
3019
- this.prevState = N, this.undos.push({ undos: n, type: a }), this.stateSubject.next(R), this.stateHistorySubject.next({ handleRedo: !0, handleUndo: !1 });
3068
+ trackItemIds: b,
3069
+ transitionsMap: m,
3070
+ trackItemsMap: H,
3071
+ trackItemDetailsMap: O
3072
+ }), D = tt(this.getState()), w = { ...D, ...k };
3073
+ this.prevState = D, this.undos.push({ undos: n, type: i }), this.stateSubject.next(w), this.stateHistorySubject.next({ handleRedo: !0, handleUndo: !1 });
3020
3074
  }
3021
3075
  }
3022
3076
  export {
3023
- Ba as default
3077
+ Wa as default
3024
3078
  };