@eox/layercontrol 0.5.0 → 0.5.1

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.
@@ -262,9 +262,9 @@ const Zt = window, _t = Zt.trustedTypes, ke = _t ? _t.createPolicy("lit-html", {
262
262
  let r, o = t === 2 ? "<svg>" : "", s = Dt;
263
263
  for (let l = 0; l < e; l++) {
264
264
  const d = i[l];
265
- let f, u, c = -1, m = 0;
266
- for (; m < d.length && (s.lastIndex = m, u = s.exec(d), u !== null); )
267
- m = s.lastIndex, s === Dt ? u[1] === "!--" ? s = Ue : u[1] !== void 0 ? s = Ve : u[2] !== void 0 ? (li.test(u[2]) && (r = RegExp("</" + u[2], "g")), s = it) : u[3] !== void 0 && (s = it) : s === it ? u[0] === ">" ? (s = r ?? Dt, c = -1) : u[1] === void 0 ? c = -2 : (c = s.lastIndex - u[2].length, f = u[1], s = u[3] === void 0 ? it : u[3] === '"' ? je : Fe) : s === je || s === Fe ? s = it : s === Ue || s === Ve ? s = Dt : (s = it, r = void 0);
265
+ let f, u, c = -1, v = 0;
266
+ for (; v < d.length && (s.lastIndex = v, u = s.exec(d), u !== null); )
267
+ v = s.lastIndex, s === Dt ? u[1] === "!--" ? s = Ue : u[1] !== void 0 ? s = Ve : u[2] !== void 0 ? (li.test(u[2]) && (r = RegExp("</" + u[2], "g")), s = it) : u[3] !== void 0 && (s = it) : s === it ? u[0] === ">" ? (s = r ?? Dt, c = -1) : u[1] === void 0 ? c = -2 : (c = s.lastIndex - u[2].length, f = u[1], s = u[3] === void 0 ? it : u[3] === '"' ? je : Fe) : s === je || s === Fe ? s = it : s === Ue || s === Ve ? s = Dt : (s = it, r = void 0);
268
268
  const p = s === it && i[l + 1].startsWith("/>") ? " " : "";
269
269
  o += s === Dt ? d + Fi : c >= 0 ? (n.push(f), d.slice(0, c) + Kt + d.slice(c) + W + p) : d + W + (c === -2 ? (n.push(void 0), l) : p);
270
270
  }
@@ -289,10 +289,10 @@ class Mt {
289
289
  const u = [];
290
290
  for (const c of r.getAttributeNames())
291
291
  if (c.endsWith(Kt) || c.startsWith(W)) {
292
- const m = f[s++];
293
- if (u.push(c), m !== void 0) {
294
- const p = r.getAttribute(m.toLowerCase() + Kt).split(W), v = /([.?@])?(.*)/.exec(m);
295
- l.push({ type: 1, index: o, name: v[2], strings: p, ctor: v[1] === "." ? ui : v[1] === "?" ? ci : v[1] === "@" ? fi : Ht });
292
+ const v = f[s++];
293
+ if (u.push(c), v !== void 0) {
294
+ const p = r.getAttribute(v.toLowerCase() + Kt).split(W), m = /([.?@])?(.*)/.exec(v);
295
+ l.push({ type: 1, index: o, name: m[2], strings: p, ctor: m[1] === "." ? ui : m[1] === "?" ? ci : m[1] === "@" ? fi : Ht });
296
296
  } else
297
297
  l.push({ type: 6, index: o });
298
298
  }
@@ -303,8 +303,8 @@ class Mt {
303
303
  const u = r.textContent.split(W), c = u.length - 1;
304
304
  if (c > 0) {
305
305
  r.textContent = _t ? _t.emptyScript : "";
306
- for (let m = 0; m < c; m++)
307
- r.append(u[m], Nt()), lt.nextNode(), l.push({ type: 2, index: ++o });
306
+ for (let v = 0; v < c; v++)
307
+ r.append(u[v], Nt()), lt.nextNode(), l.push({ type: 2, index: ++o });
308
308
  r.append(u[c], Nt());
309
309
  }
310
310
  }
@@ -517,7 +517,7 @@ const Yi = (i, t, e) => {
517
517
  * SPDX-License-Identifier: BSD-3-Clause
518
518
  */
519
519
  var he, ue;
520
- let vt = class extends pt {
520
+ let mt = class extends pt {
521
521
  constructor() {
522
522
  super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
523
523
  }
@@ -542,9 +542,9 @@ let vt = class extends pt {
542
542
  return j;
543
543
  }
544
544
  };
545
- vt.finalized = !0, vt._$litElement$ = !0, (he = globalThis.litElementHydrateSupport) === null || he === void 0 || he.call(globalThis, { LitElement: vt });
545
+ mt.finalized = !0, mt._$litElement$ = !0, (he = globalThis.litElementHydrateSupport) === null || he === void 0 || he.call(globalThis, { LitElement: mt });
546
546
  const Ye = globalThis.litElementPolyfillSupport;
547
- Ye == null || Ye({ LitElement: vt });
547
+ Ye == null || Ye({ LitElement: mt });
548
548
  ((ue = globalThis.litElementVersions) !== null && ue !== void 0 ? ue : globalThis.litElementVersions = []).push("3.3.2");
549
549
  /**
550
550
  * @license
@@ -594,8 +594,8 @@ var ce;
594
594
  * Copyright 2017 Google LLC
595
595
  * SPDX-License-Identifier: BSD-3-Clause
596
596
  */
597
- const st = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, mi = (i) => (...t) => ({ _$litDirective$: i, values: t });
598
- class vi {
597
+ const st = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, vi = (i) => (...t) => ({ _$litDirective$: i, values: t });
598
+ class mi {
599
599
  constructor(t) {
600
600
  }
601
601
  get _$AU() {
@@ -657,7 +657,7 @@ const Ge = (i, t, e) => {
657
657
  for (let r = t; r <= e; r++)
658
658
  n.set(i[r], r);
659
659
  return n;
660
- }, we = mi(class extends vi {
660
+ }, we = vi(class extends mi {
661
661
  constructor(i) {
662
662
  if (super(i), i.type !== st.CHILD)
663
663
  throw Error("repeat() can only be used in text expressions");
@@ -680,22 +680,22 @@ const Ge = (i, t, e) => {
680
680
  if (!Array.isArray(o))
681
681
  return this.ht = a, s;
682
682
  const l = (r = this.ht) !== null && r !== void 0 ? r : this.ht = [], d = [];
683
- let f, u, c = 0, m = o.length - 1, p = 0, v = s.length - 1;
684
- for (; c <= m && p <= v; )
683
+ let f, u, c = 0, v = o.length - 1, p = 0, m = s.length - 1;
684
+ for (; c <= v && p <= m; )
685
685
  if (o[c] === null)
686
686
  c++;
687
- else if (o[m] === null)
688
- m--;
687
+ else if (o[v] === null)
688
+ v--;
689
689
  else if (l[c] === a[p])
690
690
  d[p] = nt(o[c], s[p]), c++, p++;
691
- else if (l[m] === a[v])
692
- d[v] = nt(o[m], s[v]), m--, v--;
693
- else if (l[c] === a[v])
694
- d[v] = nt(o[c], s[v]), Tt(i, d[v + 1], o[c]), c++, v--;
695
- else if (l[m] === a[p])
696
- d[p] = nt(o[m], s[p]), Tt(i, o[c], o[m]), m--, p++;
697
- else if (f === void 0 && (f = Ge(a, p, v), u = Ge(l, c, m)), f.has(l[c]))
698
- if (f.has(l[m])) {
691
+ else if (l[v] === a[m])
692
+ d[m] = nt(o[v], s[m]), v--, m--;
693
+ else if (l[c] === a[m])
694
+ d[m] = nt(o[c], s[m]), Tt(i, d[m + 1], o[c]), c++, m--;
695
+ else if (l[v] === a[p])
696
+ d[p] = nt(o[v], s[p]), Tt(i, o[c], o[v]), v--, p++;
697
+ else if (f === void 0 && (f = Ge(a, p, m), u = Ge(l, c, v)), f.has(l[c]))
698
+ if (f.has(l[v])) {
699
699
  const D = u.get(a[p]), V = D !== void 0 ? o[D] : null;
700
700
  if (V === null) {
701
701
  const O = Tt(i, o[c]);
@@ -704,14 +704,14 @@ const Ge = (i, t, e) => {
704
704
  d[p] = nt(V, s[p]), Tt(i, o[c], V), o[D] = null;
705
705
  p++;
706
706
  } else
707
- fe(o[m]), m--;
707
+ fe(o[v]), v--;
708
708
  else
709
709
  fe(o[c]), c++;
710
- for (; p <= v; ) {
711
- const D = Tt(i, d[v + 1]);
710
+ for (; p <= m; ) {
711
+ const D = Tt(i, d[m + 1]);
712
712
  nt(D, s[p]), d[p++] = D;
713
713
  }
714
- for (; c <= m; ) {
714
+ for (; c <= v; ) {
715
715
  const D = o[c++];
716
716
  D !== null && fe(D);
717
717
  }
@@ -723,7 +723,7 @@ const Ge = (i, t, e) => {
723
723
  * Copyright 2020 Google LLC
724
724
  * SPDX-License-Identifier: BSD-3-Clause
725
725
  */
726
- const Ce = mi(class extends vi {
726
+ const Ce = vi(class extends mi {
727
727
  constructor(i) {
728
728
  if (super(i), i.type !== st.PROPERTY && i.type !== st.ATTRIBUTE && i.type !== st.BOOLEAN_ATTRIBUTE)
729
729
  throw Error("The `live` directive is not allowed on child or event bindings");
@@ -930,8 +930,8 @@ function T(i, t, e, n, r) {
930
930
  }
931
931
  while (r = r.parentNode);
932
932
  if (n && i !== window) {
933
- var m = yt(r || i), p = m && m.a, v = m && m.d;
934
- m && (s /= v, a /= p, u /= p, f /= v, l = s + f, d = a + u);
933
+ var v = yt(r || i), p = v && v.a, m = v && v.d;
934
+ v && (s /= m, a /= p, u /= p, f /= m, l = s + f, d = a + u);
935
935
  }
936
936
  return {
937
937
  top: s,
@@ -1080,9 +1080,9 @@ function dn() {
1080
1080
  }
1081
1081
  var o = !1, s = 0;
1082
1082
  i.forEach(function(a) {
1083
- var l = 0, d = a.target, f = d.fromRect, u = T(d), c = d.prevFromRect, m = d.prevToRect, p = a.rect, v = yt(d, !0);
1084
- v && (u.top -= v.f, u.left -= v.e), d.toRect = u, d.thisAnimationDuration && pe(c, u) && !pe(f, u) && // Make sure animatingRect is on line between toRect & fromRect
1085
- (p.top - u.top) / (p.left - u.left) === (f.top - u.top) / (f.left - u.left) && (l = un(p, c, m, r.options)), pe(u, f) || (d.prevFromRect = f, d.prevToRect = u, l || (l = r.options.animation), r.animate(d, p, u, l)), l && (o = !0, s = Math.max(s, l), clearTimeout(d.animationResetTimer), d.animationResetTimer = setTimeout(function() {
1083
+ var l = 0, d = a.target, f = d.fromRect, u = T(d), c = d.prevFromRect, v = d.prevToRect, p = a.rect, m = yt(d, !0);
1084
+ m && (u.top -= m.f, u.left -= m.e), d.toRect = u, d.thisAnimationDuration && pe(c, u) && !pe(f, u) && // Make sure animatingRect is on line between toRect & fromRect
1085
+ (p.top - u.top) / (p.left - u.left) === (f.top - u.top) / (f.left - u.left) && (l = un(p, c, v, r.options)), pe(u, f) || (d.prevFromRect = f, d.prevToRect = u, l || (l = r.options.animation), r.animate(d, p, u, l)), l && (o = !0, s = Math.max(s, l), clearTimeout(d.animationResetTimer), d.animationResetTimer = setTimeout(function() {
1086
1086
  d.animationTime = 0, d.prevFromRect = null, d.fromRect = null, d.prevToRect = null, d.thisAnimationDuration = null;
1087
1087
  }, l), d.thisAnimationDuration = l);
1088
1088
  }), clearTimeout(t), o ? t = setTimeout(function() {
@@ -1106,12 +1106,12 @@ function hn(i) {
1106
1106
  function un(i, t, e, n) {
1107
1107
  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;
1108
1108
  }
1109
- var ct = [], me = {
1109
+ var ct = [], ve = {
1110
1110
  initializeByDefault: !0
1111
1111
  }, Bt = {
1112
1112
  mount: function(t) {
1113
- for (var e in me)
1114
- me.hasOwnProperty(e) && !(e in t) && (t[e] = me[e]);
1113
+ for (var e in ve)
1114
+ ve.hasOwnProperty(e) && !(e in t) && (t[e] = ve[e]);
1115
1115
  ct.forEach(function(n) {
1116
1116
  if (n.pluginName === t.pluginName)
1117
1117
  throw "Sortable: Cannot mount plugin ".concat(t.pluginName, " more than once");
@@ -1159,17 +1159,17 @@ var ct = [], me = {
1159
1159
  }
1160
1160
  };
1161
1161
  function cn(i) {
1162
- 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, f = i.oldDraggableIndex, u = i.newDraggableIndex, c = i.originalEvent, m = i.putSortable, p = i.extraEventProperties;
1162
+ 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, f = i.oldDraggableIndex, u = i.newDraggableIndex, c = i.originalEvent, v = i.putSortable, p = i.extraEventProperties;
1163
1163
  if (t = t || e && e[U], !!t) {
1164
- var v, D = t.options, V = "on" + n.charAt(0).toUpperCase() + n.substr(1);
1165
- window.CustomEvent && !tt && !ie ? v = new CustomEvent(n, {
1164
+ var m, D = t.options, V = "on" + n.charAt(0).toUpperCase() + n.substr(1);
1165
+ window.CustomEvent && !tt && !ie ? m = new CustomEvent(n, {
1166
1166
  bubbles: !0,
1167
1167
  cancelable: !0
1168
- }) : (v = document.createEvent("Event"), v.initEvent(n, !0, !0)), v.to = s || e, v.from = a || e, v.item = r || e, v.clone = o, v.oldIndex = l, v.newIndex = d, v.oldDraggableIndex = f, v.newDraggableIndex = u, v.originalEvent = c, v.pullMode = m ? m.lastPutMode : void 0;
1168
+ }) : (m = document.createEvent("Event"), m.initEvent(n, !0, !0)), m.to = s || e, m.from = a || e, m.item = r || e, m.clone = o, m.oldIndex = l, m.newIndex = d, m.oldDraggableIndex = f, m.newDraggableIndex = u, m.originalEvent = c, m.pullMode = v ? v.lastPutMode : void 0;
1169
1169
  var O = X(X({}, p), Bt.getEventProperties(n, t));
1170
1170
  for (var et in O)
1171
- v[et] = O[et];
1172
- e && e.dispatchEvent(v), D[V] && D[V].call(t, v);
1171
+ m[et] = O[et];
1172
+ e && e.dispatchEvent(m), D[V] && D[V].call(t, m);
1173
1173
  }
1174
1174
  }
1175
1175
  var fn = ["evt"], L = function(t, e) {
@@ -1187,7 +1187,7 @@ var fn = ["evt"], L = function(t, e) {
1187
1187
  putSortable: x,
1188
1188
  activeSortable: y.active,
1189
1189
  originalEvent: r,
1190
- oldIndex: mt,
1190
+ oldIndex: vt,
1191
1191
  oldDraggableIndex: Ot,
1192
1192
  newIndex: H,
1193
1193
  newDraggableIndex: Z,
@@ -1214,13 +1214,13 @@ function I(i) {
1214
1214
  cloneEl: C,
1215
1215
  targetEl: h,
1216
1216
  rootEl: w,
1217
- oldIndex: mt,
1217
+ oldIndex: vt,
1218
1218
  oldDraggableIndex: Ot,
1219
1219
  newIndex: H,
1220
1220
  newDraggableIndex: Z
1221
1221
  }, i));
1222
1222
  }
1223
- var h, A, _, w, at, Yt, C, K, mt, H, Ot, Z, kt, x, gt = !1, Jt = !1, te = [], rt, F, ve, ye, ei, ii, xt, ft, Pt, It = !1, Ut = !1, Wt, P, _e = [], Ae = !1, ee = [], ne = typeof document < "u", Vt = bi, ni = ie || tt ? "cssFloat" : "float", pn = ne && !Ei && !bi && "draggable" in document.createElement("div"), Ai = function() {
1223
+ var h, A, _, w, at, Yt, C, K, vt, H, Ot, Z, kt, x, gt = !1, Jt = !1, te = [], rt, F, me, ye, ei, ii, xt, ft, Pt, It = !1, Ut = !1, Wt, P, _e = [], Ae = !1, ee = [], ne = typeof document < "u", Vt = bi, ni = ie || tt ? "cssFloat" : "float", pn = ne && !Ei && !bi && "draggable" in document.createElement("div"), Ai = function() {
1224
1224
  if (ne) {
1225
1225
  if (tt)
1226
1226
  return !1;
@@ -1241,7 +1241,7 @@ var h, A, _, w, at, Yt, C, K, mt, H, Ot, Z, kt, x, gt = !1, Jt = !1, te = [], rt
1241
1241
  }, gn = function(t, e, n) {
1242
1242
  var r = n ? t.left : t.top, o = n ? t.right : t.bottom, s = n ? t.width : t.height, a = n ? e.left : e.top, l = n ? e.right : e.bottom, d = n ? e.width : e.height;
1243
1243
  return r === a || o === l || r + s / 2 === a + d / 2;
1244
- }, mn = function(t, e) {
1244
+ }, vn = function(t, e) {
1245
1245
  var n;
1246
1246
  return te.some(function(r) {
1247
1247
  var o = r[U].options.emptyInsertThreshold;
@@ -1283,7 +1283,7 @@ ne && !Ei && document.addEventListener("click", function(i) {
1283
1283
  var ot = function(t) {
1284
1284
  if (h) {
1285
1285
  t = t.touches ? t.touches[0] : t;
1286
- var e = mn(t.clientX, t.clientY);
1286
+ var e = vn(t.clientX, t.clientY);
1287
1287
  if (e) {
1288
1288
  var n = {};
1289
1289
  for (var r in t)
@@ -1291,7 +1291,7 @@ var ot = function(t) {
1291
1291
  n.target = n.rootEl = e, n.preventDefault = void 0, n.stopPropagation = void 0, e[U]._onDragOver(n);
1292
1292
  }
1293
1293
  }
1294
- }, vn = function(t) {
1294
+ }, mn = function(t) {
1295
1295
  h && h.parentNode[U]._isOutsideThisEl(t.target);
1296
1296
  };
1297
1297
  function y(i, t) {
@@ -1364,7 +1364,7 @@ y.prototype = /** @lends Sortable.prototype */
1364
1364
  if (t.cancelable) {
1365
1365
  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, f = r.filter;
1366
1366
  if (An(n), !h && !(/mousedown|pointerdown/.test(s) && t.button !== 0 || r.disabled) && !d.isContentEditable && !(!this.nativeDraggable && Xt && l && l.tagName.toUpperCase() === "SELECT") && (l = z(l, r.draggable, n, !1), !(l && l.animated) && Yt !== l)) {
1367
- if (mt = k(l), Ot = k(l, r.draggable), typeof f == "function") {
1367
+ if (vt = k(l), Ot = k(l, r.draggable), typeof f == "function") {
1368
1368
  if (f.call(this, t, l, this)) {
1369
1369
  I({
1370
1370
  sortable: e,
@@ -1456,7 +1456,7 @@ y.prototype = /** @lends Sortable.prototype */
1456
1456
  if (gt = !1, w && h) {
1457
1457
  L("dragStarted", this, {
1458
1458
  evt: e
1459
- }), this.nativeDraggable && $(document, "dragover", vn);
1459
+ }), this.nativeDraggable && $(document, "dragover", mn);
1460
1460
  var n = this.options;
1461
1461
  !t && M(h, n.dragClass, !1), M(h, n.ghostClass, !0), y.active = this, t && this._appendGhost(), I({
1462
1462
  sortable: this,
@@ -1497,7 +1497,7 @@ y.prototype = /** @lends Sortable.prototype */
1497
1497
  this._onDragStart(t, !0);
1498
1498
  }
1499
1499
  if (_) {
1500
- s ? (s.e += f - (ve || 0), s.f += u - (ye || 0)) : s = {
1500
+ s ? (s.e += f - (me || 0), s.f += u - (ye || 0)) : s = {
1501
1501
  a: 1,
1502
1502
  b: 0,
1503
1503
  c: 0,
@@ -1506,7 +1506,7 @@ y.prototype = /** @lends Sortable.prototype */
1506
1506
  f: u
1507
1507
  };
1508
1508
  var c = "matrix(".concat(s.a, ",").concat(s.b, ",").concat(s.c, ",").concat(s.d, ",").concat(s.e, ",").concat(s.f, ")");
1509
- g(_, "webkitTransform", c), g(_, "mozTransform", c), g(_, "msTransform", c), g(_, "transform", c), ve = f, ye = u, F = o;
1509
+ g(_, "webkitTransform", c), g(_, "mozTransform", c), g(_, "msTransform", c), g(_, "transform", c), me = f, ye = u, F = o;
1510
1510
  }
1511
1511
  t.cancelable && t.preventDefault();
1512
1512
  }
@@ -1539,14 +1539,14 @@ y.prototype = /** @lends Sortable.prototype */
1539
1539
  },
1540
1540
  // Returns true - if no further action is needed (either inserted or another condition)
1541
1541
  _onDragOver: function(t) {
1542
- var e = this.el, n = t.target, r, o, s, a = this.options, l = a.group, d = y.active, f = kt === l, u = a.sort, c = x || d, m, p = this, v = !1;
1542
+ var e = this.el, n = t.target, r, o, s, a = this.options, l = a.group, d = y.active, f = kt === l, u = a.sort, c = x || d, v, p = this, m = !1;
1543
1543
  if (Ae)
1544
1544
  return;
1545
1545
  function D(St, Hi) {
1546
1546
  L(St, p, X({
1547
1547
  evt: t,
1548
1548
  isOwner: f,
1549
- axis: m ? "vertical" : "horizontal",
1549
+ axis: v ? "vertical" : "horizontal",
1550
1550
  revert: s,
1551
1551
  dragRect: r,
1552
1552
  targetRect: o,
@@ -1568,7 +1568,7 @@ y.prototype = /** @lends Sortable.prototype */
1568
1568
  insertion: St
1569
1569
  }), St && (f ? d._hideClone() : d._showClone(p), p !== c && (M(h, x ? x.options.ghostClass : d.options.ghostClass, !1), M(h, a.ghostClass, !0)), x !== p && p !== y.active ? x = p : p === y.active && x && (x = null), c === p && (p._ignoreWhileAnimating = n), p.animateAll(function() {
1570
1570
  D("dragOverAnimationComplete"), p._ignoreWhileAnimating = null;
1571
- }), p !== c && (c.animateAll(), c._ignoreWhileAnimating = null)), (n === h && !h.animated || n === e && !n.animated) && (ft = null), !a.dragoverBubble && !t.rootEl && n !== document && (h.parentNode[U]._isOutsideThisEl(t.target), !St && ot(t)), !a.dragoverBubble && t.stopPropagation && t.stopPropagation(), v = !0;
1571
+ }), p !== c && (c.animateAll(), c._ignoreWhileAnimating = null)), (n === h && !h.animated || n === e && !n.animated) && (ft = null), !a.dragoverBubble && !t.rootEl && n !== document && (h.parentNode[U]._isOutsideThisEl(t.target), !St && ot(t)), !a.dragoverBubble && t.stopPropagation && t.stopPropagation(), m = !0;
1572
1572
  }
1573
1573
  function et() {
1574
1574
  H = k(h), Z = k(h, a.draggable), I({
@@ -1581,21 +1581,21 @@ y.prototype = /** @lends Sortable.prototype */
1581
1581
  });
1582
1582
  }
1583
1583
  if (t.preventDefault !== void 0 && t.cancelable && t.preventDefault(), n = z(n, a.draggable, e, !0), D("dragOver"), y.eventCanceled)
1584
- return v;
1584
+ return m;
1585
1585
  if (h.contains(t.target) || n.animated && n.animatingX && n.animatingY || p._ignoreWhileAnimating === n)
1586
1586
  return O(!1);
1587
1587
  if (Jt = !1, d && !a.disabled && (f ? u || (s = A !== w) : x === this || (this.lastPutMode = kt.checkPull(this, d, h, t)) && l.checkPut(this, d, h, t))) {
1588
- if (m = this._getDirection(t, n) === "vertical", r = T(h), D("dragOverValid"), y.eventCanceled)
1589
- return v;
1588
+ if (v = this._getDirection(t, n) === "vertical", r = T(h), D("dragOverValid"), y.eventCanceled)
1589
+ return m;
1590
1590
  if (s)
1591
1591
  return A = w, V(), this._hideClone(), D("revert"), y.eventCanceled || (at ? w.insertBefore(h, at) : w.appendChild(h)), O(!0);
1592
1592
  var Y = xe(e, a.draggable);
1593
- if (!Y || En(t, m, this) && !Y.animated) {
1593
+ if (!Y || En(t, v, this) && !Y.animated) {
1594
1594
  if (Y === h)
1595
1595
  return O(!1);
1596
1596
  if (Y && e === t.target && (n = Y), n && (o = T(n)), Ft(w, e, h, r, n, o, t, !!n) !== !1)
1597
1597
  return V(), Y && Y.nextSibling ? e.insertBefore(h, Y.nextSibling) : e.appendChild(h), A = e, et(), O(!0);
1598
- } else if (Y && bn(t, m, this)) {
1598
+ } else if (Y && bn(t, v, this)) {
1599
1599
  var re = bt(e, 0, a, !0);
1600
1600
  if (re === h)
1601
1601
  return O(!1);
@@ -1603,8 +1603,8 @@ y.prototype = /** @lends Sortable.prototype */
1603
1603
  return V(), e.insertBefore(h, re), A = e, et(), O(!0);
1604
1604
  } else if (n.parentNode === e) {
1605
1605
  o = T(n);
1606
- var ut = 0, oe, Li = h.parentNode !== e, Oe = !gn(h.animated && h.toRect || r, n.animated && n.toRect || o, m), Pe = m ? "top" : "left", wt = Qe(n, "top", "top") || Qe(h, "top", "top"), Mi = wt ? wt.scrollTop : void 0;
1607
- ft !== n && (oe = o[Pe], It = !1, Ut = !Oe && a.invertSwap || Li), ut = $n(t, n, o, m, Oe ? 1 : a.swapThreshold, a.invertedSwapThreshold == null ? a.swapThreshold : a.invertedSwapThreshold, Ut, ft === n);
1606
+ var ut = 0, oe, Li = h.parentNode !== e, Oe = !gn(h.animated && h.toRect || r, n.animated && n.toRect || o, v), Pe = v ? "top" : "left", wt = Qe(n, "top", "top") || Qe(h, "top", "top"), Mi = wt ? wt.scrollTop : void 0;
1607
+ ft !== n && (oe = o[Pe], It = !1, Ut = !Oe && a.invertSwap || Li), ut = $n(t, n, o, v, Oe ? 1 : a.swapThreshold, a.invertedSwapThreshold == null ? a.swapThreshold : a.invertedSwapThreshold, Ut, ft === n);
1608
1608
  var Ct;
1609
1609
  if (ut !== 0) {
1610
1610
  var Ie = k(h);
@@ -1671,7 +1671,7 @@ y.prototype = /** @lends Sortable.prototype */
1671
1671
  name: "sort",
1672
1672
  toEl: A,
1673
1673
  originalEvent: t
1674
- })), x && x.save()) : H !== mt && H >= 0 && (I({
1674
+ })), x && x.save()) : H !== vt && H >= 0 && (I({
1675
1675
  sortable: this,
1676
1676
  name: "update",
1677
1677
  toEl: A,
@@ -1681,7 +1681,7 @@ y.prototype = /** @lends Sortable.prototype */
1681
1681
  name: "sort",
1682
1682
  toEl: A,
1683
1683
  originalEvent: t
1684
- })), y.active && ((H == null || H === -1) && (H = mt, Z = Ot), I({
1684
+ })), y.active && ((H == null || H === -1) && (H = vt, Z = Ot), I({
1685
1685
  sortable: this,
1686
1686
  name: "end",
1687
1687
  toEl: A,
@@ -1689,9 +1689,9 @@ y.prototype = /** @lends Sortable.prototype */
1689
1689
  }), this.save()))), this._nulling();
1690
1690
  },
1691
1691
  _nulling: function() {
1692
- L("nulling", this), w = h = A = _ = at = C = Yt = K = rt = F = xt = H = Z = mt = Ot = ft = Pt = x = kt = y.dragged = y.ghost = y.clone = y.active = null, ee.forEach(function(t) {
1692
+ L("nulling", this), w = h = A = _ = at = C = Yt = K = rt = F = xt = H = Z = vt = Ot = ft = Pt = x = kt = y.dragged = y.ghost = y.clone = y.active = null, ee.forEach(function(t) {
1693
1693
  t.checked = !0;
1694
- }), ee.length = ve = ye = 0;
1694
+ }), ee.length = me = ye = 0;
1695
1695
  },
1696
1696
  handleEvent: function(t) {
1697
1697
  switch (t.type) {
@@ -2013,7 +2013,7 @@ var Dn = Object.defineProperty, Tn = Object.getOwnPropertyDescriptor, S = (i, t,
2013
2013
  (s = i[o]) && (r = (n ? s(t, e, r) : s(r)) || r);
2014
2014
  return n && r && Dn(t, e, r), r;
2015
2015
  };
2016
- let B = class extends vt {
2016
+ let B = class extends mt {
2017
2017
  constructor() {
2018
2018
  super(...arguments), this.layerIdentifier = "ol_uid", this.layerTitle = "title", this.sortBy = "layerOrder", this.layerConfig = ["opacity"], this.externalLayerConfig = void 0, this.filterLayers = (i, t, e) => {
2019
2019
  let n = [];
@@ -2098,7 +2098,7 @@ let B = class extends vt {
2098
2098
  <div class="layer">
2099
2099
  <label>
2100
2100
  <input
2101
- type="checkbox"
2101
+ type="${a.get("layerControlExclusive") ? "radio" : "checkbox"}"
2102
2102
  .checked="${Ce(a.getVisible())}"
2103
2103
  @click=${() => {
2104
2104
  this.toggleLayerVisibility(a, s);
@@ -2290,7 +2290,7 @@ S([
2290
2290
  B = S([
2291
2291
  gi("eox-layercontrol")
2292
2292
  ], B);
2293
- let q = class extends vt {
2293
+ let q = class extends mt {
2294
2294
  constructor() {
2295
2295
  super(...arguments), this._configList = {};
2296
2296
  }
@@ -1,4 +1,4 @@
1
- (function(b,q){typeof exports=="object"&&typeof module<"u"?q(exports):typeof define=="function"&&define.amd?define(["exports"],q):(b=typeof globalThis<"u"?globalThis:b||self,q(b["eox-layercontrol"]={}))})(this,function(b){"use strict";/**
1
+ (function(E,q){typeof exports=="object"&&typeof module<"u"?q(exports):typeof define=="function"&&define.amd?define(["exports"],q):(E=typeof globalThis<"u"?globalThis:E||self,q(E["eox-layercontrol"]={}))})(this,function(E){"use strict";/**
2
2
  * @license
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
@@ -57,7 +57,7 @@
57
57
  * @author RubaXa <trash@rubaxa.org>
58
58
  * @author owenm <owen23355@gmail.com>
59
59
  * @license MIT
60
- */function an(i,e){var t=Object.keys(i);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(i);e&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(i,r).enumerable})),t.push.apply(t,n)}return t}function z(i){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?an(Object(t),!0).forEach(function(n){qn(i,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(t)):an(Object(t)).forEach(function(n){Object.defineProperty(i,n,Object.getOwnPropertyDescriptor(t,n))})}return i}function Ve(i){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ve=function(e){return typeof e}:Ve=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ve(i)}function qn(i,e,t){return e in i?Object.defineProperty(i,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[e]=t,i}function Z(){return Z=Object.assign||function(i){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(i[n]=t[n])}return i},Z.apply(this,arguments)}function Zn(i,e){if(i==null)return{};var t={},n=Object.keys(i),r,o;for(o=0;o<n.length;o++)r=n[o],!(e.indexOf(r)>=0)&&(t[r]=i[r]);return t}function Kn(i,e){if(i==null)return{};var t=Zn(i,e),n,r;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(i);for(r=0;r<o.length;r++)n=o[r],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(i,n)&&(t[n]=i[n])}return t}var Qn="1.15.0";function W(i){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(i)}var K=W(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),je=W(/Edge/i),sn=W(/firefox/i),Fe=W(/safari/i)&&!W(/chrome/i)&&!W(/android/i),ln=W(/iP(ad|od|hone)/i),dn=W(/chrome/i)&&W(/android/i),hn={capture:!1,passive:!1};function $(i,e,t){i.addEventListener(e,t,!K&&hn)}function E(i,e,t){i.removeEventListener(e,t,!K&&hn)}function ze(i,e){if(e){if(e[0]===">"&&(e=e.substring(1)),i)try{if(i.matches)return i.matches(e);if(i.msMatchesSelector)return i.msMatchesSelector(e);if(i.webkitMatchesSelector)return i.webkitMatchesSelector(e)}catch{return!1}return!1}}function Jn(i){return i.host&&i!==document&&i.host.nodeType?i.host:i.parentNode}function X(i,e,t,n){if(i){t=t||document;do{if(e!=null&&(e[0]===">"?i.parentNode===t&&ze(i,e):ze(i,e))||n&&i===t)return i;if(i===t)break}while(i=Jn(i))}return null}var un=/\s+/g;function B(i,e,t){if(i&&e)if(i.classList)i.classList[t?"add":"remove"](e);else{var n=(" "+i.className+" ").replace(un," ").replace(" "+e+" "," ");i.className=(n+(t?" "+e:"")).replace(un," ")}}function g(i,e,t){var n=i&&i.style;if(n){if(t===void 0)return document.defaultView&&document.defaultView.getComputedStyle?t=document.defaultView.getComputedStyle(i,""):i.currentStyle&&(t=i.currentStyle),e===void 0?t:t[e];!(e in n)&&e.indexOf("webkit")===-1&&(e="-webkit-"+e),n[e]=t+(typeof t=="string"?"":"px")}}function me(i,e){var t="";if(typeof i=="string")t=i;else do{var n=g(i,"transform");n&&n!=="none"&&(t=n+" "+t)}while(!e&&(i=i.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(t)}function cn(i,e,t){if(i){var n=i.getElementsByTagName(e),r=0,o=n.length;if(t)for(;r<o;r++)t(n[r],r);return n}return[]}function Q(){var i=document.scrollingElement;return i||document.documentElement}function O(i,e,t,n,r){if(!(!i.getBoundingClientRect&&i!==window)){var o,a,l,s,d,c,u;if(i!==window&&i.parentNode&&i!==Q()?(o=i.getBoundingClientRect(),a=o.top,l=o.left,s=o.bottom,d=o.right,c=o.height,u=o.width):(a=0,l=0,s=window.innerHeight,d=window.innerWidth,c=window.innerHeight,u=window.innerWidth),(e||t)&&i!==window&&(r=r||i.parentNode,!K))do if(r&&r.getBoundingClientRect&&(g(r,"transform")!=="none"||t&&g(r,"position")!=="static")){var f=r.getBoundingClientRect();a-=f.top+parseInt(g(r,"border-top-width")),l-=f.left+parseInt(g(r,"border-left-width")),s=a+o.height,d=l+o.width;break}while(r=r.parentNode);if(n&&i!==window){var m=me(r||i),p=m&&m.a,v=m&&m.d;m&&(a/=v,l/=p,u/=p,c/=v,s=a+c,d=l+u)}return{top:a,left:l,bottom:s,right:d,width:u,height:c}}}function fn(i,e,t){for(var n=gn(i,!0),r=O(i)[e];n;){var o=O(n)[t],a=void 0;if(t==="top"||t==="left"?a=r>=o:a=r<=o,!a)return n;if(n===Q())break;n=gn(n,!1)}return!1}function ve(i,e,t,n){for(var r=0,o=0,a=i.children;o<a.length;){if(a[o].style.display!=="none"&&a[o]!==y.ghost&&(n||a[o]!==y.dragged)&&X(a[o],t.draggable,i,!1)){if(r===e)return a[o];r++}o++}return null}function vt(i,e){for(var t=i.lastElementChild;t&&(t===y.ghost||g(t,"display")==="none"||e&&!ze(t,e));)t=t.previousElementSibling;return t||null}function k(i,e){var t=0;if(!i||!i.parentNode)return-1;for(;i=i.previousElementSibling;)i.nodeName.toUpperCase()!=="TEMPLATE"&&i!==y.clone&&(!e||ze(i,e))&&t++;return t}function pn(i){var e=0,t=0,n=Q();if(i)do{var r=me(i),o=r.a,a=r.d;e+=i.scrollLeft*o,t+=i.scrollTop*a}while(i!==n&&(i=i.parentNode));return[e,t]}function ei(i,e){for(var t in i)if(i.hasOwnProperty(t)){for(var n in e)if(e.hasOwnProperty(n)&&e[n]===i[t][n])return Number(t)}return-1}function gn(i,e){if(!i||!i.getBoundingClientRect)return Q();var t=i,n=!1;do if(t.clientWidth<t.scrollWidth||t.clientHeight<t.scrollHeight){var r=g(t);if(t.clientWidth<t.scrollWidth&&(r.overflowX=="auto"||r.overflowX=="scroll")||t.clientHeight<t.scrollHeight&&(r.overflowY=="auto"||r.overflowY=="scroll")){if(!t.getBoundingClientRect||t===document.body)return Q();if(n||e)return t;n=!0}}while(t=t.parentNode);return Q()}function ti(i,e){if(i&&e)for(var t in e)e.hasOwnProperty(t)&&(i[t]=e[t]);return i}function yt(i,e){return Math.round(i.top)===Math.round(e.top)&&Math.round(i.left)===Math.round(e.left)&&Math.round(i.height)===Math.round(e.height)&&Math.round(i.width)===Math.round(e.width)}var _t;function ni(i,e){return function(){if(!_t){var t=arguments,n=this;t.length===1?i.call(n,t[0]):i.apply(n,t),_t=setTimeout(function(){_t=void 0},e)}}}function ii(i,e,t){i.scrollLeft+=e,i.scrollTop+=t}function mn(i){var e=window.Polymer,t=window.jQuery||window.Zepto;return e&&e.dom?e.dom(i).cloneNode(!0):t?t(i).clone(!0)[0]:i.cloneNode(!0)}var U="Sortable"+new Date().getTime();function ri(){var i=[],e;return{captureAnimationState:function(){if(i=[],!!this.options.animation){var n=[].slice.call(this.el.children);n.forEach(function(r){if(!(g(r,"display")==="none"||r===y.ghost)){i.push({target:r,rect:O(r)});var o=z({},i[i.length-1].rect);if(r.thisAnimationDuration){var a=me(r,!0);a&&(o.top-=a.f,o.left-=a.e)}r.fromRect=o}})}},addAnimationState:function(n){i.push(n)},removeAnimationState:function(n){i.splice(ei(i,{target:n}),1)},animateAll:function(n){var r=this;if(!this.options.animation){clearTimeout(e),typeof n=="function"&&n();return}var o=!1,a=0;i.forEach(function(l){var s=0,d=l.target,c=d.fromRect,u=O(d),f=d.prevFromRect,m=d.prevToRect,p=l.rect,v=me(d,!0);v&&(u.top-=v.f,u.left-=v.e),d.toRect=u,d.thisAnimationDuration&&yt(f,u)&&!yt(c,u)&&(p.top-u.top)/(p.left-u.left)===(c.top-u.top)/(c.left-u.left)&&(s=ai(p,f,m,r.options)),yt(u,c)||(d.prevFromRect=c,d.prevToRect=u,s||(s=r.options.animation),r.animate(d,p,u,s)),s&&(o=!0,a=Math.max(a,s),clearTimeout(d.animationResetTimer),d.animationResetTimer=setTimeout(function(){d.animationTime=0,d.prevFromRect=null,d.fromRect=null,d.prevToRect=null,d.thisAnimationDuration=null},s),d.thisAnimationDuration=s)}),clearTimeout(e),o?e=setTimeout(function(){typeof n=="function"&&n()},a):typeof n=="function"&&n(),i=[]},animate:function(n,r,o,a){if(a){g(n,"transition",""),g(n,"transform","");var l=me(this.el),s=l&&l.a,d=l&&l.d,c=(r.left-o.left)/(s||1),u=(r.top-o.top)/(d||1);n.animatingX=!!c,n.animatingY=!!u,g(n,"transform","translate3d("+c+"px,"+u+"px,0)"),this.forRepaintDummy=oi(n),g(n,"transition","transform "+a+"ms"+(this.options.easing?" "+this.options.easing:"")),g(n,"transform","translate3d(0,0,0)"),typeof n.animated=="number"&&clearTimeout(n.animated),n.animated=setTimeout(function(){g(n,"transition",""),g(n,"transform",""),n.animated=!1,n.animatingX=!1,n.animatingY=!1},a)}}}}function oi(i){return i.offsetWidth}function ai(i,e,t,n){return Math.sqrt(Math.pow(e.top-i.top,2)+Math.pow(e.left-i.left,2))/Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))*n.animation}var ye=[],bt={initializeByDefault:!0},Oe={mount:function(e){for(var t in bt)bt.hasOwnProperty(t)&&!(t in e)&&(e[t]=bt[t]);ye.forEach(function(n){if(n.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")}),ye.push(e)},pluginEvent:function(e,t,n){var r=this;this.eventCanceled=!1,n.cancel=function(){r.eventCanceled=!0};var o=e+"Global";ye.forEach(function(a){t[a.pluginName]&&(t[a.pluginName][o]&&t[a.pluginName][o](z({sortable:t},n)),t.options[a.pluginName]&&t[a.pluginName][e]&&t[a.pluginName][e](z({sortable:t},n)))})},initializePlugins:function(e,t,n,r){ye.forEach(function(l){var s=l.pluginName;if(!(!e.options[s]&&!l.initializeByDefault)){var d=new l(e,t,e.options);d.sortable=e,d.options=e.options,e[s]=d,Z(n,d.defaults)}});for(var o in e.options)if(e.options.hasOwnProperty(o)){var a=this.modifyOption(e,o,e.options[o]);typeof a<"u"&&(e.options[o]=a)}},getEventProperties:function(e,t){var n={};return ye.forEach(function(r){typeof r.eventProperties=="function"&&Z(n,r.eventProperties.call(t[r.pluginName],e))}),n},modifyOption:function(e,t,n){var r;return ye.forEach(function(o){e[o.pluginName]&&o.optionListeners&&typeof o.optionListeners[t]=="function"&&(r=o.optionListeners[t].call(e[o.pluginName],n))}),r}};function si(i){var e=i.sortable,t=i.rootEl,n=i.name,r=i.targetEl,o=i.cloneEl,a=i.toEl,l=i.fromEl,s=i.oldIndex,d=i.newIndex,c=i.oldDraggableIndex,u=i.newDraggableIndex,f=i.originalEvent,m=i.putSortable,p=i.extraEventProperties;if(e=e||t&&t[U],!!e){var v,T=e.options,F="on"+n.charAt(0).toUpperCase()+n.substr(1);window.CustomEvent&&!K&&!je?v=new CustomEvent(n,{bubbles:!0,cancelable:!0}):(v=document.createEvent("Event"),v.initEvent(n,!0,!0)),v.to=a||t,v.from=l||t,v.item=r||t,v.clone=o,v.oldIndex=s,v.newIndex=d,v.oldDraggableIndex=c,v.newDraggableIndex=u,v.originalEvent=f,v.pullMode=m?m.lastPutMode:void 0;var P=z(z({},p),Oe.getEventProperties(n,e));for(var he in P)v[he]=P[he];t&&t.dispatchEvent(v),T[F]&&T[F].call(e,v)}}var li=["evt"],M=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.evt,o=Kn(n,li);Oe.pluginEvent.bind(y)(e,t,z({dragEl:h,parentEl:S,ghostEl:_,rootEl:w,nextEl:se,lastDownEl:Xe,cloneEl:A,cloneHidden:J,dragStarted:Le,putSortable:x,activeSortable:y.active,originalEvent:r,oldIndex:_e,oldDraggableIndex:xe,newIndex:R,newDraggableIndex:ee,hideGhostForTarget:$n,unhideGhostForTarget:wn,cloneNowHidden:function(){J=!0},cloneNowShown:function(){J=!1},dispatchSortableEvent:function(l){N({sortable:t,name:l,originalEvent:r})}},o))};function N(i){si(z({putSortable:x,cloneEl:A,targetEl:h,rootEl:w,oldIndex:_e,oldDraggableIndex:xe,newIndex:R,newDraggableIndex:ee},i))}var h,S,_,w,se,Xe,A,J,_e,R,xe,ee,Ye,x,be=!1,We=!1,Ge=[],le,j,Et,Ct,vn,yn,Le,Ee,Pe,Ie=!1,qe=!1,Ze,L,$t=[],wt=!1,Ke=[],Qe=typeof document<"u",Je=ln,_n=je||K?"cssFloat":"float",di=Qe&&!dn&&!ln&&"draggable"in document.createElement("div"),bn=function(){if(Qe){if(K)return!1;var i=document.createElement("x");return i.style.cssText="pointer-events:auto",i.style.pointerEvents==="auto"}}(),En=function(e,t){var n=g(e),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),o=ve(e,0,t),a=ve(e,1,t),l=o&&g(o),s=a&&g(a),d=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+O(o).width,c=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+O(a).width;if(n.display==="flex")return n.flexDirection==="column"||n.flexDirection==="column-reverse"?"vertical":"horizontal";if(n.display==="grid")return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&l.float&&l.float!=="none"){var u=l.float==="left"?"left":"right";return a&&(s.clear==="both"||s.clear===u)?"vertical":"horizontal"}return o&&(l.display==="block"||l.display==="flex"||l.display==="table"||l.display==="grid"||d>=r&&n[_n]==="none"||a&&n[_n]==="none"&&d+c>r)?"vertical":"horizontal"},hi=function(e,t,n){var r=n?e.left:e.top,o=n?e.right:e.bottom,a=n?e.width:e.height,l=n?t.left:t.top,s=n?t.right:t.bottom,d=n?t.width:t.height;return r===l||o===s||r+a/2===l+d/2},ui=function(e,t){var n;return Ge.some(function(r){var o=r[U].options.emptyInsertThreshold;if(!(!o||vt(r))){var a=O(r),l=e>=a.left-o&&e<=a.right+o,s=t>=a.top-o&&t<=a.bottom+o;if(l&&s)return n=r}}),n},Cn=function(e){function t(o,a){return function(l,s,d,c){var u=l.options.group.name&&s.options.group.name&&l.options.group.name===s.options.group.name;if(o==null&&(a||u))return!0;if(o==null||o===!1)return!1;if(a&&o==="clone")return o;if(typeof o=="function")return t(o(l,s,d,c),a)(l,s,d,c);var f=(a?l:s).options.group.name;return o===!0||typeof o=="string"&&o===f||o.join&&o.indexOf(f)>-1}}var n={},r=e.group;(!r||Ve(r)!="object")&&(r={name:r}),n.name=r.name,n.checkPull=t(r.pull,!0),n.checkPut=t(r.put),n.revertClone=r.revertClone,e.group=n},$n=function(){!bn&&_&&g(_,"display","none")},wn=function(){!bn&&_&&g(_,"display","")};Qe&&!dn&&document.addEventListener("click",function(i){if(We)return i.preventDefault(),i.stopPropagation&&i.stopPropagation(),i.stopImmediatePropagation&&i.stopImmediatePropagation(),We=!1,!1},!0);var de=function(e){if(h){e=e.touches?e.touches[0]:e;var t=ui(e.clientX,e.clientY);if(t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[U]._onDragOver(n)}}},ci=function(e){h&&h.parentNode[U]._isOutsideThisEl(e.target)};function y(i,e){if(!(i&&i.nodeType&&i.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(i));this.el=i,this.options=e=Z({},e),i[U]=this;var t={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(i.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return En(i,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(a,l){a.setData("Text",l.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:y.supportPointer!==!1&&"PointerEvent"in window&&!Fe,emptyInsertThreshold:5};Oe.initializePlugins(this,i,t);for(var n in t)!(n in e)&&(e[n]=t[n]);Cn(e);for(var r in this)r.charAt(0)==="_"&&typeof this[r]=="function"&&(this[r]=this[r].bind(this));this.nativeDraggable=e.forceFallback?!1:di,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?$(i,"pointerdown",this._onTapStart):($(i,"mousedown",this._onTapStart),$(i,"touchstart",this._onTapStart)),this.nativeDraggable&&($(i,"dragover",this),$(i,"dragenter",this)),Ge.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),Z(this,ri())}y.prototype={constructor:y,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(Ee=null)},_getDirection:function(e,t){return typeof this.options.direction=="function"?this.options.direction.call(this,e,t,h):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,r=this.options,o=r.preventOnFilter,a=e.type,l=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,s=(l||e).target,d=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,c=r.filter;if(bi(n),!h&&!(/mousedown|pointerdown/.test(a)&&e.button!==0||r.disabled)&&!d.isContentEditable&&!(!this.nativeDraggable&&Fe&&s&&s.tagName.toUpperCase()==="SELECT")&&(s=X(s,r.draggable,n,!1),!(s&&s.animated)&&Xe!==s)){if(_e=k(s),xe=k(s,r.draggable),typeof c=="function"){if(c.call(this,e,s,this)){N({sortable:t,rootEl:d,name:"filter",targetEl:s,toEl:n,fromEl:n}),M("filter",t,{evt:e}),o&&e.cancelable&&e.preventDefault();return}}else if(c&&(c=c.split(",").some(function(u){if(u=X(d,u.trim(),n,!1),u)return N({sortable:t,rootEl:u,name:"filter",targetEl:s,fromEl:n,toEl:n}),M("filter",t,{evt:e}),!0}),c)){o&&e.cancelable&&e.preventDefault();return}r.handle&&!X(d,r.handle,n,!1)||this._prepareDragStart(e,l,s)}}},_prepareDragStart:function(e,t,n){var r=this,o=r.el,a=r.options,l=o.ownerDocument,s;if(n&&!h&&n.parentNode===o){var d=O(n);if(w=o,h=n,S=h.parentNode,se=h.nextSibling,Xe=n,Ye=a.group,y.dragged=h,le={target:h,clientX:(t||e).clientX,clientY:(t||e).clientY},vn=le.clientX-d.left,yn=le.clientY-d.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,h.style["will-change"]="all",s=function(){if(M("delayEnded",r,{evt:e}),y.eventCanceled){r._onDrop();return}r._disableDelayedDragEvents(),!sn&&r.nativeDraggable&&(h.draggable=!0),r._triggerDragStart(e,t),N({sortable:r,name:"choose",originalEvent:e}),B(h,a.chosenClass,!0)},a.ignore.split(",").forEach(function(c){cn(h,c.trim(),At)}),$(l,"dragover",de),$(l,"mousemove",de),$(l,"touchmove",de),$(l,"mouseup",r._onDrop),$(l,"touchend",r._onDrop),$(l,"touchcancel",r._onDrop),sn&&this.nativeDraggable&&(this.options.touchStartThreshold=4,h.draggable=!0),M("delayStart",this,{evt:e}),a.delay&&(!a.delayOnTouchOnly||t)&&(!this.nativeDraggable||!(je||K))){if(y.eventCanceled){this._onDrop();return}$(l,"mouseup",r._disableDelayedDrag),$(l,"touchend",r._disableDelayedDrag),$(l,"touchcancel",r._disableDelayedDrag),$(l,"mousemove",r._delayedDragTouchMoveHandler),$(l,"touchmove",r._delayedDragTouchMoveHandler),a.supportPointer&&$(l,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(s,a.delay)}else s()}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){h&&At(h),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;E(e,"mouseup",this._disableDelayedDrag),E(e,"touchend",this._disableDelayedDrag),E(e,"touchcancel",this._disableDelayedDrag),E(e,"mousemove",this._delayedDragTouchMoveHandler),E(e,"touchmove",this._delayedDragTouchMoveHandler),E(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||e.pointerType=="touch"&&e,!this.nativeDraggable||t?this.options.supportPointer?$(document,"pointermove",this._onTouchMove):t?$(document,"touchmove",this._onTouchMove):$(document,"mousemove",this._onTouchMove):($(h,"dragend",this),$(w,"dragstart",this._onDragStart));try{document.selection?tt(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,t){if(be=!1,w&&h){M("dragStarted",this,{evt:t}),this.nativeDraggable&&$(document,"dragover",ci);var n=this.options;!e&&B(h,n.dragClass,!1),B(h,n.ghostClass,!0),y.active=this,e&&this._appendGhost(),N({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(j){this._lastX=j.clientX,this._lastY=j.clientY,$n();for(var e=document.elementFromPoint(j.clientX,j.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(j.clientX,j.clientY),e!==t);)t=e;if(h.parentNode[U]._isOutsideThisEl(e),t)do{if(t[U]){var n=void 0;if(n=t[U]._onDragOver({clientX:j.clientX,clientY:j.clientY,target:e,rootEl:t}),n&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);wn()}},_onTouchMove:function(e){if(le){var t=this.options,n=t.fallbackTolerance,r=t.fallbackOffset,o=e.touches?e.touches[0]:e,a=_&&me(_,!0),l=_&&a&&a.a,s=_&&a&&a.d,d=Je&&L&&pn(L),c=(o.clientX-le.clientX+r.x)/(l||1)+(d?d[0]-$t[0]:0)/(l||1),u=(o.clientY-le.clientY+r.y)/(s||1)+(d?d[1]-$t[1]:0)/(s||1);if(!y.active&&!be){if(n&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(_){a?(a.e+=c-(Et||0),a.f+=u-(Ct||0)):a={a:1,b:0,c:0,d:1,e:c,f:u};var f="matrix(".concat(a.a,",").concat(a.b,",").concat(a.c,",").concat(a.d,",").concat(a.e,",").concat(a.f,")");g(_,"webkitTransform",f),g(_,"mozTransform",f),g(_,"msTransform",f),g(_,"transform",f),Et=c,Ct=u,j=o}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!_){var e=this.options.fallbackOnBody?document.body:w,t=O(h,!0,Je,!0,e),n=this.options;if(Je){for(L=e;g(L,"position")==="static"&&g(L,"transform")==="none"&&L!==document;)L=L.parentNode;L!==document.body&&L!==document.documentElement?(L===document&&(L=Q()),t.top+=L.scrollTop,t.left+=L.scrollLeft):L=Q(),$t=pn(L)}_=h.cloneNode(!0),B(_,n.ghostClass,!1),B(_,n.fallbackClass,!0),B(_,n.dragClass,!0),g(_,"transition",""),g(_,"transform",""),g(_,"box-sizing","border-box"),g(_,"margin",0),g(_,"top",t.top),g(_,"left",t.left),g(_,"width",t.width),g(_,"height",t.height),g(_,"opacity","0.8"),g(_,"position",Je?"absolute":"fixed"),g(_,"zIndex","100000"),g(_,"pointerEvents","none"),y.ghost=_,e.appendChild(_),g(_,"transform-origin",vn/parseInt(_.style.width)*100+"% "+yn/parseInt(_.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,r=e.dataTransfer,o=n.options;if(M("dragStart",this,{evt:e}),y.eventCanceled){this._onDrop();return}M("setupClone",this),y.eventCanceled||(A=mn(h),A.removeAttribute("id"),A.draggable=!1,A.style["will-change"]="",this._hideClone(),B(A,this.options.chosenClass,!1),y.clone=A),n.cloneId=tt(function(){M("clone",n),!y.eventCanceled&&(n.options.removeCloneOnHide||w.insertBefore(A,h),n._hideClone(),N({sortable:n,name:"clone"}))}),!t&&B(h,o.dragClass,!0),t?(We=!0,n._loopId=setInterval(n._emulateDragOver,50)):(E(document,"mouseup",n._onDrop),E(document,"touchend",n._onDrop),E(document,"touchcancel",n._onDrop),r&&(r.effectAllowed="move",o.setData&&o.setData.call(n,r,h)),$(document,"drop",n),g(h,"transform","translateZ(0)")),be=!0,n._dragStartId=tt(n._dragStarted.bind(n,t,e)),$(document,"selectstart",n),Le=!0,Fe&&g(document.body,"user-select","none")},_onDragOver:function(e){var t=this.el,n=e.target,r,o,a,l=this.options,s=l.group,d=y.active,c=Ye===s,u=l.sort,f=x||d,m,p=this,v=!1;if(wt)return;function T(Be,Si){M(Be,p,z({evt:e,isOwner:c,axis:m?"vertical":"horizontal",revert:a,dragRect:r,targetRect:o,canSort:u,fromSortable:f,target:n,completed:P,onMove:function(In,Di){return et(w,t,h,r,In,O(In),e,Di)},changed:he},Si))}function F(){T("dragOverAnimationCapture"),p.captureAnimationState(),p!==f&&f.captureAnimationState()}function P(Be){return T("dragOverCompleted",{insertion:Be}),Be&&(c?d._hideClone():d._showClone(p),p!==f&&(B(h,x?x.options.ghostClass:d.options.ghostClass,!1),B(h,l.ghostClass,!0)),x!==p&&p!==y.active?x=p:p===y.active&&x&&(x=null),f===p&&(p._ignoreWhileAnimating=n),p.animateAll(function(){T("dragOverAnimationComplete"),p._ignoreWhileAnimating=null}),p!==f&&(f.animateAll(),f._ignoreWhileAnimating=null)),(n===h&&!h.animated||n===t&&!n.animated)&&(Ee=null),!l.dragoverBubble&&!e.rootEl&&n!==document&&(h.parentNode[U]._isOutsideThisEl(e.target),!Be&&de(e)),!l.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),v=!0}function he(){R=k(h),ee=k(h,l.draggable),N({sortable:p,name:"change",toEl:t,newIndex:R,newDraggableIndex:ee,originalEvent:e})}if(e.preventDefault!==void 0&&e.cancelable&&e.preventDefault(),n=X(n,l.draggable,t,!0),T("dragOver"),y.eventCanceled)return v;if(h.contains(e.target)||n.animated&&n.animatingX&&n.animatingY||p._ignoreWhileAnimating===n)return P(!1);if(We=!1,d&&!l.disabled&&(c?u||(a=S!==w):x===this||(this.lastPutMode=Ye.checkPull(this,d,h,e))&&s.checkPut(this,d,h,e))){if(m=this._getDirection(e,n)==="vertical",r=O(h),T("dragOverValid"),y.eventCanceled)return v;if(a)return S=w,F(),this._hideClone(),T("revert"),y.eventCanceled||(se?w.insertBefore(h,se):w.appendChild(h)),P(!0);var G=vt(t,l.draggable);if(!G||mi(e,m,this)&&!G.animated){if(G===h)return P(!1);if(G&&t===e.target&&(n=G),n&&(o=O(n)),et(w,t,h,r,n,o,e,!!n)!==!1)return F(),G&&G.nextSibling?t.insertBefore(h,G.nextSibling):t.appendChild(h),S=t,he(),P(!0)}else if(G&&gi(e,m,this)){var Dt=ve(t,0,l,!0);if(Dt===h)return P(!1);if(n=Dt,o=O(n),et(w,t,h,r,n,o,e,!1)!==!1)return F(),t.insertBefore(h,Dt),S=t,he(),P(!0)}else if(n.parentNode===t){o=O(n);var Ce=0,Tt,wi=h.parentNode!==t,On=!hi(h.animated&&h.toRect||r,n.animated&&n.toRect||o,m),xn=m?"top":"left",Ne=fn(n,"top","top")||fn(h,"top","top"),Ai=Ne?Ne.scrollTop:void 0;Ee!==n&&(Tt=o[xn],Ie=!1,qe=!On&&l.invertSwap||wi),Ce=vi(e,n,o,m,On?1:l.swapThreshold,l.invertedSwapThreshold==null?l.swapThreshold:l.invertedSwapThreshold,qe,Ee===n);var Me;if(Ce!==0){var Ln=k(h);do Ln-=Ce,Me=S.children[Ln];while(Me&&(g(Me,"display")==="none"||Me===_))}if(Ce===0||Me===n)return P(!1);Ee=n,Pe=Ce;var Pn=n.nextElementSibling,He=!1;He=Ce===1;var nt=et(w,t,h,r,n,o,e,He);if(nt!==!1)return(nt===1||nt===-1)&&(He=nt===1),wt=!0,setTimeout(pi,30),F(),He&&!Pn?t.appendChild(h):n.parentNode.insertBefore(h,He?Pn:n),Ne&&ii(Ne,0,Ai-Ne.scrollTop),S=h.parentNode,Tt!==void 0&&!qe&&(Ze=Math.abs(Tt-O(n)[xn])),he(),P(!0)}if(t.contains(h))return P(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){E(document,"mousemove",this._onTouchMove),E(document,"touchmove",this._onTouchMove),E(document,"pointermove",this._onTouchMove),E(document,"dragover",de),E(document,"mousemove",de),E(document,"touchmove",de)},_offUpEvents:function(){var e=this.el.ownerDocument;E(e,"mouseup",this._onDrop),E(e,"touchend",this._onDrop),E(e,"pointerup",this._onDrop),E(e,"touchcancel",this._onDrop),E(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;if(R=k(h),ee=k(h,n.draggable),M("drop",this,{evt:e}),S=h&&h.parentNode,R=k(h),ee=k(h,n.draggable),y.eventCanceled){this._nulling();return}be=!1,qe=!1,Ie=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),St(this.cloneId),St(this._dragStartId),this.nativeDraggable&&(E(document,"drop",this),E(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Fe&&g(document.body,"user-select",""),g(h,"transform",""),e&&(Le&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),_&&_.parentNode&&_.parentNode.removeChild(_),(w===S||x&&x.lastPutMode!=="clone")&&A&&A.parentNode&&A.parentNode.removeChild(A),h&&(this.nativeDraggable&&E(h,"dragend",this),At(h),h.style["will-change"]="",Le&&!be&&B(h,x?x.options.ghostClass:this.options.ghostClass,!1),B(h,this.options.chosenClass,!1),N({sortable:this,name:"unchoose",toEl:S,newIndex:null,newDraggableIndex:null,originalEvent:e}),w!==S?(R>=0&&(N({rootEl:S,name:"add",toEl:S,fromEl:w,originalEvent:e}),N({sortable:this,name:"remove",toEl:S,originalEvent:e}),N({rootEl:S,name:"sort",toEl:S,fromEl:w,originalEvent:e}),N({sortable:this,name:"sort",toEl:S,originalEvent:e})),x&&x.save()):R!==_e&&R>=0&&(N({sortable:this,name:"update",toEl:S,originalEvent:e}),N({sortable:this,name:"sort",toEl:S,originalEvent:e})),y.active&&((R==null||R===-1)&&(R=_e,ee=xe),N({sortable:this,name:"end",toEl:S,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){M("nulling",this),w=h=S=_=se=A=Xe=J=le=j=Le=R=ee=_e=xe=Ee=Pe=x=Ye=y.dragged=y.ghost=y.clone=y.active=null,Ke.forEach(function(e){e.checked=!0}),Ke.length=Et=Ct=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":h&&(this._onDragOver(e),fi(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],t,n=this.el.children,r=0,o=n.length,a=this.options;r<o;r++)t=n[r],X(t,a.draggable,this.el,!1)&&e.push(t.getAttribute(a.dataIdAttr)||_i(t));return e},sort:function(e,t){var n={},r=this.el;this.toArray().forEach(function(o,a){var l=r.children[a];X(l,this.options.draggable,r,!1)&&(n[o]=l)},this),t&&this.captureAnimationState(),e.forEach(function(o){n[o]&&(r.removeChild(n[o]),r.appendChild(n[o]))}),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return X(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(t===void 0)return n[e];var r=Oe.modifyOption(this,e,t);typeof r<"u"?n[e]=r:n[e]=t,e==="group"&&Cn(n)},destroy:function(){M("destroy",this);var e=this.el;e[U]=null,E(e,"mousedown",this._onTapStart),E(e,"touchstart",this._onTapStart),E(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(E(e,"dragover",this),E(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(t){t.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Ge.splice(Ge.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!J){if(M("hideClone",this),y.eventCanceled)return;g(A,"display","none"),this.options.removeCloneOnHide&&A.parentNode&&A.parentNode.removeChild(A),J=!0}},_showClone:function(e){if(e.lastPutMode!=="clone"){this._hideClone();return}if(J){if(M("showClone",this),y.eventCanceled)return;h.parentNode==w&&!this.options.group.revertClone?w.insertBefore(A,h):se?w.insertBefore(A,se):w.appendChild(A),this.options.group.revertClone&&this.animate(h,A),g(A,"display",""),J=!1}}};function fi(i){i.dataTransfer&&(i.dataTransfer.dropEffect="move"),i.cancelable&&i.preventDefault()}function et(i,e,t,n,r,o,a,l){var s,d=i[U],c=d.options.onMove,u;return window.CustomEvent&&!K&&!je?s=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(s=document.createEvent("Event"),s.initEvent("move",!0,!0)),s.to=e,s.from=i,s.dragged=t,s.draggedRect=n,s.related=r||e,s.relatedRect=o||O(e),s.willInsertAfter=l,s.originalEvent=a,i.dispatchEvent(s),c&&(u=c.call(d,s,a)),u}function At(i){i.draggable=!1}function pi(){wt=!1}function gi(i,e,t){var n=O(ve(t.el,0,t.options,!0)),r=10;return e?i.clientX<n.left-r||i.clientY<n.top&&i.clientX<n.right:i.clientY<n.top-r||i.clientY<n.bottom&&i.clientX<n.left}function mi(i,e,t){var n=O(vt(t.el,t.options.draggable)),r=10;return e?i.clientX>n.right+r||i.clientX<=n.right&&i.clientY>n.bottom&&i.clientX>=n.left:i.clientX>n.right&&i.clientY>n.top||i.clientX<=n.right&&i.clientY>n.bottom+r}function vi(i,e,t,n,r,o,a,l){var s=n?i.clientY:i.clientX,d=n?t.height:t.width,c=n?t.top:t.left,u=n?t.bottom:t.right,f=!1;if(!a){if(l&&Ze<d*r){if(!Ie&&(Pe===1?s>c+d*o/2:s<u-d*o/2)&&(Ie=!0),Ie)f=!0;else if(Pe===1?s<c+Ze:s>u-Ze)return-Pe}else if(s>c+d*(1-r)/2&&s<u-d*(1-r)/2)return yi(e)}return f=f||a,f&&(s<c+d*o/2||s>u-d*o/2)?s>c+d/2?1:-1:0}function yi(i){return k(h)<k(i)?1:-1}function _i(i){for(var e=i.tagName+i.className+i.src+i.href+i.textContent,t=e.length,n=0;t--;)n+=e.charCodeAt(t);return n.toString(36)}function bi(i){Ke.length=0;for(var e=i.getElementsByTagName("input"),t=e.length;t--;){var n=e[t];n.checked&&Ke.push(n)}}function tt(i){return setTimeout(i,0)}function St(i){return clearTimeout(i)}Qe&&$(document,"touchmove",function(i){(y.active||be)&&i.cancelable&&i.preventDefault()}),y.utils={on:$,off:E,css:g,find:cn,is:function(e,t){return!!X(e,t,e,!1)},extend:ti,throttle:ni,closest:X,toggleClass:B,clone:mn,index:k,nextTick:tt,cancelNextTick:St,detectDirection:En,getChild:ve},y.get=function(i){return i[U]},y.mount=function(){for(var i=arguments.length,e=new Array(i),t=0;t<i;t++)e[t]=arguments[t];e[0].constructor===Array&&(e=e[0]),e.forEach(function(n){if(!n.prototype||!n.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(n));n.utils&&(y.utils=z(z({},y.utils),n.utils)),Oe.mount(n)})},y.create=function(i,e){return new y(i,e)},y.version=Qn;var An=function(e){var t=e.originalEvent,n=e.putSortable,r=e.dragEl,o=e.activeSortable,a=e.dispatchSortableEvent,l=e.hideGhostForTarget,s=e.unhideGhostForTarget;if(t){var d=n||o;l();var c=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,u=document.elementFromPoint(c.clientX,c.clientY);s(),d&&!d.el.contains(u)&&(a("spill"),this.onSpill({dragEl:r,putSortable:n}))}};function Sn(){}Sn.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var r=ve(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(t,r):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:An},Z(Sn,{pluginName:"revertOnSpill"});function Dn(){}Dn.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable,r=n||this.sortable;r.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),r.animateAll()},drop:An},Z(Dn,{pluginName:"removeOnSpill"});const Tn=`
60
+ */function an(i,e){var t=Object.keys(i);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(i);e&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(i,r).enumerable})),t.push.apply(t,n)}return t}function z(i){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?an(Object(t),!0).forEach(function(n){qn(i,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(t)):an(Object(t)).forEach(function(n){Object.defineProperty(i,n,Object.getOwnPropertyDescriptor(t,n))})}return i}function Ve(i){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ve=function(e){return typeof e}:Ve=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ve(i)}function qn(i,e,t){return e in i?Object.defineProperty(i,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[e]=t,i}function Z(){return Z=Object.assign||function(i){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(i[n]=t[n])}return i},Z.apply(this,arguments)}function Zn(i,e){if(i==null)return{};var t={},n=Object.keys(i),r,o;for(o=0;o<n.length;o++)r=n[o],!(e.indexOf(r)>=0)&&(t[r]=i[r]);return t}function Kn(i,e){if(i==null)return{};var t=Zn(i,e),n,r;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(i);for(r=0;r<o.length;r++)n=o[r],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(i,n)&&(t[n]=i[n])}return t}var Qn="1.15.0";function W(i){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(i)}var K=W(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),je=W(/Edge/i),sn=W(/firefox/i),Fe=W(/safari/i)&&!W(/chrome/i)&&!W(/android/i),ln=W(/iP(ad|od|hone)/i),dn=W(/chrome/i)&&W(/android/i),hn={capture:!1,passive:!1};function $(i,e,t){i.addEventListener(e,t,!K&&hn)}function b(i,e,t){i.removeEventListener(e,t,!K&&hn)}function ze(i,e){if(e){if(e[0]===">"&&(e=e.substring(1)),i)try{if(i.matches)return i.matches(e);if(i.msMatchesSelector)return i.msMatchesSelector(e);if(i.webkitMatchesSelector)return i.webkitMatchesSelector(e)}catch{return!1}return!1}}function Jn(i){return i.host&&i!==document&&i.host.nodeType?i.host:i.parentNode}function X(i,e,t,n){if(i){t=t||document;do{if(e!=null&&(e[0]===">"?i.parentNode===t&&ze(i,e):ze(i,e))||n&&i===t)return i;if(i===t)break}while(i=Jn(i))}return null}var un=/\s+/g;function B(i,e,t){if(i&&e)if(i.classList)i.classList[t?"add":"remove"](e);else{var n=(" "+i.className+" ").replace(un," ").replace(" "+e+" "," ");i.className=(n+(t?" "+e:"")).replace(un," ")}}function g(i,e,t){var n=i&&i.style;if(n){if(t===void 0)return document.defaultView&&document.defaultView.getComputedStyle?t=document.defaultView.getComputedStyle(i,""):i.currentStyle&&(t=i.currentStyle),e===void 0?t:t[e];!(e in n)&&e.indexOf("webkit")===-1&&(e="-webkit-"+e),n[e]=t+(typeof t=="string"?"":"px")}}function me(i,e){var t="";if(typeof i=="string")t=i;else do{var n=g(i,"transform");n&&n!=="none"&&(t=n+" "+t)}while(!e&&(i=i.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(t)}function cn(i,e,t){if(i){var n=i.getElementsByTagName(e),r=0,o=n.length;if(t)for(;r<o;r++)t(n[r],r);return n}return[]}function Q(){var i=document.scrollingElement;return i||document.documentElement}function O(i,e,t,n,r){if(!(!i.getBoundingClientRect&&i!==window)){var o,a,l,s,d,c,u;if(i!==window&&i.parentNode&&i!==Q()?(o=i.getBoundingClientRect(),a=o.top,l=o.left,s=o.bottom,d=o.right,c=o.height,u=o.width):(a=0,l=0,s=window.innerHeight,d=window.innerWidth,c=window.innerHeight,u=window.innerWidth),(e||t)&&i!==window&&(r=r||i.parentNode,!K))do if(r&&r.getBoundingClientRect&&(g(r,"transform")!=="none"||t&&g(r,"position")!=="static")){var f=r.getBoundingClientRect();a-=f.top+parseInt(g(r,"border-top-width")),l-=f.left+parseInt(g(r,"border-left-width")),s=a+o.height,d=l+o.width;break}while(r=r.parentNode);if(n&&i!==window){var m=me(r||i),p=m&&m.a,v=m&&m.d;m&&(a/=v,l/=p,u/=p,c/=v,s=a+c,d=l+u)}return{top:a,left:l,bottom:s,right:d,width:u,height:c}}}function fn(i,e,t){for(var n=gn(i,!0),r=O(i)[e];n;){var o=O(n)[t],a=void 0;if(t==="top"||t==="left"?a=r>=o:a=r<=o,!a)return n;if(n===Q())break;n=gn(n,!1)}return!1}function ve(i,e,t,n){for(var r=0,o=0,a=i.children;o<a.length;){if(a[o].style.display!=="none"&&a[o]!==y.ghost&&(n||a[o]!==y.dragged)&&X(a[o],t.draggable,i,!1)){if(r===e)return a[o];r++}o++}return null}function vt(i,e){for(var t=i.lastElementChild;t&&(t===y.ghost||g(t,"display")==="none"||e&&!ze(t,e));)t=t.previousElementSibling;return t||null}function k(i,e){var t=0;if(!i||!i.parentNode)return-1;for(;i=i.previousElementSibling;)i.nodeName.toUpperCase()!=="TEMPLATE"&&i!==y.clone&&(!e||ze(i,e))&&t++;return t}function pn(i){var e=0,t=0,n=Q();if(i)do{var r=me(i),o=r.a,a=r.d;e+=i.scrollLeft*o,t+=i.scrollTop*a}while(i!==n&&(i=i.parentNode));return[e,t]}function ei(i,e){for(var t in i)if(i.hasOwnProperty(t)){for(var n in e)if(e.hasOwnProperty(n)&&e[n]===i[t][n])return Number(t)}return-1}function gn(i,e){if(!i||!i.getBoundingClientRect)return Q();var t=i,n=!1;do if(t.clientWidth<t.scrollWidth||t.clientHeight<t.scrollHeight){var r=g(t);if(t.clientWidth<t.scrollWidth&&(r.overflowX=="auto"||r.overflowX=="scroll")||t.clientHeight<t.scrollHeight&&(r.overflowY=="auto"||r.overflowY=="scroll")){if(!t.getBoundingClientRect||t===document.body)return Q();if(n||e)return t;n=!0}}while(t=t.parentNode);return Q()}function ti(i,e){if(i&&e)for(var t in e)e.hasOwnProperty(t)&&(i[t]=e[t]);return i}function yt(i,e){return Math.round(i.top)===Math.round(e.top)&&Math.round(i.left)===Math.round(e.left)&&Math.round(i.height)===Math.round(e.height)&&Math.round(i.width)===Math.round(e.width)}var _t;function ni(i,e){return function(){if(!_t){var t=arguments,n=this;t.length===1?i.call(n,t[0]):i.apply(n,t),_t=setTimeout(function(){_t=void 0},e)}}}function ii(i,e,t){i.scrollLeft+=e,i.scrollTop+=t}function mn(i){var e=window.Polymer,t=window.jQuery||window.Zepto;return e&&e.dom?e.dom(i).cloneNode(!0):t?t(i).clone(!0)[0]:i.cloneNode(!0)}var U="Sortable"+new Date().getTime();function ri(){var i=[],e;return{captureAnimationState:function(){if(i=[],!!this.options.animation){var n=[].slice.call(this.el.children);n.forEach(function(r){if(!(g(r,"display")==="none"||r===y.ghost)){i.push({target:r,rect:O(r)});var o=z({},i[i.length-1].rect);if(r.thisAnimationDuration){var a=me(r,!0);a&&(o.top-=a.f,o.left-=a.e)}r.fromRect=o}})}},addAnimationState:function(n){i.push(n)},removeAnimationState:function(n){i.splice(ei(i,{target:n}),1)},animateAll:function(n){var r=this;if(!this.options.animation){clearTimeout(e),typeof n=="function"&&n();return}var o=!1,a=0;i.forEach(function(l){var s=0,d=l.target,c=d.fromRect,u=O(d),f=d.prevFromRect,m=d.prevToRect,p=l.rect,v=me(d,!0);v&&(u.top-=v.f,u.left-=v.e),d.toRect=u,d.thisAnimationDuration&&yt(f,u)&&!yt(c,u)&&(p.top-u.top)/(p.left-u.left)===(c.top-u.top)/(c.left-u.left)&&(s=ai(p,f,m,r.options)),yt(u,c)||(d.prevFromRect=c,d.prevToRect=u,s||(s=r.options.animation),r.animate(d,p,u,s)),s&&(o=!0,a=Math.max(a,s),clearTimeout(d.animationResetTimer),d.animationResetTimer=setTimeout(function(){d.animationTime=0,d.prevFromRect=null,d.fromRect=null,d.prevToRect=null,d.thisAnimationDuration=null},s),d.thisAnimationDuration=s)}),clearTimeout(e),o?e=setTimeout(function(){typeof n=="function"&&n()},a):typeof n=="function"&&n(),i=[]},animate:function(n,r,o,a){if(a){g(n,"transition",""),g(n,"transform","");var l=me(this.el),s=l&&l.a,d=l&&l.d,c=(r.left-o.left)/(s||1),u=(r.top-o.top)/(d||1);n.animatingX=!!c,n.animatingY=!!u,g(n,"transform","translate3d("+c+"px,"+u+"px,0)"),this.forRepaintDummy=oi(n),g(n,"transition","transform "+a+"ms"+(this.options.easing?" "+this.options.easing:"")),g(n,"transform","translate3d(0,0,0)"),typeof n.animated=="number"&&clearTimeout(n.animated),n.animated=setTimeout(function(){g(n,"transition",""),g(n,"transform",""),n.animated=!1,n.animatingX=!1,n.animatingY=!1},a)}}}}function oi(i){return i.offsetWidth}function ai(i,e,t,n){return Math.sqrt(Math.pow(e.top-i.top,2)+Math.pow(e.left-i.left,2))/Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))*n.animation}var ye=[],Et={initializeByDefault:!0},Oe={mount:function(e){for(var t in Et)Et.hasOwnProperty(t)&&!(t in e)&&(e[t]=Et[t]);ye.forEach(function(n){if(n.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")}),ye.push(e)},pluginEvent:function(e,t,n){var r=this;this.eventCanceled=!1,n.cancel=function(){r.eventCanceled=!0};var o=e+"Global";ye.forEach(function(a){t[a.pluginName]&&(t[a.pluginName][o]&&t[a.pluginName][o](z({sortable:t},n)),t.options[a.pluginName]&&t[a.pluginName][e]&&t[a.pluginName][e](z({sortable:t},n)))})},initializePlugins:function(e,t,n,r){ye.forEach(function(l){var s=l.pluginName;if(!(!e.options[s]&&!l.initializeByDefault)){var d=new l(e,t,e.options);d.sortable=e,d.options=e.options,e[s]=d,Z(n,d.defaults)}});for(var o in e.options)if(e.options.hasOwnProperty(o)){var a=this.modifyOption(e,o,e.options[o]);typeof a<"u"&&(e.options[o]=a)}},getEventProperties:function(e,t){var n={};return ye.forEach(function(r){typeof r.eventProperties=="function"&&Z(n,r.eventProperties.call(t[r.pluginName],e))}),n},modifyOption:function(e,t,n){var r;return ye.forEach(function(o){e[o.pluginName]&&o.optionListeners&&typeof o.optionListeners[t]=="function"&&(r=o.optionListeners[t].call(e[o.pluginName],n))}),r}};function si(i){var e=i.sortable,t=i.rootEl,n=i.name,r=i.targetEl,o=i.cloneEl,a=i.toEl,l=i.fromEl,s=i.oldIndex,d=i.newIndex,c=i.oldDraggableIndex,u=i.newDraggableIndex,f=i.originalEvent,m=i.putSortable,p=i.extraEventProperties;if(e=e||t&&t[U],!!e){var v,T=e.options,F="on"+n.charAt(0).toUpperCase()+n.substr(1);window.CustomEvent&&!K&&!je?v=new CustomEvent(n,{bubbles:!0,cancelable:!0}):(v=document.createEvent("Event"),v.initEvent(n,!0,!0)),v.to=a||t,v.from=l||t,v.item=r||t,v.clone=o,v.oldIndex=s,v.newIndex=d,v.oldDraggableIndex=c,v.newDraggableIndex=u,v.originalEvent=f,v.pullMode=m?m.lastPutMode:void 0;var P=z(z({},p),Oe.getEventProperties(n,e));for(var he in P)v[he]=P[he];t&&t.dispatchEvent(v),T[F]&&T[F].call(e,v)}}var li=["evt"],M=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.evt,o=Kn(n,li);Oe.pluginEvent.bind(y)(e,t,z({dragEl:h,parentEl:S,ghostEl:_,rootEl:w,nextEl:se,lastDownEl:Xe,cloneEl:A,cloneHidden:J,dragStarted:Le,putSortable:x,activeSortable:y.active,originalEvent:r,oldIndex:_e,oldDraggableIndex:xe,newIndex:R,newDraggableIndex:ee,hideGhostForTarget:$n,unhideGhostForTarget:wn,cloneNowHidden:function(){J=!0},cloneNowShown:function(){J=!1},dispatchSortableEvent:function(l){N({sortable:t,name:l,originalEvent:r})}},o))};function N(i){si(z({putSortable:x,cloneEl:A,targetEl:h,rootEl:w,oldIndex:_e,oldDraggableIndex:xe,newIndex:R,newDraggableIndex:ee},i))}var h,S,_,w,se,Xe,A,J,_e,R,xe,ee,Ye,x,Ee=!1,We=!1,Ge=[],le,j,bt,Ct,vn,yn,Le,be,Pe,Ie=!1,qe=!1,Ze,L,$t=[],wt=!1,Ke=[],Qe=typeof document<"u",Je=ln,_n=je||K?"cssFloat":"float",di=Qe&&!dn&&!ln&&"draggable"in document.createElement("div"),En=function(){if(Qe){if(K)return!1;var i=document.createElement("x");return i.style.cssText="pointer-events:auto",i.style.pointerEvents==="auto"}}(),bn=function(e,t){var n=g(e),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),o=ve(e,0,t),a=ve(e,1,t),l=o&&g(o),s=a&&g(a),d=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+O(o).width,c=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+O(a).width;if(n.display==="flex")return n.flexDirection==="column"||n.flexDirection==="column-reverse"?"vertical":"horizontal";if(n.display==="grid")return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&l.float&&l.float!=="none"){var u=l.float==="left"?"left":"right";return a&&(s.clear==="both"||s.clear===u)?"vertical":"horizontal"}return o&&(l.display==="block"||l.display==="flex"||l.display==="table"||l.display==="grid"||d>=r&&n[_n]==="none"||a&&n[_n]==="none"&&d+c>r)?"vertical":"horizontal"},hi=function(e,t,n){var r=n?e.left:e.top,o=n?e.right:e.bottom,a=n?e.width:e.height,l=n?t.left:t.top,s=n?t.right:t.bottom,d=n?t.width:t.height;return r===l||o===s||r+a/2===l+d/2},ui=function(e,t){var n;return Ge.some(function(r){var o=r[U].options.emptyInsertThreshold;if(!(!o||vt(r))){var a=O(r),l=e>=a.left-o&&e<=a.right+o,s=t>=a.top-o&&t<=a.bottom+o;if(l&&s)return n=r}}),n},Cn=function(e){function t(o,a){return function(l,s,d,c){var u=l.options.group.name&&s.options.group.name&&l.options.group.name===s.options.group.name;if(o==null&&(a||u))return!0;if(o==null||o===!1)return!1;if(a&&o==="clone")return o;if(typeof o=="function")return t(o(l,s,d,c),a)(l,s,d,c);var f=(a?l:s).options.group.name;return o===!0||typeof o=="string"&&o===f||o.join&&o.indexOf(f)>-1}}var n={},r=e.group;(!r||Ve(r)!="object")&&(r={name:r}),n.name=r.name,n.checkPull=t(r.pull,!0),n.checkPut=t(r.put),n.revertClone=r.revertClone,e.group=n},$n=function(){!En&&_&&g(_,"display","none")},wn=function(){!En&&_&&g(_,"display","")};Qe&&!dn&&document.addEventListener("click",function(i){if(We)return i.preventDefault(),i.stopPropagation&&i.stopPropagation(),i.stopImmediatePropagation&&i.stopImmediatePropagation(),We=!1,!1},!0);var de=function(e){if(h){e=e.touches?e.touches[0]:e;var t=ui(e.clientX,e.clientY);if(t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[U]._onDragOver(n)}}},ci=function(e){h&&h.parentNode[U]._isOutsideThisEl(e.target)};function y(i,e){if(!(i&&i.nodeType&&i.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(i));this.el=i,this.options=e=Z({},e),i[U]=this;var t={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(i.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return bn(i,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(a,l){a.setData("Text",l.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:y.supportPointer!==!1&&"PointerEvent"in window&&!Fe,emptyInsertThreshold:5};Oe.initializePlugins(this,i,t);for(var n in t)!(n in e)&&(e[n]=t[n]);Cn(e);for(var r in this)r.charAt(0)==="_"&&typeof this[r]=="function"&&(this[r]=this[r].bind(this));this.nativeDraggable=e.forceFallback?!1:di,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?$(i,"pointerdown",this._onTapStart):($(i,"mousedown",this._onTapStart),$(i,"touchstart",this._onTapStart)),this.nativeDraggable&&($(i,"dragover",this),$(i,"dragenter",this)),Ge.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),Z(this,ri())}y.prototype={constructor:y,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(be=null)},_getDirection:function(e,t){return typeof this.options.direction=="function"?this.options.direction.call(this,e,t,h):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,r=this.options,o=r.preventOnFilter,a=e.type,l=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,s=(l||e).target,d=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,c=r.filter;if(Ei(n),!h&&!(/mousedown|pointerdown/.test(a)&&e.button!==0||r.disabled)&&!d.isContentEditable&&!(!this.nativeDraggable&&Fe&&s&&s.tagName.toUpperCase()==="SELECT")&&(s=X(s,r.draggable,n,!1),!(s&&s.animated)&&Xe!==s)){if(_e=k(s),xe=k(s,r.draggable),typeof c=="function"){if(c.call(this,e,s,this)){N({sortable:t,rootEl:d,name:"filter",targetEl:s,toEl:n,fromEl:n}),M("filter",t,{evt:e}),o&&e.cancelable&&e.preventDefault();return}}else if(c&&(c=c.split(",").some(function(u){if(u=X(d,u.trim(),n,!1),u)return N({sortable:t,rootEl:u,name:"filter",targetEl:s,fromEl:n,toEl:n}),M("filter",t,{evt:e}),!0}),c)){o&&e.cancelable&&e.preventDefault();return}r.handle&&!X(d,r.handle,n,!1)||this._prepareDragStart(e,l,s)}}},_prepareDragStart:function(e,t,n){var r=this,o=r.el,a=r.options,l=o.ownerDocument,s;if(n&&!h&&n.parentNode===o){var d=O(n);if(w=o,h=n,S=h.parentNode,se=h.nextSibling,Xe=n,Ye=a.group,y.dragged=h,le={target:h,clientX:(t||e).clientX,clientY:(t||e).clientY},vn=le.clientX-d.left,yn=le.clientY-d.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,h.style["will-change"]="all",s=function(){if(M("delayEnded",r,{evt:e}),y.eventCanceled){r._onDrop();return}r._disableDelayedDragEvents(),!sn&&r.nativeDraggable&&(h.draggable=!0),r._triggerDragStart(e,t),N({sortable:r,name:"choose",originalEvent:e}),B(h,a.chosenClass,!0)},a.ignore.split(",").forEach(function(c){cn(h,c.trim(),At)}),$(l,"dragover",de),$(l,"mousemove",de),$(l,"touchmove",de),$(l,"mouseup",r._onDrop),$(l,"touchend",r._onDrop),$(l,"touchcancel",r._onDrop),sn&&this.nativeDraggable&&(this.options.touchStartThreshold=4,h.draggable=!0),M("delayStart",this,{evt:e}),a.delay&&(!a.delayOnTouchOnly||t)&&(!this.nativeDraggable||!(je||K))){if(y.eventCanceled){this._onDrop();return}$(l,"mouseup",r._disableDelayedDrag),$(l,"touchend",r._disableDelayedDrag),$(l,"touchcancel",r._disableDelayedDrag),$(l,"mousemove",r._delayedDragTouchMoveHandler),$(l,"touchmove",r._delayedDragTouchMoveHandler),a.supportPointer&&$(l,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(s,a.delay)}else s()}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){h&&At(h),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;b(e,"mouseup",this._disableDelayedDrag),b(e,"touchend",this._disableDelayedDrag),b(e,"touchcancel",this._disableDelayedDrag),b(e,"mousemove",this._delayedDragTouchMoveHandler),b(e,"touchmove",this._delayedDragTouchMoveHandler),b(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||e.pointerType=="touch"&&e,!this.nativeDraggable||t?this.options.supportPointer?$(document,"pointermove",this._onTouchMove):t?$(document,"touchmove",this._onTouchMove):$(document,"mousemove",this._onTouchMove):($(h,"dragend",this),$(w,"dragstart",this._onDragStart));try{document.selection?tt(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,t){if(Ee=!1,w&&h){M("dragStarted",this,{evt:t}),this.nativeDraggable&&$(document,"dragover",ci);var n=this.options;!e&&B(h,n.dragClass,!1),B(h,n.ghostClass,!0),y.active=this,e&&this._appendGhost(),N({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(j){this._lastX=j.clientX,this._lastY=j.clientY,$n();for(var e=document.elementFromPoint(j.clientX,j.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(j.clientX,j.clientY),e!==t);)t=e;if(h.parentNode[U]._isOutsideThisEl(e),t)do{if(t[U]){var n=void 0;if(n=t[U]._onDragOver({clientX:j.clientX,clientY:j.clientY,target:e,rootEl:t}),n&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);wn()}},_onTouchMove:function(e){if(le){var t=this.options,n=t.fallbackTolerance,r=t.fallbackOffset,o=e.touches?e.touches[0]:e,a=_&&me(_,!0),l=_&&a&&a.a,s=_&&a&&a.d,d=Je&&L&&pn(L),c=(o.clientX-le.clientX+r.x)/(l||1)+(d?d[0]-$t[0]:0)/(l||1),u=(o.clientY-le.clientY+r.y)/(s||1)+(d?d[1]-$t[1]:0)/(s||1);if(!y.active&&!Ee){if(n&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(_){a?(a.e+=c-(bt||0),a.f+=u-(Ct||0)):a={a:1,b:0,c:0,d:1,e:c,f:u};var f="matrix(".concat(a.a,",").concat(a.b,",").concat(a.c,",").concat(a.d,",").concat(a.e,",").concat(a.f,")");g(_,"webkitTransform",f),g(_,"mozTransform",f),g(_,"msTransform",f),g(_,"transform",f),bt=c,Ct=u,j=o}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!_){var e=this.options.fallbackOnBody?document.body:w,t=O(h,!0,Je,!0,e),n=this.options;if(Je){for(L=e;g(L,"position")==="static"&&g(L,"transform")==="none"&&L!==document;)L=L.parentNode;L!==document.body&&L!==document.documentElement?(L===document&&(L=Q()),t.top+=L.scrollTop,t.left+=L.scrollLeft):L=Q(),$t=pn(L)}_=h.cloneNode(!0),B(_,n.ghostClass,!1),B(_,n.fallbackClass,!0),B(_,n.dragClass,!0),g(_,"transition",""),g(_,"transform",""),g(_,"box-sizing","border-box"),g(_,"margin",0),g(_,"top",t.top),g(_,"left",t.left),g(_,"width",t.width),g(_,"height",t.height),g(_,"opacity","0.8"),g(_,"position",Je?"absolute":"fixed"),g(_,"zIndex","100000"),g(_,"pointerEvents","none"),y.ghost=_,e.appendChild(_),g(_,"transform-origin",vn/parseInt(_.style.width)*100+"% "+yn/parseInt(_.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,r=e.dataTransfer,o=n.options;if(M("dragStart",this,{evt:e}),y.eventCanceled){this._onDrop();return}M("setupClone",this),y.eventCanceled||(A=mn(h),A.removeAttribute("id"),A.draggable=!1,A.style["will-change"]="",this._hideClone(),B(A,this.options.chosenClass,!1),y.clone=A),n.cloneId=tt(function(){M("clone",n),!y.eventCanceled&&(n.options.removeCloneOnHide||w.insertBefore(A,h),n._hideClone(),N({sortable:n,name:"clone"}))}),!t&&B(h,o.dragClass,!0),t?(We=!0,n._loopId=setInterval(n._emulateDragOver,50)):(b(document,"mouseup",n._onDrop),b(document,"touchend",n._onDrop),b(document,"touchcancel",n._onDrop),r&&(r.effectAllowed="move",o.setData&&o.setData.call(n,r,h)),$(document,"drop",n),g(h,"transform","translateZ(0)")),Ee=!0,n._dragStartId=tt(n._dragStarted.bind(n,t,e)),$(document,"selectstart",n),Le=!0,Fe&&g(document.body,"user-select","none")},_onDragOver:function(e){var t=this.el,n=e.target,r,o,a,l=this.options,s=l.group,d=y.active,c=Ye===s,u=l.sort,f=x||d,m,p=this,v=!1;if(wt)return;function T(Be,Si){M(Be,p,z({evt:e,isOwner:c,axis:m?"vertical":"horizontal",revert:a,dragRect:r,targetRect:o,canSort:u,fromSortable:f,target:n,completed:P,onMove:function(In,Di){return et(w,t,h,r,In,O(In),e,Di)},changed:he},Si))}function F(){T("dragOverAnimationCapture"),p.captureAnimationState(),p!==f&&f.captureAnimationState()}function P(Be){return T("dragOverCompleted",{insertion:Be}),Be&&(c?d._hideClone():d._showClone(p),p!==f&&(B(h,x?x.options.ghostClass:d.options.ghostClass,!1),B(h,l.ghostClass,!0)),x!==p&&p!==y.active?x=p:p===y.active&&x&&(x=null),f===p&&(p._ignoreWhileAnimating=n),p.animateAll(function(){T("dragOverAnimationComplete"),p._ignoreWhileAnimating=null}),p!==f&&(f.animateAll(),f._ignoreWhileAnimating=null)),(n===h&&!h.animated||n===t&&!n.animated)&&(be=null),!l.dragoverBubble&&!e.rootEl&&n!==document&&(h.parentNode[U]._isOutsideThisEl(e.target),!Be&&de(e)),!l.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),v=!0}function he(){R=k(h),ee=k(h,l.draggable),N({sortable:p,name:"change",toEl:t,newIndex:R,newDraggableIndex:ee,originalEvent:e})}if(e.preventDefault!==void 0&&e.cancelable&&e.preventDefault(),n=X(n,l.draggable,t,!0),T("dragOver"),y.eventCanceled)return v;if(h.contains(e.target)||n.animated&&n.animatingX&&n.animatingY||p._ignoreWhileAnimating===n)return P(!1);if(We=!1,d&&!l.disabled&&(c?u||(a=S!==w):x===this||(this.lastPutMode=Ye.checkPull(this,d,h,e))&&s.checkPut(this,d,h,e))){if(m=this._getDirection(e,n)==="vertical",r=O(h),T("dragOverValid"),y.eventCanceled)return v;if(a)return S=w,F(),this._hideClone(),T("revert"),y.eventCanceled||(se?w.insertBefore(h,se):w.appendChild(h)),P(!0);var G=vt(t,l.draggable);if(!G||mi(e,m,this)&&!G.animated){if(G===h)return P(!1);if(G&&t===e.target&&(n=G),n&&(o=O(n)),et(w,t,h,r,n,o,e,!!n)!==!1)return F(),G&&G.nextSibling?t.insertBefore(h,G.nextSibling):t.appendChild(h),S=t,he(),P(!0)}else if(G&&gi(e,m,this)){var Dt=ve(t,0,l,!0);if(Dt===h)return P(!1);if(n=Dt,o=O(n),et(w,t,h,r,n,o,e,!1)!==!1)return F(),t.insertBefore(h,Dt),S=t,he(),P(!0)}else if(n.parentNode===t){o=O(n);var Ce=0,Tt,wi=h.parentNode!==t,On=!hi(h.animated&&h.toRect||r,n.animated&&n.toRect||o,m),xn=m?"top":"left",Ne=fn(n,"top","top")||fn(h,"top","top"),Ai=Ne?Ne.scrollTop:void 0;be!==n&&(Tt=o[xn],Ie=!1,qe=!On&&l.invertSwap||wi),Ce=vi(e,n,o,m,On?1:l.swapThreshold,l.invertedSwapThreshold==null?l.swapThreshold:l.invertedSwapThreshold,qe,be===n);var Me;if(Ce!==0){var Ln=k(h);do Ln-=Ce,Me=S.children[Ln];while(Me&&(g(Me,"display")==="none"||Me===_))}if(Ce===0||Me===n)return P(!1);be=n,Pe=Ce;var Pn=n.nextElementSibling,He=!1;He=Ce===1;var nt=et(w,t,h,r,n,o,e,He);if(nt!==!1)return(nt===1||nt===-1)&&(He=nt===1),wt=!0,setTimeout(pi,30),F(),He&&!Pn?t.appendChild(h):n.parentNode.insertBefore(h,He?Pn:n),Ne&&ii(Ne,0,Ai-Ne.scrollTop),S=h.parentNode,Tt!==void 0&&!qe&&(Ze=Math.abs(Tt-O(n)[xn])),he(),P(!0)}if(t.contains(h))return P(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){b(document,"mousemove",this._onTouchMove),b(document,"touchmove",this._onTouchMove),b(document,"pointermove",this._onTouchMove),b(document,"dragover",de),b(document,"mousemove",de),b(document,"touchmove",de)},_offUpEvents:function(){var e=this.el.ownerDocument;b(e,"mouseup",this._onDrop),b(e,"touchend",this._onDrop),b(e,"pointerup",this._onDrop),b(e,"touchcancel",this._onDrop),b(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;if(R=k(h),ee=k(h,n.draggable),M("drop",this,{evt:e}),S=h&&h.parentNode,R=k(h),ee=k(h,n.draggable),y.eventCanceled){this._nulling();return}Ee=!1,qe=!1,Ie=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),St(this.cloneId),St(this._dragStartId),this.nativeDraggable&&(b(document,"drop",this),b(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Fe&&g(document.body,"user-select",""),g(h,"transform",""),e&&(Le&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),_&&_.parentNode&&_.parentNode.removeChild(_),(w===S||x&&x.lastPutMode!=="clone")&&A&&A.parentNode&&A.parentNode.removeChild(A),h&&(this.nativeDraggable&&b(h,"dragend",this),At(h),h.style["will-change"]="",Le&&!Ee&&B(h,x?x.options.ghostClass:this.options.ghostClass,!1),B(h,this.options.chosenClass,!1),N({sortable:this,name:"unchoose",toEl:S,newIndex:null,newDraggableIndex:null,originalEvent:e}),w!==S?(R>=0&&(N({rootEl:S,name:"add",toEl:S,fromEl:w,originalEvent:e}),N({sortable:this,name:"remove",toEl:S,originalEvent:e}),N({rootEl:S,name:"sort",toEl:S,fromEl:w,originalEvent:e}),N({sortable:this,name:"sort",toEl:S,originalEvent:e})),x&&x.save()):R!==_e&&R>=0&&(N({sortable:this,name:"update",toEl:S,originalEvent:e}),N({sortable:this,name:"sort",toEl:S,originalEvent:e})),y.active&&((R==null||R===-1)&&(R=_e,ee=xe),N({sortable:this,name:"end",toEl:S,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){M("nulling",this),w=h=S=_=se=A=Xe=J=le=j=Le=R=ee=_e=xe=be=Pe=x=Ye=y.dragged=y.ghost=y.clone=y.active=null,Ke.forEach(function(e){e.checked=!0}),Ke.length=bt=Ct=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":h&&(this._onDragOver(e),fi(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],t,n=this.el.children,r=0,o=n.length,a=this.options;r<o;r++)t=n[r],X(t,a.draggable,this.el,!1)&&e.push(t.getAttribute(a.dataIdAttr)||_i(t));return e},sort:function(e,t){var n={},r=this.el;this.toArray().forEach(function(o,a){var l=r.children[a];X(l,this.options.draggable,r,!1)&&(n[o]=l)},this),t&&this.captureAnimationState(),e.forEach(function(o){n[o]&&(r.removeChild(n[o]),r.appendChild(n[o]))}),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return X(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(t===void 0)return n[e];var r=Oe.modifyOption(this,e,t);typeof r<"u"?n[e]=r:n[e]=t,e==="group"&&Cn(n)},destroy:function(){M("destroy",this);var e=this.el;e[U]=null,b(e,"mousedown",this._onTapStart),b(e,"touchstart",this._onTapStart),b(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(b(e,"dragover",this),b(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(t){t.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Ge.splice(Ge.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!J){if(M("hideClone",this),y.eventCanceled)return;g(A,"display","none"),this.options.removeCloneOnHide&&A.parentNode&&A.parentNode.removeChild(A),J=!0}},_showClone:function(e){if(e.lastPutMode!=="clone"){this._hideClone();return}if(J){if(M("showClone",this),y.eventCanceled)return;h.parentNode==w&&!this.options.group.revertClone?w.insertBefore(A,h):se?w.insertBefore(A,se):w.appendChild(A),this.options.group.revertClone&&this.animate(h,A),g(A,"display",""),J=!1}}};function fi(i){i.dataTransfer&&(i.dataTransfer.dropEffect="move"),i.cancelable&&i.preventDefault()}function et(i,e,t,n,r,o,a,l){var s,d=i[U],c=d.options.onMove,u;return window.CustomEvent&&!K&&!je?s=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(s=document.createEvent("Event"),s.initEvent("move",!0,!0)),s.to=e,s.from=i,s.dragged=t,s.draggedRect=n,s.related=r||e,s.relatedRect=o||O(e),s.willInsertAfter=l,s.originalEvent=a,i.dispatchEvent(s),c&&(u=c.call(d,s,a)),u}function At(i){i.draggable=!1}function pi(){wt=!1}function gi(i,e,t){var n=O(ve(t.el,0,t.options,!0)),r=10;return e?i.clientX<n.left-r||i.clientY<n.top&&i.clientX<n.right:i.clientY<n.top-r||i.clientY<n.bottom&&i.clientX<n.left}function mi(i,e,t){var n=O(vt(t.el,t.options.draggable)),r=10;return e?i.clientX>n.right+r||i.clientX<=n.right&&i.clientY>n.bottom&&i.clientX>=n.left:i.clientX>n.right&&i.clientY>n.top||i.clientX<=n.right&&i.clientY>n.bottom+r}function vi(i,e,t,n,r,o,a,l){var s=n?i.clientY:i.clientX,d=n?t.height:t.width,c=n?t.top:t.left,u=n?t.bottom:t.right,f=!1;if(!a){if(l&&Ze<d*r){if(!Ie&&(Pe===1?s>c+d*o/2:s<u-d*o/2)&&(Ie=!0),Ie)f=!0;else if(Pe===1?s<c+Ze:s>u-Ze)return-Pe}else if(s>c+d*(1-r)/2&&s<u-d*(1-r)/2)return yi(e)}return f=f||a,f&&(s<c+d*o/2||s>u-d*o/2)?s>c+d/2?1:-1:0}function yi(i){return k(h)<k(i)?1:-1}function _i(i){for(var e=i.tagName+i.className+i.src+i.href+i.textContent,t=e.length,n=0;t--;)n+=e.charCodeAt(t);return n.toString(36)}function Ei(i){Ke.length=0;for(var e=i.getElementsByTagName("input"),t=e.length;t--;){var n=e[t];n.checked&&Ke.push(n)}}function tt(i){return setTimeout(i,0)}function St(i){return clearTimeout(i)}Qe&&$(document,"touchmove",function(i){(y.active||Ee)&&i.cancelable&&i.preventDefault()}),y.utils={on:$,off:b,css:g,find:cn,is:function(e,t){return!!X(e,t,e,!1)},extend:ti,throttle:ni,closest:X,toggleClass:B,clone:mn,index:k,nextTick:tt,cancelNextTick:St,detectDirection:bn,getChild:ve},y.get=function(i){return i[U]},y.mount=function(){for(var i=arguments.length,e=new Array(i),t=0;t<i;t++)e[t]=arguments[t];e[0].constructor===Array&&(e=e[0]),e.forEach(function(n){if(!n.prototype||!n.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(n));n.utils&&(y.utils=z(z({},y.utils),n.utils)),Oe.mount(n)})},y.create=function(i,e){return new y(i,e)},y.version=Qn;var An=function(e){var t=e.originalEvent,n=e.putSortable,r=e.dragEl,o=e.activeSortable,a=e.dispatchSortableEvent,l=e.hideGhostForTarget,s=e.unhideGhostForTarget;if(t){var d=n||o;l();var c=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,u=document.elementFromPoint(c.clientX,c.clientY);s(),d&&!d.el.contains(u)&&(a("spill"),this.onSpill({dragEl:r,putSortable:n}))}};function Sn(){}Sn.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var r=ve(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(t,r):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:An},Z(Sn,{pluginName:"revertOnSpill"});function Dn(){}Dn.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable,r=n||this.sortable;r.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),r.animateAll()},drop:An},Z(Dn,{pluginName:"removeOnSpill"});const Tn=`
61
61
  :host {
62
62
  display: block;
63
63
  }
@@ -71,7 +71,7 @@
71
71
  ul[data-group] {
72
72
  padding-inline-start: 40px;
73
73
  }
74
- `,Ei=`
74
+ `,bi=`
75
75
  ul {
76
76
  padding: 0;
77
77
  }
@@ -137,7 +137,7 @@ details[open].group-details > summary:after {
137
137
  height: 24px;
138
138
  cursor: pointer;
139
139
  }
140
- `;var Ci=Object.defineProperty,$i=Object.getOwnPropertyDescriptor,D=(i,e,t,n)=>{for(var r=n>1?void 0:n?$i(e,t):e,o=i.length-1,a;o>=0;o--)(a=i[o])&&(r=(n?a(e,t,r):a(r))||r);return n&&r&&Ci(e,t,r),r};b.EOxLayerControl=class extends pe{constructor(){super(...arguments),this.layerIdentifier="ol_uid",this.layerTitle="title",this.sortBy="layerOrder",this.layerConfig=["opacity"],this.externalLayerConfig=void 0,this.filterLayers=(e,t,n)=>{let r=[];const o=(a,l,s)=>{r=[...r,...a.filter(c=>c.get(l)===s)];const d=a.filter(c=>c.getLayers);return d.length>0&&d.forEach(c=>o(c.getLayers().getArray(),l,s)),r};return o(e,t,n),r},this.findLayerById=(e,t)=>this.filterLayers(e,"id",t)[0]}_updateControl(e){this.layerCollection=e,this.optionalLayerArray=this.filterLayers(e.getArray(),"layerControlOptional",!0),this.requestUpdate()}_emitLayerconfig(e){const t={detail:{layer:e},bubbles:!0,composed:!0};this.dispatchEvent(new CustomEvent("layerconfig",t))}changeOpacity(e,t){e.setOpacity(t)}changeStyleProperty(e,t,n){e.updateStyleVariables({...e.style_,[t]:n})}preFilterLayers(e){return[...e].filter(t=>t.get("layerControlHide")!==!0&&t.get("layerControlOptional")!==!0)}toggleLayerVisibility(e,t){if(e.setVisible(!e.getVisible()),e.get("layerControlExclusive")){let n=[];t?n=this.findLayerById(this.layerCollection.getArray(),t).getLayers().getArray().filter(o=>o.get(this.layerIdentifier)!==e.get(this.layerIdentifier)&&o.get("layerControlExclusive")):n=this.layerCollection.getArray().filter(r=>r.get(this.layerIdentifier)!==e.get(this.layerIdentifier)&&r.get("layerControlExclusive")),n.forEach(r=>{r.setVisible(!1)})}this.requestUpdate()}render(){var o;const e=document.querySelector(this.for),n=(e.map||e).getLayers();this._updateControl(n),n.on("change:length",()=>{this._currentlySorting||this._updateControl(n)});const r=(a,l)=>I`
140
+ `;var Ci=Object.defineProperty,$i=Object.getOwnPropertyDescriptor,D=(i,e,t,n)=>{for(var r=n>1?void 0:n?$i(e,t):e,o=i.length-1,a;o>=0;o--)(a=i[o])&&(r=(n?a(e,t,r):a(r))||r);return n&&r&&Ci(e,t,r),r};E.EOxLayerControl=class extends pe{constructor(){super(...arguments),this.layerIdentifier="ol_uid",this.layerTitle="title",this.sortBy="layerOrder",this.layerConfig=["opacity"],this.externalLayerConfig=void 0,this.filterLayers=(e,t,n)=>{let r=[];const o=(a,l,s)=>{r=[...r,...a.filter(c=>c.get(l)===s)];const d=a.filter(c=>c.getLayers);return d.length>0&&d.forEach(c=>o(c.getLayers().getArray(),l,s)),r};return o(e,t,n),r},this.findLayerById=(e,t)=>this.filterLayers(e,"id",t)[0]}_updateControl(e){this.layerCollection=e,this.optionalLayerArray=this.filterLayers(e.getArray(),"layerControlOptional",!0),this.requestUpdate()}_emitLayerconfig(e){const t={detail:{layer:e},bubbles:!0,composed:!0};this.dispatchEvent(new CustomEvent("layerconfig",t))}changeOpacity(e,t){e.setOpacity(t)}changeStyleProperty(e,t,n){e.updateStyleVariables({...e.style_,[t]:n})}preFilterLayers(e){return[...e].filter(t=>t.get("layerControlHide")!==!0&&t.get("layerControlOptional")!==!0)}toggleLayerVisibility(e,t){if(e.setVisible(!e.getVisible()),e.get("layerControlExclusive")){let n=[];t?n=this.findLayerById(this.layerCollection.getArray(),t).getLayers().getArray().filter(o=>o.get(this.layerIdentifier)!==e.get(this.layerIdentifier)&&o.get("layerControlExclusive")):n=this.layerCollection.getArray().filter(r=>r.get(this.layerIdentifier)!==e.get(this.layerIdentifier)&&r.get("layerControlExclusive")),n.forEach(r=>{r.setVisible(!1)})}this.requestUpdate()}render(){var o;const e=document.querySelector(this.for),n=(e.map||e).getLayers();this._updateControl(n),n.on("change:length",()=>{this._currentlySorting||this._updateControl(n)});const r=(a,l)=>I`
141
141
  <ul data-group="${l??C}">
142
142
  ${gt(a,s=>s.get(this.layerIdentifier),s=>I`
143
143
  <li
@@ -147,7 +147,7 @@ details[open].group-details > summary:after {
147
147
  <div class="layer">
148
148
  <label>
149
149
  <input
150
- type="checkbox"
150
+ type="${s.get("layerControlExclusive")?"radio":"checkbox"}"
151
151
  .checked="${mt(s.getVisible())}"
152
152
  @click=${()=>{this.toggleLayerVisibility(s,l)}}
153
153
  />
@@ -186,7 +186,7 @@ details[open].group-details > summary:after {
186
186
  `;return I`
187
187
  <style>
188
188
  ${Tn}
189
- ${!this.unstyled&&Ei}
189
+ ${!this.unstyled&&bi}
190
190
  </style>
191
191
  <div>
192
192
  <slot></slot>
@@ -215,7 +215,7 @@ details[open].group-details > summary:after {
215
215
  </button>
216
216
  `)}
217
217
  </div>
218
- `}updated(){this.sortBy=="layerOrder"&&this.renderRoot.querySelectorAll("ul").forEach(t=>{const n=t.dataset.group;y.create(t,{handle:".drag-handle",dataIdAttr:"data-layer",filter:"data-disabled",swapThreshold:.5,animation:150,easing:"cubic-bezier(1, 0, 0, 1)",store:{get:()=>n?[...this.findLayerById(this.layerCollection.getArray(),n).getLayers().getArray().map(a=>a.get(this.layerIdentifier))].reverse():[...this.layerCollection.getArray().map(r=>r.get(this.layerIdentifier))].reverse(),set:r=>{var o=r.toArray().reverse();o.forEach((a,l)=>{if(n){const d=this.findLayerById(this.layerCollection.getArray(),n).getLayers(),c=this.findLayerById(d.getArray(),a);d.remove(c),d.insertAt(l,c)}else{const s=this.findLayerById(this.layerCollection.getArray(),a);this.layerCollection.remove(s),this.layerCollection.insertAt(l,s)}})}},onMove:r=>!r.related.dataset.disabled})})}},D([ge()],b.EOxLayerControl.prototype,"olMap",2),D([ge()],b.EOxLayerControl.prototype,"layerCollection",2),D([ge()],b.EOxLayerControl.prototype,"layerArray",2),D([ge()],b.EOxLayerControl.prototype,"optionalLayerArray",2),D([H()],b.EOxLayerControl.prototype,"for",2),D([H()],b.EOxLayerControl.prototype,"layerIdentifier",2),D([H()],b.EOxLayerControl.prototype,"layerTitle",2),D([H()],b.EOxLayerControl.prototype,"sortBy",2),D([H({type:Array})],b.EOxLayerControl.prototype,"layerConfig",2),D([H({type:Boolean})],b.EOxLayerControl.prototype,"externalLayerConfig",2),D([H({type:Boolean})],b.EOxLayerControl.prototype,"unstyled",2),b.EOxLayerControl=D([Qt("eox-layercontrol")],b.EOxLayerControl),b.EOxLayerConfig=class extends pe{constructor(){super(...arguments),this._configList={}}_handleInput(e,t){t==="opacity"?this._layerControlElement.changeOpacity(this._currentLayer,parseFloat(e.target.value)):this._layerControlElement.changeStyleProperty(this._currentLayer,t,parseFloat(e.target.value))}_parseConfigs(e){if(!e)return;const t=e.style_;t&&t.color&&t.color[0]==="array"&&(this._configList=t.variables)}connectedCallback(){super.connectedCallback(),!this.layerConfig&&!this.layerControl?(this._layerControlElement=document.querySelector(this.for),this._layerControlElement&&(this.layerConfig=this._layerControlElement.layerConfig,this._layerControlElement.addEventListener("layerconfig",e=>{this._currentLayer=e.detail.layer,this._parseConfigs(this._currentLayer),this.requestUpdate()}))):(this._layerControlElement=this.layerControl,this._currentLayer=this.layer,this._parseConfigs(this._currentLayer))}render(){return I`
218
+ `}updated(){this.sortBy=="layerOrder"&&this.renderRoot.querySelectorAll("ul").forEach(t=>{const n=t.dataset.group;y.create(t,{handle:".drag-handle",dataIdAttr:"data-layer",filter:"data-disabled",swapThreshold:.5,animation:150,easing:"cubic-bezier(1, 0, 0, 1)",store:{get:()=>n?[...this.findLayerById(this.layerCollection.getArray(),n).getLayers().getArray().map(a=>a.get(this.layerIdentifier))].reverse():[...this.layerCollection.getArray().map(r=>r.get(this.layerIdentifier))].reverse(),set:r=>{var o=r.toArray().reverse();o.forEach((a,l)=>{if(n){const d=this.findLayerById(this.layerCollection.getArray(),n).getLayers(),c=this.findLayerById(d.getArray(),a);d.remove(c),d.insertAt(l,c)}else{const s=this.findLayerById(this.layerCollection.getArray(),a);this.layerCollection.remove(s),this.layerCollection.insertAt(l,s)}})}},onMove:r=>!r.related.dataset.disabled})})}},D([ge()],E.EOxLayerControl.prototype,"olMap",2),D([ge()],E.EOxLayerControl.prototype,"layerCollection",2),D([ge()],E.EOxLayerControl.prototype,"layerArray",2),D([ge()],E.EOxLayerControl.prototype,"optionalLayerArray",2),D([H()],E.EOxLayerControl.prototype,"for",2),D([H()],E.EOxLayerControl.prototype,"layerIdentifier",2),D([H()],E.EOxLayerControl.prototype,"layerTitle",2),D([H()],E.EOxLayerControl.prototype,"sortBy",2),D([H({type:Array})],E.EOxLayerControl.prototype,"layerConfig",2),D([H({type:Boolean})],E.EOxLayerControl.prototype,"externalLayerConfig",2),D([H({type:Boolean})],E.EOxLayerControl.prototype,"unstyled",2),E.EOxLayerControl=D([Qt("eox-layercontrol")],E.EOxLayerControl),E.EOxLayerConfig=class extends pe{constructor(){super(...arguments),this._configList={}}_handleInput(e,t){t==="opacity"?this._layerControlElement.changeOpacity(this._currentLayer,parseFloat(e.target.value)):this._layerControlElement.changeStyleProperty(this._currentLayer,t,parseFloat(e.target.value))}_parseConfigs(e){if(!e)return;const t=e.style_;t&&t.color&&t.color[0]==="array"&&(this._configList=t.variables)}connectedCallback(){super.connectedCallback(),!this.layerConfig&&!this.layerControl?(this._layerControlElement=document.querySelector(this.for),this._layerControlElement&&(this.layerConfig=this._layerControlElement.layerConfig,this._layerControlElement.addEventListener("layerconfig",e=>{this._currentLayer=e.detail.layer,this._parseConfigs(this._currentLayer),this.requestUpdate()}))):(this._layerControlElement=this.layerControl,this._currentLayer=this.layer,this._parseConfigs(this._currentLayer))}render(){return I`
219
219
  <style>
220
220
  ${Tn}
221
221
  </style>
@@ -253,4 +253,4 @@ details[open].group-details > summary:after {
253
253
  `:C}
254
254
  </div>
255
255
  `)}
256
- `}},D([H()],b.EOxLayerConfig.prototype,"for",2),D([H({type:Array})],b.EOxLayerConfig.prototype,"layerConfig",2),D([H({type:Object,attribute:!1})],b.EOxLayerConfig.prototype,"layerControl",2),D([H({type:Object,attribute:!1})],b.EOxLayerConfig.prototype,"layer",2),D([H({type:Boolean})],b.EOxLayerConfig.prototype,"external",2),D([ge()],b.EOxLayerConfig.prototype,"_currentLayer",2),D([ge()],b.EOxLayerConfig.prototype,"_configList",2),b.EOxLayerConfig=D([Qt("eox-layerconfig")],b.EOxLayerConfig),Object.defineProperty(b,Symbol.toStringTag,{value:"Module"})});
256
+ `}},D([H()],E.EOxLayerConfig.prototype,"for",2),D([H({type:Array})],E.EOxLayerConfig.prototype,"layerConfig",2),D([H({type:Object,attribute:!1})],E.EOxLayerConfig.prototype,"layerControl",2),D([H({type:Object,attribute:!1})],E.EOxLayerConfig.prototype,"layer",2),D([H({type:Boolean})],E.EOxLayerConfig.prototype,"external",2),D([ge()],E.EOxLayerConfig.prototype,"_currentLayer",2),D([ge()],E.EOxLayerConfig.prototype,"_configList",2),E.EOxLayerConfig=D([Qt("eox-layerconfig")],E.EOxLayerConfig),Object.defineProperty(E,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eox/layercontrol",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "type": "module",
5
5
  "devDependencies": {
6
6
  "@eox/eslint-config": "^1.0.0",