@eox/drawtools 0.8.0 → 0.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,14 +1,14 @@
1
1
  var _t = Object.defineProperty;
2
- var xt = (r, t, e) => t in r ? _t(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e;
3
- var b = (r, t, e) => (xt(r, typeof t != "symbol" ? t + "" : t, e), e), Q = (r, t, e) => {
4
- if (!t.has(r))
2
+ var xt = (i, t, e) => t in i ? _t(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
3
+ var $ = (i, t, e) => (xt(i, typeof t != "symbol" ? t + "" : t, e), e), Q = (i, t, e) => {
4
+ if (!t.has(i))
5
5
  throw TypeError("Cannot " + e);
6
6
  };
7
- var g = (r, t, e) => (Q(r, t, "read from private field"), e ? e.call(r) : t.get(r)), S = (r, t, e) => {
8
- if (t.has(r))
7
+ var y = (i, t, e) => (Q(i, t, "read from private field"), e ? e.call(i) : t.get(i)), S = (i, t, e) => {
8
+ if (t.has(i))
9
9
  throw TypeError("Cannot add the same private member more than once");
10
- t instanceof WeakSet ? t.add(r) : t.set(r, e);
11
- }, E = (r, t, e, i) => (Q(r, t, "write to private field"), i ? i.call(r, e) : t.set(r, e), e);
10
+ t instanceof WeakSet ? t.add(i) : t.set(i, e);
11
+ }, E = (i, t, e, r) => (Q(i, t, "write to private field"), r ? r.call(i, e) : t.set(i, e), e);
12
12
  /**
13
13
  * @license
14
14
  * Copyright 2019 Google LLC
@@ -16,8 +16,8 @@ var g = (r, t, e) => (Q(r, t, "read from private field"), e ? e.call(r) : t.get(
16
16
  */
17
17
  const D = globalThis, K = D.ShadowRoot && (D.ShadyCSS === void 0 || D.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, pt = Symbol(), X = /* @__PURE__ */ new WeakMap();
18
18
  let At = class {
19
- constructor(t, e, i) {
20
- if (this._$cssResult$ = !0, i !== pt)
19
+ constructor(t, e, r) {
20
+ if (this._$cssResult$ = !0, r !== pt)
21
21
  throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
22
22
  this.cssText = t, this.t = e;
23
23
  }
@@ -25,8 +25,8 @@ let At = class {
25
25
  let t = this.o;
26
26
  const e = this.t;
27
27
  if (K && t === void 0) {
28
- const i = e !== void 0 && e.length === 1;
29
- i && (t = X.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), i && X.set(e, t));
28
+ const r = e !== void 0 && e.length === 1;
29
+ r && (t = X.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), r && X.set(e, t));
30
30
  }
31
31
  return t;
32
32
  }
@@ -34,55 +34,55 @@ let At = class {
34
34
  return this.cssText;
35
35
  }
36
36
  };
37
- const St = (r) => new At(typeof r == "string" ? r : r + "", void 0, pt), Et = (r, t) => {
37
+ const St = (i) => new At(typeof i == "string" ? i : i + "", void 0, pt), Et = (i, t) => {
38
38
  if (K)
39
- r.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
39
+ i.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
40
40
  else
41
41
  for (const e of t) {
42
- const i = document.createElement("style"), s = D.litNonce;
43
- s !== void 0 && i.setAttribute("nonce", s), i.textContent = e.cssText, r.appendChild(i);
42
+ const r = document.createElement("style"), s = D.litNonce;
43
+ s !== void 0 && r.setAttribute("nonce", s), r.textContent = e.cssText, i.appendChild(r);
44
44
  }
45
- }, Y = K ? (r) => r : (r) => r instanceof CSSStyleSheet ? ((t) => {
45
+ }, Y = K ? (i) => i : (i) => i instanceof CSSStyleSheet ? ((t) => {
46
46
  let e = "";
47
- for (const i of t.cssRules)
48
- e += i.cssText;
47
+ for (const r of t.cssRules)
48
+ e += r.cssText;
49
49
  return St(e);
50
- })(r) : r;
50
+ })(i) : i;
51
51
  /**
52
52
  * @license
53
53
  * Copyright 2017 Google LLC
54
54
  * SPDX-License-Identifier: BSD-3-Clause
55
55
  */
56
- const { is: Ct, defineProperty: Ft, getOwnPropertyDescriptor: Ht, getOwnPropertyNames: kt, getOwnPropertySymbols: Mt, getPrototypeOf: Ut } = Object, $ = globalThis, tt = $.trustedTypes, Pt = tt ? tt.emptyScript : "", q = $.reactiveElementPolyfillSupport, M = (r, t) => r, Z = { toAttribute(r, t) {
56
+ const { is: Ct, defineProperty: Ft, getOwnPropertyDescriptor: Ht, getOwnPropertyNames: kt, getOwnPropertySymbols: Mt, getPrototypeOf: Ut } = Object, b = globalThis, tt = b.trustedTypes, Pt = tt ? tt.emptyScript : "", q = b.reactiveElementPolyfillSupport, M = (i, t) => i, Z = { toAttribute(i, t) {
57
57
  switch (t) {
58
58
  case Boolean:
59
- r = r ? Pt : null;
59
+ i = i ? Pt : null;
60
60
  break;
61
61
  case Object:
62
62
  case Array:
63
- r = r == null ? r : JSON.stringify(r);
63
+ i = i == null ? i : JSON.stringify(i);
64
64
  }
65
- return r;
66
- }, fromAttribute(r, t) {
67
- let e = r;
65
+ return i;
66
+ }, fromAttribute(i, t) {
67
+ let e = i;
68
68
  switch (t) {
69
69
  case Boolean:
70
- e = r !== null;
70
+ e = i !== null;
71
71
  break;
72
72
  case Number:
73
- e = r === null ? null : Number(r);
73
+ e = i === null ? null : Number(i);
74
74
  break;
75
75
  case Object:
76
76
  case Array:
77
77
  try {
78
- e = JSON.parse(r);
78
+ e = JSON.parse(i);
79
79
  } catch {
80
80
  e = null;
81
81
  }
82
82
  }
83
83
  return e;
84
- } }, ut = (r, t) => !Ct(r, t), et = { attribute: !0, type: String, converter: Z, reflect: !1, hasChanged: ut };
85
- Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), $.litPropertyMetadata ?? ($.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
84
+ } }, ut = (i, t) => !Ct(i, t), et = { attribute: !0, type: String, converter: Z, reflect: !1, hasChanged: ut };
85
+ Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), b.litPropertyMetadata ?? (b.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
86
86
  class C extends HTMLElement {
87
87
  static addInitializer(t) {
88
88
  this._$Ei(), (this.l ?? (this.l = [])).push(t);
@@ -92,11 +92,11 @@ class C extends HTMLElement {
92
92
  }
93
93
  static createProperty(t, e = et) {
94
94
  if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
95
- const i = Symbol(), s = this.getPropertyDescriptor(t, i, e);
95
+ const r = Symbol(), s = this.getPropertyDescriptor(t, r, e);
96
96
  s !== void 0 && Ft(this.prototype, t, s);
97
97
  }
98
98
  }
99
- static getPropertyDescriptor(t, e, i) {
99
+ static getPropertyDescriptor(t, e, r) {
100
100
  const { get: s, set: n } = Ht(this.prototype, t) ?? { get() {
101
101
  return this[e];
102
102
  }, set(o) {
@@ -106,7 +106,7 @@ class C extends HTMLElement {
106
106
  return s == null ? void 0 : s.call(this);
107
107
  }, set(o) {
108
108
  const l = s == null ? void 0 : s.call(this);
109
- n.call(this, o), this.requestUpdate(t, l, i);
109
+ n.call(this, o), this.requestUpdate(t, l, r);
110
110
  }, configurable: !0, enumerable: !0 };
111
111
  }
112
112
  static getPropertyOptions(t) {
@@ -122,20 +122,20 @@ class C extends HTMLElement {
122
122
  if (this.hasOwnProperty(M("finalized")))
123
123
  return;
124
124
  if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(M("properties"))) {
125
- const e = this.properties, i = [...kt(e), ...Mt(e)];
126
- for (const s of i)
125
+ const e = this.properties, r = [...kt(e), ...Mt(e)];
126
+ for (const s of r)
127
127
  this.createProperty(s, e[s]);
128
128
  }
129
129
  const t = this[Symbol.metadata];
130
130
  if (t !== null) {
131
131
  const e = litPropertyMetadata.get(t);
132
132
  if (e !== void 0)
133
- for (const [i, s] of e)
134
- this.elementProperties.set(i, s);
133
+ for (const [r, s] of e)
134
+ this.elementProperties.set(r, s);
135
135
  }
136
136
  this._$Eh = /* @__PURE__ */ new Map();
137
- for (const [e, i] of this.elementProperties) {
138
- const s = this._$Eu(e, i);
137
+ for (const [e, r] of this.elementProperties) {
138
+ const s = this._$Eu(e, r);
139
139
  s !== void 0 && this._$Eh.set(s, e);
140
140
  }
141
141
  this.elementStyles = this.finalizeStyles(this.styles);
@@ -143,16 +143,16 @@ class C extends HTMLElement {
143
143
  static finalizeStyles(t) {
144
144
  const e = [];
145
145
  if (Array.isArray(t)) {
146
- const i = new Set(t.flat(1 / 0).reverse());
147
- for (const s of i)
146
+ const r = new Set(t.flat(1 / 0).reverse());
147
+ for (const s of r)
148
148
  e.unshift(Y(s));
149
149
  } else
150
150
  t !== void 0 && e.push(Y(t));
151
151
  return e;
152
152
  }
153
153
  static _$Eu(t, e) {
154
- const i = e.attribute;
155
- return i === !1 ? void 0 : typeof i == "string" ? i : typeof t == "string" ? t.toLowerCase() : void 0;
154
+ const r = e.attribute;
155
+ return r === !1 ? void 0 : typeof r == "string" ? r : typeof t == "string" ? t.toLowerCase() : void 0;
156
156
  }
157
157
  constructor() {
158
158
  super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
@@ -171,8 +171,8 @@ class C extends HTMLElement {
171
171
  }
172
172
  _$E_() {
173
173
  const t = /* @__PURE__ */ new Map(), e = this.constructor.elementProperties;
174
- for (const i of e.keys())
175
- this.hasOwnProperty(i) && (t.set(i, this[i]), delete this[i]);
174
+ for (const r of e.keys())
175
+ this.hasOwnProperty(r) && (t.set(r, this[r]), delete this[r]);
176
176
  t.size > 0 && (this._$Ep = t);
177
177
  }
178
178
  createRenderRoot() {
@@ -182,8 +182,8 @@ class C extends HTMLElement {
182
182
  connectedCallback() {
183
183
  var t;
184
184
  this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$EO) == null || t.forEach((e) => {
185
- var i;
186
- return (i = e.hostConnected) == null ? void 0 : i.call(e);
185
+ var r;
186
+ return (r = e.hostConnected) == null ? void 0 : r.call(e);
187
187
  });
188
188
  }
189
189
  enableUpdating(t) {
@@ -191,39 +191,39 @@ class C extends HTMLElement {
191
191
  disconnectedCallback() {
192
192
  var t;
193
193
  (t = this._$EO) == null || t.forEach((e) => {
194
- var i;
195
- return (i = e.hostDisconnected) == null ? void 0 : i.call(e);
194
+ var r;
195
+ return (r = e.hostDisconnected) == null ? void 0 : r.call(e);
196
196
  });
197
197
  }
198
- attributeChangedCallback(t, e, i) {
199
- this._$AK(t, i);
198
+ attributeChangedCallback(t, e, r) {
199
+ this._$AK(t, r);
200
200
  }
201
201
  _$EC(t, e) {
202
202
  var n;
203
- const i = this.constructor.elementProperties.get(t), s = this.constructor._$Eu(t, i);
204
- if (s !== void 0 && i.reflect === !0) {
205
- const o = (((n = i.converter) == null ? void 0 : n.toAttribute) !== void 0 ? i.converter : Z).toAttribute(e, i.type);
203
+ const r = this.constructor.elementProperties.get(t), s = this.constructor._$Eu(t, r);
204
+ if (s !== void 0 && r.reflect === !0) {
205
+ const o = (((n = r.converter) == null ? void 0 : n.toAttribute) !== void 0 ? r.converter : Z).toAttribute(e, r.type);
206
206
  this._$Em = t, o == null ? this.removeAttribute(s) : this.setAttribute(s, o), this._$Em = null;
207
207
  }
208
208
  }
209
209
  _$AK(t, e) {
210
210
  var n;
211
- const i = this.constructor, s = i._$Eh.get(t);
211
+ const r = this.constructor, s = r._$Eh.get(t);
212
212
  if (s !== void 0 && this._$Em !== s) {
213
- const o = i.getPropertyOptions(s), l = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((n = o.converter) == null ? void 0 : n.fromAttribute) !== void 0 ? o.converter : Z;
213
+ const o = r.getPropertyOptions(s), l = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((n = o.converter) == null ? void 0 : n.fromAttribute) !== void 0 ? o.converter : Z;
214
214
  this._$Em = s, this[s] = l.fromAttribute(e, o.type), this._$Em = null;
215
215
  }
216
216
  }
217
- requestUpdate(t, e, i) {
217
+ requestUpdate(t, e, r) {
218
218
  if (t !== void 0) {
219
- if (i ?? (i = this.constructor.getPropertyOptions(t)), !(i.hasChanged ?? ut)(this[t], e))
219
+ if (r ?? (r = this.constructor.getPropertyOptions(t)), !(r.hasChanged ?? ut)(this[t], e))
220
220
  return;
221
- this.P(t, e, i);
221
+ this.P(t, e, r);
222
222
  }
223
223
  this.isUpdatePending === !1 && (this._$ES = this._$ET());
224
224
  }
225
- P(t, e, i) {
226
- this._$AL.has(t) || this._$AL.set(t, e), i.reflect === !0 && this._$Em !== t && (this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Set())).add(t);
225
+ P(t, e, r) {
226
+ this._$AL.has(t) || this._$AL.set(t, e), r.reflect === !0 && this._$Em !== t && (this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Set())).add(t);
227
227
  }
228
228
  async _$ET() {
229
229
  this.isUpdatePending = !0;
@@ -239,7 +239,7 @@ class C extends HTMLElement {
239
239
  return this.performUpdate();
240
240
  }
241
241
  performUpdate() {
242
- var i;
242
+ var r;
243
243
  if (!this.isUpdatePending)
244
244
  return;
245
245
  if (!this.hasUpdated) {
@@ -256,7 +256,7 @@ class C extends HTMLElement {
256
256
  let t = !1;
257
257
  const e = this._$AL;
258
258
  try {
259
- t = this.shouldUpdate(e), t ? (this.willUpdate(e), (i = this._$EO) == null || i.forEach((s) => {
259
+ t = this.shouldUpdate(e), t ? (this.willUpdate(e), (r = this._$EO) == null || r.forEach((s) => {
260
260
  var n;
261
261
  return (n = s.hostUpdate) == null ? void 0 : n.call(s);
262
262
  }), this.update(e)) : this._$EU();
@@ -269,9 +269,9 @@ class C extends HTMLElement {
269
269
  }
270
270
  _$AE(t) {
271
271
  var e;
272
- (e = this._$EO) == null || e.forEach((i) => {
272
+ (e = this._$EO) == null || e.forEach((r) => {
273
273
  var s;
274
- return (s = i.hostUpdated) == null ? void 0 : s.call(i);
274
+ return (s = r.hostUpdated) == null ? void 0 : s.call(r);
275
275
  }), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
276
276
  }
277
277
  _$EU() {
@@ -294,40 +294,40 @@ class C extends HTMLElement {
294
294
  firstUpdated(t) {
295
295
  }
296
296
  }
297
- C.elementStyles = [], C.shadowRootOptions = { mode: "open" }, C[M("elementProperties")] = /* @__PURE__ */ new Map(), C[M("finalized")] = /* @__PURE__ */ new Map(), q == null || q({ ReactiveElement: C }), ($.reactiveElementVersions ?? ($.reactiveElementVersions = [])).push("2.0.4");
297
+ C.elementStyles = [], C.shadowRootOptions = { mode: "open" }, C[M("elementProperties")] = /* @__PURE__ */ new Map(), C[M("finalized")] = /* @__PURE__ */ new Map(), q == null || q({ ReactiveElement: C }), (b.reactiveElementVersions ?? (b.reactiveElementVersions = [])).push("2.0.4");
298
298
  /**
299
299
  * @license
300
300
  * Copyright 2017 Google LLC
301
301
  * SPDX-License-Identifier: BSD-3-Clause
302
302
  */
303
- const U = globalThis, j = U.trustedTypes, rt = j ? j.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, gt = "$lit$", f = `lit$${(Math.random() + "").slice(9)}$`, yt = "?" + f, Ot = `<${yt}>`, A = document, P = () => A.createComment(""), O = (r) => r === null || typeof r != "object" && typeof r != "function", ft = Array.isArray, Nt = (r) => ft(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", T = `[
304
- \f\r]`, k = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, it = /-->/g, st = />/g, v = RegExp(`>|${T}(?:([^\\s"'>=/]+)(${T}*=${T}*(?:[^
305
- \f\r"'\`<>=]|("|')|))|$)`, "g"), nt = /'/g, ot = /"/g, mt = /^(?:script|style|textarea|title)$/i, It = (r) => (t, ...e) => ({ _$litType$: r, strings: t, values: e }), _ = It(1), F = Symbol.for("lit-noChange"), d = Symbol.for("lit-nothing"), at = /* @__PURE__ */ new WeakMap(), w = A.createTreeWalker(A, 129);
306
- function $t(r, t) {
307
- if (!Array.isArray(r) || !r.hasOwnProperty("raw"))
303
+ const U = globalThis, j = U.trustedTypes, it = j ? j.createPolicy("lit-html", { createHTML: (i) => i }) : void 0, yt = "$lit$", f = `lit$${(Math.random() + "").slice(9)}$`, gt = "?" + f, Ot = `<${gt}>`, A = document, P = () => A.createComment(""), O = (i) => i === null || typeof i != "object" && typeof i != "function", ft = Array.isArray, Nt = (i) => ft(i) || typeof (i == null ? void 0 : i[Symbol.iterator]) == "function", T = `[
304
+ \f\r]`, k = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, rt = /-->/g, st = />/g, v = RegExp(`>|${T}(?:([^\\s"'>=/]+)(${T}*=${T}*(?:[^
305
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), nt = /'/g, ot = /"/g, mt = /^(?:script|style|textarea|title)$/i, It = (i) => (t, ...e) => ({ _$litType$: i, strings: t, values: e }), _ = It(1), F = Symbol.for("lit-noChange"), d = Symbol.for("lit-nothing"), at = /* @__PURE__ */ new WeakMap(), w = A.createTreeWalker(A, 129);
306
+ function bt(i, t) {
307
+ if (!Array.isArray(i) || !i.hasOwnProperty("raw"))
308
308
  throw Error("invalid template strings array");
309
- return rt !== void 0 ? rt.createHTML(t) : t;
309
+ return it !== void 0 ? it.createHTML(t) : t;
310
310
  }
311
- const Bt = (r, t) => {
312
- const e = r.length - 1, i = [];
311
+ const Bt = (i, t) => {
312
+ const e = i.length - 1, r = [];
313
313
  let s, n = t === 2 ? "<svg>" : "", o = k;
314
314
  for (let l = 0; l < e; l++) {
315
- const a = r[l];
315
+ const a = i[l];
316
316
  let h, p, c = -1, u = 0;
317
317
  for (; u < a.length && (o.lastIndex = u, p = o.exec(a), p !== null); )
318
- u = o.lastIndex, o === k ? p[1] === "!--" ? o = it : p[1] !== void 0 ? o = st : p[2] !== void 0 ? (mt.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] === '"' ? ot : nt) : o === ot || o === nt ? o = v : o === it || o === st ? o = k : (o = v, s = void 0);
319
- const y = o === v && r[l + 1].startsWith("/>") ? " " : "";
320
- n += o === k ? a + Ot : c >= 0 ? (i.push(h), a.slice(0, c) + gt + a.slice(c) + f + y) : a + f + (c === -2 ? l : y);
318
+ u = o.lastIndex, o === k ? p[1] === "!--" ? o = rt : p[1] !== void 0 ? o = st : p[2] !== void 0 ? (mt.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] === '"' ? ot : nt) : o === ot || o === nt ? o = v : o === rt || o === st ? o = k : (o = v, s = void 0);
319
+ const g = o === v && i[l + 1].startsWith("/>") ? " " : "";
320
+ n += o === k ? a + Ot : c >= 0 ? (r.push(h), a.slice(0, c) + yt + a.slice(c) + f + g) : a + f + (c === -2 ? l : g);
321
321
  }
322
- return [$t(r, n + (r[e] || "<?>") + (t === 2 ? "</svg>" : "")), i];
322
+ return [bt(i, n + (i[e] || "<?>") + (t === 2 ? "</svg>" : "")), r];
323
323
  };
324
324
  class N {
325
- constructor({ strings: t, _$litType$: e }, i) {
325
+ constructor({ strings: t, _$litType$: e }, r) {
326
326
  let s;
327
327
  this.parts = [];
328
328
  let n = 0, o = 0;
329
329
  const l = t.length - 1, a = this.parts, [h, p] = Bt(t, e);
330
- if (this.el = N.createElement(h, i), w.currentNode = this.el.content, e === 2) {
330
+ if (this.el = N.createElement(h, r), w.currentNode = this.el.content, e === 2) {
331
331
  const c = this.el.content.firstChild;
332
332
  c.replaceWith(...c.childNodes);
333
333
  }
@@ -335,22 +335,22 @@ class N {
335
335
  if (s.nodeType === 1) {
336
336
  if (s.hasAttributes())
337
337
  for (const c of s.getAttributeNames())
338
- if (c.endsWith(gt)) {
339
- const u = p[o++], y = s.getAttribute(c).split(f), z = /([.?@])?(.*)/.exec(u);
340
- a.push({ type: 1, index: n, name: z[2], strings: y, ctor: z[1] === "." ? Rt : z[1] === "?" ? Vt : z[1] === "@" ? zt : J }), s.removeAttribute(c);
338
+ if (c.endsWith(yt)) {
339
+ const u = p[o++], g = s.getAttribute(c).split(f), z = /([.?@])?(.*)/.exec(u);
340
+ a.push({ type: 1, index: n, name: z[2], strings: g, ctor: z[1] === "." ? Rt : z[1] === "?" ? Vt : z[1] === "@" ? zt : J }), s.removeAttribute(c);
341
341
  } else
342
342
  c.startsWith(f) && (a.push({ type: 6, index: n }), s.removeAttribute(c));
343
343
  if (mt.test(s.tagName)) {
344
344
  const c = s.textContent.split(f), u = c.length - 1;
345
345
  if (u > 0) {
346
346
  s.textContent = j ? j.emptyScript : "";
347
- for (let y = 0; y < u; y++)
348
- s.append(c[y], P()), w.nextNode(), a.push({ type: 2, index: ++n });
347
+ for (let g = 0; g < u; g++)
348
+ s.append(c[g], P()), w.nextNode(), a.push({ type: 2, index: ++n });
349
349
  s.append(c[u], P());
350
350
  }
351
351
  }
352
352
  } else if (s.nodeType === 8)
353
- if (s.data === yt)
353
+ if (s.data === gt)
354
354
  a.push({ type: 2, index: n });
355
355
  else {
356
356
  let c = -1;
@@ -361,17 +361,17 @@ class N {
361
361
  }
362
362
  }
363
363
  static createElement(t, e) {
364
- const i = A.createElement("template");
365
- return i.innerHTML = t, i;
364
+ const r = A.createElement("template");
365
+ return r.innerHTML = t, r;
366
366
  }
367
367
  }
368
- function H(r, t, e = r, i) {
368
+ function H(i, t, e = i, r) {
369
369
  var o, l;
370
370
  if (t === F)
371
371
  return t;
372
- let s = i !== void 0 ? (o = e._$Co) == null ? void 0 : o[i] : e._$Cl;
372
+ let s = r !== void 0 ? (o = e._$Co) == null ? void 0 : o[r] : e._$Cl;
373
373
  const n = O(t) ? void 0 : t._$litDirective$;
374
- 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(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;
374
+ 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;
375
375
  }
376
376
  class Lt {
377
377
  constructor(t, e) {
@@ -384,13 +384,13 @@ class Lt {
384
384
  return this._$AM._$AU;
385
385
  }
386
386
  u(t) {
387
- const { el: { content: e }, parts: i } = this._$AD, s = ((t == null ? void 0 : t.creationScope) ?? A).importNode(e, !0);
387
+ const { el: { content: e }, parts: r } = this._$AD, s = ((t == null ? void 0 : t.creationScope) ?? A).importNode(e, !0);
388
388
  w.currentNode = s;
389
- let n = w.nextNode(), o = 0, l = 0, a = i[0];
389
+ let n = w.nextNode(), o = 0, l = 0, a = r[0];
390
390
  for (; a !== void 0; ) {
391
391
  if (o === a.index) {
392
392
  let h;
393
- a.type === 2 ? h = new V(n, n.nextSibling, this, t) : a.type === 1 ? h = new a.ctor(n, a.name, a.strings, this, t) : a.type === 6 && (h = new Dt(n, this, t)), this._$AV.push(h), a = i[++l];
393
+ a.type === 2 ? h = new V(n, n.nextSibling, this, t) : a.type === 1 ? h = new a.ctor(n, a.name, a.strings, this, t) : a.type === 6 && (h = new Dt(n, this, t)), this._$AV.push(h), a = r[++l];
394
394
  }
395
395
  o !== (a == null ? void 0 : a.index) && (n = w.nextNode(), o++);
396
396
  }
@@ -398,8 +398,8 @@ class Lt {
398
398
  }
399
399
  p(t) {
400
400
  let e = 0;
401
- for (const i of this._$AV)
402
- i !== void 0 && (i.strings !== void 0 ? (i._$AI(t, i, e), e += i.strings.length - 2) : i._$AI(t[e])), e++;
401
+ for (const r of this._$AV)
402
+ r !== void 0 && (r.strings !== void 0 ? (r._$AI(t, r, e), e += r.strings.length - 2) : r._$AI(t[e])), e++;
403
403
  }
404
404
  }
405
405
  class V {
@@ -407,8 +407,8 @@ class V {
407
407
  var t;
408
408
  return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
409
409
  }
410
- constructor(t, e, i, s) {
411
- this.type = 2, this._$AH = d, 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;
410
+ constructor(t, e, r, s) {
411
+ this.type = 2, this._$AH = d, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = r, this.options = s, this._$Cv = (s == null ? void 0 : s.isConnected) ?? !0;
412
412
  }
413
413
  get parentNode() {
414
414
  let t = this._$AA.parentNode;
@@ -435,7 +435,7 @@ class V {
435
435
  }
436
436
  $(t) {
437
437
  var n;
438
- const { values: e, _$litType$: i } = t, s = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = N.createElement($t(i.h, i.h[0]), this.options)), i);
438
+ const { values: e, _$litType$: r } = t, s = typeof r == "number" ? this._$AC(t) : (r.el === void 0 && (r.el = N.createElement(bt(r.h, r.h[0]), this.options)), r);
439
439
  if (((n = this._$AH) == null ? void 0 : n._$AD) === s)
440
440
  this._$AH.p(e);
441
441
  else {
@@ -450,14 +450,14 @@ class V {
450
450
  k(t) {
451
451
  ft(this._$AH) || (this._$AH = [], this._$AR());
452
452
  const e = this._$AH;
453
- let i, s = 0;
453
+ let r, s = 0;
454
454
  for (const n of t)
455
- s === e.length ? e.push(i = new V(this.S(P()), this.S(P()), this, this.options)) : i = e[s], i._$AI(n), s++;
456
- s < e.length && (this._$AR(i && i._$AB.nextSibling, s), e.length = s);
455
+ s === e.length ? e.push(r = new V(this.S(P()), this.S(P()), this, this.options)) : r = e[s], r._$AI(n), s++;
456
+ s < e.length && (this._$AR(r && r._$AB.nextSibling, s), e.length = s);
457
457
  }
458
458
  _$AR(t = this._$AA.nextSibling, e) {
459
- var i;
460
- for ((i = this._$AP) == null ? void 0 : i.call(this, !1, !0, e); t && t !== this._$AB; ) {
459
+ var r;
460
+ for ((r = this._$AP) == null ? void 0 : r.call(this, !1, !0, e); t && t !== this._$AB; ) {
461
461
  const s = t.nextSibling;
462
462
  t.remove(), t = s;
463
463
  }
@@ -474,10 +474,10 @@ class J {
474
474
  get _$AU() {
475
475
  return this._$AM._$AU;
476
476
  }
477
- constructor(t, e, i, s, n) {
478
- this.type = 1, this._$AH = d, 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 = d;
477
+ constructor(t, e, r, s, n) {
478
+ this.type = 1, this._$AH = d, this._$AN = void 0, this.element = t, this.name = e, this._$AM = s, this.options = n, r.length > 2 || r[0] !== "" || r[1] !== "" ? (this._$AH = Array(r.length - 1).fill(new String()), this.strings = r) : this._$AH = d;
479
479
  }
480
- _$AI(t, e = this, i, s) {
480
+ _$AI(t, e = this, r, s) {
481
481
  const n = this.strings;
482
482
  let o = !1;
483
483
  if (n === void 0)
@@ -486,7 +486,7 @@ class J {
486
486
  const l = t;
487
487
  let a, h;
488
488
  for (t = n[0], a = 0; a < n.length - 1; a++)
489
- h = H(this, l[i + a], e, a), h === F && (h = this._$AH[a]), o || (o = !O(h) || h !== this._$AH[a]), h === d ? t = d : t !== d && (t += (h ?? "") + n[a + 1]), this._$AH[a] = h;
489
+ h = H(this, l[r + a], e, a), h === F && (h = this._$AH[a]), o || (o = !O(h) || h !== this._$AH[a]), h === d ? t = d : t !== d && (t += (h ?? "") + n[a + 1]), this._$AH[a] = h;
490
490
  }
491
491
  o && !s && this.j(t);
492
492
  }
@@ -511,14 +511,14 @@ class Vt extends J {
511
511
  }
512
512
  }
513
513
  class zt extends J {
514
- constructor(t, e, i, s, n) {
515
- super(t, e, i, s, n), this.type = 5;
514
+ constructor(t, e, r, s, n) {
515
+ super(t, e, r, s, n), this.type = 5;
516
516
  }
517
517
  _$AI(t, e = this) {
518
518
  if ((t = H(this, t, e, 0) ?? d) === F)
519
519
  return;
520
- const i = this._$AH, s = t === d && i !== d || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, n = t !== d && (i === d || s);
521
- s && this.element.removeEventListener(this.name, this, i), n && this.element.addEventListener(this.name, this, t), this._$AH = t;
520
+ 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);
521
+ s && this.element.removeEventListener(this.name, this, r), n && this.element.addEventListener(this.name, this, t), this._$AH = t;
522
522
  }
523
523
  handleEvent(t) {
524
524
  var e;
@@ -526,8 +526,8 @@ class zt extends J {
526
526
  }
527
527
  }
528
528
  class Dt {
529
- constructor(t, e, i) {
530
- this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = i;
529
+ constructor(t, e, r) {
530
+ this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = r;
531
531
  }
532
532
  get _$AU() {
533
533
  return this._$AM._$AU;
@@ -538,14 +538,14 @@ class Dt {
538
538
  }
539
539
  const G = U.litHtmlPolyfillSupport;
540
540
  G == null || G(N, V), (U.litHtmlVersions ?? (U.litHtmlVersions = [])).push("3.1.2");
541
- const jt = (r, t, e) => {
542
- const i = (e == null ? void 0 : e.renderBefore) ?? t;
543
- let s = i._$litPart$;
541
+ const jt = (i, t, e) => {
542
+ const r = (e == null ? void 0 : e.renderBefore) ?? t;
543
+ let s = r._$litPart$;
544
544
  if (s === void 0) {
545
545
  const n = (e == null ? void 0 : e.renderBefore) ?? null;
546
- i._$litPart$ = s = new V(t.insertBefore(P(), n), n, void 0, e ?? {});
546
+ r._$litPart$ = s = new V(t.insertBefore(P(), n), n, void 0, e ?? {});
547
547
  }
548
- return s._$AI(r), s;
548
+ return s._$AI(i), s;
549
549
  };
550
550
  /**
551
551
  * @license
@@ -587,15 +587,15 @@ W == null || W({ LitElement: x });
587
587
  * Copyright 2017 Google LLC
588
588
  * SPDX-License-Identifier: BSD-3-Clause
589
589
  */
590
- const Jt = (r) => (...t) => ({ _$litDirective$: r, values: t });
590
+ const Jt = (i) => (...t) => ({ _$litDirective$: i, values: t });
591
591
  let qt = class {
592
592
  constructor(t) {
593
593
  }
594
594
  get _$AU() {
595
595
  return this._$AM._$AU;
596
596
  }
597
- _$AT(t, e, i) {
598
- this._$Ct = t, this._$AM = e, this._$Ci = i;
597
+ _$AT(t, e, r) {
598
+ this._$Ct = t, this._$AM = e, this._$Ci = r;
599
599
  }
600
600
  _$AS(t, e) {
601
601
  return this.update(t, e);
@@ -609,7 +609,7 @@ let qt = class {
609
609
  * Copyright 2020 Google LLC
610
610
  * SPDX-License-Identifier: BSD-3-Clause
611
611
  */
612
- const Tt = {}, Gt = (r, t = Tt) => r._$AH = t;
612
+ const Tt = {}, Gt = (i, t = Tt) => i._$AH = t;
613
613
  /**
614
614
  * @license
615
615
  * Copyright 2021 Google LLC
@@ -619,38 +619,38 @@ const Wt = Jt(class extends qt {
619
619
  constructor() {
620
620
  super(...arguments), this.key = d;
621
621
  }
622
- render(r, t) {
623
- return this.key = r, t;
622
+ render(i, t) {
623
+ return this.key = i, t;
624
624
  }
625
- update(r, [t, e]) {
626
- return t !== this.key && (Gt(r), this.key = t), e;
625
+ update(i, [t, e]) {
626
+ return t !== this.key && (Gt(i), this.key = t), e;
627
627
  }
628
- }), Zt = (r) => {
629
- r.hoverInteraction = r.eoxMap.selectInteractions.selectHover, r.clickInteraction = r.eoxMap.selectInteractions.selectClick;
628
+ }), Zt = (i) => {
629
+ i.hoverInteraction = i.eoxMap.selectInteractions.selectHover, i.clickInteraction = i.eoxMap.selectInteractions.selectClick;
630
630
  const t = () => {
631
- r.requestUpdate();
631
+ i.requestUpdate();
632
632
  };
633
- r.hoverInteraction.selectStyleLayer.on(
633
+ i.hoverInteraction.selectStyleLayer.on(
634
634
  "change",
635
635
  t
636
- ), r.clickInteraction.selectStyleLayer.on(
636
+ ), i.clickInteraction.selectStyleLayer.on(
637
637
  "change",
638
638
  t
639
639
  );
640
- }, Kt = (r, t, e) => {
641
- if (r.clickId === t)
640
+ }, Kt = (i, t, e) => {
641
+ if (i.clickId === t)
642
642
  return;
643
- const i = e ? [] : [t];
644
- r.hoverInteraction.highlightById(i);
645
- }, Qt = (r, t) => {
646
- r.stopPropagation();
647
- const e = Number(r.target.getAttribute("index")), i = t.drawnFeatures[e];
648
- t.drawLayer.getSource().removeFeature(i), t.drawnFeatures.splice(e, 1), t.requestUpdate();
643
+ const r = e ? [] : [t];
644
+ i.hoverInteraction.highlightById(r);
645
+ }, Qt = (i, t) => {
646
+ i.stopPropagation();
647
+ const e = Number(i.target.getAttribute("index")), r = t.drawnFeatures[e];
648
+ t.drawLayer.getSource().removeFeature(r), t.drawnFeatures.splice(e, 1), t.requestUpdate();
649
649
  }, lt = { duration: 750 }, ct = {
650
650
  type: "FeatureCollection",
651
651
  features: []
652
- }, Xt = (r, t) => {
653
- const e = r.get("id"), { clickId: i, drawLayer: s, olMap: n, clickInteraction: o } = t, l = i === e, a = r.getGeometry();
652
+ }, Xt = (i, t) => {
653
+ const e = i.get("id"), { clickId: r, drawLayer: s, olMap: n, clickInteraction: o } = t, l = r === e, a = i.getGeometry();
654
654
  if (l) {
655
655
  const h = s.getSource().getExtent();
656
656
  n.getView().fit(h, lt), o.highlightById([]);
@@ -660,25 +660,25 @@ const Wt = Jt(class extends qt {
660
660
  }
661
661
  t.requestUpdate();
662
662
  }, Yt = "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;}";
663
- class bt extends x {
663
+ class $t extends x {
664
664
  constructor() {
665
665
  super();
666
666
  /**
667
667
  * @type import("../../../map/src/select").EOxSelectInteraction
668
668
  */
669
- b(this, "hoverInteraction");
669
+ $(this, "hoverInteraction");
670
670
  /**
671
671
  * @type import("../../../map/src/select").EOxSelectInteraction
672
672
  */
673
- b(this, "clickInteraction");
673
+ $(this, "clickInteraction");
674
674
  /**
675
675
  * @type string | number
676
676
  */
677
- b(this, "hoverId");
677
+ $(this, "hoverId");
678
678
  /**
679
679
  * @type string | number
680
680
  */
681
- b(this, "clickId");
681
+ $(this, "clickId");
682
682
  this.eoxMap = null, this.olMap = null, this.draw = null, this.drawLayer = null, this.drawnFeatures = [], this.modify = null, this.unstyled = !1;
683
683
  }
684
684
  /**
@@ -702,8 +702,8 @@ class bt extends x {
702
702
  * @param {Number} featureId - The ID of the feature to hover.
703
703
  * @param {Boolean} mouseOut - Flag indicating mouse out event.
704
704
  */
705
- _handleHoverFeature(e, i = !1) {
706
- Kt(this, e, i);
705
+ _handleHoverFeature(e, r = !1) {
706
+ Kt(this, e, r);
707
707
  }
708
708
  /**
709
709
  * Initiates initial settings and event triggers upon the component's first update.
@@ -718,8 +718,8 @@ class bt extends x {
718
718
  return this;
719
719
  }
720
720
  render() {
721
- var e, i;
722
- return this.hoverId = (e = this.hoverInteraction) == null ? void 0 : e.selectedFids[0], this.clickId = (i = this.clickInteraction) == null ? void 0 : i.selectedFids[0], _`
721
+ var e, r;
722
+ return this.hoverId = (e = this.hoverInteraction) == null ? void 0 : e.selectedFids[0], this.clickId = (r = this.clickInteraction) == null ? void 0 : r.selectedFids[0], _`
723
723
  <style>
724
724
  ${!this.unstyled && Yt}
725
725
  </style>
@@ -755,7 +755,7 @@ class bt extends x {
755
755
  `;
756
756
  }
757
757
  }
758
- b(bt, "properties", {
758
+ $($t, "properties", {
759
759
  eoxMap: { attribute: !1, state: !0 },
760
760
  olMap: { attribute: !1, state: !0 },
761
761
  draw: { attribute: !1, state: !0 },
@@ -764,13 +764,13 @@ b(bt, "properties", {
764
764
  modify: { attribute: !1, state: !0 },
765
765
  unstyled: { type: Boolean }
766
766
  });
767
- customElements.define("eox-drawtools-list", bt);
768
- const te = (r) => {
769
- const { multipleFeatures: t, drawnFeatures: e, currentlyDrawing: i } = r, s = !t && (e == null ? void 0 : e.length) > 0 || i, n = !(e != null && e.length) && !i;
767
+ customElements.define("eox-drawtools-list", $t);
768
+ const te = (i) => {
769
+ const { multipleFeatures: t, drawnFeatures: e, currentlyDrawing: r } = i, s = !t && (e == null ? void 0 : e.length) > 0 || r, n = !(e != null && e.length) && !r;
770
770
  return { drawDisabled: s, discardDisabled: n };
771
- }, ee = "button,.button { display: inline-flex; position: relative; align-items: center; color: #fff; border-width: 0; outline: none; border-radius: 4px; padding: 16px; height: 36px; cursor: pointer; font-family: inherit; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 1.25px; font-weight: 500; box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12); transition-property: box-shadow, transform, opacity, background; transition-duration: 0.28s; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);}button:hover:not([disabled]):not(.icon),.button:hover:not([disabled]):not(.icon) { box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12); background: var(--primary-btn-color-hover);}button,button:active,.button,.button:active { background: var(--primary-color);}button[disabled],.button[disabled] { opacity: 0.5; cursor: not-allowed;}button.outline,.button.outline { background: transparent; box-shadow: none; color: var(--primary-color); outline: 1px solid var(--primary-color);}button.outline:hover,.button.outline:hover { background: transparent;}button.icon,.button.icon { background: transparent; border: none; box-shadow: none; padding: 0; border-radius: 50%; width: 24px; height: 24px; text-indent: -9999px;}button.icon-text,.button.icon-text { text-indent: 26px;}button.icon:before,button.icon-text:before,.button.icon:before,.button.icon-text:before { position: absolute; text-indent: 0; line-height: initial;}button.icon:before,.button.icon:before { width: 24px; height: 24px; margin-right: 0;}button.icon-text:before,.button.icon-text:before { width: 18px; height: 18px;}button.small,.button.small { height: 28px; padding: 12.4px; font-size: 0.75rem;}button.smallest.icon,button.smallest.icon::before { height: 16px; width: 16px; padding: 0px;}", re = "textarea { height: 90px; resize: none; border-radius: 4px; box-sizing: border-box !important; width: 100%; padding: 5px 7px; border: 1px solid var(--secondary-color); font-size: smaller; background: var(--background-color);}";
772
- function ie(r) {
773
- navigator.clipboard.writeText(r).then(
771
+ }, ee = 'button,.button { display: inline-flex; position: relative; align-items: center; color: #fff; border-width: 0; outline: none; border-radius: 4px; padding: 16px; height: 36px; cursor: pointer; font-family: inherit; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 1.25px; font-weight: 500; box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12); transition-property: box-shadow, transform, opacity, background; transition-duration: 0.28s; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);}button:hover:not([disabled]):not(.icon):not(.json-editor-btntype-*),.button:hover:not([disabled]):not(.icon) { box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12); background: var(--primary-btn-color-hover);}button,button:active,.button,.button:active { background: var(--primary-color);}button[disabled],.button[disabled] { opacity: 0.5; cursor: not-allowed;}button.block,.button.block { display: block;}button.outline,.button.outline { background: transparent; box-shadow: none; color: var(--primary-color); outline: 1px solid var(--primary-color);}button.outline:hover,.button.outline:hover { background: transparent;}button.icon,.button.icon,button[class*="json-editor-btntype-"] { background: transparent; border: none; box-shadow: none; padding: 0; border-radius: 50%; width: 24px; height: 24px; text-indent: -9999px;}button.icon-text,.button.icon-text { text-indent: 26px;}button.icon-text.block,.button.icon-text.block { text-indent: 20px;}button.icon:before,button.icon-text:before,.button.icon:before,.button.icon-text:before { position: absolute; text-indent: 0; line-height: initial;}button.icon-text.block:before,.button.icon-text.block:before { text-indent: -54px;}button.icon:before,.button.icon:before,button[class*="json-editor-btntype-"]::before { width: 24px; height: 24px; margin-right: 0;}button.icon-text:before,.button.icon-text:before { width: 18px; height: 18px;}button.small,.button.small { height: 28px; padding: 12.4px; font-size: 0.75rem;}button.smallest.icon,button.smallest.icon::before { height: 16px; width: 16px; padding: 0;}', ie = 'textarea { height: 90px; resize: none; border-radius: 4px; box-sizing: border-box !important; width: 100%; padding: 5px 7px; border: 1px solid var(--secondary-color); font-size: smaller; background: var(--background-color);}input[type="text"],input[type="url"],input[type="email"],input[type="password"],input[type="text"],input[type="number"],input[type="search"],input[type="tel"],select { box-sizing: border-box; width: 100%; margin-top: 0.5rem; margin-bottom: 0.5rem; padding: 5px 7px; border-radius: 4px; border: 1px solid #0004;}';
772
+ function re(i) {
773
+ navigator.clipboard.writeText(i).then(
774
774
  function() {
775
775
  },
776
776
  function(t) {
@@ -783,8 +783,8 @@ function ie(r) {
783
783
  * Copyright 2021 Google LLC
784
784
  * SPDX-License-Identifier: BSD-3-Clause
785
785
  */
786
- function ht(r, t, e) {
787
- return r ? t(r) : e == null ? void 0 : e(r);
786
+ function ht(i, t, e) {
787
+ return i ? t(i) : e == null ? void 0 : e(i);
788
788
  }
789
789
  var I, B;
790
790
  class vt extends x {
@@ -804,8 +804,8 @@ class vt extends x {
804
804
  * Updates button states based on conditions
805
805
  */
806
806
  updateButtonStates() {
807
- const { drawDisabled: e, discardDisabled: i } = te(this);
808
- E(this, I, e), E(this, B, i);
807
+ const { drawDisabled: e, discardDisabled: r } = te(this);
808
+ E(this, I, e), E(this, B, r);
809
809
  }
810
810
  /**
811
811
  * Overrides createRenderRoot to handle shadow DOM
@@ -819,7 +819,7 @@ class vt extends x {
819
819
  return _`
820
820
  <style>
821
821
  ${!this.unstyled && ee}
822
- ${!this.unstyled && re}
822
+ ${!this.unstyled && ie}
823
823
  </style>
824
824
  <div class="wrap-btn">
825
825
  <slot></slot>
@@ -828,7 +828,7 @@ class vt extends x {
828
828
  <button
829
829
  data-cy="drawBtn"
830
830
  class="polygon icon"
831
- ?disabled="${g(this, I) || d}"
831
+ ?disabled="${y(this, I) || d}"
832
832
  @click="${() => this.drawFunc.start()}"
833
833
  >
834
834
  ${e}
@@ -838,7 +838,7 @@ class vt extends x {
838
838
  <button
839
839
  data-cy="discardBtn"
840
840
  class="discard icon"
841
- ?disabled="${g(this, B) || d}"
841
+ ?disabled="${y(this, B) || d}"
842
842
  @click="${() => this.drawFunc.discard()}"
843
843
  >
844
844
  discard
@@ -885,7 +885,7 @@ class vt extends x {
885
885
  <button
886
886
  data-cy="copyBtn"
887
887
  class="icon-copy"
888
- @click=${() => ie(this.geoJSON)}
888
+ @click=${() => re(this.geoJSON)}
889
889
  >
890
890
  ${this.unstyled ? "copy" : d}
891
891
  </button>
@@ -896,7 +896,7 @@ class vt extends x {
896
896
  }
897
897
  }
898
898
  I = new WeakMap(), B = new WeakMap(), // Define properties with default values and types
899
- b(vt, "properties", {
899
+ $(vt, "properties", {
900
900
  multipleFeatures: { attribute: !1, type: Boolean },
901
901
  drawnFeatures: { attribute: !1, state: !0, type: Array },
902
902
  currentlyDrawing: { attribute: !1, state: !0, type: Boolean },
@@ -949,21 +949,21 @@ const se = `
949
949
  color: white;
950
950
  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")
951
951
  }
952
- `, ne = (r) => {
952
+ `, ne = (i) => {
953
953
  (() => {
954
- r.emitDrawnFeatures(), r.multipleFeatures || (r.draw.setActive(!1), r.currentlyDrawing = !1);
955
- })(), r.requestUpdate();
956
- }, oe = (r) => {
954
+ i.emitDrawnFeatures(), i.multipleFeatures || (i.draw.setActive(!1), i.currentlyDrawing = !1);
955
+ })(), i.requestUpdate();
956
+ }, oe = (i) => {
957
957
  const t = () => {
958
- r.drawLayer.set("isDrawingEnabled", !0), r.draw.setActive(!0);
958
+ i.drawLayer.set("isDrawingEnabled", !0), i.draw.setActive(!0);
959
959
  }, e = () => {
960
- r.currentlyDrawing = !0, r.requestUpdate();
960
+ i.currentlyDrawing = !0, i.requestUpdate();
961
961
  };
962
962
  t(), e();
963
- }, ae = (r, t) => {
963
+ }, ae = (i, t) => {
964
964
  var n;
965
- const i = document.querySelector(r.for), s = i.map;
966
- return r.drawLayer = i.addOrUpdateLayer({
965
+ const r = document.querySelector(i.for), s = r.map;
966
+ return i.drawLayer = r.addOrUpdateLayer({
967
967
  type: "Vector",
968
968
  properties: {
969
969
  id: "drawLayer",
@@ -980,8 +980,8 @@ const se = `
980
980
  options: {
981
981
  active: !1,
982
982
  id: "drawInteraction",
983
- type: r.type,
984
- modify: r.allowModify,
983
+ type: i.type,
984
+ modify: i.allowModify,
985
985
  stopClick: !0
986
986
  }
987
987
  },
@@ -1011,53 +1011,53 @@ const se = `
1011
1011
  }
1012
1012
  }
1013
1013
  ]
1014
- }), r.draw = /** @type {import("ol/interaction").Draw} */
1014
+ }), i.draw = /** @type {import("ol/interaction").Draw} */
1015
1015
  /** @type {unknown} */
1016
- i.interactions.drawInteraction, r.modify = /** @type {import("ol/interaction").Modify} */
1016
+ r.interactions.drawInteraction, i.modify = /** @type {import("ol/interaction").Modify} */
1017
1017
  /** @type {unknown} */
1018
- i.interactions.drawInteractionmodify, (n = r.modify) == null || n.on("modifyend", () => r.onModifyEnd()), i.addEventListener("addfeatures", () => ne(r)), { EoxMap: i, OlMap: s };
1019
- }, le = (r) => {
1018
+ r.interactions.drawInteractionmodify, (n = i.modify) == null || n.on("modifyend", () => i.onModifyEnd()), r.addEventListener("addfeatures", () => ne(i)), { EoxMap: r, OlMap: s };
1019
+ }, le = (i) => {
1020
1020
  const t = () => {
1021
- r.drawnFeatures = [], r.draw.setActive(!1), r.drawLayer.getSource().clear(), r.geoJSON = null;
1021
+ i.drawnFeatures = [], i.draw.setActive(!1), i.drawLayer.getSource().clear(), i.geoJSON = null;
1022
1022
  }, e = () => {
1023
- r.emitDrawnFeatures(), r.currentlyDrawing = !1, r.requestUpdate();
1023
+ i.emitDrawnFeatures(), i.currentlyDrawing = !1, i.requestUpdate();
1024
1024
  };
1025
1025
  t(), e();
1026
- }, ce = (r, t) => {
1026
+ }, ce = (i, t) => {
1027
1027
  setTimeout(() => {
1028
- r.drawnFeatures = r.drawLayer.getSource().getFeatures(), r.updateGeoJSON(), r.requestUpdate(), t();
1028
+ i.drawnFeatures = i.drawLayer.getSource().getFeatures(), i.updateGeoJSON(), i.requestUpdate(), t();
1029
1029
  }, 0);
1030
- }, he = ':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-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-weight: 400; line-height: 170%; margin-top: 0.8rem; margin-bottom: 1.6rem;}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);}';
1031
- function de(r, t) {
1030
+ }, he = ':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);}';
1031
+ function de(i, t) {
1032
1032
  function e(n) {
1033
1033
  n.preventDefault(), n.stopPropagation();
1034
1034
  }
1035
- function i(n) {
1035
+ function r(n) {
1036
1036
  n.srcElement.style.opacity = "0.4";
1037
1037
  }
1038
1038
  function s(n) {
1039
1039
  n.srcElement.style.opacity = "1";
1040
1040
  }
1041
1041
  ["dragenter", "dragover", "dragleave", "drop"].forEach((n) => {
1042
- t.addEventListener(n, e, !1), ["dragenter", "dragover"].includes(n) ? t.addEventListener(n, i, !1) : t.addEventListener(n, s, !1);
1043
- }), t.addEventListener("drop", (n) => wt(n, r), !1);
1042
+ t.addEventListener(n, e, !1), ["dragenter", "dragover"].includes(n) ? t.addEventListener(n, r, !1) : t.addEventListener(n, s, !1);
1043
+ }), t.addEventListener("drop", (n) => wt(n, i), !1);
1044
1044
  }
1045
- function pe(r) {
1046
- r.preventDefault(), r.stopPropagation();
1045
+ function pe(i) {
1046
+ i.preventDefault(), i.stopPropagation();
1047
1047
  }
1048
- function wt(r, t) {
1049
- pe(r);
1050
- const e = r.dataTransfer ? r.dataTransfer.files : r.target.files;
1051
- Array.from(e).forEach((i) => ue(i, t));
1048
+ function wt(i, t) {
1049
+ pe(i);
1050
+ const e = i.dataTransfer ? i.dataTransfer.files : i.target.files;
1051
+ Array.from(e).forEach((r) => ue(r, t));
1052
1052
  }
1053
- function ue(r, t) {
1053
+ function ue(i, t) {
1054
1054
  const e = new FileReader();
1055
- e.readAsText(r), e.onloadend = function() {
1055
+ e.readAsText(i), e.onloadend = function() {
1056
1056
  typeof e.result == "string" && t.handleFeatureChange(e.result);
1057
1057
  };
1058
1058
  }
1059
1059
  var m, L, R;
1060
- class ge extends x {
1060
+ class ye extends x {
1061
1061
  constructor() {
1062
1062
  super();
1063
1063
  /**
@@ -1110,11 +1110,11 @@ class ge extends x {
1110
1110
  * @param {string} text - The string representation of the features to be parsed.
1111
1111
  * @param {boolean} replaceFeatures - A boolean flag indicating whether to replace the existing features.
1112
1112
  */
1113
- handleFeatureChange(e, i = !1) {
1114
- g(this, m).parseTextToFeature(
1113
+ handleFeatureChange(e, r = !1) {
1114
+ y(this, m).parseTextToFeature(
1115
1115
  e || JSON.stringify(ct),
1116
1116
  this.drawLayer,
1117
- i
1117
+ r
1118
1118
  );
1119
1119
  }
1120
1120
  /**
@@ -1134,7 +1134,7 @@ class ge extends x {
1134
1134
  */
1135
1135
  updateGeoJSON() {
1136
1136
  E(this, R, JSON.stringify(
1137
- g(this, m).parseFeature(this.drawnFeatures) || ct,
1137
+ y(this, m).parseFeature(this.drawnFeatures) || ct,
1138
1138
  void 0,
1139
1139
  2
1140
1140
  ));
@@ -1161,8 +1161,8 @@ class ge extends x {
1161
1161
  * It then calls requestUpdate to trigger a re-render.
1162
1162
  */
1163
1163
  firstUpdated() {
1164
- const { EoxMap: e, OlMap: i } = ae(this, this.multipleFeatures);
1165
- E(this, m, e), E(this, L, i), this.importFeatures && de(this, g(this, m)), this.updateGeoJSON(), this.requestUpdate();
1164
+ const { EoxMap: e, OlMap: r } = ae(this, this.multipleFeatures);
1165
+ E(this, m, e), E(this, L, r), this.importFeatures && de(this, y(this, m)), this.updateGeoJSON(), this.requestUpdate();
1166
1166
  }
1167
1167
  // Render method for UI display
1168
1168
  render() {
@@ -1179,8 +1179,8 @@ class ge extends x {
1179
1179
  .drawFunc=${{
1180
1180
  start: () => this.handleStartDrawing(),
1181
1181
  discard: () => this.handleDiscardDrawing(),
1182
- editor: (i) => this.handleFeatureChange(i.target.value, !0),
1183
- import: (i) => this.handleFilesChange(i)
1182
+ editor: (r) => this.handleFeatureChange(r.target.value, !0),
1183
+ import: (r) => this.handleFilesChange(r)
1184
1184
  }}
1185
1185
  .unstyled=${this.unstyled}
1186
1186
  .drawnFeatures=${this.drawnFeatures}
@@ -1188,13 +1188,13 @@ class ge extends x {
1188
1188
  .multipleFeatures=${this.multipleFeatures}
1189
1189
  .importFeatures=${this.importFeatures}
1190
1190
  .showEditor=${this.showEditor}
1191
- .geoJSON=${g(this, R)}
1191
+ .geoJSON=${y(this, R)}
1192
1192
  ></eox-drawtools-controller>
1193
1193
 
1194
1194
  <!-- List Component -->
1195
1195
  ${this.showList && ((e = this.drawnFeatures) != null && e.length) ? _`<eox-drawtools-list
1196
- .eoxMap=${g(this, m)}
1197
- .olMap=${g(this, L)}
1196
+ .eoxMap=${y(this, m)}
1197
+ .olMap=${y(this, L)}
1198
1198
  .draw=${this.draw}
1199
1199
  .drawLayer=${this.drawLayer}
1200
1200
  .drawnFeatures=${this.drawnFeatures}
@@ -1208,7 +1208,7 @@ class ge extends x {
1208
1208
  }
1209
1209
  }
1210
1210
  m = new WeakMap(), L = new WeakMap(), R = new WeakMap();
1211
- customElements.define("eox-drawtools", ge);
1211
+ customElements.define("eox-drawtools", ye);
1212
1212
  export {
1213
- ge as EOxDrawTools
1213
+ ye as EOxDrawTools
1214
1214
  };
@@ -1,18 +1,18 @@
1
- (function(h,l){typeof exports=="object"&&typeof module<"u"?l(exports):typeof define=="function"&&define.amd?define(["exports"],l):(h=typeof globalThis<"u"?globalThis:h||self,l(h["eox-drawtools"]={}))})(this,function(h){"use strict";var ge=Object.defineProperty;var ye=(h,l,g)=>l in h?ge(h,l,{enumerable:!0,configurable:!0,writable:!0,value:g}):h[l]=g;var C=(h,l,g)=>(ye(h,typeof l!="symbol"?l+"":l,g),g),xt=(h,l,g)=>{if(!l.has(h))throw TypeError("Cannot "+g)};var m=(h,l,g)=>(xt(h,l,"read from private field"),g?g.call(h):l.get(h)),k=(h,l,g)=>{if(l.has(h))throw TypeError("Cannot add the same private member more than once");l instanceof WeakSet?l.add(h):l.set(h,g)},U=(h,l,g,O)=>(xt(h,l,"write to private field"),O?O.call(h,g):l.set(h,g),g);/**
1
+ (function(h,l){typeof exports=="object"&&typeof module<"u"?l(exports):typeof define=="function"&&define.amd?define(["exports"],l):(h=typeof globalThis<"u"?globalThis:h||self,l(h["eox-drawtools"]={}))})(this,function(h){"use strict";var ye=Object.defineProperty;var ge=(h,l,y)=>l in h?ye(h,l,{enumerable:!0,configurable:!0,writable:!0,value:y}):h[l]=y;var C=(h,l,y)=>(ge(h,typeof l!="symbol"?l+"":l,y),y),xt=(h,l,y)=>{if(!l.has(h))throw TypeError("Cannot "+y)};var m=(h,l,y)=>(xt(h,l,"read from private field"),y?y.call(h):l.get(h)),M=(h,l,y)=>{if(l.has(h))throw TypeError("Cannot add the same private member more than once");l instanceof WeakSet?l.add(h):l.set(h,y)},U=(h,l,y,O)=>(xt(h,l,"write to private field"),O?O.call(h,y):l.set(h,y),y);/**
2
2
  * @license
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
- */var _t,D,z,v,j,J;const l=globalThis,g=l.ShadowRoot&&(l.ShadyCSS===void 0||l.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,O=Symbol(),Y=new WeakMap;let At=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(g&&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 St=r=>new At(typeof r=="string"?r:r+"",void 0,O),Et=(r,t)=>{if(g)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=g?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return St(e)})(r):r;/**
5
+ */var _t,z,D,v,j,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 At=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 St=r=>new At(typeof r=="string"?r:r+"",void 0,O),Et=(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 St(e)})(r):r;/**
6
6
  * @license
7
7
  * Copyright 2017 Google LLC
8
8
  * SPDX-License-Identifier: BSD-3-Clause
9
- */const{is:Ct,defineProperty:Ft,getOwnPropertyDescriptor:Ht,getOwnPropertyNames:Mt,getOwnPropertySymbols:kt,getPrototypeOf:Ut}=Object,$=globalThis,et=$.trustedTypes,Ot=et?et.emptyScript:"",W=$.reactiveElementPolyfillSupport,P=(r,t)=>r,Z={toAttribute(r,t){switch(t){case Boolean:r=r?Ot: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)=>!Ct(r,t),rt={attribute:!0,type:String,converter:Z,reflect:!1,hasChanged:it};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),$.litPropertyMetadata??($.litPropertyMetadata=new WeakMap);class F 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&&Ft(this.prototype,t,s)}}static getPropertyDescriptor(t,e,i){const{get:s,set:n}=Ht(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 c=s==null?void 0:s.call(this);n.call(this,o),this.requestUpdate(t,c,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??rt}static _$Ei(){if(this.hasOwnProperty(P("elementProperties")))return;const t=Ut(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(P("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(P("properties"))){const e=this.properties,i=[...Mt(e),...kt(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 Et(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),c=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]=c.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){}}F.elementStyles=[],F.shadowRootOptions={mode:"open"},F[P("elementProperties")]=new Map,F[P("finalized")]=new Map,W==null||W({ReactiveElement:F}),($.reactiveElementVersions??($.reactiveElementVersions=[])).push("2.0.4");/**
9
+ */const{is:Ct,defineProperty:Ft,getOwnPropertyDescriptor:Ht,getOwnPropertyNames:kt,getOwnPropertySymbols:Mt,getPrototypeOf:Ut}=Object,b=globalThis,et=b.trustedTypes,Ot=et?et.emptyScript:"",W=b.reactiveElementPolyfillSupport,P=(r,t)=>r,Z={toAttribute(r,t){switch(t){case Boolean:r=r?Ot: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)=>!Ct(r,t),rt={attribute:!0,type:String,converter:Z,reflect:!1,hasChanged:it};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),b.litPropertyMetadata??(b.litPropertyMetadata=new WeakMap);class F 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&&Ft(this.prototype,t,s)}}static getPropertyDescriptor(t,e,i){const{get:s,set:n}=Ht(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 c=s==null?void 0:s.call(this);n.call(this,o),this.requestUpdate(t,c,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??rt}static _$Ei(){if(this.hasOwnProperty(P("elementProperties")))return;const t=Ut(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(P("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(P("properties"))){const e=this.properties,i=[...kt(e),...Mt(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 Et(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),c=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]=c.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){}}F.elementStyles=[],F.shadowRootOptions={mode:"open"},F[P("elementProperties")]=new Map,F[P("finalized")]=new Map,W==null||W({ReactiveElement:F}),(b.reactiveElementVersions??(b.reactiveElementVersions=[])).push("2.0.4");/**
10
10
  * @license
11
11
  * Copyright 2017 Google LLC
12
12
  * SPDX-License-Identifier: BSD-3-Clause
13
- */const N=globalThis,T=N.trustedTypes,st=T?T.createPolicy("lit-html",{createHTML:r=>r}):void 0,nt="$lit$",b=`lit$${(Math.random()+"").slice(9)}$`,ot="?"+b,Pt=`<${ot}>`,_=document,I=()=>_.createComment(""),B=r=>r===null||typeof r!="object"&&typeof r!="function",at=Array.isArray,Nt=r=>at(r)||typeof(r==null?void 0:r[Symbol.iterator])=="function",K=`[
13
+ */const N=globalThis,T=N.trustedTypes,st=T?T.createPolicy("lit-html",{createHTML:r=>r}):void 0,nt="$lit$",$=`lit$${(Math.random()+"").slice(9)}$`,ot="?"+$,Pt=`<${ot}>`,_=document,I=()=>_.createComment(""),B=r=>r===null||typeof r!="object"&&typeof r!="function",at=Array.isArray,Nt=r=>at(r)||typeof(r==null?void 0:r[Symbol.iterator])=="function",K=`[
14
14
  \f\r]`,L=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,lt=/-->/g,ct=/>/g,x=RegExp(`>|${K}(?:([^\\s"'>=/]+)(${K}*=${K}*(?:[^
15
- \f\r"'\`<>=]|("|')|))|$)`,"g"),ht=/'/g,dt=/"/g,pt=/^(?:script|style|textarea|title)$/i,It=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),A=It(1),H=Symbol.for("lit-noChange"),p=Symbol.for("lit-nothing"),ut=new WeakMap,S=_.createTreeWalker(_,129);function gt(r,t){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return st!==void 0?st.createHTML(t):t}const Bt=(r,t)=>{const e=r.length-1,i=[];let s,n=t===2?"<svg>":"",o=L;for(let c=0;c<e;c++){const a=r[c];let u,y,d=-1,f=0;for(;f<a.length&&(o.lastIndex=f,y=o.exec(a),y!==null);)f=o.lastIndex,o===L?y[1]==="!--"?o=lt:y[1]!==void 0?o=ct:y[2]!==void 0?(pt.test(y[2])&&(s=RegExp("</"+y[2],"g")),o=x):y[3]!==void 0&&(o=x):o===x?y[0]===">"?(o=s??L,d=-1):y[1]===void 0?d=-2:(d=o.lastIndex-y[2].length,u=y[1],o=y[3]===void 0?x:y[3]==='"'?dt:ht):o===dt||o===ht?o=x:o===lt||o===ct?o=L:(o=x,s=void 0);const w=o===x&&r[c+1].startsWith("/>")?" ":"";n+=o===L?a+Pt:d>=0?(i.push(u),a.slice(0,d)+nt+a.slice(d)+b+w):a+b+(d===-2?c:w)}return[gt(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 c=t.length-1,a=this.parts,[u,y]=Bt(t,e);if(this.el=R.createElement(u,i),S.currentNode=this.el.content,e===2){const d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(s=S.nextNode())!==null&&a.length<c;){if(s.nodeType===1){if(s.hasAttributes())for(const d of s.getAttributeNames())if(d.endsWith(nt)){const f=y[o++],w=s.getAttribute(d).split(b),G=/([.?@])?(.*)/.exec(f);a.push({type:1,index:n,name:G[2],strings:w,ctor:G[1]==="."?Rt:G[1]==="?"?Vt:G[1]==="@"?Dt: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 w=0;w<f;w++)s.append(d[w],I()),S.nextNode(),a.push({type:2,index:++n});s.append(d[f],I())}}}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=_.createElement("template");return i.innerHTML=t,i}}function M(r,t,e=r,i){var o,c;if(t===H)return t;let s=i!==void 0?(o=e._$Co)==null?void 0:o[i]:e._$Cl;const n=B(t)?void 0:t._$litDirective$;return(s==null?void 0:s.constructor)!==n&&((c=s==null?void 0:s._$AO)==null||c.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=M(r,s._$AS(r,t.values),s,i)),t}class Lt{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)??_).importNode(e,!0);S.currentNode=s;let n=S.nextNode(),o=0,c=0,a=i[0];for(;a!==void 0;){if(o===a.index){let u;a.type===2?u=new V(n,n.nextSibling,this,t):a.type===1?u=new a.ctor(n,a.name,a.strings,this,t):a.type===6&&(u=new zt(n,this,t)),this._$AV.push(u),a=i[++c]}o!==(a==null?void 0:a.index)&&(n=S.nextNode(),o++)}return S.currentNode=_,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 V{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=M(this,t,e),B(t)?t===p||t==null||t===""?(this._$AH!==p&&this._$AR(),this._$AH=p):t!==this._$AH&&t!==H&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Nt(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&&B(this._$AH)?this._$AA.nextSibling.data=t:this.T(_.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(gt(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 Lt(s,this),c=o.u(this.options);o.p(e),this.T(c),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 V(this.S(I()),this.S(I()),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=M(this,t,e,0),o=!B(t)||t!==this._$AH&&t!==H,o&&(this._$AH=t);else{const c=t;let a,u;for(t=n[0],a=0;a<n.length-1;a++)u=M(this,c[i+a],e,a),u===H&&(u=this._$AH[a]),o||(o=!B(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 Rt extends q{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===p?void 0:t}}class Vt extends q{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==p)}}class Dt extends q{constructor(t,e,i,s,n){super(t,e,i,s,n),this.type=5}_$AI(t,e=this){if((t=M(this,t,e,0)??p)===H)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 zt{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){M(this,t)}}const Q=N.litHtmlPolyfillSupport;Q==null||Q(R,V),(N.litHtmlVersions??(N.litHtmlVersions=[])).push("3.1.2");const jt=(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 V(t.insertBefore(I(),n),n,void 0,e??{})}return s._$AI(r),s};/**
15
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),ht=/'/g,dt=/"/g,pt=/^(?:script|style|textarea|title)$/i,It=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),A=It(1),H=Symbol.for("lit-noChange"),p=Symbol.for("lit-nothing"),ut=new WeakMap,S=_.createTreeWalker(_,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 Bt=(r,t)=>{const e=r.length-1,i=[];let s,n=t===2?"<svg>":"",o=L;for(let c=0;c<e;c++){const a=r[c];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=x):g[3]!==void 0&&(o=x):o===x?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?x:g[3]==='"'?dt:ht):o===dt||o===ht?o=x:o===lt||o===ct?o=L:(o=x,s=void 0);const w=o===x&&r[c+1].startsWith("/>")?" ":"";n+=o===L?a+Pt:d>=0?(i.push(u),a.slice(0,d)+nt+a.slice(d)+$+w):a+$+(d===-2?c:w)}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 c=t.length-1,a=this.parts,[u,g]=Bt(t,e);if(this.el=R.createElement(u,i),S.currentNode=this.el.content,e===2){const d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(s=S.nextNode())!==null&&a.length<c;){if(s.nodeType===1){if(s.hasAttributes())for(const d of s.getAttributeNames())if(d.endsWith(nt)){const f=g[o++],w=s.getAttribute(d).split($),G=/([.?@])?(.*)/.exec(f);a.push({type:1,index:n,name:G[2],strings:w,ctor:G[1]==="."?Rt:G[1]==="?"?Vt:G[1]==="@"?zt:q}),s.removeAttribute(d)}else d.startsWith($)&&(a.push({type:6,index:n}),s.removeAttribute(d));if(pt.test(s.tagName)){const d=s.textContent.split($),f=d.length-1;if(f>0){s.textContent=T?T.emptyScript:"";for(let w=0;w<f;w++)s.append(d[w],I()),S.nextNode(),a.push({type:2,index:++n});s.append(d[f],I())}}}else if(s.nodeType===8)if(s.data===ot)a.push({type:2,index:n});else{let d=-1;for(;(d=s.data.indexOf($,d+1))!==-1;)a.push({type:7,index:n}),d+=$.length-1}n++}}static createElement(t,e){const i=_.createElement("template");return i.innerHTML=t,i}}function k(r,t,e=r,i){var o,c;if(t===H)return t;let s=i!==void 0?(o=e._$Co)==null?void 0:o[i]:e._$Cl;const n=B(t)?void 0:t._$litDirective$;return(s==null?void 0:s.constructor)!==n&&((c=s==null?void 0:s._$AO)==null||c.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=k(r,s._$AS(r,t.values),s,i)),t}class Lt{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)??_).importNode(e,!0);S.currentNode=s;let n=S.nextNode(),o=0,c=0,a=i[0];for(;a!==void 0;){if(o===a.index){let u;a.type===2?u=new V(n,n.nextSibling,this,t):a.type===1?u=new a.ctor(n,a.name,a.strings,this,t):a.type===6&&(u=new Dt(n,this,t)),this._$AV.push(u),a=i[++c]}o!==(a==null?void 0:a.index)&&(n=S.nextNode(),o++)}return S.currentNode=_,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 V{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=k(this,t,e),B(t)?t===p||t==null||t===""?(this._$AH!==p&&this._$AR(),this._$AH=p):t!==this._$AH&&t!==H&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Nt(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&&B(this._$AH)?this._$AA.nextSibling.data=t:this.T(_.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 Lt(s,this),c=o.u(this.options);o.p(e),this.T(c),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 V(this.S(I()),this.S(I()),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=k(this,t,e,0),o=!B(t)||t!==this._$AH&&t!==H,o&&(this._$AH=t);else{const c=t;let a,u;for(t=n[0],a=0;a<n.length-1;a++)u=k(this,c[i+a],e,a),u===H&&(u=this._$AH[a]),o||(o=!B(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 Rt extends q{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===p?void 0:t}}class Vt extends q{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==p)}}class zt extends q{constructor(t,e,i,s,n){super(t,e,i,s,n),this.type=5}_$AI(t,e=this){if((t=k(this,t,e,0)??p)===H)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 Dt{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){k(this,t)}}const Q=N.litHtmlPolyfillSupport;Q==null||Q(R,V),(N.litHtmlVersions??(N.litHtmlVersions=[])).push("3.1.2");const jt=(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 V(t.insertBefore(I(),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
@@ -28,7 +28,7 @@
28
28
  * @license
29
29
  * Copyright 2021 Google LLC
30
30
  * SPDX-License-Identifier: BSD-3-Clause
31
- */const Wt=Jt(class extends Tt{constructor(){super(...arguments),this.key=p}render(r,t){return this.key=r,t}update(r,[t,e]){return t!==this.key&&(Gt(r),this.key=t),e}}),Zt=r=>{r.hoverInteraction=r.eoxMap.selectInteractions.selectHover,r.clickInteraction=r.eoxMap.selectInteractions.selectClick;const t=()=>{r.requestUpdate()};r.hoverInteraction.selectStyleLayer.on("change",t),r.clickInteraction.selectStyleLayer.on("change",t)},Kt=(r,t,e)=>{if(r.clickId===t)return;const i=e?[]:[t];r.hoverInteraction.highlightById(i)},Qt=(r,t)=>{r.stopPropagation();const e=Number(r.target.getAttribute("index")),i=t.drawnFeatures[e];t.drawLayer.getSource().removeFeature(i),t.drawnFeatures.splice(e,1),t.requestUpdate()},yt={duration:750},ft={type:"FeatureCollection",features:[]},Xt=(r,t)=>{const e=r.get("id"),{clickId:i,drawLayer:s,olMap:n,clickInteraction:o}=t,c=i===e,a=r.getGeometry();if(c){const u=s.getSource().getExtent();n.getView().fit(u,yt),o.highlightById([])}else{const u=a.getExtent();o.highlightById([e]),n.getView().fit(u,yt)}t.requestUpdate()},Yt="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;}";class mt extends E{constructor(){super();C(this,"hoverInteraction");C(this,"clickInteraction");C(this,"hoverId");C(this,"clickId");this.eoxMap=null,this.olMap=null,this.draw=null,this.drawLayer=null,this.drawnFeatures=[],this.modify=null,this.unstyled=!1}_handleDelete(e){Qt(e,this),this.dispatchEvent(new CustomEvent("changed",{bubbles:!0}))}_handleFeatureSelectAndDeselect(e){Xt(e,this)}_handleHoverFeature(e,i=!1){Kt(this,e,i)}firstUpdated(){Zt(this)}createRenderRoot(){return this}render(){var e,i;return this.hoverId=(e=this.hoverInteraction)==null?void 0:e.selectedFids[0],this.clickId=(i=this.clickInteraction)==null?void 0:i.selectedFids[0],A`
31
+ */const Wt=Jt(class extends Tt{constructor(){super(...arguments),this.key=p}render(r,t){return this.key=r,t}update(r,[t,e]){return t!==this.key&&(Gt(r),this.key=t),e}}),Zt=r=>{r.hoverInteraction=r.eoxMap.selectInteractions.selectHover,r.clickInteraction=r.eoxMap.selectInteractions.selectClick;const t=()=>{r.requestUpdate()};r.hoverInteraction.selectStyleLayer.on("change",t),r.clickInteraction.selectStyleLayer.on("change",t)},Kt=(r,t,e)=>{if(r.clickId===t)return;const i=e?[]:[t];r.hoverInteraction.highlightById(i)},Qt=(r,t)=>{r.stopPropagation();const e=Number(r.target.getAttribute("index")),i=t.drawnFeatures[e];t.drawLayer.getSource().removeFeature(i),t.drawnFeatures.splice(e,1),t.requestUpdate()},gt={duration:750},ft={type:"FeatureCollection",features:[]},Xt=(r,t)=>{const e=r.get("id"),{clickId:i,drawLayer:s,olMap:n,clickInteraction:o}=t,c=i===e,a=r.getGeometry();if(c){const u=s.getSource().getExtent();n.getView().fit(u,gt),o.highlightById([])}else{const u=a.getExtent();o.highlightById([e]),n.getView().fit(u,gt)}t.requestUpdate()},Yt="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;}";class mt extends E{constructor(){super();C(this,"hoverInteraction");C(this,"clickInteraction");C(this,"hoverId");C(this,"clickId");this.eoxMap=null,this.olMap=null,this.draw=null,this.drawLayer=null,this.drawnFeatures=[],this.modify=null,this.unstyled=!1}_handleDelete(e){Qt(e,this),this.dispatchEvent(new CustomEvent("changed",{bubbles:!0}))}_handleFeatureSelectAndDeselect(e){Xt(e,this)}_handleHoverFeature(e,i=!1){Kt(this,e,i)}firstUpdated(){Zt(this)}createRenderRoot(){return this}render(){var e,i;return this.hoverId=(e=this.hoverInteraction)==null?void 0:e.selectedFids[0],this.clickId=(i=this.clickInteraction)==null?void 0:i.selectedFids[0],A`
32
32
  <style>
33
33
  ${!this.unstyled&&Yt}
34
34
  </style>
@@ -55,11 +55,11 @@
55
55
  </li>
56
56
  `)})}
57
57
  </ul>
58
- `}}C(mt,"properties",{eoxMap:{attribute:!1,state:!0},olMap:{attribute:!1,state:!0},draw:{attribute:!1,state:!0},drawLayer:{attribute:!1,state:!0},drawnFeatures:{attribute:!1,state:!0,type:Array},modify:{attribute:!1,state:!0},unstyled:{type:Boolean}}),customElements.define("eox-drawtools-list",mt);const te=r=>{const{multipleFeatures:t,drawnFeatures:e,currentlyDrawing:i}=r,s=!t&&(e==null?void 0:e.length)>0||i,n=!(e!=null&&e.length)&&!i;return{drawDisabled:s,discardDisabled:n}},ee="button,.button { display: inline-flex; position: relative; align-items: center; color: #fff; border-width: 0; outline: none; border-radius: 4px; padding: 16px; height: 36px; cursor: pointer; font-family: inherit; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 1.25px; font-weight: 500; box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12); transition-property: box-shadow, transform, opacity, background; transition-duration: 0.28s; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);}button:hover:not([disabled]):not(.icon),.button:hover:not([disabled]):not(.icon) { box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12); background: var(--primary-btn-color-hover);}button,button:active,.button,.button:active { background: var(--primary-color);}button[disabled],.button[disabled] { opacity: 0.5; cursor: not-allowed;}button.outline,.button.outline { background: transparent; box-shadow: none; color: var(--primary-color); outline: 1px solid var(--primary-color);}button.outline:hover,.button.outline:hover { background: transparent;}button.icon,.button.icon { background: transparent; border: none; box-shadow: none; padding: 0; border-radius: 50%; width: 24px; height: 24px; text-indent: -9999px;}button.icon-text,.button.icon-text { text-indent: 26px;}button.icon:before,button.icon-text:before,.button.icon:before,.button.icon-text:before { position: absolute; text-indent: 0; line-height: initial;}button.icon:before,.button.icon:before { width: 24px; height: 24px; margin-right: 0;}button.icon-text:before,.button.icon-text:before { width: 18px; height: 18px;}button.small,.button.small { height: 28px; padding: 12.4px; font-size: 0.75rem;}button.smallest.icon,button.smallest.icon::before { height: 16px; width: 16px; padding: 0px;}",ie="textarea { height: 90px; resize: none; border-radius: 4px; box-sizing: border-box !important; width: 100%; padding: 5px 7px; border: 1px solid var(--secondary-color); font-size: smaller; background: var(--background-color);}";function re(r){navigator.clipboard.writeText(r).then(function(){},function(t){console.error("Could not copy text: ",t)})}/**
58
+ `}}C(mt,"properties",{eoxMap:{attribute:!1,state:!0},olMap:{attribute:!1,state:!0},draw:{attribute:!1,state:!0},drawLayer:{attribute:!1,state:!0},drawnFeatures:{attribute:!1,state:!0,type:Array},modify:{attribute:!1,state:!0},unstyled:{type:Boolean}}),customElements.define("eox-drawtools-list",mt);const te=r=>{const{multipleFeatures:t,drawnFeatures:e,currentlyDrawing:i}=r,s=!t&&(e==null?void 0:e.length)>0||i,n=!(e!=null&&e.length)&&!i;return{drawDisabled:s,discardDisabled:n}},ee='button,.button { display: inline-flex; position: relative; align-items: center; color: #fff; border-width: 0; outline: none; border-radius: 4px; padding: 16px; height: 36px; cursor: pointer; font-family: inherit; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 1.25px; font-weight: 500; box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12); transition-property: box-shadow, transform, opacity, background; transition-duration: 0.28s; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);}button:hover:not([disabled]):not(.icon):not(.json-editor-btntype-*),.button:hover:not([disabled]):not(.icon) { box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12); background: var(--primary-btn-color-hover);}button,button:active,.button,.button:active { background: var(--primary-color);}button[disabled],.button[disabled] { opacity: 0.5; cursor: not-allowed;}button.block,.button.block { display: block;}button.outline,.button.outline { background: transparent; box-shadow: none; color: var(--primary-color); outline: 1px solid var(--primary-color);}button.outline:hover,.button.outline:hover { background: transparent;}button.icon,.button.icon,button[class*="json-editor-btntype-"] { background: transparent; border: none; box-shadow: none; padding: 0; border-radius: 50%; width: 24px; height: 24px; text-indent: -9999px;}button.icon-text,.button.icon-text { text-indent: 26px;}button.icon-text.block,.button.icon-text.block { text-indent: 20px;}button.icon:before,button.icon-text:before,.button.icon:before,.button.icon-text:before { position: absolute; text-indent: 0; line-height: initial;}button.icon-text.block:before,.button.icon-text.block:before { text-indent: -54px;}button.icon:before,.button.icon:before,button[class*="json-editor-btntype-"]::before { width: 24px; height: 24px; margin-right: 0;}button.icon-text:before,.button.icon-text:before { width: 18px; height: 18px;}button.small,.button.small { height: 28px; padding: 12.4px; font-size: 0.75rem;}button.smallest.icon,button.smallest.icon::before { height: 16px; width: 16px; padding: 0;}',ie='textarea { height: 90px; resize: none; border-radius: 4px; box-sizing: border-box !important; width: 100%; padding: 5px 7px; border: 1px solid var(--secondary-color); font-size: smaller; background: var(--background-color);}input[type="text"],input[type="url"],input[type="email"],input[type="password"],input[type="text"],input[type="number"],input[type="search"],input[type="tel"],select { box-sizing: border-box; width: 100%; margin-top: 0.5rem; margin-bottom: 0.5rem; padding: 5px 7px; border-radius: 4px; border: 1px solid #0004;}';function re(r){navigator.clipboard.writeText(r).then(function(){},function(t){console.error("Could not copy text: ",t)})}/**
59
59
  * @license
60
60
  * Copyright 2021 Google LLC
61
61
  * SPDX-License-Identifier: BSD-3-Clause
62
- */function $t(r,t,e){return r?t(r):e==null?void 0:e(r)}class bt extends E{constructor(){super();k(this,D,!0);k(this,z,!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}=te(this);U(this,D,e),U(this,z,i)}createRenderRoot(){return this}render(){this.updateButtonStates();const e=this.currentlyDrawing?"drawing":"draw";return A`
62
+ */function bt(r,t,e){return r?t(r):e==null?void 0:e(r)}class $t extends E{constructor(){super();M(this,z,!0);M(this,D,!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}=te(this);U(this,z,e),U(this,D,i)}createRenderRoot(){return this}render(){this.updateButtonStates();const e=this.currentlyDrawing?"drawing":"draw";return A`
63
63
  <style>
64
64
  ${!this.unstyled&&ee}
65
65
  ${!this.unstyled&&ie}
@@ -71,7 +71,7 @@
71
71
  <button
72
72
  data-cy="drawBtn"
73
73
  class="polygon icon"
74
- ?disabled="${m(this,D)||p}"
74
+ ?disabled="${m(this,z)||p}"
75
75
  @click="${()=>this.drawFunc.start()}"
76
76
  >
77
77
  ${e}
@@ -81,7 +81,7 @@
81
81
  <button
82
82
  data-cy="discardBtn"
83
83
  class="discard icon"
84
- ?disabled="${m(this,z)||p}"
84
+ ?disabled="${m(this,D)||p}"
85
85
  @click="${()=>this.drawFunc.discard()}"
86
86
  >
87
87
  discard
@@ -89,7 +89,7 @@
89
89
  </div>
90
90
 
91
91
  <!-- Import Button -->
92
- ${$t(this.importFeatures,()=>A`
92
+ ${bt(this.importFeatures,()=>A`
93
93
  <!-- Import Input Field : Hidden -->
94
94
  <input
95
95
  type="file"
@@ -110,7 +110,7 @@
110
110
  </div>
111
111
 
112
112
  <!-- Geo JSON Wrapper -->
113
- ${$t(this.showEditor,()=>A`
113
+ ${bt(this.showEditor,()=>A`
114
114
  <div class="json-wrapper">
115
115
  <!-- Geo JSON Editor -->
116
116
  <textarea
@@ -129,7 +129,7 @@
129
129
  </button>
130
130
  </div>
131
131
  `)}
132
- `}}D=new WeakMap,z=new WeakMap,C(bt,"properties",{multipleFeatures:{attribute:!1,type:Boolean},drawnFeatures:{attribute:!1,state:!0,type:Array},currentlyDrawing:{attribute:!1,state:!0,type:Boolean},drawFunc:{attribute:!1,type:Object},importFeatures:{attribute:"import-features",type:Boolean},showEditor:{attribute:"show-editor",type:Boolean},geoJSON:{attribute:"geo-json",type:String},unstyled:{type:Boolean}}),customElements.define("eox-drawtools-controller",bt);const se=`
132
+ `}}z=new WeakMap,D=new WeakMap,C($t,"properties",{multipleFeatures:{attribute:!1,type:Boolean},drawnFeatures:{attribute:!1,state:!0,type:Array},currentlyDrawing:{attribute:!1,state:!0,type:Boolean},drawFunc:{attribute:!1,type:Object},importFeatures:{attribute:"import-features",type:Boolean},showEditor:{attribute:"show-editor",type:Boolean},geoJSON:{attribute:"geo-json",type:String},unstyled:{type:Boolean}}),customElements.define("eox-drawtools-controller",$t);const se=`
133
133
  button.discard:before {
134
134
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23FF5252' viewBox='0 0 24 24'%3E%3Ctitle%3Etrash-can-outline%3C/title%3E%3Cpath d='M9,3V4H4V6H5V19A2,2 0 0,0 7,21H17A2,2 0 0,0 19,19V6H20V4H15V3H9M7,6H17V19H7V6M9,8V17H11V8H9M13,8V17H15V8H13Z' /%3E%3C/svg%3E")
135
135
  }
@@ -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
- `,ne=r=>{(()=>{r.emitDrawnFeatures(),r.multipleFeatures||(r.draw.setActive(!1),r.currentlyDrawing=!1)})(),r.requestUpdate()},oe=r=>{const t=()=>{r.drawLayer.set("isDrawingEnabled",!0),r.draw.setActive(!0)},e=()=>{r.currentlyDrawing=!0,r.requestUpdate()};t(),e()},ae=(r,t)=>{var n;const i=document.querySelector(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",()=>ne(r)),{EoxMap:i,OlMap:s}},le=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()},ce=(r,t)=>{setTimeout(()=>{r.drawnFeatures=r.drawLayer.getSource().getFeatures(),r.updateGeoJSON(),r.requestUpdate(),t()},0)},he=':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-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-weight: 400; line-height: 170%; margin-top: 0.8rem; margin-bottom: 1.6rem;}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 de(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=>vt(n,r),!1)}function pe(r){r.preventDefault(),r.stopPropagation()}function vt(r,t){pe(r);const e=r.dataTransfer?r.dataTransfer.files:r.target.files;Array.from(e).forEach(i=>ue(i,t))}function ue(r,t){const e=new FileReader;e.readAsText(r),e.onloadend=function(){typeof e.result=="string"&&t.handleFeatureChange(e.result)}}class wt extends E{constructor(){super();k(this,v,void 0);k(this,j,void 0);k(this,J,void 0);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(){oe(this)}handleDiscardDrawing(){le(this)}handleFeatureChange(e,i=!1){m(this,v).parseTextToFeature(e||JSON.stringify(ft),this.drawLayer,i)}handleFilesChange(e){vt(e,this)}onModifyEnd(){this.emitDrawnFeatures()}updateGeoJSON(){U(this,J,JSON.stringify(m(this,v).parseFeature(this.drawnFeatures)||ft,void 0,2))}emitDrawnFeatures(){ce(this,()=>{this.dispatchEvent(new CustomEvent("drawupdate",{detail:this.drawnFeatures}))})}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}firstUpdated(){const{EoxMap:e,OlMap:i}=ae(this,this.multipleFeatures);U(this,v,e),U(this,j,i),this.importFeatures&&de(this,m(this,v)),this.updateGeoJSON(),this.requestUpdate()}render(){var e;return A`
174
+ `,ne=r=>{(()=>{r.emitDrawnFeatures(),r.multipleFeatures||(r.draw.setActive(!1),r.currentlyDrawing=!1)})(),r.requestUpdate()},oe=r=>{const t=()=>{r.drawLayer.set("isDrawingEnabled",!0),r.draw.setActive(!0)},e=()=>{r.currentlyDrawing=!0,r.requestUpdate()};t(),e()},ae=(r,t)=>{var n;const i=document.querySelector(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",()=>ne(r)),{EoxMap:i,OlMap:s}},le=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()},ce=(r,t)=>{setTimeout(()=>{r.drawnFeatures=r.drawLayer.getSource().getFeatures(),r.updateGeoJSON(),r.requestUpdate(),t()},0)},he=':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 de(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=>vt(n,r),!1)}function pe(r){r.preventDefault(),r.stopPropagation()}function vt(r,t){pe(r);const e=r.dataTransfer?r.dataTransfer.files:r.target.files;Array.from(e).forEach(i=>ue(i,t))}function ue(r,t){const e=new FileReader;e.readAsText(r),e.onloadend=function(){typeof e.result=="string"&&t.handleFeatureChange(e.result)}}class wt extends E{constructor(){super();M(this,v,void 0);M(this,j,void 0);M(this,J,void 0);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(){oe(this)}handleDiscardDrawing(){le(this)}handleFeatureChange(e,i=!1){m(this,v).parseTextToFeature(e||JSON.stringify(ft),this.drawLayer,i)}handleFilesChange(e){vt(e,this)}onModifyEnd(){this.emitDrawnFeatures()}updateGeoJSON(){U(this,J,JSON.stringify(m(this,v).parseFeature(this.drawnFeatures)||ft,void 0,2))}emitDrawnFeatures(){ce(this,()=>{this.dispatchEvent(new CustomEvent("drawupdate",{detail:this.drawnFeatures}))})}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}firstUpdated(){const{EoxMap:e,OlMap:i}=ae(this,this.multipleFeatures);U(this,v,e),U(this,j,i),this.importFeatures&&de(this,m(this,v)),this.updateGeoJSON(),this.requestUpdate()}render(){var e;return A`
175
175
  <style>
176
176
  :host { display: block; }
177
177
  ${!this.unstyled&&he}
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@eox/drawtools",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
4
4
  "type": "module",
5
5
  "devDependencies": {
6
6
  "@eox/eslint-config": "^1.0.0",
7
7
  "@typescript-eslint/eslint-plugin": "^7.0.1",
8
8
  "@typescript-eslint/parser": "^7.0.1",
9
9
  "eslint-plugin-typescript": "^0.14.0",
10
- "ol": "^8.1.0",
10
+ "ol": "^9.0.0",
11
11
  "typescript": "^5.2.2",
12
12
  "vite": "^5.0.2"
13
13
  },