@mlightcad/data-model 1.2.7 → 1.2.8

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.
@@ -804,43 +804,43 @@ var po = { exports: {} };
804
804
  "warn",
805
805
  "error"
806
806
  ], h = {}, c = null;
807
- function g(R, U) {
808
- var D = R[U];
809
- if (typeof D.bind == "function")
810
- return D.bind(R);
807
+ function g(O, U) {
808
+ var F = O[U];
809
+ if (typeof F.bind == "function")
810
+ return F.bind(O);
811
811
  try {
812
- return Function.prototype.bind.call(D, R);
812
+ return Function.prototype.bind.call(F, O);
813
813
  } catch {
814
814
  return function() {
815
- return Function.prototype.apply.apply(D, [R, arguments]);
815
+ return Function.prototype.apply.apply(F, [O, arguments]);
816
816
  };
817
817
  }
818
818
  }
819
819
  function x() {
820
820
  console.log && (console.log.apply ? console.log.apply(console, arguments) : Function.prototype.apply.apply(console.log, [console, arguments])), console.trace && console.trace();
821
821
  }
822
- function f(R) {
823
- return R === "debug" && (R = "log"), typeof console === e ? !1 : R === "trace" && s ? x : console[R] !== void 0 ? g(console, R) : console.log !== void 0 ? g(console, "log") : t;
822
+ function f(O) {
823
+ return O === "debug" && (O = "log"), typeof console === e ? !1 : O === "trace" && s ? x : console[O] !== void 0 ? g(console, O) : console.log !== void 0 ? g(console, "log") : t;
824
824
  }
825
825
  function S() {
826
- for (var R = this.getLevel(), U = 0; U < o.length; U++) {
827
- var D = o[U];
828
- this[D] = U < R ? t : this.methodFactory(D, R, this.name);
826
+ for (var O = this.getLevel(), U = 0; U < o.length; U++) {
827
+ var F = o[U];
828
+ this[F] = U < O ? t : this.methodFactory(F, O, this.name);
829
829
  }
830
- if (this.log = this.debug, typeof console === e && R < this.levels.SILENT)
830
+ if (this.log = this.debug, typeof console === e && O < this.levels.SILENT)
831
831
  return "No console available for logging";
832
832
  }
833
- function b(R) {
833
+ function b(O) {
834
834
  return function() {
835
- typeof console !== e && (S.call(this), this[R].apply(this, arguments));
835
+ typeof console !== e && (S.call(this), this[O].apply(this, arguments));
836
836
  };
837
837
  }
838
- function k(R, U, D) {
839
- return f(R) || b.apply(this, arguments);
838
+ function k(O, U, F) {
839
+ return f(O) || b.apply(this, arguments);
840
840
  }
841
- function M(R, U) {
842
- var D = this, gt, ft, ut, W = "loglevel";
843
- typeof R == "string" ? W += ":" + R : typeof R == "symbol" && (W = void 0);
841
+ function M(O, U) {
842
+ var F = this, gt, ft, ut, W = "loglevel";
843
+ typeof O == "string" ? W += ":" + O : typeof O == "symbol" && (W = void 0);
844
844
  function mt(xt) {
845
845
  var Nt = (o[xt] || "silent").toUpperCase();
846
846
  if (!(typeof window === e || !W)) {
@@ -870,7 +870,7 @@ var po = { exports: {} };
870
870
  )[1]);
871
871
  } catch {
872
872
  }
873
- return D.levels[xt] === void 0 && (xt = void 0), xt;
873
+ return F.levels[xt] === void 0 && (xt = void 0), xt;
874
874
  }
875
875
  }
876
876
  function Wt() {
@@ -887,51 +887,51 @@ var po = { exports: {} };
887
887
  }
888
888
  function Ht(xt) {
889
889
  var Nt = xt;
890
- if (typeof Nt == "string" && D.levels[Nt.toUpperCase()] !== void 0 && (Nt = D.levels[Nt.toUpperCase()]), typeof Nt == "number" && Nt >= 0 && Nt <= D.levels.SILENT)
890
+ if (typeof Nt == "string" && F.levels[Nt.toUpperCase()] !== void 0 && (Nt = F.levels[Nt.toUpperCase()]), typeof Nt == "number" && Nt >= 0 && Nt <= F.levels.SILENT)
891
891
  return Nt;
892
892
  throw new TypeError("log.setLevel() called with invalid level: " + xt);
893
893
  }
894
- D.name = R, D.levels = {
894
+ F.name = O, F.levels = {
895
895
  TRACE: 0,
896
896
  DEBUG: 1,
897
897
  INFO: 2,
898
898
  WARN: 3,
899
899
  ERROR: 4,
900
900
  SILENT: 5
901
- }, D.methodFactory = U || k, D.getLevel = function() {
901
+ }, F.methodFactory = U || k, F.getLevel = function() {
902
902
  return ut ?? ft ?? gt;
903
- }, D.setLevel = function(xt, Nt) {
904
- return ut = Ht(xt), Nt !== !1 && mt(ut), S.call(D);
905
- }, D.setDefaultLevel = function(xt) {
906
- ft = Ht(xt), lt() || D.setLevel(xt, !1);
907
- }, D.resetLevel = function() {
908
- ut = null, Wt(), S.call(D);
909
- }, D.enableAll = function(xt) {
910
- D.setLevel(D.levels.TRACE, xt);
911
- }, D.disableAll = function(xt) {
912
- D.setLevel(D.levels.SILENT, xt);
913
- }, D.rebuild = function() {
914
- if (c !== D && (gt = Ht(c.getLevel())), S.call(D), c === D)
903
+ }, F.setLevel = function(xt, Nt) {
904
+ return ut = Ht(xt), Nt !== !1 && mt(ut), S.call(F);
905
+ }, F.setDefaultLevel = function(xt) {
906
+ ft = Ht(xt), lt() || F.setLevel(xt, !1);
907
+ }, F.resetLevel = function() {
908
+ ut = null, Wt(), S.call(F);
909
+ }, F.enableAll = function(xt) {
910
+ F.setLevel(F.levels.TRACE, xt);
911
+ }, F.disableAll = function(xt) {
912
+ F.setLevel(F.levels.SILENT, xt);
913
+ }, F.rebuild = function() {
914
+ if (c !== F && (gt = Ht(c.getLevel())), S.call(F), c === F)
915
915
  for (var xt in h)
916
916
  h[xt].rebuild();
917
917
  }, gt = Ht(
918
918
  c ? c.getLevel() : "WARN"
919
919
  );
920
920
  var Ut = lt();
921
- Ut != null && (ut = Ht(Ut)), S.call(D);
921
+ Ut != null && (ut = Ht(Ut)), S.call(F);
922
922
  }
923
- c = new M(), c.getLogger = function(R) {
924
- if (typeof R != "symbol" && typeof R != "string" || R === "")
923
+ c = new M(), c.getLogger = function(O) {
924
+ if (typeof O != "symbol" && typeof O != "string" || O === "")
925
925
  throw new TypeError("You must supply a name when creating a logger.");
926
- var U = h[R];
927
- return U || (U = h[R] = new M(
928
- R,
926
+ var U = h[O];
927
+ return U || (U = h[O] = new M(
928
+ O,
929
929
  c.methodFactory
930
930
  )), U;
931
931
  };
932
- var z = typeof window !== e ? window.log : void 0;
932
+ var R = typeof window !== e ? window.log : void 0;
933
933
  return c.noConflict = function() {
934
- return typeof window !== e && window.log === c && (window.log = z), c;
934
+ return typeof window !== e && window.log === c && (window.log = R), c;
935
935
  }, c.getLoggers = function() {
936
936
  return h;
937
937
  }, c.default = c, c;
@@ -1627,7 +1627,7 @@ yh.Off;
1627
1627
  function Tt(a, t, e) {
1628
1628
  return a.code === t && (e == null || a.value === e);
1629
1629
  }
1630
- function Dt(a) {
1630
+ function Ft(a) {
1631
1631
  let t = {};
1632
1632
  a.rewind();
1633
1633
  let e = a.next(), s = e.code;
@@ -1647,10 +1647,10 @@ function Et(a, t) {
1647
1647
  return x;
1648
1648
  }, [{}]), c = !1, g = h.length - 1;
1649
1649
  for (; !Tt(e, 0, "EOF"); ) {
1650
- let x = function(z, R, U) {
1651
- return z.find((D, gt) => {
1650
+ let x = function(R, O, U) {
1651
+ return R.find((F, gt) => {
1652
1652
  var ft;
1653
- return gt >= U && ((ft = D[R]) == null ? void 0 : ft.length);
1653
+ return gt >= U && ((ft = F[O]) == null ? void 0 : ft.length);
1654
1654
  });
1655
1655
  }(h, e.code, g), f = x == null ? void 0 : x[e.code].at(-1);
1656
1656
  if (!x || !f) {
@@ -1664,15 +1664,15 @@ function Et(a, t) {
1664
1664
  break;
1665
1665
  }
1666
1666
  if (S) {
1667
- let [z, R] = function(U, D) {
1668
- let gt = D.split("."), ft = U;
1667
+ let [R, O] = function(U, F) {
1668
+ let gt = F.split("."), ft = U;
1669
1669
  for (let ut = 0; ut < gt.length - 1; ++ut) {
1670
1670
  let W = gt[ut];
1671
1671
  Object.hasOwn(ft, W) || (ft[W] = {}), ft = ft[W];
1672
1672
  }
1673
1673
  return [ft, gt.at(-1)];
1674
1674
  }(o, S);
1675
- k ? (Object.hasOwn(z, R) || (z[R] = []), z[R].push(M)) : z[R] = M;
1675
+ k ? (Object.hasOwn(R, O) || (R[O] = []), R[O].push(M)) : R[O] = M;
1676
1676
  }
1677
1677
  f.pushContext && (g -= 1), c = !0, e = s.next();
1678
1678
  }
@@ -1683,7 +1683,7 @@ function y({ value: a }) {
1683
1683
  return a;
1684
1684
  }
1685
1685
  function Z(a, t) {
1686
- return Dt(t);
1686
+ return Ft(t);
1687
1687
  }
1688
1688
  function Kt({ value: a }) {
1689
1689
  return !!a;
@@ -1715,16 +1715,16 @@ function yo(a, t) {
1715
1715
  h.push({ name: "handle", type: vr(a.code), value: a.value });
1716
1716
  break;
1717
1717
  case 1010:
1718
- h.push({ type: vr(a.code), value: Dt(t) });
1718
+ h.push({ type: vr(a.code), value: Ft(t) });
1719
1719
  break;
1720
1720
  case 1011:
1721
- h.push({ name: "worldSpacePosition", type: vr(a.code), value: Dt(t) });
1721
+ h.push({ name: "worldSpacePosition", type: vr(a.code), value: Ft(t) });
1722
1722
  break;
1723
1723
  case 1012:
1724
- h.push({ name: "worldSpaceDisplacement", type: vr(a.code), value: Dt(t) });
1724
+ h.push({ name: "worldSpaceDisplacement", type: vr(a.code), value: Ft(t) });
1725
1725
  break;
1726
1726
  case 1013:
1727
- h.push({ name: "worldSpaceDirection", type: vr(a.code), value: Dt(t) });
1727
+ h.push({ name: "worldSpaceDirection", type: vr(a.code), value: Ft(t) });
1728
1728
  break;
1729
1729
  case 1041:
1730
1730
  h.push({ name: "distance", type: vr(a.code), value: a.value });
@@ -1921,25 +1921,25 @@ let Es = class {
1921
1921
  o.name = h.value;
1922
1922
  break;
1923
1923
  case 10:
1924
- o.definitionPoint = Dt(c);
1924
+ o.definitionPoint = Ft(c);
1925
1925
  break;
1926
1926
  case 11:
1927
- o.textPoint = Dt(c);
1927
+ o.textPoint = Ft(c);
1928
1928
  break;
1929
1929
  case 12:
1930
- o.insertionPoint = Dt(c);
1930
+ o.insertionPoint = Ft(c);
1931
1931
  break;
1932
1932
  case 13:
1933
- o.subDefinitionPoint1 = Dt(c);
1933
+ o.subDefinitionPoint1 = Ft(c);
1934
1934
  break;
1935
1935
  case 14:
1936
- o.subDefinitionPoint2 = Dt(c);
1936
+ o.subDefinitionPoint2 = Ft(c);
1937
1937
  break;
1938
1938
  case 15:
1939
- o.centerPoint = Dt(c);
1939
+ o.centerPoint = Ft(c);
1940
1940
  break;
1941
1941
  case 16:
1942
- o.arcPoint = Dt(c);
1942
+ o.arcPoint = Ft(c);
1943
1943
  break;
1944
1944
  case 70:
1945
1945
  o.dimensionType = h.value;
@@ -1975,7 +1975,7 @@ let Es = class {
1975
1975
  o.ocsRotation = h.value;
1976
1976
  break;
1977
1977
  case 210:
1978
- o.extrusionDirection = Dt(c);
1978
+ o.extrusionDirection = Ft(c);
1979
1979
  break;
1980
1980
  case 3:
1981
1981
  o.styleName = h.value;
@@ -2004,16 +2004,16 @@ class No {
2004
2004
  }
2005
2005
  Co(No, "ForEntityName", "ELLIPSE");
2006
2006
  let Lo = [{ code: 330, name: "sourceBoundaryObjects", parser: y, isMultiple: !0 }, { code: 97, name: "numberOfSourceBoundaryObjects", parser: y }], Ch = [{ code: 11, name: "end", parser: Z }, { code: 10, name: "start", parser: Z }], Nh = [{ code: 73, name: "isCCW", parser: Kt }, { code: 51, name: "endAngle", parser: y }, { code: 50, name: "startAngle", parser: y }, { code: 40, name: "radius", parser: y }, { code: 10, name: "center", parser: Z }], Lh = [{ code: 73, name: "isCCW", parser: Kt }, { code: 51, name: "endAngle", parser: y }, { code: 50, name: "startAngle", parser: y }, { code: 40, name: "lengthOfMinorAxis", parser: y }, { code: 11, name: "end", parser: Z }, { code: 10, name: "center", parser: Z }], zh = [{ code: 13, name: "endTangent", parser: Z }, { code: 12, name: "startTangent", parser: Z }, { code: 11, name: "fitDatum", isMultiple: !0, parser: Z }, { code: 97, name: "numberOfFitData", parser: y }, { code: 10, name: "controlPoints", isMultiple: !0, parser(a, t) {
2007
- let e = { ...Dt(t), weight: 1 };
2007
+ let e = { ...Ft(t), weight: 1 };
2008
2008
  return (a = t.next()).code === 42 ? e.weight = a.value : t.rewind(), e;
2009
2009
  } }, { code: 40, name: "knots", isMultiple: !0, parser: y }, { code: 96, name: "numberOfControlPoints", parser: y }, { code: 95, name: "numberOfKnots", parser: y }, { code: 74, name: "isPeriodic", parser: Kt }, { code: 73, name: "splineFlag", parser: y }, { code: 94, name: "degree", parser: y }], Oh = { [ys.Line]: Ch, [ys.Circular]: Nh, [ys.Elliptic]: Lh, [ys.Spline]: zh }, Rh = [...Lo, { code: 72, name: "edges", parser(a, t) {
2010
2010
  let e = { type: a.value }, s = Et(Oh[e.type]);
2011
2011
  if (!s) throw Error(`Invalid edge type ${e.type}`);
2012
2012
  return s(a = t.next(), t, e), e;
2013
2013
  }, isMultiple: !0 }, { code: 93, name: "numberOfEdges", parser: y }], Bh = [...Lo, { code: 10, name: "vertices", parser(a, t) {
2014
- let e = { ...Dt(t), bulge: 0 };
2014
+ let e = { ...Ft(t), bulge: 0 };
2015
2015
  return (a = t.next()).code === 42 ? e.bulge = a.value : t.rewind(), e;
2016
- }, isMultiple: !0 }, { code: 93, name: "numberOfVertices", parser: y }, { code: 73, name: "isClosed", parser: Kt }, { code: 72, name: "hasBulge", parser: Kt }], Dh = [{ code: 49, name: "dashLengths", parser: y, isMultiple: !0 }, { code: 79, name: "numberOfDashLengths", parser: y }, { code: 45, name: "offset", parser: Ka }, { code: 43, name: "base", parser: Ka }, { code: 53, name: "angle", parser: y }];
2016
+ }, isMultiple: !0 }, { code: 93, name: "numberOfVertices", parser: y }, { code: 73, name: "isClosed", parser: Kt }, { code: 72, name: "hasBulge", parser: Kt }], Fh = [{ code: 49, name: "dashLengths", parser: y, isMultiple: !0 }, { code: 79, name: "numberOfDashLengths", parser: y }, { code: 45, name: "offset", parser: Ka }, { code: 43, name: "base", parser: Ka }, { code: 53, name: "angle", parser: y }];
2017
2017
  function Ka(a, t) {
2018
2018
  let e = a.code + 1, s = { x: a.value, y: 1 };
2019
2019
  return (a = t.next()).code === e ? s.y = a.value : t.rewind(), s;
@@ -2021,9 +2021,9 @@ function Ka(a, t) {
2021
2021
  function zo(a, t, e) {
2022
2022
  return t in a ? Object.defineProperty(a, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : a[t] = e, a;
2023
2023
  }
2024
- let Fh = { extrusionDirection: { x: 0, y: 0, z: 1 }, gradientRotation: 0, colorTint: 0 }, Vh = [{ code: 470 }, { code: 463 }, { code: 462, name: "colorTint", parser: y }, { code: 461, name: "gradientDefinition", parser: y }, { code: 460, name: "gradientRotation", parser: y }, { code: 453, name: "numberOfColors", parser: y }, { code: 452, name: "gradientColorFlag", parser: y }, { code: 451 }, { code: 450, name: "gradientFlag", parser: y }, { code: 10, name: "seedPoints", parser: Z, isMultiple: !0 }, { code: 99 }, { code: 11, name: "offsetVector", parser: Z }, { code: 98, name: "numberOfSeedPoints", parser: y }, { code: 47, name: "pixelSize", parser: y }, { code: 53, name: "definitionLines", parser: function(a, t) {
2024
+ let Dh = { extrusionDirection: { x: 0, y: 0, z: 1 }, gradientRotation: 0, colorTint: 0 }, Vh = [{ code: 470 }, { code: 463 }, { code: 462, name: "colorTint", parser: y }, { code: 461, name: "gradientDefinition", parser: y }, { code: 460, name: "gradientRotation", parser: y }, { code: 453, name: "numberOfColors", parser: y }, { code: 452, name: "gradientColorFlag", parser: y }, { code: 451 }, { code: 450, name: "gradientFlag", parser: y }, { code: 10, name: "seedPoints", parser: Z, isMultiple: !0 }, { code: 99 }, { code: 11, name: "offsetVector", parser: Z }, { code: 98, name: "numberOfSeedPoints", parser: y }, { code: 47, name: "pixelSize", parser: y }, { code: 53, name: "definitionLines", parser: function(a, t) {
2025
2025
  let e = {};
2026
- return Et(Dh)(a, t, e), e;
2026
+ return Et(Fh)(a, t, e), e;
2027
2027
  }, isMultiple: !0 }, { code: 78, name: "numberOfDefinitionLines", parser: y }, { code: 77, name: "isDouble", parser: Kt }, { code: 73, name: "isAnnotated", parser: Kt }, { code: 41, name: "patternScale", parser: y }, { code: 52, name: "patternAngle", parser: y }, { code: 76, name: "patternType", parser: y }, { code: 75, name: "hatchStyle", parser: y }, { code: 92, name: "boundaryPaths", parser: function(a, t) {
2028
2028
  let e = { boundaryPathTypeFlag: a.value }, s = e.boundaryPathTypeFlag & vh.Polyline;
2029
2029
  return a = t.next(), s ? Et(Bh)(a, t, e) : Et(Rh)(a, t, e), e;
@@ -2034,7 +2034,7 @@ class Oo {
2034
2034
  return this.parser(e, t, s), s;
2035
2035
  }
2036
2036
  constructor() {
2037
- zo(this, "parser", Et(Vh, Fh));
2037
+ zo(this, "parser", Et(Vh, Dh));
2038
2038
  }
2039
2039
  }
2040
2040
  zo(Oo, "ForEntityName", "HATCH");
@@ -2059,7 +2059,7 @@ function Bo(a, t, e) {
2059
2059
  }
2060
2060
  Ro(Ki, "ForEntityName", "IMAGE");
2061
2061
  let Gh = { xScale: 1, yScale: 1, zScale: 1, rotation: 0, columnCount: 0, rowCount: 0, columnSpacing: 0, rowSpacing: 0, extrusionDirection: { x: 0, y: 0, z: 1 } }, Wh = [{ code: 210, name: "extrusionDirection", parser: Z }, { code: 45, name: "rowSpacing", parser: y }, { code: 44, name: "columnSpacing", parser: y }, { code: 71, name: "rowCount", parser: y }, { code: 70, name: "columnCount", parser: y }, { code: 50, name: "rotation", parser: y }, { code: 43, name: "zScale", parser: y }, { code: 42, name: "yScale", parser: y }, { code: 41, name: "xScale", parser: y }, { code: 10, name: "insertionPoint", parser: Z }, { code: 2, name: "name", parser: y }, { code: 66, name: "isVariableAttributes", parser: Kt }, { code: 100, name: "subclassMarker", parser: y }, ...re];
2062
- class Do {
2062
+ class Fo {
2063
2063
  parseEntity(t, e) {
2064
2064
  let s = {};
2065
2065
  return this.parser(e, t, s), s;
@@ -2068,10 +2068,10 @@ class Do {
2068
2068
  Bo(this, "parser", Et(Wh, Gh));
2069
2069
  }
2070
2070
  }
2071
- function Fo(a, t, e) {
2071
+ function Do(a, t, e) {
2072
2072
  return t in a ? Object.defineProperty(a, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : a[t] = e, a;
2073
2073
  }
2074
- Bo(Do, "ForEntityName", "INSERT");
2074
+ Bo(Fo, "ForEntityName", "INSERT");
2075
2075
  let Hh = { isArrowheadEnabled: !0 }, qh = [{ code: 213, name: "offsetFromAnnotation", parser: Z }, { code: 212, name: "offsetFromBlock", parser: Z }, { code: 211, name: "horizontalDirection", parser: Z }, { code: 210, name: "normal", parser: Z }, { code: 340, name: "associatedAnnotation", parser: y }, { code: 77, name: "byBlockColor", parser: y }, { code: 10, name: "vertices", parser: Z, isMultiple: !0 }, { code: 76, name: "numberOfVertices", parser: y }, { code: 41, name: "textWidth", parser: y }, { code: 40, name: "textHeight", parser: y }, { code: 75, name: "isHooklineExists", parser: Kt }, { code: 74, name: "isHooklineSameDirection", parser: Kt }, { code: 73, name: "leaderCreationFlag", parser: y }, { code: 72, name: "isSpline", parser: Kt }, { code: 71, name: "isArrowheadEnabled", parser: Kt }, { code: 3, name: "styleName", parser: y }, { code: 100, name: "subclassMarker", parser: y }, ...re];
2076
2076
  class Vo {
2077
2077
  parseEntity(t, e) {
@@ -2079,10 +2079,10 @@ class Vo {
2079
2079
  return this.parser(e, t, s), s;
2080
2080
  }
2081
2081
  constructor() {
2082
- Fo(this, "parser", Et(qh, Hh));
2082
+ Do(this, "parser", Et(qh, Hh));
2083
2083
  }
2084
2084
  }
2085
- Fo(Vo, "ForEntityName", "LEADER");
2085
+ Do(Vo, "ForEntityName", "LEADER");
2086
2086
  (fr = {})[fr.TextAnnotation = 0] = "TextAnnotation", fr[fr.ToleranceAnnotation = 1] = "ToleranceAnnotation", fr[fr.BlockReferenceAnnotation = 2] = "BlockReferenceAnnotation", fr[fr.NoAnnotation = 3] = "NoAnnotation";
2087
2087
  function Uo(a, t, e) {
2088
2088
  return t in a ? Object.defineProperty(a, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : a[t] = e, a;
@@ -2269,10 +2269,10 @@ class Cs {
2269
2269
  s.handle = e.value, e = t.next();
2270
2270
  break;
2271
2271
  case 10:
2272
- s.startPoint = Nr(Dt(t)), e = t.lastReadGroup;
2272
+ s.startPoint = Nr(Ft(t)), e = t.lastReadGroup;
2273
2273
  break;
2274
2274
  case 11:
2275
- s.directionVector = Nr(Dt(t)), e = t.lastReadGroup;
2275
+ s.directionVector = Nr(Ft(t)), e = t.lastReadGroup;
2276
2276
  break;
2277
2277
  case 90:
2278
2278
  s.tableValue = e.value, e = t.next();
@@ -2445,7 +2445,7 @@ class Ns {
2445
2445
  o.subclassMarker = c.value;
2446
2446
  break;
2447
2447
  case 10:
2448
- o.viewportCenter = Nr(Dt(h));
2448
+ o.viewportCenter = Nr(Ft(h));
2449
2449
  break;
2450
2450
  case 40:
2451
2451
  o.width = c.value;
@@ -2460,22 +2460,22 @@ class Ns {
2460
2460
  o.viewportId = c.value;
2461
2461
  break;
2462
2462
  case 12:
2463
- o.displayCenter = Dt(h);
2463
+ o.displayCenter = Ft(h);
2464
2464
  break;
2465
2465
  case 13:
2466
- o.snapBase = Dt(h);
2466
+ o.snapBase = Ft(h);
2467
2467
  break;
2468
2468
  case 14:
2469
- o.snapSpacing = Dt(h);
2469
+ o.snapSpacing = Ft(h);
2470
2470
  break;
2471
2471
  case 15:
2472
- o.gridSpacing = Dt(h);
2472
+ o.gridSpacing = Ft(h);
2473
2473
  break;
2474
2474
  case 16:
2475
- o.viewDirection = Nr(Dt(h));
2475
+ o.viewDirection = Nr(Ft(h));
2476
2476
  break;
2477
2477
  case 17:
2478
- o.targetPoint = Nr(Dt(h));
2478
+ o.targetPoint = Nr(Ft(h));
2479
2479
  break;
2480
2480
  case 42:
2481
2481
  o.perspectiveLensLength = c.value;
@@ -2520,13 +2520,13 @@ class Ns {
2520
2520
  o.ucsPerViewport = c.value;
2521
2521
  break;
2522
2522
  case 110:
2523
- o.ucsOrigin = Nr(Dt(h));
2523
+ o.ucsOrigin = Nr(Ft(h));
2524
2524
  break;
2525
2525
  case 111:
2526
- o.ucsXAxis = Nr(Dt(h));
2526
+ o.ucsXAxis = Nr(Ft(h));
2527
2527
  break;
2528
2528
  case 112:
2529
- o.ucsYAxis = Nr(Dt(h));
2529
+ o.ucsYAxis = Nr(Ft(h));
2530
2530
  break;
2531
2531
  case 345:
2532
2532
  o.ucsId = c.value;
@@ -2624,7 +2624,7 @@ class ll {
2624
2624
  }
2625
2625
  }
2626
2626
  ol(ll, "ForEntityName", "ATTRIB");
2627
- let yu = Object.fromEntries([wo, Eo, ll, To, Es, No, Ki, Do, Vo, jo, Ms, Wo, qo, $o, Qo, tl, rl, sl, Cs, Io, Oo, Ns, Ls, al].map((a) => [a.ForEntityName, new a()]));
2627
+ let yu = Object.fromEntries([wo, Eo, ll, To, Es, No, Ki, Fo, Vo, jo, Ms, Wo, qo, $o, Qo, tl, rl, sl, Cs, Io, Oo, Ns, Ls, al].map((a) => [a.ForEntityName, new a()]));
2628
2628
  function hl(a, t) {
2629
2629
  let e = [];
2630
2630
  for (; !Tt(a, 0, "EOF"); ) {
@@ -2683,7 +2683,7 @@ function bu(a, t) {
2683
2683
  e.layer = a.value;
2684
2684
  break;
2685
2685
  case 10:
2686
- e.position = Dt(t);
2686
+ e.position = Ft(t);
2687
2687
  break;
2688
2688
  case 67:
2689
2689
  e.paperSpace = !!a.value && a.value == 1;
@@ -2705,7 +2705,7 @@ function bu(a, t) {
2705
2705
  }
2706
2706
  function wu(a, t) {
2707
2707
  let e = null, s = {};
2708
- for (; !Tt(a, 0, "EOF") && !Tt(a, 0, "ENDSEC"); ) a.code === 9 ? e = a.value : a.code === 10 ? s[e] = Dt(t) : s[e] = a.value, a = t.next();
2708
+ for (; !Tt(a, 0, "EOF") && !Tt(a, 0, "ENDSEC"); ) a.code === 9 ? e = a.value : a.code === 10 ? s[e] = Ft(t) : s[e] = a.value, a = t.next();
2709
2709
  return s;
2710
2710
  }
2711
2711
  let Pu = [{ code: 330, name: "imageDefReactorIdSoft", isMultiple: !0, parser: y }, { code: 90, name: "version", parser: y }, { code: 1, name: "fileName", parser: y }, { code: 10, name: "size", parser: Z }, { code: 11, name: "sizeOfOnePixel", parser: Z }, { code: 280, name: "isLoaded", parser: y }, { code: 281, name: "resolutionUnits", parser: y }, { code: 100, name: "subclassMarker", parser: y }], ul = [{ code: 333, name: "shadePlotId", parser: y }, { code: 149, name: "imageOriginY", parser: y }, { code: 148, name: "imageOriginX", parser: y }, { code: 147, name: "scaleFactor", parser: y }, { code: 78, name: "shadePlotCustomDPI", parser: y }, { code: 77, name: "shadePlotResolution", parser: y }, { code: 76, name: "shadePlotMode", parser: y }, { code: 75, name: "standardScaleType", parser: y }, { code: 7, name: "currentStyleSheet", parser: y }, { code: 74, name: "plotType", parser: y }, { code: 73, name: "plotRotation", parser: y }, { code: 72, name: "paperUnit", parser: y }, { code: 70, name: "layoutFlag", parser: y }, { code: 143, name: "printScaleDenominator", parser: y }, { code: 142, name: "printScaleNominator", parser: y }, { code: 141, name: "windowAreaYMax", parser: y }, { code: 140, name: "windowAreaYMin", parser: y }, { code: 49, name: "windowAreaXMax", parser: y }, { code: 48, name: "windowAreaXMin", parser: y }, { code: 47, name: "plotOriginY", parser: y }, { code: 46, name: "plotOriginX", parser: y }, { code: 45, name: "paperHeight", parser: y }, { code: 44, name: "paperWidth", parser: y }, { code: 43, name: "marginTop", parser: y }, { code: 42, name: "marginRight", parser: y }, { code: 41, name: "marginBottom", parser: y }, { code: 40, name: "marginLeft", parser: y }, { code: 6, name: "plotViewName", parser: y }, { code: 4, name: "paperSize", parser: y }, { code: 2, name: "configName", parser: y }, { code: 1, name: "pageSetupName", parser: y }, { code: 100, name: "subclassMarker", parser: y }], Au = [{ code: 333, name: "shadePlotId", parser: y }, { code: 346, name: "orthographicUcsId", parser: y }, { code: 345, name: "namedUcsId", parser: y }, { code: 331, name: "viewportId", parser: y }, { code: 330, name: "paperSpaceTableId", parser: y }, { code: 76, name: "orthographicType", parser: y }, { code: 17, name: "ucsYAxis", parser: Z }, { code: 16, name: "ucsXAxis", parser: Z }, { code: 13, name: "ucsOrigin", parser: Z }, { code: 146, name: "elevation", parser: y }, { code: 15, name: "maxExtent", parser: Z }, { code: 14, name: "minExtent", parser: Z }, { code: 12, name: "insertionBase", parser: Z }, { code: 11, name: "maxLimit", parser: Z }, { code: 10, name: "minLimit", parser: Z }, { code: 71, name: "tabOrder", parser: y }, { code: 70, name: "controlFlag", parser: y }, { code: 1, name: "layoutName", parser: y }, { code: 100, name: "subclassMarker", parser: y }, ...ul], Su = [{ code: 330, name: "ownerObjectId", parser: y }, { code: 102 }, { code: 360, name: "ownerDictionaryIdHard", parser: y }, { code: 102 }, { code: 102 }, { code: 330, name: "ownerDictionaryIdSoft", parser: y }, { code: 102 }, { code: 102 }, { code: 102 }, { code: 5, name: "handle", parser: y }];
@@ -3018,7 +3018,7 @@ function cd(a) {
3018
3018
  function dd(a) {
3019
3019
  return a == 1 || a == 2 || a == 3 || a == 8 || a == 9 || a == 10 || a == 21;
3020
3020
  }
3021
- var Du = /* @__PURE__ */ ((a) => (a.ClosedFilled = "", a.Dot = "_DOT", a.DotSmall = "_DOTSMALL", a.DotBlank = "_DOTBLANK", a.Origin = "_ORIGIN", a.Origin2 = "_ORIGIN2", a.Open = "_OPEN", a.Open90 = "_OPEN90", a.Open30 = "_OPEN30", a.Closed = "_CLOSED", a.Small = "_SMALL", a.None = "_NONE", a.Oblique = "_OBLIQUE", a.BoxFilled = "_BOXFILLED", a.Box = "_BOXBLANK", a.ClosedBlank = "_CLOSEDBLANK", a.DatumBlank = "_DATUMBLANK", a.DatumFilled = "_DATUMFILLED", a.Integral = "_INTEGRAL", a.ArchTick = "_ARCHTICK", a))(Du || {});
3021
+ var Fu = /* @__PURE__ */ ((a) => (a.ClosedFilled = "", a.Dot = "_DOT", a.DotSmall = "_DOTSMALL", a.DotBlank = "_DOTBLANK", a.Origin = "_ORIGIN", a.Origin2 = "_ORIGIN2", a.Open = "_OPEN", a.Open90 = "_OPEN90", a.Open30 = "_OPEN30", a.Closed = "_CLOSED", a.Small = "_SMALL", a.None = "_NONE", a.Oblique = "_OBLIQUE", a.BoxFilled = "_BOXFILLED", a.Box = "_BOXBLANK", a.ClosedBlank = "_CLOSEDBLANK", a.DatumBlank = "_DATUMBLANK", a.DatumFilled = "_DATUMFILLED", a.Integral = "_INTEGRAL", a.ArchTick = "_ARCHTICK", a))(Fu || {});
3022
3022
  class Xi {
3023
3023
  /**
3024
3024
  * Creates a new AcDbObjectIterator instance.
@@ -3096,7 +3096,7 @@ class Se extends uh {
3096
3096
  return e && (e.data[this.name] = Date.now() - s), o;
3097
3097
  }
3098
3098
  }
3099
- class Fu {
3099
+ class Du {
3100
3100
  /**
3101
3101
  * Creates a new instance of the database converter.
3102
3102
  *
@@ -4316,8 +4316,8 @@ const xi = class xl {
4316
4316
  * @returns Return this matrix
4317
4317
  */
4318
4318
  multiplyMatrices(t, e) {
4319
- const s = t.elements, o = e.elements, h = this.elements, c = s[0], g = s[3], x = s[6], f = s[1], S = s[4], b = s[7], k = s[2], M = s[5], z = s[8], R = o[0], U = o[3], D = o[6], gt = o[1], ft = o[4], ut = o[7], W = o[2], mt = o[5], lt = o[8];
4320
- return h[0] = c * R + g * gt + x * W, h[3] = c * U + g * ft + x * mt, h[6] = c * D + g * ut + x * lt, h[1] = f * R + S * gt + b * W, h[4] = f * U + S * ft + b * mt, h[7] = f * D + S * ut + b * lt, h[2] = k * R + M * gt + z * W, h[5] = k * U + M * ft + z * mt, h[8] = k * D + M * ut + z * lt, this;
4319
+ const s = t.elements, o = e.elements, h = this.elements, c = s[0], g = s[3], x = s[6], f = s[1], S = s[4], b = s[7], k = s[2], M = s[5], R = s[8], O = o[0], U = o[3], F = o[6], gt = o[1], ft = o[4], ut = o[7], W = o[2], mt = o[5], lt = o[8];
4320
+ return h[0] = c * O + g * gt + x * W, h[3] = c * U + g * ft + x * mt, h[6] = c * F + g * ut + x * lt, h[1] = f * O + S * gt + b * W, h[4] = f * U + S * ft + b * mt, h[7] = f * F + S * ut + b * lt, h[2] = k * O + M * gt + R * W, h[5] = k * U + M * ft + R * mt, h[8] = k * F + M * ut + R * lt, this;
4321
4321
  }
4322
4322
  /**
4323
4323
  * Multiply every component of the matrix by the scalar value s.
@@ -4342,10 +4342,10 @@ const xi = class xl {
4342
4342
  * @returns Return this matrix
4343
4343
  */
4344
4344
  invert() {
4345
- const t = this.elements, e = t[0], s = t[1], o = t[2], h = t[3], c = t[4], g = t[5], x = t[6], f = t[7], S = t[8], b = S * c - g * f, k = g * x - S * h, M = f * h - c * x, z = e * b + s * k + o * M;
4346
- if (z === 0) return this.set(0, 0, 0, 0, 0, 0, 0, 0, 0);
4347
- const R = 1 / z;
4348
- return t[0] = b * R, t[1] = (o * f - S * s) * R, t[2] = (g * s - o * c) * R, t[3] = k * R, t[4] = (S * e - o * x) * R, t[5] = (o * h - g * e) * R, t[6] = M * R, t[7] = (s * x - f * e) * R, t[8] = (c * e - s * h) * R, this;
4345
+ const t = this.elements, e = t[0], s = t[1], o = t[2], h = t[3], c = t[4], g = t[5], x = t[6], f = t[7], S = t[8], b = S * c - g * f, k = g * x - S * h, M = f * h - c * x, R = e * b + s * k + o * M;
4346
+ if (R === 0) return this.set(0, 0, 0, 0, 0, 0, 0, 0, 0);
4347
+ const O = 1 / R;
4348
+ return t[0] = b * O, t[1] = (o * f - S * s) * O, t[2] = (g * s - o * c) * O, t[3] = k * O, t[4] = (S * e - o * x) * O, t[5] = (o * h - g * e) * O, t[6] = M * O, t[7] = (s * x - f * e) * O, t[8] = (c * e - s * h) * O, this;
4349
4349
  }
4350
4350
  /**
4351
4351
  * Transpose this matrix in place.
@@ -4685,9 +4685,9 @@ function uc(a, t, e, s) {
4685
4685
  e,
4686
4686
  s
4687
4687
  );
4688
- for (let R = 1; R <= x; R++) {
4689
- const U = h + R * f, D = Os(U, a, t, e, s), gt = D[0] - S[0], ft = D[1] - S[1], ut = D[2] - S[2];
4690
- g += Math.sqrt(gt * gt + ft * ft + ut * ut), S = D;
4688
+ for (let O = 1; O <= x; O++) {
4689
+ const U = h + O * f, F = Os(U, a, t, e, s), gt = F[0] - S[0], ft = F[1] - S[1], ut = F[2] - S[2];
4690
+ g += Math.sqrt(gt * gt + ft * ft + ut * ut), S = F;
4691
4691
  }
4692
4692
  const b = Os(
4693
4693
  c,
@@ -4695,8 +4695,8 @@ function uc(a, t, e, s) {
4695
4695
  t,
4696
4696
  e,
4697
4697
  s
4698
- ), k = b[0] - S[0], M = b[1] - S[1], z = b[2] - S[2];
4699
- return g += Math.sqrt(k * k + M * M + z * z), g;
4698
+ ), k = b[0] - S[0], M = b[1] - S[1], R = b[2] - S[2];
4699
+ return g += Math.sqrt(k * k + M * M + R * R), g;
4700
4700
  }
4701
4701
  function pd(a) {
4702
4702
  return a.map((t) => [...t]);
@@ -4724,24 +4724,24 @@ class $r {
4724
4724
  */
4725
4725
  static slerpFlat(t, e, s, o, h, c, g) {
4726
4726
  let x = s[o + 0], f = s[o + 1], S = s[o + 2], b = s[o + 3];
4727
- const k = h[c + 0], M = h[c + 1], z = h[c + 2], R = h[c + 3];
4727
+ const k = h[c + 0], M = h[c + 1], R = h[c + 2], O = h[c + 3];
4728
4728
  if (g === 0) {
4729
4729
  t[e + 0] = x, t[e + 1] = f, t[e + 2] = S, t[e + 3] = b;
4730
4730
  return;
4731
4731
  }
4732
4732
  if (g === 1) {
4733
- t[e + 0] = k, t[e + 1] = M, t[e + 2] = z, t[e + 3] = R;
4733
+ t[e + 0] = k, t[e + 1] = M, t[e + 2] = R, t[e + 3] = O;
4734
4734
  return;
4735
4735
  }
4736
- if (b !== R || x !== k || f !== M || S !== z) {
4736
+ if (b !== O || x !== k || f !== M || S !== R) {
4737
4737
  let U = 1 - g;
4738
- const D = x * k + f * M + S * z + b * R, gt = D >= 0 ? 1 : -1, ft = 1 - D * D;
4738
+ const F = x * k + f * M + S * R + b * O, gt = F >= 0 ? 1 : -1, ft = 1 - F * F;
4739
4739
  if (ft > Number.EPSILON) {
4740
- const W = Math.sqrt(ft), mt = Math.atan2(W, D * gt);
4740
+ const W = Math.sqrt(ft), mt = Math.atan2(W, F * gt);
4741
4741
  U = Math.sin(U * mt) / W, g = Math.sin(g * mt) / W;
4742
4742
  }
4743
4743
  const ut = g * gt;
4744
- if (x = x * U + k * ut, f = f * U + M * ut, S = S * U + z * ut, b = b * U + R * ut, U === 1 - g) {
4744
+ if (x = x * U + k * ut, f = f * U + M * ut, S = S * U + R * ut, b = b * U + O * ut, U === 1 - g) {
4745
4745
  const W = 1 / Math.sqrt(x * x + f * f + S * S + b * b);
4746
4746
  x *= W, f *= W, S *= W, b *= W;
4747
4747
  }
@@ -4759,8 +4759,8 @@ class $r {
4759
4759
  * @returns Return an array
4760
4760
  */
4761
4761
  static multiplyQuaternionsFlat(t, e, s, o, h, c) {
4762
- const g = s[o], x = s[o + 1], f = s[o + 2], S = s[o + 3], b = h[c], k = h[c + 1], M = h[c + 2], z = h[c + 3];
4763
- return t[e] = g * z + S * b + x * M - f * k, t[e + 1] = x * z + S * k + f * b - g * M, t[e + 2] = f * z + S * M + g * k - x * b, t[e + 3] = S * z - g * b - x * k - f * M, t;
4762
+ const g = s[o], x = s[o + 1], f = s[o + 2], S = s[o + 3], b = h[c], k = h[c + 1], M = h[c + 2], R = h[c + 3];
4763
+ return t[e] = g * R + S * b + x * M - f * k, t[e + 1] = x * R + S * k + f * b - g * M, t[e + 2] = f * R + S * M + g * k - x * b, t[e + 3] = S * R - g * b - x * k - f * M, t;
4764
4764
  }
4765
4765
  /**
4766
4766
  * X cooridinate
@@ -4831,25 +4831,25 @@ class $r {
4831
4831
  * @returns Return this quaternion
4832
4832
  */
4833
4833
  setFromEuler(t, e = !0) {
4834
- const s = t.x, o = t.y, h = t.z, c = t.order, g = Math.cos, x = Math.sin, f = g(s / 2), S = g(o / 2), b = g(h / 2), k = x(s / 2), M = x(o / 2), z = x(h / 2);
4834
+ const s = t.x, o = t.y, h = t.z, c = t.order, g = Math.cos, x = Math.sin, f = g(s / 2), S = g(o / 2), b = g(h / 2), k = x(s / 2), M = x(o / 2), R = x(h / 2);
4835
4835
  switch (c) {
4836
4836
  case "XYZ":
4837
- this._x = k * S * b + f * M * z, this._y = f * M * b - k * S * z, this._z = f * S * z + k * M * b, this._w = f * S * b - k * M * z;
4837
+ this._x = k * S * b + f * M * R, this._y = f * M * b - k * S * R, this._z = f * S * R + k * M * b, this._w = f * S * b - k * M * R;
4838
4838
  break;
4839
4839
  case "YXZ":
4840
- this._x = k * S * b + f * M * z, this._y = f * M * b - k * S * z, this._z = f * S * z - k * M * b, this._w = f * S * b + k * M * z;
4840
+ this._x = k * S * b + f * M * R, this._y = f * M * b - k * S * R, this._z = f * S * R - k * M * b, this._w = f * S * b + k * M * R;
4841
4841
  break;
4842
4842
  case "ZXY":
4843
- this._x = k * S * b - f * M * z, this._y = f * M * b + k * S * z, this._z = f * S * z + k * M * b, this._w = f * S * b - k * M * z;
4843
+ this._x = k * S * b - f * M * R, this._y = f * M * b + k * S * R, this._z = f * S * R + k * M * b, this._w = f * S * b - k * M * R;
4844
4844
  break;
4845
4845
  case "ZYX":
4846
- this._x = k * S * b - f * M * z, this._y = f * M * b + k * S * z, this._z = f * S * z - k * M * b, this._w = f * S * b + k * M * z;
4846
+ this._x = k * S * b - f * M * R, this._y = f * M * b + k * S * R, this._z = f * S * R - k * M * b, this._w = f * S * b + k * M * R;
4847
4847
  break;
4848
4848
  case "YZX":
4849
- this._x = k * S * b + f * M * z, this._y = f * M * b + k * S * z, this._z = f * S * z - k * M * b, this._w = f * S * b - k * M * z;
4849
+ this._x = k * S * b + f * M * R, this._y = f * M * b + k * S * R, this._z = f * S * R - k * M * b, this._w = f * S * b - k * M * R;
4850
4850
  break;
4851
4851
  case "XZY":
4852
- this._x = k * S * b - f * M * z, this._y = f * M * b - k * S * z, this._z = f * S * z + k * M * b, this._w = f * S * b + k * M * z;
4852
+ this._x = k * S * b - f * M * R, this._y = f * M * b - k * S * R, this._z = f * S * R + k * M * b, this._w = f * S * b + k * M * R;
4853
4853
  break;
4854
4854
  default:
4855
4855
  console.warn(
@@ -5758,8 +5758,8 @@ const mi = /* @__PURE__ */ new $(), to = /* @__PURE__ */ new $r(), wi = class Il
5758
5758
  * @param n43 Input element in the forth row and the third column
5759
5759
  * @param n44 Input element in the forth row and the forth column
5760
5760
  */
5761
- constructor(t, e, s, o, h, c, g, x, f, S, b, k, M, z, R, U) {
5762
- this.elements = [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1], t != null && e != null && s != null && o != null && h != null && c != null && g != null && x != null && f != null && S != null && b != null && k != null && M != null && z != null && R != null && U != null && this.set(
5761
+ constructor(t, e, s, o, h, c, g, x, f, S, b, k, M, R, O, U) {
5762
+ this.elements = [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1], t != null && e != null && s != null && o != null && h != null && c != null && g != null && x != null && f != null && S != null && b != null && k != null && M != null && R != null && O != null && U != null && this.set(
5763
5763
  t,
5764
5764
  e,
5765
5765
  s,
@@ -5773,8 +5773,8 @@ const mi = /* @__PURE__ */ new $(), to = /* @__PURE__ */ new $r(), wi = class Il
5773
5773
  b,
5774
5774
  k,
5775
5775
  M,
5776
- z,
5777
5776
  R,
5777
+ O,
5778
5778
  U
5779
5779
  );
5780
5780
  }
@@ -5799,9 +5799,9 @@ const mi = /* @__PURE__ */ new $(), to = /* @__PURE__ */ new $r(), wi = class Il
5799
5799
  * @param n44 Input element in the forth row and the forth column
5800
5800
  * @returns Return this matrix
5801
5801
  */
5802
- set(t, e, s, o, h, c, g, x, f, S, b, k, M, z, R, U) {
5803
- const D = this.elements;
5804
- return D[0] = t, D[4] = e, D[8] = s, D[12] = o, D[1] = h, D[5] = c, D[9] = g, D[13] = x, D[2] = f, D[6] = S, D[10] = b, D[14] = k, D[3] = M, D[7] = z, D[11] = R, D[15] = U, this;
5802
+ set(t, e, s, o, h, c, g, x, f, S, b, k, M, R, O, U) {
5803
+ const F = this.elements;
5804
+ return F[0] = t, F[4] = e, F[8] = s, F[12] = o, F[1] = h, F[5] = c, F[9] = g, F[13] = x, F[2] = f, F[6] = S, F[10] = b, F[14] = k, F[3] = M, F[7] = R, F[11] = O, F[15] = U, this;
5805
5805
  }
5806
5806
  /**
5807
5807
  * Reset this matrix to the identity matrix.
@@ -6085,8 +6085,8 @@ const mi = /* @__PURE__ */ new $(), to = /* @__PURE__ */ new $r(), wi = class Il
6085
6085
  * @returns Return this matrix
6086
6086
  */
6087
6087
  multiplyMatrices(t, e) {
6088
- const s = t.elements, o = e.elements, h = this.elements, c = s[0], g = s[4], x = s[8], f = s[12], S = s[1], b = s[5], k = s[9], M = s[13], z = s[2], R = s[6], U = s[10], D = s[14], gt = s[3], ft = s[7], ut = s[11], W = s[15], mt = o[0], lt = o[4], Wt = o[8], Ht = o[12], Ut = o[1], xt = o[5], Nt = o[9], de = o[13], me = o[2], Ie = o[6], Qt = o[10], ie = o[14], Q = o[3], It = o[7], ae = o[11], ir = o[15];
6089
- return h[0] = c * mt + g * Ut + x * me + f * Q, h[4] = c * lt + g * xt + x * Ie + f * It, h[8] = c * Wt + g * Nt + x * Qt + f * ae, h[12] = c * Ht + g * de + x * ie + f * ir, h[1] = S * mt + b * Ut + k * me + M * Q, h[5] = S * lt + b * xt + k * Ie + M * It, h[9] = S * Wt + b * Nt + k * Qt + M * ae, h[13] = S * Ht + b * de + k * ie + M * ir, h[2] = z * mt + R * Ut + U * me + D * Q, h[6] = z * lt + R * xt + U * Ie + D * It, h[10] = z * Wt + R * Nt + U * Qt + D * ae, h[14] = z * Ht + R * de + U * ie + D * ir, h[3] = gt * mt + ft * Ut + ut * me + W * Q, h[7] = gt * lt + ft * xt + ut * Ie + W * It, h[11] = gt * Wt + ft * Nt + ut * Qt + W * ae, h[15] = gt * Ht + ft * de + ut * ie + W * ir, this;
6088
+ const s = t.elements, o = e.elements, h = this.elements, c = s[0], g = s[4], x = s[8], f = s[12], S = s[1], b = s[5], k = s[9], M = s[13], R = s[2], O = s[6], U = s[10], F = s[14], gt = s[3], ft = s[7], ut = s[11], W = s[15], mt = o[0], lt = o[4], Wt = o[8], Ht = o[12], Ut = o[1], xt = o[5], Nt = o[9], de = o[13], me = o[2], Ie = o[6], Qt = o[10], ie = o[14], Q = o[3], It = o[7], ae = o[11], ir = o[15];
6089
+ return h[0] = c * mt + g * Ut + x * me + f * Q, h[4] = c * lt + g * xt + x * Ie + f * It, h[8] = c * Wt + g * Nt + x * Qt + f * ae, h[12] = c * Ht + g * de + x * ie + f * ir, h[1] = S * mt + b * Ut + k * me + M * Q, h[5] = S * lt + b * xt + k * Ie + M * It, h[9] = S * Wt + b * Nt + k * Qt + M * ae, h[13] = S * Ht + b * de + k * ie + M * ir, h[2] = R * mt + O * Ut + U * me + F * Q, h[6] = R * lt + O * xt + U * Ie + F * It, h[10] = R * Wt + O * Nt + U * Qt + F * ae, h[14] = R * Ht + O * de + U * ie + F * ir, h[3] = gt * mt + ft * Ut + ut * me + W * Q, h[7] = gt * lt + ft * xt + ut * Ie + W * It, h[11] = gt * Wt + ft * Nt + ut * Qt + W * ae, h[15] = gt * Ht + ft * de + ut * ie + W * ir, this;
6090
6090
  }
6091
6091
  /**
6092
6092
  * Multiply every component of the matrix by a scalar value s.
@@ -6102,8 +6102,8 @@ const mi = /* @__PURE__ */ new $(), to = /* @__PURE__ */ new $r(), wi = class Il
6102
6102
  * @returns Return the determinant of this matrix.
6103
6103
  */
6104
6104
  determinant() {
6105
- const t = this.elements, e = t[0], s = t[4], o = t[8], h = t[12], c = t[1], g = t[5], x = t[9], f = t[13], S = t[2], b = t[6], k = t[10], M = t[14], z = t[3], R = t[7], U = t[11], D = t[15];
6106
- return z * (+h * x * b - o * f * b - h * g * k + s * f * k + o * g * M - s * x * M) + R * (+e * x * M - e * f * k + h * c * k - o * c * M + o * f * S - h * x * S) + U * (+e * f * b - e * g * M - h * c * b + s * c * M + h * g * S - s * f * S) + D * (-o * g * S - e * x * b + e * g * k + o * c * b - s * c * k + s * x * S);
6105
+ const t = this.elements, e = t[0], s = t[4], o = t[8], h = t[12], c = t[1], g = t[5], x = t[9], f = t[13], S = t[2], b = t[6], k = t[10], M = t[14], R = t[3], O = t[7], U = t[11], F = t[15];
6106
+ return R * (+h * x * b - o * f * b - h * g * k + s * f * k + o * g * M - s * x * M) + O * (+e * x * M - e * f * k + h * c * k - o * c * M + o * f * S - h * x * S) + U * (+e * f * b - e * g * M - h * c * b + s * c * M + h * g * S - s * f * S) + F * (-o * g * S - e * x * b + e * g * k + o * c * b - s * c * k + s * x * S);
6107
6107
  }
6108
6108
  /**
6109
6109
  * Transposes this matrix.
@@ -6131,11 +6131,11 @@ const mi = /* @__PURE__ */ new $(), to = /* @__PURE__ */ new $r(), wi = class Il
6131
6131
  * @returns Return this matrix
6132
6132
  */
6133
6133
  invert() {
6134
- const t = this.elements, e = t[0], s = t[1], o = t[2], h = t[3], c = t[4], g = t[5], x = t[6], f = t[7], S = t[8], b = t[9], k = t[10], M = t[11], z = t[12], R = t[13], U = t[14], D = t[15], gt = b * U * f - R * k * f + R * x * M - g * U * M - b * x * D + g * k * D, ft = z * k * f - S * U * f - z * x * M + c * U * M + S * x * D - c * k * D, ut = S * R * f - z * b * f + z * g * M - c * R * M - S * g * D + c * b * D, W = z * b * x - S * R * x - z * g * k + c * R * k + S * g * U - c * b * U, mt = e * gt + s * ft + o * ut + h * W;
6134
+ const t = this.elements, e = t[0], s = t[1], o = t[2], h = t[3], c = t[4], g = t[5], x = t[6], f = t[7], S = t[8], b = t[9], k = t[10], M = t[11], R = t[12], O = t[13], U = t[14], F = t[15], gt = b * U * f - O * k * f + O * x * M - g * U * M - b * x * F + g * k * F, ft = R * k * f - S * U * f - R * x * M + c * U * M + S * x * F - c * k * F, ut = S * O * f - R * b * f + R * g * M - c * O * M - S * g * F + c * b * F, W = R * b * x - S * O * x - R * g * k + c * O * k + S * g * U - c * b * U, mt = e * gt + s * ft + o * ut + h * W;
6135
6135
  if (mt === 0)
6136
6136
  return this.set(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
6137
6137
  const lt = 1 / mt;
6138
- return t[0] = gt * lt, t[1] = (R * k * h - b * U * h - R * o * M + s * U * M + b * o * D - s * k * D) * lt, t[2] = (g * U * h - R * x * h + R * o * f - s * U * f - g * o * D + s * x * D) * lt, t[3] = (b * x * h - g * k * h - b * o * f + s * k * f + g * o * M - s * x * M) * lt, t[4] = ft * lt, t[5] = (S * U * h - z * k * h + z * o * M - e * U * M - S * o * D + e * k * D) * lt, t[6] = (z * x * h - c * U * h - z * o * f + e * U * f + c * o * D - e * x * D) * lt, t[7] = (c * k * h - S * x * h + S * o * f - e * k * f - c * o * M + e * x * M) * lt, t[8] = ut * lt, t[9] = (z * b * h - S * R * h - z * s * M + e * R * M + S * s * D - e * b * D) * lt, t[10] = (c * R * h - z * g * h + z * s * f - e * R * f - c * s * D + e * g * D) * lt, t[11] = (S * g * h - c * b * h - S * s * f + e * b * f + c * s * M - e * g * M) * lt, t[12] = W * lt, t[13] = (S * R * o - z * b * o + z * s * k - e * R * k - S * s * U + e * b * U) * lt, t[14] = (z * g * o - c * R * o - z * s * x + e * R * x + c * s * U - e * g * U) * lt, t[15] = (c * b * o - S * g * o + S * s * x - e * b * x - c * s * k + e * g * k) * lt, this;
6138
+ return t[0] = gt * lt, t[1] = (O * k * h - b * U * h - O * o * M + s * U * M + b * o * F - s * k * F) * lt, t[2] = (g * U * h - O * x * h + O * o * f - s * U * f - g * o * F + s * x * F) * lt, t[3] = (b * x * h - g * k * h - b * o * f + s * k * f + g * o * M - s * x * M) * lt, t[4] = ft * lt, t[5] = (S * U * h - R * k * h + R * o * M - e * U * M - S * o * F + e * k * F) * lt, t[6] = (R * x * h - c * U * h - R * o * f + e * U * f + c * o * F - e * x * F) * lt, t[7] = (c * k * h - S * x * h + S * o * f - e * k * f - c * o * M + e * x * M) * lt, t[8] = ut * lt, t[9] = (R * b * h - S * O * h - R * s * M + e * O * M + S * s * F - e * b * F) * lt, t[10] = (c * O * h - R * g * h + R * s * f - e * O * f - c * s * F + e * g * F) * lt, t[11] = (S * g * h - c * b * h - S * s * f + e * b * f + c * s * M - e * g * M) * lt, t[12] = W * lt, t[13] = (S * O * o - R * b * o + R * s * k - e * O * k - S * s * U + e * b * U) * lt, t[14] = (R * g * o - c * O * o - R * s * x + e * O * x + c * s * U - e * g * U) * lt, t[15] = (c * b * o - S * g * o + S * s * x - e * b * x - c * s * k + e * g * k) * lt, this;
6139
6139
  }
6140
6140
  /**
6141
6141
  * Multiply the columns of this matrix by vector v.
@@ -6249,8 +6249,8 @@ const mi = /* @__PURE__ */ new $(), to = /* @__PURE__ */ new $r(), wi = class Il
6249
6249
  * @returns Return this matrix
6250
6250
  */
6251
6251
  compose(t, e, s) {
6252
- const o = this.elements, h = e.x, c = e.y, g = e.z, x = e.w, f = h + h, S = c + c, b = g + g, k = h * f, M = h * S, z = h * b, R = c * S, U = c * b, D = g * b, gt = x * f, ft = x * S, ut = x * b, W = s.x, mt = s.y, lt = s.z;
6253
- return o[0] = (1 - (R + D)) * W, o[1] = (M + ut) * W, o[2] = (z - ft) * W, o[3] = 0, o[4] = (M - ut) * mt, o[5] = (1 - (k + D)) * mt, o[6] = (U + gt) * mt, o[7] = 0, o[8] = (z + ft) * lt, o[9] = (U - gt) * lt, o[10] = (1 - (k + R)) * lt, o[11] = 0, o[12] = t.x, o[13] = t.y, o[14] = t.z, o[15] = 1, this;
6252
+ const o = this.elements, h = e.x, c = e.y, g = e.z, x = e.w, f = h + h, S = c + c, b = g + g, k = h * f, M = h * S, R = h * b, O = c * S, U = c * b, F = g * b, gt = x * f, ft = x * S, ut = x * b, W = s.x, mt = s.y, lt = s.z;
6253
+ return o[0] = (1 - (O + F)) * W, o[1] = (M + ut) * W, o[2] = (R - ft) * W, o[3] = 0, o[4] = (M - ut) * mt, o[5] = (1 - (k + F)) * mt, o[6] = (U + gt) * mt, o[7] = 0, o[8] = (R + ft) * lt, o[9] = (U - gt) * lt, o[10] = (1 - (k + O)) * lt, o[11] = 0, o[12] = t.x, o[13] = t.y, o[14] = t.z, o[15] = 1, this;
6254
6254
  }
6255
6255
  /**
6256
6256
  * Decompose this matrix into its position, quaternion and scale components.
@@ -7368,10 +7368,10 @@ class Zi extends Ml {
7368
7368
  const f = o[x], S = e[f], b = s[f];
7369
7369
  let k = x + 1;
7370
7370
  for (; k < c; k++) {
7371
- const M = o[k], z = e[M];
7371
+ const M = o[k], R = e[M];
7372
7372
  if (s[M].containsBox(b) && ac.isPointInPolygon(
7373
7373
  S[Ot.randInt(0, S.length - 1)],
7374
- z
7374
+ R
7375
7375
  )) {
7376
7376
  (t = h.get(M)) == null || t.children.push(h.get(f));
7377
7377
  break;
@@ -7579,10 +7579,10 @@ class us extends ms {
7579
7579
  }), h = (lt, Wt) => (Wt.y - lt.y) / (Wt.x - lt.x), c = (lt) => -1 / lt, g = o(t, e), x = o(e, s), f = h(t, e), S = h(e, s), b = c(f), k = c(S), M = (lt, Wt, Ht, Ut) => {
7580
7580
  const xt = (Ut - Wt) / (lt - Ht), Nt = lt * xt + Wt;
7581
7581
  return { x: xt, y: Nt };
7582
- }, z = g.y - b * g.x, R = x.y - k * x.x, U = M(b, z, k, R), D = Math.sqrt(
7582
+ }, R = g.y - b * g.x, O = x.y - k * x.x, U = M(b, R, k, O), F = Math.sqrt(
7583
7583
  Math.pow(t.x - U.x, 2) + Math.pow(t.y - U.y, 2)
7584
7584
  ), gt = (lt, Wt) => Math.atan2(lt.y - Wt.y, lt.x - Wt.x), ft = gt(t, U), ut = gt(e, U), W = gt(s, U), mt = W > ft && W < ut || ft > W && ft < ut || ut > W && ut < ft;
7585
- this.center = U, this.radius = D, this.startAngle = ft, this.endAngle = W, this.clockwise = !mt;
7585
+ this.center = U, this.radius = F, this.startAngle = ft, this.endAngle = W, this.clockwise = !mt;
7586
7586
  }
7587
7587
  /**
7588
7588
  * Create circular arc by two points and one bugle factor
@@ -8006,8 +8006,8 @@ class xn extends ps {
8006
8006
  const o = new $().addVectors(t, e).multiplyScalar(0.5), h = new $().addVectors(t, s).multiplyScalar(0.5), c = new $().subVectors(e, t), g = new $().subVectors(s, t), x = new $().crossVectors(c, g).normalize();
8007
8007
  if (x.lengthSq() === 0)
8008
8008
  return console.error("Points are collinear and cannot form a valid arc."), null;
8009
- const f = new $().crossVectors(c, x).normalize(), S = new $().crossVectors(g, x).normalize(), b = f.clone().multiplyScalar(Number.MAX_SAFE_INTEGER), k = S.clone().multiplyScalar(Number.MAX_SAFE_INTEGER), M = new Zr(o, o.clone().add(b)), z = new Zr(h, h.clone().add(k)), R = new $();
8010
- return M.closestPointToPoint(z.startPoint, !0, R) ? R : (console.error("Cannot find a valid center for the arc."), null);
8009
+ const f = new $().crossVectors(c, x).normalize(), S = new $().crossVectors(g, x).normalize(), b = f.clone().multiplyScalar(Number.MAX_SAFE_INTEGER), k = S.clone().multiplyScalar(Number.MAX_SAFE_INTEGER), M = new Zr(o, o.clone().add(b)), R = new Zr(h, h.clone().add(k)), O = new $();
8010
+ return M.closestPointToPoint(R.startPoint, !0, O) ? O : (console.error("Cannot find a valid center for the arc."), null);
8011
8011
  }
8012
8012
  /**
8013
8013
  * Create arc by three points
@@ -8981,9 +8981,9 @@ var Tl = { exports: {} };
8981
8981
  for (var u in n) l[u] = n[u];
8982
8982
  return n.toString !== Object.prototype.toString && (l.toString = n.toString), l;
8983
8983
  }
8984
- var z = function() {
8984
+ var R = function() {
8985
8985
  };
8986
- b.HxOverrides = z, z.__name__ = ["HxOverrides"], z.strDate = function(r) {
8986
+ b.HxOverrides = R, R.__name__ = ["HxOverrides"], R.strDate = function(r) {
8987
8987
  var n = r.length;
8988
8988
  switch (n) {
8989
8989
  case 8:
@@ -8998,13 +8998,13 @@ var Tl = { exports: {} };
8998
8998
  default:
8999
8999
  throw new Q("Invalid date format : " + r);
9000
9000
  }
9001
- }, z.cca = function(r, n) {
9001
+ }, R.cca = function(r, n) {
9002
9002
  var i = r.charCodeAt(n);
9003
9003
  if (i == i)
9004
9004
  return i;
9005
- }, z.substr = function(r, n, i) {
9005
+ }, R.substr = function(r, n, i) {
9006
9006
  return n != null && n != 0 && i != null && i < 0 ? "" : (i == null && (i = r.length), n < 0 ? (n = r.length + n, n < 0 && (n = 0)) : i < 0 && (i = r.length + i - n), r.substr(n, i));
9007
- }, z.iter = function(r) {
9007
+ }, R.iter = function(r) {
9008
9008
  return {
9009
9009
  cur: 0,
9010
9010
  arr: r,
@@ -9016,9 +9016,9 @@ var Tl = { exports: {} };
9016
9016
  }
9017
9017
  };
9018
9018
  };
9019
- var R = function() {
9019
+ var O = function() {
9020
9020
  };
9021
- b.Lambda = R, R.__name__ = ["Lambda"], R.fold = function(r, n, i) {
9021
+ b.Lambda = O, O.__name__ = ["Lambda"], O.fold = function(r, n, i) {
9022
9022
  for (var l = We(r)(); l.hasNext(); ) {
9023
9023
  var u = l.next();
9024
9024
  i = n(u, i);
@@ -9043,17 +9043,17 @@ var Tl = { exports: {} };
9043
9043
  },
9044
9044
  __class__: U
9045
9045
  }, Math.__name__ = ["Math"];
9046
- var D = function() {
9046
+ var F = function() {
9047
9047
  };
9048
- b.Reflect = D, D.__name__ = ["Reflect"], D.field = function(r, n) {
9048
+ b.Reflect = F, F.__name__ = ["Reflect"], F.field = function(r, n) {
9049
9049
  try {
9050
9050
  return r[n];
9051
9051
  } catch (i) {
9052
9052
  return i instanceof Q && (i = i.val), null;
9053
9053
  }
9054
- }, D.callMethod = function(r, n, i) {
9054
+ }, F.callMethod = function(r, n, i) {
9055
9055
  return n.apply(r, i);
9056
- }, D.fields = function(r) {
9056
+ }, F.fields = function(r) {
9057
9057
  var n = [];
9058
9058
  if (r != null) {
9059
9059
  var i = Object.prototype.hasOwnProperty;
@@ -9061,9 +9061,9 @@ var Tl = { exports: {} };
9061
9061
  l != "__id__" && l != "hx__closures__" && i.call(r, l) && n.push(l);
9062
9062
  }
9063
9063
  return n;
9064
- }, D.isFunction = function(r) {
9064
+ }, F.isFunction = function(r) {
9065
9065
  return typeof r == "function" && !(r.__name__ || r.__ename__);
9066
- }, D.deleteField = function(r, n) {
9066
+ }, F.deleteField = function(r, n) {
9067
9067
  return Object.prototype.hasOwnProperty.call(r, n) ? (delete r[n], !0) : !1;
9068
9068
  };
9069
9069
  var gt = function() {
@@ -9114,11 +9114,11 @@ var Tl = { exports: {} };
9114
9114
  }
9115
9115
  return n.prototype = r.prototype, new n();
9116
9116
  }, mt.createEnum = function(r, n, i) {
9117
- var l = D.field(r, n);
9117
+ var l = F.field(r, n);
9118
9118
  if (l == null) throw new Q("No such constructor " + n);
9119
- if (D.isFunction(l)) {
9119
+ if (F.isFunction(l)) {
9120
9120
  if (i == null) throw new Q("Constructor " + n + " need parameters");
9121
- return D.callMethod(r, l, i);
9121
+ return F.callMethod(r, l, i);
9122
9122
  }
9123
9123
  if (i != null && i.length != 0) throw new Q("Constructor " + n + " does not need parameters");
9124
9124
  return l;
@@ -9181,9 +9181,9 @@ var Tl = { exports: {} };
9181
9181
  return this.cache.push(r), !1;
9182
9182
  },
9183
9183
  serializeFields: function(r) {
9184
- for (var n = 0, i = D.fields(r); n < i.length; ) {
9184
+ for (var n = 0, i = F.fields(r); n < i.length; ) {
9185
9185
  var l = i[n];
9186
- ++n, this.serializeString(l), this.serialize(D.field(r, l));
9186
+ ++n, this.serializeString(l), this.serialize(F.field(r, l));
9187
9187
  }
9188
9188
  this.buf.b += "g";
9189
9189
  },
@@ -9248,17 +9248,17 @@ var Tl = { exports: {} };
9248
9248
  break;
9249
9249
  case xt:
9250
9250
  this.buf.b += "q";
9251
- for (var B = r, O = B.keys(); O.hasNext(); ) {
9252
- var F = O.next();
9253
- this.buf.b += ":", F == null ? this.buf.b += "null" : this.buf.b += "" + F, this.serialize(B.h[F]);
9251
+ for (var B = r, z = B.keys(); z.hasNext(); ) {
9252
+ var D = z.next();
9253
+ this.buf.b += ":", D == null ? this.buf.b += "null" : this.buf.b += "" + D, this.serialize(B.h[D]);
9254
9254
  }
9255
9255
  this.buf.b += "h";
9256
9256
  break;
9257
9257
  case Nt:
9258
9258
  this.buf.b += "M";
9259
9259
  for (var V = r, H = V.keys(); H.hasNext(); ) {
9260
- var J = H.next(), G = D.field(J, "__id__");
9261
- D.deleteField(J, "__id__"), this.serialize(J), J.__id__ = G, this.serialize(V.h[J.__id__]);
9260
+ var J = H.next(), G = F.field(J, "__id__");
9261
+ F.deleteField(J, "__id__"), this.serialize(J), J.__id__ = G, this.serialize(V.h[J.__id__]);
9262
9262
  }
9263
9263
  this.buf.b += "h";
9264
9264
  break;
@@ -9361,7 +9361,7 @@ var Tl = { exports: {} };
9361
9361
  if (n >= 43 && n < 58 || n == 101 || n == 69) this.pos++;
9362
9362
  else break;
9363
9363
  }
9364
- return gt.parseFloat(z.substr(this.buf, r, this.pos - r));
9364
+ return gt.parseFloat(R.substr(this.buf, r, this.pos - r));
9365
9365
  },
9366
9366
  unserializeObject: function(r) {
9367
9367
  for (; ; ) {
@@ -9399,7 +9399,7 @@ var Tl = { exports: {} };
9399
9399
  case 121:
9400
9400
  var n = this.readDigits();
9401
9401
  if (this.get(this.pos++) != 58 || this.length - this.pos < n) throw new Q("Invalid string length");
9402
- var i = z.substr(this.buf, this.pos, n);
9402
+ var i = R.substr(this.buf, this.pos, n);
9403
9403
  return this.pos += n, i = decodeURIComponent(i.split("+").join(" ")), this.scache.push(i), i;
9404
9404
  case 107:
9405
9405
  return NaN;
@@ -9450,10 +9450,10 @@ var Tl = { exports: {} };
9450
9450
  var L = this.unserialize(), N = this.resolver.resolveEnum(L);
9451
9451
  if (N == null) throw new Q("Enum not found " + L);
9452
9452
  this.pos++;
9453
- var B = this.readDigits(), O = mt.getEnumConstructs(N)[B];
9454
- if (O == null) throw new Q("Unknown enum index " + L + "@" + B);
9455
- var F = this.unserializeEnum(N, O);
9456
- return this.cache.push(F), F;
9453
+ var B = this.readDigits(), z = mt.getEnumConstructs(N)[B];
9454
+ if (z == null) throw new Q("Unknown enum index " + L + "@" + B);
9455
+ var D = this.unserializeEnum(N, z);
9456
+ return this.cache.push(D), D;
9457
9457
  case 108:
9458
9458
  var V = new U();
9459
9459
  for (this.cache.push(V), this.buf; this.buf.charCodeAt(this.pos) != 104; ) V.add(this.unserialize());
@@ -9484,8 +9484,8 @@ var Tl = { exports: {} };
9484
9484
  case 118:
9485
9485
  var st;
9486
9486
  if (this.buf.charCodeAt(this.pos) >= 48 && this.buf.charCodeAt(this.pos) <= 57 && this.buf.charCodeAt(this.pos + 1) >= 48 && this.buf.charCodeAt(this.pos + 1) <= 57 && this.buf.charCodeAt(this.pos + 2) >= 48 && this.buf.charCodeAt(this.pos + 2) <= 57 && this.buf.charCodeAt(this.pos + 3) >= 48 && this.buf.charCodeAt(this.pos + 3) <= 57 && this.buf.charCodeAt(this.pos + 4) == 45) {
9487
- var ot = z.substr(this.buf, this.pos, 19);
9488
- st = z.strDate(ot), this.pos += 19;
9487
+ var ot = R.substr(this.buf, this.pos, 19);
9488
+ st = R.strDate(ot), this.pos += 19;
9489
9489
  } else {
9490
9490
  var it = this.readFloat(), ht = /* @__PURE__ */ new Date();
9491
9491
  ht.setTime(it), st = ht;
@@ -9499,10 +9499,10 @@ var Tl = { exports: {} };
9499
9499
  var pt = this.pos, Pt = nt & 3, Vt;
9500
9500
  Vt = (nt >> 2) * 3 + (Pt >= 2 ? Pt - 1 : 0);
9501
9501
  for (var qt = pt + (nt - Pt), Bt = Ie.alloc(Vt), Yt = 0; pt < qt; ) {
9502
- var Pe = q[ut.fastCodeAt(ct, pt++)], De = q[ut.fastCodeAt(ct, pt++)];
9503
- Bt.set(Yt++, Pe << 2 | De >> 4);
9502
+ var Pe = q[ut.fastCodeAt(ct, pt++)], Fe = q[ut.fastCodeAt(ct, pt++)];
9503
+ Bt.set(Yt++, Pe << 2 | Fe >> 4);
9504
9504
  var _e = q[ut.fastCodeAt(ct, pt++)];
9505
- Bt.set(Yt++, De << 4 | _e >> 2);
9505
+ Bt.set(Yt++, Fe << 4 | _e >> 2);
9506
9506
  var ge = q[ut.fastCodeAt(ct, pt++)];
9507
9507
  Bt.set(Yt++, _e << 6 | ge);
9508
9508
  }
@@ -9525,9 +9525,9 @@ var Tl = { exports: {} };
9525
9525
  if (lr == null) throw new Q("Class not found " + Ke);
9526
9526
  return lr;
9527
9527
  case 66:
9528
- var dn = this.unserialize(), Dr = this.resolver.resolveEnum(dn);
9529
- if (Dr == null) throw new Q("Enum not found " + dn);
9530
- return Dr;
9528
+ var dn = this.unserialize(), Fr = this.resolver.resolveEnum(dn);
9529
+ if (Fr == null) throw new Q("Enum not found " + dn);
9530
+ return Fr;
9531
9531
  }
9532
9532
  throw this.pos--, new Q("Invalid char " + this.buf.charAt(this.pos) + " at position " + this.pos);
9533
9533
  },
@@ -9547,7 +9547,7 @@ var Tl = { exports: {} };
9547
9547
  var r = [];
9548
9548
  for (var n in this.h)
9549
9549
  this.h.hasOwnProperty(n) && r.push(n | 0);
9550
- return z.iter(r);
9550
+ return R.iter(r);
9551
9551
  },
9552
9552
  __class__: xt
9553
9553
  };
@@ -9563,7 +9563,7 @@ var Tl = { exports: {} };
9563
9563
  var r = [];
9564
9564
  for (var n in this.h.__keys__)
9565
9565
  this.h.hasOwnProperty(n) && r.push(this.h.__keys__[n]);
9566
- return z.iter(r);
9566
+ return R.iter(r);
9567
9567
  },
9568
9568
  __class__: Nt
9569
9569
  };
@@ -9590,7 +9590,7 @@ var Tl = { exports: {} };
9590
9590
  },
9591
9591
  keys: function() {
9592
9592
  var r = this.arrayKeys();
9593
- return z.iter(r);
9593
+ return R.iter(r);
9594
9594
  },
9595
9595
  arrayKeys: function() {
9596
9596
  var r = [];
@@ -10467,11 +10467,11 @@ var Tl = { exports: {} };
10467
10467
  b["verb.core.Ray"] = rn, rn.__name__ = ["verb", "core", "Ray"], rn.__super__ = Xt, rn.prototype = M(Xt.prototype, {
10468
10468
  __class__: rn
10469
10469
  });
10470
- var Ft = f.core.NurbsCurveData = function(r, n, i) {
10470
+ var Dt = f.core.NurbsCurveData = function(r, n, i) {
10471
10471
  this.degree = r, this.controlPoints = i, this.knots = n;
10472
10472
  };
10473
- b["verb.core.NurbsCurveData"] = Ft, Ft.__name__ = ["verb", "core", "NurbsCurveData"], Ft.__super__ = Xt, Ft.prototype = M(Xt.prototype, {
10474
- __class__: Ft
10473
+ b["verb.core.NurbsCurveData"] = Dt, Dt.__name__ = ["verb", "core", "NurbsCurveData"], Dt.__super__ = Xt, Dt.prototype = M(Xt.prototype, {
10474
+ __class__: Dt
10475
10475
  });
10476
10476
  var Jt = f.core.NurbsSurfaceData = function(r, n, i, l, u) {
10477
10477
  this.degreeU = r, this.degreeV = n, this.knotsU = i, this.knotsV = l, this.controlPoints = u;
@@ -10583,20 +10583,20 @@ var Tl = { exports: {} };
10583
10583
  return -P.item1;
10584
10584
  }), d, p = null;
10585
10585
  p = function(P) {
10586
- for (var I, E = P.dimension, T = l.distanceFunction(r, P.kdPoint.point), L, N = [], B = 0, O = l.dim; B < O; )
10586
+ for (var I, E = P.dimension, T = l.distanceFunction(r, P.kdPoint.point), L, N = [], B = 0, z = l.dim; B < z; )
10587
10587
  B++, N.push(0);
10588
10588
  L = N;
10589
- for (var F, V, H = function(Y, tt) {
10589
+ for (var D, V, H = function(Y, tt) {
10590
10590
  u.push(new te(Y, tt)), u.size() > n && u.pop();
10591
10591
  }, J = 0, G = l.dim; J < G; ) {
10592
10592
  var j = J++;
10593
10593
  j == P.dimension ? L[j] = r[j] : L[j] = P.kdPoint.point[j];
10594
10594
  }
10595
- if (F = l.distanceFunction(L, P.kdPoint.point), P.right == null && P.left == null) {
10595
+ if (D = l.distanceFunction(L, P.kdPoint.point), P.right == null && P.left == null) {
10596
10596
  (u.size() < n || T < u.peek().item1) && H(P, T);
10597
10597
  return;
10598
10598
  }
10599
- P.right == null ? I = P.left : P.left == null ? I = P.right : r[E] < P.kdPoint.point[E] ? I = P.left : I = P.right, p(I), (u.size() < n || T < u.peek().item1) && H(P, T), (u.size() < n || Math.abs(F) < u.peek().item1) && (I == P.left ? V = P.right : V = P.left, V != null && p(V));
10599
+ P.right == null ? I = P.left : P.left == null ? I = P.right : r[E] < P.kdPoint.point[E] ? I = P.left : I = P.right, p(I), (u.size() < n || T < u.peek().item1) && H(P, T), (u.size() < n || Math.abs(D) < u.peek().item1) && (I == P.left ? V = P.right : V = P.left, V != null && p(V));
10600
10600
  }, d = p;
10601
10601
  for (var _ = 0; _ < n; )
10602
10602
  _++, u.push(new te(null, i));
@@ -10984,7 +10984,7 @@ var Tl = { exports: {} };
10984
10984
  var d = n.length, p = r(n), _ = p, v;
10985
10985
  if (isNaN(p)) throw new Q("uncmin: f(x0) is a NaN!");
10986
10986
  i = Math.max(i, rt.EPSILON);
10987
- var w, A, P, I = Mt.identity(d), E = 0, T = [], L, N, B, O, F, V, H = "";
10987
+ var w, A, P, I = Mt.identity(d), E = 0, T = [], L, N, B, z, D, V, H = "";
10988
10988
  for (A = l(n); E < u; ) {
10989
10989
  if (!m.all(m.finite(A))) {
10990
10990
  H = "Gradient has Infinity or NaN";
@@ -10998,14 +10998,14 @@ var Tl = { exports: {} };
10998
10998
  H = "Newton step smaller than tol";
10999
10999
  break;
11000
11000
  }
11001
- for (F = 1, v = m.dot(A, w), L = n; E < u && !(F * V < i); ) {
11002
- if (T = m.mul(F, w), L = m.add(n, T), _ = r(L), _ - p >= 0.1 * F * v || isNaN(_)) {
11003
- F *= 0.5, ++E;
11001
+ for (D = 1, v = m.dot(A, w), L = n; E < u && !(D * V < i); ) {
11002
+ if (T = m.mul(D, w), L = m.add(n, T), _ = r(L), _ - p >= 0.1 * D * v || isNaN(_)) {
11003
+ D *= 0.5, ++E;
11004
11004
  continue;
11005
11005
  }
11006
11006
  break;
11007
11007
  }
11008
- if (F * V < i) {
11008
+ if (D * V < i) {
11009
11009
  H = "Line search step size smaller than tol";
11010
11010
  break;
11011
11011
  }
@@ -11013,20 +11013,20 @@ var Tl = { exports: {} };
11013
11013
  H = "maxit reached during line search";
11014
11014
  break;
11015
11015
  }
11016
- P = l(L), N = m.sub(P, A), O = m.dot(N, T), B = Mt.dot(I, N), I = Mt.sub(Mt.add(I, Mt.mul((O + m.dot(N, B)) / (O * O), Ge.tensor(T, T))), Mt.div(Mt.add(Ge.tensor(B, T), Ge.tensor(T, B)), O)), n = L, p = _, A = P, ++E;
11016
+ P = l(L), N = m.sub(P, A), z = m.dot(N, T), B = Mt.dot(I, N), I = Mt.sub(Mt.add(I, Mt.mul((z + m.dot(N, B)) / (z * z), Ge.tensor(T, T))), Mt.div(Mt.add(Ge.tensor(B, T), Ge.tensor(T, B)), z)), n = L, p = _, A = P, ++E;
11017
11017
  }
11018
11018
  return new Rn(n, p, A, I, E, H);
11019
11019
  }, Ge.numericalGradient = function(r, n) {
11020
11020
  var i = n.length, l = r(n);
11021
11021
  if (l == NaN) throw new Q("gradient: f(x) is a NaN!");
11022
11022
  for (var u = n.slice(0), d, p, _ = [], v, w = 1e-3, A, P, I, E = 0, T, L, N, B = 0; B < i; )
11023
- for (var O = B++, F = Math.max(1e-6 * l, 1e-8); ; ) {
11023
+ for (var z = B++, D = Math.max(1e-6 * l, 1e-8); ; ) {
11024
11024
  if (++E, E > 20) throw new Q("Numerical gradient fails");
11025
- if (u[O] = n[O] + F, d = r(u), u[O] = n[O] - F, p = r(u), u[O] = n[O], isNaN(d) || isNaN(p)) {
11026
- F /= 16;
11025
+ if (u[z] = n[z] + D, d = r(u), u[z] = n[z] - D, p = r(u), u[z] = n[z], isNaN(d) || isNaN(p)) {
11026
+ D /= 16;
11027
11027
  continue;
11028
11028
  }
11029
- if (_[O] = (d - p) / (2 * F), A = n[O] - F, P = n[O], I = n[O] + F, T = (d - l) / F, L = (l - p) / F, N = m.max([Math.abs(_[O]), Math.abs(l), Math.abs(d), Math.abs(p), Math.abs(A), Math.abs(P), Math.abs(I), 1e-8]), v = Math.min(m.max([Math.abs(T - _[O]), Math.abs(L - _[O]), Math.abs(T - L)]) / N, F / N), v > w) F /= 16;
11029
+ if (_[z] = (d - p) / (2 * D), A = n[z] - D, P = n[z], I = n[z] + D, T = (d - l) / D, L = (l - p) / D, N = m.max([Math.abs(_[z]), Math.abs(l), Math.abs(d), Math.abs(p), Math.abs(A), Math.abs(P), Math.abs(I), 1e-8]), v = Math.min(m.max([Math.abs(T - _[z]), Math.abs(L - _[z]), Math.abs(T - L)]) / N, D / N), v > w) D /= 16;
11030
11030
  else break;
11031
11031
  }
11032
11032
  return _;
@@ -11112,15 +11112,15 @@ var Tl = { exports: {} };
11112
11112
  return -n;
11113
11113
  });
11114
11114
  }, m.min = function(r) {
11115
- return R.fold(r, function(n, i) {
11115
+ return O.fold(r, function(n, i) {
11116
11116
  return Math.min(n, i);
11117
11117
  }, 1 / 0);
11118
11118
  }, m.max = function(r) {
11119
- return R.fold(r, function(n, i) {
11119
+ return O.fold(r, function(n, i) {
11120
11120
  return Math.max(n, i);
11121
11121
  }, -1 / 0);
11122
11122
  }, m.all = function(r) {
11123
- return R.fold(r, function(n, i) {
11123
+ return O.fold(r, function(n, i) {
11124
11124
  return i && n;
11125
11125
  }, !0);
11126
11126
  }, m.finite = function(r) {
@@ -11140,14 +11140,14 @@ var Tl = { exports: {} };
11140
11140
  }, m.distSquared = function(r, n) {
11141
11141
  return m.normSquared(m.sub(r, n));
11142
11142
  }, m.sum = function(r) {
11143
- return R.fold(r, function(n, i) {
11143
+ return O.fold(r, function(n, i) {
11144
11144
  return i + n;
11145
11145
  }, 0);
11146
11146
  }, m.addAll = function(r) {
11147
11147
  var n = We(r)();
11148
11148
  if (!n.hasNext()) return null;
11149
11149
  var i = n.next().length;
11150
- return R.fold(r, function(l, u) {
11150
+ return O.fold(r, function(l, u) {
11151
11151
  return m.add(u, l);
11152
11152
  }, m.rep(i, 0));
11153
11153
  }, m.addAllMutate = function(r) {
@@ -11184,7 +11184,7 @@ var Tl = { exports: {} };
11184
11184
  var n = m.normSquared(r);
11185
11185
  return n != 0 ? Math.sqrt(n) : n;
11186
11186
  }, m.normSquared = function(r) {
11187
- return R.fold(r, function(n, i) {
11187
+ return O.fold(r, function(n, i) {
11188
11188
  return i + n * n;
11189
11189
  }, 0);
11190
11190
  }, m.rep = function(r, n) {
@@ -11295,15 +11295,15 @@ var Tl = { exports: {} };
11295
11295
  var i = yt.rationalSurfaceClosestParam(r, n);
11296
11296
  return C.rationalSurfacePoint(r, i[0], i[1]);
11297
11297
  }, yt.rationalSurfaceClosestParam = function(r, n) {
11298
- for (var i = 5, l = 0, u, d = 1e-4, p = 5e-4, _, v = r.knotsU[0], w = K.last(r.knotsU), A = r.knotsV[0], P = K.last(r.knotsV), I = yt.isRationalSurfaceClosed(r), E = yt.isRationalSurfaceClosed(r, !1), T, L = Lt.rationalSurfaceAdaptive(r, new Sr()), N = 1 / 0, B = 0, O = L.points.length; B < O; ) {
11299
- var F = B++, V = L.points[F], H = m.normSquared(m.sub(n, V));
11300
- H < N && (N = H, T = L.uvs[F]);
11298
+ for (var i = 5, l = 0, u, d = 1e-4, p = 5e-4, _, v = r.knotsU[0], w = K.last(r.knotsU), A = r.knotsV[0], P = K.last(r.knotsV), I = yt.isRationalSurfaceClosed(r), E = yt.isRationalSurfaceClosed(r, !1), T, L = Lt.rationalSurfaceAdaptive(r, new Sr()), N = 1 / 0, B = 0, z = L.points.length; B < z; ) {
11299
+ var D = B++, V = L.points[D], H = m.normSquared(m.sub(n, V));
11300
+ H < N && (N = H, T = L.uvs[D]);
11301
11301
  }
11302
11302
  for (var J = function(Vt) {
11303
11303
  return C.rationalSurfaceDerivatives(r, Vt[0], Vt[1], 2);
11304
11304
  }, G = function(Vt, qt, Bt) {
11305
- var Yt = qt[1][0], Pe = qt[0][1], De = qt[2][0], _e = qt[0][2], ge = qt[1][1], Ae = qt[1][1], Te = m.dot(Yt, Bt), He = m.dot(Pe, Bt), sr = [-Te, -He], qe = m.dot(Yt, Yt) + m.dot(De, Bt), Ye = m.dot(Yt, Pe) + m.dot(ge, Bt), Ke = m.dot(Yt, Pe) + m.dot(Ae, Bt), lr = m.dot(Pe, Pe) + m.dot(_e, Bt), dn = [[qe, Ye], [Ke, lr]], Dr = Mt.solve(dn, sr);
11306
- return m.add(Dr, Vt);
11305
+ var Yt = qt[1][0], Pe = qt[0][1], Fe = qt[2][0], _e = qt[0][2], ge = qt[1][1], Ae = qt[1][1], Te = m.dot(Yt, Bt), He = m.dot(Pe, Bt), sr = [-Te, -He], qe = m.dot(Yt, Yt) + m.dot(Fe, Bt), Ye = m.dot(Yt, Pe) + m.dot(ge, Bt), Ke = m.dot(Yt, Pe) + m.dot(Ae, Bt), lr = m.dot(Pe, Pe) + m.dot(_e, Bt), dn = [[qe, Ye], [Ke, lr]], Fr = Mt.solve(dn, sr);
11306
+ return m.add(Fr, Vt);
11307
11307
  }; l < i; ) {
11308
11308
  u = J(T), _ = m.sub(u[0][0], n);
11309
11309
  var j = m.norm(_), Y = m.dot(u[1][0], _), tt = m.norm(u[1][0]) * j, et = m.dot(u[0][1], _), st = m.norm(u[0][1]) * j, ot = Y / tt, it = et / st, ht = j < d, nt = ot < p, ct = it < p;
@@ -11322,16 +11322,16 @@ var Tl = { exports: {} };
11322
11322
  var _ = d++, v = u[_][0], w = u[_ + 1][0], A = u[_].slice(1), P = u[_ + 1].slice(1), I = Ee.segmentClosestPoint(n, A, P, v, w), E = m.norm(m.sub(n, I.pt));
11323
11323
  E < i && (i = E, l = I.u);
11324
11324
  }
11325
- for (var T = 5, L = 0, N, B = 1e-4, O = 5e-4, F, V = r.knots[0], H = K.last(r.knots), J = m.normSquared(m.sub(r.controlPoints[0], K.last(r.controlPoints))) < rt.EPSILON, G = l, j = function(q) {
11325
+ for (var T = 5, L = 0, N, B = 1e-4, z = 5e-4, D, V = r.knots[0], H = K.last(r.knots), J = m.normSquared(m.sub(r.controlPoints[0], K.last(r.controlPoints))) < rt.EPSILON, G = l, j = function(q) {
11326
11326
  return C.rationalCurveDerivatives(r, q, 2);
11327
11327
  }, Y = function(q, pt, Pt) {
11328
11328
  var Vt = m.dot(pt[1], Pt), qt = m.dot(pt[2], Pt), Bt = m.dot(pt[1], pt[1]), Yt = qt + Bt;
11329
11329
  return q - Vt / Yt;
11330
11330
  }; L < T; ) {
11331
- N = j(G), F = m.sub(N[0], n);
11332
- var tt = m.norm(F), et = m.dot(N[1], F), st = m.norm(N[1]) * tt, ot = et / st, it = tt < B, ht = Math.abs(ot) < O;
11331
+ N = j(G), D = m.sub(N[0], n);
11332
+ var tt = m.norm(D), et = m.dot(N[1], D), st = m.norm(N[1]) * tt, ot = et / st, it = tt < B, ht = Math.abs(ot) < z;
11333
11333
  if (it && ht) return G;
11334
- var nt = Y(G, N, F);
11334
+ var nt = Y(G, N, D);
11335
11335
  nt < V ? J ? nt = H - (nt - V) : nt = V : nt > H && (J ? nt = V + (nt - H) : nt = H);
11336
11336
  var ct = m.norm(m.mul(nt - G, N[1]));
11337
11337
  if (ct < B) return G;
@@ -11437,7 +11437,7 @@ var Tl = { exports: {} };
11437
11437
  p = _;
11438
11438
  for (var A = [], P = [], I = C.knotSpan(u, n, l), E = null, T = 0; T < d.length; ) {
11439
11439
  var L = d[T];
11440
- ++T, E = _t.curveKnotRefine(new Ft(u, l, L), p), A.push(E.controlPoints.slice(0, I + 1)), P.push(E.controlPoints.slice(I + 1));
11440
+ ++T, E = _t.curveKnotRefine(new Dt(u, l, L), p), A.push(E.controlPoints.slice(0, I + 1)), P.push(E.controlPoints.slice(I + 1));
11441
11441
  }
11442
11442
  var N = E.knots.slice(0, I + u + 2), B = E.knots.slice(I + 1);
11443
11443
  return i ? [new Jt(r.degreeU, u, r.knotsU.slice(), N, A), new Jt(r.degreeU, u, r.knotsU.slice(), B, P)] : (A = Mt.transpose(A), P = Mt.transpose(P), [new Jt(u, r.degreeV, N, r.knotsV.slice(), A), new Jt(u, r.degreeV, B, r.knotsV.slice(), P)]);
@@ -11448,7 +11448,7 @@ var Tl = { exports: {} };
11448
11448
  p++, d.push(n);
11449
11449
  u = d;
11450
11450
  var v = _t.curveKnotRefine(r, u), w = C.knotSpan(i, n, l), A = v.knots.slice(0, w + i + 2), P = v.knots.slice(w + 1), I = v.controlPoints.slice(0, w + 1), E = v.controlPoints.slice(w + 1);
11451
- return [new Ft(i, A, I), new Ft(i, P, E)];
11451
+ return [new Dt(i, A, I), new Dt(i, P, E)];
11452
11452
  }, oe.rationalCurveByEqualArcLength = function(r, n) {
11453
11453
  var i = yt.rationalCurveArcLength(r), l = i / n;
11454
11454
  return oe.rationalCurveByArcLength(r, l);
@@ -11485,11 +11485,11 @@ var Tl = { exports: {} };
11485
11485
  _.push([]);
11486
11486
  for (var I = 0, E = l - P + 1; I < E; ) {
11487
11487
  for (var T = I++, L = d[P][T], N = 1, B = T + 1; N < B; ) {
11488
- var O = N++;
11489
- m.subMulMutate(L, zt.get(T, O) * p[0][O], _[P][T - O]);
11488
+ var z = N++;
11489
+ m.subMulMutate(L, zt.get(T, z) * p[0][z], _[P][T - z]);
11490
11490
  }
11491
- for (var F = 1, V = P + 1; F < V; ) {
11492
- var H = F++;
11491
+ for (var D = 1, V = P + 1; D < V; ) {
11492
+ var H = D++;
11493
11493
  m.subMulMutate(L, zt.get(P, H) * p[H][0], _[P - H][T]);
11494
11494
  for (var J = m.zeros1d(v), G = 1, j = T + 1; G < j; ) {
11495
11495
  var Y = G++;
@@ -11525,13 +11525,13 @@ var Tl = { exports: {} };
11525
11525
  d < p ? I = d : I = p;
11526
11526
  var E;
11527
11527
  d < _ ? E = d : E = _;
11528
- for (var T = m.zeros3d(d + 1, d + 1, P), L = C.knotSpanGivenN(r, p, l, w), N = C.knotSpanGivenN(n, _, u, A), B = C.derivativeBasisFunctionsGivenNI(L, l, p, r, w), O = C.derivativeBasisFunctionsGivenNI(N, u, _, n, A), F = m.zeros2d(_ + 1, P), V = 0, H = 0, J = I + 1; H < J; ) {
11528
+ for (var T = m.zeros3d(d + 1, d + 1, P), L = C.knotSpanGivenN(r, p, l, w), N = C.knotSpanGivenN(n, _, u, A), B = C.derivativeBasisFunctionsGivenNI(L, l, p, r, w), z = C.derivativeBasisFunctionsGivenNI(N, u, _, n, A), D = m.zeros2d(_ + 1, P), V = 0, H = 0, J = I + 1; H < J; ) {
11529
11529
  for (var G = H++, j = 0, Y = _ + 1; j < Y; ) {
11530
11530
  var tt = j++;
11531
- F[tt] = m.zeros1d(P);
11531
+ D[tt] = m.zeros1d(P);
11532
11532
  for (var et = 0, st = p + 1; et < st; ) {
11533
11533
  var ot = et++;
11534
- m.addMulMutate(F[tt], B[G][ot], v[L - p + ot][N - _ + tt]);
11534
+ m.addMulMutate(D[tt], B[G][ot], v[L - p + ot][N - _ + tt]);
11535
11535
  }
11536
11536
  }
11537
11537
  var it = d - G;
@@ -11541,7 +11541,7 @@ var Tl = { exports: {} };
11541
11541
  T[G][ct] = m.zeros1d(P);
11542
11542
  for (var q = 0, pt = _ + 1; q < pt; ) {
11543
11543
  var Pt = q++;
11544
- m.addMulMutate(T[G][ct], O[ct][Pt], F[Pt]);
11544
+ m.addMulMutate(T[G][ct], z[ct][Pt], D[Pt]);
11545
11545
  }
11546
11546
  }
11547
11547
  }
@@ -11552,14 +11552,14 @@ var Tl = { exports: {} };
11552
11552
  }, C.surfacePointGivenNM = function(r, n, i, l, u) {
11553
11553
  var d = i.degreeU, p = i.degreeV, _ = i.controlPoints, v = i.knotsU, w = i.knotsV;
11554
11554
  if (!C.areValidRelations(d, _.length, v.length) || !C.areValidRelations(p, _[0].length, w.length)) throw new Q("Invalid relations between control points, knot vector, and n");
11555
- for (var A = _[0][0].length, P = C.knotSpanGivenN(r, d, l, v), I = C.knotSpanGivenN(n, p, u, w), E = C.basisFunctionsGivenKnotSpanIndex(P, l, d, v), T = C.basisFunctionsGivenKnotSpanIndex(I, u, p, w), L = P - d, N = I, B = m.zeros1d(A), O = m.zeros1d(A), F = 0, V = p + 1; F < V; ) {
11556
- var H = F++;
11557
- O = m.zeros1d(A), N = I - p + H;
11555
+ for (var A = _[0][0].length, P = C.knotSpanGivenN(r, d, l, v), I = C.knotSpanGivenN(n, p, u, w), E = C.basisFunctionsGivenKnotSpanIndex(P, l, d, v), T = C.basisFunctionsGivenKnotSpanIndex(I, u, p, w), L = P - d, N = I, B = m.zeros1d(A), z = m.zeros1d(A), D = 0, V = p + 1; D < V; ) {
11556
+ var H = D++;
11557
+ z = m.zeros1d(A), N = I - p + H;
11558
11558
  for (var J = 0, G = d + 1; J < G; ) {
11559
11559
  var j = J++;
11560
- m.addMulMutate(O, E[j], _[L + j][N]);
11560
+ m.addMulMutate(z, E[j], _[L + j][N]);
11561
11561
  }
11562
- m.addMulMutate(B, T[H], O);
11562
+ m.addMulMutate(B, T[H], z);
11563
11563
  }
11564
11564
  return B;
11565
11565
  }, C.curveRegularSamplePoints = function(r, n) {
@@ -11575,8 +11575,8 @@ var Tl = { exports: {} };
11575
11575
  var A = w++, P = [];
11576
11576
  d.push(P);
11577
11577
  for (var I = 0; I < _; ) {
11578
- for (var E = I++, T = u[A][E], L = C.rational2d(T), N = C.weight2d(T), B = [], O = L[0][0].length, F = 0; F < v; ) {
11579
- var V = F++;
11578
+ for (var E = I++, T = u[A][E], L = C.rational2d(T), N = C.weight2d(T), B = [], z = L[0][0].length, D = 0; D < v; ) {
11579
+ var V = D++;
11580
11580
  B.push([]);
11581
11581
  for (var H = 0, J = v - V; H < J; ) {
11582
11582
  for (var G = H++, j = L[V][G], Y = 1, tt = G + 1; Y < tt; ) {
@@ -11586,7 +11586,7 @@ var Tl = { exports: {} };
11586
11586
  for (var st = 1, ot = V + 1; st < ot; ) {
11587
11587
  var it = st++;
11588
11588
  m.subMulMutate(j, zt.get(V, it) * N[it][0], B[V - it][G]);
11589
- for (var ht = m.zeros1d(O), nt = 1, ct = G + 1; nt < ct; ) {
11589
+ for (var ht = m.zeros1d(z), nt = 1, ct = G + 1; nt < ct; ) {
11590
11590
  var q = nt++;
11591
11591
  m.addMulMutate(ht, zt.get(G, q) * N[it][q], B[V - it][G - q]);
11592
11592
  }
@@ -11602,10 +11602,10 @@ var Tl = { exports: {} };
11602
11602
  }, C.surfaceRegularSampleDerivatives = function(r, n, i, l) {
11603
11603
  var u = r.degreeU, d = r.degreeV, p = r.controlPoints, _ = r.knotsU, v = r.knotsV, w = p[0][0].length;
11604
11604
  (K.last(_) - _[0]) / n, (K.last(v) - v[0]) / i;
11605
- for (var A = C.regularlySpacedDerivativeBasisFunctions(u, _, n), P = A.item0, I = A.item1, E = C.regularlySpacedDerivativeBasisFunctions(d, v, i), T = E.item0, L = E.item1, N = [], B = n + 1, O = i + 1, F = 0; F < B; ) {
11606
- var V = F++, H = [];
11605
+ for (var A = C.regularlySpacedDerivativeBasisFunctions(u, _, n), P = A.item0, I = A.item1, E = C.regularlySpacedDerivativeBasisFunctions(d, v, i), T = E.item0, L = E.item1, N = [], B = n + 1, z = i + 1, D = 0; D < B; ) {
11606
+ var V = D++, H = [];
11607
11607
  N.push(H);
11608
- for (var J = 0; J < O; ) {
11608
+ for (var J = 0; J < z; ) {
11609
11609
  var G = J++;
11610
11610
  H.push(C.surfaceDerivativesGivenBasesKnotSpans(u, d, p, P[V], T[G], I[V], L[G], w, l));
11611
11611
  }
@@ -11616,12 +11616,12 @@ var Tl = { exports: {} };
11616
11616
  }, C.surfaceRegularSamplePoints = function(r, n, i) {
11617
11617
  var l = r.degreeU, u = r.degreeV, d = r.controlPoints, p = r.knotsU, _ = r.knotsV, v = d[0][0].length;
11618
11618
  (K.last(p) - p[0]) / n, (K.last(_) - _[0]) / i;
11619
- for (var w = C.regularlySpacedBasisFunctions(l, p, n), A = w.item0, P = w.item1, I = C.regularlySpacedBasisFunctions(u, _, i), E = I.item0, T = I.item1, L = [], N = n + 1, B = i + 1, O = 0; O < N; ) {
11620
- var F = O++, V = [];
11619
+ for (var w = C.regularlySpacedBasisFunctions(l, p, n), A = w.item0, P = w.item1, I = C.regularlySpacedBasisFunctions(u, _, i), E = I.item0, T = I.item1, L = [], N = n + 1, B = i + 1, z = 0; z < N; ) {
11620
+ var D = z++, V = [];
11621
11621
  L.push(V);
11622
11622
  for (var H = 0; H < B; ) {
11623
11623
  var J = H++;
11624
- V.push(C.surfacePointGivenBasesKnotSpans(l, u, d, A[F], E[J], P[F], T[J], v));
11624
+ V.push(C.surfacePointGivenBasesKnotSpans(l, u, d, A[D], E[J], P[D], T[J], v));
11625
11625
  }
11626
11626
  }
11627
11627
  return L;
@@ -11654,8 +11654,8 @@ var Tl = { exports: {} };
11654
11654
  var P;
11655
11655
  v < n ? P = v : P = n;
11656
11656
  for (var I = m.zeros3d(A + 1, P + 1, w), E = m.zeros2d(n + 1, w), T = 0, L = 0, N = A + 1; L < N; ) {
11657
- for (var B = L++, O = 0, F = n + 1; O < F; ) {
11658
- var V = O++;
11657
+ for (var B = L++, z = 0, D = n + 1; z < D; ) {
11658
+ var V = z++;
11659
11659
  E[V] = m.zeros1d(w);
11660
11660
  for (var H = 0, J = r + 1; H < J; ) {
11661
11661
  var G = H++;
@@ -11707,7 +11707,7 @@ var Tl = { exports: {} };
11707
11707
  return C.volumePointGivenNML(r, u, d, p, n, i, l);
11708
11708
  }, C.volumePointGivenNML = function(r, n, i, l, u, d, p) {
11709
11709
  if (!C.areValidRelations(r.degreeU, r.controlPoints.length, r.knotsU.length) || !C.areValidRelations(r.degreeV, r.controlPoints[0].length, r.knotsV.length) || !C.areValidRelations(r.degreeW, r.controlPoints[0][0].length, r.knotsW.length)) throw new Q("Invalid relations between control points and knot vector");
11710
- for (var _ = r.controlPoints, v = r.degreeU, w = r.degreeV, A = r.degreeW, P = r.knotsU, I = r.knotsV, E = r.knotsW, T = _[0][0][0].length, L = C.knotSpanGivenN(n, v, u, P), N = C.knotSpanGivenN(i, w, d, I), B = C.knotSpanGivenN(l, A, p, E), O = C.basisFunctionsGivenKnotSpanIndex(L, u, v, P), F = C.basisFunctionsGivenKnotSpanIndex(N, d, w, I), V = C.basisFunctionsGivenKnotSpanIndex(B, p, A, E), H = L - v, J = m.zeros1d(T), G = m.zeros1d(T), j = m.zeros1d(T), Y = 0, tt = A + 1; Y < tt; ) {
11710
+ for (var _ = r.controlPoints, v = r.degreeU, w = r.degreeV, A = r.degreeW, P = r.knotsU, I = r.knotsV, E = r.knotsW, T = _[0][0][0].length, L = C.knotSpanGivenN(n, v, u, P), N = C.knotSpanGivenN(i, w, d, I), B = C.knotSpanGivenN(l, A, p, E), z = C.basisFunctionsGivenKnotSpanIndex(L, u, v, P), D = C.basisFunctionsGivenKnotSpanIndex(N, d, w, I), V = C.basisFunctionsGivenKnotSpanIndex(B, p, A, E), H = L - v, J = m.zeros1d(T), G = m.zeros1d(T), j = m.zeros1d(T), Y = 0, tt = A + 1; Y < tt; ) {
11711
11711
  var et = Y++;
11712
11712
  j = m.zeros1d(T);
11713
11713
  for (var st = B - A + et, ot = 0, it = w + 1; ot < it; ) {
@@ -11715,9 +11715,9 @@ var Tl = { exports: {} };
11715
11715
  G = m.zeros1d(T);
11716
11716
  for (var nt = N - w + ht, ct = 0, q = v + 1; ct < q; ) {
11717
11717
  var pt = ct++;
11718
- m.addMulMutate(G, O[pt], _[H + pt][nt][st]);
11718
+ m.addMulMutate(G, z[pt], _[H + pt][nt][st]);
11719
11719
  }
11720
- m.addMulMutate(j, F[ht], G);
11720
+ m.addMulMutate(j, D[ht], G);
11721
11721
  }
11722
11722
  m.addMulMutate(J, V[et], j);
11723
11723
  }
@@ -11737,27 +11737,27 @@ var Tl = { exports: {} };
11737
11737
  }
11738
11738
  d[I][I] = v;
11739
11739
  }
11740
- for (var L = m.zeros2d(l + 1, i + 1), N = m.zeros2d(2, i + 1), B = 0, O = 1, F = 0, V = 0, H = 0, J = 0, G = 0, j = 0, Y = i + 1; j < Y; ) {
11740
+ for (var L = m.zeros2d(l + 1, i + 1), N = m.zeros2d(2, i + 1), B = 0, z = 1, D = 0, V = 0, H = 0, J = 0, G = 0, j = 0, Y = i + 1; j < Y; ) {
11741
11741
  var tt = j++;
11742
11742
  L[0][tt] = d[tt][i];
11743
11743
  }
11744
11744
  for (var et = 0, st = i + 1; et < st; ) {
11745
11745
  var ot = et++;
11746
- B = 0, O = 1, N[0][0] = 1;
11746
+ B = 0, z = 1, N[0][0] = 1;
11747
11747
  for (var it = 1, ht = l + 1; it < ht; ) {
11748
11748
  var nt = it++;
11749
- F = 0, V = ot - nt, H = i - nt, ot >= nt && (N[O][0] = N[B][0] / d[H + 1][V], F = N[O][0] * d[V][H]), V >= -1 ? J = 1 : J = -V, ot - 1 <= H ? G = nt - 1 : G = i - ot;
11749
+ D = 0, V = ot - nt, H = i - nt, ot >= nt && (N[z][0] = N[B][0] / d[H + 1][V], D = N[z][0] * d[V][H]), V >= -1 ? J = 1 : J = -V, ot - 1 <= H ? G = nt - 1 : G = i - ot;
11750
11750
  for (var ct = J, q = G + 1; ct < q; ) {
11751
11751
  var pt = ct++;
11752
- N[O][pt] = (N[B][pt] - N[B][pt - 1]) / d[H + 1][V + pt], F += N[O][pt] * d[V + pt][H];
11752
+ N[z][pt] = (N[B][pt] - N[B][pt - 1]) / d[H + 1][V + pt], D += N[z][pt] * d[V + pt][H];
11753
11753
  }
11754
- ot <= H && (N[O][nt] = -N[B][nt - 1] / d[H + 1][ot], F += N[O][nt] * d[ot][H]), L[nt][ot] = F;
11754
+ ot <= H && (N[z][nt] = -N[B][nt - 1] / d[H + 1][ot], D += N[z][nt] * d[ot][H]), L[nt][ot] = D;
11755
11755
  var Pt = B;
11756
- B = O, O = Pt;
11756
+ B = z, z = Pt;
11757
11757
  }
11758
11758
  }
11759
11759
  for (var Vt = i, qt = 1, Bt = l + 1; qt < Bt; ) {
11760
- for (var Yt = qt++, Pe = 0, De = i + 1; Pe < De; ) {
11760
+ for (var Yt = qt++, Pe = 0, Fe = i + 1; Pe < Fe; ) {
11761
11761
  var _e = Pe++;
11762
11762
  L[Yt][_e] *= Vt;
11763
11763
  }
@@ -11853,14 +11853,14 @@ var Tl = { exports: {} };
11853
11853
  }), 3);
11854
11854
  });
11855
11855
  }, at.surfacesAtPointWithEstimate = function(r, n, i, l, u) {
11856
- var d, p, _, v, w, A, P, I, E, T, L, N, B, O = 5, F = 0;
11856
+ var d, p, _, v, w, A, P, I, E, T, L, N, B, z = 5, D = 0;
11857
11857
  do {
11858
11858
  if (d = C.rationalSurfaceDerivatives(r, i[0], i[1], 1), p = d[0][0], v = d[1][0], w = d[0][1], _ = m.normalized(m.cross(v, w)), A = m.dot(_, p), P = C.rationalSurfaceDerivatives(n, l[0], l[1], 1), I = P[0][0], T = P[1][0], L = P[0][1], E = m.normalized(m.cross(T, L)), N = m.dot(E, I), B = m.distSquared(p, I), B < u * u) break;
11859
11859
  var V = m.normalized(m.cross(_, E)), H = m.dot(V, p), J = at.threePlanes(_, A, E, N, V, H);
11860
11860
  if (J == null) throw new Q("panic!");
11861
11861
  var G = m.sub(J, p), j = m.sub(J, I), Y = m.cross(v, _), tt = m.cross(w, _), et = m.cross(T, E), st = m.cross(L, E), ot = m.dot(tt, G) / m.dot(tt, v), it = m.dot(Y, G) / m.dot(Y, w), ht = m.dot(st, j) / m.dot(st, T), nt = m.dot(et, j) / m.dot(et, L);
11862
- i = m.add([ot, it], i), l = m.add([ht, nt], l), F++;
11863
- } while (F < O);
11862
+ i = m.add([ot, it], i), l = m.add([ht, nt], l), D++;
11863
+ } while (D < z);
11864
11864
  return new Cn(i, l, p, B);
11865
11865
  }, at.meshes = function(r, n, i, l) {
11866
11866
  i == null && (i = new rr(r)), l == null && (l = new rr(n));
@@ -11900,8 +11900,8 @@ var Tl = { exports: {} };
11900
11900
  w != null && w.adj == null && (v.adj = w, w.adj = v);
11901
11901
  }
11902
11902
  }
11903
- var A = u.filter(function(O) {
11904
- return O.adj == null;
11903
+ var A = u.filter(function(z) {
11904
+ return z.adj == null;
11905
11905
  });
11906
11906
  A.length == 0 && (A = u);
11907
11907
  for (var P = [], I = 0, E = !1; A.length != 0; ) {
@@ -12019,8 +12019,8 @@ var Tl = { exports: {} };
12019
12019
  for (var l = n.faces[i], u = [n.points[l[0]], n.points[l[1]], n.points[l[2]]], d = [n.uvs[l[0]], n.uvs[l[1]], n.uvs[l[2]]], p = [m.sub(d[1], d[0]), m.sub(d[2], d[1]), m.sub(d[0], d[2])], _ = [m.sub(u[1], u[0]), m.sub(u[2], u[1]), m.sub(u[0], u[2])], v = _.map(m.normalized), w = _.map(m.norm), A = null, P = null, I = 0; I < 3; ) {
12020
12020
  var E = I++, T = u[E], L = v[E], N = at.rays(T, L, r.origin, r.dir);
12021
12021
  if (N != null) {
12022
- var B = N.u0, O = N.u1;
12023
- B < -rt.EPSILON || B > w[E] + rt.EPSILON || ((A == null || O < A.u) && (A = new nn(O, m.onRay(r.origin, r.dir, O), m.onRay(d[E], p[E], B / w[E]))), (P == null || O > P.u) && (P = new nn(O, m.onRay(r.origin, r.dir, O), m.onRay(d[E], p[E], B / w[E]))));
12022
+ var B = N.u0, z = N.u1;
12023
+ B < -rt.EPSILON || B > w[E] + rt.EPSILON || ((A == null || z < A.u) && (A = new nn(z, m.onRay(r.origin, r.dir, z), m.onRay(d[E], p[E], B / w[E]))), (P == null || z > P.u) && (P = new nn(z, m.onRay(r.origin, r.dir, z), m.onRay(d[E], p[E], B / w[E]))));
12024
12024
  }
12025
12025
  }
12026
12026
  return P == null || A == null ? null : new we(A, P);
@@ -12039,8 +12039,8 @@ var Tl = { exports: {} };
12039
12039
  _ > p && (d = 1, p = _), v > p && (d = 2, p = v);
12040
12040
  var w, A, P, I;
12041
12041
  d == 0 ? (w = n[1], A = n[2], P = l[1], I = l[2]) : d == 1 ? (w = n[0], A = n[2], P = l[0], I = l[2]) : (w = n[0], A = n[1], P = l[0], I = l[1]);
12042
- var E = -m.dot(r, n), T = -m.dot(i, l), L = w * I - A * P, N = (A * T - E * I) / L, B = (E * P - w * T) / L, O;
12043
- return d == 0 ? O = [0, N, B] : d == 1 ? O = [N, 0, B] : O = [N, B, 0], new rn(O, m.normalized(u));
12042
+ var E = -m.dot(r, n), T = -m.dot(i, l), L = w * I - A * P, N = (A * T - E * I) / L, B = (E * P - w * T) / L, z;
12043
+ return d == 0 ? z = [0, N, B] : d == 1 ? z = [N, 0, B] : z = [N, B, 0], new rn(z, m.normalized(u));
12044
12044
  }, at.threePlanes = function(r, n, i, l, u, d) {
12045
12045
  var p = m.cross(i, u), _ = m.dot(r, p);
12046
12046
  if (Math.abs(_) < rt.EPSILON) return null;
@@ -12071,9 +12071,9 @@ var Tl = { exports: {} };
12071
12071
  if (Math.abs(E) < rt.EPSILON) return null;
12072
12072
  var T = I / E;
12073
12073
  if (T < 0 || T > 1) return null;
12074
- var L = m.add(r, m.mul(T, A)), N = m.dot(_, v), B = m.dot(_, _), O = m.dot(v, v), F = m.sub(L, u), V = m.dot(F, _), H = m.dot(F, v), J = N * N - B * O;
12074
+ var L = m.add(r, m.mul(T, A)), N = m.dot(_, v), B = m.dot(_, _), z = m.dot(v, v), D = m.sub(L, u), V = m.dot(D, _), H = m.dot(D, v), J = N * N - B * z;
12075
12075
  if (Math.abs(J) < rt.EPSILON) return null;
12076
- var G = (N * H - O * V) / J, j = (N * V - B * H) / J;
12076
+ var G = (N * H - z * V) / J, j = (N * V - B * H) / J;
12077
12077
  return G > 1 + rt.EPSILON || j > 1 + rt.EPSILON || j < -rt.EPSILON || G < -rt.EPSILON || G + j > 1 + rt.EPSILON ? null : new Nn(L, G, j, T);
12078
12078
  }, at.segmentAndPlane = function(r, n, i, l) {
12079
12079
  var u = m.dot(l, m.sub(n, r));
@@ -12110,13 +12110,13 @@ var Tl = { exports: {} };
12110
12110
  var P;
12111
12111
  A > 0 ? P = _t.surfaceKnotRefine(r, m.rep(A, n), i) : P = r;
12112
12112
  var I = C.knotSpan(u, n, l);
12113
- return Math.abs(n - K.first(l)) < rt.EPSILON ? I = 0 : Math.abs(n - K.last(l)) < rt.EPSILON && (I = (i ? P.controlPoints[0].length : P.controlPoints.length) - 1), i ? new Ft(P.degreeU, P.knotsU, function(E) {
12113
+ return Math.abs(n - K.first(l)) < rt.EPSILON ? I = 0 : Math.abs(n - K.last(l)) < rt.EPSILON && (I = (i ? P.controlPoints[0].length : P.controlPoints.length) - 1), i ? new Dt(P.degreeU, P.knotsU, function(E) {
12114
12114
  for (var T, L = [], N = 0, B = P.controlPoints; N < B.length; ) {
12115
- var O = B[N];
12116
- ++N, L.push(O[I]);
12115
+ var z = B[N];
12116
+ ++N, L.push(z[I]);
12117
12117
  }
12118
12118
  return T = L, T;
12119
- }()) : new Ft(P.degreeV, P.knotsV, P.controlPoints[I]);
12119
+ }()) : new Dt(P.degreeV, P.knotsV, P.controlPoints[I]);
12120
12120
  }, dt.loftedSurface = function(r, n) {
12121
12121
  r = _t.unifyCurveKnotVectors(r);
12122
12122
  var i = r[0].degree;
@@ -12131,7 +12131,7 @@ var Tl = { exports: {} };
12131
12131
  }
12132
12132
  return new Jt(i, n, l, u, d);
12133
12133
  }, dt.clonedCurve = function(r) {
12134
- return new Ft(r.degree, r.knots.slice(), r.controlPoints.map(function(n) {
12134
+ return new Dt(r.degree, r.knots.slice(), r.controlPoints.map(function(n) {
12135
12135
  return n.slice();
12136
12136
  }));
12137
12137
  }, dt.rationalBezierCurve = function(r, n) {
@@ -12139,7 +12139,7 @@ var Tl = { exports: {} };
12139
12139
  u++, l.push(0);
12140
12140
  for (var p = 0, _ = i + 1; p < _; )
12141
12141
  p++, l.push(1);
12142
- return n == null && (n = m.rep(r.length, 1)), new Ft(i, l, C.homogenize1d(r, n));
12142
+ return n == null && (n = m.rep(r.length, 1)), new Dt(i, l, C.homogenize1d(r, n));
12143
12143
  }, dt.fourPointSurface = function(r, n, i, l, u) {
12144
12144
  u == null && (u = 3);
12145
12145
  for (var d = u, p = [], _ = 0, v = u + 1; _ < v; ) {
@@ -12149,8 +12149,8 @@ var Tl = { exports: {} };
12149
12149
  }
12150
12150
  p.push(A);
12151
12151
  }
12152
- var O = m.rep(u + 1, 0), F = m.rep(u + 1, 1);
12153
- return new Jt(u, u, O.concat(F), O.concat(F), p);
12152
+ var z = m.rep(u + 1, 0), D = m.rep(u + 1, 1);
12153
+ return new Jt(u, u, z.concat(D), z.concat(D), p);
12154
12154
  }, dt.ellipseArc = function(r, n, i, l, u) {
12155
12155
  var d = m.norm(n), p = m.norm(i);
12156
12156
  n = m.normalized(n), i = m.normalized(i), u < l && (u = 2 * Math.PI + l);
@@ -12158,8 +12158,8 @@ var Tl = { exports: {} };
12158
12158
  _ <= Math.PI / 2 ? v = 1 : _ <= Math.PI ? v = 2 : _ <= 3 * Math.PI / 2 ? v = 3 : v = 4;
12159
12159
  var w = _ / v, A = Math.cos(w / 2), P = m.add(r, m.add(m.mul(d * Math.cos(l), n), m.mul(p * Math.sin(l), i))), I = m.sub(m.mul(Math.cos(l), i), m.mul(Math.sin(l), n)), E = [], T = m.zeros1d(2 * v + 3), L = 0, N = l, B = m.zeros1d(v * 2);
12160
12160
  E[0] = P, B[0] = 1;
12161
- for (var O = 1, F = v + 1; O < F; ) {
12162
- var V = O++;
12161
+ for (var z = 1, D = v + 1; z < D; ) {
12162
+ var V = z++;
12163
12163
  N += w;
12164
12164
  var H = m.add(r, m.add(m.mul(d * Math.cos(N), n), m.mul(p * Math.sin(N), i)));
12165
12165
  B[L + 2] = 1, E[L + 2] = H;
@@ -12181,7 +12181,7 @@ var Tl = { exports: {} };
12181
12181
  T[3] = T[4] = 0.25, T[5] = T[6] = 0.5, T[7] = T[8] = 0.75;
12182
12182
  break;
12183
12183
  }
12184
- return new Ft(2, T, C.homogenize1d(E, B));
12184
+ return new Dt(2, T, C.homogenize1d(E, B));
12185
12185
  }, dt.arc = function(r, n, i, l, u, d) {
12186
12186
  return dt.ellipseArc(r, m.mul(l, m.normalized(n)), m.mul(l, m.normalized(i)), u, d);
12187
12187
  }, dt.polyline = function(r) {
@@ -12192,7 +12192,7 @@ var Tl = { exports: {} };
12192
12192
  n.push(i), n = m.mul(1 / i, n);
12193
12193
  for (var p, _ = [], v = 0, w = r.length; v < w; )
12194
12194
  v++, _.push(1);
12195
- return p = _, new Ft(1, n, C.homogenize1d(r.slice(0), p));
12195
+ return p = _, new Dt(1, n, C.homogenize1d(r.slice(0), p));
12196
12196
  }, dt.extrudedSurface = function(r, n, i) {
12197
12197
  for (var l = [[], [], []], u = [[], [], []], d = C.dehomogenize1d(i.controlPoints), p = C.weight1d(i.controlPoints), _ = m.mul(n, r), v = m.mul(0.5 * n, r), w = 0, A = d.length; w < A; ) {
12198
12198
  var P = w++;
@@ -12209,8 +12209,8 @@ var Tl = { exports: {} };
12209
12209
  var P = A++;
12210
12210
  _[P] = 0, _[w + P] = 1;
12211
12211
  }
12212
- for (var I = Math.cos(v / 2), E = 0, T = m.zeros1d(p + 1), L = m.zeros1d(p + 1), N = m.zeros3d(2 * p + 1, u.length, 3), B = m.zeros2d(2 * p + 1, u.length), O = 1, F = p + 1; O < F; ) {
12213
- var V = O++;
12212
+ for (var I = Math.cos(v / 2), E = 0, T = m.zeros1d(p + 1), L = m.zeros1d(p + 1), N = m.zeros3d(2 * p + 1, u.length, 3), B = m.zeros2d(2 * p + 1, u.length), z = 1, D = p + 1; z < D; ) {
12213
+ var V = z++;
12214
12214
  E += v, L[V] = Math.cos(E), T[V] = Math.sin(E);
12215
12215
  }
12216
12216
  for (var H = 0, J = u.length; H < J; ) {
@@ -12235,7 +12235,7 @@ var Tl = { exports: {} };
12235
12235
  var u = dt.arc(r, m.mul(-1, n), i, l, 0, Math.PI);
12236
12236
  return dt.revolvedSurface(u, r, n, 2 * Math.PI);
12237
12237
  }, dt.conicalSurface = function(r, n, i, l, u) {
12238
- var d = 2 * Math.PI, p = 1, _ = [m.add(i, m.mul(l, r)), m.add(i, m.mul(u, n))], v = [0, 0, 1, 1], w = [1, 1], A = new Ft(p, v, C.homogenize1d(_, w));
12238
+ var d = 2 * Math.PI, p = 1, _ = [m.add(i, m.mul(l, r)), m.add(i, m.mul(u, n))], v = [0, 0, 1, 1], w = [1, 1], A = new Dt(p, v, C.homogenize1d(_, w));
12239
12239
  return dt.revolvedSurface(A, i, r, d);
12240
12240
  }, dt.rationalInterpCurve = function(r, n, i, l, u) {
12241
12241
  if (i == null && (i = !1), n == null && (n = 3), r.length < n + 1) throw new Q("You need to supply at least degree + 1 points! You only supplied " + r.length + " points.");
@@ -12249,10 +12249,10 @@ var Tl = { exports: {} };
12249
12249
  }
12250
12250
  var L = m.rep(n + 1, 0), N = l != null && u != null, B;
12251
12251
  N ? B = 0 : B = 1;
12252
- var O;
12253
- N ? O = d.length - n + 1 : O = d.length - n;
12254
- for (var F = B; F < O; ) {
12255
- for (var V = F++, H = 0, J = 0; J < n; ) {
12252
+ var z;
12253
+ N ? z = d.length - n + 1 : z = d.length - n;
12254
+ for (var D = B; D < z; ) {
12255
+ for (var V = D++, H = 0, J = 0; J < n; ) {
12256
12256
  var G = J++;
12257
12257
  H += d[V + G];
12258
12258
  }
@@ -12272,8 +12272,8 @@ var Tl = { exports: {} };
12272
12272
  var pt = Y[0].length - 2, Pt = [-1, 1].concat(m.zeros1d(pt)), Vt = m.zeros1d(pt).concat([-1, 1]);
12273
12273
  K.spliceAndInsert(Y, 1, 0, Pt), K.spliceAndInsert(Y, Y.length - 1, 0, Vt);
12274
12274
  }
12275
- for (var qt = r[0].length, Bt = [], Yt = (1 - j[j.length - n - 2]) / n, Pe = j[n + 1] / n, De = 0; De < qt; ) {
12276
- var _e = [De++], ge;
12275
+ for (var qt = r[0].length, Bt = [], Yt = (1 - j[j.length - n - 2]) / n, Pe = j[n + 1] / n, Fe = 0; Fe < qt; ) {
12276
+ var _e = [Fe++], ge;
12277
12277
  if (!N) ge = r.map(/* @__PURE__ */ function(Ke) {
12278
12278
  return function(lr) {
12279
12279
  return lr[Ke[0]];
@@ -12295,12 +12295,12 @@ var Tl = { exports: {} };
12295
12295
  var Ye = m.rep(qe.length, 1);
12296
12296
  qe = C.homogenize1d(qe, Ye);
12297
12297
  }
12298
- return new Ft(n, j, qe);
12298
+ return new Dt(n, j, qe);
12299
12299
  };
12300
12300
  var _t = f.eval.Modify = function() {
12301
12301
  };
12302
12302
  b["verb.eval.Modify"] = _t, _t.__name__ = ["verb", "eval", "Modify"], _t.curveReverse = function(r) {
12303
- return new Ft(r.degree, _t.knotsReverse(r.knots), K.reversed(r.controlPoints));
12303
+ return new Dt(r.degree, _t.knotsReverse(r.knots), K.reversed(r.controlPoints));
12304
12304
  }, _t.surfaceReverse = function(r, n) {
12305
12305
  return n == null && (n = !1), n ? new Jt(r.degreeU, r.degreeV, r.knotsU, _t.knotsReverse(r.knotsV), function(i) {
12306
12306
  for (var l, u = [], d = 0, p = r.controlPoints; d < p.length; ) {
@@ -12319,7 +12319,7 @@ var Tl = { exports: {} };
12319
12319
  return i;
12320
12320
  }, _t.unifyCurveKnotVectors = function(r) {
12321
12321
  r = r.map(dt.clonedCurve);
12322
- for (var n = R.fold(r, function(j, Y) {
12322
+ for (var n = O.fold(r, function(j, Y) {
12323
12323
  return _t.imax(j.degree, Y);
12324
12324
  }, 0), i = 0, l = r.length; i < l; ) {
12325
12325
  var u = i++;
@@ -12340,20 +12340,20 @@ var Tl = { exports: {} };
12340
12340
  }
12341
12341
  for (var E = d.map(function(j) {
12342
12342
  return j.max - j.min;
12343
- }), T = R.fold(E, function(j, Y) {
12343
+ }), T = O.fold(E, function(j, Y) {
12344
12344
  return Math.max(j, Y);
12345
12345
  }, 0), L = 0, N = r.length; L < N; ) {
12346
- var B = L++, O = [T / E[B]];
12346
+ var B = L++, z = [T / E[B]];
12347
12347
  r[B].knots = r[B].knots.map(/* @__PURE__ */ function(j) {
12348
12348
  return function(Y) {
12349
12349
  return Y * j[0];
12350
12350
  };
12351
- }(O));
12351
+ }(z));
12352
12352
  }
12353
- for (var F = R.fold(r, function(j, Y) {
12353
+ for (var D = O.fold(r, function(j, Y) {
12354
12354
  return m.sortedSetUnion(j.knots, Y);
12355
12355
  }, []), V = 0, H = r.length; V < H; ) {
12356
- var J = V++, G = m.sortedSetSub(F, r[J].knots);
12356
+ var J = V++, G = m.sortedSetSub(D, r[J].knots);
12357
12357
  G.length == 0 && (r[J] = r[J]), r[J] = _t.curveKnotRefine(r[J], G);
12358
12358
  }
12359
12359
  return r;
@@ -12365,10 +12365,10 @@ var Tl = { exports: {} };
12365
12365
  if (n <= r.degree) return r;
12366
12366
  var i = r.knots.length - r.degree - 2, l = r.degree, u = r.knots, d = r.controlPoints, p = n - r.degree, _ = r.controlPoints[0].length, v = m.zeros2d(l + p + 1, l + 1), w = [], A = [], P = [], I = i + l + 1, E = n, T = Math.floor(E / 2), L = [], N = [];
12367
12367
  v[0][0] = 1, v[E][l] = 1;
12368
- for (var B = 1, O = T + 1; B < O; )
12369
- for (var F = B++, V = 1 / zt.get(E, F), H = _t.imin(l, F), J = _t.imax(0, F - p), G = H + 1; J < G; ) {
12368
+ for (var B = 1, z = T + 1; B < z; )
12369
+ for (var D = B++, V = 1 / zt.get(E, D), H = _t.imin(l, D), J = _t.imax(0, D - p), G = H + 1; J < G; ) {
12370
12370
  var j = J++;
12371
- v[F][j] = V * zt.get(l, j) * zt.get(p, F - j);
12371
+ v[D][j] = V * zt.get(l, j) * zt.get(p, D - j);
12372
12372
  }
12373
12373
  for (var Y = T + 1; Y < E; )
12374
12374
  for (var tt = Y++, et = _t.imin(l, tt), st = _t.imax(0, tt - p), ot = et + 1; st < ot; ) {
@@ -12382,8 +12382,8 @@ var Tl = { exports: {} };
12382
12382
  N[Bt] = Pt;
12383
12383
  }
12384
12384
  for (var Yt = 0, Pe = l + 1; Yt < Pe; ) {
12385
- var De = Yt++;
12386
- w[De] = d[De];
12385
+ var Fe = Yt++;
12386
+ w[Fe] = d[Fe];
12387
12387
  }
12388
12388
  for (; q < I; ) {
12389
12389
  for (var _e = q; q < I && u[q] == u[q + 1]; ) q = q + 1;
@@ -12396,8 +12396,8 @@ var Tl = { exports: {} };
12396
12396
  for (var qe = Ae - Pt, Ye = [], Ke = l; Ke > ge; )
12397
12397
  Ye[Ke - ge - 1] = qe / (u[ct + Ke] - Pt), Ke--;
12398
12398
  for (var lr = 1, dn = nt + 1; lr < dn; ) {
12399
- for (var Dr = lr++, Gl = nt - Dr, $s = ge + Dr, Fr = l; Fr >= $s; )
12400
- w[Fr] = m.add(m.mul(Ye[Fr - $s], w[Fr]), m.mul(1 - Ye[Fr - $s], w[Fr - 1])), Fr--;
12399
+ for (var Fr = lr++, Gl = nt - Fr, $s = ge + Fr, Dr = l; Dr >= $s; )
12400
+ w[Dr] = m.add(m.mul(Ye[Dr - $s], w[Dr]), m.mul(1 - Ye[Dr - $s], w[Dr - 1])), Dr--;
12401
12401
  P[Gl] = w[l];
12402
12402
  }
12403
12403
  }
@@ -12410,15 +12410,15 @@ var Tl = { exports: {} };
12410
12410
  }
12411
12411
  }
12412
12412
  if (Te > 1)
12413
- for (var Zs = ht - 2, Qs = ht, Da = Ae - Pt, Yl = (Ae - N[ht - 1]) / Da, Fa = 1; Fa < Te; ) {
12414
- for (var Js = Fa++, hr = Zs, Vr = Qs, Tr = Vr - ht + 1; Vr - hr > Js; ) {
12413
+ for (var Zs = ht - 2, Qs = ht, Fa = Ae - Pt, Yl = (Ae - N[ht - 1]) / Fa, Da = 1; Da < Te; ) {
12414
+ for (var Js = Da++, hr = Zs, Vr = Qs, Tr = Vr - ht + 1; Vr - hr > Js; ) {
12415
12415
  if (hr < pt) {
12416
12416
  var Kl = (Ae - N[hr]) / (Pt - N[hr]);
12417
12417
  L[hr] = m.lerp(Kl, L[hr], L[hr - 1]);
12418
12418
  }
12419
12419
  if (Vr >= He) {
12420
12420
  if (Vr - Js <= ht - E + Te) {
12421
- var Xl = (Ae - N[Vr - Js]) / Da;
12421
+ var Xl = (Ae - N[Vr - Js]) / Fa;
12422
12422
  A[Tr] = m.lerp(Xl, A[Tr], A[Tr + 1]);
12423
12423
  }
12424
12424
  } else A[Tr] = m.lerp(Yl, A[Tr], A[Tr + 1]);
@@ -12449,7 +12449,7 @@ var Tl = { exports: {} };
12449
12449
  N[ht + eh] = Ae;
12450
12450
  }
12451
12451
  }
12452
- return new Ft(n, N, L);
12452
+ return new Dt(n, N, L);
12453
12453
  }, _t.rationalSurfaceTransform = function(r, n) {
12454
12454
  for (var i = C.dehomogenize2d(r.controlPoints), l = 0, u = i.length; l < u; )
12455
12455
  for (var d = l++, p = 0, _ = i[d].length; p < _; ) {
@@ -12462,13 +12462,13 @@ var Tl = { exports: {} };
12462
12462
  var d = l++, p = i[d];
12463
12463
  p.push(1), i[d] = Mt.dot(n, p).slice(0, p.length - 1);
12464
12464
  }
12465
- return new Ft(r.degree, r.knots.slice(), C.homogenize1d(i, C.weight1d(r.controlPoints)));
12465
+ return new Dt(r.degree, r.knots.slice(), C.homogenize1d(i, C.weight1d(r.controlPoints)));
12466
12466
  }, _t.surfaceKnotRefine = function(r, n, i) {
12467
12467
  var l = [], u, d, p;
12468
12468
  i ? (p = r.controlPoints, u = r.knotsV, d = r.degreeV) : (p = Mt.transpose(r.controlPoints), u = r.knotsU, d = r.degreeU);
12469
12469
  for (var _ = null, v = 0; v < p.length; ) {
12470
12470
  var w = p[v];
12471
- ++v, _ = _t.curveKnotRefine(new Ft(d, u, w), n), l.push(_.controlPoints);
12471
+ ++v, _ = _t.curveKnotRefine(new Dt(d, u, w), n), l.push(_.controlPoints);
12472
12472
  }
12473
12473
  var A = _.knots;
12474
12474
  return i ? new Jt(r.degreeU, r.degreeV, r.knotsU.slice(), A, l) : (l = Mt.transpose(l), new Jt(r.degreeU, r.degreeV, A, r.knotsV.slice(), l));
@@ -12476,14 +12476,14 @@ var Tl = { exports: {} };
12476
12476
  for (var n = r.degree, i = r.controlPoints, l = r.knots, u = yt.knotMultiplicities(l), d = n + 1, p = 0; p < u.length; ) {
12477
12477
  var _ = u[p];
12478
12478
  if (++p, _.mult < d) {
12479
- var v = m.rep(d - _.mult, _.knot), w = _t.curveKnotRefine(new Ft(n, l, i), v);
12479
+ var v = m.rep(d - _.mult, _.knot), w = _t.curveKnotRefine(new Dt(n, l, i), v);
12480
12480
  l = w.knots, i = w.controlPoints;
12481
12481
  }
12482
12482
  }
12483
12483
  l.length / d - 1;
12484
12484
  for (var A = d * 2, P = [], I = 0; I < i.length; ) {
12485
12485
  var E = l.slice(I, I + A), T = i.slice(I, I + d);
12486
- P.push(new Ft(n, E, T)), I += d;
12486
+ P.push(new Dt(n, E, T)), I += d;
12487
12487
  }
12488
12488
  return P;
12489
12489
  }, _t.curveKnotRefine = function(r, n) {
@@ -12496,8 +12496,8 @@ var Tl = { exports: {} };
12496
12496
  var B = L++;
12497
12497
  A[B + _ + 1] = l[B];
12498
12498
  }
12499
- for (var O = 0, F = v + 1; O < F; ) {
12500
- var V = O++;
12499
+ for (var z = 0, D = v + 1; z < D; ) {
12500
+ var V = z++;
12501
12501
  P[V] = u[V];
12502
12502
  }
12503
12503
  for (var H = w + i, J = p + 1; H < J; ) {
@@ -12514,7 +12514,7 @@ var Tl = { exports: {} };
12514
12514
  }
12515
12515
  P[Y] = n[tt], Y = Y - 1, tt--;
12516
12516
  }
12517
- return new Ft(i, P, A);
12517
+ return new Dt(i, P, A);
12518
12518
  }, _t.curveKnotInsert = function(r, n, i) {
12519
12519
  for (var l = r.degree, u = r.controlPoints, d = r.knots, p = 0, _ = u.length, v = C.knotSpan(l, n, d), w = [], A = [], P = [], I = 1, E = v + 1; I < E; ) {
12520
12520
  var T = I++;
@@ -12524,8 +12524,8 @@ var Tl = { exports: {} };
12524
12524
  var B = L++;
12525
12525
  A[v + B] = n;
12526
12526
  }
12527
- for (var O = v + 1, F = d.length; O < F; ) {
12528
- var V = O++;
12527
+ for (var z = v + 1, D = d.length; z < D; ) {
12528
+ var V = z++;
12529
12529
  A[V + i] = d[V];
12530
12530
  }
12531
12531
  for (var H = 0, J = v - l + 1; H < J; ) {
@@ -12553,7 +12553,7 @@ var Tl = { exports: {} };
12553
12553
  var Bt = Vt++;
12554
12554
  P[Bt] = w[Bt - ot];
12555
12555
  }
12556
- return new Ft(l, A, P);
12556
+ return new Dt(l, A, P);
12557
12557
  };
12558
12558
  var Lt = f.eval.Tess = function() {
12559
12559
  };
@@ -12587,9 +12587,9 @@ var Tl = { exports: {} };
12587
12587
  n < 1 && (n = 1), i < 1 && (i = 1), r.degreeU, r.degreeV, r.controlPoints;
12588
12588
  for (var l = r.knotsU, u = r.knotsV, d = K.last(l) - l[0], p = K.last(u) - u[0], _ = d / n, v = p / i, w = [], A = [], P = [], I = 0, E = n + 1; I < E; )
12589
12589
  for (var T = I++, L = 0, N = i + 1; L < N; ) {
12590
- var B = L++, O = T * _, F = B * v;
12591
- A.push([O, F]);
12592
- var V = C.rationalSurfaceDerivatives(r, O, F, 1), H = V[0][0];
12590
+ var B = L++, z = T * _, D = B * v;
12591
+ A.push([z, D]);
12592
+ var V = C.rationalSurfaceDerivatives(r, z, D, 1), H = V[0][0];
12593
12593
  w.push(H);
12594
12594
  var J = m.normalized(m.cross(V[1][0], V[0][1]));
12595
12595
  P.push(J);
@@ -12607,8 +12607,8 @@ var Tl = { exports: {} };
12607
12607
  var d;
12608
12608
  n.minDivsV > l ? d = n.minDivsV = n.minDivsV : d = n.minDivsV = l;
12609
12609
  for (var p = K.last(r.knotsU), _ = r.knotsU[0], v = K.last(r.knotsV), w = r.knotsV[0], A = (p - _) / u, P = (v - w) / d, I = [], E = [], T = 0, L = d + 1; T < L; ) {
12610
- for (var N = T++, B = [], O = 0, F = u + 1; O < F; ) {
12611
- var V = O++, H = _ + A * V, J = w + P * N, G = C.rationalSurfaceDerivatives(r, H, J, 1), j = m.normalized(m.cross(G[0][1], G[1][0]));
12610
+ for (var N = T++, B = [], z = 0, D = u + 1; z < D; ) {
12611
+ var V = z++, H = _ + A * V, J = w + P * N, G = C.rationalSurfaceDerivatives(r, H, J, 1), j = m.normalized(m.cross(G[0][1], G[1][0]));
12612
12612
  B.push(new Re(G[0][0], j, [H, J], -1, m.isZero(j)));
12613
12613
  }
12614
12614
  E.push(B);
@@ -12870,7 +12870,7 @@ var Tl = { exports: {} };
12870
12870
  this._data = Be.isValidNurbsCurveData(r);
12871
12871
  };
12872
12872
  b["verb.geom.NurbsCurve"] = kt, kt.__name__ = ["verb", "geom", "NurbsCurve"], kt.__interfaces__ = [un], kt.byKnotsControlPointsWeights = function(r, n, i, l) {
12873
- return new kt(new Ft(r, n.slice(), C.homogenize1d(i, l)));
12873
+ return new kt(new Dt(r, n.slice(), C.homogenize1d(i, l)));
12874
12874
  }, kt.byPoints = function(r, n) {
12875
12875
  return n == null && (n = 3), new kt(dt.rationalInterpCurve(r, n));
12876
12876
  }, kt.__super__ = Xt, kt.prototype = M(Xt.prototype, {
@@ -12887,7 +12887,7 @@ var Tl = { exports: {} };
12887
12887
  return C.weight1d(this._data.controlPoints);
12888
12888
  },
12889
12889
  asNurbs: function() {
12890
- return new Ft(this.degree(), this.knots(), C.homogenize1d(this.controlPoints(), this.weights()));
12890
+ return new Dt(this.degree(), this.knots(), C.homogenize1d(this.controlPoints(), this.weights()));
12891
12891
  },
12892
12892
  clone: function() {
12893
12893
  return new kt(this._data);
@@ -13021,11 +13021,11 @@ var Tl = { exports: {} };
13021
13021
  b["verb.geom.BezierCurve"] = Bn, Bn.__name__ = ["verb", "geom", "BezierCurve"], Bn.__super__ = kt, Bn.prototype = M(kt.prototype, {
13022
13022
  __class__: Bn
13023
13023
  });
13024
- var Dn = f.geom.Circle = function(r, n, i, l) {
13024
+ var Fn = f.geom.Circle = function(r, n, i, l) {
13025
13025
  kr.call(this, r, n, i, l, 0, Math.PI * 2);
13026
13026
  };
13027
- b["verb.geom.Circle"] = Dn, Dn.__name__ = ["verb", "geom", "Circle"], Dn.__super__ = kr, Dn.prototype = M(kr.prototype, {
13028
- __class__: Dn
13027
+ b["verb.geom.Circle"] = Fn, Fn.__name__ = ["verb", "geom", "Circle"], Fn.__super__ = kr, Fn.prototype = M(kr.prototype, {
13028
+ __class__: Fn
13029
13029
  });
13030
13030
  var cn = function() {
13031
13031
  };
@@ -13164,10 +13164,10 @@ var Tl = { exports: {} };
13164
13164
  },
13165
13165
  __class__: At
13166
13166
  });
13167
- var Fn = f.geom.ConicalSurface = function(r, n, i, l, u) {
13167
+ var Dn = f.geom.ConicalSurface = function(r, n, i, l, u) {
13168
13168
  At.call(this, dt.conicalSurface(r, n, i, l, u)), this._axis = r, this._xaxis = n, this._base = i, this._height = l, this._radius = u;
13169
13169
  };
13170
- b["verb.geom.ConicalSurface"] = Fn, Fn.__name__ = ["verb", "geom", "ConicalSurface"], Fn.__super__ = At, Fn.prototype = M(At.prototype, {
13170
+ b["verb.geom.ConicalSurface"] = Dn, Dn.__name__ = ["verb", "geom", "ConicalSurface"], Dn.__super__ = At, Dn.prototype = M(At.prototype, {
13171
13171
  axis: function() {
13172
13172
  return this._axis;
13173
13173
  },
@@ -13183,7 +13183,7 @@ var Tl = { exports: {} };
13183
13183
  radius: function() {
13184
13184
  return this._radius;
13185
13185
  },
13186
- __class__: Fn
13186
+ __class__: Dn
13187
13187
  });
13188
13188
  var Vn = f.geom.CylindricalSurface = function(r, n, i, l, u) {
13189
13189
  At.call(this, dt.cylindricalSurface(r, n, i, l, u)), this._axis = r, this._xaxis = n, this._base = i, this._height = l, this._radius = u;
@@ -13322,7 +13322,7 @@ var Tl = { exports: {} };
13322
13322
  });
13323
13323
  function We(r) {
13324
13324
  return r instanceof Array ? function() {
13325
- return z.iter(r);
13325
+ return R.iter(r);
13326
13326
  } : typeof r.iterator == "function" ? Me(r, r.iterator) : r.iterator;
13327
13327
  }
13328
13328
  var Ys, Vl = 0;
@@ -13360,79 +13360,79 @@ var Tl = { exports: {} };
13360
13360
  if (r.setImmediate)
13361
13361
  return;
13362
13362
  var i = 1, l = {}, u = !1, d = r.document, p;
13363
- function _(O) {
13364
- return l[i] = v.apply(n, O), i++;
13363
+ function _(z) {
13364
+ return l[i] = v.apply(n, z), i++;
13365
13365
  }
13366
- function v(O) {
13367
- var F = [].slice.call(arguments, 1);
13366
+ function v(z) {
13367
+ var D = [].slice.call(arguments, 1);
13368
13368
  return function() {
13369
- typeof O == "function" ? O.apply(n, F) : new Function("" + O)();
13369
+ typeof z == "function" ? z.apply(n, D) : new Function("" + z)();
13370
13370
  };
13371
13371
  }
13372
- function w(O) {
13372
+ function w(z) {
13373
13373
  if (u)
13374
- setTimeout(v(w, O), 0);
13374
+ setTimeout(v(w, z), 0);
13375
13375
  else {
13376
- var F = l[O];
13377
- if (F) {
13376
+ var D = l[z];
13377
+ if (D) {
13378
13378
  u = !0;
13379
13379
  try {
13380
- F();
13380
+ D();
13381
13381
  } finally {
13382
- A(O), u = !1;
13382
+ A(z), u = !1;
13383
13383
  }
13384
13384
  }
13385
13385
  }
13386
13386
  }
13387
- function A(O) {
13388
- delete l[O];
13387
+ function A(z) {
13388
+ delete l[z];
13389
13389
  }
13390
13390
  function P() {
13391
13391
  p = function() {
13392
- var O = _(arguments);
13393
- return process.nextTick(v(w, O)), O;
13392
+ var z = _(arguments);
13393
+ return process.nextTick(v(w, z)), z;
13394
13394
  };
13395
13395
  }
13396
13396
  function I() {
13397
13397
  if (r.postMessage && !r.importScripts) {
13398
- var O = !0, F = r.onmessage;
13398
+ var z = !0, D = r.onmessage;
13399
13399
  return r.onmessage = function() {
13400
- O = !1;
13401
- }, r.postMessage("", "*"), r.onmessage = F, O;
13400
+ z = !1;
13401
+ }, r.postMessage("", "*"), r.onmessage = D, z;
13402
13402
  }
13403
13403
  }
13404
13404
  function E() {
13405
- var O = "setImmediate$" + Math.random() + "$", F = function(V) {
13406
- V.source === r && typeof V.data == "string" && V.data.indexOf(O) === 0 && w(+V.data.slice(O.length));
13405
+ var z = "setImmediate$" + Math.random() + "$", D = function(V) {
13406
+ V.source === r && typeof V.data == "string" && V.data.indexOf(z) === 0 && w(+V.data.slice(z.length));
13407
13407
  };
13408
- r.addEventListener ? r.addEventListener("message", F, !1) : r.attachEvent("onmessage", F), p = function() {
13408
+ r.addEventListener ? r.addEventListener("message", D, !1) : r.attachEvent("onmessage", D), p = function() {
13409
13409
  var V = _(arguments);
13410
- return r.postMessage(O + V, "*"), V;
13410
+ return r.postMessage(z + V, "*"), V;
13411
13411
  };
13412
13412
  }
13413
13413
  function T() {
13414
- var O = new MessageChannel();
13415
- O.port1.onmessage = function(F) {
13416
- var V = F.data;
13414
+ var z = new MessageChannel();
13415
+ z.port1.onmessage = function(D) {
13416
+ var V = D.data;
13417
13417
  w(V);
13418
13418
  }, p = function() {
13419
- var F = _(arguments);
13420
- return O.port2.postMessage(F), F;
13419
+ var D = _(arguments);
13420
+ return z.port2.postMessage(D), D;
13421
13421
  };
13422
13422
  }
13423
13423
  function L() {
13424
- var O = d.documentElement;
13424
+ var z = d.documentElement;
13425
13425
  p = function() {
13426
- var F = _(arguments), V = d.createElement("script");
13426
+ var D = _(arguments), V = d.createElement("script");
13427
13427
  return V.onreadystatechange = function() {
13428
- w(F), V.onreadystatechange = null, O.removeChild(V), V = null;
13429
- }, O.appendChild(V), F;
13428
+ w(D), V.onreadystatechange = null, z.removeChild(V), V = null;
13429
+ }, z.appendChild(V), D;
13430
13430
  };
13431
13431
  }
13432
13432
  function N() {
13433
13433
  p = function() {
13434
- var O = _(arguments);
13435
- return setTimeout(v(w, O), 0), O;
13434
+ var z = _(arguments);
13435
+ return setTimeout(v(w, z), 0), z;
13436
13436
  };
13437
13437
  }
13438
13438
  var B = Object.getPrototypeOf && Object.getPrototypeOf(r);
@@ -13564,8 +13564,8 @@ class xc extends ps {
13564
13564
  const b = o[g % h], k = o[(g + 1) % h];
13565
13565
  if (this._closed || g + 2 < h ? S = o[(g + 2) % h] : (this._tmp.subVectors(o[h - 1], o[h - 2]).add(o[h - 1]), S = new X(this._tmp.x, this._tmp.y, this._tmp.z)), this._curveType === "centripetal" || this._curveType === "chordal") {
13566
13566
  const M = this._curveType === "chordal" ? 0.5 : 0.25;
13567
- let z = Math.pow(f.distanceToSquared(b), M), R = Math.pow(b.distanceToSquared(k), M), U = Math.pow(k.distanceToSquared(S), M);
13568
- R < 1e-4 && (R = 1), z < 1e-4 && (z = R), U < 1e-4 && (U = R), this._px.initNonuniformCatmullRom(f.x, b.x, k.x, S.x, z, R, U), this._py.initNonuniformCatmullRom(f.y, b.y, k.y, S.y, z, R, U), this._pz.initNonuniformCatmullRom(f.z, b.z, k.z, S.z, z, R, U);
13567
+ let R = Math.pow(f.distanceToSquared(b), M), O = Math.pow(b.distanceToSquared(k), M), U = Math.pow(k.distanceToSquared(S), M);
13568
+ O < 1e-4 && (O = 1), R < 1e-4 && (R = O), U < 1e-4 && (U = O), this._px.initNonuniformCatmullRom(f.x, b.x, k.x, S.x, R, O, U), this._py.initNonuniformCatmullRom(f.y, b.y, k.y, S.y, R, O, U), this._pz.initNonuniformCatmullRom(f.z, b.z, k.z, S.z, R, O, U);
13569
13569
  } else this._curveType === "catmullrom" && (this._px.initCatmullRom(f.x, b.x, k.x, S.x, this._tension), this._py.initCatmullRom(f.y, b.y, k.y, S.y, this._tension), this._pz.initCatmullRom(f.z, b.z, k.z, S.z, this._tension));
13570
13570
  return s.set(
13571
13571
  this._px.calc(x),
@@ -14137,7 +14137,7 @@ class Jr {
14137
14137
  * ```
14138
14138
  */
14139
14139
  get database() {
14140
- return this._database ? this._database : Fl().workingDatabase;
14140
+ return this._database ? this._database : Dl().workingDatabase;
14141
14141
  }
14142
14142
  /**
14143
14143
  * Sets the database for this object.
@@ -14749,7 +14749,7 @@ const sa = class sa extends Je {
14749
14749
  }
14750
14750
  };
14751
14751
  sa.typeName = "BlockReference";
14752
- let Ds = sa;
14752
+ let Fs = sa;
14753
14753
  const ia = class ia extends Je {
14754
14754
  };
14755
14755
  ia.typeName = "Curve";
@@ -16443,8 +16443,8 @@ const ma = class ma extends Ue {
16443
16443
  }
16444
16444
  };
16445
16445
  ma.typeName = "Spline";
16446
- let Fs = ma;
16447
- const Sc = /* @__PURE__ */ new $(), pa = class pa extends Ds {
16446
+ let Ds = ma;
16447
+ const Sc = /* @__PURE__ */ new $(), pa = class pa extends Fs {
16448
16448
  /**
16449
16449
  * Creates a new table entity.
16450
16450
  *
@@ -16652,33 +16652,33 @@ const Sc = /* @__PURE__ */ new $(), pa = class pa extends Ds {
16652
16652
  s += k > 0 ? this.columnWidth(k - 1) : 0, e = 0;
16653
16653
  for (let M = 0; M < this.numRows; M++) {
16654
16654
  e += M > 0 ? this.rowHeight(M - 1) : 0;
16655
- const z = this.cell(M * this.numColumns + k);
16656
- if (f = M * this.numColumns + k, z && !x[f]) {
16657
- const R = z.borderWidth ?? 1, U = z.borderHeight ?? 1;
16655
+ const R = this.cell(M * this.numColumns + k);
16656
+ if (f = M * this.numColumns + k, R && !x[f]) {
16657
+ const O = R.borderWidth ?? 1, U = R.borderHeight ?? 1;
16658
16658
  this.fillVisited(
16659
16659
  x,
16660
16660
  f,
16661
16661
  this.numColumns,
16662
- R,
16662
+ O,
16663
16663
  U
16664
- ), o[c++] = k + M * (this.numColumns + 1), o[c++] = k + M * (this.numColumns + 1) + R;
16665
- const D = h[o[c - 1] * 3] - s, gt = k + (M + U) * (this.numColumns + 1) + R;
16666
- k + R == this.numColumns && (o[c++] = k + M * (this.numColumns + 1) + R, o[c++] = gt);
16664
+ ), o[c++] = k + M * (this.numColumns + 1), o[c++] = k + M * (this.numColumns + 1) + O;
16665
+ const F = h[o[c - 1] * 3] - s, gt = k + (M + U) * (this.numColumns + 1) + O;
16666
+ k + O == this.numColumns && (o[c++] = k + M * (this.numColumns + 1) + O, o[c++] = gt);
16667
16667
  const ft = -h[gt * 3 + 1] - e;
16668
- if (M + U == this.numRows && (o[c++] = k + (M + U) * (this.numColumns + 1) + U, o[c++] = k + (M + U) * (this.numColumns + 1)), o[c++] = k + (M + U) * (this.numColumns + 1), o[c++] = k + M * (this.numColumns + 1), z.text) {
16669
- const ut = z.attachmentPoint || this.attachmentPoint || cs.MiddleCenter, W = this.getTableTextOffset(
16668
+ if (M + U == this.numRows && (o[c++] = k + (M + U) * (this.numColumns + 1) + U, o[c++] = k + (M + U) * (this.numColumns + 1)), o[c++] = k + (M + U) * (this.numColumns + 1), o[c++] = k + M * (this.numColumns + 1), R.text) {
16669
+ const ut = R.attachmentPoint || this.attachmentPoint || cs.MiddleCenter, W = this.getTableTextOffset(
16670
16670
  ut,
16671
- D,
16671
+ F,
16672
16672
  ft
16673
16673
  ), mt = {
16674
- text: z.text,
16675
- height: z.textHeight,
16676
- width: D,
16674
+ text: R.text,
16675
+ height: R.textHeight,
16676
+ width: F,
16677
16677
  position: Sc.set(s, -e, 0).clone().add(W),
16678
16678
  rotation: this.rotation,
16679
16679
  attachmentPoint: ut
16680
16680
  }, lt = {
16681
- ...this.getTextStyle(z),
16681
+ ...this.getTextStyle(R),
16682
16682
  color: this.color.color
16683
16683
  };
16684
16684
  g.push(t.mtext(mt, lt));
@@ -18321,7 +18321,7 @@ const wa = class wa extends Vs {
18321
18321
  }
18322
18322
  };
18323
18323
  wa.typeName = "Wipeout";
18324
- let Di = wa;
18324
+ let Fi = wa;
18325
18325
  const Pa = class Pa extends Ue {
18326
18326
  /**
18327
18327
  * Creates a new xline entity.
@@ -18474,7 +18474,7 @@ const Pa = class Pa extends Ue {
18474
18474
  }
18475
18475
  };
18476
18476
  Pa.typeName = "Xline";
18477
- let Fi = Pa;
18477
+ let Di = Pa;
18478
18478
  var Tc = /* @__PURE__ */ ((a) => (a[a.AtLeast = 1] = "AtLeast", a[a.Exactly = 2] = "Exactly", a))(Tc || {});
18479
18479
  const Aa = class Aa extends Je {
18480
18480
  /**
@@ -19775,7 +19775,7 @@ class uo {
19775
19775
  }
19776
19776
  convertSpline(t) {
19777
19777
  if (t.numberOfControlPoints > 0 && t.numberOfKnots > 0)
19778
- return new Fs(
19778
+ return new Ds(
19779
19779
  t.controlPoints,
19780
19780
  t.knots,
19781
19781
  t.weights,
@@ -19788,7 +19788,7 @@ class uo {
19788
19788
  t.numberOfFitPoints
19789
19789
  );
19790
19790
  if (e != null)
19791
- return new Fs(
19791
+ return new Ds(
19792
19792
  e,
19793
19793
  "Uniform",
19794
19794
  t.degree,
@@ -19860,15 +19860,15 @@ class uo {
19860
19860
  const k = Math.sqrt(
19861
19861
  Math.pow(S.end.x, 2) + Math.pow(S.end.y, 2)
19862
19862
  ), M = k * S.lengthOfMinorAxis;
19863
- let z = Ot.degToRad(S.startAngle || 0), R = Ot.degToRad(S.endAngle || 0);
19863
+ let R = Ot.degToRad(S.startAngle || 0), O = Ot.degToRad(S.endAngle || 0);
19864
19864
  const U = Math.atan2(S.end.y, S.end.x);
19865
- S.isCCW || (z = Math.PI * 2 - z, R = Math.PI * 2 - R), x.add(
19865
+ S.isCCW || (R = Math.PI * 2 - R, O = Math.PI * 2 - O), x.add(
19866
19866
  new Qi(
19867
19867
  { ...S.center, z: 0 },
19868
19868
  k,
19869
19869
  M,
19870
- z,
19871
19870
  R,
19871
+ O,
19872
19872
  !S.isCCW,
19873
19873
  U
19874
19874
  )
@@ -19877,14 +19877,14 @@ class uo {
19877
19877
  const S = f;
19878
19878
  if (S.numberOfControlPoints > 0 && S.numberOfKnots > 0) {
19879
19879
  const b = S.controlPoints.map(
19880
- (z) => ({
19881
- x: z.x,
19882
- y: z.y,
19880
+ (R) => ({
19881
+ x: R.x,
19882
+ y: R.y,
19883
19883
  z: 0
19884
19884
  })
19885
19885
  );
19886
19886
  let k = !0;
19887
- const M = S.controlPoints.map((z) => (z.weight == null && (k = !1), z.weight || 1));
19887
+ const M = S.controlPoints.map((R) => (R.weight == null && (k = !1), R.weight || 1));
19888
19888
  x.add(
19889
19889
  new Qr(
19890
19890
  b,
@@ -19986,7 +19986,7 @@ class uo {
19986
19986
  return this.processImage(t, e), e;
19987
19987
  }
19988
19988
  convertWipeout(t) {
19989
- const e = new Di();
19989
+ const e = new Fi();
19990
19990
  return this.processImage(t, e), e;
19991
19991
  }
19992
19992
  convertViewport(t) {
@@ -19998,11 +19998,11 @@ class uo {
19998
19998
  return e.basePoint.copy(t.firstPoint), e.unitDir.copy(t.unitDirection), e;
19999
19999
  }
20000
20000
  convertXline(t) {
20001
- const e = new Fi();
20001
+ const e = new Di();
20002
20002
  return e.basePoint.copy(t.firstPoint), e.unitDir.copy(t.unitDirection), e;
20003
20003
  }
20004
20004
  convertBlockReference(t) {
20005
- const e = new Ds(t.name);
20005
+ const e = new Fs(t.name);
20006
20006
  return t.insertionPoint && e.position.copy(t.insertionPoint), e.scaleFactors.x = t.xScale || 1, e.scaleFactors.y = t.yScale || 1, e.scaleFactors.z = t.zScale || 1, e.rotation = t.rotation != null ? Ot.degToRad(t.rotation) : 0, e.normal.copy(
20007
20007
  t.extrusionDirection ?? { x: 0, y: 0, z: 1 }
20008
20008
  ), e;
@@ -20616,17 +20616,17 @@ class zc {
20616
20616
  timeout: x
20617
20617
  });
20618
20618
  const f = (b) => {
20619
- const { id: k, success: M, data: z, error: R } = b.data;
20619
+ const { id: k, success: M, data: R, error: O } = b.data;
20620
20620
  if (k !== t) return;
20621
20621
  this.cleanupTask(t);
20622
20622
  const U = Date.now() - o;
20623
20623
  h(M ? {
20624
20624
  success: !0,
20625
- data: z,
20625
+ data: R,
20626
20626
  duration: U
20627
20627
  } : {
20628
20628
  success: !1,
20629
- error: R,
20629
+ error: O,
20630
20630
  duration: U
20631
20631
  });
20632
20632
  }, S = (b) => {
@@ -20779,7 +20779,7 @@ class gd {
20779
20779
  self.postMessage(h);
20780
20780
  }
20781
20781
  }
20782
- class Bc extends Fu {
20782
+ class Bc extends Du {
20783
20783
  constructor(t = {}) {
20784
20784
  super(t), t.parserWorkerUrl || (t.parserWorkerUrl = "/assets/dxf-parser-worker.js");
20785
20785
  }
@@ -20795,7 +20795,15 @@ class Bc extends Fu {
20795
20795
  * ```
20796
20796
  */
20797
20797
  async parse(t) {
20798
- return this.config.useWorker && this.config.parserWorkerUrl ? (await Rc({ workerUrl: this.config.parserWorkerUrl }).execute(t)).data : new Ru().parseSync(t);
20798
+ if (this.config.useWorker && this.config.parserWorkerUrl) {
20799
+ const e = Rc({
20800
+ workerUrl: this.config.parserWorkerUrl,
20801
+ // One concurrent worker needed for parser
20802
+ maxConcurrentWorkers: 1
20803
+ }), s = await e.execute(t);
20804
+ return e.destroy(), s.data;
20805
+ } else
20806
+ return new Ru().parseSync(t);
20799
20807
  }
20800
20808
  /**
20801
20809
  * Gets all fonts used by entities in model space and paper space.
@@ -20884,20 +20892,24 @@ class Bc extends Fu {
20884
20892
  * ```
20885
20893
  */
20886
20894
  async processEntities(t, e, s, o, h) {
20887
- const c = new uo(), g = t.entities, x = g.length, f = new ph(
20895
+ const c = new uo();
20896
+ let g = t.entities;
20897
+ const x = g.length, f = new ph(
20888
20898
  x,
20889
20899
  100 - o.value,
20890
20900
  s
20891
- ), S = e.tables.blockTable.modelSpace;
20901
+ );
20902
+ this.config.convertByEntityType && (g = this.groupAndFlattenByType(g));
20903
+ const S = e.tables.blockTable.modelSpace;
20892
20904
  await f.processChunk(async (b, k) => {
20893
- const M = [];
20894
- for (let z = b; z < k; z++) {
20895
- const R = g[z], U = c.convert(R);
20896
- U && M.push(U);
20905
+ let M = [], R = b < k ? g[b].type : "";
20906
+ for (let O = b; O < k; O++) {
20907
+ const U = g[O], F = c.convert(U);
20908
+ F && (this.config.convertByEntityType && U.type !== R && (S.appendEntity(M), M = [], R = U.type), M.push(F));
20897
20909
  }
20898
20910
  if (S.appendEntity(M), h) {
20899
- let z = o.value + k / x * (100 - o.value);
20900
- z > 100 && (z = 100), await h(z, "ENTITY", "IN-PROGRESS");
20911
+ let O = o.value + k / x * (100 - o.value);
20912
+ O > 100 && (O = 100), await h(O, "ENTITY", "IN-PROGRESS");
20901
20913
  }
20902
20914
  });
20903
20915
  }
@@ -20941,7 +20953,7 @@ class Bc extends Fu {
20941
20953
  const s = t.blocks;
20942
20954
  for (const [o, h] of Object.entries(s)) {
20943
20955
  let c = e.tables.blockTable.getAt(h.name);
20944
- c || (c = new Fe(), c.objectId = h.handle, c.name = o, c.origin.copy(h.position), e.tables.blockTable.add(c)), h.entities && this.processEntitiesInBlock(h.entities, c);
20956
+ c || (c = new De(), c.objectId = h.handle, c.name = o, c.origin.copy(h.position), e.tables.blockTable.add(c)), h.entities && this.processEntitiesInBlock(h.entities, c);
20945
20957
  }
20946
20958
  }
20947
20959
  /**
@@ -20980,7 +20992,7 @@ class Bc extends Fu {
20980
20992
  var o;
20981
20993
  const s = (o = t.tables.BLOCK_RECORD) == null ? void 0 : o.entries;
20982
20994
  s && s.length > 0 && (e.tables.blockTable.removeAll(), s.forEach((h) => {
20983
- const c = new Fe();
20995
+ const c = new De();
20984
20996
  c.objectId = h.handle, c.name = h.name, c.layoutId = h.layoutObjects, e.tables.blockTable.add(c);
20985
20997
  }));
20986
20998
  }
@@ -21064,7 +21076,7 @@ class Bc extends Fu {
21064
21076
  s && s.length > 0 && s.forEach((c) => {
21065
21077
  const g = new Pn();
21066
21078
  g.colorIndex = c.colorIndex;
21067
- const x = new Dl({
21079
+ const x = new Fl({
21068
21080
  name: c.name,
21069
21081
  standardFlags: c.standardFlag,
21070
21082
  linetype: c.lineType,
@@ -21229,6 +21241,25 @@ class Bc extends Fu {
21229
21241
  processCommonTableEntryAttrs(t, e) {
21230
21242
  e.name = t.name, e.objectId = t.handle, e.ownerId = t.ownerObjectId;
21231
21243
  }
21244
+ /**
21245
+ * Groups entities by their `type` property and flattens the result into a single array.
21246
+ *
21247
+ * The order of `type` groups follows the order in which they first appear in the input array.
21248
+ * Items within each group preserve their original order.
21249
+ *
21250
+ * This runs in O(n) time, which is generally faster than sorting when you
21251
+ * don't care about alphabetical order of types.
21252
+ *
21253
+ * @param entities - The array of entities to group and flatten.
21254
+ *
21255
+ * @returns A new array of entities grouped by their `type` property.
21256
+ */
21257
+ groupAndFlattenByType(t) {
21258
+ const e = {}, s = [];
21259
+ for (const o of t)
21260
+ e[o.type] || (e[o.type] = [], s.push(o.type)), e[o.type].push(o);
21261
+ return s.flatMap((o) => e[o]);
21262
+ }
21232
21263
  }
21233
21264
  var Rs = /* @__PURE__ */ ((a) => (a.DXF = "dxf", a.DWG = "dwg", a))(Rs || {});
21234
21265
  class xr {
@@ -21562,7 +21593,7 @@ const zr = class zr extends An {
21562
21593
  }
21563
21594
  };
21564
21595
  zr.MODEL_SPACE_NAME = "*MODEL_SPACE", zr.PAPER_SPACE_NAME_PREFIX = "*PAPER_SPACE";
21565
- let Fe = zr;
21596
+ let De = zr;
21566
21597
  class Sn extends Jr {
21567
21598
  /**
21568
21599
  * Creates a new AcDbSymbolTable instance.
@@ -21759,7 +21790,7 @@ class Sn extends Jr {
21759
21790
  return t;
21760
21791
  }
21761
21792
  }
21762
- class Dc extends Sn {
21793
+ class Fc extends Sn {
21763
21794
  /**
21764
21795
  * Creates a new AcDbBlockTable instance.
21765
21796
  *
@@ -21789,8 +21820,8 @@ class Dc extends Sn {
21789
21820
  * ```
21790
21821
  */
21791
21822
  get modelSpace() {
21792
- let t = this.getAt(Fe.MODEL_SPACE_NAME);
21793
- return t || (t = new Fe(), t.name = Fe.MODEL_SPACE_NAME, this.add(t)), t;
21823
+ let t = this.getAt(De.MODEL_SPACE_NAME);
21824
+ return t || (t = new De(), t.name = De.MODEL_SPACE_NAME, this.add(t)), t;
21794
21825
  }
21795
21826
  /**
21796
21827
  * Normalizes the specified block table record name if it is one paper spacce or model space
@@ -21802,16 +21833,16 @@ class Dc extends Sn {
21802
21833
  */
21803
21834
  normalizeName(t) {
21804
21835
  let e = t;
21805
- if (Fe.isModelSapceName(t))
21806
- e = Fe.MODEL_SPACE_NAME;
21807
- else if (Fe.isPaperSapceName(t)) {
21808
- const s = Fe.PAPER_SPACE_NAME_PREFIX, o = t.substring(s.length);
21836
+ if (De.isModelSapceName(t))
21837
+ e = De.MODEL_SPACE_NAME;
21838
+ else if (De.isPaperSapceName(t)) {
21839
+ const s = De.PAPER_SPACE_NAME_PREFIX, o = t.substring(s.length);
21809
21840
  e = s + o;
21810
21841
  }
21811
21842
  return e;
21812
21843
  }
21813
21844
  }
21814
- class Fc extends Sn {
21845
+ class Dc extends Sn {
21815
21846
  /**
21816
21847
  * Creates a new AcDbDimStyleTable instance.
21817
21848
  *
@@ -21826,7 +21857,7 @@ class Fc extends Sn {
21826
21857
  super(t);
21827
21858
  }
21828
21859
  }
21829
- class Dl extends An {
21860
+ class Fl extends An {
21830
21861
  /**
21831
21862
  * Creates a new AcDbLayerTableRecord instance.
21832
21863
  *
@@ -22146,7 +22177,7 @@ class Vc extends Sn {
22146
22177
  super(t);
22147
22178
  const e = new Pn();
22148
22179
  e.color = 16777215;
22149
- const s = new Dl({
22180
+ const s = new Fl({
22150
22181
  name: "0",
22151
22182
  standardFlags: 0,
22152
22183
  linetype: vi,
@@ -22279,8 +22310,8 @@ class fd extends Jr {
22279
22310
  /** Fired when a header system variable is changed */
22280
22311
  headerSysVarChanged: new ce()
22281
22312
  }, this._angBase = 0, this._angDir = 0, this._aunits = cl.DecimalDegrees, this._celtscale = 1, this._cecolor = new Pn(), this._extents = new Rt(), this._insunits = dl.Millimeters, this._ltscale = 1, this._pdmode = 0, this._pdsize = 0, this._tables = {
22282
- blockTable: new Dc(this),
22283
- dimStyleTable: new Fc(this),
22313
+ blockTable: new Fc(this),
22314
+ dimStyleTable: new Dc(this),
22284
22315
  linetypeTable: new Uc(this),
22285
22316
  textStyleTable: new jc(this),
22286
22317
  layerTable: new Vc(this),
@@ -22612,14 +22643,14 @@ class fd extends Jr {
22612
22643
  throw new Error("Failed to get response reader");
22613
22644
  const x = [];
22614
22645
  for (; ; ) {
22615
- const { done: M, value: z } = await g.read();
22646
+ const { done: M, value: R } = await g.read();
22616
22647
  if (M)
22617
22648
  break;
22618
- if (x.push(z), c += z.length, h !== null) {
22619
- const R = Math.round(c / h * 100);
22649
+ if (x.push(R), c += R.length, h !== null) {
22650
+ const O = Math.round(c / h * 100);
22620
22651
  this.events.openProgress.dispatch({
22621
22652
  database: this,
22622
- percentage: R,
22653
+ percentage: O,
22623
22654
  stage: "FETCH_FILE",
22624
22655
  stageStatus: "IN-PROGRESS"
22625
22656
  });
@@ -24251,7 +24282,7 @@ class Jc {
24251
24282
  createLayout(t, e) {
24252
24283
  const s = this.getWorkingDatabase(e), o = new Rl();
24253
24284
  o.layoutName = t, o.tabOrder = s.dictionaries.layouts.maxTabOrder;
24254
- const h = new Fe();
24285
+ const h = new De();
24255
24286
  return h.name = `*Paper_Space${o.tabOrder}`, s.tables.blockTable.add(h), s.dictionaries.layouts.setAt(t, o), this.events.layoutCreated.dispatch({
24256
24287
  layout: o
24257
24288
  }), { layout: o, btr: h };
@@ -24266,7 +24297,7 @@ class Jc {
24266
24297
  return e.dictionaries.layouts.getBtrIdAt(e.currentSpaceId);
24267
24298
  }
24268
24299
  getWorkingDatabase(t) {
24269
- return t || Fl().workingDatabase;
24300
+ return t || Dl().workingDatabase;
24270
24301
  }
24271
24302
  setCurrentLayoutInternal(t, e) {
24272
24303
  return t ? (this.events.layoutSwitched.dispatch({
@@ -24274,7 +24305,7 @@ class Jc {
24274
24305
  }), e.currentSpaceId = t.blockTableRecordId, !0) : !1;
24275
24306
  }
24276
24307
  }
24277
- function Fl() {
24308
+ function Dl() {
24278
24309
  return Hi.instance;
24279
24310
  }
24280
24311
  const Gs = class Gs {
@@ -24367,18 +24398,18 @@ export {
24367
24398
  ho as AcDbArcDimension,
24368
24399
  gd as AcDbBaseWorker,
24369
24400
  ph as AcDbBatchProcessing,
24370
- Ds as AcDbBlockReference,
24371
- Dc as AcDbBlockTable,
24372
- Fe as AcDbBlockTableRecord,
24401
+ Fs as AcDbBlockReference,
24402
+ Fc as AcDbBlockTable,
24403
+ De as AcDbBlockTableRecord,
24373
24404
  Ii as AcDbCircle,
24374
24405
  Ue as AcDbCurve,
24375
24406
  fd as AcDbDatabase,
24376
- Fu as AcDbDatabaseConverter,
24407
+ Du as AcDbDatabaseConverter,
24377
24408
  xr as AcDbDatabaseConverterManager,
24378
24409
  ji as AcDbDiametricDimension,
24379
24410
  Bl as AcDbDictionary,
24380
- Du as AcDbDimArrowType,
24381
- Fc as AcDbDimStyleTable,
24411
+ Fu as AcDbDimArrowType,
24412
+ Dc as AcDbDimStyleTable,
24382
24413
  Us as AcDbDimStyleTableRecord,
24383
24414
  Wc as AcDbDimTextHorizontal,
24384
24415
  Hc as AcDbDimTextVertical,
@@ -24395,7 +24426,7 @@ export {
24395
24426
  Pc as AcDbHatchStyle,
24396
24427
  Hi as AcDbHostApplicationServices,
24397
24428
  Vc as AcDbLayerTable,
24398
- Dl as AcDbLayerTableRecord,
24429
+ Fl as AcDbLayerTableRecord,
24399
24430
  Rl as AcDbLayout,
24400
24431
  Cc as AcDbLayoutDictionary,
24401
24432
  Jc as AcDbLayoutManager,
@@ -24419,7 +24450,7 @@ export {
24419
24450
  Mc as AcDbRasterImageImageDisplayOpt,
24420
24451
  Ri as AcDbRay,
24421
24452
  Xr as AcDbRenderingCache,
24422
- Fs as AcDbSpline,
24453
+ Ds as AcDbSpline,
24423
24454
  Sn as AcDbSymbolTable,
24424
24455
  An as AcDbSymbolTableRecord,
24425
24456
  Ci as AcDbTable,
@@ -24433,10 +24464,10 @@ export {
24433
24464
  Bi as AcDbViewport,
24434
24465
  Gc as AcDbViewportTable,
24435
24466
  Qc as AcDbViewportTableRecord,
24436
- Di as AcDbWipeout,
24467
+ Fi as AcDbWipeout,
24437
24468
  Oc as AcDbWorkerApi,
24438
24469
  zc as AcDbWorkerManager,
24439
- Fi as AcDbXline,
24470
+ Di as AcDbXline,
24440
24471
  Zi as AcGeArea2d,
24441
24472
  be as AcGeBox2d,
24442
24473
  Rt as AcGeBox3d,
@@ -24485,7 +24516,7 @@ export {
24485
24516
  bl as ORIGIN_POINT_3D,
24486
24517
  gl as RAD2DEG,
24487
24518
  se as TAU,
24488
- Fl as acdbHostApplicationServices,
24519
+ Dl as acdbHostApplicationServices,
24489
24520
  bi as basisFunction,
24490
24521
  uc as calculateCurveLength,
24491
24522
  tc as ceilPowerOfTwo,