@eox/layercontrol 0.28.2-dev.1736961804.0 → 0.28.2-dev.1736966655.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 +433 -416
- package/dist/eox-layercontrol.umd.cjs +58 -57
- package/package.json +1 -1
- package/src/components/layer-config.js +9 -0
- package/src/main.js +11 -0
- package/types/layercontrol/src/components/layer-config.d.ts.map +1 -1
- package/types/layercontrol/src/main.d.ts.map +1 -1
package/dist/eox-layercontrol.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
var
|
|
1
|
+
var Qr = Object.defineProperty;
|
|
2
2
|
var yn = (i) => {
|
|
3
3
|
throw TypeError(i);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var T = (i, t, e) => (Ci(i, t, "read from private field"), e ? e.call(i) : t.get(i)), P = (i, t, e) => t.has(i) ? yn("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(i) : t.set(i, e),
|
|
5
|
+
var to = (i, t, e) => t in i ? Qr(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
|
|
6
|
+
var j = (i, t, e) => to(i, typeof t != "symbol" ? t + "" : t, e), Ci = (i, t, e) => t.has(i) || yn("Cannot " + e);
|
|
7
|
+
var T = (i, t, e) => (Ci(i, t, "read from private field"), e ? e.call(i) : t.get(i)), P = (i, t, e) => t.has(i) ? yn("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(i) : t.set(i, e), ee = (i, t, e, n) => (Ci(i, t, "write to private field"), n ? n.call(i, e) : t.set(i, e), e), B = (i, t, e) => (Ci(i, t, "access private method"), e);
|
|
8
8
|
/**
|
|
9
9
|
* @license
|
|
10
10
|
* Copyright 2019 Google LLC
|
|
@@ -29,14 +29,14 @@ let Zn = class {
|
|
|
29
29
|
return this.cssText;
|
|
30
30
|
}
|
|
31
31
|
};
|
|
32
|
-
const
|
|
32
|
+
const eo = (i) => new Zn(typeof i == "string" ? i : i + "", void 0, en), qn = (i, ...t) => {
|
|
33
33
|
const e = i.length === 1 ? i[0] : t.reduce((n, r, o) => n + ((s) => {
|
|
34
34
|
if (s._$cssResult$ === !0) return s.cssText;
|
|
35
35
|
if (typeof s == "number") return s;
|
|
36
36
|
throw Error("Value passed to 'css' function must be a 'css' function result: " + s + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
37
37
|
})(r) + i[o + 1], i[0]);
|
|
38
38
|
return new Zn(e, i, en);
|
|
39
|
-
},
|
|
39
|
+
}, io = (i, t) => {
|
|
40
40
|
if (tn) i.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
41
41
|
else for (const e of t) {
|
|
42
42
|
const n = document.createElement("style"), r = Fe.litNonce;
|
|
@@ -45,17 +45,17 @@ const to = (i) => new Zn(typeof i == "string" ? i : i + "", void 0, en), qn = (i
|
|
|
45
45
|
}, vn = tn ? (i) => i : (i) => i instanceof CSSStyleSheet ? ((t) => {
|
|
46
46
|
let e = "";
|
|
47
47
|
for (const n of t.cssRules) e += n.cssText;
|
|
48
|
-
return
|
|
48
|
+
return eo(e);
|
|
49
49
|
})(i) : i;
|
|
50
50
|
/**
|
|
51
51
|
* @license
|
|
52
52
|
* Copyright 2017 Google LLC
|
|
53
53
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
54
54
|
*/
|
|
55
|
-
const { is:
|
|
55
|
+
const { is: no, defineProperty: ro, getOwnPropertyDescriptor: oo, getOwnPropertyNames: so, getOwnPropertySymbols: ao, getPrototypeOf: lo } = Object, Ut = globalThis, wn = Ut.trustedTypes, co = wn ? wn.emptyScript : "", Ti = Ut.reactiveElementPolyfillSupport, ve = (i, t) => i, qi = { toAttribute(i, t) {
|
|
56
56
|
switch (t) {
|
|
57
57
|
case Boolean:
|
|
58
|
-
i = i ?
|
|
58
|
+
i = i ? co : null;
|
|
59
59
|
break;
|
|
60
60
|
case Object:
|
|
61
61
|
case Array:
|
|
@@ -80,9 +80,9 @@ const { is: io, defineProperty: no, getOwnPropertyDescriptor: ro, getOwnProperty
|
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
return e;
|
|
83
|
-
} }, Xn = (i, t) => !
|
|
83
|
+
} }, Xn = (i, t) => !no(i, t), xn = { attribute: !0, type: String, converter: qi, reflect: !1, hasChanged: Xn };
|
|
84
84
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), Ut.litPropertyMetadata ?? (Ut.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
85
|
-
class
|
|
85
|
+
class re extends HTMLElement {
|
|
86
86
|
static addInitializer(t) {
|
|
87
87
|
this._$Ei(), (this.l ?? (this.l = [])).push(t);
|
|
88
88
|
}
|
|
@@ -92,11 +92,11 @@ class ne extends HTMLElement {
|
|
|
92
92
|
static createProperty(t, e = xn) {
|
|
93
93
|
if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
|
|
94
94
|
const n = Symbol(), r = this.getPropertyDescriptor(t, n, e);
|
|
95
|
-
r !== void 0 &&
|
|
95
|
+
r !== void 0 && ro(this.prototype, t, r);
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
static getPropertyDescriptor(t, e, n) {
|
|
99
|
-
const { get: r, set: o } =
|
|
99
|
+
const { get: r, set: o } = oo(this.prototype, t) ?? { get() {
|
|
100
100
|
return this[e];
|
|
101
101
|
}, set(s) {
|
|
102
102
|
this[e] = s;
|
|
@@ -113,13 +113,13 @@ class ne extends HTMLElement {
|
|
|
113
113
|
}
|
|
114
114
|
static _$Ei() {
|
|
115
115
|
if (this.hasOwnProperty(ve("elementProperties"))) return;
|
|
116
|
-
const t =
|
|
116
|
+
const t = lo(this);
|
|
117
117
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
118
118
|
}
|
|
119
119
|
static finalize() {
|
|
120
120
|
if (this.hasOwnProperty(ve("finalized"))) return;
|
|
121
121
|
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(ve("properties"))) {
|
|
122
|
-
const e = this.properties, n = [...
|
|
122
|
+
const e = this.properties, n = [...so(e), ...ao(e)];
|
|
123
123
|
for (const r of n) this.createProperty(r, e[r]);
|
|
124
124
|
}
|
|
125
125
|
const t = this[Symbol.metadata];
|
|
@@ -168,7 +168,7 @@ class ne extends HTMLElement {
|
|
|
168
168
|
}
|
|
169
169
|
createRenderRoot() {
|
|
170
170
|
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
171
|
-
return
|
|
171
|
+
return io(t, this.constructor.elementStyles), t;
|
|
172
172
|
}
|
|
173
173
|
connectedCallback() {
|
|
174
174
|
var t;
|
|
@@ -280,15 +280,15 @@ class ne extends HTMLElement {
|
|
|
280
280
|
firstUpdated(t) {
|
|
281
281
|
}
|
|
282
282
|
}
|
|
283
|
-
|
|
283
|
+
re.elementStyles = [], re.shadowRootOptions = { mode: "open" }, re[ve("elementProperties")] = /* @__PURE__ */ new Map(), re[ve("finalized")] = /* @__PURE__ */ new Map(), Ti == null || Ti({ ReactiveElement: re }), (Ut.reactiveElementVersions ?? (Ut.reactiveElementVersions = [])).push("2.0.4");
|
|
284
284
|
/**
|
|
285
285
|
* @license
|
|
286
286
|
* Copyright 2017 Google LLC
|
|
287
287
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
288
288
|
*/
|
|
289
|
-
const we = globalThis, Ge = we.trustedTypes, $n = Ge ? Ge.createPolicy("lit-html", { createHTML: (i) => i }) : void 0, nn = "$lit$", Ct = `lit$${Math.random().toFixed(9).slice(2)}$`, rn = "?" + Ct,
|
|
290
|
-
\f\r]`, fe = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, En = /-->/g, Sn = />/g,
|
|
291
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), An = /'/g, _n = /"/g, Wn = /^(?:script|style|textarea|title)$/i,
|
|
289
|
+
const we = globalThis, Ge = we.trustedTypes, $n = Ge ? Ge.createPolicy("lit-html", { createHTML: (i) => i }) : void 0, nn = "$lit$", Ct = `lit$${Math.random().toFixed(9).slice(2)}$`, rn = "?" + Ct, uo = `<${rn}>`, Qt = document, _e = () => Qt.createComment(""), Ce = (i) => i === null || typeof i != "object" && typeof i != "function", on = Array.isArray, Yn = (i) => on(i) || typeof (i == null ? void 0 : i[Symbol.iterator]) == "function", Di = `[
|
|
290
|
+
\f\r]`, fe = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, En = /-->/g, Sn = />/g, qt = RegExp(`>|${Di}(?:([^\\s"'>=/]+)(${Di}*=${Di}*(?:[^
|
|
291
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), An = /'/g, _n = /"/g, Wn = /^(?:script|style|textarea|title)$/i, ho = (i) => (t, ...e) => ({ _$litType$: i, strings: t, values: e }), x = ho(1), vt = Symbol.for("lit-noChange"), L = Symbol.for("lit-nothing"), Cn = /* @__PURE__ */ new WeakMap(), Jt = Qt.createTreeWalker(Qt, 129);
|
|
292
292
|
function Gn(i, t) {
|
|
293
293
|
if (!on(i) || !i.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
294
294
|
return $n !== void 0 ? $n.createHTML(t) : t;
|
|
@@ -299,9 +299,9 @@ const Jn = (i, t) => {
|
|
|
299
299
|
for (let a = 0; a < e; a++) {
|
|
300
300
|
const l = i[a];
|
|
301
301
|
let d, u, c = -1, p = 0;
|
|
302
|
-
for (; p < l.length && (s.lastIndex = p, u = s.exec(l), u !== null); ) p = s.lastIndex, s === fe ? u[1] === "!--" ? s = En : u[1] !== void 0 ? s = Sn : u[2] !== void 0 ? (Wn.test(u[2]) && (r = RegExp("</" + u[2], "g")), s =
|
|
303
|
-
const f = s ===
|
|
304
|
-
o += s === fe ? l +
|
|
302
|
+
for (; p < l.length && (s.lastIndex = p, u = s.exec(l), u !== null); ) p = s.lastIndex, s === fe ? u[1] === "!--" ? s = En : u[1] !== void 0 ? s = Sn : u[2] !== void 0 ? (Wn.test(u[2]) && (r = RegExp("</" + u[2], "g")), s = qt) : u[3] !== void 0 && (s = qt) : s === qt ? u[0] === ">" ? (s = r ?? fe, c = -1) : u[1] === void 0 ? c = -2 : (c = s.lastIndex - u[2].length, d = u[1], s = u[3] === void 0 ? qt : u[3] === '"' ? _n : An) : s === _n || s === An ? s = qt : s === En || s === Sn ? s = fe : (s = qt, r = void 0);
|
|
303
|
+
const f = s === qt && i[a + 1].startsWith("/>") ? " " : "";
|
|
304
|
+
o += s === fe ? l + uo : c >= 0 ? (n.push(d), l.slice(0, c) + nn + l.slice(c) + Ct + f) : l + Ct + (c === -2 ? a : f);
|
|
305
305
|
}
|
|
306
306
|
return [Gn(i, o + (i[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), n];
|
|
307
307
|
};
|
|
@@ -311,11 +311,11 @@ class Te {
|
|
|
311
311
|
this.parts = [];
|
|
312
312
|
let o = 0, s = 0;
|
|
313
313
|
const a = t.length - 1, l = this.parts, [d, u] = Jn(t, e);
|
|
314
|
-
if (this.el = Te.createElement(d, n),
|
|
314
|
+
if (this.el = Te.createElement(d, n), Jt.currentNode = this.el.content, e === 2 || e === 3) {
|
|
315
315
|
const c = this.el.content.firstChild;
|
|
316
316
|
c.replaceWith(...c.childNodes);
|
|
317
317
|
}
|
|
318
|
-
for (; (r =
|
|
318
|
+
for (; (r = Jt.nextNode()) !== null && l.length < a; ) {
|
|
319
319
|
if (r.nodeType === 1) {
|
|
320
320
|
if (r.hasAttributes()) for (const c of r.getAttributeNames()) if (c.endsWith(nn)) {
|
|
321
321
|
const p = u[s++], f = r.getAttribute(c).split(Ct), g = /([.?@])?(.*)/.exec(p);
|
|
@@ -325,7 +325,7 @@ class Te {
|
|
|
325
325
|
const c = r.textContent.split(Ct), p = c.length - 1;
|
|
326
326
|
if (p > 0) {
|
|
327
327
|
r.textContent = Ge ? Ge.emptyScript : "";
|
|
328
|
-
for (let f = 0; f < p; f++) r.append(c[f], _e()),
|
|
328
|
+
for (let f = 0; f < p; f++) r.append(c[f], _e()), Jt.nextNode(), l.push({ type: 2, index: ++o });
|
|
329
329
|
r.append(c[p], _e());
|
|
330
330
|
}
|
|
331
331
|
}
|
|
@@ -338,16 +338,16 @@ class Te {
|
|
|
338
338
|
}
|
|
339
339
|
}
|
|
340
340
|
static createElement(t, e) {
|
|
341
|
-
const n =
|
|
341
|
+
const n = Qt.createElement("template");
|
|
342
342
|
return n.innerHTML = t, n;
|
|
343
343
|
}
|
|
344
344
|
}
|
|
345
|
-
function
|
|
345
|
+
function te(i, t, e = i, n) {
|
|
346
346
|
var s, a;
|
|
347
347
|
if (t === vt) return t;
|
|
348
348
|
let r = n !== void 0 ? (s = e._$Co) == null ? void 0 : s[n] : e._$Cl;
|
|
349
349
|
const o = Ce(t) ? void 0 : t._$litDirective$;
|
|
350
|
-
return (r == null ? void 0 : r.constructor) !== o && ((a = r == null ? void 0 : r._$AO) == null || a.call(r, !1), o === void 0 ? r = void 0 : (r = new o(i), r._$AT(i, e, n)), n !== void 0 ? (e._$Co ?? (e._$Co = []))[n] = r : e._$Cl = r), r !== void 0 && (t =
|
|
350
|
+
return (r == null ? void 0 : r.constructor) !== o && ((a = r == null ? void 0 : r._$AO) == null || a.call(r, !1), o === void 0 ? r = void 0 : (r = new o(i), r._$AT(i, e, n)), n !== void 0 ? (e._$Co ?? (e._$Co = []))[n] = r : e._$Cl = r), r !== void 0 && (t = te(i, r._$AS(i, t.values), r, n)), t;
|
|
351
351
|
}
|
|
352
352
|
let Kn = class {
|
|
353
353
|
constructor(t, e) {
|
|
@@ -360,17 +360,17 @@ let Kn = class {
|
|
|
360
360
|
return this._$AM._$AU;
|
|
361
361
|
}
|
|
362
362
|
u(t) {
|
|
363
|
-
const { el: { content: e }, parts: n } = this._$AD, r = ((t == null ? void 0 : t.creationScope) ??
|
|
364
|
-
|
|
365
|
-
let o =
|
|
363
|
+
const { el: { content: e }, parts: n } = this._$AD, r = ((t == null ? void 0 : t.creationScope) ?? Qt).importNode(e, !0);
|
|
364
|
+
Jt.currentNode = r;
|
|
365
|
+
let o = Jt.nextNode(), s = 0, a = 0, l = n[0];
|
|
366
366
|
for (; l !== void 0; ) {
|
|
367
367
|
if (s === l.index) {
|
|
368
368
|
let d;
|
|
369
369
|
l.type === 2 ? d = new he(o, o.nextSibling, this, t) : l.type === 1 ? d = new l.ctor(o, l.name, l.strings, this, t) : l.type === 6 && (d = new ir(o, this, t)), this._$AV.push(d), l = n[++a];
|
|
370
370
|
}
|
|
371
|
-
s !== (l == null ? void 0 : l.index) && (o =
|
|
371
|
+
s !== (l == null ? void 0 : l.index) && (o = Jt.nextNode(), s++);
|
|
372
372
|
}
|
|
373
|
-
return
|
|
373
|
+
return Jt.currentNode = Qt, r;
|
|
374
374
|
}
|
|
375
375
|
p(t) {
|
|
376
376
|
let e = 0;
|
|
@@ -397,7 +397,7 @@ class he {
|
|
|
397
397
|
return this._$AB;
|
|
398
398
|
}
|
|
399
399
|
_$AI(t, e = this) {
|
|
400
|
-
t =
|
|
400
|
+
t = te(this, t, e), Ce(t) ? t === L || t == null || t === "" ? (this._$AH !== L && this._$AR(), this._$AH = L) : t !== this._$AH && t !== vt && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Yn(t) ? this.k(t) : this._(t);
|
|
401
401
|
}
|
|
402
402
|
O(t) {
|
|
403
403
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
@@ -406,7 +406,7 @@ class he {
|
|
|
406
406
|
this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
|
|
407
407
|
}
|
|
408
408
|
_(t) {
|
|
409
|
-
this._$AH !== L && Ce(this._$AH) ? this._$AA.nextSibling.data = t : this.T(
|
|
409
|
+
this._$AH !== L && Ce(this._$AH) ? this._$AA.nextSibling.data = t : this.T(Qt.createTextNode(t)), this._$AH = t;
|
|
410
410
|
}
|
|
411
411
|
$(t) {
|
|
412
412
|
var o;
|
|
@@ -453,11 +453,11 @@ class Re {
|
|
|
453
453
|
_$AI(t, e = this, n, r) {
|
|
454
454
|
const o = this.strings;
|
|
455
455
|
let s = !1;
|
|
456
|
-
if (o === void 0) t =
|
|
456
|
+
if (o === void 0) t = te(this, t, e, 0), s = !Ce(t) || t !== this._$AH && t !== vt, s && (this._$AH = t);
|
|
457
457
|
else {
|
|
458
458
|
const a = t;
|
|
459
459
|
let l, d;
|
|
460
|
-
for (t = o[0], l = 0; l < o.length - 1; l++) d =
|
|
460
|
+
for (t = o[0], l = 0; l < o.length - 1; l++) d = te(this, a[n + l], e, l), d === vt && (d = this._$AH[l]), s || (s = !Ce(d) || d !== this._$AH[l]), d === L ? t = L : t !== L && (t += (d ?? "") + o[l + 1]), this._$AH[l] = d;
|
|
461
461
|
}
|
|
462
462
|
s && !r && this.j(t);
|
|
463
463
|
}
|
|
@@ -486,7 +486,7 @@ class er extends Re {
|
|
|
486
486
|
super(t, e, n, r, o), this.type = 5;
|
|
487
487
|
}
|
|
488
488
|
_$AI(t, e = this) {
|
|
489
|
-
if ((t =
|
|
489
|
+
if ((t = te(this, t, e, 0) ?? L) === vt) return;
|
|
490
490
|
const n = this._$AH, r = t === L && n !== L || t.capture !== n.capture || t.once !== n.once || t.passive !== n.passive, o = t !== L && (n === L || r);
|
|
491
491
|
r && this.element.removeEventListener(this.name, this, n), o && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
492
492
|
}
|
|
@@ -503,12 +503,12 @@ class ir {
|
|
|
503
503
|
return this._$AM._$AU;
|
|
504
504
|
}
|
|
505
505
|
_$AI(t) {
|
|
506
|
-
|
|
506
|
+
te(this, t);
|
|
507
507
|
}
|
|
508
508
|
}
|
|
509
|
-
const
|
|
509
|
+
const po = { M: nn, P: Ct, A: rn, C: 1, L: Jn, R: Kn, D: Yn, V: te, I: he, H: Re, N: tr, U: er, B: Qn, F: ir }, Pi = we.litHtmlPolyfillSupport;
|
|
510
510
|
Pi == null || Pi(Te, he), (we.litHtmlVersions ?? (we.litHtmlVersions = [])).push("3.2.1");
|
|
511
|
-
const
|
|
511
|
+
const fo = (i, t, e) => {
|
|
512
512
|
const n = (e == null ? void 0 : e.renderBefore) ?? t;
|
|
513
513
|
let r = n._$litPart$;
|
|
514
514
|
if (r === void 0) {
|
|
@@ -522,7 +522,7 @@ const po = (i, t, e) => {
|
|
|
522
522
|
* Copyright 2017 Google LLC
|
|
523
523
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
524
524
|
*/
|
|
525
|
-
let lt = class extends
|
|
525
|
+
let lt = class extends re {
|
|
526
526
|
constructor() {
|
|
527
527
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
528
528
|
}
|
|
@@ -533,7 +533,7 @@ let lt = class extends ne {
|
|
|
533
533
|
}
|
|
534
534
|
update(t) {
|
|
535
535
|
const e = this.render();
|
|
536
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do =
|
|
536
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = fo(e, this.renderRoot, this.renderOptions);
|
|
537
537
|
}
|
|
538
538
|
connectedCallback() {
|
|
539
539
|
var t;
|
|
@@ -587,12 +587,12 @@ class an {
|
|
|
587
587
|
* Copyright 2020 Google LLC
|
|
588
588
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
589
589
|
*/
|
|
590
|
-
const { I:
|
|
590
|
+
const { I: go } = po, mo = (i) => i.strings === void 0, Tn = () => document.createComment(""), ge = (i, t, e) => {
|
|
591
591
|
var o;
|
|
592
592
|
const n = i._$AA.parentNode, r = t === void 0 ? i._$AB : t._$AA;
|
|
593
593
|
if (e === void 0) {
|
|
594
594
|
const s = n.insertBefore(Tn(), r), a = n.insertBefore(Tn(), r);
|
|
595
|
-
e = new
|
|
595
|
+
e = new go(s, a, i, i.options);
|
|
596
596
|
} else {
|
|
597
597
|
const s = e._$AB.nextSibling, a = e._$AM, l = a !== i;
|
|
598
598
|
if (l) {
|
|
@@ -608,7 +608,7 @@ const { I: fo } = ho, go = (i) => i.strings === void 0, Tn = () => document.crea
|
|
|
608
608
|
}
|
|
609
609
|
}
|
|
610
610
|
return e;
|
|
611
|
-
},
|
|
611
|
+
}, Xt = (i, t, e = i) => (i._$AI(t, e), i), yo = {}, nr = (i, t = yo) => i._$AH = t, bo = (i) => i._$AH, Oi = (i) => {
|
|
612
612
|
var n;
|
|
613
613
|
(n = i._$AP) == null || n.call(i, !1, !0);
|
|
614
614
|
let t = i._$AA;
|
|
@@ -627,7 +627,7 @@ const Dn = (i, t, e) => {
|
|
|
627
627
|
const n = /* @__PURE__ */ new Map();
|
|
628
628
|
for (let r = t; r <= e; r++) n.set(i[r], r);
|
|
629
629
|
return n;
|
|
630
|
-
},
|
|
630
|
+
}, vo = sn(class extends an {
|
|
631
631
|
constructor(i) {
|
|
632
632
|
if (super(i), i.type !== It.CHILD) throw Error("repeat() can only be used in text expressions");
|
|
633
633
|
}
|
|
@@ -643,28 +643,28 @@ const Dn = (i, t, e) => {
|
|
|
643
643
|
return this.dt(i, t, e).values;
|
|
644
644
|
}
|
|
645
645
|
update(i, [t, e, n]) {
|
|
646
|
-
const r =
|
|
646
|
+
const r = bo(i), { values: o, keys: s } = this.dt(t, e, n);
|
|
647
647
|
if (!Array.isArray(r)) return this.ut = s, o;
|
|
648
648
|
const a = this.ut ?? (this.ut = []), l = [];
|
|
649
649
|
let d, u, c = 0, p = r.length - 1, f = 0, g = o.length - 1;
|
|
650
650
|
for (; c <= p && f <= g; ) if (r[c] === null) c++;
|
|
651
651
|
else if (r[p] === null) p--;
|
|
652
|
-
else if (a[c] === s[f]) l[f] =
|
|
653
|
-
else if (a[p] === s[g]) l[g] =
|
|
654
|
-
else if (a[c] === s[g]) l[g] =
|
|
655
|
-
else if (a[p] === s[f]) l[f] =
|
|
652
|
+
else if (a[c] === s[f]) l[f] = Xt(r[c], o[f]), c++, f++;
|
|
653
|
+
else if (a[p] === s[g]) l[g] = Xt(r[p], o[g]), p--, g--;
|
|
654
|
+
else if (a[c] === s[g]) l[g] = Xt(r[c], o[g]), ge(i, l[g + 1], r[c]), c++, g--;
|
|
655
|
+
else if (a[p] === s[f]) l[f] = Xt(r[p], o[f]), ge(i, r[c], r[p]), p--, f++;
|
|
656
656
|
else if (d === void 0 && (d = Dn(s, f, g), u = Dn(a, c, p)), d.has(a[c])) if (d.has(a[p])) {
|
|
657
657
|
const b = u.get(s[f]), N = b !== void 0 ? r[b] : null;
|
|
658
658
|
if (N === null) {
|
|
659
659
|
const J = ge(i, r[c]);
|
|
660
|
-
|
|
661
|
-
} else l[f] =
|
|
660
|
+
Xt(J, o[f]), l[f] = J;
|
|
661
|
+
} else l[f] = Xt(N, o[f]), ge(i, r[c], N), r[b] = null;
|
|
662
662
|
f++;
|
|
663
663
|
} else Oi(r[p]), p--;
|
|
664
664
|
else Oi(r[c]), c++;
|
|
665
665
|
for (; f <= g; ) {
|
|
666
666
|
const b = ge(i, l[g + 1]);
|
|
667
|
-
|
|
667
|
+
Xt(b, o[f]), l[f++] = b;
|
|
668
668
|
}
|
|
669
669
|
for (; c <= p; ) {
|
|
670
670
|
const b = r[c++];
|
|
@@ -694,7 +694,7 @@ const De = {
|
|
|
694
694
|
DOCUMENT_FRAGMENT: 11,
|
|
695
695
|
NOTATION: 12
|
|
696
696
|
};
|
|
697
|
-
class
|
|
697
|
+
class wo {
|
|
698
698
|
/**
|
|
699
699
|
* XML DOM parser
|
|
700
700
|
* @constructor
|
|
@@ -735,8 +735,8 @@ function or(i, t, e) {
|
|
|
735
735
|
}
|
|
736
736
|
return e;
|
|
737
737
|
}
|
|
738
|
-
function
|
|
739
|
-
for (var r =
|
|
738
|
+
function xo(i, t, e, n) {
|
|
739
|
+
for (var r = $o(t); r; r = Eo(r)) {
|
|
740
740
|
var o = r.namespaceURI || null, s = i[o];
|
|
741
741
|
if (S(s)) {
|
|
742
742
|
var a = s[r.localName];
|
|
@@ -744,13 +744,13 @@ function wo(i, t, e, n) {
|
|
|
744
744
|
}
|
|
745
745
|
}
|
|
746
746
|
}
|
|
747
|
-
function
|
|
747
|
+
function $o(i) {
|
|
748
748
|
let t = i.firstElementChild || i.firstChild;
|
|
749
749
|
for (; t && t.nodeType !== De.ELEMENT; )
|
|
750
750
|
t = t.nextSibling;
|
|
751
751
|
return t;
|
|
752
752
|
}
|
|
753
|
-
function
|
|
753
|
+
function Eo(i) {
|
|
754
754
|
let t = i.nextElementSibling || i.nextSibling;
|
|
755
755
|
for (; t && t.nodeType !== De.ELEMENT; )
|
|
756
756
|
t = t.nextSibling;
|
|
@@ -759,10 +759,10 @@ function $o(i) {
|
|
|
759
759
|
function nt(i, t, e) {
|
|
760
760
|
return (
|
|
761
761
|
/** @type {Object.<string, Object.<string, XMLParser.Parser>>} */
|
|
762
|
-
|
|
762
|
+
So(i, t, e)
|
|
763
763
|
);
|
|
764
764
|
}
|
|
765
|
-
function
|
|
765
|
+
function So(i, t, e) {
|
|
766
766
|
var n = S(e) ? e : {}, r, o;
|
|
767
767
|
for (r = 0, o = i.length; r < o; ++r)
|
|
768
768
|
n[i[r]] = t;
|
|
@@ -788,7 +788,7 @@ function sr(i, t) {
|
|
|
788
788
|
);
|
|
789
789
|
}
|
|
790
790
|
function Q(i, t, e, n, r) {
|
|
791
|
-
return n.push(i),
|
|
791
|
+
return n.push(i), xo(t, e, n, r), n.pop();
|
|
792
792
|
}
|
|
793
793
|
function y(i, t, e) {
|
|
794
794
|
return (
|
|
@@ -834,16 +834,16 @@ function pt(i, t, e) {
|
|
|
834
834
|
}
|
|
835
835
|
);
|
|
836
836
|
}
|
|
837
|
-
const
|
|
838
|
-
function
|
|
839
|
-
return i.replace(
|
|
837
|
+
const Ao = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;
|
|
838
|
+
function _o(i) {
|
|
839
|
+
return i.replace(Ao, "");
|
|
840
840
|
}
|
|
841
|
-
function
|
|
841
|
+
function Kt(i) {
|
|
842
842
|
const t = /^\s*(true|1)|(false|0)\s*$/.exec(i);
|
|
843
843
|
if (t)
|
|
844
844
|
return S(t[1]) || !1;
|
|
845
845
|
}
|
|
846
|
-
function
|
|
846
|
+
function ae(i) {
|
|
847
847
|
return Tt(Si(i, !1));
|
|
848
848
|
}
|
|
849
849
|
function Tt(i) {
|
|
@@ -860,14 +860,14 @@ function Je(i) {
|
|
|
860
860
|
return parseInt(t[1], 10);
|
|
861
861
|
}
|
|
862
862
|
function D(i) {
|
|
863
|
-
return
|
|
863
|
+
return _o(Si(i, !1));
|
|
864
864
|
}
|
|
865
|
-
const
|
|
865
|
+
const Co = "http://www.w3.org/1999/xlink";
|
|
866
866
|
function ln(i) {
|
|
867
|
-
return i.getAttributeNS(
|
|
867
|
+
return i.getAttributeNS(Co, "href");
|
|
868
868
|
}
|
|
869
|
-
function
|
|
870
|
-
return Q({},
|
|
869
|
+
function To(i, t) {
|
|
870
|
+
return Q({}, es, i, t);
|
|
871
871
|
}
|
|
872
872
|
function ar(i) {
|
|
873
873
|
return [
|
|
@@ -877,7 +877,7 @@ function ar(i) {
|
|
|
877
877
|
Tt(i.getAttribute("maxy"))
|
|
878
878
|
];
|
|
879
879
|
}
|
|
880
|
-
function
|
|
880
|
+
function Do(i, t) {
|
|
881
881
|
const e = ar(i), n = [
|
|
882
882
|
Tt(i.getAttribute("resx")),
|
|
883
883
|
Tt(i.getAttribute("resy"))
|
|
@@ -888,19 +888,19 @@ function To(i, t) {
|
|
|
888
888
|
res: n
|
|
889
889
|
};
|
|
890
890
|
}
|
|
891
|
-
function
|
|
891
|
+
function Po(i, t) {
|
|
892
892
|
const e = ar(i);
|
|
893
893
|
if (!(!S(e[0]) || !S(e[1]) || !S(e[2]) || !S(e[3])))
|
|
894
894
|
return e;
|
|
895
895
|
}
|
|
896
|
-
function
|
|
896
|
+
function Lo(i, t) {
|
|
897
897
|
const e = parseFloat(i.getAttribute("min")), n = parseFloat(i.getAttribute("max"));
|
|
898
898
|
return { min: e, max: n };
|
|
899
899
|
}
|
|
900
|
-
function
|
|
900
|
+
function Oo(i, t) {
|
|
901
901
|
const e = Q(
|
|
902
902
|
{},
|
|
903
|
-
|
|
903
|
+
is,
|
|
904
904
|
i,
|
|
905
905
|
t
|
|
906
906
|
);
|
|
@@ -926,19 +926,11 @@ function Lo(i, t) {
|
|
|
926
926
|
s
|
|
927
927
|
];
|
|
928
928
|
}
|
|
929
|
-
function Oo(i, t) {
|
|
930
|
-
return Q({}, Yo, i, t);
|
|
931
|
-
}
|
|
932
929
|
function Ro(i, t) {
|
|
933
930
|
return Q({}, Wo, i, t);
|
|
934
931
|
}
|
|
935
932
|
function Mo(i, t) {
|
|
936
|
-
return Q(
|
|
937
|
-
{},
|
|
938
|
-
Go,
|
|
939
|
-
i,
|
|
940
|
-
t
|
|
941
|
-
);
|
|
933
|
+
return Q({}, Go, i, t);
|
|
942
934
|
}
|
|
943
935
|
function Io(i, t) {
|
|
944
936
|
return Q(
|
|
@@ -958,14 +950,22 @@ function No(i, t) {
|
|
|
958
950
|
}
|
|
959
951
|
function Ho(i, t) {
|
|
960
952
|
return Q(
|
|
961
|
-
|
|
953
|
+
{},
|
|
962
954
|
Qo,
|
|
963
955
|
i,
|
|
964
956
|
t
|
|
965
957
|
);
|
|
966
958
|
}
|
|
967
959
|
function ko(i, t) {
|
|
968
|
-
|
|
960
|
+
return Q(
|
|
961
|
+
[],
|
|
962
|
+
ts,
|
|
963
|
+
i,
|
|
964
|
+
t
|
|
965
|
+
);
|
|
966
|
+
}
|
|
967
|
+
function Vo(i, t) {
|
|
968
|
+
const e = Kt(i.getAttribute("queryable"));
|
|
969
969
|
return Q(
|
|
970
970
|
{
|
|
971
971
|
queryable: S(e) ? e : !1
|
|
@@ -975,7 +975,7 @@ function ko(i, t) {
|
|
|
975
975
|
t
|
|
976
976
|
);
|
|
977
977
|
}
|
|
978
|
-
function
|
|
978
|
+
function Bo(i, t) {
|
|
979
979
|
var e = (
|
|
980
980
|
/** @type {Object.<string,*>} */
|
|
981
981
|
t[t.length - 1]
|
|
@@ -990,13 +990,13 @@ function Vo(i, t) {
|
|
|
990
990
|
)
|
|
991
991
|
);
|
|
992
992
|
if (!S(n)) return;
|
|
993
|
-
let r =
|
|
993
|
+
let r = Kt(i.getAttribute("queryable"));
|
|
994
994
|
S(r) || (r = e.queryable), n.queryable = S(r) ? r : !1;
|
|
995
995
|
let o = Je(i.getAttribute("cascaded"));
|
|
996
996
|
S(o) || (o = e.cascaded), n.cascaded = o;
|
|
997
|
-
let s =
|
|
997
|
+
let s = Kt(i.getAttribute("opaque"));
|
|
998
998
|
S(s) || (s = e.opaque), n.opaque = S(s) ? s : !1;
|
|
999
|
-
let a =
|
|
999
|
+
let a = Kt(i.getAttribute("noSubsets"));
|
|
1000
1000
|
S(a) || (a = e.noSubsets), n.noSubsets = S(a) ? a : !1;
|
|
1001
1001
|
let l = Tt(i.getAttribute("fixedWidth"));
|
|
1002
1002
|
S(l) || (l = e.fixedWidth), n.fixedWidth = l;
|
|
@@ -1027,37 +1027,37 @@ function Vo(i, t) {
|
|
|
1027
1027
|
}
|
|
1028
1028
|
return n;
|
|
1029
1029
|
}
|
|
1030
|
-
function
|
|
1030
|
+
function Uo(i, t) {
|
|
1031
1031
|
return {
|
|
1032
1032
|
name: i.getAttribute("name"),
|
|
1033
1033
|
units: i.getAttribute("units"),
|
|
1034
1034
|
unitSymbol: i.getAttribute("unitSymbol"),
|
|
1035
1035
|
default: i.getAttribute("default"),
|
|
1036
|
-
multipleValues:
|
|
1037
|
-
nearestValue:
|
|
1038
|
-
current:
|
|
1036
|
+
multipleValues: Kt(i.getAttribute("multipleValues")),
|
|
1037
|
+
nearestValue: Kt(i.getAttribute("nearestValue")),
|
|
1038
|
+
current: Kt(i.getAttribute("current")),
|
|
1039
1039
|
values: D(i)
|
|
1040
1040
|
};
|
|
1041
1041
|
}
|
|
1042
1042
|
function Pt(i, t) {
|
|
1043
1043
|
return Q(
|
|
1044
1044
|
{},
|
|
1045
|
-
|
|
1045
|
+
ls,
|
|
1046
1046
|
i,
|
|
1047
1047
|
t
|
|
1048
1048
|
);
|
|
1049
1049
|
}
|
|
1050
|
-
function Uo(i, t) {
|
|
1051
|
-
return Q({}, is, i, t);
|
|
1052
|
-
}
|
|
1053
1050
|
function Fo(i, t) {
|
|
1054
|
-
return Q({},
|
|
1051
|
+
return Q({}, ns, i, t);
|
|
1055
1052
|
}
|
|
1056
1053
|
function jo(i, t) {
|
|
1057
1054
|
return Q({}, os, i, t);
|
|
1058
1055
|
}
|
|
1056
|
+
function zo(i, t) {
|
|
1057
|
+
return Q({}, ss, i, t);
|
|
1058
|
+
}
|
|
1059
1059
|
function Mi(i, t) {
|
|
1060
|
-
return Q({},
|
|
1060
|
+
return Q({}, rs, i, t);
|
|
1061
1061
|
}
|
|
1062
1062
|
function lr(i, t) {
|
|
1063
1063
|
var e = Pt(i, t);
|
|
@@ -1069,23 +1069,23 @@ function lr(i, t) {
|
|
|
1069
1069
|
return e.size = n, e;
|
|
1070
1070
|
}
|
|
1071
1071
|
}
|
|
1072
|
-
function
|
|
1072
|
+
function Zo(i, t) {
|
|
1073
1073
|
var e = Pt(i, t);
|
|
1074
1074
|
if (S(e))
|
|
1075
1075
|
return e.name = i.getAttribute("name"), e;
|
|
1076
1076
|
}
|
|
1077
|
-
function
|
|
1077
|
+
function qo(i, t) {
|
|
1078
1078
|
var e = Pt(i, t);
|
|
1079
1079
|
if (S(e))
|
|
1080
1080
|
return e.type = i.getAttribute("type"), e;
|
|
1081
1081
|
}
|
|
1082
|
-
function
|
|
1083
|
-
return Q({},
|
|
1082
|
+
function Xo(i, t) {
|
|
1083
|
+
return Q({}, as, i, t);
|
|
1084
1084
|
}
|
|
1085
1085
|
function dr(i, t) {
|
|
1086
1086
|
return Q(
|
|
1087
1087
|
[],
|
|
1088
|
-
|
|
1088
|
+
ds,
|
|
1089
1089
|
i,
|
|
1090
1090
|
t
|
|
1091
1091
|
);
|
|
@@ -1093,20 +1093,20 @@ function dr(i, t) {
|
|
|
1093
1093
|
const rt = [
|
|
1094
1094
|
null,
|
|
1095
1095
|
"http://www.opengis.net/wms"
|
|
1096
|
-
],
|
|
1096
|
+
], Yo = nt(
|
|
1097
1097
|
rt,
|
|
1098
1098
|
{
|
|
1099
|
-
Service: y(
|
|
1100
|
-
Capability: y(
|
|
1099
|
+
Service: y(Mo),
|
|
1100
|
+
Capability: y(Ro)
|
|
1101
1101
|
}
|
|
1102
|
-
),
|
|
1102
|
+
), Wo = nt(
|
|
1103
1103
|
rt,
|
|
1104
1104
|
{
|
|
1105
|
-
Request: y(
|
|
1106
|
-
Exception: y(
|
|
1107
|
-
Layer: y(
|
|
1105
|
+
Request: y(Fo),
|
|
1106
|
+
Exception: y(ko),
|
|
1107
|
+
Layer: y(Vo)
|
|
1108
1108
|
}
|
|
1109
|
-
),
|
|
1109
|
+
), Go = nt(
|
|
1110
1110
|
rt,
|
|
1111
1111
|
{
|
|
1112
1112
|
Name: y(D),
|
|
@@ -1114,30 +1114,30 @@ const rt = [
|
|
|
1114
1114
|
Abstract: y(D),
|
|
1115
1115
|
KeywordList: y(dr),
|
|
1116
1116
|
OnlineResource: y(ln),
|
|
1117
|
-
ContactInformation: y(
|
|
1117
|
+
ContactInformation: y(Io),
|
|
1118
1118
|
Fees: y(D),
|
|
1119
1119
|
AccessConstraints: y(D),
|
|
1120
1120
|
LayerLimit: y(Ri),
|
|
1121
1121
|
MaxWidth: y(Ri),
|
|
1122
1122
|
MaxHeight: y(Ri)
|
|
1123
1123
|
}
|
|
1124
|
-
),
|
|
1124
|
+
), Jo = nt(
|
|
1125
1125
|
rt,
|
|
1126
1126
|
{
|
|
1127
|
-
ContactPersonPrimary: y(
|
|
1127
|
+
ContactPersonPrimary: y(No),
|
|
1128
1128
|
ContactPosition: y(D),
|
|
1129
|
-
ContactAddress: y(
|
|
1129
|
+
ContactAddress: y(Ho),
|
|
1130
1130
|
ContactVoiceTelephone: y(D),
|
|
1131
1131
|
ContactFacsimileTelephone: y(D),
|
|
1132
1132
|
ContactElectronicMailAddress: y(D)
|
|
1133
1133
|
}
|
|
1134
|
-
),
|
|
1134
|
+
), Ko = nt(
|
|
1135
1135
|
rt,
|
|
1136
1136
|
{
|
|
1137
1137
|
ContactPerson: y(D),
|
|
1138
1138
|
ContactOrganization: y(D)
|
|
1139
1139
|
}
|
|
1140
|
-
),
|
|
1140
|
+
), Qo = nt(
|
|
1141
1141
|
rt,
|
|
1142
1142
|
{
|
|
1143
1143
|
AddressType: y(D),
|
|
@@ -1147,7 +1147,7 @@ const rt = [
|
|
|
1147
1147
|
PostCode: y(D),
|
|
1148
1148
|
Country: y(D)
|
|
1149
1149
|
}
|
|
1150
|
-
),
|
|
1150
|
+
), ts = nt(
|
|
1151
1151
|
rt,
|
|
1152
1152
|
{
|
|
1153
1153
|
Format: sr(D)
|
|
@@ -1161,35 +1161,35 @@ const rt = [
|
|
|
1161
1161
|
KeywordList: y(dr),
|
|
1162
1162
|
CRS: pt(D),
|
|
1163
1163
|
SRS: pt(D),
|
|
1164
|
-
EX_GeographicBoundingBox: y(
|
|
1165
|
-
LatLonBoundingBox: y(
|
|
1166
|
-
BoundingBox: pt(
|
|
1167
|
-
Dimension: pt(
|
|
1168
|
-
Attribution: y(
|
|
1169
|
-
AuthorityURL: pt(
|
|
1164
|
+
EX_GeographicBoundingBox: y(Oo),
|
|
1165
|
+
LatLonBoundingBox: y(Po),
|
|
1166
|
+
BoundingBox: pt(Do),
|
|
1167
|
+
Dimension: pt(Uo),
|
|
1168
|
+
Attribution: y(To),
|
|
1169
|
+
AuthorityURL: pt(Zo),
|
|
1170
1170
|
Identifier: pt(D),
|
|
1171
|
-
MetadataURL: pt(
|
|
1171
|
+
MetadataURL: pt(qo),
|
|
1172
1172
|
DataURL: pt(Pt),
|
|
1173
1173
|
FeatureListURL: pt(Pt),
|
|
1174
|
-
Style: pt(
|
|
1175
|
-
MinScaleDenominator: y(
|
|
1176
|
-
MaxScaleDenominator: y(
|
|
1177
|
-
ScaleHint: y(
|
|
1178
|
-
Layer: pt(
|
|
1174
|
+
Style: pt(Xo),
|
|
1175
|
+
MinScaleDenominator: y(ae),
|
|
1176
|
+
MaxScaleDenominator: y(ae),
|
|
1177
|
+
ScaleHint: y(Lo),
|
|
1178
|
+
Layer: pt(Bo)
|
|
1179
1179
|
}
|
|
1180
|
-
),
|
|
1180
|
+
), es = nt(
|
|
1181
1181
|
rt,
|
|
1182
1182
|
{
|
|
1183
1183
|
Title: y(D),
|
|
1184
1184
|
OnlineResource: y(ln),
|
|
1185
1185
|
LogoURL: y(lr)
|
|
1186
1186
|
}
|
|
1187
|
-
),
|
|
1188
|
-
westBoundLongitude: y(
|
|
1189
|
-
eastBoundLongitude: y(
|
|
1190
|
-
southBoundLatitude: y(
|
|
1191
|
-
northBoundLatitude: y(
|
|
1192
|
-
}),
|
|
1187
|
+
), is = nt(rt, {
|
|
1188
|
+
westBoundLongitude: y(ae),
|
|
1189
|
+
eastBoundLongitude: y(ae),
|
|
1190
|
+
southBoundLatitude: y(ae),
|
|
1191
|
+
northBoundLatitude: y(ae)
|
|
1192
|
+
}), ns = nt(
|
|
1193
1193
|
rt,
|
|
1194
1194
|
{
|
|
1195
1195
|
GetCapabilities: y(
|
|
@@ -1202,22 +1202,22 @@ const rt = [
|
|
|
1202
1202
|
Mi
|
|
1203
1203
|
)
|
|
1204
1204
|
}
|
|
1205
|
-
),
|
|
1205
|
+
), rs = nt(
|
|
1206
1206
|
rt,
|
|
1207
1207
|
{
|
|
1208
1208
|
Format: pt(D),
|
|
1209
1209
|
DCPType: pt(
|
|
1210
|
-
|
|
1210
|
+
jo
|
|
1211
1211
|
)
|
|
1212
1212
|
}
|
|
1213
|
-
),
|
|
1213
|
+
), os = nt(
|
|
1214
1214
|
rt,
|
|
1215
1215
|
{
|
|
1216
1216
|
HTTP: y(
|
|
1217
|
-
|
|
1217
|
+
zo
|
|
1218
1218
|
)
|
|
1219
1219
|
}
|
|
1220
|
-
),
|
|
1220
|
+
), ss = nt(
|
|
1221
1221
|
rt,
|
|
1222
1222
|
{
|
|
1223
1223
|
Get: y(
|
|
@@ -1227,7 +1227,7 @@ const rt = [
|
|
|
1227
1227
|
Pt
|
|
1228
1228
|
)
|
|
1229
1229
|
}
|
|
1230
|
-
),
|
|
1230
|
+
), as = nt(
|
|
1231
1231
|
rt,
|
|
1232
1232
|
{
|
|
1233
1233
|
Name: y(D),
|
|
@@ -1237,19 +1237,19 @@ const rt = [
|
|
|
1237
1237
|
StyleSheetURL: y(Pt),
|
|
1238
1238
|
StyleURL: y(Pt)
|
|
1239
1239
|
}
|
|
1240
|
-
),
|
|
1240
|
+
), ls = nt(
|
|
1241
1241
|
rt,
|
|
1242
1242
|
{
|
|
1243
1243
|
Format: y(D),
|
|
1244
1244
|
OnlineResource: y(ln)
|
|
1245
1245
|
}
|
|
1246
|
-
),
|
|
1246
|
+
), ds = nt(
|
|
1247
1247
|
rt,
|
|
1248
1248
|
{
|
|
1249
1249
|
Keyword: sr(D)
|
|
1250
1250
|
}
|
|
1251
1251
|
);
|
|
1252
|
-
class
|
|
1252
|
+
class cs {
|
|
1253
1253
|
/**
|
|
1254
1254
|
* WMS Capabilities parser
|
|
1255
1255
|
*
|
|
@@ -1257,7 +1257,7 @@ class ds {
|
|
|
1257
1257
|
* @constructor
|
|
1258
1258
|
*/
|
|
1259
1259
|
constructor(t, e) {
|
|
1260
|
-
!e && typeof window < "u" && (e = window.DOMParser), this.version = void 0, this._parser = new
|
|
1260
|
+
!e && typeof window < "u" && (e = window.DOMParser), this.version = void 0, this._parser = new wo(e), this._data = t;
|
|
1261
1261
|
}
|
|
1262
1262
|
/**
|
|
1263
1263
|
* @param {String} xmlString
|
|
@@ -1297,17 +1297,17 @@ class ds {
|
|
|
1297
1297
|
readFromNode(t) {
|
|
1298
1298
|
return this.version = t.getAttribute("version"), Q({
|
|
1299
1299
|
version: this.version
|
|
1300
|
-
},
|
|
1300
|
+
}, Yo, t, []) || null;
|
|
1301
1301
|
}
|
|
1302
1302
|
}
|
|
1303
|
-
async function
|
|
1303
|
+
async function us(i) {
|
|
1304
1304
|
let t = new URL(i), e = t.searchParams;
|
|
1305
1305
|
e.set("SERVICE", "WMS"), e.set("REQUEST", "GetCapabilities");
|
|
1306
1306
|
let n = t.toString();
|
|
1307
1307
|
const r = await fetch(n);
|
|
1308
1308
|
if (r.ok) {
|
|
1309
1309
|
const o = await r.text();
|
|
1310
|
-
return new
|
|
1310
|
+
return new cs(o).toJSON();
|
|
1311
1311
|
} else
|
|
1312
1312
|
throw new Error(`Error: ${r.status}`);
|
|
1313
1313
|
}
|
|
@@ -1315,7 +1315,7 @@ function dn(i) {
|
|
|
1315
1315
|
const t = /\b(?:wms|ows)\b/i, e = /{(?:z|x|y-?)}\/{(?:z|x|y-?)}\/{(?:z|x|y-?)}/i;
|
|
1316
1316
|
return t.test(i) ? "TileWMS" : e.test(i) ? "XYZ" : !1;
|
|
1317
1317
|
}
|
|
1318
|
-
function
|
|
1318
|
+
function hs(i) {
|
|
1319
1319
|
const e = /^(?:(?:https?|ftp):\/\/|\/\/)?(?:localhost|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}|(?:\w+[\w-]*\.)+\w+)(?::\d+)?(?:\/\S*)?$/.test(i), n = dn(i);
|
|
1320
1320
|
return !!(i && e && n);
|
|
1321
1321
|
}
|
|
@@ -1325,14 +1325,14 @@ function ur(i) {
|
|
|
1325
1325
|
'"$2": '
|
|
1326
1326
|
).replace(/,\s*}/g, "}").replace(/,\s*]/g, "]").replace(/\s*(\{|}|\[|\]|,)\s*/g, "$1").replaceAll('": //', "://");
|
|
1327
1327
|
}
|
|
1328
|
-
function
|
|
1328
|
+
function ps(i) {
|
|
1329
1329
|
try {
|
|
1330
1330
|
return JSON.parse(ur(i)), !!i;
|
|
1331
1331
|
} catch {
|
|
1332
1332
|
return !1;
|
|
1333
1333
|
}
|
|
1334
1334
|
}
|
|
1335
|
-
function
|
|
1335
|
+
function fs(i, t) {
|
|
1336
1336
|
const e = new URL(i).searchParams;
|
|
1337
1337
|
Object.entries(t).forEach(([s, a]) => {
|
|
1338
1338
|
typeof a == "object" && !Array.isArray(a) && a !== null ? Object.keys(a).forEach((l) => {
|
|
@@ -1362,7 +1362,7 @@ function St(i) {
|
|
|
1362
1362
|
for (var t = 1; t < arguments.length; t++) {
|
|
1363
1363
|
var e = arguments[t] != null ? arguments[t] : {};
|
|
1364
1364
|
t % 2 ? Pn(Object(e), !0).forEach(function(n) {
|
|
1365
|
-
|
|
1365
|
+
gs(i, n, e[n]);
|
|
1366
1366
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(e)) : Pn(Object(e)).forEach(function(n) {
|
|
1367
1367
|
Object.defineProperty(i, n, Object.getOwnPropertyDescriptor(e, n));
|
|
1368
1368
|
});
|
|
@@ -1377,7 +1377,7 @@ function je(i) {
|
|
|
1377
1377
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
1378
1378
|
}, je(i);
|
|
1379
1379
|
}
|
|
1380
|
-
function
|
|
1380
|
+
function gs(i, t, e) {
|
|
1381
1381
|
return t in i ? Object.defineProperty(i, t, {
|
|
1382
1382
|
value: e,
|
|
1383
1383
|
enumerable: !0,
|
|
@@ -1395,16 +1395,16 @@ function Lt() {
|
|
|
1395
1395
|
return i;
|
|
1396
1396
|
}, Lt.apply(this, arguments);
|
|
1397
1397
|
}
|
|
1398
|
-
function
|
|
1398
|
+
function ms(i, t) {
|
|
1399
1399
|
if (i == null) return {};
|
|
1400
1400
|
var e = {}, n = Object.keys(i), r, o;
|
|
1401
1401
|
for (o = 0; o < n.length; o++)
|
|
1402
1402
|
r = n[o], !(t.indexOf(r) >= 0) && (e[r] = i[r]);
|
|
1403
1403
|
return e;
|
|
1404
1404
|
}
|
|
1405
|
-
function
|
|
1405
|
+
function ys(i, t) {
|
|
1406
1406
|
if (i == null) return {};
|
|
1407
|
-
var e =
|
|
1407
|
+
var e = ms(i, t), n, r;
|
|
1408
1408
|
if (Object.getOwnPropertySymbols) {
|
|
1409
1409
|
var o = Object.getOwnPropertySymbols(i);
|
|
1410
1410
|
for (r = 0; r < o.length; r++)
|
|
@@ -1412,7 +1412,7 @@ function ms(i, t) {
|
|
|
1412
1412
|
}
|
|
1413
1413
|
return e;
|
|
1414
1414
|
}
|
|
1415
|
-
var
|
|
1415
|
+
var bs = "1.15.6";
|
|
1416
1416
|
function Dt(i) {
|
|
1417
1417
|
if (typeof window < "u" && window.navigator)
|
|
1418
1418
|
return !!/* @__PURE__ */ navigator.userAgent.match(i);
|
|
@@ -1475,7 +1475,7 @@ function v(i, t, e) {
|
|
|
1475
1475
|
!(t in n) && t.indexOf("webkit") === -1 && (t = "-webkit-" + t), n[t] = e + (typeof e == "string" ? "" : "px");
|
|
1476
1476
|
}
|
|
1477
1477
|
}
|
|
1478
|
-
function
|
|
1478
|
+
function de(i, t) {
|
|
1479
1479
|
var e = "";
|
|
1480
1480
|
if (typeof i == "string")
|
|
1481
1481
|
e = i;
|
|
@@ -1513,7 +1513,7 @@ function W(i, t, e, n, r) {
|
|
|
1513
1513
|
}
|
|
1514
1514
|
while (r = r.parentNode);
|
|
1515
1515
|
if (n && i !== window) {
|
|
1516
|
-
var f =
|
|
1516
|
+
var f = de(r || i), g = f && f.a, b = f && f.d;
|
|
1517
1517
|
f && (s /= b, a /= g, c /= g, u /= b, l = s + u, d = a + c);
|
|
1518
1518
|
}
|
|
1519
1519
|
return {
|
|
@@ -1535,7 +1535,7 @@ function Rn(i, t, e) {
|
|
|
1535
1535
|
}
|
|
1536
1536
|
return !1;
|
|
1537
1537
|
}
|
|
1538
|
-
function
|
|
1538
|
+
function ue(i, t, e, n) {
|
|
1539
1539
|
for (var r = 0, o = 0, s = i.children; o < s.length; ) {
|
|
1540
1540
|
if (s[o].style.display !== "none" && s[o] !== w.ghost && (n || s[o] !== w.dragged) && xt(s[o], e.draggable, i, !1)) {
|
|
1541
1541
|
if (r === t)
|
|
@@ -1563,12 +1563,12 @@ function Mn(i) {
|
|
|
1563
1563
|
var t = 0, e = 0, n = Et();
|
|
1564
1564
|
if (i)
|
|
1565
1565
|
do {
|
|
1566
|
-
var r =
|
|
1566
|
+
var r = de(i), o = r.a, s = r.d;
|
|
1567
1567
|
t += i.scrollLeft * o, e += i.scrollTop * s;
|
|
1568
1568
|
} while (i !== n && (i = i.parentNode));
|
|
1569
1569
|
return [t, e];
|
|
1570
1570
|
}
|
|
1571
|
-
function
|
|
1571
|
+
function vs(i, t) {
|
|
1572
1572
|
for (var e in i)
|
|
1573
1573
|
if (i.hasOwnProperty(e)) {
|
|
1574
1574
|
for (var n in t)
|
|
@@ -1591,7 +1591,7 @@ function Vt(i, t) {
|
|
|
1591
1591
|
while (e = e.parentNode);
|
|
1592
1592
|
return Et();
|
|
1593
1593
|
}
|
|
1594
|
-
function
|
|
1594
|
+
function ws(i, t) {
|
|
1595
1595
|
if (i && t)
|
|
1596
1596
|
for (var e in t)
|
|
1597
1597
|
t.hasOwnProperty(e) && (i[e] = t[e]);
|
|
@@ -1611,7 +1611,7 @@ function mr(i, t) {
|
|
|
1611
1611
|
}
|
|
1612
1612
|
};
|
|
1613
1613
|
}
|
|
1614
|
-
function
|
|
1614
|
+
function xs() {
|
|
1615
1615
|
clearTimeout($e), $e = void 0;
|
|
1616
1616
|
}
|
|
1617
1617
|
function yr(i, t, e) {
|
|
@@ -1632,7 +1632,7 @@ function vr(i, t, e) {
|
|
|
1632
1632
|
}), n.width = n.right - n.left, n.height = n.bottom - n.top, n.x = n.left, n.y = n.top, n;
|
|
1633
1633
|
}
|
|
1634
1634
|
var ft = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
|
|
1635
|
-
function
|
|
1635
|
+
function $s() {
|
|
1636
1636
|
var i = [], t;
|
|
1637
1637
|
return {
|
|
1638
1638
|
captureAnimationState: function() {
|
|
@@ -1646,7 +1646,7 @@ function xs() {
|
|
|
1646
1646
|
});
|
|
1647
1647
|
var o = St({}, i[i.length - 1].rect);
|
|
1648
1648
|
if (r.thisAnimationDuration) {
|
|
1649
|
-
var s =
|
|
1649
|
+
var s = de(r, !0);
|
|
1650
1650
|
s && (o.top -= s.f, o.left -= s.e);
|
|
1651
1651
|
}
|
|
1652
1652
|
r.fromRect = o;
|
|
@@ -1658,7 +1658,7 @@ function xs() {
|
|
|
1658
1658
|
i.push(n);
|
|
1659
1659
|
},
|
|
1660
1660
|
removeAnimationState: function(n) {
|
|
1661
|
-
i.splice(
|
|
1661
|
+
i.splice(vs(i, {
|
|
1662
1662
|
target: n
|
|
1663
1663
|
}), 1);
|
|
1664
1664
|
},
|
|
@@ -1670,9 +1670,9 @@ function xs() {
|
|
|
1670
1670
|
}
|
|
1671
1671
|
var o = !1, s = 0;
|
|
1672
1672
|
i.forEach(function(a) {
|
|
1673
|
-
var l = 0, d = a.target, u = d.fromRect, c = W(d), p = d.prevFromRect, f = d.prevToRect, g = a.rect, b =
|
|
1673
|
+
var l = 0, d = a.target, u = d.fromRect, c = W(d), p = d.prevFromRect, f = d.prevToRect, g = a.rect, b = de(d, !0);
|
|
1674
1674
|
b && (c.top -= b.f, c.left -= b.e), d.toRect = c, d.thisAnimationDuration && Ii(p, c) && !Ii(u, c) && // Make sure animatingRect is on line between toRect & fromRect
|
|
1675
|
-
(g.top - c.top) / (g.left - c.left) === (u.top - c.top) / (u.left - c.left) && (l =
|
|
1675
|
+
(g.top - c.top) / (g.left - c.left) === (u.top - c.top) / (u.left - c.left) && (l = Ss(g, p, f, r.options)), Ii(c, u) || (d.prevFromRect = u, d.prevToRect = c, l || (l = r.options.animation), r.animate(d, g, c, l)), l && (o = !0, s = Math.max(s, l), clearTimeout(d.animationResetTimer), d.animationResetTimer = setTimeout(function() {
|
|
1676
1676
|
d.animationTime = 0, d.prevFromRect = null, d.fromRect = null, d.prevToRect = null, d.thisAnimationDuration = null;
|
|
1677
1677
|
}, l), d.thisAnimationDuration = l);
|
|
1678
1678
|
}), clearTimeout(t), o ? t = setTimeout(function() {
|
|
@@ -1682,30 +1682,30 @@ function xs() {
|
|
|
1682
1682
|
animate: function(n, r, o, s) {
|
|
1683
1683
|
if (s) {
|
|
1684
1684
|
v(n, "transition", ""), v(n, "transform", "");
|
|
1685
|
-
var a =
|
|
1686
|
-
n.animatingX = !!u, n.animatingY = !!c, v(n, "transform", "translate3d(" + u + "px," + c + "px,0)"), this.forRepaintDummy =
|
|
1685
|
+
var a = de(this.el), l = a && a.a, d = a && a.d, u = (r.left - o.left) / (l || 1), c = (r.top - o.top) / (d || 1);
|
|
1686
|
+
n.animatingX = !!u, n.animatingY = !!c, v(n, "transform", "translate3d(" + u + "px," + c + "px,0)"), this.forRepaintDummy = Es(n), v(n, "transition", "transform " + s + "ms" + (this.options.easing ? " " + this.options.easing : "")), v(n, "transform", "translate3d(0,0,0)"), typeof n.animated == "number" && clearTimeout(n.animated), n.animated = setTimeout(function() {
|
|
1687
1687
|
v(n, "transition", ""), v(n, "transform", ""), n.animated = !1, n.animatingX = !1, n.animatingY = !1;
|
|
1688
1688
|
}, s);
|
|
1689
1689
|
}
|
|
1690
1690
|
}
|
|
1691
1691
|
};
|
|
1692
1692
|
}
|
|
1693
|
-
function
|
|
1693
|
+
function Es(i) {
|
|
1694
1694
|
return i.offsetWidth;
|
|
1695
1695
|
}
|
|
1696
|
-
function
|
|
1696
|
+
function Ss(i, t, e, n) {
|
|
1697
1697
|
return Math.sqrt(Math.pow(t.top - i.top, 2) + Math.pow(t.left - i.left, 2)) / Math.sqrt(Math.pow(t.top - e.top, 2) + Math.pow(t.left - e.left, 2)) * n.animation;
|
|
1698
1698
|
}
|
|
1699
|
-
var
|
|
1699
|
+
var ie = [], Ni = {
|
|
1700
1700
|
initializeByDefault: !0
|
|
1701
1701
|
}, Ie = {
|
|
1702
1702
|
mount: function(t) {
|
|
1703
1703
|
for (var e in Ni)
|
|
1704
1704
|
Ni.hasOwnProperty(e) && !(e in t) && (t[e] = Ni[e]);
|
|
1705
|
-
|
|
1705
|
+
ie.forEach(function(n) {
|
|
1706
1706
|
if (n.pluginName === t.pluginName)
|
|
1707
1707
|
throw "Sortable: Cannot mount plugin ".concat(t.pluginName, " more than once");
|
|
1708
|
-
}),
|
|
1708
|
+
}), ie.push(t);
|
|
1709
1709
|
},
|
|
1710
1710
|
pluginEvent: function(t, e, n) {
|
|
1711
1711
|
var r = this;
|
|
@@ -1713,7 +1713,7 @@ var ee = [], Ni = {
|
|
|
1713
1713
|
r.eventCanceled = !0;
|
|
1714
1714
|
};
|
|
1715
1715
|
var o = t + "Global";
|
|
1716
|
-
|
|
1716
|
+
ie.forEach(function(s) {
|
|
1717
1717
|
e[s.pluginName] && (e[s.pluginName][o] && e[s.pluginName][o](St({
|
|
1718
1718
|
sortable: e
|
|
1719
1719
|
}, n)), e.options[s.pluginName] && e[s.pluginName][t] && e[s.pluginName][t](St({
|
|
@@ -1722,7 +1722,7 @@ var ee = [], Ni = {
|
|
|
1722
1722
|
});
|
|
1723
1723
|
},
|
|
1724
1724
|
initializePlugins: function(t, e, n, r) {
|
|
1725
|
-
|
|
1725
|
+
ie.forEach(function(a) {
|
|
1726
1726
|
var l = a.pluginName;
|
|
1727
1727
|
if (!(!t.options[l] && !a.initializeByDefault)) {
|
|
1728
1728
|
var d = new a(t, e, t.options);
|
|
@@ -1737,18 +1737,18 @@ var ee = [], Ni = {
|
|
|
1737
1737
|
},
|
|
1738
1738
|
getEventProperties: function(t, e) {
|
|
1739
1739
|
var n = {};
|
|
1740
|
-
return
|
|
1740
|
+
return ie.forEach(function(r) {
|
|
1741
1741
|
typeof r.eventProperties == "function" && Lt(n, r.eventProperties.call(e[r.pluginName], t));
|
|
1742
1742
|
}), n;
|
|
1743
1743
|
},
|
|
1744
1744
|
modifyOption: function(t, e, n) {
|
|
1745
1745
|
var r;
|
|
1746
|
-
return
|
|
1746
|
+
return ie.forEach(function(o) {
|
|
1747
1747
|
t[o.pluginName] && o.optionListeners && typeof o.optionListeners[e] == "function" && (r = o.optionListeners[e].call(t[o.pluginName], n));
|
|
1748
1748
|
}), r;
|
|
1749
1749
|
}
|
|
1750
1750
|
};
|
|
1751
|
-
function
|
|
1751
|
+
function As(i) {
|
|
1752
1752
|
var t = i.sortable, e = i.rootEl, n = i.name, r = i.targetEl, o = i.cloneEl, s = i.toEl, a = i.fromEl, l = i.oldIndex, d = i.newIndex, u = i.oldDraggableIndex, c = i.newDraggableIndex, p = i.originalEvent, f = i.putSortable, g = i.extraEventProperties;
|
|
1753
1753
|
if (t = t || e && e[ft], !!t) {
|
|
1754
1754
|
var b, N = t.options, J = "on" + n.charAt(0).toUpperCase() + n.substr(1);
|
|
@@ -1756,28 +1756,28 @@ function Ss(i) {
|
|
|
1756
1756
|
bubbles: !0,
|
|
1757
1757
|
cancelable: !0
|
|
1758
1758
|
}) : (b = document.createEvent("Event"), b.initEvent(n, !0, !0)), b.to = s || e, b.from = a || e, b.item = r || e, b.clone = o, b.oldIndex = l, b.newIndex = d, b.oldDraggableIndex = u, b.newDraggableIndex = c, b.originalEvent = p, b.pullMode = f ? f.lastPutMode : void 0;
|
|
1759
|
-
var
|
|
1760
|
-
for (var st in
|
|
1761
|
-
b[st] =
|
|
1759
|
+
var F = St(St({}, g), Ie.getEventProperties(n, t));
|
|
1760
|
+
for (var st in F)
|
|
1761
|
+
b[st] = F[st];
|
|
1762
1762
|
e && e.dispatchEvent(b), N[J] && N[J].call(t, b);
|
|
1763
1763
|
}
|
|
1764
1764
|
}
|
|
1765
|
-
var
|
|
1766
|
-
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, o =
|
|
1765
|
+
var _s = ["evt"], ht = function(t, e) {
|
|
1766
|
+
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, o = ys(n, _s);
|
|
1767
1767
|
Ie.pluginEvent.bind(w)(t, e, St({
|
|
1768
1768
|
dragEl: h,
|
|
1769
1769
|
parentEl: z,
|
|
1770
1770
|
ghostEl: $,
|
|
1771
1771
|
rootEl: k,
|
|
1772
|
-
nextEl:
|
|
1772
|
+
nextEl: Gt,
|
|
1773
1773
|
lastDownEl: ze,
|
|
1774
|
-
cloneEl:
|
|
1774
|
+
cloneEl: U,
|
|
1775
1775
|
cloneHidden: Ht,
|
|
1776
1776
|
dragStarted: me,
|
|
1777
1777
|
putSortable: et,
|
|
1778
1778
|
activeSortable: w.active,
|
|
1779
1779
|
originalEvent: r,
|
|
1780
|
-
oldIndex:
|
|
1780
|
+
oldIndex: le,
|
|
1781
1781
|
oldDraggableIndex: Ee,
|
|
1782
1782
|
newIndex: yt,
|
|
1783
1783
|
newDraggableIndex: Nt,
|
|
@@ -1799,18 +1799,18 @@ var As = ["evt"], ht = function(t, e) {
|
|
|
1799
1799
|
}, o));
|
|
1800
1800
|
};
|
|
1801
1801
|
function at(i) {
|
|
1802
|
-
|
|
1802
|
+
As(St({
|
|
1803
1803
|
putSortable: et,
|
|
1804
|
-
cloneEl:
|
|
1804
|
+
cloneEl: U,
|
|
1805
1805
|
targetEl: h,
|
|
1806
1806
|
rootEl: k,
|
|
1807
|
-
oldIndex:
|
|
1807
|
+
oldIndex: le,
|
|
1808
1808
|
oldDraggableIndex: Ee,
|
|
1809
1809
|
newIndex: yt,
|
|
1810
1810
|
newDraggableIndex: Nt
|
|
1811
1811
|
}, i));
|
|
1812
1812
|
}
|
|
1813
|
-
var h, z, $, k,
|
|
1813
|
+
var h, z, $, k, Gt, ze, U, Ht, le, yt, Ee, Nt, ke, et, oe = !1, Qe = !1, ti = [], Yt, wt, Hi, ki, In, Nn, me, ne, Se, Ae = !1, Ve = !1, Ze, ot, Vi = [], Xi = !1, ei = [], Ai = typeof document < "u", Be = cn, Hn = Me || Ot ? "cssFloat" : "float", Cs = Ai && !hr && !cn && "draggable" in document.createElement("div"), wr = function() {
|
|
1814
1814
|
if (Ai) {
|
|
1815
1815
|
if (Ot)
|
|
1816
1816
|
return !1;
|
|
@@ -1818,7 +1818,7 @@ var h, z, $, k, Wt, ze, B, Ht, ae, yt, Ee, Nt, ke, et, re = !1, Qe = !1, ti = []
|
|
|
1818
1818
|
return i.style.cssText = "pointer-events:auto", i.style.pointerEvents === "auto";
|
|
1819
1819
|
}
|
|
1820
1820
|
}(), xr = function(t, e) {
|
|
1821
|
-
var n = v(t), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), o =
|
|
1821
|
+
var n = v(t), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), o = ue(t, 0, e), s = ue(t, 1, e), a = o && v(o), l = s && v(s), d = a && parseInt(a.marginLeft) + parseInt(a.marginRight) + W(o).width, u = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + W(s).width;
|
|
1822
1822
|
if (n.display === "flex")
|
|
1823
1823
|
return n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
1824
1824
|
if (n.display === "grid")
|
|
@@ -1828,10 +1828,10 @@ var h, z, $, k, Wt, ze, B, Ht, ae, yt, Ee, Nt, ke, et, re = !1, Qe = !1, ti = []
|
|
|
1828
1828
|
return s && (l.clear === "both" || l.clear === c) ? "vertical" : "horizontal";
|
|
1829
1829
|
}
|
|
1830
1830
|
return o && (a.display === "block" || a.display === "flex" || a.display === "table" || a.display === "grid" || d >= r && n[Hn] === "none" || s && n[Hn] === "none" && d + u > r) ? "vertical" : "horizontal";
|
|
1831
|
-
},
|
|
1831
|
+
}, Ts = function(t, e, n) {
|
|
1832
1832
|
var r = n ? t.left : t.top, o = n ? t.right : t.bottom, s = n ? t.width : t.height, a = n ? e.left : e.top, l = n ? e.right : e.bottom, d = n ? e.width : e.height;
|
|
1833
1833
|
return r === a || o === l || r + s / 2 === a + d / 2;
|
|
1834
|
-
},
|
|
1834
|
+
}, Ds = function(t, e) {
|
|
1835
1835
|
var n;
|
|
1836
1836
|
return ti.some(function(r) {
|
|
1837
1837
|
var o = r[ft].options.emptyInsertThreshold;
|
|
@@ -1870,10 +1870,10 @@ Ai && !hr && document.addEventListener("click", function(i) {
|
|
|
1870
1870
|
if (Qe)
|
|
1871
1871
|
return i.preventDefault(), i.stopPropagation && i.stopPropagation(), i.stopImmediatePropagation && i.stopImmediatePropagation(), Qe = !1, !1;
|
|
1872
1872
|
}, !0);
|
|
1873
|
-
var
|
|
1873
|
+
var Wt = function(t) {
|
|
1874
1874
|
if (h) {
|
|
1875
1875
|
t = t.touches ? t.touches[0] : t;
|
|
1876
|
-
var e =
|
|
1876
|
+
var e = Ds(t.clientX, t.clientY);
|
|
1877
1877
|
if (e) {
|
|
1878
1878
|
var n = {};
|
|
1879
1879
|
for (var r in t)
|
|
@@ -1881,7 +1881,7 @@ var Yt = function(t) {
|
|
|
1881
1881
|
n.target = n.rootEl = e, n.preventDefault = void 0, n.stopPropagation = void 0, e[ft]._onDragOver(n);
|
|
1882
1882
|
}
|
|
1883
1883
|
}
|
|
1884
|
-
},
|
|
1884
|
+
}, Ps = function(t) {
|
|
1885
1885
|
h && h.parentNode[ft]._isOutsideThisEl(t.target);
|
|
1886
1886
|
};
|
|
1887
1887
|
function w(i, t) {
|
|
@@ -1940,13 +1940,13 @@ function w(i, t) {
|
|
|
1940
1940
|
$r(t);
|
|
1941
1941
|
for (var r in this)
|
|
1942
1942
|
r.charAt(0) === "_" && typeof this[r] == "function" && (this[r] = this[r].bind(this));
|
|
1943
|
-
this.nativeDraggable = t.forceFallback ? !1 :
|
|
1943
|
+
this.nativeDraggable = t.forceFallback ? !1 : Cs, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? C(i, "pointerdown", this._onTapStart) : (C(i, "mousedown", this._onTapStart), C(i, "touchstart", this._onTapStart)), this.nativeDraggable && (C(i, "dragover", this), C(i, "dragenter", this)), ti.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), Lt(this, $s());
|
|
1944
1944
|
}
|
|
1945
1945
|
w.prototype = /** @lends Sortable.prototype */
|
|
1946
1946
|
{
|
|
1947
1947
|
constructor: w,
|
|
1948
1948
|
_isOutsideThisEl: function(t) {
|
|
1949
|
-
!this.el.contains(t) && t !== this.el && (
|
|
1949
|
+
!this.el.contains(t) && t !== this.el && (ne = null);
|
|
1950
1950
|
},
|
|
1951
1951
|
_getDirection: function(t, e) {
|
|
1952
1952
|
return typeof this.options.direction == "function" ? this.options.direction.call(this, t, e, h) : this.options.direction;
|
|
@@ -1954,8 +1954,8 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
1954
1954
|
_onTapStart: function(t) {
|
|
1955
1955
|
if (t.cancelable) {
|
|
1956
1956
|
var e = this, n = this.el, r = this.options, o = r.preventOnFilter, s = t.type, a = t.touches && t.touches[0] || t.pointerType && t.pointerType === "touch" && t, l = (a || t).target, d = t.target.shadowRoot && (t.path && t.path[0] || t.composedPath && t.composedPath()[0]) || l, u = r.filter;
|
|
1957
|
-
if (
|
|
1958
|
-
if (
|
|
1957
|
+
if (ks(n), !h && !(/mousedown|pointerdown/.test(s) && t.button !== 0 || r.disabled) && !d.isContentEditable && !(!this.nativeDraggable && xe && l && l.tagName.toUpperCase() === "SELECT") && (l = xt(l, r.draggable, n, !1), !(l && l.animated) && ze !== l)) {
|
|
1958
|
+
if (le = bt(l), Ee = bt(l, r.draggable), typeof u == "function") {
|
|
1959
1959
|
if (u.call(this, t, l, this)) {
|
|
1960
1960
|
at({
|
|
1961
1961
|
sortable: e,
|
|
@@ -1993,11 +1993,11 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
1993
1993
|
var r = this, o = r.el, s = r.options, a = o.ownerDocument, l;
|
|
1994
1994
|
if (n && !h && n.parentNode === o) {
|
|
1995
1995
|
var d = W(n);
|
|
1996
|
-
if (k = o, h = n, z = h.parentNode,
|
|
1996
|
+
if (k = o, h = n, z = h.parentNode, Gt = h.nextSibling, ze = n, ke = s.group, w.dragged = h, Yt = {
|
|
1997
1997
|
target: h,
|
|
1998
1998
|
clientX: (e || t).clientX,
|
|
1999
1999
|
clientY: (e || t).clientY
|
|
2000
|
-
}, In =
|
|
2000
|
+
}, In = Yt.clientX - d.left, Nn = Yt.clientY - d.top, this._lastX = (e || t).clientX, this._lastY = (e || t).clientY, h.style["will-change"] = "all", l = function() {
|
|
2001
2001
|
if (ht("delayEnded", r, {
|
|
2002
2002
|
evt: t
|
|
2003
2003
|
}), w.eventCanceled) {
|
|
@@ -2011,7 +2011,7 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2011
2011
|
}), mt(h, s.chosenClass, !0);
|
|
2012
2012
|
}, s.ignore.split(",").forEach(function(u) {
|
|
2013
2013
|
gr(h, u.trim(), Bi);
|
|
2014
|
-
}), C(a, "dragover",
|
|
2014
|
+
}), C(a, "dragover", Wt), C(a, "mousemove", Wt), C(a, "touchmove", Wt), s.supportPointer ? (C(a, "pointerup", r._onDrop), !this.nativeDraggable && C(a, "pointercancel", r._onDrop)) : (C(a, "mouseup", r._onDrop), C(a, "touchend", r._onDrop), C(a, "touchcancel", r._onDrop)), Ln && this.nativeDraggable && (this.options.touchStartThreshold = 4, h.draggable = !0), ht("delayStart", this, {
|
|
2015
2015
|
evt: t
|
|
2016
2016
|
}), s.delay && (!s.delayOnTouchOnly || e) && (!this.nativeDraggable || !(Me || Ot))) {
|
|
2017
2017
|
if (w.eventCanceled) {
|
|
@@ -2044,10 +2044,10 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2044
2044
|
}
|
|
2045
2045
|
},
|
|
2046
2046
|
_dragStarted: function(t, e) {
|
|
2047
|
-
if (
|
|
2047
|
+
if (oe = !1, k && h) {
|
|
2048
2048
|
ht("dragStarted", this, {
|
|
2049
2049
|
evt: e
|
|
2050
|
-
}), this.nativeDraggable && C(document, "dragover",
|
|
2050
|
+
}), this.nativeDraggable && C(document, "dragover", Ps);
|
|
2051
2051
|
var n = this.options;
|
|
2052
2052
|
!t && mt(h, n.dragClass, !1), mt(h, n.ghostClass, !0), w.active = this, t && this._appendGhost(), at({
|
|
2053
2053
|
sortable: this,
|
|
@@ -2080,9 +2080,9 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2080
2080
|
}
|
|
2081
2081
|
},
|
|
2082
2082
|
_onTouchMove: function(t) {
|
|
2083
|
-
if (
|
|
2084
|
-
var e = this.options, n = e.fallbackTolerance, r = e.fallbackOffset, o = t.touches ? t.touches[0] : t, s = $ &&
|
|
2085
|
-
if (!w.active && !
|
|
2083
|
+
if (Yt) {
|
|
2084
|
+
var e = this.options, n = e.fallbackTolerance, r = e.fallbackOffset, o = t.touches ? t.touches[0] : t, s = $ && de($, !0), a = $ && s && s.a, l = $ && s && s.d, d = Be && ot && Mn(ot), u = (o.clientX - Yt.clientX + r.x) / (a || 1) + (d ? d[0] - Vi[0] : 0) / (a || 1), c = (o.clientY - Yt.clientY + r.y) / (l || 1) + (d ? d[1] - Vi[1] : 0) / (l || 1);
|
|
2085
|
+
if (!w.active && !oe) {
|
|
2086
2086
|
if (n && Math.max(Math.abs(o.clientX - this._lastX), Math.abs(o.clientY - this._lastY)) < n)
|
|
2087
2087
|
return;
|
|
2088
2088
|
this._onDragStart(t, !0);
|
|
@@ -2121,18 +2121,18 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2121
2121
|
this._onDrop();
|
|
2122
2122
|
return;
|
|
2123
2123
|
}
|
|
2124
|
-
ht("setupClone", this), w.eventCanceled || (
|
|
2125
|
-
ht("clone", n), !w.eventCanceled && (n.options.removeCloneOnHide || k.insertBefore(
|
|
2124
|
+
ht("setupClone", this), w.eventCanceled || (U = br(h), U.removeAttribute("id"), U.draggable = !1, U.style["will-change"] = "", this._hideClone(), mt(U, this.options.chosenClass, !1), w.clone = U), n.cloneId = qe(function() {
|
|
2125
|
+
ht("clone", n), !w.eventCanceled && (n.options.removeCloneOnHide || k.insertBefore(U, h), n._hideClone(), at({
|
|
2126
2126
|
sortable: n,
|
|
2127
2127
|
name: "clone"
|
|
2128
2128
|
}));
|
|
2129
|
-
}), !e && mt(h, o.dragClass, !0), e ? (Qe = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (_(document, "mouseup", n._onDrop), _(document, "touchend", n._onDrop), _(document, "touchcancel", n._onDrop), r && (r.effectAllowed = "move", o.setData && o.setData.call(n, r, h)), C(document, "drop", n), v(h, "transform", "translateZ(0)")),
|
|
2129
|
+
}), !e && mt(h, o.dragClass, !0), e ? (Qe = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (_(document, "mouseup", n._onDrop), _(document, "touchend", n._onDrop), _(document, "touchcancel", n._onDrop), r && (r.effectAllowed = "move", o.setData && o.setData.call(n, r, h)), C(document, "drop", n), v(h, "transform", "translateZ(0)")), oe = !0, n._dragStartId = qe(n._dragStarted.bind(n, e, t)), C(document, "selectstart", n), me = !0, window.getSelection().removeAllRanges(), xe && v(document.body, "user-select", "none");
|
|
2130
2130
|
},
|
|
2131
2131
|
// Returns true - if no further action is needed (either inserted or another condition)
|
|
2132
2132
|
_onDragOver: function(t) {
|
|
2133
2133
|
var e = this.el, n = t.target, r, o, s, a = this.options, l = a.group, d = w.active, u = ke === l, c = a.sort, p = et || d, f, g = this, b = !1;
|
|
2134
2134
|
if (Xi) return;
|
|
2135
|
-
function N(gt,
|
|
2135
|
+
function N(gt, jt) {
|
|
2136
2136
|
ht(gt, g, St({
|
|
2137
2137
|
evt: t,
|
|
2138
2138
|
isOwner: u,
|
|
@@ -2143,22 +2143,22 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2143
2143
|
canSort: c,
|
|
2144
2144
|
fromSortable: p,
|
|
2145
2145
|
target: n,
|
|
2146
|
-
completed:
|
|
2147
|
-
onMove: function(
|
|
2148
|
-
return Ue(k, e, h, r,
|
|
2146
|
+
completed: F,
|
|
2147
|
+
onMove: function(zt, At) {
|
|
2148
|
+
return Ue(k, e, h, r, zt, W(zt), t, At);
|
|
2149
2149
|
},
|
|
2150
2150
|
changed: st
|
|
2151
|
-
},
|
|
2151
|
+
}, jt));
|
|
2152
2152
|
}
|
|
2153
2153
|
function J() {
|
|
2154
2154
|
N("dragOverAnimationCapture"), g.captureAnimationState(), g !== p && p.captureAnimationState();
|
|
2155
2155
|
}
|
|
2156
|
-
function
|
|
2156
|
+
function F(gt) {
|
|
2157
2157
|
return N("dragOverCompleted", {
|
|
2158
2158
|
insertion: gt
|
|
2159
2159
|
}), gt && (u ? d._hideClone() : d._showClone(g), g !== p && (mt(h, et ? et.options.ghostClass : d.options.ghostClass, !1), mt(h, a.ghostClass, !0)), et !== g && g !== w.active ? et = g : g === w.active && et && (et = null), p === g && (g._ignoreWhileAnimating = n), g.animateAll(function() {
|
|
2160
2160
|
N("dragOverAnimationComplete"), g._ignoreWhileAnimating = null;
|
|
2161
|
-
}), g !== p && (p.animateAll(), p._ignoreWhileAnimating = null)), (n === h && !h.animated || n === e && !n.animated) && (
|
|
2161
|
+
}), g !== p && (p.animateAll(), p._ignoreWhileAnimating = null)), (n === h && !h.animated || n === e && !n.animated) && (ne = null), !a.dragoverBubble && !t.rootEl && n !== document && (h.parentNode[ft]._isOutsideThisEl(t.target), !gt && Wt(t)), !a.dragoverBubble && t.stopPropagation && t.stopPropagation(), b = !0;
|
|
2162
2162
|
}
|
|
2163
2163
|
function st() {
|
|
2164
2164
|
yt = bt(h), Nt = bt(h, a.draggable), at({
|
|
@@ -2172,27 +2172,27 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2172
2172
|
}
|
|
2173
2173
|
if (t.preventDefault !== void 0 && t.cancelable && t.preventDefault(), n = xt(n, a.draggable, e, !0), N("dragOver"), w.eventCanceled) return b;
|
|
2174
2174
|
if (h.contains(t.target) || n.animated && n.animatingX && n.animatingY || g._ignoreWhileAnimating === n)
|
|
2175
|
-
return
|
|
2175
|
+
return F(!1);
|
|
2176
2176
|
if (Qe = !1, d && !a.disabled && (u ? c || (s = z !== k) : et === this || (this.lastPutMode = ke.checkPull(this, d, h, t)) && l.checkPut(this, d, h, t))) {
|
|
2177
2177
|
if (f = this._getDirection(t, n) === "vertical", r = W(h), N("dragOverValid"), w.eventCanceled) return b;
|
|
2178
2178
|
if (s)
|
|
2179
|
-
return z = k, J(), this._hideClone(), N("revert"), w.eventCanceled || (
|
|
2179
|
+
return z = k, J(), this._hideClone(), N("revert"), w.eventCanceled || (Gt ? k.insertBefore(h, Gt) : k.appendChild(h)), F(!0);
|
|
2180
2180
|
var K = un(e, a.draggable);
|
|
2181
|
-
if (!K ||
|
|
2181
|
+
if (!K || Ms(t, f, this) && !K.animated) {
|
|
2182
2182
|
if (K === h)
|
|
2183
|
-
return
|
|
2183
|
+
return F(!1);
|
|
2184
2184
|
if (K && e === t.target && (n = K), n && (o = W(n)), Ue(k, e, h, r, n, o, t, !!n) !== !1)
|
|
2185
|
-
return J(), K && K.nextSibling ? e.insertBefore(h, K.nextSibling) : e.appendChild(h), z = e, st(),
|
|
2186
|
-
} else if (K &&
|
|
2187
|
-
var E =
|
|
2185
|
+
return J(), K && K.nextSibling ? e.insertBefore(h, K.nextSibling) : e.appendChild(h), z = e, st(), F(!0);
|
|
2186
|
+
} else if (K && Rs(t, f, this)) {
|
|
2187
|
+
var E = ue(e, 0, a, !0);
|
|
2188
2188
|
if (E === h)
|
|
2189
|
-
return
|
|
2189
|
+
return F(!1);
|
|
2190
2190
|
if (n = E, o = W(n), Ue(k, e, h, r, n, o, t, !1) !== !1)
|
|
2191
|
-
return J(), e.insertBefore(h, E), z = e, st(),
|
|
2191
|
+
return J(), e.insertBefore(h, E), z = e, st(), F(!0);
|
|
2192
2192
|
} else if (n.parentNode === e) {
|
|
2193
2193
|
o = W(n);
|
|
2194
|
-
var m = 0, A, M = h.parentNode !== e, O = !
|
|
2195
|
-
|
|
2194
|
+
var m = 0, A, M = h.parentNode !== e, O = !Ts(h.animated && h.toRect || r, n.animated && n.toRect || o, f), q = f ? "top" : "left", X = Rn(n, "top", "top") || Rn(h, "top", "top"), H = X ? X.scrollTop : void 0;
|
|
2195
|
+
ne !== n && (A = o[q], Ae = !1, Ve = !O && a.invertSwap || M), m = Is(t, n, o, f, O ? 1 : a.swapThreshold, a.invertedSwapThreshold == null ? a.swapThreshold : a.invertedSwapThreshold, Ve, ne === n);
|
|
2196
2196
|
var R;
|
|
2197
2197
|
if (m !== 0) {
|
|
2198
2198
|
var Z = bt(h);
|
|
@@ -2201,22 +2201,22 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2201
2201
|
while (R && (v(R, "display") === "none" || R === $));
|
|
2202
2202
|
}
|
|
2203
2203
|
if (m === 0 || R === n)
|
|
2204
|
-
return
|
|
2205
|
-
|
|
2204
|
+
return F(!1);
|
|
2205
|
+
ne = n, Se = m;
|
|
2206
2206
|
var dt = n.nextElementSibling, tt = !1;
|
|
2207
2207
|
tt = m === 1;
|
|
2208
2208
|
var ct = Ue(k, e, h, r, n, o, t, tt);
|
|
2209
2209
|
if (ct !== !1)
|
|
2210
|
-
return (ct === 1 || ct === -1) && (tt = ct === 1), Xi = !0, setTimeout(
|
|
2210
|
+
return (ct === 1 || ct === -1) && (tt = ct === 1), Xi = !0, setTimeout(Os, 30), J(), tt && !dt ? e.appendChild(h) : n.parentNode.insertBefore(h, tt ? dt : n), X && yr(X, 0, H - X.scrollTop), z = h.parentNode, A !== void 0 && !Ve && (Ze = Math.abs(A - W(n)[q])), st(), F(!0);
|
|
2211
2211
|
}
|
|
2212
2212
|
if (e.contains(h))
|
|
2213
|
-
return
|
|
2213
|
+
return F(!1);
|
|
2214
2214
|
}
|
|
2215
2215
|
return !1;
|
|
2216
2216
|
},
|
|
2217
2217
|
_ignoreWhileAnimating: null,
|
|
2218
2218
|
_offMoveEvents: function() {
|
|
2219
|
-
_(document, "mousemove", this._onTouchMove), _(document, "touchmove", this._onTouchMove), _(document, "pointermove", this._onTouchMove), _(document, "dragover",
|
|
2219
|
+
_(document, "mousemove", this._onTouchMove), _(document, "touchmove", this._onTouchMove), _(document, "pointermove", this._onTouchMove), _(document, "dragover", Wt), _(document, "mousemove", Wt), _(document, "touchmove", Wt);
|
|
2220
2220
|
},
|
|
2221
2221
|
_offUpEvents: function() {
|
|
2222
2222
|
var t = this.el.ownerDocument;
|
|
@@ -2230,7 +2230,7 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2230
2230
|
this._nulling();
|
|
2231
2231
|
return;
|
|
2232
2232
|
}
|
|
2233
|
-
|
|
2233
|
+
oe = !1, Ve = !1, Ae = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Yi(this.cloneId), Yi(this._dragStartId), this.nativeDraggable && (_(document, "drop", this), _(e, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), xe && v(document.body, "user-select", ""), v(h, "transform", ""), t && (me && (t.cancelable && t.preventDefault(), !n.dropBubble && t.stopPropagation()), $ && $.parentNode && $.parentNode.removeChild($), (k === z || et && et.lastPutMode !== "clone") && U && U.parentNode && U.parentNode.removeChild(U), h && (this.nativeDraggable && _(h, "dragend", this), Bi(h), h.style["will-change"] = "", me && !oe && mt(h, et ? et.options.ghostClass : this.options.ghostClass, !1), mt(h, this.options.chosenClass, !1), at({
|
|
2234
2234
|
sortable: this,
|
|
2235
2235
|
name: "unchoose",
|
|
2236
2236
|
toEl: z,
|
|
@@ -2259,7 +2259,7 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2259
2259
|
name: "sort",
|
|
2260
2260
|
toEl: z,
|
|
2261
2261
|
originalEvent: t
|
|
2262
|
-
})), et && et.save()) : yt !==
|
|
2262
|
+
})), et && et.save()) : yt !== le && yt >= 0 && (at({
|
|
2263
2263
|
sortable: this,
|
|
2264
2264
|
name: "update",
|
|
2265
2265
|
toEl: z,
|
|
@@ -2269,7 +2269,7 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2269
2269
|
name: "sort",
|
|
2270
2270
|
toEl: z,
|
|
2271
2271
|
originalEvent: t
|
|
2272
|
-
})), w.active && ((yt == null || yt === -1) && (yt =
|
|
2272
|
+
})), w.active && ((yt == null || yt === -1) && (yt = le, Nt = Ee), at({
|
|
2273
2273
|
sortable: this,
|
|
2274
2274
|
name: "end",
|
|
2275
2275
|
toEl: z,
|
|
@@ -2277,7 +2277,7 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2277
2277
|
}), this.save()))), this._nulling();
|
|
2278
2278
|
},
|
|
2279
2279
|
_nulling: function() {
|
|
2280
|
-
ht("nulling", this), k = h = z = $ =
|
|
2280
|
+
ht("nulling", this), k = h = z = $ = Gt = U = ze = Ht = Yt = wt = me = yt = Nt = le = Ee = ne = Se = et = ke = w.dragged = w.ghost = w.clone = w.active = null, ei.forEach(function(t) {
|
|
2281
2281
|
t.checked = !0;
|
|
2282
2282
|
}), ei.length = Hi = ki = 0;
|
|
2283
2283
|
},
|
|
@@ -2289,7 +2289,7 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2289
2289
|
break;
|
|
2290
2290
|
case "dragenter":
|
|
2291
2291
|
case "dragover":
|
|
2292
|
-
h && (this._onDragOver(t),
|
|
2292
|
+
h && (this._onDragOver(t), Ls(t));
|
|
2293
2293
|
break;
|
|
2294
2294
|
case "selectstart":
|
|
2295
2295
|
t.preventDefault();
|
|
@@ -2302,7 +2302,7 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2302
2302
|
*/
|
|
2303
2303
|
toArray: function() {
|
|
2304
2304
|
for (var t = [], e, n = this.el.children, r = 0, o = n.length, s = this.options; r < o; r++)
|
|
2305
|
-
e = n[r], xt(e, s.draggable, this.el, !1) && t.push(e.getAttribute(s.dataIdAttr) ||
|
|
2305
|
+
e = n[r], xt(e, s.draggable, this.el, !1) && t.push(e.getAttribute(s.dataIdAttr) || Hs(e));
|
|
2306
2306
|
return t;
|
|
2307
2307
|
},
|
|
2308
2308
|
/**
|
|
@@ -2360,7 +2360,7 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2360
2360
|
_hideClone: function() {
|
|
2361
2361
|
if (!Ht) {
|
|
2362
2362
|
if (ht("hideClone", this), w.eventCanceled) return;
|
|
2363
|
-
v(
|
|
2363
|
+
v(U, "display", "none"), this.options.removeCloneOnHide && U.parentNode && U.parentNode.removeChild(U), Ht = !0;
|
|
2364
2364
|
}
|
|
2365
2365
|
},
|
|
2366
2366
|
_showClone: function(t) {
|
|
@@ -2370,11 +2370,11 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2370
2370
|
}
|
|
2371
2371
|
if (Ht) {
|
|
2372
2372
|
if (ht("showClone", this), w.eventCanceled) return;
|
|
2373
|
-
h.parentNode == k && !this.options.group.revertClone ? k.insertBefore(
|
|
2373
|
+
h.parentNode == k && !this.options.group.revertClone ? k.insertBefore(U, h) : Gt ? k.insertBefore(U, Gt) : k.appendChild(U), this.options.group.revertClone && this.animate(h, U), v(U, "display", ""), Ht = !1;
|
|
2374
2374
|
}
|
|
2375
2375
|
}
|
|
2376
2376
|
};
|
|
2377
|
-
function
|
|
2377
|
+
function Ls(i) {
|
|
2378
2378
|
i.dataTransfer && (i.dataTransfer.dropEffect = "move"), i.cancelable && i.preventDefault();
|
|
2379
2379
|
}
|
|
2380
2380
|
function Ue(i, t, e, n, r, o, s, a) {
|
|
@@ -2387,18 +2387,18 @@ function Ue(i, t, e, n, r, o, s, a) {
|
|
|
2387
2387
|
function Bi(i) {
|
|
2388
2388
|
i.draggable = !1;
|
|
2389
2389
|
}
|
|
2390
|
-
function
|
|
2390
|
+
function Os() {
|
|
2391
2391
|
Xi = !1;
|
|
2392
2392
|
}
|
|
2393
|
-
function
|
|
2394
|
-
var n = W(
|
|
2393
|
+
function Rs(i, t, e) {
|
|
2394
|
+
var n = W(ue(e.el, 0, e.options, !0)), r = vr(e.el, e.options, $), o = 10;
|
|
2395
2395
|
return t ? i.clientX < r.left - o || i.clientY < n.top && i.clientX < n.right : i.clientY < r.top - o || i.clientY < n.bottom && i.clientX < n.left;
|
|
2396
2396
|
}
|
|
2397
|
-
function
|
|
2397
|
+
function Ms(i, t, e) {
|
|
2398
2398
|
var n = W(un(e.el, e.options.draggable)), r = vr(e.el, e.options, $), o = 10;
|
|
2399
2399
|
return t ? i.clientX > r.right + o || i.clientY > n.bottom && i.clientX > n.left : i.clientY > r.bottom + o || i.clientX > n.right && i.clientY > n.top;
|
|
2400
2400
|
}
|
|
2401
|
-
function
|
|
2401
|
+
function Is(i, t, e, n, r, o, s, a) {
|
|
2402
2402
|
var l = n ? i.clientY : i.clientX, d = n ? e.height : e.width, u = n ? e.top : e.left, c = n ? e.bottom : e.right, p = !1;
|
|
2403
2403
|
if (!s) {
|
|
2404
2404
|
if (a && Ze < d * r) {
|
|
@@ -2407,19 +2407,19 @@ function Ms(i, t, e, n, r, o, s, a) {
|
|
|
2407
2407
|
else if (Se === 1 ? l < u + Ze : l > c - Ze)
|
|
2408
2408
|
return -Se;
|
|
2409
2409
|
} else if (l > u + d * (1 - r) / 2 && l < c - d * (1 - r) / 2)
|
|
2410
|
-
return
|
|
2410
|
+
return Ns(t);
|
|
2411
2411
|
}
|
|
2412
2412
|
return p = p || s, p && (l < u + d * o / 2 || l > c - d * o / 2) ? l > u + d / 2 ? 1 : -1 : 0;
|
|
2413
2413
|
}
|
|
2414
|
-
function
|
|
2414
|
+
function Ns(i) {
|
|
2415
2415
|
return bt(h) < bt(i) ? 1 : -1;
|
|
2416
2416
|
}
|
|
2417
|
-
function
|
|
2417
|
+
function Hs(i) {
|
|
2418
2418
|
for (var t = i.tagName + i.className + i.src + i.href + i.textContent, e = t.length, n = 0; e--; )
|
|
2419
2419
|
n += t.charCodeAt(e);
|
|
2420
2420
|
return n.toString(36);
|
|
2421
2421
|
}
|
|
2422
|
-
function
|
|
2422
|
+
function ks(i) {
|
|
2423
2423
|
ei.length = 0;
|
|
2424
2424
|
for (var t = i.getElementsByTagName("input"), e = t.length; e--; ) {
|
|
2425
2425
|
var n = t[e];
|
|
@@ -2433,7 +2433,7 @@ function Yi(i) {
|
|
|
2433
2433
|
return clearTimeout(i);
|
|
2434
2434
|
}
|
|
2435
2435
|
Ai && C(document, "touchmove", function(i) {
|
|
2436
|
-
(w.active ||
|
|
2436
|
+
(w.active || oe) && i.cancelable && i.preventDefault();
|
|
2437
2437
|
});
|
|
2438
2438
|
w.utils = {
|
|
2439
2439
|
on: C,
|
|
@@ -2443,7 +2443,7 @@ w.utils = {
|
|
|
2443
2443
|
is: function(t, e) {
|
|
2444
2444
|
return !!xt(t, e, t, !1);
|
|
2445
2445
|
},
|
|
2446
|
-
extend:
|
|
2446
|
+
extend: ws,
|
|
2447
2447
|
throttle: mr,
|
|
2448
2448
|
closest: xt,
|
|
2449
2449
|
toggleClass: mt,
|
|
@@ -2452,7 +2452,7 @@ w.utils = {
|
|
|
2452
2452
|
nextTick: qe,
|
|
2453
2453
|
cancelNextTick: Yi,
|
|
2454
2454
|
detectDirection: xr,
|
|
2455
|
-
getChild:
|
|
2455
|
+
getChild: ue,
|
|
2456
2456
|
expando: ft
|
|
2457
2457
|
};
|
|
2458
2458
|
w.get = function(i) {
|
|
@@ -2470,9 +2470,9 @@ w.mount = function() {
|
|
|
2470
2470
|
w.create = function(i, t) {
|
|
2471
2471
|
return new w(i, t);
|
|
2472
2472
|
};
|
|
2473
|
-
w.version =
|
|
2473
|
+
w.version = bs;
|
|
2474
2474
|
var Y = [], ye, Wi, Gi = !1, Ui, Fi, ii, be;
|
|
2475
|
-
function
|
|
2475
|
+
function Vs() {
|
|
2476
2476
|
function i() {
|
|
2477
2477
|
this.defaults = {
|
|
2478
2478
|
scroll: !0,
|
|
@@ -2494,7 +2494,7 @@ function ks() {
|
|
|
2494
2494
|
!this.options.dragOverBubble && !n.rootEl && this._handleAutoScroll(n);
|
|
2495
2495
|
},
|
|
2496
2496
|
drop: function() {
|
|
2497
|
-
this.sortable.nativeDraggable ? _(document, "dragover", this._handleAutoScroll) : (_(document, "pointermove", this._handleFallbackAutoScroll), _(document, "touchmove", this._handleFallbackAutoScroll), _(document, "mousemove", this._handleFallbackAutoScroll)), kn(), Xe(),
|
|
2497
|
+
this.sortable.nativeDraggable ? _(document, "dragover", this._handleAutoScroll) : (_(document, "pointermove", this._handleFallbackAutoScroll), _(document, "touchmove", this._handleFallbackAutoScroll), _(document, "mousemove", this._handleFallbackAutoScroll)), kn(), Xe(), xs();
|
|
2498
2498
|
},
|
|
2499
2499
|
nulling: function() {
|
|
2500
2500
|
ii = Wi = ye = Gi = be = Ui = Fi = null, Y.length = 0;
|
|
@@ -2538,9 +2538,9 @@ var ji = mr(function(i, t, e, n) {
|
|
|
2538
2538
|
Wi !== e && (Wi = e, Xe(), ye = t.scroll, u = t.scrollFn, ye === !0 && (ye = Vt(e, !0)));
|
|
2539
2539
|
var c = 0, p = ye;
|
|
2540
2540
|
do {
|
|
2541
|
-
var f = p, g = W(f), b = g.top, N = g.bottom, J = g.left,
|
|
2541
|
+
var f = p, g = W(f), b = g.top, N = g.bottom, J = g.left, F = g.right, st = g.width, K = g.height, E = void 0, m = void 0, A = f.scrollWidth, M = f.scrollHeight, O = v(f), q = f.scrollLeft, X = f.scrollTop;
|
|
2542
2542
|
f === l ? (E = st < A && (O.overflowX === "auto" || O.overflowX === "scroll" || O.overflowX === "visible"), m = K < M && (O.overflowY === "auto" || O.overflowY === "scroll" || O.overflowY === "visible")) : (E = st < A && (O.overflowX === "auto" || O.overflowX === "scroll"), m = K < M && (O.overflowY === "auto" || O.overflowY === "scroll"));
|
|
2543
|
-
var H = E && (Math.abs(
|
|
2543
|
+
var H = E && (Math.abs(F - r) <= s && q + st < A) - (Math.abs(J - r) <= s && !!q), R = m && (Math.abs(N - o) <= s && X + K < M) - (Math.abs(b - o) <= s && !!X);
|
|
2544
2544
|
if (!Y[c])
|
|
2545
2545
|
for (var Z = 0; Z <= c; Z++)
|
|
2546
2546
|
Y[Z] || (Y[Z] = {});
|
|
@@ -2577,7 +2577,7 @@ hn.prototype = {
|
|
|
2577
2577
|
onSpill: function(t) {
|
|
2578
2578
|
var e = t.dragEl, n = t.putSortable;
|
|
2579
2579
|
this.sortable.captureAnimationState(), n && n.captureAnimationState();
|
|
2580
|
-
var r =
|
|
2580
|
+
var r = ue(this.sortable.el, this.startIndex, this.options);
|
|
2581
2581
|
r ? this.sortable.el.insertBefore(e, r) : this.sortable.el.appendChild(e), this.sortable.animateAll(), n && n.animateAll();
|
|
2582
2582
|
},
|
|
2583
2583
|
drop: Ar
|
|
@@ -2597,15 +2597,15 @@ pn.prototype = {
|
|
|
2597
2597
|
Lt(pn, {
|
|
2598
2598
|
pluginName: "removeOnSpill"
|
|
2599
2599
|
});
|
|
2600
|
-
w.mount(new
|
|
2600
|
+
w.mount(new Vs());
|
|
2601
2601
|
w.mount(pn, hn);
|
|
2602
|
-
const
|
|
2602
|
+
const Bs = (i) => {
|
|
2603
2603
|
const t = i.item;
|
|
2604
2604
|
let e = Array.prototype.slice.call(t.parentNode.childNodes);
|
|
2605
2605
|
return e = e.filter(
|
|
2606
2606
|
(n) => n.nodeType != Node.ELEMENT_NODE || !n.classList.contains("sortable-fallback")
|
|
2607
2607
|
), e;
|
|
2608
|
-
},
|
|
2608
|
+
}, Us = (i, t, e, n, r, o) => {
|
|
2609
2609
|
const a = i.item.parentNode;
|
|
2610
2610
|
for (const b of e)
|
|
2611
2611
|
a.appendChild(b);
|
|
@@ -2629,7 +2629,7 @@ const Vs = (i) => {
|
|
|
2629
2629
|
}
|
|
2630
2630
|
t.requestUpdate();
|
|
2631
2631
|
};
|
|
2632
|
-
function
|
|
2632
|
+
function Fs(i, t, e, n) {
|
|
2633
2633
|
let r = [], o = null;
|
|
2634
2634
|
i._sortable = w.create(i, {
|
|
2635
2635
|
handle: ".drag-handle",
|
|
@@ -2637,14 +2637,14 @@ function Us(i, t, e, n) {
|
|
|
2637
2637
|
swapThreshold: 0.5,
|
|
2638
2638
|
animation: 150,
|
|
2639
2639
|
easing: "cubic-bezier(1, 0, 0, 1)",
|
|
2640
|
-
onStart: (s) => r =
|
|
2640
|
+
onStart: (s) => r = Bs(s),
|
|
2641
2641
|
onMove: (s) => {
|
|
2642
2642
|
o = s.related;
|
|
2643
2643
|
},
|
|
2644
|
-
onEnd: (s) =>
|
|
2644
|
+
onEnd: (s) => Us(s, n, r, t, e, o)
|
|
2645
2645
|
});
|
|
2646
2646
|
}
|
|
2647
|
-
function
|
|
2647
|
+
function js(i, t, e, n) {
|
|
2648
2648
|
const r = i.getArray();
|
|
2649
2649
|
let o = !1;
|
|
2650
2650
|
r.forEach((s) => {
|
|
@@ -2674,7 +2674,7 @@ function fn(i, t, e) {
|
|
|
2674
2674
|
};
|
|
2675
2675
|
return r(i, t, e), n;
|
|
2676
2676
|
}
|
|
2677
|
-
function
|
|
2677
|
+
function zs(i, t, e) {
|
|
2678
2678
|
if (!i || !t) return !1;
|
|
2679
2679
|
if (!_r(i, e)) return !0;
|
|
2680
2680
|
const n = i.get("minZoom"), r = i.get("maxZoom"), o = t.getView().getZoom();
|
|
@@ -2684,20 +2684,20 @@ function _r(i, t) {
|
|
|
2684
2684
|
const e = i.get("minZoom"), n = i.get("maxZoom");
|
|
2685
2685
|
return !!(t && (e !== -1 / 0 || n !== 1 / 0));
|
|
2686
2686
|
}
|
|
2687
|
-
function
|
|
2687
|
+
function Zs(i, t) {
|
|
2688
2688
|
var r, o, s;
|
|
2689
2689
|
return !i || !t ? void 0 : i.getLayers ? "group" : ((s = (r = t.getInteractions().getArray().filter((a) => a.freehand_ !== void 0).map((a) => a.source_)) == null ? void 0 : r.ol_uid) == null ? void 0 : s.includes(
|
|
2690
2690
|
// @ts-expect-error TODO
|
|
2691
2691
|
i.getSource ? (o = i.getSource()) == null ? void 0 : o.ol_uid : void 0
|
|
2692
2692
|
)) ? "draw" : i.declutter_ !== void 0 ? "vector" : "raster";
|
|
2693
2693
|
}
|
|
2694
|
-
const
|
|
2694
|
+
const qs = (i, t, e) => {
|
|
2695
2695
|
let n = t;
|
|
2696
2696
|
return e.layer.getSource().getTileUrlFunction() && (n || (n = e.layer.getSource().getTileUrlFunction()), e.layer.getSource().setTileUrlFunction(
|
|
2697
|
-
(...r) =>
|
|
2697
|
+
(...r) => fs(n(...r), i)
|
|
2698
2698
|
), e.layer.getSource().setKey(/* @__PURE__ */ new Date())), n;
|
|
2699
2699
|
};
|
|
2700
|
-
function
|
|
2700
|
+
function Xs(i, t, e) {
|
|
2701
2701
|
const n = "updateStyleVariables" in t, r = "setStyle" in t, o = n ? (
|
|
2702
2702
|
/** @type {import('ol/layer/WebGLTile').default} */
|
|
2703
2703
|
t.style_
|
|
@@ -2711,7 +2711,7 @@ function qs(i, t, e) {
|
|
|
2711
2711
|
}, n)
|
|
2712
2712
|
t.updateStyleVariables(a);
|
|
2713
2713
|
else if (r) {
|
|
2714
|
-
const l =
|
|
2714
|
+
const l = Ys(o);
|
|
2715
2715
|
t.setStyle(
|
|
2716
2716
|
l
|
|
2717
2717
|
);
|
|
@@ -2732,7 +2732,7 @@ const gn = (i) => {
|
|
|
2732
2732
|
t[e] = i == null ? void 0 : i[e];
|
|
2733
2733
|
return t;
|
|
2734
2734
|
};
|
|
2735
|
-
function
|
|
2735
|
+
function Ys(i) {
|
|
2736
2736
|
let t = i;
|
|
2737
2737
|
if ("variables" in i) {
|
|
2738
2738
|
let e = JSON.stringify(i);
|
|
@@ -2746,7 +2746,7 @@ function Xs(i) {
|
|
|
2746
2746
|
}
|
|
2747
2747
|
return t;
|
|
2748
2748
|
}
|
|
2749
|
-
const
|
|
2749
|
+
const Ws = (i, t) => {
|
|
2750
2750
|
if (!i) return;
|
|
2751
2751
|
let e;
|
|
2752
2752
|
const n = gn(t);
|
|
@@ -2779,7 +2779,7 @@ function Cr(i, t) {
|
|
|
2779
2779
|
}
|
|
2780
2780
|
return e;
|
|
2781
2781
|
}
|
|
2782
|
-
function
|
|
2782
|
+
function Gs(i, t) {
|
|
2783
2783
|
var o, s, a, l, d;
|
|
2784
2784
|
if (!t) return null;
|
|
2785
2785
|
let e = {}, n = "updateStyleVariables" in i ? (
|
|
@@ -2798,14 +2798,14 @@ function Ws(i, t) {
|
|
|
2798
2798
|
);
|
|
2799
2799
|
return Object.keys(r).length ? r : null;
|
|
2800
2800
|
}
|
|
2801
|
-
const
|
|
2801
|
+
const Js = (i, t) => i == null ? void 0 : i.filter(
|
|
2802
2802
|
(e) => ["remove", "sort"].filter((n) => t != null && t.get("layerControlDisable") ? n !== "sort" : !0).includes(e)
|
|
2803
|
-
),
|
|
2803
|
+
), Ks = (i, t) => i == null ? void 0 : i.filter((e) => {
|
|
2804
2804
|
let n = !0;
|
|
2805
2805
|
return ["remove", "sort"].includes(e) && (n = !1), e === "info" && (n = t.get("description")), e === "config" && (n = t.get("layerConfig")), e === "datetime" && (n = t.get("layerDatetime")), e === "legend" && (n = t.get("layerLegend")), n;
|
|
2806
|
-
}),
|
|
2806
|
+
}), Qs = (i, t) => x`
|
|
2807
2807
|
<button slot="${i}-icon" class="icon">${t ? i : L}</button>
|
|
2808
|
-
`,
|
|
2808
|
+
`, ta = (i) => x`
|
|
2809
2809
|
<button
|
|
2810
2810
|
class="remove-icon icon"
|
|
2811
2811
|
@click=${() => {
|
|
@@ -2820,7 +2820,7 @@ const Gs = (i, t) => i == null ? void 0 : i.filter(
|
|
|
2820
2820
|
>
|
|
2821
2821
|
${i.unstyled ? "x" : L}
|
|
2822
2822
|
</button>
|
|
2823
|
-
`,
|
|
2823
|
+
`, ea = (i) => x`
|
|
2824
2824
|
<span class="button sort-icon icon drag-handle">
|
|
2825
2825
|
${i ? "═" : L}
|
|
2826
2826
|
</span>
|
|
@@ -2837,7 +2837,7 @@ const Gs = (i, t) => i == null ? void 0 : i.filter(
|
|
|
2837
2837
|
const Dr = sn(class extends an {
|
|
2838
2838
|
constructor(i) {
|
|
2839
2839
|
if (super(i), i.type !== It.PROPERTY && i.type !== It.ATTRIBUTE && i.type !== It.BOOLEAN_ATTRIBUTE) throw Error("The `live` directive is not allowed on child or event bindings");
|
|
2840
|
-
if (!
|
|
2840
|
+
if (!mo(i)) throw Error("`live` bindings can only contain a single expression");
|
|
2841
2841
|
}
|
|
2842
2842
|
render(i) {
|
|
2843
2843
|
return i;
|
|
@@ -2873,7 +2873,7 @@ class Ji extends an {
|
|
|
2873
2873
|
}
|
|
2874
2874
|
}
|
|
2875
2875
|
Ji.directiveName = "unsafeHTML", Ji.resultType = 1;
|
|
2876
|
-
const
|
|
2876
|
+
const ia = sn(Ji);
|
|
2877
2877
|
/**
|
|
2878
2878
|
* @license
|
|
2879
2879
|
* Copyright 2021 Google LLC
|
|
@@ -2890,7 +2890,7 @@ function Pr(i) {
|
|
|
2890
2890
|
return i && i.__esModule && Object.prototype.hasOwnProperty.call(i, "default") ? i.default : i;
|
|
2891
2891
|
}
|
|
2892
2892
|
var zi, Vn;
|
|
2893
|
-
function
|
|
2893
|
+
function na() {
|
|
2894
2894
|
if (Vn) return zi;
|
|
2895
2895
|
Vn = 1;
|
|
2896
2896
|
var i = "Expected a function", t = NaN, e = "[object Symbol]", n = /^\s+|\s+$/g, r = /^[-+]0x[0-9a-f]+$/i, o = /^0b[01]+$/i, s = /^0o[0-7]+$/i, a = parseInt, l = typeof Bt == "object" && Bt && Bt.Object === Object && Bt, d = typeof self == "object" && self && self.Object === Object && self, u = l || d || Function("return this")(), c = Object.prototype, p = c.toString, f = Math.max, g = Math.min, b = function() {
|
|
@@ -2900,15 +2900,15 @@ function ia() {
|
|
|
2900
2900
|
var O, q, X, H, R, Z, dt = 0, tt = !1, ct = !1, gt = !0;
|
|
2901
2901
|
if (typeof m != "function")
|
|
2902
2902
|
throw new TypeError(i);
|
|
2903
|
-
A = E(A) || 0,
|
|
2904
|
-
function
|
|
2903
|
+
A = E(A) || 0, F(M) && (tt = !!M.leading, ct = "maxWait" in M, X = ct ? f(E(M.maxWait) || 0, A) : X, gt = "trailing" in M ? !!M.trailing : gt);
|
|
2904
|
+
function jt(I) {
|
|
2905
2905
|
var ut = O, Rt = q;
|
|
2906
2906
|
return O = q = void 0, dt = I, H = m.apply(Rt, ut), H;
|
|
2907
2907
|
}
|
|
2908
2908
|
function Ne(I) {
|
|
2909
|
-
return dt = I, R = setTimeout(
|
|
2909
|
+
return dt = I, R = setTimeout(Zt, A), tt ? jt(I) : H;
|
|
2910
2910
|
}
|
|
2911
|
-
function
|
|
2911
|
+
function zt(I) {
|
|
2912
2912
|
var ut = I - Z, Rt = I - dt, mn = A - ut;
|
|
2913
2913
|
return ct ? g(mn, X - Rt) : mn;
|
|
2914
2914
|
}
|
|
@@ -2916,14 +2916,14 @@ function ia() {
|
|
|
2916
2916
|
var ut = I - Z, Rt = I - dt;
|
|
2917
2917
|
return Z === void 0 || ut >= A || ut < 0 || ct && Rt >= X;
|
|
2918
2918
|
}
|
|
2919
|
-
function
|
|
2919
|
+
function Zt() {
|
|
2920
2920
|
var I = b();
|
|
2921
2921
|
if (At(I))
|
|
2922
2922
|
return He(I);
|
|
2923
|
-
R = setTimeout(
|
|
2923
|
+
R = setTimeout(Zt, zt(I));
|
|
2924
2924
|
}
|
|
2925
2925
|
function He(I) {
|
|
2926
|
-
return R = void 0, gt && O ?
|
|
2926
|
+
return R = void 0, gt && O ? jt(I) : (O = q = void 0, H);
|
|
2927
2927
|
}
|
|
2928
2928
|
function _i() {
|
|
2929
2929
|
R !== void 0 && clearTimeout(R), dt = 0, O = Z = q = R = void 0;
|
|
@@ -2937,9 +2937,9 @@ function ia() {
|
|
|
2937
2937
|
if (R === void 0)
|
|
2938
2938
|
return Ne(Z);
|
|
2939
2939
|
if (ct)
|
|
2940
|
-
return R = setTimeout(
|
|
2940
|
+
return R = setTimeout(Zt, A), jt(Z);
|
|
2941
2941
|
}
|
|
2942
|
-
return R === void 0 && (R = setTimeout(
|
|
2942
|
+
return R === void 0 && (R = setTimeout(Zt, A)), H;
|
|
2943
2943
|
}
|
|
2944
2944
|
return V.cancel = _i, V.flush = pe, V;
|
|
2945
2945
|
}
|
|
@@ -2947,13 +2947,13 @@ function ia() {
|
|
|
2947
2947
|
var O = !0, q = !0;
|
|
2948
2948
|
if (typeof m != "function")
|
|
2949
2949
|
throw new TypeError(i);
|
|
2950
|
-
return
|
|
2950
|
+
return F(M) && (O = "leading" in M ? !!M.leading : O, q = "trailing" in M ? !!M.trailing : q), N(m, A, {
|
|
2951
2951
|
leading: O,
|
|
2952
2952
|
maxWait: A,
|
|
2953
2953
|
trailing: q
|
|
2954
2954
|
});
|
|
2955
2955
|
}
|
|
2956
|
-
function
|
|
2956
|
+
function F(m) {
|
|
2957
2957
|
var A = typeof m;
|
|
2958
2958
|
return !!m && (A == "object" || A == "function");
|
|
2959
2959
|
}
|
|
@@ -2968,9 +2968,9 @@ function ia() {
|
|
|
2968
2968
|
return m;
|
|
2969
2969
|
if (K(m))
|
|
2970
2970
|
return t;
|
|
2971
|
-
if (
|
|
2971
|
+
if (F(m)) {
|
|
2972
2972
|
var A = typeof m.valueOf == "function" ? m.valueOf() : m;
|
|
2973
|
-
m =
|
|
2973
|
+
m = F(A) ? A + "" : A;
|
|
2974
2974
|
}
|
|
2975
2975
|
if (typeof m != "string")
|
|
2976
2976
|
return m === 0 ? m : +m;
|
|
@@ -2980,8 +2980,8 @@ function ia() {
|
|
|
2980
2980
|
}
|
|
2981
2981
|
return zi = J, zi;
|
|
2982
2982
|
}
|
|
2983
|
-
var
|
|
2984
|
-
const Bn = /* @__PURE__ */ Pr(
|
|
2983
|
+
var ra = na();
|
|
2984
|
+
const Bn = /* @__PURE__ */ Pr(ra);
|
|
2985
2985
|
/**
|
|
2986
2986
|
* @license
|
|
2987
2987
|
* Copyright 2018 Google LLC
|
|
@@ -3082,7 +3082,7 @@ class Lr extends lt {
|
|
|
3082
3082
|
}
|
|
3083
3083
|
}
|
|
3084
3084
|
ni = new WeakMap(), ri = new WeakMap(), // Define static properties for the component
|
|
3085
|
-
|
|
3085
|
+
j(Lr, "properties", {
|
|
3086
3086
|
unstyled: { type: Boolean },
|
|
3087
3087
|
noShadow: { type: Boolean },
|
|
3088
3088
|
layerLegend: { attribute: !1 },
|
|
@@ -3092,7 +3092,7 @@ customElements.define(
|
|
|
3092
3092
|
"eox-layercontrol-layer-legend",
|
|
3093
3093
|
Lr
|
|
3094
3094
|
);
|
|
3095
|
-
var _t,
|
|
3095
|
+
var _t, ce, Pe, Le, Ki, oi, si;
|
|
3096
3096
|
class Or extends lt {
|
|
3097
3097
|
constructor() {
|
|
3098
3098
|
super();
|
|
@@ -3108,7 +3108,7 @@ class Or extends lt {
|
|
|
3108
3108
|
*
|
|
3109
3109
|
* @type {{[key: string]: any}}
|
|
3110
3110
|
*/
|
|
3111
|
-
P(this,
|
|
3111
|
+
P(this, ce, null);
|
|
3112
3112
|
/**
|
|
3113
3113
|
* Original tile url function, if it exist
|
|
3114
3114
|
*
|
|
@@ -3125,7 +3125,7 @@ class Or extends lt {
|
|
|
3125
3125
|
}
|
|
3126
3126
|
`);
|
|
3127
3127
|
P(this, si, "");
|
|
3128
|
-
this.layer = null, this.unstyled = !1, this.noShadow = !1, this.layerConfig = null, this.throttleDataChange = Bn(
|
|
3128
|
+
this.layer = null, this.unstyled = !1, this.noShadow = !1, this.layerConfig = null, this.throttleDataChange = Bn(B(this, Le, Ki), 1e3);
|
|
3129
3129
|
}
|
|
3130
3130
|
/** Decide what type of throttling to do based on layerConfig type
|
|
3131
3131
|
*
|
|
@@ -3134,7 +3134,7 @@ class Or extends lt {
|
|
|
3134
3134
|
updated(e) {
|
|
3135
3135
|
if (e.has("layerConfig")) {
|
|
3136
3136
|
const n = this.layerConfig.type === "style" || this.layerConfig.style ? 100 : 1e3;
|
|
3137
|
-
this.throttleDataChange = Bn(
|
|
3137
|
+
this.throttleDataChange = Bn(B(this, Le, Ki), n), this.requestUpdate();
|
|
3138
3138
|
}
|
|
3139
3139
|
}
|
|
3140
3140
|
/**
|
|
@@ -3147,7 +3147,7 @@ class Or extends lt {
|
|
|
3147
3147
|
* Renders a JSON form for configuration options of a layer.
|
|
3148
3148
|
*/
|
|
3149
3149
|
render() {
|
|
3150
|
-
|
|
3150
|
+
ee(this, ce, Gs(this.layer, this.layerConfig)), Object.keys(T(this, _t)).length !== 0 && ee(this, ce, T(this, _t)), customElements.get("eox-jsonform") || console.error("Please import @eox/jsonform in order to use layerconfig");
|
|
3151
3151
|
const e = {
|
|
3152
3152
|
disable_edit_json: !0,
|
|
3153
3153
|
disable_collapse: !0,
|
|
@@ -3168,7 +3168,7 @@ class Or extends lt {
|
|
|
3168
3168
|
.noShadow=${!0}
|
|
3169
3169
|
.unstyled=${this.unstyled}
|
|
3170
3170
|
.layer=${this.layer}
|
|
3171
|
-
.layerLegend=${
|
|
3171
|
+
.layerLegend=${Ws(
|
|
3172
3172
|
this.layerConfig.legend,
|
|
3173
3173
|
T(this, _t)
|
|
3174
3174
|
)}
|
|
@@ -3178,7 +3178,7 @@ class Or extends lt {
|
|
|
3178
3178
|
<!-- Render a JSON form for layer configuration -->
|
|
3179
3179
|
<eox-jsonform
|
|
3180
3180
|
.schema=${this.layerConfig.schema}
|
|
3181
|
-
.value=${T(this,
|
|
3181
|
+
.value=${T(this, ce)}
|
|
3182
3182
|
.options=${e}
|
|
3183
3183
|
@change=${this.throttleDataChange}
|
|
3184
3184
|
></eox-jsonform>
|
|
@@ -3187,21 +3187,29 @@ class Or extends lt {
|
|
|
3187
3187
|
`;
|
|
3188
3188
|
}
|
|
3189
3189
|
}
|
|
3190
|
-
_t = new WeakMap(),
|
|
3190
|
+
_t = new WeakMap(), ce = new WeakMap(), Pe = new WeakMap(), Le = new WeakSet(), /**
|
|
3191
3191
|
* Handles changes in eox-jsonform values.
|
|
3192
3192
|
*
|
|
3193
3193
|
* @param {{ detail: { value: string; }; }} e
|
|
3194
3194
|
*/
|
|
3195
3195
|
Ki = function(e) {
|
|
3196
|
-
|
|
3196
|
+
ee(this, _t, e.detail), this.layerConfig.type === "style" || this.layerConfig.style ? "setStyle" in this.layer || "updateStyleVariables" in this.layer ? Xs(T(this, _t), this.layer, this.layerConfig) : console.error(
|
|
3197
3197
|
`Layer type ${this.layer.get("type") ?? ""} does not support styles configuration`
|
|
3198
|
-
) :
|
|
3198
|
+
) : ee(this, Pe, qs(
|
|
3199
3199
|
T(this, _t),
|
|
3200
3200
|
T(this, Pe),
|
|
3201
3201
|
this
|
|
3202
|
-
)), this.
|
|
3202
|
+
)), this.dispatchEvent(
|
|
3203
|
+
new CustomEvent("layerConfig:change", {
|
|
3204
|
+
bubbles: !0,
|
|
3205
|
+
detail: {
|
|
3206
|
+
jsonformValue: e.detail,
|
|
3207
|
+
layer: this.layer
|
|
3208
|
+
}
|
|
3209
|
+
})
|
|
3210
|
+
), this.requestUpdate();
|
|
3203
3211
|
}, oi = new WeakMap(), si = new WeakMap(), // Define static properties for the component
|
|
3204
|
-
|
|
3212
|
+
j(Or, "properties", {
|
|
3205
3213
|
layer: { attribute: !1 },
|
|
3206
3214
|
unstyled: { type: Boolean },
|
|
3207
3215
|
noShadow: { type: Boolean },
|
|
@@ -3252,7 +3260,7 @@ class Rr extends lt {
|
|
|
3252
3260
|
.controlProperty=${void 0}
|
|
3253
3261
|
current-step=${this.layerDatetime.currentStep}
|
|
3254
3262
|
.displayFormat=${this.layerDatetime.displayFormat}
|
|
3255
|
-
@stepchange=${
|
|
3263
|
+
@stepchange=${B(this, ai, Mr)}
|
|
3256
3264
|
></eox-timecontrol>
|
|
3257
3265
|
`
|
|
3258
3266
|
)}
|
|
@@ -3276,7 +3284,7 @@ Mr = function(e) {
|
|
|
3276
3284
|
})
|
|
3277
3285
|
), this.layerDatetime.currentStep = e.detail.currentStep, this.requestUpdate();
|
|
3278
3286
|
}, li = new WeakMap(), di = new WeakMap(), // Define static properties for the component
|
|
3279
|
-
|
|
3287
|
+
j(Rr, "properties", {
|
|
3280
3288
|
unstyled: { type: Boolean },
|
|
3281
3289
|
noShadow: { type: Boolean },
|
|
3282
3290
|
layerDatetime: { attribute: !1 },
|
|
@@ -3441,7 +3449,7 @@ class Ir extends lt {
|
|
|
3441
3449
|
}
|
|
3442
3450
|
}
|
|
3443
3451
|
Oe = new WeakMap(), ci = new WeakMap(), ui = new WeakMap(), // Define static properties for the component
|
|
3444
|
-
|
|
3452
|
+
j(Ir, "properties", {
|
|
3445
3453
|
actions: { attribute: !1 },
|
|
3446
3454
|
selectedTab: { state: !0 },
|
|
3447
3455
|
tabs: { attribute: !1 },
|
|
@@ -3450,15 +3458,15 @@ F(Ir, "properties", {
|
|
|
3450
3458
|
toolsAsList: { type: Boolean }
|
|
3451
3459
|
});
|
|
3452
3460
|
customElements.define("eox-layercontrol-tools-items", Ir);
|
|
3453
|
-
const
|
|
3461
|
+
const oa = "button,.button { /* TODO: why does this only work here and not from :root? */ --primary-color: #004170; --primary-color-hover: #004170cc; --error-color: #ff5252; display: inline-flex; position: relative; align-items: center; color: #fff; border-width: 0; outline: none; border-radius: 4px; padding: 16px; height: 36px; cursor: pointer; font-family: inherit; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 1.25px; font-weight: 500; box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12); transition-property: box-shadow, transform, opacity, background; transition-duration: 0.28s; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);}button:hover:not([disabled]):not(.icon),.button:hover:not([disabled]):not(.icon) { box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12); background: var(--primary-color-hover);}button,button:active,.button,.button:active { background: var(--primary-color);}button[disabled],.button[disabled] { opacity: 0.5; cursor: not-allowed;}button.block,.button.block { display: block;}button.outline,.button.outline { background: transparent; box-shadow: none; color: var(--primary-color); outline: 1px solid var(--primary-color);}button.outline:hover,.button.outline:hover { background: transparent;}button.icon,.button.icon { background: transparent; border: none; box-shadow: none; padding: 0; border-radius: 50%; width: 24px; height: 24px; text-indent: -9999px;}button.icon-text,.button.icon-text { text-indent: 26px;}button.icon-text.block,.button.icon-text.block { text-indent: 20px;}button.icon:before,button.icon-text:before,.button.icon:before,.button.icon-text:before { position: absolute; text-indent: 0; line-height: initial;}button.icon-text.block:before,.button.icon-text.block:before { text-indent: -54px;}button.icon:before,.button.icon:before { width: 24px; height: 24px; margin-right: 0;}button.icon-text:before,.button.icon-text:before { width: 18px; height: 18px;}button.small,.button.small { height: 28px; padding: 12.4px; font-size: 0.75rem;}button.smallest.icon,button.smallest.icon::before { height: 16px; width: 16px; padding: 0px;}", sa = `input[type="radio"] { appearance: none; -webkit-appearance: none; margin: 0; cursor: pointer; display: flex; flex-direction: row; align-items: center; width: 24px; height: 24px;}label span { font-size: small;}input[type="radio"]:after { display: block; content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Eradiobox-blank%3C/title%3E%3Cpath d='M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z' /%3E%3C/svg%3E"); width: 20px; height: 20px; margin-right: 4px;}input[type="radio"]:checked:after { content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Eradiobox-marked%3C/title%3E%3Cpath d='M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,7A5,5 0 0,0 7,12A5,5 0 0,0 12,17A5,5 0 0,0 17,12A5,5 0 0,0 12,7Z' /%3E%3C/svg%3E");}`, Nr = `input[type="checkbox"] { appearance: none; -webkit-appearance: none; margin: 0; cursor: pointer; display: flex; flex-direction: row; align-items: center; width: 24px; height: 24px;}input[type="checkbox"]:after { display: block; content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Echeckbox-blank-outline%3C/title%3E%3Cpath d='M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3M19,5V19H5V5H19Z' /%3E%3C/svg%3E"); width: 20px; height: 20px; margin-right: 4px;}input[type="checkbox"]:checked:after { content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Echeckbox-marked%3C/title%3E%3Cpath d='M10,17L5,12L6.41,10.58L10,14.17L17.59,6.58L19,8M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z' /%3E%3C/svg%3E");}`, aa = ':root,:host { --range-slider-height: 6px; --range-slider-thumb-size: 15px; --range-slider-thumb-border-radius: 50%; --range-slider-color: #004170; --range-slider-track-color: #d7dcdf; --range-slider-track-border-radius: 0;}input[type="range"] { -webkit-appearance: none; border: none; color: var(--range-slider-color); overflow: hidden; padding-left: 0; margin-left: 7px;}/*webkit*/input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: var(--range-slider-thumb-size); height: var(--range-slider-thumb-size); border-radius: var(--range-slider-thumb-border-radius); background: var(--range-slider-color); border: none; box-shadow: none; margin-top: calc( var(--range-slider-height) * 0.5 - var(--range-slider-thumb-size) * 0.5 );}input[type="range"]::-webkit-slider-runnable-track { height: var(--range-slider-height); border: none; border-radius: var(--range-slider-track-border-radius); background: var(--range-slider-track-color); box-shadow: none;}input[type="range"]::-webkit-slider-thumb { cursor: grab; --clip-edges: 4px; --clip-top: calc( (var(--range-slider-thumb-size) - var(--range-slider-height)) * 0.5 ); --clip-bottom: calc(var(--range-slider-thumb-size) - var(--clip-top)); --clip-further: calc(100% + 1px); --box-fill: calc( -100vmax - var(--range-slider-thumb-size, var(--range-slider-thumb-size)) + 1px ) 0 0 100vmax currentColor; background: linear-gradient(currentColor 0 0) scroll no-repeat left center / 50% calc(var(--range-slider-height) + 1px); background-color: currentColor; box-shadow: var(--box-fill); border-radius: var(--range-slider-thumb-size, var(--range-slider-thumb-size)); filter: brightness(100%); clip-path: polygon( 100% -1px, var(--clip-edges) -1px, 0 var(--clip-top), -100vmax var(--clip-top), -100vmax var(--clip-bottom), 0 var(--clip-bottom), var(--clip-edges) 100%, var(--clip-further) var(--clip-further) );}/*mozilla*/input[type="range"]::-moz-range-thumb { width: var(--range-slider-thumb-size); height: var(--range-slider-thumb-size); border-radius: var(--range-slider-thumb-border-radius); background: var(--range-slider-color); border: none; box-shadow: none; cursor: grab;}input[type="range"]::-moz-range-track { border: none; border-radius: var(--range-slider-track-border-radius); background: var(--range-slider-track-color); box-shadow: none;}input[type="range"]::-moz-range-progress { appearance: none; background: currentColor; transition-delay: 30ms;}input[type="range"]::-moz-range-track,input[type="range"]::-moz-range-progress { height: calc(var(--range-slider-height)); border-radius: var(--range-slider-track-border-radius);}/*toolcool slider*/tc-range-slider { --height: var(--range-slider-height); --panel-bg: var(--range-slider-track-color); --panel-bg-hover: var(--range-slider-track-color); --panel-bg-fill: var(--range-slider-color); --panel-bg-border-radius: var(--range-slider-track-border-radius); --pointer-bg: var(--range-slider-color); --pointer-bg-hover: var(--range-slider-color); --pointer-bg-focus: var(--range-slider-color); --pointer-width: var(--range-slider-thumb-size); --pointer-height: var(--range-slider-thumb-size); --pointer-shadow: none; --pointer-shadow-hover: none; --pointer-shadow-focus: none; --pointer-border: none; --pointer-border-hover: 0; --pointer-border-focus: 0; --pointer-border-radius: var(--range-slider-thumb-border-radius);}';
|
|
3454
3462
|
var hi, pi;
|
|
3455
3463
|
class Hr extends lt {
|
|
3456
3464
|
constructor() {
|
|
3457
3465
|
super();
|
|
3458
3466
|
// Initializes '_removeButton' invoking 'removeButton' function with 'this' context.
|
|
3459
|
-
|
|
3467
|
+
j(this, "_removeButton", () => ta(this));
|
|
3460
3468
|
// Initializes '_sortButton' invoking 'sortButton' function with 'unstyled' property as a parameter.
|
|
3461
|
-
|
|
3469
|
+
j(this, "_sortButton", () => ea(this.unstyled));
|
|
3462
3470
|
/**
|
|
3463
3471
|
* Initializes '_button' as a function accepting 'tool' parameter to generate a Button.
|
|
3464
3472
|
* Uses 'this.unstyled' as a context parameter for Button generation.
|
|
@@ -3466,12 +3474,12 @@ class Hr extends lt {
|
|
|
3466
3474
|
* @param {string} tool - Tool parameter for Button generation.
|
|
3467
3475
|
* @returns {import("lit").HTMLTemplateResult} - The generated Button element.
|
|
3468
3476
|
*/
|
|
3469
|
-
|
|
3470
|
-
|
|
3477
|
+
j(this, "_button", (e) => Qs(e, this.unstyled));
|
|
3478
|
+
j(this, "_getDefaultTools", () => {
|
|
3471
3479
|
var e;
|
|
3472
3480
|
return x`
|
|
3473
3481
|
<div slot="info-content">
|
|
3474
|
-
${
|
|
3482
|
+
${ia(this.layer.get("description"))}
|
|
3475
3483
|
</div>
|
|
3476
3484
|
<div slot="opacity-content">
|
|
3477
3485
|
<!-- Input for opacity -->
|
|
@@ -3538,10 +3546,10 @@ class Hr extends lt {
|
|
|
3538
3546
|
});
|
|
3539
3547
|
P(this, hi, "");
|
|
3540
3548
|
P(this, pi, `
|
|
3541
|
-
${
|
|
3542
|
-
${oa}
|
|
3543
|
-
${Nr}
|
|
3549
|
+
${oa}
|
|
3544
3550
|
${sa}
|
|
3551
|
+
${Nr}
|
|
3552
|
+
${aa}
|
|
3545
3553
|
.drag-handle {
|
|
3546
3554
|
cursor: n-resize;
|
|
3547
3555
|
}
|
|
@@ -3669,7 +3677,7 @@ class Hr extends lt {
|
|
|
3669
3677
|
}
|
|
3670
3678
|
render() {
|
|
3671
3679
|
var l;
|
|
3672
|
-
const e =
|
|
3680
|
+
const e = Js(this.tools, this.layer), n = Ks(this.tools, this.layer), r = this[`_${e == null ? void 0 : e[0]}Button`] ? (
|
|
3673
3681
|
// @ts-expect-error TODO
|
|
3674
3682
|
this[`_${e == null ? void 0 : e[0]}Button`]()
|
|
3675
3683
|
) : L, o = ((l = this.tools) == null ? void 0 : l.length) === 1 ? `${this.tools[0]}-icon` : "", s = e == null ? void 0 : e.length, a = n == null ? void 0 : n.length;
|
|
@@ -3718,7 +3726,7 @@ class Hr extends lt {
|
|
|
3718
3726
|
}
|
|
3719
3727
|
}
|
|
3720
3728
|
hi = new WeakMap(), pi = new WeakMap(), // Define static properties for the component
|
|
3721
|
-
|
|
3729
|
+
j(Hr, "properties", {
|
|
3722
3730
|
layer: { attribute: !1 },
|
|
3723
3731
|
tools: { attribute: !1 },
|
|
3724
3732
|
unstyled: { type: Boolean },
|
|
@@ -3729,9 +3737,9 @@ customElements.define(
|
|
|
3729
3737
|
"eox-layercontrol-layer-tools",
|
|
3730
3738
|
Hr
|
|
3731
3739
|
);
|
|
3732
|
-
const
|
|
3740
|
+
const la = (i) => {
|
|
3733
3741
|
const t = () => {
|
|
3734
|
-
const e =
|
|
3742
|
+
const e = zs(
|
|
3735
3743
|
i.layer,
|
|
3736
3744
|
i.map,
|
|
3737
3745
|
i.showLayerZoomState
|
|
@@ -3745,7 +3753,7 @@ const aa = (i) => {
|
|
|
3745
3753
|
i.layer,
|
|
3746
3754
|
i.showLayerZoomState
|
|
3747
3755
|
) && (t(), i.map.getView().on("change:resolution", () => t()));
|
|
3748
|
-
},
|
|
3756
|
+
}, da = (i, t) => {
|
|
3749
3757
|
const e = t.layer;
|
|
3750
3758
|
e.setVisible(i.target.checked), i.target.checked && e.get("layerControlExclusive") && t.closest(
|
|
3751
3759
|
".layers > ul"
|
|
@@ -3756,7 +3764,7 @@ const aa = (i) => {
|
|
|
3756
3764
|
new CustomEvent("changed", { bubbles: !0, detail: e })
|
|
3757
3765
|
), t.requestUpdate();
|
|
3758
3766
|
};
|
|
3759
|
-
var $t,
|
|
3767
|
+
var $t, se, Vr, fi, gi;
|
|
3760
3768
|
class kr extends lt {
|
|
3761
3769
|
constructor() {
|
|
3762
3770
|
super();
|
|
@@ -3766,7 +3774,7 @@ class kr extends lt {
|
|
|
3766
3774
|
*
|
|
3767
3775
|
* @type {Boolean}
|
|
3768
3776
|
*/
|
|
3769
|
-
|
|
3777
|
+
j(this, "currLayerVisibilityBasedOnZoom", !0);
|
|
3770
3778
|
P(this, fi, "");
|
|
3771
3779
|
P(this, gi, `
|
|
3772
3780
|
${Nr}
|
|
@@ -3841,7 +3849,7 @@ class kr extends lt {
|
|
|
3841
3849
|
* and register "change:resolution" ones at the beginning if `showLayerZoomState` is present
|
|
3842
3850
|
*/
|
|
3843
3851
|
firstUpdated() {
|
|
3844
|
-
|
|
3852
|
+
la(this);
|
|
3845
3853
|
}
|
|
3846
3854
|
/**
|
|
3847
3855
|
* Renders layer controls and tools with conditional display based on certain properties.
|
|
@@ -3850,7 +3858,7 @@ class kr extends lt {
|
|
|
3850
3858
|
*/
|
|
3851
3859
|
render() {
|
|
3852
3860
|
var l;
|
|
3853
|
-
const e = this.layer.getVisible(), n = e ? "visible" : "", r = this.currLayerVisibilityBasedOnZoom ? "" : "zoom-state-invisible", o =
|
|
3861
|
+
const e = this.layer.getVisible(), n = e ? "visible" : "", r = this.currLayerVisibilityBasedOnZoom ? "" : "zoom-state-invisible", o = B(this, $t, se).call(this, "layerControlDisable") ? "disabled" : "", s = B(this, $t, se).call(this, "layerControlExclusive") ? "radio" : "checkbox", a = ((l = this.tools) == null ? void 0 : l.length) > 0;
|
|
3854
3862
|
return x`
|
|
3855
3863
|
<style>
|
|
3856
3864
|
${T(this, fi)}
|
|
@@ -3866,15 +3874,15 @@ class kr extends lt {
|
|
|
3866
3874
|
<input
|
|
3867
3875
|
type=${s}
|
|
3868
3876
|
.checked=${Dr(e)}
|
|
3869
|
-
@click=${
|
|
3877
|
+
@click=${B(this, $t, Vr)}
|
|
3870
3878
|
/>
|
|
3871
3879
|
|
|
3872
3880
|
<!-- Layer title -->
|
|
3873
3881
|
<span
|
|
3874
|
-
class="title ${
|
|
3875
|
-
style="--layer-color: ${
|
|
3882
|
+
class="title ${B(this, $t, se).call(this, "color") ? "color-swatch" : ""}"
|
|
3883
|
+
style="--layer-color: ${B(this, $t, se).call(this, "color")}"
|
|
3876
3884
|
>
|
|
3877
|
-
${
|
|
3885
|
+
${B(this, $t, se).call(this, this.titleProperty)}
|
|
3878
3886
|
</span>
|
|
3879
3887
|
${G(
|
|
3880
3888
|
a,
|
|
@@ -3902,7 +3910,7 @@ $t = new WeakSet(), /**
|
|
|
3902
3910
|
* @param {string} key - The key for the layer property.
|
|
3903
3911
|
* @returns {any} - The value of the layer property if exists, otherwise undefined.
|
|
3904
3912
|
*/
|
|
3905
|
-
|
|
3913
|
+
se = function(e) {
|
|
3906
3914
|
var n;
|
|
3907
3915
|
return (n = this.layer) == null ? void 0 : n.get(e);
|
|
3908
3916
|
}, /**
|
|
@@ -3911,9 +3919,9 @@ oe = function(e) {
|
|
|
3911
3919
|
* @param {{target: { checked: boolean }}} evt - The input change event.
|
|
3912
3920
|
*/
|
|
3913
3921
|
Vr = function(e) {
|
|
3914
|
-
|
|
3922
|
+
da(e, this);
|
|
3915
3923
|
}, fi = new WeakMap(), gi = new WeakMap(), // Define static properties for the component
|
|
3916
|
-
|
|
3924
|
+
j(kr, "properties", {
|
|
3917
3925
|
layer: { attribute: !1 },
|
|
3918
3926
|
map: { attribute: !1, state: !0 },
|
|
3919
3927
|
titleProperty: { attribute: "title-property", type: String },
|
|
@@ -4020,7 +4028,7 @@ class Br extends lt {
|
|
|
4020
4028
|
}
|
|
4021
4029
|
}
|
|
4022
4030
|
mi = new WeakMap(), yi = new WeakMap(), // Define static properties for the component
|
|
4023
|
-
|
|
4031
|
+
j(Br, "properties", {
|
|
4024
4032
|
group: { attribute: !1 },
|
|
4025
4033
|
idProperty: { attribute: "id-property" },
|
|
4026
4034
|
map: { attribute: !1, state: !0 },
|
|
@@ -4036,7 +4044,7 @@ customElements.define(
|
|
|
4036
4044
|
Br
|
|
4037
4045
|
);
|
|
4038
4046
|
var Zi, Un;
|
|
4039
|
-
function
|
|
4047
|
+
function ca() {
|
|
4040
4048
|
if (Un) return Zi;
|
|
4041
4049
|
Un = 1;
|
|
4042
4050
|
var i = "Expected a function", t = NaN, e = "[object Symbol]", n = /^\s+|\s+$/g, r = /^[-+]0x[0-9a-f]+$/i, o = /^0b[01]+$/i, s = /^0o[0-7]+$/i, a = parseInt, l = typeof Bt == "object" && Bt && Bt.Object === Object && Bt, d = typeof self == "object" && self && self.Object === Object && self, u = l || d || Function("return this")(), c = Object.prototype, p = c.toString, f = Math.max, g = Math.min, b = function() {
|
|
@@ -4051,37 +4059,37 @@ function da() {
|
|
|
4051
4059
|
var I = M, ut = O;
|
|
4052
4060
|
return M = O = void 0, Z = V, X = E.apply(ut, I), X;
|
|
4053
4061
|
}
|
|
4054
|
-
function
|
|
4062
|
+
function jt(V) {
|
|
4055
4063
|
return Z = V, H = setTimeout(At, m), dt ? gt(V) : X;
|
|
4056
4064
|
}
|
|
4057
4065
|
function Ne(V) {
|
|
4058
4066
|
var I = V - R, ut = V - Z, Rt = m - I;
|
|
4059
4067
|
return tt ? g(Rt, q - ut) : Rt;
|
|
4060
4068
|
}
|
|
4061
|
-
function
|
|
4069
|
+
function zt(V) {
|
|
4062
4070
|
var I = V - R, ut = V - Z;
|
|
4063
4071
|
return R === void 0 || I >= m || I < 0 || tt && ut >= q;
|
|
4064
4072
|
}
|
|
4065
4073
|
function At() {
|
|
4066
4074
|
var V = b();
|
|
4067
|
-
if (
|
|
4068
|
-
return
|
|
4075
|
+
if (zt(V))
|
|
4076
|
+
return Zt(V);
|
|
4069
4077
|
H = setTimeout(At, Ne(V));
|
|
4070
4078
|
}
|
|
4071
|
-
function
|
|
4079
|
+
function Zt(V) {
|
|
4072
4080
|
return H = void 0, ct && M ? gt(V) : (M = O = void 0, X);
|
|
4073
4081
|
}
|
|
4074
4082
|
function He() {
|
|
4075
4083
|
H !== void 0 && clearTimeout(H), Z = 0, M = R = O = H = void 0;
|
|
4076
4084
|
}
|
|
4077
4085
|
function _i() {
|
|
4078
|
-
return H === void 0 ? X :
|
|
4086
|
+
return H === void 0 ? X : Zt(b());
|
|
4079
4087
|
}
|
|
4080
4088
|
function pe() {
|
|
4081
|
-
var V = b(), I =
|
|
4089
|
+
var V = b(), I = zt(V);
|
|
4082
4090
|
if (M = arguments, O = this, R = V, I) {
|
|
4083
4091
|
if (H === void 0)
|
|
4084
|
-
return
|
|
4092
|
+
return jt(R);
|
|
4085
4093
|
if (tt)
|
|
4086
4094
|
return H = setTimeout(At, m), gt(R);
|
|
4087
4095
|
}
|
|
@@ -4093,11 +4101,11 @@ function da() {
|
|
|
4093
4101
|
var m = typeof E;
|
|
4094
4102
|
return !!E && (m == "object" || m == "function");
|
|
4095
4103
|
}
|
|
4096
|
-
function
|
|
4104
|
+
function F(E) {
|
|
4097
4105
|
return !!E && typeof E == "object";
|
|
4098
4106
|
}
|
|
4099
4107
|
function st(E) {
|
|
4100
|
-
return typeof E == "symbol" ||
|
|
4108
|
+
return typeof E == "symbol" || F(E) && p.call(E) == e;
|
|
4101
4109
|
}
|
|
4102
4110
|
function K(E) {
|
|
4103
4111
|
if (typeof E == "number")
|
|
@@ -4116,21 +4124,21 @@ function da() {
|
|
|
4116
4124
|
}
|
|
4117
4125
|
return Zi = N, Zi;
|
|
4118
4126
|
}
|
|
4119
|
-
var
|
|
4120
|
-
const
|
|
4121
|
-
const { layers: t, idProperty: e, titleProperty: n, renderRoot: r } = i, o =
|
|
4127
|
+
var ua = ca();
|
|
4128
|
+
const ha = /* @__PURE__ */ Pr(ua), pa = (i) => {
|
|
4129
|
+
const { layers: t, idProperty: e, titleProperty: n, renderRoot: r } = i, o = ha(() => {
|
|
4122
4130
|
i.requestUpdate(), i.dispatchEvent(
|
|
4123
4131
|
new CustomEvent("changed", { bubbles: !0 })
|
|
4124
4132
|
);
|
|
4125
4133
|
}, 50), s = () => o();
|
|
4126
4134
|
if (t && (t.hasListener("change:length") && (t == null || t.un("change:length", s)), t.on("change:length", s), t)) {
|
|
4127
4135
|
const a = r.querySelector("ul");
|
|
4128
|
-
|
|
4136
|
+
js(
|
|
4129
4137
|
t,
|
|
4130
4138
|
e,
|
|
4131
4139
|
n,
|
|
4132
4140
|
i
|
|
4133
|
-
),
|
|
4141
|
+
), Fs(a, t, e, i);
|
|
4134
4142
|
}
|
|
4135
4143
|
};
|
|
4136
4144
|
var bi, vi;
|
|
@@ -4172,7 +4180,7 @@ class Ur extends lt {
|
|
|
4172
4180
|
* Executes specific logic after the initial render of the component.
|
|
4173
4181
|
*/
|
|
4174
4182
|
firstUpdated() {
|
|
4175
|
-
|
|
4183
|
+
pa(this);
|
|
4176
4184
|
}
|
|
4177
4185
|
/**
|
|
4178
4186
|
* Overrides createRenderRoot to handle shadow DOM creation based on the noShadow property.
|
|
@@ -4195,13 +4203,13 @@ class Ur extends lt {
|
|
|
4195
4203
|
${G(
|
|
4196
4204
|
this.layers,
|
|
4197
4205
|
() => x`
|
|
4198
|
-
${
|
|
4206
|
+
${vo(
|
|
4199
4207
|
e,
|
|
4200
4208
|
(n) => n,
|
|
4201
4209
|
(n) => x`
|
|
4202
4210
|
<li
|
|
4203
4211
|
data-layer="${n.get(this.idProperty)}"
|
|
4204
|
-
data-type="${
|
|
4212
|
+
data-type="${Zs(n, this.map)}"
|
|
4205
4213
|
>
|
|
4206
4214
|
${/** Checks if the layer is a group or individual layer and renders accordingly */
|
|
4207
4215
|
/** @type {import("ol/layer").Group} */
|
|
@@ -4242,7 +4250,7 @@ class Ur extends lt {
|
|
|
4242
4250
|
}
|
|
4243
4251
|
}
|
|
4244
4252
|
bi = new WeakMap(), vi = new WeakMap(), // Define static properties for the component
|
|
4245
|
-
|
|
4253
|
+
j(Ur, "properties", {
|
|
4246
4254
|
idProperty: { attribute: "id-property" },
|
|
4247
4255
|
layers: { attribute: !1 },
|
|
4248
4256
|
map: { attribute: !1, state: !0 },
|
|
@@ -4254,7 +4262,7 @@ F(Ur, "properties", {
|
|
|
4254
4262
|
toolsAsList: { type: Boolean }
|
|
4255
4263
|
});
|
|
4256
4264
|
customElements.define("eox-layercontrol-layer-list", Ur);
|
|
4257
|
-
const
|
|
4265
|
+
const fa = (i) => {
|
|
4258
4266
|
const t = i.querySelector(
|
|
4259
4267
|
"select[name=optional]"
|
|
4260
4268
|
), e = t ? t.value : null, n = fn(
|
|
@@ -4319,7 +4327,7 @@ class Fr extends lt {
|
|
|
4319
4327
|
</select>
|
|
4320
4328
|
|
|
4321
4329
|
<!-- Button to handle adding layers -->
|
|
4322
|
-
<button @click="${
|
|
4330
|
+
<button @click="${B(this, wi, jr)}">add</button>
|
|
4323
4331
|
`;
|
|
4324
4332
|
}
|
|
4325
4333
|
}
|
|
@@ -4328,9 +4336,9 @@ wi = new WeakSet(), /**
|
|
|
4328
4336
|
* Invokes the 'addToListMethod' with the current context.
|
|
4329
4337
|
*/
|
|
4330
4338
|
jr = function() {
|
|
4331
|
-
|
|
4339
|
+
fa(this);
|
|
4332
4340
|
}, // Define static properties for the component
|
|
4333
|
-
|
|
4341
|
+
j(Fr, "properties", {
|
|
4334
4342
|
idProperty: { attribute: "id-property" },
|
|
4335
4343
|
layers: { attribute: !1 },
|
|
4336
4344
|
titleProperty: { attribute: "title-property", type: String },
|
|
@@ -4341,7 +4349,7 @@ customElements.define(
|
|
|
4341
4349
|
"eox-layercontrol-optional-list",
|
|
4342
4350
|
Fr
|
|
4343
4351
|
);
|
|
4344
|
-
const
|
|
4352
|
+
const ga = (i, t) => {
|
|
4345
4353
|
t.jsonInput = i.target.value, t.requestUpdate();
|
|
4346
4354
|
}, Fn = (i) => {
|
|
4347
4355
|
const t = JSON.parse(
|
|
@@ -4350,16 +4358,16 @@ const fa = (i, t) => {
|
|
|
4350
4358
|
Array.isArray(t.data) ? t.data.forEach((e) => {
|
|
4351
4359
|
i.eoxMap.addOrUpdateLayer(e);
|
|
4352
4360
|
}) : i.eoxMap.addOrUpdateLayer(t.data), i.jsonInput = null, i.requestUpdate();
|
|
4353
|
-
},
|
|
4361
|
+
}, ma = (i, t) => {
|
|
4354
4362
|
t.urlInput = i.target.value, t.requestUpdate();
|
|
4355
4363
|
};
|
|
4356
|
-
async function
|
|
4364
|
+
async function ya(i) {
|
|
4357
4365
|
const t = i.urlInput;
|
|
4358
4366
|
if (i.wmsCapabilities = null, i.searchLoad = !0, i.requestUpdate(), !t) return !1;
|
|
4359
4367
|
if (dn(t) === "XYZ")
|
|
4360
4368
|
return { Name: t };
|
|
4361
4369
|
try {
|
|
4362
|
-
const e = await
|
|
4370
|
+
const e = await us(t);
|
|
4363
4371
|
i.wmsCapabilities = e;
|
|
4364
4372
|
} catch {
|
|
4365
4373
|
} finally {
|
|
@@ -4367,7 +4375,7 @@ async function ma(i) {
|
|
|
4367
4375
|
}
|
|
4368
4376
|
return !1;
|
|
4369
4377
|
}
|
|
4370
|
-
const
|
|
4378
|
+
const ba = (i, t) => {
|
|
4371
4379
|
const { Name: e } = i, n = dn(t.urlInput) || "XYZ", r = {
|
|
4372
4380
|
type: "Tile",
|
|
4373
4381
|
properties: {
|
|
@@ -4386,7 +4394,7 @@ const ya = (i, t) => {
|
|
|
4386
4394
|
}
|
|
4387
4395
|
};
|
|
4388
4396
|
t.jsonInput = JSON.stringify(r);
|
|
4389
|
-
},
|
|
4397
|
+
}, va = (i, t) => {
|
|
4390
4398
|
t.open = i || null, t.urlInput = null, t.jsonInput = null, t.wmsCapabilities = null, t.requestUpdate();
|
|
4391
4399
|
};
|
|
4392
4400
|
var it, Zr, qr, Qi, Xr, Yr, We, xi, $i;
|
|
@@ -4399,31 +4407,31 @@ class zr extends lt {
|
|
|
4399
4407
|
*
|
|
4400
4408
|
* @type {String}
|
|
4401
4409
|
*/
|
|
4402
|
-
|
|
4410
|
+
j(this, "urlInput", null);
|
|
4403
4411
|
/**
|
|
4404
4412
|
* State for JSON Textarea - For EOxMap JSON
|
|
4405
4413
|
*
|
|
4406
4414
|
* @type {String}
|
|
4407
4415
|
*/
|
|
4408
|
-
|
|
4416
|
+
j(this, "jsonInput", null);
|
|
4409
4417
|
/**
|
|
4410
4418
|
* State for add layer - consist of url/json
|
|
4411
4419
|
*
|
|
4412
4420
|
* @type {"url" | "json" | null}
|
|
4413
4421
|
*/
|
|
4414
|
-
|
|
4422
|
+
j(this, "open", null);
|
|
4415
4423
|
/**
|
|
4416
4424
|
* Loader state when search is triggered
|
|
4417
4425
|
*
|
|
4418
4426
|
* @type {Boolean}
|
|
4419
4427
|
*/
|
|
4420
|
-
|
|
4428
|
+
j(this, "searchLoad", !1);
|
|
4421
4429
|
/**
|
|
4422
4430
|
* State for `WMS Capabilities JSON`
|
|
4423
4431
|
*
|
|
4424
4432
|
* @type {import("wms-capabilities").WMSCapabilitiesJSON}
|
|
4425
4433
|
*/
|
|
4426
|
-
|
|
4434
|
+
j(this, "wmsCapabilities", null);
|
|
4427
4435
|
P(this, xi, `
|
|
4428
4436
|
.eox-add-layer-main .open {
|
|
4429
4437
|
position: relative;
|
|
@@ -4581,7 +4589,7 @@ class zr extends lt {
|
|
|
4581
4589
|
* Handles input fields, search, and addition of layers.
|
|
4582
4590
|
*/
|
|
4583
4591
|
render() {
|
|
4584
|
-
const e = this.open ? "open" : "close", n = this.open === "url", r = this.open === "json", o = !
|
|
4592
|
+
const e = this.open ? "open" : "close", n = this.open === "url", r = this.open === "json", o = !hs(this.urlInput) || this.searchLoad ? !0 : L;
|
|
4585
4593
|
return x`
|
|
4586
4594
|
<style>
|
|
4587
4595
|
${T(this, xi)}
|
|
@@ -4592,13 +4600,13 @@ class zr extends lt {
|
|
|
4592
4600
|
<!-- Tabbed interface for URL and JSON -->
|
|
4593
4601
|
<ul class="eox-add-layer-tab ${e}">
|
|
4594
4602
|
<li
|
|
4595
|
-
@click=${() =>
|
|
4603
|
+
@click=${() => B(this, it, We).call(this, "url")}
|
|
4596
4604
|
class="${n ? "active" : ""}"
|
|
4597
4605
|
>
|
|
4598
4606
|
URL
|
|
4599
4607
|
</li>
|
|
4600
4608
|
<li
|
|
4601
|
-
@click=${() =>
|
|
4609
|
+
@click=${() => B(this, it, We).call(this, "json")}
|
|
4602
4610
|
class="${r ? "active" : ""}"
|
|
4603
4611
|
>
|
|
4604
4612
|
JSON
|
|
@@ -4608,7 +4616,7 @@ class zr extends lt {
|
|
|
4608
4616
|
<!-- Button to toggle tabs -->
|
|
4609
4617
|
<button
|
|
4610
4618
|
class="add-icon icon"
|
|
4611
|
-
@click=${() =>
|
|
4619
|
+
@click=${() => B(this, it, We).call(this, this.open ? null : "url")}
|
|
4612
4620
|
>
|
|
4613
4621
|
${this.unstyled ? "Add Layer" : ""}
|
|
4614
4622
|
</button>
|
|
@@ -4622,14 +4630,14 @@ class zr extends lt {
|
|
|
4622
4630
|
class="add-url"
|
|
4623
4631
|
placeholder="Add URL (WMS/XYZ)"
|
|
4624
4632
|
.value="${this.urlInput}"
|
|
4625
|
-
@input=${
|
|
4633
|
+
@input=${B(this, it, Zr)}
|
|
4626
4634
|
>
|
|
4627
4635
|
</input>
|
|
4628
4636
|
<!-- Search button for URL -->
|
|
4629
4637
|
<button
|
|
4630
4638
|
class="search-icon"
|
|
4631
4639
|
disabled=${o}
|
|
4632
|
-
@click=${
|
|
4640
|
+
@click=${B(this, it, qr)}
|
|
4633
4641
|
>
|
|
4634
4642
|
${this.unstyled ? "Search" : ""}
|
|
4635
4643
|
</button>
|
|
@@ -4648,7 +4656,7 @@ class zr extends lt {
|
|
|
4648
4656
|
class="add-layer-icon icon"
|
|
4649
4657
|
@click=${() => (
|
|
4650
4658
|
// @ts-expect-error TODO
|
|
4651
|
-
|
|
4659
|
+
B(this, it, Qi).call(this, s)
|
|
4652
4660
|
)}
|
|
4653
4661
|
>
|
|
4654
4662
|
${this.unstyled ? "+" : ""}
|
|
@@ -4663,15 +4671,15 @@ class zr extends lt {
|
|
|
4663
4671
|
<textarea
|
|
4664
4672
|
class="add-layer-input"
|
|
4665
4673
|
placeholder="Please put a valid eox-map layer JSON."
|
|
4666
|
-
@input=${
|
|
4674
|
+
@input=${B(this, it, Yr)}
|
|
4667
4675
|
.value=${this.jsonInput}
|
|
4668
4676
|
></textarea>
|
|
4669
4677
|
|
|
4670
4678
|
<!-- Button to add JSON layer -->
|
|
4671
4679
|
<button
|
|
4672
4680
|
class="add-layer-icon json-add-layer"
|
|
4673
|
-
disabled=${
|
|
4674
|
-
@click=${
|
|
4681
|
+
disabled=${ps(this.jsonInput) ? L : !0}
|
|
4682
|
+
@click=${B(this, it, Xr)}
|
|
4675
4683
|
>
|
|
4676
4684
|
${this.unstyled ? "Add JSON" : ""}
|
|
4677
4685
|
</button>
|
|
@@ -4688,17 +4696,17 @@ it = new WeakSet(), /**
|
|
|
4688
4696
|
* @param {Event} evt - The input change event triggering the method.
|
|
4689
4697
|
*/
|
|
4690
4698
|
Zr = function(e) {
|
|
4691
|
-
|
|
4699
|
+
ma(e, this);
|
|
4692
4700
|
}, qr = async function() {
|
|
4693
|
-
const e = await
|
|
4694
|
-
e &&
|
|
4701
|
+
const e = await ya(this);
|
|
4702
|
+
e && B(this, it, Qi).call(this, e);
|
|
4695
4703
|
}, /**
|
|
4696
4704
|
* Handles input field changes by triggering layer processing and adding layers.
|
|
4697
4705
|
*
|
|
4698
4706
|
* @param {{"Name": string}} layer - The layer information triggering the method.
|
|
4699
4707
|
*/
|
|
4700
4708
|
Qi = function(e) {
|
|
4701
|
-
|
|
4709
|
+
ba(e, this), Fn(this);
|
|
4702
4710
|
}, /**
|
|
4703
4711
|
* Initiates the addition of layers, triggering the handleAddLayerMethod.
|
|
4704
4712
|
*/
|
|
@@ -4710,42 +4718,42 @@ Xr = function() {
|
|
|
4710
4718
|
* @param {{target: { value: string }}} evt - The input change event triggering the method.
|
|
4711
4719
|
*/
|
|
4712
4720
|
Yr = function(e) {
|
|
4713
|
-
|
|
4721
|
+
ga(e, this);
|
|
4714
4722
|
}, /**
|
|
4715
4723
|
* Handles tab changes by invoking the 'openCloseTabMethod'.
|
|
4716
4724
|
*
|
|
4717
4725
|
* @param {"url" | "json" | null} tab - The tab identifier triggering the method.
|
|
4718
4726
|
*/
|
|
4719
4727
|
We = function(e) {
|
|
4720
|
-
|
|
4728
|
+
va(e, this);
|
|
4721
4729
|
}, xi = new WeakMap(), $i = new WeakMap(), // Define static properties for the component
|
|
4722
|
-
|
|
4730
|
+
j(zr, "properties", {
|
|
4723
4731
|
eoxMap: { attribute: !1, state: !0 },
|
|
4724
4732
|
unstyled: { type: Boolean },
|
|
4725
4733
|
noShadow: { type: Boolean }
|
|
4726
4734
|
});
|
|
4727
4735
|
customElements.define("eox-layercontrol-add-layers", zr);
|
|
4728
|
-
const
|
|
4736
|
+
const wa = (i, t) => {
|
|
4729
4737
|
if (t.requestUpdate(), i.target.tagName === "EOX-LAYERCONTROL-LAYER-TOOLS") {
|
|
4730
4738
|
const e = t.renderRoot.querySelector(
|
|
4731
4739
|
"eox-layercontrol-optional-list"
|
|
4732
4740
|
);
|
|
4733
4741
|
e == null || e.requestUpdate();
|
|
4734
4742
|
}
|
|
4735
|
-
},
|
|
4743
|
+
}, xa = (i) => {
|
|
4736
4744
|
let t;
|
|
4737
4745
|
return typeof i == "string" ? t = /** @type {HTMLElement} */
|
|
4738
4746
|
document.querySelector(i) : t = i, t;
|
|
4739
4747
|
}, jn = (i) => {
|
|
4740
|
-
const t =
|
|
4748
|
+
const t = xa(i.for);
|
|
4741
4749
|
return t && t.map !== i.map && (i.map = t.map), t;
|
|
4742
4750
|
};
|
|
4743
|
-
var kt,
|
|
4751
|
+
var kt, Ft, Gr, Jr, Kr, Ei;
|
|
4744
4752
|
class Wr extends lt {
|
|
4745
4753
|
// Constructor to set default values for properties
|
|
4746
4754
|
constructor() {
|
|
4747
4755
|
super();
|
|
4748
|
-
P(this,
|
|
4756
|
+
P(this, Ft);
|
|
4749
4757
|
/**
|
|
4750
4758
|
* Instance of `eox-map` which is a wrapper for the OL
|
|
4751
4759
|
*
|
|
@@ -4791,7 +4799,7 @@ class Wr extends lt {
|
|
|
4791
4799
|
}
|
|
4792
4800
|
set eoxMap(e) {
|
|
4793
4801
|
const n = T(this, kt);
|
|
4794
|
-
|
|
4802
|
+
ee(this, kt, e), this.requestUpdate("eoxMap", n);
|
|
4795
4803
|
}
|
|
4796
4804
|
render() {
|
|
4797
4805
|
var r, o, s;
|
|
@@ -4829,8 +4837,9 @@ class Wr extends lt {
|
|
|
4829
4837
|
.tools=${this.tools}
|
|
4830
4838
|
.unstyled=${this.unstyled}
|
|
4831
4839
|
.toolsAsList=${this.toolsAsList}
|
|
4832
|
-
@changed=${
|
|
4833
|
-
@datetime:updated=${
|
|
4840
|
+
@changed=${B(this, Ft, Gr)}
|
|
4841
|
+
@datetime:updated=${B(this, Ft, Jr)}
|
|
4842
|
+
@layerConfig:change=${B(this, Ft, Kr)}
|
|
4834
4843
|
></eox-layercontrol-layer-list>
|
|
4835
4844
|
`
|
|
4836
4845
|
)}
|
|
@@ -4851,13 +4860,13 @@ class Wr extends lt {
|
|
|
4851
4860
|
`;
|
|
4852
4861
|
}
|
|
4853
4862
|
}
|
|
4854
|
-
kt = new WeakMap(),
|
|
4863
|
+
kt = new WeakMap(), Ft = new WeakSet(), /**
|
|
4855
4864
|
* Event handler for changes in the layer list
|
|
4856
4865
|
*
|
|
4857
4866
|
* @param {CustomEvent & {target: Element}} evt
|
|
4858
4867
|
*/
|
|
4859
4868
|
Gr = function(e) {
|
|
4860
|
-
|
|
4869
|
+
wa(e, this), this.dispatchEvent(new CustomEvent("layerchange", { detail: e.detail }));
|
|
4861
4870
|
}, /**
|
|
4862
4871
|
* Dispatches datetime updates from layer datetime to the layercontrol
|
|
4863
4872
|
* @param {CustomEvent} evt
|
|
@@ -4866,8 +4875,16 @@ Jr = function(e) {
|
|
|
4866
4875
|
this.dispatchEvent(
|
|
4867
4876
|
new CustomEvent("datetime:updated", { detail: e.detail })
|
|
4868
4877
|
);
|
|
4878
|
+
}, /**
|
|
4879
|
+
* Dispatches jsonform updates from layer config to the layercontrol
|
|
4880
|
+
* @param {CustomEvent} evt
|
|
4881
|
+
*/
|
|
4882
|
+
Kr = function(e) {
|
|
4883
|
+
this.dispatchEvent(
|
|
4884
|
+
new CustomEvent("layerConfig:change", { detail: e.detail })
|
|
4885
|
+
);
|
|
4869
4886
|
}, Ei = new WeakMap(), // Define static properties for the component
|
|
4870
|
-
|
|
4887
|
+
j(Wr, "properties", {
|
|
4871
4888
|
for: { type: String },
|
|
4872
4889
|
idProperty: { attribute: "id-property" },
|
|
4873
4890
|
map: { attribute: !1, state: !0 },
|