@eox/layercontrol 0.24.0 → 0.25.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 +1142 -1126
- package/dist/eox-layercontrol.umd.cjs +107 -91
- package/package.json +3 -3
- package/src/components/layer-group.js +1 -1
- package/src/components/layer-list.js +2 -1
- package/src/components/layer-tools.js +2 -2
- package/src/components/layer.js +9 -0
- package/src/main.js +6 -0
- package/types/layercontrol/src/components/layer-list.d.ts.map +1 -1
- package/types/layercontrol/src/components/layer.d.ts.map +1 -1
- package/types/layercontrol/src/main.d.ts.map +1 -1
- package/types/map/src/helpers/generate.d.ts.map +1 -1
- package/types/map/src/helpers/select.d.ts +9 -0
- package/types/map/src/helpers/select.d.ts.map +1 -1
- package/types/map/src/main.d.ts +2 -2
- package/types/map/src/main.d.ts.map +1 -1
- package/types/map/src/methods/map/remove.d.ts +2 -2
- package/types/map/src/methods/map/remove.d.ts.map +1 -1
- package/types/map/types.d.ts +2 -0
- package/types/map/types.d.ts.map +1 -1
package/dist/eox-layercontrol.js
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
var Yo = Object.defineProperty;
|
|
2
|
-
var
|
|
2
|
+
var sn = (e) => {
|
|
3
3
|
throw TypeError(e);
|
|
4
4
|
};
|
|
5
|
-
var Wo = (e, t,
|
|
6
|
-
var I = (e, t,
|
|
7
|
-
var S = (e, t,
|
|
5
|
+
var Wo = (e, t, i) => t in e ? Yo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i;
|
|
6
|
+
var I = (e, t, i) => Wo(e, typeof t != "symbol" ? t + "" : t, i), mi = (e, t, i) => t.has(e) || sn("Cannot " + i);
|
|
7
|
+
var S = (e, t, i) => (mi(e, t, "read from private field"), i ? i.call(e) : t.get(e)), C = (e, t, i) => t.has(e) ? sn("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, i), kt = (e, t, i, n) => (mi(e, t, "write to private field"), n ? n.call(e, i) : t.set(e, i), i), V = (e, t, i) => (mi(e, t, "access private method"), i);
|
|
8
8
|
/**
|
|
9
9
|
* @license
|
|
10
10
|
* Copyright 2019 Google LLC
|
|
11
11
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
12
12
|
*/
|
|
13
|
-
const De = globalThis,
|
|
14
|
-
let
|
|
15
|
-
constructor(t,
|
|
16
|
-
if (this._$cssResult$ = !0,
|
|
17
|
-
this.cssText = t, this.t =
|
|
13
|
+
const De = globalThis, Zi = De.ShadowRoot && (De.ShadyCSS === void 0 || De.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, zi = Symbol(), an = /* @__PURE__ */ new WeakMap();
|
|
14
|
+
let Nn = class {
|
|
15
|
+
constructor(t, i, n) {
|
|
16
|
+
if (this._$cssResult$ = !0, n !== zi) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
17
|
+
this.cssText = t, this.t = i;
|
|
18
18
|
}
|
|
19
19
|
get styleSheet() {
|
|
20
20
|
let t = this.o;
|
|
21
|
-
const
|
|
22
|
-
if (
|
|
23
|
-
const
|
|
24
|
-
|
|
21
|
+
const i = this.t;
|
|
22
|
+
if (Zi && t === void 0) {
|
|
23
|
+
const n = i !== void 0 && i.length === 1;
|
|
24
|
+
n && (t = an.get(i)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), n && an.set(i, t));
|
|
25
25
|
}
|
|
26
26
|
return t;
|
|
27
27
|
}
|
|
@@ -29,30 +29,30 @@ let Ni = class {
|
|
|
29
29
|
return this.cssText;
|
|
30
30
|
}
|
|
31
31
|
};
|
|
32
|
-
const Go = (e) => new
|
|
33
|
-
const
|
|
32
|
+
const Go = (e) => new Nn(typeof e == "string" ? e : e + "", void 0, zi), Hn = (e, ...t) => {
|
|
33
|
+
const i = e.length === 1 ? e[0] : t.reduce((n, o, r) => n + ((s) => {
|
|
34
34
|
if (s._$cssResult$ === !0) return s.cssText;
|
|
35
35
|
if (typeof s == "number") return s;
|
|
36
36
|
throw Error("Value passed to 'css' function must be a 'css' function result: " + s + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
37
37
|
})(o) + e[r + 1], e[0]);
|
|
38
|
-
return new
|
|
38
|
+
return new Nn(i, e, zi);
|
|
39
39
|
}, Jo = (e, t) => {
|
|
40
|
-
if (
|
|
41
|
-
else for (const
|
|
42
|
-
const
|
|
43
|
-
o !== void 0 &&
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
let
|
|
47
|
-
for (const
|
|
48
|
-
return Go(
|
|
40
|
+
if (Zi) e.adoptedStyleSheets = t.map((i) => i instanceof CSSStyleSheet ? i : i.styleSheet);
|
|
41
|
+
else for (const i of t) {
|
|
42
|
+
const n = document.createElement("style"), o = De.litNonce;
|
|
43
|
+
o !== void 0 && n.setAttribute("nonce", o), n.textContent = i.cssText, e.appendChild(n);
|
|
44
|
+
}
|
|
45
|
+
}, ln = Zi ? (e) => e : (e) => e instanceof CSSStyleSheet ? ((t) => {
|
|
46
|
+
let i = "";
|
|
47
|
+
for (const n of t.cssRules) i += n.cssText;
|
|
48
|
+
return Go(i);
|
|
49
49
|
})(e) : e;
|
|
50
50
|
/**
|
|
51
51
|
* @license
|
|
52
52
|
* Copyright 2017 Google LLC
|
|
53
53
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
54
54
|
*/
|
|
55
|
-
const { is: Ko, defineProperty: Qo, getOwnPropertyDescriptor: tr, getOwnPropertyNames: er, getOwnPropertySymbols:
|
|
55
|
+
const { is: Ko, defineProperty: Qo, getOwnPropertyDescriptor: tr, getOwnPropertyNames: er, getOwnPropertySymbols: ir, getPrototypeOf: nr } = Object, Tt = globalThis, dn = Tt.trustedTypes, or = dn ? dn.emptyScript : "", yi = Tt.reactiveElementPolyfillSupport, ae = (e, t) => e, Ii = { toAttribute(e, t) {
|
|
56
56
|
switch (t) {
|
|
57
57
|
case Boolean:
|
|
58
58
|
e = e ? or : null;
|
|
@@ -63,24 +63,24 @@ const { is: Ko, defineProperty: Qo, getOwnPropertyDescriptor: tr, getOwnProperty
|
|
|
63
63
|
}
|
|
64
64
|
return e;
|
|
65
65
|
}, fromAttribute(e, t) {
|
|
66
|
-
let
|
|
66
|
+
let i = e;
|
|
67
67
|
switch (t) {
|
|
68
68
|
case Boolean:
|
|
69
|
-
|
|
69
|
+
i = e !== null;
|
|
70
70
|
break;
|
|
71
71
|
case Number:
|
|
72
|
-
|
|
72
|
+
i = e === null ? null : Number(e);
|
|
73
73
|
break;
|
|
74
74
|
case Object:
|
|
75
75
|
case Array:
|
|
76
76
|
try {
|
|
77
|
-
|
|
77
|
+
i = JSON.parse(e);
|
|
78
78
|
} catch {
|
|
79
|
-
|
|
79
|
+
i = null;
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
|
-
return
|
|
83
|
-
} },
|
|
82
|
+
return i;
|
|
83
|
+
} }, Vn = (e, t) => !Ko(e, t), un = { attribute: !0, type: String, converter: Ii, reflect: !1, hasChanged: Vn };
|
|
84
84
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), Tt.litPropertyMetadata ?? (Tt.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
85
85
|
class jt extends HTMLElement {
|
|
86
86
|
static addInitializer(t) {
|
|
@@ -89,81 +89,81 @@ class jt extends HTMLElement {
|
|
|
89
89
|
static get observedAttributes() {
|
|
90
90
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
91
91
|
}
|
|
92
|
-
static createProperty(t,
|
|
93
|
-
if (
|
|
94
|
-
const
|
|
92
|
+
static createProperty(t, i = un) {
|
|
93
|
+
if (i.state && (i.attribute = !1), this._$Ei(), this.elementProperties.set(t, i), !i.noAccessor) {
|
|
94
|
+
const n = Symbol(), o = this.getPropertyDescriptor(t, n, i);
|
|
95
95
|
o !== void 0 && Qo(this.prototype, t, o);
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
|
-
static getPropertyDescriptor(t,
|
|
98
|
+
static getPropertyDescriptor(t, i, n) {
|
|
99
99
|
const { get: o, set: r } = tr(this.prototype, t) ?? { get() {
|
|
100
|
-
return this[
|
|
100
|
+
return this[i];
|
|
101
101
|
}, set(s) {
|
|
102
|
-
this[
|
|
102
|
+
this[i] = s;
|
|
103
103
|
} };
|
|
104
104
|
return { get() {
|
|
105
105
|
return o == null ? void 0 : o.call(this);
|
|
106
106
|
}, set(s) {
|
|
107
107
|
const a = o == null ? void 0 : o.call(this);
|
|
108
|
-
r.call(this, s), this.requestUpdate(t, a,
|
|
108
|
+
r.call(this, s), this.requestUpdate(t, a, n);
|
|
109
109
|
}, configurable: !0, enumerable: !0 };
|
|
110
110
|
}
|
|
111
111
|
static getPropertyOptions(t) {
|
|
112
|
-
return this.elementProperties.get(t) ??
|
|
112
|
+
return this.elementProperties.get(t) ?? un;
|
|
113
113
|
}
|
|
114
114
|
static _$Ei() {
|
|
115
115
|
if (this.hasOwnProperty(ae("elementProperties"))) return;
|
|
116
|
-
const t =
|
|
116
|
+
const t = nr(this);
|
|
117
117
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
118
118
|
}
|
|
119
119
|
static finalize() {
|
|
120
120
|
if (this.hasOwnProperty(ae("finalized"))) return;
|
|
121
121
|
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(ae("properties"))) {
|
|
122
|
-
const
|
|
123
|
-
for (const o of
|
|
122
|
+
const i = this.properties, n = [...er(i), ...ir(i)];
|
|
123
|
+
for (const o of n) this.createProperty(o, i[o]);
|
|
124
124
|
}
|
|
125
125
|
const t = this[Symbol.metadata];
|
|
126
126
|
if (t !== null) {
|
|
127
|
-
const
|
|
128
|
-
if (
|
|
127
|
+
const i = litPropertyMetadata.get(t);
|
|
128
|
+
if (i !== void 0) for (const [n, o] of i) this.elementProperties.set(n, o);
|
|
129
129
|
}
|
|
130
130
|
this._$Eh = /* @__PURE__ */ new Map();
|
|
131
|
-
for (const [
|
|
132
|
-
const o = this._$Eu(
|
|
133
|
-
o !== void 0 && this._$Eh.set(o,
|
|
131
|
+
for (const [i, n] of this.elementProperties) {
|
|
132
|
+
const o = this._$Eu(i, n);
|
|
133
|
+
o !== void 0 && this._$Eh.set(o, i);
|
|
134
134
|
}
|
|
135
135
|
this.elementStyles = this.finalizeStyles(this.styles);
|
|
136
136
|
}
|
|
137
137
|
static finalizeStyles(t) {
|
|
138
|
-
const
|
|
138
|
+
const i = [];
|
|
139
139
|
if (Array.isArray(t)) {
|
|
140
|
-
const
|
|
141
|
-
for (const o of
|
|
142
|
-
} else t !== void 0 &&
|
|
143
|
-
return
|
|
140
|
+
const n = new Set(t.flat(1 / 0).reverse());
|
|
141
|
+
for (const o of n) i.unshift(ln(o));
|
|
142
|
+
} else t !== void 0 && i.push(ln(t));
|
|
143
|
+
return i;
|
|
144
144
|
}
|
|
145
|
-
static _$Eu(t,
|
|
146
|
-
const
|
|
147
|
-
return
|
|
145
|
+
static _$Eu(t, i) {
|
|
146
|
+
const n = i.attribute;
|
|
147
|
+
return n === !1 ? void 0 : typeof n == "string" ? n : typeof t == "string" ? t.toLowerCase() : void 0;
|
|
148
148
|
}
|
|
149
149
|
constructor() {
|
|
150
150
|
super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
|
|
151
151
|
}
|
|
152
152
|
_$Ev() {
|
|
153
153
|
var t;
|
|
154
|
-
this._$ES = new Promise((
|
|
154
|
+
this._$ES = new Promise((i) => this.enableUpdating = i), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), (t = this.constructor.l) == null || t.forEach((i) => i(this));
|
|
155
155
|
}
|
|
156
156
|
addController(t) {
|
|
157
|
-
var
|
|
158
|
-
(this._$EO ?? (this._$EO = /* @__PURE__ */ new Set())).add(t), this.renderRoot !== void 0 && this.isConnected && ((
|
|
157
|
+
var i;
|
|
158
|
+
(this._$EO ?? (this._$EO = /* @__PURE__ */ new Set())).add(t), this.renderRoot !== void 0 && this.isConnected && ((i = t.hostConnected) == null || i.call(t));
|
|
159
159
|
}
|
|
160
160
|
removeController(t) {
|
|
161
|
-
var
|
|
162
|
-
(
|
|
161
|
+
var i;
|
|
162
|
+
(i = this._$EO) == null || i.delete(t);
|
|
163
163
|
}
|
|
164
164
|
_$E_() {
|
|
165
|
-
const t = /* @__PURE__ */ new Map(),
|
|
166
|
-
for (const
|
|
165
|
+
const t = /* @__PURE__ */ new Map(), i = this.constructor.elementProperties;
|
|
166
|
+
for (const n of i.keys()) this.hasOwnProperty(n) && (t.set(n, this[n]), delete this[n]);
|
|
167
167
|
t.size > 0 && (this._$Ep = t);
|
|
168
168
|
}
|
|
169
169
|
createRenderRoot() {
|
|
@@ -172,55 +172,55 @@ class jt extends HTMLElement {
|
|
|
172
172
|
}
|
|
173
173
|
connectedCallback() {
|
|
174
174
|
var t;
|
|
175
|
-
this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$EO) == null || t.forEach((
|
|
176
|
-
var
|
|
177
|
-
return (
|
|
175
|
+
this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$EO) == null || t.forEach((i) => {
|
|
176
|
+
var n;
|
|
177
|
+
return (n = i.hostConnected) == null ? void 0 : n.call(i);
|
|
178
178
|
});
|
|
179
179
|
}
|
|
180
180
|
enableUpdating(t) {
|
|
181
181
|
}
|
|
182
182
|
disconnectedCallback() {
|
|
183
183
|
var t;
|
|
184
|
-
(t = this._$EO) == null || t.forEach((
|
|
185
|
-
var
|
|
186
|
-
return (
|
|
184
|
+
(t = this._$EO) == null || t.forEach((i) => {
|
|
185
|
+
var n;
|
|
186
|
+
return (n = i.hostDisconnected) == null ? void 0 : n.call(i);
|
|
187
187
|
});
|
|
188
188
|
}
|
|
189
|
-
attributeChangedCallback(t,
|
|
190
|
-
this._$AK(t,
|
|
189
|
+
attributeChangedCallback(t, i, n) {
|
|
190
|
+
this._$AK(t, n);
|
|
191
191
|
}
|
|
192
|
-
_$EC(t,
|
|
192
|
+
_$EC(t, i) {
|
|
193
193
|
var r;
|
|
194
|
-
const
|
|
195
|
-
if (o !== void 0 &&
|
|
196
|
-
const s = (((r =
|
|
194
|
+
const n = this.constructor.elementProperties.get(t), o = this.constructor._$Eu(t, n);
|
|
195
|
+
if (o !== void 0 && n.reflect === !0) {
|
|
196
|
+
const s = (((r = n.converter) == null ? void 0 : r.toAttribute) !== void 0 ? n.converter : Ii).toAttribute(i, n.type);
|
|
197
197
|
this._$Em = t, s == null ? this.removeAttribute(o) : this.setAttribute(o, s), this._$Em = null;
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
|
-
_$AK(t,
|
|
200
|
+
_$AK(t, i) {
|
|
201
201
|
var r;
|
|
202
|
-
const
|
|
202
|
+
const n = this.constructor, o = n._$Eh.get(t);
|
|
203
203
|
if (o !== void 0 && this._$Em !== o) {
|
|
204
|
-
const s =
|
|
205
|
-
this._$Em = o, this[o] = a.fromAttribute(
|
|
204
|
+
const s = n.getPropertyOptions(o), a = typeof s.converter == "function" ? { fromAttribute: s.converter } : ((r = s.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? s.converter : Ii;
|
|
205
|
+
this._$Em = o, this[o] = a.fromAttribute(i, s.type), this._$Em = null;
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
|
-
requestUpdate(t,
|
|
208
|
+
requestUpdate(t, i, n) {
|
|
209
209
|
if (t !== void 0) {
|
|
210
|
-
if (
|
|
211
|
-
this.P(t,
|
|
210
|
+
if (n ?? (n = this.constructor.getPropertyOptions(t)), !(n.hasChanged ?? Vn)(this[t], i)) return;
|
|
211
|
+
this.P(t, i, n);
|
|
212
212
|
}
|
|
213
213
|
this.isUpdatePending === !1 && (this._$ES = this._$ET());
|
|
214
214
|
}
|
|
215
|
-
P(t,
|
|
216
|
-
this._$AL.has(t) || this._$AL.set(t,
|
|
215
|
+
P(t, i, n) {
|
|
216
|
+
this._$AL.has(t) || this._$AL.set(t, i), n.reflect === !0 && this._$Em !== t && (this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Set())).add(t);
|
|
217
217
|
}
|
|
218
218
|
async _$ET() {
|
|
219
219
|
this.isUpdatePending = !0;
|
|
220
220
|
try {
|
|
221
221
|
await this._$ES;
|
|
222
|
-
} catch (
|
|
223
|
-
Promise.reject(
|
|
222
|
+
} catch (i) {
|
|
223
|
+
Promise.reject(i);
|
|
224
224
|
}
|
|
225
225
|
const t = this.scheduleUpdate();
|
|
226
226
|
return t != null && await t, !this.isUpdatePending;
|
|
@@ -229,7 +229,7 @@ class jt extends HTMLElement {
|
|
|
229
229
|
return this.performUpdate();
|
|
230
230
|
}
|
|
231
231
|
performUpdate() {
|
|
232
|
-
var
|
|
232
|
+
var n;
|
|
233
233
|
if (!this.isUpdatePending) return;
|
|
234
234
|
if (!this.hasUpdated) {
|
|
235
235
|
if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
|
|
@@ -240,24 +240,24 @@ class jt extends HTMLElement {
|
|
|
240
240
|
if (o.size > 0) for (const [r, s] of o) s.wrapped !== !0 || this._$AL.has(r) || this[r] === void 0 || this.P(r, this[r], s);
|
|
241
241
|
}
|
|
242
242
|
let t = !1;
|
|
243
|
-
const
|
|
243
|
+
const i = this._$AL;
|
|
244
244
|
try {
|
|
245
|
-
t = this.shouldUpdate(
|
|
245
|
+
t = this.shouldUpdate(i), t ? (this.willUpdate(i), (n = this._$EO) == null || n.forEach((o) => {
|
|
246
246
|
var r;
|
|
247
247
|
return (r = o.hostUpdate) == null ? void 0 : r.call(o);
|
|
248
|
-
}), this.update(
|
|
248
|
+
}), this.update(i)) : this._$EU();
|
|
249
249
|
} catch (o) {
|
|
250
250
|
throw t = !1, this._$EU(), o;
|
|
251
251
|
}
|
|
252
|
-
t && this._$AE(
|
|
252
|
+
t && this._$AE(i);
|
|
253
253
|
}
|
|
254
254
|
willUpdate(t) {
|
|
255
255
|
}
|
|
256
256
|
_$AE(t) {
|
|
257
|
-
var
|
|
258
|
-
(
|
|
257
|
+
var i;
|
|
258
|
+
(i = this._$EO) == null || i.forEach((n) => {
|
|
259
259
|
var o;
|
|
260
|
-
return (o =
|
|
260
|
+
return (o = n.hostUpdated) == null ? void 0 : o.call(n);
|
|
261
261
|
}), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
|
|
262
262
|
}
|
|
263
263
|
_$EU() {
|
|
@@ -273,85 +273,85 @@ class jt extends HTMLElement {
|
|
|
273
273
|
return !0;
|
|
274
274
|
}
|
|
275
275
|
update(t) {
|
|
276
|
-
this._$Ej && (this._$Ej = this._$Ej.forEach((
|
|
276
|
+
this._$Ej && (this._$Ej = this._$Ej.forEach((i) => this._$EC(i, this[i]))), this._$EU();
|
|
277
277
|
}
|
|
278
278
|
updated(t) {
|
|
279
279
|
}
|
|
280
280
|
firstUpdated(t) {
|
|
281
281
|
}
|
|
282
282
|
}
|
|
283
|
-
jt.elementStyles = [], jt.shadowRootOptions = { mode: "open" }, jt[ae("elementProperties")] = /* @__PURE__ */ new Map(), jt[ae("finalized")] = /* @__PURE__ */ new Map(),
|
|
283
|
+
jt.elementStyles = [], jt.shadowRootOptions = { mode: "open" }, jt[ae("elementProperties")] = /* @__PURE__ */ new Map(), jt[ae("finalized")] = /* @__PURE__ */ new Map(), yi == null || yi({ ReactiveElement: jt }), (Tt.reactiveElementVersions ?? (Tt.reactiveElementVersions = [])).push("2.0.4");
|
|
284
284
|
/**
|
|
285
285
|
* @license
|
|
286
286
|
* Copyright 2017 Google LLC
|
|
287
287
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
288
288
|
*/
|
|
289
|
-
const le = globalThis, Be = le.trustedTypes,
|
|
290
|
-
\f\r]`,
|
|
291
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
|
292
|
-
function
|
|
293
|
-
if (!
|
|
294
|
-
return
|
|
295
|
-
}
|
|
296
|
-
const
|
|
297
|
-
const
|
|
298
|
-
let o, r = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", s =
|
|
299
|
-
for (let a = 0; a <
|
|
289
|
+
const le = globalThis, Be = le.trustedTypes, cn = Be ? Be.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, Xi = "$lit$", ft = `lit$${Math.random().toFixed(9).slice(2)}$`, qi = "?" + ft, rr = `<${qi}>`, Vt = document, fe = () => Vt.createComment(""), ge = (e) => e === null || typeof e != "object" && typeof e != "function", Yi = Array.isArray, Bn = (e) => Yi(e) || typeof (e == null ? void 0 : e[Symbol.iterator]) == "function", bi = `[
|
|
290
|
+
\f\r]`, ie = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, hn = /-->/g, pn = />/g, Ot = RegExp(`>|${bi}(?:([^\\s"'>=/]+)(${bi}*=${bi}*(?:[^
|
|
291
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), fn = /'/g, gn = /"/g, kn = /^(?:script|style|textarea|title)$/i, sr = (e) => (t, ...i) => ({ _$litType$: e, strings: t, values: i }), $ = sr(1), at = Symbol.for("lit-noChange"), P = Symbol.for("lit-nothing"), mn = /* @__PURE__ */ new WeakMap(), Nt = Vt.createTreeWalker(Vt, 129);
|
|
292
|
+
function Un(e, t) {
|
|
293
|
+
if (!Yi(e) || !e.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
294
|
+
return cn !== void 0 ? cn.createHTML(t) : t;
|
|
295
|
+
}
|
|
296
|
+
const Fn = (e, t) => {
|
|
297
|
+
const i = e.length - 1, n = [];
|
|
298
|
+
let o, r = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", s = ie;
|
|
299
|
+
for (let a = 0; a < i; a++) {
|
|
300
300
|
const l = e[a];
|
|
301
|
-
let
|
|
302
|
-
for (; p < l.length && (s.lastIndex = p, c = s.exec(l), c !== null); ) p = s.lastIndex, s ===
|
|
301
|
+
let d, c, u = -1, p = 0;
|
|
302
|
+
for (; p < l.length && (s.lastIndex = p, c = s.exec(l), c !== null); ) p = s.lastIndex, s === ie ? c[1] === "!--" ? s = hn : c[1] !== void 0 ? s = pn : c[2] !== void 0 ? (kn.test(c[2]) && (o = RegExp("</" + c[2], "g")), s = Ot) : c[3] !== void 0 && (s = Ot) : s === Ot ? c[0] === ">" ? (s = o ?? ie, u = -1) : c[1] === void 0 ? u = -2 : (u = s.lastIndex - c[2].length, d = c[1], s = c[3] === void 0 ? Ot : c[3] === '"' ? gn : fn) : s === gn || s === fn ? s = Ot : s === hn || s === pn ? s = ie : (s = Ot, o = void 0);
|
|
303
303
|
const f = s === Ot && e[a + 1].startsWith("/>") ? " " : "";
|
|
304
|
-
r += s ===
|
|
304
|
+
r += s === ie ? l + rr : u >= 0 ? (n.push(d), l.slice(0, u) + Xi + l.slice(u) + ft + f) : l + ft + (u === -2 ? a : f);
|
|
305
305
|
}
|
|
306
|
-
return [
|
|
306
|
+
return [Un(e, r + (e[i] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), n];
|
|
307
307
|
};
|
|
308
308
|
class me {
|
|
309
|
-
constructor({ strings: t, _$litType$:
|
|
309
|
+
constructor({ strings: t, _$litType$: i }, n) {
|
|
310
310
|
let o;
|
|
311
311
|
this.parts = [];
|
|
312
312
|
let r = 0, s = 0;
|
|
313
|
-
const a = t.length - 1, l = this.parts, [
|
|
314
|
-
if (this.el = me.createElement(
|
|
315
|
-
const
|
|
316
|
-
|
|
313
|
+
const a = t.length - 1, l = this.parts, [d, c] = Fn(t, i);
|
|
314
|
+
if (this.el = me.createElement(d, n), Nt.currentNode = this.el.content, i === 2 || i === 3) {
|
|
315
|
+
const u = this.el.content.firstChild;
|
|
316
|
+
u.replaceWith(...u.childNodes);
|
|
317
317
|
}
|
|
318
318
|
for (; (o = Nt.nextNode()) !== null && l.length < a; ) {
|
|
319
319
|
if (o.nodeType === 1) {
|
|
320
|
-
if (o.hasAttributes()) for (const
|
|
321
|
-
const p = c[s++], f = o.getAttribute(
|
|
322
|
-
l.push({ type: 1, index: r, name: g[2], strings: f, ctor: g[1] === "." ?
|
|
323
|
-
} else
|
|
324
|
-
if (
|
|
325
|
-
const
|
|
320
|
+
if (o.hasAttributes()) for (const u of o.getAttributeNames()) if (u.endsWith(Xi)) {
|
|
321
|
+
const p = c[s++], f = o.getAttribute(u).split(ft), g = /([.?@])?(.*)/.exec(p);
|
|
322
|
+
l.push({ type: 1, index: r, name: g[2], strings: f, ctor: g[1] === "." ? Zn : g[1] === "?" ? zn : g[1] === "@" ? Xn : $e }), o.removeAttribute(u);
|
|
323
|
+
} else u.startsWith(ft) && (l.push({ type: 6, index: r }), o.removeAttribute(u));
|
|
324
|
+
if (kn.test(o.tagName)) {
|
|
325
|
+
const u = o.textContent.split(ft), p = u.length - 1;
|
|
326
326
|
if (p > 0) {
|
|
327
327
|
o.textContent = Be ? Be.emptyScript : "";
|
|
328
|
-
for (let f = 0; f < p; f++) o.append(
|
|
329
|
-
o.append(
|
|
328
|
+
for (let f = 0; f < p; f++) o.append(u[f], fe()), Nt.nextNode(), l.push({ type: 2, index: ++r });
|
|
329
|
+
o.append(u[p], fe());
|
|
330
330
|
}
|
|
331
331
|
}
|
|
332
|
-
} else if (o.nodeType === 8) if (o.data ===
|
|
332
|
+
} else if (o.nodeType === 8) if (o.data === qi) l.push({ type: 2, index: r });
|
|
333
333
|
else {
|
|
334
|
-
let
|
|
335
|
-
for (; (
|
|
334
|
+
let u = -1;
|
|
335
|
+
for (; (u = o.data.indexOf(ft, u + 1)) !== -1; ) l.push({ type: 7, index: r }), u += ft.length - 1;
|
|
336
336
|
}
|
|
337
337
|
r++;
|
|
338
338
|
}
|
|
339
339
|
}
|
|
340
|
-
static createElement(t,
|
|
341
|
-
const
|
|
342
|
-
return
|
|
340
|
+
static createElement(t, i) {
|
|
341
|
+
const n = Vt.createElement("template");
|
|
342
|
+
return n.innerHTML = t, n;
|
|
343
343
|
}
|
|
344
344
|
}
|
|
345
|
-
function Bt(e, t,
|
|
345
|
+
function Bt(e, t, i = e, n) {
|
|
346
346
|
var s, a;
|
|
347
347
|
if (t === at) return t;
|
|
348
|
-
let o =
|
|
348
|
+
let o = n !== void 0 ? (s = i._$Co) == null ? void 0 : s[n] : i._$Cl;
|
|
349
349
|
const r = ge(t) ? void 0 : t._$litDirective$;
|
|
350
|
-
return (o == null ? void 0 : o.constructor) !== r && ((a = o == null ? void 0 : o._$AO) == null || a.call(o, !1), r === void 0 ? o = void 0 : (o = new r(e), o._$AT(e,
|
|
350
|
+
return (o == null ? void 0 : o.constructor) !== r && ((a = o == null ? void 0 : o._$AO) == null || a.call(o, !1), r === void 0 ? o = void 0 : (o = new r(e), o._$AT(e, i, n)), n !== void 0 ? (i._$Co ?? (i._$Co = []))[n] = o : i._$Cl = o), o !== void 0 && (t = Bt(e, o._$AS(e, t.values), o, n)), t;
|
|
351
351
|
}
|
|
352
|
-
let
|
|
353
|
-
constructor(t,
|
|
354
|
-
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM =
|
|
352
|
+
let jn = class {
|
|
353
|
+
constructor(t, i) {
|
|
354
|
+
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = i;
|
|
355
355
|
}
|
|
356
356
|
get parentNode() {
|
|
357
357
|
return this._$AM.parentNode;
|
|
@@ -360,21 +360,21 @@ let ji = class {
|
|
|
360
360
|
return this._$AM._$AU;
|
|
361
361
|
}
|
|
362
362
|
u(t) {
|
|
363
|
-
const { el: { content:
|
|
363
|
+
const { el: { content: i }, parts: n } = this._$AD, o = ((t == null ? void 0 : t.creationScope) ?? Vt).importNode(i, !0);
|
|
364
364
|
Nt.currentNode = o;
|
|
365
|
-
let r = Nt.nextNode(), s = 0, a = 0, l =
|
|
365
|
+
let r = Nt.nextNode(), s = 0, a = 0, l = n[0];
|
|
366
366
|
for (; l !== void 0; ) {
|
|
367
367
|
if (s === l.index) {
|
|
368
|
-
let
|
|
369
|
-
l.type === 2 ?
|
|
368
|
+
let d;
|
|
369
|
+
l.type === 2 ? d = new Jt(r, r.nextSibling, this, t) : l.type === 1 ? d = new l.ctor(r, l.name, l.strings, this, t) : l.type === 6 && (d = new qn(r, this, t)), this._$AV.push(d), l = n[++a];
|
|
370
370
|
}
|
|
371
371
|
s !== (l == null ? void 0 : l.index) && (r = Nt.nextNode(), s++);
|
|
372
372
|
}
|
|
373
373
|
return Nt.currentNode = Vt, o;
|
|
374
374
|
}
|
|
375
375
|
p(t) {
|
|
376
|
-
let
|
|
377
|
-
for (const
|
|
376
|
+
let i = 0;
|
|
377
|
+
for (const n of this._$AV) n !== void 0 && (n.strings !== void 0 ? (n._$AI(t, n, i), i += n.strings.length - 2) : n._$AI(t[i])), i++;
|
|
378
378
|
}
|
|
379
379
|
};
|
|
380
380
|
class Jt {
|
|
@@ -382,13 +382,13 @@ class Jt {
|
|
|
382
382
|
var t;
|
|
383
383
|
return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
|
|
384
384
|
}
|
|
385
|
-
constructor(t,
|
|
386
|
-
this.type = 2, this._$AH = P, this._$AN = void 0, this._$AA = t, this._$AB =
|
|
385
|
+
constructor(t, i, n, o) {
|
|
386
|
+
this.type = 2, this._$AH = P, this._$AN = void 0, this._$AA = t, this._$AB = i, this._$AM = n, this.options = o, this._$Cv = (o == null ? void 0 : o.isConnected) ?? !0;
|
|
387
387
|
}
|
|
388
388
|
get parentNode() {
|
|
389
389
|
let t = this._$AA.parentNode;
|
|
390
|
-
const
|
|
391
|
-
return
|
|
390
|
+
const i = this._$AM;
|
|
391
|
+
return i !== void 0 && (t == null ? void 0 : t.nodeType) === 11 && (t = i.parentNode), t;
|
|
392
392
|
}
|
|
393
393
|
get startNode() {
|
|
394
394
|
return this._$AA;
|
|
@@ -396,8 +396,8 @@ class Jt {
|
|
|
396
396
|
get endNode() {
|
|
397
397
|
return this._$AB;
|
|
398
398
|
}
|
|
399
|
-
_$AI(t,
|
|
400
|
-
t = Bt(this, t,
|
|
399
|
+
_$AI(t, i = this) {
|
|
400
|
+
t = Bt(this, t, i), ge(t) ? t === P || t == null || t === "" ? (this._$AH !== P && this._$AR(), this._$AH = P) : t !== this._$AH && t !== at && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Bn(t) ? this.k(t) : this._(t);
|
|
401
401
|
}
|
|
402
402
|
O(t) {
|
|
403
403
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
@@ -410,34 +410,34 @@ class Jt {
|
|
|
410
410
|
}
|
|
411
411
|
$(t) {
|
|
412
412
|
var r;
|
|
413
|
-
const { values:
|
|
414
|
-
if (((r = this._$AH) == null ? void 0 : r._$AD) === o) this._$AH.p(
|
|
413
|
+
const { values: i, _$litType$: n } = t, o = typeof n == "number" ? this._$AC(t) : (n.el === void 0 && (n.el = me.createElement(Un(n.h, n.h[0]), this.options)), n);
|
|
414
|
+
if (((r = this._$AH) == null ? void 0 : r._$AD) === o) this._$AH.p(i);
|
|
415
415
|
else {
|
|
416
|
-
const s = new
|
|
417
|
-
s.p(
|
|
416
|
+
const s = new jn(o, this), a = s.u(this.options);
|
|
417
|
+
s.p(i), this.T(a), this._$AH = s;
|
|
418
418
|
}
|
|
419
419
|
}
|
|
420
420
|
_$AC(t) {
|
|
421
|
-
let
|
|
422
|
-
return
|
|
421
|
+
let i = mn.get(t.strings);
|
|
422
|
+
return i === void 0 && mn.set(t.strings, i = new me(t)), i;
|
|
423
423
|
}
|
|
424
424
|
k(t) {
|
|
425
|
-
|
|
426
|
-
const
|
|
427
|
-
let
|
|
428
|
-
for (const r of t) o ===
|
|
429
|
-
o <
|
|
425
|
+
Yi(this._$AH) || (this._$AH = [], this._$AR());
|
|
426
|
+
const i = this._$AH;
|
|
427
|
+
let n, o = 0;
|
|
428
|
+
for (const r of t) o === i.length ? i.push(n = new Jt(this.O(fe()), this.O(fe()), this, this.options)) : n = i[o], n._$AI(r), o++;
|
|
429
|
+
o < i.length && (this._$AR(n && n._$AB.nextSibling, o), i.length = o);
|
|
430
430
|
}
|
|
431
|
-
_$AR(t = this._$AA.nextSibling,
|
|
432
|
-
var
|
|
433
|
-
for ((
|
|
431
|
+
_$AR(t = this._$AA.nextSibling, i) {
|
|
432
|
+
var n;
|
|
433
|
+
for ((n = this._$AP) == null ? void 0 : n.call(this, !1, !0, i); t && t !== this._$AB; ) {
|
|
434
434
|
const o = t.nextSibling;
|
|
435
435
|
t.remove(), t = o;
|
|
436
436
|
}
|
|
437
437
|
}
|
|
438
438
|
setConnected(t) {
|
|
439
|
-
var
|
|
440
|
-
this._$AM === void 0 && (this._$Cv = t, (
|
|
439
|
+
var i;
|
|
440
|
+
this._$AM === void 0 && (this._$Cv = t, (i = this._$AP) == null || i.call(this, t));
|
|
441
441
|
}
|
|
442
442
|
}
|
|
443
443
|
class $e {
|
|
@@ -447,17 +447,17 @@ class $e {
|
|
|
447
447
|
get _$AU() {
|
|
448
448
|
return this._$AM._$AU;
|
|
449
449
|
}
|
|
450
|
-
constructor(t,
|
|
451
|
-
this.type = 1, this._$AH = P, this._$AN = void 0, this.element = t, this.name =
|
|
450
|
+
constructor(t, i, n, o, r) {
|
|
451
|
+
this.type = 1, this._$AH = P, this._$AN = void 0, this.element = t, this.name = i, this._$AM = o, this.options = r, n.length > 2 || n[0] !== "" || n[1] !== "" ? (this._$AH = Array(n.length - 1).fill(new String()), this.strings = n) : this._$AH = P;
|
|
452
452
|
}
|
|
453
|
-
_$AI(t,
|
|
453
|
+
_$AI(t, i = this, n, o) {
|
|
454
454
|
const r = this.strings;
|
|
455
455
|
let s = !1;
|
|
456
|
-
if (r === void 0) t = Bt(this, t,
|
|
456
|
+
if (r === void 0) t = Bt(this, t, i, 0), s = !ge(t) || t !== this._$AH && t !== at, s && (this._$AH = t);
|
|
457
457
|
else {
|
|
458
458
|
const a = t;
|
|
459
|
-
let l,
|
|
460
|
-
for (t = r[0], l = 0; l < r.length - 1; l++)
|
|
459
|
+
let l, d;
|
|
460
|
+
for (t = r[0], l = 0; l < r.length - 1; l++) d = Bt(this, a[n + l], i, l), d === at && (d = this._$AH[l]), s || (s = !ge(d) || d !== this._$AH[l]), d === P ? t = P : t !== P && (t += (d ?? "") + r[l + 1]), this._$AH[l] = d;
|
|
461
461
|
}
|
|
462
462
|
s && !o && this.j(t);
|
|
463
463
|
}
|
|
@@ -465,7 +465,7 @@ class $e {
|
|
|
465
465
|
t === P ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
466
466
|
}
|
|
467
467
|
}
|
|
468
|
-
class
|
|
468
|
+
class Zn extends $e {
|
|
469
469
|
constructor() {
|
|
470
470
|
super(...arguments), this.type = 3;
|
|
471
471
|
}
|
|
@@ -473,7 +473,7 @@ class Zi extends $e {
|
|
|
473
473
|
this.element[this.name] = t === P ? void 0 : t;
|
|
474
474
|
}
|
|
475
475
|
}
|
|
476
|
-
class
|
|
476
|
+
class zn extends $e {
|
|
477
477
|
constructor() {
|
|
478
478
|
super(...arguments), this.type = 4;
|
|
479
479
|
}
|
|
@@ -481,23 +481,23 @@ class zi extends $e {
|
|
|
481
481
|
this.element.toggleAttribute(this.name, !!t && t !== P);
|
|
482
482
|
}
|
|
483
483
|
}
|
|
484
|
-
class
|
|
485
|
-
constructor(t,
|
|
486
|
-
super(t,
|
|
484
|
+
class Xn extends $e {
|
|
485
|
+
constructor(t, i, n, o, r) {
|
|
486
|
+
super(t, i, n, o, r), this.type = 5;
|
|
487
487
|
}
|
|
488
|
-
_$AI(t,
|
|
489
|
-
if ((t = Bt(this, t,
|
|
490
|
-
const
|
|
491
|
-
o && this.element.removeEventListener(this.name, this,
|
|
488
|
+
_$AI(t, i = this) {
|
|
489
|
+
if ((t = Bt(this, t, i, 0) ?? P) === at) return;
|
|
490
|
+
const n = this._$AH, o = t === P && n !== P || t.capture !== n.capture || t.once !== n.once || t.passive !== n.passive, r = t !== P && (n === P || o);
|
|
491
|
+
o && this.element.removeEventListener(this.name, this, n), r && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
492
492
|
}
|
|
493
493
|
handleEvent(t) {
|
|
494
|
-
var
|
|
495
|
-
typeof this._$AH == "function" ? this._$AH.call(((
|
|
494
|
+
var i;
|
|
495
|
+
typeof this._$AH == "function" ? this._$AH.call(((i = this.options) == null ? void 0 : i.host) ?? this.element, t) : this._$AH.handleEvent(t);
|
|
496
496
|
}
|
|
497
497
|
}
|
|
498
|
-
class
|
|
499
|
-
constructor(t,
|
|
500
|
-
this.element = t, this.type = 6, this._$AN = void 0, this._$AM =
|
|
498
|
+
class qn {
|
|
499
|
+
constructor(t, i, n) {
|
|
500
|
+
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = i, this.options = n;
|
|
501
501
|
}
|
|
502
502
|
get _$AU() {
|
|
503
503
|
return this._$AM._$AU;
|
|
@@ -506,14 +506,14 @@ class qi {
|
|
|
506
506
|
Bt(this, t);
|
|
507
507
|
}
|
|
508
508
|
}
|
|
509
|
-
const ar = { M:
|
|
510
|
-
|
|
511
|
-
const lr = (e, t,
|
|
512
|
-
const
|
|
513
|
-
let o =
|
|
509
|
+
const ar = { M: Xi, P: ft, A: qi, C: 1, L: Fn, R: jn, D: Bn, V: Bt, I: Jt, H: $e, N: zn, U: Xn, B: Zn, F: qn }, vi = le.litHtmlPolyfillSupport;
|
|
510
|
+
vi == null || vi(me, Jt), (le.litHtmlVersions ?? (le.litHtmlVersions = [])).push("3.2.1");
|
|
511
|
+
const lr = (e, t, i) => {
|
|
512
|
+
const n = (i == null ? void 0 : i.renderBefore) ?? t;
|
|
513
|
+
let o = n._$litPart$;
|
|
514
514
|
if (o === void 0) {
|
|
515
|
-
const r = (
|
|
516
|
-
|
|
515
|
+
const r = (i == null ? void 0 : i.renderBefore) ?? null;
|
|
516
|
+
n._$litPart$ = o = new Jt(t.insertBefore(fe(), r), r, void 0, i ?? {});
|
|
517
517
|
}
|
|
518
518
|
return o._$AI(e), o;
|
|
519
519
|
};
|
|
@@ -527,13 +527,13 @@ let tt = class extends jt {
|
|
|
527
527
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
528
528
|
}
|
|
529
529
|
createRenderRoot() {
|
|
530
|
-
var
|
|
530
|
+
var i;
|
|
531
531
|
const t = super.createRenderRoot();
|
|
532
|
-
return (
|
|
532
|
+
return (i = this.renderOptions).renderBefore ?? (i.renderBefore = t.firstChild), t;
|
|
533
533
|
}
|
|
534
534
|
update(t) {
|
|
535
|
-
const
|
|
536
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = lr(
|
|
535
|
+
const i = this.render();
|
|
536
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = lr(i, this.renderRoot, this.renderOptions);
|
|
537
537
|
}
|
|
538
538
|
connectedCallback() {
|
|
539
539
|
var t;
|
|
@@ -547,39 +547,39 @@ let tt = class extends jt {
|
|
|
547
547
|
return at;
|
|
548
548
|
}
|
|
549
549
|
};
|
|
550
|
-
var
|
|
551
|
-
tt._$litElement$ = !0, tt.finalized = !0, (
|
|
552
|
-
const
|
|
553
|
-
|
|
550
|
+
var In;
|
|
551
|
+
tt._$litElement$ = !0, tt.finalized = !0, (In = globalThis.litElementHydrateSupport) == null || In.call(globalThis, { LitElement: tt });
|
|
552
|
+
const wi = globalThis.litElementPolyfillSupport;
|
|
553
|
+
wi == null || wi({ LitElement: tt });
|
|
554
554
|
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.1.1");
|
|
555
555
|
/**
|
|
556
556
|
* @license
|
|
557
557
|
* Copyright 2021 Google LLC
|
|
558
558
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
559
559
|
*/
|
|
560
|
-
function F(e, t,
|
|
561
|
-
return e ? t(e) :
|
|
560
|
+
function F(e, t, i) {
|
|
561
|
+
return e ? t(e) : i == null ? void 0 : i(e);
|
|
562
562
|
}
|
|
563
563
|
/**
|
|
564
564
|
* @license
|
|
565
565
|
* Copyright 2017 Google LLC
|
|
566
566
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
567
567
|
*/
|
|
568
|
-
const xt = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 },
|
|
569
|
-
class
|
|
568
|
+
const xt = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, Wi = (e) => (...t) => ({ _$litDirective$: e, values: t });
|
|
569
|
+
class Gi {
|
|
570
570
|
constructor(t) {
|
|
571
571
|
}
|
|
572
572
|
get _$AU() {
|
|
573
573
|
return this._$AM._$AU;
|
|
574
574
|
}
|
|
575
|
-
_$AT(t,
|
|
576
|
-
this._$Ct = t, this._$AM =
|
|
575
|
+
_$AT(t, i, n) {
|
|
576
|
+
this._$Ct = t, this._$AM = i, this._$Ci = n;
|
|
577
577
|
}
|
|
578
|
-
_$AS(t,
|
|
579
|
-
return this.update(t,
|
|
578
|
+
_$AS(t, i) {
|
|
579
|
+
return this.update(t, i);
|
|
580
580
|
}
|
|
581
|
-
update(t,
|
|
582
|
-
return this.render(...
|
|
581
|
+
update(t, i) {
|
|
582
|
+
return this.render(...i);
|
|
583
583
|
}
|
|
584
584
|
}
|
|
585
585
|
/**
|
|
@@ -587,33 +587,33 @@ class Jn {
|
|
|
587
587
|
* Copyright 2020 Google LLC
|
|
588
588
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
589
589
|
*/
|
|
590
|
-
const { I:
|
|
590
|
+
const { I: dr } = ar, ur = (e) => e.strings === void 0, yn = () => document.createComment(""), ne = (e, t, i) => {
|
|
591
591
|
var r;
|
|
592
|
-
const
|
|
593
|
-
if (
|
|
594
|
-
const s =
|
|
595
|
-
|
|
592
|
+
const n = e._$AA.parentNode, o = t === void 0 ? e._$AB : t._$AA;
|
|
593
|
+
if (i === void 0) {
|
|
594
|
+
const s = n.insertBefore(yn(), o), a = n.insertBefore(yn(), o);
|
|
595
|
+
i = new dr(s, a, e, e.options);
|
|
596
596
|
} else {
|
|
597
|
-
const s =
|
|
597
|
+
const s = i._$AB.nextSibling, a = i._$AM, l = a !== e;
|
|
598
598
|
if (l) {
|
|
599
|
-
let
|
|
600
|
-
(r =
|
|
599
|
+
let d;
|
|
600
|
+
(r = i._$AQ) == null || r.call(i, e), i._$AM = e, i._$AP !== void 0 && (d = e._$AU) !== a._$AU && i._$AP(d);
|
|
601
601
|
}
|
|
602
602
|
if (s !== o || l) {
|
|
603
|
-
let
|
|
604
|
-
for (;
|
|
605
|
-
const c =
|
|
606
|
-
|
|
603
|
+
let d = i._$AA;
|
|
604
|
+
for (; d !== s; ) {
|
|
605
|
+
const c = d.nextSibling;
|
|
606
|
+
n.insertBefore(d, o), d = c;
|
|
607
607
|
}
|
|
608
608
|
}
|
|
609
609
|
}
|
|
610
|
-
return
|
|
611
|
-
}, Rt = (e, t,
|
|
612
|
-
var
|
|
613
|
-
(
|
|
610
|
+
return i;
|
|
611
|
+
}, Rt = (e, t, i = e) => (e._$AI(t, i), e), cr = {}, Yn = (e, t = cr) => e._$AH = t, hr = (e) => e._$AH, $i = (e) => {
|
|
612
|
+
var n;
|
|
613
|
+
(n = e._$AP) == null || n.call(e, !1, !0);
|
|
614
614
|
let t = e._$AA;
|
|
615
|
-
const
|
|
616
|
-
for (; t !==
|
|
615
|
+
const i = e._$AB.nextSibling;
|
|
616
|
+
for (; t !== i; ) {
|
|
617
617
|
const o = t.nextSibling;
|
|
618
618
|
t.remove(), t = o;
|
|
619
619
|
}
|
|
@@ -623,54 +623,54 @@ const { I: ur } = ar, dr = (e) => e.strings === void 0, yi = () => document.crea
|
|
|
623
623
|
* Copyright 2017 Google LLC
|
|
624
624
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
625
625
|
*/
|
|
626
|
-
const
|
|
627
|
-
const
|
|
628
|
-
for (let o = t; o <=
|
|
629
|
-
return
|
|
630
|
-
}, pr =
|
|
626
|
+
const bn = (e, t, i) => {
|
|
627
|
+
const n = /* @__PURE__ */ new Map();
|
|
628
|
+
for (let o = t; o <= i; o++) n.set(e[o], o);
|
|
629
|
+
return n;
|
|
630
|
+
}, pr = Wi(class extends Gi {
|
|
631
631
|
constructor(e) {
|
|
632
632
|
if (super(e), e.type !== xt.CHILD) throw Error("repeat() can only be used in text expressions");
|
|
633
633
|
}
|
|
634
|
-
dt(e, t,
|
|
635
|
-
let
|
|
636
|
-
|
|
634
|
+
dt(e, t, i) {
|
|
635
|
+
let n;
|
|
636
|
+
i === void 0 ? i = t : t !== void 0 && (n = t);
|
|
637
637
|
const o = [], r = [];
|
|
638
638
|
let s = 0;
|
|
639
|
-
for (const a of e) o[s] =
|
|
639
|
+
for (const a of e) o[s] = n ? n(a, s) : s, r[s] = i(a, s), s++;
|
|
640
640
|
return { values: r, keys: o };
|
|
641
641
|
}
|
|
642
|
-
render(e, t,
|
|
643
|
-
return this.dt(e, t,
|
|
642
|
+
render(e, t, i) {
|
|
643
|
+
return this.dt(e, t, i).values;
|
|
644
644
|
}
|
|
645
|
-
update(e, [t,
|
|
646
|
-
const o = hr(e), { values: r, keys: s } = this.dt(t,
|
|
645
|
+
update(e, [t, i, n]) {
|
|
646
|
+
const o = hr(e), { values: r, keys: s } = this.dt(t, i, n);
|
|
647
647
|
if (!Array.isArray(o)) return this.ut = s, r;
|
|
648
648
|
const a = this.ut ?? (this.ut = []), l = [];
|
|
649
|
-
let
|
|
650
|
-
for (;
|
|
649
|
+
let d, c, u = 0, p = o.length - 1, f = 0, g = r.length - 1;
|
|
650
|
+
for (; u <= p && f <= g; ) if (o[u] === null) u++;
|
|
651
651
|
else if (o[p] === null) p--;
|
|
652
|
-
else if (a[
|
|
652
|
+
else if (a[u] === s[f]) l[f] = Rt(o[u], r[f]), u++, f++;
|
|
653
653
|
else if (a[p] === s[g]) l[g] = Rt(o[p], r[g]), p--, g--;
|
|
654
|
-
else if (a[
|
|
655
|
-
else if (a[p] === s[f]) l[f] = Rt(o[p], r[f]),
|
|
656
|
-
else if (
|
|
654
|
+
else if (a[u] === s[g]) l[g] = Rt(o[u], r[g]), ne(e, l[g + 1], o[u]), u++, g--;
|
|
655
|
+
else if (a[p] === s[f]) l[f] = Rt(o[p], r[f]), ne(e, o[u], o[p]), p--, f++;
|
|
656
|
+
else if (d === void 0 && (d = bn(s, f, g), c = bn(a, u, p)), d.has(a[u])) if (d.has(a[p])) {
|
|
657
657
|
const y = c.get(s[f]), D = y !== void 0 ? o[y] : null;
|
|
658
658
|
if (D === null) {
|
|
659
|
-
const M =
|
|
659
|
+
const M = ne(e, o[u]);
|
|
660
660
|
Rt(M, r[f]), l[f] = M;
|
|
661
|
-
} else l[f] = Rt(D, r[f]),
|
|
661
|
+
} else l[f] = Rt(D, r[f]), ne(e, o[u], D), o[y] = null;
|
|
662
662
|
f++;
|
|
663
|
-
} else
|
|
664
|
-
else
|
|
663
|
+
} else $i(o[p]), p--;
|
|
664
|
+
else $i(o[u]), u++;
|
|
665
665
|
for (; f <= g; ) {
|
|
666
|
-
const y =
|
|
666
|
+
const y = ne(e, l[g + 1]);
|
|
667
667
|
Rt(y, r[f]), l[f++] = y;
|
|
668
668
|
}
|
|
669
|
-
for (;
|
|
670
|
-
const y = o[
|
|
671
|
-
y !== null &&
|
|
669
|
+
for (; u <= p; ) {
|
|
670
|
+
const y = o[u++];
|
|
671
|
+
y !== null && $i(y);
|
|
672
672
|
}
|
|
673
|
-
return this.ut = s,
|
|
673
|
+
return this.ut = s, Yn(e, l), at;
|
|
674
674
|
}
|
|
675
675
|
});
|
|
676
676
|
/**
|
|
@@ -679,7 +679,7 @@ const bi = (e, t, n) => {
|
|
|
679
679
|
* @license BSD-2-Clause
|
|
680
680
|
* @preserve
|
|
681
681
|
*/
|
|
682
|
-
var E = (e) => e !== void 0,
|
|
682
|
+
var E = (e) => e !== void 0, Wn = (e, t, i) => t in e ? e[t] : e[t] = i;
|
|
683
683
|
const ye = {
|
|
684
684
|
ELEMENT: 1,
|
|
685
685
|
ATTRIBUTE: 2,
|
|
@@ -718,29 +718,29 @@ class fr {
|
|
|
718
718
|
* @return {string} All text content.
|
|
719
719
|
* @api
|
|
720
720
|
*/
|
|
721
|
-
getAllTextContent(t,
|
|
722
|
-
return
|
|
721
|
+
getAllTextContent(t, i) {
|
|
722
|
+
return fi(t, i).join("");
|
|
723
723
|
}
|
|
724
724
|
}
|
|
725
|
-
function
|
|
726
|
-
return
|
|
725
|
+
function fi(e, t) {
|
|
726
|
+
return Gn(e, t, []).join("");
|
|
727
727
|
}
|
|
728
|
-
function
|
|
728
|
+
function Gn(e, t, i) {
|
|
729
729
|
if (e.nodeType === ye.CDATA_SECTION || e.nodeType === ye.TEXT)
|
|
730
|
-
t ?
|
|
730
|
+
t ? i.push(String(e.nodeValue).replace(/(\r\n|\r|\n)/g, "")) : i.push(e.nodeValue);
|
|
731
731
|
else {
|
|
732
|
-
var
|
|
733
|
-
for (
|
|
734
|
-
|
|
732
|
+
var n;
|
|
733
|
+
for (n = e.firstChild; n; n = n.nextSibling)
|
|
734
|
+
Gn(n, t, i);
|
|
735
735
|
}
|
|
736
|
-
return
|
|
736
|
+
return i;
|
|
737
737
|
}
|
|
738
|
-
function gr(e, t,
|
|
738
|
+
function gr(e, t, i, n) {
|
|
739
739
|
for (var o = mr(t); o; o = yr(o)) {
|
|
740
740
|
var r = o.namespaceURI || null, s = e[r];
|
|
741
741
|
if (E(s)) {
|
|
742
742
|
var a = s[o.localName];
|
|
743
|
-
E(a) && a.call(
|
|
743
|
+
E(a) && a.call(n, o, i);
|
|
744
744
|
}
|
|
745
745
|
}
|
|
746
746
|
}
|
|
@@ -756,79 +756,79 @@ function yr(e) {
|
|
|
756
756
|
t = t.nextSibling;
|
|
757
757
|
return t;
|
|
758
758
|
}
|
|
759
|
-
function Y(e, t,
|
|
759
|
+
function Y(e, t, i) {
|
|
760
760
|
return (
|
|
761
761
|
/** @type {Object.<string, Object.<string, XMLParser.Parser>>} */
|
|
762
|
-
br(e, t,
|
|
762
|
+
br(e, t, i)
|
|
763
763
|
);
|
|
764
764
|
}
|
|
765
|
-
function br(e, t,
|
|
766
|
-
var
|
|
765
|
+
function br(e, t, i) {
|
|
766
|
+
var n = E(i) ? i : {}, o, r;
|
|
767
767
|
for (o = 0, r = e.length; o < r; ++o)
|
|
768
|
-
|
|
769
|
-
return
|
|
768
|
+
n[e[o]] = t;
|
|
769
|
+
return n;
|
|
770
770
|
}
|
|
771
|
-
function
|
|
771
|
+
function Jn(e, t) {
|
|
772
772
|
return (
|
|
773
773
|
/**
|
|
774
774
|
* @param {Node} node Node.
|
|
775
775
|
* @param {Array.<*>} objectStack Object stack.
|
|
776
776
|
*/
|
|
777
|
-
function(
|
|
777
|
+
function(i, n) {
|
|
778
778
|
var o = e.call(
|
|
779
779
|
E(t) ? t : this,
|
|
780
|
-
|
|
781
|
-
|
|
780
|
+
i,
|
|
781
|
+
n
|
|
782
782
|
);
|
|
783
783
|
if (E(o)) {
|
|
784
|
-
var r =
|
|
784
|
+
var r = n[n.length - 1];
|
|
785
785
|
r.push(o);
|
|
786
786
|
}
|
|
787
787
|
}
|
|
788
788
|
);
|
|
789
789
|
}
|
|
790
|
-
function j(e, t,
|
|
791
|
-
return
|
|
790
|
+
function j(e, t, i, n, o) {
|
|
791
|
+
return n.push(e), gr(t, i, n, o), n.pop();
|
|
792
792
|
}
|
|
793
|
-
function m(e, t,
|
|
793
|
+
function m(e, t, i) {
|
|
794
794
|
return (
|
|
795
795
|
/**
|
|
796
796
|
* @param {Node} node Node.
|
|
797
797
|
* @param {Array.<*>} objectStack Object stack.
|
|
798
798
|
*/
|
|
799
|
-
function(
|
|
799
|
+
function(n, o) {
|
|
800
800
|
let r = e.call(
|
|
801
|
-
E(
|
|
802
|
-
|
|
801
|
+
E(i) ? i : this,
|
|
802
|
+
n,
|
|
803
803
|
o
|
|
804
804
|
);
|
|
805
805
|
if (E(r)) {
|
|
806
806
|
var s = (
|
|
807
807
|
/** @type {Object} */
|
|
808
808
|
o[o.length - 1]
|
|
809
|
-
), a = E(t) ? t :
|
|
809
|
+
), a = E(t) ? t : n.localName;
|
|
810
810
|
s[a] = r;
|
|
811
811
|
}
|
|
812
812
|
}
|
|
813
813
|
);
|
|
814
814
|
}
|
|
815
|
-
function
|
|
815
|
+
function it(e, t, i) {
|
|
816
816
|
return (
|
|
817
817
|
/**
|
|
818
818
|
* @param {Node} node Node.
|
|
819
819
|
* @param {Array.<*>} objectStack Object stack.
|
|
820
820
|
*/
|
|
821
|
-
function(
|
|
821
|
+
function(n, o) {
|
|
822
822
|
var r = e.call(
|
|
823
|
-
E(
|
|
824
|
-
|
|
823
|
+
E(i) ? i : this,
|
|
824
|
+
n,
|
|
825
825
|
o
|
|
826
826
|
);
|
|
827
827
|
if (E(r)) {
|
|
828
828
|
var s = (
|
|
829
829
|
/** @type {Object} */
|
|
830
830
|
o[o.length - 1]
|
|
831
|
-
), a = E(t) ? t :
|
|
831
|
+
), a = E(t) ? t : n.localName, l = Wn(s, a, []);
|
|
832
832
|
l.push(r);
|
|
833
833
|
}
|
|
834
834
|
}
|
|
@@ -844,15 +844,15 @@ function Ht(e) {
|
|
|
844
844
|
return E(t[1]) || !1;
|
|
845
845
|
}
|
|
846
846
|
function zt(e) {
|
|
847
|
-
return gt(
|
|
847
|
+
return gt(fi(e, !1));
|
|
848
848
|
}
|
|
849
849
|
function gt(e) {
|
|
850
850
|
const t = /^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*$/i.exec(e);
|
|
851
851
|
if (t)
|
|
852
852
|
return parseFloat(t[1]);
|
|
853
853
|
}
|
|
854
|
-
function
|
|
855
|
-
return ke(
|
|
854
|
+
function xi(e) {
|
|
855
|
+
return ke(fi(e, !1));
|
|
856
856
|
}
|
|
857
857
|
function ke(e) {
|
|
858
858
|
const t = /^\s*(\d+)\s*$/.exec(e);
|
|
@@ -860,16 +860,16 @@ function ke(e) {
|
|
|
860
860
|
return parseInt(t[1], 10);
|
|
861
861
|
}
|
|
862
862
|
function _(e) {
|
|
863
|
-
return wr(
|
|
863
|
+
return wr(fi(e, !1));
|
|
864
864
|
}
|
|
865
865
|
const $r = "http://www.w3.org/1999/xlink";
|
|
866
|
-
function
|
|
866
|
+
function Ji(e) {
|
|
867
867
|
return e.getAttributeNS($r, "href");
|
|
868
868
|
}
|
|
869
869
|
function xr(e, t) {
|
|
870
870
|
return j({}, Wr, e, t);
|
|
871
871
|
}
|
|
872
|
-
function
|
|
872
|
+
function Kn(e) {
|
|
873
873
|
return [
|
|
874
874
|
gt(e.getAttribute("minx")),
|
|
875
875
|
gt(e.getAttribute("miny")),
|
|
@@ -878,49 +878,49 @@ function Ki(e) {
|
|
|
878
878
|
];
|
|
879
879
|
}
|
|
880
880
|
function Er(e, t) {
|
|
881
|
-
const
|
|
881
|
+
const i = Kn(e), n = [
|
|
882
882
|
gt(e.getAttribute("resx")),
|
|
883
883
|
gt(e.getAttribute("resy"))
|
|
884
884
|
];
|
|
885
885
|
return {
|
|
886
886
|
crs: e.getAttribute("CRS") || e.getAttribute("SRS"),
|
|
887
|
-
extent:
|
|
888
|
-
res:
|
|
887
|
+
extent: i,
|
|
888
|
+
res: n
|
|
889
889
|
};
|
|
890
890
|
}
|
|
891
891
|
function Sr(e, t) {
|
|
892
|
-
const
|
|
893
|
-
if (!(!E(
|
|
894
|
-
return
|
|
892
|
+
const i = Kn(e);
|
|
893
|
+
if (!(!E(i[0]) || !E(i[1]) || !E(i[2]) || !E(i[3])))
|
|
894
|
+
return i;
|
|
895
895
|
}
|
|
896
896
|
function Ar(e, t) {
|
|
897
|
-
const
|
|
898
|
-
return { min:
|
|
897
|
+
const i = parseFloat(e.getAttribute("min")), n = parseFloat(e.getAttribute("max"));
|
|
898
|
+
return { min: i, max: n };
|
|
899
899
|
}
|
|
900
900
|
function _r(e, t) {
|
|
901
|
-
const
|
|
901
|
+
const i = j(
|
|
902
902
|
{},
|
|
903
903
|
Gr,
|
|
904
904
|
e,
|
|
905
905
|
t
|
|
906
906
|
);
|
|
907
|
-
if (!E(
|
|
908
|
-
const
|
|
907
|
+
if (!E(i)) return;
|
|
908
|
+
const n = (
|
|
909
909
|
/** @type {number|undefined} */
|
|
910
|
-
|
|
910
|
+
i.westBoundLongitude
|
|
911
911
|
), o = (
|
|
912
912
|
/** @type {number|undefined} */
|
|
913
|
-
|
|
913
|
+
i.southBoundLatitude
|
|
914
914
|
), r = (
|
|
915
915
|
/** @type {number|undefined} */
|
|
916
|
-
|
|
916
|
+
i.eastBoundLongitude
|
|
917
917
|
), s = (
|
|
918
918
|
/** @type {number|undefined} */
|
|
919
|
-
|
|
919
|
+
i.northBoundLatitude
|
|
920
920
|
);
|
|
921
|
-
if (!(!E(
|
|
921
|
+
if (!(!E(n) || !E(o) || !E(r) || !E(s)))
|
|
922
922
|
return [
|
|
923
|
-
|
|
923
|
+
n,
|
|
924
924
|
o,
|
|
925
925
|
r,
|
|
926
926
|
s
|
|
@@ -965,10 +965,10 @@ function Rr(e, t) {
|
|
|
965
965
|
);
|
|
966
966
|
}
|
|
967
967
|
function Lr(e, t) {
|
|
968
|
-
const
|
|
968
|
+
const i = Ht(e.getAttribute("queryable"));
|
|
969
969
|
return j(
|
|
970
970
|
{
|
|
971
|
-
queryable: E(
|
|
971
|
+
queryable: E(i) ? i : !1
|
|
972
972
|
},
|
|
973
973
|
eo,
|
|
974
974
|
e,
|
|
@@ -976,11 +976,11 @@ function Lr(e, t) {
|
|
|
976
976
|
);
|
|
977
977
|
}
|
|
978
978
|
function Mr(e, t) {
|
|
979
|
-
var
|
|
979
|
+
var i = (
|
|
980
980
|
/** @type {Object.<string,*>} */
|
|
981
981
|
t[t.length - 1]
|
|
982
982
|
);
|
|
983
|
-
const
|
|
983
|
+
const n = (
|
|
984
984
|
/** @type {Object.<string,*>} */
|
|
985
985
|
j(
|
|
986
986
|
{},
|
|
@@ -989,28 +989,28 @@ function Mr(e, t) {
|
|
|
989
989
|
t
|
|
990
990
|
)
|
|
991
991
|
);
|
|
992
|
-
if (!E(
|
|
992
|
+
if (!E(n)) return;
|
|
993
993
|
let o = Ht(e.getAttribute("queryable"));
|
|
994
|
-
E(o) || (o =
|
|
994
|
+
E(o) || (o = i.queryable), n.queryable = E(o) ? o : !1;
|
|
995
995
|
let r = ke(e.getAttribute("cascaded"));
|
|
996
|
-
E(r) || (r =
|
|
996
|
+
E(r) || (r = i.cascaded), n.cascaded = r;
|
|
997
997
|
let s = Ht(e.getAttribute("opaque"));
|
|
998
|
-
E(s) || (s =
|
|
998
|
+
E(s) || (s = i.opaque), n.opaque = E(s) ? s : !1;
|
|
999
999
|
let a = Ht(e.getAttribute("noSubsets"));
|
|
1000
|
-
E(a) || (a =
|
|
1000
|
+
E(a) || (a = i.noSubsets), n.noSubsets = E(a) ? a : !1;
|
|
1001
1001
|
let l = gt(e.getAttribute("fixedWidth"));
|
|
1002
|
-
E(l) || (l =
|
|
1003
|
-
let
|
|
1004
|
-
E(
|
|
1002
|
+
E(l) || (l = i.fixedWidth), n.fixedWidth = l;
|
|
1003
|
+
let d = gt(e.getAttribute("fixedHeight"));
|
|
1004
|
+
E(d) || (d = i.fixedHeight), n.fixedHeight = d;
|
|
1005
1005
|
const c = ["Style", "CRS", "AuthorityURL"];
|
|
1006
1006
|
for (let p = 0, f = c.length; p < f; p++) {
|
|
1007
|
-
const g = c[p], y =
|
|
1007
|
+
const g = c[p], y = i[g];
|
|
1008
1008
|
if (E(y)) {
|
|
1009
|
-
let D =
|
|
1010
|
-
D = D.concat(y),
|
|
1009
|
+
let D = Wn(n, g, []);
|
|
1010
|
+
D = D.concat(y), n[g] = D;
|
|
1011
1011
|
}
|
|
1012
1012
|
}
|
|
1013
|
-
const
|
|
1013
|
+
const u = [
|
|
1014
1014
|
"EX_GeographicBoundingBox",
|
|
1015
1015
|
"BoundingBox",
|
|
1016
1016
|
"Dimension",
|
|
@@ -1018,14 +1018,14 @@ function Mr(e, t) {
|
|
|
1018
1018
|
"MinScaleDenominator",
|
|
1019
1019
|
"MaxScaleDenominator"
|
|
1020
1020
|
];
|
|
1021
|
-
for (let p = 0, f =
|
|
1022
|
-
const g =
|
|
1021
|
+
for (let p = 0, f = u.length; p < f; p++) {
|
|
1022
|
+
const g = u[p], y = n[g];
|
|
1023
1023
|
if (!E(y)) {
|
|
1024
|
-
const D =
|
|
1025
|
-
|
|
1024
|
+
const D = i[g];
|
|
1025
|
+
n[g] = D;
|
|
1026
1026
|
}
|
|
1027
1027
|
}
|
|
1028
|
-
return
|
|
1028
|
+
return n;
|
|
1029
1029
|
}
|
|
1030
1030
|
function Ir(e, t) {
|
|
1031
1031
|
return {
|
|
@@ -1042,7 +1042,7 @@ function Ir(e, t) {
|
|
|
1042
1042
|
function yt(e, t) {
|
|
1043
1043
|
return j(
|
|
1044
1044
|
{},
|
|
1045
|
-
|
|
1045
|
+
is,
|
|
1046
1046
|
e,
|
|
1047
1047
|
t
|
|
1048
1048
|
);
|
|
@@ -1056,28 +1056,28 @@ function Hr(e, t) {
|
|
|
1056
1056
|
function Vr(e, t) {
|
|
1057
1057
|
return j({}, ts, e, t);
|
|
1058
1058
|
}
|
|
1059
|
-
function
|
|
1059
|
+
function Ei(e, t) {
|
|
1060
1060
|
return j({}, Kr, e, t);
|
|
1061
1061
|
}
|
|
1062
|
-
function
|
|
1063
|
-
var
|
|
1064
|
-
if (E(
|
|
1065
|
-
const
|
|
1062
|
+
function Qn(e, t) {
|
|
1063
|
+
var i = yt(e, t);
|
|
1064
|
+
if (E(i)) {
|
|
1065
|
+
const n = [
|
|
1066
1066
|
ke(e.getAttribute("width")),
|
|
1067
1067
|
ke(e.getAttribute("height"))
|
|
1068
1068
|
];
|
|
1069
|
-
return
|
|
1069
|
+
return i.size = n, i;
|
|
1070
1070
|
}
|
|
1071
1071
|
}
|
|
1072
1072
|
function Br(e, t) {
|
|
1073
|
-
var
|
|
1074
|
-
if (E(
|
|
1075
|
-
return
|
|
1073
|
+
var i = yt(e, t);
|
|
1074
|
+
if (E(i))
|
|
1075
|
+
return i.name = e.getAttribute("name"), i;
|
|
1076
1076
|
}
|
|
1077
1077
|
function kr(e, t) {
|
|
1078
|
-
var
|
|
1079
|
-
if (E(
|
|
1080
|
-
return
|
|
1078
|
+
var i = yt(e, t);
|
|
1079
|
+
if (E(i))
|
|
1080
|
+
return i.type = e.getAttribute("type"), i;
|
|
1081
1081
|
}
|
|
1082
1082
|
function Ur(e, t) {
|
|
1083
1083
|
return j({}, es, e, t);
|
|
@@ -1085,7 +1085,7 @@ function Ur(e, t) {
|
|
|
1085
1085
|
function to(e, t) {
|
|
1086
1086
|
return j(
|
|
1087
1087
|
[],
|
|
1088
|
-
|
|
1088
|
+
ns,
|
|
1089
1089
|
e,
|
|
1090
1090
|
t
|
|
1091
1091
|
);
|
|
@@ -1113,13 +1113,13 @@ const W = [
|
|
|
1113
1113
|
Title: m(_),
|
|
1114
1114
|
Abstract: m(_),
|
|
1115
1115
|
KeywordList: m(to),
|
|
1116
|
-
OnlineResource: m(
|
|
1116
|
+
OnlineResource: m(Ji),
|
|
1117
1117
|
ContactInformation: m(Pr),
|
|
1118
1118
|
Fees: m(_),
|
|
1119
1119
|
AccessConstraints: m(_),
|
|
1120
|
-
LayerLimit: m(
|
|
1121
|
-
MaxWidth: m(
|
|
1122
|
-
MaxHeight: m(
|
|
1120
|
+
LayerLimit: m(xi),
|
|
1121
|
+
MaxWidth: m(xi),
|
|
1122
|
+
MaxHeight: m(xi)
|
|
1123
1123
|
}
|
|
1124
1124
|
), zr = Y(
|
|
1125
1125
|
W,
|
|
@@ -1150,7 +1150,7 @@ const W = [
|
|
|
1150
1150
|
), Yr = Y(
|
|
1151
1151
|
W,
|
|
1152
1152
|
{
|
|
1153
|
-
Format:
|
|
1153
|
+
Format: Jn(_)
|
|
1154
1154
|
}
|
|
1155
1155
|
), eo = Y(
|
|
1156
1156
|
W,
|
|
@@ -1159,30 +1159,30 @@ const W = [
|
|
|
1159
1159
|
Title: m(_),
|
|
1160
1160
|
Abstract: m(_),
|
|
1161
1161
|
KeywordList: m(to),
|
|
1162
|
-
CRS:
|
|
1163
|
-
SRS:
|
|
1162
|
+
CRS: it(_),
|
|
1163
|
+
SRS: it(_),
|
|
1164
1164
|
EX_GeographicBoundingBox: m(_r),
|
|
1165
1165
|
LatLonBoundingBox: m(Sr),
|
|
1166
|
-
BoundingBox:
|
|
1167
|
-
Dimension:
|
|
1166
|
+
BoundingBox: it(Er),
|
|
1167
|
+
Dimension: it(Ir),
|
|
1168
1168
|
Attribution: m(xr),
|
|
1169
|
-
AuthorityURL:
|
|
1170
|
-
Identifier:
|
|
1171
|
-
MetadataURL:
|
|
1172
|
-
DataURL:
|
|
1173
|
-
FeatureListURL:
|
|
1174
|
-
Style:
|
|
1169
|
+
AuthorityURL: it(Br),
|
|
1170
|
+
Identifier: it(_),
|
|
1171
|
+
MetadataURL: it(kr),
|
|
1172
|
+
DataURL: it(yt),
|
|
1173
|
+
FeatureListURL: it(yt),
|
|
1174
|
+
Style: it(Ur),
|
|
1175
1175
|
MinScaleDenominator: m(zt),
|
|
1176
1176
|
MaxScaleDenominator: m(zt),
|
|
1177
1177
|
ScaleHint: m(Ar),
|
|
1178
|
-
Layer:
|
|
1178
|
+
Layer: it(Mr)
|
|
1179
1179
|
}
|
|
1180
1180
|
), Wr = Y(
|
|
1181
1181
|
W,
|
|
1182
1182
|
{
|
|
1183
1183
|
Title: m(_),
|
|
1184
|
-
OnlineResource: m(
|
|
1185
|
-
LogoURL: m(
|
|
1184
|
+
OnlineResource: m(Ji),
|
|
1185
|
+
LogoURL: m(Qn)
|
|
1186
1186
|
}
|
|
1187
1187
|
), Gr = Y(W, {
|
|
1188
1188
|
westBoundLongitude: m(zt),
|
|
@@ -1193,20 +1193,20 @@ const W = [
|
|
|
1193
1193
|
W,
|
|
1194
1194
|
{
|
|
1195
1195
|
GetCapabilities: m(
|
|
1196
|
-
|
|
1196
|
+
Ei
|
|
1197
1197
|
),
|
|
1198
1198
|
GetMap: m(
|
|
1199
|
-
|
|
1199
|
+
Ei
|
|
1200
1200
|
),
|
|
1201
1201
|
GetFeatureInfo: m(
|
|
1202
|
-
|
|
1202
|
+
Ei
|
|
1203
1203
|
)
|
|
1204
1204
|
}
|
|
1205
1205
|
), Kr = Y(
|
|
1206
1206
|
W,
|
|
1207
1207
|
{
|
|
1208
|
-
Format:
|
|
1209
|
-
DCPType:
|
|
1208
|
+
Format: it(_),
|
|
1209
|
+
DCPType: it(
|
|
1210
1210
|
Hr
|
|
1211
1211
|
)
|
|
1212
1212
|
}
|
|
@@ -1233,20 +1233,20 @@ const W = [
|
|
|
1233
1233
|
Name: m(_),
|
|
1234
1234
|
Title: m(_),
|
|
1235
1235
|
Abstract: m(_),
|
|
1236
|
-
LegendURL:
|
|
1236
|
+
LegendURL: it(Qn),
|
|
1237
1237
|
StyleSheetURL: m(yt),
|
|
1238
1238
|
StyleURL: m(yt)
|
|
1239
1239
|
}
|
|
1240
|
-
),
|
|
1240
|
+
), is = Y(
|
|
1241
1241
|
W,
|
|
1242
1242
|
{
|
|
1243
1243
|
Format: m(_),
|
|
1244
|
-
OnlineResource: m(
|
|
1244
|
+
OnlineResource: m(Ji)
|
|
1245
1245
|
}
|
|
1246
|
-
),
|
|
1246
|
+
), ns = Y(
|
|
1247
1247
|
W,
|
|
1248
1248
|
{
|
|
1249
|
-
Keyword:
|
|
1249
|
+
Keyword: Jn(_)
|
|
1250
1250
|
}
|
|
1251
1251
|
);
|
|
1252
1252
|
class os {
|
|
@@ -1256,8 +1256,8 @@ class os {
|
|
|
1256
1256
|
* @param {String=} xmlString
|
|
1257
1257
|
* @constructor
|
|
1258
1258
|
*/
|
|
1259
|
-
constructor(t,
|
|
1260
|
-
!
|
|
1259
|
+
constructor(t, i) {
|
|
1260
|
+
!i && typeof window < "u" && (i = window.DOMParser), this.version = void 0, this._parser = new fr(i), this._data = t;
|
|
1261
1261
|
}
|
|
1262
1262
|
/**
|
|
1263
1263
|
* @param {String} xmlString
|
|
@@ -1285,9 +1285,9 @@ class os {
|
|
|
1285
1285
|
* @return {Object|null}
|
|
1286
1286
|
*/
|
|
1287
1287
|
readFromDocument(t) {
|
|
1288
|
-
for (let
|
|
1289
|
-
if (
|
|
1290
|
-
return this.readFromNode(
|
|
1288
|
+
for (let i = t.firstChild; i; i = i.nextSibling)
|
|
1289
|
+
if (i.nodeType == ye.ELEMENT)
|
|
1290
|
+
return this.readFromNode(i);
|
|
1291
1291
|
return null;
|
|
1292
1292
|
}
|
|
1293
1293
|
/**
|
|
@@ -1301,25 +1301,25 @@ class os {
|
|
|
1301
1301
|
}
|
|
1302
1302
|
}
|
|
1303
1303
|
async function rs(e) {
|
|
1304
|
-
let t = new URL(e),
|
|
1305
|
-
|
|
1306
|
-
let
|
|
1307
|
-
const o = await fetch(
|
|
1304
|
+
let t = new URL(e), i = t.searchParams;
|
|
1305
|
+
i.set("SERVICE", "WMS"), i.set("REQUEST", "GetCapabilities");
|
|
1306
|
+
let n = t.toString();
|
|
1307
|
+
const o = await fetch(n);
|
|
1308
1308
|
if (o.ok) {
|
|
1309
1309
|
const r = await o.text();
|
|
1310
1310
|
return new os(r).toJSON();
|
|
1311
1311
|
} else
|
|
1312
1312
|
throw new Error(`Error: ${o.status}`);
|
|
1313
1313
|
}
|
|
1314
|
-
function
|
|
1315
|
-
const t = /\b(?:wms|ows)\b/i,
|
|
1316
|
-
return t.test(e) ? "TileWMS" :
|
|
1314
|
+
function Ki(e) {
|
|
1315
|
+
const t = /\b(?:wms|ows)\b/i, i = /{(?:z|x|y-?)}\/{(?:z|x|y-?)}\/{(?:z|x|y-?)}/i;
|
|
1316
|
+
return t.test(e) ? "TileWMS" : i.test(e) ? "XYZ" : !1;
|
|
1317
1317
|
}
|
|
1318
1318
|
function ss(e) {
|
|
1319
|
-
const
|
|
1320
|
-
return !!(e &&
|
|
1319
|
+
const i = /^(?:(?:https?|ftp):\/\/|\/\/)?(?:localhost|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}|(?:\w+[\w-]*\.)+\w+)(?::\d+)?(?:\/\S*)?$/.test(e), n = Ki(e);
|
|
1320
|
+
return !!(e && i && n);
|
|
1321
1321
|
}
|
|
1322
|
-
function
|
|
1322
|
+
function io(e) {
|
|
1323
1323
|
return e.replace(
|
|
1324
1324
|
/(['"])?([a-zA-Z0-9_]+)(['"])?:/g,
|
|
1325
1325
|
'"$2": '
|
|
@@ -1327,20 +1327,20 @@ function no(e) {
|
|
|
1327
1327
|
}
|
|
1328
1328
|
function as(e) {
|
|
1329
1329
|
try {
|
|
1330
|
-
return JSON.parse(
|
|
1330
|
+
return JSON.parse(io(e)), !!e;
|
|
1331
1331
|
} catch {
|
|
1332
1332
|
return !1;
|
|
1333
1333
|
}
|
|
1334
1334
|
}
|
|
1335
1335
|
function ls(e, t) {
|
|
1336
|
-
const
|
|
1336
|
+
const i = new URL(e).searchParams;
|
|
1337
1337
|
Object.entries(t).forEach(([s, a]) => {
|
|
1338
1338
|
typeof a == "object" && !Array.isArray(a) && a !== null ? Object.keys(a).forEach((l) => {
|
|
1339
|
-
|
|
1340
|
-
}) :
|
|
1339
|
+
i.set(l, a[l]);
|
|
1340
|
+
}) : i.set(s, a);
|
|
1341
1341
|
});
|
|
1342
|
-
const
|
|
1343
|
-
return `${
|
|
1342
|
+
const n = e.split("?")[0], o = i.toString();
|
|
1343
|
+
return `${n}?${o}`;
|
|
1344
1344
|
}
|
|
1345
1345
|
/**!
|
|
1346
1346
|
* Sortable 1.15.3
|
|
@@ -1348,23 +1348,23 @@ function ls(e, t) {
|
|
|
1348
1348
|
* @author owenm <owen23355@gmail.com>
|
|
1349
1349
|
* @license MIT
|
|
1350
1350
|
*/
|
|
1351
|
-
function
|
|
1352
|
-
var
|
|
1351
|
+
function vn(e, t) {
|
|
1352
|
+
var i = Object.keys(e);
|
|
1353
1353
|
if (Object.getOwnPropertySymbols) {
|
|
1354
|
-
var
|
|
1355
|
-
t && (
|
|
1354
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
1355
|
+
t && (n = n.filter(function(o) {
|
|
1356
1356
|
return Object.getOwnPropertyDescriptor(e, o).enumerable;
|
|
1357
|
-
})),
|
|
1357
|
+
})), i.push.apply(i, n);
|
|
1358
1358
|
}
|
|
1359
|
-
return
|
|
1359
|
+
return i;
|
|
1360
1360
|
}
|
|
1361
1361
|
function ct(e) {
|
|
1362
1362
|
for (var t = 1; t < arguments.length; t++) {
|
|
1363
|
-
var
|
|
1364
|
-
t % 2 ?
|
|
1365
|
-
|
|
1366
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(
|
|
1367
|
-
Object.defineProperty(e,
|
|
1363
|
+
var i = arguments[t] != null ? arguments[t] : {};
|
|
1364
|
+
t % 2 ? vn(Object(i), !0).forEach(function(n) {
|
|
1365
|
+
ds(e, n, i[n]);
|
|
1366
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(i)) : vn(Object(i)).forEach(function(n) {
|
|
1367
|
+
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(i, n));
|
|
1368
1368
|
});
|
|
1369
1369
|
}
|
|
1370
1370
|
return e;
|
|
@@ -1377,55 +1377,55 @@ function Oe(e) {
|
|
|
1377
1377
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
1378
1378
|
}, Oe(e);
|
|
1379
1379
|
}
|
|
1380
|
-
function
|
|
1380
|
+
function ds(e, t, i) {
|
|
1381
1381
|
return t in e ? Object.defineProperty(e, t, {
|
|
1382
|
-
value:
|
|
1382
|
+
value: i,
|
|
1383
1383
|
enumerable: !0,
|
|
1384
1384
|
configurable: !0,
|
|
1385
1385
|
writable: !0
|
|
1386
|
-
}) : e[t] =
|
|
1386
|
+
}) : e[t] = i, e;
|
|
1387
1387
|
}
|
|
1388
1388
|
function bt() {
|
|
1389
1389
|
return bt = Object.assign || function(e) {
|
|
1390
1390
|
for (var t = 1; t < arguments.length; t++) {
|
|
1391
|
-
var
|
|
1392
|
-
for (var
|
|
1393
|
-
Object.prototype.hasOwnProperty.call(
|
|
1391
|
+
var i = arguments[t];
|
|
1392
|
+
for (var n in i)
|
|
1393
|
+
Object.prototype.hasOwnProperty.call(i, n) && (e[n] = i[n]);
|
|
1394
1394
|
}
|
|
1395
1395
|
return e;
|
|
1396
1396
|
}, bt.apply(this, arguments);
|
|
1397
1397
|
}
|
|
1398
|
-
function
|
|
1398
|
+
function us(e, t) {
|
|
1399
1399
|
if (e == null) return {};
|
|
1400
|
-
var
|
|
1401
|
-
for (r = 0; r <
|
|
1402
|
-
o =
|
|
1403
|
-
return
|
|
1400
|
+
var i = {}, n = Object.keys(e), o, r;
|
|
1401
|
+
for (r = 0; r < n.length; r++)
|
|
1402
|
+
o = n[r], !(t.indexOf(o) >= 0) && (i[o] = e[o]);
|
|
1403
|
+
return i;
|
|
1404
1404
|
}
|
|
1405
1405
|
function cs(e, t) {
|
|
1406
1406
|
if (e == null) return {};
|
|
1407
|
-
var
|
|
1407
|
+
var i = us(e, t), n, o;
|
|
1408
1408
|
if (Object.getOwnPropertySymbols) {
|
|
1409
1409
|
var r = Object.getOwnPropertySymbols(e);
|
|
1410
1410
|
for (o = 0; o < r.length; o++)
|
|
1411
|
-
|
|
1411
|
+
n = r[o], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
|
|
1412
1412
|
}
|
|
1413
|
-
return
|
|
1413
|
+
return i;
|
|
1414
1414
|
}
|
|
1415
1415
|
var hs = "1.15.3";
|
|
1416
1416
|
function mt(e) {
|
|
1417
1417
|
if (typeof window < "u" && window.navigator)
|
|
1418
1418
|
return !!/* @__PURE__ */ navigator.userAgent.match(e);
|
|
1419
1419
|
}
|
|
1420
|
-
var vt = mt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), xe = mt(/Edge/i),
|
|
1420
|
+
var vt = mt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), xe = mt(/Edge/i), wn = mt(/firefox/i), de = mt(/safari/i) && !mt(/chrome/i) && !mt(/android/i), no = mt(/iP(ad|od|hone)/i), oo = mt(/chrome/i) && mt(/android/i), ro = {
|
|
1421
1421
|
capture: !1,
|
|
1422
1422
|
passive: !1
|
|
1423
1423
|
};
|
|
1424
|
-
function T(e, t,
|
|
1425
|
-
e.addEventListener(t,
|
|
1424
|
+
function T(e, t, i) {
|
|
1425
|
+
e.addEventListener(t, i, !vt && ro);
|
|
1426
1426
|
}
|
|
1427
|
-
function A(e, t,
|
|
1428
|
-
e.removeEventListener(t,
|
|
1427
|
+
function A(e, t, i) {
|
|
1428
|
+
e.removeEventListener(t, i, !vt && ro);
|
|
1429
1429
|
}
|
|
1430
1430
|
function Ue(e, t) {
|
|
1431
1431
|
if (t) {
|
|
@@ -1446,98 +1446,98 @@ function Ue(e, t) {
|
|
|
1446
1446
|
function so(e) {
|
|
1447
1447
|
return e.host && e !== document && e.host.nodeType ? e.host : e.parentNode;
|
|
1448
1448
|
}
|
|
1449
|
-
function
|
|
1449
|
+
function dt(e, t, i, n) {
|
|
1450
1450
|
if (e) {
|
|
1451
|
-
|
|
1451
|
+
i = i || document;
|
|
1452
1452
|
do {
|
|
1453
|
-
if (t != null && (t[0] === ">" ? e.parentNode ===
|
|
1453
|
+
if (t != null && (t[0] === ">" ? e.parentNode === i && Ue(e, t) : Ue(e, t)) || n && e === i)
|
|
1454
1454
|
return e;
|
|
1455
|
-
if (e ===
|
|
1455
|
+
if (e === i) break;
|
|
1456
1456
|
} while (e = so(e));
|
|
1457
1457
|
}
|
|
1458
1458
|
return null;
|
|
1459
1459
|
}
|
|
1460
|
-
var $
|
|
1461
|
-
function ot(e, t,
|
|
1460
|
+
var $n = /\s+/g;
|
|
1461
|
+
function ot(e, t, i) {
|
|
1462
1462
|
if (e && t)
|
|
1463
1463
|
if (e.classList)
|
|
1464
|
-
e.classList[
|
|
1464
|
+
e.classList[i ? "add" : "remove"](t);
|
|
1465
1465
|
else {
|
|
1466
|
-
var
|
|
1467
|
-
e.className = (
|
|
1466
|
+
var n = (" " + e.className + " ").replace($n, " ").replace(" " + t + " ", " ");
|
|
1467
|
+
e.className = (n + (i ? " " + t : "")).replace($n, " ");
|
|
1468
1468
|
}
|
|
1469
1469
|
}
|
|
1470
|
-
function v(e, t,
|
|
1471
|
-
var
|
|
1472
|
-
if (
|
|
1473
|
-
if (
|
|
1474
|
-
return document.defaultView && document.defaultView.getComputedStyle ?
|
|
1475
|
-
!(t in
|
|
1470
|
+
function v(e, t, i) {
|
|
1471
|
+
var n = e && e.style;
|
|
1472
|
+
if (n) {
|
|
1473
|
+
if (i === void 0)
|
|
1474
|
+
return document.defaultView && document.defaultView.getComputedStyle ? i = document.defaultView.getComputedStyle(e, "") : e.currentStyle && (i = e.currentStyle), t === void 0 ? i : i[t];
|
|
1475
|
+
!(t in n) && t.indexOf("webkit") === -1 && (t = "-webkit-" + t), n[t] = i + (typeof i == "string" ? "" : "px");
|
|
1476
1476
|
}
|
|
1477
1477
|
}
|
|
1478
1478
|
function qt(e, t) {
|
|
1479
|
-
var
|
|
1479
|
+
var i = "";
|
|
1480
1480
|
if (typeof e == "string")
|
|
1481
|
-
|
|
1481
|
+
i = e;
|
|
1482
1482
|
else
|
|
1483
1483
|
do {
|
|
1484
|
-
var
|
|
1485
|
-
|
|
1484
|
+
var n = v(e, "transform");
|
|
1485
|
+
n && n !== "none" && (i = n + " " + i);
|
|
1486
1486
|
} while (!t && (e = e.parentNode));
|
|
1487
1487
|
var o = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
|
|
1488
|
-
return o && new o(
|
|
1488
|
+
return o && new o(i);
|
|
1489
1489
|
}
|
|
1490
|
-
function ao(e, t,
|
|
1490
|
+
function ao(e, t, i) {
|
|
1491
1491
|
if (e) {
|
|
1492
|
-
var
|
|
1493
|
-
if (
|
|
1492
|
+
var n = e.getElementsByTagName(t), o = 0, r = n.length;
|
|
1493
|
+
if (i)
|
|
1494
1494
|
for (; o < r; o++)
|
|
1495
|
-
n
|
|
1496
|
-
return
|
|
1495
|
+
i(n[o], o);
|
|
1496
|
+
return n;
|
|
1497
1497
|
}
|
|
1498
1498
|
return [];
|
|
1499
1499
|
}
|
|
1500
|
-
function
|
|
1500
|
+
function ut() {
|
|
1501
1501
|
var e = document.scrollingElement;
|
|
1502
1502
|
return e || document.documentElement;
|
|
1503
1503
|
}
|
|
1504
|
-
function k(e, t,
|
|
1504
|
+
function k(e, t, i, n, o) {
|
|
1505
1505
|
if (!(!e.getBoundingClientRect && e !== window)) {
|
|
1506
|
-
var r, s, a, l,
|
|
1507
|
-
if (e !== window && e.parentNode && e !==
|
|
1506
|
+
var r, s, a, l, d, c, u;
|
|
1507
|
+
if (e !== window && e.parentNode && e !== ut() ? (r = e.getBoundingClientRect(), s = r.top, a = r.left, l = r.bottom, d = r.right, c = r.height, u = r.width) : (s = 0, a = 0, l = window.innerHeight, d = window.innerWidth, c = window.innerHeight, u = window.innerWidth), (t || i) && e !== window && (o = o || e.parentNode, !vt))
|
|
1508
1508
|
do
|
|
1509
|
-
if (o && o.getBoundingClientRect && (v(o, "transform") !== "none" ||
|
|
1509
|
+
if (o && o.getBoundingClientRect && (v(o, "transform") !== "none" || i && v(o, "position") !== "static")) {
|
|
1510
1510
|
var p = o.getBoundingClientRect();
|
|
1511
|
-
s -= p.top + parseInt(v(o, "border-top-width")), a -= p.left + parseInt(v(o, "border-left-width")), l = s + r.height,
|
|
1511
|
+
s -= p.top + parseInt(v(o, "border-top-width")), a -= p.left + parseInt(v(o, "border-left-width")), l = s + r.height, d = a + r.width;
|
|
1512
1512
|
break;
|
|
1513
1513
|
}
|
|
1514
1514
|
while (o = o.parentNode);
|
|
1515
|
-
if (
|
|
1515
|
+
if (n && e !== window) {
|
|
1516
1516
|
var f = qt(o || e), g = f && f.a, y = f && f.d;
|
|
1517
|
-
f && (s /= y, a /= g,
|
|
1517
|
+
f && (s /= y, a /= g, u /= g, c /= y, l = s + c, d = a + u);
|
|
1518
1518
|
}
|
|
1519
1519
|
return {
|
|
1520
1520
|
top: s,
|
|
1521
1521
|
left: a,
|
|
1522
1522
|
bottom: l,
|
|
1523
|
-
right:
|
|
1524
|
-
width:
|
|
1523
|
+
right: d,
|
|
1524
|
+
width: u,
|
|
1525
1525
|
height: c
|
|
1526
1526
|
};
|
|
1527
1527
|
}
|
|
1528
1528
|
}
|
|
1529
|
-
function
|
|
1530
|
-
for (var
|
|
1531
|
-
var r = k(
|
|
1532
|
-
if (s = o >= r, !s) return
|
|
1533
|
-
if (
|
|
1534
|
-
|
|
1529
|
+
function xn(e, t, i) {
|
|
1530
|
+
for (var n = _t(e, !0), o = k(e)[t]; n; ) {
|
|
1531
|
+
var r = k(n)[i], s = void 0;
|
|
1532
|
+
if (s = o >= r, !s) return n;
|
|
1533
|
+
if (n === ut()) break;
|
|
1534
|
+
n = _t(n, !1);
|
|
1535
1535
|
}
|
|
1536
1536
|
return !1;
|
|
1537
1537
|
}
|
|
1538
|
-
function Wt(e, t,
|
|
1538
|
+
function Wt(e, t, i, n) {
|
|
1539
1539
|
for (var o = 0, r = 0, s = e.children; r < s.length; ) {
|
|
1540
|
-
if (s[r].style.display !== "none" && s[r] !== w.ghost && (
|
|
1540
|
+
if (s[r].style.display !== "none" && s[r] !== w.ghost && (n || s[r] !== w.dragged) && dt(s[r], i.draggable, e, !1)) {
|
|
1541
1541
|
if (o === t)
|
|
1542
1542
|
return s[r];
|
|
1543
1543
|
o++;
|
|
@@ -1546,99 +1546,99 @@ function Wt(e, t, n, i) {
|
|
|
1546
1546
|
}
|
|
1547
1547
|
return null;
|
|
1548
1548
|
}
|
|
1549
|
-
function
|
|
1550
|
-
for (var
|
|
1551
|
-
|
|
1552
|
-
return
|
|
1549
|
+
function Qi(e, t) {
|
|
1550
|
+
for (var i = e.lastElementChild; i && (i === w.ghost || v(i, "display") === "none" || t && !Ue(i, t)); )
|
|
1551
|
+
i = i.previousElementSibling;
|
|
1552
|
+
return i || null;
|
|
1553
1553
|
}
|
|
1554
1554
|
function st(e, t) {
|
|
1555
|
-
var
|
|
1555
|
+
var i = 0;
|
|
1556
1556
|
if (!e || !e.parentNode)
|
|
1557
1557
|
return -1;
|
|
1558
1558
|
for (; e = e.previousElementSibling; )
|
|
1559
|
-
e.nodeName.toUpperCase() !== "TEMPLATE" && e !== w.clone && (!t || Ue(e, t)) &&
|
|
1560
|
-
return
|
|
1559
|
+
e.nodeName.toUpperCase() !== "TEMPLATE" && e !== w.clone && (!t || Ue(e, t)) && i++;
|
|
1560
|
+
return i;
|
|
1561
1561
|
}
|
|
1562
|
-
function
|
|
1563
|
-
var t = 0,
|
|
1562
|
+
function En(e) {
|
|
1563
|
+
var t = 0, i = 0, n = ut();
|
|
1564
1564
|
if (e)
|
|
1565
1565
|
do {
|
|
1566
1566
|
var o = qt(e), r = o.a, s = o.d;
|
|
1567
|
-
t += e.scrollLeft * r,
|
|
1568
|
-
} while (e !==
|
|
1569
|
-
return [t,
|
|
1567
|
+
t += e.scrollLeft * r, i += e.scrollTop * s;
|
|
1568
|
+
} while (e !== n && (e = e.parentNode));
|
|
1569
|
+
return [t, i];
|
|
1570
1570
|
}
|
|
1571
1571
|
function ps(e, t) {
|
|
1572
|
-
for (var
|
|
1573
|
-
if (e.hasOwnProperty(
|
|
1574
|
-
for (var
|
|
1575
|
-
if (t.hasOwnProperty(
|
|
1572
|
+
for (var i in e)
|
|
1573
|
+
if (e.hasOwnProperty(i)) {
|
|
1574
|
+
for (var n in t)
|
|
1575
|
+
if (t.hasOwnProperty(n) && t[n] === e[i][n]) return Number(i);
|
|
1576
1576
|
}
|
|
1577
1577
|
return -1;
|
|
1578
1578
|
}
|
|
1579
1579
|
function _t(e, t) {
|
|
1580
|
-
if (!e || !e.getBoundingClientRect) return
|
|
1581
|
-
var
|
|
1580
|
+
if (!e || !e.getBoundingClientRect) return ut();
|
|
1581
|
+
var i = e, n = !1;
|
|
1582
1582
|
do
|
|
1583
|
-
if (
|
|
1584
|
-
var o = v(
|
|
1585
|
-
if (
|
|
1586
|
-
if (!
|
|
1587
|
-
if (
|
|
1588
|
-
|
|
1583
|
+
if (i.clientWidth < i.scrollWidth || i.clientHeight < i.scrollHeight) {
|
|
1584
|
+
var o = v(i);
|
|
1585
|
+
if (i.clientWidth < i.scrollWidth && (o.overflowX == "auto" || o.overflowX == "scroll") || i.clientHeight < i.scrollHeight && (o.overflowY == "auto" || o.overflowY == "scroll")) {
|
|
1586
|
+
if (!i.getBoundingClientRect || i === document.body) return ut();
|
|
1587
|
+
if (n || t) return i;
|
|
1588
|
+
n = !0;
|
|
1589
1589
|
}
|
|
1590
1590
|
}
|
|
1591
|
-
while (
|
|
1592
|
-
return
|
|
1591
|
+
while (i = i.parentNode);
|
|
1592
|
+
return ut();
|
|
1593
1593
|
}
|
|
1594
1594
|
function fs(e, t) {
|
|
1595
1595
|
if (e && t)
|
|
1596
|
-
for (var
|
|
1597
|
-
t.hasOwnProperty(
|
|
1596
|
+
for (var i in t)
|
|
1597
|
+
t.hasOwnProperty(i) && (e[i] = t[i]);
|
|
1598
1598
|
return e;
|
|
1599
1599
|
}
|
|
1600
|
-
function
|
|
1600
|
+
function Si(e, t) {
|
|
1601
1601
|
return Math.round(e.top) === Math.round(t.top) && Math.round(e.left) === Math.round(t.left) && Math.round(e.height) === Math.round(t.height) && Math.round(e.width) === Math.round(t.width);
|
|
1602
1602
|
}
|
|
1603
|
-
var
|
|
1603
|
+
var ue;
|
|
1604
1604
|
function lo(e, t) {
|
|
1605
1605
|
return function() {
|
|
1606
|
-
if (!
|
|
1607
|
-
var
|
|
1608
|
-
|
|
1609
|
-
|
|
1606
|
+
if (!ue) {
|
|
1607
|
+
var i = arguments, n = this;
|
|
1608
|
+
i.length === 1 ? e.call(n, i[0]) : e.apply(n, i), ue = setTimeout(function() {
|
|
1609
|
+
ue = void 0;
|
|
1610
1610
|
}, t);
|
|
1611
1611
|
}
|
|
1612
1612
|
};
|
|
1613
1613
|
}
|
|
1614
1614
|
function gs() {
|
|
1615
|
-
clearTimeout(
|
|
1615
|
+
clearTimeout(ue), ue = void 0;
|
|
1616
1616
|
}
|
|
1617
|
-
function uo(e, t,
|
|
1618
|
-
e.scrollLeft += t, e.scrollTop +=
|
|
1617
|
+
function uo(e, t, i) {
|
|
1618
|
+
e.scrollLeft += t, e.scrollTop += i;
|
|
1619
1619
|
}
|
|
1620
1620
|
function co(e) {
|
|
1621
|
-
var t = window.Polymer,
|
|
1622
|
-
return t && t.dom ? t.dom(e).cloneNode(!0) :
|
|
1621
|
+
var t = window.Polymer, i = window.jQuery || window.Zepto;
|
|
1622
|
+
return t && t.dom ? t.dom(e).cloneNode(!0) : i ? i(e).clone(!0)[0] : e.cloneNode(!0);
|
|
1623
1623
|
}
|
|
1624
|
-
function ho(e, t,
|
|
1625
|
-
var
|
|
1624
|
+
function ho(e, t, i) {
|
|
1625
|
+
var n = {};
|
|
1626
1626
|
return Array.from(e.children).forEach(function(o) {
|
|
1627
1627
|
var r, s, a, l;
|
|
1628
|
-
if (!(!
|
|
1629
|
-
var
|
|
1630
|
-
|
|
1628
|
+
if (!(!dt(o, t.draggable, e, !1) || o.animated || o === i)) {
|
|
1629
|
+
var d = k(o);
|
|
1630
|
+
n.left = Math.min((r = n.left) !== null && r !== void 0 ? r : 1 / 0, d.left), n.top = Math.min((s = n.top) !== null && s !== void 0 ? s : 1 / 0, d.top), n.right = Math.max((a = n.right) !== null && a !== void 0 ? a : -1 / 0, d.right), n.bottom = Math.max((l = n.bottom) !== null && l !== void 0 ? l : -1 / 0, d.bottom);
|
|
1631
1631
|
}
|
|
1632
|
-
}),
|
|
1632
|
+
}), n.width = n.right - n.left, n.height = n.bottom - n.top, n.x = n.left, n.y = n.top, n;
|
|
1633
1633
|
}
|
|
1634
|
-
var
|
|
1634
|
+
var nt = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
|
|
1635
1635
|
function ms() {
|
|
1636
1636
|
var e = [], t;
|
|
1637
1637
|
return {
|
|
1638
1638
|
captureAnimationState: function() {
|
|
1639
1639
|
if (e = [], !!this.options.animation) {
|
|
1640
|
-
var
|
|
1641
|
-
|
|
1640
|
+
var n = [].slice.call(this.el.children);
|
|
1641
|
+
n.forEach(function(o) {
|
|
1642
1642
|
if (!(v(o, "display") === "none" || o === w.ghost)) {
|
|
1643
1643
|
e.push({
|
|
1644
1644
|
target: o,
|
|
@@ -1654,37 +1654,37 @@ function ms() {
|
|
|
1654
1654
|
});
|
|
1655
1655
|
}
|
|
1656
1656
|
},
|
|
1657
|
-
addAnimationState: function(
|
|
1658
|
-
e.push(
|
|
1657
|
+
addAnimationState: function(n) {
|
|
1658
|
+
e.push(n);
|
|
1659
1659
|
},
|
|
1660
|
-
removeAnimationState: function(
|
|
1660
|
+
removeAnimationState: function(n) {
|
|
1661
1661
|
e.splice(ps(e, {
|
|
1662
|
-
target:
|
|
1662
|
+
target: n
|
|
1663
1663
|
}), 1);
|
|
1664
1664
|
},
|
|
1665
|
-
animateAll: function(
|
|
1665
|
+
animateAll: function(n) {
|
|
1666
1666
|
var o = this;
|
|
1667
1667
|
if (!this.options.animation) {
|
|
1668
|
-
clearTimeout(t), typeof
|
|
1668
|
+
clearTimeout(t), typeof n == "function" && n();
|
|
1669
1669
|
return;
|
|
1670
1670
|
}
|
|
1671
1671
|
var r = !1, s = 0;
|
|
1672
1672
|
e.forEach(function(a) {
|
|
1673
|
-
var l = 0,
|
|
1674
|
-
y && (
|
|
1675
|
-
(g.top -
|
|
1676
|
-
|
|
1677
|
-
}, l),
|
|
1673
|
+
var l = 0, d = a.target, c = d.fromRect, u = k(d), p = d.prevFromRect, f = d.prevToRect, g = a.rect, y = qt(d, !0);
|
|
1674
|
+
y && (u.top -= y.f, u.left -= y.e), d.toRect = u, d.thisAnimationDuration && Si(p, u) && !Si(c, u) && // Make sure animatingRect is on line between toRect & fromRect
|
|
1675
|
+
(g.top - u.top) / (g.left - u.left) === (c.top - u.top) / (c.left - u.left) && (l = bs(g, p, f, o.options)), Si(u, c) || (d.prevFromRect = c, d.prevToRect = u, l || (l = o.options.animation), o.animate(d, g, u, l)), l && (r = !0, s = Math.max(s, l), clearTimeout(d.animationResetTimer), d.animationResetTimer = setTimeout(function() {
|
|
1676
|
+
d.animationTime = 0, d.prevFromRect = null, d.fromRect = null, d.prevToRect = null, d.thisAnimationDuration = null;
|
|
1677
|
+
}, l), d.thisAnimationDuration = l);
|
|
1678
1678
|
}), clearTimeout(t), r ? t = setTimeout(function() {
|
|
1679
|
-
typeof
|
|
1680
|
-
}, s) : typeof
|
|
1679
|
+
typeof n == "function" && n();
|
|
1680
|
+
}, s) : typeof n == "function" && n(), e = [];
|
|
1681
1681
|
},
|
|
1682
|
-
animate: function(
|
|
1682
|
+
animate: function(n, o, r, s) {
|
|
1683
1683
|
if (s) {
|
|
1684
|
-
v(
|
|
1685
|
-
var a = qt(this.el), l = a && a.a,
|
|
1686
|
-
|
|
1687
|
-
v(
|
|
1684
|
+
v(n, "transition", ""), v(n, "transform", "");
|
|
1685
|
+
var a = qt(this.el), l = a && a.a, d = a && a.d, c = (o.left - r.left) / (l || 1), u = (o.top - r.top) / (d || 1);
|
|
1686
|
+
n.animatingX = !!c, n.animatingY = !!u, v(n, "transform", "translate3d(" + c + "px," + u + "px,0)"), this.forRepaintDummy = ys(n), v(n, "transition", "transform " + s + "ms" + (this.options.easing ? " " + this.options.easing : "")), v(n, "transform", "translate3d(0,0,0)"), typeof n.animated == "number" && clearTimeout(n.animated), n.animated = setTimeout(function() {
|
|
1687
|
+
v(n, "transition", ""), v(n, "transform", ""), n.animated = !1, n.animatingX = !1, n.animatingY = !1;
|
|
1688
1688
|
}, s);
|
|
1689
1689
|
}
|
|
1690
1690
|
}
|
|
@@ -1693,40 +1693,40 @@ function ms() {
|
|
|
1693
1693
|
function ys(e) {
|
|
1694
1694
|
return e.offsetWidth;
|
|
1695
1695
|
}
|
|
1696
|
-
function bs(e, t,
|
|
1697
|
-
return Math.sqrt(Math.pow(t.top - e.top, 2) + Math.pow(t.left - e.left, 2)) / Math.sqrt(Math.pow(t.top -
|
|
1696
|
+
function bs(e, t, i, n) {
|
|
1697
|
+
return Math.sqrt(Math.pow(t.top - e.top, 2) + Math.pow(t.left - e.left, 2)) / Math.sqrt(Math.pow(t.top - i.top, 2) + Math.pow(t.left - i.left, 2)) * n.animation;
|
|
1698
1698
|
}
|
|
1699
|
-
var Ut = [],
|
|
1699
|
+
var Ut = [], Ai = {
|
|
1700
1700
|
initializeByDefault: !0
|
|
1701
1701
|
}, Ee = {
|
|
1702
1702
|
mount: function(t) {
|
|
1703
|
-
for (var
|
|
1704
|
-
|
|
1705
|
-
Ut.forEach(function(
|
|
1706
|
-
if (
|
|
1703
|
+
for (var i in Ai)
|
|
1704
|
+
Ai.hasOwnProperty(i) && !(i in t) && (t[i] = Ai[i]);
|
|
1705
|
+
Ut.forEach(function(n) {
|
|
1706
|
+
if (n.pluginName === t.pluginName)
|
|
1707
1707
|
throw "Sortable: Cannot mount plugin ".concat(t.pluginName, " more than once");
|
|
1708
1708
|
}), Ut.push(t);
|
|
1709
1709
|
},
|
|
1710
|
-
pluginEvent: function(t,
|
|
1710
|
+
pluginEvent: function(t, i, n) {
|
|
1711
1711
|
var o = this;
|
|
1712
|
-
this.eventCanceled = !1,
|
|
1712
|
+
this.eventCanceled = !1, n.cancel = function() {
|
|
1713
1713
|
o.eventCanceled = !0;
|
|
1714
1714
|
};
|
|
1715
1715
|
var r = t + "Global";
|
|
1716
1716
|
Ut.forEach(function(s) {
|
|
1717
|
-
|
|
1718
|
-
sortable:
|
|
1719
|
-
},
|
|
1720
|
-
sortable:
|
|
1721
|
-
},
|
|
1717
|
+
i[s.pluginName] && (i[s.pluginName][r] && i[s.pluginName][r](ct({
|
|
1718
|
+
sortable: i
|
|
1719
|
+
}, n)), i.options[s.pluginName] && i[s.pluginName][t] && i[s.pluginName][t](ct({
|
|
1720
|
+
sortable: i
|
|
1721
|
+
}, n)));
|
|
1722
1722
|
});
|
|
1723
1723
|
},
|
|
1724
|
-
initializePlugins: function(t,
|
|
1724
|
+
initializePlugins: function(t, i, n, o) {
|
|
1725
1725
|
Ut.forEach(function(a) {
|
|
1726
1726
|
var l = a.pluginName;
|
|
1727
1727
|
if (!(!t.options[l] && !a.initializeByDefault)) {
|
|
1728
|
-
var
|
|
1729
|
-
|
|
1728
|
+
var d = new a(t, i, t.options);
|
|
1729
|
+
d.sortable = t, d.options = t.options, t[l] = d, bt(n, d.defaults);
|
|
1730
1730
|
}
|
|
1731
1731
|
});
|
|
1732
1732
|
for (var r in t.options)
|
|
@@ -1735,36 +1735,36 @@ var Ut = [], _n = {
|
|
|
1735
1735
|
typeof s < "u" && (t.options[r] = s);
|
|
1736
1736
|
}
|
|
1737
1737
|
},
|
|
1738
|
-
getEventProperties: function(t,
|
|
1739
|
-
var
|
|
1738
|
+
getEventProperties: function(t, i) {
|
|
1739
|
+
var n = {};
|
|
1740
1740
|
return Ut.forEach(function(o) {
|
|
1741
|
-
typeof o.eventProperties == "function" && bt(
|
|
1742
|
-
}),
|
|
1741
|
+
typeof o.eventProperties == "function" && bt(n, o.eventProperties.call(i[o.pluginName], t));
|
|
1742
|
+
}), n;
|
|
1743
1743
|
},
|
|
1744
|
-
modifyOption: function(t,
|
|
1744
|
+
modifyOption: function(t, i, n) {
|
|
1745
1745
|
var o;
|
|
1746
1746
|
return Ut.forEach(function(r) {
|
|
1747
|
-
t[r.pluginName] && r.optionListeners && typeof r.optionListeners[
|
|
1747
|
+
t[r.pluginName] && r.optionListeners && typeof r.optionListeners[i] == "function" && (o = r.optionListeners[i].call(t[r.pluginName], n));
|
|
1748
1748
|
}), o;
|
|
1749
1749
|
}
|
|
1750
1750
|
};
|
|
1751
1751
|
function vs(e) {
|
|
1752
|
-
var t = e.sortable,
|
|
1753
|
-
if (t = t ||
|
|
1754
|
-
var y, D = t.options, M = "on" +
|
|
1755
|
-
window.CustomEvent && !vt && !xe ? y = new CustomEvent(
|
|
1752
|
+
var t = e.sortable, i = e.rootEl, n = e.name, o = e.targetEl, r = e.cloneEl, s = e.toEl, a = e.fromEl, l = e.oldIndex, d = e.newIndex, c = e.oldDraggableIndex, u = e.newDraggableIndex, p = e.originalEvent, f = e.putSortable, g = e.extraEventProperties;
|
|
1753
|
+
if (t = t || i && i[nt], !!t) {
|
|
1754
|
+
var y, D = t.options, M = "on" + n.charAt(0).toUpperCase() + n.substr(1);
|
|
1755
|
+
window.CustomEvent && !vt && !xe ? y = new CustomEvent(n, {
|
|
1756
1756
|
bubbles: !0,
|
|
1757
1757
|
cancelable: !0
|
|
1758
|
-
}) : (y = document.createEvent("Event"), y.initEvent(
|
|
1759
|
-
var H = ct(ct({}, g), Ee.getEventProperties(
|
|
1758
|
+
}) : (y = document.createEvent("Event"), y.initEvent(n, !0, !0)), y.to = s || i, y.from = a || i, y.item = o || i, y.clone = r, y.oldIndex = l, y.newIndex = d, y.oldDraggableIndex = c, y.newDraggableIndex = u, y.originalEvent = p, y.pullMode = f ? f.lastPutMode : void 0;
|
|
1759
|
+
var H = ct(ct({}, g), Ee.getEventProperties(n, t));
|
|
1760
1760
|
for (var J in H)
|
|
1761
1761
|
y[J] = H[J];
|
|
1762
|
-
|
|
1762
|
+
i && i.dispatchEvent(y), D[M] && D[M].call(t, y);
|
|
1763
1763
|
}
|
|
1764
1764
|
}
|
|
1765
|
-
var ws = ["evt"], et = function(t,
|
|
1766
|
-
var
|
|
1767
|
-
Ee.pluginEvent.bind(w)(t,
|
|
1765
|
+
var ws = ["evt"], et = function(t, i) {
|
|
1766
|
+
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o = n.evt, r = cs(n, ws);
|
|
1767
|
+
Ee.pluginEvent.bind(w)(t, i, ct({
|
|
1768
1768
|
dragEl: h,
|
|
1769
1769
|
parentEl: N,
|
|
1770
1770
|
ghostEl: x,
|
|
@@ -1791,7 +1791,7 @@ var ws = ["evt"], et = function(t, n) {
|
|
|
1791
1791
|
},
|
|
1792
1792
|
dispatchSortableEvent: function(a) {
|
|
1793
1793
|
Q({
|
|
1794
|
-
sortable:
|
|
1794
|
+
sortable: i,
|
|
1795
1795
|
name: a,
|
|
1796
1796
|
originalEvent: o
|
|
1797
1797
|
});
|
|
@@ -1810,85 +1810,85 @@ function Q(e) {
|
|
|
1810
1810
|
newDraggableIndex: Et
|
|
1811
1811
|
}, e));
|
|
1812
1812
|
}
|
|
1813
|
-
var h, N, x, R, It, Re, L, St, Xt, rt, ce, Et, Ae, X, Zt = !1, Fe = !1, je = [], Lt, lt,
|
|
1814
|
-
if (
|
|
1813
|
+
var h, N, x, R, It, Re, L, St, Xt, rt, ce, Et, Ae, X, Zt = !1, Fe = !1, je = [], Lt, lt, _i, Ci, Sn, An, oe, Ft, he, pe = !1, _e = !1, Le, G, Ti = [], Ni = !1, Ze = [], gi = typeof document < "u", Ce = no, _n = xe || vt ? "cssFloat" : "float", $s = gi && !oo && !no && "draggable" in document.createElement("div"), po = function() {
|
|
1814
|
+
if (gi) {
|
|
1815
1815
|
if (vt)
|
|
1816
1816
|
return !1;
|
|
1817
1817
|
var e = document.createElement("x");
|
|
1818
1818
|
return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
|
|
1819
1819
|
}
|
|
1820
|
-
}(), fo = function(t,
|
|
1821
|
-
var
|
|
1822
|
-
if (
|
|
1823
|
-
return
|
|
1824
|
-
if (
|
|
1825
|
-
return
|
|
1820
|
+
}(), fo = function(t, i) {
|
|
1821
|
+
var n = v(t), o = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), r = Wt(t, 0, i), s = Wt(t, 1, i), a = r && v(r), l = s && v(s), d = a && parseInt(a.marginLeft) + parseInt(a.marginRight) + k(r).width, c = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + k(s).width;
|
|
1822
|
+
if (n.display === "flex")
|
|
1823
|
+
return n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
1824
|
+
if (n.display === "grid")
|
|
1825
|
+
return n.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
|
|
1826
1826
|
if (r && a.float && a.float !== "none") {
|
|
1827
|
-
var
|
|
1828
|
-
return s && (l.clear === "both" || l.clear ===
|
|
1829
|
-
}
|
|
1830
|
-
return r && (a.display === "block" || a.display === "flex" || a.display === "table" || a.display === "grid" ||
|
|
1831
|
-
}, xs = function(t,
|
|
1832
|
-
var o =
|
|
1833
|
-
return o === a || r === l || o + s / 2 === a +
|
|
1834
|
-
}, Es = function(t,
|
|
1835
|
-
var
|
|
1827
|
+
var u = a.float === "left" ? "left" : "right";
|
|
1828
|
+
return s && (l.clear === "both" || l.clear === u) ? "vertical" : "horizontal";
|
|
1829
|
+
}
|
|
1830
|
+
return r && (a.display === "block" || a.display === "flex" || a.display === "table" || a.display === "grid" || d >= o && n[_n] === "none" || s && n[_n] === "none" && d + c > o) ? "vertical" : "horizontal";
|
|
1831
|
+
}, xs = function(t, i, n) {
|
|
1832
|
+
var o = n ? t.left : t.top, r = n ? t.right : t.bottom, s = n ? t.width : t.height, a = n ? i.left : i.top, l = n ? i.right : i.bottom, d = n ? i.width : i.height;
|
|
1833
|
+
return o === a || r === l || o + s / 2 === a + d / 2;
|
|
1834
|
+
}, Es = function(t, i) {
|
|
1835
|
+
var n;
|
|
1836
1836
|
return je.some(function(o) {
|
|
1837
|
-
var r = o[
|
|
1838
|
-
if (!(!r ||
|
|
1839
|
-
var s = k(o), a = t >= s.left - r && t <= s.right + r, l =
|
|
1837
|
+
var r = o[nt].options.emptyInsertThreshold;
|
|
1838
|
+
if (!(!r || Qi(o))) {
|
|
1839
|
+
var s = k(o), a = t >= s.left - r && t <= s.right + r, l = i >= s.top - r && i <= s.bottom + r;
|
|
1840
1840
|
if (a && l)
|
|
1841
|
-
return
|
|
1841
|
+
return n = o;
|
|
1842
1842
|
}
|
|
1843
|
-
}),
|
|
1843
|
+
}), n;
|
|
1844
1844
|
}, go = function(t) {
|
|
1845
|
-
function
|
|
1846
|
-
return function(a, l,
|
|
1847
|
-
var
|
|
1848
|
-
if (r == null && (s ||
|
|
1845
|
+
function i(r, s) {
|
|
1846
|
+
return function(a, l, d, c) {
|
|
1847
|
+
var u = a.options.group.name && l.options.group.name && a.options.group.name === l.options.group.name;
|
|
1848
|
+
if (r == null && (s || u))
|
|
1849
1849
|
return !0;
|
|
1850
1850
|
if (r == null || r === !1)
|
|
1851
1851
|
return !1;
|
|
1852
1852
|
if (s && r === "clone")
|
|
1853
1853
|
return r;
|
|
1854
1854
|
if (typeof r == "function")
|
|
1855
|
-
return
|
|
1855
|
+
return i(r(a, l, d, c), s)(a, l, d, c);
|
|
1856
1856
|
var p = (s ? a : l).options.group.name;
|
|
1857
1857
|
return r === !0 || typeof r == "string" && r === p || r.join && r.indexOf(p) > -1;
|
|
1858
1858
|
};
|
|
1859
1859
|
}
|
|
1860
|
-
var
|
|
1860
|
+
var n = {}, o = t.group;
|
|
1861
1861
|
(!o || Oe(o) != "object") && (o = {
|
|
1862
1862
|
name: o
|
|
1863
|
-
}),
|
|
1863
|
+
}), n.name = o.name, n.checkPull = i(o.pull, !0), n.checkPut = i(o.put), n.revertClone = o.revertClone, t.group = n;
|
|
1864
1864
|
}, mo = function() {
|
|
1865
1865
|
!po && x && v(x, "display", "none");
|
|
1866
1866
|
}, yo = function() {
|
|
1867
1867
|
!po && x && v(x, "display", "");
|
|
1868
1868
|
};
|
|
1869
|
-
|
|
1869
|
+
gi && !oo && document.addEventListener("click", function(e) {
|
|
1870
1870
|
if (Fe)
|
|
1871
1871
|
return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), Fe = !1, !1;
|
|
1872
1872
|
}, !0);
|
|
1873
1873
|
var Mt = function(t) {
|
|
1874
1874
|
if (h) {
|
|
1875
1875
|
t = t.touches ? t.touches[0] : t;
|
|
1876
|
-
var
|
|
1877
|
-
if (
|
|
1878
|
-
var
|
|
1876
|
+
var i = Es(t.clientX, t.clientY);
|
|
1877
|
+
if (i) {
|
|
1878
|
+
var n = {};
|
|
1879
1879
|
for (var o in t)
|
|
1880
|
-
t.hasOwnProperty(o) && (
|
|
1881
|
-
|
|
1880
|
+
t.hasOwnProperty(o) && (n[o] = t[o]);
|
|
1881
|
+
n.target = n.rootEl = i, n.preventDefault = void 0, n.stopPropagation = void 0, i[nt]._onDragOver(n);
|
|
1882
1882
|
}
|
|
1883
1883
|
}
|
|
1884
1884
|
}, Ss = function(t) {
|
|
1885
|
-
h && h.parentNode[
|
|
1885
|
+
h && h.parentNode[nt]._isOutsideThisEl(t.target);
|
|
1886
1886
|
};
|
|
1887
1887
|
function w(e, t) {
|
|
1888
1888
|
if (!(e && e.nodeType && e.nodeType === 1))
|
|
1889
1889
|
throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));
|
|
1890
|
-
this.el = e, this.options = t = bt({}, t), e[
|
|
1891
|
-
var
|
|
1890
|
+
this.el = e, this.options = t = bt({}, t), e[nt] = this;
|
|
1891
|
+
var i = {
|
|
1892
1892
|
group: null,
|
|
1893
1893
|
sort: !0,
|
|
1894
1894
|
disabled: !1,
|
|
@@ -1930,12 +1930,12 @@ function w(e, t) {
|
|
|
1930
1930
|
x: 0,
|
|
1931
1931
|
y: 0
|
|
1932
1932
|
},
|
|
1933
|
-
supportPointer: w.supportPointer !== !1 && "PointerEvent" in window && !
|
|
1933
|
+
supportPointer: w.supportPointer !== !1 && "PointerEvent" in window && !de,
|
|
1934
1934
|
emptyInsertThreshold: 5
|
|
1935
1935
|
};
|
|
1936
|
-
Ee.initializePlugins(this, e,
|
|
1937
|
-
for (var
|
|
1938
|
-
!(
|
|
1936
|
+
Ee.initializePlugins(this, e, i);
|
|
1937
|
+
for (var n in i)
|
|
1938
|
+
!(n in t) && (t[n] = i[n]);
|
|
1939
1939
|
go(t);
|
|
1940
1940
|
for (var o in this)
|
|
1941
1941
|
o.charAt(0) === "_" && typeof this[o] == "function" && (this[o] = this[o].bind(this));
|
|
@@ -1947,72 +1947,72 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
1947
1947
|
_isOutsideThisEl: function(t) {
|
|
1948
1948
|
!this.el.contains(t) && t !== this.el && (Ft = null);
|
|
1949
1949
|
},
|
|
1950
|
-
_getDirection: function(t,
|
|
1951
|
-
return typeof this.options.direction == "function" ? this.options.direction.call(this, t,
|
|
1950
|
+
_getDirection: function(t, i) {
|
|
1951
|
+
return typeof this.options.direction == "function" ? this.options.direction.call(this, t, i, h) : this.options.direction;
|
|
1952
1952
|
},
|
|
1953
1953
|
_onTapStart: function(t) {
|
|
1954
1954
|
if (t.cancelable) {
|
|
1955
|
-
var
|
|
1956
|
-
if (Rs(
|
|
1955
|
+
var i = this, n = this.el, o = this.options, r = o.preventOnFilter, s = t.type, a = t.touches && t.touches[0] || t.pointerType && t.pointerType === "touch" && t, l = (a || t).target, d = t.target.shadowRoot && (t.path && t.path[0] || t.composedPath && t.composedPath()[0]) || l, c = o.filter;
|
|
1956
|
+
if (Rs(n), !h && !(/mousedown|pointerdown/.test(s) && t.button !== 0 || o.disabled) && !d.isContentEditable && !(!this.nativeDraggable && de && l && l.tagName.toUpperCase() === "SELECT") && (l = dt(l, o.draggable, n, !1), !(l && l.animated) && Re !== l)) {
|
|
1957
1957
|
if (Xt = st(l), ce = st(l, o.draggable), typeof c == "function") {
|
|
1958
1958
|
if (c.call(this, t, l, this)) {
|
|
1959
1959
|
Q({
|
|
1960
|
-
sortable:
|
|
1961
|
-
rootEl:
|
|
1960
|
+
sortable: i,
|
|
1961
|
+
rootEl: d,
|
|
1962
1962
|
name: "filter",
|
|
1963
1963
|
targetEl: l,
|
|
1964
|
-
toEl:
|
|
1965
|
-
fromEl:
|
|
1966
|
-
}), et("filter",
|
|
1964
|
+
toEl: n,
|
|
1965
|
+
fromEl: n
|
|
1966
|
+
}), et("filter", i, {
|
|
1967
1967
|
evt: t
|
|
1968
1968
|
}), r && t.cancelable && t.preventDefault();
|
|
1969
1969
|
return;
|
|
1970
1970
|
}
|
|
1971
|
-
} else if (c && (c = c.split(",").some(function(
|
|
1972
|
-
if (
|
|
1971
|
+
} else if (c && (c = c.split(",").some(function(u) {
|
|
1972
|
+
if (u = dt(d, u.trim(), n, !1), u)
|
|
1973
1973
|
return Q({
|
|
1974
|
-
sortable:
|
|
1975
|
-
rootEl:
|
|
1974
|
+
sortable: i,
|
|
1975
|
+
rootEl: u,
|
|
1976
1976
|
name: "filter",
|
|
1977
1977
|
targetEl: l,
|
|
1978
|
-
fromEl:
|
|
1979
|
-
toEl:
|
|
1980
|
-
}), et("filter",
|
|
1978
|
+
fromEl: n,
|
|
1979
|
+
toEl: n
|
|
1980
|
+
}), et("filter", i, {
|
|
1981
1981
|
evt: t
|
|
1982
1982
|
}), !0;
|
|
1983
1983
|
}), c)) {
|
|
1984
1984
|
r && t.cancelable && t.preventDefault();
|
|
1985
1985
|
return;
|
|
1986
1986
|
}
|
|
1987
|
-
o.handle && !
|
|
1987
|
+
o.handle && !dt(d, o.handle, n, !1) || this._prepareDragStart(t, a, l);
|
|
1988
1988
|
}
|
|
1989
1989
|
}
|
|
1990
1990
|
},
|
|
1991
|
-
_prepareDragStart: function(t,
|
|
1991
|
+
_prepareDragStart: function(t, i, n) {
|
|
1992
1992
|
var o = this, r = o.el, s = o.options, a = r.ownerDocument, l;
|
|
1993
|
-
if (
|
|
1994
|
-
var
|
|
1995
|
-
if (R = r, h =
|
|
1993
|
+
if (n && !h && n.parentNode === r) {
|
|
1994
|
+
var d = k(n);
|
|
1995
|
+
if (R = r, h = n, N = h.parentNode, It = h.nextSibling, Re = n, Ae = s.group, w.dragged = h, Lt = {
|
|
1996
1996
|
target: h,
|
|
1997
|
-
clientX: (
|
|
1998
|
-
clientY: (
|
|
1999
|
-
},
|
|
1997
|
+
clientX: (i || t).clientX,
|
|
1998
|
+
clientY: (i || t).clientY
|
|
1999
|
+
}, Sn = Lt.clientX - d.left, An = Lt.clientY - d.top, this._lastX = (i || t).clientX, this._lastY = (i || t).clientY, h.style["will-change"] = "all", l = function() {
|
|
2000
2000
|
if (et("delayEnded", o, {
|
|
2001
2001
|
evt: t
|
|
2002
2002
|
}), w.eventCanceled) {
|
|
2003
2003
|
o._onDrop();
|
|
2004
2004
|
return;
|
|
2005
2005
|
}
|
|
2006
|
-
o._disableDelayedDragEvents(), !
|
|
2006
|
+
o._disableDelayedDragEvents(), !wn && o.nativeDraggable && (h.draggable = !0), o._triggerDragStart(t, i), Q({
|
|
2007
2007
|
sortable: o,
|
|
2008
2008
|
name: "choose",
|
|
2009
2009
|
originalEvent: t
|
|
2010
2010
|
}), ot(h, s.chosenClass, !0);
|
|
2011
2011
|
}, s.ignore.split(",").forEach(function(c) {
|
|
2012
|
-
ao(h, c.trim(),
|
|
2013
|
-
}), T(a, "dragover", Mt), T(a, "mousemove", Mt), T(a, "touchmove", Mt), T(a, "mouseup", o._onDrop), T(a, "touchend", o._onDrop), T(a, "touchcancel", o._onDrop),
|
|
2012
|
+
ao(h, c.trim(), Pi);
|
|
2013
|
+
}), T(a, "dragover", Mt), T(a, "mousemove", Mt), T(a, "touchmove", Mt), T(a, "mouseup", o._onDrop), T(a, "touchend", o._onDrop), T(a, "touchcancel", o._onDrop), wn && this.nativeDraggable && (this.options.touchStartThreshold = 4, h.draggable = !0), et("delayStart", this, {
|
|
2014
2014
|
evt: t
|
|
2015
|
-
}), s.delay && (!s.delayOnTouchOnly ||
|
|
2015
|
+
}), s.delay && (!s.delayOnTouchOnly || i) && (!this.nativeDraggable || !(xe || vt))) {
|
|
2016
2016
|
if (w.eventCanceled) {
|
|
2017
2017
|
this._onDrop();
|
|
2018
2018
|
return;
|
|
@@ -2023,18 +2023,18 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2023
2023
|
}
|
|
2024
2024
|
},
|
|
2025
2025
|
_delayedDragTouchMoveHandler: function(t) {
|
|
2026
|
-
var
|
|
2027
|
-
Math.max(Math.abs(
|
|
2026
|
+
var i = t.touches ? t.touches[0] : t;
|
|
2027
|
+
Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1)) && this._disableDelayedDrag();
|
|
2028
2028
|
},
|
|
2029
2029
|
_disableDelayedDrag: function() {
|
|
2030
|
-
h &&
|
|
2030
|
+
h && Pi(h), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
|
|
2031
2031
|
},
|
|
2032
2032
|
_disableDelayedDragEvents: function() {
|
|
2033
2033
|
var t = this.el.ownerDocument;
|
|
2034
2034
|
A(t, "mouseup", this._disableDelayedDrag), A(t, "touchend", this._disableDelayedDrag), A(t, "touchcancel", this._disableDelayedDrag), A(t, "mousemove", this._delayedDragTouchMoveHandler), A(t, "touchmove", this._delayedDragTouchMoveHandler), A(t, "pointermove", this._delayedDragTouchMoveHandler);
|
|
2035
2035
|
},
|
|
2036
|
-
_triggerDragStart: function(t,
|
|
2037
|
-
|
|
2036
|
+
_triggerDragStart: function(t, i) {
|
|
2037
|
+
i = i || t.pointerType == "touch" && t, !this.nativeDraggable || i ? this.options.supportPointer ? T(document, "pointermove", this._onTouchMove) : i ? T(document, "touchmove", this._onTouchMove) : T(document, "mousemove", this._onTouchMove) : (T(h, "dragend", this), T(R, "dragstart", this._onDragStart));
|
|
2038
2038
|
try {
|
|
2039
2039
|
document.selection ? Me(function() {
|
|
2040
2040
|
document.selection.empty();
|
|
@@ -2042,16 +2042,16 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2042
2042
|
} catch {
|
|
2043
2043
|
}
|
|
2044
2044
|
},
|
|
2045
|
-
_dragStarted: function(t,
|
|
2045
|
+
_dragStarted: function(t, i) {
|
|
2046
2046
|
if (Zt = !1, R && h) {
|
|
2047
2047
|
et("dragStarted", this, {
|
|
2048
|
-
evt:
|
|
2048
|
+
evt: i
|
|
2049
2049
|
}), this.nativeDraggable && T(document, "dragover", Ss);
|
|
2050
|
-
var
|
|
2051
|
-
!t && ot(h,
|
|
2050
|
+
var n = this.options;
|
|
2051
|
+
!t && ot(h, n.dragClass, !1), ot(h, n.ghostClass, !0), w.active = this, t && this._appendGhost(), Q({
|
|
2052
2052
|
sortable: this,
|
|
2053
2053
|
name: "start",
|
|
2054
|
-
originalEvent:
|
|
2054
|
+
originalEvent: i
|
|
2055
2055
|
});
|
|
2056
2056
|
} else
|
|
2057
2057
|
this._nulling();
|
|
@@ -2059,78 +2059,78 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2059
2059
|
_emulateDragOver: function() {
|
|
2060
2060
|
if (lt) {
|
|
2061
2061
|
this._lastX = lt.clientX, this._lastY = lt.clientY, mo();
|
|
2062
|
-
for (var t = document.elementFromPoint(lt.clientX, lt.clientY),
|
|
2063
|
-
|
|
2064
|
-
if (h.parentNode[
|
|
2062
|
+
for (var t = document.elementFromPoint(lt.clientX, lt.clientY), i = t; t && t.shadowRoot && (t = t.shadowRoot.elementFromPoint(lt.clientX, lt.clientY), t !== i); )
|
|
2063
|
+
i = t;
|
|
2064
|
+
if (h.parentNode[nt]._isOutsideThisEl(t), i)
|
|
2065
2065
|
do {
|
|
2066
|
-
if (
|
|
2067
|
-
var
|
|
2068
|
-
if (
|
|
2066
|
+
if (i[nt]) {
|
|
2067
|
+
var n = void 0;
|
|
2068
|
+
if (n = i[nt]._onDragOver({
|
|
2069
2069
|
clientX: lt.clientX,
|
|
2070
2070
|
clientY: lt.clientY,
|
|
2071
2071
|
target: t,
|
|
2072
|
-
rootEl:
|
|
2073
|
-
}),
|
|
2072
|
+
rootEl: i
|
|
2073
|
+
}), n && !this.options.dragoverBubble)
|
|
2074
2074
|
break;
|
|
2075
2075
|
}
|
|
2076
|
-
t =
|
|
2077
|
-
} while (
|
|
2076
|
+
t = i;
|
|
2077
|
+
} while (i = so(i));
|
|
2078
2078
|
yo();
|
|
2079
2079
|
}
|
|
2080
2080
|
},
|
|
2081
2081
|
_onTouchMove: function(t) {
|
|
2082
2082
|
if (Lt) {
|
|
2083
|
-
var
|
|
2083
|
+
var i = this.options, n = i.fallbackTolerance, o = i.fallbackOffset, r = t.touches ? t.touches[0] : t, s = x && qt(x, !0), a = x && s && s.a, l = x && s && s.d, d = Ce && G && En(G), c = (r.clientX - Lt.clientX + o.x) / (a || 1) + (d ? d[0] - Ti[0] : 0) / (a || 1), u = (r.clientY - Lt.clientY + o.y) / (l || 1) + (d ? d[1] - Ti[1] : 0) / (l || 1);
|
|
2084
2084
|
if (!w.active && !Zt) {
|
|
2085
|
-
if (
|
|
2085
|
+
if (n && Math.max(Math.abs(r.clientX - this._lastX), Math.abs(r.clientY - this._lastY)) < n)
|
|
2086
2086
|
return;
|
|
2087
2087
|
this._onDragStart(t, !0);
|
|
2088
2088
|
}
|
|
2089
2089
|
if (x) {
|
|
2090
|
-
s ? (s.e += c - (
|
|
2090
|
+
s ? (s.e += c - (_i || 0), s.f += u - (Ci || 0)) : s = {
|
|
2091
2091
|
a: 1,
|
|
2092
2092
|
b: 0,
|
|
2093
2093
|
c: 0,
|
|
2094
2094
|
d: 1,
|
|
2095
2095
|
e: c,
|
|
2096
|
-
f:
|
|
2096
|
+
f: u
|
|
2097
2097
|
};
|
|
2098
2098
|
var p = "matrix(".concat(s.a, ",").concat(s.b, ",").concat(s.c, ",").concat(s.d, ",").concat(s.e, ",").concat(s.f, ")");
|
|
2099
|
-
v(x, "webkitTransform", p), v(x, "mozTransform", p), v(x, "msTransform", p), v(x, "transform", p),
|
|
2099
|
+
v(x, "webkitTransform", p), v(x, "mozTransform", p), v(x, "msTransform", p), v(x, "transform", p), _i = c, Ci = u, lt = r;
|
|
2100
2100
|
}
|
|
2101
2101
|
t.cancelable && t.preventDefault();
|
|
2102
2102
|
}
|
|
2103
2103
|
},
|
|
2104
2104
|
_appendGhost: function() {
|
|
2105
2105
|
if (!x) {
|
|
2106
|
-
var t = this.options.fallbackOnBody ? document.body : R,
|
|
2106
|
+
var t = this.options.fallbackOnBody ? document.body : R, i = k(h, !0, Ce, !0, t), n = this.options;
|
|
2107
2107
|
if (Ce) {
|
|
2108
2108
|
for (G = t; v(G, "position") === "static" && v(G, "transform") === "none" && G !== document; )
|
|
2109
2109
|
G = G.parentNode;
|
|
2110
|
-
G !== document.body && G !== document.documentElement ? (G === document && (G =
|
|
2110
|
+
G !== document.body && G !== document.documentElement ? (G === document && (G = ut()), i.top += G.scrollTop, i.left += G.scrollLeft) : G = ut(), Ti = En(G);
|
|
2111
2111
|
}
|
|
2112
|
-
x = h.cloneNode(!0), ot(x,
|
|
2112
|
+
x = h.cloneNode(!0), ot(x, n.ghostClass, !1), ot(x, n.fallbackClass, !0), ot(x, n.dragClass, !0), v(x, "transition", ""), v(x, "transform", ""), v(x, "box-sizing", "border-box"), v(x, "margin", 0), v(x, "top", i.top), v(x, "left", i.left), v(x, "width", i.width), v(x, "height", i.height), v(x, "opacity", "0.8"), v(x, "position", Ce ? "absolute" : "fixed"), v(x, "zIndex", "100000"), v(x, "pointerEvents", "none"), w.ghost = x, t.appendChild(x), v(x, "transform-origin", Sn / parseInt(x.style.width) * 100 + "% " + An / parseInt(x.style.height) * 100 + "%");
|
|
2113
2113
|
}
|
|
2114
2114
|
},
|
|
2115
|
-
_onDragStart: function(t,
|
|
2116
|
-
var
|
|
2115
|
+
_onDragStart: function(t, i) {
|
|
2116
|
+
var n = this, o = t.dataTransfer, r = n.options;
|
|
2117
2117
|
if (et("dragStart", this, {
|
|
2118
2118
|
evt: t
|
|
2119
2119
|
}), w.eventCanceled) {
|
|
2120
2120
|
this._onDrop();
|
|
2121
2121
|
return;
|
|
2122
2122
|
}
|
|
2123
|
-
et("setupClone", this), w.eventCanceled || (L = co(h), L.removeAttribute("id"), L.draggable = !1, L.style["will-change"] = "", this._hideClone(), ot(L, this.options.chosenClass, !1), w.clone = L),
|
|
2124
|
-
et("clone",
|
|
2125
|
-
sortable:
|
|
2123
|
+
et("setupClone", this), w.eventCanceled || (L = co(h), L.removeAttribute("id"), L.draggable = !1, L.style["will-change"] = "", this._hideClone(), ot(L, this.options.chosenClass, !1), w.clone = L), n.cloneId = Me(function() {
|
|
2124
|
+
et("clone", n), !w.eventCanceled && (n.options.removeCloneOnHide || R.insertBefore(L, h), n._hideClone(), Q({
|
|
2125
|
+
sortable: n,
|
|
2126
2126
|
name: "clone"
|
|
2127
2127
|
}));
|
|
2128
|
-
}), !
|
|
2128
|
+
}), !i && ot(h, r.dragClass, !0), i ? (Fe = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (A(document, "mouseup", n._onDrop), A(document, "touchend", n._onDrop), A(document, "touchcancel", n._onDrop), o && (o.effectAllowed = "move", r.setData && r.setData.call(n, o, h)), T(document, "drop", n), v(h, "transform", "translateZ(0)")), Zt = !0, n._dragStartId = Me(n._dragStarted.bind(n, i, t)), T(document, "selectstart", n), oe = !0, de && v(document.body, "user-select", "none");
|
|
2129
2129
|
},
|
|
2130
2130
|
// Returns true - if no further action is needed (either inserted or another condition)
|
|
2131
2131
|
_onDragOver: function(t) {
|
|
2132
|
-
var
|
|
2133
|
-
if (
|
|
2132
|
+
var i = this.el, n = t.target, o, r, s, a = this.options, l = a.group, d = w.active, c = Ae === l, u = a.sort, p = X || d, f, g = this, y = !1;
|
|
2133
|
+
if (Ni) return;
|
|
2134
2134
|
function D(ee, Xo) {
|
|
2135
2135
|
et(ee, g, ct({
|
|
2136
2136
|
evt: t,
|
|
@@ -2139,12 +2139,12 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2139
2139
|
revert: s,
|
|
2140
2140
|
dragRect: o,
|
|
2141
2141
|
targetRect: r,
|
|
2142
|
-
canSort:
|
|
2142
|
+
canSort: u,
|
|
2143
2143
|
fromSortable: p,
|
|
2144
|
-
target:
|
|
2144
|
+
target: n,
|
|
2145
2145
|
completed: H,
|
|
2146
|
-
onMove: function(
|
|
2147
|
-
return Te(R,
|
|
2146
|
+
onMove: function(rn, qo) {
|
|
2147
|
+
return Te(R, i, h, o, rn, k(rn), t, qo);
|
|
2148
2148
|
},
|
|
2149
2149
|
changed: J
|
|
2150
2150
|
}, Xo));
|
|
@@ -2155,43 +2155,43 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2155
2155
|
function H(ee) {
|
|
2156
2156
|
return D("dragOverCompleted", {
|
|
2157
2157
|
insertion: ee
|
|
2158
|
-
}), ee && (c ?
|
|
2158
|
+
}), ee && (c ? d._hideClone() : d._showClone(g), g !== p && (ot(h, X ? X.options.ghostClass : d.options.ghostClass, !1), ot(h, a.ghostClass, !0)), X !== g && g !== w.active ? X = g : g === w.active && X && (X = null), p === g && (g._ignoreWhileAnimating = n), g.animateAll(function() {
|
|
2159
2159
|
D("dragOverAnimationComplete"), g._ignoreWhileAnimating = null;
|
|
2160
|
-
}), g !== p && (p.animateAll(), p._ignoreWhileAnimating = null)), (
|
|
2160
|
+
}), g !== p && (p.animateAll(), p._ignoreWhileAnimating = null)), (n === h && !h.animated || n === i && !n.animated) && (Ft = null), !a.dragoverBubble && !t.rootEl && n !== document && (h.parentNode[nt]._isOutsideThisEl(t.target), !ee && Mt(t)), !a.dragoverBubble && t.stopPropagation && t.stopPropagation(), y = !0;
|
|
2161
2161
|
}
|
|
2162
2162
|
function J() {
|
|
2163
2163
|
rt = st(h), Et = st(h, a.draggable), Q({
|
|
2164
2164
|
sortable: g,
|
|
2165
2165
|
name: "change",
|
|
2166
|
-
toEl:
|
|
2166
|
+
toEl: i,
|
|
2167
2167
|
newIndex: rt,
|
|
2168
2168
|
newDraggableIndex: Et,
|
|
2169
2169
|
originalEvent: t
|
|
2170
2170
|
});
|
|
2171
2171
|
}
|
|
2172
|
-
if (t.preventDefault !== void 0 && t.cancelable && t.preventDefault(),
|
|
2173
|
-
if (h.contains(t.target) ||
|
|
2172
|
+
if (t.preventDefault !== void 0 && t.cancelable && t.preventDefault(), n = dt(n, a.draggable, i, !0), D("dragOver"), w.eventCanceled) return y;
|
|
2173
|
+
if (h.contains(t.target) || n.animated && n.animatingX && n.animatingY || g._ignoreWhileAnimating === n)
|
|
2174
2174
|
return H(!1);
|
|
2175
|
-
if (Fe = !1,
|
|
2176
|
-
if (f = this._getDirection(t,
|
|
2175
|
+
if (Fe = !1, d && !a.disabled && (c ? u || (s = N !== R) : X === this || (this.lastPutMode = Ae.checkPull(this, d, h, t)) && l.checkPut(this, d, h, t))) {
|
|
2176
|
+
if (f = this._getDirection(t, n) === "vertical", o = k(h), D("dragOverValid"), w.eventCanceled) return y;
|
|
2177
2177
|
if (s)
|
|
2178
2178
|
return N = R, M(), this._hideClone(), D("revert"), w.eventCanceled || (It ? R.insertBefore(h, It) : R.appendChild(h)), H(!0);
|
|
2179
|
-
var Z =
|
|
2179
|
+
var Z = Qi(i, a.draggable);
|
|
2180
2180
|
if (!Z || Ts(t, f, this) && !Z.animated) {
|
|
2181
2181
|
if (Z === h)
|
|
2182
2182
|
return H(!1);
|
|
2183
|
-
if (Z &&
|
|
2184
|
-
return M(), Z && Z.nextSibling ?
|
|
2183
|
+
if (Z && i === t.target && (n = Z), n && (r = k(n)), Te(R, i, h, o, n, r, t, !!n) !== !1)
|
|
2184
|
+
return M(), Z && Z.nextSibling ? i.insertBefore(h, Z.nextSibling) : i.appendChild(h), N = i, J(), H(!0);
|
|
2185
2185
|
} else if (Z && Cs(t, f, this)) {
|
|
2186
|
-
var K = Wt(
|
|
2186
|
+
var K = Wt(i, 0, a, !0);
|
|
2187
2187
|
if (K === h)
|
|
2188
2188
|
return H(!1);
|
|
2189
|
-
if (
|
|
2190
|
-
return M(),
|
|
2191
|
-
} else if (
|
|
2192
|
-
r = k(
|
|
2193
|
-
var b = 0, O, z = h.parentNode !==
|
|
2194
|
-
Ft !==
|
|
2189
|
+
if (n = K, r = k(n), Te(R, i, h, o, n, r, t, !1) !== !1)
|
|
2190
|
+
return M(), i.insertBefore(h, K), N = i, J(), H(!0);
|
|
2191
|
+
} else if (n.parentNode === i) {
|
|
2192
|
+
r = k(n);
|
|
2193
|
+
var b = 0, O, z = h.parentNode !== i, U = !xs(h.animated && h.toRect || o, n.animated && n.toRect || r, f), Kt = f ? "top" : "left", wt = xn(n, "top", "top") || xn(h, "top", "top"), Qt = wt ? wt.scrollTop : void 0;
|
|
2194
|
+
Ft !== n && (O = r[Kt], pe = !1, _e = !U && a.invertSwap || z), b = Ps(t, n, r, f, U ? 1 : a.swapThreshold, a.invertedSwapThreshold == null ? a.swapThreshold : a.invertedSwapThreshold, _e, Ft === n);
|
|
2195
2195
|
var ht;
|
|
2196
2196
|
if (b !== 0) {
|
|
2197
2197
|
var Dt = st(h);
|
|
@@ -2199,16 +2199,16 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2199
2199
|
Dt -= b, ht = N.children[Dt];
|
|
2200
2200
|
while (ht && (v(ht, "display") === "none" || ht === x));
|
|
2201
2201
|
}
|
|
2202
|
-
if (b === 0 || ht ===
|
|
2202
|
+
if (b === 0 || ht === n)
|
|
2203
2203
|
return H(!1);
|
|
2204
|
-
Ft =
|
|
2205
|
-
var te =
|
|
2204
|
+
Ft = n, he = b;
|
|
2205
|
+
var te = n.nextElementSibling, $t = !1;
|
|
2206
2206
|
$t = b === 1;
|
|
2207
|
-
var Se = Te(R,
|
|
2207
|
+
var Se = Te(R, i, h, o, n, r, t, $t);
|
|
2208
2208
|
if (Se !== !1)
|
|
2209
|
-
return (Se === 1 || Se === -1) && ($t = Se === 1),
|
|
2209
|
+
return (Se === 1 || Se === -1) && ($t = Se === 1), Ni = !0, setTimeout(_s, 30), M(), $t && !te ? i.appendChild(h) : n.parentNode.insertBefore(h, $t ? te : n), wt && uo(wt, 0, Qt - wt.scrollTop), N = h.parentNode, O !== void 0 && !_e && (Le = Math.abs(O - k(n)[Kt])), J(), H(!0);
|
|
2210
2210
|
}
|
|
2211
|
-
if (
|
|
2211
|
+
if (i.contains(h))
|
|
2212
2212
|
return H(!1);
|
|
2213
2213
|
}
|
|
2214
2214
|
return !1;
|
|
@@ -2222,14 +2222,14 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2222
2222
|
A(t, "mouseup", this._onDrop), A(t, "touchend", this._onDrop), A(t, "pointerup", this._onDrop), A(t, "touchcancel", this._onDrop), A(document, "selectstart", this);
|
|
2223
2223
|
},
|
|
2224
2224
|
_onDrop: function(t) {
|
|
2225
|
-
var
|
|
2226
|
-
if (rt = st(h), Et = st(h,
|
|
2225
|
+
var i = this.el, n = this.options;
|
|
2226
|
+
if (rt = st(h), Et = st(h, n.draggable), et("drop", this, {
|
|
2227
2227
|
evt: t
|
|
2228
|
-
}), N = h && h.parentNode, rt = st(h), Et = st(h,
|
|
2228
|
+
}), N = h && h.parentNode, rt = st(h), Et = st(h, n.draggable), w.eventCanceled) {
|
|
2229
2229
|
this._nulling();
|
|
2230
2230
|
return;
|
|
2231
2231
|
}
|
|
2232
|
-
Zt = !1, _e = !1, pe = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer),
|
|
2232
|
+
Zt = !1, _e = !1, pe = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Hi(this.cloneId), Hi(this._dragStartId), this.nativeDraggable && (A(document, "drop", this), A(i, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), de && v(document.body, "user-select", ""), v(h, "transform", ""), t && (oe && (t.cancelable && t.preventDefault(), !n.dropBubble && t.stopPropagation()), x && x.parentNode && x.parentNode.removeChild(x), (R === N || X && X.lastPutMode !== "clone") && L && L.parentNode && L.parentNode.removeChild(L), h && (this.nativeDraggable && A(h, "dragend", this), Pi(h), h.style["will-change"] = "", oe && !Zt && ot(h, X ? X.options.ghostClass : this.options.ghostClass, !1), ot(h, this.options.chosenClass, !1), Q({
|
|
2233
2233
|
sortable: this,
|
|
2234
2234
|
name: "unchoose",
|
|
2235
2235
|
toEl: N,
|
|
@@ -2278,7 +2278,7 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2278
2278
|
_nulling: function() {
|
|
2279
2279
|
et("nulling", this), R = h = N = x = It = L = Re = St = Lt = lt = oe = rt = Et = Xt = ce = Ft = he = X = Ae = w.dragged = w.ghost = w.clone = w.active = null, Ze.forEach(function(t) {
|
|
2280
2280
|
t.checked = !0;
|
|
2281
|
-
}), Ze.length =
|
|
2281
|
+
}), Ze.length = _i = Ci = 0;
|
|
2282
2282
|
},
|
|
2283
2283
|
handleEvent: function(t) {
|
|
2284
2284
|
switch (t.type) {
|
|
@@ -2300,22 +2300,22 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2300
2300
|
* @returns {String[]}
|
|
2301
2301
|
*/
|
|
2302
2302
|
toArray: function() {
|
|
2303
|
-
for (var t = [],
|
|
2304
|
-
|
|
2303
|
+
for (var t = [], i, n = this.el.children, o = 0, r = n.length, s = this.options; o < r; o++)
|
|
2304
|
+
i = n[o], dt(i, s.draggable, this.el, !1) && t.push(i.getAttribute(s.dataIdAttr) || Os(i));
|
|
2305
2305
|
return t;
|
|
2306
2306
|
},
|
|
2307
2307
|
/**
|
|
2308
2308
|
* Sorts the elements according to the array.
|
|
2309
2309
|
* @param {String[]} order order of the items
|
|
2310
2310
|
*/
|
|
2311
|
-
sort: function(t,
|
|
2312
|
-
var
|
|
2311
|
+
sort: function(t, i) {
|
|
2312
|
+
var n = {}, o = this.el;
|
|
2313
2313
|
this.toArray().forEach(function(r, s) {
|
|
2314
2314
|
var a = o.children[s];
|
|
2315
|
-
|
|
2316
|
-
}, this),
|
|
2317
|
-
|
|
2318
|
-
}),
|
|
2315
|
+
dt(a, this.options.draggable, o, !1) && (n[r] = a);
|
|
2316
|
+
}, this), i && this.captureAnimationState(), t.forEach(function(r) {
|
|
2317
|
+
n[r] && (o.removeChild(n[r]), o.appendChild(n[r]));
|
|
2318
|
+
}), i && this.animateAll();
|
|
2319
2319
|
},
|
|
2320
2320
|
/**
|
|
2321
2321
|
* Save the current sorting
|
|
@@ -2330,8 +2330,8 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2330
2330
|
* @param {String} [selector] default: `options.draggable`
|
|
2331
2331
|
* @returns {HTMLElement|null}
|
|
2332
2332
|
*/
|
|
2333
|
-
closest: function(t,
|
|
2334
|
-
return
|
|
2333
|
+
closest: function(t, i) {
|
|
2334
|
+
return dt(t, i || this.options.draggable, this.el, !1);
|
|
2335
2335
|
},
|
|
2336
2336
|
/**
|
|
2337
2337
|
* Set/get option
|
|
@@ -2339,12 +2339,12 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2339
2339
|
* @param {*} [value]
|
|
2340
2340
|
* @returns {*}
|
|
2341
2341
|
*/
|
|
2342
|
-
option: function(t,
|
|
2343
|
-
var
|
|
2344
|
-
if (
|
|
2345
|
-
return
|
|
2346
|
-
var o = Ee.modifyOption(this, t,
|
|
2347
|
-
typeof o < "u" ?
|
|
2342
|
+
option: function(t, i) {
|
|
2343
|
+
var n = this.options;
|
|
2344
|
+
if (i === void 0)
|
|
2345
|
+
return n[t];
|
|
2346
|
+
var o = Ee.modifyOption(this, t, i);
|
|
2347
|
+
typeof o < "u" ? n[t] = o : n[t] = i, t === "group" && go(n);
|
|
2348
2348
|
},
|
|
2349
2349
|
/**
|
|
2350
2350
|
* Destroy
|
|
@@ -2352,8 +2352,8 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2352
2352
|
destroy: function() {
|
|
2353
2353
|
et("destroy", this);
|
|
2354
2354
|
var t = this.el;
|
|
2355
|
-
t[
|
|
2356
|
-
|
|
2355
|
+
t[nt] = null, A(t, "mousedown", this._onTapStart), A(t, "touchstart", this._onTapStart), A(t, "pointerdown", this._onTapStart), this.nativeDraggable && (A(t, "dragover", this), A(t, "dragenter", this)), Array.prototype.forEach.call(t.querySelectorAll("[draggable]"), function(i) {
|
|
2356
|
+
i.removeAttribute("draggable");
|
|
2357
2357
|
}), this._onDrop(), this._disableDelayedDragEvents(), je.splice(je.indexOf(this.el), 1), this.el = t = null;
|
|
2358
2358
|
},
|
|
2359
2359
|
_hideClone: function() {
|
|
@@ -2376,62 +2376,62 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2376
2376
|
function As(e) {
|
|
2377
2377
|
e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
|
|
2378
2378
|
}
|
|
2379
|
-
function Te(e, t,
|
|
2380
|
-
var l,
|
|
2379
|
+
function Te(e, t, i, n, o, r, s, a) {
|
|
2380
|
+
var l, d = e[nt], c = d.options.onMove, u;
|
|
2381
2381
|
return window.CustomEvent && !vt && !xe ? l = new CustomEvent("move", {
|
|
2382
2382
|
bubbles: !0,
|
|
2383
2383
|
cancelable: !0
|
|
2384
|
-
}) : (l = document.createEvent("Event"), l.initEvent("move", !0, !0)), l.to = t, l.from = e, l.dragged =
|
|
2384
|
+
}) : (l = document.createEvent("Event"), l.initEvent("move", !0, !0)), l.to = t, l.from = e, l.dragged = i, l.draggedRect = n, l.related = o || t, l.relatedRect = r || k(t), l.willInsertAfter = a, l.originalEvent = s, e.dispatchEvent(l), c && (u = c.call(d, l, s)), u;
|
|
2385
2385
|
}
|
|
2386
|
-
function
|
|
2386
|
+
function Pi(e) {
|
|
2387
2387
|
e.draggable = !1;
|
|
2388
2388
|
}
|
|
2389
2389
|
function _s() {
|
|
2390
|
-
|
|
2390
|
+
Ni = !1;
|
|
2391
2391
|
}
|
|
2392
|
-
function Cs(e, t,
|
|
2393
|
-
var
|
|
2394
|
-
return t ? e.clientX < o.left - r || e.clientY <
|
|
2392
|
+
function Cs(e, t, i) {
|
|
2393
|
+
var n = k(Wt(i.el, 0, i.options, !0)), o = ho(i.el, i.options, x), r = 10;
|
|
2394
|
+
return t ? e.clientX < o.left - r || e.clientY < n.top && e.clientX < n.right : e.clientY < o.top - r || e.clientY < n.bottom && e.clientX < n.left;
|
|
2395
2395
|
}
|
|
2396
|
-
function Ts(e, t,
|
|
2397
|
-
var
|
|
2398
|
-
return t ? e.clientX > o.right + r || e.clientY >
|
|
2396
|
+
function Ts(e, t, i) {
|
|
2397
|
+
var n = k(Qi(i.el, i.options.draggable)), o = ho(i.el, i.options, x), r = 10;
|
|
2398
|
+
return t ? e.clientX > o.right + r || e.clientY > n.bottom && e.clientX > n.left : e.clientY > o.bottom + r || e.clientX > n.right && e.clientY > n.top;
|
|
2399
2399
|
}
|
|
2400
|
-
function Ps(e, t,
|
|
2401
|
-
var l =
|
|
2400
|
+
function Ps(e, t, i, n, o, r, s, a) {
|
|
2401
|
+
var l = n ? e.clientY : e.clientX, d = n ? i.height : i.width, c = n ? i.top : i.left, u = n ? i.bottom : i.right, p = !1;
|
|
2402
2402
|
if (!s) {
|
|
2403
|
-
if (a && Le <
|
|
2404
|
-
if (!pe && (he === 1 ? l > c +
|
|
2403
|
+
if (a && Le < d * o) {
|
|
2404
|
+
if (!pe && (he === 1 ? l > c + d * r / 2 : l < u - d * r / 2) && (pe = !0), pe)
|
|
2405
2405
|
p = !0;
|
|
2406
|
-
else if (he === 1 ? l < c + Le : l >
|
|
2406
|
+
else if (he === 1 ? l < c + Le : l > u - Le)
|
|
2407
2407
|
return -he;
|
|
2408
|
-
} else if (l > c +
|
|
2408
|
+
} else if (l > c + d * (1 - o) / 2 && l < u - d * (1 - o) / 2)
|
|
2409
2409
|
return Ds(t);
|
|
2410
2410
|
}
|
|
2411
|
-
return p = p || s, p && (l < c +
|
|
2411
|
+
return p = p || s, p && (l < c + d * r / 2 || l > u - d * r / 2) ? l > c + d / 2 ? 1 : -1 : 0;
|
|
2412
2412
|
}
|
|
2413
2413
|
function Ds(e) {
|
|
2414
2414
|
return st(h) < st(e) ? 1 : -1;
|
|
2415
2415
|
}
|
|
2416
2416
|
function Os(e) {
|
|
2417
|
-
for (var t = e.tagName + e.className + e.src + e.href + e.textContent,
|
|
2418
|
-
|
|
2419
|
-
return
|
|
2417
|
+
for (var t = e.tagName + e.className + e.src + e.href + e.textContent, i = t.length, n = 0; i--; )
|
|
2418
|
+
n += t.charCodeAt(i);
|
|
2419
|
+
return n.toString(36);
|
|
2420
2420
|
}
|
|
2421
2421
|
function Rs(e) {
|
|
2422
2422
|
Ze.length = 0;
|
|
2423
|
-
for (var t = e.getElementsByTagName("input"),
|
|
2424
|
-
var
|
|
2425
|
-
|
|
2423
|
+
for (var t = e.getElementsByTagName("input"), i = t.length; i--; ) {
|
|
2424
|
+
var n = t[i];
|
|
2425
|
+
n.checked && Ze.push(n);
|
|
2426
2426
|
}
|
|
2427
2427
|
}
|
|
2428
2428
|
function Me(e) {
|
|
2429
2429
|
return setTimeout(e, 0);
|
|
2430
2430
|
}
|
|
2431
|
-
function
|
|
2431
|
+
function Hi(e) {
|
|
2432
2432
|
return clearTimeout(e);
|
|
2433
2433
|
}
|
|
2434
|
-
|
|
2434
|
+
gi && T(document, "touchmove", function(e) {
|
|
2435
2435
|
(w.active || Zt) && e.cancelable && e.preventDefault();
|
|
2436
2436
|
});
|
|
2437
2437
|
w.utils = {
|
|
@@ -2439,38 +2439,38 @@ w.utils = {
|
|
|
2439
2439
|
off: A,
|
|
2440
2440
|
css: v,
|
|
2441
2441
|
find: ao,
|
|
2442
|
-
is: function(t,
|
|
2443
|
-
return !!
|
|
2442
|
+
is: function(t, i) {
|
|
2443
|
+
return !!dt(t, i, t, !1);
|
|
2444
2444
|
},
|
|
2445
2445
|
extend: fs,
|
|
2446
2446
|
throttle: lo,
|
|
2447
|
-
closest:
|
|
2447
|
+
closest: dt,
|
|
2448
2448
|
toggleClass: ot,
|
|
2449
2449
|
clone: co,
|
|
2450
2450
|
index: st,
|
|
2451
2451
|
nextTick: Me,
|
|
2452
|
-
cancelNextTick:
|
|
2452
|
+
cancelNextTick: Hi,
|
|
2453
2453
|
detectDirection: fo,
|
|
2454
2454
|
getChild: Wt,
|
|
2455
|
-
expando:
|
|
2455
|
+
expando: nt
|
|
2456
2456
|
};
|
|
2457
2457
|
w.get = function(e) {
|
|
2458
|
-
return e[
|
|
2458
|
+
return e[nt];
|
|
2459
2459
|
};
|
|
2460
2460
|
w.mount = function() {
|
|
2461
|
-
for (var e = arguments.length, t = new Array(e),
|
|
2462
|
-
t[
|
|
2463
|
-
t[0].constructor === Array && (t = t[0]), t.forEach(function(
|
|
2464
|
-
if (!
|
|
2465
|
-
throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(
|
|
2466
|
-
|
|
2461
|
+
for (var e = arguments.length, t = new Array(e), i = 0; i < e; i++)
|
|
2462
|
+
t[i] = arguments[i];
|
|
2463
|
+
t[0].constructor === Array && (t = t[0]), t.forEach(function(n) {
|
|
2464
|
+
if (!n.prototype || !n.prototype.constructor)
|
|
2465
|
+
throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(n));
|
|
2466
|
+
n.utils && (w.utils = ct(ct({}, w.utils), n.utils)), Ee.mount(n);
|
|
2467
2467
|
});
|
|
2468
2468
|
};
|
|
2469
2469
|
w.create = function(e, t) {
|
|
2470
2470
|
return new w(e, t);
|
|
2471
2471
|
};
|
|
2472
2472
|
w.version = hs;
|
|
2473
|
-
var B = [], re,
|
|
2473
|
+
var B = [], re, Vi, Bi = !1, Di, Oi, ze, se;
|
|
2474
2474
|
function Ls() {
|
|
2475
2475
|
function e() {
|
|
2476
2476
|
this.defaults = {
|
|
@@ -2484,38 +2484,38 @@ function Ls() {
|
|
|
2484
2484
|
t.charAt(0) === "_" && typeof this[t] == "function" && (this[t] = this[t].bind(this));
|
|
2485
2485
|
}
|
|
2486
2486
|
return e.prototype = {
|
|
2487
|
-
dragStarted: function(
|
|
2488
|
-
var
|
|
2489
|
-
this.sortable.nativeDraggable ? T(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? T(document, "pointermove", this._handleFallbackAutoScroll) :
|
|
2487
|
+
dragStarted: function(i) {
|
|
2488
|
+
var n = i.originalEvent;
|
|
2489
|
+
this.sortable.nativeDraggable ? T(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? T(document, "pointermove", this._handleFallbackAutoScroll) : n.touches ? T(document, "touchmove", this._handleFallbackAutoScroll) : T(document, "mousemove", this._handleFallbackAutoScroll);
|
|
2490
2490
|
},
|
|
2491
|
-
dragOverCompleted: function(
|
|
2492
|
-
var
|
|
2493
|
-
!this.options.dragOverBubble && !
|
|
2491
|
+
dragOverCompleted: function(i) {
|
|
2492
|
+
var n = i.originalEvent;
|
|
2493
|
+
!this.options.dragOverBubble && !n.rootEl && this._handleAutoScroll(n);
|
|
2494
2494
|
},
|
|
2495
2495
|
drop: function() {
|
|
2496
|
-
this.sortable.nativeDraggable ? A(document, "dragover", this._handleAutoScroll) : (A(document, "pointermove", this._handleFallbackAutoScroll), A(document, "touchmove", this._handleFallbackAutoScroll), A(document, "mousemove", this._handleFallbackAutoScroll)),
|
|
2496
|
+
this.sortable.nativeDraggable ? A(document, "dragover", this._handleAutoScroll) : (A(document, "pointermove", this._handleFallbackAutoScroll), A(document, "touchmove", this._handleFallbackAutoScroll), A(document, "mousemove", this._handleFallbackAutoScroll)), Cn(), Ie(), gs();
|
|
2497
2497
|
},
|
|
2498
2498
|
nulling: function() {
|
|
2499
|
-
ze =
|
|
2499
|
+
ze = Vi = re = Bi = se = Di = Oi = null, B.length = 0;
|
|
2500
2500
|
},
|
|
2501
|
-
_handleFallbackAutoScroll: function(
|
|
2502
|
-
this._handleAutoScroll(
|
|
2501
|
+
_handleFallbackAutoScroll: function(i) {
|
|
2502
|
+
this._handleAutoScroll(i, !0);
|
|
2503
2503
|
},
|
|
2504
|
-
_handleAutoScroll: function(
|
|
2505
|
-
var o = this, r = (
|
|
2506
|
-
if (ze =
|
|
2507
|
-
|
|
2504
|
+
_handleAutoScroll: function(i, n) {
|
|
2505
|
+
var o = this, r = (i.touches ? i.touches[0] : i).clientX, s = (i.touches ? i.touches[0] : i).clientY, a = document.elementFromPoint(r, s);
|
|
2506
|
+
if (ze = i, n || this.options.forceAutoScrollFallback || xe || vt || de) {
|
|
2507
|
+
Ri(i, this.options, a, n);
|
|
2508
2508
|
var l = _t(a, !0);
|
|
2509
|
-
|
|
2510
|
-
var
|
|
2511
|
-
|
|
2512
|
-
}, 10),
|
|
2509
|
+
Bi && (!se || r !== Di || s !== Oi) && (se && Cn(), se = setInterval(function() {
|
|
2510
|
+
var d = _t(document.elementFromPoint(r, s), !0);
|
|
2511
|
+
d !== l && (l = d, Ie()), Ri(i, o.options, d, n);
|
|
2512
|
+
}, 10), Di = r, Oi = s);
|
|
2513
2513
|
} else {
|
|
2514
|
-
if (!this.options.bubbleScroll || _t(a, !0) ===
|
|
2514
|
+
if (!this.options.bubbleScroll || _t(a, !0) === ut()) {
|
|
2515
2515
|
Ie();
|
|
2516
2516
|
return;
|
|
2517
2517
|
}
|
|
2518
|
-
|
|
2518
|
+
Ri(i, this.options, _t(a, !1), !1);
|
|
2519
2519
|
}
|
|
2520
2520
|
}
|
|
2521
2521
|
}, bt(e, {
|
|
@@ -2528,107 +2528,107 @@ function Ie() {
|
|
|
2528
2528
|
clearInterval(e.pid);
|
|
2529
2529
|
}), B = [];
|
|
2530
2530
|
}
|
|
2531
|
-
function
|
|
2531
|
+
function Cn() {
|
|
2532
2532
|
clearInterval(se);
|
|
2533
2533
|
}
|
|
2534
|
-
var
|
|
2534
|
+
var Ri = lo(function(e, t, i, n) {
|
|
2535
2535
|
if (t.scroll) {
|
|
2536
|
-
var o = (e.touches ? e.touches[0] : e).clientX, r = (e.touches ? e.touches[0] : e).clientY, s = t.scrollSensitivity, a = t.scrollSpeed, l =
|
|
2537
|
-
|
|
2538
|
-
var
|
|
2536
|
+
var o = (e.touches ? e.touches[0] : e).clientX, r = (e.touches ? e.touches[0] : e).clientY, s = t.scrollSensitivity, a = t.scrollSpeed, l = ut(), d = !1, c;
|
|
2537
|
+
Vi !== i && (Vi = i, Ie(), re = t.scroll, c = t.scrollFn, re === !0 && (re = _t(i, !0)));
|
|
2538
|
+
var u = 0, p = re;
|
|
2539
2539
|
do {
|
|
2540
2540
|
var f = p, g = k(f), y = g.top, D = g.bottom, M = g.left, H = g.right, J = g.width, Z = g.height, K = void 0, b = void 0, O = f.scrollWidth, z = f.scrollHeight, U = v(f), Kt = f.scrollLeft, wt = f.scrollTop;
|
|
2541
2541
|
f === l ? (K = J < O && (U.overflowX === "auto" || U.overflowX === "scroll" || U.overflowX === "visible"), b = Z < z && (U.overflowY === "auto" || U.overflowY === "scroll" || U.overflowY === "visible")) : (K = J < O && (U.overflowX === "auto" || U.overflowX === "scroll"), b = Z < z && (U.overflowY === "auto" || U.overflowY === "scroll"));
|
|
2542
2542
|
var Qt = K && (Math.abs(H - o) <= s && Kt + J < O) - (Math.abs(M - o) <= s && !!Kt), ht = b && (Math.abs(D - r) <= s && wt + Z < z) - (Math.abs(y - r) <= s && !!wt);
|
|
2543
|
-
if (!B[
|
|
2544
|
-
for (var Dt = 0; Dt <=
|
|
2543
|
+
if (!B[u])
|
|
2544
|
+
for (var Dt = 0; Dt <= u; Dt++)
|
|
2545
2545
|
B[Dt] || (B[Dt] = {});
|
|
2546
|
-
(B[
|
|
2547
|
-
|
|
2546
|
+
(B[u].vx != Qt || B[u].vy != ht || B[u].el !== f) && (B[u].el = f, B[u].vx = Qt, B[u].vy = ht, clearInterval(B[u].pid), (Qt != 0 || ht != 0) && (d = !0, B[u].pid = setInterval((function() {
|
|
2547
|
+
n && this.layer === 0 && w.active._onTouchMove(ze);
|
|
2548
2548
|
var te = B[this.layer].vy ? B[this.layer].vy * a : 0, $t = B[this.layer].vx ? B[this.layer].vx * a : 0;
|
|
2549
|
-
typeof c == "function" && c.call(w.dragged.parentNode[
|
|
2549
|
+
typeof c == "function" && c.call(w.dragged.parentNode[nt], $t, te, e, ze, B[this.layer].el) !== "continue" || uo(B[this.layer].el, $t, te);
|
|
2550
2550
|
}).bind({
|
|
2551
|
-
layer:
|
|
2552
|
-
}), 24))),
|
|
2551
|
+
layer: u
|
|
2552
|
+
}), 24))), u++;
|
|
2553
2553
|
} while (t.bubbleScroll && p !== l && (p = _t(p, !1)));
|
|
2554
|
-
|
|
2554
|
+
Bi = d;
|
|
2555
2555
|
}
|
|
2556
2556
|
}, 30), bo = function(t) {
|
|
2557
|
-
var
|
|
2558
|
-
if (
|
|
2559
|
-
var
|
|
2557
|
+
var i = t.originalEvent, n = t.putSortable, o = t.dragEl, r = t.activeSortable, s = t.dispatchSortableEvent, a = t.hideGhostForTarget, l = t.unhideGhostForTarget;
|
|
2558
|
+
if (i) {
|
|
2559
|
+
var d = n || r;
|
|
2560
2560
|
a();
|
|
2561
|
-
var c =
|
|
2562
|
-
l(),
|
|
2561
|
+
var c = i.changedTouches && i.changedTouches.length ? i.changedTouches[0] : i, u = document.elementFromPoint(c.clientX, c.clientY);
|
|
2562
|
+
l(), d && !d.el.contains(u) && (s("spill"), this.onSpill({
|
|
2563
2563
|
dragEl: o,
|
|
2564
|
-
putSortable:
|
|
2564
|
+
putSortable: n
|
|
2565
2565
|
}));
|
|
2566
2566
|
}
|
|
2567
2567
|
};
|
|
2568
|
-
function
|
|
2568
|
+
function tn() {
|
|
2569
2569
|
}
|
|
2570
|
-
|
|
2570
|
+
tn.prototype = {
|
|
2571
2571
|
startIndex: null,
|
|
2572
2572
|
dragStart: function(t) {
|
|
2573
|
-
var
|
|
2574
|
-
this.startIndex =
|
|
2573
|
+
var i = t.oldDraggableIndex;
|
|
2574
|
+
this.startIndex = i;
|
|
2575
2575
|
},
|
|
2576
2576
|
onSpill: function(t) {
|
|
2577
|
-
var
|
|
2578
|
-
this.sortable.captureAnimationState(),
|
|
2577
|
+
var i = t.dragEl, n = t.putSortable;
|
|
2578
|
+
this.sortable.captureAnimationState(), n && n.captureAnimationState();
|
|
2579
2579
|
var o = Wt(this.sortable.el, this.startIndex, this.options);
|
|
2580
|
-
o ? this.sortable.el.insertBefore(
|
|
2580
|
+
o ? this.sortable.el.insertBefore(i, o) : this.sortable.el.appendChild(i), this.sortable.animateAll(), n && n.animateAll();
|
|
2581
2581
|
},
|
|
2582
2582
|
drop: bo
|
|
2583
2583
|
};
|
|
2584
|
-
bt(
|
|
2584
|
+
bt(tn, {
|
|
2585
2585
|
pluginName: "revertOnSpill"
|
|
2586
2586
|
});
|
|
2587
|
-
function
|
|
2587
|
+
function en() {
|
|
2588
2588
|
}
|
|
2589
|
-
|
|
2589
|
+
en.prototype = {
|
|
2590
2590
|
onSpill: function(t) {
|
|
2591
|
-
var
|
|
2592
|
-
o.captureAnimationState(),
|
|
2591
|
+
var i = t.dragEl, n = t.putSortable, o = n || this.sortable;
|
|
2592
|
+
o.captureAnimationState(), i.parentNode && i.parentNode.removeChild(i), o.animateAll();
|
|
2593
2593
|
},
|
|
2594
2594
|
drop: bo
|
|
2595
2595
|
};
|
|
2596
|
-
bt(
|
|
2596
|
+
bt(en, {
|
|
2597
2597
|
pluginName: "removeOnSpill"
|
|
2598
2598
|
});
|
|
2599
2599
|
w.mount(new Ls());
|
|
2600
|
-
w.mount(
|
|
2600
|
+
w.mount(en, tn);
|
|
2601
2601
|
const Ms = (e) => {
|
|
2602
2602
|
const t = e.item;
|
|
2603
|
-
let
|
|
2604
|
-
return
|
|
2605
|
-
(
|
|
2606
|
-
),
|
|
2607
|
-
}, Is = (e, t,
|
|
2603
|
+
let i = Array.prototype.slice.call(t.parentNode.childNodes);
|
|
2604
|
+
return i = i.filter(
|
|
2605
|
+
(n) => n.nodeType != Node.ELEMENT_NODE || !n.classList.contains("sortable-fallback")
|
|
2606
|
+
), i;
|
|
2607
|
+
}, Is = (e, t, i, n, o, r) => {
|
|
2608
2608
|
const a = e.item.parentNode;
|
|
2609
|
-
for (const y of
|
|
2609
|
+
for (const y of i)
|
|
2610
2610
|
a.appendChild(y);
|
|
2611
2611
|
if (e.oldIndex == e.newIndex) return;
|
|
2612
|
-
const l =
|
|
2612
|
+
const l = n.getArray(), d = (
|
|
2613
2613
|
/** @type {Element & {layer: import("ol/layer").Layer}} */
|
|
2614
2614
|
e.item.querySelector("eox-layercontrol-layer").layer.get(o)
|
|
2615
|
-
), c = l.find((y) => y.get(o) ===
|
|
2616
|
-
(y) => y.get(o) ==
|
|
2615
|
+
), c = l.find((y) => y.get(o) === d), u = r.dataset.layer, p = l.find(
|
|
2616
|
+
(y) => y.get(o) == u
|
|
2617
2617
|
);
|
|
2618
2618
|
let f, g;
|
|
2619
2619
|
for (f = 0; f < l.length; f++)
|
|
2620
2620
|
if (l[f] == c) {
|
|
2621
|
-
|
|
2621
|
+
n.removeAt(f);
|
|
2622
2622
|
break;
|
|
2623
2623
|
}
|
|
2624
2624
|
for (g = 0; g < l.length; g++)
|
|
2625
2625
|
if (l[g] === p) {
|
|
2626
|
-
f > g ?
|
|
2626
|
+
f > g ? n.insertAt(g, c) : n.insertAt(g + 1, c);
|
|
2627
2627
|
break;
|
|
2628
2628
|
}
|
|
2629
2629
|
t.requestUpdate();
|
|
2630
2630
|
};
|
|
2631
|
-
function Ns(e, t,
|
|
2631
|
+
function Ns(e, t, i, n) {
|
|
2632
2632
|
let o = [], r = null;
|
|
2633
2633
|
e._sortable = w.create(e, {
|
|
2634
2634
|
handle: ".drag-handle",
|
|
@@ -2640,48 +2640,48 @@ function Ns(e, t, n, i) {
|
|
|
2640
2640
|
onMove: (s) => {
|
|
2641
2641
|
r = s.related;
|
|
2642
2642
|
},
|
|
2643
|
-
onEnd: (s) => Is(s,
|
|
2643
|
+
onEnd: (s) => Is(s, n, o, t, i, r)
|
|
2644
2644
|
});
|
|
2645
2645
|
}
|
|
2646
|
-
function Hs(e, t,
|
|
2646
|
+
function Hs(e, t, i, n) {
|
|
2647
2647
|
const o = e.getArray();
|
|
2648
2648
|
let r = !1;
|
|
2649
2649
|
o.forEach((s) => {
|
|
2650
2650
|
const a = s.ol_uid;
|
|
2651
|
-
s.get(t) || (s.set(t, a), r = !0), s.get(
|
|
2651
|
+
s.get(t) || (s.set(t, a), r = !0), s.get(i) || (s.set(i, `layer ${a}`), r = !0), r && n.requestUpdate();
|
|
2652
2652
|
});
|
|
2653
2653
|
}
|
|
2654
|
-
function
|
|
2655
|
-
let
|
|
2654
|
+
function nn(e, t, i) {
|
|
2655
|
+
let n = [];
|
|
2656
2656
|
const o = (r, s, a) => {
|
|
2657
|
-
|
|
2658
|
-
...
|
|
2659
|
-
...r.filter((
|
|
2657
|
+
n = [
|
|
2658
|
+
...n,
|
|
2659
|
+
...r.filter((d) => d.get(s) === a)
|
|
2660
2660
|
];
|
|
2661
2661
|
const l = r.filter(
|
|
2662
|
-
(
|
|
2662
|
+
(d) => (
|
|
2663
2663
|
/** @type {import("ol/layer").Group} */
|
|
2664
|
-
|
|
2664
|
+
d.getLayers
|
|
2665
2665
|
)
|
|
2666
2666
|
);
|
|
2667
2667
|
return l.length > 0 && l.forEach(
|
|
2668
|
-
(
|
|
2668
|
+
(d) => (
|
|
2669
2669
|
// @ts-expect-error TODO
|
|
2670
|
-
o(
|
|
2670
|
+
o(d.getLayers().getArray(), s, a)
|
|
2671
2671
|
)
|
|
2672
|
-
),
|
|
2672
|
+
), n;
|
|
2673
2673
|
};
|
|
2674
|
-
return o(e, t,
|
|
2674
|
+
return o(e, t, i), n;
|
|
2675
2675
|
}
|
|
2676
|
-
function Vs(e, t,
|
|
2676
|
+
function Vs(e, t, i) {
|
|
2677
2677
|
if (!e || !t) return !1;
|
|
2678
|
-
if (!vo(e,
|
|
2679
|
-
const
|
|
2680
|
-
return r >
|
|
2678
|
+
if (!vo(e, i)) return !0;
|
|
2679
|
+
const n = e.get("minZoom"), o = e.get("maxZoom"), r = t.getView().getZoom();
|
|
2680
|
+
return r > n && r < o;
|
|
2681
2681
|
}
|
|
2682
2682
|
function vo(e, t) {
|
|
2683
|
-
const
|
|
2684
|
-
return !!(t && (
|
|
2683
|
+
const i = e.get("minZoom"), n = e.get("maxZoom");
|
|
2684
|
+
return !!(t && (i !== -1 / 0 || n !== 1 / 0));
|
|
2685
2685
|
}
|
|
2686
2686
|
function Bs(e, t) {
|
|
2687
2687
|
var o, r, s;
|
|
@@ -2690,24 +2690,24 @@ function Bs(e, t) {
|
|
|
2690
2690
|
e.getSource ? (r = e.getSource()) == null ? void 0 : r.ol_uid : void 0
|
|
2691
2691
|
)) ? "draw" : e.declutter_ !== void 0 ? "vector" : "raster";
|
|
2692
2692
|
}
|
|
2693
|
-
const ks = (e, t,
|
|
2694
|
-
let
|
|
2695
|
-
return
|
|
2696
|
-
(...o) => ls(
|
|
2697
|
-
),
|
|
2693
|
+
const ks = (e, t, i) => {
|
|
2694
|
+
let n = t;
|
|
2695
|
+
return i.layer.getSource().getTileUrlFunction() && (n || (n = i.layer.getSource().getTileUrlFunction()), i.layer.getSource().setTileUrlFunction(
|
|
2696
|
+
(...o) => ls(n(...o), e)
|
|
2697
|
+
), i.layer.getSource().setKey(/* @__PURE__ */ new Date())), n;
|
|
2698
2698
|
};
|
|
2699
|
-
function Us(e, t,
|
|
2700
|
-
const
|
|
2699
|
+
function Us(e, t, i) {
|
|
2700
|
+
const n = "updateStyleVariables" in t, o = "setStyle" in t, r = n ? (
|
|
2701
2701
|
/** @type {import('ol/layer/WebGLTile').default} */
|
|
2702
2702
|
t.style_
|
|
2703
|
-
) :
|
|
2703
|
+
) : i.style;
|
|
2704
2704
|
let s = r == null ? void 0 : r.variables;
|
|
2705
2705
|
if (s) {
|
|
2706
|
-
const a =
|
|
2706
|
+
const a = on(e);
|
|
2707
2707
|
if (r.variables = {
|
|
2708
2708
|
...s,
|
|
2709
2709
|
...a
|
|
2710
|
-
},
|
|
2710
|
+
}, n)
|
|
2711
2711
|
t.updateStyleVariables(a);
|
|
2712
2712
|
else if (o) {
|
|
2713
2713
|
const l = Fs(r);
|
|
@@ -2717,91 +2717,91 @@ function Us(e, t, n) {
|
|
|
2717
2717
|
}
|
|
2718
2718
|
}
|
|
2719
2719
|
}
|
|
2720
|
-
const
|
|
2720
|
+
const on = (e) => {
|
|
2721
2721
|
const t = {};
|
|
2722
|
-
for (const
|
|
2723
|
-
if (typeof e[
|
|
2724
|
-
const
|
|
2722
|
+
for (const i in e)
|
|
2723
|
+
if (typeof e[i] == "object" && e[i] !== null) {
|
|
2724
|
+
const n = on(
|
|
2725
2725
|
/** @type {Record<string,any>} */
|
|
2726
|
-
e[
|
|
2726
|
+
e[i]
|
|
2727
2727
|
);
|
|
2728
|
-
for (const o in
|
|
2729
|
-
t[o] =
|
|
2728
|
+
for (const o in n)
|
|
2729
|
+
t[o] = n == null ? void 0 : n[o];
|
|
2730
2730
|
} else
|
|
2731
|
-
t[
|
|
2731
|
+
t[i] = e == null ? void 0 : e[i];
|
|
2732
2732
|
return t;
|
|
2733
2733
|
};
|
|
2734
2734
|
function Fs(e) {
|
|
2735
2735
|
let t = e;
|
|
2736
2736
|
if ("variables" in e) {
|
|
2737
|
-
let
|
|
2738
|
-
const { variables:
|
|
2739
|
-
for (const o in
|
|
2740
|
-
typeof
|
|
2737
|
+
let i = JSON.stringify(e);
|
|
2738
|
+
const { variables: n } = e;
|
|
2739
|
+
for (const o in n)
|
|
2740
|
+
typeof n[o] == "number" ? i = i.replaceAll(`["var","${o}"]`, n[o]) : i = i.replaceAll(
|
|
2741
2741
|
`["var","${o}"]`,
|
|
2742
|
-
`"${
|
|
2742
|
+
`"${n[o]}"`
|
|
2743
2743
|
);
|
|
2744
|
-
t = JSON.parse(
|
|
2744
|
+
t = JSON.parse(i);
|
|
2745
2745
|
}
|
|
2746
2746
|
return t;
|
|
2747
2747
|
}
|
|
2748
2748
|
const js = (e, t) => {
|
|
2749
|
-
var
|
|
2749
|
+
var i;
|
|
2750
2750
|
if (e)
|
|
2751
|
-
return !("domainProperties" in e) || "domain" in e ? { ...e } : (
|
|
2752
|
-
(
|
|
2751
|
+
return !("domainProperties" in e) || "domain" in e ? { ...e } : (i = Object.keys(e)) == null ? void 0 : i.reduce(
|
|
2752
|
+
(n, o) => {
|
|
2753
2753
|
if (o === "domainProperties") {
|
|
2754
|
-
const r =
|
|
2755
|
-
|
|
2754
|
+
const r = on(t);
|
|
2755
|
+
n.domain = e[o].map((s) => r[s]);
|
|
2756
2756
|
} else
|
|
2757
|
-
|
|
2758
|
-
return
|
|
2757
|
+
n[o] = e[o];
|
|
2758
|
+
return n;
|
|
2759
2759
|
},
|
|
2760
2760
|
/** @type {import("../components/layer-legend").LegendConfig} */
|
|
2761
2761
|
{}
|
|
2762
2762
|
);
|
|
2763
2763
|
};
|
|
2764
2764
|
function wo(e, t) {
|
|
2765
|
-
var
|
|
2766
|
-
let
|
|
2765
|
+
var n;
|
|
2766
|
+
let i = {};
|
|
2767
2767
|
for (const o in e) {
|
|
2768
2768
|
const r = e[o].type;
|
|
2769
2769
|
if (r && r !== "object")
|
|
2770
|
-
|
|
2771
|
-
else if (typeof e[o] == "object" && ((
|
|
2770
|
+
i[o] = r === "number" ? Number(t[o]) : t[o];
|
|
2771
|
+
else if (typeof e[o] == "object" && ((n = e[o]) != null && n.properties)) {
|
|
2772
2772
|
const s = wo(
|
|
2773
2773
|
e[o].properties,
|
|
2774
2774
|
t
|
|
2775
2775
|
);
|
|
2776
|
-
Object.keys(s).length > 0 && (
|
|
2776
|
+
Object.keys(s).length > 0 && (i[o] = s);
|
|
2777
2777
|
}
|
|
2778
2778
|
}
|
|
2779
|
-
return
|
|
2779
|
+
return i;
|
|
2780
2780
|
}
|
|
2781
2781
|
function Zs(e, t) {
|
|
2782
|
-
var r, s, a, l,
|
|
2782
|
+
var r, s, a, l, d;
|
|
2783
2783
|
if (!t) return null;
|
|
2784
|
-
let
|
|
2784
|
+
let i = {}, n = "updateStyleVariables" in e ? (
|
|
2785
2785
|
/** @type {import("ol/layer/WebGLTile").default} */
|
|
2786
2786
|
(r = e.style_) == null ? void 0 : r.variables
|
|
2787
2787
|
) : (s = t.style) == null ? void 0 : s.variables;
|
|
2788
|
-
if ((t.type === "style" || t.style) &&
|
|
2789
|
-
|
|
2788
|
+
if ((t.type === "style" || t.style) && n)
|
|
2789
|
+
i = n;
|
|
2790
2790
|
else if ((l = (a = e.getSource()) == null ? void 0 : a.getTileUrlFunction) != null && l.call(a)) {
|
|
2791
2791
|
const c = new URL(e.getSource().getTileUrlFunction()([0, 0, 0]));
|
|
2792
|
-
|
|
2792
|
+
i = Object.fromEntries(c.searchParams.entries());
|
|
2793
2793
|
} else return null;
|
|
2794
2794
|
const o = wo(
|
|
2795
|
-
((
|
|
2796
|
-
|
|
2795
|
+
((d = t.schema) == null ? void 0 : d.properties) || t.schema,
|
|
2796
|
+
i
|
|
2797
2797
|
);
|
|
2798
2798
|
return Object.keys(o).length ? o : null;
|
|
2799
2799
|
}
|
|
2800
2800
|
const zs = (e, t) => e == null ? void 0 : e.filter(
|
|
2801
|
-
(
|
|
2802
|
-
), Xs = (e, t) => e == null ? void 0 : e.filter((
|
|
2803
|
-
let
|
|
2804
|
-
return ["remove", "sort"].includes(
|
|
2801
|
+
(i) => ["remove", "sort"].filter((n) => t != null && t.get("layerControlDisable") ? n !== "sort" : !0).includes(i)
|
|
2802
|
+
), Xs = (e, t) => e == null ? void 0 : e.filter((i) => {
|
|
2803
|
+
let n = !0;
|
|
2804
|
+
return ["remove", "sort"].includes(i) && (n = !1), i === "info" && (n = t.get("description")), i === "config" && (n = t.get("layerConfig")), i === "datetime" && (n = t.get("layerDatetime")), i === "legend" && (n = t.get("layerLegend")), n;
|
|
2805
2805
|
}), qs = (e, t) => $`
|
|
2806
2806
|
<button slot="${e}-icon" class="icon">${t ? e : P}</button>
|
|
2807
2807
|
`, Ys = (e) => $`
|
|
@@ -2824,32 +2824,32 @@ const zs = (e, t) => e == null ? void 0 : e.filter(
|
|
|
2824
2824
|
${e ? "═" : P}
|
|
2825
2825
|
</span>
|
|
2826
2826
|
`, $o = (e) => {
|
|
2827
|
-
var
|
|
2827
|
+
var i;
|
|
2828
2828
|
const t = ["layerControlHide", "layerControlOptional"];
|
|
2829
|
-
return (
|
|
2829
|
+
return (i = e == null ? void 0 : e.getArray()) == null ? void 0 : i.filter((n) => t.every((o) => !n.get(o)));
|
|
2830
2830
|
};
|
|
2831
2831
|
/**
|
|
2832
2832
|
* @license
|
|
2833
2833
|
* Copyright 2020 Google LLC
|
|
2834
2834
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2835
2835
|
*/
|
|
2836
|
-
const xo =
|
|
2836
|
+
const xo = Wi(class extends Gi {
|
|
2837
2837
|
constructor(e) {
|
|
2838
2838
|
if (super(e), e.type !== xt.PROPERTY && e.type !== xt.ATTRIBUTE && e.type !== xt.BOOLEAN_ATTRIBUTE) throw Error("The `live` directive is not allowed on child or event bindings");
|
|
2839
|
-
if (!
|
|
2839
|
+
if (!ur(e)) throw Error("`live` bindings can only contain a single expression");
|
|
2840
2840
|
}
|
|
2841
2841
|
render(e) {
|
|
2842
2842
|
return e;
|
|
2843
2843
|
}
|
|
2844
2844
|
update(e, [t]) {
|
|
2845
2845
|
if (t === at || t === P) return t;
|
|
2846
|
-
const
|
|
2846
|
+
const i = e.element, n = e.name;
|
|
2847
2847
|
if (e.type === xt.PROPERTY) {
|
|
2848
|
-
if (t === n
|
|
2848
|
+
if (t === i[n]) return at;
|
|
2849
2849
|
} else if (e.type === xt.BOOLEAN_ATTRIBUTE) {
|
|
2850
|
-
if (!!t ===
|
|
2851
|
-
} else if (e.type === xt.ATTRIBUTE &&
|
|
2852
|
-
return
|
|
2850
|
+
if (!!t === i.hasAttribute(n)) return at;
|
|
2851
|
+
} else if (e.type === xt.ATTRIBUTE && i.getAttribute(n) === t + "") return at;
|
|
2852
|
+
return Yn(e), t;
|
|
2853
2853
|
}
|
|
2854
2854
|
});
|
|
2855
2855
|
/**
|
|
@@ -2857,7 +2857,7 @@ const xo = Gn(class extends Jn {
|
|
|
2857
2857
|
* Copyright 2017 Google LLC
|
|
2858
2858
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2859
2859
|
*/
|
|
2860
|
-
class
|
|
2860
|
+
class ki extends Gi {
|
|
2861
2861
|
constructor(t) {
|
|
2862
2862
|
if (super(t), this.it = P, t.type !== xt.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
|
2863
2863
|
}
|
|
@@ -2867,12 +2867,12 @@ class Un extends Jn {
|
|
|
2867
2867
|
if (typeof t != "string") throw Error(this.constructor.directiveName + "() called with a non-string value");
|
|
2868
2868
|
if (t === this.it) return this._t;
|
|
2869
2869
|
this.it = t;
|
|
2870
|
-
const
|
|
2871
|
-
return
|
|
2870
|
+
const i = [t];
|
|
2871
|
+
return i.raw = i, this._t = { _$litType$: this.constructor.resultType, strings: i, values: [] };
|
|
2872
2872
|
}
|
|
2873
2873
|
}
|
|
2874
|
-
|
|
2875
|
-
const Gs =
|
|
2874
|
+
ki.directiveName = "unsafeHTML", ki.resultType = 1;
|
|
2875
|
+
const Gs = Wi(ki);
|
|
2876
2876
|
/**
|
|
2877
2877
|
* @license
|
|
2878
2878
|
* Copyright 2021 Google LLC
|
|
@@ -2880,70 +2880,70 @@ const Gs = Gn(Un);
|
|
|
2880
2880
|
*/
|
|
2881
2881
|
function* Ne(e, t) {
|
|
2882
2882
|
if (e !== void 0) {
|
|
2883
|
-
let
|
|
2884
|
-
for (const
|
|
2883
|
+
let i = 0;
|
|
2884
|
+
for (const n of e) yield t(n, i++);
|
|
2885
2885
|
}
|
|
2886
2886
|
}
|
|
2887
2887
|
var Ct = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
2888
2888
|
function Eo(e) {
|
|
2889
2889
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
2890
2890
|
}
|
|
2891
|
-
var So = "Expected a function",
|
|
2891
|
+
var So = "Expected a function", Tn = NaN, Js = "[object Symbol]", Ks = /^\s+|\s+$/g, Qs = /^[-+]0x[0-9a-f]+$/i, ta = /^0b[01]+$/i, ea = /^0o[0-7]+$/i, ia = parseInt, na = typeof Ct == "object" && Ct && Ct.Object === Object && Ct, oa = typeof self == "object" && self && self.Object === Object && self, ra = na || oa || Function("return this")(), sa = Object.prototype, aa = sa.toString, la = Math.max, da = Math.min, Li = function() {
|
|
2892
2892
|
return ra.Date.now();
|
|
2893
2893
|
};
|
|
2894
|
-
function
|
|
2895
|
-
var
|
|
2894
|
+
function ua(e, t, i) {
|
|
2895
|
+
var n, o, r, s, a, l, d = 0, c = !1, u = !1, p = !0;
|
|
2896
2896
|
if (typeof e != "function")
|
|
2897
2897
|
throw new TypeError(So);
|
|
2898
|
-
t =
|
|
2898
|
+
t = Pn(t) || 0, Xe(i) && (c = !!i.leading, u = "maxWait" in i, r = u ? la(Pn(i.maxWait) || 0, t) : r, p = "trailing" in i ? !!i.trailing : p);
|
|
2899
2899
|
function f(b) {
|
|
2900
|
-
var O =
|
|
2901
|
-
return
|
|
2900
|
+
var O = n, z = o;
|
|
2901
|
+
return n = o = void 0, d = b, s = e.apply(z, O), s;
|
|
2902
2902
|
}
|
|
2903
2903
|
function g(b) {
|
|
2904
|
-
return
|
|
2904
|
+
return d = b, a = setTimeout(M, t), c ? f(b) : s;
|
|
2905
2905
|
}
|
|
2906
2906
|
function y(b) {
|
|
2907
|
-
var O = b - l, z = b -
|
|
2908
|
-
return
|
|
2907
|
+
var O = b - l, z = b - d, U = t - O;
|
|
2908
|
+
return u ? da(U, r - z) : U;
|
|
2909
2909
|
}
|
|
2910
2910
|
function D(b) {
|
|
2911
|
-
var O = b - l, z = b -
|
|
2912
|
-
return l === void 0 || O >= t || O < 0 ||
|
|
2911
|
+
var O = b - l, z = b - d;
|
|
2912
|
+
return l === void 0 || O >= t || O < 0 || u && z >= r;
|
|
2913
2913
|
}
|
|
2914
2914
|
function M() {
|
|
2915
|
-
var b =
|
|
2915
|
+
var b = Li();
|
|
2916
2916
|
if (D(b))
|
|
2917
2917
|
return H(b);
|
|
2918
2918
|
a = setTimeout(M, y(b));
|
|
2919
2919
|
}
|
|
2920
2920
|
function H(b) {
|
|
2921
|
-
return a = void 0, p &&
|
|
2921
|
+
return a = void 0, p && n ? f(b) : (n = o = void 0, s);
|
|
2922
2922
|
}
|
|
2923
2923
|
function J() {
|
|
2924
|
-
a !== void 0 && clearTimeout(a),
|
|
2924
|
+
a !== void 0 && clearTimeout(a), d = 0, n = l = o = a = void 0;
|
|
2925
2925
|
}
|
|
2926
2926
|
function Z() {
|
|
2927
|
-
return a === void 0 ? s : H(
|
|
2927
|
+
return a === void 0 ? s : H(Li());
|
|
2928
2928
|
}
|
|
2929
2929
|
function K() {
|
|
2930
|
-
var b =
|
|
2931
|
-
if (
|
|
2930
|
+
var b = Li(), O = D(b);
|
|
2931
|
+
if (n = arguments, o = this, l = b, O) {
|
|
2932
2932
|
if (a === void 0)
|
|
2933
2933
|
return g(l);
|
|
2934
|
-
if (
|
|
2934
|
+
if (u)
|
|
2935
2935
|
return a = setTimeout(M, t), f(l);
|
|
2936
2936
|
}
|
|
2937
2937
|
return a === void 0 && (a = setTimeout(M, t)), s;
|
|
2938
2938
|
}
|
|
2939
2939
|
return K.cancel = J, K.flush = Z, K;
|
|
2940
2940
|
}
|
|
2941
|
-
function ca(e, t,
|
|
2942
|
-
var
|
|
2941
|
+
function ca(e, t, i) {
|
|
2942
|
+
var n = !0, o = !0;
|
|
2943
2943
|
if (typeof e != "function")
|
|
2944
2944
|
throw new TypeError(So);
|
|
2945
|
-
return Xe(
|
|
2946
|
-
leading:
|
|
2945
|
+
return Xe(i) && (n = "leading" in i ? !!i.leading : n, o = "trailing" in i ? !!i.trailing : o), ua(e, t, {
|
|
2946
|
+
leading: n,
|
|
2947
2947
|
maxWait: t,
|
|
2948
2948
|
trailing: o
|
|
2949
2949
|
});
|
|
@@ -2958,11 +2958,11 @@ function ha(e) {
|
|
|
2958
2958
|
function pa(e) {
|
|
2959
2959
|
return typeof e == "symbol" || ha(e) && aa.call(e) == Js;
|
|
2960
2960
|
}
|
|
2961
|
-
function
|
|
2961
|
+
function Pn(e) {
|
|
2962
2962
|
if (typeof e == "number")
|
|
2963
2963
|
return e;
|
|
2964
2964
|
if (pa(e))
|
|
2965
|
-
return
|
|
2965
|
+
return Tn;
|
|
2966
2966
|
if (Xe(e)) {
|
|
2967
2967
|
var t = typeof e.valueOf == "function" ? e.valueOf() : e;
|
|
2968
2968
|
e = Xe(t) ? t + "" : t;
|
|
@@ -2970,11 +2970,11 @@ function Pi(e) {
|
|
|
2970
2970
|
if (typeof e != "string")
|
|
2971
2971
|
return e === 0 ? e : +e;
|
|
2972
2972
|
e = e.replace(Ks, "");
|
|
2973
|
-
var
|
|
2974
|
-
return
|
|
2973
|
+
var i = ta.test(e);
|
|
2974
|
+
return i || ea.test(e) ? ia(e.slice(2), i ? 2 : 8) : Qs.test(e) ? Tn : +e;
|
|
2975
2975
|
}
|
|
2976
2976
|
var fa = ca;
|
|
2977
|
-
const
|
|
2977
|
+
const Dn = /* @__PURE__ */ Eo(fa);
|
|
2978
2978
|
/**
|
|
2979
2979
|
* @license
|
|
2980
2980
|
* Copyright 2018 Google LLC
|
|
@@ -2985,7 +2985,7 @@ var qe, Ye;
|
|
|
2985
2985
|
class Ao extends tt {
|
|
2986
2986
|
constructor() {
|
|
2987
2987
|
super();
|
|
2988
|
-
C(this, qe,
|
|
2988
|
+
C(this, qe, Hn`
|
|
2989
2989
|
.legend-container {
|
|
2990
2990
|
display: flex;
|
|
2991
2991
|
justify-content: center;
|
|
@@ -3054,7 +3054,7 @@ customElements.define(
|
|
|
3054
3054
|
"eox-layercontrol-layer-legend",
|
|
3055
3055
|
Ao
|
|
3056
3056
|
);
|
|
3057
|
-
var pt, Yt, be, ve,
|
|
3057
|
+
var pt, Yt, be, ve, Ui, We, Ge;
|
|
3058
3058
|
class _o extends tt {
|
|
3059
3059
|
constructor() {
|
|
3060
3060
|
super();
|
|
@@ -3077,7 +3077,7 @@ class _o extends tt {
|
|
|
3077
3077
|
* @type {Function}
|
|
3078
3078
|
*/
|
|
3079
3079
|
C(this, be);
|
|
3080
|
-
C(this, We,
|
|
3080
|
+
C(this, We, Hn`
|
|
3081
3081
|
color-legend {
|
|
3082
3082
|
--cle-background: transparent;
|
|
3083
3083
|
--cle-font-family: inherit;
|
|
@@ -3087,16 +3087,16 @@ class _o extends tt {
|
|
|
3087
3087
|
}
|
|
3088
3088
|
`);
|
|
3089
3089
|
C(this, Ge, "");
|
|
3090
|
-
this.layer = null, this.unstyled = !1, this.noShadow = !1, this.layerConfig = null, this.throttleDataChange =
|
|
3090
|
+
this.layer = null, this.unstyled = !1, this.noShadow = !1, this.layerConfig = null, this.throttleDataChange = Dn(V(this, ve, Ui), 1e3);
|
|
3091
3091
|
}
|
|
3092
3092
|
/** Decide what type of throttling to do based on layerConfig type
|
|
3093
3093
|
*
|
|
3094
3094
|
* @param {import("lit").PropertyValues} changedProperties - The changed properties.
|
|
3095
3095
|
*/
|
|
3096
|
-
updated(
|
|
3097
|
-
if (
|
|
3098
|
-
const
|
|
3099
|
-
this.throttleDataChange =
|
|
3096
|
+
updated(i) {
|
|
3097
|
+
if (i.has("layerConfig")) {
|
|
3098
|
+
const n = this.layerConfig.type === "style" || this.layerConfig.style ? 100 : 1e3;
|
|
3099
|
+
this.throttleDataChange = Dn(V(this, ve, Ui), n), this.requestUpdate();
|
|
3100
3100
|
}
|
|
3101
3101
|
}
|
|
3102
3102
|
/**
|
|
@@ -3110,7 +3110,7 @@ class _o extends tt {
|
|
|
3110
3110
|
*/
|
|
3111
3111
|
render() {
|
|
3112
3112
|
kt(this, Yt, Zs(this.layer, this.layerConfig)), Object.keys(S(this, pt)).length !== 0 && kt(this, Yt, S(this, pt)), customElements.get("eox-jsonform") || console.error("Please import @eox/jsonform in order to use layerconfig");
|
|
3113
|
-
const
|
|
3113
|
+
const i = {
|
|
3114
3114
|
disable_edit_json: !0,
|
|
3115
3115
|
disable_collapse: !0,
|
|
3116
3116
|
disable_properties: !0
|
|
@@ -3141,7 +3141,7 @@ class _o extends tt {
|
|
|
3141
3141
|
<eox-jsonform
|
|
3142
3142
|
.schema=${this.layerConfig.schema}
|
|
3143
3143
|
.value=${S(this, Yt)}
|
|
3144
|
-
.options=${
|
|
3144
|
+
.options=${i}
|
|
3145
3145
|
@change=${this.throttleDataChange}
|
|
3146
3146
|
></eox-jsonform>
|
|
3147
3147
|
`
|
|
@@ -3154,8 +3154,8 @@ pt = new WeakMap(), Yt = new WeakMap(), be = new WeakMap(), ve = new WeakSet(),
|
|
|
3154
3154
|
*
|
|
3155
3155
|
* @param {{ detail: { value: string; }; }} e
|
|
3156
3156
|
*/
|
|
3157
|
-
|
|
3158
|
-
kt(this, pt,
|
|
3157
|
+
Ui = function(i) {
|
|
3158
|
+
kt(this, pt, i.detail), this.layerConfig.type === "style" || this.layerConfig.style ? "setStyle" in this.layer || "updateStyleVariables" in this.layer ? Us(S(this, pt), this.layer, this.layerConfig) : console.error(
|
|
3159
3159
|
`Layer type ${this.layer.get("type") ?? ""} does not support styles configuration`
|
|
3160
3160
|
) : kt(this, be, ks(
|
|
3161
3161
|
S(this, pt),
|
|
@@ -3225,16 +3225,16 @@ Je = new WeakSet(), /**
|
|
|
3225
3225
|
*
|
|
3226
3226
|
* @param {CustomEvent<{currentStep:string|number}>} evt
|
|
3227
3227
|
**/
|
|
3228
|
-
To = function(
|
|
3228
|
+
To = function(i) {
|
|
3229
3229
|
this.dispatchEvent(
|
|
3230
3230
|
new CustomEvent("datetime:updated", {
|
|
3231
3231
|
bubbles: !0,
|
|
3232
3232
|
detail: {
|
|
3233
|
-
datetime:
|
|
3233
|
+
datetime: i.detail.currentStep,
|
|
3234
3234
|
layer: this.layer
|
|
3235
3235
|
}
|
|
3236
3236
|
})
|
|
3237
|
-
), this.layerDatetime.currentStep =
|
|
3237
|
+
), this.layerDatetime.currentStep = i.detail.currentStep, this.requestUpdate();
|
|
3238
3238
|
}, Ke = new WeakMap(), Qe = new WeakMap(), // Define static properties for the component
|
|
3239
3239
|
I(Co, "properties", {
|
|
3240
3240
|
unstyled: { type: Boolean },
|
|
@@ -3246,13 +3246,13 @@ customElements.define(
|
|
|
3246
3246
|
"eox-layercontrol-layer-datetime",
|
|
3247
3247
|
Co
|
|
3248
3248
|
);
|
|
3249
|
-
var we,
|
|
3249
|
+
var we, ti, ei;
|
|
3250
3250
|
class Po extends tt {
|
|
3251
3251
|
constructor() {
|
|
3252
3252
|
super();
|
|
3253
3253
|
/** @param {number} index */
|
|
3254
|
-
C(this, we, (
|
|
3255
|
-
C(this,
|
|
3254
|
+
C(this, we, (i) => (this.selectedTab === i || this.toolsAsList) && "highlighted");
|
|
3255
|
+
C(this, ti, `
|
|
3256
3256
|
.tabbed figure {
|
|
3257
3257
|
margin: 0;
|
|
3258
3258
|
}
|
|
@@ -3273,7 +3273,7 @@ class Po extends tt {
|
|
|
3273
3273
|
background: lightgrey;
|
|
3274
3274
|
}
|
|
3275
3275
|
`);
|
|
3276
|
-
C(this,
|
|
3276
|
+
C(this, ei, `
|
|
3277
3277
|
.listed {
|
|
3278
3278
|
background: #ffffff !important;
|
|
3279
3279
|
display: flex;
|
|
@@ -3313,11 +3313,11 @@ class Po extends tt {
|
|
|
3313
3313
|
* It sets up navigation for switching between tabs and offers customizable icons for tabs and actions.
|
|
3314
3314
|
*/
|
|
3315
3315
|
render() {
|
|
3316
|
-
const
|
|
3316
|
+
const i = this.tabs, n = this.actions, o = n.length + i.length > 1;
|
|
3317
3317
|
return $`
|
|
3318
3318
|
<style>
|
|
3319
|
-
${S(this,
|
|
3320
|
-
${!this.unstyled && S(this,
|
|
3319
|
+
${S(this, ti)}
|
|
3320
|
+
${!this.unstyled && S(this, ei)}
|
|
3321
3321
|
</style>
|
|
3322
3322
|
<div class="tabbed">
|
|
3323
3323
|
<!-- Navigation for tabs and actions -->
|
|
@@ -3331,7 +3331,7 @@ class Po extends tt {
|
|
|
3331
3331
|
<div>
|
|
3332
3332
|
<!-- Labels for tabs -->
|
|
3333
3333
|
${Ne(
|
|
3334
|
-
|
|
3334
|
+
i,
|
|
3335
3335
|
(r, s) => $`
|
|
3336
3336
|
<label
|
|
3337
3337
|
class=${S(this, we).call(this, s)}
|
|
@@ -3346,7 +3346,7 @@ class Po extends tt {
|
|
|
3346
3346
|
<div>
|
|
3347
3347
|
<!-- Icons for actions -->
|
|
3348
3348
|
${Ne(
|
|
3349
|
-
|
|
3349
|
+
n,
|
|
3350
3350
|
(r) => $`
|
|
3351
3351
|
<span>
|
|
3352
3352
|
<!-- Customizable icon for each action -->
|
|
@@ -3363,7 +3363,7 @@ class Po extends tt {
|
|
|
3363
3363
|
<figure>
|
|
3364
3364
|
<!-- Content for each tab -->
|
|
3365
3365
|
${Ne(
|
|
3366
|
-
|
|
3366
|
+
i,
|
|
3367
3367
|
(r, s) => $`
|
|
3368
3368
|
${F(
|
|
3369
3369
|
this.toolsAsList,
|
|
@@ -3385,7 +3385,7 @@ class Po extends tt {
|
|
|
3385
3385
|
`;
|
|
3386
3386
|
}
|
|
3387
3387
|
}
|
|
3388
|
-
we = new WeakMap(),
|
|
3388
|
+
we = new WeakMap(), ti = new WeakMap(), ei = new WeakMap(), // Define static properties for the component
|
|
3389
3389
|
I(Po, "properties", {
|
|
3390
3390
|
actions: { attribute: !1 },
|
|
3391
3391
|
selectedTab: { state: !0 },
|
|
@@ -3648,7 +3648,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
3648
3648
|
border: 0;
|
|
3649
3649
|
}
|
|
3650
3650
|
`;
|
|
3651
|
-
var
|
|
3651
|
+
var ii, ni;
|
|
3652
3652
|
class Oo extends tt {
|
|
3653
3653
|
constructor() {
|
|
3654
3654
|
super();
|
|
@@ -3663,9 +3663,9 @@ class Oo extends tt {
|
|
|
3663
3663
|
* @param {string} tool - Tool parameter for Button generation.
|
|
3664
3664
|
* @returns {import("lit").HTMLTemplateResult} - The generated Button element.
|
|
3665
3665
|
*/
|
|
3666
|
-
I(this, "_button", (
|
|
3666
|
+
I(this, "_button", (i) => qs(i, this.unstyled));
|
|
3667
3667
|
I(this, "_getDefaultTools", () => {
|
|
3668
|
-
var
|
|
3668
|
+
var i;
|
|
3669
3669
|
return $`
|
|
3670
3670
|
<div slot="info-content">
|
|
3671
3671
|
${Gs(this.layer.get("description"))}
|
|
@@ -3677,8 +3677,8 @@ class Oo extends tt {
|
|
|
3677
3677
|
min="0"
|
|
3678
3678
|
max="1"
|
|
3679
3679
|
step="0.01"
|
|
3680
|
-
value=${xo((
|
|
3681
|
-
@input=${(
|
|
3680
|
+
value=${xo((i = this.layer) == null ? void 0 : i.getOpacity())}
|
|
3681
|
+
@input=${(n) => this.layer.setOpacity(parseFloat(n.target.value))}
|
|
3682
3682
|
/>
|
|
3683
3683
|
</div>
|
|
3684
3684
|
<div slot="config-content">
|
|
@@ -3733,8 +3733,8 @@ class Oo extends tt {
|
|
|
3733
3733
|
<div slot="sort-icon">${this._sortButton()}</div>
|
|
3734
3734
|
`;
|
|
3735
3735
|
});
|
|
3736
|
-
C(this,
|
|
3737
|
-
C(this,
|
|
3736
|
+
C(this, ii, "");
|
|
3737
|
+
C(this, ni, `
|
|
3738
3738
|
${ga}
|
|
3739
3739
|
${ma}
|
|
3740
3740
|
${Do}
|
|
@@ -3763,9 +3763,9 @@ class Oo extends tt {
|
|
|
3763
3763
|
position: absolute;
|
|
3764
3764
|
right: 0;
|
|
3765
3765
|
top: -24px;
|
|
3766
|
-
|
|
3767
|
-
border-radius: 4px;
|
|
3766
|
+
height: 24px;
|
|
3768
3767
|
cursor: pointer;
|
|
3768
|
+
display: var(--layer-tools-button-visibility);
|
|
3769
3769
|
}
|
|
3770
3770
|
.single-action .icon::before,
|
|
3771
3771
|
details.tools summary .icon::before {
|
|
@@ -3856,14 +3856,14 @@ class Oo extends tt {
|
|
|
3856
3856
|
}
|
|
3857
3857
|
render() {
|
|
3858
3858
|
var l;
|
|
3859
|
-
const
|
|
3859
|
+
const i = zs(this.tools, this.layer), n = Xs(this.tools, this.layer), o = this[`_${i == null ? void 0 : i[0]}Button`] ? (
|
|
3860
3860
|
// @ts-expect-error TODO
|
|
3861
|
-
this[`_${
|
|
3862
|
-
) : P, r = ((l = this.tools) == null ? void 0 : l.length) === 1 ? `${this.tools[0]}-icon` : "", s =
|
|
3861
|
+
this[`_${i == null ? void 0 : i[0]}Button`]()
|
|
3862
|
+
) : P, r = ((l = this.tools) == null ? void 0 : l.length) === 1 ? `${this.tools[0]}-icon` : "", s = i == null ? void 0 : i.length, a = n == null ? void 0 : n.length;
|
|
3863
3863
|
return $`
|
|
3864
3864
|
<style>
|
|
3865
|
-
${S(this,
|
|
3866
|
-
${!this.unstyled && S(this,
|
|
3865
|
+
${S(this, ii)}
|
|
3866
|
+
${!this.unstyled && S(this, ni)}
|
|
3867
3867
|
</style>
|
|
3868
3868
|
${F(
|
|
3869
3869
|
s + a > 0,
|
|
@@ -3886,13 +3886,13 @@ class Oo extends tt {
|
|
|
3886
3886
|
<eox-layercontrol-tools-items
|
|
3887
3887
|
class="${this.toolsAsList ? "tools-list" : "tools-tab"}"
|
|
3888
3888
|
.noShadow=${!1}
|
|
3889
|
-
.actions=${
|
|
3890
|
-
.tabs=${
|
|
3889
|
+
.actions=${i}
|
|
3890
|
+
.tabs=${n}
|
|
3891
3891
|
.unstyled=${this.unstyled}
|
|
3892
3892
|
.toolsAsList=${this.toolsAsList}
|
|
3893
3893
|
>
|
|
3894
3894
|
<!-- Rendering tabs and content -->
|
|
3895
|
-
${Ne(
|
|
3895
|
+
${Ne(n, (d) => this._button(d))}
|
|
3896
3896
|
<!-- Including default tools -->
|
|
3897
3897
|
${this._getDefaultTools()}
|
|
3898
3898
|
</eox-layercontrol-tools-items>
|
|
@@ -3904,7 +3904,7 @@ class Oo extends tt {
|
|
|
3904
3904
|
`;
|
|
3905
3905
|
}
|
|
3906
3906
|
}
|
|
3907
|
-
|
|
3907
|
+
ii = new WeakMap(), ni = new WeakMap(), // Define static properties for the component
|
|
3908
3908
|
I(Oo, "properties", {
|
|
3909
3909
|
layer: { attribute: !1 },
|
|
3910
3910
|
tools: { attribute: !1 },
|
|
@@ -3918,13 +3918,13 @@ customElements.define(
|
|
|
3918
3918
|
);
|
|
3919
3919
|
const ba = (e) => {
|
|
3920
3920
|
const t = () => {
|
|
3921
|
-
const
|
|
3921
|
+
const i = Vs(
|
|
3922
3922
|
e.layer,
|
|
3923
3923
|
e.map,
|
|
3924
3924
|
e.showLayerZoomState
|
|
3925
3925
|
);
|
|
3926
|
-
let
|
|
3927
|
-
!
|
|
3926
|
+
let n = !1;
|
|
3927
|
+
!i && e.currLayerVisibilityBasedOnZoom ? (e.currLayerVisibilityBasedOnZoom = !1, n = !0) : i && !e.currLayerVisibilityBasedOnZoom && (e.currLayerVisibilityBasedOnZoom = !0, n = !0), n && (e.requestUpdate(), e.dispatchEvent(
|
|
3928
3928
|
new CustomEvent("change:resolution", { bubbles: !0 })
|
|
3929
3929
|
));
|
|
3930
3930
|
};
|
|
@@ -3933,17 +3933,17 @@ const ba = (e) => {
|
|
|
3933
3933
|
e.showLayerZoomState
|
|
3934
3934
|
) && (t(), e.map.getView().on("change:resolution", () => t()));
|
|
3935
3935
|
}, va = (e, t) => {
|
|
3936
|
-
const
|
|
3937
|
-
|
|
3936
|
+
const i = t.layer;
|
|
3937
|
+
i.setVisible(e.target.checked), e.target.checked && i.get("layerControlExclusive") && t.closest(
|
|
3938
3938
|
".layers > ul"
|
|
3939
3939
|
).querySelectorAll("eox-layercontrol-layer").forEach((o) => {
|
|
3940
3940
|
var r;
|
|
3941
|
-
o.layer !==
|
|
3941
|
+
o.layer !== i && ((r = o.layer) != null && r.get("layerControlExclusive")) && (o.layer.setVisible(!1), o.requestUpdate());
|
|
3942
3942
|
}), t.dispatchEvent(
|
|
3943
|
-
new CustomEvent("changed", { bubbles: !0, detail:
|
|
3943
|
+
new CustomEvent("changed", { bubbles: !0, detail: i })
|
|
3944
3944
|
), t.requestUpdate();
|
|
3945
3945
|
};
|
|
3946
|
-
var Pt, He, Lo,
|
|
3946
|
+
var Pt, He, Lo, oi, ri;
|
|
3947
3947
|
class Ro extends tt {
|
|
3948
3948
|
constructor() {
|
|
3949
3949
|
super();
|
|
@@ -3954,12 +3954,16 @@ class Ro extends tt {
|
|
|
3954
3954
|
* @type {Boolean}
|
|
3955
3955
|
*/
|
|
3956
3956
|
I(this, "currLayerVisibilityBasedOnZoom", !0);
|
|
3957
|
-
C(this,
|
|
3958
|
-
C(this,
|
|
3957
|
+
C(this, oi, "");
|
|
3958
|
+
C(this, ri, `
|
|
3959
3959
|
${Do}
|
|
3960
3960
|
eox-layercontrol-layer {
|
|
3961
3961
|
width: 100%;
|
|
3962
3962
|
}
|
|
3963
|
+
.layer input[type=checkbox],
|
|
3964
|
+
.layer input[type=radio] {
|
|
3965
|
+
display: var(--layer-input-visibility);
|
|
3966
|
+
}
|
|
3963
3967
|
.layer.zoom-state-invisible {
|
|
3964
3968
|
background: #d2e2ee;
|
|
3965
3969
|
opacity: 0.3;
|
|
@@ -3969,17 +3973,22 @@ class Ro extends tt {
|
|
|
3969
3973
|
align-items: center;
|
|
3970
3974
|
justify-content: space-between;
|
|
3971
3975
|
padding: 4px 0;
|
|
3976
|
+
display: var(--layer-visibility);
|
|
3972
3977
|
}
|
|
3973
3978
|
label, span {
|
|
3974
3979
|
display: flex;
|
|
3975
3980
|
align-items: center;
|
|
3976
3981
|
cursor: pointer;
|
|
3977
3982
|
}
|
|
3983
|
+
.title {
|
|
3984
|
+
display: var(--layer-title-visibility);
|
|
3985
|
+
}
|
|
3978
3986
|
[data-type] .title::before {
|
|
3979
3987
|
width: 20px;
|
|
3980
3988
|
min-width: 20px;
|
|
3981
3989
|
height: 20px;
|
|
3982
3990
|
margin-right: 6px;
|
|
3991
|
+
display: var(--layer-type-visibility);
|
|
3983
3992
|
}
|
|
3984
3993
|
[data-type=group] .title::before {
|
|
3985
3994
|
content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%230041703a' viewBox='0 0 24 24'%3E%3Ctitle%3Efolder-outline%3C/title%3E%3Cpath d='M20,18H4V8H20M20,6H12L10,4H4C2.89,4 2,4.89 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V8C22,6.89 21.1,6 20,6Z' /%3E%3C/svg%3E");
|
|
@@ -4019,22 +4028,22 @@ class Ro extends tt {
|
|
|
4019
4028
|
*/
|
|
4020
4029
|
render() {
|
|
4021
4030
|
var l;
|
|
4022
|
-
const
|
|
4031
|
+
const i = this.layer.getVisible(), n = i ? "visible" : "", o = this.currLayerVisibilityBasedOnZoom ? "" : "zoom-state-invisible", r = V(this, Pt, He).call(this, "layerControlDisable") ? "disabled" : "", s = V(this, Pt, He).call(this, "layerControlExclusive") ? "radio" : "checkbox", a = ((l = this.tools) == null ? void 0 : l.length) > 0;
|
|
4023
4032
|
return $`
|
|
4024
4033
|
<style>
|
|
4025
|
-
${S(this,
|
|
4026
|
-
${!this.unstyled && S(this,
|
|
4034
|
+
${S(this, oi)}
|
|
4035
|
+
${!this.unstyled && S(this, ri)}
|
|
4027
4036
|
</style>
|
|
4028
4037
|
${F(
|
|
4029
4038
|
this.layer,
|
|
4030
4039
|
() => $`
|
|
4031
4040
|
<!-- Render the layer -->
|
|
4032
|
-
<div class="layer ${
|
|
4041
|
+
<div class="layer ${n} ${o}">
|
|
4033
4042
|
<label class="drag-handle ${r}">
|
|
4034
4043
|
<!-- Input element for layer visibility -->
|
|
4035
4044
|
<input
|
|
4036
4045
|
type=${s}
|
|
4037
|
-
.checked=${xo(
|
|
4046
|
+
.checked=${xo(i)}
|
|
4038
4047
|
@click=${V(this, Pt, Lo)}
|
|
4039
4048
|
/>
|
|
4040
4049
|
|
|
@@ -4066,17 +4075,17 @@ Pt = new WeakSet(), /**
|
|
|
4066
4075
|
* @param {string} key - The key for the layer property.
|
|
4067
4076
|
* @returns {any} - The value of the layer property if exists, otherwise undefined.
|
|
4068
4077
|
*/
|
|
4069
|
-
He = function(
|
|
4070
|
-
var
|
|
4071
|
-
return (
|
|
4078
|
+
He = function(i) {
|
|
4079
|
+
var n;
|
|
4080
|
+
return (n = this.layer) == null ? void 0 : n.get(i);
|
|
4072
4081
|
}, /**
|
|
4073
4082
|
* Handles the click event on the input element triggering the method.
|
|
4074
4083
|
*
|
|
4075
4084
|
* @param {{target: { checked: boolean }}} evt - The input change event.
|
|
4076
4085
|
*/
|
|
4077
|
-
Lo = function(
|
|
4078
|
-
va(
|
|
4079
|
-
},
|
|
4086
|
+
Lo = function(i) {
|
|
4087
|
+
va(i, this);
|
|
4088
|
+
}, oi = new WeakMap(), ri = new WeakMap(), // Define static properties for the component
|
|
4080
4089
|
I(Ro, "properties", {
|
|
4081
4090
|
layer: { attribute: !1 },
|
|
4082
4091
|
map: { attribute: !1, state: !0 },
|
|
@@ -4088,12 +4097,12 @@ I(Ro, "properties", {
|
|
|
4088
4097
|
toolsAsList: { type: Boolean }
|
|
4089
4098
|
});
|
|
4090
4099
|
customElements.define("eox-layercontrol-layer", Ro);
|
|
4091
|
-
var
|
|
4100
|
+
var si, ai;
|
|
4092
4101
|
class Mo extends tt {
|
|
4093
4102
|
constructor() {
|
|
4094
4103
|
super();
|
|
4095
|
-
C(this,
|
|
4096
|
-
C(this,
|
|
4104
|
+
C(this, si, "");
|
|
4105
|
+
C(this, ai, `
|
|
4097
4106
|
details summary {
|
|
4098
4107
|
cursor: pointer;
|
|
4099
4108
|
display: flex;
|
|
@@ -4102,7 +4111,7 @@ class Mo extends tt {
|
|
|
4102
4111
|
details summary::-webkit-details-marker { display: none; } /* Chrome */
|
|
4103
4112
|
details summary::marker { display: none; }
|
|
4104
4113
|
details summary::before {
|
|
4105
|
-
display:
|
|
4114
|
+
display: var(--layer-visibility);
|
|
4106
4115
|
content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Echevron-right%3C/title%3E%3Cpath d='M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z' /%3E%3C/svg%3E");
|
|
4107
4116
|
font-size: 13px;
|
|
4108
4117
|
width: 24px;
|
|
@@ -4133,21 +4142,21 @@ class Mo extends tt {
|
|
|
4133
4142
|
*/
|
|
4134
4143
|
render() {
|
|
4135
4144
|
var o, r;
|
|
4136
|
-
const
|
|
4145
|
+
const i = !!((o = this.group) != null && o.get("layerControlExpand")), n = (r = $o(
|
|
4137
4146
|
this.group.getLayers()
|
|
4138
4147
|
)) == null ? void 0 : r.length;
|
|
4139
4148
|
return $`
|
|
4140
4149
|
<style>
|
|
4141
|
-
${S(this,
|
|
4142
|
-
${!this.unstyled && S(this,
|
|
4150
|
+
${S(this, si)}
|
|
4151
|
+
${!this.unstyled && S(this, ai)}
|
|
4143
4152
|
</style>
|
|
4144
4153
|
${F(
|
|
4145
4154
|
this.group,
|
|
4146
4155
|
() => $`
|
|
4147
4156
|
<!-- Render the details element with the layer control -->
|
|
4148
4157
|
<details
|
|
4149
|
-
open=${
|
|
4150
|
-
data-children-length=${
|
|
4158
|
+
open=${i || P}
|
|
4159
|
+
data-children-length=${n}
|
|
4151
4160
|
>
|
|
4152
4161
|
<summary>
|
|
4153
4162
|
<!-- Render the layer control within the summary -->
|
|
@@ -4183,7 +4192,7 @@ class Mo extends tt {
|
|
|
4183
4192
|
`;
|
|
4184
4193
|
}
|
|
4185
4194
|
}
|
|
4186
|
-
|
|
4195
|
+
si = new WeakMap(), ai = new WeakMap(), // Define static properties for the component
|
|
4187
4196
|
I(Mo, "properties", {
|
|
4188
4197
|
group: { attribute: !1 },
|
|
4189
4198
|
idProperty: { attribute: "id-property" },
|
|
@@ -4199,57 +4208,57 @@ customElements.define(
|
|
|
4199
4208
|
"eox-layercontrol-layer-group",
|
|
4200
4209
|
Mo
|
|
4201
4210
|
);
|
|
4202
|
-
var wa = "Expected a function",
|
|
4211
|
+
var wa = "Expected a function", On = NaN, $a = "[object Symbol]", xa = /^\s+|\s+$/g, Ea = /^[-+]0x[0-9a-f]+$/i, Sa = /^0b[01]+$/i, Aa = /^0o[0-7]+$/i, _a = parseInt, Ca = typeof Ct == "object" && Ct && Ct.Object === Object && Ct, Ta = typeof self == "object" && self && self.Object === Object && self, Pa = Ca || Ta || Function("return this")(), Da = Object.prototype, Oa = Da.toString, Ra = Math.max, La = Math.min, Mi = function() {
|
|
4203
4212
|
return Pa.Date.now();
|
|
4204
4213
|
};
|
|
4205
|
-
function Ma(e, t,
|
|
4206
|
-
var
|
|
4214
|
+
function Ma(e, t, i) {
|
|
4215
|
+
var n, o, r, s, a, l, d = 0, c = !1, u = !1, p = !0;
|
|
4207
4216
|
if (typeof e != "function")
|
|
4208
4217
|
throw new TypeError(wa);
|
|
4209
|
-
t =
|
|
4218
|
+
t = Rn(t) || 0, Fi(i) && (c = !!i.leading, u = "maxWait" in i, r = u ? Ra(Rn(i.maxWait) || 0, t) : r, p = "trailing" in i ? !!i.trailing : p);
|
|
4210
4219
|
function f(b) {
|
|
4211
|
-
var O =
|
|
4212
|
-
return
|
|
4220
|
+
var O = n, z = o;
|
|
4221
|
+
return n = o = void 0, d = b, s = e.apply(z, O), s;
|
|
4213
4222
|
}
|
|
4214
4223
|
function g(b) {
|
|
4215
|
-
return
|
|
4224
|
+
return d = b, a = setTimeout(M, t), c ? f(b) : s;
|
|
4216
4225
|
}
|
|
4217
4226
|
function y(b) {
|
|
4218
|
-
var O = b - l, z = b -
|
|
4219
|
-
return
|
|
4227
|
+
var O = b - l, z = b - d, U = t - O;
|
|
4228
|
+
return u ? La(U, r - z) : U;
|
|
4220
4229
|
}
|
|
4221
4230
|
function D(b) {
|
|
4222
|
-
var O = b - l, z = b -
|
|
4223
|
-
return l === void 0 || O >= t || O < 0 ||
|
|
4231
|
+
var O = b - l, z = b - d;
|
|
4232
|
+
return l === void 0 || O >= t || O < 0 || u && z >= r;
|
|
4224
4233
|
}
|
|
4225
4234
|
function M() {
|
|
4226
|
-
var b =
|
|
4235
|
+
var b = Mi();
|
|
4227
4236
|
if (D(b))
|
|
4228
4237
|
return H(b);
|
|
4229
4238
|
a = setTimeout(M, y(b));
|
|
4230
4239
|
}
|
|
4231
4240
|
function H(b) {
|
|
4232
|
-
return a = void 0, p &&
|
|
4241
|
+
return a = void 0, p && n ? f(b) : (n = o = void 0, s);
|
|
4233
4242
|
}
|
|
4234
4243
|
function J() {
|
|
4235
|
-
a !== void 0 && clearTimeout(a),
|
|
4244
|
+
a !== void 0 && clearTimeout(a), d = 0, n = l = o = a = void 0;
|
|
4236
4245
|
}
|
|
4237
4246
|
function Z() {
|
|
4238
|
-
return a === void 0 ? s : H(
|
|
4247
|
+
return a === void 0 ? s : H(Mi());
|
|
4239
4248
|
}
|
|
4240
4249
|
function K() {
|
|
4241
|
-
var b =
|
|
4242
|
-
if (
|
|
4250
|
+
var b = Mi(), O = D(b);
|
|
4251
|
+
if (n = arguments, o = this, l = b, O) {
|
|
4243
4252
|
if (a === void 0)
|
|
4244
4253
|
return g(l);
|
|
4245
|
-
if (
|
|
4254
|
+
if (u)
|
|
4246
4255
|
return a = setTimeout(M, t), f(l);
|
|
4247
4256
|
}
|
|
4248
4257
|
return a === void 0 && (a = setTimeout(M, t)), s;
|
|
4249
4258
|
}
|
|
4250
4259
|
return K.cancel = J, K.flush = Z, K;
|
|
4251
4260
|
}
|
|
4252
|
-
function
|
|
4261
|
+
function Fi(e) {
|
|
4253
4262
|
var t = typeof e;
|
|
4254
4263
|
return !!e && (t == "object" || t == "function");
|
|
4255
4264
|
}
|
|
@@ -4259,24 +4268,24 @@ function Ia(e) {
|
|
|
4259
4268
|
function Na(e) {
|
|
4260
4269
|
return typeof e == "symbol" || Ia(e) && Oa.call(e) == $a;
|
|
4261
4270
|
}
|
|
4262
|
-
function
|
|
4271
|
+
function Rn(e) {
|
|
4263
4272
|
if (typeof e == "number")
|
|
4264
4273
|
return e;
|
|
4265
4274
|
if (Na(e))
|
|
4266
|
-
return
|
|
4267
|
-
if (
|
|
4275
|
+
return On;
|
|
4276
|
+
if (Fi(e)) {
|
|
4268
4277
|
var t = typeof e.valueOf == "function" ? e.valueOf() : e;
|
|
4269
|
-
e =
|
|
4278
|
+
e = Fi(t) ? t + "" : t;
|
|
4270
4279
|
}
|
|
4271
4280
|
if (typeof e != "string")
|
|
4272
4281
|
return e === 0 ? e : +e;
|
|
4273
4282
|
e = e.replace(xa, "");
|
|
4274
|
-
var
|
|
4275
|
-
return
|
|
4283
|
+
var i = Sa.test(e);
|
|
4284
|
+
return i || Aa.test(e) ? _a(e.slice(2), i ? 2 : 8) : Ea.test(e) ? On : +e;
|
|
4276
4285
|
}
|
|
4277
4286
|
var Ha = Ma;
|
|
4278
4287
|
const Va = /* @__PURE__ */ Eo(Ha), Ba = (e) => {
|
|
4279
|
-
const { layers: t, idProperty:
|
|
4288
|
+
const { layers: t, idProperty: i, titleProperty: n, renderRoot: o } = e, r = Va(() => {
|
|
4280
4289
|
e.requestUpdate(), e.dispatchEvent(
|
|
4281
4290
|
new CustomEvent("changed", { bubbles: !0 })
|
|
4282
4291
|
);
|
|
@@ -4285,24 +4294,24 @@ const Va = /* @__PURE__ */ Eo(Ha), Ba = (e) => {
|
|
|
4285
4294
|
const a = o.querySelector("ul");
|
|
4286
4295
|
Hs(
|
|
4287
4296
|
t,
|
|
4288
|
-
n,
|
|
4289
4297
|
i,
|
|
4298
|
+
n,
|
|
4290
4299
|
e
|
|
4291
|
-
), Ns(a, t,
|
|
4300
|
+
), Ns(a, t, i, e);
|
|
4292
4301
|
}
|
|
4293
4302
|
};
|
|
4294
|
-
var
|
|
4303
|
+
var li, di;
|
|
4295
4304
|
class Io extends tt {
|
|
4296
4305
|
constructor() {
|
|
4297
4306
|
super();
|
|
4298
|
-
C(this,
|
|
4299
|
-
C(this,
|
|
4307
|
+
C(this, li, "");
|
|
4308
|
+
C(this, di, `
|
|
4300
4309
|
ul {
|
|
4301
4310
|
padding: 0;
|
|
4302
4311
|
margin: 0;
|
|
4303
4312
|
}
|
|
4304
4313
|
ul ul {
|
|
4305
|
-
padding-left:
|
|
4314
|
+
padding-left: var(--list-padding);
|
|
4306
4315
|
}
|
|
4307
4316
|
li {
|
|
4308
4317
|
list-style: none;
|
|
@@ -4310,6 +4319,7 @@ class Io extends tt {
|
|
|
4310
4319
|
}
|
|
4311
4320
|
li {
|
|
4312
4321
|
border-bottom: 1px solid #0041703a;
|
|
4322
|
+
border: var(--layer-visibility);
|
|
4313
4323
|
}
|
|
4314
4324
|
li:last-child {
|
|
4315
4325
|
border: none;
|
|
@@ -4342,30 +4352,30 @@ class Io extends tt {
|
|
|
4342
4352
|
* layer groups or individual layers accordingly. Utilizes conditional rendering and iterates through available layers.
|
|
4343
4353
|
*/
|
|
4344
4354
|
render() {
|
|
4345
|
-
const
|
|
4355
|
+
const i = this.layers ? $o(this.layers).reverse() : [];
|
|
4346
4356
|
return $`
|
|
4347
4357
|
<style>
|
|
4348
|
-
${S(this,
|
|
4349
|
-
${!this.unstyled && S(this,
|
|
4358
|
+
${S(this, li)}
|
|
4359
|
+
${!this.unstyled && S(this, di)}
|
|
4350
4360
|
</style>
|
|
4351
4361
|
<ul>
|
|
4352
4362
|
${F(
|
|
4353
4363
|
this.layers,
|
|
4354
4364
|
() => $`
|
|
4355
4365
|
${pr(
|
|
4356
|
-
|
|
4357
|
-
(
|
|
4358
|
-
(
|
|
4366
|
+
i,
|
|
4367
|
+
(n) => n,
|
|
4368
|
+
(n) => $`
|
|
4359
4369
|
<li
|
|
4360
|
-
data-layer="${
|
|
4361
|
-
data-type="${Bs(
|
|
4370
|
+
data-layer="${n.get(this.idProperty)}"
|
|
4371
|
+
data-type="${Bs(n, this.map)}"
|
|
4362
4372
|
>
|
|
4363
4373
|
${/** Checks if the layer is a group or individual layer and renders accordingly */
|
|
4364
4374
|
/** @type {import("ol/layer").Group} */
|
|
4365
|
-
|
|
4375
|
+
n.getLayers ? $`
|
|
4366
4376
|
<eox-layercontrol-layer-group
|
|
4367
4377
|
.noShadow=${!0}
|
|
4368
|
-
.group=${
|
|
4378
|
+
.group=${n}
|
|
4369
4379
|
.idProperty=${this.idProperty}
|
|
4370
4380
|
.map=${this.map}
|
|
4371
4381
|
.titleProperty=${this.titleProperty}
|
|
@@ -4379,7 +4389,7 @@ class Io extends tt {
|
|
|
4379
4389
|
` : $`
|
|
4380
4390
|
<eox-layercontrol-layer
|
|
4381
4391
|
.noShadow=${!0}
|
|
4382
|
-
.layer=${
|
|
4392
|
+
.layer=${n}
|
|
4383
4393
|
.map=${this.map}
|
|
4384
4394
|
.titleProperty=${this.titleProperty}
|
|
4385
4395
|
.showLayerZoomState=${this.showLayerZoomState}
|
|
@@ -4398,7 +4408,7 @@ class Io extends tt {
|
|
|
4398
4408
|
`;
|
|
4399
4409
|
}
|
|
4400
4410
|
}
|
|
4401
|
-
|
|
4411
|
+
li = new WeakMap(), di = new WeakMap(), // Define static properties for the component
|
|
4402
4412
|
I(Io, "properties", {
|
|
4403
4413
|
idProperty: { attribute: "id-property" },
|
|
4404
4414
|
layers: { attribute: !1 },
|
|
@@ -4414,17 +4424,17 @@ customElements.define("eox-layercontrol-layer-list", Io);
|
|
|
4414
4424
|
const ka = (e) => {
|
|
4415
4425
|
const t = e.querySelector(
|
|
4416
4426
|
"select[name=optional]"
|
|
4417
|
-
),
|
|
4427
|
+
), i = t ? t.value : null, n = nn(
|
|
4418
4428
|
e.layers.getArray(),
|
|
4419
4429
|
"layerControlOptional",
|
|
4420
4430
|
!0
|
|
4421
4431
|
).find(
|
|
4422
4432
|
(o) => (
|
|
4423
4433
|
// @ts-expect-error TODO
|
|
4424
|
-
(o.get(e.idProperty) || o.ol_uid) ===
|
|
4434
|
+
(o.get(e.idProperty) || o.ol_uid) === i
|
|
4425
4435
|
)
|
|
4426
4436
|
);
|
|
4427
|
-
|
|
4437
|
+
n == null || n.set("layerControlOptional", !1), n == null || n.setVisible(!0), e.dispatchEvent(
|
|
4428
4438
|
new CustomEvent("changed", { bubbles: !0 })
|
|
4429
4439
|
), e.renderRoot.parentNode.querySelectorAll("eox-layercontrol-layer-list").forEach(
|
|
4430
4440
|
(o) => (
|
|
@@ -4433,11 +4443,11 @@ const ka = (e) => {
|
|
|
4433
4443
|
)
|
|
4434
4444
|
), e.requestUpdate();
|
|
4435
4445
|
};
|
|
4436
|
-
var
|
|
4446
|
+
var ui, Ho;
|
|
4437
4447
|
class No extends tt {
|
|
4438
4448
|
constructor() {
|
|
4439
4449
|
super();
|
|
4440
|
-
C(this,
|
|
4450
|
+
C(this, ui);
|
|
4441
4451
|
this.idProperty = "id", this.layers = null, this.titleProperty = "title", this.unstyled = !1, this.noShadow = !1;
|
|
4442
4452
|
}
|
|
4443
4453
|
/**
|
|
@@ -4452,7 +4462,7 @@ class No extends tt {
|
|
|
4452
4462
|
* Generates dropdown options based on the extracted layer information.
|
|
4453
4463
|
*/
|
|
4454
4464
|
render() {
|
|
4455
|
-
const
|
|
4465
|
+
const i = nn(
|
|
4456
4466
|
this.layers.getArray(),
|
|
4457
4467
|
"layerControlOptional",
|
|
4458
4468
|
!0
|
|
@@ -4469,18 +4479,18 @@ class No extends tt {
|
|
|
4469
4479
|
</option>
|
|
4470
4480
|
|
|
4471
4481
|
<!-- Mapping through filtered layers list to generate dropdown options -->
|
|
4472
|
-
${
|
|
4473
|
-
const o =
|
|
4482
|
+
${i.map((n) => {
|
|
4483
|
+
const o = n.get(this.idProperty) || n.ol_uid, r = n.get(this.titleProperty), s = `layer ${n.get(this.idProperty)}`;
|
|
4474
4484
|
return $` <option value="${o}">${r || s}</option> `;
|
|
4475
4485
|
})}
|
|
4476
4486
|
</select>
|
|
4477
4487
|
|
|
4478
4488
|
<!-- Button to handle adding layers -->
|
|
4479
|
-
<button @click="${V(this,
|
|
4489
|
+
<button @click="${V(this, ui, Ho)}">add</button>
|
|
4480
4490
|
`;
|
|
4481
4491
|
}
|
|
4482
4492
|
}
|
|
4483
|
-
|
|
4493
|
+
ui = new WeakSet(), /**
|
|
4484
4494
|
* Handles the addition of selected layers to a list.
|
|
4485
4495
|
* Invokes the 'addToListMethod' with the current context.
|
|
4486
4496
|
*/
|
|
@@ -4500,12 +4510,12 @@ customElements.define(
|
|
|
4500
4510
|
);
|
|
4501
4511
|
const Ua = (e, t) => {
|
|
4502
4512
|
t.jsonInput = e.target.value, t.requestUpdate();
|
|
4503
|
-
},
|
|
4513
|
+
}, Ln = (e) => {
|
|
4504
4514
|
const t = JSON.parse(
|
|
4505
|
-
`{"data":${
|
|
4515
|
+
`{"data":${io(e.jsonInput)}}`
|
|
4506
4516
|
);
|
|
4507
|
-
Array.isArray(t.data) ? t.data.forEach((
|
|
4508
|
-
e.eoxMap.addOrUpdateLayer(
|
|
4517
|
+
Array.isArray(t.data) ? t.data.forEach((i) => {
|
|
4518
|
+
e.eoxMap.addOrUpdateLayer(i);
|
|
4509
4519
|
}) : e.eoxMap.addOrUpdateLayer(t.data), e.jsonInput = null, e.requestUpdate();
|
|
4510
4520
|
}, Fa = (e, t) => {
|
|
4511
4521
|
t.urlInput = e.target.value, t.requestUpdate();
|
|
@@ -4513,11 +4523,11 @@ const Ua = (e, t) => {
|
|
|
4513
4523
|
async function ja(e) {
|
|
4514
4524
|
const t = e.urlInput;
|
|
4515
4525
|
if (e.wmsCapabilities = null, e.searchLoad = !0, e.requestUpdate(), !t) return !1;
|
|
4516
|
-
if (
|
|
4526
|
+
if (Ki(t) === "XYZ")
|
|
4517
4527
|
return { Name: t };
|
|
4518
4528
|
try {
|
|
4519
|
-
const
|
|
4520
|
-
e.wmsCapabilities =
|
|
4529
|
+
const i = await rs(t);
|
|
4530
|
+
e.wmsCapabilities = i;
|
|
4521
4531
|
} catch {
|
|
4522
4532
|
} finally {
|
|
4523
4533
|
e.searchLoad = !1, e.requestUpdate();
|
|
@@ -4525,19 +4535,19 @@ async function ja(e) {
|
|
|
4525
4535
|
return !1;
|
|
4526
4536
|
}
|
|
4527
4537
|
const Za = (e, t) => {
|
|
4528
|
-
const { Name:
|
|
4538
|
+
const { Name: i } = e, n = Ki(t.urlInput) || "XYZ", o = {
|
|
4529
4539
|
type: "Tile",
|
|
4530
4540
|
properties: {
|
|
4531
|
-
id:
|
|
4532
|
-
title:
|
|
4541
|
+
id: i,
|
|
4542
|
+
title: i
|
|
4533
4543
|
// Set the title property to the same as id
|
|
4534
4544
|
},
|
|
4535
4545
|
source: {
|
|
4536
|
-
type:
|
|
4546
|
+
type: n,
|
|
4537
4547
|
url: t.urlInput,
|
|
4538
4548
|
// Set the URL from the instance
|
|
4539
4549
|
params: {
|
|
4540
|
-
LAYERS:
|
|
4550
|
+
LAYERS: i
|
|
4541
4551
|
// Set the 'LAYERS' parameter to the provided layer 'Name'
|
|
4542
4552
|
}
|
|
4543
4553
|
}
|
|
@@ -4546,7 +4556,7 @@ const Za = (e, t) => {
|
|
|
4546
4556
|
}, za = (e, t) => {
|
|
4547
4557
|
t.open = e || null, t.urlInput = null, t.jsonInput = null, t.wmsCapabilities = null, t.requestUpdate();
|
|
4548
4558
|
};
|
|
4549
|
-
var q, Bo, ko,
|
|
4559
|
+
var q, Bo, ko, ji, Uo, Fo, Ve, ci, hi;
|
|
4550
4560
|
class Vo extends tt {
|
|
4551
4561
|
constructor() {
|
|
4552
4562
|
super();
|
|
@@ -4581,7 +4591,7 @@ class Vo extends tt {
|
|
|
4581
4591
|
* @type {import("wms-capabilities").WMSCapabilitiesJSON}
|
|
4582
4592
|
*/
|
|
4583
4593
|
I(this, "wmsCapabilities", null);
|
|
4584
|
-
C(this,
|
|
4594
|
+
C(this, ci, `
|
|
4585
4595
|
.eox-add-layer-main .open {
|
|
4586
4596
|
position: relative;
|
|
4587
4597
|
}
|
|
@@ -4589,7 +4599,7 @@ class Vo extends tt {
|
|
|
4589
4599
|
display: none;
|
|
4590
4600
|
}
|
|
4591
4601
|
`);
|
|
4592
|
-
C(this,
|
|
4602
|
+
C(this, hi, `
|
|
4593
4603
|
.eox-add {
|
|
4594
4604
|
background: #f0f2f5;
|
|
4595
4605
|
border-top: 1px solid #0041701a;
|
|
@@ -4738,19 +4748,19 @@ class Vo extends tt {
|
|
|
4738
4748
|
* Handles input fields, search, and addition of layers.
|
|
4739
4749
|
*/
|
|
4740
4750
|
render() {
|
|
4741
|
-
const
|
|
4751
|
+
const i = this.open ? "open" : "close", n = this.open === "url", o = this.open === "json", r = !ss(this.urlInput) || this.searchLoad ? !0 : P;
|
|
4742
4752
|
return $`
|
|
4743
4753
|
<style>
|
|
4744
|
-
${S(this,
|
|
4745
|
-
${!this.unstyled && S(this,
|
|
4754
|
+
${S(this, ci)}
|
|
4755
|
+
${!this.unstyled && S(this, hi)}
|
|
4746
4756
|
</style>
|
|
4747
4757
|
<div class="eox-add-layer-main">
|
|
4748
4758
|
<div class="eox-add-layer-col">
|
|
4749
4759
|
<!-- Tabbed interface for URL and JSON -->
|
|
4750
|
-
<ul class="eox-add-layer-tab ${
|
|
4760
|
+
<ul class="eox-add-layer-tab ${i}">
|
|
4751
4761
|
<li
|
|
4752
4762
|
@click=${() => V(this, q, Ve).call(this, "url")}
|
|
4753
|
-
class="${
|
|
4763
|
+
class="${n ? "active" : ""}"
|
|
4754
4764
|
>
|
|
4755
4765
|
URL
|
|
4756
4766
|
</li>
|
|
@@ -4770,8 +4780,8 @@ class Vo extends tt {
|
|
|
4770
4780
|
${this.unstyled ? "Add Layer" : ""}
|
|
4771
4781
|
</button>
|
|
4772
4782
|
</div>
|
|
4773
|
-
<div class="eox-add ${
|
|
4774
|
-
${
|
|
4783
|
+
<div class="eox-add ${i}">
|
|
4784
|
+
${n ? $`
|
|
4775
4785
|
<!-- Input field for URL -->
|
|
4776
4786
|
<div class="eox-add-layer-col">
|
|
4777
4787
|
<input
|
|
@@ -4805,7 +4815,7 @@ class Vo extends tt {
|
|
|
4805
4815
|
class="add-layer-icon icon"
|
|
4806
4816
|
@click=${() => (
|
|
4807
4817
|
// @ts-expect-error TODO
|
|
4808
|
-
V(this, q,
|
|
4818
|
+
V(this, q, ji).call(this, s)
|
|
4809
4819
|
)}
|
|
4810
4820
|
>
|
|
4811
4821
|
${this.unstyled ? "+" : ""}
|
|
@@ -4844,38 +4854,38 @@ q = new WeakSet(), /**
|
|
|
4844
4854
|
*
|
|
4845
4855
|
* @param {Event} evt - The input change event triggering the method.
|
|
4846
4856
|
*/
|
|
4847
|
-
Bo = function(
|
|
4848
|
-
Fa(
|
|
4857
|
+
Bo = function(i) {
|
|
4858
|
+
Fa(i, this);
|
|
4849
4859
|
}, ko = async function() {
|
|
4850
|
-
const
|
|
4851
|
-
|
|
4860
|
+
const i = await ja(this);
|
|
4861
|
+
i && V(this, q, ji).call(this, i);
|
|
4852
4862
|
}, /**
|
|
4853
4863
|
* Handles input field changes by triggering layer processing and adding layers.
|
|
4854
4864
|
*
|
|
4855
4865
|
* @param {{"Name": string}} layer - The layer information triggering the method.
|
|
4856
4866
|
*/
|
|
4857
|
-
|
|
4858
|
-
Za(
|
|
4867
|
+
ji = function(i) {
|
|
4868
|
+
Za(i, this), Ln(this);
|
|
4859
4869
|
}, /**
|
|
4860
4870
|
* Initiates the addition of layers, triggering the handleAddLayerMethod.
|
|
4861
4871
|
*/
|
|
4862
4872
|
Uo = function() {
|
|
4863
|
-
|
|
4873
|
+
Ln(this);
|
|
4864
4874
|
}, /**
|
|
4865
4875
|
* Handles input field changes by invoking the 'handleJsonInputChangeMethod'.
|
|
4866
4876
|
*
|
|
4867
4877
|
* @param {{target: { value: string }}} evt - The input change event triggering the method.
|
|
4868
4878
|
*/
|
|
4869
|
-
Fo = function(
|
|
4870
|
-
Ua(
|
|
4879
|
+
Fo = function(i) {
|
|
4880
|
+
Ua(i, this);
|
|
4871
4881
|
}, /**
|
|
4872
4882
|
* Handles tab changes by invoking the 'openCloseTabMethod'.
|
|
4873
4883
|
*
|
|
4874
4884
|
* @param {"url" | "json" | null} tab - The tab identifier triggering the method.
|
|
4875
4885
|
*/
|
|
4876
|
-
Ve = function(
|
|
4877
|
-
za(
|
|
4878
|
-
},
|
|
4886
|
+
Ve = function(i) {
|
|
4887
|
+
za(i, this);
|
|
4888
|
+
}, ci = new WeakMap(), hi = new WeakMap(), // Define static properties for the component
|
|
4879
4889
|
I(Vo, "properties", {
|
|
4880
4890
|
eoxMap: { attribute: !1, state: !0 },
|
|
4881
4891
|
unstyled: { type: Boolean },
|
|
@@ -4884,20 +4894,20 @@ I(Vo, "properties", {
|
|
|
4884
4894
|
customElements.define("eox-layercontrol-add-layers", Vo);
|
|
4885
4895
|
const Xa = (e, t) => {
|
|
4886
4896
|
if (t.requestUpdate(), e.target.tagName === "EOX-LAYERCONTROL-LAYER-TOOLS") {
|
|
4887
|
-
const
|
|
4897
|
+
const i = t.renderRoot.querySelector(
|
|
4888
4898
|
"eox-layercontrol-optional-list"
|
|
4889
4899
|
);
|
|
4890
|
-
|
|
4900
|
+
i == null || i.requestUpdate();
|
|
4891
4901
|
}
|
|
4892
4902
|
}, qa = (e) => {
|
|
4893
4903
|
let t;
|
|
4894
4904
|
return typeof e == "string" ? t = /** @type {HTMLElement} */
|
|
4895
4905
|
document.querySelector(e) : t = e, t;
|
|
4896
|
-
},
|
|
4906
|
+
}, Mn = (e) => {
|
|
4897
4907
|
const t = qa(e.for);
|
|
4898
4908
|
return t && t.map !== e.map && (e.map = t.map), t;
|
|
4899
4909
|
};
|
|
4900
|
-
var At, Gt, Zo, zo,
|
|
4910
|
+
var At, Gt, Zo, zo, pi;
|
|
4901
4911
|
class jo extends tt {
|
|
4902
4912
|
// Constructor to set default values for properties
|
|
4903
4913
|
constructor() {
|
|
@@ -4909,10 +4919,16 @@ class jo extends tt {
|
|
|
4909
4919
|
* @type {import("../../map/src/main").EOxMap}
|
|
4910
4920
|
*/
|
|
4911
4921
|
C(this, At);
|
|
4912
|
-
C(this,
|
|
4922
|
+
C(this, pi, `
|
|
4913
4923
|
:host, :root {
|
|
4914
4924
|
font-family: Roboto, sans-serif;
|
|
4915
4925
|
--padding: 0.5rem;
|
|
4926
|
+
--list-padding: 48px;
|
|
4927
|
+
--layer-input-visibility: flex;
|
|
4928
|
+
--layer-type-visibility: block;
|
|
4929
|
+
--layer-title-visibility: flex;
|
|
4930
|
+
--layer-visibility: block;
|
|
4931
|
+
--layer-tools-button-visibility: flex;
|
|
4916
4932
|
|
|
4917
4933
|
display: block;
|
|
4918
4934
|
padding: var(--padding) 0;
|
|
@@ -4925,24 +4941,24 @@ class jo extends tt {
|
|
|
4925
4941
|
* Updated #eoxMap after first update.
|
|
4926
4942
|
*/
|
|
4927
4943
|
firstUpdated() {
|
|
4928
|
-
this.eoxMap =
|
|
4944
|
+
this.eoxMap = Mn(this);
|
|
4929
4945
|
}
|
|
4930
|
-
updated(
|
|
4931
|
-
|
|
4946
|
+
updated(i) {
|
|
4947
|
+
i.has("for") && (this.eoxMap = Mn(this));
|
|
4932
4948
|
}
|
|
4933
4949
|
get eoxMap() {
|
|
4934
4950
|
return S(this, At);
|
|
4935
4951
|
}
|
|
4936
|
-
set eoxMap(
|
|
4937
|
-
const
|
|
4938
|
-
kt(this, At,
|
|
4952
|
+
set eoxMap(i) {
|
|
4953
|
+
const n = S(this, At);
|
|
4954
|
+
kt(this, At, i), this.requestUpdate("eoxMap", n);
|
|
4939
4955
|
}
|
|
4940
4956
|
render() {
|
|
4941
4957
|
var o, r, s;
|
|
4942
|
-
const
|
|
4958
|
+
const i = (o = this.map) == null ? void 0 : o.getLayers().getArray(), n = i && ((r = nn(i, "layerControlOptional", !0)) == null ? void 0 : r.length) > 0;
|
|
4943
4959
|
return $`
|
|
4944
4960
|
<style>
|
|
4945
|
-
${!this.unstyled && S(this,
|
|
4961
|
+
${!this.unstyled && S(this, pi)}
|
|
4946
4962
|
${this.styleOverride}
|
|
4947
4963
|
</style>
|
|
4948
4964
|
|
|
@@ -4981,7 +4997,7 @@ class jo extends tt {
|
|
|
4981
4997
|
|
|
4982
4998
|
<!-- Conditional rendering of optional list component -->
|
|
4983
4999
|
${F(
|
|
4984
|
-
|
|
5000
|
+
n,
|
|
4985
5001
|
() => $`
|
|
4986
5002
|
<eox-layercontrol-optional-list
|
|
4987
5003
|
.noShadow=${!0}
|
|
@@ -5000,17 +5016,17 @@ At = new WeakMap(), Gt = new WeakSet(), /**
|
|
|
5000
5016
|
*
|
|
5001
5017
|
* @param {CustomEvent & {target: Element}} evt
|
|
5002
5018
|
*/
|
|
5003
|
-
Zo = function(
|
|
5004
|
-
Xa(
|
|
5019
|
+
Zo = function(i) {
|
|
5020
|
+
Xa(i, this), this.dispatchEvent(new CustomEvent("layerchange", { detail: i.detail }));
|
|
5005
5021
|
}, /**
|
|
5006
5022
|
* Dispatches datetime updates from layer datetime to the layercontrol
|
|
5007
5023
|
* @param {CustomEvent} evt
|
|
5008
5024
|
*/
|
|
5009
|
-
zo = function(
|
|
5025
|
+
zo = function(i) {
|
|
5010
5026
|
this.dispatchEvent(
|
|
5011
|
-
new CustomEvent("datetime:updated", { detail:
|
|
5027
|
+
new CustomEvent("datetime:updated", { detail: i.detail })
|
|
5012
5028
|
);
|
|
5013
|
-
},
|
|
5029
|
+
}, pi = new WeakMap(), // Define static properties for the component
|
|
5014
5030
|
I(jo, "properties", {
|
|
5015
5031
|
for: { type: String },
|
|
5016
5032
|
idProperty: { attribute: "id-property" },
|