@mlightcad/libredwg-converter 3.5.16 → 3.5.17

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.
@@ -1,5 +1,5 @@
1
- var ao = ((g) => (g[g.Invalid = -9999] = "Invalid", g[g.Start = 0] = "Start", g[g.Text = 1] = "Text", g[g.AttributeTag = 2] = "AttributeTag", g[g.BlockName = 2] = "BlockName", g[g.ShapeName = 2] = "ShapeName", g[g.SymbolTableName = 2] = "SymbolTableName", g[g.SymbolTableRecordName = 2] = "SymbolTableRecordName", g[g.MlineStyleName = 2] = "MlineStyleName", g[g.AttributePrompt = 3] = "AttributePrompt", g[g.Description = 3] = "Description", g[g.DimPostString = 3] = "DimPostString", g[g.DimStyleName = 3] = "DimStyleName", g[g.LinetypeProse = 3] = "LinetypeProse", g[g.TextFontFile = 3] = "TextFontFile", g[g.CLShapeName = 4] = "CLShapeName", g[g.DimensionAlternativePrefixSuffix = 4] = "DimensionAlternativePrefixSuffix", g[g.SymbolTableRecordComments = 4] = "SymbolTableRecordComments", g[g.TextBigFontFile = 4] = "TextBigFontFile", g[g.Handle = 5] = "Handle", g[g.DimensionBlock = 5] = "DimensionBlock", g[g.LinetypeName = 6] = "LinetypeName", g[g.DimBlk1 = 6] = "DimBlk1", g[g.TextStyleName = 7] = "TextStyleName", g[g.DimBlk2 = 7] = "DimBlk2", g[g.LayerName = 8] = "LayerName", g[g.CLShapeText = 9] = "CLShapeText", g[g.XCoordinate = 10] = "XCoordinate", g[g.YCoordinate = 20] = "YCoordinate", g[g.ZCoordinate = 30] = "ZCoordinate", g[g.Real = 40] = "Real", g[g.TxtSize = 40] = "TxtSize", g[g.ViewportHeight = 40] = "ViewportHeight", g[g.Angle = 50] = "Angle", g[g.ViewportSnapAngle = 50] = "ViewportSnapAngle", g[g.Visibility = 60] = "Visibility", g[g.Int16 = 70] = "Int16", g[g.Int32 = 90] = "Int32", g[g.Int64 = 160] = "Int64", g[g.Int8 = 280] = "Int8", g[g.Thickness = 39] = "Thickness", g[g.Elevation = 38] = "Elevation", g[g.LinetypeScale = 48] = "LinetypeScale", g[g.DashLength = 49] = "DashLength", g[g.MlineOffset = 49] = "MlineOffset", g[g.LinetypeElement = 49] = "LinetypeElement", g[g.NormalX = 210] = "NormalX", g[g.NormalY = 220] = "NormalY", g[g.NormalZ = 230] = "NormalZ", g[g.UcsOrg = 110] = "UcsOrg", g[g.UcsOrientationX = 111] = "UcsOrientationX", g[g.UcsOrientationY = 112] = "UcsOrientationY", g[g.ViewHeight = 45] = "ViewHeight", g[g.ViewWidth = 41] = "ViewWidth", g[g.ViewLensLength = 42] = "ViewLensLength", g[g.ViewFrontClip = 43] = "ViewFrontClip", g[g.ViewBackClip = 44] = "ViewBackClip", g[g.ViewBrightness = 141] = "ViewBrightness", g[g.ViewContrast = 142] = "ViewContrast", g[g.ViewMode = 71] = "ViewMode", g[g.ViewportActive = 68] = "ViewportActive", g[g.ViewportAspect = 41] = "ViewportAspect", g[g.ViewportGrid = 76] = "ViewportGrid", g[g.ViewportIcon = 74] = "ViewportIcon", g[g.ViewportNumber = 69] = "ViewportNumber", g[g.ViewportSnap = 75] = "ViewportSnap", g[g.ViewportSnapPair = 78] = "ViewportSnapPair", g[g.ViewportSnapStyle = 77] = "ViewportSnapStyle", g[g.ViewportTwist = 51] = "ViewportTwist", g[g.ViewportVisibility = 67] = "ViewportVisibility", g[g.ViewportZoom = 73] = "ViewportZoom", g[g.Color = 62] = "Color", g[g.ColorRgb = 420] = "ColorRgb", g[g.ColorName = 430] = "ColorName", g[g.LineWeight = 370] = "LineWeight", g[g.PlotStyleNameType = 380] = "PlotStyleNameType", g[g.PlotStyleNameId = 390] = "PlotStyleNameId", g[g.GradientObjType = 450] = "GradientObjType", g[g.GradientAngle = 460] = "GradientAngle", g[g.GradientName = 470] = "GradientName", g[g.GradientColCount = 453] = "GradientColCount", g[g.GradientPatType = 451] = "GradientPatType", g[g.GradientTintType = 452] = "GradientTintType", g[g.GradientShift = 461] = "GradientShift", g[g.GradientColVal = 463] = "GradientColVal", g[g.GradientTintVal = 462] = "GradientTintVal", g[g.SoftPointerId = 330] = "SoftPointerId", g[g.HardPointerId = 340] = "HardPointerId", g[g.SoftOwnershipId = 350] = "SoftOwnershipId", g[g.HardOwnershipId = 360] = "HardOwnershipId", g[g.ArbitraryHandle = 320] = "ArbitraryHandle", g[g.ExtendedDataAsciiString = 1e3] = "ExtendedDataAsciiString", g[g.ExtendedDataRegAppName = 1001] = "ExtendedDataRegAppName", g[g.ExtendedDataControlString = 1002] = "ExtendedDataControlString", g[g.ExtendedDataLayerName = 1003] = "ExtendedDataLayerName", g[g.ExtendedDataBinaryChunk = 1004] = "ExtendedDataBinaryChunk", g[g.ExtendedDataHandle = 1005] = "ExtendedDataHandle", g[g.ExtendedDataXCoordinate = 1010] = "ExtendedDataXCoordinate", g[g.ExtendedDataWorldXCoordinate = 1011] = "ExtendedDataWorldXCoordinate", g[g.ExtendedDataWorldXDisp = 1012] = "ExtendedDataWorldXDisp", g[g.ExtendedDataWorldXDir = 1013] = "ExtendedDataWorldXDir", g[g.ExtendedDataYCoordinate = 1020] = "ExtendedDataYCoordinate", g[g.ExtendedDataWorldYCoordinate = 1021] = "ExtendedDataWorldYCoordinate", g[g.ExtendedDataWorldYDisp = 1022] = "ExtendedDataWorldYDisp", g[g.ExtendedDataWorldYDir = 1023] = "ExtendedDataWorldYDir", g[g.ExtendedDataZCoordinate = 1030] = "ExtendedDataZCoordinate", g[g.ExtendedDataWorldZCoordinate = 1031] = "ExtendedDataWorldZCoordinate", g[g.ExtendedDataWorldZDisp = 1032] = "ExtendedDataWorldZDisp", g[g.ExtendedDataWorldZDir = 1033] = "ExtendedDataWorldZDir", g[g.ExtendedDataReal = 1040] = "ExtendedDataReal", g[g.ExtendedDataDist = 1041] = "ExtendedDataDist", g[g.ExtendedDataScale = 1042] = "ExtendedDataScale", g[g.ExtendedDataInteger16 = 1070] = "ExtendedDataInteger16", g[g.ExtendedDataInteger32 = 1071] = "ExtendedDataInteger32", g[g.XTextString = 300] = "XTextString", g[g.XReal = 140] = "XReal", g[g.XInt16 = 170] = "XInt16", g[g.XXInt16 = 270] = "XXInt16", g[g.Subclass = 100] = "Subclass", g[g.ControlString = 102] = "ControlString", g[g.EmbeddedObjectStart = 101] = "EmbeddedObjectStart", g[g.End = -1] = "End", g[g.FirstEntityId = -2] = "FirstEntityId", g[g.HeaderId = -2] = "HeaderId", g[g.XDataStart = -3] = "XDataStart", g[g.Operator = -4] = "Operator", g[g.PReactors = -5] = "PReactors", g[g.XDictionary = -6] = "XDictionary", g))(ao || {});
2
- function So(g, A) {
1
+ var so = ((g) => (g[g.Invalid = -9999] = "Invalid", g[g.Start = 0] = "Start", g[g.Text = 1] = "Text", g[g.AttributeTag = 2] = "AttributeTag", g[g.BlockName = 2] = "BlockName", g[g.ShapeName = 2] = "ShapeName", g[g.SymbolTableName = 2] = "SymbolTableName", g[g.SymbolTableRecordName = 2] = "SymbolTableRecordName", g[g.MlineStyleName = 2] = "MlineStyleName", g[g.AttributePrompt = 3] = "AttributePrompt", g[g.Description = 3] = "Description", g[g.DimPostString = 3] = "DimPostString", g[g.DimStyleName = 3] = "DimStyleName", g[g.LinetypeProse = 3] = "LinetypeProse", g[g.TextFontFile = 3] = "TextFontFile", g[g.CLShapeName = 4] = "CLShapeName", g[g.DimensionAlternativePrefixSuffix = 4] = "DimensionAlternativePrefixSuffix", g[g.SymbolTableRecordComments = 4] = "SymbolTableRecordComments", g[g.TextBigFontFile = 4] = "TextBigFontFile", g[g.Handle = 5] = "Handle", g[g.DimensionBlock = 5] = "DimensionBlock", g[g.LinetypeName = 6] = "LinetypeName", g[g.DimBlk1 = 6] = "DimBlk1", g[g.TextStyleName = 7] = "TextStyleName", g[g.DimBlk2 = 7] = "DimBlk2", g[g.LayerName = 8] = "LayerName", g[g.CLShapeText = 9] = "CLShapeText", g[g.XCoordinate = 10] = "XCoordinate", g[g.YCoordinate = 20] = "YCoordinate", g[g.ZCoordinate = 30] = "ZCoordinate", g[g.Real = 40] = "Real", g[g.TxtSize = 40] = "TxtSize", g[g.ViewportHeight = 40] = "ViewportHeight", g[g.Angle = 50] = "Angle", g[g.ViewportSnapAngle = 50] = "ViewportSnapAngle", g[g.Visibility = 60] = "Visibility", g[g.Int16 = 70] = "Int16", g[g.Int32 = 90] = "Int32", g[g.Int64 = 160] = "Int64", g[g.Int8 = 280] = "Int8", g[g.Thickness = 39] = "Thickness", g[g.Elevation = 38] = "Elevation", g[g.LinetypeScale = 48] = "LinetypeScale", g[g.DashLength = 49] = "DashLength", g[g.MlineOffset = 49] = "MlineOffset", g[g.LinetypeElement = 49] = "LinetypeElement", g[g.NormalX = 210] = "NormalX", g[g.NormalY = 220] = "NormalY", g[g.NormalZ = 230] = "NormalZ", g[g.UcsOrg = 110] = "UcsOrg", g[g.UcsOrientationX = 111] = "UcsOrientationX", g[g.UcsOrientationY = 112] = "UcsOrientationY", g[g.ViewHeight = 45] = "ViewHeight", g[g.ViewWidth = 41] = "ViewWidth", g[g.ViewLensLength = 42] = "ViewLensLength", g[g.ViewFrontClip = 43] = "ViewFrontClip", g[g.ViewBackClip = 44] = "ViewBackClip", g[g.ViewBrightness = 141] = "ViewBrightness", g[g.ViewContrast = 142] = "ViewContrast", g[g.ViewMode = 71] = "ViewMode", g[g.ViewportActive = 68] = "ViewportActive", g[g.ViewportAspect = 41] = "ViewportAspect", g[g.ViewportGrid = 76] = "ViewportGrid", g[g.ViewportIcon = 74] = "ViewportIcon", g[g.ViewportNumber = 69] = "ViewportNumber", g[g.ViewportSnap = 75] = "ViewportSnap", g[g.ViewportSnapPair = 78] = "ViewportSnapPair", g[g.ViewportSnapStyle = 77] = "ViewportSnapStyle", g[g.ViewportTwist = 51] = "ViewportTwist", g[g.ViewportVisibility = 67] = "ViewportVisibility", g[g.ViewportZoom = 73] = "ViewportZoom", g[g.Color = 62] = "Color", g[g.ColorRgb = 420] = "ColorRgb", g[g.ColorName = 430] = "ColorName", g[g.LineWeight = 370] = "LineWeight", g[g.PlotStyleNameType = 380] = "PlotStyleNameType", g[g.PlotStyleNameId = 390] = "PlotStyleNameId", g[g.GradientObjType = 450] = "GradientObjType", g[g.GradientAngle = 460] = "GradientAngle", g[g.GradientName = 470] = "GradientName", g[g.GradientColCount = 453] = "GradientColCount", g[g.GradientPatType = 451] = "GradientPatType", g[g.GradientTintType = 452] = "GradientTintType", g[g.GradientShift = 461] = "GradientShift", g[g.GradientColVal = 463] = "GradientColVal", g[g.GradientTintVal = 462] = "GradientTintVal", g[g.SoftPointerId = 330] = "SoftPointerId", g[g.HardPointerId = 340] = "HardPointerId", g[g.SoftOwnershipId = 350] = "SoftOwnershipId", g[g.HardOwnershipId = 360] = "HardOwnershipId", g[g.ArbitraryHandle = 320] = "ArbitraryHandle", g[g.ExtendedDataAsciiString = 1e3] = "ExtendedDataAsciiString", g[g.ExtendedDataRegAppName = 1001] = "ExtendedDataRegAppName", g[g.ExtendedDataControlString = 1002] = "ExtendedDataControlString", g[g.ExtendedDataLayerName = 1003] = "ExtendedDataLayerName", g[g.ExtendedDataBinaryChunk = 1004] = "ExtendedDataBinaryChunk", g[g.ExtendedDataHandle = 1005] = "ExtendedDataHandle", g[g.ExtendedDataXCoordinate = 1010] = "ExtendedDataXCoordinate", g[g.ExtendedDataWorldXCoordinate = 1011] = "ExtendedDataWorldXCoordinate", g[g.ExtendedDataWorldXDisp = 1012] = "ExtendedDataWorldXDisp", g[g.ExtendedDataWorldXDir = 1013] = "ExtendedDataWorldXDir", g[g.ExtendedDataYCoordinate = 1020] = "ExtendedDataYCoordinate", g[g.ExtendedDataWorldYCoordinate = 1021] = "ExtendedDataWorldYCoordinate", g[g.ExtendedDataWorldYDisp = 1022] = "ExtendedDataWorldYDisp", g[g.ExtendedDataWorldYDir = 1023] = "ExtendedDataWorldYDir", g[g.ExtendedDataZCoordinate = 1030] = "ExtendedDataZCoordinate", g[g.ExtendedDataWorldZCoordinate = 1031] = "ExtendedDataWorldZCoordinate", g[g.ExtendedDataWorldZDisp = 1032] = "ExtendedDataWorldZDisp", g[g.ExtendedDataWorldZDir = 1033] = "ExtendedDataWorldZDir", g[g.ExtendedDataReal = 1040] = "ExtendedDataReal", g[g.ExtendedDataDist = 1041] = "ExtendedDataDist", g[g.ExtendedDataScale = 1042] = "ExtendedDataScale", g[g.ExtendedDataInteger16 = 1070] = "ExtendedDataInteger16", g[g.ExtendedDataInteger32 = 1071] = "ExtendedDataInteger32", g[g.XTextString = 300] = "XTextString", g[g.XReal = 140] = "XReal", g[g.XInt16 = 170] = "XInt16", g[g.XXInt16 = 270] = "XXInt16", g[g.Subclass = 100] = "Subclass", g[g.ControlString = 102] = "ControlString", g[g.EmbeddedObjectStart = 101] = "EmbeddedObjectStart", g[g.End = -1] = "End", g[g.FirstEntityId = -2] = "FirstEntityId", g[g.HeaderId = -2] = "HeaderId", g[g.XDataStart = -3] = "XDataStart", g[g.Operator = -4] = "Operator", g[g.PReactors = -5] = "PReactors", g[g.XDictionary = -6] = "XDictionary", g))(so || {});
2
+ function ao(g, A) {
3
3
  for (var C = 0; C < A.length; C++) {
4
4
  const Q = A[C];
5
5
  if (typeof Q != "string" && !Array.isArray(Q)) {
@@ -439,7 +439,7 @@ let Og = class {
439
439
  const A = this.getColorByIndex(g);
440
440
  return this.getNameByColor(A);
441
441
  }
442
- }, so = class Yg {
442
+ }, So = class Yg {
443
443
  constructor(A = j.ByLayer, C) {
444
444
  this._colorMethod = A, this._colorMethod == j.ByColor && C == null ? this._value = 16777215 : this._colorMethod == j.ByACI ? C == null ? this._value = 8 : C === 0 ? this._colorMethod = j.ByBlock : C === 256 ? this._colorMethod = j.ByLayer : this._value = Math.max(0, Math.min(C, 256)) : this._value = C;
445
445
  }
@@ -664,28 +664,28 @@ var _B = { exports: {} };
664
664
  "warn",
665
665
  "error"
666
666
  ], o = {}, w = null;
667
- function k(H, s) {
668
- var a = H[s];
669
- if (typeof a.bind == "function")
670
- return a.bind(H);
667
+ function k(H, S) {
668
+ var s = H[S];
669
+ if (typeof s.bind == "function")
670
+ return s.bind(H);
671
671
  try {
672
- return Function.prototype.bind.call(a, H);
672
+ return Function.prototype.bind.call(s, H);
673
673
  } catch {
674
674
  return function() {
675
- return Function.prototype.apply.apply(a, [H, arguments]);
675
+ return Function.prototype.apply.apply(s, [H, arguments]);
676
676
  };
677
677
  }
678
678
  }
679
679
  function U() {
680
680
  console.log && (console.log.apply || Function.prototype.apply.apply(console.log, [console, arguments]));
681
681
  }
682
- function i(H) {
682
+ function y(H) {
683
683
  return H === "debug" && (H = "log"), typeof console === C ? !1 : H === "trace" && Q ? U : console[H] !== void 0 ? k(console, H) : console.log !== void 0 ? k(console, "log") : A;
684
684
  }
685
685
  function F() {
686
- for (var H = this.getLevel(), s = 0; s < D.length; s++) {
687
- var a = D[s];
688
- this[a] = s < H ? A : this.methodFactory(a, H, this.name);
686
+ for (var H = this.getLevel(), S = 0; S < D.length; S++) {
687
+ var s = D[S];
688
+ this[s] = S < H ? A : this.methodFactory(s, H, this.name);
689
689
  }
690
690
  if (this.log = this.debug, typeof console === C && H < this.levels.SILENT)
691
691
  return "No console available for logging";
@@ -695,11 +695,11 @@ var _B = { exports: {} };
695
695
  typeof console !== C && (F.call(this), this[H].apply(this, arguments));
696
696
  };
697
697
  }
698
- function L(H, s, a) {
699
- return i(H) || h.apply(this, arguments);
698
+ function L(H, S, s) {
699
+ return y(H) || h.apply(this, arguments);
700
700
  }
701
- function R(H, s) {
702
- var a = this, v, V, O, z = "loglevel";
701
+ function i(H, S) {
702
+ var s = this, v, V, O, z = "loglevel";
703
703
  typeof H == "string" ? z += ":" + H : typeof H == "symbol" && (z = void 0);
704
704
  function f(P) {
705
705
  var d = (D[P] || "silent").toUpperCase();
@@ -724,13 +724,13 @@ var _B = { exports: {} };
724
724
  }
725
725
  if (typeof P === C)
726
726
  try {
727
- var d = window.document.cookie, e = encodeURIComponent(z), iA = d.indexOf(e + "=");
728
- iA !== -1 && (P = /^([^;]+)/.exec(
729
- d.slice(iA + e.length + 1)
727
+ var d = window.document.cookie, e = encodeURIComponent(z), yA = d.indexOf(e + "=");
728
+ yA !== -1 && (P = /^([^;]+)/.exec(
729
+ d.slice(yA + e.length + 1)
730
730
  )[1]);
731
731
  } catch {
732
732
  }
733
- return a.levels[P] === void 0 && (P = void 0), P;
733
+ return s.levels[P] === void 0 && (P = void 0), P;
734
734
  }
735
735
  }
736
736
  function W() {
@@ -747,47 +747,47 @@ var _B = { exports: {} };
747
747
  }
748
748
  function AA(P) {
749
749
  var d = P;
750
- if (typeof d == "string" && a.levels[d.toUpperCase()] !== void 0 && (d = a.levels[d.toUpperCase()]), typeof d == "number" && d >= 0 && d <= a.levels.SILENT)
750
+ if (typeof d == "string" && s.levels[d.toUpperCase()] !== void 0 && (d = s.levels[d.toUpperCase()]), typeof d == "number" && d >= 0 && d <= s.levels.SILENT)
751
751
  return d;
752
752
  throw new TypeError("log.setLevel() called with invalid level: " + P);
753
753
  }
754
- a.name = H, a.levels = {
754
+ s.name = H, s.levels = {
755
755
  TRACE: 0,
756
756
  DEBUG: 1,
757
757
  INFO: 2,
758
758
  WARN: 3,
759
759
  ERROR: 4,
760
760
  SILENT: 5
761
- }, a.methodFactory = s || L, a.getLevel = function() {
761
+ }, s.methodFactory = S || L, s.getLevel = function() {
762
762
  return O ?? V ?? v;
763
- }, a.setLevel = function(P, d) {
764
- return O = AA(P), d !== !1 && f(O), F.call(a);
765
- }, a.setDefaultLevel = function(P) {
766
- V = AA(P), q() || a.setLevel(P, !1);
767
- }, a.resetLevel = function() {
768
- O = null, W(), F.call(a);
769
- }, a.enableAll = function(P) {
770
- a.setLevel(a.levels.TRACE, P);
771
- }, a.disableAll = function(P) {
772
- a.setLevel(a.levels.SILENT, P);
773
- }, a.rebuild = function() {
774
- if (w !== a && (v = AA(w.getLevel())), F.call(a), w === a)
763
+ }, s.setLevel = function(P, d) {
764
+ return O = AA(P), d !== !1 && f(O), F.call(s);
765
+ }, s.setDefaultLevel = function(P) {
766
+ V = AA(P), q() || s.setLevel(P, !1);
767
+ }, s.resetLevel = function() {
768
+ O = null, W(), F.call(s);
769
+ }, s.enableAll = function(P) {
770
+ s.setLevel(s.levels.TRACE, P);
771
+ }, s.disableAll = function(P) {
772
+ s.setLevel(s.levels.SILENT, P);
773
+ }, s.rebuild = function() {
774
+ if (w !== s && (v = AA(w.getLevel())), F.call(s), w === s)
775
775
  for (var P in o)
776
776
  o[P].rebuild();
777
777
  }, v = AA(
778
778
  w ? w.getLevel() : "WARN"
779
779
  );
780
780
  var EA = q();
781
- EA != null && (O = AA(EA)), F.call(a);
781
+ EA != null && (O = AA(EA)), F.call(s);
782
782
  }
783
- w = new R(), w.getLogger = function(H) {
783
+ w = new i(), w.getLogger = function(H) {
784
784
  if (typeof H != "symbol" && typeof H != "string" || H === "")
785
785
  throw new TypeError("You must supply a name when creating a logger.");
786
- var s = o[H];
787
- return s || (s = o[H] = new R(
786
+ var S = o[H];
787
+ return S || (S = o[H] = new i(
788
788
  H,
789
789
  w.methodFactory
790
- )), s;
790
+ )), S;
791
791
  };
792
792
  var c = typeof window !== C ? window.log : void 0;
793
793
  return w.noConflict = function() {
@@ -798,12 +798,12 @@ var _B = { exports: {} };
798
798
  });
799
799
  })(_B);
800
800
  var $B = _B.exports;
801
- const To = to($B), xo = So({ __proto__: null, default: To }, [$B]), zo = xo;
801
+ const To = to($B), xo = ao({ __proto__: null, default: To }, [$B]), zo = xo;
802
802
  zo.setLevel("debug");
803
803
  var Vo = ((g) => (g[g.ByLayer = 0] = "ByLayer", g[g.ByBlock = 1] = "ByBlock", g[g.ByAlpha = 2] = "ByAlpha", g[g.ErrorValue = 3] = "ErrorValue", g))(Vo || {}), ZB = 256;
804
804
  for (; ZB--; ) (ZB + 256).toString(16).substring(1);
805
805
  var vo = ((g) => (g.kForRead = "kForRead", g.kForWrite = "kForWrite", g))(vo || {}), Oo = ((g) => (g.DXF = "dxf", g.DWG = "dwg", g))(Oo || {}), lo = ((g) => (g[g.DecimalDegrees = 0] = "DecimalDegrees", g[g.DegreesMinutesSeconds = 1] = "DegreesMinutesSeconds", g[g.Gradians = 2] = "Gradians", g[g.Radians = 3] = "Radians", g[g.SurveyorsUnits = 4] = "SurveyorsUnits", g))(lo || {});
806
- new so();
806
+ new So();
807
807
  var bo = ((g) => (g[g.UTF8 = 0] = "UTF8", g[g.US_ASCII = 1] = "US_ASCII", g[g.ISO_8859_1 = 2] = "ISO_8859_1", g[g.ISO_8859_2 = 3] = "ISO_8859_2", g[g.ISO_8859_3 = 4] = "ISO_8859_3", g[g.ISO_8859_4 = 5] = "ISO_8859_4", g[g.ISO_8859_5 = 6] = "ISO_8859_5", g[g.ISO_8859_6 = 7] = "ISO_8859_6", g[g.ISO_8859_7 = 8] = "ISO_8859_7", g[g.ISO_8859_8 = 9] = "ISO_8859_8", g[g.ISO_8859_9 = 10] = "ISO_8859_9", g[g.CP437 = 11] = "CP437", g[g.CP850 = 12] = "CP850", g[g.CP852 = 13] = "CP852", g[g.CP855 = 14] = "CP855", g[g.CP857 = 15] = "CP857", g[g.CP860 = 16] = "CP860", g[g.CP861 = 17] = "CP861", g[g.CP863 = 18] = "CP863", g[g.CP864 = 19] = "CP864", g[g.CP865 = 20] = "CP865", g[g.CP869 = 21] = "CP869", g[g.CP932 = 22] = "CP932", g[g.MACINTOSH = 23] = "MACINTOSH", g[g.BIG5 = 24] = "BIG5", g[g.CP949 = 25] = "CP949", g[g.JOHAB = 26] = "JOHAB", g[g.CP866 = 27] = "CP866", g[g.ANSI_1250 = 28] = "ANSI_1250", g[g.ANSI_1251 = 29] = "ANSI_1251", g[g.ANSI_1252 = 30] = "ANSI_1252", g[g.GB2312 = 31] = "GB2312", g[g.ANSI_1253 = 32] = "ANSI_1253", g[g.ANSI_1254 = 33] = "ANSI_1254", g[g.ANSI_1255 = 34] = "ANSI_1255", g[g.ANSI_1256 = 35] = "ANSI_1256", g[g.ANSI_1257 = 36] = "ANSI_1257", g[g.ANSI_874 = 37] = "ANSI_874", g[g.ANSI_932 = 38] = "ANSI_932", g[g.ANSI_936 = 39] = "ANSI_936", g[g.ANSI_949 = 40] = "ANSI_949", g[g.ANSI_950 = 41] = "ANSI_950", g[g.ANSI_1361 = 42] = "ANSI_1361", g[g.UTF16 = 43] = "UTF16", g[g.ANSI_1258 = 44] = "ANSI_1258", g[g.UNDEFINED = 255] = "UNDEFINED", g))(bo || {});
808
808
  const HA = [
809
809
  "00",
@@ -1388,12 +1388,12 @@ const qB = {
1388
1388
  EB.EMPTY = Object.freeze(new EB(0, 0));
1389
1389
  let UC = EB;
1390
1390
  const DB = class DI {
1391
- constructor(A, C, Q, D, o, w, k, U, i) {
1392
- this.elements = [1, 0, 0, 0, 1, 0, 0, 0, 1], A != null && C != null && Q != null && D != null && o != null && w != null && k != null && U != null && i != null && this.set(A, C, Q, D, o, w, k, U, i);
1391
+ constructor(A, C, Q, D, o, w, k, U, y) {
1392
+ this.elements = [1, 0, 0, 0, 1, 0, 0, 0, 1], A != null && C != null && Q != null && D != null && o != null && w != null && k != null && U != null && y != null && this.set(A, C, Q, D, o, w, k, U, y);
1393
1393
  }
1394
- set(A, C, Q, D, o, w, k, U, i) {
1394
+ set(A, C, Q, D, o, w, k, U, y) {
1395
1395
  const F = this.elements;
1396
- return F[0] = A, F[1] = D, F[2] = k, F[3] = C, F[4] = o, F[5] = U, F[6] = Q, F[7] = w, F[8] = i, this;
1396
+ return F[0] = A, F[1] = D, F[2] = k, F[3] = C, F[4] = o, F[5] = U, F[6] = Q, F[7] = w, F[8] = y, this;
1397
1397
  }
1398
1398
  identity() {
1399
1399
  return this.set(1, 0, 0, 0, 1, 0, 0, 0, 1), this;
@@ -1416,22 +1416,22 @@ const DB = class DI {
1416
1416
  return this.multiplyMatrices(A, this);
1417
1417
  }
1418
1418
  multiplyMatrices(A, C) {
1419
- const Q = A.elements, D = C.elements, o = this.elements, w = Q[0], k = Q[3], U = Q[6], i = Q[1], F = Q[4], h = Q[7], L = Q[2], R = Q[5], c = Q[8], H = D[0], s = D[3], a = D[6], v = D[1], V = D[4], O = D[7], z = D[2], f = D[5], q = D[8];
1420
- return o[0] = w * H + k * v + U * z, o[3] = w * s + k * V + U * f, o[6] = w * a + k * O + U * q, o[1] = i * H + F * v + h * z, o[4] = i * s + F * V + h * f, o[7] = i * a + F * O + h * q, o[2] = L * H + R * v + c * z, o[5] = L * s + R * V + c * f, o[8] = L * a + R * O + c * q, this;
1419
+ const Q = A.elements, D = C.elements, o = this.elements, w = Q[0], k = Q[3], U = Q[6], y = Q[1], F = Q[4], h = Q[7], L = Q[2], i = Q[5], c = Q[8], H = D[0], S = D[3], s = D[6], v = D[1], V = D[4], O = D[7], z = D[2], f = D[5], q = D[8];
1420
+ return o[0] = w * H + k * v + U * z, o[3] = w * S + k * V + U * f, o[6] = w * s + k * O + U * q, o[1] = y * H + F * v + h * z, o[4] = y * S + F * V + h * f, o[7] = y * s + F * O + h * q, o[2] = L * H + i * v + c * z, o[5] = L * S + i * V + c * f, o[8] = L * s + i * O + c * q, this;
1421
1421
  }
1422
1422
  multiplyScalar(A) {
1423
1423
  const C = this.elements;
1424
1424
  return C[0] *= A, C[3] *= A, C[6] *= A, C[1] *= A, C[4] *= A, C[7] *= A, C[2] *= A, C[5] *= A, C[8] *= A, this;
1425
1425
  }
1426
1426
  determinant() {
1427
- const A = this.elements, C = A[0], Q = A[1], D = A[2], o = A[3], w = A[4], k = A[5], U = A[6], i = A[7], F = A[8];
1428
- return C * w * F - C * k * i - Q * o * F + Q * k * U + D * o * i - D * w * U;
1427
+ const A = this.elements, C = A[0], Q = A[1], D = A[2], o = A[3], w = A[4], k = A[5], U = A[6], y = A[7], F = A[8];
1428
+ return C * w * F - C * k * y - Q * o * F + Q * k * U + D * o * y - D * w * U;
1429
1429
  }
1430
1430
  invert() {
1431
- const A = this.elements, C = A[0], Q = A[1], D = A[2], o = A[3], w = A[4], k = A[5], U = A[6], i = A[7], F = A[8], h = F * w - k * i, L = k * U - F * o, R = i * o - w * U, c = C * h + Q * L + D * R;
1431
+ const A = this.elements, C = A[0], Q = A[1], D = A[2], o = A[3], w = A[4], k = A[5], U = A[6], y = A[7], F = A[8], h = F * w - k * y, L = k * U - F * o, i = y * o - w * U, c = C * h + Q * L + D * i;
1432
1432
  if (c === 0) return this.set(0, 0, 0, 0, 0, 0, 0, 0, 0);
1433
1433
  const H = 1 / c;
1434
- return A[0] = h * H, A[1] = (D * i - F * Q) * H, A[2] = (k * Q - D * w) * H, A[3] = L * H, A[4] = (F * C - D * U) * H, A[5] = (D * o - k * C) * H, A[6] = R * H, A[7] = (Q * U - i * C) * H, A[8] = (w * C - Q * o) * H, this;
1434
+ return A[0] = h * H, A[1] = (D * y - F * Q) * H, A[2] = (k * Q - D * w) * H, A[3] = L * H, A[4] = (F * C - D * U) * H, A[5] = (D * o - k * C) * H, A[6] = i * H, A[7] = (Q * U - y * C) * H, A[8] = (w * C - Q * o) * H, this;
1435
1435
  }
1436
1436
  transpose() {
1437
1437
  let A;
@@ -1446,14 +1446,14 @@ const DB = class DI {
1446
1446
  return A.elements[0] = C[0], A.elements[1] = C[3], A.elements[2] = C[6], A.elements[3] = C[1], A.elements[4] = C[4], A.elements[5] = C[7], A.elements[6] = C[2], A.elements[7] = C[5], A.elements[8] = C[8], this;
1447
1447
  }
1448
1448
  setUvTransform(A, C, Q, D, o, w, k) {
1449
- const U = Math.cos(o), i = Math.sin(o);
1449
+ const U = Math.cos(o), y = Math.sin(o);
1450
1450
  return this.set(
1451
1451
  Q * U,
1452
- Q * i,
1453
- -Q * (U * w + i * k) + w + A,
1454
- -D * i,
1452
+ Q * y,
1453
+ -Q * (U * w + y * k) + w + A,
1454
+ -D * y,
1455
1455
  D * U,
1456
- -D * (-i * w + U * k) + k + C,
1456
+ -D * (-y * w + U * k) + k + C,
1457
1457
  0,
1458
1458
  0,
1459
1459
  1
@@ -1529,34 +1529,34 @@ class NB {
1529
1529
  this._x = A, this._y = C, this._z = Q, this._w = D;
1530
1530
  }
1531
1531
  static slerpFlat(A, C, Q, D, o, w, k) {
1532
- let U = Q[D + 0], i = Q[D + 1], F = Q[D + 2], h = Q[D + 3];
1533
- const L = o[w + 0], R = o[w + 1], c = o[w + 2], H = o[w + 3];
1532
+ let U = Q[D + 0], y = Q[D + 1], F = Q[D + 2], h = Q[D + 3];
1533
+ const L = o[w + 0], i = o[w + 1], c = o[w + 2], H = o[w + 3];
1534
1534
  if (k === 0) {
1535
- A[C + 0] = U, A[C + 1] = i, A[C + 2] = F, A[C + 3] = h;
1535
+ A[C + 0] = U, A[C + 1] = y, A[C + 2] = F, A[C + 3] = h;
1536
1536
  return;
1537
1537
  }
1538
1538
  if (k === 1) {
1539
- A[C + 0] = L, A[C + 1] = R, A[C + 2] = c, A[C + 3] = H;
1539
+ A[C + 0] = L, A[C + 1] = i, A[C + 2] = c, A[C + 3] = H;
1540
1540
  return;
1541
1541
  }
1542
- if (h !== H || U !== L || i !== R || F !== c) {
1543
- let s = 1 - k;
1544
- const a = U * L + i * R + F * c + h * H, v = a >= 0 ? 1 : -1, V = 1 - a * a;
1542
+ if (h !== H || U !== L || y !== i || F !== c) {
1543
+ let S = 1 - k;
1544
+ const s = U * L + y * i + F * c + h * H, v = s >= 0 ? 1 : -1, V = 1 - s * s;
1545
1545
  if (V > Number.EPSILON) {
1546
- const z = Math.sqrt(V), f = Math.atan2(z, a * v);
1547
- s = Math.sin(s * f) / z, k = Math.sin(k * f) / z;
1546
+ const z = Math.sqrt(V), f = Math.atan2(z, s * v);
1547
+ S = Math.sin(S * f) / z, k = Math.sin(k * f) / z;
1548
1548
  }
1549
1549
  const O = k * v;
1550
- if (U = U * s + L * O, i = i * s + R * O, F = F * s + c * O, h = h * s + H * O, s === 1 - k) {
1551
- const z = 1 / Math.sqrt(U * U + i * i + F * F + h * h);
1552
- U *= z, i *= z, F *= z, h *= z;
1550
+ if (U = U * S + L * O, y = y * S + i * O, F = F * S + c * O, h = h * S + H * O, S === 1 - k) {
1551
+ const z = 1 / Math.sqrt(U * U + y * y + F * F + h * h);
1552
+ U *= z, y *= z, F *= z, h *= z;
1553
1553
  }
1554
1554
  }
1555
- A[C] = U, A[C + 1] = i, A[C + 2] = F, A[C + 3] = h;
1555
+ A[C] = U, A[C + 1] = y, A[C + 2] = F, A[C + 3] = h;
1556
1556
  }
1557
1557
  static multiplyQuaternionsFlat(A, C, Q, D, o, w) {
1558
- const k = Q[D], U = Q[D + 1], i = Q[D + 2], F = Q[D + 3], h = o[w], L = o[w + 1], R = o[w + 2], c = o[w + 3];
1559
- return A[C] = k * c + F * h + U * R - i * L, A[C + 1] = U * c + F * L + i * h - k * R, A[C + 2] = i * c + F * R + k * L - U * h, A[C + 3] = F * c - k * h - U * L - i * R, A;
1558
+ const k = Q[D], U = Q[D + 1], y = Q[D + 2], F = Q[D + 3], h = o[w], L = o[w + 1], i = o[w + 2], c = o[w + 3];
1559
+ return A[C] = k * c + F * h + U * i - y * L, A[C + 1] = U * c + F * L + y * h - k * i, A[C + 2] = y * c + F * i + k * L - U * h, A[C + 3] = F * c - k * h - U * L - y * i, A;
1560
1560
  }
1561
1561
  get x() {
1562
1562
  return this._x;
@@ -1592,25 +1592,25 @@ class NB {
1592
1592
  return this._x = A.x, this._y = A.y, this._z = A.z, this._w = A.w, this._onChangeCallback(), this;
1593
1593
  }
1594
1594
  setFromEuler(A, C = !0) {
1595
- const Q = A.x, D = A.y, o = A.z, w = A.order, k = Math.cos, U = Math.sin, i = k(Q / 2), F = k(D / 2), h = k(o / 2), L = U(Q / 2), R = U(D / 2), c = U(o / 2);
1595
+ const Q = A.x, D = A.y, o = A.z, w = A.order, k = Math.cos, U = Math.sin, y = k(Q / 2), F = k(D / 2), h = k(o / 2), L = U(Q / 2), i = U(D / 2), c = U(o / 2);
1596
1596
  switch (w) {
1597
1597
  case "XYZ":
1598
- this._x = L * F * h + i * R * c, this._y = i * R * h - L * F * c, this._z = i * F * c + L * R * h, this._w = i * F * h - L * R * c;
1598
+ this._x = L * F * h + y * i * c, this._y = y * i * h - L * F * c, this._z = y * F * c + L * i * h, this._w = y * F * h - L * i * c;
1599
1599
  break;
1600
1600
  case "YXZ":
1601
- this._x = L * F * h + i * R * c, this._y = i * R * h - L * F * c, this._z = i * F * c - L * R * h, this._w = i * F * h + L * R * c;
1601
+ this._x = L * F * h + y * i * c, this._y = y * i * h - L * F * c, this._z = y * F * c - L * i * h, this._w = y * F * h + L * i * c;
1602
1602
  break;
1603
1603
  case "ZXY":
1604
- this._x = L * F * h - i * R * c, this._y = i * R * h + L * F * c, this._z = i * F * c + L * R * h, this._w = i * F * h - L * R * c;
1604
+ this._x = L * F * h - y * i * c, this._y = y * i * h + L * F * c, this._z = y * F * c + L * i * h, this._w = y * F * h - L * i * c;
1605
1605
  break;
1606
1606
  case "ZYX":
1607
- this._x = L * F * h - i * R * c, this._y = i * R * h + L * F * c, this._z = i * F * c - L * R * h, this._w = i * F * h + L * R * c;
1607
+ this._x = L * F * h - y * i * c, this._y = y * i * h + L * F * c, this._z = y * F * c - L * i * h, this._w = y * F * h + L * i * c;
1608
1608
  break;
1609
1609
  case "YZX":
1610
- this._x = L * F * h + i * R * c, this._y = i * R * h + L * F * c, this._z = i * F * c - L * R * h, this._w = i * F * h - L * R * c;
1610
+ this._x = L * F * h + y * i * c, this._y = y * i * h + L * F * c, this._z = y * F * c - L * i * h, this._w = y * F * h - L * i * c;
1611
1611
  break;
1612
1612
  case "XZY":
1613
- this._x = L * F * h - i * R * c, this._y = i * R * h - L * F * c, this._z = i * F * c + L * R * h, this._w = i * F * h + L * R * c;
1613
+ this._x = L * F * h - y * i * c, this._y = y * i * h - L * F * c, this._z = y * F * c + L * i * h, this._w = y * F * h + L * i * c;
1614
1614
  break;
1615
1615
  }
1616
1616
  return C === !0 && this._onChangeCallback(), this;
@@ -1620,19 +1620,19 @@ class NB {
1620
1620
  return this._x = A.x * D, this._y = A.y * D, this._z = A.z * D, this._w = Math.cos(Q), this._onChangeCallback(), this;
1621
1621
  }
1622
1622
  setFromRotationMatrix(A) {
1623
- const C = A.elements, Q = C[0], D = C[4], o = C[8], w = C[1], k = C[5], U = C[9], i = C[2], F = C[6], h = C[10], L = Q + k + h;
1623
+ const C = A.elements, Q = C[0], D = C[4], o = C[8], w = C[1], k = C[5], U = C[9], y = C[2], F = C[6], h = C[10], L = Q + k + h;
1624
1624
  if (L > 0) {
1625
- const R = 0.5 / Math.sqrt(L + 1);
1626
- this._w = 0.25 / R, this._x = (F - U) * R, this._y = (o - i) * R, this._z = (w - D) * R;
1625
+ const i = 0.5 / Math.sqrt(L + 1);
1626
+ this._w = 0.25 / i, this._x = (F - U) * i, this._y = (o - y) * i, this._z = (w - D) * i;
1627
1627
  } else if (Q > k && Q > h) {
1628
- const R = 2 * Math.sqrt(1 + Q - k - h);
1629
- this._w = (F - U) / R, this._x = 0.25 * R, this._y = (D + w) / R, this._z = (o + i) / R;
1628
+ const i = 2 * Math.sqrt(1 + Q - k - h);
1629
+ this._w = (F - U) / i, this._x = 0.25 * i, this._y = (D + w) / i, this._z = (o + y) / i;
1630
1630
  } else if (k > h) {
1631
- const R = 2 * Math.sqrt(1 + k - Q - h);
1632
- this._w = (o - i) / R, this._x = (D + w) / R, this._y = 0.25 * R, this._z = (U + F) / R;
1631
+ const i = 2 * Math.sqrt(1 + k - Q - h);
1632
+ this._w = (o - y) / i, this._x = (D + w) / i, this._y = 0.25 * i, this._z = (U + F) / i;
1633
1633
  } else {
1634
- const R = 2 * Math.sqrt(1 + h - Q - k);
1635
- this._w = (w - D) / R, this._x = (o + i) / R, this._y = (U + F) / R, this._z = 0.25 * R;
1634
+ const i = 2 * Math.sqrt(1 + h - Q - k);
1635
+ this._w = (w - D) / i, this._x = (o + y) / i, this._y = (U + F) / i, this._z = 0.25 * i;
1636
1636
  }
1637
1637
  return this._onChangeCallback(), this;
1638
1638
  }
@@ -1680,8 +1680,8 @@ class NB {
1680
1680
  return this.multiplyQuaternions(A, this);
1681
1681
  }
1682
1682
  multiplyQuaternions(A, C) {
1683
- const Q = A._x, D = A._y, o = A._z, w = A._w, k = C._x, U = C._y, i = C._z, F = C._w;
1684
- return this._x = Q * F + w * k + D * i - o * U, this._y = D * F + w * U + o * k - Q * i, this._z = o * F + w * i + Q * U - D * k, this._w = w * F - Q * k - D * U - o * i, this._onChangeCallback(), this;
1683
+ const Q = A._x, D = A._y, o = A._z, w = A._w, k = C._x, U = C._y, y = C._z, F = C._w;
1684
+ return this._x = Q * F + w * k + D * y - o * U, this._y = D * F + w * U + o * k - Q * y, this._z = o * F + w * y + Q * U - D * k, this._w = w * F - Q * k - D * U - o * y, this._onChangeCallback(), this;
1685
1685
  }
1686
1686
  slerp(A, C) {
1687
1687
  if (C === 0) return this;
@@ -1692,10 +1692,10 @@ class NB {
1692
1692
  return this._w = w, this._x = Q, this._y = D, this._z = o, this;
1693
1693
  const U = 1 - k * k;
1694
1694
  if (U <= Number.EPSILON) {
1695
- const R = 1 - C;
1696
- return this._w = R * w + C * this._w, this._x = R * Q + C * this._x, this._y = R * D + C * this._y, this._z = R * o + C * this._z, this.normalize(), this;
1695
+ const i = 1 - C;
1696
+ return this._w = i * w + C * this._w, this._x = i * Q + C * this._x, this._y = i * D + C * this._y, this._z = i * o + C * this._z, this.normalize(), this;
1697
1697
  }
1698
- const i = Math.sqrt(U), F = Math.atan2(i, k), h = Math.sin((1 - C) * F) / i, L = Math.sin(C * F) / i;
1698
+ const y = Math.sqrt(U), F = Math.atan2(y, k), h = Math.sin((1 - C) * F) / y, L = Math.sin(C * F) / y;
1699
1699
  return this._w = w * h + this._w * L, this._x = Q * h + this._x * L, this._y = D * h + this._y * L, this._z = o * h + this._z * L, this._onChangeCallback(), this;
1700
1700
  }
1701
1701
  slerpQuaternions(A, C, Q) {
@@ -1849,8 +1849,8 @@ const cA = class GI {
1849
1849
  return this.x = (o[0] * C + o[4] * Q + o[8] * D + o[12]) * w, this.y = (o[1] * C + o[5] * Q + o[9] * D + o[13]) * w, this.z = (o[2] * C + o[6] * Q + o[10] * D + o[14]) * w, this;
1850
1850
  }
1851
1851
  applyQuaternion(A) {
1852
- const C = this.x, Q = this.y, D = this.z, o = A.x, w = A.y, k = A.z, U = A.w, i = 2 * (w * D - k * Q), F = 2 * (k * C - o * D), h = 2 * (o * Q - w * C);
1853
- return this.x = C + U * i + w * h - k * F, this.y = Q + U * F + k * i - o * h, this.z = D + U * h + o * F - w * i, this;
1852
+ const C = this.x, Q = this.y, D = this.z, o = A.x, w = A.y, k = A.z, U = A.w, y = 2 * (w * D - k * Q), F = 2 * (k * C - o * D), h = 2 * (o * Q - w * C);
1853
+ return this.x = C + U * y + w * h - k * F, this.y = Q + U * F + k * y - o * h, this.z = D + U * h + o * F - w * y, this;
1854
1854
  }
1855
1855
  transformDirection(A) {
1856
1856
  const C = this.x, Q = this.y, D = this.z, o = A.elements;
@@ -1995,8 +1995,8 @@ const cA = class GI {
1995
1995
  cA.ORIGIN = Object.freeze(new cA(0, 0, 0)), cA.X_AXIS = Object.freeze(new cA(1, 0, 0)), cA.NEGATIVE_X_AXIS = Object.freeze(new cA(-1, 0, 0)), cA.Y_AXIS = Object.freeze(new cA(0, 1, 0)), cA.NEGATIVE_Y_AXIS = Object.freeze(new cA(0, -1, 0)), cA.Z_AXIS = Object.freeze(new cA(0, 0, 1)), cA.NEGATIVE_Z_AXIS = Object.freeze(new cA(0, 0, -1));
1996
1996
  let CA = cA;
1997
1997
  const _C = new CA(), pB = new NB(), oB = class wI {
1998
- constructor(A, C, Q, D, o, w, k, U, i, F, h, L, R, c, H, s) {
1999
- this.elements = [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1], A != null && C != null && Q != null && D != null && o != null && w != null && k != null && U != null && i != null && F != null && h != null && L != null && R != null && c != null && H != null && s != null && this.set(
1998
+ constructor(A, C, Q, D, o, w, k, U, y, F, h, L, i, c, H, S) {
1999
+ this.elements = [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1], A != null && C != null && Q != null && D != null && o != null && w != null && k != null && U != null && y != null && F != null && h != null && L != null && i != null && c != null && H != null && S != null && this.set(
2000
2000
  A,
2001
2001
  C,
2002
2002
  Q,
@@ -2005,19 +2005,19 @@ const _C = new CA(), pB = new NB(), oB = class wI {
2005
2005
  w,
2006
2006
  k,
2007
2007
  U,
2008
- i,
2008
+ y,
2009
2009
  F,
2010
2010
  h,
2011
2011
  L,
2012
- R,
2012
+ i,
2013
2013
  c,
2014
2014
  H,
2015
- s
2015
+ S
2016
2016
  );
2017
2017
  }
2018
- set(A, C, Q, D, o, w, k, U, i, F, h, L, R, c, H, s) {
2019
- const a = this.elements;
2020
- return a[0] = A, a[4] = C, a[8] = Q, a[12] = D, a[1] = o, a[5] = w, a[9] = k, a[13] = U, a[2] = i, a[6] = F, a[10] = h, a[14] = L, a[3] = R, a[7] = c, a[11] = H, a[15] = s, this;
2018
+ set(A, C, Q, D, o, w, k, U, y, F, h, L, i, c, H, S) {
2019
+ const s = this.elements;
2020
+ return s[0] = A, s[4] = C, s[8] = Q, s[12] = D, s[1] = o, s[5] = w, s[9] = k, s[13] = U, s[2] = y, s[6] = F, s[10] = h, s[14] = L, s[3] = i, s[7] = c, s[11] = H, s[15] = S, this;
2021
2021
  }
2022
2022
  identity() {
2023
2023
  return this.set(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1), this;
@@ -2114,7 +2114,7 @@ const _C = new CA(), pB = new NB(), oB = class wI {
2114
2114
  }
2115
2115
  lookAt(A, C, Q) {
2116
2116
  const D = this.elements;
2117
- return OA.subVectors(A, C), OA.lengthSq() === 0 && (OA.z = 1), OA.normalize(), yg.crossVectors(Q, OA), yg.lengthSq() === 0 && (Math.abs(Q.z) === 1 ? OA.x += 1e-4 : OA.z += 1e-4, OA.normalize(), yg.crossVectors(Q, OA)), yg.normalize(), qQ.crossVectors(OA, yg), D[0] = yg.x, D[4] = qQ.x, D[8] = OA.x, D[1] = yg.y, D[5] = qQ.y, D[9] = OA.y, D[2] = yg.z, D[6] = qQ.z, D[10] = OA.z, this;
2117
+ return OA.subVectors(A, C), OA.lengthSq() === 0 && (OA.z = 1), OA.normalize(), Rg.crossVectors(Q, OA), Rg.lengthSq() === 0 && (Math.abs(Q.z) === 1 ? OA.x += 1e-4 : OA.z += 1e-4, OA.normalize(), Rg.crossVectors(Q, OA)), Rg.normalize(), qQ.crossVectors(OA, Rg), D[0] = Rg.x, D[4] = qQ.x, D[8] = OA.x, D[1] = Rg.y, D[5] = qQ.y, D[9] = OA.y, D[2] = Rg.z, D[6] = qQ.z, D[10] = OA.z, this;
2118
2118
  }
2119
2119
  multiply(A) {
2120
2120
  return this.multiplyMatrices(this, A);
@@ -2123,16 +2123,16 @@ const _C = new CA(), pB = new NB(), oB = class wI {
2123
2123
  return this.multiplyMatrices(A, this);
2124
2124
  }
2125
2125
  multiplyMatrices(A, C) {
2126
- const Q = A.elements, D = C.elements, o = this.elements, w = Q[0], k = Q[4], U = Q[8], i = Q[12], F = Q[1], h = Q[5], L = Q[9], R = Q[13], c = Q[2], H = Q[6], s = Q[10], a = Q[14], v = Q[3], V = Q[7], O = Q[11], z = Q[15], f = D[0], q = D[4], W = D[8], AA = D[12], EA = D[1], P = D[5], d = D[9], e = D[13], iA = D[2], MA = D[6], zA = D[10], TA = D[14], RA = D[3], VA = D[7], vA = D[11], nA = D[15];
2127
- return o[0] = w * f + k * EA + U * iA + i * RA, o[4] = w * q + k * P + U * MA + i * VA, o[8] = w * W + k * d + U * zA + i * vA, o[12] = w * AA + k * e + U * TA + i * nA, o[1] = F * f + h * EA + L * iA + R * RA, o[5] = F * q + h * P + L * MA + R * VA, o[9] = F * W + h * d + L * zA + R * vA, o[13] = F * AA + h * e + L * TA + R * nA, o[2] = c * f + H * EA + s * iA + a * RA, o[6] = c * q + H * P + s * MA + a * VA, o[10] = c * W + H * d + s * zA + a * vA, o[14] = c * AA + H * e + s * TA + a * nA, o[3] = v * f + V * EA + O * iA + z * RA, o[7] = v * q + V * P + O * MA + z * VA, o[11] = v * W + V * d + O * zA + z * vA, o[15] = v * AA + V * e + O * TA + z * nA, this;
2126
+ const Q = A.elements, D = C.elements, o = this.elements, w = Q[0], k = Q[4], U = Q[8], y = Q[12], F = Q[1], h = Q[5], L = Q[9], i = Q[13], c = Q[2], H = Q[6], S = Q[10], s = Q[14], v = Q[3], V = Q[7], O = Q[11], z = Q[15], f = D[0], q = D[4], W = D[8], AA = D[12], EA = D[1], P = D[5], d = D[9], e = D[13], yA = D[2], MA = D[6], zA = D[10], TA = D[14], iA = D[3], VA = D[7], vA = D[11], nA = D[15];
2127
+ return o[0] = w * f + k * EA + U * yA + y * iA, o[4] = w * q + k * P + U * MA + y * VA, o[8] = w * W + k * d + U * zA + y * vA, o[12] = w * AA + k * e + U * TA + y * nA, o[1] = F * f + h * EA + L * yA + i * iA, o[5] = F * q + h * P + L * MA + i * VA, o[9] = F * W + h * d + L * zA + i * vA, o[13] = F * AA + h * e + L * TA + i * nA, o[2] = c * f + H * EA + S * yA + s * iA, o[6] = c * q + H * P + S * MA + s * VA, o[10] = c * W + H * d + S * zA + s * vA, o[14] = c * AA + H * e + S * TA + s * nA, o[3] = v * f + V * EA + O * yA + z * iA, o[7] = v * q + V * P + O * MA + z * VA, o[11] = v * W + V * d + O * zA + z * vA, o[15] = v * AA + V * e + O * TA + z * nA, this;
2128
2128
  }
2129
2129
  multiplyScalar(A) {
2130
2130
  const C = this.elements;
2131
2131
  return C[0] *= A, C[4] *= A, C[8] *= A, C[12] *= A, C[1] *= A, C[5] *= A, C[9] *= A, C[13] *= A, C[2] *= A, C[6] *= A, C[10] *= A, C[14] *= A, C[3] *= A, C[7] *= A, C[11] *= A, C[15] *= A, this;
2132
2132
  }
2133
2133
  determinant() {
2134
- const A = this.elements, C = A[0], Q = A[4], D = A[8], o = A[12], w = A[1], k = A[5], U = A[9], i = A[13], F = A[2], h = A[6], L = A[10], R = A[14], c = A[3], H = A[7], s = A[11], a = A[15];
2135
- return c * (+o * U * h - D * i * h - o * k * L + Q * i * L + D * k * R - Q * U * R) + H * (+C * U * R - C * i * L + o * w * L - D * w * R + D * i * F - o * U * F) + s * (+C * i * h - C * k * R - o * w * h + Q * w * R + o * k * F - Q * i * F) + a * (-D * k * F - C * U * h + C * k * L + D * w * h - Q * w * L + Q * U * F);
2134
+ const A = this.elements, C = A[0], Q = A[4], D = A[8], o = A[12], w = A[1], k = A[5], U = A[9], y = A[13], F = A[2], h = A[6], L = A[10], i = A[14], c = A[3], H = A[7], S = A[11], s = A[15];
2135
+ return c * (+o * U * h - D * y * h - o * k * L + Q * y * L + D * k * i - Q * U * i) + H * (+C * U * i - C * y * L + o * w * L - D * w * i + D * y * F - o * U * F) + S * (+C * y * h - C * k * i - o * w * h + Q * w * i + o * k * F - Q * y * F) + s * (-D * k * F - C * U * h + C * k * L + D * w * h - Q * w * L + Q * U * F);
2136
2136
  }
2137
2137
  transpose() {
2138
2138
  const A = this.elements;
@@ -2144,11 +2144,11 @@ const _C = new CA(), pB = new NB(), oB = class wI {
2144
2144
  return A instanceof CA ? (D[12] = A.x, D[13] = A.y, D[14] = A.z) : (D[12] = A, D[13] = C, D[14] = Q), this;
2145
2145
  }
2146
2146
  invert() {
2147
- const A = this.elements, C = A[0], Q = A[1], D = A[2], o = A[3], w = A[4], k = A[5], U = A[6], i = A[7], F = A[8], h = A[9], L = A[10], R = A[11], c = A[12], H = A[13], s = A[14], a = A[15], v = h * s * i - H * L * i + H * U * R - k * s * R - h * U * a + k * L * a, V = c * L * i - F * s * i - c * U * R + w * s * R + F * U * a - w * L * a, O = F * H * i - c * h * i + c * k * R - w * H * R - F * k * a + w * h * a, z = c * h * U - F * H * U - c * k * L + w * H * L + F * k * s - w * h * s, f = C * v + Q * V + D * O + o * z;
2147
+ const A = this.elements, C = A[0], Q = A[1], D = A[2], o = A[3], w = A[4], k = A[5], U = A[6], y = A[7], F = A[8], h = A[9], L = A[10], i = A[11], c = A[12], H = A[13], S = A[14], s = A[15], v = h * S * y - H * L * y + H * U * i - k * S * i - h * U * s + k * L * s, V = c * L * y - F * S * y - c * U * i + w * S * i + F * U * s - w * L * s, O = F * H * y - c * h * y + c * k * i - w * H * i - F * k * s + w * h * s, z = c * h * U - F * H * U - c * k * L + w * H * L + F * k * S - w * h * S, f = C * v + Q * V + D * O + o * z;
2148
2148
  if (f === 0)
2149
2149
  return this.set(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
2150
2150
  const q = 1 / f;
2151
- return A[0] = v * q, A[1] = (H * L * o - h * s * o - H * D * R + Q * s * R + h * D * a - Q * L * a) * q, A[2] = (k * s * o - H * U * o + H * D * i - Q * s * i - k * D * a + Q * U * a) * q, A[3] = (h * U * o - k * L * o - h * D * i + Q * L * i + k * D * R - Q * U * R) * q, A[4] = V * q, A[5] = (F * s * o - c * L * o + c * D * R - C * s * R - F * D * a + C * L * a) * q, A[6] = (c * U * o - w * s * o - c * D * i + C * s * i + w * D * a - C * U * a) * q, A[7] = (w * L * o - F * U * o + F * D * i - C * L * i - w * D * R + C * U * R) * q, A[8] = O * q, A[9] = (c * h * o - F * H * o - c * Q * R + C * H * R + F * Q * a - C * h * a) * q, A[10] = (w * H * o - c * k * o + c * Q * i - C * H * i - w * Q * a + C * k * a) * q, A[11] = (F * k * o - w * h * o - F * Q * i + C * h * i + w * Q * R - C * k * R) * q, A[12] = z * q, A[13] = (F * H * D - c * h * D + c * Q * L - C * H * L - F * Q * s + C * h * s) * q, A[14] = (c * k * D - w * H * D - c * Q * U + C * H * U + w * Q * s - C * k * s) * q, A[15] = (w * h * D - F * k * D + F * Q * U - C * h * U - w * Q * L + C * k * L) * q, this;
2151
+ return A[0] = v * q, A[1] = (H * L * o - h * S * o - H * D * i + Q * S * i + h * D * s - Q * L * s) * q, A[2] = (k * S * o - H * U * o + H * D * y - Q * S * y - k * D * s + Q * U * s) * q, A[3] = (h * U * o - k * L * o - h * D * y + Q * L * y + k * D * i - Q * U * i) * q, A[4] = V * q, A[5] = (F * S * o - c * L * o + c * D * i - C * S * i - F * D * s + C * L * s) * q, A[6] = (c * U * o - w * S * o - c * D * y + C * S * y + w * D * s - C * U * s) * q, A[7] = (w * L * o - F * U * o + F * D * y - C * L * y - w * D * i + C * U * i) * q, A[8] = O * q, A[9] = (c * h * o - F * H * o - c * Q * i + C * H * i + F * Q * s - C * h * s) * q, A[10] = (w * H * o - c * k * o + c * Q * y - C * H * y - w * Q * s + C * k * s) * q, A[11] = (F * k * o - w * h * o - F * Q * y + C * h * y + w * Q * i - C * k * i) * q, A[12] = z * q, A[13] = (F * H * D - c * h * D + c * Q * L - C * H * L - F * Q * S + C * h * S) * q, A[14] = (c * k * D - w * H * D - c * Q * U + C * H * U + w * Q * S - C * k * S) * q, A[15] = (w * h * D - F * k * D + F * Q * U - C * h * U - w * Q * L + C * k * L) * q, this;
2152
2152
  }
2153
2153
  scale(A) {
2154
2154
  const C = this.elements, Q = A.x, D = A.y, o = A.z;
@@ -2174,17 +2174,17 @@ const _C = new CA(), pB = new NB(), oB = class wI {
2174
2174
  return this.set(C, -Q, 0, 0, Q, C, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1), this;
2175
2175
  }
2176
2176
  makeRotationAxis(A, C) {
2177
- const Q = Math.cos(C), D = Math.sin(C), o = 1 - Q, w = A.x, k = A.y, U = A.z, i = o * w, F = o * k;
2177
+ const Q = Math.cos(C), D = Math.sin(C), o = 1 - Q, w = A.x, k = A.y, U = A.z, y = o * w, F = o * k;
2178
2178
  return this.set(
2179
- i * w + Q,
2180
- i * k - D * U,
2181
- i * U + D * k,
2179
+ y * w + Q,
2180
+ y * k - D * U,
2181
+ y * U + D * k,
2182
2182
  0,
2183
- i * k + D * U,
2183
+ y * k + D * U,
2184
2184
  F * k + Q,
2185
2185
  F * U - D * w,
2186
2186
  0,
2187
- i * U - D * k,
2187
+ y * U - D * k,
2188
2188
  F * U + D * w,
2189
2189
  o * U * U + Q,
2190
2190
  0,
@@ -2201,16 +2201,16 @@ const _C = new CA(), pB = new NB(), oB = class wI {
2201
2201
  return this.set(1, Q, o, 0, A, 1, w, 0, C, D, 1, 0, 0, 0, 0, 1), this;
2202
2202
  }
2203
2203
  compose(A, C, Q) {
2204
- const D = this.elements, o = C.x, w = C.y, k = C.z, U = C.w, i = o + o, F = w + w, h = k + k, L = o * i, R = o * F, c = o * h, H = w * F, s = w * h, a = k * h, v = U * i, V = U * F, O = U * h, z = Q.x, f = Q.y, q = Q.z;
2205
- return D[0] = (1 - (H + a)) * z, D[1] = (R + O) * z, D[2] = (c - V) * z, D[3] = 0, D[4] = (R - O) * f, D[5] = (1 - (L + a)) * f, D[6] = (s + v) * f, D[7] = 0, D[8] = (c + V) * q, D[9] = (s - v) * q, D[10] = (1 - (L + H)) * q, D[11] = 0, D[12] = A.x, D[13] = A.y, D[14] = A.z, D[15] = 1, this;
2204
+ const D = this.elements, o = C.x, w = C.y, k = C.z, U = C.w, y = o + o, F = w + w, h = k + k, L = o * y, i = o * F, c = o * h, H = w * F, S = w * h, s = k * h, v = U * y, V = U * F, O = U * h, z = Q.x, f = Q.y, q = Q.z;
2205
+ return D[0] = (1 - (H + s)) * z, D[1] = (i + O) * z, D[2] = (c - V) * z, D[3] = 0, D[4] = (i - O) * f, D[5] = (1 - (L + s)) * f, D[6] = (S + v) * f, D[7] = 0, D[8] = (c + V) * q, D[9] = (S - v) * q, D[10] = (1 - (L + H)) * q, D[11] = 0, D[12] = A.x, D[13] = A.y, D[14] = A.z, D[15] = 1, this;
2206
2206
  }
2207
2207
  decompose(A, C, Q) {
2208
2208
  const D = this.elements;
2209
2209
  let o = eg.set(D[0], D[1], D[2]).length();
2210
2210
  const w = eg.set(D[4], D[5], D[6]).length(), k = eg.set(D[8], D[9], D[10]).length();
2211
2211
  this.determinant() < 0 && (o = -o), A.x = D[12], A.y = D[13], A.z = D[14], _A.copy(this);
2212
- const U = 1 / o, i = 1 / w, F = 1 / k;
2213
- return _A.elements[0] *= U, _A.elements[1] *= U, _A.elements[2] *= U, _A.elements[4] *= i, _A.elements[5] *= i, _A.elements[6] *= i, _A.elements[8] *= F, _A.elements[9] *= F, _A.elements[10] *= F, C.setFromRotationMatrix(_A), Q.x = o, Q.y = w, Q.z = k, this;
2212
+ const U = 1 / o, y = 1 / w, F = 1 / k;
2213
+ return _A.elements[0] *= U, _A.elements[1] *= U, _A.elements[2] *= U, _A.elements[4] *= y, _A.elements[5] *= y, _A.elements[6] *= y, _A.elements[8] *= F, _A.elements[9] *= F, _A.elements[10] *= F, C.setFromRotationMatrix(_A), Q.x = o, Q.y = w, Q.z = k, this;
2214
2214
  }
2215
2215
  equals(A) {
2216
2216
  const C = this.elements, Q = A.elements;
@@ -2230,7 +2230,7 @@ const _C = new CA(), pB = new NB(), oB = class wI {
2230
2230
  };
2231
2231
  oB.IDENTITY = Object.freeze(new oB());
2232
2232
  let YB = oB;
2233
- const eg = new CA(), _A = new YB(), EG = new CA(0, 0, 0), DG = new CA(1, 1, 1), yg = new CA(), qQ = new CA(), OA = new CA();
2233
+ const eg = new CA(), _A = new YB(), EG = new CA(0, 0, 0), DG = new CA(1, 1, 1), Rg = new CA(), qQ = new CA(), OA = new CA();
2234
2234
  new CA(), new CA(), new CA(), new CA(), new CA(), new CA(), new CA(), new CA();
2235
2235
  new CA();
2236
2236
  new UC();
@@ -2250,10 +2250,10 @@ new CA();
2250
2250
  new CA();
2251
2251
  new CA();
2252
2252
  new CA();
2253
- var oG = ((g) => (g.ClosedFilled = "", g.Dot = "_DOT", g.DotSmall = "_DOTSMALL", g.DotBlank = "_DOTBLANK", g.Origin = "_ORIGIN", g.Origin2 = "_ORIGIN2", g.Open = "_OPEN", g.Open90 = "_OPEN90", g.Open30 = "_OPEN30", g.Closed = "_CLOSED", g.Small = "_SMALL", g.None = "_NONE", g.Oblique = "_OBLIQUE", g.BoxFilled = "_BOXFILLED", g.Box = "_BOXBLANK", g.ClosedBlank = "_CLOSEDBLANK", g.DatumBlank = "_DATUMBLANK", g.DatumFilled = "_DATUMFILLED", g.Integral = "_INTEGRAL", g.ArchTick = "_ARCHTICK", g))(oG || {}), GG = ((g) => (g[g.ByBlock = -2] = "ByBlock", g[g.ByDIPs = -4] = "ByDIPs", g[g.ByLayer = -1] = "ByLayer", g[g.ByLineWeightDefault = -3] = "ByLineWeightDefault", g[g.LineWeight000 = 0] = "LineWeight000", g[g.LineWeight005 = 5] = "LineWeight005", g[g.LineWeight009 = 9] = "LineWeight009", g[g.LineWeight013 = 13] = "LineWeight013", g[g.LineWeight015 = 15] = "LineWeight015", g[g.LineWeight018 = 18] = "LineWeight018", g[g.LineWeight020 = 20] = "LineWeight020", g[g.LineWeight025 = 25] = "LineWeight025", g[g.LineWeight030 = 30] = "LineWeight030", g[g.LineWeight035 = 35] = "LineWeight035", g[g.LineWeight040 = 40] = "LineWeight040", g[g.LineWeight050 = 50] = "LineWeight050", g[g.LineWeight053 = 53] = "LineWeight053", g[g.LineWeight060 = 60] = "LineWeight060", g[g.LineWeight070 = 70] = "LineWeight070", g[g.LineWeight080 = 80] = "LineWeight080", g[g.LineWeight090 = 90] = "LineWeight090", g[g.LineWeight100 = 100] = "LineWeight100", g[g.LineWeight106 = 106] = "LineWeight106", g[g.LineWeight120 = 120] = "LineWeight120", g[g.LineWeight140 = 140] = "LineWeight140", g[g.LineWeight158 = 158] = "LineWeight158", g[g.LineWeight200 = 200] = "LineWeight200", g[g.LineWeight211 = 211] = "LineWeight211", g))(GG || {}), wG = ((g) => (g[g.LEFT_TO_RIGHT = 1] = "LEFT_TO_RIGHT", g[g.RIGHT_TO_LEFT = 2] = "RIGHT_TO_LEFT", g[g.TOP_TO_BOTTOM = 3] = "TOP_TO_BOTTOM", g[g.BOTTOM_TO_TOP = 4] = "BOTTOM_TO_TOP", g[g.BY_STYLE = 5] = "BY_STYLE", g))(wG || {}), MG = ((g) => (g[g.TopLeft = 1] = "TopLeft", g[g.TopCenter = 2] = "TopCenter", g[g.TopRight = 3] = "TopRight", g[g.MiddleLeft = 4] = "MiddleLeft", g[g.MiddleCenter = 5] = "MiddleCenter", g[g.MiddleRight = 6] = "MiddleRight", g[g.BottomLeft = 7] = "BottomLeft", g[g.BottomCenter = 8] = "BottomCenter", g[g.BottomRight = 9] = "BottomRight", g))(MG || {}), NG = ((g) => (g[g.OPTIMIZED_2D = 0] = "OPTIMIZED_2D", g[g.WIREFRAME = 1] = "WIREFRAME", g[g.HIDDEN_LINE = 2] = "HIDDEN_LINE", g[g.FLAT_SHADED = 3] = "FLAT_SHADED", g[g.GOURAUD_SHADED = 4] = "GOURAUD_SHADED", g[g.FLAT_SHADED_WITH_WIREFRAME = 5] = "FLAT_SHADED_WITH_WIREFRAME", g[g.GOURAUD_SHADED_WITH_WIREFRAME = 6] = "GOURAUD_SHADED_WITH_WIREFRAME", g))(NG || {}), YG = ((g) => (g[g.NON_ORTHOGRAPHIC = 0] = "NON_ORTHOGRAPHIC", g[g.TOP = 1] = "TOP", g[g.BOTTOM = 2] = "BOTTOM", g[g.FRONT = 3] = "FRONT", g[g.BACK = 4] = "BACK", g[g.LEFT = 5] = "LEFT", g[g.RIGHT = 6] = "RIGHT", g))(YG || {}), kG = ((g) => (g[g.ONE_DISTANT_LIGHT = 0] = "ONE_DISTANT_LIGHT", g[g.TWO_DISTANT_LIGHTS = 1] = "TWO_DISTANT_LIGHTS", g))(kG || {}), UG = ((g) => (g[g.SimplePoly = 0] = "SimplePoly", g[g.FitCurvePoly = 1] = "FitCurvePoly", g[g.QuadSplinePoly = 2] = "QuadSplinePoly", g[g.CubicSplinePoly = 3] = "CubicSplinePoly", g))(UG || {}), KG = ((g) => (g[g.Vertex = 0] = "Vertex", g[g.CurveFitVertex = 1] = "CurveFitVertex", g[g.SplineFitVertex = 8] = "SplineFitVertex", g[g.SplineCtlVertex = 9] = "SplineCtlVertex", g))(KG || {}), FG = ((g) => (g[g.SimplePoly = 0] = "SimplePoly", g[g.QuadSplinePoly = 1] = "QuadSplinePoly", g[g.CubicSplinePoly = 2] = "CubicSplinePoly", g))(FG || {}), iG = ((g) => (g[g.SimpleVertex = 0] = "SimpleVertex", g[g.ControlVertex = 1] = "ControlVertex", g[g.FitVertex = 2] = "FitVertex", g))(iG || {}), yG = ((g) => (g[g.LEFT = 0] = "LEFT", g[g.CENTER = 1] = "CENTER", g[g.RIGHT = 2] = "RIGHT", g[g.ALIGNED = 3] = "ALIGNED", g[g.MIDDLE = 4] = "MIDDLE", g[g.FIT = 5] = "FIT", g))(yG || {}), RG = ((g) => (g[g.BASELINE = 0] = "BASELINE", g[g.BOTTOM = 1] = "BOTTOM", g[g.MIDDLE = 2] = "MIDDLE", g[g.TOP = 3] = "TOP", g))(RG || {}), hG = ((g) => (g[g.Invisible = 1] = "Invisible", g[g.Const = 2] = "Const", g[g.Verifiable = 4] = "Verifiable", g[g.Preset = 8] = "Preset", g))(hG || {}), JG = ((g) => (g[g.MultiLine = 2] = "MultiLine", g[g.ConstMultiLine = 4] = "ConstMultiLine", g))(JG || {}), LG = ((g) => (g[g.UserDefined = 0] = "UserDefined", g[g.Predefined = 1] = "Predefined", g[g.Custom = 2] = "Custom", g))(LG || {}), HG = ((g) => (g[g.Normal = 0] = "Normal", g[g.Outer = 1] = "Outer", g[g.Ignore = 2] = "Ignore", g))(HG || {}), aG = ((g) => (g[g.MText = 0] = "MText", g[g.Fcf = 1] = "Fcf", g[g.BlockReference = 2] = "BlockReference", g[g.NoAnnotation = 3] = "NoAnnotation", g))(aG || {}), SG = ((g) => (g[g.EndPoint = 1] = "EndPoint", g[g.MidPoint = 2] = "MidPoint", g[g.Center = 3] = "Center", g[g.Node = 4] = "Node", g[g.Quadrant = 5] = "Quadrant", g[g.Insertion = 7] = "Insertion", g[g.Perpendicular = 8] = "Perpendicular", g[g.Tangent = 9] = "Tangent", g[g.Nearest = 10] = "Nearest", g[g.Centroid = 11] = "Centroid", g))(SG || {});
2253
+ var oG = ((g) => (g.ClosedFilled = "", g.Dot = "_DOT", g.DotSmall = "_DOTSMALL", g.DotBlank = "_DOTBLANK", g.Origin = "_ORIGIN", g.Origin2 = "_ORIGIN2", g.Open = "_OPEN", g.Open90 = "_OPEN90", g.Open30 = "_OPEN30", g.Closed = "_CLOSED", g.Small = "_SMALL", g.None = "_NONE", g.Oblique = "_OBLIQUE", g.BoxFilled = "_BOXFILLED", g.Box = "_BOXBLANK", g.ClosedBlank = "_CLOSEDBLANK", g.DatumBlank = "_DATUMBLANK", g.DatumFilled = "_DATUMFILLED", g.Integral = "_INTEGRAL", g.ArchTick = "_ARCHTICK", g))(oG || {}), GG = ((g) => (g[g.ByBlock = -2] = "ByBlock", g[g.ByDIPs = -4] = "ByDIPs", g[g.ByLayer = -1] = "ByLayer", g[g.ByLineWeightDefault = -3] = "ByLineWeightDefault", g[g.LineWeight000 = 0] = "LineWeight000", g[g.LineWeight005 = 5] = "LineWeight005", g[g.LineWeight009 = 9] = "LineWeight009", g[g.LineWeight013 = 13] = "LineWeight013", g[g.LineWeight015 = 15] = "LineWeight015", g[g.LineWeight018 = 18] = "LineWeight018", g[g.LineWeight020 = 20] = "LineWeight020", g[g.LineWeight025 = 25] = "LineWeight025", g[g.LineWeight030 = 30] = "LineWeight030", g[g.LineWeight035 = 35] = "LineWeight035", g[g.LineWeight040 = 40] = "LineWeight040", g[g.LineWeight050 = 50] = "LineWeight050", g[g.LineWeight053 = 53] = "LineWeight053", g[g.LineWeight060 = 60] = "LineWeight060", g[g.LineWeight070 = 70] = "LineWeight070", g[g.LineWeight080 = 80] = "LineWeight080", g[g.LineWeight090 = 90] = "LineWeight090", g[g.LineWeight100 = 100] = "LineWeight100", g[g.LineWeight106 = 106] = "LineWeight106", g[g.LineWeight120 = 120] = "LineWeight120", g[g.LineWeight140 = 140] = "LineWeight140", g[g.LineWeight158 = 158] = "LineWeight158", g[g.LineWeight200 = 200] = "LineWeight200", g[g.LineWeight211 = 211] = "LineWeight211", g))(GG || {}), wG = ((g) => (g[g.LEFT_TO_RIGHT = 1] = "LEFT_TO_RIGHT", g[g.RIGHT_TO_LEFT = 2] = "RIGHT_TO_LEFT", g[g.TOP_TO_BOTTOM = 3] = "TOP_TO_BOTTOM", g[g.BOTTOM_TO_TOP = 4] = "BOTTOM_TO_TOP", g[g.BY_STYLE = 5] = "BY_STYLE", g))(wG || {}), MG = ((g) => (g[g.TopLeft = 1] = "TopLeft", g[g.TopCenter = 2] = "TopCenter", g[g.TopRight = 3] = "TopRight", g[g.MiddleLeft = 4] = "MiddleLeft", g[g.MiddleCenter = 5] = "MiddleCenter", g[g.MiddleRight = 6] = "MiddleRight", g[g.BottomLeft = 7] = "BottomLeft", g[g.BottomCenter = 8] = "BottomCenter", g[g.BottomRight = 9] = "BottomRight", g))(MG || {}), NG = ((g) => (g[g.OPTIMIZED_2D = 0] = "OPTIMIZED_2D", g[g.WIREFRAME = 1] = "WIREFRAME", g[g.HIDDEN_LINE = 2] = "HIDDEN_LINE", g[g.FLAT_SHADED = 3] = "FLAT_SHADED", g[g.GOURAUD_SHADED = 4] = "GOURAUD_SHADED", g[g.FLAT_SHADED_WITH_WIREFRAME = 5] = "FLAT_SHADED_WITH_WIREFRAME", g[g.GOURAUD_SHADED_WITH_WIREFRAME = 6] = "GOURAUD_SHADED_WITH_WIREFRAME", g))(NG || {}), YG = ((g) => (g[g.NON_ORTHOGRAPHIC = 0] = "NON_ORTHOGRAPHIC", g[g.TOP = 1] = "TOP", g[g.BOTTOM = 2] = "BOTTOM", g[g.FRONT = 3] = "FRONT", g[g.BACK = 4] = "BACK", g[g.LEFT = 5] = "LEFT", g[g.RIGHT = 6] = "RIGHT", g))(YG || {}), kG = ((g) => (g[g.ONE_DISTANT_LIGHT = 0] = "ONE_DISTANT_LIGHT", g[g.TWO_DISTANT_LIGHTS = 1] = "TWO_DISTANT_LIGHTS", g))(kG || {}), UG = ((g) => (g[g.SimplePoly = 0] = "SimplePoly", g[g.FitCurvePoly = 1] = "FitCurvePoly", g[g.QuadSplinePoly = 2] = "QuadSplinePoly", g[g.CubicSplinePoly = 3] = "CubicSplinePoly", g))(UG || {}), KG = ((g) => (g[g.Vertex = 0] = "Vertex", g[g.CurveFitVertex = 1] = "CurveFitVertex", g[g.SplineFitVertex = 8] = "SplineFitVertex", g[g.SplineCtlVertex = 9] = "SplineCtlVertex", g))(KG || {}), FG = ((g) => (g[g.SimplePoly = 0] = "SimplePoly", g[g.QuadSplinePoly = 1] = "QuadSplinePoly", g[g.CubicSplinePoly = 2] = "CubicSplinePoly", g))(FG || {}), yG = ((g) => (g[g.SimpleVertex = 0] = "SimpleVertex", g[g.ControlVertex = 1] = "ControlVertex", g[g.FitVertex = 2] = "FitVertex", g))(yG || {}), RG = ((g) => (g[g.LEFT = 0] = "LEFT", g[g.CENTER = 1] = "CENTER", g[g.RIGHT = 2] = "RIGHT", g[g.ALIGNED = 3] = "ALIGNED", g[g.MIDDLE = 4] = "MIDDLE", g[g.FIT = 5] = "FIT", g))(RG || {}), iG = ((g) => (g[g.BASELINE = 0] = "BASELINE", g[g.BOTTOM = 1] = "BOTTOM", g[g.MIDDLE = 2] = "MIDDLE", g[g.TOP = 3] = "TOP", g))(iG || {}), hG = ((g) => (g[g.Invisible = 1] = "Invisible", g[g.Const = 2] = "Const", g[g.Verifiable = 4] = "Verifiable", g[g.Preset = 8] = "Preset", g))(hG || {}), JG = ((g) => (g[g.MultiLine = 2] = "MultiLine", g[g.ConstMultiLine = 4] = "ConstMultiLine", g))(JG || {}), LG = ((g) => (g[g.UserDefined = 0] = "UserDefined", g[g.Predefined = 1] = "Predefined", g[g.Custom = 2] = "Custom", g))(LG || {}), HG = ((g) => (g[g.Normal = 0] = "Normal", g[g.Outer = 1] = "Outer", g[g.Ignore = 2] = "Ignore", g))(HG || {}), sG = ((g) => (g[g.MText = 0] = "MText", g[g.Fcf = 1] = "Fcf", g[g.BlockReference = 2] = "BlockReference", g[g.NoAnnotation = 3] = "NoAnnotation", g))(sG || {}), aG = ((g) => (g[g.EndPoint = 1] = "EndPoint", g[g.MidPoint = 2] = "MidPoint", g[g.Center = 3] = "Center", g[g.Node = 4] = "Node", g[g.Quadrant = 5] = "Quadrant", g[g.Insertion = 7] = "Insertion", g[g.Perpendicular = 8] = "Perpendicular", g[g.Tangent = 9] = "Tangent", g[g.Nearest = 10] = "Nearest", g[g.Centroid = 11] = "Centroid", g))(aG || {});
2254
2254
  new CA();
2255
2255
  new YB();
2256
- var sG = ((g) => (g[g.Invalid = 0] = "Invalid", g[g.Rect = 1] = "Rect", g[g.Poly = 2] = "Poly", g))(sG || {}), cG = ((g) => (g[g.Show = 1] = "Show", g[g.ShowUnAligned = 2] = "ShowUnAligned", g[g.Clip = 4] = "Clip", g[g.Transparent = 8] = "Transparent", g))(cG || {});
2256
+ var SG = ((g) => (g[g.Invalid = 0] = "Invalid", g[g.Rect = 1] = "Rect", g[g.Poly = 2] = "Poly", g))(SG || {}), cG = ((g) => (g[g.Show = 1] = "Show", g[g.ShowUnAligned = 2] = "ShowUnAligned", g[g.Clip = 4] = "Clip", g[g.Transparent = 8] = "Transparent", g))(cG || {});
2257
2257
  new MI();
2258
2258
  new MI();
2259
2259
  var tG = ((g) => (g[g.AtLeast = 1] = "AtLeast", g[g.Exactly = 2] = "Exactly", g))(tG || {}), TG = ((g) => (g[g.kInches = 0] = "kInches", g[g.kMillimeters = 1] = "kMillimeters", g[g.kPixels = 2] = "kPixels", g))(TG || {}), xG = ((g) => (g[g.k0degrees = 0] = "k0degrees", g[g.k90degrees = 1] = "k90degrees", g[g.k180degrees = 2] = "k180degrees", g[g.k270degrees = 3] = "k270degrees", g))(xG || {}), dG = ((g) => (g[g.kDisplay = 0] = "kDisplay", g[g.kExtents = 1] = "kExtents", g[g.kLimits = 2] = "kLimits", g[g.kView = 3] = "kView", g[g.kWindow = 4] = "kWindow", g[g.kLayout = 5] = "kLayout", g))(dG || {}), zG = ((g) => (g[g.kDraft = 0] = "kDraft", g[g.kPreview = 1] = "kPreview", g[g.kNormal = 2] = "kNormal", g[g.kPresentation = 3] = "kPresentation", g[g.kMaximum = 4] = "kMaximum", g[g.kCustom = 5] = "kCustom", g))(zG || {}), VG = ((g) => (g[g.kAsDisplayed = 0] = "kAsDisplayed", g[g.kWireframe = 1] = "kWireframe", g[g.kHidden = 2] = "kHidden", g[g.kRendered = 3] = "kRendered", g[g.kVisualStyle = 4] = "kVisualStyle", g[g.kRenderPreset = 5] = "kRenderPreset", g))(VG || {}), vG = ((g) => (g[g.kScaleToFit = 0] = "kScaleToFit", g[g.k1_128in_1ft = 1] = "k1_128in_1ft", g[g.k1_64in_1ft = 2] = "k1_64in_1ft", g[g.k1_32in_1ft = 3] = "k1_32in_1ft", g[g.k1_16in_1ft = 4] = "k1_16in_1ft", g[g.k3_32in_1ft = 5] = "k3_32in_1ft", g[g.k1_8in_1ft = 6] = "k1_8in_1ft", g[g.k3_16in_1ft = 7] = "k3_16in_1ft", g[g.k1_4in_1ft = 8] = "k1_4in_1ft", g[g.k3_8in_1ft = 9] = "k3_8in_1ft", g[g.k1_2in_1ft = 10] = "k1_2in_1ft", g[g.k3_4in_1ft = 11] = "k3_4in_1ft", g[g.k1in_1ft = 12] = "k1in_1ft", g[g.k3in_1ft = 13] = "k3in_1ft", g[g.k6in_1ft = 14] = "k6in_1ft", g[g.k1ft_1ft = 15] = "k1ft_1ft", g[g.k1_1 = 16] = "k1_1", g[g.k1_2 = 17] = "k1_2", g[g.k1_4 = 18] = "k1_4", g[g.k1_5 = 19] = "k1_5", g[g.k1_8 = 20] = "k1_8", g[g.k1_10 = 21] = "k1_10", g[g.k1_16 = 22] = "k1_16", g[g.k1_20 = 23] = "k1_20", g[g.k1_30 = 24] = "k1_30", g[g.k1_40 = 25] = "k1_40", g[g.k1_50 = 26] = "k1_50", g[g.k1_100 = 27] = "k1_100", g[g.k2_1 = 28] = "k2_1", g[g.k4_1 = 29] = "k4_1", g[g.k8_1 = 30] = "k8_1", g[g.k10_1 = 31] = "k10_1", g[g.k100_1 = 32] = "k100_1", g[g.k1000_1 = 33] = "k1000_1", g[g.k1and1_2in_1ft = 34] = "k1and1_2in_1ft", g))(vG || {}), OG = ((g) => (g[g.Any = 0] = "Any", g[g.Uniform = 1] = "Uniform", g))(OG || {}), lG = ((g) => (g[g.NotApplicable = 0] = "NotApplicable", g[g.Ignore = 1] = "Ignore", g[g.Replace = 2] = "Replace", g[g.XrefMangleName = 3] = "XrefMangleName", g[g.MangleName = 4] = "MangleName", g))(lG || {}), bG = ((g) => (g.ClosedFilled = "", g.Dot = "_DOT", g.DotSmall = "_DOTSMALL", g.DotBlank = "_DOTBLANK", g.Origin = "_ORIGIN", g.Origin2 = "_ORIGIN2", g.Open = "_OPEN", g.Open90 = "_OPEN90", g.Open30 = "_OPEN30", g.Closed = "_CLOSED", g.Small = "_SMALL", g.None = "_NONE", g.Oblique = "_OBLIQUE", g.BoxFilled = "_BOXFILLED", g.Box = "_BOXBLANK", g.ClosedBlank = "_CLOSEDBLANK", g.DatumBlank = "_DATUMBLANK", g.DatumFilled = "_DATUMFILLED", g.Integral = "_INTEGRAL", g.ArchTick = "_ARCHTICK", g))(bG || {}), nG = ((g) => (g[g.Undefined = 0] = "Undefined", g[g.Inches = 1] = "Inches", g[g.Feet = 2] = "Feet", g[g.Miles = 3] = "Miles", g[g.Millimeters = 4] = "Millimeters", g[g.Centimeters = 5] = "Centimeters", g[g.Meters = 6] = "Meters", g[g.Kilometers = 7] = "Kilometers", g[g.Microinches = 8] = "Microinches", g[g.Mils = 9] = "Mils", g[g.Yards = 10] = "Yards", g[g.Angstroms = 11] = "Angstroms", g[g.Nanometers = 12] = "Nanometers", g[g.Microns = 13] = "Microns", g[g.Decimeters = 14] = "Decimeters", g[g.Dekameters = 15] = "Dekameters", g[g.Hectometers = 16] = "Hectometers", g[g.Gigameters = 17] = "Gigameters", g[g.Astronomical = 18] = "Astronomical", g[g.LightYears = 19] = "LightYears", g[g.Parsecs = 20] = "Parsecs", g[g.USSurveyFeet = 21] = "USSurveyFeet", g[g.USSurveyInch = 22] = "USSurveyInch", g[g.USSurveyYard = 23] = "USSurveyYard", g[g.USSurveyMile = 24] = "USSurveyMile", g[g.Max = 24] = "Max", g))(nG || {}), ZG = ((g) => (g[g.Center = 0] = "Center", g[g.Left = 1] = "Left", g[g.Right = 2] = "Right", g[g.OverFirst = 3] = "OverFirst", g[g.OverSecond = 4] = "OverSecond", g))(ZG || {}), fG = ((g) => (g[g.Center = 0] = "Center", g[g.Above = 1] = "Above", g[g.Outside = 2] = "Outside", g[g.JIS = 3] = "JIS", g[g.Below = 4] = "Below", g))(fG || {}), qG = ((g) => (g[g.Feet = 0] = "Feet", g[g.None = 1] = "None", g[g.Inch = 2] = "Inch", g[g.FeetAndInch = 3] = "FeetAndInch", g[g.Leading = 4] = "Leading", g[g.Trailing = 8] = "Trailing", g[g.LeadingAndTrailing = 12] = "LeadingAndTrailing", g))(qG || {}), pG = ((g) => (g[g.None = 0] = "None", g[g.Leading = 1] = "Leading", g[g.Trailing = 2] = "Trailing", g[g.LeadingAndTrailing = 3] = "LeadingAndTrailing", g))(pG || {}), eG = ((g) => (g[g.Bottom = 0] = "Bottom", g[g.Middle = 1] = "Middle", g[g.Top = 2] = "Top", g))(eG || {});
@@ -2279,22 +2279,23 @@ const mG = {
2279
2279
  PDMODE: "PDMODE",
2280
2280
  PDSIZE: "PDSIZE",
2281
2281
  PICKBOX: "PICKBOX",
2282
+ SHORTCUTMENU: "SHORTCUTMENU",
2282
2283
  TEXTSTYLE: "TEXTSTYLE",
2283
2284
  WHITEBKCOLOR: "WHITEBKCOLOR"
2284
2285
  };
2285
2286
  Object.freeze(
2286
2287
  Object.values(mG)
2287
2288
  );
2288
- var aA, pQ, YA, FA, eQ, $A, mg, Rg, sA, Gg, Ag, lg, ug, Wg, qA, hg, FQ, mQ, rg, Pg, uQ, WQ, rQ, lA, wg, oA, jg, PQ, r, xA, jQ, dA, XQ, Jg, QA, _Q, Lg, Xg, $C, AB, Qg, $Q, _g, bA, Mg, Hg, ag, AC, gC, Sg, $g, AQ, gB, QC, gQ, sg, QQ, SA, Ng, pA, QB, yA, CB, cg, eA, CQ, CC, BQ, mA, tg, uA, Tg, eB, IQ, WA;
2289
- (aA = {})[aA.None = 0] = "None", aA[aA.Anonymous = 1] = "Anonymous", aA[aA.NonConstant = 2] = "NonConstant", aA[aA.Xref = 4] = "Xref", aA[aA.XrefOverlay = 8] = "XrefOverlay", aA[aA.ExternallyDependent = 16] = "ExternallyDependent", aA[aA.ResolvedOrDependent = 32] = "ResolvedOrDependent", aA[aA.ReferencedXref = 64] = "ReferencedXref";
2289
+ var sA, pQ, YA, FA, eQ, $A, mg, ig, SA, Gg, Ag, lg, ug, Wg, qA, hg, FQ, mQ, rg, Pg, uQ, WQ, rQ, lA, wg, oA, jg, PQ, r, xA, jQ, dA, XQ, Jg, QA, _Q, Lg, Xg, $C, AB, Qg, $Q, _g, bA, Mg, Hg, sg, AC, gC, ag, $g, AQ, gB, QC, gQ, Sg, QQ, aA, Ng, pA, QB, RA, CB, cg, eA, CQ, CC, BQ, mA, tg, uA, Tg, eB, IQ, WA;
2290
+ (sA = {})[sA.None = 0] = "None", sA[sA.Anonymous = 1] = "Anonymous", sA[sA.NonConstant = 2] = "NonConstant", sA[sA.Xref = 4] = "Xref", sA[sA.XrefOverlay = 8] = "XrefOverlay", sA[sA.ExternallyDependent = 16] = "ExternallyDependent", sA[sA.ResolvedOrDependent = 32] = "ResolvedOrDependent", sA[sA.ReferencedXref = 64] = "ReferencedXref";
2290
2291
  (pQ = {})[pQ.BYBLOCK = 0] = "BYBLOCK", pQ[pQ.BYLAYER = 256] = "BYLAYER";
2291
2292
  (YA = {})[YA.Rotated = 0] = "Rotated", YA[YA.Aligned = 1] = "Aligned", YA[YA.Angular = 2] = "Angular", YA[YA.Diameter = 3] = "Diameter", YA[YA.Radius = 4] = "Radius", YA[YA.Angular3Point = 5] = "Angular3Point", YA[YA.Ordinate = 6] = "Ordinate", YA[YA.ReferenceIsExclusive = 32] = "ReferenceIsExclusive", YA[YA.IsOrdinateXTypeFlag = 64] = "IsOrdinateXTypeFlag", YA[YA.IsCustomTextPositionFlag = 128] = "IsCustomTextPositionFlag";
2292
2293
  (FA = {})[FA.TopLeft = 1] = "TopLeft", FA[FA.TopCenter = 2] = "TopCenter", FA[FA.TopRight = 3] = "TopRight", FA[FA.MiddleLeft = 4] = "MiddleLeft", FA[FA.MiddleCenter = 5] = "MiddleCenter", FA[FA.MiddleRight = 6] = "MiddleRight", FA[FA.BottomLeft = 7] = "BottomLeft", FA[FA.BottomCenter = 8] = "BottomCenter", FA[FA.BottomRight = 9] = "BottomRight";
2293
2294
  (eQ = {})[eQ.AtLeast = 1] = "AtLeast", eQ[eQ.Exact = 2] = "Exact";
2294
2295
  var mB = (($A = {})[$A.Center = 0] = "Center", $A[$A.Above = 1] = "Above", $A[$A.Outside = 2] = "Outside", $A[$A.JIS = 3] = "JIS", $A[$A.Below = 4] = "Below", $A);
2295
2296
  (mg = {})[mg.WithDimension = 0] = "WithDimension", mg[mg.AddLeader = 1] = "AddLeader", mg[mg.Independent = 2] = "Independent";
2296
- (Rg = {})[Rg.BothOutside = 0] = "BothOutside", Rg[Rg.ArrowFirst = 1] = "ArrowFirst", Rg[Rg.TextFirst = 2] = "TextFirst", Rg[Rg.Auto = 3] = "Auto";
2297
- var EQ = ((sA = {})[sA.Feet = 0] = "Feet", sA[sA.None = 1] = "None", sA[sA.Inch = 2] = "Inch", sA[sA.FeetAndInch = 3] = "FeetAndInch", sA[sA.Leading = 4] = "Leading", sA[sA.Trailing = 8] = "Trailing", sA[sA.LeadingAndTrailing = 12] = "LeadingAndTrailing", sA), uG = ((Gg = {})[Gg.None = 0] = "None", Gg[Gg.Leading = 1] = "Leading", Gg[Gg.Trailing = 2] = "Trailing", Gg[Gg.LeadingAndTrailing = 3] = "LeadingAndTrailing", Gg), WG = ((Ag = {})[Ag.Center = 0] = "Center", Ag[Ag.First = 1] = "First", Ag[Ag.Second = 2] = "Second", Ag[Ag.OverFirst = 3] = "OverFirst", Ag[Ag.OverSecond = 4] = "OverSecond", Ag), rG = ((lg = {})[lg.Bottom = 0] = "Bottom", lg[lg.Center = 1] = "Center", lg[lg.Top = 2] = "Top", lg);
2297
+ (ig = {})[ig.BothOutside = 0] = "BothOutside", ig[ig.ArrowFirst = 1] = "ArrowFirst", ig[ig.TextFirst = 2] = "TextFirst", ig[ig.Auto = 3] = "Auto";
2298
+ var EQ = ((SA = {})[SA.Feet = 0] = "Feet", SA[SA.None = 1] = "None", SA[SA.Inch = 2] = "Inch", SA[SA.FeetAndInch = 3] = "FeetAndInch", SA[SA.Leading = 4] = "Leading", SA[SA.Trailing = 8] = "Trailing", SA[SA.LeadingAndTrailing = 12] = "LeadingAndTrailing", SA), uG = ((Gg = {})[Gg.None = 0] = "None", Gg[Gg.Leading = 1] = "Leading", Gg[Gg.Trailing = 2] = "Trailing", Gg[Gg.LeadingAndTrailing = 3] = "LeadingAndTrailing", Gg), WG = ((Ag = {})[Ag.Center = 0] = "Center", Ag[Ag.First = 1] = "First", Ag[Ag.Second = 2] = "Second", Ag[Ag.OverFirst = 3] = "OverFirst", Ag[Ag.OverSecond = 4] = "OverSecond", Ag), rG = ((lg = {})[lg.Bottom = 0] = "Bottom", lg[lg.Center = 1] = "Center", lg[lg.Top = 2] = "Top", lg);
2298
2299
  (ug = {})[ug.None = 0] = "None", ug[ug.UseDrawingBackground = 1] = "UseDrawingBackground", ug[ug.Custom = 2] = "Custom";
2299
2300
  (Wg = {})[Wg.Horizontal = 0] = "Horizontal", Wg[Wg.Diagonal = 1] = "Diagonal", Wg[Wg.NotStacked = 2] = "NotStacked";
2300
2301
  (qA = {})[qA.Scientific = 1] = "Scientific", qA[qA.Decimal = 2] = "Decimal", qA[qA.Engineering = 3] = "Engineering", qA[qA.Architectural = 4] = "Architectural", qA[qA.Fractional = 5] = "Fractional", qA[qA.WindowDesktop = 6] = "WindowDesktop";
@@ -2330,37 +2331,37 @@ function DQ(g) {
2330
2331
  let KC = Symbol();
2331
2332
  function u(g, A) {
2332
2333
  return (C, Q, D) => {
2333
- let o = function(U, i = !1) {
2334
+ let o = function(U, y = !1) {
2334
2335
  return U.reduce((F, h) => {
2335
2336
  h.pushContext && F.push({});
2336
2337
  let L = F[F.length - 1];
2337
- for (let R of typeof h.code == "number" ? [h.code] : h.code) {
2338
- let c = L[R] ?? (L[R] = []);
2338
+ for (let i of typeof h.code == "number" ? [h.code] : h.code) {
2339
+ let c = L[i] ?? (L[i] = []);
2339
2340
  h.isMultiple && c.length, c.push(h);
2340
2341
  }
2341
2342
  return F;
2342
2343
  }, [{}]);
2343
2344
  }(g, Q.debug), w = !1, k = o.length - 1;
2344
2345
  for (; !tA(C, 0, "EOF"); ) {
2345
- let U = function(s, a, v) {
2346
- return s.find((V, O) => {
2346
+ let U = function(S, s, v) {
2347
+ return S.find((V, O) => {
2347
2348
  var z;
2348
- return O >= v && ((z = V[a]) == null ? void 0 : z.length);
2349
+ return O >= v && ((z = V[s]) == null ? void 0 : z.length);
2349
2350
  });
2350
- }(o, C.code, k), i = U == null ? void 0 : U[C.code], F = i == null ? void 0 : i[i.length - 1];
2351
+ }(o, C.code, k), y = U == null ? void 0 : U[C.code], F = y == null ? void 0 : y[y.length - 1];
2351
2352
  if (!U || !F) {
2352
2353
  Q.rewind();
2353
2354
  break;
2354
2355
  }
2355
2356
  F.isMultiple || U[C.code].pop();
2356
- let { name: h, parser: L, isMultiple: R, isReducible: c } = F, H = L == null ? void 0 : L(C, Q, D);
2357
+ let { name: h, parser: L, isMultiple: i, isReducible: c } = F, H = L == null ? void 0 : L(C, Q, D);
2357
2358
  if (H === KC) {
2358
2359
  Q.rewind();
2359
2360
  break;
2360
2361
  }
2361
2362
  if (h) {
2362
- let [s, a] = XG(D, h);
2363
- R && !c ? (Object.prototype.hasOwnProperty.call(s, a) || (s[a] = []), s[a].push(H)) : s[a] = H;
2363
+ let [S, s] = XG(D, h);
2364
+ i && !c ? (Object.prototype.hasOwnProperty.call(S, s) || (S[s] = []), S[s].push(H)) : S[s] = H;
2364
2365
  }
2365
2366
  F.pushContext && (k -= 1), w = !0, C = Q.next();
2366
2367
  }
@@ -2489,28 +2490,28 @@ var Gw = ((bA = {})[bA.LEFT = 0] = "LEFT", bA[bA.CENTER = 1] = "CENTER", bA[bA.R
2489
2490
  function KI(g, A, C) {
2490
2491
  return A in g ? Object.defineProperty(g, A, { value: C, enumerable: !0, configurable: !0, writable: !0 }) : g[A] = C, g;
2491
2492
  }
2492
- let FI = { thickness: 0, rotation: 0, xScale: 1, obliqueAngle: 0, styleName: "STANDARD", generationFlag: 0, halign: Gw.LEFT, valign: ww.BASELINE, extrusionDirection: { x: 0, y: 0, z: 1 } }, iI = [{ code: 73, name: "valign", parser: Y }, { code: 100 }, { code: 210, name: "extrusionDirection", parser: t }, { code: 11, name: "endPoint", parser: t }, { code: 72, name: "valign", parser: Y }, { code: 72, name: "halign", parser: Y }, { code: 71, name: "generationFlag", parser: Y }, { code: 7, name: "styleName", parser: Y }, { code: 51, name: "obliqueAngle", parser: Y }, { code: 41, name: "xScale", parser: Y }, { code: 50, name: "rotation", parser: Y }, { code: 1, name: "text", parser: Y }, { code: 40, name: "textHeight", parser: Y }, { code: 10, name: "startPoint", parser: t }, { code: 39, name: "thickness", parser: Y }, { code: 100, name: "subclassMarker", parser: Y }, ...$];
2493
- class yI {
2493
+ let FI = { thickness: 0, rotation: 0, xScale: 1, obliqueAngle: 0, styleName: "STANDARD", generationFlag: 0, halign: Gw.LEFT, valign: ww.BASELINE, extrusionDirection: { x: 0, y: 0, z: 1 } }, yI = [{ code: 73, name: "valign", parser: Y }, { code: 100 }, { code: 210, name: "extrusionDirection", parser: t }, { code: 11, name: "endPoint", parser: t }, { code: 72, name: "valign", parser: Y }, { code: 72, name: "halign", parser: Y }, { code: 71, name: "generationFlag", parser: Y }, { code: 7, name: "styleName", parser: Y }, { code: 51, name: "obliqueAngle", parser: Y }, { code: 41, name: "xScale", parser: Y }, { code: 50, name: "rotation", parser: Y }, { code: 1, name: "text", parser: Y }, { code: 40, name: "textHeight", parser: Y }, { code: 10, name: "startPoint", parser: t }, { code: 39, name: "thickness", parser: Y }, { code: 100, name: "subclassMarker", parser: Y }, ...$];
2494
+ class RI {
2494
2495
  parseEntity(A, C) {
2495
2496
  let Q = {};
2496
2497
  return this.parser(C, A, Q), Q;
2497
2498
  }
2498
2499
  constructor() {
2499
- KI(this, "parser", u(iI, FI));
2500
+ KI(this, "parser", u(yI, FI));
2500
2501
  }
2501
2502
  }
2502
- function RI(g, A, C) {
2503
+ function iI(g, A, C) {
2503
2504
  return A in g ? Object.defineProperty(g, A, { value: C, enumerable: !0, configurable: !0, writable: !0 }) : g[A] = C, g;
2504
2505
  }
2505
- KI(yI, "ForEntityName", "TEXT");
2506
- let Mw = { ...FI }, Nw = [{ code: 2 }, { code: 40, name: "annotationScale", parser: Y }, { code: 10, name: "alignmentPoint", parser: t }, { code: 340, name: "secondaryAttributesHardIds", isMultiple: !0, parser: Y }, { code: 70, name: "numberOfSecondaryAttributes", parser: Y }, { code: 70, name: "isReallyLocked", parser: _ }, { code: 70, name: "mtextFlag", parser: Y }, { code: 280, name: "isDuplicatedRecord", parser: _ }, { code: 100 }, { code: 280, name: "isLocked", parser: _ }, { code: 74, name: "valign", parser: Y }, { code: 73 }, { code: 70, name: "attributeFlag", parser: Y }, { code: 2, name: "tag", parser: Y }, { code: 3, name: "prompt", parser: Y }, { code: 280 }, { code: 100, name: "subclassMarker", parser: Y }, ...iI.slice(2)];
2506
+ KI(RI, "ForEntityName", "TEXT");
2507
+ let Mw = { ...FI }, Nw = [{ code: 2 }, { code: 40, name: "annotationScale", parser: Y }, { code: 10, name: "alignmentPoint", parser: t }, { code: 340, name: "secondaryAttributesHardIds", isMultiple: !0, parser: Y }, { code: 70, name: "numberOfSecondaryAttributes", parser: Y }, { code: 70, name: "isReallyLocked", parser: _ }, { code: 70, name: "mtextFlag", parser: Y }, { code: 280, name: "isDuplicatedRecord", parser: _ }, { code: 100 }, { code: 280, name: "isLocked", parser: _ }, { code: 74, name: "valign", parser: Y }, { code: 73 }, { code: 70, name: "attributeFlag", parser: Y }, { code: 2, name: "tag", parser: Y }, { code: 3, name: "prompt", parser: Y }, { code: 280 }, { code: 100, name: "subclassMarker", parser: Y }, ...yI.slice(2)];
2507
2508
  class hI {
2508
2509
  parseEntity(A, C) {
2509
2510
  let Q = {};
2510
2511
  return this.parser(C, A, Q), Q;
2511
2512
  }
2512
2513
  constructor() {
2513
- RI(this, "parser", u(Nw, Mw));
2514
+ iI(this, "parser", u(Nw, Mw));
2514
2515
  }
2515
2516
  }
2516
2517
  function* kC(g, A = 1 / 0, C = 1) {
@@ -2519,7 +2520,7 @@ function* kC(g, A = 1 / 0, C = 1) {
2519
2520
  function uB(g) {
2520
2521
  return { x: g.x ?? 0, y: g.y ?? 0, z: g.z ?? 0 };
2521
2522
  }
2522
- RI(hI, "ForEntityName", "ATTDEF");
2523
+ iI(hI, "ForEntityName", "ATTDEF");
2523
2524
  var Yw = [0, 16711680, 16776960, 65280, 65535, 255, 16711935, 16777215, 8421504, 12632256, 16711680, 16744319, 13369344, 13395558, 10027008, 10046540, 8323072, 8339263, 4980736, 4990502, 16727808, 16752511, 13382400, 13401958, 10036736, 10051404, 8331008, 8343359, 4985600, 4992806, 16744192, 16760703, 13395456, 13408614, 10046464, 10056268, 8339200, 8347455, 4990464, 4995366, 16760576, 16768895, 13408512, 13415014, 10056192, 10061132, 8347392, 8351551, 4995328, 4997670, 16776960, 16777087, 13421568, 13421670, 10000384, 10000460, 8355584, 8355647, 5000192, 5000230, 12582656, 14679935, 10079232, 11717734, 7510016, 8755276, 6258432, 7307071, 3755008, 4344870, 8388352, 12582783, 6736896, 10079334, 5019648, 7510092, 4161280, 6258495, 2509824, 3755046, 4194048, 10485631, 3394560, 8375398, 2529280, 6264908, 2064128, 5209919, 1264640, 3099686, 65280, 8388479, 52224, 6736998, 38912, 5019724, 32512, 4161343, 19456, 2509862, 65343, 8388511, 52275, 6737023, 38950, 5019743, 32543, 4161359, 19475, 2509871, 65407, 8388543, 52326, 6737049, 38988, 5019762, 32575, 4161375, 19494, 2509881, 65471, 8388575, 52377, 6737074, 39026, 5019781, 32607, 4161391, 19513, 2509890, 65535, 8388607, 52428, 6737100, 39064, 5019800, 32639, 4161407, 19532, 2509900, 49151, 8380415, 39372, 6730444, 29336, 5014936, 24447, 4157311, 14668, 2507340, 32767, 8372223, 26316, 6724044, 19608, 5010072, 16255, 4153215, 9804, 2505036, 16383, 8364031, 13260, 6717388, 9880, 5005208, 8063, 4149119, 4940, 2502476, 255, 8355839, 204, 6710988, 152, 5000344, 127, 4145023, 76, 2500172, 4129023, 10452991, 3342540, 8349388, 2490520, 6245528, 2031743, 5193599, 1245260, 3089996, 8323327, 12550143, 6684876, 10053324, 4980888, 7490712, 4128895, 6242175, 2490444, 3745356, 12517631, 14647295, 10027212, 11691724, 7471256, 8735896, 6226047, 7290751, 3735628, 4335180, 16711935, 16744447, 13369548, 13395660, 9961624, 9981080, 8323199, 8339327, 4980812, 4990540, 16711871, 16744415, 13369497, 13395634, 9961586, 9981061, 8323167, 8339311, 4980793, 4990530, 16711807, 16744383, 13369446, 13395609, 9961548, 9981042, 8323135, 8339295, 4980774, 4990521, 16711743, 16744351, 13369395, 13395583, 9961510, 9981023, 8323103, 8339279, 4980755, 4990511, 3355443, 5987163, 8684676, 11382189, 14079702, 16777215];
2524
2525
  function kw(g) {
2525
2526
  return Yw[g];
@@ -2616,36 +2617,36 @@ function HI(g, A, C) {
2616
2617
  return A in g ? Object.defineProperty(g, A, { value: C, enumerable: !0, configurable: !0, writable: !0 }) : g[A] = C, g;
2617
2618
  }
2618
2619
  JI(LI, "ForEntityName", "MTEXT");
2619
- let iw = { thickness: 0, rotation: 0, scale: 1, obliqueAngle: 0, textStyle: "STANDARD", textGenerationFlag: 0, horizontalJustification: 0, verticalJustification: 0, extrusionDirection: { x: 0, y: 0, z: 1 } }, yw = [...GC.slice(GC.findIndex(({ name: g }) => g === "columnType"), GC.findIndex(({ name: g }) => g === "subclassMarker") + 1), { code: 100 }, { code: 0, parser(g) {
2620
+ let yw = { thickness: 0, rotation: 0, scale: 1, obliqueAngle: 0, textStyle: "STANDARD", textGenerationFlag: 0, horizontalJustification: 0, verticalJustification: 0, extrusionDirection: { x: 0, y: 0, z: 1 } }, Rw = [...GC.slice(GC.findIndex(({ name: g }) => g === "columnType"), GC.findIndex(({ name: g }) => g === "subclassMarker") + 1), { code: 100 }, { code: 0, parser(g) {
2620
2621
  if (!tA(g, 0, "MTEXT")) return KC;
2621
2622
  } }, { code: 2, name: "definitionTag", parser: Y }, { code: 40, name: "annotationScale", parser: Y }, { code: 10, name: "alignmentPoint", parser: t }, { code: 340, name: "secondaryAttributesHardId", parser: Y }, { code: 70, name: "numberOfSecondaryAttributes", parser: Y }, { code: 70, name: "isReallyLocked", parser: _ }, { code: 70, name: "mtextFlag", parser: Y }, { code: 280, name: "isDuplicatedEntriesKeep", parser: _ }, { code: 100 }, { code: 280, name: "lockPositionFlag", parser: _ }, { code: 210, name: "extrusionDirection", parser: t }, { code: 11, name: "alignmentPoint", parser: t }, { code: 74, name: "verticalJustification", parser: Y }, { code: 72, name: "horizontalJustification", parser: Y }, { code: 71, name: "textGenerationFlag", parser: Y }, { code: 7, name: "textStyle", parser: Y }, { code: 51, name: "obliqueAngle", parser: Y }, { code: 41, name: "scale", parser: Y }, { code: 50, name: "rotation", parser: Y }, { code: 73 }, { code: 70, name: "attributeFlag", parser: Y }, { code: 2, name: "tag", parser: Y }, { code: 280 }, { code: 100, name: "subclassMarker", parser: Y }, { code: 1, name: "text", parser: Y }, { code: 40, name: "textHeight", parser: Y }, { code: 10, name: "startPoint", parser: t }, { code: 39, name: "thickness", parser: Y }, { code: 100 }, ...$];
2622
- class aI {
2623
+ class sI {
2623
2624
  parseEntity(A, C) {
2624
2625
  let Q = {};
2625
2626
  return this.parser(C, A, Q), Q;
2626
2627
  }
2627
2628
  constructor() {
2628
- HI(this, "parser", u(yw, iw));
2629
+ HI(this, "parser", u(Rw, yw));
2629
2630
  }
2630
2631
  }
2631
- function SI(g, A, C) {
2632
+ function aI(g, A, C) {
2632
2633
  return A in g ? Object.defineProperty(g, A, { value: C, enumerable: !0, configurable: !0, writable: !0 }) : g[A] = C, g;
2633
2634
  }
2634
- HI(aI, "ForEntityName", "ATTRIB");
2635
- let Rw = [...FC("data"), { code: 70, name: "version", parser: Y }, { code: 100, name: "subclassMarker", parser: Y }, ...$];
2636
- class sI {
2635
+ HI(sI, "ForEntityName", "ATTRIB");
2636
+ let iw = [...FC("data"), { code: 70, name: "version", parser: Y }, { code: 100, name: "subclassMarker", parser: Y }, ...$];
2637
+ class SI {
2637
2638
  parseEntity(A, C) {
2638
2639
  let Q = {};
2639
2640
  return this.parser(C, A, Q), Q;
2640
2641
  }
2641
2642
  constructor() {
2642
- SI(this, "parser", u(Rw));
2643
+ aI(this, "parser", u(iw));
2643
2644
  }
2644
2645
  }
2645
2646
  function cI(g, A, C) {
2646
2647
  return A in g ? Object.defineProperty(g, A, { value: C, enumerable: !0, configurable: !0, writable: !0 }) : g[A] = C, g;
2647
2648
  }
2648
- SI(sI, "ForEntityName", "BODY");
2649
+ aI(SI, "ForEntityName", "BODY");
2649
2650
  let hw = { thickness: 0, extrusionDirection: { x: 0, y: 0, z: 1 } }, Jw = [{ code: 210, name: "extrusionDirection", parser: t }, { code: 40, name: "radius", parser: Y }, { code: 10, name: "center", parser: t }, { code: 39, name: "thickness", parser: Y }, { code: 100, name: "subclassMarker", parser: Y }, ...$];
2650
2651
  class tI {
2651
2652
  parseEntity(A, C) {
@@ -2674,22 +2675,22 @@ function dI(g, A, C) {
2674
2675
  return A in g ? Object.defineProperty(g, A, { value: C, enumerable: !0, configurable: !0, writable: !0 }) : g[A] = C, g;
2675
2676
  }
2676
2677
  TI(xI, "ForEntityName", "ELLIPSE");
2677
- let aw = [{ code: 13, name: "vertices.3", parser: t }, { code: 12, name: "vertices.2", parser: t }, { code: 11, name: "vertices.1", parser: t }, { code: 10, name: "vertices.0", parser: t }, { code: 100, name: "subclassMarker", parser: Y }, ...$];
2678
+ let sw = [{ code: 13, name: "vertices.3", parser: t }, { code: 12, name: "vertices.2", parser: t }, { code: 11, name: "vertices.1", parser: t }, { code: 10, name: "vertices.0", parser: t }, { code: 100, name: "subclassMarker", parser: Y }, ...$];
2678
2679
  class zI {
2679
2680
  parseEntity(A, C) {
2680
2681
  let Q = {};
2681
2682
  return this.parser(C, A, Q), Q;
2682
2683
  }
2683
2684
  constructor() {
2684
- dI(this, "parser", u(aw));
2685
+ dI(this, "parser", u(sw));
2685
2686
  }
2686
2687
  }
2687
2688
  dI(zI, "ForEntityName", "3DFACE");
2688
2689
  (Hg = {})[Hg.First = 1] = "First", Hg[Hg.Second = 2] = "Second", Hg[Hg.Third = 4] = "Third", Hg[Hg.Fourth = 8] = "Fourth";
2689
- let VI = [{ code: 330, name: "sourceBoundaryObjects", parser: Y, isMultiple: !0 }, { code: 97, name: "numberOfSourceBoundaryObjects", parser: Y }], Sw = [{ code: 11, name: "end", parser: t }, { code: 10, name: "start", parser: t }], sw = [{ code: 73, name: "isCCW", parser: _ }, { code: 51, name: "endAngle", parser: Y }, { code: 50, name: "startAngle", parser: Y }, { code: 40, name: "radius", parser: Y }, { code: 10, name: "center", parser: t }], cw = [{ code: 73, name: "isCCW", parser: _ }, { code: 51, name: "endAngle", parser: Y }, { code: 50, name: "startAngle", parser: Y }, { code: 40, name: "lengthOfMinorAxis", parser: Y }, { code: 11, name: "end", parser: t }, { code: 10, name: "center", parser: t }], tw = [{ code: 13, name: "endTangent", parser: t }, { code: 12, name: "startTangent", parser: t }, { code: 11, name: "fitDatum", isMultiple: !0, parser: t }, { code: 97, name: "numberOfFitData", parser: Y }, { code: 10, name: "controlPoints", isMultiple: !0, parser(g, A) {
2690
+ let VI = [{ code: 330, name: "sourceBoundaryObjects", parser: Y, isMultiple: !0 }, { code: 97, name: "numberOfSourceBoundaryObjects", parser: Y }], aw = [{ code: 11, name: "end", parser: t }, { code: 10, name: "start", parser: t }], Sw = [{ code: 73, name: "isCCW", parser: _ }, { code: 51, name: "endAngle", parser: Y }, { code: 50, name: "startAngle", parser: Y }, { code: 40, name: "radius", parser: Y }, { code: 10, name: "center", parser: t }], cw = [{ code: 73, name: "isCCW", parser: _ }, { code: 51, name: "endAngle", parser: Y }, { code: 50, name: "startAngle", parser: Y }, { code: 40, name: "lengthOfMinorAxis", parser: Y }, { code: 11, name: "end", parser: t }, { code: 10, name: "center", parser: t }], tw = [{ code: 13, name: "endTangent", parser: t }, { code: 12, name: "startTangent", parser: t }, { code: 11, name: "fitDatum", isMultiple: !0, parser: t }, { code: 97, name: "numberOfFitData", parser: Y }, { code: 10, name: "controlPoints", isMultiple: !0, parser(g, A) {
2690
2691
  let C = { ...DQ(A), weight: 1 };
2691
2692
  return (g = A.next()).code === 42 ? C.weight = g.value : A.rewind(), C;
2692
- } }, { 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: _ }, { code: 73, name: "splineFlag", parser: Y }, { code: 94, name: "degree", parser: Y }], Tw = { [BC.Line]: Sw, [BC.Circular]: sw, [BC.Elliptic]: cw, [BC.Spline]: tw }, xw = [...VI, { code: 72, name: "edges", parser(g, A) {
2693
+ } }, { 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: _ }, { code: 73, name: "splineFlag", parser: Y }, { code: 94, name: "degree", parser: Y }], Tw = { [BC.Line]: aw, [BC.Circular]: Sw, [BC.Elliptic]: cw, [BC.Spline]: tw }, xw = [...VI, { code: 72, name: "edges", parser(g, A) {
2693
2694
  let C = { type: g.value }, Q = u(Tw[C.type]);
2694
2695
  if (!Q) throw Error(`Invalid edge type ${C.type}`);
2695
2696
  return Q(g = A.next(), A, C), C;
@@ -2738,7 +2739,7 @@ class bI {
2738
2739
  }
2739
2740
  }
2740
2741
  lI(bI, "ForEntityName", "IMAGE");
2741
- (ag = {})[ag.ShowImage = 1] = "ShowImage", ag[ag.ShowImageWhenNotAlignedWithScreen = 2] = "ShowImageWhenNotAlignedWithScreen", ag[ag.UseClippingBoundary = 4] = "UseClippingBoundary", ag[ag.TransparencyIsOn = 8] = "TransparencyIsOn";
2742
+ (sg = {})[sg.ShowImage = 1] = "ShowImage", sg[sg.ShowImageWhenNotAlignedWithScreen = 2] = "ShowImageWhenNotAlignedWithScreen", sg[sg.UseClippingBoundary = 4] = "UseClippingBoundary", sg[sg.TransparencyIsOn = 8] = "TransparencyIsOn";
2742
2743
  (AC = {})[AC.Rectangular = 1] = "Rectangular", AC[AC.Polygonal = 2] = "Polygonal";
2743
2744
  (gC = {})[gC.Outside = 0] = "Outside", gC[gC.Inside = 1] = "Inside";
2744
2745
  function nI(g, A, C) {
@@ -2769,7 +2770,7 @@ class qI {
2769
2770
  }
2770
2771
  }
2771
2772
  fI(qI, "ForEntityName", "LEADER");
2772
- (Sg = {})[Sg.TextAnnotation = 0] = "TextAnnotation", Sg[Sg.ToleranceAnnotation = 1] = "ToleranceAnnotation", Sg[Sg.BlockReferenceAnnotation = 2] = "BlockReferenceAnnotation", Sg[Sg.NoAnnotation = 3] = "NoAnnotation";
2773
+ (ag = {})[ag.TextAnnotation = 0] = "TextAnnotation", ag[ag.ToleranceAnnotation = 1] = "ToleranceAnnotation", ag[ag.BlockReferenceAnnotation = 2] = "BlockReferenceAnnotation", ag[ag.NoAnnotation = 3] = "NoAnnotation";
2773
2774
  function pI(g, A, C) {
2774
2775
  return A in g ? Object.defineProperty(g, A, { value: C, enumerable: !0, configurable: !0, writable: !0 }) : g[A] = C, g;
2775
2776
  }
@@ -2863,7 +2864,7 @@ class jI {
2863
2864
  }
2864
2865
  PI(jI, "ForEntityName", "MLINE");
2865
2866
  (gQ = {})[gQ.Top = 0] = "Top", gQ[gQ.Zero = 1] = "Zero", gQ[gQ.Bottom = 2] = "Bottom";
2866
- (sg = {})[sg.HasVertex = 1] = "HasVertex", sg[sg.Closed = 2] = "Closed", sg[sg.SuppressStartCaps = 4] = "SuppressStartCaps", sg[sg.SuppressEndCaps = 8] = "SuppressEndCaps";
2867
+ (Sg = {})[Sg.HasVertex = 1] = "HasVertex", Sg[Sg.Closed = 2] = "Closed", Sg[Sg.SuppressStartCaps = 4] = "SuppressStartCaps", Sg[Sg.SuppressEndCaps = 8] = "SuppressEndCaps";
2867
2868
  (QQ = {})[QQ.LEFT_TO_RIGHT = 1] = "LEFT_TO_RIGHT", QQ[QQ.TOP_TO_BOTTOM = 3] = "TOP_TO_BOTTOM", QQ[QQ.BY_STYLE = 5] = "BY_STYLE";
2868
2869
  function XI(g, A, C) {
2869
2870
  return A in g ? Object.defineProperty(g, A, { value: C, enumerable: !0, configurable: !0, writable: !0 }) : g[A] = C, g;
@@ -2941,7 +2942,7 @@ class CE {
2941
2942
  }
2942
2943
  }
2943
2944
  QE(CE, "ForEntityName", "POLYLINE");
2944
- (SA = {})[SA.CLOSED_POLYLINE = 1] = "CLOSED_POLYLINE", SA[SA.CURVE_FIT = 2] = "CURVE_FIT", SA[SA.SPLINE_FIT = 4] = "SPLINE_FIT", SA[SA.POLYLINE_3D = 8] = "POLYLINE_3D", SA[SA.POLYGON_3D = 16] = "POLYGON_3D", SA[SA.CLOSED_POLYGON = 32] = "CLOSED_POLYGON", SA[SA.POLYFACE = 64] = "POLYFACE", SA[SA.CONTINUOUS = 128] = "CONTINUOUS";
2945
+ (aA = {})[aA.CLOSED_POLYLINE = 1] = "CLOSED_POLYLINE", aA[aA.CURVE_FIT = 2] = "CURVE_FIT", aA[aA.SPLINE_FIT = 4] = "SPLINE_FIT", aA[aA.POLYLINE_3D = 8] = "POLYLINE_3D", aA[aA.POLYGON_3D = 16] = "POLYGON_3D", aA[aA.CLOSED_POLYGON = 32] = "CLOSED_POLYGON", aA[aA.POLYFACE = 64] = "POLYFACE", aA[aA.CONTINUOUS = 128] = "CONTINUOUS";
2945
2946
  (Ng = {})[Ng.NONE = 0] = "NONE", Ng[Ng.QUADRATIC = 5] = "QUADRATIC", Ng[Ng.CUBIC = 6] = "CUBIC", Ng[Ng.BEZIER = 8] = "BEZIER";
2946
2947
  function BE(g, A, C) {
2947
2948
  return A in g ? Object.defineProperty(g, A, { value: C, enumerable: !0, configurable: !0, writable: !0 }) : g[A] = C, g;
@@ -3031,14 +3032,14 @@ kE(UE, "ForEntityName", "SPLINE");
3031
3032
  function KE(g, A, C) {
3032
3033
  return A in g ? Object.defineProperty(g, A, { value: C, enumerable: !0, configurable: !0, writable: !0 }) : g[A] = C, g;
3033
3034
  }
3034
- let iM = [{ code: 280, name: "shadowMapSoftness", parser: Y }, { code: 71, name: "shadowMapSize", parser: Y }, { code: 70, name: "shadowType", parser: Y }, { code: 292, name: "isSummerTime", parser: _ }, { code: 92, name: "time", parser: Y }, { code: 91, name: "julianDay", parser: Y }, { code: 291, name: "hasShadow", parser: _ }, { code: 40, name: "intensity", parser: Y }, { code: 421, name: "lightColorInstance", parser: Y }, { code: 63, name: "lightColorIndex", parser: Y }, { code: 290, name: "isOn", parser: _ }, { code: 90, name: "version", parser: Y }, { code: 100, name: "subclassMarker", parser: Y, pushContext: !0 }, ...$.filter((g) => g.code !== 100)];
3035
+ let yM = [{ code: 280, name: "shadowMapSoftness", parser: Y }, { code: 71, name: "shadowMapSize", parser: Y }, { code: 70, name: "shadowType", parser: Y }, { code: 292, name: "isSummerTime", parser: _ }, { code: 92, name: "time", parser: Y }, { code: 91, name: "julianDay", parser: Y }, { code: 291, name: "hasShadow", parser: _ }, { code: 40, name: "intensity", parser: Y }, { code: 421, name: "lightColorInstance", parser: Y }, { code: 63, name: "lightColorIndex", parser: Y }, { code: 290, name: "isOn", parser: _ }, { code: 90, name: "version", parser: Y }, { code: 100, name: "subclassMarker", parser: Y, pushContext: !0 }, ...$.filter((g) => g.code !== 100)];
3035
3036
  class FE {
3036
3037
  parseEntity(A, C) {
3037
3038
  let Q = { layer: "" };
3038
3039
  return this.parser(C, A, Q), Q;
3039
3040
  }
3040
3041
  constructor() {
3041
- KE(this, "parser", u(iM));
3042
+ KE(this, "parser", u(yM));
3042
3043
  }
3043
3044
  }
3044
3045
  KE(FE, "ForEntityName", "SUN");
@@ -3183,7 +3184,7 @@ class MC {
3183
3184
  U.topBorderVisibility = !!(o.value ?? !0), o = D.next();
3184
3185
  break;
3185
3186
  case 301:
3186
- (function(i, F, h) {
3187
+ (function(y, F, h) {
3187
3188
  for (; h.code !== 304; ) switch (h.code) {
3188
3189
  case 301:
3189
3190
  case 93:
@@ -3192,13 +3193,13 @@ class MC {
3192
3193
  h = F.next();
3193
3194
  break;
3194
3195
  case 1:
3195
- i.text = h.value, h = F.next();
3196
+ y.text = h.value, h = F.next();
3196
3197
  break;
3197
3198
  case 300:
3198
- i.attrText = h.value, h = F.next();
3199
+ y.attrText = h.value, h = F.next();
3199
3200
  break;
3200
3201
  case 302:
3201
- i.text = h.value ? h.value : i.text, h = F.next();
3202
+ y.text = h.value ? h.value : y.text, h = F.next();
3202
3203
  break;
3203
3204
  default:
3204
3205
  h = F.next();
@@ -3218,30 +3219,30 @@ class MC {
3218
3219
  return Q;
3219
3220
  }
3220
3221
  }
3221
- function iE(g, A, C) {
3222
+ function yE(g, A, C) {
3222
3223
  return A in g ? Object.defineProperty(g, A, { value: C, enumerable: !0, configurable: !0, writable: !0 }) : g[A] = C, g;
3223
3224
  }
3224
3225
  (QB = "ForEntityName") in MC ? Object.defineProperty(MC, QB, { value: "ACAD_TABLE", enumerable: !0, configurable: !0, writable: !0 }) : MC[QB] = "ACAD_TABLE";
3225
- let yM = [{ code: 11, name: "xAxisDirection", parser: t }, { code: 210, name: "extrusionDirection", parser: t }, { code: 1, name: "text", parser: Y }, { code: 10, name: "position", parser: t }, { code: 3, name: "styleName", parser: Y }, { code: 100, name: "subclassMarker", parser: Y }, ...$];
3226
- class yE {
3226
+ let RM = [{ code: 11, name: "xAxisDirection", parser: t }, { code: 210, name: "extrusionDirection", parser: t }, { code: 1, name: "text", parser: Y }, { code: 10, name: "position", parser: t }, { code: 3, name: "styleName", parser: Y }, { code: 100, name: "subclassMarker", parser: Y }, ...$];
3227
+ class RE {
3227
3228
  parseEntity(A, C) {
3228
3229
  let Q = {};
3229
3230
  return this.parser(C, A, Q), Q;
3230
3231
  }
3231
3232
  constructor() {
3232
- iE(this, "parser", u(yM));
3233
+ yE(this, "parser", u(RM));
3233
3234
  }
3234
3235
  }
3235
- iE(yE, "ForEntityName", "TOLERANCE");
3236
- (yA = {})[yA.CREATED_BY_CURVE_FIT = 1] = "CREATED_BY_CURVE_FIT", yA[yA.TANGENT_DEFINED = 2] = "TANGENT_DEFINED", yA[yA.NOT_USED = 4] = "NOT_USED", yA[yA.CREATED_BY_SPLINE_FIT = 8] = "CREATED_BY_SPLINE_FIT", yA[yA.SPLINE_CONTROL_POINT = 16] = "SPLINE_CONTROL_POINT", yA[yA.FOR_POLYLINE = 32] = "FOR_POLYLINE", yA[yA.FOR_POLYGON = 64] = "FOR_POLYGON", yA[yA.POLYFACE = 128] = "POLYFACE";
3237
- let RM = [{ code: [335, 343, 344, 91], name: "softPointers", isMultiple: !0, parser: Y }, { code: 361, name: "sunId", parser: Y }, { code: 431, name: "ambientLightColorName", parser: Y }, { code: 421, name: "ambientLightColorInstance", parser: Y }, { code: 63, name: "ambientLightColorIndex", parser: Y }, { code: 142, name: "contrast", parser: Y }, { code: 141, name: "brightness", parser: Y }, { code: 282, name: "defaultLightingType", parser: Y }, { code: 292, name: "isDefaultLighting", parser: _ }, { code: 348, name: "visualStyleId", parser: Y }, { code: 333, name: "shadePlotId", parser: Y }, { code: 332, name: "backgroundId", parser: Y }, { code: 61, name: "majorGridFrequency", parser: Y }, { code: 170, name: "shadePlotMode", parser: Y }, { code: 146, name: "elevation", parser: Y }, { code: 79, name: "orthographicType", parser: Y }, { code: 346, name: "ucsBaseId", parser: Y }, { code: 345, name: "ucsId", parser: Y }, { code: 112, name: "ucsYAxis", parser: t }, { code: 111, name: "ucsXAxis", parser: t }, { code: 110, name: "ucsOrigin", parser: t }, { code: 74, name: "iconFlag", parser: Y }, { code: 71, name: "ucsPerViewport", parser: Y }, { code: 281, name: "renderMode", parser: Y }, { code: 1, name: "sheetName", parser: Y }, { code: 340, name: "clippingBoundaryId", parser: Y }, { code: 90, name: "statusBitFlags", parser: Y }, { code: 331, name: "frozenLayerIds", isMultiple: !0, parser: Y }, { code: 72, name: "circleZoomPercent", parser: Y }, { code: 51, name: "viewTwistAngle", parser: Y }, { code: 50, name: "snapAngle", parser: Y }, { code: 45, name: "viewHeight", parser: Y }, { code: 44, name: "backClipZ", parser: Y }, { code: 43, name: "frontClipZ", parser: Y }, { code: 42, name: "perspectiveLensLength", parser: Y }, { code: 17, name: "targetPoint", parser: t }, { code: 16, name: "viewDirection", parser: t }, { code: 15, name: "gridSpacing", parser: t }, { code: 14, name: "snapSpacing", parser: t }, { code: 13, name: "snapBase", parser: t }, { code: 12, name: "displayCenter", parser: t }, { code: 69, name: "viewportId", parser: Y }, { code: 68, name: "status", parser: Y }, { code: 41, name: "height", parser: Y }, { code: 40, name: "width", parser: Y }, { code: 10, name: "viewportCenter", parser: t }, { code: 100, name: "subclassMarker", parser: Y, pushContext: !0 }, ...$];
3236
+ yE(RE, "ForEntityName", "TOLERANCE");
3237
+ (RA = {})[RA.CREATED_BY_CURVE_FIT = 1] = "CREATED_BY_CURVE_FIT", RA[RA.TANGENT_DEFINED = 2] = "TANGENT_DEFINED", RA[RA.NOT_USED = 4] = "NOT_USED", RA[RA.CREATED_BY_SPLINE_FIT = 8] = "CREATED_BY_SPLINE_FIT", RA[RA.SPLINE_CONTROL_POINT = 16] = "SPLINE_CONTROL_POINT", RA[RA.FOR_POLYLINE = 32] = "FOR_POLYLINE", RA[RA.FOR_POLYGON = 64] = "FOR_POLYGON", RA[RA.POLYFACE = 128] = "POLYFACE";
3238
+ let iM = [{ code: [335, 343, 344, 91], name: "softPointers", isMultiple: !0, parser: Y }, { code: 361, name: "sunId", parser: Y }, { code: 431, name: "ambientLightColorName", parser: Y }, { code: 421, name: "ambientLightColorInstance", parser: Y }, { code: 63, name: "ambientLightColorIndex", parser: Y }, { code: 142, name: "contrast", parser: Y }, { code: 141, name: "brightness", parser: Y }, { code: 282, name: "defaultLightingType", parser: Y }, { code: 292, name: "isDefaultLighting", parser: _ }, { code: 348, name: "visualStyleId", parser: Y }, { code: 333, name: "shadePlotId", parser: Y }, { code: 332, name: "backgroundId", parser: Y }, { code: 61, name: "majorGridFrequency", parser: Y }, { code: 170, name: "shadePlotMode", parser: Y }, { code: 146, name: "elevation", parser: Y }, { code: 79, name: "orthographicType", parser: Y }, { code: 346, name: "ucsBaseId", parser: Y }, { code: 345, name: "ucsId", parser: Y }, { code: 112, name: "ucsYAxis", parser: t }, { code: 111, name: "ucsXAxis", parser: t }, { code: 110, name: "ucsOrigin", parser: t }, { code: 74, name: "iconFlag", parser: Y }, { code: 71, name: "ucsPerViewport", parser: Y }, { code: 281, name: "renderMode", parser: Y }, { code: 1, name: "sheetName", parser: Y }, { code: 340, name: "clippingBoundaryId", parser: Y }, { code: 90, name: "statusBitFlags", parser: Y }, { code: 331, name: "frozenLayerIds", isMultiple: !0, parser: Y }, { code: 72, name: "circleZoomPercent", parser: Y }, { code: 51, name: "viewTwistAngle", parser: Y }, { code: 50, name: "snapAngle", parser: Y }, { code: 45, name: "viewHeight", parser: Y }, { code: 44, name: "backClipZ", parser: Y }, { code: 43, name: "frontClipZ", parser: Y }, { code: 42, name: "perspectiveLensLength", parser: Y }, { code: 17, name: "targetPoint", parser: t }, { code: 16, name: "viewDirection", parser: t }, { code: 15, name: "gridSpacing", parser: t }, { code: 14, name: "snapSpacing", parser: t }, { code: 13, name: "snapBase", parser: t }, { code: 12, name: "displayCenter", parser: t }, { code: 69, name: "viewportId", parser: Y }, { code: 68, name: "status", parser: Y }, { code: 41, name: "height", parser: Y }, { code: 40, name: "width", parser: Y }, { code: 10, name: "viewportCenter", parser: t }, { code: 100, name: "subclassMarker", parser: Y, pushContext: !0 }, ...$];
3238
3239
  class NC {
3239
3240
  parseEntity(A, C) {
3240
3241
  let Q = {};
3241
- return u(RM)(C, A, Q), Q;
3242
+ return u(iM)(C, A, Q), Q;
3242
3243
  }
3243
3244
  }
3244
- function RE(g, A, C) {
3245
+ function iE(g, A, C) {
3245
3246
  return A in g ? Object.defineProperty(g, A, { value: C, enumerable: !0, configurable: !0, writable: !0 }) : g[A] = C, g;
3246
3247
  }
3247
3248
  (CB = "ForEntityName") in NC ? Object.defineProperty(NC, CB, { value: "VIEWPORT", enumerable: !0, configurable: !0, writable: !0 }) : NC[CB] = "VIEWPORT";
@@ -3252,10 +3253,10 @@ class hE {
3252
3253
  return this.parser(C, A, Q), Q;
3253
3254
  }
3254
3255
  constructor() {
3255
- RE(this, "parser", u(JM, hM));
3256
+ iE(this, "parser", u(JM, hM));
3256
3257
  }
3257
3258
  }
3258
- RE(hE, "ForEntityName", "WIPEOUT");
3259
+ iE(hE, "ForEntityName", "WIPEOUT");
3259
3260
  (cg = {})[cg.ShowImage = 1] = "ShowImage", cg[cg.ShowImageWhenNotAligned = 2] = "ShowImageWhenNotAligned", cg[cg.UseClippingBoundary = 4] = "UseClippingBoundary", cg[cg.Transparency = 8] = "Transparency";
3260
3261
  function JE(g, A, C) {
3261
3262
  return A in g ? Object.defineProperty(g, A, { value: C, enumerable: !0, configurable: !0, writable: !0 }) : g[A] = C, g;
@@ -3271,7 +3272,7 @@ class LE {
3271
3272
  }
3272
3273
  }
3273
3274
  JE(LE, "ForEntityName", "XLINE");
3274
- Object.fromEntries([kI, oC, hI, aI, sI, tI, DC, xI, zI, bI, ZI, qI, eI, uI, wC, rI, jI, LI, _I, AE, CE, IE, DE, GE, ME, YE, UE, FE, MC, yI, yE, OI, UB, NC, hE, LE].map((g) => [g.ForEntityName, new g()]));
3275
+ Object.fromEntries([kI, oC, hI, sI, SI, tI, DC, xI, zI, bI, ZI, qI, eI, uI, wC, rI, jI, LI, _I, AE, CE, IE, DE, GE, ME, YE, UE, FE, MC, RI, RE, OI, UB, NC, hE, LE].map((g) => [g.ForEntityName, new g()]));
3275
3276
  let HM = [{ code: 100, name: "subclassMarker", parser: Y }, { code: 330, name: "ownerObjectId", parser: Y }, { code: 102, isMultiple: !0, parser(g, A) {
3276
3277
  for (; !tA(g, 0, "EOF") && !tA(g, 102, "}"); ) g = A.next();
3277
3278
  } }, { code: 5, name: "handle", parser: Y }];
@@ -3287,7 +3288,7 @@ u([...kB.map((g) => ({ ...g, parser: Y })), { code: 70, name: "standardFlag", pa
3287
3288
  (eB = {})[eB.PaperSpace = 1] = "PaperSpace";
3288
3289
  (IQ = {})[IQ.XrefDependent = 16] = "XrefDependent", IQ[IQ.XrefResolved = 32] = "XrefResolved", IQ[IQ.Referenced = 64] = "Referenced";
3289
3290
  (WA = {})[WA.Off = 0] = "Off", WA[WA.Perspective = 1] = "Perspective", WA[WA.ClipFront = 2] = "ClipFront", WA[WA.ClipBack = 4] = "ClipBack", WA[WA.UcsFollow = 8] = "UcsFollow", WA[WA.ClipFrontByFrontZ = 16] = "ClipFrontByFrontZ";
3290
- class aM {
3291
+ class sM {
3291
3292
  constructor() {
3292
3293
  this.setupMessageHandler();
3293
3294
  }
@@ -3317,7 +3318,7 @@ class aM {
3317
3318
  self.postMessage(o);
3318
3319
  }
3319
3320
  }
3320
- var SM = Object.defineProperty, sM = (g, A, C) => A in g ? SM(g, A, { enumerable: !0, configurable: !0, writable: !0, value: C }) : g[A] = C, IA = (g, A, C) => sM(g, typeof A != "symbol" ? A + "" : A, C);
3321
+ var aM = Object.defineProperty, SM = (g, A, C) => A in g ? aM(g, A, { enumerable: !0, configurable: !0, writable: !0, value: C }) : g[A] = C, IA = (g, A, C) => SM(g, typeof A != "symbol" ? A + "" : A, C);
3321
3322
  const cM = [
3322
3323
  "utf-8",
3323
3324
  // 0
@@ -3400,7 +3401,7 @@ const cM = [
3400
3401
  "windows-1258"
3401
3402
  // Vietnamese
3402
3403
  ], rB = (g) => cM[g];
3403
- var bg = /* @__PURE__ */ ((g) => (g[g.TopLeft = 1] = "TopLeft", g[g.TopCenter = 2] = "TopCenter", g[g.TopRight = 3] = "TopRight", g[g.MiddleLeft = 4] = "MiddleLeft", g[g.MiddleCenter = 5] = "MiddleCenter", g[g.MiddleRight = 6] = "MiddleRight", g[g.BottomLeft = 7] = "BottomLeft", g[g.BottomCenter = 8] = "BottomCenter", g[g.BottomRight = 9] = "BottomRight", g))(bg || {}), GB = /* @__PURE__ */ ((g) => (g[g.PatternFill = 0] = "PatternFill", g[g.SolidFill = 1] = "SolidFill", g))(GB || {}), wB = /* @__PURE__ */ ((g) => (g[g.NonAssociative = 0] = "NonAssociative", g[g.Associative = 1] = "Associative", g))(wB || {}), yQ = /* @__PURE__ */ ((g) => (g[g.Line = 1] = "Line", g[g.Circular = 2] = "Circular", g[g.Elliptic = 3] = "Elliptic", g[g.Spline = 4] = "Spline", g))(yQ || {}), MB = /* @__PURE__ */ ((g) => (g[g.LEFT = 0] = "LEFT", g[g.CENTER = 1] = "CENTER", g[g.RIGHT = 2] = "RIGHT", g[g.ALIGNED = 3] = "ALIGNED", g[g.MIDDLE = 4] = "MIDDLE", g[g.FIT = 5] = "FIT", g))(MB || {});
3404
+ var bg = /* @__PURE__ */ ((g) => (g[g.TopLeft = 1] = "TopLeft", g[g.TopCenter = 2] = "TopCenter", g[g.TopRight = 3] = "TopRight", g[g.MiddleLeft = 4] = "MiddleLeft", g[g.MiddleCenter = 5] = "MiddleCenter", g[g.MiddleRight = 6] = "MiddleRight", g[g.BottomLeft = 7] = "BottomLeft", g[g.BottomCenter = 8] = "BottomCenter", g[g.BottomRight = 9] = "BottomRight", g))(bg || {}), GB = /* @__PURE__ */ ((g) => (g[g.PatternFill = 0] = "PatternFill", g[g.SolidFill = 1] = "SolidFill", g))(GB || {}), wB = /* @__PURE__ */ ((g) => (g[g.NonAssociative = 0] = "NonAssociative", g[g.Associative = 1] = "Associative", g))(wB || {}), RQ = /* @__PURE__ */ ((g) => (g[g.Line = 1] = "Line", g[g.Circular = 2] = "Circular", g[g.Elliptic = 3] = "Elliptic", g[g.Spline = 4] = "Spline", g))(RQ || {}), MB = /* @__PURE__ */ ((g) => (g[g.LEFT = 0] = "LEFT", g[g.CENTER = 1] = "CENTER", g[g.RIGHT = 2] = "RIGHT", g[g.ALIGNED = 3] = "ALIGNED", g[g.MIDDLE = 4] = "MIDDLE", g[g.FIT = 5] = "FIT", g))(MB || {});
3404
3405
  const tM = Object.freeze([
3405
3406
  "ACADMAINTVER",
3406
3407
  "ACADVER",
@@ -3881,32 +3882,32 @@ var PB = (() => {
3881
3882
  return async function(A = {}) {
3882
3883
  var C, Q = A, D, o, w = new Promise((B, I) => {
3883
3884
  D = B, o = I;
3884
- }), k = typeof window == "object", U = typeof WorkerGlobalScope < "u", i = typeof process == "object" && typeof process.versions == "object" && typeof process.versions.node == "string" && process.type != "renderer";
3885
- if (i) {
3885
+ }), k = typeof window == "object", U = typeof WorkerGlobalScope < "u", y = typeof process == "object" && typeof process.versions == "object" && typeof process.versions.node == "string" && process.type != "renderer";
3886
+ if (y) {
3886
3887
  const { createRequire: B } = await Promise.resolve().then(() => eM);
3887
3888
  var F = B(import.meta.url);
3888
3889
  }
3889
- var h = Object.assign({}, Q), L = "./this.program", R = "";
3890
+ var h = Object.assign({}, Q), L = "./this.program", i = "";
3890
3891
  function c(B) {
3891
- return Q.locateFile ? Q.locateFile(B, R) : R + B;
3892
+ return Q.locateFile ? Q.locateFile(B, i) : i + B;
3892
3893
  }
3893
- var H, s;
3894
- if (i) {
3895
- var a = F("fs"), v = F("path");
3896
- import.meta.url.startsWith("data:") || (R = v.dirname(F("url").fileURLToPath(import.meta.url)) + "/"), s = (B) => {
3897
- B = RA(B) ? new URL(B) : B;
3898
- var I = a.readFileSync(B);
3894
+ var H, S;
3895
+ if (y) {
3896
+ var s = F("fs"), v = F("path");
3897
+ import.meta.url.startsWith("data:") || (i = v.dirname(F("url").fileURLToPath(import.meta.url)) + "/"), S = (B) => {
3898
+ B = iA(B) ? new URL(B) : B;
3899
+ var I = s.readFileSync(B);
3899
3900
  return I;
3900
3901
  }, H = async (B, I = !0) => {
3901
- B = RA(B) ? new URL(B) : B;
3902
- var E = a.readFileSync(B, I ? void 0 : "utf8");
3902
+ B = iA(B) ? new URL(B) : B;
3903
+ var E = s.readFileSync(B, I ? void 0 : "utf8");
3903
3904
  return E;
3904
3905
  }, !Q.thisProgram && process.argv.length > 1 && (L = process.argv[1].replace(/\\/g, "/")), process.argv.slice(2);
3905
- } else (k || U) && (U ? R = self.location.href : typeof document < "u" && document.currentScript && (R = document.currentScript.src), g && (R = g), R.startsWith("blob:") ? R = "" : R = R.slice(0, R.replace(/[?#].*/, "").lastIndexOf("/") + 1), U && (s = (B) => {
3906
+ } else (k || U) && (U ? i = self.location.href : typeof document < "u" && document.currentScript && (i = document.currentScript.src), g && (i = g), i.startsWith("blob:") ? i = "" : i = i.slice(0, i.replace(/[?#].*/, "").lastIndexOf("/") + 1), U && (S = (B) => {
3906
3907
  var I = new XMLHttpRequest();
3907
3908
  return I.open("GET", B, !1), I.responseType = "arraybuffer", I.send(null), new Uint8Array(I.response);
3908
3909
  }), H = async (B) => {
3909
- if (RA(B))
3910
+ if (iA(B))
3910
3911
  return new Promise((E, G) => {
3911
3912
  var N = new XMLHttpRequest();
3912
3913
  N.open("GET", B, !0), N.responseType = "arraybuffer", N.onload = () => {
@@ -3924,10 +3925,10 @@ var PB = (() => {
3924
3925
  });
3925
3926
  var V = Q.print || void 0, O = Q.printErr || void 0;
3926
3927
  Object.assign(Q, h), h = null, Q.arguments && Q.arguments, Q.thisProgram && (L = Q.thisProgram);
3927
- var z = Q.wasmBinary, f, q = !1, W, AA, EA, P, d, e, iA, MA, zA, TA, RA = (B) => B.startsWith("file://");
3928
+ var z = Q.wasmBinary, f, q = !1, W, AA, EA, P, d, e, yA, MA, zA, TA, iA = (B) => B.startsWith("file://");
3928
3929
  function VA() {
3929
3930
  var B = f.buffer;
3930
- Q.HEAP8 = W = new Int8Array(B), Q.HEAP16 = EA = new Int16Array(B), Q.HEAPU8 = AA = new Uint8Array(B), Q.HEAPU16 = P = new Uint16Array(B), Q.HEAP32 = d = new Int32Array(B), Q.HEAPU32 = e = new Uint32Array(B), Q.HEAPF32 = iA = new Float32Array(B), Q.HEAPF64 = TA = new Float64Array(B), Q.HEAP64 = MA = new BigInt64Array(B), Q.HEAPU64 = zA = new BigUint64Array(B);
3931
+ Q.HEAP8 = W = new Int8Array(B), Q.HEAP16 = EA = new Int16Array(B), Q.HEAPU8 = AA = new Uint8Array(B), Q.HEAPU16 = P = new Uint16Array(B), Q.HEAP32 = d = new Int32Array(B), Q.HEAPU32 = e = new Uint32Array(B), Q.HEAPF32 = yA = new Float32Array(B), Q.HEAPF64 = TA = new Float64Array(B), Q.HEAP64 = MA = new BigInt64Array(B), Q.HEAPU64 = zA = new BigUint64Array(B);
3931
3932
  }
3932
3933
  function vA() {
3933
3934
  if (Q.preRun)
@@ -3969,8 +3970,8 @@ var PB = (() => {
3969
3970
  function wQ(B) {
3970
3971
  if (B == kg && z)
3971
3972
  return new Uint8Array(z);
3972
- if (s)
3973
- return s(B);
3973
+ if (S)
3974
+ return S(B);
3974
3975
  throw "both async and sync fetching of the wasm failed";
3975
3976
  }
3976
3977
  async function MQ(B) {
@@ -3982,7 +3983,7 @@ var PB = (() => {
3982
3983
  }
3983
3984
  return wQ(B);
3984
3985
  }
3985
- async function iC(B, I) {
3986
+ async function yC(B, I) {
3986
3987
  try {
3987
3988
  var E = await MQ(B), G = await WebAssembly.instantiate(E, I);
3988
3989
  return G;
@@ -3990,37 +3991,37 @@ var PB = (() => {
3990
3991
  O(`failed to asynchronously prepare wasm: ${N}`), Bg(N);
3991
3992
  }
3992
3993
  }
3993
- async function yC(B, I, E) {
3994
- if (!B && typeof WebAssembly.instantiateStreaming == "function" && !RA(I) && !i)
3994
+ async function RC(B, I, E) {
3995
+ if (!B && typeof WebAssembly.instantiateStreaming == "function" && !iA(I) && !y)
3995
3996
  try {
3996
3997
  var G = fetch(I, { credentials: "same-origin" }), N = await WebAssembly.instantiateStreaming(G, E);
3997
3998
  return N;
3998
3999
  } catch (K) {
3999
4000
  O(`wasm streaming compile failed: ${K}`), O("falling back to ArrayBuffer instantiation");
4000
4001
  }
4001
- return iC(I, E);
4002
+ return yC(I, E);
4002
4003
  }
4003
- function RC() {
4004
+ function iC() {
4004
4005
  return { env: lB, wasi_snapshot_preview1: lB };
4005
4006
  }
4006
4007
  async function hC() {
4007
- function B(K, y) {
4008
- return ZA = K.exports, f = ZA.memory, VA(), aB = ZA.__indirect_function_table, xg(), ZA;
4008
+ function B(K, R) {
4009
+ return ZA = K.exports, f = ZA.memory, VA(), sB = ZA.__indirect_function_table, xg(), ZA;
4009
4010
  }
4010
4011
  ng();
4011
4012
  function I(K) {
4012
4013
  return B(K.instance);
4013
4014
  }
4014
- var E = RC();
4015
+ var E = iC();
4015
4016
  if (Q.instantiateWasm)
4016
- return new Promise((K, y) => {
4017
- Q.instantiateWasm(E, (J, S) => {
4017
+ return new Promise((K, R) => {
4018
+ Q.instantiateWasm(E, (J, a) => {
4018
4019
  B(J), K(J.exports);
4019
4020
  });
4020
4021
  });
4021
4022
  kg ?? (kg = GQ());
4022
4023
  try {
4023
- var G = await yC(z, kg, E), N = I(G);
4024
+ var G = await RC(z, kg, E), N = I(G);
4024
4025
  return N;
4025
4026
  } catch (K) {
4026
4027
  return o(K), Promise.reject(K);
@@ -4049,7 +4050,7 @@ var PB = (() => {
4049
4050
  MA[B >> 3] = BigInt(I);
4050
4051
  break;
4051
4052
  case "float":
4052
- iA[B >> 2] = I;
4053
+ yA[B >> 2] = I;
4053
4054
  break;
4054
4055
  case "double":
4055
4056
  TA[B >> 3] = I;
@@ -4061,31 +4062,31 @@ var PB = (() => {
4061
4062
  Bg(`invalid type for setValue: ${E}`);
4062
4063
  }
4063
4064
  }
4064
- var aC = (B) => Jo(B), SC = () => Ho(), HQ = typeof TextDecoder < "u" ? new TextDecoder() : void 0, Ug = (B, I = 0, E = NaN) => {
4065
+ var sC = (B) => Jo(B), aC = () => Ho(), HQ = typeof TextDecoder < "u" ? new TextDecoder() : void 0, Ug = (B, I = 0, E = NaN) => {
4065
4066
  for (var G = I + E, N = I; B[N] && !(N >= G); ) ++N;
4066
4067
  if (N - I > 16 && B.buffer && HQ)
4067
4068
  return HQ.decode(B.subarray(I, N));
4068
4069
  for (var K = ""; I < N; ) {
4069
- var y = B[I++];
4070
- if (!(y & 128)) {
4071
- K += String.fromCharCode(y);
4070
+ var R = B[I++];
4071
+ if (!(R & 128)) {
4072
+ K += String.fromCharCode(R);
4072
4073
  continue;
4073
4074
  }
4074
4075
  var J = B[I++] & 63;
4075
- if ((y & 224) == 192) {
4076
- K += String.fromCharCode((y & 31) << 6 | J);
4076
+ if ((R & 224) == 192) {
4077
+ K += String.fromCharCode((R & 31) << 6 | J);
4077
4078
  continue;
4078
4079
  }
4079
- var S = B[I++] & 63;
4080
- if ((y & 240) == 224 ? y = (y & 15) << 12 | J << 6 | S : y = (y & 7) << 18 | J << 12 | S << 6 | B[I++] & 63, y < 65536)
4081
- K += String.fromCharCode(y);
4080
+ var a = B[I++] & 63;
4081
+ if ((R & 240) == 224 ? R = (R & 15) << 12 | J << 6 | a : R = (R & 7) << 18 | J << 12 | a << 6 | B[I++] & 63, R < 65536)
4082
+ K += String.fromCharCode(R);
4082
4083
  else {
4083
- var T = y - 65536;
4084
+ var T = R - 65536;
4084
4085
  K += String.fromCharCode(55296 | T >> 10, 56320 | T & 1023);
4085
4086
  }
4086
4087
  }
4087
4088
  return K;
4088
- }, Ig = (B, I) => B ? Ug(AA, B, I) : "", sC = (B, I, E, G) => Bg(`Assertion failed: ${Ig(B)}, at: ` + [I ? Ig(I) : "unknown filename", E, G ? Ig(G) : "unknown function"]);
4089
+ }, Ig = (B, I) => B ? Ug(AA, B, I) : "", SC = (B, I, E, G) => Bg(`Assertion failed: ${Ig(B)}, at: ` + [I ? Ig(I) : "unknown filename", E, G ? Ig(G) : "unknown function"]);
4089
4090
  class cC {
4090
4091
  constructor(I) {
4091
4092
  this.excPtr = I, this.ptr = I - 24;
@@ -4124,9 +4125,9 @@ var PB = (() => {
4124
4125
  return e[this.ptr + 16 >> 2];
4125
4126
  }
4126
4127
  }
4127
- var aQ = 0, tC = (B, I, E) => {
4128
+ var sQ = 0, tC = (B, I, E) => {
4128
4129
  var G = new cC(B);
4129
- throw G.init(I, E), aQ = B, aQ;
4130
+ throw G.init(I, E), sQ = B, sQ;
4130
4131
  }, Zg = () => {
4131
4132
  var B = d[+GA.varargs >> 2];
4132
4133
  return GA.varargs += 4, B;
@@ -4149,13 +4150,13 @@ var PB = (() => {
4149
4150
  var I = BA.splitPath(B), E = I[0], G = I[1];
4150
4151
  return !E && !G ? "." : (G && (G = G.slice(0, -1)), E + G);
4151
4152
  }, basename: (B) => B && B.match(/([^\/]+|\/)\/*$/)[1], join: (...B) => BA.normalize(B.join("/")), join2: (B, I) => BA.normalize(B + "/" + I) }, TC = () => {
4152
- if (i) {
4153
+ if (y) {
4153
4154
  var B = F("crypto");
4154
4155
  return (I) => B.randomFillSync(I);
4155
4156
  }
4156
4157
  return (I) => crypto.getRandomValues(I);
4157
- }, SQ = (B) => {
4158
- (SQ = TC())(B);
4158
+ }, aQ = (B) => {
4159
+ (aQ = TC())(B);
4159
4160
  }, Fg = { resolve: (...B) => {
4160
4161
  for (var I = "", E = !1, G = B.length - 1; G >= -1 && !E; G--) {
4161
4162
  var N = G >= 0 ? B[G] : M.cwd();
@@ -4175,14 +4176,14 @@ var PB = (() => {
4175
4176
  ;
4176
4177
  return x > l ? [] : T.slice(x, l - x + 1);
4177
4178
  }
4178
- for (var G = E(B.split("/")), N = E(I.split("/")), K = Math.min(G.length, N.length), y = K, J = 0; J < K; J++)
4179
+ for (var G = E(B.split("/")), N = E(I.split("/")), K = Math.min(G.length, N.length), R = K, J = 0; J < K; J++)
4179
4180
  if (G[J] !== N[J]) {
4180
- y = J;
4181
+ R = J;
4181
4182
  break;
4182
4183
  }
4183
- for (var S = [], J = y; J < G.length; J++)
4184
- S.push("..");
4185
- return S = S.concat(N.slice(y)), S.join("/");
4184
+ for (var a = [], J = R; J < G.length; J++)
4185
+ a.push("..");
4186
+ return a = a.concat(N.slice(R)), a.join("/");
4186
4187
  } }, NQ = [], dg = (B) => {
4187
4188
  for (var I = 0, E = 0; E < B.length; ++E) {
4188
4189
  var G = B.charCodeAt(E);
@@ -4191,11 +4192,11 @@ var PB = (() => {
4191
4192
  return I;
4192
4193
  }, YQ = (B, I, E, G) => {
4193
4194
  if (!(G > 0)) return 0;
4194
- for (var N = E, K = E + G - 1, y = 0; y < B.length; ++y) {
4195
- var J = B.charCodeAt(y);
4195
+ for (var N = E, K = E + G - 1, R = 0; R < B.length; ++R) {
4196
+ var J = B.charCodeAt(R);
4196
4197
  if (J >= 55296 && J <= 57343) {
4197
- var S = B.charCodeAt(++y);
4198
- J = 65536 + ((J & 1023) << 10) | S & 1023;
4198
+ var a = B.charCodeAt(++R);
4199
+ J = 65536 + ((J & 1023) << 10) | a & 1023;
4199
4200
  }
4200
4201
  if (J <= 127) {
4201
4202
  if (E >= K) break;
@@ -4212,16 +4213,16 @@ var PB = (() => {
4212
4213
  }
4213
4214
  }
4214
4215
  return I[E] = 0, E - N;
4215
- }, sQ = (B, I, E) => {
4216
+ }, SQ = (B, I, E) => {
4216
4217
  var G = dg(B) + 1, N = new Array(G), K = YQ(B, N, 0, N.length);
4217
4218
  return N.length = K, N;
4218
4219
  }, xC = () => {
4219
4220
  if (!NQ.length) {
4220
4221
  var B = null;
4221
- if (i) {
4222
+ if (y) {
4222
4223
  var I = 256, E = Buffer.alloc(I), G = 0, N = process.stdin.fd;
4223
4224
  try {
4224
- G = a.readSync(N, E, 0, I);
4225
+ G = s.readSync(N, E, 0, I);
4225
4226
  } catch (K) {
4226
4227
  if (K.toString().includes("EOF")) G = 0;
4227
4228
  else throw K;
@@ -4231,7 +4232,7 @@ var PB = (() => {
4231
4232
  `));
4232
4233
  if (!B)
4233
4234
  return null;
4234
- NQ = sQ(B);
4235
+ NQ = SQ(B);
4235
4236
  }
4236
4237
  return NQ.shift();
4237
4238
  }, Eg = { ttys: [], init() {
@@ -4250,7 +4251,7 @@ var PB = (() => {
4250
4251
  }, read(B, I, E, G, N) {
4251
4252
  if (!B.tty || !B.tty.ops.get_char)
4252
4253
  throw new M.ErrnoError(60);
4253
- for (var K = 0, y = 0; y < G; y++) {
4254
+ for (var K = 0, R = 0; R < G; R++) {
4254
4255
  var J;
4255
4256
  try {
4256
4257
  J = B.tty.ops.get_char(B.tty);
@@ -4260,7 +4261,7 @@ var PB = (() => {
4260
4261
  if (J === void 0 && K === 0)
4261
4262
  throw new M.ErrnoError(6);
4262
4263
  if (J == null) break;
4263
- K++, I[E + y] = J;
4264
+ K++, I[E + R] = J;
4264
4265
  }
4265
4266
  return K && (B.node.atime = Date.now()), K;
4266
4267
  }, write(B, I, E, G, N) {
@@ -4362,29 +4363,29 @@ var PB = (() => {
4362
4363
  } }, stream_ops: { read(B, I, E, G, N) {
4363
4364
  var K = B.node.contents;
4364
4365
  if (N >= B.node.usedBytes) return 0;
4365
- var y = Math.min(B.node.usedBytes - N, G);
4366
- if (y > 8 && K.subarray)
4367
- I.set(K.subarray(N, N + y), E);
4366
+ var R = Math.min(B.node.usedBytes - N, G);
4367
+ if (R > 8 && K.subarray)
4368
+ I.set(K.subarray(N, N + R), E);
4368
4369
  else
4369
- for (var J = 0; J < y; J++) I[E + J] = K[N + J];
4370
- return y;
4370
+ for (var J = 0; J < R; J++) I[E + J] = K[N + J];
4371
+ return R;
4371
4372
  }, write(B, I, E, G, N, K) {
4372
4373
  if (I.buffer === W.buffer && (K = !1), !G) return 0;
4373
- var y = B.node;
4374
- if (y.mtime = y.ctime = Date.now(), I.subarray && (!y.contents || y.contents.subarray)) {
4374
+ var R = B.node;
4375
+ if (R.mtime = R.ctime = Date.now(), I.subarray && (!R.contents || R.contents.subarray)) {
4375
4376
  if (K)
4376
- return y.contents = I.subarray(E, E + G), y.usedBytes = G, G;
4377
- if (y.usedBytes === 0 && N === 0)
4378
- return y.contents = I.slice(E, E + G), y.usedBytes = G, G;
4379
- if (N + G <= y.usedBytes)
4380
- return y.contents.set(I.subarray(E, E + G), N), G;
4381
- }
4382
- if (m.expandFileStorage(y, N + G), y.contents.subarray && I.subarray)
4383
- y.contents.set(I.subarray(E, E + G), N);
4377
+ return R.contents = I.subarray(E, E + G), R.usedBytes = G, G;
4378
+ if (R.usedBytes === 0 && N === 0)
4379
+ return R.contents = I.slice(E, E + G), R.usedBytes = G, G;
4380
+ if (N + G <= R.usedBytes)
4381
+ return R.contents.set(I.subarray(E, E + G), N), G;
4382
+ }
4383
+ if (m.expandFileStorage(R, N + G), R.contents.subarray && I.subarray)
4384
+ R.contents.set(I.subarray(E, E + G), N);
4384
4385
  else
4385
4386
  for (var J = 0; J < G; J++)
4386
- y.contents[N + J] = I[E + J];
4387
- return y.usedBytes = Math.max(y.usedBytes, N + G), G;
4387
+ R.contents[N + J] = I[E + J];
4388
+ return R.usedBytes = Math.max(R.usedBytes, N + G), G;
4388
4389
  }, llseek(B, I, E) {
4389
4390
  var G = I;
4390
4391
  if (E === 1 ? G += B.position : E === 2 && M.isFile(B.node.mode) && (G += B.node.usedBytes), G < 0)
@@ -4395,15 +4396,15 @@ var PB = (() => {
4395
4396
  }, mmap(B, I, E, G, N) {
4396
4397
  if (!M.isFile(B.node.mode))
4397
4398
  throw new M.ErrnoError(43);
4398
- var K, y, J = B.node.contents;
4399
+ var K, R, J = B.node.contents;
4399
4400
  if (!(N & 2) && J && J.buffer === W.buffer)
4400
- y = !1, K = J.byteOffset;
4401
+ R = !1, K = J.byteOffset;
4401
4402
  else {
4402
- if (y = !0, K = cQ(), !K)
4403
+ if (R = !0, K = cQ(), !K)
4403
4404
  throw new M.ErrnoError(48);
4404
4405
  J && ((E > 0 || E + I < J.length) && (J.subarray ? J = J.subarray(E, E + I) : J = Array.prototype.slice.call(J, E, E + I)), W.set(J, K));
4405
4406
  }
4406
- return { ptr: K, allocated: y };
4407
+ return { ptr: K, allocated: R };
4407
4408
  }, msync(B, I, E, G, N) {
4408
4409
  return m.stream_ops.write(B, I, 0, G, E, !1), 0;
4409
4410
  } } }, zC = async (B) => {
@@ -4417,17 +4418,17 @@ var PB = (() => {
4417
4418
  return vC.forEach((K) => {
4418
4419
  N || K.canHandle(I) && (K.handle(B, I, E, G), N = !0);
4419
4420
  }), N;
4420
- }, lC = (B, I, E, G, N, K, y, J, S, T) => {
4421
+ }, lC = (B, I, E, G, N, K, R, J, a, T) => {
4421
4422
  var x = I ? Fg.resolve(BA.join2(B, I)) : B;
4422
4423
  function l(p) {
4423
4424
  function b(Z) {
4424
- T == null || T(), J || VC(B, I, Z, G, N, S), K == null || K(), xg();
4425
+ T == null || T(), J || VC(B, I, Z, G, N, a), K == null || K(), xg();
4425
4426
  }
4426
4427
  OC(p, x, b, () => {
4427
- y == null || y(), xg();
4428
+ R == null || R(), xg();
4428
4429
  }) || b(p);
4429
4430
  }
4430
- ng(), typeof E == "string" ? zC(E).then(l, y) : l(E);
4431
+ ng(), typeof E == "string" ? zC(E).then(l, R) : l(E);
4431
4432
  }, tE = (B) => {
4432
4433
  var I = { r: 0, "r+": 2, w: 577, "w+": 578, a: 1089, "a+": 1090 }, E = I[B];
4433
4434
  if (typeof E > "u")
@@ -4498,18 +4499,18 @@ var PB = (() => {
4498
4499
  throw new M.ErrnoError(44);
4499
4500
  I.follow_mount ?? (I.follow_mount = !0), BA.isAbs(B) || (B = M.cwd() + "/" + B);
4500
4501
  A: for (var E = 0; E < 40; E++) {
4501
- for (var G = B.split("/").filter((T) => !!T), N = M.root, K = "/", y = 0; y < G.length; y++) {
4502
- var J = y === G.length - 1;
4502
+ for (var G = B.split("/").filter((T) => !!T), N = M.root, K = "/", R = 0; R < G.length; R++) {
4503
+ var J = R === G.length - 1;
4503
4504
  if (J && I.parent)
4504
4505
  break;
4505
- if (G[y] !== ".") {
4506
- if (G[y] === "..") {
4506
+ if (G[R] !== ".") {
4507
+ if (G[R] === "..") {
4507
4508
  K = BA.dirname(K), N = N.parent;
4508
4509
  continue;
4509
4510
  }
4510
- K = BA.join2(K, G[y]);
4511
+ K = BA.join2(K, G[R]);
4511
4512
  try {
4512
- N = M.lookupNode(N, G[y]);
4513
+ N = M.lookupNode(N, G[R]);
4513
4514
  } catch (T) {
4514
4515
  if ((T == null ? void 0 : T.errno) === 44 && J && I.noent_okay)
4515
4516
  return { path: K };
@@ -4518,8 +4519,8 @@ var PB = (() => {
4518
4519
  if (M.isMountpoint(N) && (!J || I.follow_mount) && (N = N.mounted.root), M.isLink(N.mode) && (!J || I.follow)) {
4519
4520
  if (!N.node_ops.readlink)
4520
4521
  throw new M.ErrnoError(52);
4521
- var S = N.node_ops.readlink(N);
4522
- BA.isAbs(S) || (S = BA.dirname(K) + "/" + S), B = S + "/" + G.slice(y + 1).join("/");
4522
+ var a = N.node_ops.readlink(N);
4523
+ BA.isAbs(a) || (a = BA.dirname(K) + "/" + a), B = a + "/" + G.slice(R + 1).join("/");
4523
4524
  continue A;
4524
4525
  }
4525
4526
  }
@@ -4665,41 +4666,41 @@ var PB = (() => {
4665
4666
  }, syncfs(B, I) {
4666
4667
  typeof B == "function" && (I = B, B = !1), M.syncFSRequests++, M.syncFSRequests > 1 && O(`warning: ${M.syncFSRequests} FS.syncfs operations in flight at once, probably just doing extra work`);
4667
4668
  var E = M.getMounts(M.root.mount), G = 0;
4668
- function N(y) {
4669
- return M.syncFSRequests--, I(y);
4669
+ function N(R) {
4670
+ return M.syncFSRequests--, I(R);
4670
4671
  }
4671
- function K(y) {
4672
- if (y)
4673
- return K.errored ? void 0 : (K.errored = !0, N(y));
4672
+ function K(R) {
4673
+ if (R)
4674
+ return K.errored ? void 0 : (K.errored = !0, N(R));
4674
4675
  ++G >= E.length && N(null);
4675
4676
  }
4676
- E.forEach((y) => {
4677
- if (!y.type.syncfs)
4677
+ E.forEach((R) => {
4678
+ if (!R.type.syncfs)
4678
4679
  return K(null);
4679
- y.type.syncfs(y, B, K);
4680
+ R.type.syncfs(R, B, K);
4680
4681
  });
4681
4682
  }, mount(B, I, E) {
4682
4683
  var G = E === "/", N = !E, K;
4683
4684
  if (G && M.root)
4684
4685
  throw new M.ErrnoError(10);
4685
4686
  if (!G && !N) {
4686
- var y = M.lookupPath(E, { follow_mount: !1 });
4687
- if (E = y.path, K = y.node, M.isMountpoint(K))
4687
+ var R = M.lookupPath(E, { follow_mount: !1 });
4688
+ if (E = R.path, K = R.node, M.isMountpoint(K))
4688
4689
  throw new M.ErrnoError(10);
4689
4690
  if (!M.isDir(K.mode))
4690
4691
  throw new M.ErrnoError(54);
4691
4692
  }
4692
- var J = { type: B, opts: I, mountpoint: E, mounts: [] }, S = B.mount(J);
4693
- return S.mount = J, J.root = S, G ? M.root = S : K && (K.mounted = J, K.mount && K.mount.mounts.push(J)), S;
4693
+ var J = { type: B, opts: I, mountpoint: E, mounts: [] }, a = B.mount(J);
4694
+ return a.mount = J, J.root = a, G ? M.root = a : K && (K.mounted = J, K.mount && K.mount.mounts.push(J)), a;
4694
4695
  }, unmount(B) {
4695
4696
  var I = M.lookupPath(B, { follow_mount: !1 });
4696
4697
  if (!M.isMountpoint(I.node))
4697
4698
  throw new M.ErrnoError(28);
4698
4699
  var E = I.node, G = E.mounted, N = M.getMounts(G);
4699
- Object.keys(M.nameTable).forEach((y) => {
4700
- for (var J = M.nameTable[y]; J; ) {
4701
- var S = J.name_next;
4702
- N.includes(J.mount) && M.destroyNode(J), J = S;
4700
+ Object.keys(M.nameTable).forEach((R) => {
4701
+ for (var J = M.nameTable[R]; J; ) {
4702
+ var a = J.name_next;
4703
+ N.includes(J.mount) && M.destroyNode(J), J = a;
4703
4704
  }
4704
4705
  }), E.mounted = null;
4705
4706
  var K = E.mount.mounts.indexOf(G);
@@ -4712,9 +4713,9 @@ var PB = (() => {
4712
4713
  throw new M.ErrnoError(28);
4713
4714
  if (K === "." || K === "..")
4714
4715
  throw new M.ErrnoError(20);
4715
- var y = M.mayCreate(N, K);
4716
- if (y)
4717
- throw new M.ErrnoError(y);
4716
+ var R = M.mayCreate(N, K);
4717
+ if (R)
4718
+ throw new M.ErrnoError(R);
4718
4719
  if (!N.node_ops.mknod)
4719
4720
  throw new M.ErrnoError(63);
4720
4721
  return N.node_ops.mknod(N, K, I, E);
@@ -4754,9 +4755,9 @@ var PB = (() => {
4754
4755
  throw new M.ErrnoError(63);
4755
4756
  return G.node_ops.symlink(G, N, B);
4756
4757
  }, rename(B, I) {
4757
- var E = BA.dirname(B), G = BA.dirname(I), N = BA.basename(B), K = BA.basename(I), y, J, S;
4758
- if (y = M.lookupPath(B, { parent: !0 }), J = y.node, y = M.lookupPath(I, { parent: !0 }), S = y.node, !J || !S) throw new M.ErrnoError(44);
4759
- if (J.mount !== S.mount)
4758
+ var E = BA.dirname(B), G = BA.dirname(I), N = BA.basename(B), K = BA.basename(I), R, J, a;
4759
+ if (R = M.lookupPath(B, { parent: !0 }), J = R.node, R = M.lookupPath(I, { parent: !0 }), a = R.node, !J || !a) throw new M.ErrnoError(44);
4760
+ if (J.mount !== a.mount)
4760
4761
  throw new M.ErrnoError(75);
4761
4762
  var T = M.lookupNode(J, N), x = Fg.relative(B, G);
4762
4763
  if (x.charAt(0) !== ".")
@@ -4765,24 +4766,24 @@ var PB = (() => {
4765
4766
  throw new M.ErrnoError(55);
4766
4767
  var l;
4767
4768
  try {
4768
- l = M.lookupNode(S, K);
4769
+ l = M.lookupNode(a, K);
4769
4770
  } catch {
4770
4771
  }
4771
4772
  if (T !== l) {
4772
4773
  var p = M.isDir(T.mode), b = M.mayDelete(J, N, p);
4773
4774
  if (b)
4774
4775
  throw new M.ErrnoError(b);
4775
- if (b = l ? M.mayDelete(S, K, p) : M.mayCreate(S, K), b)
4776
+ if (b = l ? M.mayDelete(a, K, p) : M.mayCreate(a, K), b)
4776
4777
  throw new M.ErrnoError(b);
4777
4778
  if (!J.node_ops.rename)
4778
4779
  throw new M.ErrnoError(63);
4779
4780
  if (M.isMountpoint(T) || l && M.isMountpoint(l))
4780
4781
  throw new M.ErrnoError(10);
4781
- if (S !== J && (b = M.nodePermissions(J, "w"), b))
4782
+ if (a !== J && (b = M.nodePermissions(J, "w"), b))
4782
4783
  throw new M.ErrnoError(b);
4783
4784
  M.hashRemoveNode(T);
4784
4785
  try {
4785
- J.node_ops.rename(T, S, K), T.parent = S;
4786
+ J.node_ops.rename(T, a, K), T.parent = a;
4786
4787
  } catch (Z) {
4787
4788
  throw Z;
4788
4789
  } finally {
@@ -4897,7 +4898,7 @@ var PB = (() => {
4897
4898
  var K = M.lookupPath(B, { follow: !(I & 131072), noent_okay: !0 });
4898
4899
  G = K.node, B = K.path;
4899
4900
  }
4900
- var y = !1;
4901
+ var R = !1;
4901
4902
  if (I & 64)
4902
4903
  if (G) {
4903
4904
  if (I & 128)
@@ -4905,20 +4906,20 @@ var PB = (() => {
4905
4906
  } else {
4906
4907
  if (N)
4907
4908
  throw new M.ErrnoError(31);
4908
- G = M.mknod(B, E | 511, 0), y = !0;
4909
+ G = M.mknod(B, E | 511, 0), R = !0;
4909
4910
  }
4910
4911
  if (!G)
4911
4912
  throw new M.ErrnoError(44);
4912
4913
  if (M.isChrdev(G.mode) && (I &= -513), I & 65536 && !M.isDir(G.mode))
4913
4914
  throw new M.ErrnoError(54);
4914
- if (!y) {
4915
+ if (!R) {
4915
4916
  var J = M.mayOpen(G, I);
4916
4917
  if (J)
4917
4918
  throw new M.ErrnoError(J);
4918
4919
  }
4919
- I & 512 && !y && M.truncate(G, 0), I &= -131713;
4920
- var S = M.createStream({ node: G, path: M.getPath(G), flags: I, seekable: !0, position: 0, stream_ops: G.stream_ops, ungotten: [], error: !1 });
4921
- return S.stream_ops.open && S.stream_ops.open(S), y && M.chmod(G, E & 511), Q.logReadFiles && !(I & 1) && (B in M.readFiles || (M.readFiles[B] = 1)), S;
4920
+ I & 512 && !R && M.truncate(G, 0), I &= -131713;
4921
+ var a = M.createStream({ node: G, path: M.getPath(G), flags: I, seekable: !0, position: 0, stream_ops: G.stream_ops, ungotten: [], error: !1 });
4922
+ return a.stream_ops.open && a.stream_ops.open(a), R && M.chmod(G, E & 511), Q.logReadFiles && !(I & 1) && (B in M.readFiles || (M.readFiles[B] = 1)), a;
4922
4923
  }, close(B) {
4923
4924
  if (M.isClosed(B))
4924
4925
  throw new M.ErrnoError(8);
@@ -4957,8 +4958,8 @@ var PB = (() => {
4957
4958
  N = B.position;
4958
4959
  else if (!B.seekable)
4959
4960
  throw new M.ErrnoError(70);
4960
- var y = B.stream_ops.read(B, I, E, G, N);
4961
- return K || (B.position += y), y;
4961
+ var R = B.stream_ops.read(B, I, E, G, N);
4962
+ return K || (B.position += R), R;
4962
4963
  }, write(B, I, E, G, N, K) {
4963
4964
  if (G < 0 || N < 0)
4964
4965
  throw new M.ErrnoError(28);
@@ -4971,13 +4972,13 @@ var PB = (() => {
4971
4972
  if (!B.stream_ops.write)
4972
4973
  throw new M.ErrnoError(28);
4973
4974
  B.seekable && B.flags & 1024 && M.llseek(B, 0, 2);
4974
- var y = typeof N < "u";
4975
- if (!y)
4975
+ var R = typeof N < "u";
4976
+ if (!R)
4976
4977
  N = B.position;
4977
4978
  else if (!B.seekable)
4978
4979
  throw new M.ErrnoError(70);
4979
4980
  var J = B.stream_ops.write(B, I, E, G, N, K);
4980
- return y || (B.position += J), J;
4981
+ return R || (B.position += J), J;
4981
4982
  }, allocate(B, I, E) {
4982
4983
  if (M.isClosed(B))
4983
4984
  throw new M.ErrnoError(8);
@@ -5009,8 +5010,8 @@ var PB = (() => {
5009
5010
  }, readFile(B, I = {}) {
5010
5011
  if (I.flags = I.flags || 0, I.encoding = I.encoding || "binary", I.encoding !== "utf8" && I.encoding !== "binary")
5011
5012
  throw new Error(`Invalid encoding type "${I.encoding}"`);
5012
- var E, G = M.open(B, I.flags), N = M.stat(B), K = N.size, y = new Uint8Array(K);
5013
- return M.read(G, y, 0, K, 0), I.encoding === "utf8" ? E = Ug(y) : I.encoding === "binary" && (E = y), M.close(G), E;
5013
+ var E, G = M.open(B, I.flags), N = M.stat(B), K = N.size, R = new Uint8Array(K);
5014
+ return M.read(G, R, 0, K, 0), I.encoding === "utf8" ? E = Ug(R) : I.encoding === "binary" && (E = R), M.close(G), E;
5014
5015
  }, writeFile(B, I, E = {}) {
5015
5016
  E.flags = E.flags || 577;
5016
5017
  var G = M.open(B, E.flags, E.mode);
@@ -5035,8 +5036,8 @@ var PB = (() => {
5035
5036
  }, createDefaultDirectories() {
5036
5037
  M.mkdir("/tmp"), M.mkdir("/home"), M.mkdir("/home/web_user");
5037
5038
  }, createDefaultDevices() {
5038
- M.mkdir("/dev"), M.registerDevice(M.makedev(1, 3), { read: () => 0, write: (G, N, K, y, J) => y, llseek: () => 0 }), M.mkdev("/dev/null", M.makedev(1, 3)), Eg.register(M.makedev(5, 0), Eg.default_tty_ops), Eg.register(M.makedev(6, 0), Eg.default_tty1_ops), M.mkdev("/dev/tty", M.makedev(5, 0)), M.mkdev("/dev/tty1", M.makedev(6, 0));
5039
- var B = new Uint8Array(1024), I = 0, E = () => (I === 0 && (SQ(B), I = B.byteLength), B[--I]);
5039
+ M.mkdir("/dev"), M.registerDevice(M.makedev(1, 3), { read: () => 0, write: (G, N, K, R, J) => R, llseek: () => 0 }), M.mkdev("/dev/null", M.makedev(1, 3)), Eg.register(M.makedev(5, 0), Eg.default_tty_ops), Eg.register(M.makedev(6, 0), Eg.default_tty1_ops), M.mkdev("/dev/tty", M.makedev(5, 0)), M.mkdev("/dev/tty1", M.makedev(6, 0));
5040
+ var B = new Uint8Array(1024), I = 0, E = () => (I === 0 && (aQ(B), I = B.byteLength), B[--I]);
5040
5041
  M.createDevice("/dev", "random", E), M.createDevice("/dev", "urandom", E), M.mkdir("/dev/shm"), M.mkdir("/dev/shm/tmp");
5041
5042
  }, createSpecialDirectories() {
5042
5043
  M.mkdir("/proc");
@@ -5044,8 +5045,8 @@ var PB = (() => {
5044
5045
  M.mkdir("/proc/self/fd"), M.mount({ mount() {
5045
5046
  var I = M.createNode(B, "fd", 16895, 73);
5046
5047
  return I.stream_ops = { llseek: m.stream_ops.llseek }, I.node_ops = { lookup(E, G) {
5047
- var N = +G, K = M.getStreamChecked(N), y = { parent: null, mount: { mountpoint: "fake" }, node_ops: { readlink: () => K.path }, id: N + 1 };
5048
- return y.parent = y, y;
5048
+ var N = +G, K = M.getStreamChecked(N), R = { parent: null, mount: { mountpoint: "fake" }, node_ops: { readlink: () => K.path }, id: N + 1 };
5049
+ return R.parent = R, R;
5049
5050
  }, readdir() {
5050
5051
  return Array.from(M.streams.entries()).filter(([E, G]) => G).map(([E, G]) => E.toString());
5051
5052
  } }, I;
@@ -5084,41 +5085,41 @@ var PB = (() => {
5084
5085
  for (var N = I.split("/").reverse(); N.length; ) {
5085
5086
  var K = N.pop();
5086
5087
  if (K) {
5087
- var y = BA.join2(B, K);
5088
+ var R = BA.join2(B, K);
5088
5089
  try {
5089
- M.mkdir(y);
5090
+ M.mkdir(R);
5090
5091
  } catch {
5091
5092
  }
5092
- B = y;
5093
+ B = R;
5093
5094
  }
5094
5095
  }
5095
- return y;
5096
+ return R;
5096
5097
  }, createFile(B, I, E, G, N) {
5097
- var K = BA.join2(typeof B == "string" ? B : M.getPath(B), I), y = bC(G, N);
5098
- return M.create(K, y);
5098
+ var K = BA.join2(typeof B == "string" ? B : M.getPath(B), I), R = bC(G, N);
5099
+ return M.create(K, R);
5099
5100
  }, createDataFile(B, I, E, G, N, K) {
5100
- var y = I;
5101
- B && (B = typeof B == "string" ? B : M.getPath(B), y = I ? BA.join2(B, I) : B);
5102
- var J = bC(G, N), S = M.create(y, J);
5101
+ var R = I;
5102
+ B && (B = typeof B == "string" ? B : M.getPath(B), R = I ? BA.join2(B, I) : B);
5103
+ var J = bC(G, N), a = M.create(R, J);
5103
5104
  if (E) {
5104
5105
  if (typeof E == "string") {
5105
5106
  for (var T = new Array(E.length), x = 0, l = E.length; x < l; ++x) T[x] = E.charCodeAt(x);
5106
5107
  E = T;
5107
5108
  }
5108
- M.chmod(S, J | 146);
5109
- var p = M.open(S, 577);
5110
- M.write(p, E, 0, E.length, 0, K), M.close(p), M.chmod(S, J);
5109
+ M.chmod(a, J | 146);
5110
+ var p = M.open(a, 577);
5111
+ M.write(p, E, 0, E.length, 0, K), M.close(p), M.chmod(a, J);
5111
5112
  }
5112
5113
  }, createDevice(B, I, E, G) {
5113
- var N, K = BA.join2(typeof B == "string" ? B : M.getPath(B), I), y = bC(!!E, !!G);
5114
+ var N, K = BA.join2(typeof B == "string" ? B : M.getPath(B), I), R = bC(!!E, !!G);
5114
5115
  (N = M.createDevice).major ?? (N.major = 64);
5115
5116
  var J = M.makedev(M.createDevice.major++, 0);
5116
- return M.registerDevice(J, { open(S) {
5117
- S.seekable = !1;
5118
- }, close(S) {
5117
+ return M.registerDevice(J, { open(a) {
5118
+ a.seekable = !1;
5119
+ }, close(a) {
5119
5120
  var T;
5120
5121
  (T = G == null ? void 0 : G.buffer) != null && T.length && G(10);
5121
- }, read(S, T, x, l, p) {
5122
+ }, read(a, T, x, l, p) {
5122
5123
  for (var b = 0, Z = 0; Z < l; Z++) {
5123
5124
  var gA;
5124
5125
  try {
@@ -5131,22 +5132,22 @@ var PB = (() => {
5131
5132
  if (gA == null) break;
5132
5133
  b++, T[x + Z] = gA;
5133
5134
  }
5134
- return b && (S.node.atime = Date.now()), b;
5135
- }, write(S, T, x, l, p) {
5135
+ return b && (a.node.atime = Date.now()), b;
5136
+ }, write(a, T, x, l, p) {
5136
5137
  for (var b = 0; b < l; b++)
5137
5138
  try {
5138
5139
  G(T[x + b]);
5139
5140
  } catch {
5140
5141
  throw new M.ErrnoError(29);
5141
5142
  }
5142
- return l && (S.node.mtime = S.node.ctime = Date.now()), b;
5143
- } }), M.mkdev(K, y, J);
5143
+ return l && (a.node.mtime = a.node.ctime = Date.now()), b;
5144
+ } }), M.mkdev(K, R, J);
5144
5145
  }, forceLoadFile(B) {
5145
5146
  if (B.isDevice || B.isFolder || B.link || B.contents) return !0;
5146
5147
  if (typeof XMLHttpRequest < "u")
5147
5148
  throw new Error("Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread.");
5148
5149
  try {
5149
- B.contents = s(B.url), B.usedBytes = B.contents.length;
5150
+ B.contents = S(B.url), B.usedBytes = B.contents.length;
5150
5151
  } catch {
5151
5152
  throw new M.ErrnoError(29);
5152
5153
  }
@@ -5174,7 +5175,7 @@ var PB = (() => {
5174
5175
  if (og > Z - 1) throw new Error("only " + Z + " bytes available! programmer error!");
5175
5176
  var NA = new XMLHttpRequest();
5176
5177
  if (NA.open("GET", E, !1), Z !== UA && NA.setRequestHeader("Range", "bytes=" + fA + "-" + og), NA.responseType = "arraybuffer", NA.overrideMimeType && NA.overrideMimeType("text/plain; charset=x-user-defined"), NA.send(null), !(NA.status >= 200 && NA.status < 300 || NA.status === 304)) throw new Error("Couldn't load " + E + ". Status: " + NA.status);
5177
- return NA.response !== void 0 ? new Uint8Array(NA.response || []) : sQ(NA.responseText || "");
5178
+ return NA.response !== void 0 ? new Uint8Array(NA.response || []) : SQ(NA.responseText || "");
5178
5179
  }, LA = this;
5179
5180
  LA.setDataGetter((fA) => {
5180
5181
  var og = fA * UA, NA = (fA + 1) * UA - 1;
@@ -5191,17 +5192,17 @@ var PB = (() => {
5191
5192
  }
5192
5193
  if (typeof XMLHttpRequest < "u") {
5193
5194
  if (!U) throw "Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";
5194
- var y = new K(), J = { isDevice: !1, contents: y };
5195
+ var R = new K(), J = { isDevice: !1, contents: R };
5195
5196
  } else
5196
5197
  var J = { isDevice: !1, url: E };
5197
- var S = M.createFile(B, I, J, G, N);
5198
- J.contents ? S.contents = J.contents : J.url && (S.contents = null, S.url = J.url), Object.defineProperties(S, { usedBytes: { get: function() {
5198
+ var a = M.createFile(B, I, J, G, N);
5199
+ J.contents ? a.contents = J.contents : J.url && (a.contents = null, a.url = J.url), Object.defineProperties(a, { usedBytes: { get: function() {
5199
5200
  return this.contents.length;
5200
5201
  } } });
5201
- var T = {}, x = Object.keys(S.stream_ops);
5202
+ var T = {}, x = Object.keys(a.stream_ops);
5202
5203
  x.forEach((p) => {
5203
- var b = S.stream_ops[p];
5204
- T[p] = (...Z) => (M.forceLoadFile(S), b(...Z));
5204
+ var b = a.stream_ops[p];
5205
+ T[p] = (...Z) => (M.forceLoadFile(a), b(...Z));
5205
5206
  });
5206
5207
  function l(p, b, Z, gA, kA) {
5207
5208
  var wA = p.node.contents;
@@ -5215,13 +5216,13 @@ var PB = (() => {
5215
5216
  b[Z + KA] = wA.get(kA + KA);
5216
5217
  return UA;
5217
5218
  }
5218
- return T.read = (p, b, Z, gA, kA) => (M.forceLoadFile(S), l(p, b, Z, gA, kA)), T.mmap = (p, b, Z, gA, kA) => {
5219
- M.forceLoadFile(S);
5219
+ return T.read = (p, b, Z, gA, kA) => (M.forceLoadFile(a), l(p, b, Z, gA, kA)), T.mmap = (p, b, Z, gA, kA) => {
5220
+ M.forceLoadFile(a);
5220
5221
  var wA = cQ();
5221
5222
  if (!wA)
5222
5223
  throw new M.ErrnoError(48);
5223
5224
  return l(p, W, wA, b, Z), { ptr: wA, allocated: !0 };
5224
- }, S.stream_ops = T, S;
5225
+ }, a.stream_ops = T, a;
5225
5226
  } }, GA = { DEFAULT_POLLMASK: 5, calculateAt(B, I, E) {
5226
5227
  if (BA.isAbs(I))
5227
5228
  return I;
@@ -5282,8 +5283,8 @@ var PB = (() => {
5282
5283
  return G.flags |= N, 0;
5283
5284
  }
5284
5285
  case 12: {
5285
- var N = Kg(), y = 0;
5286
- return EA[N + y >> 1] = 2, 0;
5286
+ var N = Kg(), R = 0;
5287
+ return EA[N + R >> 1] = 2, 0;
5287
5288
  }
5288
5289
  case 13:
5289
5290
  case 14:
@@ -5315,8 +5316,8 @@ var PB = (() => {
5315
5316
  if (G.tty.ops.ioctl_tcgets) {
5316
5317
  var N = G.tty.ops.ioctl_tcgets(G), K = Kg();
5317
5318
  d[K >> 2] = N.c_iflag || 0, d[K + 4 >> 2] = N.c_oflag || 0, d[K + 8 >> 2] = N.c_cflag || 0, d[K + 12 >> 2] = N.c_lflag || 0;
5318
- for (var y = 0; y < 32; y++)
5319
- W[K + y + 17] = N.c_cc[y] || 0;
5319
+ for (var R = 0; R < 32; R++)
5320
+ W[K + R + 17] = N.c_cc[R] || 0;
5320
5321
  return 0;
5321
5322
  }
5322
5323
  return 0;
@@ -5330,9 +5331,9 @@ var PB = (() => {
5330
5331
  case 21508: {
5331
5332
  if (!G.tty) return -59;
5332
5333
  if (G.tty.ops.ioctl_tcsets) {
5333
- for (var K = Kg(), J = d[K >> 2], S = d[K + 4 >> 2], T = d[K + 8 >> 2], x = d[K + 12 >> 2], l = [], y = 0; y < 32; y++)
5334
- l.push(W[K + y + 17]);
5335
- return G.tty.ops.ioctl_tcsets(G.tty, I, { c_iflag: J, c_oflag: S, c_cflag: T, c_lflag: x, c_cc: l });
5334
+ for (var K = Kg(), J = d[K >> 2], a = d[K + 4 >> 2], T = d[K + 8 >> 2], x = d[K + 12 >> 2], l = [], R = 0; R < 32; R++)
5335
+ l.push(W[K + R + 17]);
5336
+ return G.tty.ops.ioctl_tcsets(G.tty, I, { c_iflag: J, c_oflag: a, c_cflag: T, c_lflag: x, c_cc: l });
5336
5337
  }
5337
5338
  return 0;
5338
5339
  }
@@ -5380,9 +5381,9 @@ var PB = (() => {
5380
5381
  I = GA.getStr(I);
5381
5382
  var N = G & 256, K = G & 4096;
5382
5383
  return G = G & -6401, I = GA.calculateAt(B, I, K), GA.writeStat(E, N ? M.lstat(I) : M.stat(I));
5383
- } catch (y) {
5384
- if (typeof M > "u" || y.name !== "ErrnoError") throw y;
5385
- return -y.errno;
5384
+ } catch (R) {
5385
+ if (typeof M > "u" || R.name !== "ErrnoError") throw R;
5386
+ return -R.errno;
5386
5387
  }
5387
5388
  }
5388
5389
  function vE(B, I, E, G) {
@@ -5419,20 +5420,20 @@ var PB = (() => {
5419
5420
  return I;
5420
5421
  }, fg = {}, zg = {}, TQ = {}, kQ, X = (B) => {
5421
5422
  throw new kQ(B);
5422
- }, iB, xQ = (B) => {
5423
- throw new iB(B);
5423
+ }, yB, xQ = (B) => {
5424
+ throw new yB(B);
5424
5425
  }, dQ = (B, I, E) => {
5425
5426
  B.forEach((J) => TQ[J] = I);
5426
5427
  function G(J) {
5427
- var S = E(J);
5428
- S.length !== B.length && xQ("Mismatched type converter count");
5428
+ var a = E(J);
5429
+ a.length !== B.length && xQ("Mismatched type converter count");
5429
5430
  for (var T = 0; T < B.length; ++T)
5430
- XA(B[T], S[T]);
5431
+ XA(B[T], a[T]);
5431
5432
  }
5432
- var N = new Array(I.length), K = [], y = 0;
5433
- I.forEach((J, S) => {
5434
- zg.hasOwnProperty(J) ? N[S] = zg[J] : (K.push(J), fg.hasOwnProperty(J) || (fg[J] = []), fg[J].push(() => {
5435
- N[S] = zg[J], ++y, y === K.length && G(N);
5433
+ var N = new Array(I.length), K = [], R = 0;
5434
+ I.forEach((J, a) => {
5435
+ zg.hasOwnProperty(J) ? N[a] = zg[J] : (K.push(J), fg.hasOwnProperty(J) || (fg[J] = []), fg[J].push(() => {
5436
+ N[a] = zg[J], ++R, R === K.length && G(N);
5436
5437
  }));
5437
5438
  }), K.length === 0 && G(N);
5438
5439
  };
@@ -5451,7 +5452,7 @@ var PB = (() => {
5451
5452
  function XA(B, I, E = {}) {
5452
5453
  return nE(B, I, E);
5453
5454
  }
5454
- var yB = (B, I, E) => {
5455
+ var RB = (B, I, E) => {
5455
5456
  switch (I) {
5456
5457
  case 1:
5457
5458
  return E ? (G) => W[G] : (G) => AA[G];
@@ -5467,11 +5468,11 @@ var PB = (() => {
5467
5468
  }, ZE = (B, I, E, G, N) => {
5468
5469
  I = hA(I);
5469
5470
  var K = I.indexOf("u") != -1;
5470
- XA(B, { name: I, fromWireType: (y) => y, toWireType: function(y, J) {
5471
+ XA(B, { name: I, fromWireType: (R) => R, toWireType: function(R, J) {
5471
5472
  if (typeof J != "bigint" && typeof J != "number")
5472
5473
  throw new TypeError(`Cannot convert "${tQ(J)}" to ${this.name}`);
5473
5474
  return typeof J == "number" && (J = BigInt(J)), J;
5474
- }, argPackAdvance: gg, readValueFromPointer: yB(I, E, !K), destructorFunction: null });
5475
+ }, argPackAdvance: gg, readValueFromPointer: RB(I, E, !K), destructorFunction: null });
5475
5476
  }, gg = 8, fE = (B, I, E, G) => {
5476
5477
  I = hA(I), XA(B, { name: I, fromWireType: function(N) {
5477
5478
  return !!N;
@@ -5485,7 +5486,7 @@ var PB = (() => {
5485
5486
  return E.$$.ptrType.registeredClass.name;
5486
5487
  }
5487
5488
  X(I(B) + " instance already deleted");
5488
- }, ZC = !1, RB = (B) => {
5489
+ }, ZC = !1, iB = (B) => {
5489
5490
  }, pE = (B) => {
5490
5491
  B.smartPtr ? B.smartPtrType.rawDestructor(B.smartPtr) : B.ptrType.registeredClass.rawDestructor(B.ptr);
5491
5492
  }, hB = (B) => {
@@ -5522,13 +5523,13 @@ var PB = (() => {
5522
5523
  function N() {
5523
5524
  return this.isSmartPointer ? zQ(this.registeredClass.instancePrototype, { ptrType: this.pointeeType, ptr: I, smartPtrType: this, smartPtr: B }) : zQ(this.registeredClass.instancePrototype, { ptrType: this, ptr: B });
5524
5525
  }
5525
- var K = this.registeredClass.getActualType(I), y = LB[K];
5526
- if (!y)
5526
+ var K = this.registeredClass.getActualType(I), R = LB[K];
5527
+ if (!R)
5527
5528
  return N.call(this);
5528
5529
  var J;
5529
- this.isConst ? J = y.constPointerType : J = y.pointerType;
5530
- var S = JB(I, this.registeredClass, J.registeredClass);
5531
- return S === null ? N.call(this) : this.isSmartPointer ? zQ(J.registeredClass.instancePrototype, { ptrType: J, ptr: S, smartPtrType: this, smartPtr: B }) : zQ(J.registeredClass.instancePrototype, { ptrType: J, ptr: S });
5530
+ this.isConst ? J = R.constPointerType : J = R.pointerType;
5531
+ var a = JB(I, this.registeredClass, J.registeredClass);
5532
+ return a === null ? N.call(this) : this.isSmartPointer ? zQ(J.registeredClass.instancePrototype, { ptrType: J, ptr: a, smartPtrType: this, smartPtr: B }) : zQ(J.registeredClass.instancePrototype, { ptrType: J, ptr: a });
5532
5533
  }
5533
5534
  var UQ = (B) => typeof FinalizationRegistry > "u" ? (UQ = (I) => I, B) : (ZC = new FinalizationRegistry((I) => {
5534
5535
  hB(I.$$);
@@ -5539,7 +5540,7 @@ var PB = (() => {
5539
5540
  ZC.register(I, N, I);
5540
5541
  }
5541
5542
  return I;
5542
- }, RB = (I) => ZC.unregister(I), UQ(B)), rE = () => {
5543
+ }, iB = (I) => ZC.unregister(I), UQ(B)), rE = () => {
5543
5544
  Object.assign(VQ.prototype, { isAliasOf(B) {
5544
5545
  if (!(this instanceof VQ) || !(B instanceof VQ))
5545
5546
  return !1;
@@ -5556,7 +5557,7 @@ var PB = (() => {
5556
5557
  var B = UQ(Object.create(Object.getPrototypeOf(this), { $$: { value: qE(this.$$) } }));
5557
5558
  return B.$$.count.value += 1, B.$$.deleteScheduled = !1, B;
5558
5559
  }, delete() {
5559
- this.$$.ptr || nC(this), this.$$.deleteScheduled && !this.$$.preservePointerOnDelete && X("Object already scheduled for deletion"), RB(this), hB(this.$$), this.$$.preservePointerOnDelete || (this.$$.smartPtr = void 0, this.$$.ptr = void 0);
5560
+ this.$$.ptr || nC(this), this.$$.deleteScheduled && !this.$$.preservePointerOnDelete && X("Object already scheduled for deletion"), iB(this), hB(this.$$), this.$$.preservePointerOnDelete || (this.$$.smartPtr = void 0, this.$$.ptr = void 0);
5560
5561
  }, isDeleted() {
5561
5562
  return !this.$$.ptr;
5562
5563
  }, deleteLater() {
@@ -5579,8 +5580,8 @@ var PB = (() => {
5579
5580
  var I = B.charCodeAt(0);
5580
5581
  return I >= jE && I <= XE ? `_${B}` : B;
5581
5582
  };
5582
- function $E(B, I, E, G, N, K, y, J) {
5583
- this.name = B, this.constructor = I, this.instancePrototype = E, this.rawDestructor = G, this.baseClass = N, this.getActualType = K, this.upcast = y, this.downcast = J, this.pureVirtualFunctions = [];
5583
+ function $E(B, I, E, G, N, K, R, J) {
5584
+ this.name = B, this.constructor = I, this.instancePrototype = E, this.rawDestructor = G, this.baseClass = N, this.getActualType = K, this.upcast = R, this.downcast = J, this.pureVirtualFunctions = [];
5584
5585
  }
5585
5586
  var vQ = (B, I, E) => {
5586
5587
  for (; I !== E; )
@@ -5639,14 +5640,14 @@ var PB = (() => {
5639
5640
  (I = this.rawDestructor) == null || I.call(this, B);
5640
5641
  }, argPackAdvance: gg, readValueFromPointer: OQ, fromWireType: WE });
5641
5642
  };
5642
- function lQ(B, I, E, G, N, K, y, J, S, T, x) {
5643
- this.name = B, this.registeredClass = I, this.isReference = E, this.isConst = G, this.isSmartPointer = N, this.pointeeType = K, this.sharingPolicy = y, this.rawGetPointee = J, this.rawConstructor = S, this.rawShare = T, this.rawDestructor = x, !N && I.baseClass === void 0 ? G ? (this.toWireType = AD, this.destructorFunction = null) : (this.toWireType = QD, this.destructorFunction = null) : this.toWireType = gD;
5643
+ function lQ(B, I, E, G, N, K, R, J, a, T, x) {
5644
+ this.name = B, this.registeredClass = I, this.isReference = E, this.isConst = G, this.isSmartPointer = N, this.pointeeType = K, this.sharingPolicy = R, this.rawGetPointee = J, this.rawConstructor = a, this.rawShare = T, this.rawDestructor = x, !N && I.baseClass === void 0 ? G ? (this.toWireType = AD, this.destructorFunction = null) : (this.toWireType = QD, this.destructorFunction = null) : this.toWireType = gD;
5644
5645
  }
5645
5646
  var HB = (B, I, E) => {
5646
5647
  Q.hasOwnProperty(B) || xQ("Replacing nonexistent public symbol"), Q[B].overloadTable !== void 0 && E !== void 0 ? Q[B].overloadTable[E] = I : (Q[B] = I, Q[B].argCount = E);
5647
- }, bQ = [], aB, BD = (B) => {
5648
+ }, bQ = [], sB, BD = (B) => {
5648
5649
  var I = bQ[B];
5649
- return I || (B >= bQ.length && (bQ.length = B + 1), bQ[B] = I = aB.get(B)), I;
5650
+ return I || (B >= bQ.length && (bQ.length = B + 1), bQ[B] = I = sB.get(B)), I;
5650
5651
  }, Vg = (B, I) => {
5651
5652
  B = hA(B);
5652
5653
  function E() {
@@ -5664,9 +5665,9 @@ var PB = (() => {
5664
5665
  return E.prototype = Object.create(B.prototype), E.prototype.constructor = E, E.prototype.toString = function() {
5665
5666
  return this.message === void 0 ? this.name : `${this.name}: ${this.message}`;
5666
5667
  }, E;
5667
- }, SB, sB = (B) => {
5668
+ }, aB, SB = (B) => {
5668
5669
  var I = ho(B), E = hA(I);
5669
- return ig(I), E;
5670
+ return yg(I), E;
5670
5671
  }, nQ = (B, I) => {
5671
5672
  var E = [], G = {};
5672
5673
  function N(K) {
@@ -5678,9 +5679,9 @@ var PB = (() => {
5678
5679
  E.push(K), G[K] = !0;
5679
5680
  }
5680
5681
  }
5681
- throw I.forEach(N), new SB(`${B}: ` + E.map(sB).join([", "]));
5682
- }, ED = (B, I, E, G, N, K, y, J, S, T, x, l, p) => {
5683
- x = hA(x), K = Vg(N, K), J && (J = Vg(y, J)), T && (T = Vg(S, T)), p = Vg(l, p);
5682
+ throw I.forEach(N), new aB(`${B}: ` + E.map(SB).join([", "]));
5683
+ }, ED = (B, I, E, G, N, K, R, J, a, T, x, l, p) => {
5684
+ x = hA(x), K = Vg(N, K), J && (J = Vg(R, J)), T && (T = Vg(a, T)), p = Vg(l, p);
5684
5685
  var b = _E(x);
5685
5686
  fC(b, function() {
5686
5687
  nQ(`Cannot construct ${x} due to unbound types`, [G]);
@@ -5710,23 +5711,23 @@ var PB = (() => {
5710
5711
  var I = B.pop(), E = B.pop();
5711
5712
  E(I);
5712
5713
  }
5713
- }, cB = (B, I, E) => (B instanceof Object || X(`${E} with invalid "this": ${B}`), B instanceof I.registeredClass.constructor || X(`${E} incompatible with "this" of type ${B.constructor.name}`), B.$$.ptr || X(`cannot call emscripten binding method ${E} on deleted object`), vQ(B.$$.ptr, B.$$.ptrType.registeredClass, I.registeredClass)), DD = (B, I, E, G, N, K, y, J, S, T) => {
5714
+ }, cB = (B, I, E) => (B instanceof Object || X(`${E} with invalid "this": ${B}`), B instanceof I.registeredClass.constructor || X(`${E} incompatible with "this" of type ${B.constructor.name}`), B.$$.ptr || X(`cannot call emscripten binding method ${E} on deleted object`), vQ(B.$$.ptr, B.$$.ptrType.registeredClass, I.registeredClass)), DD = (B, I, E, G, N, K, R, J, a, T) => {
5714
5715
  I = hA(I), N = Vg(G, N), dQ([], [B], (x) => {
5715
5716
  x = x[0];
5716
5717
  var l = `${x.name}.${I}`, p = { get() {
5717
- nQ(`Cannot access ${l} due to unbound types`, [E, y]);
5718
+ nQ(`Cannot access ${l} due to unbound types`, [E, R]);
5718
5719
  }, enumerable: !0, configurable: !0 };
5719
- return S ? p.set = () => nQ(`Cannot access ${l} due to unbound types`, [E, y]) : p.set = (b) => X(l + " is a read-only property"), Object.defineProperty(x.registeredClass.instancePrototype, I, p), dQ([], S ? [E, y] : [E], (b) => {
5720
+ return a ? p.set = () => nQ(`Cannot access ${l} due to unbound types`, [E, R]) : p.set = (b) => X(l + " is a read-only property"), Object.defineProperty(x.registeredClass.instancePrototype, I, p), dQ([], a ? [E, R] : [E], (b) => {
5720
5721
  var Z = b[0], gA = { get() {
5721
5722
  var wA = cB(this, x, l + " getter");
5722
5723
  return Z.fromWireType(N(K, wA));
5723
5724
  }, enumerable: !0 };
5724
- if (S) {
5725
- S = Vg(J, S);
5725
+ if (a) {
5726
+ a = Vg(J, a);
5726
5727
  var kA = b[1];
5727
5728
  gA.set = function(wA) {
5728
5729
  var UA = cB(this, x, l + " setter"), KA = [];
5729
- S(T, UA, kA.toWireType(KA, wA)), qC(KA);
5730
+ a(T, UA, kA.toWireType(KA, wA)), qC(KA);
5730
5731
  };
5731
5732
  }
5732
5733
  return Object.defineProperty(x.registeredClass.instancePrototype, I, gA), [];
@@ -5783,10 +5784,10 @@ var PB = (() => {
5783
5784
  }
5784
5785
  N.values = {}, XA(B, { name: I, constructor: N, fromWireType: function(K) {
5785
5786
  return this.constructor.values[K];
5786
- }, toWireType: (K, y) => y.value, argPackAdvance: gg, readValueFromPointer: ND(I, E, G), destructorFunction: null }), fC(I, N);
5787
+ }, toWireType: (K, R) => R.value, argPackAdvance: gg, readValueFromPointer: ND(I, E, G), destructorFunction: null }), fC(I, N);
5787
5788
  }, mC = (B, I) => {
5788
5789
  var E = zg[B];
5789
- return E === void 0 && X(`${I} has unknown type ${sB(B)}`), E;
5790
+ return E === void 0 && X(`${I} has unknown type ${SB(B)}`), E;
5790
5791
  }, kD = (B, I, E) => {
5791
5792
  var G = mC(B, "enum");
5792
5793
  I = hA(I);
@@ -5797,7 +5798,7 @@ var PB = (() => {
5797
5798
  switch (I) {
5798
5799
  case 4:
5799
5800
  return function(E) {
5800
- return this.fromWireType(iA[E >> 2]);
5801
+ return this.fromWireType(yA[E >> 2]);
5801
5802
  };
5802
5803
  case 8:
5803
5804
  return function(E) {
@@ -5825,24 +5826,24 @@ var PB = (() => {
5825
5826
  return N instanceof Object ? N : G;
5826
5827
  }
5827
5828
  function FD(B, I, E, G) {
5828
- for (var N = tB(B), K = B.length - 2, y = [], J = ["fn"], S = 0; S < K; ++S)
5829
- y.push(`arg${S}`), J.push(`arg${S}Wired`);
5830
- y = y.join(","), J = J.join(",");
5831
- var T = `return function (${y}) {
5829
+ for (var N = tB(B), K = B.length - 2, R = [], J = ["fn"], a = 0; a < K; ++a)
5830
+ R.push(`arg${a}`), J.push(`arg${a}Wired`);
5831
+ R = R.join(","), J = J.join(",");
5832
+ var T = `return function (${R}) {
5832
5833
  `;
5833
5834
  N && (T += `var destructors = [];
5834
5835
  `);
5835
- for (var x = N ? "destructors" : "null", l = ["humanName", "throwBindingError", "invoker", "fn", "runDestructors", "retType", "classParam"], S = 0; S < K; ++S)
5836
- T += `var arg${S}Wired = argType${S}['toWireType'](${x}, arg${S});
5837
- `, l.push(`argType${S}`);
5836
+ for (var x = N ? "destructors" : "null", l = ["humanName", "throwBindingError", "invoker", "fn", "runDestructors", "retType", "classParam"], a = 0; a < K; ++a)
5837
+ T += `var arg${a}Wired = argType${a}['toWireType'](${x}, arg${a});
5838
+ `, l.push(`argType${a}`);
5838
5839
  if (T += (E || G ? "var rv = " : "") + `invoker(${J});
5839
5840
  `, N)
5840
5841
  T += `runDestructors(destructors);
5841
5842
  `;
5842
5843
  else
5843
- for (var S = 2; S < B.length; ++S) {
5844
- var p = S === 1 ? "thisWired" : "arg" + (S - 2) + "Wired";
5845
- B[S].destructorFunction !== null && (T += `${p}_dtor(${p});
5844
+ for (var a = 2; a < B.length; ++a) {
5845
+ var p = a === 1 ? "thisWired" : "arg" + (a - 2) + "Wired";
5846
+ B[a].destructorFunction !== null && (T += `${p}_dtor(${p});
5846
5847
  `, l.push(`${p}_dtor`));
5847
5848
  }
5848
5849
  return E && (T += `var ret = retType['fromWireType'](rv);
@@ -5850,12 +5851,12 @@ return ret;
5850
5851
  `), T += `}
5851
5852
  `, [l, T];
5852
5853
  }
5853
- function iD(B, I, E, G, N, K) {
5854
- var y = I.length;
5855
- y < 2 && X("argTypes array size mismatch! Must at least get return value and 'this' types!");
5856
- for (var J = I[1] !== null && E !== null, S = tB(I), T = I[0].name !== "void", x = [B, X, G, N, qC, I[0], I[1]], l = 0; l < y - 2; ++l)
5854
+ function yD(B, I, E, G, N, K) {
5855
+ var R = I.length;
5856
+ R < 2 && X("argTypes array size mismatch! Must at least get return value and 'this' types!");
5857
+ for (var J = I[1] !== null && E !== null, a = tB(I), T = I[0].name !== "void", x = [B, X, G, N, qC, I[0], I[1]], l = 0; l < R - 2; ++l)
5857
5858
  x.push(I[l + 2]);
5858
- if (!S)
5859
+ if (!a)
5859
5860
  for (var l = 2; l < I.length; ++l)
5860
5861
  I[l].destructorFunction !== null && x.push(I[l].destructorFunction);
5861
5862
  let [p, b] = FD(I, J, T, K);
@@ -5863,90 +5864,90 @@ return ret;
5863
5864
  var Z = TB(Function, p)(...x);
5864
5865
  return qg(B, Z);
5865
5866
  }
5866
- var yD = (B, I) => {
5867
+ var RD = (B, I) => {
5867
5868
  for (var E = [], G = 0; G < B; G++)
5868
5869
  E.push(e[I + G * 4 >> 2]);
5869
5870
  return E;
5870
- }, RD = (B) => {
5871
+ }, iD = (B) => {
5871
5872
  B = B.trim();
5872
5873
  const I = B.indexOf("(");
5873
5874
  return I === -1 ? B : B.slice(0, I);
5874
- }, hD = (B, I, E, G, N, K, y, J) => {
5875
- var S = yD(I, E);
5876
- B = hA(B), B = RD(B), N = Vg(G, N), fC(B, function() {
5877
- nQ(`Cannot call ${B} due to unbound types`, S);
5878
- }, I - 1), dQ([], S, (T) => {
5875
+ }, hD = (B, I, E, G, N, K, R, J) => {
5876
+ var a = RD(I, E);
5877
+ B = hA(B), B = iD(B), N = Vg(G, N), fC(B, function() {
5878
+ nQ(`Cannot call ${B} due to unbound types`, a);
5879
+ }, I - 1), dQ([], a, (T) => {
5879
5880
  var x = [T[0], null].concat(T.slice(1));
5880
- return HB(B, iD(B, x, null, N, K, y), I - 1), [];
5881
+ return HB(B, yD(B, x, null, N, K, R), I - 1), [];
5881
5882
  });
5882
5883
  }, JD = (B, I, E, G, N) => {
5883
5884
  I = hA(I);
5884
5885
  var K = (x) => x;
5885
5886
  if (G === 0) {
5886
- var y = 32 - 8 * E;
5887
- K = (x) => x << y >>> y;
5887
+ var R = 32 - 8 * E;
5888
+ K = (x) => x << R >>> R;
5888
5889
  }
5889
- var J = I.includes("unsigned"), S = (x, l) => {
5890
+ var J = I.includes("unsigned"), a = (x, l) => {
5890
5891
  }, T;
5891
5892
  J ? T = function(x, l) {
5892
- return S(l, this.name), l >>> 0;
5893
+ return a(l, this.name), l >>> 0;
5893
5894
  } : T = function(x, l) {
5894
- return S(l, this.name), l;
5895
- }, XA(B, { name: I, fromWireType: K, toWireType: T, argPackAdvance: gg, readValueFromPointer: yB(I, E, G !== 0), destructorFunction: null });
5895
+ return a(l, this.name), l;
5896
+ }, XA(B, { name: I, fromWireType: K, toWireType: T, argPackAdvance: gg, readValueFromPointer: RB(I, E, G !== 0), destructorFunction: null });
5896
5897
  }, LD = (B, I, E) => {
5897
5898
  var G = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array, BigInt64Array, BigUint64Array], N = G[I];
5898
- function K(y) {
5899
- var J = e[y >> 2], S = e[y + 4 >> 2];
5900
- return new N(W.buffer, S, J);
5899
+ function K(R) {
5900
+ var J = e[R >> 2], a = e[R + 4 >> 2];
5901
+ return new N(W.buffer, a, J);
5901
5902
  }
5902
5903
  E = hA(E), XA(B, { name: E, fromWireType: K, argPackAdvance: gg, readValueFromPointer: K }, { ignoreDuplicateRegistrations: !0 });
5903
5904
  }, vg = (B, I, E) => YQ(B, AA, I, E), HD = (B, I) => {
5904
5905
  I = hA(I), XA(B, { name: I, fromWireType(E) {
5905
- for (var G = e[E >> 2], N = E + 4, K, y, J = N, y = 0; y <= G; ++y) {
5906
- var S = N + y;
5907
- if (y == G || AA[S] == 0) {
5908
- var T = S - J, x = Ig(J, T);
5909
- K === void 0 ? K = x : (K += "\0", K += x), J = S + 1;
5906
+ for (var G = e[E >> 2], N = E + 4, K, R, J = N, R = 0; R <= G; ++R) {
5907
+ var a = N + R;
5908
+ if (R == G || AA[a] == 0) {
5909
+ var T = a - J, x = Ig(J, T);
5910
+ K === void 0 ? K = x : (K += "\0", K += x), J = a + 1;
5910
5911
  }
5911
5912
  }
5912
- return ig(E), K;
5913
+ return yg(E), K;
5913
5914
  }, toWireType(E, G) {
5914
5915
  G instanceof ArrayBuffer && (G = new Uint8Array(G));
5915
5916
  var N, K = typeof G == "string";
5916
5917
  K || G instanceof Uint8Array || G instanceof Uint8ClampedArray || G instanceof Int8Array || X("Cannot pass non-string to std::string"), K ? N = dg(G) : N = G.length;
5917
- var y = WC(4 + N + 1), J = y + 4;
5918
- if (e[y >> 2] = N, K)
5918
+ var R = WC(4 + N + 1), J = R + 4;
5919
+ if (e[R >> 2] = N, K)
5919
5920
  vg(G, J, N + 1);
5920
5921
  else if (K)
5921
- for (var S = 0; S < N; ++S) {
5922
- var T = G.charCodeAt(S);
5923
- T > 255 && (ig(y), X("String has UTF-16 code units that do not fit in 8 bits")), AA[J + S] = T;
5922
+ for (var a = 0; a < N; ++a) {
5923
+ var T = G.charCodeAt(a);
5924
+ T > 255 && (yg(R), X("String has UTF-16 code units that do not fit in 8 bits")), AA[J + a] = T;
5924
5925
  }
5925
5926
  else
5926
- for (var S = 0; S < N; ++S)
5927
- AA[J + S] = G[S];
5928
- return E !== null && E.push(ig, y), y;
5927
+ for (var a = 0; a < N; ++a)
5928
+ AA[J + a] = G[a];
5929
+ return E !== null && E.push(yg, R), R;
5929
5930
  }, argPackAdvance: gg, readValueFromPointer: OQ, destructorFunction(E) {
5930
- ig(E);
5931
+ yg(E);
5931
5932
  } });
5932
- }, xB = typeof TextDecoder < "u" ? new TextDecoder("utf-16le") : void 0, aD = (B, I) => {
5933
+ }, xB = typeof TextDecoder < "u" ? new TextDecoder("utf-16le") : void 0, sD = (B, I) => {
5933
5934
  for (var E = B, G = E >> 1, N = G + I / 2; !(G >= N) && P[G]; ) ++G;
5934
5935
  if (E = G << 1, E - B > 32 && xB) return xB.decode(AA.subarray(B, E));
5935
- for (var K = "", y = 0; !(y >= I / 2); ++y) {
5936
- var J = EA[B + y * 2 >> 1];
5936
+ for (var K = "", R = 0; !(R >= I / 2); ++R) {
5937
+ var J = EA[B + R * 2 >> 1];
5937
5938
  if (J == 0) break;
5938
5939
  K += String.fromCharCode(J);
5939
5940
  }
5940
5941
  return K;
5941
- }, SD = (B, I, E) => {
5942
+ }, aD = (B, I, E) => {
5942
5943
  if (E ?? (E = 2147483647), E < 2) return 0;
5943
5944
  E -= 2;
5944
5945
  for (var G = I, N = E < B.length * 2 ? E / 2 : B.length, K = 0; K < N; ++K) {
5945
- var y = B.charCodeAt(K);
5946
- EA[I >> 1] = y, I += 2;
5946
+ var R = B.charCodeAt(K);
5947
+ EA[I >> 1] = R, I += 2;
5947
5948
  }
5948
5949
  return EA[I >> 1] = 0, I - G;
5949
- }, sD = (B) => B.length * 2, cD = (B, I) => {
5950
+ }, SD = (B) => B.length * 2, cD = (B, I) => {
5950
5951
  for (var E = 0, G = ""; !(E >= I / 4); ) {
5951
5952
  var N = d[B + E * 4 >> 2];
5952
5953
  if (N == 0) break;
@@ -5960,12 +5961,12 @@ return ret;
5960
5961
  }, tD = (B, I, E) => {
5961
5962
  if (E ?? (E = 2147483647), E < 4) return 0;
5962
5963
  for (var G = I, N = G + E - 4, K = 0; K < B.length; ++K) {
5963
- var y = B.charCodeAt(K);
5964
- if (y >= 55296 && y <= 57343) {
5964
+ var R = B.charCodeAt(K);
5965
+ if (R >= 55296 && R <= 57343) {
5965
5966
  var J = B.charCodeAt(++K);
5966
- y = 65536 + ((y & 1023) << 10) | J & 1023;
5967
+ R = 65536 + ((R & 1023) << 10) | J & 1023;
5967
5968
  }
5968
- if (d[I >> 2] = y, I += 4, I + 4 > N) break;
5969
+ if (d[I >> 2] = R, I += 4, I + 4 > N) break;
5969
5970
  }
5970
5971
  return d[I >> 2] = 0, I - G;
5971
5972
  }, TD = (B) => {
@@ -5976,22 +5977,22 @@ return ret;
5976
5977
  return I;
5977
5978
  }, xD = (B, I, E) => {
5978
5979
  E = hA(E);
5979
- var G, N, K, y;
5980
- I === 2 ? (G = aD, N = SD, y = sD, K = (J) => P[J >> 1]) : I === 4 && (G = cD, N = tD, y = TD, K = (J) => e[J >> 2]), XA(B, { name: E, fromWireType: (J) => {
5981
- for (var S = e[J >> 2], T, x = J + 4, l = 0; l <= S; ++l) {
5980
+ var G, N, K, R;
5981
+ I === 2 ? (G = sD, N = aD, R = SD, K = (J) => P[J >> 1]) : I === 4 && (G = cD, N = tD, R = TD, K = (J) => e[J >> 2]), XA(B, { name: E, fromWireType: (J) => {
5982
+ for (var a = e[J >> 2], T, x = J + 4, l = 0; l <= a; ++l) {
5982
5983
  var p = J + 4 + l * I;
5983
- if (l == S || K(p) == 0) {
5984
+ if (l == a || K(p) == 0) {
5984
5985
  var b = p - x, Z = G(x, b);
5985
5986
  T === void 0 ? T = Z : (T += "\0", T += Z), x = p + I;
5986
5987
  }
5987
5988
  }
5988
- return ig(J), T;
5989
- }, toWireType: (J, S) => {
5990
- typeof S != "string" && X(`Cannot pass non-string to C++ string type ${E}`);
5991
- var T = y(S), x = WC(4 + T + I);
5992
- return e[x >> 2] = T / I, N(S, x + 4, T + I), J !== null && J.push(ig, x), x;
5989
+ return yg(J), T;
5990
+ }, toWireType: (J, a) => {
5991
+ typeof a != "string" && X(`Cannot pass non-string to C++ string type ${E}`);
5992
+ var T = R(a), x = WC(4 + T + I);
5993
+ return e[x >> 2] = T / I, N(a, x + 4, T + I), J !== null && J.push(yg, x), x;
5993
5994
  }, argPackAdvance: gg, readValueFromPointer: OQ, destructorFunction(J) {
5994
- ig(J);
5995
+ yg(J);
5995
5996
  } });
5996
5997
  }, dD = (B, I) => {
5997
5998
  I = hA(I), XA(B, { isVoid: !0, name: I, argPackAdvance: 0, fromWireType: () => {
@@ -6016,17 +6017,17 @@ return ret;
6016
6017
  var G = bD(B, I), N = G.shift();
6017
6018
  B--;
6018
6019
  var K = `return function (obj, func, destructorsRef, args) {
6019
- `, y = 0, J = [];
6020
+ `, R = 0, J = [];
6020
6021
  E === 0 && J.push("obj");
6021
- for (var S = ["retType"], T = [N], x = 0; x < B; ++x)
6022
- J.push("arg" + x), S.push("argType" + x), T.push(G[x]), K += ` var arg${x} = argType${x}.readValueFromPointer(args${y ? "+" + y : ""});
6023
- `, y += G[x].argPackAdvance;
6022
+ for (var a = ["retType"], T = [N], x = 0; x < B; ++x)
6023
+ J.push("arg" + x), a.push("argType" + x), T.push(G[x]), K += ` var arg${x} = argType${x}.readValueFromPointer(args${R ? "+" + R : ""});
6024
+ `, R += G[x].argPackAdvance;
6024
6025
  var l = E === 1 ? "new func" : "func.call";
6025
6026
  K += ` var rv = ${l}(${J.join(", ")});
6026
- `, N.isVoid || (S.push("emval_returnValue"), T.push(nD), K += ` return emval_returnValue(retType, destructorsRef, rv);
6027
+ `, N.isVoid || (a.push("emval_returnValue"), T.push(nD), K += ` return emval_returnValue(retType, destructorsRef, rv);
6027
6028
  `), K += `};
6028
- `, S.push(K);
6029
- var p = TB(Function, S)(...T), b = `methodCaller<(${G.map((Z) => Z.name).join(", ")}) => ${N.name}>`;
6029
+ `, a.push(K);
6030
+ var p = TB(Function, a)(...T), b = `methodCaller<(${G.map((Z) => Z.name).join(", ")}) => ${N.name}>`;
6030
6031
  return lD(qg(b, p));
6031
6032
  }, fD = (B) => {
6032
6033
  B > 9 && (Dg[B + 1] += 1);
@@ -6052,11 +6053,11 @@ return ret;
6052
6053
  return G;
6053
6054
  }, go = function(B) {
6054
6055
  var I = (() => {
6055
- var E = new Date(d[B + 20 >> 2] + 1900, d[B + 16 >> 2], d[B + 12 >> 2], d[B + 8 >> 2], d[B + 4 >> 2], d[B >> 2], 0), G = d[B + 32 >> 2], N = E.getTimezoneOffset(), K = new Date(E.getFullYear(), 0, 1), y = new Date(E.getFullYear(), 6, 1).getTimezoneOffset(), J = K.getTimezoneOffset(), S = Math.min(J, y);
6056
+ var E = new Date(d[B + 20 >> 2] + 1900, d[B + 16 >> 2], d[B + 12 >> 2], d[B + 8 >> 2], d[B + 4 >> 2], d[B >> 2], 0), G = d[B + 32 >> 2], N = E.getTimezoneOffset(), K = new Date(E.getFullYear(), 0, 1), R = new Date(E.getFullYear(), 6, 1).getTimezoneOffset(), J = K.getTimezoneOffset(), a = Math.min(J, R);
6056
6057
  if (G < 0)
6057
- d[B + 32 >> 2] = +(y != J && S == N);
6058
- else if (G > 0 != (S == N)) {
6059
- var T = Math.max(J, y), x = G > 0 ? S : T;
6058
+ d[B + 32 >> 2] = +(R != J && a == N);
6059
+ else if (G > 0 != (a == N)) {
6060
+ var T = Math.max(J, R), x = G > 0 ? a : T;
6060
6061
  E.setTime(E.getTime() + (x - N) * 6e4);
6061
6062
  }
6062
6063
  d[B + 24 >> 2] = E.getDay();
@@ -6067,13 +6068,13 @@ return ret;
6067
6068
  })();
6068
6069
  return BigInt(I);
6069
6070
  }, Qo = (B, I, E, G) => {
6070
- var N = (/* @__PURE__ */ new Date()).getFullYear(), K = new Date(N, 0, 1), y = new Date(N, 6, 1), J = K.getTimezoneOffset(), S = y.getTimezoneOffset(), T = Math.max(J, S);
6071
- e[B >> 2] = T * 60, d[I >> 2] = +(J != S);
6071
+ var N = (/* @__PURE__ */ new Date()).getFullYear(), K = new Date(N, 0, 1), R = new Date(N, 6, 1), J = K.getTimezoneOffset(), a = R.getTimezoneOffset(), T = Math.max(J, a);
6072
+ e[B >> 2] = T * 60, d[I >> 2] = +(J != a);
6072
6073
  var x = (b) => {
6073
6074
  var Z = b >= 0 ? "-" : "+", gA = Math.abs(b), kA = String(Math.floor(gA / 60)).padStart(2, "0"), wA = String(gA % 60).padStart(2, "0");
6074
6075
  return `UTC${Z}${kA}${wA}`;
6075
- }, l = x(J), p = x(S);
6076
- S < J ? (vg(l, E, 17), vg(p, G, 17)) : (vg(l, G, 17), vg(p, E, 17));
6076
+ }, l = x(J), p = x(a);
6077
+ a < J ? (vg(l, E, 17), vg(p, G, 17)) : (vg(l, G, 17), vg(p, E, 17));
6077
6078
  }, Co = () => Date.now(), Bo = () => 2147483648, Io = (B) => {
6078
6079
  var I = f.buffer, E = (B - I.byteLength + 65535) / 65536 | 0;
6079
6080
  try {
@@ -6089,8 +6090,8 @@ return ret;
6089
6090
  for (var G = 1; G <= 4; G *= 2) {
6090
6091
  var N = I * (1 + 0.2 / G);
6091
6092
  N = Math.min(N, B + 100663296);
6092
- var K = Math.min(E, dC(Math.max(B, N), 65536)), y = Io(K);
6093
- if (y)
6093
+ var K = Math.min(E, dC(Math.max(B, N), 65536)), R = Io(K);
6094
+ if (R)
6094
6095
  return !0;
6095
6096
  }
6096
6097
  return !1;
@@ -6132,11 +6133,11 @@ return ret;
6132
6133
  }
6133
6134
  var No = (B, I, E, G) => {
6134
6135
  for (var N = 0, K = 0; K < E; K++) {
6135
- var y = e[I >> 2], J = e[I + 4 >> 2];
6136
+ var R = e[I >> 2], J = e[I + 4 >> 2];
6136
6137
  I += 8;
6137
- var S = M.read(B, W, y, J, G);
6138
- if (S < 0) return -1;
6139
- if (N += S, S < J) break;
6138
+ var a = M.read(B, W, R, J, G);
6139
+ if (a < 0) return -1;
6140
+ if (N += a, a < J) break;
6140
6141
  }
6141
6142
  return N;
6142
6143
  };
@@ -6144,9 +6145,9 @@ return ret;
6144
6145
  try {
6145
6146
  var N = GA.getStreamFromFD(B), K = No(N, I, E);
6146
6147
  return e[G >> 2] = K, 0;
6147
- } catch (y) {
6148
- if (typeof M > "u" || y.name !== "ErrnoError") throw y;
6149
- return y.errno;
6148
+ } catch (R) {
6149
+ if (typeof M > "u" || R.name !== "ErrnoError") throw R;
6150
+ return R.errno;
6150
6151
  }
6151
6152
  }
6152
6153
  function ko(B, I, E, G) {
@@ -6162,11 +6163,11 @@ return ret;
6162
6163
  }
6163
6164
  var Uo = (B, I, E, G) => {
6164
6165
  for (var N = 0, K = 0; K < E; K++) {
6165
- var y = e[I >> 2], J = e[I + 4 >> 2];
6166
+ var R = e[I >> 2], J = e[I + 4 >> 2];
6166
6167
  I += 8;
6167
- var S = M.write(B, W, y, J, G);
6168
- if (S < 0) return -1;
6169
- if (N += S, S < J)
6168
+ var a = M.write(B, W, R, J, G);
6169
+ if (a < 0) return -1;
6170
+ if (N += a, a < J)
6170
6171
  break;
6171
6172
  }
6172
6173
  return N;
@@ -6175,9 +6176,9 @@ return ret;
6175
6176
  try {
6176
6177
  var N = GA.getStreamFromFD(B), K = Uo(N, I, E);
6177
6178
  return e[G >> 2] = K, 0;
6178
- } catch (y) {
6179
- if (typeof M > "u" || y.name !== "ErrnoError") throw y;
6180
- return y.errno;
6179
+ } catch (R) {
6180
+ if (typeof M > "u" || R.name !== "ErrnoError") throw R;
6181
+ return R.errno;
6181
6182
  }
6182
6183
  }
6183
6184
  var VB = (B) => {
@@ -6185,35 +6186,35 @@ return ret;
6185
6186
  return I;
6186
6187
  }, Fo = (B, I) => {
6187
6188
  W.set(B, I);
6188
- }, vB = (B) => Lo(B), io = (B) => {
6189
+ }, vB = (B) => Lo(B), yo = (B) => {
6189
6190
  var I = dg(B) + 1, E = vB(I);
6190
6191
  return vg(B, E, I), E;
6191
6192
  }, OB = (B, I, E, G, N) => {
6192
6193
  var K = { string: (Z) => {
6193
6194
  var gA = 0;
6194
- return Z != null && Z !== 0 && (gA = io(Z)), gA;
6195
+ return Z != null && Z !== 0 && (gA = yo(Z)), gA;
6195
6196
  }, array: (Z) => {
6196
6197
  var gA = vB(Z.length);
6197
6198
  return Fo(Z, gA), gA;
6198
6199
  } };
6199
- function y(Z) {
6200
+ function R(Z) {
6200
6201
  return I === "string" ? Ig(Z) : I === "boolean" ? !!Z : Z;
6201
6202
  }
6202
- var J = VB(B), S = [], T = 0;
6203
+ var J = VB(B), a = [], T = 0;
6203
6204
  if (G)
6204
6205
  for (var x = 0; x < G.length; x++) {
6205
6206
  var l = K[E[x]];
6206
- l ? (T === 0 && (T = SC()), S[x] = l(G[x])) : S[x] = G[x];
6207
+ l ? (T === 0 && (T = aC()), a[x] = l(G[x])) : a[x] = G[x];
6207
6208
  }
6208
- var p = J(...S);
6209
+ var p = J(...a);
6209
6210
  function b(Z) {
6210
- return T !== 0 && aC(T), y(Z);
6211
+ return T !== 0 && sC(T), R(Z);
6211
6212
  }
6212
6213
  return p = b(p), p;
6213
- }, yo = (B, I, E, G) => {
6214
- var N = !E || E.every((y) => y === "number" || y === "boolean"), K = I !== "string";
6215
- return K && N && !G ? VB(B) : (...y) => OB(B, I, E, y);
6216
- }, Ro = (B) => {
6214
+ }, Ro = (B, I, E, G) => {
6215
+ var N = !E || E.every((R) => R === "number" || R === "boolean"), K = I !== "string";
6216
+ return K && N && !G ? VB(B) : (...R) => OB(B, I, E, R);
6217
+ }, io = (B) => {
6217
6218
  var I = dg(B) + 1, E = WC(I);
6218
6219
  return E && vg(B, E, I), E;
6219
6220
  };
@@ -6221,15 +6222,15 @@ return ret;
6221
6222
  constructor(I) {
6222
6223
  super(I), this.name = "BindingError";
6223
6224
  }
6224
- }, iB = Q.InternalError = class extends Error {
6225
+ }, yB = Q.InternalError = class extends Error {
6225
6226
  constructor(I) {
6226
6227
  super(I), this.name = "InternalError";
6227
6228
  }
6228
- }, rE(), CD(), SB = Q.UnboundTypeError = ID(Error, "UnboundTypeError"), GD();
6229
- var lB = { __assert_fail: sC, __cxa_throw: tC, __syscall_fcntl64: TE, __syscall_fstat64: xE, __syscall_ioctl: dE, __syscall_lstat64: zE, __syscall_newfstatat: VE, __syscall_openat: vE, __syscall_stat64: OE, _abort_js: lE, _embind_register_bigint: ZE, _embind_register_bool: fE, _embind_register_class: ED, _embind_register_class_property: DD, _embind_register_emval: MD, _embind_register_enum: YD, _embind_register_enum_value: kD, _embind_register_float: KD, _embind_register_function: hD, _embind_register_integer: JD, _embind_register_memory_view: LD, _embind_register_std_string: HD, _embind_register_std_wstring: xD, _embind_register_void: dD, _emval_call: zD, _emval_call_method: vD, _emval_decref: eC, _emval_get_global: OD, _emval_get_method_caller: ZD, _emval_incref: fD, _emval_new_array: qD, _emval_new_cstring: pD, _emval_new_object: eD, _emval_run_destructors: mD, _emval_set_property: uD, _emval_take_value: WD, _gmtime_js: jD, _mktime_js: go, _tzset_js: Qo, emscripten_date_now: Co, emscripten_resize_heap: Eo, environ_get: Go, environ_sizes_get: wo, fd_close: Mo, fd_read: Yo, fd_seek: ko, fd_write: Ko }, ZA = await hC();
6229
+ }, rE(), CD(), aB = Q.UnboundTypeError = ID(Error, "UnboundTypeError"), GD();
6230
+ var lB = { __assert_fail: SC, __cxa_throw: tC, __syscall_fcntl64: TE, __syscall_fstat64: xE, __syscall_ioctl: dE, __syscall_lstat64: zE, __syscall_newfstatat: VE, __syscall_openat: vE, __syscall_stat64: OE, _abort_js: lE, _embind_register_bigint: ZE, _embind_register_bool: fE, _embind_register_class: ED, _embind_register_class_property: DD, _embind_register_emval: MD, _embind_register_enum: YD, _embind_register_enum_value: kD, _embind_register_float: KD, _embind_register_function: hD, _embind_register_integer: JD, _embind_register_memory_view: LD, _embind_register_std_string: HD, _embind_register_std_wstring: xD, _embind_register_void: dD, _emval_call: zD, _emval_call_method: vD, _emval_decref: eC, _emval_get_global: OD, _emval_get_method_caller: ZD, _emval_incref: fD, _emval_new_array: qD, _emval_new_cstring: pD, _emval_new_object: eD, _emval_run_destructors: mD, _emval_set_property: uD, _emval_take_value: WD, _gmtime_js: jD, _mktime_js: go, _tzset_js: Qo, emscripten_date_now: Co, emscripten_resize_heap: Eo, environ_get: Go, environ_sizes_get: wo, fd_close: Mo, fd_read: Yo, fd_seek: ko, fd_write: Ko }, ZA = await hC();
6230
6231
  ZA.__wasm_call_ctors;
6231
- var WC = ZA.malloc, ig = ZA.free, ho = ZA.__getTypeName, Jo = ZA._emscripten_stack_restore, Lo = ZA._emscripten_stack_alloc, Ho = ZA.emscripten_stack_get_current;
6232
- Q.ENV = fQ, Q.ccall = OB, Q.cwrap = yo, Q.setValue = HC, Q.UTF8ToString = Ig, Q.stringToNewUTF8 = Ro, Q.FS = M;
6232
+ var WC = ZA.malloc, yg = ZA.free, ho = ZA.__getTypeName, Jo = ZA._emscripten_stack_restore, Lo = ZA._emscripten_stack_alloc, Ho = ZA.emscripten_stack_get_current;
6233
+ Q.ENV = fQ, Q.ccall = OB, Q.cwrap = Ro, Q.setValue = HC, Q.UTF8ToString = Ig, Q.stringToNewUTF8 = io, Q.FS = M;
6233
6234
  function rC() {
6234
6235
  if (jA > 0) {
6235
6236
  Cg = rC;
@@ -6256,7 +6257,7 @@ return ret;
6256
6257
  Object.fromEntries(
6257
6258
  Object.entries(n).map(([g, A]) => [A, g])
6258
6259
  );
6259
- var KB = /* @__PURE__ */ ((g) => (g[g.DWG = 0] = "DWG", g[g.DXF = 1] = "DXF", g))(KB || {}), RQ = /* @__PURE__ */ ((g) => (g[g.Line = 1] = "Line", g[g.CircularArc = 2] = "CircularArc", g[g.EllipticArc = 3] = "EllipticArc", g[g.Spline = 4] = "Spline", g))(RQ || {});
6260
+ var KB = /* @__PURE__ */ ((g) => (g[g.DWG = 0] = "DWG", g[g.DXF = 1] = "DXF", g))(KB || {}), iQ = /* @__PURE__ */ ((g) => (g[g.Line = 1] = "Line", g[g.CircularArc = 2] = "CircularArc", g[g.EllipticArc = 3] = "EllipticArc", g[g.Spline = 4] = "Spline", g))(iQ || {});
6260
6261
  const xM = "*MODEL_SPACE", dM = "*PAPER_SPACE", HE = (g) => g && g.toUpperCase() == xM, zM = (g) => g && g.toUpperCase().startsWith(dM), DA = (g) => g.toString(16).toUpperCase();
6261
6262
  class VM {
6262
6263
  constructor(A) {
@@ -6363,7 +6364,7 @@ class VM {
6363
6364
  const Q = this.libredwg, D = Q.dwg_dynapi_entity_value(A, "center").data, o = Q.dwg_dynapi_entity_value(A, "radius").data, w = Q.dwg_dynapi_entity_value(A, "thickness").data, k = Q.dwg_dynapi_entity_value(
6364
6365
  A,
6365
6366
  "extrusion"
6366
- ).data, U = Q.dwg_dynapi_entity_value(A, "start_angle").data, i = Q.dwg_dynapi_entity_value(A, "end_angle").data;
6367
+ ).data, U = Q.dwg_dynapi_entity_value(A, "start_angle").data, y = Q.dwg_dynapi_entity_value(A, "end_angle").data;
6367
6368
  return {
6368
6369
  type: "ARC",
6369
6370
  ...C,
@@ -6371,7 +6372,7 @@ class VM {
6371
6372
  center: D,
6372
6373
  radius: o,
6373
6374
  startAngle: U,
6374
- endAngle: i,
6375
+ endAngle: y,
6375
6376
  extrusionDirection: k
6376
6377
  };
6377
6378
  }
@@ -6396,7 +6397,7 @@ class VM {
6396
6397
  A,
6397
6398
  C,
6398
6399
  "rect_width"
6399
- ).data, i = Q.dwg_dynapi_subclass_value(
6400
+ ).data, y = Q.dwg_dynapi_subclass_value(
6400
6401
  A,
6401
6402
  C,
6402
6403
  "extents_height"
@@ -6409,7 +6410,7 @@ class VM {
6409
6410
  insertionPoint: o,
6410
6411
  rectHeight: k,
6411
6412
  rectWidth: U,
6412
- extentsHeight: i,
6413
+ extentsHeight: y,
6413
6414
  extentsWidth: F,
6414
6415
  attachmentPoint: D,
6415
6416
  direction: w
@@ -6425,7 +6426,7 @@ class VM {
6425
6426
  convertAttdef(A, C) {
6426
6427
  const Q = this.libredwg, D = Q.dwg_dynapi_entity_value(A, "default_value").data, o = this.convertTextBase(A);
6427
6428
  o.text = D;
6428
- const w = Q.dwg_dynapi_entity_value(A, "prompt").data, k = Q.dwg_dynapi_entity_value(A, "tag").data, U = Q.dwg_dynapi_entity_value(A, "flags").data, i = Q.dwg_dynapi_entity_value(A, "field_length").data, F = Q.dwg_dynapi_entity_value(
6429
+ const w = Q.dwg_dynapi_entity_value(A, "prompt").data, k = Q.dwg_dynapi_entity_value(A, "tag").data, U = Q.dwg_dynapi_entity_value(A, "flags").data, y = Q.dwg_dynapi_entity_value(A, "field_length").data, F = Q.dwg_dynapi_entity_value(
6429
6430
  A,
6430
6431
  "lock_position_flag"
6431
6432
  ).data, h = Q.dwg_dynapi_entity_value(
@@ -6434,7 +6435,7 @@ class VM {
6434
6435
  ).data, L = Q.dwg_dynapi_entity_value(
6435
6436
  A,
6436
6437
  "is_really_locked"
6437
- ).data, R = Q.dwg_dynapi_entity_value(A, "mtext_type").data, c = Q.dwg_dynapi_entity_value(
6438
+ ).data, i = Q.dwg_dynapi_entity_value(A, "mtext_type").data, c = Q.dwg_dynapi_entity_value(
6438
6439
  A,
6439
6440
  "alignment_pt"
6440
6441
  ).data;
@@ -6445,10 +6446,10 @@ class VM {
6445
6446
  prompt: w,
6446
6447
  tag: k,
6447
6448
  flags: U,
6448
- fieldLength: i,
6449
+ fieldLength: y,
6449
6450
  lockPositionFlag: F > 0,
6450
6451
  duplicateRecordCloningFlag: h > 0,
6451
- mtextFlag: R,
6452
+ mtextFlag: i,
6452
6453
  isReallyLocked: L > 0,
6453
6454
  alignmentPoint: c,
6454
6455
  annotationScale: 1,
@@ -6462,7 +6463,7 @@ class VM {
6462
6463
  const Q = this.libredwg, D = this.convertTextBase(A), o = Q.dwg_dynapi_entity_value(A, "tag").data, w = Q.dwg_dynapi_entity_value(A, "flags").data, k = Q.dwg_dynapi_entity_value(A, "field_length").data, U = Q.dwg_dynapi_entity_value(
6463
6464
  A,
6464
6465
  "lock_position_flag"
6465
- ).data, i = Q.dwg_dynapi_entity_value(
6466
+ ).data, y = Q.dwg_dynapi_entity_value(
6466
6467
  A,
6467
6468
  "keep_duplicate_records"
6468
6469
  ).data, F = Q.dwg_dynapi_entity_value(A, "mtext_type").data, h = Q.dwg_dynapi_entity_value(
@@ -6480,7 +6481,7 @@ class VM {
6480
6481
  flags: w,
6481
6482
  fieldLength: k,
6482
6483
  lockPositionFlag: !!U,
6483
- duplicateRecordCloningFlag: !!i,
6484
+ duplicateRecordCloningFlag: !!y,
6484
6485
  mtextFlag: F,
6485
6486
  isReallyLocked: !!h,
6486
6487
  numberOfSecondaryAttrs: 0,
@@ -6522,7 +6523,7 @@ class VM {
6522
6523
  ).data, U = Q.dwg_dynapi_entity_value(
6523
6524
  A,
6524
6525
  "ins_rotation"
6525
- ).data, i = Q.dwg_dynapi_entity_value(
6526
+ ).data, y = Q.dwg_dynapi_entity_value(
6526
6527
  A,
6527
6528
  "oblique_angle"
6528
6529
  ).data;
@@ -6534,7 +6535,7 @@ class VM {
6534
6535
  subDefinitionPoint1: w,
6535
6536
  subDefinitionPoint2: k,
6536
6537
  rotationAngle: U ?? 0,
6537
- obliqueAngle: i
6538
+ obliqueAngle: y
6538
6539
  };
6539
6540
  }
6540
6541
  convert3PointAngularDimension(A, C) {
@@ -6598,7 +6599,7 @@ class VM {
6598
6599
  ).data, w = Q.dwg_dynapi_entity_value(
6599
6600
  A,
6600
6601
  "extrusion"
6601
- ).data, k = Q.dwg_dynapi_entity_value(A, "axis_ratio").data, U = Q.dwg_dynapi_entity_value(A, "start_angle").data, i = Q.dwg_dynapi_entity_value(A, "end_angle").data;
6602
+ ).data, k = Q.dwg_dynapi_entity_value(A, "axis_ratio").data, U = Q.dwg_dynapi_entity_value(A, "start_angle").data, y = Q.dwg_dynapi_entity_value(A, "end_angle").data;
6602
6603
  return {
6603
6604
  type: "ELLIPSE",
6604
6605
  ...C,
@@ -6607,7 +6608,7 @@ class VM {
6607
6608
  extrusionDirection: w,
6608
6609
  axisRatio: k,
6609
6610
  startAngle: U,
6610
- endAngle: i
6611
+ endAngle: y
6611
6612
  };
6612
6613
  }
6613
6614
  convertHatch(A, C) {
@@ -6623,20 +6624,20 @@ class VM {
6623
6624
  ).data, U = Q.dwg_dynapi_entity_value(
6624
6625
  A,
6625
6626
  "num_paths"
6626
- ).data, i = Q.dwg_dynapi_entity_value(A, "paths").data, F = Q.dwg_ptr_to_hatch_path_array(
6627
- i,
6627
+ ).data, y = Q.dwg_dynapi_entity_value(A, "paths").data, F = Q.dwg_ptr_to_hatch_path_array(
6628
+ y,
6628
6629
  U
6629
- ), h = Q.dwg_dynapi_entity_value(A, "style").data, L = Q.dwg_dynapi_entity_value(A, "pattern_type").data, R = Q.dwg_dynapi_entity_value(A, "angle").data, c = Q.dwg_dynapi_entity_value(
6630
+ ), h = Q.dwg_dynapi_entity_value(A, "style").data, L = Q.dwg_dynapi_entity_value(A, "pattern_type").data, i = Q.dwg_dynapi_entity_value(A, "angle").data, c = Q.dwg_dynapi_entity_value(
6630
6631
  A,
6631
6632
  "scale_spacing"
6632
6633
  ).data, H = Q.dwg_dynapi_entity_value(
6633
6634
  A,
6634
6635
  "num_deflines"
6635
- ).data, s = Q.dwg_dynapi_entity_value(
6636
+ ).data, S = Q.dwg_dynapi_entity_value(
6636
6637
  A,
6637
6638
  "deflines"
6638
- ).data, a = Q.dwg_ptr_to_hatch_defline_array(
6639
- s,
6639
+ ).data, s = Q.dwg_ptr_to_hatch_defline_array(
6640
+ S,
6640
6641
  H
6641
6642
  ), v = Q.dwg_dynapi_entity_value(A, "pixel_size").data, V = Q.dwg_dynapi_entity_value(
6642
6643
  A,
@@ -6658,10 +6659,10 @@ class VM {
6658
6659
  boundaryPaths: this.convertHatchBoundaryPaths(F),
6659
6660
  hatchStyle: h,
6660
6661
  patternType: L,
6661
- patternAngle: R,
6662
+ patternAngle: i,
6662
6663
  patternScale: c,
6663
6664
  numberOfDefinitionLines: H,
6664
- definitionLines: a.map((f) => ({
6665
+ definitionLines: s.map((f) => ({
6665
6666
  angle: f.angle,
6666
6667
  base: f.pt0,
6667
6668
  offset: f.offset,
@@ -6694,24 +6695,24 @@ class VM {
6694
6695
  };
6695
6696
  {
6696
6697
  const o = Q.segs.map((w) => {
6697
- if (w.curve_type == RQ.Line)
6698
+ if (w.curve_type == iQ.Line)
6698
6699
  return {
6699
- type: yQ.Line,
6700
+ type: RQ.Line,
6700
6701
  start: w.first_endpoint,
6701
6702
  end: w.second_endpoint
6702
6703
  };
6703
- if (w.curve_type == RQ.CircularArc)
6704
+ if (w.curve_type == iQ.CircularArc)
6704
6705
  return {
6705
- type: yQ.Circular,
6706
+ type: RQ.Circular,
6706
6707
  center: w.center,
6707
6708
  radius: w.radius,
6708
6709
  startAngle: w.start_angle,
6709
6710
  endAngle: w.end_angle,
6710
6711
  isCCW: w.is_ccw
6711
6712
  };
6712
- if (w.curve_type == RQ.EllipticArc)
6713
+ if (w.curve_type == iQ.EllipticArc)
6713
6714
  return {
6714
- type: yQ.Elliptic,
6715
+ type: RQ.Elliptic,
6715
6716
  center: w.center,
6716
6717
  end: w.endpoint,
6717
6718
  lengthOfMinorAxis: w.minor_major_ratio,
@@ -6719,9 +6720,9 @@ class VM {
6719
6720
  endAngle: w.end_angle,
6720
6721
  isCCW: w.is_ccw
6721
6722
  };
6722
- if (w.curve_type == RQ.Spline)
6723
+ if (w.curve_type == iQ.Spline)
6723
6724
  return {
6724
- type: yQ.Spline,
6725
+ type: RQ.Spline,
6725
6726
  degree: w.degree,
6726
6727
  isRational: w.is_rational,
6727
6728
  isPeriodic: w.is_periodic,
@@ -6744,15 +6745,15 @@ class VM {
6744
6745
  });
6745
6746
  }
6746
6747
  convertImage(A, C) {
6747
- const Q = this.libredwg, D = Q.dwg_dynapi_entity_value(A, "class_version").data, o = Q.dwg_dynapi_entity_value(A, "pt0").data, w = Q.dwg_dynapi_entity_value(A, "uvec").data, k = Q.dwg_dynapi_entity_value(A, "vvec").data, U = Q.dwg_dynapi_entity_value(A, "image_size").data, i = Q.dwg_dynapi_entity_value(A, "display_props").data, F = Q.dwg_dynapi_entity_value(A, "clipping").data, h = Q.dwg_dynapi_entity_value(A, "brightness").data, L = Q.dwg_dynapi_entity_value(A, "contrast").data, R = Q.dwg_dynapi_entity_value(A, "fade").data, c = Q.dwg_dynapi_entity_value(A, "clip_mode").data, H = Q.dwg_dynapi_entity_value(
6748
+ const Q = this.libredwg, D = Q.dwg_dynapi_entity_value(A, "class_version").data, o = Q.dwg_dynapi_entity_value(A, "pt0").data, w = Q.dwg_dynapi_entity_value(A, "uvec").data, k = Q.dwg_dynapi_entity_value(A, "vvec").data, U = Q.dwg_dynapi_entity_value(A, "image_size").data, y = Q.dwg_dynapi_entity_value(A, "display_props").data, F = Q.dwg_dynapi_entity_value(A, "clipping").data, h = Q.dwg_dynapi_entity_value(A, "brightness").data, L = Q.dwg_dynapi_entity_value(A, "contrast").data, i = Q.dwg_dynapi_entity_value(A, "fade").data, c = Q.dwg_dynapi_entity_value(A, "clip_mode").data, H = Q.dwg_dynapi_entity_value(
6748
6749
  A,
6749
6750
  "clip_boundary_type"
6750
- ).data, s = Q.dwg_dynapi_entity_value(
6751
+ ).data, S = Q.dwg_dynapi_entity_value(
6751
6752
  A,
6752
6753
  "num_clip_verts"
6753
- ).data, a = Q.dwg_dynapi_entity_value(A, "clip_verts").data, v = Q.dwg_ptr_to_point3d_array(
6754
- a,
6755
- s
6754
+ ).data, s = Q.dwg_dynapi_entity_value(A, "clip_verts").data, v = Q.dwg_ptr_to_point3d_array(
6755
+ s,
6756
+ S
6756
6757
  ), V = Q.dwg_dynapi_entity_value(A, "imagedef").data, O = DA(Q.dwg_ref_get_absref(V)), z = Q.dwg_dynapi_entity_value(
6757
6758
  A,
6758
6759
  "imagedefreactor"
@@ -6768,14 +6769,14 @@ class VM {
6768
6769
  vPixel: k,
6769
6770
  imageSize: U,
6770
6771
  imageDefHandle: O,
6771
- flags: i,
6772
+ flags: y,
6772
6773
  clipping: F,
6773
6774
  brightness: h,
6774
6775
  contrast: L,
6775
- fade: R,
6776
+ fade: i,
6776
6777
  imageDefReactorHandle: f,
6777
6778
  clippingBoundaryType: H,
6778
- countBoundaryPoints: s,
6779
+ countBoundaryPoints: S,
6779
6780
  clippingBoundaryPath: v,
6780
6781
  clipMode: c
6781
6782
  };
@@ -6788,25 +6789,25 @@ class VM {
6788
6789
  "block_header"
6789
6790
  ).data;
6790
6791
  if (o) {
6791
- const s = Q.dwg_ref_get_object(o);
6792
- if (s) {
6793
- const a = Q.dwg_object_to_object_tio(s);
6794
- a && (D = Q.dwg_entity_block_header_get_block(a).name);
6792
+ const S = Q.dwg_ref_get_object(o);
6793
+ if (S) {
6794
+ const s = Q.dwg_object_to_object_tio(S);
6795
+ s && (D = Q.dwg_entity_block_header_get_block(s).name);
6795
6796
  }
6796
6797
  }
6797
6798
  D || (D = Q.dwg_dynapi_entity_value(A, "block_name").data);
6798
- const w = Q.dwg_dynapi_entity_value(A, "ins_pt").data, k = Q.dwg_dynapi_entity_value(A, "scale").data, U = Q.dwg_dynapi_entity_value(A, "rotation").data, i = Q.dwg_dynapi_entity_value(A, "num_cols").data, F = Q.dwg_dynapi_entity_value(A, "num_rows").data, h = Q.dwg_dynapi_entity_value(
6799
+ const w = Q.dwg_dynapi_entity_value(A, "ins_pt").data, k = Q.dwg_dynapi_entity_value(A, "scale").data, U = Q.dwg_dynapi_entity_value(A, "rotation").data, y = Q.dwg_dynapi_entity_value(A, "num_cols").data, F = Q.dwg_dynapi_entity_value(A, "num_rows").data, h = Q.dwg_dynapi_entity_value(
6799
6800
  A,
6800
6801
  "col_spacing"
6801
- ).data, L = Q.dwg_dynapi_entity_value(A, "row_spacing").data, R = Q.dwg_dynapi_entity_value(
6802
+ ).data, L = Q.dwg_dynapi_entity_value(A, "row_spacing").data, i = Q.dwg_dynapi_entity_value(
6802
6803
  A,
6803
6804
  "extrusion"
6804
6805
  ).data, c = Q.dwg_entity_insert_get_attribs(A), H = [];
6805
- return c.forEach((s) => {
6806
- const a = Q.dwg_object_to_entity(s), v = Q.dwg_object_to_entity_tio(s);
6807
- if (a && v) {
6808
- const V = this.getCommonAttrs(a);
6809
- Q.dwg_object_get_fixedtype(s) == n.DWG_TYPE_ATTRIB && H.push(this.convertAttrib(v, V));
6806
+ return c.forEach((S) => {
6807
+ const s = Q.dwg_object_to_entity(S), v = Q.dwg_object_to_entity_tio(S);
6808
+ if (s && v) {
6809
+ const V = this.getCommonAttrs(s);
6810
+ Q.dwg_object_get_fixedtype(S) == n.DWG_TYPE_ATTRIB && H.push(this.convertAttrib(v, V));
6810
6811
  }
6811
6812
  }), {
6812
6813
  type: "INSERT",
@@ -6817,11 +6818,11 @@ class VM {
6817
6818
  yScale: k ? k.y : 1,
6818
6819
  zScale: k ? k.z : 1,
6819
6820
  rotation: U,
6820
- columnCount: i,
6821
+ columnCount: y,
6821
6822
  rowCount: F,
6822
6823
  columnSpacing: h,
6823
6824
  rowSpacing: L,
6824
- extrusionDirection: R,
6825
+ extrusionDirection: i,
6825
6826
  attribs: H
6826
6827
  };
6827
6828
  }
@@ -6835,16 +6836,16 @@ class VM {
6835
6836
  ).data, U = Q.dwg_dynapi_entity_value(
6836
6837
  A,
6837
6838
  "hookline_dir"
6838
- ).data, i = Q.dwg_dynapi_entity_value(
6839
+ ).data, y = Q.dwg_dynapi_entity_value(
6839
6840
  A,
6840
6841
  "hookline_on"
6841
6842
  ).data, F = Q.dwg_dynapi_entity_value(A, "box_height").data, h = Q.dwg_dynapi_entity_value(A, "box_width").data, L = Q.dwg_dynapi_entity_value(
6842
6843
  A,
6843
6844
  "num_points"
6844
- ).data, R = Q.dwg_dynapi_entity_value(A, "points").data, c = L > 0 ? Q.dwg_ptr_to_point3d_array(R, L) : [], H = Q.dwg_dynapi_entity_value(
6845
+ ).data, i = Q.dwg_dynapi_entity_value(A, "points").data, c = L > 0 ? Q.dwg_ptr_to_point3d_array(i, L) : [], H = Q.dwg_dynapi_entity_value(
6845
6846
  A,
6846
6847
  "byblock_color"
6847
- ).data, s = Q.dwg_dynapi_entity_value(A, "extrusion").data, a = Q.dwg_dynapi_entity_value(
6848
+ ).data, S = Q.dwg_dynapi_entity_value(A, "extrusion").data, s = Q.dwg_dynapi_entity_value(
6848
6849
  A,
6849
6850
  "x_direction"
6850
6851
  ).data, v = Q.dwg_dynapi_entity_value(
@@ -6862,14 +6863,14 @@ class VM {
6862
6863
  isSpline: w > 0,
6863
6864
  leaderCreationFlag: k,
6864
6865
  isHooklineSameDirection: U > 0,
6865
- isHooklineExists: i > 0,
6866
+ isHooklineExists: y > 0,
6866
6867
  textHeight: F,
6867
6868
  textWidth: h,
6868
6869
  numberOfVertices: L,
6869
6870
  vertices: c,
6870
6871
  byBlockColor: H,
6871
- normal: s,
6872
- horizontalDirection: a,
6872
+ normal: S,
6873
+ horizontalDirection: s,
6873
6874
  offsetFromBlock: v,
6874
6875
  offsetFromAnnotation: V
6875
6876
  };
@@ -6895,16 +6896,16 @@ class VM {
6895
6896
  ).data, o = Q.dwg_dynapi_entity_value(A, "flag").data, w = Q.dwg_dynapi_entity_value(
6896
6897
  A,
6897
6898
  "const_width"
6898
- ).data, k = Q.dwg_dynapi_entity_value(A, "elevation").data, U = Q.dwg_dynapi_entity_value(A, "thickness").data, i = Q.dwg_dynapi_entity_value(
6899
+ ).data, k = Q.dwg_dynapi_entity_value(A, "elevation").data, U = Q.dwg_dynapi_entity_value(A, "thickness").data, y = Q.dwg_dynapi_entity_value(
6899
6900
  A,
6900
6901
  "extrusion"
6901
- ).data, F = [], h = Q.dwg_dynapi_entity_value(A, "num_points").data, L = Q.dwg_dynapi_entity_value(A, "points").data, R = Q.dwg_ptr_to_point2d_array(L, h), c = Q.dwg_dynapi_entity_value(A, "num_bulges").data, H = Q.dwg_dynapi_entity_value(A, "bulges").data, s = Q.dwg_ptr_to_double_array(H, c);
6902
- return R.forEach((a, v) => {
6902
+ ).data, F = [], h = Q.dwg_dynapi_entity_value(A, "num_points").data, L = Q.dwg_dynapi_entity_value(A, "points").data, i = Q.dwg_ptr_to_point2d_array(L, h), c = Q.dwg_dynapi_entity_value(A, "num_bulges").data, H = Q.dwg_dynapi_entity_value(A, "bulges").data, S = Q.dwg_ptr_to_double_array(H, c);
6903
+ return i.forEach((s, v) => {
6903
6904
  F.push({
6904
6905
  id: v,
6905
- x: a.x,
6906
- y: a.y,
6907
- bulge: s.length > v ? s[v] : 0
6906
+ x: s.x,
6907
+ y: s.y,
6908
+ bulge: S.length > v ? S[v] : 0
6908
6909
  });
6909
6910
  }), {
6910
6911
  type: "LWPOLYLINE",
@@ -6914,7 +6915,7 @@ class VM {
6914
6915
  constantWidth: w,
6915
6916
  elevation: k,
6916
6917
  thickness: U,
6917
- extrusionDirection: i,
6918
+ extrusionDirection: y,
6918
6919
  vertices: F
6919
6920
  };
6920
6921
  }
@@ -6925,15 +6926,15 @@ class VM {
6925
6926
  ).data, k = Q.dwg_dynapi_entity_value(A, "base_point").data, U = Q.dwg_dynapi_entity_value(
6926
6927
  A,
6927
6928
  "extrusion"
6928
- ).data, i = Q.dwg_dynapi_entity_value(A, "num_lines").data, F = Q.dwg_dynapi_entity_value(
6929
+ ).data, y = Q.dwg_dynapi_entity_value(A, "num_lines").data, F = Q.dwg_dynapi_entity_value(
6929
6930
  A,
6930
6931
  "num_verts"
6931
6932
  ).data, h = Q.dwg_dynapi_entity_value(A, "verts").data, L = Q.dwg_ptr_to_mline_vertex_array(
6932
6933
  h,
6933
6934
  F
6934
- ), R = [];
6935
+ ), i = [];
6935
6936
  return L.forEach((c) => {
6936
- R.push({
6937
+ i.push({
6937
6938
  vertex: c.vertex,
6938
6939
  vertexDirection: c.vertex_direction,
6939
6940
  miterDirection: c.miter_direction,
@@ -6953,15 +6954,15 @@ class VM {
6953
6954
  justification: w,
6954
6955
  startPoint: k,
6955
6956
  extrusionDirection: U,
6956
- numberOfLines: i,
6957
+ numberOfLines: y,
6957
6958
  numberOfVertices: F,
6958
- vertices: R,
6959
+ vertices: i,
6959
6960
  mlineStyle: ""
6960
6961
  // TODO: Set the correct value
6961
6962
  };
6962
6963
  }
6963
6964
  convertOle2Frame(A, C) {
6964
- const Q = this.libredwg, D = Q.dwg_dynapi_entity_value(A, "oleversion").data, o = Q.dwg_dynapi_entity_value(A, "oleclient").data, w = Q.dwg_dynapi_entity_value(A, "data_size").data, k = Q.dwg_dynapi_entity_value(A, "pt1").data, U = Q.dwg_dynapi_entity_value(A, "pt2").data, i = Q.dwg_dynapi_entity_value(A, "lock_aspect").data, F = Q.dwg_dynapi_entity_value(A, "type").data, h = Q.dwg_dynapi_entity_value(A, "mode").data, L = Q.dwg_dynapi_entity_value(A, "data").data;
6965
+ const Q = this.libredwg, D = Q.dwg_dynapi_entity_value(A, "oleversion").data, o = Q.dwg_dynapi_entity_value(A, "oleclient").data, w = Q.dwg_dynapi_entity_value(A, "data_size").data, k = Q.dwg_dynapi_entity_value(A, "pt1").data, U = Q.dwg_dynapi_entity_value(A, "pt2").data, y = Q.dwg_dynapi_entity_value(A, "lock_aspect").data, F = Q.dwg_dynapi_entity_value(A, "type").data, h = Q.dwg_dynapi_entity_value(A, "mode").data, L = Q.dwg_dynapi_entity_value(A, "data").data;
6965
6966
  return {
6966
6967
  type: "OLE2FRAME",
6967
6968
  ...C,
@@ -6970,7 +6971,7 @@ class VM {
6970
6971
  dataSize: w,
6971
6972
  leftUpPoint: k,
6972
6973
  rightDownPoint: U,
6973
- lockAspect: i,
6974
+ lockAspect: y,
6974
6975
  oleObjectType: F,
6975
6976
  tileModeDescriptor: h,
6976
6977
  binaryData: L
@@ -6991,7 +6992,7 @@ class VM {
6991
6992
  const Q = this.libredwg, D = Q.dwg_dynapi_entity_value(A, "ins_pt").data, o = Q.dwg_dynapi_entity_value(A, "text_height").data, w = Q.dwg_dynapi_entity_value(A, "rect_height").data, k = Q.dwg_dynapi_entity_value(A, "rect_width").data, U = Q.dwg_dynapi_entity_value(
6992
6993
  A,
6993
6994
  "extents_width"
6994
- ).data, i = Q.dwg_dynapi_entity_value(
6995
+ ).data, y = Q.dwg_dynapi_entity_value(
6995
6996
  A,
6996
6997
  "extents_height"
6997
6998
  ).data, F = Q.dwg_dynapi_entity_value(
@@ -7000,13 +7001,13 @@ class VM {
7000
7001
  ).data, h = Q.dwg_dynapi_entity_value(
7001
7002
  A,
7002
7003
  "flow_dir"
7003
- ).data, L = Q.dwg_dynapi_entity_value(A, "text").data, R = Q.dwg_entity_mtext_get_style_name(A), c = Q.dwg_dynapi_entity_value(
7004
+ ).data, L = Q.dwg_dynapi_entity_value(A, "text").data, i = Q.dwg_entity_mtext_get_style_name(A), c = Q.dwg_dynapi_entity_value(
7004
7005
  A,
7005
7006
  "extrusion"
7006
- ).data, H = Q.dwg_dynapi_entity_value(A, "x_axis_dir").data, s = Q.dwg_dynapi_entity_value(
7007
+ ).data, H = Q.dwg_dynapi_entity_value(A, "x_axis_dir").data, S = Q.dwg_dynapi_entity_value(
7007
7008
  A,
7008
7009
  "linespace_style"
7009
- ).data, a = Q.dwg_dynapi_entity_value(
7010
+ ).data, s = Q.dwg_dynapi_entity_value(
7010
7011
  A,
7011
7012
  "linespace_factor"
7012
7013
  ).data, v = Q.dwg_dynapi_entity_value(
@@ -7044,18 +7045,18 @@ class VM {
7044
7045
  textHeight: o,
7045
7046
  rectHeight: w,
7046
7047
  rectWidth: k,
7047
- extentsHeight: i,
7048
+ extentsHeight: y,
7048
7049
  extentsWidth: U,
7049
7050
  attachmentPoint: F,
7050
7051
  drawingDirection: h,
7051
7052
  text: L,
7052
- styleName: R,
7053
+ styleName: i,
7053
7054
  extrusionDirection: c,
7054
7055
  direction: H,
7055
7056
  rotation: 0,
7056
7057
  // TODO: Didn't find the corresponding field in libredwg
7057
- lineSpacingStyle: s,
7058
- lineSpacing: a,
7058
+ lineSpacingStyle: S,
7059
+ lineSpacing: s,
7059
7060
  backgroundFill: v,
7060
7061
  // backgroundColor: backgroundColor.rgb, // TODO: Double check whether it should be color index
7061
7062
  fillBoxScale: V,
@@ -7076,18 +7077,18 @@ class VM {
7076
7077
  const Q = this.libredwg, D = Q.dwg_dynapi_entity_value(A, "x").data, o = Q.dwg_dynapi_entity_value(A, "y").data, w = Q.dwg_dynapi_entity_value(A, "z").data, k = Q.dwg_dynapi_entity_value(A, "thickness").data, U = Q.dwg_dynapi_entity_value(
7077
7078
  A,
7078
7079
  "extrusion"
7079
- ).data, i = Q.dwg_dynapi_entity_value(A, "x_ang").data;
7080
+ ).data, y = Q.dwg_dynapi_entity_value(A, "x_ang").data;
7080
7081
  return {
7081
7082
  type: "POINT",
7082
7083
  ...C,
7083
7084
  position: { x: D, y: o, z: w },
7084
7085
  thickness: k,
7085
7086
  extrusionDirection: U,
7086
- angle: i
7087
+ angle: y
7087
7088
  };
7088
7089
  }
7089
7090
  convertPolyline2d(A, C, Q) {
7090
- const D = this.libredwg, o = D.dwg_dynapi_entity_value(A, "flag").data, w = D.dwg_dynapi_entity_value(A, "curve_type").data, k = D.dwg_dynapi_entity_value(A, "start_width").data, U = D.dwg_dynapi_entity_value(A, "end_width").data, i = D.dwg_dynapi_entity_value(A, "elevation").data, F = D.dwg_dynapi_entity_value(A, "thickness").data, h = D.dwg_dynapi_entity_value(
7091
+ const D = this.libredwg, o = D.dwg_dynapi_entity_value(A, "flag").data, w = D.dwg_dynapi_entity_value(A, "curve_type").data, k = D.dwg_dynapi_entity_value(A, "start_width").data, U = D.dwg_dynapi_entity_value(A, "end_width").data, y = D.dwg_dynapi_entity_value(A, "elevation").data, F = D.dwg_dynapi_entity_value(A, "thickness").data, h = D.dwg_dynapi_entity_value(
7091
7092
  A,
7092
7093
  "extrusion"
7093
7094
  ).data, L = D.dwg_entity_polyline_2d_get_vertices(Q);
@@ -7098,18 +7099,18 @@ class VM {
7098
7099
  smoothType: w,
7099
7100
  startWidth: k,
7100
7101
  endWidth: U,
7101
- elevation: i,
7102
+ elevation: y,
7102
7103
  thickness: F,
7103
7104
  extrusionDirection: h,
7104
- vertices: L.map((R) => ({
7105
- x: R.point.x,
7106
- y: R.point.y,
7107
- z: R.point.z,
7108
- startWidth: R.start_width,
7109
- endWidth: R.end_width,
7110
- bulge: R.bulge,
7111
- flag: R.flag,
7112
- tangentDirection: R.tangent_dir
7105
+ vertices: L.map((i) => ({
7106
+ x: i.point.x,
7107
+ y: i.point.y,
7108
+ z: i.point.z,
7109
+ startWidth: i.start_width,
7110
+ endWidth: i.end_width,
7111
+ bulge: i.bulge,
7112
+ flag: i.flag,
7113
+ tangentDirection: i.tangent_dir
7113
7114
  })),
7114
7115
  meshMVertexCount: 0,
7115
7116
  meshNVertexCount: 0,
@@ -7118,7 +7119,7 @@ class VM {
7118
7119
  };
7119
7120
  }
7120
7121
  convertPolyline3d(A, C, Q) {
7121
- const D = this.libredwg, o = D.dwg_dynapi_entity_value(A, "flag").data, w = D.dwg_dynapi_entity_value(A, "curve_type").data, k = D.dwg_dynapi_entity_value(A, "start_width").data, U = D.dwg_dynapi_entity_value(A, "end_width").data, i = D.dwg_dynapi_entity_value(
7122
+ const D = this.libredwg, o = D.dwg_dynapi_entity_value(A, "flag").data, w = D.dwg_dynapi_entity_value(A, "curve_type").data, k = D.dwg_dynapi_entity_value(A, "start_width").data, U = D.dwg_dynapi_entity_value(A, "end_width").data, y = D.dwg_dynapi_entity_value(
7122
7123
  A,
7123
7124
  "extrusion"
7124
7125
  ).data, F = D.dwg_entity_polyline_3d_get_vertices(Q);
@@ -7129,7 +7130,7 @@ class VM {
7129
7130
  smoothType: w,
7130
7131
  startWidth: k,
7131
7132
  endWidth: U,
7132
- extrusionDirection: i,
7133
+ extrusionDirection: y,
7133
7134
  vertices: F.map((h) => ({
7134
7135
  x: h.point.x,
7135
7136
  y: h.point.y,
@@ -7159,7 +7160,7 @@ class VM {
7159
7160
  const Q = this.libredwg, D = Q.dwg_dynapi_entity_value(A, "state").data, o = Q.dwg_dynapi_entity_value(A, "flag").data, w = Q.dwg_dynapi_entity_value(A, "name").data, k = Q.dwg_dynapi_entity_value(
7160
7161
  A,
7161
7162
  "vert_dir"
7162
- ).data, U = Q.dwg_dynapi_entity_value(A, "top_height").data, i = Q.dwg_dynapi_entity_value(
7163
+ ).data, U = Q.dwg_dynapi_entity_value(A, "top_height").data, y = Q.dwg_dynapi_entity_value(
7163
7164
  A,
7164
7165
  "bottom_height"
7165
7166
  ).data, F = Q.dwg_dynapi_entity_value(
@@ -7171,14 +7172,14 @@ class VM {
7171
7172
  ).data, L = Q.dwg_dynapi_entity_value(
7172
7173
  A,
7173
7174
  "num_verts"
7174
- ).data, R = Q.dwg_dynapi_entity_value(A, "verts").data, c = L > 0 ? Q.dwg_ptr_to_point3d_array(R, L) : [], H = Q.dwg_dynapi_entity_value(
7175
+ ).data, i = Q.dwg_dynapi_entity_value(A, "verts").data, c = L > 0 ? Q.dwg_ptr_to_point3d_array(i, L) : [], H = Q.dwg_dynapi_entity_value(
7175
7176
  A,
7176
7177
  "num_blverts"
7177
- ).data, s = Q.dwg_dynapi_entity_value(
7178
+ ).data, S = Q.dwg_dynapi_entity_value(
7178
7179
  A,
7179
7180
  "blverts"
7180
- ).data, a = H > 0 ? Q.dwg_ptr_to_point3d_array(
7181
- s,
7181
+ ).data, s = H > 0 ? Q.dwg_ptr_to_point3d_array(
7182
+ S,
7182
7183
  H
7183
7184
  ) : [], v = Q.dwg_dynapi_entity_value(
7184
7185
  A,
@@ -7194,18 +7195,18 @@ class VM {
7194
7195
  name: w,
7195
7196
  verticalDirection: k,
7196
7197
  topHeight: U,
7197
- bottomHeight: i,
7198
+ bottomHeight: y,
7198
7199
  indicatorTransparency: F,
7199
7200
  indicatorColor: h.rgb,
7200
7201
  numberOfVertices: L,
7201
7202
  vertices: c,
7202
7203
  numberOfBackLineVertices: H,
7203
- backLineVertices: a,
7204
+ backLineVertices: s,
7204
7205
  geometrySettingHardId: V
7205
7206
  };
7206
7207
  }
7207
7208
  convertSolid(A, C) {
7208
- const Q = this.libredwg, D = Q.dwg_dynapi_entity_value(A, "corner1").data, o = Q.dwg_dynapi_entity_value(A, "corner2").data, w = Q.dwg_dynapi_entity_value(A, "corner3").data, k = Q.dwg_dynapi_entity_value(A, "corner4").data, U = Q.dwg_dynapi_entity_value(A, "thickness").data, i = Q.dwg_dynapi_entity_value(
7209
+ const Q = this.libredwg, D = Q.dwg_dynapi_entity_value(A, "corner1").data, o = Q.dwg_dynapi_entity_value(A, "corner2").data, w = Q.dwg_dynapi_entity_value(A, "corner3").data, k = Q.dwg_dynapi_entity_value(A, "corner4").data, U = Q.dwg_dynapi_entity_value(A, "thickness").data, y = Q.dwg_dynapi_entity_value(
7209
7210
  A,
7210
7211
  "extrusion"
7211
7212
  ).data;
@@ -7217,25 +7218,25 @@ class VM {
7217
7218
  corner3: w,
7218
7219
  corner4: k,
7219
7220
  thickness: U,
7220
- extrusionDirection: i
7221
+ extrusionDirection: y
7221
7222
  };
7222
7223
  }
7223
7224
  convertSpline(A, C) {
7224
- const Q = this.libredwg, D = Q.dwg_dynapi_entity_value(A, "splineflags").data, o = Q.dwg_dynapi_entity_value(A, "degree").data, w = Q.dwg_dynapi_entity_value(A, "knot_tol").data, k = Q.dwg_dynapi_entity_value(A, "num_knots").data, U = Q.dwg_dynapi_entity_value(A, "knots").data, i = Q.dwg_ptr_to_double_array(U, k), F = Q.dwg_dynapi_entity_value(A, "fit_tol").data, h = Q.dwg_dynapi_entity_value(
7225
+ const Q = this.libredwg, D = Q.dwg_dynapi_entity_value(A, "splineflags").data, o = Q.dwg_dynapi_entity_value(A, "degree").data, w = Q.dwg_dynapi_entity_value(A, "knot_tol").data, k = Q.dwg_dynapi_entity_value(A, "num_knots").data, U = Q.dwg_dynapi_entity_value(A, "knots").data, y = Q.dwg_ptr_to_double_array(U, k), F = Q.dwg_dynapi_entity_value(A, "fit_tol").data, h = Q.dwg_dynapi_entity_value(
7225
7226
  A,
7226
7227
  "num_fit_pts"
7227
- ).data, L = Q.dwg_dynapi_entity_value(A, "fit_pts").data, R = Q.dwg_ptr_to_point3d_array(
7228
+ ).data, L = Q.dwg_dynapi_entity_value(A, "fit_pts").data, i = Q.dwg_ptr_to_point3d_array(
7228
7229
  L,
7229
7230
  h
7230
7231
  ), c = Q.dwg_dynapi_entity_value(A, "weighted").data, H = Q.dwg_dynapi_entity_value(
7231
7232
  A,
7232
7233
  "ctrl_tol"
7233
- ).data, s = Q.dwg_dynapi_entity_value(
7234
+ ).data, S = Q.dwg_dynapi_entity_value(
7234
7235
  A,
7235
7236
  "num_ctrl_pts"
7236
- ).data, a = Q.dwg_dynapi_entity_value(A, "ctrl_pts").data, v = Q.dwg_ptr_to_point4d_array(
7237
- a,
7238
- s
7237
+ ).data, s = Q.dwg_dynapi_entity_value(A, "ctrl_pts").data, v = Q.dwg_ptr_to_point4d_array(
7238
+ s,
7239
+ S
7239
7240
  ), V = Q.dwg_dynapi_entity_value(A, "beg_tan_vec").data, O = Q.dwg_dynapi_entity_value(A, "end_tan_vec").data;
7240
7241
  return {
7241
7242
  type: "SPLINE",
@@ -7244,21 +7245,21 @@ class VM {
7244
7245
  flag: D,
7245
7246
  degree: o,
7246
7247
  numberOfKnots: k,
7247
- numberOfControlPoints: s,
7248
+ numberOfControlPoints: S,
7248
7249
  numberOfFitPoints: h,
7249
7250
  knotTolerance: w,
7250
7251
  controlTolerance: H,
7251
7252
  fitTolerance: F,
7252
7253
  startTangent: V,
7253
7254
  endTangent: O,
7254
- knots: i,
7255
+ knots: y,
7255
7256
  weights: c ? v.map((z) => z.w) : void 0,
7256
7257
  controlPoints: v.map((z) => ({
7257
7258
  x: z.x,
7258
7259
  y: z.y,
7259
7260
  z: z.z
7260
7261
  })),
7261
- fitPoints: R
7262
+ fitPoints: i
7262
7263
  };
7263
7264
  }
7264
7265
  convertTable(A, C) {
@@ -7268,7 +7269,7 @@ class VM {
7268
7269
  ).data, k = Q.dwg_dynapi_entity_value(
7269
7270
  A,
7270
7271
  "flag_for_table_value"
7271
- ).data, U = Q.dwg_dynapi_entity_value(A, "num_rows").data, i = Q.dwg_dynapi_entity_value(A, "num_cols").data, F = Q.dwg_dynapi_entity_value(
7272
+ ).data, U = Q.dwg_dynapi_entity_value(A, "num_rows").data, y = Q.dwg_dynapi_entity_value(A, "num_cols").data, F = Q.dwg_dynapi_entity_value(
7272
7273
  A,
7273
7274
  "row_heights"
7274
7275
  ).data, h = Q.dwg_ptr_to_double_array(
@@ -7277,19 +7278,19 @@ class VM {
7277
7278
  ), L = Q.dwg_dynapi_entity_value(
7278
7279
  A,
7279
7280
  "col_widths"
7280
- ).data, R = Q.dwg_ptr_to_double_array(
7281
+ ).data, i = Q.dwg_ptr_to_double_array(
7281
7282
  L,
7282
- i
7283
+ y
7283
7284
  ), c = Q.dwg_dynapi_entity_value(
7284
7285
  A,
7285
7286
  "tablestyle"
7286
7287
  ).data, H = DA(
7287
7288
  Q.dwg_ref_get_absref(c)
7288
- ), s = Q.dwg_dynapi_entity_value(
7289
+ ), S = Q.dwg_dynapi_entity_value(
7289
7290
  A,
7290
7291
  "block_header"
7291
- ).data, a = DA(
7292
- Q.dwg_ref_get_absref(s)
7292
+ ).data, s = DA(
7293
+ Q.dwg_ref_get_absref(S)
7293
7294
  ), v = Q.dwg_dynapi_entity_value(
7294
7295
  A,
7295
7296
  "table_flag_override"
@@ -7312,15 +7313,15 @@ class VM {
7312
7313
  // attachmentPoint: DwgAttachmentPoint
7313
7314
  tableValue: k,
7314
7315
  rowCount: U,
7315
- columnCount: i,
7316
+ columnCount: y,
7316
7317
  overrideFlag: v,
7317
7318
  borderColorOverrideFlag: V,
7318
7319
  borderLineWeightOverrideFlag: O,
7319
7320
  borderVisibilityOverrideFlag: z,
7320
7321
  rowHeightArr: h,
7321
- columnWidthArr: R,
7322
+ columnWidthArr: i,
7322
7323
  tableStyleId: H,
7323
- blockRecordHandle: a,
7324
+ blockRecordHandle: s,
7324
7325
  cells: this.convertTableCells(W),
7325
7326
  bmpPreview: ""
7326
7327
  };
@@ -7356,13 +7357,13 @@ class VM {
7356
7357
  })), C;
7357
7358
  }
7358
7359
  convertTextBase(A) {
7359
- const C = this.libredwg, Q = C.dwg_dynapi_entity_value(A, "text_value").data, D = C.dwg_dynapi_entity_value(A, "thickness").data, o = C.dwg_dynapi_entity_value(A, "ins_pt").data, w = C.dwg_dynapi_entity_value(A, "alignment_pt").data, k = C.dwg_dynapi_entity_value(A, "rotation").data, U = C.dwg_dynapi_entity_value(A, "height").data, i = C.dwg_dynapi_entity_value(A, "width_factor").data, F = C.dwg_dynapi_entity_value(
7360
+ const C = this.libredwg, Q = C.dwg_dynapi_entity_value(A, "text_value").data, D = C.dwg_dynapi_entity_value(A, "thickness").data, o = C.dwg_dynapi_entity_value(A, "ins_pt").data, w = C.dwg_dynapi_entity_value(A, "alignment_pt").data, k = C.dwg_dynapi_entity_value(A, "rotation").data, U = C.dwg_dynapi_entity_value(A, "height").data, y = C.dwg_dynapi_entity_value(A, "width_factor").data, F = C.dwg_dynapi_entity_value(
7360
7361
  A,
7361
7362
  "oblique_angle"
7362
7363
  ).data, h = C.dwg_entity_text_get_style_name(A), L = C.dwg_dynapi_entity_value(
7363
7364
  A,
7364
7365
  "generation"
7365
- ).data, R = C.dwg_dynapi_entity_value(A, "horiz_alignment").data, c = C.dwg_dynapi_entity_value(A, "vert_alignment").data, H = C.dwg_dynapi_entity_value(
7366
+ ).data, i = C.dwg_dynapi_entity_value(A, "horiz_alignment").data, c = C.dwg_dynapi_entity_value(A, "vert_alignment").data, H = C.dwg_dynapi_entity_value(
7366
7367
  A,
7367
7368
  "extrusion"
7368
7369
  ).data;
@@ -7373,11 +7374,11 @@ class VM {
7373
7374
  endPoint: w,
7374
7375
  textHeight: U,
7375
7376
  rotation: k,
7376
- xScale: i,
7377
+ xScale: y,
7377
7378
  obliqueAngle: F,
7378
7379
  styleName: h,
7379
7380
  generationFlag: L,
7380
- halign: R,
7381
+ halign: i,
7381
7382
  valign: c,
7382
7383
  extrusionDirection: H
7383
7384
  };
@@ -7408,10 +7409,10 @@ class VM {
7408
7409
  };
7409
7410
  }
7410
7411
  convertViewport(A, C) {
7411
- const Q = this.libredwg, D = Q.dwg_dynapi_entity_value(A, "center").data, o = Q.dwg_dynapi_entity_value(A, "width").data, w = Q.dwg_dynapi_entity_value(A, "height").data, k = Q.dwg_dynapi_entity_value(A, "on_off").data, U = Q.dwg_dynapi_entity_value(A, "VIEWCTR").data, i = Q.dwg_dynapi_entity_value(A, "SNAPBASE").data, F = Q.dwg_dynapi_entity_value(A, "SNAPUNIT").data, h = Q.dwg_dynapi_entity_value(A, "GRIDUNIT").data, L = Q.dwg_dynapi_entity_value(A, "VIEWDIR").data, R = Q.dwg_dynapi_entity_value(A, "view_target").data, c = Q.dwg_dynapi_entity_value(
7412
+ const Q = this.libredwg, D = Q.dwg_dynapi_entity_value(A, "center").data, o = Q.dwg_dynapi_entity_value(A, "width").data, w = Q.dwg_dynapi_entity_value(A, "height").data, k = Q.dwg_dynapi_entity_value(A, "on_off").data, U = Q.dwg_dynapi_entity_value(A, "VIEWCTR").data, y = Q.dwg_dynapi_entity_value(A, "SNAPBASE").data, F = Q.dwg_dynapi_entity_value(A, "SNAPUNIT").data, h = Q.dwg_dynapi_entity_value(A, "GRIDUNIT").data, L = Q.dwg_dynapi_entity_value(A, "VIEWDIR").data, i = Q.dwg_dynapi_entity_value(A, "view_target").data, c = Q.dwg_dynapi_entity_value(
7412
7413
  A,
7413
7414
  "lens_length"
7414
- ).data, H = Q.dwg_dynapi_entity_value(A, "front_clip_z").data, s = Q.dwg_dynapi_entity_value(A, "back_clip_z").data, a = Q.dwg_dynapi_entity_value(A, "VIEWSIZE").data, v = Q.dwg_dynapi_entity_value(A, "SNAPANG").data, V = Q.dwg_dynapi_entity_value(
7415
+ ).data, H = Q.dwg_dynapi_entity_value(A, "front_clip_z").data, S = Q.dwg_dynapi_entity_value(A, "back_clip_z").data, s = Q.dwg_dynapi_entity_value(A, "VIEWSIZE").data, v = Q.dwg_dynapi_entity_value(A, "SNAPANG").data, V = Q.dwg_dynapi_entity_value(
7415
7416
  A,
7416
7417
  "twist_angle"
7417
7418
  ).data, O = Q.dwg_dynapi_entity_value(
@@ -7420,10 +7421,10 @@ class VM {
7420
7421
  ).data, z = Q.dwg_dynapi_entity_value(
7421
7422
  A,
7422
7423
  "status_flag"
7423
- ).data, f = Q.dwg_dynapi_entity_value(A, "style_sheet").data, q = Q.dwg_dynapi_entity_value(A, "render_mode").data, W = Q.dwg_dynapi_entity_value(A, "UCSVP").data, AA = Q.dwg_dynapi_entity_value(A, "ucsorg").data, EA = Q.dwg_dynapi_entity_value(A, "ucsxdir").data, P = Q.dwg_dynapi_entity_value(A, "ucsydir").data, d = Q.dwg_dynapi_entity_value(A, "named_ucs").data, e = Q.dwg_ref_get_absref(d), iA = Q.dwg_dynapi_entity_value(A, "base_ucs").data, MA = Q.dwg_ref_get_absref(iA), zA = Q.dwg_dynapi_entity_value(
7424
+ ).data, f = Q.dwg_dynapi_entity_value(A, "style_sheet").data, q = Q.dwg_dynapi_entity_value(A, "render_mode").data, W = Q.dwg_dynapi_entity_value(A, "UCSVP").data, AA = Q.dwg_dynapi_entity_value(A, "ucsorg").data, EA = Q.dwg_dynapi_entity_value(A, "ucsxdir").data, P = Q.dwg_dynapi_entity_value(A, "ucsydir").data, d = Q.dwg_dynapi_entity_value(A, "named_ucs").data, e = Q.dwg_ref_get_absref(d), yA = Q.dwg_dynapi_entity_value(A, "base_ucs").data, MA = Q.dwg_ref_get_absref(yA), zA = Q.dwg_dynapi_entity_value(
7424
7425
  A,
7425
7426
  "UCSORTHOVIEW"
7426
- ).data, TA = Q.dwg_dynapi_entity_value(A, "ucs_elevation").data, RA = Q.dwg_dynapi_entity_value(
7427
+ ).data, TA = Q.dwg_dynapi_entity_value(A, "ucs_elevation").data, iA = Q.dwg_dynapi_entity_value(
7427
7428
  A,
7428
7429
  "shadeplot_mode"
7429
7430
  ).data, VA = Q.dwg_dynapi_entity_value(
@@ -7452,15 +7453,15 @@ class VM {
7452
7453
  viewportId: 0,
7453
7454
  // Will be set later in LibreDwgConverter.convert
7454
7455
  displayCenter: U,
7455
- snapBase: i,
7456
+ snapBase: y,
7456
7457
  snapSpacing: F,
7457
7458
  gridSpacing: h,
7458
7459
  viewDirection: L,
7459
- targetPoint: R,
7460
+ targetPoint: i,
7460
7461
  perspectiveLensLength: c,
7461
7462
  frontClipZ: H,
7462
- backClipZ: s,
7463
- viewHeight: a,
7463
+ backClipZ: S,
7464
+ viewHeight: s,
7464
7465
  snapAngle: v,
7465
7466
  viewTwistAngle: V,
7466
7467
  circleZoomPercent: O,
@@ -7475,7 +7476,7 @@ class VM {
7475
7476
  ucsBaseId: DA(MA),
7476
7477
  orthographicType: zA,
7477
7478
  elevation: TA,
7478
- shadePlotMode: RA,
7479
+ shadePlotMode: iA,
7479
7480
  majorGridFrequency: jA,
7480
7481
  backgroundId: DA(ng),
7481
7482
  shadePlotId: DA(Bg),
@@ -7488,15 +7489,15 @@ class VM {
7488
7489
  };
7489
7490
  }
7490
7491
  convertWipeout(A, C) {
7491
- const Q = this.libredwg, D = Q.dwg_dynapi_entity_value(A, "class_version").data, o = Q.dwg_dynapi_entity_value(A, "pt0").data, w = Q.dwg_dynapi_entity_value(A, "uvec").data, k = Q.dwg_dynapi_entity_value(A, "vvec").data, U = Q.dwg_dynapi_entity_value(A, "image_size").data, i = Q.dwg_dynapi_entity_value(A, "display_props").data, F = Q.dwg_dynapi_entity_value(A, "clipping").data, h = Q.dwg_dynapi_entity_value(A, "brightness").data, L = Q.dwg_dynapi_entity_value(A, "contrast").data, R = Q.dwg_dynapi_entity_value(A, "fade").data, c = Q.dwg_dynapi_entity_value(A, "clip_mode").data, H = Q.dwg_dynapi_entity_value(
7492
+ const Q = this.libredwg, D = Q.dwg_dynapi_entity_value(A, "class_version").data, o = Q.dwg_dynapi_entity_value(A, "pt0").data, w = Q.dwg_dynapi_entity_value(A, "uvec").data, k = Q.dwg_dynapi_entity_value(A, "vvec").data, U = Q.dwg_dynapi_entity_value(A, "image_size").data, y = Q.dwg_dynapi_entity_value(A, "display_props").data, F = Q.dwg_dynapi_entity_value(A, "clipping").data, h = Q.dwg_dynapi_entity_value(A, "brightness").data, L = Q.dwg_dynapi_entity_value(A, "contrast").data, i = Q.dwg_dynapi_entity_value(A, "fade").data, c = Q.dwg_dynapi_entity_value(A, "clip_mode").data, H = Q.dwg_dynapi_entity_value(
7492
7493
  A,
7493
7494
  "clip_boundary_type"
7494
- ).data, s = Q.dwg_dynapi_entity_value(
7495
+ ).data, S = Q.dwg_dynapi_entity_value(
7495
7496
  A,
7496
7497
  "num_clip_verts"
7497
- ).data, a = Q.dwg_dynapi_entity_value(A, "clip_verts").data, v = Q.dwg_ptr_to_point2d_array(
7498
- a,
7499
- s
7498
+ ).data, s = Q.dwg_dynapi_entity_value(A, "clip_verts").data, v = Q.dwg_ptr_to_point2d_array(
7499
+ s,
7500
+ S
7500
7501
  ), V = Q.dwg_dynapi_entity_value(A, "imagedef").data, O = Q.dwg_ref_get_absref(V), z = Q.dwg_dynapi_entity_value(
7501
7502
  A,
7502
7503
  "imagedefreactor"
@@ -7510,14 +7511,14 @@ class VM {
7510
7511
  vPixel: k,
7511
7512
  imageSize: U,
7512
7513
  imageDefHandle: O,
7513
- flags: i,
7514
+ flags: y,
7514
7515
  clipping: F,
7515
7516
  brightness: h,
7516
7517
  contrast: L,
7517
- fade: R,
7518
+ fade: i,
7518
7519
  imageDefReactorHandle: f,
7519
7520
  clippingBoundaryType: H,
7520
- countBoundaryPoints: s,
7521
+ countBoundaryPoints: S,
7521
7522
  clippingBoundaryPath: v,
7522
7523
  clipMode: c
7523
7524
  };
@@ -7535,7 +7536,7 @@ class VM {
7535
7536
  const C = this.libredwg, Q = C.dwg_dynapi_entity_value(A, "class_version").data, D = C.dwg_entity_get_block_name(A, "block"), o = C.dwg_dynapi_entity_value(A, "def_pt").data, w = C.dwg_dynapi_entity_value(A, "text_midpt").data, k = C.dwg_dynapi_entity_value(
7536
7537
  A,
7537
7538
  "attachmentPoint"
7538
- ).data, U = C.dwg_dynapi_entity_value(A, "flag").data, i = C.dwg_dynapi_entity_value(
7539
+ ).data, U = C.dwg_dynapi_entity_value(A, "flag").data, y = C.dwg_dynapi_entity_value(
7539
7540
  A,
7540
7541
  "lspace_factor"
7541
7542
  ).data, F = C.dwg_dynapi_entity_value(
@@ -7544,13 +7545,13 @@ class VM {
7544
7545
  ).data, h = C.dwg_dynapi_entity_value(
7545
7546
  A,
7546
7547
  "act_measurement"
7547
- ).data, L = C.dwg_dynapi_entity_value(A, "user_text").data, R = C.dwg_dynapi_entity_value(
7548
+ ).data, L = C.dwg_dynapi_entity_value(A, "user_text").data, i = C.dwg_dynapi_entity_value(
7548
7549
  A,
7549
7550
  "text_rotation"
7550
7551
  ).data, c = C.dwg_dynapi_entity_value(A, "ins_rotation").data, H = C.dwg_dynapi_entity_value(
7551
7552
  A,
7552
7553
  "extrusion"
7553
- ).data, s = C.dwg_entity_get_dimstyle_name(A);
7554
+ ).data, S = C.dwg_entity_get_dimstyle_name(A);
7554
7555
  return {
7555
7556
  type: "DIMENSION",
7556
7557
  version: Q,
@@ -7559,32 +7560,32 @@ class VM {
7559
7560
  textPoint: w,
7560
7561
  dimensionType: U,
7561
7562
  attachmentPoint: k,
7562
- textLineSpacingStyle: i,
7563
+ textLineSpacingStyle: y,
7563
7564
  textLineSpacingFactor: F || 1,
7564
7565
  measurement: h,
7565
7566
  text: L,
7566
- textRotation: R,
7567
+ textRotation: i,
7567
7568
  ocsRotation: c,
7568
7569
  extrusionDirection: H,
7569
- styleName: s
7570
+ styleName: S
7570
7571
  };
7571
7572
  }
7572
7573
  getCommonAttrs(A) {
7573
7574
  const C = this.libredwg, Q = C.dwg_object_entity_get_color_object(A), D = Q.method, o = Q.index;
7574
7575
  let w;
7575
7576
  (D == 194 || (Q.rgb >>> 24 & 255) === 194) && (w = Q.rgb & 16777215);
7576
- const k = this.getLayerName(A), U = C.dwg_object_entity_get_handle_object(A), i = C.dwg_object_entity_get_ownerhandle_object(A), F = C.dwg_object_entity_get_xdicobjhandle_object(A), h = this.getLtypeName(A), L = C.dwg_object_entity_get_line_weight(A), R = C.dwg_object_entity_get_ltype_scale(A), c = !C.dwg_object_entity_get_invisible(A), H = C.dwg_object_entity_get_xdata(A);
7577
+ const k = this.getLayerName(A), U = C.dwg_object_entity_get_handle_object(A), y = C.dwg_object_entity_get_ownerhandle_object(A), F = C.dwg_object_entity_get_xdicobjhandle_object(A), h = this.getLtypeName(A), L = C.dwg_object_entity_get_line_weight(A), i = C.dwg_object_entity_get_ltype_scale(A), c = !C.dwg_object_entity_get_invisible(A), H = C.dwg_object_entity_get_xdata(A);
7577
7578
  return {
7578
7579
  handle: DA(U.value),
7579
7580
  ownerDictionaryHardId: DA(F.absolute_ref),
7580
- ownerBlockRecordSoftId: DA(i.absolute_ref),
7581
+ ownerBlockRecordSoftId: DA(y.absolute_ref),
7581
7582
  layer: k,
7582
7583
  color: w,
7583
7584
  colorIndex: o,
7584
7585
  colorName: Q.name,
7585
7586
  lineType: h,
7586
7587
  lineweight: L,
7587
- lineTypeScale: R,
7588
+ lineTypeScale: i,
7588
7589
  isVisible: c,
7589
7590
  transparency: Q.alpha,
7590
7591
  transparencyType: Q.alpha_type,
@@ -7710,8 +7711,8 @@ class jB {
7710
7711
  }
7711
7712
  const o = C.entities.filter((w) => w.type === "VIEWPORT");
7712
7713
  return o.sort((w, k) => {
7713
- const U = parseInt(w.handle, 16), i = parseInt(k.handle, 16);
7714
- return U - i;
7714
+ const U = parseInt(w.handle, 16), y = parseInt(k.handle, 16);
7715
+ return U - y;
7715
7716
  }), o.forEach((w, k) => {
7716
7717
  w.viewportId = k + 1;
7717
7718
  }), C;
@@ -7757,18 +7758,18 @@ class jB {
7757
7758
  convertBlockRecord(A, C) {
7758
7759
  const Q = this.libredwg, D = this.getCommonTableEntryAttrs(A, C), o = Q.dwg_entity_block_header_get_block(A);
7759
7760
  o.name && (D.name = o.name);
7760
- const w = Q.dwg_dynapi_entity_value(A, "num_owned").data, k = Q.dwg_dynapi_entity_value(A, "flag").data, U = Q.dwg_dynapi_entity_value(A, "description").data, i = Q.dwg_dynapi_entity_value(A, "base_pt").data, F = Q.dwg_dynapi_entity_value(
7761
+ const w = Q.dwg_dynapi_entity_value(A, "num_owned").data, k = Q.dwg_dynapi_entity_value(A, "flag").data, U = Q.dwg_dynapi_entity_value(A, "description").data, y = Q.dwg_dynapi_entity_value(A, "base_pt").data, F = Q.dwg_dynapi_entity_value(
7761
7762
  A,
7762
7763
  "insert_units"
7763
- ).data, h = Q.dwg_dynapi_entity_value(A, "explodable").data, L = Q.dwg_dynapi_entity_value(A, "block_scaling").data, R = Q.dwg_dynapi_entity_value(A, "layout").data, c = DA(Q.dwg_ref_get_absref(R));
7764
+ ).data, h = Q.dwg_dynapi_entity_value(A, "explodable").data, L = Q.dwg_dynapi_entity_value(A, "block_scaling").data, i = Q.dwg_dynapi_entity_value(A, "layout").data, c = DA(Q.dwg_ref_get_absref(i));
7764
7765
  let H = "";
7765
- const s = (V) => {
7766
+ const S = (V) => {
7766
7767
  const O = new Array(V.length);
7767
7768
  for (let z = 0; z < V.length; z++)
7768
7769
  O[z] = V[z].toString(16).toUpperCase();
7769
7770
  return O.join("");
7770
- }, a = Q.dwg_entity_block_header_get_preview(A);
7771
- a && a.length > 0 && (H = s(a));
7771
+ }, s = Q.dwg_entity_block_header_get_preview(A);
7772
+ s && s.length > 0 && (H = S(s));
7772
7773
  let v = this.convertEntities(C, D.handle);
7773
7774
  if (!v || v.length == 0) {
7774
7775
  v = [];
@@ -7790,7 +7791,7 @@ class jB {
7790
7791
  ...D,
7791
7792
  flags: k,
7792
7793
  description: U,
7793
- basePoint: i,
7794
+ basePoint: y,
7794
7795
  layout: c,
7795
7796
  insertionUnits: F,
7796
7797
  explodability: h,
@@ -7809,18 +7810,18 @@ class jB {
7809
7810
  return o;
7810
7811
  }
7811
7812
  convertDimStyle(A, C) {
7812
- const Q = this.libredwg, D = this.getCommonTableEntryAttrs(A, C), o = Q.dwg_dynapi_entity_value(A, "DIMTOL").data, w = Q.dwg_dynapi_entity_value(A, "DIMLIM").data, k = Q.dwg_dynapi_entity_value(A, "DIMTIH").data, U = Q.dwg_dynapi_entity_value(A, "DIMTOH").data, i = Q.dwg_dynapi_entity_value(A, "DIMSE1").data, F = Q.dwg_dynapi_entity_value(A, "DIMSE2").data, h = Q.dwg_dynapi_entity_value(A, "DIMALT").data, L = Q.dwg_dynapi_entity_value(A, "DIMTOFL").data, R = Q.dwg_dynapi_entity_value(A, "DIMSAH").data, c = Q.dwg_dynapi_entity_value(A, "DIMTIX").data, H = Q.dwg_dynapi_entity_value(A, "DIMSOXD").data, s = Q.dwg_dynapi_entity_value(A, "DIMALTD").data, a = Q.dwg_dynapi_entity_value(A, "DIMZIN").data, v = Q.dwg_dynapi_entity_value(A, "DIMSD1").data, V = Q.dwg_dynapi_entity_value(A, "DIMSD2").data, O = Q.dwg_dynapi_entity_value(A, "DIMTOLJ").data, z = Q.dwg_dynapi_entity_value(A, "DIMJUST").data, f = Q.dwg_dynapi_entity_value(A, "DIMFIT").data, q = Q.dwg_dynapi_entity_value(A, "DIMUPT").data, W = Q.dwg_dynapi_entity_value(A, "DIMTZIN").data, AA = Q.dwg_dynapi_entity_value(A, "DIMALTZ").data, EA = Q.dwg_dynapi_entity_value(A, "DIMALTTZ").data, P = Q.dwg_dynapi_entity_value(A, "DIMTAD").data, d = Q.dwg_dynapi_entity_value(A, "DIMUNIT").data, e = Q.dwg_dynapi_entity_value(A, "DIMAUNIT").data, iA = Q.dwg_dynapi_entity_value(A, "DIMDEC").data, MA = Q.dwg_dynapi_entity_value(A, "DIMTDEC").data, zA = Q.dwg_dynapi_entity_value(A, "DIMALTU").data, TA = Q.dwg_dynapi_entity_value(A, "DIMALTTD").data, RA = Q.dwg_dynapi_entity_value(A, "DIMSCALE").data, VA = Q.dwg_dynapi_entity_value(A, "DIMASZ").data, vA = Q.dwg_dynapi_entity_value(A, "DIMEXO").data, nA = Q.dwg_dynapi_entity_value(A, "DIMDLI").data, oQ = Q.dwg_dynapi_entity_value(A, "DIMEXE").data, jA = Q.dwg_dynapi_entity_value(A, "DIMRND").data, Cg = Q.dwg_dynapi_entity_value(A, "DIMDLE").data, ng = Q.dwg_dynapi_entity_value(A, "DIMTP").data, xg = Q.dwg_dynapi_entity_value(A, "DIMTM").data, Bg = Q.dwg_dynapi_entity_value(A, "DIMFXL").data, kg = Q.dwg_dynapi_entity_value(A, "DIMJOGANG").data, GQ = Q.dwg_dynapi_entity_value(A, "DIMTFILL").data, wQ = Q.dwg_dynapi_entity_value(A, "DIMTFILLCLR").data, MQ = Q.dwg_dynapi_entity_value(A, "DIMAZIN").data, iC = Q.dwg_dynapi_entity_value(A, "DIMARCSYM").data, yC = Q.dwg_dynapi_entity_value(A, "DIMTXT").data, RC = Q.dwg_dynapi_entity_value(A, "DIMCEN").data, hC = Q.dwg_dynapi_entity_value(A, "DIMTSZ").data, hQ = Q.dwg_dynapi_entity_value(A, "DIMALTF").data, JQ = Q.dwg_dynapi_entity_value(A, "DIMLFAC").data, JC = Q.dwg_dynapi_entity_value(A, "DIMTVP").data, LQ = Q.dwg_dynapi_entity_value(A, "DIMTFAC").data, LC = Q.dwg_dynapi_entity_value(A, "DIMGAP").data, HC = Q.dwg_dynapi_entity_value(A, "DIMPOST").data, aC = Q.dwg_dynapi_entity_value(A, "DIMAPOST").data, SC = Q.dwg_dynapi_entity_value(A, "DIMBLK_T").data, HQ = Q.dwg_dynapi_entity_value(A, "DIMBLK1_T").data, Ug = Q.dwg_dynapi_entity_value(A, "DIMBLK2_T").data, Ig = Q.dwg_dynapi_entity_value(A, "DIMALTRND").data, sC = Q.dwg_dynapi_entity_value(A, "DIMCLRD_N").data, cC = Q.dwg_dynapi_entity_value(A, "DIMCLRE_N").data, aQ = Q.dwg_dynapi_entity_value(A, "DIMCLRT_N").data, tC = Q.dwg_dynapi_entity_value(A, "DIMCLRD").data, Zg = Q.dwg_dynapi_entity_value(A, "DIMCLRE").data, Kg = Q.dwg_dynapi_entity_value(A, "DIMCLRT").data, BA = Q.dwg_dynapi_entity_value(A, "DIMADEC").data, TC = Q.dwg_dynapi_entity_value(A, "DIMFRAC").data, SQ = Q.dwg_dynapi_entity_value(A, "DIMLUNIT").data, Fg = Q.dwg_dynapi_entity_value(A, "DIMDSEP").data, NQ = Q.dwg_dynapi_entity_value(A, "DIMTMOVE").data, dg = Q.dwg_dynapi_entity_value(A, "DIMATFIT").data, YQ = Q.dwg_dynapi_entity_value(A, "DIMFXLON").data, sQ = Q.dwg_dynapi_entity_value(
7813
+ const Q = this.libredwg, D = this.getCommonTableEntryAttrs(A, C), o = Q.dwg_dynapi_entity_value(A, "DIMTOL").data, w = Q.dwg_dynapi_entity_value(A, "DIMLIM").data, k = Q.dwg_dynapi_entity_value(A, "DIMTIH").data, U = Q.dwg_dynapi_entity_value(A, "DIMTOH").data, y = Q.dwg_dynapi_entity_value(A, "DIMSE1").data, F = Q.dwg_dynapi_entity_value(A, "DIMSE2").data, h = Q.dwg_dynapi_entity_value(A, "DIMALT").data, L = Q.dwg_dynapi_entity_value(A, "DIMTOFL").data, i = Q.dwg_dynapi_entity_value(A, "DIMSAH").data, c = Q.dwg_dynapi_entity_value(A, "DIMTIX").data, H = Q.dwg_dynapi_entity_value(A, "DIMSOXD").data, S = Q.dwg_dynapi_entity_value(A, "DIMALTD").data, s = Q.dwg_dynapi_entity_value(A, "DIMZIN").data, v = Q.dwg_dynapi_entity_value(A, "DIMSD1").data, V = Q.dwg_dynapi_entity_value(A, "DIMSD2").data, O = Q.dwg_dynapi_entity_value(A, "DIMTOLJ").data, z = Q.dwg_dynapi_entity_value(A, "DIMJUST").data, f = Q.dwg_dynapi_entity_value(A, "DIMFIT").data, q = Q.dwg_dynapi_entity_value(A, "DIMUPT").data, W = Q.dwg_dynapi_entity_value(A, "DIMTZIN").data, AA = Q.dwg_dynapi_entity_value(A, "DIMALTZ").data, EA = Q.dwg_dynapi_entity_value(A, "DIMALTTZ").data, P = Q.dwg_dynapi_entity_value(A, "DIMTAD").data, d = Q.dwg_dynapi_entity_value(A, "DIMUNIT").data, e = Q.dwg_dynapi_entity_value(A, "DIMAUNIT").data, yA = Q.dwg_dynapi_entity_value(A, "DIMDEC").data, MA = Q.dwg_dynapi_entity_value(A, "DIMTDEC").data, zA = Q.dwg_dynapi_entity_value(A, "DIMALTU").data, TA = Q.dwg_dynapi_entity_value(A, "DIMALTTD").data, iA = Q.dwg_dynapi_entity_value(A, "DIMSCALE").data, VA = Q.dwg_dynapi_entity_value(A, "DIMASZ").data, vA = Q.dwg_dynapi_entity_value(A, "DIMEXO").data, nA = Q.dwg_dynapi_entity_value(A, "DIMDLI").data, oQ = Q.dwg_dynapi_entity_value(A, "DIMEXE").data, jA = Q.dwg_dynapi_entity_value(A, "DIMRND").data, Cg = Q.dwg_dynapi_entity_value(A, "DIMDLE").data, ng = Q.dwg_dynapi_entity_value(A, "DIMTP").data, xg = Q.dwg_dynapi_entity_value(A, "DIMTM").data, Bg = Q.dwg_dynapi_entity_value(A, "DIMFXL").data, kg = Q.dwg_dynapi_entity_value(A, "DIMJOGANG").data, GQ = Q.dwg_dynapi_entity_value(A, "DIMTFILL").data, wQ = Q.dwg_dynapi_entity_value(A, "DIMTFILLCLR").data, MQ = Q.dwg_dynapi_entity_value(A, "DIMAZIN").data, yC = Q.dwg_dynapi_entity_value(A, "DIMARCSYM").data, RC = Q.dwg_dynapi_entity_value(A, "DIMTXT").data, iC = Q.dwg_dynapi_entity_value(A, "DIMCEN").data, hC = Q.dwg_dynapi_entity_value(A, "DIMTSZ").data, hQ = Q.dwg_dynapi_entity_value(A, "DIMALTF").data, JQ = Q.dwg_dynapi_entity_value(A, "DIMLFAC").data, JC = Q.dwg_dynapi_entity_value(A, "DIMTVP").data, LQ = Q.dwg_dynapi_entity_value(A, "DIMTFAC").data, LC = Q.dwg_dynapi_entity_value(A, "DIMGAP").data, HC = Q.dwg_dynapi_entity_value(A, "DIMPOST").data, sC = Q.dwg_dynapi_entity_value(A, "DIMAPOST").data, aC = Q.dwg_dynapi_entity_value(A, "DIMBLK_T").data, HQ = Q.dwg_dynapi_entity_value(A, "DIMBLK1_T").data, Ug = Q.dwg_dynapi_entity_value(A, "DIMBLK2_T").data, Ig = Q.dwg_dynapi_entity_value(A, "DIMALTRND").data, SC = Q.dwg_dynapi_entity_value(A, "DIMCLRD_N").data, cC = Q.dwg_dynapi_entity_value(A, "DIMCLRE_N").data, sQ = Q.dwg_dynapi_entity_value(A, "DIMCLRT_N").data, tC = Q.dwg_dynapi_entity_value(A, "DIMCLRD").data, Zg = Q.dwg_dynapi_entity_value(A, "DIMCLRE").data, Kg = Q.dwg_dynapi_entity_value(A, "DIMCLRT").data, BA = Q.dwg_dynapi_entity_value(A, "DIMADEC").data, TC = Q.dwg_dynapi_entity_value(A, "DIMFRAC").data, aQ = Q.dwg_dynapi_entity_value(A, "DIMLUNIT").data, Fg = Q.dwg_dynapi_entity_value(A, "DIMDSEP").data, NQ = Q.dwg_dynapi_entity_value(A, "DIMTMOVE").data, dg = Q.dwg_dynapi_entity_value(A, "DIMATFIT").data, YQ = Q.dwg_dynapi_entity_value(A, "DIMFXLON").data, SQ = Q.dwg_dynapi_entity_value(
7813
7814
  A,
7814
7815
  "DIMTXTDIRECTION"
7815
7816
  ).data, xC = Q.dwg_dynapi_entity_value(A, "DIMALTMZF").data, Eg = Q.dwg_dynapi_entity_value(A, "DIMALTMZS").data, dC = Q.dwg_dynapi_entity_value(A, "DIMMZF").data, cQ = Q.dwg_dynapi_entity_value(A, "DIMMZS").data, m = Q.dwg_dynapi_entity_value(A, "DIMLWD").data, zC = Q.dwg_dynapi_entity_value(A, "DIMLWE").data, VC = Q.dwg_dynapi_entity_value(A, "DIMTXSTY").data, vC = Q.dwg_ref_get_absref(VC), OC = Q.dwg_dynapi_entity_value(A, "DIMLDRBLK").data, lC = Q.dwg_ref_get_absref(OC);
7816
7817
  return {
7817
7818
  ...D,
7818
7819
  DIMPOST: HC,
7819
- DIMAPOST: aC,
7820
- DIMBLK: SC,
7820
+ DIMAPOST: sC,
7821
+ DIMBLK: aC,
7821
7822
  DIMBLK1: HQ,
7822
7823
  DIMBLK2: Ug,
7823
- DIMSCALE: RA,
7824
+ DIMSCALE: iA,
7824
7825
  DIMASZ: VA,
7825
7826
  DIMEXO: vA,
7826
7827
  DIMDLI: nA,
@@ -7829,8 +7830,8 @@ class jB {
7829
7830
  DIMDLE: Cg,
7830
7831
  DIMTP: ng,
7831
7832
  DIMTM: xg,
7832
- DIMTXT: yC,
7833
- DIMCEN: RC,
7833
+ DIMTXT: RC,
7834
+ DIMCEN: iC,
7834
7835
  DIMTSZ: hC,
7835
7836
  DIMALTF: hQ,
7836
7837
  DIMLFAC: JQ,
@@ -7842,15 +7843,15 @@ class jB {
7842
7843
  DIMLIM: w,
7843
7844
  DIMTIH: k,
7844
7845
  DIMTOH: U,
7845
- DIMSE1: i,
7846
+ DIMSE1: y,
7846
7847
  DIMSE2: F,
7847
7848
  DIMTAD: P,
7848
- DIMZIN: a,
7849
+ DIMZIN: s,
7849
7850
  DIMAZIN: MQ,
7850
7851
  DIMALT: h,
7851
- DIMALTD: s,
7852
+ DIMALTD: S,
7852
7853
  DIMTOFL: L,
7853
- DIMSAH: R,
7854
+ DIMSAH: i,
7854
7855
  DIMTIX: c,
7855
7856
  DIMSOXD: H,
7856
7857
  DIMCLRD: tC,
@@ -7858,13 +7859,13 @@ class jB {
7858
7859
  DIMCLRT: Kg,
7859
7860
  DIMADEC: BA,
7860
7861
  DIMUNIT: d,
7861
- DIMDEC: iA,
7862
+ DIMDEC: yA,
7862
7863
  DIMTDEC: MA,
7863
7864
  DIMALTU: zA,
7864
7865
  DIMALTTD: TA,
7865
7866
  DIMAUNIT: e,
7866
7867
  DIMFRAC: TC,
7867
- DIMLUNIT: SQ,
7868
+ DIMLUNIT: aQ,
7868
7869
  DIMDSEP: String.fromCharCode(Fg),
7869
7870
  DIMTMOVE: NQ,
7870
7871
  DIMJUST: z,
@@ -7885,12 +7886,12 @@ class jB {
7885
7886
  DIMJOGANG: kg,
7886
7887
  DIMTFILL: GQ,
7887
7888
  DIMTFILLCLR: wQ,
7888
- DIMARCSYM: iC,
7889
- DIMCLRD_N: sC,
7889
+ DIMARCSYM: yC,
7890
+ DIMCLRD_N: SC,
7890
7891
  DIMCLRE_N: cC,
7891
- DIMCLRT_N: aQ,
7892
+ DIMCLRT_N: sQ,
7892
7893
  DIMFXLON: YQ,
7893
- DIMTXTDIRECTION: sQ,
7894
+ DIMTXTDIRECTION: SQ,
7894
7895
  DIMALTMZF: xC,
7895
7896
  DIMALTMZS: Eg,
7896
7897
  DIMMZF: dC,
@@ -7898,9 +7899,9 @@ class jB {
7898
7899
  };
7899
7900
  }
7900
7901
  convertLayer(A, C) {
7901
- const Q = this.libredwg, D = this.getCommonTableEntryAttrs(A, C), o = Q.dwg_dynapi_entity_value(A, "flag").data, w = Q.dwg_dynapi_entity_value(A, "frozen").data, k = Q.dwg_dynapi_entity_value(A, "off").data, U = Q.dwg_dynapi_entity_value(A, "frozen_in_new").data, i = Q.dwg_dynapi_entity_value(A, "plotflockedlag").data, F = Q.dwg_dynapi_entity_value(A, "plotflag").data, h = Q.dwg_dynapi_entity_value(A, "linewt").data, L = Q.dwg_dynapi_entity_value(A, "color").data, R = L.method;
7902
+ const Q = this.libredwg, D = this.getCommonTableEntryAttrs(A, C), o = Q.dwg_dynapi_entity_value(A, "flag").data, w = Q.dwg_dynapi_entity_value(A, "frozen").data, k = Q.dwg_dynapi_entity_value(A, "off").data, U = Q.dwg_dynapi_entity_value(A, "frozen_in_new").data, y = Q.dwg_dynapi_entity_value(A, "plotflockedlag").data, F = Q.dwg_dynapi_entity_value(A, "plotflag").data, h = Q.dwg_dynapi_entity_value(A, "linewt").data, L = Q.dwg_dynapi_entity_value(A, "color").data, i = L.method;
7902
7903
  let c = 256, H = 16777215;
7903
- return R === 195 || (L.rgb >>> 24 & 255) === 195 ? c = L.rgb & 255 : R == 194 || (L.rgb >>> 24 & 255) === 194 ? H = L.rgb & 16777215 : L.index >= 1 && L.index <= 255 && (c = L.index), {
7904
+ return i === 195 || (L.rgb >>> 24 & 255) === 195 ? c = L.rgb & 255 : i == 194 || (L.rgb >>> 24 & 255) === 194 ? H = L.rgb & 16777215 : L.index >= 1 && L.index <= 255 && (c = L.index), {
7904
7905
  ...D,
7905
7906
  standardFlag: o,
7906
7907
  colorIndex: c,
@@ -7911,7 +7912,7 @@ class jB {
7911
7912
  frozen: w != 0,
7912
7913
  off: k != 0,
7913
7914
  frozenInNew: U != 0,
7914
- locked: i != 0,
7915
+ locked: y != 0,
7915
7916
  plotFlag: F,
7916
7917
  lineweight: h,
7917
7918
  plotStyleNameObjectId: "",
@@ -7919,7 +7920,7 @@ class jB {
7919
7920
  };
7920
7921
  }
7921
7922
  convertLineType(A, C) {
7922
- const Q = this.libredwg, D = this.getCommonTableEntryAttrs(A, C), o = Q.dwg_dynapi_entity_value(A, "flag").data, w = Q.dwg_dynapi_entity_value(A, "description").data, k = Q.dwg_dynapi_entity_value(A, "numdashes").data, U = Q.dwg_dynapi_entity_value(A, "pattern_len").data, i = Q.dwg_dynapi_entity_value(A, "dashes").data, F = i ? Q.dwg_ptr_to_ltype_dash_array(i, k) : [];
7923
+ const Q = this.libredwg, D = this.getCommonTableEntryAttrs(A, C), o = Q.dwg_dynapi_entity_value(A, "flag").data, w = Q.dwg_dynapi_entity_value(A, "description").data, k = Q.dwg_dynapi_entity_value(A, "numdashes").data, U = Q.dwg_dynapi_entity_value(A, "pattern_len").data, y = Q.dwg_dynapi_entity_value(A, "dashes").data, F = y ? Q.dwg_ptr_to_ltype_dash_array(y, k) : [];
7923
7924
  return {
7924
7925
  ...D,
7925
7926
  description: w,
@@ -7950,7 +7951,7 @@ class jB {
7950
7951
  const Q = this.libredwg, D = this.getCommonTableEntryAttrs(A, C), o = Q.dwg_dynapi_entity_value(A, "flag").data, w = Q.dwg_dynapi_entity_value(A, "width_factor").data, k = Q.dwg_dynapi_entity_value(A, "oblique_angle").data, U = Q.dwg_dynapi_entity_value(
7951
7952
  A,
7952
7953
  "generation"
7953
- ).data, i = Q.dwg_dynapi_entity_value(A, "last_height").data, F = Q.dwg_dynapi_entity_value(A, "font_file").data, h = Q.dwg_dynapi_entity_value(A, "bigfont_file").data;
7954
+ ).data, y = Q.dwg_dynapi_entity_value(A, "last_height").data, F = Q.dwg_dynapi_entity_value(A, "font_file").data, h = Q.dwg_dynapi_entity_value(A, "bigfont_file").data;
7954
7955
  return {
7955
7956
  ...D,
7956
7957
  standardFlag: o,
@@ -7959,22 +7960,22 @@ class jB {
7959
7960
  widthFactor: w,
7960
7961
  obliqueAngle: k,
7961
7962
  textGenerationFlag: U,
7962
- lastHeight: i,
7963
+ lastHeight: y,
7963
7964
  font: F,
7964
7965
  bigFont: h
7965
7966
  };
7966
7967
  }
7967
7968
  convertViewport(A, C) {
7968
- const Q = this.libredwg, D = this.getCommonTableEntryAttrs(A, C), o = Q.dwg_dynapi_entity_value(A, "flag").data, w = Q.dwg_dynapi_entity_value(A, "VIEWSIZE").data, k = Q.dwg_dynapi_entity_value(A, "VIEWCTR").data, U = Q.dwg_dynapi_entity_value(A, "view_target").data, i = Q.dwg_dynapi_entity_value(
7969
+ const Q = this.libredwg, D = this.getCommonTableEntryAttrs(A, C), o = Q.dwg_dynapi_entity_value(A, "flag").data, w = Q.dwg_dynapi_entity_value(A, "VIEWSIZE").data, k = Q.dwg_dynapi_entity_value(A, "VIEWCTR").data, U = Q.dwg_dynapi_entity_value(A, "view_target").data, y = Q.dwg_dynapi_entity_value(
7969
7970
  A,
7970
7971
  "VIEWDIR"
7971
7972
  ).data, F = Q.dwg_dynapi_entity_value(A, "view_twist").data, h = Q.dwg_dynapi_entity_value(A, "lens_length").data, L = Q.dwg_dynapi_entity_value(
7972
7973
  A,
7973
7974
  "front_clip_z"
7974
- ).data, R = Q.dwg_dynapi_entity_value(
7975
+ ).data, i = Q.dwg_dynapi_entity_value(
7975
7976
  A,
7976
7977
  "back_clip_z"
7977
- ).data, c = Q.dwg_dynapi_entity_value(A, "VIEWMODE").data, H = Q.dwg_dynapi_entity_value(A, "render_mode").data, s = Q.dwg_dynapi_entity_value(A, "use_default_lights").data != 0, a = Q.dwg_dynapi_entity_value(
7978
+ ).data, c = Q.dwg_dynapi_entity_value(A, "VIEWMODE").data, H = Q.dwg_dynapi_entity_value(A, "render_mode").data, S = Q.dwg_dynapi_entity_value(A, "use_default_lights").data != 0, s = Q.dwg_dynapi_entity_value(
7978
7979
  A,
7979
7980
  "default_lightning_type"
7980
7981
  ).data, v = Q.dwg_dynapi_entity_value(A, "brightness").data, V = Q.dwg_dynapi_entity_value(A, "contrast").data, O = Q.dwg_dynapi_entity_value(
@@ -7983,7 +7984,7 @@ class jB {
7983
7984
  ).data, z = Q.dwg_dynapi_entity_value(A, "lower_left").data, f = Q.dwg_dynapi_entity_value(
7984
7985
  A,
7985
7986
  "upper_right"
7986
- ).data, q = Q.dwg_dynapi_entity_value(A, "circle_zoom").data, W = Q.dwg_dynapi_entity_value(A, "UCSICON").data, AA = Q.dwg_dynapi_entity_value(A, "GRIDUNIT").data, EA = Q.dwg_dynapi_entity_value(A, "SNAPANG").data, P = Q.dwg_dynapi_entity_value(A, "SNAPBASE").data, d = Q.dwg_dynapi_entity_value(A, "SNAPUNIT").data, e = Q.dwg_dynapi_entity_value(A, "ucsorg").data, iA = Q.dwg_dynapi_entity_value(A, "ucsxdir").data, MA = Q.dwg_dynapi_entity_value(A, "ucsydir").data, zA = Q.dwg_dynapi_entity_value(A, "ucs_elevation").data, TA = Q.dwg_dynapi_entity_value(A, "grid_major").data, RA = Q.dwg_dynapi_entity_value(A, "background").data, VA = RA ? DA(Q.dwg_ref_get_absref(RA)) : void 0, vA = Q.dwg_dynapi_entity_value(A, "visualstyle").data, nA = vA ? DA(Q.dwg_ref_get_absref(vA)) : void 0;
7987
+ ).data, q = Q.dwg_dynapi_entity_value(A, "circle_zoom").data, W = Q.dwg_dynapi_entity_value(A, "UCSICON").data, AA = Q.dwg_dynapi_entity_value(A, "GRIDUNIT").data, EA = Q.dwg_dynapi_entity_value(A, "SNAPANG").data, P = Q.dwg_dynapi_entity_value(A, "SNAPBASE").data, d = Q.dwg_dynapi_entity_value(A, "SNAPUNIT").data, e = Q.dwg_dynapi_entity_value(A, "ucsorg").data, yA = Q.dwg_dynapi_entity_value(A, "ucsxdir").data, MA = Q.dwg_dynapi_entity_value(A, "ucsydir").data, zA = Q.dwg_dynapi_entity_value(A, "ucs_elevation").data, TA = Q.dwg_dynapi_entity_value(A, "grid_major").data, iA = Q.dwg_dynapi_entity_value(A, "background").data, VA = iA ? DA(Q.dwg_ref_get_absref(iA)) : void 0, vA = Q.dwg_dynapi_entity_value(A, "visualstyle").data, nA = vA ? DA(Q.dwg_ref_get_absref(vA)) : void 0;
7987
7988
  return {
7988
7989
  ...D,
7989
7990
  standardFlag: o,
@@ -7993,11 +7994,11 @@ class jB {
7993
7994
  snapBasePoint: P,
7994
7995
  snapSpacing: d,
7995
7996
  gridSpacing: AA,
7996
- viewDirectionFromTarget: i,
7997
+ viewDirectionFromTarget: y,
7997
7998
  viewTarget: U,
7998
7999
  lensLength: h,
7999
8000
  frontClippingPlane: L,
8000
- backClippingPlane: R,
8001
+ backClippingPlane: i,
8001
8002
  viewHeight: w,
8002
8003
  snapRotationAngle: EA,
8003
8004
  viewTwistAngle: F,
@@ -8010,7 +8011,7 @@ class jB {
8010
8011
  viewMode: c,
8011
8012
  ucsIconSetting: W,
8012
8013
  ucsOrigin: e,
8013
- ucsXAxis: iA,
8014
+ ucsXAxis: yA,
8014
8015
  ucsYAxis: MA,
8015
8016
  orthographicType: 0,
8016
8017
  // TODO: Set the correct value
@@ -8021,8 +8022,8 @@ class jB {
8021
8022
  backgroundObjectId: VA,
8022
8023
  // shadePlotObjectId: undefined,
8023
8024
  visualStyleObjectId: nA,
8024
- isDefaultLightingOn: s,
8025
- defaultLightingType: a,
8025
+ isDefaultLightingOn: S,
8026
+ defaultLightingType: s,
8026
8027
  brightness: v,
8027
8028
  contrast: V,
8028
8029
  // TODO: Not sure whether 'index' or 'rgb' should be used
@@ -8041,12 +8042,12 @@ class jB {
8041
8042
  const Q = this.libredwg, D = this.getCommonObjectAttrs(C), o = Q.dwg_dynapi_entity_value(A, "is_hardowner").data, w = Q.dwg_dynapi_entity_value(A, "cloning").data, k = Q.dwg_dynapi_entity_value(A, "numitems").data, U = Q.dwg_dynapi_entity_value(
8042
8043
  A,
8043
8044
  "itemhandles"
8044
- ).data, i = Q.dwg_ptr_to_object_ref_array(
8045
+ ).data, y = Q.dwg_ptr_to_object_ref_array(
8045
8046
  U,
8046
8047
  k
8047
8048
  ), F = Q.dwg_object_dictionary_get_texts(C), h = {};
8048
- return i.forEach(
8049
- (L, R) => h[F[R]] = DA(L.absolute_ref)
8049
+ return y.forEach(
8050
+ (L, i) => h[F[i]] = DA(L.absolute_ref)
8050
8051
  ), {
8051
8052
  ...D,
8052
8053
  isHardOwner: !!o,
@@ -8055,21 +8056,21 @@ class jB {
8055
8056
  };
8056
8057
  }
8057
8058
  convertImageDef(A, C) {
8058
- const Q = this.libredwg, D = this.getCommonObjectAttrs(C), o = Q.dwg_dynapi_entity_value(A, "image_size").data, w = Q.dwg_dynapi_entity_value(A, "file_path").data, k = Q.dwg_dynapi_entity_value(A, "is_loaded").data, U = Q.dwg_dynapi_entity_value(A, "pixel_size").data, i = Q.dwg_dynapi_entity_value(A, "resunits").data;
8059
+ const Q = this.libredwg, D = this.getCommonObjectAttrs(C), o = Q.dwg_dynapi_entity_value(A, "image_size").data, w = Q.dwg_dynapi_entity_value(A, "file_path").data, k = Q.dwg_dynapi_entity_value(A, "is_loaded").data, U = Q.dwg_dynapi_entity_value(A, "pixel_size").data, y = Q.dwg_dynapi_entity_value(A, "resunits").data;
8059
8060
  return {
8060
8061
  ...D,
8061
8062
  fileName: w,
8062
8063
  size: o,
8063
8064
  sizeOfOnePixel: U,
8064
8065
  isLoaded: k,
8065
- resolutionUnits: i
8066
+ resolutionUnits: y
8066
8067
  };
8067
8068
  }
8068
8069
  convertLayout(A, C) {
8069
- const Q = this.libredwg, D = this.getCommonObjectAttrs(C), o = Q.dwg_dynapi_entity_value(A, "layout_name").data, w = Q.dwg_dynapi_entity_value(A, "tab_order").data, k = Q.dwg_dynapi_entity_value(A, "layout_flags").data, U = Q.dwg_dynapi_entity_value(A, "INSBASE").data, i = Q.dwg_dynapi_entity_value(A, "LIMMIN").data, F = Q.dwg_dynapi_entity_value(A, "LIMMAX").data, h = Q.dwg_dynapi_entity_value(A, "UCSORG").data, L = Q.dwg_dynapi_entity_value(A, "UCSXDIR").data, R = Q.dwg_dynapi_entity_value(A, "UCSYDIR").data, c = Q.dwg_dynapi_entity_value(
8070
+ const Q = this.libredwg, D = this.getCommonObjectAttrs(C), o = Q.dwg_dynapi_entity_value(A, "layout_name").data, w = Q.dwg_dynapi_entity_value(A, "tab_order").data, k = Q.dwg_dynapi_entity_value(A, "layout_flags").data, U = Q.dwg_dynapi_entity_value(A, "INSBASE").data, y = Q.dwg_dynapi_entity_value(A, "LIMMIN").data, F = Q.dwg_dynapi_entity_value(A, "LIMMAX").data, h = Q.dwg_dynapi_entity_value(A, "UCSORG").data, L = Q.dwg_dynapi_entity_value(A, "UCSXDIR").data, i = Q.dwg_dynapi_entity_value(A, "UCSYDIR").data, c = Q.dwg_dynapi_entity_value(
8070
8071
  A,
8071
8072
  "UCSORTHOVIEW"
8072
- ).data, H = Q.dwg_dynapi_entity_value(A, "EXTMIN").data, s = Q.dwg_dynapi_entity_value(A, "EXTMAX").data, a = Q.dwg_dynapi_entity_value(A, "ucs_elevation").data, v = Q.dwg_dynapi_entity_value(
8073
+ ).data, H = Q.dwg_dynapi_entity_value(A, "EXTMIN").data, S = Q.dwg_dynapi_entity_value(A, "EXTMAX").data, s = Q.dwg_dynapi_entity_value(A, "ucs_elevation").data, v = Q.dwg_dynapi_entity_value(
8073
8074
  A,
8074
8075
  "block_header"
8075
8076
  ).data, V = DA(
@@ -8085,15 +8086,15 @@ class jB {
8085
8086
  layoutName: o,
8086
8087
  controlFlag: k,
8087
8088
  tabOrder: w,
8088
- minLimit: i,
8089
+ minLimit: y,
8089
8090
  maxLimit: F,
8090
8091
  insertionPoint: U,
8091
8092
  minExtent: H,
8092
- maxExtent: s,
8093
- elevation: a,
8093
+ maxExtent: S,
8094
+ elevation: s,
8094
8095
  ucsOrigin: h,
8095
8096
  ucsXAxis: L,
8096
- ucsYAxis: R,
8097
+ ucsYAxis: i,
8097
8098
  orthographicType: c,
8098
8099
  paperSpaceTableId: V,
8099
8100
  viewportId: z,
@@ -8110,7 +8111,7 @@ class jB {
8110
8111
  ).data, k = Q.dwg_dynapi_entity_value(A, "clip_verts").data, U = Q.dwg_ptr_to_point2d_array(
8111
8112
  k,
8112
8113
  w
8113
- ), i = Q.dwg_dynapi_entity_value(
8114
+ ), y = Q.dwg_dynapi_entity_value(
8114
8115
  A,
8115
8116
  "extrusion"
8116
8117
  ).data, F = Q.dwg_dynapi_entity_value(
@@ -8122,17 +8123,17 @@ class jB {
8122
8123
  ).data, L = Q.dwg_dynapi_entity_value(
8123
8124
  A,
8124
8125
  "front_clip_z"
8125
- ).data, R = Q.dwg_dynapi_entity_value(
8126
+ ).data, i = Q.dwg_dynapi_entity_value(
8126
8127
  A,
8127
8128
  "back_clip_on"
8128
8129
  ).data, c = Q.dwg_dynapi_entity_value(
8129
8130
  A,
8130
8131
  "back_clip_z"
8131
- ).data, H = Q.dwg_dynapi_entity_value(A, "transform").data, s = Q.dwg_ptr_to_double_array(H, 12), a = Q.dwg_dynapi_entity_value(
8132
+ ).data, H = Q.dwg_dynapi_entity_value(A, "transform").data, S = Q.dwg_ptr_to_double_array(H, 12), s = Q.dwg_dynapi_entity_value(
8132
8133
  A,
8133
8134
  "inverse_transform"
8134
8135
  ).data, v = Q.dwg_ptr_to_double_array(
8135
- a,
8136
+ s,
8136
8137
  12
8137
8138
  );
8138
8139
  return {
@@ -8140,13 +8141,13 @@ class jB {
8140
8141
  origin: o,
8141
8142
  numberOfPointsOnClipBoundary: w,
8142
8143
  vertices: U,
8143
- extrusionDirection: i,
8144
+ extrusionDirection: y,
8144
8145
  clipBoundaryVisible: !!F,
8145
8146
  frontClippingPlaneFlag: !!h,
8146
8147
  frontClippingPlaneDistance: L,
8147
- backClippingPlaneFlag: !!R,
8148
+ backClippingPlaneFlag: !!i,
8148
8149
  backClippingPlaneDistance: c,
8149
- matrix: s,
8150
+ matrix: S,
8150
8151
  invertBlockMatrix: v
8151
8152
  };
8152
8153
  }
@@ -8250,33 +8251,33 @@ function vM(g, A, C, Q, D) {
8250
8251
  throw new Error("degree must be less than or equal to point count - 1");
8251
8252
  const k = D ?? new Array(o).fill(1), U = Q ?? (() => {
8252
8253
  const H = [];
8253
- for (let s = 0; s < o + A + 1; s++)
8254
- H.push(s);
8254
+ for (let S = 0; S < o + A + 1; S++)
8255
+ H.push(S);
8255
8256
  return H;
8256
8257
  })();
8257
8258
  if (U.length !== o + A + 1)
8258
8259
  throw new Error("bad knot vector length");
8259
- const i = [A, U.length - 1 - A], F = U[i[0]], h = U[i[1]];
8260
+ const y = [A, U.length - 1 - A], F = U[y[0]], h = U[y[1]];
8260
8261
  g = g * (h - F) + F, g = Math.max(g, F), g = Math.min(g, h);
8261
- let L = i[0];
8262
- for (; L < i[1] && !(g >= U[L] && g <= U[L + 1]); L++)
8262
+ let L = y[0];
8263
+ for (; L < y[1] && !(g >= U[L] && g <= U[L + 1]); L++)
8263
8264
  ;
8264
- const R = new Array(o);
8265
+ const i = new Array(o);
8265
8266
  for (let H = 0; H < o; H++) {
8266
- R[H] = new Array(w + 1);
8267
- for (let s = 0; s < w; s++)
8268
- R[H][s] = C[H][s] * k[H];
8269
- R[H][w] = k[H];
8267
+ i[H] = new Array(w + 1);
8268
+ for (let S = 0; S < w; S++)
8269
+ i[H][S] = C[H][S] * k[H];
8270
+ i[H][w] = k[H];
8270
8271
  }
8271
8272
  for (let H = 1; H <= A + 1; H++)
8272
- for (let s = L; s > L - A - 1 + H; s--) {
8273
- const a = U[s + A + 1 - H] - U[s], v = a === 0 ? 0 : (g - U[s]) / a;
8273
+ for (let S = L; S > L - A - 1 + H; S--) {
8274
+ const s = U[S + A + 1 - H] - U[S], v = s === 0 ? 0 : (g - U[S]) / s;
8274
8275
  for (let V = 0; V < w + 1; V++)
8275
- R[s][V] = (1 - v) * R[s - 1][V] + v * R[s][V];
8276
+ i[S][V] = (1 - v) * i[S - 1][V] + v * i[S][V];
8276
8277
  }
8277
8278
  const c = new Array(w);
8278
8279
  for (let H = 0; H < w; H++)
8279
- c[H] = OM(R[L][H] / R[L][w], -9);
8280
+ c[H] = OM(i[L][H] / i[L][w], -9);
8280
8281
  return c;
8281
8282
  }
8282
8283
  function OM(g, A) {
@@ -8689,10 +8690,10 @@ const YC = {
8689
8690
  16777215,
8690
8691
  0
8691
8692
  ];
8692
- function iQ(g, A, C) {
8693
+ function yQ(g, A, C) {
8693
8694
  return Math.max(A, Math.min(C, g));
8694
8695
  }
8695
- const aE = class SE {
8696
+ const sE = class aE {
8696
8697
  constructor() {
8697
8698
  IA(this, "_colorIndex"), IA(this, "_color"), IA(this, "_colorName"), this._colorIndex = 256, this._color = null, this._colorName = null;
8698
8699
  }
@@ -8700,7 +8701,7 @@ const aE = class SE {
8700
8701
  return this._color;
8701
8702
  }
8702
8703
  set color(A) {
8703
- A == null ? this._color = null : (this._color = Math.round(iQ(A, 0, 256 * 256 * 256 - 1)), this._colorIndex = this.getColorIndexByValue(this._color), this._colorName = this.getColorNameByValue(this._color));
8704
+ A == null ? this._color = null : (this._color = Math.round(yQ(A, 0, 256 * 256 * 256 - 1)), this._colorIndex = this.getColorIndexByValue(this._color), this._colorName = this.getColorNameByValue(this._color));
8704
8705
  }
8705
8706
  get hexColor() {
8706
8707
  if (this._color && this._color > 0 && this._color <= 16777215) {
@@ -8735,7 +8736,7 @@ const aE = class SE {
8735
8736
  return this._colorIndex;
8736
8737
  }
8737
8738
  set colorIndex(A) {
8738
- A == null ? this._colorIndex = null : (this._colorIndex = iQ(A, 0, 256), this._color = IB[A], this._colorName = this.getColorNameByValue(this._color));
8739
+ A == null ? this._colorIndex = null : (this._colorIndex = yQ(A, 0, 256), this._color = IB[A], this._colorName = this.getColorNameByValue(this._color));
8739
8740
  }
8740
8741
  get colorName() {
8741
8742
  return this._colorName;
@@ -8769,7 +8770,7 @@ const aE = class SE {
8769
8770
  return this.setRGB(A, A, A), this;
8770
8771
  }
8771
8772
  setRGB(A, C, Q) {
8772
- const D = Math.round(iQ(A, 0, 255)), o = Math.round(iQ(C, 0, 255)), w = Math.round(iQ(Q, 0, 255));
8773
+ const D = Math.round(yQ(A, 0, 255)), o = Math.round(yQ(C, 0, 255)), w = Math.round(yQ(Q, 0, 255));
8773
8774
  return this.color = (D << 16) + (o << 8) + w, this;
8774
8775
  }
8775
8776
  setColorName(A) {
@@ -8777,7 +8778,7 @@ const aE = class SE {
8777
8778
  return C !== void 0 && (this.color = C), this;
8778
8779
  }
8779
8780
  clone() {
8780
- const A = new SE();
8781
+ const A = new aE();
8781
8782
  return A.colorIndex = this.colorIndex, A.color = this.color, A._colorName = this._colorName, this;
8782
8783
  }
8783
8784
  copy(A) {
@@ -8803,8 +8804,8 @@ const aE = class SE {
8803
8804
  return null;
8804
8805
  }
8805
8806
  };
8806
- IA(aE, "NAMES", YC);
8807
- let lM = aE;
8807
+ IA(sE, "NAMES", YC);
8808
+ let lM = sE;
8808
8809
  class PA {
8809
8810
  constructor(A, C) {
8810
8811
  IA(this, "x"), IA(this, "y"), this.x = A, this.y = C;
@@ -8829,16 +8830,16 @@ class PA {
8829
8830
  function bM(g, A, C, Q = 5) {
8830
8831
  let D, o, w;
8831
8832
  C < 0 ? (D = Math.atan(-C) * 4, o = new PA(g.x, g.y), w = new PA(A.x, A.y)) : (D = Math.atan(C) * 4, o = new PA(A.x, A.y), w = new PA(g.x, g.y));
8832
- const k = w.sub(o), U = k.length(), i = o.add(k.multiply(0.5)), F = Math.abs(U / 2 / Math.tan(D / 2)), h = k.norm(), L = new PA(
8833
+ const k = w.sub(o), U = k.length(), y = o.add(k.multiply(0.5)), F = Math.abs(U / 2 / Math.tan(D / 2)), h = k.norm(), L = new PA(
8833
8834
  h.x * Math.cos(Math.PI / 2) - h.y * Math.sin(Math.PI / 2),
8834
8835
  h.y * Math.cos(Math.PI / 2) + h.x * Math.sin(Math.PI / 2)
8835
- ), R = D < Math.PI ? i.add(L.multiply(-F)) : i.add(L.multiply(F)), c = Math.atan2(w.y - R.y, w.x - R.x) / Math.PI * 180;
8836
- let H = Math.atan2(o.y - R.y, o.x - R.x) / Math.PI * 180;
8836
+ ), i = D < Math.PI ? y.add(L.multiply(-F)) : y.add(L.multiply(F)), c = Math.atan2(w.y - i.y, w.x - i.x) / Math.PI * 180;
8837
+ let H = Math.atan2(o.y - i.y, o.x - i.x) / Math.PI * 180;
8837
8838
  H < c && (H += 360);
8838
- const s = w.sub(R).length(), a = Math.floor(c / Q) * Q + Q, v = Math.ceil(H / Q) * Q - Q, V = [];
8839
- for (let O = a; O <= v; O += Q) {
8840
- const z = O / 180 * Math.PI, f = R.add(
8841
- new PA(Math.cos(z) * s, Math.sin(z) * s)
8839
+ const S = w.sub(i).length(), s = Math.floor(c / Q) * Q + Q, v = Math.ceil(H / Q) * Q - Q, V = [];
8840
+ for (let O = s; O <= v; O += Q) {
8841
+ const z = O / 180 * Math.PI, f = i.add(
8842
+ new PA(Math.cos(z) * S, Math.sin(z) * S)
8842
8843
  );
8843
8844
  V.push(f);
8844
8845
  }
@@ -8884,7 +8885,7 @@ class ZM {
8884
8885
  interpolateBSpline(A, C, Q, D = 25, o) {
8885
8886
  const w = [], k = A.map(
8886
8887
  (F) => [F.x, F.y]
8887
- ), U = [Q[C]], i = [
8888
+ ), U = [Q[C]], y = [
8888
8889
  Q[C],
8889
8890
  Q[Q.length - 1 - C]
8890
8891
  ];
@@ -8892,17 +8893,17 @@ class ZM {
8892
8893
  U[U.length - 1] !== Q[F] && U.push(Q[F]);
8893
8894
  for (let F = 1; F < U.length; ++F) {
8894
8895
  const h = U[F - 1], L = U[F];
8895
- for (let R = 0; R <= D; ++R) {
8896
- let H = (R / D * (L - h) + h - i[0]) / (i[1] - i[0]);
8896
+ for (let i = 0; i <= D; ++i) {
8897
+ let H = (i / D * (L - h) + h - y[0]) / (y[1] - y[0]);
8897
8898
  H = Math.max(0, Math.min(1, H));
8898
- const s = vM(
8899
+ const S = vM(
8899
8900
  H,
8900
8901
  C,
8901
8902
  k,
8902
8903
  Q,
8903
8904
  o
8904
8905
  );
8905
- w.push({ x: s[0], y: s[1] });
8906
+ w.push({ x: S[0], y: S[1] });
8906
8907
  }
8907
8908
  }
8908
8909
  return w;
@@ -8949,8 +8950,8 @@ class ZM {
8949
8950
  }).expandByPoint({
8950
8951
  x: Q.x + D,
8951
8952
  y: Q.y - A.length * C * 1.5
8952
- }), k = A.map((U, i) => {
8953
- const F = Q.x, h = Q.y - i * C * 1.5, L = `translate(${F},${h}) scale(1,-1) translate(${-F},${-h})`;
8953
+ }), k = A.map((U, y) => {
8954
+ const F = Q.x, h = Q.y - y * C * 1.5, L = `translate(${F},${h}) scale(1,-1) translate(${-F},${-h})`;
8954
8955
  return `<text x="${F}" y="${h}" font-size="${C}" text-anchor="${o}" transform="${L}">${U}</text>`;
8955
8956
  });
8956
8957
  return { bbox: w, element: k.join(`
@@ -8975,33 +8976,33 @@ class ZM {
8975
8976
  columnWidthArr: o,
8976
8977
  startPoint: w,
8977
8978
  cells: k
8978
- } = A, U = w.x, i = w.y, F = [];
8979
- for (let s = 0, a = i; s < C; s++) {
8980
- const v = D[s];
8979
+ } = A, U = w.x, y = w.y, F = [];
8980
+ for (let S = 0, s = y; S < C; S++) {
8981
+ const v = D[S];
8981
8982
  let V = U;
8982
8983
  for (let O = 0; O < Q; O++) {
8983
- const z = s * Q + O, f = k[z], q = o[O];
8984
- F.push({ x: V, y: a, width: q, height: v, cell: f, row: s, col: O }), V += q;
8984
+ const z = S * Q + O, f = k[z], q = o[O];
8985
+ F.push({ x: V, y: s, width: q, height: v, cell: f, row: S, col: O }), V += q;
8985
8986
  }
8986
- a += v;
8987
+ s += v;
8987
8988
  }
8988
- const h = F.map(({ x: s, y: a, width: v, height: V, cell: O }) => {
8989
+ const h = F.map(({ x: S, y: s, width: v, height: V, cell: O }) => {
8989
8990
  const z = [];
8990
8991
  O.topBorderVisibility && z.push(
8991
- `<line x1="${s}" y1="${a}" x2="${s + v}" y2="${a}" stroke="black" />`
8992
+ `<line x1="${S}" y1="${s}" x2="${S + v}" y2="${s}" stroke="black" />`
8992
8993
  ), O.bottomBorderVisibility && z.push(
8993
- `<line x1="${s}" y1="${a + V}" x2="${s + v}" y2="${a + V}" stroke="black" />`
8994
+ `<line x1="${S}" y1="${s + V}" x2="${S + v}" y2="${s + V}" stroke="black" />`
8994
8995
  ), O.leftBorderVisibility && z.push(
8995
- `<line x1="${s}" y1="${a}" x2="${s}" y2="${a + V}" stroke="black" />`
8996
+ `<line x1="${S}" y1="${s}" x2="${S}" y2="${s + V}" stroke="black" />`
8996
8997
  ), O.rightBorderVisibility && z.push(
8997
- `<line x1="${s + v}" y1="${a}" x2="${s + v}" y2="${a + V}" stroke="black" />`
8998
+ `<line x1="${S + v}" y1="${s}" x2="${S + v}" y2="${s + V}" stroke="black" />`
8998
8999
  );
8999
- const f = s + v / 2, q = a + V / 2 + O.textHeight / 3, W = `<text x="${f}" y="${q}" font-size="${O.textHeight}" text-anchor="middle" dominant-baseline="middle">${O.text}</text>`;
9000
+ const f = S + v / 2, q = s + V / 2 + O.textHeight / 3, W = `<text x="${f}" y="${q}" font-size="${O.textHeight}" text-anchor="middle" dominant-baseline="middle">${O.text}</text>`;
9000
9001
  return [...z, W].join(`
9001
9002
  `);
9002
9003
  }).join(`
9003
- `), L = o.reduce((s, a) => s + a, 0), R = D.reduce((s, a) => s + a, 0), c = new rA().expandByPoint({ x: U, y: i }).expandByPoint({ x: U + L, y: i + R }), H = `
9004
- <svg xmlns="http://www.w3.org/2000/svg" width="${L}" height="${R}" viewBox="${U} ${i} ${L} ${R}">
9004
+ `), L = o.reduce((S, s) => S + s, 0), i = D.reduce((S, s) => S + s, 0), c = new rA().expandByPoint({ x: U, y }).expandByPoint({ x: U + L, y: y + i }), H = `
9005
+ <svg xmlns="http://www.w3.org/2000/svg" width="${L}" height="${i}" viewBox="${U} ${y} ${L} ${i}">
9005
9006
  ${h}
9006
9007
  </svg>
9007
9008
  `.trim();
@@ -9039,7 +9040,7 @@ class ZM {
9039
9040
  };
9040
9041
  }
9041
9042
  ellipseOrArc(A, C, Q, D, o, w, k) {
9042
- const U = Math.sqrt(Q * Q + D * D), i = o * U, F = -Math.atan2(-D, Q), h = this.bboxEllipseOrArc(
9043
+ const U = Math.sqrt(Q * Q + D * D), y = o * U, F = -Math.atan2(-D, Q), h = this.bboxEllipseOrArc(
9043
9044
  A,
9044
9045
  C,
9045
9046
  Q,
@@ -9049,16 +9050,16 @@ class ZM {
9049
9050
  k
9050
9051
  );
9051
9052
  if (Math.abs(w - k) < 1e-9 || Math.abs(w - k + Math.PI * 2) < 1e-9) {
9052
- const L = `<g transform="rotate(${F / Math.PI * 180} ${A}, ${C})"><ellipse cx="${A}" cy="${C}" rx="${U}" ry="${i}" /></g>`;
9053
+ const L = `<g transform="rotate(${F / Math.PI * 180} ${A}, ${C})"><ellipse cx="${A}" cy="${C}" rx="${U}" ry="${y}" /></g>`;
9053
9054
  return { bbox: h, element: L };
9054
9055
  } else {
9055
9056
  const L = this.rotate(
9056
- { x: Math.cos(w) * U, y: Math.sin(w) * i },
9057
+ { x: Math.cos(w) * U, y: Math.sin(w) * y },
9057
9058
  F
9058
- ), R = { x: A + L.x, y: C + L.y }, c = this.rotate(
9059
- { x: Math.cos(k) * U, y: Math.sin(k) * i },
9059
+ ), i = { x: A + L.x, y: C + L.y }, c = this.rotate(
9060
+ { x: Math.cos(k) * U, y: Math.sin(k) * y },
9060
9061
  F
9061
- ), H = { x: A + c.x, y: C + c.y }, a = (k < w ? k + Math.PI * 2 : k) - w < Math.PI ? 0 : 1, V = `<path d="${`M ${R.x} ${R.y} A ${U} ${i} ${F / Math.PI * 180} ${a} 1 ${H.x} ${H.y}`}" />`;
9062
+ ), H = { x: A + c.x, y: C + c.y }, s = (k < w ? k + Math.PI * 2 : k) - w < Math.PI ? 0 : 1, V = `<path d="${`M ${i.x} ${i.y} A ${U} ${y} ${F / Math.PI * 180} ${s} 1 ${H.x} ${H.y}`}" />`;
9062
9063
  return { bbox: h, element: V };
9063
9064
  }
9064
9065
  }
@@ -9067,24 +9068,24 @@ class ZM {
9067
9068
  for (; k <= w; ) k += Math.PI * 2;
9068
9069
  const U = [];
9069
9070
  if (Math.abs(Q) < 1e-12 || Math.abs(D) < 1e-12)
9070
- for (let R = 0; R < 4; R++)
9071
- U.push(R / 2 * Math.PI);
9071
+ for (let i = 0; i < 4; i++)
9072
+ U.push(i / 2 * Math.PI);
9072
9073
  else
9073
9074
  U[0] = Math.atan(-D * o / Q) - Math.PI, U[1] = Math.atan(Q * o / D) - Math.PI, U[2] = U[0] - Math.PI, U[3] = U[1] - Math.PI;
9074
- for (let R = 4; R >= 0; R--) {
9075
- for (; U[R] < w; ) U[R] += Math.PI * 2;
9076
- U[R] > k && U.splice(R, 1);
9075
+ for (let i = 4; i >= 0; i--) {
9076
+ for (; U[i] < w; ) U[i] += Math.PI * 2;
9077
+ U[i] > k && U.splice(i, 1);
9077
9078
  }
9078
9079
  U.push(w), U.push(k);
9079
- const i = U.map((R) => ({ x: Math.cos(R), y: Math.sin(R) })), F = [
9080
+ const y = U.map((i) => ({ x: Math.cos(i), y: Math.sin(i) })), F = [
9080
9081
  [Q, -D * o],
9081
9082
  [D, Q * o]
9082
9083
  ];
9083
- return i.map((R) => ({
9084
- x: R.x * F[0][0] + R.y * F[0][1] + A,
9085
- y: R.x * F[1][0] + R.y * F[1][1] + C
9084
+ return y.map((i) => ({
9085
+ x: i.x * F[0][0] + i.y * F[0][1] + A,
9086
+ y: i.x * F[1][0] + i.y * F[1][1] + C
9086
9087
  })).reduce(
9087
- (R, c) => (R.expandByPoint(c), R),
9088
+ (i, c) => (i.expandByPoint(c), i),
9088
9089
  new rA()
9089
9090
  );
9090
9091
  }
@@ -9144,8 +9145,8 @@ class ZM {
9144
9145
  (w, k) => {
9145
9146
  const U = this.entityToBoundsAndElement(k);
9146
9147
  if (U) {
9147
- const { bbox: i, element: F } = U;
9148
- i.valid && (w.bbox.expandByPoint(i.min), w.bbox.expandByPoint(i.max));
9148
+ const { bbox: y, element: F } = U;
9149
+ y.valid && (w.bbox.expandByPoint(y.min), w.bbox.expandByPoint(y.max));
9149
9150
  const h = this.getEntityColor(C.tables.LAYER.entries, k), L = k.type == "TEXT" || k.type == "MTEXT" ? h.cssColor : "none";
9150
9151
  h.isByBlock ? w.elements.push(`<g id="${k.handle}">${F}</g>`) : w.elements.push(
9151
9152
  `<g id="${k.handle}" stroke="${h.cssColor}" fill="${L}">${F}</g>`
@@ -9274,7 +9275,7 @@ class ZM {
9274
9275
  </svg>`;
9275
9276
  }
9276
9277
  }
9277
- const sE = class cE {
9278
+ const SE = class cE {
9278
9279
  constructor(A) {
9279
9280
  return IA(this, "wasmInstance"), IA(this, "decoder"), this.wasmInstance = A, new Proxy(this, {
9280
9281
  get: (C, Q, D) => Q in C ? Reflect.get(C, Q, D) : Reflect.get(C.wasmInstance, Q, D)
@@ -10230,8 +10231,8 @@ const sE = class cE {
10230
10231
  return this.createByWasmInstance(C);
10231
10232
  }
10232
10233
  };
10233
- IA(sE, "instance");
10234
- let fM = sE;
10234
+ IA(SE, "instance");
10235
+ let fM = SE;
10235
10236
  async function qM(g) {
10236
10237
  const A = await fM.create();
10237
10238
  if (A == null)
@@ -10242,7 +10243,7 @@ async function qM(g) {
10242
10243
  const Q = A.convertEx(C);
10243
10244
  return A.dwg_free(C), Q;
10244
10245
  }
10245
- class pM extends aM {
10246
+ class pM extends sM {
10246
10247
  async executeTask(A) {
10247
10248
  const C = await qM(A);
10248
10249
  return {