@snabcentr/vue-ui-lib 2.26.1 → 2.26.2

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.
@@ -309,7 +309,7 @@ const up = Ue({ name: "ion-chevron-forward-outline", render: cp }), dp = ["data-
309
309
  },
310
310
  emits: ["header:click"],
311
311
  setup(e, { expose: t, emit: i }) {
312
- const n = e, s = i, r = Ke("itemHeaderClickHandler", Sa), o = Ke("defaultExpandedNames", []), a = Ke("expandedNames", []), l = js(o, (g) => g === n.name), c = z(() => js(a, (g) => g === n.name)), u = W(l), d = () => {
312
+ const n = e, s = i, r = Ke("itemHeaderClickHandler", Sa), o = Ke("defaultExpandedNames", []), a = Ke("expandedNames", []), l = js(o, (g) => g === n.name), c = z(() => js(a, (g) => g === n.name)), u = W(l), h = () => {
313
313
  n.disabled || (u.value = c.value || !u.value, s("header:click", n.name, u.value), r(n.name, u.value));
314
314
  };
315
315
  return t({
@@ -323,7 +323,7 @@ const up = Ue({ name: "ion-chevron-forward-outline", render: cp }), dp = ["data-
323
323
  * Переключает состояние элемента.
324
324
  */
325
325
  toggle: () => {
326
- n.disabled || d();
326
+ n.disabled || h();
327
327
  },
328
328
  /**
329
329
  * Сворачивает элемент.
@@ -345,7 +345,7 @@ const up = Ue({ name: "ion-chevron-forward-outline", render: cp }), dp = ["data-
345
345
  T("div", fp, [
346
346
  T("div", {
347
347
  class: qe({ "rotate-90": u.value }),
348
- onClick: d
348
+ onClick: h
349
349
  }, [
350
350
  Te(g.$slots, "arrow", {}, () => [
351
351
  D(v)
@@ -360,7 +360,7 @@ const up = Ue({ name: "ion-chevron-forward-outline", render: cp }), dp = ["data-
360
360
  T("div", mp, [
361
361
  T("div", {
362
362
  class: "sc-collapse-item-title flex flex-1 cursor-pointer flex-col text-lg font-semibold",
363
- onClick: d
363
+ onClick: h
364
364
  }, [
365
365
  Te(g.$slots, "header", {}, () => [
366
366
  re(X(g.title), 1)
@@ -486,9 +486,9 @@ const up = Ue({ name: "ion-chevron-forward-outline", render: cp }), dp = ["data-
486
486
  };
487
487
  return (a, l) => {
488
488
  var g;
489
- const c = Yu, u = Ye, d = fo, f = Xu, h = Uu, p = il;
489
+ const c = Yu, u = Ye, h = fo, f = Xu, d = Uu, p = il;
490
490
  return x(), F("div", kp, [
491
- (Y(Ci)(a.showProductAddToCartButton) ? a.showProductAddToCartButton(a.product) : a.showProductAddToCartButton) ? (x(), ne(d, {
491
+ (Y(Ci)(a.showProductAddToCartButton) ? a.showProductAddToCartButton(a.product) : a.showProductAddToCartButton) ? (x(), ne(h, {
492
492
  key: 0,
493
493
  placement: "bottom",
494
494
  trigger: "hover"
@@ -512,7 +512,7 @@ const up = Ue({ name: "ion-chevron-forward-outline", render: cp }), dp = ["data-
512
512
  _: 1,
513
513
  __: [0]
514
514
  })) : j("", !0),
515
- (Y(Ci)(a.showProductEditButton) ? a.showProductEditButton(a.product) : a.showProductEditButton) ? (x(), ne(d, {
515
+ (Y(Ci)(a.showProductEditButton) ? a.showProductEditButton(a.product) : a.showProductEditButton) ? (x(), ne(h, {
516
516
  key: 1,
517
517
  placement: "bottom",
518
518
  trigger: "hover"
@@ -550,7 +550,7 @@ const up = Ue({ name: "ion-chevron-forward-outline", render: cp }), dp = ["data-
550
550
  type: "primary"
551
551
  }, {
552
552
  default: R(() => [
553
- D(h)
553
+ D(d)
554
554
  ]),
555
555
  _: 1
556
556
  }, 8, ["size"])
@@ -612,11 +612,11 @@ const $p = Ue({ name: "tabler-history", render: Tp }), Pp = { class: "flex flex-
612
612
  const u = t.currencyRates[t.product.currencySignature];
613
613
  return new Intl.NumberFormat("ru-RU", { style: "decimal", minimumFractionDigits: 2 }).format(Number.parseFloat(n.value) * u);
614
614
  }), c = z(() => mi(s.value) ? null : new Intl.NumberFormat("ru-RU", { style: "decimal", minimumFractionDigits: 2 }).format(s.value));
615
- return (u, d) => {
615
+ return (u, h) => {
616
616
  var g;
617
- const f = Du, h = fo, p = $p;
617
+ const f = Du, d = fo, p = $p;
618
618
  return x(), F("div", Pp, [
619
- u.showTag ? (x(), ne(h, { key: 0 }, {
619
+ u.showTag ? (x(), ne(d, { key: 0 }, {
620
620
  trigger: R(() => [
621
621
  D(f, {
622
622
  round: "",
@@ -648,7 +648,7 @@ const $p = Ue({ name: "tabler-history", render: Tp }), Pp = { class: "flex flex-
648
648
  }, [
649
649
  T("span", {
650
650
  class: qe({ "text-nowrap": !0, "cursor-pointer underline decoration-dashed": o.value && u.eventEmitter }),
651
- onClick: d[0] || (d[0] = () => {
651
+ onClick: h[0] || (h[0] = () => {
652
652
  var m;
653
653
  o.value && ((m = u.eventEmitter) == null || m.emit("cost:click", { product: u.product, cost: n.value }));
654
654
  })
@@ -658,21 +658,21 @@ const $p = Ue({ name: "tabler-history", render: Tp }), Pp = { class: "flex flex-
658
658
  l.value ? (x(), F("span", Mp, " ~ " + X(l.value) + " " + X(u.showQuantityUnit ? `₽/${u.product.quantityUnit}` : ""), 1)) : j("", !0),
659
659
  u.showCostDate && !Y(mi)(r.value) ? (x(), F("span", Fp, [
660
660
  re(X(r.value) + " ", 1),
661
- u.showPriceHistory && u.eventEmitter ? (x(), ne(h, {
661
+ u.showPriceHistory && u.eventEmitter ? (x(), ne(d, {
662
662
  key: 0,
663
663
  placement: "top-end"
664
664
  }, {
665
665
  trigger: R(() => [
666
666
  D(p, {
667
667
  class: "cursor-pointer",
668
- onClick: d[1] || (d[1] = (m) => {
668
+ onClick: h[1] || (h[1] = (m) => {
669
669
  var v;
670
670
  return (v = u.eventEmitter) == null ? void 0 : v.emit("cost:show-price-history", { product: u.product });
671
671
  })
672
672
  })
673
673
  ]),
674
674
  default: R(() => [
675
- d[2] || (d[2] = re(" История цен "))
675
+ h[2] || (h[2] = re(" История цен "))
676
676
  ]),
677
677
  _: 1,
678
678
  __: [2]
@@ -1030,21 +1030,21 @@ var qr = function() {
1030
1030
  if (!(Math.abs(i) <= 0)) {
1031
1031
  var r = this.containerRect.width / 2 + this.containerRect.left, o = this.containerRect.height / 2 + this.containerRect.top + this.scrollTop, a, l;
1032
1032
  t === 1 && (this.positionChanged = !1);
1033
- var c = this.getDragAllowedAxises(0, i), u = c.allowY, d = c.allowX;
1033
+ var c = this.getDragAllowedAxises(0, i), u = c.allowY, h = c.allowX;
1034
1034
  this.positionChanged && (a = this.left / (this.scale - i), l = this.top / (this.scale - i), this.pageX = r - a, this.pageY = o - l, this.positionChanged = !1);
1035
- var f = this.getPossibleSwipeDragCords(i), h, p, g = r - this.pageX, m = o - this.pageY;
1035
+ var f = this.getPossibleSwipeDragCords(i), d, p, g = r - this.pageX, m = o - this.pageY;
1036
1036
  if (t - i > 1) {
1037
1037
  var v = (t - i) / Math.abs(i);
1038
- g = (i < 0 ? -g : g) + this.left * (v + (i < 0 ? -1 : 1)), m = (i < 0 ? -m : m) + this.top * (v + (i < 0 ? -1 : 1)), h = g / v, p = m / v;
1038
+ g = (i < 0 ? -g : g) + this.left * (v + (i < 0 ? -1 : 1)), m = (i < 0 ? -m : m) + this.top * (v + (i < 0 ? -1 : 1)), d = g / v, p = m / v;
1039
1039
  } else {
1040
1040
  var v = (t - i) * i;
1041
- h = g * v, p = m * v;
1041
+ d = g * v, p = m * v;
1042
1042
  }
1043
- n && (d ? this.isBeyondPossibleLeft(h, f.minX) ? h = f.minX : this.isBeyondPossibleRight(h, f.maxX) && (h = f.maxX) : t > 1 && (h < f.minX ? h = f.minX : h > f.maxX && (h = f.maxX)), u ? this.isBeyondPossibleTop(p, f.minY) ? p = f.minY : this.isBeyondPossibleBottom(p, f.maxY) && (p = f.maxY) : t > 1 && (p < f.minY ? p = f.minY : p > f.maxY && (p = f.maxY))), this.setZoomStyles({
1044
- x: h,
1043
+ n && (h ? this.isBeyondPossibleLeft(d, f.minX) ? d = f.minX : this.isBeyondPossibleRight(d, f.maxX) && (d = f.maxX) : t > 1 && (d < f.minX ? d = f.minX : d > f.maxX && (d = f.maxX)), u ? this.isBeyondPossibleTop(p, f.minY) ? p = f.minY : this.isBeyondPossibleBottom(p, f.maxY) && (p = f.maxY) : t > 1 && (p < f.minY ? p = f.minY : p > f.maxY && (p = f.maxY))), this.setZoomStyles({
1044
+ x: d,
1045
1045
  y: p,
1046
1046
  scale: t
1047
- }), this.left = h, this.top = p, s && this.setZoomImageSize();
1047
+ }), this.left = d, this.top = p, s && this.setZoomImageSize();
1048
1048
  }
1049
1049
  }, e.prototype.resetImageTranslate = function(t) {
1050
1050
  if (this.isImageSlide(t)) {
@@ -1182,8 +1182,8 @@ var qr = function() {
1182
1182
  r = t.scale;
1183
1183
  var u = Math.max(1, s + -c * 0.02);
1184
1184
  t.scale = Math.round((u + Number.EPSILON) * 100) / 100;
1185
- var d = t.scale - r;
1186
- t.zoomImage(t.scale, Math.round((d + Number.EPSILON) * 100) / 100, !1, !1);
1185
+ var h = t.scale - r;
1186
+ t.zoomImage(t.scale, Math.round((h + Number.EPSILON) * 100) / 100, !1, !1);
1187
1187
  }
1188
1188
  }
1189
1189
  }), this.core.$inner.on("touchend.lg", function(a) {
@@ -1204,10 +1204,10 @@ var qr = function() {
1204
1204
  }, e.prototype.touchendZoom = function(t, i, n, s, r) {
1205
1205
  var o = i.x - t.x, a = i.y - t.y, l = Math.abs(o) / r + 1, c = Math.abs(a) / r + 1;
1206
1206
  l > 2 && (l += 1), c > 2 && (c += 1), o = o * l, a = a * c;
1207
- var u = this.core.getSlideItem(this.core.index).find(".lg-img-wrap").first(), d = {};
1208
- d.x = this.left + o, d.y = this.top + a;
1207
+ var u = this.core.getSlideItem(this.core.index).find(".lg-img-wrap").first(), h = {};
1208
+ h.x = this.left + o, h.y = this.top + a;
1209
1209
  var f = this.getPossibleSwipeDragCords();
1210
- (Math.abs(o) > 15 || Math.abs(a) > 15) && (s && (this.isBeyondPossibleTop(d.y, f.minY) ? d.y = f.minY : this.isBeyondPossibleBottom(d.y, f.maxY) && (d.y = f.maxY)), n && (this.isBeyondPossibleLeft(d.x, f.minX) ? d.x = f.minX : this.isBeyondPossibleRight(d.x, f.maxX) && (d.x = f.maxX)), s ? this.top = d.y : d.y = this.top, n ? this.left = d.x : d.x = this.left, this.setZoomSwipeStyles(u, d), this.positionChanged = !0);
1210
+ (Math.abs(o) > 15 || Math.abs(a) > 15) && (s && (this.isBeyondPossibleTop(h.y, f.minY) ? h.y = f.minY : this.isBeyondPossibleBottom(h.y, f.maxY) && (h.y = f.maxY)), n && (this.isBeyondPossibleLeft(h.x, f.minX) ? h.x = f.minX : this.isBeyondPossibleRight(h.x, f.maxX) && (h.x = f.maxX)), s ? this.top = h.y : h.y = this.top, n ? this.left = h.x : h.x = this.left, this.setZoomSwipeStyles(u, h), this.positionChanged = !0);
1211
1211
  }, e.prototype.getZoomSwipeCords = function(t, i, n, s, r) {
1212
1212
  var o = {};
1213
1213
  if (s) {
@@ -1245,45 +1245,45 @@ var qr = function() {
1245
1245
  }, e.prototype.getPossibleSwipeDragCords = function(t) {
1246
1246
  var i = this.core.getSlideItem(this.core.index).find(".lg-image").first(), n = this.core.mediaContainerPosition.bottom, s = i.get().getBoundingClientRect(), r = s.height, o = s.width;
1247
1247
  t && (r = r + t * r, o = o + t * o);
1248
- var a = (r - this.containerRect.height) / 2, l = (this.containerRect.height - r) / 2 + n, c = (o - this.containerRect.width) / 2, u = (this.containerRect.width - o) / 2, d = {
1248
+ var a = (r - this.containerRect.height) / 2, l = (this.containerRect.height - r) / 2 + n, c = (o - this.containerRect.width) / 2, u = (this.containerRect.width - o) / 2, h = {
1249
1249
  minY: a,
1250
1250
  maxY: l,
1251
1251
  minX: c,
1252
1252
  maxX: u
1253
1253
  };
1254
- return d;
1254
+ return h;
1255
1255
  }, e.prototype.setZoomSwipeStyles = function(t, i) {
1256
1256
  t.css("transform", "translate3d(" + i.x + "px, " + i.y + "px, 0)");
1257
1257
  }, e.prototype.zoomSwipe = function() {
1258
- var t = this, i = {}, n = {}, s = !1, r = !1, o = !1, a = /* @__PURE__ */ new Date(), l = /* @__PURE__ */ new Date(), c, u, d = this.core.getSlideItem(this.core.index);
1258
+ var t = this, i = {}, n = {}, s = !1, r = !1, o = !1, a = /* @__PURE__ */ new Date(), l = /* @__PURE__ */ new Date(), c, u, h = this.core.getSlideItem(this.core.index);
1259
1259
  this.core.$inner.on("touchstart.lg", function(f) {
1260
- if (t.isImageSlide(t.core.index) && (d = t.core.getSlideItem(t.core.index), (t.$LG(f.target).hasClass("lg-item") || d.get().contains(f.target)) && f.touches.length === 1 && t.core.outer.hasClass("lg-zoomed"))) {
1260
+ if (t.isImageSlide(t.core.index) && (h = t.core.getSlideItem(t.core.index), (t.$LG(f.target).hasClass("lg-item") || h.get().contains(f.target)) && f.touches.length === 1 && t.core.outer.hasClass("lg-zoomed"))) {
1261
1261
  f.preventDefault(), a = /* @__PURE__ */ new Date(), t.core.touchAction = "zoomSwipe", u = t.core.getSlideItem(t.core.index).find(".lg-img-wrap").first();
1262
- var h = t.getDragAllowedAxises(0);
1263
- o = h.allowY, r = h.allowX, (r || o) && (i = t.getSwipeCords(f)), c = t.getPossibleSwipeDragCords(), t.core.outer.addClass("lg-zoom-dragging lg-zoom-drag-transition");
1262
+ var d = t.getDragAllowedAxises(0);
1263
+ o = d.allowY, r = d.allowX, (r || o) && (i = t.getSwipeCords(f)), c = t.getPossibleSwipeDragCords(), t.core.outer.addClass("lg-zoom-dragging lg-zoom-drag-transition");
1264
1264
  }
1265
1265
  }), this.core.$inner.on("touchmove.lg", function(f) {
1266
- if (f.touches.length === 1 && t.core.touchAction === "zoomSwipe" && (t.$LG(f.target).hasClass("lg-item") || d.get().contains(f.target))) {
1266
+ if (f.touches.length === 1 && t.core.touchAction === "zoomSwipe" && (t.$LG(f.target).hasClass("lg-item") || h.get().contains(f.target))) {
1267
1267
  f.preventDefault(), t.core.touchAction = "zoomSwipe", n = t.getSwipeCords(f);
1268
- var h = t.getZoomSwipeCords(i, n, r, o, c);
1269
- (Math.abs(n.x - i.x) > 15 || Math.abs(n.y - i.y) > 15) && (s = !0, t.setZoomSwipeStyles(u, h));
1268
+ var d = t.getZoomSwipeCords(i, n, r, o, c);
1269
+ (Math.abs(n.x - i.x) > 15 || Math.abs(n.y - i.y) > 15) && (s = !0, t.setZoomSwipeStyles(u, d));
1270
1270
  }
1271
1271
  }), this.core.$inner.on("touchend.lg", function(f) {
1272
- if (t.core.touchAction === "zoomSwipe" && (t.$LG(f.target).hasClass("lg-item") || d.get().contains(f.target))) {
1272
+ if (t.core.touchAction === "zoomSwipe" && (t.$LG(f.target).hasClass("lg-item") || h.get().contains(f.target))) {
1273
1273
  if (f.preventDefault(), t.core.touchAction = void 0, t.core.outer.removeClass("lg-zoom-dragging"), !s)
1274
1274
  return;
1275
1275
  s = !1, l = /* @__PURE__ */ new Date();
1276
- var h = l.valueOf() - a.valueOf();
1277
- t.touchendZoom(i, n, r, o, h);
1276
+ var d = l.valueOf() - a.valueOf();
1277
+ t.touchendZoom(i, n, r, o, d);
1278
1278
  }
1279
1279
  });
1280
1280
  }, e.prototype.zoomDrag = function() {
1281
- var t = this, i = {}, n = {}, s = !1, r = !1, o = !1, a = !1, l, c, u, d;
1281
+ var t = this, i = {}, n = {}, s = !1, r = !1, o = !1, a = !1, l, c, u, h;
1282
1282
  this.core.outer.on("mousedown.lg.zoom", function(f) {
1283
1283
  if (t.isImageSlide(t.core.index)) {
1284
- var h = t.core.getSlideItem(t.core.index);
1285
- if (t.$LG(f.target).hasClass("lg-item") || h.get().contains(f.target)) {
1286
- l = /* @__PURE__ */ new Date(), d = t.core.getSlideItem(t.core.index).find(".lg-img-wrap").first();
1284
+ var d = t.core.getSlideItem(t.core.index);
1285
+ if (t.$LG(f.target).hasClass("lg-item") || d.get().contains(f.target)) {
1286
+ l = /* @__PURE__ */ new Date(), h = t.core.getSlideItem(t.core.index).find(".lg-img-wrap").first();
1287
1287
  var p = t.getDragAllowedAxises(0);
1288
1288
  a = p.allowY, o = p.allowX, t.core.outer.hasClass("lg-zoomed") && t.$LG(f.target).hasClass("lg-object") && (o || a) && (f.preventDefault(), i = t.getDragCords(f), u = t.getPossibleSwipeDragCords(), s = !0, t.core.outer.removeClass("lg-grab").addClass("lg-grabbing lg-zoom-drag-transition lg-zoom-dragging"));
1289
1289
  }
@@ -1291,15 +1291,15 @@ var qr = function() {
1291
1291
  }), this.$LG(window).on("mousemove.lg.zoom.global" + this.core.lgId, function(f) {
1292
1292
  if (s) {
1293
1293
  r = !0, n = t.getDragCords(f);
1294
- var h = t.getZoomSwipeCords(i, n, o, a, u);
1295
- t.setZoomSwipeStyles(d, h);
1294
+ var d = t.getZoomSwipeCords(i, n, o, a, u);
1295
+ t.setZoomSwipeStyles(h, d);
1296
1296
  }
1297
1297
  }), this.$LG(window).on("mouseup.lg.zoom.global" + this.core.lgId, function(f) {
1298
1298
  if (s) {
1299
1299
  if (c = /* @__PURE__ */ new Date(), s = !1, t.core.outer.removeClass("lg-zoom-dragging"), r && (i.x !== n.x || i.y !== n.y)) {
1300
1300
  n = t.getDragCords(f);
1301
- var h = c.valueOf() - l.valueOf();
1302
- t.touchendZoom(i, n, o, a, h);
1301
+ var d = c.valueOf() - l.valueOf();
1302
+ t.touchendZoom(i, n, o, a, d);
1303
1303
  }
1304
1304
  r = !1;
1305
1305
  }
@@ -1509,7 +1509,7 @@ const jp = ["href"], Up = ["src", "alt"], Xp = {}, Yp = /* @__PURE__ */ te({
1509
1509
  */
1510
1510
  show: l
1511
1511
  }), window.addEventListener("resize", a), (c, u) => {
1512
- const d = Gu, f = ln;
1512
+ const h = Gu, f = ln;
1513
1513
  return x(), ne(f, {
1514
1514
  trigger: "manual",
1515
1515
  show: i.value,
@@ -1522,10 +1522,10 @@ const jp = ["href"], Up = ["src", "alt"], Xp = {}, Yp = /* @__PURE__ */ te({
1522
1522
  trigger: R(() => [
1523
1523
  T("div", {
1524
1524
  class: "inline-flex",
1525
- onClick: u[0] || (u[0] = (h) => i.value = !i.value)
1525
+ onClick: u[0] || (u[0] = (d) => i.value = !i.value)
1526
1526
  }, [
1527
1527
  Te(c.$slots, "default", {}, () => [
1528
- D(d)
1528
+ D(h)
1529
1529
  ])
1530
1530
  ])
1531
1531
  ]),
@@ -1542,12 +1542,12 @@ const jp = ["href"], Up = ["src", "alt"], Xp = {}, Yp = /* @__PURE__ */ te({
1542
1542
  })
1543
1543
  }, {
1544
1544
  default: R(() => [
1545
- (x(!0), F(Fe, null, Gt(c.images, (h, p) => (x(), F("a", {
1545
+ (x(!0), F(Fe, null, Gt(c.images, (d, p) => (x(), F("a", {
1546
1546
  key: p,
1547
- href: h.image
1547
+ href: d.image
1548
1548
  }, [
1549
1549
  T("img", {
1550
- src: h.preview,
1550
+ src: d.preview,
1551
1551
  alt: `Изображение #${p + 1}`
1552
1552
  }, null, 8, Up)
1553
1553
  ], 8, jp))), 128))
@@ -1627,8 +1627,8 @@ const jp = ["href"], Up = ["src", "alt"], Xp = {}, Yp = /* @__PURE__ */ te({
1627
1627
  },
1628
1628
  setup(e, { expose: t }) {
1629
1629
  const i = e, n = z(() => Ci(i.showProductCosts) ? i.showProductCosts(i.product) : i.showProductCosts), s = z(() => Eu(i.product.priceCoefficients, ["coefficient.slug"])), r = z(() => {
1630
- var u, d;
1631
- return (d = (u = i.product) == null ? void 0 : u.properties) == null ? void 0 : d.planingIncomingDate;
1630
+ var u, h;
1631
+ return (h = (u = i.product) == null ? void 0 : u.properties) == null ? void 0 : h.planingIncomingDate;
1632
1632
  }), o = _i("image-gallery"), a = () => {
1633
1633
  var u;
1634
1634
  (u = o.value) == null || u.show();
@@ -1649,12 +1649,12 @@ const jp = ["href"], Up = ["src", "alt"], Xp = {}, Yp = /* @__PURE__ */ te({
1649
1649
  * Открывает всплывающий диалог предпросмотра изображений.
1650
1650
  */
1651
1651
  showProductImagesPreview: a
1652
- }), (u, d) => {
1652
+ }), (u, h) => {
1653
1653
  var v, _, S, C, b;
1654
- const f = Gu, h = Ks, p = qu, g = cl, m = Nu;
1654
+ const f = Gu, d = Ks, p = qu, g = cl, m = Nu;
1655
1655
  return x(), F("div", null, [
1656
1656
  T("div", Zp, [
1657
- D(h, {
1657
+ D(d, {
1658
1658
  type: "info",
1659
1659
  class: "sc-product-name text-balance text-base font-medium"
1660
1660
  }, {
@@ -1693,11 +1693,11 @@ const jp = ["href"], Up = ["src", "alt"], Xp = {}, Yp = /* @__PURE__ */ te({
1693
1693
  T("div", tg, [
1694
1694
  T("div", ig, [
1695
1695
  u.product.supplierSku ? (x(), F("div", ng, [
1696
- d[0] || (d[0] = re(" Артикул производителя/поставщика: ")),
1696
+ h[0] || (h[0] = re(" Артикул производителя/поставщика: ")),
1697
1697
  T("span", sg, X(u.product.supplierSku), 1)
1698
1698
  ])) : j("", !0),
1699
1699
  u.showCode ? (x(), F("span", rg, [
1700
- d[1] || (d[1] = re(" Артикул: ")),
1700
+ h[1] || (h[1] = re(" Артикул: ")),
1701
1701
  T("span", og, X(u.product.code), 1)
1702
1702
  ])) : j("", !0),
1703
1703
  u.product.stockCount && u.product.stockCount.length > 0 ? (x(), ne(Kp, {
@@ -1706,18 +1706,18 @@ const jp = ["href"], Up = ["src", "alt"], Xp = {}, Yp = /* @__PURE__ */ te({
1706
1706
  }, {
1707
1707
  default: R(() => [
1708
1708
  T("span", ag, [
1709
- d[2] || (d[2] = T("span", { class: "underline decoration-dashed" }, "В наличии", -1)),
1709
+ h[2] || (h[2] = T("span", { class: "underline decoration-dashed" }, "В наличии", -1)),
1710
1710
  D(g, { class: "mt-0.5" })
1711
1711
  ])
1712
1712
  ]),
1713
1713
  _: 1
1714
1714
  }, 8, ["product"])) : (x(), F("span", lg, " Нет в наличии ")),
1715
1715
  (S = (_ = u.product) == null ? void 0 : _.properties) != null && S.pack ? (x(), F("span", cg, [
1716
- d[3] || (d[3] = re(" Норма упаковки: ")),
1716
+ h[3] || (h[3] = re(" Норма упаковки: ")),
1717
1717
  T("span", ug, X((b = (C = u.product) == null ? void 0 : C.properties) == null ? void 0 : b.pack), 1)
1718
1718
  ])) : j("", !0),
1719
1719
  u.showPlanningDates && r.value ? (x(), F("span", dg, [
1720
- d[4] || (d[4] = re(" Планируемая дата поступления на основной склад: ")),
1720
+ h[4] || (h[4] = re(" Планируемая дата поступления на основной склад: ")),
1721
1721
  T("span", hg, X(r.value), 1)
1722
1722
  ])) : j("", !0)
1723
1723
  ])
@@ -1903,11 +1903,11 @@ const jp = ["href"], Up = ["src", "alt"], Xp = {}, Yp = /* @__PURE__ */ te({
1903
1903
  })
1904
1904
  ), l = z(() => a.value.length > 0), c = z(
1905
1905
  () => Ci(t.showHideForClientButton) ? t.showHideForClientButton(t.categoryItem) : t.showHideForClientButton
1906
- ), u = z(() => Ci(t.showPinButton) ? t.showPinButton(t.categoryItem) : t.showPinButton), d = z(
1906
+ ), u = z(() => Ci(t.showPinButton) ? t.showPinButton(t.categoryItem) : t.showPinButton), h = z(
1907
1907
  () => Ci(t.showCategoryEditButton) ? t.showCategoryEditButton(t.categoryItem) : t.showCategoryEditButton
1908
1908
  ), f = z(
1909
1909
  () => mi(t.categoryContextButtonsConfig) ? [] : Ci(t.categoryContextButtonsConfig) ? t.categoryContextButtonsConfig(t.categoryItem) : t.categoryContextButtonsConfig
1910
- ), h = z(() => new wf(t.categoryItem)), p = W(!1), g = W(!1), m = z(() => !Gn(t.selectedCategoriesItems)), v = z(() => (t.selectedCategoriesItems ?? []).some((E) => E.id === t.categoryItem.id)), _ = z(() => Q.value && ni.getDeviceTypeByResolution() === ht.laptop ? "auto" : "fixed"), S = _i("collapse-item-reference"), C = (E, J = "ru-RU") => 0 .toLocaleString(J, {
1910
+ ), d = z(() => new wf(t.categoryItem)), p = W(!1), g = W(!1), m = z(() => !Gn(t.selectedCategoriesItems)), v = z(() => (t.selectedCategoriesItems ?? []).some((E) => E.id === t.categoryItem.id)), _ = z(() => Q.value && ni.getDeviceTypeByResolution() === ht.laptop ? "auto" : "fixed"), S = _i("collapse-item-reference"), C = (E, J = "ru-RU") => 0 .toLocaleString(J, {
1911
1911
  style: "currency",
1912
1912
  currency: E,
1913
1913
  minimumFractionDigits: 0,
@@ -1966,7 +1966,7 @@ const jp = ["href"], Up = ["src", "alt"], Xp = {}, Yp = /* @__PURE__ */ te({
1966
1966
  "onUpdate:checked": b
1967
1967
  }, null, 8, ["checked"])
1968
1968
  ])) : j("", !0),
1969
- !c.value && ((Xe = h.value) != null && Xe.isDisabled) ? (x(), ne(K, {
1969
+ !c.value && ((Xe = d.value) != null && Xe.isDisabled) ? (x(), ne(K, {
1970
1970
  key: 1,
1971
1971
  placement: "bottom",
1972
1972
  trigger: "hover"
@@ -1980,7 +1980,7 @@ const jp = ["href"], Up = ["src", "alt"], Xp = {}, Yp = /* @__PURE__ */ te({
1980
1980
  _: 1,
1981
1981
  __: [1]
1982
1982
  })) : j("", !0),
1983
- ((Ne = h.value) == null ? void 0 : Ne.isFavorite) ?? !1 ? (x(), ne(K, {
1983
+ ((Ne = d.value) == null ? void 0 : Ne.isFavorite) ?? !1 ? (x(), ne(K, {
1984
1984
  key: 2,
1985
1985
  placement: "bottom",
1986
1986
  trigger: "hover"
@@ -1994,7 +1994,7 @@ const jp = ["href"], Up = ["src", "alt"], Xp = {}, Yp = /* @__PURE__ */ te({
1994
1994
  _: 1,
1995
1995
  __: [2]
1996
1996
  })) : j("", !0),
1997
- ((kt = h.value) == null ? void 0 : kt.isRequired) ?? !1 ? (x(), ne(K, {
1997
+ ((kt = d.value) == null ? void 0 : kt.isRequired) ?? !1 ? (x(), ne(K, {
1998
1998
  key: 3,
1999
1999
  placement: "bottom",
2000
2000
  trigger: "hover"
@@ -2017,7 +2017,7 @@ const jp = ["href"], Up = ["src", "alt"], Xp = {}, Yp = /* @__PURE__ */ te({
2017
2017
  class: qe({
2018
2018
  "text-base font-semibold uppercase": !0,
2019
2019
  "text-gray-400 line-through": E.categoryItem.isHidden,
2020
- "text-gray-400": (Xe = h.value) == null ? void 0 : Xe.isDisabled
2020
+ "text-gray-400": (Xe = d.value) == null ? void 0 : Xe.isDisabled
2021
2021
  })
2022
2022
  }, [
2023
2023
  D(K, {
@@ -2063,7 +2063,7 @@ const jp = ["href"], Up = ["src", "alt"], Xp = {}, Yp = /* @__PURE__ */ te({
2063
2063
  ]),
2064
2064
  _: 1
2065
2065
  }, 8, ["size"])) : j("", !0),
2066
- u.value && ((kt = h.value) != null && kt.manager) ? (x(), ne(V, {
2066
+ u.value && ((kt = d.value) != null && kt.manager) ? (x(), ne(V, {
2067
2067
  key: 2,
2068
2068
  size: Y(i),
2069
2069
  closable: !0,
@@ -2080,14 +2080,14 @@ const jp = ["href"], Up = ["src", "alt"], Xp = {}, Yp = /* @__PURE__ */ te({
2080
2080
  return [
2081
2081
  T("span", bg, [
2082
2082
  D(U),
2083
- re(" " + X(($t = (nt = h.value) == null ? void 0 : nt.manager) == null ? void 0 : $t.name), 1)
2083
+ re(" " + X(($t = (nt = d.value) == null ? void 0 : nt.manager) == null ? void 0 : $t.name), 1)
2084
2084
  ])
2085
2085
  ];
2086
2086
  }),
2087
2087
  default: R(() => {
2088
2088
  var nt, $t;
2089
2089
  return [
2090
- re(' Категория закреплена за "' + X(($t = (nt = h.value) == null ? void 0 : nt.manager) == null ? void 0 : $t.name) + '" ', 1)
2090
+ re(' Категория закреплена за "' + X(($t = (nt = d.value) == null ? void 0 : nt.manager) == null ? void 0 : $t.name) + '" ', 1)
2091
2091
  ];
2092
2092
  }),
2093
2093
  _: 1
@@ -2123,7 +2123,7 @@ const jp = ["href"], Up = ["src", "alt"], Xp = {}, Yp = /* @__PURE__ */ te({
2123
2123
  default: R(() => {
2124
2124
  var Ne;
2125
2125
  return [
2126
- (Ne = h.value) != null && Ne.isDisabled ? (x(), ne(O, { key: 1 })) : (x(), ne(ae, { key: 0 }))
2126
+ (Ne = d.value) != null && Ne.isDisabled ? (x(), ne(O, { key: 1 })) : (x(), ne(ae, { key: 0 }))
2127
2127
  ];
2128
2128
  }),
2129
2129
  _: 1
@@ -2132,8 +2132,8 @@ const jp = ["href"], Up = ["src", "alt"], Xp = {}, Yp = /* @__PURE__ */ te({
2132
2132
  default: R(() => {
2133
2133
  var Ne;
2134
2134
  return [
2135
- (Ne = h.value) != null && Ne.isDisabled ? (x(), F(Fe, { key: 0 }, [
2136
- re(" Скрыто для клиента" + X(h.value.hidingComment ? `. Причина: '${h.value.hidingComment}'` : ""), 1)
2135
+ (Ne = d.value) != null && Ne.isDisabled ? (x(), F(Fe, { key: 0 }, [
2136
+ re(" Скрыто для клиента" + X(d.value.hidingComment ? `. Причина: '${d.value.hidingComment}'` : ""), 1)
2137
2137
  ], 64)) : (x(), F(Fe, { key: 1 }, [
2138
2138
  re("Видимо клиенту")
2139
2139
  ], 64))
@@ -2141,7 +2141,7 @@ const jp = ["href"], Up = ["src", "alt"], Xp = {}, Yp = /* @__PURE__ */ te({
2141
2141
  }),
2142
2142
  _: 1
2143
2143
  })) : j("", !0),
2144
- u.value && !((Xe = h.value) != null && Xe.manager) ? (x(), ne(K, {
2144
+ u.value && !((Xe = d.value) != null && Xe.manager) ? (x(), ne(K, {
2145
2145
  key: 1,
2146
2146
  placement: "bottom",
2147
2147
  trigger: "hover"
@@ -2160,8 +2160,8 @@ const jp = ["href"], Up = ["src", "alt"], Xp = {}, Yp = /* @__PURE__ */ te({
2160
2160
  default: R(() => {
2161
2161
  var Ne, kt, nt;
2162
2162
  return [
2163
- (Ne = h.value) != null && Ne.manager ? (x(), F(Fe, { key: 1 }, [
2164
- re('Категория закреплена за "' + X(((nt = (kt = h.value) == null ? void 0 : kt.manager) == null ? void 0 : nt.name) ?? "-") + '"', 1)
2163
+ (Ne = d.value) != null && Ne.manager ? (x(), F(Fe, { key: 1 }, [
2164
+ re('Категория закреплена за "' + X(((nt = (kt = d.value) == null ? void 0 : kt.manager) == null ? void 0 : nt.name) ?? "-") + '"', 1)
2165
2165
  ], 64)) : (x(), F(Fe, { key: 0 }, [
2166
2166
  re("Закрепить")
2167
2167
  ], 64))
@@ -2169,7 +2169,7 @@ const jp = ["href"], Up = ["src", "alt"], Xp = {}, Yp = /* @__PURE__ */ te({
2169
2169
  }),
2170
2170
  _: 1
2171
2171
  })) : j("", !0),
2172
- d.value ? (x(), ne(K, {
2172
+ h.value ? (x(), ne(K, {
2173
2173
  key: 2,
2174
2174
  placement: "bottom",
2175
2175
  trigger: "hover"
@@ -2411,14 +2411,14 @@ const jp = ["href"], Up = ["src", "alt"], Xp = {}, Yp = /* @__PURE__ */ te({
2411
2411
  },
2412
2412
  emits: ["submit"],
2413
2413
  setup(e, { emit: t }) {
2414
- var a, l, c, u, d, f, h, p;
2414
+ var a, l, c, u, h, f, d, p;
2415
2415
  const i = e, n = W(
2416
2416
  new Zn(
2417
2417
  i.cartItem ?? new Zn({
2418
2418
  product: i.product,
2419
2419
  quantity: ((l = (a = i.product) == null ? void 0 : a.properties) == null ? void 0 : l.minCount) ?? 1,
2420
2420
  // eslint-disable-next-line vue/max-len
2421
- length: ((u = (c = i.product) == null ? void 0 : c.properties) == null ? void 0 : u.minLength) || ((f = (d = i.product) == null ? void 0 : d.properties) != null && f.ignoreMinCountCheck ? 0 : (p = (h = i.product) == null ? void 0 : h.properties) == null ? void 0 : p.minCount) || 0
2421
+ length: ((u = (c = i.product) == null ? void 0 : c.properties) == null ? void 0 : u.minLength) || ((f = (h = i.product) == null ? void 0 : h.properties) != null && f.ignoreMinCountCheck ? 0 : (p = (d = i.product) == null ? void 0 : d.properties) == null ? void 0 : p.minCount) || 0
2422
2422
  })
2423
2423
  )
2424
2424
  ), s = t, r = z(() => {
@@ -2540,38 +2540,38 @@ const jp = ["href"], Up = ["src", "alt"], Xp = {}, Yp = /* @__PURE__ */ te({
2540
2540
  emits: ["update:value"],
2541
2541
  setup(e, { expose: t, emit: i }) {
2542
2542
  const n = e, s = i, r = z(() => Dt(n.value)), o = new xf(), a = z(() => {
2543
- const h = r.value ? [] : o, p = Gn(n.value) ? h : n.value;
2543
+ const d = r.value ? [] : o, p = Gn(n.value) ? d : n.value;
2544
2544
  return Dt(p) ? p.map((g) => g.id) : p == null ? void 0 : p.id;
2545
- }), l = z(() => Pi.convertReferencesToSelectOptionsList(n.referenceList, n.sortOptionsByLabel, n.showEmptyValue)), c = (h) => {
2545
+ }), l = z(() => Pi.convertReferencesToSelectOptionsList(n.referenceList, n.sortOptionsByLabel, n.showEmptyValue)), c = (d) => {
2546
2546
  var p;
2547
- if (Dt(h)) {
2548
- const g = h.length > 0 ? h.map((m) => {
2547
+ if (Dt(d)) {
2548
+ const g = d.length > 0 ? d.map((m) => {
2549
2549
  var v;
2550
2550
  return (v = l.value.find((_) => _.value === m)) == null ? void 0 : v.item;
2551
2551
  }) : [];
2552
2552
  s("update:value", g);
2553
2553
  } else {
2554
- const g = h === o.id || (p = l.value.find((m) => m.value === h)) == null ? void 0 : p.item;
2554
+ const g = d === o.id || (p = l.value.find((m) => m.value === d)) == null ? void 0 : p.item;
2555
2555
  s("update:value", g);
2556
2556
  }
2557
2557
  }, u = _i("select-component");
2558
2558
  return t({
2559
2559
  focus: () => {
2560
- var h;
2561
- return (h = u.value) == null ? void 0 : h.focus();
2560
+ var d;
2561
+ return (d = u.value) == null ? void 0 : d.focus();
2562
2562
  },
2563
2563
  blur: () => {
2564
- var h;
2565
- return (h = u.value) == null ? void 0 : h.blur();
2564
+ var d;
2565
+ return (d = u.value) == null ? void 0 : d.blur();
2566
2566
  }
2567
- }), (h, p) => (x(), ne(Y(bn), {
2567
+ }), (d, p) => (x(), ne(Y(bn), {
2568
2568
  ref: "select-component",
2569
2569
  value: a.value,
2570
2570
  clearable: n.clearable,
2571
- "consistent-menu-width": h.consistentMenuWidth,
2572
- disabled: h.disabled || l.value.length === 0,
2573
- filterable: h.filterable,
2574
- "max-tag-count": h.maxTagCount,
2571
+ "consistent-menu-width": d.consistentMenuWidth,
2572
+ disabled: d.disabled || l.value.length === 0,
2573
+ filterable: d.filterable,
2574
+ "max-tag-count": d.maxTagCount,
2575
2575
  multiple: r.value,
2576
2576
  options: l.value,
2577
2577
  placeholder: "",
@@ -2614,20 +2614,20 @@ const jp = ["href"], Up = ["src", "alt"], Xp = {}, Yp = /* @__PURE__ */ te({
2614
2614
  const M = l(w);
2615
2615
  M ? w.name += ` (${M} ${(I = a.value) == null ? void 0 : I.currency})` : w.name = "";
2616
2616
  }), b.filter((w) => w.name !== "");
2617
- }), u = W(i.value.coefficient), d = W(((C = (S = i.value) == null ? void 0 : S.value) == null ? void 0 : C.toString()) ?? null), f = W(null), h = z(() => {
2617
+ }), u = W(i.value.coefficient), h = W(((C = (S = i.value) == null ? void 0 : S.value) == null ? void 0 : C.toString()) ?? null), f = W(null), d = z(() => {
2618
2618
  var b, $;
2619
2619
  return ($ = (b = a.value) == null ? void 0 : b.priceCoefficients) == null ? void 0 : $.find((w) => w.coefficient.slug === kf.K0);
2620
2620
  }), p = W(void 0), g = () => {
2621
2621
  var $, w, M;
2622
2622
  p.value = void 0;
2623
- let b = Number.parseFloat((($ = d.value) == null ? void 0 : $.replace(",", ".")) ?? "");
2623
+ let b = Number.parseFloat((($ = h.value) == null ? void 0 : $.replace(",", ".")) ?? "");
2624
2624
  if (b = Number.isNaN(b) ? void 0 : b, o.value)
2625
- if (u.value || d.value) {
2625
+ if (u.value || h.value) {
2626
2626
  const I = s(), B = l(u.value ?? I) ?? 0, Z = B + B * ((b ?? 0) / 100);
2627
2627
  f.value = new Intl.NumberFormat("ru-RU", { style: "decimal", minimumFractionDigits: 2 }).format(Z), Z > (((w = a.value) == null ? void 0 : w.getRetailCost()) ?? Z) && (p.value = {
2628
2628
  validationStatus: "warning",
2629
2629
  feedback: "Устанавливается цена выше розничной цены"
2630
- }), h.value && Z < (((M = h.value) == null ? void 0 : M.cost) ?? 0) && (p.value = {
2630
+ }), d.value && Z < (((M = d.value) == null ? void 0 : M.cost) ?? 0) && (p.value = {
2631
2631
  validationStatus: "warning",
2632
2632
  feedback: "Устанавливается цена ниже минимальной цены"
2633
2633
  });
@@ -2639,7 +2639,7 @@ const jp = ["href"], Up = ["src", "alt"], Xp = {}, Yp = /* @__PURE__ */ te({
2639
2639
  coefficient: r(u.value) ? void 0 : structuredClone(Ut(u.value))
2640
2640
  });
2641
2641
  }, m = (b) => {
2642
- Dt(b) || (u.value = b, !u.value && d.value && (u.value = s()), g());
2642
+ Dt(b) || (u.value = b, !u.value && h.value && (u.value = s()), g());
2643
2643
  }, v = () => {
2644
2644
  u.value || (u.value = s()), g();
2645
2645
  }, _ = (b) => {
@@ -2648,9 +2648,9 @@ const jp = ["href"], Up = ["src", "alt"], Xp = {}, Yp = /* @__PURE__ */ te({
2648
2648
  if (o.value) {
2649
2649
  let N = 0;
2650
2650
  if ($ <= 0)
2651
- u.value = void 0, d.value = null;
2652
- else if (h.value && $ < (((w = h.value) == null ? void 0 : w.cost) ?? 0))
2653
- u.value = (M = h.value) == null ? void 0 : M.coefficient, N = ($ - h.value.cost) * 100 / h.value.cost, p.value = {
2651
+ u.value = void 0, h.value = null;
2652
+ else if (d.value && $ < (((w = d.value) == null ? void 0 : w.cost) ?? 0))
2653
+ u.value = (M = d.value) == null ? void 0 : M.coefficient, N = ($ - d.value.cost) * 100 / d.value.cost, p.value = {
2654
2654
  validationStatus: "warning",
2655
2655
  feedback: "Устанавливается цена ниже минимальной цены"
2656
2656
  };
@@ -2672,7 +2672,7 @@ const jp = ["href"], Up = ["src", "alt"], Xp = {}, Yp = /* @__PURE__ */ te({
2672
2672
  feedback: void 0
2673
2673
  };
2674
2674
  }
2675
- d.value = new Intl.NumberFormat("ru-RU", { style: "decimal", minimumFractionDigits: 5 }).format(N), n("update:value", {
2675
+ h.value = new Intl.NumberFormat("ru-RU", { style: "decimal", minimumFractionDigits: 5 }).format(N), n("update:value", {
2676
2676
  value: Number.isNaN(N) ? void 0 : N,
2677
2677
  // eslint-disable-next-line vue/max-len
2678
2678
  coefficient: r(u.value) ? void 0 : structuredClone(Ut(u.value))
@@ -2717,9 +2717,9 @@ const jp = ["href"], Up = ["src", "alt"], Xp = {}, Yp = /* @__PURE__ */ te({
2717
2717
  "onUpdate:value": m
2718
2718
  }, null, 8, ["value", "reference-list", "clearable", "disabled"]),
2719
2719
  D(w, {
2720
- value: d.value,
2720
+ value: h.value,
2721
2721
  "onUpdate:value": [
2722
- $[0] || ($[0] = (Q) => d.value = Q),
2722
+ $[0] || ($[0] = (Q) => h.value = Q),
2723
2723
  v
2724
2724
  ],
2725
2725
  clearable: b.clearable,
@@ -2731,7 +2731,7 @@ const jp = ["href"], Up = ["src", "alt"], Xp = {}, Yp = /* @__PURE__ */ te({
2731
2731
  ]),
2732
2732
  _: 2
2733
2733
  }, [
2734
- d.value && !d.value.startsWith("-") ? {
2734
+ h.value && !h.value.startsWith("-") ? {
2735
2735
  name: "prefix",
2736
2736
  fn: R(() => [
2737
2737
  $[2] || ($[2] = re(" + "))
@@ -2802,7 +2802,7 @@ const jp = ["href"], Up = ["src", "alt"], Xp = {}, Yp = /* @__PURE__ */ te({
2802
2802
  key: 0,
2803
2803
  quaternary: "",
2804
2804
  size: "small",
2805
- onClick: a[0] || (a[0] = (d) => o.$emit("click:client-info", o.client))
2805
+ onClick: a[0] || (a[0] = (h) => o.$emit("click:client-info", o.client))
2806
2806
  }, {
2807
2807
  default: R(() => [
2808
2808
  D(l)
@@ -2818,7 +2818,7 @@ const jp = ["href"], Up = ["src", "alt"], Xp = {}, Yp = /* @__PURE__ */ te({
2818
2818
  T("a", {
2819
2819
  href: o.nameLink ?? "#",
2820
2820
  class: "text-base no-underline",
2821
- onClick: a[1] || (a[1] = (d) => r(d))
2821
+ onClick: a[1] || (a[1] = (h) => r(h))
2822
2822
  }, [
2823
2823
  T("span", {
2824
2824
  class: qe({ "line-through": !o.client.isActive })
@@ -3058,7 +3058,7 @@ const mm = Ue({ name: "tabler-phone-call", render: gm }), vm = {
3058
3058
  return yn(i.value) ? i.value : ((a = i.value) == null ? void 0 : a.format("E.164")) ?? "";
3059
3059
  }), o = W(!1);
3060
3060
  return (a, l) => {
3061
- const c = mm, u = Qu, d = Ju, f = Zu, h = Ku;
3061
+ const c = mm, u = Qu, h = Ju, f = Zu, d = Ku;
3062
3062
  return x(), F("div", null, [
3063
3063
  T("div", {
3064
3064
  class: qe({ "border-xl relative inline-flex items-center rounded px-2": n.value && o.value, "min-w-10": !0 }),
@@ -3087,7 +3087,7 @@ const mm = Ue({ name: "tabler-phone-call", render: gm }), vm = {
3087
3087
  rel: "noopener noreferrer",
3088
3088
  class: "hover:animate-pulse"
3089
3089
  }, [
3090
- D(d)
3090
+ D(h)
3091
3091
  ], 8, ym)) : j("", !0),
3092
3092
  n.value ? (x(), F("a", {
3093
3093
  key: 2,
@@ -3103,7 +3103,7 @@ const mm = Ue({ name: "tabler-phone-call", render: gm }), vm = {
3103
3103
  href: `viber://chat?number=${r.value}`,
3104
3104
  class: "text-purple-600 hover:animate-pulse hover:text-purple-600"
3105
3105
  }, [
3106
- D(h)
3106
+ D(d)
3107
3107
  ], 8, wm)) : j("", !0)
3108
3108
  ])) : j("", !0)
3109
3109
  ], 34)
@@ -3181,7 +3181,7 @@ const Sm = Ue({ name: "mdi-envelope", render: Cm }), Tm = { class: "flex flex-co
3181
3181
  }), o = z(() => n.value || t.contact.email), a = W(!1);
3182
3182
  return (l, c) => {
3183
3183
  var m, v;
3184
- const u = Qu, d = Ju, f = Zu, h = Ku, p = Sm, g = ln;
3184
+ const u = Qu, h = Ju, f = Zu, d = Ku, p = Sm, g = ln;
3185
3185
  return x(), F("div", Tm, [
3186
3186
  D(g, {
3187
3187
  disabled: l.fullView,
@@ -3220,7 +3220,7 @@ const Sm = Ue({ name: "mdi-envelope", render: Cm }), Tm = { class: "flex flex-co
3220
3220
  rel: "noopener noreferrer",
3221
3221
  class: "hover:text-3xl"
3222
3222
  }, [
3223
- D(d)
3223
+ D(h)
3224
3224
  ], 8, Am)) : j("", !0),
3225
3225
  n.value ? (x(), F("a", {
3226
3226
  key: 2,
@@ -3236,7 +3236,7 @@ const Sm = Ue({ name: "mdi-envelope", render: Cm }), Tm = { class: "flex flex-co
3236
3236
  href: `viber://chat?number=${r.value}`,
3237
3237
  class: "text-purple-600 hover:text-3xl hover:text-purple-600"
3238
3238
  }, [
3239
- D(h)
3239
+ D(d)
3240
3240
  ], 8, Bm)) : j("", !0),
3241
3241
  l.contact.email ? (x(), F("a", {
3242
3242
  key: 4,
@@ -3465,10 +3465,10 @@ const td = Ue({ name: "ion-plus", render: nv }), sv = { class: "flex flex-col ga
3465
3465
  },
3466
3466
  { deep: !0 }
3467
3467
  ), (l, c) => {
3468
- const u = td, d = ed, f = Sn;
3468
+ const u = td, h = ed, f = Sn;
3469
3469
  return x(), ne(Y(dr), { class: "grid gap-2 md:grid-cols-2 md:gap-6" }, {
3470
3470
  default: R(() => {
3471
- var h, p, g, m, v, _, S, C, b;
3471
+ var d, p, g, m, v, _, S, C, b;
3472
3472
  return [
3473
3473
  T("div", sv, [
3474
3474
  c[10] || (c[10] = T("span", { class: "w-full font-bold" }, "Ширина участка, мм / Угол сгиба, ° (А)", -1)),
@@ -3566,7 +3566,7 @@ const td = Ue({ name: "ion-plus", render: nv }), sv = { class: "flex flex-col ga
3566
3566
  onClick: (H) => n("click:remove-line", w)
3567
3567
  }, {
3568
3568
  default: R(() => [
3569
- D(d)
3569
+ D(h)
3570
3570
  ]),
3571
3571
  _: 2
3572
3572
  }, 1032, ["disabled", "onClick"]))
@@ -3636,7 +3636,7 @@ const td = Ue({ name: "ion-plus", render: nv }), sv = { class: "flex flex-col ga
3636
3636
  }),
3637
3637
  D(Y(Ge), {
3638
3638
  required: !0,
3639
- "show-feedback": ((h = l.validation.length) == null ? void 0 : h.showFeedback) || !1,
3639
+ "show-feedback": ((d = l.validation.length) == null ? void 0 : d.showFeedback) || !1,
3640
3640
  feedback: ((p = l.validation.length) == null ? void 0 : p.feedback) || "",
3641
3641
  "validation-status": (g = l.validation.length) == null ? void 0 : g.validationStatus,
3642
3642
  label: `Метраж${l.settings.stripMinLength ? " от " + l.settings.stripMinLength : ""}${l.settings.stripMaxLength ? " до " + l.settings.stripMaxLength : ""} мм`
@@ -4419,9 +4419,9 @@ function fl(e, t, i, n, s, r, o, a, l) {
4419
4419
  if (Math.abs(e - o) < 1e-3 && Math.abs(t - a) < 1e-3)
4420
4420
  return [new Ee(o, a)];
4421
4421
  const u = [];
4422
- for (let d = 0; d < c; d++) {
4423
- const f = d / c, h = Js(f, e, i, s, o), p = Js(f, t, n, r, a);
4424
- u.push(new Ee(h, p));
4422
+ for (let h = 0; h < c; h++) {
4423
+ const f = h / c, d = Js(f, e, i, s, o), p = Js(f, t, n, r, a);
4424
+ u.push(new Ee(d, p));
4425
4425
  }
4426
4426
  return u;
4427
4427
  }
@@ -4430,28 +4430,28 @@ function hd(e, t, i, n, s, r, o, a, l) {
4430
4430
  const m = o - e, v = a - t;
4431
4431
  return Math.sqrt(m * m + v * v);
4432
4432
  }
4433
- const c = 9 * (i - s) + 3 * (o - e), u = 6 * (e + s) - 12 * i, d = 3 * (i - e), f = 9 * (n - r) + 3 * (a - t), h = 6 * (t + r) - 12 * n, p = 3 * (n - t);
4433
+ const c = 9 * (i - s) + 3 * (o - e), u = 6 * (e + s) - 12 * i, h = 3 * (i - e), f = 9 * (n - r) + 3 * (a - t), d = 6 * (t + r) - 12 * n, p = 3 * (n - t);
4434
4434
  function g(m) {
4435
- const v = (c * m + u) * m + d, _ = (f * m + h) * m + p;
4435
+ const v = (c * m + u) * m + h, _ = (f * m + d) * m + p;
4436
4436
  return Math.sqrt(v * v + _ * _);
4437
4437
  }
4438
4438
  return pd(g, 0, 1, l || Ms.RecursionLimit);
4439
4439
  }
4440
4440
  function fd(e, t, i, n, s, r, o, a) {
4441
4441
  const l = [], c = [[], []];
4442
- let u, d, f, h, p, g, m, v;
4442
+ let u, h, f, d, p, g, m, v;
4443
4443
  for (let b = 0; b < 2; ++b) {
4444
- if (b == 0 ? (d = 6 * e - 12 * i + 6 * s, u = -3 * e + 9 * i - 9 * s + 3 * o, f = 3 * i - 3 * e) : (d = 6 * t - 12 * n + 6 * r, u = -3 * t + 9 * n - 9 * r + 3 * a, f = 3 * n - 3 * t), Math.abs(u) < 1e-12) {
4445
- if (Math.abs(d) < 1e-12)
4444
+ if (b == 0 ? (h = 6 * e - 12 * i + 6 * s, u = -3 * e + 9 * i - 9 * s + 3 * o, f = 3 * i - 3 * e) : (h = 6 * t - 12 * n + 6 * r, u = -3 * t + 9 * n - 9 * r + 3 * a, f = 3 * n - 3 * t), Math.abs(u) < 1e-12) {
4445
+ if (Math.abs(h) < 1e-12)
4446
4446
  continue;
4447
- h = -f / d, 0 < h && h < 1 && l.push(h);
4447
+ d = -f / h, 0 < d && d < 1 && l.push(d);
4448
4448
  continue;
4449
4449
  }
4450
- m = d * d - 4 * f * u, v = Math.sqrt(m), !(m < 0) && (p = (-d + v) / (2 * u), 0 < p && p < 1 && l.push(p), g = (-d - v) / (2 * u), 0 < g && g < 1 && l.push(g));
4450
+ m = h * h - 4 * f * u, v = Math.sqrt(m), !(m < 0) && (p = (-h + v) / (2 * u), 0 < p && p < 1 && l.push(p), g = (-h - v) / (2 * u), 0 < g && g < 1 && l.push(g));
4451
4451
  }
4452
4452
  let _ = l.length, S = _, C;
4453
4453
  for (; _--; )
4454
- h = l[_], C = 1 - h, c[0][_] = C * C * C * e + 3 * C * C * h * i + 3 * C * h * h * s + h * h * h * o, c[1][_] = C * C * C * t + 3 * C * C * h * n + 3 * C * h * h * r + h * h * h * a;
4454
+ d = l[_], C = 1 - d, c[0][_] = C * C * C * e + 3 * C * C * d * i + 3 * C * d * d * s + d * d * d * o, c[1][_] = C * C * C * t + 3 * C * C * d * n + 3 * C * d * d * r + d * d * d * a;
4455
4455
  return c[0][S] = e, c[1][S] = t, c[0][S + 1] = o, c[1][S + 1] = a, c[0].length = c[1].length = S + 2, {
4456
4456
  min: { x: Math.min.apply(0, c[0]), y: Math.min.apply(0, c[1]) },
4457
4457
  max: { x: Math.max.apply(0, c[0]), y: Math.max.apply(0, c[1]) }
@@ -4460,8 +4460,8 @@ function fd(e, t, i, n, s, r, o, a) {
4460
4460
  function pd(e, t, i, n) {
4461
4461
  let s = Ms.abscissas[n - 2], r = Ms.weights[n - 2], o = 0.5 * (i - t), a = o + t, l = 0, c = n + 1 >> 1, u = n & 1 ? r[l++] * e(a) : 0;
4462
4462
  for (; l < c; ) {
4463
- const d = o * s[l];
4464
- u += r[l++] * (e(a + d) + e(a - d));
4463
+ const h = o * s[l];
4464
+ u += r[l++] * (e(a + h) + e(a - h));
4465
4465
  }
4466
4466
  return o * u;
4467
4467
  }
@@ -4488,8 +4488,8 @@ function yv(e, t, i, n, s, r, o) {
4488
4488
  for (let l = 0; l < a; l++) {
4489
4489
  let c = (l + 1) / a;
4490
4490
  o && (c = 1 - c);
4491
- const u = c * r + s, d = i * Math.cos(u), f = n * Math.sin(u), h = new Ee(d, f);
4492
- h.command = ce.line;
4491
+ const u = c * r + s, h = i * Math.cos(u), f = n * Math.sin(u), d = new Ee(h, f);
4492
+ d.command = ce.line;
4493
4493
  }
4494
4494
  }
4495
4495
  var Ml = Array.prototype.slice;
@@ -5290,13 +5290,13 @@ function Kr(e, t) {
5290
5290
  }
5291
5291
  function yd(e, t, i) {
5292
5292
  let n, s, r, o, a, l, c, u;
5293
- const d = t.controls && t.controls.right, f = e.controls && e.controls.left;
5294
- return n = t.x, a = t.y, s = (d || t).x, l = (d || t).y, r = (f || e).x, c = (f || e).y, o = e.x, u = e.y, d && t._relative && (s += t.x, l += t.y), f && e._relative && (r += e.x, c += e.y), hd(n, a, s, l, r, c, o, u, i);
5293
+ const h = t.controls && t.controls.right, f = e.controls && e.controls.left;
5294
+ return n = t.x, a = t.y, s = (h || t).x, l = (h || t).y, r = (f || e).x, c = (f || e).y, o = e.x, u = e.y, h && t._relative && (s += t.x, l += t.y), f && e._relative && (r += e.x, c += e.y), hd(n, a, s, l, r, c, o, u, i);
5295
5295
  }
5296
5296
  function Ll(e, t, i) {
5297
5297
  let n, s, r, o, a, l, c, u;
5298
- const d = t.controls && t.controls.right, f = e.controls && e.controls.left;
5299
- return n = t.x, a = t.y, s = (d || t).x, l = (d || t).y, r = (f || e).x, c = (f || e).y, o = e.x, u = e.y, d && t._relative && (s += t.x, l += t.y), f && e._relative && (r += e.x, c += e.y), fl(n, a, s, l, r, c, o, u, i);
5298
+ const h = t.controls && t.controls.right, f = e.controls && e.controls.left;
5299
+ return n = t.x, a = t.y, s = (h || t).x, l = (h || t).y, r = (f || e).x, c = (f || e).y, o = e.x, u = e.y, h && t._relative && (s += t.x, l += t.y), f && e._relative && (r += e.x, c += e.y), fl(n, a, s, l, r, c, o, u, i);
5300
5300
  }
5301
5301
  function Jn(e) {
5302
5302
  switch (e.renderer.type) {
@@ -5324,8 +5324,8 @@ var Fv = Math.cos, Ev = Math.sin, Dl = Math.tan, Go = [], si = class extends ee
5324
5324
  const I = t[0] || 0, B = t[1] || 0, Z = t[2] || 0;
5325
5325
  return $ = b[0] * I + b[1] * B + b[2] * Z, w = b[3] * I + b[4] * B + b[5] * Z, M = b[6] * I + b[7] * B + b[8] * Z, [$, w, M];
5326
5326
  }
5327
- const n = e[0], s = e[1], r = e[2], o = e[3], a = e[4], l = e[5], c = e[6], u = e[7], d = e[8], f = t[0], h = t[1], p = t[2], g = t[3], m = t[4], v = t[5], _ = t[6], S = t[7], C = t[8];
5328
- return i = i || new Li(9), i[0] = n * f + s * g + r * _, i[1] = n * h + s * m + r * S, i[2] = n * p + s * v + r * C, i[3] = o * f + a * g + l * _, i[4] = o * h + a * m + l * S, i[5] = o * p + a * v + l * C, i[6] = c * f + u * g + d * _, i[7] = c * h + u * m + d * S, i[8] = c * p + u * v + d * C, i;
5327
+ const n = e[0], s = e[1], r = e[2], o = e[3], a = e[4], l = e[5], c = e[6], u = e[7], h = e[8], f = t[0], d = t[1], p = t[2], g = t[3], m = t[4], v = t[5], _ = t[6], S = t[7], C = t[8];
5328
+ return i = i || new Li(9), i[0] = n * f + s * g + r * _, i[1] = n * d + s * m + r * S, i[2] = n * p + s * v + r * C, i[3] = o * f + a * g + l * _, i[4] = o * d + a * m + l * S, i[5] = o * p + a * v + l * C, i[6] = c * f + u * g + h * _, i[7] = c * d + u * m + h * S, i[8] = c * p + u * v + h * C, i;
5329
5329
  }
5330
5330
  static fromObject(e) {
5331
5331
  return new si().copy(e);
@@ -5351,15 +5351,15 @@ var Fv = Math.cos, Ev = Math.sin, Dl = Math.tan, Go = [], si = class extends ee
5351
5351
  const N = s[0] * e + s[1] * t + s[2] * i, H = s[3] * e + s[4] * t + s[5] * i, E = s[6] * e + s[7] * t + s[8] * i;
5352
5352
  return [N, H, E];
5353
5353
  }
5354
- const c = this.elements, u = [e, t, i, n, s, r, o, a, l], d = c[0], f = c[1], h = c[2], p = c[3], g = c[4], m = c[5], v = c[6], _ = c[7], S = c[8], C = u[0], b = u[1], $ = u[2], w = u[3], M = u[4], I = u[5], B = u[6], Z = u[7], Q = u[8];
5355
- return this.elements[0] = d * C + f * w + h * B, this.elements[1] = d * b + f * M + h * Z, this.elements[2] = d * $ + f * I + h * Q, this.elements[3] = p * C + g * w + m * B, this.elements[4] = p * b + g * M + m * Z, this.elements[5] = p * $ + g * I + m * Q, this.elements[6] = v * C + _ * w + S * B, this.elements[7] = v * b + _ * M + S * Z, this.elements[8] = v * $ + _ * I + S * Q, this.trigger(ee.Types.change);
5354
+ const c = this.elements, u = [e, t, i, n, s, r, o, a, l], h = c[0], f = c[1], d = c[2], p = c[3], g = c[4], m = c[5], v = c[6], _ = c[7], S = c[8], C = u[0], b = u[1], $ = u[2], w = u[3], M = u[4], I = u[5], B = u[6], Z = u[7], Q = u[8];
5355
+ return this.elements[0] = h * C + f * w + d * B, this.elements[1] = h * b + f * M + d * Z, this.elements[2] = h * $ + f * I + d * Q, this.elements[3] = p * C + g * w + m * B, this.elements[4] = p * b + g * M + m * Z, this.elements[5] = p * $ + g * I + m * Q, this.elements[6] = v * C + _ * w + S * B, this.elements[7] = v * b + _ * M + S * Z, this.elements[8] = v * $ + _ * I + S * Q, this.trigger(ee.Types.change);
5356
5356
  }
5357
5357
  inverse(e) {
5358
5358
  const t = this.elements;
5359
5359
  e = e || new si();
5360
- const i = t[0], n = t[1], s = t[2], r = t[3], o = t[4], a = t[5], l = t[6], c = t[7], u = t[8], d = u * o - a * c, f = -u * r + a * l, h = c * r - o * l;
5361
- let p = i * d + n * f + s * h;
5362
- return p ? (p = 1 / p, e.elements[0] = d * p, e.elements[1] = (-u * n + s * c) * p, e.elements[2] = (a * n - s * o) * p, e.elements[3] = f * p, e.elements[4] = (u * i - s * l) * p, e.elements[5] = (-a * i + s * r) * p, e.elements[6] = h * p, e.elements[7] = (-c * i + n * l) * p, e.elements[8] = (o * i - n * r) * p, e) : null;
5360
+ const i = t[0], n = t[1], s = t[2], r = t[3], o = t[4], a = t[5], l = t[6], c = t[7], u = t[8], h = u * o - a * c, f = -u * r + a * l, d = c * r - o * l;
5361
+ let p = i * h + n * f + s * d;
5362
+ return p ? (p = 1 / p, e.elements[0] = h * p, e.elements[1] = (-u * n + s * c) * p, e.elements[2] = (a * n - s * o) * p, e.elements[3] = f * p, e.elements[4] = (u * i - s * l) * p, e.elements[5] = (-a * i + s * r) * p, e.elements[6] = d * p, e.elements[7] = (-c * i + n * l) * p, e.elements[8] = (o * i - n * r) * p, e) : null;
5363
5363
  }
5364
5364
  scale(e, t) {
5365
5365
  return arguments.length <= 1 && (t = e), this.multiply(e, 0, 0, 0, t, 0, 0, 0, 1);
@@ -5385,12 +5385,12 @@ var Fv = Math.cos, Ev = Math.sin, Dl = Math.tan, Go = [], si = class extends ee
5385
5385
  toTransformArray(e, t) {
5386
5386
  const i = this.elements, n = !!t, s = i[0], r = i[1], o = i[2], a = i[3], l = i[4], c = i[5];
5387
5387
  if (e) {
5388
- const u = i[6], d = i[7], f = i[8];
5388
+ const u = i[6], h = i[7], f = i[8];
5389
5389
  if (n) {
5390
- t[0] = s, t[1] = a, t[2] = u, t[3] = r, t[4] = l, t[5] = d, t[6] = o, t[7] = c, t[8] = f;
5390
+ t[0] = s, t[1] = a, t[2] = u, t[3] = r, t[4] = l, t[5] = h, t[6] = o, t[7] = c, t[8] = f;
5391
5391
  return;
5392
5392
  }
5393
- return [s, a, u, r, l, d, o, c, f];
5393
+ return [s, a, u, r, l, h, o, c, f];
5394
5394
  }
5395
5395
  if (n) {
5396
5396
  t[0] = s, t[1] = a, t[2] = r, t[3] = l, t[4] = o, t[5] = c;
@@ -5408,12 +5408,12 @@ var Fv = Math.cos, Ev = Math.sin, Dl = Math.tan, Go = [], si = class extends ee
5408
5408
  toArray(e, t) {
5409
5409
  const i = this.elements, n = !!t, s = i[0], r = i[1], o = i[2], a = i[3], l = i[4], c = i[5];
5410
5410
  if (e) {
5411
- const u = i[6], d = i[7], f = i[8];
5411
+ const u = i[6], h = i[7], f = i[8];
5412
5412
  if (n) {
5413
- t[0] = s, t[1] = r, t[2] = o, t[3] = a, t[4] = l, t[5] = c, t[6] = u, t[7] = d, t[8] = f;
5413
+ t[0] = s, t[1] = r, t[2] = o, t[3] = a, t[4] = l, t[5] = c, t[6] = u, t[7] = h, t[8] = f;
5414
5414
  return;
5415
5415
  }
5416
- return [s, r, o, a, l, c, u, d, f];
5416
+ return [s, r, o, a, l, c, u, h, f];
5417
5417
  }
5418
5418
  if (n) {
5419
5419
  t[0] = s, t[1] = r, t[2] = o, t[3] = a, t[4] = l, t[5] = c;
@@ -5627,7 +5627,7 @@ var hs = Math.min, fs = Math.max, Av = Math.ceil, Ov = Math.floor, Bv = new oe()
5627
5627
  let t, i, n, s, r, o, a = 1 / 0, l = -1 / 0, c = 1 / 0, u = -1 / 0;
5628
5628
  if (this._update(!0), t = e ? this.matrix : this.worldMatrix, i = (this.linewidth || 0) / 2, n = this._renderer.vertices.length, this.linewidth > 0 || this.stroke && !/(transparent|none)/i.test(this.stroke))
5629
5629
  if (this.matrix.manual) {
5630
- const { scaleX: d, scaleY: f } = Rs(
5630
+ const { scaleX: h, scaleY: f } = Rs(
5631
5631
  t.elements[0],
5632
5632
  t.elements[3],
5633
5633
  t.elements[1],
@@ -5635,7 +5635,7 @@ var hs = Math.min, fs = Math.max, Av = Math.ceil, Ov = Math.floor, Bv = new oe()
5635
5635
  t.elements[2],
5636
5636
  t.elements[5]
5637
5637
  );
5638
- typeof d == "number" && typeof f == "number" && (i = Math.max(d, f) * (this.linewidth || 0) / 2);
5638
+ typeof h == "number" && typeof f == "number" && (i = Math.max(h, f) * (this.linewidth || 0) / 2);
5639
5639
  } else
5640
5640
  i *= typeof this.scale == "number" ? this.scale : Math.max(this.scale.x, this.scale.y);
5641
5641
  if (n <= 0)
@@ -5645,17 +5645,17 @@ var hs = Math.min, fs = Math.max, Av = Math.ceil, Ov = Math.floor, Bv = new oe()
5645
5645
  };
5646
5646
  for (s = 0; s < n; s++) {
5647
5647
  o = this._renderer.vertices[s], r = this._renderer.vertices[(s + n - 1) % n];
5648
- const [d, f] = t.multiply(r.x, r.y), [h, p] = t.multiply(o.x, o.y);
5648
+ const [h, f] = t.multiply(r.x, r.y), [d, p] = t.multiply(o.x, o.y);
5649
5649
  if (r.controls && o.controls) {
5650
5650
  let g = r.controls.right.x, m = r.controls.right.y;
5651
5651
  r.relative && (g += r.x, m += r.y);
5652
5652
  let [v, _] = t.multiply(g, m), S = o.controls.left.x, C = o.controls.left.y;
5653
5653
  o.relative && (S += o.x, C += o.y);
5654
5654
  let [b, $] = t.multiply(S, C);
5655
- const w = fd(d, f, v, _, b, $, h, p);
5655
+ const w = fd(h, f, v, _, b, $, d, p);
5656
5656
  c = hs(w.min.y - i, c), a = hs(w.min.x - i, a), l = fs(w.max.x + i, l), u = fs(w.max.y + i, u);
5657
5657
  } else
5658
- s <= 1 && (c = hs(f - i, c), a = hs(d - i, a), l = fs(d + i, l), u = fs(f + i, u)), c = hs(p - i, c), a = hs(h - i, a), l = fs(h + i, l), u = fs(p + i, u);
5658
+ s <= 1 && (c = hs(f - i, c), a = hs(h - i, a), l = fs(h + i, l), u = fs(f + i, u)), c = hs(p - i, c), a = hs(d - i, a), l = fs(d + i, l), u = fs(p + i, u);
5659
5659
  }
5660
5660
  return {
5661
5661
  top: c,
@@ -5667,7 +5667,7 @@ var hs = Math.min, fs = Math.max, Av = Math.ceil, Ov = Math.floor, Bv = new oe()
5667
5667
  };
5668
5668
  }
5669
5669
  getPointAt(e, t) {
5670
- let i, n, s, r, o, a, l, c, u, d, f, h, p, g, m, v = this.length * Math.min(Math.max(e, 0), 1);
5670
+ let i, n, s, r, o, a, l, c, u, h, f, d, p, g, m, v = this.length * Math.min(Math.max(e, 0), 1);
5671
5671
  const _ = this.vertices.length, S = _ - 1;
5672
5672
  let C = null, b = null;
5673
5673
  for (let J = 0, L = this._lengths.length, O = 0; J < L; J++) {
@@ -5683,8 +5683,8 @@ var hs = Math.min, fs = Math.max, Av = Math.ceil, Ov = Math.floor, Bv = new oe()
5683
5683
  if (!b)
5684
5684
  return C;
5685
5685
  } else return b;
5686
- m = b.controls && b.controls.right, g = C.controls && C.controls.left, o = b.x, d = b.y, a = (m || b).x, f = (m || b).y, l = (g || C).x, h = (g || C).y, c = C.x, p = C.y, m && b.relative && (a += b.x, f += b.y), g && C.relative && (l += C.x, h += C.y), r = Js(e, o, a, l, c), u = Js(e, d, f, h, p);
5687
- const $ = oi(o, a, e), w = oi(d, f, e), M = oi(a, l, e), I = oi(f, h, e), B = oi(l, c, e), Z = oi(h, p, e), Q = oi($, M, e), N = oi(w, I, e), H = oi(M, B, e), E = oi(I, Z, e);
5686
+ m = b.controls && b.controls.right, g = C.controls && C.controls.left, o = b.x, h = b.y, a = (m || b).x, f = (m || b).y, l = (g || C).x, d = (g || C).y, c = C.x, p = C.y, m && b.relative && (a += b.x, f += b.y), g && C.relative && (l += C.x, d += C.y), r = Js(e, o, a, l, c), u = Js(e, h, f, d, p);
5687
+ const $ = oi(o, a, e), w = oi(h, f, e), M = oi(a, l, e), I = oi(f, d, e), B = oi(l, c, e), Z = oi(d, p, e), Q = oi($, M, e), N = oi(w, I, e), H = oi(M, B, e), E = oi(I, Z, e);
5688
5688
  return me.isObject(t) ? (t.x = r, t.y = u, t instanceof Ee && (t.controls.left.x = Q, t.controls.left.y = N, t.controls.right.x = H, t.controls.right.y = E, (typeof t.relative != "boolean" || t.relative) && (t.controls.left.x -= r, t.controls.left.y -= u, t.controls.right.x -= r, t.controls.right.y -= u)), t.t = e, t) : (s = new Ee(
5689
5689
  r,
5690
5690
  u,
@@ -5746,10 +5746,10 @@ var hs = Math.min, fs = Math.max, Av = Math.ceil, Ov = Math.floor, Bv = new oe()
5746
5746
  if (this._flagVertices) {
5747
5747
  this._automatic && this.plot(), this._flagLength && this._updateLength(void 0, !0);
5748
5748
  const e = this._collection.length, t = this._closed, i = Math.min(this._beginning, this._ending), n = Math.max(this._beginning, this._ending), s = Kr(this, i * this._length), r = Kr(this, n * this._length), o = Av(s), a = Ov(r);
5749
- let l, c, u, d, f, h;
5750
- for (this._renderer.vertices.length = 0, h = 0; h < e; h++)
5751
- this._renderer.collection.length <= h && this._renderer.collection.push(new Ee()), h > a && !c ? (f = this._renderer.collection[h].copy(this._collection[h]), this.getPointAt(n, f), f.command = this._renderer.collection[h].command, this._renderer.vertices.push(f), c = f, u = this._collection[h - 1], u && u.controls && (f.relative ? f.controls.right.clear() : f.controls.right.copy(f), u.relative ? this._renderer.collection[h - 1].controls.right.copy(u.controls.right).lerp(oe.zero, 1 - f.t) : this._renderer.collection[h - 1].controls.right.copy(u.controls.right).lerp(u, 1 - f.t))) : h >= o && h <= a && (f = this._renderer.collection[h].copy(this._collection[h]), this._renderer.vertices.push(f), h === a && zl(this, n) ? (c = f, !t && c.controls && (c.relative ? c.controls.right.clear() : c.controls.right.copy(c))) : h === o && zl(this, i) && (l = f, l.command = ce.move, !t && l.controls && (l.relative ? l.controls.left.clear() : l.controls.left.copy(l))));
5752
- o > 0 && !l && (h = o - 1, f = this._renderer.collection[h].copy(this._collection[h]), this.getPointAt(i, f), f.command = ce.move, this._renderer.vertices.unshift(f), d = this._collection[h + 1], d && d.controls && (f.controls.left.clear(), d.relative ? this._renderer.collection[h + 1].controls.left.copy(d.controls.left).lerp(oe.zero, f.t) : (Bv.copy(d), this._renderer.collection[h + 1].controls.left.copy(d.controls.left).lerp(d, f.t))));
5749
+ let l, c, u, h, f, d;
5750
+ for (this._renderer.vertices.length = 0, d = 0; d < e; d++)
5751
+ this._renderer.collection.length <= d && this._renderer.collection.push(new Ee()), d > a && !c ? (f = this._renderer.collection[d].copy(this._collection[d]), this.getPointAt(n, f), f.command = this._renderer.collection[d].command, this._renderer.vertices.push(f), c = f, u = this._collection[d - 1], u && u.controls && (f.relative ? f.controls.right.clear() : f.controls.right.copy(f), u.relative ? this._renderer.collection[d - 1].controls.right.copy(u.controls.right).lerp(oe.zero, 1 - f.t) : this._renderer.collection[d - 1].controls.right.copy(u.controls.right).lerp(u, 1 - f.t))) : d >= o && d <= a && (f = this._renderer.collection[d].copy(this._collection[d]), this._renderer.vertices.push(f), d === a && zl(this, n) ? (c = f, !t && c.controls && (c.relative ? c.controls.right.clear() : c.controls.right.copy(c))) : d === o && zl(this, i) && (l = f, l.command = ce.move, !t && l.controls && (l.relative ? l.controls.left.clear() : l.controls.left.copy(l))));
5752
+ o > 0 && !l && (d = o - 1, f = this._renderer.collection[d].copy(this._collection[d]), this.getPointAt(i, f), f.command = ce.move, this._renderer.vertices.unshift(f), h = this._collection[d + 1], h && h.controls && (f.controls.left.clear(), h.relative ? this._renderer.collection[d + 1].controls.left.copy(h.controls.left).lerp(oe.zero, f.t) : (Bv.copy(h), this._renderer.collection[d + 1].controls.left.copy(h.controls.left).lerp(h, f.t))));
5753
5753
  }
5754
5754
  return nn.prototype._update.apply(this, arguments), this;
5755
5755
  }
@@ -6087,10 +6087,10 @@ var Hl = {
6087
6087
  }
6088
6088
  _update() {
6089
6089
  const e = this._texture, t = this._columns, i = this._rows;
6090
- let n, s, r, o, a, l, c, u, d;
6090
+ let n, s, r, o, a, l, c, u, h;
6091
6091
  if (e && ((this._flagColumns || this._flagRows) && (this._amount = this._columns * this._rows), this._flagFrameRate && (this._duration = 1e3 * this._amount / this._frameRate), this._flagTexture && (this.fill = e), e.loaded)) {
6092
- c = e.image.width, u = e.image.height, n = c / t, s = u / i, o = this._amount, this.width !== n && (this.width = n), this.height !== s && (this.height = s), this._playing && this._frameRate > 0 && (me.isNaN(this._lastFrame) && (this._lastFrame = o - 1), r = me.performance.now() - this._startTime, d = this._lastFrame + 1, a = 1e3 * (d - this._firstFrame) / this._frameRate, this._loop ? r = r % a : r = Math.min(r, a), l = oi(this._firstFrame, d, r / a), l = Math.floor(l), l !== this._index && (this._index = l, l >= this._lastFrame - 1 && this._onLastFrame && this._onLastFrame()));
6093
- const f = this._index % t, h = Math.floor(this._index / t), p = -n * f + (c - n) / 2, g = -s * h + (u - s) / 2;
6092
+ c = e.image.width, u = e.image.height, n = c / t, s = u / i, o = this._amount, this.width !== n && (this.width = n), this.height !== s && (this.height = s), this._playing && this._frameRate > 0 && (me.isNaN(this._lastFrame) && (this._lastFrame = o - 1), r = me.performance.now() - this._startTime, h = this._lastFrame + 1, a = 1e3 * (h - this._firstFrame) / this._frameRate, this._loop ? r = r % a : r = Math.min(r, a), l = oi(this._firstFrame, h, r / a), l = Math.floor(l), l !== this._index && (this._index = l, l >= this._lastFrame - 1 && this._onLastFrame && this._onLastFrame()));
6093
+ const f = this._index % t, d = Math.floor(this._index / t), p = -n * f + (c - n) / 2, g = -s * d + (u - s) / 2;
6094
6094
  p !== e.offset.x && (e.offset.x = p), g !== e.offset.y && (e.offset.y = g);
6095
6095
  }
6096
6096
  return super._update.call(this), this;
@@ -6228,20 +6228,20 @@ var An = class extends Be {
6228
6228
  _update() {
6229
6229
  if (this._flagVertices || this._flagStartAngle || this._flagEndAngle || this._flagInnerRadius || this._flagOuterRadius) {
6230
6230
  const e = this._startAngle, t = this._endAngle, i = this._innerRadius, n = this._outerRadius, s = ui(e, Lt) === ui(t, Lt), r = i > 0, o = this.vertices;
6231
- let a = r ? o.length / 2 : o.length, l, c = 0, u, d, f, h, p, g, m, v, _;
6232
- for (s ? a-- : r || (a -= 2), u = 0, d = a - 1; u < a; u++) {
6233
- switch (f = u / d, h = o[c], p = f * (t - e) + e, g = (t - e) / a, m = n * Math.cos(p), v = n * Math.sin(p), u) {
6231
+ let a = r ? o.length / 2 : o.length, l, c = 0, u, h, f, d, p, g, m, v, _;
6232
+ for (s ? a-- : r || (a -= 2), u = 0, h = a - 1; u < a; u++) {
6233
+ switch (f = u / h, d = o[c], p = f * (t - e) + e, g = (t - e) / a, m = n * Math.cos(p), v = n * Math.sin(p), u) {
6234
6234
  case 0:
6235
6235
  l = ce.move;
6236
6236
  break;
6237
6237
  default:
6238
6238
  l = ce.curve;
6239
6239
  }
6240
- h.command = l, h.x = m, h.y = v, h.controls.left.clear(), h.controls.right.clear(), h.command === ce.curve && (_ = n * g / Math.PI, h.controls.left.x = _ * Math.cos(p - bt), h.controls.left.y = _ * Math.sin(p - bt), h.controls.right.x = _ * Math.cos(p + bt), h.controls.right.y = _ * Math.sin(p + bt), u === 1 && h.controls.left.multiplyScalar(2), u === d && h.controls.right.multiplyScalar(2)), c++;
6240
+ d.command = l, d.x = m, d.y = v, d.controls.left.clear(), d.controls.right.clear(), d.command === ce.curve && (_ = n * g / Math.PI, d.controls.left.x = _ * Math.cos(p - bt), d.controls.left.y = _ * Math.sin(p - bt), d.controls.right.x = _ * Math.cos(p + bt), d.controls.right.y = _ * Math.sin(p + bt), u === 1 && d.controls.left.multiplyScalar(2), u === h && d.controls.right.multiplyScalar(2)), c++;
6241
6241
  }
6242
6242
  if (r) {
6243
- for (s ? (o[c].command = ce.close, c++) : (a--, d = a - 1), u = 0; u < a; u++)
6244
- f = u / d, h = o[c], p = (1 - f) * (t - e) + e, g = (t - e) / a, m = i * Math.cos(p), v = i * Math.sin(p), l = ce.curve, u <= 0 && (l = s ? ce.move : ce.line), h.command = l, h.x = m, h.y = v, h.controls.left.clear(), h.controls.right.clear(), h.command === ce.curve && (_ = i * g / Math.PI, h.controls.left.x = _ * Math.cos(p + bt), h.controls.left.y = _ * Math.sin(p + bt), h.controls.right.x = _ * Math.cos(p - bt), h.controls.right.y = _ * Math.sin(p - bt), u === 1 && h.controls.left.multiplyScalar(2), u === d && h.controls.right.multiplyScalar(2)), c++;
6243
+ for (s ? (o[c].command = ce.close, c++) : (a--, h = a - 1), u = 0; u < a; u++)
6244
+ f = u / h, d = o[c], p = (1 - f) * (t - e) + e, g = (t - e) / a, m = i * Math.cos(p), v = i * Math.sin(p), l = ce.curve, u <= 0 && (l = s ? ce.move : ce.line), d.command = l, d.x = m, d.y = v, d.controls.left.clear(), d.controls.right.clear(), d.command === ce.curve && (_ = i * g / Math.PI, d.controls.left.x = _ * Math.cos(p + bt), d.controls.left.y = _ * Math.sin(p + bt), d.controls.right.x = _ * Math.cos(p - bt), d.controls.right.y = _ * Math.sin(p - bt), u === 1 && d.controls.left.multiplyScalar(2), u === h && d.controls.right.multiplyScalar(2)), c++;
6245
6245
  o[c].copy(o[0]), o[c].command = ce.line;
6246
6246
  } else s || (o[c].command = ce.line, o[c].x = 0, o[c].y = 0, c++, o[c].copy(o[0]), o[c].command = ce.line);
6247
6247
  }
@@ -6335,8 +6335,8 @@ var Vl = {
6335
6335
  !this._closed && e > 2 && (e -= 1);
6336
6336
  const t = 4 / 3 * Math.tan(Math.PI / (e * 2)), i = this._radius, n = i * t;
6337
6337
  for (let s = 0; s < this.vertices.length; s++) {
6338
- const o = s / e * Lt, a = i * Ko(o), l = i * Zo(o), c = n * Ko(o - bt), u = n * Zo(o - bt), d = n * Ko(o + bt), f = n * Zo(o + bt), h = this.vertices[s];
6339
- h.command = s === 0 ? ce.move : ce.curve, h.set(a, l), h.controls.left.set(c, u), h.controls.right.set(d, f);
6338
+ const o = s / e * Lt, a = i * Ko(o), l = i * Zo(o), c = n * Ko(o - bt), u = n * Zo(o - bt), h = n * Ko(o + bt), f = n * Zo(o + bt), d = this.vertices[s];
6339
+ d.command = s === 0 ? ce.move : ce.curve, d.set(a, l), d.controls.left.set(c, u), d.controls.right.set(h, f);
6340
6340
  }
6341
6341
  }
6342
6342
  return super._update.call(this), this;
@@ -6403,8 +6403,8 @@ var jl = {
6403
6403
  !this._closed && e > 2 && (e -= 1);
6404
6404
  const t = 4 / 3 * Math.tan(Math.PI / (this.vertices.length * 2)), i = this._width / 2, n = this._height / 2;
6405
6405
  for (let s = 0; s < this.vertices.length; s++) {
6406
- const o = s / e * Lt, a = i * Jo(o), l = n * Qo(o), c = i * t * Jo(o - bt), u = n * t * Qo(o - bt), d = i * t * Jo(o + bt), f = n * t * Qo(o + bt), h = this.vertices[s];
6407
- h.command = s === 0 ? ce.move : ce.curve, h.set(a, l), h.controls.left.set(c, u), h.controls.right.set(d, f);
6406
+ const o = s / e * Lt, a = i * Jo(o), l = n * Qo(o), c = i * t * Jo(o - bt), u = n * t * Qo(o - bt), h = i * t * Jo(o + bt), f = n * t * Qo(o + bt), d = this.vertices[s];
6407
+ d.command = s === 0 ? ce.move : ce.curve, d.set(a, l), d.controls.left.set(c, u), d.controls.right.set(h, f);
6408
6408
  }
6409
6409
  }
6410
6410
  return super._update.call(this), this;
@@ -7000,8 +7000,8 @@ var ri = class extends nn {
7000
7000
  default:
7001
7001
  s = -(a + l), r = l;
7002
7002
  }
7003
- const [c, u] = t.multiply(i, s), [d, f] = t.multiply(i, r), [h, p] = t.multiply(n, s), [g, m] = t.multiply(n, r);
7004
- return s = Kl(u, f, p, m), i = Kl(c, d, h, g), n = Zl(c, d, h, g), r = Zl(u, f, p, m), {
7003
+ const [c, u] = t.multiply(i, s), [h, f] = t.multiply(i, r), [d, p] = t.multiply(n, s), [g, m] = t.multiply(n, r);
7004
+ return s = Kl(u, f, p, m), i = Kl(c, h, d, g), n = Zl(c, h, d, g), r = Zl(u, f, p, m), {
7005
7005
  top: s,
7006
7006
  left: i,
7007
7007
  right: n,
@@ -7365,11 +7365,11 @@ var kr = Math.min, Cr = Math.max, bs = class extends nn {
7365
7365
  let t, i, n, s, r, o;
7366
7366
  this._update(!0);
7367
7367
  let a = 1 / 0, l = -1 / 0, c = 1 / 0, u = -1 / 0;
7368
- const d = /texture|gradient/i;
7368
+ const h = /texture|gradient/i;
7369
7369
  i = e ? this.matrix : this.worldMatrix;
7370
7370
  for (let f = 0; f < this.children.length; f++) {
7371
- const h = this.children[f];
7372
- if (!(!h.visible || d.test(h._renderer.type)) && (t = h.getBoundingClientRect(e), n = typeof t.top != "number" || me.isNaN(t.top) || !isFinite(t.top), s = typeof t.left != "number" || me.isNaN(t.left) || !isFinite(t.left), r = typeof t.right != "number" || me.isNaN(t.right) || !isFinite(t.right), o = typeof t.bottom != "number" || me.isNaN(t.bottom) || !isFinite(t.bottom), !(n || s || r || o)))
7371
+ const d = this.children[f];
7372
+ if (!(!d.visible || h.test(d._renderer.type)) && (t = d.getBoundingClientRect(e), n = typeof t.top != "number" || me.isNaN(t.top) || !isFinite(t.top), s = typeof t.left != "number" || me.isNaN(t.left) || !isFinite(t.left), r = typeof t.right != "number" || me.isNaN(t.right) || !isFinite(t.right), o = typeof t.bottom != "number" || me.isNaN(t.bottom) || !isFinite(t.bottom), !(n || s || r || o)))
7373
7373
  if (e) {
7374
7374
  const [p, g] = i.multiply(t.left, t.top), [m, v] = i.multiply(t.right, t.top), [_, S] = i.multiply(t.left, t.bottom), [C, b] = i.multiply(t.right, t.bottom);
7375
7375
  c = kr(g, v, S, b, c), a = kr(p, m, _, C, a), l = Cr(p, m, _, C, l), u = Cr(g, v, S, b, u);
@@ -7734,8 +7734,8 @@ function Zv(e) {
7734
7734
  function Jv(e, t) {
7735
7735
  const i = t.split(/[\s,]/), n = -parseFloat(i[0]), s = -parseFloat(i[1]), r = parseFloat(i[2]), o = parseFloat(i[3]);
7736
7736
  if (n && s)
7737
- for (let d = 0; d < e.children.length; d++) {
7738
- const f = e.children[d];
7737
+ for (let h = 0; h < e.children.length; h++) {
7738
+ const f = e.children[h];
7739
7739
  "translation" in f ? f.translation.add(n, s) : "x" in f ? f.x = n : "y" in f && (f.y = s);
7740
7740
  }
7741
7741
  const a = typeof e.x == "number", l = typeof e.y == "number", c = typeof e.width == "number", u = typeof e.height == "number";
@@ -7743,7 +7743,7 @@ function Jv(e, t) {
7743
7743
  }
7744
7744
  function hi(e, t, i) {
7745
7745
  const n = {}, s = {}, r = {};
7746
- let o, a, l, c, u, d, f, h, p, g, m, v, _, S, C, b, $;
7746
+ let o, a, l, c, u, h, f, d, p, g, m, v, _, S, C, b, $;
7747
7747
  if (e === null)
7748
7748
  return n;
7749
7749
  if (ct.getComputedStyle) {
@@ -7752,7 +7752,7 @@ function hi(e, t, i) {
7752
7752
  l = w[o], c = w[l], typeof c < "u" && (n[l] = c);
7753
7753
  }
7754
7754
  for (o = 0; o < e.attributes.length; o++)
7755
- d = e.attributes[o], /style/i.test(d.nodeName) ? Gv(d.value, r) : s[d.nodeName] = d.value;
7755
+ h = e.attributes[o], /style/i.test(h.nodeName) ? Gv(h.value, r) : s[h.nodeName] = h.value;
7756
7756
  typeof n.opacity < "u" && (n["stroke-opacity"] = n.opacity, n["fill-opacity"] = n.opacity, delete n.opacity), i && me.defaults(n, i), me.extend(n, r, s), n.visible = !(typeof n.display > "u" && /none/i.test(n.display)) || typeof n.visibility > "u" && /hidden/i.test(n.visibility);
7757
7757
  for (l in n)
7758
7758
  switch (c = n[l], l) {
@@ -7771,7 +7771,7 @@ function hi(e, t, i) {
7771
7771
  case "transform":
7772
7772
  if (/none/i.test(c) || (a = e.transform && e.transform.baseVal && e.transform.baseVal.length > 0 ? e.transform.baseVal[0].matrix : e.getCTM ? e.getCTM() : null, a === null))
7773
7773
  break;
7774
- f = Rs(a), t.translation.set(f.translateX, f.translateY), t.rotation = Math.PI * (f.rotation / 180), t.scale = new oe(f.scaleX, f.scaleY), h = parseFloat((n.x + "").replace("px")), p = parseFloat((n.y + "").replace("px")), h && (t.translation.x = h), p && (t.translation.y = p);
7774
+ f = Rs(a), t.translation.set(f.translateX, f.translateY), t.rotation = Math.PI * (f.rotation / 180), t.scale = new oe(f.scaleX, f.scaleY), d = parseFloat((n.x + "").replace("px")), p = parseFloat((n.y + "").replace("px")), d && (t.translation.x = d), p && (t.translation.y = p);
7775
7775
  break;
7776
7776
  case "visible":
7777
7777
  if (t instanceof mt) {
@@ -7886,8 +7886,8 @@ var rt = {
7886
7886
  Qv(i[p], t);
7887
7887
  const n = rt.g.call(this, e), s = e.getAttribute("viewBox"), r = e.getAttribute("x"), o = e.getAttribute("y"), a = e.getAttribute("width"), l = e.getAttribute("height");
7888
7888
  n.defs = t;
7889
- const c = s !== null, u = r !== null, d = o !== null, f = a !== null, h = l !== null;
7890
- return u && (n.x = parseFloat(r.replace(zi.unitSuffix, ""))), d && (n.y = parseFloat(o.replace(zi.unitSuffix, ""))), f && (n.width = parseFloat(a.replace(zi.unitSuffix, ""))), h && (n.height = parseFloat(l.replace(zi.unitSuffix, ""))), c && Jv(n, s), delete rt.defs.current, n;
7889
+ const c = s !== null, u = r !== null, h = o !== null, f = a !== null, d = l !== null;
7890
+ return u && (n.x = parseFloat(r.replace(zi.unitSuffix, ""))), h && (n.y = parseFloat(o.replace(zi.unitSuffix, ""))), f && (n.width = parseFloat(a.replace(zi.unitSuffix, ""))), d && (n.height = parseFloat(l.replace(zi.unitSuffix, ""))), c && Jv(n, s), delete rt.defs.current, n;
7891
7891
  },
7892
7892
  defs: function(e) {
7893
7893
  return null;
@@ -7904,8 +7904,8 @@ var rt = {
7904
7904
  ), console.warn(i.name, i.message), null;
7905
7905
  const o = rt.defs.current.get(s).cloneNode(!0);
7906
7906
  for (let l = 0; l < e.attributes.length; l++) {
7907
- const c = e.attributes[l], u = Xv.includes(c.nodeName), d = !o.hasAttribute(c.nodeName);
7908
- (u || d) && o.setAttribute(c.nodeName, c.value);
7907
+ const c = e.attributes[l], u = Xv.includes(c.nodeName), h = !o.hasAttribute(c.nodeName);
7908
+ (u || h) && o.setAttribute(c.nodeName, c.value);
7909
7909
  }
7910
7910
  const a = Qs(o.nodeName);
7911
7911
  return rt[a].call(this, o, t);
@@ -7949,12 +7949,12 @@ var rt = {
7949
7949
  let n = [], s = !1, r = !1;
7950
7950
  if (i) {
7951
7951
  let a = new Ee(), l, c, u = i.match(/[a-df-z][^a-df-z]*/gi);
7952
- const d = u.length - 1;
7953
- me.each(u.slice(0), function(f, h) {
7952
+ const h = u.length - 1;
7953
+ me.each(u.slice(0), function(f, d) {
7954
7954
  const p = f.slice(1).trim().match(zi.path), g = f[0], m = g.toLowerCase();
7955
7955
  let v, _, S, C, b;
7956
7956
  const $ = [];
7957
- switch (h === 0 && (u = []), m) {
7957
+ switch (d === 0 && (u = []), m) {
7958
7958
  case "h":
7959
7959
  case "v":
7960
7960
  p.length > 1 && (v = 1);
@@ -7991,14 +7991,14 @@ var rt = {
7991
7991
  u = Array.prototype.concat.apply(u, $);
7992
7992
  } else
7993
7993
  u.push(f);
7994
- }), me.each(u, function(f, h) {
7994
+ }), me.each(u, function(f, d) {
7995
7995
  let p, g, m;
7996
7996
  const v = f[0], _ = v.toLowerCase();
7997
7997
  c = f.slice(1).trim().match(zi.path), r = v === _;
7998
7998
  let S, C, b, $, w, M, I, B, Z, Q, N, H, E, J, L, O, K;
7999
7999
  switch (_) {
8000
8000
  case "z":
8001
- if (h >= d)
8001
+ if (d >= h)
8002
8002
  s = !0;
8003
8003
  else {
8004
8004
  g = a.x, m = a.y, p = new Ee(
@@ -8117,14 +8117,14 @@ var rt = {
8117
8117
  /userSpaceOnUse/i.test(i) && (s -= l, r -= c, o -= l, a -= c);
8118
8118
  const u = [];
8119
8119
  for (let f = 0; f < e.children.length; f++) {
8120
- const h = e.children[f];
8121
- let p = h.getAttribute("offset");
8120
+ const d = e.children[f];
8121
+ let p = d.getAttribute("offset");
8122
8122
  /%/gi.test(p) && (p = parseFloat(p.replace(/%/gi, "")) / 100), p = parseFloat(p);
8123
- let g = h.getAttribute("stop-color"), m = h.getAttribute("stop-opacity"), v = h.getAttribute("style"), _;
8123
+ let g = d.getAttribute("stop-color"), m = d.getAttribute("stop-opacity"), v = d.getAttribute("style"), _;
8124
8124
  g === null && (_ = v ? v.match(/stop-color:\s?([#a-fA-F0-9]*)/) : !1, g = _ && _.length > 1 ? _[1] : void 0), m === null ? (_ = v ? v.match(/stop-opacity:\s?([0-9.-]*)/) : !1, m = _ && _.length > 1 ? parseFloat(_[1]) : 1) : m = parseFloat(m), u.push(new Ni(p, g, m));
8125
8125
  }
8126
- const d = new et(s, r, o, a, u);
8127
- return d.spread = n, d.units = i, hi.call(this, e, d, t), d;
8126
+ const h = new et(s, r, o, a, u);
8127
+ return h.spread = n, h.units = i, hi.call(this, e, h, t), h;
8128
8128
  },
8129
8129
  radialgradient: function(e, t) {
8130
8130
  let i = e.getAttribute("gradientUnits"), n = e.getAttribute("spreadMethod");
@@ -8133,15 +8133,15 @@ var rt = {
8133
8133
  me.isNaN(a) && (a = s), me.isNaN(l) && (l = r);
8134
8134
  const c = Math.abs(s + a) / 2, u = Math.abs(r + l) / 2;
8135
8135
  /userSpaceOnUse/i.test(i) && (s -= c, r -= u, a -= c, l -= u);
8136
- const d = [];
8137
- for (let h = 0; h < e.children.length; h++) {
8138
- const p = e.children[h];
8136
+ const h = [];
8137
+ for (let d = 0; d < e.children.length; d++) {
8138
+ const p = e.children[d];
8139
8139
  let g = p.getAttribute("offset");
8140
8140
  /%/gi.test(g) && (g = parseFloat(g.replace(/%/gi, "")) / 100), g = parseFloat(g);
8141
8141
  let m = p.getAttribute("stop-color"), v = p.getAttribute("stop-opacity"), _ = p.getAttribute("style"), S;
8142
- m === null && (S = _ ? _.match(/stop-color:\s?([#a-fA-F0-9]*)/) : !1, m = S && S.length > 1 ? S[1] : void 0), v === null ? (S = _ ? _.match(/stop-opacity:\s?([0-9.-]*)/) : !1, v = S && S.length > 1 ? parseFloat(S[1]) : 1) : v = parseFloat(v), d.push(new Ni(g, m, v));
8142
+ m === null && (S = _ ? _.match(/stop-color:\s?([#a-fA-F0-9]*)/) : !1, m = S && S.length > 1 ? S[1] : void 0), v === null ? (S = _ ? _.match(/stop-opacity:\s?([0-9.-]*)/) : !1, v = S && S.length > 1 ? parseFloat(S[1]) : 1) : v = parseFloat(v), h.push(new Ni(g, m, v));
8143
8143
  }
8144
- const f = new tt(s, r, o, d, a, l);
8144
+ const f = new tt(s, r, o, h, a, l);
8145
8145
  return f.spread = n, f.units = i, hi.call(this, e, f, t), f;
8146
8146
  },
8147
8147
  text: function(e, t) {
@@ -8357,10 +8357,10 @@ var ea = [], Fa = Math.max, s0 = Math.min, oc = Math.abs, Sr = Math.sin, Tr = Ma
8357
8357
  },
8358
8358
  path: {
8359
8359
  render: function(e, t, i) {
8360
- let n, s, r, o, a, l, c, u, d, f, h, p, g, m, v, _, S, C, b, $, w, M, I, B, Z, Q, N, H, E, J, L, O, K, q;
8360
+ let n, s, r, o, a, l, c, u, h, f, d, p, g, m, v, _, S, C, b, $, w, M, I, B, Z, Q, N, H, E, J, L, O, K, q;
8361
8361
  if (q = this.parent && this.parent._renderer ? this.parent._renderer.opacity : 1, E = this._mask, J = this._clip, a = this._opacity * (q || 1), l = this._visible, !t && (!l || J || a === 0))
8362
8362
  return this;
8363
- if (this._update(), n = this._matrix.elements, s = this._stroke, r = this._linewidth, o = this._fill, c = this._cap, u = this._join, d = this._miter, f = this._closed, h = this._renderer.vertices, p = h.length, g = p - 1, L = $r(n), K = this.dashes, L || (e.save(), e.transform(
8363
+ if (this._update(), n = this._matrix.elements, s = this._stroke, r = this._linewidth, o = this._fill, c = this._cap, u = this._join, h = this._miter, f = this._closed, d = this._renderer.vertices, p = d.length, g = p - 1, L = $r(n), K = this.dashes, L || (e.save(), e.transform(
8364
8364
  n[0],
8365
8365
  n[3],
8366
8366
  n[1],
@@ -8385,17 +8385,17 @@ var ea = [], Fa = Math.max, s0 = Math.min, oc = Math.abs, Sr = Math.sin, Tr = Ma
8385
8385
  const fe = ze.getRendererType(s._renderer.type);
8386
8386
  ze[fe].render.call(s, e, this), e.strokeStyle = s._renderer.effect;
8387
8387
  }
8388
- r && (e.lineWidth = r), d && (e.miterLimit = d), u && (e.lineJoin = u), !f && c && (e.lineCap = c);
8388
+ r && (e.lineWidth = r), h && (e.miterLimit = h), u && (e.lineJoin = u), !f && c && (e.lineCap = c);
8389
8389
  }
8390
8390
  typeof a == "number" && (e.globalAlpha = a), K && K.length > 0 && (e.lineDashOffset = K.offset || 0, e.setLineDash(K)), e.beginPath();
8391
8391
  let ie, V, U, ae, ye, he, ke;
8392
8392
  for (let fe = 0; fe < p; fe++)
8393
- switch (_ = h[fe], N = _.x, H = _.y, _.command) {
8393
+ switch (_ = d[fe], N = _.x, H = _.y, _.command) {
8394
8394
  case ce.close:
8395
8395
  e.closePath();
8396
8396
  break;
8397
8397
  case ce.arc:
8398
- ie = _.rx, V = _.ry, U = _.xAxisRotation, ae = _.largeArcFlag, ye = _.sweepFlag, m = f ? ui(fe - 1, p) : Fa(fe - 1, 0), v = h[m], he = v.x, ke = v.y, ze.renderSvgArcCommand(
8398
+ ie = _.rx, V = _.ry, U = _.xAxisRotation, ae = _.largeArcFlag, ye = _.sweepFlag, m = f ? ui(fe - 1, p) : Fa(fe - 1, 0), v = d[m], he = v.x, ke = v.y, ze.renderSvgArcCommand(
8399
8399
  e,
8400
8400
  he,
8401
8401
  ke,
@@ -8409,7 +8409,7 @@ var ea = [], Fa = Math.max, s0 = Math.min, oc = Math.abs, Sr = Math.sin, Tr = Ma
8409
8409
  );
8410
8410
  break;
8411
8411
  case ce.curve:
8412
- m = f ? ui(fe - 1, p) : Math.max(fe - 1, 0), v = h[m], I = v.controls && v.controls.right || oe.zero, B = _.controls && _.controls.left || oe.zero, v._relative ? (w = I.x + v.x, M = I.y + v.y) : (w = I.x, M = I.y), _._relative ? (b = B.x + _.x, $ = B.y + _.y) : (b = B.x, $ = B.y), e.bezierCurveTo(w, M, b, $, N, H), fe >= g && f && (S = C, Z = _.controls && _.controls.right || oe.zero, Q = S.controls && S.controls.left || oe.zero, _._relative ? (w = Z.x + _.x, M = Z.y + _.y) : (w = Z.x, M = Z.y), S._relative ? (b = Q.x + S.x, $ = Q.y + S.y) : (b = Q.x, $ = Q.y), N = S.x, H = S.y, e.bezierCurveTo(w, M, b, $, N, H));
8412
+ m = f ? ui(fe - 1, p) : Math.max(fe - 1, 0), v = d[m], I = v.controls && v.controls.right || oe.zero, B = _.controls && _.controls.left || oe.zero, v._relative ? (w = I.x + v.x, M = I.y + v.y) : (w = I.x, M = I.y), _._relative ? (b = B.x + _.x, $ = B.y + _.y) : (b = B.x, $ = B.y), e.bezierCurveTo(w, M, b, $, N, H), fe >= g && f && (S = C, Z = _.controls && _.controls.right || oe.zero, Q = S.controls && S.controls.left || oe.zero, _._relative ? (w = Z.x + _.x, M = Z.y + _.y) : (w = Z.x, M = Z.y), S._relative ? (b = Q.x + S.x, $ = Q.y + S.y) : (b = Q.x, $ = Q.y), N = S.x, H = S.y, e.bezierCurveTo(w, M, b, $, N, H));
8413
8413
  break;
8414
8414
  case ce.line:
8415
8415
  e.lineTo(N, H);
@@ -8426,10 +8426,10 @@ var ea = [], Fa = Math.max, s0 = Math.min, oc = Math.abs, Sr = Math.sin, Tr = Ma
8426
8426
  },
8427
8427
  points: {
8428
8428
  render: function(e, t, i) {
8429
- let n, s, r, o, a, l, c, u, d, f, h, p, g, m, v, _;
8429
+ let n, s, r, o, a, l, c, u, h, f, d, p, g, m, v, _;
8430
8430
  if (_ = this.parent && this.parent._renderer ? this.parent._renderer.opacity : 1, a = this._opacity * (_ || 1), l = this._visible, !t && (!l || a === 0))
8431
8431
  return this;
8432
- if (this._update(), n = this._matrix.elements, s = this._stroke, r = this._linewidth, o = this._fill, u = this._renderer.collection, d = u.length, g = $r(n), v = this.dashes, c = this._size, g || (e.save(), e.transform(n[0], n[3], n[1], n[4], n[2], n[5])), o)
8432
+ if (this._update(), n = this._matrix.elements, s = this._stroke, r = this._linewidth, o = this._fill, u = this._renderer.collection, h = u.length, g = $r(n), v = this.dashes, c = this._size, g || (e.save(), e.transform(n[0], n[3], n[1], n[4], n[2], n[5])), o)
8433
8433
  if (typeof o == "string")
8434
8434
  e.fillStyle = o;
8435
8435
  else {
@@ -8448,8 +8448,8 @@ var ea = [], Fa = Math.max, s0 = Math.min, oc = Math.abs, Sr = Math.sin, Tr = Ma
8448
8448
  typeof a == "number" && (e.globalAlpha = a), v && v.length > 0 && (e.lineDashOffset = v.offset || 0, e.setLineDash(v)), e.beginPath();
8449
8449
  let S = c * 0.5, C;
8450
8450
  this._sizeAttenuation || (C = this.worldMatrix.elements, C = Rs(C[0], C[3], C[1], C[4], C[2], C[5]), S /= Math.max(C.scaleX, C.scaleY));
8451
- for (let b = 0; b < d; b++)
8452
- f = u[b], h = f.x, p = f.y, e.moveTo(h + S, p), e.arc(h, p, S, 0, Lt);
8451
+ for (let b = 0; b < h; b++)
8452
+ f = u[b], d = f.x, p = f.y, e.moveTo(d + S, p), e.arc(d, p, S, 0, Lt);
8453
8453
  return i || (ze.isHidden.test(o) || (m = o._renderer && o._renderer.offset, m && (e.save(), e.translate(-o._renderer.offset.x, -o._renderer.offset.y), e.scale(o._renderer.scale.x, o._renderer.scale.y)), e.fill(), m && e.restore()), ze.isHidden.test(s) || (m = s._renderer && s._renderer.offset, m && (e.save(), e.translate(
8454
8454
  -s._renderer.offset.x,
8455
8455
  -s._renderer.offset.y
@@ -8462,7 +8462,7 @@ var ea = [], Fa = Math.max, s0 = Math.min, oc = Math.abs, Sr = Math.sin, Tr = Ma
8462
8462
  if (!t && (!r || a || s === 0))
8463
8463
  return this;
8464
8464
  this._update();
8465
- const l = this._matrix.elements, c = this._stroke, u = this._linewidth, d = this._fill, f = this._decoration, h = this._direction, p = $r(l), g = d._renderer && d._renderer.offset && c._renderer && c._renderer.offset, m = this.dashes, v = ze.alignments[this._alignment] || this._alignment, _ = ze.baselines[this._baseline] || this._baseline;
8465
+ const l = this._matrix.elements, c = this._stroke, u = this._linewidth, h = this._fill, f = this._decoration, d = this._direction, p = $r(l), g = h._renderer && h._renderer.offset && c._renderer && c._renderer.offset, m = this.dashes, v = ze.alignments[this._alignment] || this._alignment, _ = ze.baselines[this._baseline] || this._baseline;
8466
8466
  let S, C, b, $, w, M, I, B, Z, Q, N;
8467
8467
  if (p || (e.save(), e.transform(
8468
8468
  l[0],
@@ -8480,12 +8480,12 @@ var ea = [], Fa = Math.max, s0 = Math.min, oc = Math.abs, Sr = Math.sin, Tr = Ma
8480
8480
  this._weight,
8481
8481
  this._size + "px/" + this._leading + "px",
8482
8482
  this._family
8483
- ].join(" ")), e.textAlign = v, e.textBaseline = _, e.direction = h, d)
8484
- if (typeof d == "string")
8485
- e.fillStyle = d;
8483
+ ].join(" ")), e.textAlign = v, e.textBaseline = _, e.direction = d, h)
8484
+ if (typeof h == "string")
8485
+ e.fillStyle = h;
8486
8486
  else {
8487
- const H = ze.getRendererType(d._renderer.type);
8488
- ze[H].render.call(d, e, this), e.fillStyle = d._renderer.effect;
8487
+ const H = ze.getRendererType(h._renderer.type);
8488
+ ze[H].render.call(h, e, this), e.fillStyle = h._renderer.effect;
8489
8489
  }
8490
8490
  if (c) {
8491
8491
  if (typeof c == "string")
@@ -8496,13 +8496,13 @@ var ea = [], Fa = Math.max, s0 = Math.min, oc = Math.abs, Sr = Math.sin, Tr = Ma
8496
8496
  }
8497
8497
  u && (e.lineWidth = u);
8498
8498
  }
8499
- if (typeof s == "number" && (e.globalAlpha = s), m && m.length > 0 && (e.lineDashOffset = m.offset || 0, e.setLineDash(m)), !a && !i && (ze.isHidden.test(d) || (d._renderer && d._renderer.offset ? (M = d._renderer.scale.x, I = d._renderer.scale.y, e.save(), e.translate(-d._renderer.offset.x, -d._renderer.offset.y), e.scale(M, I), S = this._size / d._renderer.scale.y, C = this._leading / d._renderer.scale.y, e.font = [
8499
+ if (typeof s == "number" && (e.globalAlpha = s), m && m.length > 0 && (e.lineDashOffset = m.offset || 0, e.setLineDash(m)), !a && !i && (ze.isHidden.test(h) || (h._renderer && h._renderer.offset ? (M = h._renderer.scale.x, I = h._renderer.scale.y, e.save(), e.translate(-h._renderer.offset.x, -h._renderer.offset.y), e.scale(M, I), S = this._size / h._renderer.scale.y, C = this._leading / h._renderer.scale.y, e.font = [
8500
8500
  this._style,
8501
8501
  this._weight,
8502
8502
  S + "px/",
8503
8503
  C + "px",
8504
8504
  this._family
8505
- ].join(" "), b = d._renderer.offset.x / d._renderer.scale.x, $ = d._renderer.offset.y / d._renderer.scale.y, e.fillText(this.value, b, $), e.restore()) : e.fillText(this.value, 0, 0)), ze.isHidden.test(c) || (c._renderer && c._renderer.offset ? (M = c._renderer.scale.x, I = c._renderer.scale.y, e.save(), e.translate(
8505
+ ].join(" "), b = h._renderer.offset.x / h._renderer.scale.x, $ = h._renderer.offset.y / h._renderer.scale.y, e.fillText(this.value, b, $), e.restore()) : e.fillText(this.value, 0, 0)), ze.isHidden.test(c) || (c._renderer && c._renderer.offset ? (M = c._renderer.scale.x, I = c._renderer.scale.y, e.save(), e.translate(
8506
8506
  -c._renderer.offset.x,
8507
8507
  -c._renderer.offset.y
8508
8508
  ), e.scale(M, I), S = this._size / c._renderer.scale.y, C = this._leading / c._renderer.scale.y, e.font = [
@@ -8594,7 +8594,7 @@ var ea = [], Fa = Math.max, s0 = Math.min, oc = Math.abs, Sr = Math.sin, Tr = Ma
8594
8594
  },
8595
8595
  renderSvgArcCommand: function(e, t, i, n, s, r, o, a, l, c) {
8596
8596
  a = a * Math.PI / 180, n = oc(n), s = oc(s);
8597
- const u = (t - l) / 2, d = (i - c) / 2, f = Tr(a) * u + Sr(a) * d, h = -Sr(a) * u + Tr(a) * d, p = f * f, g = h * h;
8597
+ const u = (t - l) / 2, h = (i - c) / 2, f = Tr(a) * u + Sr(a) * h, d = -Sr(a) * u + Tr(a) * h, p = f * f, g = d * d;
8598
8598
  let m = n * n, v = s * s;
8599
8599
  const _ = p / m + g / v;
8600
8600
  if (_ > 1) {
@@ -8604,11 +8604,11 @@ var ea = [], Fa = Math.max, s0 = Math.min, oc = Math.abs, Sr = Math.sin, Tr = Ma
8604
8604
  const S = m * g + v * p, C = (m * v - S) / S;
8605
8605
  let b = Zr(Fa(0, C));
8606
8606
  r === o && (b = -b);
8607
- const $ = b * n * h / s, w = -b * s * f / n, M = Tr(a) * $ - Sr(a) * w + (t + l) / 2, I = Sr(a) * $ + Tr(a) * w + (i + c) / 2, B = ac(1, 0, (f - $) / n, (h - w) / s), Z = ac(
8607
+ const $ = b * n * d / s, w = -b * s * f / n, M = Tr(a) * $ - Sr(a) * w + (t + l) / 2, I = Sr(a) * $ + Tr(a) * w + (i + c) / 2, B = ac(1, 0, (f - $) / n, (d - w) / s), Z = ac(
8608
8608
  (f - $) / n,
8609
- (h - w) / s,
8609
+ (d - w) / s,
8610
8610
  (-f - $) / n,
8611
- (-h - w) / s
8611
+ (-d - w) / s
8612
8612
  ) % Lt, Q = B + Z;
8613
8613
  o0(
8614
8614
  e,
@@ -8641,11 +8641,11 @@ var ea = [], Fa = Math.max, s0 = Math.min, oc = Math.abs, Sr = Math.sin, Tr = Ma
8641
8641
  };
8642
8642
  y(Bt, "Utils", ze);
8643
8643
  function o0(e, t, i, n, s, r, o, a, l) {
8644
- const c = o - r, u = Ms.Tolerance.epsilon, d = Math.abs(c) < u;
8644
+ const c = o - r, u = Ms.Tolerance.epsilon, h = Math.abs(c) < u;
8645
8645
  let f = ui(c, Lt);
8646
- f < u && (d ? f = 0 : f = Lt), a === !0 && !d && (f === Lt ? f = -Lt : f = f - Lt);
8647
- for (let h = 0; h < Kt.Resolution; h++) {
8648
- const p = h / (Kt.Resolution - 1), g = r + p * f;
8646
+ f < u && (h ? f = 0 : f = Lt), a === !0 && !h && (f === Lt ? f = -Lt : f = f - Lt);
8647
+ for (let d = 0; d < Kt.Resolution; d++) {
8648
+ const p = d / (Kt.Resolution - 1), g = r + p * f;
8649
8649
  let m = t + n * Math.cos(g), v = i + s * Math.sin(g);
8650
8650
  if (l !== 0) {
8651
8651
  const _ = Math.cos(l), S = Math.sin(l), C = m - t, b = v - i;
@@ -8698,7 +8698,7 @@ var pe = {
8698
8698
  let i = e.length, n = i - 1, s, r = "";
8699
8699
  for (let o = 0; o < i; o++) {
8700
8700
  const a = e[o], l = t ? ui(o - 1, i) : Math.max(o - 1, 0), c = e[l];
8701
- let u, d, f, h, p, g, m, v, _, S, C, b, $, w, M, I = Ve(a.x), B = Ve(a.y);
8701
+ let u, h, f, d, p, g, m, v, _, S, C, b, $, w, M, I = Ve(a.x), B = Ve(a.y);
8702
8702
  switch (a.command) {
8703
8703
  case ce.close:
8704
8704
  u = ce.close;
@@ -8707,7 +8707,7 @@ var pe = {
8707
8707
  C = a.rx, b = a.ry, $ = a.xAxisRotation, w = a.largeArcFlag, M = a.sweepFlag, u = ce.arc + " " + C + " " + b + " " + $ + " " + w + " " + M + " " + I + " " + B;
8708
8708
  break;
8709
8709
  case ce.curve:
8710
- m = c.controls && c.controls.right || oe.zero, v = a.controls && a.controls.left || oe.zero, c.relative ? (f = Ve(m.x + c.x), h = Ve(m.y + c.y)) : (f = Ve(m.x), h = Ve(m.y)), a.relative ? (p = Ve(v.x + a.x), g = Ve(v.y + a.y)) : (p = Ve(v.x), g = Ve(v.y)), u = (o === 0 ? ce.move : ce.curve) + " " + f + " " + h + " " + p + " " + g + " " + I + " " + B;
8710
+ m = c.controls && c.controls.right || oe.zero, v = a.controls && a.controls.left || oe.zero, c.relative ? (f = Ve(m.x + c.x), d = Ve(m.y + c.y)) : (f = Ve(m.x), d = Ve(m.y)), a.relative ? (p = Ve(v.x + a.x), g = Ve(v.y + a.y)) : (p = Ve(v.x), g = Ve(v.y)), u = (o === 0 ? ce.move : ce.curve) + " " + f + " " + d + " " + p + " " + g + " " + I + " " + B;
8711
8711
  break;
8712
8712
  case ce.move:
8713
8713
  s = a, u = ce.move + " " + I + " " + B;
@@ -8715,7 +8715,7 @@ var pe = {
8715
8715
  default:
8716
8716
  u = a.command + " " + I + " " + B;
8717
8717
  }
8718
- o >= n && t && (a.command === ce.curve && (d = s, _ = a.controls && a.controls.right || a, S = d.controls && d.controls.left || d, a.relative ? (f = Ve(_.x + a.x), h = Ve(_.y + a.y)) : (f = Ve(_.x), h = Ve(_.y)), d.relative ? (p = Ve(S.x + d.x), g = Ve(S.y + d.y)) : (p = Ve(S.x), g = Ve(S.y)), I = Ve(d.x), B = Ve(d.y), u += " C " + f + " " + h + " " + p + " " + g + " " + I + " " + B), a.command !== ce.close && (u += " Z")), r += u + " ";
8718
+ o >= n && t && (a.command === ce.curve && (h = s, _ = a.controls && a.controls.right || a, S = h.controls && h.controls.left || h, a.relative ? (f = Ve(_.x + a.x), d = Ve(_.y + a.y)) : (f = Ve(_.x), d = Ve(_.y)), h.relative ? (p = Ve(S.x + h.x), g = Ve(S.y + h.y)) : (p = Ve(S.x), g = Ve(S.y)), I = Ve(h.x), B = Ve(h.y), u += " C " + f + " " + d + " " + p + " " + g + " " + I + " " + B), a.command !== ce.close && (u += " Z")), r += u + " ";
8719
8719
  }
8720
8720
  return r;
8721
8721
  },
@@ -9102,7 +9102,7 @@ var fi = {
9102
9102
  },
9103
9103
  path: {
9104
9104
  updateCanvas: function(e, t) {
9105
- let i, n, s, r, o, a, l, c, u, d, f, h, p, g;
9105
+ let i, n, s, r, o, a, l, c, u, h, f, d, p, g;
9106
9106
  const m = t._renderer.vertices, v = this.canvas, _ = this.ctx, S = e.renderer.ratio, C = lc.copy(t._renderer.scale).multiply(S), b = t._stroke, $ = t._linewidth, w = t._fill, M = t._renderer.opacity || t._opacity, I = t._cap, B = t._join, Z = t._miter, Q = t._closed, N = t.dashes, H = m.length, E = H - 1;
9107
9107
  v.width = Math.max(
9108
9108
  Math.ceil(t._renderer.rect.width * C.x),
@@ -9137,7 +9137,7 @@ var fi = {
9137
9137
  _.save(), _.scale(C.x, C.y), _.translate(L, O), _.beginPath();
9138
9138
  for (let ke = 0; ke < m.length; ke++) {
9139
9139
  const fe = m[ke];
9140
- switch (h = fe.x, p = fe.y, fe.command) {
9140
+ switch (d = fe.x, p = fe.y, fe.command) {
9141
9141
  case ce.close:
9142
9142
  _.closePath();
9143
9143
  break;
@@ -9151,18 +9151,18 @@ var fi = {
9151
9151
  U,
9152
9152
  ae,
9153
9153
  V,
9154
- h,
9154
+ d,
9155
9155
  p
9156
9156
  );
9157
9157
  break;
9158
9158
  case ce.curve:
9159
- i = Q ? ui(ke - 1, H) : Math.max(ke - 1, 0), n = m[i], c = n.controls && n.controls.right || oe.zero, u = fe.controls && fe.controls.left || oe.zero, n._relative ? (a = c.x + n.x, l = c.y + n.y) : (a = c.x, l = c.y), fe._relative ? (r = u.x + fe.x, o = u.y + fe.y) : (r = u.x, o = u.y), _.bezierCurveTo(a, l, r, o, h, p), ke >= E && Q && (s = K, d = fe.controls && fe.controls.right || oe.zero, f = s.controls && s.controls.left || oe.zero, fe._relative ? (a = d.x + fe.x, l = d.y + fe.y) : (a = d.x, l = d.y), s._relative ? (r = f.x + s.x, o = f.y + s.y) : (r = f.x, o = f.y), h = s.x, p = s.y, _.bezierCurveTo(a, l, r, o, h, p));
9159
+ i = Q ? ui(ke - 1, H) : Math.max(ke - 1, 0), n = m[i], c = n.controls && n.controls.right || oe.zero, u = fe.controls && fe.controls.left || oe.zero, n._relative ? (a = c.x + n.x, l = c.y + n.y) : (a = c.x, l = c.y), fe._relative ? (r = u.x + fe.x, o = u.y + fe.y) : (r = u.x, o = u.y), _.bezierCurveTo(a, l, r, o, d, p), ke >= E && Q && (s = K, h = fe.controls && fe.controls.right || oe.zero, f = s.controls && s.controls.left || oe.zero, fe._relative ? (a = h.x + fe.x, l = h.y + fe.y) : (a = h.x, l = h.y), s._relative ? (r = f.x + s.x, o = f.y + s.y) : (r = f.x, o = f.y), d = s.x, p = s.y, _.bezierCurveTo(a, l, r, o, d, p));
9160
9160
  break;
9161
9161
  case ce.line:
9162
- _.lineTo(h, p);
9162
+ _.lineTo(d, p);
9163
9163
  break;
9164
9164
  case ce.move:
9165
- K = fe, _.moveTo(h, p);
9165
+ K = fe, _.moveTo(d, p);
9166
9166
  break;
9167
9167
  }
9168
9168
  }
@@ -9171,9 +9171,9 @@ var fi = {
9171
9171
  getBoundingClientRect: function(e, t, i) {
9172
9172
  let n = 1 / 0, s = -1 / 0, r = 1 / 0, o = -1 / 0, a, l;
9173
9173
  e.forEach(function(c) {
9174
- const u = c.x, d = c.y, f = c.controls;
9175
- let h, p, g, m, v, _;
9176
- r = Math.min(d, r), n = Math.min(u, n), s = Math.max(u, s), o = Math.max(d, o), c.controls && (v = f.left, _ = f.right, !(!v || !_) && (h = c._relative ? v.x + u : v.x, p = c._relative ? v.y + d : v.y, g = c._relative ? _.x + u : _.x, m = c._relative ? _.y + d : _.y, !(!h || !p || !g || !m) && (r = Math.min(p, m, r), n = Math.min(h, g, n), s = Math.max(h, g, s), o = Math.max(p, m, o))));
9174
+ const u = c.x, h = c.y, f = c.controls;
9175
+ let d, p, g, m, v, _;
9176
+ r = Math.min(h, r), n = Math.min(u, n), s = Math.max(u, s), o = Math.max(h, o), c.controls && (v = f.left, _ = f.right, !(!v || !_) && (d = c._relative ? v.x + u : v.x, p = c._relative ? v.y + h : v.y, g = c._relative ? _.x + u : _.x, m = c._relative ? _.y + h : _.y, !(!d || !p || !g || !m) && (r = Math.min(p, m, r), n = Math.min(d, g, n), s = Math.max(d, g, s), o = Math.max(p, m, o))));
9177
9177
  }), typeof t == "number" && (r -= t, n -= t, s += t, o += t), a = s - n, l = o - r, i.top = r, i.left = n, i.right = s, i.bottom = o, i.width = a, i.height = l, i.centroid || (i.centroid = {}), i.centroid.x = -n, i.centroid.y = -r;
9178
9178
  },
9179
9179
  render: function(e, t, i) {
@@ -9187,15 +9187,15 @@ var fi = {
9187
9187
  n._renderer.matrix,
9188
9188
  this._renderer.matrix
9189
9189
  ), this._renderer.scale instanceof oe || (this._renderer.scale = new oe());
9190
- let d, f;
9191
- this._scale instanceof oe ? (d = this._scale.x * n._renderer.scale.x, f = this._scale.y * n._renderer.scale.y) : (d = this._scale * n._renderer.scale.x, f = this._scale * n._renderer.scale.y), this._renderer.scale.x = d < 0 ? -d : d, this._renderer.scale.y = f < 0 ? -f : f, l && (this._renderer.parent = n);
9190
+ let h, f;
9191
+ this._scale instanceof oe ? (h = this._scale.x * n._renderer.scale.x, f = this._scale.y * n._renderer.scale.y) : (h = this._scale * n._renderer.scale.x, f = this._scale * n._renderer.scale.y), this._renderer.scale.x = h < 0 ? -h : h, this._renderer.scale.y = f < 0 ? -f : f, l && (this._renderer.parent = n);
9192
9192
  }
9193
9193
  if (this._mask) {
9194
9194
  e.clear(e.STENCIL_BUFFER_BIT), e.enable(e.STENCIL_TEST), e.stencilFunc(e.ALWAYS, 1, 0), e.stencilOp(e.KEEP, e.KEEP, e.REPLACE), e.colorMask(!1, !1, !1, !1);
9195
- const d = Bt.Utils.getRendererType(
9195
+ const h = Bt.Utils.getRendererType(
9196
9196
  this._mask._renderer.type
9197
9197
  );
9198
- Pe[d].render.call(this._mask, e, t, this), e.stencilFunc(e.EQUAL, 1, 255), e.stencilOp(e.KEEP, e.KEEP, e.KEEP), e.colorMask(!0, !0, !0, !0);
9198
+ Pe[h].render.call(this._mask, e, t, this), e.stencilFunc(e.EQUAL, 1, 255), e.stencilOp(e.KEEP, e.KEEP, e.KEEP), e.colorMask(!0, !0, !0, !0);
9199
9199
  }
9200
9200
  if (c ? (this._renderer.rect || (this._renderer.rect = {}), this._renderer.opacity = this._opacity * n._renderer.opacity, Pe.path.getBoundingClientRect(
9201
9201
  this._renderer.vertices,
@@ -9219,10 +9219,10 @@ var fi = {
9219
9219
  points: {
9220
9220
  updateCanvas: function(e, t) {
9221
9221
  let i;
9222
- const n = this.canvas, s = this.ctx, r = e.renderer.ratio, o = t._stroke, a = t._linewidth, l = t._fill, c = t._renderer.opacity || t._opacity, u = t.dashes, d = t._size * r;
9223
- let f = d;
9222
+ const n = this.canvas, s = this.ctx, r = e.renderer.ratio, o = t._stroke, a = t._linewidth, l = t._fill, c = t._renderer.opacity || t._opacity, u = t.dashes, h = t._size * r;
9223
+ let f = h;
9224
9224
  Pe.isHidden.test(o) || (f += a), n.width = dd(f), n.height = n.width;
9225
- const h = f / n.width, p = n.width / 2, g = n.height / 2;
9225
+ const d = f / n.width, p = n.width / 2, g = n.height / 2;
9226
9226
  if (s.clearRect(0, 0, n.width, n.height), l)
9227
9227
  if (typeof l == "string")
9228
9228
  s.fillStyle = l;
@@ -9241,24 +9241,24 @@ var fi = {
9241
9241
  );
9242
9242
  Pe[m].render.call(o, s, t), s.strokeStyle = o._renderer.effect;
9243
9243
  }
9244
- a && (s.lineWidth = a / h);
9244
+ a && (s.lineWidth = a / d);
9245
9245
  }
9246
- typeof c == "number" && (s.globalAlpha = c), u && u.length > 0 && (s.lineDashOffset = u.offset || 0, s.setLineDash(u)), s.save(), s.translate(p, g), s.scale(Pe.precision, Pe.precision), s.beginPath(), s.arc(0, 0, d / h * 0.5, 0, Lt), s.restore(), closed && s.closePath(), Pe.isHidden.test(l) || (i = l._renderer && l._renderer.offset, i && (s.save(), s.translate(-l._renderer.offset.x, -l._renderer.offset.y), s.scale(l._renderer.scale.x, l._renderer.scale.y)), s.fill(), i && s.restore()), Pe.isHidden.test(o) || (i = o._renderer && o._renderer.offset, i && (s.save(), s.translate(-o._renderer.offset.x, -o._renderer.offset.y), s.scale(o._renderer.scale.x, o._renderer.scale.y), s.lineWidth = a / o._renderer.scale.x), s.stroke(), i && s.restore());
9246
+ typeof c == "number" && (s.globalAlpha = c), u && u.length > 0 && (s.lineDashOffset = u.offset || 0, s.setLineDash(u)), s.save(), s.translate(p, g), s.scale(Pe.precision, Pe.precision), s.beginPath(), s.arc(0, 0, h / d * 0.5, 0, Lt), s.restore(), closed && s.closePath(), Pe.isHidden.test(l) || (i = l._renderer && l._renderer.offset, i && (s.save(), s.translate(-l._renderer.offset.x, -l._renderer.offset.y), s.scale(l._renderer.scale.x, l._renderer.scale.y)), s.fill(), i && s.restore()), Pe.isHidden.test(o) || (i = o._renderer && o._renderer.offset, i && (s.save(), s.translate(-o._renderer.offset.x, -o._renderer.offset.y), s.scale(o._renderer.scale.x, o._renderer.scale.y), s.lineWidth = a / o._renderer.scale.x), s.stroke(), i && s.restore());
9247
9247
  },
9248
9248
  render: function(e, t, i) {
9249
9249
  if (!this._visible || !this._opacity)
9250
9250
  return this;
9251
9251
  this._update();
9252
9252
  let n = this._size;
9253
- const s = i || this.parent, r = t[this._renderer.type], o = this._sizeAttenuation, a = this._stroke, l = this._linewidth, c = s._matrix.manual || s._flagMatrix, u = this._matrix.manual || this._flagMatrix, d = this._renderer.parent !== s, f = this._renderer.vertices, h = this._renderer.collection.length, p = this._flagVertices, g = this._flagFill || this._fill instanceof et && (this._fill._flagSpread || this._fill._flagStops || this._fill._flagEndPoints) || this._fill instanceof tt && (this._fill._flagSpread || this._fill._flagStops || this._fill._flagRadius || this._fill._flagCenter || this._fill._flagFocal) || this._fill instanceof De && (this._fill._flagLoaded && this._fill.loaded || this._fill._flagImage || this._fill._flagVideo || this._fill._flagRepeat || this._fill._flagOffset || this._fill._flagScale) || this._stroke instanceof et && (this._stroke._flagSpread || this._stroke._flagStops || this._stroke._flagEndPoints) || this._stroke instanceof tt && (this._stroke._flagSpread || this._stroke._flagStops || this._stroke._flagRadius || this._stroke._flagCenter || this._stroke._flagFocal) || this._stroke instanceof De && (this._stroke._flagLoaded && this._stroke.loaded || this._stroke._flagImage || this._stroke._flagVideo || this._stroke._flagRepeat || this._stroke._flagOffset || this._fill._flagScale) || this._flagStroke || this._flagLinewidth || this._flagOpacity || s._flagOpacity || this._flagVisible || this._flagScale || this.dashes && this.dashes.length > 0 || !this._renderer.texture;
9254
- if (c || u || d) {
9253
+ const s = i || this.parent, r = t[this._renderer.type], o = this._sizeAttenuation, a = this._stroke, l = this._linewidth, c = s._matrix.manual || s._flagMatrix, u = this._matrix.manual || this._flagMatrix, h = this._renderer.parent !== s, f = this._renderer.vertices, d = this._renderer.collection.length, p = this._flagVertices, g = this._flagFill || this._fill instanceof et && (this._fill._flagSpread || this._fill._flagStops || this._fill._flagEndPoints) || this._fill instanceof tt && (this._fill._flagSpread || this._fill._flagStops || this._fill._flagRadius || this._fill._flagCenter || this._fill._flagFocal) || this._fill instanceof De && (this._fill._flagLoaded && this._fill.loaded || this._fill._flagImage || this._fill._flagVideo || this._fill._flagRepeat || this._fill._flagOffset || this._fill._flagScale) || this._stroke instanceof et && (this._stroke._flagSpread || this._stroke._flagStops || this._stroke._flagEndPoints) || this._stroke instanceof tt && (this._stroke._flagSpread || this._stroke._flagStops || this._stroke._flagRadius || this._stroke._flagCenter || this._stroke._flagFocal) || this._stroke instanceof De && (this._stroke._flagLoaded && this._stroke.loaded || this._stroke._flagImage || this._stroke._flagVideo || this._stroke._flagRepeat || this._stroke._flagOffset || this._fill._flagScale) || this._flagStroke || this._flagLinewidth || this._flagOpacity || s._flagOpacity || this._flagVisible || this._flagScale || this.dashes && this.dashes.length > 0 || !this._renderer.texture;
9254
+ if (c || u || h) {
9255
9255
  this._renderer.matrix || (this._renderer.matrix = new Li(9)), this._matrix.toTransformArray(!0, dn), Pr(
9256
9256
  dn,
9257
9257
  s._renderer.matrix,
9258
9258
  this._renderer.matrix
9259
9259
  ), this._renderer.scale instanceof oe || (this._renderer.scale = new oe());
9260
9260
  let m, v;
9261
- this._scale instanceof oe ? (m = this._scale.x * s._renderer.scale.x, v = this._scale.y * s._renderer.scale.y) : (m = this._scale * s._renderer.scale.x, v = this._scale * s._renderer.scale.y), this._renderer.scale.x = m < 0 ? -m : m, this._renderer.scale.y = v < 0 ? -v : v, d && (this._renderer.parent = s);
9261
+ this._scale instanceof oe ? (m = this._scale.x * s._renderer.scale.x, v = this._scale.y * s._renderer.scale.y) : (m = this._scale * s._renderer.scale.x, v = this._scale * s._renderer.scale.y), this._renderer.scale.x = m < 0 ? -m : m, this._renderer.scale.y = v < 0 ? -v : v, h && (this._renderer.parent = s);
9262
9262
  }
9263
9263
  if (p) {
9264
9264
  const m = this._renderer.positionBuffer;
@@ -9272,12 +9272,12 @@ var fi = {
9272
9272
  e.getUniformLocation(r, "u_resolution"),
9273
9273
  t.resolution.width,
9274
9274
  t.resolution.height
9275
- ), e.bindTexture(e.TEXTURE_2D, this._renderer.texture), e.uniformMatrix3fv(r.matrix, !1, this._renderer.matrix), e.uniform1f(r.size, n * t.resolution.ratio), e.drawArrays(e.POINTS, 0, h), this.flagReset());
9275
+ ), e.bindTexture(e.TEXTURE_2D, this._renderer.texture), e.uniformMatrix3fv(r.matrix, !1, this._renderer.matrix), e.uniform1f(r.size, n * t.resolution.ratio), e.drawArrays(e.POINTS, 0, d), this.flagReset());
9276
9276
  }
9277
9277
  },
9278
9278
  text: {
9279
9279
  updateCanvas: function(e, t) {
9280
- const i = this.canvas, n = this.ctx, s = e.renderer.ratio, r = lc.copy(t._renderer.scale).multiply(s), o = t._stroke, a = t._linewidth, l = t._fill, c = t._renderer.opacity || t._opacity, u = t.dashes, d = t._decoration, f = t._direction;
9280
+ const i = this.canvas, n = this.ctx, s = e.renderer.ratio, r = lc.copy(t._renderer.scale).multiply(s), o = t._stroke, a = t._linewidth, l = t._fill, c = t._renderer.opacity || t._opacity, u = t.dashes, h = t._decoration, f = t._direction;
9281
9281
  i.width = Math.max(
9282
9282
  Math.ceil(t._renderer.rect.width * r.x),
9283
9283
  1
@@ -9285,7 +9285,7 @@ var fi = {
9285
9285
  Math.ceil(t._renderer.rect.height * r.y),
9286
9286
  1
9287
9287
  );
9288
- const h = t._renderer.rect.centroid, p = h.x, g = h.y;
9288
+ const d = t._renderer.rect.centroid, p = d.x, g = d.y;
9289
9289
  let m, v, _, S, C, b, $, w, M, I, B;
9290
9290
  const Z = l._renderer && l._renderer.offset && o._renderer && o._renderer.offset;
9291
9291
  if (n.clearRect(0, 0, i.width, i.height), Z || (n.font = [
@@ -9325,9 +9325,9 @@ var fi = {
9325
9325
  m + "px/",
9326
9326
  v + "px",
9327
9327
  t._family
9328
- ].join(" "), _ = o._renderer.offset.x / o._renderer.scale.x, S = o._renderer.offset.y / o._renderer.scale.y, C = a / o._renderer.scale.x, n.lineWidth = C, n.strokeText(t.value, _, S), n.restore()) : n.strokeText(t.value, 0, 0)), /(underline|strikethrough)/i.test(d)) {
9328
+ ].join(" "), _ = o._renderer.offset.x / o._renderer.scale.x, S = o._renderer.offset.y / o._renderer.scale.y, C = a / o._renderer.scale.x, n.lineWidth = C, n.strokeText(t.value, _, S), n.restore()) : n.strokeText(t.value, 0, 0)), /(underline|strikethrough)/i.test(h)) {
9329
9329
  const Q = n.measureText(t.value);
9330
- switch (d) {
9330
+ switch (h) {
9331
9331
  case "underline":
9332
9332
  M = Q.actualBoundingBoxDescent, B = Q.actualBoundingBoxDescent;
9333
9333
  break;
@@ -9387,8 +9387,8 @@ var fi = {
9387
9387
  n._renderer.matrix,
9388
9388
  this._renderer.matrix
9389
9389
  ), this._renderer.scale instanceof oe || (this._renderer.scale = new oe());
9390
- let u, d;
9391
- this._scale instanceof oe ? (u = this._scale.x * n._renderer.scale.x, d = this._scale.y * n._renderer.scale.y) : (u = this._scale * n._renderer.scale.x, d = this._scale * n._renderer.scale.y), this._renderer.scale.x = u < 0 ? -u : u, this._renderer.scale.y = d < 0 ? -d : d, a && (this._renderer.parent = n);
9390
+ let u, h;
9391
+ this._scale instanceof oe ? (u = this._scale.x * n._renderer.scale.x, h = this._scale.y * n._renderer.scale.y) : (u = this._scale * n._renderer.scale.x, h = this._scale * n._renderer.scale.y), this._renderer.scale.x = u < 0 ? -u : u, this._renderer.scale.y = h < 0 ? -h : h, a && (this._renderer.parent = n);
9392
9392
  }
9393
9393
  if (this._mask) {
9394
9394
  e.clear(e.STENCIL_BUFFER_BIT), e.enable(e.STENCIL_TEST), e.stencilFunc(e.ALWAYS, 1, 0), e.stencilOp(e.KEEP, e.KEEP, e.REPLACE), e.colorMask(!1, !1, !1, !1);
@@ -11038,9 +11038,9 @@ function Ed(e, t, i, n, s, r, o, a, l) {
11038
11038
  if (Math.abs(e - o) < 1e-3 && Math.abs(t - a) < 1e-3)
11039
11039
  return [new Le(o, a)];
11040
11040
  const u = [];
11041
- for (let d = 0; d < c; d++) {
11042
- const f = d / c, h = Qr(f, e, i, s, o), p = Qr(f, t, n, r, a);
11043
- u.push(new Le(h, p));
11041
+ for (let h = 0; h < c; h++) {
11042
+ const f = h / c, d = Qr(f, e, i, s, o), p = Qr(f, t, n, r, a);
11043
+ u.push(new Le(d, p));
11044
11044
  }
11045
11045
  return u;
11046
11046
  }
@@ -11049,28 +11049,28 @@ function _0(e, t, i, n, s, r, o, a, l) {
11049
11049
  const m = o - e, v = a - t;
11050
11050
  return Math.sqrt(m * m + v * v);
11051
11051
  }
11052
- const c = 9 * (i - s) + 3 * (o - e), u = 6 * (e + s) - 12 * i, d = 3 * (i - e), f = 9 * (n - r) + 3 * (a - t), h = 6 * (t + r) - 12 * n, p = 3 * (n - t);
11052
+ const c = 9 * (i - s) + 3 * (o - e), u = 6 * (e + s) - 12 * i, h = 3 * (i - e), f = 9 * (n - r) + 3 * (a - t), d = 6 * (t + r) - 12 * n, p = 3 * (n - t);
11053
11053
  function g(m) {
11054
- const v = (c * m + u) * m + d, _ = (f * m + h) * m + p;
11054
+ const v = (c * m + u) * m + h, _ = (f * m + d) * m + p;
11055
11055
  return Math.sqrt(v * v + _ * _);
11056
11056
  }
11057
11057
  return b0(g, 0, 1, l || Jr.RecursionLimit);
11058
11058
  }
11059
11059
  function y0(e, t, i, n, s, r, o, a) {
11060
11060
  const l = [], c = [[], []];
11061
- let u, d, f, h, p, g, m, v;
11061
+ let u, h, f, d, p, g, m, v;
11062
11062
  for (let b = 0; b < 2; ++b) {
11063
- if (b == 0 ? (d = 6 * e - 12 * i + 6 * s, u = -3 * e + 9 * i - 9 * s + 3 * o, f = 3 * i - 3 * e) : (d = 6 * t - 12 * n + 6 * r, u = -3 * t + 9 * n - 9 * r + 3 * a, f = 3 * n - 3 * t), Math.abs(u) < 1e-12) {
11064
- if (Math.abs(d) < 1e-12)
11063
+ if (b == 0 ? (h = 6 * e - 12 * i + 6 * s, u = -3 * e + 9 * i - 9 * s + 3 * o, f = 3 * i - 3 * e) : (h = 6 * t - 12 * n + 6 * r, u = -3 * t + 9 * n - 9 * r + 3 * a, f = 3 * n - 3 * t), Math.abs(u) < 1e-12) {
11064
+ if (Math.abs(h) < 1e-12)
11065
11065
  continue;
11066
- h = -f / d, 0 < h && h < 1 && l.push(h);
11066
+ d = -f / h, 0 < d && d < 1 && l.push(d);
11067
11067
  continue;
11068
11068
  }
11069
- m = d * d - 4 * f * u, v = Math.sqrt(m), !(m < 0) && (p = (-d + v) / (2 * u), 0 < p && p < 1 && l.push(p), g = (-d - v) / (2 * u), 0 < g && g < 1 && l.push(g));
11069
+ m = h * h - 4 * f * u, v = Math.sqrt(m), !(m < 0) && (p = (-h + v) / (2 * u), 0 < p && p < 1 && l.push(p), g = (-h - v) / (2 * u), 0 < g && g < 1 && l.push(g));
11070
11070
  }
11071
11071
  let _ = l.length, S = _, C;
11072
11072
  for (; _--; )
11073
- h = l[_], C = 1 - h, c[0][_] = C * C * C * e + 3 * C * C * h * i + 3 * C * h * h * s + h * h * h * o, c[1][_] = C * C * C * t + 3 * C * C * h * n + 3 * C * h * h * r + h * h * h * a;
11073
+ d = l[_], C = 1 - d, c[0][_] = C * C * C * e + 3 * C * C * d * i + 3 * C * d * d * s + d * d * d * o, c[1][_] = C * C * C * t + 3 * C * C * d * n + 3 * C * d * d * r + d * d * d * a;
11074
11074
  return c[0][S] = e, c[1][S] = t, c[0][S + 1] = o, c[1][S + 1] = a, c[0].length = c[1].length = S + 2, {
11075
11075
  min: { x: Math.min.apply(0, c[0]), y: Math.min.apply(0, c[1]) },
11076
11076
  max: { x: Math.max.apply(0, c[0]), y: Math.max.apply(0, c[1]) }
@@ -11079,8 +11079,8 @@ function y0(e, t, i, n, s, r, o, a) {
11079
11079
  function b0(e, t, i, n) {
11080
11080
  let s = Jr.abscissas[n - 2], r = Jr.weights[n - 2], o = 0.5 * (i - t), a = o + t, l = 0, c = n + 1 >> 1, u = n & 1 ? r[l++] * e(a) : 0;
11081
11081
  for (; l < c; ) {
11082
- const d = o * s[l];
11083
- u += r[l++] * (e(a + d) + e(a - d));
11082
+ const h = o * s[l];
11083
+ u += r[l++] * (e(a + h) + e(a - h));
11084
11084
  }
11085
11085
  return o * u;
11086
11086
  }
@@ -12375,13 +12375,13 @@ function to(e, t) {
12375
12375
  }
12376
12376
  function wc(e, t, i) {
12377
12377
  let n, s, r, o, a, l, c, u;
12378
- const d = t.controls && t.controls.right, f = e.controls && e.controls.left;
12379
- return n = t.x, a = t.y, s = (d || t).x, l = (d || t).y, r = (f || e).x, c = (f || e).y, o = e.x, u = e.y, d && t._relative && (s += t.x, l += t.y), f && e._relative && (r += e.x, c += e.y), _0(n, a, s, l, r, c, o, u, i);
12378
+ const h = t.controls && t.controls.right, f = e.controls && e.controls.left;
12379
+ return n = t.x, a = t.y, s = (h || t).x, l = (h || t).y, r = (f || e).x, c = (f || e).y, o = e.x, u = e.y, h && t._relative && (s += t.x, l += t.y), f && e._relative && (r += e.x, c += e.y), _0(n, a, s, l, r, c, o, u, i);
12380
12380
  }
12381
12381
  function xc(e, t, i) {
12382
12382
  let n, s, r, o, a, l, c, u;
12383
- const d = t.controls && t.controls.right, f = e.controls && e.controls.left;
12384
- return n = t.x, a = t.y, s = (d || t).x, l = (d || t).y, r = (f || e).x, c = (f || e).y, o = e.x, u = e.y, d && t._relative && (s += t.x, l += t.y), f && e._relative && (r += e.x, c += e.y), Ed(n, a, s, l, r, c, o, u, i);
12383
+ const h = t.controls && t.controls.right, f = e.controls && e.controls.left;
12384
+ return n = t.x, a = t.y, s = (h || t).x, l = (h || t).y, r = (f || e).x, c = (f || e).y, o = e.x, u = e.y, h && t._relative && (s += t.x, l += t.y), f && e._relative && (r += e.x, c += e.y), Ed(n, a, s, l, r, c, o, u, i);
12385
12385
  }
12386
12386
  function es(e) {
12387
12387
  switch (e.renderer.type) {
@@ -12429,8 +12429,8 @@ const A0 = Math.cos, O0 = Math.sin, kc = Math.tan, ta = [], Vt = class Vt extend
12429
12429
  const Z = n[0] || 0, Q = n[1] || 0, N = n[2] || 0;
12430
12430
  return M = w[0] * Z + w[1] * Q + w[2] * N, I = w[3] * Z + w[4] * Q + w[5] * N, B = w[6] * Z + w[7] * Q + w[8] * N, [M, I, B];
12431
12431
  }
12432
- const r = i[0], o = i[1], a = i[2], l = i[3], c = i[4], u = i[5], d = i[6], f = i[7], h = i[8], p = n[0], g = n[1], m = n[2], v = n[3], _ = n[4], S = n[5], C = n[6], b = n[7], $ = n[8];
12433
- return s = s || new cc(9), s[0] = r * p + o * v + a * C, s[1] = r * g + o * _ + a * b, s[2] = r * m + o * S + a * $, s[3] = l * p + c * v + u * C, s[4] = l * g + c * _ + u * b, s[5] = l * m + c * S + u * $, s[6] = d * p + f * v + h * C, s[7] = d * g + f * _ + h * b, s[8] = d * m + f * S + h * $, s;
12432
+ const r = i[0], o = i[1], a = i[2], l = i[3], c = i[4], u = i[5], h = i[6], f = i[7], d = i[8], p = n[0], g = n[1], m = n[2], v = n[3], _ = n[4], S = n[5], C = n[6], b = n[7], $ = n[8];
12433
+ return s = s || new cc(9), s[0] = r * p + o * v + a * C, s[1] = r * g + o * _ + a * b, s[2] = r * m + o * S + a * $, s[3] = l * p + c * v + u * C, s[4] = l * g + c * _ + u * b, s[5] = l * m + c * S + u * $, s[6] = h * p + f * v + d * C, s[7] = h * g + f * _ + d * b, s[8] = h * m + f * S + d * $, s;
12434
12434
  }
12435
12435
  /**
12436
12436
  * @name Two.Matrix.fromObject
@@ -12465,8 +12465,8 @@ const A0 = Math.cos, O0 = Math.sin, kc = Math.tan, ta = [], Vt = class Vt extend
12465
12465
  */
12466
12466
  set(i, n, s, r, o, a, l, c, u) {
12467
12467
  if (typeof n > "u") {
12468
- const d = i;
12469
- i = d[0], n = d[1], s = d[2], r = d[3], o = d[4], a = d[5], l = d[6], c = d[7], u = d[8];
12468
+ const h = i;
12469
+ i = h[0], n = h[1], s = h[2], r = h[3], o = h[4], a = h[5], l = h[6], c = h[7], u = h[8];
12470
12470
  }
12471
12471
  return this.elements[0] = i, this.elements[1] = n, this.elements[2] = s, this.elements[3] = r, this.elements[4] = o, this.elements[5] = a, this.elements[6] = l, this.elements[7] = c, this.elements[8] = u, this.trigger(se.Types.change);
12472
12472
  }
@@ -12526,8 +12526,8 @@ const A0 = Math.cos, O0 = Math.sin, kc = Math.tan, ta = [], Vt = class Vt extend
12526
12526
  const E = o[0] * i + o[1] * n + o[2] * s, J = o[3] * i + o[4] * n + o[5] * s, L = o[6] * i + o[7] * n + o[8] * s;
12527
12527
  return [E, J, L];
12528
12528
  }
12529
- const d = this.elements, f = [i, n, s, r, o, a, l, c, u], h = d[0], p = d[1], g = d[2], m = d[3], v = d[4], _ = d[5], S = d[6], C = d[7], b = d[8], $ = f[0], w = f[1], M = f[2], I = f[3], B = f[4], Z = f[5], Q = f[6], N = f[7], H = f[8];
12530
- return this.elements[0] = h * $ + p * I + g * Q, this.elements[1] = h * w + p * B + g * N, this.elements[2] = h * M + p * Z + g * H, this.elements[3] = m * $ + v * I + _ * Q, this.elements[4] = m * w + v * B + _ * N, this.elements[5] = m * M + v * Z + _ * H, this.elements[6] = S * $ + C * I + b * Q, this.elements[7] = S * w + C * B + b * N, this.elements[8] = S * M + C * Z + b * H, this.trigger(se.Types.change);
12529
+ const h = this.elements, f = [i, n, s, r, o, a, l, c, u], d = h[0], p = h[1], g = h[2], m = h[3], v = h[4], _ = h[5], S = h[6], C = h[7], b = h[8], $ = f[0], w = f[1], M = f[2], I = f[3], B = f[4], Z = f[5], Q = f[6], N = f[7], H = f[8];
12530
+ return this.elements[0] = d * $ + p * I + g * Q, this.elements[1] = d * w + p * B + g * N, this.elements[2] = d * M + p * Z + g * H, this.elements[3] = m * $ + v * I + _ * Q, this.elements[4] = m * w + v * B + _ * N, this.elements[5] = m * M + v * Z + _ * H, this.elements[6] = S * $ + C * I + b * Q, this.elements[7] = S * w + C * B + b * N, this.elements[8] = S * M + C * Z + b * H, this.trigger(se.Types.change);
12531
12531
  }
12532
12532
  /**
12533
12533
  * @name Two.Matrix#inverse
@@ -12538,9 +12538,9 @@ const A0 = Math.cos, O0 = Math.sin, kc = Math.tan, ta = [], Vt = class Vt extend
12538
12538
  inverse(i) {
12539
12539
  const n = this.elements;
12540
12540
  i = i || new Vt();
12541
- const s = n[0], r = n[1], o = n[2], a = n[3], l = n[4], c = n[5], u = n[6], d = n[7], f = n[8], h = f * l - c * d, p = -f * a + c * u, g = d * a - l * u;
12542
- let m = s * h + r * p + o * g;
12543
- return m ? (m = 1 / m, i.elements[0] = h * m, i.elements[1] = (-f * r + o * d) * m, i.elements[2] = (c * r - o * l) * m, i.elements[3] = p * m, i.elements[4] = (f * s - o * u) * m, i.elements[5] = (-c * s + o * a) * m, i.elements[6] = g * m, i.elements[7] = (-d * s + r * u) * m, i.elements[8] = (l * s - r * a) * m, i) : null;
12541
+ const s = n[0], r = n[1], o = n[2], a = n[3], l = n[4], c = n[5], u = n[6], h = n[7], f = n[8], d = f * l - c * h, p = -f * a + c * u, g = h * a - l * u;
12542
+ let m = s * d + r * p + o * g;
12543
+ return m ? (m = 1 / m, i.elements[0] = d * m, i.elements[1] = (-f * r + o * h) * m, i.elements[2] = (c * r - o * l) * m, i.elements[3] = p * m, i.elements[4] = (f * s - o * u) * m, i.elements[5] = (-c * s + o * a) * m, i.elements[6] = g * m, i.elements[7] = (-h * s + r * u) * m, i.elements[8] = (l * s - r * a) * m, i) : null;
12544
12544
  }
12545
12545
  /**
12546
12546
  * @name Two.Matrix#scale
@@ -12616,17 +12616,17 @@ const A0 = Math.cos, O0 = Math.sin, kc = Math.tan, ta = [], Vt = class Vt extend
12616
12616
  * @description Create a transform array. Used for the Two.js rendering APIs.
12617
12617
  */
12618
12618
  toTransformArray(i, n) {
12619
- const s = this.elements, r = !!n, o = s[0], a = s[1], l = s[2], c = s[3], u = s[4], d = s[5];
12619
+ const s = this.elements, r = !!n, o = s[0], a = s[1], l = s[2], c = s[3], u = s[4], h = s[5];
12620
12620
  if (i) {
12621
- const f = s[6], h = s[7], p = s[8];
12621
+ const f = s[6], d = s[7], p = s[8];
12622
12622
  if (r) {
12623
- n[0] = o, n[1] = c, n[2] = f, n[3] = a, n[4] = u, n[5] = h, n[6] = l, n[7] = d, n[8] = p;
12623
+ n[0] = o, n[1] = c, n[2] = f, n[3] = a, n[4] = u, n[5] = d, n[6] = l, n[7] = h, n[8] = p;
12624
12624
  return;
12625
12625
  }
12626
- return [o, c, f, a, u, h, l, d, p];
12626
+ return [o, c, f, a, u, d, l, h, p];
12627
12627
  }
12628
12628
  if (r) {
12629
- n[0] = o, n[1] = c, n[2] = a, n[3] = u, n[4] = l, n[5] = d;
12629
+ n[0] = o, n[1] = c, n[2] = a, n[3] = u, n[4] = l, n[5] = h;
12630
12630
  return;
12631
12631
  }
12632
12632
  return [
@@ -12635,7 +12635,7 @@ const A0 = Math.cos, O0 = Math.sin, kc = Math.tan, ta = [], Vt = class Vt extend
12635
12635
  a,
12636
12636
  u,
12637
12637
  l,
12638
- d
12638
+ h
12639
12639
  // Specific format see LN:19
12640
12640
  ];
12641
12641
  }
@@ -12647,20 +12647,20 @@ const A0 = Math.cos, O0 = Math.sin, kc = Math.tan, ta = [], Vt = class Vt extend
12647
12647
  * @description Create a transform array. Used for the Two.js rendering APIs.
12648
12648
  */
12649
12649
  toArray(i, n) {
12650
- const s = this.elements, r = !!n, o = s[0], a = s[1], l = s[2], c = s[3], u = s[4], d = s[5];
12650
+ const s = this.elements, r = !!n, o = s[0], a = s[1], l = s[2], c = s[3], u = s[4], h = s[5];
12651
12651
  if (i) {
12652
- const f = s[6], h = s[7], p = s[8];
12652
+ const f = s[6], d = s[7], p = s[8];
12653
12653
  if (r) {
12654
- n[0] = o, n[1] = a, n[2] = l, n[3] = c, n[4] = u, n[5] = d, n[6] = f, n[7] = h, n[8] = p;
12654
+ n[0] = o, n[1] = a, n[2] = l, n[3] = c, n[4] = u, n[5] = h, n[6] = f, n[7] = d, n[8] = p;
12655
12655
  return;
12656
12656
  }
12657
- return [o, a, l, c, u, d, f, h, p];
12657
+ return [o, a, l, c, u, h, f, d, p];
12658
12658
  }
12659
12659
  if (r) {
12660
- n[0] = o, n[1] = a, n[2] = l, n[3] = c, n[4] = u, n[5] = d;
12660
+ n[0] = o, n[1] = a, n[2] = l, n[3] = c, n[4] = u, n[5] = h;
12661
12661
  return;
12662
12662
  }
12663
- return [o, a, l, c, u, d];
12663
+ return [o, a, l, c, u, h];
12664
12664
  }
12665
12665
  /**
12666
12666
  * @name Two.Matrix#toObject
@@ -13224,10 +13224,10 @@ const ps = Math.min, gs = Math.max, B0 = Math.ceil, I0 = Math.floor, z0 = new Me
13224
13224
  * @description Return an object with top, left, right, bottom, width, and height parameters of the path.
13225
13225
  */
13226
13226
  getBoundingClientRect(i) {
13227
- let n, s, r, o, a, l, c = 1 / 0, u = -1 / 0, d = 1 / 0, f = -1 / 0;
13227
+ let n, s, r, o, a, l, c = 1 / 0, u = -1 / 0, h = 1 / 0, f = -1 / 0;
13228
13228
  if (this._update(!0), n = i ? this.matrix : this.worldMatrix, s = (this.linewidth || 0) / 2, r = this._renderer.vertices.length, this.linewidth > 0 || this.stroke && !/(transparent|none)/i.test(this.stroke))
13229
13229
  if (this.matrix.manual) {
13230
- const { scaleX: h, scaleY: p } = f0(
13230
+ const { scaleX: d, scaleY: p } = f0(
13231
13231
  n.elements[0],
13232
13232
  n.elements[3],
13233
13233
  n.elements[1],
@@ -13235,7 +13235,7 @@ const ps = Math.min, gs = Math.max, B0 = Math.ceil, I0 = Math.floor, z0 = new Me
13235
13235
  n.elements[2],
13236
13236
  n.elements[5]
13237
13237
  );
13238
- typeof h == "number" && typeof p == "number" && (s = Math.max(h, p) * (this.linewidth || 0) / 2);
13238
+ typeof d == "number" && typeof p == "number" && (s = Math.max(d, p) * (this.linewidth || 0) / 2);
13239
13239
  } else
13240
13240
  s *= typeof this.scale == "number" ? this.scale : Math.max(this.scale.x, this.scale.y);
13241
13241
  if (r <= 0)
@@ -13245,25 +13245,25 @@ const ps = Math.min, gs = Math.max, B0 = Math.ceil, I0 = Math.floor, z0 = new Me
13245
13245
  };
13246
13246
  for (o = 0; o < r; o++) {
13247
13247
  l = this._renderer.vertices[o], a = this._renderer.vertices[(o + r - 1) % r];
13248
- const [h, p] = n.multiply(a.x, a.y), [g, m] = n.multiply(l.x, l.y);
13248
+ const [d, p] = n.multiply(a.x, a.y), [g, m] = n.multiply(l.x, l.y);
13249
13249
  if (a.controls && l.controls) {
13250
13250
  let v = a.controls.right.x, _ = a.controls.right.y;
13251
13251
  a.relative && (v += a.x, _ += a.y);
13252
13252
  let [S, C] = n.multiply(v, _), b = l.controls.left.x, $ = l.controls.left.y;
13253
13253
  l.relative && (b += l.x, $ += l.y);
13254
13254
  let [w, M] = n.multiply(b, $);
13255
- const I = y0(h, p, S, C, w, M, g, m);
13256
- d = ps(I.min.y - s, d), c = ps(I.min.x - s, c), u = gs(I.max.x + s, u), f = gs(I.max.y + s, f);
13255
+ const I = y0(d, p, S, C, w, M, g, m);
13256
+ h = ps(I.min.y - s, h), c = ps(I.min.x - s, c), u = gs(I.max.x + s, u), f = gs(I.max.y + s, f);
13257
13257
  } else
13258
- o <= 1 && (d = ps(p - s, d), c = ps(h - s, c), u = gs(h + s, u), f = gs(p + s, f)), d = ps(m - s, d), c = ps(g - s, c), u = gs(g + s, u), f = gs(m + s, f);
13258
+ o <= 1 && (h = ps(p - s, h), c = ps(d - s, c), u = gs(d + s, u), f = gs(p + s, f)), h = ps(m - s, h), c = ps(g - s, c), u = gs(g + s, u), f = gs(m + s, f);
13259
13259
  }
13260
13260
  return {
13261
- top: d,
13261
+ top: h,
13262
13262
  left: c,
13263
13263
  right: u,
13264
13264
  bottom: f,
13265
13265
  width: u - c,
13266
- height: f - d
13266
+ height: f - h
13267
13267
  };
13268
13268
  }
13269
13269
  /**
@@ -13275,7 +13275,7 @@ const ps = Math.min, gs = Math.max, B0 = Math.ceil, I0 = Math.floor, z0 = new Me
13275
13275
  * @description Given a float `t` from 0 to 1, return a point or assign a passed `obj`'s coordinates to that percentage on this {@link Two.Path}'s curve.
13276
13276
  */
13277
13277
  getPointAt(i, n) {
13278
- let s, r, o, a, l, c, u, d, f, h, p, g, m, v, _, S = this.length * Math.min(Math.max(i, 0), 1);
13278
+ let s, r, o, a, l, c, u, h, f, d, p, g, m, v, _, S = this.length * Math.min(Math.max(i, 0), 1);
13279
13279
  const C = this.vertices.length, b = C - 1;
13280
13280
  let $ = null, w = null;
13281
13281
  for (let O = 0, K = this._lengths.length, q = 0; O < K; O++) {
@@ -13291,8 +13291,8 @@ const ps = Math.min, gs = Math.max, B0 = Math.ceil, I0 = Math.floor, z0 = new Me
13291
13291
  if (!w)
13292
13292
  return $;
13293
13293
  } else return w;
13294
- _ = w.controls && w.controls.right, v = $.controls && $.controls.left, l = w.x, h = w.y, c = (_ || w).x, p = (_ || w).y, u = (v || $).x, g = (v || $).y, d = $.x, m = $.y, _ && w.relative && (c += w.x, p += w.y), v && $.relative && (u += $.x, g += $.y), a = Qr(i, l, c, u, d), f = Qr(i, h, p, g, m);
13295
- const M = Fi(l, c, i), I = Fi(h, p, i), B = Fi(c, u, i), Z = Fi(p, g, i), Q = Fi(u, d, i), N = Fi(g, m, i), H = Fi(M, B, i), E = Fi(I, Z, i), J = Fi(B, Q, i), L = Fi(Z, N, i);
13294
+ _ = w.controls && w.controls.right, v = $.controls && $.controls.left, l = w.x, d = w.y, c = (_ || w).x, p = (_ || w).y, u = (v || $).x, g = (v || $).y, h = $.x, m = $.y, _ && w.relative && (c += w.x, p += w.y), v && $.relative && (u += $.x, g += $.y), a = Qr(i, l, c, u, h), f = Qr(i, d, p, g, m);
13295
+ const M = Fi(l, c, i), I = Fi(d, p, i), B = Fi(c, u, i), Z = Fi(p, g, i), Q = Fi(u, h, i), N = Fi(g, m, i), H = Fi(M, B, i), E = Fi(I, Z, i), J = Fi(B, Q, i), L = Fi(Z, N, i);
13296
13296
  return Qe.isObject(n) ? (n.x = a, n.y = f, n instanceof Le && (n.controls.left.x = H, n.controls.left.y = E, n.controls.right.x = J, n.controls.right.y = L, (typeof n.relative != "boolean" || n.relative) && (n.controls.left.x -= a, n.controls.left.y -= f, n.controls.right.x -= a, n.controls.right.y -= f)), n.t = i, n) : (o = new Le(
13297
13297
  a,
13298
13298
  f,
@@ -13337,10 +13337,10 @@ const ps = Math.min, gs = Math.max, B0 = Math.ceil, I0 = Math.floor, z0 = new Me
13337
13337
  o.push(new Le(r.x, r.y)), c > 0 && (o[o.length - 1].command = Se.line), r = l;
13338
13338
  return;
13339
13339
  }
13340
- a = xc(l, r, i), o = o.concat(a), Qe.each(a, function(u, d) {
13341
- d <= 0 && r.command === Se.move ? u.command = Se.move : u.command = Se.line;
13342
- }), c >= n && (this._closed && this._automatic && (r = l, a = xc(l, r, i), o = o.concat(a), Qe.each(a, function(u, d) {
13343
- d <= 0 && r.command === Se.move ? u.command = Se.move : u.command = Se.line;
13340
+ a = xc(l, r, i), o = o.concat(a), Qe.each(a, function(u, h) {
13341
+ h <= 0 && r.command === Se.move ? u.command = Se.move : u.command = Se.line;
13342
+ }), c >= n && (this._closed && this._automatic && (r = l, a = xc(l, r, i), o = o.concat(a), Qe.each(a, function(u, h) {
13343
+ h <= 0 && r.command === Se.move ? u.command = Se.move : u.command = Se.line;
13344
13344
  })), o.push(new Le(l.x, l.y)), o[o.length - 1].command = s ? Se.close : Se.line), r = l;
13345
13345
  },
13346
13346
  this
@@ -13382,10 +13382,10 @@ const ps = Math.min, gs = Math.max, B0 = Math.ceil, I0 = Math.floor, z0 = new Me
13382
13382
  if (this._flagVertices) {
13383
13383
  this._automatic && this.plot(), this._flagLength && this._updateLength(void 0, !0);
13384
13384
  const i = this._collection.length, n = this._closed, s = Math.min(this._beginning, this._ending), r = Math.max(this._beginning, this._ending), o = to(this, s * this._length), a = to(this, r * this._length), l = B0(o), c = I0(a);
13385
- let u, d, f, h, p, g;
13385
+ let u, h, f, d, p, g;
13386
13386
  for (this._renderer.vertices.length = 0, g = 0; g < i; g++)
13387
- this._renderer.collection.length <= g && this._renderer.collection.push(new Le()), g > c && !d ? (p = this._renderer.collection[g].copy(this._collection[g]), this.getPointAt(r, p), p.command = this._renderer.collection[g].command, this._renderer.vertices.push(p), d = p, f = this._collection[g - 1], f && f.controls && (p.relative ? p.controls.right.clear() : p.controls.right.copy(p), f.relative ? this._renderer.collection[g - 1].controls.right.copy(f.controls.right).lerp(Me.zero, 1 - p.t) : this._renderer.collection[g - 1].controls.right.copy(f.controls.right).lerp(f, 1 - p.t))) : g >= l && g <= c && (p = this._renderer.collection[g].copy(this._collection[g]), this._renderer.vertices.push(p), g === c && bc(this, r) ? (d = p, !n && d.controls && (d.relative ? d.controls.right.clear() : d.controls.right.copy(d))) : g === l && bc(this, s) && (u = p, u.command = Se.move, !n && u.controls && (u.relative ? u.controls.left.clear() : u.controls.left.copy(u))));
13388
- l > 0 && !u && (g = l - 1, p = this._renderer.collection[g].copy(this._collection[g]), this.getPointAt(s, p), p.command = Se.move, this._renderer.vertices.unshift(p), h = this._collection[g + 1], h && h.controls && (p.controls.left.clear(), h.relative ? this._renderer.collection[g + 1].controls.left.copy(h.controls.left).lerp(Me.zero, p.t) : (z0.copy(h), this._renderer.collection[g + 1].controls.left.copy(h.controls.left).lerp(h, p.t))));
13387
+ this._renderer.collection.length <= g && this._renderer.collection.push(new Le()), g > c && !h ? (p = this._renderer.collection[g].copy(this._collection[g]), this.getPointAt(r, p), p.command = this._renderer.collection[g].command, this._renderer.vertices.push(p), h = p, f = this._collection[g - 1], f && f.controls && (p.relative ? p.controls.right.clear() : p.controls.right.copy(p), f.relative ? this._renderer.collection[g - 1].controls.right.copy(f.controls.right).lerp(Me.zero, 1 - p.t) : this._renderer.collection[g - 1].controls.right.copy(f.controls.right).lerp(f, 1 - p.t))) : g >= l && g <= c && (p = this._renderer.collection[g].copy(this._collection[g]), this._renderer.vertices.push(p), g === c && bc(this, r) ? (h = p, !n && h.controls && (h.relative ? h.controls.right.clear() : h.controls.right.copy(h))) : g === l && bc(this, s) && (u = p, u.command = Se.move, !n && u.controls && (u.relative ? u.controls.left.clear() : u.controls.left.copy(u))));
13388
+ l > 0 && !u && (g = l - 1, p = this._renderer.collection[g].copy(this._collection[g]), this.getPointAt(s, p), p.command = Se.move, this._renderer.vertices.unshift(p), d = this._collection[g + 1], d && d.controls && (p.controls.left.clear(), d.relative ? this._renderer.collection[g + 1].controls.left.copy(d.controls.left).lerp(Me.zero, p.t) : (z0.copy(d), this._renderer.collection[g + 1].controls.left.copy(d.controls.left).lerp(d, p.t))));
13389
13389
  }
13390
13390
  return sn.prototype._update.apply(this, arguments), this;
13391
13391
  }
@@ -13759,8 +13759,8 @@ const L0 = Math.ceil, D0 = Math.floor, Bi = class Bi extends sn {
13759
13759
  const r = this.vertices[s], o = this.vertices[s - 1];
13760
13760
  if (!o)
13761
13761
  continue;
13762
- const a = r.x, l = r.y, c = o.x, u = o.y, d = Ed(a, l, a, l, c, u, c, u, i);
13763
- n = n.concat(d);
13762
+ const a = r.x, l = r.y, c = o.x, u = o.y, h = Ed(a, l, a, l, c, u, c, u, i);
13763
+ n = n.concat(h);
13764
13764
  }
13765
13765
  return this.vertices = n, this;
13766
13766
  }
@@ -13962,7 +13962,7 @@ co = new WeakMap();
13962
13962
  const qi = class qi extends He {
13963
13963
  constructor(i, n, s, r, o, a, l) {
13964
13964
  const c = l || Aa.Resolution * 3, u = [];
13965
- for (let d = 0; d < c; d++)
13965
+ for (let h = 0; h < c; h++)
13966
13966
  u.push(new Le());
13967
13967
  super(u, !0, !1, !0);
13968
13968
  /**
@@ -14014,8 +14014,8 @@ const qi = class qi extends He {
14014
14014
  */
14015
14015
  k(this, "_outerRadius", 0);
14016
14016
  this._renderer.type = "arc-segment";
14017
- for (let d in Tc)
14018
- Object.defineProperty(this, d, Tc[d]);
14017
+ for (let h in Tc)
14018
+ Object.defineProperty(this, h, Tc[h]);
14019
14019
  typeof s == "number" && (this.innerRadius = s), typeof r == "number" && (this.outerRadius = r), typeof o == "number" && (this.startAngle = o), typeof a == "number" && (this.endAngle = a), this._update(), typeof i == "number" && (this.translation.x = i), typeof n == "number" && (this.translation.y = n);
14020
14020
  }
14021
14021
  /**
@@ -14055,22 +14055,22 @@ const qi = class qi extends He {
14055
14055
  _update() {
14056
14056
  if (this._flagVertices || this._flagStartAngle || this._flagEndAngle || this._flagInnerRadius || this._flagOuterRadius) {
14057
14057
  const i = this._startAngle, n = this._endAngle, s = this._innerRadius, r = this._outerRadius, o = Fs(i, Vn) === Fs(n, Vn), a = s > 0, l = this.vertices;
14058
- let c = a ? l.length / 2 : l.length, u, d = 0, f, h, p, g, m, v, _, S, C;
14059
- for (o ? c-- : a || (c -= 2), f = 0, h = c - 1; f < c; f++) {
14060
- switch (p = f / h, g = l[d], m = p * (n - i) + i, v = (n - i) / c, _ = r * Math.cos(m), S = r * Math.sin(m), f) {
14058
+ let c = a ? l.length / 2 : l.length, u, h = 0, f, d, p, g, m, v, _, S, C;
14059
+ for (o ? c-- : a || (c -= 2), f = 0, d = c - 1; f < c; f++) {
14060
+ switch (p = f / d, g = l[h], m = p * (n - i) + i, v = (n - i) / c, _ = r * Math.cos(m), S = r * Math.sin(m), f) {
14061
14061
  case 0:
14062
14062
  u = Se.move;
14063
14063
  break;
14064
14064
  default:
14065
14065
  u = Se.curve;
14066
14066
  }
14067
- g.command = u, g.x = _, g.y = S, g.controls.left.clear(), g.controls.right.clear(), g.command === Se.curve && (C = r * v / Math.PI, g.controls.left.x = C * Math.cos(m - St), g.controls.left.y = C * Math.sin(m - St), g.controls.right.x = C * Math.cos(m + St), g.controls.right.y = C * Math.sin(m + St), f === 1 && g.controls.left.multiplyScalar(2), f === h && g.controls.right.multiplyScalar(2)), d++;
14067
+ g.command = u, g.x = _, g.y = S, g.controls.left.clear(), g.controls.right.clear(), g.command === Se.curve && (C = r * v / Math.PI, g.controls.left.x = C * Math.cos(m - St), g.controls.left.y = C * Math.sin(m - St), g.controls.right.x = C * Math.cos(m + St), g.controls.right.y = C * Math.sin(m + St), f === 1 && g.controls.left.multiplyScalar(2), f === d && g.controls.right.multiplyScalar(2)), h++;
14068
14068
  }
14069
14069
  if (a) {
14070
- for (o ? (l[d].command = Se.close, d++) : (c--, h = c - 1), f = 0; f < c; f++)
14071
- p = f / h, g = l[d], m = (1 - p) * (n - i) + i, v = (n - i) / c, _ = s * Math.cos(m), S = s * Math.sin(m), u = Se.curve, f <= 0 && (u = o ? Se.move : Se.line), g.command = u, g.x = _, g.y = S, g.controls.left.clear(), g.controls.right.clear(), g.command === Se.curve && (C = s * v / Math.PI, g.controls.left.x = C * Math.cos(m + St), g.controls.left.y = C * Math.sin(m + St), g.controls.right.x = C * Math.cos(m - St), g.controls.right.y = C * Math.sin(m - St), f === 1 && g.controls.left.multiplyScalar(2), f === h && g.controls.right.multiplyScalar(2)), d++;
14072
- l[d].copy(l[0]), l[d].command = Se.line;
14073
- } else o || (l[d].command = Se.line, l[d].x = 0, l[d].y = 0, d++, l[d].copy(l[0]), l[d].command = Se.line);
14070
+ for (o ? (l[h].command = Se.close, h++) : (c--, d = c - 1), f = 0; f < c; f++)
14071
+ p = f / d, g = l[h], m = (1 - p) * (n - i) + i, v = (n - i) / c, _ = s * Math.cos(m), S = s * Math.sin(m), u = Se.curve, f <= 0 && (u = o ? Se.move : Se.line), g.command = u, g.x = _, g.y = S, g.controls.left.clear(), g.controls.right.clear(), g.command === Se.curve && (C = s * v / Math.PI, g.controls.left.x = C * Math.cos(m + St), g.controls.left.y = C * Math.sin(m + St), g.controls.right.x = C * Math.cos(m - St), g.controls.right.y = C * Math.sin(m - St), f === 1 && g.controls.left.multiplyScalar(2), f === d && g.controls.right.multiplyScalar(2)), h++;
14072
+ l[h].copy(l[0]), l[h].command = Se.line;
14073
+ } else o || (l[h].command = Se.line, l[h].x = 0, l[h].y = 0, h++, l[h].copy(l[0]), l[h].command = Se.line);
14074
14074
  }
14075
14075
  return super._update.call(this), this;
14076
14076
  }
@@ -14221,8 +14221,8 @@ const Tc = {
14221
14221
  !this._closed && i > 2 && (i -= 1);
14222
14222
  const n = 4 / 3 * Math.tan(Math.PI / (i * 2)), s = this._radius, r = s * n;
14223
14223
  for (let o = 0; o < this.vertices.length; o++) {
14224
- const l = o / i * Vn, c = s * ia(l), u = s * na(l), d = r * ia(l - St), f = r * na(l - St), h = r * ia(l + St), p = r * na(l + St), g = this.vertices[o];
14225
- g.command = o === 0 ? Se.move : Se.curve, g.set(c, u), g.controls.left.set(d, f), g.controls.right.set(h, p);
14224
+ const l = o / i * Vn, c = s * ia(l), u = s * na(l), h = r * ia(l - St), f = r * na(l - St), d = r * ia(l + St), p = r * na(l + St), g = this.vertices[o];
14225
+ g.command = o === 0 ? Se.move : Se.curve, g.set(c, u), g.controls.left.set(h, f), g.controls.right.set(d, p);
14226
14226
  }
14227
14227
  }
14228
14228
  return super._update.call(this), this;
@@ -14360,8 +14360,8 @@ const $c = {
14360
14360
  !this._closed && i > 2 && (i -= 1);
14361
14361
  const n = 4 / 3 * Math.tan(Math.PI / (this.vertices.length * 2)), s = this._width / 2, r = this._height / 2;
14362
14362
  for (let o = 0; o < this.vertices.length; o++) {
14363
- const l = o / i * Vn, c = s * sa(l), u = r * ra(l), d = s * n * sa(l - St), f = r * n * ra(l - St), h = s * n * sa(l + St), p = r * n * ra(l + St), g = this.vertices[o];
14364
- g.command = o === 0 ? Se.move : Se.curve, g.set(c, u), g.controls.left.set(d, f), g.controls.right.set(h, p);
14363
+ const l = o / i * Vn, c = s * sa(l), u = r * ra(l), h = s * n * sa(l - St), f = r * n * ra(l - St), d = s * n * sa(l + St), p = r * n * ra(l + St), g = this.vertices[o];
14364
+ g.command = o === 0 ? Se.move : Se.curve, g.set(c, u), g.controls.left.set(h, f), g.controls.right.set(d, p);
14365
14365
  }
14366
14366
  }
14367
14367
  return super._update.call(this), this;
@@ -15459,8 +15459,8 @@ const At = class At extends sn {
15459
15459
  default:
15460
15460
  o = -(c + u), a = u;
15461
15461
  }
15462
- const [d, f] = n.multiply(s, o), [h, p] = n.multiply(s, a), [g, m] = n.multiply(r, o), [v, _] = n.multiply(r, a);
15463
- return o = Ac(f, p, m, _), s = Ac(d, h, g, v), r = Oc(d, h, g, v), a = Oc(f, p, m, _), {
15462
+ const [h, f] = n.multiply(s, o), [d, p] = n.multiply(s, a), [g, m] = n.multiply(r, o), [v, _] = n.multiply(r, a);
15463
+ return o = Ac(f, p, m, _), s = Ac(h, d, g, v), r = Oc(h, d, g, v), a = Oc(f, p, m, _), {
15464
15464
  top: o,
15465
15465
  left: s,
15466
15466
  right: r,
@@ -16054,25 +16054,25 @@ const Mr = Math.min, Fr = Math.max, en = class en extends sn {
16054
16054
  getBoundingClientRect(i) {
16055
16055
  let n, s, r, o, a, l;
16056
16056
  this._update(!0);
16057
- let c = 1 / 0, u = -1 / 0, d = 1 / 0, f = -1 / 0;
16058
- const h = /texture|gradient/i;
16057
+ let c = 1 / 0, u = -1 / 0, h = 1 / 0, f = -1 / 0;
16058
+ const d = /texture|gradient/i;
16059
16059
  s = i ? this.matrix : this.worldMatrix;
16060
16060
  for (let p = 0; p < this.children.length; p++) {
16061
16061
  const g = this.children[p];
16062
- if (!(!g.visible || h.test(g._renderer.type)) && (n = g.getBoundingClientRect(i), r = typeof n.top != "number" || Qe.isNaN(n.top) || !isFinite(n.top), o = typeof n.left != "number" || Qe.isNaN(n.left) || !isFinite(n.left), a = typeof n.right != "number" || Qe.isNaN(n.right) || !isFinite(n.right), l = typeof n.bottom != "number" || Qe.isNaN(n.bottom) || !isFinite(n.bottom), !(r || o || a || l)))
16062
+ if (!(!g.visible || d.test(g._renderer.type)) && (n = g.getBoundingClientRect(i), r = typeof n.top != "number" || Qe.isNaN(n.top) || !isFinite(n.top), o = typeof n.left != "number" || Qe.isNaN(n.left) || !isFinite(n.left), a = typeof n.right != "number" || Qe.isNaN(n.right) || !isFinite(n.right), l = typeof n.bottom != "number" || Qe.isNaN(n.bottom) || !isFinite(n.bottom), !(r || o || a || l)))
16063
16063
  if (i) {
16064
16064
  const [m, v] = s.multiply(n.left, n.top), [_, S] = s.multiply(n.right, n.top), [C, b] = s.multiply(n.left, n.bottom), [$, w] = s.multiply(n.right, n.bottom);
16065
- d = Mr(v, S, b, w, d), c = Mr(m, _, C, $, c), u = Fr(m, _, C, $, u), f = Fr(v, S, b, w, f);
16065
+ h = Mr(v, S, b, w, h), c = Mr(m, _, C, $, c), u = Fr(m, _, C, $, u), f = Fr(v, S, b, w, f);
16066
16066
  } else
16067
- d = Mr(n.top, d), c = Mr(n.left, c), u = Fr(n.right, u), f = Fr(n.bottom, f);
16067
+ h = Mr(n.top, h), c = Mr(n.left, c), u = Fr(n.right, u), f = Fr(n.bottom, f);
16068
16068
  }
16069
16069
  return {
16070
- top: d,
16070
+ top: h,
16071
16071
  left: c,
16072
16072
  right: u,
16073
16073
  bottom: f,
16074
16074
  width: u - c,
16075
- height: f - d
16075
+ height: f - h
16076
16076
  };
16077
16077
  }
16078
16078
  /**
@@ -16536,12 +16536,12 @@ const st = {
16536
16536
  let r = [], o = [], a = [], l = null;
16537
16537
  const c = 0.75, u = z(
16538
16538
  () => i.value.configuratorParams.linesAngles.map((L, O) => new Ss(i.value.configuratorParams.linesWidths[O], L, `A-${O + 1}`))
16539
- ), d = z(() => i.value.configuratorParams.colorSide === "bottom"), f = z(
16539
+ ), h = z(() => i.value.configuratorParams.colorSide === "bottom"), f = z(
16540
16540
  () => {
16541
16541
  var L, O;
16542
16542
  return i.value.configuratorParams.startTailType && ((L = i.settings.startTailConfigs) != null && L[i.value.configuratorParams.startTailType]) ? (O = i.settings.startTailConfigs) == null ? void 0 : O[i.value.configuratorParams.startTailType].points : [];
16543
16543
  }
16544
- ), h = z(
16544
+ ), d = z(
16545
16545
  () => {
16546
16546
  var L, O;
16547
16547
  return i.value.configuratorParams.endTailType && ((L = i.settings.endTailConfigs) != null && L[i.value.configuratorParams.endTailType]) ? (O = i.settings.endTailConfigs) == null ? void 0 : O[i.value.configuratorParams.endTailType].points : [];
@@ -16631,7 +16631,7 @@ const st = {
16631
16631
  let ae;
16632
16632
  U.size = st.lineLabel.size, U.weight = 600, U.fill = st.lineLabel.color, U.id += 1, U.rotation = st.lineLabel.rotation, q > 0 && (ae = new Cs(`${L.angle}°`, O.vertices[0].x + 25, O.vertices[0].y - 25), ae.size = st.angleLabel.size, ae.weight = 600, ae.fill = st.angleLabel.color, ae.rotation = st.angleLabel.rotation, ae.id += q, r.push(ae), K.add(ae)), K.add(U), I(U, O, 0, ae), I(U, O, 1);
16633
16633
  }, M = () => {
16634
- const { size: L } = st.colorSideLabel, O = 0, K = 0, q = d.value ? L / 2 : L / 2 - L, ie = d.value ? L / 2 - L : L / 2, V = new tn();
16634
+ const { size: L } = st.colorSideLabel, O = 0, K = 0, q = h.value ? L / 2 : L / 2 - L, ie = h.value ? L / 2 - L : L / 2, V = new tn();
16635
16635
  if (!l)
16636
16636
  return V;
16637
16637
  const U = 5, ae = Math.atan2(ie - q, K - O), ye = [
@@ -16642,10 +16642,10 @@ const st = {
16642
16642
  new Le(K - U * Math.cos(ae + Math.PI / 4), ie - U * Math.sin(ae + Math.PI / 4), 0, 0, 0, 0, xe.Commands.line)
16643
16643
  ], he = new He(ye, !1, !1, !0);
16644
16644
  he.noFill(), he.cap = "round", he.join = "round", he.linewidth = L / 7, he.stroke = st.colorSideLabel.color, V.add(he);
16645
- const ke = new Cs(d.value ? "Цвет снизу" : "Цвет сверху", 10, 0);
16645
+ const ke = new Cs(h.value ? "Цвет снизу" : "Цвет сверху", 10, 0);
16646
16646
  ke.size = L, ke.weight = 600, ke.fill = st.colorSideLabel.color, ke.alignment = "left", V.add(ke);
16647
16647
  const fe = V.getBoundingClientRect();
16648
- return V.position.x = (l.width - fe.width) * c + 10, V.position.y = d.value ? l.height + fe.height * 2 : fe.height / 2, V;
16648
+ return V.position.x = (l.width - fe.width) * c + 10, V.position.y = h.value ? l.height + fe.height * 2 : fe.height / 2, V;
16649
16649
  }, I = (L, O, K, q) => {
16650
16650
  O.vertices[K].bind(se.Types.change, () => {
16651
16651
  const ie = O.vertices.length - 1, V = Math.atan2(O.vertices[0].y - O.vertices[ie].y, O.vertices[0].x - O.vertices[ie].x) * 180 / Math.PI, U = O.vertices[0].x + (O.vertices[ie].x - O.vertices[0].x) / 2 - 8 * Math.sin(V * Math.PI / 180), ae = O.vertices[0].y + (O.vertices[ie].y - O.vertices[0].y) / 2 - 8 * Math.cos(V * Math.PI / 180);
@@ -16689,7 +16689,7 @@ const st = {
16689
16689
  K.appendTo(L), B(K, [], O.points, [], !0);
16690
16690
  }
16691
16691
  }, Q = () => {
16692
- l && B(l, f.value, u.value, h.value, !1);
16692
+ l && B(l, f.value, u.value, d.value, !1);
16693
16693
  }, N = (L) => L * (180 / Math.PI), H = (L, O) => {
16694
16694
  const K = L[1].x - L[0].x, q = L[1].y - L[0].y, ie = O[1].x - O[0].x, V = O[1].y - O[0].y;
16695
16695
  let U = Math.atan2(K * V - q * ie, K * ie + q * V);
@@ -16719,7 +16719,7 @@ const st = {
16719
16719
  L,
16720
16720
  f.value,
16721
16721
  u.value.map((ye) => ye),
16722
- h.value
16722
+ d.value
16723
16723
  );
16724
16724
  }, ie = (ae) => {
16725
16725
  if (O) {
@@ -16776,10 +16776,10 @@ const st = {
16776
16776
  quantity: {},
16777
16777
  marker: {},
16778
16778
  length: {}
16779
- }), d = W(0), f = (b = 0) => {
16779
+ }), h = W(0), f = (b = 0) => {
16780
16780
  const $ = l.value.allTemplates.at(b);
16781
- $ !== void 0 && (d.value = b, a.value.configuratorParams.linesWidths = $.points.map((w) => Dt(w) ? w[0] : w.width), a.value.configuratorParams.linesAngles = $.points.map((w) => Dt(w) ? w[1] : w.angle), v()), g(a.value.configuratorParams);
16782
- }, h = async () => {
16781
+ $ !== void 0 && (h.value = b, a.value.configuratorParams.linesWidths = $.points.map((w) => Dt(w) ? w[0] : w.width), a.value.configuratorParams.linesAngles = $.points.map((w) => Dt(w) ? w[1] : w.angle), v()), g(a.value.configuratorParams);
16782
+ }, d = async () => {
16783
16783
  const b = prompt("Введите название шаблона:");
16784
16784
  if (!b)
16785
16785
  return;
@@ -16792,12 +16792,12 @@ const st = {
16792
16792
  ])
16793
16793
  };
16794
16794
  await ft.getInstance(Zs).createTemplate(i.cartItem.category, $, u.value).then(() => {
16795
- l.value.addCustomTemplate($), d.value = l.value.allTemplates.length - 1;
16795
+ l.value.addCustomTemplate($), h.value = l.value.allTemplates.length - 1;
16796
16796
  }).catch(() => {
16797
16797
  o.value = !1;
16798
16798
  }), o.value = !1;
16799
16799
  }, p = () => {
16800
- l.value.showOnlyTemplates || l.value.allowSaveTemplates && (d.value = l.value.allTemplates.length - 1);
16800
+ l.value.showOnlyTemplates || l.value.allowSaveTemplates && (h.value = l.value.allTemplates.length - 1);
16801
16801
  }, g = async (b) => {
16802
16802
  v(), s.value = !0, await ft.getInstance(Zs).searchProduct(i.cartItem.category, b, u.value).then(($) => {
16803
16803
  a.value.product = $;
@@ -16834,7 +16834,7 @@ const st = {
16834
16834
  }), (b, $) => (x(), F("div", J0, [
16835
16835
  D(Z0, {
16836
16836
  value: a.value,
16837
- "select-template-index": d.value,
16837
+ "select-template-index": h.value,
16838
16838
  settings: l.value,
16839
16839
  "onPointer:up": S,
16840
16840
  "onPointer:move": _,
@@ -16848,11 +16848,11 @@ const st = {
16848
16848
  settings: l.value,
16849
16849
  "is-submit-processing": r.value,
16850
16850
  "is-product-searching": s.value,
16851
- "select-template-index": d.value,
16851
+ "select-template-index": h.value,
16852
16852
  "onUpdate:params": $[1] || ($[1] = (w) => g(w)),
16853
16853
  "onUpdate:preview": C,
16854
16854
  onSubmit: m,
16855
- "onClick:saveTemplate": h
16855
+ "onClick:saveTemplate": d
16856
16856
  }, null, 8, ["value", "preview-params", "validation", "settings", "is-submit-processing", "is-product-searching", "select-template-index"])
16857
16857
  ]));
16858
16858
  }
@@ -17057,30 +17057,30 @@ const e_ = {}, ir = /* @__PURE__ */ te({
17057
17057
  // eslint-disable-next-line func-names
17058
17058
  () => s("update:value", r.value),
17059
17059
  o.value
17060
- ), l = (h) => {
17061
- r.value = h, a();
17060
+ ), l = (d) => {
17061
+ r.value = d, a();
17062
17062
  };
17063
17063
  Oe(
17064
17064
  () => n.value,
17065
- (h) => {
17066
- r.value = h;
17065
+ (d) => {
17066
+ r.value = d;
17067
17067
  }
17068
17068
  );
17069
17069
  const c = W(null);
17070
17070
  return t({
17071
17071
  focus: () => {
17072
- var h;
17073
- return (h = c.value) == null ? void 0 : h.focus();
17072
+ var d;
17073
+ return (d = c.value) == null ? void 0 : d.focus();
17074
17074
  },
17075
17075
  blur: () => {
17076
- var h;
17077
- return (h = c.value) == null ? void 0 : h.blur();
17076
+ var d;
17077
+ return (d = c.value) == null ? void 0 : d.blur();
17078
17078
  },
17079
17079
  select: () => {
17080
- var h;
17081
- return (h = c.value) == null ? void 0 : h.select();
17080
+ var d;
17081
+ return (d = c.value) == null ? void 0 : d.select();
17082
17082
  }
17083
- }), (h, p) => (x(), ne(Y(Si), {
17083
+ }), (d, p) => (x(), ne(Y(Si), {
17084
17084
  ref_key: "inputReference",
17085
17085
  ref: c,
17086
17086
  value: r.value,
@@ -17088,15 +17088,15 @@ const e_ = {}, ir = /* @__PURE__ */ te({
17088
17088
  p[0] || (p[0] = (g) => r.value = g),
17089
17089
  l
17090
17090
  ],
17091
- clearable: h.clearable,
17092
- placeholder: h.placeholder,
17093
- min: h.min,
17094
- max: h.max,
17095
- step: h.step,
17096
- validator: h.validator
17091
+ clearable: d.clearable,
17092
+ placeholder: d.placeholder,
17093
+ min: d.min,
17094
+ max: d.max,
17095
+ step: d.step,
17096
+ validator: d.validator
17097
17097
  }, {
17098
17098
  prefix: R(() => [
17099
- Te(h.$slots, "prefix")
17099
+ Te(d.$slots, "prefix")
17100
17100
  ]),
17101
17101
  _: 3
17102
17102
  }, 8, ["value", "clearable", "placeholder", "min", "max", "step", "validator"]));
@@ -17143,13 +17143,13 @@ const e_ = {}, ir = /* @__PURE__ */ te({
17143
17143
  ref: "first-input-element",
17144
17144
  value: r.value.width,
17145
17145
  "onUpdate:value": [
17146
- c[0] || (c[0] = (d) => r.value.width = d),
17146
+ c[0] || (c[0] = (h) => r.value.width = h),
17147
17147
  o
17148
17148
  ],
17149
17149
  class: "w-full",
17150
17150
  max: l.settings.maxWidth ?? void 0,
17151
17151
  min: l.settings.minWidth,
17152
- validator: (d) => !!d && d >= l.settings.minWidth && (!l.settings.maxWidth || d <= l.settings.maxWidth),
17152
+ validator: (h) => !!h && h >= l.settings.minWidth && (!l.settings.maxWidth || h <= l.settings.maxWidth),
17153
17153
  placeholder: "Введите ширину"
17154
17154
  }, null, 8, ["value", "max", "min", "validator"])
17155
17155
  ]),
@@ -17166,13 +17166,13 @@ const e_ = {}, ir = /* @__PURE__ */ te({
17166
17166
  D(ir, {
17167
17167
  value: r.value.length,
17168
17168
  "onUpdate:value": [
17169
- c[1] || (c[1] = (d) => r.value.length = d),
17169
+ c[1] || (c[1] = (h) => r.value.length = h),
17170
17170
  o
17171
17171
  ],
17172
17172
  placeholder: "Введите длину",
17173
17173
  max: l.settings.maxLength,
17174
17174
  min: l.settings.minLength,
17175
- validator: (d) => d >= l.settings.minLength && d <= l.settings.maxLength,
17175
+ validator: (h) => h >= l.settings.minLength && h <= l.settings.maxLength,
17176
17176
  class: "w-full"
17177
17177
  }, null, 8, ["value", "max", "min", "validator"])
17178
17178
  ]),
@@ -17190,9 +17190,9 @@ const e_ = {}, ir = /* @__PURE__ */ te({
17190
17190
  value: l.value.quantity,
17191
17191
  placeholder: "Введите количество",
17192
17192
  min: 1,
17193
- validator: (d) => d > 0,
17193
+ validator: (h) => h > 0,
17194
17194
  class: "w-full",
17195
- "onUpdate:value": c[2] || (c[2] = (d) => a("quantity", d ?? 0))
17195
+ "onUpdate:value": c[2] || (c[2] = (h) => a("quantity", h ?? 0))
17196
17196
  }, null, 8, ["value", "validator"])
17197
17197
  ]),
17198
17198
  _: 1
@@ -17207,7 +17207,7 @@ const e_ = {}, ir = /* @__PURE__ */ te({
17207
17207
  D(u, {
17208
17208
  value: l.value.marker,
17209
17209
  placeholder: "Введите маркировку",
17210
- "onUpdate:value": c[3] || (c[3] = (d) => a("marker", d))
17210
+ "onUpdate:value": c[3] || (c[3] = (h) => a("marker", h))
17211
17211
  }, null, 8, ["value"])
17212
17212
  ]),
17213
17213
  _: 1
@@ -17224,7 +17224,7 @@ const e_ = {}, ir = /* @__PURE__ */ te({
17224
17224
  ),
17225
17225
  type: "primary",
17226
17226
  class: "self-start",
17227
- onClick: c[4] || (c[4] = (d) => n("submit", l.value))
17227
+ onClick: c[4] || (c[4] = (h) => n("submit", l.value))
17228
17228
  }, {
17229
17229
  default: R(() => [
17230
17230
  re(X(l.value.isNewRec() ? "В корзину" : "Изменить"), 1)
@@ -17235,7 +17235,7 @@ const e_ = {}, ir = /* @__PURE__ */ te({
17235
17235
  key: 0,
17236
17236
  type: "tertiary",
17237
17237
  class: "self-start",
17238
- onClick: c[5] || (c[5] = (d) => n("click:view-switch"))
17238
+ onClick: c[5] || (c[5] = (h) => n("click:view-switch"))
17239
17239
  }, {
17240
17240
  default: R(() => c[6] || (c[6] = [
17241
17241
  re(" Показать в виде списка ")
@@ -17265,8 +17265,8 @@ const e_ = {}, ir = /* @__PURE__ */ te({
17265
17265
  quantity: {},
17266
17266
  marker: {}
17267
17267
  }), o = W(!1), a = W(!1), l = async (u) => {
17268
- o.value = !0, await ft.getInstance(Zs).searchProduct(i.cartItem.category, u, r.value).then((d) => {
17269
- s.value.product = d;
17268
+ o.value = !0, await ft.getInstance(Zs).searchProduct(i.cartItem.category, u, r.value).then((h) => {
17269
+ s.value.product = h;
17270
17270
  }).catch(() => {
17271
17271
  o.value = !1;
17272
17272
  }), o.value = !1;
@@ -17281,15 +17281,15 @@ const e_ = {}, ir = /* @__PURE__ */ te({
17281
17281
  a.value = !1;
17282
17282
  })), a.value = !1;
17283
17283
  };
17284
- return (u, d) => (x(), F("div", s_, [
17284
+ return (u, h) => (x(), F("div", s_, [
17285
17285
  D(n_, {
17286
17286
  value: s.value,
17287
- "onUpdate:value": d[0] || (d[0] = (f) => s.value = f),
17287
+ "onUpdate:value": h[0] || (h[0] = (f) => s.value = f),
17288
17288
  validation: r.value,
17289
17289
  settings: u.settings,
17290
17290
  "is-submit-processing": a.value,
17291
- "onUpdate:params": d[1] || (d[1] = (f) => l(f)),
17292
- onSubmit: d[2] || (d[2] = (f) => c())
17291
+ "onUpdate:params": h[1] || (h[1] = (f) => l(f)),
17292
+ onSubmit: h[2] || (h[2] = (f) => c())
17293
17293
  }, null, 8, ["value", "validation", "settings", "is-submit-processing"])
17294
17294
  ]));
17295
17295
  }
@@ -17311,13 +17311,13 @@ const e_ = {}, ir = /* @__PURE__ */ te({
17311
17311
  },
17312
17312
  emits: ["update:value", "update:params", "submit", "click:instructions-toggle", "click:show-preview-drawer"],
17313
17313
  setup(e, { emit: t }) {
17314
- const i = e, n = t, s = z(() => ni.isPhoneDevice()), r = W(Qa(Ut(i.value.configuratorParams))), o = z(() => i.settings.widthOverlaps[r.value.mountType] ?? 0), a = z(() => i.settings.heightOverlaps[r.value.mountType] ?? 0), l = z(() => i.settings.maxWidths[r.value.netType]), c = z(() => i.settings.maxHeights[r.value.netType] - a.value), u = (f, h) => {
17315
- f && f in r.value && (r.value[f] = h ?? 0), n("update:params", r.value), d("configuratorParams", r.value);
17316
- }, d = (f, h) => {
17314
+ const i = e, n = t, s = z(() => ni.isPhoneDevice()), r = W(Qa(Ut(i.value.configuratorParams))), o = z(() => i.settings.widthOverlaps[r.value.mountType] ?? 0), a = z(() => i.settings.heightOverlaps[r.value.mountType] ?? 0), l = z(() => i.settings.maxWidths[r.value.netType]), c = z(() => i.settings.maxHeights[r.value.netType] - a.value), u = (f, d) => {
17315
+ f && f in r.value && (r.value[f] = d ?? 0), n("update:params", r.value), h("configuratorParams", r.value);
17316
+ }, h = (f, d) => {
17317
17317
  const p = new Zn(i.value);
17318
- p[f] = h, n("update:value", p);
17318
+ p[f] = d, n("update:value", p);
17319
17319
  };
17320
- return (f, h) => {
17320
+ return (f, d) => {
17321
17321
  const p = Sn;
17322
17322
  return x(), ne(Y(dr), { class: "flex flex-col gap-2 px-4 md:max-w-96" }, {
17323
17323
  default: R(() => [
@@ -17330,7 +17330,7 @@ const e_ = {}, ir = /* @__PURE__ */ te({
17330
17330
  D(Y(bn), {
17331
17331
  value: r.value.netType,
17332
17332
  "onUpdate:value": [
17333
- h[0] || (h[0] = (g) => r.value.netType = g),
17333
+ d[0] || (d[0] = (g) => r.value.netType = g),
17334
17334
  u
17335
17335
  ],
17336
17336
  options: f.settings.netType.map((g) => ({ label: f.settings.descriptions.net_type[g], value: g }))
@@ -17346,7 +17346,7 @@ const e_ = {}, ir = /* @__PURE__ */ te({
17346
17346
  default: R(() => [
17347
17347
  D(Y(bn), {
17348
17348
  value: r.value.color,
17349
- "onUpdate:value": h[1] || (h[1] = (g) => r.value.color = g),
17349
+ "onUpdate:value": d[1] || (d[1] = (g) => r.value.color = g),
17350
17350
  options: f.settings.color.map((g) => ({ label: f.settings.descriptions.color[g], value: g }))
17351
17351
  }, null, 8, ["value", "options"])
17352
17352
  ]),
@@ -17361,7 +17361,7 @@ const e_ = {}, ir = /* @__PURE__ */ te({
17361
17361
  D(Y(bn), {
17362
17362
  value: r.value.mountType,
17363
17363
  "onUpdate:value": [
17364
- h[2] || (h[2] = (g) => r.value.mountType = g),
17364
+ d[2] || (d[2] = (g) => r.value.mountType = g),
17365
17365
  u
17366
17366
  ],
17367
17367
  options: f.settings.mountType.map((g) => ({ label: f.settings.descriptions.mount_type[g], value: g }))
@@ -17388,9 +17388,9 @@ const e_ = {}, ir = /* @__PURE__ */ te({
17388
17388
  quaternary: "",
17389
17389
  type: "info",
17390
17390
  size: "tiny",
17391
- onClick: h[4] || (h[4] = (g) => n("click:instructions-toggle"))
17391
+ onClick: d[4] || (d[4] = (g) => n("click:instructions-toggle"))
17392
17392
  }, {
17393
- default: R(() => h[11] || (h[11] = [
17393
+ default: R(() => d[11] || (d[11] = [
17394
17394
  T("span", { class: "text-sm" }, "Руководство", -1)
17395
17395
  ])),
17396
17396
  _: 1,
@@ -17405,7 +17405,7 @@ const e_ = {}, ir = /* @__PURE__ */ te({
17405
17405
  min: f.settings.minWidth - o.value,
17406
17406
  placeholder: "Введите ширину светового проёма",
17407
17407
  class: "w-full",
17408
- "onUpdate:value": h[3] || (h[3] = (g) => u("width", (g && g + o.value) ?? void 0))
17408
+ "onUpdate:value": d[3] || (d[3] = (g) => u("width", (g && g + o.value) ?? void 0))
17409
17409
  }, null, 8, ["value", "max", "min"])
17410
17410
  ]),
17411
17411
  _: 1
@@ -17429,9 +17429,9 @@ const e_ = {}, ir = /* @__PURE__ */ te({
17429
17429
  quaternary: "",
17430
17430
  type: "info",
17431
17431
  size: "tiny",
17432
- onClick: h[6] || (h[6] = (g) => n("click:instructions-toggle"))
17432
+ onClick: d[6] || (d[6] = (g) => n("click:instructions-toggle"))
17433
17433
  }, {
17434
- default: R(() => h[12] || (h[12] = [
17434
+ default: R(() => d[12] || (d[12] = [
17435
17435
  T("span", { class: "text-sm" }, "Руководство", -1)
17436
17436
  ])),
17437
17437
  _: 1,
@@ -17446,7 +17446,7 @@ const e_ = {}, ir = /* @__PURE__ */ te({
17446
17446
  min: f.settings.minHeight - a.value,
17447
17447
  placeholder: "Введите высоту светового проёма",
17448
17448
  class: "w-full",
17449
- "onUpdate:value": h[5] || (h[5] = (g) => u("height", (g && g + a.value) ?? void 0))
17449
+ "onUpdate:value": d[5] || (d[5] = (g) => u("height", (g && g + a.value) ?? void 0))
17450
17450
  }, null, 8, ["value", "max", "min"])
17451
17451
  ]),
17452
17452
  _: 1
@@ -17461,7 +17461,7 @@ const e_ = {}, ir = /* @__PURE__ */ te({
17461
17461
  default: R(() => [
17462
17462
  D(Y(Si), {
17463
17463
  value: f.value.quantity,
17464
- "onUpdate:value": h[7] || (h[7] = (g) => f.value.quantity = g),
17464
+ "onUpdate:value": d[7] || (d[7] = (g) => f.value.quantity = g),
17465
17465
  min: 1,
17466
17466
  validator: (g) => Number.isInteger(g),
17467
17467
  placeholder: "Введите количество",
@@ -17479,7 +17479,7 @@ const e_ = {}, ir = /* @__PURE__ */ te({
17479
17479
  default: R(() => [
17480
17480
  D(p, {
17481
17481
  value: f.value.marker,
17482
- "onUpdate:value": h[8] || (h[8] = (g) => f.value.marker = g),
17482
+ "onUpdate:value": d[8] || (d[8] = (g) => f.value.marker = g),
17483
17483
  placeholder: "Введите маркировку"
17484
17484
  }, null, 8, ["value"])
17485
17485
  ]),
@@ -17495,7 +17495,7 @@ const e_ = {}, ir = /* @__PURE__ */ te({
17495
17495
  disabled: f.isProductSearching || !f.value.product || f.value.product.isNewRec() || r.value.width < f.settings.minHeight - a.value || r.value.height < f.settings.minHeight - a.value,
17496
17496
  type: "primary",
17497
17497
  class: "self-start",
17498
- onClick: h[9] || (h[9] = (g) => n("submit", f.value))
17498
+ onClick: d[9] || (d[9] = (g) => n("submit", f.value))
17499
17499
  }, {
17500
17500
  default: R(() => [
17501
17501
  re(X(f.value.isNewRec() ? "В корзину" : "Изменить"), 1)
@@ -17505,9 +17505,9 @@ const e_ = {}, ir = /* @__PURE__ */ te({
17505
17505
  s.value ? (x(), ne(Y(Ye), {
17506
17506
  key: 0,
17507
17507
  type: "default",
17508
- onClick: h[10] || (h[10] = (g) => n("click:show-preview-drawer"))
17508
+ onClick: d[10] || (d[10] = (g) => n("click:show-preview-drawer"))
17509
17509
  }, {
17510
- default: R(() => h[13] || (h[13] = [
17510
+ default: R(() => d[13] || (d[13] = [
17511
17511
  re(" Предварительный просмотр ")
17512
17512
  ])),
17513
17513
  _: 1,
@@ -17703,31 +17703,31 @@ const e_ = {}, ir = /* @__PURE__ */ te({
17703
17703
  height: {},
17704
17704
  quantity: {},
17705
17705
  marker: {}
17706
- }), c = W(!1), u = W(!1), d = async (h) => {
17707
- h.height > 0 && h.width > 0 && (c.value = !0, await ft.getInstance(Zs).searchProduct(i.cartItem.category, h, l.value).then((p) => {
17706
+ }), c = W(!1), u = W(!1), h = async (d) => {
17707
+ d.height > 0 && d.width > 0 && (c.value = !0, await ft.getInstance(Zs).searchProduct(i.cartItem.category, d, l.value).then((p) => {
17708
17708
  a.value.product = p;
17709
17709
  }).catch(() => {
17710
17710
  c.value = !1;
17711
17711
  }), c.value = !1);
17712
17712
  }, f = async () => {
17713
- u.value = !0, await (a.value.isNewRec() ? ft.getInstance(wn).addCartItem(i.client, a.value).then((h) => {
17714
- n("submit-success", h);
17713
+ u.value = !0, await (a.value.isNewRec() ? ft.getInstance(wn).addCartItem(i.client, a.value).then((d) => {
17714
+ n("submit-success", d);
17715
17715
  }).catch(() => {
17716
17716
  u.value = !1;
17717
- }) : ft.getInstance(wn).patchCartItem(i.client, a.value).then((h) => {
17718
- n("submit-success", h);
17717
+ }) : ft.getInstance(wn).patchCartItem(i.client, a.value).then((d) => {
17718
+ n("submit-success", d);
17719
17719
  }).catch(() => {
17720
17720
  u.value = !1;
17721
17721
  })), u.value = !1;
17722
17722
  };
17723
- return (h, p) => {
17723
+ return (d, p) => {
17724
17724
  const g = mo;
17725
17725
  return x(), F(Fe, null, [
17726
17726
  D(C_, {
17727
17727
  show: o.value,
17728
17728
  "onUpdate:show": p[0] || (p[0] = (m) => o.value = m),
17729
- "height-overlaps": h.settings.heightOverlaps,
17730
- "width-overlaps": h.settings.widthOverlaps
17729
+ "height-overlaps": d.settings.heightOverlaps,
17730
+ "width-overlaps": d.settings.widthOverlaps
17731
17731
  }, null, 8, ["show", "height-overlaps", "width-overlaps"]),
17732
17732
  T("div", R_, [
17733
17733
  s.value ? (x(), ne(Y(Wu), {
@@ -17755,7 +17755,7 @@ const e_ = {}, ir = /* @__PURE__ */ te({
17755
17755
  default: R(() => [
17756
17756
  D(Hc, {
17757
17757
  "configurator-params": a.value.configuratorParams,
17758
- settings: h.settings,
17758
+ settings: d.settings,
17759
17759
  onOpenInstructions: p[3] || (p[3] = (m) => o.value = !0)
17760
17760
  }, null, 8, ["configurator-params", "settings"])
17761
17761
  ]),
@@ -17766,17 +17766,17 @@ const e_ = {}, ir = /* @__PURE__ */ te({
17766
17766
  }, 8, ["show"])) : (x(), ne(Hc, {
17767
17767
  key: 0,
17768
17768
  "configurator-params": a.value.configuratorParams,
17769
- settings: h.settings,
17769
+ settings: d.settings,
17770
17770
  onOpenInstructions: p[1] || (p[1] = (m) => o.value = !0)
17771
17771
  }, null, 8, ["configurator-params", "settings"])),
17772
17772
  D(u_, {
17773
17773
  value: a.value,
17774
17774
  "onUpdate:value": p[5] || (p[5] = (m) => a.value = m),
17775
17775
  validation: l.value,
17776
- settings: h.settings,
17776
+ settings: d.settings,
17777
17777
  "is-product-searching": c.value,
17778
17778
  "is-submit-processing": u.value,
17779
- "onUpdate:params": p[6] || (p[6] = (m) => d(m)),
17779
+ "onUpdate:params": p[6] || (p[6] = (m) => h(m)),
17780
17780
  onSubmit: p[7] || (p[7] = (m) => f()),
17781
17781
  "onClick:instructionsToggle": p[8] || (p[8] = (m) => o.value = !o.value),
17782
17782
  "onClick:showPreviewDrawer": p[9] || (p[9] = (m) => r.value = !0)
@@ -17816,7 +17816,7 @@ const e_ = {}, ir = /* @__PURE__ */ te({
17816
17816
  return t({
17817
17817
  focusWidthInput: l
17818
17818
  }), (c, u) => {
17819
- const d = td, f = ed;
17819
+ const h = td, f = ed;
17820
17820
  return x(), ne(Y(Ge), {
17821
17821
  label: `Полоса №${c.index + 1}, мм`,
17822
17822
  required: !0
@@ -17841,7 +17841,7 @@ const e_ = {}, ir = /* @__PURE__ */ te({
17841
17841
  value: c.value,
17842
17842
  class: "w-full",
17843
17843
  step: c.value < c.settings.minLineWidth ? c.settings.minLineWidth - c.value : c.settings.lineWidthStep,
17844
- validator: (h) => !!h && h >= c.settings.minLineWidth && h % c.settings.lineWidthStep === 0,
17844
+ validator: (d) => !!d && d >= c.settings.minLineWidth && d % c.settings.lineWidthStep === 0,
17845
17845
  placeholder: "Введите ширину",
17846
17846
  "onUpdate:value": a
17847
17847
  }, null, 8, ["value", "step", "validator"])
@@ -17852,10 +17852,10 @@ const e_ = {}, ir = /* @__PURE__ */ te({
17852
17852
  disabled: c.addLineButtonDisabled,
17853
17853
  size: "medium",
17854
17854
  class: "ml-2",
17855
- onClick: u[0] || (u[0] = (h) => s("click:add-line", c.index))
17855
+ onClick: u[0] || (u[0] = (d) => s("click:add-line", c.index))
17856
17856
  }, {
17857
17857
  default: R(() => [
17858
- D(d)
17858
+ D(h)
17859
17859
  ]),
17860
17860
  _: 1
17861
17861
  }, 8, ["disabled"]),
@@ -17863,7 +17863,7 @@ const e_ = {}, ir = /* @__PURE__ */ te({
17863
17863
  disabled: c.removeLineButtonDisabled,
17864
17864
  size: "medium",
17865
17865
  class: "ml-2",
17866
- onClick: u[1] || (u[1] = (h) => s("click:remove-line", c.index))
17866
+ onClick: u[1] || (u[1] = (d) => s("click:remove-line", c.index))
17867
17867
  }, {
17868
17868
  default: R(() => [
17869
17869
  D(f)
@@ -17886,24 +17886,24 @@ const e_ = {}, ir = /* @__PURE__ */ te({
17886
17886
  },
17887
17887
  emits: ["update:value", "update:params", "click:view-switch", "submit", "click:add-line", "click:remove-line"],
17888
17888
  setup(e, { emit: t }) {
17889
- const i = e, n = t, s = z(() => i.value[0].configuratorParams.linesWidths.map((u) => u).reduce((u, d) => u + d, 0)), r = z(() => i.settings.width - s.value), o = z(() => !i.value.some(({ product: u }) => !u)), a = z(
17889
+ const i = e, n = t, s = z(() => i.value[0].configuratorParams.linesWidths.map((u) => u).reduce((u, h) => u + h, 0)), r = z(() => i.settings.width - s.value), o = z(() => !i.value.some(({ product: u }) => !u)), a = z(
17890
17890
  () => r.value === 0 ? void 0 : [{ label: `${(r.value > 0 ? "Остаток +" : "Излишек ") + r.value} мм.`, key: r.value }]
17891
- ), l = (u, d, f) => {
17892
- const h = i.value.at(d);
17893
- if (h)
17891
+ ), l = (u, h, f) => {
17892
+ const d = i.value.at(h);
17893
+ if (d)
17894
17894
  if (u && u >= i.settings.minLineWidth && u % i.settings.lineWidthStep === 0) {
17895
- const p = { linesWidths: h.configuratorParams.linesWidths.toSpliced(d, 1, u) };
17896
- n("update:params", p, d, f), c("configuratorParams", p);
17895
+ const p = { linesWidths: d.configuratorParams.linesWidths.toSpliced(h, 1, u) };
17896
+ n("update:params", p, h, f), c("configuratorParams", p);
17897
17897
  } else
17898
- h.product.id = -1;
17899
- }, c = (u, d) => {
17900
- const f = i.value.map((h) => new Zn(h));
17901
- f.forEach((h) => {
17902
- h[u] = d;
17898
+ d.product.id = -1;
17899
+ }, c = (u, h) => {
17900
+ const f = i.value.map((d) => new Zn(d));
17901
+ f.forEach((d) => {
17902
+ d[u] = h;
17903
17903
  }), n("update:value", f);
17904
17904
  };
17905
- return (u, d) => {
17906
- const f = Ks, h = Sn;
17905
+ return (u, h) => {
17906
+ const f = Ks, d = Sn;
17907
17907
  return x(), ne(Y(dr), { class: "flex flex-col gap-2" }, {
17908
17908
  default: R(() => {
17909
17909
  var p;
@@ -17919,8 +17919,8 @@ const e_ = {}, ir = /* @__PURE__ */ te({
17919
17919
  "add-line-button-disabled": r.value <= 0 || u.value.length >= u.settings.maxLinesCount,
17920
17920
  "remove-line-button-disabled": u.value.length === 1,
17921
17921
  "onUpdate:value": l,
17922
- "onClick:addLine": d[0] || (d[0] = (v) => n("click:add-line", v)),
17923
- "onClick:removeLine": d[1] || (d[1] = (v) => n("click:remove-line", v))
17922
+ "onClick:addLine": h[0] || (h[0] = (v) => n("click:add-line", v)),
17923
+ "onClick:removeLine": h[1] || (h[1] = (v) => n("click:remove-line", v))
17924
17924
  }, null, 8, ["index", "value", "product", "settings", "suggestion-option", "add-line-button-disabled", "remove-line-button-disabled"]))), 128)),
17925
17925
  T("div", A_, [
17926
17926
  r.value < 0 ? (x(), ne(f, {
@@ -17936,14 +17936,14 @@ const e_ = {}, ir = /* @__PURE__ */ te({
17936
17936
  key: 1,
17937
17937
  type: "error"
17938
17938
  }, {
17939
- default: R(() => d[8] || (d[8] = [
17939
+ default: R(() => h[8] || (h[8] = [
17940
17940
  re(" Остаток резки должен быть равен 0 ")
17941
17941
  ])),
17942
17942
  _: 1,
17943
17943
  __: [8]
17944
17944
  })) : j("", !0),
17945
17945
  T("div", null, [
17946
- d[9] || (d[9] = re(" Остаток для резки: ")),
17946
+ h[9] || (h[9] = re(" Остаток для резки: ")),
17947
17947
  D(f, {
17948
17948
  type: r.value >= 0 ? "Success" : "error"
17949
17949
  }, {
@@ -17960,9 +17960,9 @@ const e_ = {}, ir = /* @__PURE__ */ te({
17960
17960
  disabled: !o.value || r.value <= 0 || u.value.length >= u.settings.maxLinesCount,
17961
17961
  type: "primary",
17962
17962
  class: "self-center",
17963
- onClick: d[2] || (d[2] = (g) => n("click:add-line", u.value.length))
17963
+ onClick: h[2] || (h[2] = (g) => n("click:add-line", u.value.length))
17964
17964
  }, {
17965
- default: R(() => d[10] || (d[10] = [
17965
+ default: R(() => h[10] || (h[10] = [
17966
17966
  re(" Добавить полосу ")
17967
17967
  ])),
17968
17968
  _: 1,
@@ -17981,7 +17981,7 @@ const e_ = {}, ir = /* @__PURE__ */ te({
17981
17981
  validator: (g) => g % u.settings.lengthStep === 0,
17982
17982
  placeholder: "Введите метраж",
17983
17983
  class: "w-full",
17984
- "onUpdate:value": d[3] || (d[3] = (g) => c("length", g ?? 0))
17984
+ "onUpdate:value": h[3] || (h[3] = (g) => c("length", g ?? 0))
17985
17985
  }, null, 8, ["value", "max", "min", "step", "validator"])
17986
17986
  ]),
17987
17987
  _: 1
@@ -17997,17 +17997,17 @@ const e_ = {}, ir = /* @__PURE__ */ te({
17997
17997
  validator: (g) => Number.isInteger(g),
17998
17998
  placeholder: "Введите количество",
17999
17999
  class: "w-full",
18000
- "onUpdate:value": d[4] || (d[4] = (g) => c("quantity", g ?? 0))
18000
+ "onUpdate:value": h[4] || (h[4] = (g) => c("quantity", g ?? 0))
18001
18001
  }, null, 8, ["value", "validator"])
18002
18002
  ]),
18003
18003
  _: 1
18004
18004
  }),
18005
18005
  D(Y(Ge), { label: "Маркировка" }, {
18006
18006
  default: R(() => [
18007
- D(h, {
18007
+ D(d, {
18008
18008
  value: i.value[0].marker,
18009
18009
  placeholder: "Введите маркировку",
18010
- "onUpdate:value": d[5] || (d[5] = (g) => c("marker", g))
18010
+ "onUpdate:value": h[5] || (h[5] = (g) => c("marker", g))
18011
18011
  }, null, 8, ["value"])
18012
18012
  ]),
18013
18013
  _: 1
@@ -18021,7 +18021,7 @@ const e_ = {}, ir = /* @__PURE__ */ te({
18021
18021
  ),
18022
18022
  type: "primary",
18023
18023
  class: "self-start",
18024
- onClick: d[6] || (d[6] = (g) => n("submit", u.value))
18024
+ onClick: h[6] || (h[6] = (g) => n("submit", u.value))
18025
18025
  }, {
18026
18026
  default: R(() => [
18027
18027
  re(X(u.value[0].isNewRec() ? "В корзину" : "Изменить"), 1)
@@ -18032,9 +18032,9 @@ const e_ = {}, ir = /* @__PURE__ */ te({
18032
18032
  key: 0,
18033
18033
  type: "tertiary",
18034
18034
  class: "self-start",
18035
- onClick: d[7] || (d[7] = (g) => n("click:view-switch"))
18035
+ onClick: h[7] || (h[7] = (g) => n("click:view-switch"))
18036
18036
  }, {
18037
- default: R(() => d[11] || (d[11] = [
18037
+ default: R(() => h[11] || (h[11] = [
18038
18038
  re(" Показать в виде списка ")
18039
18039
  ])),
18040
18040
  _: 1,
@@ -18087,36 +18087,36 @@ const e_ = {}, ir = /* @__PURE__ */ te({
18087
18087
  length: {},
18088
18088
  quantity: {},
18089
18089
  marker: {}
18090
- }), o = W(!1), a = z(() => s.value[0].configuratorParams.linesWidths.map((f) => f).reduce((f, h) => f + h, 0)), l = (f) => {
18090
+ }), o = W(!1), a = z(() => s.value[0].configuratorParams.linesWidths.map((f) => f).reduce((f, d) => f + d, 0)), l = (f) => {
18091
18091
  f === void 0 && (f = s.value.length - 1);
18092
- const h = s.value.at(0);
18093
- if (!h)
18092
+ const d = s.value.at(0);
18093
+ if (!d)
18094
18094
  return;
18095
- h.configuratorParams.linesWidths = h.configuratorParams.linesWidths.toSpliced(f + 1, 0, 0), s.value.forEach((g) => {
18096
- g.configuratorParams.linesWidths = h.configuratorParams.linesWidths;
18095
+ d.configuratorParams.linesWidths = d.configuratorParams.linesWidths.toSpliced(f + 1, 0, 0), s.value.forEach((g) => {
18096
+ g.configuratorParams.linesWidths = d.configuratorParams.linesWidths;
18097
18097
  });
18098
18098
  const p = new Zn({
18099
- quantity: (h == null ? void 0 : h.quantity) ?? 1,
18100
- category: h == null ? void 0 : h.category,
18101
- length: (h == null ? void 0 : h.length) ?? i.settings.minLength,
18102
- marker: h == null ? void 0 : h.marker,
18099
+ quantity: (d == null ? void 0 : d.quantity) ?? 1,
18100
+ category: d == null ? void 0 : d.category,
18101
+ length: (d == null ? void 0 : d.length) ?? i.settings.minLength,
18102
+ marker: d == null ? void 0 : d.marker,
18103
18103
  configuratorParams: {
18104
- linesWidths: h == null ? void 0 : h.configuratorParams.linesWidths
18104
+ linesWidths: d == null ? void 0 : d.configuratorParams.linesWidths
18105
18105
  }
18106
18106
  });
18107
18107
  s.value = s.value.toSpliced(f + 1, 0, p);
18108
18108
  }, c = (f) => {
18109
- const h = s.value.at(0);
18110
- h && (h.configuratorParams.linesWidths = h.configuratorParams.linesWidths.toSpliced(f, 1), s.value.forEach((p) => {
18111
- p.configuratorParams.linesWidths = h.configuratorParams.linesWidths;
18109
+ const d = s.value.at(0);
18110
+ d && (d.configuratorParams.linesWidths = d.configuratorParams.linesWidths.toSpliced(f, 1), s.value.forEach((p) => {
18111
+ p.configuratorParams.linesWidths = d.configuratorParams.linesWidths;
18112
18112
  }), s.value = s.value.toSpliced(f, 1), delete r[`linesWidths.${f}`], delete r[`linesWidths.${f}`]);
18113
- }, u = async (f, h, p) => {
18114
- p.value = !0, await ft.getInstance(Zs).searchProduct(s.value[h].category, { linesWidths: f.linesWidths.at(h) }, r.value).then((g) => {
18115
- s.value[h].product = g, s.value.length < i.settings.maxLinesCount && a.value < i.settings.width && l();
18113
+ }, u = async (f, d, p) => {
18114
+ p.value = !0, await ft.getInstance(Zs).searchProduct(s.value[d].category, { linesWidths: f.linesWidths.at(d) }, r.value).then((g) => {
18115
+ s.value[d].product = g, s.value.length < i.settings.maxLinesCount && a.value < i.settings.width && l();
18116
18116
  }).catch(() => {
18117
- s.value[h].product = new Tf(), p.value = !1;
18117
+ s.value[d].product = new Tf(), p.value = !1;
18118
18118
  }), p.value = !1;
18119
- }, d = async () => {
18119
+ }, h = async () => {
18120
18120
  o.value = !0, await (s.value[0].isNewRec() ? ft.getInstance(wn).addCartItem(i.client, s.value[0]).then((f) => {
18121
18121
  n("submit-success", f);
18122
18122
  }).catch(() => {
@@ -18127,20 +18127,20 @@ const e_ = {}, ir = /* @__PURE__ */ te({
18127
18127
  o.value = !1;
18128
18128
  })), o.value = !1;
18129
18129
  };
18130
- return (f, h) => (x(), F("div", W_, [
18130
+ return (f, d) => (x(), F("div", W_, [
18131
18131
  D(H_, {
18132
18132
  value: s.value,
18133
- "onUpdate:value": h[0] || (h[0] = (p) => s.value = p),
18133
+ "onUpdate:value": d[0] || (d[0] = (p) => s.value = p),
18134
18134
  settings: f.settings
18135
18135
  }, null, 8, ["value", "settings"]),
18136
18136
  D(I_, {
18137
18137
  value: s.value,
18138
- "onUpdate:value": h[1] || (h[1] = (p) => s.value = p),
18138
+ "onUpdate:value": d[1] || (d[1] = (p) => s.value = p),
18139
18139
  validation: r.value,
18140
18140
  settings: f.settings,
18141
18141
  "is-submit-processing": o.value,
18142
18142
  "onUpdate:params": u,
18143
- onSubmit: d,
18143
+ onSubmit: h,
18144
18144
  "onClick:addLine": l,
18145
18145
  "onClick:removeLine": c
18146
18146
  }, null, 8, ["value", "validation", "settings", "is-submit-processing"])
@@ -18175,11 +18175,11 @@ const e_ = {}, ir = /* @__PURE__ */ te({
18175
18175
  n("update:date-range", { from: o ? zf(new Date(o)) : void 0, to: a ? If(new Date(a)) : void 0 });
18176
18176
  };
18177
18177
  return (o, a) => {
18178
- var u, d, f, h;
18178
+ var u, h, f, d;
18179
18179
  const l = Ye, c = gf;
18180
18180
  return x(), F("div", j_, [
18181
18181
  D(c, {
18182
- value: (d = (u = o.dateRange) == null ? void 0 : u.from) == null ? void 0 : d.getTime(),
18182
+ value: (h = (u = o.dateRange) == null ? void 0 : u.from) == null ? void 0 : h.getTime(),
18183
18183
  clearable: o.clearable,
18184
18184
  "is-date-disabled": (p) => {
18185
18185
  var g, m;
@@ -18218,7 +18218,7 @@ const e_ = {}, ir = /* @__PURE__ */ te({
18218
18218
  } : void 0
18219
18219
  ]), 1032, ["value", "clearable", "is-date-disabled", "format"]),
18220
18220
  D(c, {
18221
- value: (h = (f = o.dateRange) == null ? void 0 : f.to) == null ? void 0 : h.getTime(),
18221
+ value: (d = (f = o.dateRange) == null ? void 0 : f.to) == null ? void 0 : d.getTime(),
18222
18222
  clearable: o.clearable,
18223
18223
  "is-date-disabled": (p) => {
18224
18224
  var g, m;
@@ -18342,6 +18342,7 @@ const e_ = {}, ir = /* @__PURE__ */ te({
18342
18342
  default: { size: "medium", scale: 0.7 }
18343
18343
  }) },
18344
18344
  processing: { type: Boolean, default: !1 },
18345
+ valid: { type: Boolean, default: !0 },
18345
18346
  acceptButton: { default: () => ({ show: !0, text: "ОК" }) },
18346
18347
  cancelButton: { default: () => ({ show: !0, text: "Отмена" }) }
18347
18348
  },
@@ -18353,7 +18354,7 @@ const e_ = {}, ir = /* @__PURE__ */ te({
18353
18354
  n.sizes.default.scale
18354
18355
  ), c = z(() => window.innerWidth * l.value), u = () => {
18355
18356
  s("opening"), r.value = !0, s("update:show", r.value);
18356
- }, d = (h = "other") => {
18357
+ }, h = (d = "other") => {
18357
18358
  if (o.value) {
18358
18359
  s("processing:cancel", (v) => {
18359
18360
  o.value = v;
@@ -18361,7 +18362,7 @@ const e_ = {}, ir = /* @__PURE__ */ te({
18361
18362
  return;
18362
18363
  }
18363
18364
  let p = !1;
18364
- s("closing", h, () => {
18365
+ s("closing", d, () => {
18365
18366
  p = !0;
18366
18367
  }), p || (r.value = !1, s("update:show", r.value));
18367
18368
  }, f = () => {
@@ -18371,13 +18372,13 @@ const e_ = {}, ir = /* @__PURE__ */ te({
18371
18372
  };
18372
18373
  return Oe(
18373
18374
  () => n.show,
18374
- (h) => {
18375
- h ? u() : d("other");
18375
+ (d) => {
18376
+ d ? u() : h("other");
18376
18377
  }
18377
18378
  ), Oe(
18378
18379
  () => n.processing,
18379
- (h) => {
18380
- o.value = h;
18380
+ (d) => {
18381
+ o.value = d;
18381
18382
  }
18382
18383
  ), t({
18383
18384
  /**
@@ -18387,8 +18388,8 @@ const e_ = {}, ir = /* @__PURE__ */ te({
18387
18388
  /**
18388
18389
  * Закрывает модальное окно.
18389
18390
  */
18390
- close: d
18391
- }), (h, p) => {
18391
+ close: h
18392
+ }), (d, p) => {
18392
18393
  const g = Ye, m = sl;
18393
18394
  return x(), ne(m, {
18394
18395
  loading: o.value,
@@ -18396,53 +18397,53 @@ const e_ = {}, ir = /* @__PURE__ */ te({
18396
18397
  "show-icon": !1,
18397
18398
  size: Y(a),
18398
18399
  style: lr(`width: ${c.value}px`),
18399
- title: h.title,
18400
- "action-class": h.$slots["extra-action"] ? "grid grid-cols-2 !justify-between" : void 0,
18400
+ title: d.title,
18401
+ "action-class": d.$slots["extra-action"] ? "grid grid-cols-2 !justify-between" : void 0,
18401
18402
  preset: "dialog",
18402
- onClose: p[1] || (p[1] = (v) => d("header")),
18403
- onEsc: p[2] || (p[2] = (v) => d("esc")),
18404
- onMaskClick: p[3] || (p[3] = (v) => d("mask"))
18403
+ onClose: p[1] || (p[1] = (v) => h("header")),
18404
+ onEsc: p[2] || (p[2] = (v) => h("esc")),
18405
+ onMaskClick: p[3] || (p[3] = (v) => h("mask"))
18405
18406
  }, rn({
18406
18407
  default: R(() => [
18407
- Te(h.$slots, "default")
18408
+ Te(d.$slots, "default")
18408
18409
  ]),
18409
18410
  _: 2
18410
18411
  }, [
18411
- h.$slots.header ? {
18412
+ d.$slots.header ? {
18412
18413
  name: "header",
18413
18414
  fn: R(() => [
18414
- Te(h.$slots, "header")
18415
+ Te(d.$slots, "header")
18415
18416
  ]),
18416
18417
  key: "0"
18417
18418
  } : void 0,
18418
- h.$slots.action || h.$slots["extra-action"] || h.acceptButton.show || h.cancelButton.show ? {
18419
+ d.$slots.action || d.$slots["extra-action"] || d.acceptButton.show || d.cancelButton.show ? {
18419
18420
  name: "action",
18420
18421
  fn: R(() => [
18421
- h.$slots["extra-action"] ? (x(), F("div", ty, [
18422
- Te(h.$slots, "extra-action")
18422
+ d.$slots["extra-action"] ? (x(), F("div", ty, [
18423
+ Te(d.$slots, "extra-action")
18423
18424
  ])) : j("", !0),
18424
- h.$slots.action || h.acceptButton.show || h.cancelButton.show ? (x(), F("div", iy, [
18425
- Te(h.$slots, "action", { disabled: o.value }),
18426
- h.acceptButton.show ?? !0 ? (x(), ne(g, {
18425
+ d.$slots.action || d.acceptButton.show || d.cancelButton.show ? (x(), F("div", iy, [
18426
+ Te(d.$slots, "action", { disabled: o.value }),
18427
+ d.acceptButton.show ?? !0 ? (x(), ne(g, {
18427
18428
  key: 0,
18428
- disabled: o.value,
18429
+ disabled: o.value || !d.valid,
18429
18430
  size: Y(a),
18430
18431
  type: "primary",
18431
18432
  onClick: f
18432
18433
  }, {
18433
18434
  default: R(() => [
18434
- re(X(h.acceptButton.text ?? "ОК"), 1)
18435
+ re(X(d.acceptButton.text ?? "ОК"), 1)
18435
18436
  ]),
18436
18437
  _: 1
18437
18438
  }, 8, ["disabled", "size"])) : j("", !0),
18438
- h.cancelButton.show ?? !0 ? (x(), ne(g, {
18439
+ d.cancelButton.show ?? !0 ? (x(), ne(g, {
18439
18440
  key: 1,
18440
18441
  size: Y(a),
18441
18442
  type: "default",
18442
- onClick: p[0] || (p[0] = (v) => d("footer"))
18443
+ onClick: p[0] || (p[0] = (v) => h("footer"))
18443
18444
  }, {
18444
18445
  default: R(() => [
18445
- re(X(h.cancelButton.text ?? "Отмена"), 1)
18446
+ re(X(d.cancelButton.text ?? "Отмена"), 1)
18446
18447
  ]),
18447
18448
  _: 1
18448
18449
  }, 8, ["size"])) : j("", !0)
@@ -18608,7 +18609,7 @@ const fy = Ue({ name: "ion-options-outline", render: hy }), py = { class: "flex
18608
18609
  i("cancel", r);
18609
18610
  };
18610
18611
  return (l, c) => {
18611
- const u = fy, d = Ye, f = ln, h = uy, p = mo;
18612
+ const u = fy, h = Ye, f = ln, d = uy, p = mo;
18612
18613
  return x(), F("div", py, [
18613
18614
  T("div", gy, [
18614
18615
  Te(l.$slots, "default")
@@ -18621,7 +18622,7 @@ const fy = Ue({ name: "ion-options-outline", render: hy }), py = { class: "flex
18621
18622
  placement: "bottom"
18622
18623
  }, {
18623
18624
  trigger: R(() => [
18624
- D(d, {
18625
+ D(h, {
18625
18626
  disabled: l.disabled || n.value,
18626
18627
  type: "info",
18627
18628
  ghost: "",
@@ -18646,14 +18647,14 @@ const fy = Ue({ name: "ion-options-outline", render: hy }), py = { class: "flex
18646
18647
  placement: "bottom"
18647
18648
  }, {
18648
18649
  trigger: R(() => [
18649
- D(d, {
18650
+ D(h, {
18650
18651
  disabled: l.disabled || n.value,
18651
18652
  type: "primary",
18652
18653
  size: "small",
18653
18654
  onClick: o
18654
18655
  }, {
18655
18656
  default: R(() => [
18656
- D(h)
18657
+ D(d)
18657
18658
  ]),
18658
18659
  _: 1
18659
18660
  }, 8, ["disabled"])
@@ -18669,7 +18670,7 @@ const fy = Ue({ name: "ion-options-outline", render: hy }), py = { class: "flex
18669
18670
  placement: "bottom"
18670
18671
  }, {
18671
18672
  trigger: R(() => [
18672
- D(d, {
18673
+ D(h, {
18673
18674
  disabled: l.disabled || n.value,
18674
18675
  type: "error",
18675
18676
  size: "small",
@@ -19388,16 +19389,16 @@ function ua(e, t) {
19388
19389
  indeterminateKeys: Array.from(r)
19389
19390
  };
19390
19391
  const { levelTreeNodeMap: u } = t;
19391
- let d;
19392
- s !== void 0 ? d = ub(s, i, t, c) : n !== void 0 ? d = lb(n, i, t, c) : d = ro(i, t, c, !1);
19393
- const f = l === "parent", h = l === "child" || a, p = d, g = /* @__PURE__ */ new Set(), m = Math.max.apply(null, Array.from(u.keys()));
19392
+ let h;
19393
+ s !== void 0 ? h = ub(s, i, t, c) : n !== void 0 ? h = lb(n, i, t, c) : h = ro(i, t, c, !1);
19394
+ const f = l === "parent", d = l === "child" || a, p = h, g = /* @__PURE__ */ new Set(), m = Math.max.apply(null, Array.from(u.keys()));
19394
19395
  for (let v = m; v >= 0; v -= 1) {
19395
19396
  const _ = v === 0, S = u.get(v);
19396
19397
  for (const C of S) {
19397
19398
  if (C.isLeaf)
19398
19399
  continue;
19399
19400
  const { key: b, shallowLoaded: $ } = C;
19400
- if (h && $ && C.children.forEach((B) => {
19401
+ if (d && $ && C.children.forEach((B) => {
19401
19402
  !B.disabled && !B.isLeaf && B.shallowLoaded && p.has(B.key) && p.delete(B.key);
19402
19403
  }), C.disabled || !$)
19403
19404
  continue;
@@ -19416,7 +19417,7 @@ function ua(e, t) {
19416
19417
  }
19417
19418
  w && !I ? (f && C.children.forEach((B) => {
19418
19419
  !B.disabled && p.has(B.key) && p.delete(B.key);
19419
- }), p.add(b)) : M && g.add(b), _ && h && p.has(b) && p.delete(b);
19420
+ }), p.add(b)) : M && g.add(b), _ && d && p.has(b) && p.delete(b);
19420
19421
  }
19421
19422
  }
19422
19423
  return {
@@ -19431,8 +19432,8 @@ function ro(e, t, i, n) {
19431
19432
  c !== void 0 && Yd(c, (u) => {
19432
19433
  if (u.disabled)
19433
19434
  return Va.STOP;
19434
- const { key: d } = u;
19435
- if (!o.has(d) && (o.add(d), a.add(d), tb(u.rawNode, r))) {
19435
+ const { key: h } = u;
19436
+ if (!o.has(h) && (o.add(h), a.add(h), tb(u.rawNode, r))) {
19436
19437
  if (n)
19437
19438
  return Va.STOP;
19438
19439
  if (!i)
@@ -19492,8 +19493,8 @@ function Uc(e, t, { loop: i = !1, includeDisabled: n = !1 } = {}) {
19492
19493
  if (u !== null)
19493
19494
  l(u);
19494
19495
  else {
19495
- const d = gb(c);
19496
- d != null && d.isGroup ? l(s(d, i)) : i && l(s(c, !0));
19496
+ const h = gb(c);
19497
+ h != null && h.isGroup ? l(s(h, i)) : i && l(s(c, !0));
19497
19498
  }
19498
19499
  }
19499
19500
  }
@@ -19564,12 +19565,12 @@ function qd(e, t, i, n, s, r = null, o = 0) {
19564
19565
  return e.forEach((l, c) => {
19565
19566
  var u;
19566
19567
  yb.NODE_ENV !== "production" && ib(l, s) && console.error("[treemate]: node", l, "is invalid");
19567
- const d = Object.create(n);
19568
- if (d.rawNode = l, d.siblings = a, d.level = o, d.index = c, d.isFirstChild = c === 0, d.isLastChild = c + 1 === e.length, d.parent = r, !d.ignored) {
19568
+ const h = Object.create(n);
19569
+ if (h.rawNode = l, h.siblings = a, h.level = o, h.index = c, h.isFirstChild = c === 0, h.isLastChild = c + 1 === e.length, h.parent = r, !h.ignored) {
19569
19570
  const f = s(l);
19570
- Array.isArray(f) && (d.children = qd(f, t, i, n, s, d, o + 1));
19571
+ Array.isArray(f) && (h.children = qd(f, t, i, n, s, h, o + 1));
19571
19572
  }
19572
- a.push(d), t.set(d.key, d), i.has(o) || i.set(o, []), (u = i.get(o)) === null || u === void 0 || u.push(d);
19573
+ a.push(h), t.set(h.key, h), i.has(o) || i.set(o, []), (u = i.get(o)) === null || u === void 0 || u.push(h);
19573
19574
  }), a;
19574
19575
  }
19575
19576
  function bb(e, t = {}) {
@@ -19577,7 +19578,7 @@ function bb(e, t = {}) {
19577
19578
  const n = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(), { getDisabled: r = eb, getIgnored: o = Jy, getIsGroup: a = rb, getKey: l = Zy } = t, c = (i = t.getChildren) !== null && i !== void 0 ? i : Ky, u = t.ignoreEmptyChildren ? (C) => {
19578
19579
  const b = c(C);
19579
19580
  return Array.isArray(b) ? b.length ? b : null : b;
19580
- } : c, d = Object.assign({
19581
+ } : c, h = Object.assign({
19581
19582
  get key() {
19582
19583
  return l(this.rawNode);
19583
19584
  },
@@ -19599,8 +19600,8 @@ function bb(e, t = {}) {
19599
19600
  contains(C) {
19600
19601
  return _b(this, C);
19601
19602
  }
19602
- }, mb), f = qd(e, n, s, d, u);
19603
- function h(C) {
19603
+ }, mb), f = qd(e, n, s, h, u);
19604
+ function d(C) {
19604
19605
  if (C == null)
19605
19606
  return null;
19606
19607
  const b = n.get(C);
@@ -19637,7 +19638,7 @@ function bb(e, t = {}) {
19637
19638
  getFlattenedNodes(C) {
19638
19639
  return vb(f, C);
19639
19640
  },
19640
- getNode: h,
19641
+ getNode: d,
19641
19642
  getPrev: g,
19642
19643
  getNext: m,
19643
19644
  getParent: v,
@@ -19788,7 +19789,7 @@ function Sb() {
19788
19789
  const u = {
19789
19790
  bubble: {},
19790
19791
  capture: {}
19791
- }, d = {};
19792
+ }, h = {};
19792
19793
  function f() {
19793
19794
  const w = function(M) {
19794
19795
  const { type: I, eventPhase: B, bubbles: Z } = M, Q = Vr(M);
@@ -19842,23 +19843,23 @@ function Sb() {
19842
19843
  };
19843
19844
  return w.displayName = "evtdUnifiedHandler", w;
19844
19845
  }
19845
- function h() {
19846
+ function d() {
19846
19847
  const w = function(M) {
19847
19848
  const { type: I, eventPhase: B } = M;
19848
19849
  if (B !== 2)
19849
19850
  return;
19850
- const Z = d[I];
19851
+ const Z = h[I];
19851
19852
  Z !== void 0 && Z.forEach((Q) => Q(M));
19852
19853
  };
19853
19854
  return w.displayName = "evtdUnifiedWindowEventHandler", w;
19854
19855
  }
19855
- const p = f(), g = h();
19856
+ const p = f(), g = d();
19856
19857
  function m(w, M) {
19857
19858
  const I = u[w];
19858
19859
  return I[M] === void 0 && (I[M] = /* @__PURE__ */ new Map(), window.addEventListener(M, p, w === "capture")), I[M];
19859
19860
  }
19860
19861
  function v(w) {
19861
- return d[w] === void 0 && (d[w] = /* @__PURE__ */ new Set(), window.addEventListener(w, g)), d[w];
19862
+ return h[w] === void 0 && (h[w] = /* @__PURE__ */ new Set(), window.addEventListener(w, g)), h[w];
19862
19863
  }
19863
19864
  function _(w, M) {
19864
19865
  let I = w.get(M);
@@ -19874,7 +19875,7 @@ function Sb() {
19874
19875
  return !1;
19875
19876
  }
19876
19877
  function C(w, M) {
19877
- const I = d[w];
19878
+ const I = h[w];
19878
19879
  return !!(I !== void 0 && I.has(M));
19879
19880
  }
19880
19881
  function b(w, M, I, B) {
@@ -19894,8 +19895,8 @@ function Sb() {
19894
19895
  return;
19895
19896
  const Q = B === !0 || typeof B == "object" && B.capture === !0, N = Q ? "capture" : "bubble", H = m(N, w), E = _(H, M);
19896
19897
  if (M === window && !S(M, Q ? "bubble" : "capture", w, I) && C(w, I)) {
19897
- const L = d[w];
19898
- L.delete(I), L.size === 0 && (window.removeEventListener(w, g), d[w] = void 0);
19898
+ const L = h[w];
19899
+ L.delete(I), L.size === 0 && (window.removeEventListener(w, g), h[w] = void 0);
19899
19900
  }
19900
19901
  E.has(I) && E.delete(I), E.size === 0 && H.delete(M), H.size === 0 && (window.removeEventListener(w, p, N === "capture"), u[N][w] = void 0);
19901
19902
  }
@@ -20171,25 +20172,25 @@ const eh = te({
20171
20172
  for (; v = Qd(v), v !== null; )
20172
20173
  r.push(v);
20173
20174
  for (const _ of r)
20174
- qt("scroll", _, d, !0);
20175
+ qt("scroll", _, h, !0);
20175
20176
  }, a = () => {
20176
20177
  for (const v of r)
20177
- wt("scroll", v, d, !0);
20178
+ wt("scroll", v, h, !0);
20178
20179
  r = [];
20179
20180
  }, l = /* @__PURE__ */ new Set(), c = (v) => {
20180
20181
  l.size === 0 && o(), l.has(v) || l.add(v);
20181
20182
  }, u = (v) => {
20182
20183
  l.has(v) && l.delete(v), l.size === 0 && a();
20183
- }, d = () => {
20184
+ }, h = () => {
20184
20185
  Wd(f);
20185
20186
  }, f = () => {
20186
20187
  l.forEach((v) => v());
20187
- }, h = /* @__PURE__ */ new Set(), p = (v) => {
20188
- h.size === 0 && qt("resize", window, m), h.has(v) || h.add(v);
20188
+ }, d = /* @__PURE__ */ new Set(), p = (v) => {
20189
+ d.size === 0 && qt("resize", window, m), d.has(v) || d.add(v);
20189
20190
  }, g = (v) => {
20190
- h.has(v) && h.delete(v), h.size === 0 && wt("resize", window, m);
20191
+ d.has(v) && d.delete(v), d.size === 0 && wt("resize", window, m);
20191
20192
  }, m = () => {
20192
- h.forEach((v) => v());
20193
+ d.forEach((v) => v());
20193
20194
  };
20194
20195
  return di(() => {
20195
20196
  wt("resize", window, m), a();
@@ -20454,15 +20455,15 @@ function Jb(e, t, i, n, s, r, o, a, l) {
20454
20455
  const u = So(i, a);
20455
20456
  if (u !== null && !r)
20456
20457
  return u;
20457
- const d = u ?? Xb(i);
20458
- if (c === void 0 && (c = t.render(n)), d.textContent = c, u !== null)
20458
+ const h = u ?? Xb(i);
20459
+ if (c === void 0 && (c = t.render(n)), h.textContent = c, u !== null)
20459
20460
  return u;
20460
20461
  if (o) {
20461
20462
  const f = a.querySelector(`meta[name="${o}"]`);
20462
20463
  if (f)
20463
- return a.insertBefore(d, f), Kc(t.els, d), d;
20464
+ return a.insertBefore(h, f), Kc(t.els, h), h;
20464
20465
  }
20465
- return s ? a.insertBefore(d, a.querySelector("style, link")) : a.appendChild(d), Kc(t.els, d), d;
20466
+ return s ? a.insertBefore(h, a.querySelector("style, link")) : a.appendChild(h), Kc(t.els, h), h;
20466
20467
  }
20467
20468
  function Qb(e) {
20468
20469
  return Kb(this, this.instance, e);
@@ -20682,36 +20683,36 @@ function l1(e, t, i, n, s, r) {
20682
20683
  top: 0,
20683
20684
  left: 0
20684
20685
  };
20685
- const u = (h, p, g) => {
20686
+ const u = (d, p, g) => {
20686
20687
  let m = 0, v = 0;
20687
- const _ = i[h] - t[p] - t[h];
20688
+ const _ = i[d] - t[p] - t[d];
20688
20689
  return _ > 0 && n && (g ? v = eu[p] ? _ : -_ : m = eu[p] ? _ : -_), {
20689
20690
  left: m,
20690
20691
  top: v
20691
20692
  };
20692
- }, d = o === "left" || o === "right";
20693
+ }, h = o === "left" || o === "right";
20693
20694
  if (l !== "center") {
20694
- const h = a1[e], p = Br[h], g = fa[h];
20695
+ const d = a1[e], p = Br[d], g = fa[d];
20695
20696
  if (i[g] > t[g]) {
20696
20697
  if (
20697
20698
  // current space is not enough
20698
20699
  // ----------[ target ]---------|
20699
20700
  // -------[ follower ]
20700
- t[h] + t[g] < i[g]
20701
+ t[d] + t[g] < i[g]
20701
20702
  ) {
20702
20703
  const m = (i[g] - t[g]) / 2;
20703
- t[h] < m || t[p] < m ? t[h] < t[p] ? (l = Qc[a], c = u(g, p, d)) : c = u(g, h, d) : l = "center";
20704
+ t[d] < m || t[p] < m ? t[d] < t[p] ? (l = Qc[a], c = u(g, p, h)) : c = u(g, d, h) : l = "center";
20704
20705
  }
20705
20706
  } else i[g] < t[g] && t[p] < 0 && // opposite align has larger space
20706
20707
  // ------------[ target ]
20707
20708
  // ----------------[follower]
20708
- t[h] > t[p] && (l = Qc[a]);
20709
+ t[d] > t[p] && (l = Qc[a]);
20709
20710
  } else {
20710
- const h = o === "bottom" || o === "top" ? "left" : "top", p = Br[h], g = fa[h], m = (i[g] - t[g]) / 2;
20711
+ const d = o === "bottom" || o === "top" ? "left" : "top", p = Br[d], g = fa[d], m = (i[g] - t[g]) / 2;
20711
20712
  // center is not enough
20712
20713
  // ----------- [ target ]--|
20713
20714
  // -------[ follower ]
20714
- (t[h] < m || t[p] < m) && (t[h] > t[p] ? (l = tu[h], c = u(g, h, d)) : (l = tu[p], c = u(g, p, d)));
20715
+ (t[d] < m || t[p] < m) && (t[d] > t[p] ? (l = tu[d], c = u(g, d, h)) : (l = tu[p], c = u(g, p, h)));
20715
20716
  }
20716
20717
  let f = o;
20717
20718
  return (
@@ -20961,7 +20962,7 @@ const d1 = _n([
20961
20962
  const f = n.value;
20962
20963
  if (f === null)
20963
20964
  return;
20964
- const h = t.targetRef, { x: p, y: g, overlap: m } = e, v = p !== void 0 && g !== void 0 ? Bb(p, g) : ha(h);
20965
+ const d = t.targetRef, { x: p, y: g, overlap: m } = e, v = p !== void 0 && g !== void 0 ? Bb(p, g) : ha(d);
20965
20966
  f.style.setProperty("--v-target-width", `${Math.round(v.width)}px`), f.style.setProperty("--v-target-height", `${Math.round(v.height)}px`);
20966
20967
  const { width: _, minWidth: S, placement: C, internalShift: b, flip: $ } = e;
20967
20968
  f.setAttribute("v-placement", C), m ? f.setAttribute("v-overlap", "") : f.removeAttribute("v-overlap");
@@ -20992,7 +20993,7 @@ const d1 = _n([
20992
20993
  }), Oe(je(e, "syncTrigger"), (f) => {
20993
20994
  f.includes("resize") ? t.addResizeListener(l) : t.removeResizeListener(l), f.includes("scroll") ? t.addScrollListener(l) : t.removeScrollListener(l);
20994
20995
  });
20995
- const u = Co(), d = vi(() => {
20996
+ const u = Co(), h = vi(() => {
20996
20997
  const { to: f } = e;
20997
20998
  if (f !== void 0)
20998
20999
  return f;
@@ -21003,7 +21004,7 @@ const d1 = _n([
21003
21004
  mergedEnabled: i,
21004
21005
  offsetContainerRef: s,
21005
21006
  followerRef: n,
21006
- mergedTo: d,
21007
+ mergedTo: h,
21007
21008
  syncPosition: l
21008
21009
  };
21009
21010
  },
@@ -21115,11 +21116,11 @@ var Yn = function(e) {
21115
21116
  return Ir.get(e);
21116
21117
  if (ch(e))
21117
21118
  return Ir.set(e, ru), ru;
21118
- var i = getComputedStyle(e), n = _l(e) && e.ownerSVGElement && e.getBBox(), s = !_1 && i.boxSizing === "border-box", r = v1.test(i.writingMode || ""), o = !n && su.test(i.overflowY || ""), a = !n && su.test(i.overflowX || ""), l = n ? 0 : Ei(i.paddingTop), c = n ? 0 : Ei(i.paddingRight), u = n ? 0 : Ei(i.paddingBottom), d = n ? 0 : Ei(i.paddingLeft), f = n ? 0 : Ei(i.borderTopWidth), h = n ? 0 : Ei(i.borderRightWidth), p = n ? 0 : Ei(i.borderBottomWidth), g = n ? 0 : Ei(i.borderLeftWidth), m = d + c, v = l + u, _ = g + h, S = f + p, C = a ? e.offsetHeight - S - e.clientHeight : 0, b = o ? e.offsetWidth - _ - e.clientWidth : 0, $ = s ? m + _ : 0, w = s ? v + S : 0, M = n ? n.width : Ei(i.width) - $ - b, I = n ? n.height : Ei(i.height) - w - C, B = M + m + b + _, Z = I + v + C + S, Q = Yn({
21119
+ var i = getComputedStyle(e), n = _l(e) && e.ownerSVGElement && e.getBBox(), s = !_1 && i.boxSizing === "border-box", r = v1.test(i.writingMode || ""), o = !n && su.test(i.overflowY || ""), a = !n && su.test(i.overflowX || ""), l = n ? 0 : Ei(i.paddingTop), c = n ? 0 : Ei(i.paddingRight), u = n ? 0 : Ei(i.paddingBottom), h = n ? 0 : Ei(i.paddingLeft), f = n ? 0 : Ei(i.borderTopWidth), d = n ? 0 : Ei(i.borderRightWidth), p = n ? 0 : Ei(i.borderBottomWidth), g = n ? 0 : Ei(i.borderLeftWidth), m = h + c, v = l + u, _ = g + d, S = f + p, C = a ? e.offsetHeight - S - e.clientHeight : 0, b = o ? e.offsetWidth - _ - e.clientWidth : 0, $ = s ? m + _ : 0, w = s ? v + S : 0, M = n ? n.width : Ei(i.width) - $ - b, I = n ? n.height : Ei(i.height) - w - C, B = M + m + b + _, Z = I + v + C + S, Q = Yn({
21119
21120
  devicePixelContentBoxSize: $s(Math.round(M * devicePixelRatio), Math.round(I * devicePixelRatio), r),
21120
21121
  borderBoxSize: $s(B, Z, r),
21121
21122
  contentBoxSize: $s(M, I, r),
21122
- contentRect: new lh(d, l, M, I)
21123
+ contentRect: new lh(h, l, M, I)
21123
21124
  });
21124
21125
  return Ir.set(e, Q), Q;
21125
21126
  }, dh = function(e, t, i) {
@@ -21150,8 +21151,8 @@ var Yn = function(e) {
21150
21151
  if (o.activeTargets.length !== 0) {
21151
21152
  var a = [];
21152
21153
  o.activeTargets.forEach(function(c) {
21153
- var u = new y1(c.target), d = hh(c.target);
21154
- a.push(u), c.lastReportedSize = dh(c.target, c.observedBox), d < e && (e = d);
21154
+ var u = new y1(c.target), h = hh(c.target);
21155
+ a.push(u), c.lastReportedSize = dh(c.target, c.observedBox), h < e && (e = h);
21155
21156
  }), t.push(function() {
21156
21157
  o.callback.call(o.observer, a, o.observer);
21157
21158
  }), o.activeTargets.splice(0, o.activeTargets.length);
@@ -21383,8 +21384,8 @@ function B1({ columnsRef: e, renderColRef: t, renderItemWithColsRef: i }) {
21383
21384
  if (c.length === 0)
21384
21385
  return null;
21385
21386
  const u = new oh(c.length, 0);
21386
- return c.forEach((d, f) => {
21387
- u.add(f, d.width);
21387
+ return c.forEach((h, f) => {
21388
+ u.add(f, h.width);
21388
21389
  }), u;
21389
21390
  }), o = vi(() => {
21390
21391
  const c = r.value;
@@ -21537,7 +21538,7 @@ const hu = te({
21537
21538
  n = !0;
21538
21539
  return;
21539
21540
  }
21540
- m({ top: h.value, left: o.value });
21541
+ m({ top: d.value, left: o.value });
21541
21542
  }), zu(() => {
21542
21543
  i = !0, n || (n = !0);
21543
21544
  });
@@ -21557,13 +21558,13 @@ const hu = te({
21557
21558
  columnsRef: je(e, "columns"),
21558
21559
  renderColRef: je(e, "renderCol"),
21559
21560
  renderItemWithColsRef: je(e, "renderItemWithCols")
21560
- }), l = W(null), c = W(void 0), u = /* @__PURE__ */ new Map(), d = z(() => {
21561
+ }), l = W(null), c = W(void 0), u = /* @__PURE__ */ new Map(), h = z(() => {
21561
21562
  const { items: N, itemSize: H, keyField: E } = e, J = new oh(N.length, H);
21562
21563
  return N.forEach((L, O) => {
21563
21564
  const K = L[E], q = u.get(K);
21564
21565
  q !== void 0 && J.add(O, q);
21565
21566
  }), J;
21566
- }), f = W(0), h = W(0), p = vi(() => Math.max(d.value.getBound(h.value - sr(e.paddingTop)) - 1, 0)), g = z(() => {
21567
+ }), f = W(0), d = W(0), p = vi(() => Math.max(h.value.getBound(d.value - sr(e.paddingTop)) - 1, 0)), g = z(() => {
21567
21568
  const { value: N } = c;
21568
21569
  if (N === void 0)
21569
21570
  return [];
@@ -21588,7 +21589,7 @@ const hu = te({
21588
21589
  };
21589
21590
  let v, _ = null;
21590
21591
  function S(N, H, E) {
21591
- const { value: J } = d, L = J.sum(N) + sr(e.paddingTop);
21592
+ const { value: J } = h, L = J.sum(N) + sr(e.paddingTop);
21592
21593
  if (!E)
21593
21594
  l.value.scrollTo({
21594
21595
  left: 0,
@@ -21626,7 +21627,7 @@ const hu = te({
21626
21627
  var E, J, L;
21627
21628
  if (i || e.ignoreItemResize || Q(H.target))
21628
21629
  return;
21629
- const { value: O } = d, K = r.value.get(N), q = O.get(K), ie = (L = (J = (E = H.borderBoxSize) === null || E === void 0 ? void 0 : E[0]) === null || J === void 0 ? void 0 : J.blockSize) !== null && L !== void 0 ? L : H.contentRect.height;
21630
+ const { value: O } = h, K = r.value.get(N), q = O.get(K), ie = (L = (J = (E = H.borderBoxSize) === null || E === void 0 ? void 0 : E[0]) === null || J === void 0 ? void 0 : J.blockSize) !== null && L !== void 0 ? L : H.contentRect.height;
21630
21631
  if (ie === q)
21631
21632
  return;
21632
21633
  ie - e.itemSize === 0 ? u.delete(N) : u.set(N, ie - e.itemSize);
@@ -21684,7 +21685,7 @@ const hu = te({
21684
21685
  }
21685
21686
  function Z() {
21686
21687
  const { value: N } = l;
21687
- N != null && (h.value = N.scrollTop, o.value = N.scrollLeft);
21688
+ N != null && (d.value = N.scrollTop, o.value = N.scrollLeft);
21688
21689
  }
21689
21690
  function Q(N) {
21690
21691
  let H = N;
@@ -21702,7 +21703,7 @@ const hu = te({
21702
21703
  },
21703
21704
  keyToIndex: r,
21704
21705
  itemsStyle: z(() => {
21705
- const { itemResizable: N } = e, H = Bs(d.value.sum());
21706
+ const { itemResizable: N } = e, H = Bs(h.value.sum());
21706
21707
  return f.value, [
21707
21708
  e.itemsStyle,
21708
21709
  {
@@ -21716,7 +21717,7 @@ const hu = te({
21716
21717
  ];
21717
21718
  }),
21718
21719
  visibleItemsStyle: z(() => (f.value, {
21719
- transform: `translateY(${Bs(d.value.sum(p.value))})`
21720
+ transform: `translateY(${Bs(h.value.sum(p.value))})`
21720
21721
  })),
21721
21722
  viewportItems: g,
21722
21723
  listElRef: l,
@@ -21753,15 +21754,15 @@ const hu = te({
21753
21754
  default: () => {
21754
21755
  const { renderCol: o, renderItemWithCols: a } = this;
21755
21756
  return this.viewportItems.map((l) => {
21756
- const c = l[t], u = i.get(c), d = o != null ? A(hu, {
21757
+ const c = l[t], u = i.get(c), h = o != null ? A(hu, {
21757
21758
  index: u,
21758
21759
  item: l
21759
21760
  }) : void 0, f = a != null ? A(hu, {
21760
21761
  index: u,
21761
21762
  item: l
21762
- }) : void 0, h = this.$slots.default({
21763
+ }) : void 0, d = this.$slots.default({
21763
21764
  item: l,
21764
- renderedCols: d,
21765
+ renderedCols: h,
21765
21766
  renderedItemWithCols: f,
21766
21767
  index: u
21767
21768
  })[0];
@@ -21769,8 +21770,8 @@ const hu = te({
21769
21770
  key: c,
21770
21771
  onResize: (p) => this.handleItemResize(c, p)
21771
21772
  }, {
21772
- default: () => h
21773
- }) : (h.key = c, h);
21773
+ default: () => d
21774
+ }) : (d.key = c, d);
21774
21775
  });
21775
21776
  }
21776
21777
  })
@@ -21798,29 +21799,29 @@ const hu = te({
21798
21799
  if (l !== void 0 ? u = l() : u = n.value, !a || !u)
21799
21800
  return;
21800
21801
  u.hasAttribute(Xi) && u.removeAttribute(Xi);
21801
- const { children: d } = a;
21802
+ const { children: h } = a;
21802
21803
  if (o.showAllItemsBeforeCalculate)
21803
- for (const S of d)
21804
+ for (const S of h)
21804
21805
  S.hasAttribute(Xi) && S.removeAttribute(Xi);
21805
- const f = a.offsetWidth, h = [], p = t.tail ? c == null ? void 0 : c() : null;
21806
+ const f = a.offsetWidth, d = [], p = t.tail ? c == null ? void 0 : c() : null;
21806
21807
  let g = p ? p.offsetWidth : 0, m = !1;
21807
21808
  const v = a.children.length - (t.tail ? 1 : 0);
21808
21809
  for (let S = 0; S < v - 1; ++S) {
21809
21810
  if (S < 0)
21810
21811
  continue;
21811
- const C = d[S];
21812
+ const C = h[S];
21812
21813
  if (m) {
21813
21814
  C.hasAttribute(Xi) || C.setAttribute(Xi, "");
21814
21815
  continue;
21815
21816
  } else C.hasAttribute(Xi) && C.removeAttribute(Xi);
21816
21817
  const b = C.offsetWidth;
21817
- if (g += b, h[S] = b, g > f) {
21818
+ if (g += b, d[S] = b, g > f) {
21818
21819
  const { updateCounter: $ } = e;
21819
21820
  for (let w = S; w >= 0; --w) {
21820
21821
  const M = v - 1 - w;
21821
21822
  $ !== void 0 ? $(M) : u.textContent = `${M}`;
21822
21823
  const I = u.offsetWidth;
21823
- if (g -= h[w], g + I <= f || w === 0) {
21824
+ if (g -= d[w], g + I <= f || w === 0) {
21824
21825
  m = !0, S = w - 1, p && (S === -1 ? (p.style.maxWidth = `${f - I}px`, p.style.boxSizing = "border-box") : p.style.maxWidth = "");
21825
21826
  const { onUpdateCount: B } = e;
21826
21827
  B && B(M);
@@ -21944,7 +21945,7 @@ const N1 = te({
21944
21945
  }
21945
21946
  gt(() => {
21946
21947
  Oe(() => e.active, (m) => {
21947
- m ? (d(), qt("keydown", document, l)) : (wt("keydown", document, l), s && f());
21948
+ m ? (h(), qt("keydown", document, l)) : (wt("keydown", document, l), s && f());
21948
21949
  }, {
21949
21950
  immediate: !0
21950
21951
  });
@@ -21956,7 +21957,7 @@ const N1 = te({
21956
21957
  const v = u();
21957
21958
  if (v === null || v.contains(nr(m)))
21958
21959
  return;
21959
- h("first");
21960
+ d("first");
21960
21961
  }
21961
21962
  }
21962
21963
  function u() {
@@ -21968,12 +21969,12 @@ const N1 = te({
21968
21969
  ;
21969
21970
  return v;
21970
21971
  }
21971
- function d() {
21972
+ function h() {
21972
21973
  var m;
21973
21974
  if (!e.disabled) {
21974
21975
  if (Is.push(t), e.autoFocus) {
21975
21976
  const { initialFocusTo: v } = e;
21976
- v === void 0 ? h("first") : (m = Jc(v)) === null || m === void 0 || m.focus({ preventScroll: !0 });
21977
+ v === void 0 ? d("first") : (m = Jc(v)) === null || m === void 0 || m.focus({ preventScroll: !0 });
21977
21978
  }
21978
21979
  s = !0, document.addEventListener("focus", c, !0);
21979
21980
  }
@@ -21985,7 +21986,7 @@ const N1 = te({
21985
21986
  const { finalFocusTo: v } = e;
21986
21987
  v !== void 0 ? (m = Jc(v)) === null || m === void 0 || m.focus({ preventScroll: !0 }) : e.returnFocusOnDeactivated && o instanceof HTMLElement && (r = !0, o.focus({ preventScroll: !0 }), r = !1);
21987
21988
  }
21988
- function h(m) {
21989
+ function d(m) {
21989
21990
  if (a() && e.active) {
21990
21991
  const v = i.value, _ = n.value;
21991
21992
  if (v !== null && _ !== null) {
@@ -22004,10 +22005,10 @@ const N1 = te({
22004
22005
  if (r)
22005
22006
  return;
22006
22007
  const v = u();
22007
- v !== null && (m.relatedTarget !== null && v.contains(m.relatedTarget) ? h("last") : h("first"));
22008
+ v !== null && (m.relatedTarget !== null && v.contains(m.relatedTarget) ? d("last") : d("first"));
22008
22009
  }
22009
22010
  function g(m) {
22010
- r || (m.relatedTarget !== null && m.relatedTarget === i.value ? h("last") : h("first"));
22011
+ r || (m.relatedTarget !== null && m.relatedTarget === i.value ? d("last") : d("first"));
22011
22012
  }
22012
22013
  return {
22013
22014
  focusableStartRef: i,
@@ -22354,10 +22355,10 @@ function as(e, t, i, n) {
22354
22355
  i || $h("useThemeClass", "cssVarsRef is not passed");
22355
22356
  const s = Ke(rs, null), r = s == null ? void 0 : s.mergedThemeHashRef, o = s == null ? void 0 : s.styleMountTarget, a = W(""), l = ss();
22356
22357
  let c;
22357
- const u = `__${e}`, d = () => {
22358
+ const u = `__${e}`, h = () => {
22358
22359
  let f = u;
22359
- const h = t ? t.value : void 0, p = r == null ? void 0 : r.value;
22360
- p && (f += `-${p}`), h && (f += `-${h}`);
22360
+ const d = t ? t.value : void 0, p = r == null ? void 0 : r.value;
22361
+ p && (f += `-${p}`), d && (f += `-${d}`);
22361
22362
  const {
22362
22363
  themeOverrides: g,
22363
22364
  builtinThemeOverrides: m
@@ -22375,7 +22376,7 @@ function as(e, t, i, n) {
22375
22376
  };
22376
22377
  };
22377
22378
  return on(() => {
22378
- d();
22379
+ h();
22379
22380
  }), {
22380
22381
  themeClass: a,
22381
22382
  onRender: () => {
@@ -22585,9 +22586,9 @@ function Ls(e) {
22585
22586
  const n = i.width, s = n && e.matchPatterns[n] || e.matchPatterns[e.defaultMatchWidth], r = t.match(s);
22586
22587
  if (!r)
22587
22588
  return null;
22588
- const o = r[0], a = n && e.parsePatterns[n] || e.parsePatterns[e.defaultParseWidth], l = Array.isArray(a) ? sw(a, (d) => d.test(o)) : (
22589
+ const o = r[0], a = n && e.parsePatterns[n] || e.parsePatterns[e.defaultParseWidth], l = Array.isArray(a) ? sw(a, (h) => h.test(o)) : (
22589
22590
  // eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type
22590
- nw(a, (d) => d.test(o))
22591
+ nw(a, (h) => h.test(o))
22591
22592
  );
22592
22593
  let c;
22593
22594
  c = e.valueCallback ? e.valueCallback(l) : l, c = i.valueCallback ? (
@@ -23137,15 +23138,15 @@ function Nt(e, t, i, n, s, r) {
23137
23138
  const {
23138
23139
  theme: {
23139
23140
  common: u,
23140
- self: d,
23141
+ self: h,
23141
23142
  peers: f = {}
23142
23143
  } = {},
23143
- themeOverrides: h = {},
23144
+ themeOverrides: d = {},
23144
23145
  builtinThemeOverrides: p = {}
23145
23146
  } = s, {
23146
23147
  common: g,
23147
23148
  peers: m
23148
- } = h, {
23149
+ } = d, {
23149
23150
  common: v = void 0,
23150
23151
  [e]: {
23151
23152
  common: _ = void 0,
@@ -23160,10 +23161,10 @@ function Nt(e, t, i, n, s, r) {
23160
23161
  peers: M = {}
23161
23162
  } = $, I = br({}, u || _ || v || n.common, b, w, g), B = br(
23162
23163
  // {}, executed every time, no need for empty obj
23163
- (c = d || S || n.self) === null || c === void 0 ? void 0 : c(I),
23164
+ (c = h || S || n.self) === null || c === void 0 ? void 0 : c(I),
23164
23165
  p,
23165
23166
  $,
23166
- h
23167
+ d
23167
23168
  );
23168
23169
  return {
23169
23170
  common: I,
@@ -23980,7 +23981,7 @@ const Oh = {
23980
23981
  mergedClsPrefixRef: t,
23981
23982
  inlineThemeDisabled: i,
23982
23983
  mergedRtlRef: n
23983
- } = os(e), s = $o("Scrollbar", n, t), r = W(null), o = W(null), a = W(null), l = W(null), c = W(null), u = W(null), d = W(null), f = W(null), h = W(null), p = W(null), g = W(null), m = W(0), v = W(0), _ = W(!1), S = W(!1);
23984
+ } = os(e), s = $o("Scrollbar", n, t), r = W(null), o = W(null), a = W(null), l = W(null), c = W(null), u = W(null), h = W(null), f = W(null), d = W(null), p = W(null), g = W(null), m = W(0), v = W(0), _ = W(!1), S = W(!1);
23984
23985
  let C = !1, b = !1, $, w, M = 0, I = 0, B = 0, Z = 0;
23985
23986
  const Q = Ob(), N = Nt("Scrollbar", "-scrollbar", o2, Oh, e, t), H = z(() => {
23986
23987
  const {
@@ -23994,9 +23995,9 @@ const Oh = {
23994
23995
  }), E = z(() => `${H.value}px`), J = z(() => {
23995
23996
  const {
23996
23997
  value: P
23997
- } = h, {
23998
- value: G
23999
23998
  } = d, {
23999
+ value: G
24000
+ } = h, {
24000
24001
  value: le
24001
24002
  } = g;
24002
24003
  return P === null || G === null || le === null ? 0 : le * P / G + sr(N.value.self.height) * 1.5;
@@ -24019,11 +24020,11 @@ const Oh = {
24019
24020
  }), K = z(() => `${O.value}px`), q = z(() => {
24020
24021
  const {
24021
24022
  value: P
24022
- } = h, {
24023
+ } = d, {
24023
24024
  value: G
24024
24025
  } = v, {
24025
24026
  value: le
24026
- } = d, {
24027
+ } = h, {
24027
24028
  value: ve
24028
24029
  } = g;
24029
24030
  if (P === null || le === null || ve === null)
@@ -24042,9 +24043,9 @@ const Oh = {
24042
24043
  }), U = z(() => {
24043
24044
  const {
24044
24045
  value: P
24045
- } = h, {
24046
+ } = d, {
24046
24047
  value: G
24047
- } = d;
24048
+ } = h;
24048
24049
  return P !== null && G !== null && G > P;
24049
24050
  }), ae = z(() => {
24050
24051
  const {
@@ -24170,11 +24171,11 @@ const Oh = {
24170
24171
  const {
24171
24172
  value: P
24172
24173
  } = ke;
24173
- P && (u.value = P.offsetHeight, d.value = P.offsetWidth);
24174
+ P && (u.value = P.offsetHeight, h.value = P.offsetWidth);
24174
24175
  const {
24175
24176
  value: G
24176
24177
  } = he;
24177
- G && (f.value = G.offsetHeight, h.value = G.offsetWidth);
24178
+ G && (f.value = G.offsetHeight, d.value = G.offsetWidth);
24178
24179
  const {
24179
24180
  value: le
24180
24181
  } = c, {
@@ -24186,7 +24187,7 @@ const Oh = {
24186
24187
  const {
24187
24188
  value: P
24188
24189
  } = he;
24189
- P && (m.value = P.scrollTop, v.value = P.scrollLeft * (s != null && s.value ? -1 : 1), f.value = P.offsetHeight, h.value = P.offsetWidth, u.value = P.scrollHeight, d.value = P.scrollWidth);
24190
+ P && (m.value = P.scrollTop, v.value = P.scrollLeft * (s != null && s.value ? -1 : 1), f.value = P.offsetHeight, d.value = P.offsetWidth, u.value = P.scrollHeight, h.value = P.scrollWidth);
24190
24191
  const {
24191
24192
  value: G
24192
24193
  } = c, {
@@ -24209,9 +24210,9 @@ const Oh = {
24209
24210
  $ !== void 0 && window.clearTimeout($), w !== void 0 && window.clearTimeout(w);
24210
24211
  const {
24211
24212
  value: G
24212
- } = h, {
24213
- value: le
24214
24213
  } = d, {
24214
+ value: le
24215
+ } = h, {
24215
24216
  value: ve
24216
24217
  } = J;
24217
24218
  if (G === null || le === null) return;
@@ -24387,9 +24388,9 @@ const Oh = {
24387
24388
  xScrollable: l
24388
24389
  } = this;
24389
24390
  if (!this.scrollable) return (e = t.default) === null || e === void 0 ? void 0 : e.call(t);
24390
- const c = this.trigger === "none", u = (h, p) => A("div", {
24391
+ const c = this.trigger === "none", u = (d, p) => A("div", {
24391
24392
  ref: "yRailRef",
24392
- class: [`${i}-scrollbar-rail`, `${i}-scrollbar-rail--vertical`, `${i}-scrollbar-rail--vertical--${o}`, h],
24393
+ class: [`${i}-scrollbar-rail`, `${i}-scrollbar-rail--vertical`, `${i}-scrollbar-rail--vertical--${o}`, d],
24393
24394
  "data-scrollbar-rail": !0,
24394
24395
  style: [p || "", this.verticalRailStyle],
24395
24396
  "aria-hidden": !0
@@ -24404,9 +24405,9 @@ const Oh = {
24404
24405
  },
24405
24406
  onMousedown: this.handleYScrollMouseDown
24406
24407
  }) : null
24407
- })), d = () => {
24408
- var h, p;
24409
- return (h = this.onRender) === null || h === void 0 || h.call(this), A("div", el(this.$attrs, {
24408
+ })), h = () => {
24409
+ var d, p;
24410
+ return (d = this.onRender) === null || d === void 0 || d.call(this), A("div", el(this.$attrs, {
24410
24411
  role: "none",
24411
24412
  ref: "wrapperRef",
24412
24413
  class: [`${i}-scrollbar`, this.themeClass, s && `${i}-scrollbar--rtl`],
@@ -24450,10 +24451,10 @@ const Oh = {
24450
24451
  onMousedown: this.handleXScrollMouseDown
24451
24452
  }) : null
24452
24453
  }))]);
24453
- }, f = this.container ? d() : A(ao, {
24454
+ }, f = this.container ? h() : A(ao, {
24454
24455
  onResize: this.handleContainerResize
24455
24456
  }, {
24456
- default: d
24457
+ default: h
24457
24458
  });
24458
24459
  return r ? A(Fe, null, f, u(this.themeClass, this.cssVars)) : f;
24459
24460
  }
@@ -24540,21 +24541,21 @@ const Ih = {
24540
24541
  } = os(e), s = Nt("Empty", "-empty", d2, Ih, e, t), {
24541
24542
  localeRef: r
24542
24543
  } = Ph("Empty"), o = z(() => {
24543
- var u, d, f;
24544
- return (u = e.description) !== null && u !== void 0 ? u : (f = (d = n == null ? void 0 : n.value) === null || d === void 0 ? void 0 : d.Empty) === null || f === void 0 ? void 0 : f.description;
24544
+ var u, h, f;
24545
+ return (u = e.description) !== null && u !== void 0 ? u : (f = (h = n == null ? void 0 : n.value) === null || h === void 0 ? void 0 : h.Empty) === null || f === void 0 ? void 0 : f.description;
24545
24546
  }), a = z(() => {
24546
- var u, d;
24547
- return ((d = (u = n == null ? void 0 : n.value) === null || u === void 0 ? void 0 : u.Empty) === null || d === void 0 ? void 0 : d.renderIcon) || (() => A(Xw, null));
24547
+ var u, h;
24548
+ return ((h = (u = n == null ? void 0 : n.value) === null || u === void 0 ? void 0 : u.Empty) === null || h === void 0 ? void 0 : h.renderIcon) || (() => A(Xw, null));
24548
24549
  }), l = z(() => {
24549
24550
  const {
24550
24551
  size: u
24551
24552
  } = e, {
24552
24553
  common: {
24553
- cubicBezierEaseInOut: d
24554
+ cubicBezierEaseInOut: h
24554
24555
  },
24555
24556
  self: {
24556
24557
  [ut("iconSize", u)]: f,
24557
- [ut("fontSize", u)]: h,
24558
+ [ut("fontSize", u)]: d,
24558
24559
  textColor: p,
24559
24560
  iconColor: g,
24560
24561
  extraTextColor: m
@@ -24562,8 +24563,8 @@ const Ih = {
24562
24563
  } = s.value;
24563
24564
  return {
24564
24565
  "--n-icon-size": f,
24565
- "--n-font-size": h,
24566
- "--n-bezier": d,
24566
+ "--n-font-size": d,
24567
+ "--n-bezier": h,
24567
24568
  "--n-text-color": p,
24568
24569
  "--n-icon-color": g,
24569
24570
  "--n-extra-text-color": m
@@ -24571,9 +24572,9 @@ const Ih = {
24571
24572
  }), c = i ? as("empty", z(() => {
24572
24573
  let u = "";
24573
24574
  const {
24574
- size: d
24575
+ size: h
24575
24576
  } = e;
24576
- return u += d[0], u;
24577
+ return u += h[0], u;
24577
24578
  }), l, e) : void 0;
24578
24579
  return {
24579
24580
  mergedClsPrefix: t,
@@ -24631,9 +24632,9 @@ function g2(e) {
24631
24632
  primaryColor: l,
24632
24633
  opacityDisabled: c,
24633
24634
  hoverColor: u,
24634
- fontSizeTiny: d,
24635
+ fontSizeTiny: h,
24635
24636
  fontSizeSmall: f,
24636
- fontSizeMedium: h,
24637
+ fontSizeMedium: d,
24637
24638
  fontSizeLarge: p,
24638
24639
  fontSizeHuge: g,
24639
24640
  heightTiny: m,
@@ -24643,9 +24644,9 @@ function g2(e) {
24643
24644
  heightHuge: C
24644
24645
  } = e;
24645
24646
  return Object.assign(Object.assign({}, p2), {
24646
- optionFontSizeTiny: d,
24647
+ optionFontSizeTiny: h,
24647
24648
  optionFontSizeSmall: f,
24648
- optionFontSizeMedium: h,
24649
+ optionFontSizeMedium: d,
24649
24650
  optionFontSizeLarge: p,
24650
24651
  optionFontSizeHuge: g,
24651
24652
  optionHeightTiny: m,
@@ -24762,9 +24763,9 @@ const Tu = te({
24762
24763
  valueFieldRef: l,
24763
24764
  showCheckmarkRef: c,
24764
24765
  nodePropsRef: u,
24765
- handleOptionClick: d,
24766
+ handleOptionClick: h,
24766
24767
  handleOptionMouseEnter: f
24767
- } = Ke(yl), h = vi(() => {
24768
+ } = Ke(yl), d = vi(() => {
24768
24769
  const {
24769
24770
  value: v
24770
24771
  } = i;
@@ -24774,7 +24775,7 @@ const Tu = te({
24774
24775
  const {
24775
24776
  tmNode: _
24776
24777
  } = e;
24777
- _.disabled || d(v, _);
24778
+ _.disabled || h(v, _);
24778
24779
  }
24779
24780
  function g(v) {
24780
24781
  const {
@@ -24787,7 +24788,7 @@ const Tu = te({
24787
24788
  tmNode: _
24788
24789
  } = e, {
24789
24790
  value: S
24790
- } = h;
24791
+ } = d;
24791
24792
  _.disabled || S || f(v, _);
24792
24793
  }
24793
24794
  return {
@@ -24802,7 +24803,7 @@ const Tu = te({
24802
24803
  }),
24803
24804
  showCheckmark: c,
24804
24805
  nodeProps: u,
24805
- isPending: h,
24806
+ isPending: d,
24806
24807
  isSelected: vi(() => {
24807
24808
  const {
24808
24809
  value: v
@@ -24842,8 +24843,8 @@ const Tu = te({
24842
24843
  renderLabel: l,
24843
24844
  handleClick: c,
24844
24845
  handleMouseEnter: u,
24845
- handleMouseMove: d
24846
- } = this, f = m2(i, e), h = l ? [l(t, i), r && f] : [xs(t[this.labelField], t, i), r && f], p = o == null ? void 0 : o(t), g = A("div", Object.assign({}, p, {
24846
+ handleMouseMove: h
24847
+ } = this, f = m2(i, e), d = l ? [l(t, i), r && f] : [xs(t[this.labelField], t, i), r && f], p = o == null ? void 0 : o(t), g = A("div", Object.assign({}, p, {
24847
24848
  class: [`${e}-base-select-option`, t.class, p == null ? void 0 : p.class, {
24848
24849
  [`${e}-base-select-option--disabled`]: t.disabled,
24849
24850
  [`${e}-base-select-option--selected`]: i,
@@ -24854,10 +24855,10 @@ const Tu = te({
24854
24855
  style: [(p == null ? void 0 : p.style) || "", t.style || ""],
24855
24856
  onClick: ya([c, p == null ? void 0 : p.onClick]),
24856
24857
  onMouseenter: ya([u, p == null ? void 0 : p.onMouseenter]),
24857
- onMousemove: ya([d, p == null ? void 0 : p.onMousemove])
24858
+ onMousemove: ya([h, p == null ? void 0 : p.onMousemove])
24858
24859
  }), A("div", {
24859
24860
  class: `${e}-base-select-option__content`
24860
- }, h));
24861
+ }, d));
24861
24862
  return t.render ? t.render({
24862
24863
  node: g,
24863
24864
  option: t,
@@ -25076,7 +25077,7 @@ const v2 = we("base-select-menu", `
25076
25077
  mergedClsPrefixRef: t,
25077
25078
  mergedRtlRef: i
25078
25079
  } = os(e), n = $o("InternalSelectMenu", i, t), s = Nt("InternalSelectMenu", "-internal-select-menu", v2, zh, e, je(e, "clsPrefix")), r = W(null), o = W(null), a = W(null), l = z(() => e.treeMate.getFlattenedNodes()), c = z(() => ob(l.value)), u = W(null);
25079
- function d() {
25080
+ function h() {
25080
25081
  const {
25081
25082
  treeMate: V
25082
25083
  } = e;
@@ -25092,17 +25093,17 @@ const v2 = we("base-select-menu", `
25092
25093
  } = u;
25093
25094
  V && !e.treeMate.getNode(V.key) && (u.value = null);
25094
25095
  }
25095
- let h;
25096
+ let d;
25096
25097
  Oe(() => e.show, (V) => {
25097
- V ? h = Oe(() => e.treeMate, () => {
25098
- e.resetMenuOnOptionsChange ? (e.autoPending ? d() : f(), Hi(E)) : f();
25098
+ V ? d = Oe(() => e.treeMate, () => {
25099
+ e.resetMenuOnOptionsChange ? (e.autoPending ? h() : f(), Hi(E)) : f();
25099
25100
  }, {
25100
25101
  immediate: !0
25101
- }) : h == null || h();
25102
+ }) : d == null || d();
25102
25103
  }, {
25103
25104
  immediate: !0
25104
25105
  }), di(() => {
25105
- h == null || h();
25106
+ d == null || d();
25106
25107
  });
25107
25108
  const p = z(() => sr(s.value.self[ut("optionHeight", e.size)])), g = z(() => Ti(s.value.self[ut("padding", e.size)])), m = z(() => e.multiple && Array.isArray(e.value) ? new Set(e.value) : /* @__PURE__ */ new Set()), v = z(() => {
25108
25109
  const V = l.value;
@@ -25644,12 +25645,12 @@ const k2 = te({
25644
25645
  namespaceRef: n,
25645
25646
  mergedClsPrefixRef: s,
25646
25647
  inlineThemeDisabled: r
25647
- } = os(e), o = Nt("Popover", "-popover", w2, Dh, e, s), a = W(null), l = Ke("NPopover"), c = W(null), u = W(e.show), d = W(!1);
25648
+ } = os(e), o = Nt("Popover", "-popover", w2, Dh, e, s), a = W(null), l = Ke("NPopover"), c = W(null), u = W(e.show), h = W(!1);
25648
25649
  on(() => {
25649
25650
  const {
25650
25651
  show: w
25651
25652
  } = e;
25652
- w && !G1() && !e.internalDeactivateImmediately && (d.value = !0);
25653
+ w && !G1() && !e.internalDeactivateImmediately && (h.value = !0);
25653
25654
  });
25654
25655
  const f = z(() => {
25655
25656
  const {
@@ -25664,8 +25665,8 @@ const k2 = te({
25664
25665
  capture: !0
25665
25666
  }]), w === "hover" && I.push([Tb, S])), M && I.push([oo, C, void 0, {
25666
25667
  capture: !0
25667
- }]), (e.displayDirective === "show" || e.animated && d.value) && I.push([Lu, e.show]), I;
25668
- }), h = z(() => {
25668
+ }]), (e.displayDirective === "show" || e.animated && h.value) && I.push([Lu, e.show]), I;
25669
+ }), d = z(() => {
25669
25670
  const {
25670
25671
  common: {
25671
25672
  cubicBezierEaseInOut: w,
@@ -25717,8 +25718,8 @@ const k2 = te({
25717
25718
  maxWidth: va(I)
25718
25719
  }), B && M.push({
25719
25720
  maxWidth: va(B)
25720
- }), r || M.push(h.value), M;
25721
- }), g = r ? as("popover", void 0, h, e) : void 0;
25721
+ }), r || M.push(d.value), M;
25722
+ }), g = r ? as("popover", void 0, d, e) : void 0;
25722
25723
  l.setBodyInstance({
25723
25724
  syncPosition: m
25724
25725
  }), di(() => {
@@ -25747,7 +25748,7 @@ const k2 = te({
25747
25748
  }
25748
25749
  ci(xh, c), ci(bh, null), ci(wh, null);
25749
25750
  function $() {
25750
- if (g == null || g.onRender(), !(e.displayDirective === "show" || e.show || e.animated && d.value))
25751
+ if (g == null || g.onRender(), !(e.displayDirective === "show" || e.show || e.animated && h.value))
25751
25752
  return null;
25752
25753
  let M;
25753
25754
  const I = l.internalRenderBodyRef.value, {
@@ -25821,7 +25822,7 @@ const k2 = te({
25821
25822
  return ur(M, f.value);
25822
25823
  }
25823
25824
  return {
25824
- displayed: d,
25825
+ displayed: h,
25825
25826
  namespace: n,
25826
25827
  isMounted: l.isMountedRef,
25827
25828
  zIndex: l.zIndexRef,
@@ -25993,8 +25994,8 @@ const P2 = {
25993
25994
  } = e;
25994
25995
  return !!(E != null && E());
25995
25996
  }, l = () => a() ? !1 : r.value, c = Zd(e, ["arrow", "showArrow"]), u = z(() => e.overlap ? !1 : c.value);
25996
- let d = null;
25997
- const f = W(null), h = W(null), p = vi(() => e.x !== void 0 && e.y !== void 0);
25997
+ let h = null;
25998
+ const f = W(null), d = W(null), p = vi(() => e.x !== void 0 && e.y !== void 0);
25998
25999
  function g(E) {
25999
26000
  const {
26000
26001
  "onUpdate:show": J,
@@ -26005,7 +26006,7 @@ const P2 = {
26005
26006
  s.value = E, J && It(J, E), L && It(L, E), E && O && It(O, !0), E && K && It(K, !1);
26006
26007
  }
26007
26008
  function m() {
26008
- d && d.syncPosition();
26009
+ h && h.syncPosition();
26009
26010
  }
26010
26011
  function v() {
26011
26012
  const {
@@ -26016,8 +26017,8 @@ const P2 = {
26016
26017
  function _() {
26017
26018
  const {
26018
26019
  value: E
26019
- } = h;
26020
- E && (window.clearTimeout(E), h.value = null);
26020
+ } = d;
26021
+ E && (window.clearTimeout(E), d.value = null);
26021
26022
  }
26022
26023
  function S() {
26023
26024
  const E = a();
@@ -26048,13 +26049,13 @@ const P2 = {
26048
26049
  function $() {
26049
26050
  const E = a();
26050
26051
  if (e.trigger === "hover" && !E) {
26051
- if (v(), h.value !== null || !l()) return;
26052
+ if (v(), d.value !== null || !l()) return;
26052
26053
  const J = () => {
26053
- g(!1), h.value = null;
26054
+ g(!1), d.value = null;
26054
26055
  }, {
26055
26056
  duration: L
26056
26057
  } = e;
26057
- L === 0 ? J() : h.value = window.setTimeout(J, L);
26058
+ L === 0 ? J() : d.value = window.setTimeout(J, L);
26058
26059
  }
26059
26060
  }
26060
26061
  function w() {
@@ -26082,7 +26083,7 @@ const P2 = {
26082
26083
  return (E = i.value) === null || E === void 0 ? void 0 : E.targetRef;
26083
26084
  }
26084
26085
  function N(E) {
26085
- d = E;
26086
+ h = E;
26086
26087
  }
26087
26088
  return ci("NPopover", {
26088
26089
  getTriggerElement: Q,
@@ -26235,9 +26236,9 @@ function E2(e) {
26235
26236
  errorColor: l,
26236
26237
  baseColor: c,
26237
26238
  borderColor: u,
26238
- opacityDisabled: d,
26239
+ opacityDisabled: h,
26239
26240
  tagColor: f,
26240
- closeIconColor: h,
26241
+ closeIconColor: d,
26241
26242
  closeIconColorHover: p,
26242
26243
  closeIconColorPressed: g,
26243
26244
  borderRadiusSmall: m,
@@ -26262,7 +26263,7 @@ function E2(e) {
26262
26263
  heightMedium: w,
26263
26264
  heightLarge: M,
26264
26265
  borderRadius: m,
26265
- opacityDisabled: d,
26266
+ opacityDisabled: h,
26266
26267
  fontSizeTiny: v,
26267
26268
  fontSizeSmall: _,
26268
26269
  fontSizeMedium: S,
@@ -26284,7 +26285,7 @@ function E2(e) {
26284
26285
  textColor: t,
26285
26286
  color: f,
26286
26287
  colorBordered: "rgb(250, 250, 252)",
26287
- closeIconColor: h,
26288
+ closeIconColor: d,
26288
26289
  closeIconColorHover: p,
26289
26290
  closeIconColorPressed: g,
26290
26291
  closeColorHover: I,
@@ -26522,32 +26523,32 @@ const z2 = Object.assign(Object.assign(Object.assign({}, Nt.props), O2), {
26522
26523
  function a() {
26523
26524
  if (!e.disabled && e.checkable) {
26524
26525
  const {
26525
- checked: h,
26526
+ checked: d,
26526
26527
  onCheckedChange: p,
26527
26528
  onUpdateChecked: g,
26528
26529
  "onUpdate:checked": m
26529
26530
  } = e;
26530
- g && g(!h), m && m(!h), p && p(!h);
26531
+ g && g(!d), m && m(!d), p && p(!d);
26531
26532
  }
26532
26533
  }
26533
- function l(h) {
26534
- if (e.triggerClickOnClose || h.stopPropagation(), !e.disabled) {
26534
+ function l(d) {
26535
+ if (e.triggerClickOnClose || d.stopPropagation(), !e.disabled) {
26535
26536
  const {
26536
26537
  onClose: p
26537
26538
  } = e;
26538
- p && It(p, h);
26539
+ p && It(p, d);
26539
26540
  }
26540
26541
  }
26541
26542
  const c = {
26542
- setTextContent(h) {
26543
+ setTextContent(d) {
26543
26544
  const {
26544
26545
  value: p
26545
26546
  } = t;
26546
- p && (p.textContent = h);
26547
+ p && (p.textContent = d);
26547
26548
  }
26548
- }, u = $o("Tag", r, n), d = z(() => {
26549
+ }, u = $o("Tag", r, n), h = z(() => {
26549
26550
  const {
26550
- type: h,
26551
+ type: d,
26551
26552
  size: p,
26552
26553
  color: {
26553
26554
  color: g,
@@ -26574,19 +26575,19 @@ const z2 = Object.assign(Object.assign(Object.assign({}, Nt.props), O2), {
26574
26575
  colorCheckedPressed: E,
26575
26576
  closeBorderRadius: J,
26576
26577
  fontWeightStrong: L,
26577
- [ut("colorBordered", h)]: O,
26578
+ [ut("colorBordered", d)]: O,
26578
26579
  [ut("closeSize", p)]: K,
26579
26580
  [ut("closeIconSize", p)]: q,
26580
26581
  [ut("fontSize", p)]: ie,
26581
26582
  [ut("height", p)]: V,
26582
- [ut("color", h)]: U,
26583
- [ut("textColor", h)]: ae,
26584
- [ut("border", h)]: ye,
26585
- [ut("closeIconColor", h)]: he,
26586
- [ut("closeIconColorHover", h)]: ke,
26587
- [ut("closeIconColorPressed", h)]: fe,
26588
- [ut("closeColorHover", h)]: Ze,
26589
- [ut("closeColorPressed", h)]: Je
26583
+ [ut("color", d)]: U,
26584
+ [ut("textColor", d)]: ae,
26585
+ [ut("border", d)]: ye,
26586
+ [ut("closeIconColor", d)]: he,
26587
+ [ut("closeIconColorHover", d)]: ke,
26588
+ [ut("closeIconColorPressed", d)]: fe,
26589
+ [ut("closeColorHover", d)]: Ze,
26590
+ [ut("closeColorPressed", d)]: Je
26590
26591
  }
26591
26592
  } = o.value, dt = Ti(S);
26592
26593
  return {
@@ -26626,7 +26627,7 @@ const z2 = Object.assign(Object.assign(Object.assign({}, Nt.props), O2), {
26626
26627
  "--n-text-color-pressed-checkable": M
26627
26628
  };
26628
26629
  }), f = s ? as("tag", z(() => {
26629
- let h = "";
26630
+ let d = "";
26630
26631
  const {
26631
26632
  type: p,
26632
26633
  size: g,
@@ -26635,8 +26636,8 @@ const z2 = Object.assign(Object.assign(Object.assign({}, Nt.props), O2), {
26635
26636
  textColor: v
26636
26637
  } = {}
26637
26638
  } = e;
26638
- return h += p[0], h += g[0], m && (h += `a${pu(m)}`), v && (h += `b${pu(v)}`), i.value && (h += "c"), h;
26639
- }), d, e) : void 0;
26639
+ return d += p[0], d += g[0], m && (d += `a${pu(m)}`), v && (d += `b${pu(v)}`), i.value && (d += "c"), d;
26640
+ }), h, e) : void 0;
26640
26641
  return Object.assign(Object.assign({}, c), {
26641
26642
  rtlEnabled: u,
26642
26643
  mergedClsPrefix: n,
@@ -26644,7 +26645,7 @@ const z2 = Object.assign(Object.assign(Object.assign({}, Nt.props), O2), {
26644
26645
  mergedBordered: i,
26645
26646
  handleClick: a,
26646
26647
  handleCloseClick: l,
26647
- cssVars: s ? void 0 : d,
26648
+ cssVars: s ? void 0 : h,
26648
26649
  themeClass: f == null ? void 0 : f.themeClass,
26649
26650
  onRender: f == null ? void 0 : f.onRender
26650
26651
  });
@@ -26663,11 +26664,11 @@ const z2 = Object.assign(Object.assign(Object.assign({}, Nt.props), O2), {
26663
26664
  $slots: l
26664
26665
  } = this;
26665
26666
  a == null || a();
26666
- const c = qn(l.avatar, (d) => d && A("div", {
26667
+ const c = qn(l.avatar, (h) => h && A("div", {
26667
26668
  class: `${i}-tag__avatar`
26668
- }, d)), u = qn(l.icon, (d) => d && A("div", {
26669
+ }, h)), u = qn(l.icon, (h) => h && A("div", {
26669
26670
  class: `${i}-tag__icon`
26670
- }, d));
26671
+ }, h));
26671
26672
  return A("div", {
26672
26673
  class: [`${i}-tag`, this.themeClass, {
26673
26674
  [`${i}-tag--rtl`]: n,
@@ -26771,9 +26772,9 @@ function H2(e) {
26771
26772
  warningColor: l,
26772
26773
  warningColorHover: c,
26773
26774
  errorColor: u,
26774
- errorColorHover: d,
26775
+ errorColorHover: h,
26775
26776
  borderColor: f,
26776
- iconColor: h,
26777
+ iconColor: d,
26777
26778
  iconColorDisabled: p,
26778
26779
  clearColor: g,
26779
26780
  clearColorHover: m,
@@ -26821,7 +26822,7 @@ function H2(e) {
26821
26822
  alpha: 0.2
26822
26823
  })}`,
26823
26824
  caretColor: o,
26824
- arrowColor: h,
26825
+ arrowColor: d,
26825
26826
  arrowColorDisabled: p,
26826
26827
  loadingColor: o,
26827
26828
  // warning
@@ -26840,9 +26841,9 @@ function H2(e) {
26840
26841
  caretColorWarning: l,
26841
26842
  // error
26842
26843
  borderError: `1px solid ${u}`,
26843
- borderHoverError: `1px solid ${d}`,
26844
+ borderHoverError: `1px solid ${h}`,
26844
26845
  borderActiveError: `1px solid ${u}`,
26845
- borderFocusError: `1px solid ${d}`,
26846
+ borderFocusError: `1px solid ${h}`,
26846
26847
  boxShadowHoverError: "none",
26847
26848
  boxShadowActiveError: `0 0 0 2px ${We(u, {
26848
26849
  alpha: 0.2
@@ -27138,7 +27139,7 @@ const Hh = {
27138
27139
  const {
27139
27140
  mergedClsPrefixRef: t,
27140
27141
  mergedRtlRef: i
27141
- } = os(e), n = $o("InternalSelection", i, t), s = W(null), r = W(null), o = W(null), a = W(null), l = W(null), c = W(null), u = W(null), d = W(null), f = W(null), h = W(null), p = W(!1), g = W(!1), m = W(!1), v = Nt("InternalSelection", "-internal-selection", W2, Hh, e, je(e, "clsPrefix")), _ = z(() => e.clearable && !e.disabled && (m.value || e.active)), S = z(() => e.selectedOption ? e.renderTag ? e.renderTag({
27142
+ } = os(e), n = $o("InternalSelection", i, t), s = W(null), r = W(null), o = W(null), a = W(null), l = W(null), c = W(null), u = W(null), h = W(null), f = W(null), d = W(null), p = W(!1), g = W(!1), m = W(!1), v = Nt("InternalSelection", "-internal-selection", W2, Hh, e, je(e, "clsPrefix")), _ = z(() => e.clearable && !e.disabled && (m.value || e.active)), S = z(() => e.selectedOption ? e.renderTag ? e.renderTag({
27142
27143
  option: e.selectedOption,
27143
27144
  handleClose: () => {
27144
27145
  }
@@ -27164,13 +27165,13 @@ const Hh = {
27164
27165
  function w() {
27165
27166
  const {
27166
27167
  value: ue
27167
- } = h;
27168
+ } = d;
27168
27169
  ue && (ue.style.display = "none");
27169
27170
  }
27170
27171
  function M() {
27171
27172
  const {
27172
27173
  value: ue
27173
- } = h;
27174
+ } = d;
27174
27175
  ue && (ue.style.display = "inline-block");
27175
27176
  }
27176
27177
  Oe(je(e, "active"), (ue) => {
@@ -27306,7 +27307,7 @@ const Hh = {
27306
27307
  function Ne() {
27307
27308
  const {
27308
27309
  value: ue
27309
- } = d;
27310
+ } = h;
27310
27311
  return ue;
27311
27312
  }
27312
27313
  function kt() {
@@ -27469,7 +27470,7 @@ const Hh = {
27469
27470
  isComposing: ie,
27470
27471
  // dom ref
27471
27472
  counterRef: u,
27472
- counterWrapperRef: d,
27473
+ counterWrapperRef: h,
27473
27474
  patternInputMirrorRef: s,
27474
27475
  patternInputRef: r,
27475
27476
  selfRef: o,
@@ -27477,7 +27478,7 @@ const Hh = {
27477
27478
  singleElRef: l,
27478
27479
  patternInputWrapperRef: c,
27479
27480
  overflowRef: f,
27480
- inputTagElRef: h,
27481
+ inputTagElRef: d,
27481
27482
  handleMouseDown: K,
27482
27483
  handleFocusin: H,
27483
27484
  handleClear: J,
@@ -27520,10 +27521,10 @@ const Hh = {
27520
27521
  ellipsisTagPopoverProps: l,
27521
27522
  onRender: c,
27522
27523
  renderTag: u,
27523
- renderLabel: d
27524
+ renderLabel: h
27524
27525
  } = this;
27525
27526
  c == null || c();
27526
- const f = r === "responsive", h = typeof r == "number", p = f || h, g = A(Za, null, {
27527
+ const f = r === "responsive", d = typeof r == "number", p = f || d, g = A(Za, null, {
27527
27528
  default: () => A(D2, {
27528
27529
  clsPrefix: a,
27529
27530
  loading: this.loading,
@@ -27559,8 +27560,8 @@ const Hh = {
27559
27560
  internalCloseIsButtonTag: !1,
27560
27561
  internalCloseFocusable: !1
27561
27562
  }, {
27562
- default: () => d ? d(N, !0) : xs(N[v], N, !0)
27563
- })), S = () => (h ? this.selectedOptions.slice(0, r) : this.selectedOptions).map(_), C = s ? A("div", {
27563
+ default: () => h ? h(N, !0) : xs(N[v], N, !0)
27564
+ })), S = () => (d ? this.selectedOptions.slice(0, r) : this.selectedOptions).map(_), C = s ? A("div", {
27564
27565
  class: `${a}-base-selection-input-tag`,
27565
27566
  ref: "inputTagElRef",
27566
27567
  key: "__input-tag__"
@@ -27591,7 +27592,7 @@ const Hh = {
27591
27592
  disabled: n
27592
27593
  })) : void 0;
27593
27594
  let $;
27594
- if (h) {
27595
+ if (d) {
27595
27596
  const N = this.selectedOptions.length - r;
27596
27597
  N > 0 && ($ = A("div", {
27597
27598
  class: `${a}-base-selection-tag-wrapper`,
@@ -27631,7 +27632,7 @@ const Hh = {
27631
27632
  }, {
27632
27633
  default: S,
27633
27634
  counter: b
27634
- }) : h && $ ? S().concat($) : S(), M = p ? () => A("div", {
27635
+ }) : d && $ ? S().concat($) : S(), M = p ? () => A("div", {
27635
27636
  class: `${a}-base-selection-popover`
27636
27637
  }, f ? S() : this.selectedOptions.map(_)) : void 0, I = p ? Object.assign({
27637
27638
  show: this.showTagsPanel,
@@ -27690,7 +27691,7 @@ const Hh = {
27690
27691
  option: this.selectedOption,
27691
27692
  handleClose: () => {
27692
27693
  }
27693
- }) : d ? d(this.selectedOption, !0) : xs(this.label, this.selectedOption, !0))) : null, _ ? A("div", {
27694
+ }) : h ? h(this.selectedOption, !0) : xs(this.label, this.selectedOption, !0))) : null, _ ? A("div", {
27694
27695
  class: `${a}-base-selection-placeholder ${a}-base-selection-overlay`,
27695
27696
  key: "placeholder"
27696
27697
  }, A("div", {
@@ -27711,7 +27712,7 @@ const Hh = {
27711
27712
  option: this.selectedOption,
27712
27713
  handleClose: () => {
27713
27714
  }
27714
- }) : d ? d(this.selectedOption, !0) : xs(this.label, this.selectedOption, !0))) : A("div", {
27715
+ }) : h ? h(this.selectedOption, !0) : xs(this.label, this.selectedOption, !0))) : A("div", {
27715
27716
  class: `${a}-base-selection-placeholder ${a}-base-selection-overlay`,
27716
27717
  key: "placeholder"
27717
27718
  }, A("div", {
@@ -27958,7 +27959,7 @@ const Z2 = Object.assign(Object.assign({}, Nt.props), {
27958
27959
  mergedBorderedRef: i,
27959
27960
  namespaceRef: n,
27960
27961
  inlineThemeDisabled: s
27961
- } = os(e), r = Nt("Select", "-select", X2, U2, e, t), o = W(e.defaultValue), a = je(e, "value"), l = ja(a, o), c = W(!1), u = W(""), d = Zd(e, ["items", "options"]), f = W([]), h = W([]), p = z(() => h.value.concat(f.value).concat(d.value)), g = z(() => {
27962
+ } = os(e), r = Nt("Select", "-select", X2, U2, e, t), o = W(e.defaultValue), a = je(e, "value"), l = ja(a, o), c = W(!1), u = W(""), h = Zd(e, ["items", "options"]), f = W([]), d = W([]), p = z(() => d.value.concat(f.value).concat(h.value)), g = z(() => {
27962
27963
  const {
27963
27964
  filter: P
27964
27965
  } = e;
@@ -27977,7 +27978,7 @@ const Z2 = Object.assign(Object.assign({}, Nt.props), {
27977
27978
  };
27978
27979
  }), m = z(() => {
27979
27980
  if (e.remote)
27980
- return d.value;
27981
+ return h.value;
27981
27982
  {
27982
27983
  const {
27983
27984
  value: P
@@ -28135,7 +28136,7 @@ const Z2 = Object.assign(Object.assign({}, Nt.props), {
28135
28136
  ke(!1);
28136
28137
  }
28137
28138
  function Je() {
28138
- u.value = "", h.value = B;
28139
+ u.value = "", d.value = B;
28139
28140
  }
28140
28141
  const dt = W(!1);
28141
28142
  function it() {
@@ -28202,10 +28203,10 @@ const Z2 = Object.assign(Object.assign({}, Nt.props), {
28202
28203
  if (G && !le) {
28203
28204
  const {
28204
28205
  value: Ce
28205
- } = h, Re = Ce[0] || null;
28206
+ } = d, Re = Ce[0] || null;
28206
28207
  if (Re) {
28207
28208
  const Ae = f.value;
28208
- Ae.length ? Ae.push(Re) : f.value = [Re], h.value = B;
28209
+ Ae.length ? Ae.push(Re) : f.value = [Re], d.value = B;
28209
28210
  }
28210
28211
  }
28211
28212
  if (le && Z.value.set(P[_e], P), e.multiple) {
@@ -28241,7 +28242,7 @@ const Z2 = Object.assign(Object.assign({}, Nt.props), {
28241
28242
  } = e;
28242
28243
  if (ae(G), le && !ve) {
28243
28244
  if (!G) {
28244
- h.value = B;
28245
+ d.value = B;
28245
28246
  return;
28246
28247
  }
28247
28248
  const {
@@ -28253,7 +28254,7 @@ const Z2 = Object.assign(Object.assign({}, Nt.props), {
28253
28254
  valueField: Re,
28254
28255
  labelField: Ae
28255
28256
  } = e;
28256
- d.value.some((at) => at[Re] === Ce[Re] || at[Ae] === Ce[Ae]) || f.value.some((at) => at[Re] === Ce[Re] || at[Ae] === Ce[Ae]) ? h.value = B : h.value = [Ce];
28257
+ h.value.some((at) => at[Re] === Ce[Re] || at[Ae] === Ce[Ae]) || f.value.some((at) => at[Re] === Ce[Re] || at[Ae] === Ce[Ae]) ? d.value = B : d.value = [Ce];
28257
28258
  }
28258
28259
  }
28259
28260
  function ot(P) {
@@ -28287,7 +28288,7 @@ const Z2 = Object.assign(Object.assign({}, Nt.props), {
28287
28288
  const Re = (le = w.value) === null || le === void 0 ? void 0 : le.getPendingTmNode();
28288
28289
  Re ? Ri(Re) : e.filterable || (Ze(), us());
28289
28290
  } else if (fe(), e.tag && dt.value) {
28290
- const Re = h.value[0];
28291
+ const Re = d.value[0];
28291
28292
  if (Re) {
28292
28293
  const Ae = Re[e.valueField], {
28293
28294
  value: at
@@ -28549,7 +28550,7 @@ const Z2 = Object.assign(Object.assign({}, Nt.props), {
28549
28550
  ..._,
28550
28551
  class: n.wrapContent ? `${_.class} consistent-menu-width` : _.class
28551
28552
  }))
28552
- ), c = W(!1), u = _i("select-component"), d = (_) => {
28553
+ ), c = W(!1), u = _i("select-component"), h = (_) => {
28553
28554
  _.length < n.minTermLength || (c.value = !0, n.searchDataHandler(_, c).then((S) => {
28554
28555
  if (Au(S))
28555
28556
  return;
@@ -28560,12 +28561,12 @@ const Z2 = Object.assign(Object.assign({}, Nt.props), {
28560
28561
  }));
28561
28562
  };
28562
28563
  let f = "";
28563
- const h = Cn(
28564
+ const d = Cn(
28564
28565
  // eslint-disable-next-line func-names
28565
- () => d(f),
28566
+ () => h(f),
28566
28567
  800
28567
28568
  ), p = (_) => {
28568
- f = _, h();
28569
+ f = _, d();
28569
28570
  }, g = (_) => {
28570
28571
  var S;
28571
28572
  if (Dt(_)) {
@@ -28628,43 +28629,43 @@ const Z2 = Object.assign(Object.assign({}, Nt.props), {
28628
28629
  },
28629
28630
  emits: ["update:value"],
28630
28631
  setup(e, { expose: t, emit: i }) {
28631
- const n = e, s = i, r = _i("select-component"), o = async (d) => n.searchType === "categories" ? ft.getInstance(Pf).publicSimpleSearch(d) : n.searchType === "products" ? ft.getInstance(Rf).publicSimpleSearch(d) : new Promise((f) => {
28632
+ const n = e, s = i, r = _i("select-component"), o = async (h) => n.searchType === "categories" ? ft.getInstance(Pf).publicSimpleSearch(h) : n.searchType === "products" ? ft.getInstance(Rf).publicSimpleSearch(h) : new Promise((f) => {
28632
28633
  f([]);
28633
- }), a = (d) => n.searchType === "categories" ? Pi.convertReferencesToSelectOptionsList(d, !0, !1, (f) => f != null && f.isNewRec() ? "-" : f.name) : n.searchType === "products" ? Pi.convertReferencesToSelectOptionsList(d, !0, !1, (f) => f != null && f.isNewRec() ? "-" : `[${f.code}] ${f.name}`) : [], l = (d, f) => {
28634
+ }), a = (h) => n.searchType === "categories" ? Pi.convertReferencesToSelectOptionsList(h, !0, !1, (f) => f != null && f.isNewRec() ? "-" : f.name) : n.searchType === "products" ? Pi.convertReferencesToSelectOptionsList(h, !0, !1, (f) => f != null && f.isNewRec() ? "-" : `[${f.code}] ${f.name}`) : [], l = (h, f) => {
28634
28635
  if (n.renderLabel)
28635
- return n.renderLabel(d, f);
28636
+ return n.renderLabel(h, f);
28636
28637
  if (n.searchType === "products") {
28637
- const h = d.item;
28638
- return A("div", {}, [A("span", { class: "text-sc-grey mr-2.5" }, h.code), A("span", {}, [h.name])]);
28638
+ const d = h.item;
28639
+ return A("div", {}, [A("span", { class: "text-sc-grey mr-2.5" }, d.code), A("span", {}, [d.name])]);
28639
28640
  }
28640
28641
  if (n.searchType === "categories") {
28641
- const h = d.item;
28642
- return A("div", {}, [h.name]);
28642
+ const d = h.item;
28643
+ return A("div", {}, [d.name]);
28643
28644
  }
28644
28645
  };
28645
28646
  return t({
28646
28647
  focus: () => {
28647
- var d;
28648
- return (d = r.value) == null ? void 0 : d.focus();
28648
+ var h;
28649
+ return (h = r.value) == null ? void 0 : h.focus();
28649
28650
  },
28650
28651
  blur: () => {
28651
- var d;
28652
- return (d = r.value) == null ? void 0 : d.blur();
28652
+ var h;
28653
+ return (h = r.value) == null ? void 0 : h.blur();
28653
28654
  }
28654
- }), (d, f) => (x(), ne(ex, {
28655
+ }), (h, f) => (x(), ne(ex, {
28655
28656
  ref: "select-component",
28656
- value: d.value,
28657
- clearable: d.clearable,
28658
- disabled: d.disabled,
28659
- placeholder: d.placeholder,
28657
+ value: h.value,
28658
+ clearable: h.clearable,
28659
+ disabled: h.disabled,
28660
+ placeholder: h.placeholder,
28660
28661
  "search-data-handler": o,
28661
28662
  "options-list-converter": a,
28662
- "consistent-menu-width": d.consistentMenuWidth,
28663
- "wrap-content": d.wrapContent,
28664
- "min-term-length": d.minTermLength,
28663
+ "consistent-menu-width": h.consistentMenuWidth,
28664
+ "wrap-content": h.wrapContent,
28665
+ "min-term-length": h.minTermLength,
28665
28666
  "render-label": l,
28666
- "render-tag": d.renderTag,
28667
- "onUpdate:value": f[0] || (f[0] = (h) => s("update:value", h))
28667
+ "render-tag": h.renderTag,
28668
+ "onUpdate:value": f[0] || (f[0] = (d) => s("update:value", d))
28668
28669
  }, null, 8, ["value", "clearable", "disabled", "placeholder", "consistent-menu-width", "wrap-content", "min-term-length", "render-tag"]));
28669
28670
  }
28670
28671
  }), nx = { class: "col-span-2 flex flex-row gap-2.5" }, sx = { class: "flex-1" }, rx = { class: "text-sc-grey" }, ox = { class: "ml-2.5" }, ax = {
@@ -28687,34 +28688,34 @@ const Z2 = Object.assign(Object.assign({}, Nt.props), {
28687
28688
  const i = e, n = t, s = W(null), r = () => structuredClone(Ut(i.value)), o = W(r()), a = () => {
28688
28689
  n(
28689
28690
  "update:value",
28690
- o.value.map((d) => Ut(d))
28691
+ o.value.map((h) => Ut(h))
28691
28692
  );
28692
- }, l = (d) => {
28693
- d && (o.value = [
28693
+ }, l = (h) => {
28694
+ h && (o.value = [
28694
28695
  ...o.value.map((f) => Ut(f)),
28695
28696
  // eslint-disable-next-line vue/max-len,lodash/prefer-lodash-method
28696
- ...(Dt(d) ? d : [d]).filter((f) => !o.value.some((h) => h.id === f.id))
28697
+ ...(Dt(h) ? h : [h]).filter((f) => !o.value.some((d) => d.id === f.id))
28697
28698
  ], Hi(() => {
28698
28699
  s.value = null;
28699
28700
  }), a());
28700
- }, c = (d) => {
28701
- d && (o.value = o.value.map((f) => f.id === d.id ? d : Ut(f)), a());
28702
- }, u = (d) => {
28703
- o.value = o.value.filter((f) => f.id !== d.id), a();
28701
+ }, c = (h) => {
28702
+ h && (o.value = o.value.map((f) => f.id === h.id ? h : Ut(f)), a());
28703
+ }, u = (h) => {
28704
+ o.value = o.value.filter((f) => f.id !== h.id), a();
28704
28705
  };
28705
28706
  return Oe(
28706
28707
  () => i.value,
28707
28708
  () => {
28708
28709
  o.value = r();
28709
28710
  }
28710
- ), (d, f) => {
28711
- const h = yf, p = Ey, g = Ye, m = _f;
28711
+ ), (h, f) => {
28712
+ const d = yf, p = Ey, g = Ye, m = _f;
28712
28713
  return x(), ne(m, {
28713
28714
  "show-divider": !1,
28714
28715
  hoverable: !0
28715
28716
  }, {
28716
28717
  header: R(() => [
28717
- Te(d.$slots, "header")
28718
+ Te(h.$slots, "header")
28718
28719
  ]),
28719
28720
  footer: R(() => [
28720
28721
  D(ix, {
@@ -28724,14 +28725,14 @@ const Z2 = Object.assign(Object.assign({}, Nt.props), {
28724
28725
  l
28725
28726
  ],
28726
28727
  clearable: !0,
28727
- disabled: d.disabled,
28728
- "min-term-length": d.minTermLength,
28729
- "search-type": d.searchType,
28728
+ disabled: h.disabled,
28729
+ "min-term-length": h.minTermLength,
28730
+ "search-type": h.searchType,
28730
28731
  placeholder: "Введите название"
28731
28732
  }, null, 8, ["value", "disabled", "min-term-length", "search-type"])
28732
28733
  ]),
28733
28734
  default: R(() => [
28734
- o.value.length === 0 ? (x(), ne(h, {
28735
+ o.value.length === 0 ? (x(), ne(d, {
28735
28736
  key: 0,
28736
28737
  class: "text-center text-sm text-gray-600"
28737
28738
  }, {
@@ -28741,12 +28742,12 @@ const Z2 = Object.assign(Object.assign({}, Nt.props), {
28741
28742
  _: 1,
28742
28743
  __: [1]
28743
28744
  })) : j("", !0),
28744
- (x(!0), F(Fe, null, Gt(o.value, (v) => (x(), ne(h, {
28745
+ (x(!0), F(Fe, null, Gt(o.value, (v) => (x(), ne(d, {
28745
28746
  key: v.id
28746
28747
  }, {
28747
28748
  suffix: R(() => [
28748
28749
  D(g, {
28749
- disabled: d.disabled,
28750
+ disabled: h.disabled,
28750
28751
  quaternary: "",
28751
28752
  type: "error",
28752
28753
  onClick: (_) => u(v)
@@ -28763,8 +28764,8 @@ const Z2 = Object.assign(Object.assign({}, Nt.props), {
28763
28764
  T("span", rx, X(v.code), 1),
28764
28765
  T("span", ox, X(v.name), 1)
28765
28766
  ]),
28766
- d.$slots["item-extra"] ? (x(), F("div", ax, [
28767
- Te(d.$slots, "item-extra", {
28767
+ h.$slots["item-extra"] ? (x(), F("div", ax, [
28768
+ Te(h.$slots, "item-extra", {
28768
28769
  item: v,
28769
28770
  updateItemCallback: c
28770
28771
  })
@@ -28849,18 +28850,18 @@ const vx = Ue({ name: "tabler-truck-loading", render: mx }), _x = { class: "flex
28849
28850
  return (s = Ht().deliveryTypeReference) == null ? void 0 : s.find((r) => r.id === n.delivery.type);
28850
28851
  }), i = z(() => Ps(n.delivery.date, "dd.MM.yyyy")), n = e;
28851
28852
  return (s, r) => {
28852
- var c, u, d, f, h, p, g, m;
28853
+ var c, u, h, f, d, p, g, m;
28853
28854
  const o = vx, a = px, l = dx;
28854
28855
  return x(), F("div", _x, [
28855
28856
  s.showType ? (x(), F("span", yx, [
28856
28857
  ((c = t.value) == null ? void 0 : c.slug) === "self_delivery" ? (x(), ne(o, { key: 0 })) : j("", !0),
28857
28858
  ((u = t.value) == null ? void 0 : u.slug) === "delivery" ? (x(), ne(a, { key: 1 })) : j("", !0),
28858
- ((d = t.value) == null ? void 0 : d.slug) === "transport_company_delivery" ? (x(), ne(l, { key: 2 })) : j("", !0),
28859
+ ((h = t.value) == null ? void 0 : h.slug) === "transport_company_delivery" ? (x(), ne(l, { key: 2 })) : j("", !0),
28859
28860
  T("span", null, X((f = t.value) == null ? void 0 : f.name), 1)
28860
28861
  ])) : j("", !0),
28861
28862
  s.showDetails ? (x(), F("span", bx, [
28862
28863
  T("span", wx, X(i.value), 1),
28863
- (p = (h = s.delivery) == null ? void 0 : h.address) != null && p.address ? (x(), F("span", xx, X(s.delivery.address.address), 1)) : j("", !0),
28864
+ (p = (d = s.delivery) == null ? void 0 : d.address) != null && p.address ? (x(), F("span", xx, X(s.delivery.address.address), 1)) : j("", !0),
28864
28865
  (m = (g = s.delivery) == null ? void 0 : g.warehouse) != null && m.address ? (x(), F("span", kx, "со склада " + X(s.delivery.warehouse.address), 1)) : (x(), F("span", Cx, "(не указано)"))
28865
28866
  ])) : j("", !0)
28866
28867
  ]);
@@ -29332,11 +29333,11 @@ const vx = Ue({ name: "tabler-truck-loading", render: mx }), _x = { class: "flex
29332
29333
  }).finally(() => {
29333
29334
  r.value = !1;
29334
29335
  }));
29335
- }, d = (g) => {
29336
+ }, h = (g) => {
29336
29337
  c.value.page = g, u();
29337
29338
  }, f = (g) => {
29338
29339
  c.value.pageSize = g, u();
29339
- }, h = (g) => {
29340
+ }, d = (g) => {
29340
29341
  of(g) ? n.value = i() : (n.value.field = g.columnKey.toString(), n.value.direction = g.order === "ascend" ? "asc" : "desc"), l.value.forEach((m) => {
29341
29342
  if (Object.hasOwn(m, "sortOrder")) {
29342
29343
  const v = m;
@@ -29375,9 +29376,9 @@ const vx = Ue({ name: "tabler-truck-loading", render: mx }), _x = { class: "flex
29375
29376
  "bottom-bordered": !1,
29376
29377
  "sticky-expanded-rows": !0,
29377
29378
  "pagination-behavior-on-filter": "first",
29378
- "onUpdate:page": d,
29379
+ "onUpdate:page": h,
29379
29380
  "onUpdate:pageSize": f,
29380
- "onUpdate:sorter": h
29381
+ "onUpdate:sorter": d
29381
29382
  }, null, 8, ["columns", "data", "row-key", "pagination", "loading"]);
29382
29383
  };
29383
29384
  }
@@ -29489,7 +29490,7 @@ const vx = Ue({ name: "tabler-truck-loading", render: mx }), _x = { class: "flex
29489
29490
  ), ar(() => {
29490
29491
  window.removeEventListener("resize", a);
29491
29492
  }), a(), window.addEventListener("resize", a), (l, c) => {
29492
- const u = Vu, d = Wu;
29493
+ const u = Vu, h = Wu;
29493
29494
  return x(), F(Fe, null, [
29494
29495
  T("div", bk, [
29495
29496
  T("div", {
@@ -29499,7 +29500,7 @@ const vx = Ue({ name: "tabler-truck-loading", render: mx }), _x = { class: "flex
29499
29500
  Te(l.$slots, "default")
29500
29501
  ], 4)
29501
29502
  ]),
29502
- D(d, {
29503
+ D(h, {
29503
29504
  show: r.value,
29504
29505
  "onUpdate:show": c[0] || (c[0] = (f) => r.value = f),
29505
29506
  resizable: !0,
@@ -29669,52 +29670,52 @@ const vx = Ue({ name: "tabler-truck-loading", render: mx }), _x = { class: "flex
29669
29670
  setup(e, { expose: t, emit: i }) {
29670
29671
  const n = e, s = i, r = z(() => Dt(n.value)), o = z(
29671
29672
  () => {
29672
- var h;
29673
- return Dt(n.value) ? n.value.map((p) => p.id) : ((h = n.value) == null ? void 0 : h.id) ?? null;
29673
+ var d;
29674
+ return Dt(n.value) ? n.value.map((p) => p.id) : ((d = n.value) == null ? void 0 : d.id) ?? null;
29674
29675
  }
29675
29676
  ), a = z(() => {
29676
29677
  var g;
29677
- let h = n.showEmptyValue ? [Ef.generateUndefinedManagerInstance(), ...n.managerReferenceList] : n.managerReferenceList, p = n.disabledManagerReferenceList.map((m) => m.id);
29678
+ let d = n.showEmptyValue ? [Ef.generateUndefinedManagerInstance(), ...n.managerReferenceList] : n.managerReferenceList, p = n.disabledManagerReferenceList.map((m) => m.id);
29678
29679
  if (n.showActualOnly) {
29679
29680
  const m = Dt(n.value) ? n.value.map((v) => v.id) : [(g = n.value) == null ? void 0 : g.id];
29680
29681
  p = af(
29681
29682
  p,
29682
29683
  n.managerReferenceList.filter((v) => !v.isActive).map((v) => v.id)
29683
- ), h = n.managerReferenceList.filter((v) => v.isActive || m.includes(v.id));
29684
+ ), d = n.managerReferenceList.filter((v) => v.isActive || m.includes(v.id));
29684
29685
  }
29685
29686
  return Pi.convertReferencesToSelectOptionsList(
29686
- h,
29687
+ d,
29687
29688
  !0,
29688
29689
  !0,
29689
29690
  (m) => m.salesDirection.isNewRec() ? m.name : `${m.name} (${m.salesDirection.name}) ${n.showActualOnly && !m.isActive ? "[Не активен, только снять выбор]" : ""}`,
29690
29691
  (m) => p.includes(m.id) && m.isActive
29691
29692
  );
29692
29693
  }), l = z(
29693
- () => a.value.map((h) => ({
29694
- ...h,
29695
- class: n.wrapContent ? `${h.class} consistent-menu-width` : h.class
29694
+ () => a.value.map((d) => ({
29695
+ ...d,
29696
+ class: n.wrapContent ? `${d.class} consistent-menu-width` : d.class
29696
29697
  }))
29697
- ), c = _i("select-component"), u = (h) => {
29698
+ ), c = _i("select-component"), u = (d) => {
29698
29699
  var p;
29699
- if (Dt(h)) {
29700
- const g = h.length > 0 ? h.map((m) => {
29700
+ if (Dt(d)) {
29701
+ const g = d.length > 0 ? d.map((m) => {
29701
29702
  var v;
29702
29703
  return (v = a.value.find((_) => _.value === m)) == null ? void 0 : v.item;
29703
29704
  }) : [];
29704
29705
  s("update:value", g);
29705
29706
  } else {
29706
- const g = h > 0 ? (p = a.value.find((m) => m.value === h)) == null ? void 0 : p.item : new Af();
29707
+ const g = d > 0 ? (p = a.value.find((m) => m.value === d)) == null ? void 0 : p.item : new Af();
29707
29708
  s("update:value", g);
29708
29709
  }
29709
29710
  };
29710
29711
  return Oe(
29711
29712
  () => n.disabledManagerReferenceList,
29712
- (h) => {
29713
- if (h.length > 0 && n.value) {
29713
+ (d) => {
29714
+ if (d.length > 0 && n.value) {
29714
29715
  const p = r.value ? n.value : [n.value];
29715
- js(p, (g) => js(h, ["id", g.id])) && s(
29716
+ js(p, (g) => js(d, ["id", g.id])) && s(
29716
29717
  "update:value",
29717
- p.filter((g) => !js(h, ["id", g.id]))
29718
+ p.filter((g) => !js(d, ["id", g.id]))
29718
29719
  );
29719
29720
  }
29720
29721
  },
@@ -29723,19 +29724,19 @@ const vx = Ue({ name: "tabler-truck-loading", render: mx }), _x = { class: "flex
29723
29724
  }
29724
29725
  ), t({
29725
29726
  focus: () => {
29726
- var h;
29727
- return (h = c.value) == null ? void 0 : h.focusInput();
29727
+ var d;
29728
+ return (d = c.value) == null ? void 0 : d.focusInput();
29728
29729
  },
29729
29730
  blur: () => {
29730
- var h;
29731
- return (h = c.value) == null ? void 0 : h.blurInput();
29731
+ var d;
29732
+ return (d = c.value) == null ? void 0 : d.blurInput();
29732
29733
  }
29733
- }), (h, p) => (x(), ne(Y(bn), {
29734
+ }), (d, p) => (x(), ne(Y(bn), {
29734
29735
  ref: "select-component",
29735
29736
  value: o.value,
29736
- clearable: h.clearable,
29737
+ clearable: d.clearable,
29737
29738
  disabled: a.value.length === 0,
29738
- "consistent-menu-width": h.consistentMenuWidth,
29739
+ "consistent-menu-width": d.consistentMenuWidth,
29739
29740
  multiple: r.value,
29740
29741
  options: l.value,
29741
29742
  placeholder: "",
@@ -29815,7 +29816,7 @@ const vx = Ue({ name: "tabler-truck-loading", render: mx }), _x = { class: "flex
29815
29816
  !r.value || r.value.length < n.minTermLength || (o.value = !0, a.value = await (n.searchDataHandler ? n.searchDataHandler(r.value, o) : ft.getInstance(ol).searchAddresses(r.value)).finally(() => {
29816
29817
  o.value = !1;
29817
29818
  }));
29818
- }, d = (g, m) => {
29819
+ }, h = (g, m) => {
29819
29820
  const v = a.value.find((_) => _.id === g.value) || {};
29820
29821
  return A(
29821
29822
  Wk,
@@ -29831,9 +29832,9 @@ const vx = Ue({ name: "tabler-truck-loading", render: mx }), _x = { class: "flex
29831
29832
  c.cancel();
29832
29833
  const m = a.value.find((v) => v.id === g) || {};
29833
29834
  s("select", m);
29834
- }, h = W(null);
29835
+ }, d = W(null);
29835
29836
  function p() {
29836
- h.value.focus();
29837
+ d.value.focus();
29837
29838
  }
29838
29839
  return t({
29839
29840
  /**
@@ -29844,7 +29845,7 @@ const vx = Ue({ name: "tabler-truck-loading", render: mx }), _x = { class: "flex
29844
29845
  const v = rl;
29845
29846
  return x(), ne(v, {
29846
29847
  ref_key: "autoCompleteElement",
29847
- ref: h,
29848
+ ref: d,
29848
29849
  value: r.value,
29849
29850
  "onUpdate:value": [
29850
29851
  m[0] || (m[0] = (_) => r.value = _),
@@ -29854,7 +29855,7 @@ const vx = Ue({ name: "tabler-truck-loading", render: mx }), _x = { class: "flex
29854
29855
  disabled: g.disabled,
29855
29856
  loading: o.value,
29856
29857
  options: l.value,
29857
- "render-label": d,
29858
+ "render-label": h,
29858
29859
  placeholder: "",
29859
29860
  onSelect: f
29860
29861
  }, null, 8, ["value", "clearable", "disabled", "loading", "options", "onUpdate:value"]);
@@ -29923,7 +29924,7 @@ const vx = Ue({ name: "tabler-truck-loading", render: mx }), _x = { class: "flex
29923
29924
  o.value = !1;
29924
29925
  }
29925
29926
  }
29926
- }, d = (g, m) => {
29927
+ }, h = (g, m) => {
29927
29928
  const v = a.value.find((_) => _.id === g.value) || {};
29928
29929
  return A(
29929
29930
  Kk,
@@ -29939,9 +29940,9 @@ const vx = Ue({ name: "tabler-truck-loading", render: mx }), _x = { class: "flex
29939
29940
  c.cancel();
29940
29941
  const m = a.value.find((v) => v.id === g) || {};
29941
29942
  s("select", m);
29942
- }, h = W(null);
29943
+ }, d = W(null);
29943
29944
  function p() {
29944
- h.value.focus();
29945
+ d.value.focus();
29945
29946
  }
29946
29947
  return t({
29947
29948
  /**
@@ -29952,7 +29953,7 @@ const vx = Ue({ name: "tabler-truck-loading", render: mx }), _x = { class: "flex
29952
29953
  const v = rl;
29953
29954
  return x(), ne(v, {
29954
29955
  ref_key: "autoCompleteElement",
29955
- ref: h,
29956
+ ref: d,
29956
29957
  value: r.value,
29957
29958
  "onUpdate:value": [
29958
29959
  m[0] || (m[0] = (_) => r.value = _),
@@ -29962,7 +29963,7 @@ const vx = Ue({ name: "tabler-truck-loading", render: mx }), _x = { class: "flex
29962
29963
  disabled: g.disabled,
29963
29964
  loading: o.value,
29964
29965
  options: l.value,
29965
- "render-label": d,
29966
+ "render-label": h,
29966
29967
  placeholder: "",
29967
29968
  onSelect: f
29968
29969
  }, null, 8, ["value", "clearable", "disabled", "loading", "options", "onUpdate:value"]);
@@ -30043,9 +30044,9 @@ const vx = Ue({ name: "tabler-truck-loading", render: mx }), _x = { class: "flex
30043
30044
  });
30044
30045
  const u = Cn(
30045
30046
  // eslint-disable-next-line func-names
30046
- () => d(),
30047
+ () => h(),
30047
30048
  800
30048
- ), d = async () => {
30049
+ ), h = async () => {
30049
30050
  if (!(!r.value || r.value.length < n.minTermLength)) {
30050
30051
  o.value = !0;
30051
30052
  try {
@@ -30066,7 +30067,7 @@ const vx = Ue({ name: "tabler-truck-loading", render: mx }), _x = { class: "flex
30066
30067
  default: uo("-")
30067
30068
  }
30068
30069
  );
30069
- }, h = (m) => {
30070
+ }, d = (m) => {
30070
30071
  u.cancel();
30071
30072
  const v = a.value.find((_) => _.id === m) || {};
30072
30073
  (n.allowSelectTerminated || !l(v)) && s("select", v);
@@ -30095,7 +30096,7 @@ const vx = Ue({ name: "tabler-truck-loading", render: mx }), _x = { class: "flex
30095
30096
  options: c.value,
30096
30097
  "render-label": f,
30097
30098
  placeholder: "",
30098
- onSelect: h
30099
+ onSelect: d
30099
30100
  }, null, 8, ["value", "clearable", "disabled", "loading", "options", "onUpdate:value"]);
30100
30101
  };
30101
30102
  }
@@ -30125,7 +30126,7 @@ const vx = Ue({ name: "tabler-truck-loading", render: mx }), _x = { class: "flex
30125
30126
  i.disableConfirm ? r() : s.value = !0;
30126
30127
  };
30127
30128
  return (a, l) => {
30128
- const c = Ye, u = ln, d = sl;
30129
+ const c = Ye, u = ln, h = sl;
30129
30130
  return x(), F("div", null, [
30130
30131
  D(u, {
30131
30132
  disabled: a.popoverText.length === 0,
@@ -30153,7 +30154,7 @@ const vx = Ue({ name: "tabler-truck-loading", render: mx }), _x = { class: "flex
30153
30154
  ]),
30154
30155
  _: 3
30155
30156
  }, 8, ["disabled"]),
30156
- D(d, {
30157
+ D(h, {
30157
30158
  show: s.value,
30158
30159
  "onUpdate:show": l[1] || (l[1] = (f) => s.value = f),
30159
30160
  content: a.dialogContent,