@cliquify.me/timeline 5.0.8 → 5.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,6 +1,6 @@
1
- var kl = Object.defineProperty;
2
- var Ml = (i, t, e) => t in i ? kl(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
3
- var x = (i, t, e) => Ml(i, typeof t != "symbol" ? t + "" : t, e);
1
+ var Ml = Object.defineProperty;
2
+ var Dl = (i, t, e) => t in i ? Ml(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
3
+ var x = (i, t, e) => Dl(i, typeof t != "symbol" ? t + "" : t, e);
4
4
  import { dispatch as se } from "@designcombo/events";
5
5
  function b(i, t, e) {
6
6
  return (t = function(s) {
@@ -101,9 +101,9 @@ class Ma extends Wt {
101
101
  super("".concat(t, " 'options.signal' is in 'aborted' state"));
102
102
  }
103
103
  }
104
- class Dl {
104
+ class jl {
105
105
  }
106
- class jl extends Dl {
106
+ class Il extends jl {
107
107
  testPrecision(t, e) {
108
108
  const s = "precision ".concat(e, ` float;
109
109
  void main(){}`), r = t.createShader(t.FRAGMENT_SHADER);
@@ -119,11 +119,11 @@ void main(){}`), r = t.createShader(t.FRAGMENT_SHADER);
119
119
  }
120
120
  const El = {};
121
121
  let ro;
122
- const Ht = () => ro || (ro = { document, window, isTouchSupported: "ontouchstart" in window || "ontouchstart" in document || window && window.navigator && window.navigator.maxTouchPoints > 0, WebGLProbe: new jl(), dispose() {
122
+ const Ht = () => ro || (ro = { document, window, isTouchSupported: "ontouchstart" in window || "ontouchstart" in document || window && window.navigator && window.navigator.maxTouchPoints > 0, WebGLProbe: new Il(), dispose() {
123
123
  }, copyPasteData: El }), ms = () => Ht().document, Ks = () => Ht().window, Da = () => {
124
124
  var i;
125
125
  return Math.max((i = P.devicePixelRatio) !== null && i !== void 0 ? i : Ks().devicePixelRatio, 1);
126
- }, Es = new class {
126
+ }, Is = new class {
127
127
  constructor() {
128
128
  b(this, "boundsOfCurveCache", {}), this.charWidthsCache = /* @__PURE__ */ new Map();
129
129
  }
@@ -145,7 +145,7 @@ const Ht = () => ro || (ro = { document, window, isTouchSupported: "ontouchstart
145
145
  }(), Gi = "6.9.0";
146
146
  function Le() {
147
147
  }
148
- const Te = Math.PI / 2, he = 2 * Math.PI, _n = Math.PI / 180, gt = Object.freeze([1, 0, 0, 1, 0, 0]), Tn = 16, me = 0.4477152502, j = "center", L = "left", pt = "top", Ni = "bottom", q = "right", mt = "none", xn = /\r?\n/, ja = "moving", ri = "scaling", Ea = "rotating", Sn = "rotate", Ia = "skewing", Xs = "resizing", Pa = "modifyPoly", Il = "modifyPath", Wr = "changed", ii = "scale", ft = "scaleX", _t = "scaleY", vs = "skewX", ys = "skewY", et = "fill", vt = "stroke", Xr = "modified", Ke = "json", Ci = "svg", k = new class {
148
+ const Te = Math.PI / 2, he = 2 * Math.PI, _n = Math.PI / 180, gt = Object.freeze([1, 0, 0, 1, 0, 0]), Tn = 16, me = 0.4477152502, j = "center", L = "left", pt = "top", Ni = "bottom", q = "right", mt = "none", xn = /\r?\n/, ja = "moving", ri = "scaling", Ia = "rotating", Sn = "rotate", Ea = "skewing", Xs = "resizing", Pa = "modifyPoly", Pl = "modifyPath", Wr = "changed", ii = "scale", ft = "scaleX", _t = "scaleY", vs = "skewX", ys = "skewY", et = "fill", vt = "stroke", Xr = "modified", Ke = "json", Ci = "svg", k = new class {
149
149
  constructor() {
150
150
  this[Ke] = /* @__PURE__ */ new Map(), this[Ci] = /* @__PURE__ */ new Map();
151
151
  }
@@ -189,7 +189,7 @@ const Te = Math.PI / 2, he = 2 * Math.PI, _n = Math.PI / 180, gt = Object.freeze
189
189
  return t.forEach((e) => e.abort()), t;
190
190
  }
191
191
  }();
192
- class Pl {
192
+ class Al {
193
193
  constructor() {
194
194
  b(this, "__eventListeners", {});
195
195
  }
@@ -490,7 +490,7 @@ function Aa(i) {
490
490
  }
491
491
  return t;
492
492
  }
493
- class La extends Pl {
493
+ class La extends Al {
494
494
  _setOptions() {
495
495
  let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
496
496
  for (const e in t) this.set(e, t[e]);
@@ -512,14 +512,14 @@ class La extends Pl {
512
512
  return this[t];
513
513
  }
514
514
  }
515
- function Is(i) {
515
+ function Es(i) {
516
516
  return Ks().requestAnimationFrame(i);
517
517
  }
518
518
  function Fa(i) {
519
519
  return Ks().cancelAnimationFrame(i);
520
520
  }
521
- let Al = 0;
522
- const xe = () => Al++, Yt = () => {
521
+ let Ll = 0;
522
+ const xe = () => Ll++, Yt = () => {
523
523
  const i = ms().createElement("canvas");
524
524
  if (!i || i.getContext === void 0) throw new Wt("Failed to create `canvas` element");
525
525
  return i;
@@ -668,7 +668,7 @@ class Ga {
668
668
  Ht().dispose(this.lower.el), delete this.lower;
669
669
  }
670
670
  }
671
- const Ll = { backgroundVpt: !0, backgroundColor: "", overlayVpt: !0, overlayColor: "", includeDefaultValues: !0, svgViewportTransformation: !0, renderOnAddRemove: !0, skipOffscreen: !0, enableRetinaScaling: !0, imageSmoothingEnabled: !0, controlsAboveOverlay: !1, allowTouchScrolling: !1, viewportTransform: [...gt] }, Fl = ["objects"];
671
+ const Fl = { backgroundVpt: !0, backgroundColor: "", overlayVpt: !0, overlayColor: "", includeDefaultValues: !0, svgViewportTransformation: !0, renderOnAddRemove: !0, skipOffscreen: !0, enableRetinaScaling: !0, imageSmoothingEnabled: !0, controlsAboveOverlay: !1, allowTouchScrolling: !1, viewportTransform: [...gt] }, Rl = ["objects"];
672
672
  class Qs extends Aa(La) {
673
673
  get lowerCanvasEl() {
674
674
  var t;
@@ -781,7 +781,7 @@ Resulting to default behavior: removing object from previous canvas and adding t
781
781
  this.nextRenderHandle = 0, this.renderAll();
782
782
  }
783
783
  requestRenderAll() {
784
- this.nextRenderHandle || this.disposed || this.destroyed || (this.nextRenderHandle = Is(() => this.renderAndReset()));
784
+ this.nextRenderHandle || this.disposed || this.destroyed || (this.nextRenderHandle = Es(() => this.renderAndReset()));
785
785
  }
786
786
  calcViewportBoundaries() {
787
787
  const t = this.width, e = this.height, s = bt(this.viewportTransform), r = lt({ x: 0, y: 0 }, s), n = lt({ x: t, y: e }, s), o = r.min(n), a = r.max(n);
@@ -974,7 +974,7 @@ Resulting to default behavior: removing object from previous canvas and adding t
974
974
  loadFromJSON(t, e) {
975
975
  let { signal: s } = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
976
976
  if (!t) return Promise.reject(new Wt("`json` is undefined"));
977
- const r = typeof t == "string" ? JSON.parse(t) : t, { objects: n = [] } = r, o = V(r, Fl), { backgroundImage: a, background: c, overlayImage: h, overlay: l, clipPath: u } = o, d = this.renderOnAddRemove;
977
+ const r = typeof t == "string" ? JSON.parse(t) : t, { objects: n = [] } = r, o = V(r, Rl), { backgroundImage: a, background: c, overlayImage: h, overlay: l, clipPath: u } = o, d = this.renderOnAddRemove;
978
978
  return this.renderOnAddRemove = !1, Promise.all([ds(n, { reviver: e, signal: s }), Zs({ backgroundImage: a, backgroundColor: c, overlayImage: h, overlayColor: l, clipPath: u }, { signal: s })]).then((g) => {
979
979
  let [f, p] = g;
980
980
  return this.clear(), this.add(...f), this.set(o), this.set(p), this.renderOnAddRemove = d, this;
@@ -1018,14 +1018,14 @@ Resulting to default behavior: removing object from previous canvas and adding t
1018
1018
  return "#<Canvas (".concat(this.complexity(), "): { objects: ").concat(this._objects.length, " }>");
1019
1019
  }
1020
1020
  }
1021
- b(Qs, "ownDefaults", Ll);
1022
- const Rl = ["touchstart", "touchmove", "touchend"], Na = (i) => {
1021
+ b(Qs, "ownDefaults", Fl);
1022
+ const Bl = ["touchstart", "touchmove", "touchend"], Na = (i) => {
1023
1023
  const t = Ha(i.target), e = function(s) {
1024
1024
  const r = s.changedTouches;
1025
1025
  return r && r[0] ? r[0] : s;
1026
1026
  }(i);
1027
1027
  return new _(e.clientX + t.left, e.clientY + t.top);
1028
- }, Hr = (i) => Rl.includes(i.type) || i.pointerType === "touch", ao = (i) => {
1028
+ }, Hr = (i) => Bl.includes(i.type) || i.pointerType === "touch", ao = (i) => {
1029
1029
  i.preventDefault(), i.stopPropagation();
1030
1030
  }, Xt = (i) => {
1031
1031
  let t = 0, e = 0, s = 0, r = 0;
@@ -1034,8 +1034,8 @@ const Rl = ["touchstart", "touchmove", "touchend"], Na = (i) => {
1034
1034
  (a > s || !n) && (s = a), (a < t || !n) && (t = a), (c > r || !n) && (r = c), (c < e || !n) && (e = c);
1035
1035
  }
1036
1036
  return { left: t, top: e, width: s - t, height: r - e };
1037
- }, Bl = ["translateX", "translateY", "scaleX", "scaleY"], Ua = (i, t) => fs(i, $(t, i.calcOwnMatrix())), fs = (i, t) => {
1038
- const e = us(t), { translateX: s, translateY: r, scaleX: n, scaleY: o } = e, a = V(e, Bl), c = new _(s, r);
1037
+ }, Wl = ["translateX", "translateY", "scaleX", "scaleY"], Ua = (i, t) => fs(i, $(t, i.calcOwnMatrix())), fs = (i, t) => {
1038
+ const e = us(t), { translateX: s, translateY: r, scaleX: n, scaleY: o } = e, a = V(e, Wl), c = new _(s, r);
1039
1039
  i.flipX = !1, i.flipY = !1, Object.assign(i, a), i.set({ scaleX: n, scaleY: o }), i.setPositionByOrigin(c, j, j);
1040
1040
  }, $a = (i) => {
1041
1041
  i.scaleX = 1, i.scaleY = 1, i.skewX = 0, i.skewY = 0, i.flipX = !1, i.flipY = !1, i.rotate(0);
@@ -1054,18 +1054,18 @@ const Rl = ["touchstart", "touchmove", "touchend"], Na = (i) => {
1054
1054
  }, $i = (i, t, e) => {
1055
1055
  const s = tr(t, e);
1056
1056
  return fs(i, $(s, i.calcOwnMatrix())), s;
1057
- }, En = (i, t) => {
1057
+ }, In = (i, t) => {
1058
1058
  var e;
1059
1059
  const { transform: { target: s } } = t;
1060
1060
  (e = s.canvas) === null || e === void 0 || e.fire("object:".concat(i), v(v({}, t), {}, { target: s })), s.fire(i, t);
1061
- }, Wl = { left: -0.5, top: -0.5, center: 0, bottom: 0.5, right: 0.5 }, Z = (i) => typeof i == "string" ? Wl[i] : i - 0.5, Yr = "not-allowed";
1061
+ }, Xl = { left: -0.5, top: -0.5, center: 0, bottom: 0.5, right: 0.5 }, Z = (i) => typeof i == "string" ? Xl[i] : i - 0.5, Yr = "not-allowed";
1062
1062
  function Ka(i) {
1063
1063
  return Z(i.originX) === Z(j) && Z(i.originY) === Z(j);
1064
1064
  }
1065
1065
  function co(i) {
1066
1066
  return 0.5 - Z(i);
1067
1067
  }
1068
- const Pt = (i, t) => i[t], In = (i, t, e, s) => ({ e: i, transform: t, pointer: new _(e, s) });
1068
+ const Pt = (i, t) => i[t], En = (i, t, e, s) => ({ e: i, transform: t, pointer: new _(e, s) });
1069
1069
  function Ja(i, t) {
1070
1070
  const e = i.getTotalAngle() + Vt(Math.atan2(t.y, t.x)) + 360;
1071
1071
  return Math.round(e % 360 / 45);
@@ -1081,7 +1081,7 @@ function ci(i, t, e, s, r) {
1081
1081
  }
1082
1082
  const Za = (i, t, e, s) => {
1083
1083
  const { target: r, offsetX: n, offsetY: o } = t, a = e - n, c = s - o, h = !Pt(r, "lockMovementX") && r.left !== a, l = !Pt(r, "lockMovementY") && r.top !== c;
1084
- return h && r.set(L, a), l && r.set(pt, c), (h || l) && En(ja, In(i, t, e, s)), h || l;
1084
+ return h && r.set(L, a), l && r.set(pt, c), (h || l) && In(ja, En(i, t, e, s)), h || l;
1085
1085
  }, Vr = (i) => i.replace(/\s+/g, " "), ho = { aliceblue: "#F0F8FF", antiquewhite: "#FAEBD7", aqua: "#0FF", aquamarine: "#7FFFD4", azure: "#F0FFFF", beige: "#F5F5DC", bisque: "#FFE4C4", black: "#000", blanchedalmond: "#FFEBCD", blue: "#00F", blueviolet: "#8A2BE2", brown: "#A52A2A", burlywood: "#DEB887", cadetblue: "#5F9EA0", chartreuse: "#7FFF00", chocolate: "#D2691E", coral: "#FF7F50", cornflowerblue: "#6495ED", cornsilk: "#FFF8DC", crimson: "#DC143C", cyan: "#0FF", darkblue: "#00008B", darkcyan: "#008B8B", darkgoldenrod: "#B8860B", darkgray: "#A9A9A9", darkgrey: "#A9A9A9", darkgreen: "#006400", darkkhaki: "#BDB76B", darkmagenta: "#8B008B", darkolivegreen: "#556B2F", darkorange: "#FF8C00", darkorchid: "#9932CC", darkred: "#8B0000", darksalmon: "#E9967A", darkseagreen: "#8FBC8F", darkslateblue: "#483D8B", darkslategray: "#2F4F4F", darkslategrey: "#2F4F4F", darkturquoise: "#00CED1", darkviolet: "#9400D3", deeppink: "#FF1493", deepskyblue: "#00BFFF", dimgray: "#696969", dimgrey: "#696969", dodgerblue: "#1E90FF", firebrick: "#B22222", floralwhite: "#FFFAF0", forestgreen: "#228B22", fuchsia: "#F0F", gainsboro: "#DCDCDC", ghostwhite: "#F8F8FF", gold: "#FFD700", goldenrod: "#DAA520", gray: "#808080", grey: "#808080", green: "#008000", greenyellow: "#ADFF2F", honeydew: "#F0FFF0", hotpink: "#FF69B4", indianred: "#CD5C5C", indigo: "#4B0082", ivory: "#FFFFF0", khaki: "#F0E68C", lavender: "#E6E6FA", lavenderblush: "#FFF0F5", lawngreen: "#7CFC00", lemonchiffon: "#FFFACD", lightblue: "#ADD8E6", lightcoral: "#F08080", lightcyan: "#E0FFFF", lightgoldenrodyellow: "#FAFAD2", lightgray: "#D3D3D3", lightgrey: "#D3D3D3", lightgreen: "#90EE90", lightpink: "#FFB6C1", lightsalmon: "#FFA07A", lightseagreen: "#20B2AA", lightskyblue: "#87CEFA", lightslategray: "#789", lightslategrey: "#789", lightsteelblue: "#B0C4DE", lightyellow: "#FFFFE0", lime: "#0F0", limegreen: "#32CD32", linen: "#FAF0E6", magenta: "#F0F", maroon: "#800000", mediumaquamarine: "#66CDAA", mediumblue: "#0000CD", mediumorchid: "#BA55D3", mediumpurple: "#9370DB", mediumseagreen: "#3CB371", mediumslateblue: "#7B68EE", mediumspringgreen: "#00FA9A", mediumturquoise: "#48D1CC", mediumvioletred: "#C71585", midnightblue: "#191970", mintcream: "#F5FFFA", mistyrose: "#FFE4E1", moccasin: "#FFE4B5", navajowhite: "#FFDEAD", navy: "#000080", oldlace: "#FDF5E6", olive: "#808000", olivedrab: "#6B8E23", orange: "#FFA500", orangered: "#FF4500", orchid: "#DA70D6", palegoldenrod: "#EEE8AA", palegreen: "#98FB98", paleturquoise: "#AFEEEE", palevioletred: "#DB7093", papayawhip: "#FFEFD5", peachpuff: "#FFDAB9", peru: "#CD853F", pink: "#FFC0CB", plum: "#DDA0DD", powderblue: "#B0E0E6", purple: "#800080", rebeccapurple: "#639", red: "#F00", rosybrown: "#BC8F8F", royalblue: "#4169E1", saddlebrown: "#8B4513", salmon: "#FA8072", sandybrown: "#F4A460", seagreen: "#2E8B57", seashell: "#FFF5EE", sienna: "#A0522D", silver: "#C0C0C0", skyblue: "#87CEEB", slateblue: "#6A5ACD", slategray: "#708090", slategrey: "#708090", snow: "#FFFAFA", springgreen: "#00FF7F", steelblue: "#4682B4", tan: "#D2B48C", teal: "#008080", thistle: "#D8BFD8", tomato: "#FF6347", turquoise: "#40E0D0", violet: "#EE82EE", wheat: "#F5DEB3", white: "#FFF", whitesmoke: "#F5F5F5", yellow: "#FF0", yellowgreen: "#9ACD32" }, Oi = (i, t, e) => (e < 0 && (e += 1), e > 1 && (e -= 1), e < 1 / 6 ? i + 6 * (t - i) * e : e < 0.5 ? t : e < 2 / 3 ? i + (t - i) * (2 / 3 - e) * 6 : i), lo = (i, t, e, s) => {
1086
1086
  i /= 255, t /= 255, e /= 255;
1087
1087
  const r = Math.max(i, t, e), n = Math.min(i, t, e);
@@ -1304,21 +1304,21 @@ class tc {
1304
1304
  function hi(i) {
1305
1305
  return new RegExp("^(" + i.join("|") + ")\\b", "i");
1306
1306
  }
1307
- const We = "textDecorationThickness", ec = ["fontSize", "fontWeight", "fontFamily", "fontStyle"], sc = ["underline", "overline", "linethrough"], rc = [...ec, "lineHeight", "text", "charSpacing", "textAlign", "styles", "path", "pathStartOffset", "pathSide", "pathAlign"], ic = [...rc, ...sc, "textBackgroundColor", "direction", We], Xl = [...ec, ...sc, vt, "strokeWidth", et, "deltaY", "textBackgroundColor", We], zl = { _reNewline: xn, _reSpacesAndTabs: /[ \t\r]/g, _reSpaceAndTab: /[ \t\r]/, _reWords: /\S+/g, fontSize: 40, fontWeight: "normal", fontFamily: "Times New Roman", underline: !1, overline: !1, linethrough: !1, textAlign: L, fontStyle: "normal", lineHeight: 1.16, textBackgroundColor: "", stroke: null, shadow: null, path: void 0, pathStartOffset: 0, pathSide: L, pathAlign: "baseline", charSpacing: 0, deltaY: 0, direction: "ltr", CACHE_FONT_SIZE: 400, MIN_TEXT_WIDTH: 2, superscript: { size: 0.6, baseline: -0.35 }, subscript: { size: 0.6, baseline: 0.11 }, _fontSizeFraction: 0.222, offsets: { underline: 0.1, linethrough: -0.28167, overline: -0.81333 }, _fontSizeMult: 1.13, [We]: 66.667 }, Bt = "justify", Gr = "justify-left", As = "justify-right", Ls = "justify-center";
1307
+ const We = "textDecorationThickness", ec = ["fontSize", "fontWeight", "fontFamily", "fontStyle"], sc = ["underline", "overline", "linethrough"], rc = [...ec, "lineHeight", "text", "charSpacing", "textAlign", "styles", "path", "pathStartOffset", "pathSide", "pathAlign"], ic = [...rc, ...sc, "textBackgroundColor", "direction", We], zl = [...ec, ...sc, vt, "strokeWidth", et, "deltaY", "textBackgroundColor", We], Hl = { _reNewline: xn, _reSpacesAndTabs: /[ \t\r]/g, _reSpaceAndTab: /[ \t\r]/, _reWords: /\S+/g, fontSize: 40, fontWeight: "normal", fontFamily: "Times New Roman", underline: !1, overline: !1, linethrough: !1, textAlign: L, fontStyle: "normal", lineHeight: 1.16, textBackgroundColor: "", stroke: null, shadow: null, path: void 0, pathStartOffset: 0, pathSide: L, pathAlign: "baseline", charSpacing: 0, deltaY: 0, direction: "ltr", CACHE_FONT_SIZE: 400, MIN_TEXT_WIDTH: 2, superscript: { size: 0.6, baseline: -0.35 }, subscript: { size: 0.6, baseline: 0.11 }, _fontSizeFraction: 0.222, offsets: { underline: 0.1, linethrough: -0.28167, overline: -0.81333 }, _fontSizeMult: 1.13, [We]: 66.667 }, Bt = "justify", Gr = "justify-left", As = "justify-right", Ls = "justify-center";
1308
1308
  var fo, po, mo;
1309
- const Et = String.raw(fo || (fo = Jt(["[-+]?(?:d*.d+|d+.?)(?:[eE][-+]?d+)?"], ["[-+]?(?:\\d*\\.\\d+|\\d+\\.?)(?:[eE][-+]?\\d+)?"]))), ki = String.raw(po || (po = Jt(["(?:s*,?s+|s*,s*)"], ["(?:\\s*,?\\s+|\\s*,\\s*)"]))), Hl = new RegExp("(normal|italic)?\\s*(normal|small-caps)?\\s*(normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900)?\\s*(" + Et + "(?:px|cm|mm|em|pt|pc|in)*)(?:\\/(normal|" + Et + "))?\\s+(.*)"), Yl = { cx: L, x: L, r: "radius", cy: pt, y: pt, display: "visible", visibility: "visible", transform: "transformMatrix", "fill-opacity": "fillOpacity", "fill-rule": "fillRule", "font-family": "fontFamily", "font-size": "fontSize", "font-style": "fontStyle", "font-weight": "fontWeight", "letter-spacing": "charSpacing", "paint-order": "paintFirst", "stroke-dasharray": "strokeDashArray", "stroke-dashoffset": "strokeDashOffset", "stroke-linecap": "strokeLineCap", "stroke-linejoin": "strokeLineJoin", "stroke-miterlimit": "strokeMiterLimit", "stroke-opacity": "strokeOpacity", "stroke-width": "strokeWidth", "text-decoration": "textDecoration", "text-anchor": "textAnchor", opacity: "opacity", "clip-path": "clipPath", "clip-rule": "clipRule", "vector-effect": "strokeUniform", "image-rendering": "imageSmoothing", "text-decoration-thickness": We }, Mi = "font-size", Di = "clip-path";
1309
+ const It = String.raw(fo || (fo = Jt(["[-+]?(?:d*.d+|d+.?)(?:[eE][-+]?d+)?"], ["[-+]?(?:\\d*\\.\\d+|\\d+\\.?)(?:[eE][-+]?\\d+)?"]))), ki = String.raw(po || (po = Jt(["(?:s*,?s+|s*,s*)"], ["(?:\\s*,?\\s+|\\s*,\\s*)"]))), Yl = new RegExp("(normal|italic)?\\s*(normal|small-caps)?\\s*(normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900)?\\s*(" + It + "(?:px|cm|mm|em|pt|pc|in)*)(?:\\/(normal|" + It + "))?\\s+(.*)"), Vl = { cx: L, x: L, r: "radius", cy: pt, y: pt, display: "visible", visibility: "visible", transform: "transformMatrix", "fill-opacity": "fillOpacity", "fill-rule": "fillRule", "font-family": "fontFamily", "font-size": "fontSize", "font-style": "fontStyle", "font-weight": "fontWeight", "letter-spacing": "charSpacing", "paint-order": "paintFirst", "stroke-dasharray": "strokeDashArray", "stroke-dashoffset": "strokeDashOffset", "stroke-linecap": "strokeLineCap", "stroke-linejoin": "strokeLineJoin", "stroke-miterlimit": "strokeMiterLimit", "stroke-opacity": "strokeOpacity", "stroke-width": "strokeWidth", "text-decoration": "textDecoration", "text-anchor": "textAnchor", opacity: "opacity", "clip-path": "clipPath", "clip-rule": "clipRule", "vector-effect": "strokeUniform", "image-rendering": "imageSmoothing", "text-decoration-thickness": We }, Mi = "font-size", Di = "clip-path";
1310
1310
  hi(["path", "circle", "polygon", "polyline", "ellipse", "rect", "line", "image", "text"]);
1311
1311
  hi(["symbol", "image", "marker", "pattern", "view", "svg"]);
1312
1312
  const vo = hi(["symbol", "g", "a", "svg", "clipPath", "defs"]);
1313
- new RegExp(String.raw(mo || (mo = Jt(["^s*(", ")", "(", ")", "(", ")", "(", ")s*$"], ["^\\s*(", ")", "(", ")", "(", ")", "(", ")\\s*$"])), Et, ki, Et, ki, Et, ki, Et));
1314
- const Vl = new _(1, 0), nc = new _(), Pn = (i, t) => i.rotate(t), Nr = (i, t) => new _(t).subtract(i), Ur = (i) => i.distanceFrom(nc), $r = (i, t) => Math.atan2(cs(i, t), ac(i, t)), oc = (i) => $r(Vl, i), li = (i) => i.eq(nc) ? i : i.scalarDivide(Ur(i)), An = function(i) {
1313
+ new RegExp(String.raw(mo || (mo = Jt(["^s*(", ")", "(", ")", "(", ")", "(", ")s*$"], ["^\\s*(", ")", "(", ")", "(", ")", "(", ")\\s*$"])), It, ki, It, ki, It, ki, It));
1314
+ const Gl = new _(1, 0), nc = new _(), Pn = (i, t) => i.rotate(t), Nr = (i, t) => new _(t).subtract(i), Ur = (i) => i.distanceFrom(nc), $r = (i, t) => Math.atan2(cs(i, t), ac(i, t)), oc = (i) => $r(Gl, i), li = (i) => i.eq(nc) ? i : i.scalarDivide(Ur(i)), An = function(i) {
1315
1315
  let t = !(arguments.length > 1 && arguments[1] !== void 0) || arguments[1];
1316
1316
  return li(new _(-i.y, i.x).scalarMultiply(t ? 1 : -1));
1317
1317
  }, cs = (i, t) => i.x * t.y - i.y * t.x, ac = (i, t) => i.x * t.x + i.y * t.y, qi = (i, t, e) => {
1318
1318
  if (i.eq(t) || i.eq(e)) return !0;
1319
1319
  const s = cs(t, e), r = cs(t, i), n = cs(e, i);
1320
1320
  return s >= 0 ? r >= 0 && n <= 0 : !(r <= 0 && n >= 0);
1321
- }, yo = "(-?\\d+(?:\\.\\d*)?(?:px)?(?:\\s?|$))?", bo = new RegExp("(?:\\s|^)" + yo + yo + "(" + Et + "?(?:px)?)?(?:\\s?|$)(?:$|\\s)");
1321
+ }, yo = "(-?\\d+(?:\\.\\d*)?(?:px)?(?:\\s?|$))?", bo = new RegExp("(?:\\s|^)" + yo + yo + "(" + It + "?(?:px)?)?(?:\\s?|$)(?:$|\\s)");
1322
1322
  class ae {
1323
1323
  constructor(t) {
1324
1324
  const e = typeof t == "string" ? ae.parseShadow(t) : t;
@@ -1355,8 +1355,8 @@ class ae {
1355
1355
  }
1356
1356
  }
1357
1357
  b(ae, "ownDefaults", { color: "rgb(0,0,0)", blur: 0, offsetX: 0, offsetY: 0, affectStroke: !1, includeDefaultValues: !0, nonScaling: !1 }), b(ae, "type", "shadow"), k.setClass(ae, "shadow");
1358
- const Xe = (i, t, e) => Math.max(i, Math.min(t, e)), Gl = [pt, L, ft, _t, "flipX", "flipY", "originX", "originY", "angle", "opacity", "globalCompositeOperation", "shadow", "visible", vs, ys], le = [et, vt, "strokeWidth", "strokeDashArray", "width", "height", "paintFirst", "strokeUniform", "strokeLineCap", "strokeDashOffset", "strokeLineJoin", "strokeMiterLimit", "backgroundColor", "clipPath"], Nl = { top: 0, left: 0, width: 0, height: 0, angle: 0, flipX: !1, flipY: !1, scaleX: 1, scaleY: 1, minScaleLimit: 0, skewX: 0, skewY: 0, originX: L, originY: pt, strokeWidth: 1, strokeUniform: !1, padding: 0, opacity: 1, paintFirst: et, fill: "rgb(0,0,0)", fillRule: "nonzero", stroke: null, strokeDashArray: null, strokeDashOffset: 0, strokeLineCap: "butt", strokeLineJoin: "miter", strokeMiterLimit: 4, globalCompositeOperation: "source-over", backgroundColor: "", shadow: null, visible: !0, includeDefaultValues: !0, excludeFromExport: !1, objectCaching: !0, clipPath: void 0, inverted: !1, absolutePositioned: !1, centeredRotation: !0, centeredScaling: !1, dirty: !0 }, ji = (i, t, e, s) => (i < Math.abs(t) ? (i = t, s = e / 4) : s = t === 0 && i === 0 ? e / he * Math.asin(1) : e / he * Math.asin(t / i), { a: i, c: t, p: e, s }), _o = (i, t, e, s, r) => i * Math.pow(2, 10 * (s -= 1)) * Math.sin((s * r - t) * he / e), cc = (i, t, e, s) => -e * Math.cos(i / s * Te) + e + t, Ki = (i, t, e, s) => (i /= s) < 1 / 2.75 ? e * (7.5625 * i * i) + t : i < 2 / 2.75 ? e * (7.5625 * (i -= 1.5 / 2.75) * i + 0.75) + t : i < 2.5 / 2.75 ? e * (7.5625 * (i -= 2.25 / 2.75) * i + 0.9375) + t : e * (7.5625 * (i -= 2.625 / 2.75) * i + 0.984375) + t, To = (i, t, e, s) => e - Ki(s - i, 0, e, s) + t;
1359
- var Ul = Object.freeze({ __proto__: null, defaultEasing: cc, easeInBack: function(i, t, e, s) {
1358
+ const Xe = (i, t, e) => Math.max(i, Math.min(t, e)), Nl = [pt, L, ft, _t, "flipX", "flipY", "originX", "originY", "angle", "opacity", "globalCompositeOperation", "shadow", "visible", vs, ys], le = [et, vt, "strokeWidth", "strokeDashArray", "width", "height", "paintFirst", "strokeUniform", "strokeLineCap", "strokeDashOffset", "strokeLineJoin", "strokeMiterLimit", "backgroundColor", "clipPath"], Ul = { top: 0, left: 0, width: 0, height: 0, angle: 0, flipX: !1, flipY: !1, scaleX: 1, scaleY: 1, minScaleLimit: 0, skewX: 0, skewY: 0, originX: L, originY: pt, strokeWidth: 1, strokeUniform: !1, padding: 0, opacity: 1, paintFirst: et, fill: "rgb(0,0,0)", fillRule: "nonzero", stroke: null, strokeDashArray: null, strokeDashOffset: 0, strokeLineCap: "butt", strokeLineJoin: "miter", strokeMiterLimit: 4, globalCompositeOperation: "source-over", backgroundColor: "", shadow: null, visible: !0, includeDefaultValues: !0, excludeFromExport: !1, objectCaching: !0, clipPath: void 0, inverted: !1, absolutePositioned: !1, centeredRotation: !0, centeredScaling: !1, dirty: !0 }, ji = (i, t, e, s) => (i < Math.abs(t) ? (i = t, s = e / 4) : s = t === 0 && i === 0 ? e / he * Math.asin(1) : e / he * Math.asin(t / i), { a: i, c: t, p: e, s }), _o = (i, t, e, s, r) => i * Math.pow(2, 10 * (s -= 1)) * Math.sin((s * r - t) * he / e), cc = (i, t, e, s) => -e * Math.cos(i / s * Te) + e + t, Ki = (i, t, e, s) => (i /= s) < 1 / 2.75 ? e * (7.5625 * i * i) + t : i < 2 / 2.75 ? e * (7.5625 * (i -= 1.5 / 2.75) * i + 0.75) + t : i < 2.5 / 2.75 ? e * (7.5625 * (i -= 2.25 / 2.75) * i + 0.9375) + t : e * (7.5625 * (i -= 2.625 / 2.75) * i + 0.984375) + t, To = (i, t, e, s) => e - Ki(s - i, 0, e, s) + t;
1359
+ var $l = Object.freeze({ __proto__: null, defaultEasing: cc, easeInBack: function(i, t, e, s) {
1360
1360
  let r = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : 1.70158;
1361
1361
  return e * (i /= s) * i * ((r + 1) * i - r) + t;
1362
1362
  }, easeInBounce: To, easeInCirc: (i, t, e, s) => -e * (Math.sqrt(1 - (i /= s) * i) - 1) + t, easeInCubic: (i, t, e, s) => e * (i / s) ** 3 + t, easeInElastic: (i, t, e, s) => {
@@ -1390,10 +1390,10 @@ var Ul = Object.freeze({ __proto__: null, defaultEasing: cc, easeInBack: functio
1390
1390
  const { a: o, s: a, p: c, c: h } = ji(r, e, n, 1.70158);
1391
1391
  return o * 2 ** (-10 * i) * Math.sin((i * s - a) * he / c) + h + t;
1392
1392
  }, easeOutExpo: (i, t, e, s) => i === s ? t + e : e * -(2 ** (-10 * i / s) + 1) + t, easeOutQuad: (i, t, e, s) => -e * (i /= s) * (i - 2) + t, easeOutQuart: (i, t, e, s) => -e * ((i = i / s - 1) * i ** 3 - 1) + t, easeOutQuint: (i, t, e, s) => e * ((i / s - 1) ** 5 + 1) + t, easeOutSine: (i, t, e, s) => e * Math.sin(i / s * Te) + t });
1393
- const $l = () => !1;
1393
+ const ql = () => !1;
1394
1394
  class Ln {
1395
1395
  constructor(t) {
1396
- let { startValue: e, byValue: s, duration: r = 500, delay: n = 0, easing: o = cc, onStart: a = Le, onChange: c = Le, onComplete: h = Le, abort: l = $l, target: u } = t;
1396
+ let { startValue: e, byValue: s, duration: r = 500, delay: n = 0, easing: o = cc, onStart: a = Le, onChange: c = Le, onComplete: h = Le, abort: l = ql, target: u } = t;
1397
1397
  b(this, "_state", "pending"), b(this, "durationProgress", 0), b(this, "valueProgress", 0), this.tick = this.tick.bind(this), this.duration = r, this.delay = n, this.easing = o, this._onStart = a, this._onChange = c, this._onComplete = h, this._abort = l, this.target = u, this.startValue = e, this.byValue = s, this.value = this.startValue, this.endValue = Object.freeze(this.calculate(this.duration).value);
1398
1398
  }
1399
1399
  get state() {
@@ -1406,13 +1406,13 @@ class Ln {
1406
1406
  const t = (e) => {
1407
1407
  this._state === "pending" && (this.startTime = e || +/* @__PURE__ */ new Date(), this._state = "running", this._onStart(), this.tick(this.startTime));
1408
1408
  };
1409
- this.register(), this.delay > 0 ? setTimeout(() => Is(t), this.delay) : Is(t);
1409
+ this.register(), this.delay > 0 ? setTimeout(() => Es(t), this.delay) : Es(t);
1410
1410
  }
1411
1411
  tick(t) {
1412
1412
  const e = (t || +/* @__PURE__ */ new Date()) - this.startTime, s = Math.min(e, this.duration);
1413
1413
  this.durationProgress = s / this.duration;
1414
1414
  const { value: r, valueProgress: n } = this.calculate(s);
1415
- this.value = Object.freeze(r), this.valueProgress = n, this._state !== "aborted" && (this._abort(this.value, this.valueProgress, this.durationProgress) ? (this._state = "aborted", this.unregister()) : e >= this.duration ? (this.durationProgress = this.valueProgress = 1, this._onChange(this.endValue, this.valueProgress, this.durationProgress), this._state = "completed", this._onComplete(this.endValue, this.valueProgress, this.durationProgress), this.unregister()) : (this._onChange(this.value, this.valueProgress, this.durationProgress), Is(this.tick)));
1415
+ this.value = Object.freeze(r), this.valueProgress = n, this._state !== "aborted" && (this._abort(this.value, this.valueProgress, this.durationProgress) ? (this._state = "aborted", this.unregister()) : e >= this.duration ? (this.durationProgress = this.valueProgress = 1, this._onChange(this.endValue, this.valueProgress, this.durationProgress), this._state = "completed", this._onComplete(this.endValue, this.valueProgress, this.durationProgress), this.unregister()) : (this._onChange(this.value, this.valueProgress, this.durationProgress), Es(this.tick)));
1416
1416
  }
1417
1417
  register() {
1418
1418
  zr.push(this);
@@ -1424,34 +1424,34 @@ class Ln {
1424
1424
  this._state = "aborted", this.unregister();
1425
1425
  }
1426
1426
  }
1427
- const ql = ["startValue", "endValue"];
1428
- class Kl extends Ln {
1427
+ const Kl = ["startValue", "endValue"];
1428
+ class Jl extends Ln {
1429
1429
  constructor(t) {
1430
1430
  let { startValue: e = 0, endValue: s = 100 } = t;
1431
- super(v(v({}, V(t, ql)), {}, { startValue: e, byValue: s - e }));
1431
+ super(v(v({}, V(t, Kl)), {}, { startValue: e, byValue: s - e }));
1432
1432
  }
1433
1433
  calculate(t) {
1434
1434
  const e = this.easing(t, this.startValue, this.byValue, this.duration);
1435
1435
  return { value: e, valueProgress: Math.abs((e - this.startValue) / this.byValue) };
1436
1436
  }
1437
1437
  }
1438
- const Jl = ["startValue", "endValue"];
1439
- class Zl extends Ln {
1438
+ const Zl = ["startValue", "endValue"];
1439
+ class Ql extends Ln {
1440
1440
  constructor(t) {
1441
1441
  let { startValue: e = [0], endValue: s = [100] } = t;
1442
- super(v(v({}, V(t, Jl)), {}, { startValue: e, byValue: s.map((r, n) => r - e[n]) }));
1442
+ super(v(v({}, V(t, Zl)), {}, { startValue: e, byValue: s.map((r, n) => r - e[n]) }));
1443
1443
  }
1444
1444
  calculate(t) {
1445
1445
  const e = this.startValue.map((s, r) => this.easing(t, s, this.byValue[r], this.duration, r));
1446
1446
  return { value: e, valueProgress: Math.abs((e[0] - this.startValue[0]) / this.byValue[0]) };
1447
1447
  }
1448
1448
  }
1449
- const Ql = ["startValue", "endValue", "easing", "onChange", "onComplete", "abort"], tu = (i, t, e, s) => t + e * (1 - Math.cos(i / s * Te)), Ei = (i) => i && ((t, e, s) => i(new F(t).toRgba(), e, s));
1450
- class eu extends Ln {
1449
+ const tu = ["startValue", "endValue", "easing", "onChange", "onComplete", "abort"], eu = (i, t, e, s) => t + e * (1 - Math.cos(i / s * Te)), Ii = (i) => i && ((t, e, s) => i(new F(t).toRgba(), e, s));
1450
+ class su extends Ln {
1451
1451
  constructor(t) {
1452
- let { startValue: e, endValue: s, easing: r = tu, onChange: n, onComplete: o, abort: a } = t, c = V(t, Ql);
1452
+ let { startValue: e, endValue: s, easing: r = eu, onChange: n, onComplete: o, abort: a } = t, c = V(t, tu);
1453
1453
  const h = new F(e).getSource(), l = new F(s).getSource();
1454
- super(v(v({}, c), {}, { startValue: h, byValue: l.map((u, d) => u - h[d]), easing: r, onChange: Ei(n), onComplete: Ei(o), abort: Ei(a) }));
1454
+ super(v(v({}, c), {}, { startValue: h, byValue: l.map((u, d) => u - h[d]), easing: r, onChange: Ii(n), onComplete: Ii(o), abort: Ii(a) }));
1455
1455
  }
1456
1456
  calculate(t) {
1457
1457
  const [e, s, r, n] = this.startValue.map((a, c) => this.easing(t, a, this.byValue[c], this.duration, c)), o = [...[e, s, r].map(Math.round), Xe(0, n, 1)];
@@ -1459,11 +1459,11 @@ class eu extends Ln {
1459
1459
  }
1460
1460
  }
1461
1461
  function Fn(i) {
1462
- const t = ((e) => Array.isArray(e.startValue) || Array.isArray(e.endValue))(i) ? new Zl(i) : new Kl(i);
1462
+ const t = ((e) => Array.isArray(e.startValue) || Array.isArray(e.endValue))(i) ? new Ql(i) : new Jl(i);
1463
1463
  return t.start(), t;
1464
1464
  }
1465
1465
  function hc(i) {
1466
- const t = new eu(i);
1466
+ const t = new su(i);
1467
1467
  return t.start(), t;
1468
1468
  }
1469
1469
  class G {
@@ -1541,7 +1541,7 @@ class G {
1541
1541
  return G.intersectPolygonPolygon(t, [r, o, n, a]);
1542
1542
  }
1543
1543
  }
1544
- class su extends La {
1544
+ class ru extends La {
1545
1545
  getX() {
1546
1546
  return this.getXY().x;
1547
1547
  }
@@ -1726,8 +1726,8 @@ class su extends La {
1726
1726
  return this.translateToOriginPoint(this.getRelativeCenterPoint(), L, pt);
1727
1727
  }
1728
1728
  }
1729
- const ru = ["type"], iu = ["extraParam"];
1730
- let Qt = class Fr extends su {
1729
+ const iu = ["type"], nu = ["extraParam"];
1730
+ let Qt = class Fr extends ru {
1731
1731
  static getDefaults() {
1732
1732
  return Fr.ownDefaults;
1733
1733
  }
@@ -1747,7 +1747,7 @@ let Qt = class Fr extends su {
1747
1747
  _limitCacheSize(t) {
1748
1748
  const e = t.width, s = t.height, r = P.maxCacheSideLimit, n = P.minCacheSideLimit;
1749
1749
  if (e <= r && s <= r && e * s <= P.perfLimitSizeTotal) return e < n && (t.width = n), s < n && (t.height = n), t;
1750
- const o = e / s, [a, c] = Es.limitDimsByArea(o), h = Xe(n, a, r), l = Xe(n, c, r);
1750
+ const o = e / s, [a, c] = Is.limitDimsByArea(o), h = Xe(n, a, r), l = Xe(n, c, r);
1751
1751
  return e > h && (t.zoomX /= e / h, t.width = h, t.capped = !0), s > l && (t.zoomY /= s / l, t.height = l, t.capped = !0), t;
1752
1752
  }
1753
1753
  _getCacheCanvasDimensions() {
@@ -2041,9 +2041,9 @@ let Qt = class Fr extends su {
2041
2041
  toObject() {
2042
2042
  const t = (arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : []).concat(Fr.customProperties, this.constructor.customProperties || []);
2043
2043
  let e;
2044
- const s = P.NUM_FRACTION_DIGITS, { clipPath: r, fill: n, stroke: o, shadow: a, strokeDashArray: c, left: h, top: l, originX: u, originY: d, width: g, height: f, strokeWidth: p, strokeLineCap: m, strokeDashOffset: y, strokeLineJoin: T, strokeUniform: S, strokeMiterLimit: w, scaleX: C, scaleY: O, angle: D, flipX: M, flipY: I, opacity: tt, visible: rt, backgroundColor: X, fillRule: B, paintFirst: A, globalCompositeOperation: at, skewX: it, skewY: ct } = this;
2044
+ const s = P.NUM_FRACTION_DIGITS, { clipPath: r, fill: n, stroke: o, shadow: a, strokeDashArray: c, left: h, top: l, originX: u, originY: d, width: g, height: f, strokeWidth: p, strokeLineCap: m, strokeDashOffset: y, strokeLineJoin: T, strokeUniform: S, strokeMiterLimit: w, scaleX: C, scaleY: O, angle: D, flipX: M, flipY: E, opacity: tt, visible: rt, backgroundColor: X, fillRule: B, paintFirst: A, globalCompositeOperation: at, skewX: it, skewY: ct } = this;
2045
2045
  r && !r.excludeFromExport && (e = r.toObject(t.concat("inverted", "absolutePositioned")));
2046
- const z = (Zt) => W(Zt, s), Rt = v(v({}, Ve(this, t)), {}, { type: this.constructor.type, version: Gi, originX: u, originY: d, left: z(h), top: z(l), width: z(g), height: z(f), fill: io(n) ? n.toObject() : n, stroke: io(o) ? o.toObject() : o, strokeWidth: z(p), strokeDashArray: c && c.concat(), strokeLineCap: m, strokeDashOffset: y, strokeLineJoin: T, strokeUniform: S, strokeMiterLimit: z(w), scaleX: z(C), scaleY: z(O), angle: z(D), flipX: M, flipY: I, opacity: z(tt), shadow: a && a.toObject(), visible: rt, backgroundColor: X, fillRule: B, paintFirst: A, globalCompositeOperation: at, skewX: z(it), skewY: z(ct) }, e ? { clipPath: e } : null);
2046
+ const z = (Zt) => W(Zt, s), Rt = v(v({}, Ve(this, t)), {}, { type: this.constructor.type, version: Gi, originX: u, originY: d, left: z(h), top: z(l), width: z(g), height: z(f), fill: io(n) ? n.toObject() : n, stroke: io(o) ? o.toObject() : o, strokeWidth: z(p), strokeDashArray: c && c.concat(), strokeLineCap: m, strokeDashOffset: y, strokeLineJoin: T, strokeUniform: S, strokeMiterLimit: z(w), scaleX: z(C), scaleY: z(O), angle: z(D), flipX: M, flipY: E, opacity: z(tt), shadow: a && a.toObject(), visible: rt, backgroundColor: X, fillRule: B, paintFirst: A, globalCompositeOperation: at, skewX: z(it), skewY: z(ct) }, e ? { clipPath: e } : null);
2047
2047
  return this.includeDefaultValues ? Rt : this._removeDefaultValues(Rt);
2048
2048
  }
2049
2049
  toDatalessObject(t) {
@@ -2061,17 +2061,17 @@ let Qt = class Fr extends su {
2061
2061
  return "#<".concat(this.constructor.type, ">");
2062
2062
  }
2063
2063
  static _fromObject(t) {
2064
- let e = V(t, ru), s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, { extraParam: r } = s, n = V(s, iu);
2064
+ let e = V(t, iu), s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, { extraParam: r } = s, n = V(s, nu);
2065
2065
  return Zs(e, n).then((o) => r ? (delete o[r], new this(e[r], o)) : new this(o));
2066
2066
  }
2067
2067
  static fromObject(t, e) {
2068
2068
  return this._fromObject(t, e);
2069
2069
  }
2070
2070
  };
2071
- b(Qt, "stateProperties", Gl), b(Qt, "cacheProperties", le), b(Qt, "ownDefaults", Nl), b(Qt, "type", "FabricObject"), b(Qt, "colorProperties", [et, vt, "backgroundColor"]), b(Qt, "customProperties", []), k.setClass(Qt), k.setClass(Qt, "object");
2071
+ b(Qt, "stateProperties", Nl), b(Qt, "cacheProperties", le), b(Qt, "ownDefaults", Ul), b(Qt, "type", "FabricObject"), b(Qt, "colorProperties", [et, vt, "backgroundColor"]), b(Qt, "customProperties", []), k.setClass(Qt), k.setClass(Qt, "object");
2072
2072
  const Oe = (i, t, e) => (s, r, n, o) => {
2073
2073
  const a = t(s, r, n, o);
2074
- return a && En(i, v(v({}, In(s, r, n, o)), e)), a;
2074
+ return a && In(i, v(v({}, En(s, r, n, o)), e)), a;
2075
2075
  };
2076
2076
  function Ge(i) {
2077
2077
  return (t, e, s, r) => {
@@ -2142,7 +2142,7 @@ class N {
2142
2142
  ((r = r || {}).cornerStyle || n.cornerStyle) === "circle" ? lc.call(this, t, e, s, r, n) : uc.call(this, t, e, s, r, n);
2143
2143
  }
2144
2144
  }
2145
- const dc = (i, t, e) => e.lockRotation ? Yr : t.cursorStyle, gc = Oe(Ea, Ge((i, t, e, s) => {
2145
+ const dc = (i, t, e) => e.lockRotation ? Yr : t.cursorStyle, gc = Oe(Ia, Ge((i, t, e, s) => {
2146
2146
  let { target: r, ex: n, ey: o, theta: a, originX: c, originY: h } = t;
2147
2147
  const l = r.translateToOriginPoint(r.getRelativeCenterPoint(), c, h);
2148
2148
  if (Pt(r, "lockRotation")) return !1;
@@ -2166,11 +2166,11 @@ function pc(i, t, e) {
2166
2166
  const { width: n, height: o, strokeWidth: a } = i;
2167
2167
  return n === 0 && a === 0 && t !== "y" || o === 0 && a === 0 && t !== "x";
2168
2168
  }
2169
- const nu = ["e", "se", "s", "sw", "w", "nw", "n", "ne", "e"], Ze = (i, t, e) => {
2169
+ const ou = ["e", "se", "s", "sw", "w", "nw", "n", "ne", "e"], Ze = (i, t, e) => {
2170
2170
  const s = fc(i, e);
2171
2171
  if (pc(e, t.x !== 0 && t.y === 0 ? "x" : t.x === 0 && t.y !== 0 ? "y" : "", s)) return Yr;
2172
2172
  const r = Ja(e, t);
2173
- return "".concat(nu[r], "-resize");
2173
+ return "".concat(ou[r], "-resize");
2174
2174
  };
2175
2175
  function Rn(i, t, e, s) {
2176
2176
  let r = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {};
@@ -2189,18 +2189,18 @@ function Rn(i, t, e, s) {
2189
2189
  const f = n.scaleX, p = n.scaleY;
2190
2190
  return o ? (o === "x" && n.set(ft, h), o === "y" && n.set(_t, l)) : (!Pt(n, "lockScalingX") && n.set(ft, h), !Pt(n, "lockScalingY") && n.set(_t, l)), f !== n.scaleX || p !== n.scaleY;
2191
2191
  }
2192
- const ks = Oe(ri, Ge((i, t, e, s) => Rn(i, t, e, s))), mc = Oe(ri, Ge((i, t, e, s) => Rn(i, t, e, s, { by: "x" }))), vc = Oe(ri, Ge((i, t, e, s) => Rn(i, t, e, s, { by: "y" }))), ou = ["target", "ex", "ey", "skewingSide"], Ii = { x: { counterAxis: "y", scale: ft, skew: vs, lockSkewing: "lockSkewingX", origin: "originX", flip: "flipX" }, y: { counterAxis: "x", scale: _t, skew: ys, lockSkewing: "lockSkewingY", origin: "originY", flip: "flipY" } }, au = ["ns", "nesw", "ew", "nwse"], yc = (i, t, e) => {
2192
+ const ks = Oe(ri, Ge((i, t, e, s) => Rn(i, t, e, s))), mc = Oe(ri, Ge((i, t, e, s) => Rn(i, t, e, s, { by: "x" }))), vc = Oe(ri, Ge((i, t, e, s) => Rn(i, t, e, s, { by: "y" }))), au = ["target", "ex", "ey", "skewingSide"], Ei = { x: { counterAxis: "y", scale: ft, skew: vs, lockSkewing: "lockSkewingX", origin: "originX", flip: "flipX" }, y: { counterAxis: "x", scale: _t, skew: ys, lockSkewing: "lockSkewingY", origin: "originY", flip: "flipY" } }, cu = ["ns", "nesw", "ew", "nwse"], yc = (i, t, e) => {
2193
2193
  if (t.x !== 0 && Pt(e, "lockSkewingY") || t.y !== 0 && Pt(e, "lockSkewingX")) return Yr;
2194
2194
  const s = Ja(e, t) % 4;
2195
- return "".concat(au[s], "-resize");
2195
+ return "".concat(cu[s], "-resize");
2196
2196
  };
2197
2197
  function bc(i, t, e, s, r) {
2198
- const { target: n } = e, { counterAxis: o, origin: a, lockSkewing: c, skew: h, flip: l } = Ii[i];
2198
+ const { target: n } = e, { counterAxis: o, origin: a, lockSkewing: c, skew: h, flip: l } = Ei[i];
2199
2199
  if (Pt(n, c)) return !1;
2200
- const { origin: u, flip: d } = Ii[o], g = Z(e[u]) * (n[d] ? -1 : 1), f = -Math.sign(g) * (n[l] ? -1 : 1), p = 0.5 * -((n[h] === 0 && ci(e, j, j, s, r)[i] > 0 || n[h] > 0 ? 1 : -1) * f) + 0.5;
2201
- return Oe(Ia, Ge((y, T, S, w) => function(C, O, D) {
2202
- let { target: M, ex: I, ey: tt, skewingSide: rt } = O, X = V(O, ou);
2203
- const { skew: B } = Ii[C], A = D.subtract(new _(I, tt)).divide(new _(M.scaleX, M.scaleY))[C], at = M[B], it = X[B], ct = Math.tan(U(it)), z = C === "y" ? M._getTransformedDimensions({ scaleX: 1, scaleY: 1, skewX: 0 }).x : M._getTransformedDimensions({ scaleX: 1, scaleY: 1 }).y, Rt = 2 * A * rt / Math.max(z, 1) + ct, Zt = Vt(Math.atan(Rt));
2200
+ const { origin: u, flip: d } = Ei[o], g = Z(e[u]) * (n[d] ? -1 : 1), f = -Math.sign(g) * (n[l] ? -1 : 1), p = 0.5 * -((n[h] === 0 && ci(e, j, j, s, r)[i] > 0 || n[h] > 0 ? 1 : -1) * f) + 0.5;
2201
+ return Oe(Ea, Ge((y, T, S, w) => function(C, O, D) {
2202
+ let { target: M, ex: E, ey: tt, skewingSide: rt } = O, X = V(O, au);
2203
+ const { skew: B } = Ei[C], A = D.subtract(new _(E, tt)).divide(new _(M.scaleX, M.scaleY))[C], at = M[B], it = X[B], ct = Math.tan(U(it)), z = C === "y" ? M._getTransformedDimensions({ scaleX: 1, scaleY: 1, skewX: 0 }).x : M._getTransformedDimensions({ scaleX: 1, scaleY: 1 }).y, Rt = 2 * A * rt / Math.max(z, 1) + ct, Zt = Vt(Math.atan(Rt));
2204
2204
  M.set(B, Zt);
2205
2205
  const or = at !== M[B];
2206
2206
  if (or && C === "y") {
@@ -2217,7 +2217,7 @@ function ui(i, t) {
2217
2217
  const Ms = (i, t, e) => {
2218
2218
  const s = ui(i, e);
2219
2219
  return t.x === 0 ? s ? vs : _t : t.y === 0 ? s ? ys : ft : "";
2220
- }, Ie = (i, t, e) => ui(i, e) ? yc(0, t, e) : Ze(i, t, e), Zi = (i, t, e, s) => ui(i, t.target) ? Tc(i, t, e, s) : mc(i, t, e, s), Qi = (i, t, e, s) => ui(i, t.target) ? _c(i, t, e, s) : vc(i, t, e, s), Bn = () => ({ ml: new N({ x: -0.5, y: 0, cursorStyleHandler: Ie, actionHandler: Zi, getActionName: Ms }), mr: new N({ x: 0.5, y: 0, cursorStyleHandler: Ie, actionHandler: Zi, getActionName: Ms }), mb: new N({ x: 0, y: 0.5, cursorStyleHandler: Ie, actionHandler: Qi, getActionName: Ms }), mt: new N({ x: 0, y: -0.5, cursorStyleHandler: Ie, actionHandler: Qi, getActionName: Ms }), tl: new N({ x: -0.5, y: -0.5, cursorStyleHandler: Ze, actionHandler: ks }), tr: new N({ x: 0.5, y: -0.5, cursorStyleHandler: Ze, actionHandler: ks }), bl: new N({ x: -0.5, y: 0.5, cursorStyleHandler: Ze, actionHandler: ks }), br: new N({ x: 0.5, y: 0.5, cursorStyleHandler: Ze, actionHandler: ks }), mtr: new N({ x: 0, y: -0.5, actionHandler: gc, cursorStyleHandler: dc, offsetY: -40, withConnection: !0, actionName: Sn }) }), xc = () => ({ mr: new N({ x: 0.5, y: 0, actionHandler: Ji, cursorStyleHandler: Ie, actionName: Xs }), ml: new N({ x: -0.5, y: 0, actionHandler: Ji, cursorStyleHandler: Ie, actionName: Xs }) }), Sc = () => v(v({}, Bn()), xc());
2220
+ }, Ee = (i, t, e) => ui(i, e) ? yc(0, t, e) : Ze(i, t, e), Zi = (i, t, e, s) => ui(i, t.target) ? Tc(i, t, e, s) : mc(i, t, e, s), Qi = (i, t, e, s) => ui(i, t.target) ? _c(i, t, e, s) : vc(i, t, e, s), Bn = () => ({ ml: new N({ x: -0.5, y: 0, cursorStyleHandler: Ee, actionHandler: Zi, getActionName: Ms }), mr: new N({ x: 0.5, y: 0, cursorStyleHandler: Ee, actionHandler: Zi, getActionName: Ms }), mb: new N({ x: 0, y: 0.5, cursorStyleHandler: Ee, actionHandler: Qi, getActionName: Ms }), mt: new N({ x: 0, y: -0.5, cursorStyleHandler: Ee, actionHandler: Qi, getActionName: Ms }), tl: new N({ x: -0.5, y: -0.5, cursorStyleHandler: Ze, actionHandler: ks }), tr: new N({ x: 0.5, y: -0.5, cursorStyleHandler: Ze, actionHandler: ks }), bl: new N({ x: -0.5, y: 0.5, cursorStyleHandler: Ze, actionHandler: ks }), br: new N({ x: 0.5, y: 0.5, cursorStyleHandler: Ze, actionHandler: ks }), mtr: new N({ x: 0, y: -0.5, actionHandler: gc, cursorStyleHandler: dc, offsetY: -40, withConnection: !0, actionName: Sn }) }), xc = () => ({ mr: new N({ x: 0.5, y: 0, actionHandler: Ji, cursorStyleHandler: Ee, actionName: Xs }), ml: new N({ x: -0.5, y: 0, actionHandler: Ji, cursorStyleHandler: Ee, actionName: Xs }) }), Sc = () => v(v({}, Bn()), xc());
2221
2221
  class Hs extends Qt {
2222
2222
  static getDefaults() {
2223
2223
  return v(v({}, super.getDefaults()), Hs.ownDefaults);
@@ -2394,14 +2394,14 @@ class Oc {
2394
2394
  return t.multiply(this.strokeUniformScalar).scalarMultiply(e);
2395
2395
  }
2396
2396
  }
2397
- const cu = new _();
2397
+ const hu = new _();
2398
2398
  class hs extends Oc {
2399
2399
  static getOrthogonalRotationFactor(t, e) {
2400
2400
  const s = e ? $r(t, e) : oc(t);
2401
2401
  return Math.abs(s) < Te ? -1 : 1;
2402
2402
  }
2403
2403
  constructor(t, e, s, r) {
2404
- super(r), b(this, "AB", void 0), b(this, "AC", void 0), b(this, "alpha", void 0), b(this, "bisector", void 0), this.A = new _(t), this.B = new _(e), this.C = new _(s), this.AB = this.createSideVector(this.A, this.B), this.AC = this.createSideVector(this.A, this.C), this.alpha = $r(this.AB, this.AC), this.bisector = li(Pn(this.AB.eq(cu) ? this.AC : this.AB, this.alpha / 2));
2404
+ super(r), b(this, "AB", void 0), b(this, "AC", void 0), b(this, "alpha", void 0), b(this, "bisector", void 0), this.A = new _(t), this.B = new _(e), this.C = new _(s), this.AB = this.createSideVector(this.A, this.B), this.AC = this.createSideVector(this.A, this.C), this.alpha = $r(this.AB, this.AC), this.bisector = li(Pn(this.AB.eq(hu) ? this.AC : this.AB, this.alpha / 2));
2405
2405
  }
2406
2406
  calcOrthogonalProjection(t, e) {
2407
2407
  let s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : this.strokeProjectionMagnitude;
@@ -2529,12 +2529,12 @@ const di = (i) => {
2529
2529
  return s;
2530
2530
  });
2531
2531
  }
2532
- return hu(i);
2533
- }, hu = (i) => {
2532
+ return lu(i);
2533
+ }, lu = (i) => {
2534
2534
  const t = [];
2535
- for (let e, s = 0; s < i.length; s++) (e = lu(i, s)) !== !1 && t.push(e);
2535
+ for (let e, s = 0; s < i.length; s++) (e = uu(i, s)) !== !1 && t.push(e);
2536
2536
  return t;
2537
- }, lu = (i, t) => {
2537
+ }, uu = (i, t) => {
2538
2538
  const e = i.charCodeAt(t);
2539
2539
  if (isNaN(e)) return "";
2540
2540
  if (e < 55296 || e > 57343) return i.charAt(t);
@@ -2549,7 +2549,7 @@ const di = (i) => {
2549
2549
  if (55296 > s || s > 56319) throw "Low surrogate without preceding high surrogate";
2550
2550
  return !1;
2551
2551
  };
2552
- var uu = Object.freeze({ __proto__: null, capitalize: function(i) {
2552
+ var du = Object.freeze({ __proto__: null, capitalize: function(i) {
2553
2553
  let t = arguments.length > 1 && arguments[1] !== void 0 && arguments[1];
2554
2554
  return "".concat(i.charAt(0).toUpperCase()).concat(t ? i.slice(1) : i.slice(1).toLowerCase());
2555
2555
  }, escapeXml: Mc, graphemeSplit: di });
@@ -2590,7 +2590,7 @@ function So(i, t) {
2590
2590
  }
2591
2591
  return t.length === 0;
2592
2592
  }
2593
- function du(i, t) {
2593
+ function gu(i, t) {
2594
2594
  let e = !0;
2595
2595
  const s = So(i, t.pop());
2596
2596
  return s && t.length && (e = function(r, n) {
@@ -2599,17 +2599,17 @@ function du(i, t) {
2599
2599
  return n.length === 0;
2600
2600
  }(i, t)), s && e && t.length === 0;
2601
2601
  }
2602
- const gu = (i) => {
2602
+ const fu = (i) => {
2603
2603
  var t;
2604
- return (t = Yl[i]) !== null && t !== void 0 ? t : i;
2605
- }, fu = new RegExp("(".concat(Et, ")"), "gi"), pu = (i) => Vr(i.replace(fu, " $1 ").replace(/,/gi, " "));
2604
+ return (t = Vl[i]) !== null && t !== void 0 ? t : i;
2605
+ }, pu = new RegExp("(".concat(It, ")"), "gi"), mu = (i) => Vr(i.replace(pu, " $1 ").replace(/,/gi, " "));
2606
2606
  var wo, Co, Oo, ko, Mo, Do, jo;
2607
- const dt = "(".concat(Et, ")"), mu = String.raw(wo || (wo = Jt(["(skewX)(", ")"], ["(skewX)\\(", "\\)"])), dt), vu = String.raw(Co || (Co = Jt(["(skewY)(", ")"], ["(skewY)\\(", "\\)"])), dt), yu = String.raw(Oo || (Oo = Jt(["(rotate)(", "(?: ", " ", ")?)"], ["(rotate)\\(", "(?: ", " ", ")?\\)"])), dt, dt, dt), bu = String.raw(ko || (ko = Jt(["(scale)(", "(?: ", ")?)"], ["(scale)\\(", "(?: ", ")?\\)"])), dt, dt), _u = String.raw(Mo || (Mo = Jt(["(translate)(", "(?: ", ")?)"], ["(translate)\\(", "(?: ", ")?\\)"])), dt, dt), Tu = String.raw(Do || (Do = Jt(["(matrix)(", " ", " ", " ", " ", " ", ")"], ["(matrix)\\(", " ", " ", " ", " ", " ", "\\)"])), dt, dt, dt, dt, dt, dt), Xn = "(?:".concat(Tu, "|").concat(_u, "|").concat(yu, "|").concat(bu, "|").concat(mu, "|").concat(vu, ")"), xu = "(?:".concat(Xn, "*)"), Su = String.raw(jo || (jo = Jt(["^s*(?:", "?)s*$"], ["^\\s*(?:", "?)\\s*$"])), xu), wu = new RegExp(Su), Cu = new RegExp(Xn), Ou = new RegExp(Xn, "g");
2607
+ const dt = "(".concat(It, ")"), vu = String.raw(wo || (wo = Jt(["(skewX)(", ")"], ["(skewX)\\(", "\\)"])), dt), yu = String.raw(Co || (Co = Jt(["(skewY)(", ")"], ["(skewY)\\(", "\\)"])), dt), bu = String.raw(Oo || (Oo = Jt(["(rotate)(", "(?: ", " ", ")?)"], ["(rotate)\\(", "(?: ", " ", ")?\\)"])), dt, dt, dt), _u = String.raw(ko || (ko = Jt(["(scale)(", "(?: ", ")?)"], ["(scale)\\(", "(?: ", ")?\\)"])), dt, dt), Tu = String.raw(Mo || (Mo = Jt(["(translate)(", "(?: ", ")?)"], ["(translate)\\(", "(?: ", ")?\\)"])), dt, dt), xu = String.raw(Do || (Do = Jt(["(matrix)(", " ", " ", " ", " ", " ", ")"], ["(matrix)\\(", " ", " ", " ", " ", " ", "\\)"])), dt, dt, dt, dt, dt, dt), Xn = "(?:".concat(xu, "|").concat(Tu, "|").concat(bu, "|").concat(_u, "|").concat(vu, "|").concat(yu, ")"), Su = "(?:".concat(Xn, "*)"), wu = String.raw(jo || (jo = Jt(["^s*(?:", "?)s*$"], ["^\\s*(?:", "?)\\s*$"])), Su), Cu = new RegExp(wu), Ou = new RegExp(Xn), ku = new RegExp(Xn, "g");
2608
2608
  function tn(i) {
2609
2609
  const t = [];
2610
- if (!(i = pu(i).replace(/\s*([()])\s*/gi, "$1")) || i && !wu.test(i)) return [...gt];
2611
- for (const e of i.matchAll(Ou)) {
2612
- const s = Cu.exec(e[0]);
2610
+ if (!(i = mu(i).replace(/\s*([()])\s*/gi, "$1")) || i && !Cu.test(i)) return [...gt];
2611
+ for (const e of i.matchAll(ku)) {
2612
+ const s = Ou.exec(e[0]);
2613
2613
  if (!s) continue;
2614
2614
  let r = gt;
2615
2615
  const n = s.filter((f) => !!f), [, o, ...a] = n, [c, h, l, u, d, g] = a.map((f) => parseFloat(f));
@@ -2636,7 +2636,7 @@ function tn(i) {
2636
2636
  }
2637
2637
  return ni(t);
2638
2638
  }
2639
- function ku(i, t, e, s) {
2639
+ function Mu(i, t, e, s) {
2640
2640
  const r = Array.isArray(t);
2641
2641
  let n, o = t;
2642
2642
  if (i !== et && i !== vt || t !== mt) {
@@ -2658,22 +2658,22 @@ function ku(i, t, e, s) {
2658
2658
  } else o = "";
2659
2659
  return !r && isNaN(n) ? o : n;
2660
2660
  }
2661
- function Mu(i, t) {
2662
- const e = i.match(Hl);
2661
+ function Du(i, t) {
2662
+ const e = i.match(Yl);
2663
2663
  if (!e) return;
2664
2664
  const s = e[1], r = e[3], n = e[4], o = e[5], a = e[6];
2665
2665
  s && (t.fontStyle = s), r && (t.fontWeight = isNaN(parseFloat(r)) ? r : parseFloat(r)), n && (t.fontSize = Fe(n)), a && (t.fontFamily = a), o && (t.lineHeight = o === "normal" ? 1 : o);
2666
2666
  }
2667
- function Du(i, t) {
2667
+ function ju(i, t) {
2668
2668
  i.replace(/;\s*$/, "").split(";").forEach((e) => {
2669
2669
  if (!e) return;
2670
2670
  const [s, r] = e.split(":");
2671
2671
  t[s.trim().toLowerCase()] = r.trim();
2672
2672
  });
2673
2673
  }
2674
- function ju(i) {
2674
+ function Iu(i) {
2675
2675
  const t = {}, e = i.getAttribute("style");
2676
- return e && (typeof e == "string" ? Du(e, t) : function(s, r) {
2676
+ return e && (typeof e == "string" ? ju(e, t) : function(s, r) {
2677
2677
  Object.entries(s).forEach((n) => {
2678
2678
  let [o, a] = n;
2679
2679
  a !== void 0 && (r[o.toLowerCase()] = a);
@@ -2690,16 +2690,16 @@ function ue(i, t, e) {
2690
2690
  return u && (h[l] = u), h;
2691
2691
  }, {})), function(h) {
2692
2692
  let l = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, u = {};
2693
- for (const d in l) du(h, d.split(" ")) && (u = v(v({}, u), l[d]));
2693
+ for (const d in l) gu(h, d.split(" ")) && (u = v(v({}, u), l[d]));
2694
2694
  return u;
2695
- }(i, e)), ju(i));
2695
+ }(i, e)), Iu(i));
2696
2696
  o[Di] && i.setAttribute(Di, o[Di]), o[Mi] && (s = Fe(o[Mi], n), o[Mi] = "".concat(s));
2697
2697
  const a = {};
2698
2698
  for (const h in o) {
2699
- const l = gu(h), u = ku(l, o[h], r, s);
2699
+ const l = fu(h), u = Mu(l, o[h], r, s);
2700
2700
  a[l] = u;
2701
2701
  }
2702
- a && a.font && Mu(a.font, a);
2702
+ a && a.font && Du(a.font, a);
2703
2703
  const c = v(v({}, r), a);
2704
2704
  return vo.test(i.nodeName) ? c : function(h) {
2705
2705
  const l = ht.getDefaults();
@@ -2716,7 +2716,7 @@ function ue(i, t, e) {
2716
2716
  }), h;
2717
2717
  }(c);
2718
2718
  }
2719
- const Iu = ["left", "top", "width", "height", "visible"], Ec = ["rx", "ry"];
2719
+ const Pu = ["left", "top", "width", "height", "visible"], Ic = ["rx", "ry"];
2720
2720
  class Q extends ht {
2721
2721
  static getDefaults() {
2722
2722
  return v(v({}, super.getDefaults()), Q.ownDefaults);
@@ -2734,7 +2734,7 @@ class Q extends ht {
2734
2734
  }
2735
2735
  toObject() {
2736
2736
  let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
2737
- return super.toObject([...Ec, ...t]);
2737
+ return super.toObject([...Ic, ...t]);
2738
2738
  }
2739
2739
  _toSVG() {
2740
2740
  const { width: t, height: e, rx: s, ry: r } = this;
@@ -2742,12 +2742,12 @@ class Q extends ht {
2742
2742
  `)];
2743
2743
  }
2744
2744
  static async fromElement(t, e, s) {
2745
- const r = ue(t, this.ATTRIBUTE_NAMES, s), { left: n = 0, top: o = 0, width: a = 0, height: c = 0, visible: h = !0 } = r, l = V(r, Iu);
2745
+ const r = ue(t, this.ATTRIBUTE_NAMES, s), { left: n = 0, top: o = 0, width: a = 0, height: c = 0, visible: h = !0 } = r, l = V(r, Pu);
2746
2746
  return new this(v(v(v({}, e), l), {}, { left: n, top: o, width: a, height: c, visible: !!(h && a && c) }));
2747
2747
  }
2748
2748
  }
2749
- b(Q, "type", "Rect"), b(Q, "cacheProperties", [...le, ...Ec]), b(Q, "ownDefaults", { rx: 0, ry: 0 }), b(Q, "ATTRIBUTE_NAMES", [...ke, "x", "y", "rx", "ry", "width", "height"]), k.setClass(Q), k.setSVGClass(Q);
2750
- const re = "initialization", qr = "added", zn = "removed", Kr = "imperative", Ic = (i, t) => {
2749
+ b(Q, "type", "Rect"), b(Q, "cacheProperties", [...le, ...Ic]), b(Q, "ownDefaults", { rx: 0, ry: 0 }), b(Q, "ATTRIBUTE_NAMES", [...ke, "x", "y", "rx", "ry", "width", "height"]), k.setClass(Q), k.setSVGClass(Q);
2750
+ const re = "initialization", qr = "added", zn = "removed", Kr = "imperative", Ec = (i, t) => {
2751
2751
  const { strokeUniform: e, strokeWidth: s, width: r, height: n, group: o } = t, a = o && o !== i ? tr(o.calcTransformMatrix(), i.calcTransformMatrix()) : null, c = a ? t.getRelativeCenterPoint().transform(a) : t.getRelativeCenterPoint(), h = !t.isStrokeAccountedForInDimensions(), l = e && h ? qa(new _(s, s), void 0, i.calcTransformMatrix()) : wn, u = !e && h ? s : 0, d = ai(r + u, n + u, ni([a, t.calcOwnMatrix()], !0)).add(l).scalarDivide(2);
2752
2752
  return [c.subtract(d), c.add(d)];
2753
2753
  };
@@ -2770,7 +2770,7 @@ class fi {
2770
2770
  const { type: s, target: r } = e;
2771
2771
  if (s === Kr && e.overrides) return e.overrides;
2772
2772
  if (t.length === 0) return;
2773
- const { left: n, top: o, width: a, height: c } = Xt(t.map((u) => Ic(r, u)).reduce((u, d) => u.concat(d), [])), h = new _(a, c), l = new _(n, o).add(h.scalarDivide(2));
2773
+ const { left: n, top: o, width: a, height: c } = Xt(t.map((u) => Ec(r, u)).reduce((u, d) => u.concat(d), [])), h = new _(a, c), l = new _(n, o).add(h.scalarDivide(2));
2774
2774
  if (s === re) {
2775
2775
  const u = this.getInitialSize(e, { size: h, center: l });
2776
2776
  return { center: l, relativeCorrection: new _(0, 0), size: u };
@@ -2785,7 +2785,7 @@ class en extends fi {
2785
2785
  }
2786
2786
  }
2787
2787
  b(en, "type", "fit-content"), k.setClass(en);
2788
- const Pu = ["strategy"], Au = ["target", "strategy", "bubbles", "prevStrategy"], Pc = "layoutManager";
2788
+ const Au = ["strategy"], Lu = ["target", "strategy", "bubbles", "prevStrategy"], Pc = "layoutManager";
2789
2789
  class Ys {
2790
2790
  constructor() {
2791
2791
  let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : new en();
@@ -2801,7 +2801,7 @@ class Ys {
2801
2801
  }
2802
2802
  attachHandlers(t, e) {
2803
2803
  const { target: s } = e;
2804
- return [Xr, ja, Xs, Ea, ri, Ia, Wr, Pa, Il].map((r) => t.on(r, (n) => this.performLayout(r === Xr ? { type: "object_modified", trigger: r, e: n, target: s } : { type: "object_modifying", trigger: r, e: n, target: s })));
2804
+ return [Xr, ja, Xs, Ia, ri, Ea, Wr, Pa, Pl].map((r) => t.on(r, (n) => this.performLayout(r === Xr ? { type: "object_modified", trigger: r, e: n, target: s } : { type: "object_modifying", trigger: r, e: n, target: s })));
2805
2805
  }
2806
2806
  subscribe(t, e) {
2807
2807
  this.unsubscribe(t, e);
@@ -2820,7 +2820,7 @@ class Ys {
2820
2820
  onBeforeLayout(t) {
2821
2821
  const { target: e, type: s } = t, { canvas: r } = e;
2822
2822
  if (s === re || s === qr ? this.subscribeTargets(t) : s === zn && this.unsubscribeTargets(t), e.fire("layout:before", { context: t }), r && r.fire("object:layout:before", { target: e, context: t }), s === Kr && t.deep) {
2823
- const n = V(t, Pu);
2823
+ const n = V(t, Au);
2824
2824
  e.forEachObject((o) => o.layoutManager && o.layoutManager.performLayout(v(v({}, n), {}, { bubbles: !1, target: o })));
2825
2825
  }
2826
2826
  }
@@ -2846,7 +2846,7 @@ class Ys {
2846
2846
  s.set({ left: s.left + r.x, top: s.top + r.y });
2847
2847
  }
2848
2848
  onAfterLayout(t, e) {
2849
- const { target: s, strategy: r, bubbles: n, prevStrategy: o } = t, a = V(t, Au), { canvas: c } = s;
2849
+ const { target: s, strategy: r, bubbles: n, prevStrategy: o } = t, a = V(t, Lu), { canvas: c } = s;
2850
2850
  s.fire("layout:after", { context: t, result: e }), c && c.fire("object:layout:after", { context: t, result: e, target: s });
2851
2851
  const h = s.parent;
2852
2852
  n && h != null && h.layoutManager && ((a.path || (a.path = [])).push(s), h.layoutManager.performLayout(v(v({}, a), {}, { target: h }))), s.set("dirty", !0);
@@ -2863,8 +2863,8 @@ class Ys {
2863
2863
  }
2864
2864
  }
2865
2865
  k.setClass(Ys, Pc);
2866
- const Lu = ["type", "objects", "layoutManager"];
2867
- class Fu extends Ys {
2866
+ const Fu = ["type", "objects", "layoutManager"];
2867
+ class Ru extends Ys {
2868
2868
  performLayout() {
2869
2869
  }
2870
2870
  }
@@ -3038,10 +3038,10 @@ class zt extends Aa(ht) {
3038
3038
  return this._createBaseClipPathSVGMarkup(e, { reviver: t });
3039
3039
  }
3040
3040
  static fromObject(t, e) {
3041
- let { type: s, objects: r = [], layoutManager: n } = t, o = V(t, Lu);
3041
+ let { type: s, objects: r = [], layoutManager: n } = t, o = V(t, Fu);
3042
3042
  return Promise.all([ds(r, e), Zs(o, e)]).then((a) => {
3043
3043
  let [c, h] = a;
3044
- const l = new this(c, v(v(v({}, o), h), {}, { layoutManager: new Fu() }));
3044
+ const l = new this(c, v(v(v({}, o), h), {}, { layoutManager: new Ru() }));
3045
3045
  if (n) {
3046
3046
  const u = k.getClass(n.type), d = k.getClass(n.strategy);
3047
3047
  l.layoutManager = new u(new d());
@@ -3051,23 +3051,23 @@ class zt extends Aa(ht) {
3051
3051
  }
3052
3052
  }
3053
3053
  b(zt, "type", "Group"), b(zt, "ownDefaults", { strokeWidth: 0, subTargetCheck: !1, interactive: !1 }), k.setClass(zt);
3054
- const Ac = (i, t) => Math.min(t.width / i.width, t.height / i.height), Lc = (i, t) => Math.max(t.width / i.width, t.height / i.height), sn = "\\s*,?\\s*", Cs = "".concat(sn, "(").concat(Et, ")"), Ru = "".concat(Cs).concat(Cs).concat(Cs).concat(sn, "([01])").concat(sn, "([01])").concat(Cs).concat(Cs), Bu = { m: "l", M: "L" }, Wu = (i, t, e, s, r, n, o, a, c, h, l) => {
3054
+ const Ac = (i, t) => Math.min(t.width / i.width, t.height / i.height), Lc = (i, t) => Math.max(t.width / i.width, t.height / i.height), sn = "\\s*,?\\s*", Cs = "".concat(sn, "(").concat(It, ")"), Bu = "".concat(Cs).concat(Cs).concat(Cs).concat(sn, "([01])").concat(sn, "([01])").concat(Cs).concat(Cs), Wu = { m: "l", M: "L" }, Xu = (i, t, e, s, r, n, o, a, c, h, l) => {
3055
3055
  const u = At(i), d = Lt(i), g = At(t), f = Lt(t), p = e * r * g - s * n * f + o, m = s * r * g + e * n * f + a;
3056
3056
  return ["C", h + c * (-e * r * d - s * n * u), l + c * (-s * r * d + e * n * u), p + c * (e * r * f + s * n * g), m + c * (s * r * f - e * n * g), p, m];
3057
- }, Eo = (i, t, e, s) => {
3057
+ }, Io = (i, t, e, s) => {
3058
3058
  const r = Math.atan2(t, i), n = Math.atan2(s, e);
3059
3059
  return n >= r ? n - r : 2 * Math.PI - (r - n);
3060
3060
  };
3061
3061
  function rn(i, t, e, s, r, n, o, a) {
3062
3062
  let c;
3063
- if (P.cachesBoundsOfCurve && (c = [...arguments].join(), Es.boundsOfCurveCache[c])) return Es.boundsOfCurveCache[c];
3063
+ if (P.cachesBoundsOfCurve && (c = [...arguments].join(), Is.boundsOfCurveCache[c])) return Is.boundsOfCurveCache[c];
3064
3064
  const h = Math.sqrt, l = Math.abs, u = [], d = [[0, 0], [0, 0]];
3065
3065
  let g = 6 * i - 12 * e + 6 * r, f = -3 * i + 9 * e - 9 * r + 3 * o, p = 3 * e - 3 * i;
3066
3066
  for (let w = 0; w < 2; ++w) {
3067
3067
  if (w > 0 && (g = 6 * t - 12 * s + 6 * n, f = -3 * t + 9 * s - 9 * n + 3 * a, p = 3 * s - 3 * t), l(f) < 1e-12) {
3068
3068
  if (l(g) < 1e-12) continue;
3069
- const I = -p / g;
3070
- 0 < I && I < 1 && u.push(I);
3069
+ const E = -p / g;
3070
+ 0 < E && E < 1 && u.push(E);
3071
3071
  continue;
3072
3072
  }
3073
3073
  const C = g * g - 4 * p * f;
@@ -3085,25 +3085,25 @@ function rn(i, t, e, s, r, n, o, a) {
3085
3085
  }
3086
3086
  d[0][y] = i, d[1][y] = t, d[0][y + 1] = o, d[1][y + 1] = a;
3087
3087
  const S = [new _(Math.min(...d[0]), Math.min(...d[1])), new _(Math.max(...d[0]), Math.max(...d[1]))];
3088
- return P.cachesBoundsOfCurve && (Es.boundsOfCurveCache[c] = S), S;
3088
+ return P.cachesBoundsOfCurve && (Is.boundsOfCurveCache[c] = S), S;
3089
3089
  }
3090
- const Xu = (i, t, e) => {
3090
+ const zu = (i, t, e) => {
3091
3091
  let [s, r, n, o, a, c, h, l] = e;
3092
3092
  const u = ((d, g, f, p, m, y, T) => {
3093
3093
  if (f === 0 || p === 0) return [];
3094
3094
  let S = 0, w = 0, C = 0;
3095
- const O = Math.PI, D = T * _n, M = Lt(D), I = At(D), tt = 0.5 * (-I * d - M * g), rt = 0.5 * (-I * g + M * d), X = f ** 2, B = p ** 2, A = rt ** 2, at = tt ** 2, it = X * B - X * A - B * at;
3095
+ const O = Math.PI, D = T * _n, M = Lt(D), E = At(D), tt = 0.5 * (-E * d - M * g), rt = 0.5 * (-E * g + M * d), X = f ** 2, B = p ** 2, A = rt ** 2, at = tt ** 2, it = X * B - X * A - B * at;
3096
3096
  let ct = Math.abs(f), z = Math.abs(p);
3097
3097
  if (it < 0) {
3098
3098
  const pe = Math.sqrt(1 - it / (X * B));
3099
3099
  ct *= pe, z *= pe;
3100
3100
  } else C = (m === y ? -1 : 1) * Math.sqrt(it / (X * A + B * at));
3101
- const Rt = C * ct * rt / z, Zt = -C * z * tt / ct, or = I * Rt - M * Zt + 0.5 * d, Si = M * Rt + I * Zt + 0.5 * g;
3102
- let xs = Eo(1, 0, (tt - Rt) / ct, (rt - Zt) / z), fe = Eo((tt - Rt) / ct, (rt - Zt) / z, (-tt - Rt) / ct, (-rt - Zt) / z);
3101
+ const Rt = C * ct * rt / z, Zt = -C * z * tt / ct, or = E * Rt - M * Zt + 0.5 * d, Si = M * Rt + E * Zt + 0.5 * g;
3102
+ let xs = Io(1, 0, (tt - Rt) / ct, (rt - Zt) / z), fe = Io((tt - Rt) / ct, (rt - Zt) / z, (-tt - Rt) / ct, (-rt - Zt) / z);
3103
3103
  y === 0 && fe > 0 ? fe -= 2 * O : y === 1 && fe < 0 && (fe += 2 * O);
3104
- const ar = Math.ceil(Math.abs(fe / O * 2)), Me = [], Ss = fe / ar, Ol = 8 / 3 * Math.sin(Ss / 4) * Math.sin(Ss / 4) / Math.sin(Ss / 2);
3104
+ const ar = Math.ceil(Math.abs(fe / O * 2)), Me = [], Ss = fe / ar, kl = 8 / 3 * Math.sin(Ss / 4) * Math.sin(Ss / 4) / Math.sin(Ss / 2);
3105
3105
  let wi = xs + Ss;
3106
- for (let pe = 0; pe < ar; pe++) Me[pe] = Wu(xs, wi, I, M, ct, z, or, Si, Ol, S, w), S = Me[pe][5], w = Me[pe][6], xs = wi, wi += Ss;
3106
+ for (let pe = 0; pe < ar; pe++) Me[pe] = Xu(xs, wi, E, M, ct, z, or, Si, kl, S, w), S = Me[pe][5], w = Me[pe][6], xs = wi, wi += Ss;
3107
3107
  return Me;
3108
3108
  })(h - i, l - t, r, n, a, c, o);
3109
3109
  for (let d = 0, g = u.length; d < g; d++) u[d][1] += i, u[d][2] += t, u[d][3] += i, u[d][4] += t, u[d][5] += i, u[d][6] += t;
@@ -3159,7 +3159,7 @@ const Xu = (i, t, e) => {
3159
3159
  case "a":
3160
3160
  l[6] += t, l[7] += e;
3161
3161
  case "A":
3162
- Xu(t, e, l).forEach((d) => n.push(d)), t = l[6], e = l[7];
3162
+ zu(t, e, l).forEach((d) => n.push(d)), t = l[6], e = l[7];
3163
3163
  break;
3164
3164
  case "z":
3165
3165
  case "Z":
@@ -3171,23 +3171,23 @@ const Xu = (i, t, e) => {
3171
3171
  }, Jr = (i, t, e, s) => Math.sqrt((e - i) ** 2 + (s - t) ** 2), Rc = (i, t, e, s, r, n, o, a) => (c) => {
3172
3172
  const h = c ** 3, l = ((g) => 3 * g ** 2 * (1 - g))(c), u = ((g) => 3 * g * (1 - g) ** 2)(c), d = ((g) => (1 - g) ** 3)(c);
3173
3173
  return new _(o * h + r * l + e * u + i * d, a * h + n * l + s * u + t * d);
3174
- }, Bc = (i) => i ** 2, Wc = (i) => 2 * i * (1 - i), Xc = (i) => (1 - i) ** 2, zu = (i, t, e, s, r, n, o, a) => (c) => {
3174
+ }, Bc = (i) => i ** 2, Wc = (i) => 2 * i * (1 - i), Xc = (i) => (1 - i) ** 2, Hu = (i, t, e, s, r, n, o, a) => (c) => {
3175
3175
  const h = Bc(c), l = Wc(c), u = Xc(c), d = 3 * (u * (e - i) + l * (r - e) + h * (o - r)), g = 3 * (u * (s - t) + l * (n - s) + h * (a - n));
3176
3176
  return Math.atan2(g, d);
3177
- }, Hu = (i, t, e, s, r, n) => (o) => {
3177
+ }, Yu = (i, t, e, s, r, n) => (o) => {
3178
3178
  const a = Bc(o), c = Wc(o), h = Xc(o);
3179
3179
  return new _(r * a + e * c + i * h, n * a + s * c + t * h);
3180
- }, Yu = (i, t, e, s, r, n) => (o) => {
3180
+ }, Vu = (i, t, e, s, r, n) => (o) => {
3181
3181
  const a = 1 - o, c = 2 * (a * (e - i) + o * (r - e)), h = 2 * (a * (s - t) + o * (n - s));
3182
3182
  return Math.atan2(h, c);
3183
- }, Io = (i, t, e) => {
3183
+ }, Eo = (i, t, e) => {
3184
3184
  let s = new _(t, e), r = 0;
3185
3185
  for (let n = 1; n <= 100; n += 1) {
3186
3186
  const o = i(n / 100);
3187
3187
  r += Jr(s.x, s.y, o.x, o.y), s = o;
3188
3188
  }
3189
3189
  return r;
3190
- }, Vu = (i, t) => {
3190
+ }, Gu = (i, t) => {
3191
3191
  let e, s = 0, r = 0, n = { x: i.x, y: i.y }, o = v({}, n), a = 0.01, c = 0;
3192
3192
  const h = i.iterator, l = i.angleFinder;
3193
3193
  for (; r < t && a > 1e-4; ) o = h(s), c = s, e = Jr(n.x, n.y, o.x, o.y), e + r > t ? (s -= a, a /= 2) : (n = o, s += a, r += e);
@@ -3205,10 +3205,10 @@ const Xu = (i, t, e) => {
3205
3205
  e = l, e.length = Jr(r, n, h[1], h[2]), r = h[1], n = h[2];
3206
3206
  break;
3207
3207
  case "C":
3208
- t = Rc(r, n, h[1], h[2], h[3], h[4], h[5], h[6]), e = l, e.iterator = t, e.angleFinder = zu(r, n, h[1], h[2], h[3], h[4], h[5], h[6]), e.length = Io(t, r, n), r = h[5], n = h[6];
3208
+ t = Rc(r, n, h[1], h[2], h[3], h[4], h[5], h[6]), e = l, e.iterator = t, e.angleFinder = Hu(r, n, h[1], h[2], h[3], h[4], h[5], h[6]), e.length = Eo(t, r, n), r = h[5], n = h[6];
3209
3209
  break;
3210
3210
  case "Q":
3211
- t = Hu(r, n, h[1], h[2], h[3], h[4]), e = l, e.iterator = t, e.angleFinder = Yu(r, n, h[1], h[2], h[3], h[4]), e.length = Io(t, r, n), r = h[3], n = h[4];
3211
+ t = Yu(r, n, h[1], h[2], h[3], h[4]), e = l, e.iterator = t, e.angleFinder = Vu(r, n, h[1], h[2], h[3], h[4]), e.length = Eo(t, r, n), r = h[3], n = h[4];
3212
3212
  break;
3213
3213
  case "Z":
3214
3214
  e = l, e.destX = o, e.destY = a, e.length = Jr(r, n, o, a), r = o, n = a;
@@ -3229,32 +3229,32 @@ const Xu = (i, t, e) => {
3229
3229
  return v(v({}, new _(r.x, r.y).lerp(new _(o[1], o[2]), n)), {}, { angle: Math.atan2(o[2] - r.y, o[1] - r.x) });
3230
3230
  case "C":
3231
3231
  case "Q":
3232
- return Vu(r, t);
3232
+ return Gu(r, t);
3233
3233
  }
3234
- }, Gu = new RegExp("[mzlhvcsqta][^mzlhvcsqta]*", "gi"), Po = new RegExp(Ru, "g"), Nu = new RegExp(Et, "gi"), Uu = { m: 2, l: 2, h: 1, v: 1, c: 6, s: 4, q: 4, t: 2, a: 7 }, Hc = (i) => {
3234
+ }, Nu = new RegExp("[mzlhvcsqta][^mzlhvcsqta]*", "gi"), Po = new RegExp(Bu, "g"), Uu = new RegExp(It, "gi"), $u = { m: 2, l: 2, h: 1, v: 1, c: 6, s: 4, q: 4, t: 2, a: 7 }, Hc = (i) => {
3235
3235
  var t;
3236
- const e = [], s = (t = i.match(Gu)) !== null && t !== void 0 ? t : [];
3236
+ const e = [], s = (t = i.match(Nu)) !== null && t !== void 0 ? t : [];
3237
3237
  for (const r of s) {
3238
3238
  const n = r[0];
3239
3239
  if (n === "z" || n === "Z") {
3240
3240
  e.push([n]);
3241
3241
  continue;
3242
3242
  }
3243
- const o = Uu[n.toLowerCase()];
3243
+ const o = $u[n.toLowerCase()];
3244
3244
  let a = [];
3245
3245
  if (n === "a" || n === "A") {
3246
3246
  Po.lastIndex = 0;
3247
3247
  for (let c = null; c = Po.exec(r); ) a.push(...c.slice(1));
3248
- } else a = r.match(Nu) || [];
3248
+ } else a = r.match(Uu) || [];
3249
3249
  for (let c = 0; c < a.length; c += o) {
3250
- const h = new Array(o), l = Bu[n];
3250
+ const h = new Array(o), l = Wu[n];
3251
3251
  h[0] = c > 0 && l ? l : n;
3252
3252
  for (let u = 0; u < o; u++) h[u + 1] = parseFloat(a[c + u]);
3253
3253
  e.push(h);
3254
3254
  }
3255
3255
  }
3256
3256
  return e;
3257
- }, $u = function(i) {
3257
+ }, qu = function(i) {
3258
3258
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, e = new _(i[0]), s = new _(i[1]), r = 1, n = 0;
3259
3259
  const o = [], a = i.length, c = a > 2;
3260
3260
  let h;
@@ -3274,8 +3274,8 @@ function Zr(i, t) {
3274
3274
  return e.setProperty(r, n);
3275
3275
  }));
3276
3276
  }
3277
- const qu = (i, t) => Math.floor(Math.random() * (t - i + 1)) + i;
3278
- function Ku(i) {
3277
+ const Ku = (i, t) => Math.floor(Math.random() * (t - i + 1)) + i;
3278
+ function Ju(i) {
3279
3279
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
3280
3280
  const e = t.onComplete || Le, s = new (Ks()).XMLHttpRequest(), r = t.signal, n = function() {
3281
3281
  s.abort();
@@ -3287,7 +3287,7 @@ function Ku(i) {
3287
3287
  s.readyState === 4 && (o(), e(s), s.onreadystatechange = Le);
3288
3288
  }, s.onerror = s.ontimeout = o, s.open("get", i, !0), s.send(), s;
3289
3289
  }
3290
- const Ju = (i, t) => {
3290
+ const Zu = (i, t) => {
3291
3291
  let e = i._findCenterFromElement();
3292
3292
  i.transformMatrix && (((s) => {
3293
3293
  if (s.transformMatrix) {
@@ -3300,7 +3300,7 @@ var Yn = Object.freeze({ __proto__: null, addTransformToObject: Ua, animate: Fn,
3300
3300
  var t;
3301
3301
  const e = Tt(i);
3302
3302
  return (t = e.getContext("2d")) === null || t === void 0 || t.drawImage(i, 0, 0), e;
3303
- }, cos: At, createCanvasElement: Yt, createImage: Ra, createRotateMatrix: Ye, createScaleMatrix: oi, createSkewXMatrix: kn, createSkewYMatrix: Mn, createTranslateMatrix: bs, createVector: Nr, crossProduct: cs, degreesToRadians: U, dotProduct: ac, ease: Ul, enlivenObjectEnlivables: Zs, enlivenObjects: ds, findScaleToCover: Lc, findScaleToFit: Ac, getBoundsOfCurve: rn, getOrthonormalVector: An, getPathSegmentsInfo: Hn, getPointOnPath: zc, getPointer: Na, getRandomInt: qu, getRegularPolygonPath: (i, t) => {
3303
+ }, cos: At, createCanvasElement: Yt, createImage: Ra, createRotateMatrix: Ye, createScaleMatrix: oi, createSkewXMatrix: kn, createSkewYMatrix: Mn, createTranslateMatrix: bs, createVector: Nr, crossProduct: cs, degreesToRadians: U, dotProduct: ac, ease: $l, enlivenObjectEnlivables: Zs, enlivenObjects: ds, findScaleToCover: Lc, findScaleToFit: Ac, getBoundsOfCurve: rn, getOrthonormalVector: An, getPathSegmentsInfo: Hn, getPointOnPath: zc, getPointer: Na, getRandomInt: Ku, getRegularPolygonPath: (i, t) => {
3304
3304
  const e = 2 * Math.PI / i;
3305
3305
  let s = -Te;
3306
3306
  i % 2 == 0 && (s += e / 2);
@@ -3310,7 +3310,7 @@ var Yn = Object.freeze({ __proto__: null, addTransformToObject: Ua, animate: Fn,
3310
3310
  r[n] = [n === 0 ? "M" : "L", a, c];
3311
3311
  }
3312
3312
  return r[i] = ["Z"], r;
3313
- }, getSmoothPathFromPoints: $u, getSvgAttributes: (i) => {
3313
+ }, getSmoothPathFromPoints: qu, getSvgAttributes: (i) => {
3314
3314
  const t = ["instantiated_by_use", "style", "id", "class"];
3315
3315
  switch (i) {
3316
3316
  case "linearGradient":
@@ -3330,7 +3330,7 @@ var Yn = Object.freeze({ __proto__: null, addTransformToObject: Ua, animate: Fn,
3330
3330
  }, multiplyTransformMatrices: $, multiplyTransformMatrixArray: ni, parsePath: Hc, parsePreserveAspectRatioAttribute: Qa, parseUnit: Fe, pick: Ve, projectStrokeOnPoints: kc, qrDecompose: us, radiansToDegrees: Vt, removeFromArray: De, removeTransformFromObject: (i, t) => {
3331
3331
  const e = bt(t), s = $(e, i.calcOwnMatrix());
3332
3332
  fs(i, s);
3333
- }, removeTransformMatrixForSvgParsing: Ju, request: Ku, requestAnimFrame: Is, resetObjectTransform: $a, rotatePoint: (i, t, e) => i.rotate(e, t), rotateVector: Pn, saveObjectTransform: jn, sendObjectToPlane: $i, sendPointToPlane: oe, sendVectorToPlane: qa, setStyle: Zr, sin: Lt, sizeAfterTransform: ai, string: uu, stylesFromArray: jc, stylesToArray: Dc, toBlob: On, toDataURL: Cn, toFixed: W, transformPath: (i, t, e) => (e && (t = $(t, [1, 0, 0, 1, -e.x, -e.y])), i.map((s) => {
3333
+ }, removeTransformMatrixForSvgParsing: Zu, request: Ju, requestAnimFrame: Es, resetObjectTransform: $a, rotatePoint: (i, t, e) => i.rotate(e, t), rotateVector: Pn, saveObjectTransform: jn, sendObjectToPlane: $i, sendPointToPlane: oe, sendVectorToPlane: qa, setStyle: Zr, sin: Lt, sizeAfterTransform: ai, string: du, stylesFromArray: jc, stylesToArray: Dc, toBlob: On, toDataURL: Cn, toFixed: W, transformPath: (i, t, e) => (e && (t = $(t, [1, 0, 0, 1, -e.x, -e.y])), i.map((s) => {
3334
3334
  const r = [...s];
3335
3335
  for (let n = 1; n < s.length - 1; n += 2) {
3336
3336
  const { x: o, y: a } = lt({ x: s[n], y: s[n + 1] }, t);
@@ -3338,7 +3338,7 @@ var Yn = Object.freeze({ __proto__: null, addTransformToObject: Ua, animate: Fn,
3338
3338
  }
3339
3339
  return r;
3340
3340
  })), transformPoint: lt });
3341
- class Zu extends Ga {
3341
+ class Qu extends Ga {
3342
3342
  constructor(t) {
3343
3343
  let { allowTouchScrolling: e = !1, containerClass: s = "" } = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
3344
3344
  super(t), b(this, "upper", void 0), b(this, "container", void 0);
@@ -3394,7 +3394,7 @@ class pi extends Qs {
3394
3394
  return this.elements.container;
3395
3395
  }
3396
3396
  initElements(t) {
3397
- this.elements = new Zu(t, { allowTouchScrolling: this.allowTouchScrolling, containerClass: this.containerClass }), this._createCacheCanvas();
3397
+ this.elements = new Qu(t, { allowTouchScrolling: this.allowTouchScrolling, containerClass: this.containerClass }), this._createCacheCanvas();
3398
3398
  }
3399
3399
  _onObjectAdded(t) {
3400
3400
  this._objectsToRender = void 0, super._onObjectAdded(t);
@@ -3627,7 +3627,7 @@ class pi extends Qs {
3627
3627
  }
3628
3628
  }
3629
3629
  b(pi, "ownDefaults", { uniformScaling: !0, uniScaleKey: "shiftKey", centeredScaling: !1, centeredRotation: !1, centeredKey: "altKey", altActionKey: "shiftKey", selection: !0, selectionKey: "shiftKey", selectionColor: "rgba(100, 100, 255, 0.3)", selectionDashArray: [], selectionBorderColor: "rgba(255, 255, 255, 0.3)", selectionLineWidth: 1, selectionFullyContained: !1, hoverCursor: "move", moveCursor: "move", defaultCursor: "default", freeDrawingCursor: "crosshair", notAllowedCursor: "not-allowed", perPixelTargetFind: !1, targetFindTolerance: 0, skipTargetFind: !1, stopContextMenu: !1, fireRightClick: !1, fireMiddleClick: !1, enablePointerEvents: !1, containerClass: "canvas-container", preserveObjectStacking: !1 });
3630
- class Qu {
3630
+ class td {
3631
3631
  constructor(t) {
3632
3632
  b(this, "targets", []), b(this, "__disposer", void 0);
3633
3633
  const e = () => {
@@ -3664,7 +3664,7 @@ class Qu {
3664
3664
  this.clear(), this.__disposer(), delete this.__disposer;
3665
3665
  }
3666
3666
  }
3667
- const td = ["target", "oldTarget", "fireCanvas", "e"], yt = { passive: !1 }, Je = (i, t) => {
3667
+ const ed = ["target", "oldTarget", "fireCanvas", "e"], yt = { passive: !1 }, Je = (i, t) => {
3668
3668
  const e = i.getViewportPoint(t), s = i.getScenePoint(t);
3669
3669
  return { viewportPoint: e, scenePoint: s, pointer: e, absolutePointer: s };
3670
3670
  }, ve = function(i) {
@@ -3673,10 +3673,10 @@ const td = ["target", "oldTarget", "fireCanvas", "e"], yt = { passive: !1 }, Je
3673
3673
  }, xt = function(i) {
3674
3674
  for (var t = arguments.length, e = new Array(t > 1 ? t - 1 : 0), s = 1; s < t; s++) e[s - 1] = arguments[s];
3675
3675
  return i.removeEventListener(...e);
3676
- }, ed = { mouse: { in: "over", out: "out", targetIn: "mouseover", targetOut: "mouseout", canvasIn: "mouse:over", canvasOut: "mouse:out" }, drag: { in: "enter", out: "leave", targetIn: "dragenter", targetOut: "dragleave", canvasIn: "drag:enter", canvasOut: "drag:leave" } };
3676
+ }, sd = { mouse: { in: "over", out: "out", targetIn: "mouseover", targetOut: "mouseout", canvasIn: "mouse:over", canvasOut: "mouse:out" }, drag: { in: "enter", out: "leave", targetIn: "dragenter", targetOut: "dragleave", canvasIn: "drag:enter", canvasOut: "drag:leave" } };
3677
3677
  class nn extends pi {
3678
3678
  constructor(t) {
3679
- super(t, arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}), b(this, "_isClick", void 0), b(this, "textEditingManager", new Qu(this)), ["_onMouseDown", "_onTouchStart", "_onMouseMove", "_onMouseUp", "_onTouchEnd", "_onResize", "_onMouseWheel", "_onMouseOut", "_onMouseEnter", "_onContextMenu", "_onClick", "_onDragStart", "_onDragEnd", "_onDragProgress", "_onDragOver", "_onDragEnter", "_onDragLeave", "_onDrop"].forEach((e) => {
3679
+ super(t, arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}), b(this, "_isClick", void 0), b(this, "textEditingManager", new td(this)), ["_onMouseDown", "_onTouchStart", "_onMouseMove", "_onMouseUp", "_onTouchEnd", "_onResize", "_onMouseWheel", "_onMouseOut", "_onMouseEnter", "_onContextMenu", "_onClick", "_onDragStart", "_onDragEnd", "_onDragProgress", "_onDragOver", "_onDragEnter", "_onDragLeave", "_onDrop"].forEach((e) => {
3680
3680
  this[e] = this[e].bind(this);
3681
3681
  }), this.addOrRemove(ve, "add");
3682
3682
  }
@@ -3920,8 +3920,8 @@ class nn extends pi {
3920
3920
  this._draggedoverTarget = t;
3921
3921
  }
3922
3922
  fireSyntheticInOutEvents(t, e) {
3923
- let { target: s, oldTarget: r, fireCanvas: n, e: o } = e, a = V(e, td);
3924
- const { targetIn: c, targetOut: h, canvasIn: l, canvasOut: u } = ed[t], d = r !== s;
3923
+ let { target: s, oldTarget: r, fireCanvas: n, e: o } = e, a = V(e, ed);
3924
+ const { targetIn: c, targetOut: h, canvasIn: l, canvasOut: u } = sd[t], d = r !== s;
3925
3925
  if (r && d) {
3926
3926
  const g = v(v({}, a), {}, { e: o, target: r, nextTarget: s }, Je(this, o));
3927
3927
  n && this.fire(u, g), r.fire(h, g);
@@ -3989,7 +3989,7 @@ class nn extends pi {
3989
3989
  this.removeListeners(), this.textEditingManager.dispose(), super.destroy();
3990
3990
  }
3991
3991
  }
3992
- const Vc = { x1: 0, y1: 0, x2: 0, y2: 0 }, sd = v(v({}, Vc), {}, { r1: 0, r2: 0 }), Qe = (i, t) => isNaN(i) && typeof t == "number" ? t : i;
3992
+ const Vc = { x1: 0, y1: 0, x2: 0, y2: 0 }, rd = v(v({}, Vc), {}, { r1: 0, r2: 0 }), Qe = (i, t) => isNaN(i) && typeof t == "number" ? t : i;
3993
3993
  function Gc(i) {
3994
3994
  return i && /%$/.test(i) && Number.isFinite(parseFloat(i));
3995
3995
  }
@@ -3997,24 +3997,24 @@ function Nc(i, t) {
3997
3997
  const e = typeof i == "number" ? i : typeof i == "string" ? parseFloat(i) / (Gc(i) ? 100 : 1) : NaN;
3998
3998
  return Xe(0, Qe(e, t), 1);
3999
3999
  }
4000
- const rd = /\s*;\s*/, id = /\s*:\s*/;
4001
- function nd(i, t) {
4000
+ const id = /\s*;\s*/, nd = /\s*:\s*/;
4001
+ function od(i, t) {
4002
4002
  let e, s;
4003
4003
  const r = i.getAttribute("style");
4004
4004
  if (r) {
4005
- const o = r.split(rd);
4005
+ const o = r.split(id);
4006
4006
  o[o.length - 1] === "" && o.pop();
4007
4007
  for (let a = o.length; a--; ) {
4008
- const [c, h] = o[a].split(id).map((l) => l.trim());
4008
+ const [c, h] = o[a].split(nd).map((l) => l.trim());
4009
4009
  c === "stop-color" ? e = h : c === "stop-opacity" && (s = h);
4010
4010
  }
4011
4011
  }
4012
4012
  const n = new F(e || i.getAttribute("stop-color") || "rgb(0,0,0)");
4013
4013
  return { offset: Nc(i.getAttribute("offset"), 0), color: n.toRgb(), opacity: Qe(parseFloat(s || i.getAttribute("stop-opacity") || ""), 1) * n.getAlpha() * t };
4014
4014
  }
4015
- function od(i, t) {
4015
+ function ad(i, t) {
4016
4016
  const e = [], s = i.getElementsByTagName("stop"), r = Nc(t, 1);
4017
- for (let n = s.length; n--; ) e.push(nd(s[n], r));
4017
+ for (let n = s.length; n--; ) e.push(od(s[n], r));
4018
4018
  return e;
4019
4019
  }
4020
4020
  function Uc(i) {
@@ -4026,7 +4026,7 @@ function $c(i) {
4026
4026
  function kt(i, t) {
4027
4027
  return i.getAttribute(t);
4028
4028
  }
4029
- function ad(i, t) {
4029
+ function cd(i, t) {
4030
4030
  return function(e, s) {
4031
4031
  let r, { width: n, height: o, gradientUnits: a } = s;
4032
4032
  return Object.entries(e).reduce((c, h) => {
@@ -4048,7 +4048,7 @@ function ad(i, t) {
4048
4048
  class hr {
4049
4049
  constructor(t) {
4050
4050
  const { type: e = "linear", gradientUnits: s = "pixels", coords: r = {}, colorStops: n = [], offsetX: o = 0, offsetY: a = 0, gradientTransform: c, id: h } = t || {};
4051
- Object.assign(this, { type: e, gradientUnits: s, coords: v(v({}, e === "radial" ? sd : Vc), r), colorStops: n, offsetX: o, offsetY: a, gradientTransform: c, id: h ? "".concat(h, "_").concat(xe()) : xe() });
4051
+ Object.assign(this, { type: e, gradientUnits: s, coords: v(v({}, e === "radial" ? rd : Vc), r), colorStops: n, offsetX: o, offsetY: a, gradientTransform: c, id: h ? "".concat(h, "_").concat(xe()) : xe() });
4052
4052
  }
4053
4053
  addColorStop(t) {
4054
4054
  for (const e in t) {
@@ -4105,11 +4105,11 @@ class hr {
4105
4105
  }
4106
4106
  static fromElement(t, e, s) {
4107
4107
  const r = $c(t), n = e._findCenterFromElement();
4108
- return new this(v({ id: t.getAttribute("id") || void 0, type: Uc(t), coords: ad(t, { width: s.viewBoxWidth || s.width, height: s.viewBoxHeight || s.height }), colorStops: od(t, s.opacity), gradientUnits: r, gradientTransform: tn(t.getAttribute("gradientTransform") || "") }, r === "pixels" ? { offsetX: e.width / 2 - n.x, offsetY: e.height / 2 - n.y } : { offsetX: 0, offsetY: 0 }));
4108
+ return new this(v({ id: t.getAttribute("id") || void 0, type: Uc(t), coords: cd(t, { width: s.viewBoxWidth || s.width, height: s.viewBoxHeight || s.height }), colorStops: ad(t, s.opacity), gradientUnits: r, gradientTransform: tn(t.getAttribute("gradientTransform") || "") }, r === "pixels" ? { offsetX: e.width / 2 - n.x, offsetY: e.height / 2 - n.y } : { offsetX: 0, offsetY: 0 }));
4109
4109
  }
4110
4110
  }
4111
4111
  b(hr, "type", "Gradient"), k.setClass(hr, "gradient"), k.setClass(hr, "linear"), k.setClass(hr, "radial");
4112
- const cd = ["type", "source", "patternTransform"];
4112
+ const hd = ["type", "source", "patternTransform"];
4113
4113
  class Pi {
4114
4114
  get type() {
4115
4115
  return "pattern";
@@ -4144,17 +4144,17 @@ class Pi {
4144
4144
  `);
4145
4145
  }
4146
4146
  static async fromObject(t, e) {
4147
- let { type: s, source: r, patternTransform: n } = t, o = V(t, cd);
4147
+ let { type: s, source: r, patternTransform: n } = t, o = V(t, hd);
4148
4148
  const a = await Ps(r, v(v({}, e), {}, { crossOrigin: o.crossOrigin }));
4149
4149
  return new this(v(v({}, o), {}, { patternTransform: n && n.slice(0), source: a }));
4150
4150
  }
4151
4151
  }
4152
4152
  b(Pi, "type", "Pattern"), k.setClass(Pi), k.setClass(Pi, "pattern");
4153
- const hd = ["path", "left", "top"], ld = ["d"];
4154
- class Ee extends ht {
4153
+ const ld = ["path", "left", "top"], ud = ["d"];
4154
+ class Ie extends ht {
4155
4155
  constructor(t) {
4156
- let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, { path: s, left: r, top: n } = e, o = V(e, hd);
4157
- super(), Object.assign(this, Ee.ownDefaults), this.setOptions(o), this._setPath(t || [], !0), typeof r == "number" && this.set(L, r), typeof n == "number" && this.set(pt, n);
4156
+ let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, { path: s, left: r, top: n } = e, o = V(e, ld);
4157
+ super(), Object.assign(this, Ie.ownDefaults), this.setOptions(o), this._setPath(t || [], !0), typeof r == "number" && this.set(L, r), typeof n == "number" && this.set(pt, n);
4158
4158
  }
4159
4159
  _setPath(t, e) {
4160
4160
  this.path = Fc(Array.isArray(t) ? t : Hc(t)), this.setBoundingBox(e);
@@ -4255,11 +4255,11 @@ class Ee extends ht {
4255
4255
  }
4256
4256
  static async fromElement(t, e, s) {
4257
4257
  const r = ue(t, this.ATTRIBUTE_NAMES, s), { d: n } = r;
4258
- return new this(n, v(v(v({}, V(r, ld)), e), {}, { left: void 0, top: void 0 }));
4258
+ return new this(n, v(v(v({}, V(r, ud)), e), {}, { left: void 0, top: void 0 }));
4259
4259
  }
4260
4260
  }
4261
- b(Ee, "type", "Path"), b(Ee, "cacheProperties", [...le, "path", "fillRule"]), b(Ee, "ATTRIBUTE_NAMES", [...ke, "d"]), k.setClass(Ee), k.setSVGClass(Ee);
4262
- const ud = ["left", "top", "radius"], qc = ["radius", "startAngle", "endAngle", "counterClockwise"];
4261
+ b(Ie, "type", "Path"), b(Ie, "cacheProperties", [...le, "path", "fillRule"]), b(Ie, "ATTRIBUTE_NAMES", [...ke, "d"]), k.setClass(Ie), k.setSVGClass(Ie);
4262
+ const dd = ["left", "top", "radius"], qc = ["radius", "startAngle", "endAngle", "counterClockwise"];
4263
4263
  class te extends ht {
4264
4264
  static getDefaults() {
4265
4265
  return v(v({}, super.getDefaults()), te.ownDefaults);
@@ -4298,14 +4298,14 @@ class te extends ht {
4298
4298
  }
4299
4299
  static async fromElement(t, e, s) {
4300
4300
  const r = ue(t, this.ATTRIBUTE_NAMES, s), { left: n = 0, top: o = 0, radius: a = 0 } = r;
4301
- return new this(v(v({}, V(r, ud)), {}, { radius: a, left: n - a, top: o - a }));
4301
+ return new this(v(v({}, V(r, dd)), {}, { radius: a, left: n - a, top: o - a }));
4302
4302
  }
4303
4303
  static fromObject(t) {
4304
4304
  return super._fromObject(t);
4305
4305
  }
4306
4306
  }
4307
4307
  b(te, "type", "Circle"), b(te, "cacheProperties", [...le, ...qc]), b(te, "ownDefaults", { radius: 0, startAngle: 0, endAngle: 360, counterClockwise: !1 }), b(te, "ATTRIBUTE_NAMES", ["cx", "cy", "r", ...ke]), k.setClass(te), k.setSVGClass(te);
4308
- const dd = ["x1", "y1", "x2", "y2"], gd = ["x1", "y1", "x2", "y2"], on = ["x1", "x2", "y1", "y2"];
4308
+ const gd = ["x1", "y1", "x2", "y2"], fd = ["x1", "y1", "x2", "y2"], on = ["x1", "x2", "y1", "y2"];
4309
4309
  class ye extends ht {
4310
4310
  constructor() {
4311
4311
  let [t, e, s, r] = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [0, 0, 0, 0], n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
@@ -4352,10 +4352,10 @@ class ye extends ht {
4352
4352
  }
4353
4353
  static async fromElement(t, e, s) {
4354
4354
  const r = ue(t, this.ATTRIBUTE_NAMES, s), { x1: n = 0, y1: o = 0, x2: a = 0, y2: c = 0 } = r;
4355
- return new this([n, o, a, c], V(r, dd));
4355
+ return new this([n, o, a, c], V(r, gd));
4356
4356
  }
4357
4357
  static fromObject(t) {
4358
- let { x1: e, y1: s, x2: r, y2: n } = t, o = V(t, gd);
4358
+ let { x1: e, y1: s, x2: r, y2: n } = t, o = V(t, fd);
4359
4359
  return this._fromObject(v(v({}, o), {}, { points: [e, s, r, n] }), { extraParam: "points" });
4360
4360
  }
4361
4361
  }
@@ -4417,14 +4417,14 @@ class ee extends ht {
4417
4417
  return r.left = (r.left || 0) - r.rx, r.top = (r.top || 0) - r.ry, new this(r);
4418
4418
  }
4419
4419
  }
4420
- function fd(i) {
4420
+ function pd(i) {
4421
4421
  if (!i) return [];
4422
4422
  const t = i.replace(/,/g, " ").trim().split(/\s+/), e = [];
4423
4423
  for (let s = 0; s < t.length; s += 2) e.push({ x: parseFloat(t[s]), y: parseFloat(t[s + 1]) });
4424
4424
  return e;
4425
4425
  }
4426
4426
  b(ee, "type", "Ellipse"), b(ee, "cacheProperties", [...le, ...Kc]), b(ee, "ownDefaults", { rx: 0, ry: 0 }), b(ee, "ATTRIBUTE_NAMES", [...ke, "cx", "cy", "rx", "ry"]), k.setClass(ee), k.setSVGClass(ee);
4427
- const pd = ["left", "top"], Jc = { exactBoundingBox: !1 };
4427
+ const md = ["left", "top"], Jc = { exactBoundingBox: !1 };
4428
4428
  class Mt extends ht {
4429
4429
  static getDefaults() {
4430
4430
  return v(v({}, super.getDefaults()), Mt.ownDefaults);
@@ -4514,7 +4514,7 @@ class Mt extends ht {
4514
4514
  return this.points.length;
4515
4515
  }
4516
4516
  static async fromElement(t, e, s) {
4517
- return new this(fd(t.getAttribute("points")), v(v({}, V(ue(t, this.ATTRIBUTE_NAMES, s), pd)), e));
4517
+ return new this(pd(t.getAttribute("points")), v(v({}, V(ue(t, this.ATTRIBUTE_NAMES, s), md)), e));
4518
4518
  }
4519
4519
  static fromObject(t) {
4520
4520
  return this._fromObject(t, { extraParam: "points" });
@@ -4607,8 +4607,8 @@ class Zc extends ht {
4607
4607
  delete this.styles[t];
4608
4608
  }
4609
4609
  }
4610
- b(Zc, "_styleProperties", Xl);
4611
- const md = / +/g, vd = /"/g;
4610
+ b(Zc, "_styleProperties", zl);
4611
+ const vd = / +/g, yd = /"/g;
4612
4612
  function Ai(i, t, e, s, r) {
4613
4613
  return " ".concat(function(n, o) {
4614
4614
  let { left: a, top: c, width: h, height: l } = o, u = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : P.NUM_FRACTION_DIGITS;
@@ -4617,7 +4617,7 @@ function Ai(i, t, e, s, r) {
4617
4617
  }(i, { left: t, top: e, width: s, height: r }), `
4618
4618
  `);
4619
4619
  }
4620
- const yd = ["textAnchor", "textDecoration", "dx", "dy", "top", "left", "fontSize", "strokeWidth"];
4620
+ const bd = ["textAnchor", "textDecoration", "dx", "dy", "top", "left", "fontSize", "strokeWidth"];
4621
4621
  let Li;
4622
4622
  class ut extends Zc {
4623
4623
  static getDefaults() {
@@ -4719,7 +4719,7 @@ class ut extends Zc {
4719
4719
  t.fillStyle = e, this._removeShadow(t);
4720
4720
  }
4721
4721
  _measureChar(t, e, s, r) {
4722
- const n = Es.getFontCache(e), o = this._getFontDeclaration(e), a = s + t, c = s && o === this._getFontDeclaration(r), h = e.fontSize / this.CACHE_FONT_SIZE;
4722
+ const n = Is.getFontCache(e), o = this._getFontDeclaration(e), a = s + t, c = s && o === this._getFontDeclaration(r), h = e.fontSize / this.CACHE_FONT_SIZE;
4723
4723
  let l, u, d, g;
4724
4724
  if (s && n.has(s) && (d = n.get(s)), n.has(t) && (g = l = n.get(t)), c && n.has(a) && (u = n.get(a), g = u - d), l === void 0 || d === void 0 || u === void 0) {
4725
4725
  const f = function() {
@@ -4891,7 +4891,7 @@ class ut extends Zc {
4891
4891
  const d = this._textLines[h], g = u / this.lineHeight, f = this._getLineLeftOffset(h);
4892
4892
  let p = 0, m = 0, y = this.getValueOfPropertyAt(h, 0, e), T = this.getValueOfPropertyAt(h, 0, et), S = this.getValueOfPropertyAt(h, 0, We), w = y, C = T, O = S;
4893
4893
  const D = s + g * (1 - this._fontSizeFraction);
4894
- let M = this.getHeightOfChar(h, 0), I = this.getValueOfPropertyAt(h, 0, "deltaY");
4894
+ let M = this.getHeightOfChar(h, 0), E = this.getValueOfPropertyAt(h, 0, "deltaY");
4895
4895
  for (let X = 0, B = d.length; X < B; X++) {
4896
4896
  const A = this.__charBounds[h][X];
4897
4897
  w = this.getValueOfPropertyAt(h, X, e), C = this.getValueOfPropertyAt(h, X, et), O = this.getValueOfPropertyAt(h, X, We);
@@ -4899,16 +4899,16 @@ class ut extends Zc {
4899
4899
  if (n && w && C) {
4900
4900
  const ct = this.fontSize * O / 1e3;
4901
4901
  t.save(), t.fillStyle = T, t.translate(A.renderLeft, A.renderTop), t.rotate(A.angle), t.fillRect(-A.kernedWidth / 2, c * at + it - a * ct, A.kernedWidth, ct), t.restore();
4902
- } else if ((w !== y || C !== T || at !== M || O !== S || it !== I) && m > 0) {
4902
+ } else if ((w !== y || C !== T || at !== M || O !== S || it !== E) && m > 0) {
4903
4903
  const ct = this.fontSize * S / 1e3;
4904
4904
  let z = r + f + p;
4905
- this.direction === "rtl" && (z = this.width - z - m), y && T && S && (t.fillStyle = T, t.fillRect(z, D + c * M + I - a * ct, m, ct)), p = A.left, m = A.width, y = w, S = O, T = C, M = at, I = it;
4905
+ this.direction === "rtl" && (z = this.width - z - m), y && T && S && (t.fillStyle = T, t.fillRect(z, D + c * M + E - a * ct, m, ct)), p = A.left, m = A.width, y = w, S = O, T = C, M = at, E = it;
4906
4906
  } else m += A.kernedWidth;
4907
4907
  }
4908
4908
  let tt = r + f + p;
4909
4909
  this.direction === "rtl" && (tt = this.width - tt - m), t.fillStyle = C;
4910
4910
  const rt = this.fontSize * O / 1e3;
4911
- w && C && O && t.fillRect(tt, D + c * M + I - a * rt, m - o, rt), s += u;
4911
+ w && C && O && t.fillRect(tt, D + c * M + E - a * rt, m - o, rt), s += u;
4912
4912
  }
4913
4913
  this._removeShadow(t);
4914
4914
  }
@@ -4946,7 +4946,7 @@ class ut extends Zc {
4946
4946
  return 1;
4947
4947
  }
4948
4948
  static async fromElement(t, e, s) {
4949
- const r = ue(t, ut.ATTRIBUTE_NAMES, s), n = v(v({}, e), r), { textAnchor: o = L, textDecoration: a = "", dx: c = 0, dy: h = 0, top: l = 0, left: u = 0, fontSize: d = Tn, strokeWidth: g = 1 } = n, f = V(n, yd), p = new this(Vr(t.textContent || "").trim(), v({ left: u + c, top: l + h, underline: a.includes("underline"), overline: a.includes("overline"), linethrough: a.includes("line-through"), strokeWidth: 0, fontSize: d }, f)), m = p.getScaledHeight() / p.height, y = ((p.height + p.strokeWidth) * p.lineHeight - p.height) * m, T = p.getScaledHeight() + y;
4949
+ const r = ue(t, ut.ATTRIBUTE_NAMES, s), n = v(v({}, e), r), { textAnchor: o = L, textDecoration: a = "", dx: c = 0, dy: h = 0, top: l = 0, left: u = 0, fontSize: d = Tn, strokeWidth: g = 1 } = n, f = V(n, bd), p = new this(Vr(t.textContent || "").trim(), v({ left: u + c, top: l + h, underline: a.includes("underline"), overline: a.includes("overline"), linethrough: a.includes("line-through"), strokeWidth: 0, fontSize: d }, f)), m = p.getScaledHeight() / p.height, y = ((p.height + p.strokeWidth) * p.lineHeight - p.height) * m, T = p.getScaledHeight() + y;
4950
4950
  let S = 0;
4951
4951
  return o === j && (S = p.getScaledWidth() / 2), o === q && (S = p.getScaledWidth()), p.set({ left: p.left - S, top: p.top - (T - p.fontSize * (0.07 + p._fontSizeFraction)) / p.lineHeight, strokeWidth: g }), p;
4952
4952
  }
@@ -4954,7 +4954,7 @@ class ut extends Zc {
4954
4954
  return this._fromObject(v(v({}, t), {}, { styles: jc(t.styles || {}, t.text) }), { extraParam: "text" });
4955
4955
  }
4956
4956
  }
4957
- b(ut, "textLayoutProperties", rc), b(ut, "cacheProperties", [...le, ...ic]), b(ut, "ownDefaults", zl), b(ut, "type", "Text"), b(ut, "genericFonts", ["serif", "sans-serif", "monospace", "cursive", "fantasy", "system-ui", "ui-serif", "ui-sans-serif", "ui-monospace", "ui-rounded", "math", "emoji", "fangsong"]), b(ut, "ATTRIBUTE_NAMES", ke.concat("x", "y", "dx", "dy", "font-family", "font-style", "font-weight", "font-size", "letter-spacing", "text-decoration", "text-anchor")), wc(ut, [class extends tc {
4957
+ b(ut, "textLayoutProperties", rc), b(ut, "cacheProperties", [...le, ...ic]), b(ut, "ownDefaults", Hl), b(ut, "type", "Text"), b(ut, "genericFonts", ["serif", "sans-serif", "monospace", "cursive", "fantasy", "system-ui", "ui-serif", "ui-sans-serif", "ui-monospace", "ui-rounded", "math", "emoji", "fangsong"]), b(ut, "ATTRIBUTE_NAMES", ke.concat("x", "y", "dx", "dy", "font-family", "font-style", "font-weight", "font-size", "letter-spacing", "text-decoration", "text-anchor")), wc(ut, [class extends tc {
4958
4958
  _toSVG() {
4959
4959
  const i = this._getSVGLeftTopOffsets(), t = this._getSVGTextAndBg(i.textTop, i.textLeft);
4960
4960
  return this._wrapSVGTextAndBg(t);
@@ -4969,7 +4969,7 @@ b(ut, "textLayoutProperties", rc), b(ut, "cacheProperties", [...le, ...ic]), b(u
4969
4969
  _wrapSVGTextAndBg(i) {
4970
4970
  let { textBgRects: t, textSpans: e } = i;
4971
4971
  const s = this.getSvgTextDecoration(this);
4972
- return [t.join(""), ' <text xml:space="preserve" ', 'font-family="'.concat(this.fontFamily.replace(vd, "'"), '" '), 'font-size="'.concat(this.fontSize, '" '), this.fontStyle ? 'font-style="'.concat(this.fontStyle, '" ') : "", this.fontWeight ? 'font-weight="'.concat(this.fontWeight, '" ') : "", s ? 'text-decoration="'.concat(s, '" ') : "", this.direction === "rtl" ? 'direction="'.concat(this.direction, '" ') : "", 'style="', this.getSvgStyles(!0), '"', this.addPaintOrder(), " >", e.join(""), `</text>
4972
+ return [t.join(""), ' <text xml:space="preserve" ', 'font-family="'.concat(this.fontFamily.replace(yd, "'"), '" '), 'font-size="'.concat(this.fontSize, '" '), this.fontStyle ? 'font-style="'.concat(this.fontStyle, '" ') : "", this.fontWeight ? 'font-weight="'.concat(this.fontWeight, '" ') : "", s ? 'text-decoration="'.concat(s, '" ') : "", this.direction === "rtl" ? 'direction="'.concat(this.direction, '" ') : "", 'style="', this.getSvgStyles(!0), '"', this.addPaintOrder(), " >", e.join(""), `</text>
4973
4973
  `];
4974
4974
  }
4975
4975
  _getSVGTextAndBg(i, t) {
@@ -4980,7 +4980,7 @@ b(ut, "textLayoutProperties", rc), b(ut, "cacheProperties", [...le, ...ic]), b(u
4980
4980
  return { textSpans: e, textBgRects: s };
4981
4981
  }
4982
4982
  _createTextCharSpan(i, t, e, s, r) {
4983
- const n = P.NUM_FRACTION_DIGITS, o = this.getSvgSpanStyles(t, i !== i.trim() || !!i.match(md)), a = o ? 'style="'.concat(o, '"') : "", c = t.deltaY, h = c ? ' dy="'.concat(W(c, n), '" ') : "", { angle: l, renderLeft: u, renderTop: d, width: g } = r;
4983
+ const n = P.NUM_FRACTION_DIGITS, o = this.getSvgSpanStyles(t, i !== i.trim() || !!i.match(vd)), a = o ? 'style="'.concat(o, '"') : "", c = t.deltaY, h = c ? ' dy="'.concat(W(c, n), '" ') : "", { angle: l, renderLeft: u, renderTop: d, width: g } = r;
4984
4984
  let f = "";
4985
4985
  if (u !== void 0) {
4986
4986
  const p = g / 2;
@@ -5024,7 +5024,7 @@ b(ut, "textLayoutProperties", rc), b(ut, "cacheProperties", [...le, ...ic]), b(u
5024
5024
  return ["overline", "underline", "line-through"].filter((t) => i[t.replace("-", "")]).join(" ");
5025
5025
  }
5026
5026
  }]), k.setClass(ut), k.setSVGClass(ut);
5027
- class bd {
5027
+ class _d {
5028
5028
  constructor(t) {
5029
5029
  b(this, "target", void 0), b(this, "__mouseDownInPlace", !1), b(this, "__dragStartFired", !1), b(this, "__isDraggingOver", !1), b(this, "__dragStartSelection", void 0), b(this, "__dragImageDisposer", void 0), b(this, "_dispose", void 0), this.target = t;
5030
5030
  const e = [this.target.on("dragenter", this.dragEnterHandler.bind(this)), this.target.on("dragover", this.dragOverHandler.bind(this)), this.target.on("dragleave", this.dragLeaveHandler.bind(this)), this.target.on("dragend", this.dragEndHandler.bind(this)), this.target.on("drop", this.dropHandler.bind(this))];
@@ -5125,7 +5125,7 @@ class bd {
5125
5125
  }
5126
5126
  }
5127
5127
  const Ao = /[ \n\.,;!\?\-]/;
5128
- class _d extends ut {
5128
+ class Td extends ut {
5129
5129
  constructor() {
5130
5130
  super(...arguments), b(this, "_currentCursorOpacity", 1);
5131
5131
  }
@@ -5360,7 +5360,7 @@ class _d extends ut {
5360
5360
  s <= t ? (e === t ? this._selectionDirection = L : this._selectionDirection === q && (this._selectionDirection = L, this.selectionEnd = t), this.selectionStart = s) : s > t && s < e ? this._selectionDirection === q ? this.selectionEnd = s : this.selectionStart = s : (e === t ? this._selectionDirection = q : this._selectionDirection === L && (this._selectionDirection = q, this.selectionStart = e), this.selectionEnd = s);
5361
5361
  }
5362
5362
  }
5363
- class Td extends _d {
5363
+ class xd extends Td {
5364
5364
  initHiddenTextarea() {
5365
5365
  const t = this.canvas && jt(this.canvas.getElement()) || ms(), e = t.createElement("textarea");
5366
5366
  Object.entries({ autocapitalize: "off", autocorrect: "off", autocomplete: "off", spellcheck: "false", "data-fabric": "textarea", wrap: "off", name: "fabricTextarea" }).map((o) => {
@@ -5517,12 +5517,12 @@ class Td extends _d {
5517
5517
  }
5518
5518
  }
5519
5519
  const Lo = (i) => !!i.button;
5520
- class xd extends Td {
5520
+ class Sd extends xd {
5521
5521
  constructor() {
5522
5522
  super(...arguments), b(this, "draggableTextDelegate", void 0);
5523
5523
  }
5524
5524
  initBehavior() {
5525
- this.on("mousedown", this._mouseDownHandler), this.on("mouseup", this.mouseUpHandler), this.on("mousedblclick", this.doubleClickHandler), this.on("mousetripleclick", this.tripleClickHandler), this.draggableTextDelegate = new bd(this), super.initBehavior();
5525
+ this.on("mousedown", this._mouseDownHandler), this.on("mouseup", this.mouseUpHandler), this.on("mousedblclick", this.doubleClickHandler), this.on("mousetripleclick", this.tripleClickHandler), this.draggableTextDelegate = new _d(this), super.initBehavior();
5526
5526
  }
5527
5527
  shouldStartDragging() {
5528
5528
  return this.draggableTextDelegate.isActive();
@@ -5579,8 +5579,8 @@ const ur = "moveCursorUp", dr = "moveCursorDown", gr = "moveCursorLeft", fr = "m
5579
5579
  i.setTransform(e, 0, 0, e, 0, 0);
5580
5580
  const s = t.viewportTransform;
5581
5581
  i.transform(s[0], s[1], s[2], s[3], s[4], s[5]);
5582
- }, Sd = v({ selectionStart: 0, selectionEnd: 0, selectionColor: "rgba(17,119,255,0.3)", isEditing: !1, editable: !0, editingBorderColor: "rgba(102,153,255,0.25)", cursorWidth: 2, cursorColor: "", cursorDelay: 1e3, cursorDuration: 600, caching: !0, hiddenTextareaContainer: null, keysMap: { 9: pr, 27: pr, 33: ur, 34: dr, 35: fr, 36: gr, 37: gr, 38: ur, 39: fr, 40: dr }, keysMapRtl: { 9: pr, 27: pr, 33: ur, 34: dr, 35: gr, 36: fr, 37: fr, 38: ur, 39: gr, 40: dr }, ctrlKeysMapDown: { 65: "cmdAll" }, ctrlKeysMapUp: { 67: "copy", 88: "cut" } }, { _selectionDirection: null, _reSpace: /\s|\r?\n/, inCompositionMode: !1 });
5583
- class ie extends xd {
5582
+ }, wd = v({ selectionStart: 0, selectionEnd: 0, selectionColor: "rgba(17,119,255,0.3)", isEditing: !1, editable: !0, editingBorderColor: "rgba(102,153,255,0.25)", cursorWidth: 2, cursorColor: "", cursorDelay: 1e3, cursorDuration: 600, caching: !0, hiddenTextareaContainer: null, keysMap: { 9: pr, 27: pr, 33: ur, 34: dr, 35: fr, 36: gr, 37: gr, 38: ur, 39: fr, 40: dr }, keysMapRtl: { 9: pr, 27: pr, 33: ur, 34: dr, 35: gr, 36: fr, 37: fr, 38: ur, 39: gr, 40: dr }, ctrlKeysMapDown: { 65: "cmdAll" }, ctrlKeysMapUp: { 67: "copy", 88: "cut" } }, { _selectionDirection: null, _reSpace: /\s|\r?\n/, inCompositionMode: !1 });
5583
+ class ie extends Sd {
5584
5584
  static getDefaults() {
5585
5585
  return v(v({}, super.getDefaults()), ie.ownDefaults);
5586
5586
  }
@@ -5734,7 +5734,7 @@ class ie extends xd {
5734
5734
  this.exitEditingImpl(), this.draggableTextDelegate.dispose(), super.dispose();
5735
5735
  }
5736
5736
  }
5737
- b(ie, "ownDefaults", Sd), b(ie, "type", "IText"), k.setClass(ie), k.setClass(ie, "i-text");
5737
+ b(ie, "ownDefaults", wd), b(ie, "type", "IText"), k.setClass(ie), k.setClass(ie, "i-text");
5738
5738
  class Ae extends ie {
5739
5739
  static getDefaults() {
5740
5740
  return v(v({}, super.getDefaults()), Ae.ownDefaults);
@@ -5879,7 +5879,7 @@ class Ro extends fi {
5879
5879
  calcLayoutResult(t, e) {
5880
5880
  const { target: s } = t, { clipPath: r, group: n } = s;
5881
5881
  if (!r || !this.shouldPerformLayout(t)) return;
5882
- const { width: o, height: a } = Xt(Ic(s, r)), c = new _(o, a);
5882
+ const { width: o, height: a } = Xt(Ec(s, r)), c = new _(o, a);
5883
5883
  if (r.absolutePositioned)
5884
5884
  return { center: oe(r.getRelativeCenterPoint(), void 0, n ? n.calcTransformMatrix() : void 0), size: c };
5885
5885
  {
@@ -5900,7 +5900,7 @@ class Bo extends fi {
5900
5900
  }
5901
5901
  }
5902
5902
  b(Bo, "type", "fixed"), k.setClass(Bo);
5903
- class wd extends Ys {
5903
+ class Cd extends Ys {
5904
5904
  subscribeTargets(t) {
5905
5905
  const e = t.target;
5906
5906
  t.targets.reduce((s, r) => (r.parent && s.add(r.parent), s), /* @__PURE__ */ new Set()).forEach((s) => {
@@ -5922,7 +5922,7 @@ class Ct extends zt {
5922
5922
  let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
5923
5923
  super(), Object.assign(this, Ct.ownDefaults), this.setOptions(e);
5924
5924
  const { left: s, top: r, layoutManager: n } = e;
5925
- this.groupInit(t, { left: s, top: r, layoutManager: n ?? new wd() });
5925
+ this.groupInit(t, { left: s, top: r, layoutManager: n ?? new Cd() });
5926
5926
  }
5927
5927
  _shouldSetNestedCoords() {
5928
5928
  return !0;
@@ -5977,7 +5977,7 @@ class Ct extends zt {
5977
5977
  }
5978
5978
  }
5979
5979
  b(Ct, "type", "ActiveSelection"), b(Ct, "ownDefaults", { multiSelectionStacking: "canvas-stacking" }), k.setClass(Ct), k.setClass(Ct, "activeSelection");
5980
- class Cd {
5980
+ class Od {
5981
5981
  constructor() {
5982
5982
  b(this, "resources", {});
5983
5983
  }
@@ -6067,14 +6067,14 @@ class Qc {
6067
6067
  }
6068
6068
  }
6069
6069
  let Fi;
6070
- function Od() {
6070
+ function kd() {
6071
6071
  const { WebGLProbe: i } = Ht();
6072
- return i.queryWebGL(Yt()), P.enableGLFiltering && i.isSupported(P.textureSize) ? new Qc({ tileSize: P.textureSize }) : new Cd();
6072
+ return i.queryWebGL(Yt()), P.enableGLFiltering && i.isSupported(P.textureSize) ? new Qc({ tileSize: P.textureSize }) : new Od();
6073
6073
  }
6074
6074
  function Ri() {
6075
- return !Fi && (!(arguments.length > 0 && arguments[0] !== void 0) || arguments[0]) && (Fi = Od()), Fi;
6075
+ return !Fi && (!(arguments.length > 0 && arguments[0] !== void 0) || arguments[0]) && (Fi = kd()), Fi;
6076
6076
  }
6077
- const kd = ["filters", "resizeFilter", "src", "crossOrigin", "type"], th = ["cropX", "cropY"];
6077
+ const Md = ["filters", "resizeFilter", "src", "crossOrigin", "type"], th = ["cropX", "cropY"];
6078
6078
  class St extends ht {
6079
6079
  static getDefaults() {
6080
6080
  return v(v({}, super.getDefaults()), St.ownDefaults);
@@ -6206,7 +6206,7 @@ class St extends ht {
6206
6206
  return !t || t.alignX === mt && t.alignY === mt ? (c = e / o, h = s / a) : (t.meetOrSlice === "meet" && (c = h = Ac(this._element, r), n = (e - o * c) / 2, t.alignX === "Min" && (l = -n), t.alignX === "Max" && (l = n), n = (s - a * h) / 2, t.alignY === "Min" && (u = -n), t.alignY === "Max" && (u = n)), t.meetOrSlice === "slice" && (c = h = Lc(this._element, r), n = o - e / c, t.alignX === "Mid" && (d = n / 2), t.alignX === "Max" && (d = n), n = a - s / h, t.alignY === "Mid" && (g = n / 2), t.alignY === "Max" && (g = n), o = e / c, a = s / h)), { width: o, height: a, scaleX: c, scaleY: h, offsetLeft: l, offsetTop: u, cropX: d, cropY: g };
6207
6207
  }
6208
6208
  static fromObject(t, e) {
6209
- let { filters: s, resizeFilter: r, src: n, crossOrigin: o, type: a } = t, c = V(t, kd);
6209
+ let { filters: s, resizeFilter: r, src: n, crossOrigin: o, type: a } = t, c = V(t, Md);
6210
6210
  return Promise.all([Ps(n, v(v({}, e), {}, { crossOrigin: o })), s && ds(s, e), r && ds([r], e), Zs(c, e)]).then((h) => {
6211
6211
  let [l, u = [], [d] = [], g = {}] = h;
6212
6212
  return new this(l, v(v({}, c), {}, { src: n, filters: u, resizeFilter: d }, g));
@@ -6237,18 +6237,18 @@ const eh = Pa, Wo = (i) => function(t, e, s) {
6237
6237
  const { path: s, pathOffset: r } = i, n = s[t];
6238
6238
  return new _(n[e] - r.x, n[e + 1] - r.y).transform($(i.getViewportTransform(), i.calcTransformMatrix()));
6239
6239
  };
6240
- function Md(i, t, e) {
6240
+ function Dd(i, t, e) {
6241
6241
  const { commandIndex: s, pointIndex: r } = this;
6242
6242
  return an(e, s, r);
6243
6243
  }
6244
- function Dd(i, t, e, s) {
6244
+ function jd(i, t, e, s) {
6245
6245
  const { target: r } = t, { commandIndex: n, pointIndex: o } = this, a = ((c, h, l, u, d) => {
6246
6246
  const { path: g, pathOffset: f } = c, p = g[(u > 0 ? u : g.length) - 1], m = new _(p[d], p[d + 1]), y = m.subtract(f).transform(c.calcOwnMatrix()), T = oe(new _(h, l), void 0, c.calcOwnMatrix());
6247
6247
  g[u][d] = T.x + f.x, g[u][d + 1] = T.y + f.y, c.setDimensions();
6248
6248
  const S = m.subtract(c.pathOffset).transform(c.calcOwnMatrix()).subtract(y);
6249
6249
  return c.left -= S.x, c.top -= S.y, c.set("dirty", !0), !0;
6250
6250
  })(r, e, s, n, o);
6251
- return En(this.actionName, v(v({}, In(i, t, e, s)), {}, { commandIndex: n, pointIndex: o })), a;
6251
+ return In(this.actionName, v(v({}, En(i, t, e, s)), {}, { commandIndex: n, pointIndex: o })), a;
6252
6252
  }
6253
6253
  class ih extends N {
6254
6254
  constructor(t) {
@@ -6259,7 +6259,7 @@ class ih extends N {
6259
6259
  super.render(t, e, s, o, n);
6260
6260
  }
6261
6261
  }
6262
- class jd extends ih {
6262
+ class Id extends ih {
6263
6263
  constructor(t) {
6264
6264
  super(t);
6265
6265
  }
@@ -6274,7 +6274,7 @@ class jd extends ih {
6274
6274
  t.lineTo(d.x, d.y), t.stroke(), t.restore(), super.render(t, e, s, r, n);
6275
6275
  }
6276
6276
  }
6277
- const mr = (i, t, e, s, r, n) => new (e ? jd : ih)(v(v({ commandIndex: i, pointIndex: t, actionName: "modifyPath", positionHandler: Md, actionHandler: Dd, connectToCommandIndex: r, connectToPointIndex: n }, s), e ? s.controlPointStyle : s.pointStyle));
6277
+ const mr = (i, t, e, s, r, n) => new (e ? Id : ih)(v(v({ commandIndex: i, pointIndex: t, actionName: "modifyPath", positionHandler: Dd, actionHandler: jd, connectToCommandIndex: r, connectToPointIndex: n }, s), e ? s.controlPointStyle : s.pointStyle));
6278
6278
  var _s = Object.freeze({ __proto__: null, changeWidth: Ji, createObjectDefaultControls: Bn, createPathControls: function(i) {
6279
6279
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
6280
6280
  const e = {};
@@ -6295,20 +6295,20 @@ var _s = Object.freeze({ __proto__: null, changeWidth: Ji, createObjectDefaultCo
6295
6295
  const e = {};
6296
6296
  for (let s = 0; s < (typeof i == "number" ? i : i.points.length); s++) e["p".concat(s)] = new N(v({ actionName: eh, positionHandler: Wo(s), actionHandler: Xo(s) }, t));
6297
6297
  return e;
6298
- }, createPolyPositionHandler: Wo, createResizeControls: xc, createTextboxDefaultControls: Sc, dragHandler: Za, factoryPolyActionHandler: rh, getLocalPoint: ci, polyActionHandler: sh, renderCircleControl: lc, renderSquareControl: uc, rotationStyleHandler: dc, rotationWithSnapping: gc, scaleCursorStyleHandler: Ze, scaleOrSkewActionName: Ms, scaleSkewCursorStyleHandler: Ie, scalingEqually: ks, scalingX: mc, scalingXOrSkewingY: Zi, scalingY: vc, scalingYOrSkewingX: Qi, skewCursorStyleHandler: yc, skewHandlerX: _c, skewHandlerY: Tc, wrapWithFireEvent: Oe, wrapWithFixedAnchor: Ge });
6298
+ }, createPolyPositionHandler: Wo, createResizeControls: xc, createTextboxDefaultControls: Sc, dragHandler: Za, factoryPolyActionHandler: rh, getLocalPoint: ci, polyActionHandler: sh, renderCircleControl: lc, renderSquareControl: uc, rotationStyleHandler: dc, rotationWithSnapping: gc, scaleCursorStyleHandler: Ze, scaleOrSkewActionName: Ms, scaleSkewCursorStyleHandler: Ee, scalingEqually: ks, scalingX: mc, scalingXOrSkewingY: Zi, scalingY: vc, scalingYOrSkewingX: Qi, skewCursorStyleHandler: yc, skewHandlerX: _c, skewHandlerY: Tc, wrapWithFireEvent: Oe, wrapWithFixedAnchor: Ge });
6299
6299
  const mi = (i) => i.webgl !== void 0, Vn = "precision highp float", Ed = `
6300
6300
  `.concat(Vn, `;
6301
6301
  varying vec2 vTexCoord;
6302
6302
  uniform sampler2D uTexture;
6303
6303
  void main() {
6304
6304
  gl_FragColor = texture2D(uTexture, vTexCoord);
6305
- }`), Id = ["type"], Pd = ["type"], Ad = new RegExp(Vn, "g");
6305
+ }`), Pd = ["type"], Ad = ["type"], Ld = new RegExp(Vn, "g");
6306
6306
  class st {
6307
6307
  get type() {
6308
6308
  return this.constructor.type;
6309
6309
  }
6310
6310
  constructor() {
6311
- let t = V(arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, Id);
6311
+ let t = V(arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, Pd);
6312
6312
  Object.assign(this, this.constructor.defaults, t);
6313
6313
  }
6314
6314
  getFragmentSource() {
@@ -6326,7 +6326,7 @@ class st {
6326
6326
  createProgram(t) {
6327
6327
  let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.getFragmentSource(), s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : this.getVertexSource();
6328
6328
  const { WebGLProbe: { GLPrecision: r = "highp" } } = Ht();
6329
- r !== "highp" && (e = e.replace(Ad, Vn.replace("highp", r)));
6329
+ r !== "highp" && (e = e.replace(Ld, Vn.replace("highp", r)));
6330
6330
  const n = t.createShader(t.VERTEX_SHADER), o = t.createShader(t.FRAGMENT_SHADER), a = t.createProgram();
6331
6331
  if (!n || !o || !a) throw new Wt("Vertex, fragment shader or program creation error");
6332
6332
  if (t.shaderSource(n, s), t.compileShader(n), !t.getShaderParameter(n, t.COMPILE_STATUS)) throw new Wt("Vertex shader compile error for ".concat(this.type, ": ").concat(t.getShaderInfoLog(n)));
@@ -6400,11 +6400,11 @@ class st {
6400
6400
  return this.toObject();
6401
6401
  }
6402
6402
  static async fromObject(t, e) {
6403
- return new this(V(t, Pd));
6403
+ return new this(V(t, Ad));
6404
6404
  }
6405
6405
  }
6406
6406
  b(st, "type", "BaseFilter"), b(st, "uniformLocations", []);
6407
- const Ld = { multiply: `gl_FragColor.rgb *= uColor.rgb;
6407
+ const Fd = { multiply: `gl_FragColor.rgb *= uColor.rgb;
6408
6408
  `, screen: `gl_FragColor.rgb = 1.0 - (1.0 - gl_FragColor.rgb) * (1.0 - uColor.rgb);
6409
6409
  `, add: `gl_FragColor.rgb += uColor.rgb;
6410
6410
  `, difference: `gl_FragColor.rgb = abs(gl_FragColor.rgb - uColor.rgb);
@@ -6446,7 +6446,7 @@ class vr extends st {
6446
6446
  vec4 color = texture2D(uTexture, vTexCoord);
6447
6447
  gl_FragColor = color;
6448
6448
  if (color.a > 0.0) {
6449
- `.concat(Ld[this.mode], `
6449
+ `.concat(Fd[this.mode], `
6450
6450
  }
6451
6451
  }
6452
6452
  `);
@@ -6497,7 +6497,7 @@ class vr extends st {
6497
6497
  }
6498
6498
  }
6499
6499
  b(vr, "defaults", { color: "#F95C63", mode: "multiply", alpha: 1 }), b(vr, "type", "BlendColor"), b(vr, "uniformLocations", ["uColor"]), k.setClass(vr);
6500
- const Fd = { multiply: `
6500
+ const Rd = { multiply: `
6501
6501
  precision highp float;
6502
6502
  uniform sampler2D uTexture;
6503
6503
  uniform sampler2D uImage;
@@ -6523,13 +6523,13 @@ const Fd = { multiply: `
6523
6523
  color.a = color2.a;
6524
6524
  gl_FragColor = color;
6525
6525
  }
6526
- ` }, Rd = ["type", "image"];
6526
+ ` }, Bd = ["type", "image"];
6527
6527
  class yr extends st {
6528
6528
  getCacheKey() {
6529
6529
  return "".concat(this.type, "_").concat(this.mode);
6530
6530
  }
6531
6531
  getFragmentSource() {
6532
- return Fd[this.mode];
6532
+ return Rd[this.mode];
6533
6533
  }
6534
6534
  getVertexSource() {
6535
6535
  return `
@@ -6581,7 +6581,7 @@ class yr extends st {
6581
6581
  return v(v({}, super.toObject()), {}, { image: this.image && this.image.toObject() });
6582
6582
  }
6583
6583
  static async fromObject(t, e) {
6584
- let { type: s, image: r } = t, n = V(t, Rd);
6584
+ let { type: s, image: r } = t, n = V(t, Bd);
6585
6585
  return St.fromObject(r, e).then((o) => new this(v(v({}, n), {}, { image: o })));
6586
6586
  }
6587
6587
  }
@@ -6797,7 +6797,7 @@ class Tr extends st {
6797
6797
  }
6798
6798
  }
6799
6799
  b(Tr, "type", "Contrast"), b(Tr, "defaults", { contrast: 0 }), b(Tr, "uniformLocations", ["uContrast"]), k.setClass(Tr);
6800
- const Bd = { Convolute_3_1: `
6800
+ const Wd = { Convolute_3_1: `
6801
6801
  precision highp float;
6802
6802
  uniform sampler2D uTexture;
6803
6803
  uniform float uMatrix[9];
@@ -6947,7 +6947,7 @@ class xr extends st {
6947
6947
  return "".concat(this.type, "_").concat(Math.sqrt(this.matrix.length), "_").concat(this.opaque ? 1 : 0);
6948
6948
  }
6949
6949
  getFragmentSource() {
6950
- return Bd[this.getCacheKey()];
6950
+ return Wd[this.getCacheKey()];
6951
6951
  }
6952
6952
  applyTo2d(t) {
6953
6953
  const e = t.imageData, s = e.data, r = this.matrix, n = Math.round(Math.sqrt(r.length)), o = Math.floor(n / 2), a = e.width, c = e.height, h = t.ctx.createImageData(a, c), l = h.data, u = this.opaque ? 1 : 0;
@@ -7009,7 +7009,7 @@ class Sr extends st {
7009
7009
  }
7010
7010
  }
7011
7011
  b(Sr, "type", oh), b(Sr, "defaults", { gamma: [1, 1, 1] }), b(Sr, "uniformLocations", ["uGamma"]), k.setClass(Sr);
7012
- const Wd = { average: `
7012
+ const Xd = { average: `
7013
7013
  precision highp float;
7014
7014
  uniform sampler2D uTexture;
7015
7015
  varying vec2 vTexCoord;
@@ -7061,7 +7061,7 @@ class wr extends st {
7061
7061
  return "".concat(this.type, "_").concat(this.mode);
7062
7062
  }
7063
7063
  getFragmentSource() {
7064
- return Wd[this.mode];
7064
+ return Xd[this.mode];
7065
7065
  }
7066
7066
  sendUniformData(t, e) {
7067
7067
  t.uniform1i(e.uMode, 1);
@@ -7071,7 +7071,7 @@ class wr extends st {
7071
7071
  }
7072
7072
  }
7073
7073
  b(wr, "type", "Grayscale"), b(wr, "defaults", { mode: "average" }), b(wr, "uniformLocations", ["uMode"]), k.setClass(wr);
7074
- const Xd = v(v({}, nh), {}, { rotation: 0 });
7074
+ const zd = v(v({}, nh), {}, { rotation: 0 });
7075
7075
  class Bi extends ts {
7076
7076
  calculateMatrix() {
7077
7077
  const t = this.rotation * Math.PI, e = At(t), s = Lt(t), r = 1 / 3, n = Math.sqrt(r) * s, o = 1 - e;
@@ -7087,7 +7087,7 @@ class Bi extends ts {
7087
7087
  return { type: this.type, rotation: this.rotation };
7088
7088
  }
7089
7089
  }
7090
- b(Bi, "type", "HueRotation"), b(Bi, "defaults", Xd), k.setClass(Bi);
7090
+ b(Bi, "type", "HueRotation"), b(Bi, "defaults", zd), k.setClass(Bi);
7091
7091
  class Cr extends st {
7092
7092
  applyTo2d(t) {
7093
7093
  let { imageData: { data: e } } = t;
@@ -7310,21 +7310,21 @@ class Dr extends st {
7310
7310
  lanczosResize(t, e, s, r, n) {
7311
7311
  const o = t.imageData.data, a = t.ctx.createImageData(r, n), c = a.data, h = this.lanczosCreate(this.lanczosLobes), l = this.rcpScaleX, u = this.rcpScaleY, d = 2 / this.rcpScaleX, g = 2 / this.rcpScaleY, f = Math.ceil(l * this.lanczosLobes / 2), p = Math.ceil(u * this.lanczosLobes / 2), m = {}, y = { x: 0, y: 0 }, T = { x: 0, y: 0 };
7312
7312
  return function S(w) {
7313
- let C, O, D, M, I, tt, rt, X, B, A, at;
7313
+ let C, O, D, M, E, tt, rt, X, B, A, at;
7314
7314
  for (y.x = (w + 0.5) * l, T.x = Math.floor(y.x), C = 0; C < n; C++) {
7315
- for (y.y = (C + 0.5) * u, T.y = Math.floor(y.y), I = 0, tt = 0, rt = 0, X = 0, B = 0, O = T.x - f; O <= T.x + f; O++) if (!(O < 0 || O >= e)) {
7315
+ for (y.y = (C + 0.5) * u, T.y = Math.floor(y.y), E = 0, tt = 0, rt = 0, X = 0, B = 0, O = T.x - f; O <= T.x + f; O++) if (!(O < 0 || O >= e)) {
7316
7316
  A = Math.floor(1e3 * Math.abs(O - y.x)), m[A] || (m[A] = {});
7317
- for (let it = T.y - p; it <= T.y + p; it++) it < 0 || it >= s || (at = Math.floor(1e3 * Math.abs(it - y.y)), m[A][at] || (m[A][at] = h(Math.sqrt(Math.pow(A * d, 2) + Math.pow(at * g, 2)) / 1e3)), D = m[A][at], D > 0 && (M = 4 * (it * e + O), I += D, tt += D * o[M], rt += D * o[M + 1], X += D * o[M + 2], B += D * o[M + 3]));
7317
+ for (let it = T.y - p; it <= T.y + p; it++) it < 0 || it >= s || (at = Math.floor(1e3 * Math.abs(it - y.y)), m[A][at] || (m[A][at] = h(Math.sqrt(Math.pow(A * d, 2) + Math.pow(at * g, 2)) / 1e3)), D = m[A][at], D > 0 && (M = 4 * (it * e + O), E += D, tt += D * o[M], rt += D * o[M + 1], X += D * o[M + 2], B += D * o[M + 3]));
7318
7318
  }
7319
- M = 4 * (C * r + w), c[M] = tt / I, c[M + 1] = rt / I, c[M + 2] = X / I, c[M + 3] = B / I;
7319
+ M = 4 * (C * r + w), c[M] = tt / E, c[M + 1] = rt / E, c[M + 2] = X / E, c[M + 3] = B / E;
7320
7320
  }
7321
7321
  return ++w < r ? S(w) : a;
7322
7322
  }(0);
7323
7323
  }
7324
7324
  bilinearFiltering(t, e, s, r, n) {
7325
7325
  let o, a, c, h, l, u, d, g, f, p, m, y, T, S = 0;
7326
- const w = this.rcpScaleX, C = this.rcpScaleY, O = 4 * (e - 1), D = t.imageData.data, M = t.ctx.createImageData(r, n), I = M.data;
7327
- for (d = 0; d < n; d++) for (g = 0; g < r; g++) for (l = Math.floor(w * g), u = Math.floor(C * d), f = w * g - l, p = C * d - u, T = 4 * (u * e + l), m = 0; m < 4; m++) o = D[T + m], a = D[T + 4 + m], c = D[T + O + m], h = D[T + O + 4 + m], y = o * (1 - f) * (1 - p) + a * f * (1 - p) + c * p * (1 - f) + h * f * p, I[S++] = y;
7326
+ const w = this.rcpScaleX, C = this.rcpScaleY, O = 4 * (e - 1), D = t.imageData.data, M = t.ctx.createImageData(r, n), E = M.data;
7327
+ for (d = 0; d < n; d++) for (g = 0; g < r; g++) for (l = Math.floor(w * g), u = Math.floor(C * d), f = w * g - l, p = C * d - u, T = 4 * (u * e + l), m = 0; m < 4; m++) o = D[T + m], a = D[T + 4 + m], c = D[T + O + m], h = D[T + O + 4 + m], y = o * (1 - f) * (1 - p) + a * f * (1 - p) + c * p * (1 - f) + h * f * p, E[S++] = y;
7328
7328
  return M;
7329
7329
  }
7330
7330
  hermiteFastResize(t, e, s, r, n) {
@@ -7334,7 +7334,7 @@ class Dr extends st {
7334
7334
  let m = 0, y = 0, T = 0, S = 0, w = 0, C = 0, O = 0;
7335
7335
  const D = (g + 0.5) * a;
7336
7336
  for (let M = Math.floor(g * a); M < (g + 1) * a; M++) {
7337
- const I = Math.abs(D - (M + 0.5)) / h, tt = (f + 0.5) * o, rt = I * I;
7337
+ const E = Math.abs(D - (M + 0.5)) / h, tt = (f + 0.5) * o, rt = E * E;
7338
7338
  for (let X = Math.floor(f * o); X < (f + 1) * o; X++) {
7339
7339
  let B = Math.abs(tt - (X + 0.5)) / c;
7340
7340
  const A = Math.sqrt(rt + B * B);
@@ -7381,7 +7381,7 @@ class jr extends st {
7381
7381
  }
7382
7382
  }
7383
7383
  b(jr, "type", "Saturation"), b(jr, "defaults", { saturation: 0 }), b(jr, "uniformLocations", ["uSaturation"]), k.setClass(jr);
7384
- class Er extends st {
7384
+ class Ir extends st {
7385
7385
  getFragmentSource() {
7386
7386
  return `
7387
7387
  precision highp float;
@@ -7415,7 +7415,7 @@ class Er extends st {
7415
7415
  return this.vibrance === 0;
7416
7416
  }
7417
7417
  }
7418
- b(Er, "type", "Vibrance"), b(Er, "defaults", { vibrance: 0 }), b(Er, "uniformLocations", ["uVibrance"]), k.setClass(Er);
7418
+ b(Ir, "type", "Vibrance"), b(Ir, "defaults", { vibrance: 0 }), b(Ir, "uniformLocations", ["uVibrance"]), k.setClass(Ir);
7419
7419
  function Gt(i, t, e, s, r) {
7420
7420
  const a = r.canvas;
7421
7421
  if (!a) return;
@@ -7428,7 +7428,7 @@ function Gt(i, t, e, s, r) {
7428
7428
  r.top + c[5] + r.height / 2
7429
7429
  ), i.rotate(Yn.degreesToRadians(90 + r.angle)), i.lineWidth = 6, i.lineCap = "round", i.strokeStyle = "white", i.beginPath(), i.moveTo(-6, 0), i.lineTo(6, 0), i.stroke(), i.lineWidth = 4, i.strokeStyle = "black", i.beginPath(), i.moveTo(-6, 0), i.lineTo(6, 0), i.stroke(), i.restore();
7430
7430
  }
7431
- const zd = {
7431
+ const Hd = {
7432
7432
  selectable: !1,
7433
7433
  evented: !1,
7434
7434
  strokeWidth: 0,
@@ -7461,15 +7461,15 @@ const zd = {
7461
7461
  this.width = e;
7462
7462
  }
7463
7463
  };
7464
- x(es, "ownDefaults", zd), x(es, "type", "Track");
7464
+ x(es, "ownDefaults", Hd), x(es, "type", "Track");
7465
7465
  let Nt = es;
7466
7466
  k.setClass(Nt, "Track");
7467
- const er = 1, Ue = "rgba(255, 255, 255,1.0)", Hd = [
7467
+ const er = 1, Ue = "rgba(255, 255, 255,1.0)", Yd = [
7468
7468
  "Track",
7469
7469
  "Transition",
7470
7470
  "Helper",
7471
7471
  "PreviewTrackItem"
7472
- ], Yd = {
7472
+ ], Vd = {
7473
7473
  top: {
7474
7474
  top: 35,
7475
7475
  guide: 2,
@@ -7485,8 +7485,8 @@ const er = 1, Ue = "rgba(255, 255, 255,1.0)", Hd = [
7485
7485
  guide: 2,
7486
7486
  bottom: 35
7487
7487
  }
7488
- }, Vd = (i, t) => {
7489
- const e = Yd[i];
7488
+ }, Gd = (i, t) => {
7489
+ const e = Vd[i];
7490
7490
  return i === "top" ? {
7491
7491
  top: t - (e.guide + e.bottom),
7492
7492
  guide: e.guide,
@@ -7502,7 +7502,7 @@ const er = 1, Ue = "rgba(255, 255, 255,1.0)", Hd = [
7502
7502
  };
7503
7503
  }, ss = class ss extends zt {
7504
7504
  constructor(e) {
7505
- const s = Vd(e.kind, e.height), r = new Q({
7505
+ const s = Gd(e.kind, e.height), r = new Q({
7506
7506
  top: 0,
7507
7507
  left: 0,
7508
7508
  strokeWidth: 0,
@@ -7602,15 +7602,15 @@ x(rs, "type", "Placeholder"), x(rs, "ownDefaults", {
7602
7602
  });
7603
7603
  let Vs = rs;
7604
7604
  k.setClass(Vs, "Placeholder");
7605
- const Gd = {
7605
+ const Nd = {
7606
7606
  left: -0.5,
7607
7607
  top: -0.5,
7608
7608
  center: 0,
7609
7609
  bottom: 0.5,
7610
7610
  right: 0.5
7611
- }, E = (i) => typeof i == "string" ? Gd[i] : i - 0.5, ze = "center", sr = "left", Py = "top", Ay = "bottom", rr = "right", Ly = "none";
7611
+ }, I = (i) => typeof i == "string" ? Nd[i] : i - 0.5, ze = "center", sr = "left", Ay = "top", Ly = "bottom", rr = "right", Fy = "none";
7612
7612
  function ir(i) {
7613
- return E(i.originX) === E(ze) && E(i.originY) === E(ze);
7613
+ return I(i.originX) === I(ze) && I(i.originY) === I(ze);
7614
7614
  }
7615
7615
  function vi(i) {
7616
7616
  return (t, e, s, r) => {
@@ -7622,30 +7622,30 @@ function vi(i) {
7622
7622
  ), l;
7623
7623
  };
7624
7624
  }
7625
- const Ho = 3, Nd = 4, ah = 188, Ud = 60, $d = 1e3 / Ud;
7625
+ const Ho = 3, Ud = 4, ah = 187, $d = 60, qd = 1e3 / $d;
7626
7626
  function ot(i, t = 1, e = 1) {
7627
7627
  const s = ah * t;
7628
7628
  return i * (60 / 1e3) * s / e;
7629
7629
  }
7630
7630
  function R(i, t = 1, e = 1) {
7631
7631
  const s = ah * t;
7632
- return i / s * $d * e;
7632
+ return i / s * qd * e;
7633
7633
  }
7634
- function Fy(i, t = 1) {
7634
+ function Ry(i, t = 1) {
7635
7635
  return ot(i, t);
7636
7636
  }
7637
7637
  const Rr = (i) => Object.keys(i).reduce((t, e) => {
7638
7638
  const { display: s } = i[e];
7639
7639
  return Math.max(t, s.to);
7640
- }, 0), { wrapWithFireEvent: qd, getLocalPoint: Kd } = _s, Jd = (i, t, e, s) => {
7641
- const r = Kd(
7640
+ }, 0), { wrapWithFireEvent: Kd, getLocalPoint: Jd } = _s, Zd = (i, t, e, s) => {
7641
+ const r = Jd(
7642
7642
  t,
7643
7643
  t.originX,
7644
7644
  t.originY,
7645
7645
  e,
7646
7646
  s
7647
7647
  );
7648
- if (E(t.originX) === E(ze) || E(t.originX) === E(rr) && r.x < 0 || E(t.originX) === E(sr) && r.x > 0) {
7648
+ if (I(t.originX) === I(ze) || I(t.originX) === I(rr) && r.x < 0 || I(t.originX) === I(sr) && r.x > 0) {
7649
7649
  let { target: n } = t, o = n.strokeWidth / (n.strokeUniform ? n.scaleX : 1), a = ir(t) ? 2 : 1, c = n.width, h = Math.ceil(
7650
7650
  Math.abs(r.x * a / n.scaleX) - o
7651
7651
  );
@@ -7688,18 +7688,18 @@ const Rr = (i) => Object.keys(i).reduce((t, e) => {
7688
7688
  return c !== n.width;
7689
7689
  }
7690
7690
  return !1;
7691
- }, cn = qd(
7691
+ }, cn = Kd(
7692
7692
  "resizing",
7693
- vi(Jd)
7694
- ), { wrapWithFireEvent: Zd, getLocalPoint: Qd, wrapWithFixedAnchor: tg } = _s, eg = (i, t, e, s) => {
7695
- const r = Qd(
7693
+ vi(Zd)
7694
+ ), { wrapWithFireEvent: Qd, getLocalPoint: tg, wrapWithFixedAnchor: eg } = _s, sg = (i, t, e, s) => {
7695
+ const r = tg(
7696
7696
  t,
7697
7697
  t.originX,
7698
7698
  t.originY,
7699
7699
  e,
7700
7700
  s
7701
7701
  );
7702
- if (E(t.originX) === E(ze) || E(t.originX) === E(rr) && r.x < 0 || E(t.originX) === E(sr) && r.x > 0) {
7702
+ if (I(t.originX) === I(ze) || I(t.originX) === I(rr) && r.x < 0 || I(t.originX) === I(sr) && r.x > 0) {
7703
7703
  const { target: n } = t, o = n.strokeWidth / (n.strokeUniform ? n.scaleX : 1), a = ir(t) ? 2 : 1, c = n.width, h = Math.ceil(
7704
7704
  Math.abs(r.x * a / n.scaleX) - o
7705
7705
  ), l = t.corner === "ml";
@@ -7717,18 +7717,18 @@ const Rr = (i) => Object.keys(i).reduce((t, e) => {
7717
7717
  ) < u ? !1 : (n.set("width", Math.max(h, 0)), c !== n.width);
7718
7718
  }
7719
7719
  return !1;
7720
- }, hn = Zd(
7720
+ }, hn = Qd(
7721
7721
  "resizing",
7722
- tg(eg)
7723
- ), { wrapWithFireEvent: sg, getLocalPoint: rg } = _s, ig = (i, t, e, s) => {
7724
- const r = rg(
7722
+ eg(sg)
7723
+ ), { wrapWithFireEvent: rg, getLocalPoint: ig } = _s, ng = (i, t, e, s) => {
7724
+ const r = ig(
7725
7725
  t,
7726
7726
  t.originX,
7727
7727
  t.originY,
7728
7728
  e,
7729
7729
  s
7730
7730
  );
7731
- if (E(t.originX) === E(ze) || E(t.originX) === E(rr) && r.x < 0 || E(t.originX) === E(sr) && r.x > 0) {
7731
+ if (I(t.originX) === I(ze) || I(t.originX) === I(rr) && r.x < 0 || I(t.originX) === I(sr) && r.x > 0) {
7732
7732
  const { target: n } = t, o = n.strokeWidth / (n.strokeUniform ? n.scaleX : 1), a = ir(t) ? 2 : 1, c = n.width, h = Math.ceil(
7733
7733
  Math.abs(r.x * a / n.scaleX) - o
7734
7734
  ), l = R(
@@ -7739,18 +7739,18 @@ const Rr = (i) => Object.keys(i).reduce((t, e) => {
7739
7739
  return l >= 1500 || l < 500 ? !1 : (n.set("width", Math.max(h, 0)), n.set("duration", l), c !== n.width);
7740
7740
  }
7741
7741
  return !1;
7742
- }, ln = sg(
7742
+ }, ln = rg(
7743
7743
  "resizing",
7744
- vi(ig)
7745
- ), { wrapWithFireEvent: ng, getLocalPoint: og } = _s, ag = (i, t, e, s) => {
7746
- const r = og(
7744
+ vi(ng)
7745
+ ), { wrapWithFireEvent: og, getLocalPoint: ag } = _s, cg = (i, t, e, s) => {
7746
+ const r = ag(
7747
7747
  t,
7748
7748
  t.originX,
7749
7749
  t.originY,
7750
7750
  e,
7751
7751
  s
7752
7752
  );
7753
- if (E(t.originX) === E(ze) || E(t.originX) === E(rr) && r.x < 0 || E(t.originX) === E(sr) && r.x > 0) {
7753
+ if (I(t.originX) === I(ze) || I(t.originX) === I(rr) && r.x < 0 || I(t.originX) === I(sr) && r.x > 0) {
7754
7754
  let { target: n } = t, o = n.strokeWidth / (n.strokeUniform ? n.scaleX : 1), a = ir(t) ? 2 : 1, c = n.width, h = Math.ceil(
7755
7755
  Math.abs(r.x * a / n.scaleX) - o
7756
7756
  );
@@ -7777,10 +7777,10 @@ const Rr = (i) => Object.keys(i).reduce((t, e) => {
7777
7777
  return c !== n.width;
7778
7778
  }
7779
7779
  return !1;
7780
- }, Yo = ng(
7780
+ }, Yo = og(
7781
7781
  "resizing",
7782
- vi(ag)
7783
- ), { scaleSkewCursorStyleHandler: Ut } = _s, cg = () => ({
7782
+ vi(cg)
7783
+ ), { scaleSkewCursorStyleHandler: Ut } = _s, hg = () => ({
7784
7784
  mr: new N({
7785
7785
  x: 0.5,
7786
7786
  y: 0,
@@ -7799,7 +7799,7 @@ const Rr = (i) => Object.keys(i).reduce((t, e) => {
7799
7799
  render: Gt,
7800
7800
  controlOrientation: "left"
7801
7801
  })
7802
- }), Ry = () => ({
7802
+ }), By = () => ({
7803
7803
  mr: new N({
7804
7804
  x: 0.5,
7805
7805
  y: 0,
@@ -7818,7 +7818,7 @@ const Rr = (i) => Object.keys(i).reduce((t, e) => {
7818
7818
  actionName: "resizing",
7819
7819
  controlOrientation: "left"
7820
7820
  })
7821
- }), By = () => ({
7821
+ }), Wy = () => ({
7822
7822
  mr: new N({
7823
7823
  x: 0.5,
7824
7824
  y: 0,
@@ -7837,7 +7837,7 @@ const Rr = (i) => Object.keys(i).reduce((t, e) => {
7837
7837
  actionName: "resizing",
7838
7838
  controlOrientation: "left"
7839
7839
  })
7840
- }), hg = () => ({
7840
+ }), lg = () => ({
7841
7841
  mr: new N({
7842
7842
  x: 0.5,
7843
7843
  y: 0,
@@ -7875,11 +7875,11 @@ const Rr = (i) => Object.keys(i).reduce((t, e) => {
7875
7875
  render: Gt,
7876
7876
  controlOrientation: "left"
7877
7877
  })
7878
- }), lg = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
7878
+ }), ug = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
7879
7879
  let nr = (i = 21) => {
7880
7880
  let t = "", e = crypto.getRandomValues(new Uint8Array(i |= 0));
7881
7881
  for (; i--; )
7882
- t += lg[e[i] & 63];
7882
+ t += ug[e[i] & 63];
7883
7883
  return t;
7884
7884
  };
7885
7885
  function Ds(i = 16) {
@@ -7887,15 +7887,15 @@ function Ds(i = 16) {
7887
7887
  let s = nr(i - 1);
7888
7888
  return s = s.replace(/[^a-zA-Z0-9]/g, "").slice(0, i - 1), e + s;
7889
7889
  }
7890
- const { wrapWithFireEvent: ug, getLocalPoint: dg } = _s, gg = (i, t, e, s) => {
7891
- const r = dg(
7890
+ const { wrapWithFireEvent: dg, getLocalPoint: gg } = _s, fg = (i, t, e, s) => {
7891
+ const r = gg(
7892
7892
  t,
7893
7893
  t.originX,
7894
7894
  t.originY,
7895
7895
  e,
7896
7896
  s
7897
7897
  );
7898
- if (E(t.originX) === E(ze) || E(t.originX) === E(rr) && r.x < 0 || E(t.originX) === E(sr) && r.x > 0) {
7898
+ if (I(t.originX) === I(ze) || I(t.originX) === I(rr) && r.x < 0 || I(t.originX) === I(sr) && r.x > 0) {
7899
7899
  let { target: n } = t, o = n.strokeWidth / (n.strokeUniform ? n.scaleX : 1), a = ir(t) ? 2 : 1, c = n.width, h = Math.ceil(
7900
7900
  Math.abs(r.x * a / n.scaleX) - o
7901
7901
  );
@@ -7950,9 +7950,9 @@ const { wrapWithFireEvent: ug, getLocalPoint: dg } = _s, gg = (i, t, e, s) => {
7950
7950
  return c !== n.width;
7951
7951
  }
7952
7952
  return !1;
7953
- }, un = ug(
7953
+ }, un = dg(
7954
7954
  "resizing",
7955
- vi(gg)
7955
+ vi(fg)
7956
7956
  ), is = class is extends Q {
7957
7957
  constructor(e) {
7958
7958
  super(e);
@@ -8021,7 +8021,7 @@ const Bs = class Bs extends Q {
8021
8021
  Object.assign(this, Bs.ownDefaults), this.id = e.id, this.tScale = e.tScale, this.objectCaching = !1, this.rx = 8, this.ry = 8;
8022
8022
  }
8023
8023
  static createControls() {
8024
- return { controls: hg() };
8024
+ return { controls: lg() };
8025
8025
  }
8026
8026
  // add custom text to the track item
8027
8027
  _render(e) {
@@ -8065,7 +8065,7 @@ const ns = class ns extends Q {
8065
8065
  Object.assign(this, ns.ownDefaults), this.tScale = e.tScale, this.display = e.display;
8066
8066
  }
8067
8067
  static createControls() {
8068
- return { controls: cg() };
8068
+ return { controls: hg() };
8069
8069
  }
8070
8070
  static getDefaults() {
8071
8071
  return {
@@ -8103,7 +8103,7 @@ x(ns, "type", "Resizable"), x(ns, "ownDefaults", {
8103
8103
  });
8104
8104
  let dn = ns;
8105
8105
  k.setClass(dn, "Resizable");
8106
- function fg(i) {
8106
+ function pg(i) {
8107
8107
  const t = Math.floor(i / 1e3), e = Math.floor(t / 60), s = t % 60, r = String(e).padStart(2, "0"), n = String(s).padStart(2, "0");
8108
8108
  return `${r}:${n}`;
8109
8109
  }
@@ -8117,7 +8117,7 @@ const os = class os extends Q {
8117
8117
  x(this, "name");
8118
8118
  x(this, "durationString");
8119
8119
  x(this, "itemType");
8120
- Object.assign(this, os.ownDefaults), this.id = e.id, this.fill = "#27272a", this.name = e.type.toUpperCase(), this.durationString = fg(e.duration), this.itemType = e.type;
8120
+ Object.assign(this, os.ownDefaults), this.id = e.id, this.fill = "#27272a", this.name = e.type.toUpperCase(), this.durationString = pg(e.duration), this.itemType = e.type;
8121
8121
  }
8122
8122
  static getDefaults() {
8123
8123
  return {
@@ -8165,7 +8165,7 @@ x(os, "type", "PreviewTrackItem"), x(os, "ownDefaults", {
8165
8165
  });
8166
8166
  let we = os;
8167
8167
  k.setClass(we, "PreviewTrackItem");
8168
- class pg {
8168
+ class mg {
8169
8169
  constructor() {
8170
8170
  x(this, "___eventListeners", {});
8171
8171
  x(this, "___activeObjects", []);
@@ -8209,7 +8209,7 @@ function Gs(i, t) {
8209
8209
  items: e.items.filter((s) => !t.includes(s))
8210
8210
  }));
8211
8211
  }
8212
- const mg = (i, t) => {
8212
+ const vg = (i, t) => {
8213
8213
  var h, l, u, d, g;
8214
8214
  const e = i.display, s = ot(e.from, t.tScale), r = ot(
8215
8215
  e.to - e.from,
@@ -8235,33 +8235,33 @@ const mg = (i, t) => {
8235
8235
  };
8236
8236
  return new a(c);
8237
8237
  };
8238
- var hh = typeof global == "object" && global && global.Object === Object && global, vg = typeof self == "object" && self && self.Object === Object && self, Ft = hh || vg || Function("return this")(), Ot = Ft.Symbol, lh = Object.prototype, yg = lh.hasOwnProperty, bg = lh.toString, Os = Ot ? Ot.toStringTag : void 0;
8239
- function _g(i) {
8240
- var t = yg.call(i, Os), e = i[Os];
8238
+ var hh = typeof global == "object" && global && global.Object === Object && global, yg = typeof self == "object" && self && self.Object === Object && self, Ft = hh || yg || Function("return this")(), Ot = Ft.Symbol, lh = Object.prototype, bg = lh.hasOwnProperty, _g = lh.toString, Os = Ot ? Ot.toStringTag : void 0;
8239
+ function Tg(i) {
8240
+ var t = bg.call(i, Os), e = i[Os];
8241
8241
  try {
8242
8242
  i[Os] = void 0;
8243
8243
  var s = !0;
8244
8244
  } catch {
8245
8245
  }
8246
- var r = bg.call(i);
8246
+ var r = _g.call(i);
8247
8247
  return s && (t ? i[Os] = e : delete i[Os]), r;
8248
8248
  }
8249
- var Tg = Object.prototype, xg = Tg.toString;
8250
- function Sg(i) {
8251
- return xg.call(i);
8249
+ var xg = Object.prototype, Sg = xg.toString;
8250
+ function wg(i) {
8251
+ return Sg.call(i);
8252
8252
  }
8253
- var wg = "[object Null]", Cg = "[object Undefined]", Vo = Ot ? Ot.toStringTag : void 0;
8253
+ var Cg = "[object Null]", Og = "[object Undefined]", Vo = Ot ? Ot.toStringTag : void 0;
8254
8254
  function Ts(i) {
8255
- return i == null ? i === void 0 ? Cg : wg : Vo && Vo in Object(i) ? _g(i) : Sg(i);
8255
+ return i == null ? i === void 0 ? Og : Cg : Vo && Vo in Object(i) ? Tg(i) : wg(i);
8256
8256
  }
8257
8257
  function Ce(i) {
8258
8258
  return i != null && typeof i == "object";
8259
8259
  }
8260
- var Og = "[object Symbol]";
8260
+ var kg = "[object Symbol]";
8261
8261
  function yi(i) {
8262
- return typeof i == "symbol" || Ce(i) && Ts(i) == Og;
8262
+ return typeof i == "symbol" || Ce(i) && Ts(i) == kg;
8263
8263
  }
8264
- function kg(i, t) {
8264
+ function Mg(i, t) {
8265
8265
  for (var e = -1, s = i == null ? 0 : i.length, r = Array(s); ++e < s; )
8266
8266
  r[e] = t(i[e], e, i);
8267
8267
  return r;
@@ -8271,27 +8271,27 @@ function uh(i) {
8271
8271
  if (typeof i == "string")
8272
8272
  return i;
8273
8273
  if (qt(i))
8274
- return kg(i, uh) + "";
8274
+ return Mg(i, uh) + "";
8275
8275
  if (yi(i))
8276
8276
  return No ? No.call(i) : "";
8277
8277
  var t = i + "";
8278
8278
  return t == "0" && 1 / i == -1 / 0 ? "-0" : t;
8279
8279
  }
8280
- var Mg = /\s/;
8281
- function Dg(i) {
8282
- for (var t = i.length; t-- && Mg.test(i.charAt(t)); )
8280
+ var Dg = /\s/;
8281
+ function jg(i) {
8282
+ for (var t = i.length; t-- && Dg.test(i.charAt(t)); )
8283
8283
  ;
8284
8284
  return t;
8285
8285
  }
8286
- var jg = /^\s+/;
8286
+ var Ig = /^\s+/;
8287
8287
  function Eg(i) {
8288
- return i && i.slice(0, Dg(i) + 1).replace(jg, "");
8288
+ return i && i.slice(0, jg(i) + 1).replace(Ig, "");
8289
8289
  }
8290
8290
  function Kt(i) {
8291
8291
  var t = typeof i;
8292
8292
  return i != null && (t == "object" || t == "function");
8293
8293
  }
8294
- var Uo = NaN, Ig = /^[-+]0x[0-9a-f]+$/i, Pg = /^0b[01]+$/i, Ag = /^0o[0-7]+$/i, Lg = parseInt;
8294
+ var Uo = NaN, Pg = /^[-+]0x[0-9a-f]+$/i, Ag = /^0b[01]+$/i, Lg = /^0o[0-7]+$/i, Fg = parseInt;
8295
8295
  function $o(i) {
8296
8296
  if (typeof i == "number")
8297
8297
  return i;
@@ -8304,31 +8304,31 @@ function $o(i) {
8304
8304
  if (typeof i != "string")
8305
8305
  return i === 0 ? i : +i;
8306
8306
  i = Eg(i);
8307
- var e = Pg.test(i);
8308
- return e || Ag.test(i) ? Lg(i.slice(2), e ? 2 : 8) : Ig.test(i) ? Uo : +i;
8307
+ var e = Ag.test(i);
8308
+ return e || Lg.test(i) ? Fg(i.slice(2), e ? 2 : 8) : Pg.test(i) ? Uo : +i;
8309
8309
  }
8310
- function Fg(i) {
8310
+ function Rg(i) {
8311
8311
  return i;
8312
8312
  }
8313
- var Rg = "[object AsyncFunction]", Bg = "[object Function]", Wg = "[object GeneratorFunction]", Xg = "[object Proxy]";
8313
+ var Bg = "[object AsyncFunction]", Wg = "[object Function]", Xg = "[object GeneratorFunction]", zg = "[object Proxy]";
8314
8314
  function dh(i) {
8315
8315
  if (!Kt(i))
8316
8316
  return !1;
8317
8317
  var t = Ts(i);
8318
- return t == Bg || t == Wg || t == Rg || t == Xg;
8318
+ return t == Wg || t == Xg || t == Bg || t == zg;
8319
8319
  }
8320
8320
  var Wi = Ft["__core-js_shared__"], qo = function() {
8321
8321
  var i = /[^.]+$/.exec(Wi && Wi.keys && Wi.keys.IE_PROTO || "");
8322
8322
  return i ? "Symbol(src)_1." + i : "";
8323
8323
  }();
8324
- function zg(i) {
8324
+ function Hg(i) {
8325
8325
  return !!qo && qo in i;
8326
8326
  }
8327
- var Hg = Function.prototype, Yg = Hg.toString;
8327
+ var Yg = Function.prototype, Vg = Yg.toString;
8328
8328
  function $e(i) {
8329
8329
  if (i != null) {
8330
8330
  try {
8331
- return Yg.call(i);
8331
+ return Vg.call(i);
8332
8332
  } catch {
8333
8333
  }
8334
8334
  try {
@@ -8338,23 +8338,23 @@ function $e(i) {
8338
8338
  }
8339
8339
  return "";
8340
8340
  }
8341
- var Vg = /[\\^$.*+?()[\]{}|]/g, Gg = /^\[object .+?Constructor\]$/, Ng = Function.prototype, Ug = Object.prototype, $g = Ng.toString, qg = Ug.hasOwnProperty, Kg = RegExp(
8342
- "^" + $g.call(qg).replace(Vg, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
8341
+ var Gg = /[\\^$.*+?()[\]{}|]/g, Ng = /^\[object .+?Constructor\]$/, Ug = Function.prototype, $g = Object.prototype, qg = Ug.toString, Kg = $g.hasOwnProperty, Jg = RegExp(
8342
+ "^" + qg.call(Kg).replace(Gg, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
8343
8343
  );
8344
- function Jg(i) {
8345
- if (!Kt(i) || zg(i))
8344
+ function Zg(i) {
8345
+ if (!Kt(i) || Hg(i))
8346
8346
  return !1;
8347
- var t = dh(i) ? Kg : Gg;
8347
+ var t = dh(i) ? Jg : Ng;
8348
8348
  return t.test($e(i));
8349
8349
  }
8350
- function Zg(i, t) {
8350
+ function Qg(i, t) {
8351
8351
  return i == null ? void 0 : i[t];
8352
8352
  }
8353
8353
  function qe(i, t) {
8354
- var e = Zg(i, t);
8355
- return Jg(e) ? e : void 0;
8354
+ var e = Qg(i, t);
8355
+ return Zg(e) ? e : void 0;
8356
8356
  }
8357
- var gn = qe(Ft, "WeakMap"), Ko = Object.create, Qg = /* @__PURE__ */ function() {
8357
+ var gn = qe(Ft, "WeakMap"), Ko = Object.create, tf = /* @__PURE__ */ function() {
8358
8358
  function i() {
8359
8359
  }
8360
8360
  return function(t) {
@@ -8367,7 +8367,7 @@ var gn = qe(Ft, "WeakMap"), Ko = Object.create, Qg = /* @__PURE__ */ function()
8367
8367
  return i.prototype = void 0, e;
8368
8368
  };
8369
8369
  }();
8370
- function tf(i, t, e) {
8370
+ function ef(i, t, e) {
8371
8371
  switch (e.length) {
8372
8372
  case 0:
8373
8373
  return i.call(t);
@@ -8380,20 +8380,20 @@ function tf(i, t, e) {
8380
8380
  }
8381
8381
  return i.apply(t, e);
8382
8382
  }
8383
- var ef = 800, sf = 16, rf = Date.now;
8384
- function nf(i) {
8383
+ var sf = 800, rf = 16, nf = Date.now;
8384
+ function of(i) {
8385
8385
  var t = 0, e = 0;
8386
8386
  return function() {
8387
- var s = rf(), r = sf - (s - e);
8387
+ var s = nf(), r = rf - (s - e);
8388
8388
  if (e = s, r > 0) {
8389
- if (++t >= ef)
8389
+ if (++t >= sf)
8390
8390
  return arguments[0];
8391
8391
  } else
8392
8392
  t = 0;
8393
8393
  return i.apply(void 0, arguments);
8394
8394
  };
8395
8395
  }
8396
- function of(i) {
8396
+ function af(i) {
8397
8397
  return function() {
8398
8398
  return i;
8399
8399
  };
@@ -8404,25 +8404,25 @@ var Qr = function() {
8404
8404
  return i({}, "", {}), i;
8405
8405
  } catch {
8406
8406
  }
8407
- }(), af = Qr ? function(i, t) {
8407
+ }(), cf = Qr ? function(i, t) {
8408
8408
  return Qr(i, "toString", {
8409
8409
  configurable: !0,
8410
8410
  enumerable: !1,
8411
- value: of(t),
8411
+ value: af(t),
8412
8412
  writable: !0
8413
8413
  });
8414
- } : Fg, cf = nf(af);
8415
- function hf(i, t) {
8414
+ } : Rg, hf = of(cf);
8415
+ function lf(i, t) {
8416
8416
  for (var e = -1, s = i == null ? 0 : i.length; ++e < s && t(i[e], e, i) !== !1; )
8417
8417
  ;
8418
8418
  return i;
8419
8419
  }
8420
- var lf = 9007199254740991, uf = /^(?:0|[1-9]\d*)$/;
8420
+ var uf = 9007199254740991, df = /^(?:0|[1-9]\d*)$/;
8421
8421
  function Gn(i, t) {
8422
8422
  var e = typeof i;
8423
- return t = t ?? lf, !!t && (e == "number" || e != "symbol" && uf.test(i)) && i > -1 && i % 1 == 0 && i < t;
8423
+ return t = t ?? uf, !!t && (e == "number" || e != "symbol" && df.test(i)) && i > -1 && i % 1 == 0 && i < t;
8424
8424
  }
8425
- function df(i, t, e) {
8425
+ function gf(i, t, e) {
8426
8426
  t == "__proto__" && Qr ? Qr(i, t, {
8427
8427
  configurable: !0,
8428
8428
  enumerable: !0,
@@ -8433,55 +8433,55 @@ function df(i, t, e) {
8433
8433
  function Nn(i, t) {
8434
8434
  return i === t || i !== i && t !== t;
8435
8435
  }
8436
- var gf = Object.prototype, ff = gf.hasOwnProperty;
8436
+ var ff = Object.prototype, pf = ff.hasOwnProperty;
8437
8437
  function gh(i, t, e) {
8438
8438
  var s = i[t];
8439
- (!(ff.call(i, t) && Nn(s, e)) || e === void 0 && !(t in i)) && df(i, t, e);
8439
+ (!(pf.call(i, t) && Nn(s, e)) || e === void 0 && !(t in i)) && gf(i, t, e);
8440
8440
  }
8441
8441
  var Jo = Math.max;
8442
- function pf(i, t, e) {
8442
+ function mf(i, t, e) {
8443
8443
  return t = Jo(t === void 0 ? i.length - 1 : t, 0), function() {
8444
8444
  for (var s = arguments, r = -1, n = Jo(s.length - t, 0), o = Array(n); ++r < n; )
8445
8445
  o[r] = s[t + r];
8446
8446
  r = -1;
8447
8447
  for (var a = Array(t + 1); ++r < t; )
8448
8448
  a[r] = s[r];
8449
- return a[t] = e(o), tf(i, this, a);
8449
+ return a[t] = e(o), ef(i, this, a);
8450
8450
  };
8451
8451
  }
8452
- var mf = 9007199254740991;
8452
+ var vf = 9007199254740991;
8453
8453
  function Un(i) {
8454
- return typeof i == "number" && i > -1 && i % 1 == 0 && i <= mf;
8454
+ return typeof i == "number" && i > -1 && i % 1 == 0 && i <= vf;
8455
8455
  }
8456
- function vf(i) {
8456
+ function yf(i) {
8457
8457
  return i != null && Un(i.length) && !dh(i);
8458
8458
  }
8459
- var yf = Object.prototype;
8459
+ var bf = Object.prototype;
8460
8460
  function fh(i) {
8461
- var t = i && i.constructor, e = typeof t == "function" && t.prototype || yf;
8461
+ var t = i && i.constructor, e = typeof t == "function" && t.prototype || bf;
8462
8462
  return i === e;
8463
8463
  }
8464
- function bf(i, t) {
8464
+ function _f(i, t) {
8465
8465
  for (var e = -1, s = Array(i); ++e < i; )
8466
8466
  s[e] = t(e);
8467
8467
  return s;
8468
8468
  }
8469
- var _f = "[object Arguments]";
8469
+ var Tf = "[object Arguments]";
8470
8470
  function Zo(i) {
8471
- return Ce(i) && Ts(i) == _f;
8471
+ return Ce(i) && Ts(i) == Tf;
8472
8472
  }
8473
- var ph = Object.prototype, Tf = ph.hasOwnProperty, xf = ph.propertyIsEnumerable, $n = Zo(/* @__PURE__ */ function() {
8473
+ var ph = Object.prototype, xf = ph.hasOwnProperty, Sf = ph.propertyIsEnumerable, $n = Zo(/* @__PURE__ */ function() {
8474
8474
  return arguments;
8475
8475
  }()) ? Zo : function(i) {
8476
- return Ce(i) && Tf.call(i, "callee") && !xf.call(i, "callee");
8476
+ return Ce(i) && xf.call(i, "callee") && !Sf.call(i, "callee");
8477
8477
  };
8478
- function Sf() {
8478
+ function wf() {
8479
8479
  return !1;
8480
8480
  }
8481
- var mh = typeof exports == "object" && exports && !exports.nodeType && exports, Qo = mh && typeof module == "object" && module && !module.nodeType && module, wf = Qo && Qo.exports === mh, ta = wf ? Ft.Buffer : void 0, Cf = ta ? ta.isBuffer : void 0, ti = Cf || Sf, Of = "[object Arguments]", kf = "[object Array]", Mf = "[object Boolean]", Df = "[object Date]", jf = "[object Error]", Ef = "[object Function]", If = "[object Map]", Pf = "[object Number]", Af = "[object Object]", Lf = "[object RegExp]", Ff = "[object Set]", Rf = "[object String]", Bf = "[object WeakMap]", Wf = "[object ArrayBuffer]", Xf = "[object DataView]", zf = "[object Float32Array]", Hf = "[object Float64Array]", Yf = "[object Int8Array]", Vf = "[object Int16Array]", Gf = "[object Int32Array]", Nf = "[object Uint8Array]", Uf = "[object Uint8ClampedArray]", $f = "[object Uint16Array]", qf = "[object Uint32Array]", Y = {};
8482
- Y[zf] = Y[Hf] = Y[Yf] = Y[Vf] = Y[Gf] = Y[Nf] = Y[Uf] = Y[$f] = Y[qf] = !0;
8483
- Y[Of] = Y[kf] = Y[Wf] = Y[Mf] = Y[Xf] = Y[Df] = Y[jf] = Y[Ef] = Y[If] = Y[Pf] = Y[Af] = Y[Lf] = Y[Ff] = Y[Rf] = Y[Bf] = !1;
8484
- function Kf(i) {
8481
+ var mh = typeof exports == "object" && exports && !exports.nodeType && exports, Qo = mh && typeof module == "object" && module && !module.nodeType && module, Cf = Qo && Qo.exports === mh, ta = Cf ? Ft.Buffer : void 0, Of = ta ? ta.isBuffer : void 0, ti = Of || wf, kf = "[object Arguments]", Mf = "[object Array]", Df = "[object Boolean]", jf = "[object Date]", If = "[object Error]", Ef = "[object Function]", Pf = "[object Map]", Af = "[object Number]", Lf = "[object Object]", Ff = "[object RegExp]", Rf = "[object Set]", Bf = "[object String]", Wf = "[object WeakMap]", Xf = "[object ArrayBuffer]", zf = "[object DataView]", Hf = "[object Float32Array]", Yf = "[object Float64Array]", Vf = "[object Int8Array]", Gf = "[object Int16Array]", Nf = "[object Int32Array]", Uf = "[object Uint8Array]", $f = "[object Uint8ClampedArray]", qf = "[object Uint16Array]", Kf = "[object Uint32Array]", Y = {};
8482
+ Y[Hf] = Y[Yf] = Y[Vf] = Y[Gf] = Y[Nf] = Y[Uf] = Y[$f] = Y[qf] = Y[Kf] = !0;
8483
+ Y[kf] = Y[Mf] = Y[Xf] = Y[Df] = Y[zf] = Y[jf] = Y[If] = Y[Ef] = Y[Pf] = Y[Af] = Y[Lf] = Y[Ff] = Y[Rf] = Y[Bf] = Y[Wf] = !1;
8484
+ function Jf(i) {
8485
8485
  return Ce(i) && Un(i.length) && !!Y[Ts(i)];
8486
8486
  }
8487
8487
  function qn(i) {
@@ -8489,17 +8489,17 @@ function qn(i) {
8489
8489
  return i(t);
8490
8490
  };
8491
8491
  }
8492
- var vh = typeof exports == "object" && exports && !exports.nodeType && exports, Fs = vh && typeof module == "object" && module && !module.nodeType && module, Jf = Fs && Fs.exports === vh, Xi = Jf && hh.process, ps = function() {
8492
+ var vh = typeof exports == "object" && exports && !exports.nodeType && exports, Fs = vh && typeof module == "object" && module && !module.nodeType && module, Zf = Fs && Fs.exports === vh, Xi = Zf && hh.process, ps = function() {
8493
8493
  try {
8494
8494
  var i = Fs && Fs.require && Fs.require("util").types;
8495
8495
  return i || Xi && Xi.binding && Xi.binding("util");
8496
8496
  } catch {
8497
8497
  }
8498
- }(), ea = ps && ps.isTypedArray, yh = ea ? qn(ea) : Kf, Zf = Object.prototype, Qf = Zf.hasOwnProperty;
8499
- function tp(i, t) {
8500
- var e = qt(i), s = !e && $n(i), r = !e && !s && ti(i), n = !e && !s && !r && yh(i), o = e || s || r || n, a = o ? bf(i.length, String) : [], c = a.length;
8498
+ }(), ea = ps && ps.isTypedArray, yh = ea ? qn(ea) : Jf, Qf = Object.prototype, tp = Qf.hasOwnProperty;
8499
+ function ep(i, t) {
8500
+ var e = qt(i), s = !e && $n(i), r = !e && !s && ti(i), n = !e && !s && !r && yh(i), o = e || s || r || n, a = o ? _f(i.length, String) : [], c = a.length;
8501
8501
  for (var h in i)
8502
- Qf.call(i, h) && !(o && // Safari 9 has enumerable `arguments.length` in strict mode.
8502
+ tp.call(i, h) && !(o && // Safari 9 has enumerable `arguments.length` in strict mode.
8503
8503
  (h == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
8504
8504
  r && (h == "offset" || h == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
8505
8505
  n && (h == "buffer" || h == "byteLength" || h == "byteOffset") || // Skip index properties.
@@ -8511,51 +8511,51 @@ function bh(i, t) {
8511
8511
  return i(t(e));
8512
8512
  };
8513
8513
  }
8514
- var ep = bh(Object.keys, Object), sp = Object.prototype, rp = sp.hasOwnProperty;
8515
- function ip(i) {
8514
+ var sp = bh(Object.keys, Object), rp = Object.prototype, ip = rp.hasOwnProperty;
8515
+ function np(i) {
8516
8516
  if (!fh(i))
8517
- return ep(i);
8517
+ return sp(i);
8518
8518
  var t = [];
8519
8519
  for (var e in Object(i))
8520
- rp.call(i, e) && e != "constructor" && t.push(e);
8520
+ ip.call(i, e) && e != "constructor" && t.push(e);
8521
8521
  return t;
8522
8522
  }
8523
- function np(i) {
8524
- return vf(i) ? tp(i) : ip(i);
8523
+ function op(i) {
8524
+ return yf(i) ? ep(i) : np(i);
8525
8525
  }
8526
- var op = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, ap = /^\w*$/;
8527
- function cp(i, t) {
8526
+ var ap = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, cp = /^\w*$/;
8527
+ function hp(i, t) {
8528
8528
  if (qt(i))
8529
8529
  return !1;
8530
8530
  var e = typeof i;
8531
- return e == "number" || e == "symbol" || e == "boolean" || i == null || yi(i) ? !0 : ap.test(i) || !op.test(i) || t != null && i in Object(t);
8531
+ return e == "number" || e == "symbol" || e == "boolean" || i == null || yi(i) ? !0 : cp.test(i) || !ap.test(i) || t != null && i in Object(t);
8532
8532
  }
8533
8533
  var Ns = qe(Object, "create");
8534
- function hp() {
8534
+ function lp() {
8535
8535
  this.__data__ = Ns ? Ns(null) : {}, this.size = 0;
8536
8536
  }
8537
- function lp(i) {
8537
+ function up(i) {
8538
8538
  var t = this.has(i) && delete this.__data__[i];
8539
8539
  return this.size -= t ? 1 : 0, t;
8540
8540
  }
8541
- var up = "__lodash_hash_undefined__", dp = Object.prototype, gp = dp.hasOwnProperty;
8542
- function fp(i) {
8541
+ var dp = "__lodash_hash_undefined__", gp = Object.prototype, fp = gp.hasOwnProperty;
8542
+ function pp(i) {
8543
8543
  var t = this.__data__;
8544
8544
  if (Ns) {
8545
8545
  var e = t[i];
8546
- return e === up ? void 0 : e;
8546
+ return e === dp ? void 0 : e;
8547
8547
  }
8548
- return gp.call(t, i) ? t[i] : void 0;
8548
+ return fp.call(t, i) ? t[i] : void 0;
8549
8549
  }
8550
- var pp = Object.prototype, mp = pp.hasOwnProperty;
8551
- function vp(i) {
8550
+ var mp = Object.prototype, vp = mp.hasOwnProperty;
8551
+ function yp(i) {
8552
8552
  var t = this.__data__;
8553
- return Ns ? t[i] !== void 0 : mp.call(t, i);
8553
+ return Ns ? t[i] !== void 0 : vp.call(t, i);
8554
8554
  }
8555
- var yp = "__lodash_hash_undefined__";
8556
- function bp(i, t) {
8555
+ var bp = "__lodash_hash_undefined__";
8556
+ function _p(i, t) {
8557
8557
  var e = this.__data__;
8558
- return this.size += this.has(i) ? 0 : 1, e[i] = Ns && t === void 0 ? yp : t, this;
8558
+ return this.size += this.has(i) ? 0 : 1, e[i] = Ns && t === void 0 ? bp : t, this;
8559
8559
  }
8560
8560
  function He(i) {
8561
8561
  var t = -1, e = i == null ? 0 : i.length;
@@ -8564,12 +8564,12 @@ function He(i) {
8564
8564
  this.set(s[0], s[1]);
8565
8565
  }
8566
8566
  }
8567
- He.prototype.clear = hp;
8568
- He.prototype.delete = lp;
8569
- He.prototype.get = fp;
8570
- He.prototype.has = vp;
8571
- He.prototype.set = bp;
8572
- function _p() {
8567
+ He.prototype.clear = lp;
8568
+ He.prototype.delete = up;
8569
+ He.prototype.get = pp;
8570
+ He.prototype.has = yp;
8571
+ He.prototype.set = _p;
8572
+ function Tp() {
8573
8573
  this.__data__ = [], this.size = 0;
8574
8574
  }
8575
8575
  function bi(i, t) {
@@ -8578,22 +8578,22 @@ function bi(i, t) {
8578
8578
  return e;
8579
8579
  return -1;
8580
8580
  }
8581
- var Tp = Array.prototype, xp = Tp.splice;
8582
- function Sp(i) {
8581
+ var xp = Array.prototype, Sp = xp.splice;
8582
+ function wp(i) {
8583
8583
  var t = this.__data__, e = bi(t, i);
8584
8584
  if (e < 0)
8585
8585
  return !1;
8586
8586
  var s = t.length - 1;
8587
- return e == s ? t.pop() : xp.call(t, e, 1), --this.size, !0;
8587
+ return e == s ? t.pop() : Sp.call(t, e, 1), --this.size, !0;
8588
8588
  }
8589
- function wp(i) {
8589
+ function Cp(i) {
8590
8590
  var t = this.__data__, e = bi(t, i);
8591
8591
  return e < 0 ? void 0 : t[e][1];
8592
8592
  }
8593
- function Cp(i) {
8593
+ function Op(i) {
8594
8594
  return bi(this.__data__, i) > -1;
8595
8595
  }
8596
- function Op(i, t) {
8596
+ function kp(i, t) {
8597
8597
  var e = this.__data__, s = bi(e, i);
8598
8598
  return s < 0 ? (++this.size, e.push([i, t])) : e[s][1] = t, this;
8599
8599
  }
@@ -8604,38 +8604,38 @@ function de(i) {
8604
8604
  this.set(s[0], s[1]);
8605
8605
  }
8606
8606
  }
8607
- de.prototype.clear = _p;
8608
- de.prototype.delete = Sp;
8609
- de.prototype.get = wp;
8610
- de.prototype.has = Cp;
8611
- de.prototype.set = Op;
8607
+ de.prototype.clear = Tp;
8608
+ de.prototype.delete = wp;
8609
+ de.prototype.get = Cp;
8610
+ de.prototype.has = Op;
8611
+ de.prototype.set = kp;
8612
8612
  var Us = qe(Ft, "Map");
8613
- function kp() {
8613
+ function Mp() {
8614
8614
  this.size = 0, this.__data__ = {
8615
8615
  hash: new He(),
8616
8616
  map: new (Us || de)(),
8617
8617
  string: new He()
8618
8618
  };
8619
8619
  }
8620
- function Mp(i) {
8620
+ function Dp(i) {
8621
8621
  var t = typeof i;
8622
8622
  return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? i !== "__proto__" : i === null;
8623
8623
  }
8624
8624
  function _i(i, t) {
8625
8625
  var e = i.__data__;
8626
- return Mp(t) ? e[typeof t == "string" ? "string" : "hash"] : e.map;
8626
+ return Dp(t) ? e[typeof t == "string" ? "string" : "hash"] : e.map;
8627
8627
  }
8628
- function Dp(i) {
8628
+ function jp(i) {
8629
8629
  var t = _i(this, i).delete(i);
8630
8630
  return this.size -= t ? 1 : 0, t;
8631
8631
  }
8632
- function jp(i) {
8632
+ function Ip(i) {
8633
8633
  return _i(this, i).get(i);
8634
8634
  }
8635
8635
  function Ep(i) {
8636
8636
  return _i(this, i).has(i);
8637
8637
  }
8638
- function Ip(i, t) {
8638
+ function Pp(i, t) {
8639
8639
  var e = _i(this, i), s = e.size;
8640
8640
  return e.set(i, t), this.size += e.size == s ? 0 : 1, this;
8641
8641
  }
@@ -8646,15 +8646,15 @@ function ge(i) {
8646
8646
  this.set(s[0], s[1]);
8647
8647
  }
8648
8648
  }
8649
- ge.prototype.clear = kp;
8650
- ge.prototype.delete = Dp;
8651
- ge.prototype.get = jp;
8649
+ ge.prototype.clear = Mp;
8650
+ ge.prototype.delete = jp;
8651
+ ge.prototype.get = Ip;
8652
8652
  ge.prototype.has = Ep;
8653
- ge.prototype.set = Ip;
8654
- var Pp = "Expected a function";
8653
+ ge.prototype.set = Pp;
8654
+ var Ap = "Expected a function";
8655
8655
  function Kn(i, t) {
8656
8656
  if (typeof i != "function" || t != null && typeof t != "function")
8657
- throw new TypeError(Pp);
8657
+ throw new TypeError(Ap);
8658
8658
  var e = function() {
8659
8659
  var s = arguments, r = t ? t.apply(this, s) : s[0], n = e.cache;
8660
8660
  if (n.has(r))
@@ -8665,24 +8665,24 @@ function Kn(i, t) {
8665
8665
  return e.cache = new (Kn.Cache || ge)(), e;
8666
8666
  }
8667
8667
  Kn.Cache = ge;
8668
- var Ap = 500;
8669
- function Lp(i) {
8668
+ var Lp = 500;
8669
+ function Fp(i) {
8670
8670
  var t = Kn(i, function(s) {
8671
- return e.size === Ap && e.clear(), s;
8671
+ return e.size === Lp && e.clear(), s;
8672
8672
  }), e = t.cache;
8673
8673
  return t;
8674
8674
  }
8675
- var Fp = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Rp = /\\(\\)?/g, Bp = Lp(function(i) {
8675
+ var Rp = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Bp = /\\(\\)?/g, Wp = Fp(function(i) {
8676
8676
  var t = [];
8677
- return i.charCodeAt(0) === 46 && t.push(""), i.replace(Fp, function(e, s, r, n) {
8678
- t.push(r ? n.replace(Rp, "$1") : s || e);
8677
+ return i.charCodeAt(0) === 46 && t.push(""), i.replace(Rp, function(e, s, r, n) {
8678
+ t.push(r ? n.replace(Bp, "$1") : s || e);
8679
8679
  }), t;
8680
8680
  });
8681
- function Wp(i) {
8681
+ function Xp(i) {
8682
8682
  return i == null ? "" : uh(i);
8683
8683
  }
8684
8684
  function Ti(i, t) {
8685
- return qt(i) ? i : cp(i, t) ? [i] : Bp(Wp(i));
8685
+ return qt(i) ? i : hp(i, t) ? [i] : Wp(Xp(i));
8686
8686
  }
8687
8687
  function Jn(i) {
8688
8688
  if (typeof i == "string" || yi(i))
@@ -8690,7 +8690,7 @@ function Jn(i) {
8690
8690
  var t = i + "";
8691
8691
  return t == "0" && 1 / i == -1 / 0 ? "-0" : t;
8692
8692
  }
8693
- function Xp(i, t) {
8693
+ function zp(i, t) {
8694
8694
  t = Ti(t, i);
8695
8695
  for (var e = 0, s = t.length; i != null && e < s; )
8696
8696
  i = i[Jn(t[e++])];
@@ -8702,12 +8702,12 @@ function _h(i, t) {
8702
8702
  return i;
8703
8703
  }
8704
8704
  var sa = Ot ? Ot.isConcatSpreadable : void 0;
8705
- function zp(i) {
8705
+ function Hp(i) {
8706
8706
  return qt(i) || $n(i) || !!(sa && i && i[sa]);
8707
8707
  }
8708
- function Hp(i, t, e, s, r) {
8708
+ function Yp(i, t, e, s, r) {
8709
8709
  var n = -1, o = i.length;
8710
- for (e || (e = zp), r || (r = []); ++n < o; ) {
8710
+ for (e || (e = Hp), r || (r = []); ++n < o; ) {
8711
8711
  var a = i[n];
8712
8712
  e(a) ? _h(r, a) : r[r.length] = a;
8713
8713
  }
@@ -8715,31 +8715,31 @@ function Hp(i, t, e, s, r) {
8715
8715
  }
8716
8716
  function Zn(i) {
8717
8717
  var t = i == null ? 0 : i.length;
8718
- return t ? Hp(i) : [];
8718
+ return t ? Yp(i) : [];
8719
8719
  }
8720
- function Yp(i) {
8721
- return cf(pf(i, void 0, Zn), i + "");
8720
+ function Vp(i) {
8721
+ return hf(mf(i, void 0, Zn), i + "");
8722
8722
  }
8723
- var Vp = bh(Object.getPrototypeOf, Object);
8724
- function Gp() {
8723
+ var Gp = bh(Object.getPrototypeOf, Object);
8724
+ function Np() {
8725
8725
  this.__data__ = new de(), this.size = 0;
8726
8726
  }
8727
- function Np(i) {
8727
+ function Up(i) {
8728
8728
  var t = this.__data__, e = t.delete(i);
8729
8729
  return this.size = t.size, e;
8730
8730
  }
8731
- function Up(i) {
8731
+ function $p(i) {
8732
8732
  return this.__data__.get(i);
8733
8733
  }
8734
- function $p(i) {
8734
+ function qp(i) {
8735
8735
  return this.__data__.has(i);
8736
8736
  }
8737
- var qp = 200;
8738
- function Kp(i, t) {
8737
+ var Kp = 200;
8738
+ function Jp(i, t) {
8739
8739
  var e = this.__data__;
8740
8740
  if (e instanceof de) {
8741
8741
  var s = e.__data__;
8742
- if (!Us || s.length < qp - 1)
8742
+ if (!Us || s.length < Kp - 1)
8743
8743
  return s.push([i, t]), this.size = ++e.size, this;
8744
8744
  e = this.__data__ = new ge(s);
8745
8745
  }
@@ -8749,131 +8749,131 @@ function ce(i) {
8749
8749
  var t = this.__data__ = new de(i);
8750
8750
  this.size = t.size;
8751
8751
  }
8752
- ce.prototype.clear = Gp;
8753
- ce.prototype.delete = Np;
8754
- ce.prototype.get = Up;
8755
- ce.prototype.has = $p;
8756
- ce.prototype.set = Kp;
8757
- var Th = typeof exports == "object" && exports && !exports.nodeType && exports, ra = Th && typeof module == "object" && module && !module.nodeType && module, Jp = ra && ra.exports === Th, ia = Jp ? Ft.Buffer : void 0;
8752
+ ce.prototype.clear = Np;
8753
+ ce.prototype.delete = Up;
8754
+ ce.prototype.get = $p;
8755
+ ce.prototype.has = qp;
8756
+ ce.prototype.set = Jp;
8757
+ var Th = typeof exports == "object" && exports && !exports.nodeType && exports, ra = Th && typeof module == "object" && module && !module.nodeType && module, Zp = ra && ra.exports === Th, ia = Zp ? Ft.Buffer : void 0;
8758
8758
  ia && ia.allocUnsafe;
8759
- function Zp(i, t) {
8759
+ function Qp(i, t) {
8760
8760
  return i.slice();
8761
8761
  }
8762
- function Qp(i, t) {
8762
+ function tm(i, t) {
8763
8763
  for (var e = -1, s = i == null ? 0 : i.length, r = 0, n = []; ++e < s; ) {
8764
8764
  var o = i[e];
8765
8765
  t(o, e, i) && (n[r++] = o);
8766
8766
  }
8767
8767
  return n;
8768
8768
  }
8769
- function tm() {
8769
+ function em() {
8770
8770
  return [];
8771
8771
  }
8772
- var em = Object.prototype, sm = em.propertyIsEnumerable, na = Object.getOwnPropertySymbols, rm = na ? function(i) {
8773
- return i == null ? [] : (i = Object(i), Qp(na(i), function(t) {
8774
- return sm.call(i, t);
8772
+ var sm = Object.prototype, rm = sm.propertyIsEnumerable, na = Object.getOwnPropertySymbols, im = na ? function(i) {
8773
+ return i == null ? [] : (i = Object(i), tm(na(i), function(t) {
8774
+ return rm.call(i, t);
8775
8775
  }));
8776
- } : tm;
8777
- function im(i, t, e) {
8776
+ } : em;
8777
+ function nm(i, t, e) {
8778
8778
  var s = t(i);
8779
8779
  return qt(i) ? s : _h(s, e(i));
8780
8780
  }
8781
8781
  function fn(i) {
8782
- return im(i, np, rm);
8782
+ return nm(i, op, im);
8783
8783
  }
8784
- var pn = qe(Ft, "DataView"), mn = qe(Ft, "Promise"), vn = qe(Ft, "Set"), oa = "[object Map]", nm = "[object Object]", aa = "[object Promise]", ca = "[object Set]", ha = "[object WeakMap]", la = "[object DataView]", om = $e(pn), am = $e(Us), cm = $e(mn), hm = $e(vn), lm = $e(gn), Dt = Ts;
8784
+ var pn = qe(Ft, "DataView"), mn = qe(Ft, "Promise"), vn = qe(Ft, "Set"), oa = "[object Map]", om = "[object Object]", aa = "[object Promise]", ca = "[object Set]", ha = "[object WeakMap]", la = "[object DataView]", am = $e(pn), cm = $e(Us), hm = $e(mn), lm = $e(vn), um = $e(gn), Dt = Ts;
8785
8785
  (pn && Dt(new pn(new ArrayBuffer(1))) != la || Us && Dt(new Us()) != oa || mn && Dt(mn.resolve()) != aa || vn && Dt(new vn()) != ca || gn && Dt(new gn()) != ha) && (Dt = function(i) {
8786
- var t = Ts(i), e = t == nm ? i.constructor : void 0, s = e ? $e(e) : "";
8786
+ var t = Ts(i), e = t == om ? i.constructor : void 0, s = e ? $e(e) : "";
8787
8787
  if (s)
8788
8788
  switch (s) {
8789
- case om:
8790
- return la;
8791
8789
  case am:
8792
- return oa;
8790
+ return la;
8793
8791
  case cm:
8794
- return aa;
8792
+ return oa;
8795
8793
  case hm:
8796
- return ca;
8794
+ return aa;
8797
8795
  case lm:
8796
+ return ca;
8797
+ case um:
8798
8798
  return ha;
8799
8799
  }
8800
8800
  return t;
8801
8801
  });
8802
- var um = Object.prototype, dm = um.hasOwnProperty;
8803
- function gm(i) {
8802
+ var dm = Object.prototype, gm = dm.hasOwnProperty;
8803
+ function fm(i) {
8804
8804
  var t = i.length, e = new i.constructor(t);
8805
- return t && typeof i[0] == "string" && dm.call(i, "index") && (e.index = i.index, e.input = i.input), e;
8805
+ return t && typeof i[0] == "string" && gm.call(i, "index") && (e.index = i.index, e.input = i.input), e;
8806
8806
  }
8807
8807
  var ei = Ft.Uint8Array;
8808
8808
  function Qn(i) {
8809
8809
  var t = new i.constructor(i.byteLength);
8810
8810
  return new ei(t).set(new ei(i)), t;
8811
8811
  }
8812
- function fm(i, t) {
8812
+ function pm(i, t) {
8813
8813
  var e = Qn(i.buffer);
8814
8814
  return new i.constructor(e, i.byteOffset, i.byteLength);
8815
8815
  }
8816
- var pm = /\w*$/;
8817
- function mm(i) {
8818
- var t = new i.constructor(i.source, pm.exec(i));
8816
+ var mm = /\w*$/;
8817
+ function vm(i) {
8818
+ var t = new i.constructor(i.source, mm.exec(i));
8819
8819
  return t.lastIndex = i.lastIndex, t;
8820
8820
  }
8821
8821
  var ua = Ot ? Ot.prototype : void 0, da = ua ? ua.valueOf : void 0;
8822
- function vm(i) {
8822
+ function ym(i) {
8823
8823
  return da ? Object(da.call(i)) : {};
8824
8824
  }
8825
- function ym(i, t) {
8825
+ function bm(i, t) {
8826
8826
  var e = Qn(i.buffer);
8827
8827
  return new i.constructor(e, i.byteOffset, i.length);
8828
8828
  }
8829
- var bm = "[object Boolean]", _m = "[object Date]", Tm = "[object Map]", xm = "[object Number]", Sm = "[object RegExp]", wm = "[object Set]", Cm = "[object String]", Om = "[object Symbol]", km = "[object ArrayBuffer]", Mm = "[object DataView]", Dm = "[object Float32Array]", jm = "[object Float64Array]", Em = "[object Int8Array]", Im = "[object Int16Array]", Pm = "[object Int32Array]", Am = "[object Uint8Array]", Lm = "[object Uint8ClampedArray]", Fm = "[object Uint16Array]", Rm = "[object Uint32Array]";
8830
- function Bm(i, t, e) {
8829
+ var _m = "[object Boolean]", Tm = "[object Date]", xm = "[object Map]", Sm = "[object Number]", wm = "[object RegExp]", Cm = "[object Set]", Om = "[object String]", km = "[object Symbol]", Mm = "[object ArrayBuffer]", Dm = "[object DataView]", jm = "[object Float32Array]", Im = "[object Float64Array]", Em = "[object Int8Array]", Pm = "[object Int16Array]", Am = "[object Int32Array]", Lm = "[object Uint8Array]", Fm = "[object Uint8ClampedArray]", Rm = "[object Uint16Array]", Bm = "[object Uint32Array]";
8830
+ function Wm(i, t, e) {
8831
8831
  var s = i.constructor;
8832
8832
  switch (t) {
8833
- case km:
8833
+ case Mm:
8834
8834
  return Qn(i);
8835
- case bm:
8836
8835
  case _m:
8836
+ case Tm:
8837
8837
  return new s(+i);
8838
- case Mm:
8839
- return fm(i);
8840
8838
  case Dm:
8839
+ return pm(i);
8841
8840
  case jm:
8842
- case Em:
8843
8841
  case Im:
8842
+ case Em:
8844
8843
  case Pm:
8845
8844
  case Am:
8846
8845
  case Lm:
8847
8846
  case Fm:
8848
8847
  case Rm:
8849
- return ym(i);
8850
- case Tm:
8851
- return new s();
8848
+ case Bm:
8849
+ return bm(i);
8852
8850
  case xm:
8853
- case Cm:
8854
- return new s(i);
8855
- case Sm:
8856
- return mm(i);
8857
- case wm:
8858
8851
  return new s();
8852
+ case Sm:
8859
8853
  case Om:
8854
+ return new s(i);
8855
+ case wm:
8860
8856
  return vm(i);
8857
+ case Cm:
8858
+ return new s();
8859
+ case km:
8860
+ return ym(i);
8861
8861
  }
8862
8862
  }
8863
- function Wm(i) {
8864
- return typeof i.constructor == "function" && !fh(i) ? Qg(Vp(i)) : {};
8863
+ function Xm(i) {
8864
+ return typeof i.constructor == "function" && !fh(i) ? tf(Gp(i)) : {};
8865
8865
  }
8866
- var Xm = "[object Map]";
8867
- function zm(i) {
8868
- return Ce(i) && Dt(i) == Xm;
8866
+ var zm = "[object Map]";
8867
+ function Hm(i) {
8868
+ return Ce(i) && Dt(i) == zm;
8869
8869
  }
8870
- var ga = ps && ps.isMap, Hm = ga ? qn(ga) : zm, Ym = "[object Set]";
8871
- function Vm(i) {
8872
- return Ce(i) && Dt(i) == Ym;
8870
+ var ga = ps && ps.isMap, Ym = ga ? qn(ga) : Hm, Vm = "[object Set]";
8871
+ function Gm(i) {
8872
+ return Ce(i) && Dt(i) == Vm;
8873
8873
  }
8874
- var fa = ps && ps.isSet, Gm = fa ? qn(fa) : Vm, xh = "[object Arguments]", Nm = "[object Array]", Um = "[object Boolean]", $m = "[object Date]", qm = "[object Error]", Sh = "[object Function]", Km = "[object GeneratorFunction]", Jm = "[object Map]", Zm = "[object Number]", wh = "[object Object]", Qm = "[object RegExp]", tv = "[object Set]", ev = "[object String]", sv = "[object Symbol]", rv = "[object WeakMap]", iv = "[object ArrayBuffer]", nv = "[object DataView]", ov = "[object Float32Array]", av = "[object Float64Array]", cv = "[object Int8Array]", hv = "[object Int16Array]", lv = "[object Int32Array]", uv = "[object Uint8Array]", dv = "[object Uint8ClampedArray]", gv = "[object Uint16Array]", fv = "[object Uint32Array]", H = {};
8875
- H[xh] = H[Nm] = H[iv] = H[nv] = H[Um] = H[$m] = H[ov] = H[av] = H[cv] = H[hv] = H[lv] = H[Jm] = H[Zm] = H[wh] = H[Qm] = H[tv] = H[ev] = H[sv] = H[uv] = H[dv] = H[gv] = H[fv] = !0;
8876
- H[qm] = H[Sh] = H[rv] = !1;
8874
+ var fa = ps && ps.isSet, Nm = fa ? qn(fa) : Gm, xh = "[object Arguments]", Um = "[object Array]", $m = "[object Boolean]", qm = "[object Date]", Km = "[object Error]", Sh = "[object Function]", Jm = "[object GeneratorFunction]", Zm = "[object Map]", Qm = "[object Number]", wh = "[object Object]", tv = "[object RegExp]", ev = "[object Set]", sv = "[object String]", rv = "[object Symbol]", iv = "[object WeakMap]", nv = "[object ArrayBuffer]", ov = "[object DataView]", av = "[object Float32Array]", cv = "[object Float64Array]", hv = "[object Int8Array]", lv = "[object Int16Array]", uv = "[object Int32Array]", dv = "[object Uint8Array]", gv = "[object Uint8ClampedArray]", fv = "[object Uint16Array]", pv = "[object Uint32Array]", H = {};
8875
+ H[xh] = H[Um] = H[nv] = H[ov] = H[$m] = H[qm] = H[av] = H[cv] = H[hv] = H[lv] = H[uv] = H[Zm] = H[Qm] = H[wh] = H[tv] = H[ev] = H[sv] = H[rv] = H[dv] = H[gv] = H[fv] = H[pv] = !0;
8876
+ H[Km] = H[Sh] = H[iv] = !1;
8877
8877
  function Br(i, t, e, s, r, n) {
8878
8878
  var o;
8879
8879
  if (o !== void 0)
@@ -8882,42 +8882,42 @@ function Br(i, t, e, s, r, n) {
8882
8882
  return i;
8883
8883
  var a = qt(i);
8884
8884
  if (a)
8885
- o = gm(i);
8885
+ o = fm(i);
8886
8886
  else {
8887
- var c = Dt(i), h = c == Sh || c == Km;
8887
+ var c = Dt(i), h = c == Sh || c == Jm;
8888
8888
  if (ti(i))
8889
- return Zp(i);
8889
+ return Qp(i);
8890
8890
  if (c == wh || c == xh || h && !r)
8891
- o = h ? {} : Wm(i);
8891
+ o = h ? {} : Xm(i);
8892
8892
  else {
8893
8893
  if (!H[c])
8894
8894
  return r ? i : {};
8895
- o = Bm(i, c);
8895
+ o = Wm(i, c);
8896
8896
  }
8897
8897
  }
8898
8898
  n || (n = new ce());
8899
8899
  var l = n.get(i);
8900
8900
  if (l)
8901
8901
  return l;
8902
- n.set(i, o), Gm(i) ? i.forEach(function(g) {
8902
+ n.set(i, o), Nm(i) ? i.forEach(function(g) {
8903
8903
  o.add(Br(g, t, e, g, i, n));
8904
- }) : Hm(i) && i.forEach(function(g, f) {
8904
+ }) : Ym(i) && i.forEach(function(g, f) {
8905
8905
  o.set(f, Br(g, t, e, f, i, n));
8906
8906
  });
8907
8907
  var u = fn, d = a ? void 0 : u(i);
8908
- return hf(d || i, function(g, f) {
8908
+ return lf(d || i, function(g, f) {
8909
8909
  d && (f = g, g = i[f]), gh(o, f, Br(g, t, e, f, i, n));
8910
8910
  }), o;
8911
8911
  }
8912
- var pv = 1, mv = 4;
8912
+ var mv = 1, vv = 4;
8913
8913
  function Re(i) {
8914
- return Br(i, pv | mv);
8915
- }
8916
- var vv = "__lodash_hash_undefined__";
8917
- function yv(i) {
8918
- return this.__data__.set(i, vv), this;
8914
+ return Br(i, mv | vv);
8919
8915
  }
8916
+ var yv = "__lodash_hash_undefined__";
8920
8917
  function bv(i) {
8918
+ return this.__data__.set(i, yv), this;
8919
+ }
8920
+ function _v(i) {
8921
8921
  return this.__data__.has(i);
8922
8922
  }
8923
8923
  function si(i) {
@@ -8925,26 +8925,26 @@ function si(i) {
8925
8925
  for (this.__data__ = new ge(); ++t < e; )
8926
8926
  this.add(i[t]);
8927
8927
  }
8928
- si.prototype.add = si.prototype.push = yv;
8929
- si.prototype.has = bv;
8930
- function _v(i, t) {
8928
+ si.prototype.add = si.prototype.push = bv;
8929
+ si.prototype.has = _v;
8930
+ function Tv(i, t) {
8931
8931
  for (var e = -1, s = i == null ? 0 : i.length; ++e < s; )
8932
8932
  if (t(i[e], e, i))
8933
8933
  return !0;
8934
8934
  return !1;
8935
8935
  }
8936
- function Tv(i, t) {
8936
+ function xv(i, t) {
8937
8937
  return i.has(t);
8938
8938
  }
8939
- var xv = 1, Sv = 2;
8939
+ var Sv = 1, wv = 2;
8940
8940
  function Ch(i, t, e, s, r, n) {
8941
- var o = e & xv, a = i.length, c = t.length;
8941
+ var o = e & Sv, a = i.length, c = t.length;
8942
8942
  if (a != c && !(o && c > a))
8943
8943
  return !1;
8944
8944
  var h = n.get(i), l = n.get(t);
8945
8945
  if (h && l)
8946
8946
  return h == t && l == i;
8947
- var u = -1, d = !0, g = e & Sv ? new si() : void 0;
8947
+ var u = -1, d = !0, g = e & wv ? new si() : void 0;
8948
8948
  for (n.set(i, t), n.set(t, i); ++u < a; ) {
8949
8949
  var f = i[u], p = t[u];
8950
8950
  if (s)
@@ -8956,8 +8956,8 @@ function Ch(i, t, e, s, r, n) {
8956
8956
  break;
8957
8957
  }
8958
8958
  if (g) {
8959
- if (!_v(t, function(y, T) {
8960
- if (!Tv(g, T) && (f === y || r(f, y, e, s, n)))
8959
+ if (!Tv(t, function(y, T) {
8960
+ if (!xv(g, T) && (f === y || r(f, y, e, s, n)))
8961
8961
  return g.push(T);
8962
8962
  })) {
8963
8963
  d = !1;
@@ -8970,62 +8970,62 @@ function Ch(i, t, e, s, r, n) {
8970
8970
  }
8971
8971
  return n.delete(i), n.delete(t), d;
8972
8972
  }
8973
- function wv(i) {
8973
+ function Cv(i) {
8974
8974
  var t = -1, e = Array(i.size);
8975
8975
  return i.forEach(function(s, r) {
8976
8976
  e[++t] = [r, s];
8977
8977
  }), e;
8978
8978
  }
8979
- function Cv(i) {
8979
+ function Ov(i) {
8980
8980
  var t = -1, e = Array(i.size);
8981
8981
  return i.forEach(function(s) {
8982
8982
  e[++t] = s;
8983
8983
  }), e;
8984
8984
  }
8985
- var Ov = 1, kv = 2, Mv = "[object Boolean]", Dv = "[object Date]", jv = "[object Error]", Ev = "[object Map]", Iv = "[object Number]", Pv = "[object RegExp]", Av = "[object Set]", Lv = "[object String]", Fv = "[object Symbol]", Rv = "[object ArrayBuffer]", Bv = "[object DataView]", pa = Ot ? Ot.prototype : void 0, zi = pa ? pa.valueOf : void 0;
8986
- function Wv(i, t, e, s, r, n, o) {
8985
+ var kv = 1, Mv = 2, Dv = "[object Boolean]", jv = "[object Date]", Iv = "[object Error]", Ev = "[object Map]", Pv = "[object Number]", Av = "[object RegExp]", Lv = "[object Set]", Fv = "[object String]", Rv = "[object Symbol]", Bv = "[object ArrayBuffer]", Wv = "[object DataView]", pa = Ot ? Ot.prototype : void 0, zi = pa ? pa.valueOf : void 0;
8986
+ function Xv(i, t, e, s, r, n, o) {
8987
8987
  switch (e) {
8988
- case Bv:
8988
+ case Wv:
8989
8989
  if (i.byteLength != t.byteLength || i.byteOffset != t.byteOffset)
8990
8990
  return !1;
8991
8991
  i = i.buffer, t = t.buffer;
8992
- case Rv:
8992
+ case Bv:
8993
8993
  return !(i.byteLength != t.byteLength || !n(new ei(i), new ei(t)));
8994
- case Mv:
8995
8994
  case Dv:
8996
- case Iv:
8997
- return Nn(+i, +t);
8998
8995
  case jv:
8999
- return i.name == t.name && i.message == t.message;
9000
8996
  case Pv:
9001
- case Lv:
8997
+ return Nn(+i, +t);
8998
+ case Iv:
8999
+ return i.name == t.name && i.message == t.message;
9000
+ case Av:
9001
+ case Fv:
9002
9002
  return i == t + "";
9003
9003
  case Ev:
9004
- var a = wv;
9005
- case Av:
9006
- var c = s & Ov;
9007
- if (a || (a = Cv), i.size != t.size && !c)
9004
+ var a = Cv;
9005
+ case Lv:
9006
+ var c = s & kv;
9007
+ if (a || (a = Ov), i.size != t.size && !c)
9008
9008
  return !1;
9009
9009
  var h = o.get(i);
9010
9010
  if (h)
9011
9011
  return h == t;
9012
- s |= kv, o.set(i, t);
9012
+ s |= Mv, o.set(i, t);
9013
9013
  var l = Ch(a(i), a(t), s, r, n, o);
9014
9014
  return o.delete(i), l;
9015
- case Fv:
9015
+ case Rv:
9016
9016
  if (zi)
9017
9017
  return zi.call(i) == zi.call(t);
9018
9018
  }
9019
9019
  return !1;
9020
9020
  }
9021
- var Xv = 1, zv = Object.prototype, Hv = zv.hasOwnProperty;
9022
- function Yv(i, t, e, s, r, n) {
9023
- var o = e & Xv, a = fn(i), c = a.length, h = fn(t), l = h.length;
9021
+ var zv = 1, Hv = Object.prototype, Yv = Hv.hasOwnProperty;
9022
+ function Vv(i, t, e, s, r, n) {
9023
+ var o = e & zv, a = fn(i), c = a.length, h = fn(t), l = h.length;
9024
9024
  if (c != l && !o)
9025
9025
  return !1;
9026
9026
  for (var u = c; u--; ) {
9027
9027
  var d = a[u];
9028
- if (!(o ? d in t : Hv.call(t, d)))
9028
+ if (!(o ? d in t : Yv.call(t, d)))
9029
9029
  return !1;
9030
9030
  }
9031
9031
  var g = n.get(i), f = n.get(t);
@@ -9050,34 +9050,34 @@ function Yv(i, t, e, s, r, n) {
9050
9050
  }
9051
9051
  return n.delete(i), n.delete(t), p;
9052
9052
  }
9053
- var Vv = 1, ma = "[object Arguments]", va = "[object Array]", Ir = "[object Object]", Gv = Object.prototype, ya = Gv.hasOwnProperty;
9054
- function Nv(i, t, e, s, r, n) {
9053
+ var Gv = 1, ma = "[object Arguments]", va = "[object Array]", Er = "[object Object]", Nv = Object.prototype, ya = Nv.hasOwnProperty;
9054
+ function Uv(i, t, e, s, r, n) {
9055
9055
  var o = qt(i), a = qt(t), c = o ? va : Dt(i), h = a ? va : Dt(t);
9056
- c = c == ma ? Ir : c, h = h == ma ? Ir : h;
9057
- var l = c == Ir, u = h == Ir, d = c == h;
9056
+ c = c == ma ? Er : c, h = h == ma ? Er : h;
9057
+ var l = c == Er, u = h == Er, d = c == h;
9058
9058
  if (d && ti(i)) {
9059
9059
  if (!ti(t))
9060
9060
  return !1;
9061
9061
  o = !0, l = !1;
9062
9062
  }
9063
9063
  if (d && !l)
9064
- return n || (n = new ce()), o || yh(i) ? Ch(i, t, e, s, r, n) : Wv(i, t, c, e, s, r, n);
9065
- if (!(e & Vv)) {
9064
+ return n || (n = new ce()), o || yh(i) ? Ch(i, t, e, s, r, n) : Xv(i, t, c, e, s, r, n);
9065
+ if (!(e & Gv)) {
9066
9066
  var g = l && ya.call(i, "__wrapped__"), f = u && ya.call(t, "__wrapped__");
9067
9067
  if (g || f) {
9068
9068
  var p = g ? i.value() : i, m = f ? t.value() : t;
9069
9069
  return n || (n = new ce()), r(p, m, e, s, n);
9070
9070
  }
9071
9071
  }
9072
- return d ? (n || (n = new ce()), Yv(i, t, e, s, r, n)) : !1;
9072
+ return d ? (n || (n = new ce()), Vv(i, t, e, s, r, n)) : !1;
9073
9073
  }
9074
9074
  function Oh(i, t, e, s, r) {
9075
- return i === t ? !0 : i == null || t == null || !Ce(i) && !Ce(t) ? i !== i && t !== t : Nv(i, t, e, s, Oh, r);
9075
+ return i === t ? !0 : i == null || t == null || !Ce(i) && !Ce(t) ? i !== i && t !== t : Uv(i, t, e, s, Oh, r);
9076
9076
  }
9077
- function Uv(i, t) {
9077
+ function $v(i, t) {
9078
9078
  return i != null && t in Object(i);
9079
9079
  }
9080
- function $v(i, t, e) {
9080
+ function qv(i, t, e) {
9081
9081
  t = Ti(t, i);
9082
9082
  for (var s = -1, r = t.length, n = !1; ++s < r; ) {
9083
9083
  var o = Jn(t[s]);
@@ -9087,17 +9087,17 @@ function $v(i, t, e) {
9087
9087
  }
9088
9088
  return n || ++s != r ? n : (r = i == null ? 0 : i.length, !!r && Un(r) && Gn(o, r) && (qt(i) || $n(i)));
9089
9089
  }
9090
- function qv(i, t) {
9091
- return i != null && $v(i, t, Uv);
9090
+ function Kv(i, t) {
9091
+ return i != null && qv(i, t, $v);
9092
9092
  }
9093
9093
  var Hi = function() {
9094
9094
  return Ft.Date.now();
9095
- }, Kv = "Expected a function", Jv = Math.max, Zv = Math.min;
9096
- function Qv(i, t, e) {
9095
+ }, Jv = "Expected a function", Zv = Math.max, Qv = Math.min;
9096
+ function t0(i, t, e) {
9097
9097
  var s, r, n, o, a, c, h = 0, l = !1, u = !1, d = !0;
9098
9098
  if (typeof i != "function")
9099
- throw new TypeError(Kv);
9100
- t = $o(t) || 0, Kt(e) && (l = !!e.leading, u = "maxWait" in e, n = u ? Jv($o(e.maxWait) || 0, t) : n, d = "trailing" in e ? !!e.trailing : d);
9099
+ throw new TypeError(Jv);
9100
+ t = $o(t) || 0, Kt(e) && (l = !!e.leading, u = "maxWait" in e, n = u ? Zv($o(e.maxWait) || 0, t) : n, d = "trailing" in e ? !!e.trailing : d);
9101
9101
  function g(O) {
9102
9102
  var D = s, M = r;
9103
9103
  return s = r = void 0, h = O, o = i.apply(M, D), o;
@@ -9106,8 +9106,8 @@ function Qv(i, t, e) {
9106
9106
  return h = O, a = setTimeout(y, t), l ? g(O) : o;
9107
9107
  }
9108
9108
  function p(O) {
9109
- var D = O - c, M = O - h, I = t - D;
9110
- return u ? Zv(I, n - M) : I;
9109
+ var D = O - c, M = O - h, E = t - D;
9110
+ return u ? Qv(E, n - M) : E;
9111
9111
  }
9112
9112
  function m(O) {
9113
9113
  var D = O - c, M = O - h;
@@ -9140,10 +9140,10 @@ function Qv(i, t, e) {
9140
9140
  }
9141
9141
  return C.cancel = S, C.flush = w, C;
9142
9142
  }
9143
- function t0(i, t) {
9143
+ function e0(i, t) {
9144
9144
  return Oh(i, t);
9145
9145
  }
9146
- function e0(i, t, e, s) {
9146
+ function s0(i, t, e, s) {
9147
9147
  if (!Kt(i))
9148
9148
  return i;
9149
9149
  t = Ti(t, i);
@@ -9159,34 +9159,34 @@ function e0(i, t, e, s) {
9159
9159
  }
9160
9160
  return i;
9161
9161
  }
9162
- function s0(i, t, e) {
9162
+ function r0(i, t, e) {
9163
9163
  for (var s = -1, r = t.length, n = {}; ++s < r; ) {
9164
- var o = t[s], a = Xp(i, o);
9165
- e(a, o) && e0(n, Ti(o, i), a);
9164
+ var o = t[s], a = zp(i, o);
9165
+ e(a, o) && s0(n, Ti(o, i), a);
9166
9166
  }
9167
9167
  return n;
9168
9168
  }
9169
- function r0(i, t) {
9170
- return s0(i, t, function(e, s) {
9171
- return qv(i, s);
9169
+ function i0(i, t) {
9170
+ return r0(i, t, function(e, s) {
9171
+ return Kv(i, s);
9172
9172
  });
9173
9173
  }
9174
- var i0 = Yp(function(i, t) {
9175
- return i == null ? {} : r0(i, t);
9176
- }), n0 = "Expected a function";
9177
- function o0(i, t, e) {
9174
+ var n0 = Vp(function(i, t) {
9175
+ return i == null ? {} : i0(i, t);
9176
+ }), o0 = "Expected a function";
9177
+ function a0(i, t, e) {
9178
9178
  var s = !0, r = !0;
9179
9179
  if (typeof i != "function")
9180
- throw new TypeError(n0);
9181
- return Kt(e) && (s = "leading" in e ? !!e.leading : s, r = "trailing" in e ? !!e.trailing : r), Qv(i, t, {
9180
+ throw new TypeError(o0);
9181
+ return Kt(e) && (s = "leading" in e ? !!e.leading : s, r = "trailing" in e ? !!e.trailing : r), t0(i, t, {
9182
9182
  leading: s,
9183
9183
  maxWait: t,
9184
9184
  trailing: r
9185
9185
  });
9186
9186
  }
9187
- class a0 {
9187
+ class c0 {
9188
9188
  addTrackItem(t) {
9189
- const e = mg(t, {
9189
+ const e = vg(t, {
9190
9190
  tScale: this.tScale,
9191
9191
  sizesMap: this.sizesMap
9192
9192
  });
@@ -9234,7 +9234,7 @@ class a0 {
9234
9234
  }
9235
9235
  selectTrackItemByIds(t) {
9236
9236
  const e = this.getActiveObjects().map((n) => n.id);
9237
- if (t0(e, t)) return;
9237
+ if (e0(e, t)) return;
9238
9238
  const r = this.getObjects(...be.objectTypes, "Transition").filter((n) => t.includes(n.id));
9239
9239
  if (!r.length)
9240
9240
  this.discardActiveObject();
@@ -9330,7 +9330,7 @@ const ba = (i) => {
9330
9330
  return 1e3;
9331
9331
  }
9332
9332
  };
9333
- class c0 {
9333
+ class h0 {
9334
9334
  findOrCreateTrack(t, { trackId: e, trackIndex: s }) {
9335
9335
  if (e) {
9336
9336
  const o = this.tracks.find((a) => a.id === e);
@@ -9343,7 +9343,8 @@ class c0 {
9343
9343
  type: t.type,
9344
9344
  accepts: r,
9345
9345
  magnetic: !1,
9346
- static: !1
9346
+ static: !1,
9347
+ muted: !1
9347
9348
  };
9348
9349
  return s !== void 0 ? this.tracks.splice(s, 0, n) : this.tracks.push(n), this.renderTracks(), n.id;
9349
9350
  }
@@ -9526,20 +9527,20 @@ function kh(i) {
9526
9527
  }), h && (e.setCoords(), t.requestRenderAll());
9527
9528
  }
9528
9529
  }
9529
- function h0(i) {
9530
+ function l0(i) {
9530
9531
  i.on("object:resizing", kh.bind(i));
9531
9532
  }
9532
- function l0(i) {
9533
+ function u0(i) {
9533
9534
  i.off("object:resizing", kh.bind(i));
9534
9535
  }
9535
- const Rs = 100, Yi = 0, Pr = 5, _a = 3, u0 = 25, ls = {
9536
+ const Rs = 100, Yi = 0, Pr = 5, _a = 3, d0 = 25, ls = {
9536
9537
  scrollInterval: null
9537
9538
  };
9538
9539
  function Ta(i) {
9539
- const t = u0 - _a, e = (Rs - i) / Rs;
9540
+ const t = d0 - _a, e = (Rs - i) / Rs;
9540
9541
  return _a + t * e;
9541
9542
  }
9542
- function d0(i, t) {
9543
+ function g0(i, t) {
9543
9544
  ls.scrollInterval && clearInterval(ls.scrollInterval);
9544
9545
  const e = t.target, s = e.getBoundingRect();
9545
9546
  ls.scrollInterval = setInterval(() => {
@@ -9555,19 +9556,19 @@ function d0(i, t) {
9555
9556
  n.y > i.height - Yi && e.top + s.height < i.bounding.height + 80 && (e.set("top", e.top + Pr), i.setViewportPos(r[4], r[5] - Pr)), n.y < Yi && e.top > -80 && -r[5] > Yi && (e.set("top", e.top - Pr), i.setViewportPos(r[4], r[5] + Pr)), e.setCoords(), i.requestRenderAll();
9556
9557
  }, 16);
9557
9558
  }
9558
- function g0() {
9559
+ function f0() {
9559
9560
  ls.scrollInterval && (clearInterval(ls.scrollInterval), ls.scrollInterval = null);
9560
9561
  }
9561
9562
  function Mh() {
9562
- g0();
9563
+ f0();
9563
9564
  }
9564
9565
  function Dh(i) {
9565
- d0(this, i);
9566
+ g0(this, i);
9566
9567
  }
9567
- function f0(i) {
9568
+ function p0(i) {
9568
9569
  i.on("mouse:up", Mh), i.on("object:moving", Dh.bind(i));
9569
9570
  }
9570
- function p0(i) {
9571
+ function m0(i) {
9571
9572
  i.off("mouse:up", Mh), i.off("object:moving", Dh.bind(i));
9572
9573
  }
9573
9574
  function jh(i) {
@@ -9587,13 +9588,13 @@ function jh(i) {
9587
9588
  }
9588
9589
  }
9589
9590
  }
9590
- function m0(i) {
9591
+ function v0(i) {
9591
9592
  i.on("object:modified", jh);
9592
9593
  }
9593
- function v0(i) {
9594
+ function y0(i) {
9594
9595
  i.off("object:modified", jh);
9595
9596
  }
9596
- const Eh = {
9597
+ const Ih = {
9597
9598
  canvas: null,
9598
9599
  enableGuideRedraw: !0,
9599
9600
  isPointerOverHelperTrack: !1,
@@ -9614,11 +9615,11 @@ const Eh = {
9614
9615
  initialTrackPoints: [],
9615
9616
  updateItemsInTrack: null,
9616
9617
  orderNormalTrack: !1
9617
- }, K = () => Eh, nt = (i) => {
9618
- Object.assign(Eh, i);
9618
+ }, K = () => Ih, nt = (i) => {
9619
+ Object.assign(Ih, i);
9619
9620
  }, xa = 10, xi = (i, t) => {
9620
9621
  t.forEach((e) => e.isAlignmentAuxiliary && i.remove(e));
9621
- }, Ih = (i, t) => {
9622
+ }, Eh = (i, t) => {
9622
9623
  const e = [], s = [];
9623
9624
  return t.getObjects().filter((r) => r.visible).forEach((r) => {
9624
9625
  if (i.find((o) => o.id === r.id) || r.isAlignmentAuxiliary)
@@ -9676,7 +9677,7 @@ const Eh = {
9676
9677
  }), r;
9677
9678
  }, Ah = (i, t, e) => {
9678
9679
  i.forEach((s) => {
9679
- const r = y0(e.getZoom());
9680
+ const r = b0(e.getZoom());
9680
9681
  s.orientation === "H" ? e.add(
9681
9682
  Sa(
9682
9683
  [
@@ -9699,7 +9700,7 @@ const Eh = {
9699
9700
  )
9700
9701
  );
9701
9702
  });
9702
- }, y0 = (i) => ({
9703
+ }, b0 = (i) => ({
9703
9704
  strokeWidth: 2 / i
9704
9705
  }), Sa = (i, t) => new ye(i, {
9705
9706
  ...t,
@@ -9744,10 +9745,10 @@ const Eh = {
9744
9745
  i.remove(...t), t = [];
9745
9746
  }, Rh = (i) => {
9746
9747
  i.forEach((t) => t.setSelected(!1));
9747
- }, Ca = (i) => i instanceof Se, b0 = (i) => Object.assign({}, {
9748
+ }, Ca = (i) => i instanceof Se, _0 = (i) => Object.assign({}, {
9748
9749
  left: 16,
9749
9750
  right: 80
9750
- }, i), _0 = ["touchstart", "touchmove", "touchend"], T0 = (i) => _0.includes(i.type) || i.pointerType === "touch";
9751
+ }, i), T0 = ["touchstart", "touchmove", "touchend"], x0 = (i) => T0.includes(i.type) || i.pointerType === "touch";
9751
9752
  function Bh(i) {
9752
9753
  const t = this;
9753
9754
  if (!t) return;
@@ -9764,7 +9765,7 @@ function Bh(i) {
9764
9765
  c,
9765
9766
  ...t.getActiveObjects(),
9766
9767
  ...t.getObjects("Track", "Helper", "Transition", "Placeholder")
9767
- ], u = Ih(l, t), d = Lh(c), g = Ph(u, d);
9768
+ ], u = Eh(l, t), d = Lh(c), g = Ph(u, d);
9768
9769
  s && (xi(t, a), g.length && Ah(g, h, t), nt({ enableGuideRedraw: !1 }), setTimeout(() => nt({ enableGuideRedraw: !0 }), 50)), g.forEach((f) => {
9769
9770
  f.orientation === "V" ? c.left = f.lineGuide + f.offset : c.top = f.lineGuide + f.offset;
9770
9771
  });
@@ -9781,7 +9782,7 @@ function Xh(i) {
9781
9782
  s,
9782
9783
  ...t.getActiveObjects(),
9783
9784
  ...t.getObjects("Track", "Helper", "Transition", "Placeholder")
9784
- ], h = Ih(c, t), l = h.vertical.filter(
9785
+ ], h = Eh(c, t), l = h.vertical.filter(
9785
9786
  (g) => {
9786
9787
  const f = g.val;
9787
9788
  if (n === "ml")
@@ -9795,10 +9796,10 @@ function Xh(i) {
9795
9796
  xi(t, e), d.length && Ah(d, o, t);
9796
9797
  }
9797
9798
  }
9798
- function x0(i) {
9799
+ function S0(i) {
9799
9800
  i.on("object:moving", Bh.bind(i)), i.on("object:modified", Wh.bind(i)), i.on("object:resizing", Xh.bind(i));
9800
9801
  }
9801
- function S0(i) {
9802
+ function w0(i) {
9802
9803
  i.off("object:moving", Bh.bind(i)), i.off("object:modified", Wh.bind(i)), i.off("object:resizing", Xh.bind(i));
9803
9804
  }
9804
9805
  function yn(i, t, e) {
@@ -9904,10 +9905,10 @@ function Hh(i) {
9904
9905
  return g.draggedObject = u, g;
9905
9906
  }), e.add(...t.placeholderMovingObjects)));
9906
9907
  }
9907
- function w0(i) {
9908
+ function C0(i) {
9908
9909
  i.on("before:transform", Hh.bind(i));
9909
9910
  }
9910
- function C0(i) {
9911
+ function O0(i) {
9911
9912
  i.off("before:transform", Hh.bind(i));
9912
9913
  }
9913
9914
  const as = class as extends Q {
@@ -9978,7 +9979,7 @@ x(as, "type", "TransitionGuide"), x(as, "ownDefaults", {
9978
9979
  ry: 8
9979
9980
  });
9980
9981
  let $s = as;
9981
- const O0 = (i) => {
9982
+ const k0 = (i) => {
9982
9983
  const { trackItemIds: t, transitionsMap: e, trackItemsMap: s } = i, r = /* @__PURE__ */ new Map();
9983
9984
  Object.values(e).forEach((h) => {
9984
9985
  var g, f;
@@ -10011,7 +10012,7 @@ const O0 = (i) => {
10011
10012
  return n.forEach((h) => {
10012
10013
  h.sort((l, u) => "display" in l && "display" in u ? l.display.from - u.display.from : 0);
10013
10014
  }), n;
10014
- }, k0 = [
10015
+ }, M0 = [
10015
10016
  "text",
10016
10017
  "image",
10017
10018
  "video",
@@ -10023,7 +10024,7 @@ function Yh() {
10023
10024
  const i = K();
10024
10025
  Fh(this, i.placeholderMovingObjects);
10025
10026
  }
10026
- function M0(i) {
10027
+ function D0(i) {
10027
10028
  const t = i.target.left;
10028
10029
  i.target.left = Math.max(t, 0);
10029
10030
  }
@@ -10033,11 +10034,11 @@ function Vh(i, t) {
10033
10034
  return t.left < r.left + r.width && t.left + t.width - 1 > r.left && t.top < r.top + r.height && t.top + t.height > r.top;
10034
10035
  });
10035
10036
  }
10036
- function D0(i, t) {
10037
+ function j0(i, t) {
10037
10038
  const s = i.canvas.getActiveObject(), r = s.left + s.width / 2, n = t.left + t.width / 2;
10038
10039
  return r < n ? t.left - s.width : (r > n, t.left + t.width);
10039
10040
  }
10040
- const j0 = (i, t, e) => !(e < 0 || Vh(i, {
10041
+ const I0 = (i, t, e) => !(e < 0 || Vh(i, {
10041
10042
  ...t.getBoundingRect(),
10042
10043
  left: e
10043
10044
  })), Gh = (i) => {
@@ -10049,14 +10050,14 @@ const j0 = (i, t, e) => !(e < 0 || Vh(i, {
10049
10050
  function E0(i) {
10050
10051
  K().isPointerOverHelperTrack ? i.opacity = 0 : i.opacity = 1;
10051
10052
  }
10052
- function I0() {
10053
+ function P0() {
10053
10054
  const i = K(), t = i.primaryMovingObjects[0];
10054
10055
  return {
10055
10056
  top: i.objectInitialPositions[t.id].top,
10056
10057
  left: i.objectInitialPositions[t.id].left
10057
10058
  };
10058
10059
  }
10059
- function P0(i) {
10060
+ function A0(i) {
10060
10061
  const t = i.getBoundingRect(), e = K(), s = e.draggingOverTrack;
10061
10062
  if (e.primaryMovingObjects.map((n) => n.id).includes(i.id)) {
10062
10063
  const o = e.primaryMovingObjects[0].getBoundingRect();
@@ -10070,10 +10071,10 @@ function P0(i) {
10070
10071
  left: t.left
10071
10072
  };
10072
10073
  }
10073
- function A0(i, t, e, s) {
10074
- const n = i.canvas.getActiveObjects().map((l) => l.id), o = D0(i, t), a = e.filter(
10074
+ function L0(i, t, e, s) {
10075
+ const n = i.canvas.getActiveObjects().map((l) => l.id), o = j0(i, t), a = e.filter(
10075
10076
  (l) => !n.includes(l.id)
10076
- ), c = j0(
10077
+ ), c = I0(
10077
10078
  a,
10078
10079
  i,
10079
10080
  o
@@ -10092,18 +10093,18 @@ function A0(i, t, e, s) {
10092
10093
  top: t.top
10093
10094
  };
10094
10095
  }
10095
- const L0 = (i, t) => {
10096
+ const F0 = (i, t) => {
10096
10097
  i.forEach((e, s) => {
10097
10098
  e.set({ left: t[s] });
10098
10099
  });
10099
- }, Nh = o0(
10100
+ }, Nh = a0(
10100
10101
  (i) => {
10101
10102
  const t = i.target.canvas;
10102
- M0(i);
10103
+ D0(i);
10103
10104
  const e = K(), s = e.draggingOverTrack;
10104
10105
  if (s) {
10105
10106
  const a = e.primaryMovingObjects[0];
10106
- k0.includes(a.type) && e.placeholderMovingObjects.forEach((c) => {
10107
+ M0.includes(a.type) && e.placeholderMovingObjects.forEach((c) => {
10107
10108
  c.visible = !0;
10108
10109
  });
10109
10110
  } else {
@@ -10145,7 +10146,7 @@ const L0 = (i, t) => {
10145
10146
  } else {
10146
10147
  if (e.orderNormalTrack = !1, e.updateItemsInTrack && e.updateItemsInTrack !== s.id) {
10147
10148
  const d = t.getObjects().find((g) => g.id === e.updateItemsInTrack);
10148
- d != null && d.magnetic ? F0(t, e) : t.updateTrackItemCoords(!0), e.updateItemsInTrack = null, e.initialTrackPoints = [];
10149
+ d != null && d.magnetic ? R0(t, e) : t.updateTrackItemCoords(!0), e.updateItemsInTrack = null, e.initialTrackPoints = [];
10149
10150
  }
10150
10151
  e.initialTrackPoints.length === 0 && s instanceof Nt && (e.updateItemsInTrack = s.id, e.initialTrackPoints = Oa(
10151
10152
  e,
@@ -10166,7 +10167,7 @@ const L0 = (i, t) => {
10166
10167
  return;
10167
10168
  }
10168
10169
  f.setCoords(), E0(d);
10169
- let p = X0(
10170
+ let p = z0(
10170
10171
  f,
10171
10172
  n,
10172
10173
  i.pointer,
@@ -10174,7 +10175,7 @@ const L0 = (i, t) => {
10174
10175
  );
10175
10176
  if (e.draggingOverTrack instanceof Se ? d.opacity = 0 : d.opacity = 1, f instanceof we && p.isInvalidDrop && e.draggingOverTrack instanceof Nt) {
10176
10177
  const m = i.pointer, y = [...t.viewportTransform], T = m.y - y[5];
10177
- W0(t, T);
10178
+ X0(t, T);
10178
10179
  } else e.primaryMovingObjects.length > 1 ? (t.trackIdAfterTransform = e.trackTopToIdMap[p.top], t.positionAfterTransform[f.id] = {
10179
10180
  top: p.top,
10180
10181
  left: p.left + (c[g - 1] || 0)
@@ -10198,9 +10199,9 @@ const L0 = (i, t) => {
10198
10199
  );
10199
10200
  let a = 0;
10200
10201
  const c = [];
10201
- return t.magnetic ? R0(o, a, c) : B0(t, c, e), c;
10202
+ return t.magnetic ? B0(o, a, c) : W0(t, c, e), c;
10202
10203
  };
10203
- function F0(i, t) {
10204
+ function R0(i, t) {
10204
10205
  const e = [];
10205
10206
  i.getObjects().find((a) => a.id === t.updateItemsInTrack).items.forEach((a) => {
10206
10207
  const c = i.getObjects().find((h) => h.id === a);
@@ -10211,9 +10212,9 @@ function F0(i, t) {
10211
10212
  ).sort(
10212
10213
  (a, c) => a.left - c.left
10213
10214
  );
10214
- t.initialTrackPoints.length > o.length && L0(o, t.initialTrackPoints);
10215
+ t.initialTrackPoints.length > o.length && F0(o, t.initialTrackPoints);
10215
10216
  }
10216
- function R0(i, t, e) {
10217
+ function B0(i, t, e) {
10217
10218
  var h;
10218
10219
  const s = K(), r = (h = i[0]) == null ? void 0 : h.canvas, n = s.draggingOverTrack, o = s.primaryMovingObjects.map((l) => l.id);
10219
10220
  if (!r) return;
@@ -10238,7 +10239,7 @@ function R0(i, t, e) {
10238
10239
  }
10239
10240
  }
10240
10241
  }
10241
- function B0(i, t, e) {
10242
+ function W0(i, t, e) {
10242
10243
  const s = i.items, r = {}, n = {}, o = e.getActiveObjects().map((h) => h.id);
10243
10244
  Object.values(e.trackItemsMap).forEach((h) => {
10244
10245
  s.includes(h.id) && (r[h.id] = h);
@@ -10247,7 +10248,7 @@ function B0(i, t, e) {
10247
10248
  Object.values(e.transitionsMap).forEach((h) => {
10248
10249
  a.includes(h.id) && (n[h.id] = h);
10249
10250
  });
10250
- const c = O0({
10251
+ const c = k0({
10251
10252
  trackItemIds: Re(s),
10252
10253
  transitionsMap: Re(n),
10253
10254
  trackItemsMap: Re(r)
@@ -10262,12 +10263,12 @@ function B0(i, t, e) {
10262
10263
  }
10263
10264
  });
10264
10265
  }
10265
- function W0(i, t) {
10266
+ function X0(i, t) {
10266
10267
  i.getObjects("Helper").reduce(
10267
10268
  (r, n) => Math.abs(n.top - t) < Math.abs(r.top - t) ? n : r
10268
10269
  ).setSelected(!0);
10269
10270
  }
10270
- const X0 = (i, t, e, s) => {
10271
+ const z0 = (i, t, e, s) => {
10271
10272
  const r = Gh(i);
10272
10273
  return !r && i instanceof we ? {
10273
10274
  top: 0,
@@ -10277,22 +10278,22 @@ const X0 = (i, t, e, s) => {
10277
10278
  top: 0,
10278
10279
  left: 0,
10279
10280
  isInvalidDrop: !0
10280
- } : A0(
10281
+ } : L0(
10281
10282
  i,
10282
10283
  s,
10283
10284
  t,
10284
10285
  e
10285
- ) : P0(i) : I0();
10286
+ ) : A0(i) : P0();
10286
10287
  };
10287
- function z0(i) {
10288
+ function H0(i) {
10288
10289
  i.on("mouse:up", Yh.bind(i)), i.on("object:moving", Nh);
10289
10290
  }
10290
- function H0(i) {
10291
+ function Y0(i) {
10291
10292
  i.off("mouse:up", Yh.bind(i)), i.off("object:moving", Nh);
10292
10293
  }
10293
- const Y0 = (i) => {
10294
+ const V0 = (i) => {
10294
10295
  K().canvas.fire("track:create", i);
10295
- }, V0 = (i) => {
10296
+ }, G0 = (i) => {
10296
10297
  K().canvas.fire("track-items:moved", i);
10297
10298
  }, Uh = (i) => {
10298
10299
  var a, c, h;
@@ -10344,10 +10345,10 @@ const Y0 = (i) => {
10344
10345
  positions: t.positionAfterTransform
10345
10346
  }
10346
10347
  };
10347
- Y0(u);
10348
+ V0(u);
10348
10349
  } else if (o instanceof Nt) {
10349
10350
  const u = {
10350
- isSecondaryOverlapped: N0(),
10351
+ isSecondaryOverlapped: U0(),
10351
10352
  secondaryTracks: e.secondaryTracks,
10352
10353
  primaryTracks: e.primaryTracks,
10353
10354
  primaryPositions: {
@@ -10355,10 +10356,10 @@ const Y0 = (i) => {
10355
10356
  positions: t.positionAfterTransform
10356
10357
  }
10357
10358
  };
10358
- V0(u);
10359
+ G0(u);
10359
10360
  }
10360
10361
  };
10361
- function G0() {
10362
+ function N0() {
10362
10363
  const i = K(), t = i.canvas, [e] = i.primaryMovingObjects, s = e.id, r = t.positionAfterTransform[s], n = e.getBoundingRect().top, o = r.top - n, a = {};
10363
10364
  return i.secondaryMovingObjects.forEach((c) => {
10364
10365
  const h = c.getBoundingRect().top + o, l = i.trackTopToIdMap[h], u = yn(
@@ -10372,8 +10373,8 @@ function G0() {
10372
10373
  };
10373
10374
  }), a;
10374
10375
  }
10375
- function N0() {
10376
- const i = G0(), t = K();
10376
+ function U0() {
10377
+ const i = N0(), t = K();
10377
10378
  return Object.keys(i).some((e) => {
10378
10379
  const s = t.trackToItemsMap[e], r = i[e].objects;
10379
10380
  return !s || !s.length ? !0 : s.filter((n) => !r.includes(n)).some((n) => $h(
@@ -10388,11 +10389,11 @@ function $h(i, t) {
10388
10389
  return t.left < r.left + r.width && t.left + t.width > r.left && t.top < r.top + r.height && t.top + t.height > r.top;
10389
10390
  });
10390
10391
  }
10391
- const U0 = (i) => {
10392
+ const $0 = (i) => {
10392
10393
  i.on("object:modified", Uh);
10393
- }, $0 = (i) => {
10394
+ }, q0 = (i) => {
10394
10395
  i.off("object:modified", Uh);
10395
- }, qh = "drag", q0 = `${qh}:start`, Kh = `${qh}:end`, Jh = "timeline", K0 = `${Jh}:boundingChanged`, J0 = `${Jh}:seek`, Z0 = (i) => {
10396
+ }, qh = "drag", K0 = `${qh}:start`, Kh = `${qh}:end`, Jh = "timeline", J0 = `${Jh}:boundingChanged`, Z0 = `${Jh}:seek`, Q0 = (i) => {
10396
10397
  const { trackItemIds: t, transitionsMap: e, trackItemsMap: s } = i, r = /* @__PURE__ */ new Map();
10397
10398
  Object.values(e).forEach((c) => {
10398
10399
  var u, d;
@@ -10425,7 +10426,7 @@ const U0 = (i) => {
10425
10426
  return n.forEach((c) => {
10426
10427
  c.sort((h, l) => "display" in h && "display" in l ? h.display.from - l.display.from : 0);
10427
10428
  }), n;
10428
- }, Q0 = "add:audio", ty = "add:video", ey = "add:image", sy = "add:text", ry = [
10429
+ }, ty = "add:audio", ey = "add:video", sy = "add:image", ry = "add:text", iy = [
10429
10430
  "transition",
10430
10431
  "image",
10431
10432
  "video",
@@ -10434,7 +10435,7 @@ const U0 = (i) => {
10434
10435
  "text"
10435
10436
  ];
10436
10437
  let J, js, Be = [], qs = "";
10437
- function iy(i, t) {
10438
+ function ny(i, t) {
10438
10439
  let e = 1 / 0, s = null;
10439
10440
  const r = new _(i.x, i.y);
10440
10441
  return t.forEach((n) => {
@@ -10444,7 +10445,7 @@ function iy(i, t) {
10444
10445
  o < e && (e = o, s = n);
10445
10446
  }), s;
10446
10447
  }
10447
- const ny = ({
10448
+ const oy = ({
10448
10449
  width: i,
10449
10450
  height: t,
10450
10451
  id: e,
@@ -10477,11 +10478,11 @@ function Zh(i) {
10477
10478
  const t = (f = i.e.dataTransfer) == null ? void 0 : f.types[0];
10478
10479
  if (!t) return;
10479
10480
  const e = JSON.parse(t), s = e.type;
10480
- if (!ry.includes(s)) return;
10481
+ if (!iy.includes(s)) return;
10481
10482
  const r = e.duration || 5e3, n = this;
10482
10483
  n.discardActiveObject(), n.setActiveIds([]);
10483
10484
  const o = ot(r, this.tScale), a = n.getItemSize(s), c = n.getTrackItems();
10484
- if (J = ny({
10485
+ if (J = oy({
10485
10486
  width: o,
10486
10487
  height: a,
10487
10488
  id: "TransitionGuide",
@@ -10541,7 +10542,7 @@ function Zh(i) {
10541
10542
  height: m.height
10542
10543
  });
10543
10544
  return y.visible = !1, y.draggedObject = p, y;
10544
- }), n.add(...h.placeholderMovingObjects), n.add(J), se(q0);
10545
+ }), n.add(...h.placeholderMovingObjects), n.add(J), se(K0);
10545
10546
  }
10546
10547
  const Qh = (i) => {
10547
10548
  const t = K();
@@ -10566,7 +10567,7 @@ function el(i) {
10566
10567
  left: r.x - 16,
10567
10568
  top: r.y - J.height / 2
10568
10569
  });
10569
- const n = iy(
10570
+ const n = ny(
10570
10571
  r,
10571
10572
  Be.filter((c) => c.availableDrop)
10572
10573
  );
@@ -10645,7 +10646,7 @@ function sl(i) {
10645
10646
  }
10646
10647
  if (J) {
10647
10648
  if (js) {
10648
- const a = js.id, c = i0(n, ["kind", "direction"]);
10649
+ const a = js.id, c = n0(n, ["kind", "direction"]);
10649
10650
  Object.keys(c).forEach((T) => {
10650
10651
  T === "kind" ? js.kind = c[T] : js[T] = c[T];
10651
10652
  });
@@ -10654,13 +10655,13 @@ function sl(i) {
10654
10655
  ...l[a],
10655
10656
  ...c
10656
10657
  };
10657
- const d = Z0({
10658
+ const d = Q0({
10658
10659
  trackItemIds: h,
10659
10660
  transitionsMap: l,
10660
10661
  trackItemsMap: u
10661
- }), f = l[a].fromId, p = d.find((T) => T.find((S) => S.id === f)) || [], m = oy(
10662
+ }), f = l[a].fromId, p = d.find((T) => T.find((S) => S.id === f)) || [], m = ay(
10662
10663
  p
10663
- ), y = ay(
10664
+ ), y = cy(
10664
10665
  this.trackItemsMap,
10665
10666
  m
10666
10667
  );
@@ -10674,7 +10675,7 @@ function sl(i) {
10674
10675
  }), t.remove(J), t.requestRenderAll(), se(Kh);
10675
10676
  }
10676
10677
  }
10677
- const oy = (i) => {
10678
+ const ay = (i) => {
10678
10679
  const [t] = i, e = i.filter(
10679
10680
  (r) => r.type !== "transition"
10680
10681
  );
@@ -10689,7 +10690,7 @@ const oy = (i) => {
10689
10690
  display: o
10690
10691
  };
10691
10692
  });
10692
- }, ay = (i, t) => {
10693
+ }, cy = (i, t) => {
10693
10694
  let e = i;
10694
10695
  return t.forEach((s) => {
10695
10696
  e[s.id] = s;
@@ -10706,28 +10707,28 @@ const oy = (i) => {
10706
10707
  return h < l ? c : o;
10707
10708
  }, 0);
10708
10709
  }, Ar = (i, t, e, s) => {
10709
- i.type === "image" ? se(ey, {
10710
+ i.type === "image" ? se(sy, {
10710
10711
  payload: {
10711
10712
  ...i,
10712
10713
  id: Ds(),
10713
10714
  display: { from: e }
10714
10715
  },
10715
10716
  options: { trackIndex: t, isNewTrack: s }
10716
- }) : i.type === "video" ? se(ty, {
10717
+ }) : i.type === "video" ? se(ey, {
10717
10718
  payload: {
10718
10719
  ...i,
10719
10720
  id: Ds(),
10720
10721
  display: { from: e }
10721
10722
  },
10722
10723
  options: { trackIndex: t, isNewTrack: s }
10723
- }) : i.type === "audio" ? se(Q0, {
10724
+ }) : i.type === "audio" ? se(ty, {
10724
10725
  payload: {
10725
10726
  ...i,
10726
10727
  id: Ds(),
10727
10728
  display: { from: e }
10728
10729
  },
10729
10730
  options: { trackIndex: t, isNewTrack: s }
10730
- }) : i.type === "text" && se(sy, {
10731
+ }) : i.type === "text" && se(ry, {
10731
10732
  payload: {
10732
10733
  ...i,
10733
10734
  id: Ds(),
@@ -10736,10 +10737,10 @@ const oy = (i) => {
10736
10737
  options: { trackIndex: t, isNewTrack: s }
10737
10738
  });
10738
10739
  };
10739
- function cy(i) {
10740
+ function hy(i) {
10740
10741
  i.on("dragover", el), i.on("dragenter", Zh), i.on("dragleave", tl), i.on("drop", sl);
10741
10742
  }
10742
- function hy(i) {
10743
+ function ly(i) {
10743
10744
  i.off("dragover", el), i.off("dragenter", Zh), i.off("dragleave", tl), i.off("drop", sl);
10744
10745
  }
10745
10746
  function rl(i) {
@@ -10778,9 +10779,9 @@ function ol(i) {
10778
10779
  t.setSelected(!1);
10779
10780
  });
10780
10781
  }
10781
- const ly = (i) => {
10782
+ const uy = (i) => {
10782
10783
  i.on("selection:created", il), i.on("selection:updated", nl), i.on("selection:cleared", ol), i.on("mouse:wheel", rl);
10783
- }, uy = (i) => {
10784
+ }, dy = (i) => {
10784
10785
  i.off("mouse:wheel", rl), i.off("selection:created", il), i.off("selection:updated", nl), i.off("selection:cleared", ol);
10785
10786
  }, al = () => {
10786
10787
  var n;
@@ -10814,33 +10815,33 @@ const ly = (i) => {
10814
10815
  }
10815
10816
  t.alignTransitionsToTrack(!1);
10816
10817
  };
10817
- function dy(i) {
10818
+ function gy(i) {
10818
10819
  i.on("object:moving", al);
10819
10820
  }
10820
- function gy(i) {
10821
+ function fy(i) {
10821
10822
  i.off("object:moving", al);
10822
10823
  }
10823
- let It, to = !1;
10824
- function fy(i, t) {
10824
+ let Et, to = !1;
10825
+ function py(i, t) {
10825
10826
  const e = i.canvas;
10826
10827
  if (e.objectTypes.includes(i.type)) {
10827
- It || (It = i);
10828
- const r = i.top, n = i.height, o = i.left, a = i.width, c = t.x, h = t.y, l = Math.abs(h - (r + n / 2)) <= Nd;
10828
+ Et || (Et = i);
10829
+ const r = i.top, n = i.height, o = i.left, a = i.width, c = t.x, h = t.y, l = Math.abs(h - (r + n / 2)) <= Ud;
10829
10830
  Math.abs(c - o) <= Ho && l || Math.abs(c - o - a) <= Ho && l ? (e.hoverCornerItem = !0, i.hoverCursor = "ew-resize") : (e.hoverCornerItem = !1, i.hoverCursor = "move"), e.requestRenderAll();
10830
10831
  }
10831
10832
  }
10832
10833
  function cl(i) {
10833
10834
  const t = this, e = t.findTarget(i.e), s = t.getScenePoint(i.e);
10834
- e && (e.isSelected && It && (e.hoverCursor = "default"), fy(e, s));
10835
+ e && (e.isSelected && Et && (e.hoverCursor = "default"), py(e, s));
10835
10836
  }
10836
10837
  function hl() {
10837
- It && (It.lockMovementX = !1, It.lockMovementY = !1, It = void 0);
10838
+ Et && (Et.lockMovementX = !1, Et.lockMovementY = !1, Et = void 0);
10838
10839
  }
10839
10840
  function ll(i) {
10840
- It && (to || It._renderControls(i.ctx));
10841
+ Et && (to || Et._renderControls(i.ctx));
10841
10842
  }
10842
10843
  function ul() {
10843
- It && (It = void 0, this.requestRenderAll());
10844
+ Et && (Et = void 0, this.requestRenderAll());
10844
10845
  }
10845
10846
  function dl() {
10846
10847
  to = !0;
@@ -10848,18 +10849,18 @@ function dl() {
10848
10849
  function gl() {
10849
10850
  to = !1;
10850
10851
  }
10851
- function py(i) {
10852
+ function my(i) {
10852
10853
  i.on("mouse:out", ul.bind(i)), i.on("mouse:up", hl.bind(i)), i.on("mouse:move", cl.bind(i)), i.on("after:render", ll.bind(i)), i.on("object:resizing", dl.bind(i)), i.on("object:modified", gl.bind(i));
10853
10854
  }
10854
- function my(i) {
10855
+ function vy(i) {
10855
10856
  i.off("mouse:out", ul.bind(i)), i.off("mouse:up", hl.bind(i)), i.off("mouse:move", cl.bind(i)), i.off("after:render", ll.bind(i)), i.off("object:resizing", dl.bind(i)), i.off("object:modified", gl.bind(i));
10856
10857
  }
10857
- const vy = (i) => {
10858
- nt({ canvas: i }), f0(i), h0(i), m0(i), x0(i), w0(i), z0(i), U0(i), cy(i), ly(i), dy(i), py(i);
10859
- }, yy = (i) => {
10860
- nt({ canvas: null }), p0(i), l0(i), v0(i), S0(i), C0(i), H0(i), $0(i), hy(i), uy(i), gy(i), my(i);
10858
+ const yy = (i) => {
10859
+ nt({ canvas: i }), p0(i), l0(i), v0(i), S0(i), C0(i), H0(i), $0(i), hy(i), uy(i), gy(i), my(i);
10860
+ }, by = (i) => {
10861
+ nt({ canvas: null }), m0(i), u0(i), y0(i), w0(i), O0(i), Y0(i), q0(i), ly(i), dy(i), fy(i), vy(i);
10861
10862
  };
10862
- class by {
10863
+ class _y {
10863
10864
  removeTransitions() {
10864
10865
  const t = this.getObjects("Transition");
10865
10866
  this.remove(...t);
@@ -10949,7 +10950,8 @@ function fl(i) {
10949
10950
  id: Ds(),
10950
10951
  items: h.objects.map((p) => p.id),
10951
10952
  type: c.type,
10952
- accepts: c.accepts
10953
+ accepts: c.accepts,
10954
+ muted: c.muted || !1
10953
10955
  }, u = Zn(
10954
10956
  Object.keys(t).map((p) => t[p].objects.map((m) => m.id))
10955
10957
  );
@@ -10966,7 +10968,8 @@ function fl(i) {
10966
10968
  items: S,
10967
10969
  type: T.type,
10968
10970
  accepts: T.accepts,
10969
- tempIndex: y
10971
+ tempIndex: y,
10972
+ muted: T.muted || !1
10970
10973
  };
10971
10974
  g.push(w);
10972
10975
  });
@@ -11010,7 +11013,8 @@ function pl(i) {
11010
11013
  items: w,
11011
11014
  type: O.type,
11012
11015
  accepts: D,
11013
- tempIndex: S
11016
+ tempIndex: S,
11017
+ muted: !1
11014
11018
  };
11015
11019
  p.push(M);
11016
11020
  } else {
@@ -11038,7 +11042,8 @@ function ml({
11038
11042
  id: nr(),
11039
11043
  items: [e],
11040
11044
  type: c.type,
11041
- accepts: c.accepts
11045
+ accepts: c.accepts,
11046
+ muted: c.muted || !1
11042
11047
  }, u = this.tracks.findIndex(
11043
11048
  (d) => d.id === c.id
11044
11049
  );
@@ -11073,23 +11078,23 @@ function ml({
11073
11078
  this.renderTracks(), this.alignItemsToTrack(), this.adjustMagneticTrack(), this.updateTransitions(!0), this.uodateTrackItemIdsOrdering(), this.updateState({ updateHistory: !0, kind: "update" });
11074
11079
  }
11075
11080
  let bn = { x: 0, y: 0 };
11076
- function _y(i) {
11081
+ function Ty(i) {
11077
11082
  bn = i.scenePoint;
11078
11083
  }
11079
11084
  function vl(i) {
11080
11085
  const t = i.scenePoint;
11081
11086
  if ((bn.x === t.x || bn.y === t.y) && !i.target) {
11082
11087
  const s = this.getElement().getBoundingClientRect(), r = this.viewportTransform, n = i.e.clientX - s.left - r[4], o = R(n, this.scale.zoom);
11083
- se(J0, { payload: { time: o } });
11088
+ se(Z0, { payload: { time: o } });
11084
11089
  }
11085
11090
  }
11086
- const Ty = (i) => {
11087
- i.on("track:create", fl.bind(i)), i.on("track-items:resized", ml.bind(i)), i.on("track-items:moved", pl.bind(i)), i.on("mouse:up", vl.bind(i)), i.on("mouse:down", _y.bind(i));
11091
+ const xy = (i) => {
11092
+ i.on("track:create", fl.bind(i)), i.on("track-items:resized", ml.bind(i)), i.on("track-items:moved", pl.bind(i)), i.on("mouse:up", vl.bind(i)), i.on("mouse:down", Ty.bind(i));
11088
11093
  };
11089
- function xy(i) {
11094
+ function Sy(i) {
11090
11095
  i.off("track:create", fl.bind(i)), i.off("track-items:resized", ml.bind(i)), i.off("track-items:moved", pl.bind(i)), i.off("mouse:up", vl.bind(i));
11091
11096
  }
11092
- function Sy(i, t) {
11097
+ function wy(i, t) {
11093
11098
  return t.forEach((e) => {
11094
11099
  Object.getOwnPropertyNames(e.prototype).forEach((s) => {
11095
11100
  s !== "constructor" && Object.defineProperty(
@@ -11100,8 +11105,8 @@ function Sy(i, t) {
11100
11105
  });
11101
11106
  }), i;
11102
11107
  }
11103
- let yl, bl, _l, Tl, xl, Sl, wl, Cl;
11104
- const wy = (i) => {
11108
+ let yl, bl, _l, Tl, xl, Sl, wl, Cl, Ol;
11109
+ const Cy = (i) => {
11105
11110
  yl = i.state.subscribeToActiveIds(
11106
11111
  ({ activeIds: t }) => {
11107
11112
  const e = i.activeIds;
@@ -11115,6 +11120,10 @@ const wy = (i) => {
11115
11120
  } else
11116
11121
  i.selectTrackItemByIds(t);
11117
11122
  }
11123
+ ), Ol = i.state.subscribeToUpdateTracks(
11124
+ ({ tracks: t, duration: e, trackItemsMap: s }) => {
11125
+ i.tracks = t, i.duration = e, i.trackItemsMap = s, i.synchronizeTrackItemsState(), i.renderTracks(), i.refreshTrackLayout(), i.adjustMagneticTrack(), i.renderTransitions(), i.alignItemsToTrack(), i.alignTransitionsToTrack(), i.calcBounding();
11126
+ }
11118
11127
  ), Cl = i.state.subscribeToTracks(
11119
11128
  ({ tracks: t, changedTracks: e }) => {
11120
11129
  e.length && (i.tracks = t, i.renderTracks(), i.refreshTrackLayout());
@@ -11200,8 +11209,8 @@ const wy = (i) => {
11200
11209
  }
11201
11210
  }), i.trackItemIds = e.trackItemIds, i.activeIds = e.activeIds, i.renderTracks(), i.alignItemsToTrack(), i.updateTrackItemCoords(), i.calcBounding(), i.updateTransitions(), i.refreshTrackLayout(), i.selectTrackItemByIds(e.activeIds);
11202
11211
  });
11203
- }, Cy = (i) => {
11204
- yl.unsubscribe(), bl.unsubscribe(), _l.unsubscribe(), Tl.unsubscribe(), xl.unsubscribe(), Sl.unsubscribe(), wl.unsubscribe(), Cl.unsubscribe();
11212
+ }, Oy = (i) => {
11213
+ yl.unsubscribe(), bl.unsubscribe(), _l.unsubscribe(), Tl.unsubscribe(), xl.unsubscribe(), Sl.unsubscribe(), wl.unsubscribe(), Cl.unsubscribe(), Ol.unsubscribe();
11205
11214
  }, ka = (i, t) => {
11206
11215
  let e = !1;
11207
11216
  const s = [];
@@ -11209,10 +11218,10 @@ const wy = (i) => {
11209
11218
  r.containsPoint(i) && (s.push(r), e = !0);
11210
11219
  }), { isOverObject: e, overObjects: s };
11211
11220
  };
11212
- function Oy(i) {
11221
+ function ky(i) {
11213
11222
  return JSON.parse(JSON.stringify(i));
11214
11223
  }
11215
- class ky {
11224
+ class My {
11216
11225
  constructor(t, e = {}) {
11217
11226
  x(this, "canvas");
11218
11227
  x(this, "fill", "rgba(0,0,0,.3)");
@@ -11222,7 +11231,7 @@ class ky {
11222
11231
  x(this, "hideY", !1);
11223
11232
  x(this, "scrollbarMinWidth", 40);
11224
11233
  x(this, "scrollbarSize", 5);
11225
- x(this, "scrollSpace", 4);
11234
+ x(this, "scrollSpace", 0);
11226
11235
  x(this, "padding", 4);
11227
11236
  x(this, "extraMarginX", 200);
11228
11237
  x(this, "extraMarginY", 200);
@@ -11360,7 +11369,7 @@ class ky {
11360
11369
  this._originalMouseDown && (this.canvas.__onMouseDown = this._originalMouseDown), this._originalMouseMove && (this.canvas._onMouseMove = this._originalMouseMove), this._originalMouseUp && (this.canvas._onMouseUp = this._originalMouseUp), this.canvas.off("before:render", this.beforeRenderHandler), this.canvas.off("after:render", this.afterRenderHandler);
11361
11370
  }
11362
11371
  }
11363
- const My = (i) => {
11372
+ const Dy = (i) => {
11364
11373
  const t = i.getTrackItems();
11365
11374
  if (t.length === 0)
11366
11375
  return { left: 0, top: 0, right: 0, bottom: 0 };
@@ -11368,8 +11377,8 @@ const My = (i) => {
11368
11377
  t.map((o) => o.getCoords()).flat(1)
11369
11378
  );
11370
11379
  return { left: e, top: s, right: e + r, bottom: s + n };
11371
- }, Dy = (i, t, e = 0, s = 0, r = 200, n = 200) => {
11372
- const o = t[0], a = My(i), c = Math.min(a.left, -e), h = Math.min(a.top, -s), l = a.right + r, u = a.bottom + n, d = l - c, g = u - h, f = i.width / o, p = i.height / o;
11380
+ }, jy = (i, t, e = 0, s = 0, r = 200, n = 200) => {
11381
+ const o = t[0], a = Dy(i), c = Math.min(a.left, -e), h = Math.min(a.top, -s), l = a.right + r, u = a.bottom + n, d = l - c, g = u - h, f = i.width / o, p = i.height / o;
11373
11382
  if (d <= f)
11374
11383
  t[4] = -c * o;
11375
11384
  else {
@@ -11387,7 +11396,7 @@ const My = (i) => {
11387
11396
  y < 0 && t[5] < y && (t[5] = y);
11388
11397
  }
11389
11398
  return t;
11390
- }, jy = (i, t = {}) => (e) => {
11399
+ }, Iy = (i, t = {}) => (e) => {
11391
11400
  const s = e.e;
11392
11401
  s.target == i.upperCanvasEl && s.preventDefault();
11393
11402
  const r = Math.floor(s.deltaY) != Math.ceil(s.deltaY);
@@ -11399,7 +11408,7 @@ const My = (i) => {
11399
11408
  }
11400
11409
  const n = i.viewportTransform.slice(0);
11401
11410
  s.shiftKey ? n[4] -= s.deltaY : (n[4] -= s.deltaX, n[5] -= s.deltaY);
11402
- const o = Dy(
11411
+ const o = jy(
11403
11412
  i,
11404
11413
  n,
11405
11414
  t.offsetX ?? 0,
@@ -11440,13 +11449,13 @@ const My = (i) => {
11440
11449
  this.bounding = s.bounding || {
11441
11450
  width: s.width || 0,
11442
11451
  height: s.height || 0
11443
- }, this.tScale = ((r = s.scale) == null ? void 0 : r.zoom) || 1, this.state = s.state, this.onScroll = s.onScroll, this.onResizeCanvas = s.onResizeCanvas, this.acceptsMap = s.acceptsMap || {}, this.sizesMap = s.sizesMap || {}, this.itemTypes = s.itemTypes || [], this.objectTypes = Ws.objectTypes, this.spacing = b0(s.spacing), this.itemTypes = s.itemTypes || [], this.positionAfterTransform = {}, this.initializeCanvasDefaults(), this.scale = s.scale, this.duration = s.duration, this.guideLineColor = s.guideLineColor || Ue, this.initEventListeners(), this.withTransitions = s.withTransitions || [];
11452
+ }, this.tScale = ((r = s.scale) == null ? void 0 : r.zoom) || 1, this.state = s.state, this.onScroll = s.onScroll, this.onResizeCanvas = s.onResizeCanvas, this.acceptsMap = s.acceptsMap || {}, this.sizesMap = s.sizesMap || {}, this.itemTypes = s.itemTypes || [], this.objectTypes = Ws.objectTypes, this.spacing = _0(s.spacing), this.itemTypes = s.itemTypes || [], this.positionAfterTransform = {}, this.initializeCanvasDefaults(), this.scale = s.scale, this.duration = s.duration, this.guideLineColor = s.guideLineColor || Ue, this.initEventListeners(), this.withTransitions = s.withTransitions || [];
11444
11453
  }
11445
11454
  static registerItems(e) {
11446
11455
  Object.keys(e).forEach((s) => {
11447
11456
  k.setClass(e[s], s);
11448
11457
  }), Ws.objectTypes = Object.keys(e).filter(
11449
- (s) => !Hd.includes(s)
11458
+ (s) => !Yd.includes(s)
11450
11459
  );
11451
11460
  }
11452
11461
  initScrollbars(e = {}) {
@@ -11459,9 +11468,10 @@ const My = (i) => {
11459
11468
  scrollbarColor: e.scrollbarColor,
11460
11469
  onViewportChange: (o) => {
11461
11470
  this._viewportChangeCallback && this._viewportChangeCallback(o);
11462
- }
11471
+ },
11472
+ scrollSpace: e.scrollSpace ?? 0
11463
11473
  };
11464
- this._mouseWheelHandler = jy(this, s), this.on("mouse:wheel", this._mouseWheelHandler), this._scrollbars = new ky(this, s);
11474
+ this._mouseWheelHandler = Iy(this, s), this.on("mouse:wheel", this._mouseWheelHandler), this._scrollbars = new My(this, s);
11465
11475
  const r = e.offsetX ?? 0, n = e.offsetY ?? 0;
11466
11476
  if (r !== 0 || n !== 0) {
11467
11477
  const o = this.viewportTransform.slice(0);
@@ -11509,7 +11519,7 @@ const My = (i) => {
11509
11519
  );
11510
11520
  if (r && (r == null ? void 0 : r.findControl(
11511
11521
  this.getViewportPoint(e),
11512
- T0(e)
11522
+ x0(e)
11513
11523
  ))) {
11514
11524
  super.__onMouseDown(e);
11515
11525
  return;
@@ -11573,12 +11583,12 @@ const My = (i) => {
11573
11583
  super._setupCurrentTransform(e, s, r);
11574
11584
  }
11575
11585
  initEventListeners() {
11576
- Ty(this), vy(this), wy(this);
11586
+ xy(this), yy(this), Cy(this);
11577
11587
  }
11578
11588
  setActiveIds(e) {
11579
11589
  this.activeIds = e, this.state.updateState(
11580
11590
  {
11581
- activeIds: Oy(this.activeIds)
11591
+ activeIds: ky(this.activeIds)
11582
11592
  },
11583
11593
  {
11584
11594
  kind: "layer:selection",
@@ -11624,7 +11634,7 @@ const My = (i) => {
11624
11634
  };
11625
11635
  }
11626
11636
  purge() {
11627
- yy(this), xy(this), Cy(), this.disposeScrollbars(), this.dispose();
11637
+ by(this), Sy(this), Oy(), this.disposeScrollbars(), this.dispose();
11628
11638
  }
11629
11639
  scrollTo({
11630
11640
  scrollLeft: e,
@@ -11682,7 +11692,7 @@ const My = (i) => {
11682
11692
  this.bounding = {
11683
11693
  ...s,
11684
11694
  ...r
11685
- }, se(K0, {
11695
+ }, se(J0, {
11686
11696
  payload: {
11687
11697
  bounding: {
11688
11698
  ...s,
@@ -11719,58 +11729,58 @@ const My = (i) => {
11719
11729
  };
11720
11730
  x(Ws, "objectTypes", []);
11721
11731
  let be = Ws;
11722
- Sy(be, [
11723
- pg,
11732
+ wy(be, [
11733
+ mg,
11734
+ h0,
11724
11735
  c0,
11725
- a0,
11726
- by
11736
+ _y
11727
11737
  ]);
11728
- const Wy = {
11738
+ const Xy = {
11729
11739
  audio: cn,
11730
11740
  media: un,
11731
11741
  common: hn,
11732
11742
  transition: ln
11733
11743
  };
11734
11744
  export {
11735
- Ay as BOTTOM,
11745
+ Ly as BOTTOM,
11736
11746
  ze as CENTER,
11737
11747
  N as Control,
11738
11748
  Kh as DRAG_END,
11739
11749
  qh as DRAG_PREFIX,
11740
- q0 as DRAG_START,
11750
+ K0 as DRAG_START,
11741
11751
  ht as FabricObject,
11742
11752
  Se as Helper,
11743
11753
  sr as LEFT,
11744
- Ly as NONE,
11754
+ Fy as NONE,
11745
11755
  Pi as Pattern,
11746
11756
  Vs as Placeholder,
11747
11757
  we as PreviewTrackItem,
11748
11758
  rr as RIGHT,
11749
11759
  Q as Rect,
11750
11760
  dn as Resizable,
11751
- K0 as TIMELINE_BOUNDING_CHANGED,
11761
+ J0 as TIMELINE_BOUNDING_CHANGED,
11752
11762
  Jh as TIMELINE_PREFIX,
11753
- J0 as TIMELINE_SEEK,
11754
- Py as TOP,
11763
+ Z0 as TIMELINE_SEEK,
11764
+ Ay as TOP,
11755
11765
  Nt as Track,
11756
11766
  $t as Transition,
11757
11767
  ne as Trimmable,
11758
- Fy as calculateTimelineWidth,
11768
+ Ry as calculateTimelineWidth,
11759
11769
  hn as changeWidth,
11760
11770
  k as classRegistry,
11761
11771
  _s as controlsUtils,
11762
- By as createAudioControls,
11763
- hg as createMediaControls,
11764
- cg as createResizeControls,
11765
- Ry as createTemplateControls,
11772
+ Wy as createAudioControls,
11773
+ lg as createMediaControls,
11774
+ hg as createResizeControls,
11775
+ By as createTemplateControls,
11766
11776
  ch as createTransitionControls,
11767
11777
  be as default,
11768
11778
  Gt as drawVerticalLine,
11769
11779
  Ds as generateId,
11770
11780
  Rr as getDuration,
11771
11781
  ir as isTransformCentered,
11772
- Wy as resize,
11773
- E as resolveOrigin,
11782
+ Xy as resize,
11783
+ I as resolveOrigin,
11774
11784
  ot as timeMsToUnits,
11775
11785
  R as unitsToTimeMs,
11776
11786
  Yn as util,