@eox/layercontrol 0.22.0 → 0.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/dist/eox-layercontrol.js +836 -839
- package/dist/eox-layercontrol.umd.cjs +119 -122
- package/package.json +24 -17
- package/src/components/add-layers.js +416 -0
- package/src/components/layer-config.js +212 -0
- package/src/components/layer-datetime.js +128 -0
- package/src/components/layer-group.js +193 -0
- package/src/components/layer-legend.js +135 -0
- package/src/components/layer-list.js +209 -0
- package/src/components/layer-tools.js +353 -0
- package/src/components/layer.js +244 -0
- package/src/components/optional-list.js +124 -0
- package/src/components/tab-sliders.js +0 -0
- package/src/components/tools-items.js +199 -0
- package/src/enums/index.js +16 -0
- package/src/enums/stories/assets/cropomhusc-feature-collection.json +5274 -0
- package/src/enums/stories/index.js +536 -0
- package/src/helpers/check-properties.js +41 -0
- package/src/helpers/clean-json-input.js +29 -0
- package/src/helpers/create-sortable.js +104 -0
- package/src/helpers/detect-map-url-type.js +20 -0
- package/src/helpers/fetch-capabilities.js +32 -0
- package/src/helpers/filter-layers.js +45 -0
- package/src/helpers/get-layer-type.js +35 -0
- package/src/helpers/get-legend-config.js +25 -0
- package/src/helpers/get-start-vals.js +73 -0
- package/src/helpers/hide-layers-based-on-property.js +11 -0
- package/src/helpers/index.js +22 -0
- package/src/helpers/is-layer-json-valid.js +19 -0
- package/src/helpers/is-layer-visible-based-on-zoom-state.js +31 -0
- package/src/helpers/is-layer-zoom-state-req.js +17 -0
- package/src/helpers/is-map-url-valid.js +22 -0
- package/src/helpers/layer-tools.js +82 -0
- package/src/helpers/update-url.js +32 -0
- package/src/main.js +269 -0
- package/src/methods/add-layer/add-layer.js +33 -0
- package/src/methods/add-layer/index.js +8 -0
- package/src/methods/add-layer/json-input-change.js +15 -0
- package/src/methods/add-layer/open-close-tab.js +21 -0
- package/src/methods/add-layer/url-input-change.js +17 -0
- package/src/methods/add-layer/url-layer.js +37 -0
- package/src/methods/add-layer/wms-search-url.js +44 -0
- package/src/methods/layer/first-updated.js +65 -0
- package/src/methods/layer/index.js +4 -0
- package/src/methods/layer/input-click.js +43 -0
- package/src/methods/layer-config/apply-updated-styles.js +98 -0
- package/src/methods/layer-config/data-change.js +44 -0
- package/src/methods/layer-config/index.js +7 -0
- package/src/methods/layer-list/first-updated.js +55 -0
- package/src/methods/layer-list/index.js +3 -0
- package/src/methods/layercontrol/first-update.js +22 -0
- package/src/methods/layercontrol/index.js +4 -0
- package/src/methods/layercontrol/layer-list-change.js +23 -0
- package/src/methods/optional-list/add-to-list.js +44 -0
- package/src/methods/optional-list/index.js +3 -0
- package/types/layercontrol/src/components/add-layers.d.ts +80 -0
- package/types/layercontrol/src/components/add-layers.d.ts.map +1 -0
- package/types/layercontrol/src/components/layer-config.d.ts +82 -0
- package/types/layercontrol/src/components/layer-config.d.ts.map +1 -0
- package/types/layercontrol/src/components/layer-datetime.d.ts +66 -0
- package/types/layercontrol/src/components/layer-datetime.d.ts.map +1 -0
- package/types/layercontrol/src/components/layer-group.d.ts +103 -0
- package/types/layercontrol/src/components/layer-group.d.ts.map +1 -0
- package/types/layercontrol/src/components/layer-legend.d.ts +83 -0
- package/types/layercontrol/src/components/layer-legend.d.ts.map +1 -0
- package/types/layercontrol/src/components/layer-list.d.ts +108 -0
- package/types/layercontrol/src/components/layer-list.d.ts.map +1 -0
- package/types/layercontrol/src/components/layer-tools.d.ts +72 -0
- package/types/layercontrol/src/components/layer-tools.d.ts.map +1 -0
- package/types/layercontrol/src/components/layer.d.ts +108 -0
- package/types/layercontrol/src/components/layer.d.ts.map +1 -0
- package/types/layercontrol/src/components/optional-list.d.ts +68 -0
- package/types/layercontrol/src/components/optional-list.d.ts.map +1 -0
- package/types/layercontrol/src/components/tab-sliders.d.ts +1 -0
- package/types/layercontrol/src/components/tab-sliders.d.ts.map +1 -0
- package/types/layercontrol/src/components/tools-items.d.ts +61 -0
- package/types/layercontrol/src/components/tools-items.d.ts.map +1 -0
- package/types/layercontrol/src/enums/index.d.ts +2 -0
- package/types/layercontrol/src/enums/index.d.ts.map +1 -0
- package/types/layercontrol/src/enums/stories/index.d.ts +549 -0
- package/types/layercontrol/src/enums/stories/index.d.ts.map +1 -0
- package/types/layercontrol/src/helpers/check-properties.d.ts +11 -0
- package/types/layercontrol/src/helpers/check-properties.d.ts.map +1 -0
- package/types/layercontrol/src/helpers/clean-json-input.d.ts +8 -0
- package/types/layercontrol/src/helpers/clean-json-input.d.ts.map +1 -0
- package/types/layercontrol/src/helpers/create-sortable.d.ts +11 -0
- package/types/layercontrol/src/helpers/create-sortable.d.ts.map +1 -0
- package/types/layercontrol/src/helpers/detect-map-url-type.d.ts +8 -0
- package/types/layercontrol/src/helpers/detect-map-url-type.d.ts.map +1 -0
- package/types/layercontrol/src/helpers/fetch-capabilities.d.ts +10 -0
- package/types/layercontrol/src/helpers/fetch-capabilities.d.ts.map +1 -0
- package/types/layercontrol/src/helpers/filter-layers.d.ts +10 -0
- package/types/layercontrol/src/helpers/filter-layers.d.ts.map +1 -0
- package/types/layercontrol/src/helpers/get-layer-type.d.ts +9 -0
- package/types/layercontrol/src/helpers/get-layer-type.d.ts.map +1 -0
- package/types/layercontrol/src/helpers/get-legend-config.d.ts +20 -0
- package/types/layercontrol/src/helpers/get-legend-config.d.ts.map +1 -0
- package/types/layercontrol/src/helpers/get-start-vals.d.ts +21 -0
- package/types/layercontrol/src/helpers/get-start-vals.d.ts.map +1 -0
- package/types/layercontrol/src/helpers/hide-layers-based-on-property.d.ts +2 -0
- package/types/layercontrol/src/helpers/hide-layers-based-on-property.d.ts.map +1 -0
- package/types/layercontrol/src/helpers/index.d.ts +17 -0
- package/types/layercontrol/src/helpers/index.d.ts.map +1 -0
- package/types/layercontrol/src/helpers/is-layer-json-valid.d.ts +7 -0
- package/types/layercontrol/src/helpers/is-layer-json-valid.d.ts.map +1 -0
- package/types/layercontrol/src/helpers/is-layer-visible-based-on-zoom-state.d.ts +11 -0
- package/types/layercontrol/src/helpers/is-layer-visible-based-on-zoom-state.d.ts.map +1 -0
- package/types/layercontrol/src/helpers/is-layer-zoom-state-req.d.ts +9 -0
- package/types/layercontrol/src/helpers/is-layer-zoom-state-req.d.ts.map +1 -0
- package/types/layercontrol/src/helpers/is-map-url-valid.d.ts +8 -0
- package/types/layercontrol/src/helpers/is-map-url-valid.d.ts.map +1 -0
- package/types/layercontrol/src/helpers/layer-tools.d.ts +6 -0
- package/types/layercontrol/src/helpers/layer-tools.d.ts.map +1 -0
- package/types/layercontrol/src/helpers/update-url.d.ts +9 -0
- package/types/layercontrol/src/helpers/update-url.d.ts.map +1 -0
- package/types/layercontrol/src/main.d.ts +149 -0
- package/types/layercontrol/src/main.d.ts.map +1 -0
- package/types/layercontrol/src/methods/add-layer/add-layer.d.ts +10 -0
- package/types/layercontrol/src/methods/add-layer/add-layer.d.ts.map +1 -0
- package/types/layercontrol/src/methods/add-layer/index.d.ts +7 -0
- package/types/layercontrol/src/methods/add-layer/index.d.ts.map +1 -0
- package/types/layercontrol/src/methods/add-layer/json-input-change.d.ts +13 -0
- package/types/layercontrol/src/methods/add-layer/json-input-change.d.ts.map +1 -0
- package/types/layercontrol/src/methods/add-layer/open-close-tab.d.ts +10 -0
- package/types/layercontrol/src/methods/add-layer/open-close-tab.d.ts.map +1 -0
- package/types/layercontrol/src/methods/add-layer/url-input-change.d.ts +10 -0
- package/types/layercontrol/src/methods/add-layer/url-input-change.d.ts.map +1 -0
- package/types/layercontrol/src/methods/add-layer/url-layer.d.ts +12 -0
- package/types/layercontrol/src/methods/add-layer/url-layer.d.ts.map +1 -0
- package/types/layercontrol/src/methods/add-layer/wms-search-url.d.ts +11 -0
- package/types/layercontrol/src/methods/add-layer/wms-search-url.d.ts.map +1 -0
- package/types/layercontrol/src/methods/layer/first-updated.d.ts +9 -0
- package/types/layercontrol/src/methods/layer/first-updated.d.ts.map +1 -0
- package/types/layercontrol/src/methods/layer/index.d.ts +3 -0
- package/types/layercontrol/src/methods/layer/index.d.ts.map +1 -0
- package/types/layercontrol/src/methods/layer/input-click.d.ts +13 -0
- package/types/layercontrol/src/methods/layer/input-click.d.ts.map +1 -0
- package/types/layercontrol/src/methods/layer-config/apply-updated-styles.d.ts +8 -0
- package/types/layercontrol/src/methods/layer-config/apply-updated-styles.d.ts.map +1 -0
- package/types/layercontrol/src/methods/layer-config/data-change.d.ts +14 -0
- package/types/layercontrol/src/methods/layer-config/data-change.d.ts.map +1 -0
- package/types/layercontrol/src/methods/layer-config/index.d.ts +3 -0
- package/types/layercontrol/src/methods/layer-config/index.d.ts.map +1 -0
- package/types/layercontrol/src/methods/layer-list/first-updated.d.ts +9 -0
- package/types/layercontrol/src/methods/layer-list/first-updated.d.ts.map +1 -0
- package/types/layercontrol/src/methods/layer-list/index.d.ts +2 -0
- package/types/layercontrol/src/methods/layer-list/index.d.ts.map +1 -0
- package/types/layercontrol/src/methods/layercontrol/first-update.d.ts +10 -0
- package/types/layercontrol/src/methods/layercontrol/first-update.d.ts.map +1 -0
- package/types/layercontrol/src/methods/layercontrol/index.d.ts +3 -0
- package/types/layercontrol/src/methods/layercontrol/index.d.ts.map +1 -0
- package/types/layercontrol/src/methods/layercontrol/layer-list-change.d.ts +11 -0
- package/types/layercontrol/src/methods/layercontrol/layer-list-change.d.ts.map +1 -0
- package/types/layercontrol/src/methods/optional-list/add-to-list.d.ts +8 -0
- package/types/layercontrol/src/methods/optional-list/add-to-list.d.ts.map +1 -0
- package/types/layercontrol/src/methods/optional-list/index.d.ts +2 -0
- package/types/layercontrol/src/methods/optional-list/index.d.ts.map +1 -0
- package/types/map/src/components/compare.d.ts +31 -0
- package/types/map/src/components/compare.d.ts.map +1 -0
- package/types/map/src/components/tooltip.d.ts +36 -0
- package/types/map/src/components/tooltip.d.ts.map +1 -0
- package/types/map/src/controls/controls.d.ts +27 -0
- package/types/map/src/controls/controls.d.ts.map +1 -0
- package/types/map/src/controls/geo-location.d.ts +41 -0
- package/types/map/src/controls/geo-location.d.ts.map +1 -0
- package/types/map/src/controls/loading-indicator.d.ts +20 -0
- package/types/map/src/controls/loading-indicator.d.ts.map +1 -0
- package/types/map/src/enums/index.d.ts +2 -0
- package/types/map/src/enums/index.d.ts.map +1 -0
- package/types/map/src/enums/map.d.ts +5 -0
- package/types/map/src/enums/map.d.ts.map +1 -0
- package/types/map/src/helpers/add-new-feature.d.ts +14 -0
- package/types/map/src/helpers/add-new-feature.d.ts.map +1 -0
- package/types/map/src/helpers/cancel-animation.d.ts +7 -0
- package/types/map/src/helpers/cancel-animation.d.ts.map +1 -0
- package/types/map/src/helpers/center.d.ts +12 -0
- package/types/map/src/helpers/center.d.ts.map +1 -0
- package/types/map/src/helpers/coordinates-roughly-equals.d.ts +12 -0
- package/types/map/src/helpers/coordinates-roughly-equals.d.ts.map +1 -0
- package/types/map/src/helpers/draw.d.ts +22 -0
- package/types/map/src/helpers/draw.d.ts.map +1 -0
- package/types/map/src/helpers/generate.d.ts +30 -0
- package/types/map/src/helpers/generate.d.ts.map +1 -0
- package/types/map/src/helpers/index.d.ts +16 -0
- package/types/map/src/helpers/index.d.ts.map +1 -0
- package/types/map/src/helpers/interactions.d.ts +16 -0
- package/types/map/src/helpers/interactions.d.ts.map +1 -0
- package/types/map/src/helpers/layer.d.ts +24 -0
- package/types/map/src/helpers/layer.d.ts.map +1 -0
- package/types/map/src/helpers/parse-feature.d.ts +8 -0
- package/types/map/src/helpers/parse-feature.d.ts.map +1 -0
- package/types/map/src/helpers/parse-text.d.ts +33 -0
- package/types/map/src/helpers/parse-text.d.ts.map +1 -0
- package/types/map/src/helpers/register-projection-from-code.d.ts +8 -0
- package/types/map/src/helpers/register-projection-from-code.d.ts.map +1 -0
- package/types/map/src/helpers/register-projection.d.ts +11 -0
- package/types/map/src/helpers/register-projection.d.ts.map +1 -0
- package/types/map/src/helpers/select.d.ts +77 -0
- package/types/map/src/helpers/select.d.ts.map +1 -0
- package/types/map/src/helpers/tile-grid.d.ts +14 -0
- package/types/map/src/helpers/tile-grid.d.ts.map +1 -0
- package/types/map/src/helpers/transform.d.ts +19 -0
- package/types/map/src/helpers/transform.d.ts.map +1 -0
- package/types/map/src/main.d.ts +337 -0
- package/types/map/src/main.d.ts.map +1 -0
- package/types/map/src/methods/map/add-update-layer.d.ts +13 -0
- package/types/map/src/methods/map/add-update-layer.d.ts.map +1 -0
- package/types/map/src/methods/map/animate-to-state.d.ts +7 -0
- package/types/map/src/methods/map/animate-to-state.d.ts.map +1 -0
- package/types/map/src/methods/map/first-updated.d.ts +9 -0
- package/types/map/src/methods/map/first-updated.d.ts.map +1 -0
- package/types/map/src/methods/map/getters.d.ts +15 -0
- package/types/map/src/methods/map/getters.d.ts.map +1 -0
- package/types/map/src/methods/map/index.d.ts +7 -0
- package/types/map/src/methods/map/index.d.ts.map +1 -0
- package/types/map/src/methods/map/remove.d.ts +22 -0
- package/types/map/src/methods/map/remove.d.ts.map +1 -0
- package/types/map/src/methods/map/setters.d.ts +82 -0
- package/types/map/src/methods/map/setters.d.ts.map +1 -0
- package/types/map/types.d.ts +146 -0
- package/types/map/types.d.ts.map +1 -0
- package/test/_mockMap.js +0 -154
- package/test/cases/general/check-layer-legend.js +0 -67
- package/test/cases/general/check-layer-size.js +0 -25
- package/test/cases/general/check-pre-open-layer-tools.js +0 -26
- package/test/cases/general/check-pre-open-section.js +0 -29
- package/test/cases/general/disable-drag.js +0 -26
- package/test/cases/general/empty-groups.js +0 -41
- package/test/cases/general/exclusive-layers.js +0 -35
- package/test/cases/general/hide-layers.js +0 -23
- package/test/cases/general/index.js +0 -10
- package/test/cases/general/render-optional-layer.js +0 -31
- package/test/cases/general/show-layer-title.js +0 -23
- package/test/cases/layer-update/add-external-layer.js +0 -96
- package/test/cases/layer-update/add-layer-from-optional.js +0 -51
- package/test/cases/layer-update/check-if-layer-pushed-to-group.js +0 -33
- package/test/cases/layer-update/check-layer-changed-event.js +0 -29
- package/test/cases/layer-update/check-layer-is-pushed-to-root.js +0 -22
- package/test/cases/layer-update/check-layer-removed-from-group.js +0 -33
- package/test/cases/layer-update/check-layer-removed-from-root.js +0 -27
- package/test/cases/layer-update/check-layer-size-after-multiple-calls.js +0 -34
- package/test/cases/layer-update/check-layer-zoom-state.js +0 -54
- package/test/cases/layer-update/index.js +0 -9
- package/test/general.cy.js +0 -61
- package/test/layersUpdate.cy.js +0 -72
package/dist/eox-layercontrol.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
var
|
|
1
|
+
var Yo = Object.defineProperty;
|
|
2
2
|
var si = (e) => {
|
|
3
3
|
throw TypeError(e);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var I = (e, t, n) =>
|
|
7
|
-
var S = (e, t, n) => (yn(e, t, "read from private field"), n ? n.call(e) : t.get(e)),
|
|
5
|
+
var Wo = (e, t, n) => t in e ? Yo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
6
|
+
var I = (e, t, n) => Wo(e, typeof t != "symbol" ? t + "" : t, n), yn = (e, t, n) => t.has(e) || si("Cannot " + n);
|
|
7
|
+
var S = (e, t, n) => (yn(e, t, "read from private field"), n ? n.call(e) : t.get(e)), C = (e, t, n) => t.has(e) ? si("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), kt = (e, t, n, i) => (yn(e, t, "write to private field"), i ? i.call(e, n) : t.set(e, n), n), V = (e, t, n) => (yn(e, t, "access private method"), n);
|
|
8
8
|
/**
|
|
9
9
|
* @license
|
|
10
10
|
* Copyright 2019 Google LLC
|
|
11
11
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
12
12
|
*/
|
|
13
|
-
const
|
|
13
|
+
const De = globalThis, zn = De.ShadowRoot && (De.ShadyCSS === void 0 || De.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Xn = Symbol(), ai = /* @__PURE__ */ new WeakMap();
|
|
14
14
|
let Ni = class {
|
|
15
15
|
constructor(t, n, i) {
|
|
16
16
|
if (this._$cssResult$ = !0, i !== Xn) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
@@ -29,33 +29,33 @@ let Ni = class {
|
|
|
29
29
|
return this.cssText;
|
|
30
30
|
}
|
|
31
31
|
};
|
|
32
|
-
const
|
|
32
|
+
const Go = (e) => new Ni(typeof e == "string" ? e : e + "", void 0, Xn), Hi = (e, ...t) => {
|
|
33
33
|
const n = e.length === 1 ? e[0] : t.reduce((i, o, r) => i + ((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
38
|
return new Ni(n, e, Xn);
|
|
39
|
-
},
|
|
39
|
+
}, Jo = (e, t) => {
|
|
40
40
|
if (zn) e.adoptedStyleSheets = t.map((n) => n instanceof CSSStyleSheet ? n : n.styleSheet);
|
|
41
41
|
else for (const n of t) {
|
|
42
|
-
const i = document.createElement("style"), o =
|
|
42
|
+
const i = document.createElement("style"), o = De.litNonce;
|
|
43
43
|
o !== void 0 && i.setAttribute("nonce", o), i.textContent = n.cssText, e.appendChild(i);
|
|
44
44
|
}
|
|
45
45
|
}, li = zn ? (e) => e : (e) => e instanceof CSSStyleSheet ? ((t) => {
|
|
46
46
|
let n = "";
|
|
47
47
|
for (const i of t.cssRules) n += i.cssText;
|
|
48
|
-
return
|
|
48
|
+
return Go(n);
|
|
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:
|
|
55
|
+
const { is: Ko, defineProperty: Qo, getOwnPropertyDescriptor: tr, getOwnPropertyNames: er, getOwnPropertySymbols: nr, getPrototypeOf: ir } = Object, Tt = globalThis, ui = Tt.trustedTypes, or = ui ? ui.emptyScript : "", bn = Tt.reactiveElementPolyfillSupport, ae = (e, t) => e, Nn = { toAttribute(e, t) {
|
|
56
56
|
switch (t) {
|
|
57
57
|
case Boolean:
|
|
58
|
-
e = e ?
|
|
58
|
+
e = e ? or : null;
|
|
59
59
|
break;
|
|
60
60
|
case Object:
|
|
61
61
|
case Array:
|
|
@@ -80,7 +80,7 @@ const { is: Qo, defineProperty: tr, getOwnPropertyDescriptor: er, getOwnProperty
|
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
return n;
|
|
83
|
-
} }, Vi = (e, t) => !
|
|
83
|
+
} }, Vi = (e, t) => !Ko(e, t), di = { attribute: !0, type: String, converter: Nn, reflect: !1, hasChanged: Vi };
|
|
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) {
|
|
@@ -92,11 +92,11 @@ class jt extends HTMLElement {
|
|
|
92
92
|
static createProperty(t, n = di) {
|
|
93
93
|
if (n.state && (n.attribute = !1), this._$Ei(), this.elementProperties.set(t, n), !n.noAccessor) {
|
|
94
94
|
const i = Symbol(), o = this.getPropertyDescriptor(t, i, n);
|
|
95
|
-
o !== void 0 &&
|
|
95
|
+
o !== void 0 && Qo(this.prototype, t, o);
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
static getPropertyDescriptor(t, n, i) {
|
|
99
|
-
const { get: o, set: r } =
|
|
99
|
+
const { get: o, set: r } = tr(this.prototype, t) ?? { get() {
|
|
100
100
|
return this[n];
|
|
101
101
|
}, set(s) {
|
|
102
102
|
this[n] = s;
|
|
@@ -112,14 +112,14 @@ class jt extends HTMLElement {
|
|
|
112
112
|
return this.elementProperties.get(t) ?? di;
|
|
113
113
|
}
|
|
114
114
|
static _$Ei() {
|
|
115
|
-
if (this.hasOwnProperty(
|
|
116
|
-
const t =
|
|
115
|
+
if (this.hasOwnProperty(ae("elementProperties"))) return;
|
|
116
|
+
const t = ir(this);
|
|
117
117
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
118
118
|
}
|
|
119
119
|
static finalize() {
|
|
120
|
-
if (this.hasOwnProperty(
|
|
121
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(
|
|
122
|
-
const n = this.properties, i = [...
|
|
120
|
+
if (this.hasOwnProperty(ae("finalized"))) return;
|
|
121
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(ae("properties"))) {
|
|
122
|
+
const n = this.properties, i = [...er(n), ...nr(n)];
|
|
123
123
|
for (const o of i) this.createProperty(o, n[o]);
|
|
124
124
|
}
|
|
125
125
|
const t = this[Symbol.metadata];
|
|
@@ -168,7 +168,7 @@ class jt extends HTMLElement {
|
|
|
168
168
|
}
|
|
169
169
|
createRenderRoot() {
|
|
170
170
|
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
171
|
-
return
|
|
171
|
+
return Jo(t, this.constructor.elementStyles), t;
|
|
172
172
|
}
|
|
173
173
|
connectedCallback() {
|
|
174
174
|
var t;
|
|
@@ -280,38 +280,38 @@ class jt extends HTMLElement {
|
|
|
280
280
|
firstUpdated(t) {
|
|
281
281
|
}
|
|
282
282
|
}
|
|
283
|
-
jt.elementStyles = [], jt.shadowRootOptions = { mode: "open" }, jt[
|
|
283
|
+
jt.elementStyles = [], jt.shadowRootOptions = { mode: "open" }, jt[ae("elementProperties")] = /* @__PURE__ */ new Map(), jt[ae("finalized")] = /* @__PURE__ */ new Map(), bn == null || bn({ 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
|
|
290
|
-
\f\r]`,
|
|
291
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), fi = /'/g, gi = /"/g, ki = /^(?:script|style|textarea|title)$/i,
|
|
289
|
+
const le = globalThis, Be = le.trustedTypes, ci = Be ? Be.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, qn = "$lit$", ft = `lit$${Math.random().toFixed(9).slice(2)}$`, Yn = "?" + ft, rr = `<${Yn}>`, Vt = document, fe = () => Vt.createComment(""), ge = (e) => e === null || typeof e != "object" && typeof e != "function", Wn = Array.isArray, Bi = (e) => Wn(e) || typeof (e == null ? void 0 : e[Symbol.iterator]) == "function", vn = `[
|
|
290
|
+
\f\r]`, ne = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, hi = /-->/g, pi = />/g, Ot = RegExp(`>|${vn}(?:([^\\s"'>=/]+)(${vn}*=${vn}*(?:[^
|
|
291
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), fi = /'/g, gi = /"/g, ki = /^(?:script|style|textarea|title)$/i, sr = (e) => (t, ...n) => ({ _$litType$: e, strings: t, values: n }), $ = sr(1), at = Symbol.for("lit-noChange"), P = Symbol.for("lit-nothing"), mi = /* @__PURE__ */ new WeakMap(), Nt = Vt.createTreeWalker(Vt, 129);
|
|
292
292
|
function Ui(e, t) {
|
|
293
293
|
if (!Wn(e) || !e.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
294
294
|
return ci !== void 0 ? ci.createHTML(t) : t;
|
|
295
295
|
}
|
|
296
296
|
const Fi = (e, t) => {
|
|
297
297
|
const n = e.length - 1, i = [];
|
|
298
|
-
let o, r = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", s =
|
|
298
|
+
let o, r = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", s = ne;
|
|
299
299
|
for (let a = 0; a < n; a++) {
|
|
300
300
|
const l = e[a];
|
|
301
301
|
let u, c, d = -1, p = 0;
|
|
302
|
-
for (; p < l.length && (s.lastIndex = p, c = s.exec(l), c !== null); ) p = s.lastIndex, s ===
|
|
303
|
-
const f = s ===
|
|
304
|
-
r += s ===
|
|
302
|
+
for (; p < l.length && (s.lastIndex = p, c = s.exec(l), c !== null); ) p = s.lastIndex, s === ne ? c[1] === "!--" ? s = hi : c[1] !== void 0 ? s = pi : c[2] !== void 0 ? (ki.test(c[2]) && (o = RegExp("</" + c[2], "g")), s = Ot) : c[3] !== void 0 && (s = Ot) : s === Ot ? c[0] === ">" ? (s = o ?? ne, d = -1) : c[1] === void 0 ? d = -2 : (d = s.lastIndex - c[2].length, u = c[1], s = c[3] === void 0 ? Ot : c[3] === '"' ? gi : fi) : s === gi || s === fi ? s = Ot : s === hi || s === pi ? s = ne : (s = Ot, o = void 0);
|
|
303
|
+
const f = s === Ot && e[a + 1].startsWith("/>") ? " " : "";
|
|
304
|
+
r += s === ne ? l + rr : d >= 0 ? (i.push(u), l.slice(0, d) + qn + l.slice(d) + ft + f) : l + ft + (d === -2 ? a : f);
|
|
305
305
|
}
|
|
306
306
|
return [Ui(e, r + (e[n] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), i];
|
|
307
307
|
};
|
|
308
|
-
class
|
|
308
|
+
class me {
|
|
309
309
|
constructor({ strings: t, _$litType$: n }, i) {
|
|
310
310
|
let o;
|
|
311
311
|
this.parts = [];
|
|
312
312
|
let r = 0, s = 0;
|
|
313
313
|
const a = t.length - 1, l = this.parts, [u, c] = Fi(t, n);
|
|
314
|
-
if (this.el =
|
|
314
|
+
if (this.el = me.createElement(u, i), Nt.currentNode = this.el.content, n === 2 || n === 3) {
|
|
315
315
|
const d = this.el.content.firstChild;
|
|
316
316
|
d.replaceWith(...d.childNodes);
|
|
317
317
|
}
|
|
@@ -319,14 +319,14 @@ class ge {
|
|
|
319
319
|
if (o.nodeType === 1) {
|
|
320
320
|
if (o.hasAttributes()) for (const d of o.getAttributeNames()) if (d.endsWith(qn)) {
|
|
321
321
|
const p = c[s++], f = o.getAttribute(d).split(ft), g = /([.?@])?(.*)/.exec(p);
|
|
322
|
-
l.push({ type: 1, index: r, name: g[2], strings: f, ctor: g[1] === "." ?
|
|
322
|
+
l.push({ type: 1, index: r, name: g[2], strings: f, ctor: g[1] === "." ? Zi : g[1] === "?" ? zi : g[1] === "@" ? Xi : $e }), o.removeAttribute(d);
|
|
323
323
|
} else d.startsWith(ft) && (l.push({ type: 6, index: r }), o.removeAttribute(d));
|
|
324
324
|
if (ki.test(o.tagName)) {
|
|
325
325
|
const d = o.textContent.split(ft), p = d.length - 1;
|
|
326
326
|
if (p > 0) {
|
|
327
|
-
o.textContent =
|
|
328
|
-
for (let f = 0; f < p; f++) o.append(d[f],
|
|
329
|
-
o.append(d[p],
|
|
327
|
+
o.textContent = Be ? Be.emptyScript : "";
|
|
328
|
+
for (let f = 0; f < p; f++) o.append(d[f], fe()), Nt.nextNode(), l.push({ type: 2, index: ++r });
|
|
329
|
+
o.append(d[p], fe());
|
|
330
330
|
}
|
|
331
331
|
}
|
|
332
332
|
} else if (o.nodeType === 8) if (o.data === Yn) l.push({ type: 2, index: r });
|
|
@@ -345,11 +345,11 @@ class ge {
|
|
|
345
345
|
function Bt(e, t, n = e, i) {
|
|
346
346
|
var s, a;
|
|
347
347
|
if (t === at) return t;
|
|
348
|
-
let o = i !== void 0 ? (s = n.
|
|
349
|
-
const r =
|
|
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, n, i)), i !== void 0 ? (n.
|
|
348
|
+
let o = i !== void 0 ? (s = n._$Co) == null ? void 0 : s[i] : n._$Cl;
|
|
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, n, i)), i !== void 0 ? (n._$Co ?? (n._$Co = []))[i] = o : n._$Cl = o), o !== void 0 && (t = Bt(e, o._$AS(e, t.values), o, i)), t;
|
|
351
351
|
}
|
|
352
|
-
|
|
352
|
+
let ji = class {
|
|
353
353
|
constructor(t, n) {
|
|
354
354
|
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = n;
|
|
355
355
|
}
|
|
@@ -366,7 +366,7 @@ class ji {
|
|
|
366
366
|
for (; l !== void 0; ) {
|
|
367
367
|
if (s === l.index) {
|
|
368
368
|
let u;
|
|
369
|
-
l.type === 2 ? u = new
|
|
369
|
+
l.type === 2 ? u = new Jt(r, r.nextSibling, this, t) : l.type === 1 ? u = new l.ctor(r, l.name, l.strings, this, t) : l.type === 6 && (u = new qi(r, this, t)), this._$AV.push(u), l = i[++a];
|
|
370
370
|
}
|
|
371
371
|
s !== (l == null ? void 0 : l.index) && (r = Nt.nextNode(), s++);
|
|
372
372
|
}
|
|
@@ -376,14 +376,14 @@ class ji {
|
|
|
376
376
|
let n = 0;
|
|
377
377
|
for (const i of this._$AV) i !== void 0 && (i.strings !== void 0 ? (i._$AI(t, i, n), n += i.strings.length - 2) : i._$AI(t[n])), n++;
|
|
378
378
|
}
|
|
379
|
-
}
|
|
380
|
-
|
|
379
|
+
};
|
|
380
|
+
class Jt {
|
|
381
381
|
get _$AU() {
|
|
382
382
|
var t;
|
|
383
|
-
return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this.
|
|
383
|
+
return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
|
|
384
384
|
}
|
|
385
385
|
constructor(t, n, i, o) {
|
|
386
|
-
this.type = 2, this._$AH = P, this._$AN = void 0, this._$AA = t, this._$AB = n, this._$AM = i, this.options = o, this.
|
|
386
|
+
this.type = 2, this._$AH = P, this._$AN = void 0, this._$AA = t, this._$AB = n, this._$AM = i, this.options = o, this._$Cv = (o == null ? void 0 : o.isConnected) ?? !0;
|
|
387
387
|
}
|
|
388
388
|
get parentNode() {
|
|
389
389
|
let t = this._$AA.parentNode;
|
|
@@ -397,7 +397,7 @@ let fn = class Zi {
|
|
|
397
397
|
return this._$AB;
|
|
398
398
|
}
|
|
399
399
|
_$AI(t, n = this) {
|
|
400
|
-
t = Bt(this, t, n),
|
|
400
|
+
t = Bt(this, t, n), 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) : Bi(t) ? this.k(t) : this._(t);
|
|
401
401
|
}
|
|
402
402
|
O(t) {
|
|
403
403
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
@@ -406,11 +406,11 @@ let fn = class Zi {
|
|
|
406
406
|
this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
|
|
407
407
|
}
|
|
408
408
|
_(t) {
|
|
409
|
-
this._$AH !== P &&
|
|
409
|
+
this._$AH !== P && ge(this._$AH) ? this._$AA.nextSibling.data = t : this.T(Vt.createTextNode(t)), this._$AH = t;
|
|
410
410
|
}
|
|
411
411
|
$(t) {
|
|
412
412
|
var r;
|
|
413
|
-
const { values: n, _$litType$: i } = t, o = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el =
|
|
413
|
+
const { values: n, _$litType$: i } = t, o = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = me.createElement(Ui(i.h, i.h[0]), this.options)), i);
|
|
414
414
|
if (((r = this._$AH) == null ? void 0 : r._$AD) === o) this._$AH.p(n);
|
|
415
415
|
else {
|
|
416
416
|
const s = new ji(o, this), a = s.u(this.options);
|
|
@@ -419,13 +419,13 @@ let fn = class Zi {
|
|
|
419
419
|
}
|
|
420
420
|
_$AC(t) {
|
|
421
421
|
let n = mi.get(t.strings);
|
|
422
|
-
return n === void 0 && mi.set(t.strings, n = new
|
|
422
|
+
return n === void 0 && mi.set(t.strings, n = new me(t)), n;
|
|
423
423
|
}
|
|
424
424
|
k(t) {
|
|
425
425
|
Wn(this._$AH) || (this._$AH = [], this._$AR());
|
|
426
426
|
const n = this._$AH;
|
|
427
427
|
let i, o = 0;
|
|
428
|
-
for (const r of t) o === n.length ? n.push(i = new
|
|
428
|
+
for (const r of t) o === n.length ? n.push(i = new Jt(this.O(fe()), this.O(fe()), this, this.options)) : i = n[o], i._$AI(r), o++;
|
|
429
429
|
o < n.length && (this._$AR(i && i._$AB.nextSibling, o), n.length = o);
|
|
430
430
|
}
|
|
431
431
|
_$AR(t = this._$AA.nextSibling, n) {
|
|
@@ -437,10 +437,10 @@ let fn = class Zi {
|
|
|
437
437
|
}
|
|
438
438
|
setConnected(t) {
|
|
439
439
|
var n;
|
|
440
|
-
this._$AM === void 0 && (this.
|
|
440
|
+
this._$AM === void 0 && (this._$Cv = t, (n = this._$AP) == null || n.call(this, t));
|
|
441
441
|
}
|
|
442
|
-
}
|
|
443
|
-
class
|
|
442
|
+
}
|
|
443
|
+
class $e {
|
|
444
444
|
get tagName() {
|
|
445
445
|
return this.element.tagName;
|
|
446
446
|
}
|
|
@@ -453,11 +453,11 @@ class we {
|
|
|
453
453
|
_$AI(t, n = this, i, o) {
|
|
454
454
|
const r = this.strings;
|
|
455
455
|
let s = !1;
|
|
456
|
-
if (r === void 0) t = Bt(this, t, n, 0), s = !
|
|
456
|
+
if (r === void 0) t = Bt(this, t, n, 0), s = !ge(t) || t !== this._$AH && t !== at, s && (this._$AH = t);
|
|
457
457
|
else {
|
|
458
458
|
const a = t;
|
|
459
459
|
let l, u;
|
|
460
|
-
for (t = r[0], l = 0; l < r.length - 1; l++) u = Bt(this, a[i + l], n, l), u === at && (u = this._$AH[l]), s || (s = !
|
|
460
|
+
for (t = r[0], l = 0; l < r.length - 1; l++) u = Bt(this, a[i + l], n, l), u === at && (u = this._$AH[l]), s || (s = !ge(u) || u !== this._$AH[l]), u === P ? t = P : t !== P && (t += (u ?? "") + r[l + 1]), this._$AH[l] = u;
|
|
461
461
|
}
|
|
462
462
|
s && !o && this.j(t);
|
|
463
463
|
}
|
|
@@ -465,7 +465,7 @@ class we {
|
|
|
465
465
|
t === P ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
466
466
|
}
|
|
467
467
|
}
|
|
468
|
-
class
|
|
468
|
+
class Zi extends $e {
|
|
469
469
|
constructor() {
|
|
470
470
|
super(...arguments), this.type = 3;
|
|
471
471
|
}
|
|
@@ -473,7 +473,7 @@ class zi extends we {
|
|
|
473
473
|
this.element[this.name] = t === P ? void 0 : t;
|
|
474
474
|
}
|
|
475
475
|
}
|
|
476
|
-
class
|
|
476
|
+
class zi extends $e {
|
|
477
477
|
constructor() {
|
|
478
478
|
super(...arguments), this.type = 4;
|
|
479
479
|
}
|
|
@@ -481,7 +481,7 @@ class Xi extends we {
|
|
|
481
481
|
this.element.toggleAttribute(this.name, !!t && t !== P);
|
|
482
482
|
}
|
|
483
483
|
}
|
|
484
|
-
class
|
|
484
|
+
class Xi extends $e {
|
|
485
485
|
constructor(t, n, i, o, r) {
|
|
486
486
|
super(t, n, i, o, r), this.type = 5;
|
|
487
487
|
}
|
|
@@ -495,7 +495,7 @@ class qi extends we {
|
|
|
495
495
|
typeof this._$AH == "function" ? this._$AH.call(((n = this.options) == null ? void 0 : n.host) ?? this.element, t) : this._$AH.handleEvent(t);
|
|
496
496
|
}
|
|
497
497
|
}
|
|
498
|
-
class
|
|
498
|
+
class qi {
|
|
499
499
|
constructor(t, n, i) {
|
|
500
500
|
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = n, this.options = i;
|
|
501
501
|
}
|
|
@@ -506,14 +506,14 @@ class Yi {
|
|
|
506
506
|
Bt(this, t);
|
|
507
507
|
}
|
|
508
508
|
}
|
|
509
|
-
const
|
|
510
|
-
wn == null || wn(
|
|
511
|
-
const
|
|
509
|
+
const ar = { M: qn, P: ft, A: Yn, C: 1, L: Fi, R: ji, D: Bi, V: Bt, I: Jt, H: $e, N: zi, U: Xi, B: Zi, F: qi }, wn = le.litHtmlPolyfillSupport;
|
|
510
|
+
wn == null || wn(me, Jt), (le.litHtmlVersions ?? (le.litHtmlVersions = [])).push("3.2.1");
|
|
511
|
+
const lr = (e, t, n) => {
|
|
512
512
|
const i = (n == null ? void 0 : n.renderBefore) ?? t;
|
|
513
513
|
let o = i._$litPart$;
|
|
514
514
|
if (o === void 0) {
|
|
515
515
|
const r = (n == null ? void 0 : n.renderBefore) ?? null;
|
|
516
|
-
i._$litPart$ = o = new
|
|
516
|
+
i._$litPart$ = o = new Jt(t.insertBefore(fe(), r), r, void 0, n ?? {});
|
|
517
517
|
}
|
|
518
518
|
return o._$AI(e), o;
|
|
519
519
|
};
|
|
@@ -522,9 +522,9 @@ const ur = (e, t, n) => {
|
|
|
522
522
|
* Copyright 2017 Google LLC
|
|
523
523
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
524
524
|
*/
|
|
525
|
-
|
|
525
|
+
let tt = class extends jt {
|
|
526
526
|
constructor() {
|
|
527
|
-
super(...arguments), this.renderOptions = { host: this }, this.
|
|
527
|
+
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
528
528
|
}
|
|
529
529
|
createRenderRoot() {
|
|
530
530
|
var n;
|
|
@@ -533,25 +533,25 @@ class tt extends jt {
|
|
|
533
533
|
}
|
|
534
534
|
update(t) {
|
|
535
535
|
const n = this.render();
|
|
536
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this.
|
|
536
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = lr(n, this.renderRoot, this.renderOptions);
|
|
537
537
|
}
|
|
538
538
|
connectedCallback() {
|
|
539
539
|
var t;
|
|
540
|
-
super.connectedCallback(), (t = this.
|
|
540
|
+
super.connectedCallback(), (t = this._$Do) == null || t.setConnected(!0);
|
|
541
541
|
}
|
|
542
542
|
disconnectedCallback() {
|
|
543
543
|
var t;
|
|
544
|
-
super.disconnectedCallback(), (t = this.
|
|
544
|
+
super.disconnectedCallback(), (t = this._$Do) == null || t.setConnected(!1);
|
|
545
545
|
}
|
|
546
546
|
render() {
|
|
547
547
|
return at;
|
|
548
548
|
}
|
|
549
|
-
}
|
|
549
|
+
};
|
|
550
550
|
var Ii;
|
|
551
551
|
tt._$litElement$ = !0, tt.finalized = !0, (Ii = globalThis.litElementHydrateSupport) == null || Ii.call(globalThis, { LitElement: tt });
|
|
552
|
-
const
|
|
553
|
-
|
|
554
|
-
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.1.
|
|
552
|
+
const $n = globalThis.litElementPolyfillSupport;
|
|
553
|
+
$n == null || $n({ LitElement: tt });
|
|
554
|
+
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.1.1");
|
|
555
555
|
/**
|
|
556
556
|
* @license
|
|
557
557
|
* Copyright 2021 Google LLC
|
|
@@ -565,7 +565,7 @@ function F(e, t, n) {
|
|
|
565
565
|
* Copyright 2017 Google LLC
|
|
566
566
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
567
567
|
*/
|
|
568
|
-
const
|
|
568
|
+
const xt = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, Gn = (e) => (...t) => ({ _$litDirective$: e, values: t });
|
|
569
569
|
class Jn {
|
|
570
570
|
constructor(t) {
|
|
571
571
|
}
|
|
@@ -573,7 +573,7 @@ class Jn {
|
|
|
573
573
|
return this._$AM._$AU;
|
|
574
574
|
}
|
|
575
575
|
_$AT(t, n, i) {
|
|
576
|
-
this.
|
|
576
|
+
this._$Ct = t, this._$AM = n, this._$Ci = i;
|
|
577
577
|
}
|
|
578
578
|
_$AS(t, n) {
|
|
579
579
|
return this.update(t, n);
|
|
@@ -587,12 +587,12 @@ class Jn {
|
|
|
587
587
|
* Copyright 2020 Google LLC
|
|
588
588
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
589
589
|
*/
|
|
590
|
-
const { I:
|
|
590
|
+
const { I: ur } = ar, dr = (e) => e.strings === void 0, yi = () => document.createComment(""), ie = (e, t, n) => {
|
|
591
591
|
var r;
|
|
592
592
|
const i = e._$AA.parentNode, o = t === void 0 ? e._$AB : t._$AA;
|
|
593
593
|
if (n === void 0) {
|
|
594
594
|
const s = i.insertBefore(yi(), o), a = i.insertBefore(yi(), o);
|
|
595
|
-
n = new
|
|
595
|
+
n = new ur(s, a, e, e.options);
|
|
596
596
|
} else {
|
|
597
597
|
const s = n._$AB.nextSibling, a = n._$AM, l = a !== e;
|
|
598
598
|
if (l) {
|
|
@@ -608,7 +608,7 @@ const { I: dr } = lr, cr = (e) => e.strings === void 0, yi = () => document.crea
|
|
|
608
608
|
}
|
|
609
609
|
}
|
|
610
610
|
return n;
|
|
611
|
-
}, Rt = (e, t, n = e) => (e._$AI(t, n), e),
|
|
611
|
+
}, Rt = (e, t, n = e) => (e._$AI(t, n), e), cr = {}, Yi = (e, t = cr) => e._$AH = t, hr = (e) => e._$AH, xn = (e) => {
|
|
612
612
|
var i;
|
|
613
613
|
(i = e._$AP) == null || i.call(e, !1, !0);
|
|
614
614
|
let t = e._$AA;
|
|
@@ -627,9 +627,9 @@ const bi = (e, t, n) => {
|
|
|
627
627
|
const i = /* @__PURE__ */ new Map();
|
|
628
628
|
for (let o = t; o <= n; o++) i.set(e[o], o);
|
|
629
629
|
return i;
|
|
630
|
-
},
|
|
630
|
+
}, pr = Gn(class extends Jn {
|
|
631
631
|
constructor(e) {
|
|
632
|
-
if (super(e), e.type !==
|
|
632
|
+
if (super(e), e.type !== xt.CHILD) throw Error("repeat() can only be used in text expressions");
|
|
633
633
|
}
|
|
634
634
|
dt(e, t, n) {
|
|
635
635
|
let i;
|
|
@@ -643,7 +643,7 @@ const bi = (e, t, n) => {
|
|
|
643
643
|
return this.dt(e, t, n).values;
|
|
644
644
|
}
|
|
645
645
|
update(e, [t, n, i]) {
|
|
646
|
-
const o =
|
|
646
|
+
const o = hr(e), { values: r, keys: s } = this.dt(t, n, i);
|
|
647
647
|
if (!Array.isArray(o)) return this.ut = s, r;
|
|
648
648
|
const a = this.ut ?? (this.ut = []), l = [];
|
|
649
649
|
let u, c, d = 0, p = o.length - 1, f = 0, g = r.length - 1;
|
|
@@ -651,26 +651,26 @@ const bi = (e, t, n) => {
|
|
|
651
651
|
else if (o[p] === null) p--;
|
|
652
652
|
else if (a[d] === s[f]) l[f] = Rt(o[d], r[f]), d++, f++;
|
|
653
653
|
else if (a[p] === s[g]) l[g] = Rt(o[p], r[g]), p--, g--;
|
|
654
|
-
else if (a[d] === s[g]) l[g] = Rt(o[d], r[g]),
|
|
655
|
-
else if (a[p] === s[f]) l[f] = Rt(o[p], r[f]),
|
|
654
|
+
else if (a[d] === s[g]) l[g] = Rt(o[d], r[g]), ie(e, l[g + 1], o[d]), d++, g--;
|
|
655
|
+
else if (a[p] === s[f]) l[f] = Rt(o[p], r[f]), ie(e, o[d], o[p]), p--, f++;
|
|
656
656
|
else if (u === void 0 && (u = bi(s, f, g), c = bi(a, d, p)), u.has(a[d])) if (u.has(a[p])) {
|
|
657
|
-
const y = c.get(s[f]),
|
|
658
|
-
if (
|
|
659
|
-
const M =
|
|
657
|
+
const y = c.get(s[f]), D = y !== void 0 ? o[y] : null;
|
|
658
|
+
if (D === null) {
|
|
659
|
+
const M = ie(e, o[d]);
|
|
660
660
|
Rt(M, r[f]), l[f] = M;
|
|
661
|
-
} else l[f] = Rt(
|
|
661
|
+
} else l[f] = Rt(D, r[f]), ie(e, o[d], D), o[y] = null;
|
|
662
662
|
f++;
|
|
663
|
-
} else
|
|
664
|
-
else
|
|
663
|
+
} else xn(o[p]), p--;
|
|
664
|
+
else xn(o[d]), d++;
|
|
665
665
|
for (; f <= g; ) {
|
|
666
|
-
const y =
|
|
666
|
+
const y = ie(e, l[g + 1]);
|
|
667
667
|
Rt(y, r[f]), l[f++] = y;
|
|
668
668
|
}
|
|
669
669
|
for (; d <= p; ) {
|
|
670
670
|
const y = o[d++];
|
|
671
|
-
y !== null &&
|
|
671
|
+
y !== null && xn(y);
|
|
672
672
|
}
|
|
673
|
-
return this.ut = s,
|
|
673
|
+
return this.ut = s, Yi(e, l), at;
|
|
674
674
|
}
|
|
675
675
|
});
|
|
676
676
|
/**
|
|
@@ -679,8 +679,8 @@ const bi = (e, t, n) => {
|
|
|
679
679
|
* @license BSD-2-Clause
|
|
680
680
|
* @preserve
|
|
681
681
|
*/
|
|
682
|
-
var
|
|
683
|
-
const
|
|
682
|
+
var E = (e) => e !== void 0, Wi = (e, t, n) => t in e ? e[t] : e[t] = n;
|
|
683
|
+
const ye = {
|
|
684
684
|
ELEMENT: 1,
|
|
685
685
|
ATTRIBUTE: 2,
|
|
686
686
|
TEXT: 3,
|
|
@@ -694,7 +694,7 @@ const me = {
|
|
|
694
694
|
DOCUMENT_FRAGMENT: 11,
|
|
695
695
|
NOTATION: 12
|
|
696
696
|
};
|
|
697
|
-
class
|
|
697
|
+
class fr {
|
|
698
698
|
/**
|
|
699
699
|
* XML DOM parser
|
|
700
700
|
* @constructor
|
|
@@ -723,52 +723,52 @@ class gr {
|
|
|
723
723
|
}
|
|
724
724
|
}
|
|
725
725
|
function gn(e, t) {
|
|
726
|
-
return
|
|
726
|
+
return Gi(e, t, []).join("");
|
|
727
727
|
}
|
|
728
|
-
function
|
|
729
|
-
if (e.nodeType ===
|
|
728
|
+
function Gi(e, t, n) {
|
|
729
|
+
if (e.nodeType === ye.CDATA_SECTION || e.nodeType === ye.TEXT)
|
|
730
730
|
t ? n.push(String(e.nodeValue).replace(/(\r\n|\r|\n)/g, "")) : n.push(e.nodeValue);
|
|
731
731
|
else {
|
|
732
732
|
var i;
|
|
733
733
|
for (i = e.firstChild; i; i = i.nextSibling)
|
|
734
|
-
|
|
734
|
+
Gi(i, t, n);
|
|
735
735
|
}
|
|
736
736
|
return n;
|
|
737
737
|
}
|
|
738
|
-
function
|
|
739
|
-
for (var o =
|
|
738
|
+
function gr(e, t, n, i) {
|
|
739
|
+
for (var o = mr(t); o; o = yr(o)) {
|
|
740
740
|
var r = o.namespaceURI || null, s = e[r];
|
|
741
|
-
if (
|
|
741
|
+
if (E(s)) {
|
|
742
742
|
var a = s[o.localName];
|
|
743
|
-
|
|
743
|
+
E(a) && a.call(i, o, n);
|
|
744
744
|
}
|
|
745
745
|
}
|
|
746
746
|
}
|
|
747
|
-
function
|
|
747
|
+
function mr(e) {
|
|
748
748
|
let t = e.firstElementChild || e.firstChild;
|
|
749
|
-
for (; t && t.nodeType !==
|
|
749
|
+
for (; t && t.nodeType !== ye.ELEMENT; )
|
|
750
750
|
t = t.nextSibling;
|
|
751
751
|
return t;
|
|
752
752
|
}
|
|
753
|
-
function
|
|
753
|
+
function yr(e) {
|
|
754
754
|
let t = e.nextElementSibling || e.nextSibling;
|
|
755
|
-
for (; t && t.nodeType !==
|
|
755
|
+
for (; t && t.nodeType !== ye.ELEMENT; )
|
|
756
756
|
t = t.nextSibling;
|
|
757
757
|
return t;
|
|
758
758
|
}
|
|
759
759
|
function Y(e, t, n) {
|
|
760
760
|
return (
|
|
761
761
|
/** @type {Object.<string, Object.<string, XMLParser.Parser>>} */
|
|
762
|
-
|
|
762
|
+
br(e, t, n)
|
|
763
763
|
);
|
|
764
764
|
}
|
|
765
|
-
function
|
|
766
|
-
var i =
|
|
765
|
+
function br(e, t, n) {
|
|
766
|
+
var i = E(n) ? n : {}, o, r;
|
|
767
767
|
for (o = 0, r = e.length; o < r; ++o)
|
|
768
768
|
i[e[o]] = t;
|
|
769
769
|
return i;
|
|
770
770
|
}
|
|
771
|
-
function
|
|
771
|
+
function Ji(e, t) {
|
|
772
772
|
return (
|
|
773
773
|
/**
|
|
774
774
|
* @param {Node} node Node.
|
|
@@ -776,11 +776,11 @@ function Ki(e, t) {
|
|
|
776
776
|
*/
|
|
777
777
|
function(n, i) {
|
|
778
778
|
var o = e.call(
|
|
779
|
-
|
|
779
|
+
E(t) ? t : this,
|
|
780
780
|
n,
|
|
781
781
|
i
|
|
782
782
|
);
|
|
783
|
-
if (
|
|
783
|
+
if (E(o)) {
|
|
784
784
|
var r = i[i.length - 1];
|
|
785
785
|
r.push(o);
|
|
786
786
|
}
|
|
@@ -788,7 +788,7 @@ function Ki(e, t) {
|
|
|
788
788
|
);
|
|
789
789
|
}
|
|
790
790
|
function j(e, t, n, i, o) {
|
|
791
|
-
return i.push(e),
|
|
791
|
+
return i.push(e), gr(t, n, i, o), i.pop();
|
|
792
792
|
}
|
|
793
793
|
function m(e, t, n) {
|
|
794
794
|
return (
|
|
@@ -798,15 +798,15 @@ function m(e, t, n) {
|
|
|
798
798
|
*/
|
|
799
799
|
function(i, o) {
|
|
800
800
|
let r = e.call(
|
|
801
|
-
|
|
801
|
+
E(n) ? n : this,
|
|
802
802
|
i,
|
|
803
803
|
o
|
|
804
804
|
);
|
|
805
|
-
if (
|
|
805
|
+
if (E(r)) {
|
|
806
806
|
var s = (
|
|
807
807
|
/** @type {Object} */
|
|
808
808
|
o[o.length - 1]
|
|
809
|
-
), a =
|
|
809
|
+
), a = E(t) ? t : i.localName;
|
|
810
810
|
s[a] = r;
|
|
811
811
|
}
|
|
812
812
|
}
|
|
@@ -820,28 +820,28 @@ function nt(e, t, n) {
|
|
|
820
820
|
*/
|
|
821
821
|
function(i, o) {
|
|
822
822
|
var r = e.call(
|
|
823
|
-
|
|
823
|
+
E(n) ? n : this,
|
|
824
824
|
i,
|
|
825
825
|
o
|
|
826
826
|
);
|
|
827
|
-
if (
|
|
827
|
+
if (E(r)) {
|
|
828
828
|
var s = (
|
|
829
829
|
/** @type {Object} */
|
|
830
830
|
o[o.length - 1]
|
|
831
|
-
), a =
|
|
831
|
+
), a = E(t) ? t : i.localName, l = Wi(s, a, []);
|
|
832
832
|
l.push(r);
|
|
833
833
|
}
|
|
834
834
|
}
|
|
835
835
|
);
|
|
836
836
|
}
|
|
837
|
-
const
|
|
838
|
-
function
|
|
839
|
-
return e.replace(
|
|
837
|
+
const vr = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;
|
|
838
|
+
function wr(e) {
|
|
839
|
+
return e.replace(vr, "");
|
|
840
840
|
}
|
|
841
841
|
function Ht(e) {
|
|
842
842
|
const t = /^\s*(true|1)|(false|0)\s*$/.exec(e);
|
|
843
843
|
if (t)
|
|
844
|
-
return
|
|
844
|
+
return E(t[1]) || !1;
|
|
845
845
|
}
|
|
846
846
|
function zt(e) {
|
|
847
847
|
return gt(gn(e, !1));
|
|
@@ -851,25 +851,25 @@ function gt(e) {
|
|
|
851
851
|
if (t)
|
|
852
852
|
return parseFloat(t[1]);
|
|
853
853
|
}
|
|
854
|
-
function
|
|
855
|
-
return
|
|
854
|
+
function En(e) {
|
|
855
|
+
return ke(gn(e, !1));
|
|
856
856
|
}
|
|
857
|
-
function
|
|
857
|
+
function ke(e) {
|
|
858
858
|
const t = /^\s*(\d+)\s*$/.exec(e);
|
|
859
859
|
if (t)
|
|
860
860
|
return parseInt(t[1], 10);
|
|
861
861
|
}
|
|
862
|
-
function
|
|
863
|
-
return
|
|
862
|
+
function _(e) {
|
|
863
|
+
return wr(gn(e, !1));
|
|
864
864
|
}
|
|
865
|
-
const
|
|
865
|
+
const $r = "http://www.w3.org/1999/xlink";
|
|
866
866
|
function Kn(e) {
|
|
867
|
-
return e.getAttributeNS(
|
|
867
|
+
return e.getAttributeNS($r, "href");
|
|
868
868
|
}
|
|
869
|
-
function
|
|
870
|
-
return j({},
|
|
869
|
+
function xr(e, t) {
|
|
870
|
+
return j({}, Wr, e, t);
|
|
871
871
|
}
|
|
872
|
-
function
|
|
872
|
+
function Ki(e) {
|
|
873
873
|
return [
|
|
874
874
|
gt(e.getAttribute("minx")),
|
|
875
875
|
gt(e.getAttribute("miny")),
|
|
@@ -877,8 +877,8 @@ function Qi(e) {
|
|
|
877
877
|
gt(e.getAttribute("maxy"))
|
|
878
878
|
];
|
|
879
879
|
}
|
|
880
|
-
function
|
|
881
|
-
const n =
|
|
880
|
+
function Er(e, t) {
|
|
881
|
+
const n = Ki(e), i = [
|
|
882
882
|
gt(e.getAttribute("resx")),
|
|
883
883
|
gt(e.getAttribute("resy"))
|
|
884
884
|
];
|
|
@@ -888,23 +888,23 @@ function Sr(e, t) {
|
|
|
888
888
|
res: i
|
|
889
889
|
};
|
|
890
890
|
}
|
|
891
|
-
function
|
|
892
|
-
const n =
|
|
893
|
-
if (!(
|
|
891
|
+
function Sr(e, t) {
|
|
892
|
+
const n = Ki(e);
|
|
893
|
+
if (!(!E(n[0]) || !E(n[1]) || !E(n[2]) || !E(n[3])))
|
|
894
894
|
return n;
|
|
895
895
|
}
|
|
896
|
-
function
|
|
896
|
+
function Ar(e, t) {
|
|
897
897
|
const n = parseFloat(e.getAttribute("min")), i = parseFloat(e.getAttribute("max"));
|
|
898
898
|
return { min: n, max: i };
|
|
899
899
|
}
|
|
900
900
|
function _r(e, t) {
|
|
901
901
|
const n = j(
|
|
902
902
|
{},
|
|
903
|
-
|
|
903
|
+
Gr,
|
|
904
904
|
e,
|
|
905
905
|
t
|
|
906
906
|
);
|
|
907
|
-
if (
|
|
907
|
+
if (!E(n)) return;
|
|
908
908
|
const i = (
|
|
909
909
|
/** @type {number|undefined} */
|
|
910
910
|
n.westBoundLongitude
|
|
@@ -918,7 +918,7 @@ function _r(e, t) {
|
|
|
918
918
|
/** @type {number|undefined} */
|
|
919
919
|
n.northBoundLatitude
|
|
920
920
|
);
|
|
921
|
-
if (!(
|
|
921
|
+
if (!(!E(i) || !E(o) || !E(r) || !E(s)))
|
|
922
922
|
return [
|
|
923
923
|
i,
|
|
924
924
|
o,
|
|
@@ -926,16 +926,16 @@ function _r(e, t) {
|
|
|
926
926
|
s
|
|
927
927
|
];
|
|
928
928
|
}
|
|
929
|
+
function Cr(e, t) {
|
|
930
|
+
return j({}, jr, e, t);
|
|
931
|
+
}
|
|
929
932
|
function Tr(e, t) {
|
|
930
933
|
return j({}, Zr, e, t);
|
|
931
934
|
}
|
|
932
935
|
function Pr(e, t) {
|
|
933
|
-
return j({}, zr, e, t);
|
|
934
|
-
}
|
|
935
|
-
function Or(e, t) {
|
|
936
936
|
return j(
|
|
937
937
|
{},
|
|
938
|
-
|
|
938
|
+
zr,
|
|
939
939
|
e,
|
|
940
940
|
t
|
|
941
941
|
);
|
|
@@ -943,39 +943,39 @@ function Or(e, t) {
|
|
|
943
943
|
function Dr(e, t) {
|
|
944
944
|
return j(
|
|
945
945
|
{},
|
|
946
|
-
|
|
946
|
+
Xr,
|
|
947
947
|
e,
|
|
948
948
|
t
|
|
949
949
|
);
|
|
950
950
|
}
|
|
951
|
-
function
|
|
951
|
+
function Or(e, t) {
|
|
952
952
|
return j(
|
|
953
953
|
{},
|
|
954
|
-
|
|
954
|
+
qr,
|
|
955
955
|
e,
|
|
956
956
|
t
|
|
957
957
|
);
|
|
958
958
|
}
|
|
959
|
-
function
|
|
959
|
+
function Rr(e, t) {
|
|
960
960
|
return j(
|
|
961
961
|
[],
|
|
962
|
-
|
|
962
|
+
Yr,
|
|
963
963
|
e,
|
|
964
964
|
t
|
|
965
965
|
);
|
|
966
966
|
}
|
|
967
|
-
function
|
|
967
|
+
function Lr(e, t) {
|
|
968
968
|
const n = Ht(e.getAttribute("queryable"));
|
|
969
969
|
return j(
|
|
970
970
|
{
|
|
971
|
-
queryable:
|
|
971
|
+
queryable: E(n) ? n : !1
|
|
972
972
|
},
|
|
973
|
-
|
|
973
|
+
eo,
|
|
974
974
|
e,
|
|
975
975
|
t
|
|
976
976
|
);
|
|
977
977
|
}
|
|
978
|
-
function
|
|
978
|
+
function Mr(e, t) {
|
|
979
979
|
var n = (
|
|
980
980
|
/** @type {Object.<string,*>} */
|
|
981
981
|
t[t.length - 1]
|
|
@@ -984,30 +984,30 @@ function Ir(e, t) {
|
|
|
984
984
|
/** @type {Object.<string,*>} */
|
|
985
985
|
j(
|
|
986
986
|
{},
|
|
987
|
-
|
|
987
|
+
eo,
|
|
988
988
|
e,
|
|
989
989
|
t
|
|
990
990
|
)
|
|
991
991
|
);
|
|
992
|
-
if (
|
|
992
|
+
if (!E(i)) return;
|
|
993
993
|
let o = Ht(e.getAttribute("queryable"));
|
|
994
|
-
|
|
995
|
-
let r =
|
|
996
|
-
|
|
994
|
+
E(o) || (o = n.queryable), i.queryable = E(o) ? o : !1;
|
|
995
|
+
let r = ke(e.getAttribute("cascaded"));
|
|
996
|
+
E(r) || (r = n.cascaded), i.cascaded = r;
|
|
997
997
|
let s = Ht(e.getAttribute("opaque"));
|
|
998
|
-
|
|
998
|
+
E(s) || (s = n.opaque), i.opaque = E(s) ? s : !1;
|
|
999
999
|
let a = Ht(e.getAttribute("noSubsets"));
|
|
1000
|
-
|
|
1000
|
+
E(a) || (a = n.noSubsets), i.noSubsets = E(a) ? a : !1;
|
|
1001
1001
|
let l = gt(e.getAttribute("fixedWidth"));
|
|
1002
|
-
|
|
1002
|
+
E(l) || (l = n.fixedWidth), i.fixedWidth = l;
|
|
1003
1003
|
let u = gt(e.getAttribute("fixedHeight"));
|
|
1004
|
-
|
|
1004
|
+
E(u) || (u = n.fixedHeight), i.fixedHeight = u;
|
|
1005
1005
|
const c = ["Style", "CRS", "AuthorityURL"];
|
|
1006
1006
|
for (let p = 0, f = c.length; p < f; p++) {
|
|
1007
1007
|
const g = c[p], y = n[g];
|
|
1008
|
-
if (
|
|
1009
|
-
let
|
|
1010
|
-
|
|
1008
|
+
if (E(y)) {
|
|
1009
|
+
let D = Wi(i, g, []);
|
|
1010
|
+
D = D.concat(y), i[g] = D;
|
|
1011
1011
|
}
|
|
1012
1012
|
}
|
|
1013
1013
|
const d = [
|
|
@@ -1020,14 +1020,14 @@ function Ir(e, t) {
|
|
|
1020
1020
|
];
|
|
1021
1021
|
for (let p = 0, f = d.length; p < f; p++) {
|
|
1022
1022
|
const g = d[p], y = i[g];
|
|
1023
|
-
if (
|
|
1024
|
-
const
|
|
1025
|
-
i[g] =
|
|
1023
|
+
if (!E(y)) {
|
|
1024
|
+
const D = n[g];
|
|
1025
|
+
i[g] = D;
|
|
1026
1026
|
}
|
|
1027
1027
|
}
|
|
1028
1028
|
return i;
|
|
1029
1029
|
}
|
|
1030
|
-
function
|
|
1030
|
+
function Ir(e, t) {
|
|
1031
1031
|
return {
|
|
1032
1032
|
name: e.getAttribute("name"),
|
|
1033
1033
|
units: e.getAttribute("units"),
|
|
@@ -1036,56 +1036,56 @@ function Nr(e, t) {
|
|
|
1036
1036
|
multipleValues: Ht(e.getAttribute("multipleValues")),
|
|
1037
1037
|
nearestValue: Ht(e.getAttribute("nearestValue")),
|
|
1038
1038
|
current: Ht(e.getAttribute("current")),
|
|
1039
|
-
values:
|
|
1039
|
+
values: _(e)
|
|
1040
1040
|
};
|
|
1041
1041
|
}
|
|
1042
1042
|
function yt(e, t) {
|
|
1043
1043
|
return j(
|
|
1044
1044
|
{},
|
|
1045
|
-
|
|
1045
|
+
ns,
|
|
1046
1046
|
e,
|
|
1047
1047
|
t
|
|
1048
1048
|
);
|
|
1049
1049
|
}
|
|
1050
|
+
function Nr(e, t) {
|
|
1051
|
+
return j({}, Jr, e, t);
|
|
1052
|
+
}
|
|
1050
1053
|
function Hr(e, t) {
|
|
1051
|
-
return j({},
|
|
1054
|
+
return j({}, Qr, e, t);
|
|
1052
1055
|
}
|
|
1053
1056
|
function Vr(e, t) {
|
|
1054
1057
|
return j({}, ts, e, t);
|
|
1055
1058
|
}
|
|
1056
|
-
function Br(e, t) {
|
|
1057
|
-
return j({}, es, e, t);
|
|
1058
|
-
}
|
|
1059
1059
|
function Sn(e, t) {
|
|
1060
|
-
return j({},
|
|
1060
|
+
return j({}, Kr, e, t);
|
|
1061
1061
|
}
|
|
1062
|
-
function
|
|
1062
|
+
function Qi(e, t) {
|
|
1063
1063
|
var n = yt(e, t);
|
|
1064
|
-
if (
|
|
1064
|
+
if (E(n)) {
|
|
1065
1065
|
const i = [
|
|
1066
|
-
|
|
1067
|
-
|
|
1066
|
+
ke(e.getAttribute("width")),
|
|
1067
|
+
ke(e.getAttribute("height"))
|
|
1068
1068
|
];
|
|
1069
1069
|
return n.size = i, n;
|
|
1070
1070
|
}
|
|
1071
1071
|
}
|
|
1072
|
-
function
|
|
1072
|
+
function Br(e, t) {
|
|
1073
1073
|
var n = yt(e, t);
|
|
1074
|
-
if (
|
|
1074
|
+
if (E(n))
|
|
1075
1075
|
return n.name = e.getAttribute("name"), n;
|
|
1076
1076
|
}
|
|
1077
|
-
function
|
|
1077
|
+
function kr(e, t) {
|
|
1078
1078
|
var n = yt(e, t);
|
|
1079
|
-
if (
|
|
1079
|
+
if (E(n))
|
|
1080
1080
|
return n.type = e.getAttribute("type"), n;
|
|
1081
1081
|
}
|
|
1082
|
-
function
|
|
1083
|
-
return j({},
|
|
1082
|
+
function Ur(e, t) {
|
|
1083
|
+
return j({}, es, e, t);
|
|
1084
1084
|
}
|
|
1085
|
-
function
|
|
1085
|
+
function to(e, t) {
|
|
1086
1086
|
return j(
|
|
1087
1087
|
[],
|
|
1088
|
-
|
|
1088
|
+
is,
|
|
1089
1089
|
e,
|
|
1090
1090
|
t
|
|
1091
1091
|
);
|
|
@@ -1093,103 +1093,103 @@ function eo(e, t) {
|
|
|
1093
1093
|
const W = [
|
|
1094
1094
|
null,
|
|
1095
1095
|
"http://www.opengis.net/wms"
|
|
1096
|
-
],
|
|
1096
|
+
], Fr = Y(
|
|
1097
1097
|
W,
|
|
1098
1098
|
{
|
|
1099
|
-
Service: m(
|
|
1100
|
-
Capability: m(
|
|
1099
|
+
Service: m(Tr),
|
|
1100
|
+
Capability: m(Cr)
|
|
1101
1101
|
}
|
|
1102
|
-
),
|
|
1102
|
+
), jr = Y(
|
|
1103
1103
|
W,
|
|
1104
1104
|
{
|
|
1105
|
-
Request: m(
|
|
1106
|
-
Exception: m(
|
|
1107
|
-
Layer: m(
|
|
1105
|
+
Request: m(Nr),
|
|
1106
|
+
Exception: m(Rr),
|
|
1107
|
+
Layer: m(Lr)
|
|
1108
1108
|
}
|
|
1109
|
-
),
|
|
1109
|
+
), Zr = Y(
|
|
1110
1110
|
W,
|
|
1111
1111
|
{
|
|
1112
|
-
Name: m(
|
|
1113
|
-
Title: m(
|
|
1114
|
-
Abstract: m(
|
|
1115
|
-
KeywordList: m(
|
|
1112
|
+
Name: m(_),
|
|
1113
|
+
Title: m(_),
|
|
1114
|
+
Abstract: m(_),
|
|
1115
|
+
KeywordList: m(to),
|
|
1116
1116
|
OnlineResource: m(Kn),
|
|
1117
|
-
ContactInformation: m(
|
|
1118
|
-
Fees: m(
|
|
1119
|
-
AccessConstraints: m(
|
|
1120
|
-
LayerLimit: m(
|
|
1121
|
-
MaxWidth: m(
|
|
1122
|
-
MaxHeight: m(
|
|
1117
|
+
ContactInformation: m(Pr),
|
|
1118
|
+
Fees: m(_),
|
|
1119
|
+
AccessConstraints: m(_),
|
|
1120
|
+
LayerLimit: m(En),
|
|
1121
|
+
MaxWidth: m(En),
|
|
1122
|
+
MaxHeight: m(En)
|
|
1123
1123
|
}
|
|
1124
|
-
),
|
|
1124
|
+
), zr = Y(
|
|
1125
1125
|
W,
|
|
1126
1126
|
{
|
|
1127
1127
|
ContactPersonPrimary: m(Dr),
|
|
1128
|
-
ContactPosition: m(
|
|
1129
|
-
ContactAddress: m(
|
|
1130
|
-
ContactVoiceTelephone: m(
|
|
1131
|
-
ContactFacsimileTelephone: m(
|
|
1132
|
-
ContactElectronicMailAddress: m(
|
|
1128
|
+
ContactPosition: m(_),
|
|
1129
|
+
ContactAddress: m(Or),
|
|
1130
|
+
ContactVoiceTelephone: m(_),
|
|
1131
|
+
ContactFacsimileTelephone: m(_),
|
|
1132
|
+
ContactElectronicMailAddress: m(_)
|
|
1133
1133
|
}
|
|
1134
|
-
),
|
|
1134
|
+
), Xr = Y(
|
|
1135
1135
|
W,
|
|
1136
1136
|
{
|
|
1137
|
-
ContactPerson: m(
|
|
1138
|
-
ContactOrganization: m(
|
|
1137
|
+
ContactPerson: m(_),
|
|
1138
|
+
ContactOrganization: m(_)
|
|
1139
1139
|
}
|
|
1140
|
-
),
|
|
1140
|
+
), qr = Y(
|
|
1141
1141
|
W,
|
|
1142
1142
|
{
|
|
1143
|
-
AddressType: m(
|
|
1144
|
-
Address: m(
|
|
1145
|
-
City: m(
|
|
1146
|
-
StateOrProvince: m(
|
|
1147
|
-
PostCode: m(
|
|
1148
|
-
Country: m(
|
|
1143
|
+
AddressType: m(_),
|
|
1144
|
+
Address: m(_),
|
|
1145
|
+
City: m(_),
|
|
1146
|
+
StateOrProvince: m(_),
|
|
1147
|
+
PostCode: m(_),
|
|
1148
|
+
Country: m(_)
|
|
1149
1149
|
}
|
|
1150
|
-
),
|
|
1150
|
+
), Yr = Y(
|
|
1151
1151
|
W,
|
|
1152
1152
|
{
|
|
1153
|
-
Format:
|
|
1153
|
+
Format: Ji(_)
|
|
1154
1154
|
}
|
|
1155
|
-
),
|
|
1155
|
+
), eo = Y(
|
|
1156
1156
|
W,
|
|
1157
1157
|
{
|
|
1158
|
-
Name: m(
|
|
1159
|
-
Title: m(
|
|
1160
|
-
Abstract: m(
|
|
1161
|
-
KeywordList: m(
|
|
1162
|
-
CRS: nt(
|
|
1163
|
-
SRS: nt(
|
|
1158
|
+
Name: m(_),
|
|
1159
|
+
Title: m(_),
|
|
1160
|
+
Abstract: m(_),
|
|
1161
|
+
KeywordList: m(to),
|
|
1162
|
+
CRS: nt(_),
|
|
1163
|
+
SRS: nt(_),
|
|
1164
1164
|
EX_GeographicBoundingBox: m(_r),
|
|
1165
|
-
LatLonBoundingBox: m(
|
|
1166
|
-
BoundingBox: nt(
|
|
1167
|
-
Dimension: nt(
|
|
1168
|
-
Attribution: m(
|
|
1169
|
-
AuthorityURL: nt(
|
|
1170
|
-
Identifier: nt(
|
|
1171
|
-
MetadataURL: nt(
|
|
1165
|
+
LatLonBoundingBox: m(Sr),
|
|
1166
|
+
BoundingBox: nt(Er),
|
|
1167
|
+
Dimension: nt(Ir),
|
|
1168
|
+
Attribution: m(xr),
|
|
1169
|
+
AuthorityURL: nt(Br),
|
|
1170
|
+
Identifier: nt(_),
|
|
1171
|
+
MetadataURL: nt(kr),
|
|
1172
1172
|
DataURL: nt(yt),
|
|
1173
1173
|
FeatureListURL: nt(yt),
|
|
1174
|
-
Style: nt(
|
|
1174
|
+
Style: nt(Ur),
|
|
1175
1175
|
MinScaleDenominator: m(zt),
|
|
1176
1176
|
MaxScaleDenominator: m(zt),
|
|
1177
|
-
ScaleHint: m(
|
|
1178
|
-
Layer: nt(
|
|
1177
|
+
ScaleHint: m(Ar),
|
|
1178
|
+
Layer: nt(Mr)
|
|
1179
1179
|
}
|
|
1180
|
-
),
|
|
1180
|
+
), Wr = Y(
|
|
1181
1181
|
W,
|
|
1182
1182
|
{
|
|
1183
|
-
Title: m(
|
|
1183
|
+
Title: m(_),
|
|
1184
1184
|
OnlineResource: m(Kn),
|
|
1185
|
-
LogoURL: m(
|
|
1185
|
+
LogoURL: m(Qi)
|
|
1186
1186
|
}
|
|
1187
|
-
),
|
|
1187
|
+
), Gr = Y(W, {
|
|
1188
1188
|
westBoundLongitude: m(zt),
|
|
1189
1189
|
eastBoundLongitude: m(zt),
|
|
1190
1190
|
southBoundLatitude: m(zt),
|
|
1191
1191
|
northBoundLatitude: m(zt)
|
|
1192
|
-
}),
|
|
1192
|
+
}), Jr = Y(
|
|
1193
1193
|
W,
|
|
1194
1194
|
{
|
|
1195
1195
|
GetCapabilities: m(
|
|
@@ -1202,22 +1202,22 @@ const W = [
|
|
|
1202
1202
|
Sn
|
|
1203
1203
|
)
|
|
1204
1204
|
}
|
|
1205
|
-
),
|
|
1205
|
+
), Kr = Y(
|
|
1206
1206
|
W,
|
|
1207
1207
|
{
|
|
1208
|
-
Format: nt(
|
|
1208
|
+
Format: nt(_),
|
|
1209
1209
|
DCPType: nt(
|
|
1210
|
-
|
|
1210
|
+
Hr
|
|
1211
1211
|
)
|
|
1212
1212
|
}
|
|
1213
|
-
),
|
|
1213
|
+
), Qr = Y(
|
|
1214
1214
|
W,
|
|
1215
1215
|
{
|
|
1216
1216
|
HTTP: m(
|
|
1217
|
-
|
|
1217
|
+
Vr
|
|
1218
1218
|
)
|
|
1219
1219
|
}
|
|
1220
|
-
),
|
|
1220
|
+
), ts = Y(
|
|
1221
1221
|
W,
|
|
1222
1222
|
{
|
|
1223
1223
|
Get: m(
|
|
@@ -1227,29 +1227,29 @@ const W = [
|
|
|
1227
1227
|
yt
|
|
1228
1228
|
)
|
|
1229
1229
|
}
|
|
1230
|
-
),
|
|
1230
|
+
), es = Y(
|
|
1231
1231
|
W,
|
|
1232
1232
|
{
|
|
1233
|
-
Name: m(
|
|
1234
|
-
Title: m(
|
|
1235
|
-
Abstract: m(
|
|
1236
|
-
LegendURL: nt(
|
|
1233
|
+
Name: m(_),
|
|
1234
|
+
Title: m(_),
|
|
1235
|
+
Abstract: m(_),
|
|
1236
|
+
LegendURL: nt(Qi),
|
|
1237
1237
|
StyleSheetURL: m(yt),
|
|
1238
1238
|
StyleURL: m(yt)
|
|
1239
1239
|
}
|
|
1240
|
-
),
|
|
1240
|
+
), ns = Y(
|
|
1241
1241
|
W,
|
|
1242
1242
|
{
|
|
1243
|
-
Format: m(
|
|
1243
|
+
Format: m(_),
|
|
1244
1244
|
OnlineResource: m(Kn)
|
|
1245
1245
|
}
|
|
1246
|
-
),
|
|
1246
|
+
), is = Y(
|
|
1247
1247
|
W,
|
|
1248
1248
|
{
|
|
1249
|
-
Keyword:
|
|
1249
|
+
Keyword: Ji(_)
|
|
1250
1250
|
}
|
|
1251
1251
|
);
|
|
1252
|
-
class
|
|
1252
|
+
class os {
|
|
1253
1253
|
/**
|
|
1254
1254
|
* WMS Capabilities parser
|
|
1255
1255
|
*
|
|
@@ -1257,7 +1257,7 @@ class rs {
|
|
|
1257
1257
|
* @constructor
|
|
1258
1258
|
*/
|
|
1259
1259
|
constructor(t, n) {
|
|
1260
|
-
!n && typeof window < "u" && (n = window.DOMParser), this.version = void 0, this._parser = new
|
|
1260
|
+
!n && typeof window < "u" && (n = window.DOMParser), this.version = void 0, this._parser = new fr(n), this._data = t;
|
|
1261
1261
|
}
|
|
1262
1262
|
/**
|
|
1263
1263
|
* @param {String} xmlString
|
|
@@ -1286,7 +1286,7 @@ class rs {
|
|
|
1286
1286
|
*/
|
|
1287
1287
|
readFromDocument(t) {
|
|
1288
1288
|
for (let n = t.firstChild; n; n = n.nextSibling)
|
|
1289
|
-
if (n.nodeType ==
|
|
1289
|
+
if (n.nodeType == ye.ELEMENT)
|
|
1290
1290
|
return this.readFromNode(n);
|
|
1291
1291
|
return null;
|
|
1292
1292
|
}
|
|
@@ -1297,17 +1297,17 @@ class rs {
|
|
|
1297
1297
|
readFromNode(t) {
|
|
1298
1298
|
return this.version = t.getAttribute("version"), j({
|
|
1299
1299
|
version: this.version
|
|
1300
|
-
},
|
|
1300
|
+
}, Fr, t, []) || null;
|
|
1301
1301
|
}
|
|
1302
1302
|
}
|
|
1303
|
-
async function
|
|
1303
|
+
async function rs(e) {
|
|
1304
1304
|
let t = new URL(e), n = t.searchParams;
|
|
1305
1305
|
n.set("SERVICE", "WMS"), n.set("REQUEST", "GetCapabilities");
|
|
1306
1306
|
let i = t.toString();
|
|
1307
1307
|
const o = await fetch(i);
|
|
1308
1308
|
if (o.ok) {
|
|
1309
1309
|
const r = await o.text();
|
|
1310
|
-
return new
|
|
1310
|
+
return new os(r).toJSON();
|
|
1311
1311
|
} else
|
|
1312
1312
|
throw new Error(`Error: ${o.status}`);
|
|
1313
1313
|
}
|
|
@@ -1315,24 +1315,24 @@ function Qn(e) {
|
|
|
1315
1315
|
const t = /\b(?:wms|ows)\b/i, n = /{(?:z|x|y-?)}\/{(?:z|x|y-?)}\/{(?:z|x|y-?)}/i;
|
|
1316
1316
|
return t.test(e) ? "TileWMS" : n.test(e) ? "XYZ" : !1;
|
|
1317
1317
|
}
|
|
1318
|
-
function
|
|
1318
|
+
function ss(e) {
|
|
1319
1319
|
const n = /^(?:(?:https?|ftp):\/\/|\/\/)?(?:localhost|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}|(?:\w+[\w-]*\.)+\w+)(?::\d+)?(?:\/\S*)?$/.test(e), i = Qn(e);
|
|
1320
1320
|
return !!(e && n && i);
|
|
1321
1321
|
}
|
|
1322
|
-
function
|
|
1322
|
+
function no(e) {
|
|
1323
1323
|
return e.replace(
|
|
1324
1324
|
/(['"])?([a-zA-Z0-9_]+)(['"])?:/g,
|
|
1325
1325
|
'"$2": '
|
|
1326
1326
|
).replace(/,\s*}/g, "}").replace(/,\s*]/g, "]").replace(/\s*(\{|}|\[|\]|,)\s*/g, "$1").replaceAll('": //', "://");
|
|
1327
1327
|
}
|
|
1328
|
-
function
|
|
1328
|
+
function as(e) {
|
|
1329
1329
|
try {
|
|
1330
|
-
return JSON.parse(
|
|
1330
|
+
return JSON.parse(no(e)), !!e;
|
|
1331
1331
|
} catch {
|
|
1332
1332
|
return !1;
|
|
1333
1333
|
}
|
|
1334
1334
|
}
|
|
1335
|
-
function
|
|
1335
|
+
function ls(e, t) {
|
|
1336
1336
|
const n = 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) => {
|
|
@@ -1362,7 +1362,7 @@ function ct(e) {
|
|
|
1362
1362
|
for (var t = 1; t < arguments.length; t++) {
|
|
1363
1363
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
1364
1364
|
t % 2 ? vi(Object(n), !0).forEach(function(i) {
|
|
1365
|
-
|
|
1365
|
+
us(e, i, n[i]);
|
|
1366
1366
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : vi(Object(n)).forEach(function(i) {
|
|
1367
1367
|
Object.defineProperty(e, i, Object.getOwnPropertyDescriptor(n, i));
|
|
1368
1368
|
});
|
|
@@ -1377,7 +1377,7 @@ 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 us(e, t, n) {
|
|
1381
1381
|
return t in e ? Object.defineProperty(e, t, {
|
|
1382
1382
|
value: n,
|
|
1383
1383
|
enumerable: !0,
|
|
@@ -1395,16 +1395,16 @@ function bt() {
|
|
|
1395
1395
|
return e;
|
|
1396
1396
|
}, bt.apply(this, arguments);
|
|
1397
1397
|
}
|
|
1398
|
-
function
|
|
1398
|
+
function ds(e, t) {
|
|
1399
1399
|
if (e == null) return {};
|
|
1400
1400
|
var n = {}, i = Object.keys(e), o, r;
|
|
1401
1401
|
for (r = 0; r < i.length; r++)
|
|
1402
1402
|
o = i[r], !(t.indexOf(o) >= 0) && (n[o] = e[o]);
|
|
1403
1403
|
return n;
|
|
1404
1404
|
}
|
|
1405
|
-
function
|
|
1405
|
+
function cs(e, t) {
|
|
1406
1406
|
if (e == null) return {};
|
|
1407
|
-
var n =
|
|
1407
|
+
var n = ds(e, t), i, o;
|
|
1408
1408
|
if (Object.getOwnPropertySymbols) {
|
|
1409
1409
|
var r = Object.getOwnPropertySymbols(e);
|
|
1410
1410
|
for (o = 0; o < r.length; o++)
|
|
@@ -1412,22 +1412,22 @@ function hs(e, t) {
|
|
|
1412
1412
|
}
|
|
1413
1413
|
return n;
|
|
1414
1414
|
}
|
|
1415
|
-
var
|
|
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), wi = mt(/firefox/i),
|
|
1420
|
+
var vt = mt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), xe = mt(/Edge/i), wi = mt(/firefox/i), ue = mt(/safari/i) && !mt(/chrome/i) && !mt(/android/i), io = 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
1424
|
function T(e, t, n) {
|
|
1425
|
-
e.addEventListener(t, n, !vt &&
|
|
1425
|
+
e.addEventListener(t, n, !vt && ro);
|
|
1426
1426
|
}
|
|
1427
1427
|
function A(e, t, n) {
|
|
1428
|
-
e.removeEventListener(t, n, !vt &&
|
|
1428
|
+
e.removeEventListener(t, n, !vt && ro);
|
|
1429
1429
|
}
|
|
1430
|
-
function
|
|
1430
|
+
function Ue(e, t) {
|
|
1431
1431
|
if (t) {
|
|
1432
1432
|
if (t[0] === ">" && (t = t.substring(1)), e)
|
|
1433
1433
|
try {
|
|
@@ -1443,28 +1443,28 @@ function ke(e, t) {
|
|
|
1443
1443
|
return !1;
|
|
1444
1444
|
}
|
|
1445
1445
|
}
|
|
1446
|
-
function
|
|
1446
|
+
function so(e) {
|
|
1447
1447
|
return e.host && e !== document && e.host.nodeType ? e.host : e.parentNode;
|
|
1448
1448
|
}
|
|
1449
1449
|
function ut(e, t, n, i) {
|
|
1450
1450
|
if (e) {
|
|
1451
1451
|
n = n || document;
|
|
1452
1452
|
do {
|
|
1453
|
-
if (t != null && (t[0] === ">" ? e.parentNode === n &&
|
|
1453
|
+
if (t != null && (t[0] === ">" ? e.parentNode === n && Ue(e, t) : Ue(e, t)) || i && e === n)
|
|
1454
1454
|
return e;
|
|
1455
1455
|
if (e === n) break;
|
|
1456
|
-
} while (e =
|
|
1456
|
+
} while (e = so(e));
|
|
1457
1457
|
}
|
|
1458
1458
|
return null;
|
|
1459
1459
|
}
|
|
1460
|
-
var
|
|
1460
|
+
var $i = /\s+/g;
|
|
1461
1461
|
function ot(e, t, n) {
|
|
1462
1462
|
if (e && t)
|
|
1463
1463
|
if (e.classList)
|
|
1464
1464
|
e.classList[n ? "add" : "remove"](t);
|
|
1465
1465
|
else {
|
|
1466
|
-
var i = (" " + e.className + " ").replace(
|
|
1467
|
-
e.className = (i + (n ? " " + t : "")).replace(
|
|
1466
|
+
var i = (" " + e.className + " ").replace($i, " ").replace(" " + t + " ", " ");
|
|
1467
|
+
e.className = (i + (n ? " " + t : "")).replace($i, " ");
|
|
1468
1468
|
}
|
|
1469
1469
|
}
|
|
1470
1470
|
function v(e, t, n) {
|
|
@@ -1487,7 +1487,7 @@ function qt(e, t) {
|
|
|
1487
1487
|
var o = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
|
|
1488
1488
|
return o && new o(n);
|
|
1489
1489
|
}
|
|
1490
|
-
function
|
|
1490
|
+
function ao(e, t, n) {
|
|
1491
1491
|
if (e) {
|
|
1492
1492
|
var i = e.getElementsByTagName(t), o = 0, r = i.length;
|
|
1493
1493
|
if (n)
|
|
@@ -1526,12 +1526,12 @@ function k(e, t, n, i, o) {
|
|
|
1526
1526
|
};
|
|
1527
1527
|
}
|
|
1528
1528
|
}
|
|
1529
|
-
function
|
|
1530
|
-
for (var i =
|
|
1529
|
+
function xi(e, t, n) {
|
|
1530
|
+
for (var i = _t(e, !0), o = k(e)[t]; i; ) {
|
|
1531
1531
|
var r = k(i)[n], s = void 0;
|
|
1532
1532
|
if (s = o >= r, !s) return i;
|
|
1533
1533
|
if (i === dt()) break;
|
|
1534
|
-
i =
|
|
1534
|
+
i = _t(i, !1);
|
|
1535
1535
|
}
|
|
1536
1536
|
return !1;
|
|
1537
1537
|
}
|
|
@@ -1547,7 +1547,7 @@ function Wt(e, t, n, i) {
|
|
|
1547
1547
|
return null;
|
|
1548
1548
|
}
|
|
1549
1549
|
function ti(e, t) {
|
|
1550
|
-
for (var n = e.lastElementChild; n && (n === w.ghost || v(n, "display") === "none" || t && !
|
|
1550
|
+
for (var n = e.lastElementChild; n && (n === w.ghost || v(n, "display") === "none" || t && !Ue(n, t)); )
|
|
1551
1551
|
n = n.previousElementSibling;
|
|
1552
1552
|
return n || null;
|
|
1553
1553
|
}
|
|
@@ -1556,10 +1556,10 @@ function st(e, t) {
|
|
|
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 ||
|
|
1559
|
+
e.nodeName.toUpperCase() !== "TEMPLATE" && e !== w.clone && (!t || Ue(e, t)) && n++;
|
|
1560
1560
|
return n;
|
|
1561
1561
|
}
|
|
1562
|
-
function
|
|
1562
|
+
function Ei(e) {
|
|
1563
1563
|
var t = 0, n = 0, i = dt();
|
|
1564
1564
|
if (e)
|
|
1565
1565
|
do {
|
|
@@ -1568,7 +1568,7 @@ function $i(e) {
|
|
|
1568
1568
|
} while (e !== i && (e = e.parentNode));
|
|
1569
1569
|
return [t, n];
|
|
1570
1570
|
}
|
|
1571
|
-
function
|
|
1571
|
+
function ps(e, t) {
|
|
1572
1572
|
for (var n in e)
|
|
1573
1573
|
if (e.hasOwnProperty(n)) {
|
|
1574
1574
|
for (var i in t)
|
|
@@ -1576,7 +1576,7 @@ function fs(e, t) {
|
|
|
1576
1576
|
}
|
|
1577
1577
|
return -1;
|
|
1578
1578
|
}
|
|
1579
|
-
function
|
|
1579
|
+
function _t(e, t) {
|
|
1580
1580
|
if (!e || !e.getBoundingClientRect) return dt();
|
|
1581
1581
|
var n = e, i = !1;
|
|
1582
1582
|
do
|
|
@@ -1591,7 +1591,7 @@ function Ct(e, t) {
|
|
|
1591
1591
|
while (n = n.parentNode);
|
|
1592
1592
|
return dt();
|
|
1593
1593
|
}
|
|
1594
|
-
function
|
|
1594
|
+
function fs(e, t) {
|
|
1595
1595
|
if (e && t)
|
|
1596
1596
|
for (var n in t)
|
|
1597
1597
|
t.hasOwnProperty(n) && (e[n] = t[n]);
|
|
@@ -1600,28 +1600,28 @@ function gs(e, t) {
|
|
|
1600
1600
|
function An(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
|
|
1604
|
-
function
|
|
1603
|
+
var de;
|
|
1604
|
+
function lo(e, t) {
|
|
1605
1605
|
return function() {
|
|
1606
|
-
if (!
|
|
1606
|
+
if (!de) {
|
|
1607
1607
|
var n = arguments, i = this;
|
|
1608
|
-
n.length === 1 ? e.call(i, n[0]) : e.apply(i, n),
|
|
1609
|
-
|
|
1608
|
+
n.length === 1 ? e.call(i, n[0]) : e.apply(i, n), de = setTimeout(function() {
|
|
1609
|
+
de = void 0;
|
|
1610
1610
|
}, t);
|
|
1611
1611
|
}
|
|
1612
1612
|
};
|
|
1613
1613
|
}
|
|
1614
|
-
function
|
|
1615
|
-
clearTimeout(
|
|
1614
|
+
function gs() {
|
|
1615
|
+
clearTimeout(de), de = void 0;
|
|
1616
1616
|
}
|
|
1617
|
-
function
|
|
1617
|
+
function uo(e, t, n) {
|
|
1618
1618
|
e.scrollLeft += t, e.scrollTop += n;
|
|
1619
1619
|
}
|
|
1620
|
-
function
|
|
1620
|
+
function co(e) {
|
|
1621
1621
|
var t = window.Polymer, n = window.jQuery || window.Zepto;
|
|
1622
1622
|
return t && t.dom ? t.dom(e).cloneNode(!0) : n ? n(e).clone(!0)[0] : e.cloneNode(!0);
|
|
1623
1623
|
}
|
|
1624
|
-
function
|
|
1624
|
+
function ho(e, t, n) {
|
|
1625
1625
|
var i = {};
|
|
1626
1626
|
return Array.from(e.children).forEach(function(o) {
|
|
1627
1627
|
var r, s, a, l;
|
|
@@ -1632,7 +1632,7 @@ function po(e, t, n) {
|
|
|
1632
1632
|
}), i.width = i.right - i.left, i.height = i.bottom - i.top, i.x = i.left, i.y = i.top, i;
|
|
1633
1633
|
}
|
|
1634
1634
|
var it = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
|
|
1635
|
-
function
|
|
1635
|
+
function ms() {
|
|
1636
1636
|
var e = [], t;
|
|
1637
1637
|
return {
|
|
1638
1638
|
captureAnimationState: function() {
|
|
@@ -1658,7 +1658,7 @@ function ys() {
|
|
|
1658
1658
|
e.push(i);
|
|
1659
1659
|
},
|
|
1660
1660
|
removeAnimationState: function(i) {
|
|
1661
|
-
e.splice(
|
|
1661
|
+
e.splice(ps(e, {
|
|
1662
1662
|
target: i
|
|
1663
1663
|
}), 1);
|
|
1664
1664
|
},
|
|
@@ -1672,7 +1672,7 @@ function ys() {
|
|
|
1672
1672
|
e.forEach(function(a) {
|
|
1673
1673
|
var l = 0, u = a.target, c = u.fromRect, d = k(u), p = u.prevFromRect, f = u.prevToRect, g = a.rect, y = qt(u, !0);
|
|
1674
1674
|
y && (d.top -= y.f, d.left -= y.e), u.toRect = d, u.thisAnimationDuration && An(p, d) && !An(c, d) && // Make sure animatingRect is on line between toRect & fromRect
|
|
1675
|
-
(g.top - d.top) / (g.left - d.left) === (c.top - d.top) / (c.left - d.left) && (l =
|
|
1675
|
+
(g.top - d.top) / (g.left - d.left) === (c.top - d.top) / (c.left - d.left) && (l = bs(g, p, f, o.options)), An(d, c) || (u.prevFromRect = c, u.prevToRect = d, l || (l = o.options.animation), o.animate(u, g, d, l)), l && (r = !0, s = Math.max(s, l), clearTimeout(u.animationResetTimer), u.animationResetTimer = setTimeout(function() {
|
|
1676
1676
|
u.animationTime = 0, u.prevFromRect = null, u.fromRect = null, u.prevToRect = null, u.thisAnimationDuration = null;
|
|
1677
1677
|
}, l), u.thisAnimationDuration = l);
|
|
1678
1678
|
}), clearTimeout(t), r ? t = setTimeout(function() {
|
|
@@ -1683,25 +1683,25 @@ function ys() {
|
|
|
1683
1683
|
if (s) {
|
|
1684
1684
|
v(i, "transition", ""), v(i, "transform", "");
|
|
1685
1685
|
var a = qt(this.el), l = a && a.a, u = a && a.d, c = (o.left - r.left) / (l || 1), d = (o.top - r.top) / (u || 1);
|
|
1686
|
-
i.animatingX = !!c, i.animatingY = !!d, v(i, "transform", "translate3d(" + c + "px," + d + "px,0)"), this.forRepaintDummy =
|
|
1686
|
+
i.animatingX = !!c, i.animatingY = !!d, v(i, "transform", "translate3d(" + c + "px," + d + "px,0)"), this.forRepaintDummy = ys(i), v(i, "transition", "transform " + s + "ms" + (this.options.easing ? " " + this.options.easing : "")), v(i, "transform", "translate3d(0,0,0)"), typeof i.animated == "number" && clearTimeout(i.animated), i.animated = setTimeout(function() {
|
|
1687
1687
|
v(i, "transition", ""), v(i, "transform", ""), i.animated = !1, i.animatingX = !1, i.animatingY = !1;
|
|
1688
1688
|
}, s);
|
|
1689
1689
|
}
|
|
1690
1690
|
}
|
|
1691
1691
|
};
|
|
1692
1692
|
}
|
|
1693
|
-
function
|
|
1693
|
+
function ys(e) {
|
|
1694
1694
|
return e.offsetWidth;
|
|
1695
1695
|
}
|
|
1696
|
-
function
|
|
1696
|
+
function bs(e, t, n, i) {
|
|
1697
1697
|
return Math.sqrt(Math.pow(t.top - e.top, 2) + Math.pow(t.left - e.left, 2)) / Math.sqrt(Math.pow(t.top - n.top, 2) + Math.pow(t.left - n.left, 2)) * i.animation;
|
|
1698
1698
|
}
|
|
1699
|
-
var Ut = [],
|
|
1699
|
+
var Ut = [], _n = {
|
|
1700
1700
|
initializeByDefault: !0
|
|
1701
1701
|
}, Ee = {
|
|
1702
1702
|
mount: function(t) {
|
|
1703
|
-
for (var n in
|
|
1704
|
-
|
|
1703
|
+
for (var n in _n)
|
|
1704
|
+
_n.hasOwnProperty(n) && !(n in t) && (t[n] = _n[n]);
|
|
1705
1705
|
Ut.forEach(function(i) {
|
|
1706
1706
|
if (i.pluginName === t.pluginName)
|
|
1707
1707
|
throw "Sortable: Cannot mount plugin ".concat(t.pluginName, " more than once");
|
|
@@ -1748,10 +1748,10 @@ var Ut = [], Cn = {
|
|
|
1748
1748
|
}), o;
|
|
1749
1749
|
}
|
|
1750
1750
|
};
|
|
1751
|
-
function
|
|
1751
|
+
function vs(e) {
|
|
1752
1752
|
var t = e.sortable, n = e.rootEl, i = e.name, o = e.targetEl, r = e.cloneEl, s = e.toEl, a = e.fromEl, l = e.oldIndex, u = e.newIndex, c = e.oldDraggableIndex, d = e.newDraggableIndex, p = e.originalEvent, f = e.putSortable, g = e.extraEventProperties;
|
|
1753
1753
|
if (t = t || n && n[it], !!t) {
|
|
1754
|
-
var y,
|
|
1754
|
+
var y, D = t.options, M = "on" + i.charAt(0).toUpperCase() + i.substr(1);
|
|
1755
1755
|
window.CustomEvent && !vt && !xe ? y = new CustomEvent(i, {
|
|
1756
1756
|
bubbles: !0,
|
|
1757
1757
|
cancelable: !0
|
|
@@ -1759,30 +1759,30 @@ function ws(e) {
|
|
|
1759
1759
|
var H = ct(ct({}, g), Ee.getEventProperties(i, t));
|
|
1760
1760
|
for (var J in H)
|
|
1761
1761
|
y[J] = H[J];
|
|
1762
|
-
n && n.dispatchEvent(y),
|
|
1762
|
+
n && n.dispatchEvent(y), D[M] && D[M].call(t, y);
|
|
1763
1763
|
}
|
|
1764
1764
|
}
|
|
1765
|
-
var
|
|
1766
|
-
var i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o = i.evt, r =
|
|
1765
|
+
var ws = ["evt"], et = function(t, n) {
|
|
1766
|
+
var i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o = i.evt, r = cs(i, ws);
|
|
1767
1767
|
Ee.pluginEvent.bind(w)(t, n, ct({
|
|
1768
1768
|
dragEl: h,
|
|
1769
1769
|
parentEl: N,
|
|
1770
|
-
ghostEl:
|
|
1770
|
+
ghostEl: x,
|
|
1771
1771
|
rootEl: R,
|
|
1772
1772
|
nextEl: It,
|
|
1773
|
-
lastDownEl:
|
|
1773
|
+
lastDownEl: Re,
|
|
1774
1774
|
cloneEl: L,
|
|
1775
1775
|
cloneHidden: St,
|
|
1776
|
-
dragStarted:
|
|
1776
|
+
dragStarted: oe,
|
|
1777
1777
|
putSortable: X,
|
|
1778
1778
|
activeSortable: w.active,
|
|
1779
1779
|
originalEvent: o,
|
|
1780
1780
|
oldIndex: Xt,
|
|
1781
|
-
oldDraggableIndex:
|
|
1781
|
+
oldDraggableIndex: ce,
|
|
1782
1782
|
newIndex: rt,
|
|
1783
|
-
newDraggableIndex:
|
|
1784
|
-
hideGhostForTarget:
|
|
1785
|
-
unhideGhostForTarget:
|
|
1783
|
+
newDraggableIndex: Et,
|
|
1784
|
+
hideGhostForTarget: mo,
|
|
1785
|
+
unhideGhostForTarget: yo,
|
|
1786
1786
|
cloneNowHidden: function() {
|
|
1787
1787
|
St = !0;
|
|
1788
1788
|
},
|
|
@@ -1799,25 +1799,25 @@ var xs = ["evt"], et = function(t, n) {
|
|
|
1799
1799
|
}, r));
|
|
1800
1800
|
};
|
|
1801
1801
|
function Q(e) {
|
|
1802
|
-
|
|
1802
|
+
vs(ct({
|
|
1803
1803
|
putSortable: X,
|
|
1804
1804
|
cloneEl: L,
|
|
1805
1805
|
targetEl: h,
|
|
1806
1806
|
rootEl: R,
|
|
1807
1807
|
oldIndex: Xt,
|
|
1808
|
-
oldDraggableIndex:
|
|
1808
|
+
oldDraggableIndex: ce,
|
|
1809
1809
|
newIndex: rt,
|
|
1810
|
-
newDraggableIndex:
|
|
1810
|
+
newDraggableIndex: Et
|
|
1811
1811
|
}, e));
|
|
1812
1812
|
}
|
|
1813
|
-
var h, N,
|
|
1813
|
+
var h, N, x, R, It, Re, L, St, Xt, rt, ce, Et, Ae, X, Zt = !1, Fe = !1, je = [], Lt, lt, Cn, Tn, Si, Ai, oe, Ft, he, pe = !1, _e = !1, Le, G, Pn = [], Hn = !1, Ze = [], mn = typeof document < "u", Ce = io, _i = xe || vt ? "cssFloat" : "float", $s = mn && !oo && !io && "draggable" in document.createElement("div"), po = function() {
|
|
1814
1814
|
if (mn) {
|
|
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
|
-
}(),
|
|
1820
|
+
}(), fo = function(t, n) {
|
|
1821
1821
|
var i = v(t), o = parseInt(i.width) - parseInt(i.paddingLeft) - parseInt(i.paddingRight) - parseInt(i.borderLeftWidth) - parseInt(i.borderRightWidth), r = Wt(t, 0, n), s = Wt(t, 1, n), a = r && v(r), l = s && v(s), u = a && parseInt(a.marginLeft) + parseInt(a.marginRight) + k(r).width, c = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + k(s).width;
|
|
1822
1822
|
if (i.display === "flex")
|
|
1823
1823
|
return i.flexDirection === "column" || i.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
@@ -1827,13 +1827,13 @@ var h, N, E, R, It, De, L, St, Xt, rt, de, $t, Se, X, Zt = !1, Ue = !1, Fe = [],
|
|
|
1827
1827
|
var d = a.float === "left" ? "left" : "right";
|
|
1828
1828
|
return s && (l.clear === "both" || l.clear === d) ? "vertical" : "horizontal";
|
|
1829
1829
|
}
|
|
1830
|
-
return r && (a.display === "block" || a.display === "flex" || a.display === "table" || a.display === "grid" || u >= o && i[
|
|
1831
|
-
},
|
|
1830
|
+
return r && (a.display === "block" || a.display === "flex" || a.display === "table" || a.display === "grid" || u >= o && i[_i] === "none" || s && i[_i] === "none" && u + c > o) ? "vertical" : "horizontal";
|
|
1831
|
+
}, xs = function(t, n, i) {
|
|
1832
1832
|
var o = i ? t.left : t.top, r = i ? t.right : t.bottom, s = i ? t.width : t.height, a = i ? n.left : n.top, l = i ? n.right : n.bottom, u = i ? n.width : n.height;
|
|
1833
1833
|
return o === a || r === l || o + s / 2 === a + u / 2;
|
|
1834
|
-
},
|
|
1834
|
+
}, Es = function(t, n) {
|
|
1835
1835
|
var i;
|
|
1836
|
-
return
|
|
1836
|
+
return je.some(function(o) {
|
|
1837
1837
|
var r = o[it].options.emptyInsertThreshold;
|
|
1838
1838
|
if (!(!r || ti(o))) {
|
|
1839
1839
|
var s = k(o), a = t >= s.left - r && t <= s.right + r, l = n >= s.top - r && n <= s.bottom + r;
|
|
@@ -1841,7 +1841,7 @@ var h, N, E, R, It, De, L, St, Xt, rt, de, $t, Se, X, Zt = !1, Ue = !1, Fe = [],
|
|
|
1841
1841
|
return i = o;
|
|
1842
1842
|
}
|
|
1843
1843
|
}), i;
|
|
1844
|
-
},
|
|
1844
|
+
}, go = function(t) {
|
|
1845
1845
|
function n(r, s) {
|
|
1846
1846
|
return function(a, l, u, c) {
|
|
1847
1847
|
var d = a.options.group.name && l.options.group.name && a.options.group.name === l.options.group.name;
|
|
@@ -1861,19 +1861,19 @@ var h, N, E, R, It, De, L, St, Xt, rt, de, $t, Se, X, Zt = !1, Ue = !1, Fe = [],
|
|
|
1861
1861
|
(!o || Oe(o) != "object") && (o = {
|
|
1862
1862
|
name: o
|
|
1863
1863
|
}), i.name = o.name, i.checkPull = n(o.pull, !0), i.checkPut = n(o.put), i.revertClone = o.revertClone, t.group = i;
|
|
1864
|
+
}, mo = function() {
|
|
1865
|
+
!po && x && v(x, "display", "none");
|
|
1864
1866
|
}, yo = function() {
|
|
1865
|
-
!
|
|
1866
|
-
}, bo = function() {
|
|
1867
|
-
!fo && E && v(E, "display", "");
|
|
1867
|
+
!po && x && v(x, "display", "");
|
|
1868
1868
|
};
|
|
1869
|
-
mn && !
|
|
1870
|
-
if (
|
|
1871
|
-
return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(),
|
|
1869
|
+
mn && !oo && document.addEventListener("click", function(e) {
|
|
1870
|
+
if (Fe)
|
|
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 n =
|
|
1876
|
+
var n = Es(t.clientX, t.clientY);
|
|
1877
1877
|
if (n) {
|
|
1878
1878
|
var i = {};
|
|
1879
1879
|
for (var o in t)
|
|
@@ -1881,7 +1881,7 @@ var Mt = function(t) {
|
|
|
1881
1881
|
i.target = i.rootEl = n, i.preventDefault = void 0, i.stopPropagation = void 0, n[it]._onDragOver(i);
|
|
1882
1882
|
}
|
|
1883
1883
|
}
|
|
1884
|
-
},
|
|
1884
|
+
}, Ss = function(t) {
|
|
1885
1885
|
h && h.parentNode[it]._isOutsideThisEl(t.target);
|
|
1886
1886
|
};
|
|
1887
1887
|
function w(e, t) {
|
|
@@ -1903,7 +1903,7 @@ function w(e, t) {
|
|
|
1903
1903
|
// will be set to same as swapThreshold if default
|
|
1904
1904
|
removeCloneOnHide: !0,
|
|
1905
1905
|
direction: function() {
|
|
1906
|
-
return
|
|
1906
|
+
return fo(e, this.options);
|
|
1907
1907
|
},
|
|
1908
1908
|
ghostClass: "sortable-ghost",
|
|
1909
1909
|
chosenClass: "sortable-chosen",
|
|
@@ -1930,16 +1930,16 @@ 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 && !ue,
|
|
1934
1934
|
emptyInsertThreshold: 5
|
|
1935
1935
|
};
|
|
1936
1936
|
Ee.initializePlugins(this, e, n);
|
|
1937
1937
|
for (var i in n)
|
|
1938
1938
|
!(i in t) && (t[i] = n[i]);
|
|
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));
|
|
1942
|
-
this.nativeDraggable = t.forceFallback ? !1 :
|
|
1942
|
+
this.nativeDraggable = t.forceFallback ? !1 : $s, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? T(e, "pointerdown", this._onTapStart) : (T(e, "mousedown", this._onTapStart), T(e, "touchstart", this._onTapStart)), this.nativeDraggable && (T(e, "dragover", this), T(e, "dragenter", this)), je.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), bt(this, ms());
|
|
1943
1943
|
}
|
|
1944
1944
|
w.prototype = /** @lends Sortable.prototype */
|
|
1945
1945
|
{
|
|
@@ -1953,8 +1953,8 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
1953
1953
|
_onTapStart: function(t) {
|
|
1954
1954
|
if (t.cancelable) {
|
|
1955
1955
|
var n = this, i = this.el, o = this.options, r = o.preventOnFilter, s = t.type, a = t.touches && t.touches[0] || t.pointerType && t.pointerType === "touch" && t, l = (a || t).target, u = t.target.shadowRoot && (t.path && t.path[0] || t.composedPath && t.composedPath()[0]) || l, c = o.filter;
|
|
1956
|
-
if (
|
|
1957
|
-
if (Xt = st(l),
|
|
1956
|
+
if (Rs(i), !h && !(/mousedown|pointerdown/.test(s) && t.button !== 0 || o.disabled) && !u.isContentEditable && !(!this.nativeDraggable && ue && l && l.tagName.toUpperCase() === "SELECT") && (l = ut(l, o.draggable, i, !1), !(l && l.animated) && Re !== l)) {
|
|
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
1960
|
sortable: n,
|
|
@@ -1992,7 +1992,7 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
1992
1992
|
var o = this, r = o.el, s = o.options, a = r.ownerDocument, l;
|
|
1993
1993
|
if (i && !h && i.parentNode === r) {
|
|
1994
1994
|
var u = k(i);
|
|
1995
|
-
if (R = r, h = i, N = h.parentNode, It = h.nextSibling,
|
|
1995
|
+
if (R = r, h = i, N = h.parentNode, It = h.nextSibling, Re = i, Ae = s.group, w.dragged = h, Lt = {
|
|
1996
1996
|
target: h,
|
|
1997
1997
|
clientX: (n || t).clientX,
|
|
1998
1998
|
clientY: (n || t).clientY
|
|
@@ -2009,7 +2009,7 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2009
2009
|
originalEvent: t
|
|
2010
2010
|
}), ot(h, s.chosenClass, !0);
|
|
2011
2011
|
}, s.ignore.split(",").forEach(function(c) {
|
|
2012
|
-
|
|
2012
|
+
ao(h, c.trim(), Dn);
|
|
2013
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), wi && this.nativeDraggable && (this.options.touchStartThreshold = 4, h.draggable = !0), et("delayStart", this, {
|
|
2014
2014
|
evt: t
|
|
2015
2015
|
}), s.delay && (!s.delayOnTouchOnly || n) && (!this.nativeDraggable || !(xe || vt))) {
|
|
@@ -2027,7 +2027,7 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2027
2027
|
Math.max(Math.abs(n.clientX - this._lastX), Math.abs(n.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1)) && this._disableDelayedDrag();
|
|
2028
2028
|
},
|
|
2029
2029
|
_disableDelayedDrag: function() {
|
|
2030
|
-
h &&
|
|
2030
|
+
h && Dn(h), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
|
|
2031
2031
|
},
|
|
2032
2032
|
_disableDelayedDragEvents: function() {
|
|
2033
2033
|
var t = this.el.ownerDocument;
|
|
@@ -2036,7 +2036,7 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2036
2036
|
_triggerDragStart: function(t, n) {
|
|
2037
2037
|
n = n || t.pointerType == "touch" && t, !this.nativeDraggable || n ? this.options.supportPointer ? T(document, "pointermove", this._onTouchMove) : n ? T(document, "touchmove", this._onTouchMove) : T(document, "mousemove", this._onTouchMove) : (T(h, "dragend", this), T(R, "dragstart", this._onDragStart));
|
|
2038
2038
|
try {
|
|
2039
|
-
document.selection ?
|
|
2039
|
+
document.selection ? Me(function() {
|
|
2040
2040
|
document.selection.empty();
|
|
2041
2041
|
}) : window.getSelection().removeAllRanges();
|
|
2042
2042
|
} catch {
|
|
@@ -2046,7 +2046,7 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2046
2046
|
if (Zt = !1, R && h) {
|
|
2047
2047
|
et("dragStarted", this, {
|
|
2048
2048
|
evt: n
|
|
2049
|
-
}), this.nativeDraggable && T(document, "dragover",
|
|
2049
|
+
}), this.nativeDraggable && T(document, "dragover", Ss);
|
|
2050
2050
|
var i = this.options;
|
|
2051
2051
|
!t && ot(h, i.dragClass, !1), ot(h, i.ghostClass, !0), w.active = this, t && this._appendGhost(), Q({
|
|
2052
2052
|
sortable: this,
|
|
@@ -2058,7 +2058,7 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2058
2058
|
},
|
|
2059
2059
|
_emulateDragOver: function() {
|
|
2060
2060
|
if (lt) {
|
|
2061
|
-
this._lastX = lt.clientX, this._lastY = lt.clientY,
|
|
2061
|
+
this._lastX = lt.clientX, this._lastY = lt.clientY, mo();
|
|
2062
2062
|
for (var t = document.elementFromPoint(lt.clientX, lt.clientY), n = t; t && t.shadowRoot && (t = t.shadowRoot.elementFromPoint(lt.clientX, lt.clientY), t !== n); )
|
|
2063
2063
|
n = t;
|
|
2064
2064
|
if (h.parentNode[it]._isOutsideThisEl(t), n)
|
|
@@ -2074,20 +2074,20 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2074
2074
|
break;
|
|
2075
2075
|
}
|
|
2076
2076
|
t = n;
|
|
2077
|
-
} while (n =
|
|
2078
|
-
|
|
2077
|
+
} while (n = so(n));
|
|
2078
|
+
yo();
|
|
2079
2079
|
}
|
|
2080
2080
|
},
|
|
2081
2081
|
_onTouchMove: function(t) {
|
|
2082
2082
|
if (Lt) {
|
|
2083
|
-
var n = this.options, i = n.fallbackTolerance, o = n.fallbackOffset, r = t.touches ? t.touches[0] : t, s =
|
|
2083
|
+
var n = this.options, i = n.fallbackTolerance, o = n.fallbackOffset, r = t.touches ? t.touches[0] : t, s = x && qt(x, !0), a = x && s && s.a, l = x && s && s.d, u = Ce && G && Ei(G), c = (r.clientX - Lt.clientX + o.x) / (a || 1) + (u ? u[0] - Pn[0] : 0) / (a || 1), d = (r.clientY - Lt.clientY + o.y) / (l || 1) + (u ? u[1] - Pn[1] : 0) / (l || 1);
|
|
2084
2084
|
if (!w.active && !Zt) {
|
|
2085
2085
|
if (i && Math.max(Math.abs(r.clientX - this._lastX), Math.abs(r.clientY - this._lastY)) < i)
|
|
2086
2086
|
return;
|
|
2087
2087
|
this._onDragStart(t, !0);
|
|
2088
2088
|
}
|
|
2089
|
-
if (
|
|
2090
|
-
s ? (s.e += c - (
|
|
2089
|
+
if (x) {
|
|
2090
|
+
s ? (s.e += c - (Cn || 0), s.f += d - (Tn || 0)) : s = {
|
|
2091
2091
|
a: 1,
|
|
2092
2092
|
b: 0,
|
|
2093
2093
|
c: 0,
|
|
@@ -2096,20 +2096,20 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2096
2096
|
f: d
|
|
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(
|
|
2099
|
+
v(x, "webkitTransform", p), v(x, "mozTransform", p), v(x, "msTransform", p), v(x, "transform", p), Cn = c, Tn = d, lt = r;
|
|
2100
2100
|
}
|
|
2101
2101
|
t.cancelable && t.preventDefault();
|
|
2102
2102
|
}
|
|
2103
2103
|
},
|
|
2104
2104
|
_appendGhost: function() {
|
|
2105
|
-
if (!
|
|
2105
|
+
if (!x) {
|
|
2106
2106
|
var t = this.options.fallbackOnBody ? document.body : R, n = k(h, !0, Ce, !0, t), i = 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 = dt()), n.top += G.scrollTop, n.left += G.scrollLeft) : G = dt(), Pn =
|
|
2110
|
+
G !== document.body && G !== document.documentElement ? (G === document && (G = dt()), n.top += G.scrollTop, n.left += G.scrollLeft) : G = dt(), Pn = Ei(G);
|
|
2111
2111
|
}
|
|
2112
|
-
|
|
2112
|
+
x = h.cloneNode(!0), ot(x, i.ghostClass, !1), ot(x, i.fallbackClass, !0), ot(x, i.dragClass, !0), v(x, "transition", ""), v(x, "transform", ""), v(x, "box-sizing", "border-box"), v(x, "margin", 0), v(x, "top", n.top), v(x, "left", n.left), v(x, "width", n.width), v(x, "height", n.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", Si / parseInt(x.style.width) * 100 + "% " + Ai / parseInt(x.style.height) * 100 + "%");
|
|
2113
2113
|
}
|
|
2114
2114
|
},
|
|
2115
2115
|
_onDragStart: function(t, n) {
|
|
@@ -2120,19 +2120,19 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2120
2120
|
this._onDrop();
|
|
2121
2121
|
return;
|
|
2122
2122
|
}
|
|
2123
|
-
et("setupClone", this), w.eventCanceled || (L =
|
|
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), i.cloneId = Me(function() {
|
|
2124
2124
|
et("clone", i), !w.eventCanceled && (i.options.removeCloneOnHide || R.insertBefore(L, h), i._hideClone(), Q({
|
|
2125
2125
|
sortable: i,
|
|
2126
2126
|
name: "clone"
|
|
2127
2127
|
}));
|
|
2128
|
-
}), !n && ot(h, r.dragClass, !0), n ? (
|
|
2128
|
+
}), !n && ot(h, r.dragClass, !0), n ? (Fe = !0, i._loopId = setInterval(i._emulateDragOver, 50)) : (A(document, "mouseup", i._onDrop), A(document, "touchend", i._onDrop), A(document, "touchcancel", i._onDrop), o && (o.effectAllowed = "move", r.setData && r.setData.call(i, o, h)), T(document, "drop", i), v(h, "transform", "translateZ(0)")), Zt = !0, i._dragStartId = Me(i._dragStarted.bind(i, n, t)), T(document, "selectstart", i), oe = !0, ue && 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 n = this.el, i = t.target, o, r, s, a = this.options, l = a.group, u = w.active, c =
|
|
2132
|
+
var n = this.el, i = t.target, o, r, s, a = this.options, l = a.group, u = w.active, c = Ae === l, d = a.sort, p = X || u, f, g = this, y = !1;
|
|
2133
2133
|
if (Hn) return;
|
|
2134
|
-
function
|
|
2135
|
-
et(
|
|
2134
|
+
function D(ee, Xo) {
|
|
2135
|
+
et(ee, g, ct({
|
|
2136
2136
|
evt: t,
|
|
2137
2137
|
isOwner: c,
|
|
2138
2138
|
axis: f ? "vertical" : "horizontal",
|
|
@@ -2143,70 +2143,70 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2143
2143
|
fromSortable: p,
|
|
2144
2144
|
target: i,
|
|
2145
2145
|
completed: H,
|
|
2146
|
-
onMove: function(ri,
|
|
2147
|
-
return
|
|
2146
|
+
onMove: function(ri, qo) {
|
|
2147
|
+
return Te(R, n, h, o, ri, k(ri), t, qo);
|
|
2148
2148
|
},
|
|
2149
2149
|
changed: J
|
|
2150
|
-
},
|
|
2150
|
+
}, Xo));
|
|
2151
2151
|
}
|
|
2152
2152
|
function M() {
|
|
2153
|
-
|
|
2153
|
+
D("dragOverAnimationCapture"), g.captureAnimationState(), g !== p && p.captureAnimationState();
|
|
2154
2154
|
}
|
|
2155
|
-
function H(
|
|
2156
|
-
return
|
|
2157
|
-
insertion:
|
|
2158
|
-
}),
|
|
2159
|
-
|
|
2160
|
-
}), g !== p && (p.animateAll(), p._ignoreWhileAnimating = null)), (i === h && !h.animated || i === n && !i.animated) && (Ft = null), !a.dragoverBubble && !t.rootEl && i !== document && (h.parentNode[it]._isOutsideThisEl(t.target), !
|
|
2155
|
+
function H(ee) {
|
|
2156
|
+
return D("dragOverCompleted", {
|
|
2157
|
+
insertion: ee
|
|
2158
|
+
}), ee && (c ? u._hideClone() : u._showClone(g), g !== p && (ot(h, X ? X.options.ghostClass : u.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 = i), g.animateAll(function() {
|
|
2159
|
+
D("dragOverAnimationComplete"), g._ignoreWhileAnimating = null;
|
|
2160
|
+
}), g !== p && (p.animateAll(), p._ignoreWhileAnimating = null)), (i === h && !h.animated || i === n && !i.animated) && (Ft = null), !a.dragoverBubble && !t.rootEl && i !== document && (h.parentNode[it]._isOutsideThisEl(t.target), !ee && Mt(t)), !a.dragoverBubble && t.stopPropagation && t.stopPropagation(), y = !0;
|
|
2161
2161
|
}
|
|
2162
2162
|
function J() {
|
|
2163
|
-
rt = st(h),
|
|
2163
|
+
rt = st(h), Et = st(h, a.draggable), Q({
|
|
2164
2164
|
sortable: g,
|
|
2165
2165
|
name: "change",
|
|
2166
2166
|
toEl: n,
|
|
2167
2167
|
newIndex: rt,
|
|
2168
|
-
newDraggableIndex:
|
|
2168
|
+
newDraggableIndex: Et,
|
|
2169
2169
|
originalEvent: t
|
|
2170
2170
|
});
|
|
2171
2171
|
}
|
|
2172
|
-
if (t.preventDefault !== void 0 && t.cancelable && t.preventDefault(), i = ut(i, a.draggable, n, !0),
|
|
2172
|
+
if (t.preventDefault !== void 0 && t.cancelable && t.preventDefault(), i = ut(i, a.draggable, n, !0), D("dragOver"), w.eventCanceled) return y;
|
|
2173
2173
|
if (h.contains(t.target) || i.animated && i.animatingX && i.animatingY || g._ignoreWhileAnimating === i)
|
|
2174
2174
|
return H(!1);
|
|
2175
|
-
if (
|
|
2176
|
-
if (f = this._getDirection(t, i) === "vertical", o = k(h),
|
|
2175
|
+
if (Fe = !1, u && !a.disabled && (c ? d || (s = N !== R) : X === this || (this.lastPutMode = Ae.checkPull(this, u, h, t)) && l.checkPut(this, u, h, t))) {
|
|
2176
|
+
if (f = this._getDirection(t, i) === "vertical", o = k(h), D("dragOverValid"), w.eventCanceled) return y;
|
|
2177
2177
|
if (s)
|
|
2178
|
-
return N = R, M(), this._hideClone(),
|
|
2178
|
+
return N = R, M(), this._hideClone(), D("revert"), w.eventCanceled || (It ? R.insertBefore(h, It) : R.appendChild(h)), H(!0);
|
|
2179
2179
|
var Z = ti(n, a.draggable);
|
|
2180
|
-
if (!Z ||
|
|
2180
|
+
if (!Z || Ts(t, f, this) && !Z.animated) {
|
|
2181
2181
|
if (Z === h)
|
|
2182
2182
|
return H(!1);
|
|
2183
|
-
if (Z && n === t.target && (i = Z), i && (r = k(i)),
|
|
2183
|
+
if (Z && n === t.target && (i = Z), i && (r = k(i)), Te(R, n, h, o, i, r, t, !!i) !== !1)
|
|
2184
2184
|
return M(), Z && Z.nextSibling ? n.insertBefore(h, Z.nextSibling) : n.appendChild(h), N = n, J(), H(!0);
|
|
2185
|
-
} else if (Z &&
|
|
2185
|
+
} else if (Z && Cs(t, f, this)) {
|
|
2186
2186
|
var K = Wt(n, 0, a, !0);
|
|
2187
2187
|
if (K === h)
|
|
2188
2188
|
return H(!1);
|
|
2189
|
-
if (i = K, r = k(i),
|
|
2189
|
+
if (i = K, r = k(i), Te(R, n, h, o, i, r, t, !1) !== !1)
|
|
2190
2190
|
return M(), n.insertBefore(h, K), N = n, J(), H(!0);
|
|
2191
2191
|
} else if (i.parentNode === n) {
|
|
2192
2192
|
r = k(i);
|
|
2193
|
-
var b = 0,
|
|
2194
|
-
Ft !== i && (
|
|
2193
|
+
var b = 0, O, z = h.parentNode !== n, U = !xs(h.animated && h.toRect || o, i.animated && i.toRect || r, f), Kt = f ? "top" : "left", wt = xi(i, "top", "top") || xi(h, "top", "top"), Qt = wt ? wt.scrollTop : void 0;
|
|
2194
|
+
Ft !== i && (O = r[Kt], pe = !1, _e = !U && a.invertSwap || z), b = Ps(t, i, r, f, U ? 1 : a.swapThreshold, a.invertedSwapThreshold == null ? a.swapThreshold : a.invertedSwapThreshold, _e, Ft === i);
|
|
2195
2195
|
var ht;
|
|
2196
2196
|
if (b !== 0) {
|
|
2197
|
-
var
|
|
2197
|
+
var Dt = st(h);
|
|
2198
2198
|
do
|
|
2199
|
-
|
|
2200
|
-
while (ht && (v(ht, "display") === "none" || ht ===
|
|
2199
|
+
Dt -= b, ht = N.children[Dt];
|
|
2200
|
+
while (ht && (v(ht, "display") === "none" || ht === x));
|
|
2201
2201
|
}
|
|
2202
2202
|
if (b === 0 || ht === i)
|
|
2203
2203
|
return H(!1);
|
|
2204
|
-
Ft = i,
|
|
2205
|
-
var
|
|
2206
|
-
|
|
2207
|
-
var
|
|
2208
|
-
if (
|
|
2209
|
-
return (
|
|
2204
|
+
Ft = i, he = b;
|
|
2205
|
+
var te = i.nextElementSibling, $t = !1;
|
|
2206
|
+
$t = b === 1;
|
|
2207
|
+
var Se = Te(R, n, h, o, i, r, t, $t);
|
|
2208
|
+
if (Se !== !1)
|
|
2209
|
+
return (Se === 1 || Se === -1) && ($t = Se === 1), Hn = !0, setTimeout(_s, 30), M(), $t && !te ? n.appendChild(h) : i.parentNode.insertBefore(h, $t ? te : i), wt && uo(wt, 0, Qt - wt.scrollTop), N = h.parentNode, O !== void 0 && !_e && (Le = Math.abs(O - k(i)[Kt])), J(), H(!0);
|
|
2210
2210
|
}
|
|
2211
2211
|
if (n.contains(h))
|
|
2212
2212
|
return H(!1);
|
|
@@ -2223,13 +2223,13 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2223
2223
|
},
|
|
2224
2224
|
_onDrop: function(t) {
|
|
2225
2225
|
var n = this.el, i = this.options;
|
|
2226
|
-
if (rt = st(h),
|
|
2226
|
+
if (rt = st(h), Et = st(h, i.draggable), et("drop", this, {
|
|
2227
2227
|
evt: t
|
|
2228
|
-
}), N = h && h.parentNode, rt = st(h),
|
|
2228
|
+
}), N = h && h.parentNode, rt = st(h), Et = st(h, i.draggable), w.eventCanceled) {
|
|
2229
2229
|
this._nulling();
|
|
2230
2230
|
return;
|
|
2231
2231
|
}
|
|
2232
|
-
Zt = !1,
|
|
2232
|
+
Zt = !1, _e = !1, pe = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Vn(this.cloneId), Vn(this._dragStartId), this.nativeDraggable && (A(document, "drop", this), A(n, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), ue && v(document.body, "user-select", ""), v(h, "transform", ""), t && (oe && (t.cancelable && t.preventDefault(), !i.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), Dn(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,
|
|
@@ -2268,7 +2268,7 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2268
2268
|
name: "sort",
|
|
2269
2269
|
toEl: N,
|
|
2270
2270
|
originalEvent: t
|
|
2271
|
-
})), w.active && ((rt == null || rt === -1) && (rt = Xt,
|
|
2271
|
+
})), w.active && ((rt == null || rt === -1) && (rt = Xt, Et = ce), Q({
|
|
2272
2272
|
sortable: this,
|
|
2273
2273
|
name: "end",
|
|
2274
2274
|
toEl: N,
|
|
@@ -2276,9 +2276,9 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2276
2276
|
}), this.save()))), this._nulling();
|
|
2277
2277
|
},
|
|
2278
2278
|
_nulling: function() {
|
|
2279
|
-
et("nulling", this), R = h = N =
|
|
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
|
-
}),
|
|
2281
|
+
}), Ze.length = Cn = Tn = 0;
|
|
2282
2282
|
},
|
|
2283
2283
|
handleEvent: function(t) {
|
|
2284
2284
|
switch (t.type) {
|
|
@@ -2288,7 +2288,7 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2288
2288
|
break;
|
|
2289
2289
|
case "dragenter":
|
|
2290
2290
|
case "dragover":
|
|
2291
|
-
h && (this._onDragOver(t),
|
|
2291
|
+
h && (this._onDragOver(t), As(t));
|
|
2292
2292
|
break;
|
|
2293
2293
|
case "selectstart":
|
|
2294
2294
|
t.preventDefault();
|
|
@@ -2301,7 +2301,7 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2301
2301
|
*/
|
|
2302
2302
|
toArray: function() {
|
|
2303
2303
|
for (var t = [], n, i = this.el.children, o = 0, r = i.length, s = this.options; o < r; o++)
|
|
2304
|
-
n = i[o], ut(n, s.draggable, this.el, !1) && t.push(n.getAttribute(s.dataIdAttr) ||
|
|
2304
|
+
n = i[o], ut(n, s.draggable, this.el, !1) && t.push(n.getAttribute(s.dataIdAttr) || Os(n));
|
|
2305
2305
|
return t;
|
|
2306
2306
|
},
|
|
2307
2307
|
/**
|
|
@@ -2344,7 +2344,7 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2344
2344
|
if (n === void 0)
|
|
2345
2345
|
return i[t];
|
|
2346
2346
|
var o = Ee.modifyOption(this, t, n);
|
|
2347
|
-
typeof o < "u" ? i[t] = o : i[t] = n, t === "group" &&
|
|
2347
|
+
typeof o < "u" ? i[t] = o : i[t] = n, t === "group" && go(i);
|
|
2348
2348
|
},
|
|
2349
2349
|
/**
|
|
2350
2350
|
* Destroy
|
|
@@ -2354,7 +2354,7 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2354
2354
|
var t = this.el;
|
|
2355
2355
|
t[it] = 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(n) {
|
|
2356
2356
|
n.removeAttribute("draggable");
|
|
2357
|
-
}), this._onDrop(), this._disableDelayedDragEvents(),
|
|
2357
|
+
}), this._onDrop(), this._disableDelayedDragEvents(), je.splice(je.indexOf(this.el), 1), this.el = t = null;
|
|
2358
2358
|
},
|
|
2359
2359
|
_hideClone: function() {
|
|
2360
2360
|
if (!St) {
|
|
@@ -2373,38 +2373,38 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2373
2373
|
}
|
|
2374
2374
|
}
|
|
2375
2375
|
};
|
|
2376
|
-
function
|
|
2376
|
+
function As(e) {
|
|
2377
2377
|
e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
|
|
2378
2378
|
}
|
|
2379
|
-
function
|
|
2379
|
+
function Te(e, t, n, i, o, r, s, a) {
|
|
2380
2380
|
var l, u = e[it], c = u.options.onMove, d;
|
|
2381
2381
|
return window.CustomEvent && !vt && !xe ? l = new CustomEvent("move", {
|
|
2382
2382
|
bubbles: !0,
|
|
2383
2383
|
cancelable: !0
|
|
2384
2384
|
}) : (l = document.createEvent("Event"), l.initEvent("move", !0, !0)), l.to = t, l.from = e, l.dragged = n, l.draggedRect = i, l.related = o || t, l.relatedRect = r || k(t), l.willInsertAfter = a, l.originalEvent = s, e.dispatchEvent(l), c && (d = c.call(u, l, s)), d;
|
|
2385
2385
|
}
|
|
2386
|
-
function
|
|
2386
|
+
function Dn(e) {
|
|
2387
2387
|
e.draggable = !1;
|
|
2388
2388
|
}
|
|
2389
2389
|
function _s() {
|
|
2390
2390
|
Hn = !1;
|
|
2391
2391
|
}
|
|
2392
|
-
function
|
|
2393
|
-
var i = k(Wt(n.el, 0, n.options, !0)), o =
|
|
2392
|
+
function Cs(e, t, n) {
|
|
2393
|
+
var i = k(Wt(n.el, 0, n.options, !0)), o = ho(n.el, n.options, x), r = 10;
|
|
2394
2394
|
return t ? e.clientX < o.left - r || e.clientY < i.top && e.clientX < i.right : e.clientY < o.top - r || e.clientY < i.bottom && e.clientX < i.left;
|
|
2395
2395
|
}
|
|
2396
|
-
function
|
|
2397
|
-
var i = k(ti(n.el, n.options.draggable)), o =
|
|
2396
|
+
function Ts(e, t, n) {
|
|
2397
|
+
var i = k(ti(n.el, n.options.draggable)), o = ho(n.el, n.options, x), r = 10;
|
|
2398
2398
|
return t ? e.clientX > o.right + r || e.clientY > i.bottom && e.clientX > i.left : e.clientY > o.bottom + r || e.clientX > i.right && e.clientY > i.top;
|
|
2399
2399
|
}
|
|
2400
|
-
function
|
|
2400
|
+
function Ps(e, t, n, i, o, r, s, a) {
|
|
2401
2401
|
var l = i ? e.clientY : e.clientX, u = i ? n.height : n.width, c = i ? n.top : n.left, d = i ? n.bottom : n.right, p = !1;
|
|
2402
2402
|
if (!s) {
|
|
2403
|
-
if (a &&
|
|
2404
|
-
if (!
|
|
2403
|
+
if (a && Le < u * o) {
|
|
2404
|
+
if (!pe && (he === 1 ? l > c + u * r / 2 : l < d - u * r / 2) && (pe = !0), pe)
|
|
2405
2405
|
p = !0;
|
|
2406
|
-
else if (
|
|
2407
|
-
return -
|
|
2406
|
+
else if (he === 1 ? l < c + Le : l > d - Le)
|
|
2407
|
+
return -he;
|
|
2408
2408
|
} else if (l > c + u * (1 - o) / 2 && l < d - u * (1 - o) / 2)
|
|
2409
2409
|
return Ds(t);
|
|
2410
2410
|
}
|
|
@@ -2413,19 +2413,19 @@ function Os(e, t, n, i, o, r, s, a) {
|
|
|
2413
2413
|
function Ds(e) {
|
|
2414
2414
|
return st(h) < st(e) ? 1 : -1;
|
|
2415
2415
|
}
|
|
2416
|
-
function
|
|
2416
|
+
function Os(e) {
|
|
2417
2417
|
for (var t = e.tagName + e.className + e.src + e.href + e.textContent, n = t.length, i = 0; n--; )
|
|
2418
2418
|
i += t.charCodeAt(n);
|
|
2419
2419
|
return i.toString(36);
|
|
2420
2420
|
}
|
|
2421
|
-
function
|
|
2422
|
-
|
|
2421
|
+
function Rs(e) {
|
|
2422
|
+
Ze.length = 0;
|
|
2423
2423
|
for (var t = e.getElementsByTagName("input"), n = t.length; n--; ) {
|
|
2424
2424
|
var i = t[n];
|
|
2425
|
-
i.checked &&
|
|
2425
|
+
i.checked && Ze.push(i);
|
|
2426
2426
|
}
|
|
2427
2427
|
}
|
|
2428
|
-
function
|
|
2428
|
+
function Me(e) {
|
|
2429
2429
|
return setTimeout(e, 0);
|
|
2430
2430
|
}
|
|
2431
2431
|
function Vn(e) {
|
|
@@ -2438,19 +2438,19 @@ w.utils = {
|
|
|
2438
2438
|
on: T,
|
|
2439
2439
|
off: A,
|
|
2440
2440
|
css: v,
|
|
2441
|
-
find:
|
|
2441
|
+
find: ao,
|
|
2442
2442
|
is: function(t, n) {
|
|
2443
2443
|
return !!ut(t, n, t, !1);
|
|
2444
2444
|
},
|
|
2445
|
-
extend:
|
|
2446
|
-
throttle:
|
|
2445
|
+
extend: fs,
|
|
2446
|
+
throttle: lo,
|
|
2447
2447
|
closest: ut,
|
|
2448
2448
|
toggleClass: ot,
|
|
2449
|
-
clone:
|
|
2449
|
+
clone: co,
|
|
2450
2450
|
index: st,
|
|
2451
|
-
nextTick:
|
|
2451
|
+
nextTick: Me,
|
|
2452
2452
|
cancelNextTick: Vn,
|
|
2453
|
-
detectDirection:
|
|
2453
|
+
detectDirection: fo,
|
|
2454
2454
|
getChild: Wt,
|
|
2455
2455
|
expando: it
|
|
2456
2456
|
};
|
|
@@ -2469,9 +2469,9 @@ w.mount = function() {
|
|
|
2469
2469
|
w.create = function(e, t) {
|
|
2470
2470
|
return new w(e, t);
|
|
2471
2471
|
};
|
|
2472
|
-
w.version =
|
|
2473
|
-
var B = [],
|
|
2474
|
-
function
|
|
2472
|
+
w.version = hs;
|
|
2473
|
+
var B = [], re, Bn, kn = !1, On, Rn, ze, se;
|
|
2474
|
+
function Ls() {
|
|
2475
2475
|
function e() {
|
|
2476
2476
|
this.defaults = {
|
|
2477
2477
|
scroll: !0,
|
|
@@ -2493,29 +2493,29 @@ function Ms() {
|
|
|
2493
2493
|
!this.options.dragOverBubble && !i.rootEl && this._handleAutoScroll(i);
|
|
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)), Ci(), Ie(), gs();
|
|
2497
2497
|
},
|
|
2498
2498
|
nulling: function() {
|
|
2499
|
-
|
|
2499
|
+
ze = Bn = re = kn = se = On = Rn = null, B.length = 0;
|
|
2500
2500
|
},
|
|
2501
2501
|
_handleFallbackAutoScroll: function(n) {
|
|
2502
2502
|
this._handleAutoScroll(n, !0);
|
|
2503
2503
|
},
|
|
2504
2504
|
_handleAutoScroll: function(n, i) {
|
|
2505
2505
|
var o = this, r = (n.touches ? n.touches[0] : n).clientX, s = (n.touches ? n.touches[0] : n).clientY, a = document.elementFromPoint(r, s);
|
|
2506
|
-
if (
|
|
2506
|
+
if (ze = n, i || this.options.forceAutoScrollFallback || xe || vt || ue) {
|
|
2507
2507
|
Ln(n, this.options, a, i);
|
|
2508
|
-
var l =
|
|
2509
|
-
kn && (!
|
|
2510
|
-
var u =
|
|
2511
|
-
u !== l && (l = u,
|
|
2512
|
-
}, 10),
|
|
2508
|
+
var l = _t(a, !0);
|
|
2509
|
+
kn && (!se || r !== On || s !== Rn) && (se && Ci(), se = setInterval(function() {
|
|
2510
|
+
var u = _t(document.elementFromPoint(r, s), !0);
|
|
2511
|
+
u !== l && (l = u, Ie()), Ln(n, o.options, u, i);
|
|
2512
|
+
}, 10), On = r, Rn = s);
|
|
2513
2513
|
} else {
|
|
2514
|
-
if (!this.options.bubbleScroll ||
|
|
2515
|
-
|
|
2514
|
+
if (!this.options.bubbleScroll || _t(a, !0) === dt()) {
|
|
2515
|
+
Ie();
|
|
2516
2516
|
return;
|
|
2517
2517
|
}
|
|
2518
|
-
Ln(n, this.options,
|
|
2518
|
+
Ln(n, this.options, _t(a, !1), !1);
|
|
2519
2519
|
}
|
|
2520
2520
|
}
|
|
2521
2521
|
}, bt(e, {
|
|
@@ -2523,37 +2523,37 @@ function Ms() {
|
|
|
2523
2523
|
initializeByDefault: !0
|
|
2524
2524
|
});
|
|
2525
2525
|
}
|
|
2526
|
-
function
|
|
2526
|
+
function Ie() {
|
|
2527
2527
|
B.forEach(function(e) {
|
|
2528
2528
|
clearInterval(e.pid);
|
|
2529
2529
|
}), B = [];
|
|
2530
2530
|
}
|
|
2531
|
-
function
|
|
2532
|
-
clearInterval(
|
|
2531
|
+
function Ci() {
|
|
2532
|
+
clearInterval(se);
|
|
2533
2533
|
}
|
|
2534
|
-
var Ln =
|
|
2534
|
+
var Ln = lo(function(e, t, n, i) {
|
|
2535
2535
|
if (t.scroll) {
|
|
2536
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 = dt(), u = !1, c;
|
|
2537
|
-
Bn !== n && (Bn = n,
|
|
2538
|
-
var d = 0, p =
|
|
2537
|
+
Bn !== n && (Bn = n, Ie(), re = t.scroll, c = t.scrollFn, re === !0 && (re = _t(n, !0)));
|
|
2538
|
+
var d = 0, p = re;
|
|
2539
2539
|
do {
|
|
2540
|
-
var f = p, g = k(f), y = g.top,
|
|
2541
|
-
f === l ? (K = J <
|
|
2542
|
-
var
|
|
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
|
+
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
|
+
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
2543
|
if (!B[d])
|
|
2544
|
-
for (var
|
|
2545
|
-
B[
|
|
2546
|
-
(B[d].vx !=
|
|
2547
|
-
i && this.layer === 0 && w.active._onTouchMove(
|
|
2548
|
-
var
|
|
2549
|
-
typeof c == "function" && c.call(w.dragged.parentNode[it],
|
|
2544
|
+
for (var Dt = 0; Dt <= d; Dt++)
|
|
2545
|
+
B[Dt] || (B[Dt] = {});
|
|
2546
|
+
(B[d].vx != Qt || B[d].vy != ht || B[d].el !== f) && (B[d].el = f, B[d].vx = Qt, B[d].vy = ht, clearInterval(B[d].pid), (Qt != 0 || ht != 0) && (u = !0, B[d].pid = setInterval((function() {
|
|
2547
|
+
i && this.layer === 0 && w.active._onTouchMove(ze);
|
|
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[it], $t, te, e, ze, B[this.layer].el) !== "continue" || uo(B[this.layer].el, $t, te);
|
|
2550
2550
|
}).bind({
|
|
2551
2551
|
layer: d
|
|
2552
2552
|
}), 24))), d++;
|
|
2553
|
-
} while (t.bubbleScroll && p !== l && (p =
|
|
2553
|
+
} while (t.bubbleScroll && p !== l && (p = _t(p, !1)));
|
|
2554
2554
|
kn = u;
|
|
2555
2555
|
}
|
|
2556
|
-
}, 30),
|
|
2556
|
+
}, 30), bo = function(t) {
|
|
2557
2557
|
var n = t.originalEvent, i = t.putSortable, o = t.dragEl, r = t.activeSortable, s = t.dispatchSortableEvent, a = t.hideGhostForTarget, l = t.unhideGhostForTarget;
|
|
2558
2558
|
if (n) {
|
|
2559
2559
|
var u = i || r;
|
|
@@ -2579,7 +2579,7 @@ ei.prototype = {
|
|
|
2579
2579
|
var o = Wt(this.sortable.el, this.startIndex, this.options);
|
|
2580
2580
|
o ? this.sortable.el.insertBefore(n, o) : this.sortable.el.appendChild(n), this.sortable.animateAll(), i && i.animateAll();
|
|
2581
2581
|
},
|
|
2582
|
-
drop:
|
|
2582
|
+
drop: bo
|
|
2583
2583
|
};
|
|
2584
2584
|
bt(ei, {
|
|
2585
2585
|
pluginName: "revertOnSpill"
|
|
@@ -2591,20 +2591,20 @@ ni.prototype = {
|
|
|
2591
2591
|
var n = t.dragEl, i = t.putSortable, o = i || this.sortable;
|
|
2592
2592
|
o.captureAnimationState(), n.parentNode && n.parentNode.removeChild(n), o.animateAll();
|
|
2593
2593
|
},
|
|
2594
|
-
drop:
|
|
2594
|
+
drop: bo
|
|
2595
2595
|
};
|
|
2596
2596
|
bt(ni, {
|
|
2597
2597
|
pluginName: "removeOnSpill"
|
|
2598
2598
|
});
|
|
2599
|
-
w.mount(new
|
|
2599
|
+
w.mount(new Ls());
|
|
2600
2600
|
w.mount(ni, ei);
|
|
2601
|
-
const
|
|
2601
|
+
const Ms = (e) => {
|
|
2602
2602
|
const t = e.item;
|
|
2603
2603
|
let n = Array.prototype.slice.call(t.parentNode.childNodes);
|
|
2604
2604
|
return n = n.filter(
|
|
2605
2605
|
(i) => i.nodeType != Node.ELEMENT_NODE || !i.classList.contains("sortable-fallback")
|
|
2606
2606
|
), n;
|
|
2607
|
-
},
|
|
2607
|
+
}, Is = (e, t, n, i, o, r) => {
|
|
2608
2608
|
const a = e.item.parentNode;
|
|
2609
2609
|
for (const y of n)
|
|
2610
2610
|
a.appendChild(y);
|
|
@@ -2628,7 +2628,7 @@ const Is = (e) => {
|
|
|
2628
2628
|
}
|
|
2629
2629
|
t.requestUpdate();
|
|
2630
2630
|
};
|
|
2631
|
-
function
|
|
2631
|
+
function Ns(e, t, n, i) {
|
|
2632
2632
|
let o = [], r = null;
|
|
2633
2633
|
e._sortable = w.create(e, {
|
|
2634
2634
|
handle: ".drag-handle",
|
|
@@ -2636,14 +2636,14 @@ function Hs(e, t, n, i) {
|
|
|
2636
2636
|
swapThreshold: 0.5,
|
|
2637
2637
|
animation: 150,
|
|
2638
2638
|
easing: "cubic-bezier(1, 0, 0, 1)",
|
|
2639
|
-
onStart: (s) => o =
|
|
2639
|
+
onStart: (s) => o = Ms(s),
|
|
2640
2640
|
onMove: (s) => {
|
|
2641
2641
|
r = s.related;
|
|
2642
2642
|
},
|
|
2643
|
-
onEnd: (s) =>
|
|
2643
|
+
onEnd: (s) => Is(s, i, o, t, n, r)
|
|
2644
2644
|
});
|
|
2645
2645
|
}
|
|
2646
|
-
function
|
|
2646
|
+
function Hs(e, t, n, i) {
|
|
2647
2647
|
const o = e.getArray();
|
|
2648
2648
|
let r = !1;
|
|
2649
2649
|
o.forEach((s) => {
|
|
@@ -2666,37 +2666,37 @@ function ii(e, t, n) {
|
|
|
2666
2666
|
);
|
|
2667
2667
|
return l.length > 0 && l.forEach(
|
|
2668
2668
|
(u) => (
|
|
2669
|
-
// @ts-
|
|
2669
|
+
// @ts-expect-error TODO
|
|
2670
2670
|
o(u.getLayers().getArray(), s, a)
|
|
2671
2671
|
)
|
|
2672
2672
|
), i;
|
|
2673
2673
|
};
|
|
2674
2674
|
return o(e, t, n), i;
|
|
2675
2675
|
}
|
|
2676
|
-
function
|
|
2676
|
+
function Vs(e, t, n) {
|
|
2677
2677
|
if (!e || !t) return !1;
|
|
2678
|
-
if (!
|
|
2678
|
+
if (!vo(e, n)) return !0;
|
|
2679
2679
|
const i = e.get("minZoom"), o = e.get("maxZoom"), r = t.getView().getZoom();
|
|
2680
2680
|
return r > i && r < o;
|
|
2681
2681
|
}
|
|
2682
|
-
function
|
|
2682
|
+
function vo(e, t) {
|
|
2683
2683
|
const n = e.get("minZoom"), i = e.get("maxZoom");
|
|
2684
2684
|
return !!(t && (n !== -1 / 0 || i !== 1 / 0));
|
|
2685
2685
|
}
|
|
2686
|
-
function
|
|
2686
|
+
function Bs(e, t) {
|
|
2687
2687
|
var o, r, s;
|
|
2688
2688
|
return !e || !t ? void 0 : e.getLayers ? "group" : ((s = (o = t.getInteractions().getArray().filter((a) => a.freehand_ !== void 0).map((a) => a.source_)) == null ? void 0 : o.ol_uid) == null ? void 0 : s.includes(
|
|
2689
|
-
// @ts-
|
|
2689
|
+
// @ts-expect-error TODO
|
|
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
|
|
2693
|
+
const ks = (e, t, n) => {
|
|
2694
2694
|
let i = t;
|
|
2695
2695
|
return n.layer.getSource().getTileUrlFunction() && (i || (i = n.layer.getSource().getTileUrlFunction()), n.layer.getSource().setTileUrlFunction(
|
|
2696
|
-
(...o) =>
|
|
2696
|
+
(...o) => ls(i(...o), e)
|
|
2697
2697
|
), n.layer.getSource().setKey(/* @__PURE__ */ new Date())), i;
|
|
2698
2698
|
};
|
|
2699
|
-
function
|
|
2699
|
+
function Us(e, t, n) {
|
|
2700
2700
|
const i = "updateStyleVariables" in t, o = "setStyle" in t, r = i ? (
|
|
2701
2701
|
/** @type {import('ol/layer/WebGLTile').default} */
|
|
2702
2702
|
t.style_
|
|
@@ -2710,7 +2710,7 @@ function Fs(e, t, n) {
|
|
|
2710
2710
|
}, i)
|
|
2711
2711
|
t.updateStyleVariables(a);
|
|
2712
2712
|
else if (o) {
|
|
2713
|
-
const l =
|
|
2713
|
+
const l = Fs(r);
|
|
2714
2714
|
t.setStyle(
|
|
2715
2715
|
l
|
|
2716
2716
|
);
|
|
@@ -2731,7 +2731,7 @@ const oi = (e) => {
|
|
|
2731
2731
|
t[n] = e == null ? void 0 : e[n];
|
|
2732
2732
|
return t;
|
|
2733
2733
|
};
|
|
2734
|
-
function
|
|
2734
|
+
function Fs(e) {
|
|
2735
2735
|
let t = e;
|
|
2736
2736
|
if ("variables" in e) {
|
|
2737
2737
|
let n = JSON.stringify(e);
|
|
@@ -2745,7 +2745,7 @@ function js(e) {
|
|
|
2745
2745
|
}
|
|
2746
2746
|
return t;
|
|
2747
2747
|
}
|
|
2748
|
-
const
|
|
2748
|
+
const js = (e, t) => {
|
|
2749
2749
|
var n;
|
|
2750
2750
|
if (e)
|
|
2751
2751
|
return !("domainProperties" in e) || "domain" in e ? { ...e } : (n = Object.keys(e)) == null ? void 0 : n.reduce(
|
|
@@ -2761,7 +2761,7 @@ const Zs = (e, t) => {
|
|
|
2761
2761
|
{}
|
|
2762
2762
|
);
|
|
2763
2763
|
};
|
|
2764
|
-
function
|
|
2764
|
+
function wo(e, t) {
|
|
2765
2765
|
var i;
|
|
2766
2766
|
let n = {};
|
|
2767
2767
|
for (const o in e) {
|
|
@@ -2769,7 +2769,7 @@ function xo(e, t) {
|
|
|
2769
2769
|
if (r && r !== "object")
|
|
2770
2770
|
n[o] = r === "number" ? Number(t[o]) : t[o];
|
|
2771
2771
|
else if (typeof e[o] == "object" && ((i = e[o]) != null && i.properties)) {
|
|
2772
|
-
const s =
|
|
2772
|
+
const s = wo(
|
|
2773
2773
|
e[o].properties,
|
|
2774
2774
|
t
|
|
2775
2775
|
);
|
|
@@ -2778,7 +2778,7 @@ function xo(e, t) {
|
|
|
2778
2778
|
}
|
|
2779
2779
|
return n;
|
|
2780
2780
|
}
|
|
2781
|
-
function
|
|
2781
|
+
function Zs(e, t) {
|
|
2782
2782
|
var r, s, a, l, u;
|
|
2783
2783
|
if (!t) return null;
|
|
2784
2784
|
let n = {}, i = "updateStyleVariables" in e ? (
|
|
@@ -2791,20 +2791,20 @@ function zs(e, t) {
|
|
|
2791
2791
|
const c = new URL(e.getSource().getTileUrlFunction()([0, 0, 0]));
|
|
2792
2792
|
n = Object.fromEntries(c.searchParams.entries());
|
|
2793
2793
|
} else return null;
|
|
2794
|
-
const o =
|
|
2794
|
+
const o = wo(
|
|
2795
2795
|
((u = t.schema) == null ? void 0 : u.properties) || t.schema,
|
|
2796
2796
|
n
|
|
2797
2797
|
);
|
|
2798
2798
|
return Object.keys(o).length ? o : null;
|
|
2799
2799
|
}
|
|
2800
|
-
const
|
|
2800
|
+
const zs = (e, t) => e == null ? void 0 : e.filter(
|
|
2801
2801
|
(n) => ["remove", "sort"].filter((i) => t != null && t.get("layerControlDisable") ? i !== "sort" : !0).includes(n)
|
|
2802
|
-
),
|
|
2802
|
+
), Xs = (e, t) => e == null ? void 0 : e.filter((n) => {
|
|
2803
2803
|
let i = !0;
|
|
2804
2804
|
return ["remove", "sort"].includes(n) && (i = !1), n === "info" && (i = t.get("description")), n === "config" && (i = t.get("layerConfig")), n === "datetime" && (i = t.get("layerDatetime")), n === "legend" && (i = t.get("layerLegend")), i;
|
|
2805
|
-
}),
|
|
2805
|
+
}), qs = (e, t) => $`
|
|
2806
2806
|
<button slot="${e}-icon" class="icon">${t ? e : P}</button>
|
|
2807
|
-
`,
|
|
2807
|
+
`, Ys = (e) => $`
|
|
2808
2808
|
<button
|
|
2809
2809
|
class="remove-icon icon"
|
|
2810
2810
|
@click=${() => {
|
|
@@ -2819,11 +2819,11 @@ const Xs = (e, t) => e == null ? void 0 : e.filter(
|
|
|
2819
2819
|
>
|
|
2820
2820
|
${e.unstyled ? "x" : P}
|
|
2821
2821
|
</button>
|
|
2822
|
-
`,
|
|
2822
|
+
`, Ws = (e) => $`
|
|
2823
2823
|
<span class="button sort-icon icon drag-handle">
|
|
2824
2824
|
${e ? "═" : P}
|
|
2825
2825
|
</span>
|
|
2826
|
-
`,
|
|
2826
|
+
`, $o = (e) => {
|
|
2827
2827
|
var n;
|
|
2828
2828
|
const t = ["layerControlHide", "layerControlOptional"];
|
|
2829
2829
|
return (n = e == null ? void 0 : e.getArray()) == null ? void 0 : n.filter((i) => t.every((o) => !i.get(o)));
|
|
@@ -2833,10 +2833,10 @@ const Xs = (e, t) => e == null ? void 0 : e.filter(
|
|
|
2833
2833
|
* Copyright 2020 Google LLC
|
|
2834
2834
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2835
2835
|
*/
|
|
2836
|
-
const
|
|
2836
|
+
const xo = Gn(class extends Jn {
|
|
2837
2837
|
constructor(e) {
|
|
2838
|
-
if (super(e), e.type !==
|
|
2839
|
-
if (!
|
|
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 (!dr(e)) throw Error("`live` bindings can only contain a single expression");
|
|
2840
2840
|
}
|
|
2841
2841
|
render(e) {
|
|
2842
2842
|
return e;
|
|
@@ -2844,12 +2844,12 @@ const $o = Gn(class extends Jn {
|
|
|
2844
2844
|
update(e, [t]) {
|
|
2845
2845
|
if (t === at || t === P) return t;
|
|
2846
2846
|
const n = e.element, i = e.name;
|
|
2847
|
-
if (e.type ===
|
|
2847
|
+
if (e.type === xt.PROPERTY) {
|
|
2848
2848
|
if (t === n[i]) return at;
|
|
2849
|
-
} else if (e.type ===
|
|
2849
|
+
} else if (e.type === xt.BOOLEAN_ATTRIBUTE) {
|
|
2850
2850
|
if (!!t === n.hasAttribute(i)) return at;
|
|
2851
|
-
} else if (e.type ===
|
|
2852
|
-
return
|
|
2851
|
+
} else if (e.type === xt.ATTRIBUTE && n.getAttribute(i) === t + "") return at;
|
|
2852
|
+
return Yi(e), t;
|
|
2853
2853
|
}
|
|
2854
2854
|
});
|
|
2855
2855
|
/**
|
|
@@ -2859,7 +2859,7 @@ const $o = Gn(class extends Jn {
|
|
|
2859
2859
|
*/
|
|
2860
2860
|
class Un extends Jn {
|
|
2861
2861
|
constructor(t) {
|
|
2862
|
-
if (super(t), this.it = P, t.type !==
|
|
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
|
}
|
|
2864
2864
|
render(t) {
|
|
2865
2865
|
if (t === P || t == null) return this._t = void 0, this.it = t;
|
|
@@ -2872,48 +2872,48 @@ class Un extends Jn {
|
|
|
2872
2872
|
}
|
|
2873
2873
|
}
|
|
2874
2874
|
Un.directiveName = "unsafeHTML", Un.resultType = 1;
|
|
2875
|
-
const
|
|
2875
|
+
const Gs = Gn(Un);
|
|
2876
2876
|
/**
|
|
2877
2877
|
* @license
|
|
2878
2878
|
* Copyright 2021 Google LLC
|
|
2879
2879
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2880
2880
|
*/
|
|
2881
|
-
function*
|
|
2881
|
+
function* Ne(e, t) {
|
|
2882
2882
|
if (e !== void 0) {
|
|
2883
2883
|
let n = 0;
|
|
2884
2884
|
for (const i of e) yield t(i, n++);
|
|
2885
2885
|
}
|
|
2886
2886
|
}
|
|
2887
|
-
var
|
|
2888
|
-
function
|
|
2887
|
+
var Ct = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
2888
|
+
function Eo(e) {
|
|
2889
2889
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
2890
2890
|
}
|
|
2891
|
-
var
|
|
2892
|
-
return
|
|
2891
|
+
var So = "Expected a function", Ti = NaN, Js = "[object Symbol]", Ks = /^\s+|\s+$/g, Qs = /^[-+]0x[0-9a-f]+$/i, ta = /^0b[01]+$/i, ea = /^0o[0-7]+$/i, na = parseInt, ia = typeof Ct == "object" && Ct && Ct.Object === Object && Ct, oa = typeof self == "object" && self && self.Object === Object && self, ra = ia || oa || Function("return this")(), sa = Object.prototype, aa = sa.toString, la = Math.max, ua = Math.min, Mn = function() {
|
|
2892
|
+
return ra.Date.now();
|
|
2893
2893
|
};
|
|
2894
|
-
function
|
|
2894
|
+
function da(e, t, n) {
|
|
2895
2895
|
var i, o, r, s, a, l, u = 0, c = !1, d = !1, p = !0;
|
|
2896
2896
|
if (typeof e != "function")
|
|
2897
|
-
throw new TypeError(
|
|
2898
|
-
t = Pi(t) || 0,
|
|
2897
|
+
throw new TypeError(So);
|
|
2898
|
+
t = Pi(t) || 0, Xe(n) && (c = !!n.leading, d = "maxWait" in n, r = d ? la(Pi(n.maxWait) || 0, t) : r, p = "trailing" in n ? !!n.trailing : p);
|
|
2899
2899
|
function f(b) {
|
|
2900
|
-
var
|
|
2901
|
-
return i = o = void 0, u = b, s = e.apply(z,
|
|
2900
|
+
var O = i, z = o;
|
|
2901
|
+
return i = o = void 0, u = b, s = e.apply(z, O), s;
|
|
2902
2902
|
}
|
|
2903
2903
|
function g(b) {
|
|
2904
2904
|
return u = b, a = setTimeout(M, t), c ? f(b) : s;
|
|
2905
2905
|
}
|
|
2906
2906
|
function y(b) {
|
|
2907
|
-
var
|
|
2908
|
-
return d ?
|
|
2907
|
+
var O = b - l, z = b - u, U = t - O;
|
|
2908
|
+
return d ? ua(U, r - z) : U;
|
|
2909
2909
|
}
|
|
2910
|
-
function
|
|
2911
|
-
var
|
|
2912
|
-
return l === void 0 ||
|
|
2910
|
+
function D(b) {
|
|
2911
|
+
var O = b - l, z = b - u;
|
|
2912
|
+
return l === void 0 || O >= t || O < 0 || d && z >= r;
|
|
2913
2913
|
}
|
|
2914
2914
|
function M() {
|
|
2915
2915
|
var b = Mn();
|
|
2916
|
-
if (
|
|
2916
|
+
if (D(b))
|
|
2917
2917
|
return H(b);
|
|
2918
2918
|
a = setTimeout(M, y(b));
|
|
2919
2919
|
}
|
|
@@ -2927,8 +2927,8 @@ function ca(e, t, n) {
|
|
|
2927
2927
|
return a === void 0 ? s : H(Mn());
|
|
2928
2928
|
}
|
|
2929
2929
|
function K() {
|
|
2930
|
-
var b = Mn(),
|
|
2931
|
-
if (i = arguments, o = this, l = b,
|
|
2930
|
+
var b = Mn(), O = D(b);
|
|
2931
|
+
if (i = arguments, o = this, l = b, O) {
|
|
2932
2932
|
if (a === void 0)
|
|
2933
2933
|
return g(l);
|
|
2934
2934
|
if (d)
|
|
@@ -2938,70 +2938,68 @@ function ca(e, t, n) {
|
|
|
2938
2938
|
}
|
|
2939
2939
|
return K.cancel = J, K.flush = Z, K;
|
|
2940
2940
|
}
|
|
2941
|
-
function
|
|
2941
|
+
function ca(e, t, n) {
|
|
2942
2942
|
var i = !0, o = !0;
|
|
2943
2943
|
if (typeof e != "function")
|
|
2944
|
-
throw new TypeError(
|
|
2945
|
-
return
|
|
2944
|
+
throw new TypeError(So);
|
|
2945
|
+
return Xe(n) && (i = "leading" in n ? !!n.leading : i, o = "trailing" in n ? !!n.trailing : o), da(e, t, {
|
|
2946
2946
|
leading: i,
|
|
2947
2947
|
maxWait: t,
|
|
2948
2948
|
trailing: o
|
|
2949
2949
|
});
|
|
2950
2950
|
}
|
|
2951
|
-
function
|
|
2951
|
+
function Xe(e) {
|
|
2952
2952
|
var t = typeof e;
|
|
2953
2953
|
return !!e && (t == "object" || t == "function");
|
|
2954
2954
|
}
|
|
2955
|
-
function
|
|
2955
|
+
function ha(e) {
|
|
2956
2956
|
return !!e && typeof e == "object";
|
|
2957
2957
|
}
|
|
2958
|
-
function
|
|
2959
|
-
return typeof e == "symbol" ||
|
|
2958
|
+
function pa(e) {
|
|
2959
|
+
return typeof e == "symbol" || ha(e) && aa.call(e) == Js;
|
|
2960
2960
|
}
|
|
2961
2961
|
function Pi(e) {
|
|
2962
2962
|
if (typeof e == "number")
|
|
2963
2963
|
return e;
|
|
2964
|
-
if (
|
|
2964
|
+
if (pa(e))
|
|
2965
2965
|
return Ti;
|
|
2966
|
-
if (
|
|
2966
|
+
if (Xe(e)) {
|
|
2967
2967
|
var t = typeof e.valueOf == "function" ? e.valueOf() : e;
|
|
2968
|
-
e =
|
|
2968
|
+
e = Xe(t) ? t + "" : t;
|
|
2969
2969
|
}
|
|
2970
2970
|
if (typeof e != "string")
|
|
2971
2971
|
return e === 0 ? e : +e;
|
|
2972
|
-
e = e.replace(
|
|
2973
|
-
var n =
|
|
2974
|
-
return n ||
|
|
2972
|
+
e = e.replace(Ks, "");
|
|
2973
|
+
var n = ta.test(e);
|
|
2974
|
+
return n || ea.test(e) ? na(e.slice(2), n ? 2 : 8) : Qs.test(e) ? Ti : +e;
|
|
2975
2975
|
}
|
|
2976
|
-
var
|
|
2977
|
-
const
|
|
2976
|
+
var fa = ca;
|
|
2977
|
+
const Di = /* @__PURE__ */ Eo(fa);
|
|
2978
2978
|
/**
|
|
2979
2979
|
* @license
|
|
2980
2980
|
* Copyright 2018 Google LLC
|
|
2981
2981
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2982
2982
|
*/
|
|
2983
|
-
const
|
|
2984
|
-
var
|
|
2985
|
-
class
|
|
2983
|
+
const Pe = (e) => e ?? P;
|
|
2984
|
+
var qe, Ye;
|
|
2985
|
+
class Ao extends tt {
|
|
2986
2986
|
constructor() {
|
|
2987
2987
|
super();
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
}
|
|
2988
|
+
C(this, qe, Hi`
|
|
2989
|
+
.legend-container {
|
|
2990
|
+
display: flex;
|
|
2991
|
+
justify-content: center;
|
|
2992
|
+
}
|
|
2994
2993
|
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
}
|
|
2994
|
+
color-legend {
|
|
2995
|
+
--cle-background: transparent;
|
|
2996
|
+
--cle-font-family: inherit;
|
|
2997
|
+
--cle-font-size: inherit;
|
|
2998
|
+
--cle-font-weight: inherit --cle-letter-spacing: inherit;
|
|
2999
|
+
--cle-letter-spacing-title: inherit;
|
|
3000
|
+
}
|
|
3003
3001
|
`);
|
|
3004
|
-
|
|
3002
|
+
C(this, Ye, "");
|
|
3005
3003
|
this.unstyled = !1, this.noShadow = !1, this.layerLegend = null, this.layer = null;
|
|
3006
3004
|
}
|
|
3007
3005
|
/**
|
|
@@ -3016,25 +3014,25 @@ class Co extends tt {
|
|
|
3016
3014
|
render() {
|
|
3017
3015
|
return customElements.get("color-legend") || console.error(
|
|
3018
3016
|
"Please import `color-legend-element` in order to use layerLegend"
|
|
3019
|
-
),
|
|
3017
|
+
), $`
|
|
3020
3018
|
<style>
|
|
3021
|
-
${S(this,
|
|
3022
|
-
${!this.unstyled && S(this,
|
|
3019
|
+
${S(this, qe)}
|
|
3020
|
+
${!this.unstyled && S(this, Ye)}
|
|
3023
3021
|
</style>
|
|
3024
3022
|
${F(
|
|
3025
3023
|
this.layerLegend,
|
|
3026
|
-
() =>
|
|
3024
|
+
() => $`
|
|
3027
3025
|
<div class="legend-container">
|
|
3028
3026
|
<!-- Render color-legend-->
|
|
3029
3027
|
<color-legend
|
|
3030
3028
|
id="${this.layer.get("id")}"
|
|
3031
3029
|
width=${this.layerLegend.width ?? 325}
|
|
3032
|
-
scaleType="${
|
|
3033
|
-
markType="${
|
|
3034
|
-
titleText="${
|
|
3030
|
+
scaleType="${Pe(this.layerLegend.scaleType)}"
|
|
3031
|
+
markType="${Pe(this.layerLegend.markType)}"
|
|
3032
|
+
titleText="${Pe(this.layerLegend.title)}"
|
|
3035
3033
|
.range=${this.layerLegend.range}
|
|
3036
3034
|
.domain=${this.layerLegend.domain}
|
|
3037
|
-
tickFormat="${
|
|
3035
|
+
tickFormat="${Pe(this.layerLegend.tickFormat)}"
|
|
3038
3036
|
.ticks=${this.layerLegend.ticks ?? 5}
|
|
3039
3037
|
.tickValues=${this.layerLegend.tickValues}
|
|
3040
3038
|
>
|
|
@@ -3045,8 +3043,8 @@ class Co extends tt {
|
|
|
3045
3043
|
`;
|
|
3046
3044
|
}
|
|
3047
3045
|
}
|
|
3048
|
-
|
|
3049
|
-
I(
|
|
3046
|
+
qe = new WeakMap(), Ye = new WeakMap(), // Define static properties for the component
|
|
3047
|
+
I(Ao, "properties", {
|
|
3050
3048
|
unstyled: { type: Boolean },
|
|
3051
3049
|
noShadow: { type: Boolean },
|
|
3052
3050
|
layerLegend: { attribute: !1 },
|
|
@@ -3054,43 +3052,42 @@ I(Co, "properties", {
|
|
|
3054
3052
|
});
|
|
3055
3053
|
customElements.define(
|
|
3056
3054
|
"eox-layercontrol-layer-legend",
|
|
3057
|
-
|
|
3055
|
+
Ao
|
|
3058
3056
|
);
|
|
3059
|
-
var pt, Yt,
|
|
3057
|
+
var pt, Yt, be, ve, Fn, We, Ge;
|
|
3060
3058
|
class _o extends tt {
|
|
3061
3059
|
constructor() {
|
|
3062
3060
|
super();
|
|
3063
|
-
|
|
3061
|
+
C(this, ve);
|
|
3064
3062
|
/**
|
|
3065
3063
|
* data input by the user
|
|
3066
3064
|
*
|
|
3067
3065
|
* @type {{[key: string]: any}}
|
|
3068
3066
|
*/
|
|
3069
|
-
|
|
3067
|
+
C(this, pt, {});
|
|
3070
3068
|
/**
|
|
3071
3069
|
* data input by the user
|
|
3072
3070
|
*
|
|
3073
3071
|
* @type {{[key: string]: any}}
|
|
3074
3072
|
*/
|
|
3075
|
-
|
|
3073
|
+
C(this, Yt, null);
|
|
3076
3074
|
/**
|
|
3077
3075
|
* Original tile url function, if it exist
|
|
3078
3076
|
*
|
|
3079
3077
|
* @type {Function}
|
|
3080
3078
|
*/
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
}
|
|
3079
|
+
C(this, be);
|
|
3080
|
+
C(this, We, Hi`
|
|
3081
|
+
color-legend {
|
|
3082
|
+
--cle-background: transparent;
|
|
3083
|
+
--cle-font-family: inherit;
|
|
3084
|
+
--cle-font-size: inherit;
|
|
3085
|
+
--cle-font-weight: inherit --cle-letter-spacing: inherit;
|
|
3086
|
+
--cle-letter-spacing-title: inherit;
|
|
3087
|
+
}
|
|
3091
3088
|
`);
|
|
3092
|
-
|
|
3093
|
-
this.layer = null, this.unstyled = !1, this.noShadow = !1, this.layerConfig = null, this.throttleDataChange =
|
|
3089
|
+
C(this, Ge, "");
|
|
3090
|
+
this.layer = null, this.unstyled = !1, this.noShadow = !1, this.layerConfig = null, this.throttleDataChange = Di(V(this, ve, Fn), 1e3);
|
|
3094
3091
|
}
|
|
3095
3092
|
/** Decide what type of throttling to do based on layerConfig type
|
|
3096
3093
|
*
|
|
@@ -3099,7 +3096,7 @@ class _o extends tt {
|
|
|
3099
3096
|
updated(n) {
|
|
3100
3097
|
if (n.has("layerConfig")) {
|
|
3101
3098
|
const i = this.layerConfig.type === "style" || this.layerConfig.style ? 100 : 1e3;
|
|
3102
|
-
this.throttleDataChange =
|
|
3099
|
+
this.throttleDataChange = Di(V(this, ve, Fn), i), this.requestUpdate();
|
|
3103
3100
|
}
|
|
3104
3101
|
}
|
|
3105
3102
|
/**
|
|
@@ -3112,28 +3109,28 @@ class _o extends tt {
|
|
|
3112
3109
|
* Renders a JSON form for configuration options of a layer.
|
|
3113
3110
|
*/
|
|
3114
3111
|
render() {
|
|
3115
|
-
kt(this, Yt,
|
|
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");
|
|
3116
3113
|
const n = {
|
|
3117
3114
|
disable_edit_json: !0,
|
|
3118
3115
|
disable_collapse: !0,
|
|
3119
3116
|
disable_properties: !0
|
|
3120
3117
|
};
|
|
3121
|
-
return
|
|
3118
|
+
return $`
|
|
3122
3119
|
<style>
|
|
3123
|
-
${S(this,
|
|
3124
|
-
${!this.unstyled && S(this,
|
|
3120
|
+
${S(this, We)}
|
|
3121
|
+
${!this.unstyled && S(this, Ge)}
|
|
3125
3122
|
</style>
|
|
3126
3123
|
${F(
|
|
3127
3124
|
this.layerConfig,
|
|
3128
|
-
() =>
|
|
3125
|
+
() => $`
|
|
3129
3126
|
${F(
|
|
3130
3127
|
this.layerConfig.legend,
|
|
3131
|
-
() =>
|
|
3128
|
+
() => $`
|
|
3132
3129
|
<eox-layercontrol-layer-legend
|
|
3133
3130
|
.noShadow=${!0}
|
|
3134
3131
|
.unstyled=${this.unstyled}
|
|
3135
3132
|
.layer=${this.layer}
|
|
3136
|
-
.layerLegend=${
|
|
3133
|
+
.layerLegend=${js(
|
|
3137
3134
|
this.layerConfig.legend,
|
|
3138
3135
|
S(this, pt)
|
|
3139
3136
|
)}
|
|
@@ -3152,20 +3149,20 @@ class _o extends tt {
|
|
|
3152
3149
|
`;
|
|
3153
3150
|
}
|
|
3154
3151
|
}
|
|
3155
|
-
pt = new WeakMap(), Yt = new WeakMap(),
|
|
3152
|
+
pt = new WeakMap(), Yt = new WeakMap(), be = new WeakMap(), ve = new WeakSet(), /**
|
|
3156
3153
|
* Handles changes in eox-jsonform values.
|
|
3157
3154
|
*
|
|
3158
3155
|
* @param {{ detail: { value: string; }; }} e
|
|
3159
3156
|
*/
|
|
3160
3157
|
Fn = function(n) {
|
|
3161
|
-
kt(this, pt, n.detail), this.layerConfig.type === "style" || this.layerConfig.style ? "setStyle" in this.layer || "updateStyleVariables" in this.layer ?
|
|
3158
|
+
kt(this, pt, n.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(
|
|
3162
3159
|
`Layer type ${this.layer.get("type") ?? ""} does not support styles configuration`
|
|
3163
|
-
) : kt(this,
|
|
3160
|
+
) : kt(this, be, ks(
|
|
3164
3161
|
S(this, pt),
|
|
3165
|
-
S(this,
|
|
3162
|
+
S(this, be),
|
|
3166
3163
|
this
|
|
3167
3164
|
)), this.requestUpdate();
|
|
3168
|
-
},
|
|
3165
|
+
}, We = new WeakMap(), Ge = new WeakMap(), // Define static properties for the component
|
|
3169
3166
|
I(_o, "properties", {
|
|
3170
3167
|
layer: { attribute: !1 },
|
|
3171
3168
|
unstyled: { type: Boolean },
|
|
@@ -3176,13 +3173,13 @@ customElements.define(
|
|
|
3176
3173
|
"eox-layercontrol-layerconfig",
|
|
3177
3174
|
_o
|
|
3178
3175
|
);
|
|
3179
|
-
var
|
|
3180
|
-
class
|
|
3176
|
+
var Je, To, Ke, Qe;
|
|
3177
|
+
class Co extends tt {
|
|
3181
3178
|
constructor() {
|
|
3182
3179
|
super();
|
|
3183
|
-
|
|
3184
|
-
|
|
3185
|
-
|
|
3180
|
+
C(this, Je);
|
|
3181
|
+
C(this, Ke, "");
|
|
3182
|
+
C(this, Qe, "");
|
|
3186
3183
|
this.unstyled = !1, this.noShadow = !1, this.layerDatetime = null, this.layer = null;
|
|
3187
3184
|
}
|
|
3188
3185
|
/**
|
|
@@ -3197,14 +3194,14 @@ class To extends tt {
|
|
|
3197
3194
|
render() {
|
|
3198
3195
|
return customElements.get("eox-timecontrol") || console.error(
|
|
3199
3196
|
"Please import @eox/timecontrol in order to use layerDatetime"
|
|
3200
|
-
),
|
|
3197
|
+
), $`
|
|
3201
3198
|
<style>
|
|
3202
|
-
${S(this,
|
|
3203
|
-
${!this.unstyled && S(this,
|
|
3199
|
+
${S(this, Ke)}
|
|
3200
|
+
${!this.unstyled && S(this, Qe)}
|
|
3204
3201
|
</style>
|
|
3205
3202
|
${F(
|
|
3206
3203
|
this.layerDatetime,
|
|
3207
|
-
() =>
|
|
3204
|
+
() => $`
|
|
3208
3205
|
<!-- Render a Timecontrol for layer date time -->
|
|
3209
3206
|
<eox-timecontrol
|
|
3210
3207
|
?unstyled=${this.unstyled}
|
|
@@ -3215,20 +3212,20 @@ class To extends tt {
|
|
|
3215
3212
|
.controlValues=${this.layerDatetime.controlValues}
|
|
3216
3213
|
.controlProperty=${void 0}
|
|
3217
3214
|
current-step=${this.layerDatetime.currentStep}
|
|
3218
|
-
@stepchange=${V(this,
|
|
3215
|
+
@stepchange=${V(this, Je, To)}
|
|
3219
3216
|
></eox-timecontrol>
|
|
3220
3217
|
`
|
|
3221
3218
|
)}
|
|
3222
3219
|
`;
|
|
3223
3220
|
}
|
|
3224
3221
|
}
|
|
3225
|
-
|
|
3222
|
+
Je = new WeakSet(), /**
|
|
3226
3223
|
* Handles timecontrol Stepchange &
|
|
3227
3224
|
* triggers `datetime:updated` event on step change
|
|
3228
3225
|
*
|
|
3229
3226
|
* @param {CustomEvent<{currentStep:string|number}>} evt
|
|
3230
3227
|
**/
|
|
3231
|
-
|
|
3228
|
+
To = function(n) {
|
|
3232
3229
|
this.dispatchEvent(
|
|
3233
3230
|
new CustomEvent("datetime:updated", {
|
|
3234
3231
|
bubbles: !0,
|
|
@@ -3238,8 +3235,8 @@ Po = function(n) {
|
|
|
3238
3235
|
}
|
|
3239
3236
|
})
|
|
3240
3237
|
), this.layerDatetime.currentStep = n.detail.currentStep, this.requestUpdate();
|
|
3241
|
-
},
|
|
3242
|
-
I(
|
|
3238
|
+
}, Ke = new WeakMap(), Qe = new WeakMap(), // Define static properties for the component
|
|
3239
|
+
I(Co, "properties", {
|
|
3243
3240
|
unstyled: { type: Boolean },
|
|
3244
3241
|
noShadow: { type: Boolean },
|
|
3245
3242
|
layerDatetime: { attribute: !1 },
|
|
@@ -3247,15 +3244,15 @@ I(To, "properties", {
|
|
|
3247
3244
|
});
|
|
3248
3245
|
customElements.define(
|
|
3249
3246
|
"eox-layercontrol-layer-datetime",
|
|
3250
|
-
|
|
3247
|
+
Co
|
|
3251
3248
|
);
|
|
3252
|
-
var
|
|
3253
|
-
class
|
|
3249
|
+
var we, tn, en;
|
|
3250
|
+
class Po extends tt {
|
|
3254
3251
|
constructor() {
|
|
3255
3252
|
super();
|
|
3256
3253
|
/** @param {number} index */
|
|
3257
|
-
|
|
3258
|
-
|
|
3254
|
+
C(this, we, (n) => (this.selectedTab === n || this.toolsAsList) && "highlighted");
|
|
3255
|
+
C(this, tn, `
|
|
3259
3256
|
.tabbed figure {
|
|
3260
3257
|
margin: 0;
|
|
3261
3258
|
}
|
|
@@ -3276,7 +3273,7 @@ class Oo extends tt {
|
|
|
3276
3273
|
background: lightgrey;
|
|
3277
3274
|
}
|
|
3278
3275
|
`);
|
|
3279
|
-
|
|
3276
|
+
C(this, en, `
|
|
3280
3277
|
.listed {
|
|
3281
3278
|
background: #ffffff !important;
|
|
3282
3279
|
display: flex;
|
|
@@ -3317,45 +3314,45 @@ class Oo extends tt {
|
|
|
3317
3314
|
*/
|
|
3318
3315
|
render() {
|
|
3319
3316
|
const n = this.tabs, i = this.actions, o = i.length + n.length > 1;
|
|
3320
|
-
return
|
|
3317
|
+
return $`
|
|
3321
3318
|
<style>
|
|
3322
|
-
${S(this,
|
|
3323
|
-
${!this.unstyled && S(this,
|
|
3319
|
+
${S(this, tn)}
|
|
3320
|
+
${!this.unstyled && S(this, en)}
|
|
3324
3321
|
</style>
|
|
3325
3322
|
<div class="tabbed">
|
|
3326
3323
|
<!-- Navigation for tabs and actions -->
|
|
3327
3324
|
${F(
|
|
3328
3325
|
o,
|
|
3329
|
-
() =>
|
|
3326
|
+
() => $`
|
|
3330
3327
|
<nav>
|
|
3331
3328
|
${F(
|
|
3332
3329
|
!this.toolsAsList,
|
|
3333
|
-
() =>
|
|
3330
|
+
() => $`
|
|
3334
3331
|
<div>
|
|
3335
3332
|
<!-- Labels for tabs -->
|
|
3336
|
-
${
|
|
3333
|
+
${Ne(
|
|
3337
3334
|
n,
|
|
3338
|
-
(r, s) =>
|
|
3339
|
-
|
|
3340
|
-
|
|
3341
|
-
|
|
3342
|
-
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
|
|
3335
|
+
(r, s) => $`
|
|
3336
|
+
<label
|
|
3337
|
+
class=${S(this, we).call(this, s)}
|
|
3338
|
+
@click=${() => this.selectedTab = s}
|
|
3339
|
+
>
|
|
3340
|
+
<!-- Customizable icon for each tab -->
|
|
3341
|
+
<slot name=${`${r}-icon`}>${r}</slot>
|
|
3342
|
+
</label>
|
|
3343
|
+
`
|
|
3347
3344
|
)}
|
|
3348
3345
|
</div>
|
|
3349
3346
|
<div>
|
|
3350
3347
|
<!-- Icons for actions -->
|
|
3351
|
-
${
|
|
3348
|
+
${Ne(
|
|
3352
3349
|
i,
|
|
3353
|
-
(r) =>
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
|
|
3350
|
+
(r) => $`
|
|
3351
|
+
<span>
|
|
3352
|
+
<!-- Customizable icon for each action -->
|
|
3353
|
+
<slot name=${`${r}-icon`}>${r}</slot>
|
|
3354
|
+
</span>
|
|
3355
|
+
`
|
|
3359
3356
|
)}
|
|
3360
3357
|
</div>
|
|
3361
3358
|
`
|
|
@@ -3365,19 +3362,19 @@ class Oo extends tt {
|
|
|
3365
3362
|
)}
|
|
3366
3363
|
<figure>
|
|
3367
3364
|
<!-- Content for each tab -->
|
|
3368
|
-
${
|
|
3365
|
+
${Ne(
|
|
3369
3366
|
n,
|
|
3370
|
-
(r, s) =>
|
|
3367
|
+
(r, s) => $`
|
|
3371
3368
|
${F(
|
|
3372
3369
|
this.toolsAsList,
|
|
3373
|
-
() =>
|
|
3370
|
+
() => $`
|
|
3374
3371
|
<label class="listed">
|
|
3375
3372
|
<!-- Customizable icon for each tab -->
|
|
3376
3373
|
<slot name=${`${r}-icon`}>${r}</slot>
|
|
3377
3374
|
</label>
|
|
3378
3375
|
`
|
|
3379
3376
|
)}
|
|
3380
|
-
<div class="tab ${S(this,
|
|
3377
|
+
<div class="tab ${S(this, we).call(this, s)}">
|
|
3381
3378
|
<!-- Content slot for each tab -->
|
|
3382
3379
|
<slot name=${`${r}-content`}>${r}</slot>
|
|
3383
3380
|
</div>
|
|
@@ -3388,8 +3385,8 @@ class Oo extends tt {
|
|
|
3388
3385
|
`;
|
|
3389
3386
|
}
|
|
3390
3387
|
}
|
|
3391
|
-
|
|
3392
|
-
I(
|
|
3388
|
+
we = new WeakMap(), tn = new WeakMap(), en = new WeakMap(), // Define static properties for the component
|
|
3389
|
+
I(Po, "properties", {
|
|
3393
3390
|
actions: { attribute: !1 },
|
|
3394
3391
|
selectedTab: { state: !0 },
|
|
3395
3392
|
tabs: { attribute: !1 },
|
|
@@ -3397,8 +3394,8 @@ I(Oo, "properties", {
|
|
|
3397
3394
|
noShadow: { type: Boolean },
|
|
3398
3395
|
toolsAsList: { type: Boolean }
|
|
3399
3396
|
});
|
|
3400
|
-
customElements.define("eox-layercontrol-tools-items",
|
|
3401
|
-
const
|
|
3397
|
+
customElements.define("eox-layercontrol-tools-items", Po);
|
|
3398
|
+
const ga = `
|
|
3402
3399
|
button,
|
|
3403
3400
|
.button {
|
|
3404
3401
|
/* TODO: why does this only work here and not from :root? */
|
|
@@ -3522,7 +3519,7 @@ button.smallest.icon::before {
|
|
|
3522
3519
|
width: 16px;
|
|
3523
3520
|
padding: 0px;
|
|
3524
3521
|
}
|
|
3525
|
-
`,
|
|
3522
|
+
`, ma = `
|
|
3526
3523
|
input[type=radio] {
|
|
3527
3524
|
appearance: none;
|
|
3528
3525
|
-webkit-appearance: none;
|
|
@@ -3573,7 +3570,7 @@ input[type=checkbox]:checked:after {
|
|
|
3573
3570
|
content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Echeckbox-marked%3C/title%3E%3Cpath d='M10,17L5,12L6.41,10.58L10,14.17L17.59,6.58L19,8M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z' /%3E%3C/svg%3E");
|
|
3574
3571
|
|
|
3575
3572
|
}
|
|
3576
|
-
`,
|
|
3573
|
+
`, ya = `
|
|
3577
3574
|
input[type="range"] {
|
|
3578
3575
|
-webkit-appearance: none;
|
|
3579
3576
|
width: 90%;
|
|
@@ -3651,14 +3648,14 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
3651
3648
|
border: 0;
|
|
3652
3649
|
}
|
|
3653
3650
|
`;
|
|
3654
|
-
var
|
|
3655
|
-
class
|
|
3651
|
+
var nn, on;
|
|
3652
|
+
class Oo extends tt {
|
|
3656
3653
|
constructor() {
|
|
3657
3654
|
super();
|
|
3658
3655
|
// Initializes '_removeButton' invoking 'removeButton' function with 'this' context.
|
|
3659
|
-
I(this, "_removeButton", () =>
|
|
3656
|
+
I(this, "_removeButton", () => Ys(this));
|
|
3660
3657
|
// Initializes '_sortButton' invoking 'sortButton' function with 'unstyled' property as a parameter.
|
|
3661
|
-
I(this, "_sortButton", () =>
|
|
3658
|
+
I(this, "_sortButton", () => Ws(this.unstyled));
|
|
3662
3659
|
/**
|
|
3663
3660
|
* Initializes '_button' as a function accepting 'tool' parameter to generate a Button.
|
|
3664
3661
|
* Uses 'this.unstyled' as a context parameter for Button generation.
|
|
@@ -3666,12 +3663,12 @@ class Ro extends tt {
|
|
|
3666
3663
|
* @param {string} tool - Tool parameter for Button generation.
|
|
3667
3664
|
* @returns {import("lit").HTMLTemplateResult} - The generated Button element.
|
|
3668
3665
|
*/
|
|
3669
|
-
I(this, "_button", (n) =>
|
|
3666
|
+
I(this, "_button", (n) => qs(n, this.unstyled));
|
|
3670
3667
|
I(this, "_getDefaultTools", () => {
|
|
3671
3668
|
var n;
|
|
3672
|
-
return
|
|
3669
|
+
return $`
|
|
3673
3670
|
<div slot="info-content">
|
|
3674
|
-
${
|
|
3671
|
+
${Gs(this.layer.get("description"))}
|
|
3675
3672
|
</div>
|
|
3676
3673
|
<div slot="opacity-content">
|
|
3677
3674
|
<!-- Input for opacity -->
|
|
@@ -3680,7 +3677,7 @@ class Ro extends tt {
|
|
|
3680
3677
|
min="0"
|
|
3681
3678
|
max="1"
|
|
3682
3679
|
step="0.01"
|
|
3683
|
-
value=${
|
|
3680
|
+
value=${xo((n = this.layer) == null ? void 0 : n.getOpacity())}
|
|
3684
3681
|
@input=${(i) => this.layer.setOpacity(parseFloat(i.target.value))}
|
|
3685
3682
|
/>
|
|
3686
3683
|
</div>
|
|
@@ -3688,7 +3685,7 @@ class Ro extends tt {
|
|
|
3688
3685
|
<!-- Layer configuration -->
|
|
3689
3686
|
${F(
|
|
3690
3687
|
this.layer.get("layerConfig"),
|
|
3691
|
-
() =>
|
|
3688
|
+
() => $`
|
|
3692
3689
|
<eox-layercontrol-layerconfig
|
|
3693
3690
|
slot="config-content"
|
|
3694
3691
|
.layer=${this.layer}
|
|
@@ -3704,7 +3701,7 @@ class Ro extends tt {
|
|
|
3704
3701
|
<!-- Layer datetime -->
|
|
3705
3702
|
${F(
|
|
3706
3703
|
this.layer.get("layerDatetime"),
|
|
3707
|
-
() =>
|
|
3704
|
+
() => $`
|
|
3708
3705
|
<eox-layercontrol-layer-datetime
|
|
3709
3706
|
slot="datetime-content"
|
|
3710
3707
|
.noShadow=${!0}
|
|
@@ -3720,7 +3717,7 @@ class Ro extends tt {
|
|
|
3720
3717
|
<!-- Layer legend -->
|
|
3721
3718
|
${F(
|
|
3722
3719
|
this.layer.get("layerLegend"),
|
|
3723
|
-
() =>
|
|
3720
|
+
() => $`
|
|
3724
3721
|
<eox-layercontrol-layer-legend
|
|
3725
3722
|
slot="legend-content"
|
|
3726
3723
|
.noShadow=${!0}
|
|
@@ -3736,12 +3733,12 @@ class Ro extends tt {
|
|
|
3736
3733
|
<div slot="sort-icon">${this._sortButton()}</div>
|
|
3737
3734
|
`;
|
|
3738
3735
|
});
|
|
3739
|
-
|
|
3740
|
-
|
|
3741
|
-
${
|
|
3742
|
-
${
|
|
3736
|
+
C(this, nn, "");
|
|
3737
|
+
C(this, on, `
|
|
3738
|
+
${ga}
|
|
3739
|
+
${ma}
|
|
3743
3740
|
${Do}
|
|
3744
|
-
${
|
|
3741
|
+
${ya}
|
|
3745
3742
|
.drag-handle {
|
|
3746
3743
|
cursor: n-resize;
|
|
3747
3744
|
}
|
|
@@ -3859,26 +3856,26 @@ class Ro extends tt {
|
|
|
3859
3856
|
}
|
|
3860
3857
|
render() {
|
|
3861
3858
|
var l;
|
|
3862
|
-
const n =
|
|
3863
|
-
// @ts-
|
|
3859
|
+
const n = zs(this.tools, this.layer), i = Xs(this.tools, this.layer), o = this[`_${n == null ? void 0 : n[0]}Button`] ? (
|
|
3860
|
+
// @ts-expect-error TODO
|
|
3864
3861
|
this[`_${n == null ? void 0 : n[0]}Button`]()
|
|
3865
3862
|
) : P, r = ((l = this.tools) == null ? void 0 : l.length) === 1 ? `${this.tools[0]}-icon` : "", s = n == null ? void 0 : n.length, a = i == null ? void 0 : i.length;
|
|
3866
|
-
return
|
|
3863
|
+
return $`
|
|
3867
3864
|
<style>
|
|
3868
|
-
${S(this,
|
|
3869
|
-
${!this.unstyled && S(this,
|
|
3865
|
+
${S(this, nn)}
|
|
3866
|
+
${!this.unstyled && S(this, on)}
|
|
3870
3867
|
</style>
|
|
3871
3868
|
${F(
|
|
3872
3869
|
s + a > 0,
|
|
3873
|
-
() =>
|
|
3870
|
+
() => $`
|
|
3874
3871
|
${F(
|
|
3875
3872
|
s === 1 && a === 0,
|
|
3876
|
-
() =>
|
|
3873
|
+
() => $`
|
|
3877
3874
|
<div class="single-action-container">
|
|
3878
3875
|
<div class="single-action">${o}</div>
|
|
3879
3876
|
</div>
|
|
3880
3877
|
`,
|
|
3881
|
-
() =>
|
|
3878
|
+
() => $`
|
|
3882
3879
|
<details
|
|
3883
3880
|
class="tools"
|
|
3884
3881
|
open=${this.layer.get("layerControlToolsExpand") || P}
|
|
@@ -3895,7 +3892,7 @@ class Ro extends tt {
|
|
|
3895
3892
|
.toolsAsList=${this.toolsAsList}
|
|
3896
3893
|
>
|
|
3897
3894
|
<!-- Rendering tabs and content -->
|
|
3898
|
-
${
|
|
3895
|
+
${Ne(i, (u) => this._button(u))}
|
|
3899
3896
|
<!-- Including default tools -->
|
|
3900
3897
|
${this._getDefaultTools()}
|
|
3901
3898
|
</eox-layercontrol-tools-items>
|
|
@@ -3907,8 +3904,8 @@ class Ro extends tt {
|
|
|
3907
3904
|
`;
|
|
3908
3905
|
}
|
|
3909
3906
|
}
|
|
3910
|
-
|
|
3911
|
-
I(
|
|
3907
|
+
nn = new WeakMap(), on = new WeakMap(), // Define static properties for the component
|
|
3908
|
+
I(Oo, "properties", {
|
|
3912
3909
|
layer: { attribute: !1 },
|
|
3913
3910
|
tools: { attribute: !1 },
|
|
3914
3911
|
unstyled: { type: Boolean },
|
|
@@ -3917,11 +3914,11 @@ I(Ro, "properties", {
|
|
|
3917
3914
|
});
|
|
3918
3915
|
customElements.define(
|
|
3919
3916
|
"eox-layercontrol-layer-tools",
|
|
3920
|
-
|
|
3917
|
+
Oo
|
|
3921
3918
|
);
|
|
3922
|
-
const
|
|
3919
|
+
const ba = (e) => {
|
|
3923
3920
|
const t = () => {
|
|
3924
|
-
const n =
|
|
3921
|
+
const n = Vs(
|
|
3925
3922
|
e.layer,
|
|
3926
3923
|
e.map,
|
|
3927
3924
|
e.showLayerZoomState
|
|
@@ -3931,11 +3928,11 @@ const va = (e) => {
|
|
|
3931
3928
|
new CustomEvent("change:resolution", { bubbles: !0 })
|
|
3932
3929
|
));
|
|
3933
3930
|
};
|
|
3934
|
-
|
|
3931
|
+
vo(
|
|
3935
3932
|
e.layer,
|
|
3936
3933
|
e.showLayerZoomState
|
|
3937
3934
|
) && (t(), e.map.getView().on("change:resolution", () => t()));
|
|
3938
|
-
},
|
|
3935
|
+
}, va = (e, t) => {
|
|
3939
3936
|
const n = t.layer;
|
|
3940
3937
|
n.setVisible(e.target.checked), e.target.checked && n.get("layerControlExclusive") && t.closest(
|
|
3941
3938
|
".layers > ul"
|
|
@@ -3946,19 +3943,19 @@ const va = (e) => {
|
|
|
3946
3943
|
new CustomEvent("changed", { bubbles: !0, detail: n })
|
|
3947
3944
|
), t.requestUpdate();
|
|
3948
3945
|
};
|
|
3949
|
-
var Pt,
|
|
3950
|
-
class
|
|
3946
|
+
var Pt, He, Lo, rn, sn;
|
|
3947
|
+
class Ro extends tt {
|
|
3951
3948
|
constructor() {
|
|
3952
3949
|
super();
|
|
3953
|
-
|
|
3950
|
+
C(this, Pt);
|
|
3954
3951
|
/**
|
|
3955
3952
|
* Represents the current layer visibility based on zoom level.
|
|
3956
3953
|
*
|
|
3957
3954
|
* @type {Boolean}
|
|
3958
3955
|
*/
|
|
3959
3956
|
I(this, "currLayerVisibilityBasedOnZoom", !0);
|
|
3960
|
-
|
|
3961
|
-
|
|
3957
|
+
C(this, rn, "");
|
|
3958
|
+
C(this, sn, `
|
|
3962
3959
|
${Do}
|
|
3963
3960
|
eox-layercontrol-layer {
|
|
3964
3961
|
width: 100%;
|
|
@@ -4013,7 +4010,7 @@ class Lo extends tt {
|
|
|
4013
4010
|
* and register "change:resolution" ones at the beginning if `showLayerZoomState` is present
|
|
4014
4011
|
*/
|
|
4015
4012
|
firstUpdated() {
|
|
4016
|
-
|
|
4013
|
+
ba(this);
|
|
4017
4014
|
}
|
|
4018
4015
|
/**
|
|
4019
4016
|
* Renders layer controls and tools with conditional display based on certain properties.
|
|
@@ -4022,30 +4019,30 @@ class Lo extends tt {
|
|
|
4022
4019
|
*/
|
|
4023
4020
|
render() {
|
|
4024
4021
|
var l;
|
|
4025
|
-
const n = this.layer.getVisible(), i = n ? "visible" : "", o = this.currLayerVisibilityBasedOnZoom ? "" : "zoom-state-invisible", r = V(this, Pt,
|
|
4026
|
-
return
|
|
4022
|
+
const n = this.layer.getVisible(), i = n ? "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
|
+
return $`
|
|
4027
4024
|
<style>
|
|
4028
|
-
${S(this,
|
|
4029
|
-
${!this.unstyled && S(this,
|
|
4025
|
+
${S(this, rn)}
|
|
4026
|
+
${!this.unstyled && S(this, sn)}
|
|
4030
4027
|
</style>
|
|
4031
4028
|
${F(
|
|
4032
4029
|
this.layer,
|
|
4033
|
-
() =>
|
|
4030
|
+
() => $`
|
|
4034
4031
|
<!-- Render the layer -->
|
|
4035
4032
|
<div class="layer ${i} ${o}">
|
|
4036
4033
|
<label class="drag-handle ${r}">
|
|
4037
4034
|
<!-- Input element for layer visibility -->
|
|
4038
4035
|
<input
|
|
4039
4036
|
type=${s}
|
|
4040
|
-
.checked=${
|
|
4041
|
-
@click=${V(this, Pt,
|
|
4037
|
+
.checked=${xo(n)}
|
|
4038
|
+
@click=${V(this, Pt, Lo)}
|
|
4042
4039
|
/>
|
|
4043
4040
|
|
|
4044
4041
|
<!-- Layer title -->
|
|
4045
|
-
<span class="title">${V(this, Pt,
|
|
4042
|
+
<span class="title">${V(this, Pt, He).call(this, this.titleProperty)}</span>
|
|
4046
4043
|
${F(
|
|
4047
4044
|
a,
|
|
4048
|
-
() =>
|
|
4045
|
+
() => $`<span class="tools-placeholder"></span>`
|
|
4049
4046
|
)}
|
|
4050
4047
|
</label>
|
|
4051
4048
|
</div>
|
|
@@ -4069,7 +4066,7 @@ Pt = new WeakSet(), /**
|
|
|
4069
4066
|
* @param {string} key - The key for the layer property.
|
|
4070
4067
|
* @returns {any} - The value of the layer property if exists, otherwise undefined.
|
|
4071
4068
|
*/
|
|
4072
|
-
|
|
4069
|
+
He = function(n) {
|
|
4073
4070
|
var i;
|
|
4074
4071
|
return (i = this.layer) == null ? void 0 : i.get(n);
|
|
4075
4072
|
}, /**
|
|
@@ -4077,10 +4074,10 @@ Ne = function(n) {
|
|
|
4077
4074
|
*
|
|
4078
4075
|
* @param {{target: { checked: boolean }}} evt - The input change event.
|
|
4079
4076
|
*/
|
|
4080
|
-
|
|
4081
|
-
|
|
4082
|
-
},
|
|
4083
|
-
I(
|
|
4077
|
+
Lo = function(n) {
|
|
4078
|
+
va(n, this);
|
|
4079
|
+
}, rn = new WeakMap(), sn = new WeakMap(), // Define static properties for the component
|
|
4080
|
+
I(Ro, "properties", {
|
|
4084
4081
|
layer: { attribute: !1 },
|
|
4085
4082
|
map: { attribute: !1, state: !0 },
|
|
4086
4083
|
titleProperty: { attribute: "title-property", type: String },
|
|
@@ -4090,13 +4087,13 @@ I(Lo, "properties", {
|
|
|
4090
4087
|
noShadow: { type: Boolean },
|
|
4091
4088
|
toolsAsList: { type: Boolean }
|
|
4092
4089
|
});
|
|
4093
|
-
customElements.define("eox-layercontrol-layer",
|
|
4094
|
-
var
|
|
4095
|
-
class
|
|
4090
|
+
customElements.define("eox-layercontrol-layer", Ro);
|
|
4091
|
+
var an, ln;
|
|
4092
|
+
class Mo extends tt {
|
|
4096
4093
|
constructor() {
|
|
4097
4094
|
super();
|
|
4098
|
-
|
|
4099
|
-
|
|
4095
|
+
C(this, an, "");
|
|
4096
|
+
C(this, ln, `
|
|
4100
4097
|
details summary {
|
|
4101
4098
|
cursor: pointer;
|
|
4102
4099
|
display: flex;
|
|
@@ -4136,17 +4133,17 @@ class Io extends tt {
|
|
|
4136
4133
|
*/
|
|
4137
4134
|
render() {
|
|
4138
4135
|
var o, r;
|
|
4139
|
-
const n = !!((o = this.group) != null && o.get("layerControlExpand")), i = (r =
|
|
4136
|
+
const n = !!((o = this.group) != null && o.get("layerControlExpand")), i = (r = $o(
|
|
4140
4137
|
this.group.getLayers()
|
|
4141
4138
|
)) == null ? void 0 : r.length;
|
|
4142
|
-
return
|
|
4139
|
+
return $`
|
|
4143
4140
|
<style>
|
|
4144
|
-
${S(this,
|
|
4145
|
-
${!this.unstyled && S(this,
|
|
4141
|
+
${S(this, an)}
|
|
4142
|
+
${!this.unstyled && S(this, ln)}
|
|
4146
4143
|
</style>
|
|
4147
4144
|
${F(
|
|
4148
4145
|
this.group,
|
|
4149
|
-
() =>
|
|
4146
|
+
() => $`
|
|
4150
4147
|
<!-- Render the details element with the layer control -->
|
|
4151
4148
|
<details
|
|
4152
4149
|
open=${n || P}
|
|
@@ -4186,8 +4183,8 @@ class Io extends tt {
|
|
|
4186
4183
|
`;
|
|
4187
4184
|
}
|
|
4188
4185
|
}
|
|
4189
|
-
|
|
4190
|
-
I(
|
|
4186
|
+
an = new WeakMap(), ln = new WeakMap(), // Define static properties for the component
|
|
4187
|
+
I(Mo, "properties", {
|
|
4191
4188
|
group: { attribute: !1 },
|
|
4192
4189
|
idProperty: { attribute: "id-property" },
|
|
4193
4190
|
map: { attribute: !1, state: !0 },
|
|
@@ -4200,34 +4197,34 @@ I(Io, "properties", {
|
|
|
4200
4197
|
});
|
|
4201
4198
|
customElements.define(
|
|
4202
4199
|
"eox-layercontrol-layer-group",
|
|
4203
|
-
|
|
4200
|
+
Mo
|
|
4204
4201
|
);
|
|
4205
|
-
var
|
|
4206
|
-
return
|
|
4202
|
+
var wa = "Expected a function", Oi = 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, In = function() {
|
|
4203
|
+
return Pa.Date.now();
|
|
4207
4204
|
};
|
|
4208
|
-
function
|
|
4205
|
+
function Ma(e, t, n) {
|
|
4209
4206
|
var i, o, r, s, a, l, u = 0, c = !1, d = !1, p = !0;
|
|
4210
4207
|
if (typeof e != "function")
|
|
4211
|
-
throw new TypeError(
|
|
4212
|
-
t = Ri(t) || 0, jn(n) && (c = !!n.leading, d = "maxWait" in n, r = d ?
|
|
4208
|
+
throw new TypeError(wa);
|
|
4209
|
+
t = Ri(t) || 0, jn(n) && (c = !!n.leading, d = "maxWait" in n, r = d ? Ra(Ri(n.maxWait) || 0, t) : r, p = "trailing" in n ? !!n.trailing : p);
|
|
4213
4210
|
function f(b) {
|
|
4214
|
-
var
|
|
4215
|
-
return i = o = void 0, u = b, s = e.apply(z,
|
|
4211
|
+
var O = i, z = o;
|
|
4212
|
+
return i = o = void 0, u = b, s = e.apply(z, O), s;
|
|
4216
4213
|
}
|
|
4217
4214
|
function g(b) {
|
|
4218
4215
|
return u = b, a = setTimeout(M, t), c ? f(b) : s;
|
|
4219
4216
|
}
|
|
4220
4217
|
function y(b) {
|
|
4221
|
-
var
|
|
4222
|
-
return d ?
|
|
4218
|
+
var O = b - l, z = b - u, U = t - O;
|
|
4219
|
+
return d ? La(U, r - z) : U;
|
|
4223
4220
|
}
|
|
4224
|
-
function
|
|
4225
|
-
var
|
|
4226
|
-
return l === void 0 ||
|
|
4221
|
+
function D(b) {
|
|
4222
|
+
var O = b - l, z = b - u;
|
|
4223
|
+
return l === void 0 || O >= t || O < 0 || d && z >= r;
|
|
4227
4224
|
}
|
|
4228
4225
|
function M() {
|
|
4229
4226
|
var b = In();
|
|
4230
|
-
if (
|
|
4227
|
+
if (D(b))
|
|
4231
4228
|
return H(b);
|
|
4232
4229
|
a = setTimeout(M, y(b));
|
|
4233
4230
|
}
|
|
@@ -4241,8 +4238,8 @@ function Ia(e, t, n) {
|
|
|
4241
4238
|
return a === void 0 ? s : H(In());
|
|
4242
4239
|
}
|
|
4243
4240
|
function K() {
|
|
4244
|
-
var b = In(),
|
|
4245
|
-
if (i = arguments, o = this, l = b,
|
|
4241
|
+
var b = In(), O = D(b);
|
|
4242
|
+
if (i = arguments, o = this, l = b, O) {
|
|
4246
4243
|
if (a === void 0)
|
|
4247
4244
|
return g(l);
|
|
4248
4245
|
if (d)
|
|
@@ -4256,50 +4253,50 @@ function jn(e) {
|
|
|
4256
4253
|
var t = typeof e;
|
|
4257
4254
|
return !!e && (t == "object" || t == "function");
|
|
4258
4255
|
}
|
|
4259
|
-
function
|
|
4256
|
+
function Ia(e) {
|
|
4260
4257
|
return !!e && typeof e == "object";
|
|
4261
4258
|
}
|
|
4262
|
-
function
|
|
4263
|
-
return typeof e == "symbol" ||
|
|
4259
|
+
function Na(e) {
|
|
4260
|
+
return typeof e == "symbol" || Ia(e) && Oa.call(e) == $a;
|
|
4264
4261
|
}
|
|
4265
4262
|
function Ri(e) {
|
|
4266
4263
|
if (typeof e == "number")
|
|
4267
4264
|
return e;
|
|
4268
|
-
if (
|
|
4269
|
-
return
|
|
4265
|
+
if (Na(e))
|
|
4266
|
+
return Oi;
|
|
4270
4267
|
if (jn(e)) {
|
|
4271
4268
|
var t = typeof e.valueOf == "function" ? e.valueOf() : e;
|
|
4272
4269
|
e = jn(t) ? t + "" : t;
|
|
4273
4270
|
}
|
|
4274
4271
|
if (typeof e != "string")
|
|
4275
4272
|
return e === 0 ? e : +e;
|
|
4276
|
-
e = e.replace(
|
|
4277
|
-
var n =
|
|
4278
|
-
return n ||
|
|
4273
|
+
e = e.replace(xa, "");
|
|
4274
|
+
var n = Sa.test(e);
|
|
4275
|
+
return n || Aa.test(e) ? _a(e.slice(2), n ? 2 : 8) : Ea.test(e) ? Oi : +e;
|
|
4279
4276
|
}
|
|
4280
|
-
var
|
|
4281
|
-
const
|
|
4282
|
-
const { layers: t, idProperty: n, titleProperty: i, renderRoot: o } = e, r =
|
|
4277
|
+
var Ha = Ma;
|
|
4278
|
+
const Va = /* @__PURE__ */ Eo(Ha), Ba = (e) => {
|
|
4279
|
+
const { layers: t, idProperty: n, titleProperty: i, renderRoot: o } = e, r = Va(() => {
|
|
4283
4280
|
e.requestUpdate(), e.dispatchEvent(
|
|
4284
4281
|
new CustomEvent("changed", { bubbles: !0 })
|
|
4285
4282
|
);
|
|
4286
4283
|
}, 50), s = () => r();
|
|
4287
4284
|
if (t && (t.hasListener("change:length") && (t == null || t.un("change:length", s)), t.on("change:length", s), t)) {
|
|
4288
4285
|
const a = o.querySelector("ul");
|
|
4289
|
-
|
|
4286
|
+
Hs(
|
|
4290
4287
|
t,
|
|
4291
4288
|
n,
|
|
4292
4289
|
i,
|
|
4293
4290
|
e
|
|
4294
|
-
),
|
|
4291
|
+
), Ns(a, t, n, e);
|
|
4295
4292
|
}
|
|
4296
4293
|
};
|
|
4297
|
-
var
|
|
4298
|
-
class
|
|
4294
|
+
var un, dn;
|
|
4295
|
+
class Io extends tt {
|
|
4299
4296
|
constructor() {
|
|
4300
4297
|
super();
|
|
4301
|
-
|
|
4302
|
-
|
|
4298
|
+
C(this, un, "");
|
|
4299
|
+
C(this, dn, `
|
|
4303
4300
|
ul {
|
|
4304
4301
|
padding: 0;
|
|
4305
4302
|
margin: 0;
|
|
@@ -4332,7 +4329,7 @@ class No extends tt {
|
|
|
4332
4329
|
* Executes specific logic after the initial render of the component.
|
|
4333
4330
|
*/
|
|
4334
4331
|
firstUpdated() {
|
|
4335
|
-
|
|
4332
|
+
Ba(this);
|
|
4336
4333
|
}
|
|
4337
4334
|
/**
|
|
4338
4335
|
* Overrides createRenderRoot to handle shadow DOM creation based on the noShadow property.
|
|
@@ -4345,27 +4342,27 @@ class No extends tt {
|
|
|
4345
4342
|
* layer groups or individual layers accordingly. Utilizes conditional rendering and iterates through available layers.
|
|
4346
4343
|
*/
|
|
4347
4344
|
render() {
|
|
4348
|
-
const n = this.layers ?
|
|
4349
|
-
return
|
|
4345
|
+
const n = this.layers ? $o(this.layers).reverse() : [];
|
|
4346
|
+
return $`
|
|
4350
4347
|
<style>
|
|
4351
|
-
${S(this,
|
|
4352
|
-
${!this.unstyled && S(this,
|
|
4348
|
+
${S(this, un)}
|
|
4349
|
+
${!this.unstyled && S(this, dn)}
|
|
4353
4350
|
</style>
|
|
4354
4351
|
<ul>
|
|
4355
4352
|
${F(
|
|
4356
4353
|
this.layers,
|
|
4357
|
-
() =>
|
|
4358
|
-
${
|
|
4354
|
+
() => $`
|
|
4355
|
+
${pr(
|
|
4359
4356
|
n,
|
|
4360
4357
|
(i) => i,
|
|
4361
|
-
(i) =>
|
|
4358
|
+
(i) => $`
|
|
4362
4359
|
<li
|
|
4363
4360
|
data-layer="${i.get(this.idProperty)}"
|
|
4364
|
-
data-type="${
|
|
4361
|
+
data-type="${Bs(i, this.map)}"
|
|
4365
4362
|
>
|
|
4366
4363
|
${/** Checks if the layer is a group or individual layer and renders accordingly */
|
|
4367
4364
|
/** @type {import("ol/layer").Group} */
|
|
4368
|
-
i.getLayers ?
|
|
4365
|
+
i.getLayers ? $`
|
|
4369
4366
|
<eox-layercontrol-layer-group
|
|
4370
4367
|
.noShadow=${!0}
|
|
4371
4368
|
.group=${i}
|
|
@@ -4379,7 +4376,7 @@ class No extends tt {
|
|
|
4379
4376
|
@changed=${() => this.requestUpdate()}
|
|
4380
4377
|
>
|
|
4381
4378
|
</eox-layercontrol-layer-group>
|
|
4382
|
-
` :
|
|
4379
|
+
` : $`
|
|
4383
4380
|
<eox-layercontrol-layer
|
|
4384
4381
|
.noShadow=${!0}
|
|
4385
4382
|
.layer=${i}
|
|
@@ -4401,8 +4398,8 @@ class No extends tt {
|
|
|
4401
4398
|
`;
|
|
4402
4399
|
}
|
|
4403
4400
|
}
|
|
4404
|
-
|
|
4405
|
-
I(
|
|
4401
|
+
un = new WeakMap(), dn = new WeakMap(), // Define static properties for the component
|
|
4402
|
+
I(Io, "properties", {
|
|
4406
4403
|
idProperty: { attribute: "id-property" },
|
|
4407
4404
|
layers: { attribute: !1 },
|
|
4408
4405
|
map: { attribute: !1, state: !0 },
|
|
@@ -4413,8 +4410,8 @@ I(No, "properties", {
|
|
|
4413
4410
|
noShadow: { type: Boolean },
|
|
4414
4411
|
toolsAsList: { type: Boolean }
|
|
4415
4412
|
});
|
|
4416
|
-
customElements.define("eox-layercontrol-layer-list",
|
|
4417
|
-
const
|
|
4413
|
+
customElements.define("eox-layercontrol-layer-list", Io);
|
|
4414
|
+
const ka = (e) => {
|
|
4418
4415
|
const t = e.querySelector(
|
|
4419
4416
|
"select[name=optional]"
|
|
4420
4417
|
), n = t ? t.value : null, i = ii(
|
|
@@ -4423,7 +4420,7 @@ const Ua = (e) => {
|
|
|
4423
4420
|
!0
|
|
4424
4421
|
).find(
|
|
4425
4422
|
(o) => (
|
|
4426
|
-
// @ts-
|
|
4423
|
+
// @ts-expect-error TODO
|
|
4427
4424
|
(o.get(e.idProperty) || o.ol_uid) === n
|
|
4428
4425
|
)
|
|
4429
4426
|
);
|
|
@@ -4436,11 +4433,11 @@ const Ua = (e) => {
|
|
|
4436
4433
|
)
|
|
4437
4434
|
), e.requestUpdate();
|
|
4438
4435
|
};
|
|
4439
|
-
var
|
|
4440
|
-
class
|
|
4436
|
+
var cn, Ho;
|
|
4437
|
+
class No extends tt {
|
|
4441
4438
|
constructor() {
|
|
4442
4439
|
super();
|
|
4443
|
-
|
|
4440
|
+
C(this, cn);
|
|
4444
4441
|
this.idProperty = "id", this.layers = null, this.titleProperty = "title", this.unstyled = !1, this.noShadow = !1;
|
|
4445
4442
|
}
|
|
4446
4443
|
/**
|
|
@@ -4460,7 +4457,7 @@ class Ho extends tt {
|
|
|
4460
4457
|
"layerControlOptional",
|
|
4461
4458
|
!0
|
|
4462
4459
|
);
|
|
4463
|
-
return
|
|
4460
|
+
return $`
|
|
4464
4461
|
<!-- Label for the dropdown -->
|
|
4465
4462
|
<label for="optional">Optional layers</label>
|
|
4466
4463
|
|
|
@@ -4474,23 +4471,23 @@ class Ho extends tt {
|
|
|
4474
4471
|
<!-- Mapping through filtered layers list to generate dropdown options -->
|
|
4475
4472
|
${n.map((i) => {
|
|
4476
4473
|
const o = i.get(this.idProperty) || i.ol_uid, r = i.get(this.titleProperty), s = `layer ${i.get(this.idProperty)}`;
|
|
4477
|
-
return
|
|
4474
|
+
return $` <option value="${o}">${r || s}</option> `;
|
|
4478
4475
|
})}
|
|
4479
4476
|
</select>
|
|
4480
4477
|
|
|
4481
4478
|
<!-- Button to handle adding layers -->
|
|
4482
|
-
<button @click="${V(this,
|
|
4479
|
+
<button @click="${V(this, cn, Ho)}">add</button>
|
|
4483
4480
|
`;
|
|
4484
4481
|
}
|
|
4485
4482
|
}
|
|
4486
|
-
|
|
4483
|
+
cn = new WeakSet(), /**
|
|
4487
4484
|
* Handles the addition of selected layers to a list.
|
|
4488
4485
|
* Invokes the 'addToListMethod' with the current context.
|
|
4489
4486
|
*/
|
|
4490
|
-
|
|
4491
|
-
|
|
4487
|
+
Ho = function() {
|
|
4488
|
+
ka(this);
|
|
4492
4489
|
}, // Define static properties for the component
|
|
4493
|
-
I(
|
|
4490
|
+
I(No, "properties", {
|
|
4494
4491
|
idProperty: { attribute: "id-property" },
|
|
4495
4492
|
layers: { attribute: !1 },
|
|
4496
4493
|
titleProperty: { attribute: "title-property", type: String },
|
|
@@ -4499,27 +4496,27 @@ I(Ho, "properties", {
|
|
|
4499
4496
|
});
|
|
4500
4497
|
customElements.define(
|
|
4501
4498
|
"eox-layercontrol-optional-list",
|
|
4502
|
-
|
|
4499
|
+
No
|
|
4503
4500
|
);
|
|
4504
|
-
const
|
|
4501
|
+
const Ua = (e, t) => {
|
|
4505
4502
|
t.jsonInput = e.target.value, t.requestUpdate();
|
|
4506
4503
|
}, Li = (e) => {
|
|
4507
4504
|
const t = JSON.parse(
|
|
4508
|
-
`{"data":${
|
|
4505
|
+
`{"data":${no(e.jsonInput)}}`
|
|
4509
4506
|
);
|
|
4510
4507
|
Array.isArray(t.data) ? t.data.forEach((n) => {
|
|
4511
4508
|
e.eoxMap.addOrUpdateLayer(n);
|
|
4512
4509
|
}) : e.eoxMap.addOrUpdateLayer(t.data), e.jsonInput = null, e.requestUpdate();
|
|
4513
|
-
},
|
|
4510
|
+
}, Fa = (e, t) => {
|
|
4514
4511
|
t.urlInput = e.target.value, t.requestUpdate();
|
|
4515
4512
|
};
|
|
4516
|
-
async function
|
|
4513
|
+
async function ja(e) {
|
|
4517
4514
|
const t = e.urlInput;
|
|
4518
4515
|
if (e.wmsCapabilities = null, e.searchLoad = !0, e.requestUpdate(), !t) return !1;
|
|
4519
4516
|
if (Qn(t) === "XYZ")
|
|
4520
4517
|
return { Name: t };
|
|
4521
4518
|
try {
|
|
4522
|
-
const n = await
|
|
4519
|
+
const n = await rs(t);
|
|
4523
4520
|
e.wmsCapabilities = n;
|
|
4524
4521
|
} catch {
|
|
4525
4522
|
} finally {
|
|
@@ -4527,7 +4524,7 @@ async function Za(e) {
|
|
|
4527
4524
|
}
|
|
4528
4525
|
return !1;
|
|
4529
4526
|
}
|
|
4530
|
-
const
|
|
4527
|
+
const Za = (e, t) => {
|
|
4531
4528
|
const { Name: n } = e, i = Qn(t.urlInput) || "XYZ", o = {
|
|
4532
4529
|
type: "Tile",
|
|
4533
4530
|
properties: {
|
|
@@ -4546,14 +4543,14 @@ const za = (e, t) => {
|
|
|
4546
4543
|
}
|
|
4547
4544
|
};
|
|
4548
4545
|
t.jsonInput = JSON.stringify(o);
|
|
4549
|
-
},
|
|
4546
|
+
}, za = (e, t) => {
|
|
4550
4547
|
t.open = e || null, t.urlInput = null, t.jsonInput = null, t.wmsCapabilities = null, t.requestUpdate();
|
|
4551
4548
|
};
|
|
4552
|
-
var q,
|
|
4553
|
-
class
|
|
4549
|
+
var q, Bo, ko, Zn, Uo, Fo, Ve, hn, pn;
|
|
4550
|
+
class Vo extends tt {
|
|
4554
4551
|
constructor() {
|
|
4555
4552
|
super();
|
|
4556
|
-
|
|
4553
|
+
C(this, q);
|
|
4557
4554
|
/**
|
|
4558
4555
|
* State for URL Input for WMS/XYZ URLs
|
|
4559
4556
|
*
|
|
@@ -4584,7 +4581,7 @@ class Bo extends tt {
|
|
|
4584
4581
|
* @type {import("wms-capabilities").WMSCapabilitiesJSON}
|
|
4585
4582
|
*/
|
|
4586
4583
|
I(this, "wmsCapabilities", null);
|
|
4587
|
-
|
|
4584
|
+
C(this, hn, `
|
|
4588
4585
|
.eox-add-layer-main .open {
|
|
4589
4586
|
position: relative;
|
|
4590
4587
|
}
|
|
@@ -4592,7 +4589,7 @@ class Bo extends tt {
|
|
|
4592
4589
|
display: none;
|
|
4593
4590
|
}
|
|
4594
4591
|
`);
|
|
4595
|
-
|
|
4592
|
+
C(this, pn, `
|
|
4596
4593
|
.eox-add {
|
|
4597
4594
|
background: #f0f2f5;
|
|
4598
4595
|
border-top: 1px solid #0041701a;
|
|
@@ -4741,24 +4738,24 @@ class Bo extends tt {
|
|
|
4741
4738
|
* Handles input fields, search, and addition of layers.
|
|
4742
4739
|
*/
|
|
4743
4740
|
render() {
|
|
4744
|
-
const n = this.open ? "open" : "close", i = this.open === "url", o = this.open === "json", r = !
|
|
4745
|
-
return
|
|
4741
|
+
const n = this.open ? "open" : "close", i = this.open === "url", o = this.open === "json", r = !ss(this.urlInput) || this.searchLoad ? !0 : P;
|
|
4742
|
+
return $`
|
|
4746
4743
|
<style>
|
|
4747
|
-
${S(this,
|
|
4748
|
-
${!this.unstyled && S(this,
|
|
4744
|
+
${S(this, hn)}
|
|
4745
|
+
${!this.unstyled && S(this, pn)}
|
|
4749
4746
|
</style>
|
|
4750
4747
|
<div class="eox-add-layer-main">
|
|
4751
4748
|
<div class="eox-add-layer-col">
|
|
4752
4749
|
<!-- Tabbed interface for URL and JSON -->
|
|
4753
4750
|
<ul class="eox-add-layer-tab ${n}">
|
|
4754
4751
|
<li
|
|
4755
|
-
@click=${() => V(this, q,
|
|
4752
|
+
@click=${() => V(this, q, Ve).call(this, "url")}
|
|
4756
4753
|
class="${i ? "active" : ""}"
|
|
4757
4754
|
>
|
|
4758
4755
|
URL
|
|
4759
4756
|
</li>
|
|
4760
4757
|
<li
|
|
4761
|
-
@click=${() => V(this, q,
|
|
4758
|
+
@click=${() => V(this, q, Ve).call(this, "json")}
|
|
4762
4759
|
class="${o ? "active" : ""}"
|
|
4763
4760
|
>
|
|
4764
4761
|
JSON
|
|
@@ -4768,13 +4765,13 @@ class Bo extends tt {
|
|
|
4768
4765
|
<!-- Button to toggle tabs -->
|
|
4769
4766
|
<button
|
|
4770
4767
|
class="add-icon icon"
|
|
4771
|
-
@click=${() => V(this, q,
|
|
4768
|
+
@click=${() => V(this, q, Ve).call(this, this.open ? null : "url")}
|
|
4772
4769
|
>
|
|
4773
4770
|
${this.unstyled ? "Add Layer" : ""}
|
|
4774
4771
|
</button>
|
|
4775
4772
|
</div>
|
|
4776
4773
|
<div class="eox-add ${n}">
|
|
4777
|
-
${i ?
|
|
4774
|
+
${i ? $`
|
|
4778
4775
|
<!-- Input field for URL -->
|
|
4779
4776
|
<div class="eox-add-layer-col">
|
|
4780
4777
|
<input
|
|
@@ -4782,32 +4779,32 @@ class Bo extends tt {
|
|
|
4782
4779
|
class="add-url"
|
|
4783
4780
|
placeholder="Add URL (WMS/XYZ)"
|
|
4784
4781
|
.value="${this.urlInput}"
|
|
4785
|
-
@input=${V(this, q,
|
|
4782
|
+
@input=${V(this, q, Bo)}
|
|
4786
4783
|
>
|
|
4787
4784
|
</input>
|
|
4788
4785
|
<!-- Search button for URL -->
|
|
4789
4786
|
<button
|
|
4790
4787
|
class="search-icon"
|
|
4791
4788
|
disabled=${r}
|
|
4792
|
-
@click=${V(this, q,
|
|
4789
|
+
@click=${V(this, q, ko)}
|
|
4793
4790
|
>
|
|
4794
4791
|
${this.unstyled ? "Search" : ""}
|
|
4795
4792
|
</button>
|
|
4796
4793
|
</div>
|
|
4797
4794
|
|
|
4798
4795
|
<!-- Display layers for WMS capabilities -->
|
|
4799
|
-
${this.wmsCapabilities ?
|
|
4796
|
+
${this.wmsCapabilities ? $`<ul class="search-lists">
|
|
4800
4797
|
${this.wmsCapabilities.Capability.Layer.Layer.map(
|
|
4801
4798
|
(s) => {
|
|
4802
4799
|
const a = s.Name;
|
|
4803
|
-
return
|
|
4800
|
+
return $`
|
|
4804
4801
|
<li class="search-list">
|
|
4805
4802
|
${a}
|
|
4806
4803
|
<!-- Button to add layer -->
|
|
4807
4804
|
<button
|
|
4808
4805
|
class="add-layer-icon icon"
|
|
4809
4806
|
@click=${() => (
|
|
4810
|
-
|
|
4807
|
+
// @ts-expect-error TODO
|
|
4811
4808
|
V(this, q, Zn).call(this, s)
|
|
4812
4809
|
)}
|
|
4813
4810
|
>
|
|
@@ -4818,20 +4815,20 @@ class Bo extends tt {
|
|
|
4818
4815
|
}
|
|
4819
4816
|
)}
|
|
4820
4817
|
</ul>` : P}
|
|
4821
|
-
` :
|
|
4818
|
+
` : $`
|
|
4822
4819
|
<!-- Textarea for JSON input -->
|
|
4823
4820
|
<textarea
|
|
4824
4821
|
class="add-layer-input"
|
|
4825
4822
|
placeholder="Please put a valid eox-map layer JSON."
|
|
4826
|
-
@input=${V(this, q,
|
|
4823
|
+
@input=${V(this, q, Fo)}
|
|
4827
4824
|
.value=${this.jsonInput}
|
|
4828
4825
|
></textarea>
|
|
4829
4826
|
|
|
4830
4827
|
<!-- Button to add JSON layer -->
|
|
4831
4828
|
<button
|
|
4832
4829
|
class="add-layer-icon json-add-layer"
|
|
4833
|
-
disabled=${
|
|
4834
|
-
@click=${V(this, q,
|
|
4830
|
+
disabled=${as(this.jsonInput) ? P : !0}
|
|
4831
|
+
@click=${V(this, q, Uo)}
|
|
4835
4832
|
>
|
|
4836
4833
|
${this.unstyled ? "Add JSON" : ""}
|
|
4837
4834
|
</button>
|
|
@@ -4847,10 +4844,10 @@ q = new WeakSet(), /**
|
|
|
4847
4844
|
*
|
|
4848
4845
|
* @param {Event} evt - The input change event triggering the method.
|
|
4849
4846
|
*/
|
|
4850
|
-
|
|
4851
|
-
|
|
4852
|
-
},
|
|
4853
|
-
const n = await
|
|
4847
|
+
Bo = function(n) {
|
|
4848
|
+
Fa(n, this);
|
|
4849
|
+
}, ko = async function() {
|
|
4850
|
+
const n = await ja(this);
|
|
4854
4851
|
n && V(this, q, Zn).call(this, n);
|
|
4855
4852
|
}, /**
|
|
4856
4853
|
* Handles input field changes by triggering layer processing and adding layers.
|
|
@@ -4858,61 +4855,61 @@ ko = function(n) {
|
|
|
4858
4855
|
* @param {{"Name": string}} layer - The layer information triggering the method.
|
|
4859
4856
|
*/
|
|
4860
4857
|
Zn = function(n) {
|
|
4861
|
-
|
|
4858
|
+
Za(n, this), Li(this);
|
|
4862
4859
|
}, /**
|
|
4863
4860
|
* Initiates the addition of layers, triggering the handleAddLayerMethod.
|
|
4864
4861
|
*/
|
|
4865
|
-
|
|
4862
|
+
Uo = function() {
|
|
4866
4863
|
Li(this);
|
|
4867
4864
|
}, /**
|
|
4868
4865
|
* Handles input field changes by invoking the 'handleJsonInputChangeMethod'.
|
|
4869
4866
|
*
|
|
4870
4867
|
* @param {{target: { value: string }}} evt - The input change event triggering the method.
|
|
4871
4868
|
*/
|
|
4872
|
-
|
|
4873
|
-
|
|
4869
|
+
Fo = function(n) {
|
|
4870
|
+
Ua(n, this);
|
|
4874
4871
|
}, /**
|
|
4875
4872
|
* Handles tab changes by invoking the 'openCloseTabMethod'.
|
|
4876
4873
|
*
|
|
4877
4874
|
* @param {"url" | "json" | null} tab - The tab identifier triggering the method.
|
|
4878
4875
|
*/
|
|
4879
|
-
|
|
4880
|
-
|
|
4881
|
-
},
|
|
4882
|
-
I(
|
|
4876
|
+
Ve = function(n) {
|
|
4877
|
+
za(n, this);
|
|
4878
|
+
}, hn = new WeakMap(), pn = new WeakMap(), // Define static properties for the component
|
|
4879
|
+
I(Vo, "properties", {
|
|
4883
4880
|
eoxMap: { attribute: !1, state: !0 },
|
|
4884
4881
|
unstyled: { type: Boolean },
|
|
4885
4882
|
noShadow: { type: Boolean }
|
|
4886
4883
|
});
|
|
4887
|
-
customElements.define("eox-layercontrol-add-layers",
|
|
4888
|
-
const
|
|
4884
|
+
customElements.define("eox-layercontrol-add-layers", Vo);
|
|
4885
|
+
const Xa = (e, t) => {
|
|
4889
4886
|
if (t.requestUpdate(), e.target.tagName === "EOX-LAYERCONTROL-LAYER-TOOLS") {
|
|
4890
4887
|
const n = t.renderRoot.querySelector(
|
|
4891
4888
|
"eox-layercontrol-optional-list"
|
|
4892
4889
|
);
|
|
4893
4890
|
n == null || n.requestUpdate();
|
|
4894
4891
|
}
|
|
4895
|
-
},
|
|
4892
|
+
}, qa = (e) => {
|
|
4896
4893
|
let t;
|
|
4897
4894
|
return typeof e == "string" ? t = /** @type {HTMLElement} */
|
|
4898
4895
|
document.querySelector(e) : t = e, t;
|
|
4899
4896
|
}, Mi = (e) => {
|
|
4900
|
-
const t =
|
|
4897
|
+
const t = qa(e.for);
|
|
4901
4898
|
return t && t.map !== e.map && (e.map = t.map), t;
|
|
4902
4899
|
};
|
|
4903
|
-
var At, Gt,
|
|
4904
|
-
class
|
|
4900
|
+
var At, Gt, Zo, zo, fn;
|
|
4901
|
+
class jo extends tt {
|
|
4905
4902
|
// Constructor to set default values for properties
|
|
4906
4903
|
constructor() {
|
|
4907
4904
|
super();
|
|
4908
|
-
|
|
4905
|
+
C(this, Gt);
|
|
4909
4906
|
/**
|
|
4910
4907
|
* Instance of `eox-map` which is a wrapper for the OL
|
|
4911
4908
|
*
|
|
4912
4909
|
* @type {import("../../map/src/main").EOxMap}
|
|
4913
4910
|
*/
|
|
4914
|
-
|
|
4915
|
-
|
|
4911
|
+
C(this, At);
|
|
4912
|
+
C(this, fn, `
|
|
4916
4913
|
:host, :root {
|
|
4917
4914
|
font-family: Roboto, sans-serif;
|
|
4918
4915
|
--padding: 0.5rem;
|
|
@@ -4943,16 +4940,16 @@ class Zo extends tt {
|
|
|
4943
4940
|
render() {
|
|
4944
4941
|
var o, r, s;
|
|
4945
4942
|
const n = (o = this.map) == null ? void 0 : o.getLayers().getArray(), i = n && ((r = ii(n, "layerControlOptional", !0)) == null ? void 0 : r.length) > 0;
|
|
4946
|
-
return
|
|
4943
|
+
return $`
|
|
4947
4944
|
<style>
|
|
4948
|
-
${!this.unstyled && S(this,
|
|
4945
|
+
${!this.unstyled && S(this, fn)}
|
|
4949
4946
|
${this.styleOverride}
|
|
4950
4947
|
</style>
|
|
4951
4948
|
|
|
4952
4949
|
<!-- Conditional rendering of add layers component -->
|
|
4953
4950
|
${F(
|
|
4954
4951
|
this.addExternalLayers && ((s = S(this, At)) == null ? void 0 : s.addOrUpdateLayer),
|
|
4955
|
-
() =>
|
|
4952
|
+
() => $`
|
|
4956
4953
|
<eox-layercontrol-add-layers
|
|
4957
4954
|
.noShadow=${!0}
|
|
4958
4955
|
.eoxMap=${S(this, At)}
|
|
@@ -4964,7 +4961,7 @@ class Zo extends tt {
|
|
|
4964
4961
|
<!-- Conditional rendering of layer list component -->
|
|
4965
4962
|
${F(
|
|
4966
4963
|
this.map,
|
|
4967
|
-
() =>
|
|
4964
|
+
() => $`
|
|
4968
4965
|
<eox-layercontrol-layer-list
|
|
4969
4966
|
.noShadow=${!0}
|
|
4970
4967
|
class="layers"
|
|
@@ -4976,8 +4973,8 @@ class Zo extends tt {
|
|
|
4976
4973
|
.tools=${this.tools}
|
|
4977
4974
|
.unstyled=${this.unstyled}
|
|
4978
4975
|
.toolsAsList=${this.toolsAsList}
|
|
4979
|
-
@changed=${V(this, Gt,
|
|
4980
|
-
@datetime:updated=${V(this, Gt,
|
|
4976
|
+
@changed=${V(this, Gt, Zo)}
|
|
4977
|
+
@datetime:updated=${V(this, Gt, zo)}
|
|
4981
4978
|
></eox-layercontrol-layer-list>
|
|
4982
4979
|
`
|
|
4983
4980
|
)}
|
|
@@ -4985,7 +4982,7 @@ class Zo extends tt {
|
|
|
4985
4982
|
<!-- Conditional rendering of optional list component -->
|
|
4986
4983
|
${F(
|
|
4987
4984
|
i,
|
|
4988
|
-
() =>
|
|
4985
|
+
() => $`
|
|
4989
4986
|
<eox-layercontrol-optional-list
|
|
4990
4987
|
.noShadow=${!0}
|
|
4991
4988
|
.idProperty=${this.idProperty}
|
|
@@ -5003,18 +5000,18 @@ At = new WeakMap(), Gt = new WeakSet(), /**
|
|
|
5003
5000
|
*
|
|
5004
5001
|
* @param {CustomEvent & {target: Element}} evt
|
|
5005
5002
|
*/
|
|
5006
|
-
|
|
5007
|
-
|
|
5003
|
+
Zo = function(n) {
|
|
5004
|
+
Xa(n, this), this.dispatchEvent(new CustomEvent("layerchange", { detail: n.detail }));
|
|
5008
5005
|
}, /**
|
|
5009
5006
|
* Dispatches datetime updates from layer datetime to the layercontrol
|
|
5010
5007
|
* @param {CustomEvent} evt
|
|
5011
5008
|
*/
|
|
5012
|
-
|
|
5009
|
+
zo = function(n) {
|
|
5013
5010
|
this.dispatchEvent(
|
|
5014
5011
|
new CustomEvent("datetime:updated", { detail: n.detail })
|
|
5015
5012
|
);
|
|
5016
|
-
},
|
|
5017
|
-
I(
|
|
5013
|
+
}, fn = new WeakMap(), // Define static properties for the component
|
|
5014
|
+
I(jo, "properties", {
|
|
5018
5015
|
for: { type: String },
|
|
5019
5016
|
idProperty: { attribute: "id-property" },
|
|
5020
5017
|
map: { attribute: !1, state: !0 },
|
|
@@ -5026,7 +5023,7 @@ I(Zo, "properties", {
|
|
|
5026
5023
|
styleOverride: { type: String },
|
|
5027
5024
|
toolsAsList: { type: Boolean }
|
|
5028
5025
|
});
|
|
5029
|
-
customElements.define("eox-layercontrol",
|
|
5026
|
+
customElements.define("eox-layercontrol", jo);
|
|
5030
5027
|
export {
|
|
5031
|
-
|
|
5028
|
+
jo as EOxLayerControl
|
|
5032
5029
|
};
|