@eox/layercontrol 1.2.1 → 1.2.2-dev.1760104411.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/eox-layercontrol.js +292 -288
- package/dist/eox-layercontrol.umd.cjs +34 -34
- package/package.json +1 -1
- package/src/components/layer-legend.js +3 -1
- package/src/helpers/get-legend-config.js +6 -6
- package/src/helpers/get-start-vals.js +9 -1
- package/types/layercontrol/src/components/layer-legend.d.ts.map +1 -1
- package/types/layercontrol/src/components/layer-tools.d.ts.map +1 -1
- package/types/layercontrol/src/helpers/get-start-vals.d.ts.map +1 -1
- package/types/map/src/custom/sources/FlatGeoBuf.d.ts.map +1 -1
- package/types/map/src/custom/sources/WMTSCapabilities.d.ts.map +1 -1
- package/types/map/src/helpers/select.d.ts.map +1 -1
package/dist/eox-layercontrol.js
CHANGED
|
@@ -4,7 +4,7 @@ var bi = (r) => {
|
|
|
4
4
|
};
|
|
5
5
|
var Qo = (r, e, t) => e in r ? Ko(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
|
|
6
6
|
var j = (r, e, t) => Qo(r, typeof e != "symbol" ? e + "" : e, t), Cr = (r, e, t) => e.has(r) || bi("Cannot " + t);
|
|
7
|
-
var $ = (r, e, t) => (Cr(r, e, "read from private field"), t ? t.call(r) : e.get(r)), T = (r, e, t) => e.has(r) ? bi("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(r) : e.set(r, t),
|
|
7
|
+
var $ = (r, e, t) => (Cr(r, e, "read from private field"), t ? t.call(r) : e.get(r)), T = (r, e, t) => e.has(r) ? bi("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(r) : e.set(r, t), _e = (r, e, t, i) => (Cr(r, e, "write to private field"), i ? i.call(r, t) : e.set(r, t), t), q = (r, e, t) => (Cr(r, e, "access private method"), t);
|
|
8
8
|
/**
|
|
9
9
|
* @license
|
|
10
10
|
* Copyright 2019 Google LLC
|
|
@@ -288,7 +288,7 @@ rt.elementStyles = [], rt.shadowRootOptions = { mode: "open" }, rt[vt("elementPr
|
|
|
288
288
|
*/
|
|
289
289
|
const xt = globalThis, Jt = xt.trustedTypes, wi = Jt ? Jt.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, Yi = "$lit$", Ie = `lit$${Math.random().toFixed(9).slice(2)}$`, Wi = "?" + Ie, dn = `<${Wi}>`, Qe = document, Et = () => Qe.createComment(""), At = (r) => r === null || typeof r != "object" && typeof r != "function", ni = Array.isArray, un = (r) => ni(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", Lr = `[
|
|
290
290
|
\f\r]`, ht = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, _i = /-->/g, $i = />/g, Xe = RegExp(`>|${Lr}(?:([^\\s"'>=/]+)(${Lr}*=${Lr}*(?:[^
|
|
291
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), Si = /'/g, zi = /"/g, Gi = /^(?:script|style|textarea|title)$/i, pn = (r) => (e, ...t) => ({ _$litType$: r, strings: e, values: t }), g = pn(1), xe = Symbol.for("lit-noChange"),
|
|
291
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Si = /'/g, zi = /"/g, Gi = /^(?:script|style|textarea|title)$/i, pn = (r) => (e, ...t) => ({ _$litType$: r, strings: e, values: t }), g = pn(1), xe = Symbol.for("lit-noChange"), D = Symbol.for("lit-nothing"), Ei = /* @__PURE__ */ new WeakMap(), Je = Qe.createTreeWalker(Qe, 129);
|
|
292
292
|
function Ji(r, e) {
|
|
293
293
|
if (!ni(r) || !r.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
294
294
|
return wi !== void 0 ? wi.createHTML(e) : e;
|
|
@@ -300,8 +300,8 @@ const mn = (r, e) => {
|
|
|
300
300
|
const s = r[l];
|
|
301
301
|
let c, u, d = -1, m = 0;
|
|
302
302
|
for (; m < s.length && (a.lastIndex = m, u = a.exec(s), u !== null); ) m = a.lastIndex, a === ht ? u[1] === "!--" ? a = _i : u[1] !== void 0 ? a = $i : u[2] !== void 0 ? (Gi.test(u[2]) && (o = RegExp("</" + u[2], "g")), a = Xe) : u[3] !== void 0 && (a = Xe) : a === Xe ? u[0] === ">" ? (a = o ?? ht, d = -1) : u[1] === void 0 ? d = -2 : (d = a.lastIndex - u[2].length, c = u[1], a = u[3] === void 0 ? Xe : u[3] === '"' ? zi : Si) : a === zi || a === Si ? a = Xe : a === _i || a === $i ? a = ht : (a = Xe, o = void 0);
|
|
303
|
-
const
|
|
304
|
-
n += a === ht ? s + dn : d >= 0 ? (i.push(c), s.slice(0, d) + Yi + s.slice(d) + Ie +
|
|
303
|
+
const f = a === Xe && r[l + 1].startsWith("/>") ? " " : "";
|
|
304
|
+
n += a === ht ? s + dn : d >= 0 ? (i.push(c), s.slice(0, d) + Yi + s.slice(d) + Ie + f) : s + Ie + (d === -2 ? l : f);
|
|
305
305
|
}
|
|
306
306
|
return [Ji(r, n + (r[t] || "<?>") + (e === 2 ? "</svg>" : e === 3 ? "</math>" : "")), i];
|
|
307
307
|
};
|
|
@@ -318,14 +318,14 @@ class Ct {
|
|
|
318
318
|
for (; (o = Je.nextNode()) !== null && s.length < l; ) {
|
|
319
319
|
if (o.nodeType === 1) {
|
|
320
320
|
if (o.hasAttributes()) for (const d of o.getAttributeNames()) if (d.endsWith(Yi)) {
|
|
321
|
-
const m = u[a++],
|
|
322
|
-
s.push({ type: 1, index: n, name:
|
|
321
|
+
const m = u[a++], f = o.getAttribute(d).split(Ie), h = /([.?@])?(.*)/.exec(m);
|
|
322
|
+
s.push({ type: 1, index: n, name: h[2], strings: f, ctor: h[1] === "." ? fn : h[1] === "?" ? gn : h[1] === "@" ? bn : $r }), o.removeAttribute(d);
|
|
323
323
|
} else d.startsWith(Ie) && (s.push({ type: 6, index: n }), o.removeAttribute(d));
|
|
324
324
|
if (Gi.test(o.tagName)) {
|
|
325
325
|
const d = o.textContent.split(Ie), m = d.length - 1;
|
|
326
326
|
if (m > 0) {
|
|
327
327
|
o.textContent = Jt ? Jt.emptyScript : "";
|
|
328
|
-
for (let
|
|
328
|
+
for (let f = 0; f < m; f++) o.append(d[f], Et()), Je.nextNode(), s.push({ type: 2, index: ++n });
|
|
329
329
|
o.append(d[m], Et());
|
|
330
330
|
}
|
|
331
331
|
}
|
|
@@ -383,7 +383,7 @@ class pt {
|
|
|
383
383
|
return ((e = this._$AM) == null ? void 0 : e._$AU) ?? this._$Cv;
|
|
384
384
|
}
|
|
385
385
|
constructor(e, t, i, o) {
|
|
386
|
-
this.type = 2, this._$AH =
|
|
386
|
+
this.type = 2, this._$AH = D, this._$AN = void 0, this._$AA = e, this._$AB = t, this._$AM = i, this.options = o, this._$Cv = (o == null ? void 0 : o.isConnected) ?? !0;
|
|
387
387
|
}
|
|
388
388
|
get parentNode() {
|
|
389
389
|
let e = this._$AA.parentNode;
|
|
@@ -397,7 +397,7 @@ class pt {
|
|
|
397
397
|
return this._$AB;
|
|
398
398
|
}
|
|
399
399
|
_$AI(e, t = this) {
|
|
400
|
-
e = ct(this, e, t), At(e) ? e ===
|
|
400
|
+
e = ct(this, e, t), At(e) ? e === D || e == null || e === "" ? (this._$AH !== D && this._$AR(), this._$AH = D) : e !== this._$AH && e !== xe && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : un(e) ? this.k(e) : this._(e);
|
|
401
401
|
}
|
|
402
402
|
O(e) {
|
|
403
403
|
return this._$AA.parentNode.insertBefore(e, this._$AB);
|
|
@@ -406,7 +406,7 @@ class pt {
|
|
|
406
406
|
this._$AH !== e && (this._$AR(), this._$AH = this.O(e));
|
|
407
407
|
}
|
|
408
408
|
_(e) {
|
|
409
|
-
this._$AH !==
|
|
409
|
+
this._$AH !== D && At(this._$AH) ? this._$AA.nextSibling.data = e : this.T(Qe.createTextNode(e)), this._$AH = e;
|
|
410
410
|
}
|
|
411
411
|
$(e) {
|
|
412
412
|
var n;
|
|
@@ -448,7 +448,7 @@ class $r {
|
|
|
448
448
|
return this._$AM._$AU;
|
|
449
449
|
}
|
|
450
450
|
constructor(e, t, i, o, n) {
|
|
451
|
-
this.type = 1, this._$AH =
|
|
451
|
+
this.type = 1, this._$AH = D, this._$AN = void 0, this.element = e, this.name = t, this._$AM = o, this.options = n, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = D;
|
|
452
452
|
}
|
|
453
453
|
_$AI(e, t = this, i, o) {
|
|
454
454
|
const n = this.strings;
|
|
@@ -457,12 +457,12 @@ class $r {
|
|
|
457
457
|
else {
|
|
458
458
|
const l = e;
|
|
459
459
|
let s, c;
|
|
460
|
-
for (e = n[0], s = 0; s < n.length - 1; s++) c = ct(this, l[i + s], t, s), c === xe && (c = this._$AH[s]), a || (a = !At(c) || c !== this._$AH[s]), c ===
|
|
460
|
+
for (e = n[0], s = 0; s < n.length - 1; s++) c = ct(this, l[i + s], t, s), c === xe && (c = this._$AH[s]), a || (a = !At(c) || c !== this._$AH[s]), c === D ? e = D : e !== D && (e += (c ?? "") + n[s + 1]), this._$AH[s] = c;
|
|
461
461
|
}
|
|
462
462
|
a && !o && this.j(e);
|
|
463
463
|
}
|
|
464
464
|
j(e) {
|
|
465
|
-
e ===
|
|
465
|
+
e === D ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
|
|
466
466
|
}
|
|
467
467
|
}
|
|
468
468
|
class fn extends $r {
|
|
@@ -470,7 +470,7 @@ class fn extends $r {
|
|
|
470
470
|
super(...arguments), this.type = 3;
|
|
471
471
|
}
|
|
472
472
|
j(e) {
|
|
473
|
-
this.element[this.name] = e ===
|
|
473
|
+
this.element[this.name] = e === D ? void 0 : e;
|
|
474
474
|
}
|
|
475
475
|
}
|
|
476
476
|
class gn extends $r {
|
|
@@ -478,7 +478,7 @@ class gn extends $r {
|
|
|
478
478
|
super(...arguments), this.type = 4;
|
|
479
479
|
}
|
|
480
480
|
j(e) {
|
|
481
|
-
this.element.toggleAttribute(this.name, !!e && e !==
|
|
481
|
+
this.element.toggleAttribute(this.name, !!e && e !== D);
|
|
482
482
|
}
|
|
483
483
|
}
|
|
484
484
|
class bn extends $r {
|
|
@@ -486,8 +486,8 @@ class bn extends $r {
|
|
|
486
486
|
super(e, t, i, o, n), this.type = 5;
|
|
487
487
|
}
|
|
488
488
|
_$AI(e, t = this) {
|
|
489
|
-
if ((e = ct(this, e, t, 0) ??
|
|
490
|
-
const i = this._$AH, o = e ===
|
|
489
|
+
if ((e = ct(this, e, t, 0) ?? D) === xe) return;
|
|
490
|
+
const i = this._$AH, o = e === D && i !== D || e.capture !== i.capture || e.once !== i.once || e.passive !== i.passive, n = e !== D && (i === D || o);
|
|
491
491
|
o && this.element.removeEventListener(this.name, this, i), n && this.element.addEventListener(this.name, this, e), this._$AH = e;
|
|
492
492
|
}
|
|
493
493
|
handleEvent(e) {
|
|
@@ -506,8 +506,8 @@ class yn {
|
|
|
506
506
|
ct(this, e);
|
|
507
507
|
}
|
|
508
508
|
}
|
|
509
|
-
const vn = { I: pt },
|
|
510
|
-
|
|
509
|
+
const vn = { I: pt }, Pr = xt.litHtmlPolyfillSupport;
|
|
510
|
+
Pr == null || Pr(Ct, pt), (xt.litHtmlVersions ?? (xt.litHtmlVersions = [])).push("3.2.1");
|
|
511
511
|
const xn = (r, e, t) => {
|
|
512
512
|
const i = (t == null ? void 0 : t.renderBefore) ?? e;
|
|
513
513
|
let o = i._$litPart$;
|
|
@@ -549,8 +549,8 @@ let se = class extends rt {
|
|
|
549
549
|
};
|
|
550
550
|
var Fi;
|
|
551
551
|
se._$litElement$ = !0, se.finalized = !0, (Fi = globalThis.litElementHydrateSupport) == null || Fi.call(globalThis, { LitElement: se });
|
|
552
|
-
const
|
|
553
|
-
|
|
552
|
+
const Dr = globalThis.litElementPolyfillSupport;
|
|
553
|
+
Dr == null || Dr({ LitElement: se });
|
|
554
554
|
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.1.1");
|
|
555
555
|
/**
|
|
556
556
|
* @license
|
|
@@ -646,29 +646,29 @@ const Ci = (r, e, t) => {
|
|
|
646
646
|
const o = $n(r), { values: n, keys: a } = this.dt(e, t, i);
|
|
647
647
|
if (!Array.isArray(o)) return this.ut = a, n;
|
|
648
648
|
const l = this.ut ?? (this.ut = []), s = [];
|
|
649
|
-
let c, u, d = 0, m = o.length - 1,
|
|
650
|
-
for (; d <= m &&
|
|
649
|
+
let c, u, d = 0, m = o.length - 1, f = 0, h = n.length - 1;
|
|
650
|
+
for (; d <= m && f <= h; ) if (o[d] === null) d++;
|
|
651
651
|
else if (o[m] === null) m--;
|
|
652
|
-
else if (l[d] === a[
|
|
653
|
-
else if (l[m] === a[
|
|
654
|
-
else if (l[d] === a[
|
|
655
|
-
else if (l[m] === a[
|
|
656
|
-
else if (c === void 0 && (c = Ci(a,
|
|
657
|
-
const
|
|
658
|
-
if (
|
|
652
|
+
else if (l[d] === a[f]) s[f] = Ze(o[d], n[f]), d++, f++;
|
|
653
|
+
else if (l[m] === a[h]) s[h] = Ze(o[m], n[h]), m--, h--;
|
|
654
|
+
else if (l[d] === a[h]) s[h] = Ze(o[d], n[h]), ft(r, s[h + 1], o[d]), d++, h--;
|
|
655
|
+
else if (l[m] === a[f]) s[f] = Ze(o[m], n[f]), ft(r, o[d], o[m]), m--, f++;
|
|
656
|
+
else if (c === void 0 && (c = Ci(a, f, h), u = Ci(l, d, m)), c.has(l[d])) if (c.has(l[m])) {
|
|
657
|
+
const b = u.get(a[f]), R = b !== void 0 ? o[b] : null;
|
|
658
|
+
if (R === null) {
|
|
659
659
|
const J = ft(r, o[d]);
|
|
660
|
-
Ze(J, n[
|
|
661
|
-
} else s[
|
|
662
|
-
|
|
660
|
+
Ze(J, n[f]), s[f] = J;
|
|
661
|
+
} else s[f] = Ze(R, n[f]), ft(r, o[d], R), o[b] = null;
|
|
662
|
+
f++;
|
|
663
663
|
} else Rr(o[m]), m--;
|
|
664
664
|
else Rr(o[d]), d++;
|
|
665
|
-
for (;
|
|
666
|
-
const
|
|
667
|
-
Ze(
|
|
665
|
+
for (; f <= h; ) {
|
|
666
|
+
const b = ft(r, s[h + 1]);
|
|
667
|
+
Ze(b, n[f]), s[f++] = b;
|
|
668
668
|
}
|
|
669
669
|
for (; d <= m; ) {
|
|
670
|
-
const
|
|
671
|
-
|
|
670
|
+
const b = o[d++];
|
|
671
|
+
b !== null && Rr(b);
|
|
672
672
|
}
|
|
673
673
|
return this.ut = a, Ki(r, s), xe;
|
|
674
674
|
}
|
|
@@ -826,7 +826,7 @@ function me(r, e, t) {
|
|
|
826
826
|
);
|
|
827
827
|
}
|
|
828
828
|
const Ln = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;
|
|
829
|
-
function
|
|
829
|
+
function Pn(r) {
|
|
830
830
|
return r.replace(Ln, "");
|
|
831
831
|
}
|
|
832
832
|
function Ke(r) {
|
|
@@ -851,11 +851,11 @@ function Kt(r) {
|
|
|
851
851
|
return parseInt(e[1], 10);
|
|
852
852
|
}
|
|
853
853
|
function C(r) {
|
|
854
|
-
return
|
|
854
|
+
return Pn(Sr(r, !1));
|
|
855
855
|
}
|
|
856
|
-
const
|
|
856
|
+
const Dn = "http://www.w3.org/1999/xlink";
|
|
857
857
|
function si(r) {
|
|
858
|
-
return r.getAttributeNS(
|
|
858
|
+
return r.getAttributeNS(Dn, "href");
|
|
859
859
|
}
|
|
860
860
|
function Rn(r, e) {
|
|
861
861
|
return Q({}, la, r, e);
|
|
@@ -994,11 +994,11 @@ function Xn(r, e) {
|
|
|
994
994
|
let c = Ce(r.getAttribute("fixedHeight"));
|
|
995
995
|
S(c) || (c = t.fixedHeight), i.fixedHeight = c;
|
|
996
996
|
const u = ["Style", "CRS", "AuthorityURL"];
|
|
997
|
-
for (let m = 0,
|
|
998
|
-
const
|
|
999
|
-
if (S(
|
|
1000
|
-
let
|
|
1001
|
-
|
|
997
|
+
for (let m = 0, f = u.length; m < f; m++) {
|
|
998
|
+
const h = u[m], b = t[h];
|
|
999
|
+
if (S(b)) {
|
|
1000
|
+
let R = Qi(i, h, []);
|
|
1001
|
+
R = R.concat(b), i[h] = R;
|
|
1002
1002
|
}
|
|
1003
1003
|
}
|
|
1004
1004
|
const d = [
|
|
@@ -1009,11 +1009,11 @@ function Xn(r, e) {
|
|
|
1009
1009
|
"MinScaleDenominator",
|
|
1010
1010
|
"MaxScaleDenominator"
|
|
1011
1011
|
];
|
|
1012
|
-
for (let m = 0,
|
|
1013
|
-
const
|
|
1014
|
-
if (!S(
|
|
1015
|
-
const
|
|
1016
|
-
i[
|
|
1012
|
+
for (let m = 0, f = d.length; m < f; m++) {
|
|
1013
|
+
const h = d[m], b = i[h];
|
|
1014
|
+
if (!S(b)) {
|
|
1015
|
+
const R = t[h];
|
|
1016
|
+
i[h] = R;
|
|
1017
1017
|
}
|
|
1018
1018
|
}
|
|
1019
1019
|
return i;
|
|
@@ -1351,7 +1351,7 @@ function Ti(r, e) {
|
|
|
1351
1351
|
}
|
|
1352
1352
|
return t;
|
|
1353
1353
|
}
|
|
1354
|
-
function
|
|
1354
|
+
function ze(r) {
|
|
1355
1355
|
for (var e = 1; e < arguments.length; e++) {
|
|
1356
1356
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
1357
1357
|
e % 2 ? Ti(Object(t), !0).forEach(function(i) {
|
|
@@ -1378,15 +1378,15 @@ function ka(r, e, t) {
|
|
|
1378
1378
|
writable: !0
|
|
1379
1379
|
}) : r[e] = t, r;
|
|
1380
1380
|
}
|
|
1381
|
-
function
|
|
1382
|
-
return
|
|
1381
|
+
function Pe() {
|
|
1382
|
+
return Pe = Object.assign || function(r) {
|
|
1383
1383
|
for (var e = 1; e < arguments.length; e++) {
|
|
1384
1384
|
var t = arguments[e];
|
|
1385
1385
|
for (var i in t)
|
|
1386
1386
|
Object.prototype.hasOwnProperty.call(t, i) && (r[i] = t[i]);
|
|
1387
1387
|
}
|
|
1388
1388
|
return r;
|
|
1389
|
-
},
|
|
1389
|
+
}, Pe.apply(this, arguments);
|
|
1390
1390
|
}
|
|
1391
1391
|
function wa(r, e) {
|
|
1392
1392
|
if (r == null) return {};
|
|
@@ -1410,15 +1410,15 @@ function Te(r) {
|
|
|
1410
1410
|
if (typeof window < "u" && window.navigator)
|
|
1411
1411
|
return !!/* @__PURE__ */ navigator.userAgent.match(r);
|
|
1412
1412
|
}
|
|
1413
|
-
var
|
|
1413
|
+
var De = Te(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Rt = Te(/Edge/i), Li = Te(/firefox/i), kt = Te(/safari/i) && !Te(/chrome/i) && !Te(/android/i), di = Te(/iP(ad|od|hone)/i), lo = Te(/chrome/i) && Te(/android/i), so = {
|
|
1414
1414
|
capture: !1,
|
|
1415
1415
|
passive: !1
|
|
1416
1416
|
};
|
|
1417
1417
|
function A(r, e, t) {
|
|
1418
|
-
r.addEventListener(e, t, !
|
|
1418
|
+
r.addEventListener(e, t, !De && so);
|
|
1419
1419
|
}
|
|
1420
1420
|
function E(r, e, t) {
|
|
1421
|
-
r.removeEventListener(e, t, !
|
|
1421
|
+
r.removeEventListener(e, t, !De && so);
|
|
1422
1422
|
}
|
|
1423
1423
|
function Qt(r, e) {
|
|
1424
1424
|
if (e) {
|
|
@@ -1450,14 +1450,14 @@ function we(r, e, t, i) {
|
|
|
1450
1450
|
}
|
|
1451
1451
|
return null;
|
|
1452
1452
|
}
|
|
1453
|
-
var
|
|
1453
|
+
var Pi = /\s+/g;
|
|
1454
1454
|
function ge(r, e, t) {
|
|
1455
1455
|
if (r && e)
|
|
1456
1456
|
if (r.classList)
|
|
1457
1457
|
r.classList[t ? "add" : "remove"](e);
|
|
1458
1458
|
else {
|
|
1459
|
-
var i = (" " + r.className + " ").replace(
|
|
1460
|
-
r.className = (i + (t ? " " + e : "")).replace(
|
|
1459
|
+
var i = (" " + r.className + " ").replace(Pi, " ").replace(" " + e + " ", " ");
|
|
1460
|
+
r.className = (i + (t ? " " + e : "")).replace(Pi, " ");
|
|
1461
1461
|
}
|
|
1462
1462
|
}
|
|
1463
1463
|
function x(r, e, t) {
|
|
@@ -1490,14 +1490,14 @@ function uo(r, e, t) {
|
|
|
1490
1490
|
}
|
|
1491
1491
|
return [];
|
|
1492
1492
|
}
|
|
1493
|
-
function
|
|
1493
|
+
function Se() {
|
|
1494
1494
|
var r = document.scrollingElement;
|
|
1495
1495
|
return r || document.documentElement;
|
|
1496
1496
|
}
|
|
1497
1497
|
function G(r, e, t, i, o) {
|
|
1498
1498
|
if (!(!r.getBoundingClientRect && r !== window)) {
|
|
1499
1499
|
var n, a, l, s, c, u, d;
|
|
1500
|
-
if (r !== window && r.parentNode && r !==
|
|
1500
|
+
if (r !== window && r.parentNode && r !== Se() ? (n = r.getBoundingClientRect(), a = n.top, l = n.left, s = n.bottom, c = n.right, u = n.height, d = n.width) : (a = 0, l = 0, s = window.innerHeight, c = window.innerWidth, u = window.innerHeight, d = window.innerWidth), (e || t) && r !== window && (o = o || r.parentNode, !De))
|
|
1501
1501
|
do
|
|
1502
1502
|
if (o && o.getBoundingClientRect && (x(o, "transform") !== "none" || t && x(o, "position") !== "static")) {
|
|
1503
1503
|
var m = o.getBoundingClientRect();
|
|
@@ -1506,8 +1506,8 @@ function G(r, e, t, i, o) {
|
|
|
1506
1506
|
}
|
|
1507
1507
|
while (o = o.parentNode);
|
|
1508
1508
|
if (i && r !== window) {
|
|
1509
|
-
var
|
|
1510
|
-
|
|
1509
|
+
var f = lt(o || r), h = f && f.a, b = f && f.d;
|
|
1510
|
+
f && (a /= b, l /= h, d /= h, u /= b, s = a + u, c = l + d);
|
|
1511
1511
|
}
|
|
1512
1512
|
return {
|
|
1513
1513
|
top: a,
|
|
@@ -1519,11 +1519,11 @@ function G(r, e, t, i, o) {
|
|
|
1519
1519
|
};
|
|
1520
1520
|
}
|
|
1521
1521
|
}
|
|
1522
|
-
function
|
|
1522
|
+
function Di(r, e, t) {
|
|
1523
1523
|
for (var i = Ne(r, !0), o = G(r)[e]; i; ) {
|
|
1524
1524
|
var n = G(i)[t], a = void 0;
|
|
1525
1525
|
if (a = o >= n, !a) return i;
|
|
1526
|
-
if (i ===
|
|
1526
|
+
if (i === Se()) break;
|
|
1527
1527
|
i = Ne(i, !1);
|
|
1528
1528
|
}
|
|
1529
1529
|
return !1;
|
|
@@ -1544,7 +1544,7 @@ function ui(r, e) {
|
|
|
1544
1544
|
t = t.previousElementSibling;
|
|
1545
1545
|
return t || null;
|
|
1546
1546
|
}
|
|
1547
|
-
function
|
|
1547
|
+
function ve(r, e) {
|
|
1548
1548
|
var t = 0;
|
|
1549
1549
|
if (!r || !r.parentNode)
|
|
1550
1550
|
return -1;
|
|
@@ -1553,7 +1553,7 @@ function ye(r, e) {
|
|
|
1553
1553
|
return t;
|
|
1554
1554
|
}
|
|
1555
1555
|
function Ri(r) {
|
|
1556
|
-
var e = 0, t = 0, i =
|
|
1556
|
+
var e = 0, t = 0, i = Se();
|
|
1557
1557
|
if (r)
|
|
1558
1558
|
do {
|
|
1559
1559
|
var o = lt(r), n = o.a, a = o.d;
|
|
@@ -1570,19 +1570,19 @@ function Sa(r, e) {
|
|
|
1570
1570
|
return -1;
|
|
1571
1571
|
}
|
|
1572
1572
|
function Ne(r, e) {
|
|
1573
|
-
if (!r || !r.getBoundingClientRect) return
|
|
1573
|
+
if (!r || !r.getBoundingClientRect) return Se();
|
|
1574
1574
|
var t = r, i = !1;
|
|
1575
1575
|
do
|
|
1576
1576
|
if (t.clientWidth < t.scrollWidth || t.clientHeight < t.scrollHeight) {
|
|
1577
1577
|
var o = x(t);
|
|
1578
1578
|
if (t.clientWidth < t.scrollWidth && (o.overflowX == "auto" || o.overflowX == "scroll") || t.clientHeight < t.scrollHeight && (o.overflowY == "auto" || o.overflowY == "scroll")) {
|
|
1579
|
-
if (!t.getBoundingClientRect || t === document.body) return
|
|
1579
|
+
if (!t.getBoundingClientRect || t === document.body) return Se();
|
|
1580
1580
|
if (i || e) return t;
|
|
1581
1581
|
i = !0;
|
|
1582
1582
|
}
|
|
1583
1583
|
}
|
|
1584
1584
|
while (t = t.parentNode);
|
|
1585
|
-
return
|
|
1585
|
+
return Se();
|
|
1586
1586
|
}
|
|
1587
1587
|
function za(r, e) {
|
|
1588
1588
|
if (r && e)
|
|
@@ -1637,7 +1637,7 @@ function Aa() {
|
|
|
1637
1637
|
target: o,
|
|
1638
1638
|
rect: G(o)
|
|
1639
1639
|
});
|
|
1640
|
-
var n =
|
|
1640
|
+
var n = ze({}, r[r.length - 1].rect);
|
|
1641
1641
|
if (o.thisAnimationDuration) {
|
|
1642
1642
|
var a = lt(o, !0);
|
|
1643
1643
|
a && (n.top -= a.f, n.left -= a.e);
|
|
@@ -1663,9 +1663,9 @@ function Aa() {
|
|
|
1663
1663
|
}
|
|
1664
1664
|
var n = !1, a = 0;
|
|
1665
1665
|
r.forEach(function(l) {
|
|
1666
|
-
var s = 0, c = l.target, u = c.fromRect, d = G(c), m = c.prevFromRect,
|
|
1667
|
-
|
|
1668
|
-
(
|
|
1666
|
+
var s = 0, c = l.target, u = c.fromRect, d = G(c), m = c.prevFromRect, f = c.prevToRect, h = l.rect, b = lt(c, !0);
|
|
1667
|
+
b && (d.top -= b.f, d.left -= b.e), c.toRect = d, c.thisAnimationDuration && Ir(m, d) && !Ir(u, d) && // Make sure animatingRect is on line between toRect & fromRect
|
|
1668
|
+
(h.top - d.top) / (h.left - d.left) === (u.top - d.top) / (u.left - d.left) && (s = Ta(h, m, f, o.options)), Ir(d, u) || (c.prevFromRect = u, c.prevToRect = d, s || (s = o.options.animation), o.animate(c, h, d, s)), s && (n = !0, a = Math.max(a, s), clearTimeout(c.animationResetTimer), c.animationResetTimer = setTimeout(function() {
|
|
1669
1669
|
c.animationTime = 0, c.prevFromRect = null, c.fromRect = null, c.prevToRect = null, c.thisAnimationDuration = null;
|
|
1670
1670
|
}, s), c.thisAnimationDuration = s);
|
|
1671
1671
|
}), clearTimeout(e), n ? e = setTimeout(function() {
|
|
@@ -1707,9 +1707,9 @@ var et = [], Mr = {
|
|
|
1707
1707
|
};
|
|
1708
1708
|
var n = e + "Global";
|
|
1709
1709
|
et.forEach(function(a) {
|
|
1710
|
-
t[a.pluginName] && (t[a.pluginName][n] && t[a.pluginName][n](
|
|
1710
|
+
t[a.pluginName] && (t[a.pluginName][n] && t[a.pluginName][n](ze({
|
|
1711
1711
|
sortable: t
|
|
1712
|
-
}, i)), t.options[a.pluginName] && t[a.pluginName][e] && t[a.pluginName][e](
|
|
1712
|
+
}, i)), t.options[a.pluginName] && t[a.pluginName][e] && t[a.pluginName][e](ze({
|
|
1713
1713
|
sortable: t
|
|
1714
1714
|
}, i)));
|
|
1715
1715
|
});
|
|
@@ -1719,7 +1719,7 @@ var et = [], Mr = {
|
|
|
1719
1719
|
var s = l.pluginName;
|
|
1720
1720
|
if (!(!e.options[s] && !l.initializeByDefault)) {
|
|
1721
1721
|
var c = new l(e, t, e.options);
|
|
1722
|
-
c.sortable = e, c.options = e.options, e[s] = c,
|
|
1722
|
+
c.sortable = e, c.options = e.options, e[s] = c, Pe(i, c.defaults);
|
|
1723
1723
|
}
|
|
1724
1724
|
});
|
|
1725
1725
|
for (var n in e.options)
|
|
@@ -1731,7 +1731,7 @@ var et = [], Mr = {
|
|
|
1731
1731
|
getEventProperties: function(e, t) {
|
|
1732
1732
|
var i = {};
|
|
1733
1733
|
return et.forEach(function(o) {
|
|
1734
|
-
typeof o.eventProperties == "function" &&
|
|
1734
|
+
typeof o.eventProperties == "function" && Pe(i, o.eventProperties.call(t[o.pluginName], e));
|
|
1735
1735
|
}), i;
|
|
1736
1736
|
},
|
|
1737
1737
|
modifyOption: function(e, t, i) {
|
|
@@ -1742,22 +1742,22 @@ var et = [], Mr = {
|
|
|
1742
1742
|
}
|
|
1743
1743
|
};
|
|
1744
1744
|
function La(r) {
|
|
1745
|
-
var e = r.sortable, t = r.rootEl, i = r.name, o = r.targetEl, n = r.cloneEl, a = r.toEl, l = r.fromEl, s = r.oldIndex, c = r.newIndex, u = r.oldDraggableIndex, d = r.newDraggableIndex, m = r.originalEvent,
|
|
1745
|
+
var e = r.sortable, t = r.rootEl, i = r.name, o = r.targetEl, n = r.cloneEl, a = r.toEl, l = r.fromEl, s = r.oldIndex, c = r.newIndex, u = r.oldDraggableIndex, d = r.newDraggableIndex, m = r.originalEvent, f = r.putSortable, h = r.extraEventProperties;
|
|
1746
1746
|
if (e = e || t && t[he], !!e) {
|
|
1747
|
-
var
|
|
1748
|
-
window.CustomEvent && !
|
|
1747
|
+
var b, R = e.options, J = "on" + i.charAt(0).toUpperCase() + i.substr(1);
|
|
1748
|
+
window.CustomEvent && !De && !Rt ? b = new CustomEvent(i, {
|
|
1749
1749
|
bubbles: !0,
|
|
1750
1750
|
cancelable: !0
|
|
1751
|
-
}) : (
|
|
1752
|
-
var U =
|
|
1751
|
+
}) : (b = document.createEvent("Event"), b.initEvent(i, !0, !0)), b.to = a || t, b.from = l || t, b.item = o || t, b.clone = n, b.oldIndex = s, b.newIndex = c, b.oldDraggableIndex = u, b.newDraggableIndex = d, b.originalEvent = m, b.pullMode = f ? f.lastPutMode : void 0;
|
|
1752
|
+
var U = ze(ze({}, h), Ht.getEventProperties(i, e));
|
|
1753
1753
|
for (var ae in U)
|
|
1754
|
-
|
|
1755
|
-
t && t.dispatchEvent(
|
|
1754
|
+
b[ae] = U[ae];
|
|
1755
|
+
t && t.dispatchEvent(b), R[J] && R[J].call(e, b);
|
|
1756
1756
|
}
|
|
1757
1757
|
}
|
|
1758
|
-
var
|
|
1759
|
-
var i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o = i.evt, n = _a(i,
|
|
1760
|
-
Ht.pluginEvent.bind(k)(e, t,
|
|
1758
|
+
var Pa = ["evt"], pe = function(e, t) {
|
|
1759
|
+
var i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o = i.evt, n = _a(i, Pa);
|
|
1760
|
+
Ht.pluginEvent.bind(k)(e, t, ze({
|
|
1761
1761
|
dragEl: p,
|
|
1762
1762
|
parentEl: F,
|
|
1763
1763
|
ghostEl: w,
|
|
@@ -1792,7 +1792,7 @@ var Da = ["evt"], pe = function(e, t) {
|
|
|
1792
1792
|
}, n));
|
|
1793
1793
|
};
|
|
1794
1794
|
function le(r) {
|
|
1795
|
-
La(
|
|
1795
|
+
La(ze({
|
|
1796
1796
|
putSortable: te,
|
|
1797
1797
|
cloneEl: B,
|
|
1798
1798
|
targetEl: p,
|
|
@@ -1803,9 +1803,9 @@ function le(r) {
|
|
|
1803
1803
|
newDraggableIndex: Oe
|
|
1804
1804
|
}, r));
|
|
1805
1805
|
}
|
|
1806
|
-
var p, F, w, M, Ge, Ft, B, Me, at, be, _t, Oe, Mt, te, it = !1, er = !1, tr = [], Ye, ke, Vr, Nr, Hi, Oi, gt, tt, $t, St = !1, Vt = !1, Xt, ne, Br = [], Gr = !1, rr = [], zr = typeof document < "u", Nt = di, Ii = Rt ||
|
|
1806
|
+
var p, F, w, M, Ge, Ft, B, Me, at, be, _t, Oe, Mt, te, it = !1, er = !1, tr = [], Ye, ke, Vr, Nr, Hi, Oi, gt, tt, $t, St = !1, Vt = !1, Xt, ne, Br = [], Gr = !1, rr = [], zr = typeof document < "u", Nt = di, Ii = Rt || De ? "cssFloat" : "float", Da = zr && !lo && !di && "draggable" in document.createElement("div"), go = function() {
|
|
1807
1807
|
if (zr) {
|
|
1808
|
-
if (
|
|
1808
|
+
if (De)
|
|
1809
1809
|
return !1;
|
|
1810
1810
|
var r = document.createElement("x");
|
|
1811
1811
|
return r.style.cssText = "pointer-events:auto", r.style.pointerEvents === "auto";
|
|
@@ -1880,7 +1880,7 @@ var We = function(e) {
|
|
|
1880
1880
|
function k(r, e) {
|
|
1881
1881
|
if (!(r && r.nodeType && r.nodeType === 1))
|
|
1882
1882
|
throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(r));
|
|
1883
|
-
this.el = r, this.options = e =
|
|
1883
|
+
this.el = r, this.options = e = Pe({}, e), r[he] = this;
|
|
1884
1884
|
var t = {
|
|
1885
1885
|
group: null,
|
|
1886
1886
|
sort: !0,
|
|
@@ -1933,7 +1933,7 @@ function k(r, e) {
|
|
|
1933
1933
|
yo(e);
|
|
1934
1934
|
for (var o in this)
|
|
1935
1935
|
o.charAt(0) === "_" && typeof this[o] == "function" && (this[o] = this[o].bind(this));
|
|
1936
|
-
this.nativeDraggable = e.forceFallback ? !1 :
|
|
1936
|
+
this.nativeDraggable = e.forceFallback ? !1 : Da, this.nativeDraggable && (this.options.touchStartThreshold = 1), e.supportPointer ? A(r, "pointerdown", this._onTapStart) : (A(r, "mousedown", this._onTapStart), A(r, "touchstart", this._onTapStart)), this.nativeDraggable && (A(r, "dragover", this), A(r, "dragenter", this)), tr.push(this.el), e.store && e.store.get && this.sort(e.store.get(this) || []), Pe(this, Aa());
|
|
1937
1937
|
}
|
|
1938
1938
|
k.prototype = /** @lends Sortable.prototype */
|
|
1939
1939
|
{
|
|
@@ -1948,7 +1948,7 @@ k.prototype = /** @lends Sortable.prototype */
|
|
|
1948
1948
|
if (e.cancelable) {
|
|
1949
1949
|
var t = this, i = this.el, o = this.options, n = o.preventOnFilter, a = e.type, l = e.touches && e.touches[0] || e.pointerType && e.pointerType === "touch" && e, s = (l || e).target, c = e.target.shadowRoot && (e.path && e.path[0] || e.composedPath && e.composedPath()[0]) || s, u = o.filter;
|
|
1950
1950
|
if (qa(i), !p && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || o.disabled) && !c.isContentEditable && !(!this.nativeDraggable && kt && s && s.tagName.toUpperCase() === "SELECT") && (s = we(s, o.draggable, i, !1), !(s && s.animated) && Ft !== s)) {
|
|
1951
|
-
if (at =
|
|
1951
|
+
if (at = ve(s), _t = ve(s, o.draggable), typeof u == "function") {
|
|
1952
1952
|
if (u.call(this, e, s, this)) {
|
|
1953
1953
|
le({
|
|
1954
1954
|
sortable: t,
|
|
@@ -2006,7 +2006,7 @@ k.prototype = /** @lends Sortable.prototype */
|
|
|
2006
2006
|
uo(p, u.trim(), Ur);
|
|
2007
2007
|
}), A(l, "dragover", We), A(l, "mousemove", We), A(l, "touchmove", We), a.supportPointer ? (A(l, "pointerup", o._onDrop), !this.nativeDraggable && A(l, "pointercancel", o._onDrop)) : (A(l, "mouseup", o._onDrop), A(l, "touchend", o._onDrop), A(l, "touchcancel", o._onDrop)), Li && this.nativeDraggable && (this.options.touchStartThreshold = 4, p.draggable = !0), pe("delayStart", this, {
|
|
2008
2008
|
evt: e
|
|
2009
|
-
}), a.delay && (!a.delayOnTouchOnly || t) && (!this.nativeDraggable || !(Rt ||
|
|
2009
|
+
}), a.delay && (!a.delayOnTouchOnly || t) && (!this.nativeDraggable || !(Rt || De))) {
|
|
2010
2010
|
if (k.eventCanceled) {
|
|
2011
2011
|
this._onDrop();
|
|
2012
2012
|
return;
|
|
@@ -2101,7 +2101,7 @@ k.prototype = /** @lends Sortable.prototype */
|
|
|
2101
2101
|
if (Nt) {
|
|
2102
2102
|
for (ne = e; x(ne, "position") === "static" && x(ne, "transform") === "none" && ne !== document; )
|
|
2103
2103
|
ne = ne.parentNode;
|
|
2104
|
-
ne !== document.body && ne !== document.documentElement ? (ne === document && (ne =
|
|
2104
|
+
ne !== document.body && ne !== document.documentElement ? (ne === document && (ne = Se()), t.top += ne.scrollTop, t.left += ne.scrollLeft) : ne = Se(), Br = Ri(ne);
|
|
2105
2105
|
}
|
|
2106
2106
|
w = p.cloneNode(!0), ge(w, i.ghostClass, !1), ge(w, i.fallbackClass, !0), ge(w, i.dragClass, !0), x(w, "transition", ""), x(w, "transform", ""), x(w, "box-sizing", "border-box"), x(w, "margin", 0), x(w, "top", t.top), x(w, "left", t.left), x(w, "width", t.width), x(w, "height", t.height), x(w, "opacity", "0.8"), x(w, "position", Nt ? "absolute" : "fixed"), x(w, "zIndex", "100000"), x(w, "pointerEvents", "none"), k.ghost = w, e.appendChild(w), x(w, "transform-origin", Hi / parseInt(w.style.width) * 100 + "% " + Oi / parseInt(w.style.height) * 100 + "%");
|
|
2107
2107
|
}
|
|
@@ -2123,13 +2123,13 @@ k.prototype = /** @lends Sortable.prototype */
|
|
|
2123
2123
|
},
|
|
2124
2124
|
// Returns true - if no further action is needed (either inserted or another condition)
|
|
2125
2125
|
_onDragOver: function(e) {
|
|
2126
|
-
var t = this.el, i = e.target, o, n, a, l = this.options, s = l.group, c = k.active, u = Mt === s, d = l.sort, m = te || c,
|
|
2126
|
+
var t = this.el, i = e.target, o, n, a, l = this.options, s = l.group, c = k.active, u = Mt === s, d = l.sort, m = te || c, f, h = this, b = !1;
|
|
2127
2127
|
if (Gr) return;
|
|
2128
|
-
function
|
|
2129
|
-
pe(fe,
|
|
2128
|
+
function R(fe, je) {
|
|
2129
|
+
pe(fe, h, ze({
|
|
2130
2130
|
evt: e,
|
|
2131
2131
|
isOwner: u,
|
|
2132
|
-
axis:
|
|
2132
|
+
axis: f ? "vertical" : "horizontal",
|
|
2133
2133
|
revert: a,
|
|
2134
2134
|
dragRect: o,
|
|
2135
2135
|
targetRect: n,
|
|
@@ -2137,25 +2137,25 @@ k.prototype = /** @lends Sortable.prototype */
|
|
|
2137
2137
|
fromSortable: m,
|
|
2138
2138
|
target: i,
|
|
2139
2139
|
completed: U,
|
|
2140
|
-
onMove: function(qe,
|
|
2141
|
-
return Bt(M, t, p, o, qe, G(qe), e,
|
|
2140
|
+
onMove: function(qe, Ee) {
|
|
2141
|
+
return Bt(M, t, p, o, qe, G(qe), e, Ee);
|
|
2142
2142
|
},
|
|
2143
2143
|
changed: ae
|
|
2144
2144
|
}, je));
|
|
2145
2145
|
}
|
|
2146
2146
|
function J() {
|
|
2147
|
-
|
|
2147
|
+
R("dragOverAnimationCapture"), h.captureAnimationState(), h !== m && m.captureAnimationState();
|
|
2148
2148
|
}
|
|
2149
2149
|
function U(fe) {
|
|
2150
|
-
return
|
|
2150
|
+
return R("dragOverCompleted", {
|
|
2151
2151
|
insertion: fe
|
|
2152
|
-
}), fe && (u ? c._hideClone() : c._showClone(
|
|
2153
|
-
|
|
2154
|
-
}),
|
|
2152
|
+
}), fe && (u ? c._hideClone() : c._showClone(h), h !== m && (ge(p, te ? te.options.ghostClass : c.options.ghostClass, !1), ge(p, l.ghostClass, !0)), te !== h && h !== k.active ? te = h : h === k.active && te && (te = null), m === h && (h._ignoreWhileAnimating = i), h.animateAll(function() {
|
|
2153
|
+
R("dragOverAnimationComplete"), h._ignoreWhileAnimating = null;
|
|
2154
|
+
}), h !== m && (m.animateAll(), m._ignoreWhileAnimating = null)), (i === p && !p.animated || i === t && !i.animated) && (tt = null), !l.dragoverBubble && !e.rootEl && i !== document && (p.parentNode[he]._isOutsideThisEl(e.target), !fe && We(e)), !l.dragoverBubble && e.stopPropagation && e.stopPropagation(), b = !0;
|
|
2155
2155
|
}
|
|
2156
2156
|
function ae() {
|
|
2157
|
-
be =
|
|
2158
|
-
sortable:
|
|
2157
|
+
be = ve(p), Oe = ve(p, l.draggable), le({
|
|
2158
|
+
sortable: h,
|
|
2159
2159
|
name: "change",
|
|
2160
2160
|
toEl: t,
|
|
2161
2161
|
newIndex: be,
|
|
@@ -2163,20 +2163,20 @@ k.prototype = /** @lends Sortable.prototype */
|
|
|
2163
2163
|
originalEvent: e
|
|
2164
2164
|
});
|
|
2165
2165
|
}
|
|
2166
|
-
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), i = we(i, l.draggable, t, !0),
|
|
2167
|
-
if (p.contains(e.target) || i.animated && i.animatingX && i.animatingY ||
|
|
2166
|
+
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), i = we(i, l.draggable, t, !0), R("dragOver"), k.eventCanceled) return b;
|
|
2167
|
+
if (p.contains(e.target) || i.animated && i.animatingX && i.animatingY || h._ignoreWhileAnimating === i)
|
|
2168
2168
|
return U(!1);
|
|
2169
2169
|
if (er = !1, c && !l.disabled && (u ? d || (a = F !== M) : te === this || (this.lastPutMode = Mt.checkPull(this, c, p, e)) && s.checkPut(this, c, p, e))) {
|
|
2170
|
-
if (
|
|
2170
|
+
if (f = this._getDirection(e, i) === "vertical", o = G(p), R("dragOverValid"), k.eventCanceled) return b;
|
|
2171
2171
|
if (a)
|
|
2172
|
-
return F = M, J(), this._hideClone(),
|
|
2172
|
+
return F = M, J(), this._hideClone(), R("revert"), k.eventCanceled || (Ge ? M.insertBefore(p, Ge) : M.appendChild(p)), U(!0);
|
|
2173
2173
|
var K = ui(t, l.draggable);
|
|
2174
|
-
if (!K || Na(e,
|
|
2174
|
+
if (!K || Na(e, f, this) && !K.animated) {
|
|
2175
2175
|
if (K === p)
|
|
2176
2176
|
return U(!1);
|
|
2177
2177
|
if (K && t === e.target && (i = K), i && (n = G(i)), Bt(M, t, p, o, i, n, e, !!i) !== !1)
|
|
2178
2178
|
return J(), K && K.nextSibling ? t.insertBefore(p, K.nextSibling) : t.appendChild(p), F = t, ae(), U(!0);
|
|
2179
|
-
} else if (K && Va(e,
|
|
2179
|
+
} else if (K && Va(e, f, this)) {
|
|
2180
2180
|
var _ = dt(t, 0, l, !0);
|
|
2181
2181
|
if (_ === p)
|
|
2182
2182
|
return U(!1);
|
|
@@ -2184,20 +2184,20 @@ k.prototype = /** @lends Sortable.prototype */
|
|
|
2184
2184
|
return J(), t.insertBefore(p, _), F = t, ae(), U(!0);
|
|
2185
2185
|
} else if (i.parentNode === t) {
|
|
2186
2186
|
n = G(i);
|
|
2187
|
-
var
|
|
2188
|
-
tt !== i && (z = n[Z], St = !1, Vt = !L && l.invertSwap ||
|
|
2189
|
-
var
|
|
2190
|
-
if (
|
|
2191
|
-
var X =
|
|
2187
|
+
var y = 0, z, H = p.parentNode !== t, L = !Ra(p.animated && p.toRect || o, i.animated && i.toRect || n, f), Z = f ? "top" : "left", Y = Di(i, "top", "top") || Di(p, "top", "top"), I = Y ? Y.scrollTop : void 0;
|
|
2188
|
+
tt !== i && (z = n[Z], St = !1, Vt = !L && l.invertSwap || H), y = Ba(e, i, n, f, L ? 1 : l.swapThreshold, l.invertedSwapThreshold == null ? l.swapThreshold : l.invertedSwapThreshold, Vt, tt === i);
|
|
2189
|
+
var P;
|
|
2190
|
+
if (y !== 0) {
|
|
2191
|
+
var X = ve(p);
|
|
2192
2192
|
do
|
|
2193
|
-
X -=
|
|
2194
|
-
while (
|
|
2193
|
+
X -= y, P = F.children[X];
|
|
2194
|
+
while (P && (x(P, "display") === "none" || P === w));
|
|
2195
2195
|
}
|
|
2196
|
-
if (
|
|
2196
|
+
if (y === 0 || P === i)
|
|
2197
2197
|
return U(!1);
|
|
2198
|
-
tt = i, $t =
|
|
2198
|
+
tt = i, $t = y;
|
|
2199
2199
|
var ce = i.nextElementSibling, ee = !1;
|
|
2200
|
-
ee =
|
|
2200
|
+
ee = y === 1;
|
|
2201
2201
|
var de = Bt(M, t, p, o, i, n, e, ee);
|
|
2202
2202
|
if (de !== !1)
|
|
2203
2203
|
return (de === 1 || de === -1) && (ee = de === 1), Gr = !0, setTimeout(Ma, 30), J(), ee && !ce ? t.appendChild(p) : i.parentNode.insertBefore(p, ee ? ce : i), Y && mo(Y, 0, I - Y.scrollTop), F = p.parentNode, z !== void 0 && !Vt && (Xt = Math.abs(z - G(i)[Z])), ae(), U(!0);
|
|
@@ -2217,9 +2217,9 @@ k.prototype = /** @lends Sortable.prototype */
|
|
|
2217
2217
|
},
|
|
2218
2218
|
_onDrop: function(e) {
|
|
2219
2219
|
var t = this.el, i = this.options;
|
|
2220
|
-
if (be =
|
|
2220
|
+
if (be = ve(p), Oe = ve(p, i.draggable), pe("drop", this, {
|
|
2221
2221
|
evt: e
|
|
2222
|
-
}), F = p && p.parentNode, be =
|
|
2222
|
+
}), F = p && p.parentNode, be = ve(p), Oe = ve(p, i.draggable), k.eventCanceled) {
|
|
2223
2223
|
this._nulling();
|
|
2224
2224
|
return;
|
|
2225
2225
|
}
|
|
@@ -2372,7 +2372,7 @@ function Ia(r) {
|
|
|
2372
2372
|
}
|
|
2373
2373
|
function Bt(r, e, t, i, o, n, a, l) {
|
|
2374
2374
|
var s, c = r[he], u = c.options.onMove, d;
|
|
2375
|
-
return window.CustomEvent && !
|
|
2375
|
+
return window.CustomEvent && !De && !Rt ? s = new CustomEvent("move", {
|
|
2376
2376
|
bubbles: !0,
|
|
2377
2377
|
cancelable: !0
|
|
2378
2378
|
}) : (s = document.createEvent("Event"), s.initEvent("move", !0, !0)), s.to = e, s.from = r, s.dragged = t, s.draggedRect = i, s.related = o || e, s.relatedRect = n || G(e), s.willInsertAfter = l, s.originalEvent = a, r.dispatchEvent(s), u && (d = u.call(c, s, a)), d;
|
|
@@ -2405,7 +2405,7 @@ function Ba(r, e, t, i, o, n, a, l) {
|
|
|
2405
2405
|
return m = m || a, m && (s < u + c * n / 2 || s > d - c * n / 2) ? s > u + c / 2 ? 1 : -1 : 0;
|
|
2406
2406
|
}
|
|
2407
2407
|
function Ua(r) {
|
|
2408
|
-
return
|
|
2408
|
+
return ve(p) < ve(r) ? 1 : -1;
|
|
2409
2409
|
}
|
|
2410
2410
|
function ja(r) {
|
|
2411
2411
|
for (var e = r.tagName + r.className + r.src + r.href + r.textContent, t = e.length, i = 0; t--; )
|
|
@@ -2441,7 +2441,7 @@ k.utils = {
|
|
|
2441
2441
|
closest: we,
|
|
2442
2442
|
toggleClass: ge,
|
|
2443
2443
|
clone: ho,
|
|
2444
|
-
index:
|
|
2444
|
+
index: ve,
|
|
2445
2445
|
nextTick: Zt,
|
|
2446
2446
|
cancelNextTick: Jr,
|
|
2447
2447
|
detectDirection: bo,
|
|
@@ -2457,7 +2457,7 @@ k.mount = function() {
|
|
|
2457
2457
|
e[0].constructor === Array && (e = e[0]), e.forEach(function(i) {
|
|
2458
2458
|
if (!i.prototype || !i.prototype.constructor)
|
|
2459
2459
|
throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(i));
|
|
2460
|
-
i.utils && (k.utils =
|
|
2460
|
+
i.utils && (k.utils = ze(ze({}, k.utils), i.utils)), Ht.mount(i);
|
|
2461
2461
|
});
|
|
2462
2462
|
};
|
|
2463
2463
|
k.create = function(r, e) {
|
|
@@ -2497,7 +2497,7 @@ function Fa() {
|
|
|
2497
2497
|
},
|
|
2498
2498
|
_handleAutoScroll: function(t, i) {
|
|
2499
2499
|
var o = this, n = (t.touches ? t.touches[0] : t).clientX, a = (t.touches ? t.touches[0] : t).clientY, l = document.elementFromPoint(n, a);
|
|
2500
|
-
if (ir = t, i || this.options.forceAutoScrollFallback || Rt ||
|
|
2500
|
+
if (ir = t, i || this.options.forceAutoScrollFallback || Rt || De || kt) {
|
|
2501
2501
|
Fr(t, this.options, l, i);
|
|
2502
2502
|
var s = Ne(l, !0);
|
|
2503
2503
|
Qr && (!yt || n !== jr || a !== qr) && (yt && Mi(), yt = setInterval(function() {
|
|
@@ -2505,14 +2505,14 @@ function Fa() {
|
|
|
2505
2505
|
c !== s && (s = c, Yt()), Fr(t, o.options, c, i);
|
|
2506
2506
|
}, 10), jr = n, qr = a);
|
|
2507
2507
|
} else {
|
|
2508
|
-
if (!this.options.bubbleScroll || Ne(l, !0) ===
|
|
2508
|
+
if (!this.options.bubbleScroll || Ne(l, !0) === Se()) {
|
|
2509
2509
|
Yt();
|
|
2510
2510
|
return;
|
|
2511
2511
|
}
|
|
2512
2512
|
Fr(t, this.options, Ne(l, !1), !1);
|
|
2513
2513
|
}
|
|
2514
2514
|
}
|
|
2515
|
-
},
|
|
2515
|
+
}, Pe(r, {
|
|
2516
2516
|
pluginName: "scroll",
|
|
2517
2517
|
initializeByDefault: !0
|
|
2518
2518
|
});
|
|
@@ -2527,17 +2527,17 @@ function Mi() {
|
|
|
2527
2527
|
}
|
|
2528
2528
|
var Fr = po(function(r, e, t, i) {
|
|
2529
2529
|
if (e.scroll) {
|
|
2530
|
-
var o = (r.touches ? r.touches[0] : r).clientX, n = (r.touches ? r.touches[0] : r).clientY, a = e.scrollSensitivity, l = e.scrollSpeed, s =
|
|
2530
|
+
var o = (r.touches ? r.touches[0] : r).clientX, n = (r.touches ? r.touches[0] : r).clientY, a = e.scrollSensitivity, l = e.scrollSpeed, s = Se(), c = !1, u;
|
|
2531
2531
|
Kr !== t && (Kr = t, Yt(), bt = e.scroll, u = e.scrollFn, bt === !0 && (bt = Ne(t, !0)));
|
|
2532
2532
|
var d = 0, m = bt;
|
|
2533
2533
|
do {
|
|
2534
|
-
var
|
|
2535
|
-
|
|
2536
|
-
var I = _ && (Math.abs(U - o) <= a && Z + ae < z) - (Math.abs(J - o) <= a && !!Z),
|
|
2534
|
+
var f = m, h = G(f), b = h.top, R = h.bottom, J = h.left, U = h.right, ae = h.width, K = h.height, _ = void 0, y = void 0, z = f.scrollWidth, H = f.scrollHeight, L = x(f), Z = f.scrollLeft, Y = f.scrollTop;
|
|
2535
|
+
f === s ? (_ = ae < z && (L.overflowX === "auto" || L.overflowX === "scroll" || L.overflowX === "visible"), y = K < H && (L.overflowY === "auto" || L.overflowY === "scroll" || L.overflowY === "visible")) : (_ = ae < z && (L.overflowX === "auto" || L.overflowX === "scroll"), y = K < H && (L.overflowY === "auto" || L.overflowY === "scroll"));
|
|
2536
|
+
var I = _ && (Math.abs(U - o) <= a && Z + ae < z) - (Math.abs(J - o) <= a && !!Z), P = y && (Math.abs(R - n) <= a && Y + K < H) - (Math.abs(b - n) <= a && !!Y);
|
|
2537
2537
|
if (!W[d])
|
|
2538
2538
|
for (var X = 0; X <= d; X++)
|
|
2539
2539
|
W[X] || (W[X] = {});
|
|
2540
|
-
(W[d].vx != I || W[d].vy !=
|
|
2540
|
+
(W[d].vx != I || W[d].vy != P || W[d].el !== f) && (W[d].el = f, W[d].vx = I, W[d].vy = P, clearInterval(W[d].pid), (I != 0 || P != 0) && (c = !0, W[d].pid = setInterval((function() {
|
|
2541
2541
|
i && this.layer === 0 && k.active._onTouchMove(ir);
|
|
2542
2542
|
var ce = W[this.layer].vy ? W[this.layer].vy * l : 0, ee = W[this.layer].vx ? W[this.layer].vx * l : 0;
|
|
2543
2543
|
typeof u == "function" && u.call(k.dragged.parentNode[he], ee, ce, r, ir, W[this.layer].el) !== "continue" || mo(W[this.layer].el, ee, ce);
|
|
@@ -2575,7 +2575,7 @@ pi.prototype = {
|
|
|
2575
2575
|
},
|
|
2576
2576
|
drop: ko
|
|
2577
2577
|
};
|
|
2578
|
-
|
|
2578
|
+
Pe(pi, {
|
|
2579
2579
|
pluginName: "revertOnSpill"
|
|
2580
2580
|
});
|
|
2581
2581
|
function mi() {
|
|
@@ -2587,7 +2587,7 @@ mi.prototype = {
|
|
|
2587
2587
|
},
|
|
2588
2588
|
drop: ko
|
|
2589
2589
|
};
|
|
2590
|
-
|
|
2590
|
+
Pe(mi, {
|
|
2591
2591
|
pluginName: "removeOnSpill"
|
|
2592
2592
|
});
|
|
2593
2593
|
k.mount(new Fa());
|
|
@@ -2600,24 +2600,24 @@ const Xa = (r) => {
|
|
|
2600
2600
|
), t;
|
|
2601
2601
|
}, Za = (r, e, t, i, o, n) => {
|
|
2602
2602
|
const l = r.item.parentNode;
|
|
2603
|
-
for (const
|
|
2604
|
-
l.appendChild(
|
|
2603
|
+
for (const b of t)
|
|
2604
|
+
l.appendChild(b);
|
|
2605
2605
|
if (r.oldIndex == r.newIndex) return;
|
|
2606
2606
|
const s = i.getArray(), c = (
|
|
2607
2607
|
/** @type {Element & {layer: import("ol/layer").Layer}} */
|
|
2608
2608
|
r.item.querySelector("eox-layercontrol-layer").layer.get(o)
|
|
2609
|
-
), u = s.find((
|
|
2610
|
-
(
|
|
2609
|
+
), u = s.find((b) => b.get(o) === c), d = n.dataset.layer, m = s.find(
|
|
2610
|
+
(b) => b.get(o) == d
|
|
2611
2611
|
);
|
|
2612
|
-
let
|
|
2613
|
-
for (
|
|
2614
|
-
if (s[
|
|
2615
|
-
i.removeAt(
|
|
2612
|
+
let f, h;
|
|
2613
|
+
for (f = 0; f < s.length; f++)
|
|
2614
|
+
if (s[f] == u) {
|
|
2615
|
+
i.removeAt(f);
|
|
2616
2616
|
break;
|
|
2617
2617
|
}
|
|
2618
|
-
for (
|
|
2619
|
-
if (s[
|
|
2620
|
-
|
|
2618
|
+
for (h = 0; h < s.length; h++)
|
|
2619
|
+
if (s[h] === m) {
|
|
2620
|
+
f > h ? i.insertAt(h, u) : i.insertAt(h + 1, u);
|
|
2621
2621
|
break;
|
|
2622
2622
|
}
|
|
2623
2623
|
e.requestUpdate();
|
|
@@ -2750,9 +2750,9 @@ const el = (r, e) => {
|
|
|
2750
2750
|
if (!("boundTo" in n))
|
|
2751
2751
|
return !0;
|
|
2752
2752
|
const a = n.boundTo.key, l = n.boundTo.value;
|
|
2753
|
-
return
|
|
2754
|
-
}), i.length || (i =
|
|
2755
|
-
i.map((n) => {
|
|
2753
|
+
return a in t && t[a] == l;
|
|
2754
|
+
}), i.length || (i = null), /** @type {import("../components/layer-legend").LegendConfig[] | null} */
|
|
2755
|
+
i == null ? void 0 : i.map((n) => {
|
|
2756
2756
|
var a;
|
|
2757
2757
|
return delete n.boundTo, !("domainProperties" in n) || "domain" in n ? n : (a = Object.keys(n)) == null ? void 0 : a.reduce(
|
|
2758
2758
|
(l, s) => (s === "domainProperties" ? l.domain = n[s].map((c) => t[c]) : l[s] = n[s], l),
|
|
@@ -2779,7 +2779,7 @@ function _o(r, e) {
|
|
|
2779
2779
|
return t;
|
|
2780
2780
|
}
|
|
2781
2781
|
function tl(r, e) {
|
|
2782
|
-
var n, a, l, s, c;
|
|
2782
|
+
var n, a, l, s, c, u, d;
|
|
2783
2783
|
if (!e) return null;
|
|
2784
2784
|
let t = {}, i = "updateStyleVariables" in r ? (
|
|
2785
2785
|
/** @type {import("ol/layer/WebGLTile").default} */
|
|
@@ -2788,11 +2788,15 @@ function tl(r, e) {
|
|
|
2788
2788
|
if ((e.type === "style" || e.style) && i)
|
|
2789
2789
|
t = i;
|
|
2790
2790
|
else if ((s = (l = r.getSource()) == null ? void 0 : l.getTileUrlFunction) != null && s.call(l)) {
|
|
2791
|
-
const
|
|
2792
|
-
|
|
2791
|
+
const m = new URL(r.getSource().getTileUrlFunction()([0, 0, 0]));
|
|
2792
|
+
(((u = (c = e.schema) == null ? void 0 : c.options) == null ? void 0 : u.removeProperties) ?? []).forEach((h) => m.searchParams.delete(h)), t = {};
|
|
2793
|
+
for (const [h, b] of m.searchParams.entries()) {
|
|
2794
|
+
const R = m.searchParams.getAll(h);
|
|
2795
|
+
t[h] = R.length > 1 ? R : b;
|
|
2796
|
+
}
|
|
2793
2797
|
} else return null;
|
|
2794
2798
|
const o = _o(
|
|
2795
|
-
((
|
|
2799
|
+
((d = e.schema) == null ? void 0 : d.properties) || e.schema,
|
|
2796
2800
|
t
|
|
2797
2801
|
);
|
|
2798
2802
|
return Object.keys(o).length ? o : null;
|
|
@@ -2906,7 +2910,7 @@ const To = ai(class extends li {
|
|
|
2906
2910
|
return r;
|
|
2907
2911
|
}
|
|
2908
2912
|
update(r, [e]) {
|
|
2909
|
-
if (e === xe || e ===
|
|
2913
|
+
if (e === xe || e === D) return e;
|
|
2910
2914
|
const t = r.element, i = r.name;
|
|
2911
2915
|
if (r.type === He.PROPERTY) {
|
|
2912
2916
|
if (e === t[i]) return xe;
|
|
@@ -2923,10 +2927,10 @@ const To = ai(class extends li {
|
|
|
2923
2927
|
*/
|
|
2924
2928
|
class ei extends li {
|
|
2925
2929
|
constructor(e) {
|
|
2926
|
-
if (super(e), this.it =
|
|
2930
|
+
if (super(e), this.it = D, e.type !== He.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
|
2927
2931
|
}
|
|
2928
2932
|
render(e) {
|
|
2929
|
-
if (e ===
|
|
2933
|
+
if (e === D || e == null) return this._t = void 0, this.it = e;
|
|
2930
2934
|
if (e === xe) return e;
|
|
2931
2935
|
if (typeof e != "string") throw Error(this.constructor.directiveName + "() called with a non-string value");
|
|
2932
2936
|
if (e === this.it) return this._t;
|
|
@@ -2957,90 +2961,90 @@ var Xr, Ni;
|
|
|
2957
2961
|
function ol() {
|
|
2958
2962
|
if (Ni) return Xr;
|
|
2959
2963
|
Ni = 1;
|
|
2960
|
-
var r = "Expected a function", e = NaN, t = "[object Symbol]", i = /^\s+|\s+$/g, o = /^[-+]0x[0-9a-f]+$/i, n = /^0b[01]+$/i, a = /^0o[0-7]+$/i, l = parseInt, s = typeof Be == "object" && Be && Be.Object === Object && Be, c = typeof self == "object" && self && self.Object === Object && self, u = s || c || Function("return this")(), d = Object.prototype, m = d.toString,
|
|
2964
|
+
var r = "Expected a function", e = NaN, t = "[object Symbol]", i = /^\s+|\s+$/g, o = /^[-+]0x[0-9a-f]+$/i, n = /^0b[01]+$/i, a = /^0o[0-7]+$/i, l = parseInt, s = typeof Be == "object" && Be && Be.Object === Object && Be, c = typeof self == "object" && self && self.Object === Object && self, u = s || c || Function("return this")(), d = Object.prototype, m = d.toString, f = Math.max, h = Math.min, b = function() {
|
|
2961
2965
|
return u.Date.now();
|
|
2962
2966
|
};
|
|
2963
|
-
function
|
|
2964
|
-
var L, Z, Y, I,
|
|
2965
|
-
if (typeof
|
|
2967
|
+
function R(y, z, H) {
|
|
2968
|
+
var L, Z, Y, I, P, X, ce = 0, ee = !1, de = !1, fe = !0;
|
|
2969
|
+
if (typeof y != "function")
|
|
2966
2970
|
throw new TypeError(r);
|
|
2967
|
-
z = _(z) || 0, U(
|
|
2968
|
-
function je(
|
|
2971
|
+
z = _(z) || 0, U(H) && (ee = !!H.leading, de = "maxWait" in H, Y = de ? f(_(H.maxWait) || 0, z) : Y, fe = "trailing" in H ? !!H.trailing : fe);
|
|
2972
|
+
function je(O) {
|
|
2969
2973
|
var ue = L, Re = Z;
|
|
2970
|
-
return L = Z = void 0, ce =
|
|
2974
|
+
return L = Z = void 0, ce = O, I = y.apply(Re, ue), I;
|
|
2971
2975
|
}
|
|
2972
|
-
function Ot(
|
|
2973
|
-
return ce =
|
|
2976
|
+
function Ot(O) {
|
|
2977
|
+
return ce = O, P = setTimeout(Fe, z), ee ? je(O) : I;
|
|
2974
2978
|
}
|
|
2975
|
-
function qe(
|
|
2976
|
-
var ue =
|
|
2977
|
-
return de ?
|
|
2979
|
+
function qe(O) {
|
|
2980
|
+
var ue = O - X, Re = O - ce, gi = z - ue;
|
|
2981
|
+
return de ? h(gi, Y - Re) : gi;
|
|
2978
2982
|
}
|
|
2979
|
-
function
|
|
2980
|
-
var ue =
|
|
2983
|
+
function Ee(O) {
|
|
2984
|
+
var ue = O - X, Re = O - ce;
|
|
2981
2985
|
return X === void 0 || ue >= z || ue < 0 || de && Re >= Y;
|
|
2982
2986
|
}
|
|
2983
2987
|
function Fe() {
|
|
2984
|
-
var
|
|
2985
|
-
if (
|
|
2986
|
-
return It(
|
|
2987
|
-
|
|
2988
|
+
var O = b();
|
|
2989
|
+
if (Ee(O))
|
|
2990
|
+
return It(O);
|
|
2991
|
+
P = setTimeout(Fe, qe(O));
|
|
2988
2992
|
}
|
|
2989
|
-
function It(
|
|
2990
|
-
return
|
|
2993
|
+
function It(O) {
|
|
2994
|
+
return P = void 0, fe && L ? je(O) : (L = Z = void 0, I);
|
|
2991
2995
|
}
|
|
2992
2996
|
function Ar() {
|
|
2993
|
-
|
|
2997
|
+
P !== void 0 && clearTimeout(P), ce = 0, L = X = Z = P = void 0;
|
|
2994
2998
|
}
|
|
2995
2999
|
function mt() {
|
|
2996
|
-
return
|
|
3000
|
+
return P === void 0 ? I : It(b());
|
|
2997
3001
|
}
|
|
2998
3002
|
function N() {
|
|
2999
|
-
var
|
|
3000
|
-
if (L = arguments, Z = this, X =
|
|
3001
|
-
if (
|
|
3003
|
+
var O = b(), ue = Ee(O);
|
|
3004
|
+
if (L = arguments, Z = this, X = O, ue) {
|
|
3005
|
+
if (P === void 0)
|
|
3002
3006
|
return Ot(X);
|
|
3003
3007
|
if (de)
|
|
3004
|
-
return
|
|
3008
|
+
return P = setTimeout(Fe, z), je(X);
|
|
3005
3009
|
}
|
|
3006
|
-
return
|
|
3010
|
+
return P === void 0 && (P = setTimeout(Fe, z)), I;
|
|
3007
3011
|
}
|
|
3008
3012
|
return N.cancel = Ar, N.flush = mt, N;
|
|
3009
3013
|
}
|
|
3010
|
-
function J(
|
|
3014
|
+
function J(y, z, H) {
|
|
3011
3015
|
var L = !0, Z = !0;
|
|
3012
|
-
if (typeof
|
|
3016
|
+
if (typeof y != "function")
|
|
3013
3017
|
throw new TypeError(r);
|
|
3014
|
-
return U(
|
|
3018
|
+
return U(H) && (L = "leading" in H ? !!H.leading : L, Z = "trailing" in H ? !!H.trailing : Z), R(y, z, {
|
|
3015
3019
|
leading: L,
|
|
3016
3020
|
maxWait: z,
|
|
3017
3021
|
trailing: Z
|
|
3018
3022
|
});
|
|
3019
3023
|
}
|
|
3020
|
-
function U(
|
|
3021
|
-
var z = typeof
|
|
3022
|
-
return !!
|
|
3024
|
+
function U(y) {
|
|
3025
|
+
var z = typeof y;
|
|
3026
|
+
return !!y && (z == "object" || z == "function");
|
|
3023
3027
|
}
|
|
3024
|
-
function ae(
|
|
3025
|
-
return !!
|
|
3028
|
+
function ae(y) {
|
|
3029
|
+
return !!y && typeof y == "object";
|
|
3026
3030
|
}
|
|
3027
|
-
function K(
|
|
3028
|
-
return typeof
|
|
3031
|
+
function K(y) {
|
|
3032
|
+
return typeof y == "symbol" || ae(y) && m.call(y) == t;
|
|
3029
3033
|
}
|
|
3030
|
-
function _(
|
|
3031
|
-
if (typeof
|
|
3032
|
-
return
|
|
3033
|
-
if (K(
|
|
3034
|
+
function _(y) {
|
|
3035
|
+
if (typeof y == "number")
|
|
3036
|
+
return y;
|
|
3037
|
+
if (K(y))
|
|
3034
3038
|
return e;
|
|
3035
|
-
if (U(
|
|
3036
|
-
var z = typeof
|
|
3037
|
-
|
|
3039
|
+
if (U(y)) {
|
|
3040
|
+
var z = typeof y.valueOf == "function" ? y.valueOf() : y;
|
|
3041
|
+
y = U(z) ? z + "" : z;
|
|
3038
3042
|
}
|
|
3039
|
-
if (typeof
|
|
3040
|
-
return
|
|
3041
|
-
|
|
3042
|
-
var
|
|
3043
|
-
return
|
|
3043
|
+
if (typeof y != "string")
|
|
3044
|
+
return y === 0 ? y : +y;
|
|
3045
|
+
y = y.replace(i, "");
|
|
3046
|
+
var H = n.test(y);
|
|
3047
|
+
return H || a.test(y) ? l(y.slice(2), H ? 2 : 8) : o.test(y) ? e : +y;
|
|
3044
3048
|
}
|
|
3045
3049
|
return Xr = J, Xr;
|
|
3046
3050
|
}
|
|
@@ -3051,13 +3055,13 @@ const Bi = /* @__PURE__ */ Lo(nl);
|
|
|
3051
3055
|
* Copyright 2018 Google LLC
|
|
3052
3056
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3053
3057
|
*/
|
|
3054
|
-
const Ut = (r) => r ??
|
|
3055
|
-
var
|
|
3056
|
-
class
|
|
3058
|
+
const Ut = (r) => r ?? D;
|
|
3059
|
+
var ye, or, nr;
|
|
3060
|
+
class Po extends se {
|
|
3057
3061
|
constructor() {
|
|
3058
3062
|
super();
|
|
3059
3063
|
/** @type {(LegendConfig & {id:string})[]}} */
|
|
3060
|
-
T(this,
|
|
3064
|
+
T(this, ye, []);
|
|
3061
3065
|
T(this, or, Yr`
|
|
3062
3066
|
.separator {
|
|
3063
3067
|
margin: 0 0 24px 0;
|
|
@@ -3078,7 +3082,7 @@ class Do extends se {
|
|
|
3078
3082
|
this.unstyled = !1, this.noShadow = !1, this.layer = null;
|
|
3079
3083
|
}
|
|
3080
3084
|
get layerLegend() {
|
|
3081
|
-
return $(this,
|
|
3085
|
+
return $(this, ye) ? $(this, ye).length > 1 ? $(this, ye) : $(this, ye)[0] : null;
|
|
3082
3086
|
}
|
|
3083
3087
|
/**
|
|
3084
3088
|
* Legend configurations
|
|
@@ -3087,18 +3091,18 @@ class Do extends se {
|
|
|
3087
3091
|
**/
|
|
3088
3092
|
set layerLegend(t) {
|
|
3089
3093
|
var i;
|
|
3090
|
-
Array.isArray(t) ?
|
|
3094
|
+
t ? Array.isArray(t) ? _e(this, ye, t.map((o, n) => {
|
|
3091
3095
|
var a;
|
|
3092
3096
|
return {
|
|
3093
3097
|
id: (((a = this.layer) == null ? void 0 : a.get("id")) ?? "") + n,
|
|
3094
3098
|
...o
|
|
3095
3099
|
};
|
|
3096
|
-
})) :
|
|
3100
|
+
})) : _e(this, ye, [
|
|
3097
3101
|
{
|
|
3098
3102
|
id: (((i = this.layer) == null ? void 0 : i.get("id")) ?? "") + 0,
|
|
3099
3103
|
...t
|
|
3100
3104
|
}
|
|
3101
|
-
]);
|
|
3105
|
+
]) : _e(this, ye, null);
|
|
3102
3106
|
}
|
|
3103
3107
|
/**
|
|
3104
3108
|
* Overrides createRenderRoot to handle shadow DOM creation based on the noShadow property.
|
|
@@ -3109,7 +3113,7 @@ class Do extends se {
|
|
|
3109
3113
|
firstUpdated() {
|
|
3110
3114
|
this.layerLegend && new ResizeObserver(() => {
|
|
3111
3115
|
var t;
|
|
3112
|
-
|
|
3116
|
+
_e(this, ye, (t = $(this, ye)) == null ? void 0 : t.map((i) => (this.offsetWidth !== i.width && (i.width = this.offsetWidth), { ...i }))), this.requestUpdate();
|
|
3113
3117
|
}).observe(this.renderRoot.querySelector(".legend-container"));
|
|
3114
3118
|
}
|
|
3115
3119
|
/**
|
|
@@ -3128,7 +3132,7 @@ class Do extends se {
|
|
|
3128
3132
|
() => g`
|
|
3129
3133
|
<div class="legend-container">
|
|
3130
3134
|
<!-- Render color-legend-->
|
|
3131
|
-
${$(this,
|
|
3135
|
+
${$(this, ye).map(
|
|
3132
3136
|
(t, i, o) => g`
|
|
3133
3137
|
<color-legend
|
|
3134
3138
|
id="${t.id}"
|
|
@@ -3145,7 +3149,7 @@ class Do extends se {
|
|
|
3145
3149
|
.marginRight=${8}
|
|
3146
3150
|
>
|
|
3147
3151
|
</color-legend>
|
|
3148
|
-
${i !== o.length - 1 ? g`<div class="separator"></div>` :
|
|
3152
|
+
${i !== o.length - 1 ? g`<div class="separator"></div>` : D}
|
|
3149
3153
|
`
|
|
3150
3154
|
)}
|
|
3151
3155
|
</div>
|
|
@@ -3154,8 +3158,8 @@ class Do extends se {
|
|
|
3154
3158
|
`;
|
|
3155
3159
|
}
|
|
3156
3160
|
}
|
|
3157
|
-
|
|
3158
|
-
j(
|
|
3161
|
+
ye = new WeakMap(), or = new WeakMap(), nr = new WeakMap(), // Define static properties for the component
|
|
3162
|
+
j(Po, "properties", {
|
|
3159
3163
|
unstyled: { type: Boolean },
|
|
3160
3164
|
noShadow: { type: Boolean },
|
|
3161
3165
|
layerLegend: { attribute: !1 },
|
|
@@ -3163,13 +3167,13 @@ j(Do, "properties", {
|
|
|
3163
3167
|
});
|
|
3164
3168
|
customElements.define(
|
|
3165
3169
|
"eox-layercontrol-layer-legend",
|
|
3166
|
-
|
|
3170
|
+
Po
|
|
3167
3171
|
);
|
|
3168
|
-
var Ae, st, Lt,
|
|
3169
|
-
class
|
|
3172
|
+
var Ae, st, Lt, Pt, ti, ar, lr;
|
|
3173
|
+
class Do extends se {
|
|
3170
3174
|
constructor() {
|
|
3171
3175
|
super();
|
|
3172
|
-
T(this,
|
|
3176
|
+
T(this, Pt);
|
|
3173
3177
|
/**
|
|
3174
3178
|
* data input by the user
|
|
3175
3179
|
*
|
|
@@ -3216,7 +3220,7 @@ class Po extends se {
|
|
|
3216
3220
|
margin-bottom: 1rem;
|
|
3217
3221
|
}
|
|
3218
3222
|
`);
|
|
3219
|
-
this.layer = null, this.unstyled = !1, this.noShadow = !1, this.layerConfig = null, this.throttleDataChange = Bi(q(this,
|
|
3223
|
+
this.layer = null, this.unstyled = !1, this.noShadow = !1, this.layerConfig = null, this.throttleDataChange = Bi(q(this, Pt, ti), 1e3), this.customEditorInterfaces = [];
|
|
3220
3224
|
}
|
|
3221
3225
|
/** Decide what type of throttling to do based on layerConfig type
|
|
3222
3226
|
*
|
|
@@ -3225,7 +3229,7 @@ class Po extends se {
|
|
|
3225
3229
|
updated(t) {
|
|
3226
3230
|
if (t.has("layerConfig")) {
|
|
3227
3231
|
const i = this.layerConfig.type === "style" || this.layerConfig.style ? 100 : 1e3;
|
|
3228
|
-
this.throttleDataChange = Bi(q(this,
|
|
3232
|
+
this.throttleDataChange = Bi(q(this, Pt, ti), i), this.requestUpdate();
|
|
3229
3233
|
}
|
|
3230
3234
|
}
|
|
3231
3235
|
/**
|
|
@@ -3238,7 +3242,7 @@ class Po extends se {
|
|
|
3238
3242
|
* Renders a JSON form for configuration options of a layer.
|
|
3239
3243
|
*/
|
|
3240
3244
|
render() {
|
|
3241
|
-
|
|
3245
|
+
_e(this, st, tl(this.layer, this.layerConfig)), Object.keys($(this, Ae)).length !== 0 && _e(this, st, $(this, Ae)), customElements.get("eox-jsonform") || console.error("Please import @eox/jsonform in order to use layerconfig");
|
|
3242
3246
|
const t = {
|
|
3243
3247
|
disable_edit_json: !0,
|
|
3244
3248
|
disable_collapse: !0,
|
|
@@ -3280,15 +3284,15 @@ class Po extends se {
|
|
|
3280
3284
|
`;
|
|
3281
3285
|
}
|
|
3282
3286
|
}
|
|
3283
|
-
Ae = new WeakMap(), st = new WeakMap(), Lt = new WeakMap(),
|
|
3287
|
+
Ae = new WeakMap(), st = new WeakMap(), Lt = new WeakMap(), Pt = new WeakSet(), /**
|
|
3284
3288
|
* Handles changes in eox-jsonform values.
|
|
3285
3289
|
*
|
|
3286
3290
|
* @param {{ detail: { value: string; }; }} e
|
|
3287
3291
|
*/
|
|
3288
3292
|
ti = function(t) {
|
|
3289
|
-
|
|
3293
|
+
_e(this, Ae, t.detail), this.layerConfig.type === "style" || this.layerConfig.style ? "setStyle" in this.layer || "updateStyleVariables" in this.layer ? Ka($(this, Ae), this.layer, this.layerConfig) : console.error(
|
|
3290
3294
|
`Layer type ${this.layer.get("type") ?? ""} does not support styles configuration`
|
|
3291
|
-
) :
|
|
3295
|
+
) : _e(this, Lt, Ja(
|
|
3292
3296
|
$(this, Ae),
|
|
3293
3297
|
$(this, Lt),
|
|
3294
3298
|
this
|
|
@@ -3302,7 +3306,7 @@ ti = function(t) {
|
|
|
3302
3306
|
})
|
|
3303
3307
|
), this.requestUpdate();
|
|
3304
3308
|
}, ar = new WeakMap(), lr = new WeakMap(), // Define static properties for the component
|
|
3305
|
-
j(
|
|
3309
|
+
j(Do, "properties", {
|
|
3306
3310
|
layer: { attribute: !1 },
|
|
3307
3311
|
unstyled: { type: Boolean },
|
|
3308
3312
|
noShadow: { type: Boolean },
|
|
@@ -3311,7 +3315,7 @@ j(Po, "properties", {
|
|
|
3311
3315
|
});
|
|
3312
3316
|
customElements.define(
|
|
3313
3317
|
"eox-layercontrol-layerconfig",
|
|
3314
|
-
|
|
3318
|
+
Do
|
|
3315
3319
|
);
|
|
3316
3320
|
var sr, Ho, cr, dr;
|
|
3317
3321
|
class Ro extends se {
|
|
@@ -3388,12 +3392,12 @@ customElements.define(
|
|
|
3388
3392
|
"eox-layercontrol-layer-datetime",
|
|
3389
3393
|
Ro
|
|
3390
3394
|
);
|
|
3391
|
-
var
|
|
3395
|
+
var Dt, ur, pr;
|
|
3392
3396
|
class Oo extends se {
|
|
3393
3397
|
constructor() {
|
|
3394
3398
|
super();
|
|
3395
3399
|
/** @param {number} index */
|
|
3396
|
-
T(this,
|
|
3400
|
+
T(this, Dt, (t) => (this.selectedTab === t || this.toolsAsList) && "highlighted");
|
|
3397
3401
|
T(this, ur, `
|
|
3398
3402
|
.tabbed figure,
|
|
3399
3403
|
.listed figure {
|
|
@@ -3485,7 +3489,7 @@ class Oo extends se {
|
|
|
3485
3489
|
t,
|
|
3486
3490
|
(n, a) => g`
|
|
3487
3491
|
<label
|
|
3488
|
-
class=${$(this,
|
|
3492
|
+
class=${$(this, Dt).call(this, a)}
|
|
3489
3493
|
@click=${() => this.selectedTab = a}
|
|
3490
3494
|
>
|
|
3491
3495
|
<!-- Customizable icon for each tab -->
|
|
@@ -3529,7 +3533,7 @@ class Oo extends se {
|
|
|
3529
3533
|
</label>
|
|
3530
3534
|
`
|
|
3531
3535
|
)}
|
|
3532
|
-
<div class="tab ${$(this,
|
|
3536
|
+
<div class="tab ${$(this, Dt).call(this, a)}">
|
|
3533
3537
|
<!-- Content slot for each tab -->
|
|
3534
3538
|
<slot name=${`${n}-content`}>${n}</slot>
|
|
3535
3539
|
</div>
|
|
@@ -3544,7 +3548,7 @@ class Oo extends se {
|
|
|
3544
3548
|
`;
|
|
3545
3549
|
}
|
|
3546
3550
|
}
|
|
3547
|
-
|
|
3551
|
+
Dt = new WeakMap(), ur = new WeakMap(), pr = new WeakMap(), // Define static properties for the component
|
|
3548
3552
|
j(Oo, "properties", {
|
|
3549
3553
|
actions: { attribute: !1 },
|
|
3550
3554
|
selectedTab: { state: !0 },
|
|
@@ -3727,7 +3731,7 @@ class Io extends se {
|
|
|
3727
3731
|
() => g`
|
|
3728
3732
|
<details
|
|
3729
3733
|
class="tools"
|
|
3730
|
-
open=${this.embedded === !1 ? !0 : this.layer.get("layerControlToolsExpand") ||
|
|
3734
|
+
open=${this.embedded === !1 ? !0 : this.layer.get("layerControlToolsExpand") || D}
|
|
3731
3735
|
>
|
|
3732
3736
|
<summary></summary>
|
|
3733
3737
|
<eox-layercontrol-tools-items
|
|
@@ -3795,11 +3799,11 @@ const al = (r) => {
|
|
|
3795
3799
|
new CustomEvent("changed", { bubbles: !0, detail: t })
|
|
3796
3800
|
), e.requestUpdate();
|
|
3797
3801
|
};
|
|
3798
|
-
var
|
|
3802
|
+
var $e, ot, Vo, fr, gr;
|
|
3799
3803
|
class Mo extends se {
|
|
3800
3804
|
constructor() {
|
|
3801
3805
|
super();
|
|
3802
|
-
T(this,
|
|
3806
|
+
T(this, $e);
|
|
3803
3807
|
/**
|
|
3804
3808
|
* Represents the current layer visibility based on zoom level.
|
|
3805
3809
|
*
|
|
@@ -3894,7 +3898,7 @@ class Mo extends se {
|
|
|
3894
3898
|
*/
|
|
3895
3899
|
render() {
|
|
3896
3900
|
var u, d;
|
|
3897
|
-
const t = this.layer.getVisible(), i = t ? "visible" : "", o = this.currLayerVisibilityBasedOnZoom ? "" : "zoom-state-invisible", n = q(this,
|
|
3901
|
+
const t = this.layer.getVisible(), i = t ? "visible" : "", o = this.currLayerVisibilityBasedOnZoom ? "" : "zoom-state-invisible", n = q(this, $e, ot).call(this, "layerControlDisable") ? "disabled" : "", a = q(this, $e, ot).call(this, "layerControlExclusive") ? "radio" : "checkbox", l = ((u = $o(this.tools, this.layer)) == null ? void 0 : u.length) > 0, s = ((d = So(this.tools, this.layer)) == null ? void 0 : d.length) > 0, c = document.querySelector(
|
|
3898
3902
|
"eox-layercontrol-layer-tools"
|
|
3899
3903
|
);
|
|
3900
3904
|
return c && Object.assign(c, {
|
|
@@ -3914,9 +3918,9 @@ class Mo extends se {
|
|
|
3914
3918
|
class="layer ${n} ${i} ${o} responsive tiny-space"
|
|
3915
3919
|
>
|
|
3916
3920
|
${V(!this.unstyled, () => {
|
|
3917
|
-
if (q(this,
|
|
3921
|
+
if (q(this, $e, ot).call(this, "color"))
|
|
3918
3922
|
return g`
|
|
3919
|
-
<i class="small" style="color: ${q(this,
|
|
3923
|
+
<i class="small" style="color: ${q(this, $e, ot).call(this, "color")}">
|
|
3920
3924
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
|
3921
3925
|
<title>square-rounded</title>
|
|
3922
3926
|
<path
|
|
@@ -3978,7 +3982,7 @@ class Mo extends se {
|
|
|
3978
3982
|
<!-- Layer title -->
|
|
3979
3983
|
<div class="max truncate drag-handle ${n}">
|
|
3980
3984
|
<span class="layertitle truncate"
|
|
3981
|
-
>${q(this,
|
|
3985
|
+
>${q(this, $e, ot).call(this, this.titleProperty)}</span
|
|
3982
3986
|
>
|
|
3983
3987
|
</div>
|
|
3984
3988
|
|
|
@@ -3988,8 +3992,8 @@ class Mo extends se {
|
|
|
3988
3992
|
<button
|
|
3989
3993
|
class="transparent square primary-text small action tools ${this.tools.length === 1 ? this.tools[0] : "dots"}"
|
|
3990
3994
|
@click=${() => {
|
|
3991
|
-
var
|
|
3992
|
-
const m = ((
|
|
3995
|
+
var f, h, b;
|
|
3996
|
+
const m = ((h = (f = this.renderRoot.querySelector("eox-layercontrol-layer-tools")) == null ? void 0 : f.shadowRoot) == null ? void 0 : h.querySelector("details")) || ((b = this.renderRoot.querySelector("eox-layercontrol-layer-tools")) == null ? void 0 : b.querySelector("details"));
|
|
3993
3997
|
m.open = !m.open;
|
|
3994
3998
|
}}
|
|
3995
3999
|
>
|
|
@@ -4012,8 +4016,8 @@ class Mo extends se {
|
|
|
4012
4016
|
<input
|
|
4013
4017
|
type=${a}
|
|
4014
4018
|
.checked=${To(t)}
|
|
4015
|
-
@click=${q(this,
|
|
4016
|
-
disabled=${n ||
|
|
4019
|
+
@click=${q(this, $e, Vo)}
|
|
4020
|
+
disabled=${n || D}
|
|
4017
4021
|
/>
|
|
4018
4022
|
<span>
|
|
4019
4023
|
<i>
|
|
@@ -4056,7 +4060,7 @@ class Mo extends se {
|
|
|
4056
4060
|
`;
|
|
4057
4061
|
}
|
|
4058
4062
|
}
|
|
4059
|
-
|
|
4063
|
+
$e = new WeakSet(), /**
|
|
4060
4064
|
* Private method to get layer property by key if available.
|
|
4061
4065
|
*
|
|
4062
4066
|
* @param {string} key - The key for the layer property.
|
|
@@ -4146,7 +4150,7 @@ class No extends se {
|
|
|
4146
4150
|
<!-- Render the details element with the layer control -->
|
|
4147
4151
|
<details
|
|
4148
4152
|
class="max-width"
|
|
4149
|
-
open=${t ||
|
|
4153
|
+
open=${t || D}
|
|
4150
4154
|
data-children-length=${i}
|
|
4151
4155
|
>
|
|
4152
4156
|
<summary class="square">
|
|
@@ -4230,59 +4234,59 @@ var Zr, Ui;
|
|
|
4230
4234
|
function sl() {
|
|
4231
4235
|
if (Ui) return Zr;
|
|
4232
4236
|
Ui = 1;
|
|
4233
|
-
var r = "Expected a function", e = NaN, t = "[object Symbol]", i = /^\s+|\s+$/g, o = /^[-+]0x[0-9a-f]+$/i, n = /^0b[01]+$/i, a = /^0o[0-7]+$/i, l = parseInt, s = typeof Be == "object" && Be && Be.Object === Object && Be, c = typeof self == "object" && self && self.Object === Object && self, u = s || c || Function("return this")(), d = Object.prototype, m = d.toString,
|
|
4237
|
+
var r = "Expected a function", e = NaN, t = "[object Symbol]", i = /^\s+|\s+$/g, o = /^[-+]0x[0-9a-f]+$/i, n = /^0b[01]+$/i, a = /^0o[0-7]+$/i, l = parseInt, s = typeof Be == "object" && Be && Be.Object === Object && Be, c = typeof self == "object" && self && self.Object === Object && self, u = s || c || Function("return this")(), d = Object.prototype, m = d.toString, f = Math.max, h = Math.min, b = function() {
|
|
4234
4238
|
return u.Date.now();
|
|
4235
4239
|
};
|
|
4236
|
-
function
|
|
4237
|
-
var
|
|
4240
|
+
function R(_, y, z) {
|
|
4241
|
+
var H, L, Z, Y, I, P, X = 0, ce = !1, ee = !1, de = !0;
|
|
4238
4242
|
if (typeof _ != "function")
|
|
4239
4243
|
throw new TypeError(r);
|
|
4240
|
-
|
|
4244
|
+
y = K(y) || 0, J(z) && (ce = !!z.leading, ee = "maxWait" in z, Z = ee ? f(K(z.maxWait) || 0, y) : Z, de = "trailing" in z ? !!z.trailing : de);
|
|
4241
4245
|
function fe(N) {
|
|
4242
|
-
var
|
|
4243
|
-
return
|
|
4246
|
+
var O = H, ue = L;
|
|
4247
|
+
return H = L = void 0, X = N, Y = _.apply(ue, O), Y;
|
|
4244
4248
|
}
|
|
4245
4249
|
function je(N) {
|
|
4246
|
-
return X = N, I = setTimeout(
|
|
4250
|
+
return X = N, I = setTimeout(Ee, y), ce ? fe(N) : Y;
|
|
4247
4251
|
}
|
|
4248
4252
|
function Ot(N) {
|
|
4249
|
-
var
|
|
4250
|
-
return ee ?
|
|
4253
|
+
var O = N - P, ue = N - X, Re = y - O;
|
|
4254
|
+
return ee ? h(Re, Z - ue) : Re;
|
|
4251
4255
|
}
|
|
4252
4256
|
function qe(N) {
|
|
4253
|
-
var
|
|
4254
|
-
return
|
|
4257
|
+
var O = N - P, ue = N - X;
|
|
4258
|
+
return P === void 0 || O >= y || O < 0 || ee && ue >= Z;
|
|
4255
4259
|
}
|
|
4256
|
-
function
|
|
4257
|
-
var N =
|
|
4260
|
+
function Ee() {
|
|
4261
|
+
var N = b();
|
|
4258
4262
|
if (qe(N))
|
|
4259
4263
|
return Fe(N);
|
|
4260
|
-
I = setTimeout(
|
|
4264
|
+
I = setTimeout(Ee, Ot(N));
|
|
4261
4265
|
}
|
|
4262
4266
|
function Fe(N) {
|
|
4263
|
-
return I = void 0, de &&
|
|
4267
|
+
return I = void 0, de && H ? fe(N) : (H = L = void 0, Y);
|
|
4264
4268
|
}
|
|
4265
4269
|
function It() {
|
|
4266
|
-
I !== void 0 && clearTimeout(I), X = 0,
|
|
4270
|
+
I !== void 0 && clearTimeout(I), X = 0, H = P = L = I = void 0;
|
|
4267
4271
|
}
|
|
4268
4272
|
function Ar() {
|
|
4269
|
-
return I === void 0 ? Y : Fe(
|
|
4273
|
+
return I === void 0 ? Y : Fe(b());
|
|
4270
4274
|
}
|
|
4271
4275
|
function mt() {
|
|
4272
|
-
var N =
|
|
4273
|
-
if (
|
|
4276
|
+
var N = b(), O = qe(N);
|
|
4277
|
+
if (H = arguments, L = this, P = N, O) {
|
|
4274
4278
|
if (I === void 0)
|
|
4275
|
-
return je(
|
|
4279
|
+
return je(P);
|
|
4276
4280
|
if (ee)
|
|
4277
|
-
return I = setTimeout(
|
|
4281
|
+
return I = setTimeout(Ee, y), fe(P);
|
|
4278
4282
|
}
|
|
4279
|
-
return I === void 0 && (I = setTimeout(
|
|
4283
|
+
return I === void 0 && (I = setTimeout(Ee, y)), Y;
|
|
4280
4284
|
}
|
|
4281
4285
|
return mt.cancel = It, mt.flush = Ar, mt;
|
|
4282
4286
|
}
|
|
4283
4287
|
function J(_) {
|
|
4284
|
-
var
|
|
4285
|
-
return !!_ && (
|
|
4288
|
+
var y = typeof _;
|
|
4289
|
+
return !!_ && (y == "object" || y == "function");
|
|
4286
4290
|
}
|
|
4287
4291
|
function U(_) {
|
|
4288
4292
|
return !!_ && typeof _ == "object";
|
|
@@ -4296,8 +4300,8 @@ function sl() {
|
|
|
4296
4300
|
if (ae(_))
|
|
4297
4301
|
return e;
|
|
4298
4302
|
if (J(_)) {
|
|
4299
|
-
var
|
|
4300
|
-
_ = J(
|
|
4303
|
+
var y = typeof _.valueOf == "function" ? _.valueOf() : _;
|
|
4304
|
+
_ = J(y) ? y + "" : y;
|
|
4301
4305
|
}
|
|
4302
4306
|
if (typeof _ != "string")
|
|
4303
4307
|
return _ === 0 ? _ : +_;
|
|
@@ -4305,7 +4309,7 @@ function sl() {
|
|
|
4305
4309
|
var z = n.test(_);
|
|
4306
4310
|
return z || a.test(_) ? l(_.slice(2), z ? 2 : 8) : o.test(_) ? e : +_;
|
|
4307
4311
|
}
|
|
4308
|
-
return Zr =
|
|
4312
|
+
return Zr = R, Zr;
|
|
4309
4313
|
}
|
|
4310
4314
|
var cl = sl();
|
|
4311
4315
|
const dl = /* @__PURE__ */ Lo(cl), ul = (r) => {
|
|
@@ -4679,7 +4683,7 @@ class qo extends se {
|
|
|
4679
4683
|
d="M9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.44,13.73L14.71,14H15.5L20.5,19L19,20.5L14,15.5V14.71L13.73,14.44C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3M9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5Z"
|
|
4680
4684
|
/>
|
|
4681
4685
|
</svg>`
|
|
4682
|
-
}, i = this.open ? "open" : "close", o = this.open === "url", n = this.open === "json", a = !ya(this.urlInput) || this.searchLoad ? !0 :
|
|
4686
|
+
}, i = this.open ? "open" : "close", o = this.open === "url", n = this.open === "json", a = !ya(this.urlInput) || this.searchLoad ? !0 : D;
|
|
4683
4687
|
return g`
|
|
4684
4688
|
<style>
|
|
4685
4689
|
${$(this, wr)}
|
|
@@ -4759,7 +4763,7 @@ class qo extends se {
|
|
|
4759
4763
|
`;
|
|
4760
4764
|
}
|
|
4761
4765
|
)}
|
|
4762
|
-
</ul>` :
|
|
4766
|
+
</ul>` : D}
|
|
4763
4767
|
` : g`
|
|
4764
4768
|
<!-- Textarea for JSON input -->
|
|
4765
4769
|
<div class="field textarea small border no-margin">
|
|
@@ -4776,7 +4780,7 @@ class qo extends se {
|
|
|
4776
4780
|
<button
|
|
4777
4781
|
class="add-layer-icon json-add-layer small square small-margin"
|
|
4778
4782
|
style="position: absolute; bottom: 15px; right: 0;"
|
|
4779
|
-
disabled=${va(this.jsonInput) ?
|
|
4783
|
+
disabled=${va(this.jsonInput) ? D : !0}
|
|
4780
4784
|
@click=${q(this, re, Zo)}
|
|
4781
4785
|
>
|
|
4782
4786
|
${this.unstyled ? "Add JSON" : g`<i class="small">${t.plus}</i>`}
|
|
@@ -4968,7 +4972,7 @@ class Wo extends se {
|
|
|
4968
4972
|
}
|
|
4969
4973
|
set eoxMap(t) {
|
|
4970
4974
|
const i = $(this, Ve);
|
|
4971
|
-
|
|
4975
|
+
_e(this, Ve, t), this.requestUpdate("eoxMap", i);
|
|
4972
4976
|
}
|
|
4973
4977
|
render() {
|
|
4974
4978
|
var o, n, a;
|