@eox/layercontrol 0.18.1-dev.1722353171.0 → 0.18.2-dev.1722439716.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.
@@ -2,18 +2,18 @@ var Mo = Object.defineProperty;
2
2
  var Jn = (e) => {
3
3
  throw TypeError(e);
4
4
  };
5
- var No = (e, t, n) => t in e ? Mo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
6
- var N = (e, t, n) => No(e, typeof t != "symbol" ? t + "" : t, n), pn = (e, t, n) => t.has(e) || Jn("Cannot " + n);
7
- var P = (e, t, n) => (pn(e, t, "read from private field"), n ? n.call(e) : t.get(e)), T = (e, t, n) => t.has(e) ? Jn("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), Kt = (e, t, n, i) => (pn(e, t, "write to private field"), i ? i.call(e, n) : t.set(e, n), n), B = (e, t, n) => (pn(e, t, "access private method"), n);
5
+ var Io = (e, t, n) => t in e ? Mo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
6
+ var M = (e, t, n) => Io(e, typeof t != "symbol" ? t + "" : t, n), pn = (e, t, n) => t.has(e) || Jn("Cannot " + n);
7
+ var P = (e, t, n) => (pn(e, t, "read from private field"), n ? n.call(e) : t.get(e)), T = (e, t, n) => t.has(e) ? Jn("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), Qt = (e, t, n, i) => (pn(e, t, "write to private field"), i ? i.call(e, n) : t.set(e, n), n), B = (e, t, n) => (pn(e, t, "access private method"), n);
8
8
  /**
9
9
  * @license
10
10
  * Copyright 2019 Google LLC
11
11
  * SPDX-License-Identifier: BSD-3-Clause
12
12
  */
13
- const Te = globalThis, Ln = Te.ShadowRoot && (Te.ShadyCSS === void 0 || Te.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, $i = Symbol(), Kn = /* @__PURE__ */ new WeakMap();
14
- let Io = class {
13
+ const Te = globalThis, Ln = Te.ShadowRoot && (Te.ShadyCSS === void 0 || Te.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Si = Symbol(), Kn = /* @__PURE__ */ new WeakMap();
14
+ let Ho = class {
15
15
  constructor(t, n, i) {
16
- if (this._$cssResult$ = !0, i !== $i) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
16
+ if (this._$cssResult$ = !0, i !== Si) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
17
17
  this.cssText = t, this.t = n;
18
18
  }
19
19
  get styleSheet() {
@@ -29,7 +29,7 @@ let Io = class {
29
29
  return this.cssText;
30
30
  }
31
31
  };
32
- const Ho = (e) => new Io(typeof e == "string" ? e : e + "", void 0, $i), Bo = (e, t) => {
32
+ const Bo = (e) => new Ho(typeof e == "string" ? e : e + "", void 0, Si), Vo = (e, t) => {
33
33
  if (Ln) e.adoptedStyleSheets = t.map((n) => n instanceof CSSStyleSheet ? n : n.styleSheet);
34
34
  else for (const n of t) {
35
35
  const i = document.createElement("style"), o = Te.litNonce;
@@ -38,17 +38,17 @@ const Ho = (e) => new Io(typeof e == "string" ? e : e + "", void 0, $i), Bo = (e
38
38
  }, Qn = Ln ? (e) => e : (e) => e instanceof CSSStyleSheet ? ((t) => {
39
39
  let n = "";
40
40
  for (const i of t.cssRules) n += i.cssText;
41
- return Ho(n);
41
+ return Bo(n);
42
42
  })(e) : e;
43
43
  /**
44
44
  * @license
45
45
  * Copyright 2017 Google LLC
46
46
  * SPDX-License-Identifier: BSD-3-Clause
47
47
  */
48
- const { is: Vo, defineProperty: Lo, getOwnPropertyDescriptor: Uo, getOwnPropertyNames: ko, getOwnPropertySymbols: Fo, getPrototypeOf: jo } = Object, _t = globalThis, ti = _t.trustedTypes, Zo = ti ? ti.emptyScript : "", fn = _t.reactiveElementPolyfillSupport, oe = (e, t) => e, Rn = { toAttribute(e, t) {
48
+ const { is: Lo, defineProperty: Uo, getOwnPropertyDescriptor: ko, getOwnPropertyNames: Fo, getOwnPropertySymbols: jo, getPrototypeOf: Zo } = Object, _t = globalThis, ti = _t.trustedTypes, zo = ti ? ti.emptyScript : "", fn = _t.reactiveElementPolyfillSupport, re = (e, t) => e, Rn = { toAttribute(e, t) {
49
49
  switch (t) {
50
50
  case Boolean:
51
- e = e ? Zo : null;
51
+ e = e ? zo : null;
52
52
  break;
53
53
  case Object:
54
54
  case Array:
@@ -73,7 +73,7 @@ const { is: Vo, defineProperty: Lo, getOwnPropertyDescriptor: Uo, getOwnProperty
73
73
  }
74
74
  }
75
75
  return n;
76
- } }, Si = (e, t) => !Vo(e, t), ei = { attribute: !0, type: String, converter: Rn, reflect: !1, hasChanged: Si };
76
+ } }, $i = (e, t) => !Lo(e, t), ei = { attribute: !0, type: String, converter: Rn, reflect: !1, hasChanged: $i };
77
77
  Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), _t.litPropertyMetadata ?? (_t.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
78
78
  class Lt extends HTMLElement {
79
79
  static addInitializer(t) {
@@ -85,34 +85,34 @@ class Lt extends HTMLElement {
85
85
  static createProperty(t, n = ei) {
86
86
  if (n.state && (n.attribute = !1), this._$Ei(), this.elementProperties.set(t, n), !n.noAccessor) {
87
87
  const i = Symbol(), o = this.getPropertyDescriptor(t, i, n);
88
- o !== void 0 && Lo(this.prototype, t, o);
88
+ o !== void 0 && Uo(this.prototype, t, o);
89
89
  }
90
90
  }
91
91
  static getPropertyDescriptor(t, n, i) {
92
- const { get: o, set: r } = Uo(this.prototype, t) ?? { get() {
92
+ const { get: o, set: r } = ko(this.prototype, t) ?? { get() {
93
93
  return this[n];
94
- }, set(a) {
95
- this[n] = a;
94
+ }, set(s) {
95
+ this[n] = s;
96
96
  } };
97
97
  return { get() {
98
98
  return o == null ? void 0 : o.call(this);
99
- }, set(a) {
100
- const s = o == null ? void 0 : o.call(this);
101
- r.call(this, a), this.requestUpdate(t, s, i);
99
+ }, set(s) {
100
+ const a = o == null ? void 0 : o.call(this);
101
+ r.call(this, s), this.requestUpdate(t, a, i);
102
102
  }, configurable: !0, enumerable: !0 };
103
103
  }
104
104
  static getPropertyOptions(t) {
105
105
  return this.elementProperties.get(t) ?? ei;
106
106
  }
107
107
  static _$Ei() {
108
- if (this.hasOwnProperty(oe("elementProperties"))) return;
109
- const t = jo(this);
108
+ if (this.hasOwnProperty(re("elementProperties"))) return;
109
+ const t = Zo(this);
110
110
  t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
111
111
  }
112
112
  static finalize() {
113
- if (this.hasOwnProperty(oe("finalized"))) return;
114
- if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(oe("properties"))) {
115
- const n = this.properties, i = [...ko(n), ...Fo(n)];
113
+ if (this.hasOwnProperty(re("finalized"))) return;
114
+ if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(re("properties"))) {
115
+ const n = this.properties, i = [...Fo(n), ...jo(n)];
116
116
  for (const o of i) this.createProperty(o, n[o]);
117
117
  }
118
118
  const t = this[Symbol.metadata];
@@ -161,7 +161,7 @@ class Lt extends HTMLElement {
161
161
  }
162
162
  createRenderRoot() {
163
163
  const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
164
- return Bo(t, this.constructor.elementStyles), t;
164
+ return Vo(t, this.constructor.elementStyles), t;
165
165
  }
166
166
  connectedCallback() {
167
167
  var t;
@@ -186,21 +186,21 @@ class Lt extends HTMLElement {
186
186
  var r;
187
187
  const i = this.constructor.elementProperties.get(t), o = this.constructor._$Eu(t, i);
188
188
  if (o !== void 0 && i.reflect === !0) {
189
- const a = (((r = i.converter) == null ? void 0 : r.toAttribute) !== void 0 ? i.converter : Rn).toAttribute(n, i.type);
190
- this._$Em = t, a == null ? this.removeAttribute(o) : this.setAttribute(o, a), this._$Em = null;
189
+ const s = (((r = i.converter) == null ? void 0 : r.toAttribute) !== void 0 ? i.converter : Rn).toAttribute(n, i.type);
190
+ this._$Em = t, s == null ? this.removeAttribute(o) : this.setAttribute(o, s), this._$Em = null;
191
191
  }
192
192
  }
193
193
  _$AK(t, n) {
194
194
  var r;
195
195
  const i = this.constructor, o = i._$Eh.get(t);
196
196
  if (o !== void 0 && this._$Em !== o) {
197
- const a = i.getPropertyOptions(o), s = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((r = a.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? a.converter : Rn;
198
- this._$Em = o, this[o] = s.fromAttribute(n, a.type), this._$Em = null;
197
+ const s = i.getPropertyOptions(o), a = typeof s.converter == "function" ? { fromAttribute: s.converter } : ((r = s.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? s.converter : Rn;
198
+ this._$Em = o, this[o] = a.fromAttribute(n, s.type), this._$Em = null;
199
199
  }
200
200
  }
201
201
  requestUpdate(t, n, i) {
202
202
  if (t !== void 0) {
203
- if (i ?? (i = this.constructor.getPropertyOptions(t)), !(i.hasChanged ?? Si)(this[t], n)) return;
203
+ if (i ?? (i = this.constructor.getPropertyOptions(t)), !(i.hasChanged ?? $i)(this[t], n)) return;
204
204
  this.P(t, n, i);
205
205
  }
206
206
  this.isUpdatePending === !1 && (this._$ES = this._$ET());
@@ -226,11 +226,11 @@ class Lt extends HTMLElement {
226
226
  if (!this.isUpdatePending) return;
227
227
  if (!this.hasUpdated) {
228
228
  if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
229
- for (const [r, a] of this._$Ep) this[r] = a;
229
+ for (const [r, s] of this._$Ep) this[r] = s;
230
230
  this._$Ep = void 0;
231
231
  }
232
232
  const o = this.constructor.elementProperties;
233
- if (o.size > 0) for (const [r, a] of o) a.wrapped !== !0 || this._$AL.has(r) || this[r] === void 0 || this.P(r, this[r], a);
233
+ if (o.size > 0) for (const [r, s] of o) s.wrapped !== !0 || this._$AL.has(r) || this[r] === void 0 || this.P(r, this[r], s);
234
234
  }
235
235
  let t = !1;
236
236
  const n = this._$AL;
@@ -273,53 +273,53 @@ class Lt extends HTMLElement {
273
273
  firstUpdated(t) {
274
274
  }
275
275
  }
276
- Lt.elementStyles = [], Lt.shadowRootOptions = { mode: "open" }, Lt[oe("elementProperties")] = /* @__PURE__ */ new Map(), Lt[oe("finalized")] = /* @__PURE__ */ new Map(), fn == null || fn({ ReactiveElement: Lt }), (_t.reactiveElementVersions ?? (_t.reactiveElementVersions = [])).push("2.0.4");
276
+ Lt.elementStyles = [], Lt.shadowRootOptions = { mode: "open" }, Lt[re("elementProperties")] = /* @__PURE__ */ new Map(), Lt[re("finalized")] = /* @__PURE__ */ new Map(), fn == null || fn({ ReactiveElement: Lt }), (_t.reactiveElementVersions ?? (_t.reactiveElementVersions = [])).push("2.0.4");
277
277
  /**
278
278
  * @license
279
279
  * Copyright 2017 Google LLC
280
280
  * SPDX-License-Identifier: BSD-3-Clause
281
281
  */
282
- const re = globalThis, Be = re.trustedTypes, ni = Be ? Be.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, Un = "$lit$", pt = `lit$${Math.random().toFixed(9).slice(2)}$`, kn = "?" + pt, zo = `<${kn}>`, It = document, ce = () => It.createComment(""), he = (e) => e === null || typeof e != "object" && typeof e != "function", _i = Array.isArray, Ai = (e) => _i(e) || typeof (e == null ? void 0 : e[Symbol.iterator]) == "function", gn = `[
283
- \f\r]`, Qt = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, ii = /-->/g, oi = />/g, Tt = RegExp(`>|${gn}(?:([^\\s"'>=/]+)(${gn}*=${gn}*(?:[^
284
- \f\r"'\`<>=]|("|')|))|$)`, "g"), ri = /'/g, ai = /"/g, Ci = /^(?:script|style|textarea|title)$/i, Xo = (e) => (t, ...n) => ({ _$litType$: e, strings: t, values: n }), E = Xo(1), rt = Symbol.for("lit-noChange"), C = Symbol.for("lit-nothing"), si = /* @__PURE__ */ new WeakMap(), Mt = It.createTreeWalker(It, 129);
282
+ const se = globalThis, Be = se.trustedTypes, ni = Be ? Be.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, Un = "$lit$", pt = `lit$${Math.random().toFixed(9).slice(2)}$`, kn = "?" + pt, Xo = `<${kn}>`, It = document, he = () => It.createComment(""), pe = (e) => e === null || typeof e != "object" && typeof e != "function", _i = Array.isArray, Ai = (e) => _i(e) || typeof (e == null ? void 0 : e[Symbol.iterator]) == "function", gn = `[
283
+ \f\r]`, te = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, ii = /-->/g, oi = />/g, Tt = RegExp(`>|${gn}(?:([^\\s"'>=/]+)(${gn}*=${gn}*(?:[^
284
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), ri = /'/g, si = /"/g, Ci = /^(?:script|style|textarea|title)$/i, qo = (e) => (t, ...n) => ({ _$litType$: e, strings: t, values: n }), E = qo(1), rt = Symbol.for("lit-noChange"), C = Symbol.for("lit-nothing"), ai = /* @__PURE__ */ new WeakMap(), Nt = It.createTreeWalker(It, 129);
285
285
  function Ti(e, t) {
286
286
  if (!Array.isArray(e) || !e.hasOwnProperty("raw")) throw Error("invalid template strings array");
287
287
  return ni !== void 0 ? ni.createHTML(t) : t;
288
288
  }
289
289
  const Pi = (e, t) => {
290
290
  const n = e.length - 1, i = [];
291
- let o, r = t === 2 ? "<svg>" : "", a = Qt;
292
- for (let s = 0; s < n; s++) {
293
- const l = e[s];
291
+ let o, r = t === 2 ? "<svg>" : "", s = te;
292
+ for (let a = 0; a < n; a++) {
293
+ const l = e[a];
294
294
  let u, c, d = -1, p = 0;
295
- for (; p < l.length && (a.lastIndex = p, c = a.exec(l), c !== null); ) p = a.lastIndex, a === Qt ? c[1] === "!--" ? a = ii : c[1] !== void 0 ? a = oi : c[2] !== void 0 ? (Ci.test(c[2]) && (o = RegExp("</" + c[2], "g")), a = Tt) : c[3] !== void 0 && (a = Tt) : a === Tt ? c[0] === ">" ? (a = o ?? Qt, d = -1) : c[1] === void 0 ? d = -2 : (d = a.lastIndex - c[2].length, u = c[1], a = c[3] === void 0 ? Tt : c[3] === '"' ? ai : ri) : a === ai || a === ri ? a = Tt : a === ii || a === oi ? a = Qt : (a = Tt, o = void 0);
296
- const f = a === Tt && e[s + 1].startsWith("/>") ? " " : "";
297
- r += a === Qt ? l + zo : d >= 0 ? (i.push(u), l.slice(0, d) + Un + l.slice(d) + pt + f) : l + pt + (d === -2 ? s : f);
295
+ for (; p < l.length && (s.lastIndex = p, c = s.exec(l), c !== null); ) p = s.lastIndex, s === te ? c[1] === "!--" ? s = ii : c[1] !== void 0 ? s = oi : c[2] !== void 0 ? (Ci.test(c[2]) && (o = RegExp("</" + c[2], "g")), s = Tt) : c[3] !== void 0 && (s = Tt) : s === Tt ? c[0] === ">" ? (s = o ?? te, d = -1) : c[1] === void 0 ? d = -2 : (d = s.lastIndex - c[2].length, u = c[1], s = c[3] === void 0 ? Tt : c[3] === '"' ? si : ri) : s === si || s === ri ? s = Tt : s === ii || s === oi ? s = te : (s = Tt, o = void 0);
296
+ const f = s === Tt && e[a + 1].startsWith("/>") ? " " : "";
297
+ r += s === te ? l + Xo : d >= 0 ? (i.push(u), l.slice(0, d) + Un + l.slice(d) + pt + f) : l + pt + (d === -2 ? a : f);
298
298
  }
299
299
  return [Ti(e, r + (e[n] || "<?>") + (t === 2 ? "</svg>" : "")), i];
300
300
  };
301
- class pe {
301
+ class fe {
302
302
  constructor({ strings: t, _$litType$: n }, i) {
303
303
  let o;
304
304
  this.parts = [];
305
- let r = 0, a = 0;
306
- const s = t.length - 1, l = this.parts, [u, c] = Pi(t, n);
307
- if (this.el = pe.createElement(u, i), Mt.currentNode = this.el.content, n === 2) {
305
+ let r = 0, s = 0;
306
+ const a = t.length - 1, l = this.parts, [u, c] = Pi(t, n);
307
+ if (this.el = fe.createElement(u, i), Nt.currentNode = this.el.content, n === 2) {
308
308
  const d = this.el.content.firstChild;
309
309
  d.replaceWith(...d.childNodes);
310
310
  }
311
- for (; (o = Mt.nextNode()) !== null && l.length < s; ) {
311
+ for (; (o = Nt.nextNode()) !== null && l.length < a; ) {
312
312
  if (o.nodeType === 1) {
313
313
  if (o.hasAttributes()) for (const d of o.getAttributeNames()) if (d.endsWith(Un)) {
314
- const p = c[a++], f = o.getAttribute(d).split(pt), g = /([.?@])?(.*)/.exec(p);
315
- l.push({ type: 1, index: r, name: g[2], strings: f, ctor: g[1] === "." ? Ri : g[1] === "?" ? Oi : g[1] === "@" ? Mi : ve }), o.removeAttribute(d);
314
+ const p = c[s++], f = o.getAttribute(d).split(pt), g = /([.?@])?(.*)/.exec(p);
315
+ l.push({ type: 1, index: r, name: g[2], strings: f, ctor: g[1] === "." ? Ri : g[1] === "?" ? Oi : g[1] === "@" ? Ni : ve }), o.removeAttribute(d);
316
316
  } else d.startsWith(pt) && (l.push({ type: 6, index: r }), o.removeAttribute(d));
317
317
  if (Ci.test(o.tagName)) {
318
318
  const d = o.textContent.split(pt), p = d.length - 1;
319
319
  if (p > 0) {
320
320
  o.textContent = Be ? Be.emptyScript : "";
321
- for (let f = 0; f < p; f++) o.append(d[f], ce()), Mt.nextNode(), l.push({ type: 2, index: ++r });
322
- o.append(d[p], ce());
321
+ for (let f = 0; f < p; f++) o.append(d[f], he()), Nt.nextNode(), l.push({ type: 2, index: ++r });
322
+ o.append(d[p], he());
323
323
  }
324
324
  }
325
325
  } else if (o.nodeType === 8) if (o.data === kn) l.push({ type: 2, index: r });
@@ -336,11 +336,11 @@ class pe {
336
336
  }
337
337
  }
338
338
  function Ht(e, t, n = e, i) {
339
- var a, s;
339
+ var s, a;
340
340
  if (t === rt) return t;
341
- let o = i !== void 0 ? (a = n._$Co) == null ? void 0 : a[i] : n._$Cl;
342
- const r = he(t) ? void 0 : t._$litDirective$;
343
- return (o == null ? void 0 : o.constructor) !== r && ((s = o == null ? void 0 : o._$AO) == null || s.call(o, !1), r === void 0 ? o = void 0 : (o = new r(e), o._$AT(e, n, i)), i !== void 0 ? (n._$Co ?? (n._$Co = []))[i] = o : n._$Cl = o), o !== void 0 && (t = Ht(e, o._$AS(e, t.values), o, i)), t;
341
+ let o = i !== void 0 ? (s = n._$Co) == null ? void 0 : s[i] : n._$Cl;
342
+ const r = pe(t) ? void 0 : t._$litDirective$;
343
+ return (o == null ? void 0 : o.constructor) !== r && ((a = o == null ? void 0 : o._$AO) == null || a.call(o, !1), r === void 0 ? o = void 0 : (o = new r(e), o._$AT(e, n, i)), i !== void 0 ? (n._$Co ?? (n._$Co = []))[i] = o : n._$Cl = o), o !== void 0 && (t = Ht(e, o._$AS(e, t.values), o, i)), t;
344
344
  }
345
345
  class Di {
346
346
  constructor(t, n) {
@@ -354,23 +354,23 @@ class Di {
354
354
  }
355
355
  u(t) {
356
356
  const { el: { content: n }, parts: i } = this._$AD, o = ((t == null ? void 0 : t.creationScope) ?? It).importNode(n, !0);
357
- Mt.currentNode = o;
358
- let r = Mt.nextNode(), a = 0, s = 0, l = i[0];
357
+ Nt.currentNode = o;
358
+ let r = Nt.nextNode(), s = 0, a = 0, l = i[0];
359
359
  for (; l !== void 0; ) {
360
- if (a === l.index) {
360
+ if (s === l.index) {
361
361
  let u;
362
- l.type === 2 ? u = new qt(r, r.nextSibling, this, t) : l.type === 1 ? u = new l.ctor(r, l.name, l.strings, this, t) : l.type === 6 && (u = new Ni(r, this, t)), this._$AV.push(u), l = i[++s];
362
+ l.type === 2 ? u = new Yt(r, r.nextSibling, this, t) : l.type === 1 ? u = new l.ctor(r, l.name, l.strings, this, t) : l.type === 6 && (u = new Mi(r, this, t)), this._$AV.push(u), l = i[++a];
363
363
  }
364
- a !== (l == null ? void 0 : l.index) && (r = Mt.nextNode(), a++);
364
+ s !== (l == null ? void 0 : l.index) && (r = Nt.nextNode(), s++);
365
365
  }
366
- return Mt.currentNode = It, o;
366
+ return Nt.currentNode = It, o;
367
367
  }
368
368
  p(t) {
369
369
  let n = 0;
370
370
  for (const i of this._$AV) i !== void 0 && (i.strings !== void 0 ? (i._$AI(t, i, n), n += i.strings.length - 2) : i._$AI(t[n])), n++;
371
371
  }
372
372
  }
373
- class qt {
373
+ class Yt {
374
374
  get _$AU() {
375
375
  var t;
376
376
  return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
@@ -390,7 +390,7 @@ class qt {
390
390
  return this._$AB;
391
391
  }
392
392
  _$AI(t, n = this) {
393
- t = Ht(this, t, n), he(t) ? t === C || t == null || t === "" ? (this._$AH !== C && this._$AR(), this._$AH = C) : t !== this._$AH && t !== rt && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Ai(t) ? this.k(t) : this._(t);
393
+ t = Ht(this, t, n), pe(t) ? t === C || t == null || t === "" ? (this._$AH !== C && this._$AR(), this._$AH = C) : t !== this._$AH && t !== rt && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Ai(t) ? this.k(t) : this._(t);
394
394
  }
395
395
  S(t) {
396
396
  return this._$AA.parentNode.insertBefore(t, this._$AB);
@@ -399,26 +399,26 @@ class qt {
399
399
  this._$AH !== t && (this._$AR(), this._$AH = this.S(t));
400
400
  }
401
401
  _(t) {
402
- this._$AH !== C && he(this._$AH) ? this._$AA.nextSibling.data = t : this.T(It.createTextNode(t)), this._$AH = t;
402
+ this._$AH !== C && pe(this._$AH) ? this._$AA.nextSibling.data = t : this.T(It.createTextNode(t)), this._$AH = t;
403
403
  }
404
404
  $(t) {
405
405
  var r;
406
- const { values: n, _$litType$: i } = t, o = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = pe.createElement(Ti(i.h, i.h[0]), this.options)), i);
406
+ const { values: n, _$litType$: i } = t, o = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = fe.createElement(Ti(i.h, i.h[0]), this.options)), i);
407
407
  if (((r = this._$AH) == null ? void 0 : r._$AD) === o) this._$AH.p(n);
408
408
  else {
409
- const a = new Di(o, this), s = a.u(this.options);
410
- a.p(n), this.T(s), this._$AH = a;
409
+ const s = new Di(o, this), a = s.u(this.options);
410
+ s.p(n), this.T(a), this._$AH = s;
411
411
  }
412
412
  }
413
413
  _$AC(t) {
414
- let n = si.get(t.strings);
415
- return n === void 0 && si.set(t.strings, n = new pe(t)), n;
414
+ let n = ai.get(t.strings);
415
+ return n === void 0 && ai.set(t.strings, n = new fe(t)), n;
416
416
  }
417
417
  k(t) {
418
418
  _i(this._$AH) || (this._$AH = [], this._$AR());
419
419
  const n = this._$AH;
420
420
  let i, o = 0;
421
- for (const r of t) o === n.length ? n.push(i = new qt(this.S(ce()), this.S(ce()), this, this.options)) : i = n[o], i._$AI(r), o++;
421
+ for (const r of t) o === n.length ? n.push(i = new Yt(this.S(he()), this.S(he()), this, this.options)) : i = n[o], i._$AI(r), o++;
422
422
  o < n.length && (this._$AR(i && i._$AB.nextSibling, o), n.length = o);
423
423
  }
424
424
  _$AR(t = this._$AA.nextSibling, n) {
@@ -445,14 +445,14 @@ class ve {
445
445
  }
446
446
  _$AI(t, n = this, i, o) {
447
447
  const r = this.strings;
448
- let a = !1;
449
- if (r === void 0) t = Ht(this, t, n, 0), a = !he(t) || t !== this._$AH && t !== rt, a && (this._$AH = t);
448
+ let s = !1;
449
+ if (r === void 0) t = Ht(this, t, n, 0), s = !pe(t) || t !== this._$AH && t !== rt, s && (this._$AH = t);
450
450
  else {
451
- const s = t;
451
+ const a = t;
452
452
  let l, u;
453
- for (t = r[0], l = 0; l < r.length - 1; l++) u = Ht(this, s[i + l], n, l), u === rt && (u = this._$AH[l]), a || (a = !he(u) || u !== this._$AH[l]), u === C ? t = C : t !== C && (t += (u ?? "") + r[l + 1]), this._$AH[l] = u;
453
+ for (t = r[0], l = 0; l < r.length - 1; l++) u = Ht(this, a[i + l], n, l), u === rt && (u = this._$AH[l]), s || (s = !pe(u) || u !== this._$AH[l]), u === C ? t = C : t !== C && (t += (u ?? "") + r[l + 1]), this._$AH[l] = u;
454
454
  }
455
- a && !o && this.j(t);
455
+ s && !o && this.j(t);
456
456
  }
457
457
  j(t) {
458
458
  t === C ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
@@ -474,7 +474,7 @@ class Oi extends ve {
474
474
  this.element.toggleAttribute(this.name, !!t && t !== C);
475
475
  }
476
476
  }
477
- class Mi extends ve {
477
+ class Ni extends ve {
478
478
  constructor(t, n, i, o, r) {
479
479
  super(t, n, i, o, r), this.type = 5;
480
480
  }
@@ -488,7 +488,7 @@ class Mi extends ve {
488
488
  typeof this._$AH == "function" ? this._$AH.call(((n = this.options) == null ? void 0 : n.host) ?? this.element, t) : this._$AH.handleEvent(t);
489
489
  }
490
490
  }
491
- class Ni {
491
+ class Mi {
492
492
  constructor(t, n, i) {
493
493
  this.element = t, this.type = 6, this._$AN = void 0, this._$AM = n, this.options = i;
494
494
  }
@@ -499,14 +499,14 @@ class Ni {
499
499
  Ht(this, t);
500
500
  }
501
501
  }
502
- const qo = { P: Un, A: pt, C: kn, M: 1, L: Pi, R: Di, D: Ai, V: Ht, I: qt, H: ve, N: Oi, U: Mi, B: Ri, F: Ni }, mn = re.litHtmlPolyfillSupport;
503
- mn == null || mn(pe, qt), (re.litHtmlVersions ?? (re.litHtmlVersions = [])).push("3.1.4");
504
- const Yo = (e, t, n) => {
502
+ const Yo = { P: Un, A: pt, C: kn, M: 1, L: Pi, R: Di, D: Ai, V: Ht, I: Yt, H: ve, N: Oi, U: Ni, B: Ri, F: Mi }, mn = se.litHtmlPolyfillSupport;
503
+ mn == null || mn(fe, Yt), (se.litHtmlVersions ?? (se.litHtmlVersions = [])).push("3.1.4");
504
+ const Wo = (e, t, n) => {
505
505
  const i = (n == null ? void 0 : n.renderBefore) ?? t;
506
506
  let o = i._$litPart$;
507
507
  if (o === void 0) {
508
508
  const r = (n == null ? void 0 : n.renderBefore) ?? null;
509
- i._$litPart$ = o = new qt(t.insertBefore(ce(), r), r, void 0, n ?? {});
509
+ i._$litPart$ = o = new Yt(t.insertBefore(he(), r), r, void 0, n ?? {});
510
510
  }
511
511
  return o._$AI(e), o;
512
512
  };
@@ -526,7 +526,7 @@ let Q = class extends Lt {
526
526
  }
527
527
  update(t) {
528
528
  const n = this.render();
529
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = Yo(n, this.renderRoot, this.renderOptions);
529
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = Wo(n, this.renderRoot, this.renderOptions);
530
530
  }
531
531
  connectedCallback() {
532
532
  var t;
@@ -580,28 +580,28 @@ class jn {
580
580
  * Copyright 2020 Google LLC
581
581
  * SPDX-License-Identifier: BSD-3-Clause
582
582
  */
583
- const { I: Wo } = qo, Go = (e) => e.strings === void 0, li = () => document.createComment(""), te = (e, t, n) => {
583
+ const { I: Go } = Yo, Jo = (e) => e.strings === void 0, li = () => document.createComment(""), ee = (e, t, n) => {
584
584
  var r;
585
585
  const i = e._$AA.parentNode, o = t === void 0 ? e._$AB : t._$AA;
586
586
  if (n === void 0) {
587
- const a = i.insertBefore(li(), o), s = i.insertBefore(li(), o);
588
- n = new Wo(a, s, e, e.options);
587
+ const s = i.insertBefore(li(), o), a = i.insertBefore(li(), o);
588
+ n = new Go(s, a, e, e.options);
589
589
  } else {
590
- const a = n._$AB.nextSibling, s = n._$AM, l = s !== e;
590
+ const s = n._$AB.nextSibling, a = n._$AM, l = a !== e;
591
591
  if (l) {
592
592
  let u;
593
- (r = n._$AQ) == null || r.call(n, e), n._$AM = e, n._$AP !== void 0 && (u = e._$AU) !== s._$AU && n._$AP(u);
593
+ (r = n._$AQ) == null || r.call(n, e), n._$AM = e, n._$AP !== void 0 && (u = e._$AU) !== a._$AU && n._$AP(u);
594
594
  }
595
- if (a !== o || l) {
595
+ if (s !== o || l) {
596
596
  let u = n._$AA;
597
- for (; u !== a; ) {
597
+ for (; u !== s; ) {
598
598
  const c = u.nextSibling;
599
599
  i.insertBefore(u, o), u = c;
600
600
  }
601
601
  }
602
602
  }
603
603
  return n;
604
- }, Pt = (e, t, n = e) => (e._$AI(t, n), e), Jo = {}, Ii = (e, t = Jo) => e._$AH = t, Ko = (e) => e._$AH, bn = (e) => {
604
+ }, Pt = (e, t, n = e) => (e._$AI(t, n), e), Ko = {}, Ii = (e, t = Ko) => e._$AH = t, Qo = (e) => e._$AH, bn = (e) => {
605
605
  var i;
606
606
  (i = e._$AP) == null || i.call(e, !1, !0);
607
607
  let t = e._$AA;
@@ -620,7 +620,7 @@ const ui = (e, t, n) => {
620
620
  const i = /* @__PURE__ */ new Map();
621
621
  for (let o = t; o <= n; o++) i.set(e[o], o);
622
622
  return i;
623
- }, Qo = Fn(class extends jn {
623
+ }, tr = Fn(class extends jn {
624
624
  constructor(e) {
625
625
  if (super(e), e.type !== Et.CHILD) throw Error("repeat() can only be used in text expressions");
626
626
  }
@@ -628,42 +628,42 @@ const ui = (e, t, n) => {
628
628
  let i;
629
629
  n === void 0 ? n = t : t !== void 0 && (i = t);
630
630
  const o = [], r = [];
631
- let a = 0;
632
- for (const s of e) o[a] = i ? i(s, a) : a, r[a] = n(s, a), a++;
631
+ let s = 0;
632
+ for (const a of e) o[s] = i ? i(a, s) : s, r[s] = n(a, s), s++;
633
633
  return { values: r, keys: o };
634
634
  }
635
635
  render(e, t, n) {
636
636
  return this.dt(e, t, n).values;
637
637
  }
638
638
  update(e, [t, n, i]) {
639
- const o = Ko(e), { values: r, keys: a } = this.dt(t, n, i);
640
- if (!Array.isArray(o)) return this.ut = a, r;
641
- const s = this.ut ?? (this.ut = []), l = [];
639
+ const o = Qo(e), { values: r, keys: s } = this.dt(t, n, i);
640
+ if (!Array.isArray(o)) return this.ut = s, r;
641
+ const a = this.ut ?? (this.ut = []), l = [];
642
642
  let u, c, d = 0, p = o.length - 1, f = 0, g = r.length - 1;
643
643
  for (; d <= p && f <= g; ) if (o[d] === null) d++;
644
644
  else if (o[p] === null) p--;
645
- else if (s[d] === a[f]) l[f] = Pt(o[d], r[f]), d++, f++;
646
- else if (s[p] === a[g]) l[g] = Pt(o[p], r[g]), p--, g--;
647
- else if (s[d] === a[g]) l[g] = Pt(o[d], r[g]), te(e, l[g + 1], o[d]), d++, g--;
648
- else if (s[p] === a[f]) l[f] = Pt(o[p], r[f]), te(e, o[d], o[p]), p--, f++;
649
- else if (u === void 0 && (u = ui(a, f, g), c = ui(s, d, p)), u.has(s[d])) if (u.has(s[p])) {
650
- const y = c.get(a[f]), D = y !== void 0 ? o[y] : null;
645
+ else if (a[d] === s[f]) l[f] = Pt(o[d], r[f]), d++, f++;
646
+ else if (a[p] === s[g]) l[g] = Pt(o[p], r[g]), p--, g--;
647
+ else if (a[d] === s[g]) l[g] = Pt(o[d], r[g]), ee(e, l[g + 1], o[d]), d++, g--;
648
+ else if (a[p] === s[f]) l[f] = Pt(o[p], r[f]), ee(e, o[d], o[p]), p--, f++;
649
+ else if (u === void 0 && (u = ui(s, f, g), c = ui(a, d, p)), u.has(a[d])) if (u.has(a[p])) {
650
+ const y = c.get(s[f]), D = y !== void 0 ? o[y] : null;
651
651
  if (D === null) {
652
- const U = te(e, o[d]);
652
+ const U = ee(e, o[d]);
653
653
  Pt(U, r[f]), l[f] = U;
654
- } else l[f] = Pt(D, r[f]), te(e, o[d], D), o[y] = null;
654
+ } else l[f] = Pt(D, r[f]), ee(e, o[d], D), o[y] = null;
655
655
  f++;
656
656
  } else bn(o[p]), p--;
657
657
  else bn(o[d]), d++;
658
658
  for (; f <= g; ) {
659
- const y = te(e, l[g + 1]);
659
+ const y = ee(e, l[g + 1]);
660
660
  Pt(y, r[f]), l[f++] = y;
661
661
  }
662
662
  for (; d <= p; ) {
663
663
  const y = o[d++];
664
664
  y !== null && bn(y);
665
665
  }
666
- return this.ut = a, Ii(e, l), rt;
666
+ return this.ut = s, Ii(e, l), rt;
667
667
  }
668
668
  });
669
669
  /**
@@ -673,7 +673,7 @@ const ui = (e, t, n) => {
673
673
  * @preserve
674
674
  */
675
675
  var x = (e) => e !== void 0, Hi = (e, t, n) => t in e ? e[t] : e[t] = n;
676
- const fe = {
676
+ const ge = {
677
677
  ELEMENT: 1,
678
678
  ATTRIBUTE: 2,
679
679
  TEXT: 3,
@@ -687,7 +687,7 @@ const fe = {
687
687
  DOCUMENT_FRAGMENT: 11,
688
688
  NOTATION: 12
689
689
  };
690
- class tr {
690
+ class er {
691
691
  /**
692
692
  * XML DOM parser
693
693
  * @constructor
@@ -719,7 +719,7 @@ function cn(e, t) {
719
719
  return Bi(e, t, []).join("");
720
720
  }
721
721
  function Bi(e, t, n) {
722
- if (e.nodeType === fe.CDATA_SECTION || e.nodeType === fe.TEXT)
722
+ if (e.nodeType === ge.CDATA_SECTION || e.nodeType === ge.TEXT)
723
723
  t ? n.push(String(e.nodeValue).replace(/(\r\n|\r|\n)/g, "")) : n.push(e.nodeValue);
724
724
  else {
725
725
  var i;
@@ -728,34 +728,34 @@ function Bi(e, t, n) {
728
728
  }
729
729
  return n;
730
730
  }
731
- function er(e, t, n, i) {
732
- for (var o = nr(t); o; o = ir(o)) {
733
- var r = o.namespaceURI || null, a = e[r];
734
- if (x(a)) {
735
- var s = a[o.localName];
736
- x(s) && s.call(i, o, n);
731
+ function nr(e, t, n, i) {
732
+ for (var o = ir(t); o; o = or(o)) {
733
+ var r = o.namespaceURI || null, s = e[r];
734
+ if (x(s)) {
735
+ var a = s[o.localName];
736
+ x(a) && a.call(i, o, n);
737
737
  }
738
738
  }
739
739
  }
740
- function nr(e) {
740
+ function ir(e) {
741
741
  let t = e.firstElementChild || e.firstChild;
742
- for (; t && t.nodeType !== fe.ELEMENT; )
742
+ for (; t && t.nodeType !== ge.ELEMENT; )
743
743
  t = t.nextSibling;
744
744
  return t;
745
745
  }
746
- function ir(e) {
746
+ function or(e) {
747
747
  let t = e.nextElementSibling || e.nextSibling;
748
- for (; t && t.nodeType !== fe.ELEMENT; )
748
+ for (; t && t.nodeType !== ge.ELEMENT; )
749
749
  t = t.nextSibling;
750
750
  return t;
751
751
  }
752
752
  function j(e, t, n) {
753
753
  return (
754
754
  /** @type {Object.<string, Object.<string, XMLParser.Parser>>} */
755
- or(e, t, n)
755
+ rr(e, t, n)
756
756
  );
757
757
  }
758
- function or(e, t, n) {
758
+ function rr(e, t, n) {
759
759
  var i = x(n) ? n : {}, o, r;
760
760
  for (o = 0, r = e.length; o < r; ++o)
761
761
  i[e[o]] = t;
@@ -781,7 +781,7 @@ function Vi(e, t) {
781
781
  );
782
782
  }
783
783
  function L(e, t, n, i, o) {
784
- return i.push(e), er(t, n, i, o), i.pop();
784
+ return i.push(e), nr(t, n, i, o), i.pop();
785
785
  }
786
786
  function m(e, t, n) {
787
787
  return (
@@ -796,11 +796,11 @@ function m(e, t, n) {
796
796
  o
797
797
  );
798
798
  if (x(r)) {
799
- var a = (
799
+ var s = (
800
800
  /** @type {Object} */
801
801
  o[o.length - 1]
802
- ), s = x(t) ? t : i.localName;
803
- a[s] = r;
802
+ ), a = x(t) ? t : i.localName;
803
+ s[a] = r;
804
804
  }
805
805
  }
806
806
  );
@@ -818,20 +818,20 @@ function J(e, t, n) {
818
818
  o
819
819
  );
820
820
  if (x(r)) {
821
- var a = (
821
+ var s = (
822
822
  /** @type {Object} */
823
823
  o[o.length - 1]
824
- ), s = x(t) ? t : i.localName, l = Hi(a, s, []);
824
+ ), a = x(t) ? t : i.localName, l = Hi(s, a, []);
825
825
  l.push(r);
826
826
  }
827
827
  }
828
828
  );
829
829
  }
830
- const rr = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;
830
+ const sr = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;
831
831
  function ar(e) {
832
- return e.replace(rr, "");
832
+ return e.replace(sr, "");
833
833
  }
834
- function Nt(e) {
834
+ function Mt(e) {
835
835
  const t = /^\s*(true|1)|(false|0)\s*$/.exec(e);
836
836
  if (t)
837
837
  return x(t[1]) || !1;
@@ -852,15 +852,15 @@ function Ve(e) {
852
852
  if (t)
853
853
  return parseInt(t[1], 10);
854
854
  }
855
- function S(e) {
855
+ function $(e) {
856
856
  return ar(cn(e, !1));
857
857
  }
858
- const sr = "http://www.w3.org/1999/xlink";
858
+ const lr = "http://www.w3.org/1999/xlink";
859
859
  function Zn(e) {
860
- return e.getAttributeNS(sr, "href");
860
+ return e.getAttributeNS(lr, "href");
861
861
  }
862
- function lr(e, t) {
863
- return L({}, Ir, e, t);
862
+ function ur(e, t) {
863
+ return L({}, Hr, e, t);
864
864
  }
865
865
  function Li(e) {
866
866
  return [
@@ -870,7 +870,7 @@ function Li(e) {
870
870
  ft(e.getAttribute("maxy"))
871
871
  ];
872
872
  }
873
- function ur(e, t) {
873
+ function dr(e, t) {
874
874
  const n = Li(e), i = [
875
875
  ft(e.getAttribute("resx")),
876
876
  ft(e.getAttribute("resy"))
@@ -881,19 +881,19 @@ function ur(e, t) {
881
881
  res: i
882
882
  };
883
883
  }
884
- function dr(e, t) {
884
+ function cr(e, t) {
885
885
  const n = Li(e);
886
886
  if (!(!x(n[0]) || !x(n[1]) || !x(n[2]) || !x(n[3])))
887
887
  return n;
888
888
  }
889
- function cr(e, t) {
889
+ function hr(e, t) {
890
890
  const n = parseFloat(e.getAttribute("min")), i = parseFloat(e.getAttribute("max"));
891
891
  return { min: n, max: i };
892
892
  }
893
- function hr(e, t) {
893
+ function pr(e, t) {
894
894
  const n = L(
895
895
  {},
896
- Hr,
896
+ Br,
897
897
  e,
898
898
  t
899
899
  );
@@ -907,41 +907,41 @@ function hr(e, t) {
907
907
  ), r = (
908
908
  /** @type {number|undefined} */
909
909
  n.eastBoundLongitude
910
- ), a = (
910
+ ), s = (
911
911
  /** @type {number|undefined} */
912
912
  n.northBoundLatitude
913
913
  );
914
- if (!(!x(i) || !x(o) || !x(r) || !x(a)))
914
+ if (!(!x(i) || !x(o) || !x(r) || !x(s)))
915
915
  return [
916
916
  i,
917
917
  o,
918
918
  r,
919
- a
919
+ s
920
920
  ];
921
921
  }
922
- function pr(e, t) {
923
- return L({}, Pr, e, t);
924
- }
925
922
  function fr(e, t) {
926
923
  return L({}, Dr, e, t);
927
924
  }
928
925
  function gr(e, t) {
926
+ return L({}, Rr, e, t);
927
+ }
928
+ function mr(e, t) {
929
929
  return L(
930
930
  {},
931
- Rr,
931
+ Or,
932
932
  e,
933
933
  t
934
934
  );
935
935
  }
936
- function mr(e, t) {
936
+ function yr(e, t) {
937
937
  return L(
938
938
  {},
939
- Or,
939
+ Nr,
940
940
  e,
941
941
  t
942
942
  );
943
943
  }
944
- function yr(e, t) {
944
+ function br(e, t) {
945
945
  return L(
946
946
  {},
947
947
  Mr,
@@ -949,16 +949,16 @@ function yr(e, t) {
949
949
  t
950
950
  );
951
951
  }
952
- function br(e, t) {
952
+ function vr(e, t) {
953
953
  return L(
954
954
  [],
955
- Nr,
955
+ Ir,
956
956
  e,
957
957
  t
958
958
  );
959
959
  }
960
- function vr(e, t) {
961
- const n = Nt(e.getAttribute("queryable"));
960
+ function wr(e, t) {
961
+ const n = Mt(e.getAttribute("queryable"));
962
962
  return L(
963
963
  {
964
964
  queryable: x(n) ? n : !1
@@ -968,7 +968,7 @@ function vr(e, t) {
968
968
  t
969
969
  );
970
970
  }
971
- function wr(e, t) {
971
+ function Er(e, t) {
972
972
  var n = (
973
973
  /** @type {Object.<string,*>} */
974
974
  t[t.length - 1]
@@ -983,14 +983,14 @@ function wr(e, t) {
983
983
  )
984
984
  );
985
985
  if (!x(i)) return;
986
- let o = Nt(e.getAttribute("queryable"));
986
+ let o = Mt(e.getAttribute("queryable"));
987
987
  x(o) || (o = n.queryable), i.queryable = x(o) ? o : !1;
988
988
  let r = Ve(e.getAttribute("cascaded"));
989
989
  x(r) || (r = n.cascaded), i.cascaded = r;
990
- let a = Nt(e.getAttribute("opaque"));
991
- x(a) || (a = n.opaque), i.opaque = x(a) ? a : !1;
992
- let s = Nt(e.getAttribute("noSubsets"));
993
- x(s) || (s = n.noSubsets), i.noSubsets = x(s) ? s : !1;
990
+ let s = Mt(e.getAttribute("opaque"));
991
+ x(s) || (s = n.opaque), i.opaque = x(s) ? s : !1;
992
+ let a = Mt(e.getAttribute("noSubsets"));
993
+ x(a) || (a = n.noSubsets), i.noSubsets = x(a) ? a : !1;
994
994
  let l = ft(e.getAttribute("fixedWidth"));
995
995
  x(l) || (l = n.fixedWidth), i.fixedWidth = l;
996
996
  let u = ft(e.getAttribute("fixedHeight"));
@@ -1020,37 +1020,37 @@ function wr(e, t) {
1020
1020
  }
1021
1021
  return i;
1022
1022
  }
1023
- function Er(e, t) {
1023
+ function xr(e, t) {
1024
1024
  return {
1025
1025
  name: e.getAttribute("name"),
1026
1026
  units: e.getAttribute("units"),
1027
1027
  unitSymbol: e.getAttribute("unitSymbol"),
1028
1028
  default: e.getAttribute("default"),
1029
- multipleValues: Nt(e.getAttribute("multipleValues")),
1030
- nearestValue: Nt(e.getAttribute("nearestValue")),
1031
- current: Nt(e.getAttribute("current")),
1032
- values: S(e)
1029
+ multipleValues: Mt(e.getAttribute("multipleValues")),
1030
+ nearestValue: Mt(e.getAttribute("nearestValue")),
1031
+ current: Mt(e.getAttribute("current")),
1032
+ values: $(e)
1033
1033
  };
1034
1034
  }
1035
1035
  function mt(e, t) {
1036
1036
  return L(
1037
1037
  {},
1038
- Fr,
1038
+ jr,
1039
1039
  e,
1040
1040
  t
1041
1041
  );
1042
1042
  }
1043
- function xr(e, t) {
1044
- return L({}, Br, e, t);
1043
+ function Sr(e, t) {
1044
+ return L({}, Vr, e, t);
1045
1045
  }
1046
1046
  function $r(e, t) {
1047
- return L({}, Lr, e, t);
1048
- }
1049
- function Sr(e, t) {
1050
1047
  return L({}, Ur, e, t);
1051
1048
  }
1049
+ function _r(e, t) {
1050
+ return L({}, kr, e, t);
1051
+ }
1052
1052
  function wn(e, t) {
1053
- return L({}, Vr, e, t);
1053
+ return L({}, Lr, e, t);
1054
1054
  }
1055
1055
  function Ui(e, t) {
1056
1056
  var n = mt(e, t);
@@ -1062,23 +1062,23 @@ function Ui(e, t) {
1062
1062
  return n.size = i, n;
1063
1063
  }
1064
1064
  }
1065
- function _r(e, t) {
1065
+ function Ar(e, t) {
1066
1066
  var n = mt(e, t);
1067
1067
  if (x(n))
1068
1068
  return n.name = e.getAttribute("name"), n;
1069
1069
  }
1070
- function Ar(e, t) {
1070
+ function Cr(e, t) {
1071
1071
  var n = mt(e, t);
1072
1072
  if (x(n))
1073
1073
  return n.type = e.getAttribute("type"), n;
1074
1074
  }
1075
- function Cr(e, t) {
1076
- return L({}, kr, e, t);
1075
+ function Tr(e, t) {
1076
+ return L({}, Fr, e, t);
1077
1077
  }
1078
1078
  function ki(e, t) {
1079
1079
  return L(
1080
1080
  [],
1081
- jr,
1081
+ Zr,
1082
1082
  e,
1083
1083
  t
1084
1084
  );
@@ -1086,103 +1086,103 @@ function ki(e, t) {
1086
1086
  const Z = [
1087
1087
  null,
1088
1088
  "http://www.opengis.net/wms"
1089
- ], Tr = j(
1089
+ ], Pr = j(
1090
1090
  Z,
1091
1091
  {
1092
- Service: m(fr),
1093
- Capability: m(pr)
1092
+ Service: m(gr),
1093
+ Capability: m(fr)
1094
1094
  }
1095
- ), Pr = j(
1095
+ ), Dr = j(
1096
1096
  Z,
1097
1097
  {
1098
- Request: m(xr),
1099
- Exception: m(br),
1100
- Layer: m(vr)
1098
+ Request: m(Sr),
1099
+ Exception: m(vr),
1100
+ Layer: m(wr)
1101
1101
  }
1102
- ), Dr = j(
1102
+ ), Rr = j(
1103
1103
  Z,
1104
1104
  {
1105
- Name: m(S),
1106
- Title: m(S),
1107
- Abstract: m(S),
1105
+ Name: m($),
1106
+ Title: m($),
1107
+ Abstract: m($),
1108
1108
  KeywordList: m(ki),
1109
1109
  OnlineResource: m(Zn),
1110
- ContactInformation: m(gr),
1111
- Fees: m(S),
1112
- AccessConstraints: m(S),
1110
+ ContactInformation: m(mr),
1111
+ Fees: m($),
1112
+ AccessConstraints: m($),
1113
1113
  LayerLimit: m(vn),
1114
1114
  MaxWidth: m(vn),
1115
1115
  MaxHeight: m(vn)
1116
1116
  }
1117
- ), Rr = j(
1117
+ ), Or = j(
1118
1118
  Z,
1119
1119
  {
1120
- ContactPersonPrimary: m(mr),
1121
- ContactPosition: m(S),
1122
- ContactAddress: m(yr),
1123
- ContactVoiceTelephone: m(S),
1124
- ContactFacsimileTelephone: m(S),
1125
- ContactElectronicMailAddress: m(S)
1120
+ ContactPersonPrimary: m(yr),
1121
+ ContactPosition: m($),
1122
+ ContactAddress: m(br),
1123
+ ContactVoiceTelephone: m($),
1124
+ ContactFacsimileTelephone: m($),
1125
+ ContactElectronicMailAddress: m($)
1126
1126
  }
1127
- ), Or = j(
1127
+ ), Nr = j(
1128
1128
  Z,
1129
1129
  {
1130
- ContactPerson: m(S),
1131
- ContactOrganization: m(S)
1130
+ ContactPerson: m($),
1131
+ ContactOrganization: m($)
1132
1132
  }
1133
1133
  ), Mr = j(
1134
1134
  Z,
1135
1135
  {
1136
- AddressType: m(S),
1137
- Address: m(S),
1138
- City: m(S),
1139
- StateOrProvince: m(S),
1140
- PostCode: m(S),
1141
- Country: m(S)
1136
+ AddressType: m($),
1137
+ Address: m($),
1138
+ City: m($),
1139
+ StateOrProvince: m($),
1140
+ PostCode: m($),
1141
+ Country: m($)
1142
1142
  }
1143
- ), Nr = j(
1143
+ ), Ir = j(
1144
1144
  Z,
1145
1145
  {
1146
- Format: Vi(S)
1146
+ Format: Vi($)
1147
1147
  }
1148
1148
  ), Fi = j(
1149
1149
  Z,
1150
1150
  {
1151
- Name: m(S),
1152
- Title: m(S),
1153
- Abstract: m(S),
1151
+ Name: m($),
1152
+ Title: m($),
1153
+ Abstract: m($),
1154
1154
  KeywordList: m(ki),
1155
- CRS: J(S),
1156
- SRS: J(S),
1157
- EX_GeographicBoundingBox: m(hr),
1158
- LatLonBoundingBox: m(dr),
1159
- BoundingBox: J(ur),
1160
- Dimension: J(Er),
1161
- Attribution: m(lr),
1162
- AuthorityURL: J(_r),
1163
- Identifier: J(S),
1164
- MetadataURL: J(Ar),
1155
+ CRS: J($),
1156
+ SRS: J($),
1157
+ EX_GeographicBoundingBox: m(pr),
1158
+ LatLonBoundingBox: m(cr),
1159
+ BoundingBox: J(dr),
1160
+ Dimension: J(xr),
1161
+ Attribution: m(ur),
1162
+ AuthorityURL: J(Ar),
1163
+ Identifier: J($),
1164
+ MetadataURL: J(Cr),
1165
1165
  DataURL: J(mt),
1166
1166
  FeatureListURL: J(mt),
1167
- Style: J(Cr),
1167
+ Style: J(Tr),
1168
1168
  MinScaleDenominator: m(kt),
1169
1169
  MaxScaleDenominator: m(kt),
1170
- ScaleHint: m(cr),
1171
- Layer: J(wr)
1170
+ ScaleHint: m(hr),
1171
+ Layer: J(Er)
1172
1172
  }
1173
- ), Ir = j(
1173
+ ), Hr = j(
1174
1174
  Z,
1175
1175
  {
1176
- Title: m(S),
1176
+ Title: m($),
1177
1177
  OnlineResource: m(Zn),
1178
1178
  LogoURL: m(Ui)
1179
1179
  }
1180
- ), Hr = j(Z, {
1180
+ ), Br = j(Z, {
1181
1181
  westBoundLongitude: m(kt),
1182
1182
  eastBoundLongitude: m(kt),
1183
1183
  southBoundLatitude: m(kt),
1184
1184
  northBoundLatitude: m(kt)
1185
- }), Br = j(
1185
+ }), Vr = j(
1186
1186
  Z,
1187
1187
  {
1188
1188
  GetCapabilities: m(
@@ -1195,22 +1195,22 @@ const Z = [
1195
1195
  wn
1196
1196
  )
1197
1197
  }
1198
- ), Vr = j(
1198
+ ), Lr = j(
1199
1199
  Z,
1200
1200
  {
1201
- Format: J(S),
1201
+ Format: J($),
1202
1202
  DCPType: J(
1203
1203
  $r
1204
1204
  )
1205
1205
  }
1206
- ), Lr = j(
1206
+ ), Ur = j(
1207
1207
  Z,
1208
1208
  {
1209
1209
  HTTP: m(
1210
- Sr
1210
+ _r
1211
1211
  )
1212
1212
  }
1213
- ), Ur = j(
1213
+ ), kr = j(
1214
1214
  Z,
1215
1215
  {
1216
1216
  Get: m(
@@ -1220,29 +1220,29 @@ const Z = [
1220
1220
  mt
1221
1221
  )
1222
1222
  }
1223
- ), kr = j(
1223
+ ), Fr = j(
1224
1224
  Z,
1225
1225
  {
1226
- Name: m(S),
1227
- Title: m(S),
1228
- Abstract: m(S),
1226
+ Name: m($),
1227
+ Title: m($),
1228
+ Abstract: m($),
1229
1229
  LegendURL: J(Ui),
1230
1230
  StyleSheetURL: m(mt),
1231
1231
  StyleURL: m(mt)
1232
1232
  }
1233
- ), Fr = j(
1233
+ ), jr = j(
1234
1234
  Z,
1235
1235
  {
1236
- Format: m(S),
1236
+ Format: m($),
1237
1237
  OnlineResource: m(Zn)
1238
1238
  }
1239
- ), jr = j(
1239
+ ), Zr = j(
1240
1240
  Z,
1241
1241
  {
1242
- Keyword: Vi(S)
1242
+ Keyword: Vi($)
1243
1243
  }
1244
1244
  );
1245
- class Zr {
1245
+ class zr {
1246
1246
  /**
1247
1247
  * WMS Capabilities parser
1248
1248
  *
@@ -1250,7 +1250,7 @@ class Zr {
1250
1250
  * @constructor
1251
1251
  */
1252
1252
  constructor(t, n) {
1253
- !n && typeof window < "u" && (n = window.DOMParser), this.version = void 0, this._parser = new tr(n), this._data = t;
1253
+ !n && typeof window < "u" && (n = window.DOMParser), this.version = void 0, this._parser = new er(n), this._data = t;
1254
1254
  }
1255
1255
  /**
1256
1256
  * @param {String} xmlString
@@ -1279,7 +1279,7 @@ class Zr {
1279
1279
  */
1280
1280
  readFromDocument(t) {
1281
1281
  for (let n = t.firstChild; n; n = n.nextSibling)
1282
- if (n.nodeType == fe.ELEMENT)
1282
+ if (n.nodeType == ge.ELEMENT)
1283
1283
  return this.readFromNode(n);
1284
1284
  return null;
1285
1285
  }
@@ -1290,17 +1290,17 @@ class Zr {
1290
1290
  readFromNode(t) {
1291
1291
  return this.version = t.getAttribute("version"), L({
1292
1292
  version: this.version
1293
- }, Tr, t, []) || null;
1293
+ }, Pr, t, []) || null;
1294
1294
  }
1295
1295
  }
1296
- async function zr(e) {
1296
+ async function Xr(e) {
1297
1297
  let t = new URL(e), n = t.searchParams;
1298
1298
  n.set("SERVICE", "WMS"), n.set("REQUEST", "GetCapabilities");
1299
1299
  let i = t.toString();
1300
1300
  const o = await fetch(i);
1301
1301
  if (o.ok) {
1302
1302
  const r = await o.text();
1303
- return new Zr(r).toJSON();
1303
+ return new zr(r).toJSON();
1304
1304
  } else
1305
1305
  throw new Error(`Error: ${o.status}`);
1306
1306
  }
@@ -1308,7 +1308,7 @@ function zn(e) {
1308
1308
  const t = /\b(?:wms|ows)\b/i, n = /{(?:z|x|y-?)}\/{(?:z|x|y-?)}\/{(?:z|x|y-?)}/i;
1309
1309
  return t.test(e) ? "TileWMS" : n.test(e) ? "XYZ" : !1;
1310
1310
  }
1311
- function Xr(e) {
1311
+ function qr(e) {
1312
1312
  const n = /^(?:(?:https?|ftp):\/\/|\/\/)?(?:localhost|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}|(?:\w+[\w-]*\.)+\w+)(?::\d+)?(?:\/\S*)?$/.test(e), i = zn(e);
1313
1313
  return !!(e && n && i);
1314
1314
  }
@@ -1318,19 +1318,19 @@ function ji(e) {
1318
1318
  '"$2": '
1319
1319
  ).replace(/,\s*}/g, "}").replace(/,\s*]/g, "]").replace(/\s*(\{|}|\[|\]|,)\s*/g, "$1").replaceAll('": //', "://");
1320
1320
  }
1321
- function qr(e) {
1321
+ function Yr(e) {
1322
1322
  try {
1323
1323
  return JSON.parse(ji(e)), !!e;
1324
1324
  } catch {
1325
1325
  return !1;
1326
1326
  }
1327
1327
  }
1328
- function Yr(e, t) {
1328
+ function Wr(e, t) {
1329
1329
  const n = new URL(e).searchParams;
1330
- Object.entries(t).forEach(([a, s]) => {
1331
- typeof s == "object" && !Array.isArray(s) && s !== null ? Object.keys(s).forEach((l) => {
1332
- n.set(l, s[l]);
1333
- }) : n.set(a, s);
1330
+ Object.entries(t).forEach(([s, a]) => {
1331
+ typeof a == "object" && !Array.isArray(a) && a !== null ? Object.keys(a).forEach((l) => {
1332
+ n.set(l, a[l]);
1333
+ }) : n.set(s, a);
1334
1334
  });
1335
1335
  const i = e.split("?")[0], o = n.toString();
1336
1336
  return `${i}?${o}`;
@@ -1355,7 +1355,7 @@ function ct(e) {
1355
1355
  for (var t = 1; t < arguments.length; t++) {
1356
1356
  var n = arguments[t] != null ? arguments[t] : {};
1357
1357
  t % 2 ? di(Object(n), !0).forEach(function(i) {
1358
- Wr(e, i, n[i]);
1358
+ Gr(e, i, n[i]);
1359
1359
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : di(Object(n)).forEach(function(i) {
1360
1360
  Object.defineProperty(e, i, Object.getOwnPropertyDescriptor(n, i));
1361
1361
  });
@@ -1370,7 +1370,7 @@ function Pe(e) {
1370
1370
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
1371
1371
  }, Pe(e);
1372
1372
  }
1373
- function Wr(e, t, n) {
1373
+ function Gr(e, t, n) {
1374
1374
  return t in e ? Object.defineProperty(e, t, {
1375
1375
  value: n,
1376
1376
  enumerable: !0,
@@ -1388,16 +1388,16 @@ function yt() {
1388
1388
  return e;
1389
1389
  }, yt.apply(this, arguments);
1390
1390
  }
1391
- function Gr(e, t) {
1391
+ function Jr(e, t) {
1392
1392
  if (e == null) return {};
1393
1393
  var n = {}, i = Object.keys(e), o, r;
1394
1394
  for (r = 0; r < i.length; r++)
1395
1395
  o = i[r], !(t.indexOf(o) >= 0) && (n[o] = e[o]);
1396
1396
  return n;
1397
1397
  }
1398
- function Jr(e, t) {
1398
+ function Kr(e, t) {
1399
1399
  if (e == null) return {};
1400
- var n = Gr(e, t), i, o;
1400
+ var n = Jr(e, t), i, o;
1401
1401
  if (Object.getOwnPropertySymbols) {
1402
1402
  var r = Object.getOwnPropertySymbols(e);
1403
1403
  for (o = 0; o < r.length; o++)
@@ -1405,7 +1405,7 @@ function Jr(e, t) {
1405
1405
  }
1406
1406
  return n;
1407
1407
  }
1408
- var Kr = "1.15.2";
1408
+ var Qr = "1.15.2";
1409
1409
  function gt(e) {
1410
1410
  if (typeof window < "u" && window.navigator)
1411
1411
  return !!/* @__PURE__ */ navigator.userAgent.match(e);
@@ -1417,7 +1417,7 @@ var bt = gt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), we = gt(/E
1417
1417
  function _(e, t, n) {
1418
1418
  e.addEventListener(t, n, !bt && Xi);
1419
1419
  }
1420
- function $(e, t, n) {
1420
+ function S(e, t, n) {
1421
1421
  e.removeEventListener(t, n, !bt && Xi);
1422
1422
  }
1423
1423
  function Le(e, t) {
@@ -1436,7 +1436,7 @@ function Le(e, t) {
1436
1436
  return !1;
1437
1437
  }
1438
1438
  }
1439
- function Qr(e) {
1439
+ function ts(e) {
1440
1440
  return e.host && e !== document && e.host.nodeType ? e.host : e.parentNode;
1441
1441
  }
1442
1442
  function ut(e, t, n, i) {
@@ -1446,7 +1446,7 @@ function ut(e, t, n, i) {
1446
1446
  if (t != null && (t[0] === ">" ? e.parentNode === n && Le(e, t) : Le(e, t)) || i && e === n)
1447
1447
  return e;
1448
1448
  if (e === n) break;
1449
- } while (e = Qr(e));
1449
+ } while (e = ts(e));
1450
1450
  }
1451
1451
  return null;
1452
1452
  }
@@ -1496,22 +1496,22 @@ function dt() {
1496
1496
  }
1497
1497
  function H(e, t, n, i, o) {
1498
1498
  if (!(!e.getBoundingClientRect && e !== window)) {
1499
- var r, a, s, l, u, c, d;
1500
- if (e !== window && e.parentNode && e !== dt() ? (r = e.getBoundingClientRect(), a = r.top, s = r.left, l = r.bottom, u = r.right, c = r.height, d = r.width) : (a = 0, s = 0, l = window.innerHeight, u = window.innerWidth, c = window.innerHeight, d = window.innerWidth), (t || n) && e !== window && (o = o || e.parentNode, !bt))
1499
+ var r, s, a, l, u, c, d;
1500
+ if (e !== window && e.parentNode && e !== dt() ? (r = e.getBoundingClientRect(), s = r.top, a = r.left, l = r.bottom, u = r.right, c = r.height, d = r.width) : (s = 0, a = 0, l = window.innerHeight, u = window.innerWidth, c = window.innerHeight, d = window.innerWidth), (t || n) && e !== window && (o = o || e.parentNode, !bt))
1501
1501
  do
1502
1502
  if (o && o.getBoundingClientRect && (b(o, "transform") !== "none" || n && b(o, "position") !== "static")) {
1503
1503
  var p = o.getBoundingClientRect();
1504
- a -= p.top + parseInt(b(o, "border-top-width")), s -= p.left + parseInt(b(o, "border-left-width")), l = a + r.height, u = s + r.width;
1504
+ s -= p.top + parseInt(b(o, "border-top-width")), a -= p.left + parseInt(b(o, "border-left-width")), l = s + r.height, u = a + r.width;
1505
1505
  break;
1506
1506
  }
1507
1507
  while (o = o.parentNode);
1508
1508
  if (i && e !== window) {
1509
1509
  var f = jt(o || e), g = f && f.a, y = f && f.d;
1510
- f && (a /= y, s /= g, d /= g, c /= y, l = a + c, u = s + d);
1510
+ f && (s /= y, a /= g, d /= g, c /= y, l = s + c, u = a + d);
1511
1511
  }
1512
1512
  return {
1513
- top: a,
1514
- left: s,
1513
+ top: s,
1514
+ left: a,
1515
1515
  bottom: l,
1516
1516
  right: u,
1517
1517
  width: d,
@@ -1520,19 +1520,19 @@ function H(e, t, n, i, o) {
1520
1520
  }
1521
1521
  }
1522
1522
  function pi(e, t, n) {
1523
- for (var i = St(e, !0), o = H(e)[t]; i; ) {
1524
- var r = H(i)[n], a = void 0;
1525
- if (a = o >= r, !a) return i;
1523
+ for (var i = $t(e, !0), o = H(e)[t]; i; ) {
1524
+ var r = H(i)[n], s = void 0;
1525
+ if (s = o >= r, !s) return i;
1526
1526
  if (i === dt()) break;
1527
- i = St(i, !1);
1527
+ i = $t(i, !1);
1528
1528
  }
1529
1529
  return !1;
1530
1530
  }
1531
- function zt(e, t, n, i) {
1532
- for (var o = 0, r = 0, a = e.children; r < a.length; ) {
1533
- if (a[r].style.display !== "none" && a[r] !== v.ghost && (i || a[r] !== v.dragged) && ut(a[r], n.draggable, e, !1)) {
1531
+ function Xt(e, t, n, i) {
1532
+ for (var o = 0, r = 0, s = e.children; r < s.length; ) {
1533
+ if (s[r].style.display !== "none" && s[r] !== v.ghost && (i || s[r] !== v.dragged) && ut(s[r], n.draggable, e, !1)) {
1534
1534
  if (o === t)
1535
- return a[r];
1535
+ return s[r];
1536
1536
  o++;
1537
1537
  }
1538
1538
  r++;
@@ -1556,12 +1556,12 @@ function fi(e) {
1556
1556
  var t = 0, n = 0, i = dt();
1557
1557
  if (e)
1558
1558
  do {
1559
- var o = jt(e), r = o.a, a = o.d;
1560
- t += e.scrollLeft * r, n += e.scrollTop * a;
1559
+ var o = jt(e), r = o.a, s = o.d;
1560
+ t += e.scrollLeft * r, n += e.scrollTop * s;
1561
1561
  } while (e !== i && (e = e.parentNode));
1562
1562
  return [t, n];
1563
1563
  }
1564
- function ta(e, t) {
1564
+ function es(e, t) {
1565
1565
  for (var n in e)
1566
1566
  if (e.hasOwnProperty(n)) {
1567
1567
  for (var i in t)
@@ -1569,7 +1569,7 @@ function ta(e, t) {
1569
1569
  }
1570
1570
  return -1;
1571
1571
  }
1572
- function St(e, t) {
1572
+ function $t(e, t) {
1573
1573
  if (!e || !e.getBoundingClientRect) return dt();
1574
1574
  var n = e, i = !1;
1575
1575
  do
@@ -1584,7 +1584,7 @@ function St(e, t) {
1584
1584
  while (n = n.parentNode);
1585
1585
  return dt();
1586
1586
  }
1587
- function ea(e, t) {
1587
+ function ns(e, t) {
1588
1588
  if (e && t)
1589
1589
  for (var n in t)
1590
1590
  t.hasOwnProperty(n) && (e[n] = t[n]);
@@ -1593,19 +1593,19 @@ function ea(e, t) {
1593
1593
  function En(e, t) {
1594
1594
  return Math.round(e.top) === Math.round(t.top) && Math.round(e.left) === Math.round(t.left) && Math.round(e.height) === Math.round(t.height) && Math.round(e.width) === Math.round(t.width);
1595
1595
  }
1596
- var se;
1596
+ var le;
1597
1597
  function Yi(e, t) {
1598
1598
  return function() {
1599
- if (!se) {
1599
+ if (!le) {
1600
1600
  var n = arguments, i = this;
1601
- n.length === 1 ? e.call(i, n[0]) : e.apply(i, n), se = setTimeout(function() {
1602
- se = void 0;
1601
+ n.length === 1 ? e.call(i, n[0]) : e.apply(i, n), le = setTimeout(function() {
1602
+ le = void 0;
1603
1603
  }, t);
1604
1604
  }
1605
1605
  };
1606
1606
  }
1607
- function na() {
1608
- clearTimeout(se), se = void 0;
1607
+ function is() {
1608
+ clearTimeout(le), le = void 0;
1609
1609
  }
1610
1610
  function Wi(e, t, n) {
1611
1611
  e.scrollLeft += t, e.scrollTop += n;
@@ -1617,15 +1617,15 @@ function Gi(e) {
1617
1617
  function Ji(e, t, n) {
1618
1618
  var i = {};
1619
1619
  return Array.from(e.children).forEach(function(o) {
1620
- var r, a, s, l;
1620
+ var r, s, a, l;
1621
1621
  if (!(!ut(o, t.draggable, e, !1) || o.animated || o === n)) {
1622
1622
  var u = H(o);
1623
- i.left = Math.min((r = i.left) !== null && r !== void 0 ? r : 1 / 0, u.left), i.top = Math.min((a = i.top) !== null && a !== void 0 ? a : 1 / 0, u.top), i.right = Math.max((s = i.right) !== null && s !== void 0 ? s : -1 / 0, u.right), i.bottom = Math.max((l = i.bottom) !== null && l !== void 0 ? l : -1 / 0, u.bottom);
1623
+ i.left = Math.min((r = i.left) !== null && r !== void 0 ? r : 1 / 0, u.left), i.top = Math.min((s = i.top) !== null && s !== void 0 ? s : 1 / 0, u.top), i.right = Math.max((a = i.right) !== null && a !== void 0 ? a : -1 / 0, u.right), i.bottom = Math.max((l = i.bottom) !== null && l !== void 0 ? l : -1 / 0, u.bottom);
1624
1624
  }
1625
1625
  }), i.width = i.right - i.left, i.height = i.bottom - i.top, i.x = i.left, i.y = i.top, i;
1626
1626
  }
1627
1627
  var it = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
1628
- function ia() {
1628
+ function os() {
1629
1629
  var e = [], t;
1630
1630
  return {
1631
1631
  captureAnimationState: function() {
@@ -1639,8 +1639,8 @@ function ia() {
1639
1639
  });
1640
1640
  var r = ct({}, e[e.length - 1].rect);
1641
1641
  if (o.thisAnimationDuration) {
1642
- var a = jt(o, !0);
1643
- a && (r.top -= a.f, r.left -= a.e);
1642
+ var s = jt(o, !0);
1643
+ s && (r.top -= s.f, r.left -= s.e);
1644
1644
  }
1645
1645
  o.fromRect = r;
1646
1646
  }
@@ -1651,7 +1651,7 @@ function ia() {
1651
1651
  e.push(i);
1652
1652
  },
1653
1653
  removeAnimationState: function(i) {
1654
- e.splice(ta(e, {
1654
+ e.splice(es(e, {
1655
1655
  target: i
1656
1656
  }), 1);
1657
1657
  },
@@ -1661,32 +1661,32 @@ function ia() {
1661
1661
  clearTimeout(t), typeof i == "function" && i();
1662
1662
  return;
1663
1663
  }
1664
- var r = !1, a = 0;
1665
- e.forEach(function(s) {
1666
- var l = 0, u = s.target, c = u.fromRect, d = H(u), p = u.prevFromRect, f = u.prevToRect, g = s.rect, y = jt(u, !0);
1664
+ var r = !1, s = 0;
1665
+ e.forEach(function(a) {
1666
+ var l = 0, u = a.target, c = u.fromRect, d = H(u), p = u.prevFromRect, f = u.prevToRect, g = a.rect, y = jt(u, !0);
1667
1667
  y && (d.top -= y.f, d.left -= y.e), u.toRect = d, u.thisAnimationDuration && En(p, d) && !En(c, d) && // Make sure animatingRect is on line between toRect & fromRect
1668
- (g.top - d.top) / (g.left - d.left) === (c.top - d.top) / (c.left - d.left) && (l = ra(g, p, f, o.options)), En(d, c) || (u.prevFromRect = c, u.prevToRect = d, l || (l = o.options.animation), o.animate(u, g, d, l)), l && (r = !0, a = Math.max(a, l), clearTimeout(u.animationResetTimer), u.animationResetTimer = setTimeout(function() {
1668
+ (g.top - d.top) / (g.left - d.left) === (c.top - d.top) / (c.left - d.left) && (l = ss(g, p, f, o.options)), En(d, c) || (u.prevFromRect = c, u.prevToRect = d, l || (l = o.options.animation), o.animate(u, g, d, l)), l && (r = !0, s = Math.max(s, l), clearTimeout(u.animationResetTimer), u.animationResetTimer = setTimeout(function() {
1669
1669
  u.animationTime = 0, u.prevFromRect = null, u.fromRect = null, u.prevToRect = null, u.thisAnimationDuration = null;
1670
1670
  }, l), u.thisAnimationDuration = l);
1671
1671
  }), clearTimeout(t), r ? t = setTimeout(function() {
1672
1672
  typeof i == "function" && i();
1673
- }, a) : typeof i == "function" && i(), e = [];
1673
+ }, s) : typeof i == "function" && i(), e = [];
1674
1674
  },
1675
- animate: function(i, o, r, a) {
1676
- if (a) {
1675
+ animate: function(i, o, r, s) {
1676
+ if (s) {
1677
1677
  b(i, "transition", ""), b(i, "transform", "");
1678
- var s = jt(this.el), l = s && s.a, u = s && s.d, c = (o.left - r.left) / (l || 1), d = (o.top - r.top) / (u || 1);
1679
- i.animatingX = !!c, i.animatingY = !!d, b(i, "transform", "translate3d(" + c + "px," + d + "px,0)"), this.forRepaintDummy = oa(i), b(i, "transition", "transform " + a + "ms" + (this.options.easing ? " " + this.options.easing : "")), b(i, "transform", "translate3d(0,0,0)"), typeof i.animated == "number" && clearTimeout(i.animated), i.animated = setTimeout(function() {
1678
+ var a = jt(this.el), l = a && a.a, u = a && a.d, c = (o.left - r.left) / (l || 1), d = (o.top - r.top) / (u || 1);
1679
+ i.animatingX = !!c, i.animatingY = !!d, b(i, "transform", "translate3d(" + c + "px," + d + "px,0)"), this.forRepaintDummy = rs(i), b(i, "transition", "transform " + s + "ms" + (this.options.easing ? " " + this.options.easing : "")), b(i, "transform", "translate3d(0,0,0)"), typeof i.animated == "number" && clearTimeout(i.animated), i.animated = setTimeout(function() {
1680
1680
  b(i, "transition", ""), b(i, "transform", ""), i.animated = !1, i.animatingX = !1, i.animatingY = !1;
1681
- }, a);
1681
+ }, s);
1682
1682
  }
1683
1683
  }
1684
1684
  };
1685
1685
  }
1686
- function oa(e) {
1686
+ function rs(e) {
1687
1687
  return e.offsetWidth;
1688
1688
  }
1689
- function ra(e, t, n, i) {
1689
+ function ss(e, t, n, i) {
1690
1690
  return Math.sqrt(Math.pow(t.top - e.top, 2) + Math.pow(t.left - e.left, 2)) / Math.sqrt(Math.pow(t.top - n.top, 2) + Math.pow(t.left - n.left, 2)) * i.animation;
1691
1691
  }
1692
1692
  var Bt = [], xn = {
@@ -1706,26 +1706,26 @@ var Bt = [], xn = {
1706
1706
  o.eventCanceled = !0;
1707
1707
  };
1708
1708
  var r = t + "Global";
1709
- Bt.forEach(function(a) {
1710
- n[a.pluginName] && (n[a.pluginName][r] && n[a.pluginName][r](ct({
1709
+ Bt.forEach(function(s) {
1710
+ n[s.pluginName] && (n[s.pluginName][r] && n[s.pluginName][r](ct({
1711
1711
  sortable: n
1712
- }, i)), n.options[a.pluginName] && n[a.pluginName][t] && n[a.pluginName][t](ct({
1712
+ }, i)), n.options[s.pluginName] && n[s.pluginName][t] && n[s.pluginName][t](ct({
1713
1713
  sortable: n
1714
1714
  }, i)));
1715
1715
  });
1716
1716
  },
1717
1717
  initializePlugins: function(t, n, i, o) {
1718
- Bt.forEach(function(s) {
1719
- var l = s.pluginName;
1720
- if (!(!t.options[l] && !s.initializeByDefault)) {
1721
- var u = new s(t, n, t.options);
1718
+ Bt.forEach(function(a) {
1719
+ var l = a.pluginName;
1720
+ if (!(!t.options[l] && !a.initializeByDefault)) {
1721
+ var u = new a(t, n, t.options);
1722
1722
  u.sortable = t, u.options = t.options, t[l] = u, yt(i, u.defaults);
1723
1723
  }
1724
1724
  });
1725
1725
  for (var r in t.options)
1726
1726
  if (t.options.hasOwnProperty(r)) {
1727
- var a = this.modifyOption(t, r, t.options[r]);
1728
- typeof a < "u" && (t.options[r] = a);
1727
+ var s = this.modifyOption(t, r, t.options[r]);
1728
+ typeof s < "u" && (t.options[r] = s);
1729
1729
  }
1730
1730
  },
1731
1731
  getEventProperties: function(t, n) {
@@ -1741,69 +1741,69 @@ var Bt = [], xn = {
1741
1741
  }), o;
1742
1742
  }
1743
1743
  };
1744
- function aa(e) {
1745
- var t = e.sortable, n = e.rootEl, i = e.name, o = e.targetEl, r = e.cloneEl, a = e.toEl, s = e.fromEl, l = e.oldIndex, u = e.newIndex, c = e.oldDraggableIndex, d = e.newDraggableIndex, p = e.originalEvent, f = e.putSortable, g = e.extraEventProperties;
1744
+ function as(e) {
1745
+ var t = e.sortable, n = e.rootEl, i = e.name, o = e.targetEl, r = e.cloneEl, s = e.toEl, a = e.fromEl, l = e.oldIndex, u = e.newIndex, c = e.oldDraggableIndex, d = e.newDraggableIndex, p = e.originalEvent, f = e.putSortable, g = e.extraEventProperties;
1746
1746
  if (t = t || n && n[it], !!t) {
1747
1747
  var y, D = t.options, U = "on" + i.charAt(0).toUpperCase() + i.substr(1);
1748
1748
  window.CustomEvent && !bt && !we ? y = new CustomEvent(i, {
1749
1749
  bubbles: !0,
1750
1750
  cancelable: !0
1751
- }) : (y = document.createEvent("Event"), y.initEvent(i, !0, !0)), y.to = a || n, y.from = s || n, y.item = o || n, y.clone = r, y.oldIndex = l, y.newIndex = u, y.oldDraggableIndex = c, y.newDraggableIndex = d, y.originalEvent = p, y.pullMode = f ? f.lastPutMode : void 0;
1751
+ }) : (y = document.createEvent("Event"), y.initEvent(i, !0, !0)), y.to = s || n, y.from = a || n, y.item = o || n, y.clone = r, y.oldIndex = l, y.newIndex = u, y.oldDraggableIndex = c, y.newDraggableIndex = d, y.originalEvent = p, y.pullMode = f ? f.lastPutMode : void 0;
1752
1752
  var V = ct(ct({}, g), Ee.getEventProperties(i, t));
1753
1753
  for (var tt in V)
1754
1754
  y[tt] = V[tt];
1755
1755
  n && n.dispatchEvent(y), D[U] && D[U].call(t, y);
1756
1756
  }
1757
1757
  }
1758
- var sa = ["evt"], G = function(t, n) {
1759
- var i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o = i.evt, r = Jr(i, sa);
1758
+ var ls = ["evt"], G = function(t, n) {
1759
+ var i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o = i.evt, r = Kr(i, ls);
1760
1760
  Ee.pluginEvent.bind(v)(t, n, ct({
1761
1761
  dragEl: h,
1762
- parentEl: M,
1762
+ parentEl: N,
1763
1763
  ghostEl: w,
1764
1764
  rootEl: R,
1765
1765
  nextEl: Ot,
1766
1766
  lastDownEl: De,
1767
1767
  cloneEl: O,
1768
- cloneHidden: $t,
1769
- dragStarted: ee,
1768
+ cloneHidden: St,
1769
+ dragStarted: ne,
1770
1770
  putSortable: k,
1771
1771
  activeSortable: v.active,
1772
1772
  originalEvent: o,
1773
1773
  oldIndex: Ft,
1774
- oldDraggableIndex: le,
1774
+ oldDraggableIndex: ue,
1775
1775
  newIndex: nt,
1776
1776
  newDraggableIndex: xt,
1777
1777
  hideGhostForTarget: eo,
1778
1778
  unhideGhostForTarget: no,
1779
1779
  cloneNowHidden: function() {
1780
- $t = !0;
1780
+ St = !0;
1781
1781
  },
1782
1782
  cloneNowShown: function() {
1783
- $t = !1;
1783
+ St = !1;
1784
1784
  },
1785
- dispatchSortableEvent: function(s) {
1785
+ dispatchSortableEvent: function(a) {
1786
1786
  W({
1787
1787
  sortable: n,
1788
- name: s,
1788
+ name: a,
1789
1789
  originalEvent: o
1790
1790
  });
1791
1791
  }
1792
1792
  }, r));
1793
1793
  };
1794
1794
  function W(e) {
1795
- aa(ct({
1795
+ as(ct({
1796
1796
  putSortable: k,
1797
1797
  cloneEl: O,
1798
1798
  targetEl: h,
1799
1799
  rootEl: R,
1800
1800
  oldIndex: Ft,
1801
- oldDraggableIndex: le,
1801
+ oldDraggableIndex: ue,
1802
1802
  newIndex: nt,
1803
1803
  newDraggableIndex: xt
1804
1804
  }, e));
1805
1805
  }
1806
- var h, M, w, R, Ot, De, O, $t, Ft, nt, le, xt, $e, k, Ut = !1, Ue = !1, ke = [], Dt, lt, $n, Sn, gi, mi, ee, Vt, ue, de = !1, Se = !1, Re, q, _n = [], On = !1, Fe = [], hn = typeof document < "u", _e = Zi, yi = we || bt ? "cssFloat" : "float", la = hn && !zi && !Zi && "draggable" in document.createElement("div"), Ki = function() {
1806
+ var h, N, w, R, Ot, De, O, St, Ft, nt, ue, xt, Se, k, Ut = !1, Ue = !1, ke = [], Dt, lt, Sn, $n, gi, mi, ne, Vt, de, ce = !1, $e = !1, Re, q, _n = [], On = !1, Fe = [], hn = typeof document < "u", _e = Zi, yi = we || bt ? "cssFloat" : "float", us = hn && !zi && !Zi && "draggable" in document.createElement("div"), Ki = function() {
1807
1807
  if (hn) {
1808
1808
  if (bt)
1809
1809
  return !1;
@@ -1811,42 +1811,42 @@ var h, M, w, R, Ot, De, O, $t, Ft, nt, le, xt, $e, k, Ut = !1, Ue = !1, ke = [],
1811
1811
  return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
1812
1812
  }
1813
1813
  }(), Qi = function(t, n) {
1814
- var i = b(t), o = parseInt(i.width) - parseInt(i.paddingLeft) - parseInt(i.paddingRight) - parseInt(i.borderLeftWidth) - parseInt(i.borderRightWidth), r = zt(t, 0, n), a = zt(t, 1, n), s = r && b(r), l = a && b(a), u = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + H(r).width, c = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + H(a).width;
1814
+ var i = b(t), o = parseInt(i.width) - parseInt(i.paddingLeft) - parseInt(i.paddingRight) - parseInt(i.borderLeftWidth) - parseInt(i.borderRightWidth), r = Xt(t, 0, n), s = Xt(t, 1, n), a = r && b(r), l = s && b(s), u = a && parseInt(a.marginLeft) + parseInt(a.marginRight) + H(r).width, c = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + H(s).width;
1815
1815
  if (i.display === "flex")
1816
1816
  return i.flexDirection === "column" || i.flexDirection === "column-reverse" ? "vertical" : "horizontal";
1817
1817
  if (i.display === "grid")
1818
1818
  return i.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
1819
- if (r && s.float && s.float !== "none") {
1820
- var d = s.float === "left" ? "left" : "right";
1821
- return a && (l.clear === "both" || l.clear === d) ? "vertical" : "horizontal";
1822
- }
1823
- return r && (s.display === "block" || s.display === "flex" || s.display === "table" || s.display === "grid" || u >= o && i[yi] === "none" || a && i[yi] === "none" && u + c > o) ? "vertical" : "horizontal";
1824
- }, ua = function(t, n, i) {
1825
- var o = i ? t.left : t.top, r = i ? t.right : t.bottom, a = i ? t.width : t.height, s = i ? n.left : n.top, l = i ? n.right : n.bottom, u = i ? n.width : n.height;
1826
- return o === s || r === l || o + a / 2 === s + u / 2;
1827
- }, da = function(t, n) {
1819
+ if (r && a.float && a.float !== "none") {
1820
+ var d = a.float === "left" ? "left" : "right";
1821
+ return s && (l.clear === "both" || l.clear === d) ? "vertical" : "horizontal";
1822
+ }
1823
+ return r && (a.display === "block" || a.display === "flex" || a.display === "table" || a.display === "grid" || u >= o && i[yi] === "none" || s && i[yi] === "none" && u + c > o) ? "vertical" : "horizontal";
1824
+ }, ds = function(t, n, i) {
1825
+ var o = i ? t.left : t.top, r = i ? t.right : t.bottom, s = i ? t.width : t.height, a = i ? n.left : n.top, l = i ? n.right : n.bottom, u = i ? n.width : n.height;
1826
+ return o === a || r === l || o + s / 2 === a + u / 2;
1827
+ }, cs = function(t, n) {
1828
1828
  var i;
1829
1829
  return ke.some(function(o) {
1830
1830
  var r = o[it].options.emptyInsertThreshold;
1831
1831
  if (!(!r || Xn(o))) {
1832
- var a = H(o), s = t >= a.left - r && t <= a.right + r, l = n >= a.top - r && n <= a.bottom + r;
1833
- if (s && l)
1832
+ var s = H(o), a = t >= s.left - r && t <= s.right + r, l = n >= s.top - r && n <= s.bottom + r;
1833
+ if (a && l)
1834
1834
  return i = o;
1835
1835
  }
1836
1836
  }), i;
1837
1837
  }, to = function(t) {
1838
- function n(r, a) {
1839
- return function(s, l, u, c) {
1840
- var d = s.options.group.name && l.options.group.name && s.options.group.name === l.options.group.name;
1841
- if (r == null && (a || d))
1838
+ function n(r, s) {
1839
+ return function(a, l, u, c) {
1840
+ var d = a.options.group.name && l.options.group.name && a.options.group.name === l.options.group.name;
1841
+ if (r == null && (s || d))
1842
1842
  return !0;
1843
1843
  if (r == null || r === !1)
1844
1844
  return !1;
1845
- if (a && r === "clone")
1845
+ if (s && r === "clone")
1846
1846
  return r;
1847
1847
  if (typeof r == "function")
1848
- return n(r(s, l, u, c), a)(s, l, u, c);
1849
- var p = (a ? s : l).options.group.name;
1848
+ return n(r(a, l, u, c), s)(a, l, u, c);
1849
+ var p = (s ? a : l).options.group.name;
1850
1850
  return r === !0 || typeof r == "string" && r === p || r.join && r.indexOf(p) > -1;
1851
1851
  };
1852
1852
  }
@@ -1866,7 +1866,7 @@ hn && !zi && document.addEventListener("click", function(e) {
1866
1866
  var Rt = function(t) {
1867
1867
  if (h) {
1868
1868
  t = t.touches ? t.touches[0] : t;
1869
- var n = da(t.clientX, t.clientY);
1869
+ var n = cs(t.clientX, t.clientY);
1870
1870
  if (n) {
1871
1871
  var i = {};
1872
1872
  for (var o in t)
@@ -1874,7 +1874,7 @@ var Rt = function(t) {
1874
1874
  i.target = i.rootEl = n, i.preventDefault = void 0, i.stopPropagation = void 0, n[it]._onDragOver(i);
1875
1875
  }
1876
1876
  }
1877
- }, ca = function(t) {
1877
+ }, hs = function(t) {
1878
1878
  h && h.parentNode[it]._isOutsideThisEl(t.target);
1879
1879
  };
1880
1880
  function v(e, t) {
@@ -1906,8 +1906,8 @@ function v(e, t) {
1906
1906
  preventOnFilter: !0,
1907
1907
  animation: 0,
1908
1908
  easing: null,
1909
- setData: function(a, s) {
1910
- a.setData("Text", s.textContent);
1909
+ setData: function(s, a) {
1910
+ s.setData("Text", a.textContent);
1911
1911
  },
1912
1912
  dropBubble: !1,
1913
1913
  dragoverBubble: !1,
@@ -1932,7 +1932,7 @@ function v(e, t) {
1932
1932
  to(t);
1933
1933
  for (var o in this)
1934
1934
  o.charAt(0) === "_" && typeof this[o] == "function" && (this[o] = this[o].bind(this));
1935
- this.nativeDraggable = t.forceFallback ? !1 : la, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? _(e, "pointerdown", this._onTapStart) : (_(e, "mousedown", this._onTapStart), _(e, "touchstart", this._onTapStart)), this.nativeDraggable && (_(e, "dragover", this), _(e, "dragenter", this)), ke.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), yt(this, ia());
1935
+ this.nativeDraggable = t.forceFallback ? !1 : us, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? _(e, "pointerdown", this._onTapStart) : (_(e, "mousedown", this._onTapStart), _(e, "touchstart", this._onTapStart)), this.nativeDraggable && (_(e, "dragover", this), _(e, "dragenter", this)), ke.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), yt(this, os());
1936
1936
  }
1937
1937
  v.prototype = /** @lends Sortable.prototype */
1938
1938
  {
@@ -1945,9 +1945,9 @@ v.prototype = /** @lends Sortable.prototype */
1945
1945
  },
1946
1946
  _onTapStart: function(t) {
1947
1947
  if (t.cancelable) {
1948
- var n = this, i = this.el, o = this.options, r = o.preventOnFilter, a = t.type, s = t.touches && t.touches[0] || t.pointerType && t.pointerType === "touch" && t, l = (s || t).target, u = t.target.shadowRoot && (t.path && t.path[0] || t.composedPath && t.composedPath()[0]) || l, c = o.filter;
1949
- if (va(i), !h && !(/mousedown|pointerdown/.test(a) && t.button !== 0 || o.disabled) && !u.isContentEditable && !(!this.nativeDraggable && ae && l && l.tagName.toUpperCase() === "SELECT") && (l = ut(l, o.draggable, i, !1), !(l && l.animated) && De !== l)) {
1950
- if (Ft = ot(l), le = ot(l, o.draggable), typeof c == "function") {
1948
+ var n = this, i = 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, u = t.target.shadowRoot && (t.path && t.path[0] || t.composedPath && t.composedPath()[0]) || l, c = o.filter;
1949
+ if (ws(i), !h && !(/mousedown|pointerdown/.test(s) && t.button !== 0 || o.disabled) && !u.isContentEditable && !(!this.nativeDraggable && ae && l && l.tagName.toUpperCase() === "SELECT") && (l = ut(l, o.draggable, i, !1), !(l && l.animated) && De !== l)) {
1950
+ if (Ft = ot(l), ue = ot(l, o.draggable), typeof c == "function") {
1951
1951
  if (c.call(this, t, l, this)) {
1952
1952
  W({
1953
1953
  sortable: n,
@@ -1977,15 +1977,15 @@ v.prototype = /** @lends Sortable.prototype */
1977
1977
  r && t.cancelable && t.preventDefault();
1978
1978
  return;
1979
1979
  }
1980
- o.handle && !ut(u, o.handle, i, !1) || this._prepareDragStart(t, s, l);
1980
+ o.handle && !ut(u, o.handle, i, !1) || this._prepareDragStart(t, a, l);
1981
1981
  }
1982
1982
  }
1983
1983
  },
1984
1984
  _prepareDragStart: function(t, n, i) {
1985
- var o = this, r = o.el, a = o.options, s = r.ownerDocument, l;
1985
+ var o = this, r = o.el, s = o.options, a = r.ownerDocument, l;
1986
1986
  if (i && !h && i.parentNode === r) {
1987
1987
  var u = H(i);
1988
- if (R = r, h = i, M = h.parentNode, Ot = h.nextSibling, De = i, $e = a.group, v.dragged = h, Dt = {
1988
+ if (R = r, h = i, N = h.parentNode, Ot = h.nextSibling, De = i, Se = s.group, v.dragged = h, Dt = {
1989
1989
  target: h,
1990
1990
  clientX: (n || t).clientX,
1991
1991
  clientY: (n || t).clientY
@@ -2000,17 +2000,17 @@ v.prototype = /** @lends Sortable.prototype */
2000
2000
  sortable: o,
2001
2001
  name: "choose",
2002
2002
  originalEvent: t
2003
- }), et(h, a.chosenClass, !0);
2004
- }, a.ignore.split(",").forEach(function(c) {
2003
+ }), et(h, s.chosenClass, !0);
2004
+ }, s.ignore.split(",").forEach(function(c) {
2005
2005
  qi(h, c.trim(), An);
2006
- }), _(s, "dragover", Rt), _(s, "mousemove", Rt), _(s, "touchmove", Rt), _(s, "mouseup", o._onDrop), _(s, "touchend", o._onDrop), _(s, "touchcancel", o._onDrop), ci && this.nativeDraggable && (this.options.touchStartThreshold = 4, h.draggable = !0), G("delayStart", this, {
2006
+ }), _(a, "dragover", Rt), _(a, "mousemove", Rt), _(a, "touchmove", Rt), _(a, "mouseup", o._onDrop), _(a, "touchend", o._onDrop), _(a, "touchcancel", o._onDrop), ci && this.nativeDraggable && (this.options.touchStartThreshold = 4, h.draggable = !0), G("delayStart", this, {
2007
2007
  evt: t
2008
- }), a.delay && (!a.delayOnTouchOnly || n) && (!this.nativeDraggable || !(we || bt))) {
2008
+ }), s.delay && (!s.delayOnTouchOnly || n) && (!this.nativeDraggable || !(we || bt))) {
2009
2009
  if (v.eventCanceled) {
2010
2010
  this._onDrop();
2011
2011
  return;
2012
2012
  }
2013
- _(s, "mouseup", o._disableDelayedDrag), _(s, "touchend", o._disableDelayedDrag), _(s, "touchcancel", o._disableDelayedDrag), _(s, "mousemove", o._delayedDragTouchMoveHandler), _(s, "touchmove", o._delayedDragTouchMoveHandler), a.supportPointer && _(s, "pointermove", o._delayedDragTouchMoveHandler), o._dragStartTimer = setTimeout(l, a.delay);
2013
+ _(a, "mouseup", o._disableDelayedDrag), _(a, "touchend", o._disableDelayedDrag), _(a, "touchcancel", o._disableDelayedDrag), _(a, "mousemove", o._delayedDragTouchMoveHandler), _(a, "touchmove", o._delayedDragTouchMoveHandler), s.supportPointer && _(a, "pointermove", o._delayedDragTouchMoveHandler), o._dragStartTimer = setTimeout(l, s.delay);
2014
2014
  } else
2015
2015
  l();
2016
2016
  }
@@ -2024,7 +2024,7 @@ v.prototype = /** @lends Sortable.prototype */
2024
2024
  },
2025
2025
  _disableDelayedDragEvents: function() {
2026
2026
  var t = this.el.ownerDocument;
2027
- $(t, "mouseup", this._disableDelayedDrag), $(t, "touchend", this._disableDelayedDrag), $(t, "touchcancel", this._disableDelayedDrag), $(t, "mousemove", this._delayedDragTouchMoveHandler), $(t, "touchmove", this._delayedDragTouchMoveHandler), $(t, "pointermove", this._delayedDragTouchMoveHandler);
2027
+ S(t, "mouseup", this._disableDelayedDrag), S(t, "touchend", this._disableDelayedDrag), S(t, "touchcancel", this._disableDelayedDrag), S(t, "mousemove", this._delayedDragTouchMoveHandler), S(t, "touchmove", this._delayedDragTouchMoveHandler), S(t, "pointermove", this._delayedDragTouchMoveHandler);
2028
2028
  },
2029
2029
  _triggerDragStart: function(t, n) {
2030
2030
  n = n || t.pointerType == "touch" && t, !this.nativeDraggable || n ? this.options.supportPointer ? _(document, "pointermove", this._onTouchMove) : n ? _(document, "touchmove", this._onTouchMove) : _(document, "mousemove", this._onTouchMove) : (_(h, "dragend", this), _(R, "dragstart", this._onDragStart));
@@ -2039,7 +2039,7 @@ v.prototype = /** @lends Sortable.prototype */
2039
2039
  if (Ut = !1, R && h) {
2040
2040
  G("dragStarted", this, {
2041
2041
  evt: n
2042
- }), this.nativeDraggable && _(document, "dragover", ca);
2042
+ }), this.nativeDraggable && _(document, "dragover", hs);
2043
2043
  var i = this.options;
2044
2044
  !t && et(h, i.dragClass, !1), et(h, i.ghostClass, !0), v.active = this, t && this._appendGhost(), W({
2045
2045
  sortable: this,
@@ -2073,14 +2073,14 @@ v.prototype = /** @lends Sortable.prototype */
2073
2073
  },
2074
2074
  _onTouchMove: function(t) {
2075
2075
  if (Dt) {
2076
- var n = this.options, i = n.fallbackTolerance, o = n.fallbackOffset, r = t.touches ? t.touches[0] : t, a = w && jt(w, !0), s = w && a && a.a, l = w && a && a.d, u = _e && q && fi(q), c = (r.clientX - Dt.clientX + o.x) / (s || 1) + (u ? u[0] - _n[0] : 0) / (s || 1), d = (r.clientY - Dt.clientY + o.y) / (l || 1) + (u ? u[1] - _n[1] : 0) / (l || 1);
2076
+ var n = this.options, i = n.fallbackTolerance, o = n.fallbackOffset, r = t.touches ? t.touches[0] : t, s = w && jt(w, !0), a = w && s && s.a, l = w && s && s.d, u = _e && q && fi(q), c = (r.clientX - Dt.clientX + o.x) / (a || 1) + (u ? u[0] - _n[0] : 0) / (a || 1), d = (r.clientY - Dt.clientY + o.y) / (l || 1) + (u ? u[1] - _n[1] : 0) / (l || 1);
2077
2077
  if (!v.active && !Ut) {
2078
2078
  if (i && Math.max(Math.abs(r.clientX - this._lastX), Math.abs(r.clientY - this._lastY)) < i)
2079
2079
  return;
2080
2080
  this._onDragStart(t, !0);
2081
2081
  }
2082
2082
  if (w) {
2083
- a ? (a.e += c - ($n || 0), a.f += d - (Sn || 0)) : a = {
2083
+ s ? (s.e += c - (Sn || 0), s.f += d - ($n || 0)) : s = {
2084
2084
  a: 1,
2085
2085
  b: 0,
2086
2086
  c: 0,
@@ -2088,8 +2088,8 @@ v.prototype = /** @lends Sortable.prototype */
2088
2088
  e: c,
2089
2089
  f: d
2090
2090
  };
2091
- var p = "matrix(".concat(a.a, ",").concat(a.b, ",").concat(a.c, ",").concat(a.d, ",").concat(a.e, ",").concat(a.f, ")");
2092
- b(w, "webkitTransform", p), b(w, "mozTransform", p), b(w, "msTransform", p), b(w, "transform", p), $n = c, Sn = d, lt = r;
2091
+ var p = "matrix(".concat(s.a, ",").concat(s.b, ",").concat(s.c, ",").concat(s.d, ",").concat(s.e, ",").concat(s.f, ")");
2092
+ b(w, "webkitTransform", p), b(w, "mozTransform", p), b(w, "msTransform", p), b(w, "transform", p), Sn = c, $n = d, lt = r;
2093
2093
  }
2094
2094
  t.cancelable && t.preventDefault();
2095
2095
  }
@@ -2118,42 +2118,42 @@ v.prototype = /** @lends Sortable.prototype */
2118
2118
  sortable: i,
2119
2119
  name: "clone"
2120
2120
  }));
2121
- }), !n && et(h, r.dragClass, !0), n ? (Ue = !0, i._loopId = setInterval(i._emulateDragOver, 50)) : ($(document, "mouseup", i._onDrop), $(document, "touchend", i._onDrop), $(document, "touchcancel", i._onDrop), o && (o.effectAllowed = "move", r.setData && r.setData.call(i, o, h)), _(document, "drop", i), b(h, "transform", "translateZ(0)")), Ut = !0, i._dragStartId = Oe(i._dragStarted.bind(i, n, t)), _(document, "selectstart", i), ee = !0, ae && b(document.body, "user-select", "none");
2121
+ }), !n && et(h, r.dragClass, !0), n ? (Ue = !0, i._loopId = setInterval(i._emulateDragOver, 50)) : (S(document, "mouseup", i._onDrop), S(document, "touchend", i._onDrop), S(document, "touchcancel", i._onDrop), o && (o.effectAllowed = "move", r.setData && r.setData.call(i, o, h)), _(document, "drop", i), b(h, "transform", "translateZ(0)")), Ut = !0, i._dragStartId = Oe(i._dragStarted.bind(i, n, t)), _(document, "selectstart", i), ne = !0, ae && b(document.body, "user-select", "none");
2122
2122
  },
2123
2123
  // Returns true - if no further action is needed (either inserted or another condition)
2124
2124
  _onDragOver: function(t) {
2125
- var n = this.el, i = t.target, o, r, a, s = this.options, l = s.group, u = v.active, c = $e === l, d = s.sort, p = k || u, f, g = this, y = !1;
2125
+ var n = this.el, i = t.target, o, r, s, a = this.options, l = a.group, u = v.active, c = Se === l, d = a.sort, p = k || u, f, g = this, y = !1;
2126
2126
  if (On) return;
2127
- function D(Jt, Ro) {
2128
- G(Jt, g, ct({
2127
+ function D(Kt, Oo) {
2128
+ G(Kt, g, ct({
2129
2129
  evt: t,
2130
2130
  isOwner: c,
2131
2131
  axis: f ? "vertical" : "horizontal",
2132
- revert: a,
2132
+ revert: s,
2133
2133
  dragRect: o,
2134
2134
  targetRect: r,
2135
2135
  canSort: d,
2136
2136
  fromSortable: p,
2137
2137
  target: i,
2138
2138
  completed: V,
2139
- onMove: function(Gn, Oo) {
2140
- return Ae(R, n, h, o, Gn, H(Gn), t, Oo);
2139
+ onMove: function(Gn, No) {
2140
+ return Ae(R, n, h, o, Gn, H(Gn), t, No);
2141
2141
  },
2142
2142
  changed: tt
2143
- }, Ro));
2143
+ }, Oo));
2144
2144
  }
2145
2145
  function U() {
2146
2146
  D("dragOverAnimationCapture"), g.captureAnimationState(), g !== p && p.captureAnimationState();
2147
2147
  }
2148
- function V(Jt) {
2148
+ function V(Kt) {
2149
2149
  return D("dragOverCompleted", {
2150
- insertion: Jt
2151
- }), Jt && (c ? u._hideClone() : u._showClone(g), g !== p && (et(h, k ? k.options.ghostClass : u.options.ghostClass, !1), et(h, s.ghostClass, !0)), k !== g && g !== v.active ? k = g : g === v.active && k && (k = null), p === g && (g._ignoreWhileAnimating = i), g.animateAll(function() {
2150
+ insertion: Kt
2151
+ }), Kt && (c ? u._hideClone() : u._showClone(g), g !== p && (et(h, k ? k.options.ghostClass : u.options.ghostClass, !1), et(h, a.ghostClass, !0)), k !== g && g !== v.active ? k = g : g === v.active && k && (k = null), p === g && (g._ignoreWhileAnimating = i), g.animateAll(function() {
2152
2152
  D("dragOverAnimationComplete"), g._ignoreWhileAnimating = null;
2153
- }), g !== p && (p.animateAll(), p._ignoreWhileAnimating = null)), (i === h && !h.animated || i === n && !i.animated) && (Vt = null), !s.dragoverBubble && !t.rootEl && i !== document && (h.parentNode[it]._isOutsideThisEl(t.target), !Jt && Rt(t)), !s.dragoverBubble && t.stopPropagation && t.stopPropagation(), y = !0;
2153
+ }), g !== p && (p.animateAll(), p._ignoreWhileAnimating = null)), (i === h && !h.animated || i === n && !i.animated) && (Vt = null), !a.dragoverBubble && !t.rootEl && i !== document && (h.parentNode[it]._isOutsideThisEl(t.target), !Kt && Rt(t)), !a.dragoverBubble && t.stopPropagation && t.stopPropagation(), y = !0;
2154
2154
  }
2155
2155
  function tt() {
2156
- nt = ot(h), xt = ot(h, s.draggable), W({
2156
+ nt = ot(h), xt = ot(h, a.draggable), W({
2157
2157
  sortable: g,
2158
2158
  name: "change",
2159
2159
  toEl: n,
@@ -2162,44 +2162,44 @@ v.prototype = /** @lends Sortable.prototype */
2162
2162
  originalEvent: t
2163
2163
  });
2164
2164
  }
2165
- if (t.preventDefault !== void 0 && t.cancelable && t.preventDefault(), i = ut(i, s.draggable, n, !0), D("dragOver"), v.eventCanceled) return y;
2165
+ if (t.preventDefault !== void 0 && t.cancelable && t.preventDefault(), i = ut(i, a.draggable, n, !0), D("dragOver"), v.eventCanceled) return y;
2166
2166
  if (h.contains(t.target) || i.animated && i.animatingX && i.animatingY || g._ignoreWhileAnimating === i)
2167
2167
  return V(!1);
2168
- if (Ue = !1, u && !s.disabled && (c ? d || (a = M !== R) : k === this || (this.lastPutMode = $e.checkPull(this, u, h, t)) && l.checkPut(this, u, h, t))) {
2168
+ if (Ue = !1, u && !a.disabled && (c ? d || (s = N !== R) : k === this || (this.lastPutMode = Se.checkPull(this, u, h, t)) && l.checkPut(this, u, h, t))) {
2169
2169
  if (f = this._getDirection(t, i) === "vertical", o = H(h), D("dragOverValid"), v.eventCanceled) return y;
2170
- if (a)
2171
- return M = R, U(), this._hideClone(), D("revert"), v.eventCanceled || (Ot ? R.insertBefore(h, Ot) : R.appendChild(h)), V(!0);
2172
- var Y = Xn(n, s.draggable);
2173
- if (!Y || ga(t, f, this) && !Y.animated) {
2170
+ if (s)
2171
+ return N = R, U(), this._hideClone(), D("revert"), v.eventCanceled || (Ot ? R.insertBefore(h, Ot) : R.appendChild(h)), V(!0);
2172
+ var Y = Xn(n, a.draggable);
2173
+ if (!Y || ms(t, f, this) && !Y.animated) {
2174
2174
  if (Y === h)
2175
2175
  return V(!1);
2176
2176
  if (Y && n === t.target && (i = Y), i && (r = H(i)), Ae(R, n, h, o, i, r, t, !!i) !== !1)
2177
- return U(), Y && Y.nextSibling ? n.insertBefore(h, Y.nextSibling) : n.appendChild(h), M = n, tt(), V(!0);
2178
- } else if (Y && fa(t, f, this)) {
2179
- var at = zt(n, 0, s, !0);
2180
- if (at === h)
2177
+ return U(), Y && Y.nextSibling ? n.insertBefore(h, Y.nextSibling) : n.appendChild(h), N = n, tt(), V(!0);
2178
+ } else if (Y && gs(t, f, this)) {
2179
+ var st = Xt(n, 0, a, !0);
2180
+ if (st === h)
2181
2181
  return V(!1);
2182
- if (i = at, r = H(i), Ae(R, n, h, o, i, r, t, !1) !== !1)
2183
- return U(), n.insertBefore(h, at), M = n, tt(), V(!0);
2182
+ if (i = st, r = H(i), Ae(R, n, h, o, i, r, t, !1) !== !1)
2183
+ return U(), n.insertBefore(h, st), N = n, tt(), V(!0);
2184
2184
  } else if (i.parentNode === n) {
2185
2185
  r = H(i);
2186
- var A = 0, z, st = h.parentNode !== n, X = !ua(h.animated && h.toRect || o, i.animated && i.toRect || r, f), Yt = f ? "top" : "left", vt = pi(i, "top", "top") || pi(h, "top", "top"), Wt = vt ? vt.scrollTop : void 0;
2187
- Vt !== i && (z = r[Yt], de = !1, Se = !X && s.invertSwap || st), A = ma(t, i, r, f, X ? 1 : s.swapThreshold, s.invertedSwapThreshold == null ? s.swapThreshold : s.invertedSwapThreshold, Se, Vt === i);
2186
+ var A = 0, z, at = h.parentNode !== n, X = !ds(h.animated && h.toRect || o, i.animated && i.toRect || r, f), Wt = f ? "top" : "left", vt = pi(i, "top", "top") || pi(h, "top", "top"), Gt = vt ? vt.scrollTop : void 0;
2187
+ Vt !== i && (z = r[Wt], ce = !1, $e = !X && a.invertSwap || at), A = ys(t, i, r, f, X ? 1 : a.swapThreshold, a.invertedSwapThreshold == null ? a.swapThreshold : a.invertedSwapThreshold, $e, Vt === i);
2188
2188
  var ht;
2189
2189
  if (A !== 0) {
2190
2190
  var Ct = ot(h);
2191
2191
  do
2192
- Ct -= A, ht = M.children[Ct];
2192
+ Ct -= A, ht = N.children[Ct];
2193
2193
  while (ht && (b(ht, "display") === "none" || ht === w));
2194
2194
  }
2195
2195
  if (A === 0 || ht === i)
2196
2196
  return V(!1);
2197
- Vt = i, ue = A;
2198
- var Gt = i.nextElementSibling, wt = !1;
2197
+ Vt = i, de = A;
2198
+ var Jt = i.nextElementSibling, wt = !1;
2199
2199
  wt = A === 1;
2200
2200
  var xe = Ae(R, n, h, o, i, r, t, wt);
2201
2201
  if (xe !== !1)
2202
- return (xe === 1 || xe === -1) && (wt = xe === 1), On = !0, setTimeout(pa, 30), U(), wt && !Gt ? n.appendChild(h) : i.parentNode.insertBefore(h, wt ? Gt : i), vt && Wi(vt, 0, Wt - vt.scrollTop), M = h.parentNode, z !== void 0 && !Se && (Re = Math.abs(z - H(i)[Yt])), tt(), V(!0);
2202
+ return (xe === 1 || xe === -1) && (wt = xe === 1), On = !0, setTimeout(fs, 30), U(), wt && !Jt ? n.appendChild(h) : i.parentNode.insertBefore(h, wt ? Jt : i), vt && Wi(vt, 0, Gt - vt.scrollTop), N = h.parentNode, z !== void 0 && !$e && (Re = Math.abs(z - H(i)[Wt])), tt(), V(!0);
2203
2203
  }
2204
2204
  if (n.contains(h))
2205
2205
  return V(!1);
@@ -2208,70 +2208,70 @@ v.prototype = /** @lends Sortable.prototype */
2208
2208
  },
2209
2209
  _ignoreWhileAnimating: null,
2210
2210
  _offMoveEvents: function() {
2211
- $(document, "mousemove", this._onTouchMove), $(document, "touchmove", this._onTouchMove), $(document, "pointermove", this._onTouchMove), $(document, "dragover", Rt), $(document, "mousemove", Rt), $(document, "touchmove", Rt);
2211
+ S(document, "mousemove", this._onTouchMove), S(document, "touchmove", this._onTouchMove), S(document, "pointermove", this._onTouchMove), S(document, "dragover", Rt), S(document, "mousemove", Rt), S(document, "touchmove", Rt);
2212
2212
  },
2213
2213
  _offUpEvents: function() {
2214
2214
  var t = this.el.ownerDocument;
2215
- $(t, "mouseup", this._onDrop), $(t, "touchend", this._onDrop), $(t, "pointerup", this._onDrop), $(t, "touchcancel", this._onDrop), $(document, "selectstart", this);
2215
+ S(t, "mouseup", this._onDrop), S(t, "touchend", this._onDrop), S(t, "pointerup", this._onDrop), S(t, "touchcancel", this._onDrop), S(document, "selectstart", this);
2216
2216
  },
2217
2217
  _onDrop: function(t) {
2218
2218
  var n = this.el, i = this.options;
2219
2219
  if (nt = ot(h), xt = ot(h, i.draggable), G("drop", this, {
2220
2220
  evt: t
2221
- }), M = h && h.parentNode, nt = ot(h), xt = ot(h, i.draggable), v.eventCanceled) {
2221
+ }), N = h && h.parentNode, nt = ot(h), xt = ot(h, i.draggable), v.eventCanceled) {
2222
2222
  this._nulling();
2223
2223
  return;
2224
2224
  }
2225
- Ut = !1, Se = !1, de = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Mn(this.cloneId), Mn(this._dragStartId), this.nativeDraggable && ($(document, "drop", this), $(n, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), ae && b(document.body, "user-select", ""), b(h, "transform", ""), t && (ee && (t.cancelable && t.preventDefault(), !i.dropBubble && t.stopPropagation()), w && w.parentNode && w.parentNode.removeChild(w), (R === M || k && k.lastPutMode !== "clone") && O && O.parentNode && O.parentNode.removeChild(O), h && (this.nativeDraggable && $(h, "dragend", this), An(h), h.style["will-change"] = "", ee && !Ut && et(h, k ? k.options.ghostClass : this.options.ghostClass, !1), et(h, this.options.chosenClass, !1), W({
2225
+ Ut = !1, $e = !1, ce = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Nn(this.cloneId), Nn(this._dragStartId), this.nativeDraggable && (S(document, "drop", this), S(n, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), ae && b(document.body, "user-select", ""), b(h, "transform", ""), t && (ne && (t.cancelable && t.preventDefault(), !i.dropBubble && t.stopPropagation()), w && w.parentNode && w.parentNode.removeChild(w), (R === N || k && k.lastPutMode !== "clone") && O && O.parentNode && O.parentNode.removeChild(O), h && (this.nativeDraggable && S(h, "dragend", this), An(h), h.style["will-change"] = "", ne && !Ut && et(h, k ? k.options.ghostClass : this.options.ghostClass, !1), et(h, this.options.chosenClass, !1), W({
2226
2226
  sortable: this,
2227
2227
  name: "unchoose",
2228
- toEl: M,
2228
+ toEl: N,
2229
2229
  newIndex: null,
2230
2230
  newDraggableIndex: null,
2231
2231
  originalEvent: t
2232
- }), R !== M ? (nt >= 0 && (W({
2233
- rootEl: M,
2232
+ }), R !== N ? (nt >= 0 && (W({
2233
+ rootEl: N,
2234
2234
  name: "add",
2235
- toEl: M,
2235
+ toEl: N,
2236
2236
  fromEl: R,
2237
2237
  originalEvent: t
2238
2238
  }), W({
2239
2239
  sortable: this,
2240
2240
  name: "remove",
2241
- toEl: M,
2241
+ toEl: N,
2242
2242
  originalEvent: t
2243
2243
  }), W({
2244
- rootEl: M,
2244
+ rootEl: N,
2245
2245
  name: "sort",
2246
- toEl: M,
2246
+ toEl: N,
2247
2247
  fromEl: R,
2248
2248
  originalEvent: t
2249
2249
  }), W({
2250
2250
  sortable: this,
2251
2251
  name: "sort",
2252
- toEl: M,
2252
+ toEl: N,
2253
2253
  originalEvent: t
2254
2254
  })), k && k.save()) : nt !== Ft && nt >= 0 && (W({
2255
2255
  sortable: this,
2256
2256
  name: "update",
2257
- toEl: M,
2257
+ toEl: N,
2258
2258
  originalEvent: t
2259
2259
  }), W({
2260
2260
  sortable: this,
2261
2261
  name: "sort",
2262
- toEl: M,
2262
+ toEl: N,
2263
2263
  originalEvent: t
2264
- })), v.active && ((nt == null || nt === -1) && (nt = Ft, xt = le), W({
2264
+ })), v.active && ((nt == null || nt === -1) && (nt = Ft, xt = ue), W({
2265
2265
  sortable: this,
2266
2266
  name: "end",
2267
- toEl: M,
2267
+ toEl: N,
2268
2268
  originalEvent: t
2269
2269
  }), this.save()))), this._nulling();
2270
2270
  },
2271
2271
  _nulling: function() {
2272
- G("nulling", this), R = h = M = w = Ot = O = De = $t = Dt = lt = ee = nt = xt = Ft = le = Vt = ue = k = $e = v.dragged = v.ghost = v.clone = v.active = null, Fe.forEach(function(t) {
2272
+ G("nulling", this), R = h = N = w = Ot = O = De = St = Dt = lt = ne = nt = xt = Ft = ue = Vt = de = k = Se = v.dragged = v.ghost = v.clone = v.active = null, Fe.forEach(function(t) {
2273
2273
  t.checked = !0;
2274
- }), Fe.length = $n = Sn = 0;
2274
+ }), Fe.length = Sn = $n = 0;
2275
2275
  },
2276
2276
  handleEvent: function(t) {
2277
2277
  switch (t.type) {
@@ -2281,7 +2281,7 @@ v.prototype = /** @lends Sortable.prototype */
2281
2281
  break;
2282
2282
  case "dragenter":
2283
2283
  case "dragover":
2284
- h && (this._onDragOver(t), ha(t));
2284
+ h && (this._onDragOver(t), ps(t));
2285
2285
  break;
2286
2286
  case "selectstart":
2287
2287
  t.preventDefault();
@@ -2293,8 +2293,8 @@ v.prototype = /** @lends Sortable.prototype */
2293
2293
  * @returns {String[]}
2294
2294
  */
2295
2295
  toArray: function() {
2296
- for (var t = [], n, i = this.el.children, o = 0, r = i.length, a = this.options; o < r; o++)
2297
- n = i[o], ut(n, a.draggable, this.el, !1) && t.push(n.getAttribute(a.dataIdAttr) || ba(n));
2296
+ for (var t = [], n, i = this.el.children, o = 0, r = i.length, s = this.options; o < r; o++)
2297
+ n = i[o], ut(n, s.draggable, this.el, !1) && t.push(n.getAttribute(s.dataIdAttr) || vs(n));
2298
2298
  return t;
2299
2299
  },
2300
2300
  /**
@@ -2303,9 +2303,9 @@ v.prototype = /** @lends Sortable.prototype */
2303
2303
  */
2304
2304
  sort: function(t, n) {
2305
2305
  var i = {}, o = this.el;
2306
- this.toArray().forEach(function(r, a) {
2307
- var s = o.children[a];
2308
- ut(s, this.options.draggable, o, !1) && (i[r] = s);
2306
+ this.toArray().forEach(function(r, s) {
2307
+ var a = o.children[s];
2308
+ ut(a, this.options.draggable, o, !1) && (i[r] = a);
2309
2309
  }, this), n && this.captureAnimationState(), t.forEach(function(r) {
2310
2310
  i[r] && (o.removeChild(i[r]), o.appendChild(i[r]));
2311
2311
  }), n && this.animateAll();
@@ -2345,14 +2345,14 @@ v.prototype = /** @lends Sortable.prototype */
2345
2345
  destroy: function() {
2346
2346
  G("destroy", this);
2347
2347
  var t = this.el;
2348
- t[it] = null, $(t, "mousedown", this._onTapStart), $(t, "touchstart", this._onTapStart), $(t, "pointerdown", this._onTapStart), this.nativeDraggable && ($(t, "dragover", this), $(t, "dragenter", this)), Array.prototype.forEach.call(t.querySelectorAll("[draggable]"), function(n) {
2348
+ t[it] = null, S(t, "mousedown", this._onTapStart), S(t, "touchstart", this._onTapStart), S(t, "pointerdown", this._onTapStart), this.nativeDraggable && (S(t, "dragover", this), S(t, "dragenter", this)), Array.prototype.forEach.call(t.querySelectorAll("[draggable]"), function(n) {
2349
2349
  n.removeAttribute("draggable");
2350
2350
  }), this._onDrop(), this._disableDelayedDragEvents(), ke.splice(ke.indexOf(this.el), 1), this.el = t = null;
2351
2351
  },
2352
2352
  _hideClone: function() {
2353
- if (!$t) {
2353
+ if (!St) {
2354
2354
  if (G("hideClone", this), v.eventCanceled) return;
2355
- b(O, "display", "none"), this.options.removeCloneOnHide && O.parentNode && O.parentNode.removeChild(O), $t = !0;
2355
+ b(O, "display", "none"), this.options.removeCloneOnHide && O.parentNode && O.parentNode.removeChild(O), St = !0;
2356
2356
  }
2357
2357
  },
2358
2358
  _showClone: function(t) {
@@ -2360,58 +2360,58 @@ v.prototype = /** @lends Sortable.prototype */
2360
2360
  this._hideClone();
2361
2361
  return;
2362
2362
  }
2363
- if ($t) {
2363
+ if (St) {
2364
2364
  if (G("showClone", this), v.eventCanceled) return;
2365
- h.parentNode == R && !this.options.group.revertClone ? R.insertBefore(O, h) : Ot ? R.insertBefore(O, Ot) : R.appendChild(O), this.options.group.revertClone && this.animate(h, O), b(O, "display", ""), $t = !1;
2365
+ h.parentNode == R && !this.options.group.revertClone ? R.insertBefore(O, h) : Ot ? R.insertBefore(O, Ot) : R.appendChild(O), this.options.group.revertClone && this.animate(h, O), b(O, "display", ""), St = !1;
2366
2366
  }
2367
2367
  }
2368
2368
  };
2369
- function ha(e) {
2369
+ function ps(e) {
2370
2370
  e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
2371
2371
  }
2372
- function Ae(e, t, n, i, o, r, a, s) {
2372
+ function Ae(e, t, n, i, o, r, s, a) {
2373
2373
  var l, u = e[it], c = u.options.onMove, d;
2374
2374
  return window.CustomEvent && !bt && !we ? l = new CustomEvent("move", {
2375
2375
  bubbles: !0,
2376
2376
  cancelable: !0
2377
- }) : (l = document.createEvent("Event"), l.initEvent("move", !0, !0)), l.to = t, l.from = e, l.dragged = n, l.draggedRect = i, l.related = o || t, l.relatedRect = r || H(t), l.willInsertAfter = s, l.originalEvent = a, e.dispatchEvent(l), c && (d = c.call(u, l, a)), d;
2377
+ }) : (l = document.createEvent("Event"), l.initEvent("move", !0, !0)), l.to = t, l.from = e, l.dragged = n, l.draggedRect = i, l.related = o || t, l.relatedRect = r || H(t), l.willInsertAfter = a, l.originalEvent = s, e.dispatchEvent(l), c && (d = c.call(u, l, s)), d;
2378
2378
  }
2379
2379
  function An(e) {
2380
2380
  e.draggable = !1;
2381
2381
  }
2382
- function pa() {
2382
+ function fs() {
2383
2383
  On = !1;
2384
2384
  }
2385
- function fa(e, t, n) {
2386
- var i = H(zt(n.el, 0, n.options, !0)), o = Ji(n.el, n.options, w), r = 10;
2385
+ function gs(e, t, n) {
2386
+ var i = H(Xt(n.el, 0, n.options, !0)), o = Ji(n.el, n.options, w), r = 10;
2387
2387
  return t ? e.clientX < o.left - r || e.clientY < i.top && e.clientX < i.right : e.clientY < o.top - r || e.clientY < i.bottom && e.clientX < i.left;
2388
2388
  }
2389
- function ga(e, t, n) {
2389
+ function ms(e, t, n) {
2390
2390
  var i = H(Xn(n.el, n.options.draggable)), o = Ji(n.el, n.options, w), r = 10;
2391
2391
  return t ? e.clientX > o.right + r || e.clientY > i.bottom && e.clientX > i.left : e.clientY > o.bottom + r || e.clientX > i.right && e.clientY > i.top;
2392
2392
  }
2393
- function ma(e, t, n, i, o, r, a, s) {
2393
+ function ys(e, t, n, i, o, r, s, a) {
2394
2394
  var l = i ? e.clientY : e.clientX, u = i ? n.height : n.width, c = i ? n.top : n.left, d = i ? n.bottom : n.right, p = !1;
2395
- if (!a) {
2396
- if (s && Re < u * o) {
2397
- if (!de && (ue === 1 ? l > c + u * r / 2 : l < d - u * r / 2) && (de = !0), de)
2395
+ if (!s) {
2396
+ if (a && Re < u * o) {
2397
+ if (!ce && (de === 1 ? l > c + u * r / 2 : l < d - u * r / 2) && (ce = !0), ce)
2398
2398
  p = !0;
2399
- else if (ue === 1 ? l < c + Re : l > d - Re)
2400
- return -ue;
2399
+ else if (de === 1 ? l < c + Re : l > d - Re)
2400
+ return -de;
2401
2401
  } else if (l > c + u * (1 - o) / 2 && l < d - u * (1 - o) / 2)
2402
- return ya(t);
2402
+ return bs(t);
2403
2403
  }
2404
- return p = p || a, p && (l < c + u * r / 2 || l > d - u * r / 2) ? l > c + u / 2 ? 1 : -1 : 0;
2404
+ return p = p || s, p && (l < c + u * r / 2 || l > d - u * r / 2) ? l > c + u / 2 ? 1 : -1 : 0;
2405
2405
  }
2406
- function ya(e) {
2406
+ function bs(e) {
2407
2407
  return ot(h) < ot(e) ? 1 : -1;
2408
2408
  }
2409
- function ba(e) {
2409
+ function vs(e) {
2410
2410
  for (var t = e.tagName + e.className + e.src + e.href + e.textContent, n = t.length, i = 0; n--; )
2411
2411
  i += t.charCodeAt(n);
2412
2412
  return i.toString(36);
2413
2413
  }
2414
- function va(e) {
2414
+ function ws(e) {
2415
2415
  Fe.length = 0;
2416
2416
  for (var t = e.getElementsByTagName("input"), n = t.length; n--; ) {
2417
2417
  var i = t[n];
@@ -2421,7 +2421,7 @@ function va(e) {
2421
2421
  function Oe(e) {
2422
2422
  return setTimeout(e, 0);
2423
2423
  }
2424
- function Mn(e) {
2424
+ function Nn(e) {
2425
2425
  return clearTimeout(e);
2426
2426
  }
2427
2427
  hn && _(document, "touchmove", function(e) {
@@ -2429,22 +2429,22 @@ hn && _(document, "touchmove", function(e) {
2429
2429
  });
2430
2430
  v.utils = {
2431
2431
  on: _,
2432
- off: $,
2432
+ off: S,
2433
2433
  css: b,
2434
2434
  find: qi,
2435
2435
  is: function(t, n) {
2436
2436
  return !!ut(t, n, t, !1);
2437
2437
  },
2438
- extend: ea,
2438
+ extend: ns,
2439
2439
  throttle: Yi,
2440
2440
  closest: ut,
2441
2441
  toggleClass: et,
2442
2442
  clone: Gi,
2443
2443
  index: ot,
2444
2444
  nextTick: Oe,
2445
- cancelNextTick: Mn,
2445
+ cancelNextTick: Nn,
2446
2446
  detectDirection: Qi,
2447
- getChild: zt
2447
+ getChild: Xt
2448
2448
  };
2449
2449
  v.get = function(e) {
2450
2450
  return e[it];
@@ -2461,9 +2461,9 @@ v.mount = function() {
2461
2461
  v.create = function(e, t) {
2462
2462
  return new v(e, t);
2463
2463
  };
2464
- v.version = Kr;
2465
- var I = [], ne, Nn, In = !1, Cn, Tn, je, ie;
2466
- function wa() {
2464
+ v.version = Qr;
2465
+ var I = [], ie, Mn, In = !1, Cn, Tn, je, oe;
2466
+ function Es() {
2467
2467
  function e() {
2468
2468
  this.defaults = {
2469
2469
  scroll: !0,
@@ -2485,29 +2485,29 @@ function wa() {
2485
2485
  !this.options.dragOverBubble && !i.rootEl && this._handleAutoScroll(i);
2486
2486
  },
2487
2487
  drop: function() {
2488
- this.sortable.nativeDraggable ? $(document, "dragover", this._handleAutoScroll) : ($(document, "pointermove", this._handleFallbackAutoScroll), $(document, "touchmove", this._handleFallbackAutoScroll), $(document, "mousemove", this._handleFallbackAutoScroll)), bi(), Me(), na();
2488
+ this.sortable.nativeDraggable ? S(document, "dragover", this._handleAutoScroll) : (S(document, "pointermove", this._handleFallbackAutoScroll), S(document, "touchmove", this._handleFallbackAutoScroll), S(document, "mousemove", this._handleFallbackAutoScroll)), bi(), Ne(), is();
2489
2489
  },
2490
2490
  nulling: function() {
2491
- je = Nn = ne = In = ie = Cn = Tn = null, I.length = 0;
2491
+ je = Mn = ie = In = oe = Cn = Tn = null, I.length = 0;
2492
2492
  },
2493
2493
  _handleFallbackAutoScroll: function(n) {
2494
2494
  this._handleAutoScroll(n, !0);
2495
2495
  },
2496
2496
  _handleAutoScroll: function(n, i) {
2497
- var o = this, r = (n.touches ? n.touches[0] : n).clientX, a = (n.touches ? n.touches[0] : n).clientY, s = document.elementFromPoint(r, a);
2497
+ var o = this, r = (n.touches ? n.touches[0] : n).clientX, s = (n.touches ? n.touches[0] : n).clientY, a = document.elementFromPoint(r, s);
2498
2498
  if (je = n, i || this.options.forceAutoScrollFallback || we || bt || ae) {
2499
- Pn(n, this.options, s, i);
2500
- var l = St(s, !0);
2501
- In && (!ie || r !== Cn || a !== Tn) && (ie && bi(), ie = setInterval(function() {
2502
- var u = St(document.elementFromPoint(r, a), !0);
2503
- u !== l && (l = u, Me()), Pn(n, o.options, u, i);
2504
- }, 10), Cn = r, Tn = a);
2499
+ Pn(n, this.options, a, i);
2500
+ var l = $t(a, !0);
2501
+ In && (!oe || r !== Cn || s !== Tn) && (oe && bi(), oe = setInterval(function() {
2502
+ var u = $t(document.elementFromPoint(r, s), !0);
2503
+ u !== l && (l = u, Ne()), Pn(n, o.options, u, i);
2504
+ }, 10), Cn = r, Tn = s);
2505
2505
  } else {
2506
- if (!this.options.bubbleScroll || St(s, !0) === dt()) {
2507
- Me();
2506
+ if (!this.options.bubbleScroll || $t(a, !0) === dt()) {
2507
+ Ne();
2508
2508
  return;
2509
2509
  }
2510
- Pn(n, this.options, St(s, !1), !1);
2510
+ Pn(n, this.options, $t(a, !1), !1);
2511
2511
  }
2512
2512
  }
2513
2513
  }, yt(e, {
@@ -2515,43 +2515,43 @@ function wa() {
2515
2515
  initializeByDefault: !0
2516
2516
  });
2517
2517
  }
2518
- function Me() {
2518
+ function Ne() {
2519
2519
  I.forEach(function(e) {
2520
2520
  clearInterval(e.pid);
2521
2521
  }), I = [];
2522
2522
  }
2523
2523
  function bi() {
2524
- clearInterval(ie);
2524
+ clearInterval(oe);
2525
2525
  }
2526
2526
  var Pn = Yi(function(e, t, n, i) {
2527
2527
  if (t.scroll) {
2528
- var o = (e.touches ? e.touches[0] : e).clientX, r = (e.touches ? e.touches[0] : e).clientY, a = t.scrollSensitivity, s = t.scrollSpeed, l = dt(), u = !1, c;
2529
- Nn !== n && (Nn = n, Me(), ne = t.scroll, c = t.scrollFn, ne === !0 && (ne = St(n, !0)));
2530
- var d = 0, p = ne;
2528
+ var o = (e.touches ? e.touches[0] : e).clientX, r = (e.touches ? e.touches[0] : e).clientY, s = t.scrollSensitivity, a = t.scrollSpeed, l = dt(), u = !1, c;
2529
+ Mn !== n && (Mn = n, Ne(), ie = t.scroll, c = t.scrollFn, ie === !0 && (ie = $t(n, !0)));
2530
+ var d = 0, p = ie;
2531
2531
  do {
2532
- var f = p, g = H(f), y = g.top, D = g.bottom, U = g.left, V = g.right, tt = g.width, Y = g.height, at = void 0, A = void 0, z = f.scrollWidth, st = f.scrollHeight, X = b(f), Yt = f.scrollLeft, vt = f.scrollTop;
2533
- f === l ? (at = tt < z && (X.overflowX === "auto" || X.overflowX === "scroll" || X.overflowX === "visible"), A = Y < st && (X.overflowY === "auto" || X.overflowY === "scroll" || X.overflowY === "visible")) : (at = tt < z && (X.overflowX === "auto" || X.overflowX === "scroll"), A = Y < st && (X.overflowY === "auto" || X.overflowY === "scroll"));
2534
- var Wt = at && (Math.abs(V - o) <= a && Yt + tt < z) - (Math.abs(U - o) <= a && !!Yt), ht = A && (Math.abs(D - r) <= a && vt + Y < st) - (Math.abs(y - r) <= a && !!vt);
2532
+ var f = p, g = H(f), y = g.top, D = g.bottom, U = g.left, V = g.right, tt = g.width, Y = g.height, st = void 0, A = void 0, z = f.scrollWidth, at = f.scrollHeight, X = b(f), Wt = f.scrollLeft, vt = f.scrollTop;
2533
+ f === l ? (st = tt < z && (X.overflowX === "auto" || X.overflowX === "scroll" || X.overflowX === "visible"), A = Y < at && (X.overflowY === "auto" || X.overflowY === "scroll" || X.overflowY === "visible")) : (st = tt < z && (X.overflowX === "auto" || X.overflowX === "scroll"), A = Y < at && (X.overflowY === "auto" || X.overflowY === "scroll"));
2534
+ var Gt = st && (Math.abs(V - o) <= s && Wt + tt < z) - (Math.abs(U - o) <= s && !!Wt), ht = A && (Math.abs(D - r) <= s && vt + Y < at) - (Math.abs(y - r) <= s && !!vt);
2535
2535
  if (!I[d])
2536
2536
  for (var Ct = 0; Ct <= d; Ct++)
2537
2537
  I[Ct] || (I[Ct] = {});
2538
- (I[d].vx != Wt || I[d].vy != ht || I[d].el !== f) && (I[d].el = f, I[d].vx = Wt, I[d].vy = ht, clearInterval(I[d].pid), (Wt != 0 || ht != 0) && (u = !0, I[d].pid = setInterval((function() {
2538
+ (I[d].vx != Gt || I[d].vy != ht || I[d].el !== f) && (I[d].el = f, I[d].vx = Gt, I[d].vy = ht, clearInterval(I[d].pid), (Gt != 0 || ht != 0) && (u = !0, I[d].pid = setInterval((function() {
2539
2539
  i && this.layer === 0 && v.active._onTouchMove(je);
2540
- var Gt = I[this.layer].vy ? I[this.layer].vy * s : 0, wt = I[this.layer].vx ? I[this.layer].vx * s : 0;
2541
- typeof c == "function" && c.call(v.dragged.parentNode[it], wt, Gt, e, je, I[this.layer].el) !== "continue" || Wi(I[this.layer].el, wt, Gt);
2540
+ var Jt = I[this.layer].vy ? I[this.layer].vy * a : 0, wt = I[this.layer].vx ? I[this.layer].vx * a : 0;
2541
+ typeof c == "function" && c.call(v.dragged.parentNode[it], wt, Jt, e, je, I[this.layer].el) !== "continue" || Wi(I[this.layer].el, wt, Jt);
2542
2542
  }).bind({
2543
2543
  layer: d
2544
2544
  }), 24))), d++;
2545
- } while (t.bubbleScroll && p !== l && (p = St(p, !1)));
2545
+ } while (t.bubbleScroll && p !== l && (p = $t(p, !1)));
2546
2546
  In = u;
2547
2547
  }
2548
2548
  }, 30), io = function(t) {
2549
- var n = t.originalEvent, i = t.putSortable, o = t.dragEl, r = t.activeSortable, a = t.dispatchSortableEvent, s = t.hideGhostForTarget, l = t.unhideGhostForTarget;
2549
+ var n = t.originalEvent, i = t.putSortable, o = t.dragEl, r = t.activeSortable, s = t.dispatchSortableEvent, a = t.hideGhostForTarget, l = t.unhideGhostForTarget;
2550
2550
  if (n) {
2551
2551
  var u = i || r;
2552
- s();
2552
+ a();
2553
2553
  var c = n.changedTouches && n.changedTouches.length ? n.changedTouches[0] : n, d = document.elementFromPoint(c.clientX, c.clientY);
2554
- l(), u && !u.el.contains(d) && (a("spill"), this.onSpill({
2554
+ l(), u && !u.el.contains(d) && (s("spill"), this.onSpill({
2555
2555
  dragEl: o,
2556
2556
  putSortable: i
2557
2557
  }));
@@ -2568,7 +2568,7 @@ qn.prototype = {
2568
2568
  onSpill: function(t) {
2569
2569
  var n = t.dragEl, i = t.putSortable;
2570
2570
  this.sortable.captureAnimationState(), i && i.captureAnimationState();
2571
- var o = zt(this.sortable.el, this.startIndex, this.options);
2571
+ var o = Xt(this.sortable.el, this.startIndex, this.options);
2572
2572
  o ? this.sortable.el.insertBefore(n, o) : this.sortable.el.appendChild(n), this.sortable.animateAll(), i && i.animateAll();
2573
2573
  },
2574
2574
  drop: io
@@ -2588,18 +2588,18 @@ Yn.prototype = {
2588
2588
  yt(Yn, {
2589
2589
  pluginName: "removeOnSpill"
2590
2590
  });
2591
- v.mount(new wa());
2591
+ v.mount(new Es());
2592
2592
  v.mount(Yn, qn);
2593
- const Ea = (e) => {
2593
+ const xs = (e) => {
2594
2594
  const t = e.item;
2595
2595
  let n = Array.prototype.slice.call(t.parentNode.childNodes);
2596
2596
  return n = n.filter(
2597
2597
  (i) => i.nodeType != Node.ELEMENT_NODE || !i.classList.contains("sortable-fallback")
2598
2598
  ), n;
2599
- }, xa = (e, t, n, i, o, r) => {
2600
- const s = e.item.parentNode;
2599
+ }, Ss = (e, t, n, i, o, r) => {
2600
+ const a = e.item.parentNode;
2601
2601
  for (const y of n)
2602
- s.appendChild(y);
2602
+ a.appendChild(y);
2603
2603
  if (e.oldIndex == e.newIndex) return;
2604
2604
  const l = i.getArray(), u = (
2605
2605
  /** @type {Element & {layer: import("ol/layer").Layer}} */
@@ -2620,7 +2620,7 @@ const Ea = (e) => {
2620
2620
  }
2621
2621
  t.requestUpdate();
2622
2622
  };
2623
- function $a(e, t, n, i) {
2623
+ function $s(e, t, n, i) {
2624
2624
  let o = [], r = null;
2625
2625
  e._sortable = v.create(e, {
2626
2626
  handle: ".drag-handle",
@@ -2628,27 +2628,27 @@ function $a(e, t, n, i) {
2628
2628
  swapThreshold: 0.5,
2629
2629
  animation: 150,
2630
2630
  easing: "cubic-bezier(1, 0, 0, 1)",
2631
- onStart: (a) => o = Ea(a),
2632
- onMove: (a) => {
2633
- r = a.related;
2631
+ onStart: (s) => o = xs(s),
2632
+ onMove: (s) => {
2633
+ r = s.related;
2634
2634
  },
2635
- onEnd: (a) => xa(a, i, o, t, n, r)
2635
+ onEnd: (s) => Ss(s, i, o, t, n, r)
2636
2636
  });
2637
2637
  }
2638
- function Sa(e, t, n, i) {
2638
+ function _s(e, t, n, i) {
2639
2639
  const o = e.getArray();
2640
2640
  let r = !1;
2641
- o.forEach((a) => {
2642
- const s = a.ol_uid;
2643
- a.get(t) || (a.set(t, s), r = !0), a.get(n) || (a.set(n, `layer ${s}`), r = !0), r && i.requestUpdate();
2641
+ o.forEach((s) => {
2642
+ const a = s.ol_uid;
2643
+ s.get(t) || (s.set(t, a), r = !0), s.get(n) || (s.set(n, `layer ${a}`), r = !0), r && i.requestUpdate();
2644
2644
  });
2645
2645
  }
2646
2646
  function Wn(e, t, n) {
2647
2647
  let i = [];
2648
- const o = (r, a, s) => {
2648
+ const o = (r, s, a) => {
2649
2649
  i = [
2650
2650
  ...i,
2651
- ...r.filter((u) => u.get(a) === s)
2651
+ ...r.filter((u) => u.get(s) === a)
2652
2652
  ];
2653
2653
  const l = r.filter(
2654
2654
  (u) => (
@@ -2659,13 +2659,13 @@ function Wn(e, t, n) {
2659
2659
  return l.length > 0 && l.forEach(
2660
2660
  (u) => (
2661
2661
  // @ts-ignore
2662
- o(u.getLayers().getArray(), a, s)
2662
+ o(u.getLayers().getArray(), s, a)
2663
2663
  )
2664
2664
  ), i;
2665
2665
  };
2666
2666
  return o(e, t, n), i;
2667
2667
  }
2668
- function _a(e, t, n) {
2668
+ function As(e, t, n) {
2669
2669
  if (!e || !t) return !1;
2670
2670
  if (!oo(e, n)) return !0;
2671
2671
  const i = e.get("minZoom"), o = e.get("maxZoom"), r = t.getView().getZoom();
@@ -2675,9 +2675,9 @@ function oo(e, t) {
2675
2675
  const n = e.get("minZoom"), i = e.get("maxZoom");
2676
2676
  return !!(t && (n !== -1 / 0 || i !== 1 / 0));
2677
2677
  }
2678
- function Aa(e, t) {
2679
- var o, r, a;
2680
- return !e || !t ? void 0 : e.getLayers ? "group" : ((a = (o = t.getInteractions().getArray().filter((s) => s.freehand_ !== void 0).map((s) => s.source_)) == null ? void 0 : o.ol_uid) == null ? void 0 : a.includes(
2678
+ function Cs(e, t) {
2679
+ var o, r, s;
2680
+ return !e || !t ? void 0 : e.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(
2681
2681
  // @ts-ignore
2682
2682
  e.getSource ? (r = e.getSource()) == null ? void 0 : r.ol_uid : void 0
2683
2683
  )) ? "draw" : e.declutter_ !== void 0 ? "vector" : "raster";
@@ -2690,32 +2690,42 @@ function ro(e, t) {
2690
2690
  if (r && r !== "object")
2691
2691
  n[o] = r === "number" ? Number(t[o]) : t[o];
2692
2692
  else if (typeof e[o] == "object" && ((i = e[o]) != null && i.properties)) {
2693
- const a = ro(
2693
+ const s = ro(
2694
2694
  e[o].properties,
2695
2695
  t
2696
2696
  );
2697
- Object.keys(a).length > 0 && (n[o] = a);
2697
+ Object.keys(s).length > 0 && (n[o] = s);
2698
2698
  }
2699
2699
  }
2700
2700
  return n;
2701
2701
  }
2702
- function Ca(e, t) {
2703
- var r;
2704
- if (!t || !e.getSource().getTileUrlFunction()) return null;
2705
- const n = new URL(e.getSource().getTileUrlFunction()([0, 0, 0])), i = Object.fromEntries(n.searchParams.entries()), o = ro(
2706
- ((r = t.schema) == null ? void 0 : r.properties) || t.schema,
2707
- i
2702
+ function Ts(e, t) {
2703
+ var r, s, a, l, u;
2704
+ if (!t) return null;
2705
+ let n = {}, i = "updateStyleVariables" in e ? (
2706
+ /** @type {import("ol/layer/WebGLTile").default} */
2707
+ (r = e.style_) == null ? void 0 : r.variables
2708
+ ) : (s = t.style) == null ? void 0 : s.variables;
2709
+ if ((t.type === "style" || t.style) && i)
2710
+ n = i;
2711
+ else if ((l = (a = e.getSource()) == null ? void 0 : a.getTileUrlFunction) != null && l.call(a)) {
2712
+ const c = new URL(e.getSource().getTileUrlFunction()([0, 0, 0]));
2713
+ n = Object.fromEntries(c.searchParams.entries());
2714
+ } else return null;
2715
+ const o = ro(
2716
+ ((u = t.schema) == null ? void 0 : u.properties) || t.schema,
2717
+ n
2708
2718
  );
2709
2719
  return Object.keys(o).length ? o : null;
2710
2720
  }
2711
- const Ta = (e, t) => e == null ? void 0 : e.filter(
2721
+ const Ps = (e, t) => e == null ? void 0 : e.filter(
2712
2722
  (n) => ["remove", "sort"].filter((i) => t != null && t.get("layerControlDisable") ? i !== "sort" : !0).includes(n)
2713
- ), Pa = (e, t) => e == null ? void 0 : e.filter((n) => {
2723
+ ), Ds = (e, t) => e == null ? void 0 : e.filter((n) => {
2714
2724
  let i = !0;
2715
2725
  return ["remove", "sort"].includes(n) && (i = !1), n === "info" && (i = t.get("description")), n === "config" && (i = t.get("layerConfig")), n === "datetime" && (i = t.get("layerDatetime")), i;
2716
- }), Da = (e, t) => E`
2726
+ }), Rs = (e, t) => E`
2717
2727
  <button slot="${e}-icon" class="icon">${t ? e : C}</button>
2718
- `, Ra = (e) => E`
2728
+ `, Os = (e) => E`
2719
2729
  <button
2720
2730
  class="remove-icon icon"
2721
2731
  @click=${() => {
@@ -2730,11 +2740,11 @@ const Ta = (e, t) => e == null ? void 0 : e.filter(
2730
2740
  >
2731
2741
  ${e.unstyled ? "x" : C}
2732
2742
  </button>
2733
- `, Oa = (e) => E`
2743
+ `, Ns = (e) => E`
2734
2744
  <span class="button sort-icon icon drag-handle">
2735
2745
  ${e ? "═" : C}
2736
2746
  </span>
2737
- `, ao = (e) => {
2747
+ `, so = (e) => {
2738
2748
  var n;
2739
2749
  const t = ["layerControlHide", "layerControlOptional"];
2740
2750
  return (n = e == null ? void 0 : e.getArray()) == null ? void 0 : n.filter((i) => t.every((o) => !i.get(o)));
@@ -2744,10 +2754,10 @@ const Ta = (e, t) => e == null ? void 0 : e.filter(
2744
2754
  * Copyright 2020 Google LLC
2745
2755
  * SPDX-License-Identifier: BSD-3-Clause
2746
2756
  */
2747
- const so = Fn(class extends jn {
2757
+ const ao = Fn(class extends jn {
2748
2758
  constructor(e) {
2749
2759
  if (super(e), e.type !== Et.PROPERTY && e.type !== Et.ATTRIBUTE && e.type !== Et.BOOLEAN_ATTRIBUTE) throw Error("The `live` directive is not allowed on child or event bindings");
2750
- if (!Go(e)) throw Error("`live` bindings can only contain a single expression");
2760
+ if (!Jo(e)) throw Error("`live` bindings can only contain a single expression");
2751
2761
  }
2752
2762
  render(e) {
2753
2763
  return e;
@@ -2783,92 +2793,141 @@ class Hn extends jn {
2783
2793
  }
2784
2794
  }
2785
2795
  Hn.directiveName = "unsafeHTML", Hn.resultType = 1;
2786
- const Ma = Fn(Hn);
2796
+ const Ms = Fn(Hn);
2787
2797
  /**
2788
2798
  * @license
2789
2799
  * Copyright 2021 Google LLC
2790
2800
  * SPDX-License-Identifier: BSD-3-Clause
2791
2801
  */
2792
- function* Ne(e, t) {
2802
+ function* Me(e, t) {
2793
2803
  if (e !== void 0) {
2794
2804
  let n = 0;
2795
2805
  for (const i of e) yield t(i, n++);
2796
2806
  }
2797
2807
  }
2798
- const Na = (e, t, n) => {
2808
+ const Is = (e, t, n) => {
2799
2809
  let i = t;
2800
2810
  return n.layer.getSource().getTileUrlFunction() && (i || (i = n.layer.getSource().getTileUrlFunction()), n.layer.getSource().setTileUrlFunction(
2801
- (...o) => Yr(i(...o), e)
2811
+ (...o) => Wr(i(...o), e)
2802
2812
  ), n.layer.getSource().setKey(/* @__PURE__ */ new Date())), i;
2803
2813
  };
2814
+ function Hs(e, t, n) {
2815
+ const i = "updateStyleVariables" in t, o = "setStyle" in t, r = i ? (
2816
+ /** @type {import('ol/layer/WebGLTile').default} */
2817
+ t.style_
2818
+ ) : n.style;
2819
+ let s = r == null ? void 0 : r.variables;
2820
+ if (s) {
2821
+ const a = lo(e);
2822
+ if (r.variables = {
2823
+ ...s,
2824
+ ...a
2825
+ }, i)
2826
+ t.updateStyleVariables(a);
2827
+ else if (o) {
2828
+ const l = Bs(r);
2829
+ t.setStyle(
2830
+ l
2831
+ );
2832
+ }
2833
+ }
2834
+ }
2835
+ const lo = (e) => {
2836
+ const t = {};
2837
+ for (const n in e)
2838
+ if (typeof e[n] == "object" && e[n] !== null) {
2839
+ const i = lo(
2840
+ /** @type {Record<string,any>} */
2841
+ e[n]
2842
+ );
2843
+ for (const o in i)
2844
+ t[o] = i == null ? void 0 : i[o];
2845
+ } else
2846
+ t[n] = e == null ? void 0 : e[n];
2847
+ return t;
2848
+ };
2849
+ function Bs(e) {
2850
+ let t = e;
2851
+ if ("variables" in e) {
2852
+ let n = JSON.stringify(e);
2853
+ const { variables: i } = e;
2854
+ for (const o in i)
2855
+ typeof i[o] == "number" ? n = n.replaceAll(`["var","${o}"]`, i[o]) : n = n.replaceAll(
2856
+ `["var","${o}"]`,
2857
+ `"${i[o]}"`
2858
+ );
2859
+ t = JSON.parse(n);
2860
+ }
2861
+ return t;
2862
+ }
2804
2863
  var Ce = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
2805
- function Ia(e) {
2864
+ function Vs(e) {
2806
2865
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
2807
2866
  }
2808
- var Ha = "Expected a function", vi = NaN, Ba = "[object Symbol]", Va = /^\s+|\s+$/g, La = /^[-+]0x[0-9a-f]+$/i, Ua = /^0b[01]+$/i, ka = /^0o[0-7]+$/i, Fa = parseInt, ja = typeof Ce == "object" && Ce && Ce.Object === Object && Ce, Za = typeof self == "object" && self && self.Object === Object && self, za = ja || Za || Function("return this")(), Xa = Object.prototype, qa = Xa.toString, Ya = Math.max, Wa = Math.min, Dn = function() {
2809
- return za.Date.now();
2867
+ var Ls = "Expected a function", vi = NaN, Us = "[object Symbol]", ks = /^\s+|\s+$/g, Fs = /^[-+]0x[0-9a-f]+$/i, js = /^0b[01]+$/i, Zs = /^0o[0-7]+$/i, zs = parseInt, Xs = typeof Ce == "object" && Ce && Ce.Object === Object && Ce, qs = typeof self == "object" && self && self.Object === Object && self, Ys = Xs || qs || Function("return this")(), Ws = Object.prototype, Gs = Ws.toString, Js = Math.max, Ks = Math.min, Dn = function() {
2868
+ return Ys.Date.now();
2810
2869
  };
2811
- function Ga(e, t, n) {
2812
- var i, o, r, a, s, l, u = 0, c = !1, d = !1, p = !0;
2870
+ function Qs(e, t, n) {
2871
+ var i, o, r, s, a, l, u = 0, c = !1, d = !1, p = !0;
2813
2872
  if (typeof e != "function")
2814
- throw new TypeError(Ha);
2815
- t = wi(t) || 0, Bn(n) && (c = !!n.leading, d = "maxWait" in n, r = d ? Ya(wi(n.maxWait) || 0, t) : r, p = "trailing" in n ? !!n.trailing : p);
2873
+ throw new TypeError(Ls);
2874
+ t = wi(t) || 0, Bn(n) && (c = !!n.leading, d = "maxWait" in n, r = d ? Js(wi(n.maxWait) || 0, t) : r, p = "trailing" in n ? !!n.trailing : p);
2816
2875
  function f(A) {
2817
- var z = i, st = o;
2818
- return i = o = void 0, u = A, a = e.apply(st, z), a;
2876
+ var z = i, at = o;
2877
+ return i = o = void 0, u = A, s = e.apply(at, z), s;
2819
2878
  }
2820
2879
  function g(A) {
2821
- return u = A, s = setTimeout(U, t), c ? f(A) : a;
2880
+ return u = A, a = setTimeout(U, t), c ? f(A) : s;
2822
2881
  }
2823
2882
  function y(A) {
2824
- var z = A - l, st = A - u, X = t - z;
2825
- return d ? Wa(X, r - st) : X;
2883
+ var z = A - l, at = A - u, X = t - z;
2884
+ return d ? Ks(X, r - at) : X;
2826
2885
  }
2827
2886
  function D(A) {
2828
- var z = A - l, st = A - u;
2829
- return l === void 0 || z >= t || z < 0 || d && st >= r;
2887
+ var z = A - l, at = A - u;
2888
+ return l === void 0 || z >= t || z < 0 || d && at >= r;
2830
2889
  }
2831
2890
  function U() {
2832
2891
  var A = Dn();
2833
2892
  if (D(A))
2834
2893
  return V(A);
2835
- s = setTimeout(U, y(A));
2894
+ a = setTimeout(U, y(A));
2836
2895
  }
2837
2896
  function V(A) {
2838
- return s = void 0, p && i ? f(A) : (i = o = void 0, a);
2897
+ return a = void 0, p && i ? f(A) : (i = o = void 0, s);
2839
2898
  }
2840
2899
  function tt() {
2841
- s !== void 0 && clearTimeout(s), u = 0, i = l = o = s = void 0;
2900
+ a !== void 0 && clearTimeout(a), u = 0, i = l = o = a = void 0;
2842
2901
  }
2843
2902
  function Y() {
2844
- return s === void 0 ? a : V(Dn());
2903
+ return a === void 0 ? s : V(Dn());
2845
2904
  }
2846
- function at() {
2905
+ function st() {
2847
2906
  var A = Dn(), z = D(A);
2848
2907
  if (i = arguments, o = this, l = A, z) {
2849
- if (s === void 0)
2908
+ if (a === void 0)
2850
2909
  return g(l);
2851
2910
  if (d)
2852
- return s = setTimeout(U, t), f(l);
2911
+ return a = setTimeout(U, t), f(l);
2853
2912
  }
2854
- return s === void 0 && (s = setTimeout(U, t)), a;
2913
+ return a === void 0 && (a = setTimeout(U, t)), s;
2855
2914
  }
2856
- return at.cancel = tt, at.flush = Y, at;
2915
+ return st.cancel = tt, st.flush = Y, st;
2857
2916
  }
2858
2917
  function Bn(e) {
2859
2918
  var t = typeof e;
2860
2919
  return !!e && (t == "object" || t == "function");
2861
2920
  }
2862
- function Ja(e) {
2921
+ function ta(e) {
2863
2922
  return !!e && typeof e == "object";
2864
2923
  }
2865
- function Ka(e) {
2866
- return typeof e == "symbol" || Ja(e) && qa.call(e) == Ba;
2924
+ function ea(e) {
2925
+ return typeof e == "symbol" || ta(e) && Gs.call(e) == Us;
2867
2926
  }
2868
2927
  function wi(e) {
2869
2928
  if (typeof e == "number")
2870
2929
  return e;
2871
- if (Ka(e))
2930
+ if (ea(e))
2872
2931
  return vi;
2873
2932
  if (Bn(e)) {
2874
2933
  var t = typeof e.valueOf == "function" ? e.valueOf() : e;
@@ -2876,14 +2935,14 @@ function wi(e) {
2876
2935
  }
2877
2936
  if (typeof e != "string")
2878
2937
  return e === 0 ? e : +e;
2879
- e = e.replace(Va, "");
2880
- var n = Ua.test(e);
2881
- return n || ka.test(e) ? Fa(e.slice(2), n ? 2 : 8) : La.test(e) ? vi : +e;
2882
- }
2883
- var Qa = Ga;
2884
- const lo = /* @__PURE__ */ Ia(Qa);
2885
- var ge, me, ye, Ze, co, ze, Xe;
2886
- class uo extends Q {
2938
+ e = e.replace(ks, "");
2939
+ var n = js.test(e);
2940
+ return n || Zs.test(e) ? zs(e.slice(2), n ? 2 : 8) : Fs.test(e) ? vi : +e;
2941
+ }
2942
+ var na = Qs;
2943
+ const uo = /* @__PURE__ */ Vs(na);
2944
+ var Zt, me, ye, Ze, ho, ze, Xe;
2945
+ class co extends Q {
2887
2946
  constructor() {
2888
2947
  super();
2889
2948
  T(this, Ze);
@@ -2892,7 +2951,7 @@ class uo extends Q {
2892
2951
  *
2893
2952
  * @type {{[key: string]: any}}
2894
2953
  */
2895
- T(this, ge, {});
2954
+ T(this, Zt, {});
2896
2955
  /**
2897
2956
  * data input by the user
2898
2957
  *
@@ -2907,7 +2966,7 @@ class uo extends Q {
2907
2966
  T(this, ye);
2908
2967
  T(this, ze, "");
2909
2968
  T(this, Xe, "");
2910
- this.layer = null, this.unstyled = !1, this.noShadow = !1, this.layerConfig = null, this.debouncedDataChange = lo(B(this, Ze, co), 1e3, {
2969
+ this.layer = null, this.unstyled = !1, this.noShadow = !1, this.layerConfig = null, this.debouncedDataChange = uo(B(this, Ze, ho), 1e3, {
2911
2970
  leading: !0
2912
2971
  });
2913
2972
  }
@@ -2921,7 +2980,7 @@ class uo extends Q {
2921
2980
  * Renders a JSON form for configuration options of a layer.
2922
2981
  */
2923
2982
  render() {
2924
- Kt(this, me, Ca(this.layer, this.layerConfig)), customElements.get("eox-jsonform") || console.error("Please import @eox/jsonform in order to use layerconfig");
2983
+ Qt(this, me, Ts(this.layer, this.layerConfig)), customElements.get("eox-jsonform") || console.error("Please import @eox/jsonform in order to use layerconfig");
2925
2984
  const n = {
2926
2985
  disable_edit_json: !0,
2927
2986
  disable_collapse: !0,
@@ -2947,19 +3006,21 @@ class uo extends Q {
2947
3006
  `;
2948
3007
  }
2949
3008
  }
2950
- ge = new WeakMap(), me = new WeakMap(), ye = new WeakMap(), Ze = new WeakSet(), /**
3009
+ Zt = new WeakMap(), me = new WeakMap(), ye = new WeakMap(), Ze = new WeakSet(), /**
2951
3010
  * Handles changes in eox-jsonform values.
2952
3011
  *
2953
3012
  * @param {{ detail: { value: string; }; }} e
2954
3013
  */
2955
- co = function(n) {
2956
- Kt(this, ge, n.detail), Kt(this, ye, Na(
2957
- P(this, ge),
3014
+ ho = function(n) {
3015
+ Qt(this, Zt, n.detail), this.layerConfig.type === "style" || this.layerConfig.style ? "setStyle" in this.layer || "updateStyleVariables" in this.layer ? Hs(P(this, Zt), this.layer, this.layerConfig) : console.error(
3016
+ `Layer type ${this.layer.get("type") ?? ""} does not support styles configuration`
3017
+ ) : (Qt(this, ye, Is(
3018
+ P(this, Zt),
2958
3019
  P(this, ye),
2959
3020
  this
2960
- )), this.requestUpdate();
3021
+ )), this.requestUpdate());
2961
3022
  }, ze = new WeakMap(), Xe = new WeakMap(), // Define static properties for the component
2962
- N(uo, "properties", {
3023
+ M(co, "properties", {
2963
3024
  layer: { attribute: !1 },
2964
3025
  unstyled: { type: Boolean },
2965
3026
  noShadow: { type: Boolean },
@@ -2967,10 +3028,10 @@ N(uo, "properties", {
2967
3028
  });
2968
3029
  customElements.define(
2969
3030
  "eox-layercontrol-layerconfig",
2970
- uo
3031
+ co
2971
3032
  );
2972
- var qe, po, Ye, We;
2973
- class ho extends Q {
3033
+ var qe, fo, Ye, We;
3034
+ class po extends Q {
2974
3035
  constructor() {
2975
3036
  super();
2976
3037
  T(this, qe);
@@ -3003,12 +3064,12 @@ class ho extends Q {
3003
3064
  ?unstyled=${this.unstyled}
3004
3065
  .for=${void 0}
3005
3066
  .layer=${void 0}
3006
- slider=${!0}
3007
- .disablePlay=${!0}
3067
+ .slider=${this.layerDatetime.slider ?? !1}
3068
+ .disablePlay=${this.layerDatetime.disablePlay ?? !1}
3008
3069
  .controlValues=${this.layerDatetime.values}
3009
3070
  .controlProperty=${void 0}
3010
3071
  current-step=${this.layerDatetime.current}
3011
- @stepchange=${B(this, qe, po)}
3072
+ @stepchange=${B(this, qe, fo)}
3012
3073
  ></eox-timecontrol>
3013
3074
  `
3014
3075
  )}
@@ -3021,18 +3082,18 @@ qe = new WeakSet(), /**
3021
3082
  *
3022
3083
  * @param {CustomEvent<{currentStep:string|number}>} evt
3023
3084
  **/
3024
- po = function(n) {
3085
+ fo = function(n) {
3025
3086
  this.dispatchEvent(
3026
3087
  new CustomEvent("datetime:updated", {
3027
3088
  bubbles: !0,
3028
3089
  detail: {
3029
3090
  datetime: n.detail.currentStep,
3030
- layer: this.layer.get("id")
3091
+ layer: this.layer
3031
3092
  }
3032
3093
  })
3033
3094
  ), this.layerDatetime.current = n.detail.currentStep, this.requestUpdate();
3034
3095
  }, Ye = new WeakMap(), We = new WeakMap(), // Define static properties for the component
3035
- N(ho, "properties", {
3096
+ M(po, "properties", {
3036
3097
  unstyled: { type: Boolean },
3037
3098
  noShadow: { type: Boolean },
3038
3099
  layerDatetime: { attribute: !1 },
@@ -3040,10 +3101,10 @@ N(ho, "properties", {
3040
3101
  });
3041
3102
  customElements.define(
3042
3103
  "eox-layercontrol-layer-datetime",
3043
- ho
3104
+ po
3044
3105
  );
3045
3106
  var be, Ge, Je;
3046
- class fo extends Q {
3107
+ class go extends Q {
3047
3108
  constructor() {
3048
3109
  super();
3049
3110
  /** @param {number} index */
@@ -3118,12 +3179,12 @@ class fo extends Q {
3118
3179
  <nav>
3119
3180
  <div>
3120
3181
  <!-- Labels for tabs -->
3121
- ${Ne(
3182
+ ${Me(
3122
3183
  n,
3123
- (r, a) => E`
3184
+ (r, s) => E`
3124
3185
  <label
3125
- class=${P(this, be).call(this, a)}
3126
- @click=${() => this.selectedTab = a}
3186
+ class=${P(this, be).call(this, s)}
3187
+ @click=${() => this.selectedTab = s}
3127
3188
  >
3128
3189
  <!-- Customizable icon for each tab -->
3129
3190
  <slot name=${`${r}-icon`}>${r}</slot>
@@ -3133,7 +3194,7 @@ class fo extends Q {
3133
3194
  </div>
3134
3195
  <div>
3135
3196
  <!-- Icons for actions -->
3136
- ${Ne(
3197
+ ${Me(
3137
3198
  i,
3138
3199
  (r) => E`
3139
3200
  <span>
@@ -3148,10 +3209,10 @@ class fo extends Q {
3148
3209
  )}
3149
3210
  <figure>
3150
3211
  <!-- Content for each tab -->
3151
- ${Ne(
3212
+ ${Me(
3152
3213
  n,
3153
- (r, a) => E`
3154
- <div class="tab ${P(this, be).call(this, a)}">
3214
+ (r, s) => E`
3215
+ <div class="tab ${P(this, be).call(this, s)}">
3155
3216
  <!-- Content slot for each tab -->
3156
3217
  <slot name=${`${r}-content`}>${r}</slot>
3157
3218
  </div>
@@ -3163,15 +3224,15 @@ class fo extends Q {
3163
3224
  }
3164
3225
  }
3165
3226
  be = new WeakMap(), Ge = new WeakMap(), Je = new WeakMap(), // Define static properties for the component
3166
- N(fo, "properties", {
3227
+ M(go, "properties", {
3167
3228
  actions: { attribute: !1 },
3168
3229
  selectedTab: { state: !0 },
3169
3230
  tabs: { attribute: !1 },
3170
3231
  unstyled: { type: Boolean },
3171
3232
  noShadow: { type: Boolean }
3172
3233
  });
3173
- customElements.define("eox-layercontrol-tabs", fo);
3174
- const ts = `
3234
+ customElements.define("eox-layercontrol-tabs", go);
3235
+ const ia = `
3175
3236
  button,
3176
3237
  .button {
3177
3238
  /* TODO: why does this only work here and not from :root? */
@@ -3295,7 +3356,7 @@ button.smallest.icon::before {
3295
3356
  width: 16px;
3296
3357
  padding: 0px;
3297
3358
  }
3298
- `, es = `
3359
+ `, oa = `
3299
3360
  input[type=radio] {
3300
3361
  appearance: none;
3301
3362
  -webkit-appearance: none;
@@ -3323,7 +3384,7 @@ input[type=radio]:checked:after {
3323
3384
  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");
3324
3385
 
3325
3386
  }
3326
- `, go = `
3387
+ `, mo = `
3327
3388
  input[type=checkbox] {
3328
3389
  appearance: none;
3329
3390
  -webkit-appearance: none;
@@ -3346,7 +3407,7 @@ input[type=checkbox]:checked:after {
3346
3407
  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");
3347
3408
 
3348
3409
  }
3349
- `, ns = `
3410
+ `, ra = `
3350
3411
  input[type="range"] {
3351
3412
  -webkit-appearance: none;
3352
3413
  width: 90%;
@@ -3425,13 +3486,13 @@ input::-moz-focus-inner, input::-moz-focus-outer {
3425
3486
  }
3426
3487
  `;
3427
3488
  var Ke, Qe;
3428
- class mo extends Q {
3489
+ class yo extends Q {
3429
3490
  constructor() {
3430
3491
  super();
3431
3492
  // Initializes '_removeButton' invoking 'removeButton' function with 'this' context.
3432
- N(this, "_removeButton", () => Ra(this));
3493
+ M(this, "_removeButton", () => Os(this));
3433
3494
  // Initializes '_sortButton' invoking 'sortButton' function with 'unstyled' property as a parameter.
3434
- N(this, "_sortButton", () => Oa(this.unstyled));
3495
+ M(this, "_sortButton", () => Ns(this.unstyled));
3435
3496
  /**
3436
3497
  * Initializes '_button' as a function accepting 'tool' parameter to generate a Button.
3437
3498
  * Uses 'this.unstyled' as a context parameter for Button generation.
@@ -3439,13 +3500,13 @@ class mo extends Q {
3439
3500
  * @param {string} tool - Tool parameter for Button generation.
3440
3501
  * @returns {import("lit").HTMLTemplateResult} - The generated Button element.
3441
3502
  */
3442
- N(this, "_button", (n) => Da(n, this.unstyled));
3503
+ M(this, "_button", (n) => Rs(n, this.unstyled));
3443
3504
  T(this, Ke, "");
3444
3505
  T(this, Qe, `
3445
- ${ts}
3446
- ${es}
3447
- ${go}
3448
- ${ns}
3506
+ ${ia}
3507
+ ${oa}
3508
+ ${mo}
3509
+ ${ra}
3449
3510
  .drag-handle {
3450
3511
  cursor: n-resize;
3451
3512
  }
@@ -3552,20 +3613,20 @@ class mo extends Q {
3552
3613
  }
3553
3614
  render() {
3554
3615
  var l;
3555
- const n = Ta(this.tools, this.layer), i = Pa(this.tools, this.layer), o = this[`_${n == null ? void 0 : n[0]}Button`] ? (
3616
+ const n = Ps(this.tools, this.layer), i = Ds(this.tools, this.layer), o = this[`_${n == null ? void 0 : n[0]}Button`] ? (
3556
3617
  // @ts-ignore
3557
3618
  this[`_${n == null ? void 0 : n[0]}Button`]()
3558
- ) : C, r = ((l = this.tools) == null ? void 0 : l.length) === 1 ? `${this.tools[0]}-icon` : "", a = n == null ? void 0 : n.length, s = i == null ? void 0 : i.length;
3619
+ ) : C, r = ((l = this.tools) == null ? void 0 : l.length) === 1 ? `${this.tools[0]}-icon` : "", s = n == null ? void 0 : n.length, a = i == null ? void 0 : i.length;
3559
3620
  return E`
3560
3621
  <style>
3561
3622
  ${P(this, Ke)}
3562
3623
  ${!this.unstyled && P(this, Qe)}
3563
3624
  </style>
3564
3625
  ${K(
3565
- a + s > 0,
3626
+ s + a > 0,
3566
3627
  () => E`
3567
3628
  ${K(
3568
- a === 1 && s === 0,
3629
+ s === 1 && a === 0,
3569
3630
  () => E`
3570
3631
  <div class="single-action-container">
3571
3632
  <div class="single-action">${o}</div>
@@ -3588,10 +3649,10 @@ class mo extends Q {
3588
3649
  .unstyled=${this.unstyled}
3589
3650
  >
3590
3651
  <!-- Rendering tabs and content -->
3591
- ${Ne(i, (c) => this._button(c))}
3652
+ ${Me(i, (c) => this._button(c))}
3592
3653
 
3593
3654
  <div slot="info-content">
3594
- ${Ma(this.layer.get("description"))}
3655
+ ${Ms(this.layer.get("description"))}
3595
3656
  </div>
3596
3657
  <div slot="opacity-content">
3597
3658
  <!-- Input for opacity -->
@@ -3600,7 +3661,7 @@ class mo extends Q {
3600
3661
  min="0"
3601
3662
  max="1"
3602
3663
  step="0.01"
3603
- value=${so((u = this.layer) == null ? void 0 : u.getOpacity())}
3664
+ value=${ao((u = this.layer) == null ? void 0 : u.getOpacity())}
3604
3665
  @input=${(c) => this.layer.setOpacity(parseFloat(c.target.value))}
3605
3666
  />
3606
3667
  </div>
@@ -3649,7 +3710,7 @@ class mo extends Q {
3649
3710
  }
3650
3711
  }
3651
3712
  Ke = new WeakMap(), Qe = new WeakMap(), // Define static properties for the component
3652
- N(mo, "properties", {
3713
+ M(yo, "properties", {
3653
3714
  layer: { attribute: !1 },
3654
3715
  tools: { attribute: !1 },
3655
3716
  unstyled: { type: Boolean },
@@ -3657,11 +3718,11 @@ N(mo, "properties", {
3657
3718
  });
3658
3719
  customElements.define(
3659
3720
  "eox-layercontrol-layer-tools",
3660
- mo
3721
+ yo
3661
3722
  );
3662
- const is = (e) => {
3723
+ const sa = (e) => {
3663
3724
  const t = () => {
3664
- const n = _a(
3725
+ const n = As(
3665
3726
  e.layer,
3666
3727
  e.map,
3667
3728
  e.showLayerZoomState
@@ -3675,7 +3736,7 @@ const is = (e) => {
3675
3736
  e.layer,
3676
3737
  e.showLayerZoomState
3677
3738
  ) && (t(), e.map.getView().on("change:resolution", () => t()));
3678
- }, os = (e, t) => {
3739
+ }, aa = (e, t) => {
3679
3740
  const n = t.layer;
3680
3741
  n.setVisible(e.target.checked), e.target.checked && n.get("layerControlExclusive") && t.closest(
3681
3742
  ".layers > ul"
@@ -3686,8 +3747,8 @@ const is = (e) => {
3686
3747
  new CustomEvent("changed", { bubbles: !0, detail: n })
3687
3748
  ), t.requestUpdate();
3688
3749
  };
3689
- var At, Ie, bo, tn, en;
3690
- class yo extends Q {
3750
+ var At, Ie, vo, tn, en;
3751
+ class bo extends Q {
3691
3752
  constructor() {
3692
3753
  super();
3693
3754
  T(this, At);
@@ -3696,10 +3757,10 @@ class yo extends Q {
3696
3757
  *
3697
3758
  * @type {Boolean}
3698
3759
  */
3699
- N(this, "currLayerVisibilityBasedOnZoom", !0);
3760
+ M(this, "currLayerVisibilityBasedOnZoom", !0);
3700
3761
  T(this, tn, "");
3701
3762
  T(this, en, `
3702
- ${go}
3763
+ ${mo}
3703
3764
  eox-layercontrol-layer {
3704
3765
  width: 100%;
3705
3766
  }
@@ -3753,7 +3814,7 @@ class yo extends Q {
3753
3814
  * and register "change:resolution" ones at the beginning if `showLayerZoomState` is present
3754
3815
  */
3755
3816
  firstUpdated() {
3756
- is(this);
3817
+ sa(this);
3757
3818
  }
3758
3819
  /**
3759
3820
  * Renders layer controls and tools with conditional display based on certain properties.
@@ -3762,7 +3823,7 @@ class yo extends Q {
3762
3823
  */
3763
3824
  render() {
3764
3825
  var l;
3765
- const n = this.layer.getVisible(), i = n ? "visible" : "", o = this.currLayerVisibilityBasedOnZoom ? "" : "zoom-state-invisible", r = B(this, At, Ie).call(this, "layerControlDisable") ? "disabled" : "", a = B(this, At, Ie).call(this, "layerControlExclusive") ? "radio" : "checkbox", s = ((l = this.tools) == null ? void 0 : l.length) > 0;
3826
+ const n = this.layer.getVisible(), i = n ? "visible" : "", o = this.currLayerVisibilityBasedOnZoom ? "" : "zoom-state-invisible", r = B(this, At, Ie).call(this, "layerControlDisable") ? "disabled" : "", s = B(this, At, Ie).call(this, "layerControlExclusive") ? "radio" : "checkbox", a = ((l = this.tools) == null ? void 0 : l.length) > 0;
3766
3827
  return E`
3767
3828
  <style>
3768
3829
  ${P(this, tn)}
@@ -3776,15 +3837,15 @@ class yo extends Q {
3776
3837
  <label class="drag-handle ${r}">
3777
3838
  <!-- Input element for layer visibility -->
3778
3839
  <input
3779
- type=${a}
3780
- .checked=${so(n)}
3781
- @click=${B(this, At, bo)}
3840
+ type=${s}
3841
+ .checked=${ao(n)}
3842
+ @click=${B(this, At, vo)}
3782
3843
  />
3783
3844
 
3784
3845
  <!-- Layer title -->
3785
3846
  <span class="title">${B(this, At, Ie).call(this, this.titleProperty)}</span>
3786
3847
  ${K(
3787
- s,
3848
+ a,
3788
3849
  () => E`<span class="tools-placeholder"></span>`
3789
3850
  )}
3790
3851
  </label>
@@ -3816,10 +3877,10 @@ Ie = function(n) {
3816
3877
  *
3817
3878
  * @param {{target: { checked: boolean }}} evt - The input change event.
3818
3879
  */
3819
- bo = function(n) {
3820
- os(n, this);
3880
+ vo = function(n) {
3881
+ aa(n, this);
3821
3882
  }, tn = new WeakMap(), en = new WeakMap(), // Define static properties for the component
3822
- N(yo, "properties", {
3883
+ M(bo, "properties", {
3823
3884
  layer: { attribute: !1 },
3824
3885
  map: { attribute: !1, state: !0 },
3825
3886
  titleProperty: { attribute: "title-property", type: String },
@@ -3828,9 +3889,9 @@ N(yo, "properties", {
3828
3889
  unstyled: { type: Boolean },
3829
3890
  noShadow: { type: Boolean }
3830
3891
  });
3831
- customElements.define("eox-layercontrol-layer", yo);
3892
+ customElements.define("eox-layercontrol-layer", bo);
3832
3893
  var nn, on;
3833
- class vo extends Q {
3894
+ class wo extends Q {
3834
3895
  constructor() {
3835
3896
  super();
3836
3897
  T(this, nn, "");
@@ -3874,7 +3935,7 @@ class vo extends Q {
3874
3935
  */
3875
3936
  render() {
3876
3937
  var o, r;
3877
- const n = !!((o = this.group) != null && o.get("layerControlExpand")), i = (r = ao(
3938
+ const n = !!((o = this.group) != null && o.get("layerControlExpand")), i = (r = so(
3878
3939
  this.group.getLayers()
3879
3940
  )) == null ? void 0 : r.length;
3880
3941
  return E`
@@ -3923,7 +3984,7 @@ class vo extends Q {
3923
3984
  }
3924
3985
  }
3925
3986
  nn = new WeakMap(), on = new WeakMap(), // Define static properties for the component
3926
- N(vo, "properties", {
3987
+ M(wo, "properties", {
3927
3988
  group: { attribute: !1 },
3928
3989
  idProperty: { attribute: "id-property" },
3929
3990
  map: { attribute: !1, state: !0 },
@@ -3935,30 +3996,30 @@ N(vo, "properties", {
3935
3996
  });
3936
3997
  customElements.define(
3937
3998
  "eox-layercontrol-layer-group",
3938
- vo
3999
+ wo
3939
4000
  );
3940
- const rs = (e) => {
3941
- const { layers: t, idProperty: n, titleProperty: i, renderRoot: o } = e, r = lo(() => {
4001
+ const la = (e) => {
4002
+ const { layers: t, idProperty: n, titleProperty: i, renderRoot: o } = e, r = uo(() => {
3942
4003
  e.requestUpdate(), e.dispatchEvent(
3943
4004
  new CustomEvent("changed", { bubbles: !0 })
3944
4005
  );
3945
- }, 50), a = () => r();
3946
- if (t && (t.hasListener("change:length") && (t == null || t.un("change:length", a)), t.on("change:length", a), t)) {
3947
- const s = o.querySelector("ul");
3948
- Sa(
4006
+ }, 50), s = () => r();
4007
+ if (t && (t.hasListener("change:length") && (t == null || t.un("change:length", s)), t.on("change:length", s), t)) {
4008
+ const a = o.querySelector("ul");
4009
+ _s(
3949
4010
  t,
3950
4011
  n,
3951
4012
  i,
3952
4013
  e
3953
- ), $a(s, t, n, e);
4014
+ ), $s(a, t, n, e);
3954
4015
  }
3955
4016
  };
3956
- var rn, an;
3957
- class wo extends Q {
4017
+ var rn, sn;
4018
+ class Eo extends Q {
3958
4019
  constructor() {
3959
4020
  super();
3960
4021
  T(this, rn, "");
3961
- T(this, an, `
4022
+ T(this, sn, `
3962
4023
  ul {
3963
4024
  padding: 0;
3964
4025
  margin: 0;
@@ -3993,7 +4054,7 @@ class wo extends Q {
3993
4054
  * Executes specific logic after the initial render of the component.
3994
4055
  */
3995
4056
  firstUpdated() {
3996
- rs(this);
4057
+ la(this);
3997
4058
  }
3998
4059
  /**
3999
4060
  * Overrides createRenderRoot to handle shadow DOM creation based on the noShadow property.
@@ -4006,23 +4067,23 @@ class wo extends Q {
4006
4067
  * layer groups or individual layers accordingly. Utilizes conditional rendering and iterates through available layers.
4007
4068
  */
4008
4069
  render() {
4009
- const n = this.layers ? ao(this.layers).reverse() : [];
4070
+ const n = this.layers ? so(this.layers).reverse() : [];
4010
4071
  return E`
4011
4072
  <style>
4012
4073
  ${P(this, rn)}
4013
- ${!this.unstyled && P(this, an)}
4074
+ ${!this.unstyled && P(this, sn)}
4014
4075
  </style>
4015
4076
  <ul>
4016
4077
  ${K(
4017
4078
  this.layers,
4018
4079
  () => E`
4019
- ${Qo(
4080
+ ${tr(
4020
4081
  n,
4021
4082
  (i) => i,
4022
4083
  (i) => E`
4023
4084
  <li
4024
4085
  data-layer="${i.get(this.idProperty)}"
4025
- data-type="${Aa(i, this.map)}"
4086
+ data-type="${Cs(i, this.map)}"
4026
4087
  >
4027
4088
  ${/** Checks if the layer is a group or individual layer and renders accordingly */
4028
4089
  /** @type {import("ol/layer").Group} */
@@ -4060,8 +4121,8 @@ class wo extends Q {
4060
4121
  `;
4061
4122
  }
4062
4123
  }
4063
- rn = new WeakMap(), an = new WeakMap(), // Define static properties for the component
4064
- N(wo, "properties", {
4124
+ rn = new WeakMap(), sn = new WeakMap(), // Define static properties for the component
4125
+ M(Eo, "properties", {
4065
4126
  idProperty: { attribute: "id-property" },
4066
4127
  layers: { attribute: !1 },
4067
4128
  map: { attribute: !1, state: !0 },
@@ -4071,8 +4132,8 @@ N(wo, "properties", {
4071
4132
  unstyled: { type: Boolean },
4072
4133
  noShadow: { type: Boolean }
4073
4134
  });
4074
- customElements.define("eox-layercontrol-layer-list", wo);
4075
- const as = (e) => {
4135
+ customElements.define("eox-layercontrol-layer-list", Eo);
4136
+ const ua = (e) => {
4076
4137
  const t = e.querySelector(
4077
4138
  "select[name=optional]"
4078
4139
  ), n = t ? t.value : null, i = Wn(
@@ -4094,11 +4155,11 @@ const as = (e) => {
4094
4155
  )
4095
4156
  ), e.requestUpdate();
4096
4157
  };
4097
- var sn, xo;
4098
- class Eo extends Q {
4158
+ var an, So;
4159
+ class xo extends Q {
4099
4160
  constructor() {
4100
4161
  super();
4101
- T(this, sn);
4162
+ T(this, an);
4102
4163
  this.idProperty = "id", this.layers = null, this.titleProperty = "title", this.unstyled = !1, this.noShadow = !1;
4103
4164
  }
4104
4165
  /**
@@ -4131,24 +4192,24 @@ class Eo extends Q {
4131
4192
 
4132
4193
  <!-- Mapping through filtered layers list to generate dropdown options -->
4133
4194
  ${n.map((i) => {
4134
- const o = i.get(this.idProperty) || i.ol_uid, r = i.get(this.titleProperty), a = `layer ${i.get(this.idProperty)}`;
4135
- return E` <option value="${o}">${r || a}</option> `;
4195
+ const o = i.get(this.idProperty) || i.ol_uid, r = i.get(this.titleProperty), s = `layer ${i.get(this.idProperty)}`;
4196
+ return E` <option value="${o}">${r || s}</option> `;
4136
4197
  })}
4137
4198
  </select>
4138
4199
 
4139
4200
  <!-- Button to handle adding layers -->
4140
- <button @click="${B(this, sn, xo)}">add</button>
4201
+ <button @click="${B(this, an, So)}">add</button>
4141
4202
  `;
4142
4203
  }
4143
4204
  }
4144
- sn = new WeakSet(), /**
4205
+ an = new WeakSet(), /**
4145
4206
  * Handles the addition of selected layers to a list.
4146
4207
  * Invokes the 'addToListMethod' with the current context.
4147
4208
  */
4148
- xo = function() {
4149
- as(this);
4209
+ So = function() {
4210
+ ua(this);
4150
4211
  }, // Define static properties for the component
4151
- N(Eo, "properties", {
4212
+ M(xo, "properties", {
4152
4213
  idProperty: { attribute: "id-property" },
4153
4214
  layers: { attribute: !1 },
4154
4215
  titleProperty: { attribute: "title-property", type: String },
@@ -4157,9 +4218,9 @@ N(Eo, "properties", {
4157
4218
  });
4158
4219
  customElements.define(
4159
4220
  "eox-layercontrol-optional-list",
4160
- Eo
4221
+ xo
4161
4222
  );
4162
- const ss = (e, t) => {
4223
+ const da = (e, t) => {
4163
4224
  t.jsonInput = e.target.value, t.requestUpdate();
4164
4225
  }, Ei = (e) => {
4165
4226
  const t = JSON.parse(
@@ -4168,16 +4229,16 @@ const ss = (e, t) => {
4168
4229
  Array.isArray(t.data) ? t.data.forEach((n) => {
4169
4230
  e.eoxMap.addOrUpdateLayer(n);
4170
4231
  }) : e.eoxMap.addOrUpdateLayer(t.data), e.jsonInput = null, e.requestUpdate();
4171
- }, ls = (e, t) => {
4232
+ }, ca = (e, t) => {
4172
4233
  t.urlInput = e.target.value, t.requestUpdate();
4173
4234
  };
4174
- async function us(e) {
4235
+ async function ha(e) {
4175
4236
  const t = e.urlInput;
4176
4237
  if (e.wmsCapabilities = null, e.searchLoad = !0, e.requestUpdate(), !t) return !1;
4177
4238
  if (zn(t) === "XYZ")
4178
4239
  return { Name: t };
4179
4240
  try {
4180
- const n = await zr(t);
4241
+ const n = await Xr(t);
4181
4242
  e.wmsCapabilities = n;
4182
4243
  } catch {
4183
4244
  } finally {
@@ -4185,7 +4246,7 @@ async function us(e) {
4185
4246
  }
4186
4247
  return !1;
4187
4248
  }
4188
- const ds = (e, t) => {
4249
+ const pa = (e, t) => {
4189
4250
  const { Name: n } = e, i = zn(t.urlInput) || "XYZ", o = {
4190
4251
  type: "Tile",
4191
4252
  properties: {
@@ -4204,10 +4265,10 @@ const ds = (e, t) => {
4204
4265
  }
4205
4266
  };
4206
4267
  t.jsonInput = JSON.stringify(o);
4207
- }, cs = (e, t) => {
4268
+ }, fa = (e, t) => {
4208
4269
  t.open = e || null, t.urlInput = null, t.jsonInput = null, t.wmsCapabilities = null, t.requestUpdate();
4209
4270
  };
4210
- var F, So, _o, Vn, Ao, Co, He, ln, un;
4271
+ var F, _o, Ao, Vn, Co, To, He, ln, un;
4211
4272
  class $o extends Q {
4212
4273
  constructor() {
4213
4274
  super();
@@ -4217,31 +4278,31 @@ class $o extends Q {
4217
4278
  *
4218
4279
  * @type {String}
4219
4280
  */
4220
- N(this, "urlInput", null);
4281
+ M(this, "urlInput", null);
4221
4282
  /**
4222
4283
  * State for JSON Textarea - For EOxMap JSON
4223
4284
  *
4224
4285
  * @type {String}
4225
4286
  */
4226
- N(this, "jsonInput", null);
4287
+ M(this, "jsonInput", null);
4227
4288
  /**
4228
4289
  * State for add layer - consist of url/json
4229
4290
  *
4230
4291
  * @type {"url" | "json" | null}
4231
4292
  */
4232
- N(this, "open", null);
4293
+ M(this, "open", null);
4233
4294
  /**
4234
4295
  * Loader state when search is triggered
4235
4296
  *
4236
4297
  * @type {Boolean}
4237
4298
  */
4238
- N(this, "searchLoad", !1);
4299
+ M(this, "searchLoad", !1);
4239
4300
  /**
4240
4301
  * State for `WMS Capabilities JSON`
4241
4302
  *
4242
4303
  * @type {import("wms-capabilities").WMSCapabilitiesJSON}
4243
4304
  */
4244
- N(this, "wmsCapabilities", null);
4305
+ M(this, "wmsCapabilities", null);
4245
4306
  T(this, ln, `
4246
4307
  .eox-add-layer-main .open {
4247
4308
  position: relative;
@@ -4399,7 +4460,7 @@ class $o extends Q {
4399
4460
  * Handles input fields, search, and addition of layers.
4400
4461
  */
4401
4462
  render() {
4402
- const n = this.open ? "open" : "close", i = this.open === "url", o = this.open === "json", r = !Xr(this.urlInput) || this.searchLoad ? !0 : C;
4463
+ const n = this.open ? "open" : "close", i = this.open === "url", o = this.open === "json", r = !qr(this.urlInput) || this.searchLoad ? !0 : C;
4403
4464
  return E`
4404
4465
  <style>
4405
4466
  ${P(this, ln)}
@@ -4440,14 +4501,14 @@ class $o extends Q {
4440
4501
  class="add-url"
4441
4502
  placeholder="Add URL (WMS/XYZ)"
4442
4503
  .value="${this.urlInput}"
4443
- @input=${B(this, F, So)}
4504
+ @input=${B(this, F, _o)}
4444
4505
  >
4445
4506
  </input>
4446
4507
  <!-- Search button for URL -->
4447
4508
  <button
4448
4509
  class="search-icon"
4449
4510
  disabled=${r}
4450
- @click=${B(this, F, _o)}
4511
+ @click=${B(this, F, Ao)}
4451
4512
  >
4452
4513
  ${this.unstyled ? "Search" : ""}
4453
4514
  </button>
@@ -4456,17 +4517,17 @@ class $o extends Q {
4456
4517
  <!-- Display layers for WMS capabilities -->
4457
4518
  ${this.wmsCapabilities ? E`<ul class="search-lists">
4458
4519
  ${this.wmsCapabilities.Capability.Layer.Layer.map(
4459
- (a) => {
4460
- const s = a.Name;
4520
+ (s) => {
4521
+ const a = s.Name;
4461
4522
  return E`
4462
4523
  <li class="search-list">
4463
- ${s}
4524
+ ${a}
4464
4525
  <!-- Button to add layer -->
4465
4526
  <button
4466
4527
  class="add-layer-icon icon"
4467
4528
  @click=${() => (
4468
4529
  //@ts-ignore
4469
- B(this, F, Vn).call(this, a)
4530
+ B(this, F, Vn).call(this, s)
4470
4531
  )}
4471
4532
  >
4472
4533
  ${this.unstyled ? "+" : ""}
@@ -4481,15 +4542,15 @@ class $o extends Q {
4481
4542
  <textarea
4482
4543
  class="add-layer-input"
4483
4544
  placeholder="Please put a valid eox-map layer JSON."
4484
- @input=${B(this, F, Co)}
4545
+ @input=${B(this, F, To)}
4485
4546
  .value=${this.jsonInput}
4486
4547
  ></textarea>
4487
4548
 
4488
4549
  <!-- Button to add JSON layer -->
4489
4550
  <button
4490
4551
  class="add-layer-icon json-add-layer"
4491
- disabled=${qr(this.jsonInput) ? C : !0}
4492
- @click=${B(this, F, Ao)}
4552
+ disabled=${Yr(this.jsonInput) ? C : !0}
4553
+ @click=${B(this, F, Co)}
4493
4554
  >
4494
4555
  ${this.unstyled ? "Add JSON" : ""}
4495
4556
  </button>
@@ -4505,10 +4566,10 @@ F = new WeakSet(), /**
4505
4566
  *
4506
4567
  * @param {Event} evt - The input change event triggering the method.
4507
4568
  */
4508
- So = function(n) {
4509
- ls(n, this);
4510
- }, _o = async function() {
4511
- const n = await us(this);
4569
+ _o = function(n) {
4570
+ ca(n, this);
4571
+ }, Ao = async function() {
4572
+ const n = await ha(this);
4512
4573
  n && B(this, F, Vn).call(this, n);
4513
4574
  }, /**
4514
4575
  * Handles input field changes by triggering layer processing and adding layers.
@@ -4516,72 +4577,72 @@ So = function(n) {
4516
4577
  * @param {{"Name": string}} layer - The layer information triggering the method.
4517
4578
  */
4518
4579
  Vn = function(n) {
4519
- ds(n, this), Ei(this);
4580
+ pa(n, this), Ei(this);
4520
4581
  }, /**
4521
4582
  * Initiates the addition of layers, triggering the handleAddLayerMethod.
4522
4583
  */
4523
- Ao = function() {
4584
+ Co = function() {
4524
4585
  Ei(this);
4525
4586
  }, /**
4526
4587
  * Handles input field changes by invoking the 'handleJsonInputChangeMethod'.
4527
4588
  *
4528
4589
  * @param {{target: { value: string }}} evt - The input change event triggering the method.
4529
4590
  */
4530
- Co = function(n) {
4531
- ss(n, this);
4591
+ To = function(n) {
4592
+ da(n, this);
4532
4593
  }, /**
4533
4594
  * Handles tab changes by invoking the 'openCloseTabMethod'.
4534
4595
  *
4535
4596
  * @param {"url" | "json" | null} tab - The tab identifier triggering the method.
4536
4597
  */
4537
4598
  He = function(n) {
4538
- cs(n, this);
4599
+ fa(n, this);
4539
4600
  }, ln = new WeakMap(), un = new WeakMap(), // Define static properties for the component
4540
- N($o, "properties", {
4601
+ M($o, "properties", {
4541
4602
  eoxMap: { attribute: !1, state: !0 },
4542
4603
  unstyled: { type: Boolean },
4543
4604
  noShadow: { type: Boolean }
4544
4605
  });
4545
4606
  customElements.define("eox-layercontrol-add-layers", $o);
4546
- const hs = (e, t) => {
4607
+ const ga = (e, t) => {
4547
4608
  if (t.requestUpdate(), e.target.tagName === "EOX-LAYERCONTROL-LAYER-TOOLS") {
4548
4609
  const n = t.renderRoot.querySelector(
4549
4610
  "eox-layercontrol-optional-list"
4550
4611
  );
4551
4612
  n == null || n.requestUpdate();
4552
4613
  }
4553
- }, ps = (e) => {
4614
+ }, ma = (e) => {
4554
4615
  let t;
4555
4616
  return typeof e == "string" ? t = /** @type {HTMLElement} */
4556
4617
  document.querySelector(e) : t = e, t;
4557
- }, fs = (e) => {
4558
- const t = ps(e.for);
4618
+ }, ya = (e) => {
4619
+ const t = ma(e.for);
4559
4620
  return t && t.map !== e.map && (e.map = t.map), t;
4560
4621
  };
4561
- var Zt, Xt, Po, Do, dn;
4562
- class To extends Q {
4622
+ var zt, qt, Do, Ro, dn;
4623
+ class Po extends Q {
4563
4624
  // Constructor to set default values for properties
4564
4625
  constructor() {
4565
4626
  super();
4566
- T(this, Xt);
4627
+ T(this, qt);
4567
4628
  /**
4568
4629
  * Instance of `eox-map` which is a wrapper for the OL
4569
4630
  *
4570
4631
  * @type {import("../../map/main").EOxMap}
4571
4632
  */
4572
- T(this, Zt);
4633
+ T(this, zt);
4573
4634
  T(this, dn, "* { font-family: Roboto, sans-serif; }");
4574
- this.for = "eox-map", this.idProperty = "id", this.map = null, this.titleProperty = "title", this.showLayerZoomState = !1, this.tools = ["info", "opacity", "config", "remove", "sort"], this.addExternalLayers = !1, this.unstyled = !1, this.styleOverride = "";
4635
+ 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 = "";
4575
4636
  }
4576
4637
  /**
4577
4638
  * Called when the component is first updated
4578
4639
  * Updated #eoxMap after first update.
4579
4640
  */
4580
4641
  firstUpdated() {
4581
- Kt(this, Zt, fs(this));
4642
+ Qt(this, zt, ya(this));
4582
4643
  }
4583
4644
  render() {
4584
- var o, r, a;
4645
+ var o, r, s;
4585
4646
  const n = (o = this.map) == null ? void 0 : o.getLayers().getArray(), i = n && ((r = Wn(n, "layerControlOptional", !0)) == null ? void 0 : r.length) > 0;
4586
4647
  return E`
4587
4648
  <style>
@@ -4591,11 +4652,11 @@ class To extends Q {
4591
4652
 
4592
4653
  <!-- Conditional rendering of add layers component -->
4593
4654
  ${K(
4594
- this.addExternalLayers && ((a = P(this, Zt)) == null ? void 0 : a.addOrUpdateLayer),
4655
+ this.addExternalLayers && ((s = P(this, zt)) == null ? void 0 : s.addOrUpdateLayer),
4595
4656
  () => E`
4596
4657
  <eox-layercontrol-add-layers
4597
4658
  .noShadow=${!0}
4598
- .eoxMap=${P(this, Zt)}
4659
+ .eoxMap=${P(this, zt)}
4599
4660
  .unstyled=${this.unstyled}
4600
4661
  ></eox-layercontrol-add-layers>
4601
4662
  `
@@ -4615,8 +4676,8 @@ class To extends Q {
4615
4676
  .showLayerZoomState=${this.showLayerZoomState}
4616
4677
  .tools=${this.tools}
4617
4678
  .unstyled=${this.unstyled}
4618
- @changed=${B(this, Xt, Po)}
4619
- @datetime:updated=${B(this, Xt, Do)}
4679
+ @changed=${B(this, qt, Do)}
4680
+ @datetime:updated=${B(this, qt, Ro)}
4620
4681
  ></eox-layercontrol-layer-list>
4621
4682
  `
4622
4683
  )}
@@ -4637,23 +4698,23 @@ class To extends Q {
4637
4698
  `;
4638
4699
  }
4639
4700
  }
4640
- Zt = new WeakMap(), Xt = new WeakSet(), /**
4701
+ zt = new WeakMap(), qt = new WeakSet(), /**
4641
4702
  * Event handler for changes in the layer list
4642
4703
  *
4643
4704
  * @param {CustomEvent & {target: Element}} evt
4644
4705
  */
4645
- Po = function(n) {
4646
- hs(n, this), this.dispatchEvent(new CustomEvent("layerchange", { detail: n.detail }));
4706
+ Do = function(n) {
4707
+ ga(n, this), this.dispatchEvent(new CustomEvent("layerchange", { detail: n.detail }));
4647
4708
  }, /**
4648
4709
  * Dispatches datetime updates from layer datetime to the layercontrol
4649
4710
  * @param {CustomEvent} evt
4650
4711
  */
4651
- Do = function(n) {
4712
+ Ro = function(n) {
4652
4713
  this.dispatchEvent(
4653
4714
  new CustomEvent("datetime:updated", { detail: n.detail })
4654
4715
  );
4655
4716
  }, dn = new WeakMap(), // Define static properties for the component
4656
- N(To, "properties", {
4717
+ M(Po, "properties", {
4657
4718
  for: { type: String },
4658
4719
  idProperty: { attribute: "id-property" },
4659
4720
  map: { attribute: !1, state: !0 },
@@ -4664,7 +4725,7 @@ N(To, "properties", {
4664
4725
  unstyled: { type: Boolean },
4665
4726
  styleOverride: { type: String }
4666
4727
  });
4667
- customElements.define("eox-layercontrol", To);
4728
+ customElements.define("eox-layercontrol", Po);
4668
4729
  export {
4669
- To as EOxLayerControl
4730
+ Po as EOxLayerControl
4670
4731
  };