@univerjs/engine-render 0.15.5 → 0.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.js CHANGED
@@ -20,7 +20,7 @@ const L3 = 1, G3 = '"Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino
20
20
  }, ca = 1, ha = 14;
21
21
  var b1 = /* @__PURE__ */ ((r) => (r.DEFAULT = "default", r.AUTO = "auto", r.CROSSHAIR = "crosshair", r.POINTER = "pointer", r.MOVE = "move", r.EAST_RESIZE = "e-resize", r.NORTH_EAST_RESIZE = "ne-resize", r.NORTH_WEST_RESIZE = "nw-resize", r.NORTH_RESIZE = "n-resize", r.SOUTH_EAST_RESIZE = "se-resize", r.SOUTH_WEST_RESIZE = "sw-resize", r.SOUTH_RESIZE = "s-resize", r.WEST_RESIZE = "w-resize", r.TEXT = "text", r.WAIT = "wait", r.HELP = "help", r.CELL = "cell", r.NONE = "none", r.VERTICAL_TEXT = "vertical-text", r.NO_DROP = "no-drop", r.GRAB = "grab", r.GRABBING = "grabbing", r.ALL_SCROLL = "all-scroll", r.COLUMN_RESIZE = "col-resize", r.ROW_RESIZE = "row-resize", r.PROGRESS = "progress", r.NOT_ALLOWED = "not-allowed", r.ZOOM_IN = "zoom-in", r.ZOOM_OUT = "zoom-out", r))(b1 || {}), ka = /* @__PURE__ */ ((r) => (r[r.noClip = 0] = "noClip", r[r.DOC_SIZE = 1] = "DOC_SIZE", r[r.CONTENT_SIZE_LEFT = 2] = "CONTENT_SIZE_LEFT", r[r.CONTENT_SIZE_CENTER = 3] = "CONTENT_SIZE_CENTER", r[r.CONTENT_SIZE_Right = 4] = "CONTENT_SIZE_Right", r))(ka || {});
22
22
  const z3 = "rgb(0,0,0)";
23
- var U = /* @__PURE__ */ ((r) => (r.TOP = "t", r.BOTTOM = "b", r.LEFT = "l", r.RIGHT = "r", r.TL_BR = "tl_br", r.TL_BC = "tl_bc", r.TL_MR = "tl_mr", r.BL_TR = "bl_tr", r.ML_TR = "ml_tr", r.BC_TR = "bc_tr", r))(U || {}), t0 = /* @__PURE__ */ ((r) => (r[r.UP = 0] = "UP", r[r.DOWN = 1] = "DOWN", r))(t0 || {}), Z = /* @__PURE__ */ ((r) => (r.ENGINE = "Engine", r.SCENE = "Scene", r.BASE_OBJECT = "BaseObject", r.SCENE_VIEWER = "SceneViewer", r.CANVAS = "Canvas", r.VIEWPORT = "Viewport", r.LAYER = "Layer", r.GROUP = "Group", r.IMAGE = "Image", r.SHAPE = "Shape", r.TEXT = "Text", r))(Z || {});
23
+ var U = /* @__PURE__ */ ((r) => (r.TOP = "t", r.BOTTOM = "b", r.LEFT = "l", r.RIGHT = "r", r.TL_BR = "tl_br", r.TL_BC = "tl_bc", r.TL_MR = "tl_mr", r.BL_TR = "bl_tr", r.ML_TR = "ml_tr", r.BC_TR = "bc_tr", r))(U || {}), t0 = /* @__PURE__ */ ((r) => (r[r.UP = 0] = "UP", r[r.DOWN = 1] = "DOWN", r))(t0 || {}), K = /* @__PURE__ */ ((r) => (r.ENGINE = "Engine", r.SCENE = "Scene", r.BASE_OBJECT = "BaseObject", r.SCENE_VIEWER = "SceneViewer", r.CANVAS = "Canvas", r.VIEWPORT = "Viewport", r.LAYER = "Layer", r.GROUP = "Group", r.IMAGE = "Image", r.SHAPE = "Shape", r.TEXT = "Text", r))(K || {});
24
24
  const ma = 2e3, j6 = 2e3, pa = 2, p2 = 0.5, nB = 3, iB = 4, oB = 5;
25
25
  var E1 = /* @__PURE__ */ ((r) => (r[r.translate = 0] = "translate", r[r.resize = 1] = "resize", r[r.scale = 2] = "scale", r[r.skew = 3] = "skew", r[r.flip = 4] = "flip", r[r.all = 5] = "all", r))(E1 || {});
26
26
  class fa {
@@ -33457,7 +33457,7 @@ function TB() {
33457
33457
  const t = getComputedStyle(r).backgroundColor;
33458
33458
  return r.remove(), new d4(t).toRgb();
33459
33459
  }
33460
- class H {
33460
+ class G {
33461
33461
  /**
33462
33462
  * Creates a new Vector2 from the given x and y coordinates
33463
33463
  * @param x defines the first coordinate
@@ -33472,14 +33472,14 @@ class H {
33472
33472
  * @returns a new Vector2
33473
33473
  */
33474
33474
  static Zero() {
33475
- return new H(0, 0);
33475
+ return new G(0, 0);
33476
33476
  }
33477
33477
  /**
33478
33478
  * Gets a new Vector2(1, 1)
33479
33479
  * @returns a new Vector2
33480
33480
  */
33481
33481
  static One() {
33482
- return new H(1, 1);
33482
+ return new G(1, 1);
33483
33483
  }
33484
33484
  /**
33485
33485
  * Gets a new Vector2 set from the given index element of the given array
@@ -33488,7 +33488,7 @@ class H {
33488
33488
  * @returns a new Vector2
33489
33489
  */
33490
33490
  static FromArray(t, e = 0) {
33491
- return new H(t[e], t[e + 1]);
33491
+ return new G(t[e], t[e + 1]);
33492
33492
  }
33493
33493
  /**
33494
33494
  * Sets "result" from the given index element of the given array
@@ -33510,7 +33510,7 @@ class H {
33510
33510
  */
33511
33511
  static CatmullRom(t, e, a, s, n) {
33512
33512
  const i = n * n, o = n * i, l = 0.5 * (2 * e.x + (-t.x + a.x) * n + (2 * t.x - 5 * e.x + 4 * a.x - s.x) * i + (-t.x + 3 * e.x - 3 * a.x + s.x) * o), u = 0.5 * (2 * e.y + (-t.y + a.y) * n + (2 * t.y - 5 * e.y + 4 * a.y - s.y) * i + (-t.y + 3 * e.y - 3 * a.y + s.y) * o);
33513
- return new H(l, u);
33513
+ return new G(l, u);
33514
33514
  }
33515
33515
  /**
33516
33516
  * Returns a new Vector2 set with same the coordinates than "value" ones if the vector "value" is in the square defined by "min" and "max".
@@ -33525,7 +33525,7 @@ class H {
33525
33525
  let s = t.x;
33526
33526
  s = s > a.x ? a.x : s, s = s < e.x ? e.x : s;
33527
33527
  let n = t.y;
33528
- return n = n > a.y ? a.y : n, n = n < e.y ? e.y : n, new H(s, n);
33528
+ return n = n > a.y ? a.y : n, n = n < e.y ? e.y : n, new G(s, n);
33529
33529
  }
33530
33530
  /**
33531
33531
  * Returns a new Vector2 located for "amount" (float) on the Hermite spline defined by the vectors "value1", "value2", "tangent1", "tangent2"
@@ -33538,7 +33538,7 @@ class H {
33538
33538
  */
33539
33539
  static Hermite(t, e, a, s, n) {
33540
33540
  const i = n * n, o = n * i, l = 2 * o - 3 * i + 1, u = -2 * o + 3 * i, d = o - 2 * i + n, c = o - i, g = t.x * l + a.x * u + e.x * d + s.x * c, h = t.y * l + a.y * u + e.y * d + s.y * c;
33541
- return new H(g, h);
33541
+ return new G(g, h);
33542
33542
  }
33543
33543
  /**
33544
33544
  * Returns a new Vector2 which is the 1st derivative of the Hermite spline defined by the vectors "value1", "value2", "tangent1", "tangent2".
@@ -33550,7 +33550,7 @@ class H {
33550
33550
  * @returns 1st derivative
33551
33551
  */
33552
33552
  static Hermite1stDerivative(t, e, a, s, n) {
33553
- const i = H.Zero();
33553
+ const i = G.Zero();
33554
33554
  return this.Hermite1stDerivativeToRef(t, e, a, s, n, i), i;
33555
33555
  }
33556
33556
  /**
@@ -33575,7 +33575,7 @@ class H {
33575
33575
  */
33576
33576
  static Lerp(t, e, a) {
33577
33577
  const s = t.x + (e.x - t.x) * a, n = t.y + (e.y - t.y) * a;
33578
- return new H(s, n);
33578
+ return new G(s, n);
33579
33579
  }
33580
33580
  /**
33581
33581
  * Gets the dot product of the vector "left" and the vector "right"
@@ -33592,7 +33592,7 @@ class H {
33592
33592
  * @returns a new Vector2
33593
33593
  */
33594
33594
  static Normalize(t) {
33595
- const e = H.Zero();
33595
+ const e = G.Zero();
33596
33596
  return this.NormalizeToRef(t, e), e;
33597
33597
  }
33598
33598
  /**
@@ -33612,7 +33612,7 @@ class H {
33612
33612
  */
33613
33613
  static Minimize(t, e) {
33614
33614
  const a = t.x < e.x ? t.x : e.x, s = t.y < e.y ? t.y : e.y;
33615
- return new H(a, s);
33615
+ return new G(a, s);
33616
33616
  }
33617
33617
  /**
33618
33618
  * Gets a new Vector2 set with the maximal coordinate values from the "left" and "right" vectors
@@ -33622,7 +33622,7 @@ class H {
33622
33622
  */
33623
33623
  static Maximize(t, e) {
33624
33624
  const a = t.x > e.x ? t.x : e.x, s = t.y > e.y ? t.y : e.y;
33625
- return new H(a, s);
33625
+ return new G(a, s);
33626
33626
  }
33627
33627
  // /**
33628
33628
  // * Transforms the given vector coordinates by the given transformation Transform and stores the result in the vector "result" coordinates
@@ -33657,7 +33657,7 @@ class H {
33657
33657
  * @returns the distance between vectors
33658
33658
  */
33659
33659
  static Distance(t, e) {
33660
- return Math.sqrt(H.DistanceSquared(t, e));
33660
+ return Math.sqrt(G.DistanceSquared(t, e));
33661
33661
  }
33662
33662
  /**
33663
33663
  * Returns the squared distance between the vectors "value1" and "value2"
@@ -33676,7 +33676,7 @@ class H {
33676
33676
  * @returns a new Vector2
33677
33677
  */
33678
33678
  static Center(t, e) {
33679
- return H.CenterToRef(t, e, H.Zero());
33679
+ return G.CenterToRef(t, e, G.Zero());
33680
33680
  }
33681
33681
  /**
33682
33682
  * Gets the center of the vectors "value1" and "value2" and stores the result in the vector "ref"
@@ -33696,14 +33696,14 @@ class H {
33696
33696
  * @returns the shortest distance
33697
33697
  */
33698
33698
  static DistanceOfPointFromSegment(t, e, a) {
33699
- const s = H.DistanceSquared(e, a);
33699
+ const s = G.DistanceSquared(e, a);
33700
33700
  if (s === 0)
33701
- return H.Distance(t, e);
33702
- const n = a.subtract(e), i = Math.max(0, Math.min(1, H.Dot(t.subtract(e), n) / s)), o = e.add(n.multiplyByFloats(i, i));
33703
- return H.Distance(t, o);
33701
+ return G.Distance(t, e);
33702
+ const n = a.subtract(e), i = Math.max(0, Math.min(1, G.Dot(t.subtract(e), n) / s)), o = e.add(n.multiplyByFloats(i, i));
33703
+ return G.Distance(t, o);
33704
33704
  }
33705
33705
  static create(t, e) {
33706
- return new H(t, e);
33706
+ return new G(t, e);
33707
33707
  }
33708
33708
  /**
33709
33709
  * Gets a string with the Vector2 coordinates
@@ -33744,7 +33744,7 @@ class H {
33744
33744
  * @returns the current Vector3
33745
33745
  */
33746
33746
  fromArray(t, e = 0) {
33747
- return H.FromArrayToRef(t, e, this), this;
33747
+ return G.FromArrayToRef(t, e, this), this;
33748
33748
  }
33749
33749
  /**
33750
33750
  * Copy the current vector to an array
@@ -33786,7 +33786,7 @@ class H {
33786
33786
  * @returns a new Vector2 set with the addition of the current Vector2 and the given one coordinates
33787
33787
  */
33788
33788
  add(t) {
33789
- return new H(this.x + t.x, this.y + t.y);
33789
+ return new G(this.x + t.x, this.y + t.y);
33790
33790
  }
33791
33791
  /**
33792
33792
  * Sets the "result" coordinates with the addition of the current Vector2 and the given one coordinates
@@ -33798,7 +33798,7 @@ class H {
33798
33798
  return e.x = this.x + t.x, e.y = this.y + t.y, this;
33799
33799
  }
33800
33800
  addByPoint(t, e) {
33801
- return new H(this.x + t, this.y + e);
33801
+ return new G(this.x + t, this.y + e);
33802
33802
  }
33803
33803
  /**
33804
33804
  * Set the Vector2 coordinates by adding the given Vector2 coordinates
@@ -33814,10 +33814,10 @@ class H {
33814
33814
  * @returns a new Vector2
33815
33815
  */
33816
33816
  subtract(t) {
33817
- return new H(this.x - t.x, this.y - t.y);
33817
+ return new G(this.x - t.x, this.y - t.y);
33818
33818
  }
33819
33819
  subtractByPoint(t, e) {
33820
- return new H(this.x - t, this.y - e);
33820
+ return new G(this.x - t, this.y - e);
33821
33821
  }
33822
33822
  /**
33823
33823
  * Sets the "result" coordinates with the subtraction of the given one from the current Vector2 coordinates.
@@ -33850,7 +33850,7 @@ class H {
33850
33850
  * @returns a new Vector2
33851
33851
  */
33852
33852
  multiply(t) {
33853
- return new H(this.x * t.x, this.y * t.y);
33853
+ return new G(this.x * t.x, this.y * t.y);
33854
33854
  }
33855
33855
  /**
33856
33856
  * Sets "result" coordinates with the multiplication of the current Vector2 and the given one coordinates
@@ -33868,7 +33868,7 @@ class H {
33868
33868
  * @returns a new Vector2
33869
33869
  */
33870
33870
  multiplyByFloats(t, e) {
33871
- return new H(this.x * t, this.y * e);
33871
+ return new G(this.x * t, this.y * e);
33872
33872
  }
33873
33873
  /**
33874
33874
  * Returns a new Vector2 set with the Vector2 coordinates divided by the given one coordinates
@@ -33876,7 +33876,7 @@ class H {
33876
33876
  * @returns a new Vector2
33877
33877
  */
33878
33878
  divide(t) {
33879
- return new H(this.x / t.x, this.y / t.y);
33879
+ return new G(this.x / t.x, this.y / t.y);
33880
33880
  }
33881
33881
  /**
33882
33882
  * Sets the "result" coordinates with the Vector2 divided by the given one coordinates
@@ -33900,7 +33900,7 @@ class H {
33900
33900
  * @returns a new Vector2
33901
33901
  */
33902
33902
  negate() {
33903
- return new H(-this.x, -this.y);
33903
+ return new G(-this.x, -this.y);
33904
33904
  }
33905
33905
  /**
33906
33906
  * Negate this vector in place
@@ -33931,7 +33931,7 @@ class H {
33931
33931
  * @returns a new Vector2
33932
33932
  */
33933
33933
  scale(t) {
33934
- const e = new H(0, 0);
33934
+ const e = new G(0, 0);
33935
33935
  return this.scaleToRef(t, e), e;
33936
33936
  }
33937
33937
  /**
@@ -33966,7 +33966,7 @@ class H {
33966
33966
  * @returns a new Vector2
33967
33967
  */
33968
33968
  floor() {
33969
- return new H(Math.floor(this.x), Math.floor(this.y));
33969
+ return new G(Math.floor(this.x), Math.floor(this.y));
33970
33970
  }
33971
33971
  /**
33972
33972
  * Gets a new Vector2 from current Vector2 fractional values
@@ -33974,7 +33974,7 @@ class H {
33974
33974
  * @returns a new Vector2
33975
33975
  */
33976
33976
  fract() {
33977
- return new H(this.x - Math.floor(this.x), this.y - Math.floor(this.y));
33977
+ return new G(this.x - Math.floor(this.x), this.y - Math.floor(this.y));
33978
33978
  }
33979
33979
  /**
33980
33980
  * Rotate the current vector into a given result vector
@@ -33995,7 +33995,7 @@ class H {
33995
33995
  const a = Math.cos(t), s = Math.sin(t);
33996
33996
  return e.x = a * this.x - s * this.y, e.y = s * this.x + a * this.y, this;
33997
33997
  }
33998
- rotateByPoint(t, e = H.create(0, 0)) {
33998
+ rotateByPoint(t, e = G.create(0, 0)) {
33999
33999
  const a = Math.cos(t), s = Math.sin(t), n = e.x + (this.x - e.x) * a - (this.y - e.y) * s, i = e.y + (this.x - e.x) * s + (this.y - e.y) * a;
34000
34000
  return this.x = n, this.y = i, this;
34001
34001
  }
@@ -34024,18 +34024,18 @@ class H {
34024
34024
  * @returns the current updated Vector2
34025
34025
  */
34026
34026
  normalize() {
34027
- return H.NormalizeToRef(this, this), this;
34027
+ return G.NormalizeToRef(this, this), this;
34028
34028
  }
34029
34029
  /**
34030
34030
  * Gets a new Vector2 copied from the Vector2
34031
34031
  * @returns a new Vector2
34032
34032
  */
34033
34033
  clone() {
34034
- return new H(this.x, this.y);
34034
+ return new G(this.x, this.y);
34035
34035
  }
34036
34036
  }
34037
34037
  const N0 = [1, 0, 0, 1, 0, 0];
34038
- class A1 {
34038
+ class B1 {
34039
34039
  constructor(t = N0) {
34040
34040
  k(this, "dirty", !1);
34041
34041
  k(this, "_m");
@@ -34056,7 +34056,7 @@ class A1 {
34056
34056
  * const tr = shape.getTransform().copy()
34057
34057
  */
34058
34058
  copy() {
34059
- return new A1(this._m);
34059
+ return new B1(this._m);
34060
34060
  }
34061
34061
  copyInto(t) {
34062
34062
  t._m[0] = this._m[0], t._m[1] = this._m[1], t._m[2] = this._m[2], t._m[3] = this._m[3], t._m[4] = this._m[4], t._m[5] = this._m[5];
@@ -34070,7 +34070,7 @@ class A1 {
34070
34070
  */
34071
34071
  applyPoint(t, e = !1) {
34072
34072
  const a = this._m, s = a[0] * t.x + a[2] * t.y, n = a[1] * t.x + a[3] * t.y;
34073
- return e ? new H(s, n) : new H(s + a[4], n + a[5]);
34073
+ return e ? new G(s, n) : new G(s + a[4], n + a[5]);
34074
34074
  }
34075
34075
  /**
34076
34076
  * Apply translation
@@ -34215,11 +34215,11 @@ class A1 {
34215
34215
  };
34216
34216
  }
34217
34217
  composeMatrix(t) {
34218
- const e = new A1([1, 0, 0, 1, t.left || 0, t.top || 0]);
34218
+ const e = new B1([1, 0, 0, 1, t.left || 0, t.top || 0]);
34219
34219
  return t.angle && e.rotate(t.angle), (t.scaleX !== 1 || t.scaleY !== 1 || t.skewX || t.skewY || t.flipX || t.flipY) && e.multiply(this._calcDimensionsMatrix(t)), this._m = e.getMatrix(), this;
34220
34220
  }
34221
34221
  clone() {
34222
- return new A1([...this._m]);
34222
+ return new B1([...this._m]);
34223
34223
  }
34224
34224
  /**
34225
34225
  * Returns a transform matrix starting from an object of the same kind of
@@ -34238,7 +34238,7 @@ class A1 {
34238
34238
  */
34239
34239
  _calcDimensionsMatrix(t) {
34240
34240
  var n, i;
34241
- const e = (n = t.scaleX) != null ? n : 1, a = (i = t.scaleY) != null ? i : 1, s = new A1([
34241
+ const e = (n = t.scaleX) != null ? n : 1, a = (i = t.scaleY) != null ? i : 1, s = new B1([
34242
34242
  t.flipX ? -e : e,
34243
34243
  0,
34244
34244
  0,
@@ -34246,7 +34246,7 @@ class A1 {
34246
34246
  0,
34247
34247
  0
34248
34248
  ]);
34249
- return t.skewX && s.multiply(new A1([1, 0, Math.tan(Q1(t.skewX)), 1, 0, 0])), t.skewY && s.multiply(new A1([1, Math.tan(Q1(t.skewY)), 0, 1, 0, 0])), s;
34249
+ return t.skewX && s.multiply(new B1([1, 0, Math.tan(Q1(t.skewX)), 1, 0, 0])), t.skewY && s.multiply(new B1([1, Math.tan(Q1(t.skewY)), 0, 1, 0, 0])), s;
34250
34250
  }
34251
34251
  convert2DOMMatrix2D() {
34252
34252
  const t = this.getMatrix();
@@ -34341,7 +34341,7 @@ class a3 extends D2 {
34341
34341
  k(this, "_evented", !0);
34342
34342
  k(this, "_visible", !0);
34343
34343
  k(this, "_debounceParentDirty", !0);
34344
- k(this, "_transform", new A1());
34344
+ k(this, "_transform", new B1());
34345
34345
  k(this, "_cursor", b1.DEFAULT);
34346
34346
  k(this, "_transformerConfig");
34347
34347
  k(this, "_forceRender", !1);
@@ -34375,7 +34375,7 @@ class a3 extends D2 {
34375
34375
  return this._heightOrigin;
34376
34376
  }
34377
34377
  get classType() {
34378
- return Z.BASE_OBJECT;
34378
+ return K.BASE_OBJECT;
34379
34379
  }
34380
34380
  get top() {
34381
34381
  return this._top;
@@ -34421,12 +34421,12 @@ class a3 extends D2 {
34421
34421
  }
34422
34422
  get ancestorTransform() {
34423
34423
  const e = this.getParent();
34424
- return this.isInGroup && (e == null ? void 0 : e.classType) === Z.GROUP ? e == null ? void 0 : e.ancestorTransform.multiply(this.transform) : this.transform;
34424
+ return this.isInGroup && (e == null ? void 0 : e.classType) === K.GROUP ? e == null ? void 0 : e.ancestorTransform.multiply(this.transform) : this.transform;
34425
34425
  }
34426
34426
  get ancestorGroup() {
34427
34427
  let e = null, a = this.getParent();
34428
34428
  for (; a != null && a; )
34429
- a.classType === Z.GROUP && (e = a), a.classType === Z.GROUP ? a = a.getParent() : a = null;
34429
+ a.classType === K.GROUP && (e = a), a.classType === K.GROUP ? a = a.getParent() : a = null;
34430
34430
  return e;
34431
34431
  }
34432
34432
  get skewX() {
@@ -34734,7 +34734,7 @@ class a3 extends D2 {
34734
34734
  getScene() {
34735
34735
  let e = this.parent;
34736
34736
  for (; e; ) {
34737
- if (e.classType === Z.SCENE)
34737
+ if (e.classType === K.SCENE)
34738
34738
  return e;
34739
34739
  e = e.getParent();
34740
34740
  }
@@ -34751,7 +34751,7 @@ class a3 extends D2 {
34751
34751
  getEngine() {
34752
34752
  let e = this.getParent();
34753
34753
  for (; e != null; ) {
34754
- if (e.classType === Z.ENGINE)
34754
+ if (e.classType === K.ENGINE)
34755
34755
  return e;
34756
34756
  e = e.getParent();
34757
34757
  }
@@ -34775,7 +34775,7 @@ class a3 extends D2 {
34775
34775
  return this.ancestorTransform.invert().applyPoint(e);
34776
34776
  }
34777
34777
  _setTransForm() {
34778
- const e = A1.create().composeMatrix({
34778
+ const e = B1.create().composeMatrix({
34779
34779
  left: this.left + this.strokeWidth / 2,
34780
34780
  top: this.top + this.strokeWidth / 2,
34781
34781
  scaleX: this.scaleX,
@@ -34935,7 +34935,7 @@ function O7(r) {
34935
34935
  let t = 1;
34936
34936
  return r === l1.MEDIUM || r === l1.MEDIUM_DASH_DOT || r === l1.MEDIUM_DASHED || r === l1.MEDIUM_DASH_DOT_DOT ? t = 2 : r === l1.THICK && (t = 3), t;
34937
34937
  }
34938
- function v2(r, t, e, a, s = H.create(0, 0)) {
34938
+ function v2(r, t, e, a, s = G.create(0, 0)) {
34939
34939
  const n = r.add(t).rotateByPoint(a), i = n.subtract(t), o = a - e;
34940
34940
  return i.rotateByPoint(o, n).add(s).transformCoordinateOnRotate(o);
34941
34941
  }
@@ -35015,7 +35015,7 @@ function gb(r, t, e) {
35015
35015
  };
35016
35016
  }
35017
35017
  function cb(r, t, e, a) {
35018
- const { left: s = 0, top: n = 0, width: i = 0, height: o = 0, angle: l = 0 } = r, { left: u = 0, top: d = 0, angle: c = 0 } = t, g = u + e / 2, h = d + a / 2, p = s + u, f = n + d, m = p + i / 2, v = f + o / 2, y = W4(new H(g, h), c, new H(p, f), new H(m, v));
35018
+ const { left: s = 0, top: n = 0, width: i = 0, height: o = 0, angle: l = 0 } = r, { left: u = 0, top: d = 0, angle: c = 0 } = t, g = u + e / 2, h = d + a / 2, p = s + u, f = n + d, m = p + i / 2, v = f + o / 2, y = W4(new G(g, h), c, new G(p, f), new G(m, v));
35019
35019
  return {
35020
35020
  left: y.x,
35021
35021
  top: y.y,
@@ -35036,7 +35036,7 @@ k($0, "DOM_DELTA_LINE", 1), /**
35036
35036
  */
35037
35037
  k($0, "DOM_DELTA_PAGE", 2);
35038
35038
  var g2 = /* @__PURE__ */ ((r) => (r[r.Generic = 0] = "Generic", r[r.Keyboard = 1] = "Keyboard", r[r.Mouse = 2] = "Mouse", r[r.Touch = 3] = "Touch", r))(g2 || {}), a1 = /* @__PURE__ */ ((r) => (r[r.Horizontal = 0] = "Horizontal", r[r.Vertical = 1] = "Vertical", r[r.LeftClick = 2] = "LeftClick", r[r.MiddleClick = 3] = "MiddleClick", r[r.RightClick = 4] = "RightClick", r[r.BrowserBack = 5] = "BrowserBack", r[r.BrowserForward = 6] = "BrowserForward", r[r.MouseWheelX = 7] = "MouseWheelX", r[r.MouseWheelY = 8] = "MouseWheelY", r[r.MouseWheelZ = 9] = "MouseWheelZ", r[r.DeltaHorizontal = 10] = "DeltaHorizontal", r[r.DeltaVertical = 11] = "DeltaVertical", r[r.FakeMove = 12] = "FakeMove", r))(a1 || {});
35039
- const kb = [new H(0, 0), new H(1, 1)];
35039
+ const kb = [new G(0, 0), new G(1, 1)];
35040
35040
  class mb {
35041
35041
  constructor(t = kb) {
35042
35042
  this._lines = t;
@@ -35071,7 +35071,7 @@ class mb {
35071
35071
  if (u * d >= 0)
35072
35072
  return !1;
35073
35073
  const c = u / (l - o), g = c * (s.x - a.x), h = c * (s.y - a.y);
35074
- return new H(a.x + g, a.y + h);
35074
+ return new G(a.x + g, a.y + h);
35075
35075
  }
35076
35076
  }
35077
35077
  const pb = 60, NB = 3600, U0 = 1e3, A6 = 16.67;
@@ -35278,7 +35278,7 @@ const $B = {
35278
35278
  fill: "rgba(0, 0, 0, 0.2)"
35279
35279
  };
35280
35280
  function Be(r) {
35281
- const e = r.getScene().findViewportByPosToScene(H.FromArray([r.offsetX, r.offsetY])), a = 0, s = 0;
35281
+ const e = r.getScene().findViewportByPosToScene(G.FromArray([r.offsetX, r.offsetY])), a = 0, s = 0;
35282
35282
  if (!e)
35283
35283
  return {
35284
35284
  scrollX: a,
@@ -36104,7 +36104,7 @@ class $7 extends I7 {
36104
36104
  }
36105
36105
  getParentScale() {
36106
36106
  let { scaleX: t = 1, scaleY: e = 1 } = this.parent;
36107
- return this.parent.classType === Z.SCENE_VIEWER && (t = this.parent.ancestorScaleX || 1, e = this.parent.ancestorScaleY || 1), {
36107
+ return this.parent.classType === K.SCENE_VIEWER && (t = this.parent.ancestorScaleX || 1, e = this.parent.ancestorScaleY || 1), {
36108
36108
  scaleX: t,
36109
36109
  scaleY: e
36110
36110
  };
@@ -36310,12 +36310,12 @@ let Sb = class extends C3 {
36310
36310
  z.push(...x);
36311
36311
  });
36312
36312
  const _ = (C) => {
36313
- const x = p[C], S = (B, A, L) => {
36313
+ const x = p[C], S = (B, A, I) => {
36314
36314
  if (s.worksheet.getSpanModel().getMergeDataIndex(B, A) !== -1)
36315
36315
  return;
36316
- const M = s.getCellByIndexWithNoHeader(B, A);
36317
- if (!M) return;
36318
- (L || x.getValue(B, A)) && (y.cellInfo = M, this.renderBGByCell(y, B, A));
36316
+ const L = s.getCellByIndexWithNoHeader(B, A);
36317
+ if (!L) return;
36318
+ (I || x.getValue(B, A)) && (y.cellInfo = L, this.renderBGByCell(y, B, A));
36319
36319
  };
36320
36320
  e.fillStyle = C || I2([255, 255, 255]);
36321
36321
  const F = new Path2D();
@@ -36457,7 +36457,7 @@ let Ab = class extends C3 {
36457
36457
  endX: u,
36458
36458
  endY: d
36459
36459
  }) {
36460
- var T, R, B, A, L, I, M, P, N, $, G, V, Q, h1, c1, s1;
36460
+ var T, R, B, A, I, M, L, $, P, N, H, V, Q, h1, c1, s1;
36461
36461
  const { ctx: c, precisionScale: g, spreadsheetSkeleton: h } = e, p = h.stylesCache.border, f = (i - 1) / 2 / g, m = i / 2, v = (Y) => {
36462
36462
  c.save(), c.lineCap = "round", c.globalCompositeOperation = "destination-out", B2(c, n, f, Y), c.restore();
36463
36463
  }, y = (Y) => {
@@ -36503,7 +36503,7 @@ let Ab = class extends C3 {
36503
36503
  F.endYOffset = 0, S.endYOffset = 0;
36504
36504
  else {
36505
36505
  const Y = this._getSpecificCellBorder(p, a + 1, s - 1), e1 = this._getSpecificCellBorder(p, a + 1, s + 1);
36506
- n === U.LEFT && (((L = _.bottom) == null ? void 0 : L.style) === l1.DOUBLE || ((I = Y.top) == null ? void 0 : I.style) === l1.DOUBLE) || n === U.RIGHT && (((M = j.bottom) == null ? void 0 : M.style) === l1.DOUBLE || ((P = e1.top) == null ? void 0 : P.style) === l1.DOUBLE) ? F.endYOffset = -m : n === U.LEFT && Y.top && Y.top.style !== l1.DOUBLE || n === U.RIGHT && e1.top && e1.top.style !== l1.DOUBLE ? F.endYOffset = 0 : F.endYOffset = m, S.endYOffset = m;
36506
+ n === U.LEFT && (((I = _.bottom) == null ? void 0 : I.style) === l1.DOUBLE || ((M = Y.top) == null ? void 0 : M.style) === l1.DOUBLE) || n === U.RIGHT && (((L = j.bottom) == null ? void 0 : L.style) === l1.DOUBLE || (($ = e1.top) == null ? void 0 : $.style) === l1.DOUBLE) ? F.endYOffset = -m : n === U.LEFT && Y.top && Y.top.style !== l1.DOUBLE || n === U.RIGHT && e1.top && e1.top.style !== l1.DOUBLE ? F.endYOffset = 0 : F.endYOffset = m, S.endYOffset = m;
36507
36507
  }
36508
36508
  x.startY = l - m, x.endY = d + m, v(x), (n === U.LEFT && !_.right || n === U.RIGHT && !j.left) && y(F), z(S);
36509
36509
  } else if (n === U.TOP || n === U.BOTTOM) {
@@ -36511,7 +36511,7 @@ let Ab = class extends C3 {
36511
36511
  F.startXOffset = 0, S.startXOffset = 0;
36512
36512
  else {
36513
36513
  const Y = this._getSpecificCellBorder(p, a - 1, s - 1), e1 = this._getSpecificCellBorder(p, a + 1, s - 1);
36514
- n === U.TOP && (((N = w.left) == null ? void 0 : N.style) === l1.DOUBLE || (($ = Y.right) == null ? void 0 : $.style) === l1.DOUBLE) || n === U.BOTTOM && (((G = C.left) == null ? void 0 : G.style) === l1.DOUBLE || ((V = e1.right) == null ? void 0 : V.style) === l1.DOUBLE) ? F.startXOffset = -m : n === U.TOP && Y.right && Y.right.style !== l1.DOUBLE || n === U.BOTTOM && e1.right && e1.right.style !== l1.DOUBLE ? F.startXOffset = 0 : F.startXOffset = m, S.startXOffset = m;
36514
+ n === U.TOP && (((P = w.left) == null ? void 0 : P.style) === l1.DOUBLE || ((N = Y.right) == null ? void 0 : N.style) === l1.DOUBLE) || n === U.BOTTOM && (((H = C.left) == null ? void 0 : H.style) === l1.DOUBLE || ((V = e1.right) == null ? void 0 : V.style) === l1.DOUBLE) ? F.startXOffset = -m : n === U.TOP && Y.right && Y.right.style !== l1.DOUBLE || n === U.BOTTOM && e1.right && e1.right.style !== l1.DOUBLE ? F.startXOffset = 0 : F.startXOffset = m, S.startXOffset = m;
36515
36515
  }
36516
36516
  if (j.left && j.left.style !== l1.DOUBLE)
36517
36517
  F.endXOffset = 0, S.endXOffset = 0;
@@ -43469,13 +43469,13 @@ function V0(r, t, e, a) {
43469
43469
  if (!z)
43470
43470
  return;
43471
43471
  const _ = [];
43472
- _.push(new H(y[0], y[1]));
43472
+ _.push(new G(y[0], y[1]));
43473
43473
  for (let j = 0; j < z.length; j++) {
43474
43474
  const w = z[j];
43475
- _.push(new H(w[0], w[1]));
43475
+ _.push(new G(w[0], w[1]));
43476
43476
  }
43477
43477
  if (l !== 0) {
43478
- const j = new A1().rotate(l);
43478
+ const j = new B1().rotate(l);
43479
43479
  for (let w = 0; w < _.length; w++) {
43480
43480
  const C = _[w];
43481
43481
  _[w] = j.applyPoint(C);
@@ -43505,7 +43505,7 @@ function V0(r, t, e, a) {
43505
43505
  return X6(v.points, e, t, a);
43506
43506
  }
43507
43507
  function S0(r, t, e, a, s) {
43508
- const n = t + e / 2, i = a + s / 2, o = new A1().translate(n, i).rotate(r).translate(-n, -i), l = new H(t, a), u = new H(t, a + s), d = new H(t + e, a), c = new H(t + e, a + s);
43508
+ const n = t + e / 2, i = a + s / 2, o = new B1().translate(n, i).rotate(r).translate(-n, -i), l = new G(t, a), u = new G(t, a + s), d = new G(t + e, a), c = new G(t + e, a + s);
43509
43509
  return o.makeBoundingBoxFromPoints([l, u, d, c]);
43510
43510
  }
43511
43511
  function i0(r, t, e, a = !0) {
@@ -43517,9 +43517,9 @@ function i0(r, t, e, a = !0) {
43517
43517
  };
43518
43518
  }
43519
43519
  function X6(r, t, e, a) {
43520
- const s = new mb(r), n = s.intersection([new H(0, t), new H(a, t)]), i = s.intersection([
43521
- new H(0, t + e),
43522
- new H(a, t + e)
43520
+ const s = new mb(r), n = s.intersection([new G(0, t), new G(a, t)]), i = s.intersection([
43521
+ new G(0, t + e),
43522
+ new G(a, t + e)
43523
43523
  ]);
43524
43524
  if (!n && !i)
43525
43525
  return;
@@ -43704,7 +43704,7 @@ function Ly(r, t, e, a, s) {
43704
43704
  u.rows.push(C);
43705
43705
  let F = 0, T = 0;
43706
43706
  for (const B of v) {
43707
- const A = v.indexOf(B), L = bt(
43707
+ const A = v.indexOf(B), I = bt(
43708
43708
  r,
43709
43709
  e,
43710
43710
  B,
@@ -43712,31 +43712,31 @@ function Ly(r, t, e, a, s) {
43712
43712
  l,
43713
43713
  _,
43714
43714
  A
43715
- )[0], { marginTop: I = 0, marginBottom: M = 0 } = L, P = L.height + I + M;
43716
- L.left = F, F += L.pageWidth, L.parent = C, C.cells.push(L), T = Math.max(T, P);
43715
+ )[0], { marginTop: M = 0, marginBottom: L = 0 } = I, $ = I.height + M + L;
43716
+ I.left = F, F += I.pageWidth, I.parent = C, C.cells.push(I), T = Math.max(T, $);
43717
43717
  }
43718
43718
  x === ne.AT_LEAST ? T = Math.max(T, S.v) : x === ne.EXACT && (T = S.v);
43719
43719
  for (const B of C.cells)
43720
43720
  B.pageHeight = T;
43721
43721
  const R = l.tableRows[_];
43722
43722
  for (let B = 0; B < R.tableCells.length; B++) {
43723
- const A = R.tableCells[B], L = C.cells[B], { vAlign: I = V2.CONTENT_ALIGNMENT_UNSPECIFIED } = A, { pageHeight: M, height: P, originMarginTop: N, originMarginBottom: $ } = L;
43724
- let G = N;
43725
- switch (I) {
43723
+ const A = R.tableCells[B], I = C.cells[B], { vAlign: M = V2.CONTENT_ALIGNMENT_UNSPECIFIED } = A, { pageHeight: L, height: $, originMarginTop: P, originMarginBottom: N } = I;
43724
+ let H = P;
43725
+ switch (M) {
43726
43726
  case V2.TOP: {
43727
- G = N;
43727
+ H = P;
43728
43728
  break;
43729
43729
  }
43730
43730
  case V2.CENTER: {
43731
- G = (M - P) / 2;
43731
+ H = (L - $) / 2;
43732
43732
  break;
43733
43733
  }
43734
43734
  case V2.BOTTOM: {
43735
- G = M - P - $;
43735
+ H = L - $ - N;
43736
43736
  break;
43737
43737
  }
43738
43738
  }
43739
- G = Math.max(N, G), L.marginTop = G;
43739
+ H = Math.max(P, H), I.marginTop = H;
43740
43740
  }
43741
43741
  C.height = T, C.top = d, d += T, c = Math.max(c, F);
43742
43742
  }
@@ -43821,22 +43821,22 @@ function nt(r, t, e, a, s, n, i, o, l, u = !1) {
43821
43821
  );
43822
43822
  for (; y.length < R.length; ) {
43823
43823
  const B = ot(h, p, i, f, u), A = g.length;
43824
- B.cells = [...new Array(A)].map((L, I) => {
43825
- const M = vt(
43824
+ B.cells = [...new Array(A)].map((I, M) => {
43825
+ const L = vt(
43826
43826
  r,
43827
43827
  s,
43828
43828
  o,
43829
43829
  i,
43830
- I
43830
+ M
43831
43831
  ).page;
43832
- return M.parent = B, M;
43832
+ return L.parent = B, L;
43833
43833
  }), y.push(B);
43834
43834
  }
43835
43835
  for (; S.length < R.length; )
43836
43836
  S.push(0);
43837
43837
  for (const B of R) {
43838
- const { marginTop: A = 0, marginBottom: L = 0 } = B, I = B.height + A + L, M = R.indexOf(B), P = y[M];
43839
- B.parent = P, P.cells[T] = B, S[M] = Math.max(S[M], I);
43838
+ const { marginTop: A = 0, marginBottom: I = 0 } = B, M = B.height + A + I, L = R.indexOf(B), $ = y[L];
43839
+ B.parent = $, $.cells[T] = B, S[L] = Math.max(S[L], M);
43840
43840
  }
43841
43841
  }
43842
43842
  for (const F of y) {
@@ -44087,24 +44087,24 @@ function N2(r, t, e, a, s, n, i = L1.Normal, o) {
44087
44087
  S
44088
44088
  );
44089
44089
  if (z.contentHeight < A) {
44090
- const L = iz(z), I = L.length;
44091
- let M = [], P = 1;
44092
- I > 2 && L[0].glyphType === e2.LIST ? (M = [L[0], L[1]], P = 2) : M = [L[0]];
44093
- const N = z.parent, { paragraphStart: $ } = N == null ? void 0 : N.lines.pop();
44090
+ const I = iz(z), M = I.length;
44091
+ let L = [], $ = 1;
44092
+ M > 2 && I[0].glyphType === e2.LIST ? (L = [I[0], I[1]], $ = 2) : L = [I[0]];
44093
+ const P = z.parent, { paragraphStart: N } = P == null ? void 0 : P.lines.pop();
44094
44094
  he(
44095
44095
  r,
44096
- M,
44096
+ L,
44097
44097
  e,
44098
44098
  a,
44099
44099
  s,
44100
- $,
44100
+ N,
44101
44101
  i,
44102
44102
  T + R
44103
44103
  );
44104
- for (let G = P; G < L.length; G++)
44104
+ for (let H = $; H < I.length; H++)
44105
44105
  N2(
44106
44106
  r,
44107
- [L[G]],
44107
+ [I[H]],
44108
44108
  e,
44109
44109
  a,
44110
44110
  s,
@@ -44149,23 +44149,23 @@ function he(r, t, e, a, s, n, i = L1.Normal, o) {
44149
44149
  indentStart: B,
44150
44150
  indentEnd: A
44151
44151
  } = x, {
44152
- paragraphLineGapDefault: L,
44153
- linePitch: I,
44154
- lineSpacing: M,
44155
- spacingRule: P,
44156
- snapToGrid: N,
44157
- gridType: $
44152
+ paragraphLineGapDefault: I,
44153
+ linePitch: M,
44154
+ lineSpacing: L,
44155
+ spacingRule: $,
44156
+ snapToGrid: P,
44157
+ gridType: N
44158
44158
  } = ht(
44159
44159
  a,
44160
44160
  s
44161
- ), { paddingTop: G, paddingBottom: V, contentHeight: Q, lineSpacingApply: h1 } = gt(
44161
+ ), { paddingTop: H, paddingBottom: V, contentHeight: Q, lineSpacingApply: h1 } = gt(
44162
44162
  p,
44163
- L,
44164
44163
  I,
44165
- $,
44166
44164
  M,
44167
- P,
44168
- N
44165
+ N,
44166
+ L,
44167
+ $,
44168
+ P
44169
44169
  ), { marginTop: c1, spaceBelowApply: s1 } = tz(
44170
44170
  r,
44171
44171
  h1,
@@ -44173,7 +44173,7 @@ function he(r, t, e, a, s, n, i = L1.Normal, o) {
44173
44173
  F,
44174
44174
  n,
44175
44175
  c
44176
- ), Y = c1 + G + Q + V;
44176
+ ), Y = c1 + H + Q + V;
44177
44177
  let e1 = d.parent;
44178
44178
  e1 || (e1 = T0(l));
44179
44179
  const f1 = (c == null ? void 0 : c.lineHeight) || 0, z1 = (c == null ? void 0 : c.top) || 0, p1 = f1 + z1, { pageWidth: C1, headerId: H1, footerId: D1, segmentId: F1 } = l, P1 = (E3 = y == null ? void 0 : y.get(H1)) == null ? void 0 : E3.get(C1), q1 = (X3 = z == null ? void 0 : z.get(D1)) == null ? void 0 : X3.get(C1);
@@ -44212,7 +44212,7 @@ function he(r, t, e, a, s, n, i = L1.Normal, o) {
44212
44212
  l.skeDrawings.has(S1.drawingId) && l.skeDrawings.delete(S1.drawingId), r.floatObjectsCache.has(S1.drawingId) && (r.floatObjectsCache.delete(S1.drawingId), r.isDirty = !1, r.layoutStartPointer[F1] = null);
44213
44213
  return;
44214
44214
  }
44215
- const W1 = c ? c.lineIndex + 1 : 0, { charSpace: n2, defaultTabStop: t2 } = kz(a, s), R1 = l0(n2, t2, $, N);
44215
+ const W1 = c ? c.lineIndex + 1 : 0, { charSpace: n2, defaultTabStop: t2 } = kz(a, s), R1 = l0(n2, t2, N, P);
44216
44216
  let { paddingLeft: N1, paddingRight: i2 } = ez(
44217
44217
  T,
44218
44218
  R,
@@ -44234,7 +44234,7 @@ function he(r, t, e, a, s, n, i = L1.Normal, o) {
44234
44234
  lineTop: P2,
44235
44235
  paddingLeft: N1,
44236
44236
  paddingRight: i2,
44237
- paddingTop: G,
44237
+ paddingTop: H,
44238
44238
  paddingBottom: V,
44239
44239
  marginTop: c1,
44240
44240
  spaceBelowApply: s1
@@ -44737,25 +44737,25 @@ function u0(r, t = -1) {
44737
44737
  const { divides: C, lineHeight: x, top: S, isBehindTable: F, tableId: T } = w;
44738
44738
  let R = z;
44739
44739
  if (F && T) {
44740
- const N = n.get(T);
44741
- N && (R = N.ed);
44740
+ const P = n.get(T);
44741
+ P && (R = P.ed);
44742
44742
  }
44743
- let B = R, A = 0, L = 0, I = 0;
44743
+ let B = R, A = 0, I = 0, M = 0;
44744
44744
  _ = S + x;
44745
- const M = C.length;
44746
- let P = !1;
44747
- for (let N = 0; N < M; N++) {
44748
- const $ = C[N], { glyphGroup: G } = $, V = B;
44745
+ const L = C.length;
44746
+ let $ = !1;
44747
+ for (let P = 0; P < L; P++) {
44748
+ const N = C[P], { glyphGroup: H } = N, V = B;
44749
44749
  let Q = V;
44750
- for (const h1 of G) {
44750
+ for (const h1 of H) {
44751
44751
  const c1 = h1.glyphType === e2.LIST ? 0 : h1.count;
44752
44752
  Q += c1;
44753
44753
  const s1 = h1.bBox, { ba: Y, bd: e1 } = s1;
44754
- L = Math.max(L, Y), I = Math.max(I, e1), N === M - 1 && (A += h1.width);
44754
+ I = Math.max(I, Y), M = Math.max(M, e1), P === L - 1 && (A += h1.width);
44755
44755
  }
44756
- G.length !== 0 && (P = !0, G[0].xOffset !== 0 && N === M - 1 && (A -= G[0].xOffset), N === M - 1 && (A += $.left), $.st = V + 1, $.ed = Q >= $.st ? Q : $.st, B = $.ed);
44756
+ H.length !== 0 && ($ = !0, H[0].xOffset !== 0 && P === L - 1 && (A -= H[0].xOffset), P === L - 1 && (A += N.left), N.st = V + 1, N.ed = Q >= N.st ? Q : N.st, B = N.ed);
44757
44757
  }
44758
- w.st = P ? R + 1 : R, w.ed = B >= w.st ? B : w.st, w.width = A, w.asc = L, w.dsc = I, j = Math.max(j, A), z = w.ed;
44758
+ w.st = $ ? R + 1 : R, w.ed = B >= w.st ? B : w.st, w.width = A, w.asc = I, w.dsc = M, j = Math.max(j, A), z = w.ed;
44759
44759
  }
44760
44760
  m.st = y + 1, m.ed = z >= m.st ? z : m.st, m.height = _, m.width = j, f += j, p = Math.max(p, m.height), h = m.ed;
44761
44761
  }
@@ -44964,27 +44964,27 @@ function f3(r, t, e, a, s) {
44964
44964
  const R = y4.getValue(S, F);
44965
44965
  if (R && !x && m)
44966
44966
  return R;
44967
- const { snapToGrid: B = r1.TRUE, namedStyleType: A } = g, L = h ? vz(h, t) : null, I = A ? W8[A] : null;
44967
+ const { snapToGrid: B = r1.TRUE, namedStyleType: A } = g, I = h ? vz(h, t) : null, M = A ? W8[A] : null;
44968
44968
  T = {
44969
44969
  ...o,
44970
- ...I,
44970
+ ...M,
44971
44971
  ...T,
44972
44972
  ..._,
44973
44973
  ...C,
44974
- ...L
44974
+ ...I
44975
44975
  };
44976
- const M = g3(T), P = {
44976
+ const L = g3(T), $ = {
44977
44977
  ...o,
44978
44978
  ...T
44979
- }, N = l.width || Number.POSITIVE_INFINITY - d - u, $ = {
44980
- fontStyle: M,
44981
- textStyle: P,
44979
+ }, P = l.width || Number.POSITIVE_INFINITY - d - u, N = {
44980
+ fontStyle: L,
44981
+ textStyle: $,
44982
44982
  charSpace: i,
44983
44983
  gridType: n,
44984
44984
  snapToGrid: B,
44985
- pageWidth: N
44985
+ pageWidth: P
44986
44986
  };
44987
- return !x && m && y4.setValue(S, F, $), $;
44987
+ return !x && m && y4.setValue(S, F, N), N;
44988
44988
  }
44989
44989
  function bz() {
44990
44990
  return {
@@ -45080,16 +45080,16 @@ function wz(r, t) {
45080
45080
  wrapStrategy: M1.UNSPECIFIED
45081
45081
  }
45082
45082
  } = i, {
45083
- charSpace: L = 0,
45083
+ charSpace: I = 0,
45084
45084
  // charSpace
45085
- linePitch: I = 15.6,
45085
+ linePitch: M = 15.6,
45086
45086
  // linePitch pt
45087
- gridType: M = U1.LINES,
45087
+ gridType: L = U1.LINES,
45088
45088
  // gridType
45089
- pageNumberStart: P = u,
45090
- pageSize: N = d,
45091
- pageOrient: $ = c,
45092
- marginTop: G = _,
45089
+ pageNumberStart: $ = u,
45090
+ pageSize: P = d,
45091
+ pageOrient: N = c,
45092
+ marginTop: H = _,
45093
45093
  marginBottom: V = j,
45094
45094
  marginRight: Q = w,
45095
45095
  marginLeft: h1 = C,
@@ -45110,14 +45110,14 @@ function wz(r, t) {
45110
45110
  textDirection: P2,
45111
45111
  renderConfig: W1 = A
45112
45112
  } = l, n2 = e.getChildren()[t + 1], t2 = (o2 = e.getSectionBreak(n2 == null ? void 0 : n2.endIndex)) == null ? void 0 : o2.sectionType, R1 = { defaultHeaderId: Y, evenPageHeaderId: f1, firstPageHeaderId: p1 }, N1 = { defaultFooterId: e1, evenPageFooterId: z1, firstPageFooterId: C1 };
45113
- return N.width === null && (N.width = Number.POSITIVE_INFINITY), N.height === null && (N.height = Number.POSITIVE_INFINITY), {
45114
- charSpace: L,
45115
- linePitch: I,
45116
- gridType: M,
45117
- pageNumberStart: P,
45118
- pageSize: N,
45119
- pageOrient: $,
45120
- marginTop: G,
45113
+ return P.width === null && (P.width = Number.POSITIVE_INFINITY), P.height === null && (P.height = Number.POSITIVE_INFINITY), {
45114
+ charSpace: I,
45115
+ linePitch: M,
45116
+ gridType: L,
45117
+ pageNumberStart: $,
45118
+ pageSize: P,
45119
+ pageOrient: N,
45120
+ marginTop: H,
45121
45121
  marginBottom: V,
45122
45122
  marginRight: Q,
45123
45123
  marginLeft: h1,
@@ -45195,25 +45195,25 @@ function _3(r, t, e, a = 1, s = ge.SECTION) {
45195
45195
  renderConfig: C = {}
45196
45196
  } = t, { skeHeaders: x, skeFooters: S } = e, { width: F = Number.POSITIVE_INFINITY, height: T = Number.POSITIVE_INFINITY } = o;
45197
45197
  n.pageNumber = a, n.pageNumberStart = i, n.renderConfig = C, n.marginLeft = j, n.marginRight = w, n.breakType = s, n.pageWidth = F, n.width = 0, n.pageHeight = T, n.height = 0, n.pageOrient = l;
45198
- const { defaultHeaderId: R, evenPageHeaderId: B, firstPageHeaderId: A } = u, { defaultFooterId: L, evenPageFooterId: I, firstPageFooterId: M } = d;
45199
- let P = R != null ? R : "", N = L != null ? L : "";
45200
- a === i && c === r1.TRUE ? (P = A != null ? A : "", N = M != null ? M : "") : a % 2 === 0 && g === r1.TRUE && (P = B != null ? B : "", N = I != null ? I : "");
45201
- let $, G;
45202
- P && ((C1 = x.get(P)) != null && C1.has(F) ? $ = (H1 = x.get(P)) == null ? void 0 : H1.get(F) : p && p.has(P) && ($ = z4(
45198
+ const { defaultHeaderId: R, evenPageHeaderId: B, firstPageHeaderId: A } = u, { defaultFooterId: I, evenPageFooterId: M, firstPageFooterId: L } = d;
45199
+ let $ = R != null ? R : "", P = I != null ? I : "";
45200
+ a === i && c === r1.TRUE ? ($ = A != null ? A : "", P = L != null ? L : "") : a % 2 === 0 && g === r1.TRUE && ($ = B != null ? B : "", P = M != null ? M : "");
45201
+ let N, H;
45202
+ $ && ((C1 = x.get($)) != null && C1.has(F) ? N = (H1 = x.get($)) == null ? void 0 : H1.get(F) : p && p.has($) && (N = z4(
45203
45203
  r,
45204
- p.get(P),
45204
+ p.get($),
45205
45205
  t,
45206
45206
  e,
45207
- P,
45207
+ $,
45208
45208
  !0
45209
- ), x.set(P, /* @__PURE__ */ new Map([[F, $]]))), n.headerId = P), N && ((D1 = S.get(N)) != null && D1.has(F) ? G = (F1 = S.get(N)) == null ? void 0 : F1.get(F) : h && h.has(N) && (G = z4(
45209
+ ), x.set($, /* @__PURE__ */ new Map([[F, N]]))), n.headerId = $), P && ((D1 = S.get(P)) != null && D1.has(F) ? H = (F1 = S.get(P)) == null ? void 0 : F1.get(F) : h && h.has(P) && (H = z4(
45210
45210
  r,
45211
- h.get(N),
45211
+ h.get(P),
45212
45212
  t,
45213
45213
  e,
45214
- N,
45214
+ P,
45215
45215
  !1
45216
- ), S.set(N, /* @__PURE__ */ new Map([[F, G]]))), n.footerId = N), n.originMarginTop = v, n.originMarginBottom = y, n.marginTop = t5(v, $, T), n.marginBottom = t5(y, G, T);
45216
+ ), S.set(P, /* @__PURE__ */ new Map([[F, H]]))), n.footerId = P), n.originMarginTop = v, n.originMarginBottom = y, n.marginTop = t5(v, N, T), n.marginBottom = t5(y, H, T);
45217
45217
  const V = n.sections, Q = V[V.length - 1], { marginTop: h1, marginBottom: c1, marginLeft: s1, marginRight: Y } = n, e1 = F - s1 - Y, f1 = T - h1 - c1;
45218
45218
  let z1 = 0;
45219
45219
  Q && (z1 = Q.top + Q.height);
@@ -45763,32 +45763,32 @@ function t_(r, t, e, a, s, n, i) {
45763
45763
  const A = (B = F.get(c)) == null ? void 0 : B.bulletSkeleton;
45764
45764
  S.bulletSkeleton = A;
45765
45765
  } else {
45766
- const A = Qz(v, _), L = Xz(v, l, A);
45767
- e_(f, v, L, _), S.bulletSkeleton = L;
45766
+ const A = Qz(v, _), I = Xz(v, l, A);
45767
+ e_(f, v, I, _), S.bulletSkeleton = I;
45768
45768
  }
45769
- for (let A = 0, L = g.length; A < L; A++) {
45770
- const I = g[A], M = t.getCustomBlock(I);
45771
- if (M == null)
45769
+ for (let A = 0, I = g.length; A < I; A++) {
45770
+ const M = g[A], L = t.getCustomBlock(M);
45771
+ if (L == null)
45772
45772
  continue;
45773
- const { blockId: P } = M, N = u[P];
45774
- N.layoutType === Z1.INLINE ? C.set(P, s5(N)) : w.set(P, s5(N));
45773
+ const { blockId: $ } = L, P = u[$];
45774
+ P.layoutType === Z1.INLINE ? C.set($, s5(P)) : w.set($, s5(P));
45775
45775
  }
45776
45776
  F.set(c, S);
45777
45777
  let T = [a], R = !0;
45778
- for (const [A, { text: L, glyphs: I, breakPointType: M }] of e.entries()) {
45779
- const P = () => {
45780
- I.length !== 0 && (T = Gy(
45778
+ for (const [A, { text: I, glyphs: M, breakPointType: L }] of e.entries()) {
45779
+ const $ = () => {
45780
+ M.length !== 0 && (T = Gy(
45781
45781
  r,
45782
- I,
45782
+ M,
45783
45783
  T,
45784
45784
  n,
45785
45785
  S,
45786
45786
  R,
45787
- M
45787
+ L
45788
45788
  ), R = !1);
45789
45789
  };
45790
- if (L.endsWith(t1.PAGE_BREAK)) {
45791
- P(), T.push(
45790
+ if (I.endsWith(t1.PAGE_BREAK)) {
45791
+ $(), T.push(
45792
45792
  _3(
45793
45793
  r,
45794
45794
  n,
@@ -45798,21 +45798,21 @@ function t_(r, t, e, a, s, n, i) {
45798
45798
  )
45799
45799
  ), w.clear(), C.clear();
45800
45800
  continue;
45801
- } else if (L.endsWith(t1.COLUMN_BREAK)) {
45802
- P();
45803
- const N = T[T.length - 1], $ = o0(N);
45804
- $ && !$.isLast ? st($.column, !0) : T.push(
45801
+ } else if (I.endsWith(t1.COLUMN_BREAK)) {
45802
+ $();
45803
+ const P = T[T.length - 1], N = o0(P);
45804
+ N && !N.isLast ? st(N.column, !0) : T.push(
45805
45805
  _3(
45806
45806
  r,
45807
45807
  n,
45808
45808
  o,
45809
- n5(N),
45809
+ n5(P),
45810
45810
  ge.COLUMN
45811
45811
  )
45812
45812
  );
45813
45813
  continue;
45814
45814
  }
45815
- P();
45815
+ $();
45816
45816
  }
45817
45817
  return T;
45818
45818
  }
@@ -46276,24 +46276,24 @@ s3.prototype.addQuad = function(r, t, e, a, s, n) {
46276
46276
  var i = r + 0.6666666666666666 * (e - r), o = t + 2 / 3 * (a - t), l = i + 1 / 3 * (s - r), u = o + 1 / 3 * (n - t);
46277
46277
  this.addBezier(r, t, i, o, l, u, s, n);
46278
46278
  };
46279
- function B1() {
46279
+ function A1() {
46280
46280
  this.commands = [], this.fill = "black", this.stroke = null, this.strokeWidth = 1;
46281
46281
  }
46282
- B1.prototype.moveTo = function(r, t) {
46282
+ A1.prototype.moveTo = function(r, t) {
46283
46283
  this.commands.push({
46284
46284
  type: "M",
46285
46285
  x: r,
46286
46286
  y: t
46287
46287
  });
46288
46288
  };
46289
- B1.prototype.lineTo = function(r, t) {
46289
+ A1.prototype.lineTo = function(r, t) {
46290
46290
  this.commands.push({
46291
46291
  type: "L",
46292
46292
  x: r,
46293
46293
  y: t
46294
46294
  });
46295
46295
  };
46296
- B1.prototype.curveTo = B1.prototype.bezierCurveTo = function(r, t, e, a, s, n) {
46296
+ A1.prototype.curveTo = A1.prototype.bezierCurveTo = function(r, t, e, a, s, n) {
46297
46297
  this.commands.push({
46298
46298
  type: "C",
46299
46299
  x1: r,
@@ -46304,7 +46304,7 @@ B1.prototype.curveTo = B1.prototype.bezierCurveTo = function(r, t, e, a, s, n) {
46304
46304
  y: n
46305
46305
  });
46306
46306
  };
46307
- B1.prototype.quadTo = B1.prototype.quadraticCurveTo = function(r, t, e, a) {
46307
+ A1.prototype.quadTo = A1.prototype.quadraticCurveTo = function(r, t, e, a) {
46308
46308
  this.commands.push({
46309
46309
  type: "Q",
46310
46310
  x1: r,
@@ -46313,12 +46313,12 @@ B1.prototype.quadTo = B1.prototype.quadraticCurveTo = function(r, t, e, a) {
46313
46313
  y: a
46314
46314
  });
46315
46315
  };
46316
- B1.prototype.close = B1.prototype.closePath = function() {
46316
+ A1.prototype.close = A1.prototype.closePath = function() {
46317
46317
  this.commands.push({
46318
46318
  type: "Z"
46319
46319
  });
46320
46320
  };
46321
- B1.prototype.extend = function(r) {
46321
+ A1.prototype.extend = function(r) {
46322
46322
  if (r.commands)
46323
46323
  r = r.commands;
46324
46324
  else if (r instanceof s3) {
@@ -46328,7 +46328,7 @@ B1.prototype.extend = function(r) {
46328
46328
  }
46329
46329
  Array.prototype.push.apply(this.commands, r);
46330
46330
  };
46331
- B1.prototype.getBoundingBox = function() {
46331
+ A1.prototype.getBoundingBox = function() {
46332
46332
  for (var r = new s3(), t = 0, e = 0, a = 0, s = 0, n = 0; n < this.commands.length; n++) {
46333
46333
  var i = this.commands[n];
46334
46334
  switch (i.type) {
@@ -46353,7 +46353,7 @@ B1.prototype.getBoundingBox = function() {
46353
46353
  }
46354
46354
  return r.isEmpty() && r.addPoint(0, 0), r;
46355
46355
  };
46356
- B1.prototype.draw = function(r) {
46356
+ A1.prototype.draw = function(r) {
46357
46357
  r.beginPath();
46358
46358
  for (var t = 0; t < this.commands.length; t += 1) {
46359
46359
  var e = this.commands[t];
@@ -46361,7 +46361,7 @@ B1.prototype.draw = function(r) {
46361
46361
  }
46362
46362
  this.fill && (r.fillStyle = this.fill, r.fill()), this.stroke && (r.strokeStyle = this.stroke, r.lineWidth = this.strokeWidth, r.stroke());
46363
46363
  };
46364
- B1.prototype.toPathData = function(r) {
46364
+ A1.prototype.toPathData = function(r) {
46365
46365
  r = r !== void 0 ? r : 2;
46366
46366
  function t(i) {
46367
46367
  return Math.round(i) === i ? "" + Math.round(i) : i.toFixed(r);
@@ -46379,11 +46379,11 @@ B1.prototype.toPathData = function(r) {
46379
46379
  }
46380
46380
  return a;
46381
46381
  };
46382
- B1.prototype.toSVG = function(r) {
46382
+ A1.prototype.toSVG = function(r) {
46383
46383
  var t = '<path d="';
46384
46384
  return t += this.toPathData(r), t += '"', this.fill && this.fill !== "black" && (this.fill === null ? t += ' fill="none"' : t += ' fill="' + this.fill + '"'), this.stroke && (t += ' stroke="' + this.stroke + '" stroke-width="' + this.strokeWidth + '"'), t += "/>", t;
46385
46385
  };
46386
- B1.prototype.toDOMElement = function(r) {
46386
+ A1.prototype.toDOMElement = function(r) {
46387
46387
  var t = this.toPathData(r), e = document.createElementNS("http://www.w3.org/2000/svg", "path");
46388
46388
  return e.setAttribute("d", t), e;
46389
46389
  };
@@ -47218,7 +47218,7 @@ O.prototype.parseFeatureVariationsList = function() {
47218
47218
  return e;
47219
47219
  }) || [];
47220
47220
  };
47221
- var K = {
47221
+ var Z = {
47222
47222
  getByte: h5,
47223
47223
  getCard8: h5,
47224
47224
  getUShort: p0,
@@ -47244,23 +47244,23 @@ function L_(r, t, e, a, s) {
47244
47244
  r.length = t.parseUShort(), r.language = t.parseUShort();
47245
47245
  var n;
47246
47246
  r.segCount = n = t.parseUShort() >> 1, t.skip("uShort", 3), r.glyphIndexMap = {};
47247
- for (var i = new K.Parser(e, a + s + 14), o = new K.Parser(e, a + s + 16 + n * 2), l = new K.Parser(e, a + s + 16 + n * 4), u = new K.Parser(e, a + s + 16 + n * 6), d = a + s + 16 + n * 8, c = 0; c < n - 1; c += 1)
47247
+ for (var i = new Z.Parser(e, a + s + 14), o = new Z.Parser(e, a + s + 16 + n * 2), l = new Z.Parser(e, a + s + 16 + n * 4), u = new Z.Parser(e, a + s + 16 + n * 6), d = a + s + 16 + n * 8, c = 0; c < n - 1; c += 1)
47248
47248
  for (var g = void 0, h = i.parseUShort(), p = o.parseUShort(), f = l.parseShort(), m = u.parseUShort(), v = p; v <= h; v += 1)
47249
- m !== 0 ? (d = u.offset + u.relativeOffset - 2, d += m, d += (v - p) * 2, g = K.getUShort(e, d), g !== 0 && (g = g + f & 65535)) : g = v + f & 65535, r.glyphIndexMap[v] = g;
47249
+ m !== 0 ? (d = u.offset + u.relativeOffset - 2, d += m, d += (v - p) * 2, g = Z.getUShort(e, d), g !== 0 && (g = g + f & 65535)) : g = v + f & 65535, r.glyphIndexMap[v] = g;
47250
47250
  }
47251
47251
  function P_(r, t) {
47252
47252
  var e = {};
47253
- e.version = K.getUShort(r, t), n1.argument(e.version === 0, "cmap table version should be 0."), e.numTables = K.getUShort(r, t + 2);
47253
+ e.version = Z.getUShort(r, t), n1.argument(e.version === 0, "cmap table version should be 0."), e.numTables = Z.getUShort(r, t + 2);
47254
47254
  for (var a = -1, s = e.numTables - 1; s >= 0; s -= 1) {
47255
- var n = K.getUShort(r, t + 4 + s * 8), i = K.getUShort(r, t + 4 + s * 8 + 2);
47255
+ var n = Z.getUShort(r, t + 4 + s * 8), i = Z.getUShort(r, t + 4 + s * 8 + 2);
47256
47256
  if (n === 3 && (i === 0 || i === 1 || i === 10) || n === 0 && (i === 0 || i === 1 || i === 2 || i === 3 || i === 4)) {
47257
- a = K.getULong(r, t + 4 + s * 8 + 4);
47257
+ a = Z.getULong(r, t + 4 + s * 8 + 4);
47258
47258
  break;
47259
47259
  }
47260
47260
  }
47261
47261
  if (a === -1)
47262
47262
  throw new Error("No valid cmap sub-tables found.");
47263
- var o = new K.Parser(r, t + a);
47263
+ var o = new Z.Parser(r, t + a);
47264
47264
  if (e.format = o.parseUShort(), e.format === 12)
47265
47265
  I_(e, o);
47266
47266
  else if (e.format === 4)
@@ -48589,7 +48589,7 @@ function X_(r, t, e, a, s) {
48589
48589
  }
48590
48590
  var u3 = { line: X_ };
48591
48591
  function V_(r, t) {
48592
- var e = t || new B1();
48592
+ var e = t || new A1();
48593
48593
  return {
48594
48594
  configurable: !0,
48595
48595
  get: function() {
@@ -48624,7 +48624,7 @@ f2.prototype.getPath = function(r, t, e, a, s) {
48624
48624
  var u = 1 / (this.path.unitsPerEm || 1e3) * e;
48625
48625
  o === void 0 && (o = u), l === void 0 && (l = u);
48626
48626
  }
48627
- for (var d = new B1(), c = 0; c < n.length; c += 1) {
48627
+ for (var d = new A1(), c = 0; c < n.length; c += 1) {
48628
48628
  var g = n[c];
48629
48629
  g.type === "M" ? d.moveTo(r + g.x * o, t + -g.y * l) : g.type === "L" ? d.lineTo(r + g.x * o, t + -g.y * l) : g.type === "Q" ? d.quadraticCurveTo(
48630
48630
  r + g.x1 * o,
@@ -48764,40 +48764,40 @@ function C4(r) {
48764
48764
  return r.length < 1240 ? t = 107 : r.length < 33900 ? t = 1131 : t = 32768, t;
48765
48765
  }
48766
48766
  function X2(r, t, e) {
48767
- var a = [], s = [], n = K.getCard16(r, t), i, o;
48767
+ var a = [], s = [], n = Z.getCard16(r, t), i, o;
48768
48768
  if (n !== 0) {
48769
- var l = K.getByte(r, t + 2);
48769
+ var l = Z.getByte(r, t + 2);
48770
48770
  i = t + (n + 1) * l + 2;
48771
48771
  for (var u = t + 3, d = 0; d < n + 1; d += 1)
48772
- a.push(K.getOffset(r, u, l)), u += l;
48772
+ a.push(Z.getOffset(r, u, l)), u += l;
48773
48773
  o = i + a[n];
48774
48774
  } else
48775
48775
  o = t + 2;
48776
48776
  for (var c = 0; c < a.length - 1; c += 1) {
48777
- var g = K.getBytes(r, i + a[c], i + a[c + 1]);
48777
+ var g = Z.getBytes(r, i + a[c], i + a[c + 1]);
48778
48778
  e && (g = e(g)), s.push(g);
48779
48779
  }
48780
48780
  return { objects: s, startOffset: t, endOffset: o };
48781
48781
  }
48782
48782
  function Q_(r, t) {
48783
- var e = [], a = K.getCard16(r, t), s, n;
48783
+ var e = [], a = Z.getCard16(r, t), s, n;
48784
48784
  if (a !== 0) {
48785
- var i = K.getByte(r, t + 2);
48785
+ var i = Z.getByte(r, t + 2);
48786
48786
  s = t + (a + 1) * i + 2;
48787
48787
  for (var o = t + 3, l = 0; l < a + 1; l += 1)
48788
- e.push(K.getOffset(r, o, i)), o += i;
48788
+ e.push(Z.getOffset(r, o, i)), o += i;
48789
48789
  n = s + e[a];
48790
48790
  } else
48791
48791
  n = t + 2;
48792
48792
  return { offsets: e, startOffset: t, endOffset: n };
48793
48793
  }
48794
48794
  function eD(r, t, e, a, s) {
48795
- var n = K.getCard16(e, a), i = 0;
48795
+ var n = Z.getCard16(e, a), i = 0;
48796
48796
  if (n !== 0) {
48797
- var o = K.getByte(e, a + 2);
48797
+ var o = Z.getByte(e, a + 2);
48798
48798
  i = a + (n + 1) * o + 2;
48799
48799
  }
48800
- var l = K.getBytes(e, i + t[r], i + t[r + 1]);
48800
+ var l = Z.getBytes(e, i + t[r], i + t[r + 1]);
48801
48801
  return l;
48802
48802
  }
48803
48803
  function tD(r) {
@@ -48836,7 +48836,7 @@ function rD(r) {
48836
48836
  }
48837
48837
  function Rt(r, t, e) {
48838
48838
  t = t !== void 0 ? t : 0;
48839
- var a = new K.Parser(r, t), s = [], n = [];
48839
+ var a = new Z.Parser(r, t), s = [], n = [];
48840
48840
  for (e = e !== void 0 ? e : r.length; a.relativeOffset < e; ) {
48841
48841
  var i = a.parseByte();
48842
48842
  i <= 21 ? (i === 12 && (i = 1200 + a.parseByte()), s.push([i, n]), n = []) : n.push(aD(a, i));
@@ -48862,7 +48862,7 @@ function Mt(r, t, e) {
48862
48862
  }
48863
48863
  function sD(r, t) {
48864
48864
  var e = {};
48865
- return e.formatMajor = K.getCard8(r, t), e.formatMinor = K.getCard8(r, t + 1), e.size = K.getCard8(r, t + 2), e.offsetSize = K.getCard8(r, t + 3), e.startOffset = t, e.endOffset = t + 4, e;
48865
+ return e.formatMajor = Z.getCard8(r, t), e.formatMinor = Z.getCard8(r, t + 1), e.size = Z.getCard8(r, t + 2), e.offsetSize = Z.getCard8(r, t + 3), e.startOffset = t, e.endOffset = t + 4, e;
48866
48866
  }
48867
48867
  var It = [
48868
48868
  { name: "version", op: 0, type: "SID" },
@@ -48931,7 +48931,7 @@ function m5(r, t, e, a) {
48931
48931
  return s;
48932
48932
  }
48933
48933
  function iD(r, t, e, a) {
48934
- var s, n, i = new K.Parser(r, t);
48934
+ var s, n, i = new Z.Parser(r, t);
48935
48935
  e -= 1;
48936
48936
  var o = [".notdef"], l = i.parseCard8();
48937
48937
  if (l === 0)
@@ -48954,7 +48954,7 @@ function iD(r, t, e, a) {
48954
48954
  return o;
48955
48955
  }
48956
48956
  function oD(r, t, e) {
48957
- var a, s = {}, n = new K.Parser(r, t), i = n.parseCard8();
48957
+ var a, s = {}, n = new Z.Parser(r, t), i = n.parseCard8();
48958
48958
  if (i === 0)
48959
48959
  for (var o = n.parseCard8(), l = 0; l < o; l += 1)
48960
48960
  a = n.parseCard8(), s[a] = l;
@@ -48969,7 +48969,7 @@ function oD(r, t, e) {
48969
48969
  return new f0(s, e);
48970
48970
  }
48971
48971
  function p5(r, t, e) {
48972
- var a, s, n, i, o = new B1(), l = [], u = 0, d = !1, c = !1, g = 0, h = 0, p, f, m, v;
48972
+ var a, s, n, i, o = new A1(), l = [], u = 0, d = !1, c = !1, g = 0, h = 0, p, f, m, v;
48973
48973
  if (r.isCIDFont) {
48974
48974
  var y = r.tables.cff.topDict._fdSelect[t.index], z = r.tables.cff.topDict._fdArray[y];
48975
48975
  p = z._subrs, f = z._subrsBias, m = z._defaultWidthX, v = z._nominalWidthX;
@@ -48984,9 +48984,9 @@ function p5(r, t, e) {
48984
48984
  x = l.length % 2 !== 0, x && !d && (_ = l.shift() + v), u += l.length >> 1, l.length = 0, d = !0;
48985
48985
  }
48986
48986
  function C(x) {
48987
- for (var S, F, T, R, B, A, L, I, M, P, N, $, G = 0; G < x.length; ) {
48988
- var V = x[G];
48989
- switch (G += 1, V) {
48987
+ for (var S, F, T, R, B, A, I, M, L, $, P, N, H = 0; H < x.length; ) {
48988
+ var V = x[H];
48989
+ switch (H += 1, V) {
48990
48990
  case 1:
48991
48991
  w();
48992
48992
  break;
@@ -49018,18 +49018,18 @@ function p5(r, t, e) {
49018
49018
  case 11:
49019
49019
  return;
49020
49020
  case 12:
49021
- switch (V = x[G], G += 1, V) {
49021
+ switch (V = x[H], H += 1, V) {
49022
49022
  case 35:
49023
- a = g + l.shift(), s = h + l.shift(), n = a + l.shift(), i = s + l.shift(), L = n + l.shift(), I = i + l.shift(), M = L + l.shift(), P = I + l.shift(), N = M + l.shift(), $ = P + l.shift(), g = N + l.shift(), h = $ + l.shift(), l.shift(), o.curveTo(a, s, n, i, L, I), o.curveTo(M, P, N, $, g, h);
49023
+ a = g + l.shift(), s = h + l.shift(), n = a + l.shift(), i = s + l.shift(), I = n + l.shift(), M = i + l.shift(), L = I + l.shift(), $ = M + l.shift(), P = L + l.shift(), N = $ + l.shift(), g = P + l.shift(), h = N + l.shift(), l.shift(), o.curveTo(a, s, n, i, I, M), o.curveTo(L, $, P, N, g, h);
49024
49024
  break;
49025
49025
  case 34:
49026
- a = g + l.shift(), s = h, n = a + l.shift(), i = s + l.shift(), L = n + l.shift(), I = i, M = L + l.shift(), P = i, N = M + l.shift(), $ = h, g = N + l.shift(), o.curveTo(a, s, n, i, L, I), o.curveTo(M, P, N, $, g, h);
49026
+ a = g + l.shift(), s = h, n = a + l.shift(), i = s + l.shift(), I = n + l.shift(), M = i, L = I + l.shift(), $ = i, P = L + l.shift(), N = h, g = P + l.shift(), o.curveTo(a, s, n, i, I, M), o.curveTo(L, $, P, N, g, h);
49027
49027
  break;
49028
49028
  case 36:
49029
- a = g + l.shift(), s = h + l.shift(), n = a + l.shift(), i = s + l.shift(), L = n + l.shift(), I = i, M = L + l.shift(), P = i, N = M + l.shift(), $ = P + l.shift(), g = N + l.shift(), o.curveTo(a, s, n, i, L, I), o.curveTo(M, P, N, $, g, h);
49029
+ a = g + l.shift(), s = h + l.shift(), n = a + l.shift(), i = s + l.shift(), I = n + l.shift(), M = i, L = I + l.shift(), $ = i, P = L + l.shift(), N = $ + l.shift(), g = P + l.shift(), o.curveTo(a, s, n, i, I, M), o.curveTo(L, $, P, N, g, h);
49030
49030
  break;
49031
49031
  case 37:
49032
- a = g + l.shift(), s = h + l.shift(), n = a + l.shift(), i = s + l.shift(), L = n + l.shift(), I = i + l.shift(), M = L + l.shift(), P = I + l.shift(), N = M + l.shift(), $ = P + l.shift(), Math.abs(N - g) > Math.abs($ - h) ? g = N + l.shift() : h = $ + l.shift(), o.curveTo(a, s, n, i, L, I), o.curveTo(M, P, N, $, g, h);
49032
+ a = g + l.shift(), s = h + l.shift(), n = a + l.shift(), i = s + l.shift(), I = n + l.shift(), M = i + l.shift(), L = I + l.shift(), $ = M + l.shift(), P = L + l.shift(), N = $ + l.shift(), Math.abs(P - g) > Math.abs(N - h) ? g = P + l.shift() : h = N + l.shift(), o.curveTo(a, s, n, i, I, M), o.curveTo(L, $, P, N, g, h);
49033
49033
  break;
49034
49034
  default:
49035
49035
  console.log("Glyph " + t.index + ": unknown operator 1200" + V), l.length = 0;
@@ -49044,7 +49044,7 @@ function p5(r, t, e) {
49044
49044
  case 19:
49045
49045
  // hintmask
49046
49046
  case 20:
49047
- w(), G += u + 7 >> 3;
49047
+ w(), H += u + 7 >> 3;
49048
49048
  break;
49049
49049
  case 21:
49050
49050
  l.length > 2 && !d && (_ = l.shift() + v, d = !0), h += l.pop(), g += l.pop(), j(g, h);
@@ -49074,7 +49074,7 @@ function p5(r, t, e) {
49074
49074
  a = g + l.shift(), s = h, n = a + l.shift(), i = s + l.shift(), g = n + l.shift(), h = i, o.curveTo(a, s, n, i, g, h);
49075
49075
  break;
49076
49076
  case 28:
49077
- S = x[G], F = x[G + 1], l.push((S << 24 | F << 16) >> 16), G += 2;
49077
+ S = x[H], F = x[H + 1], l.push((S << 24 | F << 16) >> 16), H += 2;
49078
49078
  break;
49079
49079
  case 29:
49080
49080
  B = l.pop() + r.gsubrsBias, A = r.gsubrs[B], A && C(A);
@@ -49088,14 +49088,14 @@ function p5(r, t, e) {
49088
49088
  a = g, s = h + l.shift(), n = a + l.shift(), i = s + l.shift(), g = n + l.shift(), h = i + (l.length === 1 ? l.shift() : 0), o.curveTo(a, s, n, i, g, h);
49089
49089
  break;
49090
49090
  default:
49091
- V < 32 ? console.log("Glyph " + t.index + ": unknown operator " + V) : V < 247 ? l.push(V - 139) : V < 251 ? (S = x[G], G += 1, l.push((V - 247) * 256 + S + 108)) : V < 255 ? (S = x[G], G += 1, l.push(-(V - 251) * 256 - S - 108)) : (S = x[G], F = x[G + 1], T = x[G + 2], R = x[G + 3], G += 4, l.push((S << 24 | F << 16 | T << 8 | R) / 65536));
49091
+ V < 32 ? console.log("Glyph " + t.index + ": unknown operator " + V) : V < 247 ? l.push(V - 139) : V < 251 ? (S = x[H], H += 1, l.push((V - 247) * 256 + S + 108)) : V < 255 ? (S = x[H], H += 1, l.push(-(V - 251) * 256 - S - 108)) : (S = x[H], F = x[H + 1], T = x[H + 2], R = x[H + 3], H += 4, l.push((S << 24 | F << 16 | T << 8 | R) / 65536));
49092
49092
  }
49093
49093
  }
49094
49094
  }
49095
49095
  return C(e), t.advanceWidth = _, o;
49096
49096
  }
49097
49097
  function lD(r, t, e, a) {
49098
- var s = [], n, i = new K.Parser(r, t), o = i.parseCard8();
49098
+ var s = [], n, i = new Z.Parser(r, t), o = i.parseCard8();
49099
49099
  if (o === 0)
49100
49100
  for (var l = 0; l < e; l++) {
49101
49101
  if (n = i.parseCard8(), n >= a)
@@ -49123,7 +49123,7 @@ function lD(r, t, e, a) {
49123
49123
  }
49124
49124
  function uD(r, t, e, a) {
49125
49125
  e.tables.cff = {};
49126
- var s = sD(r, t), n = X2(r, s.endOffset, K.bytesToString), i = X2(r, n.endOffset), o = X2(r, i.endOffset, K.bytesToString), l = X2(r, o.endOffset);
49126
+ var s = sD(r, t), n = X2(r, s.endOffset, Z.bytesToString), i = X2(r, n.endOffset), o = X2(r, i.endOffset, Z.bytesToString), l = X2(r, o.endOffset);
49127
49127
  e.gsubrs = l.objects, e.gsubrsBias = C4(e.gsubrs);
49128
49128
  var u = m5(r, t, i.objects, o.objects);
49129
49129
  if (u.length !== 1)
@@ -49295,7 +49295,7 @@ function vD(r, t) {
49295
49295
  }
49296
49296
  var Ut = { parse: uD, make: vD };
49297
49297
  function bD(r, t) {
49298
- var e = {}, a = new K.Parser(r, t);
49298
+ var e = {}, a = new Z.Parser(r, t);
49299
49299
  return e.version = a.parseVersion(), e.fontRevision = Math.round(a.parseFixed() * 1e3) / 1e3, e.checkSumAdjustment = a.parseULong(), e.magicNumber = a.parseULong(), n1.argument(e.magicNumber === 1594834165, "Font header has wrong magic number."), e.flags = a.parseUShort(), e.unitsPerEm = a.parseUShort(), e.created = a.parseLongDateTime(), e.modified = a.parseLongDateTime(), e.xMin = a.parseShort(), e.yMin = a.parseShort(), e.xMax = a.parseShort(), e.yMax = a.parseShort(), e.macStyle = a.parseUShort(), e.lowestRecPPEM = a.parseUShort(), e.fontDirectionHint = a.parseShort(), e.indexToLocFormat = a.parseShort(), e.glyphDataFormat = a.parseShort(), e;
49300
49300
  }
49301
49301
  function yD(r) {
@@ -49322,7 +49322,7 @@ function yD(r) {
49322
49322
  }
49323
49323
  var Ht = { parse: bD, make: yD };
49324
49324
  function zD(r, t) {
49325
- var e = {}, a = new K.Parser(r, t);
49325
+ var e = {}, a = new Z.Parser(r, t);
49326
49326
  return e.version = a.parseVersion(), e.ascender = a.parseShort(), e.descender = a.parseShort(), e.lineGap = a.parseShort(), e.advanceWidthMax = a.parseUShort(), e.minLeftSideBearing = a.parseShort(), e.minRightSideBearing = a.parseShort(), e.xMaxExtent = a.parseShort(), e.caretSlopeRise = a.parseShort(), e.caretSlopeRun = a.parseShort(), e.caretOffset = a.parseShort(), a.relativeOffset += 8, e.metricDataFormat = a.parseShort(), e.numberOfHMetrics = a.parseUShort(), e;
49327
49327
  }
49328
49328
  function _D(r) {
@@ -49348,7 +49348,7 @@ function _D(r) {
49348
49348
  }
49349
49349
  var Gt = { parse: zD, make: _D };
49350
49350
  function DD(r, t, e, a, s) {
49351
- for (var n, i, o = new K.Parser(r, t), l = 0; l < a; l += 1) {
49351
+ for (var n, i, o = new Z.Parser(r, t), l = 0; l < a; l += 1) {
49352
49352
  l < e && (n = o.parseUShort(), i = o.parseShort());
49353
49353
  var u = s.get(l);
49354
49354
  u.advanceWidth = n, u.leftSideBearing = i;
@@ -49356,7 +49356,7 @@ function DD(r, t, e, a, s) {
49356
49356
  }
49357
49357
  function jD(r, t, e, a, s) {
49358
49358
  r._hmtxTableData = {};
49359
- for (var n, i, o = new K.Parser(t, e), l = 0; l < s; l += 1)
49359
+ for (var n, i, o = new Z.Parser(t, e), l = 0; l < s; l += 1)
49360
49360
  l < a && (n = o.parseUShort(), i = o.parseShort()), r._hmtxTableData[l] = {
49361
49361
  advanceWidth: n,
49362
49362
  leftSideBearing: i
@@ -49385,7 +49385,7 @@ function xD(r) {
49385
49385
  return t.fields.push({ name: "stringPool", type: "CHARARRAY", value: e }), t;
49386
49386
  }
49387
49387
  function ED(r, t) {
49388
- var e = new K.Parser(r, t), a = e.parseULong();
49388
+ var e = new Z.Parser(r, t), a = e.parseULong();
49389
49389
  n1.argument(a === 1, "Unsupported ltag table version."), e.skip("uLong", 1);
49390
49390
  for (var s = e.parseULong(), n = [], i = 0; i < s; i++) {
49391
49391
  for (var o = "", l = t + e.parseUShort(), u = e.parseUShort(), d = l; d < l + u; ++d)
@@ -49396,7 +49396,7 @@ function ED(r, t) {
49396
49396
  }
49397
49397
  var Wt = { make: xD, parse: ED };
49398
49398
  function FD(r, t) {
49399
- var e = {}, a = new K.Parser(r, t);
49399
+ var e = {}, a = new Z.Parser(r, t);
49400
49400
  return e.version = a.parseVersion(), e.numGlyphs = a.parseUShort(), e.version === 1 && (e.maxPoints = a.parseUShort(), e.maxContours = a.parseUShort(), e.maxCompositePoints = a.parseUShort(), e.maxCompositeContours = a.parseUShort(), e.maxZones = a.parseUShort(), e.maxTwilightPoints = a.parseUShort(), e.maxStorage = a.parseUShort(), e.maxFunctionDefs = a.parseUShort(), e.maxInstructionDefs = a.parseUShort(), e.maxStackElements = a.parseUShort(), e.maxSizeOfInstructions = a.parseUShort(), e.maxComponentElements = a.parseUShort(), e.maxComponentDepth = a.parseUShort()), e;
49401
49401
  }
49402
49402
  function SD(r) {
@@ -50143,7 +50143,7 @@ function Zt(r, t, e) {
50143
50143
  }
50144
50144
  }
50145
50145
  function RD(r, t, e) {
50146
- for (var a = {}, s = new K.Parser(r, t), n = s.parseUShort(), i = s.parseUShort(), o = s.offset + s.parseUShort(), l = 0; l < i; l++) {
50146
+ for (var a = {}, s = new Z.Parser(r, t), n = s.parseUShort(), i = s.parseUShort(), o = s.offset + s.parseUShort(), l = 0; l < i; l++) {
50147
50147
  var u = s.parseUShort(), d = s.parseUShort(), c = s.parseUShort(), g = s.parseUShort(), h = Xt[g] || g, p = s.parseUShort(), f = s.parseUShort(), m = BD(u, c, e), v = Zt(u, d, c);
50148
50148
  if (v !== void 0 && m !== void 0) {
50149
50149
  var y = void 0;
@@ -50497,7 +50497,7 @@ function LD(r) {
50497
50497
  return -1;
50498
50498
  }
50499
50499
  function PD(r, t) {
50500
- var e = {}, a = new K.Parser(r, t);
50500
+ var e = {}, a = new Z.Parser(r, t);
50501
50501
  e.version = a.parseUShort(), e.xAvgCharWidth = a.parseShort(), e.usWeightClass = a.parseUShort(), e.usWidthClass = a.parseUShort(), e.fsType = a.parseUShort(), e.ySubscriptXSize = a.parseShort(), e.ySubscriptYSize = a.parseShort(), e.ySubscriptXOffset = a.parseShort(), e.ySubscriptYOffset = a.parseShort(), e.ySuperscriptXSize = a.parseShort(), e.ySuperscriptYSize = a.parseShort(), e.ySuperscriptXOffset = a.parseShort(), e.ySuperscriptYOffset = a.parseShort(), e.yStrikeoutSize = a.parseShort(), e.yStrikeoutPosition = a.parseShort(), e.sFamilyClass = a.parseShort(), e.panose = [];
50502
50502
  for (var s = 0; s < 10; s++)
50503
50503
  e.panose[s] = a.parseByte();
@@ -50555,7 +50555,7 @@ function ND(r) {
50555
50555
  }
50556
50556
  var F4 = { parse: PD, make: ND, unicodeRanges: E4, getUnicodeRange: LD };
50557
50557
  function $D(r, t) {
50558
- var e = {}, a = new K.Parser(r, t);
50558
+ var e = {}, a = new Z.Parser(r, t);
50559
50559
  switch (e.version = a.parseVersion(), e.italicAngle = a.parseFixed(), e.underlinePosition = a.parseShort(), e.underlineThickness = a.parseShort(), e.isFixedPitch = a.parseULong(), e.minMemType42 = a.parseULong(), e.maxMemType42 = a.parseULong(), e.minMemType1 = a.parseULong(), e.maxMemType1 = a.parseULong(), e.version) {
50560
50560
  case 1:
50561
50561
  e.names = h3.slice();
@@ -50840,7 +50840,7 @@ function GD(r) {
50840
50840
  }
50841
50841
  var e8 = { parse: HD, make: GD };
50842
50842
  function qD(r, t) {
50843
- var e = new K.Parser(r, t), a = e.parseULong();
50843
+ var e = new Z.Parser(r, t), a = e.parseULong();
50844
50844
  n1.argument(a === 1, "Unsupported META table version."), e.parseULong(), e.parseULong();
50845
50845
  for (var s = e.parseULong(), n = {}, i = 0; i < s; i++) {
50846
50846
  var o = e.parseTag(), l = e.parseULong(), u = e.parseULong(), d = U3.UTF8(r, t + l, u);
@@ -50999,10 +50999,10 @@ function XD(r) {
50999
50999
  }, r.tables.os2)), x = qt.make(r.glyphs), S = Tt.make(r.glyphs), F = r.getEnglishName("fontFamily"), T = r.getEnglishName("fontSubfamily"), R = F + " " + T, B = r.getEnglishName("postScriptName");
51000
51000
  B || (B = F.replace(/\s/g, "") + "-" + T);
51001
51001
  var A = {};
51002
- for (var L in r.names)
51003
- A[L] = r.names[L];
51002
+ for (var I in r.names)
51003
+ A[I] = r.names[I];
51004
51004
  A.uniqueID || (A.uniqueID = { en: r.getEnglishName("manufacturer") + ":" + R }), A.postScriptName || (A.postScriptName = { en: B }), A.preferredFamily || (A.preferredFamily = r.names.fontFamily), A.preferredSubfamily || (A.preferredSubfamily = r.names.fontSubfamily);
51005
- var I = [], M = Jt.make(A, I), P = I.length > 0 ? Wt.make(I) : void 0, N = Qt.make(), $ = Ut.make(r.glyphs, {
51005
+ var M = [], L = Jt.make(A, M), $ = M.length > 0 ? Wt.make(M) : void 0, P = Qt.make(), N = Ut.make(r.glyphs, {
51006
51006
  version: r.getEnglishName("version"),
51007
51007
  fullName: R,
51008
51008
  familyName: F,
@@ -51010,8 +51010,8 @@ function XD(r) {
51010
51010
  postScriptName: B,
51011
51011
  unitsPerEm: r.unitsPerEm,
51012
51012
  fontBBox: [0, z.yMin, z.ascender, z.advanceWidthMax]
51013
- }), G = r.metas && Object.keys(r.metas).length > 0 ? t8.make(r.metas) : void 0, V = [_, j, w, C, M, S, N, $, x];
51014
- P && V.push(P), r.tables.gsub && V.push(e8.make(r.tables.gsub)), G && V.push(G);
51013
+ }), H = r.metas && Object.keys(r.metas).length > 0 ? t8.make(r.metas) : void 0, V = [_, j, w, C, L, S, P, N, x];
51014
+ $ && V.push($), r.tables.gsub && V.push(e8.make(r.tables.gsub)), H && V.push(H);
51015
51015
  for (var Q = a8(V), h1 = Q.encode(), c1 = u6(h1), s1 = Q.fields, Y = !1, e1 = 0; e1 < s1.length; e1 += 1)
51016
51016
  if (s1[e1].name === "head table") {
51017
51017
  s1[e1].value.checkSumAdjustment = 2981146554 - c1, Y = !0;
@@ -51489,7 +51489,7 @@ function C5(r, t, e, a, s) {
51489
51489
  return (t & a) > 0 ? (n = r.parseByte(), (t & s) === 0 && (n = -n), n = e + n) : (t & s) > 0 ? n = e : n = e + r.parseShort(), n;
51490
51490
  }
51491
51491
  function r8(r, t, e) {
51492
- var a = new K.Parser(t, e);
51492
+ var a = new Z.Parser(t, e);
51493
51493
  r.numberOfContours = a.parseShort(), r._xMin = a.parseShort(), r._yMin = a.parseShort(), r._xMax = a.parseShort(), r._yMax = a.parseShort();
51494
51494
  var s, n;
51495
51495
  if (r.numberOfContours > 0) {
@@ -51561,7 +51561,7 @@ function QD(r) {
51561
51561
  return n1.argument(e.length === 0, "There are still points left in the current contour."), t;
51562
51562
  }
51563
51563
  function s8(r) {
51564
- var t = new B1();
51564
+ var t = new A1();
51565
51565
  if (!r)
51566
51566
  return t;
51567
51567
  for (var e = QD(r), a = 0; a < e.length; ++a) {
@@ -54117,7 +54117,7 @@ y1.prototype.forEachGlyph = function(r, t, e, a, s, n) {
54117
54117
  return t;
54118
54118
  };
54119
54119
  y1.prototype.getPath = function(r, t, e, a, s) {
54120
- var n = new B1();
54120
+ var n = new A1();
54121
54121
  return this.forEachGlyph(r, t, e, a, s, function(i, o, l, u) {
54122
54122
  var d = i.getPath(o, l, u, s, this);
54123
54123
  n.extend(d);
@@ -54258,7 +54258,7 @@ function uC(r, t, e) {
54258
54258
  ];
54259
54259
  }
54260
54260
  function dC(r, t, e) {
54261
- var a = {}, s = new K.Parser(r, t);
54261
+ var a = {}, s = new Z.Parser(r, t);
54262
54262
  return a.tag = s.parseTag(), a.minValue = s.parseFixed(), a.defaultValue = s.parseFixed(), a.maxValue = s.parseFixed(), s.skip("uShort", 1), a.name = e[s.parseUShort()] || {}, a;
54263
54263
  }
54264
54264
  function gC(r, t, e, a) {
@@ -54276,7 +54276,7 @@ function gC(r, t, e, a) {
54276
54276
  return n;
54277
54277
  }
54278
54278
  function cC(r, t, e, a) {
54279
- var s = {}, n = new K.Parser(r, t);
54279
+ var s = {}, n = new Z.Parser(r, t);
54280
54280
  s.name = a[n.parseUShort()] || {}, n.skip("uShort", 1), s.coordinates = {};
54281
54281
  for (var i = 0; i < e.length; ++i)
54282
54282
  s.coordinates[e[i].tag] = n.parseFixed();
@@ -54300,7 +54300,7 @@ function hC(r, t) {
54300
54300
  return e;
54301
54301
  }
54302
54302
  function kC(r, t, e) {
54303
- var a = new K.Parser(r, t), s = a.parseULong();
54303
+ var a = new Z.Parser(r, t), s = a.parseULong();
54304
54304
  n1.argument(s === 65536, "Unsupported fvar table version.");
54305
54305
  var n = a.parseOffset16();
54306
54306
  a.skip("uShort", 1);
@@ -54486,7 +54486,7 @@ function EC(r) {
54486
54486
  return t;
54487
54487
  }
54488
54488
  function FC(r, t) {
54489
- var e = new K.Parser(r, t), a = e.parseUShort();
54489
+ var e = new Z.Parser(r, t), a = e.parseUShort();
54490
54490
  if (a === 0)
54491
54491
  return xC(e);
54492
54492
  if (a === 1)
@@ -54495,7 +54495,7 @@ function FC(r, t) {
54495
54495
  }
54496
54496
  var SC = { parse: FC };
54497
54497
  function TC(r, t, e, a) {
54498
- for (var s = new K.Parser(r, t), n = a ? s.parseUShort : s.parseULong, i = [], o = 0; o < e + 1; o += 1) {
54498
+ for (var s = new Z.Parser(r, t), n = a ? s.parseUShort : s.parseULong, i = [], o = 0; o < e + 1; o += 1) {
54499
54499
  var l = n.call(s);
54500
54500
  a && (l *= 2), i.push(l);
54501
54501
  }
@@ -54504,14 +54504,14 @@ function TC(r, t, e, a) {
54504
54504
  var BC = { parse: TC };
54505
54505
  function q5(r, t) {
54506
54506
  for (var e = [], a = 12, s = 0; s < t; s += 1) {
54507
- var n = K.getTag(r, a), i = K.getULong(r, a + 4), o = K.getULong(r, a + 8), l = K.getULong(r, a + 12);
54507
+ var n = Z.getTag(r, a), i = Z.getULong(r, a + 4), o = Z.getULong(r, a + 8), l = Z.getULong(r, a + 12);
54508
54508
  e.push({ tag: n, checksum: i, offset: o, length: l, compression: !1 }), a += 16;
54509
54509
  }
54510
54510
  return e;
54511
54511
  }
54512
54512
  function AC(r, t) {
54513
54513
  for (var e = [], a = 44, s = 0; s < t; s += 1) {
54514
- var n = K.getTag(r, a), i = K.getULong(r, a + 4), o = K.getULong(r, a + 8), l = K.getULong(r, a + 12), u = void 0;
54514
+ var n = Z.getTag(r, a), i = Z.getULong(r, a + 4), o = Z.getULong(r, a + 8), l = Z.getULong(r, a + 12), u = void 0;
54515
54515
  o < l ? u = "WOFF" : u = !1, e.push({
54516
54516
  tag: n,
54517
54517
  offset: i,
@@ -54534,20 +54534,20 @@ function x1(r, t) {
54534
54534
  }
54535
54535
  function OC(r, t) {
54536
54536
  t = t == null ? {} : t;
54537
- var e, a, s = new y1({ empty: !0 }), n = new DataView(r, 0), i, o = [], l = K.getTag(n, 0);
54537
+ var e, a, s = new y1({ empty: !0 }), n = new DataView(r, 0), i, o = [], l = Z.getTag(n, 0);
54538
54538
  if (l === "\0\0\0" || l === "true" || l === "typ1")
54539
- s.outlinesFormat = "truetype", i = K.getUShort(n, 4), o = q5(n, i);
54539
+ s.outlinesFormat = "truetype", i = Z.getUShort(n, 4), o = q5(n, i);
54540
54540
  else if (l === "OTTO")
54541
- s.outlinesFormat = "cff", i = K.getUShort(n, 4), o = q5(n, i);
54541
+ s.outlinesFormat = "cff", i = Z.getUShort(n, 4), o = q5(n, i);
54542
54542
  else if (l === "wOFF") {
54543
- var u = K.getTag(n, 4);
54543
+ var u = Z.getTag(n, 4);
54544
54544
  if (u === "\0\0\0")
54545
54545
  s.outlinesFormat = "truetype";
54546
54546
  else if (u === "OTTO")
54547
54547
  s.outlinesFormat = "cff";
54548
54548
  else
54549
54549
  throw new Error("Unsupported OpenType flavor " + l);
54550
- i = K.getUShort(n, 12), o = AC(n, i);
54550
+ i = Z.getUShort(n, 12), o = AC(n, i);
54551
54551
  } else
54552
54552
  throw new Error("Unsupported OpenType signature " + l);
54553
54553
  for (var d, c, g, h, p, f, m, v, y, z, _, j, w = 0; w < i; w += 1) {
@@ -54557,13 +54557,13 @@ function OC(r, t) {
54557
54557
  x = x1(n, C), s.tables.cmap = Tt.parse(x.data, x.offset), s.encoding = new At(s.tables.cmap);
54558
54558
  break;
54559
54559
  case "cvt ":
54560
- x = x1(n, C), j = new K.Parser(x.data, x.offset), s.tables.cvt = j.parseShortList(C.length / 2);
54560
+ x = x1(n, C), j = new Z.Parser(x.data, x.offset), s.tables.cvt = j.parseShortList(C.length / 2);
54561
54561
  break;
54562
54562
  case "fvar":
54563
54563
  c = C;
54564
54564
  break;
54565
54565
  case "fpgm":
54566
- x = x1(n, C), j = new K.Parser(x.data, x.offset), s.tables.fpgm = j.parseByteList(C.length);
54566
+ x = x1(n, C), j = new Z.Parser(x.data, x.offset), s.tables.fpgm = j.parseByteList(C.length);
54567
54567
  break;
54568
54568
  case "head":
54569
54569
  x = x1(n, C), s.tables.head = Ht.parse(x.data, x.offset), s.unitsPerEm = s.tables.head.unitsPerEm, e = s.tables.head.indexToLocFormat;
@@ -54590,7 +54590,7 @@ function OC(r, t) {
54590
54590
  x = x1(n, C), s.tables.post = Qt.parse(x.data, x.offset), s.glyphNames = new o6(s.tables.post);
54591
54591
  break;
54592
54592
  case "prep":
54593
- x = x1(n, C), j = new K.Parser(x.data, x.offset), s.tables.prep = j.parseByteList(C.length);
54593
+ x = x1(n, C), j = new Z.Parser(x.data, x.offset), s.tables.prep = j.parseByteList(C.length);
54594
54594
  break;
54595
54595
  case "glyf":
54596
54596
  g = C;
@@ -54627,31 +54627,31 @@ function OC(r, t) {
54627
54627
  Ut.parse(A.data, A.offset, s, t);
54628
54628
  } else
54629
54629
  throw new Error("Font doesn't contain TrueType or CFF outlines.");
54630
- var L = x1(n, m);
54631
- if (qt.parse(s, L.data, L.offset, s.numberOfHMetrics, s.numGlyphs, s.glyphs, t), Y_(s, t), v) {
54632
- var I = x1(n, v);
54633
- s.kerningPairs = SC.parse(I.data, I.offset);
54630
+ var I = x1(n, m);
54631
+ if (qt.parse(s, I.data, I.offset, s.numberOfHMetrics, s.numGlyphs, s.glyphs, t), Y_(s, t), v) {
54632
+ var M = x1(n, v);
54633
+ s.kerningPairs = SC.parse(M.data, M.offset);
54634
54634
  } else
54635
54635
  s.kerningPairs = {};
54636
54636
  if (h) {
54637
- var M = x1(n, h);
54638
- s.tables.gdef = _C.parse(M.data, M.offset);
54637
+ var L = x1(n, h);
54638
+ s.tables.gdef = _C.parse(L.data, L.offset);
54639
54639
  }
54640
54640
  if (p) {
54641
- var P = x1(n, p);
54642
- s.tables.gpos = CC.parse(P.data, P.offset), s.position.init();
54641
+ var $ = x1(n, p);
54642
+ s.tables.gpos = CC.parse($.data, $.offset), s.position.init();
54643
54643
  }
54644
54644
  if (f) {
54645
- var N = x1(n, f);
54646
- s.tables.gsub = e8.parse(N.data, N.offset);
54645
+ var P = x1(n, f);
54646
+ s.tables.gsub = e8.parse(P.data, P.offset);
54647
54647
  }
54648
54648
  if (c) {
54649
- var $ = x1(n, c);
54650
- s.tables.fvar = mC.parse($.data, $.offset, s.names);
54649
+ var N = x1(n, c);
54650
+ s.tables.fvar = mC.parse(N.data, N.offset, s.names);
54651
54651
  }
54652
54652
  if (_) {
54653
- var G = x1(n, _);
54654
- s.tables.meta = t8.parse(G.data, G.offset), s.metas = s.tables.meta;
54653
+ var H = x1(n, _);
54654
+ s.tables.meta = t8.parse(H.data, H.offset), s.metas = s.tables.meta;
54655
54655
  }
54656
54656
  return s;
54657
54657
  }
@@ -54881,111 +54881,111 @@ function WC(r, t, e, a, s, n = !1) {
54881
54881
  for (C !== g1.UNKNOWN && x && (z.hasPattern(C) ? c = new r_(c, z, C, S) : z.loadPattern(C)); v = c.nextBreakPoint(); ) {
54882
54882
  const R = t.slice(m, v.position), B = [];
54883
54883
  if (g0.isReady && n) {
54884
- const I = [];
54885
- let M = 0;
54886
- for (M = y; M < w.length; M++) {
54887
- const P = w[M], { end: N } = P;
54888
- if (N > v.position)
54884
+ const M = [];
54885
+ let L = 0;
54886
+ for (L = y; L < w.length; L++) {
54887
+ const $ = w[L], { end: P } = $;
54888
+ if (P > v.position)
54889
54889
  break;
54890
- I.push(P);
54890
+ M.push($);
54891
54891
  }
54892
- y = M;
54893
- for (const P of I) {
54894
- const { start: N, char: $ } = P, G = f3(N, e, a, s, h);
54895
- if ($ === t1.TAB) {
54896
- const V = l0(o, l, i, f), Q = q6(G, V);
54892
+ y = L;
54893
+ for (const $ of M) {
54894
+ const { start: P, char: N } = $, H = f3(P, e, a, s, h);
54895
+ if (N === t1.TAB) {
54896
+ const V = l0(o, l, i, f), Q = q6(H, V);
54897
54897
  B.push(Q);
54898
- } else if (h4($)) {
54899
- const V = $2($, G);
54898
+ } else if (h4(N)) {
54899
+ const V = $2(N, H);
54900
54900
  B.push(V);
54901
54901
  } else {
54902
- const V = $2($, G, void 0, P);
54902
+ const V = $2(N, H, void 0, $);
54903
54903
  B.push(V);
54904
54904
  }
54905
54905
  }
54906
54906
  } else {
54907
- let I = R, M = m;
54908
- for (; I.length > 0; ) {
54909
- const P = (F = I.match(/^[\s\S]/gu)) == null ? void 0 : F[0];
54910
- if (P == null)
54907
+ let M = R, L = m;
54908
+ for (; M.length > 0; ) {
54909
+ const $ = (F = M.match(/^[\s\S]/gu)) == null ? void 0 : F[0];
54910
+ if ($ == null)
54911
54911
  break;
54912
- if (P === t1.CUSTOM_BLOCK) {
54913
- const N = f3(M, e, a, s, h);
54914
- let $ = null;
54915
- const G = e.getCustomBlockWithoutSetCurrentIndex(a.startIndex + M);
54916
- if (G != null) {
54917
- const { blockId: V } = G, Q = u[V];
54912
+ if ($ === t1.CUSTOM_BLOCK) {
54913
+ const P = f3(L, e, a, s, h);
54914
+ let N = null;
54915
+ const H = e.getCustomBlockWithoutSetCurrentIndex(a.startIndex + L);
54916
+ if (H != null) {
54917
+ const { blockId: V } = H, Q = u[V];
54918
54918
  if (Q.layoutType === Z1.INLINE) {
54919
54919
  const { angle: h1 } = Q.docTransform, { width: c1 = 0, height: s1 = 0 } = Q.docTransform.size, f1 = S0(h1, 0, c1, 0, s1);
54920
- $ = W6(N, f1.width, f1.height, Q.drawingId);
54920
+ N = W6(P, f1.width, f1.height, Q.drawingId);
54921
54921
  } else
54922
- $ = W6(N, 0, 0, Q.drawingId);
54922
+ N = W6(P, 0, 0, Q.drawingId);
54923
54923
  }
54924
- $ == null && ($ = $2(P, N)), B.push($), M += P.length, I = I.substring(P.length);
54925
- } else if (/\s/.test(P) || x0(P)) {
54926
- const N = f3(M, e, a, s, h);
54927
- let $ = null;
54928
- if (P === t1.TAB) {
54929
- const G = l0(o, l, i, f);
54930
- $ = q6(N, G);
54931
- } else P === t1.PARAGRAPH && ((T = s.renderConfig) == null ? void 0 : T.zeroWidthParagraphBreak) === r1.TRUE ? $ = $2(P, N, 0) : $ = $2(P, N);
54932
- B.push($), M += P.length, I = I.substring(P.length);
54933
- } else if (h4(I)) {
54934
- const { step: N, glyphGroup: $ } = $C(
54924
+ N == null && (N = $2($, P)), B.push(N), L += $.length, M = M.substring($.length);
54925
+ } else if (/\s/.test($) || x0($)) {
54926
+ const P = f3(L, e, a, s, h);
54927
+ let N = null;
54928
+ if ($ === t1.TAB) {
54929
+ const H = l0(o, l, i, f);
54930
+ N = q6(P, H);
54931
+ } else $ === t1.PARAGRAPH && ((T = s.renderConfig) == null ? void 0 : T.zeroWidthParagraphBreak) === r1.TRUE ? N = $2($, P, 0) : N = $2($, P);
54932
+ B.push(N), L += $.length, M = M.substring($.length);
54933
+ } else if (h4(M)) {
54934
+ const { step: P, glyphGroup: N } = $C(
54935
+ L,
54935
54936
  M,
54936
- I,
54937
54937
  e,
54938
54938
  a,
54939
54939
  s,
54940
54940
  h
54941
54941
  );
54942
- B.push(...$), M += N, I = I.substring(N);
54943
- } else if (j7(P)) {
54944
- const { step: N, glyphGroup: $ } = NC(
54942
+ B.push(...N), L += P, M = M.substring(P);
54943
+ } else if (j7($)) {
54944
+ const { step: P, glyphGroup: N } = NC(
54945
+ L,
54945
54946
  M,
54946
- I,
54947
54947
  e,
54948
54948
  a,
54949
54949
  s,
54950
54950
  h
54951
54951
  );
54952
- B.push(...$), M += N, I = I.substring(N);
54953
- } else if (w7(P)) {
54954
- const { step: N, glyphGroup: $ } = UC(
54952
+ B.push(...N), L += P, M = M.substring(P);
54953
+ } else if (w7($)) {
54954
+ const { step: P, glyphGroup: N } = UC(
54955
+ L,
54955
54956
  M,
54956
- I,
54957
54957
  e,
54958
54958
  a,
54959
54959
  s,
54960
54960
  h
54961
54961
  );
54962
- B.push(...$), M += N, I = I.substring(N);
54962
+ B.push(...N), L += P, M = M.substring(P);
54963
54963
  } else {
54964
- const { step: N, glyphGroup: $ } = PC(
54964
+ const { step: P, glyphGroup: N } = PC(
54965
+ L,
54965
54966
  M,
54966
- I,
54967
54967
  e,
54968
54968
  a,
54969
54969
  s,
54970
54970
  h
54971
54971
  );
54972
- B.push(...$), M += N, I = I.substring(N);
54972
+ B.push(...N), L += P, M = M.substring(P);
54973
54973
  }
54974
54974
  }
54975
54975
  }
54976
54976
  HC(B);
54977
54977
  const A = [[]];
54978
- for (let I = 0; I < B.length; I++) {
54979
- const M = A[A.length - 1], P = B[I];
54980
- P.streamType === t1.CUSTOM_BLOCK && P.width !== 0 ? (M.length === 0 && A.pop(), A.push([P])) : M.push(P);
54978
+ for (let M = 0; M < B.length; M++) {
54979
+ const L = A[A.length - 1], $ = B[M];
54980
+ $.streamType === t1.CUSTOM_BLOCK && $.width !== 0 ? (L.length === 0 && A.pop(), A.push([$])) : L.push($);
54981
54981
  }
54982
- const L = A[A.length - 1];
54983
- for (const I of A) {
54984
- const M = I.map((P) => P.content).join("");
54982
+ const I = A[A.length - 1];
54983
+ for (const M of A) {
54984
+ const L = M.map(($) => $.content).join("");
54985
54985
  d.push({
54986
- text: M,
54987
- glyphs: I,
54988
- breakPointType: I === L ? v.type : L1.Normal
54986
+ text: L,
54987
+ glyphs: M,
54988
+ breakPointType: M === I ? v.type : L1.Normal
54989
54989
  });
54990
54990
  }
54991
54991
  m = v.position;
@@ -55921,9 +55921,9 @@ class v3 extends Y8 {
55921
55921
  for (let F = 0; F < f; F++) {
55922
55922
  const T = c[F], { headerId: R, footerId: B, pageWidth: A } = T;
55923
55923
  if (w !== "") {
55924
- const L = (y = g.get(R)) == null ? void 0 : y.get(A);
55925
- L && (S = this._collectNearestNode(
55926
- L,
55924
+ const I = (y = g.get(R)) == null ? void 0 : y.get(A);
55925
+ I && (S = this._collectNearestNode(
55926
+ I,
55927
55927
  m1.HEADER,
55928
55928
  T,
55929
55929
  R,
@@ -55933,9 +55933,9 @@ class v3 extends Y8 {
55933
55933
  l,
55934
55934
  f
55935
55935
  ));
55936
- const I = (z = h.get(B)) == null ? void 0 : z.get(A);
55937
- I && (S = S != null ? S : this._collectNearestNode(
55938
- I,
55936
+ const M = (z = h.get(B)) == null ? void 0 : z.get(A);
55937
+ M && (S = S != null ? S : this._collectNearestNode(
55938
+ M,
55939
55939
  m1.FOOTER,
55940
55940
  T,
55941
55941
  B,
@@ -56007,8 +56007,8 @@ class v3 extends Y8 {
56007
56007
  const p = this._findLiquid.x, f = p + s.pageWidth, m = this._findLiquid.y + (a === m1.FOOTER ? s.pageHeight - e.pageHeight : 0), v = m + e.pageHeight;
56008
56008
  let y = l >= p && l <= f && u >= m && u <= v;
56009
56009
  if (c === 0 && a === m1.BODY) {
56010
- const B = i === 0, A = i === d - 1, L = s.originMarginTop / 2;
56011
- B && A ? y = !0 : B ? y = u <= v + L : A ? y = u >= m - L : y = u >= m - L && u <= v + L;
56010
+ const B = i === 0, A = i === d - 1, I = s.originMarginTop / 2;
56011
+ B && A ? y = !0 : B ? y = u <= v + I : A ? y = u >= m - I : y = u >= m - I && u <= v + I;
56012
56012
  }
56013
56013
  switch (a) {
56014
56014
  case m1.HEADER: {
@@ -56032,18 +56032,18 @@ class v3 extends Y8 {
56032
56032
  if (y) {
56033
56033
  let B = Number.POSITIVE_INFINITY;
56034
56034
  for (const A of g) {
56035
- const { columns: L } = A;
56035
+ const { columns: I } = A;
56036
56036
  this._findLiquid.translateSave(), this._findLiquid.translateSection(A);
56037
- for (const I of L) {
56038
- const { lines: M } = I;
56039
- this._findLiquid.translateSave(), this._findLiquid.translateColumn(I);
56040
- for (let P = 0; P < M.length; P++) {
56041
- const N = M[P], { divides: $, type: G, lineHeight: V = 0 } = N;
56042
- if (G !== P3.BLOCK) {
56043
- this._findLiquid.translateSave(), this._findLiquid.translateLine(N);
56044
- const { y: Q } = this._findLiquid, h1 = Q, c1 = Q + V, s1 = Math.abs(u - c1), Y = $.length;
56037
+ for (const M of I) {
56038
+ const { lines: L } = M;
56039
+ this._findLiquid.translateSave(), this._findLiquid.translateColumn(M);
56040
+ for (let $ = 0; $ < L.length; $++) {
56041
+ const P = L[$], { divides: N, type: H, lineHeight: V = 0 } = P;
56042
+ if (H !== P3.BLOCK) {
56043
+ this._findLiquid.translateSave(), this._findLiquid.translateLine(P);
56044
+ const { y: Q } = this._findLiquid, h1 = Q, c1 = Q + V, s1 = Math.abs(u - c1), Y = N.length;
56045
56045
  for (let e1 = 0; e1 < Y; e1++) {
56046
- const f1 = $[e1], { glyphGroup: z1 } = f1;
56046
+ const f1 = N[e1], { glyphGroup: z1 } = f1;
56047
56047
  this._findLiquid.translateSave(), this._findLiquid.translateDivide(f1);
56048
56048
  const { x: p1 } = this._findLiquid;
56049
56049
  for (const C1 of z1) {
@@ -56097,18 +56097,18 @@ class v3 extends Y8 {
56097
56097
  let z = null;
56098
56098
  if (h.size > 0)
56099
56099
  for (const B of h.values()) {
56100
- const { top: A, left: L, rows: I } = B;
56101
- (_ = this._findLiquid) == null || _.translateSave(), (j = this._findLiquid) == null || j.translate(L, A);
56102
- for (const M of I) {
56103
- const { top: P, cells: N, isRepeatRow: $ } = M;
56104
- if (!$) {
56105
- (w = this._findLiquid) == null || w.translateSave(), (C = this._findLiquid) == null || C.translate(0, P);
56106
- for (const G of N) {
56107
- const { left: V } = G;
56100
+ const { top: A, left: I, rows: M } = B;
56101
+ (_ = this._findLiquid) == null || _.translateSave(), (j = this._findLiquid) == null || j.translate(I, A);
56102
+ for (const L of M) {
56103
+ const { top: $, cells: P, isRepeatRow: N } = L;
56104
+ if (!N) {
56105
+ (w = this._findLiquid) == null || w.translateSave(), (C = this._findLiquid) == null || C.translate(0, $);
56106
+ for (const H of P) {
56107
+ const { left: V } = H;
56108
56108
  (x = this._findLiquid) == null || x.translateSave(), (S = this._findLiquid) == null || S.translate(V, 0), z = z != null ? z : this._collectNearestNode(
56109
- G,
56109
+ H,
56110
56110
  m1.CELL,
56111
- G,
56111
+ H,
56112
56112
  n,
56113
56113
  i,
56114
56114
  o,
@@ -56349,22 +56349,22 @@ class v3 extends Y8 {
56349
56349
  const { lines: x, st: S, ed: F } = C;
56350
56350
  if (!(e < S || e > F))
56351
56351
  for (const T of x) {
56352
- const { divides: R, st: B, ed: A } = T, L = R.length;
56352
+ const { divides: R, st: B, ed: A } = T, I = R.length;
56353
56353
  if (!(e < B || e > A))
56354
- for (let I = 0; I < L; I++) {
56355
- const M = R[I], { glyphGroup: P, st: N, ed: $ } = M;
56356
- if (e < N || e > $)
56354
+ for (let M = 0; M < I; M++) {
56355
+ const L = R[M], { glyphGroup: $, st: P, ed: N } = L;
56356
+ if (e < P || e > N)
56357
56357
  continue;
56358
- let G = e - N;
56359
- for (const V of P)
56360
- if (G -= V.count, G < 0)
56358
+ let H = e - P;
56359
+ for (const V of $)
56360
+ if (H -= V.count, H < 0)
56361
56361
  return {
56362
56362
  page: f,
56363
56363
  pageType: f.type,
56364
56364
  section: z,
56365
56365
  column: C,
56366
56366
  line: T,
56367
- divide: M,
56367
+ divide: L,
56368
56368
  glyph: V,
56369
56369
  segmentPageIndex: s
56370
56370
  };
@@ -56622,22 +56622,42 @@ let Z5 = class extends Z8 {
56622
56622
  this.updateVisibleRange(t);
56623
56623
  const e = this._drawingRange, a = this.columnWidthAccumulation, { startRow: s, endRow: n, startColumn: i, endColumn: o } = e;
56624
56624
  if (o === -1 || n === -1) return;
56625
- const l = this.getCurrentRowColumnSegmentMergeData(this._drawingRange);
56626
- for (const c of l)
56627
- this._setStylesCacheForOneCell(c.startRow, c.startColumn, {
56628
- mergeRange: c
56629
- });
56630
- const u = Math.max(0, i - s0), d = Math.min(a.length - 1, o + s0);
56631
- for (let c = s; c <= n; c++)
56632
- if (this.worksheet.getRowVisible(c) !== !1) {
56633
- for (let g = i; g <= o; g++)
56634
- this._setStylesCacheForOneCell(c, g, { cacheItem: { bg: !0, border: !0 } });
56635
- for (let g = u; g < o; g++)
56636
- this._setStylesCacheForOneCell(c, g, { cacheItem: { bg: !1, border: !1 } });
56637
- if (o !== 0)
56638
- for (let g = o + 1; g < d; g++)
56639
- this._setStylesCacheForOneCell(c, g, { cacheItem: { bg: !1, border: !1 } });
56625
+ const l = [];
56626
+ let u = s;
56627
+ const d = Math.max(0, i - s0), c = Math.min(a.length - 1, o + s0);
56628
+ for (let h = s; h <= n; h++) {
56629
+ if (this.worksheet.getRowVisible(h) === !1) {
56630
+ u < h && l.push({
56631
+ startRow: u,
56632
+ endRow: h - 1,
56633
+ startColumn: i,
56634
+ endColumn: o
56635
+ }), u = h + 1;
56636
+ continue;
56640
56637
  }
56638
+ h === n && l.push({
56639
+ startRow: u,
56640
+ endRow: h,
56641
+ startColumn: i,
56642
+ endColumn: o
56643
+ });
56644
+ for (let p = i; p <= o; p++)
56645
+ this._setStylesCacheForOneCell(h, p, { cacheItem: { bg: !0, border: !0 } });
56646
+ for (let p = d; p < o; p++)
56647
+ this._setStylesCacheForOneCell(h, p, { cacheItem: { bg: !1, border: !1 } });
56648
+ if (o !== 0)
56649
+ for (let p = o + 1; p < c; p++)
56650
+ this._setStylesCacheForOneCell(h, p, { cacheItem: { bg: !1, border: !1 } });
56651
+ }
56652
+ const g = [];
56653
+ for (const h of l) {
56654
+ const p = this.getCurrentRowColumnSegmentMergeData(h);
56655
+ g.push(...p);
56656
+ }
56657
+ for (const h of g)
56658
+ this._setStylesCacheForOneCell(h.startRow, h.startColumn, {
56659
+ mergeRange: h
56660
+ });
56641
56661
  return this;
56642
56662
  }
56643
56663
  //#region auto height
@@ -56712,50 +56732,50 @@ let Z5 = class extends Z8 {
56712
56732
  const B = n.startColumn, A = n.endColumn;
56713
56733
  g = Array.from(
56714
56734
  { length: A - B + 1 },
56715
- (L, I) => B + I
56716
- ).reduce((L, I) => {
56717
- var M, P;
56718
- return L + ((P = (M = a[I]) == null ? void 0 : M.w) != null ? P : s);
56735
+ (I, M) => B + M
56736
+ ).reduce((I, M) => {
56737
+ var L, $;
56738
+ return I + (($ = (L = a[M]) == null ? void 0 : L.w) != null ? $ : s);
56719
56739
  }, 0);
56720
56740
  }
56721
56741
  if (g -= l, c) {
56722
56742
  const B = i && this.worksheet.getCellDocumentModel(i, o);
56723
56743
  if (B == null)
56724
56744
  return;
56725
- const { documentModel: A, textRotation: L, wrapStrategy: I } = B;
56745
+ const { documentModel: A, textRotation: I, wrapStrategy: M } = B;
56726
56746
  if (A == null)
56727
56747
  return;
56728
- const M = new e3(A), { vertexAngle: P } = A3(L);
56729
- typeof g == "number" && I === M1.WRAP && A.updateDocumentDataPageSize(g);
56730
- const N = v3.create(M, this._localeService);
56731
- N.calculate();
56732
- let { height: $ = 0 } = (_ = re(N, P)) != null ? _ : {};
56733
- if (N) {
56734
- const G = N.getSkeletonData(), {
56748
+ const L = new e3(A), { vertexAngle: $ } = A3(I);
56749
+ typeof g == "number" && M === M1.WRAP && A.updateDocumentDataPageSize(g);
56750
+ const P = v3.create(L, this._localeService);
56751
+ P.calculate();
56752
+ let { height: N = 0 } = (_ = re(P, $)) != null ? _ : {};
56753
+ if (P) {
56754
+ const H = P.getSkeletonData(), {
56735
56755
  marginTop: V,
56736
56756
  marginBottom: Q,
56737
56757
  marginLeft: h1,
56738
56758
  marginRight: c1
56739
- } = G.pages[G.pages.length - 1], s1 = Math.abs(Q1(P));
56740
- $ += V * Math.cos(s1) + c1 * Math.sin(s1) + Q * Math.cos(s1) + h1 * Math.sin(s1);
56759
+ } = H.pages[H.pages.length - 1], s1 = Math.abs(Q1($));
56760
+ N += V * Math.cos(s1) + c1 * Math.sin(s1) + Q * Math.cos(s1) + h1 * Math.sin(s1);
56741
56761
  }
56742
- return $;
56762
+ return N;
56743
56763
  } else {
56744
56764
  if ((i == null ? void 0 : i.v) === void 0 || (i == null ? void 0 : i.v) === null)
56745
56765
  return;
56746
- const B = (w = (j = o.pd) == null ? void 0 : j.l) != null ? w : h2.l, A = (x = (C = o.pd) == null ? void 0 : C.r) != null ? x : h2.r, L = (F = (S = o.pd) == null ? void 0 : S.t) != null ? F : h2.t, I = (R = (T = o.pd) == null ? void 0 : T.b) != null ? R : h2.b;
56766
+ const B = (w = (j = o.pd) == null ? void 0 : j.l) != null ? w : h2.l, A = (x = (C = o.pd) == null ? void 0 : C.r) != null ? x : h2.r, I = (F = (S = o.pd) == null ? void 0 : S.t) != null ? F : h2.t, M = (R = (T = o.pd) == null ? void 0 : T.b) != null ? R : h2.b;
56747
56767
  if ((o == null ? void 0 : o.tb) === M1.WRAP) {
56748
- const M = new v4(
56768
+ const L = new v4(
56749
56769
  `${i.v}`,
56750
56770
  g3(o).fontCache,
56751
56771
  (o == null ? void 0 : o.tb) === M1.WRAP,
56752
56772
  g - B - A,
56753
56773
  1 / 0
56754
56774
  );
56755
- return M.calculate(), M.getTotalHeight() + L + I;
56775
+ return L.calculate(), L.getTotalHeight() + I + M;
56756
56776
  } else {
56757
- const M = T1.getMeasureText("A", g3(o).fontCache);
56758
- return M.fontBoundingBoxAscent + M.fontBoundingBoxDescent + L + I;
56777
+ const L = T1.getMeasureText("A", g3(o).fontCache);
56778
+ return L.fontBoundingBoxAscent + L.fontBoundingBoxDescent + I + M;
56759
56779
  }
56760
56780
  }
56761
56781
  }
@@ -57574,8 +57594,8 @@ class Ox extends C3 {
57574
57594
  f === 0 && (d = d + z, c = c - y, (y !== 0 || z !== 0) && (_ = !1));
57575
57595
  const j = c - d, w = h - g;
57576
57596
  if (l && _) {
57577
- const { startColumn: B, startRow: A, endColumn: L, endRow: I } = l, { spreadsheetSkeleton: M } = e, { rowHeightAccumulation: P, columnWidthAccumulation: N } = M;
57578
- B === L && B === s ? (i.rectByPrecision(
57597
+ const { startColumn: B, startRow: A, endColumn: I, endRow: M } = l, { spreadsheetSkeleton: L } = e, { rowHeightAccumulation: $, columnWidthAccumulation: P } = L;
57598
+ B === I && B === s ? (i.rectByPrecision(
57579
57599
  d + 1 / o,
57580
57600
  g + 1 / o,
57581
57601
  j - 2 / o,
@@ -57583,12 +57603,12 @@ class Ox extends C3 {
57583
57603
  ), i.clip()) : v === k1.CENTER ? this._clipRectangleForOverflow(
57584
57604
  i,
57585
57605
  A,
57586
- I,
57606
+ M,
57587
57607
  B,
57588
- L,
57608
+ I,
57589
57609
  o,
57610
+ $,
57590
57611
  P,
57591
- N,
57592
57612
  n
57593
57613
  ) : v === k1.RIGHT ? this._clipRectangleForOverflow(
57594
57614
  i,
@@ -57597,18 +57617,18 @@ class Ox extends C3 {
57597
57617
  B,
57598
57618
  s,
57599
57619
  o,
57620
+ $,
57600
57621
  P,
57601
- N,
57602
57622
  n
57603
57623
  ) : this._clipRectangleForOverflow(
57604
57624
  i,
57605
57625
  a,
57606
- I,
57626
+ M,
57607
57627
  s,
57608
- L,
57628
+ I,
57609
57629
  o,
57630
+ $,
57610
57631
  P,
57611
- N,
57612
57632
  n
57613
57633
  );
57614
57634
  } else
@@ -57616,7 +57636,7 @@ class Ox extends C3 {
57616
57636
  e.startX = d, e.startY = g, e.endX = c, e.endY = h;
57617
57637
  }
57618
57638
  _renderText(e, a, s, n, i) {
57619
- var x, S, F, T, R, B, A, L, I, M, P, N, $, G;
57639
+ var x, S, F, T, R, B, A, I, M, L, $, P, N, H;
57620
57640
  const { fontCache: o } = n;
57621
57641
  if (!o) return;
57622
57642
  const l = (S = (x = o.style) == null ? void 0 : x.pd) != null ? S : h2, u = (F = l.l) != null ? F : h2.l, d = (T = l.r) != null ? T : h2.r, c = (R = l.t) != null ? R : h2.t, g = (B = l.b) != null ? B : h2.b, { vertexAngle: h = 0, wrapStrategy: p, cellData: f } = o;
@@ -57633,10 +57653,10 @@ class Ox extends C3 {
57633
57653
  height: w,
57634
57654
  left: u,
57635
57655
  top: c,
57636
- color: (L = (A = o.style) == null ? void 0 : A.cl) == null ? void 0 : L.rgb,
57637
- strokeLine: !!((M = (I = o.style) == null ? void 0 : I.st) != null && M.s),
57638
- underline: !!((N = (P = o.style) == null ? void 0 : P.ul) != null && N.s),
57639
- underlineType: (G = ($ = o.style) == null ? void 0 : $.ul) == null ? void 0 : G.t,
57656
+ color: (I = (A = o.style) == null ? void 0 : A.cl) == null ? void 0 : I.rgb,
57657
+ strokeLine: !!((L = (M = o.style) == null ? void 0 : M.st) != null && L.s),
57658
+ underline: !!((P = ($ = o.style) == null ? void 0 : $.ul) != null && P.s),
57659
+ underlineType: (H = (N = o.style) == null ? void 0 : N.ul) == null ? void 0 : H.t,
57640
57660
  cellValueType: f.t
57641
57661
  });
57642
57662
  }
@@ -57656,8 +57676,8 @@ class Ox extends C3 {
57656
57676
  if (!(c === M1.WRAP && d === 0) && z) {
57657
57677
  const w = re(u), C = g.getSnapshot().documentStyle;
57658
57678
  if (w && C) {
57659
- const { width: A } = w, { marginRight: L = 0, marginLeft: I = 0 } = C;
57660
- u.getViewModel().getDataModel().updateDocumentDataPageSize(A + I + L), u.calculate();
57679
+ const { width: A } = w, { marginRight: I = 0, marginLeft: M = 0 } = C;
57680
+ u.getViewModel().getDataModel().updateDocumentDataPageSize(A + M + I), u.calculate();
57661
57681
  }
57662
57682
  const x = z.endColumn, S = z.startColumn, F = z.startRow, T = z.endRow, R = n.spreadsheetSkeleton.getCellWithCoordByIndex(T, x);
57663
57683
  f = R.endX, m = R.endY;
@@ -57918,7 +57938,7 @@ class y8 extends I7 {
57918
57938
  if (!this.parent)
57919
57939
  return { scaleX: 1, scaleY: 1 };
57920
57940
  let { scaleX: e = 1, scaleY: a = 1 } = this.parent;
57921
- return this.parent.classType === Z.SCENE && (e = this.parent.ancestorScaleX || 1, a = this.parent.ancestorScaleY || 1), {
57941
+ return this.parent.classType === K.SCENE && (e = this.parent.ancestorScaleX || 1, a = this.parent.ancestorScaleY || 1), {
57922
57942
  scaleX: e,
57923
57943
  scaleY: a
57924
57944
  };
@@ -57955,7 +57975,7 @@ class Gx extends O0 {
57955
57975
  const { contentHeight: i = 0 } = n, { ts: o, width: l, content: u } = s;
57956
57976
  if ((o == null ? void 0 : o.bg) == null)
57957
57977
  return;
57958
- const { bg: d } = o, c = y3(d), { spanStartPoint: g = H.create(0, 0) } = this.extensionOffset, h = 1;
57978
+ const { bg: d } = o, c = y3(d), { spanStartPoint: g = G.create(0, 0) } = this.extensionOffset, h = 1;
57959
57979
  c && u !== "\r" && (e.fillStyle = c, e.fillRect(g.x - 0.5, g.y + 1, l + 1, i + 2 * h));
57960
57980
  }
57961
57981
  clearCache() {
@@ -57985,7 +58005,7 @@ class Wx extends O0 {
57985
58005
  return;
57986
58006
  const g = this._getScale(e.getScale()), h = this._createBorderCache(c);
57987
58007
  e.save(), e.translateWithPrecisionRatio(p2, p2);
57988
- const { spanStartPoint: p = H.create(0, 0) } = this.extensionOffset;
58008
+ const { spanStartPoint: p = G.create(0, 0) } = this.extensionOffset;
57989
58009
  for (const m of h.keys()) {
57990
58010
  const v = h.get(m);
57991
58011
  if (!v)
@@ -58187,7 +58207,7 @@ let oA = class extends x3 {
58187
58207
  this._props.opacity = e, this.makeDirty(!0);
58188
58208
  }
58189
58209
  get classType() {
58190
- return Z.IMAGE;
58210
+ return K.IMAGE;
58191
58211
  }
58192
58212
  transformByStateCloseCropper(e) {
58193
58213
  this._transformCalculateSrcRect = !1, this.transformByState(e), this._transformCalculateSrcRect = !0;
@@ -58274,7 +58294,7 @@ let oA = class extends x3 {
58274
58294
  } = this;
58275
58295
  let { left: l, top: u, width: d, height: c } = this.calculateTransformWithSrcRect();
58276
58296
  if (this.angle !== 0) {
58277
- const g = (i + this.strokeWidth) / 2, h = (o + this.strokeWidth) / 2, p = d / 2 - e, f = c / 2 - a, m = W4(new H(g, h), this.angle, new H(l, u), new H(p, f));
58297
+ const g = (i + this.strokeWidth) / 2, h = (o + this.strokeWidth) / 2, p = d / 2 - e, f = c / 2 - a, m = W4(new G(g, h), this.angle, new G(l, u), new G(p, f));
58278
58298
  l = m.x, u = m.y;
58279
58299
  }
58280
58300
  this.transformByState({
@@ -58288,20 +58308,22 @@ let oA = class extends x3 {
58288
58308
  if (!this.visible)
58289
58309
  return this.makeDirty(!1), this;
58290
58310
  if (this.isRender(a)) {
58291
- const { top: n, left: i, bottom: o, right: l } = a.viewBound;
58292
- if (this.width + this.strokeWidth + this.left < i || l < this.left || this.height + this.strokeWidth + this.top < n || o < this.top)
58311
+ const { top: o, left: l, bottom: u, right: d } = a.viewBound;
58312
+ if (this.width + this.strokeWidth + this.left < l || d < this.left || this.height + this.strokeWidth + this.top < o || u < this.top)
58293
58313
  return this;
58294
58314
  }
58295
58315
  const s = this.transform.getMatrix();
58296
- return e.save(), e.transform(s[0], s[1], s[2], s[3], s[4], s[5]), this.opacity !== 1 && (e.globalAlpha = this.opacity), this._draw(e), e.restore(), this.makeDirty(!1), this;
58316
+ e.save();
58317
+ const n = this.left + this.width / 2, i = this.top + this.height / 2;
58318
+ return e.transform(s[0], s[1], s[2], s[3], n, i), this.opacity !== 1 && (e.globalAlpha = this.opacity), this._draw(e), e.restore(), this.makeDirty(!1), this;
58297
58319
  }
58298
58320
  _draw(e) {
58299
58321
  if (this._native != null)
58300
58322
  if (!this._renderByCropper && this.srcRect) {
58301
58323
  const { left: a = 0, top: s = 0, right: n = 0, bottom: i = 0 } = this.srcRect;
58302
- e.beginPath(), e.rect(0, 0, this.width, this.height), e.clip(), e.drawImage(this._native, -a, -s, this.width + n + a, this.height + i + s);
58324
+ e.beginPath(), e.rect(-this.width / 2, -this.height / 2, this.width, this.height), e.clip(), e.drawImage(this._native, -a - this.width / 2, -s - this.height / 2, this.width + n + a, this.height + i + s);
58303
58325
  } else
58304
- e.drawImage(this._native, 0, 0, this.width, this.height);
58326
+ e.drawImage(this._native, -this.width / 2, -this.height / 2, this.width, this.height);
58305
58327
  }
58306
58328
  _init() {
58307
58329
  this.onTransformChange$.subscribeEvent((e) => {
@@ -58328,6 +58350,10 @@ let oA = class extends x3 {
58328
58350
  bottom: _
58329
58351
  });
58330
58352
  }
58353
+ isHit(e) {
58354
+ const a = this.transform.getMatrix(), s = this.left + this.width / 2, n = this.top + this.height / 2, i = new B1([a[0], a[1], a[2], a[3], s, n]), o = this.getParent(), u = (this.isInGroup && (o == null ? void 0 : o.classType) === K.GROUP ? o.ancestorTransform.multiply(i) : i).invert().applyPoint(e), d = this.width / 2, c = this.height / 2;
58355
+ return u.x >= -d - this.strokeWidth / 2 && u.x <= d + this.strokeWidth / 2 && u.y >= -c - this.strokeWidth / 2 && u.y <= c + this.strokeWidth / 2;
58356
+ }
58331
58357
  };
58332
58358
  const Kx = ["dataArray"];
58333
58359
  class V1 extends x3 {
@@ -58514,11 +58540,11 @@ class V1 extends x3 {
58514
58540
  break;
58515
58541
  // Note: lineTo handlers need to be above this point
58516
58542
  case "m": {
58517
- const L = m.shift() || 0, I = m.shift() || 0;
58518
- if (l += L, u += I, v = "M", i.length > 2 && i[i.length - 1].command === "z") {
58519
- for (let M = i.length - 2; M >= 0; M--)
58520
- if (i[M].command === "M") {
58521
- l = i[M].points[0] + L, u = i[M].points[1] + I;
58543
+ const I = m.shift() || 0, M = m.shift() || 0;
58544
+ if (l += I, u += M, v = "M", i.length > 2 && i[i.length - 1].command === "z") {
58545
+ for (let L = i.length - 2; L >= 0; L--)
58546
+ if (i[L].command === "M") {
58547
+ l = i[L].points[0] + I, u = i[L].points[1] + M;
58522
58548
  break;
58523
58549
  }
58524
58550
  }
@@ -59315,7 +59341,7 @@ class D8 extends D2 {
59315
59341
  render(e, a = 0, s = 0) {
59316
59342
  const { scrollX: n, scrollY: i } = this._viewport;
59317
59343
  e.save();
59318
- const l = new A1([1, 0, 0, 1, a, s]).getMatrix();
59344
+ const l = new B1([1, 0, 0, 1, a, s]).getMatrix();
59319
59345
  e.transform(l[0], l[1], l[2], l[3], l[4], l[5]), this._enableHorizontal && (this.horizonScrollTrack.render(e), this.horizonThumbRect.translate(n).render(e)), this._enableVertical && (this.verticalScrollTrack.render(e), this.verticalThumbRect.translate(void 0, i).render(e)), this._enableHorizontal && this._enableVertical && this.placeholderBarRect.render(e), e.restore();
59320
59346
  }
59321
59347
  _resizeHorizontal() {
@@ -59510,7 +59536,7 @@ class tE extends O0 {
59510
59536
  var v;
59511
59537
  if (!((v = s.parent) == null ? void 0 : v.parent))
59512
59538
  return;
59513
- const { ts: l, content: u, fontStyle: d, bBox: c } = s, { spanPointWithFont: g = H.create(0, 0) } = this.extensionOffset;
59539
+ const { ts: l, content: u, fontStyle: d, bBox: c } = s, { spanPointWithFont: g = G.create(0, 0) } = this.extensionOffset;
59514
59540
  if (u == null)
59515
59541
  return;
59516
59542
  if (!l) {
@@ -59588,8 +59614,8 @@ class sE extends O0 {
59588
59614
  return;
59589
59615
  c == null && (c = r1.TRUE);
59590
59616
  const {
59591
- originTranslate: g = H.create(0, 0),
59592
- alignOffset: h = H.create(0, 0),
59617
+ originTranslate: g = G.create(0, 0),
59618
+ alignOffset: h = G.create(0, 0),
59593
59619
  renderConfig: p = {}
59594
59620
  } = this.extensionOffset, { left: f, width: m } = a, { centerAngle: v = 0, vertexAngle: y = 0 } = p;
59595
59621
  e.save();
@@ -59597,13 +59623,13 @@ class sE extends O0 {
59597
59623
  e.strokeStyle = z, this._setLineType(e, d != null ? d : u1.SINGLE, o), n += this._isDouble(d) ? -0.8 : 0;
59598
59624
  const _ = Q1(v), j = Q1(y), w = v2(
59599
59625
  g.addByPoint(f, n),
59600
- H.create(0, 0),
59626
+ G.create(0, 0),
59601
59627
  _,
59602
59628
  j,
59603
59629
  h
59604
59630
  ), C = v2(
59605
59631
  g.addByPoint(f + m, n),
59606
- H.create(0, 0),
59632
+ G.create(0, 0),
59607
59633
  _,
59608
59634
  j,
59609
59635
  h
@@ -59744,32 +59770,32 @@ class ve extends y8 {
59744
59770
  pageWidth: R,
59745
59771
  headerId: B,
59746
59772
  footerId: A,
59747
- renderConfig: L = {},
59748
- skeTables: I
59773
+ renderConfig: I = {},
59774
+ skeTables: M
59749
59775
  } = _, {
59750
- verticalAlign: M = m2.TOP,
59776
+ verticalAlign: L = m2.TOP,
59751
59777
  // Do not make changes, otherwise the document will not render.
59752
- horizontalAlign: P = k1.LEFT,
59778
+ horizontalAlign: $ = k1.LEFT,
59753
59779
  // Do not make changes, otherwise the document will not render.
59754
- centerAngle: N = 0,
59755
- vertexAngle: $ = 0,
59756
- wrapStrategy: G = M1.UNSPECIFIED,
59780
+ centerAngle: P = 0,
59781
+ vertexAngle: N = 0,
59782
+ wrapStrategy: H = M1.UNSPECIFIED,
59757
59783
  cellValueType: V
59758
59784
  // isRotateNonEastAsian = BooleanNumber.FALSE,
59759
- } = L, Q = this._horizontalHandler(
59785
+ } = I, Q = this._horizontalHandler(
59760
59786
  F,
59761
59787
  x,
59762
59788
  S,
59763
- P,
59764
59789
  $,
59765
59790
  N,
59791
+ P,
59766
59792
  V
59767
59793
  ), h1 = this._verticalHandler(
59768
59794
  T,
59769
59795
  w,
59770
59796
  C,
59771
- M
59772
- ), c1 = H.create(Q, h1), s1 = Q1(N), Y = Q1($), e1 = Y - s1;
59797
+ L
59798
+ ), c1 = G.create(Q, h1), s1 = Q1(P), Y = Q1(N), e1 = Y - s1;
59773
59799
  if (this.isSkipByDiffBounds(_, g, h, a)) {
59774
59800
  const { x: D1, y: F1 } = this._drawLiquid.translatePage(
59775
59801
  _,
@@ -59780,20 +59806,20 @@ class ve extends y8 {
59780
59806
  h += D1, g += F1;
59781
59807
  continue;
59782
59808
  }
59783
- I.size > 0 && this._drawTable(
59809
+ M.size > 0 && this._drawTable(
59784
59810
  e,
59785
59811
  _,
59786
- I,
59812
+ M,
59787
59813
  u,
59788
59814
  d,
59789
59815
  c,
59790
59816
  c1,
59791
59817
  s1,
59792
59818
  Y,
59793
- L,
59819
+ I,
59794
59820
  l
59795
59821
  );
59796
- const f1 = (f = i.get(B)) == null ? void 0 : f.get(R), z1 = H.create(
59822
+ const f1 = (f = i.get(B)) == null ? void 0 : f.get(R), z1 = G.create(
59797
59823
  Q,
59798
59824
  (m = f1 == null ? void 0 : f1.marginTop) != null ? m : 0
59799
59825
  );
@@ -59806,7 +59832,7 @@ class ve extends y8 {
59806
59832
  z1,
59807
59833
  s1,
59808
59834
  Y,
59809
- L,
59835
+ I,
59810
59836
  l,
59811
59837
  _,
59812
59838
  !0
@@ -59829,30 +59855,30 @@ class ve extends y8 {
59829
59855
  rotateTranslateY: n3
59830
59856
  } = R7(q1, L2, Y);
59831
59857
  let G2 = N1;
59832
- R1 > this.height && G !== M1.WRAP && (G === M1.OVERFLOW || Y > 0) && (G2 = this.height / Math.tan(Math.abs(Y)));
59858
+ R1 > this.height && H !== M1.WRAP && (H === M1.OVERFLOW || Y > 0) && (G2 = this.height / Math.tan(Math.abs(Y)));
59833
59859
  const E3 = this._horizontalHandler(
59834
59860
  G2,
59835
59861
  x,
59836
59862
  S,
59837
- P,
59838
59863
  $,
59839
- N
59864
+ N,
59865
+ P
59840
59866
  );
59841
59867
  let l2 = this._verticalHandler(
59842
59868
  R1,
59843
59869
  w,
59844
59870
  C,
59845
- M
59871
+ L
59846
59872
  ) - o2;
59847
- R1 > this.height && (Y < 0 ? l2 = this.height - (R1 + o2) : l2 = -o2), W1 = H.create(E3 + i2, l2), this._drawLiquid.translate(0, -n3), n2 = t2;
59848
- } else G === M1.WRAP && (P !== k1.UNSPECIFIED || V !== A2.NUMBER) && (W1.x = x);
59873
+ R1 > this.height && (Y < 0 ? l2 = this.height - (R1 + o2) : l2 = -o2), W1 = G.create(E3 + i2, l2), this._drawLiquid.translate(0, -n3), n2 = t2;
59874
+ } else H === M1.WRAP && ($ !== k1.UNSPECIFIED || V !== A2.NUMBER) && (W1.x = x);
59849
59875
  for (let t2 = 0; t2 < P2; t2++) {
59850
59876
  const R1 = q1[t2], { divides: N1, asc: i2 = 0, type: o2, lineHeight: n3 = 0 } = R1, G2 = i2, E3 = G2 * Math.sin(s1), X3 = G2 * Math.cos(s1);
59851
59877
  if (o2 === P3.BLOCK)
59852
59878
  for (const l2 of u)
59853
59879
  l2.type === se.LINE && (l2.extensionOffset = {
59854
59880
  alignOffset: W1,
59855
- renderConfig: L
59881
+ renderConfig: I
59856
59882
  }, l2.draw(e, l, R1));
59857
59883
  else {
59858
59884
  this._drawLiquid.translateSave(), this._drawLiquid.translateLine(R1, !0, !0), n2 && this._drawLiquid.translate(n2[t2]);
@@ -59863,7 +59889,7 @@ class ve extends y8 {
59863
59889
  for (const u2 of K3) {
59864
59890
  if (!u2.content || u2.content.length === 0)
59865
59891
  continue;
59866
- const { width: S1, left: C2 } = u2, { x: i3, y: o3 } = this._drawLiquid, R0 = H.create(i3, o3), Z3 = H.create(S1 / 2, n3 / 2), M0 = {
59892
+ const { width: S1, left: C2 } = u2, { x: i3, y: o3 } = this._drawLiquid, R0 = G.create(i3, o3), Z3 = G.create(S1 / 2, n3 / 2), M0 = {
59867
59893
  spanStartPoint: v2(
59868
59894
  R0.addByPoint(C2, 0),
59869
59895
  Z3,
@@ -59877,7 +59903,7 @@ class ve extends y8 {
59877
59903
  for (const u2 of K3) {
59878
59904
  if (!u2.content || u2.content.length === 0)
59879
59905
  continue;
59880
- const { width: S1, left: C2, xOffset: i3 } = u2, { x: o3, y: R0 } = this._drawLiquid, Z3 = H.create(o3, R0), Ee = H.create(S1 / 2, n3 / 2), M0 = v2(
59906
+ const { width: S1, left: C2, xOffset: i3 } = u2, { x: o3, y: R0 } = this._drawLiquid, Z3 = G.create(o3, R0), Ee = G.create(S1 / 2, n3 / 2), M0 = v2(
59881
59907
  Z3.addByPoint(C2 + i3, 0),
59882
59908
  Ee,
59883
59909
  s1,
@@ -59898,7 +59924,7 @@ class ve extends y8 {
59898
59924
  spanPointWithFont: B8,
59899
59925
  centerPoint: Ee,
59900
59926
  alignOffset: W1,
59901
- renderConfig: L
59927
+ renderConfig: I
59902
59928
  };
59903
59929
  for (const f6 of c)
59904
59930
  f6.extensionOffset = A8, f6.draw(e, l, u2, [], {
@@ -59916,7 +59942,7 @@ class ve extends y8 {
59916
59942
  this._resetRotation(e, e1);
59917
59943
  const p1 = (v = o.get(A)) == null ? void 0 : v.get(R);
59918
59944
  if (p1) {
59919
- const D1 = H.create(
59945
+ const D1 = G.create(
59920
59946
  Q,
59921
59947
  _.pageHeight - (p1 == null ? void 0 : p1.height) - p1.marginBottom
59922
59948
  );
@@ -59929,7 +59955,7 @@ class ve extends y8 {
59929
59955
  D1,
59930
59956
  s1,
59931
59957
  Y,
59932
- L,
59958
+ I,
59933
59959
  l,
59934
59960
  _,
59935
59961
  !1
@@ -59959,8 +59985,8 @@ class ve extends y8 {
59959
59985
  const { top: R, cells: B } = T;
59960
59986
  (f = this._drawLiquid) == null || f.translateSave(), (m = this._drawLiquid) == null || m.translate(0, R);
59961
59987
  for (const A of B) {
59962
- const { left: L } = A;
59963
- (v = this._drawLiquid) == null || v.translateSave(), (y = this._drawLiquid) == null || y.translate(L, 0), this._drawTableCell(
59988
+ const { left: I } = A;
59989
+ (v = this._drawLiquid) == null || v.translateSave(), (y = this._drawLiquid) == null || y.translate(I, 0), this._drawTableCell(
59964
59990
  e,
59965
59991
  a,
59966
59992
  A,
@@ -59998,7 +60024,7 @@ class ve extends y8 {
59998
60024
  return;
59999
60025
  this._drawTableCellBordersAndBg(e, a, s);
60000
60026
  const { sections: h, marginLeft: p, marginTop: f } = s;
60001
- l = H.create(l.x + p, l.y + f), e.save();
60027
+ l = G.create(l.x + p, l.y + f), e.save();
60002
60028
  const { x: m, y: v } = this._drawLiquid, { pageWidth: y, pageHeight: z } = s;
60003
60029
  e.beginPath(), e.rectByPrecision(m + a.marginLeft, v + a.marginTop, y, z), e.closePath(), e.clip();
60004
60030
  for (const _ of h) {
@@ -60009,23 +60035,23 @@ class ve extends y8 {
60009
60035
  this._drawLiquid.translateSave(), this._drawLiquid.translateColumn(w);
60010
60036
  const x = C.length, S = l;
60011
60037
  for (let F = 0; F < x; F++) {
60012
- const T = C[F], { divides: R, asc: B = 0, type: A, lineHeight: L = 0 } = T, I = B, M = I * Math.sin(u), P = I * Math.cos(u);
60038
+ const T = C[F], { divides: R, asc: B = 0, type: A, lineHeight: I = 0 } = T, M = B, L = M * Math.sin(u), $ = M * Math.cos(u);
60013
60039
  if (A === P3.BLOCK)
60014
- for (const N of n)
60015
- N.type === se.LINE && (N.extensionOffset = {
60040
+ for (const P of n)
60041
+ P.type === se.LINE && (P.extensionOffset = {
60016
60042
  alignOffset: S,
60017
60043
  renderConfig: c
60018
- }, N.draw(e, g, T));
60044
+ }, P.draw(e, g, T));
60019
60045
  else {
60020
60046
  this._drawLiquid.translateSave(), this._drawLiquid.translateLine(T, !0, !0);
60021
- const N = R.length;
60022
- for (let $ = 0; $ < N; $++) {
60023
- const G = R[$], { glyphGroup: V } = G;
60024
- this._drawLiquid.translateSave(), this._drawLiquid.translateDivide(G);
60047
+ const P = R.length;
60048
+ for (let N = 0; N < P; N++) {
60049
+ const H = R[N], { glyphGroup: V } = H;
60050
+ this._drawLiquid.translateSave(), this._drawLiquid.translateDivide(H);
60025
60051
  for (const Q of V) {
60026
60052
  if (!Q.content || Q.content.length === 0)
60027
60053
  continue;
60028
- const { width: h1, left: c1 } = Q, { x: s1, y: Y } = this._drawLiquid, e1 = H.create(s1, Y), f1 = H.create(h1 / 2, L / 2), p1 = {
60054
+ const { width: h1, left: c1 } = Q, { x: s1, y: Y } = this._drawLiquid, e1 = G.create(s1, Y), f1 = G.create(h1 / 2, I / 2), p1 = {
60029
60055
  spanStartPoint: v2(
60030
60056
  e1.addByPoint(c1, 0),
60031
60057
  f1,
@@ -60039,7 +60065,7 @@ class ve extends y8 {
60039
60065
  for (const Q of V) {
60040
60066
  if (!Q.content || Q.content.length === 0)
60041
60067
  continue;
60042
- const { width: h1, left: c1, xOffset: s1 } = Q, { x: Y, y: e1 } = this._drawLiquid, f1 = H.create(Y, e1), z1 = H.create(h1 / 2, L / 2), p1 = v2(
60068
+ const { width: h1, left: c1, xOffset: s1 } = Q, { x: Y, y: e1 } = this._drawLiquid, f1 = G.create(Y, e1), z1 = G.create(h1 / 2, I / 2), p1 = v2(
60043
60069
  f1.addByPoint(c1 + s1, 0),
60044
60070
  z1,
60045
60071
  u,
@@ -60047,8 +60073,8 @@ class ve extends y8 {
60047
60073
  S
60048
60074
  ), C1 = v2(
60049
60075
  f1.addByPoint(
60050
- c1 + M + s1,
60051
- P
60076
+ c1 + L + s1,
60077
+ $
60052
60078
  ),
60053
60079
  z1,
60054
60080
  u,
@@ -60124,31 +60150,31 @@ class ve extends y8 {
60124
60150
  for (let w = 0; w < _; w++) {
60125
60151
  const C = z[w], { divides: x, asc: S = 0, type: F, lineHeight: T = 0 } = C, R = S, B = R * Math.sin(l), A = R * Math.cos(l);
60126
60152
  if (F === P3.BLOCK)
60127
- for (const L of s)
60128
- L.type === se.LINE && (L.extensionOffset = {
60153
+ for (const I of s)
60154
+ I.type === se.LINE && (I.extensionOffset = {
60129
60155
  alignOffset: j,
60130
60156
  renderConfig: d
60131
- }, L.draw(a, c, C));
60157
+ }, I.draw(a, c, C));
60132
60158
  else {
60133
60159
  this._drawLiquid.translateSave(), this._drawLiquid.translateLine(C, !0, !0);
60134
- const { y: L } = this._drawLiquid;
60160
+ const { y: I } = this._drawLiquid;
60135
60161
  if (h) {
60136
- if (L - f + j.y > (g.pageHeight - 100) / 2) {
60162
+ if (I - f + j.y > (g.pageHeight - 100) / 2) {
60137
60163
  this._drawLiquid.translateRestore();
60138
60164
  continue;
60139
60165
  }
60140
- } else if (L - f + j.y + T < (g.pageHeight - 100) / 2 + 100) {
60166
+ } else if (I - f + j.y + T < (g.pageHeight - 100) / 2 + 100) {
60141
60167
  this._drawLiquid.translateRestore();
60142
60168
  continue;
60143
60169
  }
60144
- const I = x.length;
60145
- for (let M = 0; M < I; M++) {
60146
- const P = x[M], { glyphGroup: N } = P;
60147
- this._drawLiquid.translateSave(), this._drawLiquid.translateDivide(P);
60148
- for (const $ of N) {
60149
- if (!$.content || $.content.length === 0)
60170
+ const M = x.length;
60171
+ for (let L = 0; L < M; L++) {
60172
+ const $ = x[L], { glyphGroup: P } = $;
60173
+ this._drawLiquid.translateSave(), this._drawLiquid.translateDivide($);
60174
+ for (const N of P) {
60175
+ if (!N.content || N.content.length === 0)
60150
60176
  continue;
60151
- const { width: G, left: V } = $, { x: Q, y: h1 } = this._drawLiquid, c1 = H.create(Q, h1), s1 = H.create(G / 2, T / 2), e1 = {
60177
+ const { width: H, left: V } = N, { x: Q, y: h1 } = this._drawLiquid, c1 = G.create(Q, h1), s1 = G.create(H / 2, T / 2), e1 = {
60152
60178
  spanStartPoint: v2(
60153
60179
  c1.addByPoint(V, 0),
60154
60180
  s1,
@@ -60157,12 +60183,12 @@ class ve extends y8 {
60157
60183
  j
60158
60184
  )
60159
60185
  };
60160
- n && (n.extensionOffset = e1, n.draw(a, c, $));
60186
+ n && (n.extensionOffset = e1, n.draw(a, c, N));
60161
60187
  }
60162
- for (const $ of N) {
60163
- if (!$.content || $.content.length === 0)
60188
+ for (const N of P) {
60189
+ if (!N.content || N.content.length === 0)
60164
60190
  continue;
60165
- const { width: G, left: V, xOffset: Q } = $, { x: h1, y: c1 } = this._drawLiquid, s1 = H.create(h1, c1), Y = H.create(G / 2, T / 2), e1 = v2(
60191
+ const { width: H, left: V, xOffset: Q } = N, { x: h1, y: c1 } = this._drawLiquid, s1 = G.create(h1, c1), Y = G.create(H / 2, T / 2), e1 = v2(
60166
60192
  s1.addByPoint(V + Q, 0),
60167
60193
  Y,
60168
60194
  l,
@@ -60186,7 +60212,7 @@ class ve extends y8 {
60186
60212
  renderConfig: d
60187
60213
  };
60188
60214
  for (const p1 of i)
60189
- p1.extensionOffset = z1, p1.draw(a, c, $);
60215
+ p1.extensionOffset = z1, p1.draw(a, c, N);
60190
60216
  }
60191
60217
  this._drawLiquid.translateRestore();
60192
60218
  }
@@ -60363,8 +60389,8 @@ class dA extends $7 {
60363
60389
  columnHeaderHeight: v,
60364
60390
  rowHeaderWidth: m
60365
60391
  }));
60366
- const S = _ * Math.min(1, window.devicePixelRatio), F = j * Math.min(1, window.devicePixelRatio), { left: T, top: R, right: B, bottom: A } = l, L = B - T + m, I = A - R + v;
60367
- this._applyCache(u, e, S, F, L, I, T, R, L, I), w.restore();
60392
+ const S = _ * Math.min(1, window.devicePixelRatio), F = j * Math.min(1, window.devicePixelRatio), { left: T, top: R, right: B, bottom: A } = l, I = B - T + m, M = A - R + v;
60393
+ this._applyCache(u, e, S, F, I, M, T, R, I, M), w.restore();
60368
60394
  }
60369
60395
  paintNewAreaForScrolling(e, a) {
60370
60396
  const { cacheCanvas: s, cacheCtx: n, mainCtx: i, topOrigin: o, leftOrigin: l, bufferEdgeX: u, bufferEdgeY: d, scaleX: c, scaleY: g, columnHeaderHeight: h, rowHeaderWidth: p } = a, { shouldCacheUpdate: f, diffCacheBounds: m, diffX: v, diffY: y } = e;
@@ -60441,14 +60467,14 @@ class dA extends $7 {
60441
60467
  _getAncestorSize() {
60442
60468
  const e = this._getAncestorParent();
60443
60469
  if (e) {
60444
- if (e.classType === Z.ENGINE) {
60470
+ if (e.classType === K.ENGINE) {
60445
60471
  const a = e.getCanvas();
60446
60472
  return {
60447
60473
  width: a.getWidth(),
60448
60474
  height: a.getHeight()
60449
60475
  };
60450
60476
  }
60451
- if (e.classType === Z.SCENE_VIEWER)
60477
+ if (e.classType === K.SCENE_VIEWER)
60452
60478
  return {
60453
60479
  width: e.width,
60454
60480
  height: e.height
@@ -60458,7 +60484,7 @@ class dA extends $7 {
60458
60484
  _getAncestorParent() {
60459
60485
  let e = this.parent;
60460
60486
  for (; e; ) {
60461
- if (e.classType === Z.ENGINE || e.classType === Z.SCENE_VIEWER)
60487
+ if (e.classType === K.ENGINE || e.classType === K.SCENE_VIEWER)
60462
60488
  return e;
60463
60489
  e = (e == null ? void 0 : e.getParent) && (e == null ? void 0 : e.getParent());
60464
60490
  }
@@ -60474,32 +60500,49 @@ class dA extends $7 {
60474
60500
  */
60475
60501
  // eslint-disable-next-line max-lines-per-function
60476
60502
  _drawAuxiliary(e) {
60477
- var I;
60503
+ var P;
60478
60504
  const a = this.getSkeleton();
60479
60505
  if (a == null)
60480
60506
  return;
60481
- const { rowColumnSegment: s, overflowCache: n, showGridlines: i, gridlinesColor: o } = a, l = a.getCurrentRowColumnSegmentMergeData(s), { startRow: u, endRow: d, startColumn: c, endColumn: g } = s;
60507
+ const { rowColumnSegment: s, overflowCache: n, showGridlines: i, gridlinesColor: o, worksheet: l } = a, { startRow: u, endRow: d, startColumn: c, endColumn: g } = s;
60482
60508
  if (!a || i === r1.FALSE || this._forceDisableGridlines)
60483
60509
  return;
60484
60510
  const { rowHeightAccumulation: h, columnTotalWidth: p, columnWidthAccumulation: f, rowTotalHeight: m } = a;
60485
60511
  if (!h || !f || p === void 0 || m === void 0)
60486
60512
  return;
60487
- e.save(), e.setLineWidthByPrecision(1), e.strokeStyle = (I = o != null ? o : e.renderConfig.gridlinesColor) != null ? I : I2([214, 216, 219]);
60488
- const v = f.length, y = h.length, z = 0.4, _ = d - u + 1, j = g - c + 1, w = Math.ceil(_ * z), C = Math.ceil(j * z), x = Math.max(Math.floor(u - w), 0), S = Math.min(Math.ceil(d + w), y - 1), F = Math.min(Math.ceil(g + C), v - 1), T = Math.max(Math.floor(c - C), 0), R = f[T - 1] || 0, B = h[x - 1] || 0, A = f[F], L = h[S];
60489
- e.translateWithPrecisionRatio(p2, p2), e.beginPath(), e.moveToByPrecision(R, B), e.lineToByPrecision(A, B), e.moveToByPrecision(R, B), e.lineToByPrecision(R, L), e.closePathByEnv(), e.stroke();
60490
- for (let M = x; M <= S; M++) {
60491
- if (M < 0 || M > y - 1)
60513
+ e.save(), e.setLineWidthByPrecision(1), e.strokeStyle = (P = o != null ? o : e.renderConfig.gridlinesColor) != null ? P : I2([214, 216, 219]);
60514
+ const v = f.length, y = h.length, z = 0.4, _ = d - u + 1, j = g - c + 1, w = Math.ceil(_ * z), C = Math.ceil(j * z), x = Math.max(Math.floor(u - w), 0), S = Math.min(Math.ceil(d + w), y - 1), F = Math.min(Math.ceil(g + C), v - 1), T = Math.max(Math.floor(c - C), 0), R = f[T - 1] || 0, B = h[x - 1] || 0, A = f[F], I = h[S];
60515
+ e.translateWithPrecisionRatio(p2, p2), e.beginPath(), e.moveToByPrecision(R, B), e.lineToByPrecision(A, B), e.moveToByPrecision(R, B), e.lineToByPrecision(R, I), e.closePathByEnv(), e.stroke();
60516
+ const M = [];
60517
+ let L = u;
60518
+ for (let N = x; N <= S; N++) {
60519
+ if (l.getRowVisible(N) === !1 ? L < N ? (M.push({
60520
+ startRow: L,
60521
+ endRow: N - 1,
60522
+ startColumn: c,
60523
+ endColumn: g
60524
+ }), L = N + 1) : L === N && (L = N + 1) : N === d && L <= N && M.push({
60525
+ startRow: L,
60526
+ endRow: N,
60527
+ startColumn: c,
60528
+ endColumn: g
60529
+ }), N < 0 || N > y - 1)
60492
60530
  continue;
60493
- const P = h[M];
60494
- e.beginPath(), e.moveToByPrecision(R, P), e.lineToByPrecision(A, P), e.closePathByEnv(), e.stroke();
60531
+ const H = h[N];
60532
+ e.beginPath(), e.moveToByPrecision(R, H), e.lineToByPrecision(A, H), e.closePathByEnv(), e.stroke();
60495
60533
  }
60496
- for (let M = T; M <= F; M++) {
60497
- if (M < 0 || M > v - 1)
60534
+ for (let N = T; N <= F; N++) {
60535
+ if (N < 0 || N > v - 1)
60498
60536
  continue;
60499
- const P = f[M];
60500
- e.beginPath(), e.moveToByPrecision(P, B), e.lineToByPrecision(P, L), e.closePathByEnv(), e.stroke();
60537
+ const H = f[N];
60538
+ e.beginPath(), e.moveToByPrecision(H, B), e.lineToByPrecision(H, I), e.closePathByEnv(), e.stroke();
60539
+ }
60540
+ const $ = [];
60541
+ for (const N of M) {
60542
+ const H = a.getCurrentRowColumnSegmentMergeData(N);
60543
+ $.push(...H);
60501
60544
  }
60502
- this._clearRectangle(e, h, f, l), this._clearRectangle(e, h, f, n.toNativeArray()), e.restore();
60545
+ this._clearRectangle(e, h, f, $), this._clearRectangle(e, h, f, n.toNativeArray()), e.restore();
60503
60546
  }
60504
60547
  /**
60505
60548
  * Clear the guide lines within a range in the table, to make room for merged cells and overflow.
@@ -60633,7 +60676,7 @@ class j8 extends D2 {
60633
60676
  const e = [];
60634
60677
  this._objects.sort(c2);
60635
60678
  for (const a of this._objects)
60636
- a.classType !== Z.GROUP && a.visible && a.evented && e.push(a);
60679
+ a.classType !== K.GROUP && a.visible && a.evented && e.push(a);
60637
60680
  return e;
60638
60681
  }
60639
60682
  getObjects() {
@@ -60645,7 +60688,7 @@ class j8 extends D2 {
60645
60688
  * @returns {Layer} this
60646
60689
  */
60647
60690
  addObject(e) {
60648
- if (e.classType === Z.GROUP) {
60691
+ if (e.classType === K.GROUP) {
60649
60692
  const a = e.getObjects();
60650
60693
  for (const s of a)
60651
60694
  this.scene.getObject(s.oKey) || (this._objects.push(s), this.scene.setObjectBehavior(s), this._layerBehavior(s));
@@ -60695,7 +60738,7 @@ class j8 extends D2 {
60695
60738
  makeDirty(e = !0) {
60696
60739
  this._dirty = e;
60697
60740
  const a = this.scene.getParent();
60698
- return a.classType === Z.SCENE_VIEWER && a.makeDirty(!0), this;
60741
+ return a.classType === K.SCENE_VIEWER && a.makeDirty(!0), this;
60699
60742
  }
60700
60743
  makeDirtyWithDebounce(e = !0) {
60701
60744
  this._debounceDirtyFunc && this._debounceDirtyFunc(), this._debounceDirtyFunc = h7(() => {
@@ -60802,7 +60845,7 @@ class dE extends a3 {
60802
60845
  this._initialProps(a);
60803
60846
  }
60804
60847
  get classType() {
60805
- return Z.SCENE_VIEWER;
60848
+ return K.SCENE_VIEWER;
60806
60849
  }
60807
60850
  render(e, a) {
60808
60851
  var n;
@@ -61441,7 +61484,7 @@ let be = class extends D2 {
61441
61484
  return this.getCanvas().getHeight();
61442
61485
  }
61443
61486
  get classType() {
61444
- return Z.ENGINE;
61487
+ return K.ENGINE;
61445
61488
  }
61446
61489
  get activeScene() {
61447
61490
  return this._activeScene;
@@ -61793,7 +61836,7 @@ class s7 extends a3 {
61793
61836
  this.addObjects(...a);
61794
61837
  }
61795
61838
  get classType() {
61796
- return Z.GROUP;
61839
+ return K.GROUP;
61797
61840
  }
61798
61841
  set cursor(e) {
61799
61842
  this.setCursor(e);
@@ -61899,7 +61942,7 @@ class s7 extends a3 {
61899
61942
  }
61900
61943
  _transformObject(e, a, s) {
61901
61944
  const n = cb(e.getState(), this.getState(), a, s);
61902
- e.classType === Z.GROUP ? e.transformByState({
61945
+ e.classType === K.GROUP ? e.transformByState({
61903
61946
  left: n.left,
61904
61947
  top: n.top
61905
61948
  }) : e.transformByState(n);
@@ -61956,7 +61999,7 @@ const RE = "engine-render.config", n7 = {}, b2 = class b2 extends D2 {
61956
61999
  // WorkBookObserver
61957
62000
  k(this, "_onInput$");
61958
62001
  k(this, "_currentMouseEnterPicked");
61959
- k(this, "_startingPosition", new H(Number.POSITIVE_INFINITY, Number.POSITIVE_INFINITY));
62002
+ k(this, "_startingPosition", new G(Number.POSITIVE_INFINITY, Number.POSITIVE_INFINITY));
61960
62003
  k(this, "_delayedTimeout", -1);
61961
62004
  k(this, "_delayedTripeTimeout", -1);
61962
62005
  k(this, "_doubleClickOccurred", 0);
@@ -62146,7 +62189,7 @@ const RE = "engine-render.config", n7 = {}, b2 = class b2 extends D2 {
62146
62189
  */
62147
62190
  _getObjectAtPos(e, a) {
62148
62191
  var s;
62149
- return (s = this._scene) == null ? void 0 : s.pick(H.FromArray([e, a]));
62192
+ return (s = this._scene) == null ? void 0 : s.pick(G.FromArray([e, a]));
62150
62193
  }
62151
62194
  /**
62152
62195
  *
@@ -62176,10 +62219,10 @@ const RE = "engine-render.config", n7 = {}, b2 = class b2 extends D2 {
62176
62219
  return e == null ? !0 : this._scene.objectsEvented ? !1 : !this._isObjectInSceneViewer(e);
62177
62220
  }
62178
62221
  _isObjectInSceneViewer(e) {
62179
- if (e && e.classType === Z.BASE_OBJECT) {
62222
+ if (e && e.classType === K.BASE_OBJECT) {
62180
62223
  const a = e.getScene();
62181
62224
  if (a)
62182
- return a.getParent().classType === Z.SCENE_VIEWER;
62225
+ return a.getParent().classType === K.SCENE_VIEWER;
62183
62226
  }
62184
62227
  return !1;
62185
62228
  }
@@ -62195,7 +62238,7 @@ const RE = "engine-render.config", n7 = {}, b2 = class b2 extends D2 {
62195
62238
  const { clientX: a, clientY: s } = e;
62196
62239
  this._isPointerSwiping(a, s) && this._resetDoubleClickParam(), this._delayedTimeout = setTimeout(() => {
62197
62240
  this._resetDoubleClickParam();
62198
- }, b2.DoubleClickDelay), this._doubleClickOccurred += 1, this._tripleClickState && ((o = (i = this._scene) == null ? void 0 : i.pick(H.FromArray([e.offsetX, e.offsetY]))) == null || o.triggerTripleClick(e), this._scene.onTripleClick$.emitEvent(e)), this._doubleClickOccurred === 2 && ((u = (l = this._scene) == null ? void 0 : l.pick(H.FromArray([e.offsetX, e.offsetY]))) == null || u.triggerDblclick(e), this._scene.onDblclick$.emitEvent(e), this._resetDoubleClickParam(), this._tripleClickState = !0, clearTimeout(this._delayedTripeTimeout), this._delayedTripeTimeout = setTimeout(() => {
62241
+ }, b2.DoubleClickDelay), this._doubleClickOccurred += 1, this._tripleClickState && ((o = (i = this._scene) == null ? void 0 : i.pick(G.FromArray([e.offsetX, e.offsetY]))) == null || o.triggerTripleClick(e), this._scene.onTripleClick$.emitEvent(e)), this._doubleClickOccurred === 2 && ((u = (l = this._scene) == null ? void 0 : l.pick(G.FromArray([e.offsetX, e.offsetY]))) == null || u.triggerDblclick(e), this._scene.onDblclick$.emitEvent(e), this._resetDoubleClickParam(), this._tripleClickState = !0, clearTimeout(this._delayedTripeTimeout), this._delayedTripeTimeout = setTimeout(() => {
62199
62242
  this._tripleClickState = !1;
62200
62243
  }, b2.TripleClickDelay)), this._startingPosition.x = a, this._startingPosition.y = s;
62201
62244
  }
@@ -62256,7 +62299,7 @@ class y0 {
62256
62299
  return this._viewport;
62257
62300
  }
62258
62301
  startScroll(t, e, a) {
62259
- this._offsetX = t, this._offsetY = e, this._moveX = t, this._moveY = e, a != null ? this._viewport = a : this._viewport = this._scene.findViewportByPosToScene(H.FromArray([t, e])), this._runRenderLoop();
62302
+ this._offsetX = t, this._offsetY = e, this._moveX = t, this._moveY = e, a != null ? this._viewport = a : this._viewport = this._scene.findViewportByPosToScene(G.FromArray([t, e])), this._runRenderLoop();
62260
62303
  }
62261
62304
  //eslint-disable-next-line complexity
62262
62305
  _autoScroll(t) {
@@ -62421,7 +62464,7 @@ class UE extends D2 {
62421
62464
  }
62422
62465
  // eslint-disable-next-line max-lines-per-function, complexity
62423
62466
  _getConfig(e) {
62424
- var M, P, N, $, G, V, Q, h1, c1, s1, Y, e1, f1, z1, p1, C1, H1, D1, F1, P1, q1, L2, P2, W1, n2, t2, R1, N1, i2;
62467
+ var L, $, P, N, H, V, Q, h1, c1, s1, Y, e1, f1, z1, p1, C1, H1, D1, F1, P1, q1, L2, P2, W1, n2, t2, R1, N1, i2;
62425
62468
  const a = e.transformerConfig;
62426
62469
  let {
62427
62470
  isCropper: s,
@@ -62451,10 +62494,10 @@ class UE extends D2 {
62451
62494
  flipEnabled: R,
62452
62495
  ignoreStroke: B,
62453
62496
  boundBoxFunc: A,
62454
- useSingleNodeRotation: L,
62455
- shouldOverdrawWholeArea: I
62497
+ useSingleNodeRotation: I,
62498
+ shouldOverdrawWholeArea: M
62456
62499
  } = this;
62457
- return a != null && (s = (M = a.isCropper) != null ? M : s, n = (P = a.hoverEnabled) != null ? P : n, i = (N = a.hoverEnterFunc) != null ? N : i, o = ($ = a.hoverLeaveFunc) != null ? $ : o, l = (G = a.resizeEnabled) != null ? G : l, u = (V = a.rotateEnabled) != null ? V : u, d = (Q = a.rotationSnaps) != null ? Q : d, c = (h1 = a.rotationSnapTolerance) != null ? h1 : c, g = (c1 = a.rotateAnchorOffset) != null ? c1 : g, h = (s1 = a.rotateSize) != null ? s1 : h, p = (Y = a.rotateCornerRadius) != null ? Y : p, f = (e1 = a.borderEnabled) != null ? e1 : f, m = (f1 = a.borderStroke) != null ? f1 : m, v = (z1 = a.borderStrokeWidth) != null ? z1 : v, y = (p1 = a.borderDash) != null ? p1 : y, z = (C1 = a.borderSpacing) != null ? C1 : z, _ = (H1 = a.anchorFill) != null ? H1 : _, j = (D1 = a.anchorStroke) != null ? D1 : j, w = (F1 = a.anchorStrokeWidth) != null ? F1 : w, C = (P1 = a.anchorSize) != null ? P1 : C, x = (q1 = a.anchorCornerRadius) != null ? q1 : x, S = (L2 = a.keepRatio) != null ? L2 : S, F = (P2 = a.centeredScaling) != null ? P2 : F, T = (W1 = a.enabledAnchors) != null ? W1 : T, R = (n2 = a.flipEnabled) != null ? n2 : R, B = (t2 = a.ignoreStroke) != null ? t2 : B, A = (R1 = a.boundBoxFunc) != null ? R1 : A, L = (N1 = a.useSingleNodeRotation) != null ? N1 : L, I = (i2 = a.shouldOverdrawWholeArea) != null ? i2 : I), {
62500
+ return a != null && (s = (L = a.isCropper) != null ? L : s, n = ($ = a.hoverEnabled) != null ? $ : n, i = (P = a.hoverEnterFunc) != null ? P : i, o = (N = a.hoverLeaveFunc) != null ? N : o, l = (H = a.resizeEnabled) != null ? H : l, u = (V = a.rotateEnabled) != null ? V : u, d = (Q = a.rotationSnaps) != null ? Q : d, c = (h1 = a.rotationSnapTolerance) != null ? h1 : c, g = (c1 = a.rotateAnchorOffset) != null ? c1 : g, h = (s1 = a.rotateSize) != null ? s1 : h, p = (Y = a.rotateCornerRadius) != null ? Y : p, f = (e1 = a.borderEnabled) != null ? e1 : f, m = (f1 = a.borderStroke) != null ? f1 : m, v = (z1 = a.borderStrokeWidth) != null ? z1 : v, y = (p1 = a.borderDash) != null ? p1 : y, z = (C1 = a.borderSpacing) != null ? C1 : z, _ = (H1 = a.anchorFill) != null ? H1 : _, j = (D1 = a.anchorStroke) != null ? D1 : j, w = (F1 = a.anchorStrokeWidth) != null ? F1 : w, C = (P1 = a.anchorSize) != null ? P1 : C, x = (q1 = a.anchorCornerRadius) != null ? q1 : x, S = (L2 = a.keepRatio) != null ? L2 : S, F = (P2 = a.centeredScaling) != null ? P2 : F, T = (W1 = a.enabledAnchors) != null ? W1 : T, R = (n2 = a.flipEnabled) != null ? n2 : R, B = (t2 = a.ignoreStroke) != null ? t2 : B, A = (R1 = a.boundBoxFunc) != null ? R1 : A, I = (N1 = a.useSingleNodeRotation) != null ? N1 : I, M = (i2 = a.shouldOverdrawWholeArea) != null ? i2 : M), {
62458
62501
  isCropper: s,
62459
62502
  hoverEnabled: n,
62460
62503
  hoverEnterFunc: i,
@@ -62482,8 +62525,8 @@ class UE extends D2 {
62482
62525
  flipEnabled: R,
62483
62526
  ignoreStroke: B,
62484
62527
  boundBoxFunc: A,
62485
- useSingleNodeRotation: L,
62486
- shouldOverdrawWholeArea: I
62528
+ useSingleNodeRotation: I,
62529
+ shouldOverdrawWholeArea: M
62487
62530
  };
62488
62531
  }
62489
62532
  // eslint-disable-next-line max-lines-per-function
@@ -62653,9 +62696,9 @@ class UE extends D2 {
62653
62696
  e.transformByState(this._applyRotationForResult(f, { left: u, top: d, width: c, height: g }, h, o));
62654
62697
  }
62655
62698
  _getMovePoint(e, a, s) {
62656
- const { ancestorScaleX: n, ancestorScaleY: i } = this._scene, { left: o, top: l, width: u, height: d, angle: c } = s, g = o + u / 2, h = l + d / 2, p = new H(g, h), f = new H(e, a);
62699
+ const { ancestorScaleX: n, ancestorScaleY: i } = this._scene, { left: o, top: l, width: u, height: d, angle: c } = s, g = o + u / 2, h = l + d / 2, p = new G(g, h), f = new G(e, a);
62657
62700
  f.rotateByPoint(Q1(-c), p);
62658
- const m = new H(this._startOffsetX, this._startOffsetY);
62701
+ const m = new G(this._startOffsetX, this._startOffsetY);
62659
62702
  m.rotateByPoint(Q1(-c), p);
62660
62703
  const v = (f.x - m.x) / n, y = (f.y - m.y) / i;
62661
62704
  return {
@@ -62669,7 +62712,7 @@ class UE extends D2 {
62669
62712
  _applyRotationForResult(e, a, s, n = !1) {
62670
62713
  if (s === 0)
62671
62714
  return e;
62672
- const { left: i = 0, top: o = 0, width: l = 0, height: u = 0 } = e, { left: d = 0, top: c = 0, width: g = 0, height: h = 0 } = a, p = g / 2, f = h / 2, m = l / 2 + i - d, v = u / 2 + o - c, y = W4(new H(p, f), s, new H(i, o), new H(m, v));
62715
+ const { left: i = 0, top: o = 0, width: l = 0, height: u = 0 } = e, { left: d = 0, top: c = 0, width: g = 0, height: h = 0 } = a, p = g / 2, f = h / 2, m = l / 2 + i - d, v = u / 2 + o - c, y = W4(new G(p, f), s, new G(i, o), new G(m, v));
62673
62716
  return {
62674
62717
  width: this._smoothAccuracy(l, n),
62675
62718
  height: this._smoothAccuracy(u, n),
@@ -62849,7 +62892,7 @@ class UE extends D2 {
62849
62892
  if (l == null)
62850
62893
  return;
62851
62894
  l.disableObjectsEvent();
62852
- const u = l.getScrollXYInfoByViewport(H.create(i, o));
62895
+ const u = l.getScrollXYInfoByViewport(G.create(i, o));
62853
62896
  this._viewportScrollX = u.x, this._viewportScrollY = u.y;
62854
62897
  const d = this._getRotateAnchorCursor(
62855
62898
  "__SpreadsheetTransformerRotateLine__"
@@ -63246,10 +63289,10 @@ class UE extends D2 {
63246
63289
  width: 1,
63247
63290
  strokeWidth: v,
63248
63291
  stroke: m
63249
- }), { left: B, top: A } = this._getRotateAnchorPosition("__SpreadsheetTransformerRotate__", i, o, e), L = this._getRotateAnchorCursor(
63292
+ }), { left: B, top: A } = this._getRotateAnchorPosition("__SpreadsheetTransformerRotate__", i, o, e), I = this._getRotateAnchorCursor(
63250
63293
  "__SpreadsheetTransformerRotate__"
63251
63294
  /* ROTATE */
63252
- ), I = new I1(`__SpreadsheetTransformerRotate___${j}`, {
63295
+ ), M = new I1(`__SpreadsheetTransformerRotate___${j}`, {
63253
63296
  zIndex: j - 1,
63254
63297
  left: B,
63255
63298
  top: A,
@@ -63259,7 +63302,7 @@ class UE extends D2 {
63259
63302
  strokeWidth: v * 2,
63260
63303
  stroke: m
63261
63304
  });
63262
- this._attachEventToRotate(I, e), this._attachHover(I, L, b1.DEFAULT), C.push(R, I);
63305
+ this._attachEventToRotate(M, e), this._attachHover(M, I, b1.DEFAULT), C.push(R, M);
63263
63306
  }
63264
63307
  }
63265
63308
  if (d)
@@ -63321,7 +63364,7 @@ class GE extends D2 {
63321
63364
  k(this, "_height", 100);
63322
63365
  k(this, "_scaleX", 1);
63323
63366
  k(this, "_scaleY", 1);
63324
- k(this, "_transform", new A1());
63367
+ k(this, "_transform", new B1());
63325
63368
  k(this, "_evented", !0);
63326
63369
  k(this, "_layers", []);
63327
63370
  k(this, "_viewports", []);
@@ -63368,10 +63411,10 @@ class GE extends D2 {
63368
63411
  /** @hidden */
63369
63412
  k(this, "_inputManager");
63370
63413
  k(this, "_capturedObject", null);
63371
- if (this._parent = a, this._sceneKey = e, s && this.transformByState(s), this._parent.classType === Z.ENGINE) {
63414
+ if (this._parent = a, this._sceneKey = e, s && this.transformByState(s), this._parent.classType === K.ENGINE) {
63372
63415
  const i = this._parent;
63373
63416
  i.addScene(this), i.hasActiveScene() || i.setActiveScene(e), this._inputManager = new L4(this);
63374
- } else this._parent.classType === Z.SCENE_VIEWER && this._parent.addSubScene(this);
63417
+ } else this._parent.classType === K.SCENE_VIEWER && this._parent.addSubScene(this);
63375
63418
  this.disposeWithMe(
63376
63419
  K1(
63377
63420
  (n = this._parent) == null ? void 0 : n.onTransformChange$.subscribeEvent((i) => {
@@ -63381,7 +63424,7 @@ class GE extends D2 {
63381
63424
  );
63382
63425
  }
63383
63426
  get classType() {
63384
- return Z.SCENE;
63427
+ return K.SCENE;
63385
63428
  }
63386
63429
  get transform() {
63387
63430
  return this._transform;
@@ -63425,7 +63468,7 @@ class GE extends D2 {
63425
63468
  get ancestorScaleX() {
63426
63469
  const e = this.getParent();
63427
63470
  let a = 1;
63428
- return e.classType === Z.SCENE_VIEWER && (a = e.ancestorScaleX), this.scaleX * a;
63471
+ return e.classType === K.SCENE_VIEWER && (a = e.ancestorScaleX), this.scaleX * a;
63429
63472
  }
63430
63473
  /**
63431
63474
  * ancestorScaleY means this.scaleY * ancestorScaleY
@@ -63433,7 +63476,7 @@ class GE extends D2 {
63433
63476
  get ancestorScaleY() {
63434
63477
  const e = this.getParent();
63435
63478
  let a = 1;
63436
- return e.classType === Z.SCENE_VIEWER && (a = e.ancestorScaleY), this.scaleY * a;
63479
+ return e.classType === K.SCENE_VIEWER && (a = e.ancestorScaleY), this.scaleY * a;
63437
63480
  }
63438
63481
  getAncestorScale() {
63439
63482
  return {
@@ -63444,19 +63487,19 @@ class GE extends D2 {
63444
63487
  get ancestorLeft() {
63445
63488
  const e = this.getParent();
63446
63489
  let a = 0;
63447
- return e.classType === Z.SCENE_VIEWER && (a = e.ancestorLeft), a;
63490
+ return e.classType === K.SCENE_VIEWER && (a = e.ancestorLeft), a;
63448
63491
  }
63449
63492
  get ancestorTop() {
63450
63493
  const e = this.getParent();
63451
63494
  let a = 0;
63452
- return e.classType === Z.SCENE_VIEWER && (a = e.ancestorTop), a;
63495
+ return e.classType === K.SCENE_VIEWER && (a = e.ancestorTop), a;
63453
63496
  }
63454
63497
  set cursor(e) {
63455
63498
  this.setCursor(e);
63456
63499
  }
63457
63500
  attachControl(e) {
63458
63501
  var a;
63459
- if (this._parent.classType === Z.ENGINE)
63502
+ if (this._parent.classType === K.ENGINE)
63460
63503
  return (a = this._inputManager) == null || a.attachControl(e), this;
63461
63504
  }
63462
63505
  detachControl() {
@@ -63467,7 +63510,7 @@ class GE extends D2 {
63467
63510
  var a;
63468
63511
  return this._layers.forEach((s) => {
63469
63512
  s.makeDirty(e);
63470
- }), this._parent.classType === Z.SCENE_VIEWER && ((a = this._parent) == null || a.makeDirty(e)), this;
63513
+ }), this._parent.classType === K.SCENE_VIEWER && ((a = this._parent) == null || a.makeDirty(e)), this;
63471
63514
  }
63472
63515
  makeDirtyNoParent(e = !0) {
63473
63516
  return this._layers.forEach((a) => {
@@ -63581,11 +63624,11 @@ class GE extends D2 {
63581
63624
  return this._parent;
63582
63625
  }
63583
63626
  getEngine() {
63584
- if (this._parent.classType === Z.ENGINE)
63627
+ if (this._parent.classType === K.ENGINE)
63585
63628
  return this._parent;
63586
63629
  let e = this._parent;
63587
63630
  for (; e; ) {
63588
- if (e.classType === Z.ENGINE)
63631
+ if (e.classType === K.ENGINE)
63589
63632
  return e;
63590
63633
  e = e == null ? void 0 : e.getParent();
63591
63634
  }
@@ -63888,16 +63931,16 @@ class GE extends D2 {
63888
63931
  let a = this.getParent();
63889
63932
  const s = [];
63890
63933
  for (; a; )
63891
- (a.classType === Z.SCENE || a.classType === Z.SCENE_VIEWER) && s.push(a), a = (a == null ? void 0 : a.getParent) && (a == null ? void 0 : a.getParent());
63934
+ (a.classType === K.SCENE || a.classType === K.SCENE_VIEWER) && s.push(a), a = (a == null ? void 0 : a.getParent) && (a == null ? void 0 : a.getParent());
63892
63935
  s.reverse();
63893
63936
  for (const n of s)
63894
- if (n.classType === Z.SCENE) {
63937
+ if (n.classType === K.SCENE) {
63895
63938
  const o = n.getActiveViewportByCoord(e);
63896
63939
  if (o) {
63897
63940
  const l = o.viewportScrollX || 0, u = o.viewportScrollY || 0;
63898
63941
  e = e.addByPoint(l, u);
63899
63942
  }
63900
- } else n.classType === Z.SCENE_VIEWER && (e = n.transform.clone().invert().applyPoint(e));
63943
+ } else n.classType === K.SCENE_VIEWER && (e = n.transform.clone().invert().applyPoint(e));
63901
63944
  return e;
63902
63945
  }
63903
63946
  // transformToSceneCoord(coord: Vector2) {
@@ -63946,17 +63989,17 @@ class GE extends D2 {
63946
63989
  const o = this.getAllObjectsByOrderForPick().reverse(), l = o.length;
63947
63990
  for (let u = 0; u < l; u++) {
63948
63991
  const d = o[u];
63949
- if (!d.visible || !d.evented || d.classType === Z.GROUP)
63992
+ if (!d.visible || !d.evented || d.classType === K.GROUP)
63950
63993
  continue;
63951
63994
  const c = n;
63952
63995
  if (d.isHit(c)) {
63953
- if (d.classType === Z.SCENE_VIEWER) {
63996
+ if (d.classType === K.SCENE_VIEWER) {
63954
63997
  const g = d.pick(c);
63955
63998
  g ? i = g : i = d.getActiveSubScene();
63956
63999
  } else
63957
64000
  i = d;
63958
64001
  break;
63959
- } else if (d.classType === Z.SCENE_VIEWER && d.allowSelectedClipElement()) {
64002
+ } else if (d.classType === K.SCENE_VIEWER && d.allowSelectedClipElement()) {
63960
64003
  const g = d.pick(c);
63961
64004
  if (g) {
63962
64005
  i = g;
@@ -63964,7 +64007,7 @@ class GE extends D2 {
63964
64007
  }
63965
64008
  }
63966
64009
  }
63967
- return !i && this._parent.classType === Z.ENGINE ? this : i;
64010
+ return !i && this._parent.classType === K.ENGINE ? this : i;
63968
64011
  }
63969
64012
  // triggerKeyDown(evt: IKeyboardEvent) {
63970
64013
  // this.onKeyDown$.emitEvent(evt);
@@ -63980,71 +64023,71 @@ class GE extends D2 {
63980
64023
  // }
63981
64024
  triggerPointerUp(e) {
63982
64025
  var a, s;
63983
- return !((a = this.onPointerUp$.emitEvent(e)) != null && a.stopPropagation) && this._parent.classType === Z.SCENE_VIEWER ? ((s = this._parent) == null || s.triggerPointerUp(e), !1) : !0;
64026
+ return !((a = this.onPointerUp$.emitEvent(e)) != null && a.stopPropagation) && this._parent.classType === K.SCENE_VIEWER ? ((s = this._parent) == null || s.triggerPointerUp(e), !1) : !0;
63984
64027
  }
63985
64028
  triggerMouseWheel(e) {
63986
64029
  var a, s;
63987
- return !((a = this.onMouseWheel$.emitEvent(e)) != null && a.stopPropagation) && this._parent.classType === Z.SCENE_VIEWER ? ((s = this._parent) == null || s.triggerMouseWheel(e), !1) : !0;
64030
+ return !((a = this.onMouseWheel$.emitEvent(e)) != null && a.stopPropagation) && this._parent.classType === K.SCENE_VIEWER ? ((s = this._parent) == null || s.triggerMouseWheel(e), !1) : !0;
63988
64031
  }
63989
64032
  triggerSingleClick(e) {
63990
64033
  var a, s;
63991
- return !((a = this.onSingleClick$.emitEvent(e)) != null && a.stopPropagation) && this._parent.classType === Z.SCENE_VIEWER ? ((s = this._parent) == null || s.triggerSingleClick(e), !1) : !0;
64034
+ return !((a = this.onSingleClick$.emitEvent(e)) != null && a.stopPropagation) && this._parent.classType === K.SCENE_VIEWER ? ((s = this._parent) == null || s.triggerSingleClick(e), !1) : !0;
63992
64035
  }
63993
64036
  triggerClick(e) {
63994
64037
  var a, s;
63995
- return !((a = this.onClick$.emitEvent(e)) != null && a.stopPropagation) && this._parent.classType === Z.SCENE_VIEWER ? ((s = this._parent) == null || s.triggerClick(e), !1) : !0;
64038
+ return !((a = this.onClick$.emitEvent(e)) != null && a.stopPropagation) && this._parent.classType === K.SCENE_VIEWER ? ((s = this._parent) == null || s.triggerClick(e), !1) : !0;
63996
64039
  }
63997
64040
  triggerDblclick(e) {
63998
64041
  var a, s;
63999
- return !((a = this.onDblclick$.emitEvent(e)) != null && a.stopPropagation) && this._parent.classType === Z.SCENE_VIEWER ? ((s = this._parent) == null || s.triggerDblclick(e), !1) : !0;
64042
+ return !((a = this.onDblclick$.emitEvent(e)) != null && a.stopPropagation) && this._parent.classType === K.SCENE_VIEWER ? ((s = this._parent) == null || s.triggerDblclick(e), !1) : !0;
64000
64043
  }
64001
64044
  triggerTripleClick(e) {
64002
64045
  var a, s;
64003
- return !((a = this.onTripleClick$.emitEvent(e)) != null && a.stopPropagation) && this._parent.classType === Z.SCENE_VIEWER ? ((s = this._parent) == null || s.triggerTripleClick(e), !1) : !0;
64046
+ return !((a = this.onTripleClick$.emitEvent(e)) != null && a.stopPropagation) && this._parent.classType === K.SCENE_VIEWER ? ((s = this._parent) == null || s.triggerTripleClick(e), !1) : !0;
64004
64047
  }
64005
64048
  triggerPointerMove(e) {
64006
64049
  var a, s;
64007
- return !((a = this.onPointerMove$.emitEvent(e)) != null && a.stopPropagation) && this._parent.classType === Z.SCENE_VIEWER ? ((s = this._parent) == null || s.triggerPointerMove(e), !1) : !0;
64050
+ return !((a = this.onPointerMove$.emitEvent(e)) != null && a.stopPropagation) && this._parent.classType === K.SCENE_VIEWER ? ((s = this._parent) == null || s.triggerPointerMove(e), !1) : !0;
64008
64051
  }
64009
64052
  triggerPointerDown(e) {
64010
64053
  var a, s;
64011
- return !((a = this.onPointerDown$.emitEvent(e)) != null && a.stopPropagation) && this._parent.classType === Z.SCENE_VIEWER ? ((s = this._parent) == null || s.triggerPointerDown(e), !1) : !0;
64054
+ return !((a = this.onPointerDown$.emitEvent(e)) != null && a.stopPropagation) && this._parent.classType === K.SCENE_VIEWER ? ((s = this._parent) == null || s.triggerPointerDown(e), !1) : !0;
64012
64055
  }
64013
64056
  triggerPointerOut(e) {
64014
64057
  var a;
64015
- return this._parent.classType === Z.SCENE_VIEWER ? ((a = this._parent) == null || a.triggerPointerOut(e), !1) : !0;
64058
+ return this._parent.classType === K.SCENE_VIEWER ? ((a = this._parent) == null || a.triggerPointerOut(e), !1) : !0;
64016
64059
  }
64017
64060
  triggerPointerLeave(e) {
64018
64061
  var a, s;
64019
- return !((a = this.onPointerLeave$.emitEvent(e)) != null && a.stopPropagation) && this._parent.classType === Z.SCENE_VIEWER ? ((s = this._parent) == null || s.triggerPointerLeave(e), !1) : !0;
64062
+ return !((a = this.onPointerLeave$.emitEvent(e)) != null && a.stopPropagation) && this._parent.classType === K.SCENE_VIEWER ? ((s = this._parent) == null || s.triggerPointerLeave(e), !1) : !0;
64020
64063
  }
64021
64064
  triggerPointerOver(e) {
64022
64065
  var a;
64023
- return this._parent.classType === Z.SCENE_VIEWER ? ((a = this._parent) == null || a.triggerPointerOver(e), !1) : !0;
64066
+ return this._parent.classType === K.SCENE_VIEWER ? ((a = this._parent) == null || a.triggerPointerOver(e), !1) : !0;
64024
64067
  }
64025
64068
  triggerPointerCancel(e) {
64026
64069
  var a;
64027
- return this._parent.classType === Z.SCENE_VIEWER ? ((a = this._parent) == null || a.triggerPointerCancel(e), !1) : !0;
64070
+ return this._parent.classType === K.SCENE_VIEWER ? ((a = this._parent) == null || a.triggerPointerCancel(e), !1) : !0;
64028
64071
  }
64029
64072
  triggerPointerEnter(e) {
64030
64073
  var a, s;
64031
- return !((a = this.onPointerEnter$.emitEvent(e)) != null && a.stopPropagation) && this._parent.classType === Z.SCENE_VIEWER ? ((s = this._parent) == null || s.triggerPointerEnter(e), !1) : !0;
64074
+ return !((a = this.onPointerEnter$.emitEvent(e)) != null && a.stopPropagation) && this._parent.classType === K.SCENE_VIEWER ? ((s = this._parent) == null || s.triggerPointerEnter(e), !1) : !0;
64032
64075
  }
64033
64076
  triggerDragLeave(e) {
64034
64077
  var a, s;
64035
- return !((a = this.onDragLeave$.emitEvent(e)) != null && a.stopPropagation) && this._parent.classType === Z.SCENE_VIEWER ? ((s = this._parent) == null || s.triggerDragLeave(e), !1) : !0;
64078
+ return !((a = this.onDragLeave$.emitEvent(e)) != null && a.stopPropagation) && this._parent.classType === K.SCENE_VIEWER ? ((s = this._parent) == null || s.triggerDragLeave(e), !1) : !0;
64036
64079
  }
64037
64080
  triggerDragOver(e) {
64038
64081
  var a, s;
64039
- return !((a = this.onDragOver$.emitEvent(e)) != null && a.stopPropagation) && this._parent.classType === Z.SCENE_VIEWER ? ((s = this._parent) == null || s.triggerDragOver(e), !1) : !0;
64082
+ return !((a = this.onDragOver$.emitEvent(e)) != null && a.stopPropagation) && this._parent.classType === K.SCENE_VIEWER ? ((s = this._parent) == null || s.triggerDragOver(e), !1) : !0;
64040
64083
  }
64041
64084
  triggerDragEnter(e) {
64042
64085
  var a, s;
64043
- return !((a = this.onDragEnter$.emitEvent(e)) != null && a.stopPropagation) && this._parent.classType === Z.SCENE_VIEWER ? ((s = this._parent) == null || s.triggerDragEnter(e), !1) : !0;
64086
+ return !((a = this.onDragEnter$.emitEvent(e)) != null && a.stopPropagation) && this._parent.classType === K.SCENE_VIEWER ? ((s = this._parent) == null || s.triggerDragEnter(e), !1) : !0;
64044
64087
  }
64045
64088
  triggerDrop(e) {
64046
64089
  var a, s;
64047
- return !((a = this.onDrop$.emitEvent(e)) != null && a.stopPropagation) && this._parent.classType === Z.SCENE_VIEWER ? ((s = this._parent) == null || s.triggerDrop(e), !1) : !0;
64090
+ return !((a = this.onDrop$.emitEvent(e)) != null && a.stopPropagation) && this._parent.classType === K.SCENE_VIEWER ? ((s = this._parent) == null || s.triggerDrop(e), !1) : !0;
64048
64091
  }
64049
64092
  /**
64050
64093
  * Triggered when scale, resize of scene.
@@ -64052,7 +64095,7 @@ class GE extends D2 {
64052
64095
  *
64053
64096
  */
64054
64097
  _transformHandler() {
64055
- const e = A1.create().composeMatrix({
64098
+ const e = B1.create().composeMatrix({
64056
64099
  scaleX: this.scaleX,
64057
64100
  scaleY: this.scaleY
64058
64101
  });
@@ -64846,8 +64889,8 @@ class vA {
64846
64889
  return e !== void 0 && (this.scrollX = e), a !== void 0 && (this.scrollY = a), s !== void 0 && (this._preViewportScrollX = this.viewportScrollX, this.viewportScrollX = s), n !== void 0 && (this._preViewportScrollY = this.viewportScrollY, this.viewportScrollY = n), this;
64847
64890
  }
64848
64891
  getScrollBarTransForm() {
64849
- const t = A1.create();
64850
- return t.multiply(A1.create([1, 0, 0, 1, this._left, this._top])), t;
64892
+ const t = B1.create();
64893
+ return t.multiply(B1.create([1, 0, 0, 1, this._left, this._top])), t;
64851
64894
  }
64852
64895
  shouldIntoRender() {
64853
64896
  return !(this.isActive === !1 || this.width == null || this.height == null || this.width <= 1 || this.height <= 1);
@@ -64863,7 +64906,7 @@ class vA {
64863
64906
  if (!this.shouldIntoRender())
64864
64907
  return;
64865
64908
  const s = t || ((l = this._scene.getEngine()) == null ? void 0 : l.getCanvas().getContext()), n = this._scene.transform.clone();
64866
- n.multiply(A1.create([1, 0, 0, 1, -this.viewportScrollX || 0, -this.viewportScrollY || 0]));
64909
+ n.multiply(B1.create([1, 0, 0, 1, -this.viewportScrollX || 0, -this.viewportScrollY || 0]));
64867
64910
  const i = n.getMatrix();
64868
64911
  s.save(), this._clipViewport && (s.beginPath(), s.rect(this.left, this.top, this.width || 0, this.height || 0), s.clip()), s.transform(i[0], i[1], i[2], i[3], i[4], i[5]);
64869
64912
  const o = this.calcViewportInfo();
@@ -64911,7 +64954,7 @@ class vA {
64911
64954
  right: 0
64912
64955
  },
64913
64956
  shouldCacheUpdate: 0,
64914
- sceneTrans: A1.create([1, 0, 0, 1, 0, 0]),
64957
+ sceneTrans: B1.create([1, 0, 0, 1, 0, 0]),
64915
64958
  leftOrigin: 0,
64916
64959
  topOrigin: 0,
64917
64960
  bufferEdgeX: this.bufferEdgeX,
@@ -64926,7 +64969,7 @@ class vA {
64926
64969
  let e = this._width, a = this._height;
64927
64970
  const s = this._calcViewPortSize();
64928
64971
  e = s.width, a = s.height;
64929
- const n = this.left, i = (e || 0) + this.left, o = this.top, l = (a || 0) + this.top, u = this.transformVector2SceneCoord(H.FromArray([n, o])), d = this.transformVector2SceneCoord(H.FromArray([i, l])), c = {
64972
+ const n = this.left, i = (e || 0) + this.left, o = this.top, l = (a || 0) + this.top, u = this.transformVector2SceneCoord(G.FromArray([n, o])), d = this.transformVector2SceneCoord(G.FromArray([i, l])), c = {
64930
64973
  left: u.x,
64931
64974
  right: d.x,
64932
64975
  top: u.y,
@@ -64982,11 +65025,11 @@ class vA {
64982
65025
  */
64983
65026
  transformVector2SceneCoord(t) {
64984
65027
  const e = this.scene.transform.clone().invert(), a = this.getViewportScrollByScrollXY();
64985
- return e.applyPoint(t).add(H.FromArray([a.x, a.y]));
65028
+ return e.applyPoint(t).add(G.FromArray([a.x, a.y]));
64986
65029
  }
64987
65030
  getAbsoluteVector(t) {
64988
65031
  const e = this.scene.transform.clone(), a = this.getViewportScrollByScrollXY();
64989
- return e.applyPoint(t.subtract(H.FromArray([a.x, a.y])));
65032
+ return e.applyPoint(t.subtract(G.FromArray([a.x, a.y])));
64990
65033
  }
64991
65034
  /**
64992
65035
  * At f7140a7c11, only doc need this method.
@@ -65006,7 +65049,7 @@ class vA {
65006
65049
  x: a,
65007
65050
  y: s
65008
65051
  });
65009
- u && !u.isLimitedX && !u.isLimitedY && (t.preventDefault(), this._scene.getParent().classType === Z.SCENE_VIEWER && e.stopPropagation()), this._isWheelPreventDefaultX && this._isWheelPreventDefaultY && t.preventDefault(), this._scene.makeDirty(!0);
65052
+ u && !u.isLimitedX && !u.isLimitedY && (t.preventDefault(), this._scene.getParent().classType === K.SCENE_VIEWER && e.stopPropagation()), this._isWheelPreventDefaultX && this._isWheelPreventDefaultY && t.preventDefault(), this._scene.makeDirty(!0);
65010
65053
  }
65011
65054
  /**
65012
65055
  * Check if coord is in viewport.
@@ -65289,7 +65332,7 @@ class vA {
65289
65332
  if (!this._scrollBar)
65290
65333
  return;
65291
65334
  const e = this._scene.getParent();
65292
- e.classType === Z.SCENE_VIEWER ? this._scrollBar.render(t) : e.classType === Z.ENGINE && this._scrollBar.render(t);
65335
+ e.classType === K.SCENE_VIEWER ? this._scrollBar.render(t) : e.classType === K.ENGINE && this._scrollBar.render(t);
65293
65336
  }
65294
65337
  setViewportSize(t) {
65295
65338
  d1.isDefine(t == null ? void 0 : t.top) && (this.top = t.top), d1.isDefine(t == null ? void 0 : t.left) && (this.left = t.left), d1.isDefine(t == null ? void 0 : t.bottom) && (this.bottom = t.bottom), d1.isDefine(t == null ? void 0 : t.right) && (this.right = t.right), d1.isDefine(t == null ? void 0 : t.width) && (this.width = t == null ? void 0 : t.width, this._widthOrigin = t == null ? void 0 : t.width), d1.isDefine(t == null ? void 0 : t.height) && (this.height = t == null ? void 0 : t.height, this._heightOrigin = t == null ? void 0 : t.height);
@@ -67261,7 +67304,7 @@ export {
67261
67304
  a1 as PointerInput,
67262
67305
  Vx as RECT_OBJECT_ARRAY,
67263
67306
  Zx as REGULAR_POLYGON_OBJECT_ARRAY,
67264
- Z as RENDER_CLASS_TYPE,
67307
+ K as RENDER_CLASS_TYPE,
67265
67308
  Sx as RENDER_RAW_FORMULA_KEY,
67266
67309
  J5 as RICHTEXT_OBJECT_ARRAY,
67267
67310
  I1 as Rect,
@@ -67301,7 +67344,7 @@ export {
67301
67344
  Dy as TEXT_OBJECT_ARRAY,
67302
67345
  E1 as TRANSFORM_CHANGE_OBSERVABLE_TYPE,
67303
67346
  Z4 as Text,
67304
- A1 as Transform,
67347
+ B1 as Transform,
67305
67348
  hA as UNIVER_WATERMARK_LAYER_INDEX,
67306
67349
  cA as UNIVER_WATERMARK_STORAGE_KEY,
67307
67350
  yb as UniverPrintingContext,
@@ -67309,7 +67352,7 @@ export {
67309
67352
  bb as UniverRenderingContext,
67310
67353
  M7 as UniverRenderingContext2D,
67311
67354
  J1 as VERTICAL_ROTATE_ANGLE,
67312
- H as Vector2,
67355
+ G as Vector2,
67313
67356
  vA as Viewport,
67314
67357
  gA as WatermarkLayer,
67315
67358
  v2 as calculateRectRotate,