@eox/drawtools 0.13.3 → 0.13.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/dist/eox-drawtools.js +984 -1011
  2. package/dist/eox-drawtools.umd.cjs +22 -22
  3. package/package.json +8 -6
  4. package/src/components/controller.js +4 -1
  5. package/src/components/list.js +3 -3
  6. package/src/helpers/generate-upload-events.js +5 -3
  7. package/src/main.js +16 -6
  8. package/src/methods/draw/handle-layer-id.js +1 -1
  9. package/src/methods/draw/init-layer.js +6 -7
  10. package/src/methods/draw/init-selection.js +6 -8
  11. package/types/drawtools/src/components/controller.d.ts.map +1 -1
  12. package/types/drawtools/src/components/list.d.ts +6 -6
  13. package/types/drawtools/src/components/list.d.ts.map +1 -1
  14. package/types/drawtools/src/enums/stories.d.ts.map +1 -1
  15. package/types/drawtools/src/helpers/features-to-geojson.d.ts +2 -1
  16. package/types/drawtools/src/helpers/features-to-geojson.d.ts.map +1 -1
  17. package/types/drawtools/src/helpers/generate-upload-events.d.ts +4 -4
  18. package/types/drawtools/src/helpers/generate-upload-events.d.ts.map +1 -1
  19. package/types/drawtools/src/main.d.ts +25 -9
  20. package/types/drawtools/src/main.d.ts.map +1 -1
  21. package/types/drawtools/src/methods/controller/update-button-states.d.ts.map +1 -1
  22. package/types/drawtools/src/methods/draw/emit-drawn-features.d.ts.map +1 -1
  23. package/types/drawtools/src/methods/draw/handle-layer-id.d.ts +2 -2
  24. package/types/drawtools/src/methods/draw/handle-layer-id.d.ts.map +1 -1
  25. package/types/drawtools/src/methods/draw/init-layer.d.ts +2 -2
  26. package/types/drawtools/src/methods/draw/init-layer.d.ts.map +1 -1
  27. package/types/drawtools/src/methods/draw/init-selection.d.ts +2 -2
  28. package/types/drawtools/src/methods/draw/init-selection.d.ts.map +1 -1
  29. package/types/map/src/components/tooltip.d.ts +1 -1
  30. package/types/map/src/controls/controls.d.ts +2 -2
  31. package/types/map/src/controls/controls.d.ts.map +1 -1
  32. package/types/map/src/controls/geo-location.d.ts +2 -2
  33. package/types/map/src/controls/geo-location.d.ts.map +1 -1
  34. package/types/map/src/controls/loading-indicator.d.ts +2 -2
  35. package/types/map/src/controls/loading-indicator.d.ts.map +1 -1
  36. package/types/map/src/helpers/add-new-feature.d.ts.map +1 -1
  37. package/types/map/src/helpers/center.d.ts.map +1 -1
  38. package/types/map/src/helpers/coordinates-roughly-equals.d.ts.map +1 -1
  39. package/types/map/src/helpers/draw.d.ts +6 -6
  40. package/types/map/src/helpers/draw.d.ts.map +1 -1
  41. package/types/map/src/helpers/generate.d.ts +9 -8
  42. package/types/map/src/helpers/generate.d.ts.map +1 -1
  43. package/types/map/src/helpers/layer.d.ts +5 -5
  44. package/types/map/src/helpers/layer.d.ts.map +1 -1
  45. package/types/map/src/helpers/parse-feature.d.ts.map +1 -1
  46. package/types/map/src/helpers/register-projection-from-code.d.ts.map +1 -1
  47. package/types/map/src/helpers/register-projection.d.ts.map +1 -1
  48. package/types/map/src/helpers/select.d.ts +11 -11
  49. package/types/map/src/helpers/select.d.ts.map +1 -1
  50. package/types/map/src/helpers/tile-grid.d.ts +2 -2
  51. package/types/map/src/helpers/tile-grid.d.ts.map +1 -1
  52. package/types/map/src/helpers/transform.d.ts +2 -2
  53. package/types/map/src/helpers/transform.d.ts.map +1 -1
  54. package/types/map/src/main.d.ts +26 -26
  55. package/types/map/src/main.d.ts.map +1 -1
  56. package/types/map/src/methods/map/add-update-layer.d.ts +2 -2
  57. package/types/map/src/methods/map/add-update-layer.d.ts.map +1 -1
  58. package/types/map/src/methods/map/getters.d.ts.map +1 -1
  59. package/types/map/src/methods/map/setters.d.ts +12 -12
  60. package/types/map/src/methods/map/setters.d.ts.map +1 -1
  61. package/types/map/{types.d.ts → src/types.d.ts} +13 -2
  62. package/types/map/src/types.d.ts.map +1 -0
  63. package/types/map/types.d.ts.map +0 -1
@@ -3,8 +3,8 @@ var Ue = (n) => {
3
3
  throw TypeError(n);
4
4
  };
5
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 R = (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), S = (n, t, e, i) => (je(n, t, "write to private field"), i ? i.call(n, e) : t.set(n, e), 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);
8
8
  /**
9
9
  * @license
10
10
  * Copyright 2019 Google LLC
@@ -45,10 +45,10 @@ const Cn = (n) => new vn(typeof n == "string" ? n : n + "", void 0, wi), wn = (n
45
45
  * Copyright 2017 Google LLC
46
46
  * SPDX-License-Identifier: BSD-3-Clause
47
47
  */
48
- const { is: En, defineProperty: bn, getOwnPropertyDescriptor: xn, getOwnPropertyNames: Pn, getOwnPropertySymbols: Mn, getPrototypeOf: $n } = Object, G = globalThis, Be = G.trustedTypes, An = Be ? Be.emptyScript : "", Zt = G.reactiveElementPolyfillSupport, dt = (n, t) => n, re = { toAttribute(n, t) {
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) {
49
49
  switch (t) {
50
50
  case Boolean:
51
- n = n ? An : null;
51
+ n = n ? Sn : null;
52
52
  break;
53
53
  case Object:
54
54
  case Array:
@@ -73,7 +73,7 @@ const { is: En, defineProperty: bn, getOwnPropertyDescriptor: xn, getOwnProperty
73
73
  }
74
74
  }
75
75
  return e;
76
- } }, Ei = (n, t) => !En(n, t), Ve = { attribute: !0, type: String, converter: re, reflect: !1, hasChanged: Ei };
76
+ } }, bi = (n, t) => !bn(n, t), Ve = { attribute: !0, type: String, converter: re, reflect: !1, hasChanged: bi };
77
77
  Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), G.litPropertyMetadata ?? (G.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
78
78
  class tt extends HTMLElement {
79
79
  static addInitializer(t) {
@@ -85,7 +85,7 @@ class tt extends HTMLElement {
85
85
  static createProperty(t, e = Ve) {
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 && bn(this.prototype, t, r);
88
+ r !== void 0 && En(this.prototype, t, r);
89
89
  }
90
90
  }
91
91
  static getPropertyDescriptor(t, e, i) {
@@ -200,7 +200,7 @@ class tt extends HTMLElement {
200
200
  }
201
201
  requestUpdate(t, e, i) {
202
202
  if (t !== void 0) {
203
- if (i ?? (i = this.constructor.getPropertyOptions(t)), !(i.hasChanged ?? Ei)(this[t], e)) return;
203
+ if (i ?? (i = this.constructor.getPropertyOptions(t)), !(i.hasChanged ?? bi)(this[t], e)) return;
204
204
  this.P(t, e, i);
205
205
  }
206
206
  this.isUpdatePending === !1 && (this._$ES = this._$ET());
@@ -279,9 +279,9 @@ tt.elementStyles = [], tt.shadowRootOptions = { mode: "open" }, tt[dt("elementPr
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, bi = "$lit$", F = `lit$${Math.random().toFixed(9).slice(2)}$`, xi = "?" + F, Sn = `<${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, De = /-->/g, Je = />/g, I = RegExp(`>|${Kt}(?:([^\\s"'>=/]+)(${Kt}*=${Kt}*(?:[^
284
- \f\r"'\`<>=]|("|')|))|$)`, "g"), We = /'/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);
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
285
  function Mi(n, t) {
286
286
  if (!fe(n) || !n.hasOwnProperty("raw")) throw Error("invalid template strings array");
287
287
  return ze !== void 0 ? ze.createHTML(t) : t;
@@ -292,9 +292,9 @@ const Tn = (n, t) => {
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 = De : c[1] !== void 0 ? o = Je : c[2] !== void 0 ? (Pi.test(c[2]) && (r = RegExp("</" + c[2], "g")), o = I) : c[3] !== void 0 && (o = I) : o === I ? 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 ? I : c[3] === '"' ? qe : We) : o === qe || o === We ? o = I : o === De || o === Je ? o = ut : (o = I, r = void 0);
296
- const g = o === I && n[a + 1].startsWith("/>") ? " " : "";
297
- s += o === ut ? l + Sn : u >= 0 ? (i.push(h), l.slice(0, u) + bi + 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 = 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);
298
298
  }
299
299
  return [Mi(n, s + (n[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), i];
300
300
  };
@@ -310,9 +310,9 @@ class yt {
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(bi)) {
313
+ if (r.hasAttributes()) for (const u of r.getAttributeNames()) if (u.endsWith(Ei)) {
314
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] === "?" ? In : f[1] === "@" ? Nn : jt }), r.removeAttribute(u);
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
316
  } else u.startsWith(F) && (l.push({ type: 6, index: s }), r.removeAttribute(u));
317
317
  if (Pi.test(r.tagName)) {
318
318
  const u = r.textContent.split(F), d = u.length - 1;
@@ -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 Rn = class {
345
+ let In = class {
346
346
  constructor(t, e) {
347
347
  this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
348
348
  }
@@ -405,7 +405,7 @@ let Rn = class {
405
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);
406
406
  if (((s = this._$AH) == null ? void 0 : s._$AD) === r) this._$AH.p(e);
407
407
  else {
408
- const o = new Rn(r, this), a = o.u(this.options);
408
+ const o = new In(r, this), a = o.u(this.options);
409
409
  o.p(e), this.T(a), this._$AH = o;
410
410
  }
411
411
  }
@@ -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 In extends jt {
468
+ class Rn extends jt {
469
469
  constructor() {
470
470
  super(...arguments), this.type = 4;
471
471
  }
@@ -610,7 +610,7 @@ const Yn = Hn(class extends Un {
610
610
  }, Ke = { duration: 750 }, Qe = {
611
611
  type: "FeatureCollection",
612
612
  features: []
613
- }, Dn = (n, t) => {
613
+ }, Jn = (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();
@@ -620,26 +620,26 @@ const Yn = Hn(class extends Un {
620
620
  o.highlightById([e]), s.getView().fit(h, Ke);
621
621
  }
622
622
  t.requestUpdate();
623
- }, Jn = "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 {
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 {
625
625
  constructor() {
626
626
  super();
627
627
  /**
628
- * @type import("../../../map/src/select").EOxSelectInteraction
628
+ * @type {import("@eox/map").EOxMap["selectInteractions"][string]}
629
629
  */
630
- R(this, "hoverInteraction");
630
+ I(this, "hoverInteraction");
631
631
  /**
632
- * @type import("../../../map/src/select").EOxSelectInteraction
632
+ * @type {import("@eox/map").EOxMap["selectInteractions"][string]}
633
633
  */
634
- R(this, "clickInteraction");
634
+ I(this, "clickInteraction");
635
635
  /**
636
636
  * @type string | number
637
637
  */
638
- R(this, "hoverId");
638
+ I(this, "hoverId");
639
639
  /**
640
640
  * @type string | number
641
641
  */
642
- R(this, "clickId");
642
+ I(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
  /**
@@ -656,7 +656,7 @@ class Ai extends j {
656
656
  * @param {import("ol").Feature} feature - The selected feature.
657
657
  */
658
658
  _handleFeatureSelectAndDeselect(e) {
659
- Dn(e, this);
659
+ Jn(e, this);
660
660
  }
661
661
  /**
662
662
  *
@@ -682,7 +682,7 @@ class Ai 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 && Jn}
685
+ ${!this.unstyled && Wn}
686
686
  </style>
687
687
  <ul class="list-wrap">
688
688
  ${this.drawnFeatures.map((r, s) => {
@@ -716,7 +716,7 @@ class Ai extends j {
716
716
  `;
717
717
  }
718
718
  }
719
- R(Ai, "properties", {
719
+ I(Si, "properties", {
720
720
  eoxMap: { attribute: !1, state: !0 },
721
721
  olMap: { attribute: !1, state: !0 },
722
722
  draw: { attribute: !1, state: !0 },
@@ -725,8 +725,8 @@ R(Ai, "properties", {
725
725
  modify: { attribute: !1, state: !0 },
726
726
  unstyled: { type: Boolean }
727
727
  });
728
- customElements.define("eox-drawtools-list", Ai);
729
- const Wn = (n) => {
728
+ customElements.define("eox-drawtools-list", Si);
729
+ const Dn = (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
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);}';
@@ -739,29 +739,6 @@ function Kn(n) {
739
739
  }
740
740
  );
741
741
  }
742
- class Si {
743
- /**
744
- * @param {string} type Type.
745
- */
746
- constructor(t) {
747
- this.propagationStopped, this.defaultPrevented, this.type = t, this.target = null;
748
- }
749
- /**
750
- * Prevent default. This means that no emulated `click`, `singleclick` or `doubleclick` events
751
- * will be fired.
752
- * @api
753
- */
754
- preventDefault() {
755
- this.defaultPrevented = !0;
756
- }
757
- /**
758
- * Stop event propagation.
759
- * @api
760
- */
761
- stopPropagation() {
762
- this.propagationStopped = !0;
763
- }
764
- }
765
742
  const Qn = {
766
743
  /**
767
744
  * Triggered when a property is changed.
@@ -769,6 +746,13 @@ const Qn = {
769
746
  * @api
770
747
  */
771
748
  PROPERTYCHANGE: "propertychange"
749
+ }, ye = {
750
+ /**
751
+ * Generic change event. Triggered when the revision counter is increased.
752
+ * @event module:ol/events/Event~BaseEvent#change
753
+ * @api
754
+ */
755
+ CHANGE: "change"
772
756
  };
773
757
  class tr {
774
758
  constructor() {
@@ -789,16 +773,16 @@ class tr {
789
773
  }
790
774
  function er(n, t, e) {
791
775
  let i, r;
792
- e = e || Fi;
776
+ e = e || Ai;
793
777
  let s = 0, o = n.length, a = !1;
794
778
  for (; s < o; )
795
779
  i = s + (o - s >> 1), r = +e(n[i], t), r < 0 ? s = i + 1 : (o = i, a = !r);
796
780
  return a ? s : ~s;
797
781
  }
798
- function Fi(n, t) {
782
+ function Ai(n, t) {
799
783
  return n > t ? 1 : n < t ? -1 : 0;
800
784
  }
801
- function A(n, t) {
785
+ function S(n, t) {
802
786
  const e = Array.isArray(t) ? t : [t], i = e.length;
803
787
  for (let r = 0; r < i; r++)
804
788
  n[n.length] = e[r];
@@ -814,23 +798,46 @@ function ir(n, t) {
814
798
  }
815
799
  function ti() {
816
800
  }
817
- function Gi(n) {
801
+ function Fi(n) {
818
802
  let t, e, i;
819
803
  return function() {
820
804
  const r = Array.prototype.slice.call(arguments);
821
805
  return (!e || this !== i || !ir(r, e)) && (i = this, e = r, t = n.apply(this, arguments)), t;
822
806
  };
823
807
  }
824
- function Ti(n) {
808
+ function Gi(n) {
825
809
  for (const t in n)
826
810
  delete n[t];
827
811
  }
828
- function Ri(n) {
812
+ function Ti(n) {
829
813
  let t;
830
814
  for (t in n)
831
815
  return !1;
832
816
  return !t;
833
817
  }
818
+ class Ii {
819
+ /**
820
+ * @param {string} type Type.
821
+ */
822
+ constructor(t) {
823
+ this.propagationStopped, this.defaultPrevented, this.type = t, this.target = null;
824
+ }
825
+ /**
826
+ * Prevent default. This means that no emulated `click`, `singleclick` or `doubleclick` events
827
+ * will be fired.
828
+ * @api
829
+ */
830
+ preventDefault() {
831
+ this.defaultPrevented = !0;
832
+ }
833
+ /**
834
+ * Stop event propagation.
835
+ * @api
836
+ */
837
+ stopPropagation() {
838
+ this.propagationStopped = !0;
839
+ }
840
+ }
834
841
  class nr extends tr {
835
842
  /**
836
843
  * @param {*} [target] Default event target for dispatched events.
@@ -862,7 +869,7 @@ class nr extends tr {
862
869
  const e = typeof t == "string", i = e ? t : t.type, r = this.listeners_ && this.listeners_[i];
863
870
  if (!r)
864
871
  return;
865
- const s = e ? new Si(t) : (
872
+ const s = e ? new Ii(t) : (
866
873
  /** @type {Event} */
867
874
  t
868
875
  );
@@ -890,7 +897,7 @@ class nr extends tr {
890
897
  * @override
891
898
  */
892
899
  disposeInternal() {
893
- this.listeners_ && Ti(this.listeners_);
900
+ this.listeners_ && Gi(this.listeners_);
894
901
  }
895
902
  /**
896
903
  * Get the listeners for a specified event type. Listeners are returned in the
@@ -924,40 +931,11 @@ class nr extends tr {
924
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]));
925
932
  }
926
933
  }
927
- const ye = {
928
- /**
929
- * Generic change event. Triggered when the revision counter is increased.
930
- * @event module:ol/events/Event~BaseEvent#change
931
- * @api
932
- */
933
- CHANGE: "change",
934
- /**
935
- * Generic error event. Triggered when an error occurs.
936
- * @event module:ol/events/Event~BaseEvent#error
937
- * @api
938
- */
939
- ERROR: "error",
940
- BLUR: "blur",
941
- CLEAR: "clear",
942
- CONTEXTMENU: "contextmenu",
943
- CLICK: "click",
944
- DBLCLICK: "dblclick",
945
- DRAGENTER: "dragenter",
946
- DRAGOVER: "dragover",
947
- DROP: "drop",
948
- FOCUS: "focus",
949
- KEYDOWN: "keydown",
950
- KEYPRESS: "keypress",
951
- LOAD: "load",
952
- RESIZE: "resize",
953
- TOUCHMOVE: "touchmove",
954
- WHEEL: "wheel"
955
- };
956
934
  function mt(n, t, e, i, r) {
957
935
  if (r) {
958
936
  const o = e;
959
- e = function() {
960
- n.removeEventListener(t, e), o.apply(i ?? this, arguments);
937
+ e = function(a) {
938
+ return n.removeEventListener(t, e), o.call(i ?? this, a);
961
939
  };
962
940
  } else i && i !== n && (e = e.bind(i));
963
941
  const s = {
@@ -970,8 +948,8 @@ function mt(n, t, e, i, r) {
970
948
  function ei(n, t, e, i) {
971
949
  return mt(n, t, e, i, !0);
972
950
  }
973
- function It(n) {
974
- n && n.target && (n.target.removeEventListener(n.type, n.listener), Ti(n));
951
+ function Rt(n) {
952
+ n && n.target && (n.target.removeEventListener(n.type, n.listener), Gi(n));
975
953
  }
976
954
  class Xt extends nr {
977
955
  constructor() {
@@ -1064,9 +1042,9 @@ Xt.prototype.un;
1064
1042
  function rr(n) {
1065
1043
  if (Array.isArray(n))
1066
1044
  for (let t = 0, e = n.length; t < e; ++t)
1067
- It(n[t]);
1045
+ Rt(n[t]);
1068
1046
  else
1069
- It(
1047
+ Rt(
1070
1048
  /** @type {import("./events.js").EventsKey} */
1071
1049
  n
1072
1050
  );
@@ -1078,7 +1056,7 @@ let sr = 0;
1078
1056
  function or(n) {
1079
1057
  return n.ol_uid || (n.ol_uid = String(++sr));
1080
1058
  }
1081
- class ii extends Si {
1059
+ class ii extends Ii {
1082
1060
  /**
1083
1061
  * @param {string} type The event type.
1084
1062
  * @param {string} key The property name.
@@ -1200,7 +1178,7 @@ class Li extends Xt {
1200
1178
  unset(t, e) {
1201
1179
  if (this.values_ && t in this.values_) {
1202
1180
  const i = this.values_[t];
1203
- delete this.values_[t], Ri(this.values_) && (this.values_ = null), e || this.notify(t, i);
1181
+ delete this.values_[t], Ti(this.values_) && (this.values_ = null), e || this.notify(t, i);
1204
1182
  }
1205
1183
  }
1206
1184
  }
@@ -1311,7 +1289,7 @@ class lt extends Li {
1311
1289
  * @private
1312
1290
  */
1313
1291
  handleGeometryChanged_() {
1314
- this.geometryChangeKey_ && (It(this.geometryChangeKey_), this.geometryChangeKey_ = null);
1292
+ this.geometryChangeKey_ && (Rt(this.geometryChangeKey_), this.geometryChangeKey_ = null);
1315
1293
  const t = this.getGeometry();
1316
1294
  t && (this.geometryChangeKey_ = mt(
1317
1295
  t,
@@ -1380,14 +1358,6 @@ function lr(n) {
1380
1358
  return t;
1381
1359
  };
1382
1360
  }
1383
- new Array(6);
1384
- function Ii() {
1385
- return [1, 0, 0, 1, 0, 0];
1386
- }
1387
- function Ni(n, t, e, i, r, s, o, a) {
1388
- const l = Math.sin(s), h = Math.cos(s);
1389
- 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;
1390
- }
1391
1361
  const w = {
1392
1362
  UNKNOWN: 0,
1393
1363
  INTERSECTING: 1,
@@ -1396,14 +1366,11 @@ const w = {
1396
1366
  BELOW: 8,
1397
1367
  LEFT: 16
1398
1368
  };
1399
- function W(n, t, e) {
1369
+ function D(n, t, e) {
1400
1370
  let i, r;
1401
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;
1402
1372
  }
1403
- function hr(n, t) {
1404
- return n[0] <= t[0] && t[2] <= n[2] && n[1] <= t[1] && t[3] <= n[3];
1405
- }
1406
- function Oi(n, t, e) {
1373
+ function Ri(n, t, e) {
1407
1374
  return n[0] <= t && t <= n[2] && n[1] <= e && e <= n[3];
1408
1375
  }
1409
1376
  function ni(n, t) {
@@ -1414,39 +1381,39 @@ function ni(n, t) {
1414
1381
  function me() {
1415
1382
  return [1 / 0, 1 / 0, -1 / 0, -1 / 0];
1416
1383
  }
1417
- function ki(n, t, e, i, r) {
1384
+ function Ni(n, t, e, i, r) {
1418
1385
  return r ? (r[0] = n, r[1] = t, r[2] = e, r[3] = i, r) : [n, t, e, i];
1419
1386
  }
1420
1387
  function _e(n) {
1421
- return ki(1 / 0, 1 / 0, -1 / 0, -1 / 0, n);
1388
+ return Ni(1 / 0, 1 / 0, -1 / 0, -1 / 0, n);
1422
1389
  }
1423
- function Hi(n, t) {
1390
+ function Oi(n, t) {
1424
1391
  const e = n[0], i = n[1];
1425
- return ki(e, i, e, i, t);
1392
+ return Ni(e, i, e, i, t);
1426
1393
  }
1427
1394
  function ve(n, t, e, i, r) {
1428
1395
  const s = _e(r);
1429
- return Ui(s, n, t, e, i);
1396
+ return ki(s, n, t, e, i);
1430
1397
  }
1431
- function cr(n, t) {
1398
+ function hr(n, t) {
1432
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;
1433
1400
  }
1434
- function Ui(n, t, e, i, r) {
1401
+ function ki(n, t, e, i, r) {
1435
1402
  for (; e < i; e += r)
1436
- ur(n, t[e], t[e + 1]);
1403
+ cr(n, t[e], t[e + 1]);
1437
1404
  return n;
1438
1405
  }
1439
- function ur(n, t, e) {
1406
+ function cr(n, t, e) {
1440
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);
1441
1408
  }
1442
- function dr(n, t) {
1409
+ function ur(n, t) {
1443
1410
  let e;
1444
- return e = t(gr(n)), e || (e = t(fr(n)), e) || (e = t(yr(n)), e) || (e = t(pr(n)), e) ? e : !1;
1411
+ return e = t(dr(n)), e || (e = t(gr(n)), e) || (e = t(pr(n)), e) || (e = t(fr(n)), e) ? e : !1;
1445
1412
  }
1446
- function gr(n) {
1413
+ function dr(n) {
1447
1414
  return [n[0], n[1]];
1448
1415
  }
1449
- function fr(n) {
1416
+ function gr(n) {
1450
1417
  return [n[2], n[1]];
1451
1418
  }
1452
1419
  function Yt(n) {
@@ -1455,19 +1422,19 @@ function Yt(n) {
1455
1422
  function Nt(n) {
1456
1423
  return n[3] - n[1];
1457
1424
  }
1458
- function pr(n) {
1425
+ function fr(n) {
1459
1426
  return [n[0], n[3]];
1460
1427
  }
1461
- function yr(n) {
1428
+ function pr(n) {
1462
1429
  return [n[2], n[3]];
1463
1430
  }
1464
- function mr(n, t) {
1431
+ function yr(n, t) {
1465
1432
  return n[0] <= t[2] && n[2] >= t[0] && n[1] <= t[3] && n[3] >= t[1];
1466
1433
  }
1467
- function _r(n, t) {
1434
+ function mr(n, t) {
1468
1435
  return t ? (t[0] = n[0], t[1] = n[1], t[2] = n[2], t[3] = n[3], t) : n;
1469
1436
  }
1470
- function vr(n, t, e) {
1437
+ function _r(n, t, e) {
1471
1438
  let i = !1;
1472
1439
  const r = ni(n, t), s = ni(n, e);
1473
1440
  if (r === w.INTERSECTING || s === w.INTERSECTING)
@@ -1479,6 +1446,33 @@ function vr(n, t, e) {
1479
1446
  }
1480
1447
  return i;
1481
1448
  }
1449
+ function vr(n, t, e, i, r, s) {
1450
+ const o = r - e, a = s - i;
1451
+ if (o !== 0 || a !== 0) {
1452
+ const l = ((n - e) * o + (t - i) * a) / (o * o + a * a);
1453
+ l > 1 ? (e = r, i = s) : l > 0 && (e += o * l, i += a * l);
1454
+ }
1455
+ return X(n, t, e, i);
1456
+ }
1457
+ function X(n, t, e, i) {
1458
+ const r = e - n, s = i - t;
1459
+ return r * r + s * s;
1460
+ }
1461
+ function ri(n) {
1462
+ return n * 180 / Math.PI;
1463
+ }
1464
+ function It(n) {
1465
+ return n * Math.PI / 180;
1466
+ }
1467
+ function Ce(n, t, e) {
1468
+ return n + e * (t - n);
1469
+ }
1470
+ function se(n, t, e) {
1471
+ if (n >= t && n < e)
1472
+ return n;
1473
+ const i = e - t;
1474
+ return ((n - t) % i + i) % i + t;
1475
+ }
1482
1476
  const Cr = {
1483
1477
  // use the radius of the Normal sphere
1484
1478
  radians: 6370997 / (2 * Math.PI),
@@ -1487,7 +1481,7 @@ const Cr = {
1487
1481
  m: 1,
1488
1482
  "us-ft": 1200 / 3937
1489
1483
  };
1490
- class Ce {
1484
+ class we {
1491
1485
  /**
1492
1486
  * @param {Options} options Projection options.
1493
1487
  */
@@ -1613,15 +1607,15 @@ class Ce {
1613
1607
  }
1614
1608
  /**
1615
1609
  * Get the custom point resolution function for this projection (if set).
1616
- * @return {function(number, import("../coordinate.js").Coordinate):number|undefined} The custom point
1610
+ * @return {GetPointResolution|undefined} The custom point
1617
1611
  * resolution function (if set).
1618
1612
  */
1619
1613
  getPointResolutionFunc() {
1620
1614
  return this.getPointResolutionFunc_;
1621
1615
  }
1622
1616
  }
1623
- const Mt = 6378137, et = Math.PI * Mt, wr = [-et, -et, et, et], Er = [-180, -85, 180, 85], St = Mt * Math.log(Math.tan(Math.PI / 2));
1624
- class K extends Ce {
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 {
1625
1619
  /**
1626
1620
  * @param {string} code Code.
1627
1621
  */
@@ -1631,14 +1625,14 @@ class K extends Ce {
1631
1625
  units: "m",
1632
1626
  extent: wr,
1633
1627
  global: !0,
1634
- worldExtent: Er,
1628
+ worldExtent: br,
1635
1629
  getPointResolution: function(e, i) {
1636
1630
  return e / Math.cosh(i[1] / Mt);
1637
1631
  }
1638
1632
  });
1639
1633
  }
1640
1634
  }
1641
- const ri = [
1635
+ const si = [
1642
1636
  new K("EPSG:3857"),
1643
1637
  new K("EPSG:102100"),
1644
1638
  new K("EPSG:102113"),
@@ -1646,13 +1640,13 @@ const ri = [
1646
1640
  new K("http://www.opengis.net/def/crs/EPSG/0/3857"),
1647
1641
  new K("http://www.opengis.net/gml/srs/epsg.xml#3857")
1648
1642
  ];
1649
- function br(n, t, e, i) {
1643
+ function Er(n, t, e, i) {
1650
1644
  const r = n.length;
1651
1645
  e = e > 1 ? e : 2, i = i ?? e, t === void 0 && (e > 2 ? t = n.slice() : t = new Array(r));
1652
1646
  for (let s = 0; s < r; s += i) {
1653
1647
  t[s] = et * n[s] / 180;
1654
1648
  let o = Mt * Math.log(Math.tan(Math.PI * (+n[s + 1] + 90) / 360));
1655
- o > St ? o = St : o < -St && (o = -St), t[s + 1] = o;
1649
+ o > At ? o = At : o < -At && (o = -At), t[s + 1] = o;
1656
1650
  }
1657
1651
  return t;
1658
1652
  }
@@ -1663,8 +1657,8 @@ function xr(n, t, e, i) {
1663
1657
  t[s] = 180 * n[s] / et, t[s + 1] = 360 * Math.atan(Math.exp(n[s + 1] / Mt)) / Math.PI - 90;
1664
1658
  return t;
1665
1659
  }
1666
- const Pr = 6378137, si = [-180, -90, 180, 90], Mr = Math.PI * Pr / 180;
1667
- class N extends Ce {
1660
+ const Pr = 6378137, oi = [-180, -90, 180, 90], Mr = Math.PI * Pr / 180;
1661
+ class N extends we {
1668
1662
  /**
1669
1663
  * @param {string} code Code.
1670
1664
  * @param {string} [axisOrientation] Axis orientation.
@@ -1673,15 +1667,15 @@ class N extends Ce {
1673
1667
  super({
1674
1668
  code: t,
1675
1669
  units: "degrees",
1676
- extent: si,
1670
+ extent: oi,
1677
1671
  axisOrientation: e,
1678
1672
  global: !0,
1679
1673
  metersPerUnit: Mr,
1680
- worldExtent: si
1674
+ worldExtent: oi
1681
1675
  });
1682
1676
  }
1683
1677
  }
1684
- const oi = [
1678
+ const ai = [
1685
1679
  new N("CRS:84"),
1686
1680
  new N("EPSG:4326", "neu"),
1687
1681
  new N("urn:ogc:def:crs:OGC:1.3:CRS84"),
@@ -1690,12 +1684,12 @@ const oi = [
1690
1684
  new N("http://www.opengis.net/gml/srs/epsg.xml#4326", "neu"),
1691
1685
  new N("http://www.opengis.net/def/crs/EPSG/0/4326", "neu")
1692
1686
  ];
1693
- let se = {};
1687
+ let oe = {};
1694
1688
  function $r(n) {
1695
- return se[n] || se[n.replace(/urn:(x-)?ogc:def:crs:EPSG:(.*:)?(\w+)$/, "EPSG:$3")] || null;
1689
+ return oe[n] || oe[n.replace(/urn:(x-)?ogc:def:crs:EPSG:(.*:)?(\w+)$/, "EPSG:$3")] || null;
1696
1690
  }
1697
- function Ar(n, t) {
1698
- se[n] = t;
1691
+ function Sr(n, t) {
1692
+ oe[n] = t;
1699
1693
  }
1700
1694
  let it = {};
1701
1695
  function _t(n, t, e) {
@@ -1705,61 +1699,34 @@ function _t(n, t, e) {
1705
1699
  function ee(n, t) {
1706
1700
  return n in it && t in it[n] ? it[n][t] : null;
1707
1701
  }
1708
- function Sr(n, t, e, i, r, s) {
1709
- const o = r - e, a = s - i;
1710
- if (o !== 0 || a !== 0) {
1711
- const l = ((n - e) * o + (t - i) * a) / (o * o + a * a);
1712
- l > 1 ? (e = r, i = s) : l > 0 && (e += o * l, i += a * l);
1713
- }
1714
- return X(n, t, e, i);
1715
- }
1716
- function X(n, t, e, i) {
1717
- const r = e - n, s = i - t;
1718
- return r * r + s * s;
1719
- }
1720
- function ai(n) {
1721
- return n * 180 / Math.PI;
1722
- }
1723
- function Rt(n) {
1724
- return n * Math.PI / 180;
1725
- }
1726
- function we(n, t, e) {
1727
- return n + e * (t - n);
1728
- }
1729
- function oe(n, t, e) {
1730
- if (n >= t && n < e)
1731
- return n;
1732
- const i = e - t;
1733
- return ((n - t) % i + i) % i + t;
1734
- }
1735
- 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), ji = ht * ht, Ee = ji * ht, be = Ee * ht, Xi = be * ht, Yi = 1 - P / 4 - 3 * Bt / 64 - 5 * Vt / 256, Fr = 3 * P / 8 + 3 * Bt / 32 + 45 * Vt / 1024, Gr = 15 * Bt / 256 + 45 * Vt / 1024, Tr = 35 * Vt / 3072, Rr = 3 / 2 * ht - 27 / 32 * Ee + 269 / 512 * Xi, Lr = 21 / 16 * ji - 55 / 32 * be, Ir = 151 / 96 * Ee - 417 / 128 * Xi, Nr = 1097 / 512 * be, kt = 6378137;
1736
- function Or(n, t, e) {
1737
- const i = n - 5e5, o = (e.north ? t : t - 1e7) / Ot / (kt * Yi), a = o + Rr * Math.sin(2 * o) + Lr * Math.sin(4 * o) + Ir * 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), _ = kt / p, E = (1 - P) / f, v = k * c ** 2, M = v * v, b = i / (_ * Ot), T = b * b, ct = T * b, ke = ct * b, He = ke * b, pn = He * b, yn = a - u / E * (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);
1738
- let qt = (b - ct / 6 * (1 + 2 * d + v) + He / 120 * (5 - 2 * v + 28 * d - 3 * M + 8 * k + 24 * g)) / c;
1739
- return qt = oe(
1740
- qt + Rt(Bi(e.number)),
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)),
1741
1708
  -Math.PI,
1742
1709
  Math.PI
1743
- ), [ai(qt), ai(yn)];
1710
+ ), [ri(qt), ri(yn)];
1744
1711
  }
1745
- const hi = -80, ci = 84, kr = -180, Hr = 180;
1746
- function Ur(n, t, e) {
1747
- n = oe(n, kr, Hr), t < hi ? t = hi : t > ci && (t = ci);
1748
- 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 = Bi(e.number), u = Rt(c), d = kt / Math.sqrt(1 - P * r ** 2), g = k * s ** 2, f = s * oe(h - u, -Math.PI, Math.PI), p = f * f, _ = p * f, E = _ * f, v = E * f, M = v * f, b = kt * (Yi * i - Fr * Math.sin(2 * i) + Gr * Math.sin(4 * i) - Tr * Math.sin(6 * i)), T = Ot * d * (f + _ / 6 * (1 - a + g) + v / 120 * (5 - 18 * a + l + 72 * g - 58 * k)) + 5e5;
1749
- let ct = Ot * (b + d * o * (p / 2 + E / 24 * (5 - a + 9 * g + 4 * g ** 2) + M / 720 * (61 - 58 * a + l + 600 * g - 330 * k)));
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)));
1750
1717
  return e.north || (ct += 1e7), [T, ct];
1751
1718
  }
1752
- function Bi(n) {
1719
+ function Xi(n) {
1753
1720
  return (n - 1) * 6 - 180 + 3;
1754
1721
  }
1755
- const jr = [
1722
+ const Ur = [
1756
1723
  /^EPSG:(\d+)$/,
1757
1724
  /^urn:ogc:def:crs:EPSG::(\d+)$/,
1758
1725
  /^http:\/\/www\.opengis\.net\/def\/crs\/EPSG\/0\/(\d+)$/
1759
1726
  ];
1760
- function Vi(n) {
1727
+ function Yi(n) {
1761
1728
  let t = 0;
1762
- for (const r of jr) {
1729
+ for (const r of Ur) {
1763
1730
  const s = n.match(r);
1764
1731
  if (s) {
1765
1732
  t = parseInt(s[1]);
@@ -1782,17 +1749,17 @@ function ui(n, t) {
1782
1749
  return i;
1783
1750
  };
1784
1751
  }
1785
- function Xr(n) {
1786
- return Vi(n) ? new Ce({ code: n, units: "m" }) : null;
1752
+ function jr(n) {
1753
+ return Yi(n) ? new we({ code: n, units: "m" }) : null;
1787
1754
  }
1788
- function Yr(n) {
1789
- const t = Vi(n.getCode());
1755
+ function Xr(n) {
1756
+ const t = Yi(n.getCode());
1790
1757
  return t ? {
1791
- forward: ui(Ur, t),
1792
- inverse: ui(Or, t)
1758
+ forward: ui(Hr, t),
1759
+ inverse: ui(Nr, t)
1793
1760
  } : null;
1794
1761
  }
1795
- const Br = [Yr], Vr = [Xr];
1762
+ const Yr = [Xr], Br = [jr];
1796
1763
  function xe(n, t) {
1797
1764
  if (t !== void 0) {
1798
1765
  for (let e = 0, i = n.length; e < i; ++e)
@@ -1803,9 +1770,9 @@ function xe(n, t) {
1803
1770
  return t;
1804
1771
  }
1805
1772
  function ae(n) {
1806
- Ar(n.getCode(), n), _t(n, n, xe);
1773
+ Sr(n.getCode(), n), _t(n, n, xe);
1807
1774
  }
1808
- function zr(n) {
1775
+ function Vr(n) {
1809
1776
  n.forEach(ae);
1810
1777
  }
1811
1778
  function x(n) {
@@ -1814,7 +1781,7 @@ function x(n) {
1814
1781
  const t = $r(n);
1815
1782
  if (t)
1816
1783
  return t;
1817
- for (const e of Vr) {
1784
+ for (const e of Br) {
1818
1785
  const i = e(n);
1819
1786
  if (i)
1820
1787
  return i;
@@ -1822,13 +1789,13 @@ function x(n) {
1822
1789
  return null;
1823
1790
  }
1824
1791
  function di(n) {
1825
- zr(n), n.forEach(function(t) {
1792
+ Vr(n), n.forEach(function(t) {
1826
1793
  n.forEach(function(e) {
1827
1794
  t !== e && _t(t, e, xe);
1828
1795
  });
1829
1796
  });
1830
1797
  }
1831
- function Dr(n, t, e, i) {
1798
+ function zr(n, t, e, i) {
1832
1799
  n.forEach(function(r) {
1833
1800
  t.forEach(function(s) {
1834
1801
  _t(r, s, e), _t(s, r, i);
@@ -1839,15 +1806,15 @@ function Jr(n, t) {
1839
1806
  if (n === t)
1840
1807
  return !0;
1841
1808
  const e = n.getUnits() === t.getUnits();
1842
- return (n.getCode() === t.getCode() || zi(n, t) === xe) && e;
1809
+ return (n.getCode() === t.getCode() || Bi(n, t) === xe) && e;
1843
1810
  }
1844
- function zi(n, t) {
1811
+ function Bi(n, t) {
1845
1812
  const e = n.getCode(), i = t.getCode();
1846
1813
  let r = ee(e, i);
1847
1814
  if (r)
1848
1815
  return r;
1849
1816
  let s = null, o = null;
1850
- for (const l of Br)
1817
+ for (const l of Yr)
1851
1818
  s || (s = l(n)), o || (o = l(t));
1852
1819
  if (!s && !o)
1853
1820
  return null;
@@ -1881,18 +1848,26 @@ function ie(n, t) {
1881
1848
  }
1882
1849
  function le(n, t) {
1883
1850
  const e = x(n), i = x(t);
1884
- return zi(e, i);
1851
+ return Bi(e, i);
1885
1852
  }
1886
1853
  function Wr() {
1887
- di(ri), di(oi), Dr(
1888
- oi,
1889
- ri,
1890
- br,
1854
+ di(si), di(ai), zr(
1855
+ ai,
1856
+ si,
1857
+ Er,
1891
1858
  xr
1892
1859
  );
1893
1860
  }
1894
1861
  Wr();
1895
- function Di(n, t, e, i, r, s, o) {
1862
+ new Array(6);
1863
+ function Vi() {
1864
+ return [1, 0, 0, 1, 0, 0];
1865
+ }
1866
+ function zi(n, t, e, i, r, s, o, a) {
1867
+ const l = Math.sin(s), h = Math.cos(s);
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
+ }
1870
+ function Ji(n, t, e, i, r, s, o) {
1896
1871
  s = s || [], o = o || 2;
1897
1872
  let a = 0;
1898
1873
  for (let l = t; l < e; l += i) {
@@ -1903,7 +1878,7 @@ function Di(n, t, e, i, r, s, o) {
1903
1878
  }
1904
1879
  return s && s.length != a && (s.length = a), s;
1905
1880
  }
1906
- function qr(n, t, e, i, r, s, o) {
1881
+ function Dr(n, t, e, i, r, s, o) {
1907
1882
  o = o || [];
1908
1883
  const a = Math.cos(r), l = Math.sin(r), h = s[0], c = s[1];
1909
1884
  let u = 0;
@@ -1915,7 +1890,7 @@ function qr(n, t, e, i, r, s, o) {
1915
1890
  }
1916
1891
  return o && o.length != u && (o.length = u), o;
1917
1892
  }
1918
- function Zr(n, t, e, i, r, s, o, a) {
1893
+ function qr(n, t, e, i, r, s, o, a) {
1919
1894
  a = a || [];
1920
1895
  const l = o[0], h = o[1];
1921
1896
  let c = 0;
@@ -1927,7 +1902,7 @@ function Zr(n, t, e, i, r, s, o, a) {
1927
1902
  }
1928
1903
  return a && a.length != c && (a.length = c), a;
1929
1904
  }
1930
- function Kr(n, t, e, i, r, s, o) {
1905
+ function Zr(n, t, e, i, r, s, o) {
1931
1906
  o = o || [];
1932
1907
  let a = 0;
1933
1908
  for (let l = t; l < e; l += i) {
@@ -1937,10 +1912,10 @@ function Kr(n, t, e, i, r, s, o) {
1937
1912
  }
1938
1913
  return o && o.length != a && (o.length = a), o;
1939
1914
  }
1940
- const gi = Ii();
1941
- class Ji extends Li {
1915
+ const gi = Vi(), Kr = [NaN, NaN];
1916
+ class Wi extends Li {
1942
1917
  constructor() {
1943
- super(), this.extent_ = me(), this.extentRevision_ = -1, this.simplifiedGeometryMaxMinSquaredTolerance = 0, this.simplifiedGeometryRevision = 0, this.simplifyTransformedInternal = Gi(
1918
+ super(), this.extent_ = me(), this.extentRevision_ = -1, this.simplifiedGeometryMaxMinSquaredTolerance = 0, this.simplifiedGeometryRevision = 0, this.simplifyTransformedInternal = Fi(
1944
1919
  (t, e, i) => {
1945
1920
  if (!i)
1946
1921
  return this.getSimplifiedGeometry(e);
@@ -1988,8 +1963,7 @@ class Ji extends Li {
1988
1963
  * @return {boolean} Contains (x, y).
1989
1964
  */
1990
1965
  containsXY(t, e) {
1991
- const i = this.getClosestPoint([t, e]);
1992
- return i[0] === t && i[1] === e;
1966
+ return this.closestPointXY(t, e, Kr, Number.MIN_VALUE) === 0;
1993
1967
  }
1994
1968
  /**
1995
1969
  * Return the closest point of the geometry to the passed point as
@@ -2032,7 +2006,7 @@ class Ji extends Li {
2032
2006
  const e = this.computeExtent(this.extent_);
2033
2007
  (isNaN(e[0]) || isNaN(e[1])) && _e(e), this.extentRevision_ = this.getRevision();
2034
2008
  }
2035
- return _r(this.extent_, t);
2009
+ return mr(this.extent_, t);
2036
2010
  }
2037
2011
  /**
2038
2012
  * Rotate the geometry around a given coordinate. This modifies the geometry
@@ -2139,7 +2113,7 @@ class Ji extends Li {
2139
2113
  transform(t, e) {
2140
2114
  const i = x(t), r = i.getUnits() == "tile-pixels" ? function(s, o, a) {
2141
2115
  const l = i.getExtent(), h = i.getWorldExtent(), c = Nt(h) / Nt(l);
2142
- Ni(
2116
+ zi(
2143
2117
  gi,
2144
2118
  h[0],
2145
2119
  h[3],
@@ -2149,7 +2123,7 @@ class Ji extends Li {
2149
2123
  0,
2150
2124
  0
2151
2125
  );
2152
- const u = Di(
2126
+ const u = Ji(
2153
2127
  s,
2154
2128
  0,
2155
2129
  s.length,
@@ -2162,7 +2136,7 @@ class Ji extends Li {
2162
2136
  return this.applyTransform(r), this;
2163
2137
  }
2164
2138
  }
2165
- class q extends Ji {
2139
+ class q extends Wi {
2166
2140
  constructor() {
2167
2141
  super(), this.layout = "XY", this.stride = 2, this.flatCoordinates;
2168
2142
  }
@@ -2314,7 +2288,7 @@ class q extends Ji {
2314
2288
  const i = this.getFlatCoordinates();
2315
2289
  if (i) {
2316
2290
  const r = this.getStride();
2317
- qr(
2291
+ Dr(
2318
2292
  i,
2319
2293
  0,
2320
2294
  i.length,
@@ -2340,7 +2314,7 @@ class q extends Ji {
2340
2314
  const r = this.getFlatCoordinates();
2341
2315
  if (r) {
2342
2316
  const s = this.getStride();
2343
- Zr(
2317
+ qr(
2344
2318
  r,
2345
2319
  0,
2346
2320
  r.length,
@@ -2364,7 +2338,7 @@ class q extends Ji {
2364
2338
  const i = this.getFlatCoordinates();
2365
2339
  if (i) {
2366
2340
  const r = this.getStride();
2367
- Kr(
2341
+ Zr(
2368
2342
  i,
2369
2343
  0,
2370
2344
  i.length,
@@ -2413,7 +2387,7 @@ function $t(n, t, e, i, r) {
2413
2387
  }
2414
2388
  return r.length = s, r;
2415
2389
  }
2416
- function Wi(n, t, e, i, r) {
2390
+ function Di(n, t, e, i, r) {
2417
2391
  r = r || [];
2418
2392
  let s = 0;
2419
2393
  for (let o = 0, a = e.length; o < a; ++o) {
@@ -2428,91 +2402,450 @@ function Wi(n, t, e, i, r) {
2428
2402
  }
2429
2403
  return r.length = s, r;
2430
2404
  }
2431
- class B extends Ji {
2432
- /**
2433
- * @param {Array<Geometry>} geometries Geometries.
2434
- */
2435
- constructor(t) {
2436
- super(), this.geometries_ = t, this.changeEventsKeys_ = [], this.listenGeometriesChange_();
2437
- }
2438
- /**
2439
- * @private
2440
- */
2441
- unlistenGeometriesChange_() {
2442
- this.changeEventsKeys_.forEach(It), this.changeEventsKeys_.length = 0;
2443
- }
2444
- /**
2445
- * @private
2446
- */
2447
- listenGeometriesChange_() {
2448
- const t = this.geometries_;
2449
- for (let e = 0, i = t.length; e < i; ++e)
2450
- this.changeEventsKeys_.push(
2451
- mt(t[e], ye.CHANGE, this.changed, this)
2452
- );
2453
- }
2454
- /**
2455
- * Make a complete copy of the geometry.
2456
- * @return {!GeometryCollection} Clone.
2457
- * @api
2458
- * @override
2459
- */
2460
- clone() {
2461
- const t = new B(
2462
- ne(this.geometries_)
2463
- );
2464
- return t.applyProperties(this), t;
2405
+ function qi(n, t, e, i) {
2406
+ const r = [];
2407
+ let s = me();
2408
+ for (let o = 0, a = e.length; o < a; ++o) {
2409
+ const l = e[o];
2410
+ s = ve(
2411
+ n,
2412
+ t,
2413
+ l[0],
2414
+ i
2415
+ ), r.push((s[0] + s[2]) / 2, (s[1] + s[3]) / 2), t = l[l.length - 1];
2465
2416
  }
2466
- /**
2467
- * @param {number} x X.
2468
- * @param {number} y Y.
2469
- * @param {import("../coordinate.js").Coordinate} closestPoint Closest point.
2470
- * @param {number} minSquaredDistance Minimum squared distance.
2471
- * @return {number} Minimum squared distance.
2472
- * @override
2473
- */
2474
- closestPointXY(t, e, i, r) {
2475
- if (r < W(this.getExtent(), t, e))
2476
- return r;
2477
- const s = this.geometries_;
2478
- for (let o = 0, a = s.length; o < a; ++o)
2479
- r = s[o].closestPointXY(
2417
+ return r;
2418
+ }
2419
+ function ts(n, t, e, i, r) {
2420
+ return !ur(
2421
+ r,
2422
+ /**
2423
+ * @param {import("../../coordinate.js").Coordinate} coordinate Coordinate.
2424
+ * @return {boolean} Contains (x, y).
2425
+ */
2426
+ function(o) {
2427
+ return !H(
2428
+ n,
2480
2429
  t,
2481
2430
  e,
2482
2431
  i,
2483
- r
2432
+ o[0],
2433
+ o[1]
2484
2434
  );
2485
- return r;
2435
+ }
2436
+ );
2437
+ }
2438
+ function H(n, t, e, i, r, s) {
2439
+ let o = 0, a = n[e - i], l = n[e - i + 1];
2440
+ for (; t < e; t += i) {
2441
+ const h = n[t], c = n[t + 1];
2442
+ l <= s ? c > s && (h - a) * (s - l) - (r - a) * (c - l) > 0 && o++ : c <= s && (h - a) * (s - l) - (r - a) * (c - l) < 0 && o--, a = h, l = c;
2486
2443
  }
2487
- /**
2488
- * @param {number} x X.
2489
- * @param {number} y Y.
2490
- * @return {boolean} Contains (x, y).
2491
- * @override
2492
- */
2493
- containsXY(t, e) {
2494
- const i = this.geometries_;
2495
- for (let r = 0, s = i.length; r < s; ++r)
2496
- if (i[r].containsXY(t, e))
2497
- return !0;
2444
+ return o !== 0;
2445
+ }
2446
+ function Pe(n, t, e, i, r, s) {
2447
+ if (e.length === 0 || !H(n, t, e[0], i, r, s))
2498
2448
  return !1;
2449
+ for (let o = 1, a = e.length; o < a; ++o)
2450
+ if (H(n, e[o - 1], e[o], i, r, s))
2451
+ return !1;
2452
+ return !0;
2453
+ }
2454
+ function es(n, t, e, i, r, s) {
2455
+ if (e.length === 0)
2456
+ return !1;
2457
+ for (let o = 0, a = e.length; o < a; ++o) {
2458
+ const l = e[o];
2459
+ if (Pe(n, t, l, i, r, s))
2460
+ return !0;
2461
+ t = l[l.length - 1];
2499
2462
  }
2500
- /**
2501
- * @param {import("../extent.js").Extent} extent Extent.
2502
- * @protected
2503
- * @return {import("../extent.js").Extent} extent Extent.
2504
- * @override
2505
- */
2506
- computeExtent(t) {
2507
- _e(t);
2508
- const e = this.geometries_;
2509
- for (let i = 0, r = e.length; i < r; ++i)
2510
- cr(t, e[i].getExtent());
2511
- return t;
2512
- }
2513
- /**
2514
- * Return the geometries that make up this geometry collection.
2515
- * @return {Array<Geometry>} Geometries.
2463
+ return !1;
2464
+ }
2465
+ function Me(n, t, e, i, r, s, o) {
2466
+ let a, l, h, c, u, d, g;
2467
+ const f = r[s + 1], p = [];
2468
+ for (let v = 0, M = e.length; v < M; ++v) {
2469
+ const E = e[v];
2470
+ for (c = n[E - i], d = n[E - i + 1], a = t; a < E; a += i)
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
+ }
2473
+ let _ = NaN, b = -1 / 0;
2474
+ for (p.sort(Ai), c = p[0], a = 1, l = p.length; a < l; ++a) {
2475
+ u = p[a];
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;
2478
+ }
2479
+ return isNaN(_) && (_ = r[s]), o ? (o.push(_, f, b), o) : [_, f, b];
2480
+ }
2481
+ function Zi(n, t, e, i, r) {
2482
+ let s = [];
2483
+ for (let o = 0, a = e.length; o < a; ++o) {
2484
+ const l = e[o];
2485
+ s = Me(
2486
+ n,
2487
+ t,
2488
+ l,
2489
+ i,
2490
+ r,
2491
+ 2 * o,
2492
+ s
2493
+ ), t = l[l.length - 1];
2494
+ }
2495
+ return s;
2496
+ }
2497
+ function Ht(n, t, e, i, r, s, o) {
2498
+ let a, l;
2499
+ const h = (e - t) / i;
2500
+ if (h === 1)
2501
+ a = t;
2502
+ else if (h === 2)
2503
+ a = t, l = r;
2504
+ else if (h !== 0) {
2505
+ let c = n[t], u = n[t + 1], d = 0;
2506
+ const g = [0];
2507
+ for (let _ = t + i; _ < e; _ += i) {
2508
+ const b = n[_], v = n[_ + 1];
2509
+ d += Math.sqrt((b - c) * (b - c) + (v - u) * (v - u)), g.push(d), c = b, u = v;
2510
+ }
2511
+ const f = r * d, p = er(g, f);
2512
+ p < 0 ? (l = (f - g[-p - 2]) / (g[-p - 1] - g[-p - 2]), a = t + (-p - 2) * i) : a = t + p * i;
2513
+ }
2514
+ o = o > 1 ? o : 2, s = s || new Array(o);
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);
2517
+ return s;
2518
+ }
2519
+ function he(n, t, e, i, r, s) {
2520
+ if (e == t)
2521
+ return null;
2522
+ let o;
2523
+ if (r < n[t + i - 1])
2524
+ return s ? (o = n.slice(t, t + i), o[i - 1] = r, o) : null;
2525
+ if (n[e - 1] < r)
2526
+ return s ? (o = n.slice(e - i, e), o[i - 1] = r, o) : null;
2527
+ if (r == n[t + i - 1])
2528
+ return n.slice(t, t + i);
2529
+ let a = t / i, l = e / i;
2530
+ for (; a < l; ) {
2531
+ const d = a + l >> 1;
2532
+ r < n[(d + 1) * i - 1] ? l = d : a = d + 1;
2533
+ }
2534
+ const h = n[a * i - 1];
2535
+ if (r == h)
2536
+ return n.slice((a - 1) * i, (a - 1) * i + i);
2537
+ const c = n[(a + 1) * i - 1], u = (r - h) / (c - h);
2538
+ o = [];
2539
+ for (let d = 0; d < i - 1; ++d)
2540
+ o.push(
2541
+ Ce(
2542
+ n[(a - 1) * i + d],
2543
+ n[a * i + d],
2544
+ u
2545
+ )
2546
+ );
2547
+ return o.push(r), o;
2548
+ }
2549
+ function is(n, t, e, i, r, s, o) {
2550
+ if (o)
2551
+ return he(
2552
+ n,
2553
+ t,
2554
+ e[e.length - 1],
2555
+ i,
2556
+ r,
2557
+ s
2558
+ );
2559
+ let a;
2560
+ if (r < n[i - 1])
2561
+ return s ? (a = n.slice(0, i), a[i - 1] = r, a) : null;
2562
+ if (n[n.length - 1] < r)
2563
+ return s ? (a = n.slice(n.length - i), a[i - 1] = r, a) : null;
2564
+ for (let l = 0, h = e.length; l < h; ++l) {
2565
+ const c = e[l];
2566
+ if (t != c) {
2567
+ if (r < n[t + i - 1])
2568
+ return null;
2569
+ if (r <= n[c - 1])
2570
+ return he(
2571
+ n,
2572
+ t,
2573
+ c,
2574
+ i,
2575
+ r,
2576
+ !1
2577
+ );
2578
+ t = c;
2579
+ }
2580
+ }
2581
+ return null;
2582
+ }
2583
+ function ns(n, t, e, i) {
2584
+ for (; t < e - i; ) {
2585
+ for (let r = 0; r < i; ++r) {
2586
+ const s = n[t + r];
2587
+ n[t + r] = n[e - i + r], n[e - i + r] = s;
2588
+ }
2589
+ t += i, e -= i;
2590
+ }
2591
+ }
2592
+ function $e(n, t, e, i) {
2593
+ let r = 0, s = n[e - i], o = n[e - i + 1];
2594
+ for (; t < e; t += i) {
2595
+ const a = n[t], l = n[t + 1];
2596
+ r += (a - s) * (l + o), s = a, o = l;
2597
+ }
2598
+ return r === 0 ? void 0 : r > 0;
2599
+ }
2600
+ function Se(n, t, e, i, r) {
2601
+ r = r !== void 0 ? r : !1;
2602
+ for (let s = 0, o = e.length; s < o; ++s) {
2603
+ const a = e[s], l = $e(
2604
+ n,
2605
+ t,
2606
+ a,
2607
+ i
2608
+ );
2609
+ if (s === 0) {
2610
+ if (r && l || !r && !l)
2611
+ return !1;
2612
+ } else if (r && !l || !r && l)
2613
+ return !1;
2614
+ t = a;
2615
+ }
2616
+ return !0;
2617
+ }
2618
+ function Ki(n, t, e, i, r) {
2619
+ for (let s = 0, o = e.length; s < o; ++s) {
2620
+ const a = e[s];
2621
+ if (!Se(n, t, a, i, r))
2622
+ return !1;
2623
+ a.length && (t = a[a.length - 1]);
2624
+ }
2625
+ return !0;
2626
+ }
2627
+ function Ut(n, t, e, i, r) {
2628
+ r = r !== void 0 ? r : !1;
2629
+ for (let s = 0, o = e.length; s < o; ++s) {
2630
+ const a = e[s], l = $e(
2631
+ n,
2632
+ t,
2633
+ a,
2634
+ i
2635
+ );
2636
+ (s === 0 ? r && l || !r && !l : r && !l || !r && l) && ns(n, t, a, i), t = a;
2637
+ }
2638
+ return t;
2639
+ }
2640
+ function ce(n, t, e, i, r) {
2641
+ for (let s = 0, o = e.length; s < o; ++s)
2642
+ t = Ut(
2643
+ n,
2644
+ t,
2645
+ e[s],
2646
+ i,
2647
+ r
2648
+ );
2649
+ return t;
2650
+ }
2651
+ function rs(n, t) {
2652
+ const e = [];
2653
+ let i = 0, r = 0, s;
2654
+ for (let o = 0, a = t.length; o < a; ++o) {
2655
+ const l = t[o], h = $e(n, i, l, 2);
2656
+ if (s === void 0 && (s = h), h === s)
2657
+ e.push(t.slice(r, o + 1));
2658
+ else {
2659
+ if (e.length === 0)
2660
+ continue;
2661
+ e[e.length - 1].push(t[r]);
2662
+ }
2663
+ r = o + 1, i = l;
2664
+ }
2665
+ return e;
2666
+ }
2667
+ function Jt(n, t, e, i, r, s, o) {
2668
+ const a = (e - t) / i;
2669
+ if (a < 3) {
2670
+ for (; t < e; t += i)
2671
+ s[o++] = n[t], s[o++] = n[t + 1];
2672
+ return o;
2673
+ }
2674
+ const l = new Array(a);
2675
+ l[0] = 1, l[a - 1] = 1;
2676
+ const h = [t, e - i];
2677
+ let c = 0;
2678
+ for (; h.length > 0; ) {
2679
+ const u = h.pop(), d = h.pop();
2680
+ let g = 0;
2681
+ const f = n[d], p = n[d + 1], _ = n[u], b = n[u + 1];
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);
2685
+ }
2686
+ g > r && (l[(c - t) / i] = 1, d + i < c && h.push(d, c), c + i < u && h.push(c, u));
2687
+ }
2688
+ for (let u = 0; u < a; ++u)
2689
+ l[u] && (s[o++] = n[t + u * i], s[o++] = n[t + u * i + 1]);
2690
+ return o;
2691
+ }
2692
+ function Qi(n, t, e, i, r, s, o, a) {
2693
+ for (let l = 0, h = e.length; l < h; ++l) {
2694
+ const c = e[l];
2695
+ o = Jt(
2696
+ n,
2697
+ t,
2698
+ c,
2699
+ i,
2700
+ r,
2701
+ s,
2702
+ o
2703
+ ), a.push(o), t = c;
2704
+ }
2705
+ return o;
2706
+ }
2707
+ function Q(n, t) {
2708
+ return t * Math.round(n / t);
2709
+ }
2710
+ function ss(n, t, e, i, r, s, o) {
2711
+ if (t == e)
2712
+ return o;
2713
+ let a = Q(n[t], r), l = Q(n[t + 1], r);
2714
+ t += i, s[o++] = a, s[o++] = l;
2715
+ let h, c;
2716
+ do
2717
+ if (h = Q(n[t], r), c = Q(n[t + 1], r), t += i, t == e)
2718
+ return s[o++] = h, s[o++] = c, o;
2719
+ while (h == a && c == l);
2720
+ for (; t < e; ) {
2721
+ const u = Q(n[t], r), d = Q(n[t + 1], r);
2722
+ if (t += i, u == h && d == c)
2723
+ continue;
2724
+ const g = h - a, f = c - l, p = u - a, _ = d - l;
2725
+ if (g * _ == f * p && (g < 0 && p < g || g == p || g > 0 && p > g) && (f < 0 && _ < f || f == _ || f > 0 && _ > f)) {
2726
+ h = u, c = d;
2727
+ continue;
2728
+ }
2729
+ s[o++] = h, s[o++] = c, a = h, l = c, h = u, c = d;
2730
+ }
2731
+ return s[o++] = h, s[o++] = c, o;
2732
+ }
2733
+ function Ae(n, t, e, i, r, s, o, a) {
2734
+ for (let l = 0, h = e.length; l < h; ++l) {
2735
+ const c = e[l];
2736
+ o = ss(
2737
+ n,
2738
+ t,
2739
+ c,
2740
+ i,
2741
+ r,
2742
+ s,
2743
+ o
2744
+ ), a.push(o), t = c;
2745
+ }
2746
+ return o;
2747
+ }
2748
+ function os(n, t, e, i, r, s, o, a) {
2749
+ for (let l = 0, h = e.length; l < h; ++l) {
2750
+ const c = e[l], u = [];
2751
+ o = Ae(
2752
+ n,
2753
+ t,
2754
+ c,
2755
+ i,
2756
+ r,
2757
+ s,
2758
+ o,
2759
+ u
2760
+ ), a.push(u), t = c[c.length - 1];
2761
+ }
2762
+ return o;
2763
+ }
2764
+ class B extends Wi {
2765
+ /**
2766
+ * @param {Array<Geometry>} geometries Geometries.
2767
+ */
2768
+ constructor(t) {
2769
+ super(), this.geometries_ = t, this.changeEventsKeys_ = [], this.listenGeometriesChange_();
2770
+ }
2771
+ /**
2772
+ * @private
2773
+ */
2774
+ unlistenGeometriesChange_() {
2775
+ this.changeEventsKeys_.forEach(Rt), this.changeEventsKeys_.length = 0;
2776
+ }
2777
+ /**
2778
+ * @private
2779
+ */
2780
+ listenGeometriesChange_() {
2781
+ const t = this.geometries_;
2782
+ for (let e = 0, i = t.length; e < i; ++e)
2783
+ this.changeEventsKeys_.push(
2784
+ mt(t[e], ye.CHANGE, this.changed, this)
2785
+ );
2786
+ }
2787
+ /**
2788
+ * Make a complete copy of the geometry.
2789
+ * @return {!GeometryCollection} Clone.
2790
+ * @api
2791
+ * @override
2792
+ */
2793
+ clone() {
2794
+ const t = new B(
2795
+ ne(this.geometries_)
2796
+ );
2797
+ return t.applyProperties(this), t;
2798
+ }
2799
+ /**
2800
+ * @param {number} x X.
2801
+ * @param {number} y Y.
2802
+ * @param {import("../coordinate.js").Coordinate} closestPoint Closest point.
2803
+ * @param {number} minSquaredDistance Minimum squared distance.
2804
+ * @return {number} Minimum squared distance.
2805
+ * @override
2806
+ */
2807
+ closestPointXY(t, e, i, r) {
2808
+ if (r < D(this.getExtent(), t, e))
2809
+ return r;
2810
+ const s = this.geometries_;
2811
+ for (let o = 0, a = s.length; o < a; ++o)
2812
+ r = s[o].closestPointXY(
2813
+ t,
2814
+ e,
2815
+ i,
2816
+ r
2817
+ );
2818
+ return r;
2819
+ }
2820
+ /**
2821
+ * @param {number} x X.
2822
+ * @param {number} y Y.
2823
+ * @return {boolean} Contains (x, y).
2824
+ * @override
2825
+ */
2826
+ containsXY(t, e) {
2827
+ const i = this.geometries_;
2828
+ for (let r = 0, s = i.length; r < s; ++r)
2829
+ if (i[r].containsXY(t, e))
2830
+ return !0;
2831
+ return !1;
2832
+ }
2833
+ /**
2834
+ * @param {import("../extent.js").Extent} extent Extent.
2835
+ * @protected
2836
+ * @return {import("../extent.js").Extent} extent Extent.
2837
+ * @override
2838
+ */
2839
+ computeExtent(t) {
2840
+ _e(t);
2841
+ const e = this.geometries_;
2842
+ for (let i = 0, r = e.length; i < r; ++i)
2843
+ hr(t, e[i].getExtent());
2844
+ return t;
2845
+ }
2846
+ /**
2847
+ * Return the geometries that make up this geometry collection.
2848
+ * @return {Array<Geometry>} Geometries.
2516
2849
  * @api
2517
2850
  */
2518
2851
  getGeometries() {
@@ -2672,6 +3005,32 @@ class B extends Ji {
2672
3005
  function ne(n) {
2673
3006
  return n.map((t) => t.clone());
2674
3007
  }
3008
+ function tn(n, t, e, i) {
3009
+ let r = 0;
3010
+ const s = n[e - i], o = n[e - i + 1];
3011
+ let a = 0, l = 0;
3012
+ for (; t < e; t += i) {
3013
+ const h = n[t] - s, c = n[t + 1] - o;
3014
+ r += l * h - a * c, a = h, l = c;
3015
+ }
3016
+ return r / 2;
3017
+ }
3018
+ function en(n, t, e, i) {
3019
+ let r = 0;
3020
+ for (let s = 0, o = e.length; s < o; ++s) {
3021
+ const a = e[s];
3022
+ r += tn(n, t, a, i), t = a;
3023
+ }
3024
+ return r;
3025
+ }
3026
+ function as(n, t, e, i) {
3027
+ let r = 0;
3028
+ for (let s = 0, o = e.length; s < o; ++s) {
3029
+ const a = e[s];
3030
+ r += en(n, t, a, i), t = a[a.length - 1];
3031
+ }
3032
+ return r;
3033
+ }
2675
3034
  function pi(n, t, e, i, r, s, o) {
2676
3035
  const a = n[t], l = n[t + 1], h = n[e] - a, c = n[e + 1] - l;
2677
3036
  let u;
@@ -2683,7 +3042,7 @@ function pi(n, t, e, i, r, s, o) {
2683
3042
  u = e;
2684
3043
  else if (d > 0) {
2685
3044
  for (let g = 0; g < i; ++g)
2686
- o[g] = we(
3045
+ o[g] = Ce(
2687
3046
  n[t + g],
2688
3047
  n[e + g],
2689
3048
  d
@@ -2697,7 +3056,7 @@ function pi(n, t, e, i, r, s, o) {
2697
3056
  o[d] = n[u + d];
2698
3057
  o.length = i;
2699
3058
  }
2700
- function Pe(n, t, e, i, r) {
3059
+ function Fe(n, t, e, i, r) {
2701
3060
  let s = n[t], o = n[t + 1];
2702
3061
  for (t += i; t < e; t += i) {
2703
3062
  const a = n[t], l = n[t + 1], h = X(s, o, a, l);
@@ -2705,222 +3064,125 @@ function Pe(n, t, e, i, r) {
2705
3064
  }
2706
3065
  return r;
2707
3066
  }
2708
- function Me(n, t, e, i, r) {
3067
+ function Ge(n, t, e, i, r) {
2709
3068
  for (let s = 0, o = e.length; s < o; ++s) {
2710
3069
  const a = e[s];
2711
- r = Pe(n, t, a, i, r), t = a;
3070
+ r = Fe(n, t, a, i, r), t = a;
2712
3071
  }
2713
3072
  return r;
2714
3073
  }
2715
- function ts(n, t, e, i, r) {
3074
+ function ls(n, t, e, i, r) {
2716
3075
  for (let s = 0, o = e.length; s < o; ++s) {
2717
3076
  const a = e[s];
2718
- r = Me(n, t, a, i, r), t = a[a.length - 1];
3077
+ r = Ge(n, t, a, i, r), t = a[a.length - 1];
2719
3078
  }
2720
3079
  return r;
2721
3080
  }
2722
- function $e(n, t, e, i, r, s, o, a, l, h, c) {
3081
+ function Te(n, t, e, i, r, s, o, a, l, h, c) {
2723
3082
  if (t == e)
2724
3083
  return h;
2725
- let u, d;
2726
- if (r === 0) {
2727
- if (d = X(
2728
- o,
2729
- a,
2730
- n[t],
2731
- n[t + 1]
2732
- ), d < h) {
2733
- for (u = 0; u < i; ++u)
2734
- l[u] = n[t + u];
2735
- return l.length = i, d;
2736
- }
2737
- return h;
2738
- }
2739
- c = c || [NaN, NaN];
2740
- let g = t + i;
2741
- for (; g < e; )
2742
- if (pi(
2743
- n,
2744
- g - i,
2745
- g,
2746
- i,
2747
- o,
2748
- a,
2749
- c
2750
- ), d = X(o, a, c[0], c[1]), d < h) {
2751
- for (h = d, u = 0; u < i; ++u)
2752
- l[u] = c[u];
2753
- l.length = i, g += i;
2754
- } else
2755
- g += i * Math.max(
2756
- (Math.sqrt(d) - Math.sqrt(h)) / r | 0,
2757
- 1
2758
- );
2759
- if (s && (pi(
2760
- n,
2761
- e - i,
2762
- t,
2763
- i,
2764
- o,
2765
- a,
2766
- c
2767
- ), d = X(o, a, c[0], c[1]), d < h)) {
2768
- for (h = d, u = 0; u < i; ++u)
2769
- l[u] = c[u];
2770
- l.length = i;
2771
- }
2772
- return h;
2773
- }
2774
- function Ae(n, t, e, i, r, s, o, a, l, h, c) {
2775
- c = c || [NaN, NaN];
2776
- for (let u = 0, d = e.length; u < d; ++u) {
2777
- const g = e[u];
2778
- h = $e(
2779
- n,
2780
- t,
2781
- g,
2782
- i,
2783
- r,
2784
- s,
2785
- o,
2786
- a,
2787
- l,
2788
- h,
2789
- c
2790
- ), t = g;
2791
- }
2792
- return h;
2793
- }
2794
- function es(n, t, e, i, r, s, o, a, l, h, c) {
2795
- c = c || [NaN, NaN];
2796
- for (let u = 0, d = e.length; u < d; ++u) {
2797
- const g = e[u];
2798
- h = Ae(
2799
- n,
2800
- t,
2801
- g,
2802
- i,
2803
- r,
2804
- s,
2805
- o,
2806
- a,
2807
- l,
2808
- h,
2809
- c
2810
- ), t = g[g.length - 1];
2811
- }
2812
- return h;
2813
- }
2814
- function Dt(n, t, e, i, r, s, o) {
2815
- const a = (e - t) / i;
2816
- if (a < 3) {
2817
- for (; t < e; t += i)
2818
- s[o++] = n[t], s[o++] = n[t + 1];
2819
- return o;
2820
- }
2821
- const l = new Array(a);
2822
- l[0] = 1, l[a - 1] = 1;
2823
- const h = [t, e - i];
2824
- let c = 0;
2825
- for (; h.length > 0; ) {
2826
- const u = h.pop(), d = h.pop();
2827
- let g = 0;
2828
- const f = n[d], p = n[d + 1], _ = n[u], E = n[u + 1];
2829
- for (let v = d + i; v < u; v += i) {
2830
- const M = n[v], b = n[v + 1], T = Sr(M, b, f, p, _, E);
2831
- T > g && (c = v, g = T);
2832
- }
2833
- g > r && (l[(c - t) / i] = 1, d + i < c && h.push(d, c), c + i < u && h.push(c, u));
2834
- }
2835
- for (let u = 0; u < a; ++u)
2836
- l[u] && (s[o++] = n[t + u * i], s[o++] = n[t + u * i + 1]);
2837
- return o;
2838
- }
2839
- function qi(n, t, e, i, r, s, o, a) {
2840
- for (let l = 0, h = e.length; l < h; ++l) {
2841
- const c = e[l];
2842
- o = Dt(
2843
- n,
2844
- t,
2845
- c,
2846
- i,
2847
- r,
2848
- s,
2849
- o
2850
- ), a.push(o), t = c;
2851
- }
2852
- return o;
2853
- }
2854
- function Q(n, t) {
2855
- return t * Math.round(n / t);
2856
- }
2857
- function is(n, t, e, i, r, s, o) {
2858
- if (t == e)
2859
- return o;
2860
- let a = Q(n[t], r), l = Q(n[t + 1], r);
2861
- t += i, s[o++] = a, s[o++] = l;
2862
- let h, c;
2863
- do
2864
- if (h = Q(n[t], r), c = Q(n[t + 1], r), t += i, t == e)
2865
- return s[o++] = h, s[o++] = c, o;
2866
- while (h == a && c == l);
2867
- for (; t < e; ) {
2868
- const u = Q(n[t], r), d = Q(n[t + 1], r);
2869
- if (t += i, u == h && d == c)
2870
- continue;
2871
- const g = h - a, f = c - l, p = u - a, _ = d - l;
2872
- if (g * _ == f * p && (g < 0 && p < g || g == p || g > 0 && p > g) && (f < 0 && _ < f || f == _ || f > 0 && _ > f)) {
2873
- h = u, c = d;
2874
- continue;
3084
+ let u, d;
3085
+ if (r === 0) {
3086
+ if (d = X(
3087
+ o,
3088
+ a,
3089
+ n[t],
3090
+ n[t + 1]
3091
+ ), d < h) {
3092
+ for (u = 0; u < i; ++u)
3093
+ l[u] = n[t + u];
3094
+ return l.length = i, d;
2875
3095
  }
2876
- s[o++] = h, s[o++] = c, a = h, l = c, h = u, c = d;
3096
+ return h;
2877
3097
  }
2878
- return s[o++] = h, s[o++] = c, o;
3098
+ c = c || [NaN, NaN];
3099
+ let g = t + i;
3100
+ for (; g < e; )
3101
+ if (pi(
3102
+ n,
3103
+ g - i,
3104
+ g,
3105
+ i,
3106
+ o,
3107
+ a,
3108
+ c
3109
+ ), d = X(o, a, c[0], c[1]), d < h) {
3110
+ for (h = d, u = 0; u < i; ++u)
3111
+ l[u] = c[u];
3112
+ l.length = i, g += i;
3113
+ } else
3114
+ g += i * Math.max(
3115
+ (Math.sqrt(d) - Math.sqrt(h)) / r | 0,
3116
+ 1
3117
+ );
3118
+ if (s && (pi(
3119
+ n,
3120
+ e - i,
3121
+ t,
3122
+ i,
3123
+ o,
3124
+ a,
3125
+ c
3126
+ ), d = X(o, a, c[0], c[1]), d < h)) {
3127
+ for (h = d, u = 0; u < i; ++u)
3128
+ l[u] = c[u];
3129
+ l.length = i;
3130
+ }
3131
+ return h;
2879
3132
  }
2880
- function Se(n, t, e, i, r, s, o, a) {
2881
- for (let l = 0, h = e.length; l < h; ++l) {
2882
- const c = e[l];
2883
- o = is(
3133
+ function Ie(n, t, e, i, r, s, o, a, l, h, c) {
3134
+ c = c || [NaN, NaN];
3135
+ for (let u = 0, d = e.length; u < d; ++u) {
3136
+ const g = e[u];
3137
+ h = Te(
2884
3138
  n,
2885
3139
  t,
2886
- c,
3140
+ g,
2887
3141
  i,
2888
3142
  r,
2889
3143
  s,
2890
- o
2891
- ), a.push(o), t = c;
3144
+ o,
3145
+ a,
3146
+ l,
3147
+ h,
3148
+ c
3149
+ ), t = g;
2892
3150
  }
2893
- return o;
3151
+ return h;
2894
3152
  }
2895
- function ns(n, t, e, i, r, s, o, a) {
2896
- for (let l = 0, h = e.length; l < h; ++l) {
2897
- const c = e[l], u = [];
2898
- o = Se(
3153
+ function hs(n, t, e, i, r, s, o, a, l, h, c) {
3154
+ c = c || [NaN, NaN];
3155
+ for (let u = 0, d = e.length; u < d; ++u) {
3156
+ const g = e[u];
3157
+ h = Ie(
2899
3158
  n,
2900
3159
  t,
2901
- c,
3160
+ g,
2902
3161
  i,
2903
3162
  r,
2904
3163
  s,
2905
3164
  o,
2906
- u
2907
- ), a.push(u), t = c[c.length - 1];
3165
+ a,
3166
+ l,
3167
+ h,
3168
+ c
3169
+ ), t = g[g.length - 1];
2908
3170
  }
2909
- return o;
3171
+ return h;
2910
3172
  }
2911
- function Jt(n, t, e, i, r) {
3173
+ function Wt(n, t, e, i, r) {
2912
3174
  r = r !== void 0 ? r : [];
2913
3175
  let s = 0;
2914
3176
  for (let o = t; o < e; o += i)
2915
3177
  r[s++] = n.slice(o, o + i);
2916
3178
  return r.length = s, r;
2917
3179
  }
2918
- function Fe(n, t, e, i, r) {
3180
+ function Le(n, t, e, i, r) {
2919
3181
  r = r !== void 0 ? r : [];
2920
3182
  let s = 0;
2921
3183
  for (let o = 0, a = e.length; o < a; ++o) {
2922
3184
  const l = e[o];
2923
- r[s++] = Jt(
3185
+ r[s++] = Wt(
2924
3186
  n,
2925
3187
  t,
2926
3188
  l,
@@ -2930,12 +3192,12 @@ function Fe(n, t, e, i, r) {
2930
3192
  }
2931
3193
  return r.length = s, r;
2932
3194
  }
2933
- function rs(n, t, e, i, r) {
3195
+ function cs(n, t, e, i, r) {
2934
3196
  r = r !== void 0 ? r : [];
2935
3197
  let s = 0;
2936
3198
  for (let o = 0, a = e.length; o < a; ++o) {
2937
3199
  const l = e[o];
2938
- r[s++] = l.length === 1 && l[0] === t ? [] : Fe(
3200
+ r[s++] = l.length === 1 && l[0] === t ? [] : Le(
2939
3201
  n,
2940
3202
  t,
2941
3203
  l,
@@ -2945,32 +3207,6 @@ function rs(n, t, e, i, r) {
2945
3207
  }
2946
3208
  return r.length = s, r;
2947
3209
  }
2948
- function Zi(n, t, e, i) {
2949
- let r = 0;
2950
- const s = n[e - i], o = n[e - i + 1];
2951
- let a = 0, l = 0;
2952
- for (; t < e; t += i) {
2953
- const h = n[t] - s, c = n[t + 1] - o;
2954
- r += l * h - a * c, a = h, l = c;
2955
- }
2956
- return r / 2;
2957
- }
2958
- function Ki(n, t, e, i) {
2959
- let r = 0;
2960
- for (let s = 0, o = e.length; s < o; ++s) {
2961
- const a = e[s];
2962
- r += Zi(n, t, a, i), t = a;
2963
- }
2964
- return r;
2965
- }
2966
- function ss(n, t, e, i) {
2967
- let r = 0;
2968
- for (let s = 0, o = e.length; s < o; ++s) {
2969
- const a = e[s];
2970
- r += Ki(n, t, a, i), t = a[a.length - 1];
2971
- }
2972
- return r;
2973
- }
2974
3210
  class vt extends q {
2975
3211
  /**
2976
3212
  * @param {Array<import("../coordinate.js").Coordinate>|Array<number>} coordinates Coordinates.
@@ -3006,15 +3242,15 @@ class vt extends q {
3006
3242
  * @override
3007
3243
  */
3008
3244
  closestPointXY(t, e, i, r) {
3009
- return r < W(this.getExtent(), t, e) ? r : (this.maxDeltaRevision_ != this.getRevision() && (this.maxDelta_ = Math.sqrt(
3010
- Pe(
3245
+ return r < D(this.getExtent(), t, e) ? r : (this.maxDeltaRevision_ != this.getRevision() && (this.maxDelta_ = Math.sqrt(
3246
+ Fe(
3011
3247
  this.flatCoordinates,
3012
3248
  0,
3013
3249
  this.flatCoordinates.length,
3014
3250
  this.stride,
3015
3251
  0
3016
3252
  )
3017
- ), this.maxDeltaRevision_ = this.getRevision()), $e(
3253
+ ), this.maxDeltaRevision_ = this.getRevision()), Te(
3018
3254
  this.flatCoordinates,
3019
3255
  0,
3020
3256
  this.flatCoordinates.length,
@@ -3033,7 +3269,7 @@ class vt extends q {
3033
3269
  * @api
3034
3270
  */
3035
3271
  getArea() {
3036
- return Zi(
3272
+ return tn(
3037
3273
  this.flatCoordinates,
3038
3274
  0,
3039
3275
  this.flatCoordinates.length,
@@ -3043,221 +3279,82 @@ class vt extends q {
3043
3279
  /**
3044
3280
  * Return the coordinates of the linear ring.
3045
3281
  * @return {Array<import("../coordinate.js").Coordinate>} Coordinates.
3046
- * @api
3047
- * @override
3048
- */
3049
- getCoordinates() {
3050
- return Jt(
3051
- this.flatCoordinates,
3052
- 0,
3053
- this.flatCoordinates.length,
3054
- this.stride
3055
- );
3056
- }
3057
- /**
3058
- * @param {number} squaredTolerance Squared tolerance.
3059
- * @return {LinearRing} Simplified LinearRing.
3060
- * @protected
3061
- * @override
3062
- */
3063
- getSimplifiedGeometryInternal(t) {
3064
- const e = [];
3065
- return e.length = Dt(
3066
- this.flatCoordinates,
3067
- 0,
3068
- this.flatCoordinates.length,
3069
- this.stride,
3070
- t,
3071
- e,
3072
- 0
3073
- ), new vt(e, "XY");
3074
- }
3075
- /**
3076
- * Get the type of this geometry.
3077
- * @return {import("./Geometry.js").Type} Geometry type.
3078
- * @api
3079
- * @override
3080
- */
3081
- getType() {
3082
- return "LinearRing";
3083
- }
3084
- /**
3085
- * Test if the geometry and the passed extent intersect.
3086
- * @param {import("../extent.js").Extent} extent Extent.
3087
- * @return {boolean} `true` if the geometry and the extent intersect.
3088
- * @api
3089
- * @override
3090
- */
3091
- intersectsExtent(t) {
3092
- return !1;
3093
- }
3094
- /**
3095
- * Set the coordinates of the linear ring.
3096
- * @param {!Array<import("../coordinate.js").Coordinate>} coordinates Coordinates.
3097
- * @param {import("./Geometry.js").GeometryLayout} [layout] Layout.
3098
- * @api
3099
- * @override
3100
- */
3101
- setCoordinates(t, e) {
3102
- this.setLayout(e, t, 1), this.flatCoordinates || (this.flatCoordinates = []), this.flatCoordinates.length = zt(
3103
- this.flatCoordinates,
3104
- 0,
3105
- t,
3106
- this.stride
3107
- ), this.changed();
3108
- }
3109
- }
3110
- function Qi(n, t, e, i, r) {
3111
- let s;
3112
- for (t += i; t < e; t += i)
3113
- if (s = r(
3114
- n.slice(t - i, t),
3115
- n.slice(t, t + i)
3116
- ), s)
3117
- return s;
3118
- return !1;
3119
- }
3120
- function Ht(n, t, e, i, r, s, o) {
3121
- let a, l;
3122
- const h = (e - t) / i;
3123
- if (h === 1)
3124
- a = t;
3125
- else if (h === 2)
3126
- a = t, l = r;
3127
- else if (h !== 0) {
3128
- let c = n[t], u = n[t + 1], d = 0;
3129
- const g = [0];
3130
- for (let _ = t + i; _ < e; _ += i) {
3131
- const E = n[_], v = n[_ + 1];
3132
- d += Math.sqrt((E - c) * (E - c) + (v - u) * (v - u)), g.push(d), c = E, u = v;
3133
- }
3134
- const f = r * d, p = er(g, f);
3135
- p < 0 ? (l = (f - g[-p - 2]) / (g[-p - 1] - g[-p - 2]), a = t + (-p - 2) * i) : a = t + p * i;
3136
- }
3137
- o = o > 1 ? o : 2, s = s || new Array(o);
3138
- for (let c = 0; c < o; ++c)
3139
- s[c] = a === void 0 ? NaN : l === void 0 ? n[a + c] : we(n[a + c], n[a + i + c], l);
3140
- return s;
3141
- }
3142
- function he(n, t, e, i, r, s) {
3143
- if (e == t)
3144
- return null;
3145
- let o;
3146
- if (r < n[t + i - 1])
3147
- return s ? (o = n.slice(t, t + i), o[i - 1] = r, o) : null;
3148
- if (n[e - 1] < r)
3149
- return s ? (o = n.slice(e - i, e), o[i - 1] = r, o) : null;
3150
- if (r == n[t + i - 1])
3151
- return n.slice(t, t + i);
3152
- let a = t / i, l = e / i;
3153
- for (; a < l; ) {
3154
- const d = a + l >> 1;
3155
- r < n[(d + 1) * i - 1] ? l = d : a = d + 1;
3156
- }
3157
- const h = n[a * i - 1];
3158
- if (r == h)
3159
- return n.slice((a - 1) * i, (a - 1) * i + i);
3160
- const c = n[(a + 1) * i - 1], u = (r - h) / (c - h);
3161
- o = [];
3162
- for (let d = 0; d < i - 1; ++d)
3163
- o.push(
3164
- we(
3165
- n[(a - 1) * i + d],
3166
- n[a * i + d],
3167
- u
3168
- )
3169
- );
3170
- return o.push(r), o;
3171
- }
3172
- function os(n, t, e, i, r, s, o) {
3173
- if (o)
3174
- return he(
3175
- n,
3176
- t,
3177
- e[e.length - 1],
3178
- i,
3179
- r,
3180
- s
3181
- );
3182
- let a;
3183
- if (r < n[i - 1])
3184
- return s ? (a = n.slice(0, i), a[i - 1] = r, a) : null;
3185
- if (n[n.length - 1] < r)
3186
- return s ? (a = n.slice(n.length - i), a[i - 1] = r, a) : null;
3187
- for (let l = 0, h = e.length; l < h; ++l) {
3188
- const c = e[l];
3189
- if (t != c) {
3190
- if (r < n[t + i - 1])
3191
- return null;
3192
- if (r <= n[c - 1])
3193
- return he(
3194
- n,
3195
- t,
3196
- c,
3197
- i,
3198
- r,
3199
- !1
3200
- );
3201
- t = c;
3202
- }
3282
+ * @api
3283
+ * @override
3284
+ */
3285
+ getCoordinates() {
3286
+ return Wt(
3287
+ this.flatCoordinates,
3288
+ 0,
3289
+ this.flatCoordinates.length,
3290
+ this.stride
3291
+ );
3203
3292
  }
3204
- return null;
3205
- }
3206
- function as(n, t, e, i, r) {
3207
- return !dr(
3208
- r,
3209
- /**
3210
- * @param {import("../../coordinate.js").Coordinate} coordinate Coordinate.
3211
- * @return {boolean} Contains (x, y).
3212
- */
3213
- function(o) {
3214
- return !H(
3215
- n,
3216
- t,
3217
- e,
3218
- i,
3219
- o[0],
3220
- o[1]
3221
- );
3222
- }
3223
- );
3224
- }
3225
- function H(n, t, e, i, r, s) {
3226
- let o = 0, a = n[e - i], l = n[e - i + 1];
3227
- for (; t < e; t += i) {
3228
- const h = n[t], c = n[t + 1];
3229
- l <= s ? c > s && (h - a) * (s - l) - (r - a) * (c - l) > 0 && o++ : c <= s && (h - a) * (s - l) - (r - a) * (c - l) < 0 && o--, a = h, l = c;
3293
+ /**
3294
+ * @param {number} squaredTolerance Squared tolerance.
3295
+ * @return {LinearRing} Simplified LinearRing.
3296
+ * @protected
3297
+ * @override
3298
+ */
3299
+ getSimplifiedGeometryInternal(t) {
3300
+ const e = [];
3301
+ return e.length = Jt(
3302
+ this.flatCoordinates,
3303
+ 0,
3304
+ this.flatCoordinates.length,
3305
+ this.stride,
3306
+ t,
3307
+ e,
3308
+ 0
3309
+ ), new vt(e, "XY");
3230
3310
  }
3231
- return o !== 0;
3232
- }
3233
- function Ge(n, t, e, i, r, s) {
3234
- if (e.length === 0 || !H(n, t, e[0], i, r, s))
3235
- return !1;
3236
- for (let o = 1, a = e.length; o < a; ++o)
3237
- if (H(n, e[o - 1], e[o], i, r, s))
3238
- return !1;
3239
- return !0;
3240
- }
3241
- function ls(n, t, e, i, r, s) {
3242
- if (e.length === 0)
3311
+ /**
3312
+ * Get the type of this geometry.
3313
+ * @return {import("./Geometry.js").Type} Geometry type.
3314
+ * @api
3315
+ * @override
3316
+ */
3317
+ getType() {
3318
+ return "LinearRing";
3319
+ }
3320
+ /**
3321
+ * Test if the geometry and the passed extent intersect.
3322
+ * @param {import("../extent.js").Extent} extent Extent.
3323
+ * @return {boolean} `true` if the geometry and the extent intersect.
3324
+ * @api
3325
+ * @override
3326
+ */
3327
+ intersectsExtent(t) {
3243
3328
  return !1;
3244
- for (let o = 0, a = e.length; o < a; ++o) {
3245
- const l = e[o];
3246
- if (Ge(n, t, l, i, r, s))
3247
- return !0;
3248
- t = l[l.length - 1];
3249
3329
  }
3330
+ /**
3331
+ * Set the coordinates of the linear ring.
3332
+ * @param {!Array<import("../coordinate.js").Coordinate>} coordinates Coordinates.
3333
+ * @param {import("./Geometry.js").GeometryLayout} [layout] Layout.
3334
+ * @api
3335
+ * @override
3336
+ */
3337
+ setCoordinates(t, e) {
3338
+ this.setLayout(e, t, 1), this.flatCoordinates || (this.flatCoordinates = []), this.flatCoordinates.length = zt(
3339
+ this.flatCoordinates,
3340
+ 0,
3341
+ t,
3342
+ this.stride
3343
+ ), this.changed();
3344
+ }
3345
+ }
3346
+ function nn(n, t, e, i, r) {
3347
+ let s;
3348
+ for (t += i; t < e; t += i)
3349
+ if (s = r(
3350
+ n.slice(t - i, t),
3351
+ n.slice(t, t + i)
3352
+ ), s)
3353
+ return s;
3250
3354
  return !1;
3251
3355
  }
3252
- function Wt(n, t, e, i, r) {
3253
- const s = Ui(
3254
- me(),
3255
- n,
3256
- t,
3257
- e,
3258
- i
3259
- );
3260
- return mr(r, s) ? hr(r, s) || s[0] >= r[0] && s[2] <= r[2] || s[1] >= r[1] && s[3] <= r[3] ? !0 : Qi(
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(
3261
3358
  n,
3262
3359
  t,
3263
3360
  e,
@@ -3269,20 +3366,20 @@ function Wt(n, t, e, i, r) {
3269
3366
  * `false` otherwise.
3270
3367
  */
3271
3368
  function(o, a) {
3272
- return vr(r, o, a);
3369
+ return _r(r, o, a);
3273
3370
  }
3274
3371
  ) : !1;
3275
3372
  }
3276
- function hs(n, t, e, i, r) {
3373
+ function us(n, t, e, i, r) {
3277
3374
  for (let s = 0, o = e.length; s < o; ++s) {
3278
- if (Wt(n, t, e[s], i, r))
3375
+ if (Dt(n, t, e[s], i, r))
3279
3376
  return !0;
3280
3377
  t = e[s];
3281
3378
  }
3282
3379
  return !1;
3283
3380
  }
3284
- function cs(n, t, e, i, r) {
3285
- return !!(Wt(n, t, e, i, r) || H(
3381
+ function ds(n, t, e, i, r) {
3382
+ return !!(Dt(n, t, e, i, r) || H(
3286
3383
  n,
3287
3384
  t,
3288
3385
  e,
@@ -3312,19 +3409,19 @@ function cs(n, t, e, i, r) {
3312
3409
  r[3]
3313
3410
  ));
3314
3411
  }
3315
- function tn(n, t, e, i, r) {
3316
- if (!cs(n, t, e[0], i, r))
3412
+ function rn(n, t, e, i, r) {
3413
+ if (!ds(n, t, e[0], i, r))
3317
3414
  return !1;
3318
3415
  if (e.length === 1)
3319
3416
  return !0;
3320
3417
  for (let s = 1, o = e.length; s < o; ++s)
3321
- if (as(
3418
+ if (ts(
3322
3419
  n,
3323
3420
  e[s - 1],
3324
3421
  e[s],
3325
3422
  i,
3326
3423
  r
3327
- ) && !Wt(
3424
+ ) && !Dt(
3328
3425
  n,
3329
3426
  e[s - 1],
3330
3427
  e[s],
@@ -3334,16 +3431,16 @@ function tn(n, t, e, i, r) {
3334
3431
  return !1;
3335
3432
  return !0;
3336
3433
  }
3337
- function us(n, t, e, i, r) {
3434
+ function gs(n, t, e, i, r) {
3338
3435
  for (let s = 0, o = e.length; s < o; ++s) {
3339
3436
  const a = e[s];
3340
- if (tn(n, t, a, i, r))
3437
+ if (rn(n, t, a, i, r))
3341
3438
  return !0;
3342
3439
  t = a[a.length - 1];
3343
3440
  }
3344
3441
  return !1;
3345
3442
  }
3346
- function ds(n, t, e, i) {
3443
+ function fs(n, t, e, i) {
3347
3444
  let r = n[t], s = n[t + 1], o = 0;
3348
3445
  for (let a = t + i; a < e; a += i) {
3349
3446
  const l = n[a], h = n[a + 1];
@@ -3374,7 +3471,7 @@ class V extends q {
3374
3471
  * @api
3375
3472
  */
3376
3473
  appendCoordinate(t) {
3377
- A(this.flatCoordinates, t), this.changed();
3474
+ S(this.flatCoordinates, t), this.changed();
3378
3475
  }
3379
3476
  /**
3380
3477
  * Make a complete copy of the geometry.
@@ -3398,15 +3495,15 @@ class V extends q {
3398
3495
  * @override
3399
3496
  */
3400
3497
  closestPointXY(t, e, i, r) {
3401
- return r < W(this.getExtent(), t, e) ? r : (this.maxDeltaRevision_ != this.getRevision() && (this.maxDelta_ = Math.sqrt(
3402
- Pe(
3498
+ return r < D(this.getExtent(), t, e) ? r : (this.maxDeltaRevision_ != this.getRevision() && (this.maxDelta_ = Math.sqrt(
3499
+ Fe(
3403
3500
  this.flatCoordinates,
3404
3501
  0,
3405
3502
  this.flatCoordinates.length,
3406
3503
  this.stride,
3407
3504
  0
3408
3505
  )
3409
- ), this.maxDeltaRevision_ = this.getRevision()), $e(
3506
+ ), this.maxDeltaRevision_ = this.getRevision()), Te(
3410
3507
  this.flatCoordinates,
3411
3508
  0,
3412
3509
  this.flatCoordinates.length,
@@ -3431,7 +3528,7 @@ class V extends q {
3431
3528
  * @api
3432
3529
  */
3433
3530
  forEachSegment(t) {
3434
- return Qi(
3531
+ return nn(
3435
3532
  this.flatCoordinates,
3436
3533
  0,
3437
3534
  this.flatCoordinates.length,
@@ -3470,7 +3567,7 @@ class V extends q {
3470
3567
  * @override
3471
3568
  */
3472
3569
  getCoordinates() {
3473
- return Jt(
3570
+ return Wt(
3474
3571
  this.flatCoordinates,
3475
3572
  0,
3476
3573
  this.flatCoordinates.length,
@@ -3504,7 +3601,7 @@ class V extends q {
3504
3601
  * @api
3505
3602
  */
3506
3603
  getLength() {
3507
- return ds(
3604
+ return fs(
3508
3605
  this.flatCoordinates,
3509
3606
  0,
3510
3607
  this.flatCoordinates.length,
@@ -3529,7 +3626,7 @@ class V extends q {
3529
3626
  */
3530
3627
  getSimplifiedGeometryInternal(t) {
3531
3628
  const e = [];
3532
- return e.length = Dt(
3629
+ return e.length = Jt(
3533
3630
  this.flatCoordinates,
3534
3631
  0,
3535
3632
  this.flatCoordinates.length,
@@ -3556,12 +3653,13 @@ class V extends q {
3556
3653
  * @override
3557
3654
  */
3558
3655
  intersectsExtent(t) {
3559
- return Wt(
3656
+ return Dt(
3560
3657
  this.flatCoordinates,
3561
3658
  0,
3562
3659
  this.flatCoordinates.length,
3563
3660
  this.stride,
3564
- t
3661
+ t,
3662
+ this.getExtent()
3565
3663
  );
3566
3664
  }
3567
3665
  /**
@@ -3608,7 +3706,7 @@ class Ct extends q {
3608
3706
  ), s = [], o = [];
3609
3707
  for (let l = 0, h = r.length; l < h; ++l) {
3610
3708
  const c = r[l];
3611
- A(s, c.getFlatCoordinates()), o.push(s.length);
3709
+ S(s, c.getFlatCoordinates()), o.push(s.length);
3612
3710
  }
3613
3711
  const a = r.length === 0 ? this.getLayout() : r[0].getLayout();
3614
3712
  this.setFlatCoordinates(a, s), this.ends_ = o;
@@ -3620,7 +3718,7 @@ class Ct extends q {
3620
3718
  * @api
3621
3719
  */
3622
3720
  appendLineString(t) {
3623
- A(this.flatCoordinates, t.getFlatCoordinates().slice()), this.ends_.push(this.flatCoordinates.length), this.changed();
3721
+ S(this.flatCoordinates, t.getFlatCoordinates().slice()), this.ends_.push(this.flatCoordinates.length), this.changed();
3624
3722
  }
3625
3723
  /**
3626
3724
  * Make a complete copy of the geometry.
@@ -3645,15 +3743,15 @@ class Ct extends q {
3645
3743
  * @override
3646
3744
  */
3647
3745
  closestPointXY(t, e, i, r) {
3648
- return r < W(this.getExtent(), t, e) ? r : (this.maxDeltaRevision_ != this.getRevision() && (this.maxDelta_ = Math.sqrt(
3649
- Me(
3746
+ return r < D(this.getExtent(), t, e) ? r : (this.maxDeltaRevision_ != this.getRevision() && (this.maxDelta_ = Math.sqrt(
3747
+ Ge(
3650
3748
  this.flatCoordinates,
3651
3749
  0,
3652
3750
  this.ends_,
3653
3751
  this.stride,
3654
3752
  0
3655
3753
  )
3656
- ), this.maxDeltaRevision_ = this.getRevision()), Ae(
3754
+ ), this.maxDeltaRevision_ = this.getRevision()), Ie(
3657
3755
  this.flatCoordinates,
3658
3756
  0,
3659
3757
  this.ends_,
@@ -3689,7 +3787,7 @@ class Ct extends q {
3689
3787
  * @api
3690
3788
  */
3691
3789
  getCoordinateAtM(t, e, i) {
3692
- return this.layout != "XYM" && this.layout != "XYZM" || this.flatCoordinates.length === 0 ? null : (e = e !== void 0 ? e : !1, i = i !== void 0 ? i : !1, os(
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(
3693
3791
  this.flatCoordinates,
3694
3792
  0,
3695
3793
  this.ends_,
@@ -3706,7 +3804,7 @@ class Ct extends q {
3706
3804
  * @override
3707
3805
  */
3708
3806
  getCoordinates() {
3709
- return Fe(
3807
+ return Le(
3710
3808
  this.flatCoordinates,
3711
3809
  0,
3712
3810
  this.ends_,
@@ -3766,7 +3864,7 @@ class Ct extends q {
3766
3864
  s,
3767
3865
  0.5
3768
3866
  );
3769
- A(t, h), i = l;
3867
+ S(t, h), i = l;
3770
3868
  }
3771
3869
  return t;
3772
3870
  }
@@ -3778,7 +3876,7 @@ class Ct extends q {
3778
3876
  */
3779
3877
  getSimplifiedGeometryInternal(t) {
3780
3878
  const e = [], i = [];
3781
- return e.length = qi(
3879
+ return e.length = Qi(
3782
3880
  this.flatCoordinates,
3783
3881
  0,
3784
3882
  this.ends_,
@@ -3806,7 +3904,7 @@ class Ct extends q {
3806
3904
  * @override
3807
3905
  */
3808
3906
  intersectsExtent(t) {
3809
- return hs(
3907
+ return us(
3810
3908
  this.flatCoordinates,
3811
3909
  0,
3812
3910
  this.ends_,
@@ -3890,7 +3988,7 @@ class z extends q {
3890
3988
  * @override
3891
3989
  */
3892
3990
  computeExtent(t) {
3893
- return Hi(this.flatCoordinates, t);
3991
+ return Oi(this.flatCoordinates, t);
3894
3992
  }
3895
3993
  /**
3896
3994
  * Get the type of this geometry.
@@ -3909,7 +4007,7 @@ class z extends q {
3909
4007
  * @override
3910
4008
  */
3911
4009
  intersectsExtent(t) {
3912
- return Oi(t, this.flatCoordinates[0], this.flatCoordinates[1]);
4010
+ return Ri(t, this.flatCoordinates[0], this.flatCoordinates[1]);
3913
4011
  }
3914
4012
  /**
3915
4013
  * @param {!Array<*>} coordinates Coordinates.
@@ -3926,7 +4024,7 @@ class z extends q {
3926
4024
  ), this.changed();
3927
4025
  }
3928
4026
  }
3929
- class At extends q {
4027
+ class St extends q {
3930
4028
  /**
3931
4029
  * @param {Array<import("../coordinate.js").Coordinate>|Array<number>} coordinates Coordinates.
3932
4030
  * For internal use, flat coordinates in combination with `layout` are also accepted.
@@ -3949,7 +4047,7 @@ class At extends q {
3949
4047
  * @api
3950
4048
  */
3951
4049
  appendPoint(t) {
3952
- A(this.flatCoordinates, t.getFlatCoordinates()), this.changed();
4050
+ S(this.flatCoordinates, t.getFlatCoordinates()), this.changed();
3953
4051
  }
3954
4052
  /**
3955
4053
  * Make a complete copy of the geometry.
@@ -3958,7 +4056,7 @@ class At extends q {
3958
4056
  * @override
3959
4057
  */
3960
4058
  clone() {
3961
- const t = new At(
4059
+ const t = new St(
3962
4060
  this.flatCoordinates.slice(),
3963
4061
  this.layout
3964
4062
  );
@@ -3973,7 +4071,7 @@ class At extends q {
3973
4071
  * @override
3974
4072
  */
3975
4073
  closestPointXY(t, e, i, r) {
3976
- if (r < W(this.getExtent(), t, e))
4074
+ if (r < D(this.getExtent(), t, e))
3977
4075
  return r;
3978
4076
  const s = this.flatCoordinates, o = this.stride;
3979
4077
  for (let a = 0, l = s.length; a < l; a += o) {
@@ -3999,7 +4097,7 @@ class At extends q {
3999
4097
  * @override
4000
4098
  */
4001
4099
  getCoordinates() {
4002
- return Jt(
4100
+ return Wt(
4003
4101
  this.flatCoordinates,
4004
4102
  0,
4005
4103
  this.flatCoordinates.length,
@@ -4055,7 +4153,7 @@ class At extends q {
4055
4153
  const e = this.flatCoordinates, i = this.stride;
4056
4154
  for (let r = 0, s = e.length; r < s; r += i) {
4057
4155
  const o = e[r], a = e[r + 1];
4058
- if (Oi(t, o, a))
4156
+ if (Ri(t, o, a))
4059
4157
  return !0;
4060
4158
  }
4061
4159
  return !1;
@@ -4076,123 +4174,7 @@ class At extends q {
4076
4174
  ), this.changed();
4077
4175
  }
4078
4176
  }
4079
- function Te(n, t, e, i, r, s, o) {
4080
- let a, l, h, c, u, d, g;
4081
- const f = r[s + 1], p = [];
4082
- for (let v = 0, M = e.length; v < M; ++v) {
4083
- const b = e[v];
4084
- for (c = n[b - i], d = n[b - i + 1], a = t; a < b; a += i)
4085
- 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;
4086
- }
4087
- let _ = NaN, E = -1 / 0;
4088
- for (p.sort(Fi), c = p[0], a = 1, l = p.length; a < l; ++a) {
4089
- u = p[a];
4090
- const v = Math.abs(u - c);
4091
- v > E && (h = (c + u) / 2, Ge(n, t, e, i, h, f) && (_ = h, E = v)), c = u;
4092
- }
4093
- return isNaN(_) && (_ = r[s]), o ? (o.push(_, f, E), o) : [_, f, E];
4094
- }
4095
- function en(n, t, e, i, r) {
4096
- let s = [];
4097
- for (let o = 0, a = e.length; o < a; ++o) {
4098
- const l = e[o];
4099
- s = Te(
4100
- n,
4101
- t,
4102
- l,
4103
- i,
4104
- r,
4105
- 2 * o,
4106
- s
4107
- ), t = l[l.length - 1];
4108
- }
4109
- return s;
4110
- }
4111
- function gs(n, t, e, i) {
4112
- for (; t < e - i; ) {
4113
- for (let r = 0; r < i; ++r) {
4114
- const s = n[t + r];
4115
- n[t + r] = n[e - i + r], n[e - i + r] = s;
4116
- }
4117
- t += i, e -= i;
4118
- }
4119
- }
4120
- function Re(n, t, e, i) {
4121
- let r = 0, s = n[e - i], o = n[e - i + 1];
4122
- for (; t < e; t += i) {
4123
- const a = n[t], l = n[t + 1];
4124
- r += (a - s) * (l + o), s = a, o = l;
4125
- }
4126
- return r === 0 ? void 0 : r > 0;
4127
- }
4128
- function Le(n, t, e, i, r) {
4129
- r = r !== void 0 ? r : !1;
4130
- for (let s = 0, o = e.length; s < o; ++s) {
4131
- const a = e[s], l = Re(
4132
- n,
4133
- t,
4134
- a,
4135
- i
4136
- );
4137
- if (s === 0) {
4138
- if (r && l || !r && !l)
4139
- return !1;
4140
- } else if (r && !l || !r && l)
4141
- return !1;
4142
- t = a;
4143
- }
4144
- return !0;
4145
- }
4146
- function nn(n, t, e, i, r) {
4147
- for (let s = 0, o = e.length; s < o; ++s) {
4148
- const a = e[s];
4149
- if (!Le(n, t, a, i, r))
4150
- return !1;
4151
- a.length && (t = a[a.length - 1]);
4152
- }
4153
- return !0;
4154
- }
4155
- function Ut(n, t, e, i, r) {
4156
- r = r !== void 0 ? r : !1;
4157
- for (let s = 0, o = e.length; s < o; ++s) {
4158
- const a = e[s], l = Re(
4159
- n,
4160
- t,
4161
- a,
4162
- i
4163
- );
4164
- (s === 0 ? r && l || !r && !l : r && !l || !r && l) && gs(n, t, a, i), t = a;
4165
- }
4166
- return t;
4167
- }
4168
- function ce(n, t, e, i, r) {
4169
- for (let s = 0, o = e.length; s < o; ++s)
4170
- t = Ut(
4171
- n,
4172
- t,
4173
- e[s],
4174
- i,
4175
- r
4176
- );
4177
- return t;
4178
- }
4179
- function fs(n, t) {
4180
- const e = [];
4181
- let i = 0, r = 0, s;
4182
- for (let o = 0, a = t.length; o < a; ++o) {
4183
- const l = t[o], h = Re(n, i, l, 2);
4184
- if (s === void 0 && (s = h), h === s)
4185
- e.push(t.slice(r, o + 1));
4186
- else {
4187
- if (e.length === 0)
4188
- continue;
4189
- e[e.length - 1].push(t[r]);
4190
- }
4191
- r = o + 1, i = l;
4192
- }
4193
- return e;
4194
- }
4195
- class D extends q {
4177
+ class J extends q {
4196
4178
  /**
4197
4179
  * @param {!Array<Array<import("../coordinate.js").Coordinate>>|!Array<number>} coordinates
4198
4180
  * Array of linear rings that define the polygon. The first linear ring of the
@@ -4221,7 +4203,7 @@ class D extends q {
4221
4203
  * @api
4222
4204
  */
4223
4205
  appendLinearRing(t) {
4224
- this.flatCoordinates ? A(this.flatCoordinates, t.getFlatCoordinates()) : this.flatCoordinates = t.getFlatCoordinates().slice(), this.ends_.push(this.flatCoordinates.length), this.changed();
4206
+ this.flatCoordinates ? S(this.flatCoordinates, t.getFlatCoordinates()) : this.flatCoordinates = t.getFlatCoordinates().slice(), this.ends_.push(this.flatCoordinates.length), this.changed();
4225
4207
  }
4226
4208
  /**
4227
4209
  * Make a complete copy of the geometry.
@@ -4230,7 +4212,7 @@ class D extends q {
4230
4212
  * @override
4231
4213
  */
4232
4214
  clone() {
4233
- const t = new D(
4215
+ const t = new J(
4234
4216
  this.flatCoordinates.slice(),
4235
4217
  this.layout,
4236
4218
  this.ends_.slice()
@@ -4246,15 +4228,15 @@ class D extends q {
4246
4228
  * @override
4247
4229
  */
4248
4230
  closestPointXY(t, e, i, r) {
4249
- return r < W(this.getExtent(), t, e) ? r : (this.maxDeltaRevision_ != this.getRevision() && (this.maxDelta_ = Math.sqrt(
4250
- Me(
4231
+ return r < D(this.getExtent(), t, e) ? r : (this.maxDeltaRevision_ != this.getRevision() && (this.maxDelta_ = Math.sqrt(
4232
+ Ge(
4251
4233
  this.flatCoordinates,
4252
4234
  0,
4253
4235
  this.ends_,
4254
4236
  this.stride,
4255
4237
  0
4256
4238
  )
4257
- ), this.maxDeltaRevision_ = this.getRevision()), Ae(
4239
+ ), this.maxDeltaRevision_ = this.getRevision()), Ie(
4258
4240
  this.flatCoordinates,
4259
4241
  0,
4260
4242
  this.ends_,
@@ -4274,7 +4256,7 @@ class D extends q {
4274
4256
  * @override
4275
4257
  */
4276
4258
  containsXY(t, e) {
4277
- return Ge(
4259
+ return Pe(
4278
4260
  this.getOrientedFlatCoordinates(),
4279
4261
  0,
4280
4262
  this.ends_,
@@ -4289,7 +4271,7 @@ class D extends q {
4289
4271
  * @api
4290
4272
  */
4291
4273
  getArea() {
4292
- return Ki(
4274
+ return en(
4293
4275
  this.getOrientedFlatCoordinates(),
4294
4276
  0,
4295
4277
  this.ends_,
@@ -4312,7 +4294,7 @@ class D extends q {
4312
4294
  */
4313
4295
  getCoordinates(t) {
4314
4296
  let e;
4315
- return t !== void 0 ? (e = this.getOrientedFlatCoordinates().slice(), Ut(e, 0, this.ends_, this.stride, t)) : e = this.flatCoordinates, Fe(e, 0, this.ends_, this.stride);
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);
4316
4298
  }
4317
4299
  /**
4318
4300
  * @return {Array<number>} Ends.
@@ -4326,7 +4308,7 @@ class D extends q {
4326
4308
  getFlatInteriorPoint() {
4327
4309
  if (this.flatInteriorPointRevision_ != this.getRevision()) {
4328
4310
  const t = Yt(this.getExtent());
4329
- this.flatInteriorPoint_ = Te(
4311
+ this.flatInteriorPoint_ = Me(
4330
4312
  this.getOrientedFlatCoordinates(),
4331
4313
  0,
4332
4314
  this.ends_,
@@ -4401,7 +4383,7 @@ class D extends q {
4401
4383
  getOrientedFlatCoordinates() {
4402
4384
  if (this.orientedRevision_ != this.getRevision()) {
4403
4385
  const t = this.flatCoordinates;
4404
- Le(t, 0, this.ends_, this.stride) ? this.orientedFlatCoordinates_ = t : (this.orientedFlatCoordinates_ = t.slice(), this.orientedFlatCoordinates_.length = Ut(
4386
+ Se(t, 0, this.ends_, this.stride) ? this.orientedFlatCoordinates_ = t : (this.orientedFlatCoordinates_ = t.slice(), this.orientedFlatCoordinates_.length = Ut(
4405
4387
  this.orientedFlatCoordinates_,
4406
4388
  0,
4407
4389
  this.ends_,
@@ -4421,7 +4403,7 @@ class D extends q {
4421
4403
  */
4422
4404
  getSimplifiedGeometryInternal(t) {
4423
4405
  const e = [], i = [];
4424
- return e.length = Se(
4406
+ return e.length = Ae(
4425
4407
  this.flatCoordinates,
4426
4408
  0,
4427
4409
  this.ends_,
@@ -4430,7 +4412,7 @@ class D extends q {
4430
4412
  e,
4431
4413
  0,
4432
4414
  i
4433
- ), new D(e, "XY", i);
4415
+ ), new J(e, "XY", i);
4434
4416
  }
4435
4417
  /**
4436
4418
  * Get the type of this geometry.
@@ -4449,7 +4431,7 @@ class D extends q {
4449
4431
  * @override
4450
4432
  */
4451
4433
  intersectsExtent(t) {
4452
- return tn(
4434
+ return rn(
4453
4435
  this.getOrientedFlatCoordinates(),
4454
4436
  0,
4455
4437
  this.ends_,
@@ -4476,20 +4458,6 @@ class D extends q {
4476
4458
  this.flatCoordinates.length = i.length === 0 ? 0 : i[i.length - 1], this.changed();
4477
4459
  }
4478
4460
  }
4479
- function rn(n, t, e, i) {
4480
- const r = [];
4481
- let s = me();
4482
- for (let o = 0, a = e.length; o < a; ++o) {
4483
- const l = e[o];
4484
- s = ve(
4485
- n,
4486
- t,
4487
- l[0],
4488
- i
4489
- ), r.push((s[0] + s[2]) / 2, (s[1] + s[3]) / 2), t = l[l.length - 1];
4490
- }
4491
- return r;
4492
- }
4493
4461
  class wt extends q {
4494
4462
  /**
4495
4463
  * @param {Array<Array<Array<import("../coordinate.js").Coordinate>>|Polygon>|Array<number>} coordinates Coordinates.
@@ -4507,7 +4475,7 @@ class wt extends q {
4507
4475
  const h = r[a], c = s.length, u = h.getEnds();
4508
4476
  for (let d = 0, g = u.length; d < g; ++d)
4509
4477
  u[d] += c;
4510
- A(s, h.getFlatCoordinates()), o.push(u);
4478
+ S(s, h.getFlatCoordinates()), o.push(u);
4511
4479
  }
4512
4480
  e = r.length === 0 ? this.getLayout() : r[0].getLayout(), t = s, i = o;
4513
4481
  }
@@ -4532,7 +4500,7 @@ class wt extends q {
4532
4500
  this.flatCoordinates = t.getFlatCoordinates().slice(), e = t.getEnds().slice(), this.endss_.push();
4533
4501
  else {
4534
4502
  const i = this.flatCoordinates.length;
4535
- A(this.flatCoordinates, t.getFlatCoordinates()), e = t.getEnds().slice();
4503
+ S(this.flatCoordinates, t.getFlatCoordinates()), e = t.getEnds().slice();
4536
4504
  for (let r = 0, s = e.length; r < s; ++r)
4537
4505
  e[r] += i;
4538
4506
  }
@@ -4564,15 +4532,15 @@ class wt extends q {
4564
4532
  * @override
4565
4533
  */
4566
4534
  closestPointXY(t, e, i, r) {
4567
- return r < W(this.getExtent(), t, e) ? r : (this.maxDeltaRevision_ != this.getRevision() && (this.maxDelta_ = Math.sqrt(
4568
- ts(
4535
+ return r < D(this.getExtent(), t, e) ? r : (this.maxDeltaRevision_ != this.getRevision() && (this.maxDelta_ = Math.sqrt(
4536
+ ls(
4569
4537
  this.flatCoordinates,
4570
4538
  0,
4571
4539
  this.endss_,
4572
4540
  this.stride,
4573
4541
  0
4574
4542
  )
4575
- ), this.maxDeltaRevision_ = this.getRevision()), es(
4543
+ ), this.maxDeltaRevision_ = this.getRevision()), hs(
4576
4544
  this.getOrientedFlatCoordinates(),
4577
4545
  0,
4578
4546
  this.endss_,
@@ -4592,7 +4560,7 @@ class wt extends q {
4592
4560
  * @override
4593
4561
  */
4594
4562
  containsXY(t, e) {
4595
- return ls(
4563
+ return es(
4596
4564
  this.getOrientedFlatCoordinates(),
4597
4565
  0,
4598
4566
  this.endss_,
@@ -4607,7 +4575,7 @@ class wt extends q {
4607
4575
  * @api
4608
4576
  */
4609
4577
  getArea() {
4610
- return ss(
4578
+ return as(
4611
4579
  this.getOrientedFlatCoordinates(),
4612
4580
  0,
4613
4581
  this.endss_,
@@ -4636,7 +4604,7 @@ class wt extends q {
4636
4604
  this.endss_,
4637
4605
  this.stride,
4638
4606
  t
4639
- )) : e = this.flatCoordinates, rs(
4607
+ )) : e = this.flatCoordinates, cs(
4640
4608
  e,
4641
4609
  0,
4642
4610
  this.endss_,
@@ -4654,13 +4622,13 @@ class wt extends q {
4654
4622
  */
4655
4623
  getFlatInteriorPoints() {
4656
4624
  if (this.flatInteriorPointsRevision_ != this.getRevision()) {
4657
- const t = rn(
4625
+ const t = qi(
4658
4626
  this.flatCoordinates,
4659
4627
  0,
4660
4628
  this.endss_,
4661
4629
  this.stride
4662
4630
  );
4663
- this.flatInteriorPoints_ = en(
4631
+ this.flatInteriorPoints_ = Zi(
4664
4632
  this.getOrientedFlatCoordinates(),
4665
4633
  0,
4666
4634
  this.endss_,
@@ -4680,7 +4648,7 @@ class wt extends q {
4680
4648
  * @api
4681
4649
  */
4682
4650
  getInteriorPoints() {
4683
- return new At(this.getFlatInteriorPoints().slice(), "XYM");
4651
+ return new St(this.getFlatInteriorPoints().slice(), "XYM");
4684
4652
  }
4685
4653
  /**
4686
4654
  * @return {Array<number>} Oriented flat coordinates.
@@ -4688,7 +4656,7 @@ class wt extends q {
4688
4656
  getOrientedFlatCoordinates() {
4689
4657
  if (this.orientedRevision_ != this.getRevision()) {
4690
4658
  const t = this.flatCoordinates;
4691
- nn(t, 0, this.endss_, this.stride) ? this.orientedFlatCoordinates_ = t : (this.orientedFlatCoordinates_ = t.slice(), this.orientedFlatCoordinates_.length = ce(
4659
+ Ki(t, 0, this.endss_, this.stride) ? this.orientedFlatCoordinates_ = t : (this.orientedFlatCoordinates_ = t.slice(), this.orientedFlatCoordinates_.length = ce(
4692
4660
  this.orientedFlatCoordinates_,
4693
4661
  0,
4694
4662
  this.endss_,
@@ -4708,7 +4676,7 @@ class wt extends q {
4708
4676
  */
4709
4677
  getSimplifiedGeometryInternal(t) {
4710
4678
  const e = [], i = [];
4711
- return e.length = ns(
4679
+ return e.length = os(
4712
4680
  this.flatCoordinates,
4713
4681
  0,
4714
4682
  this.endss_,
@@ -4739,7 +4707,7 @@ class wt extends q {
4739
4707
  if (e !== 0)
4740
4708
  for (let s = 0, o = i.length; s < o; ++s)
4741
4709
  i[s] -= e;
4742
- return new D(
4710
+ return new J(
4743
4711
  this.flatCoordinates.slice(e, r),
4744
4712
  this.layout,
4745
4713
  i
@@ -4758,7 +4726,7 @@ class wt extends q {
4758
4726
  if (s !== 0)
4759
4727
  for (let u = 0, d = l.length; u < d; ++u)
4760
4728
  l[u] -= s;
4761
- const c = new D(
4729
+ const c = new J(
4762
4730
  e.slice(s, h),
4763
4731
  t,
4764
4732
  l
@@ -4784,7 +4752,7 @@ class wt extends q {
4784
4752
  * @override
4785
4753
  */
4786
4754
  intersectsExtent(t) {
4787
- return us(
4755
+ return gs(
4788
4756
  this.getOrientedFlatCoordinates(),
4789
4757
  0,
4790
4758
  this.endss_,
@@ -4801,7 +4769,7 @@ class wt extends q {
4801
4769
  */
4802
4770
  setCoordinates(t, e) {
4803
4771
  this.setLayout(e, t, 3), this.flatCoordinates || (this.flatCoordinates = []);
4804
- const i = Wi(
4772
+ const i = Di(
4805
4773
  this.flatCoordinates,
4806
4774
  0,
4807
4775
  t,
@@ -4817,8 +4785,8 @@ class wt extends q {
4817
4785
  this.changed();
4818
4786
  }
4819
4787
  }
4820
- const yi = Ii();
4821
- class J {
4788
+ const yi = Vi();
4789
+ class W {
4822
4790
  /**
4823
4791
  * @param {Type} type Geometry type.
4824
4792
  * @param {Array<number>} flatCoordinates Flat coordinates. These always need
@@ -4846,7 +4814,7 @@ class J {
4846
4814
  * @api
4847
4815
  */
4848
4816
  getExtent() {
4849
- return this.extent_ || (this.extent_ = this.type_ === "Point" ? Hi(this.flatCoordinates_) : ve(
4817
+ return this.extent_ || (this.extent_ = this.type_ === "Point" ? Oi(this.flatCoordinates_) : ve(
4850
4818
  this.flatCoordinates_,
4851
4819
  0,
4852
4820
  this.flatCoordinates_.length,
@@ -4859,7 +4827,7 @@ class J {
4859
4827
  getFlatInteriorPoint() {
4860
4828
  if (!this.flatInteriorPoints_) {
4861
4829
  const t = Yt(this.getExtent());
4862
- this.flatInteriorPoints_ = Te(
4830
+ this.flatInteriorPoints_ = Me(
4863
4831
  this.flatCoordinates_,
4864
4832
  0,
4865
4833
  this.ends_,
@@ -4875,8 +4843,8 @@ class J {
4875
4843
  */
4876
4844
  getFlatInteriorPoints() {
4877
4845
  if (!this.flatInteriorPoints_) {
4878
- const t = fs(this.flatCoordinates_, this.ends_), e = rn(this.flatCoordinates_, 0, t, 2);
4879
- this.flatInteriorPoints_ = en(
4846
+ const t = rs(this.flatCoordinates_, this.ends_), e = qi(this.flatCoordinates_, 0, t, 2);
4847
+ this.flatInteriorPoints_ = Zi(
4880
4848
  this.flatCoordinates_,
4881
4849
  0,
4882
4850
  t,
@@ -4912,7 +4880,7 @@ class J {
4912
4880
  );
4913
4881
  for (let r = 0, s = i.length; r < s; ++r) {
4914
4882
  const o = i[r], a = Ht(t, e, o, 2, 0.5);
4915
- A(this.flatMidpoints_, a), e = o;
4883
+ S(this.flatMidpoints_, a), e = o;
4916
4884
  }
4917
4885
  }
4918
4886
  return this.flatMidpoints_;
@@ -5003,7 +4971,7 @@ class J {
5003
4971
  const e = t.getExtent(), i = t.getWorldExtent();
5004
4972
  if (e && i) {
5005
4973
  const r = Nt(i) / Nt(e);
5006
- Ni(
4974
+ zi(
5007
4975
  yi,
5008
4976
  i[0],
5009
4977
  i[3],
@@ -5012,7 +4980,7 @@ class J {
5012
4980
  0,
5013
4981
  0,
5014
4982
  0
5015
- ), Di(
4983
+ ), Ji(
5016
4984
  this.flatCoordinates_,
5017
4985
  0,
5018
4986
  this.flatCoordinates_.length,
@@ -5037,7 +5005,7 @@ class J {
5037
5005
  */
5038
5006
  clone() {
5039
5007
  var t;
5040
- return new J(
5008
+ return new W(
5041
5009
  this.type_,
5042
5010
  this.flatCoordinates_.slice(),
5043
5011
  (t = this.ends_) == null ? void 0 : t.slice(),
@@ -5057,7 +5025,7 @@ class J {
5057
5025
  * @return {RenderFeature} This render feature.
5058
5026
  */
5059
5027
  enableSimplifyTransformed() {
5060
- return this.simplifyTransformed = Gi((t, e) => {
5028
+ return this.simplifyTransformed = Fi((t, e) => {
5061
5029
  if (t === this.squaredTolerance_)
5062
5030
  return this.simplifiedGeometry_;
5063
5031
  this.simplifiedGeometry_ = this.clone(), e && this.simplifiedGeometry_.applyTransform(e);
@@ -5065,7 +5033,7 @@ class J {
5065
5033
  let r;
5066
5034
  switch (this.type_) {
5067
5035
  case "LineString":
5068
- i.length = Dt(
5036
+ i.length = Jt(
5069
5037
  i,
5070
5038
  0,
5071
5039
  this.simplifiedGeometry_.flatCoordinates_.length,
@@ -5076,7 +5044,7 @@ class J {
5076
5044
  ), r = [i.length];
5077
5045
  break;
5078
5046
  case "MultiLineString":
5079
- r = [], i.length = qi(
5047
+ r = [], i.length = Qi(
5080
5048
  i,
5081
5049
  0,
5082
5050
  this.simplifiedGeometry_.ends_,
@@ -5088,7 +5056,7 @@ class J {
5088
5056
  );
5089
5057
  break;
5090
5058
  case "Polygon":
5091
- r = [], i.length = Se(
5059
+ r = [], i.length = Ae(
5092
5060
  i,
5093
5061
  0,
5094
5062
  this.simplifiedGeometry_.ends_,
@@ -5100,7 +5068,7 @@ class J {
5100
5068
  );
5101
5069
  break;
5102
5070
  }
5103
- return r && (this.simplifiedGeometry_ = new J(
5071
+ return r && (this.simplifiedGeometry_ = new W(
5104
5072
  this.type_,
5105
5073
  i,
5106
5074
  r,
@@ -5111,7 +5079,7 @@ class J {
5111
5079
  }), this;
5112
5080
  }
5113
5081
  }
5114
- J.prototype.getFlatCoordinates = J.prototype.getOrientedFlatCoordinates;
5082
+ W.prototype.getFlatCoordinates = W.prototype.getOrientedFlatCoordinates;
5115
5083
  class sn {
5116
5084
  constructor() {
5117
5085
  this.dataProjection = void 0, this.defaultFeatureProjection = void 0, this.featureClass = /** @type {FeatureToFeatureClass<FeatureType>} */
@@ -5237,7 +5205,7 @@ class sn {
5237
5205
  return y();
5238
5206
  }
5239
5207
  }
5240
- function Et(n, t, e) {
5208
+ function bt(n, t, e) {
5241
5209
  const i = e ? x(e.featureProjection) : null, r = e ? x(e.dataProjection) : null;
5242
5210
  let s = n;
5243
5211
  if (i && r && !Jr(i, r)) {
@@ -5265,13 +5233,13 @@ function Et(n, t, e) {
5265
5233
  const ps = {
5266
5234
  Point: z,
5267
5235
  LineString: V,
5268
- Polygon: D,
5269
- MultiPoint: At,
5236
+ Polygon: J,
5237
+ MultiPoint: St,
5270
5238
  MultiLineString: Ct,
5271
5239
  MultiPolygon: wt
5272
5240
  };
5273
5241
  function ys(n, t, e) {
5274
- return Array.isArray(t[0]) ? (nn(n, 0, t, e) || (n = n.slice(), ce(n, 0, t, e)), n) : (Le(n, 0, t, e) || (n = n.slice(), Ut(n, 0, t, e)), n);
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);
5275
5243
  }
5276
5244
  function on(n, t) {
5277
5245
  var s;
@@ -5284,8 +5252,8 @@ function on(n, t) {
5284
5252
  if (i === "GeometryCollection" || i === "Circle")
5285
5253
  throw new Error("Unsupported geometry type: " + i);
5286
5254
  const r = e.layout.length;
5287
- return Et(
5288
- new J(
5255
+ return bt(
5256
+ new W(
5289
5257
  i,
5290
5258
  i === "Polygon" ? ys(e.flatCoordinates, e.ends, r) : e.flatCoordinates,
5291
5259
  (s = e.ends) == null ? void 0 : s.flat(),
@@ -5297,18 +5265,18 @@ function on(n, t) {
5297
5265
  t
5298
5266
  );
5299
5267
  }
5300
- function Ie(n, t) {
5268
+ function Re(n, t) {
5301
5269
  if (!n)
5302
5270
  return null;
5303
5271
  if (Array.isArray(n)) {
5304
5272
  const i = n.map(
5305
- (r) => Ie(r, t)
5273
+ (r) => Re(r, t)
5306
5274
  );
5307
5275
  return new B(i);
5308
5276
  }
5309
5277
  const e = ps[n.type];
5310
- return Et(
5311
- new e(n.flatCoordinates, n.layout, n.ends),
5278
+ return bt(
5279
+ new e(n.flatCoordinates, n.layout || "XY", n.ends),
5312
5280
  !1,
5313
5281
  t
5314
5282
  );
@@ -5523,7 +5491,7 @@ class _s extends ms {
5523
5491
  properties: null
5524
5492
  };
5525
5493
  const r = Ne(i.geometry);
5526
- if (this.featureClass === J)
5494
+ if (this.featureClass === W)
5527
5495
  return (
5528
5496
  /** @type {FeatureType|Array<FeatureType>} */
5529
5497
  on(
@@ -5536,7 +5504,7 @@ class _s extends ms {
5536
5504
  )
5537
5505
  );
5538
5506
  const s = new lt();
5539
- return this.geometryName_ ? s.setGeometryName(this.geometryName_) : this.extractGeometryName_ && i.geometry_name && s.setGeometryName(i.geometry_name), s.setGeometry(Ie(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(Re(r, e)), "id" in i && s.setId(i.id), i.properties && s.setProperties(i.properties, !0), /** @type {FeatureType|Array<FeatureType>} */
5540
5508
  s;
5541
5509
  }
5542
5510
  /**
@@ -5625,7 +5593,7 @@ class _s extends ms {
5625
5593
  if (r !== void 0 && (i.id = r), !t.hasProperties())
5626
5594
  return i;
5627
5595
  const s = t.getProperties(), o = t.getGeometry();
5628
- return o && (i.geometry = ue(o, e), delete s[t.getGeometryName()]), Ri(s) || (i.properties = s), i;
5596
+ return o && (i.geometry = ue(o, e), delete s[t.getGeometryName()]), Ti(s) || (i.properties = s), i;
5629
5597
  }
5630
5598
  /**
5631
5599
  * Encode an array of features as a GeoJSON object.
@@ -5672,7 +5640,7 @@ function Ne(n, t) {
5672
5640
  break;
5673
5641
  }
5674
5642
  case "LineString": {
5675
- e = Es(
5643
+ e = bs(
5676
5644
  /** @type {GeoJSONLineString} */
5677
5645
  n
5678
5646
  );
@@ -5693,7 +5661,7 @@ function Ne(n, t) {
5693
5661
  break;
5694
5662
  }
5695
5663
  case "MultiLineString": {
5696
- e = bs(
5664
+ e = Es(
5697
5665
  /** @type {GeoJSONMultiLineString} */
5698
5666
  n
5699
5667
  );
@@ -5720,7 +5688,7 @@ function Ne(n, t) {
5720
5688
  }
5721
5689
  function vs(n, t) {
5722
5690
  const e = Ne(n);
5723
- return Ie(e, t);
5691
+ return Re(e, t);
5724
5692
  }
5725
5693
  function Cs(n, t) {
5726
5694
  return n.geometries.map(
@@ -5741,7 +5709,7 @@ function ws(n) {
5741
5709
  layout: Z(t.length)
5742
5710
  };
5743
5711
  }
5744
- function Es(n) {
5712
+ function bs(n) {
5745
5713
  var i;
5746
5714
  const t = n.coordinates, e = t.flat();
5747
5715
  return {
@@ -5751,7 +5719,7 @@ function Es(n) {
5751
5719
  layout: Z(((i = t[0]) == null ? void 0 : i.length) || 2)
5752
5720
  };
5753
5721
  }
5754
- function bs(n) {
5722
+ function Es(n) {
5755
5723
  var s, o;
5756
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);
5757
5725
  return {
@@ -5772,7 +5740,7 @@ function xs(n) {
5772
5740
  }
5773
5741
  function Ps(n) {
5774
5742
  var s, o;
5775
- const t = n.coordinates, e = [], i = ((o = (s = t[0]) == null ? void 0 : s[0]) == null ? void 0 : o[0].length) || 2, r = Wi(
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(
5776
5744
  e,
5777
5745
  0,
5778
5746
  t,
@@ -5796,7 +5764,7 @@ function Ms(n) {
5796
5764
  };
5797
5765
  }
5798
5766
  function ue(n, t) {
5799
- n = Et(n, !0, t);
5767
+ n = bt(n, !0, t);
5800
5768
  const e = n.getType();
5801
5769
  let i;
5802
5770
  switch (e) {
@@ -5808,14 +5776,14 @@ function ue(n, t) {
5808
5776
  break;
5809
5777
  }
5810
5778
  case "LineString": {
5811
- i = As(
5779
+ i = Ss(
5812
5780
  /** @type {import("../geom/LineString.js").default} */
5813
5781
  n
5814
5782
  );
5815
5783
  break;
5816
5784
  }
5817
5785
  case "Polygon": {
5818
- i = Rs(
5786
+ i = Is(
5819
5787
  /** @type {import("../geom/Polygon.js").default} */
5820
5788
  n,
5821
5789
  t
@@ -5830,7 +5798,7 @@ function ue(n, t) {
5830
5798
  break;
5831
5799
  }
5832
5800
  case "MultiLineString": {
5833
- i = Ss(
5801
+ i = As(
5834
5802
  /** @type {import("../geom/MultiLineString.js").default} */
5835
5803
  n
5836
5804
  );
@@ -5872,13 +5840,13 @@ function $s(n, t) {
5872
5840
  })
5873
5841
  };
5874
5842
  }
5875
- function As(n, t) {
5843
+ function Ss(n, t) {
5876
5844
  return {
5877
5845
  type: "LineString",
5878
5846
  coordinates: n.getCoordinates()
5879
5847
  };
5880
5848
  }
5881
- function Ss(n, t) {
5849
+ function As(n, t) {
5882
5850
  return {
5883
5851
  type: "MultiLineString",
5884
5852
  coordinates: n.getCoordinates()
@@ -5903,7 +5871,7 @@ function Ts(n, t) {
5903
5871
  coordinates: n.getCoordinates()
5904
5872
  };
5905
5873
  }
5906
- function Rs(n, t) {
5874
+ function Is(n, t) {
5907
5875
  let e;
5908
5876
  return t && (e = t.rightHanded), {
5909
5877
  type: "Polygon",
@@ -5911,7 +5879,7 @@ function Rs(n, t) {
5911
5879
  };
5912
5880
  }
5913
5881
  const Ls = (n, t) => new _s().writeFeaturesObject(n, t);
5914
- class Is extends sn {
5882
+ class Rs extends sn {
5915
5883
  constructor() {
5916
5884
  super();
5917
5885
  }
@@ -6089,8 +6057,8 @@ function Gt(n) {
6089
6057
  const Ns = {
6090
6058
  POINT: z,
6091
6059
  LINESTRING: V,
6092
- POLYGON: D,
6093
- MULTIPOINT: At,
6060
+ POLYGON: J,
6061
+ MULTIPOINT: St,
6094
6062
  MULTILINESTRING: Ct,
6095
6063
  MULTIPOLYGON: wt
6096
6064
  }, an = "EMPTY", ln = "Z", hn = "M", Os = "ZM", m = {
@@ -6485,7 +6453,7 @@ class Us {
6485
6453
  throw new Error(this.formatErrorMessage_());
6486
6454
  }
6487
6455
  }
6488
- class js extends Is {
6456
+ class js extends Rs {
6489
6457
  /**
6490
6458
  * @param {Options} [options] Options.
6491
6459
  */
@@ -6542,7 +6510,7 @@ class js extends Is {
6542
6510
  */
6543
6511
  readGeometryFromText(t, e) {
6544
6512
  const i = this.parse_(t);
6545
- return Et(i, !1, e);
6513
+ return bt(i, !1, e);
6546
6514
  }
6547
6515
  /**
6548
6516
  * @param {import("../Feature.js").default} feature Features.
@@ -6579,7 +6547,7 @@ class js extends Is {
6579
6547
  * @override
6580
6548
  */
6581
6549
  writeGeometryText(t, e) {
6582
- return dn(Et(t, !0, e));
6550
+ return dn(bt(t, !0, e));
6583
6551
  }
6584
6552
  }
6585
6553
  function cn(n) {
@@ -6627,7 +6595,7 @@ function zs(n) {
6627
6595
  let e = "";
6628
6596
  return (t === "XYZ" || t === "XYZM") && (e += ln), (t === "XYM" || t === "XYZM") && (e += hn), e;
6629
6597
  }
6630
- const Ds = {
6598
+ const Js = {
6631
6599
  Point: cn,
6632
6600
  LineString: Oe,
6633
6601
  Polygon: un,
@@ -6637,7 +6605,7 @@ const Ds = {
6637
6605
  GeometryCollection: Ys
6638
6606
  };
6639
6607
  function dn(n) {
6640
- const t = n.getType(), e = Ds[t], i = e(n);
6608
+ const t = n.getType(), e = Js[t], i = e(n);
6641
6609
  let r = ks[t];
6642
6610
  if (typeof /** @type {?} */
6643
6611
  n.getFlatCoordinates == "function") {
@@ -6649,7 +6617,7 @@ function dn(n) {
6649
6617
  }
6650
6618
  return i.length === 0 ? r + " " + an : r + "(" + i + ")";
6651
6619
  }
6652
- const Js = (n, t) => new js().writeFeatures(n, t);
6620
+ const Ws = (n, t) => new js().writeFeatures(n, t);
6653
6621
  /**
6654
6622
  * @license
6655
6623
  * Copyright 2021 Google LLC
@@ -6658,14 +6626,14 @@ const Js = (n, t) => new js().writeFeatures(n, t);
6658
6626
  function mi(n, t, e) {
6659
6627
  return n ? t(n) : e == null ? void 0 : e(n);
6660
6628
  }
6661
- var bt, xt;
6629
+ var Et, xt;
6662
6630
  class gn extends j {
6663
6631
  constructor() {
6664
6632
  super();
6665
6633
  /**
6666
6634
  * @type boolean | import("lit").nothing
6667
6635
  */
6668
- L(this, bt, !0);
6636
+ L(this, Et, !0);
6669
6637
  /**
6670
6638
  * @type boolean | import("lit").nothing
6671
6639
  */
@@ -6676,8 +6644,8 @@ class gn extends j {
6676
6644
  * Updates button states based on conditions
6677
6645
  */
6678
6646
  updateButtonStates() {
6679
- const { drawDisabled: e, discardDisabled: i } = Wn(this);
6680
- S(this, bt, e), S(this, xt, i);
6647
+ const { drawDisabled: e, discardDisabled: i } = Dn(this);
6648
+ A(this, Et, e), A(this, xt, i);
6681
6649
  }
6682
6650
  /**
6683
6651
  * Overrides createRenderRoot to handle shadow DOM
@@ -6700,7 +6668,7 @@ class gn extends j {
6700
6668
  <button
6701
6669
  data-cy="drawBtn"
6702
6670
  class="${this.select ? "pointer" : "polygon"} icon"
6703
- ?disabled="${$(this, bt) || C}"
6671
+ ?disabled="${$(this, Et) || C}"
6704
6672
  @click="${() => this.drawFunc.start()}"
6705
6673
  >
6706
6674
  ${e}
@@ -6733,7 +6701,10 @@ class gn extends j {
6733
6701
  <button
6734
6702
  data-cy="importBtn"
6735
6703
  class="import icon"
6736
- @click=${() => this.querySelector("#import-file").click()}
6704
+ @click=${() => (
6705
+ /**@type {HTMLElement}*/
6706
+ this.querySelector("#import-file").click()
6707
+ )}
6737
6708
  >
6738
6709
  import
6739
6710
  </button>
@@ -6767,8 +6738,8 @@ class gn extends j {
6767
6738
  `;
6768
6739
  }
6769
6740
  }
6770
- bt = new WeakMap(), xt = new WeakMap(), // Define properties with default values and types
6771
- R(gn, "properties", {
6741
+ Et = new WeakMap(), xt = new WeakMap(), // Define properties with default values and types
6742
+ I(gn, "properties", {
6772
6743
  multipleFeatures: { attribute: !1, type: Boolean },
6773
6744
  drawnFeatures: { attribute: !1, state: !0, type: Array },
6774
6745
  currentlyDrawing: { attribute: !1, state: !0, type: Boolean },
@@ -6780,7 +6751,7 @@ R(gn, "properties", {
6780
6751
  unstyled: { type: Boolean }
6781
6752
  });
6782
6753
  customElements.define("eox-drawtools-controller", gn);
6783
- const Ws = `
6754
+ const Ds = `
6784
6755
  button.discard:before {
6785
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")
6786
6757
  }
@@ -6841,14 +6812,13 @@ const Ws = `
6841
6812
  return typeof n == "string" ? t = /** @type {HTMLElement} */
6842
6813
  document.querySelector(n) : t = n, t;
6843
6814
  }, _i = (n, t) => {
6844
- var s;
6815
+ var s, o, a, l, h;
6845
6816
  const i = Ks(n.for), r = i.map;
6846
6817
  return n.drawLayer = i.addOrUpdateLayer({
6847
6818
  zIndex: 100,
6848
6819
  type: "Vector",
6849
6820
  properties: {
6850
6821
  id: "drawLayer",
6851
- // @ts-expect-error TODO
6852
6822
  layerControlHide: !0,
6853
6823
  isDrawingEnabled: !1,
6854
6824
  multipleFeatures: t
@@ -6856,6 +6826,7 @@ const Ws = `
6856
6826
  source: {
6857
6827
  type: "Vector"
6858
6828
  },
6829
+ style: (s = n.featureStyles) == null ? void 0 : s.layer,
6859
6830
  interactions: [
6860
6831
  {
6861
6832
  type: "draw",
@@ -6864,16 +6835,16 @@ const Ws = `
6864
6835
  id: "drawInteraction",
6865
6836
  type: n.type,
6866
6837
  modify: n.allowModify,
6867
- stopClick: !0
6838
+ stopClick: !0,
6839
+ style: (o = n.featureStyles) == null ? void 0 : o.layer
6868
6840
  }
6869
6841
  },
6870
6842
  {
6871
6843
  type: "select",
6872
- //@ts-expect-error TODO
6873
6844
  options: {
6874
6845
  id: "selectHover",
6875
6846
  condition: "pointermove",
6876
- style: {
6847
+ style: ((a = n.featureStyles) == null ? void 0 : a.hover) || {
6877
6848
  "fill-color": "rgba(51, 153, 204,0.5)",
6878
6849
  "stroke-color": "#3399CC",
6879
6850
  "stroke-width": 2.5
@@ -6883,12 +6854,11 @@ const Ws = `
6883
6854
  },
6884
6855
  {
6885
6856
  type: "select",
6886
- //@ts-expect-error TODO
6887
6857
  options: {
6888
6858
  id: "selectClick",
6889
6859
  condition: "click",
6890
6860
  panIn: !0,
6891
- style: {
6861
+ style: ((l = n.featureStyles) == null ? void 0 : l.click) || {
6892
6862
  "fill-color": "rgba(51, 153, 204,0.5)",
6893
6863
  "stroke-color": "#3399CC",
6894
6864
  "stroke-width": 2.5
@@ -6900,7 +6870,7 @@ const Ws = `
6900
6870
  /** @type {unknown} */
6901
6871
  i.interactions.drawInteraction, n.modify = /** @type {import("ol/interaction").Modify} */
6902
6872
  /** @type {unknown} */
6903
- i.interactions.drawInteractionmodify, de(n, i, n.layerId), (s = n.modify) == null || s.on("modifyend", () => n.onModifyEnd()), i.addEventListener("addfeatures", () => qs(n)), { EoxMap: i, OlMap: r };
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 };
6904
6874
  }, Qs = (n) => {
6905
6875
  const t = () => {
6906
6876
  n.drawnFeatures = [], n.draw.setActive(!1), n.selectionEvents.removeSelectionEvent(), n.drawLayer.getSource().clear(), n.geoJSON = null;
@@ -6922,7 +6892,7 @@ const Ws = `
6922
6892
  o = Ls(n.drawnFeatures);
6923
6893
  break;
6924
6894
  case "wkt":
6925
- o = Js(n.drawnFeatures);
6895
+ o = Ws(n.drawnFeatures);
6926
6896
  break;
6927
6897
  case "feature":
6928
6898
  o = n.drawnFeatures;
@@ -6947,11 +6917,12 @@ const Ws = `
6947
6917
  r && (r.selectedFids = [], r.setActive(!1)), n.eoxMap.removeEventListener("select", t);
6948
6918
  } };
6949
6919
  }, de = (n, t, e) => {
6920
+ var a, l;
6950
6921
  if (!e || !t)
6951
6922
  return;
6952
6923
  const i = JSON.parse(
6953
6924
  JSON.stringify(
6954
- /** @type {import("../../../../map/src/main").EoxLayer} */
6925
+ /** @type {import("@eox/map").EoxLayer} */
6955
6926
  t.getLayerById(e).get("_jsonDefinition")
6956
6927
  )
6957
6928
  ) || null;
@@ -6962,12 +6933,11 @@ const Ws = `
6962
6933
  const r = {
6963
6934
  type: "select",
6964
6935
  active: !1,
6965
- //@ts-expect-error TODO
6966
6936
  options: {
6967
6937
  id: "SelectLayerHoverInteraction",
6968
6938
  condition: "pointermove",
6969
6939
  active: !1,
6970
- style: {
6940
+ style: ((a = n.featureStyles) == null ? void 0 : a.hover) || {
6971
6941
  "fill-color": "rgba(0, 0, 0,0.0)",
6972
6942
  "stroke-color": "#3399CC",
6973
6943
  "stroke-width": 2.5
@@ -6975,14 +6945,13 @@ const Ws = `
6975
6945
  }
6976
6946
  }, s = {
6977
6947
  type: "select",
6978
- //@ts-expect-error TODO
6979
6948
  options: {
6980
6949
  id: "SelectLayerClickInteraction",
6981
6950
  condition: "click",
6982
6951
  multi: n.multipleFeatures,
6983
6952
  modify: n.allowModify,
6984
6953
  active: !1,
6985
- style: {
6954
+ style: ((l = n.featureStyles) == null ? void 0 : l.click) || {
6986
6955
  "fill-color": "rgba(0, 0, 0,0.0)",
6987
6956
  "stroke-color": "rgba(0, 0, 0,0.0)"
6988
6957
  }
@@ -7027,7 +6996,10 @@ function so(n) {
7027
6996
  }
7028
6997
  function fn(n, t) {
7029
6998
  so(n);
7030
- const e = n.dataTransfer ? n.dataTransfer.files : n.target.files;
6999
+ const e = n.dataTransfer ? n.dataTransfer.files : (
7000
+ /**@type {HTMLInputElement}*/
7001
+ n.target.files
7002
+ );
7031
7003
  Array.from(e).forEach((i) => oo(i, t));
7032
7004
  }
7033
7005
  function oo(n, t) {
@@ -7041,7 +7013,7 @@ class ao extends j {
7041
7013
  constructor() {
7042
7014
  super();
7043
7015
  /**
7044
- * @type import("../../map/src/main").EOxMap
7016
+ * @type import("@eox/map").EOxMap
7045
7017
  */
7046
7018
  L(this, nt);
7047
7019
  /**
@@ -7056,7 +7028,7 @@ class ao extends j {
7056
7028
  * @type string
7057
7029
  */
7058
7030
  L(this, st);
7059
- this.allowModify = !1, this.for = "eox-map", this.currentlyDrawing = !1, this.draw = null, this.drawLayer = null, this.layerId = "", this.drawnFeatures = [], 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;
7031
+ 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;
7060
7032
  }
7061
7033
  // Define properties with defaults and types
7062
7034
  static get properties() {
@@ -7066,8 +7038,9 @@ class ao extends j {
7066
7038
  currentlyDrawing: { attribute: !1, state: !0, type: Boolean },
7067
7039
  draw: { attribute: !1, state: !0 },
7068
7040
  drawLayer: { attribute: !1, state: !0 },
7069
- layerId: { attribute: "layer-id", type: String },
7070
7041
  drawnFeatures: { attribute: !1, state: !0, type: Array },
7042
+ layerId: { attribute: "layer-id", type: String },
7043
+ featureStyles: { attribute: !1 },
7071
7044
  modify: { attribute: !1, state: !0 },
7072
7045
  multipleFeatures: { attribute: "multiple-features", type: Boolean },
7073
7046
  importFeatures: { attribute: "import-features", type: Boolean },
@@ -7086,7 +7059,7 @@ class ao extends j {
7086
7059
  * @type {string}
7087
7060
  */
7088
7061
  set layerId(e) {
7089
- io(this, this.eoxMap, e, $(this, st)), S(this, st, e);
7062
+ io(this, this.eoxMap, e, $(this, st)), A(this, st, e);
7090
7063
  }
7091
7064
  get layerId() {
7092
7065
  return $(this, st);
@@ -7117,7 +7090,7 @@ class ao extends j {
7117
7090
  );
7118
7091
  }
7119
7092
  /**
7120
- * @param {DragEvent | Event} evt - The event object from the file input interaction.
7093
+ * @param {DragEvent} evt - The event object from the file input interaction.
7121
7094
  */
7122
7095
  handleFilesChange(e) {
7123
7096
  fn(e, this);
@@ -7132,7 +7105,7 @@ class ao extends j {
7132
7105
  * Update #geoJSON with stringify feature.
7133
7106
  */
7134
7107
  updateGeoJSON() {
7135
- S(this, Pt, JSON.stringify(
7108
+ A(this, Pt, JSON.stringify(
7136
7109
  this.eoxMap.parseFeature(this.drawnFeatures) || Qe,
7137
7110
  void 0,
7138
7111
  2
@@ -7159,12 +7132,12 @@ class ao extends j {
7159
7132
  */
7160
7133
  firstUpdated() {
7161
7134
  const { EoxMap: e, OlMap: i } = _i(this, this.multipleFeatures);
7162
- this.eoxMap = e, S(this, rt, i), this.selectionEvents = eo(this), this.importFeatures && ro(this, this.eoxMap), this.updateGeoJSON(), this.requestUpdate();
7135
+ this.eoxMap = e, A(this, rt, i), this.selectionEvents = eo(this), this.importFeatures && ro(this, this.eoxMap), this.updateGeoJSON(), this.requestUpdate();
7163
7136
  }
7164
7137
  updated(e) {
7165
7138
  if (e.has("for")) {
7166
7139
  const { EoxMap: i, OlMap: r } = _i(this, this.multipleFeatures);
7167
- this.eoxMap = i, S(this, rt, r);
7140
+ this.eoxMap = i, A(this, rt, r);
7168
7141
  }
7169
7142
  }
7170
7143
  get eoxMap() {
@@ -7172,7 +7145,7 @@ class ao extends j {
7172
7145
  }
7173
7146
  set eoxMap(e) {
7174
7147
  const i = $(this, nt);
7175
- S(this, nt, e), this.requestUpdate("eoxMap", i);
7148
+ A(this, nt, e), this.requestUpdate("eoxMap", i);
7176
7149
  }
7177
7150
  disconnectedCallback() {
7178
7151
  var e;
@@ -7185,7 +7158,7 @@ class ao extends j {
7185
7158
  <style>
7186
7159
  :host { display: block; }
7187
7160
  ${!this.unstyled && no}
7188
- ${!this.unstyled && Ws}
7161
+ ${!this.unstyled && Ds}
7189
7162
  </style>
7190
7163
 
7191
7164
  <!-- Controller Component -->