@eox/layercontrol 0.28.1 → 0.28.2-dev.1736961804.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,7 +4,7 @@ var yn = (i) => {
4
4
  };
5
5
  var Qr = (i, t, e) => t in i ? Kr(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
6
6
  var F = (i, t, e) => Qr(i, typeof t != "symbol" ? t + "" : t, e), Ci = (i, t, e) => t.has(i) || yn("Cannot " + e);
7
- var T = (i, t, e) => (Ci(i, t, "read from private field"), e ? e.call(i) : t.get(i)), P = (i, t, e) => t.has(i) ? yn("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(i) : t.set(i, e), Qt = (i, t, e, n) => (Ci(i, t, "write to private field"), n ? n.call(i, e) : t.set(i, e), e), j = (i, t, e) => (Ci(i, t, "access private method"), e);
7
+ var T = (i, t, e) => (Ci(i, t, "read from private field"), e ? e.call(i) : t.get(i)), P = (i, t, e) => t.has(i) ? yn("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(i) : t.set(i, e), te = (i, t, e, n) => (Ci(i, t, "write to private field"), n ? n.call(i, e) : t.set(i, e), e), j = (i, t, e) => (Ci(i, t, "access private method"), e);
8
8
  /**
9
9
  * @license
10
10
  * Copyright 2019 Google LLC
@@ -52,7 +52,7 @@ const to = (i) => new Zn(typeof i == "string" ? i : i + "", void 0, en), qn = (i
52
52
  * Copyright 2017 Google LLC
53
53
  * SPDX-License-Identifier: BSD-3-Clause
54
54
  */
55
- const { is: io, defineProperty: no, getOwnPropertyDescriptor: ro, getOwnPropertyNames: oo, getOwnPropertySymbols: so, getPrototypeOf: ao } = Object, Bt = globalThis, wn = Bt.trustedTypes, lo = wn ? wn.emptyScript : "", Ti = Bt.reactiveElementPolyfillSupport, be = (i, t) => i, qi = { toAttribute(i, t) {
55
+ const { is: io, defineProperty: no, getOwnPropertyDescriptor: ro, getOwnPropertyNames: oo, getOwnPropertySymbols: so, getPrototypeOf: ao } = Object, Ut = globalThis, wn = Ut.trustedTypes, lo = wn ? wn.emptyScript : "", Ti = Ut.reactiveElementPolyfillSupport, ve = (i, t) => i, qi = { toAttribute(i, t) {
56
56
  switch (t) {
57
57
  case Boolean:
58
58
  i = i ? lo : null;
@@ -81,8 +81,8 @@ const { is: io, defineProperty: no, getOwnPropertyDescriptor: ro, getOwnProperty
81
81
  }
82
82
  return e;
83
83
  } }, Xn = (i, t) => !io(i, t), xn = { attribute: !0, type: String, converter: qi, reflect: !1, hasChanged: Xn };
84
- Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), Bt.litPropertyMetadata ?? (Bt.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
85
- class ie extends HTMLElement {
84
+ Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), Ut.litPropertyMetadata ?? (Ut.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
85
+ class ne extends HTMLElement {
86
86
  static addInitializer(t) {
87
87
  this._$Ei(), (this.l ?? (this.l = [])).push(t);
88
88
  }
@@ -112,13 +112,13 @@ class ie extends HTMLElement {
112
112
  return this.elementProperties.get(t) ?? xn;
113
113
  }
114
114
  static _$Ei() {
115
- if (this.hasOwnProperty(be("elementProperties"))) return;
115
+ if (this.hasOwnProperty(ve("elementProperties"))) return;
116
116
  const t = ao(this);
117
117
  t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
118
118
  }
119
119
  static finalize() {
120
- if (this.hasOwnProperty(be("finalized"))) return;
121
- if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(be("properties"))) {
120
+ if (this.hasOwnProperty(ve("finalized"))) return;
121
+ if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(ve("properties"))) {
122
122
  const e = this.properties, n = [...oo(e), ...so(e)];
123
123
  for (const r of n) this.createProperty(r, e[r]);
124
124
  }
@@ -280,53 +280,53 @@ class ie extends HTMLElement {
280
280
  firstUpdated(t) {
281
281
  }
282
282
  }
283
- ie.elementStyles = [], ie.shadowRootOptions = { mode: "open" }, ie[be("elementProperties")] = /* @__PURE__ */ new Map(), ie[be("finalized")] = /* @__PURE__ */ new Map(), Ti == null || Ti({ ReactiveElement: ie }), (Bt.reactiveElementVersions ?? (Bt.reactiveElementVersions = [])).push("2.0.4");
283
+ ne.elementStyles = [], ne.shadowRootOptions = { mode: "open" }, ne[ve("elementProperties")] = /* @__PURE__ */ new Map(), ne[ve("finalized")] = /* @__PURE__ */ new Map(), Ti == null || Ti({ ReactiveElement: ne }), (Ut.reactiveElementVersions ?? (Ut.reactiveElementVersions = [])).push("2.0.4");
284
284
  /**
285
285
  * @license
286
286
  * Copyright 2017 Google LLC
287
287
  * SPDX-License-Identifier: BSD-3-Clause
288
288
  */
289
- const ve = globalThis, Ge = ve.trustedTypes, En = Ge ? Ge.createPolicy("lit-html", { createHTML: (i) => i }) : void 0, nn = "$lit$", Ct = `lit$${Math.random().toFixed(9).slice(2)}$`, rn = "?" + Ct, co = `<${rn}>`, Jt = document, Ae = () => Jt.createComment(""), _e = (i) => i === null || typeof i != "object" && typeof i != "function", on = Array.isArray, Yn = (i) => on(i) || typeof (i == null ? void 0 : i[Symbol.iterator]) == "function", Di = `[
290
- \f\r]`, pe = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, $n = /-->/g, Sn = />/g, zt = RegExp(`>|${Di}(?:([^\\s"'>=/]+)(${Di}*=${Di}*(?:[^
291
- \f\r"'\`<>=]|("|')|))|$)`, "g"), An = /'/g, _n = /"/g, Wn = /^(?:script|style|textarea|title)$/i, uo = (i) => (t, ...e) => ({ _$litType$: i, strings: t, values: e }), x = uo(1), vt = Symbol.for("lit-noChange"), O = Symbol.for("lit-nothing"), Cn = /* @__PURE__ */ new WeakMap(), Wt = Jt.createTreeWalker(Jt, 129);
289
+ const we = globalThis, Ge = we.trustedTypes, $n = Ge ? Ge.createPolicy("lit-html", { createHTML: (i) => i }) : void 0, nn = "$lit$", Ct = `lit$${Math.random().toFixed(9).slice(2)}$`, rn = "?" + Ct, co = `<${rn}>`, Kt = document, _e = () => Kt.createComment(""), Ce = (i) => i === null || typeof i != "object" && typeof i != "function", on = Array.isArray, Yn = (i) => on(i) || typeof (i == null ? void 0 : i[Symbol.iterator]) == "function", Di = `[
290
+ \f\r]`, fe = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, En = /-->/g, Sn = />/g, Zt = RegExp(`>|${Di}(?:([^\\s"'>=/]+)(${Di}*=${Di}*(?:[^
291
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), An = /'/g, _n = /"/g, Wn = /^(?:script|style|textarea|title)$/i, uo = (i) => (t, ...e) => ({ _$litType$: i, strings: t, values: e }), x = uo(1), vt = Symbol.for("lit-noChange"), L = Symbol.for("lit-nothing"), Cn = /* @__PURE__ */ new WeakMap(), Gt = Kt.createTreeWalker(Kt, 129);
292
292
  function Gn(i, t) {
293
293
  if (!on(i) || !i.hasOwnProperty("raw")) throw Error("invalid template strings array");
294
- return En !== void 0 ? En.createHTML(t) : t;
294
+ return $n !== void 0 ? $n.createHTML(t) : t;
295
295
  }
296
296
  const Jn = (i, t) => {
297
297
  const e = i.length - 1, n = [];
298
- let r, o = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", s = pe;
298
+ let r, o = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", s = fe;
299
299
  for (let a = 0; a < e; a++) {
300
300
  const l = i[a];
301
301
  let d, u, c = -1, p = 0;
302
- for (; p < l.length && (s.lastIndex = p, u = s.exec(l), u !== null); ) p = s.lastIndex, s === pe ? u[1] === "!--" ? s = $n : u[1] !== void 0 ? s = Sn : u[2] !== void 0 ? (Wn.test(u[2]) && (r = RegExp("</" + u[2], "g")), s = zt) : u[3] !== void 0 && (s = zt) : s === zt ? u[0] === ">" ? (s = r ?? pe, c = -1) : u[1] === void 0 ? c = -2 : (c = s.lastIndex - u[2].length, d = u[1], s = u[3] === void 0 ? zt : u[3] === '"' ? _n : An) : s === _n || s === An ? s = zt : s === $n || s === Sn ? s = pe : (s = zt, r = void 0);
303
- const f = s === zt && i[a + 1].startsWith("/>") ? " " : "";
304
- o += s === pe ? l + co : c >= 0 ? (n.push(d), l.slice(0, c) + nn + l.slice(c) + Ct + f) : l + Ct + (c === -2 ? a : f);
302
+ for (; p < l.length && (s.lastIndex = p, u = s.exec(l), u !== null); ) p = s.lastIndex, s === fe ? u[1] === "!--" ? s = En : u[1] !== void 0 ? s = Sn : u[2] !== void 0 ? (Wn.test(u[2]) && (r = RegExp("</" + u[2], "g")), s = Zt) : u[3] !== void 0 && (s = Zt) : s === Zt ? u[0] === ">" ? (s = r ?? fe, c = -1) : u[1] === void 0 ? c = -2 : (c = s.lastIndex - u[2].length, d = u[1], s = u[3] === void 0 ? Zt : u[3] === '"' ? _n : An) : s === _n || s === An ? s = Zt : s === En || s === Sn ? s = fe : (s = Zt, r = void 0);
303
+ const f = s === Zt && i[a + 1].startsWith("/>") ? " " : "";
304
+ o += s === fe ? l + co : c >= 0 ? (n.push(d), l.slice(0, c) + nn + l.slice(c) + Ct + f) : l + Ct + (c === -2 ? a : f);
305
305
  }
306
306
  return [Gn(i, o + (i[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), n];
307
307
  };
308
- class Ce {
308
+ class Te {
309
309
  constructor({ strings: t, _$litType$: e }, n) {
310
310
  let r;
311
311
  this.parts = [];
312
312
  let o = 0, s = 0;
313
313
  const a = t.length - 1, l = this.parts, [d, u] = Jn(t, e);
314
- if (this.el = Ce.createElement(d, n), Wt.currentNode = this.el.content, e === 2 || e === 3) {
314
+ if (this.el = Te.createElement(d, n), Gt.currentNode = this.el.content, e === 2 || e === 3) {
315
315
  const c = this.el.content.firstChild;
316
316
  c.replaceWith(...c.childNodes);
317
317
  }
318
- for (; (r = Wt.nextNode()) !== null && l.length < a; ) {
318
+ for (; (r = Gt.nextNode()) !== null && l.length < a; ) {
319
319
  if (r.nodeType === 1) {
320
320
  if (r.hasAttributes()) for (const c of r.getAttributeNames()) if (c.endsWith(nn)) {
321
321
  const p = u[s++], f = r.getAttribute(c).split(Ct), g = /([.?@])?(.*)/.exec(p);
322
- l.push({ type: 1, index: o, name: g[2], strings: f, ctor: g[1] === "." ? Qn : g[1] === "?" ? tr : g[1] === "@" ? er : Le }), r.removeAttribute(c);
322
+ l.push({ type: 1, index: o, name: g[2], strings: f, ctor: g[1] === "." ? Qn : g[1] === "?" ? tr : g[1] === "@" ? er : Re }), r.removeAttribute(c);
323
323
  } else c.startsWith(Ct) && (l.push({ type: 6, index: o }), r.removeAttribute(c));
324
324
  if (Wn.test(r.tagName)) {
325
325
  const c = r.textContent.split(Ct), p = c.length - 1;
326
326
  if (p > 0) {
327
327
  r.textContent = Ge ? Ge.emptyScript : "";
328
- for (let f = 0; f < p; f++) r.append(c[f], Ae()), Wt.nextNode(), l.push({ type: 2, index: ++o });
329
- r.append(c[p], Ae());
328
+ for (let f = 0; f < p; f++) r.append(c[f], _e()), Gt.nextNode(), l.push({ type: 2, index: ++o });
329
+ r.append(c[p], _e());
330
330
  }
331
331
  }
332
332
  } else if (r.nodeType === 8) if (r.data === rn) l.push({ type: 2, index: o });
@@ -338,16 +338,16 @@ class Ce {
338
338
  }
339
339
  }
340
340
  static createElement(t, e) {
341
- const n = Jt.createElement("template");
341
+ const n = Kt.createElement("template");
342
342
  return n.innerHTML = t, n;
343
343
  }
344
344
  }
345
- function Kt(i, t, e = i, n) {
345
+ function Qt(i, t, e = i, n) {
346
346
  var s, a;
347
347
  if (t === vt) return t;
348
348
  let r = n !== void 0 ? (s = e._$Co) == null ? void 0 : s[n] : e._$Cl;
349
- const o = _e(t) ? void 0 : t._$litDirective$;
350
- return (r == null ? void 0 : r.constructor) !== o && ((a = r == null ? void 0 : r._$AO) == null || a.call(r, !1), o === void 0 ? r = void 0 : (r = new o(i), r._$AT(i, e, n)), n !== void 0 ? (e._$Co ?? (e._$Co = []))[n] = r : e._$Cl = r), r !== void 0 && (t = Kt(i, r._$AS(i, t.values), r, n)), t;
349
+ const o = Ce(t) ? void 0 : t._$litDirective$;
350
+ return (r == null ? void 0 : r.constructor) !== o && ((a = r == null ? void 0 : r._$AO) == null || a.call(r, !1), o === void 0 ? r = void 0 : (r = new o(i), r._$AT(i, e, n)), n !== void 0 ? (e._$Co ?? (e._$Co = []))[n] = r : e._$Cl = r), r !== void 0 && (t = Qt(i, r._$AS(i, t.values), r, n)), t;
351
351
  }
352
352
  let Kn = class {
353
353
  constructor(t, e) {
@@ -360,30 +360,30 @@ let Kn = class {
360
360
  return this._$AM._$AU;
361
361
  }
362
362
  u(t) {
363
- const { el: { content: e }, parts: n } = this._$AD, r = ((t == null ? void 0 : t.creationScope) ?? Jt).importNode(e, !0);
364
- Wt.currentNode = r;
365
- let o = Wt.nextNode(), s = 0, a = 0, l = n[0];
363
+ const { el: { content: e }, parts: n } = this._$AD, r = ((t == null ? void 0 : t.creationScope) ?? Kt).importNode(e, !0);
364
+ Gt.currentNode = r;
365
+ let o = Gt.nextNode(), s = 0, a = 0, l = n[0];
366
366
  for (; l !== void 0; ) {
367
367
  if (s === l.index) {
368
368
  let d;
369
- l.type === 2 ? d = new ue(o, o.nextSibling, this, t) : l.type === 1 ? d = new l.ctor(o, l.name, l.strings, this, t) : l.type === 6 && (d = new ir(o, this, t)), this._$AV.push(d), l = n[++a];
369
+ l.type === 2 ? d = new he(o, o.nextSibling, this, t) : l.type === 1 ? d = new l.ctor(o, l.name, l.strings, this, t) : l.type === 6 && (d = new ir(o, this, t)), this._$AV.push(d), l = n[++a];
370
370
  }
371
- s !== (l == null ? void 0 : l.index) && (o = Wt.nextNode(), s++);
371
+ s !== (l == null ? void 0 : l.index) && (o = Gt.nextNode(), s++);
372
372
  }
373
- return Wt.currentNode = Jt, r;
373
+ return Gt.currentNode = Kt, r;
374
374
  }
375
375
  p(t) {
376
376
  let e = 0;
377
377
  for (const n of this._$AV) n !== void 0 && (n.strings !== void 0 ? (n._$AI(t, n, e), e += n.strings.length - 2) : n._$AI(t[e])), e++;
378
378
  }
379
379
  };
380
- class ue {
380
+ class he {
381
381
  get _$AU() {
382
382
  var t;
383
383
  return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
384
384
  }
385
385
  constructor(t, e, n, r) {
386
- this.type = 2, this._$AH = O, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = n, this.options = r, this._$Cv = (r == null ? void 0 : r.isConnected) ?? !0;
386
+ this.type = 2, this._$AH = L, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = n, this.options = r, this._$Cv = (r == null ? void 0 : r.isConnected) ?? !0;
387
387
  }
388
388
  get parentNode() {
389
389
  let t = this._$AA.parentNode;
@@ -397,7 +397,7 @@ class ue {
397
397
  return this._$AB;
398
398
  }
399
399
  _$AI(t, e = this) {
400
- t = Kt(this, t, e), _e(t) ? t === O || t == null || t === "" ? (this._$AH !== O && this._$AR(), this._$AH = O) : t !== this._$AH && t !== vt && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Yn(t) ? this.k(t) : this._(t);
400
+ t = Qt(this, t, e), Ce(t) ? t === L || t == null || t === "" ? (this._$AH !== L && this._$AR(), this._$AH = L) : t !== this._$AH && t !== vt && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Yn(t) ? this.k(t) : this._(t);
401
401
  }
402
402
  O(t) {
403
403
  return this._$AA.parentNode.insertBefore(t, this._$AB);
@@ -406,11 +406,11 @@ class ue {
406
406
  this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
407
407
  }
408
408
  _(t) {
409
- this._$AH !== O && _e(this._$AH) ? this._$AA.nextSibling.data = t : this.T(Jt.createTextNode(t)), this._$AH = t;
409
+ this._$AH !== L && Ce(this._$AH) ? this._$AA.nextSibling.data = t : this.T(Kt.createTextNode(t)), this._$AH = t;
410
410
  }
411
411
  $(t) {
412
412
  var o;
413
- const { values: e, _$litType$: n } = t, r = typeof n == "number" ? this._$AC(t) : (n.el === void 0 && (n.el = Ce.createElement(Gn(n.h, n.h[0]), this.options)), n);
413
+ const { values: e, _$litType$: n } = t, r = typeof n == "number" ? this._$AC(t) : (n.el === void 0 && (n.el = Te.createElement(Gn(n.h, n.h[0]), this.options)), n);
414
414
  if (((o = this._$AH) == null ? void 0 : o._$AD) === r) this._$AH.p(e);
415
415
  else {
416
416
  const s = new Kn(r, this), a = s.u(this.options);
@@ -419,13 +419,13 @@ class ue {
419
419
  }
420
420
  _$AC(t) {
421
421
  let e = Cn.get(t.strings);
422
- return e === void 0 && Cn.set(t.strings, e = new Ce(t)), e;
422
+ return e === void 0 && Cn.set(t.strings, e = new Te(t)), e;
423
423
  }
424
424
  k(t) {
425
425
  on(this._$AH) || (this._$AH = [], this._$AR());
426
426
  const e = this._$AH;
427
427
  let n, r = 0;
428
- for (const o of t) r === e.length ? e.push(n = new ue(this.O(Ae()), this.O(Ae()), this, this.options)) : n = e[r], n._$AI(o), r++;
428
+ for (const o of t) r === e.length ? e.push(n = new he(this.O(_e()), this.O(_e()), this, this.options)) : n = e[r], n._$AI(o), r++;
429
429
  r < e.length && (this._$AR(n && n._$AB.nextSibling, r), e.length = r);
430
430
  }
431
431
  _$AR(t = this._$AA.nextSibling, e) {
@@ -440,7 +440,7 @@ class ue {
440
440
  this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
441
441
  }
442
442
  }
443
- class Le {
443
+ class Re {
444
444
  get tagName() {
445
445
  return this.element.tagName;
446
446
  }
@@ -448,46 +448,46 @@ class Le {
448
448
  return this._$AM._$AU;
449
449
  }
450
450
  constructor(t, e, n, r, o) {
451
- this.type = 1, this._$AH = O, this._$AN = void 0, this.element = t, this.name = e, this._$AM = r, this.options = o, n.length > 2 || n[0] !== "" || n[1] !== "" ? (this._$AH = Array(n.length - 1).fill(new String()), this.strings = n) : this._$AH = O;
451
+ this.type = 1, this._$AH = L, this._$AN = void 0, this.element = t, this.name = e, this._$AM = r, this.options = o, n.length > 2 || n[0] !== "" || n[1] !== "" ? (this._$AH = Array(n.length - 1).fill(new String()), this.strings = n) : this._$AH = L;
452
452
  }
453
453
  _$AI(t, e = this, n, r) {
454
454
  const o = this.strings;
455
455
  let s = !1;
456
- if (o === void 0) t = Kt(this, t, e, 0), s = !_e(t) || t !== this._$AH && t !== vt, s && (this._$AH = t);
456
+ if (o === void 0) t = Qt(this, t, e, 0), s = !Ce(t) || t !== this._$AH && t !== vt, s && (this._$AH = t);
457
457
  else {
458
458
  const a = t;
459
459
  let l, d;
460
- for (t = o[0], l = 0; l < o.length - 1; l++) d = Kt(this, a[n + l], e, l), d === vt && (d = this._$AH[l]), s || (s = !_e(d) || d !== this._$AH[l]), d === O ? t = O : t !== O && (t += (d ?? "") + o[l + 1]), this._$AH[l] = d;
460
+ for (t = o[0], l = 0; l < o.length - 1; l++) d = Qt(this, a[n + l], e, l), d === vt && (d = this._$AH[l]), s || (s = !Ce(d) || d !== this._$AH[l]), d === L ? t = L : t !== L && (t += (d ?? "") + o[l + 1]), this._$AH[l] = d;
461
461
  }
462
462
  s && !r && this.j(t);
463
463
  }
464
464
  j(t) {
465
- t === O ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
465
+ t === L ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
466
466
  }
467
467
  }
468
- class Qn extends Le {
468
+ class Qn extends Re {
469
469
  constructor() {
470
470
  super(...arguments), this.type = 3;
471
471
  }
472
472
  j(t) {
473
- this.element[this.name] = t === O ? void 0 : t;
473
+ this.element[this.name] = t === L ? void 0 : t;
474
474
  }
475
475
  }
476
- class tr extends Le {
476
+ class tr extends Re {
477
477
  constructor() {
478
478
  super(...arguments), this.type = 4;
479
479
  }
480
480
  j(t) {
481
- this.element.toggleAttribute(this.name, !!t && t !== O);
481
+ this.element.toggleAttribute(this.name, !!t && t !== L);
482
482
  }
483
483
  }
484
- class er extends Le {
484
+ class er extends Re {
485
485
  constructor(t, e, n, r, o) {
486
486
  super(t, e, n, r, o), this.type = 5;
487
487
  }
488
488
  _$AI(t, e = this) {
489
- if ((t = Kt(this, t, e, 0) ?? O) === vt) return;
490
- const n = this._$AH, r = t === O && n !== O || t.capture !== n.capture || t.once !== n.once || t.passive !== n.passive, o = t !== O && (n === O || r);
489
+ if ((t = Qt(this, t, e, 0) ?? L) === vt) return;
490
+ const n = this._$AH, r = t === L && n !== L || t.capture !== n.capture || t.once !== n.once || t.passive !== n.passive, o = t !== L && (n === L || r);
491
491
  r && this.element.removeEventListener(this.name, this, n), o && this.element.addEventListener(this.name, this, t), this._$AH = t;
492
492
  }
493
493
  handleEvent(t) {
@@ -503,17 +503,17 @@ class ir {
503
503
  return this._$AM._$AU;
504
504
  }
505
505
  _$AI(t) {
506
- Kt(this, t);
506
+ Qt(this, t);
507
507
  }
508
508
  }
509
- const ho = { M: nn, P: Ct, A: rn, C: 1, L: Jn, R: Kn, D: Yn, V: Kt, I: ue, H: Le, N: tr, U: er, B: Qn, F: ir }, Pi = ve.litHtmlPolyfillSupport;
510
- Pi == null || Pi(Ce, ue), (ve.litHtmlVersions ?? (ve.litHtmlVersions = [])).push("3.2.1");
509
+ const ho = { M: nn, P: Ct, A: rn, C: 1, L: Jn, R: Kn, D: Yn, V: Qt, I: he, H: Re, N: tr, U: er, B: Qn, F: ir }, Pi = we.litHtmlPolyfillSupport;
510
+ Pi == null || Pi(Te, he), (we.litHtmlVersions ?? (we.litHtmlVersions = [])).push("3.2.1");
511
511
  const po = (i, t, e) => {
512
512
  const n = (e == null ? void 0 : e.renderBefore) ?? t;
513
513
  let r = n._$litPart$;
514
514
  if (r === void 0) {
515
515
  const o = (e == null ? void 0 : e.renderBefore) ?? null;
516
- n._$litPart$ = r = new ue(t.insertBefore(Ae(), o), o, void 0, e ?? {});
516
+ n._$litPart$ = r = new he(t.insertBefore(_e(), o), o, void 0, e ?? {});
517
517
  }
518
518
  return r._$AI(i), r;
519
519
  };
@@ -522,7 +522,7 @@ const po = (i, t, e) => {
522
522
  * Copyright 2017 Google LLC
523
523
  * SPDX-License-Identifier: BSD-3-Clause
524
524
  */
525
- let lt = class extends ie {
525
+ let lt = class extends ne {
526
526
  constructor() {
527
527
  super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
528
528
  }
@@ -549,8 +549,8 @@ let lt = class extends ie {
549
549
  };
550
550
  var zn;
551
551
  lt._$litElement$ = !0, lt.finalized = !0, (zn = globalThis.litElementHydrateSupport) == null || zn.call(globalThis, { LitElement: lt });
552
- const Oi = globalThis.litElementPolyfillSupport;
553
- Oi == null || Oi({ LitElement: lt });
552
+ const Li = globalThis.litElementPolyfillSupport;
553
+ Li == null || Li({ LitElement: lt });
554
554
  (globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.1.1");
555
555
  /**
556
556
  * @license
@@ -565,7 +565,7 @@ function G(i, t, e) {
565
565
  * Copyright 2017 Google LLC
566
566
  * SPDX-License-Identifier: BSD-3-Clause
567
567
  */
568
- const Mt = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, sn = (i) => (...t) => ({ _$litDirective$: i, values: t });
568
+ const It = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, sn = (i) => (...t) => ({ _$litDirective$: i, values: t });
569
569
  class an {
570
570
  constructor(t) {
571
571
  }
@@ -587,7 +587,7 @@ class an {
587
587
  * Copyright 2020 Google LLC
588
588
  * SPDX-License-Identifier: BSD-3-Clause
589
589
  */
590
- const { I: fo } = ho, go = (i) => i.strings === void 0, Tn = () => document.createComment(""), fe = (i, t, e) => {
590
+ const { I: fo } = ho, go = (i) => i.strings === void 0, Tn = () => document.createComment(""), ge = (i, t, e) => {
591
591
  var o;
592
592
  const n = i._$AA.parentNode, r = t === void 0 ? i._$AB : t._$AA;
593
593
  if (e === void 0) {
@@ -608,7 +608,7 @@ const { I: fo } = ho, go = (i) => i.strings === void 0, Tn = () => document.crea
608
608
  }
609
609
  }
610
610
  return e;
611
- }, Zt = (i, t, e = i) => (i._$AI(t, e), i), mo = {}, nr = (i, t = mo) => i._$AH = t, yo = (i) => i._$AH, Li = (i) => {
611
+ }, qt = (i, t, e = i) => (i._$AI(t, e), i), mo = {}, nr = (i, t = mo) => i._$AH = t, yo = (i) => i._$AH, Oi = (i) => {
612
612
  var n;
613
613
  (n = i._$AP) == null || n.call(i, !1, !0);
614
614
  let t = i._$AA;
@@ -629,7 +629,7 @@ const Dn = (i, t, e) => {
629
629
  return n;
630
630
  }, bo = sn(class extends an {
631
631
  constructor(i) {
632
- if (super(i), i.type !== Mt.CHILD) throw Error("repeat() can only be used in text expressions");
632
+ if (super(i), i.type !== It.CHILD) throw Error("repeat() can only be used in text expressions");
633
633
  }
634
634
  dt(i, t, e) {
635
635
  let n;
@@ -649,26 +649,26 @@ const Dn = (i, t, e) => {
649
649
  let d, u, c = 0, p = r.length - 1, f = 0, g = o.length - 1;
650
650
  for (; c <= p && f <= g; ) if (r[c] === null) c++;
651
651
  else if (r[p] === null) p--;
652
- else if (a[c] === s[f]) l[f] = Zt(r[c], o[f]), c++, f++;
653
- else if (a[p] === s[g]) l[g] = Zt(r[p], o[g]), p--, g--;
654
- else if (a[c] === s[g]) l[g] = Zt(r[c], o[g]), fe(i, l[g + 1], r[c]), c++, g--;
655
- else if (a[p] === s[f]) l[f] = Zt(r[p], o[f]), fe(i, r[c], r[p]), p--, f++;
652
+ else if (a[c] === s[f]) l[f] = qt(r[c], o[f]), c++, f++;
653
+ else if (a[p] === s[g]) l[g] = qt(r[p], o[g]), p--, g--;
654
+ else if (a[c] === s[g]) l[g] = qt(r[c], o[g]), ge(i, l[g + 1], r[c]), c++, g--;
655
+ else if (a[p] === s[f]) l[f] = qt(r[p], o[f]), ge(i, r[c], r[p]), p--, f++;
656
656
  else if (d === void 0 && (d = Dn(s, f, g), u = Dn(a, c, p)), d.has(a[c])) if (d.has(a[p])) {
657
657
  const b = u.get(s[f]), N = b !== void 0 ? r[b] : null;
658
658
  if (N === null) {
659
- const J = fe(i, r[c]);
660
- Zt(J, o[f]), l[f] = J;
661
- } else l[f] = Zt(N, o[f]), fe(i, r[c], N), r[b] = null;
659
+ const J = ge(i, r[c]);
660
+ qt(J, o[f]), l[f] = J;
661
+ } else l[f] = qt(N, o[f]), ge(i, r[c], N), r[b] = null;
662
662
  f++;
663
- } else Li(r[p]), p--;
664
- else Li(r[c]), c++;
663
+ } else Oi(r[p]), p--;
664
+ else Oi(r[c]), c++;
665
665
  for (; f <= g; ) {
666
- const b = fe(i, l[g + 1]);
667
- Zt(b, o[f]), l[f++] = b;
666
+ const b = ge(i, l[g + 1]);
667
+ qt(b, o[f]), l[f++] = b;
668
668
  }
669
669
  for (; c <= p; ) {
670
670
  const b = r[c++];
671
- b !== null && Li(b);
671
+ b !== null && Oi(b);
672
672
  }
673
673
  return this.ut = s, nr(i, l), vt;
674
674
  }
@@ -680,7 +680,7 @@ const Dn = (i, t, e) => {
680
680
  * @preserve
681
681
  */
682
682
  var S = (i) => i !== void 0, rr = (i, t, e) => t in i ? i[t] : i[t] = e;
683
- const Te = {
683
+ const De = {
684
684
  ELEMENT: 1,
685
685
  ATTRIBUTE: 2,
686
686
  TEXT: 3,
@@ -726,7 +726,7 @@ function Si(i, t) {
726
726
  return or(i, t, []).join("");
727
727
  }
728
728
  function or(i, t, e) {
729
- if (i.nodeType === Te.CDATA_SECTION || i.nodeType === Te.TEXT)
729
+ if (i.nodeType === De.CDATA_SECTION || i.nodeType === De.TEXT)
730
730
  t ? e.push(String(i.nodeValue).replace(/(\r\n|\r|\n)/g, "")) : e.push(i.nodeValue);
731
731
  else {
732
732
  var n;
@@ -736,7 +736,7 @@ function or(i, t, e) {
736
736
  return e;
737
737
  }
738
738
  function wo(i, t, e, n) {
739
- for (var r = xo(t); r; r = Eo(r)) {
739
+ for (var r = xo(t); r; r = $o(r)) {
740
740
  var o = r.namespaceURI || null, s = i[o];
741
741
  if (S(s)) {
742
742
  var a = s[r.localName];
@@ -746,23 +746,23 @@ function wo(i, t, e, n) {
746
746
  }
747
747
  function xo(i) {
748
748
  let t = i.firstElementChild || i.firstChild;
749
- for (; t && t.nodeType !== Te.ELEMENT; )
749
+ for (; t && t.nodeType !== De.ELEMENT; )
750
750
  t = t.nextSibling;
751
751
  return t;
752
752
  }
753
- function Eo(i) {
753
+ function $o(i) {
754
754
  let t = i.nextElementSibling || i.nextSibling;
755
- for (; t && t.nodeType !== Te.ELEMENT; )
755
+ for (; t && t.nodeType !== De.ELEMENT; )
756
756
  t = t.nextSibling;
757
757
  return t;
758
758
  }
759
759
  function nt(i, t, e) {
760
760
  return (
761
761
  /** @type {Object.<string, Object.<string, XMLParser.Parser>>} */
762
- $o(i, t, e)
762
+ Eo(i, t, e)
763
763
  );
764
764
  }
765
- function $o(i, t, e) {
765
+ function Eo(i, t, e) {
766
766
  var n = S(e) ? e : {}, r, o;
767
767
  for (r = 0, o = i.length; r < o; ++r)
768
768
  n[i[r]] = t;
@@ -838,12 +838,12 @@ const So = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;
838
838
  function Ao(i) {
839
839
  return i.replace(So, "");
840
840
  }
841
- function Gt(i) {
841
+ function Jt(i) {
842
842
  const t = /^\s*(true|1)|(false|0)\s*$/.exec(i);
843
843
  if (t)
844
844
  return S(t[1]) || !1;
845
845
  }
846
- function oe(i) {
846
+ function se(i) {
847
847
  return Tt(Si(i, !1));
848
848
  }
849
849
  function Tt(i) {
@@ -897,7 +897,7 @@ function Po(i, t) {
897
897
  const e = parseFloat(i.getAttribute("min")), n = parseFloat(i.getAttribute("max"));
898
898
  return { min: e, max: n };
899
899
  }
900
- function Oo(i, t) {
900
+ function Lo(i, t) {
901
901
  const e = Q(
902
902
  {},
903
903
  es,
@@ -926,7 +926,7 @@ function Oo(i, t) {
926
926
  s
927
927
  ];
928
928
  }
929
- function Lo(i, t) {
929
+ function Oo(i, t) {
930
930
  return Q({}, Yo, i, t);
931
931
  }
932
932
  function Ro(i, t) {
@@ -964,8 +964,8 @@ function Ho(i, t) {
964
964
  t
965
965
  );
966
966
  }
967
- function Vo(i, t) {
968
- const e = Gt(i.getAttribute("queryable"));
967
+ function ko(i, t) {
968
+ const e = Jt(i.getAttribute("queryable"));
969
969
  return Q(
970
970
  {
971
971
  queryable: S(e) ? e : !1
@@ -975,7 +975,7 @@ function Vo(i, t) {
975
975
  t
976
976
  );
977
977
  }
978
- function ko(i, t) {
978
+ function Vo(i, t) {
979
979
  var e = (
980
980
  /** @type {Object.<string,*>} */
981
981
  t[t.length - 1]
@@ -990,13 +990,13 @@ function ko(i, t) {
990
990
  )
991
991
  );
992
992
  if (!S(n)) return;
993
- let r = Gt(i.getAttribute("queryable"));
993
+ let r = Jt(i.getAttribute("queryable"));
994
994
  S(r) || (r = e.queryable), n.queryable = S(r) ? r : !1;
995
995
  let o = Je(i.getAttribute("cascaded"));
996
996
  S(o) || (o = e.cascaded), n.cascaded = o;
997
- let s = Gt(i.getAttribute("opaque"));
997
+ let s = Jt(i.getAttribute("opaque"));
998
998
  S(s) || (s = e.opaque), n.opaque = S(s) ? s : !1;
999
- let a = Gt(i.getAttribute("noSubsets"));
999
+ let a = Jt(i.getAttribute("noSubsets"));
1000
1000
  S(a) || (a = e.noSubsets), n.noSubsets = S(a) ? a : !1;
1001
1001
  let l = Tt(i.getAttribute("fixedWidth"));
1002
1002
  S(l) || (l = e.fixedWidth), n.fixedWidth = l;
@@ -1033,9 +1033,9 @@ function Bo(i, t) {
1033
1033
  units: i.getAttribute("units"),
1034
1034
  unitSymbol: i.getAttribute("unitSymbol"),
1035
1035
  default: i.getAttribute("default"),
1036
- multipleValues: Gt(i.getAttribute("multipleValues")),
1037
- nearestValue: Gt(i.getAttribute("nearestValue")),
1038
- current: Gt(i.getAttribute("current")),
1036
+ multipleValues: Jt(i.getAttribute("multipleValues")),
1037
+ nearestValue: Jt(i.getAttribute("nearestValue")),
1038
+ current: Jt(i.getAttribute("current")),
1039
1039
  values: D(i)
1040
1040
  };
1041
1041
  }
@@ -1097,14 +1097,14 @@ const rt = [
1097
1097
  rt,
1098
1098
  {
1099
1099
  Service: y(Ro),
1100
- Capability: y(Lo)
1100
+ Capability: y(Oo)
1101
1101
  }
1102
1102
  ), Yo = nt(
1103
1103
  rt,
1104
1104
  {
1105
1105
  Request: y(Uo),
1106
1106
  Exception: y(Ho),
1107
- Layer: y(Vo)
1107
+ Layer: y(ko)
1108
1108
  }
1109
1109
  ), Wo = nt(
1110
1110
  rt,
@@ -1161,7 +1161,7 @@ const rt = [
1161
1161
  KeywordList: y(dr),
1162
1162
  CRS: pt(D),
1163
1163
  SRS: pt(D),
1164
- EX_GeographicBoundingBox: y(Oo),
1164
+ EX_GeographicBoundingBox: y(Lo),
1165
1165
  LatLonBoundingBox: y(Do),
1166
1166
  BoundingBox: pt(To),
1167
1167
  Dimension: pt(Bo),
@@ -1172,10 +1172,10 @@ const rt = [
1172
1172
  DataURL: pt(Pt),
1173
1173
  FeatureListURL: pt(Pt),
1174
1174
  Style: pt(qo),
1175
- MinScaleDenominator: y(oe),
1176
- MaxScaleDenominator: y(oe),
1175
+ MinScaleDenominator: y(se),
1176
+ MaxScaleDenominator: y(se),
1177
1177
  ScaleHint: y(Po),
1178
- Layer: pt(ko)
1178
+ Layer: pt(Vo)
1179
1179
  }
1180
1180
  ), ts = nt(
1181
1181
  rt,
@@ -1185,10 +1185,10 @@ const rt = [
1185
1185
  LogoURL: y(lr)
1186
1186
  }
1187
1187
  ), es = nt(rt, {
1188
- westBoundLongitude: y(oe),
1189
- eastBoundLongitude: y(oe),
1190
- southBoundLatitude: y(oe),
1191
- northBoundLatitude: y(oe)
1188
+ westBoundLongitude: y(se),
1189
+ eastBoundLongitude: y(se),
1190
+ southBoundLatitude: y(se),
1191
+ northBoundLatitude: y(se)
1192
1192
  }), is = nt(
1193
1193
  rt,
1194
1194
  {
@@ -1286,7 +1286,7 @@ class ds {
1286
1286
  */
1287
1287
  readFromDocument(t) {
1288
1288
  for (let e = t.firstChild; e; e = e.nextSibling)
1289
- if (e.nodeType == Te.ELEMENT)
1289
+ if (e.nodeType == De.ELEMENT)
1290
1290
  return this.readFromNode(e);
1291
1291
  return null;
1292
1292
  }
@@ -1385,15 +1385,15 @@ function fs(i, t, e) {
1385
1385
  writable: !0
1386
1386
  }) : i[t] = e, i;
1387
1387
  }
1388
- function Ot() {
1389
- return Ot = Object.assign || function(i) {
1388
+ function Lt() {
1389
+ return Lt = Object.assign || function(i) {
1390
1390
  for (var t = 1; t < arguments.length; t++) {
1391
1391
  var e = arguments[t];
1392
1392
  for (var n in e)
1393
1393
  Object.prototype.hasOwnProperty.call(e, n) && (i[n] = e[n]);
1394
1394
  }
1395
1395
  return i;
1396
- }, Ot.apply(this, arguments);
1396
+ }, Lt.apply(this, arguments);
1397
1397
  }
1398
1398
  function gs(i, t) {
1399
1399
  if (i == null) return {};
@@ -1417,15 +1417,15 @@ function Dt(i) {
1417
1417
  if (typeof window < "u" && window.navigator)
1418
1418
  return !!/* @__PURE__ */ navigator.userAgent.match(i);
1419
1419
  }
1420
- var Lt = Dt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Re = Dt(/Edge/i), On = Dt(/firefox/i), we = Dt(/safari/i) && !Dt(/chrome/i) && !Dt(/android/i), cn = Dt(/iP(ad|od|hone)/i), hr = Dt(/chrome/i) && Dt(/android/i), pr = {
1420
+ var Ot = Dt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Me = Dt(/Edge/i), Ln = Dt(/firefox/i), xe = Dt(/safari/i) && !Dt(/chrome/i) && !Dt(/android/i), cn = Dt(/iP(ad|od|hone)/i), hr = Dt(/chrome/i) && Dt(/android/i), pr = {
1421
1421
  capture: !1,
1422
1422
  passive: !1
1423
1423
  };
1424
1424
  function C(i, t, e) {
1425
- i.addEventListener(t, e, !Lt && pr);
1425
+ i.addEventListener(t, e, !Ot && pr);
1426
1426
  }
1427
1427
  function _(i, t, e) {
1428
- i.removeEventListener(t, e, !Lt && pr);
1428
+ i.removeEventListener(t, e, !Ot && pr);
1429
1429
  }
1430
1430
  function Ke(i, t) {
1431
1431
  if (t) {
@@ -1457,14 +1457,14 @@ function xt(i, t, e, n) {
1457
1457
  }
1458
1458
  return null;
1459
1459
  }
1460
- var Ln = /\s+/g;
1460
+ var On = /\s+/g;
1461
1461
  function mt(i, t, e) {
1462
1462
  if (i && t)
1463
1463
  if (i.classList)
1464
1464
  i.classList[e ? "add" : "remove"](t);
1465
1465
  else {
1466
- var n = (" " + i.className + " ").replace(Ln, " ").replace(" " + t + " ", " ");
1467
- i.className = (n + (e ? " " + t : "")).replace(Ln, " ");
1466
+ var n = (" " + i.className + " ").replace(On, " ").replace(" " + t + " ", " ");
1467
+ i.className = (n + (e ? " " + t : "")).replace(On, " ");
1468
1468
  }
1469
1469
  }
1470
1470
  function v(i, t, e) {
@@ -1475,7 +1475,7 @@ function v(i, t, e) {
1475
1475
  !(t in n) && t.indexOf("webkit") === -1 && (t = "-webkit-" + t), n[t] = e + (typeof e == "string" ? "" : "px");
1476
1476
  }
1477
1477
  }
1478
- function ae(i, t) {
1478
+ function le(i, t) {
1479
1479
  var e = "";
1480
1480
  if (typeof i == "string")
1481
1481
  e = i;
@@ -1497,14 +1497,14 @@ function gr(i, t, e) {
1497
1497
  }
1498
1498
  return [];
1499
1499
  }
1500
- function $t() {
1500
+ function Et() {
1501
1501
  var i = document.scrollingElement;
1502
1502
  return i || document.documentElement;
1503
1503
  }
1504
1504
  function W(i, t, e, n, r) {
1505
1505
  if (!(!i.getBoundingClientRect && i !== window)) {
1506
1506
  var o, s, a, l, d, u, c;
1507
- if (i !== window && i.parentNode && i !== $t() ? (o = i.getBoundingClientRect(), s = o.top, a = o.left, l = o.bottom, d = o.right, u = o.height, c = o.width) : (s = 0, a = 0, l = window.innerHeight, d = window.innerWidth, u = window.innerHeight, c = window.innerWidth), (t || e) && i !== window && (r = r || i.parentNode, !Lt))
1507
+ if (i !== window && i.parentNode && i !== Et() ? (o = i.getBoundingClientRect(), s = o.top, a = o.left, l = o.bottom, d = o.right, u = o.height, c = o.width) : (s = 0, a = 0, l = window.innerHeight, d = window.innerWidth, u = window.innerHeight, c = window.innerWidth), (t || e) && i !== window && (r = r || i.parentNode, !Ot))
1508
1508
  do
1509
1509
  if (r && r.getBoundingClientRect && (v(r, "transform") !== "none" || e && v(r, "position") !== "static")) {
1510
1510
  var p = r.getBoundingClientRect();
@@ -1513,7 +1513,7 @@ function W(i, t, e, n, r) {
1513
1513
  }
1514
1514
  while (r = r.parentNode);
1515
1515
  if (n && i !== window) {
1516
- var f = ae(r || i), g = f && f.a, b = f && f.d;
1516
+ var f = le(r || i), g = f && f.a, b = f && f.d;
1517
1517
  f && (s /= b, a /= g, c /= g, u /= b, l = s + u, d = a + c);
1518
1518
  }
1519
1519
  return {
@@ -1530,12 +1530,12 @@ function Rn(i, t, e) {
1530
1530
  for (var n = Vt(i, !0), r = W(i)[t]; n; ) {
1531
1531
  var o = W(n)[e], s = void 0;
1532
1532
  if (s = r >= o, !s) return n;
1533
- if (n === $t()) break;
1533
+ if (n === Et()) break;
1534
1534
  n = Vt(n, !1);
1535
1535
  }
1536
1536
  return !1;
1537
1537
  }
1538
- function de(i, t, e, n) {
1538
+ function ce(i, t, e, n) {
1539
1539
  for (var r = 0, o = 0, s = i.children; o < s.length; ) {
1540
1540
  if (s[o].style.display !== "none" && s[o] !== w.ghost && (n || s[o] !== w.dragged) && xt(s[o], e.draggable, i, !1)) {
1541
1541
  if (r === t)
@@ -1560,10 +1560,10 @@ function bt(i, t) {
1560
1560
  return e;
1561
1561
  }
1562
1562
  function Mn(i) {
1563
- var t = 0, e = 0, n = $t();
1563
+ var t = 0, e = 0, n = Et();
1564
1564
  if (i)
1565
1565
  do {
1566
- var r = ae(i), o = r.a, s = r.d;
1566
+ var r = le(i), o = r.a, s = r.d;
1567
1567
  t += i.scrollLeft * o, e += i.scrollTop * s;
1568
1568
  } while (i !== n && (i = i.parentNode));
1569
1569
  return [t, e];
@@ -1577,19 +1577,19 @@ function bs(i, t) {
1577
1577
  return -1;
1578
1578
  }
1579
1579
  function Vt(i, t) {
1580
- if (!i || !i.getBoundingClientRect) return $t();
1580
+ if (!i || !i.getBoundingClientRect) return Et();
1581
1581
  var e = i, n = !1;
1582
1582
  do
1583
1583
  if (e.clientWidth < e.scrollWidth || e.clientHeight < e.scrollHeight) {
1584
1584
  var r = v(e);
1585
1585
  if (e.clientWidth < e.scrollWidth && (r.overflowX == "auto" || r.overflowX == "scroll") || e.clientHeight < e.scrollHeight && (r.overflowY == "auto" || r.overflowY == "scroll")) {
1586
- if (!e.getBoundingClientRect || e === document.body) return $t();
1586
+ if (!e.getBoundingClientRect || e === document.body) return Et();
1587
1587
  if (n || t) return e;
1588
1588
  n = !0;
1589
1589
  }
1590
1590
  }
1591
1591
  while (e = e.parentNode);
1592
- return $t();
1592
+ return Et();
1593
1593
  }
1594
1594
  function vs(i, t) {
1595
1595
  if (i && t)
@@ -1600,19 +1600,19 @@ function vs(i, t) {
1600
1600
  function Ii(i, t) {
1601
1601
  return Math.round(i.top) === Math.round(t.top) && Math.round(i.left) === Math.round(t.left) && Math.round(i.height) === Math.round(t.height) && Math.round(i.width) === Math.round(t.width);
1602
1602
  }
1603
- var xe;
1603
+ var $e;
1604
1604
  function mr(i, t) {
1605
1605
  return function() {
1606
- if (!xe) {
1606
+ if (!$e) {
1607
1607
  var e = arguments, n = this;
1608
- e.length === 1 ? i.call(n, e[0]) : i.apply(n, e), xe = setTimeout(function() {
1609
- xe = void 0;
1608
+ e.length === 1 ? i.call(n, e[0]) : i.apply(n, e), $e = setTimeout(function() {
1609
+ $e = void 0;
1610
1610
  }, t);
1611
1611
  }
1612
1612
  };
1613
1613
  }
1614
1614
  function ws() {
1615
- clearTimeout(xe), xe = void 0;
1615
+ clearTimeout($e), $e = void 0;
1616
1616
  }
1617
1617
  function yr(i, t, e) {
1618
1618
  i.scrollLeft += t, i.scrollTop += e;
@@ -1646,7 +1646,7 @@ function xs() {
1646
1646
  });
1647
1647
  var o = St({}, i[i.length - 1].rect);
1648
1648
  if (r.thisAnimationDuration) {
1649
- var s = ae(r, !0);
1649
+ var s = le(r, !0);
1650
1650
  s && (o.top -= s.f, o.left -= s.e);
1651
1651
  }
1652
1652
  r.fromRect = o;
@@ -1670,9 +1670,9 @@ function xs() {
1670
1670
  }
1671
1671
  var o = !1, s = 0;
1672
1672
  i.forEach(function(a) {
1673
- var l = 0, d = a.target, u = d.fromRect, c = W(d), p = d.prevFromRect, f = d.prevToRect, g = a.rect, b = ae(d, !0);
1673
+ var l = 0, d = a.target, u = d.fromRect, c = W(d), p = d.prevFromRect, f = d.prevToRect, g = a.rect, b = le(d, !0);
1674
1674
  b && (c.top -= b.f, c.left -= b.e), d.toRect = c, d.thisAnimationDuration && Ii(p, c) && !Ii(u, c) && // Make sure animatingRect is on line between toRect & fromRect
1675
- (g.top - c.top) / (g.left - c.left) === (u.top - c.top) / (u.left - c.left) && (l = $s(g, p, f, r.options)), Ii(c, u) || (d.prevFromRect = u, d.prevToRect = c, l || (l = r.options.animation), r.animate(d, g, c, l)), l && (o = !0, s = Math.max(s, l), clearTimeout(d.animationResetTimer), d.animationResetTimer = setTimeout(function() {
1675
+ (g.top - c.top) / (g.left - c.left) === (u.top - c.top) / (u.left - c.left) && (l = Es(g, p, f, r.options)), Ii(c, u) || (d.prevFromRect = u, d.prevToRect = c, l || (l = r.options.animation), r.animate(d, g, c, l)), l && (o = !0, s = Math.max(s, l), clearTimeout(d.animationResetTimer), d.animationResetTimer = setTimeout(function() {
1676
1676
  d.animationTime = 0, d.prevFromRect = null, d.fromRect = null, d.prevToRect = null, d.thisAnimationDuration = null;
1677
1677
  }, l), d.thisAnimationDuration = l);
1678
1678
  }), clearTimeout(t), o ? t = setTimeout(function() {
@@ -1682,30 +1682,30 @@ function xs() {
1682
1682
  animate: function(n, r, o, s) {
1683
1683
  if (s) {
1684
1684
  v(n, "transition", ""), v(n, "transform", "");
1685
- var a = ae(this.el), l = a && a.a, d = a && a.d, u = (r.left - o.left) / (l || 1), c = (r.top - o.top) / (d || 1);
1686
- n.animatingX = !!u, n.animatingY = !!c, v(n, "transform", "translate3d(" + u + "px," + c + "px,0)"), this.forRepaintDummy = Es(n), v(n, "transition", "transform " + s + "ms" + (this.options.easing ? " " + this.options.easing : "")), v(n, "transform", "translate3d(0,0,0)"), typeof n.animated == "number" && clearTimeout(n.animated), n.animated = setTimeout(function() {
1685
+ var a = le(this.el), l = a && a.a, d = a && a.d, u = (r.left - o.left) / (l || 1), c = (r.top - o.top) / (d || 1);
1686
+ n.animatingX = !!u, n.animatingY = !!c, v(n, "transform", "translate3d(" + u + "px," + c + "px,0)"), this.forRepaintDummy = $s(n), v(n, "transition", "transform " + s + "ms" + (this.options.easing ? " " + this.options.easing : "")), v(n, "transform", "translate3d(0,0,0)"), typeof n.animated == "number" && clearTimeout(n.animated), n.animated = setTimeout(function() {
1687
1687
  v(n, "transition", ""), v(n, "transform", ""), n.animated = !1, n.animatingX = !1, n.animatingY = !1;
1688
1688
  }, s);
1689
1689
  }
1690
1690
  }
1691
1691
  };
1692
1692
  }
1693
- function Es(i) {
1693
+ function $s(i) {
1694
1694
  return i.offsetWidth;
1695
1695
  }
1696
- function $s(i, t, e, n) {
1696
+ function Es(i, t, e, n) {
1697
1697
  return Math.sqrt(Math.pow(t.top - i.top, 2) + Math.pow(t.left - i.left, 2)) / Math.sqrt(Math.pow(t.top - e.top, 2) + Math.pow(t.left - e.left, 2)) * n.animation;
1698
1698
  }
1699
- var te = [], Ni = {
1699
+ var ee = [], Ni = {
1700
1700
  initializeByDefault: !0
1701
- }, Me = {
1701
+ }, Ie = {
1702
1702
  mount: function(t) {
1703
1703
  for (var e in Ni)
1704
1704
  Ni.hasOwnProperty(e) && !(e in t) && (t[e] = Ni[e]);
1705
- te.forEach(function(n) {
1705
+ ee.forEach(function(n) {
1706
1706
  if (n.pluginName === t.pluginName)
1707
1707
  throw "Sortable: Cannot mount plugin ".concat(t.pluginName, " more than once");
1708
- }), te.push(t);
1708
+ }), ee.push(t);
1709
1709
  },
1710
1710
  pluginEvent: function(t, e, n) {
1711
1711
  var r = this;
@@ -1713,7 +1713,7 @@ var te = [], Ni = {
1713
1713
  r.eventCanceled = !0;
1714
1714
  };
1715
1715
  var o = t + "Global";
1716
- te.forEach(function(s) {
1716
+ ee.forEach(function(s) {
1717
1717
  e[s.pluginName] && (e[s.pluginName][o] && e[s.pluginName][o](St({
1718
1718
  sortable: e
1719
1719
  }, n)), e.options[s.pluginName] && e[s.pluginName][t] && e[s.pluginName][t](St({
@@ -1722,11 +1722,11 @@ var te = [], Ni = {
1722
1722
  });
1723
1723
  },
1724
1724
  initializePlugins: function(t, e, n, r) {
1725
- te.forEach(function(a) {
1725
+ ee.forEach(function(a) {
1726
1726
  var l = a.pluginName;
1727
1727
  if (!(!t.options[l] && !a.initializeByDefault)) {
1728
1728
  var d = new a(t, e, t.options);
1729
- d.sortable = t, d.options = t.options, t[l] = d, Ot(n, d.defaults);
1729
+ d.sortable = t, d.options = t.options, t[l] = d, Lt(n, d.defaults);
1730
1730
  }
1731
1731
  });
1732
1732
  for (var o in t.options)
@@ -1737,13 +1737,13 @@ var te = [], Ni = {
1737
1737
  },
1738
1738
  getEventProperties: function(t, e) {
1739
1739
  var n = {};
1740
- return te.forEach(function(r) {
1741
- typeof r.eventProperties == "function" && Ot(n, r.eventProperties.call(e[r.pluginName], t));
1740
+ return ee.forEach(function(r) {
1741
+ typeof r.eventProperties == "function" && Lt(n, r.eventProperties.call(e[r.pluginName], t));
1742
1742
  }), n;
1743
1743
  },
1744
1744
  modifyOption: function(t, e, n) {
1745
1745
  var r;
1746
- return te.forEach(function(o) {
1746
+ return ee.forEach(function(o) {
1747
1747
  t[o.pluginName] && o.optionListeners && typeof o.optionListeners[e] == "function" && (r = o.optionListeners[e].call(t[o.pluginName], n));
1748
1748
  }), r;
1749
1749
  }
@@ -1752,11 +1752,11 @@ function Ss(i) {
1752
1752
  var t = i.sortable, e = i.rootEl, n = i.name, r = i.targetEl, o = i.cloneEl, s = i.toEl, a = i.fromEl, l = i.oldIndex, d = i.newIndex, u = i.oldDraggableIndex, c = i.newDraggableIndex, p = i.originalEvent, f = i.putSortable, g = i.extraEventProperties;
1753
1753
  if (t = t || e && e[ft], !!t) {
1754
1754
  var b, N = t.options, J = "on" + n.charAt(0).toUpperCase() + n.substr(1);
1755
- window.CustomEvent && !Lt && !Re ? b = new CustomEvent(n, {
1755
+ window.CustomEvent && !Ot && !Me ? b = new CustomEvent(n, {
1756
1756
  bubbles: !0,
1757
1757
  cancelable: !0
1758
1758
  }) : (b = document.createEvent("Event"), b.initEvent(n, !0, !0)), b.to = s || e, b.from = a || e, b.item = r || e, b.clone = o, b.oldIndex = l, b.newIndex = d, b.oldDraggableIndex = u, b.newDraggableIndex = c, b.originalEvent = p, b.pullMode = f ? f.lastPutMode : void 0;
1759
- var U = St(St({}, g), Me.getEventProperties(n, t));
1759
+ var U = St(St({}, g), Ie.getEventProperties(n, t));
1760
1760
  for (var st in U)
1761
1761
  b[st] = U[st];
1762
1762
  e && e.dispatchEvent(b), N[J] && N[J].call(t, b);
@@ -1764,30 +1764,30 @@ function Ss(i) {
1764
1764
  }
1765
1765
  var As = ["evt"], ht = function(t, e) {
1766
1766
  var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, o = ms(n, As);
1767
- Me.pluginEvent.bind(w)(t, e, St({
1767
+ Ie.pluginEvent.bind(w)(t, e, St({
1768
1768
  dragEl: h,
1769
1769
  parentEl: z,
1770
- ghostEl: E,
1771
- rootEl: V,
1772
- nextEl: Yt,
1770
+ ghostEl: $,
1771
+ rootEl: k,
1772
+ nextEl: Wt,
1773
1773
  lastDownEl: ze,
1774
1774
  cloneEl: B,
1775
- cloneHidden: Nt,
1776
- dragStarted: ge,
1775
+ cloneHidden: Ht,
1776
+ dragStarted: me,
1777
1777
  putSortable: et,
1778
1778
  activeSortable: w.active,
1779
1779
  originalEvent: r,
1780
- oldIndex: se,
1780
+ oldIndex: ae,
1781
1781
  oldDraggableIndex: Ee,
1782
1782
  newIndex: yt,
1783
- newDraggableIndex: It,
1784
- hideGhostForTarget: $r,
1783
+ newDraggableIndex: Nt,
1784
+ hideGhostForTarget: Er,
1785
1785
  unhideGhostForTarget: Sr,
1786
1786
  cloneNowHidden: function() {
1787
- Nt = !0;
1787
+ Ht = !0;
1788
1788
  },
1789
1789
  cloneNowShown: function() {
1790
- Nt = !1;
1790
+ Ht = !1;
1791
1791
  },
1792
1792
  dispatchSortableEvent: function(a) {
1793
1793
  at({
@@ -1803,22 +1803,22 @@ function at(i) {
1803
1803
  putSortable: et,
1804
1804
  cloneEl: B,
1805
1805
  targetEl: h,
1806
- rootEl: V,
1807
- oldIndex: se,
1806
+ rootEl: k,
1807
+ oldIndex: ae,
1808
1808
  oldDraggableIndex: Ee,
1809
1809
  newIndex: yt,
1810
- newDraggableIndex: It
1810
+ newDraggableIndex: Nt
1811
1811
  }, i));
1812
1812
  }
1813
- var h, z, E, V, Yt, ze, B, Nt, se, yt, Ee, It, He, et, ne = !1, Qe = !1, ti = [], qt, wt, Hi, Vi, In, Nn, ge, ee, $e, Se = !1, Ve = !1, Ze, ot, ki = [], Xi = !1, ei = [], Ai = typeof document < "u", ke = cn, Hn = Re || Lt ? "cssFloat" : "float", _s = Ai && !hr && !cn && "draggable" in document.createElement("div"), wr = function() {
1813
+ var h, z, $, k, Wt, ze, B, Ht, ae, yt, Ee, Nt, ke, et, re = !1, Qe = !1, ti = [], Xt, wt, Hi, ki, In, Nn, me, ie, Se, Ae = !1, Ve = !1, Ze, ot, Vi = [], Xi = !1, ei = [], Ai = typeof document < "u", Be = cn, Hn = Me || Ot ? "cssFloat" : "float", _s = Ai && !hr && !cn && "draggable" in document.createElement("div"), wr = function() {
1814
1814
  if (Ai) {
1815
- if (Lt)
1815
+ if (Ot)
1816
1816
  return !1;
1817
1817
  var i = document.createElement("x");
1818
1818
  return i.style.cssText = "pointer-events:auto", i.style.pointerEvents === "auto";
1819
1819
  }
1820
1820
  }(), xr = function(t, e) {
1821
- var n = v(t), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), o = de(t, 0, e), s = de(t, 1, e), a = o && v(o), l = s && v(s), d = a && parseInt(a.marginLeft) + parseInt(a.marginRight) + W(o).width, u = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + W(s).width;
1821
+ var n = v(t), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), o = ce(t, 0, e), s = ce(t, 1, e), a = o && v(o), l = s && v(s), d = a && parseInt(a.marginLeft) + parseInt(a.marginRight) + W(o).width, u = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + W(s).width;
1822
1822
  if (n.display === "flex")
1823
1823
  return n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal";
1824
1824
  if (n.display === "grid")
@@ -1841,7 +1841,7 @@ var h, z, E, V, Yt, ze, B, Nt, se, yt, Ee, It, He, et, ne = !1, Qe = !1, ti = []
1841
1841
  return n = r;
1842
1842
  }
1843
1843
  }), n;
1844
- }, Er = function(t) {
1844
+ }, $r = function(t) {
1845
1845
  function e(o, s) {
1846
1846
  return function(a, l, d, u) {
1847
1847
  var c = a.options.group.name && l.options.group.name && a.options.group.name === l.options.group.name;
@@ -1861,16 +1861,16 @@ var h, z, E, V, Yt, ze, B, Nt, se, yt, Ee, It, He, et, ne = !1, Qe = !1, ti = []
1861
1861
  (!r || je(r) != "object") && (r = {
1862
1862
  name: r
1863
1863
  }), n.name = r.name, n.checkPull = e(r.pull, !0), n.checkPut = e(r.put), n.revertClone = r.revertClone, t.group = n;
1864
- }, $r = function() {
1865
- !wr && E && v(E, "display", "none");
1864
+ }, Er = function() {
1865
+ !wr && $ && v($, "display", "none");
1866
1866
  }, Sr = function() {
1867
- !wr && E && v(E, "display", "");
1867
+ !wr && $ && v($, "display", "");
1868
1868
  };
1869
1869
  Ai && !hr && document.addEventListener("click", function(i) {
1870
1870
  if (Qe)
1871
1871
  return i.preventDefault(), i.stopPropagation && i.stopPropagation(), i.stopImmediatePropagation && i.stopImmediatePropagation(), Qe = !1, !1;
1872
1872
  }, !0);
1873
- var Xt = function(t) {
1873
+ var Yt = function(t) {
1874
1874
  if (h) {
1875
1875
  t = t.touches ? t.touches[0] : t;
1876
1876
  var e = Ts(t.clientX, t.clientY);
@@ -1887,7 +1887,7 @@ var Xt = function(t) {
1887
1887
  function w(i, t) {
1888
1888
  if (!(i && i.nodeType && i.nodeType === 1))
1889
1889
  throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(i));
1890
- this.el = i, this.options = t = Ot({}, t), i[ft] = this;
1890
+ this.el = i, this.options = t = Lt({}, t), i[ft] = this;
1891
1891
  var e = {
1892
1892
  group: null,
1893
1893
  sort: !0,
@@ -1931,22 +1931,22 @@ function w(i, t) {
1931
1931
  y: 0
1932
1932
  },
1933
1933
  // Disabled on Safari: #1571; Enabled on Safari IOS: #2244
1934
- supportPointer: w.supportPointer !== !1 && "PointerEvent" in window && (!we || cn),
1934
+ supportPointer: w.supportPointer !== !1 && "PointerEvent" in window && (!xe || cn),
1935
1935
  emptyInsertThreshold: 5
1936
1936
  };
1937
- Me.initializePlugins(this, i, e);
1937
+ Ie.initializePlugins(this, i, e);
1938
1938
  for (var n in e)
1939
1939
  !(n in t) && (t[n] = e[n]);
1940
- Er(t);
1940
+ $r(t);
1941
1941
  for (var r in this)
1942
1942
  r.charAt(0) === "_" && typeof this[r] == "function" && (this[r] = this[r].bind(this));
1943
- this.nativeDraggable = t.forceFallback ? !1 : _s, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? C(i, "pointerdown", this._onTapStart) : (C(i, "mousedown", this._onTapStart), C(i, "touchstart", this._onTapStart)), this.nativeDraggable && (C(i, "dragover", this), C(i, "dragenter", this)), ti.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), Ot(this, xs());
1943
+ this.nativeDraggable = t.forceFallback ? !1 : _s, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? C(i, "pointerdown", this._onTapStart) : (C(i, "mousedown", this._onTapStart), C(i, "touchstart", this._onTapStart)), this.nativeDraggable && (C(i, "dragover", this), C(i, "dragenter", this)), ti.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), Lt(this, xs());
1944
1944
  }
1945
1945
  w.prototype = /** @lends Sortable.prototype */
1946
1946
  {
1947
1947
  constructor: w,
1948
1948
  _isOutsideThisEl: function(t) {
1949
- !this.el.contains(t) && t !== this.el && (ee = null);
1949
+ !this.el.contains(t) && t !== this.el && (ie = null);
1950
1950
  },
1951
1951
  _getDirection: function(t, e) {
1952
1952
  return typeof this.options.direction == "function" ? this.options.direction.call(this, t, e, h) : this.options.direction;
@@ -1954,8 +1954,8 @@ w.prototype = /** @lends Sortable.prototype */
1954
1954
  _onTapStart: function(t) {
1955
1955
  if (t.cancelable) {
1956
1956
  var e = this, n = this.el, r = this.options, o = r.preventOnFilter, s = t.type, a = t.touches && t.touches[0] || t.pointerType && t.pointerType === "touch" && t, l = (a || t).target, d = t.target.shadowRoot && (t.path && t.path[0] || t.composedPath && t.composedPath()[0]) || l, u = r.filter;
1957
- if (Hs(n), !h && !(/mousedown|pointerdown/.test(s) && t.button !== 0 || r.disabled) && !d.isContentEditable && !(!this.nativeDraggable && we && l && l.tagName.toUpperCase() === "SELECT") && (l = xt(l, r.draggable, n, !1), !(l && l.animated) && ze !== l)) {
1958
- if (se = bt(l), Ee = bt(l, r.draggable), typeof u == "function") {
1957
+ if (Hs(n), !h && !(/mousedown|pointerdown/.test(s) && t.button !== 0 || r.disabled) && !d.isContentEditable && !(!this.nativeDraggable && xe && l && l.tagName.toUpperCase() === "SELECT") && (l = xt(l, r.draggable, n, !1), !(l && l.animated) && ze !== l)) {
1958
+ if (ae = bt(l), Ee = bt(l, r.draggable), typeof u == "function") {
1959
1959
  if (u.call(this, t, l, this)) {
1960
1960
  at({
1961
1961
  sortable: e,
@@ -1993,27 +1993,27 @@ w.prototype = /** @lends Sortable.prototype */
1993
1993
  var r = this, o = r.el, s = r.options, a = o.ownerDocument, l;
1994
1994
  if (n && !h && n.parentNode === o) {
1995
1995
  var d = W(n);
1996
- if (V = o, h = n, z = h.parentNode, Yt = h.nextSibling, ze = n, He = s.group, w.dragged = h, qt = {
1996
+ if (k = o, h = n, z = h.parentNode, Wt = h.nextSibling, ze = n, ke = s.group, w.dragged = h, Xt = {
1997
1997
  target: h,
1998
1998
  clientX: (e || t).clientX,
1999
1999
  clientY: (e || t).clientY
2000
- }, In = qt.clientX - d.left, Nn = qt.clientY - d.top, this._lastX = (e || t).clientX, this._lastY = (e || t).clientY, h.style["will-change"] = "all", l = function() {
2000
+ }, In = Xt.clientX - d.left, Nn = Xt.clientY - d.top, this._lastX = (e || t).clientX, this._lastY = (e || t).clientY, h.style["will-change"] = "all", l = function() {
2001
2001
  if (ht("delayEnded", r, {
2002
2002
  evt: t
2003
2003
  }), w.eventCanceled) {
2004
2004
  r._onDrop();
2005
2005
  return;
2006
2006
  }
2007
- r._disableDelayedDragEvents(), !On && r.nativeDraggable && (h.draggable = !0), r._triggerDragStart(t, e), at({
2007
+ r._disableDelayedDragEvents(), !Ln && r.nativeDraggable && (h.draggable = !0), r._triggerDragStart(t, e), at({
2008
2008
  sortable: r,
2009
2009
  name: "choose",
2010
2010
  originalEvent: t
2011
2011
  }), mt(h, s.chosenClass, !0);
2012
2012
  }, s.ignore.split(",").forEach(function(u) {
2013
2013
  gr(h, u.trim(), Bi);
2014
- }), C(a, "dragover", Xt), C(a, "mousemove", Xt), C(a, "touchmove", Xt), s.supportPointer ? (C(a, "pointerup", r._onDrop), !this.nativeDraggable && C(a, "pointercancel", r._onDrop)) : (C(a, "mouseup", r._onDrop), C(a, "touchend", r._onDrop), C(a, "touchcancel", r._onDrop)), On && this.nativeDraggable && (this.options.touchStartThreshold = 4, h.draggable = !0), ht("delayStart", this, {
2014
+ }), C(a, "dragover", Yt), C(a, "mousemove", Yt), C(a, "touchmove", Yt), s.supportPointer ? (C(a, "pointerup", r._onDrop), !this.nativeDraggable && C(a, "pointercancel", r._onDrop)) : (C(a, "mouseup", r._onDrop), C(a, "touchend", r._onDrop), C(a, "touchcancel", r._onDrop)), Ln && this.nativeDraggable && (this.options.touchStartThreshold = 4, h.draggable = !0), ht("delayStart", this, {
2015
2015
  evt: t
2016
- }), s.delay && (!s.delayOnTouchOnly || e) && (!this.nativeDraggable || !(Re || Lt))) {
2016
+ }), s.delay && (!s.delayOnTouchOnly || e) && (!this.nativeDraggable || !(Me || Ot))) {
2017
2017
  if (w.eventCanceled) {
2018
2018
  this._onDrop();
2019
2019
  return;
@@ -2035,7 +2035,7 @@ w.prototype = /** @lends Sortable.prototype */
2035
2035
  _(t, "mouseup", this._disableDelayedDrag), _(t, "touchend", this._disableDelayedDrag), _(t, "touchcancel", this._disableDelayedDrag), _(t, "pointerup", this._disableDelayedDrag), _(t, "pointercancel", this._disableDelayedDrag), _(t, "mousemove", this._delayedDragTouchMoveHandler), _(t, "touchmove", this._delayedDragTouchMoveHandler), _(t, "pointermove", this._delayedDragTouchMoveHandler);
2036
2036
  },
2037
2037
  _triggerDragStart: function(t, e) {
2038
- e = e || t.pointerType == "touch" && t, !this.nativeDraggable || e ? this.options.supportPointer ? C(document, "pointermove", this._onTouchMove) : e ? C(document, "touchmove", this._onTouchMove) : C(document, "mousemove", this._onTouchMove) : (C(h, "dragend", this), C(V, "dragstart", this._onDragStart));
2038
+ e = e || t.pointerType == "touch" && t, !this.nativeDraggable || e ? this.options.supportPointer ? C(document, "pointermove", this._onTouchMove) : e ? C(document, "touchmove", this._onTouchMove) : C(document, "mousemove", this._onTouchMove) : (C(h, "dragend", this), C(k, "dragstart", this._onDragStart));
2039
2039
  try {
2040
2040
  document.selection ? qe(function() {
2041
2041
  document.selection.empty();
@@ -2044,7 +2044,7 @@ w.prototype = /** @lends Sortable.prototype */
2044
2044
  }
2045
2045
  },
2046
2046
  _dragStarted: function(t, e) {
2047
- if (ne = !1, V && h) {
2047
+ if (re = !1, k && h) {
2048
2048
  ht("dragStarted", this, {
2049
2049
  evt: e
2050
2050
  }), this.nativeDraggable && C(document, "dragover", Ds);
@@ -2059,7 +2059,7 @@ w.prototype = /** @lends Sortable.prototype */
2059
2059
  },
2060
2060
  _emulateDragOver: function() {
2061
2061
  if (wt) {
2062
- this._lastX = wt.clientX, this._lastY = wt.clientY, $r();
2062
+ this._lastX = wt.clientX, this._lastY = wt.clientY, Er();
2063
2063
  for (var t = document.elementFromPoint(wt.clientX, wt.clientY), e = t; t && t.shadowRoot && (t = t.shadowRoot.elementFromPoint(wt.clientX, wt.clientY), t !== e); )
2064
2064
  e = t;
2065
2065
  if (h.parentNode[ft]._isOutsideThisEl(t), e)
@@ -2080,15 +2080,15 @@ w.prototype = /** @lends Sortable.prototype */
2080
2080
  }
2081
2081
  },
2082
2082
  _onTouchMove: function(t) {
2083
- if (qt) {
2084
- var e = this.options, n = e.fallbackTolerance, r = e.fallbackOffset, o = t.touches ? t.touches[0] : t, s = E && ae(E, !0), a = E && s && s.a, l = E && s && s.d, d = ke && ot && Mn(ot), u = (o.clientX - qt.clientX + r.x) / (a || 1) + (d ? d[0] - ki[0] : 0) / (a || 1), c = (o.clientY - qt.clientY + r.y) / (l || 1) + (d ? d[1] - ki[1] : 0) / (l || 1);
2085
- if (!w.active && !ne) {
2083
+ if (Xt) {
2084
+ var e = this.options, n = e.fallbackTolerance, r = e.fallbackOffset, o = t.touches ? t.touches[0] : t, s = $ && le($, !0), a = $ && s && s.a, l = $ && s && s.d, d = Be && ot && Mn(ot), u = (o.clientX - Xt.clientX + r.x) / (a || 1) + (d ? d[0] - Vi[0] : 0) / (a || 1), c = (o.clientY - Xt.clientY + r.y) / (l || 1) + (d ? d[1] - Vi[1] : 0) / (l || 1);
2085
+ if (!w.active && !re) {
2086
2086
  if (n && Math.max(Math.abs(o.clientX - this._lastX), Math.abs(o.clientY - this._lastY)) < n)
2087
2087
  return;
2088
2088
  this._onDragStart(t, !0);
2089
2089
  }
2090
- if (E) {
2091
- s ? (s.e += u - (Hi || 0), s.f += c - (Vi || 0)) : s = {
2090
+ if ($) {
2091
+ s ? (s.e += u - (Hi || 0), s.f += c - (ki || 0)) : s = {
2092
2092
  a: 1,
2093
2093
  b: 0,
2094
2094
  c: 0,
@@ -2097,20 +2097,20 @@ w.prototype = /** @lends Sortable.prototype */
2097
2097
  f: c
2098
2098
  };
2099
2099
  var p = "matrix(".concat(s.a, ",").concat(s.b, ",").concat(s.c, ",").concat(s.d, ",").concat(s.e, ",").concat(s.f, ")");
2100
- v(E, "webkitTransform", p), v(E, "mozTransform", p), v(E, "msTransform", p), v(E, "transform", p), Hi = u, Vi = c, wt = o;
2100
+ v($, "webkitTransform", p), v($, "mozTransform", p), v($, "msTransform", p), v($, "transform", p), Hi = u, ki = c, wt = o;
2101
2101
  }
2102
2102
  t.cancelable && t.preventDefault();
2103
2103
  }
2104
2104
  },
2105
2105
  _appendGhost: function() {
2106
- if (!E) {
2107
- var t = this.options.fallbackOnBody ? document.body : V, e = W(h, !0, ke, !0, t), n = this.options;
2108
- if (ke) {
2106
+ if (!$) {
2107
+ var t = this.options.fallbackOnBody ? document.body : k, e = W(h, !0, Be, !0, t), n = this.options;
2108
+ if (Be) {
2109
2109
  for (ot = t; v(ot, "position") === "static" && v(ot, "transform") === "none" && ot !== document; )
2110
2110
  ot = ot.parentNode;
2111
- ot !== document.body && ot !== document.documentElement ? (ot === document && (ot = $t()), e.top += ot.scrollTop, e.left += ot.scrollLeft) : ot = $t(), ki = Mn(ot);
2111
+ ot !== document.body && ot !== document.documentElement ? (ot === document && (ot = Et()), e.top += ot.scrollTop, e.left += ot.scrollLeft) : ot = Et(), Vi = Mn(ot);
2112
2112
  }
2113
- E = h.cloneNode(!0), mt(E, n.ghostClass, !1), mt(E, n.fallbackClass, !0), mt(E, n.dragClass, !0), v(E, "transition", ""), v(E, "transform", ""), v(E, "box-sizing", "border-box"), v(E, "margin", 0), v(E, "top", e.top), v(E, "left", e.left), v(E, "width", e.width), v(E, "height", e.height), v(E, "opacity", "0.8"), v(E, "position", ke ? "absolute" : "fixed"), v(E, "zIndex", "100000"), v(E, "pointerEvents", "none"), w.ghost = E, t.appendChild(E), v(E, "transform-origin", In / parseInt(E.style.width) * 100 + "% " + Nn / parseInt(E.style.height) * 100 + "%");
2113
+ $ = h.cloneNode(!0), mt($, n.ghostClass, !1), mt($, n.fallbackClass, !0), mt($, n.dragClass, !0), v($, "transition", ""), v($, "transform", ""), v($, "box-sizing", "border-box"), v($, "margin", 0), v($, "top", e.top), v($, "left", e.left), v($, "width", e.width), v($, "height", e.height), v($, "opacity", "0.8"), v($, "position", Be ? "absolute" : "fixed"), v($, "zIndex", "100000"), v($, "pointerEvents", "none"), w.ghost = $, t.appendChild($), v($, "transform-origin", In / parseInt($.style.width) * 100 + "% " + Nn / parseInt($.style.height) * 100 + "%");
2114
2114
  }
2115
2115
  },
2116
2116
  _onDragStart: function(t, e) {
@@ -2122,17 +2122,17 @@ w.prototype = /** @lends Sortable.prototype */
2122
2122
  return;
2123
2123
  }
2124
2124
  ht("setupClone", this), w.eventCanceled || (B = br(h), B.removeAttribute("id"), B.draggable = !1, B.style["will-change"] = "", this._hideClone(), mt(B, this.options.chosenClass, !1), w.clone = B), n.cloneId = qe(function() {
2125
- ht("clone", n), !w.eventCanceled && (n.options.removeCloneOnHide || V.insertBefore(B, h), n._hideClone(), at({
2125
+ ht("clone", n), !w.eventCanceled && (n.options.removeCloneOnHide || k.insertBefore(B, h), n._hideClone(), at({
2126
2126
  sortable: n,
2127
2127
  name: "clone"
2128
2128
  }));
2129
- }), !e && mt(h, o.dragClass, !0), e ? (Qe = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (_(document, "mouseup", n._onDrop), _(document, "touchend", n._onDrop), _(document, "touchcancel", n._onDrop), r && (r.effectAllowed = "move", o.setData && o.setData.call(n, r, h)), C(document, "drop", n), v(h, "transform", "translateZ(0)")), ne = !0, n._dragStartId = qe(n._dragStarted.bind(n, e, t)), C(document, "selectstart", n), ge = !0, window.getSelection().removeAllRanges(), we && v(document.body, "user-select", "none");
2129
+ }), !e && mt(h, o.dragClass, !0), e ? (Qe = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (_(document, "mouseup", n._onDrop), _(document, "touchend", n._onDrop), _(document, "touchcancel", n._onDrop), r && (r.effectAllowed = "move", o.setData && o.setData.call(n, r, h)), C(document, "drop", n), v(h, "transform", "translateZ(0)")), re = !0, n._dragStartId = qe(n._dragStarted.bind(n, e, t)), C(document, "selectstart", n), me = !0, window.getSelection().removeAllRanges(), xe && v(document.body, "user-select", "none");
2130
2130
  },
2131
2131
  // Returns true - if no further action is needed (either inserted or another condition)
2132
2132
  _onDragOver: function(t) {
2133
- var e = this.el, n = t.target, r, o, s, a = this.options, l = a.group, d = w.active, u = He === l, c = a.sort, p = et || d, f, g = this, b = !1;
2133
+ var e = this.el, n = t.target, r, o, s, a = this.options, l = a.group, d = w.active, u = ke === l, c = a.sort, p = et || d, f, g = this, b = !1;
2134
2134
  if (Xi) return;
2135
- function N(gt, Ut) {
2135
+ function N(gt, Ft) {
2136
2136
  ht(gt, g, St({
2137
2137
  evt: t,
2138
2138
  isOwner: u,
@@ -2144,11 +2144,11 @@ w.prototype = /** @lends Sortable.prototype */
2144
2144
  fromSortable: p,
2145
2145
  target: n,
2146
2146
  completed: U,
2147
- onMove: function(Ft, At) {
2148
- return Be(V, e, h, r, Ft, W(Ft), t, At);
2147
+ onMove: function(jt, At) {
2148
+ return Ue(k, e, h, r, jt, W(jt), t, At);
2149
2149
  },
2150
2150
  changed: st
2151
- }, Ut));
2151
+ }, Ft));
2152
2152
  }
2153
2153
  function J() {
2154
2154
  N("dragOverAnimationCapture"), g.captureAnimationState(), g !== p && p.captureAnimationState();
@@ -2158,56 +2158,56 @@ w.prototype = /** @lends Sortable.prototype */
2158
2158
  insertion: gt
2159
2159
  }), gt && (u ? d._hideClone() : d._showClone(g), g !== p && (mt(h, et ? et.options.ghostClass : d.options.ghostClass, !1), mt(h, a.ghostClass, !0)), et !== g && g !== w.active ? et = g : g === w.active && et && (et = null), p === g && (g._ignoreWhileAnimating = n), g.animateAll(function() {
2160
2160
  N("dragOverAnimationComplete"), g._ignoreWhileAnimating = null;
2161
- }), g !== p && (p.animateAll(), p._ignoreWhileAnimating = null)), (n === h && !h.animated || n === e && !n.animated) && (ee = null), !a.dragoverBubble && !t.rootEl && n !== document && (h.parentNode[ft]._isOutsideThisEl(t.target), !gt && Xt(t)), !a.dragoverBubble && t.stopPropagation && t.stopPropagation(), b = !0;
2161
+ }), g !== p && (p.animateAll(), p._ignoreWhileAnimating = null)), (n === h && !h.animated || n === e && !n.animated) && (ie = null), !a.dragoverBubble && !t.rootEl && n !== document && (h.parentNode[ft]._isOutsideThisEl(t.target), !gt && Yt(t)), !a.dragoverBubble && t.stopPropagation && t.stopPropagation(), b = !0;
2162
2162
  }
2163
2163
  function st() {
2164
- yt = bt(h), It = bt(h, a.draggable), at({
2164
+ yt = bt(h), Nt = bt(h, a.draggable), at({
2165
2165
  sortable: g,
2166
2166
  name: "change",
2167
2167
  toEl: e,
2168
2168
  newIndex: yt,
2169
- newDraggableIndex: It,
2169
+ newDraggableIndex: Nt,
2170
2170
  originalEvent: t
2171
2171
  });
2172
2172
  }
2173
2173
  if (t.preventDefault !== void 0 && t.cancelable && t.preventDefault(), n = xt(n, a.draggable, e, !0), N("dragOver"), w.eventCanceled) return b;
2174
2174
  if (h.contains(t.target) || n.animated && n.animatingX && n.animatingY || g._ignoreWhileAnimating === n)
2175
2175
  return U(!1);
2176
- if (Qe = !1, d && !a.disabled && (u ? c || (s = z !== V) : et === this || (this.lastPutMode = He.checkPull(this, d, h, t)) && l.checkPut(this, d, h, t))) {
2176
+ if (Qe = !1, d && !a.disabled && (u ? c || (s = z !== k) : et === this || (this.lastPutMode = ke.checkPull(this, d, h, t)) && l.checkPut(this, d, h, t))) {
2177
2177
  if (f = this._getDirection(t, n) === "vertical", r = W(h), N("dragOverValid"), w.eventCanceled) return b;
2178
2178
  if (s)
2179
- return z = V, J(), this._hideClone(), N("revert"), w.eventCanceled || (Yt ? V.insertBefore(h, Yt) : V.appendChild(h)), U(!0);
2179
+ return z = k, J(), this._hideClone(), N("revert"), w.eventCanceled || (Wt ? k.insertBefore(h, Wt) : k.appendChild(h)), U(!0);
2180
2180
  var K = un(e, a.draggable);
2181
2181
  if (!K || Rs(t, f, this) && !K.animated) {
2182
2182
  if (K === h)
2183
2183
  return U(!1);
2184
- if (K && e === t.target && (n = K), n && (o = W(n)), Be(V, e, h, r, n, o, t, !!n) !== !1)
2184
+ if (K && e === t.target && (n = K), n && (o = W(n)), Ue(k, e, h, r, n, o, t, !!n) !== !1)
2185
2185
  return J(), K && K.nextSibling ? e.insertBefore(h, K.nextSibling) : e.appendChild(h), z = e, st(), U(!0);
2186
- } else if (K && Ls(t, f, this)) {
2187
- var $ = de(e, 0, a, !0);
2188
- if ($ === h)
2186
+ } else if (K && Os(t, f, this)) {
2187
+ var E = ce(e, 0, a, !0);
2188
+ if (E === h)
2189
2189
  return U(!1);
2190
- if (n = $, o = W(n), Be(V, e, h, r, n, o, t, !1) !== !1)
2191
- return J(), e.insertBefore(h, $), z = e, st(), U(!0);
2190
+ if (n = E, o = W(n), Ue(k, e, h, r, n, o, t, !1) !== !1)
2191
+ return J(), e.insertBefore(h, E), z = e, st(), U(!0);
2192
2192
  } else if (n.parentNode === e) {
2193
2193
  o = W(n);
2194
- var m = 0, A, M = h.parentNode !== e, L = !Cs(h.animated && h.toRect || r, n.animated && n.toRect || o, f), q = f ? "top" : "left", X = Rn(n, "top", "top") || Rn(h, "top", "top"), H = X ? X.scrollTop : void 0;
2195
- ee !== n && (A = o[q], Se = !1, Ve = !L && a.invertSwap || M), m = Ms(t, n, o, f, L ? 1 : a.swapThreshold, a.invertedSwapThreshold == null ? a.swapThreshold : a.invertedSwapThreshold, Ve, ee === n);
2194
+ var m = 0, A, M = h.parentNode !== e, O = !Cs(h.animated && h.toRect || r, n.animated && n.toRect || o, f), q = f ? "top" : "left", X = Rn(n, "top", "top") || Rn(h, "top", "top"), H = X ? X.scrollTop : void 0;
2195
+ ie !== n && (A = o[q], Ae = !1, Ve = !O && a.invertSwap || M), m = Ms(t, n, o, f, O ? 1 : a.swapThreshold, a.invertedSwapThreshold == null ? a.swapThreshold : a.invertedSwapThreshold, Ve, ie === n);
2196
2196
  var R;
2197
2197
  if (m !== 0) {
2198
2198
  var Z = bt(h);
2199
2199
  do
2200
2200
  Z -= m, R = z.children[Z];
2201
- while (R && (v(R, "display") === "none" || R === E));
2201
+ while (R && (v(R, "display") === "none" || R === $));
2202
2202
  }
2203
2203
  if (m === 0 || R === n)
2204
2204
  return U(!1);
2205
- ee = n, $e = m;
2205
+ ie = n, Se = m;
2206
2206
  var dt = n.nextElementSibling, tt = !1;
2207
2207
  tt = m === 1;
2208
- var ct = Be(V, e, h, r, n, o, t, tt);
2208
+ var ct = Ue(k, e, h, r, n, o, t, tt);
2209
2209
  if (ct !== !1)
2210
- return (ct === 1 || ct === -1) && (tt = ct === 1), Xi = !0, setTimeout(Os, 30), J(), tt && !dt ? e.appendChild(h) : n.parentNode.insertBefore(h, tt ? dt : n), X && yr(X, 0, H - X.scrollTop), z = h.parentNode, A !== void 0 && !Ve && (Ze = Math.abs(A - W(n)[q])), st(), U(!0);
2210
+ return (ct === 1 || ct === -1) && (tt = ct === 1), Xi = !0, setTimeout(Ls, 30), J(), tt && !dt ? e.appendChild(h) : n.parentNode.insertBefore(h, tt ? dt : n), X && yr(X, 0, H - X.scrollTop), z = h.parentNode, A !== void 0 && !Ve && (Ze = Math.abs(A - W(n)[q])), st(), U(!0);
2211
2211
  }
2212
2212
  if (e.contains(h))
2213
2213
  return U(!1);
@@ -2216,7 +2216,7 @@ w.prototype = /** @lends Sortable.prototype */
2216
2216
  },
2217
2217
  _ignoreWhileAnimating: null,
2218
2218
  _offMoveEvents: function() {
2219
- _(document, "mousemove", this._onTouchMove), _(document, "touchmove", this._onTouchMove), _(document, "pointermove", this._onTouchMove), _(document, "dragover", Xt), _(document, "mousemove", Xt), _(document, "touchmove", Xt);
2219
+ _(document, "mousemove", this._onTouchMove), _(document, "touchmove", this._onTouchMove), _(document, "pointermove", this._onTouchMove), _(document, "dragover", Yt), _(document, "mousemove", Yt), _(document, "touchmove", Yt);
2220
2220
  },
2221
2221
  _offUpEvents: function() {
2222
2222
  var t = this.el.ownerDocument;
@@ -2224,24 +2224,24 @@ w.prototype = /** @lends Sortable.prototype */
2224
2224
  },
2225
2225
  _onDrop: function(t) {
2226
2226
  var e = this.el, n = this.options;
2227
- if (yt = bt(h), It = bt(h, n.draggable), ht("drop", this, {
2227
+ if (yt = bt(h), Nt = bt(h, n.draggable), ht("drop", this, {
2228
2228
  evt: t
2229
- }), z = h && h.parentNode, yt = bt(h), It = bt(h, n.draggable), w.eventCanceled) {
2229
+ }), z = h && h.parentNode, yt = bt(h), Nt = bt(h, n.draggable), w.eventCanceled) {
2230
2230
  this._nulling();
2231
2231
  return;
2232
2232
  }
2233
- ne = !1, Ve = !1, Se = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Yi(this.cloneId), Yi(this._dragStartId), this.nativeDraggable && (_(document, "drop", this), _(e, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), we && v(document.body, "user-select", ""), v(h, "transform", ""), t && (ge && (t.cancelable && t.preventDefault(), !n.dropBubble && t.stopPropagation()), E && E.parentNode && E.parentNode.removeChild(E), (V === z || et && et.lastPutMode !== "clone") && B && B.parentNode && B.parentNode.removeChild(B), h && (this.nativeDraggable && _(h, "dragend", this), Bi(h), h.style["will-change"] = "", ge && !ne && mt(h, et ? et.options.ghostClass : this.options.ghostClass, !1), mt(h, this.options.chosenClass, !1), at({
2233
+ re = !1, Ve = !1, Ae = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Yi(this.cloneId), Yi(this._dragStartId), this.nativeDraggable && (_(document, "drop", this), _(e, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), xe && v(document.body, "user-select", ""), v(h, "transform", ""), t && (me && (t.cancelable && t.preventDefault(), !n.dropBubble && t.stopPropagation()), $ && $.parentNode && $.parentNode.removeChild($), (k === z || et && et.lastPutMode !== "clone") && B && B.parentNode && B.parentNode.removeChild(B), h && (this.nativeDraggable && _(h, "dragend", this), Bi(h), h.style["will-change"] = "", me && !re && mt(h, et ? et.options.ghostClass : this.options.ghostClass, !1), mt(h, this.options.chosenClass, !1), at({
2234
2234
  sortable: this,
2235
2235
  name: "unchoose",
2236
2236
  toEl: z,
2237
2237
  newIndex: null,
2238
2238
  newDraggableIndex: null,
2239
2239
  originalEvent: t
2240
- }), V !== z ? (yt >= 0 && (at({
2240
+ }), k !== z ? (yt >= 0 && (at({
2241
2241
  rootEl: z,
2242
2242
  name: "add",
2243
2243
  toEl: z,
2244
- fromEl: V,
2244
+ fromEl: k,
2245
2245
  originalEvent: t
2246
2246
  }), at({
2247
2247
  sortable: this,
@@ -2252,14 +2252,14 @@ w.prototype = /** @lends Sortable.prototype */
2252
2252
  rootEl: z,
2253
2253
  name: "sort",
2254
2254
  toEl: z,
2255
- fromEl: V,
2255
+ fromEl: k,
2256
2256
  originalEvent: t
2257
2257
  }), at({
2258
2258
  sortable: this,
2259
2259
  name: "sort",
2260
2260
  toEl: z,
2261
2261
  originalEvent: t
2262
- })), et && et.save()) : yt !== se && yt >= 0 && (at({
2262
+ })), et && et.save()) : yt !== ae && yt >= 0 && (at({
2263
2263
  sortable: this,
2264
2264
  name: "update",
2265
2265
  toEl: z,
@@ -2269,7 +2269,7 @@ w.prototype = /** @lends Sortable.prototype */
2269
2269
  name: "sort",
2270
2270
  toEl: z,
2271
2271
  originalEvent: t
2272
- })), w.active && ((yt == null || yt === -1) && (yt = se, It = Ee), at({
2272
+ })), w.active && ((yt == null || yt === -1) && (yt = ae, Nt = Ee), at({
2273
2273
  sortable: this,
2274
2274
  name: "end",
2275
2275
  toEl: z,
@@ -2277,9 +2277,9 @@ w.prototype = /** @lends Sortable.prototype */
2277
2277
  }), this.save()))), this._nulling();
2278
2278
  },
2279
2279
  _nulling: function() {
2280
- ht("nulling", this), V = h = z = E = Yt = B = ze = Nt = qt = wt = ge = yt = It = se = Ee = ee = $e = et = He = w.dragged = w.ghost = w.clone = w.active = null, ei.forEach(function(t) {
2280
+ ht("nulling", this), k = h = z = $ = Wt = B = ze = Ht = Xt = wt = me = yt = Nt = ae = Ee = ie = Se = et = ke = w.dragged = w.ghost = w.clone = w.active = null, ei.forEach(function(t) {
2281
2281
  t.checked = !0;
2282
- }), ei.length = Hi = Vi = 0;
2282
+ }), ei.length = Hi = ki = 0;
2283
2283
  },
2284
2284
  handleEvent: function(t) {
2285
2285
  switch (t.type) {
@@ -2344,8 +2344,8 @@ w.prototype = /** @lends Sortable.prototype */
2344
2344
  var n = this.options;
2345
2345
  if (e === void 0)
2346
2346
  return n[t];
2347
- var r = Me.modifyOption(this, t, e);
2348
- typeof r < "u" ? n[t] = r : n[t] = e, t === "group" && Er(n);
2347
+ var r = Ie.modifyOption(this, t, e);
2348
+ typeof r < "u" ? n[t] = r : n[t] = e, t === "group" && $r(n);
2349
2349
  },
2350
2350
  /**
2351
2351
  * Destroy
@@ -2358,9 +2358,9 @@ w.prototype = /** @lends Sortable.prototype */
2358
2358
  }), this._onDrop(), this._disableDelayedDragEvents(), ti.splice(ti.indexOf(this.el), 1), this.el = t = null;
2359
2359
  },
2360
2360
  _hideClone: function() {
2361
- if (!Nt) {
2361
+ if (!Ht) {
2362
2362
  if (ht("hideClone", this), w.eventCanceled) return;
2363
- v(B, "display", "none"), this.options.removeCloneOnHide && B.parentNode && B.parentNode.removeChild(B), Nt = !0;
2363
+ v(B, "display", "none"), this.options.removeCloneOnHide && B.parentNode && B.parentNode.removeChild(B), Ht = !0;
2364
2364
  }
2365
2365
  },
2366
2366
  _showClone: function(t) {
@@ -2368,18 +2368,18 @@ w.prototype = /** @lends Sortable.prototype */
2368
2368
  this._hideClone();
2369
2369
  return;
2370
2370
  }
2371
- if (Nt) {
2371
+ if (Ht) {
2372
2372
  if (ht("showClone", this), w.eventCanceled) return;
2373
- h.parentNode == V && !this.options.group.revertClone ? V.insertBefore(B, h) : Yt ? V.insertBefore(B, Yt) : V.appendChild(B), this.options.group.revertClone && this.animate(h, B), v(B, "display", ""), Nt = !1;
2373
+ h.parentNode == k && !this.options.group.revertClone ? k.insertBefore(B, h) : Wt ? k.insertBefore(B, Wt) : k.appendChild(B), this.options.group.revertClone && this.animate(h, B), v(B, "display", ""), Ht = !1;
2374
2374
  }
2375
2375
  }
2376
2376
  };
2377
2377
  function Ps(i) {
2378
2378
  i.dataTransfer && (i.dataTransfer.dropEffect = "move"), i.cancelable && i.preventDefault();
2379
2379
  }
2380
- function Be(i, t, e, n, r, o, s, a) {
2380
+ function Ue(i, t, e, n, r, o, s, a) {
2381
2381
  var l, d = i[ft], u = d.options.onMove, c;
2382
- return window.CustomEvent && !Lt && !Re ? l = new CustomEvent("move", {
2382
+ return window.CustomEvent && !Ot && !Me ? l = new CustomEvent("move", {
2383
2383
  bubbles: !0,
2384
2384
  cancelable: !0
2385
2385
  }) : (l = document.createEvent("Event"), l.initEvent("move", !0, !0)), l.to = t, l.from = i, l.dragged = e, l.draggedRect = n, l.related = r || t, l.relatedRect = o || W(t), l.willInsertAfter = a, l.originalEvent = s, i.dispatchEvent(l), u && (c = u.call(d, l, s)), c;
@@ -2387,25 +2387,25 @@ function Be(i, t, e, n, r, o, s, a) {
2387
2387
  function Bi(i) {
2388
2388
  i.draggable = !1;
2389
2389
  }
2390
- function Os() {
2390
+ function Ls() {
2391
2391
  Xi = !1;
2392
2392
  }
2393
- function Ls(i, t, e) {
2394
- var n = W(de(e.el, 0, e.options, !0)), r = vr(e.el, e.options, E), o = 10;
2393
+ function Os(i, t, e) {
2394
+ var n = W(ce(e.el, 0, e.options, !0)), r = vr(e.el, e.options, $), o = 10;
2395
2395
  return t ? i.clientX < r.left - o || i.clientY < n.top && i.clientX < n.right : i.clientY < r.top - o || i.clientY < n.bottom && i.clientX < n.left;
2396
2396
  }
2397
2397
  function Rs(i, t, e) {
2398
- var n = W(un(e.el, e.options.draggable)), r = vr(e.el, e.options, E), o = 10;
2398
+ var n = W(un(e.el, e.options.draggable)), r = vr(e.el, e.options, $), o = 10;
2399
2399
  return t ? i.clientX > r.right + o || i.clientY > n.bottom && i.clientX > n.left : i.clientY > r.bottom + o || i.clientX > n.right && i.clientY > n.top;
2400
2400
  }
2401
2401
  function Ms(i, t, e, n, r, o, s, a) {
2402
2402
  var l = n ? i.clientY : i.clientX, d = n ? e.height : e.width, u = n ? e.top : e.left, c = n ? e.bottom : e.right, p = !1;
2403
2403
  if (!s) {
2404
2404
  if (a && Ze < d * r) {
2405
- if (!Se && ($e === 1 ? l > u + d * o / 2 : l < c - d * o / 2) && (Se = !0), Se)
2405
+ if (!Ae && (Se === 1 ? l > u + d * o / 2 : l < c - d * o / 2) && (Ae = !0), Ae)
2406
2406
  p = !0;
2407
- else if ($e === 1 ? l < u + Ze : l > c - Ze)
2408
- return -$e;
2407
+ else if (Se === 1 ? l < u + Ze : l > c - Ze)
2408
+ return -Se;
2409
2409
  } else if (l > u + d * (1 - r) / 2 && l < c - d * (1 - r) / 2)
2410
2410
  return Is(t);
2411
2411
  }
@@ -2433,7 +2433,7 @@ function Yi(i) {
2433
2433
  return clearTimeout(i);
2434
2434
  }
2435
2435
  Ai && C(document, "touchmove", function(i) {
2436
- (w.active || ne) && i.cancelable && i.preventDefault();
2436
+ (w.active || re) && i.cancelable && i.preventDefault();
2437
2437
  });
2438
2438
  w.utils = {
2439
2439
  on: C,
@@ -2452,7 +2452,7 @@ w.utils = {
2452
2452
  nextTick: qe,
2453
2453
  cancelNextTick: Yi,
2454
2454
  detectDirection: xr,
2455
- getChild: de,
2455
+ getChild: ce,
2456
2456
  expando: ft
2457
2457
  };
2458
2458
  w.get = function(i) {
@@ -2464,15 +2464,15 @@ w.mount = function() {
2464
2464
  t[0].constructor === Array && (t = t[0]), t.forEach(function(n) {
2465
2465
  if (!n.prototype || !n.prototype.constructor)
2466
2466
  throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(n));
2467
- n.utils && (w.utils = St(St({}, w.utils), n.utils)), Me.mount(n);
2467
+ n.utils && (w.utils = St(St({}, w.utils), n.utils)), Ie.mount(n);
2468
2468
  });
2469
2469
  };
2470
2470
  w.create = function(i, t) {
2471
2471
  return new w(i, t);
2472
2472
  };
2473
2473
  w.version = ys;
2474
- var Y = [], me, Wi, Gi = !1, Ui, Fi, ii, ye;
2475
- function Vs() {
2474
+ var Y = [], ye, Wi, Gi = !1, Ui, Fi, ii, be;
2475
+ function ks() {
2476
2476
  function i() {
2477
2477
  this.defaults = {
2478
2478
  scroll: !0,
@@ -2494,32 +2494,32 @@ function Vs() {
2494
2494
  !this.options.dragOverBubble && !n.rootEl && this._handleAutoScroll(n);
2495
2495
  },
2496
2496
  drop: function() {
2497
- this.sortable.nativeDraggable ? _(document, "dragover", this._handleAutoScroll) : (_(document, "pointermove", this._handleFallbackAutoScroll), _(document, "touchmove", this._handleFallbackAutoScroll), _(document, "mousemove", this._handleFallbackAutoScroll)), Vn(), Xe(), ws();
2497
+ this.sortable.nativeDraggable ? _(document, "dragover", this._handleAutoScroll) : (_(document, "pointermove", this._handleFallbackAutoScroll), _(document, "touchmove", this._handleFallbackAutoScroll), _(document, "mousemove", this._handleFallbackAutoScroll)), kn(), Xe(), ws();
2498
2498
  },
2499
2499
  nulling: function() {
2500
- ii = Wi = me = Gi = ye = Ui = Fi = null, Y.length = 0;
2500
+ ii = Wi = ye = Gi = be = Ui = Fi = null, Y.length = 0;
2501
2501
  },
2502
2502
  _handleFallbackAutoScroll: function(e) {
2503
2503
  this._handleAutoScroll(e, !0);
2504
2504
  },
2505
2505
  _handleAutoScroll: function(e, n) {
2506
2506
  var r = this, o = (e.touches ? e.touches[0] : e).clientX, s = (e.touches ? e.touches[0] : e).clientY, a = document.elementFromPoint(o, s);
2507
- if (ii = e, n || this.options.forceAutoScrollFallback || Re || Lt || we) {
2507
+ if (ii = e, n || this.options.forceAutoScrollFallback || Me || Ot || xe) {
2508
2508
  ji(e, this.options, a, n);
2509
2509
  var l = Vt(a, !0);
2510
- Gi && (!ye || o !== Ui || s !== Fi) && (ye && Vn(), ye = setInterval(function() {
2510
+ Gi && (!be || o !== Ui || s !== Fi) && (be && kn(), be = setInterval(function() {
2511
2511
  var d = Vt(document.elementFromPoint(o, s), !0);
2512
2512
  d !== l && (l = d, Xe()), ji(e, r.options, d, n);
2513
2513
  }, 10), Ui = o, Fi = s);
2514
2514
  } else {
2515
- if (!this.options.bubbleScroll || Vt(a, !0) === $t()) {
2515
+ if (!this.options.bubbleScroll || Vt(a, !0) === Et()) {
2516
2516
  Xe();
2517
2517
  return;
2518
2518
  }
2519
2519
  ji(e, this.options, Vt(a, !1), !1);
2520
2520
  }
2521
2521
  }
2522
- }, Ot(i, {
2522
+ }, Lt(i, {
2523
2523
  pluginName: "scroll",
2524
2524
  initializeByDefault: !0
2525
2525
  });
@@ -2529,18 +2529,18 @@ function Xe() {
2529
2529
  clearInterval(i.pid);
2530
2530
  }), Y = [];
2531
2531
  }
2532
- function Vn() {
2533
- clearInterval(ye);
2532
+ function kn() {
2533
+ clearInterval(be);
2534
2534
  }
2535
2535
  var ji = mr(function(i, t, e, n) {
2536
2536
  if (t.scroll) {
2537
- var r = (i.touches ? i.touches[0] : i).clientX, o = (i.touches ? i.touches[0] : i).clientY, s = t.scrollSensitivity, a = t.scrollSpeed, l = $t(), d = !1, u;
2538
- Wi !== e && (Wi = e, Xe(), me = t.scroll, u = t.scrollFn, me === !0 && (me = Vt(e, !0)));
2539
- var c = 0, p = me;
2537
+ var r = (i.touches ? i.touches[0] : i).clientX, o = (i.touches ? i.touches[0] : i).clientY, s = t.scrollSensitivity, a = t.scrollSpeed, l = Et(), d = !1, u;
2538
+ Wi !== e && (Wi = e, Xe(), ye = t.scroll, u = t.scrollFn, ye === !0 && (ye = Vt(e, !0)));
2539
+ var c = 0, p = ye;
2540
2540
  do {
2541
- var f = p, g = W(f), b = g.top, N = g.bottom, J = g.left, U = g.right, st = g.width, K = g.height, $ = void 0, m = void 0, A = f.scrollWidth, M = f.scrollHeight, L = v(f), q = f.scrollLeft, X = f.scrollTop;
2542
- f === l ? ($ = st < A && (L.overflowX === "auto" || L.overflowX === "scroll" || L.overflowX === "visible"), m = K < M && (L.overflowY === "auto" || L.overflowY === "scroll" || L.overflowY === "visible")) : ($ = st < A && (L.overflowX === "auto" || L.overflowX === "scroll"), m = K < M && (L.overflowY === "auto" || L.overflowY === "scroll"));
2543
- var H = $ && (Math.abs(U - r) <= s && q + st < A) - (Math.abs(J - r) <= s && !!q), R = m && (Math.abs(N - o) <= s && X + K < M) - (Math.abs(b - o) <= s && !!X);
2541
+ var f = p, g = W(f), b = g.top, N = g.bottom, J = g.left, U = g.right, st = g.width, K = g.height, E = void 0, m = void 0, A = f.scrollWidth, M = f.scrollHeight, O = v(f), q = f.scrollLeft, X = f.scrollTop;
2542
+ f === l ? (E = st < A && (O.overflowX === "auto" || O.overflowX === "scroll" || O.overflowX === "visible"), m = K < M && (O.overflowY === "auto" || O.overflowY === "scroll" || O.overflowY === "visible")) : (E = st < A && (O.overflowX === "auto" || O.overflowX === "scroll"), m = K < M && (O.overflowY === "auto" || O.overflowY === "scroll"));
2543
+ var H = E && (Math.abs(U - r) <= s && q + st < A) - (Math.abs(J - r) <= s && !!q), R = m && (Math.abs(N - o) <= s && X + K < M) - (Math.abs(b - o) <= s && !!X);
2544
2544
  if (!Y[c])
2545
2545
  for (var Z = 0; Z <= c; Z++)
2546
2546
  Y[Z] || (Y[Z] = {});
@@ -2577,12 +2577,12 @@ hn.prototype = {
2577
2577
  onSpill: function(t) {
2578
2578
  var e = t.dragEl, n = t.putSortable;
2579
2579
  this.sortable.captureAnimationState(), n && n.captureAnimationState();
2580
- var r = de(this.sortable.el, this.startIndex, this.options);
2580
+ var r = ce(this.sortable.el, this.startIndex, this.options);
2581
2581
  r ? this.sortable.el.insertBefore(e, r) : this.sortable.el.appendChild(e), this.sortable.animateAll(), n && n.animateAll();
2582
2582
  },
2583
2583
  drop: Ar
2584
2584
  };
2585
- Ot(hn, {
2585
+ Lt(hn, {
2586
2586
  pluginName: "revertOnSpill"
2587
2587
  });
2588
2588
  function pn() {
@@ -2594,12 +2594,12 @@ pn.prototype = {
2594
2594
  },
2595
2595
  drop: Ar
2596
2596
  };
2597
- Ot(pn, {
2597
+ Lt(pn, {
2598
2598
  pluginName: "removeOnSpill"
2599
2599
  });
2600
- w.mount(new Vs());
2600
+ w.mount(new ks());
2601
2601
  w.mount(pn, hn);
2602
- const ks = (i) => {
2602
+ const Vs = (i) => {
2603
2603
  const t = i.item;
2604
2604
  let e = Array.prototype.slice.call(t.parentNode.childNodes);
2605
2605
  return e = e.filter(
@@ -2637,7 +2637,7 @@ function Us(i, t, e, n) {
2637
2637
  swapThreshold: 0.5,
2638
2638
  animation: 150,
2639
2639
  easing: "cubic-bezier(1, 0, 0, 1)",
2640
- onStart: (s) => r = ks(s),
2640
+ onStart: (s) => r = Vs(s),
2641
2641
  onMove: (s) => {
2642
2642
  o = s.related;
2643
2643
  },
@@ -2747,20 +2747,20 @@ function Xs(i) {
2747
2747
  return t;
2748
2748
  }
2749
2749
  const Ys = (i, t) => {
2750
- var e;
2751
- if (i)
2752
- return !("domainProperties" in i) || "domain" in i ? { ...i } : (e = Object.keys(i)) == null ? void 0 : e.reduce(
2753
- (n, r) => {
2754
- if (r === "domainProperties") {
2755
- const o = gn(t);
2756
- n.domain = i[r].map((s) => o[s]);
2757
- } else
2758
- n[r] = i[r];
2759
- return n;
2760
- },
2750
+ if (!i) return;
2751
+ let e;
2752
+ const n = gn(t);
2753
+ return Array.isArray(i) && i.length ? (e = i.find((r) => {
2754
+ const o = r.boundTo.key, s = r.boundTo.value;
2755
+ return n[o] == s;
2756
+ }), e || (e = i)) : e = i, Array.isArray(e) || (e = [e]), e.map((r) => {
2757
+ var o;
2758
+ return !("domainProperties" in r) || "domain" in r ? { ...r } : (o = Object.keys(r)) == null ? void 0 : o.reduce(
2759
+ (s, a) => (a === "domainProperties" ? s.domain = r[a].map((l) => n[l]) : s[a] = r[a], s),
2761
2760
  /** @type {import("../components/layer-legend").LegendConfig} */
2762
2761
  {}
2763
2762
  );
2763
+ });
2764
2764
  };
2765
2765
  function Cr(i, t) {
2766
2766
  var n;
@@ -2804,7 +2804,7 @@ const Gs = (i, t) => i == null ? void 0 : i.filter(
2804
2804
  let n = !0;
2805
2805
  return ["remove", "sort"].includes(e) && (n = !1), e === "info" && (n = t.get("description")), e === "config" && (n = t.get("layerConfig")), e === "datetime" && (n = t.get("layerDatetime")), e === "legend" && (n = t.get("layerLegend")), n;
2806
2806
  }), Ks = (i, t) => x`
2807
- <button slot="${i}-icon" class="icon">${t ? i : O}</button>
2807
+ <button slot="${i}-icon" class="icon">${t ? i : L}</button>
2808
2808
  `, Qs = (i) => x`
2809
2809
  <button
2810
2810
  class="remove-icon icon"
@@ -2818,11 +2818,11 @@ const Gs = (i, t) => i == null ? void 0 : i.filter(
2818
2818
  );
2819
2819
  }}
2820
2820
  >
2821
- ${i.unstyled ? "x" : O}
2821
+ ${i.unstyled ? "x" : L}
2822
2822
  </button>
2823
2823
  `, ta = (i) => x`
2824
2824
  <span class="button sort-icon icon drag-handle">
2825
- ${i ? "═" : O}
2825
+ ${i ? "═" : L}
2826
2826
  </span>
2827
2827
  `, Tr = (i) => {
2828
2828
  var e;
@@ -2836,20 +2836,20 @@ const Gs = (i, t) => i == null ? void 0 : i.filter(
2836
2836
  */
2837
2837
  const Dr = sn(class extends an {
2838
2838
  constructor(i) {
2839
- if (super(i), i.type !== Mt.PROPERTY && i.type !== Mt.ATTRIBUTE && i.type !== Mt.BOOLEAN_ATTRIBUTE) throw Error("The `live` directive is not allowed on child or event bindings");
2839
+ if (super(i), i.type !== It.PROPERTY && i.type !== It.ATTRIBUTE && i.type !== It.BOOLEAN_ATTRIBUTE) throw Error("The `live` directive is not allowed on child or event bindings");
2840
2840
  if (!go(i)) throw Error("`live` bindings can only contain a single expression");
2841
2841
  }
2842
2842
  render(i) {
2843
2843
  return i;
2844
2844
  }
2845
2845
  update(i, [t]) {
2846
- if (t === vt || t === O) return t;
2846
+ if (t === vt || t === L) return t;
2847
2847
  const e = i.element, n = i.name;
2848
- if (i.type === Mt.PROPERTY) {
2848
+ if (i.type === It.PROPERTY) {
2849
2849
  if (t === e[n]) return vt;
2850
- } else if (i.type === Mt.BOOLEAN_ATTRIBUTE) {
2850
+ } else if (i.type === It.BOOLEAN_ATTRIBUTE) {
2851
2851
  if (!!t === e.hasAttribute(n)) return vt;
2852
- } else if (i.type === Mt.ATTRIBUTE && e.getAttribute(n) === t + "") return vt;
2852
+ } else if (i.type === It.ATTRIBUTE && e.getAttribute(n) === t + "") return vt;
2853
2853
  return nr(i), t;
2854
2854
  }
2855
2855
  });
@@ -2860,10 +2860,10 @@ const Dr = sn(class extends an {
2860
2860
  */
2861
2861
  class Ji extends an {
2862
2862
  constructor(t) {
2863
- if (super(t), this.it = O, t.type !== Mt.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
2863
+ if (super(t), this.it = L, t.type !== It.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
2864
2864
  }
2865
2865
  render(t) {
2866
- if (t === O || t == null) return this._t = void 0, this.it = t;
2866
+ if (t === L || t == null) return this._t = void 0, this.it = t;
2867
2867
  if (t === vt) return t;
2868
2868
  if (typeof t != "string") throw Error(this.constructor.directiveName + "() called with a non-string value");
2869
2869
  if (t === this.it) return this._t;
@@ -2885,30 +2885,30 @@ function* Ye(i, t) {
2885
2885
  for (const n of i) yield t(n, e++);
2886
2886
  }
2887
2887
  }
2888
- var kt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
2888
+ var Bt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
2889
2889
  function Pr(i) {
2890
2890
  return i && i.__esModule && Object.prototype.hasOwnProperty.call(i, "default") ? i.default : i;
2891
2891
  }
2892
- var zi, kn;
2892
+ var zi, Vn;
2893
2893
  function ia() {
2894
- if (kn) return zi;
2895
- kn = 1;
2896
- var i = "Expected a function", t = NaN, e = "[object Symbol]", n = /^\s+|\s+$/g, r = /^[-+]0x[0-9a-f]+$/i, o = /^0b[01]+$/i, s = /^0o[0-7]+$/i, a = parseInt, l = typeof kt == "object" && kt && kt.Object === Object && kt, d = typeof self == "object" && self && self.Object === Object && self, u = l || d || Function("return this")(), c = Object.prototype, p = c.toString, f = Math.max, g = Math.min, b = function() {
2894
+ if (Vn) return zi;
2895
+ Vn = 1;
2896
+ var i = "Expected a function", t = NaN, e = "[object Symbol]", n = /^\s+|\s+$/g, r = /^[-+]0x[0-9a-f]+$/i, o = /^0b[01]+$/i, s = /^0o[0-7]+$/i, a = parseInt, l = typeof Bt == "object" && Bt && Bt.Object === Object && Bt, d = typeof self == "object" && self && self.Object === Object && self, u = l || d || Function("return this")(), c = Object.prototype, p = c.toString, f = Math.max, g = Math.min, b = function() {
2897
2897
  return u.Date.now();
2898
2898
  };
2899
2899
  function N(m, A, M) {
2900
- var L, q, X, H, R, Z, dt = 0, tt = !1, ct = !1, gt = !0;
2900
+ var O, q, X, H, R, Z, dt = 0, tt = !1, ct = !1, gt = !0;
2901
2901
  if (typeof m != "function")
2902
2902
  throw new TypeError(i);
2903
- A = $(A) || 0, U(M) && (tt = !!M.leading, ct = "maxWait" in M, X = ct ? f($(M.maxWait) || 0, A) : X, gt = "trailing" in M ? !!M.trailing : gt);
2904
- function Ut(I) {
2905
- var ut = L, Rt = q;
2906
- return L = q = void 0, dt = I, H = m.apply(Rt, ut), H;
2903
+ A = E(A) || 0, U(M) && (tt = !!M.leading, ct = "maxWait" in M, X = ct ? f(E(M.maxWait) || 0, A) : X, gt = "trailing" in M ? !!M.trailing : gt);
2904
+ function Ft(I) {
2905
+ var ut = O, Rt = q;
2906
+ return O = q = void 0, dt = I, H = m.apply(Rt, ut), H;
2907
2907
  }
2908
- function Ie(I) {
2909
- return dt = I, R = setTimeout(jt, A), tt ? Ut(I) : H;
2908
+ function Ne(I) {
2909
+ return dt = I, R = setTimeout(zt, A), tt ? Ft(I) : H;
2910
2910
  }
2911
- function Ft(I) {
2911
+ function jt(I) {
2912
2912
  var ut = I - Z, Rt = I - dt, mn = A - ut;
2913
2913
  return ct ? g(mn, X - Rt) : mn;
2914
2914
  }
@@ -2916,39 +2916,39 @@ function ia() {
2916
2916
  var ut = I - Z, Rt = I - dt;
2917
2917
  return Z === void 0 || ut >= A || ut < 0 || ct && Rt >= X;
2918
2918
  }
2919
- function jt() {
2919
+ function zt() {
2920
2920
  var I = b();
2921
2921
  if (At(I))
2922
- return Ne(I);
2923
- R = setTimeout(jt, Ft(I));
2922
+ return He(I);
2923
+ R = setTimeout(zt, jt(I));
2924
2924
  }
2925
- function Ne(I) {
2926
- return R = void 0, gt && L ? Ut(I) : (L = q = void 0, H);
2925
+ function He(I) {
2926
+ return R = void 0, gt && O ? Ft(I) : (O = q = void 0, H);
2927
2927
  }
2928
2928
  function _i() {
2929
- R !== void 0 && clearTimeout(R), dt = 0, L = Z = q = R = void 0;
2929
+ R !== void 0 && clearTimeout(R), dt = 0, O = Z = q = R = void 0;
2930
2930
  }
2931
- function he() {
2932
- return R === void 0 ? H : Ne(b());
2931
+ function pe() {
2932
+ return R === void 0 ? H : He(b());
2933
2933
  }
2934
- function k() {
2934
+ function V() {
2935
2935
  var I = b(), ut = At(I);
2936
- if (L = arguments, q = this, Z = I, ut) {
2936
+ if (O = arguments, q = this, Z = I, ut) {
2937
2937
  if (R === void 0)
2938
- return Ie(Z);
2938
+ return Ne(Z);
2939
2939
  if (ct)
2940
- return R = setTimeout(jt, A), Ut(Z);
2940
+ return R = setTimeout(zt, A), Ft(Z);
2941
2941
  }
2942
- return R === void 0 && (R = setTimeout(jt, A)), H;
2942
+ return R === void 0 && (R = setTimeout(zt, A)), H;
2943
2943
  }
2944
- return k.cancel = _i, k.flush = he, k;
2944
+ return V.cancel = _i, V.flush = pe, V;
2945
2945
  }
2946
2946
  function J(m, A, M) {
2947
- var L = !0, q = !0;
2947
+ var O = !0, q = !0;
2948
2948
  if (typeof m != "function")
2949
2949
  throw new TypeError(i);
2950
- return U(M) && (L = "leading" in M ? !!M.leading : L, q = "trailing" in M ? !!M.trailing : q), N(m, A, {
2951
- leading: L,
2950
+ return U(M) && (O = "leading" in M ? !!M.leading : O, q = "trailing" in M ? !!M.trailing : q), N(m, A, {
2951
+ leading: O,
2952
2952
  maxWait: A,
2953
2953
  trailing: q
2954
2954
  });
@@ -2963,7 +2963,7 @@ function ia() {
2963
2963
  function K(m) {
2964
2964
  return typeof m == "symbol" || st(m) && p.call(m) == e;
2965
2965
  }
2966
- function $(m) {
2966
+ function E(m) {
2967
2967
  if (typeof m == "number")
2968
2968
  return m;
2969
2969
  if (K(m))
@@ -2987,9 +2987,9 @@ const Bn = /* @__PURE__ */ Pr(na);
2987
2987
  * Copyright 2018 Google LLC
2988
2988
  * SPDX-License-Identifier: BSD-3-Clause
2989
2989
  */
2990
- const Ue = (i) => i ?? O;
2990
+ const Mt = (i) => i ?? L;
2991
2991
  var ni, ri;
2992
- class Or extends lt {
2992
+ class Lr extends lt {
2993
2993
  constructor() {
2994
2994
  super();
2995
2995
  P(this, ni, qn`
@@ -3032,21 +3032,49 @@ class Or extends lt {
3032
3032
  () => x`
3033
3033
  <div class="legend-container">
3034
3034
  <!-- Render color-legend-->
3035
- <color-legend
3036
- id="${this.layer.get("id")}"
3037
- width=${this.layerLegend.width ?? 325}
3038
- scaleType="${Ue(this.layerLegend.scaleType)}"
3039
- markType="${Ue(this.layerLegend.markType)}"
3040
- titleText="${Ue(this.layerLegend.title)}"
3041
- .range=${this.layerLegend.range}
3042
- .domain=${this.layerLegend.domain}
3043
- tickFormat="${Ue(this.layerLegend.tickFormat)}"
3044
- .ticks=${this.layerLegend.ticks ?? 5}
3045
- .tickValues=${this.layerLegend.tickValues}
3046
- .marginLeft=${0}
3047
- .marginRight=${0}
3048
- >
3049
- </color-legend>
3035
+ ${G(
3036
+ Array.isArray(this.layerLegend),
3037
+ () => (
3038
+ /** @type {LegendConfig[]} */
3039
+ this.layerLegend.map(
3040
+ (e, n) => x`
3041
+ <color-legend
3042
+ id="${this.layer.get("id") + n}"
3043
+ width=${e.width ?? 325}
3044
+ scaleType="${Mt(e.scaleType)}"
3045
+ markType="${Mt(e.markType)}"
3046
+ titleText="${Mt(e.title)}"
3047
+ .range=${e.range}
3048
+ .domain=${e.domain}
3049
+ tickFormat="${Mt(e.tickFormat)}"
3050
+ .ticks=${e.ticks ?? 5}
3051
+ .tickValues=${e.tickValues}
3052
+ .marginLeft=${0}
3053
+ .marginRight=${0}
3054
+ >
3055
+ </color-legend>
3056
+ <div></div>
3057
+ `
3058
+ )
3059
+ ),
3060
+ () => x`
3061
+ <color-legend
3062
+ id="${this.layer.get("id")}"
3063
+ width=${this.layerLegend.width ?? 325}
3064
+ scaleType="${Mt(this.layerLegend.scaleType)}"
3065
+ markType="${Mt(this.layerLegend.markType)}"
3066
+ titleText="${Mt(this.layerLegend.title)}"
3067
+ .range=${this.layerLegend.range}
3068
+ .domain=${this.layerLegend.domain}
3069
+ tickFormat="${Mt(this.layerLegend.tickFormat)}"
3070
+ .ticks=${this.layerLegend.ticks ?? 5}
3071
+ .tickValues=${this.layerLegend.tickValues}
3072
+ .marginLeft=${0}
3073
+ .marginRight=${0}
3074
+ >
3075
+ </color-legend>
3076
+ `
3077
+ )}
3050
3078
  </div>
3051
3079
  `
3052
3080
  )}
@@ -3054,7 +3082,7 @@ class Or extends lt {
3054
3082
  }
3055
3083
  }
3056
3084
  ni = new WeakMap(), ri = new WeakMap(), // Define static properties for the component
3057
- F(Or, "properties", {
3085
+ F(Lr, "properties", {
3058
3086
  unstyled: { type: Boolean },
3059
3087
  noShadow: { type: Boolean },
3060
3088
  layerLegend: { attribute: !1 },
@@ -3062,13 +3090,13 @@ F(Or, "properties", {
3062
3090
  });
3063
3091
  customElements.define(
3064
3092
  "eox-layercontrol-layer-legend",
3065
- Or
3093
+ Lr
3066
3094
  );
3067
- var _t, le, De, Pe, Ki, oi, si;
3068
- class Lr extends lt {
3095
+ var _t, de, Pe, Le, Ki, oi, si;
3096
+ class Or extends lt {
3069
3097
  constructor() {
3070
3098
  super();
3071
- P(this, Pe);
3099
+ P(this, Le);
3072
3100
  /**
3073
3101
  * data input by the user
3074
3102
  *
@@ -3080,13 +3108,13 @@ class Lr extends lt {
3080
3108
  *
3081
3109
  * @type {{[key: string]: any}}
3082
3110
  */
3083
- P(this, le, null);
3111
+ P(this, de, null);
3084
3112
  /**
3085
3113
  * Original tile url function, if it exist
3086
3114
  *
3087
3115
  * @type {Function}
3088
3116
  */
3089
- P(this, De);
3117
+ P(this, Pe);
3090
3118
  P(this, oi, qn`
3091
3119
  color-legend {
3092
3120
  --cle-background: transparent;
@@ -3097,7 +3125,7 @@ class Lr extends lt {
3097
3125
  }
3098
3126
  `);
3099
3127
  P(this, si, "");
3100
- this.layer = null, this.unstyled = !1, this.noShadow = !1, this.layerConfig = null, this.throttleDataChange = Bn(j(this, Pe, Ki), 1e3);
3128
+ this.layer = null, this.unstyled = !1, this.noShadow = !1, this.layerConfig = null, this.throttleDataChange = Bn(j(this, Le, Ki), 1e3);
3101
3129
  }
3102
3130
  /** Decide what type of throttling to do based on layerConfig type
3103
3131
  *
@@ -3106,7 +3134,7 @@ class Lr extends lt {
3106
3134
  updated(e) {
3107
3135
  if (e.has("layerConfig")) {
3108
3136
  const n = this.layerConfig.type === "style" || this.layerConfig.style ? 100 : 1e3;
3109
- this.throttleDataChange = Bn(j(this, Pe, Ki), n), this.requestUpdate();
3137
+ this.throttleDataChange = Bn(j(this, Le, Ki), n), this.requestUpdate();
3110
3138
  }
3111
3139
  }
3112
3140
  /**
@@ -3119,7 +3147,7 @@ class Lr extends lt {
3119
3147
  * Renders a JSON form for configuration options of a layer.
3120
3148
  */
3121
3149
  render() {
3122
- Qt(this, le, Ws(this.layer, this.layerConfig)), Object.keys(T(this, _t)).length !== 0 && Qt(this, le, T(this, _t)), customElements.get("eox-jsonform") || console.error("Please import @eox/jsonform in order to use layerconfig");
3150
+ te(this, de, Ws(this.layer, this.layerConfig)), Object.keys(T(this, _t)).length !== 0 && te(this, de, T(this, _t)), customElements.get("eox-jsonform") || console.error("Please import @eox/jsonform in order to use layerconfig");
3123
3151
  const e = {
3124
3152
  disable_edit_json: !0,
3125
3153
  disable_collapse: !0,
@@ -3150,7 +3178,7 @@ class Lr extends lt {
3150
3178
  <!-- Render a JSON form for layer configuration -->
3151
3179
  <eox-jsonform
3152
3180
  .schema=${this.layerConfig.schema}
3153
- .value=${T(this, le)}
3181
+ .value=${T(this, de)}
3154
3182
  .options=${e}
3155
3183
  @change=${this.throttleDataChange}
3156
3184
  ></eox-jsonform>
@@ -3159,21 +3187,21 @@ class Lr extends lt {
3159
3187
  `;
3160
3188
  }
3161
3189
  }
3162
- _t = new WeakMap(), le = new WeakMap(), De = new WeakMap(), Pe = new WeakSet(), /**
3190
+ _t = new WeakMap(), de = new WeakMap(), Pe = new WeakMap(), Le = new WeakSet(), /**
3163
3191
  * Handles changes in eox-jsonform values.
3164
3192
  *
3165
3193
  * @param {{ detail: { value: string; }; }} e
3166
3194
  */
3167
3195
  Ki = function(e) {
3168
- Qt(this, _t, e.detail), this.layerConfig.type === "style" || this.layerConfig.style ? "setStyle" in this.layer || "updateStyleVariables" in this.layer ? qs(T(this, _t), this.layer, this.layerConfig) : console.error(
3196
+ te(this, _t, e.detail), this.layerConfig.type === "style" || this.layerConfig.style ? "setStyle" in this.layer || "updateStyleVariables" in this.layer ? qs(T(this, _t), this.layer, this.layerConfig) : console.error(
3169
3197
  `Layer type ${this.layer.get("type") ?? ""} does not support styles configuration`
3170
- ) : Qt(this, De, Zs(
3198
+ ) : te(this, Pe, Zs(
3171
3199
  T(this, _t),
3172
- T(this, De),
3200
+ T(this, Pe),
3173
3201
  this
3174
3202
  )), this.requestUpdate();
3175
3203
  }, oi = new WeakMap(), si = new WeakMap(), // Define static properties for the component
3176
- F(Lr, "properties", {
3204
+ F(Or, "properties", {
3177
3205
  layer: { attribute: !1 },
3178
3206
  unstyled: { type: Boolean },
3179
3207
  noShadow: { type: Boolean },
@@ -3181,7 +3209,7 @@ F(Lr, "properties", {
3181
3209
  });
3182
3210
  customElements.define(
3183
3211
  "eox-layercontrol-layerconfig",
3184
- Lr
3212
+ Or
3185
3213
  );
3186
3214
  var ai, Mr, li, di;
3187
3215
  class Rr extends lt {
@@ -3644,7 +3672,7 @@ class Hr extends lt {
3644
3672
  const e = Gs(this.tools, this.layer), n = Js(this.tools, this.layer), r = this[`_${e == null ? void 0 : e[0]}Button`] ? (
3645
3673
  // @ts-expect-error TODO
3646
3674
  this[`_${e == null ? void 0 : e[0]}Button`]()
3647
- ) : O, o = ((l = this.tools) == null ? void 0 : l.length) === 1 ? `${this.tools[0]}-icon` : "", s = e == null ? void 0 : e.length, a = n == null ? void 0 : n.length;
3675
+ ) : L, o = ((l = this.tools) == null ? void 0 : l.length) === 1 ? `${this.tools[0]}-icon` : "", s = e == null ? void 0 : e.length, a = n == null ? void 0 : n.length;
3648
3676
  return x`
3649
3677
  <style>
3650
3678
  ${T(this, hi)}
@@ -3663,7 +3691,7 @@ class Hr extends lt {
3663
3691
  () => x`
3664
3692
  <details
3665
3693
  class="tools"
3666
- open=${this.layer.get("layerControlToolsExpand") || O}
3694
+ open=${this.layer.get("layerControlToolsExpand") || L}
3667
3695
  >
3668
3696
  <summary>
3669
3697
  <button class="icon ${o}">Tools</button>
@@ -3728,11 +3756,11 @@ const aa = (i) => {
3728
3756
  new CustomEvent("changed", { bubbles: !0, detail: e })
3729
3757
  ), t.requestUpdate();
3730
3758
  };
3731
- var Et, re, kr, fi, gi;
3732
- class Vr extends lt {
3759
+ var $t, oe, Vr, fi, gi;
3760
+ class kr extends lt {
3733
3761
  constructor() {
3734
3762
  super();
3735
- P(this, Et);
3763
+ P(this, $t);
3736
3764
  /**
3737
3765
  * Represents the current layer visibility based on zoom level.
3738
3766
  *
@@ -3822,7 +3850,7 @@ class Vr extends lt {
3822
3850
  */
3823
3851
  render() {
3824
3852
  var l;
3825
- const e = this.layer.getVisible(), n = e ? "visible" : "", r = this.currLayerVisibilityBasedOnZoom ? "" : "zoom-state-invisible", o = j(this, Et, re).call(this, "layerControlDisable") ? "disabled" : "", s = j(this, Et, re).call(this, "layerControlExclusive") ? "radio" : "checkbox", a = ((l = this.tools) == null ? void 0 : l.length) > 0;
3853
+ const e = this.layer.getVisible(), n = e ? "visible" : "", r = this.currLayerVisibilityBasedOnZoom ? "" : "zoom-state-invisible", o = j(this, $t, oe).call(this, "layerControlDisable") ? "disabled" : "", s = j(this, $t, oe).call(this, "layerControlExclusive") ? "radio" : "checkbox", a = ((l = this.tools) == null ? void 0 : l.length) > 0;
3826
3854
  return x`
3827
3855
  <style>
3828
3856
  ${T(this, fi)}
@@ -3838,15 +3866,15 @@ class Vr extends lt {
3838
3866
  <input
3839
3867
  type=${s}
3840
3868
  .checked=${Dr(e)}
3841
- @click=${j(this, Et, kr)}
3869
+ @click=${j(this, $t, Vr)}
3842
3870
  />
3843
3871
 
3844
3872
  <!-- Layer title -->
3845
3873
  <span
3846
- class="title ${j(this, Et, re).call(this, "color") ? "color-swatch" : ""}"
3847
- style="--layer-color: ${j(this, Et, re).call(this, "color")}"
3874
+ class="title ${j(this, $t, oe).call(this, "color") ? "color-swatch" : ""}"
3875
+ style="--layer-color: ${j(this, $t, oe).call(this, "color")}"
3848
3876
  >
3849
- ${j(this, Et, re).call(this, this.titleProperty)}
3877
+ ${j(this, $t, oe).call(this, this.titleProperty)}
3850
3878
  </span>
3851
3879
  ${G(
3852
3880
  a,
@@ -3868,13 +3896,13 @@ class Vr extends lt {
3868
3896
  `;
3869
3897
  }
3870
3898
  }
3871
- Et = new WeakSet(), /**
3899
+ $t = new WeakSet(), /**
3872
3900
  * Private method to get layer property by key if available.
3873
3901
  *
3874
3902
  * @param {string} key - The key for the layer property.
3875
3903
  * @returns {any} - The value of the layer property if exists, otherwise undefined.
3876
3904
  */
3877
- re = function(e) {
3905
+ oe = function(e) {
3878
3906
  var n;
3879
3907
  return (n = this.layer) == null ? void 0 : n.get(e);
3880
3908
  }, /**
@@ -3882,10 +3910,10 @@ re = function(e) {
3882
3910
  *
3883
3911
  * @param {{target: { checked: boolean }}} evt - The input change event.
3884
3912
  */
3885
- kr = function(e) {
3913
+ Vr = function(e) {
3886
3914
  la(e, this);
3887
3915
  }, fi = new WeakMap(), gi = new WeakMap(), // Define static properties for the component
3888
- F(Vr, "properties", {
3916
+ F(kr, "properties", {
3889
3917
  layer: { attribute: !1 },
3890
3918
  map: { attribute: !1, state: !0 },
3891
3919
  titleProperty: { attribute: "title-property", type: String },
@@ -3895,7 +3923,7 @@ F(Vr, "properties", {
3895
3923
  noShadow: { type: Boolean },
3896
3924
  toolsAsList: { type: Boolean }
3897
3925
  });
3898
- customElements.define("eox-layercontrol-layer", Vr);
3926
+ customElements.define("eox-layercontrol-layer", kr);
3899
3927
  var mi, yi;
3900
3928
  class Br extends lt {
3901
3929
  constructor() {
@@ -3954,7 +3982,7 @@ class Br extends lt {
3954
3982
  () => x`
3955
3983
  <!-- Render the details element with the layer control -->
3956
3984
  <details
3957
- open=${e || O}
3985
+ open=${e || L}
3958
3986
  data-children-length=${n}
3959
3987
  >
3960
3988
  <summary>
@@ -4011,80 +4039,80 @@ var Zi, Un;
4011
4039
  function da() {
4012
4040
  if (Un) return Zi;
4013
4041
  Un = 1;
4014
- var i = "Expected a function", t = NaN, e = "[object Symbol]", n = /^\s+|\s+$/g, r = /^[-+]0x[0-9a-f]+$/i, o = /^0b[01]+$/i, s = /^0o[0-7]+$/i, a = parseInt, l = typeof kt == "object" && kt && kt.Object === Object && kt, d = typeof self == "object" && self && self.Object === Object && self, u = l || d || Function("return this")(), c = Object.prototype, p = c.toString, f = Math.max, g = Math.min, b = function() {
4042
+ var i = "Expected a function", t = NaN, e = "[object Symbol]", n = /^\s+|\s+$/g, r = /^[-+]0x[0-9a-f]+$/i, o = /^0b[01]+$/i, s = /^0o[0-7]+$/i, a = parseInt, l = typeof Bt == "object" && Bt && Bt.Object === Object && Bt, d = typeof self == "object" && self && self.Object === Object && self, u = l || d || Function("return this")(), c = Object.prototype, p = c.toString, f = Math.max, g = Math.min, b = function() {
4015
4043
  return u.Date.now();
4016
4044
  };
4017
- function N($, m, A) {
4018
- var M, L, q, X, H, R, Z = 0, dt = !1, tt = !1, ct = !0;
4019
- if (typeof $ != "function")
4045
+ function N(E, m, A) {
4046
+ var M, O, q, X, H, R, Z = 0, dt = !1, tt = !1, ct = !0;
4047
+ if (typeof E != "function")
4020
4048
  throw new TypeError(i);
4021
4049
  m = K(m) || 0, J(A) && (dt = !!A.leading, tt = "maxWait" in A, q = tt ? f(K(A.maxWait) || 0, m) : q, ct = "trailing" in A ? !!A.trailing : ct);
4022
- function gt(k) {
4023
- var I = M, ut = L;
4024
- return M = L = void 0, Z = k, X = $.apply(ut, I), X;
4050
+ function gt(V) {
4051
+ var I = M, ut = O;
4052
+ return M = O = void 0, Z = V, X = E.apply(ut, I), X;
4025
4053
  }
4026
- function Ut(k) {
4027
- return Z = k, H = setTimeout(At, m), dt ? gt(k) : X;
4054
+ function Ft(V) {
4055
+ return Z = V, H = setTimeout(At, m), dt ? gt(V) : X;
4028
4056
  }
4029
- function Ie(k) {
4030
- var I = k - R, ut = k - Z, Rt = m - I;
4057
+ function Ne(V) {
4058
+ var I = V - R, ut = V - Z, Rt = m - I;
4031
4059
  return tt ? g(Rt, q - ut) : Rt;
4032
4060
  }
4033
- function Ft(k) {
4034
- var I = k - R, ut = k - Z;
4061
+ function jt(V) {
4062
+ var I = V - R, ut = V - Z;
4035
4063
  return R === void 0 || I >= m || I < 0 || tt && ut >= q;
4036
4064
  }
4037
4065
  function At() {
4038
- var k = b();
4039
- if (Ft(k))
4040
- return jt(k);
4041
- H = setTimeout(At, Ie(k));
4066
+ var V = b();
4067
+ if (jt(V))
4068
+ return zt(V);
4069
+ H = setTimeout(At, Ne(V));
4042
4070
  }
4043
- function jt(k) {
4044
- return H = void 0, ct && M ? gt(k) : (M = L = void 0, X);
4071
+ function zt(V) {
4072
+ return H = void 0, ct && M ? gt(V) : (M = O = void 0, X);
4045
4073
  }
4046
- function Ne() {
4047
- H !== void 0 && clearTimeout(H), Z = 0, M = R = L = H = void 0;
4074
+ function He() {
4075
+ H !== void 0 && clearTimeout(H), Z = 0, M = R = O = H = void 0;
4048
4076
  }
4049
4077
  function _i() {
4050
- return H === void 0 ? X : jt(b());
4078
+ return H === void 0 ? X : zt(b());
4051
4079
  }
4052
- function he() {
4053
- var k = b(), I = Ft(k);
4054
- if (M = arguments, L = this, R = k, I) {
4080
+ function pe() {
4081
+ var V = b(), I = jt(V);
4082
+ if (M = arguments, O = this, R = V, I) {
4055
4083
  if (H === void 0)
4056
- return Ut(R);
4084
+ return Ft(R);
4057
4085
  if (tt)
4058
4086
  return H = setTimeout(At, m), gt(R);
4059
4087
  }
4060
4088
  return H === void 0 && (H = setTimeout(At, m)), X;
4061
4089
  }
4062
- return he.cancel = Ne, he.flush = _i, he;
4090
+ return pe.cancel = He, pe.flush = _i, pe;
4063
4091
  }
4064
- function J($) {
4065
- var m = typeof $;
4066
- return !!$ && (m == "object" || m == "function");
4092
+ function J(E) {
4093
+ var m = typeof E;
4094
+ return !!E && (m == "object" || m == "function");
4067
4095
  }
4068
- function U($) {
4069
- return !!$ && typeof $ == "object";
4096
+ function U(E) {
4097
+ return !!E && typeof E == "object";
4070
4098
  }
4071
- function st($) {
4072
- return typeof $ == "symbol" || U($) && p.call($) == e;
4099
+ function st(E) {
4100
+ return typeof E == "symbol" || U(E) && p.call(E) == e;
4073
4101
  }
4074
- function K($) {
4075
- if (typeof $ == "number")
4076
- return $;
4077
- if (st($))
4102
+ function K(E) {
4103
+ if (typeof E == "number")
4104
+ return E;
4105
+ if (st(E))
4078
4106
  return t;
4079
- if (J($)) {
4080
- var m = typeof $.valueOf == "function" ? $.valueOf() : $;
4081
- $ = J(m) ? m + "" : m;
4107
+ if (J(E)) {
4108
+ var m = typeof E.valueOf == "function" ? E.valueOf() : E;
4109
+ E = J(m) ? m + "" : m;
4082
4110
  }
4083
- if (typeof $ != "string")
4084
- return $ === 0 ? $ : +$;
4085
- $ = $.replace(n, "");
4086
- var A = o.test($);
4087
- return A || s.test($) ? a($.slice(2), A ? 2 : 8) : r.test($) ? t : +$;
4111
+ if (typeof E != "string")
4112
+ return E === 0 ? E : +E;
4113
+ E = E.replace(n, "");
4114
+ var A = o.test(E);
4115
+ return A || s.test(E) ? a(E.slice(2), A ? 2 : 8) : r.test(E) ? t : +E;
4088
4116
  }
4089
4117
  return Zi = N, Zi;
4090
4118
  }
@@ -4361,7 +4389,7 @@ const ya = (i, t) => {
4361
4389
  }, ba = (i, t) => {
4362
4390
  t.open = i || null, t.urlInput = null, t.jsonInput = null, t.wmsCapabilities = null, t.requestUpdate();
4363
4391
  };
4364
- var it, Zr, qr, Qi, Xr, Yr, We, xi, Ei;
4392
+ var it, Zr, qr, Qi, Xr, Yr, We, xi, $i;
4365
4393
  class zr extends lt {
4366
4394
  constructor() {
4367
4395
  super();
@@ -4404,7 +4432,7 @@ class zr extends lt {
4404
4432
  display: none;
4405
4433
  }
4406
4434
  `);
4407
- P(this, Ei, `
4435
+ P(this, $i, `
4408
4436
  .eox-add {
4409
4437
  background: #f0f2f5;
4410
4438
  border-top: 1px solid #0041701a;
@@ -4553,11 +4581,11 @@ class zr extends lt {
4553
4581
  * Handles input fields, search, and addition of layers.
4554
4582
  */
4555
4583
  render() {
4556
- const e = this.open ? "open" : "close", n = this.open === "url", r = this.open === "json", o = !us(this.urlInput) || this.searchLoad ? !0 : O;
4584
+ const e = this.open ? "open" : "close", n = this.open === "url", r = this.open === "json", o = !us(this.urlInput) || this.searchLoad ? !0 : L;
4557
4585
  return x`
4558
4586
  <style>
4559
4587
  ${T(this, xi)}
4560
- ${!this.unstyled && T(this, Ei)}
4588
+ ${!this.unstyled && T(this, $i)}
4561
4589
  </style>
4562
4590
  <div class="eox-add-layer-main">
4563
4591
  <div class="eox-add-layer-col">
@@ -4629,7 +4657,7 @@ class zr extends lt {
4629
4657
  `;
4630
4658
  }
4631
4659
  )}
4632
- </ul>` : O}
4660
+ </ul>` : L}
4633
4661
  ` : x`
4634
4662
  <!-- Textarea for JSON input -->
4635
4663
  <textarea
@@ -4642,7 +4670,7 @@ class zr extends lt {
4642
4670
  <!-- Button to add JSON layer -->
4643
4671
  <button
4644
4672
  class="add-layer-icon json-add-layer"
4645
- disabled=${hs(this.jsonInput) ? O : !0}
4673
+ disabled=${hs(this.jsonInput) ? L : !0}
4646
4674
  @click=${j(this, it, Xr)}
4647
4675
  >
4648
4676
  ${this.unstyled ? "Add JSON" : ""}
@@ -4690,7 +4718,7 @@ Yr = function(e) {
4690
4718
  */
4691
4719
  We = function(e) {
4692
4720
  ba(e, this);
4693
- }, xi = new WeakMap(), Ei = new WeakMap(), // Define static properties for the component
4721
+ }, xi = new WeakMap(), $i = new WeakMap(), // Define static properties for the component
4694
4722
  F(zr, "properties", {
4695
4723
  eoxMap: { attribute: !1, state: !0 },
4696
4724
  unstyled: { type: Boolean },
@@ -4712,19 +4740,19 @@ const va = (i, t) => {
4712
4740
  const t = wa(i.for);
4713
4741
  return t && t.map !== i.map && (i.map = t.map), t;
4714
4742
  };
4715
- var Ht, ce, Gr, Jr, $i;
4743
+ var kt, ue, Gr, Jr, Ei;
4716
4744
  class Wr extends lt {
4717
4745
  // Constructor to set default values for properties
4718
4746
  constructor() {
4719
4747
  super();
4720
- P(this, ce);
4748
+ P(this, ue);
4721
4749
  /**
4722
4750
  * Instance of `eox-map` which is a wrapper for the OL
4723
4751
  *
4724
4752
  * @type {import("../../map/src/main").EOxMap}
4725
4753
  */
4726
- P(this, Ht);
4727
- P(this, $i, `
4754
+ P(this, kt);
4755
+ P(this, Ei, `
4728
4756
  :host, :root {
4729
4757
  font-family: Roboto, sans-serif;
4730
4758
  --padding: 0.5rem;
@@ -4759,28 +4787,28 @@ class Wr extends lt {
4759
4787
  e.has("for") && (this.eoxMap = jn(this));
4760
4788
  }
4761
4789
  get eoxMap() {
4762
- return T(this, Ht);
4790
+ return T(this, kt);
4763
4791
  }
4764
4792
  set eoxMap(e) {
4765
- const n = T(this, Ht);
4766
- Qt(this, Ht, e), this.requestUpdate("eoxMap", n);
4793
+ const n = T(this, kt);
4794
+ te(this, kt, e), this.requestUpdate("eoxMap", n);
4767
4795
  }
4768
4796
  render() {
4769
4797
  var r, o, s;
4770
4798
  const e = (r = this.map) == null ? void 0 : r.getLayers().getArray(), n = e && ((o = fn(e, "layerControlOptional", !0)) == null ? void 0 : o.length) > 0;
4771
4799
  return x`
4772
4800
  <style>
4773
- ${!this.unstyled && T(this, $i)}
4801
+ ${!this.unstyled && T(this, Ei)}
4774
4802
  ${this.styleOverride}
4775
4803
  </style>
4776
4804
 
4777
4805
  <!-- Conditional rendering of add layers component -->
4778
4806
  ${G(
4779
- this.addExternalLayers && ((s = T(this, Ht)) == null ? void 0 : s.addOrUpdateLayer),
4807
+ this.addExternalLayers && ((s = T(this, kt)) == null ? void 0 : s.addOrUpdateLayer),
4780
4808
  () => x`
4781
4809
  <eox-layercontrol-add-layers
4782
4810
  .noShadow=${!0}
4783
- .eoxMap=${T(this, Ht)}
4811
+ .eoxMap=${T(this, kt)}
4784
4812
  .unstyled=${this.unstyled}
4785
4813
  ></eox-layercontrol-add-layers>
4786
4814
  `
@@ -4801,8 +4829,8 @@ class Wr extends lt {
4801
4829
  .tools=${this.tools}
4802
4830
  .unstyled=${this.unstyled}
4803
4831
  .toolsAsList=${this.toolsAsList}
4804
- @changed=${j(this, ce, Gr)}
4805
- @datetime:updated=${j(this, ce, Jr)}
4832
+ @changed=${j(this, ue, Gr)}
4833
+ @datetime:updated=${j(this, ue, Jr)}
4806
4834
  ></eox-layercontrol-layer-list>
4807
4835
  `
4808
4836
  )}
@@ -4823,7 +4851,7 @@ class Wr extends lt {
4823
4851
  `;
4824
4852
  }
4825
4853
  }
4826
- Ht = new WeakMap(), ce = new WeakSet(), /**
4854
+ kt = new WeakMap(), ue = new WeakSet(), /**
4827
4855
  * Event handler for changes in the layer list
4828
4856
  *
4829
4857
  * @param {CustomEvent & {target: Element}} evt
@@ -4838,7 +4866,7 @@ Jr = function(e) {
4838
4866
  this.dispatchEvent(
4839
4867
  new CustomEvent("datetime:updated", { detail: e.detail })
4840
4868
  );
4841
- }, $i = new WeakMap(), // Define static properties for the component
4869
+ }, Ei = new WeakMap(), // Define static properties for the component
4842
4870
  F(Wr, "properties", {
4843
4871
  for: { type: String },
4844
4872
  idProperty: { attribute: "id-property" },