@mlightcad/cad-simple-viewer 1.0.15 → 1.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { AcCmEventManager as te, AcGePoint2d as V, AcGeBox2d as ue, AcCmColor as lr, AcGeBox3d as js, AcDbDatabase as po, AcDbFileType as rn, AcGeMathUtil as vt, AcGeVector3d as Kt, AcGeGeometryUtil as fo, AcGeVector2d as Wn, acdbHostApplicationServices as Xs, AcDbViewport as $s, AcDbRasterImage as Ys, AcDbRay as qs, AcDbXline as Zs, AcDbHatch as jn, AcGePolyline2d as Qs, AcDbLine as Js, AcDbTextStyleTableRecord as Ks, AcDbMText as ei, AcGiMTextAttachmentPoint as go, AcGePoint3d as Xn, AcGeLoop2d as ti, AcGeCircArc2d as ni, AcGeLine2d as ri, AcDbArc as si, AcGeLine3d as dt, AcDbDatabaseConverter as mo, createWorkerApi as yo, AcDbLinetypeTableRecord as vo, AcDbDimStyleTableRecord as bo, AcDbLayerTableRecord as xo, AcDbViewportTableRecord as So, AcDbBlockTableRecord as wo, AcDbBatchProcessing as _o, AcDbLayout as To, AcDbRasterImageDef as Io, AcDbCircle as Co, AcDbEllipse as ko, AcDbSpline as Er, AcDbPoint as Eo, AcDbTrace as Mo, AcDbPolyline as Mr, AcGeEllipseArc2d as Bo, AcGeSpline3d as Br, AcDbTable as Ao, AcDbText as Lo, AcDbLeader as Oo, AcDbAlignedDimension as Do, AcDb3PointAngularDimension as Ro, AcDbOrdinateDimension as Uo, AcDbRadialDimension as Fo, AcDbDiametricDimension as Po, AcDbBlockReference as Go, AcDbDxfConverter as No, AcDbDatabaseConverterManager as Ar } from "@mlightcad/data-model";
1
+ import { AcCmEventManager as te, AcGePoint2d as V, AcGeBox2d as ue, AcCmColor as lr, AcGeBox3d as js, AcDbDatabase as po, AcDbFileType as rn, AcGeMathUtil as vt, AcGeVector3d as Kt, AcGeGeometryUtil as fo, AcGeVector2d as Wn, acdbHostApplicationServices as Xs, AcDbViewport as $s, AcDbRasterImage as Ys, AcDbRay as qs, AcDbXline as Zs, AcDbHatch as jn, AcGePolyline2d as Qs, AcDbLine as Js, AcDbTextStyleTableRecord as Ks, AcDbMText as ei, AcGiMTextAttachmentPoint as go, AcGePoint3d as Xn, AcGeLoop2d as ti, AcGeCircArc2d as ni, AcGeLine2d as ri, AcDbArc as si, AcGeLine3d as dt, AcDbDatabaseConverter as mo, createWorkerApi as yo, AcDbLinetypeTableRecord as vo, AcDbDimStyleTableRecord as bo, AcDbLayerTableRecord as xo, AcDbViewportTableRecord as So, AcDbBlockTableRecord as wo, AcDbBatchProcessing as _o, AcDbLayout as To, AcDbRasterImageDef as Co, AcDbCircle as Io, AcDbEllipse as ko, AcDbSpline as Er, AcDbPoint as Eo, AcDbTrace as Mo, AcDbPolyline as Mr, AcGeEllipseArc2d as Ao, AcGeSpline3d as Ar, AcDbTable as Bo, AcDbText as Lo, AcDbLeader as Oo, AcDbAlignedDimension as Do, AcDb3PointAngularDimension as Ro, AcDbOrdinateDimension as Uo, AcDbRadialDimension as Fo, AcDbDiametricDimension as Po, AcDbBlockReference as Go, AcDbDxfConverter as No, AcDbDatabaseConverterManager as Br } from "@mlightcad/data-model";
2
2
  import { find as zo, findIndex as Vo, defaults as Ho } from "lodash-es";
3
3
  import * as g from "three";
4
4
  import { BufferGeometry as sn, ExtrudeGeometry as Wo, BufferAttribute as jo, ShapePath as Xo } from "three";
@@ -1811,7 +1811,7 @@ function Ta() {
1811
1811
  IDBTransaction
1812
1812
  ]);
1813
1813
  }
1814
- function Ia() {
1814
+ function Ca() {
1815
1815
  return Dr || (Dr = [
1816
1816
  IDBCursor.prototype.advance,
1817
1817
  IDBCursor.prototype.continue,
@@ -1819,7 +1819,7 @@ function Ia() {
1819
1819
  ]);
1820
1820
  }
1821
1821
  const Yn = /* @__PURE__ */ new WeakMap(), wn = /* @__PURE__ */ new WeakMap(), mn = /* @__PURE__ */ new WeakMap();
1822
- function Ca(n) {
1822
+ function Ia(n) {
1823
1823
  const e = new Promise((t, r) => {
1824
1824
  const s = () => {
1825
1825
  n.removeEventListener("success", i), n.removeEventListener("error", o);
@@ -1868,7 +1868,7 @@ function ai(n) {
1868
1868
  qn = n(qn);
1869
1869
  }
1870
1870
  function Ea(n) {
1871
- return Ia().includes(n) ? function(...e) {
1871
+ return Ca().includes(n) ? function(...e) {
1872
1872
  return n.apply(Zn(this), e), We(this.request);
1873
1873
  } : function(...e) {
1874
1874
  return We(n.apply(Zn(this), e));
@@ -1879,14 +1879,14 @@ function Ma(n) {
1879
1879
  }
1880
1880
  function We(n) {
1881
1881
  if (n instanceof IDBRequest)
1882
- return Ca(n);
1882
+ return Ia(n);
1883
1883
  if (wn.has(n))
1884
1884
  return wn.get(n);
1885
1885
  const e = Ma(n);
1886
1886
  return e !== n && (wn.set(n, e), mn.set(e, n)), e;
1887
1887
  }
1888
1888
  const Zn = (n) => mn.get(n);
1889
- function Ba(n, e, { blocked: t, upgrade: r, blocking: s, terminated: i } = {}) {
1889
+ function Aa(n, e, { blocked: t, upgrade: r, blocking: s, terminated: i } = {}) {
1890
1890
  const o = indexedDB.open(n, e), a = We(o);
1891
1891
  return r && o.addEventListener("upgradeneeded", (c) => {
1892
1892
  r(We(o.result), c.oldVersion, c.newVersion, We(o.transaction), c);
@@ -1900,7 +1900,7 @@ function Ba(n, e, { blocked: t, upgrade: r, blocking: s, terminated: i } = {}) {
1900
1900
  }).catch(() => {
1901
1901
  }), a;
1902
1902
  }
1903
- const Aa = ["get", "getKey", "getAll", "getAllKeys", "count"], La = ["put", "add", "delete", "clear"], _n = /* @__PURE__ */ new Map();
1903
+ const Ba = ["get", "getKey", "getAll", "getAllKeys", "count"], La = ["put", "add", "delete", "clear"], _n = /* @__PURE__ */ new Map();
1904
1904
  function Rr(n, e) {
1905
1905
  if (!(n instanceof IDBDatabase && !(e in n) && typeof e == "string"))
1906
1906
  return;
@@ -1909,7 +1909,7 @@ function Rr(n, e) {
1909
1909
  const t = e.replace(/FromIndex$/, ""), r = e !== t, s = La.includes(t);
1910
1910
  if (
1911
1911
  // Bail if the target doesn't exist on the target. Eg, getAll isn't in Edge.
1912
- !(t in (r ? IDBIndex : IDBObjectStore).prototype) || !(s || Aa.includes(t))
1912
+ !(t in (r ? IDBIndex : IDBObjectStore).prototype) || !(s || Ba.includes(t))
1913
1913
  )
1914
1914
  return;
1915
1915
  const i = async function(o, ...a) {
@@ -2050,7 +2050,7 @@ const nt = {
2050
2050
  async getDatabase() {
2051
2051
  if (this.isClosing)
2052
2052
  throw new Error("Cannot perform operation while database is closing");
2053
- return this.db ? this.db : (this.db = await Ba(
2053
+ return this.db ? this.db : (this.db = await Aa(
2054
2054
  Se.DATABASE_NAME,
2055
2055
  Se.DATABASE_VERSION,
2056
2056
  {
@@ -2519,9 +2519,9 @@ function Va(n, e = 1e-4) {
2519
2519
  w.normalized
2520
2520
  );
2521
2521
  const L = n.morphAttributes[_];
2522
- L && (l[_] || (l[_] = []), L.forEach((T, C) => {
2522
+ L && (l[_] || (l[_] = []), L.forEach((T, I) => {
2523
2523
  const O = new T.array.constructor(T.count * T.itemSize);
2524
- l[_][C] = new T.constructor(O, T.itemSize, T.normalized);
2524
+ l[_][I] = new T.constructor(O, T.itemSize, T.normalized);
2525
2525
  }));
2526
2526
  }
2527
2527
  const p = e * 0.5, f = Math.log10(1 / e), m = Math.pow(10, f), y = p * m;
@@ -2529,18 +2529,18 @@ function Va(n, e = 1e-4) {
2529
2529
  const x = r ? r.getX(S) : S;
2530
2530
  let _ = "";
2531
2531
  for (let w = 0, L = a.length; w < L; w++) {
2532
- const T = a[w], C = n.getAttribute(T), O = C.itemSize;
2532
+ const T = a[w], I = n.getAttribute(T), O = I.itemSize;
2533
2533
  for (let G = 0; G < O; G++)
2534
- _ += `${~~(C[d[G]](x) * m + y)},`;
2534
+ _ += `${~~(I[d[G]](x) * m + y)},`;
2535
2535
  }
2536
2536
  if (_ in t)
2537
2537
  h.push(t[_]);
2538
2538
  else {
2539
2539
  for (let w = 0, L = a.length; w < L; w++) {
2540
- const T = a[w], C = n.getAttribute(T), O = n.morphAttributes[T], G = C.itemSize, Q = c[T], ee = l[T];
2540
+ const T = a[w], I = n.getAttribute(T), O = n.morphAttributes[T], G = I.itemSize, Q = c[T], ee = l[T];
2541
2541
  for (let Y = 0; Y < G; Y++) {
2542
2542
  const U = d[Y], N = u[Y];
2543
- if (Q[N](o, C[U](x)), O)
2543
+ if (Q[N](o, I[U](x)), O)
2544
2544
  for (let F = 0, H = O.length; F < H; F++)
2545
2545
  ee[F][N](o, O[F][U](x));
2546
2546
  }
@@ -2697,13 +2697,13 @@ String.prototype.codePointAt || function() {
2697
2697
  }) : String.prototype.codePointAt = e;
2698
2698
  }();
2699
2699
  var ur = 0, ui = -3;
2700
- function It() {
2700
+ function Ct() {
2701
2701
  this.table = new Uint16Array(16), this.trans = new Uint16Array(288);
2702
2702
  }
2703
2703
  function ja(n, e) {
2704
- this.source = n, this.sourceIndex = 0, this.tag = 0, this.bitcount = 0, this.dest = e, this.destLen = 0, this.ltree = new It(), this.dtree = new It();
2704
+ this.source = n, this.sourceIndex = 0, this.tag = 0, this.bitcount = 0, this.dest = e, this.destLen = 0, this.ltree = new Ct(), this.dtree = new Ct();
2705
2705
  }
2706
- var di = new It(), pi = new It(), dr = new Uint8Array(30), pr = new Uint16Array(30), fi = new Uint8Array(30), gi = new Uint16Array(30), Xa = new Uint8Array([
2706
+ var di = new Ct(), pi = new Ct(), dr = new Uint8Array(30), pr = new Uint16Array(30), fi = new Uint8Array(30), gi = new Uint16Array(30), Xa = new Uint8Array([
2707
2707
  16,
2708
2708
  17,
2709
2709
  18,
@@ -2723,7 +2723,7 @@ var di = new It(), pi = new It(), dr = new Uint8Array(30), pr = new Uint16Array(
2723
2723
  14,
2724
2724
  1,
2725
2725
  15
2726
- ]), Vr = new It(), ve = new Uint8Array(320);
2726
+ ]), Vr = new Ct(), ve = new Uint8Array(320);
2727
2727
  function mi(n, e, t, r) {
2728
2728
  var s, i;
2729
2729
  for (s = 0; s < t; ++s)
@@ -2751,7 +2751,7 @@ function $a(n, e) {
2751
2751
  e.trans[t] = t;
2752
2752
  }
2753
2753
  var Hr = new Uint16Array(16);
2754
- function In(n, e, t, r) {
2754
+ function Cn(n, e, t, r) {
2755
2755
  var s, i;
2756
2756
  for (s = 0; s < 16; ++s)
2757
2757
  n.table[s] = 0;
@@ -2792,7 +2792,7 @@ function qa(n, e, t) {
2792
2792
  var l = _e(n, 3, 0);
2793
2793
  ve[Xa[o]] = l;
2794
2794
  }
2795
- for (In(Vr, ve, 0, 19), a = 0; a < r + s; ) {
2795
+ for (Cn(Vr, ve, 0, 19), a = 0; a < r + s; ) {
2796
2796
  var h = er(n, Vr);
2797
2797
  switch (h) {
2798
2798
  case 16:
@@ -2813,7 +2813,7 @@ function qa(n, e, t) {
2813
2813
  break;
2814
2814
  }
2815
2815
  }
2816
- In(e, ve, 0, r), In(t, ve, r, s);
2816
+ Cn(e, ve, 0, r), Cn(t, ve, r, s);
2817
2817
  }
2818
2818
  function Wr(n, e, t) {
2819
2819
  for (; ; ) {
@@ -3025,91 +3025,91 @@ function yi(n) {
3025
3025
  function jr(n, e) {
3026
3026
  n || yi(e);
3027
3027
  }
3028
- var B = { fail: yi, argument: jr, assert: jr }, Xr = 32768, $r = 2147483648, ct = {}, I = {}, A = {};
3028
+ var A = { fail: yi, argument: jr, assert: jr }, Xr = 32768, $r = 2147483648, ct = {}, C = {}, B = {};
3029
3029
  function me(n) {
3030
3030
  return function() {
3031
3031
  return n;
3032
3032
  };
3033
3033
  }
3034
- I.BYTE = function(n) {
3035
- return B.argument(n >= 0 && n <= 255, "Byte value should be between 0 and 255."), [n];
3034
+ C.BYTE = function(n) {
3035
+ return A.argument(n >= 0 && n <= 255, "Byte value should be between 0 and 255."), [n];
3036
3036
  };
3037
- A.BYTE = me(1);
3038
- I.CHAR = function(n) {
3037
+ B.BYTE = me(1);
3038
+ C.CHAR = function(n) {
3039
3039
  return [n.charCodeAt(0)];
3040
3040
  };
3041
- A.CHAR = me(1);
3042
- I.CHARARRAY = function(n) {
3041
+ B.CHAR = me(1);
3042
+ C.CHARARRAY = function(n) {
3043
3043
  typeof n > "u" && (n = "", console.warn("Undefined CHARARRAY encountered and treated as an empty string. This is probably caused by a missing glyph name."));
3044
3044
  for (var e = [], t = 0; t < n.length; t += 1)
3045
3045
  e[t] = n.charCodeAt(t);
3046
3046
  return e;
3047
3047
  };
3048
- A.CHARARRAY = function(n) {
3048
+ B.CHARARRAY = function(n) {
3049
3049
  return typeof n > "u" ? 0 : n.length;
3050
3050
  };
3051
- I.USHORT = function(n) {
3051
+ C.USHORT = function(n) {
3052
3052
  return [n >> 8 & 255, n & 255];
3053
3053
  };
3054
- A.USHORT = me(2);
3055
- I.SHORT = function(n) {
3054
+ B.USHORT = me(2);
3055
+ C.SHORT = function(n) {
3056
3056
  return n >= Xr && (n = -(2 * Xr - n)), [n >> 8 & 255, n & 255];
3057
3057
  };
3058
- A.SHORT = me(2);
3059
- I.UINT24 = function(n) {
3058
+ B.SHORT = me(2);
3059
+ C.UINT24 = function(n) {
3060
3060
  return [n >> 16 & 255, n >> 8 & 255, n & 255];
3061
3061
  };
3062
- A.UINT24 = me(3);
3063
- I.ULONG = function(n) {
3062
+ B.UINT24 = me(3);
3063
+ C.ULONG = function(n) {
3064
3064
  return [n >> 24 & 255, n >> 16 & 255, n >> 8 & 255, n & 255];
3065
3065
  };
3066
- A.ULONG = me(4);
3067
- I.LONG = function(n) {
3066
+ B.ULONG = me(4);
3067
+ C.LONG = function(n) {
3068
3068
  return n >= $r && (n = -(2 * $r - n)), [n >> 24 & 255, n >> 16 & 255, n >> 8 & 255, n & 255];
3069
3069
  };
3070
- A.LONG = me(4);
3071
- I.FIXED = I.ULONG;
3072
- A.FIXED = A.ULONG;
3073
- I.FWORD = I.SHORT;
3074
- A.FWORD = A.SHORT;
3075
- I.UFWORD = I.USHORT;
3076
- A.UFWORD = A.USHORT;
3077
- I.LONGDATETIME = function(n) {
3070
+ B.LONG = me(4);
3071
+ C.FIXED = C.ULONG;
3072
+ B.FIXED = B.ULONG;
3073
+ C.FWORD = C.SHORT;
3074
+ B.FWORD = B.SHORT;
3075
+ C.UFWORD = C.USHORT;
3076
+ B.UFWORD = B.USHORT;
3077
+ C.LONGDATETIME = function(n) {
3078
3078
  return [0, 0, 0, 0, n >> 24 & 255, n >> 16 & 255, n >> 8 & 255, n & 255];
3079
3079
  };
3080
- A.LONGDATETIME = me(8);
3081
- I.TAG = function(n) {
3082
- return B.argument(n.length === 4, "Tag should be exactly 4 ASCII characters."), [
3080
+ B.LONGDATETIME = me(8);
3081
+ C.TAG = function(n) {
3082
+ return A.argument(n.length === 4, "Tag should be exactly 4 ASCII characters."), [
3083
3083
  n.charCodeAt(0),
3084
3084
  n.charCodeAt(1),
3085
3085
  n.charCodeAt(2),
3086
3086
  n.charCodeAt(3)
3087
3087
  ];
3088
3088
  };
3089
- A.TAG = me(4);
3090
- I.Card8 = I.BYTE;
3091
- A.Card8 = A.BYTE;
3092
- I.Card16 = I.USHORT;
3093
- A.Card16 = A.USHORT;
3094
- I.OffSize = I.BYTE;
3095
- A.OffSize = A.BYTE;
3096
- I.SID = I.USHORT;
3097
- A.SID = A.USHORT;
3098
- I.NUMBER = function(n) {
3099
- return n >= -107 && n <= 107 ? [n + 139] : n >= 108 && n <= 1131 ? (n = n - 108, [(n >> 8) + 247, n & 255]) : n >= -1131 && n <= -108 ? (n = -n - 108, [(n >> 8) + 251, n & 255]) : n >= -32768 && n <= 32767 ? I.NUMBER16(n) : I.NUMBER32(n);
3100
- };
3101
- A.NUMBER = function(n) {
3102
- return I.NUMBER(n).length;
3103
- };
3104
- I.NUMBER16 = function(n) {
3089
+ B.TAG = me(4);
3090
+ C.Card8 = C.BYTE;
3091
+ B.Card8 = B.BYTE;
3092
+ C.Card16 = C.USHORT;
3093
+ B.Card16 = B.USHORT;
3094
+ C.OffSize = C.BYTE;
3095
+ B.OffSize = B.BYTE;
3096
+ C.SID = C.USHORT;
3097
+ B.SID = B.USHORT;
3098
+ C.NUMBER = function(n) {
3099
+ return n >= -107 && n <= 107 ? [n + 139] : n >= 108 && n <= 1131 ? (n = n - 108, [(n >> 8) + 247, n & 255]) : n >= -1131 && n <= -108 ? (n = -n - 108, [(n >> 8) + 251, n & 255]) : n >= -32768 && n <= 32767 ? C.NUMBER16(n) : C.NUMBER32(n);
3100
+ };
3101
+ B.NUMBER = function(n) {
3102
+ return C.NUMBER(n).length;
3103
+ };
3104
+ C.NUMBER16 = function(n) {
3105
3105
  return [28, n >> 8 & 255, n & 255];
3106
3106
  };
3107
- A.NUMBER16 = me(3);
3108
- I.NUMBER32 = function(n) {
3107
+ B.NUMBER16 = me(3);
3108
+ C.NUMBER32 = function(n) {
3109
3109
  return [29, n >> 24 & 255, n >> 16 & 255, n >> 8 & 255, n & 255];
3110
3110
  };
3111
- A.NUMBER32 = me(5);
3112
- I.REAL = function(n) {
3111
+ B.NUMBER32 = me(5);
3112
+ C.REAL = function(n) {
3113
3113
  var e = n.toString(), t = /\.(\d*?)(?:9{5,20}|0{5,20})\d{0,2}(?:e(.+)|$)/.exec(e);
3114
3114
  if (t) {
3115
3115
  var r = parseFloat("1e" + ((t[2] ? +t[2] : 0) + t[1].length));
@@ -3124,13 +3124,13 @@ I.REAL = function(n) {
3124
3124
  c.push(parseInt(s.substr(l, 2), 16));
3125
3125
  return c;
3126
3126
  };
3127
- A.REAL = function(n) {
3128
- return I.REAL(n).length;
3127
+ B.REAL = function(n) {
3128
+ return C.REAL(n).length;
3129
3129
  };
3130
- I.NAME = I.CHARARRAY;
3131
- A.NAME = A.CHARARRAY;
3132
- I.STRING = I.CHARARRAY;
3133
- A.STRING = A.CHARARRAY;
3130
+ C.NAME = C.CHARARRAY;
3131
+ B.NAME = B.CHARARRAY;
3132
+ C.STRING = C.CHARARRAY;
3133
+ B.STRING = B.CHARARRAY;
3134
3134
  ct.UTF8 = function(n, e, t) {
3135
3135
  for (var r = [], s = t, i = 0; i < s; i++, e += 1)
3136
3136
  r[i] = n.getUint8(e);
@@ -3141,14 +3141,14 @@ ct.UTF16 = function(n, e, t) {
3141
3141
  r[i] = n.getUint16(e);
3142
3142
  return String.fromCharCode.apply(null, r);
3143
3143
  };
3144
- I.UTF16 = function(n) {
3144
+ C.UTF16 = function(n) {
3145
3145
  for (var e = [], t = 0; t < n.length; t += 1) {
3146
3146
  var r = n.charCodeAt(t);
3147
3147
  e[e.length] = r >> 8 & 255, e[e.length] = r & 255;
3148
3148
  }
3149
3149
  return e;
3150
3150
  };
3151
- A.UTF16 = function(n) {
3151
+ B.UTF16 = function(n) {
3152
3152
  return n.length * 2;
3153
3153
  };
3154
3154
  var tr = {
@@ -3224,7 +3224,7 @@ var zt = typeof WeakMap == "function" && /* @__PURE__ */ new WeakMap(), Vt, Ka =
3224
3224
  }
3225
3225
  }
3226
3226
  };
3227
- I.MACSTRING = function(n, e) {
3227
+ C.MACSTRING = function(n, e) {
3228
3228
  var t = Ka(e);
3229
3229
  if (t !== void 0) {
3230
3230
  for (var r = [], s = 0; s < n.length; s++) {
@@ -3236,8 +3236,8 @@ I.MACSTRING = function(n, e) {
3236
3236
  return r;
3237
3237
  }
3238
3238
  };
3239
- A.MACSTRING = function(n, e) {
3240
- var t = I.MACSTRING(n, e);
3239
+ B.MACSTRING = function(n, e) {
3240
+ var t = C.MACSTRING(n, e);
3241
3241
  return t !== void 0 ? t.length : 0;
3242
3242
  };
3243
3243
  function nr(n) {
@@ -3274,68 +3274,68 @@ function nc(n, e, t) {
3274
3274
  }
3275
3275
  return i;
3276
3276
  }
3277
- I.VARDELTAS = function(n) {
3277
+ C.VARDELTAS = function(n) {
3278
3278
  for (var e = 0, t = []; e < n.length; ) {
3279
3279
  var r = n[e];
3280
3280
  r === 0 ? e = ec(n, e, t) : r >= -128 && r <= 127 ? e = tc(n, e, t) : e = nc(n, e, t);
3281
3281
  }
3282
3282
  return t;
3283
3283
  };
3284
- I.INDEX = function(n) {
3284
+ C.INDEX = function(n) {
3285
3285
  for (var e = 1, t = [e], r = [], s = 0; s < n.length; s += 1) {
3286
- var i = I.OBJECT(n[s]);
3286
+ var i = C.OBJECT(n[s]);
3287
3287
  Array.prototype.push.apply(r, i), e += i.length, t.push(e);
3288
3288
  }
3289
3289
  if (r.length === 0)
3290
3290
  return [0, 0];
3291
- for (var o = [], a = 1 + Math.floor(Math.log(e) / Math.log(2)) / 8 | 0, c = [void 0, I.BYTE, I.USHORT, I.UINT24, I.ULONG][a], l = 0; l < t.length; l += 1) {
3291
+ for (var o = [], a = 1 + Math.floor(Math.log(e) / Math.log(2)) / 8 | 0, c = [void 0, C.BYTE, C.USHORT, C.UINT24, C.ULONG][a], l = 0; l < t.length; l += 1) {
3292
3292
  var h = c(t[l]);
3293
3293
  Array.prototype.push.apply(o, h);
3294
3294
  }
3295
3295
  return Array.prototype.concat(
3296
- I.Card16(n.length),
3297
- I.OffSize(a),
3296
+ C.Card16(n.length),
3297
+ C.OffSize(a),
3298
3298
  o,
3299
3299
  r
3300
3300
  );
3301
3301
  };
3302
- A.INDEX = function(n) {
3303
- return I.INDEX(n).length;
3302
+ B.INDEX = function(n) {
3303
+ return C.INDEX(n).length;
3304
3304
  };
3305
- I.DICT = function(n) {
3305
+ C.DICT = function(n) {
3306
3306
  for (var e = [], t = Object.keys(n), r = t.length, s = 0; s < r; s += 1) {
3307
3307
  var i = parseInt(t[s], 0), o = n[i];
3308
- e = e.concat(I.OPERAND(o.value, o.type)), e = e.concat(I.OPERATOR(i));
3308
+ e = e.concat(C.OPERAND(o.value, o.type)), e = e.concat(C.OPERATOR(i));
3309
3309
  }
3310
3310
  return e;
3311
3311
  };
3312
- A.DICT = function(n) {
3313
- return I.DICT(n).length;
3312
+ B.DICT = function(n) {
3313
+ return C.DICT(n).length;
3314
3314
  };
3315
- I.OPERATOR = function(n) {
3315
+ C.OPERATOR = function(n) {
3316
3316
  return n < 1200 ? [n] : [12, n - 1200];
3317
3317
  };
3318
- I.OPERAND = function(n, e) {
3318
+ C.OPERAND = function(n, e) {
3319
3319
  var t = [];
3320
3320
  if (Array.isArray(e))
3321
3321
  for (var r = 0; r < e.length; r += 1)
3322
- B.argument(n.length === e.length, "Not enough arguments given for type" + e), t = t.concat(I.OPERAND(n[r], e[r]));
3322
+ A.argument(n.length === e.length, "Not enough arguments given for type" + e), t = t.concat(C.OPERAND(n[r], e[r]));
3323
3323
  else if (e === "SID")
3324
- t = t.concat(I.NUMBER(n));
3324
+ t = t.concat(C.NUMBER(n));
3325
3325
  else if (e === "offset")
3326
- t = t.concat(I.NUMBER32(n));
3326
+ t = t.concat(C.NUMBER32(n));
3327
3327
  else if (e === "number")
3328
- t = t.concat(I.NUMBER(n));
3328
+ t = t.concat(C.NUMBER(n));
3329
3329
  else if (e === "real")
3330
- t = t.concat(I.REAL(n));
3330
+ t = t.concat(C.REAL(n));
3331
3331
  else
3332
3332
  throw new Error("Unknown operand type " + e);
3333
3333
  return t;
3334
3334
  };
3335
- I.OP = I.BYTE;
3336
- A.OP = A.BYTE;
3335
+ C.OP = C.BYTE;
3336
+ B.OP = B.BYTE;
3337
3337
  var Ht = typeof WeakMap == "function" && /* @__PURE__ */ new WeakMap();
3338
- I.CHARSTRING = function(n) {
3338
+ C.CHARSTRING = function(n) {
3339
3339
  if (Ht) {
3340
3340
  var e = Ht.get(n);
3341
3341
  if (e !== void 0)
@@ -3343,25 +3343,25 @@ I.CHARSTRING = function(n) {
3343
3343
  }
3344
3344
  for (var t = [], r = n.length, s = 0; s < r; s += 1) {
3345
3345
  var i = n[s];
3346
- t = t.concat(I[i.type](i.value));
3346
+ t = t.concat(C[i.type](i.value));
3347
3347
  }
3348
3348
  return Ht && Ht.set(n, t), t;
3349
3349
  };
3350
- A.CHARSTRING = function(n) {
3351
- return I.CHARSTRING(n).length;
3350
+ B.CHARSTRING = function(n) {
3351
+ return C.CHARSTRING(n).length;
3352
3352
  };
3353
- I.OBJECT = function(n) {
3354
- var e = I[n.type];
3355
- return B.argument(e !== void 0, "No encoding function for type " + n.type), e(n.value);
3353
+ C.OBJECT = function(n) {
3354
+ var e = C[n.type];
3355
+ return A.argument(e !== void 0, "No encoding function for type " + n.type), e(n.value);
3356
3356
  };
3357
- A.OBJECT = function(n) {
3358
- var e = A[n.type];
3359
- return B.argument(e !== void 0, "No sizeOf function for type " + n.type), e(n.value);
3357
+ B.OBJECT = function(n) {
3358
+ var e = B[n.type];
3359
+ return A.argument(e !== void 0, "No sizeOf function for type " + n.type), e(n.value);
3360
3360
  };
3361
- I.TABLE = function(n) {
3361
+ C.TABLE = function(n) {
3362
3362
  for (var e = [], t = n.fields.length, r = [], s = [], i = 0; i < t; i += 1) {
3363
- var o = n.fields[i], a = I[o.type];
3364
- B.argument(a !== void 0, "No encoding function for field type " + o.type + " (" + o.name + ")");
3363
+ var o = n.fields[i], a = C[o.type];
3364
+ A.argument(a !== void 0, "No encoding function for field type " + o.type + " (" + o.name + ")");
3365
3365
  var c = n[o.name];
3366
3366
  c === void 0 && (c = o.value);
3367
3367
  var l = a(c);
@@ -3369,25 +3369,25 @@ I.TABLE = function(n) {
3369
3369
  }
3370
3370
  for (var h = 0; h < r.length; h += 1) {
3371
3371
  var d = s[h], u = e.length;
3372
- B.argument(u < 65536, "Table " + n.tableName + " too big."), e[d] = u >> 8, e[d + 1] = u & 255, e = e.concat(r[h]);
3372
+ A.argument(u < 65536, "Table " + n.tableName + " too big."), e[d] = u >> 8, e[d + 1] = u & 255, e = e.concat(r[h]);
3373
3373
  }
3374
3374
  return e;
3375
3375
  };
3376
- A.TABLE = function(n) {
3376
+ B.TABLE = function(n) {
3377
3377
  for (var e = 0, t = n.fields.length, r = 0; r < t; r += 1) {
3378
- var s = n.fields[r], i = A[s.type];
3379
- B.argument(i !== void 0, "No sizeOf function for field type " + s.type + " (" + s.name + ")");
3378
+ var s = n.fields[r], i = B[s.type];
3379
+ A.argument(i !== void 0, "No sizeOf function for field type " + s.type + " (" + s.name + ")");
3380
3380
  var o = n[s.name];
3381
3381
  o === void 0 && (o = s.value), e += i(o), s.type === "TABLE" && (e += 2);
3382
3382
  }
3383
3383
  return e;
3384
3384
  };
3385
- I.RECORD = I.TABLE;
3386
- A.RECORD = A.TABLE;
3387
- I.LITERAL = function(n) {
3385
+ C.RECORD = C.TABLE;
3386
+ B.RECORD = B.TABLE;
3387
+ C.LITERAL = function(n) {
3388
3388
  return n;
3389
3389
  };
3390
- A.LITERAL = function(n) {
3390
+ B.LITERAL = function(n) {
3391
3391
  return n.length;
3392
3392
  };
3393
3393
  function $(n, e, t) {
@@ -3403,12 +3403,12 @@ function $(n, e, t) {
3403
3403
  }
3404
3404
  }
3405
3405
  $.prototype.encode = function() {
3406
- return I.TABLE(this);
3406
+ return C.TABLE(this);
3407
3407
  };
3408
3408
  $.prototype.sizeOf = function() {
3409
- return A.TABLE(this);
3409
+ return B.TABLE(this);
3410
3410
  };
3411
- function Ct(n, e, t) {
3411
+ function It(n, e, t) {
3412
3412
  t === void 0 && (t = e.length);
3413
3413
  var r = new Array(e.length + 1);
3414
3414
  r[0] = { name: n + "Count", type: "USHORT", value: t };
@@ -3434,7 +3434,7 @@ function on(n) {
3434
3434
  n.format === 1 ? $.call(
3435
3435
  this,
3436
3436
  "coverageTable",
3437
- [{ name: "coverageFormat", type: "USHORT", value: 1 }].concat(Ct("glyph", n.glyphs))
3437
+ [{ name: "coverageFormat", type: "USHORT", value: 1 }].concat(It("glyph", n.glyphs))
3438
3438
  ) : n.format === 2 ? $.call(
3439
3439
  this,
3440
3440
  "coverageTable",
@@ -3445,7 +3445,7 @@ function on(n) {
3445
3445
  { name: "startCoverageIndex", type: "USHORT", value: e.index }
3446
3446
  ];
3447
3447
  }))
3448
- ) : B.assert(!1, "Coverage format must be 1 or 2.");
3448
+ ) : A.assert(!1, "Coverage format must be 1 or 2.");
3449
3449
  }
3450
3450
  on.prototype = Object.create($.prototype);
3451
3451
  on.prototype.constructor = on;
@@ -3455,13 +3455,13 @@ function an(n) {
3455
3455
  "scriptListTable",
3456
3456
  kt("scriptRecord", n, function(e, t) {
3457
3457
  var r = e.script, s = r.defaultLangSys;
3458
- return B.assert(!!s, "Unable to write GSUB: script " + e.tag + " has no default language system."), [
3458
+ return A.assert(!!s, "Unable to write GSUB: script " + e.tag + " has no default language system."), [
3459
3459
  { name: "scriptTag" + t, type: "TAG", value: e.tag },
3460
3460
  { name: "script" + t, type: "TABLE", value: new $("scriptTable", [
3461
3461
  { name: "defaultLangSys", type: "TABLE", value: new $("defaultLangSys", [
3462
3462
  { name: "lookupOrder", type: "USHORT", value: 0 },
3463
3463
  { name: "reqFeatureIndex", type: "USHORT", value: s.reqFeatureIndex }
3464
- ].concat(Ct("featureIndex", s.featureIndexes))) }
3464
+ ].concat(It("featureIndex", s.featureIndexes))) }
3465
3465
  ].concat(kt("langSys", r.langSysRecords, function(i, o) {
3466
3466
  var a = i.langSys;
3467
3467
  return [
@@ -3469,7 +3469,7 @@ function an(n) {
3469
3469
  { name: "langSys" + o, type: "TABLE", value: new $("langSys", [
3470
3470
  { name: "lookupOrder", type: "USHORT", value: 0 },
3471
3471
  { name: "reqFeatureIndex", type: "USHORT", value: a.reqFeatureIndex }
3472
- ].concat(Ct("featureIndex", a.featureIndexes))) }
3472
+ ].concat(It("featureIndex", a.featureIndexes))) }
3473
3473
  ];
3474
3474
  }))) }
3475
3475
  ];
@@ -3488,7 +3488,7 @@ function cn(n) {
3488
3488
  { name: "featureTag" + t, type: "TAG", value: e.tag },
3489
3489
  { name: "feature" + t, type: "TABLE", value: new $("featureTable", [
3490
3490
  { name: "featureParams", type: "USHORT", value: r.featureParams }
3491
- ].concat(Ct("lookupListIndex", r.lookupListIndexes))) }
3491
+ ].concat(It("lookupListIndex", r.lookupListIndexes))) }
3492
3492
  ];
3493
3493
  })
3494
3494
  );
@@ -3498,7 +3498,7 @@ cn.prototype.constructor = cn;
3498
3498
  function ln(n, e) {
3499
3499
  $.call(this, "lookupListTable", rr("lookup", n, function(t) {
3500
3500
  var r = e[t.lookupType];
3501
- return B.assert(!!r, "Unable to write GSUB lookup type " + t.lookupType + " tables."), new $("lookupTable", [
3501
+ return A.assert(!!r, "Unable to write GSUB lookup type " + t.lookupType + " tables."), new $("lookupTable", [
3502
3502
  { name: "lookupType", type: "USHORT", value: t.lookupType },
3503
3503
  { name: "lookupFlag", type: "USHORT", value: t.lookupFlag }
3504
3504
  ].concat(rr("subtable", t.subtables, r)));
@@ -3513,7 +3513,7 @@ var k = {
3513
3513
  ScriptList: an,
3514
3514
  FeatureList: cn,
3515
3515
  LookupList: ln,
3516
- ushortList: Ct,
3516
+ ushortList: It,
3517
3517
  tableList: rr,
3518
3518
  recordList: kt
3519
3519
  };
@@ -3829,7 +3829,7 @@ b.prototype.parseFeatureList = function() {
3829
3829
  b.prototype.parseLookupList = function(n) {
3830
3830
  return this.parsePointer(b.list(b.pointer(function() {
3831
3831
  var e = this.parseUShort();
3832
- B.argument(1 <= e && e <= 9, "GPOS/GSUB lookup type " + e + " unknown.");
3832
+ A.argument(1 <= e && e <= 9, "GPOS/GSUB lookup type " + e + " unknown.");
3833
3833
  var t = this.parseUShort(), r = t & 16;
3834
3834
  return {
3835
3835
  lookupType: e,
@@ -3842,7 +3842,7 @@ b.prototype.parseLookupList = function(n) {
3842
3842
  b.prototype.parseFeatureVariationsList = function() {
3843
3843
  return this.parsePointer32(function() {
3844
3844
  var n = this.parseUShort(), e = this.parseUShort();
3845
- B.argument(n === 1 && e < 1, "GPOS/GSUB feature variations table unknown.");
3845
+ A.argument(n === 1 && e < 1, "GPOS/GSUB feature variations table unknown.");
3846
3846
  var t = this.parseRecordList32({
3847
3847
  conditionSetOffset: b.offset32,
3848
3848
  featureTableSubstitutionOffset: b.offset32
@@ -3882,7 +3882,7 @@ function hc(n, e, t, r, s) {
3882
3882
  }
3883
3883
  function uc(n, e) {
3884
3884
  var t = {};
3885
- t.version = M.getUShort(n, e), B.argument(t.version === 0, "cmap table version should be 0."), t.numTables = M.getUShort(n, e + 2);
3885
+ t.version = M.getUShort(n, e), A.argument(t.version === 0, "cmap table version should be 0."), t.numTables = M.getUShort(n, e + 2);
3886
3886
  for (var r = -1, s = t.numTables - 1; s >= 0; s -= 1) {
3887
3887
  var i = M.getUShort(n, e + 4 + s * 8), o = M.getUShort(n, e + 4 + s * 8 + 2);
3888
3888
  if (i === 3 && (o === 0 || o === 1 || o === 10) || i === 0 && (o === 0 || o === 1 || o === 2 || o === 3 || o === 4)) {
@@ -5281,7 +5281,7 @@ oe.prototype.getContours = function() {
5281
5281
  var r = this.points[t];
5282
5282
  e.push(r), r.lastPointOfContour && (n.push(e), e = []);
5283
5283
  }
5284
- return B.argument(e.length === 0, "There are still points left in the current contour."), n;
5284
+ return A.argument(e.length === 0, "There are still points left in the current contour."), n;
5285
5285
  };
5286
5286
  oe.prototype.getMetrics = function() {
5287
5287
  for (var n = this.path.commands, e = [], t = [], r = 0; r < n.length; r += 1) {
@@ -5377,7 +5377,7 @@ function Tc(n, e, t, r) {
5377
5377
  }, s;
5378
5378
  };
5379
5379
  }
5380
- var Ie = { GlyphSet: mr, glyphLoader: wc, ttfGlyphLoader: _c, cffGlyphLoader: Tc };
5380
+ var Ce = { GlyphSet: mr, glyphLoader: wc, ttfGlyphLoader: _c, cffGlyphLoader: Tc };
5381
5381
  function wi(n, e) {
5382
5382
  if (n === e)
5383
5383
  return !0;
@@ -5395,7 +5395,7 @@ function sr(n) {
5395
5395
  var e;
5396
5396
  return n.length < 1240 ? e = 107 : n.length < 33900 ? e = 1131 : e = 32768, e;
5397
5397
  }
5398
- function Be(n, e, t) {
5398
+ function Ae(n, e, t) {
5399
5399
  var r = [], s = [], i = M.getCard16(n, e), o, a;
5400
5400
  if (i !== 0) {
5401
5401
  var c = M.getByte(n, e + 2);
@@ -5411,7 +5411,7 @@ function Be(n, e, t) {
5411
5411
  }
5412
5412
  return { objects: s, startOffset: e, endOffset: a };
5413
5413
  }
5414
- function Ic(n, e) {
5414
+ function Cc(n, e) {
5415
5415
  var t = [], r = M.getCard16(n, e), s, i;
5416
5416
  if (r !== 0) {
5417
5417
  var o = M.getByte(n, e + 2);
@@ -5423,7 +5423,7 @@ function Ic(n, e) {
5423
5423
  i = e + 2;
5424
5424
  return { offsets: t, startOffset: e, endOffset: i };
5425
5425
  }
5426
- function Cc(n, e, t, r, s) {
5426
+ function Ic(n, e, t, r, s) {
5427
5427
  var i = M.getCard16(t, r), o = 0;
5428
5428
  if (i !== 0) {
5429
5429
  var a = M.getByte(t, r + 2);
@@ -5492,11 +5492,11 @@ function Ti(n, e, t) {
5492
5492
  }
5493
5493
  return r;
5494
5494
  }
5495
- function Bc(n, e) {
5495
+ function Ac(n, e) {
5496
5496
  var t = {};
5497
5497
  return t.formatMajor = M.getCard8(n, e), t.formatMinor = M.getCard8(n, e + 1), t.size = M.getCard8(n, e + 2), t.offsetSize = M.getCard8(n, e + 3), t.startOffset = e, t.endOffset = e + 4, t;
5498
5498
  }
5499
- var Ii = [
5499
+ var Ci = [
5500
5500
  { name: "version", op: 0, type: "SID" },
5501
5501
  { name: "notice", op: 1, type: "SID" },
5502
5502
  { name: "copyright", op: 1200, type: "SID" },
@@ -5532,28 +5532,28 @@ var Ii = [
5532
5532
  { name: "fdArray", op: 1236, type: "offset" },
5533
5533
  { name: "fdSelect", op: 1237, type: "offset" },
5534
5534
  { name: "fontName", op: 1238, type: "SID" }
5535
- ], Ci = [
5535
+ ], Ii = [
5536
5536
  { name: "subrs", op: 19, type: "offset", value: 0 },
5537
5537
  { name: "defaultWidthX", op: 20, type: "number", value: 0 },
5538
5538
  { name: "nominalWidthX", op: 21, type: "number", value: 0 }
5539
5539
  ];
5540
- function Ac(n, e) {
5540
+ function Bc(n, e) {
5541
5541
  var t = _i(n, 0, n.byteLength);
5542
- return Ti(t, Ii, e);
5542
+ return Ti(t, Ci, e);
5543
5543
  }
5544
5544
  function ki(n, e, t, r) {
5545
5545
  var s = _i(n, e, t);
5546
- return Ti(s, Ci, r);
5546
+ return Ti(s, Ii, r);
5547
5547
  }
5548
5548
  function Zr(n, e, t, r) {
5549
5549
  for (var s = [], i = 0; i < t.length; i += 1) {
5550
- var o = new DataView(new Uint8Array(t[i]).buffer), a = Ac(o, r);
5550
+ var o = new DataView(new Uint8Array(t[i]).buffer), a = Bc(o, r);
5551
5551
  a._subrs = [], a._subrsBias = 0, a._defaultWidthX = 0, a._nominalWidthX = 0;
5552
5552
  var c = a.private[0], l = a.private[1];
5553
5553
  if (c !== 0 && l !== 0) {
5554
5554
  var h = ki(n, l + e, c, r);
5555
5555
  if (a._defaultWidthX = h.defaultWidthX, a._nominalWidthX = h.nominalWidthX, h.subrs !== 0) {
5556
- var d = l + h.subrs, u = Be(n, d + e);
5556
+ var d = l + h.subrs, u = Ae(n, d + e);
5557
5557
  a._subrs = u.objects, a._subrsBias = sr(a._subrs);
5558
5558
  }
5559
5559
  a._privateDict = h;
@@ -5608,16 +5608,16 @@ function Qr(n, e, t) {
5608
5608
  } else
5609
5609
  f = n.tables.cff.topDict._subrs, m = n.tables.cff.topDict._subrsBias, y = n.tables.cff.topDict._defaultWidthX, v = n.tables.cff.topDict._nominalWidthX;
5610
5610
  var _ = y;
5611
- function w(C, O) {
5612
- d && a.closePath(), a.moveTo(C, O), d = !0;
5611
+ function w(I, O) {
5612
+ d && a.closePath(), a.moveTo(I, O), d = !0;
5613
5613
  }
5614
5614
  function L() {
5615
- var C;
5616
- C = c.length % 2 !== 0, C && !h && (_ = c.shift() + v), l += c.length >> 1, c.length = 0, h = !0;
5615
+ var I;
5616
+ I = c.length % 2 !== 0, I && !h && (_ = c.shift() + v), l += c.length >> 1, c.length = 0, h = !0;
5617
5617
  }
5618
- function T(C) {
5619
- for (var O, G, Q, ee, Y, U, N, F, H, q, X, J, R = 0; R < C.length; ) {
5620
- var Z = C[R];
5618
+ function T(I) {
5619
+ for (var O, G, Q, ee, Y, U, N, F, H, q, X, J, R = 0; R < I.length; ) {
5620
+ var Z = I[R];
5621
5621
  switch (R += 1, Z) {
5622
5622
  case 1:
5623
5623
  L();
@@ -5650,7 +5650,7 @@ function Qr(n, e, t) {
5650
5650
  case 11:
5651
5651
  return;
5652
5652
  case 12:
5653
- switch (Z = C[R], R += 1, Z) {
5653
+ switch (Z = I[R], R += 1, Z) {
5654
5654
  case 35:
5655
5655
  r = u + c.shift(), s = p + c.shift(), i = r + c.shift(), o = s + c.shift(), N = i + c.shift(), F = o + c.shift(), H = N + c.shift(), q = F + c.shift(), X = H + c.shift(), J = q + c.shift(), u = X + c.shift(), p = J + c.shift(), c.shift(), a.curveTo(r, s, i, o, N, F), a.curveTo(H, q, X, J, u, p);
5656
5656
  break;
@@ -5705,7 +5705,7 @@ function Qr(n, e, t) {
5705
5705
  r = u + c.shift(), s = p, i = r + c.shift(), o = s + c.shift(), u = i + c.shift(), p = o, a.curveTo(r, s, i, o, u, p);
5706
5706
  break;
5707
5707
  case 28:
5708
- O = C[R], G = C[R + 1], c.push((O << 24 | G << 16) >> 16), R += 2;
5708
+ O = I[R], G = I[R + 1], c.push((O << 24 | G << 16) >> 16), R += 2;
5709
5709
  break;
5710
5710
  case 29:
5711
5711
  Y = c.pop() + n.gsubrsBias, U = n.gsubrs[Y], U && T(U);
@@ -5719,7 +5719,7 @@ function Qr(n, e, t) {
5719
5719
  r = u, s = p + c.shift(), i = r + c.shift(), o = s + c.shift(), u = i + c.shift(), p = o + (c.length === 1 ? c.shift() : 0), a.curveTo(r, s, i, o, u, p);
5720
5720
  break;
5721
5721
  default:
5722
- Z < 32 ? console.log("Glyph " + e.index + ": unknown operator " + Z) : Z < 247 ? c.push(Z - 139) : Z < 251 ? (O = C[R], R += 1, c.push((Z - 247) * 256 + O + 108)) : Z < 255 ? (O = C[R], R += 1, c.push(-(Z - 251) * 256 - O - 108)) : (O = C[R], G = C[R + 1], Q = C[R + 2], ee = C[R + 3], R += 4, c.push((O << 24 | G << 16 | Q << 8 | ee) / 65536));
5722
+ Z < 32 ? console.log("Glyph " + e.index + ": unknown operator " + Z) : Z < 247 ? c.push(Z - 139) : Z < 251 ? (O = I[R], R += 1, c.push((Z - 247) * 256 + O + 108)) : Z < 255 ? (O = I[R], R += 1, c.push(-(Z - 251) * 256 - O - 108)) : (O = I[R], G = I[R + 1], Q = I[R + 2], ee = I[R + 3], R += 4, c.push((O << 24 | G << 16 | Q << 8 | ee) / 65536));
5723
5723
  }
5724
5724
  }
5725
5725
  }
@@ -5754,7 +5754,7 @@ function Dc(n, e, t, r) {
5754
5754
  }
5755
5755
  function Rc(n, e, t, r) {
5756
5756
  t.tables.cff = {};
5757
- var s = Bc(n, e), i = Be(n, s.endOffset, M.bytesToString), o = Be(n, i.endOffset), a = Be(n, o.endOffset, M.bytesToString), c = Be(n, a.endOffset);
5757
+ var s = Ac(n, e), i = Ae(n, s.endOffset, M.bytesToString), o = Ae(n, i.endOffset), a = Ae(n, o.endOffset, M.bytesToString), c = Ae(n, a.endOffset);
5758
5758
  t.gsubrs = c.objects, t.gsubrsBias = sr(t.gsubrs);
5759
5759
  var l = Zr(n, e, o.objects, a.objects);
5760
5760
  if (l.length !== 1)
@@ -5765,27 +5765,27 @@ function Rc(n, e, t, r) {
5765
5765
  if (d === 0 || u === 0)
5766
5766
  throw new Error("Font is marked as a CID font, but FDArray and/or FDSelect information is missing");
5767
5767
  d += e;
5768
- var p = Be(n, d), f = Zr(n, e, p.objects, a.objects);
5768
+ var p = Ae(n, d), f = Zr(n, e, p.objects, a.objects);
5769
5769
  h._fdArray = f, u += e, h._fdSelect = Dc(n, u, t.numGlyphs, f.length);
5770
5770
  }
5771
5771
  var m = e + h.private[1], y = ki(n, m, h.private[0], a.objects);
5772
5772
  if (t.defaultWidthX = y.defaultWidthX, t.nominalWidthX = y.nominalWidthX, y.subrs !== 0) {
5773
- var v = m + y.subrs, S = Be(n, v);
5773
+ var v = m + y.subrs, S = Ae(n, v);
5774
5774
  t.subrs = S.objects, t.subrsBias = sr(t.subrs);
5775
5775
  } else
5776
5776
  t.subrs = [], t.subrsBias = 0;
5777
5777
  var x;
5778
- r.lowMemory ? (x = Ic(n, e + h.charStrings), t.nGlyphs = x.offsets.length) : (x = Be(n, e + h.charStrings), t.nGlyphs = x.objects.length);
5778
+ r.lowMemory ? (x = Cc(n, e + h.charStrings), t.nGlyphs = x.offsets.length) : (x = Ae(n, e + h.charStrings), t.nGlyphs = x.objects.length);
5779
5779
  var _ = Lc(n, e + h.charset, t.nGlyphs, a.objects);
5780
- if (h.encoding === 0 ? t.cffEncoding = new un(gc, _) : h.encoding === 1 ? t.cffEncoding = new un(mc, _) : t.cffEncoding = Oc(n, e + h.encoding, _), t.encoding = t.encoding || t.cffEncoding, t.glyphs = new Ie.GlyphSet(t), r.lowMemory)
5780
+ if (h.encoding === 0 ? t.cffEncoding = new un(gc, _) : h.encoding === 1 ? t.cffEncoding = new un(mc, _) : t.cffEncoding = Oc(n, e + h.encoding, _), t.encoding = t.encoding || t.cffEncoding, t.glyphs = new Ce.GlyphSet(t), r.lowMemory)
5781
5781
  t._push = function(T) {
5782
- var C = Cc(T, x.offsets, n, e + h.charStrings);
5783
- t.glyphs.push(T, Ie.cffGlyphLoader(t, T, Qr, C));
5782
+ var I = Ic(T, x.offsets, n, e + h.charStrings);
5783
+ t.glyphs.push(T, Ce.cffGlyphLoader(t, T, Qr, I));
5784
5784
  };
5785
5785
  else
5786
5786
  for (var w = 0; w < t.nGlyphs; w += 1) {
5787
5787
  var L = x.objects[w];
5788
- t.glyphs.push(w, Ie.cffGlyphLoader(t, w, Qr, L));
5788
+ t.glyphs.push(w, Ce.cffGlyphLoader(t, w, Qr, L));
5789
5789
  }
5790
5790
  }
5791
5791
  function Ei(n, e) {
@@ -5820,7 +5820,7 @@ function Jr(n, e) {
5820
5820
  var t = new k.Record("Top DICT", [
5821
5821
  { name: "dict", type: "DICT", value: {} }
5822
5822
  ]);
5823
- return t.dict = Mi(Ii, n, e), t;
5823
+ return t.dict = Mi(Ci, n, e), t;
5824
5824
  }
5825
5825
  function Kr(n) {
5826
5826
  var e = new k.Record("Top DICT INDEX", [
@@ -5892,7 +5892,7 @@ function Hc(n, e) {
5892
5892
  var t = new k.Record("Private DICT", [
5893
5893
  { name: "dict", type: "DICT", value: {} }
5894
5894
  ]);
5895
- return t.dict = Mi(Ci, n, e), t;
5895
+ return t.dict = Mi(Ii, n, e), t;
5896
5896
  }
5897
5897
  function Wc(n, e) {
5898
5898
  for (var t = new k.Table("CFF ", [
@@ -5924,10 +5924,10 @@ function Wc(n, e) {
5924
5924
  var d = t.header.sizeOf() + t.nameIndex.sizeOf() + t.topDictIndex.sizeOf() + t.stringIndex.sizeOf() + t.globalSubrIndex.sizeOf();
5925
5925
  return s.charset = d, s.encoding = 0, s.charStrings = s.charset + t.charsets.sizeOf(), s.private[1] = s.charStrings + t.charStringsIndex.sizeOf(), h = Jr(s, l), t.topDictIndex = Kr(h), t;
5926
5926
  }
5927
- var Bi = { parse: Rc, make: Wc };
5927
+ var Ai = { parse: Rc, make: Wc };
5928
5928
  function jc(n, e) {
5929
5929
  var t = {}, r = new M.Parser(n, e);
5930
- return t.version = r.parseVersion(), t.fontRevision = Math.round(r.parseFixed() * 1e3) / 1e3, t.checkSumAdjustment = r.parseULong(), t.magicNumber = r.parseULong(), B.argument(t.magicNumber === 1594834165, "Font header has wrong magic number."), t.flags = r.parseUShort(), t.unitsPerEm = r.parseUShort(), t.created = r.parseLongDateTime(), t.modified = r.parseLongDateTime(), t.xMin = r.parseShort(), t.yMin = r.parseShort(), t.xMax = r.parseShort(), t.yMax = r.parseShort(), t.macStyle = r.parseUShort(), t.lowestRecPPEM = r.parseUShort(), t.fontDirectionHint = r.parseShort(), t.indexToLocFormat = r.parseShort(), t.glyphDataFormat = r.parseShort(), t;
5930
+ return t.version = r.parseVersion(), t.fontRevision = Math.round(r.parseFixed() * 1e3) / 1e3, t.checkSumAdjustment = r.parseULong(), t.magicNumber = r.parseULong(), A.argument(t.magicNumber === 1594834165, "Font header has wrong magic number."), t.flags = r.parseUShort(), t.unitsPerEm = r.parseUShort(), t.created = r.parseLongDateTime(), t.modified = r.parseLongDateTime(), t.xMin = r.parseShort(), t.yMin = r.parseShort(), t.xMax = r.parseShort(), t.yMax = r.parseShort(), t.macStyle = r.parseUShort(), t.lowestRecPPEM = r.parseUShort(), t.fontDirectionHint = r.parseShort(), t.indexToLocFormat = r.parseShort(), t.glyphDataFormat = r.parseShort(), t;
5931
5931
  }
5932
5932
  function Xc(n) {
5933
5933
  var e = Math.round((/* @__PURE__ */ new Date()).getTime() / 1e3) + 2082844800, t = e;
@@ -5951,7 +5951,7 @@ function Xc(n) {
5951
5951
  { name: "glyphDataFormat", type: "SHORT", value: 0 }
5952
5952
  ], n);
5953
5953
  }
5954
- var Ai = { parse: jc, make: Xc };
5954
+ var Bi = { parse: jc, make: Xc };
5955
5955
  function $c(n, e) {
5956
5956
  var t = {}, r = new M.Parser(n, e);
5957
5957
  return t.version = r.parseVersion(), t.ascender = r.parseShort(), t.descender = r.parseShort(), t.lineGap = r.parseShort(), t.advanceWidthMax = r.parseUShort(), t.minLeftSideBearing = r.parseShort(), t.minRightSideBearing = r.parseShort(), t.xMaxExtent = r.parseShort(), t.caretSlopeRise = r.parseShort(), t.caretSlopeRun = r.parseShort(), t.caretOffset = r.parseShort(), r.relativeOffset += 8, t.metricDataFormat = r.parseShort(), t.numberOfHMetrics = r.parseUShort(), t;
@@ -6017,7 +6017,7 @@ function Kc(n) {
6017
6017
  }
6018
6018
  function el(n, e) {
6019
6019
  var t = new M.Parser(n, e), r = t.parseULong();
6020
- B.argument(r === 1, "Unsupported ltag table version."), t.skip("uLong", 1);
6020
+ A.argument(r === 1, "Unsupported ltag table version."), t.skip("uLong", 1);
6021
6021
  for (var s = t.parseULong(), i = [], o = 0; o < s; o++) {
6022
6022
  for (var a = "", c = e + t.parseUShort(), l = t.parseUShort(), h = c; h < c + l; ++h)
6023
6023
  a += String.fromCharCode(n.getInt8(h));
@@ -6786,7 +6786,7 @@ function al(n, e, t) {
6786
6786
  }
6787
6787
  return i === 1 && s.parseUShort(), r;
6788
6788
  }
6789
- function Cn(n) {
6789
+ function In(n) {
6790
6790
  var e = {};
6791
6791
  for (var t in n)
6792
6792
  e[n[t]] = parseInt(t);
@@ -6824,19 +6824,19 @@ function ts(n, e) {
6824
6824
  return t;
6825
6825
  }
6826
6826
  function ll(n, e) {
6827
- var t, r = [], s = {}, i = Cn(Ui);
6827
+ var t, r = [], s = {}, i = In(Ui);
6828
6828
  for (var o in n) {
6829
6829
  var a = i[o];
6830
6830
  if (a === void 0 && (a = o), t = parseInt(a), isNaN(t))
6831
6831
  throw new Error('Name table entry "' + o + '" does not exist, see nameTableNames for complete list.');
6832
6832
  s[t] = n[o], r.push(t);
6833
6833
  }
6834
- for (var c = Cn(Fi), l = Cn(Pi), h = [], d = [], u = 0; u < r.length; u++) {
6834
+ for (var c = In(Fi), l = In(Pi), h = [], d = [], u = 0; u < r.length; u++) {
6835
6835
  t = r[u];
6836
6836
  var p = s[t];
6837
6837
  for (var f in p) {
6838
- var m = p[f], y = 1, v = c[f], S = rl[v], x = Gi(y, S, v), _ = I.MACSTRING(m, x);
6839
- _ === void 0 && (y = 0, v = e.indexOf(f), v < 0 && (v = e.length, e.push(f)), S = 4, _ = I.UTF16(m));
6838
+ var m = p[f], y = 1, v = c[f], S = rl[v], x = Gi(y, S, v), _ = C.MACSTRING(m, x);
6839
+ _ === void 0 && (y = 0, v = e.indexOf(f), v < 0 && (v = e.length, e.push(f)), S = 4, _ = C.UTF16(m));
6840
6840
  var w = ts(_, d);
6841
6841
  h.push(es(
6842
6842
  y,
@@ -6848,14 +6848,14 @@ function ll(n, e) {
6848
6848
  ));
6849
6849
  var L = l[f];
6850
6850
  if (L !== void 0) {
6851
- var T = I.UTF16(m), C = ts(T, d);
6851
+ var T = C.UTF16(m), I = ts(T, d);
6852
6852
  h.push(es(
6853
6853
  3,
6854
6854
  1,
6855
6855
  L,
6856
6856
  t,
6857
6857
  T.length,
6858
- C
6858
+ I
6859
6859
  ));
6860
6860
  }
6861
6861
  }
@@ -7238,11 +7238,11 @@ de[1] = function() {
7238
7238
  coverage: this.parsePointer(b.coverage),
7239
7239
  substitute: this.parseOffset16List()
7240
7240
  };
7241
- B.assert(!1, "0x" + n.toString(16) + ": lookup type 1 format must be 1 or 2.");
7241
+ A.assert(!1, "0x" + n.toString(16) + ": lookup type 1 format must be 1 or 2.");
7242
7242
  };
7243
7243
  de[2] = function() {
7244
7244
  var n = this.parseUShort();
7245
- return B.argument(n === 1, "GSUB Multiple Substitution Subtable identifier-format must be 1"), {
7245
+ return A.argument(n === 1, "GSUB Multiple Substitution Subtable identifier-format must be 1"), {
7246
7246
  substFormat: n,
7247
7247
  coverage: this.parsePointer(b.coverage),
7248
7248
  sequences: this.parseListOfLists()
@@ -7250,7 +7250,7 @@ de[2] = function() {
7250
7250
  };
7251
7251
  de[3] = function() {
7252
7252
  var n = this.parseUShort();
7253
- return B.argument(n === 1, "GSUB Alternate Substitution Subtable identifier-format must be 1"), {
7253
+ return A.argument(n === 1, "GSUB Alternate Substitution Subtable identifier-format must be 1"), {
7254
7254
  substFormat: n,
7255
7255
  coverage: this.parsePointer(b.coverage),
7256
7256
  alternateSets: this.parseListOfLists()
@@ -7258,7 +7258,7 @@ de[3] = function() {
7258
7258
  };
7259
7259
  de[4] = function() {
7260
7260
  var n = this.parseUShort();
7261
- return B.argument(n === 1, "GSUB ligature table identifier-format must be 1"), {
7261
+ return A.argument(n === 1, "GSUB ligature table identifier-format must be 1"), {
7262
7262
  substFormat: n,
7263
7263
  coverage: this.parsePointer(b.coverage),
7264
7264
  ligatureSets: this.parseListOfLists(function() {
@@ -7308,7 +7308,7 @@ de[5] = function() {
7308
7308
  lookupRecords: this.parseRecordList(r, ot)
7309
7309
  };
7310
7310
  }
7311
- B.assert(!1, "0x" + n.toString(16) + ": lookup type 5 format must be 1, 2 or 3.");
7311
+ A.assert(!1, "0x" + n.toString(16) + ": lookup type 5 format must be 1, 2 or 3.");
7312
7312
  };
7313
7313
  de[6] = function() {
7314
7314
  var n = this.offset + this.relativeOffset, e = this.parseUShort();
@@ -7349,11 +7349,11 @@ de[6] = function() {
7349
7349
  lookaheadCoverage: this.parseList(b.pointer(b.coverage)),
7350
7350
  lookupRecords: this.parseRecordList(ot)
7351
7351
  };
7352
- B.assert(!1, "0x" + n.toString(16) + ": lookup type 6 format must be 1, 2 or 3.");
7352
+ A.assert(!1, "0x" + n.toString(16) + ": lookup type 6 format must be 1, 2 or 3.");
7353
7353
  };
7354
7354
  de[7] = function() {
7355
7355
  var n = this.parseUShort();
7356
- B.argument(n === 1, "GSUB Extension Substitution subtable identifier-format must be 1");
7356
+ A.argument(n === 1, "GSUB Extension Substitution subtable identifier-format must be 1");
7357
7357
  var e = this.parseUShort(), t = new b(this.data, this.offset + this.parseULong());
7358
7358
  return {
7359
7359
  substFormat: 1,
@@ -7363,7 +7363,7 @@ de[7] = function() {
7363
7363
  };
7364
7364
  de[8] = function() {
7365
7365
  var n = this.parseUShort();
7366
- return B.argument(n === 1, "GSUB Reverse Chaining Contextual Single Substitution Subtable identifier-format must be 1"), {
7366
+ return A.argument(n === 1, "GSUB Reverse Chaining Contextual Single Substitution Subtable identifier-format must be 1"), {
7367
7367
  substFormat: n,
7368
7368
  coverage: this.parsePointer(b.coverage),
7369
7369
  backtrackCoverage: this.parseList(b.pointer(b.coverage)),
@@ -7374,7 +7374,7 @@ de[8] = function() {
7374
7374
  function gl(n, e) {
7375
7375
  e = e || 0;
7376
7376
  var t = new b(n, e), r = t.parseVersion(1);
7377
- return B.argument(r === 1 || r === 1.1, "Unsupported GSUB table version."), r === 1 ? {
7377
+ return A.argument(r === 1 || r === 1.1, "Unsupported GSUB table version."), r === 1 ? {
7378
7378
  version: r,
7379
7379
  scripts: t.parseScriptList(),
7380
7380
  features: t.parseFeatureList(),
@@ -7399,7 +7399,7 @@ ht[1] = function(n) {
7399
7399
  ].concat(k.ushortList("substitute", n.substitute)));
7400
7400
  };
7401
7401
  ht[2] = function(n) {
7402
- return B.assert(n.substFormat === 1, "Lookup type 2 substFormat must be 1."), new k.Table("substitutionTable", [
7402
+ return A.assert(n.substFormat === 1, "Lookup type 2 substFormat must be 1."), new k.Table("substitutionTable", [
7403
7403
  { name: "substFormat", type: "USHORT", value: 1 },
7404
7404
  { name: "coverage", type: "TABLE", value: new k.Coverage(n.coverage) }
7405
7405
  ].concat(k.tableList("seqSet", n.sequences, function(e) {
@@ -7407,7 +7407,7 @@ ht[2] = function(n) {
7407
7407
  })));
7408
7408
  };
7409
7409
  ht[3] = function(n) {
7410
- return B.assert(n.substFormat === 1, "Lookup type 3 substFormat must be 1."), new k.Table("substitutionTable", [
7410
+ return A.assert(n.substFormat === 1, "Lookup type 3 substFormat must be 1."), new k.Table("substitutionTable", [
7411
7411
  { name: "substFormat", type: "USHORT", value: 1 },
7412
7412
  { name: "coverage", type: "TABLE", value: new k.Coverage(n.coverage) }
7413
7413
  ].concat(k.tableList("altSet", n.alternateSets, function(e) {
@@ -7415,7 +7415,7 @@ ht[3] = function(n) {
7415
7415
  })));
7416
7416
  };
7417
7417
  ht[4] = function(n) {
7418
- return B.assert(n.substFormat === 1, "Lookup type 4 substFormat must be 1."), new k.Table("substitutionTable", [
7418
+ return A.assert(n.substFormat === 1, "Lookup type 4 substFormat must be 1."), new k.Table("substitutionTable", [
7419
7419
  { name: "substFormat", type: "USHORT", value: 1 },
7420
7420
  { name: "coverage", type: "TABLE", value: new k.Coverage(n.coverage) }
7421
7421
  ].concat(k.tableList("ligSet", n.ligatureSets, function(e) {
@@ -7442,7 +7442,7 @@ ht[6] = function(n) {
7442
7442
  })));
7443
7443
  return e;
7444
7444
  } else if (n.substFormat === 2)
7445
- B.assert(!1, "lookup type 6 format 2 is not yet supported.");
7445
+ A.assert(!1, "lookup type 6 format 2 is not yet supported.");
7446
7446
  else if (n.substFormat === 3) {
7447
7447
  var t = [
7448
7448
  { name: "substFormat", type: "USHORT", value: n.substFormat }
@@ -7459,7 +7459,7 @@ ht[6] = function(n) {
7459
7459
  var r = new k.Table("chainContextTable", t);
7460
7460
  return r;
7461
7461
  }
7462
- B.assert(!1, "lookup type 6 format must be 1, 2 or 3.");
7462
+ A.assert(!1, "lookup type 6 format must be 1, 2 or 3.");
7463
7463
  };
7464
7464
  function ml(n) {
7465
7465
  return new k.Table("GSUB", [
@@ -7472,7 +7472,7 @@ function ml(n) {
7472
7472
  var Vi = { parse: gl, make: ml };
7473
7473
  function yl(n, e) {
7474
7474
  var t = new M.Parser(n, e), r = t.parseULong();
7475
- B.argument(r === 1, "Unsupported META table version."), t.parseULong(), t.parseULong();
7475
+ A.argument(r === 1, "Unsupported META table version."), t.parseULong(), t.parseULong();
7476
7476
  for (var s = t.parseULong(), i = {}, o = 0; o < s; o++) {
7477
7477
  var a = t.parseTag(), c = t.parseULong(), l = t.parseULong(), h = ct.UTF8(n, e + c, l);
7478
7478
  i[a] = h;
@@ -7526,9 +7526,9 @@ function Wi(n) {
7526
7526
  i += 1, s.push({ name: "padding", type: "BYTE", value: 0 });
7527
7527
  for (var o = 0; o < n.length; o += 1) {
7528
7528
  var a = n[o];
7529
- B.argument(a.tableName.length === 4, "Table name" + a.tableName + " is invalid.");
7529
+ A.argument(a.tableName.length === 4, "Table name" + a.tableName + " is invalid.");
7530
7530
  var c = a.sizeOf(), l = rs(a.tableName, yr(a.encode()), i, c);
7531
- for (r.push({ name: l.tag + " Table Record", type: "RECORD", value: l }), s.push({ name: a.tableName + " table", type: "RECORD", value: a }), i += c, B.argument(!isNaN(i), "Something went wrong calculating the offset."); i % 4 !== 0; )
7531
+ for (r.push({ name: l.tag + " Table Record", type: "RECORD", value: l }), s.push({ name: a.tableName + " table", type: "RECORD", value: a }), i += c, A.argument(!isNaN(i), "Something went wrong calculating the offset."); i % 4 !== 0; )
7532
7532
  i += 1, s.push({ name: "padding", type: "BYTE", value: 0 });
7533
7533
  }
7534
7534
  return r.sort(function(h, d) {
@@ -7584,7 +7584,7 @@ function xl(n) {
7584
7584
  minRightSideBearing: Math.min.apply(null, a)
7585
7585
  };
7586
7586
  x.ascender = n.ascender, x.descender = n.descender;
7587
- var _ = Ai.make({
7587
+ var _ = Bi.make({
7588
7588
  flags: 3,
7589
7589
  // 00000011 (baseline for font at y=0; left sidebearing point at x=0)
7590
7590
  unitsPerEm: n.unitsPerEm,
@@ -7627,13 +7627,13 @@ function xl(n) {
7627
7627
  // Use space as the default character, if available.
7628
7628
  usBreakChar: n.hasChar(" ") ? 32 : 0
7629
7629
  // Use space as the break character, if available.
7630
- }, n.tables.os2)), C = Oi.make(n.glyphs), O = bi.make(n.glyphs), G = n.getEnglishName("fontFamily"), Q = n.getEnglishName("fontSubfamily"), ee = G + " " + Q, Y = n.getEnglishName("postScriptName");
7630
+ }, n.tables.os2)), I = Oi.make(n.glyphs), O = bi.make(n.glyphs), G = n.getEnglishName("fontFamily"), Q = n.getEnglishName("fontSubfamily"), ee = G + " " + Q, Y = n.getEnglishName("postScriptName");
7631
7631
  Y || (Y = G.replace(/\s/g, "") + "-" + Q);
7632
7632
  var U = {};
7633
7633
  for (var N in n.names)
7634
7634
  U[N] = n.names[N];
7635
7635
  U.uniqueID || (U.uniqueID = { en: n.getEnglishName("manufacturer") + ":" + ee }), U.postScriptName || (U.postScriptName = { en: Y }), U.preferredFamily || (U.preferredFamily = n.names.fontFamily), U.preferredSubfamily || (U.preferredSubfamily = n.names.fontSubfamily);
7636
- var F = [], H = Ni.make(U, F), q = F.length > 0 ? Di.make(F) : void 0, X = zi.make(), J = Bi.make(n.glyphs, {
7636
+ var F = [], H = Ni.make(U, F), q = F.length > 0 ? Di.make(F) : void 0, X = zi.make(), J = Ai.make(n.glyphs, {
7637
7637
  version: n.getEnglishName("version"),
7638
7638
  fullName: ee,
7639
7639
  familyName: G,
@@ -7641,7 +7641,7 @@ function xl(n) {
7641
7641
  postScriptName: Y,
7642
7642
  unitsPerEm: n.unitsPerEm,
7643
7643
  fontBBox: [0, x.yMin, x.ascender, x.advanceWidthMax]
7644
- }), R = n.metas && Object.keys(n.metas).length > 0 ? Hi.make(n.metas) : void 0, Z = [_, w, L, T, H, O, X, J, C];
7644
+ }), R = n.metas && Object.keys(n.metas).length > 0 ? Hi.make(n.metas) : void 0, Z = [_, w, L, T, H, O, X, J, I];
7645
7645
  q && Z.push(q), n.tables.gsub && Z.push(Vi.make(n.tables.gsub)), R && Z.push(R);
7646
7646
  for (var xn = Wi(Z), ho = xn.encode(), uo = yr(ho), Sn = xn.fields, kr = !1, Nt = 0; Nt < Sn.length; Nt += 1)
7647
7647
  if (Sn[Nt].name === "head table") {
@@ -7814,7 +7814,7 @@ Ot.prototype = {
7814
7814
  return i.feature;
7815
7815
  if (r) {
7816
7816
  var l = a.length;
7817
- return B.assert(l === 0 || t >= a[l - 1].tag, "Features must be added in alphabetical order."), i = {
7817
+ return A.assert(l === 0 || t >= a[l - 1].tag, "Features must be added in alphabetical order."), i = {
7818
7818
  tag: t,
7819
7819
  feature: { params: 0, lookupListIndexes: [] }
7820
7820
  }, a.push(i), o.push(l), i.feature;
@@ -8023,19 +8023,19 @@ se.prototype.addSingle = function(n, e, t, r) {
8023
8023
  coverage: { format: 1, glyphs: [] },
8024
8024
  substitute: []
8025
8025
  });
8026
- B.assert(i.coverage.format === 1, "Single: unable to modify coverage table format " + i.coverage.format);
8026
+ A.assert(i.coverage.format === 1, "Single: unable to modify coverage table format " + i.coverage.format);
8027
8027
  var o = e.sub, a = this.binSearch(i.coverage.glyphs, o);
8028
8028
  a < 0 && (a = -1 - a, i.coverage.glyphs.splice(a, 0, o), i.substitute.splice(a, 0, 0)), i.substitute[a] = e.by;
8029
8029
  };
8030
8030
  se.prototype.addMultiple = function(n, e, t, r) {
8031
- B.assert(e.by instanceof Array && e.by.length > 1, 'Multiple: "by" must be an array of two or more ids');
8031
+ A.assert(e.by instanceof Array && e.by.length > 1, 'Multiple: "by" must be an array of two or more ids');
8032
8032
  var s = this.getLookupTables(t, r, n, 2, !0)[0], i = vr(s, 1, {
8033
8033
  // lookup type 2 subtable, format 1, coverage format 1
8034
8034
  substFormat: 1,
8035
8035
  coverage: { format: 1, glyphs: [] },
8036
8036
  sequences: []
8037
8037
  });
8038
- B.assert(i.coverage.format === 1, "Multiple: unable to modify coverage table format " + i.coverage.format);
8038
+ A.assert(i.coverage.format === 1, "Multiple: unable to modify coverage table format " + i.coverage.format);
8039
8039
  var o = e.sub, a = this.binSearch(i.coverage.glyphs, o);
8040
8040
  a < 0 && (a = -1 - a, i.coverage.glyphs.splice(a, 0, o), i.sequences.splice(a, 0, 0)), i.sequences[a] = e.by;
8041
8041
  };
@@ -8046,7 +8046,7 @@ se.prototype.addAlternate = function(n, e, t, r) {
8046
8046
  coverage: { format: 1, glyphs: [] },
8047
8047
  alternateSets: []
8048
8048
  });
8049
- B.assert(i.coverage.format === 1, "Alternate: unable to modify coverage table format " + i.coverage.format);
8049
+ A.assert(i.coverage.format === 1, "Alternate: unable to modify coverage table format " + i.coverage.format);
8050
8050
  var o = e.sub, a = this.binSearch(i.coverage.glyphs, o);
8051
8051
  a < 0 && (a = -1 - a, i.coverage.glyphs.splice(a, 0, o), i.alternateSets.splice(a, 0, 0)), i.alternateSets[a] = e.by;
8052
8052
  };
@@ -8057,7 +8057,7 @@ se.prototype.addLigature = function(n, e, t, r) {
8057
8057
  substFormat: 1,
8058
8058
  coverage: { format: 1, glyphs: [] },
8059
8059
  ligatureSets: []
8060
- }, s.subtables[0] = i), B.assert(i.coverage.format === 1, "Ligature: unable to modify coverage table format " + i.coverage.format);
8060
+ }, s.subtables[0] = i), A.assert(i.coverage.format === 1, "Ligature: unable to modify coverage table format " + i.coverage.format);
8061
8061
  var o = e.sub[0], a = e.sub.slice(1), c = {
8062
8062
  ligGlyph: e.by,
8063
8063
  components: a
@@ -8134,7 +8134,7 @@ function ji(n, e, t) {
8134
8134
  if (i = r.parseByte(), s.push(i), (i & 8) > 0)
8135
8135
  for (var d = r.parseByte(), u = 0; u < d; u += 1)
8136
8136
  s.push(i), h += 1;
8137
- if (B.argument(s.length === l, "Bad flags."), o.length > 0) {
8137
+ if (A.argument(s.length === l, "Bad flags."), o.length > 0) {
8138
8138
  var p = [], f;
8139
8139
  if (l > 0) {
8140
8140
  for (var m = 0; m < l; m += 1)
@@ -8183,18 +8183,18 @@ function En(n, e) {
8183
8183
  }
8184
8184
  return t;
8185
8185
  }
8186
- function Il(n) {
8186
+ function Cl(n) {
8187
8187
  for (var e = [], t = [], r = 0; r < n.length; r += 1) {
8188
8188
  var s = n[r];
8189
8189
  t.push(s), s.lastPointOfContour && (e.push(t), t = []);
8190
8190
  }
8191
- return B.argument(t.length === 0, "There are still points left in the current contour."), e;
8191
+ return A.argument(t.length === 0, "There are still points left in the current contour."), e;
8192
8192
  }
8193
8193
  function Xi(n) {
8194
8194
  var e = new j();
8195
8195
  if (!n)
8196
8196
  return e;
8197
- for (var t = Il(n), r = 0; r < t.length; ++r) {
8197
+ for (var t = Cl(n), r = 0; r < t.length; ++r) {
8198
8198
  var s = t[r], i = null, o = s[s.length - 1], a = s[0];
8199
8199
  if (o.onCurve)
8200
8200
  e.moveTo(o.x, o.y);
@@ -8241,22 +8241,22 @@ function $i(n, e) {
8241
8241
  }
8242
8242
  return Xi(e.points);
8243
8243
  }
8244
- function Cl(n, e, t, r) {
8245
- for (var s = new Ie.GlyphSet(r), i = 0; i < t.length - 1; i += 1) {
8244
+ function Il(n, e, t, r) {
8245
+ for (var s = new Ce.GlyphSet(r), i = 0; i < t.length - 1; i += 1) {
8246
8246
  var o = t[i], a = t[i + 1];
8247
- o !== a ? s.push(i, Ie.ttfGlyphLoader(r, i, ji, n, e + o, $i)) : s.push(i, Ie.glyphLoader(r, i));
8247
+ o !== a ? s.push(i, Ce.ttfGlyphLoader(r, i, ji, n, e + o, $i)) : s.push(i, Ce.glyphLoader(r, i));
8248
8248
  }
8249
8249
  return s;
8250
8250
  }
8251
8251
  function kl(n, e, t, r) {
8252
- var s = new Ie.GlyphSet(r);
8252
+ var s = new Ce.GlyphSet(r);
8253
8253
  return r._push = function(i) {
8254
8254
  var o = t[i], a = t[i + 1];
8255
- o !== a ? s.push(i, Ie.ttfGlyphLoader(r, i, ji, n, e + o, $i)) : s.push(i, Ie.glyphLoader(r, i));
8255
+ o !== a ? s.push(i, Ce.ttfGlyphLoader(r, i, ji, n, e + o, $i)) : s.push(i, Ce.glyphLoader(r, i));
8256
8256
  }, s;
8257
8257
  }
8258
8258
  function El(n, e, t, r, s) {
8259
- return s.lowMemory ? kl(n, e, t, r) : Cl(n, e, t, r);
8259
+ return s.lowMemory ? kl(n, e, t, r) : Il(n, e, t, r);
8260
8260
  }
8261
8261
  var Yi = { getPath: Xi, parse: El }, qi, je, Zi, cr;
8262
8262
  function Qi(n) {
@@ -8270,10 +8270,10 @@ function Ml(n) {
8270
8270
  function Ji(n) {
8271
8271
  return Math.sign(n) * Math.round(Math.abs(n));
8272
8272
  }
8273
- function Bl(n) {
8273
+ function Al(n) {
8274
8274
  return Math.sign(n) * Math.round(Math.abs(n * 2)) / 2;
8275
8275
  }
8276
- function Al(n) {
8276
+ function Bl(n) {
8277
8277
  return Math.sign(n) * (Math.round(Math.abs(n) + 0.5) - 0.5);
8278
8278
  }
8279
8279
  function Ll(n) {
@@ -8349,7 +8349,7 @@ var Ki = function(n) {
8349
8349
  untouch: function(n) {
8350
8350
  n.xTouched = !1;
8351
8351
  }
8352
- }, Ce = {
8352
+ }, Ie = {
8353
8353
  x: 0,
8354
8354
  y: 1,
8355
8355
  axis: "y",
@@ -8374,10 +8374,10 @@ var Ki = function(n) {
8374
8374
  return;
8375
8375
  }
8376
8376
  if (s = r.distance(n, e, !0, !0), i = r.distance(n, t, !0, !0), c = r.distance(e, e, !1, !0), l = r.distance(t, t, !1, !0), o = Math.abs(s), a = Math.abs(i), h = o + a, h === 0) {
8377
- Ce.setRelative(n, n, (c + l) / 2, r, !0);
8377
+ Ie.setRelative(n, n, (c + l) / 2, r, !0);
8378
8378
  return;
8379
8379
  }
8380
- Ce.setRelative(n, n, (c * a + l * o) / h, r, !0);
8380
+ Ie.setRelative(n, n, (c * a + l * o) / h, r, !0);
8381
8381
  },
8382
8382
  // Slope of line normal to this.
8383
8383
  normalSlope: 0,
@@ -8415,12 +8415,12 @@ var Ki = function(n) {
8415
8415
  }
8416
8416
  };
8417
8417
  Object.freeze(Te);
8418
- Object.freeze(Ce);
8418
+ Object.freeze(Ie);
8419
8419
  function Rt(n, e) {
8420
8420
  this.x = n, this.y = e, this.axis = void 0, this.slope = e / n, this.normalSlope = -n / e, Object.freeze(this);
8421
8421
  }
8422
8422
  Rt.prototype.distance = function(n, e, t, r) {
8423
- return this.x * Te.distance(n, e, t, r) + this.y * Ce.distance(n, e, t, r);
8423
+ return this.x * Te.distance(n, e, t, r) + this.y * Ie.distance(n, e, t, r);
8424
8424
  };
8425
8425
  Rt.prototype.interpolate = function(n, e, t, r) {
8426
8426
  var s, i, o, a, c, l, h;
@@ -8440,7 +8440,7 @@ Rt.prototype.touch = function(n) {
8440
8440
  };
8441
8441
  function Ut(n, e) {
8442
8442
  var t = Math.sqrt(n * n + e * e);
8443
- return n /= t, e /= t, n === 1 && e === 0 ? Te : n === 0 && e === 1 ? Ce : new Rt(n, e);
8443
+ return n /= t, e /= t, n === 1 && e === 0 ? Te : n === 0 && e === 1 ? Ie : new Rt(n, e);
8444
8444
  }
8445
8445
  function ke(n, e, t, r) {
8446
8446
  this.x = this.xo = Math.round(n * 64) / 64, this.y = this.yo = Math.round(e * 64) / 64, this.lastPointOfContour = t, this.onCurve = r, this.prevPointOnContour = void 0, this.nextPointOnContour = void 0, this.xTouched = !1, this.yTouched = !1, Object.preventExtensions(this);
@@ -8466,7 +8466,7 @@ var Et = Object.freeze(new ke(0, 0)), Dl = {
8466
8466
  // minimum distance
8467
8467
  autoFlip: !0
8468
8468
  };
8469
- function Ae(n, e) {
8469
+ function Be(n, e) {
8470
8470
  switch (this.env = n, this.stack = [], this.prog = e, n) {
8471
8471
  case "glyf":
8472
8472
  this.zp0 = this.zp1 = this.zp2 = 1, this.rp0 = this.rp1 = this.rp2 = 0;
@@ -8482,7 +8482,7 @@ Qi.prototype.exec = function(n, e) {
8482
8482
  if (!r || r.ppem !== e) {
8483
8483
  var s = this._fpgmState;
8484
8484
  if (!s) {
8485
- Ae.prototype = Dl, s = this._fpgmState = new Ae("fpgm", t.tables.fpgm), s.funcs = [], s.font = t, exports.DEBUG && (console.log("---EXEC FPGM---"), s.step = -1);
8485
+ Be.prototype = Dl, s = this._fpgmState = new Be("fpgm", t.tables.fpgm), s.funcs = [], s.font = t, exports.DEBUG && (console.log("---EXEC FPGM---"), s.step = -1);
8486
8486
  try {
8487
8487
  je(s);
8488
8488
  } catch (l) {
@@ -8490,7 +8490,7 @@ Qi.prototype.exec = function(n, e) {
8490
8490
  return;
8491
8491
  }
8492
8492
  }
8493
- Ae.prototype = s, r = this._prepState = new Ae("prep", t.tables.prep), r.ppem = e;
8493
+ Be.prototype = s, r = this._prepState = new Be("prep", t.tables.prep), r.ppem = e;
8494
8494
  var i = t.tables.cvt;
8495
8495
  if (i)
8496
8496
  for (var o = r.cvt = new Array(i.length), a = e / t.unitsPerEm, c = 0; c < i.length; c++)
@@ -8515,14 +8515,14 @@ Qi.prototype.exec = function(n, e) {
8515
8515
  };
8516
8516
  Zi = function(n, e) {
8517
8517
  var t = e.ppem / e.font.unitsPerEm, r = t, s = n.components, i, o, a;
8518
- if (Ae.prototype = e, !s)
8519
- a = new Ae("glyf", n.instructions), exports.DEBUG && (console.log("---EXEC GLYPH---"), a.step = -1), cr(n, a, t, r), o = a.gZone;
8518
+ if (Be.prototype = e, !s)
8519
+ a = new Be("glyf", n.instructions), exports.DEBUG && (console.log("---EXEC GLYPH---"), a.step = -1), cr(n, a, t, r), o = a.gZone;
8520
8520
  else {
8521
8521
  var c = e.font;
8522
8522
  o = [], i = [];
8523
8523
  for (var l = 0; l < s.length; l++) {
8524
8524
  var h = s[l], d = c.glyphs.get(h.glyphIndex);
8525
- a = new Ae("glyf", d.instructions), exports.DEBUG && (console.log("---EXEC COMP " + l + "---"), a.step = -1), cr(d, a, t, r);
8525
+ a = new Be("glyf", d.instructions), exports.DEBUG && (console.log("---EXEC COMP " + l + "---"), a.step = -1), cr(d, a, t, r);
8526
8526
  for (var u = Math.round(h.dx * t), p = Math.round(h.dy * r), f = a.gZone, m = a.contours, y = 0; y < f.length; y++) {
8527
8527
  var v = f[y];
8528
8528
  v.xTouched = v.yTouched = !1, v.xo = v.x = v.x + u, v.yo = v.y = v.y + p;
@@ -8532,7 +8532,7 @@ Zi = function(n, e) {
8532
8532
  for (var x = 0; x < m.length; x++)
8533
8533
  i.push(m[x] + S);
8534
8534
  }
8535
- n.instructions && !a.inhibitGridFit && (a = new Ae("glyf", n.instructions), a.gZone = a.z0 = a.z1 = a.z2 = o, a.contours = i, o.push(
8535
+ n.instructions && !a.inhibitGridFit && (a = new Be("glyf", n.instructions), a.gZone = a.z0 = a.z1 = a.z2 = o, a.contours = i, o.push(
8536
8536
  new ke(0, 0),
8537
8537
  new ke(Math.round(n.advanceWidth * t), 0)
8538
8538
  ), exports.DEBUG && (console.log("---EXEC COMPOSITE---"), a.step = -1), je(a), o.length -= 2);
@@ -8645,8 +8645,8 @@ function Gl(n) {
8645
8645
  function Nl(n) {
8646
8646
  var e = n.stack, t = e.pop(), r = e.pop(), s = e.pop(), i = e.pop(), o = e.pop(), a = n.z0, c = n.z1, l = a[t], h = a[r], d = c[s], u = c[i], p = n.z2[o];
8647
8647
  exports.DEBUG && console.log("ISECT[], ", t, r, s, i, o);
8648
- var f = l.x, m = l.y, y = h.x, v = h.y, S = d.x, x = d.y, _ = u.x, w = u.y, L = (f - y) * (x - w) - (m - v) * (S - _), T = f * v - m * y, C = S * w - x * _;
8649
- p.x = (T * (S - _) - C * (f - y)) / L, p.y = (T * (x - w) - C * (m - v)) / L;
8648
+ var f = l.x, m = l.y, y = h.x, v = h.y, S = d.x, x = d.y, _ = u.x, w = u.y, L = (f - y) * (x - w) - (m - v) * (S - _), T = f * v - m * y, I = S * w - x * _;
8649
+ p.x = (T * (S - _) - I * (f - y)) / L, p.y = (T * (x - w) - I * (m - v)) / L;
8650
8650
  }
8651
8651
  function zl(n) {
8652
8652
  n.rp0 = n.stack.pop(), exports.DEBUG && console.log(n.step, "SRP0[]", n.rp0);
@@ -8716,7 +8716,7 @@ function ql(n) {
8716
8716
  exports.DEBUG && console.log(n.step, "RTG[]"), n.round = Ji;
8717
8717
  }
8718
8718
  function Zl(n) {
8719
- exports.DEBUG && console.log(n.step, "RTHG[]"), n.round = Al;
8719
+ exports.DEBUG && console.log(n.step, "RTHG[]"), n.round = Bl;
8720
8720
  }
8721
8721
  function Ql(n) {
8722
8722
  var e = n.stack.pop();
@@ -8876,7 +8876,7 @@ function dh(n) {
8876
8876
  n.loop = 1;
8877
8877
  }
8878
8878
  function ph(n) {
8879
- exports.DEBUG && console.log(n.step, "RTDG[]"), n.round = Bl;
8879
+ exports.DEBUG && console.log(n.step, "RTDG[]"), n.round = Al;
8880
8880
  }
8881
8881
  function bs(n, e) {
8882
8882
  var t = e.stack, r = t.pop(), s = t.pop(), i = e.z0[s], o = e.fv, a = e.pv, c = e.cvt[r];
@@ -8954,11 +8954,11 @@ function Th(n) {
8954
8954
  var e = n.stack, t = e.pop(), r = e.pop();
8955
8955
  exports.DEBUG && console.log(n.step, "GT[]", t, r), e.push(r > t ? 1 : 0);
8956
8956
  }
8957
- function Ih(n) {
8957
+ function Ch(n) {
8958
8958
  var e = n.stack, t = e.pop(), r = e.pop();
8959
8959
  exports.DEBUG && console.log(n.step, "GTEQ[]", t, r), e.push(r >= t ? 1 : 0);
8960
8960
  }
8961
- function Ch(n) {
8961
+ function Ih(n) {
8962
8962
  var e = n.stack, t = e.pop(), r = e.pop();
8963
8963
  exports.DEBUG && console.log(n.step, "EQ[]", t, r), e.push(t === r ? 1 : 0);
8964
8964
  }
@@ -8974,11 +8974,11 @@ function Mh(n) {
8974
8974
  var e = n.stack, t = e.pop();
8975
8975
  exports.DEBUG && console.log(n.step, "EVEN[]", t), e.push(Math.trunc(t) % 2 ? 0 : 1);
8976
8976
  }
8977
- function Bh(n) {
8977
+ function Ah(n) {
8978
8978
  var e = n.stack.pop();
8979
8979
  exports.DEBUG && console.log(n.step, "IF[]", e), e || (eo(n, !0), exports.DEBUG && console.log(n.step, "EIF[]"));
8980
8980
  }
8981
- function Ah(n) {
8981
+ function Bh(n) {
8982
8982
  exports.DEBUG && console.log(n.step, "EIF[]");
8983
8983
  }
8984
8984
  function Lh(n) {
@@ -8993,7 +8993,7 @@ function Dh(n) {
8993
8993
  var e = n.stack, t = e.pop();
8994
8994
  exports.DEBUG && console.log(n.step, "NOT[]", t), e.push(t ? 0 : 1);
8995
8995
  }
8996
- function Bn(n, e) {
8996
+ function An(n, e) {
8997
8997
  var t = e.stack, r = t.pop(), s = e.fv, i = e.pv, o = e.ppem, a = e.deltaBase + (n - 1) * 16, c = e.deltaShift, l = e.z0;
8998
8998
  exports.DEBUG && console.log(e.step, "DELTAP[" + n + "]", r, t);
8999
8999
  for (var h = 0; h < r; h++) {
@@ -9054,7 +9054,7 @@ function jh(n) {
9054
9054
  var e = n.stack, t = e.pop(), r = e.pop();
9055
9055
  exports.DEBUG && console.log(n.step, "WCVTF[]", t, r), n.cvt[r] = t * n.ppem / n.font.unitsPerEm;
9056
9056
  }
9057
- function An(n, e) {
9057
+ function Bn(n, e) {
9058
9058
  var t = e.stack, r = t.pop(), s = e.ppem, i = e.deltaBase + (n - 1) * 16, o = e.deltaShift;
9059
9059
  exports.DEBUG && console.log(e.step, "DELTAC[" + n + "]", r, t);
9060
9060
  for (var a = 0; a < r; a++) {
@@ -9221,15 +9221,15 @@ function E(n, e, t, r, s, i) {
9221
9221
  }
9222
9222
  qi = [
9223
9223
  /* 0x00 */
9224
- cs.bind(void 0, Ce),
9224
+ cs.bind(void 0, Ie),
9225
9225
  /* 0x01 */
9226
9226
  cs.bind(void 0, Te),
9227
9227
  /* 0x02 */
9228
- ls.bind(void 0, Ce),
9228
+ ls.bind(void 0, Ie),
9229
9229
  /* 0x03 */
9230
9230
  ls.bind(void 0, Te),
9231
9231
  /* 0x04 */
9232
- hs.bind(void 0, Ce),
9232
+ hs.bind(void 0, Ie),
9233
9233
  /* 0x05 */
9234
9234
  hs.bind(void 0, Te),
9235
9235
  /* 0x06 */
@@ -9322,7 +9322,7 @@ qi = [
9322
9322
  /* 0x2F */
9323
9323
  ps.bind(void 0, 1),
9324
9324
  /* 0x30 */
9325
- fs.bind(void 0, Ce),
9325
+ fs.bind(void 0, Ie),
9326
9326
  /* 0x31 */
9327
9327
  fs.bind(void 0, Te),
9328
9328
  /* 0x32 */
@@ -9396,9 +9396,9 @@ qi = [
9396
9396
  /* 0x52 */
9397
9397
  Th,
9398
9398
  /* 0x53 */
9399
- Ih,
9400
- /* 0x54 */
9401
9399
  Ch,
9400
+ /* 0x54 */
9401
+ Ih,
9402
9402
  /* 0x55 */
9403
9403
  kh,
9404
9404
  /* 0x56 */
@@ -9406,9 +9406,9 @@ qi = [
9406
9406
  /* 0x57 */
9407
9407
  Mh,
9408
9408
  /* 0x58 */
9409
- Bh,
9410
- /* 0x59 */
9411
9409
  Ah,
9410
+ /* 0x59 */
9411
+ Bh,
9412
9412
  /* 0x5A */
9413
9413
  Lh,
9414
9414
  /* 0x5B */
@@ -9416,7 +9416,7 @@ qi = [
9416
9416
  /* 0x5C */
9417
9417
  Dh,
9418
9418
  /* 0x5D */
9419
- Bn.bind(void 0, 1),
9419
+ An.bind(void 0, 1),
9420
9420
  /* 0x5E */
9421
9421
  Rh,
9422
9422
  /* 0x5F */
@@ -9460,15 +9460,15 @@ qi = [
9460
9460
  /* 0x70 */
9461
9461
  jh,
9462
9462
  /* 0x71 */
9463
- Bn.bind(void 0, 2),
9463
+ An.bind(void 0, 2),
9464
9464
  /* 0x72 */
9465
- Bn.bind(void 0, 3),
9465
+ An.bind(void 0, 3),
9466
9466
  /* 0x73 */
9467
- An.bind(void 0, 1),
9467
+ Bn.bind(void 0, 1),
9468
9468
  /* 0x74 */
9469
- An.bind(void 0, 2),
9469
+ Bn.bind(void 0, 2),
9470
9470
  /* 0x75 */
9471
- An.bind(void 0, 3),
9471
+ Bn.bind(void 0, 3),
9472
9472
  /* 0x76 */
9473
9473
  Xh,
9474
9474
  /* 0x77 */
@@ -10461,7 +10461,7 @@ function Ts(n, e) {
10461
10461
  });
10462
10462
  return new pe(t, 0);
10463
10463
  }
10464
- function Iu(n) {
10464
+ function Cu(n) {
10465
10465
  var e = this, t = "arab", r = this.tokenizer.getRangeTokens(n), s = Ts(r);
10466
10466
  s.context.forEach(function(i, o) {
10467
10467
  s.setCurrentIndex(o);
@@ -10477,7 +10477,7 @@ function Iu(n) {
10477
10477
  ), s = Ts(r));
10478
10478
  });
10479
10479
  }
10480
- function Cu(n) {
10480
+ function Iu(n) {
10481
10481
  var e = n.current, t = n.get(-1);
10482
10482
  return (
10483
10483
  // ? latin first char
@@ -10494,17 +10494,17 @@ function ku(n) {
10494
10494
  );
10495
10495
  }
10496
10496
  var Eu = {
10497
- startCheck: Cu,
10497
+ startCheck: Iu,
10498
10498
  endCheck: ku
10499
10499
  };
10500
- function Is(n, e) {
10500
+ function Cs(n, e) {
10501
10501
  var t = n.map(function(r) {
10502
10502
  return r.activeState.value;
10503
10503
  });
10504
10504
  return new pe(t, 0);
10505
10505
  }
10506
10506
  function Mu(n) {
10507
- var e = this, t = "latn", r = this.tokenizer.getRangeTokens(n), s = Is(r);
10507
+ var e = this, t = "latn", r = this.tokenizer.getRangeTokens(n), s = Cs(r);
10508
10508
  s.context.forEach(function(i, o) {
10509
10509
  s.setCurrentIndex(o);
10510
10510
  var a = e.query.lookupFeature({
@@ -10516,7 +10516,7 @@ function Mu(n) {
10516
10516
  function(c) {
10517
10517
  return xr(c, r, o);
10518
10518
  }
10519
- ), s = Is(r));
10519
+ ), s = Cs(r));
10520
10520
  });
10521
10521
  }
10522
10522
  function ye(n) {
@@ -10538,10 +10538,10 @@ function On(n) {
10538
10538
  e.endCheck
10539
10539
  );
10540
10540
  }
10541
- function Bu() {
10541
+ function Au() {
10542
10542
  return On.call(this, "latinWord"), On.call(this, "arabicWord"), On.call(this, "arabicSentence"), this.tokenizer.tokenize(this.text);
10543
10543
  }
10544
- function Au() {
10544
+ function Bu() {
10545
10545
  var n = this, e = this.tokenizer.getContextRanges("arabicSentence");
10546
10546
  e.forEach(function(t) {
10547
10547
  var r = n.tokenizer.getRangeTokens(t);
@@ -10598,7 +10598,7 @@ function Ou() {
10598
10598
  Sr.call(this);
10599
10599
  var r = this.tokenizer.getContextRanges("arabicWord");
10600
10600
  r.forEach(function(s) {
10601
- Iu.call(n, s);
10601
+ Cu.call(n, s);
10602
10602
  });
10603
10603
  }
10604
10604
  }
@@ -10620,10 +10620,10 @@ ye.prototype.checkContextReady = function(n) {
10620
10620
  return !!this.tokenizer.getContext(n);
10621
10621
  };
10622
10622
  ye.prototype.applyFeaturesToContexts = function() {
10623
- this.checkContextReady("arabicWord") && (Lu.call(this), Ou.call(this)), this.checkContextReady("latinWord") && Du.call(this), this.checkContextReady("arabicSentence") && Au.call(this);
10623
+ this.checkContextReady("arabicWord") && (Lu.call(this), Ou.call(this)), this.checkContextReady("latinWord") && Du.call(this), this.checkContextReady("arabicSentence") && Bu.call(this);
10624
10624
  };
10625
10625
  ye.prototype.processText = function(n) {
10626
- (!this.text || this.text !== n) && (this.setText(n), Bu.call(this), this.applyFeaturesToContexts());
10626
+ (!this.text || this.text !== n) && (this.setText(n), Au.call(this), this.applyFeaturesToContexts());
10627
10627
  };
10628
10628
  ye.prototype.getBidiText = function(n) {
10629
10629
  return this.processText(n), this.tokenizer.getText();
@@ -10662,7 +10662,7 @@ function D(n) {
10662
10662
  usWidthClass: n.widthClass || this.usWidthClasses.MEDIUM,
10663
10663
  fsSelection: n.fsSelection || this.fsSelectionValues.REGULAR
10664
10664
  }, n.tables.os2)
10665
- })), this.supported = !0, this.glyphs = new Ie.GlyphSet(this, n.glyphs || []), this.encoding = new xi(this), this.position = new Dt(this), this.substitution = new se(this), this.tables = this.tables || {}, this._push = null, this._hmtxTableData = {}, Object.defineProperty(this, "hinting", {
10665
+ })), this.supported = !0, this.glyphs = new Ce.GlyphSet(this, n.glyphs || []), this.encoding = new xi(this), this.position = new Dt(this), this.substitution = new se(this), this.tables = this.tables || {}, this._push = null, this._hmtxTableData = {}, Object.defineProperty(this, "hinting", {
10666
10666
  get: function() {
10667
10667
  if (this._hinting)
10668
10668
  return this._hinting;
@@ -10928,7 +10928,7 @@ function Gu(n, e) {
10928
10928
  }
10929
10929
  function Nu(n, e, t) {
10930
10930
  var r = new M.Parser(n, e), s = r.parseULong();
10931
- B.argument(s === 65536, "Unsupported fvar table version.");
10931
+ A.argument(s === 65536, "Unsupported fvar table version.");
10932
10932
  var i = r.parseOffset16();
10933
10933
  r.skip("uShort", 1);
10934
10934
  for (var o = r.parseUShort(), a = r.parseUShort(), c = r.parseUShort(), l = r.parseUShort(), h = [], d = 0; d < o; d++)
@@ -10944,7 +10944,7 @@ var zu = { make: Gu, parse: Nu }, Vu = function() {
10944
10944
  };
10945
10945
  }, Hu = function() {
10946
10946
  var n = this.parseUShort();
10947
- if (B.argument(
10947
+ if (A.argument(
10948
10948
  n === 1 || n === 2 || n === 3,
10949
10949
  "Unsupported CaretValue table version."
10950
10950
  ), n === 1)
@@ -10966,7 +10966,7 @@ var zu = { make: Gu, parse: Nu }, Vu = function() {
10966
10966
  function $u(n, e) {
10967
10967
  e = e || 0;
10968
10968
  var t = new b(n, e), r = t.parseVersion(1);
10969
- B.argument(
10969
+ A.argument(
10970
10970
  r === 1 || r === 1.2 || r === 1.3,
10971
10971
  "Unsupported GDEF table version."
10972
10972
  );
@@ -10994,11 +10994,11 @@ fe[1] = function() {
10994
10994
  coverage: this.parsePointer(b.coverage),
10995
10995
  values: this.parseValueRecordList()
10996
10996
  };
10997
- B.assert(!1, "0x" + n.toString(16) + ": GPOS lookup type 1 format must be 1 or 2.");
10997
+ A.assert(!1, "0x" + n.toString(16) + ": GPOS lookup type 1 format must be 1 or 2.");
10998
10998
  };
10999
10999
  fe[2] = function() {
11000
11000
  var n = this.offset + this.relativeOffset, e = this.parseUShort();
11001
- B.assert(e === 1 || e === 2, "0x" + n.toString(16) + ": GPOS lookup type 2 format must be 1 or 2.");
11001
+ A.assert(e === 1 || e === 2, "0x" + n.toString(16) + ": GPOS lookup type 2 format must be 1 or 2.");
11002
11002
  var t = this.parsePointer(b.coverage), r = this.parseUShort(), s = this.parseUShort();
11003
11003
  if (e === 1)
11004
11004
  return {
@@ -11060,7 +11060,7 @@ fe[9] = function() {
11060
11060
  function qu(n, e) {
11061
11061
  e = e || 0;
11062
11062
  var t = new b(n, e), r = t.parseVersion(1);
11063
- return B.argument(r === 1 || r === 1.1, "Unsupported GPOS table version " + r), r === 1 ? {
11063
+ return A.argument(r === 1 || r === 1.1, "Unsupported GPOS table version " + r), r === 1 ? {
11064
11064
  version: r,
11065
11065
  scripts: t.parseScriptList(),
11066
11066
  features: t.parseFeatureList(),
@@ -11087,7 +11087,7 @@ function Ku(n) {
11087
11087
  var e = {};
11088
11088
  n.skip("uShort");
11089
11089
  var t = n.parseUShort();
11090
- B.argument(t === 0, "Unsupported kern sub-table version."), n.skip("uShort", 2);
11090
+ A.argument(t === 0, "Unsupported kern sub-table version."), n.skip("uShort", 2);
11091
11091
  var r = n.parseUShort();
11092
11092
  n.skip("uShort", 3);
11093
11093
  for (var s = 0; s < r; s += 1) {
@@ -11129,7 +11129,7 @@ function rd(n, e, t, r) {
11129
11129
  return o;
11130
11130
  }
11131
11131
  var sd = { parse: rd };
11132
- function Cs(n, e) {
11132
+ function Is(n, e) {
11133
11133
  for (var t = [], r = 12, s = 0; s < e; s += 1) {
11134
11134
  var i = M.getTag(n, r), o = M.getULong(n, r + 4), a = M.getULong(n, r + 8), c = M.getULong(n, r + 12);
11135
11135
  t.push({ tag: i, checksum: o, offset: a, length: c, compression: !1 }), r += 16;
@@ -11163,9 +11163,9 @@ function od(n, e) {
11163
11163
  e = e ?? {};
11164
11164
  var t, r, s = new D({ empty: !0 }), i = new DataView(n, 0), o, a = [], c = M.getTag(i, 0);
11165
11165
  if (c === "\0\0\0" || c === "true" || c === "typ1")
11166
- s.outlinesFormat = "truetype", o = M.getUShort(i, 4), a = Cs(i, o);
11166
+ s.outlinesFormat = "truetype", o = M.getUShort(i, 4), a = Is(i, o);
11167
11167
  else if (c === "OTTO")
11168
- s.outlinesFormat = "cff", o = M.getUShort(i, 4), a = Cs(i, o);
11168
+ s.outlinesFormat = "cff", o = M.getUShort(i, 4), a = Is(i, o);
11169
11169
  else if (c === "wOFF") {
11170
11170
  var l = M.getTag(i, 4);
11171
11171
  if (l === "\0\0\0")
@@ -11178,46 +11178,46 @@ function od(n, e) {
11178
11178
  } else
11179
11179
  throw new Error("Unsupported OpenType signature " + c);
11180
11180
  for (var h, d, u, p, f, m, y, v, S, x, _, w, L = 0; L < o; L += 1) {
11181
- var T = a[L], C = void 0;
11181
+ var T = a[L], I = void 0;
11182
11182
  switch (T.tag) {
11183
11183
  case "cmap":
11184
- C = z(i, T), s.tables.cmap = bi.parse(C.data, C.offset), s.encoding = new Si(s.tables.cmap);
11184
+ I = z(i, T), s.tables.cmap = bi.parse(I.data, I.offset), s.encoding = new Si(s.tables.cmap);
11185
11185
  break;
11186
11186
  case "cvt ":
11187
- C = z(i, T), w = new M.Parser(C.data, C.offset), s.tables.cvt = w.parseShortList(T.length / 2);
11187
+ I = z(i, T), w = new M.Parser(I.data, I.offset), s.tables.cvt = w.parseShortList(T.length / 2);
11188
11188
  break;
11189
11189
  case "fvar":
11190
11190
  d = T;
11191
11191
  break;
11192
11192
  case "fpgm":
11193
- C = z(i, T), w = new M.Parser(C.data, C.offset), s.tables.fpgm = w.parseByteList(T.length);
11193
+ I = z(i, T), w = new M.Parser(I.data, I.offset), s.tables.fpgm = w.parseByteList(T.length);
11194
11194
  break;
11195
11195
  case "head":
11196
- C = z(i, T), s.tables.head = Ai.parse(C.data, C.offset), s.unitsPerEm = s.tables.head.unitsPerEm, t = s.tables.head.indexToLocFormat;
11196
+ I = z(i, T), s.tables.head = Bi.parse(I.data, I.offset), s.unitsPerEm = s.tables.head.unitsPerEm, t = s.tables.head.indexToLocFormat;
11197
11197
  break;
11198
11198
  case "hhea":
11199
- C = z(i, T), s.tables.hhea = Li.parse(C.data, C.offset), s.ascender = s.tables.hhea.ascender, s.descender = s.tables.hhea.descender, s.numberOfHMetrics = s.tables.hhea.numberOfHMetrics;
11199
+ I = z(i, T), s.tables.hhea = Li.parse(I.data, I.offset), s.ascender = s.tables.hhea.ascender, s.descender = s.tables.hhea.descender, s.numberOfHMetrics = s.tables.hhea.numberOfHMetrics;
11200
11200
  break;
11201
11201
  case "hmtx":
11202
11202
  y = T;
11203
11203
  break;
11204
11204
  case "ltag":
11205
- C = z(i, T), r = Di.parse(C.data, C.offset);
11205
+ I = z(i, T), r = Di.parse(I.data, I.offset);
11206
11206
  break;
11207
11207
  case "maxp":
11208
- C = z(i, T), s.tables.maxp = Ri.parse(C.data, C.offset), s.numGlyphs = s.tables.maxp.numGlyphs;
11208
+ I = z(i, T), s.tables.maxp = Ri.parse(I.data, I.offset), s.numGlyphs = s.tables.maxp.numGlyphs;
11209
11209
  break;
11210
11210
  case "name":
11211
11211
  x = T;
11212
11212
  break;
11213
11213
  case "OS/2":
11214
- C = z(i, T), s.tables.os2 = ar.parse(C.data, C.offset);
11214
+ I = z(i, T), s.tables.os2 = ar.parse(I.data, I.offset);
11215
11215
  break;
11216
11216
  case "post":
11217
- C = z(i, T), s.tables.post = zi.parse(C.data, C.offset), s.glyphNames = new gr(s.tables.post);
11217
+ I = z(i, T), s.tables.post = zi.parse(I.data, I.offset), s.glyphNames = new gr(s.tables.post);
11218
11218
  break;
11219
11219
  case "prep":
11220
- C = z(i, T), w = new M.Parser(C.data, C.offset), s.tables.prep = w.parseByteList(T.length);
11220
+ I = z(i, T), w = new M.Parser(I.data, I.offset), s.tables.prep = w.parseByteList(T.length);
11221
11221
  break;
11222
11222
  case "glyf":
11223
11223
  u = T;
@@ -11251,7 +11251,7 @@ function od(n, e) {
11251
11251
  s.glyphs = Yi.parse(Y.data, Y.offset, ee, s, e);
11252
11252
  } else if (h) {
11253
11253
  var U = z(i, h);
11254
- Bi.parse(U.data, U.offset, s, e);
11254
+ Ai.parse(U.data, U.offset, s, e);
11255
11255
  } else
11256
11256
  throw new Error("Font doesn't contain TrueType or CFF outlines.");
11257
11257
  var N = z(i, y);
@@ -12468,7 +12468,7 @@ class wr extends oi {
12468
12468
  return e;
12469
12469
  }
12470
12470
  }
12471
- class Bs extends ii {
12471
+ class As extends ii {
12472
12472
  constructor(e) {
12473
12473
  super(), this.type = "shx", this.font = new gd(e), this.data = this.font.fontData;
12474
12474
  }
@@ -12550,7 +12550,7 @@ class Le {
12550
12550
  */
12551
12551
  createFont(e) {
12552
12552
  if (e.type === "shx")
12553
- return new Bs(e.data);
12553
+ return new As(e.data);
12554
12554
  if (e.type === "mesh")
12555
12555
  return new ks(e.data);
12556
12556
  throw new Error("Unsupported font data type");
@@ -12567,7 +12567,7 @@ class Le {
12567
12567
  createFontFromBuffer(e, t) {
12568
12568
  const r = Ua(e).toLowerCase();
12569
12569
  if (r === "shx")
12570
- return new Bs(t);
12570
+ return new As(t);
12571
12571
  if (["ttf", "otf", "woff"].includes(r))
12572
12572
  return new ks(t);
12573
12573
  throw new Error(`Unsupported font file type: ${r}`);
@@ -12786,7 +12786,7 @@ class he {
12786
12786
  return e == null ? (this.fontMap.clear(), !0) : this.fontMap.delete(e);
12787
12787
  }
12788
12788
  }
12789
- var Bt = /* @__PURE__ */ ((n) => (n[n.LEFT_TO_RIGHT = 1] = "LEFT_TO_RIGHT", n[n.RIGHT_TO_LEFT = 2] = "RIGHT_TO_LEFT", n[n.TOP_TO_BOTTOM = 3] = "TOP_TO_BOTTOM", n[n.BOTTOM_TO_TOP = 4] = "BOTTOM_TO_TOP", n[n.BY_STYLE = 5] = "BY_STYLE", n))(Bt || {}), rt = /* @__PURE__ */ ((n) => (n[n.NONE = 0] = "NONE", n[n.WORD = 1] = "WORD", n[n.STACK = 2] = "STACK", n[n.SPACE = 3] = "SPACE", n[n.NBSP = 4] = "NBSP", n[n.TABULATOR = 5] = "TABULATOR", n[n.NEW_PARAGRAPH = 6] = "NEW_PARAGRAPH", n[n.NEW_COLUMN = 7] = "NEW_COLUMN", n[n.WRAP_AT_DIMLINE = 8] = "WRAP_AT_DIMLINE", n[n.PROPERTIES_CHANGED = 9] = "PROPERTIES_CHANGED", n))(rt || {}), bt = /* @__PURE__ */ ((n) => (n[n.BOTTOM = 0] = "BOTTOM", n[n.MIDDLE = 1] = "MIDDLE", n[n.TOP = 2] = "TOP", n))(bt || {}), le = /* @__PURE__ */ ((n) => (n[n.DEFAULT = 0] = "DEFAULT", n[n.LEFT = 1] = "LEFT", n[n.RIGHT = 2] = "RIGHT", n[n.CENTER = 3] = "CENTER", n[n.JUSTIFIED = 4] = "JUSTIFIED", n[n.DISTRIBUTED = 5] = "DISTRIBUTED", n))(le || {});
12789
+ var At = /* @__PURE__ */ ((n) => (n[n.LEFT_TO_RIGHT = 1] = "LEFT_TO_RIGHT", n[n.RIGHT_TO_LEFT = 2] = "RIGHT_TO_LEFT", n[n.TOP_TO_BOTTOM = 3] = "TOP_TO_BOTTOM", n[n.BOTTOM_TO_TOP = 4] = "BOTTOM_TO_TOP", n[n.BY_STYLE = 5] = "BY_STYLE", n))(At || {}), rt = /* @__PURE__ */ ((n) => (n[n.NONE = 0] = "NONE", n[n.WORD = 1] = "WORD", n[n.STACK = 2] = "STACK", n[n.SPACE = 3] = "SPACE", n[n.NBSP = 4] = "NBSP", n[n.TABULATOR = 5] = "TABULATOR", n[n.NEW_PARAGRAPH = 6] = "NEW_PARAGRAPH", n[n.NEW_COLUMN = 7] = "NEW_COLUMN", n[n.WRAP_AT_DIMLINE = 8] = "WRAP_AT_DIMLINE", n[n.PROPERTIES_CHANGED = 9] = "PROPERTIES_CHANGED", n))(rt || {}), bt = /* @__PURE__ */ ((n) => (n[n.BOTTOM = 0] = "BOTTOM", n[n.MIDDLE = 1] = "MIDDLE", n[n.TOP = 2] = "TOP", n))(bt || {}), le = /* @__PURE__ */ ((n) => (n[n.DEFAULT = 0] = "DEFAULT", n[n.LEFT = 1] = "LEFT", n[n.RIGHT = 2] = "RIGHT", n[n.CENTER = 3] = "CENTER", n[n.JUSTIFIED = 4] = "JUSTIFIED", n[n.DISTRIBUTED = 5] = "DISTRIBUTED", n))(le || {});
12790
12790
  const md = {
12791
12791
  c: "Ø",
12792
12792
  d: "°",
@@ -14194,7 +14194,7 @@ class _d {
14194
14194
  }
14195
14195
  const a = this.fontManager.getFontType(this.currentFont);
14196
14196
  this._currentContext.bold && a === "mesh" && i.scale(1.06, 1.06, 1), this.hOffset > (this.maxLineWidth || 1 / 0) && this.startNewLine();
14197
- let c = this.hOffset, l = this.flowDirection == Bt.BOTTOM_TO_TOP ? this.vOffset : this.vOffset - this.currentFontSize, h = s.width * this.currentWidthFactor, d = this.currentFontSize;
14197
+ let c = this.hOffset, l = this.flowDirection == At.BOTTOM_TO_TOP ? this.vOffset : this.vOffset - this.currentFontSize, h = s.width * this.currentWidthFactor, d = this.currentFontSize;
14198
14198
  i.translate(c, l, 0), this.currentHorizontalAlignment == le.DISTRIBUTED ? this._hOffset += s.width * this.currentWidthFactor : this._hOffset += s.width * this.currentWordSpace * this.currentWidthFactor, t.push(i);
14199
14199
  const u = d * 0.05, p = 1e-3;
14200
14200
  if (this._currentContext.underline) {
@@ -14259,7 +14259,7 @@ class _d {
14259
14259
  return this.textStyle.bigFont && !t && (t = this.fontManager.getCharShape(e, this.textStyle.bigFont, this.currentFontSize)), t || (t = this.fontManager.getCharShape(e, "", this.currentFontSize)), t || (t = this.fontManager.getNotFoundTextShape(this.currentFontSize)), this.currentFontSize > this._maxFontSize && (this._maxFontSize = this.currentFontSize), t;
14260
14260
  }
14261
14261
  startNewLine() {
14262
- this._hOffset = 0, this.flowDirection == Bt.BOTTOM_TO_TOP ? this._vOffset += this.currentLineHeight : this._vOffset -= this.currentLineHeight, this._lineCount++, this.processAlignment(), this._currentLineObjects = [], this._lineCount == 2 ? this._totalHeight = this.currentMaxFontSize : this._totalHeight = this._totalHeight + this.currentLineHeight, this._maxFontSize = 0;
14262
+ this._hOffset = 0, this.flowDirection == At.BOTTOM_TO_TOP ? this._vOffset += this.currentLineHeight : this._vOffset -= this.currentLineHeight, this._lineCount++, this.processAlignment(), this._currentLineObjects = [], this._lineCount == 2 ? this._totalHeight = this.currentMaxFontSize : this._totalHeight = this._totalHeight + this.currentLineHeight, this._maxFontSize = 0;
14263
14263
  }
14264
14264
  /**
14265
14265
  * Apply translation on the specified buffer geometries according to text alignment setting
@@ -14346,7 +14346,7 @@ class _d {
14346
14346
  this._currentContext.fontSize = e * this._currentContext.fontScaleFactor * this._currentContext.fontSizeScaleFactor, this.calcuateLineParams();
14347
14347
  }
14348
14348
  }
14349
- const Fn = /* @__PURE__ */ new g.Vector3(), ze = /* @__PURE__ */ new g.Vector3(), Pn = /* @__PURE__ */ new g.Vector3(), Gn = /* @__PURE__ */ new g.Quaternion(), Nn = /* @__PURE__ */ new g.Matrix4(), As = /* @__PURE__ */ new g.Matrix4(), Ls = /* @__PURE__ */ new g.Vector3(1, 0, 0);
14349
+ const Fn = /* @__PURE__ */ new g.Vector3(), ze = /* @__PURE__ */ new g.Vector3(), Pn = /* @__PURE__ */ new g.Vector3(), Gn = /* @__PURE__ */ new g.Quaternion(), Nn = /* @__PURE__ */ new g.Matrix4(), Bs = /* @__PURE__ */ new g.Matrix4(), Ls = /* @__PURE__ */ new g.Vector3(1, 0, 0);
14350
14350
  class Td extends g.Object3D {
14351
14351
  /**
14352
14352
  * Extracts all unique font names used in an MText string.
@@ -14462,7 +14462,7 @@ class Td extends g.Object3D {
14462
14462
  }
14463
14463
  r.matrix.compose(ze, Gn, Pn);
14464
14464
  const c = e.position ? ze.clone().sub(e.position) : ze;
14465
- return Nn.makeTranslation(-c.x, -c.y, 0), As.makeRotationZ(a), r.matrix.multiply(Nn), r.matrix.multiply(As), r.matrix.multiply(Nn.invert()), r.matrix.decompose(r.position, r.quaternion, r.scale), r;
14465
+ return Nn.makeTranslation(-c.x, -c.y, 0), Bs.makeRotationZ(a), r.matrix.multiply(Nn), r.matrix.multiply(Bs), r.matrix.multiply(Nn.invert()), r.matrix.decompose(r.position, r.quaternion, r.scale), r;
14466
14466
  }
14467
14467
  /**
14468
14468
  * Creates a group of text elements from MText data.
@@ -14480,7 +14480,7 @@ class Td extends g.Object3D {
14480
14480
  e.width && e.attachmentPoint && ([1, 4, 7].includes(e.attachmentPoint) ? s = le.LEFT : [2, 5, 8].includes(e.attachmentPoint) ? s = le.CENTER : [3, 6, 9].includes(e.attachmentPoint) && (s = le.RIGHT));
14481
14481
  let i = bt.BOTTOM;
14482
14482
  e.attachmentPoint && ([1, 2, 3].includes(e.attachmentPoint) ? i = bt.TOP : [4, 5, 6].includes(e.attachmentPoint) ? i = bt.MIDDLE : [7, 8, 9].includes(e.attachmentPoint) && (i = bt.BOTTOM));
14483
- const o = e.height || 0, a = e.lineSpaceFactor || 0.3, c = e.drawingDirection ?? Bt.LEFT_TO_RIGHT, l = {
14483
+ const o = e.height || 0, a = e.lineSpaceFactor || 0.3, c = e.drawingDirection ?? At.LEFT_TO_RIGHT, l = {
14484
14484
  fontSize: o,
14485
14485
  widthFactor: e.widthFactor ?? 1,
14486
14486
  lineSpaceFactor: a,
@@ -14546,7 +14546,7 @@ class Td extends g.Object3D {
14546
14546
  i -= e, o += t;
14547
14547
  break;
14548
14548
  }
14549
- return s == Bt.BOTTOM_TO_TOP && (o -= t), { x: i, y: o };
14549
+ return s == At.BOTTOM_TO_TOP && (o -= t), { x: i, y: o };
14550
14550
  }
14551
14551
  /**
14552
14552
  * Recursively calculates bounding boxes for an object and its children.
@@ -14569,7 +14569,7 @@ var K;
14569
14569
  (function(n) {
14570
14570
  n[n.BeforeStart = 0] = "BeforeStart", n[n.EqualStart = 1] = "EqualStart", n[n.BetweenStartAndEnd = 2] = "BetweenStartAndEnd", n[n.EqualEnd = 3] = "EqualEnd", n[n.AfterEnd = 4] = "AfterEnd";
14571
14571
  })(K || (K = {}));
14572
- class Id {
14572
+ class Cd {
14573
14573
  pointsSame(e, t) {
14574
14574
  return this.pointsSameX(e, t) && this.pointsSameY(e, t);
14575
14575
  }
@@ -14577,7 +14577,7 @@ class Id {
14577
14577
  return this.pointsSameX(e, t) ? this.pointsSameY(e, t) ? 0 : e[1] < t[1] ? -1 : 1 : e[0] < t[0] ? -1 : 1;
14578
14578
  }
14579
14579
  }
14580
- class io extends Id {
14580
+ class io extends Cd {
14581
14581
  constructor(e = 1e-10) {
14582
14582
  super(), this.epsilon = e;
14583
14583
  }
@@ -14827,7 +14827,7 @@ class gt {
14827
14827
  return ft(e, [0, 2, 1, 0, 2, 0, 0, 1, 1, 0, 0, 2, 0, 1, 2, 0], t);
14828
14828
  }
14829
14829
  }
14830
- function Cd(n, e, t) {
14830
+ function Id(n, e, t) {
14831
14831
  const r = [], s = [];
14832
14832
  for (const i of n) {
14833
14833
  let d = function(v, S, x) {
@@ -14837,8 +14837,8 @@ function Cd(n, e, t) {
14837
14837
  }, p = function(v, S) {
14838
14838
  const x = r[v], _ = r[S];
14839
14839
  let w = x[x.length - 1];
14840
- const L = x[x.length - 2], T = _[0], C = _[1];
14841
- e.pointsCollinear(L, w, T) && (t == null || t.chainRemoveTail(v, w), x.pop(), w = L), e.pointsCollinear(w, T, C) && (t == null || t.chainRemoveHead(S, T), _.shift()), t == null || t.chainJoin(v, S), r[v] = x.concat(_), r.splice(S, 1);
14840
+ const L = x[x.length - 2], T = _[0], I = _[1];
14841
+ e.pointsCollinear(L, w, T) && (t == null || t.chainRemoveTail(v, w), x.pop(), w = L), e.pointsCollinear(w, T, I) && (t == null || t.chainRemoveHead(S, T), _.shift()), t == null || t.chainJoin(v, S), r[v] = x.concat(_), r.splice(S, 1);
14842
14842
  };
14843
14843
  const o = i.start, a = i.end;
14844
14844
  if (e.pointsSame(o, a)) {
@@ -14878,9 +14878,9 @@ function Cd(n, e, t) {
14878
14878
  t == null || t.chainMatch(c.index);
14879
14879
  const v = c.index, S = c.matches_pt1 ? a : o, x = c.matches_head, _ = r[v];
14880
14880
  let w = x ? _[0] : _[_.length - 1];
14881
- const L = x ? _[1] : _[_.length - 2], T = x ? _[_.length - 1] : _[0], C = x ? _[_.length - 2] : _[1];
14881
+ const L = x ? _[1] : _[_.length - 2], T = x ? _[_.length - 1] : _[0], I = x ? _[_.length - 2] : _[1];
14882
14882
  if (e.pointsCollinear(L, w, S) && (x ? (t == null || t.chainRemoveHead(c.index, S), _.shift()) : (t == null || t.chainRemoveTail(c.index, S), _.pop()), w = L), e.pointsSame(T, S)) {
14883
- r.splice(v, 1), e.pointsCollinear(C, T, w) && (x ? (t == null || t.chainRemoveTail(c.index, w), _.pop()) : (t == null || t.chainRemoveHead(c.index, w), _.shift())), t == null || t.chainClose(c.index), s.push(_);
14883
+ r.splice(v, 1), e.pointsCollinear(I, T, w) && (x ? (t == null || t.chainRemoveTail(c.index, w), _.pop()) : (t == null || t.chainRemoveHead(c.index, w), _.shift())), t == null || t.chainClose(c.index), s.push(_);
14884
14884
  continue;
14885
14885
  }
14886
14886
  x ? (t == null || t.chainAddHead(c.index, S), _.unshift(S)) : (t == null || t.chainAddTail(c.index, S), _.push(S));
@@ -15034,7 +15034,7 @@ class oo {
15034
15034
  }
15035
15035
  polygon(e) {
15036
15036
  return {
15037
- regions: Cd(e.segments, this.geo, this.log),
15037
+ regions: Id(e.segments, this.geo, this.log),
15038
15038
  inverted: e.inverted
15039
15039
  };
15040
15040
  }
@@ -15798,10 +15798,10 @@ class Gt {
15798
15798
  return e;
15799
15799
  }
15800
15800
  }
15801
- function Ir(n, e) {
15801
+ function Cr(n, e) {
15802
15802
  return n - e;
15803
15803
  }
15804
- function Cr(n, e, t = 0) {
15804
+ function Ir(n, e, t = 0) {
15805
15805
  const r = e.itemSize;
15806
15806
  if (n.isInterleavedBufferAttribute || n.array.constructor !== e.array.constructor) {
15807
15807
  const s = n.count;
@@ -15823,7 +15823,7 @@ function lt(n, e) {
15823
15823
  }
15824
15824
  }
15825
15825
  const Fs = /* @__PURE__ */ new g.Box3(), qe = /* @__PURE__ */ new g.Vector3(), Ze = /* @__PURE__ */ new g.LineSegments(), Xt = [];
15826
- class Bd extends g.LineSegments {
15826
+ class Ad extends g.LineSegments {
15827
15827
  constructor(e = 1e3, t = e * 2, r) {
15828
15828
  super(new g.BufferGeometry(), r), this.boundingBox = null, this.boundingSphere = null, this._geometryInfo = [], this._availableGeometryIds = [], this._nextIndexStart = 0, this._nextVertexStart = 0, this._geometryCount = 0, this._geometryInitialized = !1, this.frustumCulled = !1, this._maxVertexCount = e, this._maxIndexCount = t;
15829
15829
  }
@@ -15967,7 +15967,7 @@ class Bd extends g.LineSegments {
15967
15967
  "AcTrBatchedLine: Reserved space request exceeds the maximum buffer size."
15968
15968
  );
15969
15969
  let a;
15970
- return this._availableGeometryIds.length > 0 ? (this._availableGeometryIds.sort(Ir), a = this._availableGeometryIds.shift(), i[a] = s) : (a = this._geometryCount, this._geometryCount++, i.push(s)), this.setGeometryAt(a, e), this._nextIndexStart = s.indexStart + s.reservedIndexCount, this._nextVertexStart = s.vertexStart + s.reservedVertexCount, a;
15970
+ return this._availableGeometryIds.length > 0 ? (this._availableGeometryIds.sort(Cr), a = this._availableGeometryIds.shift(), i[a] = s) : (a = this._geometryCount, this._geometryCount++, i.push(s)), this.setGeometryAt(a, e), this._nextIndexStart = s.indexStart + s.reservedIndexCount, this._nextVertexStart = s.vertexStart + s.reservedVertexCount, a;
15971
15971
  }
15972
15972
  setGeometryInfo(e, t) {
15973
15973
  if (e >= this._geometryCount)
@@ -15990,7 +15990,7 @@ class Bd extends g.LineSegments {
15990
15990
  const d = t.getAttribute(h), u = r.getAttribute(
15991
15991
  h
15992
15992
  );
15993
- Cr(d, u, c);
15993
+ Ir(d, u, c);
15994
15994
  const p = d.itemSize;
15995
15995
  for (let f = d.count, m = l; f < m; f++) {
15996
15996
  const y = c + f;
@@ -16188,7 +16188,7 @@ class Bd extends g.LineSegments {
16188
16188
  }
16189
16189
  }
16190
16190
  const Ps = /* @__PURE__ */ new g.Box3(), Qe = /* @__PURE__ */ new g.Vector3(), Je = /* @__PURE__ */ new g.Mesh(), $t = [];
16191
- class Ad extends g.Mesh {
16191
+ class Bd extends g.Mesh {
16192
16192
  constructor(e = 1e3, t = e * 2, r) {
16193
16193
  super(new g.BufferGeometry(), r), this.boundingBox = null, this.boundingSphere = null, this._geometryInfo = [], this._availableGeometryIds = [], this._nextIndexStart = 0, this._nextVertexStart = 0, this._geometryCount = 0, this._geometryInitialized = !1, this.frustumCulled = !1, this._maxVertexCount = e, this._maxIndexCount = t;
16194
16194
  }
@@ -16302,7 +16302,7 @@ class Ad extends g.Mesh {
16302
16302
  "AcTrBatchedMesh: Reserved space request exceeds the maximum buffer size."
16303
16303
  );
16304
16304
  let a;
16305
- return this._availableGeometryIds.length > 0 ? (this._availableGeometryIds.sort(Ir), a = this._availableGeometryIds.shift(), i[a] = s) : (a = this._geometryCount, this._geometryCount++, i.push(s)), this.setGeometryAt(a, e), this._nextIndexStart = s.indexStart + s.reservedIndexCount, this._nextVertexStart = s.vertexStart + s.reservedVertexCount, a;
16305
+ return this._availableGeometryIds.length > 0 ? (this._availableGeometryIds.sort(Cr), a = this._availableGeometryIds.shift(), i[a] = s) : (a = this._geometryCount, this._geometryCount++, i.push(s)), this.setGeometryAt(a, e), this._nextIndexStart = s.indexStart + s.reservedIndexCount, this._nextVertexStart = s.vertexStart + s.reservedVertexCount, a;
16306
16306
  }
16307
16307
  setGeometryInfo(e, t) {
16308
16308
  if (e >= this._geometryCount)
@@ -16325,7 +16325,7 @@ class Ad extends g.Mesh {
16325
16325
  const d = t.getAttribute(h), u = r.getAttribute(
16326
16326
  h
16327
16327
  );
16328
- Cr(d, u, c);
16328
+ Ir(d, u, c);
16329
16329
  const p = d.itemSize;
16330
16330
  for (let f = d.count, m = l; f < m; f++) {
16331
16331
  const y = c + f;
@@ -16618,7 +16618,7 @@ class Ld extends g.Points {
16618
16618
  }, s = this._geometryInfo;
16619
16619
  r.vertexStart = this._nextVertexStart, r.reservedVertexCount = t === -1 ? e.getAttribute("position").count : t;
16620
16620
  let i;
16621
- return this._availableGeometryIds.length > 0 ? (this._availableGeometryIds.sort(Ir), i = this._availableGeometryIds.shift(), s[i] = r) : (i = this._geometryCount, this._geometryCount++, s.push(r)), this.setGeometryAt(i, e), this._nextVertexStart = r.vertexStart + r.reservedVertexCount, this.geometry.setDrawRange(0, this._nextVertexStart), i;
16621
+ return this._availableGeometryIds.length > 0 ? (this._availableGeometryIds.sort(Cr), i = this._availableGeometryIds.shift(), s[i] = r) : (i = this._geometryCount, this._geometryCount++, s.push(r)), this.setGeometryAt(i, e), this._nextVertexStart = r.vertexStart + r.reservedVertexCount, this.geometry.setDrawRange(0, this._nextVertexStart), i;
16622
16622
  }
16623
16623
  setGeometryInfo(e, t) {
16624
16624
  if (e >= this._geometryCount)
@@ -16636,7 +16636,7 @@ class Ld extends g.Points {
16636
16636
  const c = t.getAttribute(a), l = r.getAttribute(
16637
16637
  a
16638
16638
  );
16639
- Cr(c, l, i);
16639
+ Ir(c, l, i);
16640
16640
  const h = c.itemSize;
16641
16641
  for (let d = c.count, u = o; d < u; d++) {
16642
16642
  const p = i + d;
@@ -16978,7 +16978,7 @@ class Od extends g.Group {
16978
16978
  addLine(e, t) {
16979
16979
  const r = e.material, s = this.getMatchedLineBatches(e);
16980
16980
  let i = s.get(r.id);
16981
- i == null && (i = new Bd(1e3, 2e3, r), s.set(r.id, i), this.add(i)), e.geometry.applyMatrix4(e.matrixWorld);
16981
+ i == null && (i = new Ad(1e3, 2e3, r), s.set(r.id, i), this.add(i)), e.geometry.applyMatrix4(e.matrixWorld);
16982
16982
  const o = i.addGeometry(e.geometry);
16983
16983
  return i.setGeometryInfo(o, t), {
16984
16984
  batchedObjectId: i.id,
@@ -16988,7 +16988,7 @@ class Od extends g.Group {
16988
16988
  addMesh(e, t) {
16989
16989
  const r = e.material, s = this.getMatchedMeshBatches(e);
16990
16990
  let i = s.get(r.id);
16991
- i == null && (i = new Ad(1e3, 2e3, r), s.set(r.id, i), this.add(i)), e.geometry.applyMatrix4(e.matrixWorld);
16991
+ i == null && (i = new Bd(1e3, 2e3, r), s.set(r.id, i), this.add(i)), e.geometry.applyMatrix4(e.matrixWorld);
16992
16992
  const o = i.addGeometry(e.geometry);
16993
16993
  return i.setGeometryInfo(o, t), {
16994
16994
  batchedObjectId: i.id,
@@ -17232,7 +17232,7 @@ class Rd extends ge {
17232
17232
  }
17233
17233
  }
17234
17234
  const qt = /* @__PURE__ */ new g.Vector3(), Zt = /* @__PURE__ */ new g.Vector3();
17235
- class At {
17235
+ class Bt {
17236
17236
  /**
17237
17237
  * Release memeory occupied by buffer geometry
17238
17238
  * @param geometry
@@ -17250,7 +17250,7 @@ class At {
17250
17250
  for (const s in e.attributes)
17251
17251
  t.setAttribute(
17252
17252
  s,
17253
- At.createGeometryAttributeByIndex(
17253
+ Bt.createGeometryAttributeByIndex(
17254
17254
  e.attributes[s],
17255
17255
  r
17256
17256
  )
@@ -17294,7 +17294,7 @@ class At {
17294
17294
  const t = e.isLineSegments === !0;
17295
17295
  let r = e.geometry;
17296
17296
  const s = e.matrixWorld;
17297
- if (r.index && (r = At.toNonIndexed(r)), r.index === null) {
17297
+ if (r.index && (r = Bt.toNonIndexed(r)), r.index === null) {
17298
17298
  const i = r.attributes.position;
17299
17299
  if (!i || i.count === 0)
17300
17300
  return;
@@ -17372,7 +17372,7 @@ class Ud extends ge {
17372
17372
  const l = new g.BufferGeometry();
17373
17373
  l.setAttribute("position", new g.BufferAttribute(a, 3)), l.setIndex(new g.BufferAttribute(c, 1)), this.setBoundingBox(l), this.geometry = l;
17374
17374
  const h = new g.LineSegments(l, s);
17375
- At.computeLineDistances(h), this.add(h);
17375
+ Bt.computeLineDistances(h), this.add(h);
17376
17376
  }
17377
17377
  setBoundingBox(e) {
17378
17378
  e.computeBoundingBox(), this.box = e.boundingBox;
@@ -17389,7 +17389,7 @@ class Fd extends ge {
17389
17389
  new g.BufferAttribute(e, t)
17390
17390
  ), a.setIndex(new g.BufferAttribute(r, 1)), a.computeBoundingBox(), this.box = a.boundingBox;
17391
17391
  const c = new g.LineSegments(a, o);
17392
- At.computeLineDistances(c), this.add(c);
17392
+ Bt.computeLineDistances(c), this.add(c);
17393
17393
  }
17394
17394
  }
17395
17395
  class Pd extends ge {
@@ -17946,8 +17946,8 @@ const nn = class xt {
17946
17946
  const m = u.dashPattern.length;
17947
17947
  let y = !0, v = 0;
17948
17948
  for (let T = 0; T < m; ++T) {
17949
- const C = u.dashPattern[T];
17950
- C > 0 && (y = !1), v += Math.abs(C);
17949
+ const I = u.dashPattern[T];
17950
+ I > 0 && (y = !1), v += Math.abs(I);
17951
17951
  }
17952
17952
  const S = y ? o : i, x = [], _ = [];
17953
17953
  let w = 0;
@@ -18048,6 +18048,36 @@ class jd {
18048
18048
  render(e, t) {
18049
18049
  this._renderer.render(e, t.internalCamera);
18050
18050
  }
18051
+ /**
18052
+ * Sets the clear color used when clearing the canvas.
18053
+ *
18054
+ * @param color - Background color as 24-bit hexadecimal RGB number
18055
+ * @param alpha - Optional alpha value (0.0 - 1.0)
18056
+ */
18057
+ setClearColor(e, t) {
18058
+ this._renderer.setClearColor(e, t);
18059
+ }
18060
+ /**
18061
+ * Gets the current clear color as a 24-bit hexadecimal RGB number.
18062
+ */
18063
+ getClearColor() {
18064
+ const e = new g.Color();
18065
+ return this._renderer.getClearColor(e), e.getHex();
18066
+ }
18067
+ /**
18068
+ * Sets the clear alpha used when clearing the canvas.
18069
+ *
18070
+ * @param alpha - Alpha value (0.0 - 1.0)
18071
+ */
18072
+ setClearAlpha(e) {
18073
+ this._renderer.setClearAlpha(e);
18074
+ }
18075
+ /**
18076
+ * Gets the current clear alpha value.
18077
+ */
18078
+ getClearAlpha() {
18079
+ return this._renderer.getClearAlpha();
18080
+ }
18051
18081
  /**
18052
18082
  * The internal THREE.js webgl renderer
18053
18083
  */
@@ -19689,14 +19719,14 @@ class yp extends ca {
19689
19719
  alpha: !0,
19690
19720
  canvas: e.canvas
19691
19721
  });
19692
- t.canvas == null && (t.canvas = r.domElement), super(t.canvas), e.calculateSizeCallback && this.setCalculateSizeCallback(e.calculateSizeCallback), r.setPixelRatio(Math.min(window.devicePixelRatio, 2)), r.setSize(this.width, this.height), r.setClearColor(t.background || 0), this._renderer = new jd(r);
19722
+ t.canvas == null && (t.canvas = r.domElement), super(t.canvas), e.calculateSizeCallback && this.setCalculateSizeCallback(e.calculateSizeCallback), r.setPixelRatio(Math.min(window.devicePixelRatio, 2)), r.setSize(this.width, this.height), this._renderer = new jd(r);
19693
19723
  const s = Tt.instance.fontMapping;
19694
19724
  this._renderer.setFontMapping(s), this._renderer.events.fontNotFound.addEventListener((i) => {
19695
19725
  Ue.emit("font-not-found", {
19696
19726
  fontName: i.fontName,
19697
19727
  count: i.count ?? 0
19698
19728
  });
19699
- }), this._scene = this.createScene(), this._stats = this.createStats(Tt.instance.isShowStats), Tt.instance.events.modified.addEventListener((i) => {
19729
+ }), this._scene = this.createScene(), this._renderer.setClearColor(t.background || 0), this._stats = this.createStats(Tt.instance.isShowStats), Tt.instance.events.modified.addEventListener((i) => {
19700
19730
  i.key == "isShowStats" && this.toggleStatsVisibility(this._stats, i.value);
19701
19731
  }), this.canvas.addEventListener("click", () => {
19702
19732
  this.mode == De.SELECTION && this.select();
@@ -19778,6 +19808,23 @@ class yp extends ca {
19778
19808
  set center(e) {
19779
19809
  this.activeLayoutView.center = e;
19780
19810
  }
19811
+ /**
19812
+ * Gets the background color of the view.
19813
+ *
19814
+ * The color is represented as a 24-bit hexadecimal RGB number, e.g.,
19815
+ * `0x000000` for black.
19816
+ */
19817
+ get backgroundColor() {
19818
+ return this._renderer.getClearColor();
19819
+ }
19820
+ /**
19821
+ * Sets the background color of the view.
19822
+ *
19823
+ * @param value - The background color as a 24-bit hexadecimal RGB number
19824
+ */
19825
+ set backgroundColor(e) {
19826
+ this._renderer.setClearColor(e), this._isDirty = !0;
19827
+ }
19781
19828
  /**
19782
19829
  * The block table record id of the model space
19783
19830
  */
@@ -20602,7 +20649,7 @@ class Hs {
20602
20649
  );
20603
20650
  }
20604
20651
  convertCirle(e) {
20605
- return new Co(e.center, e.radius);
20652
+ return new Io(e.center, e.radius);
20606
20653
  }
20607
20654
  convertEllipse(e) {
20608
20655
  const t = new Kt(e.majorAxisEndPoint), r = t.length();
@@ -20718,7 +20765,7 @@ class Hs {
20718
20765
  let d = c.startAngle, u = c.endAngle;
20719
20766
  const p = Math.atan2(c.end.y, c.end.x);
20720
20767
  c.isCCW || (d = Math.PI * 2 - d, u = Math.PI * 2 - u), o.add(
20721
- new Bo(
20768
+ new Ao(
20722
20769
  { ...c.center, z: 0 },
20723
20770
  l,
20724
20771
  h,
@@ -20741,7 +20788,7 @@ class Hs {
20741
20788
  let h = !0;
20742
20789
  const d = c.controlPoints.map((u) => (u.weight == null && (h = !1), u.weight || 1));
20743
20790
  o.add(
20744
- new Br(
20791
+ new Ar(
20745
20792
  l,
20746
20793
  c.knots,
20747
20794
  h ? d : void 0
@@ -20753,7 +20800,7 @@ class Hs {
20753
20800
  y: h.y,
20754
20801
  z: 0
20755
20802
  }));
20756
- o.add(new Br(l, "Uniform"));
20803
+ o.add(new Ar(l, "Uniform"));
20757
20804
  }
20758
20805
  }
20759
20806
  }), r.add(o);
@@ -20761,7 +20808,7 @@ class Hs {
20761
20808
  }), r;
20762
20809
  }
20763
20810
  convertTable(e) {
20764
- const t = new Ao(
20811
+ const t = new Bo(
20765
20812
  e.name,
20766
20813
  e.rowCount,
20767
20814
  e.columnCount
@@ -21100,7 +21147,7 @@ class bp extends mo {
21100
21147
  processImageDefs(e, t) {
21101
21148
  const r = t.dictionaries.imageDefs;
21102
21149
  e.objects.IMAGEDEF.forEach((s) => {
21103
- const i = new Io();
21150
+ const i = new Co();
21104
21151
  i.sourceFileName = s.fileName, this.processCommonObjectAttrs(s, i), r.setAt(i.objectId, i);
21105
21152
  });
21106
21153
  }
@@ -21114,7 +21161,7 @@ async function Lp() {
21114
21161
  useWorker: !0,
21115
21162
  parserWorkerUrl: "./assets/dxf-parser-worker.js"
21116
21163
  });
21117
- Ar.instance.register(rn.DXF, n);
21164
+ Br.instance.register(rn.DXF, n);
21118
21165
  } catch (n) {
21119
21166
  console.error("Failed to register dxf converter: ", n);
21120
21167
  }
@@ -21123,7 +21170,7 @@ async function Lp() {
21123
21170
  useWorker: !0,
21124
21171
  parserWorkerUrl: "./assets/libredwg-parser-worker.js"
21125
21172
  });
21126
- Ar.instance.register(rn.DWG, n);
21173
+ Br.instance.register(rn.DWG, n);
21127
21174
  } catch (n) {
21128
21175
  console.error("Failed to register dwg converter: ", n);
21129
21176
  }