@performant-software/geospatial 2.1.0-beta.5 → 2.1.0-beta.6

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 (75) hide show
  1. package/dist/index.cjs10.js +1 -1
  2. package/dist/index.cjs13.js +1 -1
  3. package/dist/index.cjs236.js +1 -1
  4. package/dist/index.cjs238.js +1 -1
  5. package/dist/index.cjs242.js +1 -1
  6. package/dist/index.cjs243.js +1 -1
  7. package/dist/index.cjs246.js +1 -1
  8. package/dist/index.cjs249.js +1 -1
  9. package/dist/index.cjs249.js.map +1 -1
  10. package/dist/index.cjs250.js +1 -1
  11. package/dist/index.cjs250.js.map +1 -1
  12. package/dist/index.cjs251.js +1 -1
  13. package/dist/index.cjs251.js.map +1 -1
  14. package/dist/index.cjs252.js +1 -1
  15. package/dist/index.cjs252.js.map +1 -1
  16. package/dist/index.cjs42.js +1 -1
  17. package/dist/index.cjs43.js +1 -1
  18. package/dist/index.cjs46.js +1 -1
  19. package/dist/index.cjs5.js +1 -1
  20. package/dist/index.cjs5.js.map +1 -1
  21. package/dist/index.cjs52.js +1 -1
  22. package/dist/index.cjs53.js +9 -1
  23. package/dist/index.cjs53.js.map +1 -1
  24. package/dist/index.cjs54.js +19 -1
  25. package/dist/index.cjs54.js.map +1 -1
  26. package/dist/index.cjs55.js +1 -9
  27. package/dist/index.cjs55.js.map +1 -1
  28. package/dist/index.cjs56.js +1 -19
  29. package/dist/index.cjs56.js.map +1 -1
  30. package/dist/index.cjs57.js +1 -1
  31. package/dist/index.cjs57.js.map +1 -1
  32. package/dist/index.cjs58.js +1 -1
  33. package/dist/index.cjs58.js.map +1 -1
  34. package/dist/index.cjs59.js +1 -1
  35. package/dist/index.cjs59.js.map +1 -1
  36. package/dist/index.es10.js +2 -2
  37. package/dist/index.es13.js +3 -3
  38. package/dist/index.es236.js +1 -1
  39. package/dist/index.es238.js +1 -1
  40. package/dist/index.es242.js +1 -1
  41. package/dist/index.es243.js +2 -2
  42. package/dist/index.es246.js +1 -1
  43. package/dist/index.es249.js +70 -2
  44. package/dist/index.es249.js.map +1 -1
  45. package/dist/index.es250.js +4 -15
  46. package/dist/index.es250.js.map +1 -1
  47. package/dist/index.es251.js +15 -4
  48. package/dist/index.es251.js.map +1 -1
  49. package/dist/index.es252.js +2 -70
  50. package/dist/index.es252.js.map +1 -1
  51. package/dist/index.es42.js +2 -2
  52. package/dist/index.es43.js +2 -2
  53. package/dist/index.es46.js +2 -2
  54. package/dist/index.es5.js +7 -6
  55. package/dist/index.es5.js.map +1 -1
  56. package/dist/index.es52.js +2 -6
  57. package/dist/index.es52.js.map +1 -1
  58. package/dist/index.es53.js +30 -2
  59. package/dist/index.es53.js.map +1 -1
  60. package/dist/index.es54.js +602 -2
  61. package/dist/index.es54.js.map +1 -1
  62. package/dist/index.es55.js +5 -29
  63. package/dist/index.es55.js.map +1 -1
  64. package/dist/index.es56.js +2 -602
  65. package/dist/index.es56.js.map +1 -1
  66. package/dist/index.es57.js +2 -107
  67. package/dist/index.es57.js.map +1 -1
  68. package/dist/index.es58.js +107 -10
  69. package/dist/index.es58.js.map +1 -1
  70. package/dist/index.es59.js +10 -2
  71. package/dist/index.es59.js.map +1 -1
  72. package/dist/style.css +1 -1
  73. package/package.json +1 -1
  74. package/src/components/LocationMarkers.js +6 -0
  75. package/types/components/LocationMarkers.js.flow +6 -0
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs59.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.cjs59.js","sources":["../../../node_modules/react-icons/lib/iconContext.mjs"],"sourcesContent":["import React from \"react\";\nexport var DefaultContext = {\n color: undefined,\n size: undefined,\n className: undefined,\n style: undefined,\n attr: undefined\n};\nexport var IconContext = React.createContext && /*#__PURE__*/React.createContext(DefaultContext);"],"names":["DefaultContext","IconContext","React"],"mappings":"yGACU,IAACA,EAAiB,CAC1B,MAAO,OACP,KAAM,OACN,UAAW,OACX,MAAO,OACP,KAAM,MACR,EACWC,EAAcC,EAAM,eAA8BA,EAAM,cAAcF,CAAc","x_google_ignoreList":[0]}
@@ -1,5 +1,5 @@
1
- import { commonjsGlobal as Je, getDefaultExportFromCjs as oo } from "./index.es52.js";
2
- import { __module as Zn } from "./index.es53.js";
1
+ import { commonjsGlobal as Je, getDefaultExportFromCjs as oo } from "./index.es55.js";
2
+ import { __module as Zn } from "./index.es56.js";
3
3
  (function(Wn, ao) {
4
4
  (function(ze, de) {
5
5
  Wn.exports = de();
@@ -1,6 +1,6 @@
1
- import { __module as e } from "./index.es54.js";
2
- import { __require as r } from "./index.es55.js";
3
- import { __require as o } from "./index.es56.js";
1
+ import { __module as e } from "./index.es52.js";
2
+ import { __require as r } from "./index.es53.js";
3
+ import { __require as o } from "./index.es54.js";
4
4
  process.env.NODE_ENV === "production" ? e.exports = r() : e.exports = o();
5
5
  var m = e.exports;
6
6
  export {
@@ -1,4 +1,4 @@
1
- import o from "./index.es249.js";
1
+ import o from "./index.es252.js";
2
2
  function e() {
3
3
  var n = [], t;
4
4
  return {
@@ -1,4 +1,4 @@
1
- import a from "./index.es251.js";
1
+ import a from "./index.es250.js";
2
2
  function g(f, v, h, o) {
3
3
  this.x = f, this.z = v, this.o = h, this.e = o, this.v = !1, this.n = this.p = null;
4
4
  }
@@ -1,4 +1,4 @@
1
- import L from "./index.es252.js";
1
+ import L from "./index.es249.js";
2
2
  import { pi as f, halfPi as A, abs as N, epsilon as l, atan as P, sin as v, cos as S } from "./index.es234.js";
3
3
  const j = L(
4
4
  function() {
@@ -1,8 +1,8 @@
1
1
  import { cartesian as Q, cartesianCross as T, cartesianDot as R, cartesianScale as g, cartesianAddInPlace as y, spherical as U } from "./index.es233.js";
2
2
  import { circleStream as $ } from "./index.es232.js";
3
3
  import { pi as v, cos as F, epsilon as x, abs as G, sqrt as b } from "./index.es234.js";
4
- import J from "./index.es251.js";
5
- import m from "./index.es252.js";
4
+ import J from "./index.es250.js";
5
+ import m from "./index.es249.js";
6
6
  function fn(S, V) {
7
7
  var A = F(S), C = A > 0, W = G(A) > x;
8
8
  function X(n, i, o, e) {
@@ -1,5 +1,5 @@
1
1
  import c from "./index.es248.js";
2
- import n from "./index.es250.js";
2
+ import n from "./index.es251.js";
3
3
  function S(l, a, r) {
4
4
  var f = a[1][0] - a[0][0], m = a[1][1] - a[0][1], i = l.clipExtent && l.clipExtent();
5
5
  l.scale(150).translate([0, 0]), i != null && l.clipExtent(null), c(r, l.stream(n));
@@ -1,6 +1,74 @@
1
- function o() {
1
+ import A from "./index.es236.js";
2
+ import D from "./index.es238.js";
3
+ import { halfPi as S, epsilon as R } from "./index.es234.js";
4
+ import F from "./index.es183.js";
5
+ import "./index.es182.js";
6
+ import G from "./index.es239.js";
7
+ function T(e, p, m, v) {
8
+ return function(g, n) {
9
+ var d = p(n), j = g.invert(v[0], v[1]), h = A(), c = p(h), l = !1, a, f, u, r = {
10
+ point: y,
11
+ lineStart: x,
12
+ lineEnd: s,
13
+ polygonStart: function() {
14
+ r.point = B, r.lineStart = w, r.lineEnd = z, f = [], a = [];
15
+ },
16
+ polygonEnd: function() {
17
+ r.point = y, r.lineStart = x, r.lineEnd = s, f = G(f);
18
+ var o = F(a, j);
19
+ f.length ? (l || (n.polygonStart(), l = !0), D(f, J, o, m, n)) : o && (l || (n.polygonStart(), l = !0), n.lineStart(), m(null, null, 1, n), n.lineEnd()), l && (n.polygonEnd(), l = !1), f = a = null;
20
+ },
21
+ sphere: function() {
22
+ n.polygonStart(), n.lineStart(), m(null, null, 1, n), n.lineEnd(), n.polygonEnd();
23
+ }
24
+ };
25
+ function y(o, t) {
26
+ var i = g(o, t);
27
+ e(o = i[0], t = i[1]) && n.point(o, t);
28
+ }
29
+ function q(o, t) {
30
+ var i = g(o, t);
31
+ d.point(i[0], i[1]);
32
+ }
33
+ function x() {
34
+ r.point = q, d.lineStart();
35
+ }
36
+ function s() {
37
+ r.point = y, d.lineEnd();
38
+ }
39
+ function B(o, t) {
40
+ u.push([o, t]);
41
+ var i = g(o, t);
42
+ c.point(i[0], i[1]);
43
+ }
44
+ function w() {
45
+ c.lineStart(), u = [];
46
+ }
47
+ function z() {
48
+ B(u[0][0], u[0][1]), c.lineEnd();
49
+ var o = c.clean(), t = h.result(), i, I = t.length, P, E, C;
50
+ if (u.pop(), a.push(u), u = null, !!I) {
51
+ if (o & 1) {
52
+ if (E = t[0], (P = E.length - 1) > 0) {
53
+ for (l || (n.polygonStart(), l = !0), n.lineStart(), i = 0; i < P; ++i)
54
+ n.point((C = E[i])[0], C[1]);
55
+ n.lineEnd();
56
+ }
57
+ return;
58
+ }
59
+ I > 1 && o & 2 && t.push(t.pop().concat(t.shift())), f.push(t.filter(H));
60
+ }
61
+ }
62
+ return r;
63
+ };
64
+ }
65
+ function H(e) {
66
+ return e.length > 1;
67
+ }
68
+ function J(e, p) {
69
+ return ((e = e.x)[0] < 0 ? e[1] - S - R : S - e[1]) - ((p = p.x)[0] < 0 ? p[1] - S - R : S - p[1]);
2
70
  }
3
71
  export {
4
- o as default
72
+ T as default
5
73
  };
6
74
  //# sourceMappingURL=index.es249.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es249.js","sources":["../../../node_modules/d3-geo/src/noop.js"],"sourcesContent":["export default function noop() {}\n"],"names":["noop"],"mappings":"AAAA,SAAwBA,IAAO;AAAC;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es249.js","sources":["../../../node_modules/d3-geo/src/clip/index.js"],"sourcesContent":["import clipBuffer from \"./buffer\";\nimport clipPolygon from \"./polygon\";\nimport {epsilon, halfPi} from \"../math\";\nimport polygonContains from \"../polygonContains\";\nimport {merge} from \"d3-array\";\n\nexport default function(pointVisible, clipLine, interpolate, start) {\n return function(rotate, sink) {\n var line = clipLine(sink),\n rotatedStart = rotate.invert(start[0], start[1]),\n ringBuffer = clipBuffer(),\n ringSink = clipLine(ringBuffer),\n polygonStarted = false,\n polygon,\n segments,\n ring;\n\n var clip = {\n point: point,\n lineStart: lineStart,\n lineEnd: lineEnd,\n polygonStart: function() {\n clip.point = pointRing;\n clip.lineStart = ringStart;\n clip.lineEnd = ringEnd;\n segments = [];\n polygon = [];\n },\n polygonEnd: function() {\n clip.point = point;\n clip.lineStart = lineStart;\n clip.lineEnd = lineEnd;\n segments = merge(segments);\n var startInside = polygonContains(polygon, rotatedStart);\n if (segments.length) {\n if (!polygonStarted) sink.polygonStart(), polygonStarted = true;\n clipPolygon(segments, compareIntersection, startInside, interpolate, sink);\n } else if (startInside) {\n if (!polygonStarted) sink.polygonStart(), polygonStarted = true;\n sink.lineStart();\n interpolate(null, null, 1, sink);\n sink.lineEnd();\n }\n if (polygonStarted) sink.polygonEnd(), polygonStarted = false;\n segments = polygon = null;\n },\n sphere: function() {\n sink.polygonStart();\n sink.lineStart();\n interpolate(null, null, 1, sink);\n sink.lineEnd();\n sink.polygonEnd();\n }\n };\n\n function point(lambda, phi) {\n var point = rotate(lambda, phi);\n if (pointVisible(lambda = point[0], phi = point[1])) sink.point(lambda, phi);\n }\n\n function pointLine(lambda, phi) {\n var point = rotate(lambda, phi);\n line.point(point[0], point[1]);\n }\n\n function lineStart() {\n clip.point = pointLine;\n line.lineStart();\n }\n\n function lineEnd() {\n clip.point = point;\n line.lineEnd();\n }\n\n function pointRing(lambda, phi) {\n ring.push([lambda, phi]);\n var point = rotate(lambda, phi);\n ringSink.point(point[0], point[1]);\n }\n\n function ringStart() {\n ringSink.lineStart();\n ring = [];\n }\n\n function ringEnd() {\n pointRing(ring[0][0], ring[0][1]);\n ringSink.lineEnd();\n\n var clean = ringSink.clean(),\n ringSegments = ringBuffer.result(),\n i, n = ringSegments.length, m,\n segment,\n point;\n\n ring.pop();\n polygon.push(ring);\n ring = null;\n\n if (!n) return;\n\n // No intersections.\n if (clean & 1) {\n segment = ringSegments[0];\n if ((m = segment.length - 1) > 0) {\n if (!polygonStarted) sink.polygonStart(), polygonStarted = true;\n sink.lineStart();\n for (i = 0; i < m; ++i) sink.point((point = segment[i])[0], point[1]);\n sink.lineEnd();\n }\n return;\n }\n\n // Rejoin connected segments.\n // TODO reuse ringBuffer.rejoin()?\n if (n > 1 && clean & 2) ringSegments.push(ringSegments.pop().concat(ringSegments.shift()));\n\n segments.push(ringSegments.filter(validSegment));\n }\n\n return clip;\n };\n}\n\nfunction validSegment(segment) {\n return segment.length > 1;\n}\n\n// Intersections are sorted along the clip edge. For both antimeridian cutting\n// and circle clipping, the same comparison is used.\nfunction compareIntersection(a, b) {\n return ((a = a.x)[0] < 0 ? a[1] - halfPi - epsilon : halfPi - a[1])\n - ((b = b.x)[0] < 0 ? b[1] - halfPi - epsilon : halfPi - b[1]);\n}\n"],"names":["clip","pointVisible","clipLine","interpolate","start","rotate","sink","line","rotatedStart","ringBuffer","clipBuffer","ringSink","polygonStarted","polygon","segments","ring","point","lineStart","lineEnd","pointRing","ringStart","ringEnd","merge","startInside","polygonContains","clipPolygon","compareIntersection","lambda","phi","pointLine","clean","ringSegments","n","m","segment","validSegment","a","b","halfPi","epsilon"],"mappings":";;;;;;AAMwB,SAAAA,EAAAC,GAAcC,GAAUC,GAAaC,GAAO;AAC3D,SAAA,SAASC,GAAQC,GAAM;AACxB,QAAAC,IAAOL,EAASI,CAAI,GACpBE,IAAeH,EAAO,OAAOD,EAAM,CAAC,GAAGA,EAAM,CAAC,CAAC,GAC/CK,IAAaC,EAAW,GACxBC,IAAWT,EAASO,CAAU,GAC9BG,IAAiB,IACjBC,GACAC,GACAC,GAEAf,IAAO;AAAA,MACT,OAAAgB;AAAA,MACA,WAAAC;AAAA,MACA,SAAAC;AAAA,MACA,cAAc,WAAW;AACvB,QAAAlB,EAAK,QAAQmB,GACbnB,EAAK,YAAYoB,GACjBpB,EAAK,UAAUqB,GACfP,IAAW,CAAA,GACXD,IAAU,CAAA;AAAA,MACZ;AAAA,MACA,YAAY,WAAW;AACrB,QAAAb,EAAK,QAAQgB,GACbhB,EAAK,YAAYiB,GACjBjB,EAAK,UAAUkB,GACfJ,IAAWQ,EAAMR,CAAQ;A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AAUD,IAASD,EAAE,CAAC;AACnE;","x_google_ignoreList":[0]}
@@ -1,19 +1,8 @@
1
- import r from "./index.es249.js";
2
- var o = 1 / 0, f = o, t = -o, a = t, d = {
3
- point: u,
4
- lineStart: r,
5
- lineEnd: r,
6
- polygonStart: r,
7
- polygonEnd: r,
8
- result: function() {
9
- var n = [[o, f], [t, a]];
10
- return t = a = -(f = o = 1 / 0), n;
11
- }
12
- };
13
- function u(n, i) {
14
- n < o && (o = n), n > t && (t = n), i < f && (f = i), i > a && (a = i);
1
+ import { abs as n, epsilon as r } from "./index.es234.js";
2
+ function i(o, t) {
3
+ return n(o[0] - t[0]) < r && n(o[1] - t[1]) < r;
15
4
  }
16
5
  export {
17
- d as default
6
+ i as default
18
7
  };
19
8
  //# sourceMappingURL=index.es250.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es250.js","sources":["../../../node_modules/d3-geo/src/path/bounds.js"],"sourcesContent":["import noop from \"../noop\";\n\nvar x0 = Infinity,\n y0 = x0,\n x1 = -x0,\n y1 = x1;\n\nvar boundsStream = {\n point: boundsPoint,\n lineStart: noop,\n lineEnd: noop,\n polygonStart: noop,\n polygonEnd: noop,\n result: function() {\n var bounds = [[x0, y0], [x1, y1]];\n x1 = y1 = -(y0 = x0 = Infinity);\n return bounds;\n }\n};\n\nfunction boundsPoint(x, y) {\n if (x < x0) x0 = x;\n if (x > x1) x1 = x;\n if (y < y0) y0 = y;\n if (y > y1) y1 = y;\n}\n\nexport default boundsStream;\n"],"names":["x0","y0","x1","y1","boundsStream","boundsPoint","noop","bounds","x","y"],"mappings":";AAEA,IAAIA,IAAK,OACLC,IAAKD,GACLE,IAAK,CAACF,GACNG,IAAKD,GAELE,IAAe;AAAA,EACjB,OAAOC;AAAA,EACP,WAAWC;AAAA,EACX,SAASA;AAAA,EACT,cAAcA;AAAA,EACd,YAAYA;AAAA,EACZ,QAAQ,WAAW;AACb,QAAAC,IAAS,CAAC,CAACP,GAAIC,CAAE,GAAG,CAACC,GAAIC,CAAE,CAAC;AAC3B,WAAAD,IAAAC,IAAK,EAAEF,IAAKD,IAAK,QACfO;AAAA,EACT;AACF;AAEA,SAASF,EAAYG,GAAGC,GAAG;AACzB,EAAID,IAAIR,MAASA,IAAAQ,IACbA,IAAIN,MAASA,IAAAM,IACbC,IAAIR,MAASA,IAAAQ,IACbA,IAAIN,MAASA,IAAAM;AACnB;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es250.js","sources":["../../../node_modules/d3-geo/src/pointEqual.js"],"sourcesContent":["import {abs, epsilon} from \"./math\";\n\nexport default function(a, b) {\n return abs(a[0] - b[0]) < epsilon && abs(a[1] - b[1]) < epsilon;\n}\n"],"names":["pointEqual","a","b","abs","epsilon"],"mappings":";AAEA,SAAAA,EAAwBC,GAAGC,GAAG;AAC5B,SAAOC,EAAIF,EAAE,CAAC,IAAIC,EAAE,CAAC,CAAC,IAAIE,KAAWD,EAAIF,EAAE,CAAC,IAAIC,EAAE,CAAC,CAAC,IAAIE;AAC1D;","x_google_ignoreList":[0]}
@@ -1,8 +1,19 @@
1
- import { abs as n, epsilon as r } from "./index.es234.js";
2
- function i(o, t) {
3
- return n(o[0] - t[0]) < r && n(o[1] - t[1]) < r;
1
+ import r from "./index.es252.js";
2
+ var o = 1 / 0, f = o, t = -o, a = t, d = {
3
+ point: u,
4
+ lineStart: r,
5
+ lineEnd: r,
6
+ polygonStart: r,
7
+ polygonEnd: r,
8
+ result: function() {
9
+ var n = [[o, f], [t, a]];
10
+ return t = a = -(f = o = 1 / 0), n;
11
+ }
12
+ };
13
+ function u(n, i) {
14
+ n < o && (o = n), n > t && (t = n), i < f && (f = i), i > a && (a = i);
4
15
  }
5
16
  export {
6
- i as default
17
+ d as default
7
18
  };
8
19
  //# sourceMappingURL=index.es251.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es251.js","sources":["../../../node_modules/d3-geo/src/pointEqual.js"],"sourcesContent":["import {abs, epsilon} from \"./math\";\n\nexport default function(a, b) {\n return abs(a[0] - b[0]) < epsilon && abs(a[1] - b[1]) < epsilon;\n}\n"],"names":["pointEqual","a","b","abs","epsilon"],"mappings":";AAEA,SAAAA,EAAwBC,GAAGC,GAAG;AAC5B,SAAOC,EAAIF,EAAE,CAAC,IAAIC,EAAE,CAAC,CAAC,IAAIE,KAAWD,EAAIF,EAAE,CAAC,IAAIC,EAAE,CAAC,CAAC,IAAIE;AAC1D;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es251.js","sources":["../../../node_modules/d3-geo/src/path/bounds.js"],"sourcesContent":["import noop from \"../noop\";\n\nvar x0 = Infinity,\n y0 = x0,\n x1 = -x0,\n y1 = x1;\n\nvar boundsStream = {\n point: boundsPoint,\n lineStart: noop,\n lineEnd: noop,\n polygonStart: noop,\n polygonEnd: noop,\n result: function() {\n var bounds = [[x0, y0], [x1, y1]];\n x1 = y1 = -(y0 = x0 = Infinity);\n return bounds;\n }\n};\n\nfunction boundsPoint(x, y) {\n if (x < x0) x0 = x;\n if (x > x1) x1 = x;\n if (y < y0) y0 = y;\n if (y > y1) y1 = y;\n}\n\nexport default boundsStream;\n"],"names":["x0","y0","x1","y1","boundsStream","boundsPoint","noop","bounds","x","y"],"mappings":";AAEA,IAAIA,IAAK,OACLC,IAAKD,GACLE,IAAK,CAACF,GACNG,IAAKD,GAELE,IAAe;AAAA,EACjB,OAAOC;AAAA,EACP,WAAWC;AAAA,EACX,SAASA;AAAA,EACT,cAAcA;AAAA,EACd,YAAYA;AAAA,EACZ,QAAQ,WAAW;AACb,QAAAC,IAAS,CAAC,CAACP,GAAIC,CAAE,GAAG,CAACC,GAAIC,CAAE,CAAC;AAC3B,WAAAD,IAAAC,IAAK,EAAEF,IAAKD,IAAK,QACfO;AAAA,EACT;AACF;AAEA,SAASF,EAAYG,GAAGC,GAAG;AACzB,EAAID,IAAIR,MAASA,IAAAQ,IACbA,IAAIN,MAASA,IAAAM,IACbC,IAAIR,MAASA,IAAAQ,IACbA,IAAIN,MAASA,IAAAM;AACnB;","x_google_ignoreList":[0]}
@@ -1,74 +1,6 @@
1
- import A from "./index.es236.js";
2
- import D from "./index.es238.js";
3
- import { halfPi as S, epsilon as R } from "./index.es234.js";
4
- import F from "./index.es183.js";
5
- import "./index.es182.js";
6
- import G from "./index.es239.js";
7
- function T(e, p, m, v) {
8
- return function(g, n) {
9
- var d = p(n), j = g.invert(v[0], v[1]), h = A(), c = p(h), l = !1, a, f, u, r = {
10
- point: y,
11
- lineStart: x,
12
- lineEnd: s,
13
- polygonStart: function() {
14
- r.point = B, r.lineStart = w, r.lineEnd = z, f = [], a = [];
15
- },
16
- polygonEnd: function() {
17
- r.point = y, r.lineStart = x, r.lineEnd = s, f = G(f);
18
- var o = F(a, j);
19
- f.length ? (l || (n.polygonStart(), l = !0), D(f, J, o, m, n)) : o && (l || (n.polygonStart(), l = !0), n.lineStart(), m(null, null, 1, n), n.lineEnd()), l && (n.polygonEnd(), l = !1), f = a = null;
20
- },
21
- sphere: function() {
22
- n.polygonStart(), n.lineStart(), m(null, null, 1, n), n.lineEnd(), n.polygonEnd();
23
- }
24
- };
25
- function y(o, t) {
26
- var i = g(o, t);
27
- e(o = i[0], t = i[1]) && n.point(o, t);
28
- }
29
- function q(o, t) {
30
- var i = g(o, t);
31
- d.point(i[0], i[1]);
32
- }
33
- function x() {
34
- r.point = q, d.lineStart();
35
- }
36
- function s() {
37
- r.point = y, d.lineEnd();
38
- }
39
- function B(o, t) {
40
- u.push([o, t]);
41
- var i = g(o, t);
42
- c.point(i[0], i[1]);
43
- }
44
- function w() {
45
- c.lineStart(), u = [];
46
- }
47
- function z() {
48
- B(u[0][0], u[0][1]), c.lineEnd();
49
- var o = c.clean(), t = h.result(), i, I = t.length, P, E, C;
50
- if (u.pop(), a.push(u), u = null, !!I) {
51
- if (o & 1) {
52
- if (E = t[0], (P = E.length - 1) > 0) {
53
- for (l || (n.polygonStart(), l = !0), n.lineStart(), i = 0; i < P; ++i)
54
- n.point((C = E[i])[0], C[1]);
55
- n.lineEnd();
56
- }
57
- return;
58
- }
59
- I > 1 && o & 2 && t.push(t.pop().concat(t.shift())), f.push(t.filter(H));
60
- }
61
- }
62
- return r;
63
- };
64
- }
65
- function H(e) {
66
- return e.length > 1;
67
- }
68
- function J(e, p) {
69
- return ((e = e.x)[0] < 0 ? e[1] - S - R : S - e[1]) - ((p = p.x)[0] < 0 ? p[1] - S - R : S - p[1]);
1
+ function o() {
70
2
  }
71
3
  export {
72
- T as default
4
+ o as default
73
5
  };
74
6
  //# sourceMappingURL=index.es252.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es252.js","sources":["../../../node_modules/d3-geo/src/clip/index.js"],"sourcesContent":["import clipBuffer from \"./buffer\";\nimport clipPolygon from \"./polygon\";\nimport {epsilon, halfPi} from \"../math\";\nimport polygonContains from \"../polygonContains\";\nimport {merge} from \"d3-array\";\n\nexport default function(pointVisible, clipLine, interpolate, start) {\n return function(rotate, sink) {\n var line = clipLine(sink),\n rotatedStart = rotate.invert(start[0], start[1]),\n ringBuffer = clipBuffer(),\n ringSink = clipLine(ringBuffer),\n polygonStarted = false,\n polygon,\n segments,\n ring;\n\n var clip = {\n point: point,\n lineStart: lineStart,\n lineEnd: lineEnd,\n polygonStart: function() {\n clip.point = pointRing;\n clip.lineStart = ringStart;\n clip.lineEnd = ringEnd;\n segments = [];\n polygon = [];\n },\n polygonEnd: function() {\n clip.point = point;\n clip.lineStart = lineStart;\n clip.lineEnd = lineEnd;\n segments = merge(segments);\n var startInside = polygonContains(polygon, rotatedStart);\n if (segments.length) {\n if (!polygonStarted) sink.polygonStart(), polygonStarted = true;\n clipPolygon(segments, compareIntersection, startInside, interpolate, sink);\n } else if (startInside) {\n if (!polygonStarted) sink.polygonStart(), polygonStarted = true;\n sink.lineStart();\n interpolate(null, null, 1, sink);\n sink.lineEnd();\n }\n if (polygonStarted) sink.polygonEnd(), polygonStarted = false;\n segments = polygon = null;\n },\n sphere: function() {\n sink.polygonStart();\n sink.lineStart();\n interpolate(null, null, 1, sink);\n sink.lineEnd();\n sink.polygonEnd();\n }\n };\n\n function point(lambda, phi) {\n var point = rotate(lambda, phi);\n if (pointVisible(lambda = point[0], phi = point[1])) sink.point(lambda, phi);\n }\n\n function pointLine(lambda, phi) {\n var point = rotate(lambda, phi);\n line.point(point[0], point[1]);\n }\n\n function lineStart() {\n clip.point = pointLine;\n line.lineStart();\n }\n\n function lineEnd() {\n clip.point = point;\n line.lineEnd();\n }\n\n function pointRing(lambda, phi) {\n ring.push([lambda, phi]);\n var point = rotate(lambda, phi);\n ringSink.point(point[0], point[1]);\n }\n\n function ringStart() {\n ringSink.lineStart();\n ring = [];\n }\n\n function ringEnd() {\n pointRing(ring[0][0], ring[0][1]);\n ringSink.lineEnd();\n\n var clean = ringSink.clean(),\n ringSegments = ringBuffer.result(),\n i, n = ringSegments.length, m,\n segment,\n point;\n\n ring.pop();\n polygon.push(ring);\n ring = null;\n\n if (!n) return;\n\n // No intersections.\n if (clean & 1) {\n segment = ringSegments[0];\n if ((m = segment.length - 1) > 0) {\n if (!polygonStarted) sink.polygonStart(), polygonStarted = true;\n sink.lineStart();\n for (i = 0; i < m; ++i) sink.point((point = segment[i])[0], point[1]);\n sink.lineEnd();\n }\n return;\n }\n\n // Rejoin connected segments.\n // TODO reuse ringBuffer.rejoin()?\n if (n > 1 && clean & 2) ringSegments.push(ringSegments.pop().concat(ringSegments.shift()));\n\n segments.push(ringSegments.filter(validSegment));\n }\n\n return clip;\n };\n}\n\nfunction validSegment(segment) {\n return segment.length > 1;\n}\n\n// Intersections are sorted along the clip edge. For both antimeridian cutting\n// and circle clipping, the same comparison is used.\nfunction compareIntersection(a, b) {\n return ((a = a.x)[0] < 0 ? a[1] - halfPi - epsilon : halfPi - a[1])\n - ((b = b.x)[0] < 0 ? b[1] - halfPi - epsilon : halfPi - b[1]);\n}\n"],"names":["clip","pointVisible","clipLine","interpolate","start","rotate","sink","line","rotatedStart","ringBuffer","clipBuffer","ringSink","polygonStarted","polygon","segments","ring","point","lineStart","lineEnd","pointRing","ringStart","ringEnd","merge","startInside","polygonContains","clipPolygon","compareIntersection","lambda","phi","pointLine","clean","ringSegments","n","m","segment","validSegment","a","b","halfPi","epsilon"],"mappings":";;;;;;AAMwB,SAAAA,EAAAC,GAAcC,GAAUC,GAAaC,GAAO;AAC3D,SAAA,SAASC,GAAQC,GAAM;AACxB,QAAAC,IAAOL,EAASI,CAAI,GACpBE,IAAeH,EAAO,OAAOD,EAAM,CAAC,GAAGA,EAAM,CAAC,CAAC,GAC/CK,IAAaC,EAAW,GACxBC,IAAWT,EAASO,CAAU,GAC9BG,IAAiB,IACjBC,GACAC,GACAC,GAEAf,IAAO;AAAA,MACT,OAAAgB;AAAA,MACA,WAAAC;AAAA,MACA,SAAAC;AAAA,MACA,cAAc,WAAW;AACvB,QAAAlB,EAAK,QAAQmB,GACbnB,EAAK,YAAYoB,GACjBpB,EAAK,UAAUqB,GACfP,IAAW,CAAA,GACXD,IAAU,CAAA;AAAA,MACZ;AAAA,MACA,YAAY,WAAW;AACrB,QAAAb,EAAK,QAAQgB,GACbhB,EAAK,YAAYiB,GACjBjB,EAAK,UAAUkB,GACfJ,IAAWQ,EAAMR,CAAQ;AACrB,YAAAS,IAAcC,EAAgBX,GAASL,CAAY;AACvD,QAAIM,EAAS,UACNF,MAAqBN,EAAA,aAAA,GAAgBM,IAAiB,KAC3Da,EAAYX,GAAUY,GAAqBH,GAAapB,GAAaG,CAAI,KAChEiB,MACJX,MAAqBN,EAAA,aAAA,GAAgBM,IAAiB,KAC3DN,EAAK,UAAU,GACHH,EAAA,MAAM,MAAM,GAAGG,CAAI,GAC/BA,EAAK,QAAQ,IAEXM,MAAqBN,EAAA,WAAA,GAAcM,IAAiB,KACxDE,IAAWD,IAAU;AAAA,MACvB;AAAA,MACA,QAAQ,WAAW;AACjB,QAAAP,EAAK,aAAa,GAClBA,EAAK,UAAU,GACHH,EAAA,MAAM,MAAM,GAAGG,CAAI,GAC/BA,EAAK,QAAQ,GACbA,E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S,KAAK,GAAG;AAGhC,iBAFKtB,MAAqBN,EAAA,aAAA,GAAgBM,IAAiB,KAC3DN,EAAK,UAAU,GACV,IAAI,GAAG,IAAI2B,GAAG,EAAE;AAAQ,cAAA3B,EAAA,OAAOU,IAAQkB,EAAQ,CAAC,GAAG,CAAC,GAAGlB,EAAM,CAAC,CAAC;AACpE,YAAAV,EAAK,QAAQ;AAAA,UACf;AACA;AAAA,QACF;AAII,QAAA0B,IAAI,KAAKF,IAAQ,KAAgBC,EAAA,KAAKA,EAAa,IAAI,EAAE,OAAOA,EAAa,MAAO,CAAA,CAAC,GAEzFjB,EAAS,KAAKiB,EAAa,OAAOI,CAAY,CAAC;AAAA;AAAA,IACjD;AAEO,WAAAnC;AAAA,EAAA;AAEX;AAEA,SAASmC,EAAaD,GAAS;AAC7B,SAAOA,EAAQ,SAAS;AAC1B;AAIA,SAASR,EAAoBU,GAAGC,GAAG;AACjC,WAASD,IAAIA,EAAE,GAAG,CAAC,IAAI,IAAIA,EAAE,CAAC,IAAIE,IAASC,IAAUD,IAASF,EAAE,CAAC,OACxDC,IAAIA,EAAE,GAAG,CAAC,IAAI,IAAIA,EAAE,CAAC,IAAIC,IAASC,IAAUD,IAASD,EAAE,CAAC;AACnE;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es252.js","sources":["../../../node_modules/d3-geo/src/noop.js"],"sourcesContent":["export default function noop() {}\n"],"names":["noop"],"mappings":"AAAA,SAAwBA,IAAO;AAAC;","x_google_ignoreList":[0]}
@@ -1,5 +1,5 @@
1
- import { GenIcon as a } from "./index.es57.js";
2
- import "./index.es58.js";
1
+ import { GenIcon as a } from "./index.es58.js";
2
+ import "./index.es59.js";
3
3
  function c(t) {
4
4
  return a({ tag: "svg", attr: { fill: "currentColor", viewBox: "0 0 16 16" }, child: [{ tag: "path", attr: { d: "m14.12 10.163 1.715.858c.22.11.22.424 0 .534L8.267 15.34a.598.598 0 0 1-.534 0L.165 11.555a.299.299 0 0 1 0-.534l1.716-.858 5.317 2.659c.505.252 1.1.252 1.604 0l5.317-2.66zM7.733.063a.598.598 0 0 1 .534 0l7.568 3.784a.3.3 0 0 1 0 .535L8.267 8.165a.598.598 0 0 1-.534 0L.165 4.382a.299.299 0 0 1 0-.535L7.733.063z" }, child: [] }, { tag: "path", attr: { d: "m14.12 6.576 1.715.858c.22.11.22.424 0 .534l-7.568 3.784a.598.598 0 0 1-.534 0L.165 7.968a.299.299 0 0 1 0-.534l1.716-.858 5.317 2.659c.505.252 1.1.252 1.604 0l5.317-2.659z" }, child: [] }] })(t);
5
5
  }
@@ -1,5 +1,5 @@
1
- import { GenIcon as o } from "./index.es57.js";
2
- import "./index.es58.js";
1
+ import { GenIcon as o } from "./index.es58.js";
2
+ import "./index.es59.js";
3
3
  function e(t) {
4
4
  return o({ tag: "svg", attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { fill: "none", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "32", d: "M416 128 192 384l-96-96" }, child: [] }] })(t);
5
5
  }
@@ -1,5 +1,5 @@
1
- import { commonjsGlobal as sd, getDefaultExportFromCjs as ad } from "./index.es52.js";
2
- import { __module as nu } from "./index.es59.js";
1
+ import { commonjsGlobal as sd, getDefaultExportFromCjs as ad } from "./index.es55.js";
2
+ import { __module as nu } from "./index.es57.js";
3
3
  (function(lu, od) {
4
4
  (function(en, tn) {
5
5
  lu.exports = tn();
package/dist/index.es5.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import { j as e } from "./index.es13.js";
2
- import { useMap as o, PulsingMarkerLayer as f, MixedGeoJSONLayer as l } from "@peripleo/maplibre";
2
+ import { useMap as l, PulsingMarkerLayer as f, MixedGeoJSONLayer as o } from "@peripleo/maplibre";
3
3
  import { useEffect as n } from "react";
4
4
  import { DEFAULT_FILL_STYLE as r, DEFAULT_POINT_STYLE as d, DEFAULT_STROKE_STYLE as m } from "./index.es45.js";
5
5
  import S from "./index.es9.js";
6
- const u = 2, s = (t) => {
7
- const a = o();
6
+ const u = 2, y = (t) => {
7
+ const a = l();
8
8
  return n(() => {
9
9
  if (a && t.data) {
10
10
  const i = S.getBoundingBox(t.data, t.buffer);
@@ -18,23 +18,24 @@ const u = 2, s = (t) => {
18
18
  }
19
19
  ),
20
20
  /* @__PURE__ */ e.jsx(
21
- l,
21
+ o,
22
22
  {
23
23
  data: t.data,
24
24
  fillStyle: t.fillStyle,
25
+ id: t.layerId,
25
26
  strokeStyle: t.strokeStyle,
26
27
  pointStyle: t.pointStyle
27
28
  }
28
29
  )
29
30
  ] });
30
31
  };
31
- s.defaultProps = {
32
+ y.defaultProps = {
32
33
  buffer: u,
33
34
  fillStyle: r,
34
35
  pointStyle: d,
35
36
  strokeStyle: m
36
37
  };
37
38
  export {
38
- s as default
39
+ y as default
39
40
  };
40
41
  //# sourceMappingURL=index.es5.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es5.js","sources":["../src/components/LocationMarkers.js"],"sourcesContent":["// @flow\n\nimport { MixedGeoJSONLayer, PulsingMarkerLayer, useMap } from '@peripleo/maplibre';\nimport React, { useEffect } from 'react';\nimport { DEFAULT_FILL_STYLE, DEFAULT_POINT_STYLE, DEFAULT_STROKE_STYLE } from '../utils/MapStyles';\nimport MapUtils from '../utils/Map';\n\ntype Props = {\n /**\n * If `true`, the point marker will display with a pulsing animation.\n */\n animate?: boolean,\n\n /**\n * The number of miles to buffer the GeoJSON data.\n */\n buffer: number,\n\n /**\n * The GeoJSON data representing the location.\n */\n data: { [key: string]: any },\n\n /**\n * GeoJSON layer fill style.\n */\n fillStyle?: { [key: string]: any },\n\n /**\n * GeoJSON layer point style.\n */\n pointStyle?: { [key: string]: any },\n\n /**\n * GeoJSON layer stroke style\n */\n strokeStyle?: { [key: string]: any }\n};\n\nconst DEFAULT_BUFFER = 2;\n\n/**\n * This component renders a location marker to be used in a Peripleo context.\n */\nconst LocationMarkers = (props: Props) => {\n const map = useMap();\n\n /**\n * Sets the bounding box on the map.\n */\n useEffect(() => {\n if (map && props.data) {\n const boundingBox = MapUtils.getBoundingBox(props.data, props.buffer);\n map.fitBounds(boundingBox);\n }\n }, [map, props.buffer, props.data]);\n\n return (\n <>\n { props.animate && (\n <PulsingMarkerLayer\n data={props.data}\n />\n )}\n <MixedGeoJSONLayer\n data={props.data}\n fillStyle={props.fillStyle}\n strokeStyle={props.strokeStyle}\n pointStyle={props.pointStyle}\n />\n </>\n );\n};\n\nLocationMarkers.defaultProps = {\n buffer: DEFAULT_BUFFER,\n fillStyle: DEFAULT_FILL_STYLE,\n pointStyle: DEFAULT_POINT_STYLE,\n strokeStyle: DEFAULT_STROKE_STYLE\n};\n\nexport default LocationMarkers;\n"],"names":["DEFAULT_BUFFER","LocationMarkers","props","map","useMap","useEffect","boundingBox","MapUtils","jsxs","Fragment","jsx","PulsingMarkerLayer","MixedGeoJSONLayer","DEFAULT_FILL_STYLE","DEFAULT_POINT_STYLE","DEFAULT_STROKE_STYLE"],"mappings":";;;;;AAuCA,MAAMA,IAAiB,GAKjBC,IAAkB,CAACC,MAAiB;AACxC,QAAMC,IAAMC;AAKZ,SAAAC,EAAU,MAAM;AACV,QAAAF,KAAOD,EAAM,MAAM;AACrB,YAAMI,IAAcC,EAAS,eAAeL,EAAM,MAAMA,EAAM,MAAM;AACpE,MAAAC,EAAI,UAAUG,CAAW;AAAA,IAC3B;AAAA,EAAA,GACC,CAACH,GAAKD,EAAM,QAAQA,EAAM,IAAI,CAAC,GAI5BM,gBAAAA,EAAA,KAAAC,YAAA,EAAA,UAAA;AAAA,IAAAP,EAAM,WACNQ,gBAAAA,EAAA;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,MAAMT,EAAM;AAAA,MAAA;AAAA,IACd;AAAA,IAEFQ,gBAAAA,EAAA;AAAA,MAACE;AAAA,MAAA;AAAA,QACC,MAAMV,EAAM;AAAA,QACZ,WAAWA,EAAM;AAAA,QACjB,aAAaA,EAAM;AAAA,QACnB,YAAYA,EAAM;AAAA,MAAA;AAAA,IACpB;AAAA,EACF,EAAA,CAAA;AAEJ;AAEAD,EAAgB,eAAe;AAAA,EAC7B,QAAQD;AAAA,EACR,WAAWa;AAAA,EACX,YAAYC;AAAA,EACZ,aAAaC;AACf;"}
1
+ {"version":3,"file":"index.es5.js","sources":["../src/components/LocationMarkers.js"],"sourcesContent":["// @flow\n\nimport { MixedGeoJSONLayer, PulsingMarkerLayer, useMap } from '@peripleo/maplibre';\nimport React, { useEffect } from 'react';\nimport { DEFAULT_FILL_STYLE, DEFAULT_POINT_STYLE, DEFAULT_STROKE_STYLE } from '../utils/MapStyles';\nimport MapUtils from '../utils/Map';\n\ntype Props = {\n /**\n * If `true`, the point marker will display with a pulsing animation.\n */\n animate?: boolean,\n\n /**\n * The number of miles to buffer the GeoJSON data.\n */\n buffer: number,\n\n /**\n * The GeoJSON data representing the location.\n */\n data: { [key: string]: any },\n\n /**\n * GeoJSON layer fill style.\n */\n fillStyle?: { [key: string]: any },\n\n /**\n * An ID value to apply to the layer.\n */\n layerId?: string,\n\n /**\n * GeoJSON layer point style.\n */\n pointStyle?: { [key: string]: any },\n\n /**\n * GeoJSON layer stroke style\n */\n strokeStyle?: { [key: string]: any }\n};\n\nconst DEFAULT_BUFFER = 2;\n\n/**\n * This component renders a location marker to be used in a Peripleo context.\n */\nconst LocationMarkers = (props: Props) => {\n const map = useMap();\n\n /**\n * Sets the bounding box on the map.\n */\n useEffect(() => {\n if (map && props.data) {\n const boundingBox = MapUtils.getBoundingBox(props.data, props.buffer);\n map.fitBounds(boundingBox);\n }\n }, [map, props.buffer, props.data]);\n\n return (\n <>\n { props.animate && (\n <PulsingMarkerLayer\n data={props.data}\n />\n )}\n <MixedGeoJSONLayer\n data={props.data}\n fillStyle={props.fillStyle}\n id={props.layerId}\n strokeStyle={props.strokeStyle}\n pointStyle={props.pointStyle}\n />\n </>\n );\n};\n\nLocationMarkers.defaultProps = {\n buffer: DEFAULT_BUFFER,\n fillStyle: DEFAULT_FILL_STYLE,\n pointStyle: DEFAULT_POINT_STYLE,\n strokeStyle: DEFAULT_STROKE_STYLE\n};\n\nexport default LocationMarkers;\n"],"names":["DEFAULT_BUFFER","LocationMarkers","props","map","useMap","useEffect","boundingBox","MapUtils","jsxs","Fragment","jsx","PulsingMarkerLayer","MixedGeoJSONLayer","DEFAULT_FILL_STYLE","DEFAULT_POINT_STYLE","DEFAULT_STROKE_STYLE"],"mappings":";;;;;AA4CA,MAAMA,IAAiB,GAKjBC,IAAkB,CAACC,MAAiB;AACxC,QAAMC,IAAMC;AAKZ,SAAAC,EAAU,MAAM;AACV,QAAAF,KAAOD,EAAM,MAAM;AACrB,YAAMI,IAAcC,EAAS,eAAeL,EAAM,MAAMA,EAAM,MAAM;AACpE,MAAAC,EAAI,UAAUG,CAAW;AAAA,IAC3B;AAAA,EAAA,GACC,CAACH,GAAKD,EAAM,QAAQA,EAAM,IAAI,CAAC,GAI5BM,gBAAAA,EAAA,KAAAC,YAAA,EAAA,UAAA;AAAA,IAAAP,EAAM,WACNQ,gBAAAA,EAAA;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,MAAMT,EAAM;AAAA,MAAA;AAAA,IACd;AAAA,IAEFQ,gBAAAA,EAAA;AAAA,MAACE;AAAA,MAAA;AAAA,QACC,MAAMV,EAAM;AAAA,QACZ,WAAWA,EAAM;AAAA,QACjB,IAAIA,EAAM;AAAA,QACV,aAAaA,EAAM;AAAA,QACnB,YAAYA,EAAM;AAAA,MAAA;AAAA,IACpB;AAAA,EACF,EAAA,CAAA;AAEJ;AAEAD,EAAgB,eAAe;AAAA,EAC7B,QAAQD;AAAA,EACR,WAAWa;AAAA,EACX,YAAYC;AAAA,EACZ,aAAaC;AACf;"}
@@ -1,9 +1,5 @@
1
- var o = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
2
- function l(e) {
3
- return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
4
- }
1
+ var e = { exports: {} };
5
2
  export {
6
- o as commonjsGlobal,
7
- l as getDefaultExportFromCjs
3
+ e as __module
8
4
  };
9
5
  //# sourceMappingURL=index.es52.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es52.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
1
+ {"version":3,"file":"index.es52.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,5 +1,33 @@
1
- var a = { exports: {} };
1
+ import { __exports as t } from "./index.es60.js";
2
+ import R from "react";
3
+ var p;
4
+ function v() {
5
+ if (p)
6
+ return t;
7
+ p = 1;
8
+ /**
9
+ * @license React
10
+ * react-jsx-runtime.production.min.js
11
+ *
12
+ * Copyright (c) Facebook, Inc. and its affiliates.
13
+ *
14
+ * This source code is licensed under the MIT license found in the
15
+ * LICENSE file in the root directory of this source tree.
16
+ */
17
+ var s = R, m = Symbol.for("react.element"), l = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, a = s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, d = { key: !0, ref: !0, __self: !0, __source: !0 };
18
+ function u(o, r, i) {
19
+ var e, n = {}, _ = null, f = null;
20
+ i !== void 0 && (_ = "" + i), r.key !== void 0 && (_ = "" + r.key), r.ref !== void 0 && (f = r.ref);
21
+ for (e in r)
22
+ c.call(r, e) && !d.hasOwnProperty(e) && (n[e] = r[e]);
23
+ if (o && o.defaultProps)
24
+ for (e in r = o.defaultProps, r)
25
+ n[e] === void 0 && (n[e] = r[e]);
26
+ return { $$typeof: m, type: o, key: _, ref: f, props: n, _owner: a.current };
27
+ }
28
+ return t.Fragment = l, t.jsx = u, t.jsxs = u, t;
29
+ }
2
30
  export {
3
- a as __module
31
+ v as __require
4
32
  };
5
33
  //# sourceMappingURL=index.es53.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es53.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
1
+ {"version":3,"file":"index.es53.js","sources":["../../../node_modules/react/cjs/react-jsx-runtime.production.min.js"],"sourcesContent":["/**\n * @license React\n * react-jsx-runtime.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var f=require(\"react\"),k=Symbol.for(\"react.element\"),l=Symbol.for(\"react.fragment\"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};\nfunction q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=\"\"+g);void 0!==a.key&&(e=\"\"+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=q;exports.jsxs=q;\n"],"names":["f","require$$0","k","m","n","p","q","c","a","g","b","d","e","h","reactJsxRuntime_production_min"],"mappings":";;;;;;;EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASa,MAAIA,IAAEC,GAAiBC,IAAE,OAAO,IAAI,eAAe,GAAE,IAAE,OAAO,IAAI,gBAAgB,GAAEC,IAAE,OAAO,UAAU,gBAAeC,IAAEJ,EAAE,mDAAmD,mBAAkBK,IAAE,EAAC,KAAI,IAAG,KAAI,IAAG,QAAO,IAAG,UAAS,GAAE;AAClP,WAASC,EAAEC,GAAEC,GAAEC,GAAE;AAAC,QAAIC,GAAEC,IAAE,CAAG,GAAAC,IAAE,MAAKC,IAAE;AAAc,IAAAJ,MAAA,WAAIG,IAAE,KAAGH,IAAYD,EAAE,QAAX,WAAiBI,IAAE,KAAGJ,EAAE,MAAcA,EAAE,QAAF,WAAQK,IAAEL,EAAE;AAAK,SAAIE,KAAKF;AAAE,MAAAL,EAAE,KAAKK,GAAEE,CAAC,KAAG,CAACL,EAAE,eAAeK,CAAC,MAAIC,EAAED,CAAC,IAAEF,EAAEE,CAAC;AAAG,QAAGH,KAAGA,EAAE;AAAiB,WAAAG,KAAKF,IAAED,EAAE,cAAaC;AAAE,QAASG,EAAED,CAAC,MAAZ,WAAgBC,EAAED,CAAC,IAAEF,EAAEE,CAAC;AAAG,WAAM,EAAC,UAASR,GAAE,MAAKK,GAAE,KAAIK,GAAE,KAAIC,GAAE,OAAMF,GAAE,QAAOP,EAAE,QAAO;AAAA,EAAC;AAAkB,SAAAU,EAAA,WAAA,GAAcA,EAAA,MAAAR,GAAEQ,EAAA,OAAaR;;","x_google_ignoreList":[0]}