@corpsmap/corpsmap 4.1.29 → 4.1.30
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/corpsmap.es.js +848 -820
- package/dist/corpsmap.umd.js +17 -17
- package/package.json +1 -1
- package/src/application-bundles/map-layers-bundle.js +9 -2
- package/src/core-plugins/identify/listeners/vector.jsx +1 -1
- package/src/core-plugins/identify-arcgis-rest/bundle.js +2 -2
- package/src/core-plugins/identify-geoserver/bundle.js +1 -1
- package/src/core-plugins/identify-map-server/bundle.js +215 -159
- package/src/core-plugins/identify-vector/bundle.jsx +2 -2
- package/src/core-plugins/zoom-home/bundle.js +0 -1
- package/src/core-plugins/zoom-home/index.js +0 -1
- package/src/core-plugins/zoom-in-out/index.js +0 -1
- package/src/core-plugins/zoom-level/bundle.js +0 -1
- package/src/core-plugins/zoom-to-box/bundle.js +0 -1
package/dist/corpsmap.es.js
CHANGED
|
@@ -767,10 +767,10 @@ function requireDebounce() {
|
|
|
767
767
|
hasRequiredDebounce = 1;
|
|
768
768
|
var e = requireIsObject(), t = requireNow(), r = requireToNumber(), n = "Expected a function", s = Math.max, d = Math.min;
|
|
769
769
|
function g(m, y, b) {
|
|
770
|
-
var E, I, x, S, A, R, k = 0, L = !1, $ = !1,
|
|
770
|
+
var E, I, x, S, A, R, k = 0, L = !1, $ = !1, O = !0;
|
|
771
771
|
if (typeof m != "function")
|
|
772
772
|
throw new TypeError(n);
|
|
773
|
-
y = r(y) || 0, e(b) && (L = !!b.leading, $ = "maxWait" in b, x = $ ? s(r(b.maxWait) || 0, y) : x,
|
|
773
|
+
y = r(y) || 0, e(b) && (L = !!b.leading, $ = "maxWait" in b, x = $ ? s(r(b.maxWait) || 0, y) : x, O = "trailing" in b ? !!b.trailing : O);
|
|
774
774
|
function G(ie) {
|
|
775
775
|
var oe = E, K = I;
|
|
776
776
|
return E = I = void 0, k = ie, S = m.apply(K, oe), S;
|
|
@@ -793,7 +793,7 @@ function requireDebounce() {
|
|
|
793
793
|
A = setTimeout(W, Y(ie));
|
|
794
794
|
}
|
|
795
795
|
function X(ie) {
|
|
796
|
-
return A = void 0,
|
|
796
|
+
return A = void 0, O && E ? G(ie) : (E = I = void 0, S);
|
|
797
797
|
}
|
|
798
798
|
function ee() {
|
|
799
799
|
A !== void 0 && clearTimeout(A), k = 0, E = R = I = A = void 0;
|
|
@@ -1402,9 +1402,9 @@ function requireAsyncEachOfLimit() {
|
|
|
1402
1402
|
function d(g, m, y, b) {
|
|
1403
1403
|
let E = !1, I = !1, x = !1, S = 0, A = 0;
|
|
1404
1404
|
function R() {
|
|
1405
|
-
S >= m || x || E || (x = !0, g.next().then(({ value: $, done:
|
|
1405
|
+
S >= m || x || E || (x = !0, g.next().then(({ value: $, done: O }) => {
|
|
1406
1406
|
if (!(I || E)) {
|
|
1407
|
-
if (x = !1,
|
|
1407
|
+
if (x = !1, O) {
|
|
1408
1408
|
E = !0, S <= 0 && b(null);
|
|
1409
1409
|
return;
|
|
1410
1410
|
}
|
|
@@ -1412,14 +1412,14 @@ function requireAsyncEachOfLimit() {
|
|
|
1412
1412
|
}
|
|
1413
1413
|
}).catch(L));
|
|
1414
1414
|
}
|
|
1415
|
-
function k($,
|
|
1415
|
+
function k($, O) {
|
|
1416
1416
|
if (S -= 1, !I) {
|
|
1417
1417
|
if ($) return L($);
|
|
1418
1418
|
if ($ === !1) {
|
|
1419
1419
|
E = !0, I = !0;
|
|
1420
1420
|
return;
|
|
1421
1421
|
}
|
|
1422
|
-
if (
|
|
1422
|
+
if (O === n.default || E && S <= 0)
|
|
1423
1423
|
return E = !0, b(null);
|
|
1424
1424
|
R();
|
|
1425
1425
|
}
|
|
@@ -1451,24 +1451,24 @@ function requireEachOfLimit$1() {
|
|
|
1451
1451
|
return (0, E.default)(R, A, k, L);
|
|
1452
1452
|
if ((0, y.isAsyncIterable)(R))
|
|
1453
1453
|
return (0, E.default)(R[Symbol.asyncIterator](), A, k, L);
|
|
1454
|
-
var $ = (0, d.default)(R),
|
|
1454
|
+
var $ = (0, d.default)(R), O = !1, G = !1, q = 0, Y = !1;
|
|
1455
1455
|
function z(X, ee) {
|
|
1456
1456
|
if (!G)
|
|
1457
1457
|
if (q -= 1, X)
|
|
1458
|
-
|
|
1458
|
+
O = !0, L(X);
|
|
1459
1459
|
else if (X === !1)
|
|
1460
|
-
|
|
1460
|
+
O = !0, G = !0;
|
|
1461
1461
|
else {
|
|
1462
|
-
if (ee === x.default ||
|
|
1463
|
-
return
|
|
1462
|
+
if (ee === x.default || O && q <= 0)
|
|
1463
|
+
return O = !0, L(null);
|
|
1464
1464
|
Y || W();
|
|
1465
1465
|
}
|
|
1466
1466
|
}
|
|
1467
1467
|
function W() {
|
|
1468
|
-
for (Y = !0; q < A && !
|
|
1468
|
+
for (Y = !0; q < A && !O; ) {
|
|
1469
1469
|
var X = $();
|
|
1470
1470
|
if (X === null) {
|
|
1471
|
-
|
|
1471
|
+
O = !0, q <= 0 && L(null);
|
|
1472
1472
|
return;
|
|
1473
1473
|
}
|
|
1474
1474
|
q += 1, k(X.value, X.key, (0, m.default)(z));
|
|
@@ -1539,11 +1539,11 @@ function requireEachOf() {
|
|
|
1539
1539
|
function $(G, q, Y) {
|
|
1540
1540
|
return (0, m.default)(G, 1 / 0, q, Y);
|
|
1541
1541
|
}
|
|
1542
|
-
function
|
|
1542
|
+
function O(G, q, Y) {
|
|
1543
1543
|
var z = (0, n.default)(G) ? L : $;
|
|
1544
1544
|
return z(G, (0, S.default)(q), Y);
|
|
1545
1545
|
}
|
|
1546
|
-
t.default = (0, R.default)(
|
|
1546
|
+
t.default = (0, R.default)(O, 3), e.exports = t.default;
|
|
1547
1547
|
})(eachOf, eachOf.exports)), eachOf.exports;
|
|
1548
1548
|
}
|
|
1549
1549
|
var parallel$1 = { exports: {} }, hasRequiredParallel$1;
|
|
@@ -1768,7 +1768,7 @@ function coordEach(e, t, r) {
|
|
|
1768
1768
|
e.geometry
|
|
1769
1769
|
) : e, x = b ? b.type === "GeometryCollection" : !1, m = x ? b.geometries.length : 1;
|
|
1770
1770
|
for (var $ = 0; $ < m; $++) {
|
|
1771
|
-
var
|
|
1771
|
+
var O = 0, G = 0;
|
|
1772
1772
|
if (g = x ? b.geometries[$] : b, g !== null) {
|
|
1773
1773
|
y = g.coordinates;
|
|
1774
1774
|
var q = g.type;
|
|
@@ -1782,12 +1782,12 @@ function coordEach(e, t, r) {
|
|
|
1782
1782
|
y,
|
|
1783
1783
|
I,
|
|
1784
1784
|
L,
|
|
1785
|
-
|
|
1785
|
+
O,
|
|
1786
1786
|
G
|
|
1787
1787
|
) === !1
|
|
1788
1788
|
)
|
|
1789
1789
|
return !1;
|
|
1790
|
-
I++,
|
|
1790
|
+
I++, O++;
|
|
1791
1791
|
break;
|
|
1792
1792
|
case "LineString":
|
|
1793
1793
|
case "MultiPoint":
|
|
@@ -1798,14 +1798,14 @@ function coordEach(e, t, r) {
|
|
|
1798
1798
|
y[n],
|
|
1799
1799
|
I,
|
|
1800
1800
|
L,
|
|
1801
|
-
|
|
1801
|
+
O,
|
|
1802
1802
|
G
|
|
1803
1803
|
) === !1
|
|
1804
1804
|
)
|
|
1805
1805
|
return !1;
|
|
1806
|
-
I++, q === "MultiPoint" &&
|
|
1806
|
+
I++, q === "MultiPoint" && O++;
|
|
1807
1807
|
}
|
|
1808
|
-
q === "LineString" &&
|
|
1808
|
+
q === "LineString" && O++;
|
|
1809
1809
|
break;
|
|
1810
1810
|
case "Polygon":
|
|
1811
1811
|
case "MultiLineString":
|
|
@@ -1817,16 +1817,16 @@ function coordEach(e, t, r) {
|
|
|
1817
1817
|
y[n][s],
|
|
1818
1818
|
I,
|
|
1819
1819
|
L,
|
|
1820
|
-
|
|
1820
|
+
O,
|
|
1821
1821
|
G
|
|
1822
1822
|
) === !1
|
|
1823
1823
|
)
|
|
1824
1824
|
return !1;
|
|
1825
1825
|
I++;
|
|
1826
1826
|
}
|
|
1827
|
-
q === "MultiLineString" &&
|
|
1827
|
+
q === "MultiLineString" && O++, q === "Polygon" && G++;
|
|
1828
1828
|
}
|
|
1829
|
-
q === "Polygon" &&
|
|
1829
|
+
q === "Polygon" && O++;
|
|
1830
1830
|
break;
|
|
1831
1831
|
case "MultiPolygon":
|
|
1832
1832
|
for (n = 0; n < y.length; n++) {
|
|
@@ -1838,7 +1838,7 @@ function coordEach(e, t, r) {
|
|
|
1838
1838
|
y[n][s][d],
|
|
1839
1839
|
I,
|
|
1840
1840
|
L,
|
|
1841
|
-
|
|
1841
|
+
O,
|
|
1842
1842
|
G
|
|
1843
1843
|
) === !1
|
|
1844
1844
|
)
|
|
@@ -1847,7 +1847,7 @@ function coordEach(e, t, r) {
|
|
|
1847
1847
|
}
|
|
1848
1848
|
G++;
|
|
1849
1849
|
}
|
|
1850
|
-
|
|
1850
|
+
O++;
|
|
1851
1851
|
}
|
|
1852
1852
|
break;
|
|
1853
1853
|
case "GeometryCollection":
|
|
@@ -2066,8 +2066,8 @@ function requireJsts_min() {
|
|
|
2066
2066
|
};
|
|
2067
2067
|
return { s: v, n: function() {
|
|
2068
2068
|
return f >= h.length ? { done: !0 } : { done: !1, value: h[f++] };
|
|
2069
|
-
}, e: function(
|
|
2070
|
-
throw
|
|
2069
|
+
}, e: function(M) {
|
|
2070
|
+
throw M;
|
|
2071
2071
|
}, f: v };
|
|
2072
2072
|
}
|
|
2073
2073
|
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
@@ -2077,10 +2077,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2077
2077
|
return { s: function() {
|
|
2078
2078
|
o = o.call(h);
|
|
2079
2079
|
}, n: function() {
|
|
2080
|
-
var
|
|
2081
|
-
return T =
|
|
2082
|
-
}, e: function(
|
|
2083
|
-
N = !0, C =
|
|
2080
|
+
var M = o.next();
|
|
2081
|
+
return T = M.done, M;
|
|
2082
|
+
}, e: function(M) {
|
|
2083
|
+
N = !0, C = M;
|
|
2084
2084
|
}, f: function() {
|
|
2085
2085
|
try {
|
|
2086
2086
|
T || o.return == null || o.return();
|
|
@@ -2182,7 +2182,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2182
2182
|
return f.prototype = Object.create(o.prototype, { constructor: { value: f, enumerable: !1, writable: !0, configurable: !0 } }), S(f, o);
|
|
2183
2183
|
}, $(h);
|
|
2184
2184
|
}
|
|
2185
|
-
var
|
|
2185
|
+
var O = (function() {
|
|
2186
2186
|
function h() {
|
|
2187
2187
|
s(this, h), h.constructor_.apply(this, arguments);
|
|
2188
2188
|
}
|
|
@@ -2228,7 +2228,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2228
2228
|
return 1 - Math.cos(o / 2);
|
|
2229
2229
|
} }]);
|
|
2230
2230
|
})();
|
|
2231
|
-
|
|
2231
|
+
O.CAP_ROUND = 1, O.CAP_FLAT = 2, O.CAP_SQUARE = 3, O.JOIN_ROUND = 1, O.JOIN_MITRE = 2, O.JOIN_BEVEL = 3, O.DEFAULT_QUADRANT_SEGMENTS = 8, O.DEFAULT_MITRE_LIMIT = 5, O.DEFAULT_SIMPLIFY_FACTOR = 0.01;
|
|
2232
2232
|
var G = (function(h) {
|
|
2233
2233
|
function a(o) {
|
|
2234
2234
|
var f;
|
|
@@ -2292,24 +2292,24 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2292
2292
|
}
|
|
2293
2293
|
return 0;
|
|
2294
2294
|
})(), he.doubleToLongBits = function(h) {
|
|
2295
|
-
var a, o, f, v, C, T, N,
|
|
2296
|
-
if (h < 0 || 1 / h === Number.NEGATIVE_INFINITY ? (T = 1 << 31, h = -h) : T = 0, h === 0) return new Ae(
|
|
2297
|
-
if (h === 1 / 0) return new Ae(
|
|
2298
|
-
if (h != h) return new Ae(
|
|
2299
|
-
if (v = 0, H = 0, (a = se(h)) > 1) if (a <= oe) (v = se(te(a))) <= 20 ? (H = 0,
|
|
2300
|
-
else for (f = a, H = 0; (f = se(o = f / 2)) !== 0; ) v++, H >>>= 1, H |= (1 &
|
|
2295
|
+
var a, o, f, v, C, T, N, M, H;
|
|
2296
|
+
if (h < 0 || 1 / h === Number.NEGATIVE_INFINITY ? (T = 1 << 31, h = -h) : T = 0, h === 0) return new Ae(M = T, H = 0);
|
|
2297
|
+
if (h === 1 / 0) return new Ae(M = 2146435072 | T, H = 0);
|
|
2298
|
+
if (h != h) return new Ae(M = 2146959360, H = 0);
|
|
2299
|
+
if (v = 0, H = 0, (a = se(h)) > 1) if (a <= oe) (v = se(te(a))) <= 20 ? (H = 0, M = a << 20 - v & 1048575) : (H = a % (o = ie(2, f = v - 20)) << 32 - f, M = a / o & 1048575);
|
|
2300
|
+
else for (f = a, H = 0; (f = se(o = f / 2)) !== 0; ) v++, H >>>= 1, H |= (1 & M) << 31, M >>>= 1, o !== f && (M |= 524288);
|
|
2301
2301
|
if (N = v + ee, C = a === 0, a = h - a, v < 52 && a !== 0) for (f = 0; ; ) {
|
|
2302
|
-
if ((o = 2 * a) >= 1 ? (a = o - 1, C ? (N--, C = !1) : (f <<= 1, f |= 1, v++)) : (a = o, C ? --N == 0 && (v++, C = !1) : (f <<= 1, v++)), v === 20)
|
|
2302
|
+
if ((o = 2 * a) >= 1 ? (a = o - 1, C ? (N--, C = !1) : (f <<= 1, f |= 1, v++)) : (a = o, C ? --N == 0 && (v++, C = !1) : (f <<= 1, v++)), v === 20) M |= f, f = 0;
|
|
2303
2303
|
else if (v === 52) {
|
|
2304
2304
|
H |= f;
|
|
2305
2305
|
break;
|
|
2306
2306
|
}
|
|
2307
2307
|
if (o === 1) {
|
|
2308
|
-
v < 20 ?
|
|
2308
|
+
v < 20 ? M |= f << 20 - v : v < 52 && (H |= f << 52 - v);
|
|
2309
2309
|
break;
|
|
2310
2310
|
}
|
|
2311
2311
|
}
|
|
2312
|
-
return
|
|
2312
|
+
return M |= N << 20, new Ae(M |= T, H);
|
|
2313
2313
|
}, he.longBitsToDouble = function(h) {
|
|
2314
2314
|
var a, o, f, v, C = h.high, T = h.low, N = C & 1 << 31 ? -1 : 1;
|
|
2315
2315
|
for (f = ((2146435072 & C) >> 20) - ee, v = 0, o = 1 << 19, a = 1; a <= 20; a++) C & o && (v += ie(2, -a)), o >>>= 1;
|
|
@@ -2631,8 +2631,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2631
2631
|
var f = arguments[0], v = arguments[1];
|
|
2632
2632
|
this.init(f.x, v.x, f.y, v.y);
|
|
2633
2633
|
} else if (arguments.length === 4) {
|
|
2634
|
-
var C = arguments[0], T = arguments[1], N = arguments[2],
|
|
2635
|
-
C < T ? (this._minx = C, this._maxx = T) : (this._minx = T, this._maxx = C), N <
|
|
2634
|
+
var C = arguments[0], T = arguments[1], N = arguments[2], M = arguments[3];
|
|
2635
|
+
C < T ? (this._minx = C, this._maxx = T) : (this._minx = T, this._maxx = C), N < M ? (this._miny = N, this._maxy = M) : (this._miny = M, this._maxy = N);
|
|
2636
2636
|
}
|
|
2637
2637
|
} }, { key: "getMaxY", value: function() {
|
|
2638
2638
|
return this._maxy;
|
|
@@ -2661,8 +2661,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2661
2661
|
var f = arguments[0], v = arguments[1];
|
|
2662
2662
|
this.init(f.x, v.x, f.y, v.y);
|
|
2663
2663
|
} else if (arguments.length === 4) {
|
|
2664
|
-
var C = arguments[0], T = arguments[1], N = arguments[2],
|
|
2665
|
-
this.init(C, T, N,
|
|
2664
|
+
var C = arguments[0], T = arguments[1], N = arguments[2], M = arguments[3];
|
|
2665
|
+
this.init(C, T, N, M);
|
|
2666
2666
|
}
|
|
2667
2667
|
} }, { key: "intersects", value: function() {
|
|
2668
2668
|
if (arguments.length === 3) {
|
|
@@ -2670,8 +2670,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2670
2670
|
return f.x >= (a.x < o.x ? a.x : o.x) && f.x <= (a.x > o.x ? a.x : o.x) && f.y >= (a.y < o.y ? a.y : o.y) && f.y <= (a.y > o.y ? a.y : o.y);
|
|
2671
2671
|
}
|
|
2672
2672
|
if (arguments.length === 4) {
|
|
2673
|
-
var v = arguments[0], C = arguments[1], T = arguments[2], N = arguments[3],
|
|
2674
|
-
return !(re > H) && !(ne <
|
|
2673
|
+
var v = arguments[0], C = arguments[1], T = arguments[2], N = arguments[3], M = Math.min(T.x, N.x), H = Math.max(T.x, N.x), re = Math.min(v.x, C.x), ne = Math.max(v.x, C.x);
|
|
2674
|
+
return !(re > H) && !(ne < M) && (M = Math.min(T.y, N.y), H = Math.max(T.y, N.y), re = Math.min(v.y, C.y), ne = Math.max(v.y, C.y), !(re > H) && !(ne < M));
|
|
2675
2675
|
}
|
|
2676
2676
|
} }]);
|
|
2677
2677
|
})(), fe = (function() {
|
|
@@ -2971,14 +2971,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2971
2971
|
} }, { key: "extractSignificantDigits", value: function(a, o) {
|
|
2972
2972
|
var f = this.abs(), v = h.magnitude(f._hi), C = h.TEN.pow(v);
|
|
2973
2973
|
(f = f.divide(C)).gt(h.TEN) ? (f = f.divide(h.TEN), v += 1) : f.lt(h.ONE) && (f = f.multiply(h.TEN), v -= 1);
|
|
2974
|
-
for (var T = v + 1, N = new ct(),
|
|
2974
|
+
for (var T = v + 1, N = new ct(), M = h.MAX_PRINT_DIGITS - 1, H = 0; H <= M; H++) {
|
|
2975
2975
|
a && H === T && N.append(".");
|
|
2976
2976
|
var re = Math.trunc(f._hi);
|
|
2977
2977
|
if (re < 0) break;
|
|
2978
2978
|
var ne = !1, ce = 0;
|
|
2979
2979
|
re > 9 ? (ne = !0, ce = "9") : ce = "0" + re, N.append(ce), f = f.subtract(h.valueOf(re)).multiply(h.TEN), ne && f.selfAdd(h.TEN);
|
|
2980
2980
|
var Ee = !0, De = h.magnitude(f._hi);
|
|
2981
|
-
if (De < 0 && Math.abs(De) >=
|
|
2981
|
+
if (De < 0 && Math.abs(De) >= M - H && (Ee = !1), !Ee) break;
|
|
2982
2982
|
}
|
|
2983
2983
|
return o[0] = v, N.toString();
|
|
2984
2984
|
} }, { key: "sqr", value: function() {
|
|
@@ -3025,15 +3025,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3025
3025
|
return this.selfDivide(o, 0);
|
|
3026
3026
|
}
|
|
3027
3027
|
} else if (arguments.length === 2) {
|
|
3028
|
-
var f, v, C, T, N = arguments[0],
|
|
3029
|
-
return C = this._hi / N, ce = (H = (ne = h.SPLIT * C) - (H = ne - C)) * (re = (ce = h.SPLIT * N) - (re = ce - N)) - (T = C * N) + H * (v = N - re) + (f = C - H) * re + f * v, ce = C + (ne = (this._hi - T - ce + this._lo - C *
|
|
3028
|
+
var f, v, C, T, N = arguments[0], M = arguments[1], H = null, re = null, ne = null, ce = null;
|
|
3029
|
+
return C = this._hi / N, ce = (H = (ne = h.SPLIT * C) - (H = ne - C)) * (re = (ce = h.SPLIT * N) - (re = ce - N)) - (T = C * N) + H * (v = N - re) + (f = C - H) * re + f * v, ce = C + (ne = (this._hi - T - ce + this._lo - C * M) / N), this._hi = ce, this._lo = C - ce + ne, this;
|
|
3030
3030
|
}
|
|
3031
3031
|
} }, { key: "dump", value: function() {
|
|
3032
3032
|
return "DD<" + this._hi + ", " + this._lo + ">";
|
|
3033
3033
|
} }, { key: "divide", value: function() {
|
|
3034
3034
|
if (arguments[0] instanceof h) {
|
|
3035
|
-
var a, o, f, v, C = arguments[0], T = null, N = null,
|
|
3036
|
-
return a = (f = this._hi / C._hi) - (T = (
|
|
3035
|
+
var a, o, f, v, C = arguments[0], T = null, N = null, M = null, H = null;
|
|
3036
|
+
return a = (f = this._hi / C._hi) - (T = (M = h.SPLIT * f) - (T = M - f)), H = T * (N = (H = h.SPLIT * C._hi) - (N = H - C._hi)) - (v = f * C._hi) + T * (o = C._hi - N) + a * N + a * o, new h(H = f + (M = (this._hi - v - H + this._lo - f * C._lo) / C._hi), f - H + M);
|
|
3037
3037
|
}
|
|
3038
3038
|
if (typeof arguments[0] == "number") {
|
|
3039
3039
|
var re = arguments[0];
|
|
@@ -3079,8 +3079,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3079
3079
|
return this.selfAdd(a._hi, a._lo);
|
|
3080
3080
|
}
|
|
3081
3081
|
if (typeof arguments[0] == "number") {
|
|
3082
|
-
var o, f, v, C, T, N = arguments[0],
|
|
3083
|
-
return
|
|
3082
|
+
var o, f, v, C, T, N = arguments[0], M = null;
|
|
3083
|
+
return M = (v = this._hi + N) - (C = v - this._hi), f = (T = (M = N - C + (this._hi - M)) + this._lo) + (v - (o = v + T)), this._hi = o + f, this._lo = f + (o - this._hi), this;
|
|
3084
3084
|
}
|
|
3085
3085
|
} else if (arguments.length === 2) {
|
|
3086
3086
|
var H, re, ne, ce, Ee = arguments[0], De = arguments[1], ke = null, $e = null, Ge = null;
|
|
@@ -3099,9 +3099,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3099
3099
|
return this.selfMultiply(o, 0);
|
|
3100
3100
|
}
|
|
3101
3101
|
} else if (arguments.length === 2) {
|
|
3102
|
-
var f, v, C = arguments[0], T = arguments[1], N = null,
|
|
3103
|
-
N = (H = h.SPLIT * this._hi) - this._hi, re = h.SPLIT * C, N = H - N, f = this._hi - N,
|
|
3104
|
-
var ne = (H = this._hi * C) + (re = N * (
|
|
3102
|
+
var f, v, C = arguments[0], T = arguments[1], N = null, M = null, H = null, re = null;
|
|
3103
|
+
N = (H = h.SPLIT * this._hi) - this._hi, re = h.SPLIT * C, N = H - N, f = this._hi - N, M = re - C;
|
|
3104
|
+
var ne = (H = this._hi * C) + (re = N * (M = re - M) - H + N * (v = C - M) + f * M + f * v + (this._hi * T + this._lo * C)), ce = re + (N = H - ne);
|
|
3105
3105
|
return this._hi = ne, this._lo = ce, this;
|
|
3106
3106
|
}
|
|
3107
3107
|
} }, { key: "selfSqr", value: function() {
|
|
@@ -3147,9 +3147,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3147
3147
|
}
|
|
3148
3148
|
return this.isNegative() ? "-" + C : C;
|
|
3149
3149
|
} }, { key: "reciprocal", value: function() {
|
|
3150
|
-
var a, o, f, v, C = null, T = null, N = null,
|
|
3151
|
-
a = (f = 1 / this._hi) - (C = (N = h.SPLIT * f) - (C = N - f)), T = (
|
|
3152
|
-
var H = f + (N = (1 - (v = f * this._hi) - (
|
|
3150
|
+
var a, o, f, v, C = null, T = null, N = null, M = null;
|
|
3151
|
+
a = (f = 1 / this._hi) - (C = (N = h.SPLIT * f) - (C = N - f)), T = (M = h.SPLIT * this._hi) - this._hi;
|
|
3152
|
+
var H = f + (N = (1 - (v = f * this._hi) - (M = C * (T = M - T) - v + C * (o = this._hi - T) + a * T + a * o) - f * this._lo) / this._hi);
|
|
3153
3153
|
return new h(H, f - H + N);
|
|
3154
3154
|
} }, { key: "toSciNotation", value: function() {
|
|
3155
3155
|
if (this.isZero()) return h.SCI_NOT_ZERO;
|
|
@@ -3242,7 +3242,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3242
3242
|
var C = a.charAt(o);
|
|
3243
3243
|
C !== "-" && C !== "+" || (o++, C === "-" && (v = !0));
|
|
3244
3244
|
}
|
|
3245
|
-
for (var T = new h(), N = 0,
|
|
3245
|
+
for (var T = new h(), N = 0, M = 0, H = 0, re = !1; !(o >= f); ) {
|
|
3246
3246
|
var ne = a.charAt(o);
|
|
3247
3247
|
if (o++, qt.isDigit(ne)) {
|
|
3248
3248
|
var ce = ne - "0";
|
|
@@ -3260,12 +3260,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3260
3260
|
}
|
|
3261
3261
|
throw new NumberFormatException("Unexpected character '" + ne + "' at position " + o + " in string " + a);
|
|
3262
3262
|
}
|
|
3263
|
-
|
|
3263
|
+
M = N, re = !0;
|
|
3264
3264
|
}
|
|
3265
3265
|
}
|
|
3266
3266
|
var De = T;
|
|
3267
|
-
re || (
|
|
3268
|
-
var ke = N -
|
|
3267
|
+
re || (M = N);
|
|
3268
|
+
var ke = N - M - H;
|
|
3269
3269
|
if (ke === 0) De = T;
|
|
3270
3270
|
else if (ke > 0) {
|
|
3271
3271
|
var $e = h.TEN.pow(ke);
|
|
@@ -3295,19 +3295,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3295
3295
|
return m(h, null, [{ key: "orientationIndex", value: function(a, o, f) {
|
|
3296
3296
|
var v = h.orientationIndexFilter(a, o, f);
|
|
3297
3297
|
if (v <= 1) return v;
|
|
3298
|
-
var C = Re.valueOf(o.x).selfAdd(-a.x), T = Re.valueOf(o.y).selfAdd(-a.y), N = Re.valueOf(f.x).selfAdd(-o.x),
|
|
3299
|
-
return C.selfMultiply(
|
|
3298
|
+
var C = Re.valueOf(o.x).selfAdd(-a.x), T = Re.valueOf(o.y).selfAdd(-a.y), N = Re.valueOf(f.x).selfAdd(-o.x), M = Re.valueOf(f.y).selfAdd(-o.y);
|
|
3299
|
+
return C.selfMultiply(M).selfSubtract(T.selfMultiply(N)).signum();
|
|
3300
3300
|
} }, { key: "signOfDet2x2", value: function() {
|
|
3301
3301
|
if (arguments[3] instanceof Re && arguments[2] instanceof Re && arguments[0] instanceof Re && arguments[1] instanceof Re) {
|
|
3302
3302
|
var a = arguments[1], o = arguments[2], f = arguments[3];
|
|
3303
3303
|
return arguments[0].multiply(f).selfSubtract(a.multiply(o)).signum();
|
|
3304
3304
|
}
|
|
3305
3305
|
if (typeof arguments[3] == "number" && typeof arguments[2] == "number" && typeof arguments[0] == "number" && typeof arguments[1] == "number") {
|
|
3306
|
-
var v = arguments[0], C = arguments[1], T = arguments[2], N = arguments[3],
|
|
3307
|
-
return
|
|
3306
|
+
var v = arguments[0], C = arguments[1], T = arguments[2], N = arguments[3], M = Re.valueOf(v), H = Re.valueOf(C), re = Re.valueOf(T), ne = Re.valueOf(N);
|
|
3307
|
+
return M.multiply(ne).selfSubtract(H.multiply(re)).signum();
|
|
3308
3308
|
}
|
|
3309
3309
|
} }, { key: "intersection", value: function(a, o, f, v) {
|
|
3310
|
-
var C = new Re(a.y).selfSubtract(o.y), T = new Re(o.x).selfSubtract(a.x), N = new Re(a.x).selfMultiply(o.y).selfSubtract(new Re(o.x).selfMultiply(a.y)),
|
|
3310
|
+
var C = new Re(a.y).selfSubtract(o.y), T = new Re(o.x).selfSubtract(a.x), N = new Re(a.x).selfMultiply(o.y).selfSubtract(new Re(o.x).selfMultiply(a.y)), M = new Re(f.y).selfSubtract(v.y), H = new Re(v.x).selfSubtract(f.x), re = new Re(f.x).selfMultiply(v.y).selfSubtract(new Re(v.x).selfMultiply(f.y)), ne = T.multiply(re).selfSubtract(H.multiply(N)), ce = M.multiply(N).selfSubtract(C.multiply(re)), Ee = C.multiply(H).selfSubtract(M.multiply(T)), De = ne.selfDivide(Ee).doubleValue(), ke = ce.selfDivide(Ee).doubleValue();
|
|
3311
3311
|
return he.isNaN(De) || he.isInfinite(De) || he.isNaN(ke) || he.isInfinite(ke) ? null : new Q(De, ke);
|
|
3312
3312
|
} }, { key: "orientationIndexFilter", value: function(a, o, f) {
|
|
3313
3313
|
var v = null, C = (a.x - f.x) * (o.y - f.y), T = (a.y - f.y) * (o.x - f.x), N = C - T;
|
|
@@ -3318,8 +3318,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3318
3318
|
if (!(C < 0) || T >= 0) return h.signum(N);
|
|
3319
3319
|
v = -C - T;
|
|
3320
3320
|
}
|
|
3321
|
-
var
|
|
3322
|
-
return N >=
|
|
3321
|
+
var M = h.DP_SAFE_EPSILON * v;
|
|
3322
|
+
return N >= M || -N >= M ? h.signum(N) : 2;
|
|
3323
3323
|
} }, { key: "signum", value: function(a) {
|
|
3324
3324
|
return a > 0 ? 1 : a < 0 ? -1 : 0;
|
|
3325
3325
|
} }]);
|
|
@@ -3377,11 +3377,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3377
3377
|
do
|
|
3378
3378
|
(N -= 1) < 0 && (N = o);
|
|
3379
3379
|
while (a[N].equals2D(f) && N !== v);
|
|
3380
|
-
var
|
|
3380
|
+
var M = v;
|
|
3381
3381
|
do
|
|
3382
|
-
|
|
3383
|
-
while (a[
|
|
3384
|
-
var H = a[N], re = a[
|
|
3382
|
+
M = (M + 1) % o;
|
|
3383
|
+
while (a[M].equals2D(f) && M !== v);
|
|
3384
|
+
var H = a[N], re = a[M];
|
|
3385
3385
|
if (H.equals2D(f) || re.equals2D(f) || H.equals2D(re)) return !1;
|
|
3386
3386
|
var ne = h.index(H, f, re);
|
|
3387
3387
|
return ne === 0 ? H.x > re.x : ne > 0;
|
|
@@ -3606,7 +3606,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3606
3606
|
return m((function h() {
|
|
3607
3607
|
s(this, h);
|
|
3608
3608
|
}), null, [{ key: "intersection", value: function(h, a, o, f) {
|
|
3609
|
-
var v = h.x < a.x ? h.x : a.x, C = h.y < a.y ? h.y : a.y, T = h.x > a.x ? h.x : a.x, N = h.y > a.y ? h.y : a.y,
|
|
3609
|
+
var v = h.x < a.x ? h.x : a.x, C = h.y < a.y ? h.y : a.y, T = h.x > a.x ? h.x : a.x, N = h.y > a.y ? h.y : a.y, M = o.x < f.x ? o.x : f.x, H = o.y < f.y ? o.y : f.y, re = o.x > f.x ? o.x : f.x, ne = o.y > f.y ? o.y : f.y, ce = ((v > M ? v : M) + (T < re ? T : re)) / 2, Ee = ((C > H ? C : H) + (N < ne ? N : ne)) / 2, De = h.x - ce, ke = h.y - Ee, $e = a.x - ce, Ge = a.y - Ee, He = o.x - ce, et = o.y - Ee, it = f.x - ce, Yt = f.y - Ee, fr = ke - Ge, dn = $e - De, fn = De * Ge - $e * ke, hn = et - Yt, pn = it - He, gn = He * Yt - it * et, mn = fr * pn - hn * dn, wr = (dn * gn - pn * fn) / mn, kr = (hn * fn - fr * gn) / mn;
|
|
3610
3610
|
return he.isNaN(wr) || he.isInfinite(wr) || he.isNaN(kr) || he.isInfinite(kr) ? null : new Q(wr + ce, kr + Ee);
|
|
3611
3611
|
} }]);
|
|
3612
3612
|
})(), Qe = (function() {
|
|
@@ -3665,8 +3665,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3665
3665
|
var T = (o.x - a.x) * (v.y - f.y) - (o.y - a.y) * (v.x - f.x);
|
|
3666
3666
|
if (T === 0) C = !0;
|
|
3667
3667
|
else {
|
|
3668
|
-
var N = (a.y - f.y) * (v.x - f.x) - (a.x - f.x) * (v.y - f.y),
|
|
3669
|
-
(H < 0 || H > 1 ||
|
|
3668
|
+
var N = (a.y - f.y) * (v.x - f.x) - (a.x - f.x) * (v.y - f.y), M = ((a.y - f.y) * (o.x - a.x) - (a.x - f.x) * (o.y - a.y)) / T, H = N / T;
|
|
3669
|
+
(H < 0 || H > 1 || M < 0 || M > 1) && (C = !0);
|
|
3670
3670
|
}
|
|
3671
3671
|
} else C = !0;
|
|
3672
3672
|
return C ? mt.min(h.pointToSegment(a, f, v), h.pointToSegment(o, f, v), h.pointToSegment(f, a, o), h.pointToSegment(v, a, o)) : 0;
|
|
@@ -3715,8 +3715,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3715
3715
|
h.getCoordinate(0, f);
|
|
3716
3716
|
for (var v = f.x, C = f.y, T = 1; T < a; T++) {
|
|
3717
3717
|
h.getCoordinate(T, f);
|
|
3718
|
-
var N = f.x,
|
|
3719
|
-
o += Math.sqrt(H * H + re * re), v = N, C =
|
|
3718
|
+
var N = f.x, M = f.y, H = N - v, re = M - C;
|
|
3719
|
+
o += Math.sqrt(H * H + re * re), v = N, C = M;
|
|
3720
3720
|
}
|
|
3721
3721
|
return o;
|
|
3722
3722
|
} }]);
|
|
@@ -3742,17 +3742,17 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3742
3742
|
h.scroll(f, C);
|
|
3743
3743
|
}
|
|
3744
3744
|
} else if (arguments.length === 3) {
|
|
3745
|
-
var T = arguments[0], N = arguments[1],
|
|
3745
|
+
var T = arguments[0], N = arguments[1], M = arguments[2];
|
|
3746
3746
|
if (N <= 0) return null;
|
|
3747
|
-
for (var H = T.copy(), re =
|
|
3748
|
-
if (
|
|
3747
|
+
for (var H = T.copy(), re = M ? T.size() - 1 : T.size(), ne = 0; ne < re; ne++) for (var ce = 0; ce < T.getDimension(); ce++) T.setOrdinate(ne, ce, H.getOrdinate((N + ne) % re, ce));
|
|
3748
|
+
if (M) for (var Ee = 0; Ee < T.getDimension(); Ee++) T.setOrdinate(re, Ee, T.getOrdinate(0, Ee));
|
|
3749
3749
|
}
|
|
3750
3750
|
} }, { key: "isEqual", value: function(a, o) {
|
|
3751
3751
|
var f = a.size();
|
|
3752
3752
|
if (f !== o.size()) return !1;
|
|
3753
3753
|
for (var v = Math.min(a.getDimension(), o.getDimension()), C = 0; C < f; C++) for (var T = 0; T < v; T++) {
|
|
3754
|
-
var N = a.getOrdinate(C, T),
|
|
3755
|
-
if (a.getOrdinate(C, T) !== o.getOrdinate(C, T) && (!he.isNaN(N) || !he.isNaN(
|
|
3754
|
+
var N = a.getOrdinate(C, T), M = o.getOrdinate(C, T);
|
|
3755
|
+
if (a.getOrdinate(C, T) !== o.getOrdinate(C, T) && (!he.isNaN(N) || !he.isNaN(M))) return !1;
|
|
3756
3756
|
}
|
|
3757
3757
|
return !0;
|
|
3758
3758
|
} }, { key: "minCoordinateIndex", value: function() {
|
|
@@ -3838,7 +3838,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3838
3838
|
} }]);
|
|
3839
3839
|
})();
|
|
3840
3840
|
ye.P = 0, ye.L = 1, ye.A = 2, ye.FALSE = -1, ye.TRUE = -2, ye.DONTCARE = -3, ye.SYM_FALSE = "F", ye.SYM_TRUE = "T", ye.SYM_DONTCARE = "*", ye.SYM_P = "0", ye.SYM_L = "1", ye.SYM_A = "2";
|
|
3841
|
-
var
|
|
3841
|
+
var F = (function() {
|
|
3842
3842
|
return m((function h() {
|
|
3843
3843
|
s(this, h);
|
|
3844
3844
|
}), [{ key: "filter", value: function(h) {
|
|
@@ -3923,7 +3923,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3923
3923
|
if (this._points.size() === 0) return null;
|
|
3924
3924
|
for (var C = 0; C < this._points.size() && (v.filter(this._points, C), !v.isDone()); C++) ;
|
|
3925
3925
|
v.isGeometryChanged() && this.geometryChanged();
|
|
3926
|
-
} else Le(arguments[0],
|
|
3926
|
+
} else Le(arguments[0], F) ? arguments[0].filter(this) : Le(arguments[0], Y) && arguments[0].filter(this);
|
|
3927
3927
|
} }, { key: "getBoundary", value: function() {
|
|
3928
3928
|
throw new Ve();
|
|
3929
3929
|
} }, { key: "isEquivalentClass", value: function(o) {
|
|
@@ -4011,7 +4011,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4011
4011
|
var f = arguments[0];
|
|
4012
4012
|
if (this.isEmpty()) return null;
|
|
4013
4013
|
f.filter(this._coordinates, 0), f.isGeometryChanged() && this.geometryChanged();
|
|
4014
|
-
} else Le(arguments[0],
|
|
4014
|
+
} else Le(arguments[0], F) ? arguments[0].filter(this) : Le(arguments[0], Y) && arguments[0].filter(this);
|
|
4015
4015
|
} }, { key: "getBoundary", value: function() {
|
|
4016
4016
|
return this.getFactory().createGeometryCollection();
|
|
4017
4017
|
} }, { key: "getGeometryType", value: function() {
|
|
@@ -4058,13 +4058,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4058
4058
|
return o / 2;
|
|
4059
4059
|
}
|
|
4060
4060
|
if (Le(arguments[0], Fe)) {
|
|
4061
|
-
var N = arguments[0],
|
|
4062
|
-
if (
|
|
4061
|
+
var N = arguments[0], M = N.size();
|
|
4062
|
+
if (M < 3) return 0;
|
|
4063
4063
|
var H = new Q(), re = new Q(), ne = new Q();
|
|
4064
4064
|
N.getCoordinate(0, re), N.getCoordinate(1, ne);
|
|
4065
4065
|
var ce = re.x;
|
|
4066
4066
|
ne.x -= ce;
|
|
4067
|
-
for (var Ee = 0, De = 1; De <
|
|
4067
|
+
for (var Ee = 0, De = 1; De < M - 1; De++) H.y = re.y, re.x = ne.x, re.y = ne.y, N.getCoordinate(De + 1, ne), ne.x -= ce, Ee += re.x * (H.y - ne.y);
|
|
4068
4068
|
return Ee / 2;
|
|
4069
4069
|
}
|
|
4070
4070
|
} }]);
|
|
@@ -4100,9 +4100,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4100
4100
|
N.sort((function(ce, Ee) {
|
|
4101
4101
|
return h[3].compare(ce, Ee);
|
|
4102
4102
|
}));
|
|
4103
|
-
var
|
|
4103
|
+
var M = a.slice(0, arguments[1]).concat(N, a.slice(arguments[2], a.length));
|
|
4104
4104
|
a.splice(0, a.length);
|
|
4105
|
-
var H, re = y(
|
|
4105
|
+
var H, re = y(M);
|
|
4106
4106
|
try {
|
|
4107
4107
|
for (re.s(); !(H = re.n()).done; ) {
|
|
4108
4108
|
var ne = H.value;
|
|
@@ -4142,7 +4142,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4142
4142
|
} }, { key: "getCoordinates", value: function() {
|
|
4143
4143
|
if (this.isEmpty()) return [];
|
|
4144
4144
|
for (var o = new Array(this.getNumPoints()).fill(null), f = -1, v = this._shell.getCoordinates(), C = 0; C < v.length; C++) o[++f] = v[C];
|
|
4145
|
-
for (var T = 0; T < this._holes.length; T++) for (var N = this._holes[T].getCoordinates(),
|
|
4145
|
+
for (var T = 0; T < this._holes.length; T++) for (var N = this._holes[T].getCoordinates(), M = 0; M < N.length; M++) o[++f] = N[M];
|
|
4146
4146
|
return o;
|
|
4147
4147
|
} }, { key: "getArea", value: function() {
|
|
4148
4148
|
var o = 0;
|
|
@@ -4160,10 +4160,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4160
4160
|
var T = o.getY(v);
|
|
4161
4161
|
if (T !== f.getMinY() && T !== f.getMaxY()) return !1;
|
|
4162
4162
|
}
|
|
4163
|
-
for (var N = o.getX(0),
|
|
4163
|
+
for (var N = o.getX(0), M = o.getY(0), H = 1; H <= 4; H++) {
|
|
4164
4164
|
var re = o.getX(H), ne = o.getY(H);
|
|
4165
|
-
if (re !== N == (ne !==
|
|
4166
|
-
N = re,
|
|
4165
|
+
if (re !== N == (ne !== M)) return !1;
|
|
4166
|
+
N = re, M = ne;
|
|
4167
4167
|
}
|
|
4168
4168
|
return !0;
|
|
4169
4169
|
} }, { key: "equalsExact", value: function() {
|
|
@@ -4219,7 +4219,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4219
4219
|
return f.compareToSameClass(v);
|
|
4220
4220
|
}
|
|
4221
4221
|
if (arguments.length === 2) {
|
|
4222
|
-
var C = arguments[1], T = arguments[0], N = this._shell,
|
|
4222
|
+
var C = arguments[1], T = arguments[0], N = this._shell, M = T._shell, H = N.compareToSameClass(M, C);
|
|
4223
4223
|
if (H !== 0) return H;
|
|
4224
4224
|
for (var re = this.getNumInteriorRing(), ne = T.getNumInteriorRing(), ce = 0; ce < re && ce < ne; ) {
|
|
4225
4225
|
var Ee = this.getInteriorRingN(ce), De = T.getInteriorRingN(ce), ke = Ee.compareToSameClass(De, C);
|
|
@@ -4237,7 +4237,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4237
4237
|
var v = arguments[0];
|
|
4238
4238
|
if (this._shell.apply(v), !v.isDone()) for (var C = 0; C < this._holes.length && (this._holes[C].apply(v), !v.isDone()); C++) ;
|
|
4239
4239
|
v.isGeometryChanged() && this.geometryChanged();
|
|
4240
|
-
} else if (Le(arguments[0],
|
|
4240
|
+
} else if (Le(arguments[0], F))
|
|
4241
4241
|
arguments[0].filter(this);
|
|
4242
4242
|
else if (Le(arguments[0], Y)) {
|
|
4243
4243
|
var T = arguments[0];
|
|
@@ -4387,12 +4387,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4387
4387
|
return this.compare(f, v);
|
|
4388
4388
|
}
|
|
4389
4389
|
if (arguments.length === 2) {
|
|
4390
|
-
for (var C = arguments[1], T = arguments[0], N = this.getNumGeometries(),
|
|
4390
|
+
for (var C = arguments[1], T = arguments[0], N = this.getNumGeometries(), M = T.getNumGeometries(), H = 0; H < N && H < M; ) {
|
|
4391
4391
|
var re = this.getGeometryN(H), ne = T.getGeometryN(H), ce = re.compareToSameClass(ne, C);
|
|
4392
4392
|
if (ce !== 0) return ce;
|
|
4393
4393
|
H++;
|
|
4394
4394
|
}
|
|
4395
|
-
return H < N ? 1 : H <
|
|
4395
|
+
return H < N ? 1 : H < M ? -1 : 0;
|
|
4396
4396
|
}
|
|
4397
4397
|
} }, { key: "apply", value: function() {
|
|
4398
4398
|
if (Le(arguments[0], Ft)) for (var o = arguments[0], f = 0; f < this._geometries.length; f++) this._geometries[f].apply(o);
|
|
@@ -4401,14 +4401,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4401
4401
|
if (this._geometries.length === 0) return null;
|
|
4402
4402
|
for (var C = 0; C < this._geometries.length && (this._geometries[C].apply(v), !v.isDone()); C++) ;
|
|
4403
4403
|
v.isGeometryChanged() && this.geometryChanged();
|
|
4404
|
-
} else if (Le(arguments[0],
|
|
4404
|
+
} else if (Le(arguments[0], F)) {
|
|
4405
4405
|
var T = arguments[0];
|
|
4406
4406
|
T.filter(this);
|
|
4407
4407
|
for (var N = 0; N < this._geometries.length; N++) this._geometries[N].apply(T);
|
|
4408
4408
|
} else if (Le(arguments[0], Y)) {
|
|
4409
|
-
var
|
|
4410
|
-
|
|
4411
|
-
for (var H = 0; H < this._geometries.length; H++) this._geometries[H].apply(
|
|
4409
|
+
var M = arguments[0];
|
|
4410
|
+
M.filter(this);
|
|
4411
|
+
for (var H = 0; H < this._geometries.length; H++) this._geometries[H].apply(M);
|
|
4412
4412
|
}
|
|
4413
4413
|
} }, { key: "getBoundary", value: function() {
|
|
4414
4414
|
return fe.checkNotGeometryCollection(this), ve.shouldNeverReachHere(), null;
|
|
@@ -4722,9 +4722,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4722
4722
|
}
|
|
4723
4723
|
} else if (arguments.length === 3) {
|
|
4724
4724
|
if (typeof arguments[2] == "boolean" && arguments[0] instanceof Array && typeof arguments[1] == "boolean") {
|
|
4725
|
-
var
|
|
4726
|
-
if (arguments[2]) for (var re = 0; re <
|
|
4727
|
-
else for (var ne =
|
|
4725
|
+
var M = arguments[0], H = arguments[1];
|
|
4726
|
+
if (arguments[2]) for (var re = 0; re < M.length; re++) this.add(M[re], H);
|
|
4727
|
+
else for (var ne = M.length - 1; ne >= 0; ne--) this.add(M[ne], H);
|
|
4728
4728
|
return !0;
|
|
4729
4729
|
}
|
|
4730
4730
|
if (typeof arguments[2] == "boolean" && Number.isInteger(arguments[0]) && arguments[1] instanceof Q) {
|
|
@@ -4830,7 +4830,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4830
4830
|
for (var a = arguments[0], o = new Array(a.length).fill(null), f = 0; f < a.length; f++) o[f] = a[f].copy();
|
|
4831
4831
|
return o;
|
|
4832
4832
|
}
|
|
4833
|
-
if (arguments.length === 5) for (var v = arguments[0], C = arguments[1], T = arguments[2], N = arguments[3],
|
|
4833
|
+
if (arguments.length === 5) for (var v = arguments[0], C = arguments[1], T = arguments[2], N = arguments[3], M = arguments[4], H = 0; H < M; H++) T[N + H] = v[C + H].copy();
|
|
4834
4834
|
} }, { key: "isEqualReversed", value: function(a, o) {
|
|
4835
4835
|
for (var f = 0; f < a.length; f++) {
|
|
4836
4836
|
var v = a[f], C = o[a.length - f - 1];
|
|
@@ -4910,7 +4910,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4910
4910
|
if (o.length < f.length) return -1;
|
|
4911
4911
|
if (o.length > f.length) return 1;
|
|
4912
4912
|
if (o.length === 0) return 0;
|
|
4913
|
-
for (var v = qe.increasingDirection(o), C = qe.increasingDirection(f), T = v > 0 ? 0 : o.length - 1, N = C > 0 ? 0 : o.length - 1,
|
|
4913
|
+
for (var v = qe.increasingDirection(o), C = qe.increasingDirection(f), T = v > 0 ? 0 : o.length - 1, N = C > 0 ? 0 : o.length - 1, M = 0; M < o.length; M++) {
|
|
4914
4914
|
var H = o[T].compareTo(f[N]);
|
|
4915
4915
|
if (H !== 0) return H;
|
|
4916
4916
|
T += v, N += C;
|
|
@@ -5024,9 +5024,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
5024
5024
|
var T = arguments[0], N = arguments[1];
|
|
5025
5025
|
h.constructor_.call(this, T, N, qe.measures(T));
|
|
5026
5026
|
} else if (Number.isInteger(arguments[0]) && Number.isInteger(arguments[1])) {
|
|
5027
|
-
var
|
|
5028
|
-
this._coordinates = new Array(
|
|
5029
|
-
for (var re = 0; re <
|
|
5027
|
+
var M = arguments[0], H = arguments[1];
|
|
5028
|
+
this._coordinates = new Array(M).fill(null), this._dimension = H;
|
|
5029
|
+
for (var re = 0; re < M; re++) this._coordinates[re] = ft.create(H);
|
|
5030
5030
|
}
|
|
5031
5031
|
} else if (arguments.length === 3) {
|
|
5032
5032
|
if (Number.isInteger(arguments[2]) && arguments[0] instanceof Array && Number.isInteger(arguments[1])) {
|
|
@@ -5270,14 +5270,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
5270
5270
|
}
|
|
5271
5271
|
if (o === null) return this.createGeometryCollection();
|
|
5272
5272
|
if (f || v) return this.createGeometryCollection(h.toGeometryArray(a));
|
|
5273
|
-
var
|
|
5273
|
+
var M = a.iterator().next();
|
|
5274
5274
|
if (a.size() > 1) {
|
|
5275
|
-
if (
|
|
5276
|
-
if (
|
|
5277
|
-
if (
|
|
5278
|
-
ve.shouldNeverReachHere("Unhandled geometry type: " +
|
|
5275
|
+
if (M instanceof Je) return this.createMultiPolygon(h.toPolygonArray(a));
|
|
5276
|
+
if (M instanceof J) return this.createMultiLineString(h.toLineStringArray(a));
|
|
5277
|
+
if (M instanceof ge) return this.createMultiPoint(h.toPointArray(a));
|
|
5278
|
+
ve.shouldNeverReachHere("Unhandled geometry type: " + M.getGeometryType());
|
|
5279
5279
|
}
|
|
5280
|
-
return
|
|
5280
|
+
return M;
|
|
5281
5281
|
} }, { key: "createMultiPointFromCoords", value: function(a) {
|
|
5282
5282
|
return this.createMultiPoint(a !== null ? this.getCoordinateSequenceFactory().create(a) : null);
|
|
5283
5283
|
} }, { key: "createPoint", value: function() {
|
|
@@ -5540,8 +5540,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
5540
5540
|
var N = this.parseLineStringText_().map(a);
|
|
5541
5541
|
return h.createLineString(N);
|
|
5542
5542
|
case "LINEARRING":
|
|
5543
|
-
var
|
|
5544
|
-
return h.createLinearRing(
|
|
5543
|
+
var M = this.parseLineStringText_().map(a);
|
|
5544
|
+
return h.createLinearRing(M);
|
|
5545
5545
|
case "POLYGON":
|
|
5546
5546
|
var H = this.parsePolygonText_();
|
|
5547
5547
|
return H && H.length !== 0 ? o(H) : h.createPolygon();
|
|
@@ -5688,8 +5688,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
5688
5688
|
if (a.equals(o)) T = 0;
|
|
5689
5689
|
else if (a.equals(f)) T = v > C ? v : C;
|
|
5690
5690
|
else {
|
|
5691
|
-
var N = Math.abs(a.x - o.x),
|
|
5692
|
-
(T = v > C ? N :
|
|
5691
|
+
var N = Math.abs(a.x - o.x), M = Math.abs(a.y - o.y);
|
|
5692
|
+
(T = v > C ? N : M) !== 0 || a.equals(o) || (T = Math.max(N, M));
|
|
5693
5693
|
}
|
|
5694
5694
|
return ve.isTrue(!(T === 0 && !a.equals(o)), "Bad distance calculation"), T;
|
|
5695
5695
|
} }, { key: "nonRobustComputeEdgeDistance", value: function(a, o, f) {
|
|
@@ -5714,23 +5714,23 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
5714
5714
|
var T = this.intersectionSafe(o, f, v, C);
|
|
5715
5715
|
return this.isInSegmentEnvelopes(T) || (T = new Q(a.nearestEndpoint(o, f, v, C))), this._precisionModel !== null && this._precisionModel.makePrecise(T), T;
|
|
5716
5716
|
} }, { key: "checkDD", value: function(o, f, v, C, T) {
|
|
5717
|
-
var N = Tt.intersection(o, f, v, C),
|
|
5718
|
-
Qe.out.println("DD in env = " +
|
|
5717
|
+
var N = Tt.intersection(o, f, v, C), M = this.isInSegmentEnvelopes(N);
|
|
5718
|
+
Qe.out.println("DD in env = " + M + " --------------------- " + N), T.distance(N) > 1e-4 && Qe.out.println("Distance = " + T.distance(N));
|
|
5719
5719
|
} }, { key: "intersectionSafe", value: function(o, f, v, C) {
|
|
5720
5720
|
var T = Ct.intersection(o, f, v, C);
|
|
5721
5721
|
return T === null && (T = a.nearestEndpoint(o, f, v, C)), T;
|
|
5722
5722
|
} }, { key: "computeCollinearIntersection", value: function(o, f, v, C) {
|
|
5723
|
-
var T = me.intersects(o, f, v), N = me.intersects(o, f, C),
|
|
5724
|
-
return T && N ? (this._intPt[0] = v, this._intPt[1] = C, Xe.COLLINEAR_INTERSECTION) :
|
|
5723
|
+
var T = me.intersects(o, f, v), N = me.intersects(o, f, C), M = me.intersects(v, C, o), H = me.intersects(v, C, f);
|
|
5724
|
+
return T && N ? (this._intPt[0] = v, this._intPt[1] = C, Xe.COLLINEAR_INTERSECTION) : M && H ? (this._intPt[0] = o, this._intPt[1] = f, Xe.COLLINEAR_INTERSECTION) : T && M ? (this._intPt[0] = v, this._intPt[1] = o, !v.equals(o) || N || H ? Xe.COLLINEAR_INTERSECTION : Xe.POINT_INTERSECTION) : T && H ? (this._intPt[0] = v, this._intPt[1] = f, !v.equals(f) || N || M ? Xe.COLLINEAR_INTERSECTION : Xe.POINT_INTERSECTION) : N && M ? (this._intPt[0] = C, this._intPt[1] = o, !C.equals(o) || T || H ? Xe.COLLINEAR_INTERSECTION : Xe.POINT_INTERSECTION) : N && H ? (this._intPt[0] = C, this._intPt[1] = f, !C.equals(f) || T || M ? Xe.COLLINEAR_INTERSECTION : Xe.POINT_INTERSECTION) : Xe.NO_INTERSECTION;
|
|
5725
5725
|
} }, { key: "computeIntersect", value: function(o, f, v, C) {
|
|
5726
5726
|
if (this._isProper = !1, !me.intersects(o, f, v, C)) return Xe.NO_INTERSECTION;
|
|
5727
5727
|
var T = Ne.index(o, f, v), N = Ne.index(o, f, C);
|
|
5728
5728
|
if (T > 0 && N > 0 || T < 0 && N < 0) return Xe.NO_INTERSECTION;
|
|
5729
|
-
var
|
|
5730
|
-
return
|
|
5729
|
+
var M = Ne.index(v, C, o), H = Ne.index(v, C, f);
|
|
5730
|
+
return M > 0 && H > 0 || M < 0 && H < 0 ? Xe.NO_INTERSECTION : T === 0 && N === 0 && M === 0 && H === 0 ? this.computeCollinearIntersection(o, f, v, C) : (T === 0 || N === 0 || M === 0 || H === 0 ? (this._isProper = !1, o.equals2D(v) || o.equals2D(C) ? this._intPt[0] = o : f.equals2D(v) || f.equals2D(C) ? this._intPt[0] = f : T === 0 ? this._intPt[0] = new Q(v) : N === 0 ? this._intPt[0] = new Q(C) : M === 0 ? this._intPt[0] = new Q(o) : H === 0 && (this._intPt[0] = new Q(f))) : (this._isProper = !0, this._intPt[0] = this.intersection(o, f, v, C)), Xe.POINT_INTERSECTION);
|
|
5731
5731
|
} }], [{ key: "nearestEndpoint", value: function(o, f, v, C) {
|
|
5732
|
-
var T = o, N = nt.pointToSegment(o, v, C),
|
|
5733
|
-
return
|
|
5732
|
+
var T = o, N = nt.pointToSegment(o, v, C), M = nt.pointToSegment(f, v, C);
|
|
5733
|
+
return M < N && (N = M, T = f), (M = nt.pointToSegment(v, o, f)) < N && (N = M, T = v), (M = nt.pointToSegment(C, o, f)) < N && (N = M, T = C), T;
|
|
5734
5734
|
} }]);
|
|
5735
5735
|
})(Xe), An = (function() {
|
|
5736
5736
|
function h() {
|
|
@@ -5764,8 +5764,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
5764
5764
|
return o.getLocation();
|
|
5765
5765
|
}
|
|
5766
5766
|
if (arguments[0] instanceof Q && arguments[1] instanceof Array) {
|
|
5767
|
-
for (var T = arguments[1], N = new h(arguments[0]),
|
|
5768
|
-
var H = T[
|
|
5767
|
+
for (var T = arguments[1], N = new h(arguments[0]), M = 1; M < T.length; M++) {
|
|
5768
|
+
var H = T[M], re = T[M - 1];
|
|
5769
5769
|
if (N.countSegment(H, re), N.isOnSegment()) return N.getLocation();
|
|
5770
5770
|
}
|
|
5771
5771
|
return N.getLocation();
|
|
@@ -5781,9 +5781,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
5781
5781
|
return !1;
|
|
5782
5782
|
}
|
|
5783
5783
|
if (arguments[0] instanceof Q && arguments[1] instanceof Array) {
|
|
5784
|
-
for (var
|
|
5784
|
+
for (var M = arguments[0], H = arguments[1], re = new Wt(), ne = 1; ne < H.length; ne++) {
|
|
5785
5785
|
var ce = H[ne - 1], Ee = H[ne];
|
|
5786
|
-
if (re.computeIntersection(
|
|
5786
|
+
if (re.computeIntersection(M, ce, Ee), re.hasIntersection()) return !0;
|
|
5787
5787
|
}
|
|
5788
5788
|
return !1;
|
|
5789
5789
|
}
|
|
@@ -5936,8 +5936,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
5936
5936
|
var C = arguments[0], T = arguments[1], N = arguments[2];
|
|
5937
5937
|
this.elt[0] = new bt(C, T, N), this.elt[1] = new bt(C, T, N);
|
|
5938
5938
|
} else if (arguments.length === 4) {
|
|
5939
|
-
var
|
|
5940
|
-
this.elt[0] = new bt(V.NONE, V.NONE, V.NONE), this.elt[1] = new bt(V.NONE, V.NONE, V.NONE), this.elt[
|
|
5939
|
+
var M = arguments[0], H = arguments[1], re = arguments[2], ne = arguments[3];
|
|
5940
|
+
this.elt[0] = new bt(V.NONE, V.NONE, V.NONE), this.elt[1] = new bt(V.NONE, V.NONE, V.NONE), this.elt[M].setLocations(H, re, ne);
|
|
5941
5941
|
}
|
|
5942
5942
|
} }, { key: "toLineLabel", value: function(a) {
|
|
5943
5943
|
for (var o = new h(V.NONE), f = 0; f < 2; f++) o.setLocation(f, a.getLocation(f));
|
|
@@ -6215,12 +6215,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6215
6215
|
T = T.right;
|
|
6216
6216
|
}
|
|
6217
6217
|
while (T !== null);
|
|
6218
|
-
var
|
|
6218
|
+
var M = { key: o, left: null, right: null, value: f, parent: v, color: 0, getValue: function() {
|
|
6219
6219
|
return this.value;
|
|
6220
6220
|
}, getKey: function() {
|
|
6221
6221
|
return this.key;
|
|
6222
6222
|
} };
|
|
6223
|
-
return C < 0 ? v.left =
|
|
6223
|
+
return C < 0 ? v.left = M : v.right = M, this.fixAfterInsertion(M), this.size_++, null;
|
|
6224
6224
|
} }, { key: "fixAfterInsertion", value: function(o) {
|
|
6225
6225
|
var f;
|
|
6226
6226
|
for (o.color = 1; o != null && o !== this.root_ && o.parent.color === 1; ) je(o) === xr(je(je(o))) ? Gr(f = $r(je(je(o)))) === 1 ? (Nt(je(o), 0), Nt(f, 0), Nt(je(je(o)), 1), o = je(je(o))) : (o === $r(je(o)) && (o = je(o), this.rotateLeft(o)), Nt(je(o), 0), Nt(je(je(o)), 1), this.rotateRight(je(je(o)))) : Gr(f = xr(je(je(o)))) === 1 ? (Nt(je(o), 0), Nt(f, 0), Nt(je(je(o)), 1), o = je(je(o))) : (o === xr(je(o)) && (o = je(o), this.rotateRight(o)), Nt(je(o), 0), Nt(je(je(o)), 1), this.rotateLeft(je(je(o))));
|
|
@@ -6380,8 +6380,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6380
6380
|
var o = arguments[0], f = arguments[1], v = arguments[2];
|
|
6381
6381
|
h.constructor_.call(this, o, f, v, null);
|
|
6382
6382
|
} else if (arguments.length === 4) {
|
|
6383
|
-
var C = arguments[0], T = arguments[1], N = arguments[2],
|
|
6384
|
-
h.constructor_.call(this, C), this.init(T, N), this._label =
|
|
6383
|
+
var C = arguments[0], T = arguments[1], N = arguments[2], M = arguments[3];
|
|
6384
|
+
h.constructor_.call(this, C), this.init(T, N), this._label = M;
|
|
6385
6385
|
}
|
|
6386
6386
|
} }]);
|
|
6387
6387
|
})(), Sr = (function(h) {
|
|
@@ -6582,8 +6582,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6582
6582
|
var T = C.next();
|
|
6583
6583
|
if (T.getMaxNodeDegree() > 2) {
|
|
6584
6584
|
T.linkDirectedEdgesForMinimalEdgeRings();
|
|
6585
|
-
var N = T.buildMinimalRings(),
|
|
6586
|
-
|
|
6585
|
+
var N = T.buildMinimalRings(), M = this.findShell(N);
|
|
6586
|
+
M !== null ? (this.placePolygonHoles(M, N), o.add(M)) : f.addAll(N);
|
|
6587
6587
|
} else v.add(T);
|
|
6588
6588
|
}
|
|
6589
6589
|
return v;
|
|
@@ -6624,8 +6624,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6624
6624
|
var a = arguments[0];
|
|
6625
6625
|
this._geometryFactory = a;
|
|
6626
6626
|
} }, { key: "findEdgeRingContaining", value: function(a, o) {
|
|
6627
|
-
for (var f = a.getLinearRing(), v = f.getEnvelopeInternal(), C = f.getCoordinateN(0), T = null, N = null,
|
|
6628
|
-
var H =
|
|
6627
|
+
for (var f = a.getLinearRing(), v = f.getEnvelopeInternal(), C = f.getCoordinateN(0), T = null, N = null, M = o.iterator(); M.hasNext(); ) {
|
|
6628
|
+
var H = M.next(), re = H.getLinearRing(), ne = re.getEnvelopeInternal();
|
|
6629
6629
|
if (!ne.equals(v) && ne.contains(v)) {
|
|
6630
6630
|
C = qe.ptNotInList(f.getCoordinates(), re.getCoordinates());
|
|
6631
6631
|
var ce = !1;
|
|
@@ -6728,9 +6728,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6728
6728
|
function h() {
|
|
6729
6729
|
s(this, h);
|
|
6730
6730
|
}
|
|
6731
|
-
return m(h, null, [{ key: "maxDistance", value: function(a, o, f, v, C, T, N,
|
|
6731
|
+
return m(h, null, [{ key: "maxDistance", value: function(a, o, f, v, C, T, N, M) {
|
|
6732
6732
|
var H = h.distance(a, o, C, T);
|
|
6733
|
-
return H = Math.max(H, h.distance(a, o, N,
|
|
6733
|
+
return H = Math.max(H, h.distance(a, o, N, M)), H = Math.max(H, h.distance(f, v, C, T)), H = Math.max(H, h.distance(f, v, N, M));
|
|
6734
6734
|
} }, { key: "distance", value: function(a, o, f, v) {
|
|
6735
6735
|
var C = f - a, T = v - o;
|
|
6736
6736
|
return Math.sqrt(C * C + T * T);
|
|
@@ -6738,8 +6738,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6738
6738
|
var f = Math.min(a.getMinX(), o.getMinX()), v = Math.min(a.getMinY(), o.getMinY()), C = Math.max(a.getMaxX(), o.getMaxX()), T = Math.max(a.getMaxY(), o.getMaxY());
|
|
6739
6739
|
return h.distance(f, v, C, T);
|
|
6740
6740
|
} }, { key: "minMaxDistance", value: function(a, o) {
|
|
6741
|
-
var f = a.getMinX(), v = a.getMinY(), C = a.getMaxX(), T = a.getMaxY(), N = o.getMinX(),
|
|
6742
|
-
return ne = Math.min(ne, h.maxDistance(f, v, f, T, N,
|
|
6741
|
+
var f = a.getMinX(), v = a.getMinY(), C = a.getMaxX(), T = a.getMaxY(), N = o.getMinX(), M = o.getMinY(), H = o.getMaxX(), re = o.getMaxY(), ne = h.maxDistance(f, v, f, T, N, M, N, re);
|
|
6742
|
+
return ne = Math.min(ne, h.maxDistance(f, v, f, T, N, M, H, M)), ne = Math.min(ne, h.maxDistance(f, v, f, T, H, re, N, re)), ne = Math.min(ne, h.maxDistance(f, v, f, T, H, re, H, M)), ne = Math.min(ne, h.maxDistance(f, v, C, v, N, M, N, re)), ne = Math.min(ne, h.maxDistance(f, v, C, v, N, M, H, M)), ne = Math.min(ne, h.maxDistance(f, v, C, v, H, re, N, re)), ne = Math.min(ne, h.maxDistance(f, v, C, v, H, re, H, M)), ne = Math.min(ne, h.maxDistance(C, T, f, T, N, M, N, re)), ne = Math.min(ne, h.maxDistance(C, T, f, T, N, M, H, M)), ne = Math.min(ne, h.maxDistance(C, T, f, T, H, re, N, re)), ne = Math.min(ne, h.maxDistance(C, T, f, T, H, re, H, M)), ne = Math.min(ne, h.maxDistance(C, T, C, v, N, M, N, re)), ne = Math.min(ne, h.maxDistance(C, T, C, v, N, M, H, M)), ne = Math.min(ne, h.maxDistance(C, T, C, v, H, re, N, re)), ne = Math.min(ne, h.maxDistance(C, T, C, v, H, re, H, M));
|
|
6743
6743
|
} }]);
|
|
6744
6744
|
})(), nr = (function() {
|
|
6745
6745
|
function h() {
|
|
@@ -6760,8 +6760,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6760
6760
|
return this._distance < o._distance ? -1 : this._distance > o._distance ? 1 : 0;
|
|
6761
6761
|
} }, { key: "expand", value: function(a, o, f, v, C) {
|
|
6762
6762
|
for (var T = a.getChildBoundables().iterator(); T.hasNext(); ) {
|
|
6763
|
-
var N = T.next(),
|
|
6764
|
-
(
|
|
6763
|
+
var N = T.next(), M = null;
|
|
6764
|
+
(M = f ? new h(o, N, this._itemDistance) : new h(N, o, this._itemDistance)).getDistance() < C && v.add(M);
|
|
6765
6765
|
}
|
|
6766
6766
|
} }, { key: "getBoundable", value: function(a) {
|
|
6767
6767
|
return a === 0 ? this._boundable1 : this._boundable2;
|
|
@@ -6794,8 +6794,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6794
6794
|
var C = f.get(v);
|
|
6795
6795
|
this.getIntersectsOp().intersects(C.getBounds(), a) && (C instanceof Et ? this.queryInternal(a, C, o) : C instanceof $t ? o.visitItem(C.getItem()) : ve.shouldNeverReachHere());
|
|
6796
6796
|
}
|
|
6797
|
-
else if (Le(arguments[2], tt) && arguments[0] instanceof Object && arguments[1] instanceof Et) for (var T = arguments[0], N = arguments[2],
|
|
6798
|
-
var re =
|
|
6797
|
+
else if (Le(arguments[2], tt) && arguments[0] instanceof Object && arguments[1] instanceof Et) for (var T = arguments[0], N = arguments[2], M = arguments[1].getChildBoundables(), H = 0; H < M.size(); H++) {
|
|
6798
|
+
var re = M.get(H);
|
|
6799
6799
|
this.getIntersectsOp().intersects(re.getBounds(), T) && (re instanceof Et ? this.queryInternal(T, re, N) : re instanceof $t ? N.add(re.getItem()) : ve.shouldNeverReachHere());
|
|
6800
6800
|
}
|
|
6801
6801
|
} }, { key: "getNodeCapacity", value: function() {
|
|
@@ -6874,8 +6874,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6874
6874
|
if (arguments.length === 3) {
|
|
6875
6875
|
var f = arguments[0], v = arguments[1], C = arguments[2], T = this.removeItem(v, C);
|
|
6876
6876
|
if (T) return !0;
|
|
6877
|
-
for (var N = null,
|
|
6878
|
-
var H =
|
|
6877
|
+
for (var N = null, M = v.getChildBoundables().iterator(); M.hasNext(); ) {
|
|
6878
|
+
var H = M.next();
|
|
6879
6879
|
if (this.getIntersectsOp().intersects(H.getBounds(), f) && H instanceof Et && (T = this.remove(f, H, C))) {
|
|
6880
6880
|
N = H;
|
|
6881
6881
|
break;
|
|
@@ -6948,12 +6948,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6948
6948
|
if (arguments.length === 3) {
|
|
6949
6949
|
var v = arguments[0], C = arguments[2], T = arguments[1], N = new br();
|
|
6950
6950
|
N.add(v);
|
|
6951
|
-
for (var
|
|
6951
|
+
for (var M = new br(); !N.isEmpty() && T >= 0; ) {
|
|
6952
6952
|
var H = N.poll(), re = H.getDistance();
|
|
6953
6953
|
if (re >= T) break;
|
|
6954
|
-
H.isLeaves() ?
|
|
6954
|
+
H.isLeaves() ? M.size() < C ? M.add(H) : (M.peek().getDistance() > re && (M.poll(), M.add(H)), T = M.peek().getDistance()) : H.expandToQueue(N, T);
|
|
6955
6955
|
}
|
|
6956
|
-
return a.getItems(
|
|
6956
|
+
return a.getItems(M);
|
|
6957
6957
|
}
|
|
6958
6958
|
} }, { key: "createNode", value: function(o) {
|
|
6959
6959
|
return new Wr(o);
|
|
@@ -6969,9 +6969,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6969
6969
|
} }, { key: "verticalSlices", value: function(o, f) {
|
|
6970
6970
|
for (var v = Math.trunc(Math.ceil(o.size() / f)), C = new Array(f).fill(null), T = o.iterator(), N = 0; N < f; N++) {
|
|
6971
6971
|
C[N] = new we();
|
|
6972
|
-
for (var
|
|
6972
|
+
for (var M = 0; T.hasNext() && M < v; ) {
|
|
6973
6973
|
var H = T.next();
|
|
6974
|
-
C[N].add(H),
|
|
6974
|
+
C[N].add(H), M++;
|
|
6975
6975
|
}
|
|
6976
6976
|
}
|
|
6977
6977
|
return C;
|
|
@@ -7013,9 +7013,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7013
7013
|
if (arguments[0] instanceof nr) {
|
|
7014
7014
|
var v = arguments[0], C = he.POSITIVE_INFINITY, T = null, N = new br();
|
|
7015
7015
|
for (N.add(v); !N.isEmpty() && C > 0; ) {
|
|
7016
|
-
var
|
|
7016
|
+
var M = N.poll(), H = M.getDistance();
|
|
7017
7017
|
if (H >= C) break;
|
|
7018
|
-
|
|
7018
|
+
M.isLeaves() ? (C = H, T = M) : M.expandToQueue(N, C);
|
|
7019
7019
|
}
|
|
7020
7020
|
return T === null ? null : [T.getBoundable(0).getItem(), T.getBoundable(1).getItem()];
|
|
7021
7021
|
}
|
|
@@ -7049,7 +7049,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7049
7049
|
return !1;
|
|
7050
7050
|
}
|
|
7051
7051
|
if (arguments.length === 3) {
|
|
7052
|
-
var
|
|
7052
|
+
var M = arguments[0], H = arguments[1], re = arguments[2], ne = new nr(this.getRoot(), M.getRoot(), H);
|
|
7053
7053
|
return this.isWithinDistance(ne, re);
|
|
7054
7054
|
}
|
|
7055
7055
|
} }, { key: "interfaces_", get: function() {
|
|
@@ -7266,9 +7266,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7266
7266
|
return a >= 0 ? o >= 0 ? f >= v ? 0 : 1 : f >= v ? 7 : 6 : o >= 0 ? f >= v ? 3 : 2 : f >= v ? 4 : 5;
|
|
7267
7267
|
}
|
|
7268
7268
|
if (arguments[0] instanceof Q && arguments[1] instanceof Q) {
|
|
7269
|
-
var C = arguments[0], T = arguments[1], N = T.x - C.x,
|
|
7270
|
-
if (N === 0 &&
|
|
7271
|
-
return h.octant(N,
|
|
7269
|
+
var C = arguments[0], T = arguments[1], N = T.x - C.x, M = T.y - C.y;
|
|
7270
|
+
if (N === 0 && M === 0) throw new q("Cannot compute the octant for two identical points " + C);
|
|
7271
|
+
return h.octant(N, M);
|
|
7272
7272
|
}
|
|
7273
7273
|
} }]);
|
|
7274
7274
|
})(), Gn = (function() {
|
|
@@ -7381,8 +7381,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7381
7381
|
if (C >= 1 && T >= 1 || C <= 0 && T <= 0) return null;
|
|
7382
7382
|
var N = this.project(v.p0);
|
|
7383
7383
|
C < 0 && (N = this.p0), C > 1 && (N = this.p1);
|
|
7384
|
-
var
|
|
7385
|
-
return T < 0 && (
|
|
7384
|
+
var M = this.project(v.p1);
|
|
7385
|
+
return T < 0 && (M = this.p0), T > 1 && (M = this.p1), new h(N, M);
|
|
7386
7386
|
}
|
|
7387
7387
|
} }, { key: "normalize", value: function() {
|
|
7388
7388
|
this.p1.compareTo(this.p0) < 0 && this.reverse();
|
|
@@ -7408,8 +7408,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7408
7408
|
v = T.distance(a.p0), f[0] = T, f[1] = a.p0;
|
|
7409
7409
|
var N = this.closestPoint(a.p1);
|
|
7410
7410
|
(C = N.distance(a.p1)) < v && (v = C, f[0] = N, f[1] = a.p1);
|
|
7411
|
-
var
|
|
7412
|
-
(C =
|
|
7411
|
+
var M = a.closestPoint(this.p0);
|
|
7412
|
+
(C = M.distance(this.p0)) < v && (v = C, f[0] = this.p0, f[1] = M);
|
|
7413
7413
|
var H = a.closestPoint(this.p1);
|
|
7414
7414
|
return (C = H.distance(this.p1)) < v && (v = C, f[0] = this.p1, f[1] = H), f;
|
|
7415
7415
|
} }, { key: "closestPoint", value: function(a) {
|
|
@@ -7432,12 +7432,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7432
7432
|
} }, { key: "maxY", value: function() {
|
|
7433
7433
|
return Math.max(this.p0.y, this.p1.y);
|
|
7434
7434
|
} }, { key: "pointAlongOffset", value: function(a, o) {
|
|
7435
|
-
var f = this.p0.x + a * (this.p1.x - this.p0.x), v = this.p0.y + a * (this.p1.y - this.p0.y), C = this.p1.x - this.p0.x, T = this.p1.y - this.p0.y, N = Math.sqrt(C * C + T * T),
|
|
7435
|
+
var f = this.p0.x + a * (this.p1.x - this.p0.x), v = this.p0.y + a * (this.p1.y - this.p0.y), C = this.p1.x - this.p0.x, T = this.p1.y - this.p0.y, N = Math.sqrt(C * C + T * T), M = 0, H = 0;
|
|
7436
7436
|
if (o !== 0) {
|
|
7437
7437
|
if (N <= 0) throw new IllegalStateException("Cannot compute offset from zero-length line segment");
|
|
7438
|
-
|
|
7438
|
+
M = o * C / N, H = o * T / N;
|
|
7439
7439
|
}
|
|
7440
|
-
return new Q(f - H, v +
|
|
7440
|
+
return new Q(f - H, v + M);
|
|
7441
7441
|
} }, { key: "setCoordinates", value: function() {
|
|
7442
7442
|
if (arguments.length === 1) {
|
|
7443
7443
|
var a = arguments[0];
|
|
@@ -7454,8 +7454,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7454
7454
|
} }, { key: "isHorizontal", value: function() {
|
|
7455
7455
|
return this.p0.y === this.p1.y;
|
|
7456
7456
|
} }, { key: "reflect", value: function(a) {
|
|
7457
|
-
var o = this.p1.getY() - this.p0.getY(), f = this.p0.getX() - this.p1.getX(), v = this.p0.getY() * (this.p1.getX() - this.p0.getX()) - this.p0.getX() * (this.p1.getY() - this.p0.getY()), C = o * o + f * f, T = o * o - f * f, N = a.getX(),
|
|
7458
|
-
return new Q((-T * N - 2 * o * f *
|
|
7457
|
+
var o = this.p1.getY() - this.p0.getY(), f = this.p0.getX() - this.p1.getX(), v = this.p0.getY() * (this.p1.getX() - this.p0.getX()) - this.p0.getX() * (this.p1.getY() - this.p0.getY()), C = o * o + f * f, T = o * o - f * f, N = a.getX(), M = a.getY();
|
|
7458
|
+
return new Q((-T * N - 2 * o * f * M - 2 * o * v) / C, (T * M - 2 * o * f * N - 2 * f * v) / C);
|
|
7459
7459
|
} }, { key: "distance", value: function() {
|
|
7460
7460
|
if (arguments[0] instanceof h) {
|
|
7461
7461
|
var a = arguments[0];
|
|
@@ -7525,8 +7525,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7525
7525
|
var o = arguments[0], f = arguments[1], v = arguments[2], C = arguments[3], T = arguments[4], N = arguments[5];
|
|
7526
7526
|
if (f - o == 1 && T - C == 1) return N.overlap(this, o, v, C), null;
|
|
7527
7527
|
if (!this.overlaps(o, f, v, C, T)) return null;
|
|
7528
|
-
var
|
|
7529
|
-
o <
|
|
7528
|
+
var M = Math.trunc((o + f) / 2), H = Math.trunc((C + T) / 2);
|
|
7529
|
+
o < M && (C < H && this.computeOverlaps(o, M, v, C, H, N), H < T && this.computeOverlaps(o, M, v, H, T, N)), M < f && (C < H && this.computeOverlaps(M, f, v, C, H, N), H < T && this.computeOverlaps(M, f, v, H, T, N));
|
|
7530
7530
|
}
|
|
7531
7531
|
} }, { key: "setId", value: function(h) {
|
|
7532
7532
|
this._id = h;
|
|
@@ -7795,17 +7795,17 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7795
7795
|
this.computeOffsetSegment(f, le.LEFT, this._distance, v);
|
|
7796
7796
|
var C = new pt();
|
|
7797
7797
|
this.computeOffsetSegment(f, le.RIGHT, this._distance, C);
|
|
7798
|
-
var T = o.x - a.x, N = o.y - a.y,
|
|
7798
|
+
var T = o.x - a.x, N = o.y - a.y, M = Math.atan2(N, T);
|
|
7799
7799
|
switch (this._bufParams.getEndCapStyle()) {
|
|
7800
|
-
case
|
|
7801
|
-
this._segList.addPt(v.p1), this.addDirectedFillet(o,
|
|
7800
|
+
case O.CAP_ROUND:
|
|
7801
|
+
this._segList.addPt(v.p1), this.addDirectedFillet(o, M + Math.PI / 2, M - Math.PI / 2, Ne.CLOCKWISE, this._distance), this._segList.addPt(C.p1);
|
|
7802
7802
|
break;
|
|
7803
|
-
case
|
|
7803
|
+
case O.CAP_FLAT:
|
|
7804
7804
|
this._segList.addPt(v.p1), this._segList.addPt(C.p1);
|
|
7805
7805
|
break;
|
|
7806
|
-
case
|
|
7806
|
+
case O.CAP_SQUARE:
|
|
7807
7807
|
var H = new Q();
|
|
7808
|
-
H.x = Math.abs(this._distance) * Math.cos(
|
|
7808
|
+
H.x = Math.abs(this._distance) * Math.cos(M), H.y = Math.abs(this._distance) * Math.sin(M);
|
|
7809
7809
|
var re = new Q(v.p1.x + H.x, v.p1.y + H.y), ne = new Q(C.p1.x + H.x, C.p1.y + H.y);
|
|
7810
7810
|
this._segList.addPt(re), this._segList.addPt(ne);
|
|
7811
7811
|
}
|
|
@@ -7817,7 +7817,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7817
7817
|
this.addLimitedMitreJoin(o, f, v, this._bufParams.getMitreLimit());
|
|
7818
7818
|
} }, { key: "addOutsideTurn", value: function(a, o) {
|
|
7819
7819
|
if (this._offset0.p1.distance(this._offset1.p0) < this._distance * h.OFFSET_SEGMENT_SEPARATION_FACTOR) return this._segList.addPt(this._offset0.p1), null;
|
|
7820
|
-
this._bufParams.getJoinStyle() ===
|
|
7820
|
+
this._bufParams.getJoinStyle() === O.JOIN_MITRE ? this.addMitreJoin(this._s1, this._offset0, this._offset1, this._distance) : this._bufParams.getJoinStyle() === O.JOIN_BEVEL ? this.addBevelJoin(this._offset0, this._offset1) : (o && this._segList.addPt(this._offset0.p1), this.addCornerFillet(this._s1, this._offset0.p1, this._offset1.p0, a, this._distance), this._segList.addPt(this._offset1.p0));
|
|
7821
7821
|
} }, { key: "createSquare", value: function(a) {
|
|
7822
7822
|
this._segList.addPt(new Q(a.x + this._distance, a.y + this._distance)), this._segList.addPt(new Q(a.x + this._distance, a.y - this._distance)), this._segList.addPt(new Q(a.x - this._distance, a.y - this._distance)), this._segList.addPt(new Q(a.x - this._distance, a.y + this._distance)), this._segList.closeRing();
|
|
7823
7823
|
} }, { key: "addSegments", value: function(a, o) {
|
|
@@ -7825,24 +7825,24 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7825
7825
|
} }, { key: "addFirstSegment", value: function() {
|
|
7826
7826
|
this._segList.addPt(this._offset1.p0);
|
|
7827
7827
|
} }, { key: "addCornerFillet", value: function(a, o, f, v, C) {
|
|
7828
|
-
var T = o.x - a.x, N = o.y - a.y,
|
|
7829
|
-
v === Ne.CLOCKWISE ?
|
|
7828
|
+
var T = o.x - a.x, N = o.y - a.y, M = Math.atan2(N, T), H = f.x - a.x, re = f.y - a.y, ne = Math.atan2(re, H);
|
|
7829
|
+
v === Ne.CLOCKWISE ? M <= ne && (M += 2 * Math.PI) : M >= ne && (M -= 2 * Math.PI), this._segList.addPt(o), this.addDirectedFillet(a, M, ne, v, C), this._segList.addPt(f);
|
|
7830
7830
|
} }, { key: "addLastSegment", value: function() {
|
|
7831
7831
|
this._segList.addPt(this._offset1.p1);
|
|
7832
7832
|
} }, { key: "initSideSegments", value: function(a, o, f) {
|
|
7833
7833
|
this._s1 = a, this._s2 = o, this._side = f, this._seg1.setCoordinates(a, o), this.computeOffsetSegment(this._seg1, f, this._distance, this._offset1);
|
|
7834
7834
|
} }, { key: "addLimitedMitreJoin", value: function(a, o, f, v) {
|
|
7835
|
-
var C = this._seg0.p1, T = gt.angle(C, this._seg0.p0), N = gt.angleBetweenOriented(this._seg0.p0, C, this._seg1.p1) / 2,
|
|
7835
|
+
var C = this._seg0.p1, T = gt.angle(C, this._seg0.p0), N = gt.angleBetweenOriented(this._seg0.p0, C, this._seg1.p1) / 2, M = gt.normalize(T + N), H = gt.normalize(M + Math.PI), re = v * f, ne = f - re * Math.abs(Math.sin(N)), ce = C.x + re * Math.cos(H), Ee = C.y + re * Math.sin(H), De = new Q(ce, Ee), ke = new pt(C, De), $e = ke.pointAlongOffset(1, ne), Ge = ke.pointAlongOffset(1, -ne);
|
|
7836
7836
|
this._side === le.LEFT ? (this._segList.addPt($e), this._segList.addPt(Ge)) : (this._segList.addPt(Ge), this._segList.addPt($e));
|
|
7837
7837
|
} }, { key: "addDirectedFillet", value: function(a, o, f, v, C) {
|
|
7838
|
-
var T = v === Ne.CLOCKWISE ? -1 : 1, N = Math.abs(o - f),
|
|
7839
|
-
if (
|
|
7840
|
-
for (var H = N /
|
|
7838
|
+
var T = v === Ne.CLOCKWISE ? -1 : 1, N = Math.abs(o - f), M = Math.trunc(N / this._filletAngleQuantum + 0.5);
|
|
7839
|
+
if (M < 1) return null;
|
|
7840
|
+
for (var H = N / M, re = new Q(), ne = 0; ne < M; ne++) {
|
|
7841
7841
|
var ce = o + T * ne * H;
|
|
7842
7842
|
re.x = a.x + C * Math.cos(ce), re.y = a.y + C * Math.sin(ce), this._segList.addPt(re);
|
|
7843
7843
|
}
|
|
7844
7844
|
} }, { key: "computeOffsetSegment", value: function(a, o, f, v) {
|
|
7845
|
-
var C = o === le.LEFT ? 1 : -1, T = a.p1.x - a.p0.x, N = a.p1.y - a.p0.y,
|
|
7845
|
+
var C = o === le.LEFT ? 1 : -1, T = a.p1.x - a.p0.x, N = a.p1.y - a.p0.y, M = Math.sqrt(T * T + N * N), H = C * f * T / M, re = C * f * N / M;
|
|
7846
7846
|
v.p0.x = a.p0.x - re, v.p0.y = a.p0.y + H, v.p1.x = a.p1.x - re, v.p1.y = a.p1.y + H;
|
|
7847
7847
|
} }, { key: "addInsideTurn", value: function(a, o) {
|
|
7848
7848
|
if (this._li.computeIntersection(this._offset0.p0, this._offset0.p1, this._offset1.p0, this._offset1.p1), this._li.hasIntersection()) this._segList.addPt(this._li.getIntersection(0));
|
|
@@ -7864,7 +7864,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7864
7864
|
} }, { key: "init", value: function(a) {
|
|
7865
7865
|
this._distance = a, this._maxCurveSegmentError = a * (1 - Math.cos(this._filletAngleQuantum / 2)), this._segList = new Jr(), this._segList.setPrecisionModel(this._precisionModel), this._segList.setMinimumVertexDistance(a * h.CURVE_VERTEX_SNAP_DISTANCE_FACTOR);
|
|
7866
7866
|
} }, { key: "addCollinear", value: function(a) {
|
|
7867
|
-
this._li.computeIntersection(this._s0, this._s1, this._s1, this._s2), this._li.getIntersectionNum() >= 2 && (this._bufParams.getJoinStyle() ===
|
|
7867
|
+
this._li.computeIntersection(this._s0, this._s1, this._s1, this._s2), this._li.getIntersectionNum() >= 2 && (this._bufParams.getJoinStyle() === O.JOIN_BEVEL || this._bufParams.getJoinStyle() === O.JOIN_MITRE ? (a && this._segList.addPt(this._offset0.p1), this._segList.addPt(this._offset1.p0)) : this.addCornerFillet(this._s1, this._offset0.p1, this._offset1.p0, Ne.CLOCKWISE, this._distance));
|
|
7868
7868
|
} }, { key: "closeRing", value: function() {
|
|
7869
7869
|
this._segList.closeRing();
|
|
7870
7870
|
} }, { key: "hasNarrowConcaveAngle", value: function() {
|
|
@@ -7872,7 +7872,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7872
7872
|
} }], [{ key: "constructor_", value: function() {
|
|
7873
7873
|
this._maxCurveSegmentError = 0, this._filletAngleQuantum = null, this._closingSegLengthFactor = 1, this._segList = null, this._distance = 0, this._precisionModel = null, this._bufParams = null, this._li = null, this._s0 = null, this._s1 = null, this._s2 = null, this._seg0 = new pt(), this._seg1 = new pt(), this._offset0 = new pt(), this._offset1 = new pt(), this._side = 0, this._hasNarrowConcaveAngle = !1;
|
|
7874
7874
|
var a = arguments[0], o = arguments[1], f = arguments[2];
|
|
7875
|
-
this._precisionModel = a, this._bufParams = o, this._li = new Wt(), this._filletAngleQuantum = Math.PI / 2 / o.getQuadrantSegments(), o.getQuadrantSegments() >= 8 && o.getJoinStyle() ===
|
|
7875
|
+
this._precisionModel = a, this._bufParams = o, this._li = new Wt(), this._filletAngleQuantum = Math.PI / 2 / o.getQuadrantSegments(), o.getQuadrantSegments() >= 8 && o.getJoinStyle() === O.JOIN_ROUND && (this._closingSegLengthFactor = h.MAX_CLOSING_SEG_LEN_FACTOR), this.init(f);
|
|
7876
7876
|
} }]);
|
|
7877
7877
|
})();
|
|
7878
7878
|
dr.OFFSET_SEGMENT_SEPARATION_FACTOR = 1e-3, dr.INSIDE_TURN_VERTEX_SNAP_DISTANCE_FACTOR = 1e-3, dr.CURVE_VERTEX_SNAP_DISTANCE_FACTOR = 1e-6, dr.MAX_CLOSING_SEG_LEN_FACTOR = 80;
|
|
@@ -7895,9 +7895,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7895
7895
|
for (var N = T - 2; N >= 0; N--) f.addNextSegment(C[N], !0);
|
|
7896
7896
|
} else {
|
|
7897
7897
|
f.addSegments(a, !1);
|
|
7898
|
-
var
|
|
7899
|
-
f.initSideSegments(
|
|
7900
|
-
for (var re = 2; re <= H; re++) f.addNextSegment(
|
|
7898
|
+
var M = Dt.simplify(a, v), H = M.length - 1;
|
|
7899
|
+
f.initSideSegments(M[0], M[1], le.LEFT), f.addFirstSegment();
|
|
7900
|
+
for (var re = 2; re <= H; re++) f.addNextSegment(M[re], !0);
|
|
7901
7901
|
}
|
|
7902
7902
|
f.addLastSegment(), f.closeRing();
|
|
7903
7903
|
} }, { key: "computeRingBufferCurve", value: function(a, o, f) {
|
|
@@ -7906,8 +7906,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7906
7906
|
var C = Dt.simplify(a, v), T = C.length - 1;
|
|
7907
7907
|
f.initSideSegments(C[T - 1], C[0], o);
|
|
7908
7908
|
for (var N = 1; N <= T; N++) {
|
|
7909
|
-
var
|
|
7910
|
-
f.addNextSegment(C[N],
|
|
7909
|
+
var M = N !== 1;
|
|
7910
|
+
f.addNextSegment(C[N], M);
|
|
7911
7911
|
}
|
|
7912
7912
|
f.closeRing();
|
|
7913
7913
|
} }, { key: "computeLineBufferCurve", value: function(a, o) {
|
|
@@ -7915,16 +7915,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7915
7915
|
o.initSideSegments(v[0], v[1], le.LEFT);
|
|
7916
7916
|
for (var T = 2; T <= C; T++) o.addNextSegment(v[T], !0);
|
|
7917
7917
|
o.addLastSegment(), o.addLineEndCap(v[C - 1], v[C]);
|
|
7918
|
-
var N = Dt.simplify(a, -f),
|
|
7919
|
-
o.initSideSegments(N[
|
|
7920
|
-
for (var H =
|
|
7918
|
+
var N = Dt.simplify(a, -f), M = N.length - 1;
|
|
7919
|
+
o.initSideSegments(N[M], N[M - 1], le.LEFT);
|
|
7920
|
+
for (var H = M - 2; H >= 0; H--) o.addNextSegment(N[H], !0);
|
|
7921
7921
|
o.addLastSegment(), o.addLineEndCap(N[1], N[0]), o.closeRing();
|
|
7922
7922
|
} }, { key: "computePointCurve", value: function(a, o) {
|
|
7923
7923
|
switch (this._bufParams.getEndCapStyle()) {
|
|
7924
|
-
case
|
|
7924
|
+
case O.CAP_ROUND:
|
|
7925
7925
|
o.createCircle(a);
|
|
7926
7926
|
break;
|
|
7927
|
-
case
|
|
7927
|
+
case O.CAP_SQUARE:
|
|
7928
7928
|
o.createSquare(a);
|
|
7929
7929
|
}
|
|
7930
7930
|
} }, { key: "getLineCurve", value: function(a, o) {
|
|
@@ -7952,9 +7952,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7952
7952
|
f.initSideSegments(C[T], C[T - 1], le.LEFT), f.addFirstSegment();
|
|
7953
7953
|
for (var N = T - 2; N >= 0; N--) f.addNextSegment(C[N], !0);
|
|
7954
7954
|
} else {
|
|
7955
|
-
var
|
|
7956
|
-
f.initSideSegments(
|
|
7957
|
-
for (var re = 2; re <= H; re++) f.addNextSegment(
|
|
7955
|
+
var M = Dt.simplify(a, v), H = M.length - 1;
|
|
7956
|
+
f.initSideSegments(M[0], M[1], le.LEFT), f.addFirstSegment();
|
|
7957
|
+
for (var re = 2; re <= H; re++) f.addNextSegment(M[re], !0);
|
|
7958
7958
|
}
|
|
7959
7959
|
f.addLastSegment();
|
|
7960
7960
|
} }, { key: "isLineOffsetEmpty", value: function(a) {
|
|
@@ -7982,10 +7982,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7982
7982
|
}
|
|
7983
7983
|
if (arguments.length === 3) {
|
|
7984
7984
|
if (Le(arguments[2], tt) && arguments[0] instanceof Q && arguments[1] instanceof Sr) {
|
|
7985
|
-
for (var C = arguments[0], T = arguments[1], N = arguments[2],
|
|
7986
|
-
if (this._seg.p0 =
|
|
7985
|
+
for (var C = arguments[0], T = arguments[1], N = arguments[2], M = T.getEdge().getCoordinates(), H = 0; H < M.length - 1; H++)
|
|
7986
|
+
if (this._seg.p0 = M[H], this._seg.p1 = M[H + 1], this._seg.p0.y > this._seg.p1.y && this._seg.reverse(), !(Math.max(this._seg.p0.x, this._seg.p1.x) < C.x || this._seg.isHorizontal() || C.y < this._seg.p0.y || C.y > this._seg.p1.y || Ne.index(this._seg.p0, this._seg.p1, C) === Ne.RIGHT)) {
|
|
7987
7987
|
var re = T.getDepth(le.LEFT);
|
|
7988
|
-
this._seg.p0.equals(
|
|
7988
|
+
this._seg.p0.equals(M[H]) || (re = T.getDepth(le.RIGHT));
|
|
7989
7989
|
var ne = new Qr(this._seg, re);
|
|
7990
7990
|
N.add(ne);
|
|
7991
7991
|
}
|
|
@@ -8065,8 +8065,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8065
8065
|
this.x = T.y - N.y, this.y = N.x - T.x, this.w = T.x * N.y - N.x * T.y;
|
|
8066
8066
|
}
|
|
8067
8067
|
} else if (arguments.length === 3) {
|
|
8068
|
-
var
|
|
8069
|
-
this.x =
|
|
8068
|
+
var M = arguments[0], H = arguments[1], re = arguments[2];
|
|
8069
|
+
this.x = M, this.y = H, this.w = re;
|
|
8070
8070
|
} else if (arguments.length === 4) {
|
|
8071
8071
|
var ne = arguments[0], ce = arguments[1], Ee = arguments[2], De = arguments[3], ke = ne.y - ce.y, $e = ce.x - ne.x, Ge = ne.x * ce.y - ce.x * ne.y, He = Ee.y - De.y, et = De.x - Ee.x, it = Ee.x * De.y - De.x * Ee.y;
|
|
8072
8072
|
this.x = $e * it - et * Ge, this.y = He * Ge - ke * it, this.w = ke * et - He * $e;
|
|
@@ -8106,18 +8106,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8106
8106
|
} }, { key: "det", value: function(a, o, f, v) {
|
|
8107
8107
|
return a * v - o * f;
|
|
8108
8108
|
} }, { key: "interpolateZ", value: function(a, o, f, v) {
|
|
8109
|
-
var C = o.x, T = o.y, N = f.x - C,
|
|
8109
|
+
var C = o.x, T = o.y, N = f.x - C, M = v.x - C, H = f.y - T, re = v.y - T, ne = N * re - M * H, ce = a.x - C, Ee = a.y - T, De = (re * ce - M * Ee) / ne, ke = (-H * ce + N * Ee) / ne;
|
|
8110
8110
|
return o.getZ() + De * (f.getZ() - o.getZ()) + ke * (v.getZ() - o.getZ());
|
|
8111
8111
|
} }, { key: "longestSideLength", value: function(a, o, f) {
|
|
8112
8112
|
var v = a.distance(o), C = o.distance(f), T = f.distance(a), N = v;
|
|
8113
8113
|
return C > N && (N = C), T > N && (N = T), N;
|
|
8114
8114
|
} }, { key: "circumcentreDD", value: function(a, o, f) {
|
|
8115
|
-
var v = Re.valueOf(a.x).subtract(f.x), C = Re.valueOf(a.y).subtract(f.y), T = Re.valueOf(o.x).subtract(f.x), N = Re.valueOf(o.y).subtract(f.y),
|
|
8115
|
+
var v = Re.valueOf(a.x).subtract(f.x), C = Re.valueOf(a.y).subtract(f.y), T = Re.valueOf(o.x).subtract(f.x), N = Re.valueOf(o.y).subtract(f.y), M = Re.determinant(v, C, T, N).multiply(2), H = v.sqr().add(C.sqr()), re = T.sqr().add(N.sqr()), ne = Re.determinant(C, H, N, re), ce = Re.determinant(v, H, T, re), Ee = Re.valueOf(f.x).subtract(ne.divide(M)).doubleValue(), De = Re.valueOf(f.y).add(ce.divide(M)).doubleValue();
|
|
8116
8116
|
return new Q(Ee, De);
|
|
8117
8117
|
} }, { key: "isAcute", value: function(a, o, f) {
|
|
8118
8118
|
return !!gt.isAcute(a, o, f) && !!gt.isAcute(o, f, a) && !!gt.isAcute(f, a, o);
|
|
8119
8119
|
} }, { key: "circumcentre", value: function(a, o, f) {
|
|
8120
|
-
var v = f.x, C = f.y, T = a.x - v, N = a.y - C,
|
|
8120
|
+
var v = f.x, C = f.y, T = a.x - v, N = a.y - C, M = o.x - v, H = o.y - C, re = 2 * h.det(T, N, M, H), ne = h.det(N, T * T + N * N, H, M * M + H * H), ce = h.det(T, T * T + N * N, M, M * M + H * H);
|
|
8121
8121
|
return new Q(v - ne / re, C + ce / re);
|
|
8122
8122
|
} }, { key: "perpendicularBisector", value: function(a, o) {
|
|
8123
8123
|
var f = o.x - a.x, v = o.y - a.y, C = new Tr(a.x + f / 2, a.y + v / 2, 1), T = new Tr(a.x - v + f / 2, a.y + f + v / 2, 1);
|
|
@@ -8126,14 +8126,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8126
8126
|
var v = o.distance(a), C = v / (v + o.distance(f)), T = f.x - a.x, N = f.y - a.y;
|
|
8127
8127
|
return new Q(a.x + C * T, a.y + C * N);
|
|
8128
8128
|
} }, { key: "area3D", value: function(a, o, f) {
|
|
8129
|
-
var v = o.x - a.x, C = o.y - a.y, T = o.getZ() - a.getZ(), N = f.x - a.x,
|
|
8129
|
+
var v = o.x - a.x, C = o.y - a.y, T = o.getZ() - a.getZ(), N = f.x - a.x, M = f.y - a.y, H = f.getZ() - a.getZ(), re = C * H - T * M, ne = T * N - v * H, ce = v * M - C * N, Ee = re * re + ne * ne + ce * ce, De = Math.sqrt(Ee) / 2;
|
|
8130
8130
|
return De;
|
|
8131
8131
|
} }, { key: "centroid", value: function(a, o, f) {
|
|
8132
8132
|
var v = (a.x + o.x + f.x) / 3, C = (a.y + o.y + f.y) / 3;
|
|
8133
8133
|
return new Q(v, C);
|
|
8134
8134
|
} }, { key: "inCentre", value: function(a, o, f) {
|
|
8135
|
-
var v = o.distance(f), C = a.distance(f), T = a.distance(o), N = v + C + T,
|
|
8136
|
-
return new Q(
|
|
8135
|
+
var v = o.distance(f), C = a.distance(f), T = a.distance(o), N = v + C + T, M = (v * a.x + C * o.x + T * f.x) / N, H = (v * a.y + C * o.y + T * f.y) / N;
|
|
8136
|
+
return new Q(M, H);
|
|
8137
8137
|
} }]);
|
|
8138
8138
|
})(), zn = (function() {
|
|
8139
8139
|
return m((function h() {
|
|
@@ -8298,10 +8298,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8298
8298
|
for (var v = a, C = this.iterator(); C.hasNext(); ) {
|
|
8299
8299
|
var T = C.next(), N = T.getLabel();
|
|
8300
8300
|
if (N.getLocation(h, le.ON) === V.NONE && N.setLocation(h, le.ON, v), N.isArea(h)) {
|
|
8301
|
-
var
|
|
8301
|
+
var M = N.getLocation(h, le.LEFT), H = N.getLocation(h, le.RIGHT);
|
|
8302
8302
|
if (H !== V.NONE) {
|
|
8303
8303
|
if (H !== v) throw new rt("side location conflict", T.getCoordinate());
|
|
8304
|
-
|
|
8304
|
+
M === V.NONE && ve.shouldNeverReachHere("found single null side (at " + T.getCoordinate() + ")"), v = M;
|
|
8305
8305
|
} else ve.isTrue(N.getLocation(h, le.LEFT) === V.NONE, "found single null side"), N.setLocation(h, le.RIGHT, v), N.setLocation(h, le.LEFT, v);
|
|
8306
8306
|
}
|
|
8307
8307
|
}
|
|
@@ -8322,8 +8322,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8322
8322
|
for (var v = f, C = this.iterator(); C.hasNext(); ) {
|
|
8323
8323
|
var T = C.next().getLabel();
|
|
8324
8324
|
ve.isTrue(T.isArea(h), "Found non-area edge");
|
|
8325
|
-
var N = T.getLocation(h, le.LEFT),
|
|
8326
|
-
if (N ===
|
|
8325
|
+
var N = T.getLocation(h, le.LEFT), M = T.getLocation(h, le.RIGHT);
|
|
8326
|
+
if (N === M || M !== v) return !1;
|
|
8327
8327
|
v = N;
|
|
8328
8328
|
}
|
|
8329
8329
|
return !0;
|
|
@@ -8354,14 +8354,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8354
8354
|
} }, { key: "computeLabelling", value: function(h) {
|
|
8355
8355
|
this.computeEdgeEndLabels(h[0].getBoundaryNodeRule()), this.propagateSideLabels(0), this.propagateSideLabels(1);
|
|
8356
8356
|
for (var a = [!1, !1], o = this.iterator(); o.hasNext(); ) for (var f = o.next().getLabel(), v = 0; v < 2; v++) f.isLine(v) && f.getLocation(v) === V.BOUNDARY && (a[v] = !0);
|
|
8357
|
-
for (var C = this.iterator(); C.hasNext(); ) for (var T = C.next(), N = T.getLabel(),
|
|
8357
|
+
for (var C = this.iterator(); C.hasNext(); ) for (var T = C.next(), N = T.getLabel(), M = 0; M < 2; M++) if (N.isAnyNull(M)) {
|
|
8358
8358
|
var H = V.NONE;
|
|
8359
|
-
if (a[
|
|
8359
|
+
if (a[M]) H = V.EXTERIOR;
|
|
8360
8360
|
else {
|
|
8361
8361
|
var re = T.getCoordinate();
|
|
8362
|
-
H = this.getLocation(
|
|
8362
|
+
H = this.getLocation(M, re, h);
|
|
8363
8363
|
}
|
|
8364
|
-
N.setAllLocationsIfNull(
|
|
8364
|
+
N.setAllLocationsIfNull(M, H);
|
|
8365
8365
|
}
|
|
8366
8366
|
} }, { key: "getDegree", value: function() {
|
|
8367
8367
|
return this._edgeMap.size();
|
|
@@ -8434,11 +8434,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8434
8434
|
var o = arguments[0], f = this.findIndex(o), v = o.getDepth(le.LEFT), C = o.getDepth(le.RIGHT), T = this.computeDepths(f + 1, this._edgeList.size(), v);
|
|
8435
8435
|
if (this.computeDepths(0, f, T) !== C) throw new rt("depth mismatch at " + o.getCoordinate());
|
|
8436
8436
|
} else if (arguments.length === 3) {
|
|
8437
|
-
for (var N = arguments[1],
|
|
8437
|
+
for (var N = arguments[1], M = arguments[2], H = arguments[0]; H < N; H++) {
|
|
8438
8438
|
var re = this._edgeList.get(H);
|
|
8439
|
-
re.setEdgeDepths(le.RIGHT,
|
|
8439
|
+
re.setEdgeDepths(le.RIGHT, M), M = re.getDepth(le.LEFT);
|
|
8440
8440
|
}
|
|
8441
|
-
return
|
|
8441
|
+
return M;
|
|
8442
8442
|
}
|
|
8443
8443
|
} }, { key: "mergeSymLabels", value: function() {
|
|
8444
8444
|
for (var o = this.iterator(); o.hasNext(); ) {
|
|
@@ -8447,11 +8447,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8447
8447
|
}
|
|
8448
8448
|
} }, { key: "linkMinimalDirectedEdges", value: function(o) {
|
|
8449
8449
|
for (var f = null, v = null, C = this._SCANNING_FOR_INCOMING, T = this._resultAreaEdgeList.size() - 1; T >= 0; T--) {
|
|
8450
|
-
var N = this._resultAreaEdgeList.get(T),
|
|
8450
|
+
var N = this._resultAreaEdgeList.get(T), M = N.getSym();
|
|
8451
8451
|
switch (f === null && N.getEdgeRing() === o && (f = N), C) {
|
|
8452
8452
|
case this._SCANNING_FOR_INCOMING:
|
|
8453
|
-
if (
|
|
8454
|
-
v =
|
|
8453
|
+
if (M.getEdgeRing() !== o) continue;
|
|
8454
|
+
v = M, C = this._LINKING_TO_OUTGOING;
|
|
8455
8455
|
break;
|
|
8456
8456
|
case this._LINKING_TO_OUTGOING:
|
|
8457
8457
|
if (N.getEdgeRing() !== o) continue;
|
|
@@ -8488,8 +8488,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8488
8488
|
}
|
|
8489
8489
|
if (o === V.NONE) return null;
|
|
8490
8490
|
for (var T = o, N = this.iterator(); N.hasNext(); ) {
|
|
8491
|
-
var
|
|
8492
|
-
|
|
8491
|
+
var M = N.next(), H = M.getSym();
|
|
8492
|
+
M.isLineEdge() ? M.getEdge().setCovered(T === V.INTERIOR) : (M.isInResult() && (T = V.EXTERIOR), H.isInResult() && (T = V.INTERIOR));
|
|
8493
8493
|
}
|
|
8494
8494
|
} }, { key: "computeLabelling", value: function(o) {
|
|
8495
8495
|
A(a, "computeLabelling", this, 1).call(this, o), this._label = new _t(V.NONE);
|
|
@@ -8523,10 +8523,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8523
8523
|
} }, { key: "orientation", value: function(a) {
|
|
8524
8524
|
return qe.increasingDirection(a) === 1;
|
|
8525
8525
|
} }, { key: "compareOriented", value: function(a, o, f, v) {
|
|
8526
|
-
for (var C = o ? 1 : -1, T = v ? 1 : -1, N = o ? a.length : -1,
|
|
8526
|
+
for (var C = o ? 1 : -1, T = v ? 1 : -1, N = o ? a.length : -1, M = v ? f.length : -1, H = o ? 0 : a.length - 1, re = v ? 0 : f.length - 1; ; ) {
|
|
8527
8527
|
var ne = a[H].compareTo(f[re]);
|
|
8528
8528
|
if (ne !== 0) return ne;
|
|
8529
|
-
var ce = (H += C) === N, Ee = (re += T) ===
|
|
8529
|
+
var ce = (H += C) === N, Ee = (re += T) === M;
|
|
8530
8530
|
if (ce && !Ee) return -1;
|
|
8531
8531
|
if (!ce && Ee) return 1;
|
|
8532
8532
|
if (ce && Ee) return 0;
|
|
@@ -8595,8 +8595,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8595
8595
|
} }, { key: "processIntersections", value: function(a, o, f, v) {
|
|
8596
8596
|
if (a === f && o === v) return null;
|
|
8597
8597
|
this.numTests++;
|
|
8598
|
-
var C = a.getCoordinates()[o], T = a.getCoordinates()[o + 1], N = f.getCoordinates()[v],
|
|
8599
|
-
this._li.computeIntersection(C, T, N,
|
|
8598
|
+
var C = a.getCoordinates()[o], T = a.getCoordinates()[o + 1], N = f.getCoordinates()[v], M = f.getCoordinates()[v + 1];
|
|
8599
|
+
this._li.computeIntersection(C, T, N, M), this._li.hasIntersection() && (this.numIntersections++, this._li.isInteriorIntersection() && (this.numInteriorIntersections++, this._hasInterior = !0), this.isTrivialIntersection(a, o, f, v) || (this._hasIntersection = !0, a.addIntersections(this._li, o, 0), f.addIntersections(this._li, v, 1), this._li.isProper() && (this.numProperIntersections++, this._hasProper = !0, this._hasProperInterior = !0)));
|
|
8600
8600
|
} }, { key: "hasIntersection", value: function() {
|
|
8601
8601
|
return this._hasIntersection;
|
|
8602
8602
|
} }, { key: "isDone", value: function() {
|
|
@@ -8831,11 +8831,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8831
8831
|
var h = arguments[0], a = arguments[1], o = arguments[2], f = arguments[3];
|
|
8832
8832
|
this.computeIntersectsForChain(this.startIndex[h], this.startIndex[h + 1], a, a.startIndex[o], a.startIndex[o + 1], f);
|
|
8833
8833
|
} else if (arguments.length === 6) {
|
|
8834
|
-
var v = arguments[0], C = arguments[1], T = arguments[2], N = arguments[3],
|
|
8835
|
-
if (C - v == 1 &&
|
|
8836
|
-
if (!this.overlaps(v, C, T, N,
|
|
8837
|
-
var re = Math.trunc((v + C) / 2), ne = Math.trunc((N +
|
|
8838
|
-
v < re && (N < ne && this.computeIntersectsForChain(v, re, T, N, ne, H), ne <
|
|
8834
|
+
var v = arguments[0], C = arguments[1], T = arguments[2], N = arguments[3], M = arguments[4], H = arguments[5];
|
|
8835
|
+
if (C - v == 1 && M - N == 1) return H.addIntersections(this.e, v, T.e, N), null;
|
|
8836
|
+
if (!this.overlaps(v, C, T, N, M)) return null;
|
|
8837
|
+
var re = Math.trunc((v + C) / 2), ne = Math.trunc((N + M) / 2);
|
|
8838
|
+
v < re && (N < ne && this.computeIntersectsForChain(v, re, T, N, ne, H), ne < M && this.computeIntersectsForChain(v, re, T, ne, M, H)), re < C && (N < ne && this.computeIntersectsForChain(re, C, T, N, ne, H), ne < M && this.computeIntersectsForChain(re, C, T, ne, M, H));
|
|
8839
8839
|
}
|
|
8840
8840
|
} }, { key: "overlaps", value: function(h, a, o, f, v) {
|
|
8841
8841
|
return me.intersects(this.pts[h], this.pts[a], o.pts[f], o.pts[v]);
|
|
@@ -8964,12 +8964,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8964
8964
|
}
|
|
8965
8965
|
return this._env;
|
|
8966
8966
|
} }, { key: "addIntersection", value: function(o, f, v, C) {
|
|
8967
|
-
var T = new Q(o.getIntersection(C)), N = f,
|
|
8967
|
+
var T = new Q(o.getIntersection(C)), N = f, M = o.getEdgeDistance(v, C), H = N + 1;
|
|
8968
8968
|
if (H < this.pts.length) {
|
|
8969
8969
|
var re = this.pts[H];
|
|
8970
|
-
T.equals2D(re) && (N = H,
|
|
8970
|
+
T.equals2D(re) && (N = H, M = 0);
|
|
8971
8971
|
}
|
|
8972
|
-
this.eiList.add(T, N,
|
|
8972
|
+
this.eiList.add(T, N, M);
|
|
8973
8973
|
} }, { key: "toString", value: function() {
|
|
8974
8974
|
var o = new kt();
|
|
8975
8975
|
o.append("edge " + this._name + ": "), o.append("LINESTRING (");
|
|
@@ -9040,16 +9040,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
9040
9040
|
this.computeNodedEdges(C, f), this._graph = new Ur(new Jn()), this._graph.addEdges(this._edgeList.getEdges());
|
|
9041
9041
|
var T = this.createSubgraphs(this._graph), N = new wn(this._geomFact);
|
|
9042
9042
|
this.buildSubgraphs(T, N);
|
|
9043
|
-
var
|
|
9044
|
-
return
|
|
9043
|
+
var M = N.getPolygons();
|
|
9044
|
+
return M.size() <= 0 ? this.createEmptyResultGeometry() : this._geomFact.buildGeometry(M);
|
|
9045
9045
|
} }, { key: "computeNodedEdges", value: function(a, o) {
|
|
9046
9046
|
var f = this.getNoder(o);
|
|
9047
9047
|
f.computeNodes(a);
|
|
9048
9048
|
for (var v = f.getNodedSubstrings().iterator(); v.hasNext(); ) {
|
|
9049
9049
|
var C = v.next(), T = C.getCoordinates();
|
|
9050
9050
|
if (T.length !== 2 || !T[0].equals2D(T[1])) {
|
|
9051
|
-
var N = C.getData(),
|
|
9052
|
-
this.insertUniqueEdge(
|
|
9051
|
+
var N = C.getData(), M = new an(C.getCoordinates(), new _t(N));
|
|
9052
|
+
this.insertUniqueEdge(M);
|
|
9053
9053
|
}
|
|
9054
9054
|
}
|
|
9055
9055
|
} }, { key: "setNoder", value: function(a) {
|
|
@@ -9129,7 +9129,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
9129
9129
|
var v = f.next();
|
|
9130
9130
|
this.checkInteriorIntersections(o, v);
|
|
9131
9131
|
}
|
|
9132
|
-
else if (arguments.length === 2) for (var C = arguments[0], T = arguments[1], N = C.getCoordinates(),
|
|
9132
|
+
else if (arguments.length === 2) for (var C = arguments[0], T = arguments[1], N = C.getCoordinates(), M = T.getCoordinates(), H = 0; H < N.length - 1; H++) for (var re = 0; re < M.length - 1; re++) this.checkInteriorIntersections(C, H, T, re);
|
|
9133
9133
|
else if (arguments.length === 4) {
|
|
9134
9134
|
var ne = arguments[0], ce = arguments[1], Ee = arguments[2], De = arguments[3];
|
|
9135
9135
|
if (ne === Ee && ce === De) return null;
|
|
@@ -9166,8 +9166,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
9166
9166
|
return m(h, [{ key: "intersectsScaled", value: function(a, o) {
|
|
9167
9167
|
var f = Math.min(a.x, o.x), v = Math.max(a.x, o.x), C = Math.min(a.y, o.y), T = Math.max(a.y, o.y), N = this._maxx < f || this._minx > v || this._maxy < C || this._miny > T;
|
|
9168
9168
|
if (N) return !1;
|
|
9169
|
-
var
|
|
9170
|
-
return ve.isTrue(!(N &&
|
|
9169
|
+
var M = this.intersectsToleranceSquare(a, o);
|
|
9170
|
+
return ve.isTrue(!(N && M), "Found bad envelope test"), M;
|
|
9171
9171
|
} }, { key: "initCorners", value: function(a) {
|
|
9172
9172
|
var o = 0.5;
|
|
9173
9173
|
this._minx = a.x - o, this._maxx = a.x + o, this._miny = a.y - o, this._maxy = a.y + o, this._corner[0] = new Q(this._maxx, this._maxy), this._corner[1] = new Q(this._minx, this._maxy), this._corner[2] = new Q(this._minx, this._miny), this._corner[3] = new Q(this._maxx, this._miny);
|
|
@@ -9265,7 +9265,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
9265
9265
|
if (h === o && a === f) return null;
|
|
9266
9266
|
var v = h.getCoordinates()[a], C = h.getCoordinates()[a + 1], T = o.getCoordinates()[f], N = o.getCoordinates()[f + 1];
|
|
9267
9267
|
if (this._li.computeIntersection(v, C, T, N), this._li.hasIntersection() && this._li.isInteriorIntersection()) {
|
|
9268
|
-
for (var
|
|
9268
|
+
for (var M = 0; M < this._li.getIntersectionNum(); M++) this._interiorIntersections.add(this._li.getIntersection(M));
|
|
9269
9269
|
h.addIntersections(this._li, a, 0), o.addIntersections(this._li, f, 1);
|
|
9270
9270
|
}
|
|
9271
9271
|
} }, { key: "isDone", value: function() {
|
|
@@ -9364,7 +9364,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
9364
9364
|
} }, { key: "setEndCapStyle", value: function(a) {
|
|
9365
9365
|
this._bufParams.setEndCapStyle(a);
|
|
9366
9366
|
} }], [{ key: "constructor_", value: function() {
|
|
9367
|
-
if (this._argGeom = null, this._distance = null, this._bufParams = new
|
|
9367
|
+
if (this._argGeom = null, this._distance = null, this._bufParams = new O(), this._resultGeometry = null, this._saveException = null, arguments.length === 1) {
|
|
9368
9368
|
var a = arguments[0];
|
|
9369
9369
|
this._argGeom = a;
|
|
9370
9370
|
} else if (arguments.length === 2) {
|
|
@@ -9381,20 +9381,20 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
9381
9381
|
var o = arguments[1], f = arguments[2], v = new h(arguments[0]);
|
|
9382
9382
|
return v.setQuadrantSegments(f), v.getResultGeometry(o);
|
|
9383
9383
|
}
|
|
9384
|
-
if (arguments[2] instanceof
|
|
9384
|
+
if (arguments[2] instanceof O && arguments[0] instanceof fe && typeof arguments[1] == "number") {
|
|
9385
9385
|
var C = arguments[1];
|
|
9386
9386
|
return new h(arguments[0], arguments[2]).getResultGeometry(C);
|
|
9387
9387
|
}
|
|
9388
9388
|
} else if (arguments.length === 4) {
|
|
9389
|
-
var T = arguments[1], N = arguments[2],
|
|
9390
|
-
return H.setQuadrantSegments(N), H.setEndCapStyle(
|
|
9389
|
+
var T = arguments[1], N = arguments[2], M = arguments[3], H = new h(arguments[0]);
|
|
9390
|
+
return H.setQuadrantSegments(N), H.setEndCapStyle(M), H.getResultGeometry(T);
|
|
9391
9391
|
}
|
|
9392
9392
|
} }, { key: "precisionScaleFactor", value: function(a, o, f) {
|
|
9393
9393
|
var v = a.getEnvelopeInternal(), C = mt.max(Math.abs(v.getMaxX()), Math.abs(v.getMaxY()), Math.abs(v.getMinX()), Math.abs(v.getMinY())) + 2 * (o > 0 ? o : 0), T = f - Math.trunc(Math.log(C) / Math.log(10) + 1);
|
|
9394
9394
|
return Math.pow(10, T);
|
|
9395
9395
|
} }]);
|
|
9396
9396
|
})();
|
|
9397
|
-
ar.CAP_ROUND =
|
|
9397
|
+
ar.CAP_ROUND = O.CAP_ROUND, ar.CAP_BUTT = O.CAP_FLAT, ar.CAP_FLAT = O.CAP_FLAT, ar.CAP_SQUARE = O.CAP_SQUARE, ar.MAX_PRECISION_DIGITS = 12;
|
|
9398
9398
|
var ci = ["Point", "MultiPoint", "LineString", "MultiLineString", "Polygon", "MultiPolygon"], cn = (function() {
|
|
9399
9399
|
return m((function h(a) {
|
|
9400
9400
|
s(this, h), this.geometryFactory = a || new er();
|
|
@@ -9772,10 +9772,10 @@ function polygonContains(e, t) {
|
|
|
9772
9772
|
s === 1 ? n = halfPi + epsilon$2 : s === -1 && (n = -halfPi - epsilon$2);
|
|
9773
9773
|
for (var b = 0, E = e.length; b < E; ++b)
|
|
9774
9774
|
if (x = (I = e[b]).length)
|
|
9775
|
-
for (var I, x, S = I[x - 1], A = longitude(S), R = S[1] / 2 + quarterPi, k = sin(R), L = cos(R), $ = 0; $ < x; ++$, A = G, k = Y, L = z, S =
|
|
9776
|
-
var
|
|
9775
|
+
for (var I, x, S = I[x - 1], A = longitude(S), R = S[1] / 2 + quarterPi, k = sin(R), L = cos(R), $ = 0; $ < x; ++$, A = G, k = Y, L = z, S = O) {
|
|
9776
|
+
var O = I[$], G = longitude(O), q = O[1] / 2 + quarterPi, Y = sin(q), z = cos(q), W = G - A, X = W >= 0 ? 1 : -1, ee = X * W, te = ee > pi, se = k * Y;
|
|
9777
9777
|
if (y.add(atan2(se * X * sin(ee), L * z + se * cos(ee))), g += te ? W + X * tau : W, te ^ A >= r ^ G >= r) {
|
|
9778
|
-
var ie = cartesianCross(cartesian(S), cartesian(
|
|
9778
|
+
var ie = cartesianCross(cartesian(S), cartesian(O));
|
|
9779
9779
|
cartesianNormalizeInPlace(ie);
|
|
9780
9780
|
var oe = cartesianCross(d, ie);
|
|
9781
9781
|
cartesianNormalizeInPlace(oe);
|
|
@@ -9792,7 +9792,7 @@ function clip(e, t, r, n) {
|
|
|
9792
9792
|
lineStart: R,
|
|
9793
9793
|
lineEnd: k,
|
|
9794
9794
|
polygonStart: function() {
|
|
9795
|
-
x.point = L, x.lineStart = $, x.lineEnd =
|
|
9795
|
+
x.point = L, x.lineStart = $, x.lineEnd = O, E = [], b = [];
|
|
9796
9796
|
},
|
|
9797
9797
|
polygonEnd: function() {
|
|
9798
9798
|
x.point = S, x.lineStart = R, x.lineEnd = k, E = merge(E);
|
|
@@ -9821,7 +9821,7 @@ function clip(e, t, r, n) {
|
|
|
9821
9821
|
function $() {
|
|
9822
9822
|
m.lineStart(), I = [];
|
|
9823
9823
|
}
|
|
9824
|
-
function
|
|
9824
|
+
function O() {
|
|
9825
9825
|
L(I[0][0], I[0][1]), m.lineEnd();
|
|
9826
9826
|
var G = m.clean(), q = g.result(), Y, z = q.length, W, X, ee;
|
|
9827
9827
|
if (I.pop(), b.push(I), I = null, !!z) {
|
|
@@ -9899,9 +9899,9 @@ function clipCircle(e) {
|
|
|
9899
9899
|
A = S = !1, R = 1;
|
|
9900
9900
|
},
|
|
9901
9901
|
point: function(k, L) {
|
|
9902
|
-
var $ = [k, L],
|
|
9903
|
-
if (!I && (A = S = G) && E.lineStart(), G !== S && (
|
|
9904
|
-
R = 0, G ? (E.lineStart(),
|
|
9902
|
+
var $ = [k, L], O, G = g(k, L), q = n ? G ? 0 : b(k, L) : G ? b(k + (k < 0 ? pi : -pi), L) : 0;
|
|
9903
|
+
if (!I && (A = S = G) && E.lineStart(), G !== S && (O = y(I, $), (!O || pointEqual(I, O) || pointEqual($, O)) && ($[2] = 1)), G !== S)
|
|
9904
|
+
R = 0, G ? (E.lineStart(), O = y($, I), E.point(O[0], O[1])) : (O = y(I, $), E.point(O[0], O[1], 2), E.lineEnd()), I = O;
|
|
9905
9905
|
else if (s && I && n ^ G) {
|
|
9906
9906
|
var Y;
|
|
9907
9907
|
!(q & x) && (Y = y($, I, !0)) && (R = 0, n ? (E.lineStart(), E.point(Y[0][0], Y[0][1]), E.point(Y[1][0], Y[1][1]), E.lineEnd()) : (E.point(Y[1][0], Y[1][1]), E.lineEnd(), E.lineStart(), E.point(Y[0][0], Y[0][1], 3)));
|
|
@@ -9919,9 +9919,9 @@ function clipCircle(e) {
|
|
|
9919
9919
|
};
|
|
9920
9920
|
}
|
|
9921
9921
|
function y(E, I, x) {
|
|
9922
|
-
var S = cartesian(E), A = cartesian(I), R = [1, 0, 0], k = cartesianCross(S, A), L = cartesianDot(k, k), $ = k[0],
|
|
9923
|
-
if (!
|
|
9924
|
-
var G = t * L /
|
|
9922
|
+
var S = cartesian(E), A = cartesian(I), R = [1, 0, 0], k = cartesianCross(S, A), L = cartesianDot(k, k), $ = k[0], O = L - $ * $;
|
|
9923
|
+
if (!O) return !x && E;
|
|
9924
|
+
var G = t * L / O, q = -t * $ / O, Y = cartesianCross(R, k), z = cartesianScale(R, G), W = cartesianScale(k, q);
|
|
9925
9925
|
cartesianAddInPlace(z, W);
|
|
9926
9926
|
var X = Y, ee = cartesianDot(z, X), te = cartesianDot(X, X), se = ee * ee - te * (cartesianDot(z, z) - 1);
|
|
9927
9927
|
if (!(se < 0)) {
|
|
@@ -10007,7 +10007,7 @@ function clipRectangle(e, t, r, n) {
|
|
|
10007
10007
|
return I !== x ? I - x : I === 0 ? E[1] - b[1] : I === 1 ? b[0] - E[0] : I === 2 ? b[1] - E[1] : E[0] - b[0];
|
|
10008
10008
|
}
|
|
10009
10009
|
return function(b) {
|
|
10010
|
-
var E = b, I = clipBuffer(), x, S, A, R, k, L, $,
|
|
10010
|
+
var E = b, I = clipBuffer(), x, S, A, R, k, L, $, O, G, q, Y, z = {
|
|
10011
10011
|
point: W,
|
|
10012
10012
|
lineStart: se,
|
|
10013
10013
|
lineEnd: ie,
|
|
@@ -10031,7 +10031,7 @@ function clipRectangle(e, t, r, n) {
|
|
|
10031
10031
|
(ue || pe) && (b.polygonStart(), ue && (b.lineStart(), d(null, null, 1, b), b.lineEnd()), pe && clipRejoin(x, m, K, d, b), b.polygonEnd()), E = b, x = S = A = null;
|
|
10032
10032
|
}
|
|
10033
10033
|
function se() {
|
|
10034
|
-
z.point = oe, S && S.push(A = []), q = !0, G = !1, $ =
|
|
10034
|
+
z.point = oe, S && S.push(A = []), q = !0, G = !1, $ = O = NaN;
|
|
10035
10035
|
}
|
|
10036
10036
|
function ie() {
|
|
10037
10037
|
x && (oe(R, k), L && G && I.rejoin(), x.push(I.result())), z.point = W, G && E.lineEnd();
|
|
@@ -10042,10 +10042,10 @@ function clipRectangle(e, t, r, n) {
|
|
|
10042
10042
|
R = K, k = ue, L = pe, q = !1, pe && (E.lineStart(), E.point(K, ue));
|
|
10043
10043
|
else if (pe && G) E.point(K, ue);
|
|
10044
10044
|
else {
|
|
10045
|
-
var Ce = [$ = Math.max(clipMin, Math.min(clipMax, $)),
|
|
10045
|
+
var Ce = [$ = Math.max(clipMin, Math.min(clipMax, $)), O = Math.max(clipMin, Math.min(clipMax, O))], Ae = [K = Math.max(clipMin, Math.min(clipMax, K)), ue = Math.max(clipMin, Math.min(clipMax, ue))];
|
|
10046
10046
|
clipLine(Ce, Ae, e, t, r, n) ? (G || (E.lineStart(), E.point(Ce[0], Ce[1])), E.point(Ae[0], Ae[1]), pe || E.lineEnd(), Y = !1) : pe && (E.lineStart(), E.point(K, ue), Y = !1);
|
|
10047
10047
|
}
|
|
10048
|
-
$ = K,
|
|
10048
|
+
$ = K, O = ue, G = pe;
|
|
10049
10049
|
}
|
|
10050
10050
|
return z;
|
|
10051
10051
|
};
|
|
@@ -10133,10 +10133,10 @@ function resampleNone(e) {
|
|
|
10133
10133
|
}
|
|
10134
10134
|
function resample$1(e, t) {
|
|
10135
10135
|
function r(n, s, d, g, m, y, b, E, I, x, S, A, R, k) {
|
|
10136
|
-
var L = b - n, $ = E - s,
|
|
10137
|
-
if (
|
|
10136
|
+
var L = b - n, $ = E - s, O = L * L + $ * $;
|
|
10137
|
+
if (O > 4 * t && R--) {
|
|
10138
10138
|
var G = g + x, q = m + S, Y = y + A, z = sqrt(G * G + q * q + Y * Y), W = asin(Y /= z), X = abs$1(abs$1(Y) - 1) < epsilon$2 || abs$1(d - I) < epsilon$2 ? (d + I) / 2 : atan2(q, G), ee = e(X, W), te = ee[0], se = ee[1], ie = te - n, oe = se - s, K = $ * ie - L * oe;
|
|
10139
|
-
(K * K /
|
|
10139
|
+
(K * K / O > t || abs$1((L * ie + $ * oe) / O - 0.5) > 0.3 || g * x + m * S + y * A < cosMinDistance) && (r(n, s, d, g, m, y, te, se, X, G /= z, q /= z, Y, R, k), k.point(te, se), r(te, se, X, G, q, Y, b, E, I, x, S, A, R, k));
|
|
10140
10140
|
}
|
|
10141
10141
|
}
|
|
10142
10142
|
return function(n) {
|
|
@@ -10155,9 +10155,9 @@ function resample$1(e, t) {
|
|
|
10155
10155
|
W = e(W, X), n.point(W[0], W[1]);
|
|
10156
10156
|
}
|
|
10157
10157
|
function $() {
|
|
10158
|
-
I = NaN, k.point =
|
|
10158
|
+
I = NaN, k.point = O, n.lineStart();
|
|
10159
10159
|
}
|
|
10160
|
-
function
|
|
10160
|
+
function O(W, X) {
|
|
10161
10161
|
var ee = cartesian([W, X]), te = e(W, X);
|
|
10162
10162
|
r(I, x, E, S, A, R, I = te[0], x = te[1], E = W, S = ee[0], A = ee[1], R = ee[2], maxDepth, n), n.point(I, x);
|
|
10163
10163
|
}
|
|
@@ -10168,7 +10168,7 @@ function resample$1(e, t) {
|
|
|
10168
10168
|
$(), k.point = Y, k.lineEnd = z;
|
|
10169
10169
|
}
|
|
10170
10170
|
function Y(W, X) {
|
|
10171
|
-
|
|
10171
|
+
O(s = W, X), d = I, g = x, m = S, y = A, b = R, k.point = O;
|
|
10172
10172
|
}
|
|
10173
10173
|
function z() {
|
|
10174
10174
|
r(I, x, E, S, A, R, d, g, s, m, y, b, maxDepth, n), k.lineEnd = G, G();
|
|
@@ -10213,7 +10213,7 @@ function projection(e) {
|
|
|
10213
10213
|
})();
|
|
10214
10214
|
}
|
|
10215
10215
|
function projectionMutator(e) {
|
|
10216
|
-
var t, r = 150, n = 480, s = 250, d = 0, g = 0, m = 0, y = 0, b = 0, E, I = 0, x = 1, S = 1, A = null, R = clipAntimeridian, k = null, L, $,
|
|
10216
|
+
var t, r = 150, n = 480, s = 250, d = 0, g = 0, m = 0, y = 0, b = 0, E, I = 0, x = 1, S = 1, A = null, R = clipAntimeridian, k = null, L, $, O, G = identity, q = 0.5, Y, z, W, X, ee;
|
|
10217
10217
|
function te(K) {
|
|
10218
10218
|
return W(K[0] * radians, K[1] * radians);
|
|
10219
10219
|
}
|
|
@@ -10225,11 +10225,11 @@ function projectionMutator(e) {
|
|
|
10225
10225
|
}, te.preclip = function(K) {
|
|
10226
10226
|
return arguments.length ? (R = K, A = void 0, oe()) : R;
|
|
10227
10227
|
}, te.postclip = function(K) {
|
|
10228
|
-
return arguments.length ? (G = K, k = L = $ =
|
|
10228
|
+
return arguments.length ? (G = K, k = L = $ = O = null, oe()) : G;
|
|
10229
10229
|
}, te.clipAngle = function(K) {
|
|
10230
10230
|
return arguments.length ? (R = +K ? clipCircle(A = K * radians) : (A = null, clipAntimeridian), oe()) : A * degrees;
|
|
10231
10231
|
}, te.clipExtent = function(K) {
|
|
10232
|
-
return arguments.length ? (G = K == null ? (k = L = $ =
|
|
10232
|
+
return arguments.length ? (G = K == null ? (k = L = $ = O = null, identity) : clipRectangle(k = +K[0][0], L = +K[0][1], $ = +K[1][0], O = +K[1][1]), oe()) : k == null ? null : [[k, L], [$, O]];
|
|
10233
10233
|
}, te.scale = function(K) {
|
|
10234
10234
|
return arguments.length ? (r = +K, ie()) : r;
|
|
10235
10235
|
}, te.translate = function(K) {
|
|
@@ -10812,14 +10812,14 @@ const mapBasemapBundle = {
|
|
|
10812
10812
|
maxZoom: k
|
|
10813
10813
|
};
|
|
10814
10814
|
I && (L.extent = I);
|
|
10815
|
-
const $ = new View(L),
|
|
10815
|
+
const $ = new View(L), O = new olMap({
|
|
10816
10816
|
controls: [new ScaleBar({ units: "us" })],
|
|
10817
10817
|
target: n,
|
|
10818
10818
|
view: $
|
|
10819
10819
|
});
|
|
10820
|
-
|
|
10820
|
+
O.on("moveend", debounce(g.doMapUpdateViewState, 200)), O.on("precompose", debounce(g.doMapPreCompose, 50)), O.on("rendercomplete", debounce(g.doMapRenderComplete, 200)), d({
|
|
10821
10821
|
type: "MAP_INITIALIZED",
|
|
10822
|
-
payload: { map:
|
|
10822
|
+
payload: { map: O, opts: s }
|
|
10823
10823
|
});
|
|
10824
10824
|
},
|
|
10825
10825
|
doMapPreCompose: () => ({ dispatch: n }) => {
|
|
@@ -10977,53 +10977,60 @@ const mapBasemapBundle = {
|
|
|
10977
10977
|
break;
|
|
10978
10978
|
}
|
|
10979
10979
|
return r;
|
|
10980
|
-
}, createNode = (e, t) =>
|
|
10981
|
-
|
|
10982
|
-
|
|
10983
|
-
|
|
10984
|
-
|
|
10985
|
-
|
|
10986
|
-
|
|
10987
|
-
|
|
10988
|
-
|
|
10989
|
-
|
|
10990
|
-
|
|
10991
|
-
|
|
10992
|
-
|
|
10993
|
-
|
|
10994
|
-
|
|
10995
|
-
|
|
10996
|
-
|
|
10997
|
-
|
|
10998
|
-
|
|
10999
|
-
|
|
11000
|
-
|
|
11001
|
-
|
|
11002
|
-
|
|
11003
|
-
|
|
11004
|
-
|
|
11005
|
-
|
|
11006
|
-
|
|
11007
|
-
|
|
11008
|
-
|
|
11009
|
-
|
|
11010
|
-
|
|
11011
|
-
|
|
11012
|
-
|
|
11013
|
-
|
|
11014
|
-
|
|
11015
|
-
|
|
11016
|
-
|
|
11017
|
-
|
|
11018
|
-
|
|
11019
|
-
|
|
11020
|
-
|
|
11021
|
-
|
|
11022
|
-
|
|
11023
|
-
|
|
11024
|
-
|
|
11025
|
-
|
|
11026
|
-
|
|
10980
|
+
}, createNode = (e, t) => {
|
|
10981
|
+
e.type || (e.type = e.serviceType || "Folder"), e.uid || (e.uid = v4()), e.minzoom || (e.minzoom = scaleToMapZoom(e.maxscale, 0)), e.maxzoom || (e.maxzoom = scaleToMapZoom(e.minscale, 20));
|
|
10982
|
+
const r = e.identifyRenameColumns ?? e.identifyRenameColums;
|
|
10983
|
+
return {
|
|
10984
|
+
id: e.id,
|
|
10985
|
+
teamDatasetId: e.teamDatasetId,
|
|
10986
|
+
uid: e.uid,
|
|
10987
|
+
parent: null,
|
|
10988
|
+
children: [],
|
|
10989
|
+
root: e.root || !1,
|
|
10990
|
+
leaf: e.type !== "Folder",
|
|
10991
|
+
collapsed: e.collapsed || !0,
|
|
10992
|
+
visible: e.visible || !1,
|
|
10993
|
+
sortOrder: e.layerOrder || 0,
|
|
10994
|
+
displayName: e.displayName,
|
|
10995
|
+
type: e.type,
|
|
10996
|
+
geometryType: e.geometryType,
|
|
10997
|
+
layerList: e.layerList,
|
|
10998
|
+
mapLayer: e.type !== "Folder" ? e.mapLayer || getLayer(e, null, t) : null,
|
|
10999
|
+
labelsOn: e.labelsOn ? e.labelsOn : !!e.labelDefault,
|
|
11000
|
+
labelDefault: !!e.labelDefault,
|
|
11001
|
+
labelEnabled: !!e.labelEnabled,
|
|
11002
|
+
url: e.url,
|
|
11003
|
+
info: e.info,
|
|
11004
|
+
identifyType: e.identifyType,
|
|
11005
|
+
identifyLayers: e.identifyLayers,
|
|
11006
|
+
identifyFields: e.identifyFields,
|
|
11007
|
+
identifyRenameColumns: r,
|
|
11008
|
+
// Deprecated alias for the original misspelling; remove in the next major version.
|
|
11009
|
+
identifyRenameColums: r,
|
|
11010
|
+
identifyFormatColumns: e.identifyFormatColumns,
|
|
11011
|
+
legend: e.legend,
|
|
11012
|
+
legendOverride: !!e.legendOverride,
|
|
11013
|
+
passFilter: !0,
|
|
11014
|
+
zoomTo: !!e.zoomTo,
|
|
11015
|
+
minzoom: e.minzoom,
|
|
11016
|
+
maxzoom: e.maxzoom,
|
|
11017
|
+
styleFn: e.styleFn,
|
|
11018
|
+
favorite: !1,
|
|
11019
|
+
userDefaultLayer: !1,
|
|
11020
|
+
selectAllLayers: e.selectAllLayers,
|
|
11021
|
+
layerDescription: e.layerDescription,
|
|
11022
|
+
attributions: e.attributions,
|
|
11023
|
+
moreInfo: e.moreInfo,
|
|
11024
|
+
resourceDownload: e.resourceDownload,
|
|
11025
|
+
hoverText: e.hoverText,
|
|
11026
|
+
folderHoverText: e.folderHoverText,
|
|
11027
|
+
folderURL: e.folderURL,
|
|
11028
|
+
groupTag: e.groupTag,
|
|
11029
|
+
layerFunction: e.layerFunction,
|
|
11030
|
+
layerParams: e.layerParams,
|
|
11031
|
+
params: e.params
|
|
11032
|
+
};
|
|
11033
|
+
}, isParentOf = (e, t) => {
|
|
11027
11034
|
let r = [];
|
|
11028
11035
|
function n(s) {
|
|
11029
11036
|
s.parent && (r.push(s.parent), n(s.parent));
|
|
@@ -12866,7 +12873,7 @@ const config$1 = {
|
|
|
12866
12873
|
path: "depricated"
|
|
12867
12874
|
}
|
|
12868
12875
|
]
|
|
12869
|
-
}, version = "4.1.
|
|
12876
|
+
}, version = "4.1.30", pkg = {
|
|
12870
12877
|
version
|
|
12871
12878
|
};
|
|
12872
12879
|
console.log("------ RUNNING CORPSMAP V." + pkg.version + " ------");
|
|
@@ -14145,39 +14152,39 @@ function requireDom() {
|
|
|
14145
14152
|
if (hasRequiredDom) return dom;
|
|
14146
14153
|
hasRequiredDom = 1;
|
|
14147
14154
|
var e = requireConventions(), t = e.find, r = e.NAMESPACE, n = e.tagNamePattern;
|
|
14148
|
-
function s(
|
|
14149
|
-
return
|
|
14155
|
+
function s(F) {
|
|
14156
|
+
return F !== "";
|
|
14150
14157
|
}
|
|
14151
|
-
function d(
|
|
14152
|
-
return
|
|
14158
|
+
function d(F) {
|
|
14159
|
+
return F ? F.split(/[\t\n\f\r ]+/).filter(s) : [];
|
|
14153
14160
|
}
|
|
14154
|
-
function g(
|
|
14155
|
-
return
|
|
14161
|
+
function g(F, U) {
|
|
14162
|
+
return F.hasOwnProperty(U) || (F[U] = !0), F;
|
|
14156
14163
|
}
|
|
14157
|
-
function m(
|
|
14158
|
-
if (!
|
|
14159
|
-
var U = d(
|
|
14164
|
+
function m(F) {
|
|
14165
|
+
if (!F) return [];
|
|
14166
|
+
var U = d(F);
|
|
14160
14167
|
return Object.keys(U.reduce(g, {}));
|
|
14161
14168
|
}
|
|
14162
|
-
function y(
|
|
14169
|
+
function y(F) {
|
|
14163
14170
|
return function(U) {
|
|
14164
|
-
return
|
|
14171
|
+
return F && F.indexOf(U) !== -1;
|
|
14165
14172
|
};
|
|
14166
14173
|
}
|
|
14167
|
-
function b(
|
|
14168
|
-
for (var J in
|
|
14169
|
-
Object.prototype.hasOwnProperty.call(
|
|
14174
|
+
function b(F, U) {
|
|
14175
|
+
for (var J in F)
|
|
14176
|
+
Object.prototype.hasOwnProperty.call(F, J) && (U[J] = F[J]);
|
|
14170
14177
|
}
|
|
14171
|
-
function E(
|
|
14172
|
-
var J =
|
|
14178
|
+
function E(F, U) {
|
|
14179
|
+
var J = F.prototype;
|
|
14173
14180
|
if (!(J instanceof U)) {
|
|
14174
14181
|
let ae = function() {
|
|
14175
14182
|
};
|
|
14176
|
-
ae.prototype = U.prototype, ae = new ae(), b(J, ae),
|
|
14183
|
+
ae.prototype = U.prototype, ae = new ae(), b(J, ae), F.prototype = J = ae;
|
|
14177
14184
|
}
|
|
14178
|
-
J.constructor !=
|
|
14185
|
+
J.constructor != F && (typeof F != "function" && console.error("unknown Class:" + F), J.constructor = F);
|
|
14179
14186
|
}
|
|
14180
|
-
var I = {}, x = I.ELEMENT_NODE = 1, S = I.ATTRIBUTE_NODE = 2, A = I.TEXT_NODE = 3, R = I.CDATA_SECTION_NODE = 4, k = I.ENTITY_REFERENCE_NODE = 5, L = I.ENTITY_NODE = 6, $ = I.PROCESSING_INSTRUCTION_NODE = 7,
|
|
14187
|
+
var I = {}, x = I.ELEMENT_NODE = 1, S = I.ATTRIBUTE_NODE = 2, A = I.TEXT_NODE = 3, R = I.CDATA_SECTION_NODE = 4, k = I.ENTITY_REFERENCE_NODE = 5, L = I.ENTITY_NODE = 6, $ = I.PROCESSING_INSTRUCTION_NODE = 7, O = I.COMMENT_NODE = 8, G = I.DOCUMENT_NODE = 9, q = I.DOCUMENT_TYPE_NODE = 10, Y = I.DOCUMENT_FRAGMENT_NODE = 11, z = I.NOTATION_NODE = 12, W = {}, X = {};
|
|
14181
14188
|
W.INDEX_SIZE_ERR = (X[1] = "Index size error", 1), W.DOMSTRING_SIZE_ERR = (X[2] = "DOMString size error", 2);
|
|
14182
14189
|
var ee = W.HIERARCHY_REQUEST_ERR = (X[3] = "Hierarchy request error", 3);
|
|
14183
14190
|
W.WRONG_DOCUMENT_ERR = (X[4] = "Wrong document", 4);
|
|
@@ -14187,12 +14194,12 @@ function requireDom() {
|
|
|
14187
14194
|
W.NOT_SUPPORTED_ERR = (X[9] = "Not supported", 9);
|
|
14188
14195
|
var ie = W.INUSE_ATTRIBUTE_ERR = (X[10] = "Attribute in use", 10), oe = W.INVALID_STATE_ERR = (X[11] = "Invalid state", 11);
|
|
14189
14196
|
W.SYNTAX_ERR = (X[12] = "Syntax error", 12), W.INVALID_MODIFICATION_ERR = (X[13] = "Invalid modification", 13), W.NAMESPACE_ERR = (X[14] = "Invalid namespace", 14), W.INVALID_ACCESS_ERR = (X[15] = "Invalid access", 15);
|
|
14190
|
-
function K(
|
|
14197
|
+
function K(F, U) {
|
|
14191
14198
|
if (U instanceof Error)
|
|
14192
14199
|
var J = U;
|
|
14193
14200
|
else
|
|
14194
|
-
J = this, Error.call(this, X[
|
|
14195
|
-
return J.code =
|
|
14201
|
+
J = this, Error.call(this, X[F]), this.message = X[F], Error.captureStackTrace && Error.captureStackTrace(this, K);
|
|
14202
|
+
return J.code = F, U && (this.message = this.message + ": " + U), J;
|
|
14196
14203
|
}
|
|
14197
14204
|
K.prototype = Error.prototype, b(W, K);
|
|
14198
14205
|
function ue() {
|
|
@@ -14211,12 +14218,12 @@ function requireDom() {
|
|
|
14211
14218
|
* @return Node
|
|
14212
14219
|
* The node at the indexth position in the NodeList, or null if that is not a valid index.
|
|
14213
14220
|
*/
|
|
14214
|
-
item: function(
|
|
14215
|
-
return
|
|
14221
|
+
item: function(F) {
|
|
14222
|
+
return F >= 0 && F < this.length ? this[F] : null;
|
|
14216
14223
|
},
|
|
14217
|
-
toString: function(
|
|
14224
|
+
toString: function(F, U, J) {
|
|
14218
14225
|
for (var ae = !!J && !!J.requireWellFormed, ge = [], Ie = 0; Ie < this.length; Ie++)
|
|
14219
|
-
ur(this[Ie], ge,
|
|
14226
|
+
ur(this[Ie], ge, F, U, null, ae);
|
|
14220
14227
|
return ge.join("");
|
|
14221
14228
|
},
|
|
14222
14229
|
/**
|
|
@@ -14224,106 +14231,106 @@ function requireDom() {
|
|
|
14224
14231
|
* @param {function (Node):boolean} predicate
|
|
14225
14232
|
* @returns {Node[]}
|
|
14226
14233
|
*/
|
|
14227
|
-
filter: function(
|
|
14228
|
-
return Array.prototype.filter.call(this,
|
|
14234
|
+
filter: function(F) {
|
|
14235
|
+
return Array.prototype.filter.call(this, F);
|
|
14229
14236
|
},
|
|
14230
14237
|
/**
|
|
14231
14238
|
* @private
|
|
14232
14239
|
* @param {Node} item
|
|
14233
14240
|
* @returns {number}
|
|
14234
14241
|
*/
|
|
14235
|
-
indexOf: function(
|
|
14236
|
-
return Array.prototype.indexOf.call(this,
|
|
14242
|
+
indexOf: function(F) {
|
|
14243
|
+
return Array.prototype.indexOf.call(this, F);
|
|
14237
14244
|
}
|
|
14238
14245
|
};
|
|
14239
|
-
function pe(
|
|
14240
|
-
this._node =
|
|
14246
|
+
function pe(F, U) {
|
|
14247
|
+
this._node = F, this._refresh = U, Ce(this);
|
|
14241
14248
|
}
|
|
14242
|
-
function Ce(
|
|
14243
|
-
var U =
|
|
14244
|
-
if (
|
|
14245
|
-
var J =
|
|
14246
|
-
if (ye(
|
|
14247
|
-
for (var ae = J.length; ae in
|
|
14248
|
-
Object.prototype.hasOwnProperty.call(
|
|
14249
|
-
b(J,
|
|
14249
|
+
function Ce(F) {
|
|
14250
|
+
var U = F._node._inc || F._node.ownerDocument._inc;
|
|
14251
|
+
if (F._inc !== U) {
|
|
14252
|
+
var J = F._refresh(F._node);
|
|
14253
|
+
if (ye(F, "length", J.length), !F.$$length || J.length < F.$$length)
|
|
14254
|
+
for (var ae = J.length; ae in F; ae++)
|
|
14255
|
+
Object.prototype.hasOwnProperty.call(F, ae) && delete F[ae];
|
|
14256
|
+
b(J, F), F._inc = U;
|
|
14250
14257
|
}
|
|
14251
14258
|
}
|
|
14252
|
-
pe.prototype.item = function(
|
|
14253
|
-
return Ce(this), this[
|
|
14259
|
+
pe.prototype.item = function(F) {
|
|
14260
|
+
return Ce(this), this[F] || null;
|
|
14254
14261
|
}, E(pe, ue);
|
|
14255
14262
|
function Ae() {
|
|
14256
14263
|
this._nameIndex = /* @__PURE__ */ Object.create(null);
|
|
14257
14264
|
}
|
|
14258
|
-
function he(
|
|
14259
|
-
for (var J =
|
|
14260
|
-
if (
|
|
14265
|
+
function he(F, U) {
|
|
14266
|
+
for (var J = F.length; J--; )
|
|
14267
|
+
if (F[J] === U)
|
|
14261
14268
|
return J;
|
|
14262
14269
|
}
|
|
14263
|
-
function Be(
|
|
14264
|
-
|
|
14270
|
+
function Be(F, U) {
|
|
14271
|
+
F._nameIndex[U.nodeName] = U;
|
|
14265
14272
|
}
|
|
14266
|
-
function Se(
|
|
14267
|
-
|
|
14273
|
+
function Se(F, U) {
|
|
14274
|
+
F._nameIndex[U.nodeName] === U && delete F._nameIndex[U.nodeName];
|
|
14268
14275
|
}
|
|
14269
|
-
function _e(
|
|
14270
|
-
if (ae ? (U[he(U, ae)] = J, Se(U, ae)) : U[U.length++] = J, Be(U, J),
|
|
14271
|
-
J.ownerElement =
|
|
14272
|
-
var ge =
|
|
14273
|
-
ge && (ae && V(ge,
|
|
14276
|
+
function _e(F, U, J, ae) {
|
|
14277
|
+
if (ae ? (U[he(U, ae)] = J, Se(U, ae)) : U[U.length++] = J, Be(U, J), F) {
|
|
14278
|
+
J.ownerElement = F;
|
|
14279
|
+
var ge = F.ownerDocument;
|
|
14280
|
+
ge && (ae && V(ge, F, ae), fe(ge, F, J));
|
|
14274
14281
|
}
|
|
14275
14282
|
}
|
|
14276
|
-
function ve(
|
|
14283
|
+
function ve(F, U, J) {
|
|
14277
14284
|
var ae = he(U, J);
|
|
14278
14285
|
if (ae >= 0) {
|
|
14279
14286
|
for (var ge = U.length - 1; ae < ge; )
|
|
14280
14287
|
U[ae] = U[++ae];
|
|
14281
|
-
if (U.length = ge, Se(U, J),
|
|
14282
|
-
var Ie =
|
|
14283
|
-
Ie && (V(Ie,
|
|
14288
|
+
if (U.length = ge, Se(U, J), F) {
|
|
14289
|
+
var Ie = F.ownerDocument;
|
|
14290
|
+
Ie && (V(Ie, F, J), J.ownerElement = null);
|
|
14284
14291
|
}
|
|
14285
14292
|
} else
|
|
14286
|
-
throw new K(se, new Error(
|
|
14293
|
+
throw new K(se, new Error(F.tagName + "@" + J));
|
|
14287
14294
|
}
|
|
14288
14295
|
Ae.prototype = {
|
|
14289
14296
|
length: 0,
|
|
14290
14297
|
item: ue.prototype.item,
|
|
14291
|
-
getNamedItem: function(
|
|
14298
|
+
getNamedItem: function(F) {
|
|
14292
14299
|
for (var U = this.length; U--; ) {
|
|
14293
14300
|
var J = this[U];
|
|
14294
|
-
if (J.nodeName ==
|
|
14301
|
+
if (J.nodeName == F)
|
|
14295
14302
|
return J;
|
|
14296
14303
|
}
|
|
14297
14304
|
},
|
|
14298
|
-
setNamedItem: function(
|
|
14299
|
-
var U =
|
|
14305
|
+
setNamedItem: function(F) {
|
|
14306
|
+
var U = F.ownerElement;
|
|
14300
14307
|
if (U && U != this._ownerElement)
|
|
14301
14308
|
throw new K(ie);
|
|
14302
|
-
var J = this._nameIndex[
|
|
14303
|
-
return _e(this._ownerElement, this,
|
|
14309
|
+
var J = this._nameIndex[F.nodeName];
|
|
14310
|
+
return _e(this._ownerElement, this, F, J), J;
|
|
14304
14311
|
},
|
|
14305
14312
|
/* returns Node */
|
|
14306
|
-
setNamedItemNS: function(
|
|
14307
|
-
var U =
|
|
14313
|
+
setNamedItemNS: function(F) {
|
|
14314
|
+
var U = F.ownerElement, J;
|
|
14308
14315
|
if (U && U != this._ownerElement)
|
|
14309
14316
|
throw new K(ie);
|
|
14310
|
-
return J = this.getNamedItemNS(
|
|
14317
|
+
return J = this.getNamedItemNS(F.namespaceURI, F.localName), _e(this._ownerElement, this, F, J), J;
|
|
14311
14318
|
},
|
|
14312
14319
|
/* returns Node */
|
|
14313
|
-
removeNamedItem: function(
|
|
14314
|
-
var U = this.getNamedItem(
|
|
14320
|
+
removeNamedItem: function(F) {
|
|
14321
|
+
var U = this.getNamedItem(F);
|
|
14315
14322
|
return ve(this._ownerElement, this, U), U;
|
|
14316
14323
|
},
|
|
14317
14324
|
// raises: NOT_FOUND_ERR,NO_MODIFICATION_ALLOWED_ERR
|
|
14318
14325
|
//for level2
|
|
14319
|
-
removeNamedItemNS: function(
|
|
14320
|
-
var J = this.getNamedItemNS(
|
|
14326
|
+
removeNamedItemNS: function(F, U) {
|
|
14327
|
+
var J = this.getNamedItemNS(F, U);
|
|
14321
14328
|
return ve(this._ownerElement, this, J), J;
|
|
14322
14329
|
},
|
|
14323
|
-
getNamedItemNS: function(
|
|
14330
|
+
getNamedItemNS: function(F, U) {
|
|
14324
14331
|
for (var J = this.length; J--; ) {
|
|
14325
14332
|
var ae = this[J];
|
|
14326
|
-
if (ae.localName == U && ae.namespaceURI ==
|
|
14333
|
+
if (ae.localName == U && ae.namespaceURI == F)
|
|
14327
14334
|
return ae;
|
|
14328
14335
|
}
|
|
14329
14336
|
return null;
|
|
@@ -14347,7 +14354,7 @@ function requireDom() {
|
|
|
14347
14354
|
* @see https://www.w3.org/TR/REC-DOM-Level-1/level-one-core.html#ID-5CED94D7 DOM Level 1 Core
|
|
14348
14355
|
* @see https://dom.spec.whatwg.org/#dom-domimplementation-hasfeature DOM Living Standard
|
|
14349
14356
|
*/
|
|
14350
|
-
hasFeature: function(
|
|
14357
|
+
hasFeature: function(F, U) {
|
|
14351
14358
|
return !0;
|
|
14352
14359
|
},
|
|
14353
14360
|
/**
|
|
@@ -14372,10 +14379,10 @@ function requireDom() {
|
|
|
14372
14379
|
* @see https://www.w3.org/TR/xml/#NT-NameStartChar XML Spec: Names
|
|
14373
14380
|
* @see https://www.w3.org/TR/xml-names/#ns-qualnames XML Namespaces: Qualified names
|
|
14374
14381
|
*/
|
|
14375
|
-
createDocument: function(
|
|
14382
|
+
createDocument: function(F, U, J) {
|
|
14376
14383
|
var ae = new me();
|
|
14377
14384
|
if (ae.implementation = this, ae.childNodes = new ue(), ae.doctype = J || null, J && ae.appendChild(J), U) {
|
|
14378
|
-
var ge = ae.createElementNS(
|
|
14385
|
+
var ge = ae.createElementNS(F, U);
|
|
14379
14386
|
ae.appendChild(ge);
|
|
14380
14387
|
}
|
|
14381
14388
|
return ae;
|
|
@@ -14416,9 +14423,9 @@ function requireDom() {
|
|
|
14416
14423
|
* @see https://www.w3.org/TR/xml/#NT-NameStartChar XML Spec: Names
|
|
14417
14424
|
* @see https://www.w3.org/TR/xml-names/#ns-qualnames XML Namespaces: Qualified names
|
|
14418
14425
|
*/
|
|
14419
|
-
createDocumentType: function(
|
|
14426
|
+
createDocumentType: function(F, U, J) {
|
|
14420
14427
|
var ae = new Pt();
|
|
14421
|
-
return ae.name =
|
|
14428
|
+
return ae.name = F, ae.nodeName = F, ae.publicId = U || "", ae.systemId = J || "", ae;
|
|
14422
14429
|
}
|
|
14423
14430
|
};
|
|
14424
14431
|
function be() {
|
|
@@ -14437,23 +14444,23 @@ function requireDom() {
|
|
|
14437
14444
|
prefix: null,
|
|
14438
14445
|
localName: null,
|
|
14439
14446
|
// Modified in DOM Level 2:
|
|
14440
|
-
insertBefore: function(
|
|
14441
|
-
return ct(this,
|
|
14447
|
+
insertBefore: function(F, U) {
|
|
14448
|
+
return ct(this, F, U);
|
|
14442
14449
|
},
|
|
14443
|
-
replaceChild: function(
|
|
14444
|
-
ct(this,
|
|
14450
|
+
replaceChild: function(F, U) {
|
|
14451
|
+
ct(this, F, U, Le), U && this.removeChild(U);
|
|
14445
14452
|
},
|
|
14446
|
-
removeChild: function(
|
|
14447
|
-
return Pe(this,
|
|
14453
|
+
removeChild: function(F) {
|
|
14454
|
+
return Pe(this, F);
|
|
14448
14455
|
},
|
|
14449
|
-
appendChild: function(
|
|
14450
|
-
return this.insertBefore(
|
|
14456
|
+
appendChild: function(F) {
|
|
14457
|
+
return this.insertBefore(F, null);
|
|
14451
14458
|
},
|
|
14452
14459
|
hasChildNodes: function() {
|
|
14453
14460
|
return this.firstChild != null;
|
|
14454
14461
|
},
|
|
14455
|
-
cloneNode: function(
|
|
14456
|
-
return Rt(this.ownerDocument || this, this,
|
|
14462
|
+
cloneNode: function(F) {
|
|
14463
|
+
return Rt(this.ownerDocument || this, this, F);
|
|
14457
14464
|
},
|
|
14458
14465
|
// Modified in DOM Level 2:
|
|
14459
14466
|
/**
|
|
@@ -14476,8 +14483,8 @@ function requireDom() {
|
|
|
14476
14483
|
*/
|
|
14477
14484
|
normalize: function() {
|
|
14478
14485
|
Me(this, null, {
|
|
14479
|
-
enter: function(
|
|
14480
|
-
for (var U =
|
|
14486
|
+
enter: function(F) {
|
|
14487
|
+
for (var U = F.firstChild; U; ) {
|
|
14481
14488
|
var J = U.nextSibling;
|
|
14482
14489
|
if (J !== null && J.nodeType === A && U.nodeType === A) {
|
|
14483
14490
|
for (var ae = [], ge = J; ge !== null && ge.nodeType === A; )
|
|
@@ -14486,7 +14493,7 @@ function requireDom() {
|
|
|
14486
14493
|
var de = Ie.nextSibling;
|
|
14487
14494
|
Ie.parentNode = null, Ie.previousSibling = null, Ie.nextSibling = null, Ie = de;
|
|
14488
14495
|
}
|
|
14489
|
-
U.nextSibling = ge, ge !== null ? ge.previousSibling = U :
|
|
14496
|
+
U.nextSibling = ge, ge !== null ? ge.previousSibling = U : F.lastChild = U, U.appendData(ae.join("")), xe(F.ownerDocument, F), U = ge;
|
|
14490
14497
|
} else
|
|
14491
14498
|
U = J;
|
|
14492
14499
|
}
|
|
@@ -14495,8 +14502,8 @@ function requireDom() {
|
|
|
14495
14502
|
});
|
|
14496
14503
|
},
|
|
14497
14504
|
// Introduced in DOM Level 2:
|
|
14498
|
-
isSupported: function(
|
|
14499
|
-
return this.ownerDocument.implementation.hasFeature(
|
|
14505
|
+
isSupported: function(F, U) {
|
|
14506
|
+
return this.ownerDocument.implementation.hasFeature(F, U);
|
|
14500
14507
|
},
|
|
14501
14508
|
// Introduced in DOM Level 2:
|
|
14502
14509
|
hasAttributes: function() {
|
|
@@ -14516,12 +14523,12 @@ function requireDom() {
|
|
|
14516
14523
|
* @see https://dom.spec.whatwg.org/#dom-node-lookupprefix
|
|
14517
14524
|
* @see https://github.com/xmldom/xmldom/issues/322
|
|
14518
14525
|
*/
|
|
14519
|
-
lookupPrefix: function(
|
|
14526
|
+
lookupPrefix: function(F) {
|
|
14520
14527
|
for (var U = this; U; ) {
|
|
14521
14528
|
var J = U._nsMap;
|
|
14522
14529
|
if (J) {
|
|
14523
14530
|
for (var ae in J)
|
|
14524
|
-
if (Object.prototype.hasOwnProperty.call(J, ae) && J[ae] ===
|
|
14531
|
+
if (Object.prototype.hasOwnProperty.call(J, ae) && J[ae] === F)
|
|
14525
14532
|
return ae;
|
|
14526
14533
|
}
|
|
14527
14534
|
U = U.nodeType == S ? U.ownerDocument : U.parentNode;
|
|
@@ -14529,32 +14536,32 @@ function requireDom() {
|
|
|
14529
14536
|
return null;
|
|
14530
14537
|
},
|
|
14531
14538
|
// Introduced in DOM Level 3:
|
|
14532
|
-
lookupNamespaceURI: function(
|
|
14539
|
+
lookupNamespaceURI: function(F) {
|
|
14533
14540
|
for (var U = this; U; ) {
|
|
14534
14541
|
var J = U._nsMap;
|
|
14535
|
-
if (J && Object.prototype.hasOwnProperty.call(J,
|
|
14536
|
-
return J[
|
|
14542
|
+
if (J && Object.prototype.hasOwnProperty.call(J, F))
|
|
14543
|
+
return J[F];
|
|
14537
14544
|
U = U.nodeType == S ? U.ownerDocument : U.parentNode;
|
|
14538
14545
|
}
|
|
14539
14546
|
return null;
|
|
14540
14547
|
},
|
|
14541
14548
|
// Introduced in DOM Level 3:
|
|
14542
|
-
isDefaultNamespace: function(
|
|
14543
|
-
var U = this.lookupPrefix(
|
|
14549
|
+
isDefaultNamespace: function(F) {
|
|
14550
|
+
var U = this.lookupPrefix(F);
|
|
14544
14551
|
return U == null;
|
|
14545
14552
|
}
|
|
14546
14553
|
};
|
|
14547
|
-
function Oe(
|
|
14548
|
-
return
|
|
14554
|
+
function Oe(F) {
|
|
14555
|
+
return F == "<" && "<" || F == ">" && ">" || F == "&" && "&" || F == '"' && """ || "&#" + F.charCodeAt() + ";";
|
|
14549
14556
|
}
|
|
14550
14557
|
b(I, be), b(I, be.prototype);
|
|
14551
|
-
function Q(
|
|
14552
|
-
return Me(
|
|
14558
|
+
function Q(F, U) {
|
|
14559
|
+
return Me(F, null, { enter: function(J) {
|
|
14553
14560
|
return U(J) ? Me.STOP : !0;
|
|
14554
14561
|
} }) === Me.STOP;
|
|
14555
14562
|
}
|
|
14556
|
-
function Me(
|
|
14557
|
-
for (var ae = [{ node:
|
|
14563
|
+
function Me(F, U, J) {
|
|
14564
|
+
for (var ae = [{ node: F, context: U, phase: Me.ENTER }]; ae.length > 0; ) {
|
|
14558
14565
|
var ge = ae.pop();
|
|
14559
14566
|
if (ge.phase === Me.ENTER) {
|
|
14560
14567
|
var Ie = J.enter(ge.node, ge.context);
|
|
@@ -14572,19 +14579,19 @@ function requireDom() {
|
|
|
14572
14579
|
function me() {
|
|
14573
14580
|
this.ownerDocument = this;
|
|
14574
14581
|
}
|
|
14575
|
-
function fe(
|
|
14576
|
-
|
|
14582
|
+
function fe(F, U, J) {
|
|
14583
|
+
F && F._inc++;
|
|
14577
14584
|
var ae = J.namespaceURI;
|
|
14578
14585
|
ae === r.XMLNS && (U._nsMap[J.prefix ? J.localName : ""] = J.value);
|
|
14579
14586
|
}
|
|
14580
|
-
function V(
|
|
14581
|
-
|
|
14587
|
+
function V(F, U, J, ae) {
|
|
14588
|
+
F && F._inc++;
|
|
14582
14589
|
var ge = J.namespaceURI;
|
|
14583
14590
|
ge === r.XMLNS && delete U._nsMap[J.prefix ? J.localName : ""];
|
|
14584
14591
|
}
|
|
14585
|
-
function xe(
|
|
14586
|
-
if (
|
|
14587
|
-
|
|
14592
|
+
function xe(F, U, J) {
|
|
14593
|
+
if (F && F._inc) {
|
|
14594
|
+
F._inc++;
|
|
14588
14595
|
var ae = U.childNodes;
|
|
14589
14596
|
if (J)
|
|
14590
14597
|
ae[ae.length++] = J;
|
|
@@ -14595,34 +14602,34 @@ function requireDom() {
|
|
|
14595
14602
|
}
|
|
14596
14603
|
}
|
|
14597
14604
|
}
|
|
14598
|
-
function Pe(
|
|
14605
|
+
function Pe(F, U) {
|
|
14599
14606
|
var J = U.previousSibling, ae = U.nextSibling;
|
|
14600
|
-
return J ? J.nextSibling = ae :
|
|
14607
|
+
return J ? J.nextSibling = ae : F.firstChild = ae, ae ? ae.previousSibling = J : F.lastChild = J, U.parentNode = null, U.previousSibling = null, U.nextSibling = null, xe(F.ownerDocument, F), U;
|
|
14601
14608
|
}
|
|
14602
|
-
function Ve(
|
|
14603
|
-
return
|
|
14609
|
+
function Ve(F) {
|
|
14610
|
+
return F && (F.nodeType === be.DOCUMENT_NODE || F.nodeType === be.DOCUMENT_FRAGMENT_NODE || F.nodeType === be.ELEMENT_NODE);
|
|
14604
14611
|
}
|
|
14605
|
-
function Ue(
|
|
14606
|
-
return
|
|
14612
|
+
function Ue(F) {
|
|
14613
|
+
return F && (Ze(F) || le(F) || Ye(F) || F.nodeType === be.DOCUMENT_FRAGMENT_NODE || F.nodeType === be.COMMENT_NODE || F.nodeType === be.PROCESSING_INSTRUCTION_NODE);
|
|
14607
14614
|
}
|
|
14608
|
-
function Ye(
|
|
14609
|
-
return
|
|
14615
|
+
function Ye(F) {
|
|
14616
|
+
return F && F.nodeType === be.DOCUMENT_TYPE_NODE;
|
|
14610
14617
|
}
|
|
14611
|
-
function Ze(
|
|
14612
|
-
return
|
|
14618
|
+
function Ze(F) {
|
|
14619
|
+
return F && F.nodeType === be.ELEMENT_NODE;
|
|
14613
14620
|
}
|
|
14614
|
-
function le(
|
|
14615
|
-
return
|
|
14621
|
+
function le(F) {
|
|
14622
|
+
return F && F.nodeType === be.TEXT_NODE;
|
|
14616
14623
|
}
|
|
14617
|
-
function We(
|
|
14618
|
-
var J =
|
|
14624
|
+
function We(F, U) {
|
|
14625
|
+
var J = F.childNodes || [];
|
|
14619
14626
|
if (t(J, Ze) || Ye(U))
|
|
14620
14627
|
return !1;
|
|
14621
14628
|
var ae = t(J, Ye);
|
|
14622
14629
|
return !(U && ae && J.indexOf(ae) > J.indexOf(U));
|
|
14623
14630
|
}
|
|
14624
|
-
function lt(
|
|
14625
|
-
var J =
|
|
14631
|
+
function lt(F, U) {
|
|
14632
|
+
var J = F.childNodes || [];
|
|
14626
14633
|
function ae(Ie) {
|
|
14627
14634
|
return Ze(Ie) && Ie !== U;
|
|
14628
14635
|
}
|
|
@@ -14631,10 +14638,10 @@ function requireDom() {
|
|
|
14631
14638
|
var ge = t(J, Ye);
|
|
14632
14639
|
return !(U && ge && J.indexOf(ge) > J.indexOf(U));
|
|
14633
14640
|
}
|
|
14634
|
-
function tt(
|
|
14635
|
-
if (!Ve(
|
|
14636
|
-
throw new K(ee, "Unexpected parent node type " +
|
|
14637
|
-
if (J && J.parentNode !==
|
|
14641
|
+
function tt(F, U, J) {
|
|
14642
|
+
if (!Ve(F))
|
|
14643
|
+
throw new K(ee, "Unexpected parent node type " + F.nodeType);
|
|
14644
|
+
if (J && J.parentNode !== F)
|
|
14638
14645
|
throw new K(se, "child not in parent");
|
|
14639
14646
|
if (
|
|
14640
14647
|
// 4. If `node` is not a DocumentFragment, DocumentType, Element, or CharacterData node, then throw a "HierarchyRequestError" DOMException.
|
|
@@ -14642,23 +14649,23 @@ function requireDom() {
|
|
|
14642
14649
|
// the sax parser currently adds top level text nodes, this will be fixed in 0.9.0
|
|
14643
14650
|
// || (node.nodeType === Node.TEXT_NODE && parent.nodeType === Node.DOCUMENT_NODE)
|
|
14644
14651
|
// or `node` is a doctype and `parent` is not a document, then throw a "HierarchyRequestError" DOMException.
|
|
14645
|
-
Ye(U) &&
|
|
14652
|
+
Ye(U) && F.nodeType !== be.DOCUMENT_NODE
|
|
14646
14653
|
)
|
|
14647
14654
|
throw new K(
|
|
14648
14655
|
ee,
|
|
14649
|
-
"Unexpected node type " + U.nodeType + " for parent node type " +
|
|
14656
|
+
"Unexpected node type " + U.nodeType + " for parent node type " + F.nodeType
|
|
14650
14657
|
);
|
|
14651
14658
|
}
|
|
14652
|
-
function Zt(
|
|
14653
|
-
var ae =
|
|
14659
|
+
function Zt(F, U, J) {
|
|
14660
|
+
var ae = F.childNodes || [], ge = U.childNodes || [];
|
|
14654
14661
|
if (U.nodeType === be.DOCUMENT_FRAGMENT_NODE) {
|
|
14655
14662
|
var Ie = ge.filter(Ze);
|
|
14656
14663
|
if (Ie.length > 1 || t(ge, le))
|
|
14657
14664
|
throw new K(ee, "More than one element or text in fragment");
|
|
14658
|
-
if (Ie.length === 1 && !We(
|
|
14665
|
+
if (Ie.length === 1 && !We(F, J))
|
|
14659
14666
|
throw new K(ee, "Element in fragment can not be inserted before doctype");
|
|
14660
14667
|
}
|
|
14661
|
-
if (Ze(U) && !We(
|
|
14668
|
+
if (Ze(U) && !We(F, J))
|
|
14662
14669
|
throw new K(ee, "Only one element can be added and only after doctype");
|
|
14663
14670
|
if (Ye(U)) {
|
|
14664
14671
|
if (t(ae, Ye))
|
|
@@ -14670,16 +14677,16 @@ function requireDom() {
|
|
|
14670
14677
|
throw new K(ee, "Doctype can not be appended since element is present");
|
|
14671
14678
|
}
|
|
14672
14679
|
}
|
|
14673
|
-
function Le(
|
|
14674
|
-
var ae =
|
|
14680
|
+
function Le(F, U, J) {
|
|
14681
|
+
var ae = F.childNodes || [], ge = U.childNodes || [];
|
|
14675
14682
|
if (U.nodeType === be.DOCUMENT_FRAGMENT_NODE) {
|
|
14676
14683
|
var Ie = ge.filter(Ze);
|
|
14677
14684
|
if (Ie.length > 1 || t(ge, le))
|
|
14678
14685
|
throw new K(ee, "More than one element or text in fragment");
|
|
14679
|
-
if (Ie.length === 1 && !lt(
|
|
14686
|
+
if (Ie.length === 1 && !lt(F, J))
|
|
14680
14687
|
throw new K(ee, "Element in fragment can not be inserted before doctype");
|
|
14681
14688
|
}
|
|
14682
|
-
if (Ze(U) && !lt(
|
|
14689
|
+
if (Ze(U) && !lt(F, J))
|
|
14683
14690
|
throw new K(ee, "Only one element can be added and only after doctype");
|
|
14684
14691
|
if (Ye(U)) {
|
|
14685
14692
|
if (t(ae, function(Je) {
|
|
@@ -14691,8 +14698,8 @@ function requireDom() {
|
|
|
14691
14698
|
throw new K(ee, "Doctype can only be inserted before an element");
|
|
14692
14699
|
}
|
|
14693
14700
|
}
|
|
14694
|
-
function ct(
|
|
14695
|
-
tt(
|
|
14701
|
+
function ct(F, U, J, ae) {
|
|
14702
|
+
tt(F, U, J), F.nodeType === be.DOCUMENT_NODE && (ae || Zt)(F, U, J);
|
|
14696
14703
|
var ge = U.parentNode;
|
|
14697
14704
|
if (ge && ge.removeChild(U), U.nodeType === Y) {
|
|
14698
14705
|
var Ie = U.firstChild;
|
|
@@ -14701,29 +14708,29 @@ function requireDom() {
|
|
|
14701
14708
|
var de = U.lastChild;
|
|
14702
14709
|
} else
|
|
14703
14710
|
Ie = de = U;
|
|
14704
|
-
var ze = J ? J.previousSibling :
|
|
14705
|
-
Ie.previousSibling = ze, de.nextSibling = J, ze ? ze.nextSibling = Ie :
|
|
14711
|
+
var ze = J ? J.previousSibling : F.lastChild;
|
|
14712
|
+
Ie.previousSibling = ze, de.nextSibling = J, ze ? ze.nextSibling = Ie : F.firstChild = Ie, J == null ? F.lastChild = de : J.previousSibling = de;
|
|
14706
14713
|
do {
|
|
14707
|
-
Ie.parentNode =
|
|
14708
|
-
var Je =
|
|
14714
|
+
Ie.parentNode = F;
|
|
14715
|
+
var Je = F.ownerDocument || F;
|
|
14709
14716
|
dt(Ie, Je);
|
|
14710
14717
|
} while (Ie !== de && (Ie = Ie.nextSibling));
|
|
14711
|
-
return xe(
|
|
14718
|
+
return xe(F.ownerDocument || F, F), U.nodeType == Y && (U.firstChild = U.lastChild = null), U;
|
|
14712
14719
|
}
|
|
14713
|
-
function dt(
|
|
14714
|
-
if (
|
|
14715
|
-
if (
|
|
14716
|
-
for (var J = 0; J <
|
|
14717
|
-
var ae =
|
|
14720
|
+
function dt(F, U) {
|
|
14721
|
+
if (F.ownerDocument !== U) {
|
|
14722
|
+
if (F.ownerDocument = U, F.nodeType === x && F.attributes)
|
|
14723
|
+
for (var J = 0; J < F.attributes.length; J++) {
|
|
14724
|
+
var ae = F.attributes.item(J);
|
|
14718
14725
|
ae && (ae.ownerDocument = U);
|
|
14719
14726
|
}
|
|
14720
|
-
for (var ge =
|
|
14727
|
+
for (var ge = F.firstChild; ge; )
|
|
14721
14728
|
dt(ge, U), ge = ge.nextSibling;
|
|
14722
14729
|
}
|
|
14723
14730
|
}
|
|
14724
|
-
function qt(
|
|
14725
|
-
U.parentNode && U.parentNode.removeChild(U), U.parentNode =
|
|
14726
|
-
var J =
|
|
14731
|
+
function qt(F, U) {
|
|
14732
|
+
U.parentNode && U.parentNode.removeChild(U), U.parentNode = F, U.previousSibling = F.lastChild, U.nextSibling = null, U.previousSibling ? U.previousSibling.nextSibling = U : F.firstChild = U, F.lastChild = U, xe(F.ownerDocument, F, U);
|
|
14733
|
+
var J = F.ownerDocument || F;
|
|
14727
14734
|
return dt(U, J), U;
|
|
14728
14735
|
}
|
|
14729
14736
|
me.prototype = {
|
|
@@ -14739,31 +14746,31 @@ function requireDom() {
|
|
|
14739
14746
|
doctype: null,
|
|
14740
14747
|
documentElement: null,
|
|
14741
14748
|
_inc: 1,
|
|
14742
|
-
insertBefore: function(
|
|
14743
|
-
if (
|
|
14744
|
-
for (var J =
|
|
14749
|
+
insertBefore: function(F, U) {
|
|
14750
|
+
if (F.nodeType == Y) {
|
|
14751
|
+
for (var J = F.firstChild; J; ) {
|
|
14745
14752
|
var ae = J.nextSibling;
|
|
14746
14753
|
this.insertBefore(J, U), J = ae;
|
|
14747
14754
|
}
|
|
14748
|
-
return
|
|
14755
|
+
return F;
|
|
14749
14756
|
}
|
|
14750
|
-
return ct(this,
|
|
14757
|
+
return ct(this, F, U), dt(F, this), this.documentElement === null && F.nodeType === x && (this.documentElement = F), F;
|
|
14751
14758
|
},
|
|
14752
|
-
removeChild: function(
|
|
14753
|
-
return this.documentElement ==
|
|
14759
|
+
removeChild: function(F) {
|
|
14760
|
+
return this.documentElement == F && (this.documentElement = null), Pe(this, F);
|
|
14754
14761
|
},
|
|
14755
|
-
replaceChild: function(
|
|
14756
|
-
ct(this,
|
|
14762
|
+
replaceChild: function(F, U) {
|
|
14763
|
+
ct(this, F, U, Le), dt(F, this), U && this.removeChild(U), Ze(F) && (this.documentElement = F);
|
|
14757
14764
|
},
|
|
14758
14765
|
// Introduced in DOM Level 2:
|
|
14759
|
-
importNode: function(
|
|
14760
|
-
return pr(this,
|
|
14766
|
+
importNode: function(F, U) {
|
|
14767
|
+
return pr(this, F, U);
|
|
14761
14768
|
},
|
|
14762
14769
|
// Introduced in DOM Level 2:
|
|
14763
|
-
getElementById: function(
|
|
14770
|
+
getElementById: function(F) {
|
|
14764
14771
|
var U = null;
|
|
14765
14772
|
return Q(this.documentElement, function(J) {
|
|
14766
|
-
if (J.nodeType == x && J.getAttribute("id") ==
|
|
14773
|
+
if (J.nodeType == x && J.getAttribute("id") == F)
|
|
14767
14774
|
return U = J, !0;
|
|
14768
14775
|
}), U;
|
|
14769
14776
|
},
|
|
@@ -14784,15 +14791,15 @@ function requireDom() {
|
|
|
14784
14791
|
* @see https://developer.mozilla.org/en-US/docs/Web/API/Document/getElementsByClassName
|
|
14785
14792
|
* @see https://dom.spec.whatwg.org/#concept-getelementsbyclassname
|
|
14786
14793
|
*/
|
|
14787
|
-
getElementsByClassName: function(
|
|
14788
|
-
var U = m(
|
|
14794
|
+
getElementsByClassName: function(F) {
|
|
14795
|
+
var U = m(F);
|
|
14789
14796
|
return new pe(this, function(J) {
|
|
14790
14797
|
var ae = [];
|
|
14791
14798
|
return U.length > 0 && Q(J.documentElement, function(ge) {
|
|
14792
14799
|
if (ge !== J && ge.nodeType === x) {
|
|
14793
14800
|
var Ie = ge.getAttribute("class");
|
|
14794
14801
|
if (Ie) {
|
|
14795
|
-
var de =
|
|
14802
|
+
var de = F === Ie;
|
|
14796
14803
|
if (!de) {
|
|
14797
14804
|
var ze = m(Ie);
|
|
14798
14805
|
de = U.every(y(ze));
|
|
@@ -14804,23 +14811,23 @@ function requireDom() {
|
|
|
14804
14811
|
});
|
|
14805
14812
|
},
|
|
14806
14813
|
//document factory method:
|
|
14807
|
-
createElement: function(
|
|
14814
|
+
createElement: function(F) {
|
|
14808
14815
|
var U = new Re();
|
|
14809
|
-
U.ownerDocument = this, U.nodeName =
|
|
14816
|
+
U.ownerDocument = this, U.nodeName = F, U.tagName = F, U.localName = F, U.childNodes = new ue();
|
|
14810
14817
|
var J = U.attributes = new Ae();
|
|
14811
14818
|
return J._ownerElement = U, U;
|
|
14812
14819
|
},
|
|
14813
14820
|
createDocumentFragment: function() {
|
|
14814
|
-
var
|
|
14815
|
-
return
|
|
14821
|
+
var F = new Ct();
|
|
14822
|
+
return F.ownerDocument = this, F.childNodes = new ue(), F;
|
|
14816
14823
|
},
|
|
14817
|
-
createTextNode: function(
|
|
14824
|
+
createTextNode: function(F) {
|
|
14818
14825
|
var U = new Ne();
|
|
14819
|
-
return U.ownerDocument = this, U.appendData(
|
|
14826
|
+
return U.ownerDocument = this, U.appendData(F), U;
|
|
14820
14827
|
},
|
|
14821
|
-
createComment: function(
|
|
14828
|
+
createComment: function(F) {
|
|
14822
14829
|
var U = new jt();
|
|
14823
|
-
return U.ownerDocument = this, U.appendData(
|
|
14830
|
+
return U.ownerDocument = this, U.appendData(F), U;
|
|
14824
14831
|
},
|
|
14825
14832
|
/**
|
|
14826
14833
|
* Returns a new CDATASection node whose data is `data`.
|
|
@@ -14834,11 +14841,11 @@ function requireDom() {
|
|
|
14834
14841
|
* @see https://developer.mozilla.org/en-US/docs/Web/API/Document/createCDATASection
|
|
14835
14842
|
* @see https://dom.spec.whatwg.org/#dom-document-createcdatasection
|
|
14836
14843
|
*/
|
|
14837
|
-
createCDATASection: function(
|
|
14838
|
-
if (
|
|
14844
|
+
createCDATASection: function(F) {
|
|
14845
|
+
if (F.indexOf("]]>") !== -1)
|
|
14839
14846
|
throw new K(te, 'data contains "]]>"');
|
|
14840
14847
|
var U = new rt();
|
|
14841
|
-
return U.ownerDocument = this, U.appendData(
|
|
14848
|
+
return U.ownerDocument = this, U.appendData(F), U;
|
|
14842
14849
|
},
|
|
14843
14850
|
/**
|
|
14844
14851
|
* Returns a ProcessingInstruction node whose target is target and data is data.
|
|
@@ -14859,13 +14866,13 @@ function requireDom() {
|
|
|
14859
14866
|
* @see https://dom.spec.whatwg.org/#dom-document-createprocessinginstruction
|
|
14860
14867
|
* @see https://www.w3.org/TR/DOM-Parsing/#dfn-concept-serialize-xml §3.2.1.7
|
|
14861
14868
|
*/
|
|
14862
|
-
createProcessingInstruction: function(
|
|
14869
|
+
createProcessingInstruction: function(F, U) {
|
|
14863
14870
|
var J = new Qe();
|
|
14864
|
-
return J.ownerDocument = this, J.tagName = J.nodeName = J.target =
|
|
14871
|
+
return J.ownerDocument = this, J.tagName = J.nodeName = J.target = F, J.nodeValue = J.data = U, J;
|
|
14865
14872
|
},
|
|
14866
|
-
createAttribute: function(
|
|
14873
|
+
createAttribute: function(F) {
|
|
14867
14874
|
var U = new Tt();
|
|
14868
|
-
return U.ownerDocument = this, U.name =
|
|
14875
|
+
return U.ownerDocument = this, U.name = F, U.nodeName = F, U.localName = F, U.specified = !0, U;
|
|
14869
14876
|
},
|
|
14870
14877
|
/**
|
|
14871
14878
|
* Creates an EntityReference object, serialized as `&name;`.
|
|
@@ -14884,21 +14891,21 @@ function requireDom() {
|
|
|
14884
14891
|
* @throws {DOMException} With code `INVALID_CHARACTER_ERR` when `name` is not a valid XML `Name`.
|
|
14885
14892
|
* @see https://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-392B75AE
|
|
14886
14893
|
*/
|
|
14887
|
-
createEntityReference: function(
|
|
14888
|
-
if (!n.test(
|
|
14889
|
-
throw new K(te, 'not a valid xml name "' +
|
|
14894
|
+
createEntityReference: function(F) {
|
|
14895
|
+
if (!n.test(F))
|
|
14896
|
+
throw new K(te, 'not a valid xml name "' + F + '"');
|
|
14890
14897
|
var U = new Vt();
|
|
14891
|
-
return U.ownerDocument = this, U.nodeName =
|
|
14898
|
+
return U.ownerDocument = this, U.nodeName = F, U;
|
|
14892
14899
|
},
|
|
14893
14900
|
// Introduced in DOM Level 2:
|
|
14894
|
-
createElementNS: function(
|
|
14901
|
+
createElementNS: function(F, U) {
|
|
14895
14902
|
var J = new Re(), ae = U.split(":"), ge = J.attributes = new Ae();
|
|
14896
|
-
return J.childNodes = new ue(), J.ownerDocument = this, J.nodeName = U, J.tagName = U, J.namespaceURI =
|
|
14903
|
+
return J.childNodes = new ue(), J.ownerDocument = this, J.nodeName = U, J.tagName = U, J.namespaceURI = F, ae.length == 2 ? (J.prefix = ae[0], J.localName = ae[1]) : J.localName = U, ge._ownerElement = J, J;
|
|
14897
14904
|
},
|
|
14898
14905
|
// Introduced in DOM Level 2:
|
|
14899
|
-
createAttributeNS: function(
|
|
14906
|
+
createAttributeNS: function(F, U) {
|
|
14900
14907
|
var J = new Tt(), ae = U.split(":");
|
|
14901
|
-
return J.ownerDocument = this, J.nodeName = U, J.name = U, J.namespaceURI =
|
|
14908
|
+
return J.ownerDocument = this, J.nodeName = U, J.name = U, J.namespaceURI = F, J.specified = !0, ae.length == 2 ? (J.prefix = ae[0], J.localName = ae[1]) : J.localName = U, J;
|
|
14902
14909
|
}
|
|
14903
14910
|
}, E(me, be);
|
|
14904
14911
|
function Re() {
|
|
@@ -14906,69 +14913,69 @@ function requireDom() {
|
|
|
14906
14913
|
}
|
|
14907
14914
|
Re.prototype = {
|
|
14908
14915
|
nodeType: x,
|
|
14909
|
-
hasAttribute: function(
|
|
14910
|
-
return this.getAttributeNode(
|
|
14916
|
+
hasAttribute: function(F) {
|
|
14917
|
+
return this.getAttributeNode(F) != null;
|
|
14911
14918
|
},
|
|
14912
|
-
getAttribute: function(
|
|
14913
|
-
var U = this.getAttributeNode(
|
|
14919
|
+
getAttribute: function(F) {
|
|
14920
|
+
var U = this.getAttributeNode(F);
|
|
14914
14921
|
return U && U.value || "";
|
|
14915
14922
|
},
|
|
14916
|
-
getAttributeNode: function(
|
|
14917
|
-
return this.attributes.getNamedItem(
|
|
14923
|
+
getAttributeNode: function(F) {
|
|
14924
|
+
return this.attributes.getNamedItem(F);
|
|
14918
14925
|
},
|
|
14919
|
-
setAttribute: function(
|
|
14920
|
-
var J = this.ownerDocument.createAttribute(
|
|
14926
|
+
setAttribute: function(F, U) {
|
|
14927
|
+
var J = this.ownerDocument.createAttribute(F);
|
|
14921
14928
|
J.value = J.nodeValue = "" + U, this.setAttributeNode(J);
|
|
14922
14929
|
},
|
|
14923
|
-
removeAttribute: function(
|
|
14924
|
-
var U = this.getAttributeNode(
|
|
14930
|
+
removeAttribute: function(F) {
|
|
14931
|
+
var U = this.getAttributeNode(F);
|
|
14925
14932
|
U && this.removeAttributeNode(U);
|
|
14926
14933
|
},
|
|
14927
14934
|
//four real opeartion method
|
|
14928
|
-
appendChild: function(
|
|
14929
|
-
return
|
|
14935
|
+
appendChild: function(F) {
|
|
14936
|
+
return F.nodeType === Y ? this.insertBefore(F, null) : qt(this, F);
|
|
14930
14937
|
},
|
|
14931
|
-
setAttributeNode: function(
|
|
14932
|
-
return this.attributes.setNamedItem(
|
|
14938
|
+
setAttributeNode: function(F) {
|
|
14939
|
+
return this.attributes.setNamedItem(F);
|
|
14933
14940
|
},
|
|
14934
|
-
setAttributeNodeNS: function(
|
|
14935
|
-
return this.attributes.setNamedItemNS(
|
|
14941
|
+
setAttributeNodeNS: function(F) {
|
|
14942
|
+
return this.attributes.setNamedItemNS(F);
|
|
14936
14943
|
},
|
|
14937
|
-
removeAttributeNode: function(
|
|
14938
|
-
return this.attributes.removeNamedItem(
|
|
14944
|
+
removeAttributeNode: function(F) {
|
|
14945
|
+
return this.attributes.removeNamedItem(F.nodeName);
|
|
14939
14946
|
},
|
|
14940
14947
|
//get real attribute name,and remove it by removeAttributeNode
|
|
14941
|
-
removeAttributeNS: function(
|
|
14942
|
-
var J = this.getAttributeNodeNS(
|
|
14948
|
+
removeAttributeNS: function(F, U) {
|
|
14949
|
+
var J = this.getAttributeNodeNS(F, U);
|
|
14943
14950
|
J && this.removeAttributeNode(J);
|
|
14944
14951
|
},
|
|
14945
|
-
hasAttributeNS: function(
|
|
14946
|
-
return this.getAttributeNodeNS(
|
|
14952
|
+
hasAttributeNS: function(F, U) {
|
|
14953
|
+
return this.getAttributeNodeNS(F, U) != null;
|
|
14947
14954
|
},
|
|
14948
|
-
getAttributeNS: function(
|
|
14949
|
-
var J = this.getAttributeNodeNS(
|
|
14955
|
+
getAttributeNS: function(F, U) {
|
|
14956
|
+
var J = this.getAttributeNodeNS(F, U);
|
|
14950
14957
|
return J && J.value || "";
|
|
14951
14958
|
},
|
|
14952
|
-
setAttributeNS: function(
|
|
14953
|
-
var ae = this.ownerDocument.createAttributeNS(
|
|
14959
|
+
setAttributeNS: function(F, U, J) {
|
|
14960
|
+
var ae = this.ownerDocument.createAttributeNS(F, U);
|
|
14954
14961
|
ae.value = ae.nodeValue = "" + J, this.setAttributeNode(ae);
|
|
14955
14962
|
},
|
|
14956
|
-
getAttributeNodeNS: function(
|
|
14957
|
-
return this.attributes.getNamedItemNS(
|
|
14963
|
+
getAttributeNodeNS: function(F, U) {
|
|
14964
|
+
return this.attributes.getNamedItemNS(F, U);
|
|
14958
14965
|
},
|
|
14959
|
-
getElementsByTagName: function(
|
|
14966
|
+
getElementsByTagName: function(F) {
|
|
14960
14967
|
return new pe(this, function(U) {
|
|
14961
14968
|
var J = [];
|
|
14962
14969
|
return Q(U, function(ae) {
|
|
14963
|
-
ae !== U && ae.nodeType == x && (
|
|
14970
|
+
ae !== U && ae.nodeType == x && (F === "*" || ae.tagName == F) && J.push(ae);
|
|
14964
14971
|
}), J;
|
|
14965
14972
|
});
|
|
14966
14973
|
},
|
|
14967
|
-
getElementsByTagNameNS: function(
|
|
14974
|
+
getElementsByTagNameNS: function(F, U) {
|
|
14968
14975
|
return new pe(this, function(J) {
|
|
14969
14976
|
var ae = [];
|
|
14970
14977
|
return Q(J, function(ge) {
|
|
14971
|
-
ge !== J && ge.nodeType === x && (
|
|
14978
|
+
ge !== J && ge.nodeType === x && (F === "*" || ge.namespaceURI === F) && (U === "*" || ge.localName == U) && ae.push(ge);
|
|
14972
14979
|
}), ae;
|
|
14973
14980
|
});
|
|
14974
14981
|
}
|
|
@@ -14980,23 +14987,23 @@ function requireDom() {
|
|
|
14980
14987
|
}
|
|
14981
14988
|
Fe.prototype = {
|
|
14982
14989
|
data: "",
|
|
14983
|
-
substringData: function(
|
|
14984
|
-
return this.data.substring(
|
|
14990
|
+
substringData: function(F, U) {
|
|
14991
|
+
return this.data.substring(F, F + U);
|
|
14985
14992
|
},
|
|
14986
|
-
appendData: function(
|
|
14987
|
-
|
|
14993
|
+
appendData: function(F) {
|
|
14994
|
+
F = this.data + F, this.nodeValue = this.data = F, this.length = F.length;
|
|
14988
14995
|
},
|
|
14989
|
-
insertData: function(
|
|
14990
|
-
this.replaceData(
|
|
14996
|
+
insertData: function(F, U) {
|
|
14997
|
+
this.replaceData(F, 0, U);
|
|
14991
14998
|
},
|
|
14992
|
-
appendChild: function(
|
|
14999
|
+
appendChild: function(F) {
|
|
14993
15000
|
throw new Error(X[ee]);
|
|
14994
15001
|
},
|
|
14995
|
-
deleteData: function(
|
|
14996
|
-
this.replaceData(
|
|
15002
|
+
deleteData: function(F, U) {
|
|
15003
|
+
this.replaceData(F, U, "");
|
|
14997
15004
|
},
|
|
14998
|
-
replaceData: function(
|
|
14999
|
-
var ae = this.data.substring(0,
|
|
15005
|
+
replaceData: function(F, U, J) {
|
|
15006
|
+
var ae = this.data.substring(0, F), ge = this.data.substring(F + U);
|
|
15000
15007
|
J = ae + J + ge, this.nodeValue = this.data = J, this.length = J.length;
|
|
15001
15008
|
}
|
|
15002
15009
|
}, E(Fe, be);
|
|
@@ -15005,9 +15012,9 @@ function requireDom() {
|
|
|
15005
15012
|
Ne.prototype = {
|
|
15006
15013
|
nodeName: "#text",
|
|
15007
15014
|
nodeType: A,
|
|
15008
|
-
splitText: function(
|
|
15009
|
-
var U = this.data, J = U.substring(
|
|
15010
|
-
U = U.substring(0,
|
|
15015
|
+
splitText: function(F) {
|
|
15016
|
+
var U = this.data, J = U.substring(F);
|
|
15017
|
+
U = U.substring(0, F), this.data = this.nodeValue = U, this.length = U.length;
|
|
15011
15018
|
var ae = this.ownerDocument.createTextNode(J);
|
|
15012
15019
|
return this.parentNode && this.parentNode.insertBefore(ae, this.nextSibling), ae;
|
|
15013
15020
|
}
|
|
@@ -15016,7 +15023,7 @@ function requireDom() {
|
|
|
15016
15023
|
}
|
|
15017
15024
|
jt.prototype = {
|
|
15018
15025
|
nodeName: "#comment",
|
|
15019
|
-
nodeType:
|
|
15026
|
+
nodeType: O
|
|
15020
15027
|
}, E(jt, Fe);
|
|
15021
15028
|
function rt() {
|
|
15022
15029
|
}
|
|
@@ -15044,10 +15051,10 @@ function requireDom() {
|
|
|
15044
15051
|
Qe.prototype.nodeType = $, E(Qe, be);
|
|
15045
15052
|
function mt() {
|
|
15046
15053
|
}
|
|
15047
|
-
mt.prototype.serializeToString = function(
|
|
15048
|
-
return nt.call(
|
|
15054
|
+
mt.prototype.serializeToString = function(F, U, J, ae) {
|
|
15055
|
+
return nt.call(F, U, J, ae);
|
|
15049
15056
|
}, be.prototype.toString = nt;
|
|
15050
|
-
function nt(
|
|
15057
|
+
function nt(F, U, J) {
|
|
15051
15058
|
var ae = !!J && !!J.requireWellFormed, ge = [], Ie = this.nodeType == 9 && this.documentElement || this, de = Ie.prefix, ze = Ie.namespaceURI;
|
|
15052
15059
|
if (ze && de == null) {
|
|
15053
15060
|
var de = Ie.lookupPrefix(ze);
|
|
@@ -15057,10 +15064,10 @@ function requireDom() {
|
|
|
15057
15064
|
//{namespace:uri,prefix:''}
|
|
15058
15065
|
];
|
|
15059
15066
|
}
|
|
15060
|
-
return ur(this, ge,
|
|
15067
|
+
return ur(this, ge, F, U, Je, ae), ge.join("");
|
|
15061
15068
|
}
|
|
15062
|
-
function sr(
|
|
15063
|
-
var ae =
|
|
15069
|
+
function sr(F, U, J) {
|
|
15070
|
+
var ae = F.prefix || "", ge = F.namespaceURI;
|
|
15064
15071
|
if (!ge || ae === "xml" && ge === r.XML || ge === r.XMLNS)
|
|
15065
15072
|
return !1;
|
|
15066
15073
|
for (var Ie = J.length; Ie--; ) {
|
|
@@ -15070,13 +15077,13 @@ function requireDom() {
|
|
|
15070
15077
|
}
|
|
15071
15078
|
return !0;
|
|
15072
15079
|
}
|
|
15073
|
-
function Ft(
|
|
15080
|
+
function Ft(F, U, J, ae) {
|
|
15074
15081
|
if (ae && !n.test(U))
|
|
15075
15082
|
throw new K(oe, 'The attribute name "' + U + '" is not a valid XML QName');
|
|
15076
|
-
|
|
15083
|
+
F.push(" ", U, '="', J.replace(/[<>&"\t\n\r]/g, Oe), '"');
|
|
15077
15084
|
}
|
|
15078
|
-
function ur(
|
|
15079
|
-
ge || (ge = []), Me(
|
|
15085
|
+
function ur(F, U, J, ae, ge, Ie) {
|
|
15086
|
+
ge || (ge = []), Me(F, { ns: ge, isHTML: J }, {
|
|
15080
15087
|
enter: function(de, ze) {
|
|
15081
15088
|
var Je = ze.ns, at = ze.isHTML;
|
|
15082
15089
|
if (ae)
|
|
@@ -15154,7 +15161,7 @@ function requireDom() {
|
|
|
15154
15161
|
if (Ie && de.data.indexOf("]]>") !== -1)
|
|
15155
15162
|
throw new K(oe, 'The CDATASection data contains "]]>"');
|
|
15156
15163
|
return U.push("<![CDATA[", de.data.replace(/]]>/g, "]]]]><![CDATA[>"), "]]>"), null;
|
|
15157
|
-
case
|
|
15164
|
+
case O:
|
|
15158
15165
|
if (Ie && de.data.indexOf("-->") !== -1)
|
|
15159
15166
|
throw new K(oe, 'The comment node data contains "-->"');
|
|
15160
15167
|
return U.push("<!--", de.data, "-->"), null;
|
|
@@ -15208,18 +15215,18 @@ function requireDom() {
|
|
|
15208
15215
|
}
|
|
15209
15216
|
});
|
|
15210
15217
|
}
|
|
15211
|
-
function pr(
|
|
15218
|
+
function pr(F, U, J) {
|
|
15212
15219
|
var ae;
|
|
15213
15220
|
return Me(U, null, {
|
|
15214
15221
|
enter: function(ge, Ie) {
|
|
15215
15222
|
var de = ge.cloneNode(!1);
|
|
15216
|
-
de.ownerDocument =
|
|
15223
|
+
de.ownerDocument = F, de.parentNode = null, Ie === null ? ae = de : Ie.appendChild(de);
|
|
15217
15224
|
var ze = ge.nodeType === S || J;
|
|
15218
15225
|
return ze ? de : null;
|
|
15219
15226
|
}
|
|
15220
15227
|
}), ae;
|
|
15221
15228
|
}
|
|
15222
|
-
function Rt(
|
|
15229
|
+
function Rt(F, U, J) {
|
|
15223
15230
|
var ae;
|
|
15224
15231
|
return Me(U, null, {
|
|
15225
15232
|
enter: function(ge, Ie) {
|
|
@@ -15229,14 +15236,14 @@ function requireDom() {
|
|
|
15229
15236
|
var Je = ge[ze];
|
|
15230
15237
|
typeof Je != "object" && Je != de[ze] && (de[ze] = Je);
|
|
15231
15238
|
}
|
|
15232
|
-
ge.childNodes && (de.childNodes = new ue()), de.ownerDocument =
|
|
15239
|
+
ge.childNodes && (de.childNodes = new ue()), de.ownerDocument = F;
|
|
15233
15240
|
var at = J;
|
|
15234
15241
|
switch (de.nodeType) {
|
|
15235
15242
|
case x:
|
|
15236
15243
|
var yt = ge.attributes, Jt = de.attributes = new Ae(), Ke = yt.length;
|
|
15237
15244
|
Jt._ownerElement = de;
|
|
15238
15245
|
for (var ot = 0; ot < Ke; ot++)
|
|
15239
|
-
de.setAttributeNode(Rt(
|
|
15246
|
+
de.setAttributeNode(Rt(F, yt.item(ot), !0));
|
|
15240
15247
|
break;
|
|
15241
15248
|
case S:
|
|
15242
15249
|
at = !0;
|
|
@@ -15245,8 +15252,8 @@ function requireDom() {
|
|
|
15245
15252
|
}
|
|
15246
15253
|
}), ae;
|
|
15247
15254
|
}
|
|
15248
|
-
function ye(
|
|
15249
|
-
|
|
15255
|
+
function ye(F, U, J) {
|
|
15256
|
+
F[U] = J;
|
|
15250
15257
|
}
|
|
15251
15258
|
try {
|
|
15252
15259
|
Object.defineProperty && (Object.defineProperty(pe.prototype, "length", {
|
|
@@ -15256,33 +15263,33 @@ function requireDom() {
|
|
|
15256
15263
|
}), Object.defineProperty(be.prototype, "textContent", {
|
|
15257
15264
|
get: function() {
|
|
15258
15265
|
if (this.nodeType === x || this.nodeType === Y) {
|
|
15259
|
-
var
|
|
15266
|
+
var F = [];
|
|
15260
15267
|
return Me(this, null, {
|
|
15261
15268
|
enter: function(U) {
|
|
15262
15269
|
if (U.nodeType === x || U.nodeType === Y)
|
|
15263
15270
|
return !0;
|
|
15264
|
-
if (U.nodeType === $ || U.nodeType ===
|
|
15271
|
+
if (U.nodeType === $ || U.nodeType === O)
|
|
15265
15272
|
return null;
|
|
15266
|
-
|
|
15273
|
+
F.push(U.nodeValue);
|
|
15267
15274
|
}
|
|
15268
|
-
}),
|
|
15275
|
+
}), F.join("");
|
|
15269
15276
|
}
|
|
15270
15277
|
return this.nodeValue;
|
|
15271
15278
|
},
|
|
15272
|
-
set: function(
|
|
15279
|
+
set: function(F) {
|
|
15273
15280
|
switch (this.nodeType) {
|
|
15274
15281
|
case x:
|
|
15275
15282
|
case Y:
|
|
15276
15283
|
for (; this.firstChild; )
|
|
15277
15284
|
this.removeChild(this.firstChild);
|
|
15278
|
-
(
|
|
15285
|
+
(F || String(F)) && this.appendChild(this.ownerDocument.createTextNode(F));
|
|
15279
15286
|
break;
|
|
15280
15287
|
default:
|
|
15281
|
-
this.data =
|
|
15288
|
+
this.data = F, this.value = F, this.nodeValue = F;
|
|
15282
15289
|
}
|
|
15283
15290
|
}
|
|
15284
|
-
}), ye = function(
|
|
15285
|
-
|
|
15291
|
+
}), ye = function(F, U, J) {
|
|
15292
|
+
F["$$" + U] = J;
|
|
15286
15293
|
});
|
|
15287
15294
|
} catch {
|
|
15288
15295
|
}
|
|
@@ -17504,7 +17511,7 @@ function requireSax() {
|
|
|
17504
17511
|
Ae && K(_e), Pe = G(z, _e, ee);
|
|
17505
17512
|
break;
|
|
17506
17513
|
case "!":
|
|
17507
|
-
Ae && K(_e), Pe =
|
|
17514
|
+
Ae && K(_e), Pe = O(z, _e, ee, te);
|
|
17508
17515
|
break;
|
|
17509
17516
|
default:
|
|
17510
17517
|
Ae && K(_e);
|
|
@@ -17690,7 +17697,7 @@ function requireSax() {
|
|
|
17690
17697
|
for (var X in z)
|
|
17691
17698
|
Object.prototype.hasOwnProperty.call(z, X) && (W[X] = z[X]);
|
|
17692
17699
|
}
|
|
17693
|
-
function
|
|
17700
|
+
function O(z, W, X, ee) {
|
|
17694
17701
|
var te = z.charAt(W + 2);
|
|
17695
17702
|
switch (te) {
|
|
17696
17703
|
case "-":
|
|
@@ -17784,14 +17791,14 @@ function requireDomParser() {
|
|
|
17784
17791
|
this.options = k || { locator: {} };
|
|
17785
17792
|
}
|
|
17786
17793
|
b.prototype.parseFromString = function(k, L) {
|
|
17787
|
-
var $ = this.options,
|
|
17788
|
-
Y && G.setDocumentLocator(Y),
|
|
17794
|
+
var $ = this.options, O = new m(), G = $.domBuilder || new I(), q = $.errorHandler, Y = $.locator, z = $.xmlns || {}, W = /\/x?html?$/.test(L), X = W ? r.HTML_ENTITIES : r.XML_ENTITIES;
|
|
17795
|
+
Y && G.setDocumentLocator(Y), O.errorHandler = E(q, G, Y), O.domBuilder = $.domBuilder || G, W && (z[""] = d.HTML), z.xml = z.xml || d.XML;
|
|
17789
17796
|
var ee = $.normalizeLineEndings || y;
|
|
17790
|
-
return k && typeof k == "string" ?
|
|
17797
|
+
return k && typeof k == "string" ? O.parse(
|
|
17791
17798
|
ee(k),
|
|
17792
17799
|
z,
|
|
17793
17800
|
X
|
|
17794
|
-
) :
|
|
17801
|
+
) : O.errorHandler.error("invalid doc source"), G.doc;
|
|
17795
17802
|
};
|
|
17796
17803
|
function E(k, L, $) {
|
|
17797
17804
|
if (!k) {
|
|
@@ -17799,18 +17806,18 @@ function requireDomParser() {
|
|
|
17799
17806
|
return L;
|
|
17800
17807
|
k = L;
|
|
17801
17808
|
}
|
|
17802
|
-
var
|
|
17809
|
+
var O = {}, G = k instanceof Function;
|
|
17803
17810
|
$ = $ || {};
|
|
17804
17811
|
function q(Y) {
|
|
17805
17812
|
var z = k[Y];
|
|
17806
17813
|
!z && G && (z = k.length == 2 ? function(W) {
|
|
17807
17814
|
k(Y, W);
|
|
17808
|
-
} : k),
|
|
17815
|
+
} : k), O[Y] = z && function(W) {
|
|
17809
17816
|
z("[xmldom " + Y + "] " + W + S($));
|
|
17810
17817
|
} || function() {
|
|
17811
17818
|
};
|
|
17812
17819
|
}
|
|
17813
|
-
return q("warning"), q("error"), q("fatalError"),
|
|
17820
|
+
return q("warning"), q("error"), q("fatalError"), O;
|
|
17814
17821
|
}
|
|
17815
17822
|
function I() {
|
|
17816
17823
|
this.cdata = !1;
|
|
@@ -17822,17 +17829,17 @@ function requireDomParser() {
|
|
|
17822
17829
|
startDocument: function() {
|
|
17823
17830
|
this.doc = new s().createDocument(null, null, null), this.locator && (this.doc.documentURI = this.locator.systemId);
|
|
17824
17831
|
},
|
|
17825
|
-
startElement: function(k, L, $,
|
|
17826
|
-
var G = this.doc, q = G.createElementNS(k, $ || L), Y =
|
|
17832
|
+
startElement: function(k, L, $, O) {
|
|
17833
|
+
var G = this.doc, q = G.createElementNS(k, $ || L), Y = O.length;
|
|
17827
17834
|
R(this, q), this.currentElement = q, this.locator && x(this.locator, q);
|
|
17828
17835
|
for (var z = 0; z < Y; z++) {
|
|
17829
|
-
var k =
|
|
17830
|
-
this.locator && x(
|
|
17836
|
+
var k = O.getURI(z), W = O.getValue(z), $ = O.getQName(z), X = G.createAttributeNS(k, $);
|
|
17837
|
+
this.locator && x(O.getLocator(z), X), X.value = X.nodeValue = W, q.setAttributeNode(X);
|
|
17831
17838
|
}
|
|
17832
17839
|
},
|
|
17833
17840
|
endElement: function(k, L, $) {
|
|
17834
|
-
var
|
|
17835
|
-
|
|
17841
|
+
var O = this.currentElement;
|
|
17842
|
+
O.tagName, this.currentElement = O.parentNode;
|
|
17836
17843
|
},
|
|
17837
17844
|
startPrefixMapping: function(k, L) {
|
|
17838
17845
|
},
|
|
@@ -17847,10 +17854,10 @@ function requireDomParser() {
|
|
|
17847
17854
|
characters: function(k, L, $) {
|
|
17848
17855
|
if (k = A.apply(this, arguments), k) {
|
|
17849
17856
|
if (this.cdata)
|
|
17850
|
-
var
|
|
17857
|
+
var O = this.doc.createCDATASection(k);
|
|
17851
17858
|
else
|
|
17852
|
-
var
|
|
17853
|
-
this.currentElement ? this.currentElement.appendChild(
|
|
17859
|
+
var O = this.doc.createTextNode(k);
|
|
17860
|
+
this.currentElement ? this.currentElement.appendChild(O) : /^\s*$/.test(k) && this.doc.appendChild(O), this.locator && x(this.locator, O);
|
|
17854
17861
|
}
|
|
17855
17862
|
},
|
|
17856
17863
|
skippedEntity: function(k) {
|
|
@@ -17864,8 +17871,8 @@ function requireDomParser() {
|
|
|
17864
17871
|
//LexicalHandler
|
|
17865
17872
|
comment: function(k, L, $) {
|
|
17866
17873
|
k = A.apply(this, arguments);
|
|
17867
|
-
var
|
|
17868
|
-
this.locator && x(this.locator,
|
|
17874
|
+
var O = this.doc.createComment(k);
|
|
17875
|
+
this.locator && x(this.locator, O), R(this, O);
|
|
17869
17876
|
},
|
|
17870
17877
|
startCDATA: function() {
|
|
17871
17878
|
this.cdata = !0;
|
|
@@ -17874,9 +17881,9 @@ function requireDomParser() {
|
|
|
17874
17881
|
this.cdata = !1;
|
|
17875
17882
|
},
|
|
17876
17883
|
startDTD: function(k, L, $) {
|
|
17877
|
-
var
|
|
17878
|
-
if (
|
|
17879
|
-
var G =
|
|
17884
|
+
var O = this.doc.implementation;
|
|
17885
|
+
if (O && O.createDocumentType) {
|
|
17886
|
+
var G = O.createDocumentType(k, L, $);
|
|
17880
17887
|
this.locator && x(this.locator, G), R(this, G), this.doc.doctype = G;
|
|
17881
17888
|
}
|
|
17882
17889
|
},
|
|
@@ -17979,7 +17986,7 @@ function requireTogeojson() {
|
|
|
17979
17986
|
heartRate: se ? parseFloat(S(se)) : null
|
|
17980
17987
|
};
|
|
17981
17988
|
}
|
|
17982
|
-
function
|
|
17989
|
+
function O() {
|
|
17983
17990
|
return {
|
|
17984
17991
|
type: "FeatureCollection",
|
|
17985
17992
|
features: []
|
|
@@ -18000,7 +18007,7 @@ function requireTogeojson() {
|
|
|
18000
18007
|
}
|
|
18001
18008
|
var W = {
|
|
18002
18009
|
kml: function(X) {
|
|
18003
|
-
for (var ee =
|
|
18010
|
+
for (var ee = O(), te = {}, se = {}, ie = {}, oe = ["Polygon", "LineString", "Point", "Track", "gx:Track"], K = m(X, "Placemark"), ue = m(X, "Style"), pe = m(X, "StyleMap"), Ce = 0; Ce < ue.length; Ce++) {
|
|
18004
18011
|
var Ae = g(z(ue[Ce])).toString(16);
|
|
18005
18012
|
te["#" + y(ue[Ce], "id")] = Ae, se[Ae] = ue[Ce];
|
|
18006
18013
|
}
|
|
@@ -18122,7 +18129,7 @@ function requireTogeojson() {
|
|
|
18122
18129
|
return ee;
|
|
18123
18130
|
},
|
|
18124
18131
|
gpx: function(X) {
|
|
18125
|
-
var ee, te = m(X, "trk"), se = m(X, "rte"), ie = m(X, "wpt"), oe =
|
|
18132
|
+
var ee, te = m(X, "trk"), se = m(X, "rte"), ie = m(X, "wpt"), oe = O(), K;
|
|
18126
18133
|
for (ee = 0; ee < te.length; ee++)
|
|
18127
18134
|
K = Ce(te[ee]), K && oe.features.push(K);
|
|
18128
18135
|
for (ee = 0; ee < se.length; ee++)
|
|
@@ -18478,8 +18485,8 @@ const bundle$m = {
|
|
|
18478
18485
|
R(`Error for ${b.displayName}`);
|
|
18479
18486
|
else
|
|
18480
18487
|
try {
|
|
18481
|
-
let
|
|
18482
|
-
|
|
18488
|
+
let O = JSON.parse($);
|
|
18489
|
+
O = identifyColumnsArcgisrest(O, d), b.identifyFields && O.results.forEach((G) => {
|
|
18483
18490
|
if (G.attributes)
|
|
18484
18491
|
for (const [q, Y] of Object.entries(G.attributes)) {
|
|
18485
18492
|
let z = [];
|
|
@@ -18487,10 +18494,10 @@ const bundle$m = {
|
|
|
18487
18494
|
G.attributes[W] && (z[W] = G.attributes[W]);
|
|
18488
18495
|
}), G.attributes = z;
|
|
18489
18496
|
}
|
|
18490
|
-
}), b.
|
|
18497
|
+
}), b.identifyRenameColumns && O.results.forEach((G) => {
|
|
18491
18498
|
if (G.attributes)
|
|
18492
18499
|
for (const [q, Y] of Object.entries(G.attributes))
|
|
18493
|
-
for (const [z, W] of Object.entries(b.
|
|
18500
|
+
for (const [z, W] of Object.entries(b.identifyRenameColumns))
|
|
18494
18501
|
q === z && (G.attributes[W] = G.attributes[q], delete G.attributes[q]);
|
|
18495
18502
|
}), R(null, {
|
|
18496
18503
|
dataset: b.uid,
|
|
@@ -18499,7 +18506,7 @@ const bundle$m = {
|
|
|
18499
18506
|
result: {
|
|
18500
18507
|
[b.uid]: {
|
|
18501
18508
|
type: "FeatureCollection",
|
|
18502
|
-
features:
|
|
18509
|
+
features: O.results.map((G) => ({
|
|
18503
18510
|
type: "Feature",
|
|
18504
18511
|
geometry: {
|
|
18505
18512
|
type: g,
|
|
@@ -18510,8 +18517,8 @@ const bundle$m = {
|
|
|
18510
18517
|
}
|
|
18511
18518
|
}
|
|
18512
18519
|
});
|
|
18513
|
-
} catch (
|
|
18514
|
-
R(`Error for ${b.displayName}`,
|
|
18520
|
+
} catch (O) {
|
|
18521
|
+
R(`Error for ${b.displayName}`, O);
|
|
18515
18522
|
}
|
|
18516
18523
|
});
|
|
18517
18524
|
});
|
|
@@ -19008,7 +19015,7 @@ function _objectWithoutProperties(e, t) {
|
|
|
19008
19015
|
}
|
|
19009
19016
|
var _excluded$6 = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
|
|
19010
19017
|
function useStateManager(e) {
|
|
19011
|
-
var t = e.defaultInputValue, r = t === void 0 ? "" : t, n = e.defaultMenuIsOpen, s = n === void 0 ? !1 : n, d = e.defaultValue, g = d === void 0 ? null : d, m = e.inputValue, y = e.menuIsOpen, b = e.onChange, E = e.onInputChange, I = e.onMenuClose, x = e.onMenuOpen, S = e.value, A = _objectWithoutProperties(e, _excluded$6), R = useState$1(m !== void 0 ? m : r), k = _slicedToArray(R, 2), L = k[0], $ = k[1],
|
|
19018
|
+
var t = e.defaultInputValue, r = t === void 0 ? "" : t, n = e.defaultMenuIsOpen, s = n === void 0 ? !1 : n, d = e.defaultValue, g = d === void 0 ? null : d, m = e.inputValue, y = e.menuIsOpen, b = e.onChange, E = e.onInputChange, I = e.onMenuClose, x = e.onMenuOpen, S = e.value, A = _objectWithoutProperties(e, _excluded$6), R = useState$1(m !== void 0 ? m : r), k = _slicedToArray(R, 2), L = k[0], $ = k[1], O = useState$1(y !== void 0 ? y : s), G = _slicedToArray(O, 2), q = G[0], Y = G[1], z = useState$1(S !== void 0 ? S : g), W = _slicedToArray(z, 2), X = W[0], ee = W[1], te = useCallback(function(Ce, Ae) {
|
|
19012
19019
|
typeof b == "function" && b(Ce, Ae), ee(Ce);
|
|
19013
19020
|
}, [b]), se = useCallback(function(Ce, Ae) {
|
|
19014
19021
|
var he;
|
|
@@ -19309,7 +19316,7 @@ function compile$1(e) {
|
|
|
19309
19316
|
return dealloc(parse("", null, null, null, [""], e = alloc(e), 0, [0], e));
|
|
19310
19317
|
}
|
|
19311
19318
|
function parse(e, t, r, n, s, d, g, m, y) {
|
|
19312
|
-
for (var b = 0, E = 0, I = g, x = 0, S = 0, A = 0, R = 1, k = 1, L = 1, $ = 0,
|
|
19319
|
+
for (var b = 0, E = 0, I = g, x = 0, S = 0, A = 0, R = 1, k = 1, L = 1, $ = 0, O = "", G = s, q = d, Y = n, z = O; k; )
|
|
19313
19320
|
switch (A = $, $ = next()) {
|
|
19314
19321
|
// (
|
|
19315
19322
|
case 40:
|
|
@@ -19366,7 +19373,7 @@ function parse(e, t, r, n, s, d, g, m, y) {
|
|
|
19366
19373
|
z += ";";
|
|
19367
19374
|
// { rule/at-rule
|
|
19368
19375
|
default:
|
|
19369
|
-
if (append(Y = ruleset(z, t, r, b, E, s, m,
|
|
19376
|
+
if (append(Y = ruleset(z, t, r, b, E, s, m, O, G = [], q = [], I), d), $ === 123)
|
|
19370
19377
|
if (E === 0)
|
|
19371
19378
|
parse(z, t, Y, Y, G, d, I, m, q);
|
|
19372
19379
|
else
|
|
@@ -19376,13 +19383,13 @@ function parse(e, t, r, n, s, d, g, m, y) {
|
|
|
19376
19383
|
case 108:
|
|
19377
19384
|
case 109:
|
|
19378
19385
|
case 115:
|
|
19379
|
-
parse(e, Y, Y, n && append(ruleset(e, Y, Y, 0, 0, s, m,
|
|
19386
|
+
parse(e, Y, Y, n && append(ruleset(e, Y, Y, 0, 0, s, m, O, s, G = [], I), q), s, q, I, m, n ? G : q);
|
|
19380
19387
|
break;
|
|
19381
19388
|
default:
|
|
19382
19389
|
parse(z, Y, Y, Y, [""], q, 0, m, q);
|
|
19383
19390
|
}
|
|
19384
19391
|
}
|
|
19385
|
-
b = E = S = 0, R = L = 1,
|
|
19392
|
+
b = E = S = 0, R = L = 1, O = z = "", I = g;
|
|
19386
19393
|
break;
|
|
19387
19394
|
// :
|
|
19388
19395
|
case 58:
|
|
@@ -19405,7 +19412,7 @@ function parse(e, t, r, n, s, d, g, m, y) {
|
|
|
19405
19412
|
break;
|
|
19406
19413
|
// @
|
|
19407
19414
|
case 64:
|
|
19408
|
-
peek() === 45 && (z += delimit(next())), x = peek(), E = I = strlen(
|
|
19415
|
+
peek() === 45 && (z += delimit(next())), x = peek(), E = I = strlen(O = z += identifier(caret())), $++;
|
|
19409
19416
|
break;
|
|
19410
19417
|
// -
|
|
19411
19418
|
case 45:
|
|
@@ -19416,8 +19423,8 @@ function parse(e, t, r, n, s, d, g, m, y) {
|
|
|
19416
19423
|
}
|
|
19417
19424
|
function ruleset(e, t, r, n, s, d, g, m, y, b, E) {
|
|
19418
19425
|
for (var I = s - 1, x = s === 0 ? d : [""], S = sizeof(x), A = 0, R = 0, k = 0; A < n; ++A)
|
|
19419
|
-
for (var L = 0, $ = substr(e, I + 1, I = abs(R = g[A])),
|
|
19420
|
-
(
|
|
19426
|
+
for (var L = 0, $ = substr(e, I + 1, I = abs(R = g[A])), O = e; L < S; ++L)
|
|
19427
|
+
(O = trim(R > 0 ? x[L] + " " + $ : replace$1($, /&\f/g, x[L]))) && (y[k++] = O);
|
|
19421
19428
|
return node(e, t, r, s === 0 ? RULESET : m, y, b, E);
|
|
19422
19429
|
}
|
|
19423
19430
|
function comment(e, t, r) {
|
|
@@ -19714,8 +19721,8 @@ var prefixer = function e(t, r, n, s) {
|
|
|
19714
19721
|
})], x = middleware(b.concat(s, I)), S = function(k) {
|
|
19715
19722
|
return serialize(compile$1(k), x);
|
|
19716
19723
|
};
|
|
19717
|
-
y = function(k, L, $,
|
|
19718
|
-
E = $, S(k ? k + "{" + L.styles + "}" : L.styles),
|
|
19724
|
+
y = function(k, L, $, O) {
|
|
19725
|
+
E = $, S(k ? k + "{" + L.styles + "}" : L.styles), O && (A.inserted[L.name] = !0);
|
|
19719
19726
|
};
|
|
19720
19727
|
}
|
|
19721
19728
|
var A = {
|
|
@@ -19740,7 +19747,7 @@ function requireReactIs_production_min() {
|
|
|
19740
19747
|
if (hasRequiredReactIs_production_min) return reactIs_production_min;
|
|
19741
19748
|
hasRequiredReactIs_production_min = 1;
|
|
19742
19749
|
var e = typeof Symbol == "function" && Symbol.for, t = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, r = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, n = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, s = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, d = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, g = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, m = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, y = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, b = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, E = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, I = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, x = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, S = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, A = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, R = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, k = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, L = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, $ = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
|
|
19743
|
-
function
|
|
19750
|
+
function O(q) {
|
|
19744
19751
|
if (typeof q == "object" && q !== null) {
|
|
19745
19752
|
var Y = q.$$typeof;
|
|
19746
19753
|
switch (Y) {
|
|
@@ -19771,41 +19778,41 @@ function requireReactIs_production_min() {
|
|
|
19771
19778
|
}
|
|
19772
19779
|
}
|
|
19773
19780
|
function G(q) {
|
|
19774
|
-
return
|
|
19781
|
+
return O(q) === b;
|
|
19775
19782
|
}
|
|
19776
19783
|
return reactIs_production_min.AsyncMode = y, reactIs_production_min.ConcurrentMode = b, reactIs_production_min.ContextConsumer = m, reactIs_production_min.ContextProvider = g, reactIs_production_min.Element = t, reactIs_production_min.ForwardRef = E, reactIs_production_min.Fragment = n, reactIs_production_min.Lazy = A, reactIs_production_min.Memo = S, reactIs_production_min.Portal = r, reactIs_production_min.Profiler = d, reactIs_production_min.StrictMode = s, reactIs_production_min.Suspense = I, reactIs_production_min.isAsyncMode = function(q) {
|
|
19777
|
-
return G(q) ||
|
|
19784
|
+
return G(q) || O(q) === y;
|
|
19778
19785
|
}, reactIs_production_min.isConcurrentMode = G, reactIs_production_min.isContextConsumer = function(q) {
|
|
19779
|
-
return
|
|
19786
|
+
return O(q) === m;
|
|
19780
19787
|
}, reactIs_production_min.isContextProvider = function(q) {
|
|
19781
|
-
return
|
|
19788
|
+
return O(q) === g;
|
|
19782
19789
|
}, reactIs_production_min.isElement = function(q) {
|
|
19783
19790
|
return typeof q == "object" && q !== null && q.$$typeof === t;
|
|
19784
19791
|
}, reactIs_production_min.isForwardRef = function(q) {
|
|
19785
|
-
return
|
|
19792
|
+
return O(q) === E;
|
|
19786
19793
|
}, reactIs_production_min.isFragment = function(q) {
|
|
19787
|
-
return
|
|
19794
|
+
return O(q) === n;
|
|
19788
19795
|
}, reactIs_production_min.isLazy = function(q) {
|
|
19789
|
-
return
|
|
19796
|
+
return O(q) === A;
|
|
19790
19797
|
}, reactIs_production_min.isMemo = function(q) {
|
|
19791
|
-
return
|
|
19798
|
+
return O(q) === S;
|
|
19792
19799
|
}, reactIs_production_min.isPortal = function(q) {
|
|
19793
|
-
return
|
|
19800
|
+
return O(q) === r;
|
|
19794
19801
|
}, reactIs_production_min.isProfiler = function(q) {
|
|
19795
|
-
return
|
|
19802
|
+
return O(q) === d;
|
|
19796
19803
|
}, reactIs_production_min.isStrictMode = function(q) {
|
|
19797
|
-
return
|
|
19804
|
+
return O(q) === s;
|
|
19798
19805
|
}, reactIs_production_min.isSuspense = function(q) {
|
|
19799
|
-
return
|
|
19806
|
+
return O(q) === I;
|
|
19800
19807
|
}, reactIs_production_min.isValidElementType = function(q) {
|
|
19801
19808
|
return typeof q == "string" || typeof q == "function" || q === n || q === b || q === d || q === s || q === I || q === x || typeof q == "object" && q !== null && (q.$$typeof === A || q.$$typeof === S || q.$$typeof === g || q.$$typeof === m || q.$$typeof === E || q.$$typeof === k || q.$$typeof === L || q.$$typeof === $ || q.$$typeof === R);
|
|
19802
|
-
}, reactIs_production_min.typeOf =
|
|
19809
|
+
}, reactIs_production_min.typeOf = O, reactIs_production_min;
|
|
19803
19810
|
}
|
|
19804
19811
|
var reactIs_development = {}, hasRequiredReactIs_development;
|
|
19805
19812
|
function requireReactIs_development() {
|
|
19806
19813
|
return hasRequiredReactIs_development || (hasRequiredReactIs_development = 1, process$1.env.NODE_ENV !== "production" && (function() {
|
|
19807
19814
|
var e = typeof Symbol == "function" && Symbol.for, t = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, r = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, n = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, s = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, d = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, g = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, m = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, y = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, b = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, E = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, I = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, x = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, S = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, A = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, R = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, k = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, L = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, $ = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
|
|
19808
|
-
function
|
|
19815
|
+
function O(V) {
|
|
19809
19816
|
return typeof V == "string" || typeof V == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
19810
19817
|
V === n || V === b || V === d || V === s || V === I || V === x || typeof V == "object" && V !== null && (V.$$typeof === A || V.$$typeof === S || V.$$typeof === g || V.$$typeof === m || V.$$typeof === E || V.$$typeof === k || V.$$typeof === L || V.$$typeof === $ || V.$$typeof === R);
|
|
19811
19818
|
}
|
|
@@ -19881,7 +19888,7 @@ function requireReactIs_development() {
|
|
|
19881
19888
|
function fe(V) {
|
|
19882
19889
|
return G(V) === I;
|
|
19883
19890
|
}
|
|
19884
|
-
reactIs_development.AsyncMode = q, reactIs_development.ConcurrentMode = Y, reactIs_development.ContextConsumer = z, reactIs_development.ContextProvider = W, reactIs_development.Element = X, reactIs_development.ForwardRef = ee, reactIs_development.Fragment = te, reactIs_development.Lazy = se, reactIs_development.Memo = ie, reactIs_development.Portal = oe, reactIs_development.Profiler = K, reactIs_development.StrictMode = ue, reactIs_development.Suspense = pe, reactIs_development.isAsyncMode = Ae, reactIs_development.isConcurrentMode = he, reactIs_development.isContextConsumer = Be, reactIs_development.isContextProvider = Se, reactIs_development.isElement = _e, reactIs_development.isForwardRef = ve, reactIs_development.isFragment = Te, reactIs_development.isLazy = be, reactIs_development.isMemo = Oe, reactIs_development.isPortal = Q, reactIs_development.isProfiler = Me, reactIs_development.isStrictMode = me, reactIs_development.isSuspense = fe, reactIs_development.isValidElementType =
|
|
19891
|
+
reactIs_development.AsyncMode = q, reactIs_development.ConcurrentMode = Y, reactIs_development.ContextConsumer = z, reactIs_development.ContextProvider = W, reactIs_development.Element = X, reactIs_development.ForwardRef = ee, reactIs_development.Fragment = te, reactIs_development.Lazy = se, reactIs_development.Memo = ie, reactIs_development.Portal = oe, reactIs_development.Profiler = K, reactIs_development.StrictMode = ue, reactIs_development.Suspense = pe, reactIs_development.isAsyncMode = Ae, reactIs_development.isConcurrentMode = he, reactIs_development.isContextConsumer = Be, reactIs_development.isContextProvider = Se, reactIs_development.isElement = _e, reactIs_development.isForwardRef = ve, reactIs_development.isFragment = Te, reactIs_development.isLazy = be, reactIs_development.isMemo = Oe, reactIs_development.isPortal = Q, reactIs_development.isProfiler = Me, reactIs_development.isStrictMode = me, reactIs_development.isSuspense = fe, reactIs_development.isValidElementType = O, reactIs_development.typeOf = G;
|
|
19885
19892
|
})()), reactIs_development;
|
|
19886
19893
|
}
|
|
19887
19894
|
var hasRequiredReactIs;
|
|
@@ -19939,9 +19946,9 @@ function requireHoistNonReactStatics_cjs() {
|
|
|
19939
19946
|
}
|
|
19940
19947
|
var $ = y(R);
|
|
19941
19948
|
b && ($ = $.concat(b(R)));
|
|
19942
|
-
for (var
|
|
19949
|
+
for (var O = g(A), G = g(R), q = 0; q < $.length; ++q) {
|
|
19943
19950
|
var Y = $[q];
|
|
19944
|
-
if (!r[Y] && !(k && k[Y]) && !(G && G[Y]) && !(
|
|
19951
|
+
if (!r[Y] && !(k && k[Y]) && !(G && G[Y]) && !(O && O[Y])) {
|
|
19945
19952
|
var z = E(R, Y);
|
|
19946
19953
|
try {
|
|
19947
19954
|
m(A, Y, z);
|
|
@@ -20409,8 +20416,8 @@ function observeMove(e, t, r) {
|
|
|
20409
20416
|
} = x;
|
|
20410
20417
|
if (E || t(), !R || !k)
|
|
20411
20418
|
return;
|
|
20412
|
-
const L = floor$1(A), $ = floor$1(d.clientWidth - (S + R)),
|
|
20413
|
-
rootMargin: -L + "px " + -$ + "px " + -
|
|
20419
|
+
const L = floor$1(A), $ = floor$1(d.clientWidth - (S + R)), O = floor$1(d.clientHeight - (A + k)), G = floor$1(S), Y = {
|
|
20420
|
+
rootMargin: -L + "px " + -$ + "px " + -O + "px " + -G + "px",
|
|
20414
20421
|
threshold: max$1(0, min(1, I)) || 1
|
|
20415
20422
|
};
|
|
20416
20423
|
let z = !0;
|
|
@@ -20460,8 +20467,8 @@ function autoUpdate(e, t, r, n) {
|
|
|
20460
20467
|
g && (S = new ResizeObserver((L) => {
|
|
20461
20468
|
let [$] = L;
|
|
20462
20469
|
$ && $.target === b && S && t && (S.unobserve(t), cancelAnimationFrame(x), x = requestAnimationFrame(() => {
|
|
20463
|
-
var
|
|
20464
|
-
(
|
|
20470
|
+
var O;
|
|
20471
|
+
(O = S) == null || O.observe(t);
|
|
20465
20472
|
})), r();
|
|
20466
20473
|
}), b && !y && S.observe(b), t && S.observe(t));
|
|
20467
20474
|
let A, R = y ? getBoundingClientRect(e) : null;
|
|
@@ -20613,7 +20620,7 @@ function getMenuPlacement(e) {
|
|
|
20613
20620
|
maxHeight: t
|
|
20614
20621
|
};
|
|
20615
20622
|
if (!r || !r.offsetParent) return b;
|
|
20616
|
-
var E = y.getBoundingClientRect(), I = E.height, x = r.getBoundingClientRect(), S = x.bottom, A = x.height, R = x.top, k = r.offsetParent.getBoundingClientRect(), L = k.top, $ = g ? window.innerHeight : normalizedHeight(y),
|
|
20623
|
+
var E = y.getBoundingClientRect(), I = E.height, x = r.getBoundingClientRect(), S = x.bottom, A = x.height, R = x.top, k = r.offsetParent.getBoundingClientRect(), L = k.top, $ = g ? window.innerHeight : normalizedHeight(y), O = getScrollTop(y), G = parseInt(getComputedStyle(r).marginBottom, 10), q = parseInt(getComputedStyle(r).marginTop, 10), Y = L - q, z = $ - R, W = Y + O, X = I - O - R, ee = S - $ + O + G, te = O + R - q, se = 160;
|
|
20617
20624
|
switch (s) {
|
|
20618
20625
|
case "auto":
|
|
20619
20626
|
case "bottom":
|
|
@@ -20696,7 +20703,7 @@ var coercePlacement = function e(t) {
|
|
|
20696
20703
|
marginTop: m.menuGutter
|
|
20697
20704
|
});
|
|
20698
20705
|
}, PortalPlacementContext = /* @__PURE__ */ createContext(null), MenuPlacer = function e(t) {
|
|
20699
|
-
var r = t.children, n = t.minMenuHeight, s = t.maxMenuHeight, d = t.menuPlacement, g = t.menuPosition, m = t.menuShouldScrollIntoView, y = t.theme, b = useContext$1(PortalPlacementContext) || {}, E = b.setPortalPlacement, I = useRef(null), x = useState$1(s), S = _slicedToArray(x, 2), A = S[0], R = S[1], k = useState$1(null), L = _slicedToArray(k, 2), $ = L[0],
|
|
20706
|
+
var r = t.children, n = t.minMenuHeight, s = t.maxMenuHeight, d = t.menuPlacement, g = t.menuPosition, m = t.menuShouldScrollIntoView, y = t.theme, b = useContext$1(PortalPlacementContext) || {}, E = b.setPortalPlacement, I = useRef(null), x = useState$1(s), S = _slicedToArray(x, 2), A = S[0], R = S[1], k = useState$1(null), L = _slicedToArray(k, 2), $ = L[0], O = L[1], G = y.spacing.controlHeight;
|
|
20700
20707
|
return index(function() {
|
|
20701
20708
|
var q = I.current;
|
|
20702
20709
|
if (q) {
|
|
@@ -20709,7 +20716,7 @@ var coercePlacement = function e(t) {
|
|
|
20709
20716
|
isFixedPosition: Y,
|
|
20710
20717
|
controlHeight: G
|
|
20711
20718
|
});
|
|
20712
|
-
R(W.maxHeight),
|
|
20719
|
+
R(W.maxHeight), O(W.placement), E?.(W.placement);
|
|
20713
20720
|
}
|
|
20714
20721
|
}, [s, d, g, m, n, E, G]), r({
|
|
20715
20722
|
ref: I,
|
|
@@ -20785,7 +20792,7 @@ var coercePlacement = function e(t) {
|
|
|
20785
20792
|
return {
|
|
20786
20793
|
setPortalPlacement: S
|
|
20787
20794
|
};
|
|
20788
|
-
}, []), R = useState$1(null), k = _slicedToArray(R, 2), L = k[0], $ = k[1],
|
|
20795
|
+
}, []), R = useState$1(null), k = _slicedToArray(R, 2), L = k[0], $ = k[1], O = useCallback(function() {
|
|
20789
20796
|
if (s) {
|
|
20790
20797
|
var z = getBoundingClientObj(s), W = m === "fixed" ? 0 : window.pageYOffset, X = z[x] + W;
|
|
20791
20798
|
(X !== L?.offset || z.left !== L?.rect.left || z.width !== L?.rect.width) && $({
|
|
@@ -20795,13 +20802,13 @@ var coercePlacement = function e(t) {
|
|
|
20795
20802
|
}
|
|
20796
20803
|
}, [s, m, x, L?.offset, L?.rect.left, L?.rect.width]);
|
|
20797
20804
|
index(function() {
|
|
20798
|
-
|
|
20799
|
-
}, [
|
|
20805
|
+
O();
|
|
20806
|
+
}, [O]);
|
|
20800
20807
|
var G = useCallback(function() {
|
|
20801
|
-
typeof b.current == "function" && (b.current(), b.current = null), s && y.current && (b.current = autoUpdate(s, y.current,
|
|
20808
|
+
typeof b.current == "function" && (b.current(), b.current = null), s && y.current && (b.current = autoUpdate(s, y.current, O, {
|
|
20802
20809
|
elementResize: "ResizeObserver" in window
|
|
20803
20810
|
}));
|
|
20804
|
-
}, [s,
|
|
20811
|
+
}, [s, O]);
|
|
20805
20812
|
index(function() {
|
|
20806
20813
|
G();
|
|
20807
20814
|
}, [G]);
|
|
@@ -21387,7 +21394,7 @@ var _ref = process$1.env.NODE_ENV === "production" ? {
|
|
|
21387
21394
|
return "".concat(n).concat(r ? " for search term " + r : "", ".");
|
|
21388
21395
|
}
|
|
21389
21396
|
}, LiveRegion = function e(t) {
|
|
21390
|
-
var r = t.ariaSelection, n = t.focusedOption, s = t.focusedValue, d = t.focusableOptions, g = t.isFocused, m = t.selectValue, y = t.selectProps, b = t.id, E = t.isAppleDevice, I = y.ariaLiveMessages, x = y.getOptionLabel, S = y.inputValue, A = y.isMulti, R = y.isOptionDisabled, k = y.isSearchable, L = y.menuIsOpen, $ = y.options,
|
|
21397
|
+
var r = t.ariaSelection, n = t.focusedOption, s = t.focusedValue, d = t.focusableOptions, g = t.isFocused, m = t.selectValue, y = t.selectProps, b = t.id, E = t.isAppleDevice, I = y.ariaLiveMessages, x = y.getOptionLabel, S = y.inputValue, A = y.isMulti, R = y.isOptionDisabled, k = y.isSearchable, L = y.menuIsOpen, $ = y.options, O = y.screenReaderStatus, G = y.tabSelectsValue, q = y.isLoading, Y = y["aria-label"], z = y["aria-live"], W = useMemo$1(function() {
|
|
21391
21398
|
return _objectSpread2(_objectSpread2({}, defaultAriaLiveMessages), I || {});
|
|
21392
21399
|
}, [I]), X = useMemo$1(function() {
|
|
21393
21400
|
var K = "";
|
|
@@ -21423,7 +21430,7 @@ var _ref = process$1.env.NODE_ENV === "production" ? {
|
|
|
21423
21430
|
}, [n, s, x, R, W, d, m, E]), te = useMemo$1(function() {
|
|
21424
21431
|
var K = "";
|
|
21425
21432
|
if (L && $.length && !q && W.onFilter) {
|
|
21426
|
-
var ue =
|
|
21433
|
+
var ue = O({
|
|
21427
21434
|
count: d.length
|
|
21428
21435
|
});
|
|
21429
21436
|
K = W.onFilter({
|
|
@@ -21432,7 +21439,7 @@ var _ref = process$1.env.NODE_ENV === "production" ? {
|
|
|
21432
21439
|
});
|
|
21433
21440
|
}
|
|
21434
21441
|
return K;
|
|
21435
|
-
}, [d, S, L, W, $,
|
|
21442
|
+
}, [d, S, L, W, $, O, q]), se = r?.action === "initial-input-focus", ie = useMemo$1(function() {
|
|
21436
21443
|
var K = "";
|
|
21437
21444
|
if (W.guidance) {
|
|
21438
21445
|
var ue = s ? "value" : L ? "menu" : "input";
|
|
@@ -21777,8 +21784,8 @@ var cancelScroll = function e(t) {
|
|
|
21777
21784
|
function useScrollCapture(e) {
|
|
21778
21785
|
var t = e.isEnabled, r = e.onBottomArrive, n = e.onBottomLeave, s = e.onTopArrive, d = e.onTopLeave, g = useRef(!1), m = useRef(!1), y = useRef(0), b = useRef(null), E = useCallback(function(k, L) {
|
|
21779
21786
|
if (b.current !== null) {
|
|
21780
|
-
var $ = b.current,
|
|
21781
|
-
W > L && g.current && (n && n(k), g.current = !1), z && m.current && (d && d(k), m.current = !1), z && L > W ? (r && !g.current && r(k), Y.scrollTop = G, X = !0, g.current = !0) : !z && -L >
|
|
21787
|
+
var $ = b.current, O = $.scrollTop, G = $.scrollHeight, q = $.clientHeight, Y = b.current, z = L > 0, W = G - q - O, X = !1;
|
|
21788
|
+
W > L && g.current && (n && n(k), g.current = !1), z && m.current && (d && d(k), m.current = !1), z && L > W ? (r && !g.current && r(k), Y.scrollTop = G, X = !0, g.current = !0) : !z && -L > O && (s && !m.current && s(k), Y.scrollTop = 0, X = !0, m.current = !0), X && cancelScroll(k);
|
|
21782
21789
|
}
|
|
21783
21790
|
}, [r, n, s, d]), I = useCallback(function(k) {
|
|
21784
21791
|
E(k, k.deltaY);
|
|
@@ -22359,7 +22366,7 @@ var shouldHideSelectedOptions = function e(t) {
|
|
|
22359
22366
|
}, s.onValueInputFocus = function(y) {
|
|
22360
22367
|
y.preventDefault(), y.stopPropagation(), s.focus();
|
|
22361
22368
|
}, s.onKeyDown = function(y) {
|
|
22362
|
-
var b = s.props, E = b.isMulti, I = b.backspaceRemovesValue, x = b.escapeClearsValue, S = b.inputValue, A = b.isClearable, R = b.isDisabled, k = b.menuIsOpen, L = b.onKeyDown, $ = b.tabSelectsValue,
|
|
22369
|
+
var b = s.props, E = b.isMulti, I = b.backspaceRemovesValue, x = b.escapeClearsValue, S = b.inputValue, A = b.isClearable, R = b.isDisabled, k = b.menuIsOpen, L = b.onKeyDown, $ = b.tabSelectsValue, O = b.openMenuOnFocus, G = s.state, q = G.focusedOption, Y = G.focusedValue, z = G.selectValue;
|
|
22363
22370
|
if (!R && !(typeof L == "function" && (L(y), y.defaultPrevented))) {
|
|
22364
22371
|
switch (s.blockOptionHover = !0, y.key) {
|
|
22365
22372
|
case "ArrowLeft":
|
|
@@ -22383,7 +22390,7 @@ var shouldHideSelectedOptions = function e(t) {
|
|
|
22383
22390
|
case "Tab":
|
|
22384
22391
|
if (s.isComposing || y.shiftKey || !k || !$ || !q || // don't capture the event if the menu opens on focus and the focused
|
|
22385
22392
|
// option is already selected; it breaks the flow of navigation
|
|
22386
|
-
|
|
22393
|
+
O && s.isOptionSelected(q, z))
|
|
22387
22394
|
return;
|
|
22388
22395
|
s.selectOption(q);
|
|
22389
22396
|
break;
|
|
@@ -22683,7 +22690,7 @@ var shouldHideSelectedOptions = function e(t) {
|
|
|
22683
22690
|
// Renderers
|
|
22684
22691
|
// ==============================
|
|
22685
22692
|
function() {
|
|
22686
|
-
var s = this.props, d = s.isDisabled, g = s.isSearchable, m = s.inputId, y = s.inputValue, b = s.tabIndex, E = s.form, I = s.menuIsOpen, x = s.required, S = this.getComponents(), A = S.Input, R = this.state, k = R.inputIsHidden, L = R.ariaSelection, $ = this.commonProps,
|
|
22693
|
+
var s = this.props, d = s.isDisabled, g = s.isSearchable, m = s.inputId, y = s.inputValue, b = s.tabIndex, E = s.form, I = s.menuIsOpen, x = s.required, S = this.getComponents(), A = S.Input, R = this.state, k = R.inputIsHidden, L = R.ariaSelection, $ = this.commonProps, O = m || this.getElementId("input"), G = _objectSpread2(_objectSpread2(_objectSpread2({
|
|
22687
22694
|
"aria-autocomplete": "list",
|
|
22688
22695
|
"aria-expanded": I,
|
|
22689
22696
|
"aria-haspopup": !0,
|
|
@@ -22707,7 +22714,7 @@ var shouldHideSelectedOptions = function e(t) {
|
|
|
22707
22714
|
autoCapitalize: "none",
|
|
22708
22715
|
autoComplete: "off",
|
|
22709
22716
|
autoCorrect: "off",
|
|
22710
|
-
id:
|
|
22717
|
+
id: O,
|
|
22711
22718
|
innerRef: this.getInputRef,
|
|
22712
22719
|
isDisabled: d,
|
|
22713
22720
|
isHidden: k,
|
|
@@ -22720,7 +22727,7 @@ var shouldHideSelectedOptions = function e(t) {
|
|
|
22720
22727
|
type: "text",
|
|
22721
22728
|
value: y
|
|
22722
22729
|
}, G)) : /* @__PURE__ */ React.createElement(DummyInput, _extends({
|
|
22723
|
-
id:
|
|
22730
|
+
id: O,
|
|
22724
22731
|
innerRef: this.getInputRef,
|
|
22725
22732
|
onBlur: this.onInputBlur,
|
|
22726
22733
|
onChange: noop,
|
|
@@ -22736,7 +22743,7 @@ var shouldHideSelectedOptions = function e(t) {
|
|
|
22736
22743
|
}, {
|
|
22737
22744
|
key: "renderPlaceholderOrValue",
|
|
22738
22745
|
value: function() {
|
|
22739
|
-
var s = this, d = this.getComponents(), g = d.MultiValue, m = d.MultiValueContainer, y = d.MultiValueLabel, b = d.MultiValueRemove, E = d.SingleValue, I = d.Placeholder, x = this.commonProps, S = this.props, A = S.controlShouldRenderValue, R = S.isDisabled, k = S.isMulti, L = S.inputValue, $ = S.placeholder,
|
|
22746
|
+
var s = this, d = this.getComponents(), g = d.MultiValue, m = d.MultiValueContainer, y = d.MultiValueLabel, b = d.MultiValueRemove, E = d.SingleValue, I = d.Placeholder, x = this.commonProps, S = this.props, A = S.controlShouldRenderValue, R = S.isDisabled, k = S.isMulti, L = S.inputValue, $ = S.placeholder, O = this.state, G = O.selectValue, q = O.focusedValue, Y = O.isFocused;
|
|
22740
22747
|
if (!this.hasValue() || !A)
|
|
22741
22748
|
return L ? null : /* @__PURE__ */ React.createElement(I, _extends({}, x, {
|
|
22742
22749
|
key: "placeholder",
|
|
@@ -22841,7 +22848,7 @@ var shouldHideSelectedOptions = function e(t) {
|
|
|
22841
22848
|
}, {
|
|
22842
22849
|
key: "renderMenu",
|
|
22843
22850
|
value: function() {
|
|
22844
|
-
var s = this, d = this.getComponents(), g = d.Group, m = d.GroupHeading, y = d.Menu, b = d.MenuList, E = d.MenuPortal, I = d.LoadingMessage, x = d.NoOptionsMessage, S = d.Option, A = this.commonProps, R = this.state.focusedOption, k = this.props, L = k.captureMenuScroll, $ = k.inputValue,
|
|
22851
|
+
var s = this, d = this.getComponents(), g = d.Group, m = d.GroupHeading, y = d.Menu, b = d.MenuList, E = d.MenuPortal, I = d.LoadingMessage, x = d.NoOptionsMessage, S = d.Option, A = this.commonProps, R = this.state.focusedOption, k = this.props, L = k.captureMenuScroll, $ = k.inputValue, O = k.isLoading, G = k.loadingMessage, q = k.minMenuHeight, Y = k.maxMenuHeight, z = k.menuIsOpen, W = k.menuPlacement, X = k.menuPosition, ee = k.menuPortalTarget, te = k.menuShouldBlockScroll, se = k.menuShouldScrollIntoView, ie = k.noOptionsMessage, oe = k.onMenuScrollToTop, K = k.onMenuScrollToBottom;
|
|
22845
22852
|
if (!z) return null;
|
|
22846
22853
|
var ue = function(_e, ve) {
|
|
22847
22854
|
var Te = _e.type, be = _e.data, Oe = _e.isDisabled, Q = _e.isSelected, Me = _e.label, me = _e.value, fe = R === be, V = Oe ? void 0 : function() {
|
|
@@ -22891,7 +22898,7 @@ var shouldHideSelectedOptions = function e(t) {
|
|
|
22891
22898
|
} else if (Se.type === "option")
|
|
22892
22899
|
return ue(Se, "".concat(Se.index));
|
|
22893
22900
|
});
|
|
22894
|
-
else if (
|
|
22901
|
+
else if (O) {
|
|
22895
22902
|
var Ce = G({
|
|
22896
22903
|
inputValue: $
|
|
22897
22904
|
});
|
|
@@ -22918,7 +22925,7 @@ var shouldHideSelectedOptions = function e(t) {
|
|
|
22918
22925
|
onMouseDown: s.onMenuMouseDown,
|
|
22919
22926
|
onMouseMove: s.onMenuMouseMove
|
|
22920
22927
|
},
|
|
22921
|
-
isLoading:
|
|
22928
|
+
isLoading: O,
|
|
22922
22929
|
placement: Te
|
|
22923
22930
|
}), /* @__PURE__ */ React.createElement(ScrollManager, {
|
|
22924
22931
|
captureEnabled: L,
|
|
@@ -22935,7 +22942,7 @@ var shouldHideSelectedOptions = function e(t) {
|
|
|
22935
22942
|
"aria-multiselectable": A.isMulti,
|
|
22936
22943
|
id: s.getElementId("listbox")
|
|
22937
22944
|
},
|
|
22938
|
-
isLoading:
|
|
22945
|
+
isLoading: O,
|
|
22939
22946
|
maxHeight: be,
|
|
22940
22947
|
focusedOption: R
|
|
22941
22948
|
}), pe);
|
|
@@ -23037,10 +23044,10 @@ var shouldHideSelectedOptions = function e(t) {
|
|
|
23037
23044
|
}], [{
|
|
23038
23045
|
key: "getDerivedStateFromProps",
|
|
23039
23046
|
value: function(s, d) {
|
|
23040
|
-
var g = d.prevProps, m = d.clearFocusValueOnUpdate, y = d.inputIsHiddenAfterUpdate, b = d.ariaSelection, E = d.isFocused, I = d.prevWasFocused, x = d.instancePrefix, S = s.options, A = s.value, R = s.menuIsOpen, k = s.inputValue, L = s.isMulti, $ = cleanValue(A),
|
|
23047
|
+
var g = d.prevProps, m = d.clearFocusValueOnUpdate, y = d.inputIsHiddenAfterUpdate, b = d.ariaSelection, E = d.isFocused, I = d.prevWasFocused, x = d.instancePrefix, S = s.options, A = s.value, R = s.menuIsOpen, k = s.inputValue, L = s.isMulti, $ = cleanValue(A), O = {};
|
|
23041
23048
|
if (g && (A !== g.value || S !== g.options || R !== g.menuIsOpen || k !== g.inputValue)) {
|
|
23042
23049
|
var G = R ? buildFocusableOptions(s, $) : [], q = R ? buildFocusableOptionsWithIds(buildCategorizedOptions(s, $), "".concat(x, "-option")) : [], Y = m ? getNextFocusedValue(d, $) : null, z = getNextFocusedOption(d, G), W = getFocusedOptionId(q, z);
|
|
23043
|
-
|
|
23050
|
+
O = {
|
|
23044
23051
|
selectValue: $,
|
|
23045
23052
|
focusedOption: z,
|
|
23046
23053
|
focusedOptionId: W,
|
|
@@ -23057,7 +23064,7 @@ var shouldHideSelectedOptions = function e(t) {
|
|
|
23057
23064
|
value: valueTernary(L, $, $[0] || null),
|
|
23058
23065
|
options: $,
|
|
23059
23066
|
action: "initial-input-focus"
|
|
23060
|
-
}, te = !I), b?.action === "initial-input-focus" && (ee = null), _objectSpread2(_objectSpread2(_objectSpread2({},
|
|
23067
|
+
}, te = !I), b?.action === "initial-input-focus" && (ee = null), _objectSpread2(_objectSpread2(_objectSpread2({}, O), X), {}, {
|
|
23061
23068
|
prevProps: s,
|
|
23062
23069
|
ariaSelection: ee,
|
|
23063
23070
|
prevWasFocused: te
|
|
@@ -24574,14 +24581,14 @@ const DrawButton$1 = connect(
|
|
|
24574
24581
|
return {
|
|
24575
24582
|
name: r.name,
|
|
24576
24583
|
getReducer() {
|
|
24577
|
-
const
|
|
24584
|
+
const O = {
|
|
24578
24585
|
active: r.active,
|
|
24579
24586
|
visible: r.visible,
|
|
24580
24587
|
layer: null,
|
|
24581
24588
|
drawInteraction: null,
|
|
24582
24589
|
shouldInitialize: !1
|
|
24583
24590
|
};
|
|
24584
|
-
return (G =
|
|
24591
|
+
return (G = O, { type: q, payload: Y }) => {
|
|
24585
24592
|
switch (q) {
|
|
24586
24593
|
case d.INITIALIZE_START:
|
|
24587
24594
|
case d.INITIALIZE_FINISH:
|
|
@@ -24599,8 +24606,8 @@ const DrawButton$1 = connect(
|
|
|
24599
24606
|
}
|
|
24600
24607
|
};
|
|
24601
24608
|
},
|
|
24602
|
-
[g]: () => ({ dispatch:
|
|
24603
|
-
|
|
24609
|
+
[g]: () => ({ dispatch: O, store: G }) => {
|
|
24610
|
+
O({
|
|
24604
24611
|
type: d.INITIALIZE_START,
|
|
24605
24612
|
payload: {
|
|
24606
24613
|
shouldInitialize: !1
|
|
@@ -24623,7 +24630,7 @@ const DrawButton$1 = connect(
|
|
|
24623
24630
|
source: z,
|
|
24624
24631
|
type: r.type
|
|
24625
24632
|
});
|
|
24626
|
-
r.visible && G.selectMap().addLayer(W),
|
|
24633
|
+
r.visible && G.selectMap().addLayer(W), O({
|
|
24627
24634
|
type: d.INITIALIZE_FINISH,
|
|
24628
24635
|
payload: {
|
|
24629
24636
|
layer: W,
|
|
@@ -24631,61 +24638,61 @@ const DrawButton$1 = connect(
|
|
|
24631
24638
|
}
|
|
24632
24639
|
});
|
|
24633
24640
|
},
|
|
24634
|
-
[m]: () => ({ dispatch:
|
|
24641
|
+
[m]: () => ({ dispatch: O, store: G }) => {
|
|
24635
24642
|
const q = G.selectMap(), Y = G[S]();
|
|
24636
|
-
q.addLayer(Y),
|
|
24643
|
+
q.addLayer(Y), O({
|
|
24637
24644
|
type: d.SHOW,
|
|
24638
24645
|
payload: {
|
|
24639
24646
|
visible: !0
|
|
24640
24647
|
}
|
|
24641
24648
|
});
|
|
24642
24649
|
},
|
|
24643
|
-
[y]: () => ({ dispatch:
|
|
24650
|
+
[y]: () => ({ dispatch: O, store: G }) => {
|
|
24644
24651
|
const q = G.selectMap(), Y = G[S]();
|
|
24645
|
-
q.removeLayer(Y),
|
|
24652
|
+
q.removeLayer(Y), O({
|
|
24646
24653
|
type: d.HIDE,
|
|
24647
24654
|
payload: {
|
|
24648
24655
|
visible: !1
|
|
24649
24656
|
}
|
|
24650
24657
|
});
|
|
24651
24658
|
},
|
|
24652
|
-
[I]: () => ({ dispatch:
|
|
24659
|
+
[I]: () => ({ dispatch: O, store: G }) => {
|
|
24653
24660
|
G[L]() ? G[y]() : G[m]();
|
|
24654
24661
|
},
|
|
24655
|
-
[b]: () => ({ dispatch:
|
|
24662
|
+
[b]: () => ({ dispatch: O, store: G }) => {
|
|
24656
24663
|
G.doSetCursor("crosshair");
|
|
24657
24664
|
const q = G.selectMap();
|
|
24658
24665
|
G[R]().forEach((z) => {
|
|
24659
24666
|
q.addInteraction(z);
|
|
24660
|
-
}),
|
|
24667
|
+
}), O({
|
|
24661
24668
|
type: d.ACTIVATE,
|
|
24662
24669
|
payload: {
|
|
24663
24670
|
active: !0
|
|
24664
24671
|
}
|
|
24665
24672
|
});
|
|
24666
24673
|
},
|
|
24667
|
-
[E]: () => ({ dispatch:
|
|
24674
|
+
[E]: () => ({ dispatch: O, store: G }) => {
|
|
24668
24675
|
G.doSetCursor();
|
|
24669
24676
|
const q = G.selectMap();
|
|
24670
24677
|
G[R]().forEach((z) => {
|
|
24671
24678
|
q.removeInteraction(z);
|
|
24672
|
-
}),
|
|
24679
|
+
}), O({
|
|
24673
24680
|
type: d.DEACTIVATE,
|
|
24674
24681
|
payload: {
|
|
24675
24682
|
active: !1
|
|
24676
24683
|
}
|
|
24677
24684
|
});
|
|
24678
24685
|
},
|
|
24679
|
-
[x]: () => ({ store:
|
|
24680
|
-
|
|
24686
|
+
[x]: () => ({ store: O }) => {
|
|
24687
|
+
O.selectActive() ? O[E]() : O[b]();
|
|
24681
24688
|
},
|
|
24682
|
-
[k]: (
|
|
24683
|
-
[L]: (
|
|
24684
|
-
[S]: (
|
|
24685
|
-
[A]: (
|
|
24686
|
-
[R]: createSelector(A, (
|
|
24687
|
-
[$]: (
|
|
24688
|
-
if (
|
|
24689
|
+
[k]: (O) => O[r.name].active,
|
|
24690
|
+
[L]: (O) => O[r.name].visible,
|
|
24691
|
+
[S]: (O) => O[r.name].layer,
|
|
24692
|
+
[A]: (O) => O[r.name].drawInteraction,
|
|
24693
|
+
[R]: createSelector(A, (O) => [O]),
|
|
24694
|
+
[$]: (O) => {
|
|
24695
|
+
if (O[r.name].shouldInitialize)
|
|
24689
24696
|
return { actionCreator: g };
|
|
24690
24697
|
}
|
|
24691
24698
|
};
|
|
@@ -24931,8 +24938,8 @@ function requireFileSaver_min() {
|
|
|
24931
24938
|
if ((R || S && A || m) && typeof FileReader < "u") {
|
|
24932
24939
|
var k = new FileReader();
|
|
24933
24940
|
k.onloadend = function() {
|
|
24934
|
-
var
|
|
24935
|
-
|
|
24941
|
+
var O = k.result;
|
|
24942
|
+
O = R ? O : O.replace(/^data:[^;]*;/, "data:attachment/file;"), x ? x.location.href = O : location = O, x = null;
|
|
24936
24943
|
}, k.readAsDataURL(b);
|
|
24937
24944
|
} else {
|
|
24938
24945
|
var L = g.URL || g.webkitURL, $ = L.createObjectURL(b);
|
|
@@ -25370,16 +25377,16 @@ function vec$1(e) {
|
|
|
25370
25377
|
}
|
|
25371
25378
|
const ccwerrboundA$1 = (3 + 16 * epsilon$1) * epsilon$1, ccwerrboundB$1 = (2 + 12 * epsilon$1) * epsilon$1, ccwerrboundC$1 = (9 + 64 * epsilon$1) * epsilon$1 * epsilon$1, B$1 = vec$1(4), C1$1 = vec$1(8), C2$1 = vec$1(12), D$1 = vec$1(16), u$1 = vec$1(4);
|
|
25372
25379
|
function orient2dadapt$1(e, t, r, n, s, d, g) {
|
|
25373
|
-
let m, y, b, E, I, x, S, A, R, k, L, $,
|
|
25380
|
+
let m, y, b, E, I, x, S, A, R, k, L, $, O, G, q, Y, z, W;
|
|
25374
25381
|
const X = e - s, ee = r - s, te = t - d, se = n - d;
|
|
25375
|
-
G = X * se, x = splitter$1 * X, S = x - (x - X), A = X - S, x = splitter$1 * se, R = x - (x - se), k = se - R, q = A * k - (G - S * R - A * R - S * k), Y = te * ee, x = splitter$1 * te, S = x - (x - te), A = te - S, x = splitter$1 * ee, R = x - (x - ee), k = ee - R, z = A * k - (Y - S * R - A * R - S * k), L = q - z, I = q - L, B$1[0] = q - (L + I) + (I - z), $ = G + L, I = $ - G,
|
|
25382
|
+
G = X * se, x = splitter$1 * X, S = x - (x - X), A = X - S, x = splitter$1 * se, R = x - (x - se), k = se - R, q = A * k - (G - S * R - A * R - S * k), Y = te * ee, x = splitter$1 * te, S = x - (x - te), A = te - S, x = splitter$1 * ee, R = x - (x - ee), k = ee - R, z = A * k - (Y - S * R - A * R - S * k), L = q - z, I = q - L, B$1[0] = q - (L + I) + (I - z), $ = G + L, I = $ - G, O = G - ($ - I) + (L - I), L = O - Y, I = O - L, B$1[1] = O - (L + I) + (I - Y), W = $ + L, I = W - $, B$1[2] = $ - (W - I) + (L - I), B$1[3] = W;
|
|
25376
25383
|
let ie = estimate$1(4, B$1), oe = ccwerrboundB$1 * g;
|
|
25377
25384
|
if (ie >= oe || -ie >= oe || (I = e - X, m = e - (X + I) + (I - s), I = r - ee, b = r - (ee + I) + (I - s), I = t - te, y = t - (te + I) + (I - d), I = n - se, E = n - (se + I) + (I - d), m === 0 && y === 0 && b === 0 && E === 0) || (oe = ccwerrboundC$1 * g + resulterrbound$1 * Math.abs(ie), ie += X * E + se * m - (te * b + ee * y), ie >= oe || -ie >= oe)) return ie;
|
|
25378
|
-
G = m * se, x = splitter$1 * m, S = x - (x - m), A = m - S, x = splitter$1 * se, R = x - (x - se), k = se - R, q = A * k - (G - S * R - A * R - S * k), Y = y * ee, x = splitter$1 * y, S = x - (x - y), A = y - S, x = splitter$1 * ee, R = x - (x - ee), k = ee - R, z = A * k - (Y - S * R - A * R - S * k), L = q - z, I = q - L, u$1[0] = q - (L + I) + (I - z), $ = G + L, I = $ - G,
|
|
25385
|
+
G = m * se, x = splitter$1 * m, S = x - (x - m), A = m - S, x = splitter$1 * se, R = x - (x - se), k = se - R, q = A * k - (G - S * R - A * R - S * k), Y = y * ee, x = splitter$1 * y, S = x - (x - y), A = y - S, x = splitter$1 * ee, R = x - (x - ee), k = ee - R, z = A * k - (Y - S * R - A * R - S * k), L = q - z, I = q - L, u$1[0] = q - (L + I) + (I - z), $ = G + L, I = $ - G, O = G - ($ - I) + (L - I), L = O - Y, I = O - L, u$1[1] = O - (L + I) + (I - Y), W = $ + L, I = W - $, u$1[2] = $ - (W - I) + (L - I), u$1[3] = W;
|
|
25379
25386
|
const K = sum$2(4, B$1, 4, u$1, C1$1);
|
|
25380
|
-
G = X * E, x = splitter$1 * X, S = x - (x - X), A = X - S, x = splitter$1 * E, R = x - (x - E), k = E - R, q = A * k - (G - S * R - A * R - S * k), Y = te * b, x = splitter$1 * te, S = x - (x - te), A = te - S, x = splitter$1 * b, R = x - (x - b), k = b - R, z = A * k - (Y - S * R - A * R - S * k), L = q - z, I = q - L, u$1[0] = q - (L + I) + (I - z), $ = G + L, I = $ - G,
|
|
25387
|
+
G = X * E, x = splitter$1 * X, S = x - (x - X), A = X - S, x = splitter$1 * E, R = x - (x - E), k = E - R, q = A * k - (G - S * R - A * R - S * k), Y = te * b, x = splitter$1 * te, S = x - (x - te), A = te - S, x = splitter$1 * b, R = x - (x - b), k = b - R, z = A * k - (Y - S * R - A * R - S * k), L = q - z, I = q - L, u$1[0] = q - (L + I) + (I - z), $ = G + L, I = $ - G, O = G - ($ - I) + (L - I), L = O - Y, I = O - L, u$1[1] = O - (L + I) + (I - Y), W = $ + L, I = W - $, u$1[2] = $ - (W - I) + (L - I), u$1[3] = W;
|
|
25381
25388
|
const ue = sum$2(K, C1$1, 4, u$1, C2$1);
|
|
25382
|
-
G = m * E, x = splitter$1 * m, S = x - (x - m), A = m - S, x = splitter$1 * E, R = x - (x - E), k = E - R, q = A * k - (G - S * R - A * R - S * k), Y = y * b, x = splitter$1 * y, S = x - (x - y), A = y - S, x = splitter$1 * b, R = x - (x - b), k = b - R, z = A * k - (Y - S * R - A * R - S * k), L = q - z, I = q - L, u$1[0] = q - (L + I) + (I - z), $ = G + L, I = $ - G,
|
|
25389
|
+
G = m * E, x = splitter$1 * m, S = x - (x - m), A = m - S, x = splitter$1 * E, R = x - (x - E), k = E - R, q = A * k - (G - S * R - A * R - S * k), Y = y * b, x = splitter$1 * y, S = x - (x - y), A = y - S, x = splitter$1 * b, R = x - (x - b), k = b - R, z = A * k - (Y - S * R - A * R - S * k), L = q - z, I = q - L, u$1[0] = q - (L + I) + (I - z), $ = G + L, I = $ - G, O = G - ($ - I) + (L - I), L = O - Y, I = O - L, u$1[1] = O - (L + I) + (I - Y), W = $ + L, I = W - $, u$1[2] = $ - (W - I) + (L - I), u$1[3] = W;
|
|
25383
25390
|
const pe = sum$2(ue, C2$1, 4, u$1, D$1);
|
|
25384
25391
|
return D$1[pe - 1];
|
|
25385
25392
|
}
|
|
@@ -25602,16 +25609,16 @@ function vec(e) {
|
|
|
25602
25609
|
}
|
|
25603
25610
|
const ccwerrboundA = (3 + 16 * epsilon) * epsilon, ccwerrboundB = (2 + 12 * epsilon) * epsilon, ccwerrboundC = (9 + 64 * epsilon) * epsilon * epsilon, B = vec(4), C1 = vec(8), C2 = vec(12), D = vec(16), u = vec(4);
|
|
25604
25611
|
function orient2dadapt(e, t, r, n, s, d, g) {
|
|
25605
|
-
let m, y, b, E, I, x, S, A, R, k, L, $,
|
|
25612
|
+
let m, y, b, E, I, x, S, A, R, k, L, $, O, G, q, Y, z, W;
|
|
25606
25613
|
const X = e - s, ee = r - s, te = t - d, se = n - d;
|
|
25607
|
-
G = X * se, x = splitter * X, S = x - (x - X), A = X - S, x = splitter * se, R = x - (x - se), k = se - R, q = A * k - (G - S * R - A * R - S * k), Y = te * ee, x = splitter * te, S = x - (x - te), A = te - S, x = splitter * ee, R = x - (x - ee), k = ee - R, z = A * k - (Y - S * R - A * R - S * k), L = q - z, I = q - L, B[0] = q - (L + I) + (I - z), $ = G + L, I = $ - G,
|
|
25614
|
+
G = X * se, x = splitter * X, S = x - (x - X), A = X - S, x = splitter * se, R = x - (x - se), k = se - R, q = A * k - (G - S * R - A * R - S * k), Y = te * ee, x = splitter * te, S = x - (x - te), A = te - S, x = splitter * ee, R = x - (x - ee), k = ee - R, z = A * k - (Y - S * R - A * R - S * k), L = q - z, I = q - L, B[0] = q - (L + I) + (I - z), $ = G + L, I = $ - G, O = G - ($ - I) + (L - I), L = O - Y, I = O - L, B[1] = O - (L + I) + (I - Y), W = $ + L, I = W - $, B[2] = $ - (W - I) + (L - I), B[3] = W;
|
|
25608
25615
|
let ie = estimate(4, B), oe = ccwerrboundB * g;
|
|
25609
25616
|
if (ie >= oe || -ie >= oe || (I = e - X, m = e - (X + I) + (I - s), I = r - ee, b = r - (ee + I) + (I - s), I = t - te, y = t - (te + I) + (I - d), I = n - se, E = n - (se + I) + (I - d), m === 0 && y === 0 && b === 0 && E === 0) || (oe = ccwerrboundC * g + resulterrbound * Math.abs(ie), ie += X * E + se * m - (te * b + ee * y), ie >= oe || -ie >= oe)) return ie;
|
|
25610
|
-
G = m * se, x = splitter * m, S = x - (x - m), A = m - S, x = splitter * se, R = x - (x - se), k = se - R, q = A * k - (G - S * R - A * R - S * k), Y = y * ee, x = splitter * y, S = x - (x - y), A = y - S, x = splitter * ee, R = x - (x - ee), k = ee - R, z = A * k - (Y - S * R - A * R - S * k), L = q - z, I = q - L, u[0] = q - (L + I) + (I - z), $ = G + L, I = $ - G,
|
|
25617
|
+
G = m * se, x = splitter * m, S = x - (x - m), A = m - S, x = splitter * se, R = x - (x - se), k = se - R, q = A * k - (G - S * R - A * R - S * k), Y = y * ee, x = splitter * y, S = x - (x - y), A = y - S, x = splitter * ee, R = x - (x - ee), k = ee - R, z = A * k - (Y - S * R - A * R - S * k), L = q - z, I = q - L, u[0] = q - (L + I) + (I - z), $ = G + L, I = $ - G, O = G - ($ - I) + (L - I), L = O - Y, I = O - L, u[1] = O - (L + I) + (I - Y), W = $ + L, I = W - $, u[2] = $ - (W - I) + (L - I), u[3] = W;
|
|
25611
25618
|
const K = sum$1(4, B, 4, u, C1);
|
|
25612
|
-
G = X * E, x = splitter * X, S = x - (x - X), A = X - S, x = splitter * E, R = x - (x - E), k = E - R, q = A * k - (G - S * R - A * R - S * k), Y = te * b, x = splitter * te, S = x - (x - te), A = te - S, x = splitter * b, R = x - (x - b), k = b - R, z = A * k - (Y - S * R - A * R - S * k), L = q - z, I = q - L, u[0] = q - (L + I) + (I - z), $ = G + L, I = $ - G,
|
|
25619
|
+
G = X * E, x = splitter * X, S = x - (x - X), A = X - S, x = splitter * E, R = x - (x - E), k = E - R, q = A * k - (G - S * R - A * R - S * k), Y = te * b, x = splitter * te, S = x - (x - te), A = te - S, x = splitter * b, R = x - (x - b), k = b - R, z = A * k - (Y - S * R - A * R - S * k), L = q - z, I = q - L, u[0] = q - (L + I) + (I - z), $ = G + L, I = $ - G, O = G - ($ - I) + (L - I), L = O - Y, I = O - L, u[1] = O - (L + I) + (I - Y), W = $ + L, I = W - $, u[2] = $ - (W - I) + (L - I), u[3] = W;
|
|
25613
25620
|
const ue = sum$1(K, C1, 4, u, C2);
|
|
25614
|
-
G = m * E, x = splitter * m, S = x - (x - m), A = m - S, x = splitter * E, R = x - (x - E), k = E - R, q = A * k - (G - S * R - A * R - S * k), Y = y * b, x = splitter * y, S = x - (x - y), A = y - S, x = splitter * b, R = x - (x - b), k = b - R, z = A * k - (Y - S * R - A * R - S * k), L = q - z, I = q - L, u[0] = q - (L + I) + (I - z), $ = G + L, I = $ - G,
|
|
25621
|
+
G = m * E, x = splitter * m, S = x - (x - m), A = m - S, x = splitter * E, R = x - (x - E), k = E - R, q = A * k - (G - S * R - A * R - S * k), Y = y * b, x = splitter * y, S = x - (x - y), A = y - S, x = splitter * b, R = x - (x - b), k = b - R, z = A * k - (Y - S * R - A * R - S * k), L = q - z, I = q - L, u[0] = q - (L + I) + (I - z), $ = G + L, I = $ - G, O = G - ($ - I) + (L - I), L = O - Y, I = O - L, u[1] = O - (L + I) + (I - Y), W = $ + L, I = W - $, u[2] = $ - (W - I) + (L - I), u[3] = W;
|
|
25615
25622
|
const pe = sum$1(ue, C2, 4, u, D);
|
|
25616
25623
|
return D[pe - 1];
|
|
25617
25624
|
}
|
|
@@ -26303,9 +26310,9 @@ var _unicodeToArray, hasRequired_unicodeToArray;
|
|
|
26303
26310
|
function require_unicodeToArray() {
|
|
26304
26311
|
if (hasRequired_unicodeToArray) return _unicodeToArray;
|
|
26305
26312
|
hasRequired_unicodeToArray = 1;
|
|
26306
|
-
var e = "\\ud800-\\udfff", t = "\\u0300-\\u036f", r = "\\ufe20-\\ufe2f", n = "\\u20d0-\\u20ff", s = t + r + n, d = "\\ufe0e\\ufe0f", g = "[" + e + "]", m = "[" + s + "]", y = "\\ud83c[\\udffb-\\udfff]", b = "(?:" + m + "|" + y + ")", E = "[^" + e + "]", I = "(?:\\ud83c[\\udde6-\\uddff]){2}", x = "[\\ud800-\\udbff][\\udc00-\\udfff]", S = "\\u200d", A = b + "?", R = "[" + d + "]?", k = "(?:" + S + "(?:" + [E, I, x].join("|") + ")" + R + A + ")*", L = R + A + k, $ = "(?:" + [E + m + "?", m, I, x, g].join("|") + ")",
|
|
26313
|
+
var e = "\\ud800-\\udfff", t = "\\u0300-\\u036f", r = "\\ufe20-\\ufe2f", n = "\\u20d0-\\u20ff", s = t + r + n, d = "\\ufe0e\\ufe0f", g = "[" + e + "]", m = "[" + s + "]", y = "\\ud83c[\\udffb-\\udfff]", b = "(?:" + m + "|" + y + ")", E = "[^" + e + "]", I = "(?:\\ud83c[\\udde6-\\uddff]){2}", x = "[\\ud800-\\udbff][\\udc00-\\udfff]", S = "\\u200d", A = b + "?", R = "[" + d + "]?", k = "(?:" + S + "(?:" + [E, I, x].join("|") + ")" + R + A + ")*", L = R + A + k, $ = "(?:" + [E + m + "?", m, I, x, g].join("|") + ")", O = RegExp(y + "(?=" + y + ")|" + $ + L, "g");
|
|
26307
26314
|
function G(q) {
|
|
26308
|
-
return q.match(
|
|
26315
|
+
return q.match(O) || [];
|
|
26309
26316
|
}
|
|
26310
26317
|
return _unicodeToArray = G, _unicodeToArray;
|
|
26311
26318
|
}
|
|
@@ -27261,7 +27268,7 @@ function require_equalArrays() {
|
|
|
27261
27268
|
var R = I.get(g), k = I.get(m);
|
|
27262
27269
|
if (R && k)
|
|
27263
27270
|
return R == m && k == g;
|
|
27264
|
-
var L = -1, $ = !0,
|
|
27271
|
+
var L = -1, $ = !0, O = y & s ? new e() : void 0;
|
|
27265
27272
|
for (I.set(g, m), I.set(m, g); ++L < S; ) {
|
|
27266
27273
|
var G = g[L], q = m[L];
|
|
27267
27274
|
if (b)
|
|
@@ -27272,10 +27279,10 @@ function require_equalArrays() {
|
|
|
27272
27279
|
$ = !1;
|
|
27273
27280
|
break;
|
|
27274
27281
|
}
|
|
27275
|
-
if (
|
|
27282
|
+
if (O) {
|
|
27276
27283
|
if (!t(m, function(z, W) {
|
|
27277
|
-
if (!r(
|
|
27278
|
-
return
|
|
27284
|
+
if (!r(O, W) && (G === z || E(G, z, y, b, I)))
|
|
27285
|
+
return O.push(W);
|
|
27279
27286
|
})) {
|
|
27280
27287
|
$ = !1;
|
|
27281
27288
|
break;
|
|
@@ -27324,7 +27331,7 @@ var _equalByTag, hasRequired_equalByTag;
|
|
|
27324
27331
|
function require_equalByTag() {
|
|
27325
27332
|
if (hasRequired_equalByTag) return _equalByTag;
|
|
27326
27333
|
hasRequired_equalByTag = 1;
|
|
27327
|
-
var e = require_Symbol(), t = require_Uint8Array(), r = requireEq(), n = require_equalArrays(), s = require_mapToArray(), d = require_setToArray(), g = 1, m = 2, y = "[object Boolean]", b = "[object Date]", E = "[object Error]", I = "[object Map]", x = "[object Number]", S = "[object RegExp]", A = "[object Set]", R = "[object String]", k = "[object Symbol]", L = "[object ArrayBuffer]", $ = "[object DataView]",
|
|
27334
|
+
var e = require_Symbol(), t = require_Uint8Array(), r = requireEq(), n = require_equalArrays(), s = require_mapToArray(), d = require_setToArray(), g = 1, m = 2, y = "[object Boolean]", b = "[object Date]", E = "[object Error]", I = "[object Map]", x = "[object Number]", S = "[object RegExp]", A = "[object Set]", R = "[object String]", k = "[object Symbol]", L = "[object ArrayBuffer]", $ = "[object DataView]", O = e ? e.prototype : void 0, G = O ? O.valueOf : void 0;
|
|
27328
27335
|
function q(Y, z, W, X, ee, te, se) {
|
|
27329
27336
|
switch (W) {
|
|
27330
27337
|
case $:
|
|
@@ -27459,8 +27466,8 @@ var _baseIsTypedArray, hasRequired_baseIsTypedArray;
|
|
|
27459
27466
|
function require_baseIsTypedArray() {
|
|
27460
27467
|
if (hasRequired_baseIsTypedArray) return _baseIsTypedArray;
|
|
27461
27468
|
hasRequired_baseIsTypedArray = 1;
|
|
27462
|
-
var e = require_baseGetTag(), t = requireIsLength(), r = requireIsObjectLike(), n = "[object Arguments]", s = "[object Array]", d = "[object Boolean]", g = "[object Date]", m = "[object Error]", y = "[object Function]", b = "[object Map]", E = "[object Number]", I = "[object Object]", x = "[object RegExp]", S = "[object Set]", A = "[object String]", R = "[object WeakMap]", k = "[object ArrayBuffer]", L = "[object DataView]", $ = "[object Float32Array]",
|
|
27463
|
-
te[$] = te[
|
|
27469
|
+
var e = require_baseGetTag(), t = requireIsLength(), r = requireIsObjectLike(), n = "[object Arguments]", s = "[object Array]", d = "[object Boolean]", g = "[object Date]", m = "[object Error]", y = "[object Function]", b = "[object Map]", E = "[object Number]", I = "[object Object]", x = "[object RegExp]", S = "[object Set]", A = "[object String]", R = "[object WeakMap]", k = "[object ArrayBuffer]", L = "[object DataView]", $ = "[object Float32Array]", O = "[object Float64Array]", G = "[object Int8Array]", q = "[object Int16Array]", Y = "[object Int32Array]", z = "[object Uint8Array]", W = "[object Uint8ClampedArray]", X = "[object Uint16Array]", ee = "[object Uint32Array]", te = {};
|
|
27470
|
+
te[$] = te[O] = te[G] = te[q] = te[Y] = te[z] = te[W] = te[X] = te[ee] = !0, te[n] = te[s] = te[k] = te[d] = te[L] = te[g] = te[m] = te[y] = te[b] = te[E] = te[I] = te[x] = te[S] = te[A] = te[R] = !1;
|
|
27464
27471
|
function se(ie) {
|
|
27465
27472
|
return r(ie) && t(ie.length) && !!te[e(ie)];
|
|
27466
27473
|
}
|
|
@@ -27604,9 +27611,9 @@ function require_equalObjects() {
|
|
|
27604
27611
|
if (!(I ? L in g : n.call(g, L)))
|
|
27605
27612
|
return !1;
|
|
27606
27613
|
}
|
|
27607
|
-
var $ = E.get(d),
|
|
27608
|
-
if ($ &&
|
|
27609
|
-
return $ == g &&
|
|
27614
|
+
var $ = E.get(d), O = E.get(g);
|
|
27615
|
+
if ($ && O)
|
|
27616
|
+
return $ == g && O == d;
|
|
27610
27617
|
var G = !0;
|
|
27611
27618
|
E.set(d, g), E.set(g, d);
|
|
27612
27619
|
for (var q = I; ++k < S; ) {
|
|
@@ -27661,8 +27668,8 @@ function require_getTag() {
|
|
|
27661
27668
|
if (hasRequired_getTag) return _getTag;
|
|
27662
27669
|
hasRequired_getTag = 1;
|
|
27663
27670
|
var e = require_DataView(), t = require_Map(), r = require_Promise(), n = require_Set(), s = require_WeakMap(), d = require_baseGetTag(), g = require_toSource(), m = "[object Map]", y = "[object Object]", b = "[object Promise]", E = "[object Set]", I = "[object WeakMap]", x = "[object DataView]", S = g(e), A = g(t), R = g(r), k = g(n), L = g(s), $ = d;
|
|
27664
|
-
return (e && $(new e(new ArrayBuffer(1))) != x || t && $(new t()) != m || r && $(r.resolve()) != b || n && $(new n()) != E || s && $(new s()) != I) && ($ = function(
|
|
27665
|
-
var G = d(
|
|
27671
|
+
return (e && $(new e(new ArrayBuffer(1))) != x || t && $(new t()) != m || r && $(r.resolve()) != b || n && $(new n()) != E || s && $(new s()) != I) && ($ = function(O) {
|
|
27672
|
+
var G = d(O), q = G == y ? O.constructor : void 0, Y = q ? g(q) : "";
|
|
27666
27673
|
if (Y)
|
|
27667
27674
|
switch (Y) {
|
|
27668
27675
|
case S:
|
|
@@ -27684,7 +27691,7 @@ function require_baseIsEqualDeep() {
|
|
|
27684
27691
|
if (hasRequired_baseIsEqualDeep) return _baseIsEqualDeep;
|
|
27685
27692
|
hasRequired_baseIsEqualDeep = 1;
|
|
27686
27693
|
var e = require_Stack(), t = require_equalArrays(), r = require_equalByTag(), n = require_equalObjects(), s = require_getTag(), d = requireIsArray(), g = requireIsBuffer(), m = requireIsTypedArray(), y = 1, b = "[object Arguments]", E = "[object Array]", I = "[object Object]", x = Object.prototype, S = x.hasOwnProperty;
|
|
27687
|
-
function A(R, k, L, $,
|
|
27694
|
+
function A(R, k, L, $, O, G) {
|
|
27688
27695
|
var q = d(R), Y = d(k), z = q ? E : s(R), W = Y ? E : s(k);
|
|
27689
27696
|
z = z == b ? I : z, W = W == b ? I : W;
|
|
27690
27697
|
var X = z == I, ee = W == I, te = z == W;
|
|
@@ -27694,15 +27701,15 @@ function require_baseIsEqualDeep() {
|
|
|
27694
27701
|
q = !0, X = !1;
|
|
27695
27702
|
}
|
|
27696
27703
|
if (te && !X)
|
|
27697
|
-
return G || (G = new e()), q || m(R) ? t(R, k, L, $,
|
|
27704
|
+
return G || (G = new e()), q || m(R) ? t(R, k, L, $, O, G) : r(R, k, z, L, $, O, G);
|
|
27698
27705
|
if (!(L & y)) {
|
|
27699
27706
|
var se = X && S.call(R, "__wrapped__"), ie = ee && S.call(k, "__wrapped__");
|
|
27700
27707
|
if (se || ie) {
|
|
27701
27708
|
var oe = se ? R.value() : R, K = ie ? k.value() : k;
|
|
27702
|
-
return G || (G = new e()),
|
|
27709
|
+
return G || (G = new e()), O(oe, K, L, $, G);
|
|
27703
27710
|
}
|
|
27704
27711
|
}
|
|
27705
|
-
return te ? (G || (G = new e()), n(R, k, L, $,
|
|
27712
|
+
return te ? (G || (G = new e()), n(R, k, L, $, O, G)) : !1;
|
|
27706
27713
|
}
|
|
27707
27714
|
return _baseIsEqualDeep = A, _baseIsEqualDeep;
|
|
27708
27715
|
}
|
|
@@ -29110,14 +29117,14 @@ const ArcGisListener = {
|
|
|
29110
29117
|
[y.uid]: {
|
|
29111
29118
|
type: "FeatureCollection",
|
|
29112
29119
|
features: k.results.map((L) => {
|
|
29113
|
-
const
|
|
29120
|
+
const O = esrijsonFormat.readFeature(L, {
|
|
29114
29121
|
featureProjection: "EPSG:3857"
|
|
29115
29122
|
}).getGeometry();
|
|
29116
29123
|
return {
|
|
29117
29124
|
type: "Feature",
|
|
29118
29125
|
geometry: {
|
|
29119
|
-
type:
|
|
29120
|
-
coordinates:
|
|
29126
|
+
type: O.getType(),
|
|
29127
|
+
coordinates: O.getCoordinates()
|
|
29121
29128
|
},
|
|
29122
29129
|
properties: formatArcgisrest(L.attributes)
|
|
29123
29130
|
};
|
|
@@ -29177,7 +29184,7 @@ const ArcGisListener = {
|
|
|
29177
29184
|
let y = [];
|
|
29178
29185
|
const b = m.getSource();
|
|
29179
29186
|
let E = t.selectIdentifyColumnsExclude();
|
|
29180
|
-
const I = g.identifyFields, x = g.identifyRenameColumns
|
|
29187
|
+
const I = g.identifyFields, x = g.identifyRenameColumns, S = g.identifyFormatColumns;
|
|
29181
29188
|
b.forEachFeatureIntersectingExtent(d, (A) => {
|
|
29182
29189
|
const R = geoJSON$1.writeFeatureObject(A, {
|
|
29183
29190
|
featureProjection: "EPSG:3857",
|
|
@@ -29274,7 +29281,7 @@ const bundle$e = {
|
|
|
29274
29281
|
R,
|
|
29275
29282
|
y.identifyFields
|
|
29276
29283
|
));
|
|
29277
|
-
const k = y.identifyRenameColumns
|
|
29284
|
+
const k = y.identifyRenameColumns;
|
|
29278
29285
|
return k && (R = identifyRenameColumnsArcgisvector(
|
|
29279
29286
|
R,
|
|
29280
29287
|
k
|
|
@@ -29317,17 +29324,38 @@ const bundle$e = {
|
|
|
29317
29324
|
bundle: bundle$e,
|
|
29318
29325
|
components: []
|
|
29319
29326
|
};
|
|
29320
|
-
function buildMapServerUrl(e, t) {
|
|
29327
|
+
function buildMapServerUrl(e, t, r) {
|
|
29321
29328
|
return [
|
|
29322
29329
|
`${e.url}`,
|
|
29323
29330
|
"?service=WFS",
|
|
29324
29331
|
"&version=1.0.0",
|
|
29325
29332
|
"&request=GetFeature",
|
|
29326
|
-
`&bbox=${
|
|
29327
|
-
`&typeName=${
|
|
29333
|
+
`&bbox=${r[0]},${r[1]},${r[2]},${r[3]},EPSG:4326`,
|
|
29334
|
+
`&typeName=${t}`,
|
|
29328
29335
|
"&outputFormat=application%2Fjson"
|
|
29329
29336
|
].join("");
|
|
29330
29337
|
}
|
|
29338
|
+
function getIdentifyTargets(e) {
|
|
29339
|
+
return Array.isArray(e.identifyLayers) && e.identifyLayers.length > 0 ? e.identifyLayers.filter((r) => r && r.layerList ? !0 : (console.warn(
|
|
29340
|
+
`[mapServerIdent] ${e.id}: identifyLayers entry has no layerList, skipping`,
|
|
29341
|
+
r
|
|
29342
|
+
), !1)).map((r) => {
|
|
29343
|
+
const n = r.displayName || r.layerList;
|
|
29344
|
+
return {
|
|
29345
|
+
typeName: r.layerList,
|
|
29346
|
+
resultKey: `${e.uid}:${n}`,
|
|
29347
|
+
layerName: `${e.displayName}:${n}`,
|
|
29348
|
+
label: `${e.id}/${r.layerList}`
|
|
29349
|
+
};
|
|
29350
|
+
}) : [
|
|
29351
|
+
{
|
|
29352
|
+
typeName: e.layerList,
|
|
29353
|
+
resultKey: e.uid,
|
|
29354
|
+
layerName: e.displayName,
|
|
29355
|
+
label: e.id
|
|
29356
|
+
}
|
|
29357
|
+
];
|
|
29358
|
+
}
|
|
29331
29359
|
const bundle$d = {
|
|
29332
29360
|
name: "mapServerIdent",
|
|
29333
29361
|
getReducer() {
|
|
@@ -29347,59 +29375,59 @@ const bundle$d = {
|
|
|
29347
29375
|
doMapServerIdentFire: (e) => ({ store: t, anonGet: r }) => {
|
|
29348
29376
|
const n = t.selectVisibleLayers(), s = t.doSetIdentifyFeature(), d = index_default$2(s), g = t.selectIdentifyColumnsExclude(), m = [];
|
|
29349
29377
|
n.forEach((y) => {
|
|
29350
|
-
|
|
29351
|
-
const
|
|
29352
|
-
m.push((
|
|
29353
|
-
r(
|
|
29354
|
-
if (
|
|
29355
|
-
return
|
|
29378
|
+
y.identifyType && y.identifyType === "MAP" && getIdentifyTargets(y).forEach((E) => {
|
|
29379
|
+
const I = buildMapServerUrl(y, E.typeName, d);
|
|
29380
|
+
m.push((x) => {
|
|
29381
|
+
r(I, (S, A, R) => {
|
|
29382
|
+
if (S || A.statusCode !== 200)
|
|
29383
|
+
return x(null, {
|
|
29356
29384
|
dataset: y.uid,
|
|
29357
|
-
layerName:
|
|
29358
|
-
err: `Error for ${
|
|
29359
|
-
result: { [
|
|
29385
|
+
layerName: E.layerName,
|
|
29386
|
+
err: `Error for ${E.layerName}`,
|
|
29387
|
+
result: { [E.resultKey]: {} }
|
|
29360
29388
|
});
|
|
29361
29389
|
try {
|
|
29362
|
-
let
|
|
29363
|
-
|
|
29364
|
-
).toFixed(6)),
|
|
29365
|
-
|
|
29366
|
-
).toFixed(6)),
|
|
29367
|
-
|
|
29368
|
-
|
|
29390
|
+
let L = JSON.parse(R).features.filter((O) => !index_default(O, s)).map((O) => (O.properties.LATITUDE && (O.properties.LATITUDE = Number(
|
|
29391
|
+
O.properties.LATITUDE
|
|
29392
|
+
).toFixed(6)), O.properties.LONGITUDE && (O.properties.LONGITUDE = Number(
|
|
29393
|
+
O.properties.LONGITUDE
|
|
29394
|
+
).toFixed(6)), O));
|
|
29395
|
+
L = identifyExcludeColumnsArcgisvector(
|
|
29396
|
+
L,
|
|
29369
29397
|
g
|
|
29370
|
-
), y.identifyFields && (
|
|
29371
|
-
|
|
29398
|
+
), y.identifyFields && (L = identifyIncludeColumnsArcgisvector(
|
|
29399
|
+
L,
|
|
29372
29400
|
y.identifyFields
|
|
29373
29401
|
));
|
|
29374
|
-
const
|
|
29375
|
-
return
|
|
29376
|
-
|
|
29377
|
-
|
|
29378
|
-
)), y.identifyFormatColumns && (
|
|
29379
|
-
|
|
29402
|
+
const $ = y.identifyRenameColumns;
|
|
29403
|
+
return $ && (L = identifyRenameColumnsArcgisvector(
|
|
29404
|
+
L,
|
|
29405
|
+
$
|
|
29406
|
+
)), y.identifyFormatColumns && (L = identifyFormatColumnsArcgisvector(
|
|
29407
|
+
L,
|
|
29380
29408
|
y.identifyFormatColumns
|
|
29381
|
-
)),
|
|
29409
|
+
)), L = formatArcgisVector(L), x(null, {
|
|
29382
29410
|
dataset: y.uid,
|
|
29383
|
-
layerName:
|
|
29411
|
+
layerName: E.layerName,
|
|
29384
29412
|
err: null,
|
|
29385
29413
|
result: {
|
|
29386
|
-
[
|
|
29414
|
+
[E.resultKey]: {
|
|
29387
29415
|
type: "FeatureCollection",
|
|
29388
|
-
features:
|
|
29416
|
+
features: L
|
|
29389
29417
|
}
|
|
29390
29418
|
}
|
|
29391
29419
|
});
|
|
29392
|
-
} catch
|
|
29393
|
-
return
|
|
29420
|
+
} catch {
|
|
29421
|
+
return x(null, {
|
|
29394
29422
|
dataset: y.uid,
|
|
29395
|
-
layerName:
|
|
29396
|
-
err: `Error for ${
|
|
29397
|
-
result: { [
|
|
29423
|
+
layerName: E.layerName,
|
|
29424
|
+
err: `Error for ${E.layerName}`,
|
|
29425
|
+
result: { [E.resultKey]: {} }
|
|
29398
29426
|
});
|
|
29399
29427
|
}
|
|
29400
29428
|
});
|
|
29401
29429
|
});
|
|
29402
|
-
}
|
|
29430
|
+
});
|
|
29403
29431
|
}), async.parallel(m, (y, b) => {
|
|
29404
29432
|
e(y, b);
|
|
29405
29433
|
});
|
|
@@ -29547,8 +29575,8 @@ function require_baseOrderBy() {
|
|
|
29547
29575
|
var S = -1;
|
|
29548
29576
|
I = e(I, d(r));
|
|
29549
29577
|
var A = n(E, function(R, k, L) {
|
|
29550
|
-
var $ = e(I, function(
|
|
29551
|
-
return
|
|
29578
|
+
var $ = e(I, function(O) {
|
|
29579
|
+
return O(R);
|
|
29552
29580
|
});
|
|
29553
29581
|
return { criteria: $, index: ++S, value: R };
|
|
29554
29582
|
});
|
|
@@ -29982,11 +30010,11 @@ Url.prototype.parse = function(e, t) {
|
|
|
29982
30010
|
const L = A[R];
|
|
29983
30011
|
if (L && !L.match(hostnamePartPattern)) {
|
|
29984
30012
|
let $ = "";
|
|
29985
|
-
for (let
|
|
29986
|
-
L.charCodeAt(
|
|
30013
|
+
for (let O = 0, G = L.length; O < G; O++)
|
|
30014
|
+
L.charCodeAt(O) > 127 ? $ += "x" : $ += L[O];
|
|
29987
30015
|
if (!$.match(hostnamePartPattern)) {
|
|
29988
|
-
const
|
|
29989
|
-
q && (
|
|
30016
|
+
const O = A.slice(0, R), G = A.slice(R + 1), q = L.match(hostnamePartStart);
|
|
30017
|
+
q && (O.push(q[1]), G.unshift(q[2])), G.length && (d = G.join(".") + d), this.hostname = O.join(".");
|
|
29990
30018
|
break;
|
|
29991
30019
|
}
|
|
29992
30020
|
}
|
|
@@ -30914,8 +30942,8 @@ function linkify$1(e) {
|
|
|
30914
30942
|
const Y = new e.Token("text", "", 0);
|
|
30915
30943
|
Y.content = b.slice(S, $), Y.level = x, I.push(Y);
|
|
30916
30944
|
}
|
|
30917
|
-
const
|
|
30918
|
-
|
|
30945
|
+
const O = new e.Token("link_open", "a", 1);
|
|
30946
|
+
O.attrs = [["href", k]], O.level = x++, O.markup = "linkify", O.info = "auto", I.push(O);
|
|
30919
30947
|
const G = new e.Token("text", "", 0);
|
|
30920
30948
|
G.content = L, G.level = x, I.push(G);
|
|
30921
30949
|
const q = new e.Token("link_close", "a", -1);
|
|
@@ -31034,8 +31062,8 @@ function process_inlines(e, t) {
|
|
|
31034
31062
|
L = e[r].content.charCodeAt(0);
|
|
31035
31063
|
break;
|
|
31036
31064
|
}
|
|
31037
|
-
const $ = isMdAsciiPunct(k) || isPunctCharCode(k),
|
|
31038
|
-
if (q ? S = !1 :
|
|
31065
|
+
const $ = isMdAsciiPunct(k) || isPunctCharCode(k), O = isMdAsciiPunct(L) || isPunctCharCode(L), G = isWhiteSpace(k), q = isWhiteSpace(L);
|
|
31066
|
+
if (q ? S = !1 : O && (G || $ || (S = !1)), G ? A = !1 : $ && (q || O || (A = !1)), L === 34 && x[0] === '"' && k >= 48 && k <= 57 && (A = S = !1), S && A && (S = $, A = O), !S && !A) {
|
|
31039
31067
|
R && addReplacement(d, g, x.index, APOSTROPHE);
|
|
31040
31068
|
continue;
|
|
31041
31069
|
}
|
|
@@ -31251,7 +31279,7 @@ function table(e, t, r, n) {
|
|
|
31251
31279
|
Y.content = b[G].trim(), Y.children = [], e.push("th_close", "th", -1);
|
|
31252
31280
|
}
|
|
31253
31281
|
e.push("tr_close", "tr", -1), e.push("thead_close", "thead", -1);
|
|
31254
|
-
let $,
|
|
31282
|
+
let $, O = 0;
|
|
31255
31283
|
for (s = t + 2; s < r && !(e.sCount[s] < e.blkIndent); s++) {
|
|
31256
31284
|
let G = !1;
|
|
31257
31285
|
for (let Y = 0, z = S.length; Y < z; Y++)
|
|
@@ -31259,7 +31287,7 @@ function table(e, t, r, n) {
|
|
|
31259
31287
|
G = !0;
|
|
31260
31288
|
break;
|
|
31261
31289
|
}
|
|
31262
|
-
if (G || (y = getLine(e, s).trim(), !y) || e.sCount[s] - e.blkIndent >= 4 || (b = escapedSplit(y), b.length && b[0] === "" && b.shift(), b.length && b[b.length - 1] === "" && b.pop(),
|
|
31290
|
+
if (G || (y = getLine(e, s).trim(), !y) || e.sCount[s] - e.blkIndent >= 4 || (b = escapedSplit(y), b.length && b[0] === "" && b.shift(), b.length && b[b.length - 1] === "" && b.pop(), O += I - b.length, O > MAX_AUTOCOMPLETED_CELLS))
|
|
31263
31291
|
break;
|
|
31264
31292
|
if (s === t + 2) {
|
|
31265
31293
|
const Y = e.push("tbody_open", "tbody", 1);
|
|
@@ -31335,10 +31363,10 @@ function blockquote(e, t, r, n) {
|
|
|
31335
31363
|
e.parentType = "blockquote";
|
|
31336
31364
|
let S = !1, A;
|
|
31337
31365
|
for (A = t; A < r; A++) {
|
|
31338
|
-
const
|
|
31366
|
+
const O = e.sCount[A] < e.blkIndent;
|
|
31339
31367
|
if (s = e.bMarks[A] + e.tShift[A], d = e.eMarks[A], s >= d)
|
|
31340
31368
|
break;
|
|
31341
|
-
if (e.src.charCodeAt(s++) === 62 && !
|
|
31369
|
+
if (e.src.charCodeAt(s++) === 62 && !O) {
|
|
31342
31370
|
let q = e.sCount[A] + 1, Y, z;
|
|
31343
31371
|
e.src.charCodeAt(s) === 32 ? (s++, q++, z = !1, Y = !0) : e.src.charCodeAt(s) === 9 ? (Y = !0, (e.bsCount[A] + q) % 4 === 3 ? (s++, q++, z = !1) : z = !0) : Y = !1;
|
|
31344
31372
|
let W = q;
|
|
@@ -31375,8 +31403,8 @@ function blockquote(e, t, r, n) {
|
|
|
31375
31403
|
k.map = L, e.md.block.tokenize(e, t, A);
|
|
31376
31404
|
const $ = e.push("blockquote_close", "blockquote", -1);
|
|
31377
31405
|
$.markup = ">", e.lineMax = g, e.parentType = x, L[1] = e.line;
|
|
31378
|
-
for (let
|
|
31379
|
-
e.bMarks[
|
|
31406
|
+
for (let O = 0; O < E.length; O++)
|
|
31407
|
+
e.bMarks[O + t] = m[O], e.tShift[O + t] = E[O], e.sCount[O + t] = b[O], e.bsCount[O + t] = y[O];
|
|
31380
31408
|
return e.blkIndent = R, !0;
|
|
31381
31409
|
}
|
|
31382
31410
|
function hr(e, t, r, n) {
|
|
@@ -31464,7 +31492,7 @@ function list(e, t, r, n) {
|
|
|
31464
31492
|
const k = [y, 0];
|
|
31465
31493
|
m.map = k, m.markup = String.fromCharCode(A);
|
|
31466
31494
|
let L = !1;
|
|
31467
|
-
const $ = e.md.block.ruler.getRules("list"),
|
|
31495
|
+
const $ = e.md.block.ruler.getRules("list"), O = e.parentType;
|
|
31468
31496
|
for (e.parentType = "list"; y < r; ) {
|
|
31469
31497
|
d = S, s = e.eMarks[y];
|
|
31470
31498
|
const G = e.sCount[y] + S - (e.bMarks[y] + e.tShift[y]);
|
|
@@ -31506,7 +31534,7 @@ function list(e, t, r, n) {
|
|
|
31506
31534
|
if (A !== e.src.charCodeAt(S - 1))
|
|
31507
31535
|
break;
|
|
31508
31536
|
}
|
|
31509
|
-
return I ? m = e.push("ordered_list_close", "ol", -1) : m = e.push("bullet_list_close", "ul", -1), m.markup = String.fromCharCode(A), k[1] = y, e.line = y, e.parentType =
|
|
31537
|
+
return I ? m = e.push("ordered_list_close", "ol", -1) : m = e.push("bullet_list_close", "ul", -1), m.markup = String.fromCharCode(A), k[1] = y, e.line = y, e.parentType = O, b && markTightParagraphs(e, R), !0;
|
|
31510
31538
|
}
|
|
31511
31539
|
const MAX_LABEL_LENGTH = 999;
|
|
31512
31540
|
function countCodePoints(e) {
|
|
@@ -31624,8 +31652,8 @@ function reference(e, t, r, n) {
|
|
|
31624
31652
|
}
|
|
31625
31653
|
if (d < m && s.charCodeAt(d) !== 10)
|
|
31626
31654
|
return !1;
|
|
31627
|
-
const
|
|
31628
|
-
return
|
|
31655
|
+
const O = normalizeReference(y);
|
|
31656
|
+
return O ? (n || (typeof e.env.references > "u" && (e.env.references = {}), typeof e.env.references[O] > "u" && (e.env.references[O] = { title: $, href: x }), e.line = g), !0) : !1;
|
|
31629
31657
|
}
|
|
31630
31658
|
const block_names = [
|
|
31631
31659
|
"address",
|
|
@@ -33963,8 +33991,8 @@ const safeRgba = (e, t = [0, 0, 0, 0]) => e ? `rgba(${e.join()})` : `rgba(${t.jo
|
|
|
33963
33991
|
"load",
|
|
33964
33992
|
function() {
|
|
33965
33993
|
let L = document.createElement("canvas"), $ = L.getContext("2d");
|
|
33966
|
-
const
|
|
33967
|
-
L.width = Number(R.width) +
|
|
33994
|
+
const O = Number($.measureText(R.label).width);
|
|
33995
|
+
L.width = Number(R.width) + O + 4, L.height = R.height, E[s].widths.push(L.width), E[s].heights.push(L.height), $.fillStyle = "white", $.fillRect(0, 0, L.width, L.height), $.drawImage(k, 0, 0), $.font = "10px Arial", $.fillStyle = "black", $.fillText(R.label, R.width + 2, R.height / 2), E[s].canvas.push(L), r({
|
|
33968
33996
|
type: "LEGEND_CANVAS_ADDED",
|
|
33969
33997
|
payload: {
|
|
33970
33998
|
legendCanvases: E,
|
|
@@ -36583,10 +36611,10 @@ const treeViewDownload = {
|
|
|
36583
36611
|
A.properties[$] && (L[$] = A.properties[$]);
|
|
36584
36612
|
}), A.properties = L;
|
|
36585
36613
|
}
|
|
36586
|
-
}), n[0].
|
|
36614
|
+
}), n[0].identifyRenameColumns && I.forEach((A) => {
|
|
36587
36615
|
if (A.properties)
|
|
36588
36616
|
for (const [R, k] of Object.entries(A.properties))
|
|
36589
|
-
for (const [L, $] of Object.entries(n[0].
|
|
36617
|
+
for (const [L, $] of Object.entries(n[0].identifyRenameColumns))
|
|
36590
36618
|
R === L && (A.properties[$] = A.properties[R], delete A.properties[R]);
|
|
36591
36619
|
}), m.push({
|
|
36592
36620
|
dataset: b.uid,
|