@eox/drawtools 0.9.0 → 0.10.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.
Files changed (35) hide show
  1. package/README.md +4 -0
  2. package/dist/eox-drawtools.js +81 -81
  3. package/dist/eox-drawtools.umd.cjs +9 -9
  4. package/package.json +5 -13
  5. package/src/components/controller.js +187 -0
  6. package/src/components/list.js +189 -0
  7. package/src/enums/draw.js +5 -0
  8. package/src/enums/index.js +9 -0
  9. package/src/enums/stories.js +17 -0
  10. package/src/enums/test.js +7 -0
  11. package/src/helpers/copy-text-to-clipboard.js +13 -0
  12. package/src/helpers/generate-upload-events.js +82 -0
  13. package/src/helpers/index.js +3 -0
  14. package/src/main.js +302 -0
  15. package/src/methods/controller/index.js +3 -0
  16. package/src/methods/controller/update-button-states.js +23 -0
  17. package/src/methods/draw/discard-drawing.js +29 -0
  18. package/src/methods/draw/emit-drawn-features.js +23 -0
  19. package/src/methods/draw/index.js +7 -0
  20. package/src/methods/draw/init-layer.js +83 -0
  21. package/src/methods/draw/on-draw-end.js +22 -0
  22. package/src/methods/draw/start-drawing.js +27 -0
  23. package/src/methods/list/delete-feature.js +24 -0
  24. package/src/methods/list/first-update.js +31 -0
  25. package/src/methods/list/hover-feature.js +17 -0
  26. package/src/methods/list/index.js +6 -0
  27. package/src/methods/list/select-deselect-feature.js +31 -0
  28. package/src/style.eox.js +43 -0
  29. package/test/_mockMap.js +0 -54
  30. package/test/cases/click-discard-btn.js +0 -30
  31. package/test/cases/click-draw-btn.js +0 -27
  32. package/test/cases/copy-geo-json-editor.js +0 -37
  33. package/test/cases/index.js +0 -6
  34. package/test/cases/load-drawtool.js +0 -14
  35. package/test/general.cy.js +0 -39
package/README.md CHANGED
@@ -7,8 +7,12 @@ npm install @eox/drawtools
7
7
  ```
8
8
 
9
9
  ```
10
+ // for setups with bundlers e.g. Vite
10
11
  import "@eox/drawtools"
11
12
 
13
+ // or, for e.g. single HTML files without bundler
14
+ import "@eox/drawtools/dist/eox-drawtools.js"
15
+
12
16
  <eox-drawtools></eox-drawtools>
13
17
  ```
14
18
 
@@ -1,16 +1,16 @@
1
1
  var At = Object.defineProperty;
2
- var Q = (i) => {
2
+ var X = (i) => {
3
3
  throw TypeError(i);
4
4
  };
5
5
  var St = (i, t, e) => t in i ? At(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
6
- var m = (i, t, e) => St(i, typeof t != "symbol" ? t + "" : t, e), X = (i, t, e) => t.has(i) || Q("Cannot " + e);
7
- var b = (i, t, e) => (X(i, t, "read from private field"), e ? e.call(i) : t.get(i)), S = (i, t, e) => t.has(i) ? Q("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(i) : t.set(i, e), $ = (i, t, e, r) => (X(i, t, "write to private field"), r ? r.call(i, e) : t.set(i, e), e);
6
+ var m = (i, t, e) => St(i, typeof t != "symbol" ? t + "" : t, e), Y = (i, t, e) => t.has(i) || X("Cannot " + e);
7
+ var b = (i, t, e) => (Y(i, t, "read from private field"), e ? e.call(i) : t.get(i)), S = (i, t, e) => t.has(i) ? X("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(i) : t.set(i, e), $ = (i, t, e, r) => (Y(i, t, "write to private field"), r ? r.call(i, e) : t.set(i, e), e);
8
8
  /**
9
9
  * @license
10
10
  * Copyright 2019 Google LLC
11
11
  * SPDX-License-Identifier: BSD-3-Clause
12
12
  */
13
- const D = globalThis, K = D.ShadowRoot && (D.ShadyCSS === void 0 || D.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, yt = Symbol(), Y = /* @__PURE__ */ new WeakMap();
13
+ const D = globalThis, K = D.ShadowRoot && (D.ShadyCSS === void 0 || D.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, yt = Symbol(), tt = /* @__PURE__ */ new WeakMap();
14
14
  let Et = class {
15
15
  constructor(t, e, r) {
16
16
  if (this._$cssResult$ = !0, r !== yt) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
@@ -21,7 +21,7 @@ let Et = class {
21
21
  const e = this.t;
22
22
  if (K && t === void 0) {
23
23
  const r = e !== void 0 && e.length === 1;
24
- r && (t = Y.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), r && Y.set(e, t));
24
+ r && (t = tt.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), r && tt.set(e, t));
25
25
  }
26
26
  return t;
27
27
  }
@@ -29,13 +29,13 @@ let Et = class {
29
29
  return this.cssText;
30
30
  }
31
31
  };
32
- const Ct = (i) => new Et(typeof i == "string" ? i : i + "", void 0, yt), Ft = (i, t) => {
32
+ const Ct = (i) => new Et(typeof i == "string" ? i : i + "", void 0, yt), Mt = (i, t) => {
33
33
  if (K) i.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
34
34
  else for (const e of t) {
35
35
  const r = document.createElement("style"), s = D.litNonce;
36
36
  s !== void 0 && r.setAttribute("nonce", s), r.textContent = e.cssText, i.appendChild(r);
37
37
  }
38
- }, tt = K ? (i) => i : (i) => i instanceof CSSStyleSheet ? ((t) => {
38
+ }, et = K ? (i) => i : (i) => i instanceof CSSStyleSheet ? ((t) => {
39
39
  let e = "";
40
40
  for (const r of t.cssRules) e += r.cssText;
41
41
  return Ct(e);
@@ -45,10 +45,10 @@ const Ct = (i) => new Et(typeof i == "string" ? i : i + "", void 0, yt), Ft = (i
45
45
  * Copyright 2017 Google LLC
46
46
  * SPDX-License-Identifier: BSD-3-Clause
47
47
  */
48
- const { is: Mt, defineProperty: Ht, getOwnPropertyDescriptor: kt, getOwnPropertyNames: Ut, getOwnPropertySymbols: Pt, getPrototypeOf: Ot } = Object, f = globalThis, et = f.trustedTypes, Nt = et ? et.emptyScript : "", q = f.reactiveElementPolyfillSupport, U = (i, t) => i, Z = { toAttribute(i, t) {
48
+ const { is: Ft, defineProperty: Ht, getOwnPropertyDescriptor: kt, getOwnPropertyNames: Ut, getOwnPropertySymbols: Ot, getPrototypeOf: Pt } = Object, f = globalThis, it = f.trustedTypes, It = it ? it.emptyScript : "", q = f.reactiveElementPolyfillSupport, U = (i, t) => i, Z = { toAttribute(i, t) {
49
49
  switch (t) {
50
50
  case Boolean:
51
- i = i ? Nt : null;
51
+ i = i ? It : null;
52
52
  break;
53
53
  case Object:
54
54
  case Array:
@@ -73,7 +73,7 @@ const { is: Mt, defineProperty: Ht, getOwnPropertyDescriptor: kt, getOwnProperty
73
73
  }
74
74
  }
75
75
  return e;
76
- } }, gt = (i, t) => !Mt(i, t), it = { attribute: !0, type: String, converter: Z, reflect: !1, hasChanged: gt };
76
+ } }, ft = (i, t) => !Ft(i, t), rt = { attribute: !0, type: String, converter: Z, reflect: !1, hasChanged: ft };
77
77
  Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), f.litPropertyMetadata ?? (f.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
78
78
  class E extends HTMLElement {
79
79
  static addInitializer(t) {
@@ -82,7 +82,7 @@ class E extends HTMLElement {
82
82
  static get observedAttributes() {
83
83
  return this.finalize(), this._$Eh && [...this._$Eh.keys()];
84
84
  }
85
- static createProperty(t, e = it) {
85
+ static createProperty(t, e = rt) {
86
86
  if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
87
87
  const r = Symbol(), s = this.getPropertyDescriptor(t, r, e);
88
88
  s !== void 0 && Ht(this.prototype, t, s);
@@ -102,17 +102,17 @@ class E extends HTMLElement {
102
102
  }, configurable: !0, enumerable: !0 };
103
103
  }
104
104
  static getPropertyOptions(t) {
105
- return this.elementProperties.get(t) ?? it;
105
+ return this.elementProperties.get(t) ?? rt;
106
106
  }
107
107
  static _$Ei() {
108
108
  if (this.hasOwnProperty(U("elementProperties"))) return;
109
- const t = Ot(this);
109
+ const t = Pt(this);
110
110
  t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
111
111
  }
112
112
  static finalize() {
113
113
  if (this.hasOwnProperty(U("finalized"))) return;
114
114
  if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(U("properties"))) {
115
- const e = this.properties, r = [...Ut(e), ...Pt(e)];
115
+ const e = this.properties, r = [...Ut(e), ...Ot(e)];
116
116
  for (const s of r) this.createProperty(s, e[s]);
117
117
  }
118
118
  const t = this[Symbol.metadata];
@@ -131,8 +131,8 @@ class E extends HTMLElement {
131
131
  const e = [];
132
132
  if (Array.isArray(t)) {
133
133
  const r = new Set(t.flat(1 / 0).reverse());
134
- for (const s of r) e.unshift(tt(s));
135
- } else t !== void 0 && e.push(tt(t));
134
+ for (const s of r) e.unshift(et(s));
135
+ } else t !== void 0 && e.push(et(t));
136
136
  return e;
137
137
  }
138
138
  static _$Eu(t, e) {
@@ -161,7 +161,7 @@ class E extends HTMLElement {
161
161
  }
162
162
  createRenderRoot() {
163
163
  const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
164
- return Ft(t, this.constructor.elementStyles), t;
164
+ return Mt(t, this.constructor.elementStyles), t;
165
165
  }
166
166
  connectedCallback() {
167
167
  var t;
@@ -200,7 +200,7 @@ class E extends HTMLElement {
200
200
  }
201
201
  requestUpdate(t, e, r) {
202
202
  if (t !== void 0) {
203
- if (r ?? (r = this.constructor.getPropertyOptions(t)), !(r.hasChanged ?? gt)(this[t], e)) return;
203
+ if (r ?? (r = this.constructor.getPropertyOptions(t)), !(r.hasChanged ?? ft)(this[t], e)) return;
204
204
  this.P(t, e, r);
205
205
  }
206
206
  this.isUpdatePending === !1 && (this._$ES = this._$ET());
@@ -279,53 +279,53 @@ E.elementStyles = [], E.shadowRootOptions = { mode: "open" }, E[U("elementProper
279
279
  * Copyright 2017 Google LLC
280
280
  * SPDX-License-Identifier: BSD-3-Clause
281
281
  */
282
- const P = globalThis, j = P.trustedTypes, rt = j ? j.createPolicy("lit-html", { createHTML: (i) => i }) : void 0, ft = "$lit$", g = `lit$${Math.random().toFixed(9).slice(2)}$`, mt = "?" + g, It = `<${mt}>`, A = document, O = () => A.createComment(""), N = (i) => i === null || typeof i != "object" && typeof i != "function", bt = Array.isArray, Bt = (i) => bt(i) || typeof (i == null ? void 0 : i[Symbol.iterator]) == "function", T = `[
283
- \f\r]`, k = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, st = /-->/g, nt = />/g, v = RegExp(`>|${T}(?:([^\\s"'>=/]+)(${T}*=${T}*(?:[^
284
- \f\r"'\`<>=]|("|')|))|$)`, "g"), ot = /'/g, at = /"/g, $t = /^(?:script|style|textarea|title)$/i, Vt = (i) => (t, ...e) => ({ _$litType$: i, strings: t, values: e }), x = Vt(1), M = Symbol.for("lit-noChange"), d = Symbol.for("lit-nothing"), lt = /* @__PURE__ */ new WeakMap(), w = A.createTreeWalker(A, 129);
282
+ const O = globalThis, j = O.trustedTypes, st = j ? j.createPolicy("lit-html", { createHTML: (i) => i }) : void 0, mt = "$lit$", y = `lit$${Math.random().toFixed(9).slice(2)}$`, bt = "?" + y, Nt = `<${bt}>`, A = document, P = () => A.createComment(""), I = (i) => i === null || typeof i != "object" && typeof i != "function", Q = Array.isArray, Bt = (i) => Q(i) || typeof (i == null ? void 0 : i[Symbol.iterator]) == "function", T = `[
283
+ \f\r]`, k = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, nt = /-->/g, ot = />/g, v = RegExp(`>|${T}(?:([^\\s"'>=/]+)(${T}*=${T}*(?:[^
284
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), at = /'/g, lt = /"/g, $t = /^(?:script|style|textarea|title)$/i, Vt = (i) => (t, ...e) => ({ _$litType$: i, strings: t, values: e }), x = Vt(1), F = Symbol.for("lit-noChange"), d = Symbol.for("lit-nothing"), ct = /* @__PURE__ */ new WeakMap(), w = A.createTreeWalker(A, 129);
285
285
  function vt(i, t) {
286
- if (!Array.isArray(i) || !i.hasOwnProperty("raw")) throw Error("invalid template strings array");
287
- return rt !== void 0 ? rt.createHTML(t) : t;
286
+ if (!Q(i) || !i.hasOwnProperty("raw")) throw Error("invalid template strings array");
287
+ return st !== void 0 ? st.createHTML(t) : t;
288
288
  }
289
289
  const Lt = (i, t) => {
290
290
  const e = i.length - 1, r = [];
291
- let s, n = t === 2 ? "<svg>" : "", o = k;
291
+ let s, n = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = k;
292
292
  for (let l = 0; l < e; l++) {
293
293
  const a = i[l];
294
294
  let h, p, c = -1, u = 0;
295
- for (; u < a.length && (o.lastIndex = u, p = o.exec(a), p !== null); ) u = o.lastIndex, o === k ? p[1] === "!--" ? o = st : p[1] !== void 0 ? o = nt : p[2] !== void 0 ? ($t.test(p[2]) && (s = RegExp("</" + p[2], "g")), o = v) : p[3] !== void 0 && (o = v) : o === v ? p[0] === ">" ? (o = s ?? k, c = -1) : p[1] === void 0 ? c = -2 : (c = o.lastIndex - p[2].length, h = p[1], o = p[3] === void 0 ? v : p[3] === '"' ? at : ot) : o === at || o === ot ? o = v : o === st || o === nt ? o = k : (o = v, s = void 0);
296
- const y = o === v && i[l + 1].startsWith("/>") ? " " : "";
297
- n += o === k ? a + It : c >= 0 ? (r.push(h), a.slice(0, c) + ft + a.slice(c) + g + y) : a + g + (c === -2 ? l : y);
295
+ for (; u < a.length && (o.lastIndex = u, p = o.exec(a), p !== null); ) u = o.lastIndex, o === k ? p[1] === "!--" ? o = nt : p[1] !== void 0 ? o = ot : p[2] !== void 0 ? ($t.test(p[2]) && (s = RegExp("</" + p[2], "g")), o = v) : p[3] !== void 0 && (o = v) : o === v ? p[0] === ">" ? (o = s ?? k, c = -1) : p[1] === void 0 ? c = -2 : (c = o.lastIndex - p[2].length, h = p[1], o = p[3] === void 0 ? v : p[3] === '"' ? lt : at) : o === lt || o === at ? o = v : o === nt || o === ot ? o = k : (o = v, s = void 0);
296
+ const g = o === v && i[l + 1].startsWith("/>") ? " " : "";
297
+ n += o === k ? a + Nt : c >= 0 ? (r.push(h), a.slice(0, c) + mt + a.slice(c) + y + g) : a + y + (c === -2 ? l : g);
298
298
  }
299
- return [vt(i, n + (i[e] || "<?>") + (t === 2 ? "</svg>" : "")), r];
299
+ return [vt(i, n + (i[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), r];
300
300
  };
301
- class I {
301
+ class N {
302
302
  constructor({ strings: t, _$litType$: e }, r) {
303
303
  let s;
304
304
  this.parts = [];
305
305
  let n = 0, o = 0;
306
306
  const l = t.length - 1, a = this.parts, [h, p] = Lt(t, e);
307
- if (this.el = I.createElement(h, r), w.currentNode = this.el.content, e === 2) {
307
+ if (this.el = N.createElement(h, r), w.currentNode = this.el.content, e === 2 || e === 3) {
308
308
  const c = this.el.content.firstChild;
309
309
  c.replaceWith(...c.childNodes);
310
310
  }
311
311
  for (; (s = w.nextNode()) !== null && a.length < l; ) {
312
312
  if (s.nodeType === 1) {
313
- if (s.hasAttributes()) for (const c of s.getAttributeNames()) if (c.endsWith(ft)) {
314
- const u = p[o++], y = s.getAttribute(c).split(g), z = /([.?@])?(.*)/.exec(u);
315
- a.push({ type: 1, index: n, name: z[2], strings: y, ctor: z[1] === "." ? zt : z[1] === "?" ? Dt : z[1] === "@" ? jt : J }), s.removeAttribute(c);
316
- } else c.startsWith(g) && (a.push({ type: 6, index: n }), s.removeAttribute(c));
313
+ if (s.hasAttributes()) for (const c of s.getAttributeNames()) if (c.endsWith(mt)) {
314
+ const u = p[o++], g = s.getAttribute(c).split(y), z = /([.?@])?(.*)/.exec(u);
315
+ a.push({ type: 1, index: n, name: z[2], strings: g, ctor: z[1] === "." ? zt : z[1] === "?" ? Dt : z[1] === "@" ? jt : J }), s.removeAttribute(c);
316
+ } else c.startsWith(y) && (a.push({ type: 6, index: n }), s.removeAttribute(c));
317
317
  if ($t.test(s.tagName)) {
318
- const c = s.textContent.split(g), u = c.length - 1;
318
+ const c = s.textContent.split(y), u = c.length - 1;
319
319
  if (u > 0) {
320
320
  s.textContent = j ? j.emptyScript : "";
321
- for (let y = 0; y < u; y++) s.append(c[y], O()), w.nextNode(), a.push({ type: 2, index: ++n });
322
- s.append(c[u], O());
321
+ for (let g = 0; g < u; g++) s.append(c[g], P()), w.nextNode(), a.push({ type: 2, index: ++n });
322
+ s.append(c[u], P());
323
323
  }
324
324
  }
325
- } else if (s.nodeType === 8) if (s.data === mt) a.push({ type: 2, index: n });
325
+ } else if (s.nodeType === 8) if (s.data === bt) a.push({ type: 2, index: n });
326
326
  else {
327
327
  let c = -1;
328
- for (; (c = s.data.indexOf(g, c + 1)) !== -1; ) a.push({ type: 7, index: n }), c += g.length - 1;
328
+ for (; (c = s.data.indexOf(y, c + 1)) !== -1; ) a.push({ type: 7, index: n }), c += y.length - 1;
329
329
  }
330
330
  n++;
331
331
  }
@@ -337,9 +337,9 @@ class I {
337
337
  }
338
338
  function H(i, t, e = i, r) {
339
339
  var o, l;
340
- if (t === M) return t;
340
+ if (t === F) return t;
341
341
  let s = r !== void 0 ? (o = e._$Co) == null ? void 0 : o[r] : e._$Cl;
342
- const n = N(t) ? void 0 : t._$litDirective$;
342
+ const n = I(t) ? void 0 : t._$litDirective$;
343
343
  return (s == null ? void 0 : s.constructor) !== n && ((l = s == null ? void 0 : s._$AO) == null || l.call(s, !1), n === void 0 ? s = void 0 : (s = new n(i), s._$AT(i, e, r)), r !== void 0 ? (e._$Co ?? (e._$Co = []))[r] = s : e._$Cl = s), s !== void 0 && (t = H(i, s._$AS(i, t.values), s, r)), t;
344
344
  }
345
345
  class Rt {
@@ -390,20 +390,20 @@ class R {
390
390
  return this._$AB;
391
391
  }
392
392
  _$AI(t, e = this) {
393
- t = H(this, t, e), N(t) ? t === d || t == null || t === "" ? (this._$AH !== d && this._$AR(), this._$AH = d) : t !== this._$AH && t !== M && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Bt(t) ? this.k(t) : this._(t);
393
+ t = H(this, t, e), I(t) ? t === d || t == null || t === "" ? (this._$AH !== d && this._$AR(), this._$AH = d) : t !== this._$AH && t !== F && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Bt(t) ? this.k(t) : this._(t);
394
394
  }
395
- S(t) {
395
+ O(t) {
396
396
  return this._$AA.parentNode.insertBefore(t, this._$AB);
397
397
  }
398
398
  T(t) {
399
- this._$AH !== t && (this._$AR(), this._$AH = this.S(t));
399
+ this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
400
400
  }
401
401
  _(t) {
402
- this._$AH !== d && N(this._$AH) ? this._$AA.nextSibling.data = t : this.T(A.createTextNode(t)), this._$AH = t;
402
+ this._$AH !== d && I(this._$AH) ? this._$AA.nextSibling.data = t : this.T(A.createTextNode(t)), this._$AH = t;
403
403
  }
404
404
  $(t) {
405
405
  var n;
406
- const { values: e, _$litType$: r } = t, s = typeof r == "number" ? this._$AC(t) : (r.el === void 0 && (r.el = I.createElement(vt(r.h, r.h[0]), this.options)), r);
406
+ const { values: e, _$litType$: r } = t, s = typeof r == "number" ? this._$AC(t) : (r.el === void 0 && (r.el = N.createElement(vt(r.h, r.h[0]), this.options)), r);
407
407
  if (((n = this._$AH) == null ? void 0 : n._$AD) === s) this._$AH.p(e);
408
408
  else {
409
409
  const o = new Rt(s, this), l = o.u(this.options);
@@ -411,14 +411,14 @@ class R {
411
411
  }
412
412
  }
413
413
  _$AC(t) {
414
- let e = lt.get(t.strings);
415
- return e === void 0 && lt.set(t.strings, e = new I(t)), e;
414
+ let e = ct.get(t.strings);
415
+ return e === void 0 && ct.set(t.strings, e = new N(t)), e;
416
416
  }
417
417
  k(t) {
418
- bt(this._$AH) || (this._$AH = [], this._$AR());
418
+ Q(this._$AH) || (this._$AH = [], this._$AR());
419
419
  const e = this._$AH;
420
420
  let r, s = 0;
421
- for (const n of t) s === e.length ? e.push(r = new R(this.S(O()), this.S(O()), this, this.options)) : r = e[s], r._$AI(n), s++;
421
+ for (const n of t) s === e.length ? e.push(r = new R(this.O(P()), this.O(P()), this, this.options)) : r = e[s], r._$AI(n), s++;
422
422
  s < e.length && (this._$AR(r && r._$AB.nextSibling, s), e.length = s);
423
423
  }
424
424
  _$AR(t = this._$AA.nextSibling, e) {
@@ -446,11 +446,11 @@ class J {
446
446
  _$AI(t, e = this, r, s) {
447
447
  const n = this.strings;
448
448
  let o = !1;
449
- if (n === void 0) t = H(this, t, e, 0), o = !N(t) || t !== this._$AH && t !== M, o && (this._$AH = t);
449
+ if (n === void 0) t = H(this, t, e, 0), o = !I(t) || t !== this._$AH && t !== F, o && (this._$AH = t);
450
450
  else {
451
451
  const l = t;
452
452
  let a, h;
453
- for (t = n[0], a = 0; a < n.length - 1; a++) h = H(this, l[r + a], e, a), h === M && (h = this._$AH[a]), o || (o = !N(h) || h !== this._$AH[a]), h === d ? t = d : t !== d && (t += (h ?? "") + n[a + 1]), this._$AH[a] = h;
453
+ for (t = n[0], a = 0; a < n.length - 1; a++) h = H(this, l[r + a], e, a), h === F && (h = this._$AH[a]), o || (o = !I(h) || h !== this._$AH[a]), h === d ? t = d : t !== d && (t += (h ?? "") + n[a + 1]), this._$AH[a] = h;
454
454
  }
455
455
  o && !s && this.j(t);
456
456
  }
@@ -479,7 +479,7 @@ class jt extends J {
479
479
  super(t, e, r, s, n), this.type = 5;
480
480
  }
481
481
  _$AI(t, e = this) {
482
- if ((t = H(this, t, e, 0) ?? d) === M) return;
482
+ if ((t = H(this, t, e, 0) ?? d) === F) return;
483
483
  const r = this._$AH, s = t === d && r !== d || t.capture !== r.capture || t.once !== r.once || t.passive !== r.passive, n = t !== d && (r === d || s);
484
484
  s && this.element.removeEventListener(this.name, this, r), n && this.element.addEventListener(this.name, this, t), this._$AH = t;
485
485
  }
@@ -499,14 +499,14 @@ class Jt {
499
499
  H(this, t);
500
500
  }
501
501
  }
502
- const G = P.litHtmlPolyfillSupport;
503
- G == null || G(I, R), (P.litHtmlVersions ?? (P.litHtmlVersions = [])).push("3.1.4");
502
+ const G = O.litHtmlPolyfillSupport;
503
+ G == null || G(N, R), (O.litHtmlVersions ?? (O.litHtmlVersions = [])).push("3.2.1");
504
504
  const qt = (i, t, e) => {
505
505
  const r = (e == null ? void 0 : e.renderBefore) ?? t;
506
506
  let s = r._$litPart$;
507
507
  if (s === void 0) {
508
508
  const n = (e == null ? void 0 : e.renderBefore) ?? null;
509
- r._$litPart$ = s = new R(t.insertBefore(O(), n), n, void 0, e ?? {});
509
+ r._$litPart$ = s = new R(t.insertBefore(P(), n), n, void 0, e ?? {});
510
510
  }
511
511
  return s._$AI(i), s;
512
512
  };
@@ -537,14 +537,14 @@ class _ extends E {
537
537
  super.disconnectedCallback(), (t = this._$Do) == null || t.setConnected(!1);
538
538
  }
539
539
  render() {
540
- return M;
540
+ return F;
541
541
  }
542
542
  }
543
- var ut;
544
- _._$litElement$ = !0, _.finalized = !0, (ut = globalThis.litElementHydrateSupport) == null || ut.call(globalThis, { LitElement: _ });
543
+ var gt;
544
+ _._$litElement$ = !0, _.finalized = !0, (gt = globalThis.litElementHydrateSupport) == null || gt.call(globalThis, { LitElement: _ });
545
545
  const W = globalThis.litElementPolyfillSupport;
546
546
  W == null || W({ LitElement: _ });
547
- (globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.0.6");
547
+ (globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.1.1");
548
548
  /**
549
549
  * @license
550
550
  * Copyright 2017 Google LLC
@@ -608,17 +608,17 @@ const Kt = Tt(class extends Gt {
608
608
  i.stopPropagation();
609
609
  const e = Number(i.target.getAttribute("index")), r = t.drawnFeatures[e];
610
610
  t.drawLayer.getSource().removeFeature(r), t.drawnFeatures.splice(e, 1), t.requestUpdate();
611
- }, ct = { duration: 750 }, ht = {
611
+ }, ht = { duration: 750 }, dt = {
612
612
  type: "FeatureCollection",
613
613
  features: []
614
614
  }, te = (i, t) => {
615
615
  const e = i.get("id"), { clickId: r, drawLayer: s, olMap: n, clickInteraction: o } = t, l = r === e, a = i.getGeometry();
616
616
  if (l) {
617
617
  const h = s.getSource().getExtent();
618
- n.getView().fit(h, ct), o.highlightById([]);
618
+ n.getView().fit(h, ht), o.highlightById([]);
619
619
  } else {
620
620
  const h = a.getExtent();
621
- o.highlightById([e]), n.getView().fit(h, ct);
621
+ o.highlightById([e]), n.getView().fit(h, ht);
622
622
  }
623
623
  t.requestUpdate();
624
624
  }, ee = "ul.list-wrap { padding: 0;}ul.list-wrap li:hover,ul.list-wrap li.selected { background: var(--secondary-bg-color-hover);}ul.list-wrap li { list-style: none; padding: 4px;}ul.list-wrap li { border-bottom: 1.2px solid var(--secondary-color);}ul.list-wrap li:first-child { border-top: 1.2px solid var(--secondary-color);}ul.list-wrap li .list { width: 100%; align-items: center; justify-content: space-between; display: flex; align-items: center; cursor: pointer; font-size: small; gap: 10px;}ul.list-wrap li .list span { display: flex; align-items: center; cursor: pointer; font-size: small; flex-grow: 1;}";
@@ -745,7 +745,7 @@ function ne(i) {
745
745
  * Copyright 2021 Google LLC
746
746
  * SPDX-License-Identifier: BSD-3-Clause
747
747
  */
748
- function dt(i, t, e) {
748
+ function pt(i, t, e) {
749
749
  return i ? t(i) : e == null ? void 0 : e(i);
750
750
  }
751
751
  var B, V;
@@ -808,7 +808,7 @@ class xt extends _ {
808
808
  </div>
809
809
 
810
810
  <!-- Import Button -->
811
- ${dt(
811
+ ${pt(
812
812
  this.importFeatures,
813
813
  () => x`
814
814
  <!-- Import Input Field : Hidden -->
@@ -832,7 +832,7 @@ class xt extends _ {
832
832
  </div>
833
833
 
834
834
  <!-- Geo JSON Wrapper -->
835
- ${dt(
835
+ ${pt(
836
836
  this.showEditor,
837
837
  () => x`
838
838
  <div class="json-wrapper">
@@ -926,7 +926,7 @@ const oe = `
926
926
  let t;
927
927
  return typeof i == "string" ? t = /** @type {HTMLElement} */
928
928
  document.querySelector(i) : t = i, t;
929
- }, pt = (i, t) => {
929
+ }, ut = (i, t) => {
930
930
  var n;
931
931
  const r = ce(i.for), s = r.map;
932
932
  return i.drawLayer = r.addOrUpdateLayer({
@@ -1008,21 +1008,21 @@ function ue(i, t) {
1008
1008
  t.addEventListener(n, e, !1), ["dragenter", "dragover"].includes(n) ? t.addEventListener(n, r, !1) : t.addEventListener(n, s, !1);
1009
1009
  }), t.addEventListener("drop", (n) => _t(n, i), !1);
1010
1010
  }
1011
- function ye(i) {
1011
+ function ge(i) {
1012
1012
  i.preventDefault(), i.stopPropagation();
1013
1013
  }
1014
1014
  function _t(i, t) {
1015
- ye(i);
1015
+ ge(i);
1016
1016
  const e = i.dataTransfer ? i.dataTransfer.files : i.target.files;
1017
- Array.from(e).forEach((r) => ge(r, t));
1017
+ Array.from(e).forEach((r) => ye(r, t));
1018
1018
  }
1019
- function ge(i, t) {
1019
+ function ye(i, t) {
1020
1020
  const e = new FileReader();
1021
1021
  e.readAsText(i), e.onloadend = function() {
1022
1022
  typeof e.result == "string" && t.handleFeatureChange(e.result);
1023
1023
  };
1024
1024
  }
1025
- var C, F, L;
1025
+ var C, M, L;
1026
1026
  class fe extends _ {
1027
1027
  constructor() {
1028
1028
  super();
@@ -1033,7 +1033,7 @@ class fe extends _ {
1033
1033
  /**
1034
1034
  * @type import("ol").Map
1035
1035
  */
1036
- S(this, F);
1036
+ S(this, M);
1037
1037
  /**
1038
1038
  * @type string
1039
1039
  */
@@ -1078,7 +1078,7 @@ class fe extends _ {
1078
1078
  */
1079
1079
  handleFeatureChange(e, r = !1) {
1080
1080
  this.eoxMap.parseTextToFeature(
1081
- e || JSON.stringify(ht),
1081
+ e || JSON.stringify(dt),
1082
1082
  this.drawLayer,
1083
1083
  r
1084
1084
  );
@@ -1100,7 +1100,7 @@ class fe extends _ {
1100
1100
  */
1101
1101
  updateGeoJSON() {
1102
1102
  $(this, L, JSON.stringify(
1103
- this.eoxMap.parseFeature(this.drawnFeatures) || ht,
1103
+ this.eoxMap.parseFeature(this.drawnFeatures) || dt,
1104
1104
  void 0,
1105
1105
  2
1106
1106
  ));
@@ -1127,13 +1127,13 @@ class fe extends _ {
1127
1127
  * It then calls requestUpdate to trigger a re-render.
1128
1128
  */
1129
1129
  firstUpdated() {
1130
- const { EoxMap: e, OlMap: r } = pt(this, this.multipleFeatures);
1131
- this.eoxMap = e, $(this, F, r), this.importFeatures && ue(this, this.eoxMap), this.updateGeoJSON(), this.requestUpdate();
1130
+ const { EoxMap: e, OlMap: r } = ut(this, this.multipleFeatures);
1131
+ this.eoxMap = e, $(this, M, r), this.importFeatures && ue(this, this.eoxMap), this.updateGeoJSON(), this.requestUpdate();
1132
1132
  }
1133
1133
  updated(e) {
1134
1134
  if (e.has("for")) {
1135
- const { EoxMap: r, OlMap: s } = pt(this, this.multipleFeatures);
1136
- this.eoxMap = r, $(this, F, s);
1135
+ const { EoxMap: r, OlMap: s } = ut(this, this.multipleFeatures);
1136
+ this.eoxMap = r, $(this, M, s);
1137
1137
  }
1138
1138
  }
1139
1139
  get eoxMap() {
@@ -1173,7 +1173,7 @@ class fe extends _ {
1173
1173
  <!-- List Component -->
1174
1174
  ${this.showList && ((e = this.drawnFeatures) != null && e.length) ? x`<eox-drawtools-list
1175
1175
  .eoxMap=${this.eoxMap}
1176
- .olMap=${b(this, F)}
1176
+ .olMap=${b(this, M)}
1177
1177
  .draw=${this.draw}
1178
1178
  .drawLayer=${this.drawLayer}
1179
1179
  .drawnFeatures=${this.drawnFeatures}
@@ -1186,7 +1186,7 @@ class fe extends _ {
1186
1186
  `;
1187
1187
  }
1188
1188
  }
1189
- C = new WeakMap(), F = new WeakMap(), L = new WeakMap();
1189
+ C = new WeakMap(), M = new WeakMap(), L = new WeakMap();
1190
1190
  customElements.define("eox-drawtools", fe);
1191
1191
  export {
1192
1192
  fe as EOxDrawTools
@@ -1,22 +1,22 @@
1
- (function(c,l){typeof exports=="object"&&typeof module<"u"?l(exports):typeof define=="function"&&define.amd?define(["exports"],l):(c=typeof globalThis<"u"?globalThis:c||self,l(c["eox-drawtools"]={}))})(this,function(c){"use strict";var fe=Object.defineProperty;var At=c=>{throw TypeError(c)};var me=(c,l,y)=>l in c?fe(c,l,{enumerable:!0,configurable:!0,writable:!0,value:y}):c[l]=y;var S=(c,l,y)=>me(c,typeof l!="symbol"?l+"":l,y),St=(c,l,y)=>l.has(c)||At("Cannot "+y);var E=(c,l,y)=>(St(c,l,"read from private field"),y?y.call(c):l.get(c)),P=(c,l,y)=>l.has(c)?At("Cannot add the same private member more than once"):l instanceof WeakSet?l.add(c):l.set(c,y),C=(c,l,y,O)=>(St(c,l,"write to private field"),O?O.call(c,y):l.set(c,y),y);/**
1
+ (function(c,l){typeof exports=="object"&&typeof module<"u"?l(exports):typeof define=="function"&&define.amd?define(["exports"],l):(c=typeof globalThis<"u"?globalThis:c||self,l(c["eox-drawtools"]={}))})(this,function(c){"use strict";var fe=Object.defineProperty;var At=c=>{throw TypeError(c)};var me=(c,l,y)=>l in c?fe(c,l,{enumerable:!0,configurable:!0,writable:!0,value:y}):c[l]=y;var S=(c,l,y)=>me(c,typeof l!="symbol"?l+"":l,y),St=(c,l,y)=>l.has(c)||At("Cannot "+y);var E=(c,l,y)=>(St(c,l,"read from private field"),y?y.call(c):l.get(c)),O=(c,l,y)=>l.has(c)?At("Cannot add the same private member more than once"):l instanceof WeakSet?l.add(c):l.set(c,y),C=(c,l,y,P)=>(St(c,l,"write to private field"),P?P.call(c,y):l.set(c,y),y);/**
2
2
  * @license
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
- */var _t,D,j,k,U,J;const l=globalThis,y=l.ShadowRoot&&(l.ShadyCSS===void 0||l.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,O=Symbol(),Y=new WeakMap;let Et=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==O)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(y&&t===void 0){const i=e!==void 0&&e.length===1;i&&(t=Y.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&Y.set(e,t))}return t}toString(){return this.cssText}};const Ct=r=>new Et(typeof r=="string"?r:r+"",void 0,O),Mt=(r,t)=>{if(y)r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const i=document.createElement("style"),s=l.litNonce;s!==void 0&&i.setAttribute("nonce",s),i.textContent=e.cssText,r.appendChild(i)}},tt=y?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return Ct(e)})(r):r;/**
5
+ */var _t,D,j,k,U,J;const l=globalThis,y=l.ShadowRoot&&(l.ShadyCSS===void 0||l.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,P=Symbol(),tt=new WeakMap;let Et=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==P)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(y&&t===void 0){const i=e!==void 0&&e.length===1;i&&(t=tt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&tt.set(e,t))}return t}toString(){return this.cssText}};const Ct=r=>new Et(typeof r=="string"?r:r+"",void 0,P),Mt=(r,t)=>{if(y)r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const i=document.createElement("style"),s=l.litNonce;s!==void 0&&i.setAttribute("nonce",s),i.textContent=e.cssText,r.appendChild(i)}},et=y?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return Ct(e)})(r):r;/**
6
6
  * @license
7
7
  * Copyright 2017 Google LLC
8
8
  * SPDX-License-Identifier: BSD-3-Clause
9
- */const{is:Ft,defineProperty:Ht,getOwnPropertyDescriptor:kt,getOwnPropertyNames:Ut,getOwnPropertySymbols:Pt,getPrototypeOf:Ot}=Object,m=globalThis,et=m.trustedTypes,Nt=et?et.emptyScript:"",W=m.reactiveElementPolyfillSupport,N=(r,t)=>r,Z={toAttribute(r,t){switch(t){case Boolean:r=r?Nt:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,t){let e=r;switch(t){case Boolean:e=r!==null;break;case Number:e=r===null?null:Number(r);break;case Object:case Array:try{e=JSON.parse(r)}catch{e=null}}return e}},it=(r,t)=>!Ft(r,t),rt={attribute:!0,type:String,converter:Z,reflect:!1,hasChanged:it};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),m.litPropertyMetadata??(m.litPropertyMetadata=new WeakMap);class M extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=rt){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),s=this.getPropertyDescriptor(t,i,e);s!==void 0&&Ht(this.prototype,t,s)}}static getPropertyDescriptor(t,e,i){const{get:s,set:n}=kt(this.prototype,t)??{get(){return this[e]},set(o){this[e]=o}};return{get(){return s==null?void 0:s.call(this)},set(o){const h=s==null?void 0:s.call(this);n.call(this,o),this.requestUpdate(t,h,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??rt}static _$Ei(){if(this.hasOwnProperty(N("elementProperties")))return;const t=Ot(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(N("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(N("properties"))){const e=this.properties,i=[...Ut(e),...Pt(e)];for(const s of i)this.createProperty(s,e[s])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[i,s]of e)this.elementProperties.set(i,s)}this._$Eh=new Map;for(const[e,i]of this.elementProperties){const s=this._$Eu(e,i);s!==void 0&&this._$Eh.set(s,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const s of i)e.unshift(tt(s))}else t!==void 0&&e.push(tt(t));return e}static _$Eu(t,e){const i=e.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((e=t.hostConnected)==null||e.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Mt(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(e=>{var i;return(i=e.hostConnected)==null?void 0:i.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var i;return(i=e.hostDisconnected)==null?void 0:i.call(e)})}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EC(t,e){var n;const i=this.constructor.elementProperties.get(t),s=this.constructor._$Eu(t,i);if(s!==void 0&&i.reflect===!0){const o=(((n=i.converter)==null?void 0:n.toAttribute)!==void 0?i.converter:Z).toAttribute(e,i.type);this._$Em=t,o==null?this.removeAttribute(s):this.setAttribute(s,o),this._$Em=null}}_$AK(t,e){var n;const i=this.constructor,s=i._$Eh.get(t);if(s!==void 0&&this._$Em!==s){const o=i.getPropertyOptions(s),h=typeof o.converter=="function"?{fromAttribute:o.converter}:((n=o.converter)==null?void 0:n.fromAttribute)!==void 0?o.converter:Z;this._$Em=s,this[s]=h.fromAttribute(e,o.type),this._$Em=null}}requestUpdate(t,e,i){if(t!==void 0){if(i??(i=this.constructor.getPropertyOptions(t)),!(i.hasChanged??it)(this[t],e))return;this.P(t,e,i)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,i){this._$AL.has(t)||this._$AL.set(t,e),i.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[n,o]of this._$Ep)this[n]=o;this._$Ep=void 0}const s=this.constructor.elementProperties;if(s.size>0)for(const[n,o]of s)o.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.P(n,this[n],o)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(i=this._$EO)==null||i.forEach(s=>{var n;return(n=s.hostUpdate)==null?void 0:n.call(s)}),this.update(e)):this._$EU()}catch(s){throw t=!1,this._$EU(),s}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(i=>{var s;return(s=i.hostUpdated)==null?void 0:s.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EC(e,this[e]))),this._$EU()}updated(t){}firstUpdated(t){}}M.elementStyles=[],M.shadowRootOptions={mode:"open"},M[N("elementProperties")]=new Map,M[N("finalized")]=new Map,W==null||W({ReactiveElement:M}),(m.reactiveElementVersions??(m.reactiveElementVersions=[])).push("2.0.4");/**
9
+ */const{is:Ft,defineProperty:Ht,getOwnPropertyDescriptor:kt,getOwnPropertyNames:Ut,getOwnPropertySymbols:Ot,getPrototypeOf:Pt}=Object,m=globalThis,it=m.trustedTypes,It=it?it.emptyScript:"",W=m.reactiveElementPolyfillSupport,I=(r,t)=>r,Z={toAttribute(r,t){switch(t){case Boolean:r=r?It:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,t){let e=r;switch(t){case Boolean:e=r!==null;break;case Number:e=r===null?null:Number(r);break;case Object:case Array:try{e=JSON.parse(r)}catch{e=null}}return e}},rt=(r,t)=>!Ft(r,t),st={attribute:!0,type:String,converter:Z,reflect:!1,hasChanged:rt};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),m.litPropertyMetadata??(m.litPropertyMetadata=new WeakMap);class M extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=st){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),s=this.getPropertyDescriptor(t,i,e);s!==void 0&&Ht(this.prototype,t,s)}}static getPropertyDescriptor(t,e,i){const{get:s,set:n}=kt(this.prototype,t)??{get(){return this[e]},set(o){this[e]=o}};return{get(){return s==null?void 0:s.call(this)},set(o){const h=s==null?void 0:s.call(this);n.call(this,o),this.requestUpdate(t,h,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??st}static _$Ei(){if(this.hasOwnProperty(I("elementProperties")))return;const t=Pt(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(I("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(I("properties"))){const e=this.properties,i=[...Ut(e),...Ot(e)];for(const s of i)this.createProperty(s,e[s])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[i,s]of e)this.elementProperties.set(i,s)}this._$Eh=new Map;for(const[e,i]of this.elementProperties){const s=this._$Eu(e,i);s!==void 0&&this._$Eh.set(s,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const s of i)e.unshift(et(s))}else t!==void 0&&e.push(et(t));return e}static _$Eu(t,e){const i=e.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((e=t.hostConnected)==null||e.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Mt(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(e=>{var i;return(i=e.hostConnected)==null?void 0:i.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var i;return(i=e.hostDisconnected)==null?void 0:i.call(e)})}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EC(t,e){var n;const i=this.constructor.elementProperties.get(t),s=this.constructor._$Eu(t,i);if(s!==void 0&&i.reflect===!0){const o=(((n=i.converter)==null?void 0:n.toAttribute)!==void 0?i.converter:Z).toAttribute(e,i.type);this._$Em=t,o==null?this.removeAttribute(s):this.setAttribute(s,o),this._$Em=null}}_$AK(t,e){var n;const i=this.constructor,s=i._$Eh.get(t);if(s!==void 0&&this._$Em!==s){const o=i.getPropertyOptions(s),h=typeof o.converter=="function"?{fromAttribute:o.converter}:((n=o.converter)==null?void 0:n.fromAttribute)!==void 0?o.converter:Z;this._$Em=s,this[s]=h.fromAttribute(e,o.type),this._$Em=null}}requestUpdate(t,e,i){if(t!==void 0){if(i??(i=this.constructor.getPropertyOptions(t)),!(i.hasChanged??rt)(this[t],e))return;this.P(t,e,i)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,i){this._$AL.has(t)||this._$AL.set(t,e),i.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[n,o]of this._$Ep)this[n]=o;this._$Ep=void 0}const s=this.constructor.elementProperties;if(s.size>0)for(const[n,o]of s)o.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.P(n,this[n],o)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(i=this._$EO)==null||i.forEach(s=>{var n;return(n=s.hostUpdate)==null?void 0:n.call(s)}),this.update(e)):this._$EU()}catch(s){throw t=!1,this._$EU(),s}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(i=>{var s;return(s=i.hostUpdated)==null?void 0:s.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EC(e,this[e]))),this._$EU()}updated(t){}firstUpdated(t){}}M.elementStyles=[],M.shadowRootOptions={mode:"open"},M[I("elementProperties")]=new Map,M[I("finalized")]=new Map,W==null||W({ReactiveElement:M}),(m.reactiveElementVersions??(m.reactiveElementVersions=[])).push("2.0.4");/**
10
10
  * @license
11
11
  * Copyright 2017 Google LLC
12
12
  * SPDX-License-Identifier: BSD-3-Clause
13
- */const I=globalThis,T=I.trustedTypes,st=T?T.createPolicy("lit-html",{createHTML:r=>r}):void 0,nt="$lit$",b=`lit$${Math.random().toFixed(9).slice(2)}$`,ot="?"+b,It=`<${ot}>`,v=document,B=()=>v.createComment(""),V=r=>r===null||typeof r!="object"&&typeof r!="function",at=Array.isArray,Bt=r=>at(r)||typeof(r==null?void 0:r[Symbol.iterator])=="function",K=`[
14
- \f\r]`,L=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,lt=/-->/g,ct=/>/g,w=RegExp(`>|${K}(?:([^\\s"'>=/]+)(${K}*=${K}*(?:[^
15
- \f\r"'\`<>=]|("|')|))|$)`,"g"),ht=/'/g,dt=/"/g,pt=/^(?:script|style|textarea|title)$/i,Vt=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),x=Vt(1),F=Symbol.for("lit-noChange"),p=Symbol.for("lit-nothing"),ut=new WeakMap,_=v.createTreeWalker(v,129);function yt(r,t){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return st!==void 0?st.createHTML(t):t}const Lt=(r,t)=>{const e=r.length-1,i=[];let s,n=t===2?"<svg>":"",o=L;for(let h=0;h<e;h++){const a=r[h];let u,g,d=-1,f=0;for(;f<a.length&&(o.lastIndex=f,g=o.exec(a),g!==null);)f=o.lastIndex,o===L?g[1]==="!--"?o=lt:g[1]!==void 0?o=ct:g[2]!==void 0?(pt.test(g[2])&&(s=RegExp("</"+g[2],"g")),o=w):g[3]!==void 0&&(o=w):o===w?g[0]===">"?(o=s??L,d=-1):g[1]===void 0?d=-2:(d=o.lastIndex-g[2].length,u=g[1],o=g[3]===void 0?w:g[3]==='"'?dt:ht):o===dt||o===ht?o=w:o===lt||o===ct?o=L:(o=w,s=void 0);const $=o===w&&r[h+1].startsWith("/>")?" ":"";n+=o===L?a+It:d>=0?(i.push(u),a.slice(0,d)+nt+a.slice(d)+b+$):a+b+(d===-2?h:$)}return[yt(r,n+(r[e]||"<?>")+(t===2?"</svg>":"")),i]};class R{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let n=0,o=0;const h=t.length-1,a=this.parts,[u,g]=Lt(t,e);if(this.el=R.createElement(u,i),_.currentNode=this.el.content,e===2){const d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(s=_.nextNode())!==null&&a.length<h;){if(s.nodeType===1){if(s.hasAttributes())for(const d of s.getAttributeNames())if(d.endsWith(nt)){const f=g[o++],$=s.getAttribute(d).split(b),G=/([.?@])?(.*)/.exec(f);a.push({type:1,index:n,name:G[2],strings:$,ctor:G[1]==="."?zt:G[1]==="?"?Dt:G[1]==="@"?jt:q}),s.removeAttribute(d)}else d.startsWith(b)&&(a.push({type:6,index:n}),s.removeAttribute(d));if(pt.test(s.tagName)){const d=s.textContent.split(b),f=d.length-1;if(f>0){s.textContent=T?T.emptyScript:"";for(let $=0;$<f;$++)s.append(d[$],B()),_.nextNode(),a.push({type:2,index:++n});s.append(d[f],B())}}}else if(s.nodeType===8)if(s.data===ot)a.push({type:2,index:n});else{let d=-1;for(;(d=s.data.indexOf(b,d+1))!==-1;)a.push({type:7,index:n}),d+=b.length-1}n++}}static createElement(t,e){const i=v.createElement("template");return i.innerHTML=t,i}}function H(r,t,e=r,i){var o,h;if(t===F)return t;let s=i!==void 0?(o=e._$Co)==null?void 0:o[i]:e._$Cl;const n=V(t)?void 0:t._$litDirective$;return(s==null?void 0:s.constructor)!==n&&((h=s==null?void 0:s._$AO)==null||h.call(s,!1),n===void 0?s=void 0:(s=new n(r),s._$AT(r,e,i)),i!==void 0?(e._$Co??(e._$Co=[]))[i]=s:e._$Cl=s),s!==void 0&&(t=H(r,s._$AS(r,t.values),s,i)),t}class Rt{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:i}=this._$AD,s=((t==null?void 0:t.creationScope)??v).importNode(e,!0);_.currentNode=s;let n=_.nextNode(),o=0,h=0,a=i[0];for(;a!==void 0;){if(o===a.index){let u;a.type===2?u=new z(n,n.nextSibling,this,t):a.type===1?u=new a.ctor(n,a.name,a.strings,this,t):a.type===6&&(u=new Jt(n,this,t)),this._$AV.push(u),a=i[++h]}o!==(a==null?void 0:a.index)&&(n=_.nextNode(),o++)}return _.currentNode=v,s}p(t){let e=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class z{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,e,i,s){this.type=2,this._$AH=p,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$Cv=(s==null?void 0:s.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=H(this,t,e),V(t)?t===p||t==null||t===""?(this._$AH!==p&&this._$AR(),this._$AH=p):t!==this._$AH&&t!==F&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Bt(t)?this.k(t):this._(t)}S(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.S(t))}_(t){this._$AH!==p&&V(this._$AH)?this._$AA.nextSibling.data=t:this.T(v.createTextNode(t)),this._$AH=t}$(t){var n;const{values:e,_$litType$:i}=t,s=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=R.createElement(yt(i.h,i.h[0]),this.options)),i);if(((n=this._$AH)==null?void 0:n._$AD)===s)this._$AH.p(e);else{const o=new Rt(s,this),h=o.u(this.options);o.p(e),this.T(h),this._$AH=o}}_$AC(t){let e=ut.get(t.strings);return e===void 0&&ut.set(t.strings,e=new R(t)),e}k(t){at(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,s=0;for(const n of t)s===e.length?e.push(i=new z(this.S(B()),this.S(B()),this,this.options)):i=e[s],i._$AI(n),s++;s<e.length&&(this._$AR(i&&i._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,e);t&&t!==this._$AB;){const s=t.nextSibling;t.remove(),t=s}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}}class q{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,s,n){this.type=1,this._$AH=p,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=n,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=p}_$AI(t,e=this,i,s){const n=this.strings;let o=!1;if(n===void 0)t=H(this,t,e,0),o=!V(t)||t!==this._$AH&&t!==F,o&&(this._$AH=t);else{const h=t;let a,u;for(t=n[0],a=0;a<n.length-1;a++)u=H(this,h[i+a],e,a),u===F&&(u=this._$AH[a]),o||(o=!V(u)||u!==this._$AH[a]),u===p?t=p:t!==p&&(t+=(u??"")+n[a+1]),this._$AH[a]=u}o&&!s&&this.j(t)}j(t){t===p?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class zt extends q{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===p?void 0:t}}class Dt extends q{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==p)}}class jt extends q{constructor(t,e,i,s,n){super(t,e,i,s,n),this.type=5}_$AI(t,e=this){if((t=H(this,t,e,0)??p)===F)return;const i=this._$AH,s=t===p&&i!==p||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,n=t!==p&&(i===p||s);s&&this.element.removeEventListener(this.name,this,i),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e;typeof this._$AH=="function"?this._$AH.call(((e=this.options)==null?void 0:e.host)??this.element,t):this._$AH.handleEvent(t)}}class Jt{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){H(this,t)}}const Q=I.litHtmlPolyfillSupport;Q==null||Q(R,z),(I.litHtmlVersions??(I.litHtmlVersions=[])).push("3.1.4");const Tt=(r,t,e)=>{const i=(e==null?void 0:e.renderBefore)??t;let s=i._$litPart$;if(s===void 0){const n=(e==null?void 0:e.renderBefore)??null;i._$litPart$=s=new z(t.insertBefore(B(),n),n,void 0,e??{})}return s._$AI(r),s};/**
13
+ */const N=globalThis,T=N.trustedTypes,nt=T?T.createPolicy("lit-html",{createHTML:r=>r}):void 0,ot="$lit$",b=`lit$${Math.random().toFixed(9).slice(2)}$`,at="?"+b,Nt=`<${at}>`,v=document,B=()=>v.createComment(""),V=r=>r===null||typeof r!="object"&&typeof r!="function",K=Array.isArray,Bt=r=>K(r)||typeof(r==null?void 0:r[Symbol.iterator])=="function",Q=`[
14
+ \f\r]`,L=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,lt=/-->/g,ct=/>/g,w=RegExp(`>|${Q}(?:([^\\s"'>=/]+)(${Q}*=${Q}*(?:[^
15
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),ht=/'/g,dt=/"/g,pt=/^(?:script|style|textarea|title)$/i,Vt=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),x=Vt(1),F=Symbol.for("lit-noChange"),p=Symbol.for("lit-nothing"),ut=new WeakMap,_=v.createTreeWalker(v,129);function yt(r,t){if(!K(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return nt!==void 0?nt.createHTML(t):t}const Lt=(r,t)=>{const e=r.length-1,i=[];let s,n=t===2?"<svg>":t===3?"<math>":"",o=L;for(let h=0;h<e;h++){const a=r[h];let u,g,d=-1,f=0;for(;f<a.length&&(o.lastIndex=f,g=o.exec(a),g!==null);)f=o.lastIndex,o===L?g[1]==="!--"?o=lt:g[1]!==void 0?o=ct:g[2]!==void 0?(pt.test(g[2])&&(s=RegExp("</"+g[2],"g")),o=w):g[3]!==void 0&&(o=w):o===w?g[0]===">"?(o=s??L,d=-1):g[1]===void 0?d=-2:(d=o.lastIndex-g[2].length,u=g[1],o=g[3]===void 0?w:g[3]==='"'?dt:ht):o===dt||o===ht?o=w:o===lt||o===ct?o=L:(o=w,s=void 0);const $=o===w&&r[h+1].startsWith("/>")?" ":"";n+=o===L?a+Nt:d>=0?(i.push(u),a.slice(0,d)+ot+a.slice(d)+b+$):a+b+(d===-2?h:$)}return[yt(r,n+(r[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),i]};class R{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let n=0,o=0;const h=t.length-1,a=this.parts,[u,g]=Lt(t,e);if(this.el=R.createElement(u,i),_.currentNode=this.el.content,e===2||e===3){const d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(s=_.nextNode())!==null&&a.length<h;){if(s.nodeType===1){if(s.hasAttributes())for(const d of s.getAttributeNames())if(d.endsWith(ot)){const f=g[o++],$=s.getAttribute(d).split(b),G=/([.?@])?(.*)/.exec(f);a.push({type:1,index:n,name:G[2],strings:$,ctor:G[1]==="."?zt:G[1]==="?"?Dt:G[1]==="@"?jt:q}),s.removeAttribute(d)}else d.startsWith(b)&&(a.push({type:6,index:n}),s.removeAttribute(d));if(pt.test(s.tagName)){const d=s.textContent.split(b),f=d.length-1;if(f>0){s.textContent=T?T.emptyScript:"";for(let $=0;$<f;$++)s.append(d[$],B()),_.nextNode(),a.push({type:2,index:++n});s.append(d[f],B())}}}else if(s.nodeType===8)if(s.data===at)a.push({type:2,index:n});else{let d=-1;for(;(d=s.data.indexOf(b,d+1))!==-1;)a.push({type:7,index:n}),d+=b.length-1}n++}}static createElement(t,e){const i=v.createElement("template");return i.innerHTML=t,i}}function H(r,t,e=r,i){var o,h;if(t===F)return t;let s=i!==void 0?(o=e._$Co)==null?void 0:o[i]:e._$Cl;const n=V(t)?void 0:t._$litDirective$;return(s==null?void 0:s.constructor)!==n&&((h=s==null?void 0:s._$AO)==null||h.call(s,!1),n===void 0?s=void 0:(s=new n(r),s._$AT(r,e,i)),i!==void 0?(e._$Co??(e._$Co=[]))[i]=s:e._$Cl=s),s!==void 0&&(t=H(r,s._$AS(r,t.values),s,i)),t}class Rt{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:i}=this._$AD,s=((t==null?void 0:t.creationScope)??v).importNode(e,!0);_.currentNode=s;let n=_.nextNode(),o=0,h=0,a=i[0];for(;a!==void 0;){if(o===a.index){let u;a.type===2?u=new z(n,n.nextSibling,this,t):a.type===1?u=new a.ctor(n,a.name,a.strings,this,t):a.type===6&&(u=new Jt(n,this,t)),this._$AV.push(u),a=i[++h]}o!==(a==null?void 0:a.index)&&(n=_.nextNode(),o++)}return _.currentNode=v,s}p(t){let e=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class z{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,e,i,s){this.type=2,this._$AH=p,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$Cv=(s==null?void 0:s.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=H(this,t,e),V(t)?t===p||t==null||t===""?(this._$AH!==p&&this._$AR(),this._$AH=p):t!==this._$AH&&t!==F&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Bt(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==p&&V(this._$AH)?this._$AA.nextSibling.data=t:this.T(v.createTextNode(t)),this._$AH=t}$(t){var n;const{values:e,_$litType$:i}=t,s=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=R.createElement(yt(i.h,i.h[0]),this.options)),i);if(((n=this._$AH)==null?void 0:n._$AD)===s)this._$AH.p(e);else{const o=new Rt(s,this),h=o.u(this.options);o.p(e),this.T(h),this._$AH=o}}_$AC(t){let e=ut.get(t.strings);return e===void 0&&ut.set(t.strings,e=new R(t)),e}k(t){K(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,s=0;for(const n of t)s===e.length?e.push(i=new z(this.O(B()),this.O(B()),this,this.options)):i=e[s],i._$AI(n),s++;s<e.length&&(this._$AR(i&&i._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,e);t&&t!==this._$AB;){const s=t.nextSibling;t.remove(),t=s}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}}class q{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,s,n){this.type=1,this._$AH=p,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=n,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=p}_$AI(t,e=this,i,s){const n=this.strings;let o=!1;if(n===void 0)t=H(this,t,e,0),o=!V(t)||t!==this._$AH&&t!==F,o&&(this._$AH=t);else{const h=t;let a,u;for(t=n[0],a=0;a<n.length-1;a++)u=H(this,h[i+a],e,a),u===F&&(u=this._$AH[a]),o||(o=!V(u)||u!==this._$AH[a]),u===p?t=p:t!==p&&(t+=(u??"")+n[a+1]),this._$AH[a]=u}o&&!s&&this.j(t)}j(t){t===p?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class zt extends q{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===p?void 0:t}}class Dt extends q{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==p)}}class jt extends q{constructor(t,e,i,s,n){super(t,e,i,s,n),this.type=5}_$AI(t,e=this){if((t=H(this,t,e,0)??p)===F)return;const i=this._$AH,s=t===p&&i!==p||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,n=t!==p&&(i===p||s);s&&this.element.removeEventListener(this.name,this,i),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e;typeof this._$AH=="function"?this._$AH.call(((e=this.options)==null?void 0:e.host)??this.element,t):this._$AH.handleEvent(t)}}class Jt{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){H(this,t)}}const X=N.litHtmlPolyfillSupport;X==null||X(R,z),(N.litHtmlVersions??(N.litHtmlVersions=[])).push("3.2.1");const Tt=(r,t,e)=>{const i=(e==null?void 0:e.renderBefore)??t;let s=i._$litPart$;if(s===void 0){const n=(e==null?void 0:e.renderBefore)??null;i._$litPart$=s=new z(t.insertBefore(B(),n),n,void 0,e??{})}return s._$AI(r),s};/**
16
16
  * @license
17
17
  * Copyright 2017 Google LLC
18
18
  * SPDX-License-Identifier: BSD-3-Clause
19
- */class A extends M{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e;const t=super.createRenderRoot();return(e=this.renderOptions).renderBefore??(e.renderBefore=t.firstChild),t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Tt(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return F}}A._$litElement$=!0,A.finalized=!0,(_t=globalThis.litElementHydrateSupport)==null||_t.call(globalThis,{LitElement:A});const X=globalThis.litElementPolyfillSupport;X==null||X({LitElement:A}),(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.0.6");/**
19
+ */class A extends M{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e;const t=super.createRenderRoot();return(e=this.renderOptions).renderBefore??(e.renderBefore=t.firstChild),t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Tt(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return F}}A._$litElement$=!0,A.finalized=!0,(_t=globalThis.litElementHydrateSupport)==null||_t.call(globalThis,{LitElement:A});const Y=globalThis.litElementPolyfillSupport;Y==null||Y({LitElement:A}),(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.1.1");/**
20
20
  * @license
21
21
  * Copyright 2017 Google LLC
22
22
  * SPDX-License-Identifier: BSD-3-Clause
@@ -59,7 +59,7 @@
59
59
  * @license
60
60
  * Copyright 2021 Google LLC
61
61
  * SPDX-License-Identifier: BSD-3-Clause
62
- */function bt(r,t,e){return r?t(r):e==null?void 0:e(r)}class $t extends A{constructor(){super();P(this,D,!0);P(this,j,!0);this.multipleFeatures=!1,this.drawnFeatures=[],this.importFeatures=!1,this.showEditor=!1,this.currentlyDrawing=!1,this.drawFunc=null,this.geoJSON="",this.unstyled=!1}updateButtonStates(){const{drawDisabled:e,discardDisabled:i}=ie(this);C(this,D,e),C(this,j,i)}createRenderRoot(){return this}render(){this.updateButtonStates();const e=this.currentlyDrawing?"drawing":"draw";return x`
62
+ */function bt(r,t,e){return r?t(r):e==null?void 0:e(r)}class $t extends A{constructor(){super();O(this,D,!0);O(this,j,!0);this.multipleFeatures=!1,this.drawnFeatures=[],this.importFeatures=!1,this.showEditor=!1,this.currentlyDrawing=!1,this.drawFunc=null,this.geoJSON="",this.unstyled=!1}updateButtonStates(){const{drawDisabled:e,discardDisabled:i}=ie(this);C(this,D,e),C(this,j,i)}createRenderRoot(){return this}render(){this.updateButtonStates();const e=this.currentlyDrawing?"drawing":"draw";return x`
63
63
  <style>
64
64
  ${!this.unstyled&&re}
65
65
  ${!this.unstyled&&se}
@@ -171,7 +171,7 @@
171
171
  color: white;
172
172
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ctitle%3Econtent-copy%3C/title%3E%3Cpath d='M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z' fill='white' /%3E%3C/svg%3E")
173
173
  }
174
- `,ae=r=>{(()=>{r.emitDrawnFeatures(),r.multipleFeatures||(r.draw.setActive(!1),r.currentlyDrawing=!1)})(),r.requestUpdate()},le=r=>{const t=()=>{r.drawLayer.set("isDrawingEnabled",!0),r.draw.setActive(!0)},e=()=>{r.currentlyDrawing=!0,r.requestUpdate()};t(),e()},ce=r=>{let t;return typeof r=="string"?t=document.querySelector(r):t=r,t},vt=(r,t)=>{var n;const i=ce(r.for),s=i.map;return r.drawLayer=i.addOrUpdateLayer({type:"Vector",properties:{id:"drawLayer",layerControlHide:!0,isDrawingEnabled:!1,multipleFeatures:t},source:{type:"Vector"},interactions:[{type:"draw",options:{active:!1,id:"drawInteraction",type:r.type,modify:r.allowModify,stopClick:!0}},{type:"select",options:{id:"selectHover",condition:"pointermove",style:{"fill-color":"rgba(51, 153, 204,0.5)","stroke-color":"#3399CC","stroke-width":2.5}}},{type:"select",options:{id:"selectClick",condition:"click",panIn:!0,style:{"fill-color":"rgba(51, 153, 204,0.5)","stroke-color":"#3399CC","stroke-width":2.5}}}]}),r.draw=i.interactions.drawInteraction,r.modify=i.interactions.drawInteractionmodify,(n=r.modify)==null||n.on("modifyend",()=>r.onModifyEnd()),i.addEventListener("addfeatures",()=>ae(r)),{EoxMap:i,OlMap:s}},he=r=>{const t=()=>{r.drawnFeatures=[],r.draw.setActive(!1),r.drawLayer.getSource().clear(),r.geoJSON=null},e=()=>{r.emitDrawnFeatures(),r.currentlyDrawing=!1,r.requestUpdate()};t(),e()},de=(r,t)=>{setTimeout(()=>{r.drawnFeatures=r.drawLayer.getSource().getFeatures(),r.updateGeoJSON(),r.requestUpdate(),t()},0)},pe=':root,:host { --spacing: 1rem; --block-spacing-vertical: calc(var(--spacing) * 2); --block-spacing-horizontal: var(--spacing); --background-color: var(--eox-background-color, white); --color: var(--eox-color, #2c3d49); --h-color: var(--eox-h-color, var(--color)); --hover-transparency: var(--eox-hover-transparency, 20%); --bg-hover-transparency: var(--eox-bg-hover-transparency, 40%); --btn-hover-transparency: var(--eox-btn-hover-transparency, 80%); --primary-color: var(--eox-primary-color, #004170); --primary-color-hover: color-mix( in srgb, var(--primary-color) var(--hover-transparency), transparent ); --primary-bg-color-hover: color-mix( in srgb, var(--primary-color) var(--bg-hover-transparency), transparent ); --primary-btn-color-hover: color-mix( in srgb, var(--primary-color) var(--btn-hover-transparency), transparent ); --secondary-color: var(--eox-secondary-color, #c6d4df); --secondary-color-hover: color-mix( in srgb, var(--secondary-color) var(--hover-transparency), transparent ); --secondary-bg-color-hover: color-mix( in srgb, var(--secondary-color) var(--bg-hover-transparency), transparent ); --secondary-btn-color-hover: color-mix( in srgb, var(--secondary-color) var(--btn-hover-transparency), transparent ); --success: var(--eox-success, #26cc0f); --warning: var(--eox-warning, #f18e32); --error: var(--eox-error, #ff5252); --header-font-family: var(--eox-header-font-family, "Roboto", sans-serif); --body-font-family: var(--eox-body-font-family, "Roboto", sans-serif);}* { font-size: normal; font-family: var(--body-font-family); color: var(--eox-color);}h1,h2,h3,h4,h5,h6 { font-family: var(--header-font-family);}span,p,div,main,label { font-family: var(--body-font-family);}@media (min-width: 576px) { .container { max-width: 510px; padding-right: 0; padding-left: 0; --block-spacing-vertical: calc(var(--spacing) * 2.5); }}@media (min-width: 768px) { .container { max-width: 700px; --block-spacing-vertical: calc(var(--spacing) * 3); }}@media (min-width: 992px) { .container { max-width: 920px; --block-spacing-vertical: calc(var(--spacing) * 3.5); }}@media (min-width: 1200px) { .container { max-width: 1130px; --block-spacing-vertical: calc(var(--spacing) * 4); }}.container { width: 100%; margin-right: auto; margin-left: auto; display: block; padding: var(--block-spacing-vertical) var(--block-spacing-horizontal);}h1,h2,h3 { line-height: 120%; margin-top: 0.8rem; margin-bottom: 0.8rem;}p { --font-size: 1rem; font-weight: 400; line-height: 170%; margin-top: 0.8rem; margin-bottom: 1.6rem; font-size: var(--font-size);}body { padding: 0; margin: 0;}.sb-show-main.sb-main-padded { padding: 0;}h1,h2,h3,h4,h5,h6 { --font-weight: 700;}h1 { --font-size: 3rem; --typography-spacing-vertical: 0.5rem;}h2 { --font-size: 2rem; --typography-spacing-vertical: 0.5rem;}h3 { --font-size: 1.75rem; --typography-spacing-vertical: 0.5rem;}h4 { --font-size: 1.5rem; --typography-spacing-vertical: 0.5rem;}h5 { --font-size: 1.25rem; --typography-spacing-vertical: 0.5rem;}h1,h2,h3,h4,h5,h6 { margin-top: 0; margin-bottom: var(--typography-spacing-vertical); color: var(--h-color); font-weight: var(--font-weight); font-size: var(--font-size); font-family: var(--header-font-family);}';function ue(r,t){function e(n){n.preventDefault(),n.stopPropagation()}function i(n){n.srcElement.style.opacity="0.4"}function s(n){n.srcElement.style.opacity="1"}["dragenter","dragover","dragleave","drop"].forEach(n=>{t.addEventListener(n,e,!1),["dragenter","dragover"].includes(n)?t.addEventListener(n,i,!1):t.addEventListener(n,s,!1)}),t.addEventListener("drop",n=>wt(n,r),!1)}function ye(r){r.preventDefault(),r.stopPropagation()}function wt(r,t){ye(r);const e=r.dataTransfer?r.dataTransfer.files:r.target.files;Array.from(e).forEach(i=>ge(i,t))}function ge(r,t){const e=new FileReader;e.readAsText(r),e.onloadend=function(){typeof e.result=="string"&&t.handleFeatureChange(e.result)}}class xt extends A{constructor(){super();P(this,k);P(this,U);P(this,J);this.allowModify=!1,this.for="eox-map",this.currentlyDrawing=!1,this.draw=null,this.drawLayer=null,this.drawnFeatures=[],this.modify=null,this.multipleFeatures=!1,this.importFeatures=!1,this.showEditor=!1,this.showList=!1,this.type="Polygon",this.unstyled=!1,this.noShadow=!1}static get properties(){return{allowModify:{attribute:"allow-modify",type:Boolean},for:{type:String},currentlyDrawing:{attribute:!1,state:!0,type:Boolean},draw:{attribute:!1,state:!0},drawLayer:{attribute:!1,state:!0},drawnFeatures:{attribute:!1,state:!0,type:Array},modify:{attribute:!1,state:!0},multipleFeatures:{attribute:"multiple-features",type:Boolean},importFeatures:{attribute:"import-features",type:Boolean},showEditor:{attribute:"show-editor",type:Boolean},showList:{attribute:"show-list",type:Boolean},noShadow:{type:Boolean},type:{type:String},unstyled:{type:Boolean}}}handleStartDrawing(){le(this)}handleDiscardDrawing(){he(this)}handleFeatureChange(e,i=!1){this.eoxMap.parseTextToFeature(e||JSON.stringify(ft),this.drawLayer,i)}handleFilesChange(e){wt(e,this)}onModifyEnd(){this.emitDrawnFeatures()}updateGeoJSON(){C(this,J,JSON.stringify(this.eoxMap.parseFeature(this.drawnFeatures)||ft,void 0,2))}emitDrawnFeatures(){de(this,()=>{this.dispatchEvent(new CustomEvent("drawupdate",{detail:this.drawnFeatures}))})}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}firstUpdated(){const{EoxMap:e,OlMap:i}=vt(this,this.multipleFeatures);this.eoxMap=e,C(this,U,i),this.importFeatures&&ue(this,this.eoxMap),this.updateGeoJSON(),this.requestUpdate()}updated(e){if(e.has("for")){const{EoxMap:i,OlMap:s}=vt(this,this.multipleFeatures);this.eoxMap=i,C(this,U,s)}}get eoxMap(){return E(this,k)}set eoxMap(e){const i=E(this,k);C(this,k,e),this.requestUpdate("eoxMap",i)}render(){var e;return x`
174
+ `,ae=r=>{(()=>{r.emitDrawnFeatures(),r.multipleFeatures||(r.draw.setActive(!1),r.currentlyDrawing=!1)})(),r.requestUpdate()},le=r=>{const t=()=>{r.drawLayer.set("isDrawingEnabled",!0),r.draw.setActive(!0)},e=()=>{r.currentlyDrawing=!0,r.requestUpdate()};t(),e()},ce=r=>{let t;return typeof r=="string"?t=document.querySelector(r):t=r,t},vt=(r,t)=>{var n;const i=ce(r.for),s=i.map;return r.drawLayer=i.addOrUpdateLayer({type:"Vector",properties:{id:"drawLayer",layerControlHide:!0,isDrawingEnabled:!1,multipleFeatures:t},source:{type:"Vector"},interactions:[{type:"draw",options:{active:!1,id:"drawInteraction",type:r.type,modify:r.allowModify,stopClick:!0}},{type:"select",options:{id:"selectHover",condition:"pointermove",style:{"fill-color":"rgba(51, 153, 204,0.5)","stroke-color":"#3399CC","stroke-width":2.5}}},{type:"select",options:{id:"selectClick",condition:"click",panIn:!0,style:{"fill-color":"rgba(51, 153, 204,0.5)","stroke-color":"#3399CC","stroke-width":2.5}}}]}),r.draw=i.interactions.drawInteraction,r.modify=i.interactions.drawInteractionmodify,(n=r.modify)==null||n.on("modifyend",()=>r.onModifyEnd()),i.addEventListener("addfeatures",()=>ae(r)),{EoxMap:i,OlMap:s}},he=r=>{const t=()=>{r.drawnFeatures=[],r.draw.setActive(!1),r.drawLayer.getSource().clear(),r.geoJSON=null},e=()=>{r.emitDrawnFeatures(),r.currentlyDrawing=!1,r.requestUpdate()};t(),e()},de=(r,t)=>{setTimeout(()=>{r.drawnFeatures=r.drawLayer.getSource().getFeatures(),r.updateGeoJSON(),r.requestUpdate(),t()},0)},pe=':root,:host { --spacing: 1rem; --block-spacing-vertical: calc(var(--spacing) * 2); --block-spacing-horizontal: var(--spacing); --background-color: var(--eox-background-color, white); --color: var(--eox-color, #2c3d49); --h-color: var(--eox-h-color, var(--color)); --hover-transparency: var(--eox-hover-transparency, 20%); --bg-hover-transparency: var(--eox-bg-hover-transparency, 40%); --btn-hover-transparency: var(--eox-btn-hover-transparency, 80%); --primary-color: var(--eox-primary-color, #004170); --primary-color-hover: color-mix( in srgb, var(--primary-color) var(--hover-transparency), transparent ); --primary-bg-color-hover: color-mix( in srgb, var(--primary-color) var(--bg-hover-transparency), transparent ); --primary-btn-color-hover: color-mix( in srgb, var(--primary-color) var(--btn-hover-transparency), transparent ); --secondary-color: var(--eox-secondary-color, #c6d4df); --secondary-color-hover: color-mix( in srgb, var(--secondary-color) var(--hover-transparency), transparent ); --secondary-bg-color-hover: color-mix( in srgb, var(--secondary-color) var(--bg-hover-transparency), transparent ); --secondary-btn-color-hover: color-mix( in srgb, var(--secondary-color) var(--btn-hover-transparency), transparent ); --success: var(--eox-success, #26cc0f); --warning: var(--eox-warning, #f18e32); --error: var(--eox-error, #ff5252); --header-font-family: var(--eox-header-font-family, "Roboto", sans-serif); --body-font-family: var(--eox-body-font-family, "Roboto", sans-serif);}* { font-size: normal; font-family: var(--body-font-family); color: var(--eox-color);}h1,h2,h3,h4,h5,h6 { font-family: var(--header-font-family);}span,p,div,main,label { font-family: var(--body-font-family);}@media (min-width: 576px) { .container { max-width: 510px; padding-right: 0; padding-left: 0; --block-spacing-vertical: calc(var(--spacing) * 2.5); }}@media (min-width: 768px) { .container { max-width: 700px; --block-spacing-vertical: calc(var(--spacing) * 3); }}@media (min-width: 992px) { .container { max-width: 920px; --block-spacing-vertical: calc(var(--spacing) * 3.5); }}@media (min-width: 1200px) { .container { max-width: 1130px; --block-spacing-vertical: calc(var(--spacing) * 4); }}.container { width: 100%; margin-right: auto; margin-left: auto; display: block; padding: var(--block-spacing-vertical) var(--block-spacing-horizontal);}h1,h2,h3 { line-height: 120%; margin-top: 0.8rem; margin-bottom: 0.8rem;}p { --font-size: 1rem; font-weight: 400; line-height: 170%; margin-top: 0.8rem; margin-bottom: 1.6rem; font-size: var(--font-size);}body { padding: 0; margin: 0;}.sb-show-main.sb-main-padded { padding: 0;}h1,h2,h3,h4,h5,h6 { --font-weight: 700;}h1 { --font-size: 3rem; --typography-spacing-vertical: 0.5rem;}h2 { --font-size: 2rem; --typography-spacing-vertical: 0.5rem;}h3 { --font-size: 1.75rem; --typography-spacing-vertical: 0.5rem;}h4 { --font-size: 1.5rem; --typography-spacing-vertical: 0.5rem;}h5 { --font-size: 1.25rem; --typography-spacing-vertical: 0.5rem;}h1,h2,h3,h4,h5,h6 { margin-top: 0; margin-bottom: var(--typography-spacing-vertical); color: var(--h-color); font-weight: var(--font-weight); font-size: var(--font-size); font-family: var(--header-font-family);}';function ue(r,t){function e(n){n.preventDefault(),n.stopPropagation()}function i(n){n.srcElement.style.opacity="0.4"}function s(n){n.srcElement.style.opacity="1"}["dragenter","dragover","dragleave","drop"].forEach(n=>{t.addEventListener(n,e,!1),["dragenter","dragover"].includes(n)?t.addEventListener(n,i,!1):t.addEventListener(n,s,!1)}),t.addEventListener("drop",n=>wt(n,r),!1)}function ye(r){r.preventDefault(),r.stopPropagation()}function wt(r,t){ye(r);const e=r.dataTransfer?r.dataTransfer.files:r.target.files;Array.from(e).forEach(i=>ge(i,t))}function ge(r,t){const e=new FileReader;e.readAsText(r),e.onloadend=function(){typeof e.result=="string"&&t.handleFeatureChange(e.result)}}class xt extends A{constructor(){super();O(this,k);O(this,U);O(this,J);this.allowModify=!1,this.for="eox-map",this.currentlyDrawing=!1,this.draw=null,this.drawLayer=null,this.drawnFeatures=[],this.modify=null,this.multipleFeatures=!1,this.importFeatures=!1,this.showEditor=!1,this.showList=!1,this.type="Polygon",this.unstyled=!1,this.noShadow=!1}static get properties(){return{allowModify:{attribute:"allow-modify",type:Boolean},for:{type:String},currentlyDrawing:{attribute:!1,state:!0,type:Boolean},draw:{attribute:!1,state:!0},drawLayer:{attribute:!1,state:!0},drawnFeatures:{attribute:!1,state:!0,type:Array},modify:{attribute:!1,state:!0},multipleFeatures:{attribute:"multiple-features",type:Boolean},importFeatures:{attribute:"import-features",type:Boolean},showEditor:{attribute:"show-editor",type:Boolean},showList:{attribute:"show-list",type:Boolean},noShadow:{type:Boolean},type:{type:String},unstyled:{type:Boolean}}}handleStartDrawing(){le(this)}handleDiscardDrawing(){he(this)}handleFeatureChange(e,i=!1){this.eoxMap.parseTextToFeature(e||JSON.stringify(ft),this.drawLayer,i)}handleFilesChange(e){wt(e,this)}onModifyEnd(){this.emitDrawnFeatures()}updateGeoJSON(){C(this,J,JSON.stringify(this.eoxMap.parseFeature(this.drawnFeatures)||ft,void 0,2))}emitDrawnFeatures(){de(this,()=>{this.dispatchEvent(new CustomEvent("drawupdate",{detail:this.drawnFeatures}))})}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}firstUpdated(){const{EoxMap:e,OlMap:i}=vt(this,this.multipleFeatures);this.eoxMap=e,C(this,U,i),this.importFeatures&&ue(this,this.eoxMap),this.updateGeoJSON(),this.requestUpdate()}updated(e){if(e.has("for")){const{EoxMap:i,OlMap:s}=vt(this,this.multipleFeatures);this.eoxMap=i,C(this,U,s)}}get eoxMap(){return E(this,k)}set eoxMap(e){const i=E(this,k);C(this,k,e),this.requestUpdate("eoxMap",i)}render(){var e;return x`
175
175
  <style>
176
176
  :host { display: block; }
177
177
  ${!this.unstyled&&pe}