@eox/layercontrol 0.7.0 → 0.7.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.
- package/dist/eox-layercontrol.js +53 -44
- package/dist/eox-layercontrol.umd.cjs +19 -10
- package/package.json +3 -3
- package/test/general.cy.js +2 -4
- package/test/layersUpdate.cy.js +2 -5
package/dist/eox-layercontrol.js
CHANGED
|
@@ -268,7 +268,7 @@ _t[je] = !0, _t.elementProperties = /* @__PURE__ */ new Map(), _t.elementStyles
|
|
|
268
268
|
var Oe;
|
|
269
269
|
const le = window, Ct = le.trustedTypes, hi = Ct ? Ct.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, qe = "$lit$", at = `lit$${(Math.random() + "").slice(9)}$`, Hi = "?" + at, fn = `<${Hi}>`, bt = document, zt = () => bt.createComment(""), Xt = (n) => n === null || typeof n != "object" && typeof n != "function", Oi = Array.isArray, gn = (n) => Oi(n) || typeof (n == null ? void 0 : n[Symbol.iterator]) == "function", Me = `[
|
|
270
270
|
\f\r]`, Nt = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, pi = /-->/g, fi = />/g, pt = RegExp(`>|${Me}(?:([^\\s"'>=/]+)(${Me}*=${Me}*(?:[^
|
|
271
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), gi = /'/g, mi = /"/g, Mi = /^(?:script|style|textarea|title)$/i, mn = (n) => (t, ...e) => ({ _$litType$: n, strings: t, values: e }), _ = mn(1), q = Symbol.for("lit-noChange"),
|
|
271
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), gi = /'/g, mi = /"/g, Mi = /^(?:script|style|textarea|title)$/i, mn = (n) => (t, ...e) => ({ _$litType$: n, strings: t, values: e }), _ = mn(1), q = Symbol.for("lit-noChange"), $ = Symbol.for("lit-nothing"), vi = /* @__PURE__ */ new WeakMap(), yt = bt.createTreeWalker(bt, 129, null, !1);
|
|
272
272
|
function Ni(n, t) {
|
|
273
273
|
if (!Array.isArray(n) || !n.hasOwnProperty("raw"))
|
|
274
274
|
throw Error("invalid template strings array");
|
|
@@ -379,7 +379,7 @@ class yn {
|
|
|
379
379
|
class jt {
|
|
380
380
|
constructor(t, e, i, o) {
|
|
381
381
|
var r;
|
|
382
|
-
this.type = 2, this._$AH =
|
|
382
|
+
this.type = 2, this._$AH = $, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = i, this.options = o, this._$Cp = (r = o == null ? void 0 : o.isConnected) === null || r === void 0 || r;
|
|
383
383
|
}
|
|
384
384
|
get _$AU() {
|
|
385
385
|
var t, e;
|
|
@@ -397,7 +397,7 @@ class jt {
|
|
|
397
397
|
return this._$AB;
|
|
398
398
|
}
|
|
399
399
|
_$AI(t, e = this) {
|
|
400
|
-
t = St(this, t, e), Xt(t) ? t ===
|
|
400
|
+
t = St(this, t, e), Xt(t) ? t === $ || t == null || t === "" ? (this._$AH !== $ && this._$AR(), this._$AH = $) : t !== this._$AH && t !== q && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) : gn(t) ? this.T(t) : this._(t);
|
|
401
401
|
}
|
|
402
402
|
k(t) {
|
|
403
403
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
@@ -406,7 +406,7 @@ class jt {
|
|
|
406
406
|
this._$AH !== t && (this._$AR(), this._$AH = this.k(t));
|
|
407
407
|
}
|
|
408
408
|
_(t) {
|
|
409
|
-
this._$AH !==
|
|
409
|
+
this._$AH !== $ && Xt(this._$AH) ? this._$AA.nextSibling.data = t : this.$(bt.createTextNode(t)), this._$AH = t;
|
|
410
410
|
}
|
|
411
411
|
g(t) {
|
|
412
412
|
var e;
|
|
@@ -444,7 +444,7 @@ class jt {
|
|
|
444
444
|
}
|
|
445
445
|
class Te {
|
|
446
446
|
constructor(t, e, i, o, r) {
|
|
447
|
-
this.type = 1, this._$AH =
|
|
447
|
+
this.type = 1, this._$AH = $, this._$AN = void 0, this.element = t, this.name = e, this._$AM = o, this.options = r, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = $;
|
|
448
448
|
}
|
|
449
449
|
get tagName() {
|
|
450
450
|
return this.element.tagName;
|
|
@@ -461,12 +461,12 @@ class Te {
|
|
|
461
461
|
const l = t;
|
|
462
462
|
let a, d;
|
|
463
463
|
for (t = r[0], a = 0; a < r.length - 1; a++)
|
|
464
|
-
d = St(this, l[i + a], e, a), d === q && (d = this._$AH[a]), s || (s = !Xt(d) || d !== this._$AH[a]), d ===
|
|
464
|
+
d = St(this, l[i + a], e, a), d === q && (d = this._$AH[a]), s || (s = !Xt(d) || d !== this._$AH[a]), d === $ ? t = $ : t !== $ && (t += (d ?? "") + r[a + 1]), this._$AH[a] = d;
|
|
465
465
|
}
|
|
466
466
|
s && !o && this.j(t);
|
|
467
467
|
}
|
|
468
468
|
j(t) {
|
|
469
|
-
t ===
|
|
469
|
+
t === $ ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
470
470
|
}
|
|
471
471
|
}
|
|
472
472
|
class bn extends Te {
|
|
@@ -474,7 +474,7 @@ class bn extends Te {
|
|
|
474
474
|
super(...arguments), this.type = 3;
|
|
475
475
|
}
|
|
476
476
|
j(t) {
|
|
477
|
-
this.element[this.name] = t ===
|
|
477
|
+
this.element[this.name] = t === $ ? void 0 : t;
|
|
478
478
|
}
|
|
479
479
|
}
|
|
480
480
|
const En = Ct ? Ct.emptyScript : "";
|
|
@@ -483,7 +483,7 @@ class wn extends Te {
|
|
|
483
483
|
super(...arguments), this.type = 4;
|
|
484
484
|
}
|
|
485
485
|
j(t) {
|
|
486
|
-
t && t !==
|
|
486
|
+
t && t !== $ ? this.element.setAttribute(this.name, En) : this.element.removeAttribute(this.name);
|
|
487
487
|
}
|
|
488
488
|
}
|
|
489
489
|
class _n extends Te {
|
|
@@ -492,9 +492,9 @@ class _n extends Te {
|
|
|
492
492
|
}
|
|
493
493
|
_$AI(t, e = this) {
|
|
494
494
|
var i;
|
|
495
|
-
if ((t = (i = St(this, t, e, 0)) !== null && i !== void 0 ? i :
|
|
495
|
+
if ((t = (i = St(this, t, e, 0)) !== null && i !== void 0 ? i : $) === q)
|
|
496
496
|
return;
|
|
497
|
-
const o = this._$AH, r = t ===
|
|
497
|
+
const o = this._$AH, r = t === $ && o !== $ || t.capture !== o.capture || t.once !== o.once || t.passive !== o.passive, s = t !== $ && (o === $ || r);
|
|
498
498
|
r && this.element.removeEventListener(this.name, this, o), s && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
499
499
|
}
|
|
500
500
|
handleEvent(t) {
|
|
@@ -603,7 +603,7 @@ const An = (n) => n.strings === void 0, Cn = {}, ki = (n, t = Cn) => n._$AH = t;
|
|
|
603
603
|
*/
|
|
604
604
|
const Sn = ei(class extends ii {
|
|
605
605
|
constructor() {
|
|
606
|
-
super(...arguments), this.key =
|
|
606
|
+
super(...arguments), this.key = $;
|
|
607
607
|
}
|
|
608
608
|
render(n, t) {
|
|
609
609
|
return this.key = n, t;
|
|
@@ -1037,10 +1037,10 @@ var Rn = ["evt"], k = function(t, e) {
|
|
|
1037
1037
|
dragEl: c,
|
|
1038
1038
|
parentEl: C,
|
|
1039
1039
|
ghostEl: m,
|
|
1040
|
-
rootEl:
|
|
1040
|
+
rootEl: x,
|
|
1041
1041
|
nextEl: vt,
|
|
1042
1042
|
lastDownEl: ie,
|
|
1043
|
-
cloneEl:
|
|
1043
|
+
cloneEl: A,
|
|
1044
1044
|
cloneHidden: lt,
|
|
1045
1045
|
dragStarted: kt,
|
|
1046
1046
|
putSortable: D,
|
|
@@ -1070,16 +1070,16 @@ var Rn = ["evt"], k = function(t, e) {
|
|
|
1070
1070
|
function N(n) {
|
|
1071
1071
|
Bn(K({
|
|
1072
1072
|
putSortable: D,
|
|
1073
|
-
cloneEl:
|
|
1073
|
+
cloneEl: A,
|
|
1074
1074
|
targetEl: c,
|
|
1075
|
-
rootEl:
|
|
1075
|
+
rootEl: x,
|
|
1076
1076
|
oldIndex: xt,
|
|
1077
1077
|
oldDraggableIndex: Rt,
|
|
1078
1078
|
newIndex: R,
|
|
1079
1079
|
newDraggableIndex: st
|
|
1080
1080
|
}, n));
|
|
1081
1081
|
}
|
|
1082
|
-
var c, C, m,
|
|
1082
|
+
var c, C, m, x, vt, ie, A, lt, xt, R, Rt, st, Gt, D, $t = !1, ue = !1, ce = [], ft, j, Le, Be, Ai, Ci, kt, wt, Ut, Ft = !1, Kt = !1, ne, P, Re = [], We = !1, he = [], De = typeof document < "u", Jt = Ii, Si = qt || nt ? "cssFloat" : "float", Un = De && !Vi && !Ii && "draggable" in document.createElement("div"), zi = function() {
|
|
1083
1083
|
if (De) {
|
|
1084
1084
|
if (nt)
|
|
1085
1085
|
return !1;
|
|
@@ -1261,7 +1261,7 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
1261
1261
|
var o = this, r = o.el, s = o.options, l = r.ownerDocument, a;
|
|
1262
1262
|
if (i && !c && i.parentNode === r) {
|
|
1263
1263
|
var d = T(i);
|
|
1264
|
-
if (
|
|
1264
|
+
if (x = r, c = i, C = c.parentNode, vt = c.nextSibling, ie = i, Gt = s.group, g.dragged = c, ft = {
|
|
1265
1265
|
target: c,
|
|
1266
1266
|
clientX: (e || t).clientX,
|
|
1267
1267
|
clientY: (e || t).clientY
|
|
@@ -1303,7 +1303,7 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
1303
1303
|
E(t, "mouseup", this._disableDelayedDrag), E(t, "touchend", this._disableDelayedDrag), E(t, "touchcancel", this._disableDelayedDrag), E(t, "mousemove", this._delayedDragTouchMoveHandler), E(t, "touchmove", this._delayedDragTouchMoveHandler), E(t, "pointermove", this._delayedDragTouchMoveHandler);
|
|
1304
1304
|
},
|
|
1305
1305
|
_triggerDragStart: function(t, e) {
|
|
1306
|
-
e = e || t.pointerType == "touch" && t, !this.nativeDraggable || e ? this.options.supportPointer ? w(document, "pointermove", this._onTouchMove) : e ? w(document, "touchmove", this._onTouchMove) : w(document, "mousemove", this._onTouchMove) : (w(c, "dragend", this), w(
|
|
1306
|
+
e = e || t.pointerType == "touch" && t, !this.nativeDraggable || e ? this.options.supportPointer ? w(document, "pointermove", this._onTouchMove) : e ? w(document, "touchmove", this._onTouchMove) : w(document, "mousemove", this._onTouchMove) : (w(c, "dragend", this), w(x, "dragstart", this._onDragStart));
|
|
1307
1307
|
try {
|
|
1308
1308
|
document.selection ? oe(function() {
|
|
1309
1309
|
document.selection.empty();
|
|
@@ -1312,7 +1312,7 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
1312
1312
|
}
|
|
1313
1313
|
},
|
|
1314
1314
|
_dragStarted: function(t, e) {
|
|
1315
|
-
if ($t = !1,
|
|
1315
|
+
if ($t = !1, x && c) {
|
|
1316
1316
|
k("dragStarted", this, {
|
|
1317
1317
|
evt: e
|
|
1318
1318
|
}), this.nativeDraggable && w(document, "dragover", Xn);
|
|
@@ -1372,7 +1372,7 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
1372
1372
|
},
|
|
1373
1373
|
_appendGhost: function() {
|
|
1374
1374
|
if (!m) {
|
|
1375
|
-
var t = this.options.fallbackOnBody ? document.body :
|
|
1375
|
+
var t = this.options.fallbackOnBody ? document.body : x, e = T(c, !0, Jt, !0, t), i = this.options;
|
|
1376
1376
|
if (Jt) {
|
|
1377
1377
|
for (P = t; f(P, "position") === "static" && f(P, "transform") === "none" && P !== document; )
|
|
1378
1378
|
P = P.parentNode;
|
|
@@ -1389,8 +1389,8 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
1389
1389
|
this._onDrop();
|
|
1390
1390
|
return;
|
|
1391
1391
|
}
|
|
1392
|
-
k("setupClone", this), g.eventCanceled || (
|
|
1393
|
-
k("clone", i), !g.eventCanceled && (i.options.removeCloneOnHide ||
|
|
1392
|
+
k("setupClone", this), g.eventCanceled || (A = Fi(c), A.removeAttribute("id"), A.draggable = !1, A.style["will-change"] = "", this._hideClone(), B(A, this.options.chosenClass, !1), g.clone = A), i.cloneId = oe(function() {
|
|
1393
|
+
k("clone", i), !g.eventCanceled && (i.options.removeCloneOnHide || x.insertBefore(A, c), i._hideClone(), N({
|
|
1394
1394
|
sortable: i,
|
|
1395
1395
|
name: "clone"
|
|
1396
1396
|
}));
|
|
@@ -1414,7 +1414,7 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
1414
1414
|
target: i,
|
|
1415
1415
|
completed: H,
|
|
1416
1416
|
onMove: function(ai, sn) {
|
|
1417
|
-
return Qt(
|
|
1417
|
+
return Qt(x, e, c, o, ai, T(ai), t, sn);
|
|
1418
1418
|
},
|
|
1419
1419
|
changed: Y
|
|
1420
1420
|
}, rn));
|
|
@@ -1443,22 +1443,22 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
1443
1443
|
return b;
|
|
1444
1444
|
if (c.contains(t.target) || i.animated && i.animatingX && i.animatingY || y._ignoreWhileAnimating === i)
|
|
1445
1445
|
return H(!1);
|
|
1446
|
-
if (ue = !1, d && !l.disabled && (h ? u || (s = C !==
|
|
1446
|
+
if (ue = !1, d && !l.disabled && (h ? u || (s = C !== x) : D === this || (this.lastPutMode = Gt.checkPull(this, d, c, t)) && a.checkPut(this, d, c, t))) {
|
|
1447
1447
|
if (v = this._getDirection(t, i) === "vertical", o = T(c), X("dragOverValid"), g.eventCanceled)
|
|
1448
1448
|
return b;
|
|
1449
1449
|
if (s)
|
|
1450
|
-
return C =
|
|
1450
|
+
return C = x, J(), this._hideClone(), X("revert"), g.eventCanceled || (vt ? x.insertBefore(c, vt) : x.appendChild(c)), H(!0);
|
|
1451
1451
|
var I = ni(e, l.draggable);
|
|
1452
1452
|
if (!I || Wn(t, v, this) && !I.animated) {
|
|
1453
1453
|
if (I === c)
|
|
1454
1454
|
return H(!1);
|
|
1455
|
-
if (I && e === t.target && (i = I), i && (r = T(i)), Qt(
|
|
1455
|
+
if (I && e === t.target && (i = I), i && (r = T(i)), Qt(x, e, c, o, i, r, t, !!i) !== !1)
|
|
1456
1456
|
return J(), I && I.nextSibling ? e.insertBefore(c, I.nextSibling) : e.appendChild(c), C = e, Y(), H(!0);
|
|
1457
1457
|
} else if (I && qn(t, v, this)) {
|
|
1458
1458
|
var ut = Tt(e, 0, l, !0);
|
|
1459
1459
|
if (ut === c)
|
|
1460
1460
|
return H(!1);
|
|
1461
|
-
if (i = ut, r = T(i), Qt(
|
|
1461
|
+
if (i = ut, r = T(i), Qt(x, e, c, o, i, r, t, !1) !== !1)
|
|
1462
1462
|
return J(), e.insertBefore(c, ut), C = e, Y(), H(!0);
|
|
1463
1463
|
} else if (i.parentNode === e) {
|
|
1464
1464
|
r = T(i);
|
|
@@ -1476,7 +1476,7 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
1476
1476
|
wt = i, Ut = W;
|
|
1477
1477
|
var Ot = i.nextElementSibling, rt = !1;
|
|
1478
1478
|
rt = W === 1;
|
|
1479
|
-
var Zt = Qt(
|
|
1479
|
+
var Zt = Qt(x, e, c, o, i, r, t, rt);
|
|
1480
1480
|
if (Zt !== !1)
|
|
1481
1481
|
return (Zt === 1 || Zt === -1) && (rt = Zt === 1), We = !0, setTimeout(jn, 30), J(), rt && !Ot ? e.appendChild(c) : i.parentNode.insertBefore(c, rt ? Ot : i), ot && Ui(ot, 0, Ht - ot.scrollTop), C = c.parentNode, ct !== void 0 && !Kt && (ne = Math.abs(ct - T(i)[Pt])), Y(), H(!0);
|
|
1482
1482
|
}
|
|
@@ -1501,18 +1501,18 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
1501
1501
|
this._nulling();
|
|
1502
1502
|
return;
|
|
1503
1503
|
}
|
|
1504
|
-
$t = !1, Kt = !1, Ft = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Ze(this.cloneId), Ze(this._dragStartId), this.nativeDraggable && (E(document, "drop", this), E(e, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Lt && f(document.body, "user-select", ""), f(c, "transform", ""), t && (kt && (t.cancelable && t.preventDefault(), !i.dropBubble && t.stopPropagation()), m && m.parentNode && m.parentNode.removeChild(m), (
|
|
1504
|
+
$t = !1, Kt = !1, Ft = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Ze(this.cloneId), Ze(this._dragStartId), this.nativeDraggable && (E(document, "drop", this), E(e, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Lt && f(document.body, "user-select", ""), f(c, "transform", ""), t && (kt && (t.cancelable && t.preventDefault(), !i.dropBubble && t.stopPropagation()), m && m.parentNode && m.parentNode.removeChild(m), (x === C || D && D.lastPutMode !== "clone") && A && A.parentNode && A.parentNode.removeChild(A), c && (this.nativeDraggable && E(c, "dragend", this), Ue(c), c.style["will-change"] = "", kt && !$t && B(c, D ? D.options.ghostClass : this.options.ghostClass, !1), B(c, this.options.chosenClass, !1), N({
|
|
1505
1505
|
sortable: this,
|
|
1506
1506
|
name: "unchoose",
|
|
1507
1507
|
toEl: C,
|
|
1508
1508
|
newIndex: null,
|
|
1509
1509
|
newDraggableIndex: null,
|
|
1510
1510
|
originalEvent: t
|
|
1511
|
-
}),
|
|
1511
|
+
}), x !== C ? (R >= 0 && (N({
|
|
1512
1512
|
rootEl: C,
|
|
1513
1513
|
name: "add",
|
|
1514
1514
|
toEl: C,
|
|
1515
|
-
fromEl:
|
|
1515
|
+
fromEl: x,
|
|
1516
1516
|
originalEvent: t
|
|
1517
1517
|
}), N({
|
|
1518
1518
|
sortable: this,
|
|
@@ -1523,7 +1523,7 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
1523
1523
|
rootEl: C,
|
|
1524
1524
|
name: "sort",
|
|
1525
1525
|
toEl: C,
|
|
1526
|
-
fromEl:
|
|
1526
|
+
fromEl: x,
|
|
1527
1527
|
originalEvent: t
|
|
1528
1528
|
}), N({
|
|
1529
1529
|
sortable: this,
|
|
@@ -1548,7 +1548,7 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
1548
1548
|
}), this.save()))), this._nulling();
|
|
1549
1549
|
},
|
|
1550
1550
|
_nulling: function() {
|
|
1551
|
-
k("nulling", this),
|
|
1551
|
+
k("nulling", this), x = c = C = m = vt = A = ie = lt = ft = j = kt = R = st = xt = Rt = wt = Ut = D = Gt = g.dragged = g.ghost = g.clone = g.active = null, he.forEach(function(t) {
|
|
1552
1552
|
t.checked = !0;
|
|
1553
1553
|
}), he.length = Le = Be = 0;
|
|
1554
1554
|
},
|
|
@@ -1632,7 +1632,7 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
1632
1632
|
if (!lt) {
|
|
1633
1633
|
if (k("hideClone", this), g.eventCanceled)
|
|
1634
1634
|
return;
|
|
1635
|
-
f(
|
|
1635
|
+
f(A, "display", "none"), this.options.removeCloneOnHide && A.parentNode && A.parentNode.removeChild(A), lt = !0;
|
|
1636
1636
|
}
|
|
1637
1637
|
},
|
|
1638
1638
|
_showClone: function(t) {
|
|
@@ -1643,7 +1643,7 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
1643
1643
|
if (lt) {
|
|
1644
1644
|
if (k("showClone", this), g.eventCanceled)
|
|
1645
1645
|
return;
|
|
1646
|
-
c.parentNode ==
|
|
1646
|
+
c.parentNode == x && !this.options.group.revertClone ? x.insertBefore(A, c) : vt ? x.insertBefore(A, vt) : x.appendChild(A), this.options.group.revertClone && this.animate(c, A), f(A, "display", ""), lt = !1;
|
|
1647
1647
|
}
|
|
1648
1648
|
}
|
|
1649
1649
|
};
|
|
@@ -1941,7 +1941,7 @@ const si = ei(class extends ii {
|
|
|
1941
1941
|
return n;
|
|
1942
1942
|
}
|
|
1943
1943
|
update(n, [t]) {
|
|
1944
|
-
if (t === q || t ===
|
|
1944
|
+
if (t === q || t === $)
|
|
1945
1945
|
return t;
|
|
1946
1946
|
const e = n.element, i = n.name;
|
|
1947
1947
|
if (n.type === mt.PROPERTY) {
|
|
@@ -1962,11 +1962,11 @@ const si = ei(class extends ii {
|
|
|
1962
1962
|
*/
|
|
1963
1963
|
class Qe extends ii {
|
|
1964
1964
|
constructor(t) {
|
|
1965
|
-
if (super(t), this.et =
|
|
1965
|
+
if (super(t), this.et = $, t.type !== mt.CHILD)
|
|
1966
1966
|
throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
|
1967
1967
|
}
|
|
1968
1968
|
render(t) {
|
|
1969
|
-
if (t ===
|
|
1969
|
+
if (t === $ || t == null)
|
|
1970
1970
|
return this.ft = void 0, this.et = t;
|
|
1971
1971
|
if (t === q)
|
|
1972
1972
|
return t;
|
|
@@ -2172,7 +2172,7 @@ button {
|
|
|
2172
2172
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
2173
2173
|
}
|
|
2174
2174
|
|
|
2175
|
-
button:hover {
|
|
2175
|
+
button:hover:not([disabled]):not(.icon) {
|
|
2176
2176
|
box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12);
|
|
2177
2177
|
background: var(--primary-color-hover);
|
|
2178
2178
|
}
|
|
@@ -2181,6 +2181,10 @@ button, button:active {
|
|
|
2181
2181
|
background: var(--primary-color);
|
|
2182
2182
|
}
|
|
2183
2183
|
|
|
2184
|
+
button[disabled] {
|
|
2185
|
+
opacity: 0.5;
|
|
2186
|
+
}
|
|
2187
|
+
|
|
2184
2188
|
button.outline {
|
|
2185
2189
|
background: transparent;
|
|
2186
2190
|
box-shadow: none;
|
|
@@ -2199,6 +2203,7 @@ button.icon {
|
|
|
2199
2203
|
padding: 0;
|
|
2200
2204
|
border-radius: 50%;
|
|
2201
2205
|
width: 24px;
|
|
2206
|
+
height: 24px;
|
|
2202
2207
|
text-indent: -9999px;
|
|
2203
2208
|
}
|
|
2204
2209
|
|
|
@@ -2395,11 +2400,13 @@ class Ji extends z {
|
|
|
2395
2400
|
);
|
|
2396
2401
|
}}
|
|
2397
2402
|
>
|
|
2398
|
-
x
|
|
2403
|
+
${this.unstyled ? "x" : $}
|
|
2399
2404
|
</button>
|
|
2400
2405
|
`);
|
|
2401
2406
|
L(this, "_sortButton", _`
|
|
2402
|
-
<button class="sort-icon icon drag-handle">
|
|
2407
|
+
<button class="sort-icon icon drag-handle">
|
|
2408
|
+
${this.unstyled ? "sort" : $}
|
|
2409
|
+
</button>
|
|
2403
2410
|
`);
|
|
2404
2411
|
M(this, ye, "");
|
|
2405
2412
|
M(this, be, `
|
|
@@ -2543,7 +2550,9 @@ class Ji extends z {
|
|
|
2543
2550
|
${se(
|
|
2544
2551
|
this._parseTools(this.tools),
|
|
2545
2552
|
(l) => _`
|
|
2546
|
-
<button slot="${l}-icon" class="icon"
|
|
2553
|
+
<button slot="${l}-icon" class="icon">
|
|
2554
|
+
${this.unstyled ? l : $}
|
|
2555
|
+
</button>
|
|
2547
2556
|
`
|
|
2548
2557
|
)}
|
|
2549
2558
|
|
|
@@ -2732,7 +2741,7 @@ class tn extends z {
|
|
|
2732
2741
|
${et(
|
|
2733
2742
|
this.group,
|
|
2734
2743
|
() => _`
|
|
2735
|
-
<details open=${this.group.get("layerControlExpand") ||
|
|
2744
|
+
<details open=${this.group.get("layerControlExpand") || $}>
|
|
2736
2745
|
<summary>
|
|
2737
2746
|
<eox-layercontrol-layer
|
|
2738
2747
|
.layer=${this.group}
|
|
@@ -12,7 +12,7 @@ var oo=Object.defineProperty;var ro=(S,$,O)=>$ in S?oo(S,$,{enumerable:!0,config
|
|
|
12
12
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13
13
|
*/var Ie;const Qt=window,xt=Qt.trustedTypes,gi=xt?xt.createPolicy("lit-html",{createHTML:n=>n}):void 0,Ve="$lit$",at=`lit$${(Math.random()+"").slice(9)}$`,mi="?"+at,un=`<${mi}>`,pt=document,Ot=()=>pt.createComment(""),Mt=n=>n===null||typeof n!="object"&&typeof n!="function",vi=Array.isArray,cn=n=>vi(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",Le=`[
|
|
14
14
|
\f\r]`,Nt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,yi=/-->/g,bi=/>/g,ft=RegExp(`>|${Le}(?:([^\\s"'>=/]+)(${Le}*=${Le}*(?:[^
|
|
15
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Ei=/'/g,wi=/"/g,_i=/^(?:script|style|textarea|title)$/i,hn=n=>(t,...e)=>({_$litType$:n,strings:t,values:e}),_=hn(1),q=Symbol.for("lit-noChange"),
|
|
15
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Ei=/'/g,wi=/"/g,_i=/^(?:script|style|textarea|title)$/i,hn=n=>(t,...e)=>({_$litType$:n,strings:t,values:e}),_=hn(1),q=Symbol.for("lit-noChange"),x=Symbol.for("lit-nothing"),$i=new WeakMap,gt=pt.createTreeWalker(pt,129,null,!1);function xi(n,t){if(!Array.isArray(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return gi!==void 0?gi.createHTML(t):t}const pn=(n,t)=>{const e=n.length-1,i=[];let o,r=t===2?"<svg>":"",s=Nt;for(let l=0;l<e;l++){const a=n[l];let d,h,u=-1,p=0;for(;p<a.length&&(s.lastIndex=p,h=s.exec(a),h!==null);)p=s.lastIndex,s===Nt?h[1]==="!--"?s=yi:h[1]!==void 0?s=bi:h[2]!==void 0?(_i.test(h[2])&&(o=RegExp("</"+h[2],"g")),s=ft):h[3]!==void 0&&(s=ft):s===ft?h[0]===">"?(s=o??Nt,u=-1):h[1]===void 0?u=-2:(u=s.lastIndex-h[2].length,d=h[1],s=h[3]===void 0?ft:h[3]==='"'?wi:Ei):s===wi||s===Ei?s=ft:s===yi||s===bi?s=Nt:(s=ft,o=void 0);const v=s===ft&&n[l+1].startsWith("/>")?" ":"";r+=s===Nt?a+un:u>=0?(i.push(d),a.slice(0,u)+Ve+a.slice(u)+at+v):a+at+(u===-2?(i.push(void 0),l):v)}return[xi(n,r+(n[e]||"<?>")+(t===2?"</svg>":"")),i]};class kt{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let r=0,s=0;const l=t.length-1,a=this.parts,[d,h]=pn(t,e);if(this.el=kt.createElement(d,i),gt.currentNode=this.el.content,e===2){const u=this.el.content,p=u.firstChild;p.remove(),u.append(...p.childNodes)}for(;(o=gt.nextNode())!==null&&a.length<l;){if(o.nodeType===1){if(o.hasAttributes()){const u=[];for(const p of o.getAttributeNames())if(p.endsWith(Ve)||p.startsWith(at)){const v=h[s++];if(u.push(p),v!==void 0){const y=o.getAttribute(v.toLowerCase()+Ve).split(at),b=/([.?@])?(.*)/.exec(v);a.push({type:1,index:r,name:b[2],strings:y,ctor:b[1]==="."?gn:b[1]==="?"?vn:b[1]==="@"?yn:te})}else a.push({type:6,index:r})}for(const p of u)o.removeAttribute(p)}if(_i.test(o.tagName)){const u=o.textContent.split(at),p=u.length-1;if(p>0){o.textContent=xt?xt.emptyScript:"";for(let v=0;v<p;v++)o.append(u[v],Ot()),gt.nextNode(),a.push({type:2,index:++r});o.append(u[p],Ot())}}}else if(o.nodeType===8)if(o.data===mi)a.push({type:2,index:r});else{let u=-1;for(;(u=o.data.indexOf(at,u+1))!==-1;)a.push({type:7,index:r}),u+=at.length-1}r++}}static createElement(t,e){const i=pt.createElement("template");return i.innerHTML=t,i}}function At(n,t,e=n,i){var o,r,s,l;if(t===q)return t;let a=i!==void 0?(o=e._$Co)===null||o===void 0?void 0:o[i]:e._$Cl;const d=Mt(t)?void 0:t._$litDirective$;return(a==null?void 0:a.constructor)!==d&&((r=a==null?void 0:a._$AO)===null||r===void 0||r.call(a,!1),d===void 0?a=void 0:(a=new d(n),a._$AT(n,e,i)),i!==void 0?((s=(l=e)._$Co)!==null&&s!==void 0?s:l._$Co=[])[i]=a:e._$Cl=a),a!==void 0&&(t=At(n,a._$AS(n,t.values),a,i)),t}class fn{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:o}=this._$AD,r=((e=t==null?void 0:t.creationScope)!==null&&e!==void 0?e:pt).importNode(i,!0);gt.currentNode=r;let s=gt.nextNode(),l=0,a=0,d=o[0];for(;d!==void 0;){if(l===d.index){let h;d.type===2?h=new It(s,s.nextSibling,this,t):d.type===1?h=new d.ctor(s,d.name,d.strings,this,t):d.type===6&&(h=new bn(s,this,t)),this._$AV.push(h),d=o[++a]}l!==(d==null?void 0:d.index)&&(s=gt.nextNode(),l++)}return gt.currentNode=pt,r}v(t){let e=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class It{constructor(t,e,i,o){var r;this.type=2,this._$AH=x,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cp=(r=o==null?void 0:o.isConnected)===null||r===void 0||r}get _$AU(){var t,e;return(e=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&e!==void 0?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=At(this,t,e),Mt(t)?t===x||t==null||t===""?(this._$AH!==x&&this._$AR(),this._$AH=x):t!==this._$AH&&t!==q&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):cn(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==x&&Mt(this._$AH)?this._$AA.nextSibling.data=t:this.$(pt.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:o}=t,r=typeof o=="number"?this._$AC(t):(o.el===void 0&&(o.el=kt.createElement(xi(o.h,o.h[0]),this.options)),o);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===r)this._$AH.v(i);else{const s=new fn(r,this),l=s.u(this.options);s.v(i),this.$(l),this._$AH=s}}_$AC(t){let e=$i.get(t.strings);return e===void 0&&$i.set(t.strings,e=new kt(t)),e}T(t){vi(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const r of t)o===e.length?e.push(i=new It(this.k(Ot()),this.k(Ot()),this,this.options)):i=e[o],i._$AI(r),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for((i=this._$AP)===null||i===void 0||i.call(this,!1,!0,e);t&&t!==this._$AB;){const o=t.nextSibling;t.remove(),t=o}}setConnected(t){var e;this._$AM===void 0&&(this._$Cp=t,(e=this._$AP)===null||e===void 0||e.call(this,t))}}class te{constructor(t,e,i,o,r){this.type=1,this._$AH=x,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=r,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=x}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const r=this.strings;let s=!1;if(r===void 0)t=At(this,t,e,0),s=!Mt(t)||t!==this._$AH&&t!==q,s&&(this._$AH=t);else{const l=t;let a,d;for(t=r[0],a=0;a<r.length-1;a++)d=At(this,l[i+a],e,a),d===q&&(d=this._$AH[a]),s||(s=!Mt(d)||d!==this._$AH[a]),d===x?t=x:t!==x&&(t+=(d??"")+r[a+1]),this._$AH[a]=d}s&&!o&&this.j(t)}j(t){t===x?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class gn extends te{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===x?void 0:t}}const mn=xt?xt.emptyScript:"";class vn extends te{constructor(){super(...arguments),this.type=4}j(t){t&&t!==x?this.element.setAttribute(this.name,mn):this.element.removeAttribute(this.name)}}class yn extends te{constructor(t,e,i,o,r){super(t,e,i,o,r),this.type=5}_$AI(t,e=this){var i;if((t=(i=At(this,t,e,0))!==null&&i!==void 0?i:x)===q)return;const o=this._$AH,r=t===x&&o!==x||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==x&&(o===x||r);r&&this.element.removeEventListener(this.name,this,o),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;typeof this._$AH=="function"?this._$AH.call((i=(e=this.options)===null||e===void 0?void 0:e.host)!==null&&i!==void 0?i:this.element,t):this._$AH.handleEvent(t)}}class bn{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){At(this,t)}}const Ai=Qt.litHtmlPolyfillSupport;Ai==null||Ai(kt,It),((Ie=Qt.litHtmlVersions)!==null&&Ie!==void 0?Ie:Qt.litHtmlVersions=[]).push("2.8.0");const En=(n,t,e)=>{var i,o;const r=(i=e==null?void 0:e.renderBefore)!==null&&i!==void 0?i:t;let s=r._$litPart$;if(s===void 0){const l=(o=e==null?void 0:e.renderBefore)!==null&&o!==void 0?o:null;r._$litPart$=s=new It(t.insertBefore(Ot(),l),l,void 0,e??{})}return s._$AI(n),s};/**
|
|
16
16
|
* @license
|
|
17
17
|
* Copyright 2017 Google LLC
|
|
18
18
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -32,20 +32,20 @@ var oo=Object.defineProperty;var ro=(S,$,O)=>$ in S?oo(S,$,{enumerable:!0,config
|
|
|
32
32
|
* @license
|
|
33
33
|
* Copyright 2021 Google LLC
|
|
34
34
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
35
|
-
*/const $n=Ue(class extends Fe{constructor(){super(...arguments),this.key=
|
|
35
|
+
*/const $n=Ue(class extends Fe{constructor(){super(...arguments),this.key=x}render(n,t){return this.key=n,t}update(n,[t,e]){return t!==this.key&&(Si(n),this.key=t),e}});/**!
|
|
36
36
|
* Sortable 1.15.0
|
|
37
37
|
* @author RubaXa <trash@rubaxa.org>
|
|
38
38
|
* @author owenm <owen23355@gmail.com>
|
|
39
39
|
* @license MIT
|
|
40
|
-
*/function Ti(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),e.push.apply(e,i)}return e}function K(n){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?Ti(Object(e),!0).forEach(function(i){xn(n,i,e[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):Ti(Object(e)).forEach(function(i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(e,i))})}return n}function ee(n){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ee=function(t){return typeof t}:ee=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ee(n)}function xn(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}function it(){return it=Object.assign||function(n){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i])}return n},it.apply(this,arguments)}function An(n,t){if(n==null)return{};var e={},i=Object.keys(n),o,r;for(r=0;r<i.length;r++)o=i[r],!(t.indexOf(o)>=0)&&(e[o]=n[o]);return e}function Cn(n,t){if(n==null)return{};var e=An(n,t),i,o;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(e[i]=n[i])}return e}var Sn="1.15.0";function nt(n){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(n)}var ot=nt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Vt=nt(/Edge/i),Di=nt(/firefox/i),Lt=nt(/safari/i)&&!nt(/chrome/i)&&!nt(/android/i),Pi=nt(/iP(ad|od|hone)/i),Hi=nt(/chrome/i)&&nt(/android/i),Oi={capture:!1,passive:!1};function w(n,t,e){n.addEventListener(t,e,!ot&&Oi)}function E(n,t,e){n.removeEventListener(t,e,!ot&&Oi)}function ie(n,t){if(t){if(t[0]===">"&&(t=t.substring(1)),n)try{if(n.matches)return n.matches(t);if(n.msMatchesSelector)return n.msMatchesSelector(t);if(n.webkitMatchesSelector)return n.webkitMatchesSelector(t)}catch{return!1}return!1}}function Tn(n){return n.host&&n!==document&&n.host.nodeType?n.host:n.parentNode}function J(n,t,e,i){if(n){e=e||document;do{if(t!=null&&(t[0]===">"?n.parentNode===e&&ie(n,t):ie(n,t))||i&&n===e)return n;if(n===e)break}while(n=Tn(n))}return null}var Mi=/\s+/g;function B(n,t,e){if(n&&t)if(n.classList)n.classList[e?"add":"remove"](t);else{var i=(" "+n.className+" ").replace(Mi," ").replace(" "+t+" "," ");n.className=(i+(e?" "+t:"")).replace(Mi," ")}}function f(n,t,e){var i=n&&n.style;if(i){if(e===void 0)return document.defaultView&&document.defaultView.getComputedStyle?e=document.defaultView.getComputedStyle(n,""):n.currentStyle&&(e=n.currentStyle),t===void 0?e:e[t];!(t in i)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),i[t]=e+(typeof e=="string"?"":"px")}}function Ct(n,t){var e="";if(typeof n=="string")e=n;else do{var i=f(n,"transform");i&&i!=="none"&&(e=i+" "+e)}while(!t&&(n=n.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(e)}function Ni(n,t,e){if(n){var i=n.getElementsByTagName(t),o=0,r=i.length;if(e)for(;o<r;o++)e(i[o],o);return i}return[]}function Q(){var n=document.scrollingElement;return n||document.documentElement}function P(n,t,e,i,o){if(!(!n.getBoundingClientRect&&n!==window)){var r,s,l,a,d,h,u;if(n!==window&&n.parentNode&&n!==Q()?(r=n.getBoundingClientRect(),s=r.top,l=r.left,a=r.bottom,d=r.right,h=r.height,u=r.width):(s=0,l=0,a=window.innerHeight,d=window.innerWidth,h=window.innerHeight,u=window.innerWidth),(t||e)&&n!==window&&(o=o||n.parentNode,!ot))do if(o&&o.getBoundingClientRect&&(f(o,"transform")!=="none"||e&&f(o,"position")!=="static")){var p=o.getBoundingClientRect();s-=p.top+parseInt(f(o,"border-top-width")),l-=p.left+parseInt(f(o,"border-left-width")),a=s+r.height,d=l+r.width;break}while(o=o.parentNode);if(i&&n!==window){var v=Ct(o||n),y=v&&v.a,b=v&&v.d;v&&(s/=b,l/=y,u/=y,h/=b,a=s+h,d=l+u)}return{top:s,left:l,bottom:a,right:d,width:u,height:h}}}function ki(n,t,e){for(var i=lt(n,!0),o=P(n)[t];i;){var r=P(i)[e],s=void 0;if(e==="top"||e==="left"?s=o>=r:s=o<=r,!s)return i;if(i===Q())break;i=lt(i,!1)}return!1}function St(n,t,e,i){for(var o=0,r=0,s=n.children;r<s.length;){if(s[r].style.display!=="none"&&s[r]!==g.ghost&&(i||s[r]!==g.dragged)&&J(s[r],e.draggable,n,!1)){if(o===t)return s[r];o++}r++}return null}function ze(n,t){for(var e=n.lastElementChild;e&&(e===g.ghost||f(e,"display")==="none"||t&&!ie(e,t));)e=e.previousElementSibling;return e||null}function j(n,t){var e=0;if(!n||!n.parentNode)return-1;for(;n=n.previousElementSibling;)n.nodeName.toUpperCase()!=="TEMPLATE"&&n!==g.clone&&(!t||ie(n,t))&&e++;return e}function Ii(n){var t=0,e=0,i=Q();if(n)do{var o=Ct(n),r=o.a,s=o.d;t+=n.scrollLeft*r,e+=n.scrollTop*s}while(n!==i&&(n=n.parentNode));return[t,e]}function Dn(n,t){for(var e in n)if(n.hasOwnProperty(e)){for(var i in t)if(t.hasOwnProperty(i)&&t[i]===n[e][i])return Number(e)}return-1}function lt(n,t){if(!n||!n.getBoundingClientRect)return Q();var e=n,i=!1;do if(e.clientWidth<e.scrollWidth||e.clientHeight<e.scrollHeight){var o=f(e);if(e.clientWidth<e.scrollWidth&&(o.overflowX=="auto"||o.overflowX=="scroll")||e.clientHeight<e.scrollHeight&&(o.overflowY=="auto"||o.overflowY=="scroll")){if(!e.getBoundingClientRect||e===document.body)return Q();if(i||t)return e;i=!0}}while(e=e.parentNode);return Q()}function Pn(n,t){if(n&&t)for(var e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);return n}function Xe(n,t){return Math.round(n.top)===Math.round(t.top)&&Math.round(n.left)===Math.round(t.left)&&Math.round(n.height)===Math.round(t.height)&&Math.round(n.width)===Math.round(t.width)}var Bt;function Vi(n,t){return function(){if(!Bt){var e=arguments,i=this;e.length===1?n.call(i,e[0]):n.apply(i,e),Bt=setTimeout(function(){Bt=void 0},t)}}}function Hn(){clearTimeout(Bt),Bt=void 0}function Li(n,t,e){n.scrollLeft+=t,n.scrollTop+=e}function Bi(n){var t=window.Polymer,e=window.jQuery||window.Zepto;return t&&t.dom?t.dom(n).cloneNode(!0):e?e(n).clone(!0)[0]:n.cloneNode(!0)}var R="Sortable"+new Date().getTime();function On(){var n=[],t;return{captureAnimationState:function(){if(n=[],!!this.options.animation){var i=[].slice.call(this.el.children);i.forEach(function(o){if(!(f(o,"display")==="none"||o===g.ghost)){n.push({target:o,rect:P(o)});var r=K({},n[n.length-1].rect);if(o.thisAnimationDuration){var s=Ct(o,!0);s&&(r.top-=s.f,r.left-=s.e)}o.fromRect=r}})}},addAnimationState:function(i){n.push(i)},removeAnimationState:function(i){n.splice(Dn(n,{target:i}),1)},animateAll:function(i){var o=this;if(!this.options.animation){clearTimeout(t),typeof i=="function"&&i();return}var r=!1,s=0;n.forEach(function(l){var a=0,d=l.target,h=d.fromRect,u=P(d),p=d.prevFromRect,v=d.prevToRect,y=l.rect,b=Ct(d,!0);b&&(u.top-=b.f,u.left-=b.e),d.toRect=u,d.thisAnimationDuration&&Xe(p,u)&&!Xe(h,u)&&(y.top-u.top)/(y.left-u.left)===(h.top-u.top)/(h.left-u.left)&&(a=Nn(y,p,v,o.options)),Xe(u,h)||(d.prevFromRect=h,d.prevToRect=u,a||(a=o.options.animation),o.animate(d,y,u,a)),a&&(r=!0,s=Math.max(s,a),clearTimeout(d.animationResetTimer),d.animationResetTimer=setTimeout(function(){d.animationTime=0,d.prevFromRect=null,d.fromRect=null,d.prevToRect=null,d.thisAnimationDuration=null},a),d.thisAnimationDuration=a)}),clearTimeout(t),r?t=setTimeout(function(){typeof i=="function"&&i()},s):typeof i=="function"&&i(),n=[]},animate:function(i,o,r,s){if(s){f(i,"transition",""),f(i,"transform","");var l=Ct(this.el),a=l&&l.a,d=l&&l.d,h=(o.left-r.left)/(a||1),u=(o.top-r.top)/(d||1);i.animatingX=!!h,i.animatingY=!!u,f(i,"transform","translate3d("+h+"px,"+u+"px,0)"),this.forRepaintDummy=Mn(i),f(i,"transition","transform "+s+"ms"+(this.options.easing?" "+this.options.easing:"")),f(i,"transform","translate3d(0,0,0)"),typeof i.animated=="number"&&clearTimeout(i.animated),i.animated=setTimeout(function(){f(i,"transition",""),f(i,"transform",""),i.animated=!1,i.animatingX=!1,i.animatingY=!1},s)}}}}function Mn(n){return n.offsetWidth}function Nn(n,t,e,i){return Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))/Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))*i.animation}var Tt=[],Ye={initializeByDefault:!0},Rt={mount:function(t){for(var e in Ye)Ye.hasOwnProperty(e)&&!(e in t)&&(t[e]=Ye[e]);Tt.forEach(function(i){if(i.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),Tt.push(t)},pluginEvent:function(t,e,i){var o=this;this.eventCanceled=!1,i.cancel=function(){o.eventCanceled=!0};var r=t+"Global";Tt.forEach(function(s){e[s.pluginName]&&(e[s.pluginName][r]&&e[s.pluginName][r](K({sortable:e},i)),e.options[s.pluginName]&&e[s.pluginName][t]&&e[s.pluginName][t](K({sortable:e},i)))})},initializePlugins:function(t,e,i,o){Tt.forEach(function(l){var a=l.pluginName;if(!(!t.options[a]&&!l.initializeByDefault)){var d=new l(t,e,t.options);d.sortable=t,d.options=t.options,t[a]=d,it(i,d.defaults)}});for(var r in t.options)if(t.options.hasOwnProperty(r)){var s=this.modifyOption(t,r,t.options[r]);typeof s<"u"&&(t.options[r]=s)}},getEventProperties:function(t,e){var i={};return Tt.forEach(function(o){typeof o.eventProperties=="function"&&it(i,o.eventProperties.call(e[o.pluginName],t))}),i},modifyOption:function(t,e,i){var o;return Tt.forEach(function(r){t[r.pluginName]&&r.optionListeners&&typeof r.optionListeners[e]=="function"&&(o=r.optionListeners[e].call(t[r.pluginName],i))}),o}};function kn(n){var t=n.sortable,e=n.rootEl,i=n.name,o=n.targetEl,r=n.cloneEl,s=n.toEl,l=n.fromEl,a=n.oldIndex,d=n.newIndex,h=n.oldDraggableIndex,u=n.newDraggableIndex,p=n.originalEvent,v=n.putSortable,y=n.extraEventProperties;if(t=t||e&&e[R],!!t){var b,Z=t.options,rt="on"+i.charAt(0).toUpperCase()+i.substr(1);window.CustomEvent&&!ot&&!Vt?b=new CustomEvent(i,{bubbles:!0,cancelable:!0}):(b=document.createEvent("Event"),b.initEvent(i,!0,!0)),b.to=s||e,b.from=l||e,b.item=o||e,b.clone=r,b.oldIndex=a,b.newIndex=d,b.oldDraggableIndex=h,b.newDraggableIndex=u,b.originalEvent=p,b.pullMode=v?v.lastPutMode:void 0;var k=K(K({},y),Rt.getEventProperties(i,t));for(var G in k)b[G]=k[G];e&&e.dispatchEvent(b),Z[rt]&&Z[rt].call(t,b)}}var In=["evt"],L=function(t,e){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=i.evt,r=Cn(i,In);Rt.pluginEvent.bind(g)(t,e,K({dragEl:c,parentEl:T,ghostEl:m,rootEl:x,nextEl:vt,lastDownEl:ne,cloneEl:C,cloneHidden:dt,dragStarted:Ft,putSortable:H,activeSortable:g.active,originalEvent:o,oldIndex:Dt,oldDraggableIndex:Ut,newIndex:U,newDraggableIndex:ut,hideGhostForTarget:ji,unhideGhostForTarget:qi,cloneNowHidden:function(){dt=!0},cloneNowShown:function(){dt=!1},dispatchSortableEvent:function(l){N({sortable:e,name:l,originalEvent:o})}},r))};function N(n){kn(K({putSortable:H,cloneEl:C,targetEl:c,rootEl:x,oldIndex:Dt,oldDraggableIndex:Ut,newIndex:U,newDraggableIndex:ut},n))}var c,T,m,x,vt,ne,C,dt,Dt,U,Ut,ut,oe,H,Pt=!1,re=!1,se=[],yt,W,je,qe,Ri,Ui,Ft,Ht,zt,Xt=!1,ae=!1,le,M,We=[],Ze=!1,de=[],ue=typeof document<"u",ce=Pi,Fi=Vt||ot?"cssFloat":"float",Vn=ue&&!Hi&&!Pi&&"draggable"in document.createElement("div"),zi=function(){if(ue){if(ot)return!1;var n=document.createElement("x");return n.style.cssText="pointer-events:auto",n.style.pointerEvents==="auto"}}(),Xi=function(t,e){var i=f(t),o=parseInt(i.width)-parseInt(i.paddingLeft)-parseInt(i.paddingRight)-parseInt(i.borderLeftWidth)-parseInt(i.borderRightWidth),r=St(t,0,e),s=St(t,1,e),l=r&&f(r),a=s&&f(s),d=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+P(r).width,h=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+P(s).width;if(i.display==="flex")return i.flexDirection==="column"||i.flexDirection==="column-reverse"?"vertical":"horizontal";if(i.display==="grid")return i.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&l.float&&l.float!=="none"){var u=l.float==="left"?"left":"right";return s&&(a.clear==="both"||a.clear===u)?"vertical":"horizontal"}return r&&(l.display==="block"||l.display==="flex"||l.display==="table"||l.display==="grid"||d>=o&&i[Fi]==="none"||s&&i[Fi]==="none"&&d+h>o)?"vertical":"horizontal"},Ln=function(t,e,i){var o=i?t.left:t.top,r=i?t.right:t.bottom,s=i?t.width:t.height,l=i?e.left:e.top,a=i?e.right:e.bottom,d=i?e.width:e.height;return o===l||r===a||o+s/2===l+d/2},Bn=function(t,e){var i;return se.some(function(o){var r=o[R].options.emptyInsertThreshold;if(!(!r||ze(o))){var s=P(o),l=t>=s.left-r&&t<=s.right+r,a=e>=s.top-r&&e<=s.bottom+r;if(l&&a)return i=o}}),i},Yi=function(t){function e(r,s){return function(l,a,d,h){var u=l.options.group.name&&a.options.group.name&&l.options.group.name===a.options.group.name;if(r==null&&(s||u))return!0;if(r==null||r===!1)return!1;if(s&&r==="clone")return r;if(typeof r=="function")return e(r(l,a,d,h),s)(l,a,d,h);var p=(s?l:a).options.group.name;return r===!0||typeof r=="string"&&r===p||r.join&&r.indexOf(p)>-1}}var i={},o=t.group;(!o||ee(o)!="object")&&(o={name:o}),i.name=o.name,i.checkPull=e(o.pull,!0),i.checkPut=e(o.put),i.revertClone=o.revertClone,t.group=i},ji=function(){!zi&&m&&f(m,"display","none")},qi=function(){!zi&&m&&f(m,"display","")};ue&&!Hi&&document.addEventListener("click",function(n){if(re)return n.preventDefault(),n.stopPropagation&&n.stopPropagation(),n.stopImmediatePropagation&&n.stopImmediatePropagation(),re=!1,!1},!0);var bt=function(t){if(c){t=t.touches?t.touches[0]:t;var e=Bn(t.clientX,t.clientY);if(e){var i={};for(var o in t)t.hasOwnProperty(o)&&(i[o]=t[o]);i.target=i.rootEl=e,i.preventDefault=void 0,i.stopPropagation=void 0,e[R]._onDragOver(i)}}},Rn=function(t){c&&c.parentNode[R]._isOutsideThisEl(t.target)};function g(n,t){if(!(n&&n.nodeType&&n.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(n));this.el=n,this.options=t=it({},t),n[R]=this;var e={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(n.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Xi(n,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(s,l){s.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:g.supportPointer!==!1&&"PointerEvent"in window&&!Lt,emptyInsertThreshold:5};Rt.initializePlugins(this,n,e);for(var i in e)!(i in t)&&(t[i]=e[i]);Yi(t);for(var o in this)o.charAt(0)==="_"&&typeof this[o]=="function"&&(this[o]=this[o].bind(this));this.nativeDraggable=t.forceFallback?!1:Vn,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?w(n,"pointerdown",this._onTapStart):(w(n,"mousedown",this._onTapStart),w(n,"touchstart",this._onTapStart)),this.nativeDraggable&&(w(n,"dragover",this),w(n,"dragenter",this)),se.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),it(this,On())}g.prototype={constructor:g,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(Ht=null)},_getDirection:function(t,e){return typeof this.options.direction=="function"?this.options.direction.call(this,t,e,c):this.options.direction},_onTapStart:function(t){if(t.cancelable){var e=this,i=this.el,o=this.options,r=o.preventOnFilter,s=t.type,l=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,a=(l||t).target,d=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||a,h=o.filter;if(Wn(i),!c&&!(/mousedown|pointerdown/.test(s)&&t.button!==0||o.disabled)&&!d.isContentEditable&&!(!this.nativeDraggable&&Lt&&a&&a.tagName.toUpperCase()==="SELECT")&&(a=J(a,o.draggable,i,!1),!(a&&a.animated)&&ne!==a)){if(Dt=j(a),Ut=j(a,o.draggable),typeof h=="function"){if(h.call(this,t,a,this)){N({sortable:e,rootEl:d,name:"filter",targetEl:a,toEl:i,fromEl:i}),L("filter",e,{evt:t}),r&&t.cancelable&&t.preventDefault();return}}else if(h&&(h=h.split(",").some(function(u){if(u=J(d,u.trim(),i,!1),u)return N({sortable:e,rootEl:u,name:"filter",targetEl:a,fromEl:i,toEl:i}),L("filter",e,{evt:t}),!0}),h)){r&&t.cancelable&&t.preventDefault();return}o.handle&&!J(d,o.handle,i,!1)||this._prepareDragStart(t,l,a)}}},_prepareDragStart:function(t,e,i){var o=this,r=o.el,s=o.options,l=r.ownerDocument,a;if(i&&!c&&i.parentNode===r){var d=P(i);if(x=r,c=i,T=c.parentNode,vt=c.nextSibling,ne=i,oe=s.group,g.dragged=c,yt={target:c,clientX:(e||t).clientX,clientY:(e||t).clientY},Ri=yt.clientX-d.left,Ui=yt.clientY-d.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,c.style["will-change"]="all",a=function(){if(L("delayEnded",o,{evt:t}),g.eventCanceled){o._onDrop();return}o._disableDelayedDragEvents(),!Di&&o.nativeDraggable&&(c.draggable=!0),o._triggerDragStart(t,e),N({sortable:o,name:"choose",originalEvent:t}),B(c,s.chosenClass,!0)},s.ignore.split(",").forEach(function(h){Ni(c,h.trim(),Ge)}),w(l,"dragover",bt),w(l,"mousemove",bt),w(l,"touchmove",bt),w(l,"mouseup",o._onDrop),w(l,"touchend",o._onDrop),w(l,"touchcancel",o._onDrop),Di&&this.nativeDraggable&&(this.options.touchStartThreshold=4,c.draggable=!0),L("delayStart",this,{evt:t}),s.delay&&(!s.delayOnTouchOnly||e)&&(!this.nativeDraggable||!(Vt||ot))){if(g.eventCanceled){this._onDrop();return}w(l,"mouseup",o._disableDelayedDrag),w(l,"touchend",o._disableDelayedDrag),w(l,"touchcancel",o._disableDelayedDrag),w(l,"mousemove",o._delayedDragTouchMoveHandler),w(l,"touchmove",o._delayedDragTouchMoveHandler),s.supportPointer&&w(l,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(a,s.delay)}else a()}},_delayedDragTouchMoveHandler:function(t){var e=t.touches?t.touches[0]:t;Math.max(Math.abs(e.clientX-this._lastX),Math.abs(e.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){c&&Ge(c),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;E(t,"mouseup",this._disableDelayedDrag),E(t,"touchend",this._disableDelayedDrag),E(t,"touchcancel",this._disableDelayedDrag),E(t,"mousemove",this._delayedDragTouchMoveHandler),E(t,"touchmove",this._delayedDragTouchMoveHandler),E(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||t.pointerType=="touch"&&t,!this.nativeDraggable||e?this.options.supportPointer?w(document,"pointermove",this._onTouchMove):e?w(document,"touchmove",this._onTouchMove):w(document,"mousemove",this._onTouchMove):(w(c,"dragend",this),w(x,"dragstart",this._onDragStart));try{document.selection?pe(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,e){if(Pt=!1,x&&c){L("dragStarted",this,{evt:e}),this.nativeDraggable&&w(document,"dragover",Rn);var i=this.options;!t&&B(c,i.dragClass,!1),B(c,i.ghostClass,!0),g.active=this,t&&this._appendGhost(),N({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(W){this._lastX=W.clientX,this._lastY=W.clientY,ji();for(var t=document.elementFromPoint(W.clientX,W.clientY),e=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(W.clientX,W.clientY),t!==e);)e=t;if(c.parentNode[R]._isOutsideThisEl(t),e)do{if(e[R]){var i=void 0;if(i=e[R]._onDragOver({clientX:W.clientX,clientY:W.clientY,target:t,rootEl:e}),i&&!this.options.dragoverBubble)break}t=e}while(e=e.parentNode);qi()}},_onTouchMove:function(t){if(yt){var e=this.options,i=e.fallbackTolerance,o=e.fallbackOffset,r=t.touches?t.touches[0]:t,s=m&&Ct(m,!0),l=m&&s&&s.a,a=m&&s&&s.d,d=ce&&M&&Ii(M),h=(r.clientX-yt.clientX+o.x)/(l||1)+(d?d[0]-We[0]:0)/(l||1),u=(r.clientY-yt.clientY+o.y)/(a||1)+(d?d[1]-We[1]:0)/(a||1);if(!g.active&&!Pt){if(i&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<i)return;this._onDragStart(t,!0)}if(m){s?(s.e+=h-(je||0),s.f+=u-(qe||0)):s={a:1,b:0,c:0,d:1,e:h,f:u};var p="matrix(".concat(s.a,",").concat(s.b,",").concat(s.c,",").concat(s.d,",").concat(s.e,",").concat(s.f,")");f(m,"webkitTransform",p),f(m,"mozTransform",p),f(m,"msTransform",p),f(m,"transform",p),je=h,qe=u,W=r}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!m){var t=this.options.fallbackOnBody?document.body:x,e=P(c,!0,ce,!0,t),i=this.options;if(ce){for(M=t;f(M,"position")==="static"&&f(M,"transform")==="none"&&M!==document;)M=M.parentNode;M!==document.body&&M!==document.documentElement?(M===document&&(M=Q()),e.top+=M.scrollTop,e.left+=M.scrollLeft):M=Q(),We=Ii(M)}m=c.cloneNode(!0),B(m,i.ghostClass,!1),B(m,i.fallbackClass,!0),B(m,i.dragClass,!0),f(m,"transition",""),f(m,"transform",""),f(m,"box-sizing","border-box"),f(m,"margin",0),f(m,"top",e.top),f(m,"left",e.left),f(m,"width",e.width),f(m,"height",e.height),f(m,"opacity","0.8"),f(m,"position",ce?"absolute":"fixed"),f(m,"zIndex","100000"),f(m,"pointerEvents","none"),g.ghost=m,t.appendChild(m),f(m,"transform-origin",Ri/parseInt(m.style.width)*100+"% "+Ui/parseInt(m.style.height)*100+"%")}},_onDragStart:function(t,e){var i=this,o=t.dataTransfer,r=i.options;if(L("dragStart",this,{evt:t}),g.eventCanceled){this._onDrop();return}L("setupClone",this),g.eventCanceled||(C=Bi(c),C.removeAttribute("id"),C.draggable=!1,C.style["will-change"]="",this._hideClone(),B(C,this.options.chosenClass,!1),g.clone=C),i.cloneId=pe(function(){L("clone",i),!g.eventCanceled&&(i.options.removeCloneOnHide||x.insertBefore(C,c),i._hideClone(),N({sortable:i,name:"clone"}))}),!e&&B(c,r.dragClass,!0),e?(re=!0,i._loopId=setInterval(i._emulateDragOver,50)):(E(document,"mouseup",i._onDrop),E(document,"touchend",i._onDrop),E(document,"touchcancel",i._onDrop),o&&(o.effectAllowed="move",r.setData&&r.setData.call(i,o,c)),w(document,"drop",i),f(c,"transform","translateZ(0)")),Pt=!0,i._dragStartId=pe(i._dragStarted.bind(i,e,t)),w(document,"selectstart",i),Ft=!0,Lt&&f(document.body,"user-select","none")},_onDragOver:function(t){var e=this.el,i=t.target,o,r,s,l=this.options,a=l.group,d=g.active,h=oe===a,u=l.sort,p=H||d,v,y=this,b=!1;if(Ze)return;function Z(Kt,io){L(Kt,y,K({evt:t,isOwner:h,axis:v?"vertical":"horizontal",revert:s,dragRect:o,targetRect:r,canSort:u,fromSortable:p,target:i,completed:k,onMove:function(rn,no){return he(x,e,c,o,rn,P(rn),t,no)},changed:G},io))}function rt(){Z("dragOverAnimationCapture"),y.captureAnimationState(),y!==p&&p.captureAnimationState()}function k(Kt){return Z("dragOverCompleted",{insertion:Kt}),Kt&&(h?d._hideClone():d._showClone(y),y!==p&&(B(c,H?H.options.ghostClass:d.options.ghostClass,!1),B(c,l.ghostClass,!0)),H!==y&&y!==g.active?H=y:y===g.active&&H&&(H=null),p===y&&(y._ignoreWhileAnimating=i),y.animateAll(function(){Z("dragOverAnimationComplete"),y._ignoreWhileAnimating=null}),y!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(i===c&&!c.animated||i===e&&!i.animated)&&(Ht=null),!l.dragoverBubble&&!t.rootEl&&i!==document&&(c.parentNode[R]._isOutsideThisEl(t.target),!Kt&&bt(t)),!l.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),b=!0}function G(){U=j(c),ut=j(c,l.draggable),N({sortable:y,name:"change",toEl:e,newIndex:U,newDraggableIndex:ut,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),i=J(i,l.draggable,e,!0),Z("dragOver"),g.eventCanceled)return b;if(c.contains(t.target)||i.animated&&i.animatingX&&i.animatingY||y._ignoreWhileAnimating===i)return k(!1);if(re=!1,d&&!l.disabled&&(h?u||(s=T!==x):H===this||(this.lastPutMode=oe.checkPull(this,d,c,t))&&a.checkPut(this,d,c,t))){if(v=this._getDirection(t,i)==="vertical",o=P(c),Z("dragOverValid"),g.eventCanceled)return b;if(s)return T=x,rt(),this._hideClone(),Z("revert"),g.eventCanceled||(vt?x.insertBefore(c,vt):x.appendChild(c)),k(!0);var F=ze(e,l.draggable);if(!F||Xn(t,v,this)&&!F.animated){if(F===c)return k(!1);if(F&&e===t.target&&(i=F),i&&(r=P(i)),he(x,e,c,o,i,r,t,!!i)!==!1)return rt(),F&&F.nextSibling?e.insertBefore(c,F.nextSibling):e.appendChild(c),T=e,G(),k(!0)}else if(F&&zn(t,v,this)){var Et=St(e,0,l,!0);if(Et===c)return k(!1);if(i=Et,r=P(i),he(x,e,c,o,i,r,t,!1)!==!1)return rt(),e.insertBefore(c,Et),T=e,G(),k(!0)}else if(i.parentNode===e){r=P(i);var tt=0,wt,qt=c.parentNode!==e,z=!Ln(c.animated&&c.toRect||o,i.animated&&i.toRect||r,v),Wt=v?"top":"left",ct=ki(i,"top","top")||ki(c,"top","top"),Zt=ct?ct.scrollTop:void 0;Ht!==i&&(wt=r[Wt],Xt=!1,ae=!z&&l.invertSwap||qt),tt=Yn(t,i,r,v,z?1:l.swapThreshold,l.invertedSwapThreshold==null?l.swapThreshold:l.invertedSwapThreshold,ae,Ht===i);var st;if(tt!==0){var _t=j(c);do _t-=tt,st=T.children[_t];while(st&&(f(st,"display")==="none"||st===m))}if(tt===0||st===i)return k(!1);Ht=i,zt=tt;var Gt=i.nextElementSibling,ht=!1;ht=tt===1;var He=he(x,e,c,o,i,r,t,ht);if(He!==!1)return(He===1||He===-1)&&(ht=He===1),Ze=!0,setTimeout(Fn,30),rt(),ht&&!Gt?e.appendChild(c):i.parentNode.insertBefore(c,ht?Gt:i),ct&&Li(ct,0,Zt-ct.scrollTop),T=c.parentNode,wt!==void 0&&!ae&&(le=Math.abs(wt-P(i)[Wt])),G(),k(!0)}if(e.contains(c))return k(!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",bt),E(document,"mousemove",bt),E(document,"touchmove",bt)},_offUpEvents:function(){var t=this.el.ownerDocument;E(t,"mouseup",this._onDrop),E(t,"touchend",this._onDrop),E(t,"pointerup",this._onDrop),E(t,"touchcancel",this._onDrop),E(document,"selectstart",this)},_onDrop:function(t){var e=this.el,i=this.options;if(U=j(c),ut=j(c,i.draggable),L("drop",this,{evt:t}),T=c&&c.parentNode,U=j(c),ut=j(c,i.draggable),g.eventCanceled){this._nulling();return}Pt=!1,ae=!1,Xt=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Ke(this.cloneId),Ke(this._dragStartId),this.nativeDraggable&&(E(document,"drop",this),E(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Lt&&f(document.body,"user-select",""),f(c,"transform",""),t&&(Ft&&(t.cancelable&&t.preventDefault(),!i.dropBubble&&t.stopPropagation()),m&&m.parentNode&&m.parentNode.removeChild(m),(x===T||H&&H.lastPutMode!=="clone")&&C&&C.parentNode&&C.parentNode.removeChild(C),c&&(this.nativeDraggable&&E(c,"dragend",this),Ge(c),c.style["will-change"]="",Ft&&!Pt&&B(c,H?H.options.ghostClass:this.options.ghostClass,!1),B(c,this.options.chosenClass,!1),N({sortable:this,name:"unchoose",toEl:T,newIndex:null,newDraggableIndex:null,originalEvent:t}),x!==T?(U>=0&&(N({rootEl:T,name:"add",toEl:T,fromEl:x,originalEvent:t}),N({sortable:this,name:"remove",toEl:T,originalEvent:t}),N({rootEl:T,name:"sort",toEl:T,fromEl:x,originalEvent:t}),N({sortable:this,name:"sort",toEl:T,originalEvent:t})),H&&H.save()):U!==Dt&&U>=0&&(N({sortable:this,name:"update",toEl:T,originalEvent:t}),N({sortable:this,name:"sort",toEl:T,originalEvent:t})),g.active&&((U==null||U===-1)&&(U=Dt,ut=Ut),N({sortable:this,name:"end",toEl:T,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){L("nulling",this),x=c=T=m=vt=C=ne=dt=yt=W=Ft=U=ut=Dt=Ut=Ht=zt=H=oe=g.dragged=g.ghost=g.clone=g.active=null,de.forEach(function(t){t.checked=!0}),de.length=je=qe=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":c&&(this._onDragOver(t),Un(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],e,i=this.el.children,o=0,r=i.length,s=this.options;o<r;o++)e=i[o],J(e,s.draggable,this.el,!1)&&t.push(e.getAttribute(s.dataIdAttr)||qn(e));return t},sort:function(t,e){var i={},o=this.el;this.toArray().forEach(function(r,s){var l=o.children[s];J(l,this.options.draggable,o,!1)&&(i[r]=l)},this),e&&this.captureAnimationState(),t.forEach(function(r){i[r]&&(o.removeChild(i[r]),o.appendChild(i[r]))}),e&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,e){return J(t,e||this.options.draggable,this.el,!1)},option:function(t,e){var i=this.options;if(e===void 0)return i[t];var o=Rt.modifyOption(this,t,e);typeof o<"u"?i[t]=o:i[t]=e,t==="group"&&Yi(i)},destroy:function(){L("destroy",this);var t=this.el;t[R]=null,E(t,"mousedown",this._onTapStart),E(t,"touchstart",this._onTapStart),E(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(E(t,"dragover",this),E(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(e){e.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),se.splice(se.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!dt){if(L("hideClone",this),g.eventCanceled)return;f(C,"display","none"),this.options.removeCloneOnHide&&C.parentNode&&C.parentNode.removeChild(C),dt=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(dt){if(L("showClone",this),g.eventCanceled)return;c.parentNode==x&&!this.options.group.revertClone?x.insertBefore(C,c):vt?x.insertBefore(C,vt):x.appendChild(C),this.options.group.revertClone&&this.animate(c,C),f(C,"display",""),dt=!1}}};function Un(n){n.dataTransfer&&(n.dataTransfer.dropEffect="move"),n.cancelable&&n.preventDefault()}function he(n,t,e,i,o,r,s,l){var a,d=n[R],h=d.options.onMove,u;return window.CustomEvent&&!ot&&!Vt?a=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(a=document.createEvent("Event"),a.initEvent("move",!0,!0)),a.to=t,a.from=n,a.dragged=e,a.draggedRect=i,a.related=o||t,a.relatedRect=r||P(t),a.willInsertAfter=l,a.originalEvent=s,n.dispatchEvent(a),h&&(u=h.call(d,a,s)),u}function Ge(n){n.draggable=!1}function Fn(){Ze=!1}function zn(n,t,e){var i=P(St(e.el,0,e.options,!0)),o=10;return t?n.clientX<i.left-o||n.clientY<i.top&&n.clientX<i.right:n.clientY<i.top-o||n.clientY<i.bottom&&n.clientX<i.left}function Xn(n,t,e){var i=P(ze(e.el,e.options.draggable)),o=10;return t?n.clientX>i.right+o||n.clientX<=i.right&&n.clientY>i.bottom&&n.clientX>=i.left:n.clientX>i.right&&n.clientY>i.top||n.clientX<=i.right&&n.clientY>i.bottom+o}function Yn(n,t,e,i,o,r,s,l){var a=i?n.clientY:n.clientX,d=i?e.height:e.width,h=i?e.top:e.left,u=i?e.bottom:e.right,p=!1;if(!s){if(l&&le<d*o){if(!Xt&&(zt===1?a>h+d*r/2:a<u-d*r/2)&&(Xt=!0),Xt)p=!0;else if(zt===1?a<h+le:a>u-le)return-zt}else if(a>h+d*(1-o)/2&&a<u-d*(1-o)/2)return jn(t)}return p=p||s,p&&(a<h+d*r/2||a>u-d*r/2)?a>h+d/2?1:-1:0}function jn(n){return j(c)<j(n)?1:-1}function qn(n){for(var t=n.tagName+n.className+n.src+n.href+n.textContent,e=t.length,i=0;e--;)i+=t.charCodeAt(e);return i.toString(36)}function Wn(n){de.length=0;for(var t=n.getElementsByTagName("input"),e=t.length;e--;){var i=t[e];i.checked&&de.push(i)}}function pe(n){return setTimeout(n,0)}function Ke(n){return clearTimeout(n)}ue&&w(document,"touchmove",function(n){(g.active||Pt)&&n.cancelable&&n.preventDefault()}),g.utils={on:w,off:E,css:f,find:Ni,is:function(t,e){return!!J(t,e,t,!1)},extend:Pn,throttle:Vi,closest:J,toggleClass:B,clone:Bi,index:j,nextTick:pe,cancelNextTick:Ke,detectDirection:Xi,getChild:St},g.get=function(n){return n[R]},g.mount=function(){for(var n=arguments.length,t=new Array(n),e=0;e<n;e++)t[e]=arguments[e];t[0].constructor===Array&&(t=t[0]),t.forEach(function(i){if(!i.prototype||!i.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(i));i.utils&&(g.utils=K(K({},g.utils),i.utils)),Rt.mount(i)})},g.create=function(n,t){return new g(n,t)},g.version=Sn;var D=[],Yt,Je,Qe=!1,ti,ei,fe,jt;function Zn(){function n(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var t in this)t.charAt(0)==="_"&&typeof this[t]=="function"&&(this[t]=this[t].bind(this))}return n.prototype={dragStarted:function(e){var i=e.originalEvent;this.sortable.nativeDraggable?w(document,"dragover",this._handleAutoScroll):this.options.supportPointer?w(document,"pointermove",this._handleFallbackAutoScroll):i.touches?w(document,"touchmove",this._handleFallbackAutoScroll):w(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var i=e.originalEvent;!this.options.dragOverBubble&&!i.rootEl&&this._handleAutoScroll(i)},drop:function(){this.sortable.nativeDraggable?E(document,"dragover",this._handleAutoScroll):(E(document,"pointermove",this._handleFallbackAutoScroll),E(document,"touchmove",this._handleFallbackAutoScroll),E(document,"mousemove",this._handleFallbackAutoScroll)),Wi(),ge(),Hn()},nulling:function(){fe=Je=Yt=Qe=jt=ti=ei=null,D.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,i){var o=this,r=(e.touches?e.touches[0]:e).clientX,s=(e.touches?e.touches[0]:e).clientY,l=document.elementFromPoint(r,s);if(fe=e,i||this.options.forceAutoScrollFallback||Vt||ot||Lt){ii(e,this.options,l,i);var a=lt(l,!0);Qe&&(!jt||r!==ti||s!==ei)&&(jt&&Wi(),jt=setInterval(function(){var d=lt(document.elementFromPoint(r,s),!0);d!==a&&(a=d,ge()),ii(e,o.options,d,i)},10),ti=r,ei=s)}else{if(!this.options.bubbleScroll||lt(l,!0)===Q()){ge();return}ii(e,this.options,lt(l,!1),!1)}}},it(n,{pluginName:"scroll",initializeByDefault:!0})}function ge(){D.forEach(function(n){clearInterval(n.pid)}),D=[]}function Wi(){clearInterval(jt)}var ii=Vi(function(n,t,e,i){if(t.scroll){var o=(n.touches?n.touches[0]:n).clientX,r=(n.touches?n.touches[0]:n).clientY,s=t.scrollSensitivity,l=t.scrollSpeed,a=Q(),d=!1,h;Je!==e&&(Je=e,ge(),Yt=t.scroll,h=t.scrollFn,Yt===!0&&(Yt=lt(e,!0)));var u=0,p=Yt;do{var v=p,y=P(v),b=y.top,Z=y.bottom,rt=y.left,k=y.right,G=y.width,F=y.height,Et=void 0,tt=void 0,wt=v.scrollWidth,qt=v.scrollHeight,z=f(v),Wt=v.scrollLeft,ct=v.scrollTop;v===a?(Et=G<wt&&(z.overflowX==="auto"||z.overflowX==="scroll"||z.overflowX==="visible"),tt=F<qt&&(z.overflowY==="auto"||z.overflowY==="scroll"||z.overflowY==="visible")):(Et=G<wt&&(z.overflowX==="auto"||z.overflowX==="scroll"),tt=F<qt&&(z.overflowY==="auto"||z.overflowY==="scroll"));var Zt=Et&&(Math.abs(k-o)<=s&&Wt+G<wt)-(Math.abs(rt-o)<=s&&!!Wt),st=tt&&(Math.abs(Z-r)<=s&&ct+F<qt)-(Math.abs(b-r)<=s&&!!ct);if(!D[u])for(var _t=0;_t<=u;_t++)D[_t]||(D[_t]={});(D[u].vx!=Zt||D[u].vy!=st||D[u].el!==v)&&(D[u].el=v,D[u].vx=Zt,D[u].vy=st,clearInterval(D[u].pid),(Zt!=0||st!=0)&&(d=!0,D[u].pid=setInterval((function(){i&&this.layer===0&&g.active._onTouchMove(fe);var Gt=D[this.layer].vy?D[this.layer].vy*l:0,ht=D[this.layer].vx?D[this.layer].vx*l:0;typeof h=="function"&&h.call(g.dragged.parentNode[R],ht,Gt,n,fe,D[this.layer].el)!=="continue"||Li(D[this.layer].el,ht,Gt)}).bind({layer:u}),24))),u++}while(t.bubbleScroll&&p!==a&&(p=lt(p,!1)));Qe=d}},30),Zi=function(t){var e=t.originalEvent,i=t.putSortable,o=t.dragEl,r=t.activeSortable,s=t.dispatchSortableEvent,l=t.hideGhostForTarget,a=t.unhideGhostForTarget;if(e){var d=i||r;l();var h=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,u=document.elementFromPoint(h.clientX,h.clientY);a(),d&&!d.el.contains(u)&&(s("spill"),this.onSpill({dragEl:o,putSortable:i}))}};function ni(){}ni.prototype={startIndex:null,dragStart:function(t){var e=t.oldDraggableIndex;this.startIndex=e},onSpill:function(t){var e=t.dragEl,i=t.putSortable;this.sortable.captureAnimationState(),i&&i.captureAnimationState();var o=St(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(e,o):this.sortable.el.appendChild(e),this.sortable.animateAll(),i&&i.animateAll()},drop:Zi},it(ni,{pluginName:"revertOnSpill"});function oi(){}oi.prototype={onSpill:function(t){var e=t.dragEl,i=t.putSortable,o=i||this.sortable;o.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),o.animateAll()},drop:Zi},it(oi,{pluginName:"removeOnSpill"}),g.mount(new Zn),g.mount(oi,ni);const Gn=(n,t,e)=>{let i=[];n._sortable=g.create(n,{handle:".drag-handle",filter:".drag-handle.disabled",swapThreshold:.5,animation:150,easing:"cubic-bezier(1, 0, 0, 1)",onStart:o=>{const r=o.item;i=Array.prototype.slice.call(r.parentNode.childNodes),i=i.filter(s=>s.nodeType!=Node.ELEMENT_NODE||!s.classList.contains("sortable-fallback"))},onEnd:o=>{const s=o.item.parentNode;for(const a of i)s.appendChild(a);if(o.oldIndex==o.newIndex)return;const l=t.getArray().find(a=>a.ol_uid===o.item.querySelector("eox-layercontrol-layer").layer.ol_uid);t.remove(l),t.insertAt(t.getLength()-o.newIndex,l),e.requestUpdate()}})},ri=(n,t,e)=>{let i=[];const o=(r,s,l)=>{i=[...i,...r.filter(d=>d.get(s)===l)];const a=r.filter(d=>d.getLayers);return a.length>0&&a.forEach(d=>o(d.getLayers().getArray(),s,l)),i};return o(n,t,e),i},Kn=(n,t)=>{var e,i,o;if(!(!n||!t))return n.getLayers?"group":(o=(e=t.getInteractions().getArray().filter(r=>r.freehand_!==void 0).map(r=>r.source_))==null?void 0:e.ol_uid)!=null&&o.includes(n.getSource?(i=n.getSource())==null?void 0:i.ol_uid:void 0)?"draw":n.declutter_!==void 0?"vector":"raster"};/**
|
|
40
|
+
*/function Ti(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),e.push.apply(e,i)}return e}function K(n){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?Ti(Object(e),!0).forEach(function(i){xn(n,i,e[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):Ti(Object(e)).forEach(function(i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(e,i))})}return n}function ee(n){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ee=function(t){return typeof t}:ee=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ee(n)}function xn(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}function it(){return it=Object.assign||function(n){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i])}return n},it.apply(this,arguments)}function An(n,t){if(n==null)return{};var e={},i=Object.keys(n),o,r;for(r=0;r<i.length;r++)o=i[r],!(t.indexOf(o)>=0)&&(e[o]=n[o]);return e}function Cn(n,t){if(n==null)return{};var e=An(n,t),i,o;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(e[i]=n[i])}return e}var Sn="1.15.0";function nt(n){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(n)}var ot=nt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Vt=nt(/Edge/i),Di=nt(/firefox/i),Lt=nt(/safari/i)&&!nt(/chrome/i)&&!nt(/android/i),Pi=nt(/iP(ad|od|hone)/i),Hi=nt(/chrome/i)&&nt(/android/i),Oi={capture:!1,passive:!1};function w(n,t,e){n.addEventListener(t,e,!ot&&Oi)}function E(n,t,e){n.removeEventListener(t,e,!ot&&Oi)}function ie(n,t){if(t){if(t[0]===">"&&(t=t.substring(1)),n)try{if(n.matches)return n.matches(t);if(n.msMatchesSelector)return n.msMatchesSelector(t);if(n.webkitMatchesSelector)return n.webkitMatchesSelector(t)}catch{return!1}return!1}}function Tn(n){return n.host&&n!==document&&n.host.nodeType?n.host:n.parentNode}function J(n,t,e,i){if(n){e=e||document;do{if(t!=null&&(t[0]===">"?n.parentNode===e&&ie(n,t):ie(n,t))||i&&n===e)return n;if(n===e)break}while(n=Tn(n))}return null}var Mi=/\s+/g;function B(n,t,e){if(n&&t)if(n.classList)n.classList[e?"add":"remove"](t);else{var i=(" "+n.className+" ").replace(Mi," ").replace(" "+t+" "," ");n.className=(i+(e?" "+t:"")).replace(Mi," ")}}function f(n,t,e){var i=n&&n.style;if(i){if(e===void 0)return document.defaultView&&document.defaultView.getComputedStyle?e=document.defaultView.getComputedStyle(n,""):n.currentStyle&&(e=n.currentStyle),t===void 0?e:e[t];!(t in i)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),i[t]=e+(typeof e=="string"?"":"px")}}function Ct(n,t){var e="";if(typeof n=="string")e=n;else do{var i=f(n,"transform");i&&i!=="none"&&(e=i+" "+e)}while(!t&&(n=n.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(e)}function Ni(n,t,e){if(n){var i=n.getElementsByTagName(t),o=0,r=i.length;if(e)for(;o<r;o++)e(i[o],o);return i}return[]}function Q(){var n=document.scrollingElement;return n||document.documentElement}function P(n,t,e,i,o){if(!(!n.getBoundingClientRect&&n!==window)){var r,s,l,a,d,h,u;if(n!==window&&n.parentNode&&n!==Q()?(r=n.getBoundingClientRect(),s=r.top,l=r.left,a=r.bottom,d=r.right,h=r.height,u=r.width):(s=0,l=0,a=window.innerHeight,d=window.innerWidth,h=window.innerHeight,u=window.innerWidth),(t||e)&&n!==window&&(o=o||n.parentNode,!ot))do if(o&&o.getBoundingClientRect&&(f(o,"transform")!=="none"||e&&f(o,"position")!=="static")){var p=o.getBoundingClientRect();s-=p.top+parseInt(f(o,"border-top-width")),l-=p.left+parseInt(f(o,"border-left-width")),a=s+r.height,d=l+r.width;break}while(o=o.parentNode);if(i&&n!==window){var v=Ct(o||n),y=v&&v.a,b=v&&v.d;v&&(s/=b,l/=y,u/=y,h/=b,a=s+h,d=l+u)}return{top:s,left:l,bottom:a,right:d,width:u,height:h}}}function ki(n,t,e){for(var i=lt(n,!0),o=P(n)[t];i;){var r=P(i)[e],s=void 0;if(e==="top"||e==="left"?s=o>=r:s=o<=r,!s)return i;if(i===Q())break;i=lt(i,!1)}return!1}function St(n,t,e,i){for(var o=0,r=0,s=n.children;r<s.length;){if(s[r].style.display!=="none"&&s[r]!==g.ghost&&(i||s[r]!==g.dragged)&&J(s[r],e.draggable,n,!1)){if(o===t)return s[r];o++}r++}return null}function ze(n,t){for(var e=n.lastElementChild;e&&(e===g.ghost||f(e,"display")==="none"||t&&!ie(e,t));)e=e.previousElementSibling;return e||null}function j(n,t){var e=0;if(!n||!n.parentNode)return-1;for(;n=n.previousElementSibling;)n.nodeName.toUpperCase()!=="TEMPLATE"&&n!==g.clone&&(!t||ie(n,t))&&e++;return e}function Ii(n){var t=0,e=0,i=Q();if(n)do{var o=Ct(n),r=o.a,s=o.d;t+=n.scrollLeft*r,e+=n.scrollTop*s}while(n!==i&&(n=n.parentNode));return[t,e]}function Dn(n,t){for(var e in n)if(n.hasOwnProperty(e)){for(var i in t)if(t.hasOwnProperty(i)&&t[i]===n[e][i])return Number(e)}return-1}function lt(n,t){if(!n||!n.getBoundingClientRect)return Q();var e=n,i=!1;do if(e.clientWidth<e.scrollWidth||e.clientHeight<e.scrollHeight){var o=f(e);if(e.clientWidth<e.scrollWidth&&(o.overflowX=="auto"||o.overflowX=="scroll")||e.clientHeight<e.scrollHeight&&(o.overflowY=="auto"||o.overflowY=="scroll")){if(!e.getBoundingClientRect||e===document.body)return Q();if(i||t)return e;i=!0}}while(e=e.parentNode);return Q()}function Pn(n,t){if(n&&t)for(var e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);return n}function Xe(n,t){return Math.round(n.top)===Math.round(t.top)&&Math.round(n.left)===Math.round(t.left)&&Math.round(n.height)===Math.round(t.height)&&Math.round(n.width)===Math.round(t.width)}var Bt;function Vi(n,t){return function(){if(!Bt){var e=arguments,i=this;e.length===1?n.call(i,e[0]):n.apply(i,e),Bt=setTimeout(function(){Bt=void 0},t)}}}function Hn(){clearTimeout(Bt),Bt=void 0}function Li(n,t,e){n.scrollLeft+=t,n.scrollTop+=e}function Bi(n){var t=window.Polymer,e=window.jQuery||window.Zepto;return t&&t.dom?t.dom(n).cloneNode(!0):e?e(n).clone(!0)[0]:n.cloneNode(!0)}var R="Sortable"+new Date().getTime();function On(){var n=[],t;return{captureAnimationState:function(){if(n=[],!!this.options.animation){var i=[].slice.call(this.el.children);i.forEach(function(o){if(!(f(o,"display")==="none"||o===g.ghost)){n.push({target:o,rect:P(o)});var r=K({},n[n.length-1].rect);if(o.thisAnimationDuration){var s=Ct(o,!0);s&&(r.top-=s.f,r.left-=s.e)}o.fromRect=r}})}},addAnimationState:function(i){n.push(i)},removeAnimationState:function(i){n.splice(Dn(n,{target:i}),1)},animateAll:function(i){var o=this;if(!this.options.animation){clearTimeout(t),typeof i=="function"&&i();return}var r=!1,s=0;n.forEach(function(l){var a=0,d=l.target,h=d.fromRect,u=P(d),p=d.prevFromRect,v=d.prevToRect,y=l.rect,b=Ct(d,!0);b&&(u.top-=b.f,u.left-=b.e),d.toRect=u,d.thisAnimationDuration&&Xe(p,u)&&!Xe(h,u)&&(y.top-u.top)/(y.left-u.left)===(h.top-u.top)/(h.left-u.left)&&(a=Nn(y,p,v,o.options)),Xe(u,h)||(d.prevFromRect=h,d.prevToRect=u,a||(a=o.options.animation),o.animate(d,y,u,a)),a&&(r=!0,s=Math.max(s,a),clearTimeout(d.animationResetTimer),d.animationResetTimer=setTimeout(function(){d.animationTime=0,d.prevFromRect=null,d.fromRect=null,d.prevToRect=null,d.thisAnimationDuration=null},a),d.thisAnimationDuration=a)}),clearTimeout(t),r?t=setTimeout(function(){typeof i=="function"&&i()},s):typeof i=="function"&&i(),n=[]},animate:function(i,o,r,s){if(s){f(i,"transition",""),f(i,"transform","");var l=Ct(this.el),a=l&&l.a,d=l&&l.d,h=(o.left-r.left)/(a||1),u=(o.top-r.top)/(d||1);i.animatingX=!!h,i.animatingY=!!u,f(i,"transform","translate3d("+h+"px,"+u+"px,0)"),this.forRepaintDummy=Mn(i),f(i,"transition","transform "+s+"ms"+(this.options.easing?" "+this.options.easing:"")),f(i,"transform","translate3d(0,0,0)"),typeof i.animated=="number"&&clearTimeout(i.animated),i.animated=setTimeout(function(){f(i,"transition",""),f(i,"transform",""),i.animated=!1,i.animatingX=!1,i.animatingY=!1},s)}}}}function Mn(n){return n.offsetWidth}function Nn(n,t,e,i){return Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))/Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))*i.animation}var Tt=[],Ye={initializeByDefault:!0},Rt={mount:function(t){for(var e in Ye)Ye.hasOwnProperty(e)&&!(e in t)&&(t[e]=Ye[e]);Tt.forEach(function(i){if(i.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),Tt.push(t)},pluginEvent:function(t,e,i){var o=this;this.eventCanceled=!1,i.cancel=function(){o.eventCanceled=!0};var r=t+"Global";Tt.forEach(function(s){e[s.pluginName]&&(e[s.pluginName][r]&&e[s.pluginName][r](K({sortable:e},i)),e.options[s.pluginName]&&e[s.pluginName][t]&&e[s.pluginName][t](K({sortable:e},i)))})},initializePlugins:function(t,e,i,o){Tt.forEach(function(l){var a=l.pluginName;if(!(!t.options[a]&&!l.initializeByDefault)){var d=new l(t,e,t.options);d.sortable=t,d.options=t.options,t[a]=d,it(i,d.defaults)}});for(var r in t.options)if(t.options.hasOwnProperty(r)){var s=this.modifyOption(t,r,t.options[r]);typeof s<"u"&&(t.options[r]=s)}},getEventProperties:function(t,e){var i={};return Tt.forEach(function(o){typeof o.eventProperties=="function"&&it(i,o.eventProperties.call(e[o.pluginName],t))}),i},modifyOption:function(t,e,i){var o;return Tt.forEach(function(r){t[r.pluginName]&&r.optionListeners&&typeof r.optionListeners[e]=="function"&&(o=r.optionListeners[e].call(t[r.pluginName],i))}),o}};function kn(n){var t=n.sortable,e=n.rootEl,i=n.name,o=n.targetEl,r=n.cloneEl,s=n.toEl,l=n.fromEl,a=n.oldIndex,d=n.newIndex,h=n.oldDraggableIndex,u=n.newDraggableIndex,p=n.originalEvent,v=n.putSortable,y=n.extraEventProperties;if(t=t||e&&e[R],!!t){var b,Z=t.options,rt="on"+i.charAt(0).toUpperCase()+i.substr(1);window.CustomEvent&&!ot&&!Vt?b=new CustomEvent(i,{bubbles:!0,cancelable:!0}):(b=document.createEvent("Event"),b.initEvent(i,!0,!0)),b.to=s||e,b.from=l||e,b.item=o||e,b.clone=r,b.oldIndex=a,b.newIndex=d,b.oldDraggableIndex=h,b.newDraggableIndex=u,b.originalEvent=p,b.pullMode=v?v.lastPutMode:void 0;var k=K(K({},y),Rt.getEventProperties(i,t));for(var G in k)b[G]=k[G];e&&e.dispatchEvent(b),Z[rt]&&Z[rt].call(t,b)}}var In=["evt"],L=function(t,e){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=i.evt,r=Cn(i,In);Rt.pluginEvent.bind(g)(t,e,K({dragEl:c,parentEl:T,ghostEl:m,rootEl:A,nextEl:vt,lastDownEl:ne,cloneEl:C,cloneHidden:dt,dragStarted:Ft,putSortable:H,activeSortable:g.active,originalEvent:o,oldIndex:Dt,oldDraggableIndex:Ut,newIndex:U,newDraggableIndex:ut,hideGhostForTarget:ji,unhideGhostForTarget:qi,cloneNowHidden:function(){dt=!0},cloneNowShown:function(){dt=!1},dispatchSortableEvent:function(l){N({sortable:e,name:l,originalEvent:o})}},r))};function N(n){kn(K({putSortable:H,cloneEl:C,targetEl:c,rootEl:A,oldIndex:Dt,oldDraggableIndex:Ut,newIndex:U,newDraggableIndex:ut},n))}var c,T,m,A,vt,ne,C,dt,Dt,U,Ut,ut,oe,H,Pt=!1,re=!1,se=[],yt,W,je,qe,Ri,Ui,Ft,Ht,zt,Xt=!1,ae=!1,le,M,We=[],Ze=!1,de=[],ue=typeof document<"u",ce=Pi,Fi=Vt||ot?"cssFloat":"float",Vn=ue&&!Hi&&!Pi&&"draggable"in document.createElement("div"),zi=function(){if(ue){if(ot)return!1;var n=document.createElement("x");return n.style.cssText="pointer-events:auto",n.style.pointerEvents==="auto"}}(),Xi=function(t,e){var i=f(t),o=parseInt(i.width)-parseInt(i.paddingLeft)-parseInt(i.paddingRight)-parseInt(i.borderLeftWidth)-parseInt(i.borderRightWidth),r=St(t,0,e),s=St(t,1,e),l=r&&f(r),a=s&&f(s),d=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+P(r).width,h=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+P(s).width;if(i.display==="flex")return i.flexDirection==="column"||i.flexDirection==="column-reverse"?"vertical":"horizontal";if(i.display==="grid")return i.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&l.float&&l.float!=="none"){var u=l.float==="left"?"left":"right";return s&&(a.clear==="both"||a.clear===u)?"vertical":"horizontal"}return r&&(l.display==="block"||l.display==="flex"||l.display==="table"||l.display==="grid"||d>=o&&i[Fi]==="none"||s&&i[Fi]==="none"&&d+h>o)?"vertical":"horizontal"},Ln=function(t,e,i){var o=i?t.left:t.top,r=i?t.right:t.bottom,s=i?t.width:t.height,l=i?e.left:e.top,a=i?e.right:e.bottom,d=i?e.width:e.height;return o===l||r===a||o+s/2===l+d/2},Bn=function(t,e){var i;return se.some(function(o){var r=o[R].options.emptyInsertThreshold;if(!(!r||ze(o))){var s=P(o),l=t>=s.left-r&&t<=s.right+r,a=e>=s.top-r&&e<=s.bottom+r;if(l&&a)return i=o}}),i},Yi=function(t){function e(r,s){return function(l,a,d,h){var u=l.options.group.name&&a.options.group.name&&l.options.group.name===a.options.group.name;if(r==null&&(s||u))return!0;if(r==null||r===!1)return!1;if(s&&r==="clone")return r;if(typeof r=="function")return e(r(l,a,d,h),s)(l,a,d,h);var p=(s?l:a).options.group.name;return r===!0||typeof r=="string"&&r===p||r.join&&r.indexOf(p)>-1}}var i={},o=t.group;(!o||ee(o)!="object")&&(o={name:o}),i.name=o.name,i.checkPull=e(o.pull,!0),i.checkPut=e(o.put),i.revertClone=o.revertClone,t.group=i},ji=function(){!zi&&m&&f(m,"display","none")},qi=function(){!zi&&m&&f(m,"display","")};ue&&!Hi&&document.addEventListener("click",function(n){if(re)return n.preventDefault(),n.stopPropagation&&n.stopPropagation(),n.stopImmediatePropagation&&n.stopImmediatePropagation(),re=!1,!1},!0);var bt=function(t){if(c){t=t.touches?t.touches[0]:t;var e=Bn(t.clientX,t.clientY);if(e){var i={};for(var o in t)t.hasOwnProperty(o)&&(i[o]=t[o]);i.target=i.rootEl=e,i.preventDefault=void 0,i.stopPropagation=void 0,e[R]._onDragOver(i)}}},Rn=function(t){c&&c.parentNode[R]._isOutsideThisEl(t.target)};function g(n,t){if(!(n&&n.nodeType&&n.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(n));this.el=n,this.options=t=it({},t),n[R]=this;var e={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(n.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Xi(n,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(s,l){s.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:g.supportPointer!==!1&&"PointerEvent"in window&&!Lt,emptyInsertThreshold:5};Rt.initializePlugins(this,n,e);for(var i in e)!(i in t)&&(t[i]=e[i]);Yi(t);for(var o in this)o.charAt(0)==="_"&&typeof this[o]=="function"&&(this[o]=this[o].bind(this));this.nativeDraggable=t.forceFallback?!1:Vn,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?w(n,"pointerdown",this._onTapStart):(w(n,"mousedown",this._onTapStart),w(n,"touchstart",this._onTapStart)),this.nativeDraggable&&(w(n,"dragover",this),w(n,"dragenter",this)),se.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),it(this,On())}g.prototype={constructor:g,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(Ht=null)},_getDirection:function(t,e){return typeof this.options.direction=="function"?this.options.direction.call(this,t,e,c):this.options.direction},_onTapStart:function(t){if(t.cancelable){var e=this,i=this.el,o=this.options,r=o.preventOnFilter,s=t.type,l=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,a=(l||t).target,d=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||a,h=o.filter;if(Wn(i),!c&&!(/mousedown|pointerdown/.test(s)&&t.button!==0||o.disabled)&&!d.isContentEditable&&!(!this.nativeDraggable&&Lt&&a&&a.tagName.toUpperCase()==="SELECT")&&(a=J(a,o.draggable,i,!1),!(a&&a.animated)&&ne!==a)){if(Dt=j(a),Ut=j(a,o.draggable),typeof h=="function"){if(h.call(this,t,a,this)){N({sortable:e,rootEl:d,name:"filter",targetEl:a,toEl:i,fromEl:i}),L("filter",e,{evt:t}),r&&t.cancelable&&t.preventDefault();return}}else if(h&&(h=h.split(",").some(function(u){if(u=J(d,u.trim(),i,!1),u)return N({sortable:e,rootEl:u,name:"filter",targetEl:a,fromEl:i,toEl:i}),L("filter",e,{evt:t}),!0}),h)){r&&t.cancelable&&t.preventDefault();return}o.handle&&!J(d,o.handle,i,!1)||this._prepareDragStart(t,l,a)}}},_prepareDragStart:function(t,e,i){var o=this,r=o.el,s=o.options,l=r.ownerDocument,a;if(i&&!c&&i.parentNode===r){var d=P(i);if(A=r,c=i,T=c.parentNode,vt=c.nextSibling,ne=i,oe=s.group,g.dragged=c,yt={target:c,clientX:(e||t).clientX,clientY:(e||t).clientY},Ri=yt.clientX-d.left,Ui=yt.clientY-d.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,c.style["will-change"]="all",a=function(){if(L("delayEnded",o,{evt:t}),g.eventCanceled){o._onDrop();return}o._disableDelayedDragEvents(),!Di&&o.nativeDraggable&&(c.draggable=!0),o._triggerDragStart(t,e),N({sortable:o,name:"choose",originalEvent:t}),B(c,s.chosenClass,!0)},s.ignore.split(",").forEach(function(h){Ni(c,h.trim(),Ge)}),w(l,"dragover",bt),w(l,"mousemove",bt),w(l,"touchmove",bt),w(l,"mouseup",o._onDrop),w(l,"touchend",o._onDrop),w(l,"touchcancel",o._onDrop),Di&&this.nativeDraggable&&(this.options.touchStartThreshold=4,c.draggable=!0),L("delayStart",this,{evt:t}),s.delay&&(!s.delayOnTouchOnly||e)&&(!this.nativeDraggable||!(Vt||ot))){if(g.eventCanceled){this._onDrop();return}w(l,"mouseup",o._disableDelayedDrag),w(l,"touchend",o._disableDelayedDrag),w(l,"touchcancel",o._disableDelayedDrag),w(l,"mousemove",o._delayedDragTouchMoveHandler),w(l,"touchmove",o._delayedDragTouchMoveHandler),s.supportPointer&&w(l,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(a,s.delay)}else a()}},_delayedDragTouchMoveHandler:function(t){var e=t.touches?t.touches[0]:t;Math.max(Math.abs(e.clientX-this._lastX),Math.abs(e.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){c&&Ge(c),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;E(t,"mouseup",this._disableDelayedDrag),E(t,"touchend",this._disableDelayedDrag),E(t,"touchcancel",this._disableDelayedDrag),E(t,"mousemove",this._delayedDragTouchMoveHandler),E(t,"touchmove",this._delayedDragTouchMoveHandler),E(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||t.pointerType=="touch"&&t,!this.nativeDraggable||e?this.options.supportPointer?w(document,"pointermove",this._onTouchMove):e?w(document,"touchmove",this._onTouchMove):w(document,"mousemove",this._onTouchMove):(w(c,"dragend",this),w(A,"dragstart",this._onDragStart));try{document.selection?pe(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,e){if(Pt=!1,A&&c){L("dragStarted",this,{evt:e}),this.nativeDraggable&&w(document,"dragover",Rn);var i=this.options;!t&&B(c,i.dragClass,!1),B(c,i.ghostClass,!0),g.active=this,t&&this._appendGhost(),N({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(W){this._lastX=W.clientX,this._lastY=W.clientY,ji();for(var t=document.elementFromPoint(W.clientX,W.clientY),e=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(W.clientX,W.clientY),t!==e);)e=t;if(c.parentNode[R]._isOutsideThisEl(t),e)do{if(e[R]){var i=void 0;if(i=e[R]._onDragOver({clientX:W.clientX,clientY:W.clientY,target:t,rootEl:e}),i&&!this.options.dragoverBubble)break}t=e}while(e=e.parentNode);qi()}},_onTouchMove:function(t){if(yt){var e=this.options,i=e.fallbackTolerance,o=e.fallbackOffset,r=t.touches?t.touches[0]:t,s=m&&Ct(m,!0),l=m&&s&&s.a,a=m&&s&&s.d,d=ce&&M&&Ii(M),h=(r.clientX-yt.clientX+o.x)/(l||1)+(d?d[0]-We[0]:0)/(l||1),u=(r.clientY-yt.clientY+o.y)/(a||1)+(d?d[1]-We[1]:0)/(a||1);if(!g.active&&!Pt){if(i&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<i)return;this._onDragStart(t,!0)}if(m){s?(s.e+=h-(je||0),s.f+=u-(qe||0)):s={a:1,b:0,c:0,d:1,e:h,f:u};var p="matrix(".concat(s.a,",").concat(s.b,",").concat(s.c,",").concat(s.d,",").concat(s.e,",").concat(s.f,")");f(m,"webkitTransform",p),f(m,"mozTransform",p),f(m,"msTransform",p),f(m,"transform",p),je=h,qe=u,W=r}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!m){var t=this.options.fallbackOnBody?document.body:A,e=P(c,!0,ce,!0,t),i=this.options;if(ce){for(M=t;f(M,"position")==="static"&&f(M,"transform")==="none"&&M!==document;)M=M.parentNode;M!==document.body&&M!==document.documentElement?(M===document&&(M=Q()),e.top+=M.scrollTop,e.left+=M.scrollLeft):M=Q(),We=Ii(M)}m=c.cloneNode(!0),B(m,i.ghostClass,!1),B(m,i.fallbackClass,!0),B(m,i.dragClass,!0),f(m,"transition",""),f(m,"transform",""),f(m,"box-sizing","border-box"),f(m,"margin",0),f(m,"top",e.top),f(m,"left",e.left),f(m,"width",e.width),f(m,"height",e.height),f(m,"opacity","0.8"),f(m,"position",ce?"absolute":"fixed"),f(m,"zIndex","100000"),f(m,"pointerEvents","none"),g.ghost=m,t.appendChild(m),f(m,"transform-origin",Ri/parseInt(m.style.width)*100+"% "+Ui/parseInt(m.style.height)*100+"%")}},_onDragStart:function(t,e){var i=this,o=t.dataTransfer,r=i.options;if(L("dragStart",this,{evt:t}),g.eventCanceled){this._onDrop();return}L("setupClone",this),g.eventCanceled||(C=Bi(c),C.removeAttribute("id"),C.draggable=!1,C.style["will-change"]="",this._hideClone(),B(C,this.options.chosenClass,!1),g.clone=C),i.cloneId=pe(function(){L("clone",i),!g.eventCanceled&&(i.options.removeCloneOnHide||A.insertBefore(C,c),i._hideClone(),N({sortable:i,name:"clone"}))}),!e&&B(c,r.dragClass,!0),e?(re=!0,i._loopId=setInterval(i._emulateDragOver,50)):(E(document,"mouseup",i._onDrop),E(document,"touchend",i._onDrop),E(document,"touchcancel",i._onDrop),o&&(o.effectAllowed="move",r.setData&&r.setData.call(i,o,c)),w(document,"drop",i),f(c,"transform","translateZ(0)")),Pt=!0,i._dragStartId=pe(i._dragStarted.bind(i,e,t)),w(document,"selectstart",i),Ft=!0,Lt&&f(document.body,"user-select","none")},_onDragOver:function(t){var e=this.el,i=t.target,o,r,s,l=this.options,a=l.group,d=g.active,h=oe===a,u=l.sort,p=H||d,v,y=this,b=!1;if(Ze)return;function Z(Kt,io){L(Kt,y,K({evt:t,isOwner:h,axis:v?"vertical":"horizontal",revert:s,dragRect:o,targetRect:r,canSort:u,fromSortable:p,target:i,completed:k,onMove:function(rn,no){return he(A,e,c,o,rn,P(rn),t,no)},changed:G},io))}function rt(){Z("dragOverAnimationCapture"),y.captureAnimationState(),y!==p&&p.captureAnimationState()}function k(Kt){return Z("dragOverCompleted",{insertion:Kt}),Kt&&(h?d._hideClone():d._showClone(y),y!==p&&(B(c,H?H.options.ghostClass:d.options.ghostClass,!1),B(c,l.ghostClass,!0)),H!==y&&y!==g.active?H=y:y===g.active&&H&&(H=null),p===y&&(y._ignoreWhileAnimating=i),y.animateAll(function(){Z("dragOverAnimationComplete"),y._ignoreWhileAnimating=null}),y!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(i===c&&!c.animated||i===e&&!i.animated)&&(Ht=null),!l.dragoverBubble&&!t.rootEl&&i!==document&&(c.parentNode[R]._isOutsideThisEl(t.target),!Kt&&bt(t)),!l.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),b=!0}function G(){U=j(c),ut=j(c,l.draggable),N({sortable:y,name:"change",toEl:e,newIndex:U,newDraggableIndex:ut,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),i=J(i,l.draggable,e,!0),Z("dragOver"),g.eventCanceled)return b;if(c.contains(t.target)||i.animated&&i.animatingX&&i.animatingY||y._ignoreWhileAnimating===i)return k(!1);if(re=!1,d&&!l.disabled&&(h?u||(s=T!==A):H===this||(this.lastPutMode=oe.checkPull(this,d,c,t))&&a.checkPut(this,d,c,t))){if(v=this._getDirection(t,i)==="vertical",o=P(c),Z("dragOverValid"),g.eventCanceled)return b;if(s)return T=A,rt(),this._hideClone(),Z("revert"),g.eventCanceled||(vt?A.insertBefore(c,vt):A.appendChild(c)),k(!0);var F=ze(e,l.draggable);if(!F||Xn(t,v,this)&&!F.animated){if(F===c)return k(!1);if(F&&e===t.target&&(i=F),i&&(r=P(i)),he(A,e,c,o,i,r,t,!!i)!==!1)return rt(),F&&F.nextSibling?e.insertBefore(c,F.nextSibling):e.appendChild(c),T=e,G(),k(!0)}else if(F&&zn(t,v,this)){var Et=St(e,0,l,!0);if(Et===c)return k(!1);if(i=Et,r=P(i),he(A,e,c,o,i,r,t,!1)!==!1)return rt(),e.insertBefore(c,Et),T=e,G(),k(!0)}else if(i.parentNode===e){r=P(i);var tt=0,wt,qt=c.parentNode!==e,z=!Ln(c.animated&&c.toRect||o,i.animated&&i.toRect||r,v),Wt=v?"top":"left",ct=ki(i,"top","top")||ki(c,"top","top"),Zt=ct?ct.scrollTop:void 0;Ht!==i&&(wt=r[Wt],Xt=!1,ae=!z&&l.invertSwap||qt),tt=Yn(t,i,r,v,z?1:l.swapThreshold,l.invertedSwapThreshold==null?l.swapThreshold:l.invertedSwapThreshold,ae,Ht===i);var st;if(tt!==0){var _t=j(c);do _t-=tt,st=T.children[_t];while(st&&(f(st,"display")==="none"||st===m))}if(tt===0||st===i)return k(!1);Ht=i,zt=tt;var Gt=i.nextElementSibling,ht=!1;ht=tt===1;var He=he(A,e,c,o,i,r,t,ht);if(He!==!1)return(He===1||He===-1)&&(ht=He===1),Ze=!0,setTimeout(Fn,30),rt(),ht&&!Gt?e.appendChild(c):i.parentNode.insertBefore(c,ht?Gt:i),ct&&Li(ct,0,Zt-ct.scrollTop),T=c.parentNode,wt!==void 0&&!ae&&(le=Math.abs(wt-P(i)[Wt])),G(),k(!0)}if(e.contains(c))return k(!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",bt),E(document,"mousemove",bt),E(document,"touchmove",bt)},_offUpEvents:function(){var t=this.el.ownerDocument;E(t,"mouseup",this._onDrop),E(t,"touchend",this._onDrop),E(t,"pointerup",this._onDrop),E(t,"touchcancel",this._onDrop),E(document,"selectstart",this)},_onDrop:function(t){var e=this.el,i=this.options;if(U=j(c),ut=j(c,i.draggable),L("drop",this,{evt:t}),T=c&&c.parentNode,U=j(c),ut=j(c,i.draggable),g.eventCanceled){this._nulling();return}Pt=!1,ae=!1,Xt=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Ke(this.cloneId),Ke(this._dragStartId),this.nativeDraggable&&(E(document,"drop",this),E(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Lt&&f(document.body,"user-select",""),f(c,"transform",""),t&&(Ft&&(t.cancelable&&t.preventDefault(),!i.dropBubble&&t.stopPropagation()),m&&m.parentNode&&m.parentNode.removeChild(m),(A===T||H&&H.lastPutMode!=="clone")&&C&&C.parentNode&&C.parentNode.removeChild(C),c&&(this.nativeDraggable&&E(c,"dragend",this),Ge(c),c.style["will-change"]="",Ft&&!Pt&&B(c,H?H.options.ghostClass:this.options.ghostClass,!1),B(c,this.options.chosenClass,!1),N({sortable:this,name:"unchoose",toEl:T,newIndex:null,newDraggableIndex:null,originalEvent:t}),A!==T?(U>=0&&(N({rootEl:T,name:"add",toEl:T,fromEl:A,originalEvent:t}),N({sortable:this,name:"remove",toEl:T,originalEvent:t}),N({rootEl:T,name:"sort",toEl:T,fromEl:A,originalEvent:t}),N({sortable:this,name:"sort",toEl:T,originalEvent:t})),H&&H.save()):U!==Dt&&U>=0&&(N({sortable:this,name:"update",toEl:T,originalEvent:t}),N({sortable:this,name:"sort",toEl:T,originalEvent:t})),g.active&&((U==null||U===-1)&&(U=Dt,ut=Ut),N({sortable:this,name:"end",toEl:T,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){L("nulling",this),A=c=T=m=vt=C=ne=dt=yt=W=Ft=U=ut=Dt=Ut=Ht=zt=H=oe=g.dragged=g.ghost=g.clone=g.active=null,de.forEach(function(t){t.checked=!0}),de.length=je=qe=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":c&&(this._onDragOver(t),Un(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],e,i=this.el.children,o=0,r=i.length,s=this.options;o<r;o++)e=i[o],J(e,s.draggable,this.el,!1)&&t.push(e.getAttribute(s.dataIdAttr)||qn(e));return t},sort:function(t,e){var i={},o=this.el;this.toArray().forEach(function(r,s){var l=o.children[s];J(l,this.options.draggable,o,!1)&&(i[r]=l)},this),e&&this.captureAnimationState(),t.forEach(function(r){i[r]&&(o.removeChild(i[r]),o.appendChild(i[r]))}),e&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,e){return J(t,e||this.options.draggable,this.el,!1)},option:function(t,e){var i=this.options;if(e===void 0)return i[t];var o=Rt.modifyOption(this,t,e);typeof o<"u"?i[t]=o:i[t]=e,t==="group"&&Yi(i)},destroy:function(){L("destroy",this);var t=this.el;t[R]=null,E(t,"mousedown",this._onTapStart),E(t,"touchstart",this._onTapStart),E(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(E(t,"dragover",this),E(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(e){e.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),se.splice(se.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!dt){if(L("hideClone",this),g.eventCanceled)return;f(C,"display","none"),this.options.removeCloneOnHide&&C.parentNode&&C.parentNode.removeChild(C),dt=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(dt){if(L("showClone",this),g.eventCanceled)return;c.parentNode==A&&!this.options.group.revertClone?A.insertBefore(C,c):vt?A.insertBefore(C,vt):A.appendChild(C),this.options.group.revertClone&&this.animate(c,C),f(C,"display",""),dt=!1}}};function Un(n){n.dataTransfer&&(n.dataTransfer.dropEffect="move"),n.cancelable&&n.preventDefault()}function he(n,t,e,i,o,r,s,l){var a,d=n[R],h=d.options.onMove,u;return window.CustomEvent&&!ot&&!Vt?a=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(a=document.createEvent("Event"),a.initEvent("move",!0,!0)),a.to=t,a.from=n,a.dragged=e,a.draggedRect=i,a.related=o||t,a.relatedRect=r||P(t),a.willInsertAfter=l,a.originalEvent=s,n.dispatchEvent(a),h&&(u=h.call(d,a,s)),u}function Ge(n){n.draggable=!1}function Fn(){Ze=!1}function zn(n,t,e){var i=P(St(e.el,0,e.options,!0)),o=10;return t?n.clientX<i.left-o||n.clientY<i.top&&n.clientX<i.right:n.clientY<i.top-o||n.clientY<i.bottom&&n.clientX<i.left}function Xn(n,t,e){var i=P(ze(e.el,e.options.draggable)),o=10;return t?n.clientX>i.right+o||n.clientX<=i.right&&n.clientY>i.bottom&&n.clientX>=i.left:n.clientX>i.right&&n.clientY>i.top||n.clientX<=i.right&&n.clientY>i.bottom+o}function Yn(n,t,e,i,o,r,s,l){var a=i?n.clientY:n.clientX,d=i?e.height:e.width,h=i?e.top:e.left,u=i?e.bottom:e.right,p=!1;if(!s){if(l&&le<d*o){if(!Xt&&(zt===1?a>h+d*r/2:a<u-d*r/2)&&(Xt=!0),Xt)p=!0;else if(zt===1?a<h+le:a>u-le)return-zt}else if(a>h+d*(1-o)/2&&a<u-d*(1-o)/2)return jn(t)}return p=p||s,p&&(a<h+d*r/2||a>u-d*r/2)?a>h+d/2?1:-1:0}function jn(n){return j(c)<j(n)?1:-1}function qn(n){for(var t=n.tagName+n.className+n.src+n.href+n.textContent,e=t.length,i=0;e--;)i+=t.charCodeAt(e);return i.toString(36)}function Wn(n){de.length=0;for(var t=n.getElementsByTagName("input"),e=t.length;e--;){var i=t[e];i.checked&&de.push(i)}}function pe(n){return setTimeout(n,0)}function Ke(n){return clearTimeout(n)}ue&&w(document,"touchmove",function(n){(g.active||Pt)&&n.cancelable&&n.preventDefault()}),g.utils={on:w,off:E,css:f,find:Ni,is:function(t,e){return!!J(t,e,t,!1)},extend:Pn,throttle:Vi,closest:J,toggleClass:B,clone:Bi,index:j,nextTick:pe,cancelNextTick:Ke,detectDirection:Xi,getChild:St},g.get=function(n){return n[R]},g.mount=function(){for(var n=arguments.length,t=new Array(n),e=0;e<n;e++)t[e]=arguments[e];t[0].constructor===Array&&(t=t[0]),t.forEach(function(i){if(!i.prototype||!i.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(i));i.utils&&(g.utils=K(K({},g.utils),i.utils)),Rt.mount(i)})},g.create=function(n,t){return new g(n,t)},g.version=Sn;var D=[],Yt,Je,Qe=!1,ti,ei,fe,jt;function Zn(){function n(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var t in this)t.charAt(0)==="_"&&typeof this[t]=="function"&&(this[t]=this[t].bind(this))}return n.prototype={dragStarted:function(e){var i=e.originalEvent;this.sortable.nativeDraggable?w(document,"dragover",this._handleAutoScroll):this.options.supportPointer?w(document,"pointermove",this._handleFallbackAutoScroll):i.touches?w(document,"touchmove",this._handleFallbackAutoScroll):w(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var i=e.originalEvent;!this.options.dragOverBubble&&!i.rootEl&&this._handleAutoScroll(i)},drop:function(){this.sortable.nativeDraggable?E(document,"dragover",this._handleAutoScroll):(E(document,"pointermove",this._handleFallbackAutoScroll),E(document,"touchmove",this._handleFallbackAutoScroll),E(document,"mousemove",this._handleFallbackAutoScroll)),Wi(),ge(),Hn()},nulling:function(){fe=Je=Yt=Qe=jt=ti=ei=null,D.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,i){var o=this,r=(e.touches?e.touches[0]:e).clientX,s=(e.touches?e.touches[0]:e).clientY,l=document.elementFromPoint(r,s);if(fe=e,i||this.options.forceAutoScrollFallback||Vt||ot||Lt){ii(e,this.options,l,i);var a=lt(l,!0);Qe&&(!jt||r!==ti||s!==ei)&&(jt&&Wi(),jt=setInterval(function(){var d=lt(document.elementFromPoint(r,s),!0);d!==a&&(a=d,ge()),ii(e,o.options,d,i)},10),ti=r,ei=s)}else{if(!this.options.bubbleScroll||lt(l,!0)===Q()){ge();return}ii(e,this.options,lt(l,!1),!1)}}},it(n,{pluginName:"scroll",initializeByDefault:!0})}function ge(){D.forEach(function(n){clearInterval(n.pid)}),D=[]}function Wi(){clearInterval(jt)}var ii=Vi(function(n,t,e,i){if(t.scroll){var o=(n.touches?n.touches[0]:n).clientX,r=(n.touches?n.touches[0]:n).clientY,s=t.scrollSensitivity,l=t.scrollSpeed,a=Q(),d=!1,h;Je!==e&&(Je=e,ge(),Yt=t.scroll,h=t.scrollFn,Yt===!0&&(Yt=lt(e,!0)));var u=0,p=Yt;do{var v=p,y=P(v),b=y.top,Z=y.bottom,rt=y.left,k=y.right,G=y.width,F=y.height,Et=void 0,tt=void 0,wt=v.scrollWidth,qt=v.scrollHeight,z=f(v),Wt=v.scrollLeft,ct=v.scrollTop;v===a?(Et=G<wt&&(z.overflowX==="auto"||z.overflowX==="scroll"||z.overflowX==="visible"),tt=F<qt&&(z.overflowY==="auto"||z.overflowY==="scroll"||z.overflowY==="visible")):(Et=G<wt&&(z.overflowX==="auto"||z.overflowX==="scroll"),tt=F<qt&&(z.overflowY==="auto"||z.overflowY==="scroll"));var Zt=Et&&(Math.abs(k-o)<=s&&Wt+G<wt)-(Math.abs(rt-o)<=s&&!!Wt),st=tt&&(Math.abs(Z-r)<=s&&ct+F<qt)-(Math.abs(b-r)<=s&&!!ct);if(!D[u])for(var _t=0;_t<=u;_t++)D[_t]||(D[_t]={});(D[u].vx!=Zt||D[u].vy!=st||D[u].el!==v)&&(D[u].el=v,D[u].vx=Zt,D[u].vy=st,clearInterval(D[u].pid),(Zt!=0||st!=0)&&(d=!0,D[u].pid=setInterval((function(){i&&this.layer===0&&g.active._onTouchMove(fe);var Gt=D[this.layer].vy?D[this.layer].vy*l:0,ht=D[this.layer].vx?D[this.layer].vx*l:0;typeof h=="function"&&h.call(g.dragged.parentNode[R],ht,Gt,n,fe,D[this.layer].el)!=="continue"||Li(D[this.layer].el,ht,Gt)}).bind({layer:u}),24))),u++}while(t.bubbleScroll&&p!==a&&(p=lt(p,!1)));Qe=d}},30),Zi=function(t){var e=t.originalEvent,i=t.putSortable,o=t.dragEl,r=t.activeSortable,s=t.dispatchSortableEvent,l=t.hideGhostForTarget,a=t.unhideGhostForTarget;if(e){var d=i||r;l();var h=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,u=document.elementFromPoint(h.clientX,h.clientY);a(),d&&!d.el.contains(u)&&(s("spill"),this.onSpill({dragEl:o,putSortable:i}))}};function ni(){}ni.prototype={startIndex:null,dragStart:function(t){var e=t.oldDraggableIndex;this.startIndex=e},onSpill:function(t){var e=t.dragEl,i=t.putSortable;this.sortable.captureAnimationState(),i&&i.captureAnimationState();var o=St(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(e,o):this.sortable.el.appendChild(e),this.sortable.animateAll(),i&&i.animateAll()},drop:Zi},it(ni,{pluginName:"revertOnSpill"});function oi(){}oi.prototype={onSpill:function(t){var e=t.dragEl,i=t.putSortable,o=i||this.sortable;o.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),o.animateAll()},drop:Zi},it(oi,{pluginName:"removeOnSpill"}),g.mount(new Zn),g.mount(oi,ni);const Gn=(n,t,e)=>{let i=[];n._sortable=g.create(n,{handle:".drag-handle",filter:".drag-handle.disabled",swapThreshold:.5,animation:150,easing:"cubic-bezier(1, 0, 0, 1)",onStart:o=>{const r=o.item;i=Array.prototype.slice.call(r.parentNode.childNodes),i=i.filter(s=>s.nodeType!=Node.ELEMENT_NODE||!s.classList.contains("sortable-fallback"))},onEnd:o=>{const s=o.item.parentNode;for(const a of i)s.appendChild(a);if(o.oldIndex==o.newIndex)return;const l=t.getArray().find(a=>a.ol_uid===o.item.querySelector("eox-layercontrol-layer").layer.ol_uid);t.remove(l),t.insertAt(t.getLength()-o.newIndex,l),e.requestUpdate()}})},ri=(n,t,e)=>{let i=[];const o=(r,s,l)=>{i=[...i,...r.filter(d=>d.get(s)===l)];const a=r.filter(d=>d.getLayers);return a.length>0&&a.forEach(d=>o(d.getLayers().getArray(),s,l)),i};return o(n,t,e),i},Kn=(n,t)=>{var e,i,o;if(!(!n||!t))return n.getLayers?"group":(o=(e=t.getInteractions().getArray().filter(r=>r.freehand_!==void 0).map(r=>r.source_))==null?void 0:e.ol_uid)!=null&&o.includes(n.getSource?(i=n.getSource())==null?void 0:i.ol_uid:void 0)?"draw":n.declutter_!==void 0?"vector":"raster"};/**
|
|
41
41
|
* @license
|
|
42
42
|
* Copyright 2020 Google LLC
|
|
43
43
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
44
|
-
*/const si=Ue(class extends Fe{constructor(n){if(super(n),n.type!==mt.PROPERTY&&n.type!==mt.ATTRIBUTE&&n.type!==mt.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!wn(n))throw Error("`live` bindings can only contain a single expression")}render(n){return n}update(n,[t]){if(t===q||t===
|
|
44
|
+
*/const si=Ue(class extends Fe{constructor(n){if(super(n),n.type!==mt.PROPERTY&&n.type!==mt.ATTRIBUTE&&n.type!==mt.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!wn(n))throw Error("`live` bindings can only contain a single expression")}render(n){return n}update(n,[t]){if(t===q||t===x)return t;const e=n.element,i=n.name;if(n.type===mt.PROPERTY){if(t===e[i])return q}else if(n.type===mt.BOOLEAN_ATTRIBUTE){if(!!t===e.hasAttribute(i))return q}else if(n.type===mt.ATTRIBUTE&&e.getAttribute(i)===t+"")return q;return Si(n),t}});/**
|
|
45
45
|
* @license
|
|
46
46
|
* Copyright 2017 Google LLC
|
|
47
47
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
48
|
-
*/class ai extends Fe{constructor(t){if(super(t),this.et=
|
|
48
|
+
*/class ai extends Fe{constructor(t){if(super(t),this.et=x,t.type!==mt.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===x||t==null)return this.ft=void 0,this.et=t;if(t===q)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.ft;this.et=t;const e=[t];return e.raw=e,this.ft={_$litType$:this.constructor.resultType,strings:e,values:[]}}}ai.directiveName="unsafeHTML",ai.resultType=1;const Jn=Ue(ai);/**
|
|
49
49
|
* @license
|
|
50
50
|
* Copyright 2021 Google LLC
|
|
51
51
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -171,7 +171,7 @@ button {
|
|
|
171
171
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
172
172
|
}
|
|
173
173
|
|
|
174
|
-
button:hover {
|
|
174
|
+
button:hover:not([disabled]):not(.icon) {
|
|
175
175
|
box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12);
|
|
176
176
|
background: var(--primary-color-hover);
|
|
177
177
|
}
|
|
@@ -180,6 +180,10 @@ button, button:active {
|
|
|
180
180
|
background: var(--primary-color);
|
|
181
181
|
}
|
|
182
182
|
|
|
183
|
+
button[disabled] {
|
|
184
|
+
opacity: 0.5;
|
|
185
|
+
}
|
|
186
|
+
|
|
183
187
|
button.outline {
|
|
184
188
|
background: transparent;
|
|
185
189
|
box-shadow: none;
|
|
@@ -198,6 +202,7 @@ button.icon {
|
|
|
198
202
|
padding: 0;
|
|
199
203
|
border-radius: 50%;
|
|
200
204
|
width: 24px;
|
|
205
|
+
height: 24px;
|
|
201
206
|
text-indent: -9999px;
|
|
202
207
|
}
|
|
203
208
|
|
|
@@ -360,10 +365,12 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
360
365
|
class="remove-icon icon"
|
|
361
366
|
@click=${()=>{var e,i;(e=this.layer)==null||e.set("layerControlOptional",!0),(i=this.layer)==null||i.setVisible(!1),this.dispatchEvent(new CustomEvent("changed",{detail:this.layer,bubbles:!0}))}}
|
|
362
367
|
>
|
|
363
|
-
x
|
|
368
|
+
${this.unstyled?"x":x}
|
|
364
369
|
</button>
|
|
365
370
|
`);X(this,"_sortButton",_`
|
|
366
|
-
<button class="sort-icon icon drag-handle">
|
|
371
|
+
<button class="sort-icon icon drag-handle">
|
|
372
|
+
${this.unstyled?"sort":x}
|
|
373
|
+
</button>
|
|
367
374
|
`);V(this,we,"");V(this,_e,`
|
|
368
375
|
${Qn}
|
|
369
376
|
${to}
|
|
@@ -485,7 +492,9 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
485
492
|
.unstyled=${this.unstyled}
|
|
486
493
|
>
|
|
487
494
|
${me(this._parseTools(this.tools),l=>_`
|
|
488
|
-
<button slot="${l}-icon" class="icon"
|
|
495
|
+
<button slot="${l}-icon" class="icon">
|
|
496
|
+
${this.unstyled?l:x}
|
|
497
|
+
</button>
|
|
489
498
|
`)}
|
|
490
499
|
|
|
491
500
|
<div slot="info-content">
|
|
@@ -603,7 +612,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
603
612
|
${!this.unstyled&&I(this,Ce)}
|
|
604
613
|
</style>
|
|
605
614
|
${et(this.group,()=>_`
|
|
606
|
-
<details open=${this.group.get("layerControlExpand")||
|
|
615
|
+
<details open=${this.group.get("layerControlExpand")||x}>
|
|
607
616
|
<summary>
|
|
608
617
|
<eox-layercontrol-layer
|
|
609
618
|
.layer=${this.group}
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eox/layercontrol",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"devDependencies": {
|
|
6
6
|
"@eox/eslint-config": "^1.0.0",
|
|
7
7
|
"@types/sortablejs": "^1.15.1",
|
|
8
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
8
|
+
"@typescript-eslint/eslint-plugin": "^6.8.0",
|
|
9
9
|
"@typescript-eslint/parser": "^5.50.0",
|
|
10
10
|
"eslint-plugin-typescript": "^0.14.0",
|
|
11
11
|
"ol": "^8.1.0",
|
|
12
12
|
"sortablejs": "^1.15.0",
|
|
13
|
-
"typescript": "^
|
|
13
|
+
"typescript": "^5.2.2",
|
|
14
14
|
"vite": "^4.0.0"
|
|
15
15
|
},
|
|
16
16
|
"engines": {
|
package/test/general.cy.js
CHANGED
|
@@ -74,10 +74,8 @@ describe("LayerControl", () => {
|
|
|
74
74
|
cy.get("eox-layercontrol")
|
|
75
75
|
.shadow()
|
|
76
76
|
.within(() => {
|
|
77
|
-
cy.get(".tools summary")
|
|
78
|
-
|
|
79
|
-
.get(".drag-handle:visible")
|
|
80
|
-
.should("have.length", 1);
|
|
77
|
+
cy.get(".tools summary").click({ multiple: true });
|
|
78
|
+
cy.get(".drag-handle:visible").should("have.length", 1);
|
|
81
79
|
});
|
|
82
80
|
});
|
|
83
81
|
|
package/test/layersUpdate.cy.js
CHANGED
|
@@ -103,11 +103,8 @@ describe("LayerControl", () => {
|
|
|
103
103
|
cy.get("eox-layercontrol")
|
|
104
104
|
.shadow()
|
|
105
105
|
.within(() => {
|
|
106
|
-
cy.get(`[data-layer=${layerToDelete}] .tools > summary`)
|
|
107
|
-
|
|
108
|
-
.get("button.remove-icon:visible")
|
|
109
|
-
.last()
|
|
110
|
-
.click();
|
|
106
|
+
cy.get(`[data-layer=${layerToDelete}] .tools > summary`).click();
|
|
107
|
+
cy.get("button.remove-icon:visible").last().click();
|
|
111
108
|
cy.get(`[data-layer=${layerToDelete}]`).should("not.exist");
|
|
112
109
|
});
|
|
113
110
|
|