hplx-feature-library 1.0.127 → 1.0.128

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.
@@ -17,26 +17,26 @@ function d6(o, u) {
17
17
  }
18
18
  const s2 = (o) => {
19
19
  let u;
20
- const x = /* @__PURE__ */ new Set(), P = (h, C) => {
20
+ const C = /* @__PURE__ */ new Set(), P = (h, x) => {
21
21
  const N = typeof h == "function" ? h(u) : h;
22
22
  if (!Object.is(N, u)) {
23
23
  const w = u;
24
- u = C ?? (typeof N != "object" || N === null) ? N : Object.assign({}, u, N), x.forEach((S) => S(u, w));
24
+ u = x ?? (typeof N != "object" || N === null) ? N : Object.assign({}, u, N), C.forEach((S) => S(u, w));
25
25
  }
26
- }, R = () => u, m = { setState: P, getState: R, getInitialState: () => y, subscribe: (h) => (x.add(h), () => x.delete(h)) }, y = u = o(P, R, m);
26
+ }, R = () => u, m = { setState: P, getState: R, getInitialState: () => y, subscribe: (h) => (C.add(h), () => C.delete(h)) }, y = u = o(P, R, m);
27
27
  return m;
28
28
  }, h6 = (o) => o ? s2(o) : s2, p6 = (o) => o;
29
29
  function v6(o, u = p6) {
30
- const x = dn.useSyncExternalStore(
30
+ const C = dn.useSyncExternalStore(
31
31
  o.subscribe,
32
32
  dn.useCallback(() => u(o.getState()), [o, u]),
33
33
  dn.useCallback(() => u(o.getInitialState()), [o, u])
34
34
  );
35
- return dn.useDebugValue(x), x;
35
+ return dn.useDebugValue(C), C;
36
36
  }
37
37
  const o2 = (o) => {
38
- const u = h6(o), x = (P) => v6(u, P);
39
- return Object.assign(x, u), x;
38
+ const u = h6(o), C = (P) => v6(u, P);
39
+ return Object.assign(C, u), C;
40
40
  }, Iy = (o) => o ? o2(o) : o2, Aa = Iy((o) => ({
41
41
  showSaveGroupPreview: !1,
42
42
  setShowSaveGroupPreview: (u) => o({ showSaveGroupPreview: u }),
@@ -46,8 +46,8 @@ const o2 = (o) => {
46
46
  // Selected Documents
47
47
  selectedDocuments: [],
48
48
  setSelectedDocuments: (u) => o({ selectedDocuments: u }),
49
- toggleSelectedDocument: (u) => o((x) => ({
50
- selectedDocuments: x.selectedDocuments.some((R) => R.id === u.id) ? x.selectedDocuments.filter((R) => R.id !== u.id) : [...x.selectedDocuments, u]
49
+ toggleSelectedDocument: (u) => o((C) => ({
50
+ selectedDocuments: C.selectedDocuments.some((R) => R.id === u.id) ? C.selectedDocuments.filter((R) => R.id !== u.id) : [...C.selectedDocuments, u]
51
51
  })),
52
52
  clearSelectedDocuments: () => o({ selectedDocuments: [] }),
53
53
  // Document View
@@ -58,26 +58,26 @@ const o2 = (o) => {
58
58
  setDocument: (u) => o(() => ({
59
59
  document: [...u]
60
60
  })),
61
- addDocuments: (u) => o((x) => ({
62
- document: [...x.document, ...u]
61
+ addDocuments: (u) => o((C) => ({
62
+ document: [...C.document, ...u]
63
63
  // immutably append multiple docs
64
64
  })),
65
- addDocument: (u) => o((x) => ({
66
- document: [u, ...x.document]
65
+ addDocument: (u) => o((C) => ({
66
+ document: [u, ...C.document]
67
67
  // immutably add single doc
68
68
  })),
69
- updateDocument: (u) => o((x) => ({
70
- ...x,
69
+ updateDocument: (u) => o((C) => ({
70
+ ...C,
71
71
  document: [
72
- ...x.document.map(
72
+ ...C.document.map(
73
73
  (P) => P.id === u.id ? { ...u } : P
74
74
  // immutably replace matched doc
75
75
  )
76
76
  ]
77
77
  })),
78
- deleteDocument: (u) => o((x) => ({
79
- ...x,
80
- document: x.document.filter((P) => P.id !== u)
78
+ deleteDocument: (u) => o((C) => ({
79
+ ...C,
80
+ document: C.document.filter((P) => P.id !== u)
81
81
  // immutably remove doc
82
82
  })),
83
83
  clearDocument: () => o({ document: [] })
@@ -93,15 +93,15 @@ const S6 = {
93
93
  [Or.JPEG]: ["image/jpeg", "image/jpg"],
94
94
  [Or.PNG]: ["image/png"],
95
95
  [Or.MP4]: ["video/mp4"]
96
- }, x6 = 1e3 * 1024 * 1024, C6 = (o) => o.size > x6 ? { isValid: !1, error: `File "${o.name}" is too large. Maximum size is 10MB.` } : Object.values(S6).some((x) => x.includes(o.type)) ? { isValid: !0 } : {
96
+ }, x6 = 1e3 * 1024 * 1024, C6 = (o) => o.size > x6 ? { isValid: !1, error: `File "${o.name}" is too large. Maximum size is 10MB.` } : Object.values(S6).some((C) => C.includes(o.type)) ? { isValid: !0 } : {
97
97
  isValid: !1,
98
98
  error: `File "${o.name}" is not a supported format. Supported formats: PDF, JPEG, PNG, MP4.`
99
99
  }, Wy = (o) => {
100
- const u = [], x = [];
100
+ const u = [], C = [];
101
101
  return o.forEach((P) => {
102
102
  const R = C6(P);
103
- R.isValid ? u.push(P) : x.push(R.error || "Invalid file");
104
- }), { validFiles: u, errors: x };
103
+ R.isValid ? u.push(P) : C.push(R.error || "Invalid file");
104
+ }), { validFiles: u, errors: C };
105
105
  }, Vf = (o) => "mimeType" in o || "fileType" in o;
106
106
  function E6(o) {
107
107
  const u = {};
@@ -109,38 +109,38 @@ function E6(o) {
109
109
  const R = P.createdAt, g = qc(R), p = d6(g) ? "Today" : s6(g, "EEE, dd MMMM");
110
110
  u[p] || (u[p] = []), u[p].push(P);
111
111
  });
112
- const x = Object.entries(u).map(([P, R]) => {
112
+ const C = Object.entries(u).map(([P, R]) => {
113
113
  const g = R.sort((p, m) => {
114
114
  const y = qc(p.createdAt).getTime();
115
115
  return qc(m.createdAt).getTime() - y;
116
116
  });
117
117
  return { dateLabel: P, documents: g };
118
118
  });
119
- return x.sort((P, R) => {
119
+ return C.sort((P, R) => {
120
120
  const g = qc(P.documents[0].createdAt).getTime();
121
121
  return qc(R.documents[0].createdAt).getTime() - g;
122
- }), x;
122
+ }), C;
123
123
  }
124
124
  function b6(o) {
125
- const { setShowPreview: u, setCompareMode: x } = Ya(), { documents: P } = o, R = wa(() => Vf(P) ? P : [...P.documents], [P]), { selectedDocuments: g, setSelectedGroup: p, setSelectedDocuments: m } = Aa(), y = (C, N) => {
126
- const w = C.mimeType === Or.JPEG || C.mimeType === Or.PNG;
125
+ const { setShowPreview: u, setCompareMode: C } = Ya(), { documents: P } = o, R = wa(() => Vf(P) ? P : [...P.documents], [P]), { selectedDocuments: g, setSelectedGroup: p, setSelectedDocuments: m } = Aa(), y = (x, N) => {
126
+ const w = x.mimeType === Or.JPEG || x.mimeType === Or.PNG;
127
127
  return /* @__PURE__ */ Q.jsx("div", { className: "hfl-w-full hfl-h-full", children: /* @__PURE__ */ Q.jsx(
128
128
  "img",
129
129
  {
130
- src: w && C.filePath || c2,
131
- alt: C.label,
130
+ src: w && (x.thumbnail || x.filePath) || c2,
131
+ alt: x.label,
132
132
  className: "hfl-w-full hfl-h-full hfl-object-fit"
133
133
  }
134
- ) }, C.id || N);
134
+ ) }, x.id || N);
135
135
  }, h = nn(() => {
136
- g.length > 0 || (Vf(P) ? (u(!0), m([P])) : (x(!0), p(P), m(P.documents)));
137
- }, [P, g.length, x, m, p, u]);
136
+ g.length > 0 || (Vf(P) ? (u(!0), m([P])) : (C(!0), p(P), m(P.documents)));
137
+ }, [P, g.length, C, m, p, u]);
138
138
  return Array.isArray(R) ? /* @__PURE__ */ Q.jsx(
139
139
  "div",
140
140
  {
141
141
  className: "hfl-grid hfl-grid-cols-2 hfl-grid-rows-2 hfl-w-[220px] hfl-h-[220px] hfl-overflow-hidden hfl-rounded-tl-md hfl-rounded-tr-md hfl-cursor-pointer",
142
142
  onClick: h,
143
- children: R.map((C, N) => y(C, N))
143
+ children: R.map((x, N) => y(x, N))
144
144
  }
145
145
  ) : /* @__PURE__ */ Q.jsx(
146
146
  "div",
@@ -152,24 +152,24 @@ function b6(o) {
152
152
  );
153
153
  }
154
154
  const Qy = bu(b6), T6 = (o) => {
155
- const [u, x] = at(!1), [P, R] = at("bottom"), g = jt(null), p = nn(() => {
155
+ const [u, C] = at(!1), [P, R] = at("bottom"), g = jt(null), p = nn(() => {
156
156
  if (!o.current) return;
157
157
  const h = o.current.getBoundingClientRect();
158
158
  window.innerHeight - h.bottom < 120 ? R("top") : R("bottom");
159
159
  }, [o]), m = nn(() => {
160
- u || p(), x((h) => !h);
160
+ u || p(), C((h) => !h);
161
161
  }, [u, p]), y = nn(() => {
162
- x(!1);
162
+ C(!1);
163
163
  }, []);
164
164
  return un(() => {
165
165
  if (!u) return;
166
166
  const h = (N) => {
167
167
  g.current && !g.current.contains(N.target) && o.current && !o.current.contains(N.target) && y();
168
- }, C = () => {
168
+ }, x = () => {
169
169
  y();
170
170
  };
171
- return document.addEventListener("mousedown", h), window.addEventListener("scroll", C, !0), () => {
172
- document.removeEventListener("mousedown", h), window.removeEventListener("scroll", C, !0);
171
+ return document.addEventListener("mousedown", h), window.addEventListener("scroll", x, !0), () => {
172
+ document.removeEventListener("mousedown", h), window.removeEventListener("scroll", x, !0);
173
173
  };
174
174
  }, [u, y, o]), {
175
175
  isOpen: u,
@@ -181,8 +181,8 @@ const Qy = bu(b6), T6 = (o) => {
181
181
  { label: "Edit", icon: "hx_edit", action: "onEdit" },
182
182
  { label: "Delete", icon: "hx_delete", action: "onDelete" }
183
183
  ];
184
- function A6({ dropdownRef: o, position: u, onEdit: x, onPreview: P, onDelete: R }) {
185
- const g = { onEdit: x, onPreview: P, onDelete: R }, p = u === "top" ? "hfl-bottom-full hfl-mb-2" : "hfl-top-full hfl-mt-2";
184
+ function A6({ dropdownRef: o, position: u, onEdit: C, onPreview: P, onDelete: R }) {
185
+ const g = { onEdit: C, onPreview: P, onDelete: R }, p = u === "top" ? "hfl-bottom-full hfl-mb-2" : "hfl-top-full hfl-mt-2";
186
186
  return /* @__PURE__ */ Q.jsx(
187
187
  "div",
188
188
  {
@@ -205,11 +205,11 @@ function A6({ dropdownRef: o, position: u, onEdit: x, onPreview: P, onDelete: R
205
205
  );
206
206
  }
207
207
  function R6(o) {
208
- const { document: u } = o, { selectedDocuments: x, toggleSelectedDocument: P, deleteDocument: R } = Aa(), { onDeleteAttachments: g } = Ya(), p = jt(null), {
208
+ const { document: u } = o, { selectedDocuments: C, toggleSelectedDocument: P, deleteDocument: R } = Aa(), { onDeleteAttachments: g } = Ya(), p = jt(null), {
209
209
  isOpen: m,
210
210
  position: y,
211
211
  toggleDropdown: h,
212
- dropdownRef: C
212
+ dropdownRef: x
213
213
  } = T6(p), N = wa(
214
214
  () => new Date(u.createdAt).toLocaleDateString("en-GB", {
215
215
  day: "2-digit",
@@ -230,9 +230,9 @@ function R6(o) {
230
230
  "input",
231
231
  {
232
232
  type: "checkbox",
233
- disabled: x.length >= 4 && !x.some((b) => b.id === u.id),
233
+ disabled: C.length >= 4 && !C.some((b) => b.id === u.id),
234
234
  className: "hfl-cursor-pointer hfl-w-[24px] hfl-h-[24px] hfl-mt-0",
235
- checked: x.some((b) => b.id === u.id),
235
+ checked: C.some((b) => b.id === u.id),
236
236
  onChange: S
237
237
  }
238
238
  ) }),
@@ -279,7 +279,7 @@ function R6(o) {
279
279
  m && /* @__PURE__ */ Q.jsx(
280
280
  A6,
281
281
  {
282
- dropdownRef: C,
282
+ dropdownRef: x,
283
283
  position: y,
284
284
  onEdit: E,
285
285
  onPreview: D,
@@ -292,17 +292,17 @@ function R6(o) {
292
292
  ] });
293
293
  }
294
294
  const Jy = bu(R6), N6 = ({ onFileUpload: o, disabled: u = !1 }) => {
295
- const [x, P] = at(!1), [R, g] = at(!1), p = nn(
296
- (C) => {
297
- C.preventDefault(), C.stopPropagation(), !(u || R) && P(!0);
295
+ const [C, P] = at(!1), [R, g] = at(!1), p = nn(
296
+ (x) => {
297
+ x.preventDefault(), x.stopPropagation(), !(u || R) && P(!0);
298
298
  },
299
299
  [u, R]
300
- ), m = nn((C) => {
301
- C.preventDefault(), C.stopPropagation(), C.currentTarget.contains(C.relatedTarget) || P(!1);
300
+ ), m = nn((x) => {
301
+ x.preventDefault(), x.stopPropagation(), x.currentTarget.contains(x.relatedTarget) || P(!1);
302
302
  }, []), y = nn(
303
- async (C) => {
304
- if (C.preventDefault(), C.stopPropagation(), P(!1), u || R) return;
305
- const N = Array.from(C.dataTransfer.files);
303
+ async (x) => {
304
+ if (x.preventDefault(), x.stopPropagation(), P(!1), u || R) return;
305
+ const N = Array.from(x.dataTransfer.files);
306
306
  if (N.length !== 0) {
307
307
  g(!0);
308
308
  try {
@@ -315,11 +315,11 @@ const Jy = bu(R6), N6 = ({ onFileUpload: o, disabled: u = !1 }) => {
315
315
  }
316
316
  },
317
317
  [u, R, o]
318
- ), h = nn((C) => {
319
- C.preventDefault(), C.stopPropagation();
318
+ ), h = nn((x) => {
319
+ x.preventDefault(), x.stopPropagation();
320
320
  }, []);
321
321
  return {
322
- isDragOver: x,
322
+ isDragOver: C,
323
323
  isUploading: R,
324
324
  dragHandlers: {
325
325
  onDragOver: p,
@@ -350,7 +350,7 @@ function D6({ isDragOver: o, isUploading: u }) {
350
350
  }
351
351
  );
352
352
  }
353
- function Zy({ onFileUpload: o, children: u, className: x, disabled: P = !1 }) {
353
+ function Zy({ onFileUpload: o, children: u, className: C, disabled: P = !1 }) {
354
354
  const { isDragOver: R, isUploading: g, dragHandlers: p } = N6({
355
355
  onFileUpload: o,
356
356
  disabled: P
@@ -358,7 +358,7 @@ function Zy({ onFileUpload: o, children: u, className: x, disabled: P = !1 }) {
358
358
  return /* @__PURE__ */ Q.jsxs(
359
359
  "div",
360
360
  {
361
- className: `hfl-relative hfl-transition-all hfl-duration-200 hfl-overflow-y-scroll ${R ? "hfl-bg-Blue-25" : ""} ${x || ""}`,
361
+ className: `hfl-relative hfl-transition-all hfl-duration-200 hfl-overflow-y-scroll ${R ? "hfl-bg-Blue-25" : ""} ${C || ""}`,
362
362
  ...p,
363
363
  children: [
364
364
  u,
@@ -393,7 +393,7 @@ const P6 = (o) => /* @__PURE__ */ Q.jsx("svg", { width: "24", height: "24", view
393
393
  }
394
394
  ) });
395
395
  function _y({ onFileUpload: o }) {
396
- const u = jt(null), x = () => {
396
+ const u = jt(null), C = () => {
397
397
  u.current?.click();
398
398
  }, P = async (R) => {
399
399
  const g = Array.from(R.target.files || []);
@@ -410,7 +410,7 @@ function _y({ onFileUpload: o }) {
410
410
  "div",
411
411
  {
412
412
  className: "hfl-w-[220px] hfl-h-[285px] hfl-rounded-md hfl-border hfl-border-Gray-300 hfl-flex hfl-flex-col hfl-items-center hfl-justify-center hfl-cursor-pointer",
413
- onClick: x,
413
+ onClick: C,
414
414
  children: [
415
415
  /* @__PURE__ */ Q.jsxs("div", { className: "hfl-flex hfl-flex-col hfl-items-center hfl-justify-center", children: [
416
416
  /* @__PURE__ */ Q.jsx("div", { className: "hfl-flex hfl-items-center hfl-justify-center hfl-w-16 hfl-h-16 hfl-mb-4 hfl-border hfl-border-dashed hfl-border-Gray-400 hfl-rounded-full", children: /* @__PURE__ */ Q.jsx(If, { className: "hfl-text-Gray-500", width: 24, height: 24 }) }),
@@ -431,7 +431,7 @@ function _y({ onFileUpload: o }) {
431
431
  }
432
432
  );
433
433
  }
434
- function O6({ onFileUpload: o, onEdit: u, onPreview: x, onDownload: P }) {
434
+ function O6({ onFileUpload: o, onEdit: u, onPreview: C, onDownload: P }) {
435
435
  const { document: R } = Aa(), g = jt(null);
436
436
  un(() => {
437
437
  console.log("Document length: ", R.length);
@@ -443,8 +443,8 @@ function O6({ onFileUpload: o, onEdit: u, onPreview: x, onDownload: P }) {
443
443
  if (h.length !== 0)
444
444
  try {
445
445
  await o(h);
446
- } catch (C) {
447
- console.error("Error uploading files:", C);
446
+ } catch (x) {
447
+ console.error("Error uploading files:", x);
448
448
  } finally {
449
449
  g.current && (g.current.value = "");
450
450
  }
@@ -456,7 +456,7 @@ function O6({ onFileUpload: o, onEdit: u, onPreview: x, onDownload: P }) {
456
456
  {
457
457
  document: y,
458
458
  onEdit: u,
459
- onPreview: x,
459
+ onPreview: C,
460
460
  onDownload: P
461
461
  },
462
462
  y.id
@@ -491,30 +491,30 @@ function O6({ onFileUpload: o, onEdit: u, onPreview: x, onDownload: P }) {
491
491
  ] }) });
492
492
  }
493
493
  const z6 = bu(O6);
494
- function F6({ onFileUpload: o, onEdit: u, onPreview: x, onDownload: P }) {
494
+ function F6({ onFileUpload: o, onEdit: u, onPreview: C, onDownload: P }) {
495
495
  const { document: R } = Aa(), g = wa(() => E6(R), [R]), p = jt(null), m = () => {
496
496
  p.current?.click();
497
497
  }, y = async (h) => {
498
- const C = Array.from(h.target.files || []);
499
- if (C.length !== 0)
498
+ const x = Array.from(h.target.files || []);
499
+ if (x.length !== 0)
500
500
  try {
501
- await o(C);
501
+ await o(x);
502
502
  } catch (N) {
503
503
  console.error("Error uploading files:", N);
504
504
  } finally {
505
505
  p.current && (p.current.value = "");
506
506
  }
507
507
  };
508
- return /* @__PURE__ */ Q.jsx(Zy, { onFileUpload: o, children: R.length > 0 ? /* @__PURE__ */ Q.jsx("div", { className: "hfl-w-full hfl-overflow-y-scroll hfl-h-full hfl-flex hfl-flex-col hfl-gap-4 hfl-flex-grow hfl-p-4", children: g.map((h, C) => /* @__PURE__ */ Q.jsxs("div", { children: [
508
+ return /* @__PURE__ */ Q.jsx(Zy, { onFileUpload: o, children: R.length > 0 ? /* @__PURE__ */ Q.jsx("div", { className: "hfl-w-full hfl-overflow-y-scroll hfl-h-full hfl-flex hfl-flex-col hfl-gap-4 hfl-flex-grow hfl-p-4", children: g.map((h, x) => /* @__PURE__ */ Q.jsxs("div", { children: [
509
509
  /* @__PURE__ */ Q.jsx(It, { variant: "Medium", type: "Text md", className: "hfl-text-Blue_gray-950 hfl-mb-2 hfl-ml-3", children: h.dateLabel }),
510
510
  /* @__PURE__ */ Q.jsxs("div", { className: "hfl-py-2 hfl-px-4 hfl-flex hfl-gap-2 hfl-flex-wrap hfl-w-full", children: [
511
- C === 0 && /* @__PURE__ */ Q.jsx(_y, { onFileUpload: o }),
511
+ x === 0 && /* @__PURE__ */ Q.jsx(_y, { onFileUpload: o }),
512
512
  h.documents.map((N) => /* @__PURE__ */ Q.jsx(
513
513
  Jy,
514
514
  {
515
515
  document: N,
516
516
  onEdit: u,
517
- onPreview: x,
517
+ onPreview: C,
518
518
  onDownload: P
519
519
  },
520
520
  N.id
@@ -554,20 +554,20 @@ var U6 = o6();
554
554
  const qy = 0, Ky = 1, $y = 2, f2 = 3;
555
555
  var d2 = Object.prototype.hasOwnProperty;
556
556
  function t1(o, u) {
557
- var x, P;
557
+ var C, P;
558
558
  if (o === u) return !0;
559
- if (o && u && (x = o.constructor) === u.constructor) {
560
- if (x === Date) return o.getTime() === u.getTime();
561
- if (x === RegExp) return o.toString() === u.toString();
562
- if (x === Array) {
559
+ if (o && u && (C = o.constructor) === u.constructor) {
560
+ if (C === Date) return o.getTime() === u.getTime();
561
+ if (C === RegExp) return o.toString() === u.toString();
562
+ if (C === Array) {
563
563
  if ((P = o.length) === u.length)
564
564
  for (; P-- && t1(o[P], u[P]); ) ;
565
565
  return P === -1;
566
566
  }
567
- if (!x || typeof o == "object") {
567
+ if (!C || typeof o == "object") {
568
568
  P = 0;
569
- for (x in o)
570
- if (d2.call(o, x) && ++P && !d2.call(u, x) || !(x in u) || !t1(o[x], u[x])) return !1;
569
+ for (C in o)
570
+ if (d2.call(o, C) && ++P && !d2.call(u, C) || !(C in u) || !t1(o[C], u[C])) return !1;
571
571
  return Object.keys(u).length === P;
572
572
  }
573
573
  }
@@ -581,7 +581,7 @@ const bl = /* @__PURE__ */ new WeakMap(), ls = () => {
581
581
  ...o,
582
582
  ...u
583
583
  }), e5 = (o) => ki(o.then), zv = {}, Zh = {}, h1 = "undefined", Wf = typeof window != h1, r1 = typeof document != h1, j6 = Wf && "Deno" in window, B6 = () => Wf && typeof window.requestAnimationFrame != h1, t5 = (o, u) => {
584
- const x = bl.get(o);
584
+ const C = bl.get(o);
585
585
  return [
586
586
  // Getter
587
587
  () => !Ht(u) && o.get(u) || zv,
@@ -589,11 +589,11 @@ const bl = /* @__PURE__ */ new WeakMap(), ls = () => {
589
589
  (P) => {
590
590
  if (!Ht(u)) {
591
591
  const R = o.get(u);
592
- u in Zh || (Zh[u] = R), x[5](u, ss(R, P), R || zv);
592
+ u in Zh || (Zh[u] = R), C[5](u, ss(R, P), R || zv);
593
593
  }
594
594
  },
595
595
  // Subscriber
596
- x[6],
596
+ C[6],
597
597
  // Get server cache snapshot
598
598
  () => !Ht(u) && u in Zh ? Zh[u] : !Ht(u) && o.get(u) || zv
599
599
  ];
@@ -613,11 +613,11 @@ const H6 = () => a1, [i1, l1] = Wf && window.addEventListener ? [
613
613
  }), I6 = (o) => {
614
614
  const u = () => {
615
615
  a1 = !0, o();
616
- }, x = () => {
616
+ }, C = () => {
617
617
  a1 = !1;
618
618
  };
619
- return i1("online", u), i1("offline", x), () => {
620
- l1("online", u), l1("offline", x);
619
+ return i1("online", u), i1("offline", C), () => {
620
+ l1("online", u), l1("offline", C);
621
621
  };
622
622
  }, Y6 = {
623
623
  isOnline: H6,
@@ -631,7 +631,7 @@ const H6 = () => a1, [i1, l1] = Wf && window.addEventListener ? [
631
631
  ].includes(Gv.effectiveType) || Gv.saveData), _h = /* @__PURE__ */ new WeakMap(), Q6 = (o) => n1.prototype.toString.call(o), Uv = (o, u) => o === `[object ${u}]`;
632
632
  let J6 = 0;
633
633
  const s1 = (o) => {
634
- const u = typeof o, x = Q6(o), P = Uv(x, "Date"), R = Uv(x, "RegExp"), g = Uv(x, "Object");
634
+ const u = typeof o, C = Q6(o), P = Uv(C, "Date"), R = Uv(C, "RegExp"), g = Uv(C, "Object");
635
635
  let p, m;
636
636
  if (n1(o) === o && !P && !R) {
637
637
  if (p = _h.get(o), p) return p;
@@ -666,7 +666,7 @@ const s1 = (o) => {
666
666
  let Z6 = 0;
667
667
  const o1 = () => ++Z6;
668
668
  async function n5(...o) {
669
- const [u, x, P, R] = o, g = ss({
669
+ const [u, C, P, R] = o, g = ss({
670
670
  populateCache: !0,
671
671
  throwOnError: !0
672
672
  }, typeof R == "boolean" ? {
@@ -675,15 +675,15 @@ async function n5(...o) {
675
675
  let p = g.populateCache;
676
676
  const m = g.rollbackOnError;
677
677
  let y = g.optimisticData;
678
- const h = (w) => typeof m == "function" ? m(w) : m !== !1, C = g.throwOnError;
679
- if (ki(x)) {
680
- const w = x, S = [], E = u.keys();
678
+ const h = (w) => typeof m == "function" ? m(w) : m !== !1, x = g.throwOnError;
679
+ if (ki(C)) {
680
+ const w = C, S = [], E = u.keys();
681
681
  for (const D of E)
682
682
  // Skip the special useSWRInfinite and useSWRSubscription keys.
683
683
  !/^\$(inf|sub)\$/.test(D) && w(u.get(D)._k) && S.push(D);
684
684
  return Promise.all(S.map(N));
685
685
  }
686
- return N(x);
686
+ return N(C);
687
687
  async function N(w) {
688
688
  const [S] = p1(w);
689
689
  if (!S) return;
@@ -738,25 +738,25 @@ async function n5(...o) {
738
738
  _c: Lr
739
739
  });
740
740
  }), J) {
741
- if (C) throw k;
741
+ if (x) throw k;
742
742
  return;
743
743
  }
744
744
  return L;
745
745
  }
746
746
  }
747
747
  const v2 = (o, u) => {
748
- for (const x in o)
749
- o[x][0] && o[x][0](u);
748
+ for (const C in o)
749
+ o[C][0] && o[C][0](u);
750
750
  }, _6 = (o, u) => {
751
751
  if (!bl.has(o)) {
752
- const x = ss(X6, u), P = /* @__PURE__ */ Object.create(null), R = n5.bind(Lr, o);
752
+ const C = ss(X6, u), P = /* @__PURE__ */ Object.create(null), R = n5.bind(Lr, o);
753
753
  let g = ls;
754
- const p = /* @__PURE__ */ Object.create(null), m = (C, N) => {
755
- const w = p[C] || [];
756
- return p[C] = w, w.push(N), () => w.splice(w.indexOf(N), 1);
757
- }, y = (C, N, w) => {
758
- o.set(C, N);
759
- const S = p[C];
754
+ const p = /* @__PURE__ */ Object.create(null), m = (x, N) => {
755
+ const w = p[x] || [];
756
+ return p[x] = w, w.push(N), () => w.splice(w.indexOf(N), 1);
757
+ }, y = (x, N, w) => {
758
+ o.set(x, N);
759
+ const S = p[x];
760
760
  if (S)
761
761
  for (const E of S)
762
762
  E(N, w);
@@ -770,9 +770,9 @@ const v2 = (o, u) => {
770
770
  y,
771
771
  m
772
772
  ]), !Yf)) {
773
- const C = x.initFocus(setTimeout.bind(Lr, v2.bind(Lr, P, qy))), N = x.initReconnect(setTimeout.bind(Lr, v2.bind(Lr, P, Ky)));
773
+ const x = C.initFocus(setTimeout.bind(Lr, v2.bind(Lr, P, qy))), N = C.initReconnect(setTimeout.bind(Lr, v2.bind(Lr, P, Ky)));
774
774
  g = () => {
775
- C && C(), N && N(), bl.delete(o);
775
+ x && x(), N && N(), bl.delete(o);
776
776
  };
777
777
  }
778
778
  };
@@ -787,8 +787,8 @@ const v2 = (o, u) => {
787
787
  o,
788
788
  bl.get(o)[4]
789
789
  ];
790
- }, q6 = (o, u, x, P, R) => {
791
- const g = x.errorRetryCount, p = R.retryCount, m = ~~((Math.random() + 0.5) * (1 << (p < 8 ? p : 8))) * x.errorRetryInterval;
790
+ }, q6 = (o, u, C, P, R) => {
791
+ const g = C.errorRetryCount, p = R.retryCount, m = ~~((Math.random() + 0.5) * (1 << (p < 8 ? p : 8))) * C.errorRetryInterval;
792
792
  !Ht(g) && p > g || setTimeout(P, m, R);
793
793
  }, K6 = t1, [r5, $6] = _6(/* @__PURE__ */ new Map()), e9 = ss(
794
794
  {
@@ -818,12 +818,12 @@ const v2 = (o, u) => {
818
818
  // use web preset by default
819
819
  Y6
820
820
  ), t9 = (o, u) => {
821
- const x = ss(o, u);
821
+ const C = ss(o, u);
822
822
  if (u) {
823
823
  const { use: P, fallback: R } = o, { use: g, fallback: p } = u;
824
- P && g && (x.use = P.concat(g)), R && p && (x.fallback = ss(R, p));
824
+ P && g && (C.use = P.concat(g)), R && p && (C.fallback = ss(R, p));
825
825
  }
826
- return x;
826
+ return C;
827
827
  }, n9 = f1({}), r9 = "$inf$", a5 = Wf && window.__SWR_DEVTOOLS_USE__, a9 = a5 ? window.__SWR_DEVTOOLS_USE__ : [], i9 = () => {
828
828
  a5 && (window.__SWR_DEVTOOLS_REACT__ = dn);
829
829
  }, l9 = (o) => ki(o[1]) ? [
@@ -839,23 +839,23 @@ const v2 = (o, u) => {
839
839
  return wa(() => ss(e9, o), [
840
840
  o
841
841
  ]);
842
- }, o9 = (o) => (u, x, P) => o(u, x && ((...g) => {
842
+ }, o9 = (o) => (u, C, P) => o(u, C && ((...g) => {
843
843
  const [p] = p1(u), [, , , m] = bl.get(r5);
844
844
  if (p.startsWith(r9))
845
- return x(...g);
845
+ return C(...g);
846
846
  const y = m[p];
847
- return Ht(y) ? x(...g) : (delete m[p], y);
848
- }), P), u9 = a9.concat(o9), c9 = (o) => function(...x) {
849
- const P = s9(), [R, g, p] = l9(x), m = t9(P, p);
847
+ return Ht(y) ? C(...g) : (delete m[p], y);
848
+ }), P), u9 = a9.concat(o9), c9 = (o) => function(...C) {
849
+ const P = s9(), [R, g, p] = l9(C), m = t9(P, p);
850
850
  let y = o;
851
- const { use: h } = m, C = (h || []).concat(u9);
852
- for (let N = C.length; N--; )
853
- y = C[N](y);
851
+ const { use: h } = m, x = (h || []).concat(u9);
852
+ for (let N = x.length; N--; )
853
+ y = x[N](y);
854
854
  return y(R, g || m.fetcher || null, m);
855
- }, f9 = (o, u, x) => {
855
+ }, f9 = (o, u, C) => {
856
856
  const P = u[o] || (u[o] = []);
857
- return P.push(x), () => {
858
- const R = P.indexOf(x);
857
+ return P.push(C), () => {
858
+ const R = P.indexOf(C);
859
859
  R >= 0 && (P[R] = P[P.length - 1], P.pop());
860
860
  };
861
861
  };
@@ -881,8 +881,8 @@ const jv = dn.use || // This extra generic is to avoid TypeScript mixing up the
881
881
  }
882
882
  }), Bv = {
883
883
  dedupe: !0
884
- }, m2 = Promise.resolve(Lr), d9 = (o, u, x) => {
885
- const { cache: P, compare: R, suspense: g, fallbackData: p, revalidateOnMount: m, revalidateIfStale: y, refreshInterval: h, refreshWhenHidden: C, refreshWhenOffline: N, keepPreviousData: w } = x, [S, E, D, H] = bl.get(P), [B, b] = p1(o), v = jt(!1), M = jt(!1), L = jt(B), k = jt(u), J = jt(x), O = () => J.current, j = () => O().isVisible() && O().isOnline(), [F, X, K, $] = t5(P, B), re = jt({}).current, ee = Ht(p) ? Ht(x.fallback) ? Lr : x.fallback[B] : p, pe = (Re, ke) => {
884
+ }, m2 = Promise.resolve(Lr), d9 = (o, u, C) => {
885
+ const { cache: P, compare: R, suspense: g, fallbackData: p, revalidateOnMount: m, revalidateIfStale: y, refreshInterval: h, refreshWhenHidden: x, refreshWhenOffline: N, keepPreviousData: w } = C, [S, E, D, H] = bl.get(P), [B, b] = p1(o), v = jt(!1), M = jt(!1), L = jt(B), k = jt(u), J = jt(C), O = () => J.current, j = () => O().isVisible() && O().isOnline(), [F, X, K, $] = t5(P, B), re = jt({}).current, ee = Ht(p) ? Ht(C.fallback) ? Lr : C.fallback[B] : p, pe = (Re, ke) => {
886
886
  for (const Ge in re) {
887
887
  const $e = Ge;
888
888
  if ($e === "data") {
@@ -940,12 +940,12 @@ const jv = dn.use || // This extra generic is to avoid TypeScript mixing up the
940
940
  };
941
941
  Ht(F().data) && (ut.isLoading = !0);
942
942
  try {
943
- if (Nt && (X(ut), x.loadingTimeout && Ht(F().data) && setTimeout(() => {
944
- et && dt() && O().onLoadingSlow(B, x);
945
- }, x.loadingTimeout), D[B] = [
943
+ if (Nt && (X(ut), C.loadingTimeout && Ht(F().data) && setTimeout(() => {
944
+ et && dt() && O().onLoadingSlow(B, C);
945
+ }, C.loadingTimeout), D[B] = [
946
946
  ke(b),
947
947
  o1()
948
- ]), [Ge, $e] = D[B], Ge = await Ge, Nt && setTimeout(hn, x.dedupingInterval), !D[B] || D[B][1] !== $e)
948
+ ]), [Ge, $e] = D[B], Ge = await Ge, Nt && setTimeout(hn, C.dedupingInterval), !D[B] || D[B][1] !== $e)
949
949
  return Nt && dt() && O().onDiscarded(B), !1;
950
950
  yt.error = Lr;
951
951
  const xt = E[B];
@@ -955,7 +955,7 @@ const jv = dn.use || // This extra generic is to avoid TypeScript mixing up the
955
955
  xt[1] === 0))
956
956
  return St(), Nt && dt() && O().onDiscarded(B), !1;
957
957
  const Ft = F().data;
958
- yt.data = R(Ft, Ge) ? Ft : Ge, Nt && dt() && O().onSuccess(Ge, B, x);
958
+ yt.data = R(Ft, Ge) ? Ft : Ge, Nt && dt() && O().onSuccess(Ge, B, C);
959
959
  } catch (xt) {
960
960
  hn();
961
961
  const Ft = O(), { shouldRetryOnError: cn } = Ft;
@@ -991,7 +991,7 @@ const jv = dn.use || // This extra generic is to avoid TypeScript mixing up the
991
991
  []
992
992
  );
993
993
  if (Fv(() => {
994
- k.current = u, J.current = x, Ht(_) || (me.current = _);
994
+ k.current = u, J.current = C, Ht(_) || (me.current = _);
995
995
  }), Fv(() => {
996
996
  if (!B) return;
997
997
  const Re = Ae.bind(Lr, Bv);
@@ -1024,21 +1024,21 @@ const jv = dn.use || // This extra generic is to avoid TypeScript mixing up the
1024
1024
  $e && Re !== -1 && (Re = setTimeout(Ge, $e));
1025
1025
  }
1026
1026
  function Ge() {
1027
- !F().error && (C || O().isVisible()) && (N || O().isOnline()) ? Ae(Bv).then(ke) : ke();
1027
+ !F().error && (x || O().isVisible()) && (N || O().isOnline()) ? Ae(Bv).then(ke) : ke();
1028
1028
  }
1029
1029
  return ke(), () => {
1030
1030
  Re && (clearTimeout(Re), Re = -1);
1031
1031
  };
1032
1032
  }, [
1033
1033
  h,
1034
- C,
1034
+ x,
1035
1035
  N,
1036
1036
  B
1037
1037
  ]), a6(we), g) {
1038
1038
  const Re = B && Ht(oe);
1039
1039
  if (!h2 && Yf && Re)
1040
1040
  throw new Error("Fallback data is required when using Suspense in SSR.");
1041
- Re && (k.current = u, J.current = x, M.current = !1);
1041
+ Re && (k.current = u, J.current = C, M.current = !1);
1042
1042
  const ke = H[B], Ge = !Ht(ke) && Re ? Me(ke) : m2;
1043
1043
  if (jv(Ge), !Ht(ne) && Re)
1044
1044
  throw ne;
@@ -1062,7 +1062,7 @@ const jv = dn.use || // This extra generic is to avoid TypeScript mixing up the
1062
1062
  };
1063
1063
  }, h9 = c9(d9);
1064
1064
  function p9() {
1065
- const { clearSelectedDocuments: o, selectedDocuments: u } = Aa(), { setCompareMode: x, setShowPreview: P } = Ya(), R = wa(
1065
+ const { clearSelectedDocuments: o, selectedDocuments: u } = Aa(), { setCompareMode: C, setShowPreview: P } = Ya(), R = wa(
1066
1066
  () => [
1067
1067
  {
1068
1068
  label: Ov.COMPARE,
@@ -1070,7 +1070,7 @@ function p9() {
1070
1070
  disabled: u.length < 2,
1071
1071
  iconFile: "hx_compare",
1072
1072
  onClick: () => {
1073
- x(!0);
1073
+ C(!0);
1074
1074
  }
1075
1075
  // Placeholder for compare action
1076
1076
  },
@@ -1093,7 +1093,7 @@ function p9() {
1093
1093
  onClick: () => o()
1094
1094
  }
1095
1095
  ],
1096
- [o, u.length, x, P]
1096
+ [o, u.length, C, P]
1097
1097
  );
1098
1098
  return /* @__PURE__ */ Q.jsx("div", { className: "hfl-z-999 hfl-absolute hfl-left-1/2 hfl-top-[55%] hfl-transform hfl--translate-x-1/2 hfl-flex hfl-px-4 hfl-py-2 hfl-gap-2 hfl-rounded-lg hfl-border-1 hfl-border-Gray-300 hfl-bg-White", children: R.map((g) => /* @__PURE__ */ Q.jsx(
1099
1099
  Tl,
@@ -1124,13 +1124,13 @@ const v9 = bu(p9), m9 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASC
1124
1124
  function y9({
1125
1125
  showBackButton: o,
1126
1126
  onFileUpload: u,
1127
- setNextDate: x,
1127
+ setNextDate: C,
1128
1128
  onCaptureClick: P,
1129
1129
  isUploading: R,
1130
1130
  setIsUploading: g,
1131
1131
  onHeaderBackClickCb: p
1132
1132
  }) {
1133
- const [m, y] = at(!1), [h, C] = at(""), [N, w] = at(null), S = jt(null), E = jt(null), D = jt(null), { documentView: H, setDocumentView: B } = Aa(), [b, v] = at(""), [M, L] = at(""), { setSearch: k, setTypes: J, setDates: O, setPage: j, setHasData: F } = Ya(), [X, K] = at([]), { setCompareMode: $, setShowPreview: re } = Ya(), { clearSelectedDocuments: ee } = Aa();
1133
+ const [m, y] = at(!1), [h, x] = at(""), [N, w] = at(null), S = jt(null), E = jt(null), D = jt(null), { documentView: H, setDocumentView: B } = Aa(), [b, v] = at(""), [M, L] = at(""), { setSearch: k, setTypes: J, setDates: O, setPage: j, setHasData: F } = Ya(), [X, K] = at([]), { setCompareMode: $, setShowPreview: re } = Ya(), { clearSelectedDocuments: ee } = Aa();
1134
1134
  un(() => {
1135
1135
  const ae = X.map((Ce) => Ce === "unspecified" ? "" : Ce);
1136
1136
  J(ae);
@@ -1138,7 +1138,7 @@ function y9({
1138
1138
  const pe = () => {
1139
1139
  y(!m), w(null);
1140
1140
  }, z = (ae) => {
1141
- C(ae.target.value);
1141
+ x(ae.target.value);
1142
1142
  }, U = (ae) => {
1143
1143
  w(N === ae ? null : ae);
1144
1144
  }, W = (ae) => {
@@ -1164,7 +1164,7 @@ function y9({
1164
1164
  }
1165
1165
  }
1166
1166
  }, ne = (ae) => {
1167
- B(ae), x(""), j(1), F(!0);
1167
+ B(ae), C(""), j(1), F(!0);
1168
1168
  };
1169
1169
  un(() => (E.current && clearTimeout(E.current), E.current = setTimeout(() => {
1170
1170
  k(h), j(1);
@@ -1371,23 +1371,23 @@ const Qf = Iy((o) => ({
1371
1371
  })
1372
1372
  }));
1373
1373
  function i5(o) {
1374
- const { setHeaderHeight: u, isPreview: x = !1 } = o, P = jt(null), { setShowPenTool: R, showPenTool: g } = Qf(), p = nn(() => R(!g), [R, g]), { setShowSaveGroupPreview: m, setSelectedGroup: y, clearSelectedDocuments: h } = Aa();
1374
+ const { setHeaderHeight: u, isPreview: C = !1 } = o, P = jt(null), { setShowPenTool: R, showPenTool: g } = Qf(), p = nn(() => R(!g), [R, g]), { setShowSaveGroupPreview: m, setSelectedGroup: y, clearSelectedDocuments: h } = Aa();
1375
1375
  un(() => {
1376
1376
  const S = P?.current?.clientHeight || 0;
1377
1377
  u(S);
1378
1378
  }, [u]);
1379
- const { setCompareMode: C, setShowPreview: N } = Ya(), w = nn(() => {
1380
- N(!1), C(!1), y(null), h(), m(!1);
1381
- }, [h, C, y, N, m]);
1379
+ const { setCompareMode: x, setShowPreview: N } = Ya(), w = nn(() => {
1380
+ N(!1), x(!1), y(null), h(), m(!1);
1381
+ }, [h, x, y, N, m]);
1382
1382
  return /* @__PURE__ */ Q.jsxs(
1383
1383
  "div",
1384
1384
  {
1385
1385
  className: "hfl-flex hfl-justify-between hfl-items-center hfl-px-4 hfl-py-2 hfl-bg-Gray-100 hfl-w-full",
1386
1386
  ref: P,
1387
1387
  children: [
1388
- /* @__PURE__ */ Q.jsx("div", { className: "hfl-flex hfl-gap-2 hfl-items-center", children: /* @__PURE__ */ Q.jsx(It, { className: "hfl-text-Gray-700 ", variant: "Semibold", type: "Text lg", children: x ? u6.TITLE : Jh.TITLE }) }),
1388
+ /* @__PURE__ */ Q.jsx("div", { className: "hfl-flex hfl-gap-2 hfl-items-center", children: /* @__PURE__ */ Q.jsx(It, { className: "hfl-text-Gray-700 ", variant: "Semibold", type: "Text lg", children: C ? u6.TITLE : Jh.TITLE }) }),
1389
1389
  /* @__PURE__ */ Q.jsxs("div", { className: "hfl-flex hfl-gap-2 hfl-items-center", children: [
1390
- !x && /* @__PURE__ */ Q.jsx(
1390
+ !C && /* @__PURE__ */ Q.jsx(
1391
1391
  Tl,
1392
1392
  {
1393
1393
  hierarchy: "Primary",
@@ -1437,13 +1437,13 @@ function Et() {
1437
1437
  return g2 || (g2 = 1, function(o) {
1438
1438
  Object.defineProperty(o, "__esModule", { value: !0 }), o._registerNode = o.Konva = o.glob = void 0;
1439
1439
  const u = Math.PI / 180;
1440
- function x() {
1440
+ function C() {
1441
1441
  return typeof window < "u" && ({}.toString.call(window) === "[object Window]" || {}.toString.call(window) === "[object global]");
1442
1442
  }
1443
1443
  o.glob = typeof l2 < "u" ? l2 : typeof window < "u" ? window : typeof WorkerGlobalScope < "u" ? self : {}, o.Konva = {
1444
1444
  _global: o.glob,
1445
1445
  version: "9.3.22",
1446
- isBrowser: x(),
1446
+ isBrowser: C(),
1447
1447
  isUnminified: /param/.test((function(R) {
1448
1448
  }).toString()),
1449
1449
  dblClickWindow: 400,
@@ -1497,7 +1497,7 @@ function An() {
1497
1497
  return y2 || (y2 = 1, function(o) {
1498
1498
  Object.defineProperty(o, "__esModule", { value: !0 }), o.Util = o.Transform = void 0;
1499
1499
  const u = Et();
1500
- class x {
1500
+ class C {
1501
1501
  constructor(M = [1, 0, 0, 1, 0, 0]) {
1502
1502
  this.dirty = !1, this.m = M && M.slice() || [1, 0, 0, 1, 0, 0];
1503
1503
  }
@@ -1505,7 +1505,7 @@ function An() {
1505
1505
  this.m[0] = 1, this.m[1] = 0, this.m[2] = 0, this.m[3] = 1, this.m[4] = 0, this.m[5] = 0;
1506
1506
  }
1507
1507
  copy() {
1508
- return new x(this.m);
1508
+ return new C(this.m);
1509
1509
  }
1510
1510
  copyInto(M) {
1511
1511
  M.m[0] = this.m[0], M.m[1] = this.m[1], M.m[2] = this.m[2], M.m[3] = this.m[3], M.m[4] = this.m[4], M.m[5] = this.m[5];
@@ -1568,8 +1568,8 @@ function An() {
1568
1568
  return X.rotation = o.Util._getRotation(X.rotation), X;
1569
1569
  }
1570
1570
  }
1571
- o.Transform = x;
1572
- const P = "[object Array]", R = "[object Number]", g = "[object String]", p = "[object Boolean]", m = Math.PI / 180, y = 180 / Math.PI, h = "#", C = "", N = "0", w = "Konva warning: ", S = "Konva error: ", E = "rgb(", D = {
1571
+ o.Transform = C;
1572
+ const P = "[object Array]", R = "[object Number]", g = "[object String]", p = "[object Boolean]", m = Math.PI / 180, y = 180 / Math.PI, h = "#", x = "", N = "0", w = "Konva warning: ", S = "Konva error: ", E = "rgb(", D = {
1573
1573
  aliceblue: [240, 248, 255],
1574
1574
  antiquewhite: [250, 235, 215],
1575
1575
  aqua: [0, 255, 255],
@@ -1793,7 +1793,7 @@ function An() {
1793
1793
  return ((1 << 24) + (v << 16) + (M << 8) + L).toString(16).slice(1);
1794
1794
  },
1795
1795
  _hexToRgb(v) {
1796
- v = v.replace(h, C);
1796
+ v = v.replace(h, x);
1797
1797
  const M = parseInt(v, 16);
1798
1798
  return {
1799
1799
  r: M >> 16 & 255,
@@ -2050,7 +2050,7 @@ function l5() {
2050
2050
  if (S2) return El;
2051
2051
  S2 = 1, Object.defineProperty(El, "__esModule", { value: !0 }), El.HitContext = El.SceneContext = El.Context = void 0;
2052
2052
  const o = An(), u = Et();
2053
- function x(B) {
2053
+ function C(B) {
2054
2054
  const b = [], v = B.length, M = o.Util;
2055
2055
  for (let L = 0; L < v; L++) {
2056
2056
  let k = B[L];
@@ -2058,7 +2058,7 @@ function l5() {
2058
2058
  }
2059
2059
  return b;
2060
2060
  }
2061
- const P = ",", R = "(", g = ")", p = "([", m = "])", y = ";", h = "()", C = "=", N = [
2061
+ const P = ",", R = "(", g = ")", p = "([", m = "])", y = ";", h = "()", x = "=", N = [
2062
2062
  "arc",
2063
2063
  "arcTo",
2064
2064
  "beginPath",
@@ -2132,7 +2132,7 @@ function l5() {
2132
2132
  getTrace(b, v) {
2133
2133
  let M = this.traceArr, L = M.length, k = "", J, O, j, F;
2134
2134
  for (J = 0; J < L; J++)
2135
- O = M[J], j = O.method, j ? (F = O.args, k += j, b ? k += h : o.Util._isArray(F[0]) ? k += p + F.join(P) + m : (v && (F = F.map((X) => typeof X == "number" ? Math.floor(X) : X)), k += R + F.join(P) + g)) : (k += O.property, b || (k += C + O.val)), k += y;
2135
+ O = M[J], j = O.method, j ? (F = O.args, k += j, b ? k += h : o.Util._isArray(F[0]) ? k += p + F.join(P) + m : (v && (F = F.map((X) => typeof X == "number" ? Math.floor(X) : X)), k += R + F.join(P) + g)) : (k += O.property, b || (k += x + O.val)), k += y;
2136
2136
  return k;
2137
2137
  }
2138
2138
  clearTrace() {
@@ -2289,7 +2289,7 @@ function l5() {
2289
2289
  const J = function(O) {
2290
2290
  let j = b[O], F;
2291
2291
  b[O] = function() {
2292
- return k = x(Array.prototype.slice.call(arguments, 0)), F = j.apply(b, arguments), b._trace({
2292
+ return k = C(Array.prototype.slice.call(arguments, 0)), F = j.apply(b, arguments), b._trace({
2293
2293
  method: O,
2294
2294
  args: k
2295
2295
  }), F;
@@ -2427,21 +2427,21 @@ var x2;
2427
2427
  function n0() {
2428
2428
  if (x2) return Cl;
2429
2429
  x2 = 1, Object.defineProperty(Cl, "__esModule", { value: !0 }), Cl.HitCanvas = Cl.SceneCanvas = Cl.Canvas = void 0;
2430
- const o = An(), u = l5(), x = Et();
2430
+ const o = An(), u = l5(), C = Et();
2431
2431
  let P;
2432
2432
  function R() {
2433
2433
  if (P)
2434
2434
  return P;
2435
2435
  const y = o.Util.createCanvasElement(), h = y.getContext("2d");
2436
2436
  return P = function() {
2437
- const C = x.Konva._global.devicePixelRatio || 1, N = h.webkitBackingStorePixelRatio || h.mozBackingStorePixelRatio || h.msBackingStorePixelRatio || h.oBackingStorePixelRatio || h.backingStorePixelRatio || 1;
2438
- return C / N;
2437
+ const x = C.Konva._global.devicePixelRatio || 1, N = h.webkitBackingStorePixelRatio || h.mozBackingStorePixelRatio || h.msBackingStorePixelRatio || h.oBackingStorePixelRatio || h.backingStorePixelRatio || 1;
2438
+ return x / N;
2439
2439
  }(), o.Util.releaseCanvas(y), P;
2440
2440
  }
2441
2441
  let g = class {
2442
2442
  constructor(h) {
2443
2443
  this.pixelRatio = 1, this.width = 0, this.height = 0, this.isCache = !1;
2444
- const N = (h || {}).pixelRatio || x.Konva.pixelRatio || R();
2444
+ const N = (h || {}).pixelRatio || C.Konva.pixelRatio || R();
2445
2445
  this.pixelRatio = N, this._canvas = o.Util.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";
2446
2446
  }
2447
2447
  getContext() {
@@ -2451,18 +2451,18 @@ function n0() {
2451
2451
  return this.pixelRatio;
2452
2452
  }
2453
2453
  setPixelRatio(h) {
2454
- const C = this.pixelRatio;
2455
- this.pixelRatio = h, this.setSize(this.getWidth() / C, this.getHeight() / C);
2454
+ const x = this.pixelRatio;
2455
+ this.pixelRatio = h, this.setSize(this.getWidth() / x, this.getHeight() / x);
2456
2456
  }
2457
2457
  setWidth(h) {
2458
2458
  this.width = this._canvas.width = h * this.pixelRatio, this._canvas.style.width = h + "px";
2459
- const C = this.pixelRatio;
2460
- this.getContext()._context.scale(C, C);
2459
+ const x = this.pixelRatio;
2460
+ this.getContext()._context.scale(x, x);
2461
2461
  }
2462
2462
  setHeight(h) {
2463
2463
  this.height = this._canvas.height = h * this.pixelRatio, this._canvas.style.height = h + "px";
2464
- const C = this.pixelRatio;
2465
- this.getContext()._context.scale(C, C);
2464
+ const x = this.pixelRatio;
2465
+ this.getContext()._context.scale(x, x);
2466
2466
  }
2467
2467
  getWidth() {
2468
2468
  return this.width;
@@ -2470,12 +2470,12 @@ function n0() {
2470
2470
  getHeight() {
2471
2471
  return this.height;
2472
2472
  }
2473
- setSize(h, C) {
2474
- this.setWidth(h || 0), this.setHeight(C || 0);
2473
+ setSize(h, x) {
2474
+ this.setWidth(h || 0), this.setHeight(x || 0);
2475
2475
  }
2476
- toDataURL(h, C) {
2476
+ toDataURL(h, x) {
2477
2477
  try {
2478
- return this._canvas.toDataURL(h, C);
2478
+ return this._canvas.toDataURL(h, x);
2479
2479
  } catch {
2480
2480
  try {
2481
2481
  return this._canvas.toDataURL();
@@ -2505,7 +2505,7 @@ var Iv = {}, C2;
2505
2505
  function v1() {
2506
2506
  return C2 || (C2 = 1, function(o) {
2507
2507
  Object.defineProperty(o, "__esModule", { value: !0 }), o.DD = void 0;
2508
- const u = Et(), x = An();
2508
+ const u = Et(), C = An();
2509
2509
  o.DD = {
2510
2510
  get isDragging() {
2511
2511
  let P = !1;
@@ -2525,12 +2525,12 @@ function v1() {
2525
2525
  const R = [];
2526
2526
  o.DD._dragElements.forEach((g, p) => {
2527
2527
  const { node: m } = g, y = m.getStage();
2528
- y.setPointersPositions(P), g.pointerId === void 0 && (g.pointerId = x.Util._getFirstPointerId(P));
2529
- const h = y._changedPointerPositions.find((C) => C.id === g.pointerId);
2528
+ y.setPointersPositions(P), g.pointerId === void 0 && (g.pointerId = C.Util._getFirstPointerId(P));
2529
+ const h = y._changedPointerPositions.find((x) => x.id === g.pointerId);
2530
2530
  if (h) {
2531
2531
  if (g.dragStatus !== "dragging") {
2532
- const C = m.dragDistance();
2533
- if (Math.max(Math.abs(h.x - g.startPointerPos.x), Math.abs(h.y - g.startPointerPos.y)) < C || (m.startDrag({ evt: P }), !m.isDragging()))
2532
+ const x = m.dragDistance();
2533
+ if (Math.max(Math.abs(h.x - g.startPointerPos.x), Math.abs(h.y - g.startPointerPos.y)) < x || (m.startDrag({ evt: P }), !m.isDragging()))
2534
2534
  return;
2535
2535
  }
2536
2536
  m._setDragPosition(P, g), R.push(m);
@@ -2547,7 +2547,7 @@ function v1() {
2547
2547
  const R = [];
2548
2548
  o.DD._dragElements.forEach((g) => {
2549
2549
  const { node: p } = g, m = p.getStage();
2550
- if (P && m.setPointersPositions(P), !m._changedPointerPositions.find((C) => C.id === g.pointerId))
2550
+ if (P && m.setPointersPositions(P), !m._changedPointerPositions.find((x) => x.id === g.pointerId))
2551
2551
  return;
2552
2552
  (g.dragStatus === "dragging" || g.dragStatus === "stopped") && (o.DD.justDragged = !0, u.Konva._mouseListenClick = !1, u.Konva._touchListenClick = !1, u.Konva._pointerListenClick = !1, g.dragStatus = "stopped");
2553
2553
  const h = g.node.getLayer() || g.node instanceof u.Konva.Stage && g.node;
@@ -2571,9 +2571,9 @@ function v1() {
2571
2571
  var Yv = {}, oa = {}, E2;
2572
2572
  function zt() {
2573
2573
  if (E2) return oa;
2574
- E2 = 1, Object.defineProperty(oa, "__esModule", { value: !0 }), oa.RGBComponent = P, oa.alphaComponent = R, oa.getNumberValidator = g, oa.getNumberOrArrayOfNumbersValidator = p, oa.getNumberOrAutoValidator = m, oa.getStringValidator = y, oa.getStringOrGradientValidator = h, oa.getFunctionValidator = C, oa.getNumberArrayValidator = N, oa.getBooleanValidator = w, oa.getComponentValidator = S;
2574
+ E2 = 1, Object.defineProperty(oa, "__esModule", { value: !0 }), oa.RGBComponent = P, oa.alphaComponent = R, oa.getNumberValidator = g, oa.getNumberOrArrayOfNumbersValidator = p, oa.getNumberOrAutoValidator = m, oa.getStringValidator = y, oa.getStringOrGradientValidator = h, oa.getFunctionValidator = x, oa.getNumberArrayValidator = N, oa.getBooleanValidator = w, oa.getComponentValidator = S;
2575
2575
  const o = Et(), u = An();
2576
- function x(E) {
2576
+ function C(E) {
2577
2577
  return u.Util._isString(E) ? '"' + E + '"' : Object.prototype.toString.call(E) === "[object Number]" || u.Util._isBoolean(E) ? E : Object.prototype.toString.call(E);
2578
2578
  }
2579
2579
  function P(E) {
@@ -2585,39 +2585,39 @@ function zt() {
2585
2585
  function g() {
2586
2586
  if (o.Konva.isUnminified)
2587
2587
  return function(E, D) {
2588
- return u.Util._isNumber(E) || u.Util.warn(x(E) + ' is a not valid value for "' + D + '" attribute. The value should be a number.'), E;
2588
+ return u.Util._isNumber(E) || u.Util.warn(C(E) + ' is a not valid value for "' + D + '" attribute. The value should be a number.'), E;
2589
2589
  };
2590
2590
  }
2591
2591
  function p(E) {
2592
2592
  if (o.Konva.isUnminified)
2593
2593
  return function(D, H) {
2594
2594
  let B = u.Util._isNumber(D), b = u.Util._isArray(D) && D.length == E;
2595
- return !B && !b && u.Util.warn(x(D) + ' is a not valid value for "' + H + '" attribute. The value should be a number or Array<number>(' + E + ")"), D;
2595
+ return !B && !b && u.Util.warn(C(D) + ' is a not valid value for "' + H + '" attribute. The value should be a number or Array<number>(' + E + ")"), D;
2596
2596
  };
2597
2597
  }
2598
2598
  function m() {
2599
2599
  if (o.Konva.isUnminified)
2600
2600
  return function(E, D) {
2601
- return u.Util._isNumber(E) || E === "auto" || u.Util.warn(x(E) + ' is a not valid value for "' + D + '" attribute. The value should be a number or "auto".'), E;
2601
+ return u.Util._isNumber(E) || E === "auto" || u.Util.warn(C(E) + ' is a not valid value for "' + D + '" attribute. The value should be a number or "auto".'), E;
2602
2602
  };
2603
2603
  }
2604
2604
  function y() {
2605
2605
  if (o.Konva.isUnminified)
2606
2606
  return function(E, D) {
2607
- return u.Util._isString(E) || u.Util.warn(x(E) + ' is a not valid value for "' + D + '" attribute. The value should be a string.'), E;
2607
+ return u.Util._isString(E) || u.Util.warn(C(E) + ' is a not valid value for "' + D + '" attribute. The value should be a string.'), E;
2608
2608
  };
2609
2609
  }
2610
2610
  function h() {
2611
2611
  if (o.Konva.isUnminified)
2612
2612
  return function(E, D) {
2613
2613
  const H = u.Util._isString(E), B = Object.prototype.toString.call(E) === "[object CanvasGradient]" || E && E.addColorStop;
2614
- return H || B || u.Util.warn(x(E) + ' is a not valid value for "' + D + '" attribute. The value should be a string or a native gradient.'), E;
2614
+ return H || B || u.Util.warn(C(E) + ' is a not valid value for "' + D + '" attribute. The value should be a string or a native gradient.'), E;
2615
2615
  };
2616
2616
  }
2617
- function C() {
2617
+ function x() {
2618
2618
  if (o.Konva.isUnminified)
2619
2619
  return function(E, D) {
2620
- return u.Util._isFunction(E) || u.Util.warn(x(E) + ' is a not valid value for "' + D + '" attribute. The value should be a function.'), E;
2620
+ return u.Util._isFunction(E) || u.Util.warn(C(E) + ' is a not valid value for "' + D + '" attribute. The value should be a function.'), E;
2621
2621
  };
2622
2622
  }
2623
2623
  function N() {
@@ -2626,19 +2626,19 @@ function zt() {
2626
2626
  const H = Int8Array ? Object.getPrototypeOf(Int8Array) : null;
2627
2627
  return H && E instanceof H || (u.Util._isArray(E) ? E.forEach(function(B) {
2628
2628
  u.Util._isNumber(B) || u.Util.warn('"' + D + '" attribute has non numeric element ' + B + ". Make sure that all elements are numbers.");
2629
- }) : u.Util.warn(x(E) + ' is a not valid value for "' + D + '" attribute. The value should be a array of numbers.')), E;
2629
+ }) : u.Util.warn(C(E) + ' is a not valid value for "' + D + '" attribute. The value should be a array of numbers.')), E;
2630
2630
  };
2631
2631
  }
2632
2632
  function w() {
2633
2633
  if (o.Konva.isUnminified)
2634
2634
  return function(E, D) {
2635
- return E === !0 || E === !1 || u.Util.warn(x(E) + ' is a not valid value for "' + D + '" attribute. The value should be a boolean.'), E;
2635
+ return E === !0 || E === !1 || u.Util.warn(C(E) + ' is a not valid value for "' + D + '" attribute. The value should be a boolean.'), E;
2636
2636
  };
2637
2637
  }
2638
2638
  function S(E) {
2639
2639
  if (o.Konva.isUnminified)
2640
2640
  return function(D, H) {
2641
- return D == null || u.Util.isObject(D) || u.Util.warn(x(D) + ' is a not valid value for "' + H + '" attribute. The value should be an object with properties ' + E), D;
2641
+ return D == null || u.Util.isObject(D) || u.Util.warn(C(D) + ' is a not valid value for "' + H + '" attribute. The value should be an object with properties ' + E), D;
2642
2642
  };
2643
2643
  }
2644
2644
  return oa;
@@ -2647,7 +2647,7 @@ var b2;
2647
2647
  function Rt() {
2648
2648
  return b2 || (b2 = 1, function(o) {
2649
2649
  Object.defineProperty(o, "__esModule", { value: !0 }), o.Factory = void 0;
2650
- const u = An(), x = zt(), P = "get", R = "set";
2650
+ const u = An(), C = zt(), P = "get", R = "set";
2651
2651
  o.Factory = {
2652
2652
  addGetterSetter(g, p, m, y, h) {
2653
2653
  o.Factory.addGetter(g, p, m), o.Factory.addSetter(g, p, y, h), o.Factory.addOverloadedGetterSetter(g, p);
@@ -2665,21 +2665,21 @@ function Rt() {
2665
2665
  },
2666
2666
  overWriteSetter(g, p, m, y) {
2667
2667
  const h = R + u.Util._capitalize(p);
2668
- g.prototype[h] = function(C) {
2669
- return m && C !== void 0 && C !== null && (C = m.call(this, C, p)), this._setAttr(p, C), y && y.call(this), this;
2668
+ g.prototype[h] = function(x) {
2669
+ return m && x !== void 0 && x !== null && (x = m.call(this, x, p)), this._setAttr(p, x), y && y.call(this), this;
2670
2670
  };
2671
2671
  },
2672
2672
  addComponentsGetterSetter(g, p, m, y, h) {
2673
- const C = m.length, N = u.Util._capitalize, w = P + N(p), S = R + N(p);
2673
+ const x = m.length, N = u.Util._capitalize, w = P + N(p), S = R + N(p);
2674
2674
  g.prototype[w] = function() {
2675
2675
  const D = {};
2676
- for (let H = 0; H < C; H++) {
2676
+ for (let H = 0; H < x; H++) {
2677
2677
  const B = m[H];
2678
2678
  D[B] = this.getAttr(p + N(B));
2679
2679
  }
2680
2680
  return D;
2681
2681
  };
2682
- const E = (0, x.getComponentValidator)(m);
2682
+ const E = (0, C.getComponentValidator)(m);
2683
2683
  g.prototype[S] = function(D) {
2684
2684
  const H = this.attrs[p];
2685
2685
  y && (D = y.call(this, D, p)), E && E.call(this, D, p);
@@ -2698,22 +2698,22 @@ function Rt() {
2698
2698
  },
2699
2699
  addDeprecatedGetterSetter(g, p, m, y) {
2700
2700
  u.Util.error("Adding deprecated " + p);
2701
- const h = P + u.Util._capitalize(p), C = p + " property is deprecated and will be removed soon. Look at Konva change log for more information.";
2701
+ const h = P + u.Util._capitalize(p), x = p + " property is deprecated and will be removed soon. Look at Konva change log for more information.";
2702
2702
  g.prototype[h] = function() {
2703
- u.Util.error(C);
2703
+ u.Util.error(x);
2704
2704
  const N = this.attrs[p];
2705
2705
  return N === void 0 ? m : N;
2706
2706
  }, o.Factory.addSetter(g, p, y, function() {
2707
- u.Util.error(C);
2707
+ u.Util.error(x);
2708
2708
  }), o.Factory.addOverloadedGetterSetter(g, p);
2709
2709
  },
2710
2710
  backCompat(g, p) {
2711
2711
  u.Util.each(p, function(m, y) {
2712
- const h = g.prototype[y], C = P + u.Util._capitalize(m), N = R + u.Util._capitalize(m);
2712
+ const h = g.prototype[y], x = P + u.Util._capitalize(m), N = R + u.Util._capitalize(m);
2713
2713
  function w() {
2714
2714
  h.apply(this, arguments), u.Util.error('"' + m + '" method is deprecated and will be removed soon. Use ""' + y + '" instead.');
2715
2715
  }
2716
- g.prototype[m] = w, g.prototype[C] = w, g.prototype[N] = w;
2716
+ g.prototype[m] = w, g.prototype[x] = w, g.prototype[N] = w;
2717
2717
  });
2718
2718
  },
2719
2719
  afterSetFilter() {
@@ -2726,7 +2726,7 @@ var T2;
2726
2726
  function Mn() {
2727
2727
  if (T2) return $c;
2728
2728
  T2 = 1, Object.defineProperty($c, "__esModule", { value: !0 }), $c.Node = void 0;
2729
- const o = n0(), u = v1(), x = Rt(), P = Et(), R = An(), g = zt(), p = "absoluteOpacity", m = "allEventListeners", y = "absoluteTransform", h = "absoluteScale", C = "canvas", N = "Change", w = "children", S = "konva", E = "listening", D = "mouseenter", H = "mouseleave", B = "pointerenter", b = "pointerleave", v = "touchenter", M = "touchleave", L = "set", k = "Shape", J = " ", O = "stage", j = "transform", F = "Stage", X = "visible", K = [
2729
+ const o = n0(), u = v1(), C = Rt(), P = Et(), R = An(), g = zt(), p = "absoluteOpacity", m = "allEventListeners", y = "absoluteTransform", h = "absoluteScale", x = "canvas", N = "Change", w = "children", S = "konva", E = "listening", D = "mouseenter", H = "mouseleave", B = "pointerenter", b = "pointerleave", v = "touchenter", M = "touchleave", L = "set", k = "Shape", J = " ", O = "stage", j = "transform", F = "Stage", X = "visible", K = [
2730
2730
  "xChange.konva",
2731
2731
  "yChange.konva",
2732
2732
  "scaleXChange.konva",
@@ -2762,15 +2762,15 @@ function Mn() {
2762
2762
  return this._getCache(z, W);
2763
2763
  }
2764
2764
  _getCanvasCache() {
2765
- return this._cache.get(C);
2765
+ return this._cache.get(x);
2766
2766
  }
2767
2767
  _clearSelfAndDescendantCache(z) {
2768
2768
  this._clearCache(z), z === y && this.fire("absoluteTransformChange");
2769
2769
  }
2770
2770
  clearCache() {
2771
- if (this._cache.has(C)) {
2772
- const { scene: z, filter: U, hit: W, buffer: I } = this._cache.get(C);
2773
- R.Util.releaseCanvas(z, U, W, I), this._cache.delete(C);
2771
+ if (this._cache.has(x)) {
2772
+ const { scene: z, filter: U, hit: W, buffer: I } = this._cache.get(x);
2773
+ R.Util.releaseCanvas(z, U, W, I), this._cache.delete(x);
2774
2774
  }
2775
2775
  return this._clearSelfAndDescendantCache(), this._requestDraw(), this;
2776
2776
  }
@@ -2806,7 +2806,7 @@ function Mn() {
2806
2806
  height: Ae.height / Ae.pixelRatio + Math.abs(me),
2807
2807
  pixelRatio: Ae.pixelRatio
2808
2808
  }), $e = Ge.getContext();
2809
- return Ye.isCache = !0, Ae.isCache = !0, this._cache.delete(C), this._filterUpToDate = !1, U.imageSmoothingEnabled === !1 && (Ae.getContext()._context.imageSmoothingEnabled = !1, Me.getContext()._context.imageSmoothingEnabled = !1), Re.save(), ke.save(), $e.save(), Re.translate(-ne, -me), ke.translate(-ne, -me), $e.translate(-ne, -me), Ge.x = ne, Ge.y = me, this._isUnderCache = !0, this._clearSelfAndDescendantCache(p), this._clearSelfAndDescendantCache(h), this.drawScene(Ae, this, Ge), this.drawHit(Ye, this), this._isUnderCache = !1, Re.restore(), ke.restore(), se && (Re.save(), Re.beginPath(), Re.rect(0, 0, I, _), Re.closePath(), Re.setAttr("strokeStyle", "red"), Re.setAttr("lineWidth", 5), Re.stroke(), Re.restore()), this._cache.set(C, {
2809
+ return Ye.isCache = !0, Ae.isCache = !0, this._cache.delete(x), this._filterUpToDate = !1, U.imageSmoothingEnabled === !1 && (Ae.getContext()._context.imageSmoothingEnabled = !1, Me.getContext()._context.imageSmoothingEnabled = !1), Re.save(), ke.save(), $e.save(), Re.translate(-ne, -me), ke.translate(-ne, -me), $e.translate(-ne, -me), Ge.x = ne, Ge.y = me, this._isUnderCache = !0, this._clearSelfAndDescendantCache(p), this._clearSelfAndDescendantCache(h), this.drawScene(Ae, this, Ge), this.drawHit(Ye, this), this._isUnderCache = !1, Re.restore(), ke.restore(), se && (Re.save(), Re.beginPath(), Re.rect(0, 0, I, _), Re.closePath(), Re.setAttr("strokeStyle", "red"), Re.setAttr("lineWidth", 5), Re.stroke(), Re.restore()), this._cache.set(x, {
2810
2810
  scene: Ae,
2811
2811
  filter: Me,
2812
2812
  hit: Ye,
@@ -2816,7 +2816,7 @@ function Mn() {
2816
2816
  }), this._requestDraw(), this;
2817
2817
  }
2818
2818
  isCached() {
2819
- return this._cache.has(C);
2819
+ return this._cache.has(x);
2820
2820
  }
2821
2821
  getClientRect(z) {
2822
2822
  throw new Error('abstract "getClientRect" method call');
@@ -3525,10 +3525,10 @@ function Mn() {
3525
3525
  }), re.prototype.on.call(re.prototype, "opacityChange.konva", function() {
3526
3526
  this._clearSelfAndDescendantCache(p);
3527
3527
  });
3528
- const ee = x.Factory.addGetterSetter;
3529
- return ee(re, "zIndex"), ee(re, "absolutePosition"), ee(re, "position"), ee(re, "x", 0, (0, g.getNumberValidator)()), ee(re, "y", 0, (0, g.getNumberValidator)()), ee(re, "globalCompositeOperation", "source-over", (0, g.getStringValidator)()), ee(re, "opacity", 1, (0, g.getNumberValidator)()), ee(re, "name", "", (0, g.getStringValidator)()), ee(re, "id", "", (0, g.getStringValidator)()), ee(re, "rotation", 0, (0, g.getNumberValidator)()), x.Factory.addComponentsGetterSetter(re, "scale", ["x", "y"]), ee(re, "scaleX", 1, (0, g.getNumberValidator)()), ee(re, "scaleY", 1, (0, g.getNumberValidator)()), x.Factory.addComponentsGetterSetter(re, "skew", ["x", "y"]), ee(re, "skewX", 0, (0, g.getNumberValidator)()), ee(re, "skewY", 0, (0, g.getNumberValidator)()), x.Factory.addComponentsGetterSetter(re, "offset", ["x", "y"]), ee(re, "offsetX", 0, (0, g.getNumberValidator)()), ee(re, "offsetY", 0, (0, g.getNumberValidator)()), ee(re, "dragDistance", void 0, (0, g.getNumberValidator)()), ee(re, "width", 0, (0, g.getNumberValidator)()), ee(re, "height", 0, (0, g.getNumberValidator)()), ee(re, "listening", !0, (0, g.getBooleanValidator)()), ee(re, "preventDefault", !0, (0, g.getBooleanValidator)()), ee(re, "filters", void 0, function(pe) {
3528
+ const ee = C.Factory.addGetterSetter;
3529
+ return ee(re, "zIndex"), ee(re, "absolutePosition"), ee(re, "position"), ee(re, "x", 0, (0, g.getNumberValidator)()), ee(re, "y", 0, (0, g.getNumberValidator)()), ee(re, "globalCompositeOperation", "source-over", (0, g.getStringValidator)()), ee(re, "opacity", 1, (0, g.getNumberValidator)()), ee(re, "name", "", (0, g.getStringValidator)()), ee(re, "id", "", (0, g.getStringValidator)()), ee(re, "rotation", 0, (0, g.getNumberValidator)()), C.Factory.addComponentsGetterSetter(re, "scale", ["x", "y"]), ee(re, "scaleX", 1, (0, g.getNumberValidator)()), ee(re, "scaleY", 1, (0, g.getNumberValidator)()), C.Factory.addComponentsGetterSetter(re, "skew", ["x", "y"]), ee(re, "skewX", 0, (0, g.getNumberValidator)()), ee(re, "skewY", 0, (0, g.getNumberValidator)()), C.Factory.addComponentsGetterSetter(re, "offset", ["x", "y"]), ee(re, "offsetX", 0, (0, g.getNumberValidator)()), ee(re, "offsetY", 0, (0, g.getNumberValidator)()), ee(re, "dragDistance", void 0, (0, g.getNumberValidator)()), ee(re, "width", 0, (0, g.getNumberValidator)()), ee(re, "height", 0, (0, g.getNumberValidator)()), ee(re, "listening", !0, (0, g.getBooleanValidator)()), ee(re, "preventDefault", !0, (0, g.getBooleanValidator)()), ee(re, "filters", void 0, function(pe) {
3530
3530
  return this._filterUpToDate = !1, pe;
3531
- }), ee(re, "visible", !0, (0, g.getBooleanValidator)()), ee(re, "transformsEnabled", "all", (0, g.getStringValidator)()), ee(re, "size"), ee(re, "dragBoundFunc"), ee(re, "draggable", !1, (0, g.getBooleanValidator)()), x.Factory.backCompat(re, {
3531
+ }), ee(re, "visible", !0, (0, g.getBooleanValidator)()), ee(re, "transformsEnabled", "all", (0, g.getStringValidator)()), ee(re, "size"), ee(re, "dragBoundFunc"), ee(re, "draggable", !1, (0, g.getBooleanValidator)()), C.Factory.backCompat(re, {
3532
3532
  rotateDeg: "rotate",
3533
3533
  setRotationDeg: "setRotation",
3534
3534
  getRotationDeg: "getRotation"
@@ -3538,7 +3538,7 @@ var ef = {}, w2;
3538
3538
  function r0() {
3539
3539
  if (w2) return ef;
3540
3540
  w2 = 1, Object.defineProperty(ef, "__esModule", { value: !0 }), ef.Container = void 0;
3541
- const o = Rt(), u = Mn(), x = zt();
3541
+ const o = Rt(), u = Mn(), C = zt();
3542
3542
  let P = class extends u.Node {
3543
3543
  constructor() {
3544
3544
  super(...arguments), this.children = [];
@@ -3641,13 +3641,13 @@ function r0() {
3641
3641
  }), this._requestDraw();
3642
3642
  }
3643
3643
  drawScene(g, p, m) {
3644
- const y = this.getLayer(), h = g || y && y.getCanvas(), C = h && h.getContext(), N = this._getCanvasCache(), w = N && N.scene, S = h && h.isCache;
3644
+ const y = this.getLayer(), h = g || y && y.getCanvas(), x = h && h.getContext(), N = this._getCanvasCache(), w = N && N.scene, S = h && h.isCache;
3645
3645
  if (!this.isVisible() && !S)
3646
3646
  return this;
3647
3647
  if (w) {
3648
- C.save();
3648
+ x.save();
3649
3649
  const E = this.getAbsoluteTransform(p).getMatrix();
3650
- C.transform(E[0], E[1], E[2], E[3], E[4], E[5]), this._drawCachedSceneCanvas(C), C.restore();
3650
+ x.transform(E[0], E[1], E[2], E[3], E[4], E[5]), this._drawCachedSceneCanvas(x), x.restore();
3651
3651
  } else
3652
3652
  this._drawChildren("drawScene", h, p, m);
3653
3653
  return this;
@@ -3655,8 +3655,8 @@ function r0() {
3655
3655
  drawHit(g, p) {
3656
3656
  if (!this.shouldDrawHit(p))
3657
3657
  return this;
3658
- const m = this.getLayer(), y = g || m && m.hitCanvas, h = y && y.getContext(), C = this._getCanvasCache();
3659
- if (C && C.hit) {
3658
+ const m = this.getLayer(), y = g || m && m.hitCanvas, h = y && y.getContext(), x = this._getCanvasCache();
3659
+ if (x && x.hit) {
3660
3660
  h.save();
3661
3661
  const w = this.getAbsoluteTransform(p).getMatrix();
3662
3662
  h.transform(w[0], w[1], w[2], w[3], w[4], w[5]), this._drawCachedHitCanvas(h), h.restore();
@@ -3666,30 +3666,30 @@ function r0() {
3666
3666
  }
3667
3667
  _drawChildren(g, p, m, y) {
3668
3668
  var h;
3669
- const C = p && p.getContext(), N = this.clipWidth(), w = this.clipHeight(), S = this.clipFunc(), E = typeof N == "number" && typeof w == "number" || S, D = m === this;
3669
+ const x = p && p.getContext(), N = this.clipWidth(), w = this.clipHeight(), S = this.clipFunc(), E = typeof N == "number" && typeof w == "number" || S, D = m === this;
3670
3670
  if (E) {
3671
- C.save();
3671
+ x.save();
3672
3672
  const B = this.getAbsoluteTransform(m);
3673
3673
  let b = B.getMatrix();
3674
- C.transform(b[0], b[1], b[2], b[3], b[4], b[5]), C.beginPath();
3674
+ x.transform(b[0], b[1], b[2], b[3], b[4], b[5]), x.beginPath();
3675
3675
  let v;
3676
3676
  if (S)
3677
- v = S.call(this, C, this);
3677
+ v = S.call(this, x, this);
3678
3678
  else {
3679
3679
  const M = this.clipX(), L = this.clipY();
3680
- C.rect(M || 0, L || 0, N, w);
3680
+ x.rect(M || 0, L || 0, N, w);
3681
3681
  }
3682
- C.clip.apply(C, v), b = B.copy().invert().getMatrix(), C.transform(b[0], b[1], b[2], b[3], b[4], b[5]);
3682
+ x.clip.apply(x, v), b = B.copy().invert().getMatrix(), x.transform(b[0], b[1], b[2], b[3], b[4], b[5]);
3683
3683
  }
3684
3684
  const H = !D && this.globalCompositeOperation() !== "source-over" && g === "drawScene";
3685
- H && (C.save(), C._applyGlobalCompositeOperation(this)), (h = this.children) === null || h === void 0 || h.forEach(function(B) {
3685
+ H && (x.save(), x._applyGlobalCompositeOperation(this)), (h = this.children) === null || h === void 0 || h.forEach(function(B) {
3686
3686
  B[g](p, m, y);
3687
- }), H && C.restore(), E && C.restore();
3687
+ }), H && x.restore(), E && x.restore();
3688
3688
  }
3689
3689
  getClientRect(g = {}) {
3690
3690
  var p;
3691
3691
  const m = g.skipTransform, y = g.relativeTo;
3692
- let h, C, N, w, S = {
3692
+ let h, x, N, w, S = {
3693
3693
  x: 1 / 0,
3694
3694
  y: 1 / 0,
3695
3695
  width: 0,
@@ -3704,7 +3704,7 @@ function r0() {
3704
3704
  skipShadow: g.skipShadow,
3705
3705
  skipStroke: g.skipStroke
3706
3706
  });
3707
- b.width === 0 && b.height === 0 || (h === void 0 ? (h = b.x, C = b.y, N = b.x + b.width, w = b.y + b.height) : (h = Math.min(h, b.x), C = Math.min(C, b.y), N = Math.max(N, b.x + b.width), w = Math.max(w, b.y + b.height)));
3707
+ b.width === 0 && b.height === 0 || (h === void 0 ? (h = b.x, x = b.y, N = b.x + b.width, w = b.y + b.height) : (h = Math.min(h, b.x), x = Math.min(x, b.y), N = Math.max(N, b.x + b.width), w = Math.max(w, b.y + b.height)));
3708
3708
  });
3709
3709
  const D = this.find("Shape");
3710
3710
  let H = !1;
@@ -3715,9 +3715,9 @@ function r0() {
3715
3715
  }
3716
3716
  return H && h !== void 0 ? S = {
3717
3717
  x: h,
3718
- y: C,
3718
+ y: x,
3719
3719
  width: N - h,
3720
- height: w - C
3720
+ height: w - x
3721
3721
  } : S = {
3722
3722
  x: 0,
3723
3723
  y: 0,
@@ -3731,13 +3731,13 @@ function r0() {
3731
3731
  "y",
3732
3732
  "width",
3733
3733
  "height"
3734
- ]), o.Factory.addGetterSetter(P, "clipX", void 0, (0, x.getNumberValidator)()), o.Factory.addGetterSetter(P, "clipY", void 0, (0, x.getNumberValidator)()), o.Factory.addGetterSetter(P, "clipWidth", void 0, (0, x.getNumberValidator)()), o.Factory.addGetterSetter(P, "clipHeight", void 0, (0, x.getNumberValidator)()), o.Factory.addGetterSetter(P, "clipFunc"), ef;
3734
+ ]), o.Factory.addGetterSetter(P, "clipX", void 0, (0, C.getNumberValidator)()), o.Factory.addGetterSetter(P, "clipY", void 0, (0, C.getNumberValidator)()), o.Factory.addGetterSetter(P, "clipWidth", void 0, (0, C.getNumberValidator)()), o.Factory.addGetterSetter(P, "clipHeight", void 0, (0, C.getNumberValidator)()), o.Factory.addGetterSetter(P, "clipFunc"), ef;
3735
3735
  }
3736
3736
  var Xv = {}, rs = {}, A2;
3737
3737
  function s5() {
3738
3738
  if (A2) return rs;
3739
3739
  A2 = 1, Object.defineProperty(rs, "__esModule", { value: !0 }), rs.getCapturedShape = P, rs.createEvent = R, rs.hasPointerCapture = g, rs.setPointerCapture = p, rs.releaseCapture = m;
3740
- const o = Et(), u = /* @__PURE__ */ new Map(), x = o.Konva._global.PointerEvent !== void 0;
3740
+ const o = Et(), u = /* @__PURE__ */ new Map(), C = o.Konva._global.PointerEvent !== void 0;
3741
3741
  function P(y) {
3742
3742
  return u.get(y);
3743
3743
  }
@@ -3751,14 +3751,14 @@ function s5() {
3751
3751
  return u.get(y) === h;
3752
3752
  }
3753
3753
  function p(y, h) {
3754
- m(y), h.getStage() && (u.set(y, h), x && h._fire("gotpointercapture", R(new PointerEvent("gotpointercapture"))));
3754
+ m(y), h.getStage() && (u.set(y, h), C && h._fire("gotpointercapture", R(new PointerEvent("gotpointercapture"))));
3755
3755
  }
3756
3756
  function m(y, h) {
3757
- const C = u.get(y);
3758
- if (!C)
3757
+ const x = u.get(y);
3758
+ if (!x)
3759
3759
  return;
3760
- const N = C.getStage();
3761
- N && N.content, u.delete(y), x && C._fire("lostpointercapture", R(new PointerEvent("lostpointercapture")));
3760
+ const N = x.getStage();
3761
+ N && N.content, u.delete(y), C && x._fire("lostpointercapture", R(new PointerEvent("lostpointercapture")));
3762
3762
  }
3763
3763
  return rs;
3764
3764
  }
@@ -3766,7 +3766,7 @@ var R2;
3766
3766
  function x9() {
3767
3767
  return R2 || (R2 = 1, function(o) {
3768
3768
  Object.defineProperty(o, "__esModule", { value: !0 }), o.Stage = o.stages = void 0;
3769
- const u = An(), x = Rt(), P = r0(), R = Et(), g = n0(), p = v1(), m = Et(), y = s5(), h = "Stage", C = "string", N = "px", w = "mouseout", S = "mouseleave", E = "mouseover", D = "mouseenter", H = "mousemove", B = "mousedown", b = "mouseup", v = "pointermove", M = "pointerdown", L = "pointerup", k = "pointercancel", J = "lostpointercapture", O = "pointerout", j = "pointerleave", F = "pointerover", X = "pointerenter", K = "contextmenu", $ = "touchstart", re = "touchend", ee = "touchmove", pe = "touchcancel", z = "wheel", U = 5, W = [
3769
+ const u = An(), C = Rt(), P = r0(), R = Et(), g = n0(), p = v1(), m = Et(), y = s5(), h = "Stage", x = "string", N = "px", w = "mouseout", S = "mouseleave", E = "mouseover", D = "mouseenter", H = "mousemove", B = "mousedown", b = "mouseup", v = "pointermove", M = "pointerdown", L = "pointerup", k = "pointercancel", J = "lostpointercapture", O = "pointerout", j = "pointerleave", F = "pointerover", X = "pointerenter", K = "contextmenu", $ = "touchstart", re = "touchend", ee = "touchmove", pe = "touchcancel", z = "wheel", U = 5, W = [
3770
3770
  [D, "_pointerenter"],
3771
3771
  [B, "_pointerdown"],
3772
3772
  [H, "_pointermove"],
@@ -3853,7 +3853,7 @@ function x9() {
3853
3853
  this.content.style.display = Z;
3854
3854
  }
3855
3855
  setContainer(Z) {
3856
- if (typeof Z === C) {
3856
+ if (typeof Z === x) {
3857
3857
  let ae;
3858
3858
  if (Z.charAt(0) === ".") {
3859
3859
  const Ce = Z.slice(1);
@@ -4193,7 +4193,7 @@ function x9() {
4193
4193
  }), this;
4194
4194
  }
4195
4195
  }
4196
- o.Stage = we, we.prototype.nodeType = h, (0, m._registerNode)(we), x.Factory.addGetterSetter(we, "container"), R.Konva.isBrowser && document.addEventListener("visibilitychange", () => {
4196
+ o.Stage = we, we.prototype.nodeType = h, (0, m._registerNode)(we), C.Factory.addGetterSetter(we, "container"), R.Konva.isBrowser && document.addEventListener("visibilitychange", () => {
4197
4197
  o.stages.forEach((se) => {
4198
4198
  se.batchDraw();
4199
4199
  });
@@ -4204,10 +4204,10 @@ var tf = {}, Wv = {}, N2;
4204
4204
  function sr() {
4205
4205
  return N2 || (N2 = 1, function(o) {
4206
4206
  Object.defineProperty(o, "__esModule", { value: !0 }), o.Shape = o.shapes = void 0;
4207
- const u = Et(), x = An(), P = Rt(), R = Mn(), g = zt(), p = Et(), m = s5(), y = "hasShadow", h = "shadowRGBA", C = "patternImage", N = "linearGradient", w = "radialGradient";
4207
+ const u = Et(), C = An(), P = Rt(), R = Mn(), g = zt(), p = Et(), m = s5(), y = "hasShadow", h = "shadowRGBA", x = "patternImage", N = "linearGradient", w = "radialGradient";
4208
4208
  let S;
4209
4209
  function E() {
4210
- return S || (S = x.Util.createCanvasElement().getContext("2d"), S);
4210
+ return S || (S = C.Util.createCanvasElement().getContext("2d"), S);
4211
4211
  }
4212
4212
  o.shapes = {};
4213
4213
  function D(j) {
@@ -4231,7 +4231,7 @@ function sr() {
4231
4231
  this._clearCache(h);
4232
4232
  }
4233
4233
  function L() {
4234
- this._clearCache(C);
4234
+ this._clearCache(x);
4235
4235
  }
4236
4236
  function k() {
4237
4237
  this._clearCache(N);
@@ -4243,15 +4243,15 @@ function sr() {
4243
4243
  constructor(F) {
4244
4244
  super(F);
4245
4245
  let X;
4246
- for (; X = x.Util.getRandomColor(), !(X && !(X in o.shapes)); )
4246
+ for (; X = C.Util.getRandomColor(), !(X && !(X in o.shapes)); )
4247
4247
  ;
4248
4248
  this.colorKey = X, o.shapes[X] = this;
4249
4249
  }
4250
4250
  getContext() {
4251
- return x.Util.warn("shape.getContext() method is deprecated. Please do not use it."), this.getLayer().getContext();
4251
+ return C.Util.warn("shape.getContext() method is deprecated. Please do not use it."), this.getLayer().getContext();
4252
4252
  }
4253
4253
  getCanvas() {
4254
- return x.Util.warn("shape.getCanvas() method is deprecated. Please do not use it."), this.getLayer().getCanvas();
4254
+ return C.Util.warn("shape.getCanvas() method is deprecated. Please do not use it."), this.getLayer().getCanvas();
4255
4255
  }
4256
4256
  getSceneFunc() {
4257
4257
  return this.attrs.sceneFunc || this._sceneFunc;
@@ -4266,13 +4266,13 @@ function sr() {
4266
4266
  return this.shadowEnabled() && this.shadowOpacity() !== 0 && !!(this.shadowColor() || this.shadowBlur() || this.shadowOffsetX() || this.shadowOffsetY());
4267
4267
  }
4268
4268
  _getFillPattern() {
4269
- return this._getCache(C, this.__getFillPattern);
4269
+ return this._getCache(x, this.__getFillPattern);
4270
4270
  }
4271
4271
  __getFillPattern() {
4272
4272
  if (this.fillPatternImage()) {
4273
4273
  const X = E().createPattern(this.fillPatternImage(), this.fillPatternRepeat() || "repeat");
4274
4274
  if (X && X.setTransform) {
4275
- const K = new x.Transform();
4275
+ const K = new C.Transform();
4276
4276
  K.translate(this.fillPatternX(), this.fillPatternY()), K.rotate(u.Konva.getAngle(this.fillPatternRotation())), K.scale(this.fillPatternScaleX(), this.fillPatternScaleY()), K.translate(-1 * this.fillPatternOffsetX(), -1 * this.fillPatternOffsetY());
4277
4277
  const $ = K.getMatrix(), re = typeof DOMMatrix > "u" ? {
4278
4278
  a: $[0],
@@ -4317,7 +4317,7 @@ function sr() {
4317
4317
  _getShadowRGBA() {
4318
4318
  if (!this.hasShadow())
4319
4319
  return;
4320
- const F = x.Util.colorToRGBA(this.shadowColor());
4320
+ const F = C.Util.colorToRGBA(this.shadowColor());
4321
4321
  if (F)
4322
4322
  return "rgba(" + F.r + "," + F.g + "," + F.b + "," + F.a * (this.shadowOpacity() || 1) + ")";
4323
4323
  }
@@ -4363,7 +4363,7 @@ function sr() {
4363
4363
  return !!($ && re && pe && z);
4364
4364
  }
4365
4365
  setStrokeHitEnabled(F) {
4366
- x.Util.warn("strokeHitEnabled property is deprecated. Please use hitStrokeWidth instead."), F ? this.hitStrokeWidth("auto") : this.hitStrokeWidth(0);
4366
+ C.Util.warn("strokeHitEnabled property is deprecated. Please use hitStrokeWidth instead."), F ? this.hitStrokeWidth("auto") : this.hitStrokeWidth(0);
4367
4367
  }
4368
4368
  getStrokeHitEnabled() {
4369
4369
  return this.hitStrokeWidth() !== 0;
@@ -4428,7 +4428,7 @@ function sr() {
4428
4428
  if (!this.shouldDrawHit(X, K))
4429
4429
  return this;
4430
4430
  const $ = this.getLayer(), re = F || $.hitCanvas, ee = re && re.getContext(), pe = this.hitFunc() || this.sceneFunc(), z = this._getCanvasCache(), U = z && z.hit;
4431
- if (this.colorKey || x.Util.warn("Looks like your canvas has a destroyed shape in it. Do not reuse shape after you destroyed it. If you want to reuse shape you should call remove() instead of destroy()"), U) {
4431
+ if (this.colorKey || C.Util.warn("Looks like your canvas has a destroyed shape in it. Do not reuse shape after you destroyed it. If you want to reuse shape you should call remove() instead of destroy()"), U) {
4432
4432
  ee.save();
4433
4433
  const I = this.getAbsoluteTransform(X).getMatrix();
4434
4434
  return ee.transform(I[0], I[1], I[2], I[3], I[4], I[5]), this._drawCachedHitCanvas(ee), ee.restore(), this;
@@ -4445,12 +4445,12 @@ function sr() {
4445
4445
  const X = this._getCanvasCache(), K = this._getCachedSceneCanvas(), $ = X.hit, re = $.getContext(), ee = $.getWidth(), pe = $.getHeight();
4446
4446
  re.clear(), re.drawImage(K._canvas, 0, 0, ee, pe);
4447
4447
  try {
4448
- const z = re.getImageData(0, 0, ee, pe), U = z.data, W = U.length, I = x.Util._hexToRgb(this.colorKey);
4448
+ const z = re.getImageData(0, 0, ee, pe), U = z.data, W = U.length, I = C.Util._hexToRgb(this.colorKey);
4449
4449
  for (let _ = 0; _ < W; _ += 4)
4450
4450
  U[_ + 3] > F ? (U[_] = I.r, U[_ + 1] = I.g, U[_ + 2] = I.b, U[_ + 3] = 255) : U[_ + 3] = 0;
4451
4451
  re.putImageData(z, 0, 0);
4452
4452
  } catch (z) {
4453
- x.Util.error("Unable to draw hit graph from cached scene canvas. " + z.message);
4453
+ C.Util.error("Unable to draw hit graph from cached scene canvas. " + z.message);
4454
4454
  }
4455
4455
  return this;
4456
4456
  }
@@ -4499,7 +4499,7 @@ var D2;
4499
4499
  function o5() {
4500
4500
  if (D2) return tf;
4501
4501
  D2 = 1, Object.defineProperty(tf, "__esModule", { value: !0 }), tf.Layer = void 0;
4502
- const o = An(), u = r0(), x = Mn(), P = Rt(), R = n0(), g = zt(), p = sr(), m = Et(), y = "#", h = "beforeDraw", C = "draw", N = [
4502
+ const o = An(), u = r0(), C = Mn(), P = Rt(), R = n0(), g = zt(), p = sr(), m = Et(), y = "#", h = "beforeDraw", x = "draw", N = [
4503
4503
  { x: 0, y: 0 },
4504
4504
  { x: -1, y: -1 },
4505
4505
  { x: 1, y: -1 },
@@ -4536,18 +4536,18 @@ function o5() {
4536
4536
  return H && H.content && (H.content.removeChild(this.getNativeCanvasElement()), D < H.children.length - 1 ? H.content.insertBefore(this.getNativeCanvasElement(), H.children[D + 1].getCanvas()._canvas) : H.content.appendChild(this.getNativeCanvasElement())), this;
4537
4537
  }
4538
4538
  moveToTop() {
4539
- x.Node.prototype.moveToTop.call(this);
4539
+ C.Node.prototype.moveToTop.call(this);
4540
4540
  const D = this.getStage();
4541
4541
  return D && D.content && (D.content.removeChild(this.getNativeCanvasElement()), D.content.appendChild(this.getNativeCanvasElement())), !0;
4542
4542
  }
4543
4543
  moveUp() {
4544
- if (!x.Node.prototype.moveUp.call(this))
4544
+ if (!C.Node.prototype.moveUp.call(this))
4545
4545
  return !1;
4546
4546
  const H = this.getStage();
4547
4547
  return !H || !H.content ? !1 : (H.content.removeChild(this.getNativeCanvasElement()), this.index < H.children.length - 1 ? H.content.insertBefore(this.getNativeCanvasElement(), H.children[this.index + 1].getCanvas()._canvas) : H.content.appendChild(this.getNativeCanvasElement()), !0);
4548
4548
  }
4549
4549
  moveDown() {
4550
- if (x.Node.prototype.moveDown.call(this)) {
4550
+ if (C.Node.prototype.moveDown.call(this)) {
4551
4551
  const D = this.getStage();
4552
4552
  if (D) {
4553
4553
  const H = D.children;
@@ -4558,7 +4558,7 @@ function o5() {
4558
4558
  return !1;
4559
4559
  }
4560
4560
  moveToBottom() {
4561
- if (x.Node.prototype.moveToBottom.call(this)) {
4561
+ if (C.Node.prototype.moveToBottom.call(this)) {
4562
4562
  const D = this.getStage();
4563
4563
  if (D) {
4564
4564
  const H = D.children;
@@ -4573,7 +4573,7 @@ function o5() {
4573
4573
  }
4574
4574
  remove() {
4575
4575
  const D = this.getNativeCanvasElement();
4576
- return x.Node.prototype.remove.call(this), D && D.parentNode && o.Util._isInDocument(D) && D.parentNode.removeChild(D), this;
4576
+ return C.Node.prototype.remove.call(this), D && D.parentNode && o.Util._isInDocument(D) && D.parentNode.removeChild(D), this;
4577
4577
  }
4578
4578
  getStage() {
4579
4579
  return this.parent;
@@ -4586,7 +4586,7 @@ function o5() {
4586
4586
  H !== "Group" && H !== "Shape" && o.Util.throw("You may only add groups and shapes to a layer.");
4587
4587
  }
4588
4588
  _toKonvaCanvas(D) {
4589
- return D = D || {}, D.width = D.width || this.getWidth(), D.height = D.height || this.getHeight(), D.x = D.x !== void 0 ? D.x : this.x(), D.y = D.y !== void 0 ? D.y : this.y(), x.Node.prototype._toKonvaCanvas.call(this, D);
4589
+ return D = D || {}, D.width = D.width || this.getWidth(), D.height = D.height || this.getHeight(), D.x = D.x !== void 0 ? D.x : this.x(), D.y = D.y !== void 0 ? D.y : this.y(), C.Node.prototype._toKonvaCanvas.call(this, D);
4590
4590
  }
4591
4591
  _checkVisibility() {
4592
4592
  this.visible() ? this.canvas._canvas.style.display = "block" : this.canvas._canvas.style.display = "none";
@@ -4653,7 +4653,7 @@ function o5() {
4653
4653
  const b = this.getLayer(), v = D || b && b.getCanvas();
4654
4654
  return this._fire(h, {
4655
4655
  node: this
4656
- }), this.clearBeforeDraw() && v.getContext().clear(), u.Container.prototype.drawScene.call(this, v, H, B), this._fire(C, {
4656
+ }), this.clearBeforeDraw() && v.getContext().clear(), u.Container.prototype.drawScene.call(this, v, H, B), this._fire(x, {
4657
4657
  node: this
4658
4658
  }), this;
4659
4659
  }
@@ -4689,32 +4689,32 @@ var nf = {}, P2;
4689
4689
  function C9() {
4690
4690
  if (P2) return nf;
4691
4691
  P2 = 1, Object.defineProperty(nf, "__esModule", { value: !0 }), nf.FastLayer = void 0;
4692
- const o = An(), u = o5(), x = Et();
4692
+ const o = An(), u = o5(), C = Et();
4693
4693
  let P = class extends u.Layer {
4694
4694
  constructor(g) {
4695
4695
  super(g), this.listening(!1), o.Util.warn('Konva.Fast layer is deprecated. Please use "new Konva.Layer({ listening: false })" instead.');
4696
4696
  }
4697
4697
  };
4698
- return nf.FastLayer = P, P.prototype.nodeType = "FastLayer", (0, x._registerNode)(P), nf;
4698
+ return nf.FastLayer = P, P.prototype.nodeType = "FastLayer", (0, C._registerNode)(P), nf;
4699
4699
  }
4700
4700
  var rf = {}, M2;
4701
4701
  function m1() {
4702
4702
  if (M2) return rf;
4703
4703
  M2 = 1, Object.defineProperty(rf, "__esModule", { value: !0 }), rf.Group = void 0;
4704
- const o = An(), u = r0(), x = Et();
4704
+ const o = An(), u = r0(), C = Et();
4705
4705
  let P = class extends u.Container {
4706
4706
  _validateAdd(g) {
4707
4707
  const p = g.getType();
4708
4708
  p !== "Group" && p !== "Shape" && o.Util.throw("You may only add groups and shapes to groups.");
4709
4709
  }
4710
4710
  };
4711
- return rf.Group = P, P.prototype.nodeType = "Group", (0, x._registerNode)(P), rf;
4711
+ return rf.Group = P, P.prototype.nodeType = "Group", (0, C._registerNode)(P), rf;
4712
4712
  }
4713
4713
  var af = {}, L2;
4714
4714
  function g1() {
4715
4715
  if (L2) return af;
4716
4716
  L2 = 1, Object.defineProperty(af, "__esModule", { value: !0 }), af.Animation = void 0;
4717
- const o = Et(), u = An(), x = function() {
4717
+ const o = Et(), u = An(), C = function() {
4718
4718
  return o.glob.performance && o.glob.performance.now ? function() {
4719
4719
  return o.glob.performance.now();
4720
4720
  } : function() {
@@ -4726,7 +4726,7 @@ function g1() {
4726
4726
  this.id = Eu.animIdCounter++, this.frame = {
4727
4727
  time: 0,
4728
4728
  timeDiff: 0,
4729
- lastTime: x(),
4729
+ lastTime: C(),
4730
4730
  frameRate: 0
4731
4731
  }, this.func = g, this.setLayers(p);
4732
4732
  }
@@ -4752,7 +4752,7 @@ function g1() {
4752
4752
  return !1;
4753
4753
  }
4754
4754
  start() {
4755
- return this.stop(), this.frame.timeDiff = 0, this.frame.lastTime = x(), Eu._addAnimation(this), this;
4755
+ return this.stop(), this.frame.timeDiff = 0, this.frame.lastTime = C(), Eu._addAnimation(this), this;
4756
4756
  }
4757
4757
  stop() {
4758
4758
  return Eu._removeAnimation(this), this;
@@ -4774,11 +4774,11 @@ function g1() {
4774
4774
  static _runFrames() {
4775
4775
  const g = {}, p = this.animations;
4776
4776
  for (let m = 0; m < p.length; m++) {
4777
- const y = p[m], h = y.layers, C = y.func;
4778
- y._updateFrameObject(x());
4777
+ const y = p[m], h = y.layers, x = y.func;
4778
+ y._updateFrameObject(C());
4779
4779
  const N = h.length;
4780
4780
  let w;
4781
- if (C ? w = C.call(y, y.frame) !== !1 : w = !0, !!w)
4781
+ if (x ? w = x.call(y, y.frame) !== !1 : w = !0, !!w)
4782
4782
  for (let S = 0; S < N; S++) {
4783
4783
  const E = h[S];
4784
4784
  E._id !== void 0 && (g[E._id] = E);
@@ -4801,14 +4801,14 @@ var Qv = {}, O2;
4801
4801
  function E9() {
4802
4802
  return O2 || (O2 = 1, function(o) {
4803
4803
  Object.defineProperty(o, "__esModule", { value: !0 }), o.Easings = o.Tween = void 0;
4804
- const u = An(), x = g1(), P = Mn(), R = Et(), g = {
4804
+ const u = An(), C = g1(), P = Mn(), R = Et(), g = {
4805
4805
  node: 1,
4806
4806
  duration: 1,
4807
4807
  easing: 1,
4808
4808
  onFinish: 1,
4809
4809
  yoyo: 1
4810
4810
  }, p = 1, m = 2, y = 3, h = ["fill", "stroke", "shadowColor"];
4811
- let C = 0;
4811
+ let x = 0;
4812
4812
  class N {
4813
4813
  constructor(E, D, H, B, b, v, M) {
4814
4814
  this.prop = E, this.propFunc = D, this.begin = B, this._pos = B, this.duration = v, this._change = 0, this.prevPos = 0, this.yoyo = M, this._time = 0, this._position = 0, this._startTime = 0, this._finish = 0, this.func = H, this._change = b - this.begin, this.pause();
@@ -4862,9 +4862,9 @@ function E9() {
4862
4862
  constructor(E) {
4863
4863
  const D = this, H = E.node, B = H._id, b = E.easing || o.Easings.Linear, v = !!E.yoyo;
4864
4864
  let M, L;
4865
- typeof E.duration > "u" ? M = 0.3 : E.duration === 0 ? M = 1e-3 : M = E.duration, this.node = H, this._id = C++;
4865
+ typeof E.duration > "u" ? M = 0.3 : E.duration === 0 ? M = 1e-3 : M = E.duration, this.node = H, this._id = x++;
4866
4866
  const k = H.getLayer() || (H instanceof R.Konva.Stage ? H.getLayers() : null);
4867
- k || u.Util.error("Tween constructor have `node` that is not in a layer. Please add node into layer first."), this.anim = new x.Animation(function() {
4867
+ k || u.Util.error("Tween constructor have `node` that is not in a layer. Please add node into layer first."), this.anim = new C.Animation(function() {
4868
4868
  D.tween.onEnterFrame();
4869
4869
  }, k), this.tween = new N(L, function(J) {
4870
4870
  D._tweenFunc(J);
@@ -5033,10 +5033,10 @@ var z2;
5033
5033
  function c1() {
5034
5034
  return z2 || (z2 = 1, function(o) {
5035
5035
  Object.defineProperty(o, "__esModule", { value: !0 }), o.Konva = void 0;
5036
- const u = Et(), x = An(), P = Mn(), R = r0(), g = x9(), p = o5(), m = C9(), y = m1(), h = v1(), C = sr(), N = g1(), w = E9(), S = l5(), E = n0();
5037
- o.Konva = x.Util._assign(u.Konva, {
5038
- Util: x.Util,
5039
- Transform: x.Transform,
5036
+ const u = Et(), C = An(), P = Mn(), R = r0(), g = x9(), p = o5(), m = C9(), y = m1(), h = v1(), x = sr(), N = g1(), w = E9(), S = l5(), E = n0();
5037
+ o.Konva = C.Util._assign(u.Konva, {
5038
+ Util: C.Util,
5039
+ Transform: C.Transform,
5040
5040
  Node: P.Node,
5041
5041
  Container: R.Container,
5042
5042
  Stage: g.Stage,
@@ -5045,8 +5045,8 @@ function c1() {
5045
5045
  FastLayer: m.FastLayer,
5046
5046
  Group: y.Group,
5047
5047
  DD: h.DD,
5048
- Shape: C.Shape,
5049
- shapes: C.shapes,
5048
+ Shape: x.Shape,
5049
+ shapes: x.shapes,
5050
5050
  Animation: N.Animation,
5051
5051
  Tween: w.Tween,
5052
5052
  Easings: w.Easings,
@@ -5059,10 +5059,10 @@ var lf = {}, F2;
5059
5059
  function b9() {
5060
5060
  if (F2) return lf;
5061
5061
  F2 = 1, Object.defineProperty(lf, "__esModule", { value: !0 }), lf.Arc = void 0;
5062
- const o = Rt(), u = sr(), x = Et(), P = zt(), R = Et();
5062
+ const o = Rt(), u = sr(), C = Et(), P = zt(), R = Et();
5063
5063
  let g = class extends u.Shape {
5064
5064
  _sceneFunc(m) {
5065
- const y = x.Konva.getAngle(this.angle()), h = this.clockwise();
5065
+ const y = C.Konva.getAngle(this.angle()), h = this.clockwise();
5066
5066
  m.beginPath(), m.arc(0, 0, this.outerRadius(), 0, y, h), m.arc(0, 0, this.innerRadius(), y, 0, !h), m.closePath(), m.fillStrokeShape(this);
5067
5067
  }
5068
5068
  getWidth() {
@@ -5078,7 +5078,7 @@ function b9() {
5078
5078
  this.outerRadius(m / 2);
5079
5079
  }
5080
5080
  getSelfRect() {
5081
- const m = this.innerRadius(), y = this.outerRadius(), h = this.clockwise(), C = x.Konva.getAngle(h ? 360 - this.angle() : this.angle()), N = Math.cos(Math.min(C, Math.PI)), w = 1, S = Math.sin(Math.min(Math.max(Math.PI, C), 3 * Math.PI / 2)), E = Math.sin(Math.min(C, Math.PI / 2)), D = N * (N > 0 ? m : y), H = w * y, B = S * (S > 0 ? m : y), b = E * (E > 0 ? y : m);
5081
+ const m = this.innerRadius(), y = this.outerRadius(), h = this.clockwise(), x = C.Konva.getAngle(h ? 360 - this.angle() : this.angle()), N = Math.cos(Math.min(x, Math.PI)), w = 1, S = Math.sin(Math.min(Math.max(Math.PI, x), 3 * Math.PI / 2)), E = Math.sin(Math.min(x, Math.PI / 2)), D = N * (N > 0 ? m : y), H = w * y, B = S * (S > 0 ? m : y), b = E * (E > 0 ? y : m);
5082
5082
  return {
5083
5083
  x: D,
5084
5084
  y: h ? -1 * b : B,
@@ -5098,40 +5098,40 @@ var sf = {}, of = {}, G2;
5098
5098
  function u5() {
5099
5099
  if (G2) return of;
5100
5100
  G2 = 1, Object.defineProperty(of, "__esModule", { value: !0 }), of.Line = void 0;
5101
- const o = Rt(), u = Et(), x = sr(), P = zt();
5102
- function R(m, y, h, C, N, w, S) {
5103
- const E = Math.sqrt(Math.pow(h - m, 2) + Math.pow(C - y, 2)), D = Math.sqrt(Math.pow(N - h, 2) + Math.pow(w - C, 2)), H = S * E / (E + D), B = S * D / (E + D), b = h - H * (N - m), v = C - H * (w - y), M = h + B * (N - m), L = C + B * (w - y);
5101
+ const o = Rt(), u = Et(), C = sr(), P = zt();
5102
+ function R(m, y, h, x, N, w, S) {
5103
+ const E = Math.sqrt(Math.pow(h - m, 2) + Math.pow(x - y, 2)), D = Math.sqrt(Math.pow(N - h, 2) + Math.pow(w - x, 2)), H = S * E / (E + D), B = S * D / (E + D), b = h - H * (N - m), v = x - H * (w - y), M = h + B * (N - m), L = x + B * (w - y);
5104
5104
  return [b, v, M, L];
5105
5105
  }
5106
5106
  function g(m, y) {
5107
- const h = m.length, C = [];
5107
+ const h = m.length, x = [];
5108
5108
  for (let N = 2; N < h - 2; N += 2) {
5109
5109
  const w = R(m[N - 2], m[N - 1], m[N], m[N + 1], m[N + 2], m[N + 3], y);
5110
- isNaN(w[0]) || (C.push(w[0]), C.push(w[1]), C.push(m[N]), C.push(m[N + 1]), C.push(w[2]), C.push(w[3]));
5110
+ isNaN(w[0]) || (x.push(w[0]), x.push(w[1]), x.push(m[N]), x.push(m[N + 1]), x.push(w[2]), x.push(w[3]));
5111
5111
  }
5112
- return C;
5112
+ return x;
5113
5113
  }
5114
- class p extends x.Shape {
5114
+ class p extends C.Shape {
5115
5115
  constructor(y) {
5116
5116
  super(y), this.on("pointsChange.konva tensionChange.konva closedChange.konva bezierChange.konva", function() {
5117
5117
  this._clearCache("tensionPoints");
5118
5118
  });
5119
5119
  }
5120
5120
  _sceneFunc(y) {
5121
- const h = this.points(), C = h.length, N = this.tension(), w = this.closed(), S = this.bezier();
5122
- if (!C)
5121
+ const h = this.points(), x = h.length, N = this.tension(), w = this.closed(), S = this.bezier();
5122
+ if (!x)
5123
5123
  return;
5124
5124
  let E = 0;
5125
- if (y.beginPath(), y.moveTo(h[0], h[1]), N !== 0 && C > 4) {
5125
+ if (y.beginPath(), y.moveTo(h[0], h[1]), N !== 0 && x > 4) {
5126
5126
  const D = this.getTensionPoints(), H = D.length;
5127
5127
  for (E = w ? 0 : 4, w || y.quadraticCurveTo(D[0], D[1], D[2], D[3]); E < H - 2; )
5128
5128
  y.bezierCurveTo(D[E++], D[E++], D[E++], D[E++], D[E++], D[E++]);
5129
- w || y.quadraticCurveTo(D[H - 2], D[H - 1], h[C - 2], h[C - 1]);
5129
+ w || y.quadraticCurveTo(D[H - 2], D[H - 1], h[x - 2], h[x - 1]);
5130
5130
  } else if (S)
5131
- for (E = 2; E < C; )
5131
+ for (E = 2; E < x; )
5132
5132
  y.bezierCurveTo(h[E++], h[E++], h[E++], h[E++], h[E++], h[E++]);
5133
5133
  else
5134
- for (E = 2; E < C; E += 2)
5134
+ for (E = 2; E < x; E += 2)
5135
5135
  y.lineTo(h[E], h[E + 1]);
5136
5136
  w ? (y.closePath(), y.fillStrokeShape(this)) : y.strokeShape(this);
5137
5137
  }
@@ -5142,7 +5142,7 @@ function u5() {
5142
5142
  return this.closed() ? this._getTensionPointsClosed() : g(this.points(), this.tension());
5143
5143
  }
5144
5144
  _getTensionPointsClosed() {
5145
- const y = this.points(), h = y.length, C = this.tension(), N = R(y[h - 2], y[h - 1], y[0], y[1], y[2], y[3], C), w = R(y[h - 4], y[h - 3], y[h - 2], y[h - 1], y[0], y[1], C), S = g(y, C);
5145
+ const y = this.points(), h = y.length, x = this.tension(), N = R(y[h - 2], y[h - 1], y[0], y[1], y[2], y[3], x), w = R(y[h - 4], y[h - 3], y[h - 2], y[h - 1], y[0], y[1], x), S = g(y, x);
5146
5146
  return [N[2], N[3]].concat(S).concat([
5147
5147
  w[0],
5148
5148
  w[1],
@@ -5178,13 +5178,13 @@ function u5() {
5178
5178
  y[y.length - 2],
5179
5179
  y[y.length - 1]
5180
5180
  ] : y = this.points();
5181
- let h = y[0], C = y[0], N = y[1], w = y[1], S, E;
5181
+ let h = y[0], x = y[0], N = y[1], w = y[1], S, E;
5182
5182
  for (let D = 0; D < y.length / 2; D++)
5183
- S = y[D * 2], E = y[D * 2 + 1], h = Math.min(h, S), C = Math.max(C, S), N = Math.min(N, E), w = Math.max(w, E);
5183
+ S = y[D * 2], E = y[D * 2 + 1], h = Math.min(h, S), x = Math.max(x, S), N = Math.min(N, E), w = Math.max(w, E);
5184
5184
  return {
5185
5185
  x: h,
5186
5186
  y: N,
5187
- width: C - h,
5187
+ width: x - h,
5188
5188
  height: w - N
5189
5189
  };
5190
5190
  }
@@ -5889,30 +5889,30 @@ function T9() {
5889
5889
  ]
5890
5890
  ], o.binomialCoefficients = [[1], [1, 1], [1, 2, 1], [1, 3, 3, 1]];
5891
5891
  const u = (p, m, y) => {
5892
- let h, C;
5892
+ let h, x;
5893
5893
  const w = y / 2;
5894
5894
  h = 0;
5895
5895
  for (let S = 0; S < 20; S++)
5896
- C = w * o.tValues[20][S] + w, h += o.cValues[20][S] * P(p, m, C);
5896
+ x = w * o.tValues[20][S] + w, h += o.cValues[20][S] * P(p, m, x);
5897
5897
  return w * h;
5898
5898
  };
5899
5899
  o.getCubicArcLength = u;
5900
- const x = (p, m, y) => {
5900
+ const C = (p, m, y) => {
5901
5901
  y === void 0 && (y = 1);
5902
- const h = p[0] - 2 * p[1] + p[2], C = m[0] - 2 * m[1] + m[2], N = 2 * p[1] - 2 * p[0], w = 2 * m[1] - 2 * m[0], S = 4 * (h * h + C * C), E = 4 * (h * N + C * w), D = N * N + w * w;
5902
+ const h = p[0] - 2 * p[1] + p[2], x = m[0] - 2 * m[1] + m[2], N = 2 * p[1] - 2 * p[0], w = 2 * m[1] - 2 * m[0], S = 4 * (h * h + x * x), E = 4 * (h * N + x * w), D = N * N + w * w;
5903
5903
  if (S === 0)
5904
5904
  return y * Math.sqrt(Math.pow(p[2] - p[0], 2) + Math.pow(m[2] - m[0], 2));
5905
5905
  const H = E / (2 * S), B = D / S, b = y + H, v = B - H * H, M = b * b + v > 0 ? Math.sqrt(b * b + v) : 0, L = H * H + v > 0 ? Math.sqrt(H * H + v) : 0, k = H + Math.sqrt(H * H + v) !== 0 ? v * Math.log(Math.abs((b + M) / (H + L))) : 0;
5906
5906
  return Math.sqrt(S) / 2 * (b * M - H * L + k);
5907
5907
  };
5908
- o.getQuadraticArcLength = x;
5908
+ o.getQuadraticArcLength = C;
5909
5909
  function P(p, m, y) {
5910
- const h = R(1, y, p), C = R(1, y, m), N = h * h + C * C;
5910
+ const h = R(1, y, p), x = R(1, y, m), N = h * h + x * x;
5911
5911
  return Math.sqrt(N);
5912
5912
  }
5913
5913
  const R = (p, m, y) => {
5914
5914
  const h = y.length - 1;
5915
- let C, N;
5915
+ let x, N;
5916
5916
  if (h === 0)
5917
5917
  return 0;
5918
5918
  if (p === 0) {
@@ -5921,25 +5921,25 @@ function T9() {
5921
5921
  N += o.binomialCoefficients[h][w] * Math.pow(1 - m, h - w) * Math.pow(m, w) * y[w];
5922
5922
  return N;
5923
5923
  } else {
5924
- C = new Array(h);
5924
+ x = new Array(h);
5925
5925
  for (let w = 0; w < h; w++)
5926
- C[w] = h * (y[w + 1] - y[w]);
5927
- return R(p - 1, m, C);
5926
+ x[w] = h * (y[w + 1] - y[w]);
5927
+ return R(p - 1, m, x);
5928
5928
  }
5929
5929
  }, g = (p, m, y) => {
5930
- let h = 1, C = p / m, N = (p - y(C)) / m, w = 0;
5930
+ let h = 1, x = p / m, N = (p - y(x)) / m, w = 0;
5931
5931
  for (; h > 1e-3; ) {
5932
- const S = y(C + N), E = Math.abs(p - S) / m;
5932
+ const S = y(x + N), E = Math.abs(p - S) / m;
5933
5933
  if (E < h)
5934
- h = E, C += N;
5934
+ h = E, x += N;
5935
5935
  else {
5936
- const D = y(C - N), H = Math.abs(p - D) / m;
5937
- H < h ? (h = H, C -= N) : N /= 2;
5936
+ const D = y(x - N), H = Math.abs(p - D) / m;
5937
+ H < h ? (h = H, x -= N) : N /= 2;
5938
5938
  }
5939
5939
  if (w++, w > 500)
5940
5940
  break;
5941
5941
  }
5942
- return C;
5942
+ return x;
5943
5943
  };
5944
5944
  o.t2length = g;
5945
5945
  }(Jv)), Jv;
@@ -5948,8 +5948,8 @@ var j2;
5948
5948
  function y1() {
5949
5949
  if (j2) return uf;
5950
5950
  j2 = 1, Object.defineProperty(uf, "__esModule", { value: !0 }), uf.Path = void 0;
5951
- const o = Rt(), u = Et(), x = sr(), P = T9();
5952
- let R = class ua extends x.Shape {
5951
+ const o = Rt(), u = Et(), C = sr(), P = T9();
5952
+ let R = class ua extends C.Shape {
5953
5953
  constructor(p) {
5954
5954
  super(p), this.dataArray = [], this.pathLength = 0, this._readDataAttribute(), this.on("dataChange.konva", function() {
5955
5955
  this._readDataAttribute();
@@ -5963,8 +5963,8 @@ function y1() {
5963
5963
  p.beginPath();
5964
5964
  let y = !1;
5965
5965
  for (let h = 0; h < m.length; h++) {
5966
- const C = m[h].command, N = m[h].points;
5967
- switch (C) {
5966
+ const x = m[h].command, N = m[h].points;
5967
+ switch (x) {
5968
5968
  case "L":
5969
5969
  p.lineTo(N[0], N[1]);
5970
5970
  break;
@@ -6012,14 +6012,14 @@ function y1() {
6012
6012
  else
6013
6013
  p = p.concat(S.points);
6014
6014
  });
6015
- let m = p[0], y = p[0], h = p[1], C = p[1], N, w;
6015
+ let m = p[0], y = p[0], h = p[1], x = p[1], N, w;
6016
6016
  for (let S = 0; S < p.length / 2; S++)
6017
- N = p[S * 2], w = p[S * 2 + 1], isNaN(N) || (m = Math.min(m, N), y = Math.max(y, N)), isNaN(w) || (h = Math.min(h, w), C = Math.max(C, w));
6017
+ N = p[S * 2], w = p[S * 2 + 1], isNaN(N) || (m = Math.min(m, N), y = Math.max(y, N)), isNaN(w) || (h = Math.min(h, w), x = Math.max(x, w));
6018
6018
  return {
6019
6019
  x: m,
6020
6020
  y: h,
6021
6021
  width: y - m,
6022
- height: C - h
6022
+ height: x - h
6023
6023
  };
6024
6024
  }
6025
6025
  getLength() {
@@ -6038,12 +6038,12 @@ function y1() {
6038
6038
  return m;
6039
6039
  }
6040
6040
  static getPointAtLengthOfDataArray(p, m) {
6041
- let y, h = 0, C = m.length;
6042
- if (!C)
6041
+ let y, h = 0, x = m.length;
6042
+ if (!x)
6043
6043
  return null;
6044
- for (; h < C && p > m[h].pathLength; )
6044
+ for (; h < x && p > m[h].pathLength; )
6045
6045
  p -= m[h].pathLength, ++h;
6046
- if (h === C)
6046
+ if (h === x)
6047
6047
  return y = m[h - 1].points.slice(-2), {
6048
6048
  x: y[0],
6049
6049
  y: y[1]
@@ -6071,20 +6071,20 @@ function y1() {
6071
6071
  }
6072
6072
  return null;
6073
6073
  }
6074
- static getPointOnLine(p, m, y, h, C, N, w) {
6074
+ static getPointOnLine(p, m, y, h, x, N, w) {
6075
6075
  N = N ?? m, w = w ?? y;
6076
- const S = this.getLineLength(m, y, h, C);
6076
+ const S = this.getLineLength(m, y, h, x);
6077
6077
  if (S < 1e-10)
6078
6078
  return { x: m, y };
6079
6079
  if (h === m)
6080
- return { x: N, y: w + (C > y ? p : -p) };
6081
- const E = (C - y) / (h - m), D = Math.sqrt(p * p / (1 + E * E)) * (h < m ? -1 : 1), H = E * D;
6080
+ return { x: N, y: w + (x > y ? p : -p) };
6081
+ const E = (x - y) / (h - m), D = Math.sqrt(p * p / (1 + E * E)) * (h < m ? -1 : 1), H = E * D;
6082
6082
  if (Math.abs(w - y - E * (N - m)) < 1e-10)
6083
6083
  return { x: N + D, y: w + H };
6084
- const B = ((N - m) * (h - m) + (w - y) * (C - y)) / (S * S), b = m + B * (h - m), v = y + B * (C - y), M = this.getLineLength(N, w, b, v), L = Math.sqrt(p * p - M * M), k = Math.sqrt(L * L / (1 + E * E)) * (h < m ? -1 : 1), J = E * k;
6084
+ const B = ((N - m) * (h - m) + (w - y) * (x - y)) / (S * S), b = m + B * (h - m), v = y + B * (x - y), M = this.getLineLength(N, w, b, v), L = Math.sqrt(p * p - M * M), k = Math.sqrt(L * L / (1 + E * E)) * (h < m ? -1 : 1), J = E * k;
6085
6085
  return { x: b + k, y: v + J };
6086
6086
  }
6087
- static getPointOnCubicBezier(p, m, y, h, C, N, w, S, E) {
6087
+ static getPointOnCubicBezier(p, m, y, h, x, N, w, S, E) {
6088
6088
  function D(L) {
6089
6089
  return L * L * L;
6090
6090
  }
@@ -6097,10 +6097,10 @@ function y1() {
6097
6097
  function b(L) {
6098
6098
  return (1 - L) * (1 - L) * (1 - L);
6099
6099
  }
6100
- const v = S * D(p) + N * H(p) + h * B(p) + m * b(p), M = E * D(p) + w * H(p) + C * B(p) + y * b(p);
6100
+ const v = S * D(p) + N * H(p) + h * B(p) + m * b(p), M = E * D(p) + w * H(p) + x * B(p) + y * b(p);
6101
6101
  return { x: v, y: M };
6102
6102
  }
6103
- static getPointOnQuadraticBezier(p, m, y, h, C, N, w) {
6103
+ static getPointOnQuadraticBezier(p, m, y, h, x, N, w) {
6104
6104
  function S(b) {
6105
6105
  return b * b;
6106
6106
  }
@@ -6110,13 +6110,13 @@ function y1() {
6110
6110
  function D(b) {
6111
6111
  return (1 - b) * (1 - b);
6112
6112
  }
6113
- const H = N * S(p) + h * E(p) + m * D(p), B = w * S(p) + C * E(p) + y * D(p);
6113
+ const H = N * S(p) + h * E(p) + m * D(p), B = w * S(p) + x * E(p) + y * D(p);
6114
6114
  return { x: H, y: B };
6115
6115
  }
6116
- static getPointOnEllipticalArc(p, m, y, h, C, N) {
6116
+ static getPointOnEllipticalArc(p, m, y, h, x, N) {
6117
6117
  const w = Math.cos(N), S = Math.sin(N), E = {
6118
- x: y * Math.cos(C),
6119
- y: h * Math.sin(C)
6118
+ x: y * Math.cos(x),
6119
+ y: h * Math.sin(x)
6120
6120
  };
6121
6121
  return {
6122
6122
  x: p + (E.x * w - E.y * S),
@@ -6152,7 +6152,7 @@ function y1() {
6152
6152
  m = m.replace(new RegExp(" ", "g"), ",");
6153
6153
  for (let H = 0; H < y.length; H++)
6154
6154
  m = m.replace(new RegExp(y[H], "g"), "|" + y[H]);
6155
- const h = m.split("|"), C = [], N = [];
6155
+ const h = m.split("|"), x = [], N = [];
6156
6156
  let w = 0, S = 0;
6157
6157
  const E = /([-+]?((\d+\.\d+)|((\d+)|(\.\d+)))(?:e[-+]?\d+)?)/gi;
6158
6158
  let D;
@@ -6182,10 +6182,10 @@ function y1() {
6182
6182
  break;
6183
6183
  case "m":
6184
6184
  const U = v.shift(), W = v.shift();
6185
- if (w += U, S += W, M = "M", C.length > 2 && C[C.length - 1].command === "z") {
6186
- for (let I = C.length - 2; I >= 0; I--)
6187
- if (C[I].command === "M") {
6188
- w = C[I].points[0] + U, S = C[I].points[1] + W;
6185
+ if (w += U, S += W, M = "M", x.length > 2 && x[x.length - 1].command === "z") {
6186
+ for (let I = x.length - 2; I >= 0; I--)
6187
+ if (x[I].command === "M") {
6188
+ w = x[I].points[0] + U, S = x[I].points[1] + W;
6189
6189
  break;
6190
6190
  }
6191
6191
  }
@@ -6213,10 +6213,10 @@ function y1() {
6213
6213
  L.push(w + v.shift(), S + v.shift(), w + v.shift(), S + v.shift()), w += v.shift(), S += v.shift(), M = "C", L.push(w, S);
6214
6214
  break;
6215
6215
  case "S":
6216
- j = w, F = S, O = C[C.length - 1], O.command === "C" && (j = w + (w - O.points[2]), F = S + (S - O.points[3])), L.push(j, F, v.shift(), v.shift()), w = v.shift(), S = v.shift(), M = "C", L.push(w, S);
6216
+ j = w, F = S, O = x[x.length - 1], O.command === "C" && (j = w + (w - O.points[2]), F = S + (S - O.points[3])), L.push(j, F, v.shift(), v.shift()), w = v.shift(), S = v.shift(), M = "C", L.push(w, S);
6217
6217
  break;
6218
6218
  case "s":
6219
- j = w, F = S, O = C[C.length - 1], O.command === "C" && (j = w + (w - O.points[2]), F = S + (S - O.points[3])), L.push(j, F, w + v.shift(), S + v.shift()), w += v.shift(), S += v.shift(), M = "C", L.push(w, S);
6219
+ j = w, F = S, O = x[x.length - 1], O.command === "C" && (j = w + (w - O.points[2]), F = S + (S - O.points[3])), L.push(j, F, w + v.shift(), S + v.shift()), w += v.shift(), S += v.shift(), M = "C", L.push(w, S);
6220
6220
  break;
6221
6221
  case "Q":
6222
6222
  L.push(v.shift(), v.shift()), w = v.shift(), S = v.shift(), L.push(w, S);
@@ -6225,10 +6225,10 @@ function y1() {
6225
6225
  L.push(w + v.shift(), S + v.shift()), w += v.shift(), S += v.shift(), M = "Q", L.push(w, S);
6226
6226
  break;
6227
6227
  case "T":
6228
- j = w, F = S, O = C[C.length - 1], O.command === "Q" && (j = w + (w - O.points[0]), F = S + (S - O.points[1])), w = v.shift(), S = v.shift(), M = "Q", L.push(j, F, w, S);
6228
+ j = w, F = S, O = x[x.length - 1], O.command === "Q" && (j = w + (w - O.points[0]), F = S + (S - O.points[1])), w = v.shift(), S = v.shift(), M = "Q", L.push(j, F, w, S);
6229
6229
  break;
6230
6230
  case "t":
6231
- j = w, F = S, O = C[C.length - 1], O.command === "Q" && (j = w + (w - O.points[0]), F = S + (S - O.points[1])), w += v.shift(), S += v.shift(), M = "Q", L.push(j, F, w, S);
6231
+ j = w, F = S, O = x[x.length - 1], O.command === "Q" && (j = w + (w - O.points[0]), F = S + (S - O.points[1])), w += v.shift(), S += v.shift(), M = "Q", L.push(j, F, w, S);
6232
6232
  break;
6233
6233
  case "A":
6234
6234
  X = v.shift(), K = v.shift(), $ = v.shift(), re = v.shift(), ee = v.shift(), pe = w, z = S, w = v.shift(), S = v.shift(), M = "A", L = this.convertEndpointToCenterParameterization(pe, z, w, S, re, ee, X, K, $);
@@ -6237,7 +6237,7 @@ function y1() {
6237
6237
  X = v.shift(), K = v.shift(), $ = v.shift(), re = v.shift(), ee = v.shift(), pe = w, z = S, w += v.shift(), S += v.shift(), M = "A", L = this.convertEndpointToCenterParameterization(pe, z, w, S, re, ee, X, K, $);
6238
6238
  break;
6239
6239
  }
6240
- C.push({
6240
+ x.push({
6241
6241
  command: M || b,
6242
6242
  points: L,
6243
6243
  start: {
@@ -6247,17 +6247,17 @@ function y1() {
6247
6247
  pathLength: this.calcLength(k, J, M || b, L)
6248
6248
  });
6249
6249
  }
6250
- (b === "z" || b === "Z") && C.push({
6250
+ (b === "z" || b === "Z") && x.push({
6251
6251
  command: "z",
6252
6252
  points: [],
6253
6253
  start: void 0,
6254
6254
  pathLength: 0
6255
6255
  });
6256
6256
  }
6257
- return C;
6257
+ return x;
6258
6258
  }
6259
6259
  static calcLength(p, m, y, h) {
6260
- let C, N, w, S;
6260
+ let x, N, w, S;
6261
6261
  const E = ua;
6262
6262
  switch (y) {
6263
6263
  case "L":
@@ -6267,24 +6267,24 @@ function y1() {
6267
6267
  case "Q":
6268
6268
  return (0, P.getQuadraticArcLength)([p, h[0], h[2]], [m, h[1], h[3]], 1);
6269
6269
  case "A":
6270
- C = 0;
6270
+ x = 0;
6271
6271
  const D = h[4], H = h[5], B = h[4] + H;
6272
6272
  let b = Math.PI / 180;
6273
6273
  if (Math.abs(D - B) < b && (b = Math.abs(D - B)), N = E.getPointOnEllipticalArc(h[0], h[1], h[2], h[3], D, 0), H < 0)
6274
6274
  for (S = D - b; S > B; S -= b)
6275
- w = E.getPointOnEllipticalArc(h[0], h[1], h[2], h[3], S, 0), C += E.getLineLength(N.x, N.y, w.x, w.y), N = w;
6275
+ w = E.getPointOnEllipticalArc(h[0], h[1], h[2], h[3], S, 0), x += E.getLineLength(N.x, N.y, w.x, w.y), N = w;
6276
6276
  else
6277
6277
  for (S = D + b; S < B; S += b)
6278
- w = E.getPointOnEllipticalArc(h[0], h[1], h[2], h[3], S, 0), C += E.getLineLength(N.x, N.y, w.x, w.y), N = w;
6279
- return w = E.getPointOnEllipticalArc(h[0], h[1], h[2], h[3], B, 0), C += E.getLineLength(N.x, N.y, w.x, w.y), C;
6278
+ w = E.getPointOnEllipticalArc(h[0], h[1], h[2], h[3], S, 0), x += E.getLineLength(N.x, N.y, w.x, w.y), N = w;
6279
+ return w = E.getPointOnEllipticalArc(h[0], h[1], h[2], h[3], B, 0), x += E.getLineLength(N.x, N.y, w.x, w.y), x;
6280
6280
  }
6281
6281
  return 0;
6282
6282
  }
6283
- static convertEndpointToCenterParameterization(p, m, y, h, C, N, w, S, E) {
6283
+ static convertEndpointToCenterParameterization(p, m, y, h, x, N, w, S, E) {
6284
6284
  const D = E * (Math.PI / 180), H = Math.cos(D) * (p - y) / 2 + Math.sin(D) * (m - h) / 2, B = -1 * Math.sin(D) * (p - y) / 2 + Math.cos(D) * (m - h) / 2, b = H * H / (w * w) + B * B / (S * S);
6285
6285
  b > 1 && (w *= Math.sqrt(b), S *= Math.sqrt(b));
6286
6286
  let v = Math.sqrt((w * w * (S * S) - w * w * (B * B) - S * S * (H * H)) / (w * w * (B * B) + S * S * (H * H)));
6287
- C === N && (v *= -1), isNaN(v) && (v = 0);
6287
+ x === N && (v *= -1), isNaN(v) && (v = 0);
6288
6288
  const M = v * w * B / S, L = v * -S * H / w, k = (p + y) / 2 + Math.cos(D) * M - Math.sin(D) * L, J = (m + h) / 2 + Math.sin(D) * M + Math.cos(D) * L, O = function(ee) {
6289
6289
  return Math.sqrt(ee[0] * ee[0] + ee[1] * ee[1]);
6290
6290
  }, j = function(ee, pe) {
@@ -6302,30 +6302,30 @@ var B2;
6302
6302
  function w9() {
6303
6303
  if (B2) return sf;
6304
6304
  B2 = 1, Object.defineProperty(sf, "__esModule", { value: !0 }), sf.Arrow = void 0;
6305
- const o = Rt(), u = u5(), x = zt(), P = Et(), R = y1();
6305
+ const o = Rt(), u = u5(), C = zt(), P = Et(), R = y1();
6306
6306
  let g = class extends u.Line {
6307
6307
  _sceneFunc(m) {
6308
6308
  super._sceneFunc(m);
6309
6309
  const y = Math.PI * 2, h = this.points();
6310
- let C = h;
6310
+ let x = h;
6311
6311
  const N = this.tension() !== 0 && h.length > 4;
6312
- N && (C = this.getTensionPoints());
6312
+ N && (x = this.getTensionPoints());
6313
6313
  const w = this.pointerLength(), S = h.length;
6314
6314
  let E, D;
6315
6315
  if (N) {
6316
6316
  const b = [
6317
- C[C.length - 4],
6318
- C[C.length - 3],
6319
- C[C.length - 2],
6320
- C[C.length - 1],
6317
+ x[x.length - 4],
6318
+ x[x.length - 3],
6319
+ x[x.length - 2],
6320
+ x[x.length - 1],
6321
6321
  h[S - 2],
6322
6322
  h[S - 1]
6323
- ], v = R.Path.calcLength(C[C.length - 4], C[C.length - 3], "C", b), M = R.Path.getPointOnQuadraticBezier(Math.min(1, 1 - w / v), b[0], b[1], b[2], b[3], b[4], b[5]);
6323
+ ], v = R.Path.calcLength(x[x.length - 4], x[x.length - 3], "C", b), M = R.Path.getPointOnQuadraticBezier(Math.min(1, 1 - w / v), b[0], b[1], b[2], b[3], b[4], b[5]);
6324
6324
  E = h[S - 2] - M.x, D = h[S - 1] - M.y;
6325
6325
  } else
6326
6326
  E = h[S - 2] - h[S - 4], D = h[S - 1] - h[S - 3];
6327
6327
  const H = (Math.atan2(D, E) + y) % y, B = this.pointerWidth();
6328
- this.pointerAtEnding() && (m.save(), m.beginPath(), m.translate(h[S - 2], h[S - 1]), m.rotate(H), m.moveTo(0, 0), m.lineTo(-w, B / 2), m.lineTo(-w, -B / 2), m.closePath(), m.restore(), this.__fillStroke(m)), this.pointerAtBeginning() && (m.save(), m.beginPath(), m.translate(h[0], h[1]), N ? (E = (C[0] + C[2]) / 2 - h[0], D = (C[1] + C[3]) / 2 - h[1]) : (E = h[2] - h[0], D = h[3] - h[1]), m.rotate((Math.atan2(-D, -E) + y) % y), m.moveTo(0, 0), m.lineTo(-w, B / 2), m.lineTo(-w, -B / 2), m.closePath(), m.restore(), this.__fillStroke(m));
6328
+ this.pointerAtEnding() && (m.save(), m.beginPath(), m.translate(h[S - 2], h[S - 1]), m.rotate(H), m.moveTo(0, 0), m.lineTo(-w, B / 2), m.lineTo(-w, -B / 2), m.closePath(), m.restore(), this.__fillStroke(m)), this.pointerAtBeginning() && (m.save(), m.beginPath(), m.translate(h[0], h[1]), N ? (E = (x[0] + x[2]) / 2 - h[0], D = (x[1] + x[3]) / 2 - h[1]) : (E = h[2] - h[0], D = h[3] - h[1]), m.rotate((Math.atan2(-D, -E) + y) % y), m.moveTo(0, 0), m.lineTo(-w, B / 2), m.lineTo(-w, -B / 2), m.closePath(), m.restore(), this.__fillStroke(m));
6329
6329
  }
6330
6330
  __fillStroke(m) {
6331
6331
  const y = this.dashEnabled();
@@ -6341,13 +6341,13 @@ function w9() {
6341
6341
  };
6342
6342
  }
6343
6343
  };
6344
- return sf.Arrow = g, g.prototype.className = "Arrow", (0, P._registerNode)(g), o.Factory.addGetterSetter(g, "pointerLength", 10, (0, x.getNumberValidator)()), o.Factory.addGetterSetter(g, "pointerWidth", 10, (0, x.getNumberValidator)()), o.Factory.addGetterSetter(g, "pointerAtBeginning", !1), o.Factory.addGetterSetter(g, "pointerAtEnding", !0), sf;
6344
+ return sf.Arrow = g, g.prototype.className = "Arrow", (0, P._registerNode)(g), o.Factory.addGetterSetter(g, "pointerLength", 10, (0, C.getNumberValidator)()), o.Factory.addGetterSetter(g, "pointerWidth", 10, (0, C.getNumberValidator)()), o.Factory.addGetterSetter(g, "pointerAtBeginning", !1), o.Factory.addGetterSetter(g, "pointerAtEnding", !0), sf;
6345
6345
  }
6346
6346
  var cf = {}, H2;
6347
6347
  function A9() {
6348
6348
  if (H2) return cf;
6349
6349
  H2 = 1, Object.defineProperty(cf, "__esModule", { value: !0 }), cf.Circle = void 0;
6350
- const o = Rt(), u = sr(), x = zt(), P = Et();
6350
+ const o = Rt(), u = sr(), C = zt(), P = Et();
6351
6351
  class R extends u.Shape {
6352
6352
  _sceneFunc(p) {
6353
6353
  p.beginPath(), p.arc(0, 0, this.attrs.radius || 0, 0, Math.PI * 2, !1), p.closePath(), p.fillStrokeShape(this);
@@ -6365,13 +6365,13 @@ function A9() {
6365
6365
  this.radius() !== p / 2 && this.radius(p / 2);
6366
6366
  }
6367
6367
  }
6368
- return cf.Circle = R, R.prototype._centroid = !0, R.prototype.className = "Circle", R.prototype._attrsAffectingSize = ["radius"], (0, P._registerNode)(R), o.Factory.addGetterSetter(R, "radius", 0, (0, x.getNumberValidator)()), cf;
6368
+ return cf.Circle = R, R.prototype._centroid = !0, R.prototype.className = "Circle", R.prototype._attrsAffectingSize = ["radius"], (0, P._registerNode)(R), o.Factory.addGetterSetter(R, "radius", 0, (0, C.getNumberValidator)()), cf;
6369
6369
  }
6370
6370
  var ff = {}, k2;
6371
6371
  function R9() {
6372
6372
  if (k2) return ff;
6373
6373
  k2 = 1, Object.defineProperty(ff, "__esModule", { value: !0 }), ff.Ellipse = void 0;
6374
- const o = Rt(), u = sr(), x = zt(), P = Et();
6374
+ const o = Rt(), u = sr(), C = zt(), P = Et();
6375
6375
  let R = class extends u.Shape {
6376
6376
  _sceneFunc(p) {
6377
6377
  const m = this.radiusX(), y = this.radiusY();
@@ -6390,14 +6390,14 @@ function R9() {
6390
6390
  this.radiusY(p / 2);
6391
6391
  }
6392
6392
  };
6393
- return ff.Ellipse = R, R.prototype.className = "Ellipse", R.prototype._centroid = !0, R.prototype._attrsAffectingSize = ["radiusX", "radiusY"], (0, P._registerNode)(R), o.Factory.addComponentsGetterSetter(R, "radius", ["x", "y"]), o.Factory.addGetterSetter(R, "radiusX", 0, (0, x.getNumberValidator)()), o.Factory.addGetterSetter(R, "radiusY", 0, (0, x.getNumberValidator)()), ff;
6393
+ return ff.Ellipse = R, R.prototype.className = "Ellipse", R.prototype._centroid = !0, R.prototype._attrsAffectingSize = ["radiusX", "radiusY"], (0, P._registerNode)(R), o.Factory.addComponentsGetterSetter(R, "radius", ["x", "y"]), o.Factory.addGetterSetter(R, "radiusX", 0, (0, C.getNumberValidator)()), o.Factory.addGetterSetter(R, "radiusY", 0, (0, C.getNumberValidator)()), ff;
6394
6394
  }
6395
6395
  var df = {}, V2;
6396
6396
  function N9() {
6397
6397
  if (V2) return df;
6398
6398
  V2 = 1, Object.defineProperty(df, "__esModule", { value: !0 }), df.Image = void 0;
6399
- const o = An(), u = Rt(), x = sr(), P = Et(), R = zt();
6400
- class g extends x.Shape {
6399
+ const o = An(), u = Rt(), C = sr(), P = Et(), R = zt();
6400
+ class g extends C.Shape {
6401
6401
  constructor(m) {
6402
6402
  super(m), this._loadListener = () => {
6403
6403
  this._requestDraw();
@@ -6420,7 +6420,7 @@ function N9() {
6420
6420
  return m && y ? !0 : super._useBufferCanvas(!0);
6421
6421
  }
6422
6422
  _sceneFunc(m) {
6423
- const y = this.getWidth(), h = this.getHeight(), C = this.cornerRadius(), N = this.attrs.image;
6423
+ const y = this.getWidth(), h = this.getHeight(), x = this.cornerRadius(), N = this.attrs.image;
6424
6424
  let w;
6425
6425
  if (N) {
6426
6426
  const S = this.attrs.cropWidth, E = this.attrs.cropHeight;
@@ -6436,11 +6436,11 @@ function N9() {
6436
6436
  h
6437
6437
  ] : w = [N, 0, 0, y, h];
6438
6438
  }
6439
- (this.hasFill() || this.hasStroke() || C) && (m.beginPath(), C ? o.Util.drawRoundedRectPath(m, y, h, C) : m.rect(0, 0, y, h), m.closePath(), m.fillStrokeShape(this)), N && (C && m.clip(), m.drawImage.apply(m, w));
6439
+ (this.hasFill() || this.hasStroke() || x) && (m.beginPath(), x ? o.Util.drawRoundedRectPath(m, y, h, x) : m.rect(0, 0, y, h), m.closePath(), m.fillStrokeShape(this)), N && (x && m.clip(), m.drawImage.apply(m, w));
6440
6440
  }
6441
6441
  _hitFunc(m) {
6442
- const y = this.width(), h = this.height(), C = this.cornerRadius();
6443
- m.beginPath(), C ? o.Util.drawRoundedRectPath(m, y, h, C) : m.rect(0, 0, y, h), m.closePath(), m.fillStrokeShape(this);
6442
+ const y = this.width(), h = this.height(), x = this.cornerRadius();
6443
+ m.beginPath(), x ? o.Util.drawRoundedRectPath(m, y, h, x) : m.rect(0, 0, y, h), m.closePath(), m.fillStrokeShape(this);
6444
6444
  }
6445
6445
  getWidth() {
6446
6446
  var m, y;
@@ -6451,13 +6451,13 @@ function N9() {
6451
6451
  return (m = this.attrs.height) !== null && m !== void 0 ? m : (y = this.image()) === null || y === void 0 ? void 0 : y.height;
6452
6452
  }
6453
6453
  static fromURL(m, y, h = null) {
6454
- const C = o.Util.createImageElement();
6455
- C.onload = function() {
6454
+ const x = o.Util.createImageElement();
6455
+ x.onload = function() {
6456
6456
  const N = new g({
6457
- image: C
6457
+ image: x
6458
6458
  });
6459
6459
  y(N);
6460
- }, C.onerror = h, C.crossOrigin = "Anonymous", C.src = m;
6460
+ }, x.onerror = h, x.crossOrigin = "Anonymous", x.src = m;
6461
6461
  }
6462
6462
  }
6463
6463
  return df.Image = g, g.prototype.className = "Image", (0, P._registerNode)(g), u.Factory.addGetterSetter(g, "cornerRadius", 0, (0, R.getNumberOrArrayOfNumbersValidator)(4)), u.Factory.addGetterSetter(g, "image"), u.Factory.addComponentsGetterSetter(g, "crop", ["x", "y", "width", "height"]), u.Factory.addGetterSetter(g, "cropX", 0, (0, R.getNumberValidator)()), u.Factory.addGetterSetter(g, "cropY", 0, (0, R.getNumberValidator)()), u.Factory.addGetterSetter(g, "cropWidth", 0, (0, R.getNumberValidator)()), u.Factory.addGetterSetter(g, "cropHeight", 0, (0, R.getNumberValidator)()), df;
@@ -6466,7 +6466,7 @@ var Ws = {}, I2;
6466
6466
  function D9() {
6467
6467
  if (I2) return Ws;
6468
6468
  I2 = 1, Object.defineProperty(Ws, "__esModule", { value: !0 }), Ws.Tag = Ws.Label = void 0;
6469
- const o = Rt(), u = sr(), x = m1(), P = zt(), R = Et(), g = [
6469
+ const o = Rt(), u = sr(), C = m1(), P = zt(), R = Et(), g = [
6470
6470
  "fontFamily",
6471
6471
  "fontSize",
6472
6472
  "fontStyle",
@@ -6478,8 +6478,8 @@ function D9() {
6478
6478
  "pointerDirection",
6479
6479
  "pointerWidth",
6480
6480
  "pointerHeight"
6481
- ], p = "Change.konva", m = "none", y = "up", h = "right", C = "down", N = "left", w = g.length;
6482
- let S = class extends x.Group {
6481
+ ], p = "Change.konva", m = "none", y = "up", h = "right", x = "down", N = "left", w = g.length;
6482
+ let S = class extends C.Group {
6483
6483
  constructor(H) {
6484
6484
  super(H), this.on("add.konva", function(B) {
6485
6485
  this._addListeners(B.child), this._sync();
@@ -6515,7 +6515,7 @@ function D9() {
6515
6515
  case h:
6516
6516
  k = b + L, J = v / 2;
6517
6517
  break;
6518
- case C:
6518
+ case x:
6519
6519
  k = b / 2, J = v + O;
6520
6520
  break;
6521
6521
  case N:
@@ -6539,11 +6539,11 @@ function D9() {
6539
6539
  _sceneFunc(H) {
6540
6540
  const B = this.width(), b = this.height(), v = this.pointerDirection(), M = this.pointerWidth(), L = this.pointerHeight(), k = this.cornerRadius();
6541
6541
  let J = 0, O = 0, j = 0, F = 0;
6542
- typeof k == "number" ? J = O = j = F = Math.min(k, B / 2, b / 2) : (J = Math.min(k[0] || 0, B / 2, b / 2), O = Math.min(k[1] || 0, B / 2, b / 2), F = Math.min(k[2] || 0, B / 2, b / 2), j = Math.min(k[3] || 0, B / 2, b / 2)), H.beginPath(), H.moveTo(J, 0), v === y && (H.lineTo((B - M) / 2, 0), H.lineTo(B / 2, -1 * L), H.lineTo((B + M) / 2, 0)), H.lineTo(B - O, 0), H.arc(B - O, O, O, Math.PI * 3 / 2, 0, !1), v === h && (H.lineTo(B, (b - L) / 2), H.lineTo(B + M, b / 2), H.lineTo(B, (b + L) / 2)), H.lineTo(B, b - F), H.arc(B - F, b - F, F, 0, Math.PI / 2, !1), v === C && (H.lineTo((B + M) / 2, b), H.lineTo(B / 2, b + L), H.lineTo((B - M) / 2, b)), H.lineTo(j, b), H.arc(j, b - j, j, Math.PI / 2, Math.PI, !1), v === N && (H.lineTo(0, (b + L) / 2), H.lineTo(-1 * M, b / 2), H.lineTo(0, (b - L) / 2)), H.lineTo(0, J), H.arc(J, J, J, Math.PI, Math.PI * 3 / 2, !1), H.closePath(), H.fillStrokeShape(this);
6542
+ typeof k == "number" ? J = O = j = F = Math.min(k, B / 2, b / 2) : (J = Math.min(k[0] || 0, B / 2, b / 2), O = Math.min(k[1] || 0, B / 2, b / 2), F = Math.min(k[2] || 0, B / 2, b / 2), j = Math.min(k[3] || 0, B / 2, b / 2)), H.beginPath(), H.moveTo(J, 0), v === y && (H.lineTo((B - M) / 2, 0), H.lineTo(B / 2, -1 * L), H.lineTo((B + M) / 2, 0)), H.lineTo(B - O, 0), H.arc(B - O, O, O, Math.PI * 3 / 2, 0, !1), v === h && (H.lineTo(B, (b - L) / 2), H.lineTo(B + M, b / 2), H.lineTo(B, (b + L) / 2)), H.lineTo(B, b - F), H.arc(B - F, b - F, F, 0, Math.PI / 2, !1), v === x && (H.lineTo((B + M) / 2, b), H.lineTo(B / 2, b + L), H.lineTo((B - M) / 2, b)), H.lineTo(j, b), H.arc(j, b - j, j, Math.PI / 2, Math.PI, !1), v === N && (H.lineTo(0, (b + L) / 2), H.lineTo(-1 * M, b / 2), H.lineTo(0, (b - L) / 2)), H.lineTo(0, J), H.arc(J, J, J, Math.PI, Math.PI * 3 / 2, !1), H.closePath(), H.fillStrokeShape(this);
6543
6543
  }
6544
6544
  getSelfRect() {
6545
6545
  let H = 0, B = 0, b = this.pointerWidth(), v = this.pointerHeight(), M = this.pointerDirection(), L = this.width(), k = this.height();
6546
- return M === y ? (B -= v, k += v) : M === C ? k += v : M === N ? (H -= b * 1.5, L += b) : M === h && (L += b * 1.5), {
6546
+ return M === y ? (B -= v, k += v) : M === x ? k += v : M === N ? (H -= b * 1.5, L += b) : M === h && (L += b * 1.5), {
6547
6547
  x: H,
6548
6548
  y: B,
6549
6549
  width: L,
@@ -6557,20 +6557,20 @@ var hf = {}, Y2;
6557
6557
  function c5() {
6558
6558
  if (Y2) return hf;
6559
6559
  Y2 = 1, Object.defineProperty(hf, "__esModule", { value: !0 }), hf.Rect = void 0;
6560
- const o = Rt(), u = sr(), x = Et(), P = An(), R = zt();
6560
+ const o = Rt(), u = sr(), C = Et(), P = An(), R = zt();
6561
6561
  class g extends u.Shape {
6562
6562
  _sceneFunc(m) {
6563
- const y = this.cornerRadius(), h = this.width(), C = this.height();
6564
- m.beginPath(), y ? P.Util.drawRoundedRectPath(m, h, C, y) : m.rect(0, 0, h, C), m.closePath(), m.fillStrokeShape(this);
6563
+ const y = this.cornerRadius(), h = this.width(), x = this.height();
6564
+ m.beginPath(), y ? P.Util.drawRoundedRectPath(m, h, x, y) : m.rect(0, 0, h, x), m.closePath(), m.fillStrokeShape(this);
6565
6565
  }
6566
6566
  }
6567
- return hf.Rect = g, g.prototype.className = "Rect", (0, x._registerNode)(g), o.Factory.addGetterSetter(g, "cornerRadius", 0, (0, R.getNumberOrArrayOfNumbersValidator)(4)), hf;
6567
+ return hf.Rect = g, g.prototype.className = "Rect", (0, C._registerNode)(g), o.Factory.addGetterSetter(g, "cornerRadius", 0, (0, R.getNumberOrArrayOfNumbersValidator)(4)), hf;
6568
6568
  }
6569
6569
  var pf = {}, X2;
6570
6570
  function P9() {
6571
6571
  if (X2) return pf;
6572
6572
  X2 = 1, Object.defineProperty(pf, "__esModule", { value: !0 }), pf.RegularPolygon = void 0;
6573
- const o = Rt(), u = sr(), x = zt(), P = Et();
6573
+ const o = Rt(), u = sr(), C = zt(), P = Et();
6574
6574
  let R = class extends u.Shape {
6575
6575
  _sceneFunc(p) {
6576
6576
  const m = this._getPoints();
@@ -6590,14 +6590,14 @@ function P9() {
6590
6590
  }
6591
6591
  getSelfRect() {
6592
6592
  const p = this._getPoints();
6593
- let m = p[0].x, y = p[0].y, h = p[0].x, C = p[0].y;
6593
+ let m = p[0].x, y = p[0].y, h = p[0].x, x = p[0].y;
6594
6594
  return p.forEach((N) => {
6595
- m = Math.min(m, N.x), y = Math.max(y, N.x), h = Math.min(h, N.y), C = Math.max(C, N.y);
6595
+ m = Math.min(m, N.x), y = Math.max(y, N.x), h = Math.min(h, N.y), x = Math.max(x, N.y);
6596
6596
  }), {
6597
6597
  x: m,
6598
6598
  y: h,
6599
6599
  width: y - m,
6600
- height: C - h
6600
+ height: x - h
6601
6601
  };
6602
6602
  }
6603
6603
  getWidth() {
@@ -6613,13 +6613,13 @@ function P9() {
6613
6613
  this.radius(p / 2);
6614
6614
  }
6615
6615
  };
6616
- return pf.RegularPolygon = R, R.prototype.className = "RegularPolygon", R.prototype._centroid = !0, R.prototype._attrsAffectingSize = ["radius"], (0, P._registerNode)(R), o.Factory.addGetterSetter(R, "radius", 0, (0, x.getNumberValidator)()), o.Factory.addGetterSetter(R, "sides", 0, (0, x.getNumberValidator)()), pf;
6616
+ return pf.RegularPolygon = R, R.prototype.className = "RegularPolygon", R.prototype._centroid = !0, R.prototype._attrsAffectingSize = ["radius"], (0, P._registerNode)(R), o.Factory.addGetterSetter(R, "radius", 0, (0, C.getNumberValidator)()), o.Factory.addGetterSetter(R, "sides", 0, (0, C.getNumberValidator)()), pf;
6617
6617
  }
6618
6618
  var vf = {}, W2;
6619
6619
  function M9() {
6620
6620
  if (W2) return vf;
6621
6621
  W2 = 1, Object.defineProperty(vf, "__esModule", { value: !0 }), vf.Ring = void 0;
6622
- const o = Rt(), u = sr(), x = zt(), P = Et(), R = Math.PI * 2;
6622
+ const o = Rt(), u = sr(), C = zt(), P = Et(), R = Math.PI * 2;
6623
6623
  let g = class extends u.Shape {
6624
6624
  _sceneFunc(m) {
6625
6625
  m.beginPath(), m.arc(0, 0, this.innerRadius(), 0, R, !1), m.moveTo(this.outerRadius(), 0), m.arc(0, 0, this.outerRadius(), R, 0, !0), m.closePath(), m.fillStrokeShape(this);
@@ -6637,16 +6637,16 @@ function M9() {
6637
6637
  this.outerRadius(m / 2);
6638
6638
  }
6639
6639
  };
6640
- return vf.Ring = g, g.prototype.className = "Ring", g.prototype._centroid = !0, g.prototype._attrsAffectingSize = ["innerRadius", "outerRadius"], (0, P._registerNode)(g), o.Factory.addGetterSetter(g, "innerRadius", 0, (0, x.getNumberValidator)()), o.Factory.addGetterSetter(g, "outerRadius", 0, (0, x.getNumberValidator)()), vf;
6640
+ return vf.Ring = g, g.prototype.className = "Ring", g.prototype._centroid = !0, g.prototype._attrsAffectingSize = ["innerRadius", "outerRadius"], (0, P._registerNode)(g), o.Factory.addGetterSetter(g, "innerRadius", 0, (0, C.getNumberValidator)()), o.Factory.addGetterSetter(g, "outerRadius", 0, (0, C.getNumberValidator)()), vf;
6641
6641
  }
6642
6642
  var mf = {}, Q2;
6643
6643
  function L9() {
6644
6644
  if (Q2) return mf;
6645
6645
  Q2 = 1, Object.defineProperty(mf, "__esModule", { value: !0 }), mf.Sprite = void 0;
6646
- const o = Rt(), u = sr(), x = g1(), P = zt(), R = Et();
6646
+ const o = Rt(), u = sr(), C = g1(), P = zt(), R = Et();
6647
6647
  let g = class extends u.Shape {
6648
6648
  constructor(m) {
6649
- super(m), this._updated = !0, this.anim = new x.Animation(() => {
6649
+ super(m), this._updated = !0, this.anim = new C.Animation(() => {
6650
6650
  const y = this._updated;
6651
6651
  return this._updated = !1, y;
6652
6652
  }), this.on("animationChange.konva", function() {
@@ -6658,7 +6658,7 @@ function L9() {
6658
6658
  });
6659
6659
  }
6660
6660
  _sceneFunc(m) {
6661
- const y = this.animation(), h = this.frameIndex(), C = h * 4, N = this.animations()[y], w = this.frameOffsets(), S = N[C + 0], E = N[C + 1], D = N[C + 2], H = N[C + 3], B = this.image();
6661
+ const y = this.animation(), h = this.frameIndex(), x = h * 4, N = this.animations()[y], w = this.frameOffsets(), S = N[x + 0], E = N[x + 1], D = N[x + 2], H = N[x + 3], B = this.image();
6662
6662
  if ((this.hasFill() || this.hasStroke()) && (m.beginPath(), m.rect(0, 0, D, H), m.closePath(), m.fillStrokeShape(this)), B)
6663
6663
  if (w) {
6664
6664
  const b = w[y], v = h * 2;
@@ -6667,7 +6667,7 @@ function L9() {
6667
6667
  m.drawImage(B, S, E, D, H, 0, 0, D, H);
6668
6668
  }
6669
6669
  _hitFunc(m) {
6670
- const y = this.animation(), h = this.frameIndex(), C = h * 4, N = this.animations()[y], w = this.frameOffsets(), S = N[C + 2], E = N[C + 3];
6670
+ const y = this.animation(), h = this.frameIndex(), x = h * 4, N = this.animations()[y], w = this.frameOffsets(), S = N[x + 2], E = N[x + 3];
6671
6671
  if (m.beginPath(), w) {
6672
6672
  const D = w[y], H = h * 2;
6673
6673
  m.rect(D[H + 0], D[H + 1], S, E);
@@ -6697,7 +6697,7 @@ function L9() {
6697
6697
  return this.anim.isRunning();
6698
6698
  }
6699
6699
  _updateIndex() {
6700
- const m = this.frameIndex(), y = this.animation(), h = this.animations(), C = h[y], N = C.length / 4;
6700
+ const m = this.frameIndex(), y = this.animation(), h = this.animations(), x = h[y], N = x.length / 4;
6701
6701
  m < N - 1 ? this.frameIndex(m + 1) : this.frameIndex(0);
6702
6702
  }
6703
6703
  };
@@ -6711,13 +6711,13 @@ var gf = {}, J2;
6711
6711
  function O9() {
6712
6712
  if (J2) return gf;
6713
6713
  J2 = 1, Object.defineProperty(gf, "__esModule", { value: !0 }), gf.Star = void 0;
6714
- const o = Rt(), u = sr(), x = zt(), P = Et();
6714
+ const o = Rt(), u = sr(), C = zt(), P = Et();
6715
6715
  let R = class extends u.Shape {
6716
6716
  _sceneFunc(p) {
6717
6717
  const m = this.innerRadius(), y = this.outerRadius(), h = this.numPoints();
6718
6718
  p.beginPath(), p.moveTo(0, 0 - y);
6719
- for (let C = 1; C < h * 2; C++) {
6720
- const N = C % 2 === 0 ? y : m, w = N * Math.sin(C * Math.PI / h), S = -1 * N * Math.cos(C * Math.PI / h);
6719
+ for (let x = 1; x < h * 2; x++) {
6720
+ const N = x % 2 === 0 ? y : m, w = N * Math.sin(x * Math.PI / h), S = -1 * N * Math.cos(x * Math.PI / h);
6721
6721
  p.lineTo(w, S);
6722
6722
  }
6723
6723
  p.closePath(), p.fillStrokeShape(this);
@@ -6735,13 +6735,13 @@ function O9() {
6735
6735
  this.outerRadius(p / 2);
6736
6736
  }
6737
6737
  };
6738
- return gf.Star = R, R.prototype.className = "Star", R.prototype._centroid = !0, R.prototype._attrsAffectingSize = ["innerRadius", "outerRadius"], (0, P._registerNode)(R), o.Factory.addGetterSetter(R, "numPoints", 5, (0, x.getNumberValidator)()), o.Factory.addGetterSetter(R, "innerRadius", 0, (0, x.getNumberValidator)()), o.Factory.addGetterSetter(R, "outerRadius", 0, (0, x.getNumberValidator)()), gf;
6738
+ return gf.Star = R, R.prototype.className = "Star", R.prototype._centroid = !0, R.prototype._attrsAffectingSize = ["innerRadius", "outerRadius"], (0, P._registerNode)(R), o.Factory.addGetterSetter(R, "numPoints", 5, (0, C.getNumberValidator)()), o.Factory.addGetterSetter(R, "innerRadius", 0, (0, C.getNumberValidator)()), o.Factory.addGetterSetter(R, "outerRadius", 0, (0, C.getNumberValidator)()), gf;
6739
6739
  }
6740
6740
  var Cu = {}, Z2;
6741
6741
  function f5() {
6742
6742
  if (Z2) return Cu;
6743
6743
  Z2 = 1, Object.defineProperty(Cu, "__esModule", { value: !0 }), Cu.Text = void 0, Cu.stringToArray = p;
6744
- const o = An(), u = Rt(), x = sr(), P = Et(), R = zt(), g = Et();
6744
+ const o = An(), u = Rt(), C = sr(), P = Et(), R = zt(), g = Et();
6745
6745
  function p(oe) {
6746
6746
  return [...oe].reduce((ne, me, we, se) => {
6747
6747
  if (new RegExp("\\p{Emoji}", "u").test(me)) {
@@ -6751,7 +6751,7 @@ function f5() {
6751
6751
  return ne;
6752
6752
  }, []);
6753
6753
  }
6754
- const m = "auto", y = "center", h = "inherit", C = "justify", N = "Change.konva", w = "2d", S = "-", E = "left", D = "text", H = "Text", B = "top", b = "bottom", v = "middle", M = "normal", L = "px ", k = " ", J = "right", O = "rtl", j = "word", F = "char", X = "none", K = "…", $ = [
6754
+ const m = "auto", y = "center", h = "inherit", x = "justify", N = "Change.konva", w = "2d", S = "-", E = "left", D = "text", H = "Text", B = "top", b = "bottom", v = "middle", M = "normal", L = "px ", k = " ", J = "right", O = "rtl", j = "word", F = "char", X = "none", K = "…", $ = [
6755
6755
  "direction",
6756
6756
  "fontFamily",
6757
6757
  "fontSize",
@@ -6788,7 +6788,7 @@ function f5() {
6788
6788
  function I(oe) {
6789
6789
  return oe = oe || {}, !oe.fillLinearGradientColorStops && !oe.fillRadialGradientColorStops && !oe.fillPatternImage && (oe.fill = oe.fill || "black"), oe;
6790
6790
  }
6791
- let _ = class extends x.Shape {
6791
+ let _ = class extends C.Shape {
6792
6792
  constructor(ne) {
6793
6793
  super(I(ne)), this._partialTextX = 0, this._partialTextY = 0;
6794
6794
  for (let me = 0; me < re; me++)
@@ -6813,7 +6813,7 @@ function f5() {
6813
6813
  ne.save(), ne.beginPath();
6814
6814
  const pn = P.Konva._fixTextRendering ? Math.round(Z / 4) : Math.round(Z / 2), rn = St, De = dt + hn + pn;
6815
6815
  ne.moveTo(rn, De);
6816
- const Ve = Ye === C && !cn ? Re - se * 2 : Ft;
6816
+ const Ve = Ye === x && !cn ? Re - se * 2 : Ft;
6817
6817
  ne.lineTo(rn + Math.round(Ve), De), ne.lineWidth = Z / 15;
6818
6818
  const ft = this._getLinearGradient();
6819
6819
  ne.strokeStyle = ft || Ge, ne.stroke(), ne.restore();
@@ -6822,16 +6822,16 @@ function f5() {
6822
6822
  ne.save(), ne.beginPath();
6823
6823
  const pn = P.Konva._fixTextRendering ? -Math.round(Z / 4) : 0;
6824
6824
  ne.moveTo(St, dt + hn + pn);
6825
- const rn = Ye === C && !cn ? Re - se * 2 : Ft;
6825
+ const rn = Ye === x && !cn ? Re - se * 2 : Ft;
6826
6826
  ne.lineTo(St + Math.round(rn), dt + hn + pn), ne.lineWidth = Z / 15;
6827
6827
  const De = this._getLinearGradient();
6828
6828
  ne.strokeStyle = De || Ge, ne.stroke(), ne.restore();
6829
6829
  }
6830
- if (Ae !== O && (ke !== 0 || Ye === C)) {
6830
+ if (Ae !== O && (ke !== 0 || Ye === x)) {
6831
6831
  const pn = xt.split(" ").length - 1, rn = p(xt);
6832
6832
  for (let De = 0; De < rn.length; De++) {
6833
6833
  const Ve = rn[De];
6834
- Ve === " " && !cn && Ye === C && (St += (Re - se * 2 - Ft) / pn), this._partialTextX = St, this._partialTextY = dt + hn, this._partialText = Ve, ne.fillStrokeShape(this), St += this.measureSize(Ve).width + ke;
6834
+ Ve === " " && !cn && Ye === x && (St += (Re - se * 2 - Ft) / pn), this._partialTextX = St, this._partialTextY = dt + hn, this._partialText = Ve, ne.fillStrokeShape(this), St += this.measureSize(Ve).width + ke;
6835
6835
  }
6836
6836
  } else
6837
6837
  ke !== 0 && ne.setAttr("letterSpacing", `${ke}px`), this._partialTextX = St, this._partialTextY = dt + hn, this._partialText = xt, ne.fillStrokeShape(this);
@@ -6883,7 +6883,7 @@ function f5() {
6883
6883
  return this.fontStyle() + k + this.fontVariant() + k + (this.fontSize() + L) + ee(this.fontFamily());
6884
6884
  }
6885
6885
  _addTextLine(ne) {
6886
- this.align() === C && (ne = ne.trim());
6886
+ this.align() === x && (ne = ne.trim());
6887
6887
  const we = this._getTextWidth(ne);
6888
6888
  return this.textArr.push({
6889
6889
  text: ne,
@@ -6968,14 +6968,14 @@ var yf = {}, _2;
6968
6968
  function z9() {
6969
6969
  if (_2) return yf;
6970
6970
  _2 = 1, Object.defineProperty(yf, "__esModule", { value: !0 }), yf.TextPath = void 0;
6971
- const o = An(), u = Rt(), x = sr(), P = y1(), R = f5(), g = zt(), p = Et(), m = "", y = "normal";
6971
+ const o = An(), u = Rt(), C = sr(), P = y1(), R = f5(), g = zt(), p = Et(), m = "", y = "normal";
6972
6972
  function h(w) {
6973
6973
  w.fillText(this.partialText, 0, 0);
6974
6974
  }
6975
- function C(w) {
6975
+ function x(w) {
6976
6976
  w.strokeText(this.partialText, 0, 0);
6977
6977
  }
6978
- let N = class extends x.Shape {
6978
+ let N = class extends C.Shape {
6979
6979
  constructor(S) {
6980
6980
  super(S), this.dummyCanvas = o.Util.createCanvasElement(), this.dataArray = [], this._readDataAttribute(), this.on("dataChange.konva", function() {
6981
6981
  this._readDataAttribute(), this._setTextData();
@@ -7106,13 +7106,13 @@ function z9() {
7106
7106
  return o.Util.releaseCanvas(this.dummyCanvas), super.destroy();
7107
7107
  }
7108
7108
  };
7109
- return yf.TextPath = N, N.prototype._fillFunc = h, N.prototype._strokeFunc = C, N.prototype._fillFuncHit = h, N.prototype._strokeFuncHit = C, N.prototype.className = "TextPath", N.prototype._attrsAffectingSize = ["text", "fontSize", "data"], (0, p._registerNode)(N), u.Factory.addGetterSetter(N, "data"), u.Factory.addGetterSetter(N, "fontFamily", "Arial"), u.Factory.addGetterSetter(N, "fontSize", 12, (0, g.getNumberValidator)()), u.Factory.addGetterSetter(N, "fontStyle", y), u.Factory.addGetterSetter(N, "align", "left"), u.Factory.addGetterSetter(N, "letterSpacing", 0, (0, g.getNumberValidator)()), u.Factory.addGetterSetter(N, "textBaseline", "middle"), u.Factory.addGetterSetter(N, "fontVariant", y), u.Factory.addGetterSetter(N, "text", m), u.Factory.addGetterSetter(N, "textDecoration", ""), u.Factory.addGetterSetter(N, "kerningFunc", void 0), yf;
7109
+ return yf.TextPath = N, N.prototype._fillFunc = h, N.prototype._strokeFunc = x, N.prototype._fillFuncHit = h, N.prototype._strokeFuncHit = x, N.prototype.className = "TextPath", N.prototype._attrsAffectingSize = ["text", "fontSize", "data"], (0, p._registerNode)(N), u.Factory.addGetterSetter(N, "data"), u.Factory.addGetterSetter(N, "fontFamily", "Arial"), u.Factory.addGetterSetter(N, "fontSize", 12, (0, g.getNumberValidator)()), u.Factory.addGetterSetter(N, "fontStyle", y), u.Factory.addGetterSetter(N, "align", "left"), u.Factory.addGetterSetter(N, "letterSpacing", 0, (0, g.getNumberValidator)()), u.Factory.addGetterSetter(N, "textBaseline", "middle"), u.Factory.addGetterSetter(N, "fontVariant", y), u.Factory.addGetterSetter(N, "text", m), u.Factory.addGetterSetter(N, "textDecoration", ""), u.Factory.addGetterSetter(N, "kerningFunc", void 0), yf;
7110
7110
  }
7111
7111
  var Sf = {}, q2;
7112
7112
  function F9() {
7113
7113
  if (q2) return Sf;
7114
7114
  q2 = 1, Object.defineProperty(Sf, "__esModule", { value: !0 }), Sf.Transformer = void 0;
7115
- const o = An(), u = Rt(), x = Mn(), P = sr(), R = c5(), g = m1(), p = Et(), m = zt(), y = Et(), h = "tr-konva", C = [
7115
+ const o = An(), u = Rt(), C = Mn(), P = sr(), R = c5(), g = m1(), p = Et(), m = zt(), y = Et(), h = "tr-konva", x = [
7116
7116
  "resizeEnabledChange",
7117
7117
  "rotateAnchorOffsetChange",
7118
7118
  "rotateEnabledChange",
@@ -7196,7 +7196,7 @@ function F9() {
7196
7196
  }
7197
7197
  let L = 0, k = class extends g.Group {
7198
7198
  constructor(j) {
7199
- super(j), this._movingAnchorName = null, this._transforming = !1, this._createElements(), this._handleMouseMove = this._handleMouseMove.bind(this), this._handleMouseUp = this._handleMouseUp.bind(this), this.update = this.update.bind(this), this.on(C, this.update), this.getNode() && this.update();
7199
+ super(j), this._movingAnchorName = null, this._transforming = !1, this._createElements(), this._handleMouseMove = this._handleMouseMove.bind(this), this._handleMouseUp = this._handleMouseUp.bind(this), this.update = this.update.bind(this), this.on(x, this.update), this.getNode() && this.update();
7200
7200
  }
7201
7201
  attachTo(j) {
7202
7202
  return this.setNode(j), this;
@@ -7687,10 +7687,10 @@ function F9() {
7687
7687
  return this.getStage() && this._cursorChange && this.getStage().content && (this.getStage().content.style.cursor = ""), g.Group.prototype.destroy.call(this), this.detach(), this._removeEvents(), this;
7688
7688
  }
7689
7689
  toObject() {
7690
- return x.Node.prototype.toObject.call(this);
7690
+ return C.Node.prototype.toObject.call(this);
7691
7691
  }
7692
7692
  clone(j) {
7693
- return x.Node.prototype.clone.call(this, j);
7693
+ return C.Node.prototype.clone.call(this, j);
7694
7694
  }
7695
7695
  getClientRect() {
7696
7696
  return this.nodes().length > 0 ? super.getClientRect() : { x: 0, y: 0, width: 0, height: 0 };
@@ -7712,10 +7712,10 @@ var xf = {}, K2;
7712
7712
  function G9() {
7713
7713
  if (K2) return xf;
7714
7714
  K2 = 1, Object.defineProperty(xf, "__esModule", { value: !0 }), xf.Wedge = void 0;
7715
- const o = Rt(), u = sr(), x = Et(), P = zt(), R = Et();
7715
+ const o = Rt(), u = sr(), C = Et(), P = zt(), R = Et();
7716
7716
  let g = class extends u.Shape {
7717
7717
  _sceneFunc(m) {
7718
- m.beginPath(), m.arc(0, 0, this.radius(), 0, x.Konva.getAngle(this.angle()), this.clockwise()), m.lineTo(0, 0), m.closePath(), m.fillStrokeShape(this);
7718
+ m.beginPath(), m.arc(0, 0, this.radius(), 0, C.Konva.getAngle(this.angle()), this.clockwise()), m.lineTo(0, 0), m.closePath(), m.fillStrokeShape(this);
7719
7719
  }
7720
7720
  getWidth() {
7721
7721
  return this.radius() * 2;
@@ -7740,7 +7740,7 @@ var Cf = {}, $2;
7740
7740
  function U9() {
7741
7741
  if ($2) return Cf;
7742
7742
  $2 = 1, Object.defineProperty(Cf, "__esModule", { value: !0 }), Cf.Blur = void 0;
7743
- const o = Rt(), u = Mn(), x = zt();
7743
+ const o = Rt(), u = Mn(), C = zt();
7744
7744
  function P() {
7745
7745
  this.r = 0, this.g = 0, this.b = 0, this.a = 0, this.next = null;
7746
7746
  }
@@ -8258,7 +8258,7 @@ function U9() {
8258
8258
  24
8259
8259
  ];
8260
8260
  function p(y, h) {
8261
- const C = y.data, N = y.width, w = y.height;
8261
+ const x = y.data, N = y.width, w = y.height;
8262
8262
  let S, E, D, H, B, b, v, M, L, k, J, O, j, F, X, K, $, re, ee, pe;
8263
8263
  const z = h + h + 1, U = N - 1, W = w - 1, I = h + 1, _ = I * (I + 1) / 2, oe = new P(), ne = R[h], me = g[h];
8264
8264
  let we = null, se = oe, Z = null, ae = null;
@@ -8266,63 +8266,63 @@ function U9() {
8266
8266
  se = se.next = new P(), Ce === I && (we = se);
8267
8267
  se.next = oe, D = E = 0;
8268
8268
  for (let Ce = 0; Ce < w; Ce++) {
8269
- O = j = F = X = H = B = b = v = 0, M = I * (K = C[E]), L = I * ($ = C[E + 1]), k = I * (re = C[E + 2]), J = I * (ee = C[E + 3]), H += _ * K, B += _ * $, b += _ * re, v += _ * ee, se = oe;
8269
+ O = j = F = X = H = B = b = v = 0, M = I * (K = x[E]), L = I * ($ = x[E + 1]), k = I * (re = x[E + 2]), J = I * (ee = x[E + 3]), H += _ * K, B += _ * $, b += _ * re, v += _ * ee, se = oe;
8270
8270
  for (let Ae = 0; Ae < I; Ae++)
8271
8271
  se.r = K, se.g = $, se.b = re, se.a = ee, se = se.next;
8272
8272
  for (let Ae = 1; Ae < I; Ae++)
8273
- S = E + ((U < Ae ? U : Ae) << 2), H += (se.r = K = C[S]) * (pe = I - Ae), B += (se.g = $ = C[S + 1]) * pe, b += (se.b = re = C[S + 2]) * pe, v += (se.a = ee = C[S + 3]) * pe, O += K, j += $, F += re, X += ee, se = se.next;
8273
+ S = E + ((U < Ae ? U : Ae) << 2), H += (se.r = K = x[S]) * (pe = I - Ae), B += (se.g = $ = x[S + 1]) * pe, b += (se.b = re = x[S + 2]) * pe, v += (se.a = ee = x[S + 3]) * pe, O += K, j += $, F += re, X += ee, se = se.next;
8274
8274
  Z = oe, ae = we;
8275
8275
  for (let Ae = 0; Ae < N; Ae++)
8276
- C[E + 3] = ee = v * ne >> me, ee !== 0 ? (ee = 255 / ee, C[E] = (H * ne >> me) * ee, C[E + 1] = (B * ne >> me) * ee, C[E + 2] = (b * ne >> me) * ee) : C[E] = C[E + 1] = C[E + 2] = 0, H -= M, B -= L, b -= k, v -= J, M -= Z.r, L -= Z.g, k -= Z.b, J -= Z.a, S = D + ((S = Ae + h + 1) < U ? S : U) << 2, O += Z.r = C[S], j += Z.g = C[S + 1], F += Z.b = C[S + 2], X += Z.a = C[S + 3], H += O, B += j, b += F, v += X, Z = Z.next, M += K = ae.r, L += $ = ae.g, k += re = ae.b, J += ee = ae.a, O -= K, j -= $, F -= re, X -= ee, ae = ae.next, E += 4;
8276
+ x[E + 3] = ee = v * ne >> me, ee !== 0 ? (ee = 255 / ee, x[E] = (H * ne >> me) * ee, x[E + 1] = (B * ne >> me) * ee, x[E + 2] = (b * ne >> me) * ee) : x[E] = x[E + 1] = x[E + 2] = 0, H -= M, B -= L, b -= k, v -= J, M -= Z.r, L -= Z.g, k -= Z.b, J -= Z.a, S = D + ((S = Ae + h + 1) < U ? S : U) << 2, O += Z.r = x[S], j += Z.g = x[S + 1], F += Z.b = x[S + 2], X += Z.a = x[S + 3], H += O, B += j, b += F, v += X, Z = Z.next, M += K = ae.r, L += $ = ae.g, k += re = ae.b, J += ee = ae.a, O -= K, j -= $, F -= re, X -= ee, ae = ae.next, E += 4;
8277
8277
  D += N;
8278
8278
  }
8279
8279
  for (let Ce = 0; Ce < N; Ce++) {
8280
- j = F = X = O = B = b = v = H = 0, E = Ce << 2, M = I * (K = C[E]), L = I * ($ = C[E + 1]), k = I * (re = C[E + 2]), J = I * (ee = C[E + 3]), H += _ * K, B += _ * $, b += _ * re, v += _ * ee, se = oe;
8280
+ j = F = X = O = B = b = v = H = 0, E = Ce << 2, M = I * (K = x[E]), L = I * ($ = x[E + 1]), k = I * (re = x[E + 2]), J = I * (ee = x[E + 3]), H += _ * K, B += _ * $, b += _ * re, v += _ * ee, se = oe;
8281
8281
  for (let Me = 0; Me < I; Me++)
8282
8282
  se.r = K, se.g = $, se.b = re, se.a = ee, se = se.next;
8283
8283
  let Ae = N;
8284
8284
  for (let Me = 1; Me <= h; Me++)
8285
- E = Ae + Ce << 2, H += (se.r = K = C[E]) * (pe = I - Me), B += (se.g = $ = C[E + 1]) * pe, b += (se.b = re = C[E + 2]) * pe, v += (se.a = ee = C[E + 3]) * pe, O += K, j += $, F += re, X += ee, se = se.next, Me < W && (Ae += N);
8285
+ E = Ae + Ce << 2, H += (se.r = K = x[E]) * (pe = I - Me), B += (se.g = $ = x[E + 1]) * pe, b += (se.b = re = x[E + 2]) * pe, v += (se.a = ee = x[E + 3]) * pe, O += K, j += $, F += re, X += ee, se = se.next, Me < W && (Ae += N);
8286
8286
  E = Ce, Z = oe, ae = we;
8287
8287
  for (let Me = 0; Me < w; Me++)
8288
- S = E << 2, C[S + 3] = ee = v * ne >> me, ee > 0 ? (ee = 255 / ee, C[S] = (H * ne >> me) * ee, C[S + 1] = (B * ne >> me) * ee, C[S + 2] = (b * ne >> me) * ee) : C[S] = C[S + 1] = C[S + 2] = 0, H -= M, B -= L, b -= k, v -= J, M -= Z.r, L -= Z.g, k -= Z.b, J -= Z.a, S = Ce + ((S = Me + I) < W ? S : W) * N << 2, H += O += Z.r = C[S], B += j += Z.g = C[S + 1], b += F += Z.b = C[S + 2], v += X += Z.a = C[S + 3], Z = Z.next, M += K = ae.r, L += $ = ae.g, k += re = ae.b, J += ee = ae.a, O -= K, j -= $, F -= re, X -= ee, ae = ae.next, E += N;
8288
+ S = E << 2, x[S + 3] = ee = v * ne >> me, ee > 0 ? (ee = 255 / ee, x[S] = (H * ne >> me) * ee, x[S + 1] = (B * ne >> me) * ee, x[S + 2] = (b * ne >> me) * ee) : x[S] = x[S + 1] = x[S + 2] = 0, H -= M, B -= L, b -= k, v -= J, M -= Z.r, L -= Z.g, k -= Z.b, J -= Z.a, S = Ce + ((S = Me + I) < W ? S : W) * N << 2, H += O += Z.r = x[S], B += j += Z.g = x[S + 1], b += F += Z.b = x[S + 2], v += X += Z.a = x[S + 3], Z = Z.next, M += K = ae.r, L += $ = ae.g, k += re = ae.b, J += ee = ae.a, O -= K, j -= $, F -= re, X -= ee, ae = ae.next, E += N;
8289
8289
  }
8290
8290
  }
8291
8291
  const m = function(h) {
8292
- const C = Math.round(this.blurRadius());
8293
- C > 0 && p(h, C);
8292
+ const x = Math.round(this.blurRadius());
8293
+ x > 0 && p(h, x);
8294
8294
  };
8295
- return Cf.Blur = m, o.Factory.addGetterSetter(u.Node, "blurRadius", 0, (0, x.getNumberValidator)(), o.Factory.afterSetFilter), Cf;
8295
+ return Cf.Blur = m, o.Factory.addGetterSetter(u.Node, "blurRadius", 0, (0, C.getNumberValidator)(), o.Factory.afterSetFilter), Cf;
8296
8296
  }
8297
8297
  var Ef = {}, ey;
8298
8298
  function j9() {
8299
8299
  if (ey) return Ef;
8300
8300
  ey = 1, Object.defineProperty(Ef, "__esModule", { value: !0 }), Ef.Brighten = void 0;
8301
- const o = Rt(), u = Mn(), x = zt(), P = function(R) {
8301
+ const o = Rt(), u = Mn(), C = zt(), P = function(R) {
8302
8302
  const g = this.brightness() * 255, p = R.data, m = p.length;
8303
8303
  for (let y = 0; y < m; y += 4)
8304
8304
  p[y] += g, p[y + 1] += g, p[y + 2] += g;
8305
8305
  };
8306
- return Ef.Brighten = P, o.Factory.addGetterSetter(u.Node, "brightness", 0, (0, x.getNumberValidator)(), o.Factory.afterSetFilter), Ef;
8306
+ return Ef.Brighten = P, o.Factory.addGetterSetter(u.Node, "brightness", 0, (0, C.getNumberValidator)(), o.Factory.afterSetFilter), Ef;
8307
8307
  }
8308
8308
  var bf = {}, ty;
8309
8309
  function B9() {
8310
8310
  if (ty) return bf;
8311
8311
  ty = 1, Object.defineProperty(bf, "__esModule", { value: !0 }), bf.Contrast = void 0;
8312
- const o = Rt(), u = Mn(), x = zt(), P = function(R) {
8312
+ const o = Rt(), u = Mn(), C = zt(), P = function(R) {
8313
8313
  const g = Math.pow((this.contrast() + 100) / 100, 2), p = R.data, m = p.length;
8314
- let y = 150, h = 150, C = 150;
8314
+ let y = 150, h = 150, x = 150;
8315
8315
  for (let N = 0; N < m; N += 4)
8316
- y = p[N], h = p[N + 1], C = p[N + 2], y /= 255, y -= 0.5, y *= g, y += 0.5, y *= 255, h /= 255, h -= 0.5, h *= g, h += 0.5, h *= 255, C /= 255, C -= 0.5, C *= g, C += 0.5, C *= 255, y = y < 0 ? 0 : y > 255 ? 255 : y, h = h < 0 ? 0 : h > 255 ? 255 : h, C = C < 0 ? 0 : C > 255 ? 255 : C, p[N] = y, p[N + 1] = h, p[N + 2] = C;
8316
+ y = p[N], h = p[N + 1], x = p[N + 2], y /= 255, y -= 0.5, y *= g, y += 0.5, y *= 255, h /= 255, h -= 0.5, h *= g, h += 0.5, h *= 255, x /= 255, x -= 0.5, x *= g, x += 0.5, x *= 255, y = y < 0 ? 0 : y > 255 ? 255 : y, h = h < 0 ? 0 : h > 255 ? 255 : h, x = x < 0 ? 0 : x > 255 ? 255 : x, p[N] = y, p[N + 1] = h, p[N + 2] = x;
8317
8317
  };
8318
- return bf.Contrast = P, o.Factory.addGetterSetter(u.Node, "contrast", 0, (0, x.getNumberValidator)(), o.Factory.afterSetFilter), bf;
8318
+ return bf.Contrast = P, o.Factory.addGetterSetter(u.Node, "contrast", 0, (0, C.getNumberValidator)(), o.Factory.afterSetFilter), bf;
8319
8319
  }
8320
8320
  var Tf = {}, ny;
8321
8321
  function H9() {
8322
8322
  if (ny) return Tf;
8323
8323
  ny = 1, Object.defineProperty(Tf, "__esModule", { value: !0 }), Tf.Emboss = void 0;
8324
- const o = Rt(), u = Mn(), x = An(), P = zt(), R = function(g) {
8325
- const p = this.embossStrength() * 10, m = this.embossWhiteLevel() * 255, y = this.embossDirection(), h = this.embossBlend(), C = g.data, N = g.width, w = g.height, S = N * 4;
8324
+ const o = Rt(), u = Mn(), C = An(), P = zt(), R = function(g) {
8325
+ const p = this.embossStrength() * 10, m = this.embossWhiteLevel() * 255, y = this.embossDirection(), h = this.embossBlend(), x = g.data, N = g.width, w = g.height, S = N * 4;
8326
8326
  let E = 0, D = 0, H = w;
8327
8327
  switch (y) {
8328
8328
  case "top-left":
@@ -8350,7 +8350,7 @@ function H9() {
8350
8350
  E = 0, D = -1;
8351
8351
  break;
8352
8352
  default:
8353
- x.Util.error("Unknown emboss direction: " + y);
8353
+ C.Util.error("Unknown emboss direction: " + y);
8354
8354
  }
8355
8355
  do {
8356
8356
  const B = (H - 1) * S;
@@ -8362,15 +8362,15 @@ function H9() {
8362
8362
  const L = B + (M - 1) * 4;
8363
8363
  let k = D;
8364
8364
  M + k < 1 && (k = 0), M + k > N && (k = 0);
8365
- const J = v + (M - 1 + k) * 4, O = C[L] - C[J], j = C[L + 1] - C[J + 1], F = C[L + 2] - C[J + 2];
8365
+ const J = v + (M - 1 + k) * 4, O = x[L] - x[J], j = x[L + 1] - x[J + 1], F = x[L + 2] - x[J + 2];
8366
8366
  let X = O;
8367
8367
  const K = X > 0 ? X : -X, $ = j > 0 ? j : -j, re = F > 0 ? F : -F;
8368
8368
  if ($ > K && (X = j), re > K && (X = F), X *= p, h) {
8369
- const ee = C[L] + X, pe = C[L + 1] + X, z = C[L + 2] + X;
8370
- C[L] = ee > 255 ? 255 : ee < 0 ? 0 : ee, C[L + 1] = pe > 255 ? 255 : pe < 0 ? 0 : pe, C[L + 2] = z > 255 ? 255 : z < 0 ? 0 : z;
8369
+ const ee = x[L] + X, pe = x[L + 1] + X, z = x[L + 2] + X;
8370
+ x[L] = ee > 255 ? 255 : ee < 0 ? 0 : ee, x[L + 1] = pe > 255 ? 255 : pe < 0 ? 0 : pe, x[L + 2] = z > 255 ? 255 : z < 0 ? 0 : z;
8371
8371
  } else {
8372
8372
  let ee = m - X;
8373
- ee < 0 ? ee = 0 : ee > 255 && (ee = 255), C[L] = C[L + 1] = C[L + 2] = ee;
8373
+ ee < 0 ? ee = 0 : ee > 255 && (ee = 255), x[L] = x[L + 1] = x[L + 2] = ee;
8374
8374
  }
8375
8375
  } while (--M);
8376
8376
  } while (--H);
@@ -8381,24 +8381,24 @@ var wf = {}, ry;
8381
8381
  function k9() {
8382
8382
  if (ry) return wf;
8383
8383
  ry = 1, Object.defineProperty(wf, "__esModule", { value: !0 }), wf.Enhance = void 0;
8384
- const o = Rt(), u = Mn(), x = zt();
8384
+ const o = Rt(), u = Mn(), C = zt();
8385
8385
  function P(g, p, m, y, h) {
8386
- const C = m - p, N = h - y;
8387
- if (C === 0)
8386
+ const x = m - p, N = h - y;
8387
+ if (x === 0)
8388
8388
  return y + N / 2;
8389
8389
  if (N === 0)
8390
8390
  return y;
8391
- let w = (g - p) / C;
8391
+ let w = (g - p) / x;
8392
8392
  return w = N * w + y, w;
8393
8393
  }
8394
8394
  const R = function(g) {
8395
8395
  const p = g.data, m = p.length;
8396
- let y = p[0], h = y, C, N = p[1], w = N, S, E = p[2], D = E, H;
8396
+ let y = p[0], h = y, x, N = p[1], w = N, S, E = p[2], D = E, H;
8397
8397
  const B = this.enhance();
8398
8398
  if (B === 0)
8399
8399
  return;
8400
8400
  for (let O = 0; O < m; O += 4)
8401
- C = p[O + 0], C < y ? y = C : C > h && (h = C), S = p[O + 1], S < N ? N = S : S > w && (w = S), H = p[O + 2], H < E ? E = H : H > D && (D = H);
8401
+ x = p[O + 0], x < y ? y = x : x > h && (h = x), S = p[O + 1], S < N ? N = S : S > w && (w = S), H = p[O + 2], H < E ? E = H : H > D && (D = H);
8402
8402
  h === y && (h = 255, y = 0), w === N && (w = 255, N = 0), D === E && (D = 255, E = 0);
8403
8403
  let b, v, M, L, k, J;
8404
8404
  if (B > 0)
@@ -8414,17 +8414,17 @@ function k9() {
8414
8414
  for (let O = 0; O < m; O += 4)
8415
8415
  p[O + 0] = P(p[O + 0], y, h, v, b), p[O + 1] = P(p[O + 1], N, w, L, M), p[O + 2] = P(p[O + 2], E, D, J, k);
8416
8416
  };
8417
- return wf.Enhance = R, o.Factory.addGetterSetter(u.Node, "enhance", 0, (0, x.getNumberValidator)(), o.Factory.afterSetFilter), wf;
8417
+ return wf.Enhance = R, o.Factory.addGetterSetter(u.Node, "enhance", 0, (0, C.getNumberValidator)(), o.Factory.afterSetFilter), wf;
8418
8418
  }
8419
8419
  var Af = {}, ay;
8420
8420
  function V9() {
8421
8421
  if (ay) return Af;
8422
8422
  ay = 1, Object.defineProperty(Af, "__esModule", { value: !0 }), Af.Grayscale = void 0;
8423
8423
  const o = function(u) {
8424
- const x = u.data, P = x.length;
8424
+ const C = u.data, P = C.length;
8425
8425
  for (let R = 0; R < P; R += 4) {
8426
- const g = 0.34 * x[R] + 0.5 * x[R + 1] + 0.16 * x[R + 2];
8427
- x[R] = g, x[R + 1] = g, x[R + 2] = g;
8426
+ const g = 0.34 * C[R] + 0.5 * C[R + 1] + 0.16 * C[R + 2];
8427
+ C[R] = g, C[R + 1] = g, C[R + 2] = g;
8428
8428
  }
8429
8429
  };
8430
8430
  return Af.Grayscale = o, Af;
@@ -8433,13 +8433,13 @@ var Rf = {}, iy;
8433
8433
  function I9() {
8434
8434
  if (iy) return Rf;
8435
8435
  iy = 1, Object.defineProperty(Rf, "__esModule", { value: !0 }), Rf.HSL = void 0;
8436
- const o = Rt(), u = Mn(), x = zt();
8437
- o.Factory.addGetterSetter(u.Node, "hue", 0, (0, x.getNumberValidator)(), o.Factory.afterSetFilter), o.Factory.addGetterSetter(u.Node, "saturation", 0, (0, x.getNumberValidator)(), o.Factory.afterSetFilter), o.Factory.addGetterSetter(u.Node, "luminance", 0, (0, x.getNumberValidator)(), o.Factory.afterSetFilter);
8436
+ const o = Rt(), u = Mn(), C = zt();
8437
+ o.Factory.addGetterSetter(u.Node, "hue", 0, (0, C.getNumberValidator)(), o.Factory.afterSetFilter), o.Factory.addGetterSetter(u.Node, "saturation", 0, (0, C.getNumberValidator)(), o.Factory.afterSetFilter), o.Factory.addGetterSetter(u.Node, "luminance", 0, (0, C.getNumberValidator)(), o.Factory.afterSetFilter);
8438
8438
  const P = function(R) {
8439
- const g = R.data, p = g.length, m = 1, y = Math.pow(2, this.saturation()), h = Math.abs(this.hue() + 360) % 360, C = this.luminance() * 127, N = m * y * Math.cos(h * Math.PI / 180), w = m * y * Math.sin(h * Math.PI / 180), S = 0.299 * m + 0.701 * N + 0.167 * w, E = 0.587 * m - 0.587 * N + 0.33 * w, D = 0.114 * m - 0.114 * N - 0.497 * w, H = 0.299 * m - 0.299 * N - 0.328 * w, B = 0.587 * m + 0.413 * N + 0.035 * w, b = 0.114 * m - 0.114 * N + 0.293 * w, v = 0.299 * m - 0.3 * N + 1.25 * w, M = 0.587 * m - 0.586 * N - 1.05 * w, L = 0.114 * m + 0.886 * N - 0.2 * w;
8439
+ const g = R.data, p = g.length, m = 1, y = Math.pow(2, this.saturation()), h = Math.abs(this.hue() + 360) % 360, x = this.luminance() * 127, N = m * y * Math.cos(h * Math.PI / 180), w = m * y * Math.sin(h * Math.PI / 180), S = 0.299 * m + 0.701 * N + 0.167 * w, E = 0.587 * m - 0.587 * N + 0.33 * w, D = 0.114 * m - 0.114 * N - 0.497 * w, H = 0.299 * m - 0.299 * N - 0.328 * w, B = 0.587 * m + 0.413 * N + 0.035 * w, b = 0.114 * m - 0.114 * N + 0.293 * w, v = 0.299 * m - 0.3 * N + 1.25 * w, M = 0.587 * m - 0.586 * N - 1.05 * w, L = 0.114 * m + 0.886 * N - 0.2 * w;
8440
8440
  let k, J, O, j;
8441
8441
  for (let F = 0; F < p; F += 4)
8442
- k = g[F + 0], J = g[F + 1], O = g[F + 2], j = g[F + 3], g[F + 0] = S * k + E * J + D * O + C, g[F + 1] = H * k + B * J + b * O + C, g[F + 2] = v * k + M * J + L * O + C, g[F + 3] = j;
8442
+ k = g[F + 0], J = g[F + 1], O = g[F + 2], j = g[F + 3], g[F + 0] = S * k + E * J + D * O + x, g[F + 1] = H * k + B * J + b * O + x, g[F + 2] = v * k + M * J + L * O + x, g[F + 3] = j;
8443
8443
  };
8444
8444
  return Rf.HSL = P, Rf;
8445
8445
  }
@@ -8447,23 +8447,23 @@ var Nf = {}, ly;
8447
8447
  function Y9() {
8448
8448
  if (ly) return Nf;
8449
8449
  ly = 1, Object.defineProperty(Nf, "__esModule", { value: !0 }), Nf.HSV = void 0;
8450
- const o = Rt(), u = Mn(), x = zt(), P = function(R) {
8451
- const g = R.data, p = g.length, m = Math.pow(2, this.value()), y = Math.pow(2, this.saturation()), h = Math.abs(this.hue() + 360) % 360, C = m * y * Math.cos(h * Math.PI / 180), N = m * y * Math.sin(h * Math.PI / 180), w = 0.299 * m + 0.701 * C + 0.167 * N, S = 0.587 * m - 0.587 * C + 0.33 * N, E = 0.114 * m - 0.114 * C - 0.497 * N, D = 0.299 * m - 0.299 * C - 0.328 * N, H = 0.587 * m + 0.413 * C + 0.035 * N, B = 0.114 * m - 0.114 * C + 0.293 * N, b = 0.299 * m - 0.3 * C + 1.25 * N, v = 0.587 * m - 0.586 * C - 1.05 * N, M = 0.114 * m + 0.886 * C - 0.2 * N;
8450
+ const o = Rt(), u = Mn(), C = zt(), P = function(R) {
8451
+ const g = R.data, p = g.length, m = Math.pow(2, this.value()), y = Math.pow(2, this.saturation()), h = Math.abs(this.hue() + 360) % 360, x = m * y * Math.cos(h * Math.PI / 180), N = m * y * Math.sin(h * Math.PI / 180), w = 0.299 * m + 0.701 * x + 0.167 * N, S = 0.587 * m - 0.587 * x + 0.33 * N, E = 0.114 * m - 0.114 * x - 0.497 * N, D = 0.299 * m - 0.299 * x - 0.328 * N, H = 0.587 * m + 0.413 * x + 0.035 * N, B = 0.114 * m - 0.114 * x + 0.293 * N, b = 0.299 * m - 0.3 * x + 1.25 * N, v = 0.587 * m - 0.586 * x - 1.05 * N, M = 0.114 * m + 0.886 * x - 0.2 * N;
8452
8452
  for (let L = 0; L < p; L += 4) {
8453
8453
  const k = g[L + 0], J = g[L + 1], O = g[L + 2], j = g[L + 3];
8454
8454
  g[L + 0] = w * k + S * J + E * O, g[L + 1] = D * k + H * J + B * O, g[L + 2] = b * k + v * J + M * O, g[L + 3] = j;
8455
8455
  }
8456
8456
  };
8457
- return Nf.HSV = P, o.Factory.addGetterSetter(u.Node, "hue", 0, (0, x.getNumberValidator)(), o.Factory.afterSetFilter), o.Factory.addGetterSetter(u.Node, "saturation", 0, (0, x.getNumberValidator)(), o.Factory.afterSetFilter), o.Factory.addGetterSetter(u.Node, "value", 0, (0, x.getNumberValidator)(), o.Factory.afterSetFilter), Nf;
8457
+ return Nf.HSV = P, o.Factory.addGetterSetter(u.Node, "hue", 0, (0, C.getNumberValidator)(), o.Factory.afterSetFilter), o.Factory.addGetterSetter(u.Node, "saturation", 0, (0, C.getNumberValidator)(), o.Factory.afterSetFilter), o.Factory.addGetterSetter(u.Node, "value", 0, (0, C.getNumberValidator)(), o.Factory.afterSetFilter), Nf;
8458
8458
  }
8459
8459
  var Df = {}, sy;
8460
8460
  function X9() {
8461
8461
  if (sy) return Df;
8462
8462
  sy = 1, Object.defineProperty(Df, "__esModule", { value: !0 }), Df.Invert = void 0;
8463
8463
  const o = function(u) {
8464
- const x = u.data, P = x.length;
8464
+ const C = u.data, P = C.length;
8465
8465
  for (let R = 0; R < P; R += 4)
8466
- x[R] = 255 - x[R], x[R + 1] = 255 - x[R + 1], x[R + 2] = 255 - x[R + 2];
8466
+ C[R] = 255 - C[R], C[R + 1] = 255 - C[R + 1], C[R + 2] = 255 - C[R + 2];
8467
8467
  };
8468
8468
  return Df.Invert = o, Df;
8469
8469
  }
@@ -8471,8 +8471,8 @@ var Pf = {}, oy;
8471
8471
  function W9() {
8472
8472
  if (oy) return Pf;
8473
8473
  oy = 1, Object.defineProperty(Pf, "__esModule", { value: !0 }), Pf.Kaleidoscope = void 0;
8474
- const o = Rt(), u = Mn(), x = An(), P = zt(), R = function(m, y, h) {
8475
- const C = m.data, N = y.data, w = m.width, S = m.height, E = h.polarCenterX || w / 2, D = h.polarCenterY || S / 2;
8474
+ const o = Rt(), u = Mn(), C = An(), P = zt(), R = function(m, y, h) {
8475
+ const x = m.data, N = y.data, w = m.width, S = m.height, E = h.polarCenterX || w / 2, D = h.polarCenterY || S / 2;
8476
8476
  let H = Math.sqrt(E * E + D * D), B = w - E, b = S - D;
8477
8477
  const v = Math.sqrt(B * B + b * b);
8478
8478
  H = v > H ? v : H;
@@ -8482,12 +8482,12 @@ function W9() {
8482
8482
  for (let F = 0; F < M; F += 1) {
8483
8483
  B = Math.floor(E + H * F / M * j), b = Math.floor(D + H * F / M * O);
8484
8484
  let X = (b * w + B) * 4;
8485
- const K = C[X + 0], $ = C[X + 1], re = C[X + 2], ee = C[X + 3];
8485
+ const K = x[X + 0], $ = x[X + 1], re = x[X + 2], ee = x[X + 3];
8486
8486
  X = (J + F * w) * 4, N[X + 0] = K, N[X + 1] = $, N[X + 2] = re, N[X + 3] = ee;
8487
8487
  }
8488
8488
  }
8489
8489
  }, g = function(m, y, h) {
8490
- const C = m.data, N = y.data, w = m.width, S = m.height, E = h.polarCenterX || w / 2, D = h.polarCenterY || S / 2;
8490
+ const x = m.data, N = y.data, w = m.width, S = m.height, E = h.polarCenterX || w / 2, D = h.polarCenterY || S / 2;
8491
8491
  let H = Math.sqrt(E * E + D * D), B = w - E, b = S - D;
8492
8492
  const v = Math.sqrt(B * B + b * b);
8493
8493
  H = v > H ? v : H;
@@ -8499,19 +8499,19 @@ function W9() {
8499
8499
  let K = (Math.atan2(F, j) * 180 / Math.PI + 360 + k) % 360;
8500
8500
  K = K * L / 360, J = Math.floor(K), O = Math.floor(X);
8501
8501
  let $ = (O * w + J) * 4;
8502
- const re = C[$ + 0], ee = C[$ + 1], pe = C[$ + 2], z = C[$ + 3];
8502
+ const re = x[$ + 0], ee = x[$ + 1], pe = x[$ + 2], z = x[$ + 3];
8503
8503
  $ = (b * w + B) * 4, N[$ + 0] = re, N[$ + 1] = ee, N[$ + 2] = pe, N[$ + 3] = z;
8504
8504
  }
8505
8505
  }, p = function(m) {
8506
8506
  const y = m.width, h = m.height;
8507
- let C, N, w, S, E, D, H, B, b, v, M = Math.round(this.kaleidoscopePower());
8507
+ let x, N, w, S, E, D, H, B, b, v, M = Math.round(this.kaleidoscopePower());
8508
8508
  const L = Math.round(this.kaleidoscopeAngle()), k = Math.floor(y * (L % 360) / 360);
8509
8509
  if (M < 1)
8510
8510
  return;
8511
- const J = x.Util.createCanvasElement();
8511
+ const J = C.Util.createCanvasElement();
8512
8512
  J.width = y, J.height = h;
8513
8513
  const O = J.getContext("2d").getImageData(0, 0, y, h);
8514
- x.Util.releaseCanvas(J), R(m, O, {
8514
+ C.Util.releaseCanvas(J), R(m, O, {
8515
8515
  polarCenterX: y / 2,
8516
8516
  polarCenterY: h / 2
8517
8517
  });
@@ -8521,12 +8521,12 @@ function W9() {
8521
8521
  j = Math.ceil(j);
8522
8522
  let F = j, X = 0, K = F, $ = 1;
8523
8523
  for (k + j > y && (X = F, K = 0, $ = -1), N = 0; N < h; N += 1)
8524
- for (C = X; C !== K; C += $)
8525
- w = Math.round(C + k) % y, b = (y * N + w) * 4, E = O.data[b + 0], D = O.data[b + 1], H = O.data[b + 2], B = O.data[b + 3], v = (y * N + C) * 4, O.data[v + 0] = E, O.data[v + 1] = D, O.data[v + 2] = H, O.data[v + 3] = B;
8524
+ for (x = X; x !== K; x += $)
8525
+ w = Math.round(x + k) % y, b = (y * N + w) * 4, E = O.data[b + 0], D = O.data[b + 1], H = O.data[b + 2], B = O.data[b + 3], v = (y * N + x) * 4, O.data[v + 0] = E, O.data[v + 1] = D, O.data[v + 2] = H, O.data[v + 3] = B;
8526
8526
  for (N = 0; N < h; N += 1)
8527
8527
  for (F = Math.floor(j), S = 0; S < M; S += 1) {
8528
- for (C = 0; C < F + 1; C += 1)
8529
- b = (y * N + C) * 4, E = O.data[b + 0], D = O.data[b + 1], H = O.data[b + 2], B = O.data[b + 3], v = (y * N + F * 2 - C - 1) * 4, O.data[v + 0] = E, O.data[v + 1] = D, O.data[v + 2] = H, O.data[v + 3] = B;
8528
+ for (x = 0; x < F + 1; x += 1)
8529
+ b = (y * N + x) * 4, E = O.data[b + 0], D = O.data[b + 1], H = O.data[b + 2], B = O.data[b + 3], v = (y * N + F * 2 - x - 1) * 4, O.data[v + 0] = E, O.data[v + 1] = D, O.data[v + 2] = H, O.data[v + 3] = B;
8530
8530
  F *= 2;
8531
8531
  }
8532
8532
  g(O, m, {});
@@ -8537,7 +8537,7 @@ var Mf = {}, uy;
8537
8537
  function Q9() {
8538
8538
  if (uy) return Mf;
8539
8539
  uy = 1, Object.defineProperty(Mf, "__esModule", { value: !0 }), Mf.Mask = void 0;
8540
- const o = Rt(), u = Mn(), x = zt();
8540
+ const o = Rt(), u = Mn(), C = zt();
8541
8541
  function P(w, S, E) {
8542
8542
  let D = (E * w.width + S) * 4;
8543
8543
  const H = [];
@@ -8607,7 +8607,7 @@ function Q9() {
8607
8607
  }
8608
8608
  return b;
8609
8609
  }
8610
- function C(w, S, E) {
8610
+ function x(w, S, E) {
8611
8611
  const D = [0.1111111111111111, 0.1111111111111111, 0.1111111111111111, 0.1111111111111111, 0.1111111111111111, 0.1111111111111111, 0.1111111111111111, 0.1111111111111111, 0.1111111111111111], H = Math.round(Math.sqrt(D.length)), B = Math.floor(H / 2), b = [];
8612
8612
  for (let v = 0; v < E; v++)
8613
8613
  for (let M = 0; M < S; M++) {
@@ -8628,33 +8628,33 @@ function Q9() {
8628
8628
  const N = function(w) {
8629
8629
  const S = this.threshold();
8630
8630
  let E = p(w, S);
8631
- return E && (E = y(E, w.width, w.height), E = h(E, w.width, w.height), E = C(E, w.width, w.height), m(w, E)), w;
8631
+ return E && (E = y(E, w.width, w.height), E = h(E, w.width, w.height), E = x(E, w.width, w.height), m(w, E)), w;
8632
8632
  };
8633
- return Mf.Mask = N, o.Factory.addGetterSetter(u.Node, "threshold", 0, (0, x.getNumberValidator)(), o.Factory.afterSetFilter), Mf;
8633
+ return Mf.Mask = N, o.Factory.addGetterSetter(u.Node, "threshold", 0, (0, C.getNumberValidator)(), o.Factory.afterSetFilter), Mf;
8634
8634
  }
8635
8635
  var Lf = {}, cy;
8636
8636
  function J9() {
8637
8637
  if (cy) return Lf;
8638
8638
  cy = 1, Object.defineProperty(Lf, "__esModule", { value: !0 }), Lf.Noise = void 0;
8639
- const o = Rt(), u = Mn(), x = zt(), P = function(R) {
8639
+ const o = Rt(), u = Mn(), C = zt(), P = function(R) {
8640
8640
  const g = this.noise() * 255, p = R.data, m = p.length, y = g / 2;
8641
8641
  for (let h = 0; h < m; h += 4)
8642
8642
  p[h + 0] += y - 2 * y * Math.random(), p[h + 1] += y - 2 * y * Math.random(), p[h + 2] += y - 2 * y * Math.random();
8643
8643
  };
8644
- return Lf.Noise = P, o.Factory.addGetterSetter(u.Node, "noise", 0.2, (0, x.getNumberValidator)(), o.Factory.afterSetFilter), Lf;
8644
+ return Lf.Noise = P, o.Factory.addGetterSetter(u.Node, "noise", 0.2, (0, C.getNumberValidator)(), o.Factory.afterSetFilter), Lf;
8645
8645
  }
8646
8646
  var Of = {}, fy;
8647
8647
  function Z9() {
8648
8648
  if (fy) return Of;
8649
8649
  fy = 1, Object.defineProperty(Of, "__esModule", { value: !0 }), Of.Pixelate = void 0;
8650
- const o = Rt(), u = An(), x = Mn(), P = zt(), R = function(g) {
8651
- let p = Math.ceil(this.pixelSize()), m = g.width, y = g.height, h = Math.ceil(m / p), C = Math.ceil(y / p), N = g.data;
8650
+ const o = Rt(), u = An(), C = Mn(), P = zt(), R = function(g) {
8651
+ let p = Math.ceil(this.pixelSize()), m = g.width, y = g.height, h = Math.ceil(m / p), x = Math.ceil(y / p), N = g.data;
8652
8652
  if (p <= 0) {
8653
8653
  u.Util.error("pixelSize value can not be <= 0");
8654
8654
  return;
8655
8655
  }
8656
8656
  for (let w = 0; w < h; w += 1)
8657
- for (let S = 0; S < C; S += 1) {
8657
+ for (let S = 0; S < x; S += 1) {
8658
8658
  let E = 0, D = 0, H = 0, B = 0;
8659
8659
  const b = w * p, v = b + p, M = S * p, L = M + p;
8660
8660
  let k = 0;
@@ -8677,52 +8677,52 @@ function Z9() {
8677
8677
  }
8678
8678
  }
8679
8679
  };
8680
- return Of.Pixelate = R, o.Factory.addGetterSetter(x.Node, "pixelSize", 8, (0, P.getNumberValidator)(), o.Factory.afterSetFilter), Of;
8680
+ return Of.Pixelate = R, o.Factory.addGetterSetter(C.Node, "pixelSize", 8, (0, P.getNumberValidator)(), o.Factory.afterSetFilter), Of;
8681
8681
  }
8682
8682
  var zf = {}, dy;
8683
8683
  function _9() {
8684
8684
  if (dy) return zf;
8685
8685
  dy = 1, Object.defineProperty(zf, "__esModule", { value: !0 }), zf.Posterize = void 0;
8686
- const o = Rt(), u = Mn(), x = zt(), P = function(R) {
8686
+ const o = Rt(), u = Mn(), C = zt(), P = function(R) {
8687
8687
  const g = Math.round(this.levels() * 254) + 1, p = R.data, m = p.length, y = 255 / g;
8688
8688
  for (let h = 0; h < m; h += 1)
8689
8689
  p[h] = Math.floor(p[h] / y) * y;
8690
8690
  };
8691
- return zf.Posterize = P, o.Factory.addGetterSetter(u.Node, "levels", 0.5, (0, x.getNumberValidator)(), o.Factory.afterSetFilter), zf;
8691
+ return zf.Posterize = P, o.Factory.addGetterSetter(u.Node, "levels", 0.5, (0, C.getNumberValidator)(), o.Factory.afterSetFilter), zf;
8692
8692
  }
8693
8693
  var Ff = {}, hy;
8694
8694
  function q9() {
8695
8695
  if (hy) return Ff;
8696
8696
  hy = 1, Object.defineProperty(Ff, "__esModule", { value: !0 }), Ff.RGB = void 0;
8697
- const o = Rt(), u = Mn(), x = zt(), P = function(R) {
8697
+ const o = Rt(), u = Mn(), C = zt(), P = function(R) {
8698
8698
  const g = R.data, p = g.length, m = this.red(), y = this.green(), h = this.blue();
8699
- for (let C = 0; C < p; C += 4) {
8700
- const N = (0.34 * g[C] + 0.5 * g[C + 1] + 0.16 * g[C + 2]) / 255;
8701
- g[C] = N * m, g[C + 1] = N * y, g[C + 2] = N * h, g[C + 3] = g[C + 3];
8699
+ for (let x = 0; x < p; x += 4) {
8700
+ const N = (0.34 * g[x] + 0.5 * g[x + 1] + 0.16 * g[x + 2]) / 255;
8701
+ g[x] = N * m, g[x + 1] = N * y, g[x + 2] = N * h, g[x + 3] = g[x + 3];
8702
8702
  }
8703
8703
  };
8704
8704
  return Ff.RGB = P, o.Factory.addGetterSetter(u.Node, "red", 0, function(R) {
8705
8705
  return this._filterUpToDate = !1, R > 255 ? 255 : R < 0 ? 0 : Math.round(R);
8706
8706
  }), o.Factory.addGetterSetter(u.Node, "green", 0, function(R) {
8707
8707
  return this._filterUpToDate = !1, R > 255 ? 255 : R < 0 ? 0 : Math.round(R);
8708
- }), o.Factory.addGetterSetter(u.Node, "blue", 0, x.RGBComponent, o.Factory.afterSetFilter), Ff;
8708
+ }), o.Factory.addGetterSetter(u.Node, "blue", 0, C.RGBComponent, o.Factory.afterSetFilter), Ff;
8709
8709
  }
8710
8710
  var Gf = {}, py;
8711
8711
  function K9() {
8712
8712
  if (py) return Gf;
8713
8713
  py = 1, Object.defineProperty(Gf, "__esModule", { value: !0 }), Gf.RGBA = void 0;
8714
- const o = Rt(), u = Mn(), x = zt(), P = function(R) {
8715
- const g = R.data, p = g.length, m = this.red(), y = this.green(), h = this.blue(), C = this.alpha();
8714
+ const o = Rt(), u = Mn(), C = zt(), P = function(R) {
8715
+ const g = R.data, p = g.length, m = this.red(), y = this.green(), h = this.blue(), x = this.alpha();
8716
8716
  for (let N = 0; N < p; N += 4) {
8717
- const w = 1 - C;
8718
- g[N] = m * C + g[N] * w, g[N + 1] = y * C + g[N + 1] * w, g[N + 2] = h * C + g[N + 2] * w;
8717
+ const w = 1 - x;
8718
+ g[N] = m * x + g[N] * w, g[N + 1] = y * x + g[N + 1] * w, g[N + 2] = h * x + g[N + 2] * w;
8719
8719
  }
8720
8720
  };
8721
8721
  return Gf.RGBA = P, o.Factory.addGetterSetter(u.Node, "red", 0, function(R) {
8722
8722
  return this._filterUpToDate = !1, R > 255 ? 255 : R < 0 ? 0 : Math.round(R);
8723
8723
  }), o.Factory.addGetterSetter(u.Node, "green", 0, function(R) {
8724
8724
  return this._filterUpToDate = !1, R > 255 ? 255 : R < 0 ? 0 : Math.round(R);
8725
- }), o.Factory.addGetterSetter(u.Node, "blue", 0, x.RGBComponent, o.Factory.afterSetFilter), o.Factory.addGetterSetter(u.Node, "alpha", 1, function(R) {
8725
+ }), o.Factory.addGetterSetter(u.Node, "blue", 0, C.RGBComponent, o.Factory.afterSetFilter), o.Factory.addGetterSetter(u.Node, "alpha", 1, function(R) {
8726
8726
  return this._filterUpToDate = !1, R > 1 ? 1 : R < 0 ? 0 : R;
8727
8727
  }), Gf;
8728
8728
  }
@@ -8731,10 +8731,10 @@ function $9() {
8731
8731
  if (vy) return Uf;
8732
8732
  vy = 1, Object.defineProperty(Uf, "__esModule", { value: !0 }), Uf.Sepia = void 0;
8733
8733
  const o = function(u) {
8734
- const x = u.data, P = x.length;
8734
+ const C = u.data, P = C.length;
8735
8735
  for (let R = 0; R < P; R += 4) {
8736
- const g = x[R + 0], p = x[R + 1], m = x[R + 2];
8737
- x[R + 0] = Math.min(255, g * 0.393 + p * 0.769 + m * 0.189), x[R + 1] = Math.min(255, g * 0.349 + p * 0.686 + m * 0.168), x[R + 2] = Math.min(255, g * 0.272 + p * 0.534 + m * 0.131);
8736
+ const g = C[R + 0], p = C[R + 1], m = C[R + 2];
8737
+ C[R + 0] = Math.min(255, g * 0.393 + p * 0.769 + m * 0.189), C[R + 1] = Math.min(255, g * 0.349 + p * 0.686 + m * 0.168), C[R + 2] = Math.min(255, g * 0.272 + p * 0.534 + m * 0.131);
8738
8738
  }
8739
8739
  };
8740
8740
  return Uf.Sepia = o, Uf;
@@ -8744,15 +8744,15 @@ function e7() {
8744
8744
  if (my) return jf;
8745
8745
  my = 1, Object.defineProperty(jf, "__esModule", { value: !0 }), jf.Solarize = void 0;
8746
8746
  const o = function(u) {
8747
- const x = u.data, P = u.width, R = u.height, g = P * 4;
8747
+ const C = u.data, P = u.width, R = u.height, g = P * 4;
8748
8748
  let p = R;
8749
8749
  do {
8750
8750
  const m = (p - 1) * g;
8751
8751
  let y = P;
8752
8752
  do {
8753
8753
  const h = m + (y - 1) * 4;
8754
- let C = x[h], N = x[h + 1], w = x[h + 2];
8755
- C > 127 && (C = 255 - C), N > 127 && (N = 255 - N), w > 127 && (w = 255 - w), x[h] = C, x[h + 1] = N, x[h + 2] = w;
8754
+ let x = C[h], N = C[h + 1], w = C[h + 2];
8755
+ x > 127 && (x = 255 - x), N > 127 && (N = 255 - N), w > 127 && (w = 255 - w), C[h] = x, C[h + 1] = N, C[h + 2] = w;
8756
8756
  } while (--y);
8757
8757
  } while (--p);
8758
8758
  };
@@ -8762,21 +8762,21 @@ var Bf = {}, gy;
8762
8762
  function t7() {
8763
8763
  if (gy) return Bf;
8764
8764
  gy = 1, Object.defineProperty(Bf, "__esModule", { value: !0 }), Bf.Threshold = void 0;
8765
- const o = Rt(), u = Mn(), x = zt(), P = function(R) {
8765
+ const o = Rt(), u = Mn(), C = zt(), P = function(R) {
8766
8766
  const g = this.threshold() * 255, p = R.data, m = p.length;
8767
8767
  for (let y = 0; y < m; y += 1)
8768
8768
  p[y] = p[y] < g ? 0 : 255;
8769
8769
  };
8770
- return Bf.Threshold = P, o.Factory.addGetterSetter(u.Node, "threshold", 0.5, (0, x.getNumberValidator)(), o.Factory.afterSetFilter), Bf;
8770
+ return Bf.Threshold = P, o.Factory.addGetterSetter(u.Node, "threshold", 0.5, (0, C.getNumberValidator)(), o.Factory.afterSetFilter), Bf;
8771
8771
  }
8772
8772
  var yy;
8773
8773
  function n7() {
8774
8774
  if (yy) return Kc;
8775
8775
  yy = 1, Object.defineProperty(Kc, "__esModule", { value: !0 }), Kc.Konva = void 0;
8776
- const o = c1(), u = b9(), x = w9(), P = A9(), R = R9(), g = N9(), p = D9(), m = u5(), y = y1(), h = c5(), C = P9(), N = M9(), w = L9(), S = O9(), E = f5(), D = z9(), H = F9(), B = G9(), b = U9(), v = j9(), M = B9(), L = H9(), k = k9(), J = V9(), O = I9(), j = Y9(), F = X9(), X = W9(), K = Q9(), $ = J9(), re = Z9(), ee = _9(), pe = q9(), z = K9(), U = $9(), W = e7(), I = t7();
8776
+ const o = c1(), u = b9(), C = w9(), P = A9(), R = R9(), g = N9(), p = D9(), m = u5(), y = y1(), h = c5(), x = P9(), N = M9(), w = L9(), S = O9(), E = f5(), D = z9(), H = F9(), B = G9(), b = U9(), v = j9(), M = B9(), L = H9(), k = k9(), J = V9(), O = I9(), j = Y9(), F = X9(), X = W9(), K = Q9(), $ = J9(), re = Z9(), ee = _9(), pe = q9(), z = K9(), U = $9(), W = e7(), I = t7();
8777
8777
  return Kc.Konva = o.Konva.Util._assign(o.Konva, {
8778
8778
  Arc: u.Arc,
8779
- Arrow: x.Arrow,
8779
+ Arrow: C.Arrow,
8780
8780
  Circle: P.Circle,
8781
8781
  Ellipse: R.Ellipse,
8782
8782
  Image: g.Image,
@@ -8785,7 +8785,7 @@ function n7() {
8785
8785
  Line: m.Line,
8786
8786
  Path: y.Path,
8787
8787
  Rect: h.Rect,
8788
- RegularPolygon: C.RegularPolygon,
8788
+ RegularPolygon: x.RegularPolygon,
8789
8789
  Ring: N.Ring,
8790
8790
  Sprite: w.Sprite,
8791
8791
  Star: S.Star,
@@ -8828,9 +8828,9 @@ var qh = { exports: {} }, xy;
8828
8828
  function i7() {
8829
8829
  return xy || (xy = 1, function(o, u) {
8830
8830
  Object.defineProperty(u, "__esModule", { value: !0 }), u.Konva = void 0;
8831
- var x = c1();
8831
+ var C = c1();
8832
8832
  Object.defineProperty(u, "Konva", { enumerable: !0, get: function() {
8833
- return x.Konva;
8833
+ return C.Konva;
8834
8834
  } });
8835
8835
  const P = c1();
8836
8836
  o.exports = P.Konva;
@@ -8860,7 +8860,7 @@ function s7() {
8860
8860
  else break e;
8861
8861
  }
8862
8862
  }
8863
- function x(U) {
8863
+ function C(U) {
8864
8864
  return U.length === 0 ? null : U[0];
8865
8865
  }
8866
8866
  function P(U) {
@@ -8892,20 +8892,20 @@ function s7() {
8892
8892
  return p.now() - m;
8893
8893
  };
8894
8894
  }
8895
- var y = [], h = [], C = 1, N = null, w = 3, S = !1, E = !1, D = !1, H = typeof setTimeout == "function" ? setTimeout : null, B = typeof clearTimeout == "function" ? clearTimeout : null, b = typeof setImmediate < "u" ? setImmediate : null;
8895
+ var y = [], h = [], x = 1, N = null, w = 3, S = !1, E = !1, D = !1, H = typeof setTimeout == "function" ? setTimeout : null, B = typeof clearTimeout == "function" ? clearTimeout : null, b = typeof setImmediate < "u" ? setImmediate : null;
8896
8896
  typeof navigator < "u" && navigator.scheduling !== void 0 && navigator.scheduling.isInputPending !== void 0 && navigator.scheduling.isInputPending.bind(navigator.scheduling);
8897
8897
  function v(U) {
8898
- for (var W = x(h); W !== null; ) {
8898
+ for (var W = C(h); W !== null; ) {
8899
8899
  if (W.callback === null) P(h);
8900
8900
  else if (W.startTime <= U) P(h), W.sortIndex = W.expirationTime, u(y, W);
8901
8901
  else break;
8902
- W = x(h);
8902
+ W = C(h);
8903
8903
  }
8904
8904
  }
8905
8905
  function M(U) {
8906
- if (D = !1, v(U), !E) if (x(y) !== null) E = !0, pe(L);
8906
+ if (D = !1, v(U), !E) if (C(y) !== null) E = !0, pe(L);
8907
8907
  else {
8908
- var W = x(h);
8908
+ var W = C(h);
8909
8909
  W !== null && z(M, W.startTime - U);
8910
8910
  }
8911
8911
  }
@@ -8913,18 +8913,18 @@ function s7() {
8913
8913
  E = !1, D && (D = !1, B(O), O = -1), S = !0;
8914
8914
  var I = w;
8915
8915
  try {
8916
- for (v(W), N = x(y); N !== null && (!(N.expirationTime > W) || U && !X()); ) {
8916
+ for (v(W), N = C(y); N !== null && (!(N.expirationTime > W) || U && !X()); ) {
8917
8917
  var _ = N.callback;
8918
8918
  if (typeof _ == "function") {
8919
8919
  N.callback = null, w = N.priorityLevel;
8920
8920
  var oe = _(N.expirationTime <= W);
8921
- W = o.unstable_now(), typeof oe == "function" ? N.callback = oe : N === x(y) && P(y), v(W);
8921
+ W = o.unstable_now(), typeof oe == "function" ? N.callback = oe : N === C(y) && P(y), v(W);
8922
8922
  } else P(y);
8923
- N = x(y);
8923
+ N = C(y);
8924
8924
  }
8925
8925
  if (N !== null) var ne = !0;
8926
8926
  else {
8927
- var me = x(h);
8927
+ var me = C(h);
8928
8928
  me !== null && z(M, me.startTime - W), ne = !1;
8929
8929
  }
8930
8930
  return ne;
@@ -8977,7 +8977,7 @@ function s7() {
8977
8977
  }, o.unstable_getCurrentPriorityLevel = function() {
8978
8978
  return w;
8979
8979
  }, o.unstable_getFirstCallbackNode = function() {
8980
- return x(y);
8980
+ return C(y);
8981
8981
  }, o.unstable_next = function(U) {
8982
8982
  switch (w) {
8983
8983
  case 1:
@@ -9033,7 +9033,7 @@ function s7() {
9033
9033
  default:
9034
9034
  oe = 5e3;
9035
9035
  }
9036
- return oe = I + oe, U = { id: C++, callback: W, priorityLevel: U, startTime: I, expirationTime: oe, sortIndex: -1 }, I > _ ? (U.sortIndex = I, u(h, U), x(y) === null && U === x(h) && (D ? (B(O), O = -1) : D = !0, z(M, I - _))) : (U.sortIndex = oe, u(y, U), E || S || (E = !0, pe(L))), U;
9036
+ return oe = I + oe, U = { id: x++, callback: W, priorityLevel: U, startTime: I, expirationTime: oe, sortIndex: -1 }, I > _ ? (U.sortIndex = I, u(h, U), C(y) === null && U === C(h) && (D ? (B(O), O = -1) : D = !0, z(M, I - _))) : (U.sortIndex = oe, u(y, U), E || S || (E = !0, pe(L))), U;
9037
9037
  }, o.unstable_shouldYield = X, o.unstable_wrapCallback = function(U) {
9038
9038
  var W = w;
9039
9039
  return function() {
@@ -9063,7 +9063,7 @@ function o7() {
9063
9063
  return Ey || (Ey = 1, function(o) {
9064
9064
  process.env.NODE_ENV !== "production" && function() {
9065
9065
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
9066
- var u = !1, x = 5;
9066
+ var u = !1, C = 5;
9067
9067
  function P(De, Ve) {
9068
9068
  var ft = De.length;
9069
9069
  De.push(Ve), p(De, Ve, ft);
@@ -9101,7 +9101,7 @@ function o7() {
9101
9101
  var ft = De.sortIndex - Ve.sortIndex;
9102
9102
  return ft !== 0 ? ft : De.id - Ve.id;
9103
9103
  }
9104
- var h = 1, C = 2, N = 3, w = 4, S = 5;
9104
+ var h = 1, x = 2, N = 3, w = 4, S = 5;
9105
9105
  function E(De, Ve) {
9106
9106
  }
9107
9107
  var D = typeof performance == "object" && typeof performance.now == "function";
@@ -9168,7 +9168,7 @@ function o7() {
9168
9168
  function me(De, Ve) {
9169
9169
  switch (De) {
9170
9170
  case h:
9171
- case C:
9171
+ case x:
9172
9172
  case N:
9173
9173
  case w:
9174
9174
  case S:
@@ -9188,7 +9188,7 @@ function o7() {
9188
9188
  var Ve;
9189
9189
  switch ($) {
9190
9190
  case h:
9191
- case C:
9191
+ case x:
9192
9192
  case N:
9193
9193
  Ve = N;
9194
9194
  break;
@@ -9228,7 +9228,7 @@ function o7() {
9228
9228
  case h:
9229
9229
  Je = M;
9230
9230
  break;
9231
- case C:
9231
+ case x:
9232
9232
  Je = L;
9233
9233
  break;
9234
9234
  case S:
@@ -9266,7 +9266,7 @@ function o7() {
9266
9266
  function Ye() {
9267
9267
  return $;
9268
9268
  }
9269
- var Re = !1, ke = null, Ge = -1, $e = x, et = -1;
9269
+ var Re = !1, ke = null, Ge = -1, $e = C, et = -1;
9270
9270
  function vt() {
9271
9271
  var De = o.unstable_now() - et;
9272
9272
  return !(De < $e);
@@ -9278,7 +9278,7 @@ function o7() {
9278
9278
  console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported");
9279
9279
  return;
9280
9280
  }
9281
- De > 0 ? $e = Math.floor(1e3 / De) : $e = x;
9281
+ De > 0 ? $e = Math.floor(1e3 / De) : $e = C;
9282
9282
  }
9283
9283
  var yt = function() {
9284
9284
  if (ke !== null) {
@@ -9318,7 +9318,7 @@ function o7() {
9318
9318
  U(Ge), Ge = -1;
9319
9319
  }
9320
9320
  var pn = Nt, rn = null;
9321
- o.unstable_IdlePriority = S, o.unstable_ImmediatePriority = h, o.unstable_LowPriority = w, o.unstable_NormalPriority = N, o.unstable_Profiling = rn, o.unstable_UserBlockingPriority = C, o.unstable_cancelCallback = Me, o.unstable_continueExecution = Ce, o.unstable_forceFrameRate = dt, o.unstable_getCurrentPriorityLevel = Ye, o.unstable_getFirstCallbackNode = Ae, o.unstable_next = we, o.unstable_pauseExecution = ae, o.unstable_requestPaint = pn, o.unstable_runWithPriority = me, o.unstable_scheduleCallback = Z, o.unstable_shouldYield = vt, o.unstable_wrapCallback = se, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
9321
+ o.unstable_IdlePriority = S, o.unstable_ImmediatePriority = h, o.unstable_LowPriority = w, o.unstable_NormalPriority = N, o.unstable_Profiling = rn, o.unstable_UserBlockingPriority = x, o.unstable_cancelCallback = Me, o.unstable_continueExecution = Ce, o.unstable_forceFrameRate = dt, o.unstable_getCurrentPriorityLevel = Ye, o.unstable_getFirstCallbackNode = Ae, o.unstable_next = we, o.unstable_pauseExecution = ae, o.unstable_requestPaint = pn, o.unstable_runWithPriority = me, o.unstable_scheduleCallback = Z, o.unstable_shouldYield = vt, o.unstable_wrapCallback = se, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
9322
9322
  }();
9323
9323
  }(_v)), _v;
9324
9324
  }
@@ -9338,12 +9338,12 @@ function S1() {
9338
9338
  var qv, Ty;
9339
9339
  function u7() {
9340
9340
  return Ty || (Ty = 1, qv = function(u) {
9341
- var x = {}, P = dn, R = S1(), g = Object.assign;
9341
+ var C = {}, P = dn, R = S1(), g = Object.assign;
9342
9342
  function p(n) {
9343
9343
  for (var r = "https://reactjs.org/docs/error-decoder.html?invariant=" + n, l = 1; l < arguments.length; l++) r += "&args[]=" + encodeURIComponent(arguments[l]);
9344
9344
  return "Minified React error #" + n + "; visit " + r + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
9345
9345
  }
9346
- var m = P.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, y = Symbol.for("react.element"), h = Symbol.for("react.portal"), C = Symbol.for("react.fragment"), N = Symbol.for("react.strict_mode"), w = Symbol.for("react.profiler"), S = Symbol.for("react.provider"), E = Symbol.for("react.context"), D = Symbol.for("react.forward_ref"), H = Symbol.for("react.suspense"), B = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), v = Symbol.for("react.lazy"), M = Symbol.for("react.offscreen"), L = Symbol.iterator;
9346
+ var m = P.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, y = Symbol.for("react.element"), h = Symbol.for("react.portal"), x = Symbol.for("react.fragment"), N = Symbol.for("react.strict_mode"), w = Symbol.for("react.profiler"), S = Symbol.for("react.provider"), E = Symbol.for("react.context"), D = Symbol.for("react.forward_ref"), H = Symbol.for("react.suspense"), B = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), v = Symbol.for("react.lazy"), M = Symbol.for("react.offscreen"), L = Symbol.iterator;
9347
9347
  function k(n) {
9348
9348
  return n === null || typeof n != "object" ? null : (n = L && n[L] || n["@@iterator"], typeof n == "function" ? n : null);
9349
9349
  }
@@ -9352,7 +9352,7 @@ function u7() {
9352
9352
  if (typeof n == "function") return n.displayName || n.name || null;
9353
9353
  if (typeof n == "string") return n;
9354
9354
  switch (n) {
9355
- case C:
9355
+ case x:
9356
9356
  return "Fragment";
9357
9357
  case h:
9358
9358
  return "Portal";
@@ -10011,7 +10011,7 @@ function u7() {
10011
10011
  }
10012
10012
  function he(ce, ie, ge, ze) {
10013
10013
  var Ze = ge.type;
10014
- return Ze === C ? Oe(ce, ie, ge.props.children, ze, ge.key) : ie !== null && (ie.elementType === Ze || typeof Ze == "object" && Ze !== null && Ze.$$typeof === v && id(Ze) === ie.type) ? (ze = d(ie, ge.props), ze.ref = ys(ce, ie, ge), ze.return = ce, ze) : (ze = zs(ge.type, ge.key, ge.props, null, ce.mode, ze), ze.ref = ys(ce, ie, ge), ze.return = ce, ze);
10014
+ return Ze === x ? Oe(ce, ie, ge.props.children, ze, ge.key) : ie !== null && (ie.elementType === Ze || typeof Ze == "object" && Ze !== null && Ze.$$typeof === v && id(Ze) === ie.type) ? (ze = d(ie, ge.props), ze.ref = ys(ce, ie, ge), ze.return = ce, ze) : (ze = zs(ge.type, ge.key, ge.props, null, ce.mode, ze), ze.ref = ys(ce, ie, ge), ze.return = ce, ze);
10015
10015
  }
10016
10016
  function Ne(ce, ie, ge, ze) {
10017
10017
  return ie === null || ie.tag !== 4 || ie.stateNode.containerInfo !== ge.containerInfo || ie.stateNode.implementation !== ge.implementation ? (ie = pc(ge, ce.mode, ze), ie.return = ce, ie) : (ie = d(ie, ge.children || []), ie.return = ce, ie);
@@ -10122,13 +10122,13 @@ function u7() {
10122
10122
  }), an && _i(ce, Tt), Ze;
10123
10123
  }
10124
10124
  function ri(ce, ie, ge, ze) {
10125
- if (typeof ge == "object" && ge !== null && ge.type === C && ge.key === null && (ge = ge.props.children), typeof ge == "object" && ge !== null) {
10125
+ if (typeof ge == "object" && ge !== null && ge.type === x && ge.key === null && (ge = ge.props.children), typeof ge == "object" && ge !== null) {
10126
10126
  switch (ge.$$typeof) {
10127
10127
  case y:
10128
10128
  e: {
10129
10129
  for (var Ze = ge.key, ct = ie; ct !== null; ) {
10130
10130
  if (ct.key === Ze) {
10131
- if (Ze = ge.type, Ze === C) {
10131
+ if (Ze = ge.type, Ze === x) {
10132
10132
  if (ct.tag === 7) {
10133
10133
  l(ce, ct.sibling), ie = d(ct, ge.props.children), ie.return = ce, ce = ie;
10134
10134
  break e;
@@ -10142,7 +10142,7 @@ function u7() {
10142
10142
  } else r(ce, ct);
10143
10143
  ct = ct.sibling;
10144
10144
  }
10145
- ge.type === C ? (ie = ni(ge.props.children, ce.mode, ze, ge.key), ie.return = ce, ce = ie) : (ze = zs(ge.type, ge.key, ge.props, null, ce.mode, ze), ze.ref = ys(ce, ie, ge), ze.return = ce, ce = ze);
10145
+ ge.type === x ? (ie = ni(ge.props.children, ce.mode, ze, ge.key), ie.return = ce, ce = ie) : (ze = zs(ge.type, ge.key, ge.props, null, ce.mode, ze), ze.ref = ys(ce, ie, ge), ze.return = ce, ce = ze);
10146
10146
  }
10147
10147
  return Y(ce);
10148
10148
  case h:
@@ -12784,7 +12784,7 @@ Error generating stack: ` + T.message + `
12784
12784
  if (c = n, typeof n == "function") $o(n) && (Y = 1);
12785
12785
  else if (typeof n == "string") Y = 5;
12786
12786
  else e: switch (n) {
12787
- case C:
12787
+ case x:
12788
12788
  return ni(l.children, d, T, r);
12789
12789
  case N:
12790
12790
  Y = 8, d |= 8;
@@ -12885,7 +12885,7 @@ Error generating stack: ` + T.message + `
12885
12885
  function Wl() {
12886
12886
  return null;
12887
12887
  }
12888
- return x.attemptContinuousHydration = function(n) {
12888
+ return C.attemptContinuousHydration = function(n) {
12889
12889
  if (n.tag === 13) {
12890
12890
  var r = ea(n, 134217728);
12891
12891
  if (r !== null) {
@@ -12894,7 +12894,7 @@ Error generating stack: ` + T.message + `
12894
12894
  }
12895
12895
  eu(n, 134217728);
12896
12896
  }
12897
- }, x.attemptDiscreteHydration = function(n) {
12897
+ }, C.attemptDiscreteHydration = function(n) {
12898
12898
  if (n.tag === 13) {
12899
12899
  var r = ea(n, 1);
12900
12900
  if (r !== null) {
@@ -12903,7 +12903,7 @@ Error generating stack: ` + T.message + `
12903
12903
  }
12904
12904
  eu(n, 1);
12905
12905
  }
12906
- }, x.attemptHydrationAtCurrentPriority = function(n) {
12906
+ }, C.attemptHydrationAtCurrentPriority = function(n) {
12907
12907
  if (n.tag === 13) {
12908
12908
  var r = $a(n), l = ea(n, r);
12909
12909
  if (l !== null) {
@@ -12912,7 +12912,7 @@ Error generating stack: ` + T.message + `
12912
12912
  }
12913
12913
  eu(n, r);
12914
12914
  }
12915
- }, x.attemptSynchronousHydration = function(n) {
12915
+ }, C.attemptSynchronousHydration = function(n) {
12916
12916
  switch (n.tag) {
12917
12917
  case 3:
12918
12918
  var r = n.stateNode;
@@ -12930,7 +12930,7 @@ Error generating stack: ` + T.message + `
12930
12930
  }
12931
12931
  }), eu(n, 1);
12932
12932
  }
12933
- }, x.batchedUpdates = function(n, r) {
12933
+ }, C.batchedUpdates = function(n, r) {
12934
12934
  var l = gt;
12935
12935
  gt |= 1;
12936
12936
  try {
@@ -12938,38 +12938,38 @@ Error generating stack: ` + T.message + `
12938
12938
  } finally {
12939
12939
  gt = l, gt === 0 && (kl(), ro && Pa());
12940
12940
  }
12941
- }, x.createComponentSelector = function(n) {
12941
+ }, C.createComponentSelector = function(n) {
12942
12942
  return { $$typeof: Vr, value: n };
12943
- }, x.createContainer = function(n, r, l, c, d, T, Y) {
12943
+ }, C.createContainer = function(n, r, l, c, d, T, Y) {
12944
12944
  return Od(n, r, !1, null, l, c, d, T, Y);
12945
- }, x.createHasPseudoClassSelector = function(n) {
12945
+ }, C.createHasPseudoClassSelector = function(n) {
12946
12946
  return { $$typeof: br, value: n };
12947
- }, x.createHydrationContainer = function(n, r, l, c, d, T, Y, le, he) {
12947
+ }, C.createHydrationContainer = function(n, r, l, c, d, T, Y, le, he) {
12948
12948
  return n = Od(l, c, !0, n, d, T, Y, le, he), n.context = zd(null), l = n.current, c = $t(), d = $a(l), T = ta(c, d), T.callback = r ?? null, Si(l, T, d), n.current.lanes = d, ps(n, d, c), Pn(n, c), n;
12949
- }, x.createPortal = function(n, r, l) {
12949
+ }, C.createPortal = function(n, r, l) {
12950
12950
  var c = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null;
12951
12951
  return { $$typeof: h, key: c == null ? null : "" + c, children: n, containerInfo: r, implementation: l };
12952
- }, x.createRoleSelector = function(n) {
12952
+ }, C.createRoleSelector = function(n) {
12953
12953
  return { $$typeof: Vo, value: n };
12954
- }, x.createTestNameSelector = function(n) {
12954
+ }, C.createTestNameSelector = function(n) {
12955
12955
  return { $$typeof: Io, value: n };
12956
- }, x.createTextSelector = function(n) {
12956
+ }, C.createTextSelector = function(n) {
12957
12957
  return { $$typeof: Yo, value: n };
12958
- }, x.deferredUpdates = function(n) {
12958
+ }, C.deferredUpdates = function(n) {
12959
12959
  var r = Gt, l = yn.transition;
12960
12960
  try {
12961
12961
  return yn.transition = null, Gt = 16, n();
12962
12962
  } finally {
12963
12963
  Gt = r, yn.transition = l;
12964
12964
  }
12965
- }, x.discreteUpdates = function(n, r, l, c, d) {
12965
+ }, C.discreteUpdates = function(n, r, l, c, d) {
12966
12966
  var T = Gt, Y = yn.transition;
12967
12967
  try {
12968
12968
  return yn.transition = null, Gt = 1, n(r, l, c, d);
12969
12969
  } finally {
12970
12970
  Gt = T, yn.transition = Y, gt === 0 && kl();
12971
12971
  }
12972
- }, x.findAllNodes = uc, x.findBoundingRects = function(n, r) {
12972
+ }, C.findAllNodes = uc, C.findBoundingRects = function(n, r) {
12973
12973
  if (!dt) throw Error(p(363));
12974
12974
  r = uc(n, r), n = [];
12975
12975
  for (var l = 0; l < r.length; l++) n.push(St(r[l]));
@@ -12992,11 +12992,11 @@ Error generating stack: ` + T.message + `
12992
12992
  }
12993
12993
  }
12994
12994
  return n;
12995
- }, x.findHostInstance = vc, x.findHostInstanceWithNoPortals = function(n) {
12995
+ }, C.findHostInstance = vc, C.findHostInstanceWithNoPortals = function(n) {
12996
12996
  return n = X(n), n = n !== null ? re(n) : null, n === null ? null : n.stateNode;
12997
- }, x.findHostInstanceWithWarning = function(n) {
12997
+ }, C.findHostInstanceWithWarning = function(n) {
12998
12998
  return vc(n);
12999
- }, x.flushControlled = function(n) {
12999
+ }, C.flushControlled = function(n) {
13000
13000
  var r = gt;
13001
13001
  gt |= 1;
13002
13002
  var l = yn.transition, c = Gt;
@@ -13005,7 +13005,7 @@ Error generating stack: ` + T.message + `
13005
13005
  } finally {
13006
13006
  Gt = c, yn.transition = l, gt = r, gt === 0 && (kl(), Pa());
13007
13007
  }
13008
- }, x.flushPassiveEffects = on, x.flushSync = Ba, x.focusWithin = function(n, r) {
13008
+ }, C.flushPassiveEffects = on, C.flushSync = Ba, C.focusWithin = function(n, r) {
13009
13009
  if (!dt) throw Error(p(363));
13010
13010
  for (n = sc(n), r = Ad(n, r), r = Array.from(r), n = 0; n < r.length; ) {
13011
13011
  var l = r[n++];
@@ -13015,9 +13015,9 @@ Error generating stack: ` + T.message + `
13015
13015
  }
13016
13016
  }
13017
13017
  return !1;
13018
- }, x.getCurrentUpdatePriority = function() {
13018
+ }, C.getCurrentUpdatePriority = function() {
13019
13019
  return Gt;
13020
- }, x.getFindAllNodesFailureDescription = function(n, r) {
13020
+ }, C.getFindAllNodesFailureDescription = function(n, r) {
13021
13021
  if (!dt) throw Error(p(363));
13022
13022
  var l = 0, c = [];
13023
13023
  n = [sc(n), 0];
@@ -13034,7 +13034,7 @@ No matching component was found for:
13034
13034
  `) + n.join(" > ");
13035
13035
  }
13036
13036
  return null;
13037
- }, x.getPublicRootInstance = function(n) {
13037
+ }, C.getPublicRootInstance = function(n) {
13038
13038
  if (n = n.current, !n.child) return null;
13039
13039
  switch (n.child.tag) {
13040
13040
  case 5:
@@ -13042,7 +13042,7 @@ No matching component was found for:
13042
13042
  default:
13043
13043
  return n.child.stateNode;
13044
13044
  }
13045
- }, x.injectIntoDevTools = function(n) {
13045
+ }, C.injectIntoDevTools = function(n) {
13046
13046
  if (n = { bundleType: n.bundleType, version: n.version, rendererPackageName: n.rendererPackageName, rendererConfig: n.rendererConfig, overrideHookState: null, overrideHookStateDeletePath: null, overrideHookStateRenamePath: null, overrideProps: null, overridePropsDeletePath: null, overridePropsRenamePath: null, setErrorHandler: null, setSuspenseHandler: null, scheduleUpdate: null, currentDispatcherRef: m.ReactCurrentDispatcher, findHostInstanceByFiber: Fd, findFiberByHostInstance: n.findFiberByHostInstance || Wl, findHostInstancesForRefresh: null, scheduleRefresh: null, scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, reconcilerVersion: "18.3.1" }, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u") n = !1;
13047
13047
  else {
13048
13048
  var r = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -13056,33 +13056,33 @@ No matching component was found for:
13056
13056
  }
13057
13057
  }
13058
13058
  return n;
13059
- }, x.isAlreadyRendering = function() {
13059
+ }, C.isAlreadyRendering = function() {
13060
13060
  return !1;
13061
- }, x.observeVisibleRects = function(n, r, l, c) {
13061
+ }, C.observeVisibleRects = function(n, r, l, c) {
13062
13062
  if (!dt) throw Error(p(363));
13063
13063
  n = uc(n, r);
13064
13064
  var d = cn(n, l, c).disconnect;
13065
13065
  return { disconnect: function() {
13066
13066
  d();
13067
13067
  } };
13068
- }, x.registerMutableSourceForHydration = function(n, r) {
13068
+ }, C.registerMutableSourceForHydration = function(n, r) {
13069
13069
  var l = r._getVersion;
13070
13070
  l = l(r._source), n.mutableSourceEagerHydrationData == null ? n.mutableSourceEagerHydrationData = [r, l] : n.mutableSourceEagerHydrationData.push(r, l);
13071
- }, x.runWithPriority = function(n, r) {
13071
+ }, C.runWithPriority = function(n, r) {
13072
13072
  var l = Gt;
13073
13073
  try {
13074
13074
  return Gt = n, r();
13075
13075
  } finally {
13076
13076
  Gt = l;
13077
13077
  }
13078
- }, x.shouldError = function() {
13078
+ }, C.shouldError = function() {
13079
13079
  return null;
13080
- }, x.shouldSuspend = function() {
13080
+ }, C.shouldSuspend = function() {
13081
13081
  return !1;
13082
- }, x.updateContainer = function(n, r, l, c) {
13082
+ }, C.updateContainer = function(n, r, l, c) {
13083
13083
  var d = r.current, T = $t(), Y = $a(d);
13084
13084
  return l = zd(l), r.context === null ? r.context = l : r.pendingContext = l, r = ta(T, Y), r.payload = { element: n }, c = c === void 0 ? null : c, c !== null && (r.callback = c), n = Si(d, r, Y), n !== null && (Wn(n, d, Y, T), Pl(n, d, Y)), Y;
13085
- }, x;
13085
+ }, C;
13086
13086
  }), qv;
13087
13087
  }
13088
13088
  var Kv = { exports: {} };
@@ -13098,7 +13098,7 @@ var Kv = { exports: {} };
13098
13098
  var wy;
13099
13099
  function c7() {
13100
13100
  return wy || (wy = 1, process.env.NODE_ENV !== "production" && (Kv.exports = function(u) {
13101
- var x = {}, P = dn, R = S1(), g = P.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, p = !1;
13101
+ var C = {}, P = dn, R = S1(), g = P.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, p = !1;
13102
13102
  function m(e) {
13103
13103
  p = e;
13104
13104
  }
@@ -13106,17 +13106,17 @@ function c7() {
13106
13106
  if (!p) {
13107
13107
  for (var t = arguments.length, a = new Array(t > 1 ? t - 1 : 0), i = 1; i < t; i++)
13108
13108
  a[i - 1] = arguments[i];
13109
- C("warn", e, a);
13109
+ x("warn", e, a);
13110
13110
  }
13111
13111
  }
13112
13112
  function h(e) {
13113
13113
  if (!p) {
13114
13114
  for (var t = arguments.length, a = new Array(t > 1 ? t - 1 : 0), i = 1; i < t; i++)
13115
13115
  a[i - 1] = arguments[i];
13116
- C("error", e, a);
13116
+ x("error", e, a);
13117
13117
  }
13118
13118
  }
13119
- function C(e, t, a) {
13119
+ function x(e, t, a) {
13120
13120
  {
13121
13121
  var i = g.ReactDebugCurrentFrame, s = i.getStackAddendum();
13122
13122
  s !== "" && (t += "%s", a = a.concat([s]));
@@ -22280,7 +22280,7 @@ Check the render method of %s.`, Je(Oe) || "Unknown"));
22280
22280
  reconcilerVersion: G8
22281
22281
  });
22282
22282
  }
22283
- return x.attemptContinuousHydration = X8, x.attemptDiscreteHydration = Y8, x.attemptHydrationAtCurrentPriority = W8, x.attemptSynchronousHydration = I8, x.batchedUpdates = W4, x.createComponentSelector = E4, x.createContainer = H8, x.createHasPseudoClassSelector = b4, x.createHydrationContainer = k8, x.createPortal = U8, x.createRoleSelector = T4, x.createTestNameSelector = A4, x.createTextSelector = w4, x.deferredUpdates = X4, x.discreteUpdates = Q4, x.findAllNodes = Mh, x.findBoundingRects = D4, x.findHostInstance = j8, x.findHostInstanceWithNoPortals = Q8, x.findHostInstanceWithWarning = B8, x.flushControlled = Z4, x.flushPassiveEffects = Bi, x.flushSync = kh, x.focusWithin = P4, x.getCurrentUpdatePriority = cr, x.getFindAllNodesFailureDescription = N4, x.getPublicRootInstance = V8, x.injectIntoDevTools = q8, x.isAlreadyRendering = J4, x.observeVisibleRects = L4, x.registerMutableSourceForHydration = G5, x.runWithPriority = ic, x.shouldError = Vg, x.shouldSuspend = Yg, x.updateContainer = Bg, x;
22283
+ return C.attemptContinuousHydration = X8, C.attemptDiscreteHydration = Y8, C.attemptHydrationAtCurrentPriority = W8, C.attemptSynchronousHydration = I8, C.batchedUpdates = W4, C.createComponentSelector = E4, C.createContainer = H8, C.createHasPseudoClassSelector = b4, C.createHydrationContainer = k8, C.createPortal = U8, C.createRoleSelector = T4, C.createTestNameSelector = A4, C.createTextSelector = w4, C.deferredUpdates = X4, C.discreteUpdates = Q4, C.findAllNodes = Mh, C.findBoundingRects = D4, C.findHostInstance = j8, C.findHostInstanceWithNoPortals = Q8, C.findHostInstanceWithWarning = B8, C.flushControlled = Z4, C.flushPassiveEffects = Bi, C.flushSync = kh, C.focusWithin = P4, C.getCurrentUpdatePriority = cr, C.getFindAllNodesFailureDescription = N4, C.getPublicRootInstance = V8, C.injectIntoDevTools = q8, C.isAlreadyRendering = J4, C.observeVisibleRects = L4, C.registerMutableSourceForHydration = G5, C.runWithPriority = ic, C.shouldError = Vg, C.shouldSuspend = Yg, C.updateContainer = Bg, C;
22284
22284
  })), Kv.exports;
22285
22285
  }
22286
22286
  var Ay;
@@ -22322,13 +22322,13 @@ function v7() {
22322
22322
  ), u = (
22323
22323
  /* */
22324
22324
  4
22325
- ), x = (
22325
+ ), C = (
22326
22326
  /* */
22327
22327
  16
22328
22328
  ), P = (
22329
22329
  /* */
22330
22330
  536870912
22331
- ), R = o, g = u, p = x, m = P, y = 0, h = 1;
22331
+ ), R = o, g = u, p = C, m = P, y = 0, h = 1;
22332
22332
  is.ConcurrentRoot = h, is.ContinuousEventPriority = g, is.DefaultEventPriority = p, is.DiscreteEventPriority = R, is.IdleEventPriority = m, is.LegacyRoot = y;
22333
22333
  }()), is;
22334
22334
  }
@@ -22355,31 +22355,31 @@ For more info see: https://github.com/konvajs/react-konva/issues/256
22355
22355
  react-konva may get confused with ordering. Just define correct order of elements in your render function of a component.
22356
22356
  For more info see: https://github.com/konvajs/react-konva/issues/194
22357
22357
  `, x7 = {};
22358
- function a0(o, u, x = x7) {
22358
+ function a0(o, u, C = x7) {
22359
22359
  if (!My && "zIndex" in u && (console.warn(S7), My = !0), !Ly && u.draggable) {
22360
22360
  var P = u.x !== void 0 || u.y !== void 0, R = u.onDragEnd || u.onDragMove;
22361
22361
  P && !R && (console.warn(y7), Ly = !0);
22362
22362
  }
22363
- for (var g in x)
22363
+ for (var g in C)
22364
22364
  if (!Py[g]) {
22365
- var p = g.slice(0, 2) === "on", m = x[g] !== u[g];
22365
+ var p = g.slice(0, 2) === "on", m = C[g] !== u[g];
22366
22366
  if (p && m) {
22367
22367
  var y = g.substr(2).toLowerCase();
22368
- y.substr(0, 7) === "content" && (y = "content" + y.substr(7, 1).toUpperCase() + y.substr(8)), o.off(y, x[g]);
22368
+ y.substr(0, 7) === "content" && (y = "content" + y.substr(7, 1).toUpperCase() + y.substr(8)), o.off(y, C[g]);
22369
22369
  }
22370
22370
  var h = !u.hasOwnProperty(g);
22371
22371
  h && o.setAttr(g, void 0);
22372
22372
  }
22373
- var C = u._useStrictMode, N = {}, w = !1;
22373
+ var x = u._useStrictMode, N = {}, w = !1;
22374
22374
  const S = {};
22375
22375
  for (var g in u)
22376
22376
  if (!Py[g]) {
22377
- var p = g.slice(0, 2) === "on", E = x[g] !== u[g];
22377
+ var p = g.slice(0, 2) === "on", E = C[g] !== u[g];
22378
22378
  if (p && E) {
22379
22379
  var y = g.substr(2).toLowerCase();
22380
22380
  y.substr(0, 7) === "content" && (y = "content" + y.substr(7, 1).toUpperCase() + y.substr(8)), u[g] && (S[y] = u[g]);
22381
22381
  }
22382
- !p && (u[g] !== x[g] || C && u[g] !== o.getAttr(g)) && (w = !0, N[g] = u[g]);
22382
+ !p && (u[g] !== C[g] || x && u[g] !== o.getAttr(g)) && (w = !0, N[g] = u[g]);
22383
22383
  }
22384
22384
  w && (o.setAttrs(N), os(o));
22385
22385
  for (var y in S)
@@ -22401,7 +22401,7 @@ function E7(o, u) {
22401
22401
  }
22402
22402
  o.add(u), os(o);
22403
22403
  }
22404
- function b7(o, u, x) {
22404
+ function b7(o, u, C) {
22405
22405
  let P = Xf[o];
22406
22406
  P || (console.error(`Konva has no node with the type ${o}. Group will be used instead. If you use minimal version of react-konva, just import required nodes into Konva: "import "konva/lib/shapes/${o}" If you want to render DOM elements as part of canvas tree take a look into this demo: https://konvajs.github.io/docs/react/DOM_Portal.html`), P = Xf.Group);
22407
22407
  const R = {}, g = {};
@@ -22412,10 +22412,10 @@ function b7(o, u, x) {
22412
22412
  const y = new P(R);
22413
22413
  return a0(y, g), y;
22414
22414
  }
22415
- function T7(o, u, x) {
22415
+ function T7(o, u, C) {
22416
22416
  console.error(`Text components are not supported for now in ReactKonva. Your text is: "${o}"`);
22417
22417
  }
22418
- function w7(o, u, x) {
22418
+ function w7(o, u, C) {
22419
22419
  return !1;
22420
22420
  }
22421
22421
  function A7(o) {
@@ -22427,7 +22427,7 @@ function R7() {
22427
22427
  function N7() {
22428
22428
  return null;
22429
22429
  }
22430
- function D7(o, u, x, P) {
22430
+ function D7(o, u, C, P) {
22431
22431
  return C7;
22432
22432
  }
22433
22433
  function P7() {
@@ -22454,11 +22454,11 @@ function V7(o, u) {
22454
22454
  function I7(o, u) {
22455
22455
  u.parent === o ? u.moveToTop() : o.add(u), os(o);
22456
22456
  }
22457
- function p5(o, u, x) {
22458
- u._remove(), o.add(u), u.setZIndex(x.getZIndex()), os(o);
22457
+ function p5(o, u, C) {
22458
+ u._remove(), o.add(u), u.setZIndex(C.getZIndex()), os(o);
22459
22459
  }
22460
- function Y7(o, u, x) {
22461
- p5(o, u, x);
22460
+ function Y7(o, u, C) {
22461
+ p5(o, u, C);
22462
22462
  }
22463
22463
  function X7(o, u) {
22464
22464
  u.destroy(), u.off(x1), os(o);
@@ -22466,12 +22466,12 @@ function X7(o, u) {
22466
22466
  function W7(o, u) {
22467
22467
  u.destroy(), u.off(x1), os(o);
22468
22468
  }
22469
- function Q7(o, u, x) {
22470
- console.error(`Text components are not yet supported in ReactKonva. You text is: "${x}"`);
22469
+ function Q7(o, u, C) {
22470
+ console.error(`Text components are not yet supported in ReactKonva. You text is: "${C}"`);
22471
22471
  }
22472
- function J7(o, u, x) {
22472
+ function J7(o, u, C) {
22473
22473
  }
22474
- function Z7(o, u, x, P, R) {
22474
+ function Z7(o, u, C, P, R) {
22475
22475
  a0(o, R, P);
22476
22476
  }
22477
22477
  function _7(o) {
@@ -22530,23 +22530,23 @@ const nS = () => d5.DefaultEventPriority, rS = /* @__PURE__ */ Object.freeze(/*
22530
22530
  unhideTextInstance: $7,
22531
22531
  warnsIfNotActing: H7
22532
22532
  }, Symbol.toStringTag, { value: "Module" }));
22533
- var aS = Object.defineProperty, iS = Object.defineProperties, lS = Object.getOwnPropertyDescriptors, Oy = Object.getOwnPropertySymbols, sS = Object.prototype.hasOwnProperty, oS = Object.prototype.propertyIsEnumerable, zy = (o, u, x) => u in o ? aS(o, u, { enumerable: !0, configurable: !0, writable: !0, value: x }) : o[u] = x, Fy = (o, u) => {
22534
- for (var x in u || (u = {}))
22535
- sS.call(u, x) && zy(o, x, u[x]);
22533
+ var aS = Object.defineProperty, iS = Object.defineProperties, lS = Object.getOwnPropertyDescriptors, Oy = Object.getOwnPropertySymbols, sS = Object.prototype.hasOwnProperty, oS = Object.prototype.propertyIsEnumerable, zy = (o, u, C) => u in o ? aS(o, u, { enumerable: !0, configurable: !0, writable: !0, value: C }) : o[u] = C, Fy = (o, u) => {
22534
+ for (var C in u || (u = {}))
22535
+ sS.call(u, C) && zy(o, C, u[C]);
22536
22536
  if (Oy)
22537
- for (var x of Oy(u))
22538
- oS.call(u, x) && zy(o, x, u[x]);
22537
+ for (var C of Oy(u))
22538
+ oS.call(u, C) && zy(o, C, u[C]);
22539
22539
  return o;
22540
22540
  }, uS = (o, u) => iS(o, lS(u)), Gy, Uy;
22541
22541
  typeof window < "u" && ((Gy = window.document) != null && Gy.createElement || ((Uy = window.navigator) == null ? void 0 : Uy.product) === "ReactNative") ? ca.useLayoutEffect : ca.useEffect;
22542
- function v5(o, u, x) {
22542
+ function v5(o, u, C) {
22543
22543
  if (!o)
22544
22544
  return;
22545
- if (x(o) === !0)
22545
+ if (C(o) === !0)
22546
22546
  return o;
22547
22547
  let P = o.child;
22548
22548
  for (; P; ) {
22549
- const R = v5(P, u, x);
22549
+ const R = v5(P, u, C);
22550
22550
  if (R)
22551
22551
  return R;
22552
22552
  P = P.sibling;
@@ -22616,13 +22616,13 @@ function cS() {
22616
22616
  function fS() {
22617
22617
  const o = cS(), [u] = ca.useState(() => /* @__PURE__ */ new Map());
22618
22618
  u.clear();
22619
- let x = o;
22620
- for (; x; ) {
22621
- if (x.type && typeof x.type == "object") {
22622
- const R = x.type._context === void 0 && x.type.Provider === x.type ? x.type : x.type._context;
22619
+ let C = o;
22620
+ for (; C; ) {
22621
+ if (C.type && typeof C.type == "object") {
22622
+ const R = C.type._context === void 0 && C.type.Provider === C.type ? C.type : C.type._context;
22623
22623
  R && R !== C1 && !u.has(R) && u.set(R, ca.useContext(m5(R)));
22624
22624
  }
22625
- x = x.return;
22625
+ C = C.return;
22626
22626
  }
22627
22627
  return u;
22628
22628
  }
@@ -22630,8 +22630,8 @@ function dS() {
22630
22630
  const o = fS();
22631
22631
  return ca.useMemo(
22632
22632
  () => Array.from(o.keys()).reduce(
22633
- (u, x) => (P) => /* @__PURE__ */ ca.createElement(u, null, /* @__PURE__ */ ca.createElement(x.Provider, uS(Fy({}, P), {
22634
- value: o.get(x)
22633
+ (u, C) => (P) => /* @__PURE__ */ ca.createElement(u, null, /* @__PURE__ */ ca.createElement(C.Provider, uS(Fy({}, P), {
22634
+ value: o.get(C)
22635
22635
  }))),
22636
22636
  (u) => /* @__PURE__ */ ca.createElement(g5, Fy({}, u))
22637
22637
  ),
@@ -22647,18 +22647,18 @@ function hS(o) {
22647
22647
  }, []), u.current;
22648
22648
  }
22649
22649
  const pS = (o) => {
22650
- const u = dn.useRef(), x = dn.useRef(), P = dn.useRef(), R = hS(o), g = dS(), p = (m) => {
22650
+ const u = dn.useRef(), C = dn.useRef(), P = dn.useRef(), R = hS(o), g = dS(), p = (m) => {
22651
22651
  const { forwardedRef: y } = o;
22652
22652
  y && (typeof y == "function" ? y(m) : y.current = m);
22653
22653
  };
22654
- return dn.useLayoutEffect(() => (x.current = new Xf.Stage({
22654
+ return dn.useLayoutEffect(() => (C.current = new Xf.Stage({
22655
22655
  width: o.width,
22656
22656
  height: o.height,
22657
22657
  container: u.current
22658
- }), p(x.current), P.current = Hf.createContainer(x.current, d5.LegacyRoot, !1, null), Hf.updateContainer(dn.createElement(g, {}, o.children), P.current), () => {
22659
- Xf.isBrowser && (p(null), Hf.updateContainer(null, P.current, null), x.current.destroy());
22658
+ }), p(C.current), P.current = Hf.createContainer(C.current, d5.LegacyRoot, !1, null), Hf.updateContainer(dn.createElement(g, {}, o.children), P.current), () => {
22659
+ Xf.isBrowser && (p(null), Hf.updateContainer(null, P.current, null), C.current.destroy());
22660
22660
  }), []), dn.useLayoutEffect(() => {
22661
- p(x.current), a0(x.current, o, R), Hf.updateContainer(dn.createElement(g, {}, o.children), P.current, null);
22661
+ p(C.current), a0(C.current, o, R), Hf.updateContainer(dn.createElement(g, {}, o.children), P.current, null);
22662
22662
  }), dn.createElement("div", {
22663
22663
  ref: u,
22664
22664
  id: o.id,
@@ -22677,8 +22677,8 @@ Hf.injectIntoDevTools({
22677
22677
  version: dn.version,
22678
22678
  rendererPackageName: "react-konva"
22679
22679
  });
22680
- const yS = dn.forwardRef((o, u) => dn.createElement(g5, {}, dn.createElement(pS, { ...o, forwardedRef: u }))), y5 = ({ imageUrl: o, customClassName: u = "", containerRef: x }) => {
22681
- const { showPenTool: P, penColor: R, penTool: g, strokeWidth: p } = Qf(), [m, y] = at(null), [h, C] = at({ width: 0, height: 0 }), [N, w] = at(!1), [S, E] = at([]), [D, H] = at(
22680
+ const yS = dn.forwardRef((o, u) => dn.createElement(g5, {}, dn.createElement(pS, { ...o, forwardedRef: u }))), y5 = ({ imageUrl: o, customClassName: u = "", containerRef: C }) => {
22681
+ const { showPenTool: P, penColor: R, penTool: g, strokeWidth: p } = Qf(), [m, y] = at(null), [h, x] = at({ width: 0, height: 0 }), [N, w] = at(!1), [S, E] = at([]), [D, H] = at(
22682
22682
  []
22683
22683
  ), [B, b] = at(null), v = jt(null), M = jt(null), L = 600, k = 600;
22684
22684
  un(() => {
@@ -22686,7 +22686,7 @@ const yS = dn.forwardRef((o, u) => dn.createElement(g5, {}, dn.createElement(pS,
22686
22686
  F.onload = () => {
22687
22687
  y(F);
22688
22688
  const X = Math.min(L / F.width, k / F.height, 1);
22689
- C({
22689
+ x({
22690
22690
  width: Math.min(F.width * X, L),
22691
22691
  height: Math.min(F.height * X, k)
22692
22692
  });
@@ -22733,19 +22733,19 @@ const yS = dn.forwardRef((o, u) => dn.createElement(g5, {}, dn.createElement(pS,
22733
22733
  ]), b(null)));
22734
22734
  }, [P, m, B, g, D, R, p]);
22735
22735
  return un(() => {
22736
- if (!x) return;
22736
+ if (!C) return;
22737
22737
  const F = () => {
22738
- const X = document.getElementById(x);
22738
+ const X = document.getElementById(C);
22739
22739
  if (X && m) {
22740
22740
  const { clientWidth: K, clientHeight: $ } = X, re = Math.min(K / m.width, $ / m.height);
22741
- C({
22741
+ x({
22742
22742
  width: m.width * re,
22743
22743
  height: m.height * re
22744
22744
  });
22745
22745
  }
22746
22746
  };
22747
22747
  return F(), window.addEventListener("resize", F), () => window.removeEventListener("resize", F);
22748
- }, [x, m]), m ? /* @__PURE__ */ Q.jsx("div", { style: { position: "relative" }, className: u, children: /* @__PURE__ */ Q.jsx(
22748
+ }, [C, m]), m ? /* @__PURE__ */ Q.jsx("div", { style: { position: "relative" }, className: u, children: /* @__PURE__ */ Q.jsx(
22749
22749
  yS,
22750
22750
  {
22751
22751
  ref: v,
@@ -22866,13 +22866,13 @@ const yS = dn.forwardRef((o, u) => dn.createElement(g5, {}, dn.createElement(pS,
22866
22866
  ) });
22867
22867
  };
22868
22868
  function SS(o) {
22869
- const { containerHeight: u, containerWidth: x } = o, { groupDocuments: P } = S9(), { parentRef: R } = Ya(), g = jt(null);
22869
+ const { containerHeight: u, containerWidth: C } = o, { groupDocuments: P } = S9(), { parentRef: R } = Ya(), g = jt(null);
22870
22870
  let p = 1, m = P.length;
22871
22871
  (P.length === 3 || P.length === 4) && (p = 2, m = 2);
22872
- const y = u / p, h = x / m;
22872
+ const y = u / p, h = C / m;
22873
22873
  return un(() => {
22874
- g.current && (g.current.style.height = `${u}px`, g.current.style.width = `${x}px`);
22875
- }, [u, x, R]), /* @__PURE__ */ Q.jsx(
22874
+ g.current && (g.current.style.height = `${u}px`, g.current.style.width = `${C}px`);
22875
+ }, [u, C, R]), /* @__PURE__ */ Q.jsx(
22876
22876
  "div",
22877
22877
  {
22878
22878
  ref: g,
@@ -22883,11 +22883,11 @@ function SS(o) {
22883
22883
  gridTemplateRows: P.length > 2 ? `repeat(${p}, 1fr)` : void 0,
22884
22884
  gap: "8px",
22885
22885
  height: `${u}px`,
22886
- width: `${x}px`,
22886
+ width: `${C}px`,
22887
22887
  justifyContent: P.length === 1 ? "center" : void 0,
22888
22888
  alignItems: "center"
22889
22889
  },
22890
- children: P.map((C, N) => /* @__PURE__ */ Q.jsx(
22890
+ children: P.map((x, N) => /* @__PURE__ */ Q.jsx(
22891
22891
  "div",
22892
22892
  {
22893
22893
  style: {
@@ -22897,17 +22897,17 @@ function SS(o) {
22897
22897
  alignItems: "center",
22898
22898
  justifyContent: N % 2 === 0 ? "flex-end" : "flex-start"
22899
22899
  },
22900
- id: `compare-${C.id}`,
22901
- children: /* @__PURE__ */ Q.jsx(y5, { imageUrl: C.filePath, containerRef: `compare-${C.id}` })
22900
+ id: `compare-${x.id}`,
22901
+ children: /* @__PURE__ */ Q.jsx(y5, { imageUrl: x.filePath, containerRef: `compare-${x.id}` })
22902
22902
  },
22903
- `compare-${C.id}`
22903
+ `compare-${x.id}`
22904
22904
  ))
22905
22905
  }
22906
22906
  );
22907
22907
  }
22908
22908
  const xS = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M5.75%203H18.25C19.7688%203%2021%204.23122%2021%205.75V18.25C21%2019.7688%2019.7688%2021%2018.25%2021H5.75C4.23122%2021%203%2019.7688%203%2018.25V5.75C3%204.23122%204.23122%203%205.75%203ZM5.75%204.5C5.05964%204.5%204.5%205.05964%204.5%205.75V18.25C4.5%2018.9404%205.05964%2019.5%205.75%2019.5H18.25C18.9404%2019.5%2019.5%2018.9404%2019.5%2018.25V5.75C19.5%205.05964%2018.9404%204.5%2018.25%204.5H5.75Z'%20fill='%237C8897'/%3e%3c/svg%3e", CS = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAADxSURBVHgB7ZI9DoIwGIa/0gt4IRk0TnIR44IjEUNJiIbJDeI9ZJNEceE6HABqqwvy169MDDxJk6Yt7wP0BZiZHKcwst0w9kAT+dzxHNnNdaN1sqQAHJiOxA1vHufkSghfNPdocyFL77m5toiYMnNjQfZIXqpw4BUTww+cPVMKfpLkiZGownsFGAkmfFAwJMGGSwggcC8xEyc9Mdi3F8hwtOBPIkGGSwzAYhi8c66AYg7V/7n4aHkPqAqjBM0LxVYYJehri46E6obrSuiYcB0JHRveJVmutsU7TfL6fqumpISCV/yA7bkkcHbihcCHmUnyAbVr1q3eVypyAAAAAElFTkSuQmCC", ES = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M21.0302%202.96967C22.4276%204.36713%2022.4276%206.63286%2021.0302%208.03033L9.06186%2019.9987C8.78498%2020.2755%208.44064%2020.4754%208.06288%2020.5784L2.94719%2021.9736C2.38732%2022.1263%201.87359%2021.6125%202.02628%2021.0527L3.42147%2015.937C3.52449%2015.5592%203.72432%2015.2149%204.0012%2014.938L15.9695%202.96967C17.367%201.5722%2019.6327%201.5722%2021.0302%202.96967ZM15%206.06057L5.06186%2015.9987C4.96956%2016.0909%204.90296%2016.2057%204.86861%2016.3316L3.81877%2020.1811L7.6682%2019.1312C7.79412%2019.0969%207.9089%2019.0303%208.0012%2018.938L17.939%208.99957L15%206.06057ZM17.0302%204.03033L16.06%204.99957L18.999%207.93957L19.9695%206.96967C20.7812%206.15799%2020.7812%204.842%2019.9695%204.03033C19.1578%203.21865%2017.8419%203.21865%2017.0302%204.03033Z'%20fill='%237C8897'/%3e%3c/svg%3e", bS = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12%202C17.5228%202%2022%206.47715%2022%2012C22%2017.5228%2017.5228%2022%2012%2022C6.47715%2022%202%2017.5228%202%2012C2%206.47715%206.47715%202%2012%202ZM12%203.5C7.30558%203.5%203.5%207.30558%203.5%2012C3.5%2016.6944%207.30558%2020.5%2012%2020.5C16.6944%2020.5%2020.5%2016.6944%2020.5%2012C20.5%207.30558%2016.6944%203.5%2012%203.5Z'%20fill='%237C8897'/%3e%3c/svg%3e";
22909
22909
  function TS() {
22910
- const { setShowPenTool: o, setPenTool: u } = Qf(), x = wa(
22910
+ const { setShowPenTool: o, setPenTool: u } = Qf(), C = wa(
22911
22911
  () => [
22912
22912
  {
22913
22913
  image: CS,
@@ -22932,7 +22932,7 @@ function TS() {
22932
22932
  ],
22933
22933
  [u, o]
22934
22934
  );
22935
- return /* @__PURE__ */ Q.jsx("div", { className: "hfl-rounded-md hfl-p-2 hfl-bg-White hfl-flex hfl-flex-col hfl-gap-2 hfl-items-center", children: x.map((P) => /* @__PURE__ */ Q.jsx(
22935
+ return /* @__PURE__ */ Q.jsx("div", { className: "hfl-rounded-md hfl-p-2 hfl-bg-White hfl-flex hfl-flex-col hfl-gap-2 hfl-items-center", children: C.map((P) => /* @__PURE__ */ Q.jsx(
22936
22936
  "img",
22937
22937
  {
22938
22938
  src: P.image,
@@ -22947,7 +22947,7 @@ function TS() {
22947
22947
  function wS() {
22948
22948
  const { setPenColor: o, penColor: u } = Qf();
22949
22949
  return /* @__PURE__ */ Q.jsx("div", { className: "hfl-rounded-md hfl-p-2 hfl-bg-White hfl-flex hfl-flex-col hfl-gap-2 hfl-items-center", children: e1.map(
22950
- (x) => u === x ? /* @__PURE__ */ Q.jsx(
22950
+ (C) => u === C ? /* @__PURE__ */ Q.jsx(
22951
22951
  "div",
22952
22952
  {
22953
22953
  className: "hfl-border-Primary-600 hfl-w-[26px] hfl-h-[26px] hfl-rounded-full hfl-flex hfl-justify-center hfl-items-center hfl-border-2",
@@ -22955,31 +22955,31 @@ function wS() {
22955
22955
  "div",
22956
22956
  {
22957
22957
  className: "hfl-rounded-full hfl-w-[24px] hfl-h-[24px] ",
22958
- style: { backgroundColor: x },
22959
- onClick: () => o(x)
22958
+ style: { backgroundColor: C },
22959
+ onClick: () => o(C)
22960
22960
  }
22961
22961
  )
22962
22962
  },
22963
- x
22963
+ C
22964
22964
  ) : /* @__PURE__ */ Q.jsx(
22965
22965
  "div",
22966
22966
  {
22967
22967
  className: "hfl-rounded-full hfl-w-[24px] hfl-h-[24px] ",
22968
- style: { backgroundColor: x },
22969
- onClick: () => o(x)
22968
+ style: { backgroundColor: C },
22969
+ onClick: () => o(C)
22970
22970
  },
22971
- x
22971
+ C
22972
22972
  )
22973
22973
  ) });
22974
22974
  }
22975
22975
  function S5() {
22976
- const o = jt(null), { parentRef: u } = Ya(), { showPenTool: x } = Qf();
22976
+ const o = jt(null), { parentRef: u } = Ya(), { showPenTool: C } = Qf();
22977
22977
  return un(() => {
22978
- if (x && u.current && o.current) {
22978
+ if (C && u.current && o.current) {
22979
22979
  const P = u.current.getBoundingClientRect(), R = P.width, g = P.height, p = P.top + g * 0.1, m = P.left + R * 0.9;
22980
22980
  o.current.style.position = "fixed", o.current.style.top = `${p}px`, o.current.style.left = `${m}px`;
22981
22981
  }
22982
- }, [u, x]), x ? /* @__PURE__ */ Q.jsxs("div", { className: "hfl-fixed hfl-z-99999999 hfl-flex hfl-flex-col hfl-gap-2", ref: o, children: [
22982
+ }, [u, C]), C ? /* @__PURE__ */ Q.jsxs("div", { className: "hfl-fixed hfl-z-99999999 hfl-flex hfl-flex-col hfl-gap-2", ref: o, children: [
22983
22983
  /* @__PURE__ */ Q.jsx(TS, {}),
22984
22984
  /* @__PURE__ */ Q.jsx(wS, {})
22985
22985
  ] }) : null;
@@ -22988,12 +22988,12 @@ function AS() {
22988
22988
  const {
22989
22989
  clearSelectedDocuments: o,
22990
22990
  setSelectedGroup: u,
22991
- selectedGroup: x,
22991
+ selectedGroup: C,
22992
22992
  selectedDocuments: P,
22993
22993
  addDocument: R,
22994
22994
  setShowSaveGroupPreview: g,
22995
22995
  updateDocument: p
22996
- } = Aa(), [m, y] = at(!1), h = jt(null), { onSaveComparision: C, setCompareMode: N, setShowPreview: w, setError: S } = Ya(), [E, D] = at(x?.label || ""), H = nn(() => {
22996
+ } = Aa(), [m, y] = at(!1), h = jt(null), { onSaveComparision: x, setCompareMode: N, setShowPreview: w, setError: S } = Ya(), [E, D] = at(C?.label || ""), H = nn(() => {
22997
22997
  w(!1), N(!1), u(null), o(), g(!1);
22998
22998
  }, [o, N, u, w, g]), B = nn(async () => {
22999
22999
  if (!E) {
@@ -23002,12 +23002,12 @@ function AS() {
23002
23002
  }
23003
23003
  try {
23004
23004
  y(!0);
23005
- const v = await C(
23006
- x?.id || "",
23005
+ const v = await x(
23006
+ C?.id || "",
23007
23007
  E,
23008
23008
  P.map((M) => M.id)
23009
23009
  );
23010
- v.status && v.data && (x?.id ? p(v.data) : R(v.data));
23010
+ v.status && v.data && (C?.id ? p(v.data) : R(v.data));
23011
23011
  } catch (v) {
23012
23012
  console.error("Error saving comparison:", v);
23013
23013
  } finally {
@@ -23016,9 +23016,9 @@ function AS() {
23016
23016
  }, [
23017
23017
  R,
23018
23018
  H,
23019
- C,
23019
+ x,
23020
23020
  P,
23021
- x?.id,
23021
+ C?.id,
23022
23022
  E,
23023
23023
  S,
23024
23024
  p
@@ -23086,15 +23086,15 @@ function AS() {
23086
23086
  );
23087
23087
  }
23088
23088
  function RS() {
23089
- const { parentRef: o } = Ya(), { selectedDocuments: u, selectedGroup: x, showSaveGroupPreview: P } = Aa(), R = jt(null), [g, p] = at(void 0), [m, y] = at([]), [h, C] = at(0), [N, w] = at(0);
23089
+ const { parentRef: o } = Ya(), { selectedDocuments: u, selectedGroup: C, showSaveGroupPreview: P } = Aa(), R = jt(null), [g, p] = at(void 0), [m, y] = at([]), [h, x] = at(0), [N, w] = at(0);
23090
23090
  return un(() => {
23091
23091
  o.current && R.current && (R.current.style.height = `${o.current.clientHeight}px`, R.current.style.width = `${o.current.clientWidth}px`, R.current.style.top = o.current.getBoundingClientRect().top + "px", R.current.style.left = o.current.getBoundingClientRect().left + "px");
23092
23092
  }, [o]), un(() => {
23093
- x ? (y(x.documents), p(x.id)) : (y(u), p(void 0));
23094
- }, [u, x]), un(() => {
23093
+ C ? (y(C.documents), p(C.id)) : (y(u), p(void 0));
23094
+ }, [u, C]), un(() => {
23095
23095
  if (o.current) {
23096
23096
  const S = o.current.clientHeight;
23097
- C(S - N);
23097
+ x(S - N);
23098
23098
  }
23099
23099
  }, [N, o]), /* @__PURE__ */ Q.jsx(Xy.Provider, { value: { groupDocuments: m, setGroupDocuments: y, groupId: g, setGroupId: p }, children: /* @__PURE__ */ Q.jsxs("div", { ref: R, className: "hfl-fixed hfl-z-99999", children: [
23100
23100
  /* @__PURE__ */ Q.jsx(i5, { setHeaderHeight: w }),
@@ -23110,7 +23110,7 @@ function RS() {
23110
23110
  ] }) });
23111
23111
  }
23112
23112
  function NS(o) {
23113
- const { selectedIndex: u, selectedPreview: x, setSelectedIndex: P } = o, R = nn(
23113
+ const { selectedIndex: u, selectedPreview: C, setSelectedIndex: P } = o, R = nn(
23114
23114
  (g) => {
23115
23115
  P(g);
23116
23116
  },
@@ -23119,8 +23119,8 @@ function NS(o) {
23119
23119
  return /* @__PURE__ */ Q.jsx(
23120
23120
  "div",
23121
23121
  {
23122
- className: `hfl-flex hfl-bg-Gray-600 hfl-p-2 hfl-flex-col hfl-gap-2 hfl-h-full ${x.length < 2 ? "hfl-hidden" : ""}`,
23123
- children: x.map((g, p) => /* @__PURE__ */ Q.jsx(
23122
+ className: `hfl-flex hfl-bg-Gray-600 hfl-p-2 hfl-flex-col hfl-gap-2 hfl-h-full ${C.length < 2 ? "hfl-hidden" : ""}`,
23123
+ children: C.map((g, p) => /* @__PURE__ */ Q.jsx(
23124
23124
  "img",
23125
23125
  {
23126
23126
  src: g.filePath,
@@ -23137,7 +23137,7 @@ function NS(o) {
23137
23137
  }
23138
23138
  const DS = bu(NS), PS = "data:image/svg+xml,%3csvg%20width='9'%20height='16'%20viewBox='0%200%209%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M8.03033%2015.2803C8.32322%2014.9874%208.32322%2014.5126%208.03033%2014.2197L1.81066%208L8.03033%201.78033C8.32322%201.48744%208.32322%201.01256%208.03033%200.71967C7.73744%200.426777%207.26256%200.426777%206.96967%200.71967L0.219671%207.46967C-0.0732224%207.76256%20-0.0732225%208.23744%200.219671%208.53033L6.96967%2015.2803C7.26256%2015.5732%207.73744%2015.5732%208.03033%2015.2803Z'%20fill='%23101828'/%3e%3c/svg%3e", MS = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M8.96967%204.71967C8.67678%205.01256%208.67678%205.48744%208.96967%205.78033L15.1893%2012L8.96967%2018.2197C8.67678%2018.5126%208.67678%2018.9874%208.96967%2019.2803C9.26256%2019.5732%209.73744%2019.5732%2010.0303%2019.2803L16.7803%2012.5303C17.0732%2012.2374%2017.0732%2011.7626%2016.7803%2011.4697L10.0303%204.71967C9.73744%204.42678%209.26256%204.42678%208.96967%204.71967Z'%20fill='%23101828'/%3e%3c/svg%3e";
23139
23139
  function LS(o) {
23140
- const { selectedIndex: u, documentPreview: x, handleImageChange: P } = o, R = jt(null), g = wa(() => x[u], [x, u]);
23140
+ const { selectedIndex: u, documentPreview: C, handleImageChange: P } = o, R = jt(null), g = wa(() => C[u], [C, u]);
23141
23141
  return /* @__PURE__ */ Q.jsxs("div", { className: "hfl-flex hfl-gap-4 hfl-py-2 hfl-items-center", ref: R, children: [
23142
23142
  /* @__PURE__ */ Q.jsx(
23143
23143
  "button",
@@ -23154,14 +23154,14 @@ function LS(o) {
23154
23154
  {
23155
23155
  onClick: () => P("next"),
23156
23156
  className: " hfl-w-[48px] hfl-h-[48px] hfl-rounded-full hfl-cursor-pointer hfl-bg-Gray-300 hfl-flex hfl-justify-center hfl-items-center",
23157
- disabled: u === x.length - 1,
23157
+ disabled: u === C.length - 1,
23158
23158
  children: /* @__PURE__ */ Q.jsx("img", { src: MS })
23159
23159
  }
23160
23160
  )
23161
23161
  ] });
23162
23162
  }
23163
23163
  function OS() {
23164
- const { parentRef: o } = Ya(), u = jt(null), [x, P] = at(0), { selectedDocuments: R, selectedGroup: g } = Aa(), p = jt(null), m = wa(
23164
+ const { parentRef: o } = Ya(), u = jt(null), [C, P] = at(0), { selectedDocuments: R, selectedGroup: g } = Aa(), p = jt(null), m = wa(
23165
23165
  () => g ? g.documents : R,
23166
23166
  [R, g]
23167
23167
  ), [y, h] = at(0);
@@ -23170,10 +23170,10 @@ function OS() {
23170
23170
  }, [o]), un(() => {
23171
23171
  if (o.current && p.current) {
23172
23172
  const N = o.current.clientHeight;
23173
- p.current.style.height = `${N - x}px`;
23173
+ p.current.style.height = `${N - C}px`;
23174
23174
  }
23175
- }, [x, o]);
23176
- const C = nn(
23175
+ }, [C, o]);
23176
+ const x = nn(
23177
23177
  (N) => {
23178
23178
  h((w) => N === "next" ? m.length - 1 === w ? 0 : w + 1 : w === 0 ? m.length - 1 : w - 1);
23179
23179
  },
@@ -23181,12 +23181,12 @@ function OS() {
23181
23181
  );
23182
23182
  return un(() => {
23183
23183
  const N = (w) => {
23184
- w.key === "ArrowRight" ? C("next") : w.key === "ArrowLeft" && C("prev");
23184
+ w.key === "ArrowRight" ? x("next") : w.key === "ArrowLeft" && x("prev");
23185
23185
  };
23186
23186
  return window.addEventListener("keydown", N), () => {
23187
23187
  window.removeEventListener("keydown", N);
23188
23188
  };
23189
- }, [C]), /* @__PURE__ */ Q.jsxs("div", { className: "hfl-z-99999 hfl-fixed", ref: u, children: [
23189
+ }, [x]), /* @__PURE__ */ Q.jsxs("div", { className: "hfl-z-99999 hfl-fixed", ref: u, children: [
23190
23190
  /* @__PURE__ */ Q.jsx(i5, { setHeaderHeight: P, isPreview: !0 }),
23191
23191
  /* @__PURE__ */ Q.jsxs("div", { className: " hfl-bg-Gray-400 hfl-flex hfl-flex-justify-center hfl-pr-2 hfl-w-full", ref: p, children: [
23192
23192
  /* @__PURE__ */ Q.jsx(
@@ -23202,7 +23202,7 @@ function OS() {
23202
23202
  {
23203
23203
  documentPreview: m,
23204
23204
  selectedIndex: y,
23205
- handleImageChange: C
23205
+ handleImageChange: x
23206
23206
  }
23207
23207
  ) })
23208
23208
  ] }),
@@ -23210,8 +23210,8 @@ function OS() {
23210
23210
  ] });
23211
23211
  }
23212
23212
  const zS = ({ file_data: o }) => {
23213
- const [u, x] = at(!1), P = jt(null), R = [{ src: o, type: "video/mp4" }], g = (p) => {
23214
- p.currentTarget.remove(), P.current && P.current.children.length === 0 && x(!0);
23213
+ const [u, C] = at(!1), P = jt(null), R = [{ src: o, type: "video/mp4" }], g = (p) => {
23214
+ p.currentTarget.remove(), P.current && P.current.children.length === 0 && C(!0);
23215
23215
  };
23216
23216
  return /* @__PURE__ */ Q.jsx("div", { className: "hfl-flex hfl-justify-center hfl-items-center hfl-w-full hfl-max-w-[800px] hfl-mx-auto", children: u ? /* @__PURE__ */ Q.jsx("div", { className: "hfl-flex hfl-flex-col hfl-justify-center hfl-items-center hfl-gap-2 hfl-h-[300px] hfl-p-2", children: /* @__PURE__ */ Q.jsx(It, { variant: "Medium", type: "Text md", className: "xxxs:max-sm:hfl-text-[10px]", children: "Live preview is not supported for this video. Please download it to watch." }) }) : /* @__PURE__ */ Q.jsxs(
23217
23217
  "video",
@@ -23227,7 +23227,7 @@ const zS = ({ file_data: o }) => {
23227
23227
  }
23228
23228
  ) });
23229
23229
  }, FS = () => /* @__PURE__ */ Q.jsx("div", { className: "hfl-inset-0 hfl-z-[100] hfl-flex hfl-h-full hfl-w-full hfl-items-center hfl-justify-center hfl-overflow-y-auto hfl-outline-none focus:hfl-outline-none", children: /* @__PURE__ */ Q.jsx(n6, { progress: 10, spinnerMode: !0 }) }), GS = ({ file_data: o }) => {
23230
- const [u, x] = at(!0), [P, R] = at(!1);
23230
+ const [u, C] = at(!0), [P, R] = at(!1);
23231
23231
  return /* @__PURE__ */ Q.jsxs("div", { className: "hfl-relative hfl-w-full hfl-max-w-[800px] hfl-mx-auto", children: [
23232
23232
  u && !P && /* @__PURE__ */ Q.jsx("div", { className: "hfl-flex hfl-w-full hfl-justify-center hfl-items-center hfl-h-full", children: /* @__PURE__ */ Q.jsx(FS, {}) }),
23233
23233
  P ? (
@@ -23239,9 +23239,9 @@ const zS = ({ file_data: o }) => {
23239
23239
  src: `${o}?t=${Date.now()}`,
23240
23240
  loading: "lazy",
23241
23241
  className: "hfl-w-full hfl-h-auto hfl-transition-opacity hfl-duration-300 hfl-rounded-lg",
23242
- onLoad: () => x(!1),
23242
+ onLoad: () => C(!1),
23243
23243
  onError: () => {
23244
- x(!1), R(!0);
23244
+ C(!1), R(!0);
23245
23245
  },
23246
23246
  style: { opacity: u ? 0 : 1 },
23247
23247
  alt: "Preview"
@@ -23251,7 +23251,7 @@ const zS = ({ file_data: o }) => {
23251
23251
  }, US = ({
23252
23252
  childModalRef: o,
23253
23253
  children: u,
23254
- hideBackDrop: x = !1,
23254
+ hideBackDrop: C = !1,
23255
23255
  backdropClasses: P = "",
23256
23256
  modalClasses: R = "",
23257
23257
  closeOnClickOutside: g,
@@ -23268,13 +23268,13 @@ const zS = ({ file_data: o }) => {
23268
23268
  }, [p, o, g]), /* @__PURE__ */ Q.jsx(
23269
23269
  "div",
23270
23270
  {
23271
- className: `hfl-fixed ${m} hfl-z-50 hfl-flex hfl-items-center hfl-justify-center ${P} ${x ? "" : "hfl-bg-Gray-750 hfl-backdrop-blur-sm"}`,
23271
+ className: `hfl-fixed ${m} hfl-z-50 hfl-flex hfl-items-center hfl-justify-center ${P} ${C ? "" : "hfl-bg-Gray-750 hfl-backdrop-blur-sm"}`,
23272
23272
  children: /* @__PURE__ */ Q.jsx("div", { ref: o, className: `hfl-rounded-lg hfl-shadow-md hfl-bg-White ${R ?? ""}`, children: u })
23273
23273
  }
23274
23274
  )), jS = () => {
23275
- const { selectedDocuments: o, clearSelectedDocuments: u } = Aa(), { setShowPreview: x } = Ya(), P = wa(() => o[0], [o]), R = jt(null), g = nn(() => {
23276
- x(!1), u();
23277
- }, [u, x]), p = (m) => {
23275
+ const { selectedDocuments: o, clearSelectedDocuments: u } = Aa(), { setShowPreview: C } = Ya(), P = wa(() => o[0], [o]), R = jt(null), g = nn(() => {
23276
+ C(!1), u();
23277
+ }, [u, C]), p = (m) => {
23278
23278
  switch (m) {
23279
23279
  case Or.PDF:
23280
23280
  return /* @__PURE__ */ Q.jsx("div", { className: "hfl-px-6 hfl-pt-4 hfl-pb-20 hfl-bg-white hfl-h-[100vh] hfl-w-full", children: /* @__PURE__ */ Q.jsx("iframe", { src: `${P.filePath}`, width: "100%", height: "100%", style: { border: "none" }, children: "Your browser does not support PDFs." }) });
@@ -23318,8 +23318,8 @@ const zS = ({ file_data: o }) => {
23318
23318
  value: o
23319
23319
  }))
23320
23320
  ];
23321
- function HS({ isOpen: o, document: u, onClose: x, onSave: P }) {
23322
- const [R, g] = at(""), [p, m] = at(""), [y, h] = at(!1), [C, N] = at(""), [w, S] = at("");
23321
+ function HS({ isOpen: o, document: u, onClose: C, onSave: P }) {
23322
+ const [R, g] = at(""), [p, m] = at(""), [y, h] = at(!1), [x, N] = at(""), [w, S] = at("");
23323
23323
  un(() => {
23324
23324
  if (u) {
23325
23325
  const D = u.label, H = D.lastIndexOf(".");
@@ -23332,13 +23332,13 @@ function HS({ isOpen: o, document: u, onClose: x, onSave: P }) {
23332
23332
  try {
23333
23333
  const D = {
23334
23334
  id: u.id,
23335
- label: `${C}${w}`,
23335
+ label: `${x}${w}`,
23336
23336
  reportType: R === kf.REPORT_TYPE_UNSPECIFIED ? "" : R,
23337
23337
  createdAt: new Date(p).toISOString(),
23338
23338
  filePath: u.filePath,
23339
23339
  mimeType: u.mimeType
23340
23340
  };
23341
- await P(D), x();
23341
+ await P(D), C();
23342
23342
  } catch (D) {
23343
23343
  console.error("Failed to save document:", D);
23344
23344
  } finally {
@@ -23359,7 +23359,7 @@ function HS({ isOpen: o, document: u, onClose: x, onSave: P }) {
23359
23359
  "input",
23360
23360
  {
23361
23361
  id: "documentName",
23362
- value: C,
23362
+ value: x,
23363
23363
  onChange: (D) => N(D.target.value),
23364
23364
  placeholder: "Enter document name",
23365
23365
  className: "hfl-w-full hfl-border hfl-border-Gray-300 hfl-rounded-md hfl-px-3 hfl-py-2 focus:hfl-outline-none focus:hfl-ring-2 focus:hfl-ring-Primary-500"
@@ -23392,7 +23392,7 @@ function HS({ isOpen: o, document: u, onClose: x, onSave: P }) {
23392
23392
  ] })
23393
23393
  ] }),
23394
23394
  /* @__PURE__ */ Q.jsxs("div", { className: "hfl-flex hfl-justify-end hfl-gap-3 hfl-mt-4", children: [
23395
- /* @__PURE__ */ Q.jsx(Tl, { textField: "Cancel", hierarchy: "Secondary", onClick: x, disabled: y, size: "sm" }),
23395
+ /* @__PURE__ */ Q.jsx(Tl, { textField: "Cancel", hierarchy: "Secondary", onClick: C, disabled: y, size: "sm" }),
23396
23396
  /* @__PURE__ */ Q.jsx(
23397
23397
  Tl,
23398
23398
  {
@@ -23406,8 +23406,8 @@ function HS({ isOpen: o, document: u, onClose: x, onSave: P }) {
23406
23406
  ] })
23407
23407
  ] }) });
23408
23408
  }
23409
- function kS({ isOpen: o, onClose: u, onCapture: x }) {
23410
- const P = jt(null), R = jt(null), g = jt(null), [p, m] = at(!1), [y, h] = at(null), [C, N] = at(!1), [w, S] = at(!1), [E, D] = at([]), [H, B] = at(null), b = async () => {
23409
+ function kS({ isOpen: o, onClose: u, onCapture: C }) {
23410
+ const P = jt(null), R = jt(null), g = jt(null), [p, m] = at(!1), [y, h] = at(null), [x, N] = at(!1), [w, S] = at(!1), [E, D] = at([]), [H, B] = at(null), b = async () => {
23411
23411
  try {
23412
23412
  const O = (await navigator.mediaDevices.enumerateDevices()).filter((j) => j.kind === "videoinput");
23413
23413
  console.log("Available video devices:", O), D(O);
@@ -23465,7 +23465,7 @@ function kS({ isOpen: o, onClose: u, onCapture: x }) {
23465
23465
  }), X = (/* @__PURE__ */ new Date()).toISOString().replace(/[:.]/g, "-"), K = new File([F], `captured-image-${X}.jpg`, {
23466
23466
  type: "image/jpeg"
23467
23467
  });
23468
- await x(K), u();
23468
+ await C(K), u();
23469
23469
  } catch (J) {
23470
23470
  console.error("Error capturing photo:", J), h("Failed to capture photo. Please try again.");
23471
23471
  } finally {
@@ -23545,40 +23545,40 @@ function kS({ isOpen: o, onClose: u, onCapture: x }) {
23545
23545
  "button",
23546
23546
  {
23547
23547
  onClick: L,
23548
- disabled: C,
23549
- className: `hfl-flex hfl-items-center hfl-gap-2 hfl-px-6 hfl-py-3 hfl-text-sm hfl-text-white hfl-rounded-lg hfl-transition-colors ${C ? "hfl-bg-Gray-400 hfl-cursor-not-allowed" : "hfl-bg-Blue-600 hfl-hover:bg-Blue-700"}`,
23548
+ disabled: x,
23549
+ className: `hfl-flex hfl-items-center hfl-gap-2 hfl-px-6 hfl-py-3 hfl-text-sm hfl-text-white hfl-rounded-lg hfl-transition-colors ${x ? "hfl-bg-Gray-400 hfl-cursor-not-allowed" : "hfl-bg-Blue-600 hfl-hover:bg-Blue-700"}`,
23550
23550
  children: [
23551
23551
  /* @__PURE__ */ Q.jsx("i", { className: "hx_camera hfl-text-base" }),
23552
- /* @__PURE__ */ Q.jsx(It, { variant: "Medium", type: "Text sm", className: "hfl-text-white", children: C ? "Capturing..." : "Capture Photo" })
23552
+ /* @__PURE__ */ Q.jsx(It, { variant: "Medium", type: "Text sm", className: "hfl-text-white", children: x ? "Capturing..." : "Capture Photo" })
23553
23553
  ]
23554
23554
  }
23555
23555
  )
23556
23556
  ] })
23557
23557
  ] }) }) : null;
23558
23558
  }
23559
- function VS({ containerRef: o, setPage: u, hasData: x, shouldScroll: P }) {
23559
+ function VS({ containerRef: o, setPage: u, hasData: C, shouldScroll: P }) {
23560
23560
  const R = jt(P), g = jt(0), p = jt(!1);
23561
23561
  un(() => {
23562
23562
  R.current = P;
23563
23563
  }, [P]), un(() => {
23564
23564
  if (!o || !o.current) return;
23565
- console.log("Inside scroll event", x);
23565
+ console.log("Inside scroll event", C);
23566
23566
  const m = o.current;
23567
23567
  if (!m) return;
23568
23568
  const y = () => {
23569
- if (!R.current || !x) return;
23570
- const { scrollTop: h, scrollHeight: C, clientHeight: N } = m;
23571
- p.current = h > g.current, g.current = h, p.current && h + N >= C - 10 && u((w) => w + 1);
23569
+ if (!R.current || !C) return;
23570
+ const { scrollTop: h, scrollHeight: x, clientHeight: N } = m;
23571
+ p.current = h > g.current, g.current = h, p.current && h + N >= x - 10 && u((w) => w + 1);
23572
23572
  };
23573
23573
  return m.addEventListener("scroll", y), () => {
23574
23574
  m.removeEventListener("scroll", y);
23575
23575
  };
23576
- }, [o, u, x]);
23576
+ }, [o, u, C]);
23577
23577
  }
23578
23578
  function vx(o) {
23579
23579
  const {
23580
23580
  parentRef: u,
23581
- fetchAttachments: x,
23581
+ fetchAttachments: C,
23582
23582
  uploadFiles: P,
23583
23583
  onDocumentPreview: R,
23584
23584
  onDocumentDownload: g,
@@ -23586,7 +23586,7 @@ function vx(o) {
23586
23586
  setError: m,
23587
23587
  showHeaderBackButton: y,
23588
23588
  patient_id: h = "",
23589
- patient_role_id: C = "",
23589
+ patient_role_id: x = "",
23590
23590
  doctor_id: N = "",
23591
23591
  doctor_role_id: w = "",
23592
23592
  branch_id: S = "",
@@ -23594,8 +23594,8 @@ function vx(o) {
23594
23594
  onSaveComparision: D,
23595
23595
  onHeaderBackClick: H
23596
23596
  } = o, [B, b] = at(!1), [v, M] = at(!1), [L, k] = at(""), [J, O] = at(!0), [j, F] = at([]), [X, K] = at({ startDate: null, endDate: null }), [$, re] = at(1), [ee, pe] = at(""), z = jt(null), [U, W] = at(i6.VIEW_GRID), { documentView: I, setDocument: _, addDocuments: oe, selectedDocuments: ne, addDocument: me, updateDocument: we } = Aa(), se = wa(() => I === Qs.GRID_VIEW ? 20 : 3, [I]), [Z, ae] = at(null), [Ce, Ae] = at(!1), [Me, Ye] = at(!1), Re = wa(() => !B && !v, [B, v]), { isLoading: ke } = h9(
23597
- `attachments?page=${$}&page_size=${se}&query_type=${U}&search=${L}&types=${j.join(",")}&start_date=${X.startDate}&end_date=${X.endDate}&next_date=${ee}&patient_id=${h}&patient_role_id=${C}&doctor_id=${N}&doctor_role_id=${w}&branch_id=${S}`,
23598
- () => x($, L, j, se, U, X, ee),
23597
+ `attachments?page=${$}&page_size=${se}&query_type=${U}&search=${L}&types=${j.join(",")}&start_date=${X.startDate}&end_date=${X.endDate}&next_date=${ee}&patient_id=${h}&patient_role_id=${x}&doctor_id=${N}&doctor_role_id=${w}&branch_id=${S}`,
23598
+ () => C($, L, j, se, U, X, ee),
23599
23599
  {
23600
23600
  revalidateOnFocus: !1,
23601
23601
  onSuccess: (ut) => {