@eox/layercontrol 0.26.0 → 0.27.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.
@@ -11,7 +11,7 @@ var T = (i, t, e) => (Ci(i, t, "read from private field"), e ? e.call(i) : t.get
11
11
  * SPDX-License-Identifier: BSD-3-Clause
12
12
  */
13
13
  const Fe = globalThis, tn = Fe.ShadowRoot && (Fe.ShadyCSS === void 0 || Fe.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, en = Symbol(), bn = /* @__PURE__ */ new WeakMap();
14
- let zn = class {
14
+ let Zn = class {
15
15
  constructor(t, e, n) {
16
16
  if (this._$cssResult$ = !0, n !== en) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
17
17
  this.cssText = t, this.t = e;
@@ -29,13 +29,13 @@ let zn = class {
29
29
  return this.cssText;
30
30
  }
31
31
  };
32
- const er = (i) => new zn(typeof i == "string" ? i : i + "", void 0, en), qn = (i, ...t) => {
32
+ const er = (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, o, r) => 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
  })(o) + i[r + 1], i[0]);
38
- return new zn(e, i, en);
38
+ return new Zn(e, i, en);
39
39
  }, ir = (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) {
@@ -286,9 +286,9 @@ ie.elementStyles = [], ie.shadowRootOptions = { mode: "open" }, ie[be("elementPr
286
286
  * Copyright 2017 Google LLC
287
287
  * SPDX-License-Identifier: BSD-3-Clause
288
288
  */
289
- const ve = globalThis, Ge = ve.trustedTypes, En = Ge ? Ge.createPolicy("lit-html", { createHTML: (i) => i }) : void 0, nn = "$lit$", Ct = `lit$${Math.random().toFixed(9).slice(2)}$`, on = "?" + Ct, ur = `<${on}>`, Jt = document, _e = () => Jt.createComment(""), Ae = (i) => i === null || typeof i != "object" && typeof i != "function", rn = Array.isArray, Yn = (i) => rn(i) || typeof (i == null ? void 0 : i[Symbol.iterator]) == "function", Di = `[
290
- \f\r]`, pe = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, $n = /-->/g, Sn = />/g, Zt = RegExp(`>|${Di}(?:([^\\s"'>=/]+)(${Di}*=${Di}*(?:[^
291
- \f\r"'\`<>=]|("|')|))|$)`, "g"), _n = /'/g, An = /"/g, Wn = /^(?:script|style|textarea|title)$/i, cr = (i) => (t, ...e) => ({ _$litType$: i, strings: t, values: e }), x = cr(1), vt = Symbol.for("lit-noChange"), O = Symbol.for("lit-nothing"), Cn = /* @__PURE__ */ new WeakMap(), Wt = Jt.createTreeWalker(Jt, 129);
289
+ const ve = globalThis, Ge = ve.trustedTypes, En = Ge ? Ge.createPolicy("lit-html", { createHTML: (i) => i }) : void 0, nn = "$lit$", Ct = `lit$${Math.random().toFixed(9).slice(2)}$`, on = "?" + Ct, cr = `<${on}>`, Jt = document, _e = () => Jt.createComment(""), Ae = (i) => i === null || typeof i != "object" && typeof i != "function", rn = Array.isArray, Yn = (i) => rn(i) || typeof (i == null ? void 0 : i[Symbol.iterator]) == "function", Di = `[
290
+ \f\r]`, pe = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, $n = /-->/g, Sn = />/g, zt = RegExp(`>|${Di}(?:([^\\s"'>=/]+)(${Di}*=${Di}*(?:[^
291
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), _n = /'/g, An = /"/g, Wn = /^(?:script|style|textarea|title)$/i, ur = (i) => (t, ...e) => ({ _$litType$: i, strings: t, values: e }), x = ur(1), vt = Symbol.for("lit-noChange"), O = Symbol.for("lit-nothing"), Cn = /* @__PURE__ */ new WeakMap(), Wt = Jt.createTreeWalker(Jt, 129);
292
292
  function Gn(i, t) {
293
293
  if (!rn(i) || !i.hasOwnProperty("raw")) throw Error("invalid template strings array");
294
294
  return En !== void 0 ? En.createHTML(t) : t;
@@ -298,10 +298,10 @@ const Jn = (i, t) => {
298
298
  let o, r = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", s = pe;
299
299
  for (let a = 0; a < e; a++) {
300
300
  const l = i[a];
301
- let d, c, u = -1, p = 0;
302
- for (; p < l.length && (s.lastIndex = p, c = s.exec(l), c !== null); ) p = s.lastIndex, s === pe ? c[1] === "!--" ? s = $n : c[1] !== void 0 ? s = Sn : c[2] !== void 0 ? (Wn.test(c[2]) && (o = RegExp("</" + c[2], "g")), s = Zt) : c[3] !== void 0 && (s = Zt) : s === Zt ? c[0] === ">" ? (s = o ?? pe, u = -1) : c[1] === void 0 ? u = -2 : (u = s.lastIndex - c[2].length, d = c[1], s = c[3] === void 0 ? Zt : c[3] === '"' ? An : _n) : s === An || s === _n ? s = Zt : s === $n || s === Sn ? s = pe : (s = Zt, o = void 0);
303
- const f = s === Zt && i[a + 1].startsWith("/>") ? " " : "";
304
- r += s === pe ? l + ur : u >= 0 ? (n.push(d), l.slice(0, u) + nn + l.slice(u) + Ct + f) : l + Ct + (u === -2 ? a : f);
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 === pe ? u[1] === "!--" ? s = $n : u[1] !== void 0 ? s = Sn : u[2] !== void 0 ? (Wn.test(u[2]) && (o = RegExp("</" + u[2], "g")), s = zt) : u[3] !== void 0 && (s = zt) : s === zt ? u[0] === ">" ? (s = o ?? pe, c = -1) : u[1] === void 0 ? c = -2 : (c = s.lastIndex - u[2].length, d = u[1], s = u[3] === void 0 ? zt : u[3] === '"' ? An : _n) : s === An || s === _n ? s = zt : s === $n || s === Sn ? s = pe : (s = zt, o = void 0);
303
+ const f = s === zt && i[a + 1].startsWith("/>") ? " " : "";
304
+ r += s === pe ? l + cr : 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, r + (i[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), n];
307
307
  };
@@ -310,29 +310,29 @@ class Ce {
310
310
  let o;
311
311
  this.parts = [];
312
312
  let r = 0, s = 0;
313
- const a = t.length - 1, l = this.parts, [d, c] = Jn(t, e);
313
+ const a = t.length - 1, l = this.parts, [d, u] = Jn(t, e);
314
314
  if (this.el = Ce.createElement(d, n), Wt.currentNode = this.el.content, e === 2 || e === 3) {
315
- const u = this.el.content.firstChild;
316
- u.replaceWith(...u.childNodes);
315
+ const c = this.el.content.firstChild;
316
+ c.replaceWith(...c.childNodes);
317
317
  }
318
318
  for (; (o = Wt.nextNode()) !== null && l.length < a; ) {
319
319
  if (o.nodeType === 1) {
320
- if (o.hasAttributes()) for (const u of o.getAttributeNames()) if (u.endsWith(nn)) {
321
- const p = c[s++], f = o.getAttribute(u).split(Ct), g = /([.?@])?(.*)/.exec(p);
322
- l.push({ type: 1, index: r, name: g[2], strings: f, ctor: g[1] === "." ? Qn : g[1] === "?" ? to : g[1] === "@" ? eo : Re }), o.removeAttribute(u);
323
- } else u.startsWith(Ct) && (l.push({ type: 6, index: r }), o.removeAttribute(u));
320
+ if (o.hasAttributes()) for (const c of o.getAttributeNames()) if (c.endsWith(nn)) {
321
+ const p = u[s++], f = o.getAttribute(c).split(Ct), g = /([.?@])?(.*)/.exec(p);
322
+ l.push({ type: 1, index: r, name: g[2], strings: f, ctor: g[1] === "." ? Qn : g[1] === "?" ? to : g[1] === "@" ? eo : Le }), o.removeAttribute(c);
323
+ } else c.startsWith(Ct) && (l.push({ type: 6, index: r }), o.removeAttribute(c));
324
324
  if (Wn.test(o.tagName)) {
325
- const u = o.textContent.split(Ct), p = u.length - 1;
325
+ const c = o.textContent.split(Ct), p = c.length - 1;
326
326
  if (p > 0) {
327
327
  o.textContent = Ge ? Ge.emptyScript : "";
328
- for (let f = 0; f < p; f++) o.append(u[f], _e()), Wt.nextNode(), l.push({ type: 2, index: ++r });
329
- o.append(u[p], _e());
328
+ for (let f = 0; f < p; f++) o.append(c[f], _e()), Wt.nextNode(), l.push({ type: 2, index: ++r });
329
+ o.append(c[p], _e());
330
330
  }
331
331
  }
332
332
  } else if (o.nodeType === 8) if (o.data === on) l.push({ type: 2, index: r });
333
333
  else {
334
- let u = -1;
335
- for (; (u = o.data.indexOf(Ct, u + 1)) !== -1; ) l.push({ type: 7, index: r }), u += Ct.length - 1;
334
+ let c = -1;
335
+ for (; (c = o.data.indexOf(Ct, c + 1)) !== -1; ) l.push({ type: 7, index: r }), c += Ct.length - 1;
336
336
  }
337
337
  r++;
338
338
  }
@@ -366,7 +366,7 @@ let Kn = class {
366
366
  for (; l !== void 0; ) {
367
367
  if (s === l.index) {
368
368
  let d;
369
- l.type === 2 ? d = new ce(r, r.nextSibling, this, t) : l.type === 1 ? d = new l.ctor(r, l.name, l.strings, this, t) : l.type === 6 && (d = new io(r, this, t)), this._$AV.push(d), l = n[++a];
369
+ l.type === 2 ? d = new ue(r, r.nextSibling, this, t) : l.type === 1 ? d = new l.ctor(r, l.name, l.strings, this, t) : l.type === 6 && (d = new io(r, this, t)), this._$AV.push(d), l = n[++a];
370
370
  }
371
371
  s !== (l == null ? void 0 : l.index) && (r = Wt.nextNode(), s++);
372
372
  }
@@ -377,7 +377,7 @@ let Kn = class {
377
377
  for (const n of this._$AV) n !== void 0 && (n.strings !== void 0 ? (n._$AI(t, n, e), e += n.strings.length - 2) : n._$AI(t[e])), e++;
378
378
  }
379
379
  };
380
- class ce {
380
+ class ue {
381
381
  get _$AU() {
382
382
  var t;
383
383
  return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
@@ -425,7 +425,7 @@ class ce {
425
425
  rn(this._$AH) || (this._$AH = [], this._$AR());
426
426
  const e = this._$AH;
427
427
  let n, o = 0;
428
- for (const r of t) o === e.length ? e.push(n = new ce(this.O(_e()), this.O(_e()), this, this.options)) : n = e[o], n._$AI(r), o++;
428
+ for (const r of t) o === e.length ? e.push(n = new ue(this.O(_e()), this.O(_e()), this, this.options)) : n = e[o], n._$AI(r), o++;
429
429
  o < e.length && (this._$AR(n && n._$AB.nextSibling, o), e.length = o);
430
430
  }
431
431
  _$AR(t = this._$AA.nextSibling, e) {
@@ -440,7 +440,7 @@ class ce {
440
440
  this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
441
441
  }
442
442
  }
443
- class Re {
443
+ class Le {
444
444
  get tagName() {
445
445
  return this.element.tagName;
446
446
  }
@@ -465,7 +465,7 @@ class Re {
465
465
  t === O ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
466
466
  }
467
467
  }
468
- class Qn extends Re {
468
+ class Qn extends Le {
469
469
  constructor() {
470
470
  super(...arguments), this.type = 3;
471
471
  }
@@ -473,7 +473,7 @@ class Qn extends Re {
473
473
  this.element[this.name] = t === O ? void 0 : t;
474
474
  }
475
475
  }
476
- class to extends Re {
476
+ class to extends Le {
477
477
  constructor() {
478
478
  super(...arguments), this.type = 4;
479
479
  }
@@ -481,7 +481,7 @@ class to extends Re {
481
481
  this.element.toggleAttribute(this.name, !!t && t !== O);
482
482
  }
483
483
  }
484
- class eo extends Re {
484
+ class eo extends Le {
485
485
  constructor(t, e, n, o, r) {
486
486
  super(t, e, n, o, r), this.type = 5;
487
487
  }
@@ -506,14 +506,14 @@ class io {
506
506
  Kt(this, t);
507
507
  }
508
508
  }
509
- const hr = { M: nn, P: Ct, A: on, C: 1, L: Jn, R: Kn, D: Yn, V: Kt, I: ce, H: Re, N: to, U: eo, B: Qn, F: io }, Pi = ve.litHtmlPolyfillSupport;
510
- Pi == null || Pi(Ce, ce), (ve.litHtmlVersions ?? (ve.litHtmlVersions = [])).push("3.2.1");
509
+ const hr = { M: nn, P: Ct, A: on, C: 1, L: Jn, R: Kn, D: Yn, V: Kt, I: ue, H: Le, N: to, U: eo, B: Qn, F: io }, Pi = ve.litHtmlPolyfillSupport;
510
+ Pi == null || Pi(Ce, ue), (ve.litHtmlVersions ?? (ve.litHtmlVersions = [])).push("3.2.1");
511
511
  const pr = (i, t, e) => {
512
512
  const n = (e == null ? void 0 : e.renderBefore) ?? t;
513
513
  let o = n._$litPart$;
514
514
  if (o === void 0) {
515
515
  const r = (e == null ? void 0 : e.renderBefore) ?? null;
516
- n._$litPart$ = o = new ce(t.insertBefore(_e(), r), r, void 0, e ?? {});
516
+ n._$litPart$ = o = new ue(t.insertBefore(_e(), r), r, void 0, e ?? {});
517
517
  }
518
518
  return o._$AI(i), o;
519
519
  };
@@ -547,8 +547,8 @@ let lt = class extends ie {
547
547
  return vt;
548
548
  }
549
549
  };
550
- var Zn;
551
- lt._$litElement$ = !0, lt.finalized = !0, (Zn = globalThis.litElementHydrateSupport) == null || Zn.call(globalThis, { LitElement: lt });
550
+ var zn;
551
+ lt._$litElement$ = !0, lt.finalized = !0, (zn = globalThis.litElementHydrateSupport) == null || zn.call(globalThis, { LitElement: lt });
552
552
  const Oi = globalThis.litElementPolyfillSupport;
553
553
  Oi == null || Oi({ LitElement: lt });
554
554
  (globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.1.1");
@@ -602,13 +602,13 @@ const { I: fr } = hr, gr = (i) => i.strings === void 0, Tn = () => document.crea
602
602
  if (s !== o || l) {
603
603
  let d = e._$AA;
604
604
  for (; d !== s; ) {
605
- const c = d.nextSibling;
606
- n.insertBefore(d, o), d = c;
605
+ const u = d.nextSibling;
606
+ n.insertBefore(d, o), d = u;
607
607
  }
608
608
  }
609
609
  }
610
610
  return e;
611
- }, zt = (i, t, e = i) => (i._$AI(t, e), i), mr = {}, no = (i, t = mr) => i._$AH = t, yr = (i) => i._$AH, Ri = (i) => {
611
+ }, Zt = (i, t, e = i) => (i._$AI(t, e), i), mr = {}, no = (i, t = mr) => i._$AH = t, yr = (i) => i._$AH, Li = (i) => {
612
612
  var n;
613
613
  (n = i._$AP) == null || n.call(i, !1, !0);
614
614
  let t = i._$AA;
@@ -646,29 +646,29 @@ const Dn = (i, t, e) => {
646
646
  const o = yr(i), { values: r, keys: s } = this.dt(t, e, n);
647
647
  if (!Array.isArray(o)) return this.ut = s, r;
648
648
  const a = this.ut ?? (this.ut = []), l = [];
649
- let d, c, u = 0, p = o.length - 1, f = 0, g = r.length - 1;
650
- for (; u <= p && f <= g; ) if (o[u] === null) u++;
649
+ let d, u, c = 0, p = o.length - 1, f = 0, g = r.length - 1;
650
+ for (; c <= p && f <= g; ) if (o[c] === null) c++;
651
651
  else if (o[p] === null) p--;
652
- else if (a[u] === s[f]) l[f] = zt(o[u], r[f]), u++, f++;
653
- else if (a[p] === s[g]) l[g] = zt(o[p], r[g]), p--, g--;
654
- else if (a[u] === s[g]) l[g] = zt(o[u], r[g]), fe(i, l[g + 1], o[u]), u++, g--;
655
- else if (a[p] === s[f]) l[f] = zt(o[p], r[f]), fe(i, o[u], o[p]), p--, f++;
656
- else if (d === void 0 && (d = Dn(s, f, g), c = Dn(a, u, p)), d.has(a[u])) if (d.has(a[p])) {
657
- const b = c.get(s[f]), N = b !== void 0 ? o[b] : null;
652
+ else if (a[c] === s[f]) l[f] = Zt(o[c], r[f]), c++, f++;
653
+ else if (a[p] === s[g]) l[g] = Zt(o[p], r[g]), p--, g--;
654
+ else if (a[c] === s[g]) l[g] = Zt(o[c], r[g]), fe(i, l[g + 1], o[c]), c++, g--;
655
+ else if (a[p] === s[f]) l[f] = Zt(o[p], r[f]), fe(i, o[c], o[p]), p--, f++;
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
+ const b = u.get(s[f]), N = b !== void 0 ? o[b] : null;
658
658
  if (N === null) {
659
- const J = fe(i, o[u]);
660
- zt(J, r[f]), l[f] = J;
661
- } else l[f] = zt(N, r[f]), fe(i, o[u], N), o[b] = null;
659
+ const J = fe(i, o[c]);
660
+ Zt(J, r[f]), l[f] = J;
661
+ } else l[f] = Zt(N, r[f]), fe(i, o[c], N), o[b] = null;
662
662
  f++;
663
- } else Ri(o[p]), p--;
664
- else Ri(o[u]), u++;
663
+ } else Li(o[p]), p--;
664
+ else Li(o[c]), c++;
665
665
  for (; f <= g; ) {
666
666
  const b = fe(i, l[g + 1]);
667
- zt(b, r[f]), l[f++] = b;
667
+ Zt(b, r[f]), l[f++] = b;
668
668
  }
669
- for (; u <= p; ) {
670
- const b = o[u++];
671
- b !== null && Ri(b);
669
+ for (; c <= p; ) {
670
+ const b = o[c++];
671
+ b !== null && Li(b);
672
672
  }
673
673
  return this.ut = s, no(i, l), vt;
674
674
  }
@@ -851,7 +851,7 @@ function Tt(i) {
851
851
  if (t)
852
852
  return parseFloat(t[1]);
853
853
  }
854
- function Li(i) {
854
+ function Ri(i) {
855
855
  return Je(Si(i, !1));
856
856
  }
857
857
  function Je(i) {
@@ -926,10 +926,10 @@ function Or(i, t) {
926
926
  s
927
927
  ];
928
928
  }
929
- function Rr(i, t) {
929
+ function Lr(i, t) {
930
930
  return Q({}, Yr, i, t);
931
931
  }
932
- function Lr(i, t) {
932
+ function Rr(i, t) {
933
933
  return Q({}, Wr, i, t);
934
934
  }
935
935
  function Mr(i, t) {
@@ -970,7 +970,7 @@ function Vr(i, t) {
970
970
  {
971
971
  queryable: S(e) ? e : !1
972
972
  },
973
- co,
973
+ uo,
974
974
  i,
975
975
  t
976
976
  );
@@ -984,7 +984,7 @@ function Br(i, t) {
984
984
  /** @type {Object.<string,*>} */
985
985
  Q(
986
986
  {},
987
- co,
987
+ uo,
988
988
  i,
989
989
  t
990
990
  )
@@ -1002,15 +1002,15 @@ function Br(i, t) {
1002
1002
  S(l) || (l = e.fixedWidth), n.fixedWidth = l;
1003
1003
  let d = Tt(i.getAttribute("fixedHeight"));
1004
1004
  S(d) || (d = e.fixedHeight), n.fixedHeight = d;
1005
- const c = ["Style", "CRS", "AuthorityURL"];
1006
- for (let p = 0, f = c.length; p < f; p++) {
1007
- const g = c[p], b = e[g];
1005
+ const u = ["Style", "CRS", "AuthorityURL"];
1006
+ for (let p = 0, f = u.length; p < f; p++) {
1007
+ const g = u[p], b = e[g];
1008
1008
  if (S(b)) {
1009
1009
  let N = oo(n, g, []);
1010
1010
  N = N.concat(b), n[g] = N;
1011
1011
  }
1012
1012
  }
1013
- const u = [
1013
+ const c = [
1014
1014
  "EX_GeographicBoundingBox",
1015
1015
  "BoundingBox",
1016
1016
  "Dimension",
@@ -1018,8 +1018,8 @@ function Br(i, t) {
1018
1018
  "MinScaleDenominator",
1019
1019
  "MaxScaleDenominator"
1020
1020
  ];
1021
- for (let p = 0, f = u.length; p < f; p++) {
1022
- const g = u[p], b = n[g];
1021
+ for (let p = 0, f = c.length; p < f; p++) {
1022
+ const g = c[p], b = n[g];
1023
1023
  if (!S(b)) {
1024
1024
  const N = e[g];
1025
1025
  n[g] = N;
@@ -1069,12 +1069,12 @@ function lo(i, t) {
1069
1069
  return e.size = n, e;
1070
1070
  }
1071
1071
  }
1072
- function Zr(i, t) {
1072
+ function zr(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 zr(i, t) {
1077
+ function Zr(i, t) {
1078
1078
  var e = Pt(i, t);
1079
1079
  if (S(e))
1080
1080
  return e.type = i.getAttribute("type"), e;
@@ -1082,7 +1082,7 @@ function zr(i, t) {
1082
1082
  function qr(i, t) {
1083
1083
  return Q({}, ss, i, t);
1084
1084
  }
1085
- function uo(i, t) {
1085
+ function co(i, t) {
1086
1086
  return Q(
1087
1087
  [],
1088
1088
  ls,
@@ -1096,8 +1096,8 @@ const ot = [
1096
1096
  ], Xr = nt(
1097
1097
  ot,
1098
1098
  {
1099
- Service: y(Lr),
1100
- Capability: y(Rr)
1099
+ Service: y(Rr),
1100
+ Capability: y(Lr)
1101
1101
  }
1102
1102
  ), Yr = nt(
1103
1103
  ot,
@@ -1112,14 +1112,14 @@ const ot = [
1112
1112
  Name: y(D),
1113
1113
  Title: y(D),
1114
1114
  Abstract: y(D),
1115
- KeywordList: y(uo),
1115
+ KeywordList: y(co),
1116
1116
  OnlineResource: y(ln),
1117
1117
  ContactInformation: y(Mr),
1118
1118
  Fees: y(D),
1119
1119
  AccessConstraints: y(D),
1120
- LayerLimit: y(Li),
1121
- MaxWidth: y(Li),
1122
- MaxHeight: y(Li)
1120
+ LayerLimit: y(Ri),
1121
+ MaxWidth: y(Ri),
1122
+ MaxHeight: y(Ri)
1123
1123
  }
1124
1124
  ), Gr = nt(
1125
1125
  ot,
@@ -1152,13 +1152,13 @@ const ot = [
1152
1152
  {
1153
1153
  Format: so(D)
1154
1154
  }
1155
- ), co = nt(
1155
+ ), uo = nt(
1156
1156
  ot,
1157
1157
  {
1158
1158
  Name: y(D),
1159
1159
  Title: y(D),
1160
1160
  Abstract: y(D),
1161
- KeywordList: y(uo),
1161
+ KeywordList: y(co),
1162
1162
  CRS: pt(D),
1163
1163
  SRS: pt(D),
1164
1164
  EX_GeographicBoundingBox: y(Or),
@@ -1166,9 +1166,9 @@ const ot = [
1166
1166
  BoundingBox: pt(Tr),
1167
1167
  Dimension: pt(kr),
1168
1168
  Attribution: y(Cr),
1169
- AuthorityURL: pt(Zr),
1169
+ AuthorityURL: pt(zr),
1170
1170
  Identifier: pt(D),
1171
- MetadataURL: pt(zr),
1171
+ MetadataURL: pt(Zr),
1172
1172
  DataURL: pt(Pt),
1173
1173
  FeatureListURL: pt(Pt),
1174
1174
  Style: pt(qr),
@@ -1300,7 +1300,7 @@ class ds {
1300
1300
  }, Xr, t, []) || null;
1301
1301
  }
1302
1302
  }
1303
- async function us(i) {
1303
+ async function cs(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();
@@ -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 cs(i) {
1318
+ function us(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
  }
@@ -1417,15 +1417,15 @@ function Dt(i) {
1417
1417
  if (typeof window < "u" && window.navigator)
1418
1418
  return !!/* @__PURE__ */ navigator.userAgent.match(i);
1419
1419
  }
1420
- var Rt = Dt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Le = Dt(/Edge/i), On = Dt(/firefox/i), we = Dt(/safari/i) && !Dt(/chrome/i) && !Dt(/android/i), un = Dt(/iP(ad|od|hone)/i), po = Dt(/chrome/i) && Dt(/android/i), fo = {
1420
+ var Lt = Dt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Re = Dt(/Edge/i), On = Dt(/firefox/i), we = Dt(/safari/i) && !Dt(/chrome/i) && !Dt(/android/i), cn = Dt(/iP(ad|od|hone)/i), po = Dt(/chrome/i) && Dt(/android/i), fo = {
1421
1421
  capture: !1,
1422
1422
  passive: !1
1423
1423
  };
1424
1424
  function C(i, t, e) {
1425
- i.addEventListener(t, e, !Rt && fo);
1425
+ i.addEventListener(t, e, !Lt && fo);
1426
1426
  }
1427
1427
  function A(i, t, e) {
1428
- i.removeEventListener(t, e, !Rt && fo);
1428
+ i.removeEventListener(t, e, !Lt && fo);
1429
1429
  }
1430
1430
  function Ke(i, t) {
1431
1431
  if (t) {
@@ -1457,14 +1457,14 @@ function xt(i, t, e, n) {
1457
1457
  }
1458
1458
  return null;
1459
1459
  }
1460
- var Rn = /\s+/g;
1460
+ var Ln = /\s+/g;
1461
1461
  function mt(i, t, e) {
1462
1462
  if (i && t)
1463
1463
  if (i.classList)
1464
1464
  i.classList[e ? "add" : "remove"](t);
1465
1465
  else {
1466
- var n = (" " + i.className + " ").replace(Rn, " ").replace(" " + t + " ", " ");
1467
- i.className = (n + (e ? " " + t : "")).replace(Rn, " ");
1466
+ var n = (" " + i.className + " ").replace(Ln, " ").replace(" " + t + " ", " ");
1467
+ i.className = (n + (e ? " " + t : "")).replace(Ln, " ");
1468
1468
  }
1469
1469
  }
1470
1470
  function v(i, t, e) {
@@ -1503,8 +1503,8 @@ function $t() {
1503
1503
  }
1504
1504
  function W(i, t, e, n, o) {
1505
1505
  if (!(!i.getBoundingClientRect && i !== window)) {
1506
- var r, s, a, l, d, c, u;
1507
- if (i !== window && i.parentNode && i !== $t() ? (r = i.getBoundingClientRect(), s = r.top, a = r.left, l = r.bottom, d = r.right, c = r.height, u = r.width) : (s = 0, a = 0, l = window.innerHeight, d = window.innerWidth, c = window.innerHeight, u = window.innerWidth), (t || e) && i !== window && (o = o || i.parentNode, !Rt))
1506
+ var r, s, a, l, d, u, c;
1507
+ if (i !== window && i.parentNode && i !== $t() ? (r = i.getBoundingClientRect(), s = r.top, a = r.left, l = r.bottom, d = r.right, u = r.height, c = r.width) : (s = 0, a = 0, l = window.innerHeight, d = window.innerWidth, u = window.innerHeight, c = window.innerWidth), (t || e) && i !== window && (o = o || i.parentNode, !Lt))
1508
1508
  do
1509
1509
  if (o && o.getBoundingClientRect && (v(o, "transform") !== "none" || e && v(o, "position") !== "static")) {
1510
1510
  var p = o.getBoundingClientRect();
@@ -1514,19 +1514,19 @@ function W(i, t, e, n, o) {
1514
1514
  while (o = o.parentNode);
1515
1515
  if (n && i !== window) {
1516
1516
  var f = ae(o || i), g = f && f.a, b = f && f.d;
1517
- f && (s /= b, a /= g, u /= g, c /= b, l = s + c, d = a + u);
1517
+ f && (s /= b, a /= g, c /= g, u /= b, l = s + u, d = a + c);
1518
1518
  }
1519
1519
  return {
1520
1520
  top: s,
1521
1521
  left: a,
1522
1522
  bottom: l,
1523
1523
  right: d,
1524
- width: u,
1525
- height: c
1524
+ width: c,
1525
+ height: u
1526
1526
  };
1527
1527
  }
1528
1528
  }
1529
- function Ln(i, t, e) {
1529
+ function Rn(i, t, e) {
1530
1530
  for (var n = Vt(i, !0), o = W(i)[t]; n; ) {
1531
1531
  var r = W(n)[e], s = void 0;
1532
1532
  if (s = o >= r, !s) return n;
@@ -1546,7 +1546,7 @@ function de(i, t, e, n) {
1546
1546
  }
1547
1547
  return null;
1548
1548
  }
1549
- function cn(i, t) {
1549
+ function un(i, t) {
1550
1550
  for (var e = i.lastElementChild; e && (e === w.ghost || v(e, "display") === "none" || t && !Ke(e, t)); )
1551
1551
  e = e.previousElementSibling;
1552
1552
  return e || null;
@@ -1670,9 +1670,9 @@ function xs() {
1670
1670
  }
1671
1671
  var r = !1, s = 0;
1672
1672
  i.forEach(function(a) {
1673
- var l = 0, d = a.target, c = d.fromRect, u = W(d), p = d.prevFromRect, f = d.prevToRect, g = a.rect, b = ae(d, !0);
1674
- b && (u.top -= b.f, u.left -= b.e), d.toRect = u, d.thisAnimationDuration && Ii(p, u) && !Ii(c, u) && // Make sure animatingRect is on line between toRect & fromRect
1675
- (g.top - u.top) / (g.left - u.left) === (c.top - u.top) / (c.left - u.left) && (l = $s(g, p, f, o.options)), Ii(u, c) || (d.prevFromRect = c, d.prevToRect = u, l || (l = o.options.animation), o.animate(d, g, u, l)), l && (r = !0, s = Math.max(s, l), clearTimeout(d.animationResetTimer), d.animationResetTimer = setTimeout(function() {
1673
+ var l = 0, d = a.target, u = d.fromRect, c = W(d), p = d.prevFromRect, f = d.prevToRect, g = a.rect, b = ae(d, !0);
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 = $s(g, p, f, o.options)), Ii(c, u) || (d.prevFromRect = u, d.prevToRect = c, l || (l = o.options.animation), o.animate(d, g, c, l)), l && (r = !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), r ? t = setTimeout(function() {
@@ -1682,8 +1682,8 @@ function xs() {
1682
1682
  animate: function(n, o, r, s) {
1683
1683
  if (s) {
1684
1684
  v(n, "transition", ""), v(n, "transform", "");
1685
- var a = ae(this.el), l = a && a.a, d = a && a.d, c = (o.left - r.left) / (l || 1), u = (o.top - r.top) / (d || 1);
1686
- n.animatingX = !!c, n.animatingY = !!u, v(n, "transform", "translate3d(" + c + "px," + u + "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() {
1685
+ var a = ae(this.el), l = a && a.a, d = a && a.d, u = (o.left - r.left) / (l || 1), c = (o.top - r.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
  }
@@ -1749,13 +1749,13 @@ var te = [], Ni = {
1749
1749
  }
1750
1750
  };
1751
1751
  function Ss(i) {
1752
- var t = i.sortable, e = i.rootEl, n = i.name, o = i.targetEl, r = i.cloneEl, s = i.toEl, a = i.fromEl, l = i.oldIndex, d = i.newIndex, c = i.oldDraggableIndex, u = i.newDraggableIndex, p = i.originalEvent, f = i.putSortable, g = i.extraEventProperties;
1752
+ var t = i.sortable, e = i.rootEl, n = i.name, o = i.targetEl, r = 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);
1755
- window.CustomEvent && !Rt && !Le ? b = new CustomEvent(n, {
1755
+ window.CustomEvent && !Lt && !Re ? b = new CustomEvent(n, {
1756
1756
  bubbles: !0,
1757
1757
  cancelable: !0
1758
- }) : (b = document.createEvent("Event"), b.initEvent(n, !0, !0)), b.to = s || e, b.from = a || e, b.item = o || e, b.clone = r, b.oldIndex = l, b.newIndex = d, b.oldDraggableIndex = c, b.newDraggableIndex = u, b.originalEvent = p, b.pullMode = f ? f.lastPutMode : void 0;
1758
+ }) : (b = document.createEvent("Event"), b.initEvent(n, !0, !0)), b.to = s || e, b.from = a || e, b.item = o || e, b.clone = r, b.oldIndex = l, b.newIndex = d, b.oldDraggableIndex = u, b.newDraggableIndex = c, b.originalEvent = p, b.pullMode = f ? f.lastPutMode : void 0;
1759
1759
  var U = St(St({}, g), Me.getEventProperties(n, t));
1760
1760
  for (var st in U)
1761
1761
  b[st] = U[st];
@@ -1766,11 +1766,11 @@ var _s = ["evt"], ht = function(t, e) {
1766
1766
  var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o = n.evt, r = ms(n, _s);
1767
1767
  Me.pluginEvent.bind(w)(t, e, St({
1768
1768
  dragEl: h,
1769
- parentEl: Z,
1769
+ parentEl: z,
1770
1770
  ghostEl: E,
1771
1771
  rootEl: V,
1772
1772
  nextEl: Yt,
1773
- lastDownEl: Ze,
1773
+ lastDownEl: ze,
1774
1774
  cloneEl: k,
1775
1775
  cloneHidden: Nt,
1776
1776
  dragStarted: ge,
@@ -1810,24 +1810,24 @@ function at(i) {
1810
1810
  newDraggableIndex: It
1811
1811
  }, i));
1812
1812
  }
1813
- var h, Z, E, V, Yt, Ze, k, Nt, se, yt, Ee, It, He, et, ne = !1, Qe = !1, ti = [], qt, wt, Hi, Vi, In, Nn, ge, ee, $e, Se = !1, Ve = !1, ze, rt, Bi = [], Xi = !1, ei = [], _i = typeof document < "u", Be = un, Hn = Le || Rt ? "cssFloat" : "float", As = _i && !po && !un && "draggable" in document.createElement("div"), xo = function() {
1813
+ var h, z, E, V, Yt, ze, k, Nt, se, yt, Ee, It, He, et, ne = !1, Qe = !1, ti = [], qt, wt, Hi, Vi, In, Nn, ge, ee, $e, Se = !1, Ve = !1, Ze, rt, Bi = [], Xi = !1, ei = [], _i = typeof document < "u", Be = cn, Hn = Re || Lt ? "cssFloat" : "float", As = _i && !po && !cn && "draggable" in document.createElement("div"), xo = function() {
1814
1814
  if (_i) {
1815
- if (Rt)
1815
+ if (Lt)
1816
1816
  return !1;
1817
1817
  var i = document.createElement("x");
1818
1818
  return i.style.cssText = "pointer-events:auto", i.style.pointerEvents === "auto";
1819
1819
  }
1820
1820
  }(), Eo = function(t, e) {
1821
- var n = v(t), o = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), r = de(t, 0, e), s = de(t, 1, e), a = r && v(r), l = s && v(s), d = a && parseInt(a.marginLeft) + parseInt(a.marginRight) + W(r).width, c = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + W(s).width;
1821
+ var n = v(t), o = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), r = de(t, 0, e), s = de(t, 1, e), a = r && v(r), l = s && v(s), d = a && parseInt(a.marginLeft) + parseInt(a.marginRight) + W(r).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")
1825
1825
  return n.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
1826
1826
  if (r && a.float && a.float !== "none") {
1827
- var u = a.float === "left" ? "left" : "right";
1828
- return s && (l.clear === "both" || l.clear === u) ? "vertical" : "horizontal";
1827
+ var c = a.float === "left" ? "left" : "right";
1828
+ return s && (l.clear === "both" || l.clear === c) ? "vertical" : "horizontal";
1829
1829
  }
1830
- return r && (a.display === "block" || a.display === "flex" || a.display === "table" || a.display === "grid" || d >= o && n[Hn] === "none" || s && n[Hn] === "none" && d + c > o) ? "vertical" : "horizontal";
1830
+ return r && (a.display === "block" || a.display === "flex" || a.display === "table" || a.display === "grid" || d >= o && n[Hn] === "none" || s && n[Hn] === "none" && d + u > o) ? "vertical" : "horizontal";
1831
1831
  }, Cs = function(t, e, n) {
1832
1832
  var o = n ? t.left : t.top, r = 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 o === a || r === l || o + s / 2 === a + d / 2;
@@ -1835,7 +1835,7 @@ var h, Z, E, V, Yt, Ze, k, Nt, se, yt, Ee, It, He, et, ne = !1, Qe = !1, ti = []
1835
1835
  var n;
1836
1836
  return ti.some(function(o) {
1837
1837
  var r = o[ft].options.emptyInsertThreshold;
1838
- if (!(!r || cn(o))) {
1838
+ if (!(!r || un(o))) {
1839
1839
  var s = W(o), a = t >= s.left - r && t <= s.right + r, l = e >= s.top - r && e <= s.bottom + r;
1840
1840
  if (a && l)
1841
1841
  return n = o;
@@ -1843,16 +1843,16 @@ var h, Z, E, V, Yt, Ze, k, Nt, se, yt, Ee, It, He, et, ne = !1, Qe = !1, ti = []
1843
1843
  }), n;
1844
1844
  }, $o = function(t) {
1845
1845
  function e(r, s) {
1846
- return function(a, l, d, c) {
1847
- var u = a.options.group.name && l.options.group.name && a.options.group.name === l.options.group.name;
1848
- if (r == null && (s || u))
1846
+ return function(a, l, d, u) {
1847
+ var c = a.options.group.name && l.options.group.name && a.options.group.name === l.options.group.name;
1848
+ if (r == null && (s || c))
1849
1849
  return !0;
1850
1850
  if (r == null || r === !1)
1851
1851
  return !1;
1852
1852
  if (s && r === "clone")
1853
1853
  return r;
1854
1854
  if (typeof r == "function")
1855
- return e(r(a, l, d, c), s)(a, l, d, c);
1855
+ return e(r(a, l, d, u), s)(a, l, d, u);
1856
1856
  var p = (s ? a : l).options.group.name;
1857
1857
  return r === !0 || typeof r == "string" && r === p || r.join && r.indexOf(p) > -1;
1858
1858
  };
@@ -1931,7 +1931,7 @@ function w(i, t) {
1931
1931
  y: 0
1932
1932
  },
1933
1933
  // Disabled on Safari: #1571; Enabled on Safari IOS: #2244
1934
- supportPointer: w.supportPointer !== !1 && "PointerEvent" in window && (!we || un),
1934
+ supportPointer: w.supportPointer !== !1 && "PointerEvent" in window && (!we || cn),
1935
1935
  emptyInsertThreshold: 5
1936
1936
  };
1937
1937
  Me.initializePlugins(this, i, e);
@@ -1953,10 +1953,10 @@ w.prototype = /** @lends Sortable.prototype */
1953
1953
  },
1954
1954
  _onTapStart: function(t) {
1955
1955
  if (t.cancelable) {
1956
- var e = this, n = this.el, o = this.options, r = o.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, c = o.filter;
1957
- if (Hs(n), !h && !(/mousedown|pointerdown/.test(s) && t.button !== 0 || o.disabled) && !d.isContentEditable && !(!this.nativeDraggable && we && l && l.tagName.toUpperCase() === "SELECT") && (l = xt(l, o.draggable, n, !1), !(l && l.animated) && Ze !== l)) {
1958
- if (se = bt(l), Ee = bt(l, o.draggable), typeof c == "function") {
1959
- if (c.call(this, t, l, this)) {
1956
+ var e = this, n = this.el, o = this.options, r = o.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 = o.filter;
1957
+ if (Hs(n), !h && !(/mousedown|pointerdown/.test(s) && t.button !== 0 || o.disabled) && !d.isContentEditable && !(!this.nativeDraggable && we && l && l.tagName.toUpperCase() === "SELECT") && (l = xt(l, o.draggable, n, !1), !(l && l.animated) && ze !== l)) {
1958
+ if (se = bt(l), Ee = bt(l, o.draggable), typeof u == "function") {
1959
+ if (u.call(this, t, l, this)) {
1960
1960
  at({
1961
1961
  sortable: e,
1962
1962
  rootEl: d,
@@ -1969,11 +1969,11 @@ w.prototype = /** @lends Sortable.prototype */
1969
1969
  }), r && t.preventDefault();
1970
1970
  return;
1971
1971
  }
1972
- } else if (c && (c = c.split(",").some(function(u) {
1973
- if (u = xt(d, u.trim(), n, !1), u)
1972
+ } else if (u && (u = u.split(",").some(function(c) {
1973
+ if (c = xt(d, c.trim(), n, !1), c)
1974
1974
  return at({
1975
1975
  sortable: e,
1976
- rootEl: u,
1976
+ rootEl: c,
1977
1977
  name: "filter",
1978
1978
  targetEl: l,
1979
1979
  fromEl: n,
@@ -1981,7 +1981,7 @@ w.prototype = /** @lends Sortable.prototype */
1981
1981
  }), ht("filter", e, {
1982
1982
  evt: t
1983
1983
  }), !0;
1984
- }), c)) {
1984
+ }), u)) {
1985
1985
  r && t.preventDefault();
1986
1986
  return;
1987
1987
  }
@@ -1993,7 +1993,7 @@ w.prototype = /** @lends Sortable.prototype */
1993
1993
  var o = this, r = o.el, s = o.options, a = r.ownerDocument, l;
1994
1994
  if (n && !h && n.parentNode === r) {
1995
1995
  var d = W(n);
1996
- if (V = r, h = n, Z = h.parentNode, Yt = h.nextSibling, Ze = n, He = s.group, w.dragged = h, qt = {
1996
+ if (V = r, h = n, z = h.parentNode, Yt = h.nextSibling, ze = n, He = s.group, w.dragged = h, qt = {
1997
1997
  target: h,
1998
1998
  clientX: (e || t).clientX,
1999
1999
  clientY: (e || t).clientY
@@ -2009,11 +2009,11 @@ w.prototype = /** @lends Sortable.prototype */
2009
2009
  name: "choose",
2010
2010
  originalEvent: t
2011
2011
  }), mt(h, s.chosenClass, !0);
2012
- }, s.ignore.split(",").forEach(function(c) {
2013
- mo(h, c.trim(), ki);
2012
+ }, s.ignore.split(",").forEach(function(u) {
2013
+ mo(h, u.trim(), ki);
2014
2014
  }), C(a, "dragover", Xt), C(a, "mousemove", Xt), C(a, "touchmove", Xt), s.supportPointer ? (C(a, "pointerup", o._onDrop), !this.nativeDraggable && C(a, "pointercancel", o._onDrop)) : (C(a, "mouseup", o._onDrop), C(a, "touchend", o._onDrop), C(a, "touchcancel", o._onDrop)), On && this.nativeDraggable && (this.options.touchStartThreshold = 4, h.draggable = !0), ht("delayStart", this, {
2015
2015
  evt: t
2016
- }), s.delay && (!s.delayOnTouchOnly || e) && (!this.nativeDraggable || !(Le || Rt))) {
2016
+ }), s.delay && (!s.delayOnTouchOnly || e) && (!this.nativeDraggable || !(Re || Lt))) {
2017
2017
  if (w.eventCanceled) {
2018
2018
  this._onDrop();
2019
2019
  return;
@@ -2081,23 +2081,23 @@ w.prototype = /** @lends Sortable.prototype */
2081
2081
  },
2082
2082
  _onTouchMove: function(t) {
2083
2083
  if (qt) {
2084
- var e = this.options, n = e.fallbackTolerance, o = e.fallbackOffset, r = t.touches ? t.touches[0] : t, s = E && ae(E, !0), a = E && s && s.a, l = E && s && s.d, d = Be && rt && Mn(rt), c = (r.clientX - qt.clientX + o.x) / (a || 1) + (d ? d[0] - Bi[0] : 0) / (a || 1), u = (r.clientY - qt.clientY + o.y) / (l || 1) + (d ? d[1] - Bi[1] : 0) / (l || 1);
2084
+ var e = this.options, n = e.fallbackTolerance, o = e.fallbackOffset, r = t.touches ? t.touches[0] : t, s = E && ae(E, !0), a = E && s && s.a, l = E && s && s.d, d = Be && rt && Mn(rt), u = (r.clientX - qt.clientX + o.x) / (a || 1) + (d ? d[0] - Bi[0] : 0) / (a || 1), c = (r.clientY - qt.clientY + o.y) / (l || 1) + (d ? d[1] - Bi[1] : 0) / (l || 1);
2085
2085
  if (!w.active && !ne) {
2086
2086
  if (n && Math.max(Math.abs(r.clientX - this._lastX), Math.abs(r.clientY - this._lastY)) < n)
2087
2087
  return;
2088
2088
  this._onDragStart(t, !0);
2089
2089
  }
2090
2090
  if (E) {
2091
- s ? (s.e += c - (Hi || 0), s.f += u - (Vi || 0)) : s = {
2091
+ s ? (s.e += u - (Hi || 0), s.f += c - (Vi || 0)) : s = {
2092
2092
  a: 1,
2093
2093
  b: 0,
2094
2094
  c: 0,
2095
2095
  d: 1,
2096
- e: c,
2097
- f: u
2096
+ e: u,
2097
+ f: c
2098
2098
  };
2099
2099
  var p = "matrix(".concat(s.a, ",").concat(s.b, ",").concat(s.c, ",").concat(s.d, ",").concat(s.e, ",").concat(s.f, ")");
2100
- v(E, "webkitTransform", p), v(E, "mozTransform", p), v(E, "msTransform", p), v(E, "transform", p), Hi = c, Vi = u, wt = r;
2100
+ v(E, "webkitTransform", p), v(E, "mozTransform", p), v(E, "msTransform", p), v(E, "transform", p), Hi = u, Vi = c, wt = r;
2101
2101
  }
2102
2102
  t.cancelable && t.preventDefault();
2103
2103
  }
@@ -2130,17 +2130,17 @@ w.prototype = /** @lends Sortable.prototype */
2130
2130
  },
2131
2131
  // Returns true - if no further action is needed (either inserted or another condition)
2132
2132
  _onDragOver: function(t) {
2133
- var e = this.el, n = t.target, o, r, s, a = this.options, l = a.group, d = w.active, c = He === l, u = a.sort, p = et || d, f, g = this, b = !1;
2133
+ var e = this.el, n = t.target, o, r, s, a = this.options, l = a.group, d = w.active, u = He === l, c = a.sort, p = et || d, f, g = this, b = !1;
2134
2134
  if (Xi) return;
2135
2135
  function N(gt, Ut) {
2136
2136
  ht(gt, g, St({
2137
2137
  evt: t,
2138
- isOwner: c,
2138
+ isOwner: u,
2139
2139
  axis: f ? "vertical" : "horizontal",
2140
2140
  revert: s,
2141
2141
  dragRect: o,
2142
2142
  targetRect: r,
2143
- canSort: u,
2143
+ canSort: c,
2144
2144
  fromSortable: p,
2145
2145
  target: n,
2146
2146
  completed: U,
@@ -2156,7 +2156,7 @@ w.prototype = /** @lends Sortable.prototype */
2156
2156
  function U(gt) {
2157
2157
  return N("dragOverCompleted", {
2158
2158
  insertion: gt
2159
- }), gt && (c ? 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() {
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
2161
  }), g !== p && (p.animateAll(), p._ignoreWhileAnimating = null)), (n === h && !h.animated || n === e && !n.animated) && (ee = null), !a.dragoverBubble && !t.rootEl && n !== document && (h.parentNode[ft]._isOutsideThisEl(t.target), !gt && Xt(t)), !a.dragoverBubble && t.stopPropagation && t.stopPropagation(), b = !0;
2162
2162
  }
@@ -2173,41 +2173,41 @@ w.prototype = /** @lends Sortable.prototype */
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
2175
  return U(!1);
2176
- if (Qe = !1, d && !a.disabled && (c ? u || (s = Z !== V) : et === this || (this.lastPutMode = He.checkPull(this, d, h, t)) && l.checkPut(this, d, h, t))) {
2176
+ if (Qe = !1, d && !a.disabled && (u ? c || (s = z !== V) : et === this || (this.lastPutMode = He.checkPull(this, d, h, t)) && l.checkPut(this, d, h, t))) {
2177
2177
  if (f = this._getDirection(t, n) === "vertical", o = W(h), N("dragOverValid"), w.eventCanceled) return b;
2178
2178
  if (s)
2179
- return Z = V, J(), this._hideClone(), N("revert"), w.eventCanceled || (Yt ? V.insertBefore(h, Yt) : V.appendChild(h)), U(!0);
2180
- var K = cn(e, a.draggable);
2181
- if (!K || Ls(t, f, this) && !K.animated) {
2179
+ return z = V, J(), this._hideClone(), N("revert"), w.eventCanceled || (Yt ? V.insertBefore(h, Yt) : V.appendChild(h)), U(!0);
2180
+ var K = un(e, a.draggable);
2181
+ if (!K || Rs(t, f, this) && !K.animated) {
2182
2182
  if (K === h)
2183
2183
  return U(!1);
2184
2184
  if (K && e === t.target && (n = K), n && (r = W(n)), ke(V, e, h, o, n, r, t, !!n) !== !1)
2185
- return J(), K && K.nextSibling ? e.insertBefore(h, K.nextSibling) : e.appendChild(h), Z = e, st(), U(!0);
2186
- } else if (K && Rs(t, f, this)) {
2185
+ return J(), K && K.nextSibling ? e.insertBefore(h, K.nextSibling) : e.appendChild(h), z = e, st(), U(!0);
2186
+ } else if (K && Ls(t, f, this)) {
2187
2187
  var $ = de(e, 0, a, !0);
2188
2188
  if ($ === h)
2189
2189
  return U(!1);
2190
2190
  if (n = $, r = W(n), ke(V, e, h, o, n, r, t, !1) !== !1)
2191
- return J(), e.insertBefore(h, $), Z = e, st(), U(!0);
2191
+ return J(), e.insertBefore(h, $), z = e, st(), U(!0);
2192
2192
  } else if (n.parentNode === e) {
2193
2193
  r = W(n);
2194
- var m = 0, _, M = h.parentNode !== e, R = !Cs(h.animated && h.toRect || o, n.animated && n.toRect || r, f), q = f ? "top" : "left", X = Ln(n, "top", "top") || Ln(h, "top", "top"), H = X ? X.scrollTop : void 0;
2195
- ee !== n && (_ = r[q], Se = !1, Ve = !R && a.invertSwap || M), m = Ms(t, n, r, f, R ? 1 : a.swapThreshold, a.invertedSwapThreshold == null ? a.swapThreshold : a.invertedSwapThreshold, Ve, ee === n);
2196
- var L;
2194
+ var m = 0, _, M = h.parentNode !== e, L = !Cs(h.animated && h.toRect || o, n.animated && n.toRect || r, f), q = f ? "top" : "left", X = Rn(n, "top", "top") || Rn(h, "top", "top"), H = X ? X.scrollTop : void 0;
2195
+ ee !== n && (_ = r[q], Se = !1, Ve = !L && a.invertSwap || M), m = Ms(t, n, r, f, L ? 1 : a.swapThreshold, a.invertedSwapThreshold == null ? a.swapThreshold : a.invertedSwapThreshold, Ve, ee === n);
2196
+ var R;
2197
2197
  if (m !== 0) {
2198
- var z = bt(h);
2198
+ var Z = bt(h);
2199
2199
  do
2200
- z -= m, L = Z.children[z];
2201
- while (L && (v(L, "display") === "none" || L === E));
2200
+ Z -= m, R = z.children[Z];
2201
+ while (R && (v(R, "display") === "none" || R === E));
2202
2202
  }
2203
- if (m === 0 || L === n)
2203
+ if (m === 0 || R === n)
2204
2204
  return U(!1);
2205
2205
  ee = n, $e = m;
2206
2206
  var dt = n.nextElementSibling, tt = !1;
2207
2207
  tt = m === 1;
2208
- var ut = ke(V, e, h, o, n, r, t, tt);
2209
- if (ut !== !1)
2210
- return (ut === 1 || ut === -1) && (tt = ut === 1), Xi = !0, setTimeout(Os, 30), J(), tt && !dt ? e.appendChild(h) : n.parentNode.insertBefore(h, tt ? dt : n), X && bo(X, 0, H - X.scrollTop), Z = h.parentNode, _ !== void 0 && !Ve && (ze = Math.abs(_ - W(n)[q])), st(), U(!0);
2208
+ var ct = ke(V, e, h, o, n, r, t, tt);
2209
+ if (ct !== !1)
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 && bo(X, 0, H - X.scrollTop), z = h.parentNode, _ !== void 0 && !Ve && (Ze = Math.abs(_ - W(n)[q])), st(), U(!0);
2211
2211
  }
2212
2212
  if (e.contains(h))
2213
2213
  return U(!1);
@@ -2226,58 +2226,58 @@ w.prototype = /** @lends Sortable.prototype */
2226
2226
  var e = this.el, n = this.options;
2227
2227
  if (yt = bt(h), It = bt(h, n.draggable), ht("drop", this, {
2228
2228
  evt: t
2229
- }), Z = h && h.parentNode, yt = bt(h), It = bt(h, n.draggable), w.eventCanceled) {
2229
+ }), z = h && h.parentNode, yt = bt(h), It = bt(h, n.draggable), w.eventCanceled) {
2230
2230
  this._nulling();
2231
2231
  return;
2232
2232
  }
2233
- ne = !1, Ve = !1, Se = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Yi(this.cloneId), Yi(this._dragStartId), this.nativeDraggable && (A(document, "drop", this), A(e, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), we && v(document.body, "user-select", ""), v(h, "transform", ""), t && (ge && (t.cancelable && t.preventDefault(), !n.dropBubble && t.stopPropagation()), E && E.parentNode && E.parentNode.removeChild(E), (V === Z || et && et.lastPutMode !== "clone") && k && k.parentNode && k.parentNode.removeChild(k), h && (this.nativeDraggable && A(h, "dragend", this), ki(h), h.style["will-change"] = "", ge && !ne && mt(h, et ? et.options.ghostClass : this.options.ghostClass, !1), mt(h, this.options.chosenClass, !1), at({
2233
+ ne = !1, Ve = !1, Se = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Yi(this.cloneId), Yi(this._dragStartId), this.nativeDraggable && (A(document, "drop", this), A(e, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), we && v(document.body, "user-select", ""), v(h, "transform", ""), t && (ge && (t.cancelable && t.preventDefault(), !n.dropBubble && t.stopPropagation()), E && E.parentNode && E.parentNode.removeChild(E), (V === z || et && et.lastPutMode !== "clone") && k && k.parentNode && k.parentNode.removeChild(k), h && (this.nativeDraggable && A(h, "dragend", this), ki(h), h.style["will-change"] = "", ge && !ne && 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
- toEl: Z,
2236
+ toEl: z,
2237
2237
  newIndex: null,
2238
2238
  newDraggableIndex: null,
2239
2239
  originalEvent: t
2240
- }), V !== Z ? (yt >= 0 && (at({
2241
- rootEl: Z,
2240
+ }), V !== z ? (yt >= 0 && (at({
2241
+ rootEl: z,
2242
2242
  name: "add",
2243
- toEl: Z,
2243
+ toEl: z,
2244
2244
  fromEl: V,
2245
2245
  originalEvent: t
2246
2246
  }), at({
2247
2247
  sortable: this,
2248
2248
  name: "remove",
2249
- toEl: Z,
2249
+ toEl: z,
2250
2250
  originalEvent: t
2251
2251
  }), at({
2252
- rootEl: Z,
2252
+ rootEl: z,
2253
2253
  name: "sort",
2254
- toEl: Z,
2254
+ toEl: z,
2255
2255
  fromEl: V,
2256
2256
  originalEvent: t
2257
2257
  }), at({
2258
2258
  sortable: this,
2259
2259
  name: "sort",
2260
- toEl: Z,
2260
+ toEl: z,
2261
2261
  originalEvent: t
2262
2262
  })), et && et.save()) : yt !== se && yt >= 0 && (at({
2263
2263
  sortable: this,
2264
2264
  name: "update",
2265
- toEl: Z,
2265
+ toEl: z,
2266
2266
  originalEvent: t
2267
2267
  }), at({
2268
2268
  sortable: this,
2269
2269
  name: "sort",
2270
- toEl: Z,
2270
+ toEl: z,
2271
2271
  originalEvent: t
2272
2272
  })), w.active && ((yt == null || yt === -1) && (yt = se, It = Ee), at({
2273
2273
  sortable: this,
2274
2274
  name: "end",
2275
- toEl: Z,
2275
+ toEl: z,
2276
2276
  originalEvent: t
2277
2277
  }), this.save()))), this._nulling();
2278
2278
  },
2279
2279
  _nulling: function() {
2280
- ht("nulling", this), V = h = Z = E = Yt = k = Ze = Nt = qt = wt = ge = yt = It = se = Ee = ee = $e = et = He = w.dragged = w.ghost = w.clone = w.active = null, ei.forEach(function(t) {
2280
+ ht("nulling", this), V = h = z = E = Yt = k = ze = Nt = qt = wt = ge = yt = It = se = Ee = ee = $e = et = He = w.dragged = w.ghost = w.clone = w.active = null, ei.forEach(function(t) {
2281
2281
  t.checked = !0;
2282
2282
  }), ei.length = Hi = Vi = 0;
2283
2283
  },
@@ -2378,11 +2378,11 @@ function Ps(i) {
2378
2378
  i.dataTransfer && (i.dataTransfer.dropEffect = "move"), i.cancelable && i.preventDefault();
2379
2379
  }
2380
2380
  function ke(i, t, e, n, o, r, s, a) {
2381
- var l, d = i[ft], c = d.options.onMove, u;
2382
- return window.CustomEvent && !Rt && !Le ? l = new CustomEvent("move", {
2381
+ var l, d = i[ft], u = d.options.onMove, c;
2382
+ return window.CustomEvent && !Lt && !Re ? l = new CustomEvent("move", {
2383
2383
  bubbles: !0,
2384
2384
  cancelable: !0
2385
- }) : (l = document.createEvent("Event"), l.initEvent("move", !0, !0)), l.to = t, l.from = i, l.dragged = e, l.draggedRect = n, l.related = o || t, l.relatedRect = r || W(t), l.willInsertAfter = a, l.originalEvent = s, i.dispatchEvent(l), c && (u = c.call(d, l, s)), u;
2385
+ }) : (l = document.createEvent("Event"), l.initEvent("move", !0, !0)), l.to = t, l.from = i, l.dragged = e, l.draggedRect = n, l.related = o || t, l.relatedRect = r || W(t), l.willInsertAfter = a, l.originalEvent = s, i.dispatchEvent(l), u && (c = u.call(d, l, s)), c;
2386
2386
  }
2387
2387
  function ki(i) {
2388
2388
  i.draggable = !1;
@@ -2390,26 +2390,26 @@ function ki(i) {
2390
2390
  function Os() {
2391
2391
  Xi = !1;
2392
2392
  }
2393
- function Rs(i, t, e) {
2393
+ function Ls(i, t, e) {
2394
2394
  var n = W(de(e.el, 0, e.options, !0)), o = wo(e.el, e.options, E), r = 10;
2395
2395
  return t ? i.clientX < o.left - r || i.clientY < n.top && i.clientX < n.right : i.clientY < o.top - r || i.clientY < n.bottom && i.clientX < n.left;
2396
2396
  }
2397
- function Ls(i, t, e) {
2398
- var n = W(cn(e.el, e.options.draggable)), o = wo(e.el, e.options, E), r = 10;
2397
+ function Rs(i, t, e) {
2398
+ var n = W(un(e.el, e.options.draggable)), o = wo(e.el, e.options, E), r = 10;
2399
2399
  return t ? i.clientX > o.right + r || i.clientY > n.bottom && i.clientX > n.left : i.clientY > o.bottom + r || i.clientX > n.right && i.clientY > n.top;
2400
2400
  }
2401
2401
  function Ms(i, t, e, n, o, r, s, a) {
2402
- var l = n ? i.clientY : i.clientX, d = n ? e.height : e.width, c = n ? e.top : e.left, u = n ? e.bottom : e.right, p = !1;
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
- if (a && ze < d * o) {
2405
- if (!Se && ($e === 1 ? l > c + d * r / 2 : l < u - d * r / 2) && (Se = !0), Se)
2404
+ if (a && Ze < d * o) {
2405
+ if (!Se && ($e === 1 ? l > u + d * r / 2 : l < c - d * r / 2) && (Se = !0), Se)
2406
2406
  p = !0;
2407
- else if ($e === 1 ? l < c + ze : l > u - ze)
2407
+ else if ($e === 1 ? l < u + Ze : l > c - Ze)
2408
2408
  return -$e;
2409
- } else if (l > c + d * (1 - o) / 2 && l < u - d * (1 - o) / 2)
2409
+ } else if (l > u + d * (1 - o) / 2 && l < c - d * (1 - o) / 2)
2410
2410
  return Is(t);
2411
2411
  }
2412
- return p = p || s, p && (l < c + d * r / 2 || l > u - d * r / 2) ? l > c + d / 2 ? 1 : -1 : 0;
2412
+ return p = p || s, p && (l < u + d * r / 2 || l > c - d * r / 2) ? l > u + d / 2 ? 1 : -1 : 0;
2413
2413
  }
2414
2414
  function Is(i) {
2415
2415
  return bt(h) < bt(i) ? 1 : -1;
@@ -2504,7 +2504,7 @@ function Vs() {
2504
2504
  },
2505
2505
  _handleAutoScroll: function(e, n) {
2506
2506
  var o = this, r = (e.touches ? e.touches[0] : e).clientX, s = (e.touches ? e.touches[0] : e).clientY, a = document.elementFromPoint(r, s);
2507
- if (ii = e, n || this.options.forceAutoScrollFallback || Le || Rt || we) {
2507
+ if (ii = e, n || this.options.forceAutoScrollFallback || Re || Lt || we) {
2508
2508
  ji(e, this.options, a, n);
2509
2509
  var l = Vt(a, !0);
2510
2510
  Gi && (!ye || r !== Ui || s !== Fi) && (ye && Vn(), ye = setInterval(function() {
@@ -2534,23 +2534,23 @@ function Vn() {
2534
2534
  }
2535
2535
  var ji = yo(function(i, t, e, n) {
2536
2536
  if (t.scroll) {
2537
- var o = (i.touches ? i.touches[0] : i).clientX, r = (i.touches ? i.touches[0] : i).clientY, s = t.scrollSensitivity, a = t.scrollSpeed, l = $t(), d = !1, c;
2538
- Wi !== e && (Wi = e, Xe(), me = t.scroll, c = t.scrollFn, me === !0 && (me = Vt(e, !0)));
2539
- var u = 0, p = me;
2537
+ var o = (i.touches ? i.touches[0] : i).clientX, r = (i.touches ? i.touches[0] : i).clientY, s = t.scrollSensitivity, a = t.scrollSpeed, l = $t(), d = !1, u;
2538
+ Wi !== e && (Wi = e, Xe(), me = t.scroll, u = t.scrollFn, me === !0 && (me = Vt(e, !0)));
2539
+ var c = 0, p = me;
2540
2540
  do {
2541
- var f = p, g = W(f), b = g.top, N = g.bottom, J = g.left, U = g.right, st = g.width, K = g.height, $ = void 0, m = void 0, _ = f.scrollWidth, M = f.scrollHeight, R = v(f), q = f.scrollLeft, X = f.scrollTop;
2542
- f === l ? ($ = st < _ && (R.overflowX === "auto" || R.overflowX === "scroll" || R.overflowX === "visible"), m = K < M && (R.overflowY === "auto" || R.overflowY === "scroll" || R.overflowY === "visible")) : ($ = st < _ && (R.overflowX === "auto" || R.overflowX === "scroll"), m = K < M && (R.overflowY === "auto" || R.overflowY === "scroll"));
2543
- var H = $ && (Math.abs(U - o) <= s && q + st < _) - (Math.abs(J - o) <= s && !!q), L = m && (Math.abs(N - r) <= s && X + K < M) - (Math.abs(b - r) <= s && !!X);
2544
- if (!Y[u])
2545
- for (var z = 0; z <= u; z++)
2546
- Y[z] || (Y[z] = {});
2547
- (Y[u].vx != H || Y[u].vy != L || Y[u].el !== f) && (Y[u].el = f, Y[u].vx = H, Y[u].vy = L, clearInterval(Y[u].pid), (H != 0 || L != 0) && (d = !0, Y[u].pid = setInterval((function() {
2541
+ var f = p, g = W(f), b = g.top, N = g.bottom, J = g.left, U = g.right, st = g.width, K = g.height, $ = void 0, m = void 0, _ = f.scrollWidth, M = f.scrollHeight, L = v(f), q = f.scrollLeft, X = f.scrollTop;
2542
+ f === l ? ($ = st < _ && (L.overflowX === "auto" || L.overflowX === "scroll" || L.overflowX === "visible"), m = K < M && (L.overflowY === "auto" || L.overflowY === "scroll" || L.overflowY === "visible")) : ($ = st < _ && (L.overflowX === "auto" || L.overflowX === "scroll"), m = K < M && (L.overflowY === "auto" || L.overflowY === "scroll"));
2543
+ var H = $ && (Math.abs(U - o) <= s && q + st < _) - (Math.abs(J - o) <= s && !!q), R = m && (Math.abs(N - r) <= s && X + K < M) - (Math.abs(b - r) <= s && !!X);
2544
+ if (!Y[c])
2545
+ for (var Z = 0; Z <= c; Z++)
2546
+ Y[Z] || (Y[Z] = {});
2547
+ (Y[c].vx != H || Y[c].vy != R || Y[c].el !== f) && (Y[c].el = f, Y[c].vx = H, Y[c].vy = R, clearInterval(Y[c].pid), (H != 0 || R != 0) && (d = !0, Y[c].pid = setInterval((function() {
2548
2548
  n && this.layer === 0 && w.active._onTouchMove(ii);
2549
2549
  var dt = Y[this.layer].vy ? Y[this.layer].vy * a : 0, tt = Y[this.layer].vx ? Y[this.layer].vx * a : 0;
2550
- typeof c == "function" && c.call(w.dragged.parentNode[ft], tt, dt, i, ii, Y[this.layer].el) !== "continue" || bo(Y[this.layer].el, tt, dt);
2550
+ typeof u == "function" && u.call(w.dragged.parentNode[ft], tt, dt, i, ii, Y[this.layer].el) !== "continue" || bo(Y[this.layer].el, tt, dt);
2551
2551
  }).bind({
2552
- layer: u
2553
- }), 24))), u++;
2552
+ layer: c
2553
+ }), 24))), c++;
2554
2554
  } while (t.bubbleScroll && p !== l && (p = Vt(p, !1)));
2555
2555
  Gi = d;
2556
2556
  }
@@ -2559,8 +2559,8 @@ var ji = yo(function(i, t, e, n) {
2559
2559
  if (e) {
2560
2560
  var d = n || r;
2561
2561
  a();
2562
- var c = e.changedTouches && e.changedTouches.length ? e.changedTouches[0] : e, u = document.elementFromPoint(c.clientX, c.clientY);
2563
- l(), d && !d.el.contains(u) && (s("spill"), this.onSpill({
2562
+ var u = e.changedTouches && e.changedTouches.length ? e.changedTouches[0] : e, c = document.elementFromPoint(u.clientX, u.clientY);
2563
+ l(), d && !d.el.contains(c) && (s("spill"), this.onSpill({
2564
2564
  dragEl: o,
2565
2565
  putSortable: n
2566
2566
  }));
@@ -2613,18 +2613,18 @@ const Bs = (i) => {
2613
2613
  const l = n.getArray(), d = (
2614
2614
  /** @type {Element & {layer: import("ol/layer").Layer}} */
2615
2615
  i.item.querySelector("eox-layercontrol-layer").layer.get(o)
2616
- ), c = l.find((b) => b.get(o) === d), u = r.dataset.layer, p = l.find(
2617
- (b) => b.get(o) == u
2616
+ ), u = l.find((b) => b.get(o) === d), c = r.dataset.layer, p = l.find(
2617
+ (b) => b.get(o) == c
2618
2618
  );
2619
2619
  let f, g;
2620
2620
  for (f = 0; f < l.length; f++)
2621
- if (l[f] == c) {
2621
+ if (l[f] == u) {
2622
2622
  n.removeAt(f);
2623
2623
  break;
2624
2624
  }
2625
2625
  for (g = 0; g < l.length; g++)
2626
2626
  if (l[g] === p) {
2627
- f > g ? n.insertAt(g, c) : n.insertAt(g + 1, c);
2627
+ f > g ? n.insertAt(g, u) : n.insertAt(g + 1, u);
2628
2628
  break;
2629
2629
  }
2630
2630
  t.requestUpdate();
@@ -2684,14 +2684,14 @@ function Co(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 Zs(i, t) {
2687
+ function zs(i, t) {
2688
2688
  var o, r, s;
2689
2689
  return !i || !t ? void 0 : i.getLayers ? "group" : ((s = (o = t.getInteractions().getArray().filter((a) => a.freehand_ !== void 0).map((a) => a.source_)) == null ? void 0 : o.ol_uid) == null ? void 0 : s.includes(
2690
2690
  // @ts-expect-error TODO
2691
2691
  i.getSource ? (r = i.getSource()) == null ? void 0 : r.ol_uid : void 0
2692
2692
  )) ? "draw" : i.declutter_ !== void 0 ? "vector" : "raster";
2693
2693
  }
2694
- const zs = (i, t, e) => {
2694
+ const Zs = (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
2697
  (...o) => ps(n(...o), i)
@@ -2789,8 +2789,8 @@ function Ws(i, t) {
2789
2789
  if ((t.type === "style" || t.style) && n)
2790
2790
  e = n;
2791
2791
  else if ((l = (a = i.getSource()) == null ? void 0 : a.getTileUrlFunction) != null && l.call(a)) {
2792
- const c = new URL(i.getSource().getTileUrlFunction()([0, 0, 0]));
2793
- e = Object.fromEntries(c.searchParams.entries());
2792
+ const u = new URL(i.getSource().getTileUrlFunction()([0, 0, 0]));
2793
+ e = Object.fromEntries(u.searchParams.entries());
2794
2794
  } else return null;
2795
2795
  const o = To(
2796
2796
  ((d = t.schema) == null ? void 0 : d.properties) || t.schema,
@@ -2889,66 +2889,66 @@ var Bt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2889
2889
  function Oo(i) {
2890
2890
  return i && i.__esModule && Object.prototype.hasOwnProperty.call(i, "default") ? i.default : i;
2891
2891
  }
2892
- var Zi, Bn;
2892
+ var zi, Bn;
2893
2893
  function ia() {
2894
- if (Bn) return Zi;
2894
+ if (Bn) return zi;
2895
2895
  Bn = 1;
2896
- var i = "Expected a function", t = NaN, e = "[object Symbol]", n = /^\s+|\s+$/g, o = /^[-+]0x[0-9a-f]+$/i, r = /^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, c = l || d || Function("return this")(), u = Object.prototype, p = u.toString, f = Math.max, g = Math.min, b = function() {
2897
- return c.Date.now();
2896
+ var i = "Expected a function", t = NaN, e = "[object Symbol]", n = /^\s+|\s+$/g, o = /^[-+]0x[0-9a-f]+$/i, r = /^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() {
2897
+ return u.Date.now();
2898
2898
  };
2899
2899
  function N(m, _, M) {
2900
- var R, q, X, H, L, z, dt = 0, tt = !1, ut = !1, gt = !0;
2900
+ var L, 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
- _ = $(_) || 0, U(M) && (tt = !!M.leading, ut = "maxWait" in M, X = ut ? f($(M.maxWait) || 0, _) : X, gt = "trailing" in M ? !!M.trailing : gt);
2903
+ _ = $(_) || 0, U(M) && (tt = !!M.leading, ct = "maxWait" in M, X = ct ? f($(M.maxWait) || 0, _) : X, gt = "trailing" in M ? !!M.trailing : gt);
2904
2904
  function Ut(I) {
2905
- var ct = R, Lt = q;
2906
- return R = q = void 0, dt = I, H = m.apply(Lt, ct), H;
2905
+ var ut = L, Rt = q;
2906
+ return L = q = void 0, dt = I, H = m.apply(Rt, ut), H;
2907
2907
  }
2908
2908
  function Ie(I) {
2909
- return dt = I, L = setTimeout(jt, _), tt ? Ut(I) : H;
2909
+ return dt = I, R = setTimeout(jt, _), tt ? Ut(I) : H;
2910
2910
  }
2911
2911
  function Ft(I) {
2912
- var ct = I - z, Lt = I - dt, mn = _ - ct;
2913
- return ut ? g(mn, X - Lt) : mn;
2912
+ var ut = I - Z, Rt = I - dt, mn = _ - ut;
2913
+ return ct ? g(mn, X - Rt) : mn;
2914
2914
  }
2915
2915
  function _t(I) {
2916
- var ct = I - z, Lt = I - dt;
2917
- return z === void 0 || ct >= _ || ct < 0 || ut && Lt >= X;
2916
+ var ut = I - Z, Rt = I - dt;
2917
+ return Z === void 0 || ut >= _ || ut < 0 || ct && Rt >= X;
2918
2918
  }
2919
2919
  function jt() {
2920
2920
  var I = b();
2921
2921
  if (_t(I))
2922
2922
  return Ne(I);
2923
- L = setTimeout(jt, Ft(I));
2923
+ R = setTimeout(jt, Ft(I));
2924
2924
  }
2925
2925
  function Ne(I) {
2926
- return L = void 0, gt && R ? Ut(I) : (R = q = void 0, H);
2926
+ return R = void 0, gt && L ? Ut(I) : (L = q = void 0, H);
2927
2927
  }
2928
2928
  function Ai() {
2929
- L !== void 0 && clearTimeout(L), dt = 0, R = z = q = L = void 0;
2929
+ R !== void 0 && clearTimeout(R), dt = 0, L = Z = q = R = void 0;
2930
2930
  }
2931
2931
  function he() {
2932
- return L === void 0 ? H : Ne(b());
2932
+ return R === void 0 ? H : Ne(b());
2933
2933
  }
2934
2934
  function B() {
2935
- var I = b(), ct = _t(I);
2936
- if (R = arguments, q = this, z = I, ct) {
2937
- if (L === void 0)
2938
- return Ie(z);
2939
- if (ut)
2940
- return L = setTimeout(jt, _), Ut(z);
2935
+ var I = b(), ut = _t(I);
2936
+ if (L = arguments, q = this, Z = I, ut) {
2937
+ if (R === void 0)
2938
+ return Ie(Z);
2939
+ if (ct)
2940
+ return R = setTimeout(jt, _), Ut(Z);
2941
2941
  }
2942
- return L === void 0 && (L = setTimeout(jt, _)), H;
2942
+ return R === void 0 && (R = setTimeout(jt, _)), H;
2943
2943
  }
2944
2944
  return B.cancel = Ai, B.flush = he, B;
2945
2945
  }
2946
2946
  function J(m, _, M) {
2947
- var R = !0, q = !0;
2947
+ var L = !0, q = !0;
2948
2948
  if (typeof m != "function")
2949
2949
  throw new TypeError(i);
2950
- return U(M) && (R = "leading" in M ? !!M.leading : R, q = "trailing" in M ? !!M.trailing : q), N(m, _, {
2951
- leading: R,
2950
+ return U(M) && (L = "leading" in M ? !!M.leading : L, q = "trailing" in M ? !!M.trailing : q), N(m, _, {
2951
+ leading: L,
2952
2952
  maxWait: _,
2953
2953
  trailing: q
2954
2954
  });
@@ -2978,7 +2978,7 @@ function ia() {
2978
2978
  var M = r.test(m);
2979
2979
  return M || s.test(m) ? a(m.slice(2), M ? 2 : 8) : o.test(m) ? t : +m;
2980
2980
  }
2981
- return Zi = J, Zi;
2981
+ return zi = J, zi;
2982
2982
  }
2983
2983
  var na = ia();
2984
2984
  const kn = /* @__PURE__ */ Oo(na);
@@ -2989,7 +2989,7 @@ const kn = /* @__PURE__ */ Oo(na);
2989
2989
  */
2990
2990
  const Ue = (i) => i ?? O;
2991
2991
  var ni, oi;
2992
- class Ro extends lt {
2992
+ class Lo extends lt {
2993
2993
  constructor() {
2994
2994
  super();
2995
2995
  P(this, ni, qn`
@@ -3004,6 +3004,7 @@ class Ro extends lt {
3004
3004
  --cle-font-size: inherit;
3005
3005
  --cle-font-weight: inherit --cle-letter-spacing: inherit;
3006
3006
  --cle-letter-spacing-title: inherit;
3007
+ --cle-padding: 0;
3007
3008
  }
3008
3009
  `);
3009
3010
  P(this, oi, "");
@@ -3015,6 +3016,11 @@ class Ro extends lt {
3015
3016
  createRenderRoot() {
3016
3017
  return this.noShadow ? this : super.createRenderRoot();
3017
3018
  }
3019
+ firstUpdated() {
3020
+ this.layerLegend.width || new ResizeObserver(() => {
3021
+ this.offsetWidth !== this.layerLegend.width && (this.layerLegend.width = this.offsetWidth, this.requestUpdate());
3022
+ }).observe(this.renderRoot.querySelector(".legend-container"));
3023
+ }
3018
3024
  /**
3019
3025
  * Renders a Time Control for datetime options of a layer.
3020
3026
  */
@@ -3051,7 +3057,7 @@ class Ro extends lt {
3051
3057
  }
3052
3058
  }
3053
3059
  ni = new WeakMap(), oi = new WeakMap(), // Define static properties for the component
3054
- F(Ro, "properties", {
3060
+ F(Lo, "properties", {
3055
3061
  unstyled: { type: Boolean },
3056
3062
  noShadow: { type: Boolean },
3057
3063
  layerLegend: { attribute: !1 },
@@ -3059,10 +3065,10 @@ F(Ro, "properties", {
3059
3065
  });
3060
3066
  customElements.define(
3061
3067
  "eox-layercontrol-layer-legend",
3062
- Ro
3068
+ Lo
3063
3069
  );
3064
3070
  var At, le, De, Pe, Ki, ri, si;
3065
- class Lo extends lt {
3071
+ class Ro extends lt {
3066
3072
  constructor() {
3067
3073
  super();
3068
3074
  P(this, Pe);
@@ -3164,13 +3170,13 @@ At = new WeakMap(), le = new WeakMap(), De = new WeakMap(), Pe = new WeakSet(),
3164
3170
  Ki = function(e) {
3165
3171
  Qt(this, At, e.detail), this.layerConfig.type === "style" || this.layerConfig.style ? "setStyle" in this.layer || "updateStyleVariables" in this.layer ? qs(T(this, At), this.layer, this.layerConfig) : console.error(
3166
3172
  `Layer type ${this.layer.get("type") ?? ""} does not support styles configuration`
3167
- ) : Qt(this, De, zs(
3173
+ ) : Qt(this, De, Zs(
3168
3174
  T(this, At),
3169
3175
  T(this, De),
3170
3176
  this
3171
3177
  )), this.requestUpdate();
3172
3178
  }, ri = new WeakMap(), si = new WeakMap(), // Define static properties for the component
3173
- F(Lo, "properties", {
3179
+ F(Ro, "properties", {
3174
3180
  layer: { attribute: !1 },
3175
3181
  unstyled: { type: Boolean },
3176
3182
  noShadow: { type: Boolean },
@@ -3178,7 +3184,7 @@ F(Lo, "properties", {
3178
3184
  });
3179
3185
  customElements.define(
3180
3186
  "eox-layercontrol-layerconfig",
3181
- Lo
3187
+ Ro
3182
3188
  );
3183
3189
  var ai, Io, li, di;
3184
3190
  class Mo extends lt {
@@ -3253,40 +3259,54 @@ customElements.define(
3253
3259
  "eox-layercontrol-layer-datetime",
3254
3260
  Mo
3255
3261
  );
3256
- var Oe, ui, ci;
3262
+ var Oe, ci, ui;
3257
3263
  class No extends lt {
3258
3264
  constructor() {
3259
3265
  super();
3260
3266
  /** @param {number} index */
3261
3267
  P(this, Oe, (e) => (this.selectedTab === e || this.toolsAsList) && "highlighted");
3262
- P(this, ui, `
3263
- .tabbed figure {
3268
+ P(this, ci, `
3269
+ .tabbed figure,
3270
+ .listed figure {
3264
3271
  margin: 0;
3265
3272
  }
3266
- .tabbed nav {
3273
+ .tabbed nav,
3274
+ .listed nav {
3267
3275
  display: flex;
3268
3276
  justify-content: space-between;
3269
3277
  }
3270
- .tabbed nav div {
3278
+ .tabbed nav div,
3279
+ .listed nav div {
3271
3280
  display: flex;
3272
3281
  }
3273
- .tabbed .tab {
3282
+ .tabbed .tab,
3283
+ .listed .tab {
3274
3284
  display: none;
3275
3285
  }
3276
- .tabbed .tab.highlighted {
3286
+ .tabbed .tab.highlighted,
3287
+ .listed .tab.highlighted {
3277
3288
  display: block;
3278
3289
  }
3279
- .tabbed label.highlighted {
3290
+ .tabbed label.highlighted,
3291
+ .listed label.highlighted {
3280
3292
  background: lightgrey;
3281
3293
  }
3282
3294
  `);
3283
- P(this, ci, `
3284
- .listed {
3285
- background: #ffffff !important;
3295
+ P(this, ui, `
3296
+ .listed label {
3286
3297
  display: flex;
3287
- justify-content: end;
3298
+ justify-content: start;
3299
+ align-items: center;
3300
+ background: var(--background-color) !important;
3301
+ }
3302
+ .listed label:not(:first-of-type) {
3303
+ margin-top: 10px;
3288
3304
  }
3289
- .tabbed {
3305
+ .listed label span {
3306
+ text-transform: capitalize;
3307
+ font-weight: 300;
3308
+ }
3309
+ .tabbed, .listed {
3290
3310
  font-size: small;
3291
3311
  }
3292
3312
  .tabbed label.highlighted {
@@ -3303,8 +3323,9 @@ class No extends lt {
3303
3323
  cursor: pointer;
3304
3324
  }
3305
3325
  figure {
3306
- background: #00417011;
3326
+ background: var(--background-color);
3307
3327
  border-top: 1px solid #0041701a;
3328
+ padding: 8px var(--padding);
3308
3329
  }
3309
3330
  `);
3310
3331
  this.actions = [], this.selectedTab = 0, this.tabs = [], this.unstyled = !1, this.noShadow = !1, this.toolsAsList = !1;
@@ -3323,10 +3344,10 @@ class No extends lt {
3323
3344
  const e = this.tabs, n = this.actions, o = n.length + e.length > 1;
3324
3345
  return x`
3325
3346
  <style>
3326
- ${T(this, ui)}
3327
- ${!this.unstyled && T(this, ci)}
3347
+ ${T(this, ci)}
3348
+ ${!this.unstyled && T(this, ui)}
3328
3349
  </style>
3329
- <div class="tabbed">
3350
+ <div class="${this.toolsAsList ? "listed" : "tabbed"}">
3330
3351
  <!-- Navigation for tabs and actions -->
3331
3352
  ${G(
3332
3353
  o,
@@ -3375,9 +3396,10 @@ class No extends lt {
3375
3396
  ${G(
3376
3397
  this.toolsAsList,
3377
3398
  () => x`
3378
- <label class="listed">
3399
+ <label>
3379
3400
  <!-- Customizable icon for each tab -->
3380
3401
  <slot name=${`${r}-icon`}>${r}</slot>
3402
+ <span>${r}</span>
3381
3403
  </label>
3382
3404
  `
3383
3405
  )}
@@ -3392,7 +3414,7 @@ class No extends lt {
3392
3414
  `;
3393
3415
  }
3394
3416
  }
3395
- Oe = new WeakMap(), ui = new WeakMap(), ci = new WeakMap(), // Define static properties for the component
3417
+ Oe = new WeakMap(), ci = new WeakMap(), ui = new WeakMap(), // Define static properties for the component
3396
3418
  F(No, "properties", {
3397
3419
  actions: { attribute: !1 },
3398
3420
  selectedTab: { state: !0 },
@@ -3815,6 +3837,10 @@ class Vo extends lt {
3815
3837
  display: flex;
3816
3838
  justify-content: center;
3817
3839
  }
3840
+ eox-layercontrol-tools-items.tools-list button.icon,
3841
+ eox-layercontrol-tools-items.tools-list .button.icon {
3842
+ margin-left: -6px;
3843
+ }
3818
3844
  eox-layercontrol-tools-items button.icon::before,
3819
3845
  eox-layercontrol-tools-items .button.icon::before {
3820
3846
  width: 16px;
@@ -3849,8 +3875,14 @@ class Vo extends lt {
3849
3875
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Edrag-horizontal-variant%3C/title%3E%3Cpath d='M21 11H3V9H21V11M21 13H3V15H21V13Z' /%3E%3C/svg%3E");
3850
3876
  }
3851
3877
  [slot=info-content],
3852
- [slot=opacity-content] {
3853
- padding: 12px 6px;
3878
+ [slot=opacity-content],
3879
+ [slot=config-content],
3880
+ [slot=datetime-content],
3881
+ [slot=legend-content] {
3882
+ padding: 6px 0;
3883
+ }
3884
+ [slot=info-content] * {
3885
+ max-width: 100%;
3854
3886
  }
3855
3887
  `);
3856
3888
  this.layer = null, this.tools = [], this.unstyled = !1, this.noShadow = !1, this.toolsAsList = !1;
@@ -4229,32 +4261,32 @@ customElements.define(
4229
4261
  "eox-layercontrol-layer-group",
4230
4262
  Uo
4231
4263
  );
4232
- var zi, Un;
4264
+ var Zi, Un;
4233
4265
  function da() {
4234
- if (Un) return zi;
4266
+ if (Un) return Zi;
4235
4267
  Un = 1;
4236
- var i = "Expected a function", t = NaN, e = "[object Symbol]", n = /^\s+|\s+$/g, o = /^[-+]0x[0-9a-f]+$/i, r = /^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, c = l || d || Function("return this")(), u = Object.prototype, p = u.toString, f = Math.max, g = Math.min, b = function() {
4237
- return c.Date.now();
4268
+ var i = "Expected a function", t = NaN, e = "[object Symbol]", n = /^\s+|\s+$/g, o = /^[-+]0x[0-9a-f]+$/i, r = /^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() {
4269
+ return u.Date.now();
4238
4270
  };
4239
4271
  function N($, m, _) {
4240
- var M, R, q, X, H, L, z = 0, dt = !1, tt = !1, ut = !0;
4272
+ var M, L, q, X, H, R, Z = 0, dt = !1, tt = !1, ct = !0;
4241
4273
  if (typeof $ != "function")
4242
4274
  throw new TypeError(i);
4243
- m = K(m) || 0, J(_) && (dt = !!_.leading, tt = "maxWait" in _, q = tt ? f(K(_.maxWait) || 0, m) : q, ut = "trailing" in _ ? !!_.trailing : ut);
4275
+ m = K(m) || 0, J(_) && (dt = !!_.leading, tt = "maxWait" in _, q = tt ? f(K(_.maxWait) || 0, m) : q, ct = "trailing" in _ ? !!_.trailing : ct);
4244
4276
  function gt(B) {
4245
- var I = M, ct = R;
4246
- return M = R = void 0, z = B, X = $.apply(ct, I), X;
4277
+ var I = M, ut = L;
4278
+ return M = L = void 0, Z = B, X = $.apply(ut, I), X;
4247
4279
  }
4248
4280
  function Ut(B) {
4249
- return z = B, H = setTimeout(_t, m), dt ? gt(B) : X;
4281
+ return Z = B, H = setTimeout(_t, m), dt ? gt(B) : X;
4250
4282
  }
4251
4283
  function Ie(B) {
4252
- var I = B - L, ct = B - z, Lt = m - I;
4253
- return tt ? g(Lt, q - ct) : Lt;
4284
+ var I = B - R, ut = B - Z, Rt = m - I;
4285
+ return tt ? g(Rt, q - ut) : Rt;
4254
4286
  }
4255
4287
  function Ft(B) {
4256
- var I = B - L, ct = B - z;
4257
- return L === void 0 || I >= m || I < 0 || tt && ct >= q;
4288
+ var I = B - R, ut = B - Z;
4289
+ return R === void 0 || I >= m || I < 0 || tt && ut >= q;
4258
4290
  }
4259
4291
  function _t() {
4260
4292
  var B = b();
@@ -4263,21 +4295,21 @@ function da() {
4263
4295
  H = setTimeout(_t, Ie(B));
4264
4296
  }
4265
4297
  function jt(B) {
4266
- return H = void 0, ut && M ? gt(B) : (M = R = void 0, X);
4298
+ return H = void 0, ct && M ? gt(B) : (M = L = void 0, X);
4267
4299
  }
4268
4300
  function Ne() {
4269
- H !== void 0 && clearTimeout(H), z = 0, M = L = R = H = void 0;
4301
+ H !== void 0 && clearTimeout(H), Z = 0, M = R = L = H = void 0;
4270
4302
  }
4271
4303
  function Ai() {
4272
4304
  return H === void 0 ? X : jt(b());
4273
4305
  }
4274
4306
  function he() {
4275
4307
  var B = b(), I = Ft(B);
4276
- if (M = arguments, R = this, L = B, I) {
4308
+ if (M = arguments, L = this, R = B, I) {
4277
4309
  if (H === void 0)
4278
- return Ut(L);
4310
+ return Ut(R);
4279
4311
  if (tt)
4280
- return H = setTimeout(_t, m), gt(L);
4312
+ return H = setTimeout(_t, m), gt(R);
4281
4313
  }
4282
4314
  return H === void 0 && (H = setTimeout(_t, m)), X;
4283
4315
  }
@@ -4308,11 +4340,11 @@ function da() {
4308
4340
  var _ = r.test($);
4309
4341
  return _ || s.test($) ? a($.slice(2), _ ? 2 : 8) : o.test($) ? t : +$;
4310
4342
  }
4311
- return zi = N, zi;
4343
+ return Zi = N, Zi;
4312
4344
  }
4313
- var ua = da();
4314
- const ca = /* @__PURE__ */ Oo(ua), ha = (i) => {
4315
- const { layers: t, idProperty: e, titleProperty: n, renderRoot: o } = i, r = ca(() => {
4345
+ var ca = da();
4346
+ const ua = /* @__PURE__ */ Oo(ca), ha = (i) => {
4347
+ const { layers: t, idProperty: e, titleProperty: n, renderRoot: o } = i, r = ua(() => {
4316
4348
  i.requestUpdate(), i.dispatchEvent(
4317
4349
  new CustomEvent("changed", { bubbles: !0 })
4318
4350
  );
@@ -4395,7 +4427,7 @@ class Fo extends lt {
4395
4427
  (n) => x`
4396
4428
  <li
4397
4429
  data-layer="${n.get(this.idProperty)}"
4398
- data-type="${Zs(n, this.map)}"
4430
+ data-type="${zs(n, this.map)}"
4399
4431
  >
4400
4432
  ${/** Checks if the layer is a group or individual layer and renders accordingly */
4401
4433
  /** @type {import("ol/layer").Group} */
@@ -4470,7 +4502,7 @@ const pa = (i) => {
4470
4502
  )
4471
4503
  ), i.requestUpdate();
4472
4504
  };
4473
- var wi, Zo;
4505
+ var wi, zo;
4474
4506
  class jo extends lt {
4475
4507
  constructor() {
4476
4508
  super();
@@ -4513,7 +4545,7 @@ class jo extends lt {
4513
4545
  </select>
4514
4546
 
4515
4547
  <!-- Button to handle adding layers -->
4516
- <button @click="${j(this, wi, Zo)}">add</button>
4548
+ <button @click="${j(this, wi, zo)}">add</button>
4517
4549
  `;
4518
4550
  }
4519
4551
  }
@@ -4521,7 +4553,7 @@ wi = new WeakSet(), /**
4521
4553
  * Handles the addition of selected layers to a list.
4522
4554
  * Invokes the 'addToListMethod' with the current context.
4523
4555
  */
4524
- Zo = function() {
4556
+ zo = function() {
4525
4557
  pa(this);
4526
4558
  }, // Define static properties for the component
4527
4559
  F(jo, "properties", {
@@ -4553,7 +4585,7 @@ async function ma(i) {
4553
4585
  if (dn(t) === "XYZ")
4554
4586
  return { Name: t };
4555
4587
  try {
4556
- const e = await us(t);
4588
+ const e = await cs(t);
4557
4589
  i.wmsCapabilities = e;
4558
4590
  } catch {
4559
4591
  } finally {
@@ -4584,7 +4616,7 @@ const ya = (i, t) => {
4584
4616
  t.open = i || null, t.urlInput = null, t.jsonInput = null, t.wmsCapabilities = null, t.requestUpdate();
4585
4617
  };
4586
4618
  var it, qo, Xo, Qi, Yo, Wo, We, xi, Ei;
4587
- class zo extends lt {
4619
+ class Zo extends lt {
4588
4620
  constructor() {
4589
4621
  super();
4590
4622
  P(this, it);
@@ -4775,7 +4807,7 @@ class zo extends lt {
4775
4807
  * Handles input fields, search, and addition of layers.
4776
4808
  */
4777
4809
  render() {
4778
- const e = this.open ? "open" : "close", n = this.open === "url", o = this.open === "json", r = !cs(this.urlInput) || this.searchLoad ? !0 : O;
4810
+ const e = this.open ? "open" : "close", n = this.open === "url", o = this.open === "json", r = !us(this.urlInput) || this.searchLoad ? !0 : O;
4779
4811
  return x`
4780
4812
  <style>
4781
4813
  ${T(this, xi)}
@@ -4913,12 +4945,12 @@ Wo = function(e) {
4913
4945
  We = function(e) {
4914
4946
  ba(e, this);
4915
4947
  }, xi = new WeakMap(), Ei = new WeakMap(), // Define static properties for the component
4916
- F(zo, "properties", {
4948
+ F(Zo, "properties", {
4917
4949
  eoxMap: { attribute: !1, state: !0 },
4918
4950
  unstyled: { type: Boolean },
4919
4951
  noShadow: { type: Boolean }
4920
4952
  });
4921
- customElements.define("eox-layercontrol-add-layers", zo);
4953
+ customElements.define("eox-layercontrol-add-layers", Zo);
4922
4954
  const va = (i, t) => {
4923
4955
  if (t.requestUpdate(), i.target.tagName === "EOX-LAYERCONTROL-LAYER-TOOLS") {
4924
4956
  const e = t.renderRoot.querySelector(
@@ -4934,12 +4966,12 @@ const va = (i, t) => {
4934
4966
  const t = wa(i.for);
4935
4967
  return t && t.map !== i.map && (i.map = t.map), t;
4936
4968
  };
4937
- var Ht, ue, Jo, Ko, $i;
4969
+ var Ht, ce, Jo, Ko, $i;
4938
4970
  class Go extends lt {
4939
4971
  // Constructor to set default values for properties
4940
4972
  constructor() {
4941
4973
  super();
4942
- P(this, ue);
4974
+ P(this, ce);
4943
4975
  /**
4944
4976
  * Instance of `eox-map` which is a wrapper for the OL
4945
4977
  *
@@ -4959,6 +4991,11 @@ class Go extends lt {
4959
4991
 
4960
4992
  display: block;
4961
4993
  padding: var(--padding) 0;
4994
+ --background-color: var(--eox-background-color, transparent);
4995
+ background-color: var(--background-color, transparent);
4996
+ }
4997
+ select {
4998
+ background-color: var(--background-color);
4962
4999
  }
4963
5000
  `);
4964
5001
  this.for = "eox-map", this.idProperty = "id", this.map = null, this.titleProperty = "title", this.showLayerZoomState = !1, this.tools = ["info", "opacity", "datetime", "config", "remove", "sort"], this.addExternalLayers = !1, this.unstyled = !1, this.styleOverride = "", this.toolsAsList = !1;
@@ -5016,8 +5053,8 @@ class Go extends lt {
5016
5053
  .tools=${this.tools}
5017
5054
  .unstyled=${this.unstyled}
5018
5055
  .toolsAsList=${this.toolsAsList}
5019
- @changed=${j(this, ue, Jo)}
5020
- @datetime:updated=${j(this, ue, Ko)}
5056
+ @changed=${j(this, ce, Jo)}
5057
+ @datetime:updated=${j(this, ce, Ko)}
5021
5058
  ></eox-layercontrol-layer-list>
5022
5059
  `
5023
5060
  )}
@@ -5038,7 +5075,7 @@ class Go extends lt {
5038
5075
  `;
5039
5076
  }
5040
5077
  }
5041
- Ht = new WeakMap(), ue = new WeakSet(), /**
5078
+ Ht = new WeakMap(), ce = new WeakSet(), /**
5042
5079
  * Event handler for changes in the layer list
5043
5080
  *
5044
5081
  * @param {CustomEvent & {target: Element}} evt