@eox/drawtools 0.13.4 → 0.13.5

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,27 +1,27 @@
1
- var mn = Object.defineProperty;
2
- var Ue = (n) => {
1
+ var _n = Object.defineProperty;
2
+ var je = (n) => {
3
3
  throw TypeError(n);
4
4
  };
5
- var _n = (n, t, e) => t in n ? mn(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
6
- var I = (n, t, e) => _n(n, typeof t != "symbol" ? t + "" : t, e), je = (n, t, e) => t.has(n) || Ue("Cannot " + e);
7
- var $ = (n, t, e) => (je(n, t, "read from private field"), e ? e.call(n) : t.get(n)), L = (n, t, e) => t.has(n) ? Ue("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(n) : t.set(n, e), A = (n, t, e, i) => (je(n, t, "write to private field"), i ? i.call(n, e) : t.set(n, e), e);
5
+ var vn = (n, t, e) => t in n ? _n(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
6
+ var R = (n, t, e) => vn(n, typeof t != "symbol" ? t + "" : t, e), Xe = (n, t, e) => t.has(n) || je("Cannot " + e);
7
+ var M = (n, t, e) => (Xe(n, t, "read from private field"), e ? e.call(n) : t.get(n)), F = (n, t, e) => t.has(n) ? je("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(n) : t.set(n, e), $ = (n, t, e, i) => (Xe(n, t, "write to private field"), i ? i.call(n, e) : t.set(n, e), e);
8
8
  /**
9
9
  * @license
10
10
  * Copyright 2019 Google LLC
11
11
  * SPDX-License-Identifier: BSD-3-Clause
12
12
  */
13
- const Tt = globalThis, ge = Tt.ShadowRoot && (Tt.ShadyCSS === void 0 || Tt.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, wi = Symbol(), Xe = /* @__PURE__ */ new WeakMap();
14
- let vn = class {
13
+ const It = globalThis, fe = It.ShadowRoot && (It.ShadyCSS === void 0 || It.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, bi = Symbol(), Ye = /* @__PURE__ */ new WeakMap();
14
+ let Cn = class {
15
15
  constructor(t, e, i) {
16
- if (this._$cssResult$ = !0, i !== wi) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
16
+ if (this._$cssResult$ = !0, i !== bi) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
17
17
  this.cssText = t, this.t = e;
18
18
  }
19
19
  get styleSheet() {
20
20
  let t = this.o;
21
21
  const e = this.t;
22
- if (ge && t === void 0) {
22
+ if (fe && t === void 0) {
23
23
  const i = e !== void 0 && e.length === 1;
24
- i && (t = Xe.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), i && Xe.set(e, t));
24
+ i && (t = Ye.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), i && Ye.set(e, t));
25
25
  }
26
26
  return t;
27
27
  }
@@ -29,26 +29,26 @@ let vn = class {
29
29
  return this.cssText;
30
30
  }
31
31
  };
32
- const Cn = (n) => new vn(typeof n == "string" ? n : n + "", void 0, wi), wn = (n, t) => {
33
- if (ge) n.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
32
+ const wn = (n) => new Cn(typeof n == "string" ? n : n + "", void 0, bi), bn = (n, t) => {
33
+ if (fe) n.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
34
34
  else for (const e of t) {
35
- const i = document.createElement("style"), r = Tt.litNonce;
35
+ const i = document.createElement("style"), r = It.litNonce;
36
36
  r !== void 0 && i.setAttribute("nonce", r), i.textContent = e.cssText, n.appendChild(i);
37
37
  }
38
- }, Ye = ge ? (n) => n : (n) => n instanceof CSSStyleSheet ? ((t) => {
38
+ }, Be = fe ? (n) => n : (n) => n instanceof CSSStyleSheet ? ((t) => {
39
39
  let e = "";
40
40
  for (const i of t.cssRules) e += i.cssText;
41
- return Cn(e);
41
+ return wn(e);
42
42
  })(n) : n;
43
43
  /**
44
44
  * @license
45
45
  * Copyright 2017 Google LLC
46
46
  * SPDX-License-Identifier: BSD-3-Clause
47
47
  */
48
- const { is: bn, defineProperty: En, getOwnPropertyDescriptor: xn, getOwnPropertyNames: Pn, getOwnPropertySymbols: Mn, getPrototypeOf: $n } = Object, G = globalThis, Be = G.trustedTypes, Sn = Be ? Be.emptyScript : "", Zt = G.reactiveElementPolyfillSupport, dt = (n, t) => n, re = { toAttribute(n, t) {
48
+ const { is: En, defineProperty: xn, getOwnPropertyDescriptor: Pn, getOwnPropertyNames: Mn, getOwnPropertySymbols: Sn, getPrototypeOf: $n } = Object, L = globalThis, Ve = L.trustedTypes, An = Ve ? Ve.emptyScript : "", Dt = L.reactiveElementPolyfillSupport, dt = (n, t) => n, se = { toAttribute(n, t) {
49
49
  switch (t) {
50
50
  case Boolean:
51
- n = n ? Sn : null;
51
+ n = n ? An : null;
52
52
  break;
53
53
  case Object:
54
54
  case Array:
@@ -73,8 +73,8 @@ const { is: bn, defineProperty: En, getOwnPropertyDescriptor: xn, getOwnProperty
73
73
  }
74
74
  }
75
75
  return e;
76
- } }, bi = (n, t) => !bn(n, t), Ve = { attribute: !0, type: String, converter: re, reflect: !1, hasChanged: bi };
77
- Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), G.litPropertyMetadata ?? (G.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
76
+ } }, Ei = (n, t) => !En(n, t), ze = { attribute: !0, type: String, converter: se, reflect: !1, hasChanged: Ei };
77
+ Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), L.litPropertyMetadata ?? (L.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
78
78
  class tt extends HTMLElement {
79
79
  static addInitializer(t) {
80
80
  this._$Ei(), (this.l ?? (this.l = [])).push(t);
@@ -82,14 +82,14 @@ class tt extends HTMLElement {
82
82
  static get observedAttributes() {
83
83
  return this.finalize(), this._$Eh && [...this._$Eh.keys()];
84
84
  }
85
- static createProperty(t, e = Ve) {
85
+ static createProperty(t, e = ze) {
86
86
  if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
87
87
  const i = Symbol(), r = this.getPropertyDescriptor(t, i, e);
88
- r !== void 0 && En(this.prototype, t, r);
88
+ r !== void 0 && xn(this.prototype, t, r);
89
89
  }
90
90
  }
91
91
  static getPropertyDescriptor(t, e, i) {
92
- const { get: r, set: s } = xn(this.prototype, t) ?? { get() {
92
+ const { get: r, set: s } = Pn(this.prototype, t) ?? { get() {
93
93
  return this[e];
94
94
  }, set(o) {
95
95
  this[e] = o;
@@ -102,7 +102,7 @@ class tt extends HTMLElement {
102
102
  }, configurable: !0, enumerable: !0 };
103
103
  }
104
104
  static getPropertyOptions(t) {
105
- return this.elementProperties.get(t) ?? Ve;
105
+ return this.elementProperties.get(t) ?? ze;
106
106
  }
107
107
  static _$Ei() {
108
108
  if (this.hasOwnProperty(dt("elementProperties"))) return;
@@ -112,7 +112,7 @@ class tt extends HTMLElement {
112
112
  static finalize() {
113
113
  if (this.hasOwnProperty(dt("finalized"))) return;
114
114
  if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(dt("properties"))) {
115
- const e = this.properties, i = [...Pn(e), ...Mn(e)];
115
+ const e = this.properties, i = [...Mn(e), ...Sn(e)];
116
116
  for (const r of i) this.createProperty(r, e[r]);
117
117
  }
118
118
  const t = this[Symbol.metadata];
@@ -131,8 +131,8 @@ class tt extends HTMLElement {
131
131
  const e = [];
132
132
  if (Array.isArray(t)) {
133
133
  const i = new Set(t.flat(1 / 0).reverse());
134
- for (const r of i) e.unshift(Ye(r));
135
- } else t !== void 0 && e.push(Ye(t));
134
+ for (const r of i) e.unshift(Be(r));
135
+ } else t !== void 0 && e.push(Be(t));
136
136
  return e;
137
137
  }
138
138
  static _$Eu(t, e) {
@@ -161,7 +161,7 @@ class tt extends HTMLElement {
161
161
  }
162
162
  createRenderRoot() {
163
163
  const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
164
- return wn(t, this.constructor.elementStyles), t;
164
+ return bn(t, this.constructor.elementStyles), t;
165
165
  }
166
166
  connectedCallback() {
167
167
  var t;
@@ -186,7 +186,7 @@ class tt extends HTMLElement {
186
186
  var s;
187
187
  const i = this.constructor.elementProperties.get(t), r = this.constructor._$Eu(t, i);
188
188
  if (r !== void 0 && i.reflect === !0) {
189
- const o = (((s = i.converter) == null ? void 0 : s.toAttribute) !== void 0 ? i.converter : re).toAttribute(e, i.type);
189
+ const o = (((s = i.converter) == null ? void 0 : s.toAttribute) !== void 0 ? i.converter : se).toAttribute(e, i.type);
190
190
  this._$Em = t, o == null ? this.removeAttribute(r) : this.setAttribute(r, o), this._$Em = null;
191
191
  }
192
192
  }
@@ -194,13 +194,13 @@ class tt extends HTMLElement {
194
194
  var s;
195
195
  const i = this.constructor, r = i._$Eh.get(t);
196
196
  if (r !== void 0 && this._$Em !== r) {
197
- const o = i.getPropertyOptions(r), a = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((s = o.converter) == null ? void 0 : s.fromAttribute) !== void 0 ? o.converter : re;
197
+ const o = i.getPropertyOptions(r), a = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((s = o.converter) == null ? void 0 : s.fromAttribute) !== void 0 ? o.converter : se;
198
198
  this._$Em = r, this[r] = a.fromAttribute(e, o.type), this._$Em = null;
199
199
  }
200
200
  }
201
201
  requestUpdate(t, e, i) {
202
202
  if (t !== void 0) {
203
- if (i ?? (i = this.constructor.getPropertyOptions(t)), !(i.hasChanged ?? bi)(this[t], e)) return;
203
+ if (i ?? (i = this.constructor.getPropertyOptions(t)), !(i.hasChanged ?? Ei)(this[t], e)) return;
204
204
  this.P(t, e, i);
205
205
  }
206
206
  this.isUpdatePending === !1 && (this._$ES = this._$ET());
@@ -273,59 +273,59 @@ class tt extends HTMLElement {
273
273
  firstUpdated(t) {
274
274
  }
275
275
  }
276
- tt.elementStyles = [], tt.shadowRootOptions = { mode: "open" }, tt[dt("elementProperties")] = /* @__PURE__ */ new Map(), tt[dt("finalized")] = /* @__PURE__ */ new Map(), Zt == null || Zt({ ReactiveElement: tt }), (G.reactiveElementVersions ?? (G.reactiveElementVersions = [])).push("2.0.4");
276
+ tt.elementStyles = [], tt.shadowRootOptions = { mode: "open" }, tt[dt("elementProperties")] = /* @__PURE__ */ new Map(), tt[dt("finalized")] = /* @__PURE__ */ new Map(), Dt == null || Dt({ ReactiveElement: tt }), (L.reactiveElementVersions ?? (L.reactiveElementVersions = [])).push("2.0.4");
277
277
  /**
278
278
  * @license
279
279
  * Copyright 2017 Google LLC
280
280
  * SPDX-License-Identifier: BSD-3-Clause
281
281
  */
282
- const gt = globalThis, Lt = gt.trustedTypes, ze = Lt ? Lt.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, Ei = "$lit$", F = `lit$${Math.random().toFixed(9).slice(2)}$`, xi = "?" + F, An = `<${xi}>`, Y = document, ft = () => Y.createComment(""), pt = (n) => n === null || typeof n != "object" && typeof n != "function", fe = Array.isArray, Fn = (n) => fe(n) || typeof (n == null ? void 0 : n[Symbol.iterator]) == "function", Kt = `[
283
- \f\r]`, ut = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Je = /-->/g, We = />/g, R = RegExp(`>|${Kt}(?:([^\\s"'>=/]+)(${Kt}*=${Kt}*(?:[^
284
- \f\r"'\`<>=]|("|')|))|$)`, "g"), De = /'/g, qe = /"/g, Pi = /^(?:script|style|textarea|title)$/i, Gn = (n) => (t, ...e) => ({ _$litType$: n, strings: t, values: e }), U = Gn(1), ot = Symbol.for("lit-noChange"), C = Symbol.for("lit-nothing"), Ze = /* @__PURE__ */ new WeakMap(), O = Y.createTreeWalker(Y, 129);
285
- function Mi(n, t) {
286
- if (!fe(n) || !n.hasOwnProperty("raw")) throw Error("invalid template strings array");
287
- return ze !== void 0 ? ze.createHTML(t) : t;
288
- }
289
- const Tn = (n, t) => {
282
+ const gt = globalThis, Tt = gt.trustedTypes, Je = Tt ? Tt.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, xi = "$lit$", G = `lit$${Math.random().toFixed(9).slice(2)}$`, Pi = "?" + G, Fn = `<${Pi}>`, Y = document, ft = () => Y.createComment(""), pt = (n) => n === null || typeof n != "object" && typeof n != "function", pe = Array.isArray, Gn = (n) => pe(n) || typeof (n == null ? void 0 : n[Symbol.iterator]) == "function", Qt = `[
283
+ \f\r]`, ut = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, We = /-->/g, qe = />/g, T = RegExp(`>|${Qt}(?:([^\\s"'>=/]+)(${Qt}*=${Qt}*(?:[^
284
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), Ze = /'/g, Ke = /"/g, Mi = /^(?:script|style|textarea|title)$/i, Ln = (n) => (t, ...e) => ({ _$litType$: n, strings: t, values: e }), U = Ln(1), ot = Symbol.for("lit-noChange"), C = Symbol.for("lit-nothing"), De = /* @__PURE__ */ new WeakMap(), O = Y.createTreeWalker(Y, 129);
285
+ function Si(n, t) {
286
+ if (!pe(n) || !n.hasOwnProperty("raw")) throw Error("invalid template strings array");
287
+ return Je !== void 0 ? Je.createHTML(t) : t;
288
+ }
289
+ const In = (n, t) => {
290
290
  const e = n.length - 1, i = [];
291
291
  let r, s = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = ut;
292
292
  for (let a = 0; a < e; a++) {
293
293
  const l = n[a];
294
294
  let h, c, u = -1, d = 0;
295
- for (; d < l.length && (o.lastIndex = d, c = o.exec(l), c !== null); ) d = o.lastIndex, o === ut ? c[1] === "!--" ? o = Je : c[1] !== void 0 ? o = We : c[2] !== void 0 ? (Pi.test(c[2]) && (r = RegExp("</" + c[2], "g")), o = R) : c[3] !== void 0 && (o = R) : o === R ? c[0] === ">" ? (o = r ?? ut, u = -1) : c[1] === void 0 ? u = -2 : (u = o.lastIndex - c[2].length, h = c[1], o = c[3] === void 0 ? R : c[3] === '"' ? qe : De) : o === qe || o === De ? o = R : o === Je || o === We ? o = ut : (o = R, r = void 0);
296
- const g = o === R && n[a + 1].startsWith("/>") ? " " : "";
297
- s += o === ut ? l + An : u >= 0 ? (i.push(h), l.slice(0, u) + Ei + l.slice(u) + F + g) : l + F + (u === -2 ? a : g);
295
+ for (; d < l.length && (o.lastIndex = d, c = o.exec(l), c !== null); ) d = o.lastIndex, o === ut ? c[1] === "!--" ? o = We : c[1] !== void 0 ? o = qe : c[2] !== void 0 ? (Mi.test(c[2]) && (r = RegExp("</" + c[2], "g")), o = T) : c[3] !== void 0 && (o = T) : o === T ? c[0] === ">" ? (o = r ?? ut, u = -1) : c[1] === void 0 ? u = -2 : (u = o.lastIndex - c[2].length, h = c[1], o = c[3] === void 0 ? T : c[3] === '"' ? Ke : Ze) : o === Ke || o === Ze ? o = T : o === We || o === qe ? o = ut : (o = T, r = void 0);
296
+ const g = o === T && n[a + 1].startsWith("/>") ? " " : "";
297
+ s += o === ut ? l + Fn : u >= 0 ? (i.push(h), l.slice(0, u) + xi + l.slice(u) + G + g) : l + G + (u === -2 ? a : g);
298
298
  }
299
- return [Mi(n, s + (n[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), i];
299
+ return [Si(n, s + (n[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), i];
300
300
  };
301
301
  class yt {
302
302
  constructor({ strings: t, _$litType$: e }, i) {
303
303
  let r;
304
304
  this.parts = [];
305
305
  let s = 0, o = 0;
306
- const a = t.length - 1, l = this.parts, [h, c] = Tn(t, e);
306
+ const a = t.length - 1, l = this.parts, [h, c] = In(t, e);
307
307
  if (this.el = yt.createElement(h, i), O.currentNode = this.el.content, e === 2 || e === 3) {
308
308
  const u = this.el.content.firstChild;
309
309
  u.replaceWith(...u.childNodes);
310
310
  }
311
311
  for (; (r = O.nextNode()) !== null && l.length < a; ) {
312
312
  if (r.nodeType === 1) {
313
- if (r.hasAttributes()) for (const u of r.getAttributeNames()) if (u.endsWith(Ei)) {
314
- const d = c[o++], g = r.getAttribute(u).split(F), f = /([.?@])?(.*)/.exec(d);
315
- l.push({ type: 1, index: s, name: f[2], strings: g, ctor: f[1] === "." ? Ln : f[1] === "?" ? Rn : f[1] === "@" ? Nn : jt }), r.removeAttribute(u);
316
- } else u.startsWith(F) && (l.push({ type: 6, index: s }), r.removeAttribute(u));
317
- if (Pi.test(r.tagName)) {
318
- const u = r.textContent.split(F), d = u.length - 1;
313
+ if (r.hasAttributes()) for (const u of r.getAttributeNames()) if (u.endsWith(xi)) {
314
+ const d = c[o++], g = r.getAttribute(u).split(G), f = /([.?@])?(.*)/.exec(d);
315
+ l.push({ type: 1, index: s, name: f[2], strings: g, ctor: f[1] === "." ? Tn : f[1] === "?" ? Nn : f[1] === "@" ? On : Xt }), r.removeAttribute(u);
316
+ } else u.startsWith(G) && (l.push({ type: 6, index: s }), r.removeAttribute(u));
317
+ if (Mi.test(r.tagName)) {
318
+ const u = r.textContent.split(G), d = u.length - 1;
319
319
  if (d > 0) {
320
- r.textContent = Lt ? Lt.emptyScript : "";
320
+ r.textContent = Tt ? Tt.emptyScript : "";
321
321
  for (let g = 0; g < d; g++) r.append(u[g], ft()), O.nextNode(), l.push({ type: 2, index: ++s });
322
322
  r.append(u[d], ft());
323
323
  }
324
324
  }
325
- } else if (r.nodeType === 8) if (r.data === xi) l.push({ type: 2, index: s });
325
+ } else if (r.nodeType === 8) if (r.data === Pi) l.push({ type: 2, index: s });
326
326
  else {
327
327
  let u = -1;
328
- for (; (u = r.data.indexOf(F, u + 1)) !== -1; ) l.push({ type: 7, index: s }), u += F.length - 1;
328
+ for (; (u = r.data.indexOf(G, u + 1)) !== -1; ) l.push({ type: 7, index: s }), u += G.length - 1;
329
329
  }
330
330
  s++;
331
331
  }
@@ -342,7 +342,7 @@ function at(n, t, e = n, i) {
342
342
  const s = pt(t) ? void 0 : t._$litDirective$;
343
343
  return (r == null ? void 0 : r.constructor) !== s && ((a = r == null ? void 0 : r._$AO) == null || a.call(r, !1), s === void 0 ? r = void 0 : (r = new s(n), r._$AT(n, e, i)), i !== void 0 ? (e._$Co ?? (e._$Co = []))[i] = r : e._$Cl = r), r !== void 0 && (t = at(n, r._$AS(n, t.values), r, i)), t;
344
344
  }
345
- let In = class {
345
+ let Rn = class {
346
346
  constructor(t, e) {
347
347
  this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
348
348
  }
@@ -359,7 +359,7 @@ let In = class {
359
359
  for (; l !== void 0; ) {
360
360
  if (o === l.index) {
361
361
  let h;
362
- l.type === 2 ? h = new pe(s, s.nextSibling, this, t) : l.type === 1 ? h = new l.ctor(s, l.name, l.strings, this, t) : l.type === 6 && (h = new On(s, this, t)), this._$AV.push(h), l = i[++a];
362
+ l.type === 2 ? h = new ye(s, s.nextSibling, this, t) : l.type === 1 ? h = new l.ctor(s, l.name, l.strings, this, t) : l.type === 6 && (h = new kn(s, this, t)), this._$AV.push(h), l = i[++a];
363
363
  }
364
364
  o !== (l == null ? void 0 : l.index) && (s = O.nextNode(), o++);
365
365
  }
@@ -369,7 +369,7 @@ let In = class {
369
369
  let e = 0;
370
370
  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++;
371
371
  }
372
- }, pe = class $i {
372
+ }, ye = class $i {
373
373
  get _$AU() {
374
374
  var t;
375
375
  return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
@@ -389,7 +389,7 @@ let In = class {
389
389
  return this._$AB;
390
390
  }
391
391
  _$AI(t, e = this) {
392
- t = at(this, t, e), pt(t) ? t === C || t == null || t === "" ? (this._$AH !== C && this._$AR(), this._$AH = C) : t !== this._$AH && t !== ot && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Fn(t) ? this.k(t) : this._(t);
392
+ t = at(this, t, e), pt(t) ? t === C || t == null || t === "" ? (this._$AH !== C && this._$AR(), this._$AH = C) : t !== this._$AH && t !== ot && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Gn(t) ? this.k(t) : this._(t);
393
393
  }
394
394
  O(t) {
395
395
  return this._$AA.parentNode.insertBefore(t, this._$AB);
@@ -402,19 +402,19 @@ let In = class {
402
402
  }
403
403
  $(t) {
404
404
  var s;
405
- const { values: e, _$litType$: i } = t, r = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = yt.createElement(Mi(i.h, i.h[0]), this.options)), i);
405
+ const { values: e, _$litType$: i } = t, r = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = yt.createElement(Si(i.h, i.h[0]), this.options)), i);
406
406
  if (((s = this._$AH) == null ? void 0 : s._$AD) === r) this._$AH.p(e);
407
407
  else {
408
- const o = new In(r, this), a = o.u(this.options);
408
+ const o = new Rn(r, this), a = o.u(this.options);
409
409
  o.p(e), this.T(a), this._$AH = o;
410
410
  }
411
411
  }
412
412
  _$AC(t) {
413
- let e = Ze.get(t.strings);
414
- return e === void 0 && Ze.set(t.strings, e = new yt(t)), e;
413
+ let e = De.get(t.strings);
414
+ return e === void 0 && De.set(t.strings, e = new yt(t)), e;
415
415
  }
416
416
  k(t) {
417
- fe(this._$AH) || (this._$AH = [], this._$AR());
417
+ pe(this._$AH) || (this._$AH = [], this._$AR());
418
418
  const e = this._$AH;
419
419
  let i, r = 0;
420
420
  for (const s of t) r === e.length ? e.push(i = new $i(this.O(ft()), this.O(ft()), this, this.options)) : i = e[r], i._$AI(s), r++;
@@ -432,7 +432,7 @@ let In = class {
432
432
  this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
433
433
  }
434
434
  };
435
- class jt {
435
+ class Xt {
436
436
  get tagName() {
437
437
  return this.element.tagName;
438
438
  }
@@ -457,7 +457,7 @@ class jt {
457
457
  t === C ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
458
458
  }
459
459
  }
460
- class Ln extends jt {
460
+ class Tn extends Xt {
461
461
  constructor() {
462
462
  super(...arguments), this.type = 3;
463
463
  }
@@ -465,7 +465,7 @@ class Ln extends jt {
465
465
  this.element[this.name] = t === C ? void 0 : t;
466
466
  }
467
467
  }
468
- class Rn extends jt {
468
+ class Nn extends Xt {
469
469
  constructor() {
470
470
  super(...arguments), this.type = 4;
471
471
  }
@@ -473,7 +473,7 @@ class Rn extends jt {
473
473
  this.element.toggleAttribute(this.name, !!t && t !== C);
474
474
  }
475
475
  }
476
- class Nn extends jt {
476
+ class On extends Xt {
477
477
  constructor(t, e, i, r, s) {
478
478
  super(t, e, i, r, s), this.type = 5;
479
479
  }
@@ -487,7 +487,7 @@ class Nn extends jt {
487
487
  typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, t) : this._$AH.handleEvent(t);
488
488
  }
489
489
  }
490
- class On {
490
+ class kn {
491
491
  constructor(t, e, i) {
492
492
  this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = i;
493
493
  }
@@ -498,14 +498,14 @@ class On {
498
498
  at(this, t);
499
499
  }
500
500
  }
501
- const Qt = gt.litHtmlPolyfillSupport;
502
- Qt == null || Qt(yt, pe), (gt.litHtmlVersions ?? (gt.litHtmlVersions = [])).push("3.2.1");
503
- const kn = (n, t, e) => {
501
+ const te = gt.litHtmlPolyfillSupport;
502
+ te == null || te(yt, ye), (gt.litHtmlVersions ?? (gt.litHtmlVersions = [])).push("3.2.1");
503
+ const Hn = (n, t, e) => {
504
504
  const i = (e == null ? void 0 : e.renderBefore) ?? t;
505
505
  let r = i._$litPart$;
506
506
  if (r === void 0) {
507
507
  const s = (e == null ? void 0 : e.renderBefore) ?? null;
508
- i._$litPart$ = r = new pe(t.insertBefore(ft(), s), s, void 0, e ?? {});
508
+ i._$litPart$ = r = new ye(t.insertBefore(ft(), s), s, void 0, e ?? {});
509
509
  }
510
510
  return r._$AI(n), r;
511
511
  };
@@ -525,7 +525,7 @@ class j extends tt {
525
525
  }
526
526
  update(t) {
527
527
  const e = this.render();
528
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = kn(e, this.renderRoot, this.renderOptions);
528
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = Hn(e, this.renderRoot, this.renderOptions);
529
529
  }
530
530
  connectedCallback() {
531
531
  var t;
@@ -539,18 +539,18 @@ class j extends tt {
539
539
  return ot;
540
540
  }
541
541
  }
542
- var Ci;
543
- j._$litElement$ = !0, j.finalized = !0, (Ci = globalThis.litElementHydrateSupport) == null || Ci.call(globalThis, { LitElement: j });
544
- const te = globalThis.litElementPolyfillSupport;
545
- te == null || te({ LitElement: j });
542
+ var wi;
543
+ j._$litElement$ = !0, j.finalized = !0, (wi = globalThis.litElementHydrateSupport) == null || wi.call(globalThis, { LitElement: j });
544
+ const ee = globalThis.litElementPolyfillSupport;
545
+ ee == null || ee({ LitElement: j });
546
546
  (globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.1.1");
547
547
  /**
548
548
  * @license
549
549
  * Copyright 2017 Google LLC
550
550
  * SPDX-License-Identifier: BSD-3-Clause
551
551
  */
552
- const Hn = (n) => (...t) => ({ _$litDirective$: n, values: t });
553
- let Un = class {
552
+ const Un = (n) => (...t) => ({ _$litDirective$: n, values: t });
553
+ let jn = class {
554
554
  constructor(t) {
555
555
  }
556
556
  get _$AU() {
@@ -571,13 +571,13 @@ let Un = class {
571
571
  * Copyright 2020 Google LLC
572
572
  * SPDX-License-Identifier: BSD-3-Clause
573
573
  */
574
- const jn = {}, Xn = (n, t = jn) => n._$AH = t;
574
+ const Xn = {}, Yn = (n, t = Xn) => n._$AH = t;
575
575
  /**
576
576
  * @license
577
577
  * Copyright 2021 Google LLC
578
578
  * SPDX-License-Identifier: BSD-3-Clause
579
579
  */
580
- const Yn = Hn(class extends Un {
580
+ const Bn = Un(class extends jn {
581
581
  constructor() {
582
582
  super(...arguments), this.key = C;
583
583
  }
@@ -585,9 +585,9 @@ const Yn = Hn(class extends Un {
585
585
  return this.key = n, t;
586
586
  }
587
587
  update(n, [t, e]) {
588
- return t !== this.key && (Xn(n), this.key = t), e;
588
+ return t !== this.key && (Yn(n), this.key = t), e;
589
589
  }
590
- }), Bn = (n) => {
590
+ }), Vn = (n) => {
591
591
  n.hoverInteraction = n.eoxMap.selectInteractions.selectHover, n.clickInteraction = n.eoxMap.selectInteractions.selectClick;
592
592
  const t = () => {
593
593
  n.requestUpdate();
@@ -599,47 +599,47 @@ const Yn = Hn(class extends Un {
599
599
  "change",
600
600
  t
601
601
  );
602
- }, Vn = (n, t, e) => {
602
+ }, zn = (n, t, e) => {
603
603
  if (n.clickId === t) return;
604
604
  const i = e ? [] : [t];
605
605
  n.hoverInteraction.highlightById(i);
606
- }, zn = (n, t) => {
606
+ }, Jn = (n, t) => {
607
607
  n.stopPropagation();
608
608
  const e = Number(n.target.getAttribute("index")), i = t.drawnFeatures[e];
609
609
  t.drawLayer.getSource().removeFeature(i), t.drawnFeatures.splice(e, 1), t.requestUpdate();
610
- }, Ke = { duration: 750 }, Qe = {
610
+ }, Qe = { duration: 750 }, ti = {
611
611
  type: "FeatureCollection",
612
612
  features: []
613
- }, Jn = (n, t) => {
613
+ }, Wn = (n, t) => {
614
614
  const e = n.getId(), { clickId: i, drawLayer: r, olMap: s, clickInteraction: o } = t, a = i === e, l = n.getGeometry();
615
615
  if (a) {
616
616
  const h = r.getSource().getExtent();
617
- s.getView().fit(h, Ke), o.highlightById([]);
617
+ s.getView().fit(h, Qe), o.highlightById([]);
618
618
  } else {
619
619
  const h = l.getExtent();
620
- o.highlightById([e]), s.getView().fit(h, Ke);
620
+ o.highlightById([e]), s.getView().fit(h, Qe);
621
621
  }
622
622
  t.requestUpdate();
623
- }, Wn = "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;}";
624
- class Si extends j {
623
+ }, qn = "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;}";
624
+ class Ai extends j {
625
625
  constructor() {
626
626
  super();
627
627
  /**
628
628
  * @type {import("@eox/map").EOxMap["selectInteractions"][string]}
629
629
  */
630
- I(this, "hoverInteraction");
630
+ R(this, "hoverInteraction");
631
631
  /**
632
632
  * @type {import("@eox/map").EOxMap["selectInteractions"][string]}
633
633
  */
634
- I(this, "clickInteraction");
634
+ R(this, "clickInteraction");
635
635
  /**
636
636
  * @type string | number
637
637
  */
638
- I(this, "hoverId");
638
+ R(this, "hoverId");
639
639
  /**
640
640
  * @type string | number
641
641
  */
642
- I(this, "clickId");
642
+ R(this, "clickId");
643
643
  this.eoxMap = null, this.olMap = null, this.draw = null, this.drawLayer = null, this.drawnFeatures = [], this.modify = null, this.unstyled = !1;
644
644
  }
645
645
  /**
@@ -648,7 +648,7 @@ class Si extends j {
648
648
  * @param {Event & { target: HTMLButtonElement }} evt - Event object containing button target.
649
649
  */
650
650
  _handleDelete(e) {
651
- zn(e, this), this.dispatchEvent(new CustomEvent("changed", { bubbles: !0 }));
651
+ Jn(e, this), this.dispatchEvent(new CustomEvent("changed", { bubbles: !0 }));
652
652
  }
653
653
  /**
654
654
  * Handles the selection and deselection of a feature from the list.
@@ -656,7 +656,7 @@ class Si extends j {
656
656
  * @param {import("ol").Feature} feature - The selected feature.
657
657
  */
658
658
  _handleFeatureSelectAndDeselect(e) {
659
- Jn(e, this);
659
+ Wn(e, this);
660
660
  }
661
661
  /**
662
662
  *
@@ -664,13 +664,13 @@ class Si extends j {
664
664
  * @param {Boolean} mouseOut - Flag indicating mouse out event.
665
665
  */
666
666
  _handleHoverFeature(e, i = !1) {
667
- Vn(this, e, i);
667
+ zn(this, e, i);
668
668
  }
669
669
  /**
670
670
  * Initiates initial settings and event triggers upon the component's first update.
671
671
  */
672
672
  firstUpdated() {
673
- Bn(this);
673
+ Vn(this);
674
674
  }
675
675
  /**
676
676
  * Overrides createRenderRoot to handle shadow DOM.
@@ -682,12 +682,12 @@ class Si extends j {
682
682
  var e, i;
683
683
  return this.hoverId = (e = this.hoverInteraction) == null ? void 0 : e.selectedFids[0], this.clickId = (i = this.clickInteraction) == null ? void 0 : i.selectedFids[0], U`
684
684
  <style>
685
- ${!this.unstyled && Wn}
685
+ ${!this.unstyled && qn}
686
686
  </style>
687
687
  <ul class="list-wrap">
688
688
  ${this.drawnFeatures.map((r, s) => {
689
689
  const o = s + 1, a = r.getId(), l = this.hoverId === a, h = this.clickId === a;
690
- return Yn(
690
+ return Bn(
691
691
  o,
692
692
  U`
693
693
  <li
@@ -716,7 +716,7 @@ class Si extends j {
716
716
  `;
717
717
  }
718
718
  }
719
- I(Si, "properties", {
719
+ R(Ai, "properties", {
720
720
  eoxMap: { attribute: !1, state: !0 },
721
721
  olMap: { attribute: !1, state: !0 },
722
722
  draw: { attribute: !1, state: !0 },
@@ -725,12 +725,12 @@ I(Si, "properties", {
725
725
  modify: { attribute: !1, state: !0 },
726
726
  unstyled: { type: Boolean }
727
727
  });
728
- customElements.define("eox-drawtools-list", Si);
729
- const Dn = (n) => {
728
+ customElements.define("eox-drawtools-list", Ai);
729
+ const Zn = (n) => {
730
730
  const { multipleFeatures: t, drawnFeatures: e, currentlyDrawing: i } = n, r = !t && (e == null ? void 0 : e.length) > 0 || i, s = !(e != null && e.length) && !i;
731
731
  return { drawDisabled: r, discardDisabled: s };
732
- }, qn = "button,.button { /* TODO: why does this only work here and not from :root? */ --primary-color: #004170; --primary-color-hover: #004170cc; --error-color: #ff5252; 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-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 { 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 { 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;}", Zn = '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,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; background-color: var(--background-color);}';
733
- function Kn(n) {
732
+ }, Kn = "button,.button { /* TODO: why does this only work here and not from :root? */ --primary-color: #004170; --primary-color-hover: #004170cc; --error-color: #ff5252; 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-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 { 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 { 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;}", Dn = '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,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; background-color: var(--background-color);}';
733
+ function Qn(n) {
734
734
  navigator.clipboard.writeText(n).then(
735
735
  function() {
736
736
  },
@@ -739,14 +739,14 @@ function Kn(n) {
739
739
  }
740
740
  );
741
741
  }
742
- const Qn = {
742
+ const tr = {
743
743
  /**
744
744
  * Triggered when a property is changed.
745
745
  * @event module:ol/Object.ObjectEvent#propertychange
746
746
  * @api
747
747
  */
748
748
  PROPERTYCHANGE: "propertychange"
749
- }, ye = {
749
+ }, me = {
750
750
  /**
751
751
  * Generic change event. Triggered when the revision counter is increased.
752
752
  * @event module:ol/events/Event~BaseEvent#change
@@ -754,7 +754,7 @@ const Qn = {
754
754
  */
755
755
  CHANGE: "change"
756
756
  };
757
- class tr {
757
+ class er {
758
758
  constructor() {
759
759
  this.disposed = !1;
760
760
  }
@@ -771,23 +771,23 @@ class tr {
771
771
  disposeInternal() {
772
772
  }
773
773
  }
774
- function er(n, t, e) {
774
+ function ir(n, t, e) {
775
775
  let i, r;
776
- e = e || Ai;
776
+ e = e || Fi;
777
777
  let s = 0, o = n.length, a = !1;
778
778
  for (; s < o; )
779
779
  i = s + (o - s >> 1), r = +e(n[i], t), r < 0 ? s = i + 1 : (o = i, a = !r);
780
780
  return a ? s : ~s;
781
781
  }
782
- function Ai(n, t) {
782
+ function Fi(n, t) {
783
783
  return n > t ? 1 : n < t ? -1 : 0;
784
784
  }
785
- function S(n, t) {
785
+ function A(n, t) {
786
786
  const e = Array.isArray(t) ? t : [t], i = e.length;
787
787
  for (let r = 0; r < i; r++)
788
788
  n[n.length] = e[r];
789
789
  }
790
- function ir(n, t) {
790
+ function nr(n, t) {
791
791
  const e = n.length;
792
792
  if (e !== t.length)
793
793
  return !1;
@@ -796,26 +796,26 @@ function ir(n, t) {
796
796
  return !1;
797
797
  return !0;
798
798
  }
799
- function ti() {
799
+ function ei() {
800
800
  }
801
- function Fi(n) {
801
+ function Gi(n) {
802
802
  let t, e, i;
803
803
  return function() {
804
804
  const r = Array.prototype.slice.call(arguments);
805
- return (!e || this !== i || !ir(r, e)) && (i = this, e = r, t = n.apply(this, arguments)), t;
805
+ return (!e || this !== i || !nr(r, e)) && (i = this, e = r, t = n.apply(this, arguments)), t;
806
806
  };
807
807
  }
808
- function Gi(n) {
808
+ function Li(n) {
809
809
  for (const t in n)
810
810
  delete n[t];
811
811
  }
812
- function Ti(n) {
812
+ function Ii(n) {
813
813
  let t;
814
814
  for (t in n)
815
815
  return !1;
816
816
  return !t;
817
817
  }
818
- class Ii {
818
+ class Ri {
819
819
  /**
820
820
  * @param {string} type Type.
821
821
  */
@@ -838,7 +838,7 @@ class Ii {
838
838
  this.propagationStopped = !0;
839
839
  }
840
840
  }
841
- class nr extends tr {
841
+ class rr extends er {
842
842
  /**
843
843
  * @param {*} [target] Default event target for dispatched events.
844
844
  */
@@ -869,7 +869,7 @@ class nr extends tr {
869
869
  const e = typeof t == "string", i = e ? t : t.type, r = this.listeners_ && this.listeners_[i];
870
870
  if (!r)
871
871
  return;
872
- const s = e ? new Ii(t) : (
872
+ const s = e ? new Ri(t) : (
873
873
  /** @type {Event} */
874
874
  t
875
875
  );
@@ -887,7 +887,7 @@ class nr extends tr {
887
887
  if (--o[i] === 0) {
888
888
  let h = a[i];
889
889
  for (delete a[i]; h--; )
890
- this.removeEventListener(i, ti);
890
+ this.removeEventListener(i, ei);
891
891
  delete o[i];
892
892
  }
893
893
  return l;
@@ -897,7 +897,7 @@ class nr extends tr {
897
897
  * @override
898
898
  */
899
899
  disposeInternal() {
900
- this.listeners_ && Gi(this.listeners_);
900
+ this.listeners_ && Li(this.listeners_);
901
901
  }
902
902
  /**
903
903
  * Get the listeners for a specified event type. Listeners are returned in the
@@ -928,7 +928,7 @@ class nr extends tr {
928
928
  if (!i)
929
929
  return;
930
930
  const r = i.indexOf(e);
931
- r !== -1 && (this.pendingRemovals_ && t in this.pendingRemovals_ ? (i[r] = ti, ++this.pendingRemovals_[t]) : (i.splice(r, 1), i.length === 0 && delete this.listeners_[t]));
931
+ r !== -1 && (this.pendingRemovals_ && t in this.pendingRemovals_ ? (i[r] = ei, ++this.pendingRemovals_[t]) : (i.splice(r, 1), i.length === 0 && delete this.listeners_[t]));
932
932
  }
933
933
  }
934
934
  function mt(n, t, e, i, r) {
@@ -945,13 +945,13 @@ function mt(n, t, e, i, r) {
945
945
  };
946
946
  return n.addEventListener(t, e), s;
947
947
  }
948
- function ei(n, t, e, i) {
948
+ function ii(n, t, e, i) {
949
949
  return mt(n, t, e, i, !0);
950
950
  }
951
- function Rt(n) {
952
- n && n.target && (n.target.removeEventListener(n.type, n.listener), Gi(n));
951
+ function Nt(n) {
952
+ n && n.target && (n.target.removeEventListener(n.type, n.listener), Li(n));
953
953
  }
954
- class Xt extends nr {
954
+ class Yt extends rr {
955
955
  constructor() {
956
956
  super(), this.on = /** @type {ObservableOnSignature<import("./events").EventsKey>} */
957
957
  this.onInternal, this.once = /** @type {ObservableOnSignature<import("./events").EventsKey>} */
@@ -963,7 +963,7 @@ class Xt extends nr {
963
963
  * @api
964
964
  */
965
965
  changed() {
966
- ++this.revision_, this.dispatchEvent(ye.CHANGE);
966
+ ++this.revision_, this.dispatchEvent(me.CHANGE);
967
967
  }
968
968
  /**
969
969
  * Get the version number for this object. Each time the object is modified,
@@ -1006,9 +1006,9 @@ class Xt extends nr {
1006
1006
  const r = t.length;
1007
1007
  i = new Array(r);
1008
1008
  for (let s = 0; s < r; ++s)
1009
- i[s] = ei(this, t[s], e);
1009
+ i[s] = ii(this, t[s], e);
1010
1010
  } else
1011
- i = ei(
1011
+ i = ii(
1012
1012
  this,
1013
1013
  /** @type {string} */
1014
1014
  t,
@@ -1028,7 +1028,7 @@ class Xt extends nr {
1028
1028
  e.ol_key
1029
1029
  );
1030
1030
  if (i)
1031
- rr(i);
1031
+ sr(i);
1032
1032
  else if (Array.isArray(t))
1033
1033
  for (let r = 0, s = t.length; r < s; ++r)
1034
1034
  this.removeEventListener(t[r], e);
@@ -1036,15 +1036,15 @@ class Xt extends nr {
1036
1036
  this.removeEventListener(t, e);
1037
1037
  }
1038
1038
  }
1039
- Xt.prototype.on;
1040
- Xt.prototype.once;
1041
- Xt.prototype.un;
1042
- function rr(n) {
1039
+ Yt.prototype.on;
1040
+ Yt.prototype.once;
1041
+ Yt.prototype.un;
1042
+ function sr(n) {
1043
1043
  if (Array.isArray(n))
1044
1044
  for (let t = 0, e = n.length; t < e; ++t)
1045
- Rt(n[t]);
1045
+ Nt(n[t]);
1046
1046
  else
1047
- Rt(
1047
+ Nt(
1048
1048
  /** @type {import("./events.js").EventsKey} */
1049
1049
  n
1050
1050
  );
@@ -1052,11 +1052,11 @@ function rr(n) {
1052
1052
  function y() {
1053
1053
  throw new Error("Unimplemented abstract method.");
1054
1054
  }
1055
- let sr = 0;
1056
- function or(n) {
1057
- return n.ol_uid || (n.ol_uid = String(++sr));
1055
+ let or = 0;
1056
+ function ar(n) {
1057
+ return n.ol_uid || (n.ol_uid = String(++or));
1058
1058
  }
1059
- class ii extends Ii {
1059
+ class ni extends Ri {
1060
1060
  /**
1061
1061
  * @param {string} type The event type.
1062
1062
  * @param {string} key The property name.
@@ -1066,12 +1066,12 @@ class ii extends Ii {
1066
1066
  super(t), this.key = e, this.oldValue = i;
1067
1067
  }
1068
1068
  }
1069
- class Li extends Xt {
1069
+ class Ti extends Yt {
1070
1070
  /**
1071
1071
  * @param {Object<string, *>} [values] An object with key-value pairs.
1072
1072
  */
1073
1073
  constructor(t) {
1074
- super(), this.on, this.once, this.un, or(this), this.values_ = null, t !== void 0 && this.setProperties(t);
1074
+ super(), this.on, this.once, this.un, ar(this), this.values_ = null, t !== void 0 && this.setProperties(t);
1075
1075
  }
1076
1076
  /**
1077
1077
  * Gets a value.
@@ -1118,7 +1118,7 @@ class Li extends Xt {
1118
1118
  */
1119
1119
  notify(t, e) {
1120
1120
  let i;
1121
- i = `change:${t}`, this.hasListener(i) && this.dispatchEvent(new ii(i, t, e)), i = Qn.PROPERTYCHANGE, this.hasListener(i) && this.dispatchEvent(new ii(i, t, e));
1121
+ i = `change:${t}`, this.hasListener(i) && this.dispatchEvent(new ni(i, t, e)), i = tr.PROPERTYCHANGE, this.hasListener(i) && this.dispatchEvent(new ni(i, t, e));
1122
1122
  }
1123
1123
  /**
1124
1124
  * @param {string} key Key name.
@@ -1178,15 +1178,15 @@ class Li extends Xt {
1178
1178
  unset(t, e) {
1179
1179
  if (this.values_ && t in this.values_) {
1180
1180
  const i = this.values_[t];
1181
- delete this.values_[t], Ti(this.values_) && (this.values_ = null), e || this.notify(t, i);
1181
+ delete this.values_[t], Ii(this.values_) && (this.values_ = null), e || this.notify(t, i);
1182
1182
  }
1183
1183
  }
1184
1184
  }
1185
- function ar(n, t) {
1185
+ function lr(n, t) {
1186
1186
  if (!n)
1187
1187
  throw new Error(t);
1188
1188
  }
1189
- class lt extends Li {
1189
+ class lt extends Ti {
1190
1190
  /**
1191
1191
  * @param {Geometry|ObjectWithGeometry<Geometry>} [geometryOrProperties]
1192
1192
  * You may pass a Geometry object directly, or an object literal containing
@@ -1289,11 +1289,11 @@ class lt extends Li {
1289
1289
  * @private
1290
1290
  */
1291
1291
  handleGeometryChanged_() {
1292
- this.geometryChangeKey_ && (Rt(this.geometryChangeKey_), this.geometryChangeKey_ = null);
1292
+ this.geometryChangeKey_ && (Nt(this.geometryChangeKey_), this.geometryChangeKey_ = null);
1293
1293
  const t = this.getGeometry();
1294
1294
  t && (this.geometryChangeKey_ = mt(
1295
1295
  t,
1296
- ye.CHANGE,
1296
+ me.CHANGE,
1297
1297
  this.handleGeometryChange_,
1298
1298
  this
1299
1299
  )), this.changed();
@@ -1318,7 +1318,7 @@ class lt extends Li {
1318
1318
  * @fires module:ol/events/Event~BaseEvent#event:change
1319
1319
  */
1320
1320
  setStyle(t) {
1321
- this.style_ = t, this.styleFunction_ = t ? lr(t) : void 0, this.changed();
1321
+ this.style_ = t, this.styleFunction_ = t ? hr(t) : void 0, this.changed();
1322
1322
  }
1323
1323
  /**
1324
1324
  * Set the feature id. The feature id is considered stable and may be used when
@@ -1343,11 +1343,11 @@ class lt extends Li {
1343
1343
  this.removeChangeListener(this.geometryName_, this.handleGeometryChanged_), this.geometryName_ = t, this.addChangeListener(this.geometryName_, this.handleGeometryChanged_), this.handleGeometryChanged_();
1344
1344
  }
1345
1345
  }
1346
- function lr(n) {
1346
+ function hr(n) {
1347
1347
  if (typeof n == "function")
1348
1348
  return n;
1349
1349
  let t;
1350
- return Array.isArray(n) ? t = n : (ar(
1350
+ return Array.isArray(n) ? t = n : (lr(
1351
1351
  typeof /** @type {?} */
1352
1352
  n.getZIndex == "function",
1353
1353
  "Expected an `ol/style/Style` or an array of `ol/style/Style.js`"
@@ -1366,77 +1366,77 @@ const w = {
1366
1366
  BELOW: 8,
1367
1367
  LEFT: 16
1368
1368
  };
1369
- function D(n, t, e) {
1369
+ function q(n, t, e) {
1370
1370
  let i, r;
1371
1371
  return t < n[0] ? i = n[0] - t : n[2] < t ? i = t - n[2] : i = 0, e < n[1] ? r = n[1] - e : n[3] < e ? r = e - n[3] : r = 0, i * i + r * r;
1372
1372
  }
1373
- function Ri(n, t, e) {
1373
+ function Ni(n, t, e) {
1374
1374
  return n[0] <= t && t <= n[2] && n[1] <= e && e <= n[3];
1375
1375
  }
1376
- function ni(n, t) {
1376
+ function ri(n, t) {
1377
1377
  const e = n[0], i = n[1], r = n[2], s = n[3], o = t[0], a = t[1];
1378
1378
  let l = w.UNKNOWN;
1379
1379
  return o < e ? l = l | w.LEFT : o > r && (l = l | w.RIGHT), a < i ? l = l | w.BELOW : a > s && (l = l | w.ABOVE), l === w.UNKNOWN && (l = w.INTERSECTING), l;
1380
1380
  }
1381
- function me() {
1381
+ function _e() {
1382
1382
  return [1 / 0, 1 / 0, -1 / 0, -1 / 0];
1383
1383
  }
1384
- function Ni(n, t, e, i, r) {
1384
+ function Oi(n, t, e, i, r) {
1385
1385
  return r ? (r[0] = n, r[1] = t, r[2] = e, r[3] = i, r) : [n, t, e, i];
1386
1386
  }
1387
- function _e(n) {
1388
- return Ni(1 / 0, 1 / 0, -1 / 0, -1 / 0, n);
1387
+ function ve(n) {
1388
+ return Oi(1 / 0, 1 / 0, -1 / 0, -1 / 0, n);
1389
1389
  }
1390
- function Oi(n, t) {
1390
+ function ki(n, t) {
1391
1391
  const e = n[0], i = n[1];
1392
- return Ni(e, i, e, i, t);
1392
+ return Oi(e, i, e, i, t);
1393
1393
  }
1394
- function ve(n, t, e, i, r) {
1395
- const s = _e(r);
1396
- return ki(s, n, t, e, i);
1394
+ function Ce(n, t, e, i, r) {
1395
+ const s = ve(r);
1396
+ return Hi(s, n, t, e, i);
1397
1397
  }
1398
- function hr(n, t) {
1398
+ function cr(n, t) {
1399
1399
  return t[0] < n[0] && (n[0] = t[0]), t[2] > n[2] && (n[2] = t[2]), t[1] < n[1] && (n[1] = t[1]), t[3] > n[3] && (n[3] = t[3]), n;
1400
1400
  }
1401
- function ki(n, t, e, i, r) {
1401
+ function Hi(n, t, e, i, r) {
1402
1402
  for (; e < i; e += r)
1403
- cr(n, t[e], t[e + 1]);
1403
+ ur(n, t[e], t[e + 1]);
1404
1404
  return n;
1405
1405
  }
1406
- function cr(n, t, e) {
1406
+ function ur(n, t, e) {
1407
1407
  n[0] = Math.min(n[0], t), n[1] = Math.min(n[1], e), n[2] = Math.max(n[2], t), n[3] = Math.max(n[3], e);
1408
1408
  }
1409
- function ur(n, t) {
1409
+ function dr(n, t) {
1410
1410
  let e;
1411
- return e = t(dr(n)), e || (e = t(gr(n)), e) || (e = t(pr(n)), e) || (e = t(fr(n)), e) ? e : !1;
1411
+ return e = t(gr(n)), e || (e = t(fr(n)), e) || (e = t(yr(n)), e) || (e = t(pr(n)), e) ? e : !1;
1412
1412
  }
1413
- function dr(n) {
1413
+ function gr(n) {
1414
1414
  return [n[0], n[1]];
1415
1415
  }
1416
- function gr(n) {
1416
+ function fr(n) {
1417
1417
  return [n[2], n[1]];
1418
1418
  }
1419
- function Yt(n) {
1419
+ function Bt(n) {
1420
1420
  return [(n[0] + n[2]) / 2, (n[1] + n[3]) / 2];
1421
1421
  }
1422
- function Nt(n) {
1422
+ function Ot(n) {
1423
1423
  return n[3] - n[1];
1424
1424
  }
1425
- function fr(n) {
1425
+ function pr(n) {
1426
1426
  return [n[0], n[3]];
1427
1427
  }
1428
- function pr(n) {
1428
+ function yr(n) {
1429
1429
  return [n[2], n[3]];
1430
1430
  }
1431
- function yr(n, t) {
1431
+ function mr(n, t) {
1432
1432
  return n[0] <= t[2] && n[2] >= t[0] && n[1] <= t[3] && n[3] >= t[1];
1433
1433
  }
1434
- function mr(n, t) {
1434
+ function _r(n, t) {
1435
1435
  return t ? (t[0] = n[0], t[1] = n[1], t[2] = n[2], t[3] = n[3], t) : n;
1436
1436
  }
1437
- function _r(n, t, e) {
1437
+ function vr(n, t, e) {
1438
1438
  let i = !1;
1439
- const r = ni(n, t), s = ni(n, e);
1439
+ const r = ri(n, t), s = ri(n, e);
1440
1440
  if (r === w.INTERSECTING || s === w.INTERSECTING)
1441
1441
  i = !0;
1442
1442
  else {
@@ -1446,7 +1446,7 @@ function _r(n, t, e) {
1446
1446
  }
1447
1447
  return i;
1448
1448
  }
1449
- function vr(n, t, e, i, r, s) {
1449
+ function Cr(n, t, e, i, r, s) {
1450
1450
  const o = r - e, a = s - i;
1451
1451
  if (o !== 0 || a !== 0) {
1452
1452
  const l = ((n - e) * o + (t - i) * a) / (o * o + a * a);
@@ -1458,22 +1458,22 @@ function X(n, t, e, i) {
1458
1458
  const r = e - n, s = i - t;
1459
1459
  return r * r + s * s;
1460
1460
  }
1461
- function ri(n) {
1461
+ function si(n) {
1462
1462
  return n * 180 / Math.PI;
1463
1463
  }
1464
- function It(n) {
1464
+ function Rt(n) {
1465
1465
  return n * Math.PI / 180;
1466
1466
  }
1467
- function Ce(n, t, e) {
1467
+ function we(n, t, e) {
1468
1468
  return n + e * (t - n);
1469
1469
  }
1470
- function se(n, t, e) {
1470
+ function oe(n, t, e) {
1471
1471
  if (n >= t && n < e)
1472
1472
  return n;
1473
1473
  const i = e - t;
1474
1474
  return ((n - t) % i + i) % i + t;
1475
1475
  }
1476
- const Cr = {
1476
+ const wr = {
1477
1477
  // use the radius of the Normal sphere
1478
1478
  radians: 6370997 / (2 * Math.PI),
1479
1479
  degrees: 2 * Math.PI * 6370997 / 360,
@@ -1481,7 +1481,7 @@ const Cr = {
1481
1481
  m: 1,
1482
1482
  "us-ft": 1200 / 3937
1483
1483
  };
1484
- class we {
1484
+ class be {
1485
1485
  /**
1486
1486
  * @param {Options} options Projection options.
1487
1487
  */
@@ -1527,7 +1527,7 @@ class we {
1527
1527
  * @api
1528
1528
  */
1529
1529
  getMetersPerUnit() {
1530
- return this.metersPerUnit_ || Cr[this.units_];
1530
+ return this.metersPerUnit_ || wr[this.units_];
1531
1531
  }
1532
1532
  /**
1533
1533
  * Get the world extent for this projection.
@@ -1614,8 +1614,8 @@ class we {
1614
1614
  return this.getPointResolutionFunc_;
1615
1615
  }
1616
1616
  }
1617
- const Mt = 6378137, et = Math.PI * Mt, wr = [-et, -et, et, et], br = [-180, -85, 180, 85], At = Mt * Math.log(Math.tan(Math.PI / 2));
1618
- class K extends we {
1617
+ const St = 6378137, et = Math.PI * St, br = [-et, -et, et, et], Er = [-180, -85, 180, 85], Ft = St * Math.log(Math.tan(Math.PI / 2));
1618
+ class D extends be {
1619
1619
  /**
1620
1620
  * @param {string} code Code.
1621
1621
  */
@@ -1623,42 +1623,42 @@ class K extends we {
1623
1623
  super({
1624
1624
  code: t,
1625
1625
  units: "m",
1626
- extent: wr,
1626
+ extent: br,
1627
1627
  global: !0,
1628
- worldExtent: br,
1628
+ worldExtent: Er,
1629
1629
  getPointResolution: function(e, i) {
1630
- return e / Math.cosh(i[1] / Mt);
1630
+ return e / Math.cosh(i[1] / St);
1631
1631
  }
1632
1632
  });
1633
1633
  }
1634
1634
  }
1635
- const si = [
1636
- new K("EPSG:3857"),
1637
- new K("EPSG:102100"),
1638
- new K("EPSG:102113"),
1639
- new K("EPSG:900913"),
1640
- new K("http://www.opengis.net/def/crs/EPSG/0/3857"),
1641
- new K("http://www.opengis.net/gml/srs/epsg.xml#3857")
1635
+ const oi = [
1636
+ new D("EPSG:3857"),
1637
+ new D("EPSG:102100"),
1638
+ new D("EPSG:102113"),
1639
+ new D("EPSG:900913"),
1640
+ new D("http://www.opengis.net/def/crs/EPSG/0/3857"),
1641
+ new D("http://www.opengis.net/gml/srs/epsg.xml#3857")
1642
1642
  ];
1643
- function Er(n, t, e, i) {
1643
+ function xr(n, t, e, i) {
1644
1644
  const r = n.length;
1645
1645
  e = e > 1 ? e : 2, i = i ?? e, t === void 0 && (e > 2 ? t = n.slice() : t = new Array(r));
1646
1646
  for (let s = 0; s < r; s += i) {
1647
1647
  t[s] = et * n[s] / 180;
1648
- let o = Mt * Math.log(Math.tan(Math.PI * (+n[s + 1] + 90) / 360));
1649
- o > At ? o = At : o < -At && (o = -At), t[s + 1] = o;
1648
+ let o = St * Math.log(Math.tan(Math.PI * (+n[s + 1] + 90) / 360));
1649
+ o > Ft ? o = Ft : o < -Ft && (o = -Ft), t[s + 1] = o;
1650
1650
  }
1651
1651
  return t;
1652
1652
  }
1653
- function xr(n, t, e, i) {
1653
+ function Pr(n, t, e, i) {
1654
1654
  const r = n.length;
1655
1655
  e = e > 1 ? e : 2, i = i ?? e, t === void 0 && (e > 2 ? t = n.slice() : t = new Array(r));
1656
1656
  for (let s = 0; s < r; s += i)
1657
- t[s] = 180 * n[s] / et, t[s + 1] = 360 * Math.atan(Math.exp(n[s + 1] / Mt)) / Math.PI - 90;
1657
+ t[s] = 180 * n[s] / et, t[s + 1] = 360 * Math.atan(Math.exp(n[s + 1] / St)) / Math.PI - 90;
1658
1658
  return t;
1659
1659
  }
1660
- const Pr = 6378137, oi = [-180, -90, 180, 90], Mr = Math.PI * Pr / 180;
1661
- class N extends we {
1660
+ const Mr = 6378137, ai = [-180, -90, 180, 90], Sr = Math.PI * Mr / 180;
1661
+ class N extends be {
1662
1662
  /**
1663
1663
  * @param {string} code Code.
1664
1664
  * @param {string} [axisOrientation] Axis orientation.
@@ -1667,15 +1667,15 @@ class N extends we {
1667
1667
  super({
1668
1668
  code: t,
1669
1669
  units: "degrees",
1670
- extent: oi,
1670
+ extent: ai,
1671
1671
  axisOrientation: e,
1672
1672
  global: !0,
1673
- metersPerUnit: Mr,
1674
- worldExtent: oi
1673
+ metersPerUnit: Sr,
1674
+ worldExtent: ai
1675
1675
  });
1676
1676
  }
1677
1677
  }
1678
- const ai = [
1678
+ const li = [
1679
1679
  new N("CRS:84"),
1680
1680
  new N("EPSG:4326", "neu"),
1681
1681
  new N("urn:ogc:def:crs:OGC:1.3:CRS84"),
@@ -1684,49 +1684,49 @@ const ai = [
1684
1684
  new N("http://www.opengis.net/gml/srs/epsg.xml#4326", "neu"),
1685
1685
  new N("http://www.opengis.net/def/crs/EPSG/0/4326", "neu")
1686
1686
  ];
1687
- let oe = {};
1687
+ let ae = {};
1688
1688
  function $r(n) {
1689
- return oe[n] || oe[n.replace(/urn:(x-)?ogc:def:crs:EPSG:(.*:)?(\w+)$/, "EPSG:$3")] || null;
1689
+ return ae[n] || ae[n.replace(/urn:(x-)?ogc:def:crs:EPSG:(.*:)?(\w+)$/, "EPSG:$3")] || null;
1690
1690
  }
1691
- function Sr(n, t) {
1692
- oe[n] = t;
1691
+ function Ar(n, t) {
1692
+ ae[n] = t;
1693
1693
  }
1694
1694
  let it = {};
1695
1695
  function _t(n, t, e) {
1696
1696
  const i = n.getCode(), r = t.getCode();
1697
1697
  i in it || (it[i] = {}), it[i][r] = e;
1698
1698
  }
1699
- function ee(n, t) {
1699
+ function ie(n, t) {
1700
1700
  return n in it && t in it[n] ? it[n][t] : null;
1701
1701
  }
1702
- const Ot = 0.9996, P = 669438e-8, Bt = P * P, Vt = Bt * P, k = P / (1 - P), li = Math.sqrt(1 - P), ht = (1 - li) / (1 + li), Hi = ht * ht, be = Hi * ht, Ee = be * ht, Ui = Ee * ht, ji = 1 - P / 4 - 3 * Bt / 64 - 5 * Vt / 256, Ar = 3 * P / 8 + 3 * Bt / 32 + 45 * Vt / 1024, Fr = 15 * Bt / 256 + 45 * Vt / 1024, Gr = 35 * Vt / 3072, Tr = 3 / 2 * ht - 27 / 32 * be + 269 / 512 * Ui, Ir = 21 / 16 * Hi - 55 / 32 * Ee, Lr = 151 / 96 * be - 417 / 128 * Ui, Rr = 1097 / 512 * Ee, kt = 6378137;
1703
- function Nr(n, t, e) {
1704
- const i = n - 5e5, o = (e.north ? t : t - 1e7) / Ot / (kt * ji), a = o + Tr * Math.sin(2 * o) + Ir * Math.sin(4 * o) + Lr * Math.sin(6 * o) + Rr * Math.sin(8 * o), l = Math.sin(a), h = l * l, c = Math.cos(a), u = l / c, d = u * u, g = d * d, f = 1 - P * h, p = Math.sqrt(1 - P * h), _ = kt / p, b = (1 - P) / f, v = k * c ** 2, M = v * v, E = i / (_ * Ot), T = E * E, ct = T * E, ke = ct * E, He = ke * E, pn = He * E, yn = a - u / b * (T / 2 - ke / 24 * (5 + 3 * d + 10 * v - 4 * M - 9 * k)) + pn / 720 * (61 + 90 * d + 298 * v + 45 * g - 252 * k - 3 * M);
1705
- let qt = (E - ct / 6 * (1 + 2 * d + v) + He / 120 * (5 - 2 * v + 28 * d - 3 * M + 8 * k + 24 * g)) / c;
1706
- return qt = se(
1707
- qt + It(Xi(e.number)),
1702
+ const kt = 0.9996, P = 669438e-8, Vt = P * P, zt = Vt * P, k = P / (1 - P), hi = Math.sqrt(1 - P), ht = (1 - hi) / (1 + hi), Ui = ht * ht, Ee = Ui * ht, xe = Ee * ht, ji = xe * ht, Xi = 1 - P / 4 - 3 * Vt / 64 - 5 * zt / 256, Fr = 3 * P / 8 + 3 * Vt / 32 + 45 * zt / 1024, Gr = 15 * Vt / 256 + 45 * zt / 1024, Lr = 35 * zt / 3072, Ir = 3 / 2 * ht - 27 / 32 * Ee + 269 / 512 * ji, Rr = 21 / 16 * Ui - 55 / 32 * xe, Tr = 151 / 96 * Ee - 417 / 128 * ji, Nr = 1097 / 512 * xe, Ht = 6378137;
1703
+ function Or(n, t, e) {
1704
+ const i = n - 5e5, o = (e.north ? t : t - 1e7) / kt / (Ht * Xi), a = o + Ir * Math.sin(2 * o) + Rr * Math.sin(4 * o) + Tr * Math.sin(6 * o) + Nr * Math.sin(8 * o), l = Math.sin(a), h = l * l, c = Math.cos(a), u = l / c, d = u * u, g = d * d, f = 1 - P * h, p = Math.sqrt(1 - P * h), _ = Ht / p, b = (1 - P) / f, v = k * c ** 2, S = v * v, E = i / (_ * kt), I = E * E, ct = I * E, He = ct * E, Ue = He * E, yn = Ue * E, mn = a - u / b * (I / 2 - He / 24 * (5 + 3 * d + 10 * v - 4 * S - 9 * k)) + yn / 720 * (61 + 90 * d + 298 * v + 45 * g - 252 * k - 3 * S);
1705
+ let Kt = (E - ct / 6 * (1 + 2 * d + v) + Ue / 120 * (5 - 2 * v + 28 * d - 3 * S + 8 * k + 24 * g)) / c;
1706
+ return Kt = oe(
1707
+ Kt + Rt(Yi(e.number)),
1708
1708
  -Math.PI,
1709
1709
  Math.PI
1710
- ), [ri(qt), ri(yn)];
1710
+ ), [si(Kt), si(mn)];
1711
1711
  }
1712
- const hi = -80, ci = 84, Or = -180, kr = 180;
1713
- function Hr(n, t, e) {
1714
- n = se(n, Or, kr), t < hi ? t = hi : t > ci && (t = ci);
1715
- const i = It(t), r = Math.sin(i), s = Math.cos(i), o = r / s, a = o * o, l = a * a, h = It(n), c = Xi(e.number), u = It(c), d = kt / Math.sqrt(1 - P * r ** 2), g = k * s ** 2, f = s * se(h - u, -Math.PI, Math.PI), p = f * f, _ = p * f, b = _ * f, v = b * f, M = v * f, E = kt * (ji * i - Ar * Math.sin(2 * i) + Fr * Math.sin(4 * i) - Gr * Math.sin(6 * i)), T = Ot * d * (f + _ / 6 * (1 - a + g) + v / 120 * (5 - 18 * a + l + 72 * g - 58 * k)) + 5e5;
1716
- let ct = Ot * (E + d * o * (p / 2 + b / 24 * (5 - a + 9 * g + 4 * g ** 2) + M / 720 * (61 - 58 * a + l + 600 * g - 330 * k)));
1717
- return e.north || (ct += 1e7), [T, ct];
1712
+ const ci = -80, ui = 84, kr = -180, Hr = 180;
1713
+ function Ur(n, t, e) {
1714
+ n = oe(n, kr, Hr), t < ci ? t = ci : t > ui && (t = ui);
1715
+ const i = Rt(t), r = Math.sin(i), s = Math.cos(i), o = r / s, a = o * o, l = a * a, h = Rt(n), c = Yi(e.number), u = Rt(c), d = Ht / Math.sqrt(1 - P * r ** 2), g = k * s ** 2, f = s * oe(h - u, -Math.PI, Math.PI), p = f * f, _ = p * f, b = _ * f, v = b * f, S = v * f, E = Ht * (Xi * i - Fr * Math.sin(2 * i) + Gr * Math.sin(4 * i) - Lr * Math.sin(6 * i)), I = kt * d * (f + _ / 6 * (1 - a + g) + v / 120 * (5 - 18 * a + l + 72 * g - 58 * k)) + 5e5;
1716
+ let ct = kt * (E + d * o * (p / 2 + b / 24 * (5 - a + 9 * g + 4 * g ** 2) + S / 720 * (61 - 58 * a + l + 600 * g - 330 * k)));
1717
+ return e.north || (ct += 1e7), [I, ct];
1718
1718
  }
1719
- function Xi(n) {
1719
+ function Yi(n) {
1720
1720
  return (n - 1) * 6 - 180 + 3;
1721
1721
  }
1722
- const Ur = [
1722
+ const jr = [
1723
1723
  /^EPSG:(\d+)$/,
1724
1724
  /^urn:ogc:def:crs:EPSG::(\d+)$/,
1725
1725
  /^http:\/\/www\.opengis\.net\/def\/crs\/EPSG\/0\/(\d+)$/
1726
1726
  ];
1727
- function Yi(n) {
1727
+ function Bi(n) {
1728
1728
  let t = 0;
1729
- for (const r of Ur) {
1729
+ for (const r of jr) {
1730
1730
  const s = n.match(r);
1731
1731
  if (s) {
1732
1732
  t = parseInt(s[1]);
@@ -1738,7 +1738,7 @@ function Yi(n) {
1738
1738
  let e = 0, i = !1;
1739
1739
  return t > 32700 && t < 32761 ? e = t - 32700 : t > 32600 && t < 32661 && (i = !0, e = t - 32600), e ? { number: e, north: i } : null;
1740
1740
  }
1741
- function ui(n, t) {
1741
+ function di(n, t) {
1742
1742
  return function(e, i, r, s) {
1743
1743
  const o = e.length;
1744
1744
  r = r > 1 ? r : 2, s = s ?? r, i || (r > 2 ? i = e.slice() : i = new Array(o));
@@ -1749,18 +1749,18 @@ function ui(n, t) {
1749
1749
  return i;
1750
1750
  };
1751
1751
  }
1752
- function jr(n) {
1753
- return Yi(n) ? new we({ code: n, units: "m" }) : null;
1754
- }
1755
1752
  function Xr(n) {
1756
- const t = Yi(n.getCode());
1753
+ return Bi(n) ? new be({ code: n, units: "m" }) : null;
1754
+ }
1755
+ function Yr(n) {
1756
+ const t = Bi(n.getCode());
1757
1757
  return t ? {
1758
- forward: ui(Hr, t),
1759
- inverse: ui(Nr, t)
1758
+ forward: di(Ur, t),
1759
+ inverse: di(Or, t)
1760
1760
  } : null;
1761
1761
  }
1762
- const Yr = [Xr], Br = [jr];
1763
- function xe(n, t) {
1762
+ const Br = [Yr], Vr = [Xr];
1763
+ function Pe(n, t) {
1764
1764
  if (t !== void 0) {
1765
1765
  for (let e = 0, i = n.length; e < i; ++e)
1766
1766
  t[e] = n[e];
@@ -1769,11 +1769,11 @@ function xe(n, t) {
1769
1769
  t = n.slice();
1770
1770
  return t;
1771
1771
  }
1772
- function ae(n) {
1773
- Sr(n.getCode(), n), _t(n, n, xe);
1772
+ function le(n) {
1773
+ Ar(n.getCode(), n), _t(n, n, Pe);
1774
1774
  }
1775
- function Vr(n) {
1776
- n.forEach(ae);
1775
+ function zr(n) {
1776
+ n.forEach(le);
1777
1777
  }
1778
1778
  function x(n) {
1779
1779
  if (typeof n != "string")
@@ -1781,93 +1781,93 @@ function x(n) {
1781
1781
  const t = $r(n);
1782
1782
  if (t)
1783
1783
  return t;
1784
- for (const e of Br) {
1784
+ for (const e of Vr) {
1785
1785
  const i = e(n);
1786
1786
  if (i)
1787
1787
  return i;
1788
1788
  }
1789
1789
  return null;
1790
1790
  }
1791
- function di(n) {
1792
- Vr(n), n.forEach(function(t) {
1791
+ function gi(n) {
1792
+ zr(n), n.forEach(function(t) {
1793
1793
  n.forEach(function(e) {
1794
- t !== e && _t(t, e, xe);
1794
+ t !== e && _t(t, e, Pe);
1795
1795
  });
1796
1796
  });
1797
1797
  }
1798
- function zr(n, t, e, i) {
1798
+ function Jr(n, t, e, i) {
1799
1799
  n.forEach(function(r) {
1800
1800
  t.forEach(function(s) {
1801
1801
  _t(r, s, e), _t(s, r, i);
1802
1802
  });
1803
1803
  });
1804
1804
  }
1805
- function Jr(n, t) {
1805
+ function Wr(n, t) {
1806
1806
  if (n === t)
1807
1807
  return !0;
1808
1808
  const e = n.getUnits() === t.getUnits();
1809
- return (n.getCode() === t.getCode() || Bi(n, t) === xe) && e;
1809
+ return (n.getCode() === t.getCode() || Vi(n, t) === Pe) && e;
1810
1810
  }
1811
- function Bi(n, t) {
1811
+ function Vi(n, t) {
1812
1812
  const e = n.getCode(), i = t.getCode();
1813
- let r = ee(e, i);
1813
+ let r = ie(e, i);
1814
1814
  if (r)
1815
1815
  return r;
1816
1816
  let s = null, o = null;
1817
- for (const l of Yr)
1817
+ for (const l of Br)
1818
1818
  s || (s = l(n)), o || (o = l(t));
1819
1819
  if (!s && !o)
1820
1820
  return null;
1821
1821
  const a = "EPSG:4326";
1822
1822
  if (o)
1823
1823
  if (s)
1824
- r = ie(
1824
+ r = ne(
1825
1825
  s.inverse,
1826
1826
  o.forward
1827
1827
  );
1828
1828
  else {
1829
- const l = ee(e, a);
1830
- l && (r = ie(
1829
+ const l = ie(e, a);
1830
+ l && (r = ne(
1831
1831
  l,
1832
1832
  o.forward
1833
1833
  ));
1834
1834
  }
1835
1835
  else {
1836
- const l = ee(a, i);
1837
- l && (r = ie(
1836
+ const l = ie(a, i);
1837
+ l && (r = ne(
1838
1838
  s.inverse,
1839
1839
  l
1840
1840
  ));
1841
1841
  }
1842
- return r && (ae(n), ae(t), _t(n, t, r)), r;
1842
+ return r && (le(n), le(t), _t(n, t, r)), r;
1843
1843
  }
1844
- function ie(n, t) {
1844
+ function ne(n, t) {
1845
1845
  return function(e, i, r, s) {
1846
1846
  return i = n(e, i, r, s), t(i, i, r, s);
1847
1847
  };
1848
1848
  }
1849
- function le(n, t) {
1849
+ function he(n, t) {
1850
1850
  const e = x(n), i = x(t);
1851
- return Bi(e, i);
1852
- }
1853
- function Wr() {
1854
- di(si), di(ai), zr(
1855
- ai,
1856
- si,
1857
- Er,
1858
- xr
1851
+ return Vi(e, i);
1852
+ }
1853
+ function qr() {
1854
+ gi(oi), gi(li), Jr(
1855
+ li,
1856
+ oi,
1857
+ xr,
1858
+ Pr
1859
1859
  );
1860
1860
  }
1861
- Wr();
1861
+ qr();
1862
1862
  new Array(6);
1863
- function Vi() {
1863
+ function zi() {
1864
1864
  return [1, 0, 0, 1, 0, 0];
1865
1865
  }
1866
- function zi(n, t, e, i, r, s, o, a) {
1866
+ function Ji(n, t, e, i, r, s, o, a) {
1867
1867
  const l = Math.sin(s), h = Math.cos(s);
1868
1868
  return n[0] = i * h, n[1] = r * l, n[2] = -i * l, n[3] = r * h, n[4] = o * i * h - a * i * l + t, n[5] = o * r * l + a * r * h + e, n;
1869
1869
  }
1870
- function Ji(n, t, e, i, r, s, o) {
1870
+ function Wi(n, t, e, i, r, s, o) {
1871
1871
  s = s || [], o = o || 2;
1872
1872
  let a = 0;
1873
1873
  for (let l = t; l < e; l += i) {
@@ -1878,7 +1878,7 @@ function Ji(n, t, e, i, r, s, o) {
1878
1878
  }
1879
1879
  return s && s.length != a && (s.length = a), s;
1880
1880
  }
1881
- function Dr(n, t, e, i, r, s, o) {
1881
+ function Zr(n, t, e, i, r, s, o) {
1882
1882
  o = o || [];
1883
1883
  const a = Math.cos(r), l = Math.sin(r), h = s[0], c = s[1];
1884
1884
  let u = 0;
@@ -1890,7 +1890,7 @@ function Dr(n, t, e, i, r, s, o) {
1890
1890
  }
1891
1891
  return o && o.length != u && (o.length = u), o;
1892
1892
  }
1893
- function qr(n, t, e, i, r, s, o, a) {
1893
+ function Kr(n, t, e, i, r, s, o, a) {
1894
1894
  a = a || [];
1895
1895
  const l = o[0], h = o[1];
1896
1896
  let c = 0;
@@ -1902,7 +1902,7 @@ function qr(n, t, e, i, r, s, o, a) {
1902
1902
  }
1903
1903
  return a && a.length != c && (a.length = c), a;
1904
1904
  }
1905
- function Zr(n, t, e, i, r, s, o) {
1905
+ function Dr(n, t, e, i, r, s, o) {
1906
1906
  o = o || [];
1907
1907
  let a = 0;
1908
1908
  for (let l = t; l < e; l += i) {
@@ -1912,10 +1912,10 @@ function Zr(n, t, e, i, r, s, o) {
1912
1912
  }
1913
1913
  return o && o.length != a && (o.length = a), o;
1914
1914
  }
1915
- const gi = Vi(), Kr = [NaN, NaN];
1916
- class Wi extends Li {
1915
+ const fi = zi(), Qr = [NaN, NaN];
1916
+ class qi extends Ti {
1917
1917
  constructor() {
1918
- super(), this.extent_ = me(), this.extentRevision_ = -1, this.simplifiedGeometryMaxMinSquaredTolerance = 0, this.simplifiedGeometryRevision = 0, this.simplifyTransformedInternal = Fi(
1918
+ super(), this.extent_ = _e(), this.extentRevision_ = -1, this.simplifiedGeometryMaxMinSquaredTolerance = 0, this.simplifiedGeometryRevision = 0, this.simplifyTransformedInternal = Gi(
1919
1919
  (t, e, i) => {
1920
1920
  if (!i)
1921
1921
  return this.getSimplifiedGeometry(e);
@@ -1963,7 +1963,7 @@ class Wi extends Li {
1963
1963
  * @return {boolean} Contains (x, y).
1964
1964
  */
1965
1965
  containsXY(t, e) {
1966
- return this.closestPointXY(t, e, Kr, Number.MIN_VALUE) === 0;
1966
+ return this.closestPointXY(t, e, Qr, Number.MIN_VALUE) === 0;
1967
1967
  }
1968
1968
  /**
1969
1969
  * Return the closest point of the geometry to the passed point as
@@ -2004,9 +2004,9 @@ class Wi extends Li {
2004
2004
  getExtent(t) {
2005
2005
  if (this.extentRevision_ != this.getRevision()) {
2006
2006
  const e = this.computeExtent(this.extent_);
2007
- (isNaN(e[0]) || isNaN(e[1])) && _e(e), this.extentRevision_ = this.getRevision();
2007
+ (isNaN(e[0]) || isNaN(e[1])) && ve(e), this.extentRevision_ = this.getRevision();
2008
2008
  }
2009
- return mr(this.extent_, t);
2009
+ return _r(this.extent_, t);
2010
2010
  }
2011
2011
  /**
2012
2012
  * Rotate the geometry around a given coordinate. This modifies the geometry
@@ -2112,9 +2112,9 @@ class Wi extends Li {
2112
2112
  */
2113
2113
  transform(t, e) {
2114
2114
  const i = x(t), r = i.getUnits() == "tile-pixels" ? function(s, o, a) {
2115
- const l = i.getExtent(), h = i.getWorldExtent(), c = Nt(h) / Nt(l);
2116
- zi(
2117
- gi,
2115
+ const l = i.getExtent(), h = i.getWorldExtent(), c = Ot(h) / Ot(l);
2116
+ Ji(
2117
+ fi,
2118
2118
  h[0],
2119
2119
  h[3],
2120
2120
  c,
@@ -2123,20 +2123,20 @@ class Wi extends Li {
2123
2123
  0,
2124
2124
  0
2125
2125
  );
2126
- const u = Ji(
2126
+ const u = Wi(
2127
2127
  s,
2128
2128
  0,
2129
2129
  s.length,
2130
2130
  a,
2131
- gi,
2131
+ fi,
2132
2132
  o
2133
- ), d = le(i, e);
2133
+ ), d = he(i, e);
2134
2134
  return d ? d(u, u, a) : u;
2135
- } : le(i, e);
2135
+ } : he(i, e);
2136
2136
  return this.applyTransform(r), this;
2137
2137
  }
2138
2138
  }
2139
- class q extends Wi {
2139
+ class Z extends qi {
2140
2140
  constructor() {
2141
2141
  super(), this.layout = "XY", this.stride = 2, this.flatCoordinates;
2142
2142
  }
@@ -2147,7 +2147,7 @@ class q extends Wi {
2147
2147
  * @override
2148
2148
  */
2149
2149
  computeExtent(t) {
2150
- return ve(
2150
+ return Ce(
2151
2151
  this.flatCoordinates,
2152
2152
  0,
2153
2153
  this.flatCoordinates.length,
@@ -2225,7 +2225,7 @@ class q extends Wi {
2225
2225
  * @param {Array<number>} flatCoordinates Flat coordinates.
2226
2226
  */
2227
2227
  setFlatCoordinates(t, e) {
2228
- this.stride = fi(t), this.layout = t, this.flatCoordinates = e;
2228
+ this.stride = pi(t), this.layout = t, this.flatCoordinates = e;
2229
2229
  }
2230
2230
  /**
2231
2231
  * @abstract
@@ -2244,7 +2244,7 @@ class q extends Wi {
2244
2244
  setLayout(t, e, i) {
2245
2245
  let r;
2246
2246
  if (t)
2247
- r = fi(t);
2247
+ r = pi(t);
2248
2248
  else {
2249
2249
  for (let s = 0; s < i; ++s) {
2250
2250
  if (e.length === 0) {
@@ -2254,7 +2254,7 @@ class q extends Wi {
2254
2254
  e = /** @type {Array<unknown>} */
2255
2255
  e[0];
2256
2256
  }
2257
- r = e.length, t = Z(r);
2257
+ r = e.length, t = K(r);
2258
2258
  }
2259
2259
  this.layout = t, this.stride = r;
2260
2260
  }
@@ -2288,7 +2288,7 @@ class q extends Wi {
2288
2288
  const i = this.getFlatCoordinates();
2289
2289
  if (i) {
2290
2290
  const r = this.getStride();
2291
- Dr(
2291
+ Zr(
2292
2292
  i,
2293
2293
  0,
2294
2294
  i.length,
@@ -2310,11 +2310,11 @@ class q extends Wi {
2310
2310
  * @override
2311
2311
  */
2312
2312
  scale(t, e, i) {
2313
- e === void 0 && (e = t), i || (i = Yt(this.getExtent()));
2313
+ e === void 0 && (e = t), i || (i = Bt(this.getExtent()));
2314
2314
  const r = this.getFlatCoordinates();
2315
2315
  if (r) {
2316
2316
  const s = this.getStride();
2317
- qr(
2317
+ Kr(
2318
2318
  r,
2319
2319
  0,
2320
2320
  r.length,
@@ -2338,7 +2338,7 @@ class q extends Wi {
2338
2338
  const i = this.getFlatCoordinates();
2339
2339
  if (i) {
2340
2340
  const r = this.getStride();
2341
- Zr(
2341
+ Dr(
2342
2342
  i,
2343
2343
  0,
2344
2344
  i.length,
@@ -2350,22 +2350,22 @@ class q extends Wi {
2350
2350
  }
2351
2351
  }
2352
2352
  }
2353
- function Z(n) {
2353
+ function K(n) {
2354
2354
  let t;
2355
2355
  return n == 2 ? t = "XY" : n == 3 ? t = "XYZ" : n == 4 && (t = "XYZM"), /** @type {import("./Geometry.js").GeometryLayout} */
2356
2356
  t;
2357
2357
  }
2358
- function fi(n) {
2358
+ function pi(n) {
2359
2359
  let t;
2360
2360
  return n == "XY" ? t = 2 : n == "XYZ" || n == "XYM" ? t = 3 : n == "XYZM" && (t = 4), /** @type {number} */
2361
2361
  t;
2362
2362
  }
2363
- function Qr(n, t, e, i) {
2363
+ function ts(n, t, e, i) {
2364
2364
  for (let r = 0, s = e.length; r < s; ++r)
2365
2365
  n[t++] = e[r];
2366
2366
  return t;
2367
2367
  }
2368
- function zt(n, t, e, i) {
2368
+ function Jt(n, t, e, i) {
2369
2369
  for (let r = 0, s = e.length; r < s; ++r) {
2370
2370
  const o = e[r];
2371
2371
  for (let a = 0; a < i; ++a)
@@ -2377,7 +2377,7 @@ function $t(n, t, e, i, r) {
2377
2377
  r = r || [];
2378
2378
  let s = 0;
2379
2379
  for (let o = 0, a = e.length; o < a; ++o) {
2380
- const l = zt(
2380
+ const l = Jt(
2381
2381
  n,
2382
2382
  t,
2383
2383
  e[o],
@@ -2387,7 +2387,7 @@ function $t(n, t, e, i, r) {
2387
2387
  }
2388
2388
  return r.length = s, r;
2389
2389
  }
2390
- function Di(n, t, e, i, r) {
2390
+ function Zi(n, t, e, i, r) {
2391
2391
  r = r || [];
2392
2392
  let s = 0;
2393
2393
  for (let o = 0, a = e.length; o < a; ++o) {
@@ -2402,12 +2402,12 @@ function Di(n, t, e, i, r) {
2402
2402
  }
2403
2403
  return r.length = s, r;
2404
2404
  }
2405
- function qi(n, t, e, i) {
2405
+ function Ki(n, t, e, i) {
2406
2406
  const r = [];
2407
- let s = me();
2407
+ let s = _e();
2408
2408
  for (let o = 0, a = e.length; o < a; ++o) {
2409
2409
  const l = e[o];
2410
- s = ve(
2410
+ s = Ce(
2411
2411
  n,
2412
2412
  t,
2413
2413
  l[0],
@@ -2416,8 +2416,8 @@ function qi(n, t, e, i) {
2416
2416
  }
2417
2417
  return r;
2418
2418
  }
2419
- function ts(n, t, e, i, r) {
2420
- return !ur(
2419
+ function es(n, t, e, i, r) {
2420
+ return !dr(
2421
2421
  r,
2422
2422
  /**
2423
2423
  * @param {import("../../coordinate.js").Coordinate} coordinate Coordinate.
@@ -2443,7 +2443,7 @@ function H(n, t, e, i, r, s) {
2443
2443
  }
2444
2444
  return o !== 0;
2445
2445
  }
2446
- function Pe(n, t, e, i, r, s) {
2446
+ function Me(n, t, e, i, r, s) {
2447
2447
  if (e.length === 0 || !H(n, t, e[0], i, r, s))
2448
2448
  return !1;
2449
2449
  for (let o = 1, a = e.length; o < a; ++o)
@@ -2451,38 +2451,38 @@ function Pe(n, t, e, i, r, s) {
2451
2451
  return !1;
2452
2452
  return !0;
2453
2453
  }
2454
- function es(n, t, e, i, r, s) {
2454
+ function is(n, t, e, i, r, s) {
2455
2455
  if (e.length === 0)
2456
2456
  return !1;
2457
2457
  for (let o = 0, a = e.length; o < a; ++o) {
2458
2458
  const l = e[o];
2459
- if (Pe(n, t, l, i, r, s))
2459
+ if (Me(n, t, l, i, r, s))
2460
2460
  return !0;
2461
2461
  t = l[l.length - 1];
2462
2462
  }
2463
2463
  return !1;
2464
2464
  }
2465
- function Me(n, t, e, i, r, s, o) {
2465
+ function Se(n, t, e, i, r, s, o) {
2466
2466
  let a, l, h, c, u, d, g;
2467
2467
  const f = r[s + 1], p = [];
2468
- for (let v = 0, M = e.length; v < M; ++v) {
2468
+ for (let v = 0, S = e.length; v < S; ++v) {
2469
2469
  const E = e[v];
2470
2470
  for (c = n[E - i], d = n[E - i + 1], a = t; a < E; a += i)
2471
2471
  u = n[a], g = n[a + 1], (f <= d && g <= f || d <= f && f <= g) && (h = (f - d) / (g - d) * (u - c) + c, p.push(h)), c = u, d = g;
2472
2472
  }
2473
2473
  let _ = NaN, b = -1 / 0;
2474
- for (p.sort(Ai), c = p[0], a = 1, l = p.length; a < l; ++a) {
2474
+ for (p.sort(Fi), c = p[0], a = 1, l = p.length; a < l; ++a) {
2475
2475
  u = p[a];
2476
2476
  const v = Math.abs(u - c);
2477
- v > b && (h = (c + u) / 2, Pe(n, t, e, i, h, f) && (_ = h, b = v)), c = u;
2477
+ v > b && (h = (c + u) / 2, Me(n, t, e, i, h, f) && (_ = h, b = v)), c = u;
2478
2478
  }
2479
2479
  return isNaN(_) && (_ = r[s]), o ? (o.push(_, f, b), o) : [_, f, b];
2480
2480
  }
2481
- function Zi(n, t, e, i, r) {
2481
+ function Di(n, t, e, i, r) {
2482
2482
  let s = [];
2483
2483
  for (let o = 0, a = e.length; o < a; ++o) {
2484
2484
  const l = e[o];
2485
- s = Me(
2485
+ s = Se(
2486
2486
  n,
2487
2487
  t,
2488
2488
  l,
@@ -2494,7 +2494,7 @@ function Zi(n, t, e, i, r) {
2494
2494
  }
2495
2495
  return s;
2496
2496
  }
2497
- function Ht(n, t, e, i, r, s, o) {
2497
+ function Ut(n, t, e, i, r, s, o) {
2498
2498
  let a, l;
2499
2499
  const h = (e - t) / i;
2500
2500
  if (h === 1)
@@ -2508,15 +2508,15 @@ function Ht(n, t, e, i, r, s, o) {
2508
2508
  const b = n[_], v = n[_ + 1];
2509
2509
  d += Math.sqrt((b - c) * (b - c) + (v - u) * (v - u)), g.push(d), c = b, u = v;
2510
2510
  }
2511
- const f = r * d, p = er(g, f);
2511
+ const f = r * d, p = ir(g, f);
2512
2512
  p < 0 ? (l = (f - g[-p - 2]) / (g[-p - 1] - g[-p - 2]), a = t + (-p - 2) * i) : a = t + p * i;
2513
2513
  }
2514
2514
  o = o > 1 ? o : 2, s = s || new Array(o);
2515
2515
  for (let c = 0; c < o; ++c)
2516
- s[c] = a === void 0 ? NaN : l === void 0 ? n[a + c] : Ce(n[a + c], n[a + i + c], l);
2516
+ s[c] = a === void 0 ? NaN : l === void 0 ? n[a + c] : we(n[a + c], n[a + i + c], l);
2517
2517
  return s;
2518
2518
  }
2519
- function he(n, t, e, i, r, s) {
2519
+ function ce(n, t, e, i, r, s) {
2520
2520
  if (e == t)
2521
2521
  return null;
2522
2522
  let o;
@@ -2538,7 +2538,7 @@ function he(n, t, e, i, r, s) {
2538
2538
  o = [];
2539
2539
  for (let d = 0; d < i - 1; ++d)
2540
2540
  o.push(
2541
- Ce(
2541
+ we(
2542
2542
  n[(a - 1) * i + d],
2543
2543
  n[a * i + d],
2544
2544
  u
@@ -2546,9 +2546,9 @@ function he(n, t, e, i, r, s) {
2546
2546
  );
2547
2547
  return o.push(r), o;
2548
2548
  }
2549
- function is(n, t, e, i, r, s, o) {
2549
+ function ns(n, t, e, i, r, s, o) {
2550
2550
  if (o)
2551
- return he(
2551
+ return ce(
2552
2552
  n,
2553
2553
  t,
2554
2554
  e[e.length - 1],
@@ -2567,7 +2567,7 @@ function is(n, t, e, i, r, s, o) {
2567
2567
  if (r < n[t + i - 1])
2568
2568
  return null;
2569
2569
  if (r <= n[c - 1])
2570
- return he(
2570
+ return ce(
2571
2571
  n,
2572
2572
  t,
2573
2573
  c,
@@ -2580,7 +2580,7 @@ function is(n, t, e, i, r, s, o) {
2580
2580
  }
2581
2581
  return null;
2582
2582
  }
2583
- function ns(n, t, e, i) {
2583
+ function rs(n, t, e, i) {
2584
2584
  for (; t < e - i; ) {
2585
2585
  for (let r = 0; r < i; ++r) {
2586
2586
  const s = n[t + r];
@@ -2597,7 +2597,7 @@ function $e(n, t, e, i) {
2597
2597
  }
2598
2598
  return r === 0 ? void 0 : r > 0;
2599
2599
  }
2600
- function Se(n, t, e, i, r) {
2600
+ function Ae(n, t, e, i, r) {
2601
2601
  r = r !== void 0 ? r : !1;
2602
2602
  for (let s = 0, o = e.length; s < o; ++s) {
2603
2603
  const a = e[s], l = $e(
@@ -2615,16 +2615,16 @@ function Se(n, t, e, i, r) {
2615
2615
  }
2616
2616
  return !0;
2617
2617
  }
2618
- function Ki(n, t, e, i, r) {
2618
+ function Qi(n, t, e, i, r) {
2619
2619
  for (let s = 0, o = e.length; s < o; ++s) {
2620
2620
  const a = e[s];
2621
- if (!Se(n, t, a, i, r))
2621
+ if (!Ae(n, t, a, i, r))
2622
2622
  return !1;
2623
2623
  a.length && (t = a[a.length - 1]);
2624
2624
  }
2625
2625
  return !0;
2626
2626
  }
2627
- function Ut(n, t, e, i, r) {
2627
+ function jt(n, t, e, i, r) {
2628
2628
  r = r !== void 0 ? r : !1;
2629
2629
  for (let s = 0, o = e.length; s < o; ++s) {
2630
2630
  const a = e[s], l = $e(
@@ -2633,13 +2633,13 @@ function Ut(n, t, e, i, r) {
2633
2633
  a,
2634
2634
  i
2635
2635
  );
2636
- (s === 0 ? r && l || !r && !l : r && !l || !r && l) && ns(n, t, a, i), t = a;
2636
+ (s === 0 ? r && l || !r && !l : r && !l || !r && l) && rs(n, t, a, i), t = a;
2637
2637
  }
2638
2638
  return t;
2639
2639
  }
2640
- function ce(n, t, e, i, r) {
2640
+ function ue(n, t, e, i, r) {
2641
2641
  for (let s = 0, o = e.length; s < o; ++s)
2642
- t = Ut(
2642
+ t = jt(
2643
2643
  n,
2644
2644
  t,
2645
2645
  e[s],
@@ -2648,7 +2648,7 @@ function ce(n, t, e, i, r) {
2648
2648
  );
2649
2649
  return t;
2650
2650
  }
2651
- function rs(n, t) {
2651
+ function ss(n, t) {
2652
2652
  const e = [];
2653
2653
  let i = 0, r = 0, s;
2654
2654
  for (let o = 0, a = t.length; o < a; ++o) {
@@ -2664,7 +2664,7 @@ function rs(n, t) {
2664
2664
  }
2665
2665
  return e;
2666
2666
  }
2667
- function Jt(n, t, e, i, r, s, o) {
2667
+ function Wt(n, t, e, i, r, s, o) {
2668
2668
  const a = (e - t) / i;
2669
2669
  if (a < 3) {
2670
2670
  for (; t < e; t += i)
@@ -2680,8 +2680,8 @@ function Jt(n, t, e, i, r, s, o) {
2680
2680
  let g = 0;
2681
2681
  const f = n[d], p = n[d + 1], _ = n[u], b = n[u + 1];
2682
2682
  for (let v = d + i; v < u; v += i) {
2683
- const M = n[v], E = n[v + 1], T = vr(M, E, f, p, _, b);
2684
- T > g && (c = v, g = T);
2683
+ const S = n[v], E = n[v + 1], I = Cr(S, E, f, p, _, b);
2684
+ I > g && (c = v, g = I);
2685
2685
  }
2686
2686
  g > r && (l[(c - t) / i] = 1, d + i < c && h.push(d, c), c + i < u && h.push(c, u));
2687
2687
  }
@@ -2689,10 +2689,10 @@ function Jt(n, t, e, i, r, s, o) {
2689
2689
  l[u] && (s[o++] = n[t + u * i], s[o++] = n[t + u * i + 1]);
2690
2690
  return o;
2691
2691
  }
2692
- function Qi(n, t, e, i, r, s, o, a) {
2692
+ function tn(n, t, e, i, r, s, o, a) {
2693
2693
  for (let l = 0, h = e.length; l < h; ++l) {
2694
2694
  const c = e[l];
2695
- o = Jt(
2695
+ o = Wt(
2696
2696
  n,
2697
2697
  t,
2698
2698
  c,
@@ -2707,7 +2707,7 @@ function Qi(n, t, e, i, r, s, o, a) {
2707
2707
  function Q(n, t) {
2708
2708
  return t * Math.round(n / t);
2709
2709
  }
2710
- function ss(n, t, e, i, r, s, o) {
2710
+ function os(n, t, e, i, r, s, o) {
2711
2711
  if (t == e)
2712
2712
  return o;
2713
2713
  let a = Q(n[t], r), l = Q(n[t + 1], r);
@@ -2730,10 +2730,10 @@ function ss(n, t, e, i, r, s, o) {
2730
2730
  }
2731
2731
  return s[o++] = h, s[o++] = c, o;
2732
2732
  }
2733
- function Ae(n, t, e, i, r, s, o, a) {
2733
+ function Fe(n, t, e, i, r, s, o, a) {
2734
2734
  for (let l = 0, h = e.length; l < h; ++l) {
2735
2735
  const c = e[l];
2736
- o = ss(
2736
+ o = os(
2737
2737
  n,
2738
2738
  t,
2739
2739
  c,
@@ -2745,10 +2745,10 @@ function Ae(n, t, e, i, r, s, o, a) {
2745
2745
  }
2746
2746
  return o;
2747
2747
  }
2748
- function os(n, t, e, i, r, s, o, a) {
2748
+ function as(n, t, e, i, r, s, o, a) {
2749
2749
  for (let l = 0, h = e.length; l < h; ++l) {
2750
2750
  const c = e[l], u = [];
2751
- o = Ae(
2751
+ o = Fe(
2752
2752
  n,
2753
2753
  t,
2754
2754
  c,
@@ -2761,7 +2761,7 @@ function os(n, t, e, i, r, s, o, a) {
2761
2761
  }
2762
2762
  return o;
2763
2763
  }
2764
- class B extends Wi {
2764
+ class B extends qi {
2765
2765
  /**
2766
2766
  * @param {Array<Geometry>} geometries Geometries.
2767
2767
  */
@@ -2772,7 +2772,7 @@ class B extends Wi {
2772
2772
  * @private
2773
2773
  */
2774
2774
  unlistenGeometriesChange_() {
2775
- this.changeEventsKeys_.forEach(Rt), this.changeEventsKeys_.length = 0;
2775
+ this.changeEventsKeys_.forEach(Nt), this.changeEventsKeys_.length = 0;
2776
2776
  }
2777
2777
  /**
2778
2778
  * @private
@@ -2781,7 +2781,7 @@ class B extends Wi {
2781
2781
  const t = this.geometries_;
2782
2782
  for (let e = 0, i = t.length; e < i; ++e)
2783
2783
  this.changeEventsKeys_.push(
2784
- mt(t[e], ye.CHANGE, this.changed, this)
2784
+ mt(t[e], me.CHANGE, this.changed, this)
2785
2785
  );
2786
2786
  }
2787
2787
  /**
@@ -2792,7 +2792,7 @@ class B extends Wi {
2792
2792
  */
2793
2793
  clone() {
2794
2794
  const t = new B(
2795
- ne(this.geometries_)
2795
+ re(this.geometries_)
2796
2796
  );
2797
2797
  return t.applyProperties(this), t;
2798
2798
  }
@@ -2805,7 +2805,7 @@ class B extends Wi {
2805
2805
  * @override
2806
2806
  */
2807
2807
  closestPointXY(t, e, i, r) {
2808
- if (r < D(this.getExtent(), t, e))
2808
+ if (r < q(this.getExtent(), t, e))
2809
2809
  return r;
2810
2810
  const s = this.geometries_;
2811
2811
  for (let o = 0, a = s.length; o < a; ++o)
@@ -2837,10 +2837,10 @@ class B extends Wi {
2837
2837
  * @override
2838
2838
  */
2839
2839
  computeExtent(t) {
2840
- _e(t);
2840
+ ve(t);
2841
2841
  const e = this.geometries_;
2842
2842
  for (let i = 0, r = e.length; i < r; ++i)
2843
- hr(t, e[i].getExtent());
2843
+ cr(t, e[i].getExtent());
2844
2844
  return t;
2845
2845
  }
2846
2846
  /**
@@ -2849,7 +2849,7 @@ class B extends Wi {
2849
2849
  * @api
2850
2850
  */
2851
2851
  getGeometries() {
2852
- return ne(this.geometries_);
2852
+ return re(this.geometries_);
2853
2853
  }
2854
2854
  /**
2855
2855
  * @return {Array<Geometry>} Geometries.
@@ -2944,7 +2944,7 @@ class B extends Wi {
2944
2944
  * @override
2945
2945
  */
2946
2946
  scale(t, e, i) {
2947
- i || (i = Yt(this.getExtent()));
2947
+ i || (i = Bt(this.getExtent()));
2948
2948
  const r = this.geometries_;
2949
2949
  for (let s = 0, o = r.length; s < o; ++s)
2950
2950
  r[s].scale(t, e, i);
@@ -2956,7 +2956,7 @@ class B extends Wi {
2956
2956
  * @api
2957
2957
  */
2958
2958
  setGeometries(t) {
2959
- this.setGeometriesArray(ne(t));
2959
+ this.setGeometriesArray(re(t));
2960
2960
  }
2961
2961
  /**
2962
2962
  * @param {Array<Geometry>} geometries Geometries.
@@ -3002,10 +3002,10 @@ class B extends Wi {
3002
3002
  this.unlistenGeometriesChange_(), super.disposeInternal();
3003
3003
  }
3004
3004
  }
3005
- function ne(n) {
3005
+ function re(n) {
3006
3006
  return n.map((t) => t.clone());
3007
3007
  }
3008
- function tn(n, t, e, i) {
3008
+ function en(n, t, e, i) {
3009
3009
  let r = 0;
3010
3010
  const s = n[e - i], o = n[e - i + 1];
3011
3011
  let a = 0, l = 0;
@@ -3015,23 +3015,23 @@ function tn(n, t, e, i) {
3015
3015
  }
3016
3016
  return r / 2;
3017
3017
  }
3018
- function en(n, t, e, i) {
3018
+ function nn(n, t, e, i) {
3019
3019
  let r = 0;
3020
3020
  for (let s = 0, o = e.length; s < o; ++s) {
3021
3021
  const a = e[s];
3022
- r += tn(n, t, a, i), t = a;
3022
+ r += en(n, t, a, i), t = a;
3023
3023
  }
3024
3024
  return r;
3025
3025
  }
3026
- function as(n, t, e, i) {
3026
+ function ls(n, t, e, i) {
3027
3027
  let r = 0;
3028
3028
  for (let s = 0, o = e.length; s < o; ++s) {
3029
3029
  const a = e[s];
3030
- r += en(n, t, a, i), t = a[a.length - 1];
3030
+ r += nn(n, t, a, i), t = a[a.length - 1];
3031
3031
  }
3032
3032
  return r;
3033
3033
  }
3034
- function pi(n, t, e, i, r, s, o) {
3034
+ function yi(n, t, e, i, r, s, o) {
3035
3035
  const a = n[t], l = n[t + 1], h = n[e] - a, c = n[e + 1] - l;
3036
3036
  let u;
3037
3037
  if (h === 0 && c === 0)
@@ -3042,7 +3042,7 @@ function pi(n, t, e, i, r, s, o) {
3042
3042
  u = e;
3043
3043
  else if (d > 0) {
3044
3044
  for (let g = 0; g < i; ++g)
3045
- o[g] = Ce(
3045
+ o[g] = we(
3046
3046
  n[t + g],
3047
3047
  n[e + g],
3048
3048
  d
@@ -3056,7 +3056,7 @@ function pi(n, t, e, i, r, s, o) {
3056
3056
  o[d] = n[u + d];
3057
3057
  o.length = i;
3058
3058
  }
3059
- function Fe(n, t, e, i, r) {
3059
+ function Ge(n, t, e, i, r) {
3060
3060
  let s = n[t], o = n[t + 1];
3061
3061
  for (t += i; t < e; t += i) {
3062
3062
  const a = n[t], l = n[t + 1], h = X(s, o, a, l);
@@ -3064,21 +3064,21 @@ function Fe(n, t, e, i, r) {
3064
3064
  }
3065
3065
  return r;
3066
3066
  }
3067
- function Ge(n, t, e, i, r) {
3067
+ function Le(n, t, e, i, r) {
3068
3068
  for (let s = 0, o = e.length; s < o; ++s) {
3069
3069
  const a = e[s];
3070
- r = Fe(n, t, a, i, r), t = a;
3070
+ r = Ge(n, t, a, i, r), t = a;
3071
3071
  }
3072
3072
  return r;
3073
3073
  }
3074
- function ls(n, t, e, i, r) {
3074
+ function hs(n, t, e, i, r) {
3075
3075
  for (let s = 0, o = e.length; s < o; ++s) {
3076
3076
  const a = e[s];
3077
- r = Ge(n, t, a, i, r), t = a[a.length - 1];
3077
+ r = Le(n, t, a, i, r), t = a[a.length - 1];
3078
3078
  }
3079
3079
  return r;
3080
3080
  }
3081
- function Te(n, t, e, i, r, s, o, a, l, h, c) {
3081
+ function Ie(n, t, e, i, r, s, o, a, l, h, c) {
3082
3082
  if (t == e)
3083
3083
  return h;
3084
3084
  let u, d;
@@ -3098,7 +3098,7 @@ function Te(n, t, e, i, r, s, o, a, l, h, c) {
3098
3098
  c = c || [NaN, NaN];
3099
3099
  let g = t + i;
3100
3100
  for (; g < e; )
3101
- if (pi(
3101
+ if (yi(
3102
3102
  n,
3103
3103
  g - i,
3104
3104
  g,
@@ -3115,7 +3115,7 @@ function Te(n, t, e, i, r, s, o, a, l, h, c) {
3115
3115
  (Math.sqrt(d) - Math.sqrt(h)) / r | 0,
3116
3116
  1
3117
3117
  );
3118
- if (s && (pi(
3118
+ if (s && (yi(
3119
3119
  n,
3120
3120
  e - i,
3121
3121
  t,
@@ -3130,11 +3130,11 @@ function Te(n, t, e, i, r, s, o, a, l, h, c) {
3130
3130
  }
3131
3131
  return h;
3132
3132
  }
3133
- function Ie(n, t, e, i, r, s, o, a, l, h, c) {
3133
+ function Re(n, t, e, i, r, s, o, a, l, h, c) {
3134
3134
  c = c || [NaN, NaN];
3135
3135
  for (let u = 0, d = e.length; u < d; ++u) {
3136
3136
  const g = e[u];
3137
- h = Te(
3137
+ h = Ie(
3138
3138
  n,
3139
3139
  t,
3140
3140
  g,
@@ -3150,11 +3150,11 @@ function Ie(n, t, e, i, r, s, o, a, l, h, c) {
3150
3150
  }
3151
3151
  return h;
3152
3152
  }
3153
- function hs(n, t, e, i, r, s, o, a, l, h, c) {
3153
+ function cs(n, t, e, i, r, s, o, a, l, h, c) {
3154
3154
  c = c || [NaN, NaN];
3155
3155
  for (let u = 0, d = e.length; u < d; ++u) {
3156
3156
  const g = e[u];
3157
- h = Ie(
3157
+ h = Re(
3158
3158
  n,
3159
3159
  t,
3160
3160
  g,
@@ -3170,19 +3170,19 @@ function hs(n, t, e, i, r, s, o, a, l, h, c) {
3170
3170
  }
3171
3171
  return h;
3172
3172
  }
3173
- function Wt(n, t, e, i, r) {
3173
+ function qt(n, t, e, i, r) {
3174
3174
  r = r !== void 0 ? r : [];
3175
3175
  let s = 0;
3176
3176
  for (let o = t; o < e; o += i)
3177
3177
  r[s++] = n.slice(o, o + i);
3178
3178
  return r.length = s, r;
3179
3179
  }
3180
- function Le(n, t, e, i, r) {
3180
+ function Te(n, t, e, i, r) {
3181
3181
  r = r !== void 0 ? r : [];
3182
3182
  let s = 0;
3183
3183
  for (let o = 0, a = e.length; o < a; ++o) {
3184
3184
  const l = e[o];
3185
- r[s++] = Wt(
3185
+ r[s++] = qt(
3186
3186
  n,
3187
3187
  t,
3188
3188
  l,
@@ -3192,12 +3192,12 @@ function Le(n, t, e, i, r) {
3192
3192
  }
3193
3193
  return r.length = s, r;
3194
3194
  }
3195
- function cs(n, t, e, i, r) {
3195
+ function us(n, t, e, i, r) {
3196
3196
  r = r !== void 0 ? r : [];
3197
3197
  let s = 0;
3198
3198
  for (let o = 0, a = e.length; o < a; ++o) {
3199
3199
  const l = e[o];
3200
- r[s++] = l.length === 1 && l[0] === t ? [] : Le(
3200
+ r[s++] = l.length === 1 && l[0] === t ? [] : Te(
3201
3201
  n,
3202
3202
  t,
3203
3203
  l,
@@ -3207,7 +3207,7 @@ function cs(n, t, e, i, r) {
3207
3207
  }
3208
3208
  return r.length = s, r;
3209
3209
  }
3210
- class vt extends q {
3210
+ class vt extends Z {
3211
3211
  /**
3212
3212
  * @param {Array<import("../coordinate.js").Coordinate>|Array<number>} coordinates Coordinates.
3213
3213
  * For internal use, flat coordinates in combination with `layout` are also accepted.
@@ -3242,15 +3242,15 @@ class vt extends q {
3242
3242
  * @override
3243
3243
  */
3244
3244
  closestPointXY(t, e, i, r) {
3245
- return r < D(this.getExtent(), t, e) ? r : (this.maxDeltaRevision_ != this.getRevision() && (this.maxDelta_ = Math.sqrt(
3246
- Fe(
3245
+ return r < q(this.getExtent(), t, e) ? r : (this.maxDeltaRevision_ != this.getRevision() && (this.maxDelta_ = Math.sqrt(
3246
+ Ge(
3247
3247
  this.flatCoordinates,
3248
3248
  0,
3249
3249
  this.flatCoordinates.length,
3250
3250
  this.stride,
3251
3251
  0
3252
3252
  )
3253
- ), this.maxDeltaRevision_ = this.getRevision()), Te(
3253
+ ), this.maxDeltaRevision_ = this.getRevision()), Ie(
3254
3254
  this.flatCoordinates,
3255
3255
  0,
3256
3256
  this.flatCoordinates.length,
@@ -3269,7 +3269,7 @@ class vt extends q {
3269
3269
  * @api
3270
3270
  */
3271
3271
  getArea() {
3272
- return tn(
3272
+ return en(
3273
3273
  this.flatCoordinates,
3274
3274
  0,
3275
3275
  this.flatCoordinates.length,
@@ -3283,7 +3283,7 @@ class vt extends q {
3283
3283
  * @override
3284
3284
  */
3285
3285
  getCoordinates() {
3286
- return Wt(
3286
+ return qt(
3287
3287
  this.flatCoordinates,
3288
3288
  0,
3289
3289
  this.flatCoordinates.length,
@@ -3298,7 +3298,7 @@ class vt extends q {
3298
3298
  */
3299
3299
  getSimplifiedGeometryInternal(t) {
3300
3300
  const e = [];
3301
- return e.length = Jt(
3301
+ return e.length = Wt(
3302
3302
  this.flatCoordinates,
3303
3303
  0,
3304
3304
  this.flatCoordinates.length,
@@ -3335,7 +3335,7 @@ class vt extends q {
3335
3335
  * @override
3336
3336
  */
3337
3337
  setCoordinates(t, e) {
3338
- this.setLayout(e, t, 1), this.flatCoordinates || (this.flatCoordinates = []), this.flatCoordinates.length = zt(
3338
+ this.setLayout(e, t, 1), this.flatCoordinates || (this.flatCoordinates = []), this.flatCoordinates.length = Jt(
3339
3339
  this.flatCoordinates,
3340
3340
  0,
3341
3341
  t,
@@ -3343,7 +3343,7 @@ class vt extends q {
3343
3343
  ), this.changed();
3344
3344
  }
3345
3345
  }
3346
- function nn(n, t, e, i, r) {
3346
+ function rn(n, t, e, i, r) {
3347
3347
  let s;
3348
3348
  for (t += i; t < e; t += i)
3349
3349
  if (s = r(
@@ -3353,8 +3353,8 @@ function nn(n, t, e, i, r) {
3353
3353
  return s;
3354
3354
  return !1;
3355
3355
  }
3356
- function Dt(n, t, e, i, r, s) {
3357
- return s = s ?? ki(me(), n, t, e, i), yr(r, s) ? s[0] >= r[0] && s[2] <= r[2] || s[1] >= r[1] && s[3] <= r[3] ? !0 : nn(
3356
+ function Zt(n, t, e, i, r, s) {
3357
+ return s = s ?? Hi(_e(), n, t, e, i), mr(r, s) ? s[0] >= r[0] && s[2] <= r[2] || s[1] >= r[1] && s[3] <= r[3] ? !0 : rn(
3358
3358
  n,
3359
3359
  t,
3360
3360
  e,
@@ -3366,20 +3366,20 @@ function Dt(n, t, e, i, r, s) {
3366
3366
  * `false` otherwise.
3367
3367
  */
3368
3368
  function(o, a) {
3369
- return _r(r, o, a);
3369
+ return vr(r, o, a);
3370
3370
  }
3371
3371
  ) : !1;
3372
3372
  }
3373
- function us(n, t, e, i, r) {
3373
+ function ds(n, t, e, i, r) {
3374
3374
  for (let s = 0, o = e.length; s < o; ++s) {
3375
- if (Dt(n, t, e[s], i, r))
3375
+ if (Zt(n, t, e[s], i, r))
3376
3376
  return !0;
3377
3377
  t = e[s];
3378
3378
  }
3379
3379
  return !1;
3380
3380
  }
3381
- function ds(n, t, e, i, r) {
3382
- return !!(Dt(n, t, e, i, r) || H(
3381
+ function gs(n, t, e, i, r) {
3382
+ return !!(Zt(n, t, e, i, r) || H(
3383
3383
  n,
3384
3384
  t,
3385
3385
  e,
@@ -3409,19 +3409,19 @@ function ds(n, t, e, i, r) {
3409
3409
  r[3]
3410
3410
  ));
3411
3411
  }
3412
- function rn(n, t, e, i, r) {
3413
- if (!ds(n, t, e[0], i, r))
3412
+ function sn(n, t, e, i, r) {
3413
+ if (!gs(n, t, e[0], i, r))
3414
3414
  return !1;
3415
3415
  if (e.length === 1)
3416
3416
  return !0;
3417
3417
  for (let s = 1, o = e.length; s < o; ++s)
3418
- if (ts(
3418
+ if (es(
3419
3419
  n,
3420
3420
  e[s - 1],
3421
3421
  e[s],
3422
3422
  i,
3423
3423
  r
3424
- ) && !Dt(
3424
+ ) && !Zt(
3425
3425
  n,
3426
3426
  e[s - 1],
3427
3427
  e[s],
@@ -3431,16 +3431,16 @@ function rn(n, t, e, i, r) {
3431
3431
  return !1;
3432
3432
  return !0;
3433
3433
  }
3434
- function gs(n, t, e, i, r) {
3434
+ function fs(n, t, e, i, r) {
3435
3435
  for (let s = 0, o = e.length; s < o; ++s) {
3436
3436
  const a = e[s];
3437
- if (rn(n, t, a, i, r))
3437
+ if (sn(n, t, a, i, r))
3438
3438
  return !0;
3439
3439
  t = a[a.length - 1];
3440
3440
  }
3441
3441
  return !1;
3442
3442
  }
3443
- function fs(n, t, e, i) {
3443
+ function ps(n, t, e, i) {
3444
3444
  let r = n[t], s = n[t + 1], o = 0;
3445
3445
  for (let a = t + i; a < e; a += i) {
3446
3446
  const l = n[a], h = n[a + 1];
@@ -3448,7 +3448,7 @@ function fs(n, t, e, i) {
3448
3448
  }
3449
3449
  return o;
3450
3450
  }
3451
- class V extends q {
3451
+ class V extends Z {
3452
3452
  /**
3453
3453
  * @param {Array<import("../coordinate.js").Coordinate>|Array<number>} coordinates Coordinates.
3454
3454
  * For internal use, flat coordinates in combination with `layout` are also accepted.
@@ -3471,7 +3471,7 @@ class V extends q {
3471
3471
  * @api
3472
3472
  */
3473
3473
  appendCoordinate(t) {
3474
- S(this.flatCoordinates, t), this.changed();
3474
+ A(this.flatCoordinates, t), this.changed();
3475
3475
  }
3476
3476
  /**
3477
3477
  * Make a complete copy of the geometry.
@@ -3495,15 +3495,15 @@ class V extends q {
3495
3495
  * @override
3496
3496
  */
3497
3497
  closestPointXY(t, e, i, r) {
3498
- return r < D(this.getExtent(), t, e) ? r : (this.maxDeltaRevision_ != this.getRevision() && (this.maxDelta_ = Math.sqrt(
3499
- Fe(
3498
+ return r < q(this.getExtent(), t, e) ? r : (this.maxDeltaRevision_ != this.getRevision() && (this.maxDelta_ = Math.sqrt(
3499
+ Ge(
3500
3500
  this.flatCoordinates,
3501
3501
  0,
3502
3502
  this.flatCoordinates.length,
3503
3503
  this.stride,
3504
3504
  0
3505
3505
  )
3506
- ), this.maxDeltaRevision_ = this.getRevision()), Te(
3506
+ ), this.maxDeltaRevision_ = this.getRevision()), Ie(
3507
3507
  this.flatCoordinates,
3508
3508
  0,
3509
3509
  this.flatCoordinates.length,
@@ -3528,7 +3528,7 @@ class V extends q {
3528
3528
  * @api
3529
3529
  */
3530
3530
  forEachSegment(t) {
3531
- return nn(
3531
+ return rn(
3532
3532
  this.flatCoordinates,
3533
3533
  0,
3534
3534
  this.flatCoordinates.length,
@@ -3551,7 +3551,7 @@ class V extends q {
3551
3551
  * @api
3552
3552
  */
3553
3553
  getCoordinateAtM(t, e) {
3554
- return this.layout != "XYM" && this.layout != "XYZM" ? null : (e = e !== void 0 ? e : !1, he(
3554
+ return this.layout != "XYM" && this.layout != "XYZM" ? null : (e = e !== void 0 ? e : !1, ce(
3555
3555
  this.flatCoordinates,
3556
3556
  0,
3557
3557
  this.flatCoordinates.length,
@@ -3567,7 +3567,7 @@ class V extends q {
3567
3567
  * @override
3568
3568
  */
3569
3569
  getCoordinates() {
3570
- return Wt(
3570
+ return qt(
3571
3571
  this.flatCoordinates,
3572
3572
  0,
3573
3573
  this.flatCoordinates.length,
@@ -3585,7 +3585,7 @@ class V extends q {
3585
3585
  * @api
3586
3586
  */
3587
3587
  getCoordinateAt(t, e) {
3588
- return Ht(
3588
+ return Ut(
3589
3589
  this.flatCoordinates,
3590
3590
  0,
3591
3591
  this.flatCoordinates.length,
@@ -3601,7 +3601,7 @@ class V extends q {
3601
3601
  * @api
3602
3602
  */
3603
3603
  getLength() {
3604
- return fs(
3604
+ return ps(
3605
3605
  this.flatCoordinates,
3606
3606
  0,
3607
3607
  this.flatCoordinates.length,
@@ -3626,7 +3626,7 @@ class V extends q {
3626
3626
  */
3627
3627
  getSimplifiedGeometryInternal(t) {
3628
3628
  const e = [];
3629
- return e.length = Jt(
3629
+ return e.length = Wt(
3630
3630
  this.flatCoordinates,
3631
3631
  0,
3632
3632
  this.flatCoordinates.length,
@@ -3653,7 +3653,7 @@ class V extends q {
3653
3653
  * @override
3654
3654
  */
3655
3655
  intersectsExtent(t) {
3656
- return Dt(
3656
+ return Zt(
3657
3657
  this.flatCoordinates,
3658
3658
  0,
3659
3659
  this.flatCoordinates.length,
@@ -3670,7 +3670,7 @@ class V extends q {
3670
3670
  * @override
3671
3671
  */
3672
3672
  setCoordinates(t, e) {
3673
- this.setLayout(e, t, 1), this.flatCoordinates || (this.flatCoordinates = []), this.flatCoordinates.length = zt(
3673
+ this.setLayout(e, t, 1), this.flatCoordinates || (this.flatCoordinates = []), this.flatCoordinates.length = Jt(
3674
3674
  this.flatCoordinates,
3675
3675
  0,
3676
3676
  t,
@@ -3678,7 +3678,7 @@ class V extends q {
3678
3678
  ), this.changed();
3679
3679
  }
3680
3680
  }
3681
- class Ct extends q {
3681
+ class Ct extends Z {
3682
3682
  /**
3683
3683
  * @param {Array<Array<import("../coordinate.js").Coordinate>|LineString>|Array<number>} coordinates
3684
3684
  * Coordinates or LineString geometries. (For internal use, flat coordinates in
@@ -3706,7 +3706,7 @@ class Ct extends q {
3706
3706
  ), s = [], o = [];
3707
3707
  for (let l = 0, h = r.length; l < h; ++l) {
3708
3708
  const c = r[l];
3709
- S(s, c.getFlatCoordinates()), o.push(s.length);
3709
+ A(s, c.getFlatCoordinates()), o.push(s.length);
3710
3710
  }
3711
3711
  const a = r.length === 0 ? this.getLayout() : r[0].getLayout();
3712
3712
  this.setFlatCoordinates(a, s), this.ends_ = o;
@@ -3718,7 +3718,7 @@ class Ct extends q {
3718
3718
  * @api
3719
3719
  */
3720
3720
  appendLineString(t) {
3721
- S(this.flatCoordinates, t.getFlatCoordinates().slice()), this.ends_.push(this.flatCoordinates.length), this.changed();
3721
+ A(this.flatCoordinates, t.getFlatCoordinates().slice()), this.ends_.push(this.flatCoordinates.length), this.changed();
3722
3722
  }
3723
3723
  /**
3724
3724
  * Make a complete copy of the geometry.
@@ -3743,15 +3743,15 @@ class Ct extends q {
3743
3743
  * @override
3744
3744
  */
3745
3745
  closestPointXY(t, e, i, r) {
3746
- return r < D(this.getExtent(), t, e) ? r : (this.maxDeltaRevision_ != this.getRevision() && (this.maxDelta_ = Math.sqrt(
3747
- Ge(
3746
+ return r < q(this.getExtent(), t, e) ? r : (this.maxDeltaRevision_ != this.getRevision() && (this.maxDelta_ = Math.sqrt(
3747
+ Le(
3748
3748
  this.flatCoordinates,
3749
3749
  0,
3750
3750
  this.ends_,
3751
3751
  this.stride,
3752
3752
  0
3753
3753
  )
3754
- ), this.maxDeltaRevision_ = this.getRevision()), Ie(
3754
+ ), this.maxDeltaRevision_ = this.getRevision()), Re(
3755
3755
  this.flatCoordinates,
3756
3756
  0,
3757
3757
  this.ends_,
@@ -3787,7 +3787,7 @@ class Ct extends q {
3787
3787
  * @api
3788
3788
  */
3789
3789
  getCoordinateAtM(t, e, i) {
3790
- return this.layout != "XYM" && this.layout != "XYZM" || this.flatCoordinates.length === 0 ? null : (e = e !== void 0 ? e : !1, i = i !== void 0 ? i : !1, is(
3790
+ return this.layout != "XYM" && this.layout != "XYZM" || this.flatCoordinates.length === 0 ? null : (e = e !== void 0 ? e : !1, i = i !== void 0 ? i : !1, ns(
3791
3791
  this.flatCoordinates,
3792
3792
  0,
3793
3793
  this.ends_,
@@ -3804,7 +3804,7 @@ class Ct extends q {
3804
3804
  * @override
3805
3805
  */
3806
3806
  getCoordinates() {
3807
- return Le(
3807
+ return Te(
3808
3808
  this.flatCoordinates,
3809
3809
  0,
3810
3810
  this.ends_,
@@ -3857,14 +3857,14 @@ class Ct extends q {
3857
3857
  let i = 0;
3858
3858
  const r = this.ends_, s = this.stride;
3859
3859
  for (let o = 0, a = r.length; o < a; ++o) {
3860
- const l = r[o], h = Ht(
3860
+ const l = r[o], h = Ut(
3861
3861
  e,
3862
3862
  i,
3863
3863
  l,
3864
3864
  s,
3865
3865
  0.5
3866
3866
  );
3867
- S(t, h), i = l;
3867
+ A(t, h), i = l;
3868
3868
  }
3869
3869
  return t;
3870
3870
  }
@@ -3876,7 +3876,7 @@ class Ct extends q {
3876
3876
  */
3877
3877
  getSimplifiedGeometryInternal(t) {
3878
3878
  const e = [], i = [];
3879
- return e.length = Qi(
3879
+ return e.length = tn(
3880
3880
  this.flatCoordinates,
3881
3881
  0,
3882
3882
  this.ends_,
@@ -3904,7 +3904,7 @@ class Ct extends q {
3904
3904
  * @override
3905
3905
  */
3906
3906
  intersectsExtent(t) {
3907
- return us(
3907
+ return ds(
3908
3908
  this.flatCoordinates,
3909
3909
  0,
3910
3910
  this.ends_,
@@ -3931,7 +3931,7 @@ class Ct extends q {
3931
3931
  this.flatCoordinates.length = i.length === 0 ? 0 : i[i.length - 1], this.changed();
3932
3932
  }
3933
3933
  }
3934
- class z extends q {
3934
+ class z extends Z {
3935
3935
  /**
3936
3936
  * @param {import("../coordinate.js").Coordinate} coordinates Coordinates.
3937
3937
  * @param {import("./Geometry.js").GeometryLayout} [layout] Layout.
@@ -3988,7 +3988,7 @@ class z extends q {
3988
3988
  * @override
3989
3989
  */
3990
3990
  computeExtent(t) {
3991
- return Oi(this.flatCoordinates, t);
3991
+ return ki(this.flatCoordinates, t);
3992
3992
  }
3993
3993
  /**
3994
3994
  * Get the type of this geometry.
@@ -4007,7 +4007,7 @@ class z extends q {
4007
4007
  * @override
4008
4008
  */
4009
4009
  intersectsExtent(t) {
4010
- return Ri(t, this.flatCoordinates[0], this.flatCoordinates[1]);
4010
+ return Ni(t, this.flatCoordinates[0], this.flatCoordinates[1]);
4011
4011
  }
4012
4012
  /**
4013
4013
  * @param {!Array<*>} coordinates Coordinates.
@@ -4016,7 +4016,7 @@ class z extends q {
4016
4016
  * @override
4017
4017
  */
4018
4018
  setCoordinates(t, e) {
4019
- this.setLayout(e, t, 0), this.flatCoordinates || (this.flatCoordinates = []), this.flatCoordinates.length = Qr(
4019
+ this.setLayout(e, t, 0), this.flatCoordinates || (this.flatCoordinates = []), this.flatCoordinates.length = ts(
4020
4020
  this.flatCoordinates,
4021
4021
  0,
4022
4022
  t,
@@ -4024,7 +4024,7 @@ class z extends q {
4024
4024
  ), this.changed();
4025
4025
  }
4026
4026
  }
4027
- class St extends q {
4027
+ class At extends Z {
4028
4028
  /**
4029
4029
  * @param {Array<import("../coordinate.js").Coordinate>|Array<number>} coordinates Coordinates.
4030
4030
  * For internal use, flat coordinates in combination with `layout` are also accepted.
@@ -4047,7 +4047,7 @@ class St extends q {
4047
4047
  * @api
4048
4048
  */
4049
4049
  appendPoint(t) {
4050
- S(this.flatCoordinates, t.getFlatCoordinates()), this.changed();
4050
+ A(this.flatCoordinates, t.getFlatCoordinates()), this.changed();
4051
4051
  }
4052
4052
  /**
4053
4053
  * Make a complete copy of the geometry.
@@ -4056,7 +4056,7 @@ class St extends q {
4056
4056
  * @override
4057
4057
  */
4058
4058
  clone() {
4059
- const t = new St(
4059
+ const t = new At(
4060
4060
  this.flatCoordinates.slice(),
4061
4061
  this.layout
4062
4062
  );
@@ -4071,7 +4071,7 @@ class St extends q {
4071
4071
  * @override
4072
4072
  */
4073
4073
  closestPointXY(t, e, i, r) {
4074
- if (r < D(this.getExtent(), t, e))
4074
+ if (r < q(this.getExtent(), t, e))
4075
4075
  return r;
4076
4076
  const s = this.flatCoordinates, o = this.stride;
4077
4077
  for (let a = 0, l = s.length; a < l; a += o) {
@@ -4097,7 +4097,7 @@ class St extends q {
4097
4097
  * @override
4098
4098
  */
4099
4099
  getCoordinates() {
4100
- return Wt(
4100
+ return qt(
4101
4101
  this.flatCoordinates,
4102
4102
  0,
4103
4103
  this.flatCoordinates.length,
@@ -4153,7 +4153,7 @@ class St extends q {
4153
4153
  const e = this.flatCoordinates, i = this.stride;
4154
4154
  for (let r = 0, s = e.length; r < s; r += i) {
4155
4155
  const o = e[r], a = e[r + 1];
4156
- if (Ri(t, o, a))
4156
+ if (Ni(t, o, a))
4157
4157
  return !0;
4158
4158
  }
4159
4159
  return !1;
@@ -4166,7 +4166,7 @@ class St extends q {
4166
4166
  * @override
4167
4167
  */
4168
4168
  setCoordinates(t, e) {
4169
- this.setLayout(e, t, 1), this.flatCoordinates || (this.flatCoordinates = []), this.flatCoordinates.length = zt(
4169
+ this.setLayout(e, t, 1), this.flatCoordinates || (this.flatCoordinates = []), this.flatCoordinates.length = Jt(
4170
4170
  this.flatCoordinates,
4171
4171
  0,
4172
4172
  t,
@@ -4174,7 +4174,7 @@ class St extends q {
4174
4174
  ), this.changed();
4175
4175
  }
4176
4176
  }
4177
- class J extends q {
4177
+ class J extends Z {
4178
4178
  /**
4179
4179
  * @param {!Array<Array<import("../coordinate.js").Coordinate>>|!Array<number>} coordinates
4180
4180
  * Array of linear rings that define the polygon. The first linear ring of the
@@ -4203,7 +4203,7 @@ class J extends q {
4203
4203
  * @api
4204
4204
  */
4205
4205
  appendLinearRing(t) {
4206
- this.flatCoordinates ? S(this.flatCoordinates, t.getFlatCoordinates()) : this.flatCoordinates = t.getFlatCoordinates().slice(), this.ends_.push(this.flatCoordinates.length), this.changed();
4206
+ this.flatCoordinates ? A(this.flatCoordinates, t.getFlatCoordinates()) : this.flatCoordinates = t.getFlatCoordinates().slice(), this.ends_.push(this.flatCoordinates.length), this.changed();
4207
4207
  }
4208
4208
  /**
4209
4209
  * Make a complete copy of the geometry.
@@ -4228,15 +4228,15 @@ class J extends q {
4228
4228
  * @override
4229
4229
  */
4230
4230
  closestPointXY(t, e, i, r) {
4231
- return r < D(this.getExtent(), t, e) ? r : (this.maxDeltaRevision_ != this.getRevision() && (this.maxDelta_ = Math.sqrt(
4232
- Ge(
4231
+ return r < q(this.getExtent(), t, e) ? r : (this.maxDeltaRevision_ != this.getRevision() && (this.maxDelta_ = Math.sqrt(
4232
+ Le(
4233
4233
  this.flatCoordinates,
4234
4234
  0,
4235
4235
  this.ends_,
4236
4236
  this.stride,
4237
4237
  0
4238
4238
  )
4239
- ), this.maxDeltaRevision_ = this.getRevision()), Ie(
4239
+ ), this.maxDeltaRevision_ = this.getRevision()), Re(
4240
4240
  this.flatCoordinates,
4241
4241
  0,
4242
4242
  this.ends_,
@@ -4256,7 +4256,7 @@ class J extends q {
4256
4256
  * @override
4257
4257
  */
4258
4258
  containsXY(t, e) {
4259
- return Pe(
4259
+ return Me(
4260
4260
  this.getOrientedFlatCoordinates(),
4261
4261
  0,
4262
4262
  this.ends_,
@@ -4271,7 +4271,7 @@ class J extends q {
4271
4271
  * @api
4272
4272
  */
4273
4273
  getArea() {
4274
- return en(
4274
+ return nn(
4275
4275
  this.getOrientedFlatCoordinates(),
4276
4276
  0,
4277
4277
  this.ends_,
@@ -4294,7 +4294,7 @@ class J extends q {
4294
4294
  */
4295
4295
  getCoordinates(t) {
4296
4296
  let e;
4297
- return t !== void 0 ? (e = this.getOrientedFlatCoordinates().slice(), Ut(e, 0, this.ends_, this.stride, t)) : e = this.flatCoordinates, Le(e, 0, this.ends_, this.stride);
4297
+ return t !== void 0 ? (e = this.getOrientedFlatCoordinates().slice(), jt(e, 0, this.ends_, this.stride, t)) : e = this.flatCoordinates, Te(e, 0, this.ends_, this.stride);
4298
4298
  }
4299
4299
  /**
4300
4300
  * @return {Array<number>} Ends.
@@ -4307,8 +4307,8 @@ class J extends q {
4307
4307
  */
4308
4308
  getFlatInteriorPoint() {
4309
4309
  if (this.flatInteriorPointRevision_ != this.getRevision()) {
4310
- const t = Yt(this.getExtent());
4311
- this.flatInteriorPoint_ = Me(
4310
+ const t = Bt(this.getExtent());
4311
+ this.flatInteriorPoint_ = Se(
4312
4312
  this.getOrientedFlatCoordinates(),
4313
4313
  0,
4314
4314
  this.ends_,
@@ -4383,7 +4383,7 @@ class J extends q {
4383
4383
  getOrientedFlatCoordinates() {
4384
4384
  if (this.orientedRevision_ != this.getRevision()) {
4385
4385
  const t = this.flatCoordinates;
4386
- Se(t, 0, this.ends_, this.stride) ? this.orientedFlatCoordinates_ = t : (this.orientedFlatCoordinates_ = t.slice(), this.orientedFlatCoordinates_.length = Ut(
4386
+ Ae(t, 0, this.ends_, this.stride) ? this.orientedFlatCoordinates_ = t : (this.orientedFlatCoordinates_ = t.slice(), this.orientedFlatCoordinates_.length = jt(
4387
4387
  this.orientedFlatCoordinates_,
4388
4388
  0,
4389
4389
  this.ends_,
@@ -4403,7 +4403,7 @@ class J extends q {
4403
4403
  */
4404
4404
  getSimplifiedGeometryInternal(t) {
4405
4405
  const e = [], i = [];
4406
- return e.length = Ae(
4406
+ return e.length = Fe(
4407
4407
  this.flatCoordinates,
4408
4408
  0,
4409
4409
  this.ends_,
@@ -4431,7 +4431,7 @@ class J extends q {
4431
4431
  * @override
4432
4432
  */
4433
4433
  intersectsExtent(t) {
4434
- return rn(
4434
+ return sn(
4435
4435
  this.getOrientedFlatCoordinates(),
4436
4436
  0,
4437
4437
  this.ends_,
@@ -4458,7 +4458,7 @@ class J extends q {
4458
4458
  this.flatCoordinates.length = i.length === 0 ? 0 : i[i.length - 1], this.changed();
4459
4459
  }
4460
4460
  }
4461
- class wt extends q {
4461
+ class wt extends Z {
4462
4462
  /**
4463
4463
  * @param {Array<Array<Array<import("../coordinate.js").Coordinate>>|Polygon>|Array<number>} coordinates Coordinates.
4464
4464
  * For internal use, flat coordinates in combination with `layout` and `endss` are also accepted.
@@ -4475,7 +4475,7 @@ class wt extends q {
4475
4475
  const h = r[a], c = s.length, u = h.getEnds();
4476
4476
  for (let d = 0, g = u.length; d < g; ++d)
4477
4477
  u[d] += c;
4478
- S(s, h.getFlatCoordinates()), o.push(u);
4478
+ A(s, h.getFlatCoordinates()), o.push(u);
4479
4479
  }
4480
4480
  e = r.length === 0 ? this.getLayout() : r[0].getLayout(), t = s, i = o;
4481
4481
  }
@@ -4500,7 +4500,7 @@ class wt extends q {
4500
4500
  this.flatCoordinates = t.getFlatCoordinates().slice(), e = t.getEnds().slice(), this.endss_.push();
4501
4501
  else {
4502
4502
  const i = this.flatCoordinates.length;
4503
- S(this.flatCoordinates, t.getFlatCoordinates()), e = t.getEnds().slice();
4503
+ A(this.flatCoordinates, t.getFlatCoordinates()), e = t.getEnds().slice();
4504
4504
  for (let r = 0, s = e.length; r < s; ++r)
4505
4505
  e[r] += i;
4506
4506
  }
@@ -4532,15 +4532,15 @@ class wt extends q {
4532
4532
  * @override
4533
4533
  */
4534
4534
  closestPointXY(t, e, i, r) {
4535
- return r < D(this.getExtent(), t, e) ? r : (this.maxDeltaRevision_ != this.getRevision() && (this.maxDelta_ = Math.sqrt(
4536
- ls(
4535
+ return r < q(this.getExtent(), t, e) ? r : (this.maxDeltaRevision_ != this.getRevision() && (this.maxDelta_ = Math.sqrt(
4536
+ hs(
4537
4537
  this.flatCoordinates,
4538
4538
  0,
4539
4539
  this.endss_,
4540
4540
  this.stride,
4541
4541
  0
4542
4542
  )
4543
- ), this.maxDeltaRevision_ = this.getRevision()), hs(
4543
+ ), this.maxDeltaRevision_ = this.getRevision()), cs(
4544
4544
  this.getOrientedFlatCoordinates(),
4545
4545
  0,
4546
4546
  this.endss_,
@@ -4560,7 +4560,7 @@ class wt extends q {
4560
4560
  * @override
4561
4561
  */
4562
4562
  containsXY(t, e) {
4563
- return es(
4563
+ return is(
4564
4564
  this.getOrientedFlatCoordinates(),
4565
4565
  0,
4566
4566
  this.endss_,
@@ -4575,7 +4575,7 @@ class wt extends q {
4575
4575
  * @api
4576
4576
  */
4577
4577
  getArea() {
4578
- return as(
4578
+ return ls(
4579
4579
  this.getOrientedFlatCoordinates(),
4580
4580
  0,
4581
4581
  this.endss_,
@@ -4598,13 +4598,13 @@ class wt extends q {
4598
4598
  */
4599
4599
  getCoordinates(t) {
4600
4600
  let e;
4601
- return t !== void 0 ? (e = this.getOrientedFlatCoordinates().slice(), ce(
4601
+ return t !== void 0 ? (e = this.getOrientedFlatCoordinates().slice(), ue(
4602
4602
  e,
4603
4603
  0,
4604
4604
  this.endss_,
4605
4605
  this.stride,
4606
4606
  t
4607
- )) : e = this.flatCoordinates, cs(
4607
+ )) : e = this.flatCoordinates, us(
4608
4608
  e,
4609
4609
  0,
4610
4610
  this.endss_,
@@ -4622,13 +4622,13 @@ class wt extends q {
4622
4622
  */
4623
4623
  getFlatInteriorPoints() {
4624
4624
  if (this.flatInteriorPointsRevision_ != this.getRevision()) {
4625
- const t = qi(
4625
+ const t = Ki(
4626
4626
  this.flatCoordinates,
4627
4627
  0,
4628
4628
  this.endss_,
4629
4629
  this.stride
4630
4630
  );
4631
- this.flatInteriorPoints_ = Zi(
4631
+ this.flatInteriorPoints_ = Di(
4632
4632
  this.getOrientedFlatCoordinates(),
4633
4633
  0,
4634
4634
  this.endss_,
@@ -4648,7 +4648,7 @@ class wt extends q {
4648
4648
  * @api
4649
4649
  */
4650
4650
  getInteriorPoints() {
4651
- return new St(this.getFlatInteriorPoints().slice(), "XYM");
4651
+ return new At(this.getFlatInteriorPoints().slice(), "XYM");
4652
4652
  }
4653
4653
  /**
4654
4654
  * @return {Array<number>} Oriented flat coordinates.
@@ -4656,7 +4656,7 @@ class wt extends q {
4656
4656
  getOrientedFlatCoordinates() {
4657
4657
  if (this.orientedRevision_ != this.getRevision()) {
4658
4658
  const t = this.flatCoordinates;
4659
- Ki(t, 0, this.endss_, this.stride) ? this.orientedFlatCoordinates_ = t : (this.orientedFlatCoordinates_ = t.slice(), this.orientedFlatCoordinates_.length = ce(
4659
+ Qi(t, 0, this.endss_, this.stride) ? this.orientedFlatCoordinates_ = t : (this.orientedFlatCoordinates_ = t.slice(), this.orientedFlatCoordinates_.length = ue(
4660
4660
  this.orientedFlatCoordinates_,
4661
4661
  0,
4662
4662
  this.endss_,
@@ -4676,7 +4676,7 @@ class wt extends q {
4676
4676
  */
4677
4677
  getSimplifiedGeometryInternal(t) {
4678
4678
  const e = [], i = [];
4679
- return e.length = os(
4679
+ return e.length = as(
4680
4680
  this.flatCoordinates,
4681
4681
  0,
4682
4682
  this.endss_,
@@ -4752,7 +4752,7 @@ class wt extends q {
4752
4752
  * @override
4753
4753
  */
4754
4754
  intersectsExtent(t) {
4755
- return gs(
4755
+ return fs(
4756
4756
  this.getOrientedFlatCoordinates(),
4757
4757
  0,
4758
4758
  this.endss_,
@@ -4769,7 +4769,7 @@ class wt extends q {
4769
4769
  */
4770
4770
  setCoordinates(t, e) {
4771
4771
  this.setLayout(e, t, 3), this.flatCoordinates || (this.flatCoordinates = []);
4772
- const i = Di(
4772
+ const i = Zi(
4773
4773
  this.flatCoordinates,
4774
4774
  0,
4775
4775
  t,
@@ -4785,7 +4785,7 @@ class wt extends q {
4785
4785
  this.changed();
4786
4786
  }
4787
4787
  }
4788
- const yi = Vi();
4788
+ const mi = zi();
4789
4789
  class W {
4790
4790
  /**
4791
4791
  * @param {Type} type Geometry type.
@@ -4814,7 +4814,7 @@ class W {
4814
4814
  * @api
4815
4815
  */
4816
4816
  getExtent() {
4817
- return this.extent_ || (this.extent_ = this.type_ === "Point" ? Oi(this.flatCoordinates_) : ve(
4817
+ return this.extent_ || (this.extent_ = this.type_ === "Point" ? ki(this.flatCoordinates_) : Ce(
4818
4818
  this.flatCoordinates_,
4819
4819
  0,
4820
4820
  this.flatCoordinates_.length,
@@ -4826,8 +4826,8 @@ class W {
4826
4826
  */
4827
4827
  getFlatInteriorPoint() {
4828
4828
  if (!this.flatInteriorPoints_) {
4829
- const t = Yt(this.getExtent());
4830
- this.flatInteriorPoints_ = Me(
4829
+ const t = Bt(this.getExtent());
4830
+ this.flatInteriorPoints_ = Se(
4831
4831
  this.flatCoordinates_,
4832
4832
  0,
4833
4833
  this.ends_,
@@ -4843,8 +4843,8 @@ class W {
4843
4843
  */
4844
4844
  getFlatInteriorPoints() {
4845
4845
  if (!this.flatInteriorPoints_) {
4846
- const t = rs(this.flatCoordinates_, this.ends_), e = qi(this.flatCoordinates_, 0, t, 2);
4847
- this.flatInteriorPoints_ = Zi(
4846
+ const t = ss(this.flatCoordinates_, this.ends_), e = Ki(this.flatCoordinates_, 0, t, 2);
4847
+ this.flatInteriorPoints_ = Di(
4848
4848
  this.flatCoordinates_,
4849
4849
  0,
4850
4850
  t,
@@ -4858,7 +4858,7 @@ class W {
4858
4858
  * @return {Array<number>} Flat midpoint.
4859
4859
  */
4860
4860
  getFlatMidpoint() {
4861
- return this.flatMidpoints_ || (this.flatMidpoints_ = Ht(
4861
+ return this.flatMidpoints_ || (this.flatMidpoints_ = Ut(
4862
4862
  this.flatCoordinates_,
4863
4863
  0,
4864
4864
  this.flatCoordinates_.length,
@@ -4879,8 +4879,8 @@ class W {
4879
4879
  this.ends_
4880
4880
  );
4881
4881
  for (let r = 0, s = i.length; r < s; ++r) {
4882
- const o = i[r], a = Ht(t, e, o, 2, 0.5);
4883
- S(this.flatMidpoints_, a), e = o;
4882
+ const o = i[r], a = Ut(t, e, o, 2, 0.5);
4883
+ A(this.flatMidpoints_, a), e = o;
4884
4884
  }
4885
4885
  }
4886
4886
  return this.flatMidpoints_;
@@ -4970,9 +4970,9 @@ class W {
4970
4970
  t = x(t);
4971
4971
  const e = t.getExtent(), i = t.getWorldExtent();
4972
4972
  if (e && i) {
4973
- const r = Nt(i) / Nt(e);
4974
- zi(
4975
- yi,
4973
+ const r = Ot(i) / Ot(e);
4974
+ Ji(
4975
+ mi,
4976
4976
  i[0],
4977
4977
  i[3],
4978
4978
  r,
@@ -4980,12 +4980,12 @@ class W {
4980
4980
  0,
4981
4981
  0,
4982
4982
  0
4983
- ), Ji(
4983
+ ), Wi(
4984
4984
  this.flatCoordinates_,
4985
4985
  0,
4986
4986
  this.flatCoordinates_.length,
4987
4987
  2,
4988
- yi,
4988
+ mi,
4989
4989
  this.flatCoordinates_
4990
4990
  );
4991
4991
  }
@@ -5025,7 +5025,7 @@ class W {
5025
5025
  * @return {RenderFeature} This render feature.
5026
5026
  */
5027
5027
  enableSimplifyTransformed() {
5028
- return this.simplifyTransformed = Fi((t, e) => {
5028
+ return this.simplifyTransformed = Gi((t, e) => {
5029
5029
  if (t === this.squaredTolerance_)
5030
5030
  return this.simplifiedGeometry_;
5031
5031
  this.simplifiedGeometry_ = this.clone(), e && this.simplifiedGeometry_.applyTransform(e);
@@ -5033,7 +5033,7 @@ class W {
5033
5033
  let r;
5034
5034
  switch (this.type_) {
5035
5035
  case "LineString":
5036
- i.length = Jt(
5036
+ i.length = Wt(
5037
5037
  i,
5038
5038
  0,
5039
5039
  this.simplifiedGeometry_.flatCoordinates_.length,
@@ -5044,7 +5044,7 @@ class W {
5044
5044
  ), r = [i.length];
5045
5045
  break;
5046
5046
  case "MultiLineString":
5047
- r = [], i.length = Qi(
5047
+ r = [], i.length = tn(
5048
5048
  i,
5049
5049
  0,
5050
5050
  this.simplifiedGeometry_.ends_,
@@ -5056,7 +5056,7 @@ class W {
5056
5056
  );
5057
5057
  break;
5058
5058
  case "Polygon":
5059
- r = [], i.length = Ae(
5059
+ r = [], i.length = Fe(
5060
5060
  i,
5061
5061
  0,
5062
5062
  this.simplifiedGeometry_.ends_,
@@ -5080,7 +5080,7 @@ class W {
5080
5080
  }
5081
5081
  }
5082
5082
  W.prototype.getFlatCoordinates = W.prototype.getOrientedFlatCoordinates;
5083
- class sn {
5083
+ class on {
5084
5084
  constructor() {
5085
5085
  this.dataProjection = void 0, this.defaultFeatureProjection = void 0, this.featureClass = /** @type {FeatureToFeatureClass<FeatureType>} */
5086
5086
  lt, this.supportedMediaTypes = null;
@@ -5208,11 +5208,11 @@ class sn {
5208
5208
  function bt(n, t, e) {
5209
5209
  const i = e ? x(e.featureProjection) : null, r = e ? x(e.dataProjection) : null;
5210
5210
  let s = n;
5211
- if (i && r && !Jr(i, r)) {
5211
+ if (i && r && !Wr(i, r)) {
5212
5212
  t && (s = /** @type {T} */
5213
5213
  n.clone());
5214
5214
  const o = t ? i : r, a = t ? r : i;
5215
- o.getUnits() === "tile-pixels" ? s.transform(o, a) : s.applyTransform(le(o, a));
5215
+ o.getUnits() === "tile-pixels" ? s.transform(o, a) : s.applyTransform(he(o, a));
5216
5216
  }
5217
5217
  if (t && e && /** @type {WriteOptions} */
5218
5218
  e.decimals !== void 0) {
@@ -5230,24 +5230,24 @@ function bt(n, t, e) {
5230
5230
  }
5231
5231
  return s;
5232
5232
  }
5233
- const ps = {
5233
+ const ys = {
5234
5234
  Point: z,
5235
5235
  LineString: V,
5236
5236
  Polygon: J,
5237
- MultiPoint: St,
5237
+ MultiPoint: At,
5238
5238
  MultiLineString: Ct,
5239
5239
  MultiPolygon: wt
5240
5240
  };
5241
- function ys(n, t, e) {
5242
- return Array.isArray(t[0]) ? (Ki(n, 0, t, e) || (n = n.slice(), ce(n, 0, t, e)), n) : (Se(n, 0, t, e) || (n = n.slice(), Ut(n, 0, t, e)), n);
5241
+ function ms(n, t, e) {
5242
+ return Array.isArray(t[0]) ? (Qi(n, 0, t, e) || (n = n.slice(), ue(n, 0, t, e)), n) : (Ae(n, 0, t, e) || (n = n.slice(), jt(n, 0, t, e)), n);
5243
5243
  }
5244
- function on(n, t) {
5244
+ function an(n, t) {
5245
5245
  var s;
5246
5246
  const e = n.geometry;
5247
5247
  if (!e)
5248
5248
  return [];
5249
5249
  if (Array.isArray(e))
5250
- return e.map((o) => on({ ...n, geometry: o })).flat();
5250
+ return e.map((o) => an({ ...n, geometry: o })).flat();
5251
5251
  const i = e.type === "MultiPolygon" ? "Polygon" : e.type;
5252
5252
  if (i === "GeometryCollection" || i === "Circle")
5253
5253
  throw new Error("Unsupported geometry type: " + i);
@@ -5255,7 +5255,7 @@ function on(n, t) {
5255
5255
  return bt(
5256
5256
  new W(
5257
5257
  i,
5258
- i === "Polygon" ? ys(e.flatCoordinates, e.ends, r) : e.flatCoordinates,
5258
+ i === "Polygon" ? ms(e.flatCoordinates, e.ends, r) : e.flatCoordinates,
5259
5259
  (s = e.ends) == null ? void 0 : s.flat(),
5260
5260
  r,
5261
5261
  n.properties || {},
@@ -5265,23 +5265,23 @@ function on(n, t) {
5265
5265
  t
5266
5266
  );
5267
5267
  }
5268
- function Re(n, t) {
5268
+ function Ne(n, t) {
5269
5269
  if (!n)
5270
5270
  return null;
5271
5271
  if (Array.isArray(n)) {
5272
5272
  const i = n.map(
5273
- (r) => Re(r, t)
5273
+ (r) => Ne(r, t)
5274
5274
  );
5275
5275
  return new B(i);
5276
5276
  }
5277
- const e = ps[n.type];
5277
+ const e = ys[n.type];
5278
5278
  return bt(
5279
5279
  new e(n.flatCoordinates, n.layout || "XY", n.ends),
5280
5280
  !1,
5281
5281
  t
5282
5282
  );
5283
5283
  }
5284
- class ms extends sn {
5284
+ class _s extends on {
5285
5285
  constructor() {
5286
5286
  super();
5287
5287
  }
@@ -5304,7 +5304,7 @@ class ms extends sn {
5304
5304
  */
5305
5305
  readFeature(t, e) {
5306
5306
  return this.readFeatureFromObject(
5307
- Ft(t),
5307
+ Gt(t),
5308
5308
  this.getReadOptions(t, e)
5309
5309
  );
5310
5310
  }
@@ -5320,7 +5320,7 @@ class ms extends sn {
5320
5320
  */
5321
5321
  readFeatures(t, e) {
5322
5322
  return this.readFeaturesFromObject(
5323
- Ft(t),
5323
+ Gt(t),
5324
5324
  this.getReadOptions(t, e)
5325
5325
  );
5326
5326
  }
@@ -5355,7 +5355,7 @@ class ms extends sn {
5355
5355
  */
5356
5356
  readGeometry(t, e) {
5357
5357
  return this.readGeometryFromObject(
5358
- Ft(t),
5358
+ Gt(t),
5359
5359
  this.getReadOptions(t, e)
5360
5360
  );
5361
5361
  }
@@ -5378,7 +5378,7 @@ class ms extends sn {
5378
5378
  * @override
5379
5379
  */
5380
5380
  readProjection(t) {
5381
- return this.readProjectionFromObject(Ft(t));
5381
+ return this.readProjectionFromObject(Gt(t));
5382
5382
  }
5383
5383
  /**
5384
5384
  * @abstract
@@ -5453,14 +5453,14 @@ class ms extends sn {
5453
5453
  return y();
5454
5454
  }
5455
5455
  }
5456
- function Ft(n) {
5456
+ function Gt(n) {
5457
5457
  if (typeof n == "string") {
5458
5458
  const t = JSON.parse(n);
5459
5459
  return t || null;
5460
5460
  }
5461
5461
  return n !== null ? n : null;
5462
5462
  }
5463
- class _s extends ms {
5463
+ class vs extends _s {
5464
5464
  /**
5465
5465
  * @param {Options<FeatureType>} [options] Options.
5466
5466
  */
@@ -5490,11 +5490,11 @@ class _s extends ms {
5490
5490
  ),
5491
5491
  properties: null
5492
5492
  };
5493
- const r = Ne(i.geometry);
5493
+ const r = Oe(i.geometry);
5494
5494
  if (this.featureClass === W)
5495
5495
  return (
5496
5496
  /** @type {FeatureType|Array<FeatureType>} */
5497
- on(
5497
+ an(
5498
5498
  {
5499
5499
  geometry: r,
5500
5500
  id: i.id,
@@ -5504,7 +5504,7 @@ class _s extends ms {
5504
5504
  )
5505
5505
  );
5506
5506
  const s = new lt();
5507
- return this.geometryName_ ? s.setGeometryName(this.geometryName_) : this.extractGeometryName_ && i.geometry_name && s.setGeometryName(i.geometry_name), s.setGeometry(Re(r, e)), "id" in i && s.setId(i.id), i.properties && s.setProperties(i.properties, !0), /** @type {FeatureType|Array<FeatureType>} */
5507
+ return this.geometryName_ ? s.setGeometryName(this.geometryName_) : this.extractGeometryName_ && i.geometry_name && s.setGeometryName(i.geometry_name), s.setGeometry(Ne(r, e)), "id" in i && s.setId(i.id), i.properties && s.setProperties(i.properties, !0), /** @type {FeatureType|Array<FeatureType>} */
5508
5508
  s;
5509
5509
  }
5510
5510
  /**
@@ -5549,7 +5549,7 @@ class _s extends ms {
5549
5549
  * @override
5550
5550
  */
5551
5551
  readGeometryFromObject(t, e) {
5552
- return vs(t, e);
5552
+ return Cs(t, e);
5553
5553
  }
5554
5554
  /**
5555
5555
  * @param {Object} object Object.
@@ -5593,7 +5593,7 @@ class _s extends ms {
5593
5593
  if (r !== void 0 && (i.id = r), !t.hasProperties())
5594
5594
  return i;
5595
5595
  const s = t.getProperties(), o = t.getGeometry();
5596
- return o && (i.geometry = ue(o, e), delete s[t.getGeometryName()]), Ti(s) || (i.properties = s), i;
5596
+ return o && (i.geometry = de(o, e), delete s[t.getGeometryName()]), Ii(s) || (i.properties = s), i;
5597
5597
  }
5598
5598
  /**
5599
5599
  * Encode an array of features as a GeoJSON object.
@@ -5624,58 +5624,58 @@ class _s extends ms {
5624
5624
  * @override
5625
5625
  */
5626
5626
  writeGeometryObject(t, e) {
5627
- return ue(t, this.adaptOptions(e));
5627
+ return de(t, this.adaptOptions(e));
5628
5628
  }
5629
5629
  }
5630
- function Ne(n, t) {
5630
+ function Oe(n, t) {
5631
5631
  if (!n)
5632
5632
  return null;
5633
5633
  let e;
5634
5634
  switch (n.type) {
5635
5635
  case "Point": {
5636
- e = ws(
5636
+ e = bs(
5637
5637
  /** @type {GeoJSONPoint} */
5638
5638
  n
5639
5639
  );
5640
5640
  break;
5641
5641
  }
5642
5642
  case "LineString": {
5643
- e = bs(
5643
+ e = Es(
5644
5644
  /** @type {GeoJSONLineString} */
5645
5645
  n
5646
5646
  );
5647
5647
  break;
5648
5648
  }
5649
5649
  case "Polygon": {
5650
- e = Ms(
5650
+ e = Ss(
5651
5651
  /** @type {GeoJSONPolygon} */
5652
5652
  n
5653
5653
  );
5654
5654
  break;
5655
5655
  }
5656
5656
  case "MultiPoint": {
5657
- e = xs(
5657
+ e = Ps(
5658
5658
  /** @type {GeoJSONMultiPoint} */
5659
5659
  n
5660
5660
  );
5661
5661
  break;
5662
5662
  }
5663
5663
  case "MultiLineString": {
5664
- e = Es(
5664
+ e = xs(
5665
5665
  /** @type {GeoJSONMultiLineString} */
5666
5666
  n
5667
5667
  );
5668
5668
  break;
5669
5669
  }
5670
5670
  case "MultiPolygon": {
5671
- e = Ps(
5671
+ e = Ms(
5672
5672
  /** @type {GeoJSONMultiPolygon} */
5673
5673
  n
5674
5674
  );
5675
5675
  break;
5676
5676
  }
5677
5677
  case "GeometryCollection": {
5678
- e = Cs(
5678
+ e = ws(
5679
5679
  /** @type {GeoJSONGeometryCollection} */
5680
5680
  n
5681
5681
  );
@@ -5686,61 +5686,61 @@ function Ne(n, t) {
5686
5686
  }
5687
5687
  return e;
5688
5688
  }
5689
- function vs(n, t) {
5690
- const e = Ne(n);
5691
- return Re(e, t);
5692
- }
5693
5689
  function Cs(n, t) {
5690
+ const e = Oe(n);
5691
+ return Ne(e, t);
5692
+ }
5693
+ function ws(n, t) {
5694
5694
  return n.geometries.map(
5695
5695
  /**
5696
5696
  * @param {GeoJSONGeometry} geometry Geometry.
5697
5697
  * @return {import("./Feature.js").GeometryObject} geometry Geometry.
5698
5698
  */
5699
5699
  function(i) {
5700
- return Ne(i);
5700
+ return Oe(i);
5701
5701
  }
5702
5702
  );
5703
5703
  }
5704
- function ws(n) {
5704
+ function bs(n) {
5705
5705
  const t = n.coordinates;
5706
5706
  return {
5707
5707
  type: "Point",
5708
5708
  flatCoordinates: t,
5709
- layout: Z(t.length)
5709
+ layout: K(t.length)
5710
5710
  };
5711
5711
  }
5712
- function bs(n) {
5712
+ function Es(n) {
5713
5713
  var i;
5714
5714
  const t = n.coordinates, e = t.flat();
5715
5715
  return {
5716
5716
  type: "LineString",
5717
5717
  flatCoordinates: e,
5718
5718
  ends: [e.length],
5719
- layout: Z(((i = t[0]) == null ? void 0 : i.length) || 2)
5719
+ layout: K(((i = t[0]) == null ? void 0 : i.length) || 2)
5720
5720
  };
5721
5721
  }
5722
- function Es(n) {
5722
+ function xs(n) {
5723
5723
  var s, o;
5724
5724
  const t = n.coordinates, e = ((o = (s = t[0]) == null ? void 0 : s[0]) == null ? void 0 : o.length) || 2, i = [], r = $t(i, 0, t, e);
5725
5725
  return {
5726
5726
  type: "MultiLineString",
5727
5727
  flatCoordinates: i,
5728
5728
  ends: r,
5729
- layout: Z(e)
5729
+ layout: K(e)
5730
5730
  };
5731
5731
  }
5732
- function xs(n) {
5732
+ function Ps(n) {
5733
5733
  var e;
5734
5734
  const t = n.coordinates;
5735
5735
  return {
5736
5736
  type: "MultiPoint",
5737
5737
  flatCoordinates: t.flat(),
5738
- layout: Z(((e = t[0]) == null ? void 0 : e.length) || 2)
5738
+ layout: K(((e = t[0]) == null ? void 0 : e.length) || 2)
5739
5739
  };
5740
5740
  }
5741
- function Ps(n) {
5741
+ function Ms(n) {
5742
5742
  var s, o;
5743
- const t = n.coordinates, e = [], i = ((o = (s = t[0]) == null ? void 0 : s[0]) == null ? void 0 : o[0].length) || 2, r = Di(
5743
+ const t = n.coordinates, e = [], i = ((o = (s = t[0]) == null ? void 0 : s[0]) == null ? void 0 : o[0].length) || 2, r = Zi(
5744
5744
  e,
5745
5745
  0,
5746
5746
  t,
@@ -5750,40 +5750,40 @@ function Ps(n) {
5750
5750
  type: "MultiPolygon",
5751
5751
  flatCoordinates: e,
5752
5752
  ends: r,
5753
- layout: Z(i)
5753
+ layout: K(i)
5754
5754
  };
5755
5755
  }
5756
- function Ms(n) {
5756
+ function Ss(n) {
5757
5757
  var s, o;
5758
5758
  const t = n.coordinates, e = [], i = (o = (s = t[0]) == null ? void 0 : s[0]) == null ? void 0 : o.length, r = $t(e, 0, t, i);
5759
5759
  return {
5760
5760
  type: "Polygon",
5761
5761
  flatCoordinates: e,
5762
5762
  ends: r,
5763
- layout: Z(i)
5763
+ layout: K(i)
5764
5764
  };
5765
5765
  }
5766
- function ue(n, t) {
5766
+ function de(n, t) {
5767
5767
  n = bt(n, !0, t);
5768
5768
  const e = n.getType();
5769
5769
  let i;
5770
5770
  switch (e) {
5771
5771
  case "Point": {
5772
- i = Ts(
5772
+ i = Is(
5773
5773
  /** @type {import("../geom/Point.js").default} */
5774
5774
  n
5775
5775
  );
5776
5776
  break;
5777
5777
  }
5778
5778
  case "LineString": {
5779
- i = Ss(
5779
+ i = As(
5780
5780
  /** @type {import("../geom/LineString.js").default} */
5781
5781
  n
5782
5782
  );
5783
5783
  break;
5784
5784
  }
5785
5785
  case "Polygon": {
5786
- i = Is(
5786
+ i = Rs(
5787
5787
  /** @type {import("../geom/Polygon.js").default} */
5788
5788
  n,
5789
5789
  t
@@ -5791,21 +5791,21 @@ function ue(n, t) {
5791
5791
  break;
5792
5792
  }
5793
5793
  case "MultiPoint": {
5794
- i = Fs(
5794
+ i = Gs(
5795
5795
  /** @type {import("../geom/MultiPoint.js").default} */
5796
5796
  n
5797
5797
  );
5798
5798
  break;
5799
5799
  }
5800
5800
  case "MultiLineString": {
5801
- i = As(
5801
+ i = Fs(
5802
5802
  /** @type {import("../geom/MultiLineString.js").default} */
5803
5803
  n
5804
5804
  );
5805
5805
  break;
5806
5806
  }
5807
5807
  case "MultiPolygon": {
5808
- i = Gs(
5808
+ i = Ls(
5809
5809
  /** @type {import("../geom/MultiPolygon.js").default} */
5810
5810
  n,
5811
5811
  t
@@ -5836,50 +5836,50 @@ function $s(n, t) {
5836
5836
  return t = Object.assign({}, t), delete t.featureProjection, {
5837
5837
  type: "GeometryCollection",
5838
5838
  geometries: n.getGeometriesArray().map(function(i) {
5839
- return ue(i, t);
5839
+ return de(i, t);
5840
5840
  })
5841
5841
  };
5842
5842
  }
5843
- function Ss(n, t) {
5843
+ function As(n, t) {
5844
5844
  return {
5845
5845
  type: "LineString",
5846
5846
  coordinates: n.getCoordinates()
5847
5847
  };
5848
5848
  }
5849
- function As(n, t) {
5849
+ function Fs(n, t) {
5850
5850
  return {
5851
5851
  type: "MultiLineString",
5852
5852
  coordinates: n.getCoordinates()
5853
5853
  };
5854
5854
  }
5855
- function Fs(n, t) {
5855
+ function Gs(n, t) {
5856
5856
  return {
5857
5857
  type: "MultiPoint",
5858
5858
  coordinates: n.getCoordinates()
5859
5859
  };
5860
5860
  }
5861
- function Gs(n, t) {
5861
+ function Ls(n, t) {
5862
5862
  let e;
5863
5863
  return t && (e = t.rightHanded), {
5864
5864
  type: "MultiPolygon",
5865
5865
  coordinates: n.getCoordinates(e)
5866
5866
  };
5867
5867
  }
5868
- function Ts(n, t) {
5868
+ function Is(n, t) {
5869
5869
  return {
5870
5870
  type: "Point",
5871
5871
  coordinates: n.getCoordinates()
5872
5872
  };
5873
5873
  }
5874
- function Is(n, t) {
5874
+ function Rs(n, t) {
5875
5875
  let e;
5876
5876
  return t && (e = t.rightHanded), {
5877
5877
  type: "Polygon",
5878
5878
  coordinates: n.getCoordinates(e)
5879
5879
  };
5880
5880
  }
5881
- const Ls = (n, t) => new _s().writeFeaturesObject(n, t);
5882
- class Rs extends sn {
5881
+ const Ts = (n, t) => new vs().writeFeaturesObject(n, t);
5882
+ class Ns extends on {
5883
5883
  constructor() {
5884
5884
  super();
5885
5885
  }
@@ -5901,7 +5901,7 @@ class Rs extends sn {
5901
5901
  */
5902
5902
  readFeature(t, e) {
5903
5903
  return this.readFeatureFromText(
5904
- Gt(t),
5904
+ Lt(t),
5905
5905
  this.adaptOptions(e)
5906
5906
  );
5907
5907
  }
@@ -5926,7 +5926,7 @@ class Rs extends sn {
5926
5926
  */
5927
5927
  readFeatures(t, e) {
5928
5928
  return this.readFeaturesFromText(
5929
- Gt(t),
5929
+ Lt(t),
5930
5930
  this.adaptOptions(e)
5931
5931
  );
5932
5932
  }
@@ -5951,7 +5951,7 @@ class Rs extends sn {
5951
5951
  */
5952
5952
  readGeometry(t, e) {
5953
5953
  return this.readGeometryFromText(
5954
- Gt(t),
5954
+ Lt(t),
5955
5955
  this.adaptOptions(e)
5956
5956
  );
5957
5957
  }
@@ -5974,7 +5974,7 @@ class Rs extends sn {
5974
5974
  * @override
5975
5975
  */
5976
5976
  readProjection(t) {
5977
- return this.readProjectionFromText(Gt(t));
5977
+ return this.readProjectionFromText(Lt(t));
5978
5978
  }
5979
5979
  /**
5980
5980
  * @param {string} text Text.
@@ -6051,17 +6051,17 @@ class Rs extends sn {
6051
6051
  return y();
6052
6052
  }
6053
6053
  }
6054
- function Gt(n) {
6054
+ function Lt(n) {
6055
6055
  return typeof n == "string" ? n : "";
6056
6056
  }
6057
- const Ns = {
6057
+ const Os = {
6058
6058
  POINT: z,
6059
6059
  LINESTRING: V,
6060
6060
  POLYGON: J,
6061
- MULTIPOINT: St,
6061
+ MULTIPOINT: At,
6062
6062
  MULTILINESTRING: Ct,
6063
6063
  MULTIPOLYGON: wt
6064
- }, an = "EMPTY", ln = "Z", hn = "M", Os = "ZM", m = {
6064
+ }, ln = "EMPTY", hn = "Z", cn = "M", ks = "ZM", m = {
6065
6065
  START: 0,
6066
6066
  TEXT: 1,
6067
6067
  LEFT_PAREN: 2,
@@ -6069,7 +6069,7 @@ const Ns = {
6069
6069
  NUMBER: 4,
6070
6070
  COMMA: 5,
6071
6071
  EOF: 6
6072
- }, ks = {
6072
+ }, Hs = {
6073
6073
  Point: "POINT",
6074
6074
  LineString: "LINESTRING",
6075
6075
  Polygon: "POLYGON",
@@ -6079,7 +6079,7 @@ const Ns = {
6079
6079
  GeometryCollection: "GEOMETRYCOLLECTION",
6080
6080
  Circle: "CIRCLE"
6081
6081
  };
6082
- class Hs {
6082
+ class Us {
6083
6083
  /**
6084
6084
  * @param {string} wkt WKT string.
6085
6085
  */
@@ -6177,7 +6177,7 @@ class Hs {
6177
6177
  return this.wkt.substring(e, this.index_--).toUpperCase();
6178
6178
  }
6179
6179
  }
6180
- class Us {
6180
+ class js {
6181
6181
  /**
6182
6182
  * @param {Lexer} lexer The lexer.
6183
6183
  */
@@ -6228,7 +6228,7 @@ class Us {
6228
6228
  const e = this.token_;
6229
6229
  if (this.isTokenType(m.TEXT)) {
6230
6230
  const i = e.value;
6231
- i === ln ? t = "XYZ" : i === hn ? t = "XYM" : i === Os && (t = "XYZM"), t !== "XY" && this.consume_();
6231
+ i === hn ? t = "XYZ" : i === cn ? t = "XYM" : i === ks && (t = "XYZM"), t !== "XY" && this.consume_();
6232
6232
  }
6233
6233
  return t;
6234
6234
  }
@@ -6385,7 +6385,7 @@ class Us {
6385
6385
  * @private
6386
6386
  */
6387
6387
  isEmptyGeometry_() {
6388
- const t = this.isTokenType(m.TEXT) && this.token_.value == an;
6388
+ const t = this.isTokenType(m.TEXT) && this.token_.value == ln;
6389
6389
  return t && this.consume_(), t;
6390
6390
  }
6391
6391
  /**
@@ -6415,7 +6415,7 @@ class Us {
6415
6415
  const o = this.parseGeometryCollectionText_();
6416
6416
  return new B(o);
6417
6417
  }
6418
- const r = Ns[e];
6418
+ const r = Os[e];
6419
6419
  if (!r)
6420
6420
  throw new Error("Invalid geometry type: " + e);
6421
6421
  let s;
@@ -6453,7 +6453,7 @@ class Us {
6453
6453
  throw new Error(this.formatErrorMessage_());
6454
6454
  }
6455
6455
  }
6456
- class js extends Rs {
6456
+ class Xs extends Ns {
6457
6457
  /**
6458
6458
  * @param {Options} [options] Options.
6459
6459
  */
@@ -6468,8 +6468,8 @@ class js extends Rs {
6468
6468
  * @private
6469
6469
  */
6470
6470
  parse_(t) {
6471
- const e = new Hs(t);
6472
- return new Us(e).parse();
6471
+ const e = new Us(t);
6472
+ return new js(e).parse();
6473
6473
  }
6474
6474
  /**
6475
6475
  * @protected
@@ -6547,105 +6547,105 @@ class js extends Rs {
6547
6547
  * @override
6548
6548
  */
6549
6549
  writeGeometryText(t, e) {
6550
- return dn(bt(t, !0, e));
6550
+ return gn(bt(t, !0, e));
6551
6551
  }
6552
6552
  }
6553
- function cn(n) {
6553
+ function un(n) {
6554
6554
  const t = n.getCoordinates();
6555
6555
  return t.length === 0 ? "" : t.join(" ");
6556
6556
  }
6557
- function Xs(n) {
6557
+ function Ys(n) {
6558
6558
  const t = [], e = n.getPoints();
6559
6559
  for (let i = 0, r = e.length; i < r; ++i)
6560
- t.push("(" + cn(e[i]) + ")");
6560
+ t.push("(" + un(e[i]) + ")");
6561
6561
  return t.join(",");
6562
6562
  }
6563
- function Ys(n) {
6563
+ function Bs(n) {
6564
6564
  const t = [], e = n.getGeometries();
6565
6565
  for (let i = 0, r = e.length; i < r; ++i)
6566
- t.push(dn(e[i]));
6566
+ t.push(gn(e[i]));
6567
6567
  return t.join(",");
6568
6568
  }
6569
- function Oe(n) {
6569
+ function ke(n) {
6570
6570
  const t = n.getCoordinates(), e = [];
6571
6571
  for (let i = 0, r = t.length; i < r; ++i)
6572
6572
  e.push(t[i].join(" "));
6573
6573
  return e.join(",");
6574
6574
  }
6575
- function Bs(n) {
6575
+ function Vs(n) {
6576
6576
  const t = [], e = n.getLineStrings();
6577
6577
  for (let i = 0, r = e.length; i < r; ++i)
6578
- t.push("(" + Oe(e[i]) + ")");
6578
+ t.push("(" + ke(e[i]) + ")");
6579
6579
  return t.join(",");
6580
6580
  }
6581
- function un(n) {
6581
+ function dn(n) {
6582
6582
  const t = [], e = n.getLinearRings();
6583
6583
  for (let i = 0, r = e.length; i < r; ++i)
6584
- t.push("(" + Oe(e[i]) + ")");
6584
+ t.push("(" + ke(e[i]) + ")");
6585
6585
  return t.join(",");
6586
6586
  }
6587
- function Vs(n) {
6587
+ function zs(n) {
6588
6588
  const t = [], e = n.getPolygons();
6589
6589
  for (let i = 0, r = e.length; i < r; ++i)
6590
- t.push("(" + un(e[i]) + ")");
6590
+ t.push("(" + dn(e[i]) + ")");
6591
6591
  return t.join(",");
6592
6592
  }
6593
- function zs(n) {
6593
+ function Js(n) {
6594
6594
  const t = n.getLayout();
6595
6595
  let e = "";
6596
- return (t === "XYZ" || t === "XYZM") && (e += ln), (t === "XYM" || t === "XYZM") && (e += hn), e;
6597
- }
6598
- const Js = {
6599
- Point: cn,
6600
- LineString: Oe,
6601
- Polygon: un,
6602
- MultiPoint: Xs,
6603
- MultiLineString: Bs,
6604
- MultiPolygon: Vs,
6605
- GeometryCollection: Ys
6596
+ return (t === "XYZ" || t === "XYZM") && (e += hn), (t === "XYM" || t === "XYZM") && (e += cn), e;
6597
+ }
6598
+ const Ws = {
6599
+ Point: un,
6600
+ LineString: ke,
6601
+ Polygon: dn,
6602
+ MultiPoint: Ys,
6603
+ MultiLineString: Vs,
6604
+ MultiPolygon: zs,
6605
+ GeometryCollection: Bs
6606
6606
  };
6607
- function dn(n) {
6608
- const t = n.getType(), e = Js[t], i = e(n);
6609
- let r = ks[t];
6607
+ function gn(n) {
6608
+ const t = n.getType(), e = Ws[t], i = e(n);
6609
+ let r = Hs[t];
6610
6610
  if (typeof /** @type {?} */
6611
6611
  n.getFlatCoordinates == "function") {
6612
- const s = zs(
6612
+ const s = Js(
6613
6613
  /** @type {import("../geom/SimpleGeometry.js").default} */
6614
6614
  n
6615
6615
  );
6616
6616
  s.length > 0 && (r += " " + s);
6617
6617
  }
6618
- return i.length === 0 ? r + " " + an : r + "(" + i + ")";
6618
+ return i.length === 0 ? r + " " + ln : r + "(" + i + ")";
6619
6619
  }
6620
- const Ws = (n, t) => new js().writeFeatures(n, t);
6620
+ const qs = (n, t) => new Xs().writeFeatures(n, t);
6621
6621
  /**
6622
6622
  * @license
6623
6623
  * Copyright 2021 Google LLC
6624
6624
  * SPDX-License-Identifier: BSD-3-Clause
6625
6625
  */
6626
- function mi(n, t, e) {
6626
+ function _i(n, t, e) {
6627
6627
  return n ? t(n) : e == null ? void 0 : e(n);
6628
6628
  }
6629
6629
  var Et, xt;
6630
- class gn extends j {
6630
+ class fn extends j {
6631
6631
  constructor() {
6632
6632
  super();
6633
6633
  /**
6634
6634
  * @type boolean | import("lit").nothing
6635
6635
  */
6636
- L(this, Et, !0);
6636
+ F(this, Et, !0);
6637
6637
  /**
6638
6638
  * @type boolean | import("lit").nothing
6639
6639
  */
6640
- L(this, xt, !0);
6640
+ F(this, xt, !0);
6641
6641
  this.multipleFeatures = !1, this.drawnFeatures = [], this.importFeatures = !1, this.showEditor = !1, this.currentlyDrawing = !1, this.drawFunc = null, this.geoJSON = "", this.unstyled = !1, this.select = !1;
6642
6642
  }
6643
6643
  /**
6644
6644
  * Updates button states based on conditions
6645
6645
  */
6646
6646
  updateButtonStates() {
6647
- const { drawDisabled: e, discardDisabled: i } = Dn(this);
6648
- A(this, Et, e), A(this, xt, i);
6647
+ const { drawDisabled: e, discardDisabled: i } = Zn(this);
6648
+ $(this, Et, e), $(this, xt, i);
6649
6649
  }
6650
6650
  /**
6651
6651
  * Overrides createRenderRoot to handle shadow DOM
@@ -6658,8 +6658,8 @@ class gn extends j {
6658
6658
  const e = this.currentlyDrawing ? "drawing" : "draw";
6659
6659
  return U`
6660
6660
  <style>
6661
- ${!this.unstyled && qn}
6662
- ${!this.unstyled && Zn}
6661
+ ${!this.unstyled && Kn}
6662
+ ${!this.unstyled && Dn}
6663
6663
  </style>
6664
6664
  <div class="wrap-btn">
6665
6665
  <slot></slot>
@@ -6668,7 +6668,7 @@ class gn extends j {
6668
6668
  <button
6669
6669
  data-cy="drawBtn"
6670
6670
  class="${this.select ? "pointer" : "polygon"} icon"
6671
- ?disabled="${$(this, Et) || C}"
6671
+ ?disabled="${M(this, Et) || C}"
6672
6672
  @click="${() => this.drawFunc.start()}"
6673
6673
  >
6674
6674
  ${e}
@@ -6678,7 +6678,7 @@ class gn extends j {
6678
6678
  <button
6679
6679
  data-cy="discardBtn"
6680
6680
  class="discard icon"
6681
- ?disabled="${$(this, xt) || C}"
6681
+ ?disabled="${M(this, xt) || C}"
6682
6682
  @click="${() => this.drawFunc.discard()}"
6683
6683
  >
6684
6684
  discard
@@ -6686,7 +6686,7 @@ class gn extends j {
6686
6686
  </div>
6687
6687
 
6688
6688
  <!-- Import Button -->
6689
- ${mi(
6689
+ ${_i(
6690
6690
  this.importFeatures,
6691
6691
  () => U`
6692
6692
  <!-- Import Input Field : Hidden -->
@@ -6713,7 +6713,7 @@ class gn extends j {
6713
6713
  </div>
6714
6714
 
6715
6715
  <!-- Geo JSON Wrapper -->
6716
- ${mi(
6716
+ ${_i(
6717
6717
  this.showEditor,
6718
6718
  () => U`
6719
6719
  <div class="json-wrapper">
@@ -6728,7 +6728,7 @@ class gn extends j {
6728
6728
  <button
6729
6729
  data-cy="copyBtn"
6730
6730
  class="icon-copy"
6731
- @click=${() => Kn(this.geoJSON)}
6731
+ @click=${() => Qn(this.geoJSON)}
6732
6732
  >
6733
6733
  ${this.unstyled ? "copy" : C}
6734
6734
  </button>
@@ -6739,7 +6739,7 @@ class gn extends j {
6739
6739
  }
6740
6740
  }
6741
6741
  Et = new WeakMap(), xt = new WeakMap(), // Define properties with default values and types
6742
- I(gn, "properties", {
6742
+ R(fn, "properties", {
6743
6743
  multipleFeatures: { attribute: !1, type: Boolean },
6744
6744
  drawnFeatures: { attribute: !1, state: !0, type: Array },
6745
6745
  currentlyDrawing: { attribute: !1, state: !0, type: Boolean },
@@ -6750,8 +6750,8 @@ I(gn, "properties", {
6750
6750
  geoJSON: { attribute: "geo-json", type: String },
6751
6751
  unstyled: { type: Boolean }
6752
6752
  });
6753
- customElements.define("eox-drawtools-controller", gn);
6754
- const Ds = `
6753
+ customElements.define("eox-drawtools-controller", fn);
6754
+ const Zs = `
6755
6755
  button.discard:before {
6756
6756
  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")
6757
6757
  }
@@ -6796,24 +6796,32 @@ const Ds = `
6796
6796
  color: white;
6797
6797
  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")
6798
6798
  }
6799
- `, qs = (n) => {
6799
+ `, Ks = (n) => {
6800
6800
  (() => {
6801
- n.emitDrawnFeatures(), n.multipleFeatures || (n.draw.setActive(!1), n.selectionEvents.removeSelectionEvent(), n.currentlyDrawing = !1);
6801
+ if (n.emitDrawnFeatures(), !n.multipleFeatures)
6802
+ n.draw.setActive(!1), n.selectionEvents.removeSelectionEvent(), n.currentlyDrawing = !1;
6803
+ else if (n.continuous)
6804
+ if (!n.layerId)
6805
+ n.drawLayer.getSource().clear(!0), n.drawnFeatures = [];
6806
+ else {
6807
+ const i = n.drawLayer.getSource().getFeatures().at(-1);
6808
+ n.drawLayer.getSource().clear(!0), n.drawLayer.getSource().addFeature(i), n.drawnFeatures = [i];
6809
+ }
6802
6810
  })(), n.requestUpdate();
6803
- }, Zs = (n) => {
6811
+ }, Ds = (n) => {
6804
6812
  const t = () => {
6805
6813
  n.drawLayer.set("isDrawingEnabled", !0), n.draw.setActive(!0), n.selectionEvents.addSelectionEvent();
6806
6814
  }, e = () => {
6807
6815
  n.currentlyDrawing = !0, n.requestUpdate();
6808
6816
  };
6809
6817
  t(), e();
6810
- }, Ks = (n) => {
6818
+ }, Qs = (n) => {
6811
6819
  let t;
6812
6820
  return typeof n == "string" ? t = /** @type {HTMLElement} */
6813
6821
  document.querySelector(n) : t = n, t;
6814
- }, _i = (n, t) => {
6822
+ }, vi = (n, t) => {
6815
6823
  var s, o, a, l, h;
6816
- const i = Ks(n.for), r = i.map;
6824
+ const i = Qs(n.for), r = i.map;
6817
6825
  return n.drawLayer = i.addOrUpdateLayer({
6818
6826
  zIndex: 100,
6819
6827
  type: "Vector",
@@ -6870,15 +6878,15 @@ const Ds = `
6870
6878
  /** @type {unknown} */
6871
6879
  i.interactions.drawInteraction, n.modify = /** @type {import("ol/interaction").Modify} */
6872
6880
  /** @type {unknown} */
6873
- i.interactions.drawInteractionmodify, de(n, i, n.layerId), (h = n.modify) == null || h.on("modifyend", () => n.onModifyEnd()), i.addEventListener("addfeatures", () => qs(n)), { EoxMap: i, OlMap: r };
6874
- }, Qs = (n) => {
6881
+ i.interactions.drawInteractionmodify, ge(n, i, n.layerId), (h = n.modify) == null || h.on("modifyend", () => n.onModifyEnd()), i.addEventListener("addfeatures", () => Ks(n)), { EoxMap: i, OlMap: r };
6882
+ }, to = (n) => {
6875
6883
  const t = () => {
6876
6884
  n.drawnFeatures = [], n.draw.setActive(!1), n.selectionEvents.removeSelectionEvent(), n.drawLayer.getSource().clear(), n.geoJSON = null;
6877
6885
  }, e = () => {
6878
6886
  n.emitDrawnFeatures(), n.currentlyDrawing = !1, n.requestUpdate();
6879
6887
  };
6880
6888
  t(), e();
6881
- }, to = (n, t) => {
6889
+ }, eo = (n, t) => {
6882
6890
  setTimeout(() => {
6883
6891
  const i = n.drawLayer.getSource().getFeatures(), r = n.eoxMap.projection || "EPSG:3857", s = n.projection;
6884
6892
  n.drawnFeatures = s ? i.map((a) => {
@@ -6889,10 +6897,10 @@ const Ds = `
6889
6897
  let o;
6890
6898
  switch (n.format) {
6891
6899
  case "geojson":
6892
- o = Ls(n.drawnFeatures);
6900
+ o = Ts(n.drawnFeatures);
6893
6901
  break;
6894
6902
  case "wkt":
6895
- o = Ws(n.drawnFeatures);
6903
+ o = qs(n.drawnFeatures);
6896
6904
  break;
6897
6905
  case "feature":
6898
6906
  o = n.drawnFeatures;
@@ -6903,7 +6911,7 @@ const Ds = `
6903
6911
  }
6904
6912
  n.updateGeoJSON(), n.requestUpdate(), t(o);
6905
6913
  }, 0);
6906
- }, eo = (n) => {
6914
+ }, io = (n) => {
6907
6915
  const t = (r) => {
6908
6916
  (r == null ? void 0 : r.detail.id) !== "SelectLayerClickInteraction" || !r.detail.feature || (n.drawLayer.getSource().addFeature(r.detail.feature), n.eoxMap.dispatchEvent(
6909
6917
  new CustomEvent("addfeatures", { detail: r.detail })
@@ -6916,7 +6924,7 @@ const Ds = `
6916
6924
  const r = (s = n.eoxMap.selectInteractions) == null ? void 0 : s.SelectLayerHoverInteraction;
6917
6925
  r && (r.selectedFids = [], r.setActive(!1)), n.eoxMap.removeEventListener("select", t);
6918
6926
  } };
6919
- }, de = (n, t, e) => {
6927
+ }, ge = (n, t, e) => {
6920
6928
  var a, l;
6921
6929
  if (!e || !t)
6922
6930
  return;
@@ -6960,24 +6968,24 @@ const Ds = `
6960
6968
  i.interactions = [r, s], t.addOrUpdateLayer(i);
6961
6969
  const o = n.draw;
6962
6970
  n.draw = t.selectInteractions.SelectLayerClickInteraction, o.setActive(!1), t.selectInteractions.SelectLayerClickInteraction.setActive(!1), t.selectInteractions.SelectLayerHoverInteraction.setActive(!1);
6963
- }, io = (n, t, e, i) => {
6971
+ }, no = (n, t, e, i) => {
6964
6972
  if (t) {
6965
6973
  if (e) {
6966
- i && e !== i && vi(n, t), de(n, t, e);
6974
+ i && e !== i && Ci(n, t), ge(n, t, e);
6967
6975
  return;
6968
6976
  }
6969
6977
  if (!e && i) {
6970
- vi(n, t);
6978
+ Ci(n, t);
6971
6979
  return;
6972
6980
  }
6973
6981
  }
6974
6982
  };
6975
- function vi(n, t) {
6983
+ function Ci(n, t) {
6976
6984
  t && (n.discardDrawing(), n.selectionEvents.removeSelectionEvent(), n.draw = /** @type {import("ol/interaction").Draw} */
6977
6985
  t.interactions.drawInteraction, t.selectInteractions.SelectLayerClickInteraction.remove(), t.selectInteractions.SelectLayerHoverInteraction.remove());
6978
6986
  }
6979
- const no = ':root,:host { --spacing: 1rem; --block-spacing-vertical: calc(var(--spacing) * 2); --block-spacing-horizontal: var(--spacing); --background-color: var(--eox-background-color, transparent); --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);}pre { position: relative; border-radius: 4px; z-index: 1; margin: 0; padding: 20px 0; background: transparent; background: var(--code-bg-color, #8e96aa24); overflow: auto;}code { display: block; padding: 0 24px; width: fit-content; min-width: 100%; line-height: var(--code-line-height, 1.7); font-family: var(--code-font-family, monospace); font-size: var(--code-font-size, var(--font-size)); color: var(--code-color, #004170);}:not(pre) > code { display: inline; border-radius: 4px; background: var(--code-bg-color, #8e96aa24); padding: var(--code-padding, 3px 6px);}';
6980
- function ro(n, t) {
6987
+ const ro = ':root,:host { --spacing: 1rem; --block-spacing-vertical: calc(var(--spacing) * 2); --block-spacing-horizontal: var(--spacing); --background-color: var(--eox-background-color, transparent); --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);}pre { position: relative; border-radius: 4px; z-index: 1; margin: 0; padding: 20px 0; background: transparent; background: var(--code-bg-color, #8e96aa24); overflow: auto;}code { display: block; padding: 0 24px; width: fit-content; min-width: 100%; line-height: var(--code-line-height, 1.7); font-family: var(--code-font-family, monospace); font-size: var(--code-font-size, var(--font-size)); color: var(--code-color, #004170);}:not(pre) > code { display: inline; border-radius: 4px; background: var(--code-bg-color, #8e96aa24); padding: var(--code-padding, 3px 6px);}';
6988
+ function so(n, t) {
6981
6989
  function e(s) {
6982
6990
  s.preventDefault(), s.stopPropagation();
6983
6991
  }
@@ -6989,45 +6997,49 @@ function ro(n, t) {
6989
6997
  }
6990
6998
  ["dragenter", "dragover", "dragleave", "drop"].forEach((s) => {
6991
6999
  t.addEventListener(s, e, !1), ["dragenter", "dragover"].includes(s) ? t.addEventListener(s, i, !1) : t.addEventListener(s, r, !1);
6992
- }), t.addEventListener("drop", (s) => fn(s, n), !1);
7000
+ }), t.addEventListener("drop", (s) => pn(s, n), !1);
6993
7001
  }
6994
- function so(n) {
7002
+ function oo(n) {
6995
7003
  n.preventDefault(), n.stopPropagation();
6996
7004
  }
6997
- function fn(n, t) {
6998
- so(n);
7005
+ function pn(n, t) {
7006
+ oo(n);
6999
7007
  const e = n.dataTransfer ? n.dataTransfer.files : (
7000
7008
  /**@type {HTMLInputElement}*/
7001
7009
  n.target.files
7002
7010
  );
7003
- Array.from(e).forEach((i) => oo(i, t));
7011
+ Array.from(e).forEach((i) => ao(i, t));
7004
7012
  }
7005
- function oo(n, t) {
7013
+ function ao(n, t) {
7006
7014
  const e = new FileReader();
7007
7015
  e.readAsText(n), e.onloadend = function() {
7008
7016
  typeof e.result == "string" && t.handleFeatureChange(e.result);
7009
7017
  };
7010
7018
  }
7011
- var nt, rt, Pt, st;
7012
- class ao extends j {
7019
+ var nt, rt, Pt, st, Mt;
7020
+ class lo extends j {
7013
7021
  constructor() {
7014
7022
  super();
7015
7023
  /**
7016
7024
  * @type import("@eox/map").EOxMap
7017
7025
  */
7018
- L(this, nt);
7026
+ F(this, nt);
7019
7027
  /**
7020
7028
  * @type import("ol").Map
7021
7029
  */
7022
- L(this, rt);
7030
+ F(this, rt);
7023
7031
  /**
7024
7032
  * @type string
7025
7033
  */
7026
- L(this, Pt);
7034
+ F(this, Pt);
7027
7035
  /**
7028
7036
  * @type string
7029
7037
  */
7030
- L(this, st);
7038
+ F(this, st);
7039
+ /**
7040
+ * @type boolean
7041
+ */
7042
+ F(this, Mt);
7031
7043
  this.allowModify = !1, this.for = "eox-map", this.currentlyDrawing = !1, this.draw = null, this.drawLayer = null, this.layerId = "", this.drawnFeatures = [], this.featureStyles = null, this.modify = null, this.multipleFeatures = !1, this.importFeatures = !1, this.showEditor = !1, this.showList = !1, this.projection = "EPSG:4326", this.type = "Polygon", this.selectionEvents = null, this.format = "feature", this.unstyled = !1, this.noShadow = !1;
7032
7044
  }
7033
7045
  // Define properties with defaults and types
@@ -7036,6 +7048,7 @@ class ao extends j {
7036
7048
  allowModify: { attribute: "allow-modify", type: Boolean },
7037
7049
  for: { type: String },
7038
7050
  currentlyDrawing: { attribute: !1, state: !0, type: Boolean },
7051
+ continuous: { type: Boolean },
7039
7052
  draw: { attribute: !1, state: !0 },
7040
7053
  drawLayer: { attribute: !1, state: !0 },
7041
7054
  drawnFeatures: { attribute: !1, state: !0, type: Array },
@@ -7054,28 +7067,38 @@ class ao extends j {
7054
7067
  };
7055
7068
  }
7056
7069
  /**
7057
- *
7058
- *
7070
+ * Enables the user to draw continuously one feature after another
7071
+ * without having to discard previous ones manually
7072
+ * @type {boolean}
7073
+ */
7074
+ set continuous(e) {
7075
+ $(this, Mt, e), e && (this.multipleFeatures = !0);
7076
+ }
7077
+ get continuous() {
7078
+ return M(this, Mt);
7079
+ }
7080
+ /**
7081
+ * Enables selection mode for the passed layer
7059
7082
  * @type {string}
7060
7083
  */
7061
7084
  set layerId(e) {
7062
- io(this, this.eoxMap, e, $(this, st)), A(this, st, e);
7085
+ no(this, this.eoxMap, e, M(this, st)), $(this, st, e);
7063
7086
  }
7064
7087
  get layerId() {
7065
- return $(this, st);
7088
+ return M(this, st);
7066
7089
  }
7067
7090
  /**
7068
7091
  * @onClick Event handler triggered to start drawing on the map.
7069
7092
  */
7070
7093
  startDrawing() {
7071
- Zs(this);
7094
+ Ds(this);
7072
7095
  }
7073
7096
  /**
7074
7097
  * @onClick Event handler triggered to discard/stop drawing
7075
7098
  * on the map and delete the drawn shapes.
7076
7099
  */
7077
7100
  discardDrawing() {
7078
- Qs(this);
7101
+ to(this);
7079
7102
  }
7080
7103
  /**
7081
7104
  * @param {string} text - The string representation of the features to be parsed.
@@ -7083,7 +7106,7 @@ class ao extends j {
7083
7106
  */
7084
7107
  handleFeatureChange(e, i = !1) {
7085
7108
  this.eoxMap.parseTextToFeature(
7086
- e || JSON.stringify(Qe),
7109
+ e || JSON.stringify(ti),
7087
7110
  this.drawLayer,
7088
7111
  this.eoxMap,
7089
7112
  i
@@ -7093,7 +7116,7 @@ class ao extends j {
7093
7116
  * @param {DragEvent} evt - The event object from the file input interaction.
7094
7117
  */
7095
7118
  handleFilesChange(e) {
7096
- fn(e, this);
7119
+ pn(e, this);
7097
7120
  }
7098
7121
  /**
7099
7122
  * @event onModifyEnd triggered when the modification of a shape is completed.
@@ -7105,8 +7128,8 @@ class ao extends j {
7105
7128
  * Update #geoJSON with stringify feature.
7106
7129
  */
7107
7130
  updateGeoJSON() {
7108
- A(this, Pt, JSON.stringify(
7109
- this.eoxMap.parseFeature(this.drawnFeatures) || Qe,
7131
+ $(this, Pt, JSON.stringify(
7132
+ this.eoxMap.parseFeature(this.drawnFeatures) || ti,
7110
7133
  void 0,
7111
7134
  2
7112
7135
  ));
@@ -7115,7 +7138,7 @@ class ao extends j {
7115
7138
  * Triggers different events when the drawing of a shape is completed.
7116
7139
  */
7117
7140
  emitDrawnFeatures() {
7118
- to(this, (i) => {
7141
+ eo(this, (i) => {
7119
7142
  this.dispatchEvent(new CustomEvent("drawupdate", { detail: i }));
7120
7143
  });
7121
7144
  }
@@ -7131,21 +7154,21 @@ class ao extends j {
7131
7154
  * It then calls requestUpdate to trigger a re-render.
7132
7155
  */
7133
7156
  firstUpdated() {
7134
- const { EoxMap: e, OlMap: i } = _i(this, this.multipleFeatures);
7135
- this.eoxMap = e, A(this, rt, i), this.selectionEvents = eo(this), this.importFeatures && ro(this, this.eoxMap), this.updateGeoJSON(), this.requestUpdate();
7157
+ const { EoxMap: e, OlMap: i } = vi(this, this.multipleFeatures);
7158
+ this.eoxMap = e, $(this, rt, i), this.selectionEvents = io(this), this.importFeatures && so(this, this.eoxMap), this.updateGeoJSON(), this.requestUpdate();
7136
7159
  }
7137
7160
  updated(e) {
7138
7161
  if (e.has("for")) {
7139
- const { EoxMap: i, OlMap: r } = _i(this, this.multipleFeatures);
7140
- this.eoxMap = i, A(this, rt, r);
7162
+ const { EoxMap: i, OlMap: r } = vi(this, this.multipleFeatures);
7163
+ this.eoxMap = i, $(this, rt, r);
7141
7164
  }
7142
7165
  }
7143
7166
  get eoxMap() {
7144
- return $(this, nt);
7167
+ return M(this, nt);
7145
7168
  }
7146
7169
  set eoxMap(e) {
7147
- const i = $(this, nt);
7148
- A(this, nt, e), this.requestUpdate("eoxMap", i);
7170
+ const i = M(this, nt);
7171
+ $(this, nt, e), this.requestUpdate("eoxMap", i);
7149
7172
  }
7150
7173
  disconnectedCallback() {
7151
7174
  var e;
@@ -7157,8 +7180,8 @@ class ao extends j {
7157
7180
  return U`
7158
7181
  <style>
7159
7182
  :host { display: block; }
7160
- ${!this.unstyled && no}
7161
- ${!this.unstyled && Ds}
7183
+ ${!this.unstyled && ro}
7184
+ ${!this.unstyled && Zs}
7162
7185
  </style>
7163
7186
 
7164
7187
  <!-- Controller Component -->
@@ -7176,13 +7199,13 @@ class ao extends j {
7176
7199
  .multipleFeatures=${this.multipleFeatures}
7177
7200
  .importFeatures=${this.importFeatures}
7178
7201
  .showEditor=${this.showEditor}
7179
- .geoJSON=${$(this, Pt)}
7202
+ .geoJSON=${M(this, Pt)}
7180
7203
  ></eox-drawtools-controller>
7181
7204
 
7182
7205
  <!-- List Component -->
7183
7206
  ${this.showList && ((e = this.drawnFeatures) != null && e.length) ? U`<eox-drawtools-list
7184
7207
  .eoxMap=${this.eoxMap}
7185
- .olMap=${$(this, rt)}
7208
+ .olMap=${M(this, rt)}
7186
7209
  .draw=${this.draw}
7187
7210
  .drawLayer=${this.drawLayer}
7188
7211
  .drawnFeatures=${this.drawnFeatures}
@@ -7195,8 +7218,8 @@ class ao extends j {
7195
7218
  `;
7196
7219
  }
7197
7220
  }
7198
- nt = new WeakMap(), rt = new WeakMap(), Pt = new WeakMap(), st = new WeakMap();
7199
- customElements.define("eox-drawtools", ao);
7221
+ nt = new WeakMap(), rt = new WeakMap(), Pt = new WeakMap(), st = new WeakMap(), Mt = new WeakMap();
7222
+ customElements.define("eox-drawtools", lo);
7200
7223
  export {
7201
- ao as EOxDrawTools
7224
+ lo as EOxDrawTools
7202
7225
  };