@nika-js/onlymap 0.11.11 → 0.12.1

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.
Files changed (58) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/README.md +9 -3
  3. package/dist/attribute-resolution.d.ts +2 -0
  4. package/dist/{basemap-QT4ua-dL.js → basemap-BK25o5OE.js} +1514 -1462
  5. package/dist/basemap.d.ts +41 -1
  6. package/dist/cartograph.js +362 -321
  7. package/dist/cartograph.standalone.js +1995 -1914
  8. package/dist/{cityjson-k-z1r6c0.js → cityjson-DMc_dwu1.js} +1 -1
  9. package/dist/{crs-BzE_KP4M.js → crs-D5FyQfEu.js} +74 -7
  10. package/dist/{crs-ChglCB3O.js → crs-ZdDBJ2EY.js} +39 -36
  11. package/dist/data-layer.d.ts +36 -3
  12. package/dist/elements/om-map.d.ts +2 -1
  13. package/dist/geoparquet-CLydPm2f.js +30 -0
  14. package/dist/geoparquet.d.ts +6 -7
  15. package/dist/{globe-view-BSGTUqWc.js → globe-view-ChuX60M5.js} +11 -11
  16. package/dist/hillshade-DD8WFrvf.js +209 -0
  17. package/dist/html-data.d.ts +1 -1
  18. package/dist/{ifc-DXwePQRv.js → ifc-sisRo7I7.js} +1 -1
  19. package/dist/{index-DudIuhJa.js → index-BHRpKnGi.js} +1 -1
  20. package/dist/{index-CevWTqBO.js → index-Bs69fn8a.js} +14362 -13782
  21. package/dist/{index-DBt_2x-w.js → index-C2CKUsom.js} +106 -106
  22. package/dist/{index-DjYxw-8H.js → index-CMKrghNb.js} +18 -18
  23. package/dist/{index-Dwc4s3mc.js → index-CdAf0bLj.js} +20 -20
  24. package/dist/{index-BO7MtTkn.js → index-CgVFHEdM.js} +3 -3
  25. package/dist/{index-Bxue4Psc.js → index-CvrH6mbS.js} +9 -9
  26. package/dist/{index-Bzypgr1v.js → index-DIzzRLKr.js} +1 -1
  27. package/dist/{index-D1ZjhP2H.js → index-Dvwr1Y3o.js} +11 -11
  28. package/dist/index.d.ts +3 -2
  29. package/dist/ir.d.ts +6 -0
  30. package/dist/layer-registry.d.ts +21 -0
  31. package/dist/layers/warped-bitmap-layer.d.ts +27 -0
  32. package/dist/{lerc-DQuf93SN.js → lerc-mAijS40k.js} +1 -1
  33. package/dist/onlymap.standalone.js +53019 -52455
  34. package/dist/onlymapjs.js +86 -84
  35. package/dist/parse-manifest.d.ts +12 -9
  36. package/dist/{post-process-effect-B3j_nBzy.js → post-process-effect-rwFDi8di.js} +5 -5
  37. package/dist/programmatic.d.ts +12 -0
  38. package/dist/projection.d.ts +44 -1
  39. package/dist/{raster-CvAJ-h_g.js → raster-CXIqf83L.js} +3 -3
  40. package/dist/{raster-pipeline-CusoihQ3.js → raster-pipeline-CfSg2Re7.js} +1 -1
  41. package/dist/react/om-layer.d.ts +4 -0
  42. package/dist/react/om-map.d.ts +2 -0
  43. package/dist/react.js +225 -218
  44. package/dist/runtime-core.d.ts +24 -0
  45. package/dist/source-crs.d.ts +99 -0
  46. package/dist/{text-on-path-D9u5SYCo.js → text-on-path-B08PekFz.js} +1 -1
  47. package/dist/version.d.ts +1 -1
  48. package/dist/{zarr-DWb_nikR.js → zarr-CUn2udOc.js} +2 -2
  49. package/docs/cartograph.md +2 -2
  50. package/docs/cartography.md +106 -1
  51. package/llms.txt +2 -1
  52. package/onlymapjs.attributes.json +2 -0
  53. package/onlymapjs.html-data.json +26 -4
  54. package/package.json +1 -1
  55. package/skills/onlymapjs/SKILL.md +5 -3
  56. package/skills/onlymapjs/references/syntax.md +18 -3
  57. package/dist/geoparquet-hOsdfZJa.js +0 -35
  58. package/dist/hillshade-D2Ps3Nim.js +0 -298
@@ -1,4 +1,4 @@
1
- import { bB as Bt, bM as Xt, bN as Yt, bO as Us } from "./index-CevWTqBO.js";
1
+ import { bD as Bt, bP as Xt, bQ as Yt, bR as Us } from "./index-Bs69fn8a.js";
2
2
  import { w as gs, t as Hs, f as Ws, m as Qs } from "./mgrs-BY9bIvp4.js";
3
3
  import { c as Xs } from "./convert-arrow-schema-DrAihRf9.js";
4
4
  import { y as Ys, A as bt, a as Ks, z as Vs, R as Zs } from "./recordbatch-Bpc0uxFn.js";
@@ -456,7 +456,7 @@ const ca = "4.4.3", Es = [0, 0, 39, 10], fa = {
456
456
  function ua(t) {
457
457
  t("EPSG:4326", "+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees"), t("EPSG:4269", "+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees"), t("EPSG:3857", "+title=WGS 84 / Pseudo-Mercator +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs"), t.WGS84 = t["EPSG:4326"], t["EPSG:3785"] = t["EPSG:3857"], t.GOOGLE = t["EPSG:3857"], t["EPSG:900913"] = t["EPSG:3857"], t["EPSG:102113"] = t["EPSG:3857"];
458
458
  }
459
- var tt = 1, st = 2, Ma = 4, qt = 5, ct = 484813681109536e-20, M = Math.PI / 2, va = 0.16666666666666666, da = 0.04722222222222222, ya = 0.022156084656084655, m = 1e-10, D = 0.017453292519943295, Q = 57.29577951308232, p = Math.PI / 4, Ft = Math.PI * 2, A = 3.14159265359, T = {};
459
+ var tt = 1, st = 2, Ma = 4, qt = 5, ct = 484813681109536e-20, M = Math.PI / 2, va = 0.16666666666666666, da = 0.04722222222222222, ya = 0.022156084656084655, m = 1e-10, D = 0.017453292519943295, Q = 57.29577951308232, p = Math.PI / 4, Ft = Math.PI * 2, N = 3.14159265359, T = {};
460
460
  T.greenwich = 0;
461
461
  T.lisbon = -9.131906111111;
462
462
  T.paris = 2.337229166667;
@@ -661,7 +661,7 @@ function Mt(t) {
661
661
  return t < 0 ? -1 : 1;
662
662
  }
663
663
  function b(t) {
664
- return Math.abs(t) <= A ? t : t - Mt(t) * Ft;
664
+ return Math.abs(t) <= N ? t : t - Mt(t) * Ft;
665
665
  }
666
666
  function j(t, s, a) {
667
667
  var i = t * a, e = 0.5 * t;
@@ -692,7 +692,7 @@ function Sa(t) {
692
692
  }
693
693
  return t.x = i, t.y = e, t;
694
694
  }
695
- function Na(t) {
695
+ function Aa(t) {
696
696
  var s = t.x - this.x0, a = t.y - this.y0, i, e;
697
697
  if (this.sphere)
698
698
  e = M - 2 * Math.atan(Math.exp(-a / (this.a * this.k0)));
@@ -703,12 +703,12 @@ function Na(t) {
703
703
  }
704
704
  return i = b(this.long0 + s / (this.a * this.k0)), t.x = i, t.y = e, t;
705
705
  }
706
- var Aa = ["Mercator", "Popular Visualisation Pseudo Mercator", "Mercator_1SP", "Mercator_Auxiliary_Sphere", "merc"];
706
+ var Na = ["Mercator", "Popular Visualisation Pseudo Mercator", "Mercator_1SP", "Mercator_Auxiliary_Sphere", "merc"];
707
707
  const Ba = {
708
708
  init: Pa,
709
709
  forward: Sa,
710
- inverse: Na,
711
- names: Aa
710
+ inverse: Aa,
711
+ names: Na
712
712
  };
713
713
  function Ca() {
714
714
  }
@@ -729,20 +729,20 @@ function Rs(t, s) {
729
729
  pt[i.toLowerCase()] = a;
730
730
  }), this) : (console.log(s), !0);
731
731
  }
732
- function Oa(t) {
732
+ function $a(t) {
733
733
  if (!t)
734
734
  return !1;
735
735
  var s = t.toLowerCase();
736
736
  if (typeof pt[s] < "u" && Pt[pt[s]])
737
737
  return Pt[pt[s]];
738
738
  }
739
- function $a() {
739
+ function Oa() {
740
740
  La.forEach(Rs);
741
741
  }
742
742
  const Ta = {
743
- start: $a,
743
+ start: Oa,
744
744
  add: Rs,
745
- get: Oa
745
+ get: $a
746
746
  };
747
747
  var _ = {};
748
748
  _.MERIT = {
@@ -1299,7 +1299,7 @@ ht.prototype.toMGRS = function(t) {
1299
1299
  return Ws([this.x, this.y], t);
1300
1300
  };
1301
1301
  var Ya = 1, Ka = 0.25, ns = 0.046875, os = 0.01953125, ls = 0.01068115234375, Va = 0.75, Za = 0.46875, Ja = 0.013020833333333334, ti = 0.007120768229166667, si = 0.3645833333333333, ai = 0.005696614583333333, ii = 0.3076171875;
1302
- function Ns(t) {
1302
+ function As(t) {
1303
1303
  var s = [];
1304
1304
  s[0] = Ya - t * (Ka + t * (ns + t * (os + t * ls))), s[1] = t * (Va - t * (ns + t * (os + t * ls)));
1305
1305
  var a = t * t;
@@ -1309,7 +1309,7 @@ function Ct(t, s, a, i) {
1309
1309
  return a *= s, s *= s, i[0] * t - a * (i[1] + s * (i[2] + s * (i[3] + s * i[4])));
1310
1310
  }
1311
1311
  var ei = 20;
1312
- function As(t, s, a) {
1312
+ function Ns(t, s, a) {
1313
1313
  for (var i = 1 / (1 - s), e = t, h = ei; h; --h) {
1314
1314
  var r = Math.sin(e), n = 1 - s * r * r;
1315
1315
  if (n = (Ct(e, r, Math.cos(e), a) - t) * (n * Math.sqrt(n)) * i, e -= n, Math.abs(n) < m)
@@ -1318,7 +1318,7 @@ function As(t, s, a) {
1318
1318
  return e;
1319
1319
  }
1320
1320
  function hi() {
1321
- this.x0 = this.x0 !== void 0 ? this.x0 : 0, this.y0 = this.y0 !== void 0 ? this.y0 : 0, this.long0 = this.long0 !== void 0 ? this.long0 : 0, this.lat0 = this.lat0 !== void 0 ? this.lat0 : 0, this.es && (this.en = Ns(this.es), this.ml0 = Ct(this.lat0, Math.sin(this.lat0), Math.cos(this.lat0), this.en));
1321
+ this.x0 = this.x0 !== void 0 ? this.x0 : 0, this.y0 = this.y0 !== void 0 ? this.y0 : 0, this.long0 = this.long0 !== void 0 ? this.long0 : 0, this.lat0 = this.lat0 !== void 0 ? this.lat0 : 0, this.es && (this.en = As(this.es), this.ml0 = Ct(this.lat0, Math.sin(this.lat0), Math.cos(this.lat0), this.en));
1322
1322
  }
1323
1323
  function ri(t) {
1324
1324
  var s = t.x, a = t.y, i = b(s - this.long0), e, h, r, n = Math.sin(a), o = Math.cos(a);
@@ -1344,7 +1344,7 @@ function ri(t) {
1344
1344
  function ni(t) {
1345
1345
  var s, a, i, e, h = (t.x - this.x0) * (1 / this.a), r = (t.y - this.y0) * (1 / this.a);
1346
1346
  if (this.es)
1347
- if (s = this.ml0 + r / this.k0, a = As(s, this.es, this.en), Math.abs(a) < M) {
1347
+ if (s = this.ml0 + r / this.k0, a = Ns(s, this.es, this.en), Math.abs(a) < M) {
1348
1348
  var f = Math.sin(a), u = Math.cos(a), v = Math.abs(u) > m ? Math.tan(a) : 0, d = this.ep2 * Math.pow(u, 2), y = Math.pow(d, 2), g = Math.pow(v, 2), x = Math.pow(g, 2);
1349
1349
  s = 1 - this.es * Math.pow(f, 2);
1350
1350
  var S = h * Math.sqrt(s) / this.k0, E = Math.pow(S, 2);
@@ -1490,7 +1490,7 @@ function Si(t) {
1490
1490
  var s, a, i, e;
1491
1491
  return t.x = b(t.x - this.long0), Qt.forward.apply(this, [t]), s = Math.sin(t.y), a = Math.cos(t.y), i = Math.cos(t.x), e = this.k0 * this.R2 / (1 + this.sinc0 * s + this.cosc0 * a * i), t.x = e * a * Math.sin(t.x), t.y = e * (this.cosc0 * s - this.sinc0 * a * i), t.x = this.a * t.x + this.x0, t.y = this.a * t.y + this.y0, t;
1492
1492
  }
1493
- function Ni(t) {
1493
+ function Ai(t) {
1494
1494
  var s, a, i, e, h;
1495
1495
  if (t.x = (t.x - this.x0) / this.a, t.y = (t.y - this.y0) / this.a, t.x /= this.k0, t.y /= this.k0, h = Math.sqrt(t.x * t.x + t.y * t.y)) {
1496
1496
  var r = 2 * Math.atan2(h, this.R2);
@@ -1499,12 +1499,12 @@ function Ni(t) {
1499
1499
  e = this.phic0, i = 0;
1500
1500
  return t.x = i, t.y = e, Qt.inverse.apply(this, [t]), t.x = b(t.x + this.long0), t;
1501
1501
  }
1502
- var Ai = ["Stereographic_North_Pole", "Oblique_Stereographic", "Polar_Stereographic", "sterea", "Oblique Stereographic Alternative", "Double_Stereographic"];
1502
+ var Ni = ["Stereographic_North_Pole", "Oblique_Stereographic", "Polar_Stereographic", "sterea", "Oblique Stereographic Alternative", "Double_Stereographic"];
1503
1503
  const Bi = {
1504
1504
  init: Pi,
1505
1505
  forward: Si,
1506
- inverse: Ni,
1507
- names: Ai
1506
+ inverse: Ai,
1507
+ names: Ni
1508
1508
  };
1509
1509
  function Ci(t, s, a) {
1510
1510
  return s *= a, Math.tan(0.5 * (M + t)) * Math.pow((1 - s) / (1 + s), 0.5 * a);
@@ -1530,12 +1530,12 @@ function Li(t) {
1530
1530
  e = 2 * Math.atan(r * this.cosX0 / (2 * this.a * this.k0 * this.ms1)), s = this.long0, r <= m ? h = this.X0 : (h = Math.asin(Math.cos(e) * this.sinX0 + t.y * Math.sin(e) * this.cosX0 / r), s = b(this.long0 + Math.atan2(t.x * Math.sin(e), r * this.cosX0 * Math.cos(e) - t.y * this.sinX0 * Math.sin(e)))), a = -1 * ut(this.e, Math.tan(0.5 * (M + h)));
1531
1531
  return t.x = s, t.y = a, t;
1532
1532
  }
1533
- var Oi = ["stere", "Stereographic_South_Pole", "Polar Stereographic (variant B)"];
1534
- const $i = {
1533
+ var $i = ["stere", "Stereographic_South_Pole", "Polar Stereographic (variant B)"];
1534
+ const Oi = {
1535
1535
  init: Di,
1536
1536
  forward: ki,
1537
1537
  inverse: Li,
1538
- names: Oi,
1538
+ names: $i,
1539
1539
  ssfn_: Ci
1540
1540
  };
1541
1541
  function Ti() {
@@ -1672,7 +1672,7 @@ const ie = {
1672
1672
  inverse: se,
1673
1673
  names: ae
1674
1674
  };
1675
- function $(t, s, a, i, e) {
1675
+ function O(t, s, a, i, e) {
1676
1676
  return t * e - s * Math.sin(2 * e) + a * Math.sin(4 * e) - i * Math.sin(6 * e);
1677
1677
  }
1678
1678
  function vt(t) {
@@ -1694,7 +1694,7 @@ function rt(t, s, a) {
1694
1694
  function nt(t) {
1695
1695
  return Math.abs(t) < M ? t : t - Mt(t) * Math.PI;
1696
1696
  }
1697
- function Nt(t, s, a, i, e) {
1697
+ function At(t, s, a, i, e) {
1698
1698
  var h, r;
1699
1699
  h = t / s;
1700
1700
  for (var n = 0; n < 15; n++)
@@ -1703,14 +1703,14 @@ function Nt(t, s, a, i, e) {
1703
1703
  return NaN;
1704
1704
  }
1705
1705
  function ee() {
1706
- this.sphere || (this.e0 = vt(this.es), this.e1 = dt(this.es), this.e2 = yt(this.es), this.e3 = mt(this.es), this.ml0 = this.a * $(this.e0, this.e1, this.e2, this.e3, this.lat0));
1706
+ this.sphere || (this.e0 = vt(this.es), this.e1 = dt(this.es), this.e2 = yt(this.es), this.e3 = mt(this.es), this.ml0 = this.a * O(this.e0, this.e1, this.e2, this.e3, this.lat0));
1707
1707
  }
1708
1708
  function he(t) {
1709
1709
  var s, a, i = t.x, e = t.y;
1710
1710
  if (i = b(i - this.long0), this.sphere)
1711
1711
  s = this.a * Math.asin(Math.cos(e) * Math.sin(i)), a = this.a * (Math.atan2(Math.tan(e), Math.cos(i)) - this.lat0);
1712
1712
  else {
1713
- var h = Math.sin(e), r = Math.cos(e), n = rt(this.a, this.e, h), o = Math.tan(e) * Math.tan(e), l = i * Math.cos(e), c = l * l, f = this.es * r * r / (1 - this.es), u = this.a * $(this.e0, this.e1, this.e2, this.e3, e);
1713
+ var h = Math.sin(e), r = Math.cos(e), n = rt(this.a, this.e, h), o = Math.tan(e) * Math.tan(e), l = i * Math.cos(e), c = l * l, f = this.es * r * r / (1 - this.es), u = this.a * O(this.e0, this.e1, this.e2, this.e3, e);
1714
1714
  s = n * l * (1 - c * o * (1 / 6 - (8 - o + 8 * f) * c / 120)), a = u - this.ml0 + n * h / r * c * (0.5 + (5 - o + 6 * f) * c / 24);
1715
1715
  }
1716
1716
  return t.x = s + this.x0, t.y = a + this.y0, t;
@@ -1722,7 +1722,7 @@ function re(t) {
1722
1722
  var h = a + this.lat0;
1723
1723
  i = Math.asin(Math.sin(h) * Math.cos(s)), e = Math.atan2(Math.tan(s), Math.cos(h));
1724
1724
  } else {
1725
- var r = this.ml0 / this.a + a, n = Nt(r, this.e0, this.e1, this.e2, this.e3);
1725
+ var r = this.ml0 / this.a + a, n = At(r, this.e0, this.e1, this.e2, this.e3);
1726
1726
  if (Math.abs(Math.abs(n) - M) <= m)
1727
1727
  return t.x = this.long0, t.y = M, a < 0 && (t.y *= -1), t;
1728
1728
  var o = rt(this.a, this.e, Math.sin(n)), l = o * o * o / this.a / this.a * (1 - this.es), c = Math.pow(Math.tan(n), 2), f = s * this.a / o, u = f * f;
@@ -1877,7 +1877,7 @@ function Se(t) {
1877
1877
  var s, a, i, e, h, r;
1878
1878
  return t.x -= this.x0, t.y = this.rh - t.y + this.y0, this.ns0 >= 0 ? (s = Math.sqrt(t.x * t.x + t.y * t.y), i = 1) : (s = -Math.sqrt(t.x * t.x + t.y * t.y), i = -1), e = 0, s !== 0 && (e = Math.atan2(i * t.x, i * t.y)), i = s * this.ns0 / this.a, this.sphere ? r = Math.asin((this.c - i * i) / (2 * this.ns0)) : (a = (this.c - i * i) / this.ns0, r = this.phi1z(this.e3, a)), h = b(e / this.ns0 + this.long0), t.x = h, t.y = r, t;
1879
1879
  }
1880
- function Ne(t, s) {
1880
+ function Ae(t, s) {
1881
1881
  var a, i, e, h, r, n = K(0.5 * s);
1882
1882
  if (t < m)
1883
1883
  return n;
@@ -1886,13 +1886,13 @@ function Ne(t, s) {
1886
1886
  return n;
1887
1887
  return null;
1888
1888
  }
1889
- var Ae = ["Albers_Conic_Equal_Area", "Albers", "aea"];
1889
+ var Ne = ["Albers_Conic_Equal_Area", "Albers", "aea"];
1890
1890
  const Be = {
1891
1891
  init: Ie,
1892
1892
  forward: Pe,
1893
1893
  inverse: Se,
1894
- names: Ae,
1895
- phi1z: Ne
1894
+ names: Ne,
1895
+ phi1z: Ae
1896
1896
  };
1897
1897
  function Ce() {
1898
1898
  this.sin_p14 = Math.sin(this.lat0), this.cos_p14 = Math.cos(this.lat0), this.infinity_dist = 1e3 * this.a, this.rc = 1;
@@ -1906,13 +1906,13 @@ function ke(t) {
1906
1906
  return t.x = (t.x - this.x0) / this.a, t.y = (t.y - this.y0) / this.a, t.x /= this.k0, t.y /= this.k0, (s = Math.sqrt(t.x * t.x + t.y * t.y)) ? (e = Math.atan2(s, this.rc), a = Math.sin(e), i = Math.cos(e), r = K(i * this.sin_p14 + t.y * a * this.cos_p14 / s), h = Math.atan2(t.x * a, s * this.cos_p14 * i - t.y * this.sin_p14 * a), h = b(this.long0 + h)) : (r = this.phic0, h = 0), t.x = h, t.y = r, t;
1907
1907
  }
1908
1908
  var Le = ["gnom"];
1909
- const Oe = {
1909
+ const $e = {
1910
1910
  init: Ce,
1911
1911
  forward: De,
1912
1912
  inverse: ke,
1913
1913
  names: Le
1914
1914
  };
1915
- function $e(t, s) {
1915
+ function Oe(t, s) {
1916
1916
  var a = 1 - (1 - t * t) / (2 * t) * Math.log((1 - t) / (1 + t));
1917
1917
  if (Math.abs(Math.abs(s) - a) < 1e-6)
1918
1918
  return s < 0 ? -1 * M : M;
@@ -1937,7 +1937,7 @@ function qe(t) {
1937
1937
  function Fe(t) {
1938
1938
  t.x -= this.x0, t.y -= this.y0;
1939
1939
  var s, a;
1940
- return this.sphere ? (s = b(this.long0 + t.x / this.a / Math.cos(this.lat_ts)), a = Math.asin(t.y / this.a * Math.cos(this.lat_ts))) : (a = $e(this.e, 2 * t.y * this.k0 / this.a), s = b(this.long0 + t.x / (this.a * this.k0))), t.x = s, t.y = a, t;
1940
+ return this.sphere ? (s = b(this.long0 + t.x / this.a / Math.cos(this.lat_ts)), a = Math.asin(t.y / this.a * Math.cos(this.lat_ts))) : (a = Oe(this.e, 2 * t.y * this.k0 / this.a), s = b(this.long0 + t.x / (this.a * this.k0))), t.x = s, t.y = a, t;
1941
1941
  }
1942
1942
  var Ge = ["cea"];
1943
1943
  const je = {
@@ -1966,7 +1966,7 @@ const Qe = {
1966
1966
  };
1967
1967
  var cs = 20;
1968
1968
  function Xe() {
1969
- this.temp = this.b / this.a, this.es = 1 - Math.pow(this.temp, 2), this.e = Math.sqrt(this.es), this.e0 = vt(this.es), this.e1 = dt(this.es), this.e2 = yt(this.es), this.e3 = mt(this.es), this.ml0 = this.a * $(this.e0, this.e1, this.e2, this.e3, this.lat0);
1969
+ this.temp = this.b / this.a, this.es = 1 - Math.pow(this.temp, 2), this.e = Math.sqrt(this.es), this.e0 = vt(this.es), this.e1 = dt(this.es), this.e2 = yt(this.es), this.e3 = mt(this.es), this.ml0 = this.a * O(this.e0, this.e1, this.e2, this.e3, this.lat0);
1970
1970
  }
1971
1971
  function Ye(t) {
1972
1972
  var s = t.x, a = t.y, i, e, h, r = b(s - this.long0);
@@ -1976,7 +1976,7 @@ function Ye(t) {
1976
1976
  i = this.a * r, e = -1 * this.ml0;
1977
1977
  else {
1978
1978
  var n = rt(this.a, this.e, Math.sin(a)) / Math.tan(a);
1979
- i = n * Math.sin(h), e = this.a * $(this.e0, this.e1, this.e2, this.e3, a) - this.ml0 + n * (1 - Math.cos(h));
1979
+ i = n * Math.sin(h), e = this.a * O(this.e0, this.e1, this.e2, this.e3, a) - this.ml0 + n * (1 - Math.cos(h));
1980
1980
  }
1981
1981
  return t.x = i + this.x0, t.y = e + this.y0, t;
1982
1982
  }
@@ -2001,7 +2001,7 @@ function Ke(t) {
2001
2001
  r = (this.ml0 + e) / this.a, n = i * i / this.a / this.a + r * r, o = r;
2002
2002
  var f, u, v, d, y;
2003
2003
  for (h = cs; h; --h)
2004
- if (y = this.e * Math.sin(o), f = Math.sqrt(1 - y * y) * Math.tan(o), u = this.a * $(this.e0, this.e1, this.e2, this.e3, o), v = this.e0 - 2 * this.e1 * Math.cos(2 * o) + 4 * this.e2 * Math.cos(4 * o) - 6 * this.e3 * Math.cos(6 * o), d = u / this.a, l = (r * (f * d + 1) - d - 0.5 * f * (d * d + n)) / (this.es * Math.sin(2 * o) * (d * d + n - 2 * r * d) / (4 * f) + (r - d) * (f * v - 2 / Math.sin(2 * o)) - v), o -= l, Math.abs(l) <= m) {
2004
+ if (y = this.e * Math.sin(o), f = Math.sqrt(1 - y * y) * Math.tan(o), u = this.a * O(this.e0, this.e1, this.e2, this.e3, o), v = this.e0 - 2 * this.e1 * Math.cos(2 * o) + 4 * this.e2 * Math.cos(4 * o) - 6 * this.e3 * Math.cos(6 * o), d = u / this.a, l = (r * (f * d + 1) - d - 0.5 * f * (d * d + n)) / (this.es * Math.sin(2 * o) * (d * d + n - 2 * r * d) / (4 * f) + (r - d) * (f * v - 2 / Math.sin(2 * o)) - v), o -= l, Math.abs(l) <= m) {
2005
2005
  a = o;
2006
2006
  break;
2007
2007
  }
@@ -2076,7 +2076,7 @@ const oh = {
2076
2076
  };
2077
2077
  var lh = 20;
2078
2078
  function ch() {
2079
- this.sphere ? (this.n = 1, this.m = 0, this.es = 0, this.C_y = Math.sqrt((this.m + 1) / this.n), this.C_x = this.C_y / (this.m + 1)) : this.en = Ns(this.es);
2079
+ this.sphere ? (this.n = 1, this.m = 0, this.es = 0, this.C_y = Math.sqrt((this.m + 1) / this.n), this.C_x = this.C_y / (this.m + 1)) : this.en = As(this.es);
2080
2080
  }
2081
2081
  function fh(t) {
2082
2082
  var s, a, i = t.x, e = t.y;
@@ -2098,7 +2098,7 @@ function fh(t) {
2098
2098
  }
2099
2099
  function uh(t) {
2100
2100
  var s, a, i, e;
2101
- return t.x -= this.x0, i = t.x / this.a, t.y -= this.y0, s = t.y / this.a, this.sphere ? (s /= this.C_y, i = i / (this.C_x * (this.m + Math.cos(s))), this.m ? s = K((this.m * s + Math.sin(s)) / this.n) : this.n !== 1 && (s = K(Math.sin(s) / this.n)), i = b(i + this.long0), s = nt(s)) : (s = As(t.y / this.a, this.es, this.en), e = Math.abs(s), e < M ? (e = Math.sin(s), a = this.long0 + t.x * Math.sqrt(1 - this.es * e * e) / (this.a * Math.cos(s)), i = b(a)) : e - m < M && (i = this.long0)), t.x = i, t.y = s, t;
2101
+ return t.x -= this.x0, i = t.x / this.a, t.y -= this.y0, s = t.y / this.a, this.sphere ? (s /= this.C_y, i = i / (this.C_x * (this.m + Math.cos(s))), this.m ? s = K((this.m * s + Math.sin(s)) / this.n) : this.n !== 1 && (s = K(Math.sin(s) / this.n)), i = b(i + this.long0), s = nt(s)) : (s = Ns(t.y / this.a, this.es, this.en), e = Math.abs(s), e < M ? (e = Math.sin(s), a = this.long0 + t.x * Math.sqrt(1 - this.es * e * e) / (this.a * Math.cos(s)), i = b(a)) : e - m < M && (i = this.long0)), t.x = i, t.y = s, t;
2102
2102
  }
2103
2103
  var Mh = ["Sinusoidal", "sinu"];
2104
2104
  const vh = {
@@ -2135,14 +2135,14 @@ const bh = {
2135
2135
  names: gh
2136
2136
  };
2137
2137
  function _h() {
2138
- Math.abs(this.lat1 + this.lat2) < m || (this.lat2 = this.lat2 || this.lat1, this.temp = this.b / this.a, this.es = 1 - Math.pow(this.temp, 2), this.e = Math.sqrt(this.es), this.e0 = vt(this.es), this.e1 = dt(this.es), this.e2 = yt(this.es), this.e3 = mt(this.es), this.sinphi = Math.sin(this.lat1), this.cosphi = Math.cos(this.lat1), this.ms1 = W(this.e, this.sinphi, this.cosphi), this.ml1 = $(this.e0, this.e1, this.e2, this.e3, this.lat1), Math.abs(this.lat1 - this.lat2) < m ? this.ns = this.sinphi : (this.sinphi = Math.sin(this.lat2), this.cosphi = Math.cos(this.lat2), this.ms2 = W(this.e, this.sinphi, this.cosphi), this.ml2 = $(this.e0, this.e1, this.e2, this.e3, this.lat2), this.ns = (this.ms1 - this.ms2) / (this.ml2 - this.ml1)), this.g = this.ml1 + this.ms1 / this.ns, this.ml0 = $(this.e0, this.e1, this.e2, this.e3, this.lat0), this.rh = this.a * (this.g - this.ml0));
2138
+ Math.abs(this.lat1 + this.lat2) < m || (this.lat2 = this.lat2 || this.lat1, this.temp = this.b / this.a, this.es = 1 - Math.pow(this.temp, 2), this.e = Math.sqrt(this.es), this.e0 = vt(this.es), this.e1 = dt(this.es), this.e2 = yt(this.es), this.e3 = mt(this.es), this.sinphi = Math.sin(this.lat1), this.cosphi = Math.cos(this.lat1), this.ms1 = W(this.e, this.sinphi, this.cosphi), this.ml1 = O(this.e0, this.e1, this.e2, this.e3, this.lat1), Math.abs(this.lat1 - this.lat2) < m ? this.ns = this.sinphi : (this.sinphi = Math.sin(this.lat2), this.cosphi = Math.cos(this.lat2), this.ms2 = W(this.e, this.sinphi, this.cosphi), this.ml2 = O(this.e0, this.e1, this.e2, this.e3, this.lat2), this.ns = (this.ms1 - this.ms2) / (this.ml2 - this.ml1)), this.g = this.ml1 + this.ms1 / this.ns, this.ml0 = O(this.e0, this.e1, this.e2, this.e3, this.lat0), this.rh = this.a * (this.g - this.ml0));
2139
2139
  }
2140
2140
  function xh(t) {
2141
2141
  var s = t.x, a = t.y, i;
2142
2142
  if (this.sphere)
2143
2143
  i = this.a * (this.g - a);
2144
2144
  else {
2145
- var e = $(this.e0, this.e1, this.e2, this.e3, a);
2145
+ var e = O(this.e0, this.e1, this.e2, this.e3, a);
2146
2146
  i = this.a * (this.g - e);
2147
2147
  }
2148
2148
  var h = this.ns * b(s - this.long0), r = this.x0 + i * Math.sin(h), n = this.y0 + this.rh - i * Math.cos(h);
@@ -2156,7 +2156,7 @@ function wh(t) {
2156
2156
  if (a !== 0 && (h = Math.atan2(s * t.x, s * t.y)), this.sphere)
2157
2157
  return e = b(this.long0 + h / this.ns), i = nt(this.g - a / this.a), t.x = e, t.y = i, t;
2158
2158
  var r = this.g - a / this.a;
2159
- return i = Nt(r, this.e0, this.e1, this.e2, this.e3), e = b(this.long0 + h / this.ns), t.x = e, t.y = i, t;
2159
+ return i = At(r, this.e0, this.e1, this.e2, this.e3), e = b(this.long0 + h / this.ns), t.x = e, t.y = i, t;
2160
2160
  }
2161
2161
  var Eh = ["Equidistant_Conic", "eqdc"];
2162
2162
  const ph = {
@@ -2183,27 +2183,27 @@ function Ph(t) {
2183
2183
  return t.x -= this.x0, t.y -= this.y0, f = Math.PI * this.R, i = t.x / f, e = t.y / f, h = i * i + e * e, r = -Math.abs(e) * (1 + h), n = r - 2 * e * e + i * i, o = -2 * r + 1 + 2 * e * e + h * h, v = e * e / o + (2 * n * n * n / o / o / o - 9 * r * n / o / o) / 27, l = (r - n * n / 3 / o) / o, c = 2 * Math.sqrt(-l / 3), f = 3 * v / l / c, Math.abs(f) > 1 && (f >= 0 ? f = 1 : f = -1), u = Math.acos(f) / 3, t.y >= 0 ? a = (-c * Math.cos(u + Math.PI / 3) - n / 3 / o) * Math.PI : a = -(-c * Math.cos(u + Math.PI / 3) - n / 3 / o) * Math.PI, Math.abs(i) < m ? s = this.long0 : s = b(this.long0 + Math.PI * (h - 1 + Math.sqrt(1 + 2 * (i * i - e * e) + h * h)) / 2 / i), t.x = s, t.y = a, t;
2184
2184
  }
2185
2185
  var Sh = ["Van_der_Grinten_I", "VanDerGrinten", "vandg"];
2186
- const Nh = {
2186
+ const Ah = {
2187
2187
  init: Rh,
2188
2188
  forward: Ih,
2189
2189
  inverse: Ph,
2190
2190
  names: Sh
2191
2191
  };
2192
- function Ah() {
2192
+ function Nh() {
2193
2193
  this.sin_p12 = Math.sin(this.lat0), this.cos_p12 = Math.cos(this.lat0);
2194
2194
  }
2195
2195
  function Bh(t) {
2196
2196
  var s = t.x, a = t.y, i = Math.sin(t.y), e = Math.cos(t.y), h = b(s - this.long0), r, n, o, l, c, f, u, v, d, y, g, x, S, E, I, R, P, F, B, z, V, Z, gt;
2197
- return this.sphere ? Math.abs(this.sin_p12 - 1) <= m ? (t.x = this.x0 + this.a * (M - a) * Math.sin(h), t.y = this.y0 - this.a * (M - a) * Math.cos(h), t) : Math.abs(this.sin_p12 + 1) <= m ? (t.x = this.x0 + this.a * (M + a) * Math.sin(h), t.y = this.y0 + this.a * (M + a) * Math.cos(h), t) : (F = this.sin_p12 * i + this.cos_p12 * e * Math.cos(h), R = Math.acos(F), P = R ? R / Math.sin(R) : 1, t.x = this.x0 + this.a * P * e * Math.sin(h), t.y = this.y0 + this.a * P * (this.cos_p12 * i - this.sin_p12 * e * Math.cos(h)), t) : (r = vt(this.es), n = dt(this.es), o = yt(this.es), l = mt(this.es), Math.abs(this.sin_p12 - 1) <= m ? (c = this.a * $(r, n, o, l, M), f = this.a * $(r, n, o, l, a), t.x = this.x0 + (c - f) * Math.sin(h), t.y = this.y0 - (c - f) * Math.cos(h), t) : Math.abs(this.sin_p12 + 1) <= m ? (c = this.a * $(r, n, o, l, M), f = this.a * $(r, n, o, l, a), t.x = this.x0 + (c + f) * Math.sin(h), t.y = this.y0 + (c + f) * Math.cos(h), t) : (u = i / e, v = rt(this.a, this.e, this.sin_p12), d = rt(this.a, this.e, i), y = Math.atan((1 - this.es) * u + this.es * v * this.sin_p12 / (d * e)), g = Math.atan2(Math.sin(h), this.cos_p12 * Math.tan(y) - this.sin_p12 * Math.cos(h)), g === 0 ? B = Math.asin(this.cos_p12 * Math.sin(y) - this.sin_p12 * Math.cos(y)) : Math.abs(Math.abs(g) - Math.PI) <= m ? B = -Math.asin(this.cos_p12 * Math.sin(y) - this.sin_p12 * Math.cos(y)) : B = Math.asin(Math.sin(h) * Math.cos(y) / Math.sin(g)), x = this.e * this.sin_p12 / Math.sqrt(1 - this.es), S = this.e * this.cos_p12 * Math.cos(g) / Math.sqrt(1 - this.es), E = x * S, I = S * S, z = B * B, V = z * B, Z = V * B, gt = Z * B, R = v * B * (1 - z * I * (1 - I) / 6 + V / 8 * E * (1 - 2 * I) + Z / 120 * (I * (4 - 7 * I) - 3 * x * x * (1 - 7 * I)) - gt / 48 * E), t.x = this.x0 + R * Math.sin(g), t.y = this.y0 + R * Math.cos(g), t));
2197
+ return this.sphere ? Math.abs(this.sin_p12 - 1) <= m ? (t.x = this.x0 + this.a * (M - a) * Math.sin(h), t.y = this.y0 - this.a * (M - a) * Math.cos(h), t) : Math.abs(this.sin_p12 + 1) <= m ? (t.x = this.x0 + this.a * (M + a) * Math.sin(h), t.y = this.y0 + this.a * (M + a) * Math.cos(h), t) : (F = this.sin_p12 * i + this.cos_p12 * e * Math.cos(h), R = Math.acos(F), P = R ? R / Math.sin(R) : 1, t.x = this.x0 + this.a * P * e * Math.sin(h), t.y = this.y0 + this.a * P * (this.cos_p12 * i - this.sin_p12 * e * Math.cos(h)), t) : (r = vt(this.es), n = dt(this.es), o = yt(this.es), l = mt(this.es), Math.abs(this.sin_p12 - 1) <= m ? (c = this.a * O(r, n, o, l, M), f = this.a * O(r, n, o, l, a), t.x = this.x0 + (c - f) * Math.sin(h), t.y = this.y0 - (c - f) * Math.cos(h), t) : Math.abs(this.sin_p12 + 1) <= m ? (c = this.a * O(r, n, o, l, M), f = this.a * O(r, n, o, l, a), t.x = this.x0 + (c + f) * Math.sin(h), t.y = this.y0 + (c + f) * Math.cos(h), t) : (u = i / e, v = rt(this.a, this.e, this.sin_p12), d = rt(this.a, this.e, i), y = Math.atan((1 - this.es) * u + this.es * v * this.sin_p12 / (d * e)), g = Math.atan2(Math.sin(h), this.cos_p12 * Math.tan(y) - this.sin_p12 * Math.cos(h)), g === 0 ? B = Math.asin(this.cos_p12 * Math.sin(y) - this.sin_p12 * Math.cos(y)) : Math.abs(Math.abs(g) - Math.PI) <= m ? B = -Math.asin(this.cos_p12 * Math.sin(y) - this.sin_p12 * Math.cos(y)) : B = Math.asin(Math.sin(h) * Math.cos(y) / Math.sin(g)), x = this.e * this.sin_p12 / Math.sqrt(1 - this.es), S = this.e * this.cos_p12 * Math.cos(g) / Math.sqrt(1 - this.es), E = x * S, I = S * S, z = B * B, V = z * B, Z = V * B, gt = Z * B, R = v * B * (1 - z * I * (1 - I) / 6 + V / 8 * E * (1 - 2 * I) + Z / 120 * (I * (4 - 7 * I) - 3 * x * x * (1 - 7 * I)) - gt / 48 * E), t.x = this.x0 + R * Math.sin(g), t.y = this.y0 + R * Math.cos(g), t));
2198
2198
  }
2199
2199
  function Ch(t) {
2200
2200
  t.x -= this.x0, t.y -= this.y0;
2201
2201
  var s, a, i, e, h, r, n, o, l, c, f, u, v, d, y, g, x, S, E, I, R, P, F, B;
2202
- return this.sphere ? (s = Math.sqrt(t.x * t.x + t.y * t.y), s > 2 * M * this.a ? void 0 : (a = s / this.a, i = Math.sin(a), e = Math.cos(a), h = this.long0, Math.abs(s) <= m ? r = this.lat0 : (r = K(e * this.sin_p12 + t.y * i * this.cos_p12 / s), n = Math.abs(this.lat0) - M, Math.abs(n) <= m ? this.lat0 >= 0 ? h = b(this.long0 + Math.atan2(t.x, -t.y)) : h = b(this.long0 - Math.atan2(-t.x, t.y)) : h = b(this.long0 + Math.atan2(t.x * i, s * this.cos_p12 * e - t.y * this.sin_p12 * i))), t.x = h, t.y = r, t)) : (o = vt(this.es), l = dt(this.es), c = yt(this.es), f = mt(this.es), Math.abs(this.sin_p12 - 1) <= m ? (u = this.a * $(o, l, c, f, M), s = Math.sqrt(t.x * t.x + t.y * t.y), v = u - s, r = Nt(v / this.a, o, l, c, f), h = b(this.long0 + Math.atan2(t.x, -1 * t.y)), t.x = h, t.y = r, t) : Math.abs(this.sin_p12 + 1) <= m ? (u = this.a * $(o, l, c, f, M), s = Math.sqrt(t.x * t.x + t.y * t.y), v = s - u, r = Nt(v / this.a, o, l, c, f), h = b(this.long0 + Math.atan2(t.x, t.y)), t.x = h, t.y = r, t) : (s = Math.sqrt(t.x * t.x + t.y * t.y), g = Math.atan2(t.x, t.y), d = rt(this.a, this.e, this.sin_p12), x = Math.cos(g), S = this.e * this.cos_p12 * x, E = -S * S / (1 - this.es), I = 3 * this.es * (1 - E) * this.sin_p12 * this.cos_p12 * x / (1 - this.es), R = s / d, P = R - E * (1 + E) * Math.pow(R, 3) / 6 - I * (1 + 3 * E) * Math.pow(R, 4) / 24, F = 1 - E * P * P / 2 - R * P * P * P / 6, y = Math.asin(this.sin_p12 * Math.cos(P) + this.cos_p12 * Math.sin(P) * x), h = b(this.long0 + Math.asin(Math.sin(g) * Math.sin(P) / Math.cos(y))), B = Math.sin(y), r = Math.atan2((B - this.es * F * this.sin_p12) * Math.tan(y), B * (1 - this.es)), t.x = h, t.y = r, t));
2202
+ return this.sphere ? (s = Math.sqrt(t.x * t.x + t.y * t.y), s > 2 * M * this.a ? void 0 : (a = s / this.a, i = Math.sin(a), e = Math.cos(a), h = this.long0, Math.abs(s) <= m ? r = this.lat0 : (r = K(e * this.sin_p12 + t.y * i * this.cos_p12 / s), n = Math.abs(this.lat0) - M, Math.abs(n) <= m ? this.lat0 >= 0 ? h = b(this.long0 + Math.atan2(t.x, -t.y)) : h = b(this.long0 - Math.atan2(-t.x, t.y)) : h = b(this.long0 + Math.atan2(t.x * i, s * this.cos_p12 * e - t.y * this.sin_p12 * i))), t.x = h, t.y = r, t)) : (o = vt(this.es), l = dt(this.es), c = yt(this.es), f = mt(this.es), Math.abs(this.sin_p12 - 1) <= m ? (u = this.a * O(o, l, c, f, M), s = Math.sqrt(t.x * t.x + t.y * t.y), v = u - s, r = At(v / this.a, o, l, c, f), h = b(this.long0 + Math.atan2(t.x, -1 * t.y)), t.x = h, t.y = r, t) : Math.abs(this.sin_p12 + 1) <= m ? (u = this.a * O(o, l, c, f, M), s = Math.sqrt(t.x * t.x + t.y * t.y), v = s - u, r = At(v / this.a, o, l, c, f), h = b(this.long0 + Math.atan2(t.x, t.y)), t.x = h, t.y = r, t) : (s = Math.sqrt(t.x * t.x + t.y * t.y), g = Math.atan2(t.x, t.y), d = rt(this.a, this.e, this.sin_p12), x = Math.cos(g), S = this.e * this.cos_p12 * x, E = -S * S / (1 - this.es), I = 3 * this.es * (1 - E) * this.sin_p12 * this.cos_p12 * x / (1 - this.es), R = s / d, P = R - E * (1 + E) * Math.pow(R, 3) / 6 - I * (1 + 3 * E) * Math.pow(R, 4) / 24, F = 1 - E * P * P / 2 - R * P * P * P / 6, y = Math.asin(this.sin_p12 * Math.cos(P) + this.cos_p12 * Math.sin(P) * x), h = b(this.long0 + Math.asin(Math.sin(g) * Math.sin(P) / Math.cos(y))), B = Math.sin(y), r = Math.atan2((B - this.es * F * this.sin_p12) * Math.tan(y), B * (1 - this.es)), t.x = h, t.y = r, t));
2203
2203
  }
2204
2204
  var Dh = ["Azimuthal_Equidistant", "aeqd"];
2205
2205
  const kh = {
2206
- init: Ah,
2206
+ init: Nh,
2207
2207
  forward: Bh,
2208
2208
  inverse: Ch,
2209
2209
  names: Dh
@@ -2211,22 +2211,22 @@ const kh = {
2211
2211
  function Lh() {
2212
2212
  this.sin_p14 = Math.sin(this.lat0), this.cos_p14 = Math.cos(this.lat0);
2213
2213
  }
2214
- function Oh(t) {
2214
+ function $h(t) {
2215
2215
  var s, a, i, e, h, r, n, o, l = t.x, c = t.y;
2216
2216
  return i = b(l - this.long0), s = Math.sin(c), a = Math.cos(c), e = Math.cos(i), r = this.sin_p14 * s + this.cos_p14 * a * e, h = 1, (r > 0 || Math.abs(r) <= m) && (n = this.a * h * a * Math.sin(i), o = this.y0 + this.a * h * (this.cos_p14 * s - this.sin_p14 * a * e)), t.x = n, t.y = o, t;
2217
2217
  }
2218
- function $h(t) {
2218
+ function Oh(t) {
2219
2219
  var s, a, i, e, h, r, n;
2220
2220
  return t.x -= this.x0, t.y -= this.y0, s = Math.sqrt(t.x * t.x + t.y * t.y), a = K(s / this.a), i = Math.sin(a), e = Math.cos(a), r = this.long0, Math.abs(s) <= m ? (n = this.lat0, t.x = r, t.y = n, t) : (n = K(e * this.sin_p14 + t.y * i * this.cos_p14 / s), h = Math.abs(this.lat0) - M, Math.abs(h) <= m ? (this.lat0 >= 0 ? r = b(this.long0 + Math.atan2(t.x, -t.y)) : r = b(this.long0 - Math.atan2(-t.x, t.y)), t.x = r, t.y = n, t) : (r = b(this.long0 + Math.atan2(t.x * i, s * this.cos_p14 * e - t.y * this.sin_p14 * i)), t.x = r, t.y = n, t));
2221
2221
  }
2222
2222
  var Th = ["ortho"];
2223
2223
  const qh = {
2224
2224
  init: Lh,
2225
- forward: Oh,
2226
- inverse: $h,
2225
+ forward: $h,
2226
+ inverse: Oh,
2227
2227
  names: Th
2228
2228
  };
2229
- var N = {
2229
+ var A = {
2230
2230
  FRONT: 1,
2231
2231
  RIGHT: 2,
2232
2232
  BACK: 3,
@@ -2240,29 +2240,29 @@ var N = {
2240
2240
  AREA_3: 4
2241
2241
  };
2242
2242
  function Fh() {
2243
- this.x0 = this.x0 || 0, this.y0 = this.y0 || 0, this.lat0 = this.lat0 || 0, this.long0 = this.long0 || 0, this.lat_ts = this.lat_ts || 0, this.title = this.title || "Quadrilateralized Spherical Cube", this.lat0 >= M - p / 2 ? this.face = N.TOP : this.lat0 <= -(M - p / 2) ? this.face = N.BOTTOM : Math.abs(this.long0) <= p ? this.face = N.FRONT : Math.abs(this.long0) <= M + p ? this.face = this.long0 > 0 ? N.RIGHT : N.LEFT : this.face = N.BACK, this.es !== 0 && (this.one_minus_f = 1 - (this.a - this.b) / this.a, this.one_minus_f_squared = this.one_minus_f * this.one_minus_f);
2243
+ this.x0 = this.x0 || 0, this.y0 = this.y0 || 0, this.lat0 = this.lat0 || 0, this.long0 = this.long0 || 0, this.lat_ts = this.lat_ts || 0, this.title = this.title || "Quadrilateralized Spherical Cube", this.lat0 >= M - p / 2 ? this.face = A.TOP : this.lat0 <= -(M - p / 2) ? this.face = A.BOTTOM : Math.abs(this.long0) <= p ? this.face = A.FRONT : Math.abs(this.long0) <= M + p ? this.face = this.long0 > 0 ? A.RIGHT : A.LEFT : this.face = A.BACK, this.es !== 0 && (this.one_minus_f = 1 - (this.a - this.b) / this.a, this.one_minus_f_squared = this.one_minus_f * this.one_minus_f);
2244
2244
  }
2245
2245
  function Gh(t) {
2246
2246
  var s = { x: 0, y: 0 }, a, i, e, h, r, n, o = { value: 0 };
2247
- if (t.x -= this.long0, this.es !== 0 ? a = Math.atan(this.one_minus_f_squared * Math.tan(t.y)) : a = t.y, i = t.x, this.face === N.TOP)
2248
- h = M - a, i >= p && i <= M + p ? (o.value = w.AREA_0, e = i - M) : i > M + p || i <= -(M + p) ? (o.value = w.AREA_1, e = i > 0 ? i - A : i + A) : i > -(M + p) && i <= -p ? (o.value = w.AREA_2, e = i + M) : (o.value = w.AREA_3, e = i);
2249
- else if (this.face === N.BOTTOM)
2250
- h = M + a, i >= p && i <= M + p ? (o.value = w.AREA_0, e = -i + M) : i < p && i >= -p ? (o.value = w.AREA_1, e = -i) : i < -p && i >= -(M + p) ? (o.value = w.AREA_2, e = -i - M) : (o.value = w.AREA_3, e = i > 0 ? -i + A : -i - A);
2247
+ if (t.x -= this.long0, this.es !== 0 ? a = Math.atan(this.one_minus_f_squared * Math.tan(t.y)) : a = t.y, i = t.x, this.face === A.TOP)
2248
+ h = M - a, i >= p && i <= M + p ? (o.value = w.AREA_0, e = i - M) : i > M + p || i <= -(M + p) ? (o.value = w.AREA_1, e = i > 0 ? i - N : i + N) : i > -(M + p) && i <= -p ? (o.value = w.AREA_2, e = i + M) : (o.value = w.AREA_3, e = i);
2249
+ else if (this.face === A.BOTTOM)
2250
+ h = M + a, i >= p && i <= M + p ? (o.value = w.AREA_0, e = -i + M) : i < p && i >= -p ? (o.value = w.AREA_1, e = -i) : i < -p && i >= -(M + p) ? (o.value = w.AREA_2, e = -i - M) : (o.value = w.AREA_3, e = i > 0 ? -i + N : -i - N);
2251
2251
  else {
2252
2252
  var l, c, f, u, v, d, y;
2253
- this.face === N.RIGHT ? i = et(i, +M) : this.face === N.BACK ? i = et(i, +A) : this.face === N.LEFT && (i = et(i, -M)), u = Math.sin(a), v = Math.cos(a), d = Math.sin(i), y = Math.cos(i), l = v * y, c = v * d, f = u, this.face === N.FRONT ? (h = Math.acos(l), e = xt(h, f, c, o)) : this.face === N.RIGHT ? (h = Math.acos(c), e = xt(h, f, -l, o)) : this.face === N.BACK ? (h = Math.acos(-l), e = xt(h, f, -c, o)) : this.face === N.LEFT ? (h = Math.acos(-c), e = xt(h, f, l, o)) : (h = e = 0, o.value = w.AREA_0);
2253
+ this.face === A.RIGHT ? i = et(i, +M) : this.face === A.BACK ? i = et(i, +N) : this.face === A.LEFT && (i = et(i, -M)), u = Math.sin(a), v = Math.cos(a), d = Math.sin(i), y = Math.cos(i), l = v * y, c = v * d, f = u, this.face === A.FRONT ? (h = Math.acos(l), e = xt(h, f, c, o)) : this.face === A.RIGHT ? (h = Math.acos(c), e = xt(h, f, -l, o)) : this.face === A.BACK ? (h = Math.acos(-l), e = xt(h, f, -c, o)) : this.face === A.LEFT ? (h = Math.acos(-c), e = xt(h, f, l, o)) : (h = e = 0, o.value = w.AREA_0);
2254
2254
  }
2255
- return n = Math.atan(12 / A * (e + Math.acos(Math.sin(e) * Math.cos(p)) - M)), r = Math.sqrt((1 - Math.cos(h)) / (Math.cos(n) * Math.cos(n)) / (1 - Math.cos(Math.atan(1 / Math.cos(e))))), o.value === w.AREA_1 ? n += M : o.value === w.AREA_2 ? n += A : o.value === w.AREA_3 && (n += 1.5 * A), s.x = r * Math.cos(n), s.y = r * Math.sin(n), s.x = s.x * this.a + this.x0, s.y = s.y * this.a + this.y0, t.x = s.x, t.y = s.y, t;
2255
+ return n = Math.atan(12 / N * (e + Math.acos(Math.sin(e) * Math.cos(p)) - M)), r = Math.sqrt((1 - Math.cos(h)) / (Math.cos(n) * Math.cos(n)) / (1 - Math.cos(Math.atan(1 / Math.cos(e))))), o.value === w.AREA_1 ? n += M : o.value === w.AREA_2 ? n += N : o.value === w.AREA_3 && (n += 1.5 * N), s.x = r * Math.cos(n), s.y = r * Math.sin(n), s.x = s.x * this.a + this.x0, s.y = s.y * this.a + this.y0, t.x = s.x, t.y = s.y, t;
2256
2256
  }
2257
2257
  function jh(t) {
2258
2258
  var s = { lam: 0, phi: 0 }, a, i, e, h, r, n, o, l, c, f = { value: 0 };
2259
- if (t.x = (t.x - this.x0) / this.a, t.y = (t.y - this.y0) / this.a, i = Math.atan(Math.sqrt(t.x * t.x + t.y * t.y)), a = Math.atan2(t.y, t.x), t.x >= 0 && t.x >= Math.abs(t.y) ? f.value = w.AREA_0 : t.y >= 0 && t.y >= Math.abs(t.x) ? (f.value = w.AREA_1, a -= M) : t.x < 0 && -t.x >= Math.abs(t.y) ? (f.value = w.AREA_2, a = a < 0 ? a + A : a - A) : (f.value = w.AREA_3, a += M), c = A / 12 * Math.tan(a), r = Math.sin(c) / (Math.cos(c) - 1 / Math.sqrt(2)), n = Math.atan(r), e = Math.cos(a), h = Math.tan(i), o = 1 - e * e * h * h * (1 - Math.cos(Math.atan(1 / Math.cos(n)))), o < -1 ? o = -1 : o > 1 && (o = 1), this.face === N.TOP)
2260
- l = Math.acos(o), s.phi = M - l, f.value === w.AREA_0 ? s.lam = n + M : f.value === w.AREA_1 ? s.lam = n < 0 ? n + A : n - A : f.value === w.AREA_2 ? s.lam = n - M : s.lam = n;
2261
- else if (this.face === N.BOTTOM)
2262
- l = Math.acos(o), s.phi = l - M, f.value === w.AREA_0 ? s.lam = -n + M : f.value === w.AREA_1 ? s.lam = -n : f.value === w.AREA_2 ? s.lam = -n - M : s.lam = n < 0 ? -n - A : -n + A;
2259
+ if (t.x = (t.x - this.x0) / this.a, t.y = (t.y - this.y0) / this.a, i = Math.atan(Math.sqrt(t.x * t.x + t.y * t.y)), a = Math.atan2(t.y, t.x), t.x >= 0 && t.x >= Math.abs(t.y) ? f.value = w.AREA_0 : t.y >= 0 && t.y >= Math.abs(t.x) ? (f.value = w.AREA_1, a -= M) : t.x < 0 && -t.x >= Math.abs(t.y) ? (f.value = w.AREA_2, a = a < 0 ? a + N : a - N) : (f.value = w.AREA_3, a += M), c = N / 12 * Math.tan(a), r = Math.sin(c) / (Math.cos(c) - 1 / Math.sqrt(2)), n = Math.atan(r), e = Math.cos(a), h = Math.tan(i), o = 1 - e * e * h * h * (1 - Math.cos(Math.atan(1 / Math.cos(n)))), o < -1 ? o = -1 : o > 1 && (o = 1), this.face === A.TOP)
2260
+ l = Math.acos(o), s.phi = M - l, f.value === w.AREA_0 ? s.lam = n + M : f.value === w.AREA_1 ? s.lam = n < 0 ? n + N : n - N : f.value === w.AREA_2 ? s.lam = n - M : s.lam = n;
2261
+ else if (this.face === A.BOTTOM)
2262
+ l = Math.acos(o), s.phi = l - M, f.value === w.AREA_0 ? s.lam = -n + M : f.value === w.AREA_1 ? s.lam = -n : f.value === w.AREA_2 ? s.lam = -n - M : s.lam = n < 0 ? -n - N : -n + N;
2263
2263
  else {
2264
2264
  var u, v, d;
2265
- u = o, c = u * u, c >= 1 ? d = 0 : d = Math.sqrt(1 - c) * Math.sin(n), c += d * d, c >= 1 ? v = 0 : v = Math.sqrt(1 - c), f.value === w.AREA_1 ? (c = v, v = -d, d = c) : f.value === w.AREA_2 ? (v = -v, d = -d) : f.value === w.AREA_3 && (c = v, v = d, d = -c), this.face === N.RIGHT ? (c = u, u = -v, v = c) : this.face === N.BACK ? (u = -u, v = -v) : this.face === N.LEFT && (c = u, u = v, v = -c), s.phi = Math.acos(-d) - M, s.lam = Math.atan2(v, u), this.face === N.RIGHT ? s.lam = et(s.lam, -M) : this.face === N.BACK ? s.lam = et(s.lam, -A) : this.face === N.LEFT && (s.lam = et(s.lam, +M));
2265
+ u = o, c = u * u, c >= 1 ? d = 0 : d = Math.sqrt(1 - c) * Math.sin(n), c += d * d, c >= 1 ? v = 0 : v = Math.sqrt(1 - c), f.value === w.AREA_1 ? (c = v, v = -d, d = c) : f.value === w.AREA_2 ? (v = -v, d = -d) : f.value === w.AREA_3 && (c = v, v = d, d = -c), this.face === A.RIGHT ? (c = u, u = -v, v = c) : this.face === A.BACK ? (u = -u, v = -v) : this.face === A.LEFT && (c = u, u = v, v = -c), s.phi = Math.acos(-d) - M, s.lam = Math.atan2(v, u), this.face === A.RIGHT ? s.lam = et(s.lam, -M) : this.face === A.BACK ? s.lam = et(s.lam, -N) : this.face === A.LEFT && (s.lam = et(s.lam, +M));
2266
2266
  }
2267
2267
  if (this.es !== 0) {
2268
2268
  var y, g, x;
@@ -2272,11 +2272,11 @@ function jh(t) {
2272
2272
  }
2273
2273
  function xt(t, s, a, i) {
2274
2274
  var e;
2275
- return t < m ? (i.value = w.AREA_0, e = 0) : (e = Math.atan2(s, a), Math.abs(e) <= p ? i.value = w.AREA_0 : e > p && e <= M + p ? (i.value = w.AREA_1, e -= M) : e > M + p || e <= -(M + p) ? (i.value = w.AREA_2, e = e >= 0 ? e - A : e + A) : (i.value = w.AREA_3, e += M)), e;
2275
+ return t < m ? (i.value = w.AREA_0, e = 0) : (e = Math.atan2(s, a), Math.abs(e) <= p ? i.value = w.AREA_0 : e > p && e <= M + p ? (i.value = w.AREA_1, e -= M) : e > M + p || e <= -(M + p) ? (i.value = w.AREA_2, e = e >= 0 ? e - N : e + N) : (i.value = w.AREA_3, e += M)), e;
2276
2276
  }
2277
2277
  function et(t, s) {
2278
2278
  var a = t + s;
2279
- return a < -A ? a += Ft : a > +A && (a -= Ft), a;
2279
+ return a < -N ? a += Ft : a > +N && (a -= Ft), a;
2280
2280
  }
2281
2281
  var zh = ["Quadrilateralized Spherical Cube", "Quadrilateralized_Spherical_Cube", "qsc"];
2282
2282
  const Uh = {
@@ -2325,7 +2325,7 @@ var jt = [
2325
2325
  [0.9394, 840947e-8, -192841e-9, -42106e-10],
2326
2326
  [0.9761, 616527e-8, -256e-6, -42106e-10],
2327
2327
  [1, 328947e-8, -319159e-9, -42106e-10]
2328
- ], Ds = 0.8487, ks = 1.3523, Ls = Q / 5, Hh = 1 / Ls, it = 18, At = function(t, s) {
2328
+ ], Ds = 0.8487, ks = 1.3523, Ls = Q / 5, Hh = 1 / Ls, it = 18, Nt = function(t, s) {
2329
2329
  return t[0] + s * (t[1] + s * (t[2] + s * t[3]));
2330
2330
  }, Wh = function(t, s) {
2331
2331
  return t[1] + s * (2 * t[2] + s * 3 * t[3]);
@@ -2345,8 +2345,8 @@ function Yh(t) {
2345
2345
  var s = b(t.x - this.long0), a = Math.abs(t.y), i = Math.floor(a * Ls);
2346
2346
  i < 0 ? i = 0 : i >= it && (i = it - 1), a = Q * (a - Hh * i);
2347
2347
  var e = {
2348
- x: At(jt[i], a) * s,
2349
- y: At(lt[i], a)
2348
+ x: Nt(jt[i], a) * s,
2349
+ y: Nt(lt[i], a)
2350
2350
  };
2351
2351
  return t.y < 0 && (e.y = -e.y), e.x = e.x * this.a * Ds + this.x0, e.y = e.y * this.a * ks + this.y0, e;
2352
2352
  }
@@ -2368,8 +2368,8 @@ function Kh(t) {
2368
2368
  break;
2369
2369
  var i = lt[a], e = 5 * (s.y - i[0]) / (lt[a + 1][0] - i[0]);
2370
2370
  e = Qh(function(h) {
2371
- return (At(i, h) - s.y) / Wh(i, h);
2372
- }, e, m, 100), s.x /= At(jt[a], e), s.y = (5 * a + e) * D, t.y < 0 && (s.y = -s.y);
2371
+ return (Nt(i, h) - s.y) / Wh(i, h);
2372
+ }, e, m, 100), s.x /= Nt(jt[a], e), s.y = (5 * a + e) * D, t.y < 0 && (s.y = -s.y);
2373
2373
  }
2374
2374
  return s.x = b(s.x + this.long0), s;
2375
2375
  }
@@ -2399,7 +2399,7 @@ const ir = {
2399
2399
  names: ar
2400
2400
  };
2401
2401
  function er(t) {
2402
- t.Proj.projections.add(li), t.Proj.projections.add(Rt), t.Proj.projections.add(wi), t.Proj.projections.add(Bi), t.Proj.projections.add($i), t.Proj.projections.add(ji), t.Proj.projections.add(Qi), t.Proj.projections.add(Zi), t.Proj.projections.add(ie), t.Proj.projections.add(oe), t.Proj.projections.add(Re), t.Proj.projections.add(Be), t.Proj.projections.add(Oe), t.Proj.projections.add(je), t.Proj.projections.add(Qe), t.Proj.projections.add(Ze), t.Proj.projections.add(ih), t.Proj.projections.add(oh), t.Proj.projections.add(vh), t.Proj.projections.add(bh), t.Proj.projections.add(ph), t.Proj.projections.add(Nh), t.Proj.projections.add(kh), t.Proj.projections.add(qh), t.Proj.projections.add(Uh), t.Proj.projections.add(Zh), t.Proj.projections.add(ir);
2402
+ t.Proj.projections.add(li), t.Proj.projections.add(Rt), t.Proj.projections.add(wi), t.Proj.projections.add(Bi), t.Proj.projections.add(Oi), t.Proj.projections.add(ji), t.Proj.projections.add(Qi), t.Proj.projections.add(Zi), t.Proj.projections.add(ie), t.Proj.projections.add(oe), t.Proj.projections.add(Re), t.Proj.projections.add(Be), t.Proj.projections.add($e), t.Proj.projections.add(je), t.Proj.projections.add(Qe), t.Proj.projections.add(Ze), t.Proj.projections.add(ih), t.Proj.projections.add(oh), t.Proj.projections.add(vh), t.Proj.projections.add(bh), t.Proj.projections.add(ph), t.Proj.projections.add(Ah), t.Proj.projections.add(kh), t.Proj.projections.add(qh), t.Proj.projections.add(Uh), t.Proj.projections.add(Zh), t.Proj.projections.add(ir);
2403
2403
  }
2404
2404
  q.defaultDatum = "WGS84";
2405
2405
  q.Proj = H;
@@ -2433,9 +2433,9 @@ class hr {
2433
2433
  return this._projection.inverse(s);
2434
2434
  }
2435
2435
  }
2436
- const Ot = 100, fs = !1;
2436
+ const $t = 100, fs = !1;
2437
2437
  function rr(t) {
2438
- const s = new DataView(t, 0, Ot), i = _s(s).length - Ot, e = new DataView(t, Ot, i), h = new Int32Array(i), r = new Int32Array(i);
2438
+ const s = new DataView(t, 0, $t), i = _s(s).length - $t, e = new DataView(t, $t, i), h = new Int32Array(i), r = new Int32Array(i);
2439
2439
  for (let n = 0; n < i / 8; n++)
2440
2440
  h[n] = e.getInt32(n * 8, fs), r[n] = e.getInt32(n * 8 + 4, fs);
2441
2441
  return {
@@ -2471,12 +2471,12 @@ function or(t, s) {
2471
2471
  const i = [t.slice(0, a), s.slice(0, a)];
2472
2472
  return t.splice(0, a), s.splice(0, a), i;
2473
2473
  }
2474
- const $t = !0, us = 32;
2474
+ const Ot = !0, us = 32;
2475
2475
  var L;
2476
2476
  (function(t) {
2477
2477
  t[t.START = 0] = "START", t[t.FIELD_DESCRIPTORS = 1] = "FIELD_DESCRIPTORS", t[t.FIELD_PROPERTIES = 2] = "FIELD_PROPERTIES", t[t.END = 3] = "END", t[t.ERROR = 4] = "ERROR";
2478
2478
  })(L || (L = {}));
2479
- let Os = class {
2479
+ let $s = class {
2480
2480
  binaryReader = new zt();
2481
2481
  textDecoder;
2482
2482
  state = L.START;
@@ -2497,7 +2497,7 @@ let Os = class {
2497
2497
  }
2498
2498
  };
2499
2499
  function Ms(t, s = {}) {
2500
- const { encoding: a = "latin1" } = s.dbf || {}, i = new Os({ encoding: a });
2500
+ const { encoding: a = "latin1" } = s.dbf || {}, i = new $s({ encoding: a });
2501
2501
  i.write(t), i.end();
2502
2502
  const { data: e, schema: h } = i.result;
2503
2503
  switch (s?.dbf?.shape) {
@@ -2515,7 +2515,7 @@ function Ms(t, s = {}) {
2515
2515
  }
2516
2516
  }
2517
2517
  async function* lr(t, s = {}) {
2518
- const { encoding: a = "latin1" } = s.dbf || {}, i = new Os({ encoding: a });
2518
+ const { encoding: a = "latin1" } = s.dbf || {}, i = new $s({ encoding: a });
2519
2519
  let e = !1;
2520
2520
  for await (const h of Bt(t))
2521
2521
  i.write(h), !e && i.result.dbfHeader && (e = !0, yield i.result.dbfHeader), i.result.data.length > 0 && (yield i.result.data, i.result.data = []);
@@ -2576,11 +2576,11 @@ function cr(t) {
2576
2576
  month: t.getUint8(2),
2577
2577
  day: t.getUint8(3),
2578
2578
  // Number of records in data file
2579
- nRecords: t.getUint32(4, $t),
2579
+ nRecords: t.getUint32(4, Ot),
2580
2580
  // Length of header in bytes
2581
- headerLength: t.getUint16(8, $t),
2581
+ headerLength: t.getUint16(8, Ot),
2582
2582
  // Length of each record
2583
- recordLength: t.getUint16(10, $t),
2583
+ recordLength: t.getUint16(10, Ot),
2584
2584
  // Not sure if this is usually set
2585
2585
  languageDriver: t.getUint8(29)
2586
2586
  };
@@ -2677,7 +2677,7 @@ const gr = "4.4.3", br = {
2677
2677
  encoding: "latin1"
2678
2678
  }
2679
2679
  }
2680
- }, $s = {
2680
+ }, Os = {
2681
2681
  ...br,
2682
2682
  parse: async (t, s) => Ms(t, s),
2683
2683
  parseSync: Ms,
@@ -2690,7 +2690,7 @@ async function* _r(t, s, a) {
2690
2690
  let c = null;
2691
2691
  const f = await a?.fetch(ft(a?.url || "", "dbf"));
2692
2692
  if (f?.ok) {
2693
- const g = await Xt(f, $s, {
2693
+ const g = await Xt(f, Os, {
2694
2694
  ...s,
2695
2695
  dbf: {
2696
2696
  ...s?.dbf,
@@ -2735,7 +2735,7 @@ async function xr(t, s, a) {
2735
2735
  encoding: r || "latin1"
2736
2736
  }
2737
2737
  };
2738
- f = await Yt(u, $s, d, a);
2738
+ f = await Yt(u, Os, d, a);
2739
2739
  }
2740
2740
  let v = qs(c, f?.data || []);
2741
2741
  switch (i && (v = Fs(v, n, e)), s?.shapefile?.shape) {
@@ -2838,14 +2838,14 @@ const pr = "4.4.3", jr = {
2838
2838
  // @ts-expect-error
2839
2839
  parseInBatches: _r
2840
2840
  }, Tt = !0, ds = 32;
2841
- var O;
2841
+ var $;
2842
2842
  (function(t) {
2843
2843
  t[t.START = 0] = "START", t[t.FIELD_DESCRIPTORS = 1] = "FIELD_DESCRIPTORS", t[t.FIELD_PROPERTIES = 2] = "FIELD_PROPERTIES", t[t.END = 3] = "END", t[t.ERROR = 4] = "ERROR";
2844
- })(O || (O = {}));
2844
+ })($ || ($ = {}));
2845
2845
  class js {
2846
2846
  binaryReader = new zt();
2847
2847
  textDecoder;
2848
- state = O.START;
2848
+ state = $.START;
2849
2849
  result = {};
2850
2850
  constructor(s) {
2851
2851
  this.textDecoder = new TextDecoder(s.encoding);
@@ -2857,7 +2857,7 @@ class js {
2857
2857
  this.binaryReader.write(s), this.state = ms(this.state, this.result, this.binaryReader, this.textDecoder);
2858
2858
  }
2859
2859
  end() {
2860
- this.binaryReader.end(), this.state = ms(this.state, this.result, this.binaryReader, this.textDecoder), this.state !== O.END && (this.state = O.ERROR, this.result.error = "DBF incomplete file");
2860
+ this.binaryReader.end(), this.state = ms(this.state, this.result, this.binaryReader, this.textDecoder), this.state !== $.END && (this.state = $.ERROR, this.result.error = "DBF incomplete file");
2861
2861
  }
2862
2862
  }
2863
2863
  function ys(t, s = {}) {
@@ -2884,10 +2884,10 @@ function ms(t, s, a, i) {
2884
2884
  for (; ; )
2885
2885
  try {
2886
2886
  switch (t) {
2887
- case O.ERROR:
2888
- case O.END:
2887
+ case $.ERROR:
2888
+ case $.END:
2889
2889
  return t;
2890
- case O.START:
2890
+ case $.START:
2891
2891
  const e = a.getDataView(ds);
2892
2892
  if (!e)
2893
2893
  return t;
@@ -2895,9 +2895,9 @@ function ms(t, s, a, i) {
2895
2895
  bytesUsed: 0,
2896
2896
  rowsTotal: s.dbfHeader.nRecords,
2897
2897
  rows: 0
2898
- }, t = O.FIELD_DESCRIPTORS;
2898
+ }, t = $.FIELD_DESCRIPTORS;
2899
2899
  break;
2900
- case O.FIELD_DESCRIPTORS:
2900
+ case $.FIELD_DESCRIPTORS:
2901
2901
  const h = a.getDataView(
2902
2902
  // @ts-ignore
2903
2903
  s.dbfHeader.headerLength - ds
@@ -2909,9 +2909,9 @@ function ms(t, s, a, i) {
2909
2909
  fields: s.dbfFields.map((c) => Dr(c)),
2910
2910
  metadata: {}
2911
2911
  };
2912
- s.tableBuilder = new Js(r), t = O.FIELD_PROPERTIES, a.skip(1);
2912
+ s.tableBuilder = new Js(r), t = $.FIELD_PROPERTIES, a.skip(1);
2913
2913
  break;
2914
- case O.FIELD_PROPERTIES:
2914
+ case $.FIELD_PROPERTIES:
2915
2915
  const { recordLength: n = 0, nRecords: o = 0 } = s?.dbfHeader || {};
2916
2916
  let l = 0;
2917
2917
  for (; l < o; ) {
@@ -2923,13 +2923,13 @@ function ms(t, s, a, i) {
2923
2923
  const f = Sr(c, s.dbfFields, i);
2924
2924
  s.tableBuilder.addObjectRow(f);
2925
2925
  }
2926
- t = O.END;
2926
+ t = $.END;
2927
2927
  break;
2928
2928
  default:
2929
- return t = O.ERROR, s.error = `illegal parser state ${t}`, t;
2929
+ return t = $.ERROR, s.error = `illegal parser state ${t}`, t;
2930
2930
  }
2931
2931
  } catch (e) {
2932
- return t = O.ERROR, s.error = `DBF parsing failed: ${e.message}`, t;
2932
+ return t = $.ERROR, s.error = `DBF parsing failed: ${e.message}`, t;
2933
2933
  }
2934
2934
  }
2935
2935
  function Ir(t) {
@@ -2967,11 +2967,11 @@ function Sr(t, s, a) {
2967
2967
  let e = 0;
2968
2968
  for (const h of s) {
2969
2969
  const r = a.decode(new Uint8Array(t.buffer, t.byteOffset + e, h.fieldLength));
2970
- i[h.name] = Nr(r, h.dataType), e += h.fieldLength;
2970
+ i[h.name] = Ar(r, h.dataType), e += h.fieldLength;
2971
2971
  }
2972
2972
  return i;
2973
2973
  }
2974
- function Nr(t, s) {
2974
+ function Ar(t, s) {
2975
2975
  switch (s) {
2976
2976
  case "B":
2977
2977
  return Et(t);
@@ -2984,14 +2984,14 @@ function Nr(t, s) {
2984
2984
  case "O":
2985
2985
  return Et(t);
2986
2986
  case "D":
2987
- return Ar(t);
2987
+ return Nr(t);
2988
2988
  case "L":
2989
2989
  return Br(t);
2990
2990
  default:
2991
2991
  throw new Error("Unsupported data type");
2992
2992
  }
2993
2993
  }
2994
- function Ar(t) {
2994
+ function Nr(t) {
2995
2995
  return Date.UTC(t.slice(0, 4), parseInt(t.slice(4, 6), 10) - 1, t.slice(6, 8));
2996
2996
  }
2997
2997
  function Br(t) {
@@ -3031,7 +3031,7 @@ const kr = {
3031
3031
  category: "table",
3032
3032
  extensions: ["dbf"],
3033
3033
  mimeTypes: ["application/x-dbf"]
3034
- }, Lr = "4.4.3", Or = {
3034
+ }, Lr = "4.4.3", $r = {
3035
3035
  ...kr,
3036
3036
  dataType: null,
3037
3037
  batchType: null,
@@ -3043,7 +3043,7 @@ const kr = {
3043
3043
  }
3044
3044
  }
3045
3045
  }, zr = {
3046
- ...Or,
3046
+ ...$r,
3047
3047
  parse: async (t, s) => ys(t, s),
3048
3048
  parseSync: ys,
3049
3049
  parseInBatches(t, s) {
@@ -3096,8 +3096,8 @@ class Ur {
3096
3096
  }
3097
3097
  export {
3098
3098
  zr as DBFArrowLoader,
3099
- Or as DBFArrowWorkerLoader,
3100
- $s as DBFLoader,
3099
+ $r as DBFArrowWorkerLoader,
3100
+ Os as DBFLoader,
3101
3101
  br as DBFWorkerLoader,
3102
3102
  ps as SHPLoader,
3103
3103
  fa as SHPWorkerLoader,