@eox/layercontrol 0.17.2 → 0.17.3

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.
@@ -1,15 +1,15 @@
1
1
  var Do = Object.defineProperty;
2
- var No = (e, t, n) => t in e ? Do(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var H = (e, t, n) => (No(e, typeof t != "symbol" ? t + "" : t, n), n), mn = (e, t, n) => {
4
- if (!t.has(e))
5
- throw TypeError("Cannot " + n);
2
+ var No = (n, t, e) => t in n ? Do(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
3
+ var H = (n, t, e) => (No(n, typeof t != "symbol" ? t + "" : t, e), e), mn = (n, t, e) => {
4
+ if (!t.has(n))
5
+ throw TypeError("Cannot " + e);
6
6
  };
7
- var R = (e, t, n) => (mn(e, t, "read from private field"), n ? n.call(e) : t.get(e)), $ = (e, t, n) => {
8
- if (t.has(e))
7
+ var R = (n, t, e) => (mn(n, t, "read from private field"), e ? e.call(n) : t.get(n)), $ = (n, t, e) => {
8
+ if (t.has(n))
9
9
  throw TypeError("Cannot add the same private member more than once");
10
- t instanceof WeakSet ? t.add(e) : t.set(e, n);
11
- }, Jt = (e, t, n, i) => (mn(e, t, "write to private field"), i ? i.call(e, n) : t.set(e, n), n);
12
- var U = (e, t, n) => (mn(e, t, "access private method"), n);
10
+ t instanceof WeakSet ? t.add(n) : t.set(n, e);
11
+ }, Jt = (n, t, e, i) => (mn(n, t, "write to private field"), i ? i.call(n, e) : t.set(n, e), e);
12
+ var k = (n, t, e) => (mn(n, t, "access private method"), e);
13
13
  /**
14
14
  * @license
15
15
  * Copyright 2019 Google LLC
@@ -17,17 +17,17 @@ var U = (e, t, n) => (mn(e, t, "access private method"), n);
17
17
  */
18
18
  const Te = globalThis, Fn = Te.ShadowRoot && (Te.ShadyCSS === void 0 || Te.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, _i = Symbol(), ti = /* @__PURE__ */ new WeakMap();
19
19
  let Mo = class {
20
- constructor(t, n, i) {
20
+ constructor(t, e, i) {
21
21
  if (this._$cssResult$ = !0, i !== _i)
22
22
  throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
23
- this.cssText = t, this.t = n;
23
+ this.cssText = t, this.t = e;
24
24
  }
25
25
  get styleSheet() {
26
26
  let t = this.o;
27
- const n = this.t;
27
+ const e = this.t;
28
28
  if (Fn && t === void 0) {
29
- const i = n !== void 0 && n.length === 1;
30
- i && (t = ti.get(n)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), i && ti.set(n, t));
29
+ const i = e !== void 0 && e.length === 1;
30
+ i && (t = ti.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), i && ti.set(e, t));
31
31
  }
32
32
  return t;
33
33
  }
@@ -35,54 +35,54 @@ let Mo = class {
35
35
  return this.cssText;
36
36
  }
37
37
  };
38
- const Io = (e) => new Mo(typeof e == "string" ? e : e + "", void 0, _i), Ho = (e, t) => {
38
+ const Io = (n) => new Mo(typeof n == "string" ? n : n + "", void 0, _i), Ho = (n, t) => {
39
39
  if (Fn)
40
- e.adoptedStyleSheets = t.map((n) => n instanceof CSSStyleSheet ? n : n.styleSheet);
40
+ n.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
41
41
  else
42
- for (const n of t) {
42
+ for (const e of t) {
43
43
  const i = document.createElement("style"), o = Te.litNonce;
44
- o !== void 0 && i.setAttribute("nonce", o), i.textContent = n.cssText, e.appendChild(i);
44
+ o !== void 0 && i.setAttribute("nonce", o), i.textContent = e.cssText, n.appendChild(i);
45
45
  }
46
- }, ei = Fn ? (e) => e : (e) => e instanceof CSSStyleSheet ? ((t) => {
47
- let n = "";
46
+ }, ei = Fn ? (n) => n : (n) => n instanceof CSSStyleSheet ? ((t) => {
47
+ let e = "";
48
48
  for (const i of t.cssRules)
49
- n += i.cssText;
50
- return Io(n);
51
- })(e) : e;
49
+ e += i.cssText;
50
+ return Io(e);
51
+ })(n) : n;
52
52
  /**
53
53
  * @license
54
54
  * Copyright 2017 Google LLC
55
55
  * SPDX-License-Identifier: BSD-3-Clause
56
56
  */
57
- const { is: Bo, defineProperty: Vo, getOwnPropertyDescriptor: Lo, getOwnPropertyNames: Uo, getOwnPropertySymbols: ko, getPrototypeOf: Fo } = Object, $t = globalThis, ni = $t.trustedTypes, jo = ni ? ni.emptyScript : "", yn = $t.reactiveElementPolyfillSupport, ie = (e, t) => e, Mn = { toAttribute(e, t) {
57
+ const { is: Bo, defineProperty: Vo, getOwnPropertyDescriptor: Lo, getOwnPropertyNames: ko, getOwnPropertySymbols: Uo, getPrototypeOf: Fo } = Object, $t = globalThis, ni = $t.trustedTypes, jo = ni ? ni.emptyScript : "", yn = $t.reactiveElementPolyfillSupport, ie = (n, t) => n, Mn = { toAttribute(n, t) {
58
58
  switch (t) {
59
59
  case Boolean:
60
- e = e ? jo : null;
60
+ n = n ? jo : null;
61
61
  break;
62
62
  case Object:
63
63
  case Array:
64
- e = e == null ? e : JSON.stringify(e);
64
+ n = n == null ? n : JSON.stringify(n);
65
65
  }
66
- return e;
67
- }, fromAttribute(e, t) {
68
- let n = e;
66
+ return n;
67
+ }, fromAttribute(n, t) {
68
+ let e = n;
69
69
  switch (t) {
70
70
  case Boolean:
71
- n = e !== null;
71
+ e = n !== null;
72
72
  break;
73
73
  case Number:
74
- n = e === null ? null : Number(e);
74
+ e = n === null ? null : Number(n);
75
75
  break;
76
76
  case Object:
77
77
  case Array:
78
78
  try {
79
- n = JSON.parse(e);
79
+ e = JSON.parse(n);
80
80
  } catch {
81
- n = null;
81
+ e = null;
82
82
  }
83
83
  }
84
- return n;
85
- } }, Ai = (e, t) => !Bo(e, t), ii = { attribute: !0, type: String, converter: Mn, reflect: !1, hasChanged: Ai };
84
+ return e;
85
+ } }, Ai = (n, t) => !Bo(n, t), ii = { attribute: !0, type: String, converter: Mn, reflect: !1, hasChanged: Ai };
86
86
  Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), $t.litPropertyMetadata ?? ($t.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
87
87
  class Bt extends HTMLElement {
88
88
  static addInitializer(t) {
@@ -91,17 +91,17 @@ class Bt extends HTMLElement {
91
91
  static get observedAttributes() {
92
92
  return this.finalize(), this._$Eh && [...this._$Eh.keys()];
93
93
  }
94
- static createProperty(t, n = ii) {
95
- if (n.state && (n.attribute = !1), this._$Ei(), this.elementProperties.set(t, n), !n.noAccessor) {
96
- const i = Symbol(), o = this.getPropertyDescriptor(t, i, n);
94
+ static createProperty(t, e = ii) {
95
+ if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
96
+ const i = Symbol(), o = this.getPropertyDescriptor(t, i, e);
97
97
  o !== void 0 && Vo(this.prototype, t, o);
98
98
  }
99
99
  }
100
- static getPropertyDescriptor(t, n, i) {
100
+ static getPropertyDescriptor(t, e, i) {
101
101
  const { get: o, set: r } = Lo(this.prototype, t) ?? { get() {
102
- return this[n];
102
+ return this[e];
103
103
  }, set(s) {
104
- this[n] = s;
104
+ this[e] = s;
105
105
  } };
106
106
  return { get() {
107
107
  return o == null ? void 0 : o.call(this);
@@ -123,36 +123,36 @@ class Bt extends HTMLElement {
123
123
  if (this.hasOwnProperty(ie("finalized")))
124
124
  return;
125
125
  if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(ie("properties"))) {
126
- const n = this.properties, i = [...Uo(n), ...ko(n)];
126
+ const e = this.properties, i = [...ko(e), ...Uo(e)];
127
127
  for (const o of i)
128
- this.createProperty(o, n[o]);
128
+ this.createProperty(o, e[o]);
129
129
  }
130
130
  const t = this[Symbol.metadata];
131
131
  if (t !== null) {
132
- const n = litPropertyMetadata.get(t);
133
- if (n !== void 0)
134
- for (const [i, o] of n)
132
+ const e = litPropertyMetadata.get(t);
133
+ if (e !== void 0)
134
+ for (const [i, o] of e)
135
135
  this.elementProperties.set(i, o);
136
136
  }
137
137
  this._$Eh = /* @__PURE__ */ new Map();
138
- for (const [n, i] of this.elementProperties) {
139
- const o = this._$Eu(n, i);
140
- o !== void 0 && this._$Eh.set(o, n);
138
+ for (const [e, i] of this.elementProperties) {
139
+ const o = this._$Eu(e, i);
140
+ o !== void 0 && this._$Eh.set(o, e);
141
141
  }
142
142
  this.elementStyles = this.finalizeStyles(this.styles);
143
143
  }
144
144
  static finalizeStyles(t) {
145
- const n = [];
145
+ const e = [];
146
146
  if (Array.isArray(t)) {
147
147
  const i = new Set(t.flat(1 / 0).reverse());
148
148
  for (const o of i)
149
- n.unshift(ei(o));
149
+ e.unshift(ei(o));
150
150
  } else
151
- t !== void 0 && n.push(ei(t));
152
- return n;
151
+ t !== void 0 && e.push(ei(t));
152
+ return e;
153
153
  }
154
- static _$Eu(t, n) {
155
- const i = n.attribute;
154
+ static _$Eu(t, e) {
155
+ const i = e.attribute;
156
156
  return i === !1 ? void 0 : typeof i == "string" ? i : typeof t == "string" ? t.toLowerCase() : void 0;
157
157
  }
158
158
  constructor() {
@@ -160,19 +160,19 @@ class Bt extends HTMLElement {
160
160
  }
161
161
  _$Ev() {
162
162
  var t;
163
- this._$ES = new Promise((n) => this.enableUpdating = n), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), (t = this.constructor.l) == null || t.forEach((n) => n(this));
163
+ this._$ES = new Promise((e) => this.enableUpdating = e), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), (t = this.constructor.l) == null || t.forEach((e) => e(this));
164
164
  }
165
165
  addController(t) {
166
- var n;
167
- (this._$EO ?? (this._$EO = /* @__PURE__ */ new Set())).add(t), this.renderRoot !== void 0 && this.isConnected && ((n = t.hostConnected) == null || n.call(t));
166
+ var e;
167
+ (this._$EO ?? (this._$EO = /* @__PURE__ */ new Set())).add(t), this.renderRoot !== void 0 && this.isConnected && ((e = t.hostConnected) == null || e.call(t));
168
168
  }
169
169
  removeController(t) {
170
- var n;
171
- (n = this._$EO) == null || n.delete(t);
170
+ var e;
171
+ (e = this._$EO) == null || e.delete(t);
172
172
  }
173
173
  _$E_() {
174
- const t = /* @__PURE__ */ new Map(), n = this.constructor.elementProperties;
175
- for (const i of n.keys())
174
+ const t = /* @__PURE__ */ new Map(), e = this.constructor.elementProperties;
175
+ for (const i of e.keys())
176
176
  this.hasOwnProperty(i) && (t.set(i, this[i]), delete this[i]);
177
177
  t.size > 0 && (this._$Ep = t);
178
178
  }
@@ -182,56 +182,56 @@ class Bt extends HTMLElement {
182
182
  }
183
183
  connectedCallback() {
184
184
  var t;
185
- this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$EO) == null || t.forEach((n) => {
185
+ this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$EO) == null || t.forEach((e) => {
186
186
  var i;
187
- return (i = n.hostConnected) == null ? void 0 : i.call(n);
187
+ return (i = e.hostConnected) == null ? void 0 : i.call(e);
188
188
  });
189
189
  }
190
190
  enableUpdating(t) {
191
191
  }
192
192
  disconnectedCallback() {
193
193
  var t;
194
- (t = this._$EO) == null || t.forEach((n) => {
194
+ (t = this._$EO) == null || t.forEach((e) => {
195
195
  var i;
196
- return (i = n.hostDisconnected) == null ? void 0 : i.call(n);
196
+ return (i = e.hostDisconnected) == null ? void 0 : i.call(e);
197
197
  });
198
198
  }
199
- attributeChangedCallback(t, n, i) {
199
+ attributeChangedCallback(t, e, i) {
200
200
  this._$AK(t, i);
201
201
  }
202
- _$EC(t, n) {
202
+ _$EC(t, e) {
203
203
  var r;
204
204
  const i = this.constructor.elementProperties.get(t), o = this.constructor._$Eu(t, i);
205
205
  if (o !== void 0 && i.reflect === !0) {
206
- const s = (((r = i.converter) == null ? void 0 : r.toAttribute) !== void 0 ? i.converter : Mn).toAttribute(n, i.type);
206
+ const s = (((r = i.converter) == null ? void 0 : r.toAttribute) !== void 0 ? i.converter : Mn).toAttribute(e, i.type);
207
207
  this._$Em = t, s == null ? this.removeAttribute(o) : this.setAttribute(o, s), this._$Em = null;
208
208
  }
209
209
  }
210
- _$AK(t, n) {
210
+ _$AK(t, e) {
211
211
  var r;
212
212
  const i = this.constructor, o = i._$Eh.get(t);
213
213
  if (o !== void 0 && this._$Em !== o) {
214
214
  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 : Mn;
215
- this._$Em = o, this[o] = a.fromAttribute(n, s.type), this._$Em = null;
215
+ this._$Em = o, this[o] = a.fromAttribute(e, s.type), this._$Em = null;
216
216
  }
217
217
  }
218
- requestUpdate(t, n, i) {
218
+ requestUpdate(t, e, i) {
219
219
  if (t !== void 0) {
220
- if (i ?? (i = this.constructor.getPropertyOptions(t)), !(i.hasChanged ?? Ai)(this[t], n))
220
+ if (i ?? (i = this.constructor.getPropertyOptions(t)), !(i.hasChanged ?? Ai)(this[t], e))
221
221
  return;
222
- this.P(t, n, i);
222
+ this.P(t, e, i);
223
223
  }
224
224
  this.isUpdatePending === !1 && (this._$ES = this._$ET());
225
225
  }
226
- P(t, n, i) {
227
- this._$AL.has(t) || this._$AL.set(t, n), i.reflect === !0 && this._$Em !== t && (this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Set())).add(t);
226
+ P(t, e, i) {
227
+ this._$AL.has(t) || this._$AL.set(t, e), i.reflect === !0 && this._$Em !== t && (this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Set())).add(t);
228
228
  }
229
229
  async _$ET() {
230
230
  this.isUpdatePending = !0;
231
231
  try {
232
232
  await this._$ES;
233
- } catch (n) {
234
- Promise.reject(n);
233
+ } catch (e) {
234
+ Promise.reject(e);
235
235
  }
236
236
  const t = this.scheduleUpdate();
237
237
  return t != null && await t, !this.isUpdatePending;
@@ -255,22 +255,22 @@ class Bt extends HTMLElement {
255
255
  s.wrapped !== !0 || this._$AL.has(r) || this[r] === void 0 || this.P(r, this[r], s);
256
256
  }
257
257
  let t = !1;
258
- const n = this._$AL;
258
+ const e = this._$AL;
259
259
  try {
260
- t = this.shouldUpdate(n), t ? (this.willUpdate(n), (i = this._$EO) == null || i.forEach((o) => {
260
+ t = this.shouldUpdate(e), t ? (this.willUpdate(e), (i = this._$EO) == null || i.forEach((o) => {
261
261
  var r;
262
262
  return (r = o.hostUpdate) == null ? void 0 : r.call(o);
263
- }), this.update(n)) : this._$EU();
263
+ }), this.update(e)) : this._$EU();
264
264
  } catch (o) {
265
265
  throw t = !1, this._$EU(), o;
266
266
  }
267
- t && this._$AE(n);
267
+ t && this._$AE(e);
268
268
  }
269
269
  willUpdate(t) {
270
270
  }
271
271
  _$AE(t) {
272
- var n;
273
- (n = this._$EO) == null || n.forEach((i) => {
272
+ var e;
273
+ (e = this._$EO) == null || e.forEach((i) => {
274
274
  var o;
275
275
  return (o = i.hostUpdated) == null ? void 0 : o.call(i);
276
276
  }), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
@@ -288,7 +288,7 @@ class Bt extends HTMLElement {
288
288
  return !0;
289
289
  }
290
290
  update(t) {
291
- this._$Ej && (this._$Ej = this._$Ej.forEach((n) => this._$EC(n, this[n]))), this._$EU();
291
+ this._$Ej && (this._$Ej = this._$Ej.forEach((e) => this._$EC(e, this[e]))), this._$EU();
292
292
  }
293
293
  updated(t) {
294
294
  }
@@ -301,82 +301,82 @@ Bt.elementStyles = [], Bt.shadowRootOptions = { mode: "open" }, Bt[ie("elementPr
301
301
  * Copyright 2017 Google LLC
302
302
  * SPDX-License-Identifier: BSD-3-Clause
303
303
  */
304
- const oe = globalThis, Be = oe.trustedTypes, oi = Be ? Be.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, jn = "$lit$", ht = `lit$${(Math.random() + "").slice(9)}$`, zn = "?" + ht, zo = `<${zn}>`, Nt = document, de = () => Nt.createComment(""), ce = (e) => e === null || typeof e != "object" && typeof e != "function", Ci = Array.isArray, Ti = (e) => Ci(e) || typeof (e == null ? void 0 : e[Symbol.iterator]) == "function", bn = `[
304
+ const oe = globalThis, Be = oe.trustedTypes, oi = Be ? Be.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, jn = "$lit$", ht = `lit$${(Math.random() + "").slice(9)}$`, zn = "?" + ht, zo = `<${zn}>`, Nt = document, ce = () => Nt.createComment(""), de = (n) => n === null || typeof n != "object" && typeof n != "function", Ci = Array.isArray, Ti = (n) => Ci(n) || typeof (n == null ? void 0 : n[Symbol.iterator]) == "function", bn = `[
305
305
  \f\r]`, Kt = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, ri = /-->/g, si = />/g, At = RegExp(`>|${bn}(?:([^\\s"'>=/]+)(${bn}*=${bn}*(?:[^
306
- \f\r"'\`<>=]|("|')|))|$)`, "g"), ai = /'/g, li = /"/g, Pi = /^(?:script|style|textarea|title)$/i, Zo = (e) => (t, ...n) => ({ _$litType$: e, strings: t, values: n }), x = Zo(1), it = Symbol.for("lit-noChange"), T = Symbol.for("lit-nothing"), ui = /* @__PURE__ */ new WeakMap(), Rt = Nt.createTreeWalker(Nt, 129);
307
- function Oi(e, t) {
308
- if (!Array.isArray(e) || !e.hasOwnProperty("raw"))
306
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), ai = /'/g, li = /"/g, Pi = /^(?:script|style|textarea|title)$/i, Zo = (n) => (t, ...e) => ({ _$litType$: n, strings: t, values: e }), x = Zo(1), it = Symbol.for("lit-noChange"), T = Symbol.for("lit-nothing"), ui = /* @__PURE__ */ new WeakMap(), Rt = Nt.createTreeWalker(Nt, 129);
307
+ function Oi(n, t) {
308
+ if (!Array.isArray(n) || !n.hasOwnProperty("raw"))
309
309
  throw Error("invalid template strings array");
310
310
  return oi !== void 0 ? oi.createHTML(t) : t;
311
311
  }
312
- const Ri = (e, t) => {
313
- const n = e.length - 1, i = [];
312
+ const Ri = (n, t) => {
313
+ const e = n.length - 1, i = [];
314
314
  let o, r = t === 2 ? "<svg>" : "", s = Kt;
315
- for (let a = 0; a < n; a++) {
316
- const l = e[a];
317
- let u, c, d = -1, p = 0;
318
- for (; p < l.length && (s.lastIndex = p, c = s.exec(l), c !== null); )
319
- p = s.lastIndex, s === Kt ? c[1] === "!--" ? s = ri : c[1] !== void 0 ? s = si : c[2] !== void 0 ? (Pi.test(c[2]) && (o = RegExp("</" + c[2], "g")), s = At) : c[3] !== void 0 && (s = At) : s === At ? c[0] === ">" ? (s = o ?? Kt, d = -1) : c[1] === void 0 ? d = -2 : (d = s.lastIndex - c[2].length, u = c[1], s = c[3] === void 0 ? At : c[3] === '"' ? li : ai) : s === li || s === ai ? s = At : s === ri || s === si ? s = Kt : (s = At, o = void 0);
320
- const f = s === At && e[a + 1].startsWith("/>") ? " " : "";
321
- r += s === Kt ? l + zo : d >= 0 ? (i.push(u), l.slice(0, d) + jn + l.slice(d) + ht + f) : l + ht + (d === -2 ? a : f);
322
- }
323
- return [Oi(e, r + (e[n] || "<?>") + (t === 2 ? "</svg>" : "")), i];
315
+ for (let a = 0; a < e; a++) {
316
+ const l = n[a];
317
+ let u, d, c = -1, p = 0;
318
+ for (; p < l.length && (s.lastIndex = p, d = s.exec(l), d !== null); )
319
+ p = s.lastIndex, s === Kt ? d[1] === "!--" ? s = ri : d[1] !== void 0 ? s = si : d[2] !== void 0 ? (Pi.test(d[2]) && (o = RegExp("</" + d[2], "g")), s = At) : d[3] !== void 0 && (s = At) : s === At ? d[0] === ">" ? (s = o ?? Kt, c = -1) : d[1] === void 0 ? c = -2 : (c = s.lastIndex - d[2].length, u = d[1], s = d[3] === void 0 ? At : d[3] === '"' ? li : ai) : s === li || s === ai ? s = At : s === ri || s === si ? s = Kt : (s = At, o = void 0);
320
+ const f = s === At && n[a + 1].startsWith("/>") ? " " : "";
321
+ r += s === Kt ? l + zo : c >= 0 ? (i.push(u), l.slice(0, c) + jn + l.slice(c) + ht + f) : l + ht + (c === -2 ? a : f);
322
+ }
323
+ return [Oi(n, r + (n[e] || "<?>") + (t === 2 ? "</svg>" : "")), i];
324
324
  };
325
325
  class he {
326
- constructor({ strings: t, _$litType$: n }, i) {
326
+ constructor({ strings: t, _$litType$: e }, i) {
327
327
  let o;
328
328
  this.parts = [];
329
329
  let r = 0, s = 0;
330
- const a = t.length - 1, l = this.parts, [u, c] = Ri(t, n);
331
- if (this.el = he.createElement(u, i), Rt.currentNode = this.el.content, n === 2) {
332
- const d = this.el.content.firstChild;
333
- d.replaceWith(...d.childNodes);
330
+ const a = t.length - 1, l = this.parts, [u, d] = Ri(t, e);
331
+ if (this.el = he.createElement(u, i), Rt.currentNode = this.el.content, e === 2) {
332
+ const c = this.el.content.firstChild;
333
+ c.replaceWith(...c.childNodes);
334
334
  }
335
335
  for (; (o = Rt.nextNode()) !== null && l.length < a; ) {
336
336
  if (o.nodeType === 1) {
337
337
  if (o.hasAttributes())
338
- for (const d of o.getAttributeNames())
339
- if (d.endsWith(jn)) {
340
- const p = c[s++], f = o.getAttribute(d).split(ht), g = /([.?@])?(.*)/.exec(p);
341
- l.push({ type: 1, index: r, name: g[2], strings: f, ctor: g[1] === "." ? Ni : g[1] === "?" ? Mi : g[1] === "@" ? Ii : ve }), o.removeAttribute(d);
338
+ for (const c of o.getAttributeNames())
339
+ if (c.endsWith(jn)) {
340
+ const p = d[s++], f = o.getAttribute(c).split(ht), g = /([.?@])?(.*)/.exec(p);
341
+ l.push({ type: 1, index: r, name: g[2], strings: f, ctor: g[1] === "." ? Ni : g[1] === "?" ? Mi : g[1] === "@" ? Ii : ve }), o.removeAttribute(c);
342
342
  } else
343
- d.startsWith(ht) && (l.push({ type: 6, index: r }), o.removeAttribute(d));
343
+ c.startsWith(ht) && (l.push({ type: 6, index: r }), o.removeAttribute(c));
344
344
  if (Pi.test(o.tagName)) {
345
- const d = o.textContent.split(ht), p = d.length - 1;
345
+ const c = o.textContent.split(ht), p = c.length - 1;
346
346
  if (p > 0) {
347
347
  o.textContent = Be ? Be.emptyScript : "";
348
348
  for (let f = 0; f < p; f++)
349
- o.append(d[f], de()), Rt.nextNode(), l.push({ type: 2, index: ++r });
350
- o.append(d[p], de());
349
+ o.append(c[f], ce()), Rt.nextNode(), l.push({ type: 2, index: ++r });
350
+ o.append(c[p], ce());
351
351
  }
352
352
  }
353
353
  } else if (o.nodeType === 8)
354
354
  if (o.data === zn)
355
355
  l.push({ type: 2, index: r });
356
356
  else {
357
- let d = -1;
358
- for (; (d = o.data.indexOf(ht, d + 1)) !== -1; )
359
- l.push({ type: 7, index: r }), d += ht.length - 1;
357
+ let c = -1;
358
+ for (; (c = o.data.indexOf(ht, c + 1)) !== -1; )
359
+ l.push({ type: 7, index: r }), c += ht.length - 1;
360
360
  }
361
361
  r++;
362
362
  }
363
363
  }
364
- static createElement(t, n) {
364
+ static createElement(t, e) {
365
365
  const i = Nt.createElement("template");
366
366
  return i.innerHTML = t, i;
367
367
  }
368
368
  }
369
- function Mt(e, t, n = e, i) {
369
+ function Mt(n, t, e = n, i) {
370
370
  var s, a;
371
371
  if (t === it)
372
372
  return t;
373
- let o = i !== void 0 ? (s = n._$Co) == null ? void 0 : s[i] : n._$Cl;
374
- const r = ce(t) ? void 0 : t._$litDirective$;
375
- 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 = Mt(e, o._$AS(e, t.values), o, i)), t;
373
+ let o = i !== void 0 ? (s = e._$Co) == null ? void 0 : s[i] : e._$Cl;
374
+ const r = de(t) ? void 0 : t._$litDirective$;
375
+ 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(n), o._$AT(n, e, i)), i !== void 0 ? (e._$Co ?? (e._$Co = []))[i] = o : e._$Cl = o), o !== void 0 && (t = Mt(n, o._$AS(n, t.values), o, i)), t;
376
376
  }
377
377
  class Di {
378
- constructor(t, n) {
379
- this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = n;
378
+ constructor(t, e) {
379
+ this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
380
380
  }
381
381
  get parentNode() {
382
382
  return this._$AM.parentNode;
@@ -385,7 +385,7 @@ class Di {
385
385
  return this._$AM._$AU;
386
386
  }
387
387
  u(t) {
388
- const { el: { content: n }, parts: i } = this._$AD, o = ((t == null ? void 0 : t.creationScope) ?? Nt).importNode(n, !0);
388
+ const { el: { content: e }, parts: i } = this._$AD, o = ((t == null ? void 0 : t.creationScope) ?? Nt).importNode(e, !0);
389
389
  Rt.currentNode = o;
390
390
  let r = Rt.nextNode(), s = 0, a = 0, l = i[0];
391
391
  for (; l !== void 0; ) {
@@ -398,9 +398,9 @@ class Di {
398
398
  return Rt.currentNode = Nt, o;
399
399
  }
400
400
  p(t) {
401
- let n = 0;
401
+ let e = 0;
402
402
  for (const i of this._$AV)
403
- i !== void 0 && (i.strings !== void 0 ? (i._$AI(t, i, n), n += i.strings.length - 2) : i._$AI(t[n])), n++;
403
+ i !== void 0 && (i.strings !== void 0 ? (i._$AI(t, i, e), e += i.strings.length - 2) : i._$AI(t[e])), e++;
404
404
  }
405
405
  }
406
406
  class Xt {
@@ -408,13 +408,13 @@ class Xt {
408
408
  var t;
409
409
  return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
410
410
  }
411
- constructor(t, n, i, o) {
412
- this.type = 2, this._$AH = T, this._$AN = void 0, this._$AA = t, this._$AB = n, this._$AM = i, this.options = o, this._$Cv = (o == null ? void 0 : o.isConnected) ?? !0;
411
+ constructor(t, e, i, o) {
412
+ this.type = 2, this._$AH = T, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = i, this.options = o, this._$Cv = (o == null ? void 0 : o.isConnected) ?? !0;
413
413
  }
414
414
  get parentNode() {
415
415
  let t = this._$AA.parentNode;
416
- const n = this._$AM;
417
- return n !== void 0 && (t == null ? void 0 : t.nodeType) === 11 && (t = n.parentNode), t;
416
+ const e = this._$AM;
417
+ return e !== void 0 && (t == null ? void 0 : t.nodeType) === 11 && (t = e.parentNode), t;
418
418
  }
419
419
  get startNode() {
420
420
  return this._$AA;
@@ -422,8 +422,8 @@ class Xt {
422
422
  get endNode() {
423
423
  return this._$AB;
424
424
  }
425
- _$AI(t, n = this) {
426
- t = Mt(this, t, n), ce(t) ? t === T || t == null || t === "" ? (this._$AH !== T && this._$AR(), this._$AH = T) : t !== this._$AH && t !== it && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Ti(t) ? this.k(t) : this._(t);
425
+ _$AI(t, e = this) {
426
+ t = Mt(this, t, e), de(t) ? t === T || t == null || t === "" ? (this._$AH !== T && this._$AR(), this._$AH = T) : t !== this._$AH && t !== it && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Ti(t) ? this.k(t) : this._(t);
427
427
  }
428
428
  S(t) {
429
429
  return this._$AA.parentNode.insertBefore(t, this._$AB);
@@ -432,40 +432,40 @@ class Xt {
432
432
  this._$AH !== t && (this._$AR(), this._$AH = this.S(t));
433
433
  }
434
434
  _(t) {
435
- this._$AH !== T && ce(this._$AH) ? this._$AA.nextSibling.data = t : this.T(Nt.createTextNode(t)), this._$AH = t;
435
+ this._$AH !== T && de(this._$AH) ? this._$AA.nextSibling.data = t : this.T(Nt.createTextNode(t)), this._$AH = t;
436
436
  }
437
437
  $(t) {
438
438
  var r;
439
- const { values: n, _$litType$: i } = t, o = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = he.createElement(Oi(i.h, i.h[0]), this.options)), i);
439
+ const { values: e, _$litType$: i } = t, o = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = he.createElement(Oi(i.h, i.h[0]), this.options)), i);
440
440
  if (((r = this._$AH) == null ? void 0 : r._$AD) === o)
441
- this._$AH.p(n);
441
+ this._$AH.p(e);
442
442
  else {
443
443
  const s = new Di(o, this), a = s.u(this.options);
444
- s.p(n), this.T(a), this._$AH = s;
444
+ s.p(e), this.T(a), this._$AH = s;
445
445
  }
446
446
  }
447
447
  _$AC(t) {
448
- let n = ui.get(t.strings);
449
- return n === void 0 && ui.set(t.strings, n = new he(t)), n;
448
+ let e = ui.get(t.strings);
449
+ return e === void 0 && ui.set(t.strings, e = new he(t)), e;
450
450
  }
451
451
  k(t) {
452
452
  Ci(this._$AH) || (this._$AH = [], this._$AR());
453
- const n = this._$AH;
453
+ const e = this._$AH;
454
454
  let i, o = 0;
455
455
  for (const r of t)
456
- o === n.length ? n.push(i = new Xt(this.S(de()), this.S(de()), this, this.options)) : i = n[o], i._$AI(r), o++;
457
- o < n.length && (this._$AR(i && i._$AB.nextSibling, o), n.length = o);
456
+ o === e.length ? e.push(i = new Xt(this.S(ce()), this.S(ce()), this, this.options)) : i = e[o], i._$AI(r), o++;
457
+ o < e.length && (this._$AR(i && i._$AB.nextSibling, o), e.length = o);
458
458
  }
459
- _$AR(t = this._$AA.nextSibling, n) {
459
+ _$AR(t = this._$AA.nextSibling, e) {
460
460
  var i;
461
- for ((i = this._$AP) == null ? void 0 : i.call(this, !1, !0, n); t && t !== this._$AB; ) {
461
+ for ((i = this._$AP) == null ? void 0 : i.call(this, !1, !0, e); t && t !== this._$AB; ) {
462
462
  const o = t.nextSibling;
463
463
  t.remove(), t = o;
464
464
  }
465
465
  }
466
466
  setConnected(t) {
467
- var n;
468
- this._$AM === void 0 && (this._$Cv = t, (n = this._$AP) == null || n.call(this, t));
467
+ var e;
468
+ this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
469
469
  }
470
470
  }
471
471
  class ve {
@@ -475,19 +475,19 @@ class ve {
475
475
  get _$AU() {
476
476
  return this._$AM._$AU;
477
477
  }
478
- constructor(t, n, i, o, r) {
479
- this.type = 1, this._$AH = T, this._$AN = void 0, this.element = t, this.name = n, this._$AM = o, this.options = r, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = T;
478
+ constructor(t, e, i, o, r) {
479
+ this.type = 1, this._$AH = T, this._$AN = void 0, this.element = t, this.name = e, this._$AM = o, this.options = r, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = T;
480
480
  }
481
- _$AI(t, n = this, i, o) {
481
+ _$AI(t, e = this, i, o) {
482
482
  const r = this.strings;
483
483
  let s = !1;
484
484
  if (r === void 0)
485
- t = Mt(this, t, n, 0), s = !ce(t) || t !== this._$AH && t !== it, s && (this._$AH = t);
485
+ t = Mt(this, t, e, 0), s = !de(t) || t !== this._$AH && t !== it, s && (this._$AH = t);
486
486
  else {
487
487
  const a = t;
488
488
  let l, u;
489
489
  for (t = r[0], l = 0; l < r.length - 1; l++)
490
- u = Mt(this, a[i + l], n, l), u === it && (u = this._$AH[l]), s || (s = !ce(u) || u !== this._$AH[l]), u === T ? t = T : t !== T && (t += (u ?? "") + r[l + 1]), this._$AH[l] = u;
490
+ u = Mt(this, a[i + l], e, l), u === it && (u = this._$AH[l]), s || (s = !de(u) || u !== this._$AH[l]), u === T ? t = T : t !== T && (t += (u ?? "") + r[l + 1]), this._$AH[l] = u;
491
491
  }
492
492
  s && !o && this.j(t);
493
493
  }
@@ -512,23 +512,23 @@ class Mi extends ve {
512
512
  }
513
513
  }
514
514
  class Ii extends ve {
515
- constructor(t, n, i, o, r) {
516
- super(t, n, i, o, r), this.type = 5;
515
+ constructor(t, e, i, o, r) {
516
+ super(t, e, i, o, r), this.type = 5;
517
517
  }
518
- _$AI(t, n = this) {
519
- if ((t = Mt(this, t, n, 0) ?? T) === it)
518
+ _$AI(t, e = this) {
519
+ if ((t = Mt(this, t, e, 0) ?? T) === it)
520
520
  return;
521
521
  const i = this._$AH, o = t === T && i !== T || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, r = t !== T && (i === T || o);
522
522
  o && this.element.removeEventListener(this.name, this, i), r && this.element.addEventListener(this.name, this, t), this._$AH = t;
523
523
  }
524
524
  handleEvent(t) {
525
- var n;
526
- typeof this._$AH == "function" ? this._$AH.call(((n = this.options) == null ? void 0 : n.host) ?? this.element, t) : this._$AH.handleEvent(t);
525
+ var e;
526
+ typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, t) : this._$AH.handleEvent(t);
527
527
  }
528
528
  }
529
529
  class Hi {
530
- constructor(t, n, i) {
531
- this.element = t, this.type = 6, this._$AN = void 0, this._$AM = n, this.options = i;
530
+ constructor(t, e, i) {
531
+ this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = i;
532
532
  }
533
533
  get _$AU() {
534
534
  return this._$AM._$AU;
@@ -539,14 +539,14 @@ class Hi {
539
539
  }
540
540
  const Xo = { P: jn, A: ht, C: zn, M: 1, L: Ri, R: Di, D: Ti, V: Mt, I: Xt, H: ve, N: Mi, U: Ii, B: Ni, F: Hi }, vn = oe.litHtmlPolyfillSupport;
541
541
  vn == null || vn(he, Xt), (oe.litHtmlVersions ?? (oe.litHtmlVersions = [])).push("3.1.2");
542
- const Yo = (e, t, n) => {
543
- const i = (n == null ? void 0 : n.renderBefore) ?? t;
542
+ const Yo = (n, t, e) => {
543
+ const i = (e == null ? void 0 : e.renderBefore) ?? t;
544
544
  let o = i._$litPart$;
545
545
  if (o === void 0) {
546
- const r = (n == null ? void 0 : n.renderBefore) ?? null;
547
- i._$litPart$ = o = new Xt(t.insertBefore(de(), r), r, void 0, n ?? {});
546
+ const r = (e == null ? void 0 : e.renderBefore) ?? null;
547
+ i._$litPart$ = o = new Xt(t.insertBefore(ce(), r), r, void 0, e ?? {});
548
548
  }
549
- return o._$AI(e), o;
549
+ return o._$AI(n), o;
550
550
  };
551
551
  /**
552
552
  * @license
@@ -558,13 +558,13 @@ let et = class extends Bt {
558
558
  super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
559
559
  }
560
560
  createRenderRoot() {
561
- var n;
561
+ var e;
562
562
  const t = super.createRenderRoot();
563
- return (n = this.renderOptions).renderBefore ?? (n.renderBefore = t.firstChild), t;
563
+ return (e = this.renderOptions).renderBefore ?? (e.renderBefore = t.firstChild), t;
564
564
  }
565
565
  update(t) {
566
- const n = this.render();
567
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = Yo(n, this.renderRoot, this.renderOptions);
566
+ const e = this.render();
567
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = Yo(e, this.renderRoot, this.renderOptions);
568
568
  }
569
569
  connectedCallback() {
570
570
  var t;
@@ -588,29 +588,29 @@ wn == null || wn({ LitElement: et });
588
588
  * Copyright 2021 Google LLC
589
589
  * SPDX-License-Identifier: BSD-3-Clause
590
590
  */
591
- function ot(e, t, n) {
592
- return e ? t(e) : n == null ? void 0 : n(e);
591
+ function ot(n, t, e) {
592
+ return n ? t(n) : e == null ? void 0 : e(n);
593
593
  }
594
594
  /**
595
595
  * @license
596
596
  * Copyright 2017 Google LLC
597
597
  * SPDX-License-Identifier: BSD-3-Clause
598
598
  */
599
- const wt = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, Zn = (e) => (...t) => ({ _$litDirective$: e, values: t });
599
+ const wt = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, Zn = (n) => (...t) => ({ _$litDirective$: n, values: t });
600
600
  class Xn {
601
601
  constructor(t) {
602
602
  }
603
603
  get _$AU() {
604
604
  return this._$AM._$AU;
605
605
  }
606
- _$AT(t, n, i) {
607
- this._$Ct = t, this._$AM = n, this._$Ci = i;
606
+ _$AT(t, e, i) {
607
+ this._$Ct = t, this._$AM = e, this._$Ci = i;
608
608
  }
609
- _$AS(t, n) {
610
- return this.update(t, n);
609
+ _$AS(t, e) {
610
+ return this.update(t, e);
611
611
  }
612
- update(t, n) {
613
- return this.render(...n);
612
+ update(t, e) {
613
+ return this.render(...e);
614
614
  }
615
615
  }
616
616
  /**
@@ -618,33 +618,33 @@ class Xn {
618
618
  * Copyright 2020 Google LLC
619
619
  * SPDX-License-Identifier: BSD-3-Clause
620
620
  */
621
- const { I: qo } = Xo, Wo = (e) => e.strings === void 0, di = () => document.createComment(""), Qt = (e, t, n) => {
621
+ const { I: qo } = Xo, Wo = (n) => n.strings === void 0, ci = () => document.createComment(""), Qt = (n, t, e) => {
622
622
  var r;
623
- const i = e._$AA.parentNode, o = t === void 0 ? e._$AB : t._$AA;
624
- if (n === void 0) {
625
- const s = i.insertBefore(di(), o), a = i.insertBefore(di(), o);
626
- n = new qo(s, a, e, e.options);
623
+ const i = n._$AA.parentNode, o = t === void 0 ? n._$AB : t._$AA;
624
+ if (e === void 0) {
625
+ const s = i.insertBefore(ci(), o), a = i.insertBefore(ci(), o);
626
+ e = new qo(s, a, n, n.options);
627
627
  } else {
628
- const s = n._$AB.nextSibling, a = n._$AM, l = a !== e;
628
+ const s = e._$AB.nextSibling, a = e._$AM, l = a !== n;
629
629
  if (l) {
630
630
  let u;
631
- (r = n._$AQ) == null || r.call(n, e), n._$AM = e, n._$AP !== void 0 && (u = e._$AU) !== a._$AU && n._$AP(u);
631
+ (r = e._$AQ) == null || r.call(e, n), e._$AM = n, e._$AP !== void 0 && (u = n._$AU) !== a._$AU && e._$AP(u);
632
632
  }
633
633
  if (s !== o || l) {
634
- let u = n._$AA;
634
+ let u = e._$AA;
635
635
  for (; u !== s; ) {
636
- const c = u.nextSibling;
637
- i.insertBefore(u, o), u = c;
636
+ const d = u.nextSibling;
637
+ i.insertBefore(u, o), u = d;
638
638
  }
639
639
  }
640
640
  }
641
- return n;
642
- }, Ct = (e, t, n = e) => (e._$AI(t, n), e), Go = {}, Bi = (e, t = Go) => e._$AH = t, Jo = (e) => e._$AH, En = (e) => {
641
+ return e;
642
+ }, Ct = (n, t, e = n) => (n._$AI(t, e), n), Go = {}, Bi = (n, t = Go) => n._$AH = t, Jo = (n) => n._$AH, En = (n) => {
643
643
  var i;
644
- (i = e._$AP) == null || i.call(e, !1, !0);
645
- let t = e._$AA;
646
- const n = e._$AB.nextSibling;
647
- for (; t !== n; ) {
644
+ (i = n._$AP) == null || i.call(n, !1, !0);
645
+ let t = n._$AA;
646
+ const e = n._$AB.nextSibling;
647
+ for (; t !== e; ) {
648
648
  const o = t.nextSibling;
649
649
  t.remove(), t = o;
650
650
  }
@@ -654,69 +654,69 @@ const { I: qo } = Xo, Wo = (e) => e.strings === void 0, di = () => document.crea
654
654
  * Copyright 2017 Google LLC
655
655
  * SPDX-License-Identifier: BSD-3-Clause
656
656
  */
657
- const ci = (e, t, n) => {
657
+ const di = (n, t, e) => {
658
658
  const i = /* @__PURE__ */ new Map();
659
- for (let o = t; o <= n; o++)
660
- i.set(e[o], o);
659
+ for (let o = t; o <= e; o++)
660
+ i.set(n[o], o);
661
661
  return i;
662
662
  }, Ko = Zn(class extends Xn {
663
- constructor(e) {
664
- if (super(e), e.type !== wt.CHILD)
663
+ constructor(n) {
664
+ if (super(n), n.type !== wt.CHILD)
665
665
  throw Error("repeat() can only be used in text expressions");
666
666
  }
667
- dt(e, t, n) {
667
+ dt(n, t, e) {
668
668
  let i;
669
- n === void 0 ? n = t : t !== void 0 && (i = t);
669
+ e === void 0 ? e = t : t !== void 0 && (i = t);
670
670
  const o = [], r = [];
671
671
  let s = 0;
672
- for (const a of e)
673
- o[s] = i ? i(a, s) : s, r[s] = n(a, s), s++;
672
+ for (const a of n)
673
+ o[s] = i ? i(a, s) : s, r[s] = e(a, s), s++;
674
674
  return { values: r, keys: o };
675
675
  }
676
- render(e, t, n) {
677
- return this.dt(e, t, n).values;
676
+ render(n, t, e) {
677
+ return this.dt(n, t, e).values;
678
678
  }
679
- update(e, [t, n, i]) {
680
- const o = Jo(e), { values: r, keys: s } = this.dt(t, n, i);
679
+ update(n, [t, e, i]) {
680
+ const o = Jo(n), { values: r, keys: s } = this.dt(t, e, i);
681
681
  if (!Array.isArray(o))
682
682
  return this.ut = s, r;
683
683
  const a = this.ut ?? (this.ut = []), l = [];
684
- let u, c, d = 0, p = o.length - 1, f = 0, g = r.length - 1;
685
- for (; d <= p && f <= g; )
686
- if (o[d] === null)
687
- d++;
684
+ let u, d, c = 0, p = o.length - 1, f = 0, g = r.length - 1;
685
+ for (; c <= p && f <= g; )
686
+ if (o[c] === null)
687
+ c++;
688
688
  else if (o[p] === null)
689
689
  p--;
690
- else if (a[d] === s[f])
691
- l[f] = Ct(o[d], r[f]), d++, f++;
690
+ else if (a[c] === s[f])
691
+ l[f] = Ct(o[c], r[f]), c++, f++;
692
692
  else if (a[p] === s[g])
693
693
  l[g] = Ct(o[p], r[g]), p--, g--;
694
- else if (a[d] === s[g])
695
- l[g] = Ct(o[d], r[g]), Qt(e, l[g + 1], o[d]), d++, g--;
694
+ else if (a[c] === s[g])
695
+ l[g] = Ct(o[c], r[g]), Qt(n, l[g + 1], o[c]), c++, g--;
696
696
  else if (a[p] === s[f])
697
- l[f] = Ct(o[p], r[f]), Qt(e, o[d], o[p]), p--, f++;
698
- else if (u === void 0 && (u = ci(s, f, g), c = ci(a, d, p)), u.has(a[d]))
697
+ l[f] = Ct(o[p], r[f]), Qt(n, o[c], o[p]), p--, f++;
698
+ else if (u === void 0 && (u = di(s, f, g), d = di(a, c, p)), u.has(a[c]))
699
699
  if (u.has(a[p])) {
700
- const y = c.get(s[f]), P = y !== void 0 ? o[y] : null;
700
+ const y = d.get(s[f]), P = y !== void 0 ? o[y] : null;
701
701
  if (P === null) {
702
- const L = Qt(e, o[d]);
702
+ const L = Qt(n, o[c]);
703
703
  Ct(L, r[f]), l[f] = L;
704
704
  } else
705
- l[f] = Ct(P, r[f]), Qt(e, o[d], P), o[y] = null;
705
+ l[f] = Ct(P, r[f]), Qt(n, o[c], P), o[y] = null;
706
706
  f++;
707
707
  } else
708
708
  En(o[p]), p--;
709
709
  else
710
- En(o[d]), d++;
710
+ En(o[c]), c++;
711
711
  for (; f <= g; ) {
712
- const y = Qt(e, l[g + 1]);
712
+ const y = Qt(n, l[g + 1]);
713
713
  Ct(y, r[f]), l[f++] = y;
714
714
  }
715
- for (; d <= p; ) {
716
- const y = o[d++];
715
+ for (; c <= p; ) {
716
+ const y = o[c++];
717
717
  y !== null && En(y);
718
718
  }
719
- return this.ut = s, Bi(e, l), it;
719
+ return this.ut = s, Bi(n, l), it;
720
720
  }
721
721
  });
722
722
  /**
@@ -725,7 +725,7 @@ const ci = (e, t, n) => {
725
725
  * @license BSD-2-Clause
726
726
  * @preserve
727
727
  */
728
- var E = (e) => e !== void 0, Vi = (e, t, n) => t in e ? e[t] : e[t] = n;
728
+ var E = (n) => n !== void 0, Vi = (n, t, e) => t in n ? n[t] : n[t] = e;
729
729
  const pe = {
730
730
  ELEMENT: 1,
731
731
  ATTRIBUTE: 2,
@@ -764,66 +764,66 @@ class Qo {
764
764
  * @return {string} All text content.
765
765
  * @api
766
766
  */
767
- getAllTextContent(t, n) {
768
- return fn(t, n).join("");
767
+ getAllTextContent(t, e) {
768
+ return fn(t, e).join("");
769
769
  }
770
770
  }
771
- function fn(e, t) {
772
- return Li(e, t, []).join("");
771
+ function fn(n, t) {
772
+ return Li(n, t, []).join("");
773
773
  }
774
- function Li(e, t, n) {
775
- if (e.nodeType === pe.CDATA_SECTION || e.nodeType === pe.TEXT)
776
- t ? n.push(String(e.nodeValue).replace(/(\r\n|\r|\n)/g, "")) : n.push(e.nodeValue);
774
+ function Li(n, t, e) {
775
+ if (n.nodeType === pe.CDATA_SECTION || n.nodeType === pe.TEXT)
776
+ t ? e.push(String(n.nodeValue).replace(/(\r\n|\r|\n)/g, "")) : e.push(n.nodeValue);
777
777
  else {
778
778
  var i;
779
- for (i = e.firstChild; i; i = i.nextSibling)
780
- Li(i, t, n);
779
+ for (i = n.firstChild; i; i = i.nextSibling)
780
+ Li(i, t, e);
781
781
  }
782
- return n;
782
+ return e;
783
783
  }
784
- function tr(e, t, n, i) {
784
+ function tr(n, t, e, i) {
785
785
  for (var o = er(t); o; o = nr(o)) {
786
- var r = o.namespaceURI || null, s = e[r];
786
+ var r = o.namespaceURI || null, s = n[r];
787
787
  if (E(s)) {
788
788
  var a = s[o.localName];
789
- E(a) && a.call(i, o, n);
789
+ E(a) && a.call(i, o, e);
790
790
  }
791
791
  }
792
792
  }
793
- function er(e) {
794
- let t = e.firstElementChild || e.firstChild;
793
+ function er(n) {
794
+ let t = n.firstElementChild || n.firstChild;
795
795
  for (; t && t.nodeType !== pe.ELEMENT; )
796
796
  t = t.nextSibling;
797
797
  return t;
798
798
  }
799
- function nr(e) {
800
- let t = e.nextElementSibling || e.nextSibling;
799
+ function nr(n) {
800
+ let t = n.nextElementSibling || n.nextSibling;
801
801
  for (; t && t.nodeType !== pe.ELEMENT; )
802
802
  t = t.nextSibling;
803
803
  return t;
804
804
  }
805
- function F(e, t, n) {
805
+ function F(n, t, e) {
806
806
  return (
807
807
  /** @type {Object.<string, Object.<string, XMLParser.Parser>>} */
808
- ir(e, t, n)
808
+ ir(n, t, e)
809
809
  );
810
810
  }
811
- function ir(e, t, n) {
812
- var i = E(n) ? n : {}, o, r;
813
- for (o = 0, r = e.length; o < r; ++o)
814
- i[e[o]] = t;
811
+ function ir(n, t, e) {
812
+ var i = E(e) ? e : {}, o, r;
813
+ for (o = 0, r = n.length; o < r; ++o)
814
+ i[n[o]] = t;
815
815
  return i;
816
816
  }
817
- function Ui(e, t) {
817
+ function ki(n, t) {
818
818
  return (
819
819
  /**
820
820
  * @param {Node} node Node.
821
821
  * @param {Array.<*>} objectStack Object stack.
822
822
  */
823
- function(n, i) {
824
- var o = e.call(
823
+ function(e, i) {
824
+ var o = n.call(
825
825
  E(t) ? t : this,
826
- n,
826
+ e,
827
827
  i
828
828
  );
829
829
  if (E(o)) {
@@ -833,18 +833,18 @@ function Ui(e, t) {
833
833
  }
834
834
  );
835
835
  }
836
- function V(e, t, n, i, o) {
837
- return i.push(e), tr(t, n, i, o), i.pop();
836
+ function V(n, t, e, i, o) {
837
+ return i.push(n), tr(t, e, i, o), i.pop();
838
838
  }
839
- function m(e, t, n) {
839
+ function m(n, t, e) {
840
840
  return (
841
841
  /**
842
842
  * @param {Node} node Node.
843
843
  * @param {Array.<*>} objectStack Object stack.
844
844
  */
845
845
  function(i, o) {
846
- let r = e.call(
847
- E(n) ? n : this,
846
+ let r = n.call(
847
+ E(e) ? e : this,
848
848
  i,
849
849
  o
850
850
  );
@@ -858,15 +858,15 @@ function m(e, t, n) {
858
858
  }
859
859
  );
860
860
  }
861
- function G(e, t, n) {
861
+ function G(n, t, e) {
862
862
  return (
863
863
  /**
864
864
  * @param {Node} node Node.
865
865
  * @param {Array.<*>} objectStack Object stack.
866
866
  */
867
867
  function(i, o) {
868
- var r = e.call(
869
- E(n) ? n : this,
868
+ var r = n.call(
869
+ E(e) ? e : this,
870
870
  i,
871
871
  o
872
872
  );
@@ -881,89 +881,89 @@ function G(e, t, n) {
881
881
  );
882
882
  }
883
883
  const or = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;
884
- function rr(e) {
885
- return e.replace(or, "");
884
+ function rr(n) {
885
+ return n.replace(or, "");
886
886
  }
887
- function Dt(e) {
888
- const t = /^\s*(true|1)|(false|0)\s*$/.exec(e);
887
+ function Dt(n) {
888
+ const t = /^\s*(true|1)|(false|0)\s*$/.exec(n);
889
889
  if (t)
890
890
  return E(t[1]) || !1;
891
891
  }
892
- function Lt(e) {
893
- return pt(fn(e, !1));
892
+ function Lt(n) {
893
+ return pt(fn(n, !1));
894
894
  }
895
- function pt(e) {
896
- const t = /^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*$/i.exec(e);
895
+ function pt(n) {
896
+ const t = /^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*$/i.exec(n);
897
897
  if (t)
898
898
  return parseFloat(t[1]);
899
899
  }
900
- function xn(e) {
901
- return Ve(fn(e, !1));
900
+ function xn(n) {
901
+ return Ve(fn(n, !1));
902
902
  }
903
- function Ve(e) {
904
- const t = /^\s*(\d+)\s*$/.exec(e);
903
+ function Ve(n) {
904
+ const t = /^\s*(\d+)\s*$/.exec(n);
905
905
  if (t)
906
906
  return parseInt(t[1], 10);
907
907
  }
908
- function _(e) {
909
- return rr(fn(e, !1));
908
+ function _(n) {
909
+ return rr(fn(n, !1));
910
910
  }
911
911
  const sr = "http://www.w3.org/1999/xlink";
912
- function Yn(e) {
913
- return e.getAttributeNS(sr, "href");
912
+ function Yn(n) {
913
+ return n.getAttributeNS(sr, "href");
914
914
  }
915
- function ar(e, t) {
916
- return V({}, Mr, e, t);
915
+ function ar(n, t) {
916
+ return V({}, Mr, n, t);
917
917
  }
918
- function ki(e) {
918
+ function Ui(n) {
919
919
  return [
920
- pt(e.getAttribute("minx")),
921
- pt(e.getAttribute("miny")),
922
- pt(e.getAttribute("maxx")),
923
- pt(e.getAttribute("maxy"))
920
+ pt(n.getAttribute("minx")),
921
+ pt(n.getAttribute("miny")),
922
+ pt(n.getAttribute("maxx")),
923
+ pt(n.getAttribute("maxy"))
924
924
  ];
925
925
  }
926
- function lr(e, t) {
927
- const n = ki(e), i = [
928
- pt(e.getAttribute("resx")),
929
- pt(e.getAttribute("resy"))
926
+ function lr(n, t) {
927
+ const e = Ui(n), i = [
928
+ pt(n.getAttribute("resx")),
929
+ pt(n.getAttribute("resy"))
930
930
  ];
931
931
  return {
932
- crs: e.getAttribute("CRS") || e.getAttribute("SRS"),
933
- extent: n,
932
+ crs: n.getAttribute("CRS") || n.getAttribute("SRS"),
933
+ extent: e,
934
934
  res: i
935
935
  };
936
936
  }
937
- function ur(e, t) {
938
- const n = ki(e);
939
- if (!(!E(n[0]) || !E(n[1]) || !E(n[2]) || !E(n[3])))
940
- return n;
937
+ function ur(n, t) {
938
+ const e = Ui(n);
939
+ if (!(!E(e[0]) || !E(e[1]) || !E(e[2]) || !E(e[3])))
940
+ return e;
941
941
  }
942
- function dr(e, t) {
943
- const n = parseFloat(e.getAttribute("min")), i = parseFloat(e.getAttribute("max"));
944
- return { min: n, max: i };
942
+ function cr(n, t) {
943
+ const e = parseFloat(n.getAttribute("min")), i = parseFloat(n.getAttribute("max"));
944
+ return { min: e, max: i };
945
945
  }
946
- function cr(e, t) {
947
- const n = V(
946
+ function dr(n, t) {
947
+ const e = V(
948
948
  {},
949
949
  Ir,
950
- e,
950
+ n,
951
951
  t
952
952
  );
953
- if (!E(n))
953
+ if (!E(e))
954
954
  return;
955
955
  const i = (
956
956
  /** @type {number|undefined} */
957
- n.westBoundLongitude
957
+ e.westBoundLongitude
958
958
  ), o = (
959
959
  /** @type {number|undefined} */
960
- n.southBoundLatitude
960
+ e.southBoundLatitude
961
961
  ), r = (
962
962
  /** @type {number|undefined} */
963
- n.eastBoundLongitude
963
+ e.eastBoundLongitude
964
964
  ), s = (
965
965
  /** @type {number|undefined} */
966
- n.northBoundLatitude
966
+ e.northBoundLatitude
967
967
  );
968
968
  if (!(!E(i) || !E(o) || !E(r) || !E(s)))
969
969
  return [
@@ -973,57 +973,57 @@ function cr(e, t) {
973
973
  s
974
974
  ];
975
975
  }
976
- function hr(e, t) {
977
- return V({}, Tr, e, t);
976
+ function hr(n, t) {
977
+ return V({}, Tr, n, t);
978
978
  }
979
- function pr(e, t) {
980
- return V({}, Pr, e, t);
979
+ function pr(n, t) {
980
+ return V({}, Pr, n, t);
981
981
  }
982
- function fr(e, t) {
982
+ function fr(n, t) {
983
983
  return V(
984
984
  {},
985
985
  Or,
986
- e,
986
+ n,
987
987
  t
988
988
  );
989
989
  }
990
- function gr(e, t) {
990
+ function gr(n, t) {
991
991
  return V(
992
992
  {},
993
993
  Rr,
994
- e,
994
+ n,
995
995
  t
996
996
  );
997
997
  }
998
- function mr(e, t) {
998
+ function mr(n, t) {
999
999
  return V(
1000
1000
  {},
1001
1001
  Dr,
1002
- e,
1002
+ n,
1003
1003
  t
1004
1004
  );
1005
1005
  }
1006
- function yr(e, t) {
1006
+ function yr(n, t) {
1007
1007
  return V(
1008
1008
  [],
1009
1009
  Nr,
1010
- e,
1010
+ n,
1011
1011
  t
1012
1012
  );
1013
1013
  }
1014
- function br(e, t) {
1015
- const n = Dt(e.getAttribute("queryable"));
1014
+ function br(n, t) {
1015
+ const e = Dt(n.getAttribute("queryable"));
1016
1016
  return V(
1017
1017
  {
1018
- queryable: E(n) ? n : !1
1018
+ queryable: E(e) ? e : !1
1019
1019
  },
1020
1020
  zi,
1021
- e,
1021
+ n,
1022
1022
  t
1023
1023
  );
1024
1024
  }
1025
- function vr(e, t) {
1026
- var n = (
1025
+ function vr(n, t) {
1026
+ var e = (
1027
1027
  /** @type {Object.<string,*>} */
1028
1028
  t[t.length - 1]
1029
1029
  );
@@ -1032,33 +1032,33 @@ function vr(e, t) {
1032
1032
  V(
1033
1033
  {},
1034
1034
  zi,
1035
- e,
1035
+ n,
1036
1036
  t
1037
1037
  )
1038
1038
  );
1039
1039
  if (!E(i))
1040
1040
  return;
1041
- let o = Dt(e.getAttribute("queryable"));
1042
- E(o) || (o = n.queryable), i.queryable = E(o) ? o : !1;
1043
- let r = Ve(e.getAttribute("cascaded"));
1044
- E(r) || (r = n.cascaded), i.cascaded = r;
1045
- let s = Dt(e.getAttribute("opaque"));
1046
- E(s) || (s = n.opaque), i.opaque = E(s) ? s : !1;
1047
- let a = Dt(e.getAttribute("noSubsets"));
1048
- E(a) || (a = n.noSubsets), i.noSubsets = E(a) ? a : !1;
1049
- let l = pt(e.getAttribute("fixedWidth"));
1050
- E(l) || (l = n.fixedWidth), i.fixedWidth = l;
1051
- let u = pt(e.getAttribute("fixedHeight"));
1052
- E(u) || (u = n.fixedHeight), i.fixedHeight = u;
1053
- const c = ["Style", "CRS", "AuthorityURL"];
1054
- for (let p = 0, f = c.length; p < f; p++) {
1055
- const g = c[p], y = n[g];
1041
+ let o = Dt(n.getAttribute("queryable"));
1042
+ E(o) || (o = e.queryable), i.queryable = E(o) ? o : !1;
1043
+ let r = Ve(n.getAttribute("cascaded"));
1044
+ E(r) || (r = e.cascaded), i.cascaded = r;
1045
+ let s = Dt(n.getAttribute("opaque"));
1046
+ E(s) || (s = e.opaque), i.opaque = E(s) ? s : !1;
1047
+ let a = Dt(n.getAttribute("noSubsets"));
1048
+ E(a) || (a = e.noSubsets), i.noSubsets = E(a) ? a : !1;
1049
+ let l = pt(n.getAttribute("fixedWidth"));
1050
+ E(l) || (l = e.fixedWidth), i.fixedWidth = l;
1051
+ let u = pt(n.getAttribute("fixedHeight"));
1052
+ E(u) || (u = e.fixedHeight), i.fixedHeight = u;
1053
+ const d = ["Style", "CRS", "AuthorityURL"];
1054
+ for (let p = 0, f = d.length; p < f; p++) {
1055
+ const g = d[p], y = e[g];
1056
1056
  if (E(y)) {
1057
1057
  let P = Vi(i, g, []);
1058
1058
  P = P.concat(y), i[g] = P;
1059
1059
  }
1060
1060
  }
1061
- const d = [
1061
+ const c = [
1062
1062
  "EX_GeographicBoundingBox",
1063
1063
  "BoundingBox",
1064
1064
  "Dimension",
@@ -1066,75 +1066,75 @@ function vr(e, t) {
1066
1066
  "MinScaleDenominator",
1067
1067
  "MaxScaleDenominator"
1068
1068
  ];
1069
- for (let p = 0, f = d.length; p < f; p++) {
1070
- const g = d[p], y = i[g];
1069
+ for (let p = 0, f = c.length; p < f; p++) {
1070
+ const g = c[p], y = i[g];
1071
1071
  if (!E(y)) {
1072
- const P = n[g];
1072
+ const P = e[g];
1073
1073
  i[g] = P;
1074
1074
  }
1075
1075
  }
1076
1076
  return i;
1077
1077
  }
1078
- function wr(e, t) {
1078
+ function wr(n, t) {
1079
1079
  return {
1080
- name: e.getAttribute("name"),
1081
- units: e.getAttribute("units"),
1082
- unitSymbol: e.getAttribute("unitSymbol"),
1083
- default: e.getAttribute("default"),
1084
- multipleValues: Dt(e.getAttribute("multipleValues")),
1085
- nearestValue: Dt(e.getAttribute("nearestValue")),
1086
- current: Dt(e.getAttribute("current")),
1087
- values: _(e)
1080
+ name: n.getAttribute("name"),
1081
+ units: n.getAttribute("units"),
1082
+ unitSymbol: n.getAttribute("unitSymbol"),
1083
+ default: n.getAttribute("default"),
1084
+ multipleValues: Dt(n.getAttribute("multipleValues")),
1085
+ nearestValue: Dt(n.getAttribute("nearestValue")),
1086
+ current: Dt(n.getAttribute("current")),
1087
+ values: _(n)
1088
1088
  };
1089
1089
  }
1090
- function gt(e, t) {
1090
+ function gt(n, t) {
1091
1091
  return V(
1092
1092
  {},
1093
- kr,
1094
- e,
1093
+ Ur,
1094
+ n,
1095
1095
  t
1096
1096
  );
1097
1097
  }
1098
- function Er(e, t) {
1099
- return V({}, Hr, e, t);
1098
+ function Er(n, t) {
1099
+ return V({}, Hr, n, t);
1100
1100
  }
1101
- function xr(e, t) {
1102
- return V({}, Vr, e, t);
1101
+ function xr(n, t) {
1102
+ return V({}, Vr, n, t);
1103
1103
  }
1104
- function Sr(e, t) {
1105
- return V({}, Lr, e, t);
1104
+ function Sr(n, t) {
1105
+ return V({}, Lr, n, t);
1106
1106
  }
1107
- function Sn(e, t) {
1108
- return V({}, Br, e, t);
1107
+ function Sn(n, t) {
1108
+ return V({}, Br, n, t);
1109
1109
  }
1110
- function Fi(e, t) {
1111
- var n = gt(e, t);
1112
- if (E(n)) {
1110
+ function Fi(n, t) {
1111
+ var e = gt(n, t);
1112
+ if (E(e)) {
1113
1113
  const i = [
1114
- Ve(e.getAttribute("width")),
1115
- Ve(e.getAttribute("height"))
1114
+ Ve(n.getAttribute("width")),
1115
+ Ve(n.getAttribute("height"))
1116
1116
  ];
1117
- return n.size = i, n;
1117
+ return e.size = i, e;
1118
1118
  }
1119
1119
  }
1120
- function $r(e, t) {
1121
- var n = gt(e, t);
1122
- if (E(n))
1123
- return n.name = e.getAttribute("name"), n;
1120
+ function $r(n, t) {
1121
+ var e = gt(n, t);
1122
+ if (E(e))
1123
+ return e.name = n.getAttribute("name"), e;
1124
1124
  }
1125
- function _r(e, t) {
1126
- var n = gt(e, t);
1127
- if (E(n))
1128
- return n.type = e.getAttribute("type"), n;
1125
+ function _r(n, t) {
1126
+ var e = gt(n, t);
1127
+ if (E(e))
1128
+ return e.type = n.getAttribute("type"), e;
1129
1129
  }
1130
- function Ar(e, t) {
1131
- return V({}, Ur, e, t);
1130
+ function Ar(n, t) {
1131
+ return V({}, kr, n, t);
1132
1132
  }
1133
- function ji(e, t) {
1133
+ function ji(n, t) {
1134
1134
  return V(
1135
1135
  [],
1136
1136
  Fr,
1137
- e,
1137
+ n,
1138
1138
  t
1139
1139
  );
1140
1140
  }
@@ -1198,7 +1198,7 @@ const j = [
1198
1198
  ), Nr = F(
1199
1199
  j,
1200
1200
  {
1201
- Format: Ui(_)
1201
+ Format: ki(_)
1202
1202
  }
1203
1203
  ), zi = F(
1204
1204
  j,
@@ -1209,7 +1209,7 @@ const j = [
1209
1209
  KeywordList: m(ji),
1210
1210
  CRS: G(_),
1211
1211
  SRS: G(_),
1212
- EX_GeographicBoundingBox: m(cr),
1212
+ EX_GeographicBoundingBox: m(dr),
1213
1213
  LatLonBoundingBox: m(ur),
1214
1214
  BoundingBox: G(lr),
1215
1215
  Dimension: G(wr),
@@ -1222,7 +1222,7 @@ const j = [
1222
1222
  Style: G(Ar),
1223
1223
  MinScaleDenominator: m(Lt),
1224
1224
  MaxScaleDenominator: m(Lt),
1225
- ScaleHint: m(dr),
1225
+ ScaleHint: m(cr),
1226
1226
  Layer: G(vr)
1227
1227
  }
1228
1228
  ), Mr = F(
@@ -1275,7 +1275,7 @@ const j = [
1275
1275
  gt
1276
1276
  )
1277
1277
  }
1278
- ), Ur = F(
1278
+ ), kr = F(
1279
1279
  j,
1280
1280
  {
1281
1281
  Name: m(_),
@@ -1285,7 +1285,7 @@ const j = [
1285
1285
  StyleSheetURL: m(gt),
1286
1286
  StyleURL: m(gt)
1287
1287
  }
1288
- ), kr = F(
1288
+ ), Ur = F(
1289
1289
  j,
1290
1290
  {
1291
1291
  Format: m(_),
@@ -1294,7 +1294,7 @@ const j = [
1294
1294
  ), Fr = F(
1295
1295
  j,
1296
1296
  {
1297
- Keyword: Ui(_)
1297
+ Keyword: ki(_)
1298
1298
  }
1299
1299
  );
1300
1300
  class jr {
@@ -1304,8 +1304,8 @@ class jr {
1304
1304
  * @param {String=} xmlString
1305
1305
  * @constructor
1306
1306
  */
1307
- constructor(t, n) {
1308
- !n && typeof window < "u" && (n = window.DOMParser), this.version = void 0, this._parser = new Qo(n), this._data = t;
1307
+ constructor(t, e) {
1308
+ !e && typeof window < "u" && (e = window.DOMParser), this.version = void 0, this._parser = new Qo(e), this._data = t;
1309
1309
  }
1310
1310
  /**
1311
1311
  * @param {String} xmlString
@@ -1333,9 +1333,9 @@ class jr {
1333
1333
  * @return {Object|null}
1334
1334
  */
1335
1335
  readFromDocument(t) {
1336
- for (let n = t.firstChild; n; n = n.nextSibling)
1337
- if (n.nodeType == pe.ELEMENT)
1338
- return this.readFromNode(n);
1336
+ for (let e = t.firstChild; e; e = e.nextSibling)
1337
+ if (e.nodeType == pe.ELEMENT)
1338
+ return this.readFromNode(e);
1339
1339
  return null;
1340
1340
  }
1341
1341
  /**
@@ -1348,9 +1348,9 @@ class jr {
1348
1348
  }, Cr, t, []) || null;
1349
1349
  }
1350
1350
  }
1351
- async function zr(e) {
1352
- let t = new URL(e), n = t.searchParams;
1353
- n.set("SERVICE", "WMS"), n.set("REQUEST", "GetCapabilities");
1351
+ async function zr(n) {
1352
+ let t = new URL(n), e = t.searchParams;
1353
+ e.set("SERVICE", "WMS"), e.set("REQUEST", "GetCapabilities");
1354
1354
  let i = t.toString();
1355
1355
  const o = await fetch(i);
1356
1356
  if (o.ok) {
@@ -1359,35 +1359,35 @@ async function zr(e) {
1359
1359
  } else
1360
1360
  throw new Error(`Error: ${o.status}`);
1361
1361
  }
1362
- function qn(e) {
1363
- const t = /\b(?:wms|ows)\b/i, n = /{(?:z|x|y-?)}\/{(?:z|x|y-?)}\/{(?:z|x|y-?)}/i;
1364
- return t.test(e) ? "TileWMS" : n.test(e) ? "XYZ" : !1;
1362
+ function qn(n) {
1363
+ const t = /\b(?:wms|ows)\b/i, e = /{(?:z|x|y-?)}\/{(?:z|x|y-?)}\/{(?:z|x|y-?)}/i;
1364
+ return t.test(n) ? "TileWMS" : e.test(n) ? "XYZ" : !1;
1365
1365
  }
1366
- function Zr(e) {
1367
- 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 = qn(e);
1368
- return !!(e && n && i);
1366
+ function Zr(n) {
1367
+ const e = /^(?:(?:https?|ftp):\/\/|\/\/)?(?:localhost|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}|(?:\w+[\w-]*\.)+\w+)(?::\d+)?(?:\/\S*)?$/.test(n), i = qn(n);
1368
+ return !!(n && e && i);
1369
1369
  }
1370
- function Zi(e) {
1371
- return e.replace(
1370
+ function Zi(n) {
1371
+ return n.replace(
1372
1372
  /(['"])?([a-zA-Z0-9_]+)(['"])?:/g,
1373
1373
  '"$2": '
1374
1374
  ).replace(/,\s*}/g, "}").replace(/,\s*]/g, "]").replace(/\s*(\{|}|\[|\]|,)\s*/g, "$1").replaceAll('": //', "://");
1375
1375
  }
1376
- function Xr(e) {
1376
+ function Xr(n) {
1377
1377
  try {
1378
- return JSON.parse(Zi(e)), !!e;
1378
+ return JSON.parse(Zi(n)), !!n;
1379
1379
  } catch {
1380
1380
  return !1;
1381
1381
  }
1382
1382
  }
1383
- function Yr(e, t) {
1384
- const n = new URL(e).searchParams;
1383
+ function Yr(n, t) {
1384
+ const e = new URL(n).searchParams;
1385
1385
  Object.entries(t).forEach(([s, a]) => {
1386
1386
  typeof a == "object" && !Array.isArray(a) && a !== null ? Object.keys(a).forEach((l) => {
1387
- n.set(l, a[l]);
1388
- }) : n.set(s, a);
1387
+ e.set(l, a[l]);
1388
+ }) : e.set(s, a);
1389
1389
  });
1390
- const i = e.split("?")[0], o = n.toString();
1390
+ const i = n.split("?")[0], o = e.toString();
1391
1391
  return `${i}?${o}`;
1392
1392
  }
1393
1393
  /**!
@@ -1396,191 +1396,191 @@ function Yr(e, t) {
1396
1396
  * @author owenm <owen23355@gmail.com>
1397
1397
  * @license MIT
1398
1398
  */
1399
- function hi(e, t) {
1400
- var n = Object.keys(e);
1399
+ function hi(n, t) {
1400
+ var e = Object.keys(n);
1401
1401
  if (Object.getOwnPropertySymbols) {
1402
- var i = Object.getOwnPropertySymbols(e);
1402
+ var i = Object.getOwnPropertySymbols(n);
1403
1403
  t && (i = i.filter(function(o) {
1404
- return Object.getOwnPropertyDescriptor(e, o).enumerable;
1405
- })), n.push.apply(n, i);
1404
+ return Object.getOwnPropertyDescriptor(n, o).enumerable;
1405
+ })), e.push.apply(e, i);
1406
1406
  }
1407
- return n;
1407
+ return e;
1408
1408
  }
1409
- function dt(e) {
1409
+ function ct(n) {
1410
1410
  for (var t = 1; t < arguments.length; t++) {
1411
- var n = arguments[t] != null ? arguments[t] : {};
1412
- t % 2 ? hi(Object(n), !0).forEach(function(i) {
1413
- qr(e, i, n[i]);
1414
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : hi(Object(n)).forEach(function(i) {
1415
- Object.defineProperty(e, i, Object.getOwnPropertyDescriptor(n, i));
1411
+ var e = arguments[t] != null ? arguments[t] : {};
1412
+ t % 2 ? hi(Object(e), !0).forEach(function(i) {
1413
+ qr(n, i, e[i]);
1414
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(e)) : hi(Object(e)).forEach(function(i) {
1415
+ Object.defineProperty(n, i, Object.getOwnPropertyDescriptor(e, i));
1416
1416
  });
1417
1417
  }
1418
- return e;
1418
+ return n;
1419
1419
  }
1420
- function Pe(e) {
1420
+ function Pe(n) {
1421
1421
  "@babel/helpers - typeof";
1422
1422
  return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Pe = function(t) {
1423
1423
  return typeof t;
1424
1424
  } : Pe = function(t) {
1425
1425
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
1426
- }, Pe(e);
1426
+ }, Pe(n);
1427
1427
  }
1428
- function qr(e, t, n) {
1429
- return t in e ? Object.defineProperty(e, t, {
1430
- value: n,
1428
+ function qr(n, t, e) {
1429
+ return t in n ? Object.defineProperty(n, t, {
1430
+ value: e,
1431
1431
  enumerable: !0,
1432
1432
  configurable: !0,
1433
1433
  writable: !0
1434
- }) : e[t] = n, e;
1434
+ }) : n[t] = e, n;
1435
1435
  }
1436
1436
  function mt() {
1437
- return mt = Object.assign || function(e) {
1437
+ return mt = Object.assign || function(n) {
1438
1438
  for (var t = 1; t < arguments.length; t++) {
1439
- var n = arguments[t];
1440
- for (var i in n)
1441
- Object.prototype.hasOwnProperty.call(n, i) && (e[i] = n[i]);
1439
+ var e = arguments[t];
1440
+ for (var i in e)
1441
+ Object.prototype.hasOwnProperty.call(e, i) && (n[i] = e[i]);
1442
1442
  }
1443
- return e;
1443
+ return n;
1444
1444
  }, mt.apply(this, arguments);
1445
1445
  }
1446
- function Wr(e, t) {
1447
- if (e == null)
1446
+ function Wr(n, t) {
1447
+ if (n == null)
1448
1448
  return {};
1449
- var n = {}, i = Object.keys(e), o, r;
1449
+ var e = {}, i = Object.keys(n), o, r;
1450
1450
  for (r = 0; r < i.length; r++)
1451
- o = i[r], !(t.indexOf(o) >= 0) && (n[o] = e[o]);
1452
- return n;
1451
+ o = i[r], !(t.indexOf(o) >= 0) && (e[o] = n[o]);
1452
+ return e;
1453
1453
  }
1454
- function Gr(e, t) {
1455
- if (e == null)
1454
+ function Gr(n, t) {
1455
+ if (n == null)
1456
1456
  return {};
1457
- var n = Wr(e, t), i, o;
1457
+ var e = Wr(n, t), i, o;
1458
1458
  if (Object.getOwnPropertySymbols) {
1459
- var r = Object.getOwnPropertySymbols(e);
1459
+ var r = Object.getOwnPropertySymbols(n);
1460
1460
  for (o = 0; o < r.length; o++)
1461
- i = r[o], !(t.indexOf(i) >= 0) && Object.prototype.propertyIsEnumerable.call(e, i) && (n[i] = e[i]);
1461
+ i = r[o], !(t.indexOf(i) >= 0) && Object.prototype.propertyIsEnumerable.call(n, i) && (e[i] = n[i]);
1462
1462
  }
1463
- return n;
1463
+ return e;
1464
1464
  }
1465
1465
  var Jr = "1.15.2";
1466
- function ft(e) {
1466
+ function ft(n) {
1467
1467
  if (typeof window < "u" && window.navigator)
1468
- return !!/* @__PURE__ */ navigator.userAgent.match(e);
1468
+ return !!/* @__PURE__ */ navigator.userAgent.match(n);
1469
1469
  }
1470
1470
  var yt = ft(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), we = ft(/Edge/i), pi = ft(/firefox/i), re = ft(/safari/i) && !ft(/chrome/i) && !ft(/android/i), Xi = ft(/iP(ad|od|hone)/i), Yi = ft(/chrome/i) && ft(/android/i), qi = {
1471
1471
  capture: !1,
1472
1472
  passive: !1
1473
1473
  };
1474
- function A(e, t, n) {
1475
- e.addEventListener(t, n, !yt && qi);
1474
+ function A(n, t, e) {
1475
+ n.addEventListener(t, e, !yt && qi);
1476
1476
  }
1477
- function S(e, t, n) {
1478
- e.removeEventListener(t, n, !yt && qi);
1477
+ function S(n, t, e) {
1478
+ n.removeEventListener(t, e, !yt && qi);
1479
1479
  }
1480
- function Le(e, t) {
1480
+ function Le(n, t) {
1481
1481
  if (t) {
1482
- if (t[0] === ">" && (t = t.substring(1)), e)
1482
+ if (t[0] === ">" && (t = t.substring(1)), n)
1483
1483
  try {
1484
- if (e.matches)
1485
- return e.matches(t);
1486
- if (e.msMatchesSelector)
1487
- return e.msMatchesSelector(t);
1488
- if (e.webkitMatchesSelector)
1489
- return e.webkitMatchesSelector(t);
1484
+ if (n.matches)
1485
+ return n.matches(t);
1486
+ if (n.msMatchesSelector)
1487
+ return n.msMatchesSelector(t);
1488
+ if (n.webkitMatchesSelector)
1489
+ return n.webkitMatchesSelector(t);
1490
1490
  } catch {
1491
1491
  return !1;
1492
1492
  }
1493
1493
  return !1;
1494
1494
  }
1495
1495
  }
1496
- function Kr(e) {
1497
- return e.host && e !== document && e.host.nodeType ? e.host : e.parentNode;
1496
+ function Kr(n) {
1497
+ return n.host && n !== document && n.host.nodeType ? n.host : n.parentNode;
1498
1498
  }
1499
- function lt(e, t, n, i) {
1500
- if (e) {
1501
- n = n || document;
1499
+ function lt(n, t, e, i) {
1500
+ if (n) {
1501
+ e = e || document;
1502
1502
  do {
1503
- if (t != null && (t[0] === ">" ? e.parentNode === n && Le(e, t) : Le(e, t)) || i && e === n)
1504
- return e;
1505
- if (e === n)
1503
+ if (t != null && (t[0] === ">" ? n.parentNode === e && Le(n, t) : Le(n, t)) || i && n === e)
1504
+ return n;
1505
+ if (n === e)
1506
1506
  break;
1507
- } while (e = Kr(e));
1507
+ } while (n = Kr(n));
1508
1508
  }
1509
1509
  return null;
1510
1510
  }
1511
1511
  var fi = /\s+/g;
1512
- function K(e, t, n) {
1513
- if (e && t)
1514
- if (e.classList)
1515
- e.classList[n ? "add" : "remove"](t);
1512
+ function K(n, t, e) {
1513
+ if (n && t)
1514
+ if (n.classList)
1515
+ n.classList[e ? "add" : "remove"](t);
1516
1516
  else {
1517
- var i = (" " + e.className + " ").replace(fi, " ").replace(" " + t + " ", " ");
1518
- e.className = (i + (n ? " " + t : "")).replace(fi, " ");
1517
+ var i = (" " + n.className + " ").replace(fi, " ").replace(" " + t + " ", " ");
1518
+ n.className = (i + (e ? " " + t : "")).replace(fi, " ");
1519
1519
  }
1520
1520
  }
1521
- function b(e, t, n) {
1522
- var i = e && e.style;
1521
+ function b(n, t, e) {
1522
+ var i = n && n.style;
1523
1523
  if (i) {
1524
- if (n === void 0)
1525
- return document.defaultView && document.defaultView.getComputedStyle ? n = document.defaultView.getComputedStyle(e, "") : e.currentStyle && (n = e.currentStyle), t === void 0 ? n : n[t];
1526
- !(t in i) && t.indexOf("webkit") === -1 && (t = "-webkit-" + t), i[t] = n + (typeof n == "string" ? "" : "px");
1524
+ if (e === void 0)
1525
+ return document.defaultView && document.defaultView.getComputedStyle ? e = document.defaultView.getComputedStyle(n, "") : n.currentStyle && (e = n.currentStyle), t === void 0 ? e : e[t];
1526
+ !(t in i) && t.indexOf("webkit") === -1 && (t = "-webkit-" + t), i[t] = e + (typeof e == "string" ? "" : "px");
1527
1527
  }
1528
1528
  }
1529
- function kt(e, t) {
1530
- var n = "";
1531
- if (typeof e == "string")
1532
- n = e;
1529
+ function Ut(n, t) {
1530
+ var e = "";
1531
+ if (typeof n == "string")
1532
+ e = n;
1533
1533
  else
1534
1534
  do {
1535
- var i = b(e, "transform");
1536
- i && i !== "none" && (n = i + " " + n);
1537
- } while (!t && (e = e.parentNode));
1535
+ var i = b(n, "transform");
1536
+ i && i !== "none" && (e = i + " " + e);
1537
+ } while (!t && (n = n.parentNode));
1538
1538
  var o = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
1539
- return o && new o(n);
1539
+ return o && new o(e);
1540
1540
  }
1541
- function Wi(e, t, n) {
1542
- if (e) {
1543
- var i = e.getElementsByTagName(t), o = 0, r = i.length;
1544
- if (n)
1541
+ function Wi(n, t, e) {
1542
+ if (n) {
1543
+ var i = n.getElementsByTagName(t), o = 0, r = i.length;
1544
+ if (e)
1545
1545
  for (; o < r; o++)
1546
- n(i[o], o);
1546
+ e(i[o], o);
1547
1547
  return i;
1548
1548
  }
1549
1549
  return [];
1550
1550
  }
1551
1551
  function ut() {
1552
- var e = document.scrollingElement;
1553
- return e || document.documentElement;
1552
+ var n = document.scrollingElement;
1553
+ return n || document.documentElement;
1554
1554
  }
1555
- function I(e, t, n, i, o) {
1556
- if (!(!e.getBoundingClientRect && e !== window)) {
1557
- var r, s, a, l, u, c, d;
1558
- if (e !== window && e.parentNode && e !== ut() ? (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, !yt))
1555
+ function I(n, t, e, i, o) {
1556
+ if (!(!n.getBoundingClientRect && n !== window)) {
1557
+ var r, s, a, l, u, d, c;
1558
+ if (n !== window && n.parentNode && n !== ut() ? (r = n.getBoundingClientRect(), s = r.top, a = r.left, l = r.bottom, u = r.right, d = r.height, c = r.width) : (s = 0, a = 0, l = window.innerHeight, u = window.innerWidth, d = window.innerHeight, c = window.innerWidth), (t || e) && n !== window && (o = o || n.parentNode, !yt))
1559
1559
  do
1560
- if (o && o.getBoundingClientRect && (b(o, "transform") !== "none" || n && b(o, "position") !== "static")) {
1560
+ if (o && o.getBoundingClientRect && (b(o, "transform") !== "none" || e && b(o, "position") !== "static")) {
1561
1561
  var p = o.getBoundingClientRect();
1562
1562
  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;
1563
1563
  break;
1564
1564
  }
1565
1565
  while (o = o.parentNode);
1566
- if (i && e !== window) {
1567
- var f = kt(o || e), g = f && f.a, y = f && f.d;
1568
- f && (s /= y, a /= g, d /= g, c /= y, l = s + c, u = a + d);
1566
+ if (i && n !== window) {
1567
+ var f = Ut(o || n), g = f && f.a, y = f && f.d;
1568
+ f && (s /= y, a /= g, c /= g, d /= y, l = s + d, u = a + c);
1569
1569
  }
1570
1570
  return {
1571
1571
  top: s,
1572
1572
  left: a,
1573
1573
  bottom: l,
1574
1574
  right: u,
1575
- width: d,
1576
- height: c
1575
+ width: c,
1576
+ height: d
1577
1577
  };
1578
1578
  }
1579
1579
  }
1580
- function gi(e, t, n) {
1581
- for (var i = St(e, !0), o = I(e)[t]; i; ) {
1582
- var r = I(i)[n], s = void 0;
1583
- if (n === "top" || n === "left" ? s = o >= r : s = o <= r, !s)
1580
+ function gi(n, t, e) {
1581
+ for (var i = St(n, !0), o = I(n)[t]; i; ) {
1582
+ var r = I(i)[e], s = void 0;
1583
+ if (e === "top" || e === "left" ? s = o >= r : s = o <= r, !s)
1584
1584
  return i;
1585
1585
  if (i === ut())
1586
1586
  break;
@@ -1588,9 +1588,9 @@ function gi(e, t, n) {
1588
1588
  }
1589
1589
  return !1;
1590
1590
  }
1591
- function Zt(e, t, n, i) {
1592
- for (var o = 0, r = 0, s = e.children; r < s.length; ) {
1593
- if (s[r].style.display !== "none" && s[r] !== v.ghost && (i || s[r] !== v.dragged) && lt(s[r], n.draggable, e, !1)) {
1591
+ function Zt(n, t, e, i) {
1592
+ for (var o = 0, r = 0, s = n.children; r < s.length; ) {
1593
+ if (s[r].style.display !== "none" && s[r] !== v.ghost && (i || s[r] !== v.dragged) && lt(s[r], e.draggable, n, !1)) {
1594
1594
  if (o === t)
1595
1595
  return s[r];
1596
1596
  o++;
@@ -1599,70 +1599,70 @@ function Zt(e, t, n, i) {
1599
1599
  }
1600
1600
  return null;
1601
1601
  }
1602
- function Wn(e, t) {
1603
- for (var n = e.lastElementChild; n && (n === v.ghost || b(n, "display") === "none" || t && !Le(n, t)); )
1604
- n = n.previousElementSibling;
1605
- return n || null;
1602
+ function Wn(n, t) {
1603
+ for (var e = n.lastElementChild; e && (e === v.ghost || b(e, "display") === "none" || t && !Le(e, t)); )
1604
+ e = e.previousElementSibling;
1605
+ return e || null;
1606
1606
  }
1607
- function nt(e, t) {
1608
- var n = 0;
1609
- if (!e || !e.parentNode)
1607
+ function nt(n, t) {
1608
+ var e = 0;
1609
+ if (!n || !n.parentNode)
1610
1610
  return -1;
1611
- for (; e = e.previousElementSibling; )
1612
- e.nodeName.toUpperCase() !== "TEMPLATE" && e !== v.clone && (!t || Le(e, t)) && n++;
1613
- return n;
1611
+ for (; n = n.previousElementSibling; )
1612
+ n.nodeName.toUpperCase() !== "TEMPLATE" && n !== v.clone && (!t || Le(n, t)) && e++;
1613
+ return e;
1614
1614
  }
1615
- function mi(e) {
1616
- var t = 0, n = 0, i = ut();
1617
- if (e)
1615
+ function mi(n) {
1616
+ var t = 0, e = 0, i = ut();
1617
+ if (n)
1618
1618
  do {
1619
- var o = kt(e), r = o.a, s = o.d;
1620
- t += e.scrollLeft * r, n += e.scrollTop * s;
1621
- } while (e !== i && (e = e.parentNode));
1622
- return [t, n];
1623
- }
1624
- function Qr(e, t) {
1625
- for (var n in e)
1626
- if (e.hasOwnProperty(n)) {
1619
+ var o = Ut(n), r = o.a, s = o.d;
1620
+ t += n.scrollLeft * r, e += n.scrollTop * s;
1621
+ } while (n !== i && (n = n.parentNode));
1622
+ return [t, e];
1623
+ }
1624
+ function Qr(n, t) {
1625
+ for (var e in n)
1626
+ if (n.hasOwnProperty(e)) {
1627
1627
  for (var i in t)
1628
- if (t.hasOwnProperty(i) && t[i] === e[n][i])
1629
- return Number(n);
1628
+ if (t.hasOwnProperty(i) && t[i] === n[e][i])
1629
+ return Number(e);
1630
1630
  }
1631
1631
  return -1;
1632
1632
  }
1633
- function St(e, t) {
1634
- if (!e || !e.getBoundingClientRect)
1633
+ function St(n, t) {
1634
+ if (!n || !n.getBoundingClientRect)
1635
1635
  return ut();
1636
- var n = e, i = !1;
1636
+ var e = n, i = !1;
1637
1637
  do
1638
- if (n.clientWidth < n.scrollWidth || n.clientHeight < n.scrollHeight) {
1639
- var o = b(n);
1640
- if (n.clientWidth < n.scrollWidth && (o.overflowX == "auto" || o.overflowX == "scroll") || n.clientHeight < n.scrollHeight && (o.overflowY == "auto" || o.overflowY == "scroll")) {
1641
- if (!n.getBoundingClientRect || n === document.body)
1638
+ if (e.clientWidth < e.scrollWidth || e.clientHeight < e.scrollHeight) {
1639
+ var o = b(e);
1640
+ if (e.clientWidth < e.scrollWidth && (o.overflowX == "auto" || o.overflowX == "scroll") || e.clientHeight < e.scrollHeight && (o.overflowY == "auto" || o.overflowY == "scroll")) {
1641
+ if (!e.getBoundingClientRect || e === document.body)
1642
1642
  return ut();
1643
1643
  if (i || t)
1644
- return n;
1644
+ return e;
1645
1645
  i = !0;
1646
1646
  }
1647
1647
  }
1648
- while (n = n.parentNode);
1648
+ while (e = e.parentNode);
1649
1649
  return ut();
1650
1650
  }
1651
- function ts(e, t) {
1652
- if (e && t)
1653
- for (var n in t)
1654
- t.hasOwnProperty(n) && (e[n] = t[n]);
1655
- return e;
1651
+ function ts(n, t) {
1652
+ if (n && t)
1653
+ for (var e in t)
1654
+ t.hasOwnProperty(e) && (n[e] = t[e]);
1655
+ return n;
1656
1656
  }
1657
- function $n(e, t) {
1658
- 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);
1657
+ function $n(n, t) {
1658
+ return Math.round(n.top) === Math.round(t.top) && Math.round(n.left) === Math.round(t.left) && Math.round(n.height) === Math.round(t.height) && Math.round(n.width) === Math.round(t.width);
1659
1659
  }
1660
1660
  var se;
1661
- function Gi(e, t) {
1661
+ function Gi(n, t) {
1662
1662
  return function() {
1663
1663
  if (!se) {
1664
- var n = arguments, i = this;
1665
- n.length === 1 ? e.call(i, n[0]) : e.apply(i, n), se = setTimeout(function() {
1664
+ var e = arguments, i = this;
1665
+ e.length === 1 ? n.call(i, e[0]) : n.apply(i, e), se = setTimeout(function() {
1666
1666
  se = void 0;
1667
1667
  }, t);
1668
1668
  }
@@ -1671,18 +1671,18 @@ function Gi(e, t) {
1671
1671
  function es() {
1672
1672
  clearTimeout(se), se = void 0;
1673
1673
  }
1674
- function Ji(e, t, n) {
1675
- e.scrollLeft += t, e.scrollTop += n;
1674
+ function Ji(n, t, e) {
1675
+ n.scrollLeft += t, n.scrollTop += e;
1676
1676
  }
1677
- function Ki(e) {
1678
- var t = window.Polymer, n = window.jQuery || window.Zepto;
1679
- return t && t.dom ? t.dom(e).cloneNode(!0) : n ? n(e).clone(!0)[0] : e.cloneNode(!0);
1677
+ function Ki(n) {
1678
+ var t = window.Polymer, e = window.jQuery || window.Zepto;
1679
+ return t && t.dom ? t.dom(n).cloneNode(!0) : e ? e(n).clone(!0)[0] : n.cloneNode(!0);
1680
1680
  }
1681
- function Qi(e, t, n) {
1681
+ function Qi(n, t, e) {
1682
1682
  var i = {};
1683
- return Array.from(e.children).forEach(function(o) {
1683
+ return Array.from(n.children).forEach(function(o) {
1684
1684
  var r, s, a, l;
1685
- if (!(!lt(o, t.draggable, e, !1) || o.animated || o === n)) {
1685
+ if (!(!lt(o, t.draggable, n, !1) || o.animated || o === e)) {
1686
1686
  var u = I(o);
1687
1687
  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);
1688
1688
  }
@@ -1690,20 +1690,20 @@ function Qi(e, t, n) {
1690
1690
  }
1691
1691
  var tt = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
1692
1692
  function ns() {
1693
- var e = [], t;
1693
+ var n = [], t;
1694
1694
  return {
1695
1695
  captureAnimationState: function() {
1696
- if (e = [], !!this.options.animation) {
1696
+ if (n = [], !!this.options.animation) {
1697
1697
  var i = [].slice.call(this.el.children);
1698
1698
  i.forEach(function(o) {
1699
1699
  if (!(b(o, "display") === "none" || o === v.ghost)) {
1700
- e.push({
1700
+ n.push({
1701
1701
  target: o,
1702
1702
  rect: I(o)
1703
1703
  });
1704
- var r = dt({}, e[e.length - 1].rect);
1704
+ var r = ct({}, n[n.length - 1].rect);
1705
1705
  if (o.thisAnimationDuration) {
1706
- var s = kt(o, !0);
1706
+ var s = Ut(o, !0);
1707
1707
  s && (r.top -= s.f, r.left -= s.e);
1708
1708
  }
1709
1709
  o.fromRect = r;
@@ -1712,10 +1712,10 @@ function ns() {
1712
1712
  }
1713
1713
  },
1714
1714
  addAnimationState: function(i) {
1715
- e.push(i);
1715
+ n.push(i);
1716
1716
  },
1717
1717
  removeAnimationState: function(i) {
1718
- e.splice(Qr(e, {
1718
+ n.splice(Qr(n, {
1719
1719
  target: i
1720
1720
  }), 1);
1721
1721
  },
@@ -1726,63 +1726,63 @@ function ns() {
1726
1726
  return;
1727
1727
  }
1728
1728
  var r = !1, s = 0;
1729
- e.forEach(function(a) {
1730
- var l = 0, u = a.target, c = u.fromRect, d = I(u), p = u.prevFromRect, f = u.prevToRect, g = a.rect, y = kt(u, !0);
1731
- y && (d.top -= y.f, d.left -= y.e), u.toRect = d, u.thisAnimationDuration && $n(p, d) && !$n(c, d) && // Make sure animatingRect is on line between toRect & fromRect
1732
- (g.top - d.top) / (g.left - d.left) === (c.top - d.top) / (c.left - d.left) && (l = os(g, p, f, o.options)), $n(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() {
1729
+ n.forEach(function(a) {
1730
+ var l = 0, u = a.target, d = u.fromRect, c = I(u), p = u.prevFromRect, f = u.prevToRect, g = a.rect, y = Ut(u, !0);
1731
+ y && (c.top -= y.f, c.left -= y.e), u.toRect = c, u.thisAnimationDuration && $n(p, c) && !$n(d, c) && // Make sure animatingRect is on line between toRect & fromRect
1732
+ (g.top - c.top) / (g.left - c.left) === (d.top - c.top) / (d.left - c.left) && (l = os(g, p, f, o.options)), $n(c, d) || (u.prevFromRect = d, u.prevToRect = c, l || (l = o.options.animation), o.animate(u, g, c, l)), l && (r = !0, s = Math.max(s, l), clearTimeout(u.animationResetTimer), u.animationResetTimer = setTimeout(function() {
1733
1733
  u.animationTime = 0, u.prevFromRect = null, u.fromRect = null, u.prevToRect = null, u.thisAnimationDuration = null;
1734
1734
  }, l), u.thisAnimationDuration = l);
1735
1735
  }), clearTimeout(t), r ? t = setTimeout(function() {
1736
1736
  typeof i == "function" && i();
1737
- }, s) : typeof i == "function" && i(), e = [];
1737
+ }, s) : typeof i == "function" && i(), n = [];
1738
1738
  },
1739
1739
  animate: function(i, o, r, s) {
1740
1740
  if (s) {
1741
1741
  b(i, "transition", ""), b(i, "transform", "");
1742
- var a = kt(this.el), l = a && a.a, u = a && a.d, c = (o.left - r.left) / (l || 1), d = (o.top - r.top) / (u || 1);
1743
- i.animatingX = !!c, i.animatingY = !!d, b(i, "transform", "translate3d(" + c + "px," + d + "px,0)"), this.forRepaintDummy = is(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() {
1742
+ var a = Ut(this.el), l = a && a.a, u = a && a.d, d = (o.left - r.left) / (l || 1), c = (o.top - r.top) / (u || 1);
1743
+ i.animatingX = !!d, i.animatingY = !!c, b(i, "transform", "translate3d(" + d + "px," + c + "px,0)"), this.forRepaintDummy = is(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() {
1744
1744
  b(i, "transition", ""), b(i, "transform", ""), i.animated = !1, i.animatingX = !1, i.animatingY = !1;
1745
1745
  }, s);
1746
1746
  }
1747
1747
  }
1748
1748
  };
1749
1749
  }
1750
- function is(e) {
1751
- return e.offsetWidth;
1750
+ function is(n) {
1751
+ return n.offsetWidth;
1752
1752
  }
1753
- function os(e, t, n, i) {
1754
- 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;
1753
+ function os(n, t, e, i) {
1754
+ return Math.sqrt(Math.pow(t.top - n.top, 2) + Math.pow(t.left - n.left, 2)) / Math.sqrt(Math.pow(t.top - e.top, 2) + Math.pow(t.left - e.left, 2)) * i.animation;
1755
1755
  }
1756
1756
  var It = [], _n = {
1757
1757
  initializeByDefault: !0
1758
1758
  }, Ee = {
1759
1759
  mount: function(t) {
1760
- for (var n in _n)
1761
- _n.hasOwnProperty(n) && !(n in t) && (t[n] = _n[n]);
1760
+ for (var e in _n)
1761
+ _n.hasOwnProperty(e) && !(e in t) && (t[e] = _n[e]);
1762
1762
  It.forEach(function(i) {
1763
1763
  if (i.pluginName === t.pluginName)
1764
1764
  throw "Sortable: Cannot mount plugin ".concat(t.pluginName, " more than once");
1765
1765
  }), It.push(t);
1766
1766
  },
1767
- pluginEvent: function(t, n, i) {
1767
+ pluginEvent: function(t, e, i) {
1768
1768
  var o = this;
1769
1769
  this.eventCanceled = !1, i.cancel = function() {
1770
1770
  o.eventCanceled = !0;
1771
1771
  };
1772
1772
  var r = t + "Global";
1773
1773
  It.forEach(function(s) {
1774
- n[s.pluginName] && (n[s.pluginName][r] && n[s.pluginName][r](dt({
1775
- sortable: n
1776
- }, i)), n.options[s.pluginName] && n[s.pluginName][t] && n[s.pluginName][t](dt({
1777
- sortable: n
1774
+ e[s.pluginName] && (e[s.pluginName][r] && e[s.pluginName][r](ct({
1775
+ sortable: e
1776
+ }, i)), e.options[s.pluginName] && e[s.pluginName][t] && e[s.pluginName][t](ct({
1777
+ sortable: e
1778
1778
  }, i)));
1779
1779
  });
1780
1780
  },
1781
- initializePlugins: function(t, n, i, o) {
1781
+ initializePlugins: function(t, e, i, o) {
1782
1782
  It.forEach(function(a) {
1783
1783
  var l = a.pluginName;
1784
1784
  if (!(!t.options[l] && !a.initializeByDefault)) {
1785
- var u = new a(t, n, t.options);
1785
+ var u = new a(t, e, t.options);
1786
1786
  u.sortable = t, u.options = t.options, t[l] = u, mt(i, u.defaults);
1787
1787
  }
1788
1788
  });
@@ -1792,36 +1792,36 @@ var It = [], _n = {
1792
1792
  typeof s < "u" && (t.options[r] = s);
1793
1793
  }
1794
1794
  },
1795
- getEventProperties: function(t, n) {
1795
+ getEventProperties: function(t, e) {
1796
1796
  var i = {};
1797
1797
  return It.forEach(function(o) {
1798
- typeof o.eventProperties == "function" && mt(i, o.eventProperties.call(n[o.pluginName], t));
1798
+ typeof o.eventProperties == "function" && mt(i, o.eventProperties.call(e[o.pluginName], t));
1799
1799
  }), i;
1800
1800
  },
1801
- modifyOption: function(t, n, i) {
1801
+ modifyOption: function(t, e, i) {
1802
1802
  var o;
1803
1803
  return It.forEach(function(r) {
1804
- t[r.pluginName] && r.optionListeners && typeof r.optionListeners[n] == "function" && (o = r.optionListeners[n].call(t[r.pluginName], i));
1804
+ t[r.pluginName] && r.optionListeners && typeof r.optionListeners[e] == "function" && (o = r.optionListeners[e].call(t[r.pluginName], i));
1805
1805
  }), o;
1806
1806
  }
1807
1807
  };
1808
- function rs(e) {
1809
- 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;
1810
- if (t = t || n && n[tt], !!t) {
1808
+ function rs(n) {
1809
+ var t = n.sortable, e = n.rootEl, i = n.name, o = n.targetEl, r = n.cloneEl, s = n.toEl, a = n.fromEl, l = n.oldIndex, u = n.newIndex, d = n.oldDraggableIndex, c = n.newDraggableIndex, p = n.originalEvent, f = n.putSortable, g = n.extraEventProperties;
1810
+ if (t = t || e && e[tt], !!t) {
1811
1811
  var y, P = t.options, L = "on" + i.charAt(0).toUpperCase() + i.substr(1);
1812
1812
  window.CustomEvent && !yt && !we ? y = new CustomEvent(i, {
1813
1813
  bubbles: !0,
1814
1814
  cancelable: !0
1815
- }) : (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;
1816
- var B = dt(dt({}, g), Ee.getEventProperties(i, t));
1815
+ }) : (y = document.createEvent("Event"), y.initEvent(i, !0, !0)), y.to = s || e, y.from = a || e, y.item = o || e, y.clone = r, y.oldIndex = l, y.newIndex = u, y.oldDraggableIndex = d, y.newDraggableIndex = c, y.originalEvent = p, y.pullMode = f ? f.lastPutMode : void 0;
1816
+ var B = ct(ct({}, g), Ee.getEventProperties(i, t));
1817
1817
  for (var J in B)
1818
1818
  y[J] = B[J];
1819
- n && n.dispatchEvent(y), P[L] && P[L].call(t, y);
1819
+ e && e.dispatchEvent(y), P[L] && P[L].call(t, y);
1820
1820
  }
1821
1821
  }
1822
- var ss = ["evt"], W = function(t, n) {
1822
+ var ss = ["evt"], W = function(t, e) {
1823
1823
  var i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o = i.evt, r = Gr(i, ss);
1824
- Ee.pluginEvent.bind(v)(t, n, dt({
1824
+ Ee.pluginEvent.bind(v)(t, e, ct({
1825
1825
  dragEl: h,
1826
1826
  parentEl: N,
1827
1827
  ghostEl: w,
@@ -1831,10 +1831,10 @@ var ss = ["evt"], W = function(t, n) {
1831
1831
  cloneEl: D,
1832
1832
  cloneHidden: xt,
1833
1833
  dragStarted: te,
1834
- putSortable: k,
1834
+ putSortable: U,
1835
1835
  activeSortable: v.active,
1836
1836
  originalEvent: o,
1837
- oldIndex: Ut,
1837
+ oldIndex: kt,
1838
1838
  oldDraggableIndex: ae,
1839
1839
  newIndex: Q,
1840
1840
  newDraggableIndex: Et,
@@ -1848,68 +1848,68 @@ var ss = ["evt"], W = function(t, n) {
1848
1848
  },
1849
1849
  dispatchSortableEvent: function(a) {
1850
1850
  q({
1851
- sortable: n,
1851
+ sortable: e,
1852
1852
  name: a,
1853
1853
  originalEvent: o
1854
1854
  });
1855
1855
  }
1856
1856
  }, r));
1857
1857
  };
1858
- function q(e) {
1859
- rs(dt({
1860
- putSortable: k,
1858
+ function q(n) {
1859
+ rs(ct({
1860
+ putSortable: U,
1861
1861
  cloneEl: D,
1862
1862
  targetEl: h,
1863
1863
  rootEl: O,
1864
- oldIndex: Ut,
1864
+ oldIndex: kt,
1865
1865
  oldDraggableIndex: ae,
1866
1866
  newIndex: Q,
1867
1867
  newDraggableIndex: Et
1868
- }, e));
1868
+ }, n));
1869
1869
  }
1870
- var h, N, w, O, Ot, Oe, D, xt, Ut, Q, ae, Et, Se, k, Vt = !1, Ue = !1, ke = [], Tt, at, An, Cn, yi, bi, te, Ht, le, ue = !1, $e = !1, Re, X, Tn = [], In = !1, Fe = [], gn = typeof document < "u", _e = Xi, vi = we || yt ? "cssFloat" : "float", as = gn && !Yi && !Xi && "draggable" in document.createElement("div"), to = function() {
1870
+ var h, N, w, O, Ot, Oe, D, xt, kt, Q, ae, Et, Se, U, Vt = !1, ke = !1, Ue = [], Tt, at, An, Cn, yi, bi, te, Ht, le, ue = !1, $e = !1, Re, X, Tn = [], In = !1, Fe = [], gn = typeof document < "u", _e = Xi, vi = we || yt ? "cssFloat" : "float", as = gn && !Yi && !Xi && "draggable" in document.createElement("div"), to = function() {
1871
1871
  if (gn) {
1872
1872
  if (yt)
1873
1873
  return !1;
1874
- var e = document.createElement("x");
1875
- return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
1874
+ var n = document.createElement("x");
1875
+ return n.style.cssText = "pointer-events:auto", n.style.pointerEvents === "auto";
1876
1876
  }
1877
- }(), eo = function(t, n) {
1878
- 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), s = Zt(t, 1, n), a = r && b(r), l = s && b(s), u = a && parseInt(a.marginLeft) + parseInt(a.marginRight) + I(r).width, c = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + I(s).width;
1877
+ }(), eo = function(t, e) {
1878
+ var i = b(t), o = parseInt(i.width) - parseInt(i.paddingLeft) - parseInt(i.paddingRight) - parseInt(i.borderLeftWidth) - parseInt(i.borderRightWidth), r = Zt(t, 0, e), s = Zt(t, 1, e), a = r && b(r), l = s && b(s), u = a && parseInt(a.marginLeft) + parseInt(a.marginRight) + I(r).width, d = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + I(s).width;
1879
1879
  if (i.display === "flex")
1880
1880
  return i.flexDirection === "column" || i.flexDirection === "column-reverse" ? "vertical" : "horizontal";
1881
1881
  if (i.display === "grid")
1882
1882
  return i.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
1883
1883
  if (r && a.float && a.float !== "none") {
1884
- var d = a.float === "left" ? "left" : "right";
1885
- return s && (l.clear === "both" || l.clear === d) ? "vertical" : "horizontal";
1884
+ var c = a.float === "left" ? "left" : "right";
1885
+ return s && (l.clear === "both" || l.clear === c) ? "vertical" : "horizontal";
1886
1886
  }
1887
- return r && (a.display === "block" || a.display === "flex" || a.display === "table" || a.display === "grid" || u >= o && i[vi] === "none" || s && i[vi] === "none" && u + c > o) ? "vertical" : "horizontal";
1888
- }, ls = function(t, n, i) {
1889
- 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;
1887
+ return r && (a.display === "block" || a.display === "flex" || a.display === "table" || a.display === "grid" || u >= o && i[vi] === "none" || s && i[vi] === "none" && u + d > o) ? "vertical" : "horizontal";
1888
+ }, ls = function(t, e, i) {
1889
+ var o = i ? t.left : t.top, r = i ? t.right : t.bottom, s = i ? t.width : t.height, a = i ? e.left : e.top, l = i ? e.right : e.bottom, u = i ? e.width : e.height;
1890
1890
  return o === a || r === l || o + s / 2 === a + u / 2;
1891
- }, us = function(t, n) {
1891
+ }, us = function(t, e) {
1892
1892
  var i;
1893
- return ke.some(function(o) {
1893
+ return Ue.some(function(o) {
1894
1894
  var r = o[tt].options.emptyInsertThreshold;
1895
1895
  if (!(!r || Wn(o))) {
1896
- var s = I(o), a = t >= s.left - r && t <= s.right + r, l = n >= s.top - r && n <= s.bottom + r;
1896
+ var s = I(o), a = t >= s.left - r && t <= s.right + r, l = e >= s.top - r && e <= s.bottom + r;
1897
1897
  if (a && l)
1898
1898
  return i = o;
1899
1899
  }
1900
1900
  }), i;
1901
1901
  }, no = function(t) {
1902
- function n(r, s) {
1903
- return function(a, l, u, c) {
1904
- var d = a.options.group.name && l.options.group.name && a.options.group.name === l.options.group.name;
1905
- if (r == null && (s || d))
1902
+ function e(r, s) {
1903
+ return function(a, l, u, d) {
1904
+ var c = a.options.group.name && l.options.group.name && a.options.group.name === l.options.group.name;
1905
+ if (r == null && (s || c))
1906
1906
  return !0;
1907
1907
  if (r == null || r === !1)
1908
1908
  return !1;
1909
1909
  if (s && r === "clone")
1910
1910
  return r;
1911
1911
  if (typeof r == "function")
1912
- return n(r(a, l, u, c), s)(a, l, u, c);
1912
+ return e(r(a, l, u, d), s)(a, l, u, d);
1913
1913
  var p = (s ? a : l).options.group.name;
1914
1914
  return r === !0 || typeof r == "string" && r === p || r.join && r.indexOf(p) > -1;
1915
1915
  };
@@ -1917,41 +1917,41 @@ var h, N, w, O, Ot, Oe, D, xt, Ut, Q, ae, Et, Se, k, Vt = !1, Ue = !1, ke = [],
1917
1917
  var i = {}, o = t.group;
1918
1918
  (!o || Pe(o) != "object") && (o = {
1919
1919
  name: o
1920
- }), i.name = o.name, i.checkPull = n(o.pull, !0), i.checkPut = n(o.put), i.revertClone = o.revertClone, t.group = i;
1920
+ }), i.name = o.name, i.checkPull = e(o.pull, !0), i.checkPut = e(o.put), i.revertClone = o.revertClone, t.group = i;
1921
1921
  }, io = function() {
1922
1922
  !to && w && b(w, "display", "none");
1923
1923
  }, oo = function() {
1924
1924
  !to && w && b(w, "display", "");
1925
1925
  };
1926
- gn && !Yi && document.addEventListener("click", function(e) {
1927
- if (Ue)
1928
- return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), Ue = !1, !1;
1926
+ gn && !Yi && document.addEventListener("click", function(n) {
1927
+ if (ke)
1928
+ return n.preventDefault(), n.stopPropagation && n.stopPropagation(), n.stopImmediatePropagation && n.stopImmediatePropagation(), ke = !1, !1;
1929
1929
  }, !0);
1930
1930
  var Pt = function(t) {
1931
1931
  if (h) {
1932
1932
  t = t.touches ? t.touches[0] : t;
1933
- var n = us(t.clientX, t.clientY);
1934
- if (n) {
1933
+ var e = us(t.clientX, t.clientY);
1934
+ if (e) {
1935
1935
  var i = {};
1936
1936
  for (var o in t)
1937
1937
  t.hasOwnProperty(o) && (i[o] = t[o]);
1938
- i.target = i.rootEl = n, i.preventDefault = void 0, i.stopPropagation = void 0, n[tt]._onDragOver(i);
1938
+ i.target = i.rootEl = e, i.preventDefault = void 0, i.stopPropagation = void 0, e[tt]._onDragOver(i);
1939
1939
  }
1940
1940
  }
1941
- }, ds = function(t) {
1941
+ }, cs = function(t) {
1942
1942
  h && h.parentNode[tt]._isOutsideThisEl(t.target);
1943
1943
  };
1944
- function v(e, t) {
1945
- if (!(e && e.nodeType && e.nodeType === 1))
1946
- throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));
1947
- this.el = e, this.options = t = mt({}, t), e[tt] = this;
1948
- var n = {
1944
+ function v(n, t) {
1945
+ if (!(n && n.nodeType && n.nodeType === 1))
1946
+ throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(n));
1947
+ this.el = n, this.options = t = mt({}, t), n[tt] = this;
1948
+ var e = {
1949
1949
  group: null,
1950
1950
  sort: !0,
1951
1951
  disabled: !1,
1952
1952
  store: null,
1953
1953
  handle: null,
1954
- draggable: /^[uo]l$/i.test(e.nodeName) ? ">li" : ">*",
1954
+ draggable: /^[uo]l$/i.test(n.nodeName) ? ">li" : ">*",
1955
1955
  swapThreshold: 1,
1956
1956
  // percentage; 0 <= x <= 1
1957
1957
  invertSwap: !1,
@@ -1960,7 +1960,7 @@ function v(e, t) {
1960
1960
  // will be set to same as swapThreshold if default
1961
1961
  removeCloneOnHide: !0,
1962
1962
  direction: function() {
1963
- return eo(e, this.options);
1963
+ return eo(n, this.options);
1964
1964
  },
1965
1965
  ghostClass: "sortable-ghost",
1966
1966
  chosenClass: "sortable-chosen",
@@ -1990,13 +1990,13 @@ function v(e, t) {
1990
1990
  supportPointer: v.supportPointer !== !1 && "PointerEvent" in window && !re,
1991
1991
  emptyInsertThreshold: 5
1992
1992
  };
1993
- Ee.initializePlugins(this, e, n);
1994
- for (var i in n)
1995
- !(i in t) && (t[i] = n[i]);
1993
+ Ee.initializePlugins(this, n, e);
1994
+ for (var i in e)
1995
+ !(i in t) && (t[i] = e[i]);
1996
1996
  no(t);
1997
1997
  for (var o in this)
1998
1998
  o.charAt(0) === "_" && typeof this[o] == "function" && (this[o] = this[o].bind(this));
1999
- this.nativeDraggable = t.forceFallback ? !1 : as, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? A(e, "pointerdown", this._onTapStart) : (A(e, "mousedown", this._onTapStart), A(e, "touchstart", this._onTapStart)), this.nativeDraggable && (A(e, "dragover", this), A(e, "dragenter", this)), ke.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), mt(this, ns());
1999
+ this.nativeDraggable = t.forceFallback ? !1 : as, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? A(n, "pointerdown", this._onTapStart) : (A(n, "mousedown", this._onTapStart), A(n, "touchstart", this._onTapStart)), this.nativeDraggable && (A(n, "dragover", this), A(n, "dragenter", this)), Ue.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), mt(this, ns());
2000
2000
  }
2001
2001
  v.prototype = /** @lends Sortable.prototype */
2002
2002
  {
@@ -2004,40 +2004,40 @@ v.prototype = /** @lends Sortable.prototype */
2004
2004
  _isOutsideThisEl: function(t) {
2005
2005
  !this.el.contains(t) && t !== this.el && (Ht = null);
2006
2006
  },
2007
- _getDirection: function(t, n) {
2008
- return typeof this.options.direction == "function" ? this.options.direction.call(this, t, n, h) : this.options.direction;
2007
+ _getDirection: function(t, e) {
2008
+ return typeof this.options.direction == "function" ? this.options.direction.call(this, t, e, h) : this.options.direction;
2009
2009
  },
2010
2010
  _onTapStart: function(t) {
2011
2011
  if (t.cancelable) {
2012
- 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;
2012
+ var e = 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, d = o.filter;
2013
2013
  if (bs(i), !h && !(/mousedown|pointerdown/.test(s) && t.button !== 0 || o.disabled) && !u.isContentEditable && !(!this.nativeDraggable && re && l && l.tagName.toUpperCase() === "SELECT") && (l = lt(l, o.draggable, i, !1), !(l && l.animated) && Oe !== l)) {
2014
- if (Ut = nt(l), ae = nt(l, o.draggable), typeof c == "function") {
2015
- if (c.call(this, t, l, this)) {
2014
+ if (kt = nt(l), ae = nt(l, o.draggable), typeof d == "function") {
2015
+ if (d.call(this, t, l, this)) {
2016
2016
  q({
2017
- sortable: n,
2017
+ sortable: e,
2018
2018
  rootEl: u,
2019
2019
  name: "filter",
2020
2020
  targetEl: l,
2021
2021
  toEl: i,
2022
2022
  fromEl: i
2023
- }), W("filter", n, {
2023
+ }), W("filter", e, {
2024
2024
  evt: t
2025
2025
  }), r && t.cancelable && t.preventDefault();
2026
2026
  return;
2027
2027
  }
2028
- } else if (c && (c = c.split(",").some(function(d) {
2029
- if (d = lt(u, d.trim(), i, !1), d)
2028
+ } else if (d && (d = d.split(",").some(function(c) {
2029
+ if (c = lt(u, c.trim(), i, !1), c)
2030
2030
  return q({
2031
- sortable: n,
2032
- rootEl: d,
2031
+ sortable: e,
2032
+ rootEl: c,
2033
2033
  name: "filter",
2034
2034
  targetEl: l,
2035
2035
  fromEl: i,
2036
2036
  toEl: i
2037
- }), W("filter", n, {
2037
+ }), W("filter", e, {
2038
2038
  evt: t
2039
2039
  }), !0;
2040
- }), c)) {
2040
+ }), d)) {
2041
2041
  r && t.cancelable && t.preventDefault();
2042
2042
  return;
2043
2043
  }
@@ -2045,31 +2045,31 @@ v.prototype = /** @lends Sortable.prototype */
2045
2045
  }
2046
2046
  }
2047
2047
  },
2048
- _prepareDragStart: function(t, n, i) {
2048
+ _prepareDragStart: function(t, e, i) {
2049
2049
  var o = this, r = o.el, s = o.options, a = r.ownerDocument, l;
2050
2050
  if (i && !h && i.parentNode === r) {
2051
2051
  var u = I(i);
2052
2052
  if (O = r, h = i, N = h.parentNode, Ot = h.nextSibling, Oe = i, Se = s.group, v.dragged = h, Tt = {
2053
2053
  target: h,
2054
- clientX: (n || t).clientX,
2055
- clientY: (n || t).clientY
2056
- }, yi = Tt.clientX - u.left, bi = Tt.clientY - u.top, this._lastX = (n || t).clientX, this._lastY = (n || t).clientY, h.style["will-change"] = "all", l = function() {
2054
+ clientX: (e || t).clientX,
2055
+ clientY: (e || t).clientY
2056
+ }, yi = Tt.clientX - u.left, bi = Tt.clientY - u.top, this._lastX = (e || t).clientX, this._lastY = (e || t).clientY, h.style["will-change"] = "all", l = function() {
2057
2057
  if (W("delayEnded", o, {
2058
2058
  evt: t
2059
2059
  }), v.eventCanceled) {
2060
2060
  o._onDrop();
2061
2061
  return;
2062
2062
  }
2063
- o._disableDelayedDragEvents(), !pi && o.nativeDraggable && (h.draggable = !0), o._triggerDragStart(t, n), q({
2063
+ o._disableDelayedDragEvents(), !pi && o.nativeDraggable && (h.draggable = !0), o._triggerDragStart(t, e), q({
2064
2064
  sortable: o,
2065
2065
  name: "choose",
2066
2066
  originalEvent: t
2067
2067
  }), K(h, s.chosenClass, !0);
2068
- }, s.ignore.split(",").forEach(function(c) {
2069
- Wi(h, c.trim(), Pn);
2068
+ }, s.ignore.split(",").forEach(function(d) {
2069
+ Wi(h, d.trim(), Pn);
2070
2070
  }), A(a, "dragover", Pt), A(a, "mousemove", Pt), A(a, "touchmove", Pt), A(a, "mouseup", o._onDrop), A(a, "touchend", o._onDrop), A(a, "touchcancel", o._onDrop), pi && this.nativeDraggable && (this.options.touchStartThreshold = 4, h.draggable = !0), W("delayStart", this, {
2071
2071
  evt: t
2072
- }), s.delay && (!s.delayOnTouchOnly || n) && (!this.nativeDraggable || !(we || yt))) {
2072
+ }), s.delay && (!s.delayOnTouchOnly || e) && (!this.nativeDraggable || !(we || yt))) {
2073
2073
  if (v.eventCanceled) {
2074
2074
  this._onDrop();
2075
2075
  return;
@@ -2080,8 +2080,8 @@ v.prototype = /** @lends Sortable.prototype */
2080
2080
  }
2081
2081
  },
2082
2082
  _delayedDragTouchMoveHandler: function(t) {
2083
- var n = t.touches ? t.touches[0] : t;
2084
- Math.max(Math.abs(n.clientX - this._lastX), Math.abs(n.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1)) && this._disableDelayedDrag();
2083
+ var e = t.touches ? t.touches[0] : t;
2084
+ Math.max(Math.abs(e.clientX - this._lastX), Math.abs(e.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1)) && this._disableDelayedDrag();
2085
2085
  },
2086
2086
  _disableDelayedDrag: function() {
2087
2087
  h && Pn(h), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
@@ -2090,8 +2090,8 @@ v.prototype = /** @lends Sortable.prototype */
2090
2090
  var t = this.el.ownerDocument;
2091
2091
  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);
2092
2092
  },
2093
- _triggerDragStart: function(t, n) {
2094
- n = n || t.pointerType == "touch" && t, !this.nativeDraggable || n ? this.options.supportPointer ? A(document, "pointermove", this._onTouchMove) : n ? A(document, "touchmove", this._onTouchMove) : A(document, "mousemove", this._onTouchMove) : (A(h, "dragend", this), A(O, "dragstart", this._onDragStart));
2093
+ _triggerDragStart: function(t, e) {
2094
+ e = e || t.pointerType == "touch" && t, !this.nativeDraggable || e ? this.options.supportPointer ? A(document, "pointermove", this._onTouchMove) : e ? A(document, "touchmove", this._onTouchMove) : A(document, "mousemove", this._onTouchMove) : (A(h, "dragend", this), A(O, "dragstart", this._onDragStart));
2095
2095
  try {
2096
2096
  document.selection ? De(function() {
2097
2097
  document.selection.empty();
@@ -2099,16 +2099,16 @@ v.prototype = /** @lends Sortable.prototype */
2099
2099
  } catch {
2100
2100
  }
2101
2101
  },
2102
- _dragStarted: function(t, n) {
2102
+ _dragStarted: function(t, e) {
2103
2103
  if (Vt = !1, O && h) {
2104
2104
  W("dragStarted", this, {
2105
- evt: n
2106
- }), this.nativeDraggable && A(document, "dragover", ds);
2105
+ evt: e
2106
+ }), this.nativeDraggable && A(document, "dragover", cs);
2107
2107
  var i = this.options;
2108
2108
  !t && K(h, i.dragClass, !1), K(h, i.ghostClass, !0), v.active = this, t && this._appendGhost(), q({
2109
2109
  sortable: this,
2110
2110
  name: "start",
2111
- originalEvent: n
2111
+ originalEvent: e
2112
2112
  });
2113
2113
  } else
2114
2114
  this._nulling();
@@ -2116,60 +2116,60 @@ v.prototype = /** @lends Sortable.prototype */
2116
2116
  _emulateDragOver: function() {
2117
2117
  if (at) {
2118
2118
  this._lastX = at.clientX, this._lastY = at.clientY, io();
2119
- for (var t = document.elementFromPoint(at.clientX, at.clientY), n = t; t && t.shadowRoot && (t = t.shadowRoot.elementFromPoint(at.clientX, at.clientY), t !== n); )
2120
- n = t;
2121
- if (h.parentNode[tt]._isOutsideThisEl(t), n)
2119
+ for (var t = document.elementFromPoint(at.clientX, at.clientY), e = t; t && t.shadowRoot && (t = t.shadowRoot.elementFromPoint(at.clientX, at.clientY), t !== e); )
2120
+ e = t;
2121
+ if (h.parentNode[tt]._isOutsideThisEl(t), e)
2122
2122
  do {
2123
- if (n[tt]) {
2123
+ if (e[tt]) {
2124
2124
  var i = void 0;
2125
- if (i = n[tt]._onDragOver({
2125
+ if (i = e[tt]._onDragOver({
2126
2126
  clientX: at.clientX,
2127
2127
  clientY: at.clientY,
2128
2128
  target: t,
2129
- rootEl: n
2129
+ rootEl: e
2130
2130
  }), i && !this.options.dragoverBubble)
2131
2131
  break;
2132
2132
  }
2133
- t = n;
2134
- } while (n = n.parentNode);
2133
+ t = e;
2134
+ } while (e = e.parentNode);
2135
2135
  oo();
2136
2136
  }
2137
2137
  },
2138
2138
  _onTouchMove: function(t) {
2139
2139
  if (Tt) {
2140
- var n = this.options, i = n.fallbackTolerance, o = n.fallbackOffset, r = t.touches ? t.touches[0] : t, s = w && kt(w, !0), a = w && s && s.a, l = w && s && s.d, u = _e && X && mi(X), c = (r.clientX - Tt.clientX + o.x) / (a || 1) + (u ? u[0] - Tn[0] : 0) / (a || 1), d = (r.clientY - Tt.clientY + o.y) / (l || 1) + (u ? u[1] - Tn[1] : 0) / (l || 1);
2140
+ var e = this.options, i = e.fallbackTolerance, o = e.fallbackOffset, r = t.touches ? t.touches[0] : t, s = w && Ut(w, !0), a = w && s && s.a, l = w && s && s.d, u = _e && X && mi(X), d = (r.clientX - Tt.clientX + o.x) / (a || 1) + (u ? u[0] - Tn[0] : 0) / (a || 1), c = (r.clientY - Tt.clientY + o.y) / (l || 1) + (u ? u[1] - Tn[1] : 0) / (l || 1);
2141
2141
  if (!v.active && !Vt) {
2142
2142
  if (i && Math.max(Math.abs(r.clientX - this._lastX), Math.abs(r.clientY - this._lastY)) < i)
2143
2143
  return;
2144
2144
  this._onDragStart(t, !0);
2145
2145
  }
2146
2146
  if (w) {
2147
- s ? (s.e += c - (An || 0), s.f += d - (Cn || 0)) : s = {
2147
+ s ? (s.e += d - (An || 0), s.f += c - (Cn || 0)) : s = {
2148
2148
  a: 1,
2149
2149
  b: 0,
2150
2150
  c: 0,
2151
2151
  d: 1,
2152
- e: c,
2153
- f: d
2152
+ e: d,
2153
+ f: c
2154
2154
  };
2155
2155
  var p = "matrix(".concat(s.a, ",").concat(s.b, ",").concat(s.c, ",").concat(s.d, ",").concat(s.e, ",").concat(s.f, ")");
2156
- b(w, "webkitTransform", p), b(w, "mozTransform", p), b(w, "msTransform", p), b(w, "transform", p), An = c, Cn = d, at = r;
2156
+ b(w, "webkitTransform", p), b(w, "mozTransform", p), b(w, "msTransform", p), b(w, "transform", p), An = d, Cn = c, at = r;
2157
2157
  }
2158
2158
  t.cancelable && t.preventDefault();
2159
2159
  }
2160
2160
  },
2161
2161
  _appendGhost: function() {
2162
2162
  if (!w) {
2163
- var t = this.options.fallbackOnBody ? document.body : O, n = I(h, !0, _e, !0, t), i = this.options;
2163
+ var t = this.options.fallbackOnBody ? document.body : O, e = I(h, !0, _e, !0, t), i = this.options;
2164
2164
  if (_e) {
2165
2165
  for (X = t; b(X, "position") === "static" && b(X, "transform") === "none" && X !== document; )
2166
2166
  X = X.parentNode;
2167
- X !== document.body && X !== document.documentElement ? (X === document && (X = ut()), n.top += X.scrollTop, n.left += X.scrollLeft) : X = ut(), Tn = mi(X);
2167
+ X !== document.body && X !== document.documentElement ? (X === document && (X = ut()), e.top += X.scrollTop, e.left += X.scrollLeft) : X = ut(), Tn = mi(X);
2168
2168
  }
2169
- w = h.cloneNode(!0), K(w, i.ghostClass, !1), K(w, i.fallbackClass, !0), K(w, i.dragClass, !0), b(w, "transition", ""), b(w, "transform", ""), b(w, "box-sizing", "border-box"), b(w, "margin", 0), b(w, "top", n.top), b(w, "left", n.left), b(w, "width", n.width), b(w, "height", n.height), b(w, "opacity", "0.8"), b(w, "position", _e ? "absolute" : "fixed"), b(w, "zIndex", "100000"), b(w, "pointerEvents", "none"), v.ghost = w, t.appendChild(w), b(w, "transform-origin", yi / parseInt(w.style.width) * 100 + "% " + bi / parseInt(w.style.height) * 100 + "%");
2169
+ w = h.cloneNode(!0), K(w, i.ghostClass, !1), K(w, i.fallbackClass, !0), K(w, i.dragClass, !0), b(w, "transition", ""), b(w, "transform", ""), b(w, "box-sizing", "border-box"), b(w, "margin", 0), b(w, "top", e.top), b(w, "left", e.left), b(w, "width", e.width), b(w, "height", e.height), b(w, "opacity", "0.8"), b(w, "position", _e ? "absolute" : "fixed"), b(w, "zIndex", "100000"), b(w, "pointerEvents", "none"), v.ghost = w, t.appendChild(w), b(w, "transform-origin", yi / parseInt(w.style.width) * 100 + "% " + bi / parseInt(w.style.height) * 100 + "%");
2170
2170
  }
2171
2171
  },
2172
- _onDragStart: function(t, n) {
2172
+ _onDragStart: function(t, e) {
2173
2173
  var i = this, o = t.dataTransfer, r = i.options;
2174
2174
  if (W("dragStart", this, {
2175
2175
  evt: t
@@ -2182,27 +2182,27 @@ v.prototype = /** @lends Sortable.prototype */
2182
2182
  sortable: i,
2183
2183
  name: "clone"
2184
2184
  }));
2185
- }), !n && K(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)), A(document, "drop", i), b(h, "transform", "translateZ(0)")), Vt = !0, i._dragStartId = De(i._dragStarted.bind(i, n, t)), A(document, "selectstart", i), te = !0, re && b(document.body, "user-select", "none");
2185
+ }), !e && K(h, r.dragClass, !0), e ? (ke = !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)), A(document, "drop", i), b(h, "transform", "translateZ(0)")), Vt = !0, i._dragStartId = De(i._dragStarted.bind(i, e, t)), A(document, "selectstart", i), te = !0, re && b(document.body, "user-select", "none");
2186
2186
  },
2187
2187
  // Returns true - if no further action is needed (either inserted or another condition)
2188
2188
  _onDragOver: function(t) {
2189
- 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;
2189
+ var e = this.el, i = t.target, o, r, s, a = this.options, l = a.group, u = v.active, d = Se === l, c = a.sort, p = U || u, f, g = this, y = !1;
2190
2190
  if (In)
2191
2191
  return;
2192
2192
  function P(Gt, Oo) {
2193
- W(Gt, g, dt({
2193
+ W(Gt, g, ct({
2194
2194
  evt: t,
2195
- isOwner: c,
2195
+ isOwner: d,
2196
2196
  axis: f ? "vertical" : "horizontal",
2197
2197
  revert: s,
2198
2198
  dragRect: o,
2199
2199
  targetRect: r,
2200
- canSort: d,
2200
+ canSort: c,
2201
2201
  fromSortable: p,
2202
2202
  target: i,
2203
2203
  completed: B,
2204
2204
  onMove: function(Qn, Ro) {
2205
- return Ae(O, n, h, o, Qn, I(Qn), t, Ro);
2205
+ return Ae(O, e, h, o, Qn, I(Qn), t, Ro);
2206
2206
  },
2207
2207
  changed: J
2208
2208
  }, Oo));
@@ -2213,62 +2213,62 @@ v.prototype = /** @lends Sortable.prototype */
2213
2213
  function B(Gt) {
2214
2214
  return P("dragOverCompleted", {
2215
2215
  insertion: Gt
2216
- }), Gt && (c ? u._hideClone() : u._showClone(g), g !== p && (K(h, k ? k.options.ghostClass : u.options.ghostClass, !1), K(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() {
2216
+ }), Gt && (d ? u._hideClone() : u._showClone(g), g !== p && (K(h, U ? U.options.ghostClass : u.options.ghostClass, !1), K(h, a.ghostClass, !0)), U !== g && g !== v.active ? U = g : g === v.active && U && (U = null), p === g && (g._ignoreWhileAnimating = i), g.animateAll(function() {
2217
2217
  P("dragOverAnimationComplete"), g._ignoreWhileAnimating = null;
2218
- }), g !== p && (p.animateAll(), p._ignoreWhileAnimating = null)), (i === h && !h.animated || i === n && !i.animated) && (Ht = null), !a.dragoverBubble && !t.rootEl && i !== document && (h.parentNode[tt]._isOutsideThisEl(t.target), !Gt && Pt(t)), !a.dragoverBubble && t.stopPropagation && t.stopPropagation(), y = !0;
2218
+ }), g !== p && (p.animateAll(), p._ignoreWhileAnimating = null)), (i === h && !h.animated || i === e && !i.animated) && (Ht = null), !a.dragoverBubble && !t.rootEl && i !== document && (h.parentNode[tt]._isOutsideThisEl(t.target), !Gt && Pt(t)), !a.dragoverBubble && t.stopPropagation && t.stopPropagation(), y = !0;
2219
2219
  }
2220
2220
  function J() {
2221
2221
  Q = nt(h), Et = nt(h, a.draggable), q({
2222
2222
  sortable: g,
2223
2223
  name: "change",
2224
- toEl: n,
2224
+ toEl: e,
2225
2225
  newIndex: Q,
2226
2226
  newDraggableIndex: Et,
2227
2227
  originalEvent: t
2228
2228
  });
2229
2229
  }
2230
- if (t.preventDefault !== void 0 && t.cancelable && t.preventDefault(), i = lt(i, a.draggable, n, !0), P("dragOver"), v.eventCanceled)
2230
+ if (t.preventDefault !== void 0 && t.cancelable && t.preventDefault(), i = lt(i, a.draggable, e, !0), P("dragOver"), v.eventCanceled)
2231
2231
  return y;
2232
2232
  if (h.contains(t.target) || i.animated && i.animatingX && i.animatingY || g._ignoreWhileAnimating === i)
2233
2233
  return B(!1);
2234
- if (Ue = !1, u && !a.disabled && (c ? d || (s = N !== O) : k === this || (this.lastPutMode = Se.checkPull(this, u, h, t)) && l.checkPut(this, u, h, t))) {
2234
+ if (ke = !1, u && !a.disabled && (d ? c || (s = N !== O) : U === this || (this.lastPutMode = Se.checkPull(this, u, h, t)) && l.checkPut(this, u, h, t))) {
2235
2235
  if (f = this._getDirection(t, i) === "vertical", o = I(h), P("dragOverValid"), v.eventCanceled)
2236
2236
  return y;
2237
2237
  if (s)
2238
2238
  return N = O, L(), this._hideClone(), P("revert"), v.eventCanceled || (Ot ? O.insertBefore(h, Ot) : O.appendChild(h)), B(!0);
2239
- var Y = Wn(n, a.draggable);
2239
+ var Y = Wn(e, a.draggable);
2240
2240
  if (!Y || fs(t, f, this) && !Y.animated) {
2241
2241
  if (Y === h)
2242
2242
  return B(!1);
2243
- if (Y && n === t.target && (i = Y), i && (r = I(i)), Ae(O, n, h, o, i, r, t, !!i) !== !1)
2244
- return L(), Y && Y.nextSibling ? n.insertBefore(h, Y.nextSibling) : n.appendChild(h), N = n, J(), B(!0);
2243
+ if (Y && e === t.target && (i = Y), i && (r = I(i)), Ae(O, e, h, o, i, r, t, !!i) !== !1)
2244
+ return L(), Y && Y.nextSibling ? e.insertBefore(h, Y.nextSibling) : e.appendChild(h), N = e, J(), B(!0);
2245
2245
  } else if (Y && ps(t, f, this)) {
2246
- var rt = Zt(n, 0, a, !0);
2246
+ var rt = Zt(e, 0, a, !0);
2247
2247
  if (rt === h)
2248
2248
  return B(!1);
2249
- if (i = rt, r = I(i), Ae(O, n, h, o, i, r, t, !1) !== !1)
2250
- return L(), n.insertBefore(h, rt), N = n, J(), B(!0);
2251
- } else if (i.parentNode === n) {
2249
+ if (i = rt, r = I(i), Ae(O, e, h, o, i, r, t, !1) !== !1)
2250
+ return L(), e.insertBefore(h, rt), N = e, J(), B(!0);
2251
+ } else if (i.parentNode === e) {
2252
2252
  r = I(i);
2253
- var C = 0, z, st = h.parentNode !== n, Z = !ls(h.animated && h.toRect || o, i.animated && i.toRect || r, f), Yt = f ? "top" : "left", bt = gi(i, "top", "top") || gi(h, "top", "top"), qt = bt ? bt.scrollTop : void 0;
2253
+ var C = 0, z, st = h.parentNode !== e, Z = !ls(h.animated && h.toRect || o, i.animated && i.toRect || r, f), Yt = f ? "top" : "left", bt = gi(i, "top", "top") || gi(h, "top", "top"), qt = bt ? bt.scrollTop : void 0;
2254
2254
  Ht !== i && (z = r[Yt], ue = !1, $e = !Z && a.invertSwap || st), C = gs(t, i, r, f, Z ? 1 : a.swapThreshold, a.invertedSwapThreshold == null ? a.swapThreshold : a.invertedSwapThreshold, $e, Ht === i);
2255
- var ct;
2255
+ var dt;
2256
2256
  if (C !== 0) {
2257
2257
  var _t = nt(h);
2258
2258
  do
2259
- _t -= C, ct = N.children[_t];
2260
- while (ct && (b(ct, "display") === "none" || ct === w));
2259
+ _t -= C, dt = N.children[_t];
2260
+ while (dt && (b(dt, "display") === "none" || dt === w));
2261
2261
  }
2262
- if (C === 0 || ct === i)
2262
+ if (C === 0 || dt === i)
2263
2263
  return B(!1);
2264
2264
  Ht = i, le = C;
2265
2265
  var Wt = i.nextElementSibling, vt = !1;
2266
2266
  vt = C === 1;
2267
- var xe = Ae(O, n, h, o, i, r, t, vt);
2267
+ var xe = Ae(O, e, h, o, i, r, t, vt);
2268
2268
  if (xe !== !1)
2269
- return (xe === 1 || xe === -1) && (vt = xe === 1), In = !0, setTimeout(hs, 30), L(), vt && !Wt ? n.appendChild(h) : i.parentNode.insertBefore(h, vt ? Wt : i), bt && Ji(bt, 0, qt - bt.scrollTop), N = h.parentNode, z !== void 0 && !$e && (Re = Math.abs(z - I(i)[Yt])), J(), B(!0);
2269
+ return (xe === 1 || xe === -1) && (vt = xe === 1), In = !0, setTimeout(hs, 30), L(), vt && !Wt ? e.appendChild(h) : i.parentNode.insertBefore(h, vt ? Wt : i), bt && Ji(bt, 0, qt - bt.scrollTop), N = h.parentNode, z !== void 0 && !$e && (Re = Math.abs(z - I(i)[Yt])), J(), B(!0);
2270
2270
  }
2271
- if (n.contains(h))
2271
+ if (e.contains(h))
2272
2272
  return B(!1);
2273
2273
  }
2274
2274
  return !1;
@@ -2282,14 +2282,14 @@ v.prototype = /** @lends Sortable.prototype */
2282
2282
  S(t, "mouseup", this._onDrop), S(t, "touchend", this._onDrop), S(t, "pointerup", this._onDrop), S(t, "touchcancel", this._onDrop), S(document, "selectstart", this);
2283
2283
  },
2284
2284
  _onDrop: function(t) {
2285
- var n = this.el, i = this.options;
2285
+ var e = this.el, i = this.options;
2286
2286
  if (Q = nt(h), Et = nt(h, i.draggable), W("drop", this, {
2287
2287
  evt: t
2288
2288
  }), N = h && h.parentNode, Q = nt(h), Et = nt(h, i.draggable), v.eventCanceled) {
2289
2289
  this._nulling();
2290
2290
  return;
2291
2291
  }
2292
- Vt = !1, $e = !1, ue = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Hn(this.cloneId), Hn(this._dragStartId), this.nativeDraggable && (S(document, "drop", this), S(n, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), re && b(document.body, "user-select", ""), b(h, "transform", ""), t && (te && (t.cancelable && t.preventDefault(), !i.dropBubble && t.stopPropagation()), w && w.parentNode && w.parentNode.removeChild(w), (O === N || k && k.lastPutMode !== "clone") && D && D.parentNode && D.parentNode.removeChild(D), h && (this.nativeDraggable && S(h, "dragend", this), Pn(h), h.style["will-change"] = "", te && !Vt && K(h, k ? k.options.ghostClass : this.options.ghostClass, !1), K(h, this.options.chosenClass, !1), q({
2292
+ Vt = !1, $e = !1, ue = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Hn(this.cloneId), Hn(this._dragStartId), this.nativeDraggable && (S(document, "drop", this), S(e, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), re && b(document.body, "user-select", ""), b(h, "transform", ""), t && (te && (t.cancelable && t.preventDefault(), !i.dropBubble && t.stopPropagation()), w && w.parentNode && w.parentNode.removeChild(w), (O === N || U && U.lastPutMode !== "clone") && D && D.parentNode && D.parentNode.removeChild(D), h && (this.nativeDraggable && S(h, "dragend", this), Pn(h), h.style["will-change"] = "", te && !Vt && K(h, U ? U.options.ghostClass : this.options.ghostClass, !1), K(h, this.options.chosenClass, !1), q({
2293
2293
  sortable: this,
2294
2294
  name: "unchoose",
2295
2295
  toEl: N,
@@ -2318,7 +2318,7 @@ v.prototype = /** @lends Sortable.prototype */
2318
2318
  name: "sort",
2319
2319
  toEl: N,
2320
2320
  originalEvent: t
2321
- })), k && k.save()) : Q !== Ut && Q >= 0 && (q({
2321
+ })), U && U.save()) : Q !== kt && Q >= 0 && (q({
2322
2322
  sortable: this,
2323
2323
  name: "update",
2324
2324
  toEl: N,
@@ -2328,7 +2328,7 @@ v.prototype = /** @lends Sortable.prototype */
2328
2328
  name: "sort",
2329
2329
  toEl: N,
2330
2330
  originalEvent: t
2331
- })), v.active && ((Q == null || Q === -1) && (Q = Ut, Et = ae), q({
2331
+ })), v.active && ((Q == null || Q === -1) && (Q = kt, Et = ae), q({
2332
2332
  sortable: this,
2333
2333
  name: "end",
2334
2334
  toEl: N,
@@ -2336,7 +2336,7 @@ v.prototype = /** @lends Sortable.prototype */
2336
2336
  }), this.save()))), this._nulling();
2337
2337
  },
2338
2338
  _nulling: function() {
2339
- W("nulling", this), O = h = N = w = Ot = D = Oe = xt = Tt = at = te = Q = Et = Ut = ae = Ht = le = k = Se = v.dragged = v.ghost = v.clone = v.active = null, Fe.forEach(function(t) {
2339
+ W("nulling", this), O = h = N = w = Ot = D = Oe = xt = Tt = at = te = Q = Et = kt = ae = Ht = le = U = Se = v.dragged = v.ghost = v.clone = v.active = null, Fe.forEach(function(t) {
2340
2340
  t.checked = !0;
2341
2341
  }), Fe.length = An = Cn = 0;
2342
2342
  },
@@ -2348,7 +2348,7 @@ v.prototype = /** @lends Sortable.prototype */
2348
2348
  break;
2349
2349
  case "dragenter":
2350
2350
  case "dragover":
2351
- h && (this._onDragOver(t), cs(t));
2351
+ h && (this._onDragOver(t), ds(t));
2352
2352
  break;
2353
2353
  case "selectstart":
2354
2354
  t.preventDefault();
@@ -2360,22 +2360,22 @@ v.prototype = /** @lends Sortable.prototype */
2360
2360
  * @returns {String[]}
2361
2361
  */
2362
2362
  toArray: function() {
2363
- for (var t = [], n, i = this.el.children, o = 0, r = i.length, s = this.options; o < r; o++)
2364
- n = i[o], lt(n, s.draggable, this.el, !1) && t.push(n.getAttribute(s.dataIdAttr) || ys(n));
2363
+ for (var t = [], e, i = this.el.children, o = 0, r = i.length, s = this.options; o < r; o++)
2364
+ e = i[o], lt(e, s.draggable, this.el, !1) && t.push(e.getAttribute(s.dataIdAttr) || ys(e));
2365
2365
  return t;
2366
2366
  },
2367
2367
  /**
2368
2368
  * Sorts the elements according to the array.
2369
2369
  * @param {String[]} order order of the items
2370
2370
  */
2371
- sort: function(t, n) {
2371
+ sort: function(t, e) {
2372
2372
  var i = {}, o = this.el;
2373
2373
  this.toArray().forEach(function(r, s) {
2374
2374
  var a = o.children[s];
2375
2375
  lt(a, this.options.draggable, o, !1) && (i[r] = a);
2376
- }, this), n && this.captureAnimationState(), t.forEach(function(r) {
2376
+ }, this), e && this.captureAnimationState(), t.forEach(function(r) {
2377
2377
  i[r] && (o.removeChild(i[r]), o.appendChild(i[r]));
2378
- }), n && this.animateAll();
2378
+ }), e && this.animateAll();
2379
2379
  },
2380
2380
  /**
2381
2381
  * Save the current sorting
@@ -2390,8 +2390,8 @@ v.prototype = /** @lends Sortable.prototype */
2390
2390
  * @param {String} [selector] default: `options.draggable`
2391
2391
  * @returns {HTMLElement|null}
2392
2392
  */
2393
- closest: function(t, n) {
2394
- return lt(t, n || this.options.draggable, this.el, !1);
2393
+ closest: function(t, e) {
2394
+ return lt(t, e || this.options.draggable, this.el, !1);
2395
2395
  },
2396
2396
  /**
2397
2397
  * Set/get option
@@ -2399,12 +2399,12 @@ v.prototype = /** @lends Sortable.prototype */
2399
2399
  * @param {*} [value]
2400
2400
  * @returns {*}
2401
2401
  */
2402
- option: function(t, n) {
2402
+ option: function(t, e) {
2403
2403
  var i = this.options;
2404
- if (n === void 0)
2404
+ if (e === void 0)
2405
2405
  return i[t];
2406
- var o = Ee.modifyOption(this, t, n);
2407
- typeof o < "u" ? i[t] = o : i[t] = n, t === "group" && no(i);
2406
+ var o = Ee.modifyOption(this, t, e);
2407
+ typeof o < "u" ? i[t] = o : i[t] = e, t === "group" && no(i);
2408
2408
  },
2409
2409
  /**
2410
2410
  * Destroy
@@ -2412,9 +2412,9 @@ v.prototype = /** @lends Sortable.prototype */
2412
2412
  destroy: function() {
2413
2413
  W("destroy", this);
2414
2414
  var t = this.el;
2415
- t[tt] = 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) {
2416
- n.removeAttribute("draggable");
2417
- }), this._onDrop(), this._disableDelayedDragEvents(), ke.splice(ke.indexOf(this.el), 1), this.el = t = null;
2415
+ t[tt] = 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(e) {
2416
+ e.removeAttribute("draggable");
2417
+ }), this._onDrop(), this._disableDelayedDragEvents(), Ue.splice(Ue.indexOf(this.el), 1), this.el = t = null;
2418
2418
  },
2419
2419
  _hideClone: function() {
2420
2420
  if (!xt) {
@@ -2435,74 +2435,74 @@ v.prototype = /** @lends Sortable.prototype */
2435
2435
  }
2436
2436
  }
2437
2437
  };
2438
- function cs(e) {
2439
- e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
2438
+ function ds(n) {
2439
+ n.dataTransfer && (n.dataTransfer.dropEffect = "move"), n.cancelable && n.preventDefault();
2440
2440
  }
2441
- function Ae(e, t, n, i, o, r, s, a) {
2442
- var l, u = e[tt], c = u.options.onMove, d;
2441
+ function Ae(n, t, e, i, o, r, s, a) {
2442
+ var l, u = n[tt], d = u.options.onMove, c;
2443
2443
  return window.CustomEvent && !yt && !we ? l = new CustomEvent("move", {
2444
2444
  bubbles: !0,
2445
2445
  cancelable: !0
2446
- }) : (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 || I(t), l.willInsertAfter = a, l.originalEvent = s, e.dispatchEvent(l), c && (d = c.call(u, l, s)), d;
2446
+ }) : (l = document.createEvent("Event"), l.initEvent("move", !0, !0)), l.to = t, l.from = n, l.dragged = e, l.draggedRect = i, l.related = o || t, l.relatedRect = r || I(t), l.willInsertAfter = a, l.originalEvent = s, n.dispatchEvent(l), d && (c = d.call(u, l, s)), c;
2447
2447
  }
2448
- function Pn(e) {
2449
- e.draggable = !1;
2448
+ function Pn(n) {
2449
+ n.draggable = !1;
2450
2450
  }
2451
2451
  function hs() {
2452
2452
  In = !1;
2453
2453
  }
2454
- function ps(e, t, n) {
2455
- var i = I(Zt(n.el, 0, n.options, !0)), o = Qi(n.el, n.options, w), r = 10;
2456
- 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;
2454
+ function ps(n, t, e) {
2455
+ var i = I(Zt(e.el, 0, e.options, !0)), o = Qi(e.el, e.options, w), r = 10;
2456
+ return t ? n.clientX < o.left - r || n.clientY < i.top && n.clientX < i.right : n.clientY < o.top - r || n.clientY < i.bottom && n.clientX < i.left;
2457
2457
  }
2458
- function fs(e, t, n) {
2459
- var i = I(Wn(n.el, n.options.draggable)), o = Qi(n.el, n.options, w), r = 10;
2460
- 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;
2458
+ function fs(n, t, e) {
2459
+ var i = I(Wn(e.el, e.options.draggable)), o = Qi(e.el, e.options, w), r = 10;
2460
+ return t ? n.clientX > o.right + r || n.clientY > i.bottom && n.clientX > i.left : n.clientY > o.bottom + r || n.clientX > i.right && n.clientY > i.top;
2461
2461
  }
2462
- function gs(e, t, n, i, o, r, s, a) {
2463
- 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;
2462
+ function gs(n, t, e, i, o, r, s, a) {
2463
+ var l = i ? n.clientY : n.clientX, u = i ? e.height : e.width, d = i ? e.top : e.left, c = i ? e.bottom : e.right, p = !1;
2464
2464
  if (!s) {
2465
2465
  if (a && Re < u * o) {
2466
- if (!ue && (le === 1 ? l > c + u * r / 2 : l < d - u * r / 2) && (ue = !0), ue)
2466
+ if (!ue && (le === 1 ? l > d + u * r / 2 : l < c - u * r / 2) && (ue = !0), ue)
2467
2467
  p = !0;
2468
- else if (le === 1 ? l < c + Re : l > d - Re)
2468
+ else if (le === 1 ? l < d + Re : l > c - Re)
2469
2469
  return -le;
2470
- } else if (l > c + u * (1 - o) / 2 && l < d - u * (1 - o) / 2)
2470
+ } else if (l > d + u * (1 - o) / 2 && l < c - u * (1 - o) / 2)
2471
2471
  return ms(t);
2472
2472
  }
2473
- return p = p || s, p && (l < c + u * r / 2 || l > d - u * r / 2) ? l > c + u / 2 ? 1 : -1 : 0;
2473
+ return p = p || s, p && (l < d + u * r / 2 || l > c - u * r / 2) ? l > d + u / 2 ? 1 : -1 : 0;
2474
2474
  }
2475
- function ms(e) {
2476
- return nt(h) < nt(e) ? 1 : -1;
2475
+ function ms(n) {
2476
+ return nt(h) < nt(n) ? 1 : -1;
2477
2477
  }
2478
- function ys(e) {
2479
- for (var t = e.tagName + e.className + e.src + e.href + e.textContent, n = t.length, i = 0; n--; )
2480
- i += t.charCodeAt(n);
2478
+ function ys(n) {
2479
+ for (var t = n.tagName + n.className + n.src + n.href + n.textContent, e = t.length, i = 0; e--; )
2480
+ i += t.charCodeAt(e);
2481
2481
  return i.toString(36);
2482
2482
  }
2483
- function bs(e) {
2483
+ function bs(n) {
2484
2484
  Fe.length = 0;
2485
- for (var t = e.getElementsByTagName("input"), n = t.length; n--; ) {
2486
- var i = t[n];
2485
+ for (var t = n.getElementsByTagName("input"), e = t.length; e--; ) {
2486
+ var i = t[e];
2487
2487
  i.checked && Fe.push(i);
2488
2488
  }
2489
2489
  }
2490
- function De(e) {
2491
- return setTimeout(e, 0);
2490
+ function De(n) {
2491
+ return setTimeout(n, 0);
2492
2492
  }
2493
- function Hn(e) {
2494
- return clearTimeout(e);
2493
+ function Hn(n) {
2494
+ return clearTimeout(n);
2495
2495
  }
2496
- gn && A(document, "touchmove", function(e) {
2497
- (v.active || Vt) && e.cancelable && e.preventDefault();
2496
+ gn && A(document, "touchmove", function(n) {
2497
+ (v.active || Vt) && n.cancelable && n.preventDefault();
2498
2498
  });
2499
2499
  v.utils = {
2500
2500
  on: A,
2501
2501
  off: S,
2502
2502
  css: b,
2503
2503
  find: Wi,
2504
- is: function(t, n) {
2505
- return !!lt(t, n, t, !1);
2504
+ is: function(t, e) {
2505
+ return !!lt(t, e, t, !1);
2506
2506
  },
2507
2507
  extend: ts,
2508
2508
  throttle: Gi,
@@ -2515,25 +2515,25 @@ v.utils = {
2515
2515
  detectDirection: eo,
2516
2516
  getChild: Zt
2517
2517
  };
2518
- v.get = function(e) {
2519
- return e[tt];
2518
+ v.get = function(n) {
2519
+ return n[tt];
2520
2520
  };
2521
2521
  v.mount = function() {
2522
- for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
2523
- t[n] = arguments[n];
2522
+ for (var n = arguments.length, t = new Array(n), e = 0; e < n; e++)
2523
+ t[e] = arguments[e];
2524
2524
  t[0].constructor === Array && (t = t[0]), t.forEach(function(i) {
2525
2525
  if (!i.prototype || !i.prototype.constructor)
2526
2526
  throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(i));
2527
- i.utils && (v.utils = dt(dt({}, v.utils), i.utils)), Ee.mount(i);
2527
+ i.utils && (v.utils = ct(ct({}, v.utils), i.utils)), Ee.mount(i);
2528
2528
  });
2529
2529
  };
2530
- v.create = function(e, t) {
2531
- return new v(e, t);
2530
+ v.create = function(n, t) {
2531
+ return new v(n, t);
2532
2532
  };
2533
2533
  v.version = Jr;
2534
2534
  var M = [], ee, Bn, Vn = !1, On, Rn, je, ne;
2535
2535
  function vs() {
2536
- function e() {
2536
+ function n() {
2537
2537
  this.defaults = {
2538
2538
  scroll: !0,
2539
2539
  forceAutoScrollFallback: !1,
@@ -2544,13 +2544,13 @@ function vs() {
2544
2544
  for (var t in this)
2545
2545
  t.charAt(0) === "_" && typeof this[t] == "function" && (this[t] = this[t].bind(this));
2546
2546
  }
2547
- return e.prototype = {
2548
- dragStarted: function(n) {
2549
- var i = n.originalEvent;
2547
+ return n.prototype = {
2548
+ dragStarted: function(e) {
2549
+ var i = e.originalEvent;
2550
2550
  this.sortable.nativeDraggable ? A(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? A(document, "pointermove", this._handleFallbackAutoScroll) : i.touches ? A(document, "touchmove", this._handleFallbackAutoScroll) : A(document, "mousemove", this._handleFallbackAutoScroll);
2551
2551
  },
2552
- dragOverCompleted: function(n) {
2553
- var i = n.originalEvent;
2552
+ dragOverCompleted: function(e) {
2553
+ var i = e.originalEvent;
2554
2554
  !this.options.dragOverBubble && !i.rootEl && this._handleAutoScroll(i);
2555
2555
  },
2556
2556
  drop: function() {
@@ -2559,68 +2559,68 @@ function vs() {
2559
2559
  nulling: function() {
2560
2560
  je = Bn = ee = Vn = ne = On = Rn = null, M.length = 0;
2561
2561
  },
2562
- _handleFallbackAutoScroll: function(n) {
2563
- this._handleAutoScroll(n, !0);
2562
+ _handleFallbackAutoScroll: function(e) {
2563
+ this._handleAutoScroll(e, !0);
2564
2564
  },
2565
- _handleAutoScroll: function(n, i) {
2566
- var o = this, r = (n.touches ? n.touches[0] : n).clientX, s = (n.touches ? n.touches[0] : n).clientY, a = document.elementFromPoint(r, s);
2567
- if (je = n, i || this.options.forceAutoScrollFallback || we || yt || re) {
2568
- Dn(n, this.options, a, i);
2565
+ _handleAutoScroll: function(e, i) {
2566
+ var o = this, r = (e.touches ? e.touches[0] : e).clientX, s = (e.touches ? e.touches[0] : e).clientY, a = document.elementFromPoint(r, s);
2567
+ if (je = e, i || this.options.forceAutoScrollFallback || we || yt || re) {
2568
+ Dn(e, this.options, a, i);
2569
2569
  var l = St(a, !0);
2570
2570
  Vn && (!ne || r !== On || s !== Rn) && (ne && wi(), ne = setInterval(function() {
2571
2571
  var u = St(document.elementFromPoint(r, s), !0);
2572
- u !== l && (l = u, Ne()), Dn(n, o.options, u, i);
2572
+ u !== l && (l = u, Ne()), Dn(e, o.options, u, i);
2573
2573
  }, 10), On = r, Rn = s);
2574
2574
  } else {
2575
2575
  if (!this.options.bubbleScroll || St(a, !0) === ut()) {
2576
2576
  Ne();
2577
2577
  return;
2578
2578
  }
2579
- Dn(n, this.options, St(a, !1), !1);
2579
+ Dn(e, this.options, St(a, !1), !1);
2580
2580
  }
2581
2581
  }
2582
- }, mt(e, {
2582
+ }, mt(n, {
2583
2583
  pluginName: "scroll",
2584
2584
  initializeByDefault: !0
2585
2585
  });
2586
2586
  }
2587
2587
  function Ne() {
2588
- M.forEach(function(e) {
2589
- clearInterval(e.pid);
2588
+ M.forEach(function(n) {
2589
+ clearInterval(n.pid);
2590
2590
  }), M = [];
2591
2591
  }
2592
2592
  function wi() {
2593
2593
  clearInterval(ne);
2594
2594
  }
2595
- var Dn = Gi(function(e, t, n, i) {
2595
+ var Dn = Gi(function(n, t, e, i) {
2596
2596
  if (t.scroll) {
2597
- var o = (e.touches ? e.touches[0] : e).clientX, r = (e.touches ? e.touches[0] : e).clientY, s = t.scrollSensitivity, a = t.scrollSpeed, l = ut(), u = !1, c;
2598
- Bn !== n && (Bn = n, Ne(), ee = t.scroll, c = t.scrollFn, ee === !0 && (ee = St(n, !0)));
2599
- var d = 0, p = ee;
2597
+ var o = (n.touches ? n.touches[0] : n).clientX, r = (n.touches ? n.touches[0] : n).clientY, s = t.scrollSensitivity, a = t.scrollSpeed, l = ut(), u = !1, d;
2598
+ Bn !== e && (Bn = e, Ne(), ee = t.scroll, d = t.scrollFn, ee === !0 && (ee = St(e, !0)));
2599
+ var c = 0, p = ee;
2600
2600
  do {
2601
2601
  var f = p, g = I(f), y = g.top, P = g.bottom, L = g.left, B = g.right, J = g.width, Y = g.height, rt = void 0, C = void 0, z = f.scrollWidth, st = f.scrollHeight, Z = b(f), Yt = f.scrollLeft, bt = f.scrollTop;
2602
2602
  f === l ? (rt = J < z && (Z.overflowX === "auto" || Z.overflowX === "scroll" || Z.overflowX === "visible"), C = Y < st && (Z.overflowY === "auto" || Z.overflowY === "scroll" || Z.overflowY === "visible")) : (rt = J < z && (Z.overflowX === "auto" || Z.overflowX === "scroll"), C = Y < st && (Z.overflowY === "auto" || Z.overflowY === "scroll"));
2603
- var qt = rt && (Math.abs(B - o) <= s && Yt + J < z) - (Math.abs(L - o) <= s && !!Yt), ct = C && (Math.abs(P - r) <= s && bt + Y < st) - (Math.abs(y - r) <= s && !!bt);
2604
- if (!M[d])
2605
- for (var _t = 0; _t <= d; _t++)
2603
+ var qt = rt && (Math.abs(B - o) <= s && Yt + J < z) - (Math.abs(L - o) <= s && !!Yt), dt = C && (Math.abs(P - r) <= s && bt + Y < st) - (Math.abs(y - r) <= s && !!bt);
2604
+ if (!M[c])
2605
+ for (var _t = 0; _t <= c; _t++)
2606
2606
  M[_t] || (M[_t] = {});
2607
- (M[d].vx != qt || M[d].vy != ct || M[d].el !== f) && (M[d].el = f, M[d].vx = qt, M[d].vy = ct, clearInterval(M[d].pid), (qt != 0 || ct != 0) && (u = !0, M[d].pid = setInterval((function() {
2607
+ (M[c].vx != qt || M[c].vy != dt || M[c].el !== f) && (M[c].el = f, M[c].vx = qt, M[c].vy = dt, clearInterval(M[c].pid), (qt != 0 || dt != 0) && (u = !0, M[c].pid = setInterval((function() {
2608
2608
  i && this.layer === 0 && v.active._onTouchMove(je);
2609
2609
  var Wt = M[this.layer].vy ? M[this.layer].vy * a : 0, vt = M[this.layer].vx ? M[this.layer].vx * a : 0;
2610
- typeof c == "function" && c.call(v.dragged.parentNode[tt], vt, Wt, e, je, M[this.layer].el) !== "continue" || Ji(M[this.layer].el, vt, Wt);
2610
+ typeof d == "function" && d.call(v.dragged.parentNode[tt], vt, Wt, n, je, M[this.layer].el) !== "continue" || Ji(M[this.layer].el, vt, Wt);
2611
2611
  }).bind({
2612
- layer: d
2613
- }), 24))), d++;
2612
+ layer: c
2613
+ }), 24))), c++;
2614
2614
  } while (t.bubbleScroll && p !== l && (p = St(p, !1)));
2615
2615
  Vn = u;
2616
2616
  }
2617
2617
  }, 30), ro = function(t) {
2618
- var n = t.originalEvent, i = t.putSortable, o = t.dragEl, r = t.activeSortable, s = t.dispatchSortableEvent, a = t.hideGhostForTarget, l = t.unhideGhostForTarget;
2619
- if (n) {
2618
+ var e = t.originalEvent, i = t.putSortable, o = t.dragEl, r = t.activeSortable, s = t.dispatchSortableEvent, a = t.hideGhostForTarget, l = t.unhideGhostForTarget;
2619
+ if (e) {
2620
2620
  var u = i || r;
2621
2621
  a();
2622
- var c = n.changedTouches && n.changedTouches.length ? n.changedTouches[0] : n, d = document.elementFromPoint(c.clientX, c.clientY);
2623
- l(), u && !u.el.contains(d) && (s("spill"), this.onSpill({
2622
+ var d = e.changedTouches && e.changedTouches.length ? e.changedTouches[0] : e, c = document.elementFromPoint(d.clientX, d.clientY);
2623
+ l(), u && !u.el.contains(c) && (s("spill"), this.onSpill({
2624
2624
  dragEl: o,
2625
2625
  putSortable: i
2626
2626
  }));
@@ -2631,14 +2631,14 @@ function Gn() {
2631
2631
  Gn.prototype = {
2632
2632
  startIndex: null,
2633
2633
  dragStart: function(t) {
2634
- var n = t.oldDraggableIndex;
2635
- this.startIndex = n;
2634
+ var e = t.oldDraggableIndex;
2635
+ this.startIndex = e;
2636
2636
  },
2637
2637
  onSpill: function(t) {
2638
- var n = t.dragEl, i = t.putSortable;
2638
+ var e = t.dragEl, i = t.putSortable;
2639
2639
  this.sortable.captureAnimationState(), i && i.captureAnimationState();
2640
2640
  var o = Zt(this.sortable.el, this.startIndex, this.options);
2641
- o ? this.sortable.el.insertBefore(n, o) : this.sortable.el.appendChild(n), this.sortable.animateAll(), i && i.animateAll();
2641
+ o ? this.sortable.el.insertBefore(e, o) : this.sortable.el.appendChild(e), this.sortable.animateAll(), i && i.animateAll();
2642
2642
  },
2643
2643
  drop: ro
2644
2644
  };
@@ -2649,8 +2649,8 @@ function Jn() {
2649
2649
  }
2650
2650
  Jn.prototype = {
2651
2651
  onSpill: function(t) {
2652
- var n = t.dragEl, i = t.putSortable, o = i || this.sortable;
2653
- o.captureAnimationState(), n.parentNode && n.parentNode.removeChild(n), o.animateAll();
2652
+ var e = t.dragEl, i = t.putSortable, o = i || this.sortable;
2653
+ o.captureAnimationState(), e.parentNode && e.parentNode.removeChild(e), o.animateAll();
2654
2654
  },
2655
2655
  drop: ro
2656
2656
  };
@@ -2659,40 +2659,40 @@ mt(Jn, {
2659
2659
  });
2660
2660
  v.mount(new vs());
2661
2661
  v.mount(Jn, Gn);
2662
- const ws = (e) => {
2663
- const t = e.item;
2664
- let n = Array.prototype.slice.call(t.parentNode.childNodes);
2665
- return n = n.filter(
2662
+ const ws = (n) => {
2663
+ const t = n.item;
2664
+ let e = Array.prototype.slice.call(t.parentNode.childNodes);
2665
+ return e = e.filter(
2666
2666
  (i) => i.nodeType != Node.ELEMENT_NODE || !i.classList.contains("sortable-fallback")
2667
- ), n;
2668
- }, Es = (e, t, n, i, o, r) => {
2669
- const a = e.item.parentNode;
2670
- for (const y of n)
2667
+ ), e;
2668
+ }, Es = (n, t, e, i, o, r) => {
2669
+ const a = n.item.parentNode;
2670
+ for (const y of e)
2671
2671
  a.appendChild(y);
2672
- if (e.oldIndex == e.newIndex)
2672
+ if (n.oldIndex == n.newIndex)
2673
2673
  return;
2674
2674
  const l = i.getArray(), u = (
2675
2675
  /** @type {Element & {layer: import("ol/layer").Layer}} */
2676
- e.item.querySelector("eox-layercontrol-layer").layer.get(o)
2677
- ), c = l.find((y) => y.get(o) === u), d = r.dataset.layer, p = l.find(
2678
- (y) => y.get(o) == d
2676
+ n.item.querySelector("eox-layercontrol-layer").layer.get(o)
2677
+ ), d = l.find((y) => y.get(o) === u), c = r.dataset.layer, p = l.find(
2678
+ (y) => y.get(o) == c
2679
2679
  );
2680
2680
  let f, g;
2681
2681
  for (f = 0; f < l.length; f++)
2682
- if (l[f] == c) {
2682
+ if (l[f] == d) {
2683
2683
  i.removeAt(f);
2684
2684
  break;
2685
2685
  }
2686
2686
  for (g = 0; g < l.length; g++)
2687
2687
  if (l[g] === p) {
2688
- f > g ? i.insertAt(g, c) : i.insertAt(g + 1, c);
2688
+ f > g ? i.insertAt(g, d) : i.insertAt(g + 1, d);
2689
2689
  break;
2690
2690
  }
2691
2691
  t.requestUpdate();
2692
2692
  };
2693
- function xs(e, t, n, i) {
2693
+ function xs(n, t, e, i) {
2694
2694
  let o = [], r = null;
2695
- e._sortable = v.create(e, {
2695
+ n._sortable = v.create(n, {
2696
2696
  handle: ".drag-handle",
2697
2697
  filter: ".drag-handle.disabled",
2698
2698
  swapThreshold: 0.5,
@@ -2702,18 +2702,18 @@ function xs(e, t, n, i) {
2702
2702
  onMove: (s) => {
2703
2703
  r = s.related;
2704
2704
  },
2705
- onEnd: (s) => Es(s, i, o, t, n, r)
2705
+ onEnd: (s) => Es(s, i, o, t, e, r)
2706
2706
  });
2707
2707
  }
2708
- function Ss(e, t, n, i) {
2709
- const o = e.getArray();
2708
+ function Ss(n, t, e, i) {
2709
+ const o = n.getArray();
2710
2710
  let r = !1;
2711
2711
  o.forEach((s) => {
2712
2712
  const a = s.ol_uid;
2713
- s.get(t) || (s.set(t, a), r = !0), s.get(n) || (s.set(n, `layer ${a}`), r = !0), r && i.requestUpdate();
2713
+ s.get(t) || (s.set(t, a), r = !0), s.get(e) || (s.set(e, `layer ${a}`), r = !0), r && i.requestUpdate();
2714
2714
  });
2715
2715
  }
2716
- function Kn(e, t, n) {
2716
+ function Kn(n, t, e) {
2717
2717
  let i = [];
2718
2718
  const o = (r, s, a) => {
2719
2719
  i = [
@@ -2733,67 +2733,67 @@ function Kn(e, t, n) {
2733
2733
  )
2734
2734
  ), i;
2735
2735
  };
2736
- return o(e, t, n), i;
2736
+ return o(n, t, e), i;
2737
2737
  }
2738
- function $s(e, t, n) {
2739
- if (!e || !t)
2738
+ function $s(n, t, e) {
2739
+ if (!n || !t)
2740
2740
  return !1;
2741
- if (!so(e, n))
2741
+ if (!so(n, e))
2742
2742
  return !0;
2743
- const i = e.get("minZoom"), o = e.get("maxZoom"), r = t.getView().getZoom();
2743
+ const i = n.get("minZoom"), o = n.get("maxZoom"), r = t.getView().getZoom();
2744
2744
  return r > i && r < o;
2745
2745
  }
2746
- function so(e, t) {
2747
- const n = e.get("minZoom"), i = e.get("maxZoom");
2748
- return !!(t && (n !== -1 / 0 || i !== 1 / 0));
2746
+ function so(n, t) {
2747
+ const e = n.get("minZoom"), i = n.get("maxZoom");
2748
+ return !!(t && (e !== -1 / 0 || i !== 1 / 0));
2749
2749
  }
2750
- function _s(e, t) {
2750
+ function _s(n, t) {
2751
2751
  var o, r, s;
2752
- 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(
2752
+ return !n || !t ? void 0 : n.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(
2753
2753
  // @ts-ignore
2754
- e.getSource ? (r = e.getSource()) == null ? void 0 : r.ol_uid : void 0
2755
- )) ? "draw" : e.declutter_ !== void 0 ? "vector" : "raster";
2754
+ n.getSource ? (r = n.getSource()) == null ? void 0 : r.ol_uid : void 0
2755
+ )) ? "draw" : n.declutter_ !== void 0 ? "vector" : "raster";
2756
2756
  }
2757
- function ao(e, t) {
2757
+ function ao(n, t) {
2758
2758
  var i;
2759
- let n = {};
2760
- for (const o in e) {
2761
- const r = e[o].type;
2759
+ let e = {};
2760
+ for (const o in n) {
2761
+ const r = n[o].type;
2762
2762
  if (r && r !== "object")
2763
- n[o] = r === "number" ? Number(t[o]) : t[o];
2764
- else if (typeof e[o] == "object" && ((i = e[o]) != null && i.properties)) {
2763
+ e[o] = r === "number" ? Number(t[o]) : t[o];
2764
+ else if (typeof n[o] == "object" && ((i = n[o]) != null && i.properties)) {
2765
2765
  const s = ao(
2766
- e[o].properties,
2766
+ n[o].properties,
2767
2767
  t
2768
2768
  );
2769
- Object.keys(s).length > 0 && (n[o] = s);
2769
+ Object.keys(s).length > 0 && (e[o] = s);
2770
2770
  }
2771
2771
  }
2772
- return n;
2772
+ return e;
2773
2773
  }
2774
- function As(e, t) {
2774
+ function As(n, t) {
2775
2775
  var r;
2776
- if (!t || !e.getSource().getTileUrlFunction())
2776
+ if (!t || !n.getSource().getTileUrlFunction())
2777
2777
  return null;
2778
- const n = new URL(e.getSource().getTileUrlFunction()([0, 0, 0])), i = Object.fromEntries(n.searchParams.entries()), o = ao(
2778
+ const e = new URL(n.getSource().getTileUrlFunction()([0, 0, 0])), i = Object.fromEntries(e.searchParams.entries()), o = ao(
2779
2779
  ((r = t.schema) == null ? void 0 : r.properties) || t.schema,
2780
2780
  i
2781
2781
  );
2782
2782
  return Object.keys(o).length ? o : null;
2783
2783
  }
2784
- const Cs = (e, t) => e == null ? void 0 : e.filter(
2785
- (n) => ["remove", "sort"].filter((i) => t != null && t.get("layerControlDisable") ? i !== "sort" : !0).includes(n)
2786
- ), Ts = (e, t) => e == null ? void 0 : e.filter((n) => {
2784
+ const Cs = (n, t) => n == null ? void 0 : n.filter(
2785
+ (e) => ["remove", "sort"].filter((i) => t != null && t.get("layerControlDisable") ? i !== "sort" : !0).includes(e)
2786
+ ), Ts = (n, t) => n == null ? void 0 : n.filter((e) => {
2787
2787
  let i = !0;
2788
- return ["remove", "sort"].includes(n) && (i = !1), n === "info" && (i = t.get("description")), n === "config" && (i = t.get("layerConfig")), i;
2789
- }), Ps = (e, t) => x`
2790
- <button slot="${e}-icon" class="icon">${t ? e : T}</button>
2791
- `, Os = (e) => x`
2788
+ return ["remove", "sort"].includes(e) && (i = !1), e === "info" && (i = t.get("description")), e === "config" && (i = t.get("layerConfig")), i;
2789
+ }), Ps = (n, t) => x`
2790
+ <button slot="${n}-icon" class="icon">${t ? n : T}</button>
2791
+ `, Os = (n) => x`
2792
2792
  <button
2793
2793
  class="remove-icon icon"
2794
2794
  @click=${() => {
2795
- const { layer: t } = e;
2796
- t == null || t.set("layerControlOptional", !0), t == null || t.setVisible(!1), e.dispatchEvent(
2795
+ const { layer: t } = n;
2796
+ t == null || t.set("layerControlOptional", !0), t == null || t.setVisible(!1), n.dispatchEvent(
2797
2797
  new CustomEvent("changed", {
2798
2798
  detail: t,
2799
2799
  bubbles: !0
@@ -2801,16 +2801,16 @@ const Cs = (e, t) => e == null ? void 0 : e.filter(
2801
2801
  );
2802
2802
  }}
2803
2803
  >
2804
- ${e.unstyled ? "x" : T}
2804
+ ${n.unstyled ? "x" : T}
2805
2805
  </button>
2806
- `, Rs = (e) => x`
2806
+ `, Rs = (n) => x`
2807
2807
  <span class="button sort-icon icon drag-handle">
2808
- ${e ? "═" : T}
2808
+ ${n ? "═" : T}
2809
2809
  </span>
2810
- `, lo = (e) => {
2811
- var n;
2810
+ `, lo = (n) => {
2811
+ var e;
2812
2812
  const t = ["layerControlHide", "layerControlOptional"];
2813
- return (n = e == null ? void 0 : e.getArray()) == null ? void 0 : n.filter((i) => t.every((o) => !i.get(o)));
2813
+ return (e = n == null ? void 0 : n.getArray()) == null ? void 0 : e.filter((i) => t.every((o) => !i.get(o)));
2814
2814
  };
2815
2815
  /**
2816
2816
  * @license
@@ -2818,28 +2818,28 @@ const Cs = (e, t) => e == null ? void 0 : e.filter(
2818
2818
  * SPDX-License-Identifier: BSD-3-Clause
2819
2819
  */
2820
2820
  const uo = Zn(class extends Xn {
2821
- constructor(e) {
2822
- if (super(e), e.type !== wt.PROPERTY && e.type !== wt.ATTRIBUTE && e.type !== wt.BOOLEAN_ATTRIBUTE)
2821
+ constructor(n) {
2822
+ if (super(n), n.type !== wt.PROPERTY && n.type !== wt.ATTRIBUTE && n.type !== wt.BOOLEAN_ATTRIBUTE)
2823
2823
  throw Error("The `live` directive is not allowed on child or event bindings");
2824
- if (!Wo(e))
2824
+ if (!Wo(n))
2825
2825
  throw Error("`live` bindings can only contain a single expression");
2826
2826
  }
2827
- render(e) {
2828
- return e;
2827
+ render(n) {
2828
+ return n;
2829
2829
  }
2830
- update(e, [t]) {
2830
+ update(n, [t]) {
2831
2831
  if (t === it || t === T)
2832
2832
  return t;
2833
- const n = e.element, i = e.name;
2834
- if (e.type === wt.PROPERTY) {
2835
- if (t === n[i])
2833
+ const e = n.element, i = n.name;
2834
+ if (n.type === wt.PROPERTY) {
2835
+ if (t === e[i])
2836
2836
  return it;
2837
- } else if (e.type === wt.BOOLEAN_ATTRIBUTE) {
2838
- if (!!t === n.hasAttribute(i))
2837
+ } else if (n.type === wt.BOOLEAN_ATTRIBUTE) {
2838
+ if (!!t === e.hasAttribute(i))
2839
2839
  return it;
2840
- } else if (e.type === wt.ATTRIBUTE && n.getAttribute(i) === t + "")
2840
+ } else if (n.type === wt.ATTRIBUTE && e.getAttribute(i) === t + "")
2841
2841
  return it;
2842
- return Bi(e), t;
2842
+ return Bi(n), t;
2843
2843
  }
2844
2844
  });
2845
2845
  /**
@@ -2862,8 +2862,8 @@ class Ln extends Xn {
2862
2862
  if (t === this.it)
2863
2863
  return this._t;
2864
2864
  this.it = t;
2865
- const n = [t];
2866
- return n.raw = n, this._t = { _$litType$: this.constructor.resultType, strings: n, values: [] };
2865
+ const e = [t];
2866
+ return e.raw = e, this._t = { _$litType$: this.constructor.resultType, strings: e, values: [] };
2867
2867
  }
2868
2868
  }
2869
2869
  Ln.directiveName = "unsafeHTML", Ln.resultType = 1;
@@ -2873,45 +2873,45 @@ const Ds = Zn(Ln);
2873
2873
  * Copyright 2021 Google LLC
2874
2874
  * SPDX-License-Identifier: BSD-3-Clause
2875
2875
  */
2876
- function* Me(e, t) {
2877
- if (e !== void 0) {
2878
- let n = 0;
2879
- for (const i of e)
2880
- yield t(i, n++);
2876
+ function* Me(n, t) {
2877
+ if (n !== void 0) {
2878
+ let e = 0;
2879
+ for (const i of n)
2880
+ yield t(i, e++);
2881
2881
  }
2882
2882
  }
2883
- const Ns = (e, t, n) => {
2883
+ const Ns = (n, t, e) => {
2884
2884
  let i = t;
2885
- return n.layer.getSource().getTileUrlFunction() && (i || (i = n.layer.getSource().getTileUrlFunction()), n.layer.getSource().setTileUrlFunction(
2886
- (...o) => Yr(i(...o), e)
2887
- ), n.layer.getSource().setKey(/* @__PURE__ */ new Date())), i;
2885
+ return e.layer.getSource().getTileUrlFunction() && (i || (i = e.layer.getSource().getTileUrlFunction()), e.layer.getSource().setTileUrlFunction(
2886
+ (...o) => Yr(i(...o), n)
2887
+ ), e.layer.getSource().setKey(/* @__PURE__ */ new Date())), i;
2888
2888
  };
2889
2889
  var Ce = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
2890
- function Ms(e) {
2891
- return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
2890
+ function Ms(n) {
2891
+ return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
2892
2892
  }
2893
- var Is = "Expected a function", Ei = NaN, Hs = "[object Symbol]", Bs = /^\s+|\s+$/g, Vs = /^[-+]0x[0-9a-f]+$/i, Ls = /^0b[01]+$/i, Us = /^0o[0-7]+$/i, ks = parseInt, Fs = typeof Ce == "object" && Ce && Ce.Object === Object && Ce, js = typeof self == "object" && self && self.Object === Object && self, zs = Fs || js || Function("return this")(), Zs = Object.prototype, Xs = Zs.toString, Ys = Math.max, qs = Math.min, Nn = function() {
2893
+ var Is = "Expected a function", Ei = NaN, Hs = "[object Symbol]", Bs = /^\s+|\s+$/g, Vs = /^[-+]0x[0-9a-f]+$/i, Ls = /^0b[01]+$/i, ks = /^0o[0-7]+$/i, Us = parseInt, Fs = typeof Ce == "object" && Ce && Ce.Object === Object && Ce, js = typeof self == "object" && self && self.Object === Object && self, zs = Fs || js || Function("return this")(), Zs = Object.prototype, Xs = Zs.toString, Ys = Math.max, qs = Math.min, Nn = function() {
2894
2894
  return zs.Date.now();
2895
2895
  };
2896
- function Ws(e, t, n) {
2897
- var i, o, r, s, a, l, u = 0, c = !1, d = !1, p = !0;
2898
- if (typeof e != "function")
2896
+ function Ws(n, t, e) {
2897
+ var i, o, r, s, a, l, u = 0, d = !1, c = !1, p = !0;
2898
+ if (typeof n != "function")
2899
2899
  throw new TypeError(Is);
2900
- t = xi(t) || 0, Un(n) && (c = !!n.leading, d = "maxWait" in n, r = d ? Ys(xi(n.maxWait) || 0, t) : r, p = "trailing" in n ? !!n.trailing : p);
2900
+ t = xi(t) || 0, kn(e) && (d = !!e.leading, c = "maxWait" in e, r = c ? Ys(xi(e.maxWait) || 0, t) : r, p = "trailing" in e ? !!e.trailing : p);
2901
2901
  function f(C) {
2902
2902
  var z = i, st = o;
2903
- return i = o = void 0, u = C, s = e.apply(st, z), s;
2903
+ return i = o = void 0, u = C, s = n.apply(st, z), s;
2904
2904
  }
2905
2905
  function g(C) {
2906
- return u = C, a = setTimeout(L, t), c ? f(C) : s;
2906
+ return u = C, a = setTimeout(L, t), d ? f(C) : s;
2907
2907
  }
2908
2908
  function y(C) {
2909
2909
  var z = C - l, st = C - u, Z = t - z;
2910
- return d ? qs(Z, r - st) : Z;
2910
+ return c ? qs(Z, r - st) : Z;
2911
2911
  }
2912
2912
  function P(C) {
2913
2913
  var z = C - l, st = C - u;
2914
- return l === void 0 || z >= t || z < 0 || d && st >= r;
2914
+ return l === void 0 || z >= t || z < 0 || c && st >= r;
2915
2915
  }
2916
2916
  function L() {
2917
2917
  var C = Nn();
@@ -2933,37 +2933,37 @@ function Ws(e, t, n) {
2933
2933
  if (i = arguments, o = this, l = C, z) {
2934
2934
  if (a === void 0)
2935
2935
  return g(l);
2936
- if (d)
2936
+ if (c)
2937
2937
  return a = setTimeout(L, t), f(l);
2938
2938
  }
2939
2939
  return a === void 0 && (a = setTimeout(L, t)), s;
2940
2940
  }
2941
2941
  return rt.cancel = J, rt.flush = Y, rt;
2942
2942
  }
2943
- function Un(e) {
2944
- var t = typeof e;
2945
- return !!e && (t == "object" || t == "function");
2943
+ function kn(n) {
2944
+ var t = typeof n;
2945
+ return !!n && (t == "object" || t == "function");
2946
2946
  }
2947
- function Gs(e) {
2948
- return !!e && typeof e == "object";
2947
+ function Gs(n) {
2948
+ return !!n && typeof n == "object";
2949
2949
  }
2950
- function Js(e) {
2951
- return typeof e == "symbol" || Gs(e) && Xs.call(e) == Hs;
2950
+ function Js(n) {
2951
+ return typeof n == "symbol" || Gs(n) && Xs.call(n) == Hs;
2952
2952
  }
2953
- function xi(e) {
2954
- if (typeof e == "number")
2955
- return e;
2956
- if (Js(e))
2953
+ function xi(n) {
2954
+ if (typeof n == "number")
2955
+ return n;
2956
+ if (Js(n))
2957
2957
  return Ei;
2958
- if (Un(e)) {
2959
- var t = typeof e.valueOf == "function" ? e.valueOf() : e;
2960
- e = Un(t) ? t + "" : t;
2958
+ if (kn(n)) {
2959
+ var t = typeof n.valueOf == "function" ? n.valueOf() : n;
2960
+ n = kn(t) ? t + "" : t;
2961
2961
  }
2962
- if (typeof e != "string")
2963
- return e === 0 ? e : +e;
2964
- e = e.replace(Bs, "");
2965
- var n = Ls.test(e);
2966
- return n || Us.test(e) ? ks(e.slice(2), n ? 2 : 8) : Vs.test(e) ? Ei : +e;
2962
+ if (typeof n != "string")
2963
+ return n === 0 ? n : +n;
2964
+ n = n.replace(Bs, "");
2965
+ var e = Ls.test(n);
2966
+ return e || ks.test(n) ? Us(n.slice(2), e ? 2 : 8) : Vs.test(n) ? Ei : +n;
2967
2967
  }
2968
2968
  var Ks = Ws;
2969
2969
  const co = /* @__PURE__ */ Ms(Ks);
@@ -2997,7 +2997,7 @@ class ho extends et {
2997
2997
  $(this, me, void 0);
2998
2998
  $(this, Ze, "");
2999
2999
  $(this, Xe, "");
3000
- this.layer = null, this.unstyled = !1, this.noShadow = !1, this.layerConfig = null, this.debouncedDataChange = co(U(this, ze, po), 1e3, {
3000
+ this.layer = null, this.unstyled = !1, this.noShadow = !1, this.layerConfig = null, this.debouncedDataChange = co(k(this, ze, po), 1e3, {
3001
3001
  leading: !0
3002
3002
  });
3003
3003
  }
@@ -3012,7 +3012,7 @@ class ho extends et {
3012
3012
  */
3013
3013
  render() {
3014
3014
  Jt(this, ge, As(this.layer, this.layerConfig)), customElements.get("eox-jsonform") || console.error("Please import @eox/jsonform in order to use layerconfig");
3015
- const n = {
3015
+ const e = {
3016
3016
  disable_edit_json: !0,
3017
3017
  disable_collapse: !0,
3018
3018
  disable_properties: !0
@@ -3029,7 +3029,7 @@ class ho extends et {
3029
3029
  <eox-jsonform
3030
3030
  .schema=${this.layerConfig.schema}
3031
3031
  .value=${R(this, ge)}
3032
- .options=${n}
3032
+ .options=${e}
3033
3033
  @change=${this.debouncedDataChange}
3034
3034
  ></eox-jsonform>
3035
3035
  `
@@ -3037,8 +3037,8 @@ class ho extends et {
3037
3037
  `;
3038
3038
  }
3039
3039
  }
3040
- fe = new WeakMap(), ge = new WeakMap(), me = new WeakMap(), ze = new WeakSet(), po = function(n) {
3041
- Jt(this, fe, n.detail), Jt(this, me, Ns(
3040
+ fe = new WeakMap(), ge = new WeakMap(), me = new WeakMap(), ze = new WeakSet(), po = function(e) {
3041
+ Jt(this, fe, e.detail), Jt(this, me, Ns(
3042
3042
  R(this, fe),
3043
3043
  R(this, me),
3044
3044
  this
@@ -3059,7 +3059,7 @@ class fo extends et {
3059
3059
  constructor() {
3060
3060
  super();
3061
3061
  /** @param {number} index */
3062
- $(this, ye, (n) => this.selectedTab === n && "highlighted");
3062
+ $(this, ye, (e) => this.selectedTab === e && "highlighted");
3063
3063
  $(this, Ye, `
3064
3064
  .tabbed figure {
3065
3065
  margin: 0;
@@ -3116,7 +3116,7 @@ class fo extends et {
3116
3116
  * It sets up navigation for switching between tabs and offers customizable icons for tabs and actions.
3117
3117
  */
3118
3118
  render() {
3119
- const n = this.tabs, i = this.actions, o = i.length + n.length > 1;
3119
+ const e = this.tabs, i = this.actions, o = i.length + e.length > 1;
3120
3120
  return x`
3121
3121
  <style>
3122
3122
  ${R(this, Ye)}
@@ -3131,7 +3131,7 @@ class fo extends et {
3131
3131
  <div>
3132
3132
  <!-- Labels for tabs -->
3133
3133
  ${Me(
3134
- n,
3134
+ e,
3135
3135
  (r, s) => x`
3136
3136
  <label
3137
3137
  class=${R(this, ye).call(this, s)}
@@ -3161,7 +3161,7 @@ class fo extends et {
3161
3161
  <figure>
3162
3162
  <!-- Content for each tab -->
3163
3163
  ${Me(
3164
- n,
3164
+ e,
3165
3165
  (r, s) => x`
3166
3166
  <div class="tab ${R(this, ye).call(this, s)}">
3167
3167
  <!-- Content slot for each tab -->
@@ -3229,6 +3229,11 @@ button[disabled],
3229
3229
  cursor: not-allowed;
3230
3230
  }
3231
3231
 
3232
+ button.block,
3233
+ .button.block {
3234
+ display: block;
3235
+ }
3236
+
3232
3237
  button.outline,
3233
3238
  .button.outline {
3234
3239
  background: transparent;
@@ -3259,6 +3264,11 @@ button.icon-text,
3259
3264
  text-indent: 26px;
3260
3265
  }
3261
3266
 
3267
+ button.icon-text.block,
3268
+ .button.icon-text.block {
3269
+ text-indent: 20px;
3270
+ }
3271
+
3262
3272
  button.icon:before, button.icon-text:before,
3263
3273
  .button.icon:before, .button.icon-text:before {
3264
3274
  position: absolute;
@@ -3266,6 +3276,11 @@ button.icon:before, button.icon-text:before,
3266
3276
  line-height: initial;
3267
3277
  }
3268
3278
 
3279
+ button.icon-text.block:before,
3280
+ .button.icon-text.block:before {
3281
+ text-indent: -54px;
3282
+ }
3283
+
3269
3284
  button.icon:before,
3270
3285
  .button.icon:before {
3271
3286
  width: 24px;
@@ -3436,7 +3451,7 @@ class mo extends et {
3436
3451
  * @param {string} tool - Tool parameter for Button generation.
3437
3452
  * @returns {import("lit").HTMLTemplateResult} - The generated Button element.
3438
3453
  */
3439
- H(this, "_button", (n) => Ps(n, this.unstyled));
3454
+ H(this, "_button", (e) => Ps(e, this.unstyled));
3440
3455
  $(this, We, "");
3441
3456
  $(this, Ge, `
3442
3457
  ${Qs}
@@ -3545,10 +3560,10 @@ class mo extends et {
3545
3560
  }
3546
3561
  render() {
3547
3562
  var l;
3548
- const n = Cs(this.tools, this.layer), i = Ts(this.tools, this.layer), o = this[`_${n == null ? void 0 : n[0]}Button`] ? (
3563
+ const e = Cs(this.tools, this.layer), i = Ts(this.tools, this.layer), o = this[`_${e == null ? void 0 : e[0]}Button`] ? (
3549
3564
  // @ts-ignore
3550
- this[`_${n == null ? void 0 : n[0]}Button`]()
3551
- ) : T, 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;
3565
+ this[`_${e == null ? void 0 : e[0]}Button`]()
3566
+ ) : T, r = ((l = this.tools) == null ? void 0 : l.length) === 1 ? `${this.tools[0]}-icon` : "", s = e == null ? void 0 : e.length, a = i == null ? void 0 : i.length;
3552
3567
  return x`
3553
3568
  <style>
3554
3569
  ${R(this, We)}
@@ -3576,12 +3591,12 @@ class mo extends et {
3576
3591
  </summary>
3577
3592
  <eox-layercontrol-tabs
3578
3593
  .noShadow=${!1}
3579
- .actions=${n}
3594
+ .actions=${e}
3580
3595
  .tabs=${i}
3581
3596
  .unstyled=${this.unstyled}
3582
3597
  >
3583
3598
  <!-- Rendering tabs and content -->
3584
- ${Me(i, (c) => this._button(c))}
3599
+ ${Me(i, (d) => this._button(d))}
3585
3600
 
3586
3601
  <div slot="info-content">
3587
3602
  ${Ds(this.layer.get("description"))}
@@ -3594,7 +3609,7 @@ class mo extends et {
3594
3609
  max="1"
3595
3610
  step="0.01"
3596
3611
  value=${uo((u = this.layer) == null ? void 0 : u.getOpacity())}
3597
- @input=${(c) => this.layer.setOpacity(parseFloat(c.target.value))}
3612
+ @input=${(d) => this.layer.setOpacity(parseFloat(d.target.value))}
3598
3613
  />
3599
3614
  </div>
3600
3615
  <div slot="config-content">
@@ -3636,31 +3651,31 @@ customElements.define(
3636
3651
  "eox-layercontrol-layer-tools",
3637
3652
  mo
3638
3653
  );
3639
- const na = (e) => {
3654
+ const na = (n) => {
3640
3655
  const t = () => {
3641
- const n = $s(
3642
- e.layer,
3643
- e.map,
3644
- e.showLayerZoomState
3656
+ const e = $s(
3657
+ n.layer,
3658
+ n.map,
3659
+ n.showLayerZoomState
3645
3660
  );
3646
3661
  let i = !1;
3647
- !n && e.currLayerVisibilityBasedOnZoom ? (e.currLayerVisibilityBasedOnZoom = !1, i = !0) : n && !e.currLayerVisibilityBasedOnZoom && (e.currLayerVisibilityBasedOnZoom = !0, i = !0), i && (e.requestUpdate(), e.dispatchEvent(
3662
+ !e && n.currLayerVisibilityBasedOnZoom ? (n.currLayerVisibilityBasedOnZoom = !1, i = !0) : e && !n.currLayerVisibilityBasedOnZoom && (n.currLayerVisibilityBasedOnZoom = !0, i = !0), i && (n.requestUpdate(), n.dispatchEvent(
3648
3663
  new CustomEvent("change:resolution", { bubbles: !0 })
3649
3664
  ));
3650
3665
  };
3651
3666
  so(
3652
- e.layer,
3653
- e.showLayerZoomState
3654
- ) && (t(), e.map.getView().on("change:resolution", () => t()));
3655
- }, ia = (e, t) => {
3656
- const n = t.layer;
3657
- n.setVisible(e.target.checked), e.target.checked && n.get("layerControlExclusive") && t.parentNode.parentNode.querySelectorAll(
3667
+ n.layer,
3668
+ n.showLayerZoomState
3669
+ ) && (t(), n.map.getView().on("change:resolution", () => t()));
3670
+ }, ia = (n, t) => {
3671
+ const e = t.layer;
3672
+ e.setVisible(n.target.checked), n.target.checked && e.get("layerControlExclusive") && t.parentNode.parentNode.querySelectorAll(
3658
3673
  "li > eox-layercontrol-layer"
3659
3674
  ).forEach((o) => {
3660
3675
  var r;
3661
- o.layer !== n && ((r = o.layer) != null && r.get("layerControlExclusive")) && (o.layer.setVisible(!1), o.requestUpdate());
3676
+ o.layer !== e && ((r = o.layer) != null && r.get("layerControlExclusive")) && (o.layer.setVisible(!1), o.requestUpdate());
3662
3677
  }), t.dispatchEvent(
3663
- new CustomEvent("changed", { bubbles: !0, detail: n })
3678
+ new CustomEvent("changed", { bubbles: !0, detail: e })
3664
3679
  ), t.requestUpdate();
3665
3680
  };
3666
3681
  var Ft, Ie, Je, bo, Ke, Qe;
@@ -3751,7 +3766,7 @@ class yo extends et {
3751
3766
  */
3752
3767
  render() {
3753
3768
  var l;
3754
- const n = this.layer.getVisible(), i = n ? "visible" : "", o = this.currLayerVisibilityBasedOnZoom ? "" : "zoom-state-invisible", r = U(this, Ft, Ie).call(this, "layerControlDisable") ? "disabled" : "", s = U(this, Ft, Ie).call(this, "layerControlExclusive") ? "radio" : "checkbox", a = ((l = this.tools) == null ? void 0 : l.length) > 0;
3769
+ const e = this.layer.getVisible(), i = e ? "visible" : "", o = this.currLayerVisibilityBasedOnZoom ? "" : "zoom-state-invisible", r = k(this, Ft, Ie).call(this, "layerControlDisable") ? "disabled" : "", s = k(this, Ft, Ie).call(this, "layerControlExclusive") ? "radio" : "checkbox", a = ((l = this.tools) == null ? void 0 : l.length) > 0;
3755
3770
  return x`
3756
3771
  <style>
3757
3772
  ${R(this, Ke)}
@@ -3766,12 +3781,12 @@ class yo extends et {
3766
3781
  <!-- Input element for layer visibility -->
3767
3782
  <input
3768
3783
  type=${s}
3769
- .checked=${uo(n)}
3770
- @click=${U(this, Je, bo)}
3784
+ .checked=${uo(e)}
3785
+ @click=${k(this, Je, bo)}
3771
3786
  />
3772
3787
 
3773
3788
  <!-- Layer title -->
3774
- <span class="title">${U(this, Ft, Ie).call(this, this.titleProperty)}</span>
3789
+ <span class="title">${k(this, Ft, Ie).call(this, this.titleProperty)}</span>
3775
3790
  ${ot(
3776
3791
  a,
3777
3792
  () => x`<span class="tools-placeholder"></span>`
@@ -3791,11 +3806,11 @@ class yo extends et {
3791
3806
  `;
3792
3807
  }
3793
3808
  }
3794
- Ft = new WeakSet(), Ie = function(n) {
3809
+ Ft = new WeakSet(), Ie = function(e) {
3795
3810
  var i;
3796
- return (i = this.layer) == null ? void 0 : i.get(n);
3797
- }, Je = new WeakSet(), bo = function(n) {
3798
- ia(n, this);
3811
+ return (i = this.layer) == null ? void 0 : i.get(e);
3812
+ }, Je = new WeakSet(), bo = function(e) {
3813
+ ia(e, this);
3799
3814
  }, Ke = new WeakMap(), Qe = new WeakMap(), // Define static properties for the component
3800
3815
  H(yo, "properties", {
3801
3816
  layer: { attribute: !1 },
@@ -3852,7 +3867,7 @@ class vo extends et {
3852
3867
  */
3853
3868
  render() {
3854
3869
  var o, r;
3855
- const n = !!((o = this.group) != null && o.get("layerControlExpand")), i = (r = lo(
3870
+ const e = !!((o = this.group) != null && o.get("layerControlExpand")), i = (r = lo(
3856
3871
  this.group.getLayers()
3857
3872
  )) == null ? void 0 : r.length;
3858
3873
  return x`
@@ -3865,7 +3880,7 @@ class vo extends et {
3865
3880
  () => x`
3866
3881
  <!-- Render the details element with the layer control -->
3867
3882
  <details
3868
- open=${n || T}
3883
+ open=${e || T}
3869
3884
  data-children-length=${i}
3870
3885
  >
3871
3886
  <summary>
@@ -3915,24 +3930,21 @@ customElements.define(
3915
3930
  "eox-layercontrol-layer-group",
3916
3931
  vo
3917
3932
  );
3918
- const oa = (e) => {
3919
- const { layers: t, idProperty: n, titleProperty: i, renderRoot: o } = e;
3920
- if (t) {
3921
- const r = o.querySelector("ul");
3933
+ const oa = (n) => {
3934
+ const { layers: t, idProperty: e, titleProperty: i, renderRoot: o } = n, r = co(() => {
3935
+ n.requestUpdate(), n.dispatchEvent(
3936
+ new CustomEvent("changed", { bubbles: !0 })
3937
+ );
3938
+ }, 50), s = () => r();
3939
+ if (t && (t.hasListener("change:length") && (t == null || t.un("change:length", s)), t.on("change:length", s), t)) {
3940
+ const a = o.querySelector("ul");
3922
3941
  Ss(
3923
3942
  t,
3924
- n,
3943
+ e,
3925
3944
  i,
3926
- e
3927
- ), xs(r, t, n, e);
3945
+ n
3946
+ ), xs(a, t, e, n);
3928
3947
  }
3929
- }, ra = (e) => {
3930
- const { layers: t } = e, n = co(() => {
3931
- e.requestUpdate(), e.dispatchEvent(
3932
- new CustomEvent("changed", { bubbles: !0 })
3933
- );
3934
- }, 50), i = () => n();
3935
- t && (t.hasListener("change:length") && (t == null || t.un("change:length", i)), t.on("change:length", i));
3936
3948
  };
3937
3949
  var nn, on;
3938
3950
  class wo extends et {
@@ -3976,12 +3988,6 @@ class wo extends et {
3976
3988
  firstUpdated() {
3977
3989
  oa(this);
3978
3990
  }
3979
- /**
3980
- * Executes logic after subsequent updates of the component.
3981
- */
3982
- updated() {
3983
- ra(this);
3984
- }
3985
3991
  /**
3986
3992
  * Overrides createRenderRoot to handle shadow DOM creation based on the noShadow property.
3987
3993
  */
@@ -3993,7 +3999,7 @@ class wo extends et {
3993
3999
  * layer groups or individual layers accordingly. Utilizes conditional rendering and iterates through available layers.
3994
4000
  */
3995
4001
  render() {
3996
- const n = lo(this.layers).reverse();
4002
+ const e = this.layers ? lo(this.layers).reverse() : [];
3997
4003
  return x`
3998
4004
  <style>
3999
4005
  ${R(this, nn)}
@@ -4004,7 +4010,7 @@ class wo extends et {
4004
4010
  this.layers,
4005
4011
  () => x`
4006
4012
  ${Ko(
4007
- n,
4013
+ e,
4008
4014
  (i) => i,
4009
4015
  (i) => x`
4010
4016
  <li
@@ -4059,27 +4065,27 @@ H(wo, "properties", {
4059
4065
  noShadow: { type: Boolean }
4060
4066
  });
4061
4067
  customElements.define("eox-layercontrol-layer-list", wo);
4062
- const sa = (e) => {
4063
- const t = e.querySelector(
4068
+ const ra = (n) => {
4069
+ const t = n.querySelector(
4064
4070
  "select[name=optional]"
4065
- ), n = t ? t.value : null, i = Kn(
4066
- e.layers.getArray(),
4071
+ ), e = t ? t.value : null, i = Kn(
4072
+ n.layers.getArray(),
4067
4073
  "layerControlOptional",
4068
4074
  !0
4069
4075
  ).find(
4070
4076
  (o) => (
4071
4077
  // @ts-ignore
4072
- (o.get(e.idProperty) || o.ol_uid) === n
4078
+ (o.get(n.idProperty) || o.ol_uid) === e
4073
4079
  )
4074
4080
  );
4075
- i == null || i.set("layerControlOptional", !1), i == null || i.setVisible(!0), e.dispatchEvent(
4081
+ i == null || i.set("layerControlOptional", !1), i == null || i.setVisible(!0), n.dispatchEvent(
4076
4082
  new CustomEvent("changed", { bubbles: !0 })
4077
- ), e.renderRoot.parentNode.querySelectorAll("eox-layercontrol-layer-list").forEach(
4083
+ ), n.renderRoot.parentNode.querySelectorAll("eox-layercontrol-layer-list").forEach(
4078
4084
  (o) => (
4079
4085
  /** @type {import("lit").LitElement} */
4080
4086
  o.requestUpdate()
4081
4087
  )
4082
- ), e.requestUpdate();
4088
+ ), n.requestUpdate();
4083
4089
  };
4084
4090
  var rn, xo;
4085
4091
  class Eo extends et {
@@ -4104,7 +4110,7 @@ class Eo extends et {
4104
4110
  * Generates dropdown options based on the extracted layer information.
4105
4111
  */
4106
4112
  render() {
4107
- const n = Kn(
4113
+ const e = Kn(
4108
4114
  this.layers.getArray(),
4109
4115
  "layerControlOptional",
4110
4116
  !0
@@ -4121,19 +4127,19 @@ class Eo extends et {
4121
4127
  </option>
4122
4128
 
4123
4129
  <!-- Mapping through filtered layers list to generate dropdown options -->
4124
- ${n.map((i) => {
4130
+ ${e.map((i) => {
4125
4131
  const o = i.get(this.idProperty) || i.ol_uid, r = i.get(this.titleProperty), s = `layer ${i.get(this.idProperty)}`;
4126
4132
  return x` <option value="${o}">${r || s}</option> `;
4127
4133
  })}
4128
4134
  </select>
4129
4135
 
4130
4136
  <!-- Button to handle adding layers -->
4131
- <button @click="${U(this, rn, xo)}">add</button>
4137
+ <button @click="${k(this, rn, xo)}">add</button>
4132
4138
  `;
4133
4139
  }
4134
4140
  }
4135
4141
  rn = new WeakSet(), xo = function() {
4136
- sa(this);
4142
+ ra(this);
4137
4143
  }, // Define static properties for the component
4138
4144
  H(Eo, "properties", {
4139
4145
  idProperty: { attribute: "id-property" },
@@ -4146,39 +4152,39 @@ customElements.define(
4146
4152
  "eox-layercontrol-optional-list",
4147
4153
  Eo
4148
4154
  );
4149
- const aa = (e, t) => {
4150
- t.jsonInput = e.target.value, t.requestUpdate();
4151
- }, Si = (e) => {
4155
+ const sa = (n, t) => {
4156
+ t.jsonInput = n.target.value, t.requestUpdate();
4157
+ }, Si = (n) => {
4152
4158
  const t = JSON.parse(
4153
- `{"data":${Zi(e.jsonInput)}}`
4159
+ `{"data":${Zi(n.jsonInput)}}`
4154
4160
  );
4155
- Array.isArray(t.data) ? t.data.forEach((n) => {
4156
- e.eoxMap.addOrUpdateLayer(n);
4157
- }) : e.eoxMap.addOrUpdateLayer(t.data), e.jsonInput = null, e.requestUpdate();
4158
- }, la = (e, t) => {
4159
- t.urlInput = e.target.value, t.requestUpdate();
4161
+ Array.isArray(t.data) ? t.data.forEach((e) => {
4162
+ n.eoxMap.addOrUpdateLayer(e);
4163
+ }) : n.eoxMap.addOrUpdateLayer(t.data), n.jsonInput = null, n.requestUpdate();
4164
+ }, aa = (n, t) => {
4165
+ t.urlInput = n.target.value, t.requestUpdate();
4160
4166
  };
4161
- async function ua(e) {
4162
- const t = e.urlInput;
4163
- if (e.wmsCapabilities = null, e.searchLoad = !0, e.requestUpdate(), !t)
4167
+ async function la(n) {
4168
+ const t = n.urlInput;
4169
+ if (n.wmsCapabilities = null, n.searchLoad = !0, n.requestUpdate(), !t)
4164
4170
  return !1;
4165
4171
  if (qn(t) === "XYZ")
4166
4172
  return { Name: t };
4167
4173
  try {
4168
- const n = await zr(t);
4169
- e.wmsCapabilities = n;
4174
+ const e = await zr(t);
4175
+ n.wmsCapabilities = e;
4170
4176
  } catch {
4171
4177
  } finally {
4172
- e.searchLoad = !1, e.requestUpdate();
4178
+ n.searchLoad = !1, n.requestUpdate();
4173
4179
  }
4174
4180
  return !1;
4175
4181
  }
4176
- const da = (e, t) => {
4177
- const { Name: n } = e, i = qn(t.urlInput) || "XYZ", o = {
4182
+ const ua = (n, t) => {
4183
+ const { Name: e } = n, i = qn(t.urlInput) || "XYZ", o = {
4178
4184
  type: "Tile",
4179
4185
  properties: {
4180
- id: n,
4181
- title: n
4186
+ id: e,
4187
+ title: e
4182
4188
  // Set the title property to the same as id
4183
4189
  },
4184
4190
  source: {
@@ -4186,16 +4192,16 @@ const da = (e, t) => {
4186
4192
  url: t.urlInput,
4187
4193
  // Set the URL from the instance
4188
4194
  params: {
4189
- LAYERS: n
4195
+ LAYERS: e
4190
4196
  // Set the 'LAYERS' parameter to the provided layer 'Name'
4191
4197
  }
4192
4198
  }
4193
4199
  };
4194
4200
  t.jsonInput = JSON.stringify(o);
4195
- }, ca = (e, t) => {
4196
- t.open = e || null, t.urlInput = null, t.jsonInput = null, t.wmsCapabilities = null, t.requestUpdate();
4201
+ }, ca = (n, t) => {
4202
+ t.open = n || null, t.urlInput = null, t.jsonInput = null, t.wmsCapabilities = null, t.requestUpdate();
4197
4203
  };
4198
- var sn, $o, an, _o, be, kn, ln, Ao, un, Co, jt, He, dn, cn;
4204
+ var sn, $o, an, _o, be, Un, ln, Ao, un, Co, jt, He, cn, dn;
4199
4205
  class So extends et {
4200
4206
  constructor() {
4201
4207
  super();
@@ -4262,7 +4268,7 @@ class So extends et {
4262
4268
  * @type {import("wms-capabilities").WMSCapabilitiesJSON}
4263
4269
  */
4264
4270
  H(this, "wmsCapabilities", null);
4265
- $(this, dn, `
4271
+ $(this, cn, `
4266
4272
  .eox-add-layer-main .open {
4267
4273
  position: relative;
4268
4274
  }
@@ -4270,7 +4276,7 @@ class So extends et {
4270
4276
  display: none;
4271
4277
  }
4272
4278
  `);
4273
- $(this, cn, `
4279
+ $(this, dn, `
4274
4280
  .eox-add {
4275
4281
  background: #f0f2f5;
4276
4282
  border-top: 1px solid #0041701a;
@@ -4419,24 +4425,24 @@ class So extends et {
4419
4425
  * Handles input fields, search, and addition of layers.
4420
4426
  */
4421
4427
  render() {
4422
- const n = this.open ? "open" : "close", i = this.open === "url", o = this.open === "json", r = !Zr(this.urlInput) || this.searchLoad ? !0 : T;
4428
+ const e = this.open ? "open" : "close", i = this.open === "url", o = this.open === "json", r = !Zr(this.urlInput) || this.searchLoad ? !0 : T;
4423
4429
  return x`
4424
4430
  <style>
4425
- ${R(this, dn)}
4426
- ${!this.unstyled && R(this, cn)}
4431
+ ${R(this, cn)}
4432
+ ${!this.unstyled && R(this, dn)}
4427
4433
  </style>
4428
4434
  <div class="eox-add-layer-main">
4429
4435
  <div class="eox-add-layer-col">
4430
4436
  <!-- Tabbed interface for URL and JSON -->
4431
- <ul class="eox-add-layer-tab ${n}">
4437
+ <ul class="eox-add-layer-tab ${e}">
4432
4438
  <li
4433
- @click=${() => U(this, jt, He).call(this, "url")}
4439
+ @click=${() => k(this, jt, He).call(this, "url")}
4434
4440
  class="${i ? "active" : ""}"
4435
4441
  >
4436
4442
  URL
4437
4443
  </li>
4438
4444
  <li
4439
- @click=${() => U(this, jt, He).call(this, "json")}
4445
+ @click=${() => k(this, jt, He).call(this, "json")}
4440
4446
  class="${o ? "active" : ""}"
4441
4447
  >
4442
4448
  JSON
@@ -4446,12 +4452,12 @@ class So extends et {
4446
4452
  <!-- Button to toggle tabs -->
4447
4453
  <button
4448
4454
  class="add-icon icon"
4449
- @click=${() => U(this, jt, He).call(this, this.open ? null : "url")}
4455
+ @click=${() => k(this, jt, He).call(this, this.open ? null : "url")}
4450
4456
  >
4451
4457
  ${this.unstyled ? "Add Layer" : ""}
4452
4458
  </button>
4453
4459
  </div>
4454
- <div class="eox-add ${n}">
4460
+ <div class="eox-add ${e}">
4455
4461
  ${i ? x`
4456
4462
  <!-- Input field for URL -->
4457
4463
  <div class="eox-add-layer-col">
@@ -4460,14 +4466,14 @@ class So extends et {
4460
4466
  class="add-url"
4461
4467
  placeholder="Add URL (WMS/XYZ)"
4462
4468
  .value="${this.urlInput}"
4463
- @input=${U(this, sn, $o)}
4469
+ @input=${k(this, sn, $o)}
4464
4470
  >
4465
4471
  </input>
4466
4472
  <!-- Search button for URL -->
4467
4473
  <button
4468
4474
  class="search-icon"
4469
4475
  disabled=${r}
4470
- @click=${U(this, an, _o)}
4476
+ @click=${k(this, an, _o)}
4471
4477
  >
4472
4478
  ${this.unstyled ? "Search" : ""}
4473
4479
  </button>
@@ -4486,7 +4492,7 @@ class So extends et {
4486
4492
  class="add-layer-icon icon"
4487
4493
  @click=${() => (
4488
4494
  //@ts-ignore
4489
- U(this, be, kn).call(this, s)
4495
+ k(this, be, Un).call(this, s)
4490
4496
  )}
4491
4497
  >
4492
4498
  ${this.unstyled ? "+" : ""}
@@ -4501,7 +4507,7 @@ class So extends et {
4501
4507
  <textarea
4502
4508
  class="add-layer-input"
4503
4509
  placeholder="Please put a valid eox-map layer JSON."
4504
- @input=${U(this, un, Co)}
4510
+ @input=${k(this, un, Co)}
4505
4511
  .value=${this.jsonInput}
4506
4512
  ></textarea>
4507
4513
 
@@ -4509,7 +4515,7 @@ class So extends et {
4509
4515
  <button
4510
4516
  class="add-layer-icon json-add-layer"
4511
4517
  disabled=${Xr(this.jsonInput) ? T : !0}
4512
- @click=${U(this, ln, Ao)}
4518
+ @click=${k(this, ln, Ao)}
4513
4519
  >
4514
4520
  ${this.unstyled ? "Add JSON" : ""}
4515
4521
  </button>
@@ -4519,39 +4525,36 @@ class So extends et {
4519
4525
  `;
4520
4526
  }
4521
4527
  }
4522
- sn = new WeakSet(), $o = function(n) {
4523
- la(n, this);
4528
+ sn = new WeakSet(), $o = function(e) {
4529
+ aa(e, this);
4524
4530
  }, an = new WeakSet(), _o = async function() {
4525
- const n = await ua(this);
4526
- n && U(this, be, kn).call(this, n);
4527
- }, be = new WeakSet(), kn = function(n) {
4528
- da(n, this), Si(this);
4531
+ const e = await la(this);
4532
+ e && k(this, be, Un).call(this, e);
4533
+ }, be = new WeakSet(), Un = function(e) {
4534
+ ua(e, this), Si(this);
4529
4535
  }, ln = new WeakSet(), Ao = function() {
4530
4536
  Si(this);
4531
- }, un = new WeakSet(), Co = function(n) {
4532
- aa(n, this);
4533
- }, jt = new WeakSet(), He = function(n) {
4534
- ca(n, this);
4535
- }, dn = new WeakMap(), cn = new WeakMap(), // Define static properties for the component
4537
+ }, un = new WeakSet(), Co = function(e) {
4538
+ sa(e, this);
4539
+ }, jt = new WeakSet(), He = function(e) {
4540
+ ca(e, this);
4541
+ }, cn = new WeakMap(), dn = new WeakMap(), // Define static properties for the component
4536
4542
  H(So, "properties", {
4537
4543
  eoxMap: { attribute: !1, state: !0 },
4538
4544
  unstyled: { type: Boolean },
4539
4545
  noShadow: { type: Boolean }
4540
4546
  });
4541
4547
  customElements.define("eox-layercontrol-add-layers", So);
4542
- const ha = (e, t) => {
4543
- if (t.requestUpdate(), e.target.tagName === "EOX-LAYERCONTROL-LAYER-TOOLS") {
4544
- const n = t.renderRoot.querySelector(
4548
+ const da = (n, t) => {
4549
+ if (t.requestUpdate(), n.target.tagName === "EOX-LAYERCONTROL-LAYER-TOOLS") {
4550
+ const e = t.renderRoot.querySelector(
4545
4551
  "eox-layercontrol-optional-list"
4546
4552
  );
4547
- n == null || n.requestUpdate();
4548
- }
4549
- }, pa = (e) => {
4550
- const t = e.for;
4551
- return document.querySelector(t);
4552
- }, fa = (e) => {
4553
- const t = document.querySelector(e.for);
4554
- t && t.map !== e.map && (e.map = t.map);
4553
+ e == null || e.requestUpdate();
4554
+ }
4555
+ }, ha = (n) => {
4556
+ const t = n.for, e = document.querySelector(t);
4557
+ return e && e.map !== n.map && (n.map = e.map), e;
4555
4558
  };
4556
4559
  var zt, hn, Po, pn;
4557
4560
  class To extends et {
@@ -4573,22 +4576,16 @@ class To extends et {
4573
4576
  $(this, pn, "* { font-family: Roboto, sans-serif; }");
4574
4577
  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 = "";
4575
4578
  }
4576
- /**
4577
- * Called when the component is updated
4578
- */
4579
- updated() {
4580
- fa(this);
4581
- }
4582
4579
  /**
4583
4580
  * Called when the component is first updated
4584
4581
  * Updated #eoxMap after first update.
4585
4582
  */
4586
4583
  firstUpdated() {
4587
- Jt(this, zt, pa(this));
4584
+ Jt(this, zt, ha(this));
4588
4585
  }
4589
4586
  render() {
4590
4587
  var o, r, s;
4591
- const n = (o = this.map) == null ? void 0 : o.getLayers().getArray(), i = n && ((r = Kn(n, "layerControlOptional", !0)) == null ? void 0 : r.length) > 0;
4588
+ const e = (o = this.map) == null ? void 0 : o.getLayers().getArray(), i = e && ((r = Kn(e, "layerControlOptional", !0)) == null ? void 0 : r.length) > 0;
4592
4589
  return x`
4593
4590
  <style>
4594
4591
  ${!this.unstyled && R(this, pn)}
@@ -4621,7 +4618,7 @@ class To extends et {
4621
4618
  .showLayerZoomState=${this.showLayerZoomState}
4622
4619
  .tools=${this.tools}
4623
4620
  .unstyled=${this.unstyled}
4624
- @changed=${U(this, hn, Po)}
4621
+ @changed=${k(this, hn, Po)}
4625
4622
  ></eox-layercontrol-layer-list>
4626
4623
  `
4627
4624
  )}
@@ -4642,8 +4639,8 @@ class To extends et {
4642
4639
  `;
4643
4640
  }
4644
4641
  }
4645
- zt = new WeakMap(), hn = new WeakSet(), Po = function(n) {
4646
- ha(n, this), this.dispatchEvent(new CustomEvent("layerchange", { detail: n.detail }));
4642
+ zt = new WeakMap(), hn = new WeakSet(), Po = function(e) {
4643
+ da(e, this), this.dispatchEvent(new CustomEvent("layerchange", { detail: e.detail }));
4647
4644
  }, pn = new WeakMap(), // Define static properties for the component
4648
4645
  H(To, "properties", {
4649
4646
  for: { type: String },