@travel-match/ui 0.6.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/ArmeniaRouteMap/ArmeniaRouteMap.cjs +2 -0
- package/dist/components/ArmeniaRouteMap/ArmeniaRouteMap.cjs.map +1 -0
- package/dist/components/ArmeniaRouteMap/ArmeniaRouteMap.js +106 -0
- package/dist/components/ArmeniaRouteMap/ArmeniaRouteMap.js.map +1 -0
- package/dist/components/ArmeniaRouteMap/regionNames.cjs +2 -0
- package/dist/components/ArmeniaRouteMap/regionNames.cjs.map +1 -0
- package/dist/components/ArmeniaRouteMap/regionNames.js +49 -0
- package/dist/components/ArmeniaRouteMap/regionNames.js.map +1 -0
- package/dist/components/GlobeMap/GlobeMap.cjs +2 -0
- package/dist/components/GlobeMap/GlobeMap.cjs.map +1 -0
- package/dist/components/GlobeMap/GlobeMap.js +202 -0
- package/dist/components/GlobeMap/GlobeMap.js.map +1 -0
- package/dist/components/GlobeMap/geo.cjs +2 -0
- package/dist/components/GlobeMap/geo.cjs.map +1 -0
- package/dist/components/GlobeMap/geo.js +150 -0
- package/dist/components/GlobeMap/geo.js.map +1 -0
- package/dist/components/GlobeMap/world.json.cjs +2 -0
- package/dist/components/GlobeMap/world.json.cjs.map +1 -0
- package/dist/components/GlobeMap/world.json.js +28990 -0
- package/dist/components/GlobeMap/world.json.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +80 -0
- package/dist/index.d.ts +80 -0
- package/dist/index.js +34 -31
- package/dist/node_modules/d3-array/dist/d3-array.cjs +2 -0
- package/dist/node_modules/d3-array/dist/d3-array.cjs.map +1 -0
- package/dist/node_modules/d3-array/dist/d3-array.js +90 -0
- package/dist/node_modules/d3-array/dist/d3-array.js.map +1 -0
- package/dist/node_modules/d3-geo/src/area.cjs +2 -0
- package/dist/node_modules/d3-geo/src/area.cjs.map +1 -0
- package/dist/node_modules/d3-geo/src/area.js +41 -0
- package/dist/node_modules/d3-geo/src/area.js.map +1 -0
- package/dist/node_modules/d3-geo/src/cartesian.cjs +2 -0
- package/dist/node_modules/d3-geo/src/cartesian.cjs.map +1 -0
- package/dist/node_modules/d3-geo/src/cartesian.js +41 -0
- package/dist/node_modules/d3-geo/src/cartesian.js.map +1 -0
- package/dist/node_modules/d3-geo/src/centroid.cjs +2 -0
- package/dist/node_modules/d3-geo/src/centroid.cjs.map +1 -0
- package/dist/node_modules/d3-geo/src/centroid.js +66 -0
- package/dist/node_modules/d3-geo/src/centroid.js.map +1 -0
- package/dist/node_modules/d3-geo/src/circle.cjs +2 -0
- package/dist/node_modules/d3-geo/src/circle.cjs.map +1 -0
- package/dist/node_modules/d3-geo/src/circle.js +23 -0
- package/dist/node_modules/d3-geo/src/circle.js.map +1 -0
- package/dist/node_modules/d3-geo/src/clip/antimeridian.cjs +2 -0
- package/dist/node_modules/d3-geo/src/clip/antimeridian.cjs.map +1 -0
- package/dist/node_modules/d3-geo/src/clip/antimeridian.js +40 -0
- package/dist/node_modules/d3-geo/src/clip/antimeridian.js.map +1 -0
- package/dist/node_modules/d3-geo/src/clip/buffer.cjs +2 -0
- package/dist/node_modules/d3-geo/src/clip/buffer.cjs.map +1 -0
- package/dist/node_modules/d3-geo/src/clip/buffer.js +29 -0
- package/dist/node_modules/d3-geo/src/clip/buffer.js.map +1 -0
- package/dist/node_modules/d3-geo/src/clip/circle.cjs +2 -0
- package/dist/node_modules/d3-geo/src/clip/circle.cjs.map +1 -0
- package/dist/node_modules/d3-geo/src/clip/circle.js +69 -0
- package/dist/node_modules/d3-geo/src/clip/circle.js.map +1 -0
- package/dist/node_modules/d3-geo/src/clip/index.cjs +2 -0
- package/dist/node_modules/d3-geo/src/clip/index.cjs.map +1 -0
- package/dist/node_modules/d3-geo/src/clip/index.js +67 -0
- package/dist/node_modules/d3-geo/src/clip/index.js.map +1 -0
- package/dist/node_modules/d3-geo/src/clip/line.cjs +2 -0
- package/dist/node_modules/d3-geo/src/clip/line.cjs.map +1 -0
- package/dist/node_modules/d3-geo/src/clip/line.js +45 -0
- package/dist/node_modules/d3-geo/src/clip/line.js.map +1 -0
- package/dist/node_modules/d3-geo/src/clip/rectangle.cjs +2 -0
- package/dist/node_modules/d3-geo/src/clip/rectangle.cjs.map +1 -0
- package/dist/node_modules/d3-geo/src/clip/rectangle.js +73 -0
- package/dist/node_modules/d3-geo/src/clip/rectangle.js.map +1 -0
- package/dist/node_modules/d3-geo/src/clip/rejoin.cjs +2 -0
- package/dist/node_modules/d3-geo/src/clip/rejoin.cjs.map +1 -0
- package/dist/node_modules/d3-geo/src/clip/rejoin.js +52 -0
- package/dist/node_modules/d3-geo/src/clip/rejoin.js.map +1 -0
- package/dist/node_modules/d3-geo/src/compose.cjs +2 -0
- package/dist/node_modules/d3-geo/src/compose.cjs.map +1 -0
- package/dist/node_modules/d3-geo/src/compose.js +13 -0
- package/dist/node_modules/d3-geo/src/compose.js.map +1 -0
- package/dist/node_modules/d3-geo/src/distance.cjs +2 -0
- package/dist/node_modules/d3-geo/src/distance.cjs.map +1 -0
- package/dist/node_modules/d3-geo/src/distance.js +13 -0
- package/dist/node_modules/d3-geo/src/distance.js.map +1 -0
- package/dist/node_modules/d3-geo/src/identity.cjs +2 -0
- package/dist/node_modules/d3-geo/src/identity.cjs.map +1 -0
- package/dist/node_modules/d3-geo/src/identity.js +6 -0
- package/dist/node_modules/d3-geo/src/identity.js.map +1 -0
- package/dist/node_modules/d3-geo/src/interpolate.cjs +2 -0
- package/dist/node_modules/d3-geo/src/interpolate.cjs.map +1 -0
- package/dist/node_modules/d3-geo/src/interpolate.js +15 -0
- package/dist/node_modules/d3-geo/src/interpolate.js.map +1 -0
- package/dist/node_modules/d3-geo/src/length.cjs +2 -0
- package/dist/node_modules/d3-geo/src/length.cjs.map +1 -0
- package/dist/node_modules/d3-geo/src/length.js +34 -0
- package/dist/node_modules/d3-geo/src/length.js.map +1 -0
- package/dist/node_modules/d3-geo/src/math.cjs +2 -0
- package/dist/node_modules/d3-geo/src/math.cjs.map +1 -0
- package/dist/node_modules/d3-geo/src/math.js +17 -0
- package/dist/node_modules/d3-geo/src/math.js.map +1 -0
- package/dist/node_modules/d3-geo/src/noop.cjs +2 -0
- package/dist/node_modules/d3-geo/src/noop.cjs.map +1 -0
- package/dist/node_modules/d3-geo/src/noop.js +6 -0
- package/dist/node_modules/d3-geo/src/noop.js.map +1 -0
- package/dist/node_modules/d3-geo/src/path/area.cjs +2 -0
- package/dist/node_modules/d3-geo/src/path/area.cjs.map +1 -0
- package/dist/node_modules/d3-geo/src/path/area.js +35 -0
- package/dist/node_modules/d3-geo/src/path/area.js.map +1 -0
- package/dist/node_modules/d3-geo/src/path/bounds.cjs +2 -0
- package/dist/node_modules/d3-geo/src/path/bounds.cjs.map +1 -0
- package/dist/node_modules/d3-geo/src/path/bounds.js +20 -0
- package/dist/node_modules/d3-geo/src/path/bounds.js.map +1 -0
- package/dist/node_modules/d3-geo/src/path/centroid.cjs +2 -0
- package/dist/node_modules/d3-geo/src/path/centroid.cjs.map +1 -0
- package/dist/node_modules/d3-geo/src/path/centroid.js +50 -0
- package/dist/node_modules/d3-geo/src/path/centroid.js.map +1 -0
- package/dist/node_modules/d3-geo/src/path/context.cjs +2 -0
- package/dist/node_modules/d3-geo/src/path/context.cjs.map +1 -0
- package/dist/node_modules/d3-geo/src/path/context.js +40 -0
- package/dist/node_modules/d3-geo/src/path/context.js.map +1 -0
- package/dist/node_modules/d3-geo/src/path/index.cjs +2 -0
- package/dist/node_modules/d3-geo/src/path/index.cjs.map +1 -0
- package/dist/node_modules/d3-geo/src/path/index.js +43 -0
- package/dist/node_modules/d3-geo/src/path/index.js.map +1 -0
- package/dist/node_modules/d3-geo/src/path/measure.cjs +2 -0
- package/dist/node_modules/d3-geo/src/path/measure.cjs.map +1 -0
- package/dist/node_modules/d3-geo/src/path/measure.js +33 -0
- package/dist/node_modules/d3-geo/src/path/measure.js.map +1 -0
- package/dist/node_modules/d3-geo/src/path/string.cjs +2 -0
- package/dist/node_modules/d3-geo/src/path/string.cjs.map +1 -0
- package/dist/node_modules/d3-geo/src/path/string.js +64 -0
- package/dist/node_modules/d3-geo/src/path/string.js.map +1 -0
- package/dist/node_modules/d3-geo/src/pointEqual.cjs +2 -0
- package/dist/node_modules/d3-geo/src/pointEqual.cjs.map +1 -0
- package/dist/node_modules/d3-geo/src/pointEqual.js +9 -0
- package/dist/node_modules/d3-geo/src/pointEqual.js.map +1 -0
- package/dist/node_modules/d3-geo/src/polygonContains.cjs +2 -0
- package/dist/node_modules/d3-geo/src/polygonContains.cjs.map +1 -0
- package/dist/node_modules/d3-geo/src/polygonContains.js +31 -0
- package/dist/node_modules/d3-geo/src/polygonContains.js.map +1 -0
- package/dist/node_modules/d3-geo/src/projection/azimuthal.cjs +2 -0
- package/dist/node_modules/d3-geo/src/projection/azimuthal.cjs.map +1 -0
- package/dist/node_modules/d3-geo/src/projection/azimuthal.js +12 -0
- package/dist/node_modules/d3-geo/src/projection/azimuthal.js.map +1 -0
- package/dist/node_modules/d3-geo/src/projection/fit.cjs +2 -0
- package/dist/node_modules/d3-geo/src/projection/fit.cjs.map +1 -0
- package/dist/node_modules/d3-geo/src/projection/fit.js +32 -0
- package/dist/node_modules/d3-geo/src/projection/fit.js.map +1 -0
- package/dist/node_modules/d3-geo/src/projection/index.cjs +2 -0
- package/dist/node_modules/d3-geo/src/projection/index.cjs.map +1 -0
- package/dist/node_modules/d3-geo/src/projection/index.js +105 -0
- package/dist/node_modules/d3-geo/src/projection/index.js.map +1 -0
- package/dist/node_modules/d3-geo/src/projection/orthographic.cjs +2 -0
- package/dist/node_modules/d3-geo/src/projection/orthographic.cjs.map +1 -0
- package/dist/node_modules/d3-geo/src/projection/orthographic.js +15 -0
- package/dist/node_modules/d3-geo/src/projection/orthographic.js.map +1 -0
- package/dist/node_modules/d3-geo/src/projection/resample.cjs +2 -0
- package/dist/node_modules/d3-geo/src/projection/resample.cjs.map +1 -0
- package/dist/node_modules/d3-geo/src/projection/resample.js +62 -0
- package/dist/node_modules/d3-geo/src/projection/resample.js.map +1 -0
- package/dist/node_modules/d3-geo/src/rotation.cjs +2 -0
- package/dist/node_modules/d3-geo/src/rotation.cjs.map +1 -0
- package/dist/node_modules/d3-geo/src/rotation.js +34 -0
- package/dist/node_modules/d3-geo/src/rotation.js.map +1 -0
- package/dist/node_modules/d3-geo/src/stream.cjs +2 -0
- package/dist/node_modules/d3-geo/src/stream.cjs.map +1 -0
- package/dist/node_modules/d3-geo/src/stream.js +54 -0
- package/dist/node_modules/d3-geo/src/stream.js.map +1 -0
- package/dist/node_modules/d3-geo/src/transform.cjs +2 -0
- package/dist/node_modules/d3-geo/src/transform.cjs.map +1 -0
- package/dist/node_modules/d3-geo/src/transform.js +34 -0
- package/dist/node_modules/d3-geo/src/transform.js.map +1 -0
- package/dist/node_modules/topojson-client/src/feature.cjs +2 -0
- package/dist/node_modules/topojson-client/src/feature.cjs.map +1 -0
- package/dist/node_modules/topojson-client/src/feature.js +89 -0
- package/dist/node_modules/topojson-client/src/feature.js.map +1 -0
- package/dist/node_modules/topojson-client/src/identity.cjs +2 -0
- package/dist/node_modules/topojson-client/src/identity.cjs.map +1 -0
- package/dist/node_modules/topojson-client/src/identity.js +8 -0
- package/dist/node_modules/topojson-client/src/identity.js.map +1 -0
- package/dist/node_modules/topojson-client/src/reverse.cjs +2 -0
- package/dist/node_modules/topojson-client/src/reverse.cjs.map +1 -0
- package/dist/node_modules/topojson-client/src/reverse.js +8 -0
- package/dist/node_modules/topojson-client/src/reverse.js.map +1 -0
- package/dist/node_modules/topojson-client/src/transform.cjs +2 -0
- package/dist/node_modules/topojson-client/src/transform.cjs.map +1 -0
- package/dist/node_modules/topojson-client/src/transform.js +16 -0
- package/dist/node_modules/topojson-client/src/transform.js.map +1 -0
- package/dist/styles.css +1 -1
- package/package.json +11 -2
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";const e=require("../../d3-array/dist/d3-array.cjs"),t=require("./math.cjs"),n=require("./noop.cjs"),r=require("./stream.cjs");var i,a,o,s,c={sphere:n.default,point:n.default,lineStart:l,lineEnd:n.default,polygonStart:n.default,polygonEnd:n.default};function l(){c.point=d,c.lineEnd=u}function u(){c.point=c.lineEnd=n.default}function d(e,n){e*=t.radians,n*=t.radians,a=e,o=t.sin(n),s=t.cos(n),c.point=f}function f(e,n){e*=t.radians,n*=t.radians;var r=t.sin(n),c=t.cos(n),l=t.abs(e-a),u=t.cos(l),d=c*t.sin(l),f=s*r-o*c*u,p=o*r+s*c*u;i.add(t.atan2(t.sqrt(d*d+f*f),p)),a=e,o=r,s=c}function p(t){return i=new e.Adder,r.default(t,c),+i}exports.default=p;
|
|
2
|
+
//# sourceMappingURL=length.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"length.cjs","names":["noop","radians","sin","cos","abs","atan2","sqrt","Adder","require_d3_array","require_math","require_noop","require_stream","lengthSum","lambda0","sinPhi0","cosPhi0","lengthStream","lengthLineStart","lengthPointFirst","lengthLineEnd","lambda","phi","lengthPoint","sinPhi","cosPhi","delta","cosDelta","x","y","z","length_default","object"],"sources":["../../../../node_modules/d3-geo/src/length.js"],"sourcesContent":["import {Adder} from \"d3-array\";\nimport {abs, atan2, cos, radians, sin, sqrt} from \"./math.js\";\nimport noop from \"./noop.js\";\nimport stream from \"./stream.js\";\n\nvar lengthSum,\n lambda0,\n sinPhi0,\n cosPhi0;\n\nvar lengthStream = {\n sphere: noop,\n point: noop,\n lineStart: lengthLineStart,\n lineEnd: noop,\n polygonStart: noop,\n polygonEnd: noop\n};\n\nfunction lengthLineStart() {\n lengthStream.point = lengthPointFirst;\n lengthStream.lineEnd = lengthLineEnd;\n}\n\nfunction lengthLineEnd() {\n lengthStream.point = lengthStream.lineEnd = noop;\n}\n\nfunction lengthPointFirst(lambda, phi) {\n lambda *= radians, phi *= radians;\n lambda0 = lambda, sinPhi0 = sin(phi), cosPhi0 = cos(phi);\n lengthStream.point = lengthPoint;\n}\n\nfunction lengthPoint(lambda, phi) {\n lambda *= radians, phi *= radians;\n var sinPhi = sin(phi),\n cosPhi = cos(phi),\n delta = abs(lambda - lambda0),\n cosDelta = cos(delta),\n sinDelta = sin(delta),\n x = cosPhi * sinDelta,\n y = cosPhi0 * sinPhi - sinPhi0 * cosPhi * cosDelta,\n z = sinPhi0 * sinPhi + cosPhi0 * cosPhi * cosDelta;\n lengthSum.add(atan2(sqrt(x * x + y * y), z));\n lambda0 = lambda, sinPhi0 = sinPhi, cosPhi0 = cosPhi;\n}\n\nexport default function(object) {\n lengthSum = new Adder();\n stream(object, lengthStream);\n return +lengthSum;\n}\n"],"ignoreList":[0],"mappings":"A,2IAKA,IAAIY,EACAC,EACAC,EACAC,EAEAC,EAAe,CACjB,OAAQhB,EAAAA,QACR,MAAOA,EAAAA,QACP,UAAWiB,EACX,QAASjB,EAAAA,QACT,aAAcA,EAAAA,QACd,WAAYA,EAAAA,OACd,EAEA,SAASiB,GAAkB,CACzB,EAAa,MAAQC,EACrB,EAAa,QAAUC,CACzB,CAEA,SAASA,GAAgB,CACvB,EAAa,MAAQ,EAAa,QAAUnB,EAAAA,OAC9C,CAEA,SAASkB,EAAiB,EAAQ,EAAK,CACrC,GAAUjB,EAAAA,QAAS,GAAOA,EAAAA,QAC1B,EAAUmB,EAAQ,EAAUlB,EAAAA,IAAImB,CAAG,EAAG,EAAUlB,EAAAA,IAAIkB,CAAG,EACvD,EAAa,MAAQC,CACvB,CAEA,SAASA,EAAY,EAAQ,EAAK,CAChC,GAAUrB,EAAAA,QAAS,GAAOA,EAAAA,QAC1B,IAAIsB,EAASrB,EAAAA,IAAImB,CAAG,EAChBG,EAASrB,EAAAA,IAAIkB,CAAG,EAChBI,EAAQrB,EAAAA,IAAIgB,EAASP,CAAO,EAC5Ba,EAAWvB,EAAAA,IAAIsB,CAAK,EAEpBE,EAAIH,EADOtB,EAAAA,IAAIuB,CACK,EACpBG,EAAIb,EAAUQ,EAAST,EAAUU,EAASE,EAC1CG,EAAIf,EAAUS,EAASR,EAAUS,EAASE,EAC9Cd,EAAU,IAAIP,EAAAA,MAAMC,EAAAA,KAAKqB,EAAIA,EAAIC,EAAIA,CAAC,EAAGC,CAAC,CAAC,EAC3C,EAAUT,EAAQ,EAAUG,EAAQ,EAAUC,CAChD,CAEA,SAAAM,EAAwB,EAAQ,CAG9B,MAFA,GAAY,IAAIvB,EAAAA,MAChBI,EAAA,QAAOoB,EAAQf,CAAY,EACpB,CAACJ,CACV,C"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { Adder as e } from "../../d3-array/dist/d3-array.js";
|
|
3
|
+
import { abs as t, atan2 as n, cos as r, radians as i, sin as a, sqrt as o } from "./math.js";
|
|
4
|
+
import s from "./noop.js";
|
|
5
|
+
import c from "./stream.js";
|
|
6
|
+
// node_modules/d3-geo/src/length.js
|
|
7
|
+
var l, u, d, f, p = {
|
|
8
|
+
sphere: s,
|
|
9
|
+
point: s,
|
|
10
|
+
lineStart: m,
|
|
11
|
+
lineEnd: s,
|
|
12
|
+
polygonStart: s,
|
|
13
|
+
polygonEnd: s
|
|
14
|
+
};
|
|
15
|
+
function m() {
|
|
16
|
+
p.point = g, p.lineEnd = h;
|
|
17
|
+
}
|
|
18
|
+
function h() {
|
|
19
|
+
p.point = p.lineEnd = s;
|
|
20
|
+
}
|
|
21
|
+
function g(e, t) {
|
|
22
|
+
e *= i, t *= i, u = e, d = a(t), f = r(t), p.point = _;
|
|
23
|
+
}
|
|
24
|
+
function _(e, s) {
|
|
25
|
+
e *= i, s *= i;
|
|
26
|
+
var c = a(s), p = r(s), m = t(e - u), h = r(m), g = p * a(m), _ = f * c - d * p * h, v = d * c + f * p * h;
|
|
27
|
+
l.add(n(o(g * g + _ * _), v)), u = e, d = c, f = p;
|
|
28
|
+
}
|
|
29
|
+
function v(t) {
|
|
30
|
+
return l = new e(), c(t, p), +l;
|
|
31
|
+
}
|
|
32
|
+
export { v as default };
|
|
33
|
+
|
|
34
|
+
//# sourceMappingURL=length.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"length.js","names":["noop","stream_default","lengthSum","lambda0","sinPhi0","cosPhi0","lengthStream","lengthLineStart","lengthPointFirst","lengthLineEnd","radians","lambda","sin","phi","cos","lengthPoint","sinPhi","cosPhi","delta","abs","cosDelta","x","y","z","atan2","sqrt","length_default","Adder","object"],"sources":["../../../../node_modules/d3-geo/src/length.js"],"sourcesContent":["import {Adder} from \"d3-array\";\nimport {abs, atan2, cos, radians, sin, sqrt} from \"./math.js\";\nimport noop from \"./noop.js\";\nimport stream from \"./stream.js\";\n\nvar lengthSum,\n lambda0,\n sinPhi0,\n cosPhi0;\n\nvar lengthStream = {\n sphere: noop,\n point: noop,\n lineStart: lengthLineStart,\n lineEnd: noop,\n polygonStart: noop,\n polygonEnd: noop\n};\n\nfunction lengthLineStart() {\n lengthStream.point = lengthPointFirst;\n lengthStream.lineEnd = lengthLineEnd;\n}\n\nfunction lengthLineEnd() {\n lengthStream.point = lengthStream.lineEnd = noop;\n}\n\nfunction lengthPointFirst(lambda, phi) {\n lambda *= radians, phi *= radians;\n lambda0 = lambda, sinPhi0 = sin(phi), cosPhi0 = cos(phi);\n lengthStream.point = lengthPoint;\n}\n\nfunction lengthPoint(lambda, phi) {\n lambda *= radians, phi *= radians;\n var sinPhi = sin(phi),\n cosPhi = cos(phi),\n delta = abs(lambda - lambda0),\n cosDelta = cos(delta),\n sinDelta = sin(delta),\n x = cosPhi * sinDelta,\n y = cosPhi0 * sinPhi - sinPhi0 * cosPhi * cosDelta,\n z = sinPhi0 * sinPhi + cosPhi0 * cosPhi * cosDelta;\n lengthSum.add(atan2(sqrt(x * x + y * y), z));\n lambda0 = lambda, sinPhi0 = sinPhi, cosPhi0 = cosPhi;\n}\n\nexport default function(object) {\n lengthSum = new Adder();\n stream(object, lengthStream);\n return +lengthSum;\n}\n"],"ignoreList":[0],"mappings":";;;;;;AAKA,IAAIE,GACAC,GACAC,GACAC,GAEAC,IAAe;CACjB,QAAQN;CACR,OAAOA;CACP,WAAWO;CACX,SAASP;CACT,cAAcA;CACd,YAAYA;AACd;AAEA,SAASO,IAAkB;CAEzB,AADA,EAAa,QAAQC,GACrB,EAAa,UAAUC;AACzB;AAEA,SAASA,IAAgB;CACvB,EAAa,QAAQ,EAAa,UAAUT;AAC9C;AAEA,SAASQ,EAAiB,GAAQ,GAAK;CAGrC,AAFA,KAAUE,GAAS,KAAOA,GAC1B,IAAUC,GAAQ,IAAUC,EAAIC,CAAG,GAAG,IAAUC,EAAID,CAAG,GACvD,EAAa,QAAQE;AACvB;AAEA,SAASA,EAAY,GAAQ,GAAK;CAChC,KAAUL,GAAS,KAAOA;CAC1B,IAAIM,IAASJ,EAAIC,CAAG,GAChBI,IAASH,EAAID,CAAG,GAChBK,IAAQC,EAAIR,IAASR,CAAO,GAC5BiB,IAAWN,EAAII,CAAK,GAEpBG,IAAIJ,IADOL,EAAIM,CACK,GACpBI,IAAIjB,IAAUW,IAASZ,IAAUa,IAASG,GAC1CG,IAAInB,IAAUY,IAASX,IAAUY,IAASG;CAE9C,AADAlB,EAAU,IAAIsB,EAAMC,EAAKJ,IAAIA,IAAIC,IAAIA,CAAC,GAAGC,CAAC,CAAC,GAC3C,IAAUZ,GAAQ,IAAUK,GAAQ,IAAUC;AAChD;AAEA,SAAAS,EAAwB,GAAQ;CAG9B,OAFA,IAAY,IAAIC,EAAM,GACtB1B,EAAO2B,GAAQtB,CAAY,GACpB,CAACJ;AACV"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";var e=1e-6,t=1e-12,n=Math.PI,r=n/2,i=n/4,a=n*2,o=180/n,s=n/180,c=Math.abs,l=Math.atan,u=Math.atan2,d=Math.cos,f=Math.hypot,p=Math.sin,m=Math.sign||function(e){return e>0?1:e<0?-1:0},h=Math.sqrt;function g(e){return e>1?0:e<-1?n:Math.acos(e)}function _(e){return e>1?r:e<-1?-r:Math.asin(e)}function v(e){return(e=p(e/2))*e}exports.abs=c,exports.acos=g,exports.asin=_,exports.atan=l,exports.atan2=u,exports.cos=d,exports.degrees=o,exports.epsilon=e,exports.epsilon2=t,exports.halfPi=r,exports.haversin=v,exports.hypot=f,exports.pi=n,exports.quarterPi=i,exports.radians=s,exports.sign=m,exports.sin=p,exports.sqrt=h,exports.tau=a;
|
|
2
|
+
//# sourceMappingURL=math.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"math.cjs","names":["epsilon","epsilon2","pi","halfPi","quarterPi","tau","degrees","radians","abs","atan","atan2","cos","hypot","sin","sign","x","sqrt","acos","asin","haversin"],"sources":["../../../../node_modules/d3-geo/src/math.js"],"sourcesContent":["export var epsilon = 1e-6;\nexport var epsilon2 = 1e-12;\nexport var pi = Math.PI;\nexport var halfPi = pi / 2;\nexport var quarterPi = pi / 4;\nexport var tau = pi * 2;\n\nexport var degrees = 180 / pi;\nexport var radians = pi / 180;\n\nexport var abs = Math.abs;\nexport var atan = Math.atan;\nexport var atan2 = Math.atan2;\nexport var cos = Math.cos;\nexport var ceil = Math.ceil;\nexport var exp = Math.exp;\nexport var floor = Math.floor;\nexport var hypot = Math.hypot;\nexport var log = Math.log;\nexport var pow = Math.pow;\nexport var sin = Math.sin;\nexport var sign = Math.sign || function(x) { return x > 0 ? 1 : x < 0 ? -1 : 0; };\nexport var sqrt = Math.sqrt;\nexport var tan = Math.tan;\n\nexport function acos(x) {\n return x > 1 ? 0 : x < -1 ? pi : Math.acos(x);\n}\n\nexport function asin(x) {\n return x > 1 ? halfPi : x < -1 ? -halfPi : Math.asin(x);\n}\n\nexport function haversin(x) {\n return (x = sin(x / 2)) * x;\n}\n"],"ignoreList":[0],"mappings":"A,aAAA,IAAWA,EAAU,KACVC,EAAW,MACXC,EAAK,KAAK,GACVC,EAASD,EAAK,EACdE,EAAYF,EAAK,EACjBG,EAAMH,EAAK,EAEXI,EAAU,IAAMJ,EAChBK,EAAUL,EAAK,IAEfM,EAAM,KAAK,IACXC,EAAO,KAAK,KACZC,EAAQ,KAAK,MACbC,EAAM,KAAK,IAIXC,EAAQ,KAAK,MAGbC,EAAM,KAAK,IACXC,EAAO,KAAK,MAAQ,SAAS,EAAG,CAAE,OAAOC,EAAI,EAAI,EAAIA,EAAI,EAAI,GAAK,CAAG,EACrEC,EAAO,KAAK,KAGvB,SAAgBC,EAAK,EAAG,CACtB,OAAOF,EAAI,EAAI,EAAIA,EAAI,GAAKb,EAAK,KAAK,KAAKa,CAAC,CAC9C,CAEA,SAAgBG,EAAK,EAAG,CACtB,OAAOH,EAAI,EAAIZ,EAASY,EAAI,GAAK,CAACZ,EAAS,KAAK,KAAKY,CAAC,CACxD,CAEA,SAAgBI,EAAS,EAAG,CAC1B,OAAQ,EAAIN,EAAIE,EAAI,CAAC,GAAKA,CAC5B,C"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
// node_modules/d3-geo/src/math.js
|
|
3
|
+
var e = 1e-6, t = 1e-12, n = Math.PI, r = n / 2, i = n / 4, a = n * 2, o = 180 / n, s = n / 180, c = Math.abs, l = Math.atan, u = Math.atan2, d = Math.cos, f = Math.hypot, p = Math.sin, m = Math.sign || function(e) {
|
|
4
|
+
return e > 0 ? 1 : e < 0 ? -1 : 0;
|
|
5
|
+
}, h = Math.sqrt;
|
|
6
|
+
function g(e) {
|
|
7
|
+
return e > 1 ? 0 : e < -1 ? n : Math.acos(e);
|
|
8
|
+
}
|
|
9
|
+
function _(e) {
|
|
10
|
+
return e > 1 ? r : e < -1 ? -r : Math.asin(e);
|
|
11
|
+
}
|
|
12
|
+
function v(e) {
|
|
13
|
+
return (e = p(e / 2)) * e;
|
|
14
|
+
}
|
|
15
|
+
export { c as abs, g as acos, _ as asin, l as atan, u as atan2, d as cos, o as degrees, e as epsilon, t as epsilon2, r as halfPi, v as haversin, f as hypot, n as pi, i as quarterPi, s as radians, m as sign, p as sin, h as sqrt, a as tau };
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=math.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"math.js","names":["epsilon","epsilon2","pi","halfPi","quarterPi","tau","degrees","radians","abs","atan","atan2","cos","hypot","sin","sign","x","sqrt","acos","asin","haversin"],"sources":["../../../../node_modules/d3-geo/src/math.js"],"sourcesContent":["export var epsilon = 1e-6;\nexport var epsilon2 = 1e-12;\nexport var pi = Math.PI;\nexport var halfPi = pi / 2;\nexport var quarterPi = pi / 4;\nexport var tau = pi * 2;\n\nexport var degrees = 180 / pi;\nexport var radians = pi / 180;\n\nexport var abs = Math.abs;\nexport var atan = Math.atan;\nexport var atan2 = Math.atan2;\nexport var cos = Math.cos;\nexport var ceil = Math.ceil;\nexport var exp = Math.exp;\nexport var floor = Math.floor;\nexport var hypot = Math.hypot;\nexport var log = Math.log;\nexport var pow = Math.pow;\nexport var sin = Math.sin;\nexport var sign = Math.sign || function(x) { return x > 0 ? 1 : x < 0 ? -1 : 0; };\nexport var sqrt = Math.sqrt;\nexport var tan = Math.tan;\n\nexport function acos(x) {\n return x > 1 ? 0 : x < -1 ? pi : Math.acos(x);\n}\n\nexport function asin(x) {\n return x > 1 ? halfPi : x < -1 ? -halfPi : Math.asin(x);\n}\n\nexport function haversin(x) {\n return (x = sin(x / 2)) * x;\n}\n"],"ignoreList":[0],"mappings":";;AAAA,IAAWA,IAAU,MACVC,IAAW,OACXC,IAAK,KAAK,IACVC,IAASD,IAAK,GACdE,IAAYF,IAAK,GACjBG,IAAMH,IAAK,GAEXI,IAAU,MAAMJ,GAChBK,IAAUL,IAAK,KAEfM,IAAM,KAAK,KACXC,IAAO,KAAK,MACZC,IAAQ,KAAK,OACbC,IAAM,KAAK,KAIXC,IAAQ,KAAK,OAGbC,IAAM,KAAK,KACXC,IAAO,KAAK,QAAQ,SAAS,GAAG;CAAE,OAAOC,IAAI,IAAI,IAAIA,IAAI,IAAI,KAAK;AAAG,GACrEC,IAAO,KAAK;AAGvB,SAAgBC,EAAK,GAAG;CACtB,OAAOF,IAAI,IAAI,IAAIA,IAAI,KAAKb,IAAK,KAAK,KAAKa,CAAC;AAC9C;AAEA,SAAgBG,EAAK,GAAG;CACtB,OAAOH,IAAI,IAAIZ,IAASY,IAAI,KAAK,CAACZ,IAAS,KAAK,KAAKY,CAAC;AACxD;AAEA,SAAgBI,EAAS,GAAG;CAC1B,QAAQ,IAAIN,EAAIE,IAAI,CAAC,KAAKA;AAC5B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"noop.cjs","names":["noop"],"sources":["../../../../node_modules/d3-geo/src/noop.js"],"sourcesContent":["export default function noop() {}\n"],"ignoreList":[0],"mappings":"A,aAAA,SAAwBA,GAAO,CAAC,C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"noop.js","names":["noop"],"sources":["../../../../node_modules/d3-geo/src/noop.js"],"sourcesContent":["export default function noop() {}\n"],"ignoreList":[0],"mappings":";;AAAA,SAAwBA,IAAO,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";const e=require("../../../d3-array/dist/d3-array.cjs"),t=require("../math.cjs"),n=require("../noop.cjs");var r=new e.Adder,i=new e.Adder,a,o,s,c,l={point:n.default,lineStart:n.default,lineEnd:n.default,polygonStart:function(){l.lineStart=u,l.lineEnd=p},polygonEnd:function(){l.lineStart=l.lineEnd=l.point=n.default,r.add(t.abs(i)),i=new e.Adder},result:function(){var t=r/2;return r=new e.Adder,t}};function u(){l.point=d}function d(e,t){l.point=f,a=s=e,o=c=t}function f(e,t){i.add(c*e-s*t),s=e,c=t}function p(){f(a,o)}exports.default=l;
|
|
2
|
+
//# sourceMappingURL=area.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"area.cjs","names":["Adder","noop","abs","require_d3_array","require_math","require_noop","areaSum","areaRingSum","x00","y00","x0","y0","areaStream","areaRingStart","areaRingEnd","area","areaPointFirst","areaPoint","x","y"],"sources":["../../../../../node_modules/d3-geo/src/path/area.js"],"sourcesContent":["import {Adder} from \"d3-array\";\nimport {abs} from \"../math.js\";\nimport noop from \"../noop.js\";\n\nvar areaSum = new Adder(),\n areaRingSum = new Adder(),\n x00,\n y00,\n x0,\n y0;\n\nvar areaStream = {\n point: noop,\n lineStart: noop,\n lineEnd: noop,\n polygonStart: function() {\n areaStream.lineStart = areaRingStart;\n areaStream.lineEnd = areaRingEnd;\n },\n polygonEnd: function() {\n areaStream.lineStart = areaStream.lineEnd = areaStream.point = noop;\n areaSum.add(abs(areaRingSum));\n areaRingSum = new Adder();\n },\n result: function() {\n var area = areaSum / 2;\n areaSum = new Adder();\n return area;\n }\n};\n\nfunction areaRingStart() {\n areaStream.point = areaPointFirst;\n}\n\nfunction areaPointFirst(x, y) {\n areaStream.point = areaPoint;\n x00 = x0 = x, y00 = y0 = y;\n}\n\nfunction areaPoint(x, y) {\n areaRingSum.add(y0 * x - x0 * y);\n x0 = x, y0 = y;\n}\n\nfunction areaRingEnd() {\n areaPoint(x00, y00);\n}\n\nexport default areaStream;\n"],"ignoreList":[0],"mappings":"A,sHAIA,IAAIM,EAAU,IAAIN,EAAAA,MACdO,EAAc,IAAIP,EAAAA,MAClBQ,EACAC,EACAC,EACAC,EAEAC,EAAa,CACf,MAAOX,EAAAA,QACP,UAAWA,EAAAA,QACX,QAASA,EAAAA,QACT,aAAc,UAAW,CACvB,EAAW,UAAYY,EACvB,EAAW,QAAUC,CACvB,EACA,WAAY,UAAW,CACrB,EAAW,UAAY,EAAW,QAAU,EAAW,MAAQb,EAAAA,QAC/DK,EAAQ,IAAIJ,EAAAA,IAAIK,CAAW,CAAC,EAC5B,EAAc,IAAIP,EAAAA,KACpB,EACA,OAAQ,UAAW,CACjB,IAAIe,EAAOT,EAAU,EAErB,MADA,GAAU,IAAIN,EAAAA,MACPe,CACT,CACF,EAEA,SAASF,GAAgB,CACvB,EAAW,MAAQG,CACrB,CAEA,SAASA,EAAe,EAAG,EAAG,CAC5B,EAAW,MAAQC,EACnB,EAAM,EAAKC,EAAG,EAAM,EAAKC,CAC3B,CAEA,SAASF,EAAU,EAAG,EAAG,CACvBV,EAAY,IAAII,EAAKO,EAAIR,EAAKS,CAAC,EAC/B,EAAKD,EAAG,EAAKC,CACf,CAEA,SAASL,GAAc,CACrBG,EAAUT,EAAKC,CAAG,CACpB,C"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { Adder as e } from "../../../d3-array/dist/d3-array.js";
|
|
3
|
+
import { abs as t } from "../math.js";
|
|
4
|
+
import n from "../noop.js";
|
|
5
|
+
// node_modules/d3-geo/src/path/area.js
|
|
6
|
+
var r = new e(), i = new e(), a, o, s, c, l = {
|
|
7
|
+
point: n,
|
|
8
|
+
lineStart: n,
|
|
9
|
+
lineEnd: n,
|
|
10
|
+
polygonStart: function() {
|
|
11
|
+
l.lineStart = u, l.lineEnd = p;
|
|
12
|
+
},
|
|
13
|
+
polygonEnd: function() {
|
|
14
|
+
l.lineStart = l.lineEnd = l.point = n, r.add(t(i)), i = new e();
|
|
15
|
+
},
|
|
16
|
+
result: function() {
|
|
17
|
+
var t = r / 2;
|
|
18
|
+
return r = new e(), t;
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
function u() {
|
|
22
|
+
l.point = d;
|
|
23
|
+
}
|
|
24
|
+
function d(e, t) {
|
|
25
|
+
l.point = f, a = s = e, o = c = t;
|
|
26
|
+
}
|
|
27
|
+
function f(e, t) {
|
|
28
|
+
i.add(c * e - s * t), s = e, c = t;
|
|
29
|
+
}
|
|
30
|
+
function p() {
|
|
31
|
+
f(a, o);
|
|
32
|
+
}
|
|
33
|
+
export { l as default };
|
|
34
|
+
|
|
35
|
+
//# sourceMappingURL=area.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"area.js","names":["noop","areaSum","Adder","areaRingSum","x00","y00","x0","y0","areaStream","areaRingStart","areaRingEnd","abs","area","areaPointFirst","areaPoint","x","y"],"sources":["../../../../../node_modules/d3-geo/src/path/area.js"],"sourcesContent":["import {Adder} from \"d3-array\";\nimport {abs} from \"../math.js\";\nimport noop from \"../noop.js\";\n\nvar areaSum = new Adder(),\n areaRingSum = new Adder(),\n x00,\n y00,\n x0,\n y0;\n\nvar areaStream = {\n point: noop,\n lineStart: noop,\n lineEnd: noop,\n polygonStart: function() {\n areaStream.lineStart = areaRingStart;\n areaStream.lineEnd = areaRingEnd;\n },\n polygonEnd: function() {\n areaStream.lineStart = areaStream.lineEnd = areaStream.point = noop;\n areaSum.add(abs(areaRingSum));\n areaRingSum = new Adder();\n },\n result: function() {\n var area = areaSum / 2;\n areaSum = new Adder();\n return area;\n }\n};\n\nfunction areaRingStart() {\n areaStream.point = areaPointFirst;\n}\n\nfunction areaPointFirst(x, y) {\n areaStream.point = areaPoint;\n x00 = x0 = x, y00 = y0 = y;\n}\n\nfunction areaPoint(x, y) {\n areaRingSum.add(y0 * x - x0 * y);\n x0 = x, y0 = y;\n}\n\nfunction areaRingEnd() {\n areaPoint(x00, y00);\n}\n\nexport default areaStream;\n"],"ignoreList":[0],"mappings":";;;;;AAIA,IAAIC,IAAU,IAAIC,EAAM,GACpBC,IAAc,IAAID,EAAM,GACxBE,GACAC,GACAC,GACAC,GAEAC,IAAa;CACf,OAAOR;CACP,WAAWA;CACX,SAASA;CACT,cAAc,WAAW;EAEvB,AADA,EAAW,YAAYS,GACvB,EAAW,UAAUC;CACvB;CACA,YAAY,WAAW;EAGrB,AAFA,EAAW,YAAY,EAAW,UAAU,EAAW,QAAQV,GAC/DC,EAAQ,IAAIU,EAAIR,CAAW,CAAC,GAC5B,IAAc,IAAID,EAAM;CAC1B;CACA,QAAQ,WAAW;EACjB,IAAIU,IAAOX,IAAU;EAErB,OADA,IAAU,IAAIC,EAAM,GACbU;CACT;AACF;AAEA,SAASH,IAAgB;CACvB,EAAW,QAAQI;AACrB;AAEA,SAASA,EAAe,GAAG,GAAG;CAE5B,AADA,EAAW,QAAQC,GACnB,IAAM,IAAKC,GAAG,IAAM,IAAKC;AAC3B;AAEA,SAASF,EAAU,GAAG,GAAG;CAEvB,AADAX,EAAY,IAAII,IAAKQ,IAAIT,IAAKU,CAAC,GAC/B,IAAKD,GAAG,IAAKC;AACf;AAEA,SAASN,IAAc;CACrB,EAAUN,GAAKC,CAAG;AACpB"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";const e=require("../noop.cjs");var t=1/0,n=t,r=-t,i=r,a={point:o,lineStart:e.default,lineEnd:e.default,polygonStart:e.default,polygonEnd:e.default,result:function(){var e=[[t,n],[r,i]];return r=i=-(n=t=1/0),e}};function o(e,a){e<t&&(t=e),e>r&&(r=e),a<n&&(n=a),a>i&&(i=a)}exports.default=a;
|
|
2
|
+
//# sourceMappingURL=bounds.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bounds.cjs","names":["noop","require_noop","x0","y0","x1","y1","boundsStream","boundsPoint","bounds","x","y"],"sources":["../../../../../node_modules/d3-geo/src/path/bounds.js"],"sourcesContent":["import noop from \"../noop.js\";\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"],"ignoreList":[0],"mappings":"A,4CAEA,IAAIE,EAAK,IACLC,EAAKD,EACLE,EAAK,CAACF,EACNG,EAAKD,EAELE,EAAe,CACjB,MAAOC,EACP,UAAWP,EAAAA,QACX,QAASA,EAAAA,QACT,aAAcA,EAAAA,QACd,WAAYA,EAAAA,QACZ,OAAQ,UAAW,CACjB,IAAIQ,EAAS,CAAC,CAACN,EAAIC,CAAE,EAAG,CAACC,EAAIC,CAAE,CAAC,EAEhC,MADA,GAAK,EAAK,EAAE,EAAK,EAAK,KACfG,CACT,CACF,EAEA,SAASD,EAAY,EAAG,EAAG,CACrBE,EAAIP,IAAI,EAAKO,GACbA,EAAIL,IAAI,EAAKK,GACbC,EAAIP,IAAI,EAAKO,GACbA,EAAIL,IAAI,EAAKK,EACnB,C"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import e from "../noop.js";
|
|
3
|
+
// node_modules/d3-geo/src/path/bounds.js
|
|
4
|
+
var t = Infinity, n = t, r = -t, i = r, a = {
|
|
5
|
+
point: o,
|
|
6
|
+
lineStart: e,
|
|
7
|
+
lineEnd: e,
|
|
8
|
+
polygonStart: e,
|
|
9
|
+
polygonEnd: e,
|
|
10
|
+
result: function() {
|
|
11
|
+
var e = [[t, n], [r, i]];
|
|
12
|
+
return r = i = -(n = t = Infinity), e;
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
function o(e, a) {
|
|
16
|
+
e < t && (t = e), e > r && (r = e), a < n && (n = a), a > i && (i = a);
|
|
17
|
+
}
|
|
18
|
+
export { a as default };
|
|
19
|
+
|
|
20
|
+
//# sourceMappingURL=bounds.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bounds.js","names":["noop","x0","y0","x1","y1","boundsStream","boundsPoint","bounds","x","y"],"sources":["../../../../../node_modules/d3-geo/src/path/bounds.js"],"sourcesContent":["import noop from \"../noop.js\";\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"],"ignoreList":[0],"mappings":";;;AAEA,IAAIC,IAAK,UACLC,IAAKD,GACLE,IAAK,CAACF,GACNG,IAAKD,GAELE,IAAe;CACjB,OAAOC;CACP,WAAWN;CACX,SAASA;CACT,cAAcA;CACd,YAAYA;CACZ,QAAQ,WAAW;EACjB,IAAIO,IAAS,CAAC,CAACN,GAAIC,CAAE,GAAG,CAACC,GAAIC,CAAE,CAAC;EAEhC,OADA,IAAK,IAAK,EAAE,IAAK,IAAK,WACfG;CACT;AACF;AAEA,SAASD,EAAY,GAAG,GAAG;CAIzB,AAHIE,IAAIP,MAAI,IAAKO,IACbA,IAAIL,MAAI,IAAKK,IACbC,IAAIP,MAAI,IAAKO,IACbA,IAAIL,MAAI,IAAKK;AACnB"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";const e=require("../math.cjs");var t=0,n=0,r=0,i=0,a=0,o=0,s=0,c=0,l=0,u,d,f,p,m={point:h,lineStart:g,lineEnd:y,polygonStart:function(){m.lineStart=b,m.lineEnd=x},polygonEnd:function(){m.point=h,m.lineStart=g,m.lineEnd=y},result:function(){var e=l?[s/l,c/l]:o?[i/o,a/o]:r?[t/r,n/r]:[NaN,NaN];return t=n=r=i=a=o=s=c=l=0,e}};function h(e,i){t+=e,n+=i,++r}function g(){m.point=_}function _(e,t){m.point=v,h(f=e,p=t)}function v(t,n){var r=t-f,s=n-p,c=e.sqrt(r*r+s*s);i+=c*(f+t)/2,a+=c*(p+n)/2,o+=c,h(f=t,p=n)}function y(){m.point=h}function b(){m.point=S}function x(){C(u,d)}function S(e,t){m.point=C,h(u=f=e,d=p=t)}function C(t,n){var r=t-f,u=n-p,d=e.sqrt(r*r+u*u);i+=d*(f+t)/2,a+=d*(p+n)/2,o+=d,d=p*t-f*n,s+=d*(f+t),c+=d*(p+n),l+=d*3,h(f=t,p=n)}exports.default=m;
|
|
2
|
+
//# sourceMappingURL=centroid.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"centroid.cjs","names":["sqrt","require_math","X0","Y0","Z0","X1","Y1","Z1","X2","Y2","Z2","x00","y00","x0","y0","centroidStream","centroidPoint","centroidLineStart","centroidLineEnd","centroidRingStart","centroidRingEnd","centroid","x","y","centroidPointFirstLine","centroidPointLine","dx","dy","z","centroidPointFirstRing","centroidPointRing"],"sources":["../../../../../node_modules/d3-geo/src/path/centroid.js"],"sourcesContent":["import {sqrt} from \"../math.js\";\n\n// TODO Enforce positive area for exterior, negative area for interior?\n\nvar X0 = 0,\n Y0 = 0,\n Z0 = 0,\n X1 = 0,\n Y1 = 0,\n Z1 = 0,\n X2 = 0,\n Y2 = 0,\n Z2 = 0,\n x00,\n y00,\n x0,\n y0;\n\nvar centroidStream = {\n point: centroidPoint,\n lineStart: centroidLineStart,\n lineEnd: centroidLineEnd,\n polygonStart: function() {\n centroidStream.lineStart = centroidRingStart;\n centroidStream.lineEnd = centroidRingEnd;\n },\n polygonEnd: function() {\n centroidStream.point = centroidPoint;\n centroidStream.lineStart = centroidLineStart;\n centroidStream.lineEnd = centroidLineEnd;\n },\n result: function() {\n var centroid = Z2 ? [X2 / Z2, Y2 / Z2]\n : Z1 ? [X1 / Z1, Y1 / Z1]\n : Z0 ? [X0 / Z0, Y0 / Z0]\n : [NaN, NaN];\n X0 = Y0 = Z0 =\n X1 = Y1 = Z1 =\n X2 = Y2 = Z2 = 0;\n return centroid;\n }\n};\n\nfunction centroidPoint(x, y) {\n X0 += x;\n Y0 += y;\n ++Z0;\n}\n\nfunction centroidLineStart() {\n centroidStream.point = centroidPointFirstLine;\n}\n\nfunction centroidPointFirstLine(x, y) {\n centroidStream.point = centroidPointLine;\n centroidPoint(x0 = x, y0 = y);\n}\n\nfunction centroidPointLine(x, y) {\n var dx = x - x0, dy = y - y0, z = sqrt(dx * dx + dy * dy);\n X1 += z * (x0 + x) / 2;\n Y1 += z * (y0 + y) / 2;\n Z1 += z;\n centroidPoint(x0 = x, y0 = y);\n}\n\nfunction centroidLineEnd() {\n centroidStream.point = centroidPoint;\n}\n\nfunction centroidRingStart() {\n centroidStream.point = centroidPointFirstRing;\n}\n\nfunction centroidRingEnd() {\n centroidPointRing(x00, y00);\n}\n\nfunction centroidPointFirstRing(x, y) {\n centroidStream.point = centroidPointRing;\n centroidPoint(x00 = x0 = x, y00 = y0 = y);\n}\n\nfunction centroidPointRing(x, y) {\n var dx = x - x0,\n dy = y - y0,\n z = sqrt(dx * dx + dy * dy);\n\n X1 += z * (x0 + x) / 2;\n Y1 += z * (y0 + y) / 2;\n Z1 += z;\n\n z = y0 * x - x0 * y;\n X2 += z * (x0 + x);\n Y2 += z * (y0 + y);\n Z2 += z * 3;\n centroidPoint(x0 = x, y0 = y);\n}\n\nexport default centroidStream;\n"],"ignoreList":[0],"mappings":"A,4CAIA,IAAIE,EAAK,EACLC,EAAK,EACLC,EAAK,EACLC,EAAK,EACLC,EAAK,EACLC,EAAK,EACLC,EAAK,EACLC,EAAK,EACLC,EAAK,EACLC,EACAC,EACAC,EACAC,EAEAC,EAAiB,CACnB,MAAOC,EACP,UAAWC,EACX,QAASC,EACT,aAAc,UAAW,CACvB,EAAe,UAAYC,EAC3B,EAAe,QAAUC,CAC3B,EACA,WAAY,UAAW,CACrB,EAAe,MAAQJ,EACvB,EAAe,UAAYC,EAC3B,EAAe,QAAUC,CAC3B,EACA,OAAQ,UAAW,CACjB,IAAIG,EAAWX,EAAK,CAACF,EAAKE,EAAID,EAAKC,CAAE,EAC/BH,EAAK,CAACF,EAAKE,EAAID,EAAKC,CAAE,EACtBH,EAAK,CAACF,EAAKE,EAAID,EAAKC,CAAE,EACtB,CAAC,IAAK,GAAG,EAIf,MAHA,GAAK,EAAK,EACV,EAAK,EAAK,EACV,EAAK,EAAK,EAAK,EACRiB,CACT,CACF,EAEA,SAASL,EAAc,EAAG,EAAG,CAC3B,GAAMM,EACN,GAAMC,EACN,EAAEnB,CACJ,CAEA,SAASa,GAAoB,CAC3B,EAAe,MAAQO,CACzB,CAEA,SAASA,EAAuB,EAAG,EAAG,CACpC,EAAe,MAAQC,EACvBT,EAAc,EAAKM,EAAG,EAAKC,CAAC,CAC9B,CAEA,SAASE,EAAkB,EAAG,EAAG,CAC/B,IAAIC,EAAKJ,EAAIT,EAAIc,EAAKJ,EAAIT,EAAIc,EAAI5B,EAAAA,KAAK0B,EAAKA,EAAKC,EAAKA,CAAE,EACxD,GAAMC,GAAKf,EAAKS,GAAK,EACrB,GAAMM,GAAKd,EAAKS,GAAK,EACrB,GAAMK,EACNZ,EAAc,EAAKM,EAAG,EAAKC,CAAC,CAC9B,CAEA,SAASL,GAAkB,CACzB,EAAe,MAAQF,CACzB,CAEA,SAASG,GAAoB,CAC3B,EAAe,MAAQU,CACzB,CAEA,SAAST,GAAkB,CACzBU,EAAkBnB,EAAKC,CAAG,CAC5B,CAEA,SAASiB,EAAuB,EAAG,EAAG,CACpC,EAAe,MAAQC,EACvBd,EAAc,EAAM,EAAKM,EAAG,EAAM,EAAKC,CAAC,CAC1C,CAEA,SAASO,EAAkB,EAAG,EAAG,CAC/B,IAAIJ,EAAKJ,EAAIT,EACTc,EAAKJ,EAAIT,EACTc,EAAI5B,EAAAA,KAAK0B,EAAKA,EAAKC,EAAKA,CAAE,EAE9B,GAAMC,GAAKf,EAAKS,GAAK,EACrB,GAAMM,GAAKd,EAAKS,GAAK,EACrB,GAAMK,EAEN,EAAId,EAAKQ,EAAIT,EAAKU,EAClB,GAAMK,GAAKf,EAAKS,GAChB,GAAMM,GAAKd,EAAKS,GAChB,GAAMK,EAAI,EACVZ,EAAc,EAAKM,EAAG,EAAKC,CAAC,CAC9B,C"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { sqrt as e } from "../math.js";
|
|
3
|
+
// node_modules/d3-geo/src/path/centroid.js
|
|
4
|
+
var t = 0, n = 0, r = 0, i = 0, a = 0, o = 0, s = 0, c = 0, l = 0, u, d, f, p, m = {
|
|
5
|
+
point: h,
|
|
6
|
+
lineStart: g,
|
|
7
|
+
lineEnd: y,
|
|
8
|
+
polygonStart: function() {
|
|
9
|
+
m.lineStart = b, m.lineEnd = x;
|
|
10
|
+
},
|
|
11
|
+
polygonEnd: function() {
|
|
12
|
+
m.point = h, m.lineStart = g, m.lineEnd = y;
|
|
13
|
+
},
|
|
14
|
+
result: function() {
|
|
15
|
+
var e = l ? [s / l, c / l] : o ? [i / o, a / o] : r ? [t / r, n / r] : [NaN, NaN];
|
|
16
|
+
return t = n = r = i = a = o = s = c = l = 0, e;
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
function h(e, i) {
|
|
20
|
+
t += e, n += i, ++r;
|
|
21
|
+
}
|
|
22
|
+
function g() {
|
|
23
|
+
m.point = _;
|
|
24
|
+
}
|
|
25
|
+
function _(e, t) {
|
|
26
|
+
m.point = v, h(f = e, p = t);
|
|
27
|
+
}
|
|
28
|
+
function v(t, n) {
|
|
29
|
+
var r = t - f, s = n - p, c = e(r * r + s * s);
|
|
30
|
+
i += c * (f + t) / 2, a += c * (p + n) / 2, o += c, h(f = t, p = n);
|
|
31
|
+
}
|
|
32
|
+
function y() {
|
|
33
|
+
m.point = h;
|
|
34
|
+
}
|
|
35
|
+
function b() {
|
|
36
|
+
m.point = S;
|
|
37
|
+
}
|
|
38
|
+
function x() {
|
|
39
|
+
C(u, d);
|
|
40
|
+
}
|
|
41
|
+
function S(e, t) {
|
|
42
|
+
m.point = C, h(u = f = e, d = p = t);
|
|
43
|
+
}
|
|
44
|
+
function C(t, n) {
|
|
45
|
+
var r = t - f, u = n - p, d = e(r * r + u * u);
|
|
46
|
+
i += d * (f + t) / 2, a += d * (p + n) / 2, o += d, d = p * t - f * n, s += d * (f + t), c += d * (p + n), l += d * 3, h(f = t, p = n);
|
|
47
|
+
}
|
|
48
|
+
export { m as default };
|
|
49
|
+
|
|
50
|
+
//# sourceMappingURL=centroid.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"centroid.js","names":["X0","Y0","Z0","X1","Y1","Z1","X2","Y2","Z2","x00","y00","x0","y0","centroidStream","centroidPoint","centroidLineStart","centroidLineEnd","centroidRingStart","centroidRingEnd","centroid","x","y","centroidPointFirstLine","centroidPointLine","dx","dy","z","sqrt","centroidPointFirstRing","centroidPointRing"],"sources":["../../../../../node_modules/d3-geo/src/path/centroid.js"],"sourcesContent":["import {sqrt} from \"../math.js\";\n\n// TODO Enforce positive area for exterior, negative area for interior?\n\nvar X0 = 0,\n Y0 = 0,\n Z0 = 0,\n X1 = 0,\n Y1 = 0,\n Z1 = 0,\n X2 = 0,\n Y2 = 0,\n Z2 = 0,\n x00,\n y00,\n x0,\n y0;\n\nvar centroidStream = {\n point: centroidPoint,\n lineStart: centroidLineStart,\n lineEnd: centroidLineEnd,\n polygonStart: function() {\n centroidStream.lineStart = centroidRingStart;\n centroidStream.lineEnd = centroidRingEnd;\n },\n polygonEnd: function() {\n centroidStream.point = centroidPoint;\n centroidStream.lineStart = centroidLineStart;\n centroidStream.lineEnd = centroidLineEnd;\n },\n result: function() {\n var centroid = Z2 ? [X2 / Z2, Y2 / Z2]\n : Z1 ? [X1 / Z1, Y1 / Z1]\n : Z0 ? [X0 / Z0, Y0 / Z0]\n : [NaN, NaN];\n X0 = Y0 = Z0 =\n X1 = Y1 = Z1 =\n X2 = Y2 = Z2 = 0;\n return centroid;\n }\n};\n\nfunction centroidPoint(x, y) {\n X0 += x;\n Y0 += y;\n ++Z0;\n}\n\nfunction centroidLineStart() {\n centroidStream.point = centroidPointFirstLine;\n}\n\nfunction centroidPointFirstLine(x, y) {\n centroidStream.point = centroidPointLine;\n centroidPoint(x0 = x, y0 = y);\n}\n\nfunction centroidPointLine(x, y) {\n var dx = x - x0, dy = y - y0, z = sqrt(dx * dx + dy * dy);\n X1 += z * (x0 + x) / 2;\n Y1 += z * (y0 + y) / 2;\n Z1 += z;\n centroidPoint(x0 = x, y0 = y);\n}\n\nfunction centroidLineEnd() {\n centroidStream.point = centroidPoint;\n}\n\nfunction centroidRingStart() {\n centroidStream.point = centroidPointFirstRing;\n}\n\nfunction centroidRingEnd() {\n centroidPointRing(x00, y00);\n}\n\nfunction centroidPointFirstRing(x, y) {\n centroidStream.point = centroidPointRing;\n centroidPoint(x00 = x0 = x, y00 = y0 = y);\n}\n\nfunction centroidPointRing(x, y) {\n var dx = x - x0,\n dy = y - y0,\n z = sqrt(dx * dx + dy * dy);\n\n X1 += z * (x0 + x) / 2;\n Y1 += z * (y0 + y) / 2;\n Z1 += z;\n\n z = y0 * x - x0 * y;\n X2 += z * (x0 + x);\n Y2 += z * (y0 + y);\n Z2 += z * 3;\n centroidPoint(x0 = x, y0 = y);\n}\n\nexport default centroidStream;\n"],"ignoreList":[0],"mappings":";;;AAIA,IAAIA,IAAK,GACLC,IAAK,GACLC,IAAK,GACLC,IAAK,GACLC,IAAK,GACLC,IAAK,GACLC,IAAK,GACLC,IAAK,GACLC,IAAK,GACLC,GACAC,GACAC,GACAC,GAEAC,IAAiB;CACnB,OAAOC;CACP,WAAWC;CACX,SAASC;CACT,cAAc,WAAW;EAEvB,AADA,EAAe,YAAYC,GAC3B,EAAe,UAAUC;CAC3B;CACA,YAAY,WAAW;EAGrB,AAFA,EAAe,QAAQJ,GACvB,EAAe,YAAYC,GAC3B,EAAe,UAAUC;CAC3B;CACA,QAAQ,WAAW;EACjB,IAAIG,IAAWX,IAAK,CAACF,IAAKE,GAAID,IAAKC,CAAE,IAC/BH,IAAK,CAACF,IAAKE,GAAID,IAAKC,CAAE,IACtBH,IAAK,CAACF,IAAKE,GAAID,IAAKC,CAAE,IACtB,CAAC,KAAK,GAAG;EAIf,OAHA,IAAK,IAAK,IACV,IAAK,IAAK,IACV,IAAK,IAAK,IAAK,GACRiB;CACT;AACF;AAEA,SAASL,EAAc,GAAG,GAAG;CAG3B,AAFA,KAAMM,GACN,KAAMC,GACN,EAAEnB;AACJ;AAEA,SAASa,IAAoB;CAC3B,EAAe,QAAQO;AACzB;AAEA,SAASA,EAAuB,GAAG,GAAG;CAEpC,AADA,EAAe,QAAQC,GACvBT,EAAc,IAAKM,GAAG,IAAKC,CAAC;AAC9B;AAEA,SAASE,EAAkB,GAAG,GAAG;CAC/B,IAAIC,IAAKJ,IAAIT,GAAIc,IAAKJ,IAAIT,GAAIc,IAAIC,EAAKH,IAAKA,IAAKC,IAAKA,CAAE;CAIxD,AAHA,KAAMC,KAAKf,IAAKS,KAAK,GACrB,KAAMM,KAAKd,IAAKS,KAAK,GACrB,KAAMK,GACNZ,EAAc,IAAKM,GAAG,IAAKC,CAAC;AAC9B;AAEA,SAASL,IAAkB;CACzB,EAAe,QAAQF;AACzB;AAEA,SAASG,IAAoB;CAC3B,EAAe,QAAQW;AACzB;AAEA,SAASV,IAAkB;CACzB,EAAkBT,GAAKC,CAAG;AAC5B;AAEA,SAASkB,EAAuB,GAAG,GAAG;CAEpC,AADA,EAAe,QAAQC,GACvBf,EAAc,IAAM,IAAKM,GAAG,IAAM,IAAKC,CAAC;AAC1C;AAEA,SAASQ,EAAkB,GAAG,GAAG;CAC/B,IAAIL,IAAKJ,IAAIT,GACTc,IAAKJ,IAAIT,GACTc,IAAIC,EAAKH,IAAKA,IAAKC,IAAKA,CAAE;CAU9B,AARA,KAAMC,KAAKf,IAAKS,KAAK,GACrB,KAAMM,KAAKd,IAAKS,KAAK,GACrB,KAAMK,GAEN,IAAId,IAAKQ,IAAIT,IAAKU,GAClB,KAAMK,KAAKf,IAAKS,IAChB,KAAMM,KAAKd,IAAKS,IAChB,KAAMK,IAAI,GACVZ,EAAc,IAAKM,GAAG,IAAKC,CAAC;AAC9B"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";const e=require("../math.cjs"),t=require("../noop.cjs");function n(e){this._context=e}n.prototype={_radius:4.5,pointRadius:function(e){return this._radius=e,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._context.closePath(),this._point=NaN},point:function(t,n){switch(this._point){case 0:this._context.moveTo(t,n),this._point=1;break;case 1:this._context.lineTo(t,n);break;default:this._context.moveTo(t+this._radius,n),this._context.arc(t,n,this._radius,0,e.tau)}},result:t.default},exports.default=n;
|
|
2
|
+
//# sourceMappingURL=context.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.cjs","names":["tau","noop","require_math","require_noop","PathContext","context","_","x","y"],"sources":["../../../../../node_modules/d3-geo/src/path/context.js"],"sourcesContent":["import {tau} from \"../math.js\";\nimport noop from \"../noop.js\";\n\nexport default function PathContext(context) {\n this._context = context;\n}\n\nPathContext.prototype = {\n _radius: 4.5,\n pointRadius: function(_) {\n return this._radius = _, this;\n },\n polygonStart: function() {\n this._line = 0;\n },\n polygonEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._point = 0;\n },\n lineEnd: function() {\n if (this._line === 0) this._context.closePath();\n this._point = NaN;\n },\n point: function(x, y) {\n switch (this._point) {\n case 0: {\n this._context.moveTo(x, y);\n this._point = 1;\n break;\n }\n case 1: {\n this._context.lineTo(x, y);\n break;\n }\n default: {\n this._context.moveTo(x + this._radius, y);\n this._context.arc(x, y, this._radius, 0, tau);\n break;\n }\n }\n },\n result: noop\n};\n"],"ignoreList":[0],"mappings":"A,qEAGA,SAAwBI,EAAY,EAAS,CAC3C,KAAK,SAAWC,CAClB,CAEA,EAAY,UAAY,CACtB,QAAS,IACT,YAAa,SAAS,EAAG,CACvB,MAAO,MAAK,QAAUC,EAAG,IAC3B,EACA,aAAc,UAAW,CACvB,KAAK,MAAQ,CACf,EACA,WAAY,UAAW,CACrB,KAAK,MAAQ,GACf,EACA,UAAW,UAAW,CACpB,KAAK,OAAS,CAChB,EACA,QAAS,UAAW,CACd,KAAK,QAAU,GAAG,KAAK,SAAS,UAAU,EAC9C,KAAK,OAAS,GAChB,EACA,MAAO,SAAS,EAAG,EAAG,CACpB,OAAQ,KAAK,OAAb,CACE,IAAK,GACH,KAAK,SAAS,OAAOC,EAAGC,CAAC,EACzB,KAAK,OAAS,EACd,MAEF,IAAK,GACH,KAAK,SAAS,OAAOD,EAAGC,CAAC,EACzB,MAEF,QACE,KAAK,SAAS,OAAOD,EAAI,KAAK,QAASC,CAAC,EACxC,KAAK,SAAS,IAAID,EAAGC,EAAG,KAAK,QAAS,EAAGR,EAAAA,GAAG,CAGhD,CACF,EACA,OAAQC,EAAAA,OACV,E"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { tau as e } from "../math.js";
|
|
3
|
+
import t from "../noop.js";
|
|
4
|
+
// node_modules/d3-geo/src/path/context.js
|
|
5
|
+
function n(e) {
|
|
6
|
+
this._context = e;
|
|
7
|
+
}
|
|
8
|
+
n.prototype = {
|
|
9
|
+
_radius: 4.5,
|
|
10
|
+
pointRadius: function(e) {
|
|
11
|
+
return this._radius = e, this;
|
|
12
|
+
},
|
|
13
|
+
polygonStart: function() {
|
|
14
|
+
this._line = 0;
|
|
15
|
+
},
|
|
16
|
+
polygonEnd: function() {
|
|
17
|
+
this._line = NaN;
|
|
18
|
+
},
|
|
19
|
+
lineStart: function() {
|
|
20
|
+
this._point = 0;
|
|
21
|
+
},
|
|
22
|
+
lineEnd: function() {
|
|
23
|
+
this._line === 0 && this._context.closePath(), this._point = NaN;
|
|
24
|
+
},
|
|
25
|
+
point: function(t, n) {
|
|
26
|
+
switch (this._point) {
|
|
27
|
+
case 0:
|
|
28
|
+
this._context.moveTo(t, n), this._point = 1;
|
|
29
|
+
break;
|
|
30
|
+
case 1:
|
|
31
|
+
this._context.lineTo(t, n);
|
|
32
|
+
break;
|
|
33
|
+
default: this._context.moveTo(t + this._radius, n), this._context.arc(t, n, this._radius, 0, e);
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
result: t
|
|
37
|
+
};
|
|
38
|
+
export { n as default };
|
|
39
|
+
|
|
40
|
+
//# sourceMappingURL=context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.js","names":["noop","PathContext","context","_","x","y","tau"],"sources":["../../../../../node_modules/d3-geo/src/path/context.js"],"sourcesContent":["import {tau} from \"../math.js\";\nimport noop from \"../noop.js\";\n\nexport default function PathContext(context) {\n this._context = context;\n}\n\nPathContext.prototype = {\n _radius: 4.5,\n pointRadius: function(_) {\n return this._radius = _, this;\n },\n polygonStart: function() {\n this._line = 0;\n },\n polygonEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._point = 0;\n },\n lineEnd: function() {\n if (this._line === 0) this._context.closePath();\n this._point = NaN;\n },\n point: function(x, y) {\n switch (this._point) {\n case 0: {\n this._context.moveTo(x, y);\n this._point = 1;\n break;\n }\n case 1: {\n this._context.lineTo(x, y);\n break;\n }\n default: {\n this._context.moveTo(x + this._radius, y);\n this._context.arc(x, y, this._radius, 0, tau);\n break;\n }\n }\n },\n result: noop\n};\n"],"ignoreList":[0],"mappings":";;;;AAGA,SAAwBC,EAAY,GAAS;CAC3C,KAAK,WAAWC;AAClB;AAEA,EAAY,YAAY;CACtB,SAAS;CACT,aAAa,SAAS,GAAG;EACvB,OAAO,KAAK,UAAUC,GAAG;CAC3B;CACA,cAAc,WAAW;EACvB,KAAK,QAAQ;CACf;CACA,YAAY,WAAW;EACrB,KAAK,QAAQ;CACf;CACA,WAAW,WAAW;EACpB,KAAK,SAAS;CAChB;CACA,SAAS,WAAW;EAElB,AADI,KAAK,UAAU,KAAG,KAAK,SAAS,UAAU,GAC9C,KAAK,SAAS;CAChB;CACA,OAAO,SAAS,GAAG,GAAG;EACpB,QAAQ,KAAK,QAAb;GACE,KAAK;IAEH,AADA,KAAK,SAAS,OAAOC,GAAGC,CAAC,GACzB,KAAK,SAAS;IACd;GAEF,KAAK;IACH,KAAK,SAAS,OAAOD,GAAGC,CAAC;IACzB;GAEF,SAEE,AADA,KAAK,SAAS,OAAOD,IAAI,KAAK,SAASC,CAAC,GACxC,KAAK,SAAS,IAAID,GAAGC,GAAG,KAAK,SAAS,GAAGC,CAAG;EAGhD;CACF;CACA,QAAQN;AACV"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";const e=require("../identity.cjs"),t=require("../stream.cjs"),n=require("./area.cjs"),r=require("./bounds.cjs"),i=require("./centroid.cjs"),a=require("./context.cjs"),o=require("./measure.cjs"),s=require("./string.cjs");function c(c,l){let u=3,d=4.5,f,p;function m(e){return e&&(typeof d==`function`&&p.pointRadius(+d.apply(this,arguments)),t.default(e,f(p))),p.result()}return m.area=function(e){return t.default(e,f(n.default)),n.default.result()},m.measure=function(e){return t.default(e,f(o.default)),o.default.result()},m.bounds=function(e){return t.default(e,f(r.default)),r.default.result()},m.centroid=function(e){return t.default(e,f(i.default)),i.default.result()},m.projection=function(t){return arguments.length?(f=t==null?(c=null,e.default):(c=t).stream,m):c},m.context=function(e){return arguments.length?(p=e==null?(l=null,new s.default(u)):new a.default(l=e),typeof d!=`function`&&p.pointRadius(d),m):l},m.pointRadius=function(e){return arguments.length?(d=typeof e==`function`?e:(p.pointRadius(+e),+e),m):d},m.digits=function(e){if(!arguments.length)return u;if(e==null)u=null;else{let t=Math.floor(e);if(!(t>=0))throw RangeError(`invalid digits: ${e}`);u=t}return l===null&&(p=new s.default(u)),m},m.projection(c).digits(u).context(l)}exports.default=c;
|
|
2
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","names":["pathArea","pathMeasure","pathBounds","pathCentroid","identity","PathString","PathContext","require_identity","require_stream","require_area","require_bounds","require_centroid","require_context","require_measure","require_string","path_default","digits","pointRadius","projectionStream","contextStream","path","object","_","projection","context","d"],"sources":["../../../../../node_modules/d3-geo/src/path/index.js"],"sourcesContent":["import identity from \"../identity.js\";\nimport stream from \"../stream.js\";\nimport pathArea from \"./area.js\";\nimport pathBounds from \"./bounds.js\";\nimport pathCentroid from \"./centroid.js\";\nimport PathContext from \"./context.js\";\nimport pathMeasure from \"./measure.js\";\nimport PathString from \"./string.js\";\n\nexport default function(projection, context) {\n let digits = 3,\n pointRadius = 4.5,\n projectionStream,\n contextStream;\n\n function path(object) {\n if (object) {\n if (typeof pointRadius === \"function\") contextStream.pointRadius(+pointRadius.apply(this, arguments));\n stream(object, projectionStream(contextStream));\n }\n return contextStream.result();\n }\n\n path.area = function(object) {\n stream(object, projectionStream(pathArea));\n return pathArea.result();\n };\n\n path.measure = function(object) {\n stream(object, projectionStream(pathMeasure));\n return pathMeasure.result();\n };\n\n path.bounds = function(object) {\n stream(object, projectionStream(pathBounds));\n return pathBounds.result();\n };\n\n path.centroid = function(object) {\n stream(object, projectionStream(pathCentroid));\n return pathCentroid.result();\n };\n\n path.projection = function(_) {\n if (!arguments.length) return projection;\n projectionStream = _ == null ? (projection = null, identity) : (projection = _).stream;\n return path;\n };\n\n path.context = function(_) {\n if (!arguments.length) return context;\n contextStream = _ == null ? (context = null, new PathString(digits)) : new PathContext(context = _);\n if (typeof pointRadius !== \"function\") contextStream.pointRadius(pointRadius);\n return path;\n };\n\n path.pointRadius = function(_) {\n if (!arguments.length) return pointRadius;\n pointRadius = typeof _ === \"function\" ? _ : (contextStream.pointRadius(+_), +_);\n return path;\n };\n\n path.digits = function(_) {\n if (!arguments.length) return digits;\n if (_ == null) digits = null;\n else {\n const d = Math.floor(_);\n if (!(d >= 0)) throw new RangeError(`invalid digits: ${_}`);\n digits = d;\n }\n if (context === null) contextStream = new PathString(digits);\n return path;\n };\n\n return path.projection(projection).digits(digits).context(context);\n}\n"],"ignoreList":[0],"mappings":"A,yOASA,SAAAe,EAAwB,EAAY,EAAS,CAC3C,IAAIC,EAAS,EACTC,EAAc,IACdC,EACAC,EAEJ,SAASC,EAAK,EAAQ,CAKpB,OAJIC,IACE,OAAOJ,GAAgB,YAAYE,EAAc,YAAY,CAACF,EAAY,MAAM,KAAM,SAAS,CAAC,EACpGT,EAAA,QAAOa,EAAQH,EAAiBC,CAAa,CAAC,GAEzCA,EAAc,OAAO,CAC9B,CAqDA,MAnDA,GAAK,KAAO,SAAS,EAAQ,CAE3B,OADAX,EAAA,QAAOa,EAAQH,EAAiBlB,EAAAA,OAAQ,CAAC,EAClCA,EAAAA,QAAS,OAAO,CACzB,EAEA,EAAK,QAAU,SAAS,EAAQ,CAE9B,OADAQ,EAAA,QAAOa,EAAQH,EAAiBjB,EAAAA,OAAW,CAAC,EACrCA,EAAAA,QAAY,OAAO,CAC5B,EAEA,EAAK,OAAS,SAAS,EAAQ,CAE7B,OADAO,EAAA,QAAOa,EAAQH,EAAiBhB,EAAAA,OAAU,CAAC,EACpCA,EAAAA,QAAW,OAAO,CAC3B,EAEA,EAAK,SAAW,SAAS,EAAQ,CAE/B,OADAM,EAAA,QAAOa,EAAQH,EAAiBf,EAAAA,OAAY,CAAC,EACtCA,EAAAA,QAAa,OAAO,CAC7B,EAEA,EAAK,WAAa,SAAS,EAAG,CAG5B,OAFK,UAAU,QACf,EAAmBmB,GAAK,MAAQ,EAAa,KAAMlB,EAAAA,UAAa,EAAakB,EAAA,CAAG,OACzEF,GAFuBG,CAGhC,EAEA,EAAK,QAAU,SAAS,EAAG,CAIzB,OAHK,UAAU,QACf,EAAgBD,GAAK,MAAQ,EAAU,KAAM,IAAIjB,EAAAA,QAAWW,CAAM,GAAK,IAAIV,EAAAA,QAAY,EAAUgB,CAAC,EAC9F,OAAOL,GAAgB,YAAYE,EAAc,YAAYF,CAAW,EACrEG,GAHuBI,CAIhC,EAEA,EAAK,YAAc,SAAS,EAAG,CAG7B,OAFK,UAAU,QACf,EAAc,OAAOF,GAAM,WAAaA,GAAKH,EAAc,YAAY,CAACG,CAAC,EAAG,CAACA,GACtEF,GAFuBH,CAGhC,EAEA,EAAK,OAAS,SAAS,EAAG,CACxB,GAAI,CAAC,UAAU,OAAQ,OAAOD,EAC9B,GAAIM,GAAK,KAAM,EAAS,SACnB,CACH,IAAMG,EAAI,KAAK,MAAMH,CAAC,EACtB,GAAI,EAAEG,GAAK,GAAI,MAAU,WAAW,mBAAmBH,GAAG,EAC1D,EAASG,CACX,CAEA,OADID,IAAY,OAAM,EAAgB,IAAInB,EAAAA,QAAWW,CAAM,GACpDI,CACT,EAEOA,EAAK,WAAWG,CAAU,CAAC,CAAC,OAAOP,CAAM,CAAC,CAAC,QAAQQ,CAAO,CACnE,C"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import e from "../identity.js";
|
|
3
|
+
import t from "../stream.js";
|
|
4
|
+
import n from "./area.js";
|
|
5
|
+
import r from "./bounds.js";
|
|
6
|
+
import i from "./centroid.js";
|
|
7
|
+
import a from "./context.js";
|
|
8
|
+
import o from "./measure.js";
|
|
9
|
+
import s from "./string.js";
|
|
10
|
+
// node_modules/d3-geo/src/path/index.js
|
|
11
|
+
function c(c, l) {
|
|
12
|
+
let u = 3, d = 4.5, f, p;
|
|
13
|
+
function m(e) {
|
|
14
|
+
return e && (typeof d == "function" && p.pointRadius(+d.apply(this, arguments)), t(e, f(p))), p.result();
|
|
15
|
+
}
|
|
16
|
+
return m.area = function(e) {
|
|
17
|
+
return t(e, f(n)), n.result();
|
|
18
|
+
}, m.measure = function(e) {
|
|
19
|
+
return t(e, f(o)), o.result();
|
|
20
|
+
}, m.bounds = function(e) {
|
|
21
|
+
return t(e, f(r)), r.result();
|
|
22
|
+
}, m.centroid = function(e) {
|
|
23
|
+
return t(e, f(i)), i.result();
|
|
24
|
+
}, m.projection = function(t) {
|
|
25
|
+
return arguments.length ? (f = t == null ? (c = null, e) : (c = t).stream, m) : c;
|
|
26
|
+
}, m.context = function(e) {
|
|
27
|
+
return arguments.length ? (p = e == null ? (l = null, new s(u)) : new a(l = e), typeof d != "function" && p.pointRadius(d), m) : l;
|
|
28
|
+
}, m.pointRadius = function(e) {
|
|
29
|
+
return arguments.length ? (d = typeof e == "function" ? e : (p.pointRadius(+e), +e), m) : d;
|
|
30
|
+
}, m.digits = function(e) {
|
|
31
|
+
if (!arguments.length) return u;
|
|
32
|
+
if (e == null) u = null;
|
|
33
|
+
else {
|
|
34
|
+
let t = Math.floor(e);
|
|
35
|
+
if (!(t >= 0)) throw RangeError(`invalid digits: ${e}`);
|
|
36
|
+
u = t;
|
|
37
|
+
}
|
|
38
|
+
return l === null && (p = new s(u)), m;
|
|
39
|
+
}, m.projection(c).digits(u).context(l);
|
|
40
|
+
}
|
|
41
|
+
export { c as default };
|
|
42
|
+
|
|
43
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["pathArea","pathMeasure","pathBounds","pathCentroid","identity","identity_default","stream_default","areaStream","boundsStream","centroidStream","PathContext","lengthStream","PathString","path_default","digits","pointRadius","projectionStream","contextStream","path","object","_","projection","context","d"],"sources":["../../../../../node_modules/d3-geo/src/path/index.js"],"sourcesContent":["import identity from \"../identity.js\";\nimport stream from \"../stream.js\";\nimport pathArea from \"./area.js\";\nimport pathBounds from \"./bounds.js\";\nimport pathCentroid from \"./centroid.js\";\nimport PathContext from \"./context.js\";\nimport pathMeasure from \"./measure.js\";\nimport PathString from \"./string.js\";\n\nexport default function(projection, context) {\n let digits = 3,\n pointRadius = 4.5,\n projectionStream,\n contextStream;\n\n function path(object) {\n if (object) {\n if (typeof pointRadius === \"function\") contextStream.pointRadius(+pointRadius.apply(this, arguments));\n stream(object, projectionStream(contextStream));\n }\n return contextStream.result();\n }\n\n path.area = function(object) {\n stream(object, projectionStream(pathArea));\n return pathArea.result();\n };\n\n path.measure = function(object) {\n stream(object, projectionStream(pathMeasure));\n return pathMeasure.result();\n };\n\n path.bounds = function(object) {\n stream(object, projectionStream(pathBounds));\n return pathBounds.result();\n };\n\n path.centroid = function(object) {\n stream(object, projectionStream(pathCentroid));\n return pathCentroid.result();\n };\n\n path.projection = function(_) {\n if (!arguments.length) return projection;\n projectionStream = _ == null ? (projection = null, identity) : (projection = _).stream;\n return path;\n };\n\n path.context = function(_) {\n if (!arguments.length) return context;\n contextStream = _ == null ? (context = null, new PathString(digits)) : new PathContext(context = _);\n if (typeof pointRadius !== \"function\") contextStream.pointRadius(pointRadius);\n return path;\n };\n\n path.pointRadius = function(_) {\n if (!arguments.length) return pointRadius;\n pointRadius = typeof _ === \"function\" ? _ : (contextStream.pointRadius(+_), +_);\n return path;\n };\n\n path.digits = function(_) {\n if (!arguments.length) return digits;\n if (_ == null) digits = null;\n else {\n const d = Math.floor(_);\n if (!(d >= 0)) throw new RangeError(`invalid digits: ${_}`);\n digits = d;\n }\n if (context === null) contextStream = new PathString(digits);\n return path;\n };\n\n return path.projection(projection).digits(digits).context(context);\n}\n"],"ignoreList":[0],"mappings":";;;;;;;;;;AASA,SAAAa,EAAwB,GAAY,GAAS;CAC3C,IAAIC,IAAS,GACTC,IAAc,KACdC,GACAC;CAEJ,SAASC,EAAK,GAAQ;EAKpB,OAJIC,MACE,OAAOJ,KAAgB,cAAYE,EAAc,YAAY,CAACF,EAAY,MAAM,MAAM,SAAS,CAAC,GACpGT,EAAOa,GAAQH,EAAiBC,CAAa,CAAC,IAEzCA,EAAc,OAAO;CAC9B;CAqDA,OAnDA,EAAK,OAAO,SAAS,GAAQ;EAE3B,OADAX,EAAOa,GAAQH,EAAiBhB,CAAQ,CAAC,GAClCA,EAAS,OAAO;CACzB,GAEA,EAAK,UAAU,SAAS,GAAQ;EAE9B,OADAM,EAAOa,GAAQH,EAAiBf,CAAW,CAAC,GACrCA,EAAY,OAAO;CAC5B,GAEA,EAAK,SAAS,SAAS,GAAQ;EAE7B,OADAK,EAAOa,GAAQH,EAAiBd,CAAU,CAAC,GACpCA,EAAW,OAAO;CAC3B,GAEA,EAAK,WAAW,SAAS,GAAQ;EAE/B,OADAI,EAAOa,GAAQH,EAAiBb,CAAY,CAAC,GACtCA,EAAa,OAAO;CAC7B,GAEA,EAAK,aAAa,SAAS,GAAG;EAG5B,OAFK,UAAU,UACf,IAAmBiB,KAAK,QAAQ,IAAa,MAAMhB,MAAa,IAAagB,EAAA,CAAG,QACzEF,KAFuBG;CAGhC,GAEA,EAAK,UAAU,SAAS,GAAG;EAIzB,OAHK,UAAU,UACf,IAAgBD,KAAK,QAAQ,IAAU,MAAM,IAAIR,EAAWE,CAAM,KAAK,IAAIJ,EAAY,IAAUU,CAAC,GAC9F,OAAOL,KAAgB,cAAYE,EAAc,YAAYF,CAAW,GACrEG,KAHuBI;CAIhC,GAEA,EAAK,cAAc,SAAS,GAAG;EAG7B,OAFK,UAAU,UACf,IAAc,OAAOF,KAAM,aAAaA,KAAKH,EAAc,YAAY,CAACG,CAAC,GAAG,CAACA,IACtEF,KAFuBH;CAGhC,GAEA,EAAK,SAAS,SAAS,GAAG;EACxB,IAAI,CAAC,UAAU,QAAQ,OAAOD;EAC9B,IAAIM,KAAK,MAAM,IAAS;OACnB;GACH,IAAMG,IAAI,KAAK,MAAMH,CAAC;GACtB,IAAI,EAAEG,KAAK,IAAI,MAAU,WAAW,mBAAmBH,GAAG;GAC1D,IAASG;EACX;EAEA,OADID,MAAY,SAAM,IAAgB,IAAIV,EAAWE,CAAM,IACpDI;CACT,GAEOA,EAAK,WAAWG,CAAU,CAAC,CAAC,OAAOP,CAAM,CAAC,CAAC,QAAQQ,CAAO;AACnE"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";const e=require("../../../d3-array/dist/d3-array.cjs"),t=require("../math.cjs"),n=require("../noop.cjs");var r=new e.Adder,i,a,o,s,c,l={point:n.default,lineStart:function(){l.point=u},lineEnd:function(){i&&d(a,o),l.point=n.default},polygonStart:function(){i=!0},polygonEnd:function(){i=null},result:function(){var t=+r;return r=new e.Adder,t}};function u(e,t){l.point=d,a=s=e,o=c=t}function d(e,n){s-=e,c-=n,r.add(t.sqrt(s*s+c*c)),s=e,c=n}exports.default=l;
|
|
2
|
+
//# sourceMappingURL=measure.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"measure.cjs","names":["Adder","noop","sqrt","require_d3_array","require_math","require_noop","lengthSum","lengthRing","x00","y00","x0","y0","lengthStream","lengthPointFirst","lengthPoint","length","x","y"],"sources":["../../../../../node_modules/d3-geo/src/path/measure.js"],"sourcesContent":["import {Adder} from \"d3-array\";\nimport {sqrt} from \"../math.js\";\nimport noop from \"../noop.js\";\n\nvar lengthSum = new Adder(),\n lengthRing,\n x00,\n y00,\n x0,\n y0;\n\nvar lengthStream = {\n point: noop,\n lineStart: function() {\n lengthStream.point = lengthPointFirst;\n },\n lineEnd: function() {\n if (lengthRing) lengthPoint(x00, y00);\n lengthStream.point = noop;\n },\n polygonStart: function() {\n lengthRing = true;\n },\n polygonEnd: function() {\n lengthRing = null;\n },\n result: function() {\n var length = +lengthSum;\n lengthSum = new Adder();\n return length;\n }\n};\n\nfunction lengthPointFirst(x, y) {\n lengthStream.point = lengthPoint;\n x00 = x0 = x, y00 = y0 = y;\n}\n\nfunction lengthPoint(x, y) {\n x0 -= x, y0 -= y;\n lengthSum.add(sqrt(x0 * x0 + y0 * y0));\n x0 = x, y0 = y;\n}\n\nexport default lengthStream;\n"],"ignoreList":[0],"mappings":"A,sHAIA,IAAIM,EAAY,IAAIN,EAAAA,MAChBO,EACAC,EACAC,EACAC,EACAC,EAEAC,EAAe,CACjB,MAAOX,EAAAA,QACP,UAAW,UAAW,CACpB,EAAa,MAAQY,CACvB,EACA,QAAS,UAAW,CACdN,GAAYO,EAAYN,EAAKC,CAAG,EACpC,EAAa,MAAQR,EAAAA,OACvB,EACA,aAAc,UAAW,CACvB,EAAa,EACf,EACA,WAAY,UAAW,CACrB,EAAa,IACf,EACA,OAAQ,UAAW,CACjB,IAAIc,EAAS,CAACT,EAEd,MADA,GAAY,IAAIN,EAAAA,MACTe,CACT,CACF,EAEA,SAASF,EAAiB,EAAG,EAAG,CAC9B,EAAa,MAAQC,EACrB,EAAM,EAAKE,EAAG,EAAM,EAAKC,CAC3B,CAEA,SAASH,EAAY,EAAG,EAAG,CACzB,GAAME,EAAG,GAAMC,EACfX,EAAU,IAAIJ,EAAAA,KAAKQ,EAAKA,EAAKC,EAAKA,CAAE,CAAC,EACrC,EAAKK,EAAG,EAAKC,CACf,C"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { Adder as e } from "../../../d3-array/dist/d3-array.js";
|
|
3
|
+
import { sqrt as t } from "../math.js";
|
|
4
|
+
import n from "../noop.js";
|
|
5
|
+
// node_modules/d3-geo/src/path/measure.js
|
|
6
|
+
var r = new e(), i, a, o, s, c, l = {
|
|
7
|
+
point: n,
|
|
8
|
+
lineStart: function() {
|
|
9
|
+
l.point = u;
|
|
10
|
+
},
|
|
11
|
+
lineEnd: function() {
|
|
12
|
+
i && d(a, o), l.point = n;
|
|
13
|
+
},
|
|
14
|
+
polygonStart: function() {
|
|
15
|
+
i = !0;
|
|
16
|
+
},
|
|
17
|
+
polygonEnd: function() {
|
|
18
|
+
i = null;
|
|
19
|
+
},
|
|
20
|
+
result: function() {
|
|
21
|
+
var t = +r;
|
|
22
|
+
return r = new e(), t;
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
function u(e, t) {
|
|
26
|
+
l.point = d, a = s = e, o = c = t;
|
|
27
|
+
}
|
|
28
|
+
function d(e, n) {
|
|
29
|
+
s -= e, c -= n, r.add(t(s * s + c * c)), s = e, c = n;
|
|
30
|
+
}
|
|
31
|
+
export { l as default };
|
|
32
|
+
|
|
33
|
+
//# sourceMappingURL=measure.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"measure.js","names":["noop","lengthSum","Adder","lengthRing","x00","y00","x0","y0","lengthStream","lengthPointFirst","lengthPoint","length","x","y","sqrt"],"sources":["../../../../../node_modules/d3-geo/src/path/measure.js"],"sourcesContent":["import {Adder} from \"d3-array\";\nimport {sqrt} from \"../math.js\";\nimport noop from \"../noop.js\";\n\nvar lengthSum = new Adder(),\n lengthRing,\n x00,\n y00,\n x0,\n y0;\n\nvar lengthStream = {\n point: noop,\n lineStart: function() {\n lengthStream.point = lengthPointFirst;\n },\n lineEnd: function() {\n if (lengthRing) lengthPoint(x00, y00);\n lengthStream.point = noop;\n },\n polygonStart: function() {\n lengthRing = true;\n },\n polygonEnd: function() {\n lengthRing = null;\n },\n result: function() {\n var length = +lengthSum;\n lengthSum = new Adder();\n return length;\n }\n};\n\nfunction lengthPointFirst(x, y) {\n lengthStream.point = lengthPoint;\n x00 = x0 = x, y00 = y0 = y;\n}\n\nfunction lengthPoint(x, y) {\n x0 -= x, y0 -= y;\n lengthSum.add(sqrt(x0 * x0 + y0 * y0));\n x0 = x, y0 = y;\n}\n\nexport default lengthStream;\n"],"ignoreList":[0],"mappings":";;;;;AAIA,IAAIC,IAAY,IAAIC,EAAM,GACtBC,GACAC,GACAC,GACAC,GACAC,GAEAC,IAAe;CACjB,OAAOR;CACP,WAAW,WAAW;EACpB,EAAa,QAAQS;CACvB;CACA,SAAS,WAAW;EAElB,AADIN,KAAYO,EAAYN,GAAKC,CAAG,GACpC,EAAa,QAAQL;CACvB;CACA,cAAc,WAAW;EACvB,IAAa;CACf;CACA,YAAY,WAAW;EACrB,IAAa;CACf;CACA,QAAQ,WAAW;EACjB,IAAIW,IAAS,CAACV;EAEd,OADA,IAAY,IAAIC,EAAM,GACfS;CACT;AACF;AAEA,SAASF,EAAiB,GAAG,GAAG;CAE9B,AADA,EAAa,QAAQC,GACrB,IAAM,IAAKE,GAAG,IAAM,IAAKC;AAC3B;AAEA,SAASH,EAAY,GAAG,GAAG;CAGzB,AAFA,KAAME,GAAG,KAAMC,GACfZ,EAAU,IAAIa,EAAKR,IAAKA,IAAKC,IAAKA,CAAE,CAAC,GACrC,IAAKK,GAAG,IAAKC;AACf"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";var e,t,n,r,i=class{constructor(e){this._append=e==null?a:o(e),this._radius=4.5,this._=``}pointRadius(e){return this._radius=+e,this}polygonStart(){this._line=0}polygonEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){this._line===0&&(this._+=`Z`),this._point=NaN}point(e,i){switch(this._point){case 0:this._append`M${e},${i}`,this._point=1;break;case 1:this._append`L${e},${i}`;break;default:if(this._append`M${e},${i}`,this._radius!==n||this._append!==t){let e=this._radius,i=this._;this._=``,this._append`m0,${e}a${e},${e} 0 1,1 0,${-2*e}a${e},${e} 0 1,1 0,${2*e}z`,n=e,t=this._append,r=this._,this._=i}this._+=r}}result(){let e=this._;return this._=``,e.length?e:null}};function a(e){let t=1;this._+=e[0];for(let n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function o(n){let r=Math.floor(n);if(!(r>=0))throw RangeError(`invalid digits: ${n}`);if(r>15)return a;if(r!==e){let n=10**r;e=r,t=function(e){let t=1;this._+=e[0];for(let r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}return t}exports.default=i;
|
|
2
|
+
//# sourceMappingURL=string.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"string.cjs","names":["cacheDigits","cacheAppend","cacheRadius","cacheCircle","PathString","digits","append","appendRound","_","x","y","r","s","result","i","strings","j","d","k"],"sources":["../../../../../node_modules/d3-geo/src/path/string.js"],"sourcesContent":["// Simple caching for constant-radius points.\nlet cacheDigits, cacheAppend, cacheRadius, cacheCircle;\n\nexport default class PathString {\n constructor(digits) {\n this._append = digits == null ? append : appendRound(digits);\n this._radius = 4.5;\n this._ = \"\";\n }\n pointRadius(_) {\n this._radius = +_;\n return this;\n }\n polygonStart() {\n this._line = 0;\n }\n polygonEnd() {\n this._line = NaN;\n }\n lineStart() {\n this._point = 0;\n }\n lineEnd() {\n if (this._line === 0) this._ += \"Z\";\n this._point = NaN;\n }\n point(x, y) {\n switch (this._point) {\n case 0: {\n this._append`M${x},${y}`;\n this._point = 1;\n break;\n }\n case 1: {\n this._append`L${x},${y}`;\n break;\n }\n default: {\n this._append`M${x},${y}`;\n if (this._radius !== cacheRadius || this._append !== cacheAppend) {\n const r = this._radius;\n const s = this._;\n this._ = \"\"; // stash the old string so we can cache the circle path fragment\n this._append`m0,${r}a${r},${r} 0 1,1 0,${-2 * r}a${r},${r} 0 1,1 0,${2 * r}z`;\n cacheRadius = r;\n cacheAppend = this._append;\n cacheCircle = this._;\n this._ = s;\n }\n this._ += cacheCircle;\n break;\n }\n }\n }\n result() {\n const result = this._;\n this._ = \"\";\n return result.length ? result : null;\n }\n}\n\nfunction append(strings) {\n let i = 1;\n this._ += strings[0];\n for (const j = strings.length; i < j; ++i) {\n this._ += arguments[i] + strings[i];\n }\n}\n\nfunction appendRound(digits) {\n const d = Math.floor(digits);\n if (!(d >= 0)) throw new RangeError(`invalid digits: ${digits}`);\n if (d > 15) return append;\n if (d !== cacheDigits) {\n const k = 10 ** d;\n cacheDigits = d;\n cacheAppend = function append(strings) {\n let i = 1;\n this._ += strings[0];\n for (const j = strings.length; i < j; ++i) {\n this._ += Math.round(arguments[i] * k) / k + strings[i];\n }\n };\n }\n return cacheAppend;\n}\n"],"ignoreList":[0],"mappings":"A,aACA,IAAIA,EAAaC,EAAaC,EAAaC,EAEtBC,EAArB,KAAgC,CAC9B,YAAY,EAAQ,CAClB,KAAK,QAAUC,GAAU,KAAOC,EAASC,EAAYF,CAAM,EAC3D,KAAK,QAAU,IACf,KAAK,EAAI,EACX,CACA,YAAY,EAAG,CAEb,MADA,MAAK,QAAU,CAACG,EACT,IACT,CACA,cAAe,CACb,KAAK,MAAQ,CACf,CACA,YAAa,CACX,KAAK,MAAQ,GACf,CACA,WAAY,CACV,KAAK,OAAS,CAChB,CACA,SAAU,CACJ,KAAK,QAAU,IAAG,KAAK,GAAK,KAChC,KAAK,OAAS,GAChB,CACA,MAAM,EAAG,EAAG,CACV,OAAQ,KAAK,OAAb,CACE,IAAK,GACH,KAAK,OAAO,IAAIC,EAAE,GAAGC,IACrB,KAAK,OAAS,EACd,MAEF,IAAK,GACH,KAAK,OAAO,IAAID,EAAE,GAAGC,IACrB,MAEF,QAEE,GADA,KAAK,OAAO,IAAID,EAAE,GAAGC,IACjB,KAAK,UAAYR,GAAe,KAAK,UAAYD,EAAa,CAChE,IAAMU,EAAI,KAAK,QACTC,EAAI,KAAK,EACf,KAAK,EAAI,GACT,KAAK,OAAO,MAAMD,EAAE,GAAGA,EAAE,GAAGA,EAAE,WAAW,GAAKA,EAAE,GAAGA,EAAE,GAAGA,EAAE,WAAW,EAAIA,EAAE,GAC3E,EAAcA,EACd,EAAc,KAAK,QACnB,EAAc,KAAK,EACnB,KAAK,EAAIC,CACX,CACA,KAAK,GAAKT,CAGd,CACF,CACA,QAAS,CACP,IAAMU,EAAS,KAAK,EAEpB,MADA,MAAK,EAAI,GACFA,EAAO,OAASA,EAAS,IAClC,CACF,EAEA,SAASP,EAAO,EAAS,CACvB,IAAIQ,EAAI,EACR,KAAK,GAAKC,EAAQ,GAClB,IAAK,IAAMC,EAAID,EAAQ,OAAQD,EAAIE,EAAG,EAAEF,EACtC,KAAK,GAAK,UAAUA,GAAKC,EAAQD,EAErC,CAEA,SAASP,EAAY,EAAQ,CAC3B,IAAMU,EAAI,KAAK,MAAMZ,CAAM,EAC3B,GAAI,EAAEY,GAAK,GAAI,MAAU,WAAW,mBAAmBZ,GAAQ,EAC/D,GAAIY,EAAI,GAAI,OAAOX,EACnB,GAAIW,IAAMjB,EAAa,CACrB,IAAMkB,EAAI,IAAMD,EAChB,EAAcA,EACd,EAAc,SAAgB,EAAS,CACrC,IAAIH,EAAI,EACR,KAAK,GAAKC,EAAQ,GAClB,IAAK,IAAMC,EAAID,EAAQ,OAAQD,EAAIE,EAAG,EAAEF,EACtC,KAAK,GAAK,KAAK,MAAM,UAAUA,GAAKI,CAAC,EAAIA,EAAIH,EAAQD,EAEzD,CACF,CACA,OAAOb,CACT,C"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
// node_modules/d3-geo/src/path/string.js
|
|
3
|
+
var e, t, n, r, i = class {
|
|
4
|
+
constructor(e) {
|
|
5
|
+
this._append = e == null ? a : o(e), this._radius = 4.5, this._ = "";
|
|
6
|
+
}
|
|
7
|
+
pointRadius(e) {
|
|
8
|
+
return this._radius = +e, this;
|
|
9
|
+
}
|
|
10
|
+
polygonStart() {
|
|
11
|
+
this._line = 0;
|
|
12
|
+
}
|
|
13
|
+
polygonEnd() {
|
|
14
|
+
this._line = NaN;
|
|
15
|
+
}
|
|
16
|
+
lineStart() {
|
|
17
|
+
this._point = 0;
|
|
18
|
+
}
|
|
19
|
+
lineEnd() {
|
|
20
|
+
this._line === 0 && (this._ += "Z"), this._point = NaN;
|
|
21
|
+
}
|
|
22
|
+
point(e, i) {
|
|
23
|
+
switch (this._point) {
|
|
24
|
+
case 0:
|
|
25
|
+
this._append`M${e},${i}`, this._point = 1;
|
|
26
|
+
break;
|
|
27
|
+
case 1:
|
|
28
|
+
this._append`L${e},${i}`;
|
|
29
|
+
break;
|
|
30
|
+
default:
|
|
31
|
+
if (this._append`M${e},${i}`, this._radius !== n || this._append !== t) {
|
|
32
|
+
let e = this._radius, i = this._;
|
|
33
|
+
this._ = "", this._append`m0,${e}a${e},${e} 0 1,1 0,${-2 * e}a${e},${e} 0 1,1 0,${2 * e}z`, n = e, t = this._append, r = this._, this._ = i;
|
|
34
|
+
}
|
|
35
|
+
this._ += r;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
result() {
|
|
39
|
+
let e = this._;
|
|
40
|
+
return this._ = "", e.length ? e : null;
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
function a(e) {
|
|
44
|
+
let t = 1;
|
|
45
|
+
this._ += e[0];
|
|
46
|
+
for (let n = e.length; t < n; ++t) this._ += arguments[t] + e[t];
|
|
47
|
+
}
|
|
48
|
+
function o(n) {
|
|
49
|
+
let r = Math.floor(n);
|
|
50
|
+
if (!(r >= 0)) throw RangeError(`invalid digits: ${n}`);
|
|
51
|
+
if (r > 15) return a;
|
|
52
|
+
if (r !== e) {
|
|
53
|
+
let n = 10 ** r;
|
|
54
|
+
e = r, t = function(e) {
|
|
55
|
+
let t = 1;
|
|
56
|
+
this._ += e[0];
|
|
57
|
+
for (let r = e.length; t < r; ++t) this._ += Math.round(arguments[t] * n) / n + e[t];
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
return t;
|
|
61
|
+
}
|
|
62
|
+
export { i as default };
|
|
63
|
+
|
|
64
|
+
//# sourceMappingURL=string.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"string.js","names":["cacheDigits","cacheAppend","cacheRadius","cacheCircle","PathString","digits","append","appendRound","_","x","y","r","s","result","i","strings","j","d","k"],"sources":["../../../../../node_modules/d3-geo/src/path/string.js"],"sourcesContent":["// Simple caching for constant-radius points.\nlet cacheDigits, cacheAppend, cacheRadius, cacheCircle;\n\nexport default class PathString {\n constructor(digits) {\n this._append = digits == null ? append : appendRound(digits);\n this._radius = 4.5;\n this._ = \"\";\n }\n pointRadius(_) {\n this._radius = +_;\n return this;\n }\n polygonStart() {\n this._line = 0;\n }\n polygonEnd() {\n this._line = NaN;\n }\n lineStart() {\n this._point = 0;\n }\n lineEnd() {\n if (this._line === 0) this._ += \"Z\";\n this._point = NaN;\n }\n point(x, y) {\n switch (this._point) {\n case 0: {\n this._append`M${x},${y}`;\n this._point = 1;\n break;\n }\n case 1: {\n this._append`L${x},${y}`;\n break;\n }\n default: {\n this._append`M${x},${y}`;\n if (this._radius !== cacheRadius || this._append !== cacheAppend) {\n const r = this._radius;\n const s = this._;\n this._ = \"\"; // stash the old string so we can cache the circle path fragment\n this._append`m0,${r}a${r},${r} 0 1,1 0,${-2 * r}a${r},${r} 0 1,1 0,${2 * r}z`;\n cacheRadius = r;\n cacheAppend = this._append;\n cacheCircle = this._;\n this._ = s;\n }\n this._ += cacheCircle;\n break;\n }\n }\n }\n result() {\n const result = this._;\n this._ = \"\";\n return result.length ? result : null;\n }\n}\n\nfunction append(strings) {\n let i = 1;\n this._ += strings[0];\n for (const j = strings.length; i < j; ++i) {\n this._ += arguments[i] + strings[i];\n }\n}\n\nfunction appendRound(digits) {\n const d = Math.floor(digits);\n if (!(d >= 0)) throw new RangeError(`invalid digits: ${digits}`);\n if (d > 15) return append;\n if (d !== cacheDigits) {\n const k = 10 ** d;\n cacheDigits = d;\n cacheAppend = function append(strings) {\n let i = 1;\n this._ += strings[0];\n for (const j = strings.length; i < j; ++i) {\n this._ += Math.round(arguments[i] * k) / k + strings[i];\n }\n };\n }\n return cacheAppend;\n}\n"],"ignoreList":[0],"mappings":";;AACA,IAAIA,GAAaC,GAAaC,GAAaC,GAEtBC,IAArB,MAAgC;CAC9B,YAAY,GAAQ;EAGlB,AAFA,KAAK,UAAUC,KAAU,OAAOC,IAASC,EAAYF,CAAM,GAC3D,KAAK,UAAU,KACf,KAAK,IAAI;CACX;CACA,YAAY,GAAG;EAEb,OADA,KAAK,UAAU,CAACG,GACT;CACT;CACA,eAAe;EACb,KAAK,QAAQ;CACf;CACA,aAAa;EACX,KAAK,QAAQ;CACf;CACA,YAAY;EACV,KAAK,SAAS;CAChB;CACA,UAAU;EAER,AADI,KAAK,UAAU,MAAG,KAAK,KAAK,MAChC,KAAK,SAAS;CAChB;CACA,MAAM,GAAG,GAAG;EACV,QAAQ,KAAK,QAAb;GACE,KAAK;IAEH,AADA,KAAK,OAAO,IAAIC,EAAE,GAAGC,KACrB,KAAK,SAAS;IACd;GAEF,KAAK;IACH,KAAK,OAAO,IAAID,EAAE,GAAGC;IACrB;GAEF;IAEE,IADA,KAAK,OAAO,IAAID,EAAE,GAAGC,KACjB,KAAK,YAAYR,KAAe,KAAK,YAAYD,GAAa;KAChE,IAAMU,IAAI,KAAK,SACTC,IAAI,KAAK;KAMf,AALA,KAAK,IAAI,IACT,KAAK,OAAO,MAAMD,EAAE,GAAGA,EAAE,GAAGA,EAAE,WAAW,KAAKA,EAAE,GAAGA,EAAE,GAAGA,EAAE,WAAW,IAAIA,EAAE,IAC3E,IAAcA,GACd,IAAc,KAAK,SACnB,IAAc,KAAK,GACnB,KAAK,IAAIC;IACX;IACA,KAAK,KAAKT;EAGd;CACF;CACA,SAAS;EACP,IAAMU,IAAS,KAAK;EAEpB,OADA,KAAK,IAAI,IACFA,EAAO,SAASA,IAAS;CAClC;AACF;AAEA,SAASP,EAAO,GAAS;CACvB,IAAIQ,IAAI;CACR,KAAK,KAAKC,EAAQ;CAClB,KAAK,IAAMC,IAAID,EAAQ,QAAQD,IAAIE,GAAG,EAAEF,GACtC,KAAK,KAAK,UAAUA,KAAKC,EAAQD;AAErC;AAEA,SAASP,EAAY,GAAQ;CAC3B,IAAMU,IAAI,KAAK,MAAMZ,CAAM;CAC3B,IAAI,EAAEY,KAAK,IAAI,MAAU,WAAW,mBAAmBZ,GAAQ;CAC/D,IAAIY,IAAI,IAAI,OAAOX;CACnB,IAAIW,MAAMjB,GAAa;EACrB,IAAMkB,IAAI,MAAMD;EAEhB,AADA,IAAcA,GACd,IAAc,SAAgB,GAAS;GACrC,IAAIH,IAAI;GACR,KAAK,KAAKC,EAAQ;GAClB,KAAK,IAAMC,IAAID,EAAQ,QAAQD,IAAIE,GAAG,EAAEF,GACtC,KAAK,KAAK,KAAK,MAAM,UAAUA,KAAKI,CAAC,IAAIA,IAAIH,EAAQD;EAEzD;CACF;CACA,OAAOb;AACT"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pointEqual.cjs","names":["abs","require_math","pointEqual_default","a","b"],"sources":["../../../../node_modules/d3-geo/src/pointEqual.js"],"sourcesContent":["import {abs, epsilon} from \"./math.js\";\n\nexport default function(a, b) {\n return abs(a[0] - b[0]) < epsilon && abs(a[1] - b[1]) < epsilon;\n}\n"],"ignoreList":[0],"mappings":"A,2CAEA,SAAAE,EAAwB,EAAG,EAAG,CAC5B,OAAOF,EAAAA,IAAIG,EAAE,GAAKC,EAAE,EAAE,EAAA,MAAeJ,EAAAA,IAAIG,EAAE,GAAKC,EAAE,EAAE,EAAA,IACtD,C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pointEqual.js","names":["pointEqual_default","abs","a","b"],"sources":["../../../../node_modules/d3-geo/src/pointEqual.js"],"sourcesContent":["import {abs, epsilon} from \"./math.js\";\n\nexport default function(a, b) {\n return abs(a[0] - b[0]) < epsilon && abs(a[1] - b[1]) < epsilon;\n}\n"],"ignoreList":[0],"mappings":";;;AAEA,SAAAA,EAAwB,GAAG,GAAG;CAC5B,OAAOC,EAAIC,EAAE,KAAKC,EAAE,EAAE,IAAA,QAAeF,EAAIC,EAAE,KAAKC,EAAE,EAAE,IAAA;AACtD"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";const e=require("../../d3-array/dist/d3-array.cjs"),t=require("./cartesian.cjs"),n=require("./math.cjs");function r(e){return n.abs(e[0])<=n.pi?e[0]:n.sign(e[0])*((n.abs(e[0])+n.pi)%n.tau-n.pi)}function i(i,a){var o=r(a),s=a[1],c=n.sin(s),l=[n.sin(o),-n.cos(o),0],u=0,d=0,f=new e.Adder;c===1?s=n.halfPi+n.epsilon:c===-1&&(s=-n.halfPi-n.epsilon);for(var p=0,m=i.length;p<m;++p)if(g=(h=i[p]).length)for(var h,g,_=h[g-1],v=r(_),y=_[1]/2+n.quarterPi,b=n.sin(y),x=n.cos(y),S=0;S<g;++S,v=w,b=E,x=D,_=C){var C=h[S],w=r(C),T=C[1]/2+n.quarterPi,E=n.sin(T),D=n.cos(T),O=w-v,k=O>=0?1:-1,A=k*O,j=A>n.pi,M=b*E;if(f.add(n.atan2(M*k*n.sin(A),x*D+M*n.cos(A))),u+=j?O+k*n.tau:O,j^v>=o^w>=o){var N=t.cartesianCross(t.cartesian(_),t.cartesian(C));t.cartesianNormalizeInPlace(N);var P=t.cartesianCross(l,N);t.cartesianNormalizeInPlace(P);var F=(j^O>=0?-1:1)*n.asin(P[2]);(s>F||s===F&&(N[0]||N[1]))&&(d+=j^O>=0?1:-1)}}return(u<-1e-6||u<1e-6&&f<-1e-12)^d&1}exports.default=i;
|
|
2
|
+
//# sourceMappingURL=polygonContains.cjs.map
|