@camstack/addon-pipeline-orchestrator 0.1.10 → 0.1.12

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/_stub.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { _ as Z, a as ct, b as _0 } from "./__mfe_internal__addon_pipeline_orchestrator_widgets__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.mjs-Cg6QsnjR.mjs";
2
2
  import { _ as z1 } from "./__mfe_internal__addon_pipeline_orchestrator_widgets__loadShare___mf_0_tanstack_mf_1_react_mf_2_query__loadShare__.mjs-DoWbefqS.mjs";
3
- import { _ as Lh, a as G1, b as H1, c as Do, d as Oo, e as B1, f as zo, g as vo, h as U1, i as Go, j as S0, k as L1, l as Y1, m as Il, n as $l, o as ts, p as w1, q as X1, r as q1, s as j1, t as V1, u as K1, v as Q1 } from "./__mfe_internal__addon_pipeline_orchestrator_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.mjs-Dx4ru1K-.mjs";
3
+ import { _ as Lh, a as G1, b as H1, c as Do, d as Oo, e as B1, f as zo, g as vo, h as U1, i as Go, j as S0, k as L1, l as Y1, m as Il, n as $l, o as ts, p as w1, q as X1, r as q1, s as j1, t as V1, u as K1, v as Q1 } from "./__mfe_internal__addon_pipeline_orchestrator_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.mjs-CmFbjOgN.mjs";
4
4
  import { a as b0, b as da, c as pn, d as tn, e as wi, R as ee, f as Z1, g as k1, h as J1, i as P1, j as F1, k as C0, l as ao, m as Xe } from "./__mfe_internal__addon_pipeline_orchestrator_widgets__loadShare__react__loadShare__.mjs-B848Fc_m.mjs";
5
- import { _ as W1 } from "./__mfe_internal__addon_pipeline_orchestrator_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.mjs-BSGcsf1a.mjs";
5
+ import { _ as W1 } from "./__mfe_internal__addon_pipeline_orchestrator_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.mjs-zU1ROtkq.mjs";
6
6
  import { r as I1, a as $1 } from "./__mfe_internal__addon_pipeline_orchestrator_widgets__loadShare__react__loadShare__.mjs_commonjs-proxy-B-q1guKT.mjs";
7
7
  import { s as fs } from "./index-CWkKuNLr.mjs";
8
8
  /**
@@ -1449,7 +1449,7 @@ function F2(o) {
1449
1449
  }
1450
1450
  return e;
1451
1451
  }
1452
- const jh = ",", W2 = "(", I2 = ")", $2 = "([", t3 = "])", e3 = ";", n3 = "()", a3 = "=", Vh = [
1452
+ const jh = ",", W2 = "(", I2 = ")", $2 = "([", t5 = "])", e5 = ";", n5 = "()", a5 = "=", Vh = [
1453
1453
  "arc",
1454
1454
  "arcTo",
1455
1455
  "beginPath",
@@ -1482,7 +1482,7 @@ const jh = ",", W2 = "(", I2 = ")", $2 = "([", t3 = "])", e3 = ";", n3 = "()", a
1482
1482
  "strokeText",
1483
1483
  "transform",
1484
1484
  "translate"
1485
- ], i3 = [
1485
+ ], i5 = [
1486
1486
  "fillStyle",
1487
1487
  "strokeStyle",
1488
1488
  "shadowColor",
@@ -1503,7 +1503,7 @@ const jh = ",", W2 = "(", I2 = ")", $2 = "([", t3 = "])", e3 = ";", n3 = "()", a
1503
1503
  "globalCompositeOperation",
1504
1504
  "imageSmoothingEnabled",
1505
1505
  "filter"
1506
- ], l3 = 100;
1506
+ ], l5 = 100;
1507
1507
  let as = null;
1508
1508
  function Kh() {
1509
1509
  if (as !== null)
@@ -1535,7 +1535,7 @@ class ys {
1535
1535
  getTrace(e, a) {
1536
1536
  let l = this.traceArr, s = l.length, u = "", c, f, g, m;
1537
1537
  for (c = 0; c < s; c++)
1538
- f = l[c], g = f.method, g ? (m = f.args, u += g, e ? u += n3 : T._isArray(m[0]) ? u += $2 + m.join(jh) + t3 : (a && (m = m.map((p) => typeof p == "number" ? Math.floor(p) : p)), u += W2 + m.join(jh) + I2)) : (u += f.property, e || (u += a3 + f.val)), u += e3;
1538
+ f = l[c], g = f.method, g ? (m = f.args, u += g, e ? u += n5 : T._isArray(m[0]) ? u += $2 + m.join(jh) + t5 : (a && (m = m.map((p) => typeof p == "number" ? Math.floor(p) : p)), u += W2 + m.join(jh) + I2)) : (u += f.property, e || (u += a5 + f.val)), u += e5;
1539
1539
  return u;
1540
1540
  }
1541
1541
  clearTrace() {
@@ -1543,7 +1543,7 @@ class ys {
1543
1543
  }
1544
1544
  _trace(e) {
1545
1545
  let a = this.traceArr, l;
1546
- a.push(e), l = a.length, l >= l3 && a.shift();
1546
+ a.push(e), l = a.length, l >= l5 && a.shift();
1547
1547
  }
1548
1548
  reset() {
1549
1549
  const e = this.getCanvas().getPixelRatio();
@@ -1719,7 +1719,7 @@ class ys {
1719
1719
  !a || a === "source-over" || this.setAttr("globalCompositeOperation", a);
1720
1720
  }
1721
1721
  }
1722
- i3.forEach(function(o) {
1722
+ i5.forEach(function(o) {
1723
1723
  Object.defineProperty(ys.prototype, o, {
1724
1724
  get() {
1725
1725
  return this._context[o];
@@ -1729,7 +1729,7 @@ i3.forEach(function(o) {
1729
1729
  }
1730
1730
  });
1731
1731
  });
1732
- class s3 extends ys {
1732
+ class s5 extends ys {
1733
1733
  constructor(e, { willReadFrequently: a = !1 } = {}) {
1734
1734
  super(e), this._context = e._canvas.getContext("2d", {
1735
1735
  willReadFrequently: a
@@ -1801,7 +1801,7 @@ class s3 extends ys {
1801
1801
  this.setAttr("shadowColor", u), this.setAttr("shadowBlur", c * Math.min(Math.abs(p), Math.abs(_))), this.setAttr("shadowOffsetX", f.x * p), this.setAttr("shadowOffsetY", f.y * _);
1802
1802
  }
1803
1803
  }
1804
- class r3 extends ys {
1804
+ class r5 extends ys {
1805
1805
  constructor(e) {
1806
1806
  super(e), this._context = e._canvas.getContext("2d", {
1807
1807
  willReadFrequently: !0
@@ -1828,7 +1828,7 @@ class r3 extends ys {
1828
1828
  }
1829
1829
  }
1830
1830
  let is;
1831
- function o3() {
1831
+ function o5() {
1832
1832
  if (is)
1833
1833
  return is;
1834
1834
  const o = T.createCanvasElement(), e = o.getContext("2d");
@@ -1840,7 +1840,7 @@ function o3() {
1840
1840
  class Bo {
1841
1841
  constructor(e) {
1842
1842
  this.pixelRatio = 1, this.width = 0, this.height = 0, this.isCache = !1;
1843
- const l = (e || {}).pixelRatio || k.pixelRatio || o3();
1843
+ const l = (e || {}).pixelRatio || k.pixelRatio || o5();
1844
1844
  this.pixelRatio = l, this._canvas = T.createCanvasElement(), this._canvas.style.padding = "0", this._canvas.style.margin = "0", this._canvas.style.border = "0", this._canvas.style.background = "transparent", this._canvas.style.position = "absolute", this._canvas.style.top = "0", this._canvas.style.left = "0";
1845
1845
  }
1846
1846
  getContext() {
@@ -1886,14 +1886,14 @@ class Bo {
1886
1886
  }
1887
1887
  class wn extends Bo {
1888
1888
  constructor(e = { width: 0, height: 0, willReadFrequently: !1 }) {
1889
- super(e), this.context = new s3(this, {
1889
+ super(e), this.context = new s5(this, {
1890
1890
  willReadFrequently: e.willReadFrequently
1891
1891
  }), this.setSize(e.width, e.height);
1892
1892
  }
1893
1893
  }
1894
1894
  class Uo extends Bo {
1895
1895
  constructor(e = { width: 0, height: 0 }) {
1896
- super(e), this.hitCanvas = !0, this.context = new r3(this), this.setSize(e.width, e.height);
1896
+ super(e), this.hitCanvas = !0, this.context = new r5(this), this.setSize(e.width, e.height);
1897
1897
  }
1898
1898
  }
1899
1899
  const St = {
@@ -1995,7 +1995,7 @@ function A0() {
1995
1995
  return a || l || T.warn(Xn(o) + ' is a not valid value for "' + e + '" attribute. The value should be a string or a native gradient.'), o;
1996
1996
  };
1997
1997
  }
1998
- function u3() {
1998
+ function u5() {
1999
1999
  if (k.isUnminified)
2000
2000
  return function(o, e) {
2001
2001
  const a = Int8Array ? Object.getPrototypeOf(Int8Array) : null;
@@ -2010,7 +2010,7 @@ function Je() {
2010
2010
  return o === !0 || o === !1 || T.warn(Xn(o) + ' is a not valid value for "' + e + '" attribute. The value should be a boolean.'), o;
2011
2011
  };
2012
2012
  }
2013
- function c3(o) {
2013
+ function c5(o) {
2014
2014
  if (k.isUnminified)
2015
2015
  return function(e, a) {
2016
2016
  return e == null || T.isObject(e) || T.warn(Xn(e) + ' is a not valid value for "' + a + '" attribute. The value should be an object with properties ' + o), e;
@@ -2047,7 +2047,7 @@ const Gi = "get", Hi = "set", C = {
2047
2047
  }
2048
2048
  return p;
2049
2049
  };
2050
- const m = c3(a);
2050
+ const m = c5(a);
2051
2051
  o.prototype[g] = function(p) {
2052
2052
  const _ = this.attrs[e];
2053
2053
  l && (p = l.call(this, p, e)), m && m.call(this, p, e);
@@ -2088,7 +2088,7 @@ const Gi = "get", Hi = "set", C = {
2088
2088
  this._filterUpToDate = !1;
2089
2089
  }
2090
2090
  };
2091
- function h3(o) {
2091
+ function h5(o) {
2092
2092
  const e = /(\w+)\(([^)]+)\)/g;
2093
2093
  let a;
2094
2094
  for (; (a = e.exec(o)) !== null; ) {
@@ -2142,7 +2142,7 @@ function h3(o) {
2142
2142
  return () => {
2143
2143
  };
2144
2144
  }
2145
- const ds = "absoluteOpacity", Qh = "allEventListeners", mn = "absoluteTransform", Zh = "absoluteScale", ca = "canvas", f3 = "Change", d3 = "children", g3 = "konva", _o = "listening", m3 = "mouseenter", p3 = "mouseleave", y3 = "pointerenter", v3 = "pointerleave", _3 = "touchenter", S3 = "touchleave", kh = "set", Jh = "Shape", gs = " ", Ph = "stage", Ln = "transform", b3 = "Stage", So = "visible", C3 = [
2145
+ const ds = "absoluteOpacity", Qh = "allEventListeners", mn = "absoluteTransform", Zh = "absoluteScale", ca = "canvas", f5 = "Change", d5 = "children", g5 = "konva", _o = "listening", m5 = "mouseenter", p5 = "mouseleave", y5 = "pointerenter", v5 = "pointerleave", _5 = "touchenter", S5 = "touchleave", kh = "set", Jh = "Shape", gs = " ", Ph = "stage", Ln = "transform", b5 = "Stage", So = "visible", C5 = [
2146
2146
  "xChange.konva",
2147
2147
  "yChange.konva",
2148
2148
  "scaleXChange.konva",
@@ -2154,10 +2154,10 @@ const ds = "absoluteOpacity", Qh = "allEventListeners", mn = "absoluteTransform"
2154
2154
  "offsetYChange.konva",
2155
2155
  "transformsEnabledChange.konva"
2156
2156
  ].join(gs);
2157
- let E3 = 1;
2157
+ let E5 = 1;
2158
2158
  class Q {
2159
2159
  constructor(e) {
2160
- this._id = E3++, this.eventListeners = {}, this.attrs = {}, this.index = 0, this._allEventListeners = null, this.parent = null, this._cache = /* @__PURE__ */ new Map(), this._attachedDepsListeners = /* @__PURE__ */ new Map(), this._lastPos = null, this._batchingTransformChange = !1, this._needClearTransformCache = !1, this._filterUpToDate = !1, this._isUnderCache = !1, this._dragEventId = null, this._shouldFireChangeEvents = !1, this.setAttrs(e), this._shouldFireChangeEvents = !0;
2160
+ this._id = E5++, this.eventListeners = {}, this.attrs = {}, this.index = 0, this._allEventListeners = null, this.parent = null, this._cache = /* @__PURE__ */ new Map(), this._attachedDepsListeners = /* @__PURE__ */ new Map(), this._lastPos = null, this._batchingTransformChange = !1, this._needClearTransformCache = !1, this._filterUpToDate = !1, this._isUnderCache = !1, this._dragEventId = null, this._shouldFireChangeEvents = !1, this.setAttrs(e), this._shouldFireChangeEvents = !0;
2161
2161
  }
2162
2162
  hasChildren() {
2163
2163
  return !1;
@@ -2286,7 +2286,7 @@ class Q {
2286
2286
  }
2287
2287
  try {
2288
2288
  for (c = e.length, u.clear(), u.drawImage(l._canvas, 0, 0, l.getWidth() / _, l.getHeight() / _), f = u.getImageData(0, 0, s.getWidth(), s.getHeight()), g = 0; g < c; g++)
2289
- m = e[g], typeof m == "string" && (m = h3(m)), m.call(this, f), u.putImageData(f, 0, 0);
2289
+ m = e[g], typeof m == "string" && (m = h5(m)), m.call(this, f), u.putImageData(f, 0, 0);
2290
2290
  } catch (v) {
2291
2291
  T.error("Unable to apply filter. " + v.message + " This post my help you https://konvajs.org/docs/posts/Tainted_Canvas.html.");
2292
2292
  }
@@ -2375,7 +2375,7 @@ class Q {
2375
2375
  if (!e)
2376
2376
  return this;
2377
2377
  for (a in e)
2378
- a !== d3 && (l = kh + T._capitalize(a), T._isFunction(this[l]) ? this[l](e[a]) : this._setAttr(a, e[a]));
2378
+ a !== d5 && (l = kh + T._capitalize(a), T._isFunction(this[l]) ? this[l](e[a]) : this._setAttr(a, e[a]));
2379
2379
  }), this;
2380
2380
  }
2381
2381
  isListening() {
@@ -2424,7 +2424,7 @@ class Q {
2424
2424
  s.length > 0 && s[0].getDepth() <= e && g(s);
2425
2425
  }
2426
2426
  const m = this.getStage();
2427
- return a.nodeType !== b3 && m && g(m.getChildren()), l;
2427
+ return a.nodeType !== b5 && m && g(m.getChildren()), l;
2428
2428
  }
2429
2429
  getDepth() {
2430
2430
  let e = 0, a = this.parent;
@@ -2671,7 +2671,7 @@ class Q {
2671
2671
  const g = new this.constructor(a);
2672
2672
  for (l in this.eventListeners)
2673
2673
  for (s = this.eventListeners[l], u = s.length, c = 0; c < u; c++)
2674
- f = s[c], f.name.indexOf(g3) < 0 && (g.eventListeners[l] || (g.eventListeners[l] = []), g.eventListeners[l].push(f));
2674
+ f = s[c], f.name.indexOf(g5) < 0 && (g.eventListeners[l] || (g.eventListeners[l] = []), g.eventListeners[l].push(f));
2675
2675
  return g;
2676
2676
  }
2677
2677
  _toKonvaCanvas(e) {
@@ -2749,7 +2749,7 @@ class Q {
2749
2749
  }
2750
2750
  }
2751
2751
  _fireChangeEvent(e, a, l) {
2752
- this._fire(e + f3, {
2752
+ this._fire(e + f5, {
2753
2753
  oldVal: a,
2754
2754
  newVal: l
2755
2755
  });
@@ -2792,12 +2792,12 @@ class Q {
2792
2792
  _fireAndBubble(e, a, l) {
2793
2793
  a && this.nodeType === Jh && (a.target = this);
2794
2794
  const s = [
2795
- m3,
2796
- p3,
2797
- y3,
2798
- v3,
2799
- _3,
2800
- S3
2795
+ m5,
2796
+ p5,
2797
+ y5,
2798
+ v5,
2799
+ _5,
2800
+ S5
2801
2801
  ];
2802
2802
  if (!(s.indexOf(e) !== -1 && (l && (this === l || this.isAncestorOf && this.isAncestorOf(l)) || this.nodeType === "Stage" && !l))) {
2803
2803
  this._fire(e, a);
@@ -2946,7 +2946,7 @@ Q.protoListenerMap = /* @__PURE__ */ new Map();
2946
2946
  Q.prototype.nodeType = "Node";
2947
2947
  Q.prototype._attrsAffectingSize = [];
2948
2948
  Q.prototype.eventListeners = {};
2949
- Q.prototype.on(C3, function() {
2949
+ Q.prototype.on(C5, function() {
2950
2950
  if (this._batchingTransformChange) {
2951
2951
  this._needClearTransformCache = !0;
2952
2952
  return;
@@ -3221,7 +3221,7 @@ function Qi(o, e) {
3221
3221
  const l = a.getStage();
3222
3222
  l && l.content, Pi.delete(o), M0 && a._fire("lostpointercapture", Yo(new PointerEvent("lostpointercapture")));
3223
3223
  }
3224
- const x3 = "Stage", T3 = "string", Fh = "px", A3 = "mouseout", D0 = "mouseleave", O0 = "mouseover", z0 = "mouseenter", G0 = "mousemove", H0 = "mousedown", B0 = "mouseup", Xi = "pointermove", qi = "pointerdown", Pa = "pointerup", ji = "pointercancel", M3 = "lostpointercapture", ls = "pointerout", Vi = "pointerleave", ss = "pointerover", rs = "pointerenter", bo = "contextmenu", U0 = "touchstart", L0 = "touchend", Y0 = "touchmove", w0 = "touchcancel", Co = "wheel", N3 = 5, R3 = [
3224
+ const x5 = "Stage", T5 = "string", Fh = "px", A5 = "mouseout", D0 = "mouseleave", O0 = "mouseover", z0 = "mouseenter", G0 = "mousemove", H0 = "mousedown", B0 = "mouseup", Xi = "pointermove", qi = "pointerdown", Pa = "pointerup", ji = "pointercancel", M5 = "lostpointercapture", ls = "pointerout", Vi = "pointerleave", ss = "pointerover", rs = "pointerenter", bo = "contextmenu", U0 = "touchstart", L0 = "touchend", Y0 = "touchmove", w0 = "touchcancel", Co = "wheel", N5 = 5, R5 = [
3225
3225
  [z0, "_pointerenter"],
3226
3226
  [H0, "_pointerdown"],
3227
3227
  [G0, "_pointermove"],
@@ -3239,10 +3239,10 @@ const x3 = "Stage", T3 = "string", Fh = "px", A3 = "mouseout", D0 = "mouseleave"
3239
3239
  [Pa, "_pointerup"],
3240
3240
  [ji, "_pointercancel"],
3241
3241
  [Vi, "_pointerleave"],
3242
- [M3, "_lostpointercapture"]
3242
+ [M5, "_lostpointercapture"]
3243
3243
  ], so = {
3244
3244
  mouse: {
3245
- [ls]: A3,
3245
+ [ls]: A5,
3246
3246
  [Vi]: D0,
3247
3247
  [ss]: O0,
3248
3248
  [rs]: z0,
@@ -3289,7 +3289,7 @@ const x3 = "Stage", T3 = "string", Fh = "px", A3 = "mouseout", D0 = "mouseleave"
3289
3289
  function Wh(o = {}) {
3290
3290
  return (o.clipFunc || o.clipWidth || o.clipHeight) && T.warn("Stage does not support clipping. Please use clip for Layers or Groups."), o;
3291
3291
  }
3292
- const D3 = "Pointer position is missing and not registered by the stage. Looks like it is outside of the stage container. You can set it manually from event: stage.setPointersPositions(event);", Zi = [];
3292
+ const D5 = "Pointer position is missing and not registered by the stage. Looks like it is outside of the stage container. You can set it manually from event: stage.setPointersPositions(event);", Zi = [];
3293
3293
  let _s = class extends ze {
3294
3294
  constructor(e) {
3295
3295
  super(Wh(e)), this._pointerPositions = [], this._changedPointerPositions = [], this._buildDOM(), this._bindContentEvents(), Zi.push(this), this.on("widthChange.konva heightChange.konva", this._resizeDOM), this.on("visibleChange.konva", this._checkVisibility), this.on("clipWidthChange.konva clipHeightChange.konva clipFuncChange.konva", () => {
@@ -3307,7 +3307,7 @@ let _s = class extends ze {
3307
3307
  this.content.style.display = e;
3308
3308
  }
3309
3309
  setContainer(e) {
3310
- if (typeof e === T3) {
3310
+ if (typeof e === T5) {
3311
3311
  let a;
3312
3312
  if (e.charAt(0) === ".") {
3313
3313
  const l = e.slice(1);
@@ -3343,7 +3343,7 @@ let _s = class extends ze {
3343
3343
  return e ? {
3344
3344
  x: e.x,
3345
3345
  y: e.y
3346
- } : (T.warn(D3), null);
3346
+ } : (T.warn(D5), null);
3347
3347
  }
3348
3348
  _getPointerById(e) {
3349
3349
  return this._pointerPositions.find((a) => a.id === e);
@@ -3396,7 +3396,7 @@ let _s = class extends ze {
3396
3396
  }
3397
3397
  super.add(e);
3398
3398
  const l = this.children.length;
3399
- return l > N3 && T.warn("The stage has " + l + " layers. Recommended maximum number of layers is 3-5. Adding more layers into the stage may drop the performance. Rethink your tree structure, you can use Konva.Group."), e.setSize({ width: this.width(), height: this.height() }), e.draw(), k.isBrowser && this.content.appendChild(e.canvas._canvas), this;
3399
+ return l > N5 && T.warn("The stage has " + l + " layers. Recommended maximum number of layers is 3-5. Adding more layers into the stage may drop the performance. Rethink your tree structure, you can use Konva.Group."), e.setSize({ width: this.width(), height: this.height() }), e.draw(), k.isBrowser && this.content.appendChild(e.canvas._canvas), this;
3400
3400
  }
3401
3401
  getParent() {
3402
3402
  return null;
@@ -3417,7 +3417,7 @@ let _s = class extends ze {
3417
3417
  return this.children;
3418
3418
  }
3419
3419
  _bindContentEvents() {
3420
- k.isBrowser && R3.forEach(([e, a]) => {
3420
+ k.isBrowser && R5.forEach(([e, a]) => {
3421
3421
  this.content.addEventListener(e, (l) => {
3422
3422
  this[a](l);
3423
3423
  }, { passive: !1 });
@@ -3655,7 +3655,7 @@ let _s = class extends ze {
3655
3655
  }), this;
3656
3656
  }
3657
3657
  };
3658
- _s.prototype.nodeType = x3;
3658
+ _s.prototype.nodeType = x5;
3659
3659
  Xt(_s);
3660
3660
  C.addGetterSetter(_s, "container");
3661
3661
  k.isBrowser && document.addEventListener("visibilitychange", () => {
@@ -3669,33 +3669,33 @@ function ro() {
3669
3669
  return os || (os = T.createCanvasElement().getContext("2d"), os);
3670
3670
  }
3671
3671
  const ki = {};
3672
- function O3(o) {
3672
+ function O5(o) {
3673
3673
  const e = this.attrs.fillRule;
3674
3674
  e ? o.fill(e) : o.fill();
3675
3675
  }
3676
- function z3(o) {
3676
+ function z5(o) {
3677
3677
  o.stroke();
3678
3678
  }
3679
- function G3(o) {
3679
+ function G5(o) {
3680
3680
  const e = this.attrs.fillRule;
3681
3681
  e ? o.fill(e) : o.fill();
3682
3682
  }
3683
- function H3(o) {
3683
+ function H5(o) {
3684
3684
  o.stroke();
3685
3685
  }
3686
- function B3() {
3686
+ function B5() {
3687
3687
  this._clearCache(X0);
3688
3688
  }
3689
- function U3() {
3689
+ function U5() {
3690
3690
  this._clearCache(q0);
3691
3691
  }
3692
- function L3() {
3692
+ function L5() {
3693
3693
  this._clearCache(j0);
3694
3694
  }
3695
- function Y3() {
3695
+ function Y5() {
3696
3696
  this._clearCache(V0);
3697
3697
  }
3698
- function w3() {
3698
+ function w5() {
3699
3699
  this._clearCache(K0);
3700
3700
  }
3701
3701
  class w extends Q {
@@ -3926,19 +3926,19 @@ class w extends Q {
3926
3926
  Qi(e);
3927
3927
  }
3928
3928
  }
3929
- w.prototype._fillFunc = O3;
3930
- w.prototype._strokeFunc = z3;
3931
- w.prototype._fillFuncHit = G3;
3932
- w.prototype._strokeFuncHit = H3;
3929
+ w.prototype._fillFunc = O5;
3930
+ w.prototype._strokeFunc = z5;
3931
+ w.prototype._fillFuncHit = G5;
3932
+ w.prototype._strokeFuncHit = H5;
3933
3933
  w.prototype._centroid = !1;
3934
3934
  w.prototype.nodeType = "Shape";
3935
3935
  Xt(w);
3936
3936
  w.prototype.eventListeners = {};
3937
- w.prototype.on("shadowColorChange.konva shadowBlurChange.konva shadowOffsetChange.konva shadowOpacityChange.konva shadowEnabledChange.konva", B3);
3938
- w.prototype.on("shadowColorChange.konva shadowOpacityChange.konva shadowEnabledChange.konva", U3);
3939
- w.prototype.on("fillPriorityChange.konva fillPatternImageChange.konva fillPatternRepeatChange.konva fillPatternScaleXChange.konva fillPatternScaleYChange.konva fillPatternOffsetXChange.konva fillPatternOffsetYChange.konva fillPatternXChange.konva fillPatternYChange.konva fillPatternRotationChange.konva", L3);
3940
- w.prototype.on("fillPriorityChange.konva fillLinearGradientColorStopsChange.konva fillLinearGradientStartPointXChange.konva fillLinearGradientStartPointYChange.konva fillLinearGradientEndPointXChange.konva fillLinearGradientEndPointYChange.konva", Y3);
3941
- w.prototype.on("fillPriorityChange.konva fillRadialGradientColorStopsChange.konva fillRadialGradientStartPointXChange.konva fillRadialGradientStartPointYChange.konva fillRadialGradientEndPointXChange.konva fillRadialGradientEndPointYChange.konva fillRadialGradientStartRadiusChange.konva fillRadialGradientEndRadiusChange.konva", w3);
3937
+ w.prototype.on("shadowColorChange.konva shadowBlurChange.konva shadowOffsetChange.konva shadowOpacityChange.konva shadowEnabledChange.konva", B5);
3938
+ w.prototype.on("shadowColorChange.konva shadowOpacityChange.konva shadowEnabledChange.konva", U5);
3939
+ w.prototype.on("fillPriorityChange.konva fillPatternImageChange.konva fillPatternRepeatChange.konva fillPatternScaleXChange.konva fillPatternScaleYChange.konva fillPatternOffsetXChange.konva fillPatternOffsetYChange.konva fillPatternXChange.konva fillPatternYChange.konva fillPatternRotationChange.konva", L5);
3940
+ w.prototype.on("fillPriorityChange.konva fillLinearGradientColorStopsChange.konva fillLinearGradientStartPointXChange.konva fillLinearGradientStartPointYChange.konva fillLinearGradientEndPointXChange.konva fillLinearGradientEndPointYChange.konva", Y5);
3941
+ w.prototype.on("fillPriorityChange.konva fillRadialGradientColorStopsChange.konva fillRadialGradientStartPointXChange.konva fillRadialGradientStartPointYChange.konva fillRadialGradientEndPointXChange.konva fillRadialGradientEndPointYChange.konva fillRadialGradientStartRadiusChange.konva fillRadialGradientEndRadiusChange.konva", w5);
3942
3942
  C.addGetterSetter(w, "stroke", void 0, A0());
3943
3943
  C.addGetterSetter(w, "strokeWidth", 2, K());
3944
3944
  C.addGetterSetter(w, "fillAfterStrokeEnabled", !1);
@@ -4030,13 +4030,13 @@ C.backCompat(w, {
4030
4030
  getDrawHitFunc: "getHitFunc",
4031
4031
  setDrawHitFunc: "setHitFunc"
4032
4032
  });
4033
- const X3 = "beforeDraw", q3 = "draw", Q0 = [
4033
+ const X5 = "beforeDraw", q5 = "draw", Q0 = [
4034
4034
  { x: 0, y: 0 },
4035
4035
  { x: -1, y: -1 },
4036
4036
  { x: 1, y: -1 },
4037
4037
  { x: 1, y: 1 },
4038
4038
  { x: -1, y: 1 }
4039
- ], j3 = Q0.length;
4039
+ ], j5 = Q0.length;
4040
4040
  let ma = class extends ze {
4041
4041
  constructor(e) {
4042
4042
  super(e), this.canvas = new wn(), this.hitCanvas = new Uo({
@@ -4149,7 +4149,7 @@ let ma = class extends ze {
4149
4149
  return null;
4150
4150
  let a = 1, l = !1;
4151
4151
  for (; ; ) {
4152
- for (let s = 0; s < j3; s++) {
4152
+ for (let s = 0; s < j5; s++) {
4153
4153
  const u = Q0[s], c = this._getIntersection({
4154
4154
  x: e.x + u.x * a,
4155
4155
  y: e.y + u.y * a
@@ -4182,9 +4182,9 @@ let ma = class extends ze {
4182
4182
  }
4183
4183
  drawScene(e, a, l) {
4184
4184
  const s = this.getLayer(), u = e || s && s.getCanvas();
4185
- return this._fire(X3, {
4185
+ return this._fire(X5, {
4186
4186
  node: this
4187
- }), this.clearBeforeDraw() && u.getContext().clear(), ze.prototype.drawScene.call(this, u, a, l), this._fire(q3, {
4187
+ }), this.clearBeforeDraw() && u.getContext().clear(), ze.prototype.drawScene.call(this, u, a, l), this._fire(q5, {
4188
4188
  node: this
4189
4189
  }), this;
4190
4190
  }
@@ -4318,15 +4318,15 @@ class qe {
4318
4318
  qe.animations = [];
4319
4319
  qe.animIdCounter = 0;
4320
4320
  qe.animRunning = !1;
4321
- const V3 = {
4321
+ const V5 = {
4322
4322
  node: 1,
4323
4323
  duration: 1,
4324
4324
  easing: 1,
4325
4325
  onFinish: 1,
4326
4326
  yoyo: 1
4327
- }, K3 = 1, Ih = 2, $h = 3, t0 = ["fill", "stroke", "shadowColor"];
4328
- let Q3 = 0;
4329
- class Z3 {
4327
+ }, K5 = 1, Ih = 2, $h = 3, t0 = ["fill", "stroke", "shadowColor"];
4328
+ let Q5 = 0;
4329
+ class Z5 {
4330
4330
  constructor(e, a, l, s, u, c, f) {
4331
4331
  this.prop = e, this.propFunc = a, this.begin = s, this._pos = s, this.duration = c, this._change = 0, this.prevPos = 0, this.yoyo = f, this._time = 0, this._position = 0, this._startTime = 0, this._finish = 0, this.func = l, this._change = u - this.begin, this.pause();
4332
4332
  }
@@ -4369,7 +4369,7 @@ class Z3 {
4369
4369
  this.state === Ih ? this.setTime(e) : this.state === $h && this.setTime(this.duration - e);
4370
4370
  }
4371
4371
  pause() {
4372
- this.state = K3, this.fire("onPause");
4372
+ this.state = K5, this.fire("onPause");
4373
4373
  }
4374
4374
  getTimer() {
4375
4375
  return (/* @__PURE__ */ new Date()).getTime();
@@ -4379,15 +4379,15 @@ class zt {
4379
4379
  constructor(e) {
4380
4380
  const a = this, l = e.node, s = l._id, u = e.easing || Ji.Linear, c = !!e.yoyo;
4381
4381
  let f, g;
4382
- typeof e.duration > "u" ? f = 0.3 : e.duration === 0 ? f = 1e-3 : f = e.duration, this.node = l, this._id = Q3++;
4382
+ typeof e.duration > "u" ? f = 0.3 : e.duration === 0 ? f = 1e-3 : f = e.duration, this.node = l, this._id = Q5++;
4383
4383
  const m = l.getLayer() || (l instanceof k.Stage ? l.getLayers() : null);
4384
4384
  m || T.error("Tween constructor have `node` that is not in a layer. Please add node into layer first."), this.anim = new qe(function() {
4385
4385
  a.tween.onEnterFrame();
4386
- }, m), this.tween = new Z3(g, function(p) {
4386
+ }, m), this.tween = new Z5(g, function(p) {
4387
4387
  a._tweenFunc(p);
4388
4388
  }, u, 0, 1, f * 1e3, c), this._addListeners(), zt.attrs[s] || (zt.attrs[s] = {}), zt.attrs[s][this._id] || (zt.attrs[s][this._id] = {}), zt.tweens[s] || (zt.tweens[s] = {});
4389
4389
  for (g in e)
4390
- V3[g] === void 0 && this._addAttr(g, e[g]);
4390
+ V5[g] === void 0 && this._addAttr(g, e[g]);
4391
4391
  this.reset(), this.onFinish = e.onFinish, this.onReset = e.onReset, this.onUpdate = e.onUpdate;
4392
4392
  }
4393
4393
  _addAttr(e, a) {
@@ -4617,7 +4617,7 @@ function e0(o, e) {
4617
4617
  }
4618
4618
  return l;
4619
4619
  }
4620
- function k3(o) {
4620
+ function k5(o) {
4621
4621
  const e = [
4622
4622
  [o[0], o[2], o[4], o[6]],
4623
4623
  [o[1], o[3], o[5], o[7]]
@@ -4706,7 +4706,7 @@ let vn = class extends w {
4706
4706
  ] : this.bezier() ? e = [
4707
4707
  e[0],
4708
4708
  e[1],
4709
- ...k3(this.points()),
4709
+ ...k5(this.points()),
4710
4710
  e[e.length - 2],
4711
4711
  e[e.length - 1]
4712
4712
  ] : e = this.points();
@@ -4727,8 +4727,8 @@ Xt(vn);
4727
4727
  C.addGetterSetter(vn, "closed", !1);
4728
4728
  C.addGetterSetter(vn, "bezier", !1);
4729
4729
  C.addGetterSetter(vn, "tension", 0, K());
4730
- C.addGetterSetter(vn, "points", [], u3());
4731
- const J3 = [
4730
+ C.addGetterSetter(vn, "points", [], u5());
4731
+ const J5 = [
4732
4732
  [],
4733
4733
  [],
4734
4734
  [
@@ -5076,7 +5076,7 @@ const J3 = [
5076
5076
  -0.9951872199970213,
5077
5077
  0.9951872199970213
5078
5078
  ]
5079
- ], P3 = [
5079
+ ], P5 = [
5080
5080
  [],
5081
5081
  [],
5082
5082
  [1, 1],
@@ -5421,12 +5421,12 @@ const J3 = [
5421
5421
  0.0123412297999872,
5422
5422
  0.0123412297999872
5423
5423
  ]
5424
- ], F3 = [[1], [1, 1], [1, 2, 1], [1, 3, 3, 1]], n0 = (o, e, a) => {
5424
+ ], F5 = [[1], [1, 1], [1, 2, 1], [1, 3, 3, 1]], n0 = (o, e, a) => {
5425
5425
  let l, s;
5426
5426
  const c = a / 2;
5427
5427
  l = 0;
5428
5428
  for (let f = 0; f < 20; f++)
5429
- s = c * J3[20][f] + c, l += P3[20][f] * W3(o, e, s);
5429
+ s = c * J5[20][f] + c, l += P5[20][f] * W5(o, e, s);
5430
5430
  return c * l;
5431
5431
  }, a0 = (o, e, a) => {
5432
5432
  a === void 0 && (a = 1);
@@ -5436,7 +5436,7 @@ const J3 = [
5436
5436
  const p = g / (2 * f), _ = m / f, v = a + p, b = _ - p * p, S = v * v + b > 0 ? Math.sqrt(v * v + b) : 0, R = p * p + b > 0 ? Math.sqrt(p * p + b) : 0, N = p + Math.sqrt(p * p + b) !== 0 ? b * Math.log(Math.abs((v + S) / (p + R))) : 0;
5437
5437
  return Math.sqrt(f) / 2 * (v * S - p * R + N);
5438
5438
  };
5439
- function W3(o, e, a) {
5439
+ function W5(o, e, a) {
5440
5440
  const l = xo(1, a, o), s = xo(1, a, e), u = l * l + s * s;
5441
5441
  return Math.sqrt(u);
5442
5442
  }
@@ -5448,7 +5448,7 @@ const xo = (o, e, a) => {
5448
5448
  if (o === 0) {
5449
5449
  u = 0;
5450
5450
  for (let c = 0; c <= l; c++)
5451
- u += F3[l][c] * Math.pow(1 - e, l - c) * Math.pow(e, c) * a[c];
5451
+ u += F5[l][c] * Math.pow(1 - e, l - c) * Math.pow(e, c) * a[c];
5452
5452
  return u;
5453
5453
  } else {
5454
5454
  s = new Array(l);
@@ -6027,7 +6027,7 @@ const Z0 = [
6027
6027
  "pointerDirection",
6028
6028
  "pointerWidth",
6029
6029
  "pointerHeight"
6030
- ], I3 = "Change.konva", $3 = "none", To = "up", Ao = "right", Mo = "down", No = "left", t5 = Z0.length;
6030
+ ], I5 = "Change.konva", $5 = "none", To = "up", Ao = "right", Mo = "down", No = "left", t3 = Z0.length;
6031
6031
  class Xo extends Fa {
6032
6032
  constructor(e) {
6033
6033
  super(e), this.on("add.konva", function(a) {
@@ -6045,8 +6045,8 @@ class Xo extends Fa {
6045
6045
  const s = function() {
6046
6046
  a._sync();
6047
6047
  };
6048
- for (l = 0; l < t5; l++)
6049
- e.on(Z0[l] + I3, s);
6048
+ for (l = 0; l < t3; l++)
6049
+ e.on(Z0[l] + I5, s);
6050
6050
  }
6051
6051
  getWidth() {
6052
6052
  return this.getText().width();
@@ -6103,7 +6103,7 @@ class ya extends w {
6103
6103
  }
6104
6104
  ya.prototype.className = "Tag";
6105
6105
  Xt(ya);
6106
- C.addGetterSetter(ya, "pointerDirection", $3);
6106
+ C.addGetterSetter(ya, "pointerDirection", $5);
6107
6107
  C.addGetterSetter(ya, "pointerWidth", 0, K());
6108
6108
  C.addGetterSetter(ya, "pointerHeight", 0, K());
6109
6109
  C.addGetterSetter(ya, "cornerRadius", 0, vs(4));
@@ -6302,7 +6302,7 @@ function Yn(o) {
6302
6302
  return e;
6303
6303
  }, []);
6304
6304
  }
6305
- const ka = "auto", e5 = "center", k0 = "inherit", Bi = "justify", n5 = "Change.konva", J0 = "2d", s0 = "-", P0 = "left", a5 = "text", i5 = "Text", l5 = "top", s5 = "bottom", r0 = "middle", F0 = "normal", r5 = "px ", us = " ", o5 = "right", o0 = "rtl", u5 = "word", c5 = "char", u0 = "none", uo = "…", W0 = [
6305
+ const ka = "auto", e3 = "center", k0 = "inherit", Bi = "justify", n3 = "Change.konva", J0 = "2d", s0 = "-", P0 = "left", a3 = "text", i3 = "Text", l3 = "top", s3 = "bottom", r0 = "middle", F0 = "normal", r3 = "px ", us = " ", o3 = "right", o0 = "rtl", u3 = "word", c3 = "char", u0 = "none", uo = "…", W0 = [
6306
6306
  "direction",
6307
6307
  "fontFamily",
6308
6308
  "fontSize",
@@ -6318,9 +6318,9 @@ const ka = "auto", e5 = "center", k0 = "inherit", Bi = "justify", n5 = "Change.k
6318
6318
  "wrap",
6319
6319
  "ellipsis",
6320
6320
  "letterSpacing"
6321
- ], h5 = W0.length;
6321
+ ], h3 = W0.length;
6322
6322
  let Ui = null;
6323
- function f5() {
6323
+ function f3() {
6324
6324
  if (Ui !== null)
6325
6325
  return Ui;
6326
6326
  Ui = !1;
@@ -6341,7 +6341,7 @@ function f5() {
6341
6341
  }
6342
6342
  return Ui;
6343
6343
  }
6344
- function d5(o) {
6344
+ function d3(o) {
6345
6345
  return o.split(",").map((e) => {
6346
6346
  e = e.trim();
6347
6347
  const a = e.indexOf(" ") >= 0, l = e.indexOf('"') >= 0 || e.indexOf("'") >= 0;
@@ -6352,20 +6352,20 @@ let cs;
6352
6352
  function co() {
6353
6353
  return cs || (cs = T.createCanvasElement().getContext(J0), cs);
6354
6354
  }
6355
- function g5(o) {
6355
+ function g3(o) {
6356
6356
  o.fillText(this._partialText, this._partialTextX, this._partialTextY);
6357
6357
  }
6358
- function m5(o) {
6358
+ function m3(o) {
6359
6359
  o.setAttr("miterLimit", 2), o.strokeText(this._partialText, this._partialTextX, this._partialTextY);
6360
6360
  }
6361
- function p5(o) {
6361
+ function p3(o) {
6362
6362
  return o = o || {}, !o.fillLinearGradientColorStops && !o.fillRadialGradientColorStops && !o.fillPatternImage && (o.fill = o.fill || "black"), o;
6363
6363
  }
6364
6364
  let Ht = class extends w {
6365
6365
  constructor(e) {
6366
- super(p5(e)), this._partialTextX = 0, this._partialTextY = 0;
6367
- for (let a = 0; a < h5; a++)
6368
- this.on(W0[a] + n5, this._setTextData);
6366
+ super(p3(e)), this._partialTextX = 0, this._partialTextY = 0;
6367
+ for (let a = 0; a < h3; a++)
6368
+ this.on(W0[a] + n3, this._setTextData);
6369
6369
  this._setTextData();
6370
6370
  }
6371
6371
  _sceneFunc(e) {
@@ -6382,10 +6382,10 @@ let Ht = class extends w {
6382
6382
  const tt = (a = Y.fontBoundingBoxAscent) !== null && a !== void 0 ? a : Y.actualBoundingBoxAscent, at = (l = Y.fontBoundingBoxDescent) !== null && l !== void 0 ? l : Y.actualBoundingBoxDescent;
6383
6383
  B = (tt - at) / 2 + g / 2;
6384
6384
  }
6385
- for (p === o0 && e.setAttr("direction", p), e.setAttr("font", this._getContextFont()), e.setAttr("textBaseline", J), e.setAttr("textAlign", P0), m === r0 ? _ = (this.getHeight() - u * g - c * 2) / 2 : m === s5 && (_ = this.getHeight() - u * g - c * 2), e.translate(c, _ + c), U = 0; U < u; U++) {
6385
+ for (p === o0 && e.setAttr("direction", p), e.setAttr("font", this._getContextFont()), e.setAttr("textBaseline", J), e.setAttr("textAlign", P0), m === r0 ? _ = (this.getHeight() - u * g - c * 2) / 2 : m === s3 && (_ = this.getHeight() - u * g - c * 2), e.translate(c, _ + c), U = 0; U < u; U++) {
6386
6386
  let Y = 0, tt = 0;
6387
6387
  const at = s[U], X = at.text, q = at.width, $ = at.lastInParagraph;
6388
- if (e.save(), v === o5 ? Y += b - q - c * 2 : v === e5 && (Y += (b - q - c * 2) / 2), O) {
6388
+ if (e.save(), v === o3 ? Y += b - q - c * 2 : v === e3 && (Y += (b - q - c * 2) / 2), O) {
6389
6389
  e.save(), e.beginPath();
6390
6390
  const W = x ?? (k.legacyTextRendering ? Math.round(f / 2) : Math.round(f / 4)), P = Y, ht = B + tt + W;
6391
6391
  e.moveTo(P, ht);
@@ -6436,7 +6436,7 @@ let Ht = class extends w {
6436
6436
  }
6437
6437
  setText(e) {
6438
6438
  const a = T._isString(e) ? e : e == null ? "" : e + "";
6439
- return this._setAttr(a5, a), this;
6439
+ return this._setAttr(a3, a), this;
6440
6440
  }
6441
6441
  getWidth() {
6442
6442
  return this.attrs.width === ka || this.attrs.width === void 0 ? this.getTextWidth() + this.padding() * 2 : this.attrs.width;
@@ -6472,7 +6472,7 @@ let Ht = class extends w {
6472
6472
  };
6473
6473
  }
6474
6474
  _getContextFont() {
6475
- return this.fontStyle() + us + this.fontVariant() + us + (this.fontSize() + r5) + d5(this.fontFamily());
6475
+ return this.fontStyle() + us + this.fontVariant() + us + (this.fontSize() + r3) + d3(this.fontFamily());
6476
6476
  }
6477
6477
  _addTextLine(e) {
6478
6478
  this.align() === Bi && (e = e.trim());
@@ -6489,7 +6489,7 @@ let Ht = class extends w {
6489
6489
  }
6490
6490
  _setTextData() {
6491
6491
  let e = this.text().split(`
6492
- `), a = +this.fontSize(), l = 0, s = this.lineHeight() * a, u = this.attrs.width, c = this.attrs.height, f = u !== ka && u !== void 0, g = c !== ka && c !== void 0, m = this.padding(), p = u - m * 2, _ = c - m * 2, v = 0, b = this.wrap(), S = b !== u0, R = b !== c5 && S, N = this.ellipsis();
6492
+ `), a = +this.fontSize(), l = 0, s = this.lineHeight() * a, u = this.attrs.width, c = this.attrs.height, f = u !== ka && u !== void 0, g = c !== ka && c !== void 0, m = this.padding(), p = u - m * 2, _ = c - m * 2, v = 0, b = this.wrap(), S = b !== u0, R = b !== c3 && S, N = this.ellipsis();
6493
6493
  this.textArr = [], co().font = this._getContextFont();
6494
6494
  const M = N ? this._getTextWidth(uo) : 0;
6495
6495
  for (let x = 0, O = e.length; x < O; ++x) {
@@ -6544,12 +6544,12 @@ let Ht = class extends w {
6544
6544
  }
6545
6545
  _useBufferCanvas() {
6546
6546
  const e = this.textDecoration().indexOf("underline") !== -1 || this.textDecoration().indexOf("line-through") !== -1, a = this.hasShadow();
6547
- return e && a || a && this.getAbsoluteOpacity() !== 1 && f5() ? !0 : super._useBufferCanvas();
6547
+ return e && a || a && this.getAbsoluteOpacity() !== 1 && f3() ? !0 : super._useBufferCanvas();
6548
6548
  }
6549
6549
  };
6550
- Ht.prototype._fillFunc = g5;
6551
- Ht.prototype._strokeFunc = m5;
6552
- Ht.prototype.className = i5;
6550
+ Ht.prototype._fillFunc = g3;
6551
+ Ht.prototype._strokeFunc = m3;
6552
+ Ht.prototype.className = i3;
6553
6553
  Ht.prototype._attrsAffectingSize = [
6554
6554
  "text",
6555
6555
  "fontSize",
@@ -6568,16 +6568,16 @@ C.addGetterSetter(Ht, "fontStyle", F0);
6568
6568
  C.addGetterSetter(Ht, "fontVariant", F0);
6569
6569
  C.addGetterSetter(Ht, "padding", 0, K());
6570
6570
  C.addGetterSetter(Ht, "align", P0);
6571
- C.addGetterSetter(Ht, "verticalAlign", l5);
6571
+ C.addGetterSetter(Ht, "verticalAlign", l3);
6572
6572
  C.addGetterSetter(Ht, "lineHeight", 1, K());
6573
- C.addGetterSetter(Ht, "wrap", u5);
6573
+ C.addGetterSetter(Ht, "wrap", u3);
6574
6574
  C.addGetterSetter(Ht, "ellipsis", !1, Je());
6575
6575
  C.addGetterSetter(Ht, "letterSpacing", 0, K());
6576
6576
  C.addGetterSetter(Ht, "text", "", ga());
6577
6577
  C.addGetterSetter(Ht, "textDecoration", "");
6578
6578
  C.addGetterSetter(Ht, "underlineOffset", void 0, K());
6579
6579
  C.addGetterSetter(Ht, "charRenderFunc", void 0);
6580
- const y5 = "", I0 = "normal";
6580
+ const y3 = "", I0 = "normal";
6581
6581
  function $0(o) {
6582
6582
  o.fillText(this.partialText, 0, 0);
6583
6583
  }
@@ -6749,11 +6749,11 @@ C.addGetterSetter(Ft, "align", "left");
6749
6749
  C.addGetterSetter(Ft, "letterSpacing", 0, K());
6750
6750
  C.addGetterSetter(Ft, "textBaseline", "middle");
6751
6751
  C.addGetterSetter(Ft, "fontVariant", I0);
6752
- C.addGetterSetter(Ft, "text", y5);
6752
+ C.addGetterSetter(Ft, "text", y3);
6753
6753
  C.addGetterSetter(Ft, "textDecoration", "");
6754
6754
  C.addGetterSetter(Ft, "kerningFunc", void 0);
6755
6755
  C.addGetterSetter(Ft, "direction", "inherit");
6756
- const ef = "tr-konva", v5 = [
6756
+ const ef = "tr-konva", v3 = [
6757
6757
  "resizeEnabledChange",
6758
6758
  "rotateAnchorOffsetChange",
6759
6759
  "rotateAnchorAngleChange",
@@ -6770,7 +6770,7 @@ const ef = "tr-konva", v5 = [
6770
6770
  "anchorCornerRadiusChange",
6771
6771
  "ignoreStrokeChange",
6772
6772
  "anchorStyleFuncChange"
6773
- ].map((o) => o + `.${ef}`).join(" "), c0 = "nodesRect", _5 = [
6773
+ ].map((o) => o + `.${ef}`).join(" "), c0 = "nodesRect", _3 = [
6774
6774
  "widthChange",
6775
6775
  "heightChange",
6776
6776
  "scaleXChange",
@@ -6783,7 +6783,7 @@ const ef = "tr-konva", v5 = [
6783
6783
  "transformsEnabledChange",
6784
6784
  "strokeWidthChange",
6785
6785
  "draggableChange"
6786
- ], S5 = {
6786
+ ], S3 = {
6787
6787
  "top-left": -45,
6788
6788
  "top-center": 0,
6789
6789
  "top-right": 45,
@@ -6792,11 +6792,11 @@ const ef = "tr-konva", v5 = [
6792
6792
  "bottom-left": -135,
6793
6793
  "bottom-center": 180,
6794
6794
  "bottom-right": 135
6795
- }, b5 = "ontouchstart" in k._global;
6796
- function C5(o, e, a) {
6795
+ }, b3 = "ontouchstart" in k._global;
6796
+ function C3(o, e, a) {
6797
6797
  if (o === "rotater")
6798
6798
  return a;
6799
- e += T.degToRad(S5[o] || 0);
6799
+ e += T.degToRad(S3[o] || 0);
6800
6800
  const l = (T.radToDeg(e) % 360 + 360) % 360;
6801
6801
  return T._inRange(l, 315 + 22.5, 360) || T._inRange(l, 0, 22.5) ? "ns-resize" : T._inRange(l, 45 - 22.5, 45 + 22.5) ? "nesw-resize" : T._inRange(l, 90 - 22.5, 90 + 22.5) ? "ew-resize" : T._inRange(l, 135 - 22.5, 135 + 22.5) ? "nwse-resize" : T._inRange(l, 180 - 22.5, 180 + 22.5) ? "ns-resize" : T._inRange(l, 225 - 22.5, 225 + 22.5) ? "nesw-resize" : T._inRange(l, 270 - 22.5, 270 + 22.5) ? "ew-resize" : T._inRange(l, 315 - 22.5, 315 + 22.5) ? "nwse-resize" : (T.error("Transformer has unknown angle for cursor detection: " + l), "pointer");
6802
6802
  }
@@ -6810,7 +6810,7 @@ const ms = [
6810
6810
  "bottom-center",
6811
6811
  "bottom-right"
6812
6812
  ];
6813
- function E5(o) {
6813
+ function E3(o) {
6814
6814
  return {
6815
6815
  x: o.x + o.width / 2 * Math.cos(o.rotation) + o.height / 2 * Math.sin(-o.rotation),
6816
6816
  y: o.y + o.height / 2 * Math.cos(o.rotation) + o.width / 2 * Math.sin(o.rotation)
@@ -6825,11 +6825,11 @@ function nf(o, e, a) {
6825
6825
  y: s
6826
6826
  };
6827
6827
  }
6828
- function x5(o, e) {
6829
- const a = E5(o);
6828
+ function x3(o, e) {
6829
+ const a = E3(o);
6830
6830
  return nf(o, e, a);
6831
6831
  }
6832
- function T5(o, e, a) {
6832
+ function T3(o, e, a) {
6833
6833
  let l = e;
6834
6834
  for (let s = 0; s < o.length; s++) {
6835
6835
  const u = k.getAngle(o[s]), c = Math.abs(u - e) % (Math.PI * 2);
@@ -6840,7 +6840,7 @@ function T5(o, e, a) {
6840
6840
  let Ro = 0;
6841
6841
  class pt extends Fa {
6842
6842
  constructor(e) {
6843
- super(e), this._movingAnchorName = null, this._transforming = !1, this._elementsCreated = !1, this._createElements(), this._handleMouseMove = this._handleMouseMove.bind(this), this._handleMouseUp = this._handleMouseUp.bind(this), this.update = this.update.bind(this), this.on(v5, this.update), this.getNode() && this.update();
6843
+ super(e), this._movingAnchorName = null, this._transforming = !1, this._elementsCreated = !1, this._createElements(), this._handleMouseMove = this._handleMouseMove.bind(this), this._handleMouseUp = this._handleMouseUp.bind(this), this.update = this.update.bind(this), this.on(v3, this.update), this.getNode() && this.update();
6844
6844
  }
6845
6845
  attachTo(e) {
6846
6846
  return this.setNode(e), this;
@@ -6865,7 +6865,7 @@ class pt extends Fa {
6865
6865
  const c = s._attrsAffectingSize.map((f) => f + "Change." + this._getEventNamespace()).join(" ");
6866
6866
  s.on(c, u);
6867
6867
  }
6868
- s.on(_5.map((c) => c + `.${this._getEventNamespace()}`).join(" "), u), s.on(`absoluteTransformChange.${this._getEventNamespace()}`, u), this._proxyDrag(s);
6868
+ s.on(_3.map((c) => c + `.${this._getEventNamespace()}`).join(" "), u), s.on(`absoluteTransformChange.${this._getEventNamespace()}`, u), this._proxyDrag(s);
6869
6869
  }), this._resetTransformCache(), !!this.findOne(".top-left") && this.update(), this;
6870
6870
  }
6871
6871
  _proxyDrag(e) {
@@ -6988,7 +6988,7 @@ class pt extends Fa {
6988
6988
  name: e + " _anchor",
6989
6989
  dragDistance: 0,
6990
6990
  draggable: !0,
6991
- hitStrokeWidth: b5 ? 10 : "auto"
6991
+ hitStrokeWidth: b3 ? 10 : "auto"
6992
6992
  }), l = this;
6993
6993
  a.on("mousedown touchstart", function(s) {
6994
6994
  l._handleMouseDown(s);
@@ -6997,7 +6997,7 @@ class pt extends Fa {
6997
6997
  }), a.on("dragend", (s) => {
6998
6998
  s.cancelBubble = !0;
6999
6999
  }), a.on("mouseenter", () => {
7000
- const s = k.getAngle(this.rotation()), u = this.rotateAnchorCursor(), c = C5(e, s, u);
7000
+ const s = k.getAngle(this.rotation()), u = this.rotateAnchorCursor(), c = C3(e, s, u);
7001
7001
  a.getStage().content && (a.getStage().content.style.cursor = c), this._cursorChange = !0;
7002
7002
  }), a.on("mouseout", () => {
7003
7003
  a.getStage().content && (a.getStage().content.style.cursor = ""), this._cursorChange = !1;
@@ -7070,7 +7070,7 @@ class pt extends Fa {
7070
7070
  const O = k.getAngle(this.rotateAnchorAngle());
7071
7071
  let H = Math.atan2(-l, a) + Math.PI / 2 - O;
7072
7072
  x.height < 0 && (H -= Math.PI);
7073
- const B = k.getAngle(this.rotation()) + H, J = k.getAngle(this.rotationSnapTolerance()), tt = T5(this.rotationSnaps(), B, J) - x.rotation, at = x5(x, tt);
7073
+ const B = k.getAngle(this.rotation()) + H, J = k.getAngle(this.rotationSnapTolerance()), tt = T3(this.rotationSnaps(), B, J) - x.rotation, at = x3(x, tt);
7074
7074
  this._fitNodesInto(at, e);
7075
7075
  return;
7076
7076
  }
@@ -7359,14 +7359,14 @@ class pt extends Fa {
7359
7359
  }
7360
7360
  }
7361
7361
  pt.isTransforming = () => Ro > 0;
7362
- function A5(o) {
7362
+ function A3(o) {
7363
7363
  return o instanceof Array || T.warn("enabledAnchors value should be an array"), o instanceof Array && o.forEach(function(e) {
7364
7364
  ms.indexOf(e) === -1 && T.warn("Unknown anchor name: " + e + ". Available names are: " + ms.join(", "));
7365
7365
  }), o || [];
7366
7366
  }
7367
7367
  pt.prototype.className = "Transformer";
7368
7368
  Xt(pt);
7369
- C.addGetterSetter(pt, "enabledAnchors", ms, A5);
7369
+ C.addGetterSetter(pt, "enabledAnchors", ms, A3);
7370
7370
  C.addGetterSetter(pt, "flipEnabled", !0, Je());
7371
7371
  C.addGetterSetter(pt, "resizeEnabled", !0);
7372
7372
  C.addGetterSetter(pt, "anchorSize", 10, K());
@@ -7434,7 +7434,7 @@ C.backCompat(_n, {
7434
7434
  function h0() {
7435
7435
  this.r = 0, this.g = 0, this.b = 0, this.a = 0, this.next = null;
7436
7436
  }
7437
- const M5 = [
7437
+ const M3 = [
7438
7438
  512,
7439
7439
  512,
7440
7440
  456,
@@ -7690,7 +7690,7 @@ const M5 = [
7690
7690
  263,
7691
7691
  261,
7692
7692
  259
7693
- ], N5 = [
7693
+ ], N3 = [
7694
7694
  9,
7695
7695
  11,
7696
7696
  12,
@@ -7947,10 +7947,10 @@ const M5 = [
7947
7947
  24,
7948
7948
  24
7949
7949
  ];
7950
- function R5(o, e) {
7950
+ function R3(o, e) {
7951
7951
  const a = o.data, l = o.width, s = o.height;
7952
7952
  let u, c, f, g, m, p, _, v, b, S, R, N, M, x, O, H, U, B, J, Y;
7953
- const tt = e + e + 1, at = l - 1, X = s - 1, q = e + 1, $ = q * (q + 1) / 2, et = new h0(), W = M5[e], P = N5[e];
7953
+ const tt = e + e + 1, at = l - 1, X = s - 1, q = e + 1, $ = q * (q + 1) / 2, et = new h0(), W = M3[e], P = N3[e];
7954
7954
  let ht = null, nt = et, rt = null, vt = null;
7955
7955
  for (let _t = 1; _t < tt; _t++)
7956
7956
  nt = nt.next = new h0(), _t === q && (ht = nt);
@@ -7978,29 +7978,29 @@ function R5(o, e) {
7978
7978
  u = c << 2, a[u + 3] = J = _ * W >> P, J > 0 ? (J = 255 / J, a[u] = (g * W >> P) * J, a[u + 1] = (m * W >> P) * J, a[u + 2] = (p * W >> P) * J) : a[u] = a[u + 1] = a[u + 2] = 0, g -= v, m -= b, p -= S, _ -= R, v -= rt.r, b -= rt.g, S -= rt.b, R -= rt.a, u = _t + ((u = Wt + q) < X ? u : X) * l << 2, g += N += rt.r = a[u], m += M += rt.g = a[u + 1], p += x += rt.b = a[u + 2], _ += O += rt.a = a[u + 3], rt = rt.next, v += H = vt.r, b += U = vt.g, S += B = vt.b, R += J = vt.a, N -= H, M -= U, x -= B, O -= J, vt = vt.next, c += l;
7979
7979
  }
7980
7980
  }
7981
- const D5 = function(e) {
7981
+ const D3 = function(e) {
7982
7982
  const a = Math.round(this.blurRadius());
7983
- a > 0 && R5(e, a);
7983
+ a > 0 && R3(e, a);
7984
7984
  };
7985
7985
  C.addGetterSetter(Q, "blurRadius", 0, K(), C.afterSetFilter);
7986
- const O5 = function(o) {
7986
+ const O3 = function(o) {
7987
7987
  const e = this.brightness() * 255, a = o.data, l = a.length;
7988
7988
  for (let s = 0; s < l; s += 4)
7989
7989
  a[s] += e, a[s + 1] += e, a[s + 2] += e;
7990
7990
  };
7991
7991
  C.addGetterSetter(Q, "brightness", 0, K(), C.afterSetFilter);
7992
- const z5 = function(o) {
7992
+ const z3 = function(o) {
7993
7993
  const e = this.brightness(), a = o.data, l = a.length;
7994
7994
  for (let s = 0; s < l; s += 4)
7995
7995
  a[s] = Math.min(255, a[s] * e), a[s + 1] = Math.min(255, a[s + 1] * e), a[s + 2] = Math.min(255, a[s + 2] * e);
7996
- }, G5 = function(o) {
7996
+ }, G3 = function(o) {
7997
7997
  const e = Math.pow((this.contrast() + 100) / 100, 2), a = o.data, l = a.length;
7998
7998
  let s = 150, u = 150, c = 150;
7999
7999
  for (let f = 0; f < l; f += 4)
8000
8000
  s = a[f], u = a[f + 1], c = a[f + 2], s /= 255, s -= 0.5, s *= e, s += 0.5, s *= 255, u /= 255, u -= 0.5, u *= e, u += 0.5, u *= 255, c /= 255, c -= 0.5, c *= e, c += 0.5, c *= 255, s = s < 0 ? 0 : s > 255 ? 255 : s, u = u < 0 ? 0 : u > 255 ? 255 : u, c = c < 0 ? 0 : c > 255 ? 255 : c, a[f] = s, a[f + 1] = u, a[f + 2] = c;
8001
8001
  };
8002
8002
  C.addGetterSetter(Q, "contrast", 0, K(), C.afterSetFilter);
8003
- const H5 = function(o) {
8003
+ const H3 = function(o) {
8004
8004
  var e, a, l, s, u, c, f, g, m;
8005
8005
  const p = o.data, _ = o.width, v = o.height, b = Math.min(1, Math.max(0, (a = (e = this.embossStrength) === null || e === void 0 ? void 0 : e.call(this)) !== null && a !== void 0 ? a : 0.5)), S = Math.min(1, Math.max(0, (s = (l = this.embossWhiteLevel) === null || l === void 0 ? void 0 : l.call(this)) !== null && s !== void 0 ? s : 0.5)), N = (f = {
8006
8006
  "top-left": 315,
@@ -8050,7 +8050,7 @@ function ho(o, e, a, l, s) {
8050
8050
  let f = (o - e) / u;
8051
8051
  return f = c * f + l, f;
8052
8052
  }
8053
- const B5 = function(o) {
8053
+ const B3 = function(o) {
8054
8054
  const e = o.data, a = e.length;
8055
8055
  let l = e[0], s = l, u, c = e[1], f = c, g, m = e[2], p = m, _;
8056
8056
  const v = this.enhance();
@@ -8074,7 +8074,7 @@ const B5 = function(o) {
8074
8074
  e[O + 0] = ho(e[O + 0], l, s, S, b), e[O + 1] = ho(e[O + 1], c, f, N, R), e[O + 2] = ho(e[O + 2], m, p, x, M);
8075
8075
  };
8076
8076
  C.addGetterSetter(Q, "enhance", 0, K(), C.afterSetFilter);
8077
- const U5 = function(o) {
8077
+ const U3 = function(o) {
8078
8078
  const e = o.data, a = e.length;
8079
8079
  for (let l = 0; l < a; l += 4) {
8080
8080
  const s = 0.34 * e[l] + 0.5 * e[l + 1] + 0.16 * e[l + 2];
@@ -8084,12 +8084,12 @@ const U5 = function(o) {
8084
8084
  C.addGetterSetter(Q, "hue", 0, K(), C.afterSetFilter);
8085
8085
  C.addGetterSetter(Q, "saturation", 0, K(), C.afterSetFilter);
8086
8086
  C.addGetterSetter(Q, "luminance", 0, K(), C.afterSetFilter);
8087
- const L5 = function(o) {
8087
+ const L3 = function(o) {
8088
8088
  const e = o.data, a = e.length, l = 1, s = Math.pow(2, this.saturation()), u = Math.abs(this.hue() + 360) % 360, c = this.luminance() * 127, f = l * s * Math.cos(u * Math.PI / 180), g = l * s * Math.sin(u * Math.PI / 180), m = 0.299 * l + 0.701 * f + 0.167 * g, p = 0.587 * l - 0.587 * f + 0.33 * g, _ = 0.114 * l - 0.114 * f - 0.497 * g, v = 0.299 * l - 0.299 * f - 0.328 * g, b = 0.587 * l + 0.413 * f + 0.035 * g, S = 0.114 * l - 0.114 * f + 0.293 * g, R = 0.299 * l - 0.3 * f + 1.25 * g, N = 0.587 * l - 0.586 * f - 1.05 * g, M = 0.114 * l + 0.886 * f - 0.2 * g;
8089
8089
  let x, O, H, U;
8090
8090
  for (let B = 0; B < a; B += 4)
8091
8091
  x = e[B + 0], O = e[B + 1], H = e[B + 2], U = e[B + 3], e[B + 0] = m * x + p * O + _ * H + c, e[B + 1] = v * x + b * O + S * H + c, e[B + 2] = R * x + N * O + M * H + c, e[B + 3] = U;
8092
- }, Y5 = function(o) {
8092
+ }, Y3 = function(o) {
8093
8093
  const e = o.data, a = e.length, l = Math.pow(2, this.value()), s = Math.pow(2, this.saturation()), u = Math.abs(this.hue() + 360) % 360, c = l * s * Math.cos(u * Math.PI / 180), f = l * s * Math.sin(u * Math.PI / 180), g = 0.299 * l + 0.701 * c + 0.167 * f, m = 0.587 * l - 0.587 * c + 0.33 * f, p = 0.114 * l - 0.114 * c - 0.497 * f, _ = 0.299 * l - 0.299 * c - 0.328 * f, v = 0.587 * l + 0.413 * c + 0.035 * f, b = 0.114 * l - 0.114 * c + 0.293 * f, S = 0.299 * l - 0.3 * c + 1.25 * f, R = 0.587 * l - 0.586 * c - 1.05 * f, N = 0.114 * l + 0.886 * c - 0.2 * f;
8094
8094
  for (let M = 0; M < a; M += 4) {
8095
8095
  const x = e[M + 0], O = e[M + 1], H = e[M + 2], U = e[M + 3];
@@ -8099,11 +8099,11 @@ const L5 = function(o) {
8099
8099
  C.addGetterSetter(Q, "hue", 0, K(), C.afterSetFilter);
8100
8100
  C.addGetterSetter(Q, "saturation", 0, K(), C.afterSetFilter);
8101
8101
  C.addGetterSetter(Q, "value", 0, K(), C.afterSetFilter);
8102
- const w5 = function(o) {
8102
+ const w3 = function(o) {
8103
8103
  const e = o.data, a = e.length;
8104
8104
  for (let l = 0; l < a; l += 4)
8105
8105
  e[l] = 255 - e[l], e[l + 1] = 255 - e[l + 1], e[l + 2] = 255 - e[l + 2];
8106
- }, X5 = function(o, e, a) {
8106
+ }, X3 = function(o, e, a) {
8107
8107
  const l = o.data, s = e.data, u = o.width, c = o.height, f = a.polarCenterX || u / 2, g = a.polarCenterY || c / 2;
8108
8108
  let m = Math.sqrt(f * f + g * g), p = u - f, _ = c - g;
8109
8109
  const v = Math.sqrt(p * p + _ * _);
@@ -8118,7 +8118,7 @@ const w5 = function(o) {
8118
8118
  H = (N + O * u) * 4, s[H + 0] = U, s[H + 1] = B, s[H + 2] = J, s[H + 3] = Y;
8119
8119
  }
8120
8120
  }
8121
- }, q5 = function(o, e, a) {
8121
+ }, q3 = function(o, e, a) {
8122
8122
  const l = o.data, s = e.data, u = o.width, c = o.height, f = a.polarCenterX || u / 2, g = a.polarCenterY || c / 2;
8123
8123
  let m = Math.sqrt(f * f + g * g), p = u - f, _ = c - g;
8124
8124
  const v = Math.sqrt(p * p + _ * _);
@@ -8134,7 +8134,7 @@ const w5 = function(o) {
8134
8134
  const J = l[B + 0], Y = l[B + 1], tt = l[B + 2], at = l[B + 3];
8135
8135
  B = (_ * u + p) * 4, s[B + 0] = J, s[B + 1] = Y, s[B + 2] = tt, s[B + 3] = at;
8136
8136
  }
8137
- }, j5 = function(o) {
8137
+ }, j3 = function(o) {
8138
8138
  const e = o.width, a = o.height;
8139
8139
  let l, s, u, c, f, g, m, p, _, v, b = Math.round(this.kaleidoscopePower());
8140
8140
  const S = Math.round(this.kaleidoscopeAngle()), R = Math.floor(e * (S % 360) / 360);
@@ -8143,7 +8143,7 @@ const w5 = function(o) {
8143
8143
  const N = T.createCanvasElement();
8144
8144
  N.width = e, N.height = a;
8145
8145
  const M = N.getContext("2d").getImageData(0, 0, e, a);
8146
- T.releaseCanvas(N), X5(o, M, {
8146
+ T.releaseCanvas(N), X3(o, M, {
8147
8147
  polarCenterX: e / 2,
8148
8148
  polarCenterY: a / 2
8149
8149
  });
@@ -8161,7 +8161,7 @@ const w5 = function(o) {
8161
8161
  _ = (e * s + l) * 4, f = M.data[_ + 0], g = M.data[_ + 1], m = M.data[_ + 2], p = M.data[_ + 3], v = (e * s + O * 2 - l - 1) * 4, M.data[v + 0] = f, M.data[v + 1] = g, M.data[v + 2] = m, M.data[v + 3] = p;
8162
8162
  O *= 2;
8163
8163
  }
8164
- q5(M, o, {});
8164
+ q3(M, o, {});
8165
8165
  };
8166
8166
  C.addGetterSetter(Q, "kaleidoscopePower", 2, K(), C.afterSetFilter);
8167
8167
  C.addGetterSetter(Q, "kaleidoscopeAngle", 0, K(), C.afterSetFilter);
@@ -8173,16 +8173,16 @@ function hs(o, e, a) {
8173
8173
  function Li(o, e) {
8174
8174
  return Math.sqrt(Math.pow(o[0] - e[0], 2) + Math.pow(o[1] - e[1], 2) + Math.pow(o[2] - e[2], 2));
8175
8175
  }
8176
- function V5(o) {
8176
+ function V3(o) {
8177
8177
  const e = [0, 0, 0];
8178
8178
  for (let a = 0; a < o.length; a++)
8179
8179
  e[0] += o[a][0], e[1] += o[a][1], e[2] += o[a][2];
8180
8180
  return e[0] /= o.length, e[1] /= o.length, e[2] /= o.length, e;
8181
8181
  }
8182
- function K5(o, e) {
8182
+ function K3(o, e) {
8183
8183
  const a = hs(o, 0, 0), l = hs(o, o.width - 1, 0), s = hs(o, 0, o.height - 1), u = hs(o, o.width - 1, o.height - 1), c = e || 10;
8184
8184
  if (Li(a, l) < c && Li(l, u) < c && Li(u, s) < c && Li(s, a) < c) {
8185
- const f = V5([l, a, u, s]), g = [];
8185
+ const f = V3([l, a, u, s]), g = [];
8186
8186
  for (let m = 0; m < o.width * o.height; m++) {
8187
8187
  const p = Li(f, [
8188
8188
  o.data[m * 4],
@@ -8194,11 +8194,11 @@ function K5(o, e) {
8194
8194
  return g;
8195
8195
  }
8196
8196
  }
8197
- function Q5(o, e) {
8197
+ function Q3(o, e) {
8198
8198
  for (let a = 0; a < o.width * o.height; a++)
8199
8199
  o.data[4 * a + 3] = e[a];
8200
8200
  }
8201
- function Z5(o, e, a) {
8201
+ function Z3(o, e, a) {
8202
8202
  const l = [1, 1, 1, 1, 0, 1, 1, 1, 1], s = Math.round(Math.sqrt(l.length)), u = Math.floor(s / 2), c = [];
8203
8203
  for (let f = 0; f < a; f++)
8204
8204
  for (let g = 0; g < e; g++) {
@@ -8216,7 +8216,7 @@ function Z5(o, e, a) {
8216
8216
  }
8217
8217
  return c;
8218
8218
  }
8219
- function k5(o, e, a) {
8219
+ function k3(o, e, a) {
8220
8220
  const l = [1, 1, 1, 1, 1, 1, 1, 1, 1], s = Math.round(Math.sqrt(l.length)), u = Math.floor(s / 2), c = [];
8221
8221
  for (let f = 0; f < a; f++)
8222
8222
  for (let g = 0; g < e; g++) {
@@ -8234,7 +8234,7 @@ function k5(o, e, a) {
8234
8234
  }
8235
8235
  return c;
8236
8236
  }
8237
- function J5(o, e, a) {
8237
+ function J3(o, e, a) {
8238
8238
  const l = [
8239
8239
  0.1111111111111111,
8240
8240
  0.1111111111111111,
@@ -8262,19 +8262,19 @@ function J5(o, e, a) {
8262
8262
  }
8263
8263
  return c;
8264
8264
  }
8265
- const P5 = function(o) {
8265
+ const P3 = function(o) {
8266
8266
  const e = this.threshold();
8267
- let a = K5(o, e);
8268
- return a && (a = Z5(a, o.width, o.height), a = k5(a, o.width, o.height), a = J5(a, o.width, o.height), Q5(o, a)), o;
8267
+ let a = K3(o, e);
8268
+ return a && (a = Z3(a, o.width, o.height), a = k3(a, o.width, o.height), a = J3(a, o.width, o.height), Q3(o, a)), o;
8269
8269
  };
8270
8270
  C.addGetterSetter(Q, "threshold", 0, K(), C.afterSetFilter);
8271
- const F5 = function(o) {
8271
+ const F3 = function(o) {
8272
8272
  const e = this.noise() * 255, a = o.data, l = a.length, s = e / 2;
8273
8273
  for (let u = 0; u < l; u += 4)
8274
8274
  a[u + 0] += s - 2 * s * Math.random(), a[u + 1] += s - 2 * s * Math.random(), a[u + 2] += s - 2 * s * Math.random();
8275
8275
  };
8276
8276
  C.addGetterSetter(Q, "noise", 0.2, K(), C.afterSetFilter);
8277
- const W5 = function(o) {
8277
+ const W3 = function(o) {
8278
8278
  let e = Math.ceil(this.pixelSize()), a = o.width, l = o.height, s = Math.ceil(a / e), u = Math.ceil(l / e), c = o.data;
8279
8279
  if (e <= 0) {
8280
8280
  T.error("pixelSize value can not be <= 0");
@@ -8305,13 +8305,13 @@ const W5 = function(o) {
8305
8305
  }
8306
8306
  };
8307
8307
  C.addGetterSetter(Q, "pixelSize", 8, K(), C.afterSetFilter);
8308
- const I5 = function(o) {
8308
+ const I3 = function(o) {
8309
8309
  const e = Math.round(this.levels() * 254) + 1, a = o.data, l = a.length, s = 255 / e;
8310
8310
  for (let u = 0; u < l; u += 1)
8311
8311
  a[u] = Math.floor(a[u] / s) * s;
8312
8312
  };
8313
8313
  C.addGetterSetter(Q, "levels", 0.5, K(), C.afterSetFilter);
8314
- const $5 = function(o) {
8314
+ const $3 = function(o) {
8315
8315
  const e = o.data, a = e.length, l = this.red(), s = this.green(), u = this.blue();
8316
8316
  for (let c = 0; c < a; c += 4) {
8317
8317
  const f = (0.34 * e[c] + 0.5 * e[c + 1] + 0.16 * e[c + 2]) / 255;
@@ -8381,22 +8381,22 @@ Wa.Util._assign(Wa, {
8381
8381
  Transformer: pt,
8382
8382
  Wedge: _n,
8383
8383
  Filters: {
8384
- Blur: D5,
8385
- Brightness: z5,
8386
- Brighten: O5,
8387
- Contrast: G5,
8388
- Emboss: H5,
8389
- Enhance: B5,
8390
- Grayscale: U5,
8391
- HSL: L5,
8392
- HSV: Y5,
8393
- Invert: w5,
8394
- Kaleidoscope: j5,
8395
- Mask: P5,
8396
- Noise: F5,
8397
- Pixelate: W5,
8398
- Posterize: I5,
8399
- RGB: $5,
8384
+ Blur: D3,
8385
+ Brightness: z3,
8386
+ Brighten: O3,
8387
+ Contrast: G3,
8388
+ Emboss: H3,
8389
+ Enhance: B3,
8390
+ Grayscale: U3,
8391
+ HSL: L3,
8392
+ HSV: Y3,
8393
+ Invert: w3,
8394
+ Kaleidoscope: j3,
8395
+ Mask: P3,
8396
+ Noise: F3,
8397
+ Pixelate: W3,
8398
+ Posterize: I3,
8399
+ RGB: $3,
8400
8400
  RGBA: t4,
8401
8401
  Sepia: e4,
8402
8402
  Solarize: n4,