@datagouv/components-next 1.3.0 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (131) hide show
  1. package/dist/{Control-b-43UT2B.js → Control-B9WQxlpJ.js} +10 -10
  2. package/dist/{Datafair.client-BrjISlaZ.js → Datafair.client-D_6yzJUG.js} +9 -9
  3. package/dist/{Event-py_AAwJY.js → Event-iXDrp-fy.js} +15 -15
  4. package/dist/{Image-BHQYZWzH.js → Image-mNMBOofs.js} +22 -22
  5. package/dist/ImagePreview.client-B0iPhFm3.js +36 -0
  6. package/dist/{JsonPreview.client-DivFAnbN.js → JsonPreview.client-DSl1kiwC.js} +2 -2
  7. package/dist/{Map-CtP7leHl.js → Map-BfqKMw0S.js} +165 -165
  8. package/dist/{MapContainer.client-Cq8tNLZZ.js → MapContainer.client-BSfpk_rT.js} +17 -17
  9. package/dist/{OSM-gdDSIsDA.js → OSM-CcrUhItr.js} +1 -1
  10. package/dist/{PdfPreview.client-BNBgLsK2.js → PdfPreview.client-BANFeM6K.js} +438 -427
  11. package/dist/{Pmtiles.client-CQi5Rw8W.js → Pmtiles.client-DH9ZrsZR.js} +6177 -5967
  12. package/dist/PreviewWrapper.vue_vue_type_script_setup_true_lang-I8EZCgzp.js +60 -0
  13. package/dist/{ScaleLine-hG-FhNqy.js → ScaleLine-VGQ7nkMS.js} +2 -2
  14. package/dist/{Tile-D6rFonpT.js → Tile-CSpn0Ca8.js} +47 -47
  15. package/dist/{TileImage-cfrEgz5y.js → TileImage-CpbaEFwd.js} +44 -44
  16. package/dist/{View-vp7vDb9q.js → View-BYBpt-AU.js} +58 -58
  17. package/dist/{XmlPreview.client-XCsNvnsZ.js → XmlPreview.client-KCB5mwVf.js} +3 -3
  18. package/dist/{common-C8efyyuc.js → common-BoeTUnDZ.js} +58 -58
  19. package/dist/components-next.css +1 -1
  20. package/dist/components-next.js +199 -172
  21. package/dist/components.css +1 -1
  22. package/dist/{index-CXUamc8Z.js → index-DHWzX5vK.js} +4668 -4466
  23. package/dist/{leaflet-src-BRKv9Ksv.js → leaflet-src-pVQfonBI.js} +1 -1
  24. package/dist/{main-DKu5SOAl.js → main-BDcYkhOc.js} +41684 -33432
  25. package/dist/{proj-CsjVeojN.js → proj-DxGbobp7.js} +110 -110
  26. package/dist/{tilecoord-CPcQJnrF.js → tilecoord-DvX7WWiA.js} +94 -94
  27. package/dist/{vue3-xml-viewer.common-BIaEIFYG.js → vue3-xml-viewer.common-Bdcn54ST.js} +1 -1
  28. package/package.json +28 -27
  29. package/src/components/ActivityList/ActivityList.vue +21 -12
  30. package/src/components/AppLink.vue +3 -0
  31. package/src/components/BannerAction.vue +6 -2
  32. package/src/components/Chart/ChartViewer.vue +111 -17
  33. package/src/components/Chart/ChartViewerWrapper.vue +28 -16
  34. package/src/components/ChartCard.vue +112 -0
  35. package/src/components/CopyButton.vue +6 -2
  36. package/src/components/DataserviceCard.vue +23 -6
  37. package/src/components/DataserviceQuality.vue +82 -0
  38. package/src/components/DataserviceQualityInline.vue +31 -0
  39. package/src/components/DataserviceQualityTooltipContent.vue +79 -0
  40. package/src/components/DatasetCard.vue +17 -6
  41. package/src/components/DatasetInformation/DatasetTemporalitySection.vue +7 -4
  42. package/src/components/DatasetQuality.vue +11 -11
  43. package/src/components/DatasetQualityInline.vue +2 -2
  44. package/src/components/DatasetQualityTooltipContent.vue +1 -1
  45. package/src/components/DiscussionMessageCard.vue +14 -15
  46. package/src/components/Form/SchemaSelect.vue +2 -0
  47. package/src/components/FormattedDate.vue +69 -0
  48. package/src/components/LoadingBlock.vue +4 -1
  49. package/src/components/ObjectCard.vue +4 -1
  50. package/src/components/ObjectCardOwner.vue +13 -1
  51. package/src/components/Pagination.vue +18 -58
  52. package/src/components/Placeholder.vue +3 -2
  53. package/src/components/PostCard.vue +13 -15
  54. package/src/components/ResourceAccordion/Datafair.client.vue +1 -1
  55. package/src/components/ResourceAccordion/Downloads.vue +19 -7
  56. package/src/components/ResourceAccordion/ImagePreview.client.vue +48 -0
  57. package/src/components/ResourceAccordion/MapContainer.client.vue +1 -8
  58. package/src/components/ResourceAccordion/Metadata.vue +21 -5
  59. package/src/components/ResourceAccordion/PdfPreview.client.vue +36 -12
  60. package/src/components/ResourceAccordion/PdfSkeleton.vue +44 -0
  61. package/src/components/ResourceAccordion/Pmtiles.client.vue +27 -18
  62. package/src/components/ResourceAccordion/Preview.vue +8 -4
  63. package/src/components/ResourceAccordion/PreviewWrapper.vue +17 -10
  64. package/src/components/ResourceAccordion/ResourceAccordion.vue +29 -9
  65. package/src/components/ResourceExplorer/ResourceExplorer.vue +105 -209
  66. package/src/components/ResourceExplorer/ResourceExplorerHeader.vue +79 -0
  67. package/src/components/ResourceExplorer/ResourceExplorerSidebar.vue +104 -71
  68. package/src/components/ResourceExplorer/ResourceExplorerViewer.vue +136 -183
  69. package/src/components/ResourceExplorer/ResourceMainAction.vue +240 -0
  70. package/src/components/ResourceExplorer/ResourceSelector.vue +24 -86
  71. package/src/components/ResourceExplorer/ResourceViewerHeader.vue +124 -0
  72. package/src/components/ResourceExplorer/ResourceViewerSkeleton.vue +96 -0
  73. package/src/components/ResourceListItem.vue +168 -0
  74. package/src/components/ReuseCard.vue +18 -6
  75. package/src/components/ReuseDetails.vue +2 -2
  76. package/src/components/ReuseHorizontalCard.vue +4 -3
  77. package/src/components/SchemaCard.vue +10 -1
  78. package/src/components/Search/Filter/AccessTypeFilter.vue +2 -2
  79. package/src/components/Search/GlobalSearch.vue +12 -8
  80. package/src/components/Search/SearchInput.vue +1 -1
  81. package/src/components/Search/Sidemenu.vue +4 -3
  82. package/src/components/SmallChart.vue +11 -10
  83. package/src/components/StatBox.vue +13 -5
  84. package/src/components/TabularExplorer/TabularActiveFilters.vue +79 -0
  85. package/src/components/TabularExplorer/TabularCell.vue +7 -8
  86. package/src/components/TabularExplorer/TabularCellPopover.vue +19 -3
  87. package/src/components/TabularExplorer/TabularColumnsMenu.vue +112 -0
  88. package/src/components/TabularExplorer/TabularDateField.vue +41 -0
  89. package/src/components/TabularExplorer/TabularDateFilter.vue +403 -0
  90. package/src/components/TabularExplorer/TabularExplorer.vue +122 -913
  91. package/src/components/TabularExplorer/TabularFilterContent.vue +33 -25
  92. package/src/components/TabularExplorer/TabularFilterPopover.vue +7 -7
  93. package/src/components/TabularExplorer/TabularMobileFilterButton.vue +21 -0
  94. package/src/components/TabularExplorer/TabularMobileFilters.vue +150 -0
  95. package/src/components/TabularExplorer/TabularRowsInfo.vue +31 -0
  96. package/src/components/TabularExplorer/TabularSkeleton.vue +92 -0
  97. package/src/components/TabularExplorer/TabularTable.vue +484 -0
  98. package/src/components/TabularExplorer/TabularToolbar.vue +25 -0
  99. package/src/components/TabularExplorer/types.ts +32 -20
  100. package/src/components/TabularExplorer/useColumnMetadata.ts +98 -0
  101. package/src/components/TabularExplorer/useTabularContext.ts +82 -0
  102. package/src/components/TopicCard.vue +15 -14
  103. package/src/composables/useActiveDescendant.ts +5 -0
  104. package/src/composables/useDatasetResources.ts +164 -0
  105. package/src/composables/useHasTabularData.ts +2 -1
  106. package/src/composables/useResizable.ts +46 -0
  107. package/src/composables/useResourceCapabilities.ts +47 -39
  108. package/src/composables/useTranslation.ts +24 -9
  109. package/src/config.ts +1 -0
  110. package/src/functions/charts.ts +32 -1
  111. package/src/functions/dates.ts +26 -7
  112. package/src/functions/helpers.ts +15 -0
  113. package/src/functions/metrics.ts +57 -56
  114. package/src/functions/owned.ts +21 -0
  115. package/src/functions/paginate.ts +46 -0
  116. package/src/functions/resourceCapabilities.ts +34 -0
  117. package/src/functions/resources.ts +83 -0
  118. package/src/functions/schemas.ts +27 -0
  119. package/src/functions/scroll.ts +20 -0
  120. package/src/functions/tabular.ts +119 -4
  121. package/src/functions/tabularApi.ts +1 -43
  122. package/src/main.ts +32 -6
  123. package/src/types/dataservices.ts +15 -0
  124. package/src/types/organizations.ts +10 -0
  125. package/src/types/reuses.ts +12 -1
  126. package/src/types/search.ts +2 -2
  127. package/src/types/visualizations.ts +5 -0
  128. package/dist/PreviewWrapper.vue_vue_type_script_setup_true_lang-C3dDzrIr.js +0 -61
  129. /package/src/components/{DatasetQualityItem.vue → QualityItem.vue} +0 -0
  130. /package/src/components/{DatasetQualityItemWarning.vue → QualityItemWarning.vue} +0 -0
  131. /package/src/components/{DatasetQualityScore.vue → QualityScore.vue} +0 -0
@@ -1,9 +1,9 @@
1
- import { a as nt, B as rt, E as A, c as oi, ax as D, aV as K, q as At, aO as Ni, Q as li, F as Ke, T as Qe, aG as zi, aE as hi, D as ci, p as Fi, O as et, am as Ne, af as Vi, k as Ki, d as G, as as Bi, aY as Gi, ao as Wi, aQ as Hi, a1 as Yi, ad as St, at as Ui, N as kt, A as $i, r as Xi, aW as qi } from "./proj-CsjVeojN.js";
2
- import { P as ui, T as Le, k as Zi, n as Nt, W as ji, M as di, t as ve, I as L, g as zt, c as ce, f as Ji, b as le, d as Qi, m as en, i as he, D as tn, h as Ft } from "./Image-BHQYZWzH.js";
3
- import { f as It, d as st, a as bt, C as Vt, b as $e, h as pt, g as nn, M as se } from "./Control-b-43UT2B.js";
4
- import { c as J, g as Be, q as rn, d as sn, t as an, j as on, e as Kt, b as Bt } from "./common-C8efyyuc.js";
5
- import { n as fi, a as ln, V as oe, c as Xe } from "./View-vp7vDb9q.js";
6
- import { B as hn, f as gi, t as _i, w as cn, r as Gt, l as un, b as ze, c as dn, N as mi, L as Dt, i as yi, R as fn, a as Se } from "./Event-py_AAwJY.js";
1
+ import { B as nt, G as rt, E as I, aD as oi, l as D, u as V, aE as It, ar as Ni, Z as li, ac as Ve, T as Qe, aF as zi, aG as hi, aH as ci, a6 as Fi, O as et, a as Ne, d as Ki, a1 as Vi, al as G, f as Bi, a7 as Gi, I as Wi, ai as Hi, ad as Yi, L as St, H as Ui, C as kt, a9 as $i, _ as Xi, aI as qi } from "./proj-DxGbobp7.js";
2
+ import { P as ui, T as Le, r as Zi, f as Nt, W as ji, M as di, t as ve, d as L, g as zt, c as ce, h as Ji, i as le, j as Qi, k as en, l as he, D as tn, m as Ft } from "./Image-mNMBOofs.js";
3
+ import { C as At, a as st, c as bt, e as Kt, f as $e, g as pt, h as nn, M as se } from "./Control-B9WQxlpJ.js";
4
+ import { a as J, j as Be, k as rn, d as sn, n as an, o as on, e as Vt, g as Bt } from "./common-BoeTUnDZ.js";
5
+ import { M as fi, s as ln, I as oe, V as Xe } from "./View-BYBpt-AU.js";
6
+ import { B as hn, f as gi, t as _i, w as cn, r as Gt, l as un, a as ze, b as dn, N as mi, L as Dt, i as yi, c as fn, R as Se } from "./Event-iXDrp-fy.js";
7
7
  const W = {
8
8
  /**
9
9
  * Triggered when an item is added to the collection.
@@ -281,13 +281,13 @@ const b = {
281
281
  * @event module:ol/MapBrowserEvent~MapBrowserEvent#click
282
282
  * @api
283
283
  */
284
- CLICK: A.CLICK,
284
+ CLICK: I.CLICK,
285
285
  /**
286
286
  * A true double click, with no dragging.
287
287
  * @event module:ol/MapBrowserEvent~MapBrowserEvent#dblclick
288
288
  * @api
289
289
  */
290
- DBLCLICK: A.DBLCLICK,
290
+ DBLCLICK: I.DBLCLICK,
291
291
  /**
292
292
  * Triggered when a pointer is dragged.
293
293
  * @event module:ol/MapBrowserEvent~MapBrowserEvent#pointerdrag
@@ -331,7 +331,7 @@ class gn extends oi {
331
331
  this.relayMoveEvent_,
332
332
  this
333
333
  ), this.boundHandleTouchMove_ = this.handleTouchMove_.bind(this), this.element_.addEventListener(
334
- A.TOUCHMOVE,
334
+ I.TOUCHMOVE,
335
335
  this.boundHandleTouchMove_,
336
336
  ui ? { passive: !1 } : !1
337
337
  );
@@ -395,7 +395,7 @@ class gn extends oi {
395
395
  void 0,
396
396
  this.activePointers_
397
397
  );
398
- this.dispatchEvent(t), this.emulateClicks_ && !t.defaultPrevented && !this.dragging_ && this.isMouseActionButton_(e) && this.emulateClick_(this.down_), this.activePointers_.length === 0 && (this.dragListenerKeys_.forEach(K), this.dragListenerKeys_.length = 0, this.dragging_ = !1, this.down_ = null);
398
+ this.dispatchEvent(t), this.emulateClicks_ && !t.defaultPrevented && !this.dragging_ && this.isMouseActionButton_(e) && this.emulateClick_(this.down_), this.activePointers_.length === 0 && (this.dragListenerKeys_.forEach(V), this.dragListenerKeys_.length = 0, this.dragging_ = !1, this.down_ = null);
399
399
  }
400
400
  /**
401
401
  * @param {PointerEvent} pointerEvent Pointer
@@ -526,10 +526,10 @@ class gn extends oi {
526
526
  * @override
527
527
  */
528
528
  disposeInternal() {
529
- this.relayedListenerKey_ && (K(this.relayedListenerKey_), this.relayedListenerKey_ = null), this.element_.removeEventListener(
530
- A.TOUCHMOVE,
529
+ this.relayedListenerKey_ && (V(this.relayedListenerKey_), this.relayedListenerKey_ = null), this.element_.removeEventListener(
530
+ I.TOUCHMOVE,
531
531
  this.boundHandleTouchMove_
532
- ), this.pointerdownListenerKey_ && (K(this.pointerdownListenerKey_), this.pointerdownListenerKey_ = null), this.dragListenerKeys_.forEach(K), this.dragListenerKeys_.length = 0, this.element_ = null, super.disposeInternal();
532
+ ), this.pointerdownListenerKey_ && (V(this.pointerdownListenerKey_), this.pointerdownListenerKey_ = null), this.dragListenerKeys_.forEach(V), this.dragListenerKeys_.length = 0, this.element_ = null, super.disposeInternal();
533
533
  }
534
534
  }
535
535
  const k = {
@@ -550,7 +550,7 @@ class _n {
550
550
  * FIXME empty description for jsdoc
551
551
  */
552
552
  clear() {
553
- this.elements_.length = 0, this.priorities_.length = 0, At(this.queuedElements_);
553
+ this.elements_.length = 0, this.priorities_.length = 0, It(this.queuedElements_);
554
554
  }
555
555
  /**
556
556
  * Remove and return the highest-priority element. O(log N).
@@ -698,7 +698,7 @@ class mn extends _n {
698
698
  */
699
699
  enqueue(e) {
700
700
  const t = super.enqueue(e);
701
- return t && e[0].addEventListener(A.CHANGE, this.boundHandleTileChange_), t;
701
+ return t && e[0].addEventListener(I.CHANGE, this.boundHandleTileChange_), t;
702
702
  }
703
703
  /**
704
704
  * @return {number} Number of tiles loading.
@@ -716,7 +716,7 @@ class mn extends _n {
716
716
  e.target
717
717
  ), i = t.getState();
718
718
  if (i === Le.LOADED || i === Le.ERROR || i === Le.EMPTY) {
719
- i !== Le.ERROR && t.removeEventListener(A.CHANGE, this.boundHandleTileChange_);
719
+ i !== Le.ERROR && t.removeEventListener(I.CHANGE, this.boundHandleTileChange_);
720
720
  const r = t.getKey();
721
721
  r in this.tilesLoadingKeys_ && (delete this.tilesLoadingKeys_[r], --this.tilesLoading_), this.tileChangeCallback_();
722
722
  }
@@ -739,7 +739,7 @@ function yn(n, e, t, i, r) {
739
739
  const s = n.viewState.center, a = i[0] - s[0], o = i[1] - s[1];
740
740
  return 65536 * Math.log(r) + Math.sqrt(a * a + o * o) / r;
741
741
  }
742
- class pn extends It {
742
+ class pn extends At {
743
743
  /**
744
744
  * @param {Options} [options] Attribution options.
745
745
  */
@@ -755,11 +755,11 @@ class pn extends It {
755
755
  typeof o == "string" ? (this.label_ = document.createElement("span"), this.label_.textContent = o, this.label_.className = r) : this.label_ = o;
756
756
  const l = this.collapsible_ && !this.collapsed_ ? this.collapseLabel_ : this.label_;
757
757
  this.toggleButton_ = document.createElement("button"), this.toggleButton_.setAttribute("type", "button"), this.toggleButton_.setAttribute("aria-expanded", String(!this.collapsed_)), this.toggleButton_.title = i, this.toggleButton_.appendChild(l), this.toggleButton_.addEventListener(
758
- A.CLICK,
758
+ I.CLICK,
759
759
  this.handleClick_.bind(this),
760
760
  !1
761
761
  );
762
- const h = t + " " + st + " " + bt + (this.collapsed_ && this.collapsible_ ? " " + Vt : "") + (this.collapsible_ ? "" : " ol-uncollapsible"), c = this.element;
762
+ const h = t + " " + st + " " + bt + (this.collapsed_ && this.collapsible_ ? " " + Kt : "") + (this.collapsible_ ? "" : " ol-uncollapsible"), c = this.element;
763
763
  c.className = h, c.appendChild(this.toggleButton_), c.appendChild(this.ulElement_), this.renderedAttributions_ = [], this.renderedVisible_ = !0;
764
764
  }
765
765
  /**
@@ -814,7 +814,7 @@ class pn extends It {
814
814
  * @private
815
815
  */
816
816
  handleToggle_() {
817
- this.element.classList.toggle(Vt), this.collapsed_ ? Nt(this.collapseLabel_, this.label_) : Nt(this.label_, this.collapseLabel_), this.collapsed_ = !this.collapsed_, this.toggleButton_.setAttribute("aria-expanded", String(!this.collapsed_));
817
+ this.element.classList.toggle(Kt), this.collapsed_ ? Nt(this.collapseLabel_, this.label_) : Nt(this.label_, this.collapseLabel_), this.collapsed_ = !this.collapsed_, this.toggleButton_.setAttribute("aria-expanded", String(!this.collapsed_));
818
818
  }
819
819
  /**
820
820
  * Return `true` if the attribution is collapsible, `false` otherwise.
@@ -860,7 +860,7 @@ class pn extends It {
860
860
  this.updateElement_(e.frameState);
861
861
  }
862
862
  }
863
- class En extends It {
863
+ class En extends At {
864
864
  /**
865
865
  * @param {Options} [options] Rotate options.
866
866
  */
@@ -874,7 +874,7 @@ class En extends It {
874
874
  this.label_ = null, typeof i == "string" ? (this.label_ = document.createElement("span"), this.label_.className = r, this.label_.textContent = i) : (this.label_ = i, this.label_.classList.add(r));
875
875
  const s = e.tipLabel ? e.tipLabel : "Reset rotation", a = document.createElement("button");
876
876
  a.className = t + "-reset", a.setAttribute("type", "button"), a.title = s, a.appendChild(this.label_), a.addEventListener(
877
- A.CLICK,
877
+ I.CLICK,
878
878
  this.handleClick_.bind(this),
879
879
  !1
880
880
  );
@@ -923,7 +923,7 @@ class En extends It {
923
923
  this.rotation_ = i;
924
924
  }
925
925
  }
926
- class wn extends It {
926
+ class wn extends At {
927
927
  /**
928
928
  * @param {Options} [options] Zoom options.
929
929
  */
@@ -936,7 +936,7 @@ class wn extends It {
936
936
  c.className = r, c.setAttribute("type", "button"), c.title = l, c.appendChild(
937
937
  typeof a == "string" ? document.createTextNode(a) : a
938
938
  ), c.addEventListener(
939
- A.CLICK,
939
+ I.CLICK,
940
940
  this.handleClick_.bind(this, i),
941
941
  !1
942
942
  );
@@ -944,7 +944,7 @@ class wn extends It {
944
944
  d.className = s, d.setAttribute("type", "button"), d.title = h, d.appendChild(
945
945
  typeof o == "string" ? document.createTextNode(o) : o
946
946
  ), d.addEventListener(
947
- A.CLICK,
947
+ I.CLICK,
948
948
  this.handleClick_.bind(this, -i),
949
949
  !1
950
950
  );
@@ -1118,7 +1118,7 @@ function Tt(n, e, t, i) {
1118
1118
  easing: Be
1119
1119
  });
1120
1120
  }
1121
- class An extends Ge {
1121
+ class In extends Ge {
1122
1122
  /**
1123
1123
  * @param {Options} [options] Options.
1124
1124
  */
@@ -1156,7 +1156,7 @@ function wt(n) {
1156
1156
  const as = function(n) {
1157
1157
  const e = n.originalEvent;
1158
1158
  return e.altKey && !(e.metaKey || e.ctrlKey) && !e.shiftKey;
1159
- }, In = function(n) {
1159
+ }, An = function(n) {
1160
1160
  const e = n.originalEvent;
1161
1161
  return e.altKey && !(e.metaKey || e.ctrlKey) && e.shiftKey;
1162
1162
  }, bn = function(n) {
@@ -1168,7 +1168,7 @@ const as = function(n) {
1168
1168
  }, Dn = Qe, Ei = function(n) {
1169
1169
  const e = n.originalEvent;
1170
1170
  return "pointerId" in e && e.button == 0 && !(ji && di && e.ctrlKey);
1171
- }, os = Ke, ls = function(n) {
1171
+ }, os = Ve, ls = function(n) {
1172
1172
  return n.type == "pointermove";
1173
1173
  }, hs = function(n) {
1174
1174
  return n.type == b.SINGLECLICK;
@@ -1307,7 +1307,7 @@ class On extends We {
1307
1307
  */
1308
1308
  constructor(e) {
1309
1309
  super({
1310
- stopDown: Ke
1310
+ stopDown: Ve
1311
1311
  }), e = e || {}, this.kinetic_ = e.kinetic, this.lastCentroid = null, this.lastPointersCount_, this.panning_ = !1;
1312
1312
  const t = e.condition ? e.condition : wt(wi, Pn);
1313
1313
  this.condition_ = e.onFocusOnly ? wt(pi, t) : t, this.noKinetic_ = !1;
@@ -1376,8 +1376,8 @@ class xn extends We {
1376
1376
  */
1377
1377
  constructor(e) {
1378
1378
  e = e || {}, super({
1379
- stopDown: Ke
1380
- }), this.condition_ = e.condition ? e.condition : In, this.lastAngle_ = void 0, this.duration_ = e.duration !== void 0 ? e.duration : 250;
1379
+ stopDown: Ve
1380
+ }), this.condition_ = e.condition ? e.condition : An, this.lastAngle_ = void 0, this.duration_ = e.duration !== void 0 ? e.duration : 250;
1381
1381
  }
1382
1382
  /**
1383
1383
  * Handle pointer drag events.
@@ -1505,7 +1505,7 @@ const ge = {
1505
1505
  */
1506
1506
  BOXCANCEL: "boxcancel"
1507
1507
  };
1508
- class Ae extends rt {
1508
+ class Ie extends rt {
1509
1509
  /**
1510
1510
  * @param {string} type The event type.
1511
1511
  * @param {import("../coordinate.js").Coordinate} coordinate The event coordinate.
@@ -1550,7 +1550,7 @@ class Sn extends We {
1550
1550
  */
1551
1551
  handleDragEvent(e) {
1552
1552
  this.startPixel_ && (this.box_.setPixels(this.startPixel_, e.pixel), this.dispatchEvent(
1553
- new Ae(
1553
+ new Ie(
1554
1554
  ge.BOXDRAG,
1555
1555
  e.coordinate,
1556
1556
  e
@@ -1572,7 +1572,7 @@ class Sn extends We {
1572
1572
  e.pixel
1573
1573
  );
1574
1574
  return t && this.onBoxEnd(e), this.dispatchEvent(
1575
- new Ae(
1575
+ new Ie(
1576
1576
  t ? ge.BOXEND : ge.BOXCANCEL,
1577
1577
  e.coordinate,
1578
1578
  e
@@ -1587,7 +1587,7 @@ class Sn extends We {
1587
1587
  */
1588
1588
  handleDownEvent(e) {
1589
1589
  return this.condition_(e) ? (this.startPixel_ = e.pixel, this.box_.setMap(e.map), this.box_.setPixels(this.startPixel_, this.startPixel_), this.dispatchEvent(
1590
- new Ae(
1590
+ new Ie(
1591
1591
  ge.BOXSTART,
1592
1592
  e.coordinate,
1593
1593
  e
@@ -1609,7 +1609,7 @@ class Sn extends We {
1609
1609
  */
1610
1610
  setActive(e) {
1611
1611
  e || (this.box_.setMap(null), this.startPixel_ && (this.dispatchEvent(
1612
- new Ae(ge.BOXCANCEL, this.startPixel_, null)
1612
+ new Ie(ge.BOXCANCEL, this.startPixel_, null)
1613
1613
  ), this.startPixel_ = null)), super.setActive(e);
1614
1614
  }
1615
1615
  /**
@@ -1618,7 +1618,7 @@ class Sn extends We {
1618
1618
  */
1619
1619
  setMap(e) {
1620
1620
  this.getMap() && (this.box_.setMap(null), this.startPixel_ && (this.dispatchEvent(
1621
- new Ae(ge.BOXCANCEL, this.startPixel_, null)
1621
+ new Ie(ge.BOXCANCEL, this.startPixel_, null)
1622
1622
  ), this.startPixel_ = null)), super.setMap(e);
1623
1623
  }
1624
1624
  }
@@ -1681,7 +1681,7 @@ class Nn extends Ge {
1681
1681
  */
1682
1682
  handleEvent(e) {
1683
1683
  let t = !1;
1684
- if (e.type == A.KEYDOWN) {
1684
+ if (e.type == I.KEYDOWN) {
1685
1685
  const i = (
1686
1686
  /** @type {KeyboardEvent} */
1687
1687
  e.originalEvent
@@ -1716,7 +1716,7 @@ class zn extends Ge {
1716
1716
  */
1717
1717
  handleEvent(e) {
1718
1718
  let t = !1;
1719
- if (e.type == A.KEYDOWN || e.type == A.KEYPRESS) {
1719
+ if (e.type == I.KEYDOWN || e.type == I.KEYPRESS) {
1720
1720
  const i = (
1721
1721
  /** @type {KeyboardEvent} */
1722
1722
  e.originalEvent
@@ -1729,7 +1729,7 @@ class zn extends Ge {
1729
1729
  return !t;
1730
1730
  }
1731
1731
  }
1732
- const Fn = 40, Vn = 300, Kn = 3;
1732
+ const Fn = 40, Kn = 300, Vn = 3;
1733
1733
  class Bn extends Ge {
1734
1734
  /**
1735
1735
  * @param {Options} [options] Options.
@@ -1747,7 +1747,7 @@ class Bn extends Ge {
1747
1747
  * @override
1748
1748
  */
1749
1749
  setMap(e) {
1750
- if (this.ctrlKeyListenerKeys_.forEach(K), this.ctrlKeyListenerKeys_.length = 0, this.ctrlKeyPressed_ = !1, super.setMap(e), e) {
1750
+ if (this.ctrlKeyListenerKeys_.forEach(V), this.ctrlKeyListenerKeys_.length = 0, this.ctrlKeyPressed_ = !1, super.setMap(e), e) {
1751
1751
  const t = e.getOwnerDocument();
1752
1752
  this.ctrlKeyListenerKeys_.push(
1753
1753
  D(t, "keydown", (i) => {
@@ -1782,7 +1782,7 @@ class Bn extends Ge {
1782
1782
  * @override
1783
1783
  */
1784
1784
  handleEvent(e) {
1785
- if (!this.condition_(e) || e.type !== A.WHEEL)
1785
+ if (!this.condition_(e) || e.type !== I.WHEEL)
1786
1786
  return !0;
1787
1787
  const i = e.map, r = (
1788
1788
  /** @type {WheelEvent} */
@@ -1797,7 +1797,7 @@ class Bn extends Ge {
1797
1797
  a *= Fn;
1798
1798
  break;
1799
1799
  case WheelEvent.DOM_DELTA_PAGE:
1800
- a *= Vn;
1800
+ a *= Kn;
1801
1801
  break;
1802
1802
  }
1803
1803
  if (a === 0)
@@ -1810,7 +1810,7 @@ class Bn extends Ge {
1810
1810
  return this.trackpadTimeoutId_ ? clearTimeout(this.trackpadTimeoutId_) : (l.getAnimating() && l.cancelAnimations(), l.beginInteraction()), this.trackpadTimeoutId_ = setTimeout(
1811
1811
  this.endInteraction_.bind(this),
1812
1812
  this.timeout_
1813
- ), s && (a = a * Kn), l.adjustZoom(
1813
+ ), s && (a = a * Vn), l.adjustZoom(
1814
1814
  -a / this.deltaPerZoom_,
1815
1815
  this.lastAnchor_ ? i.getCoordinateFromPixel(this.lastAnchor_) : null
1816
1816
  ), this.startTime_ = o, !1;
@@ -1860,7 +1860,7 @@ class Gn extends We {
1860
1860
  /** @type {import("./Pointer.js").Options} */
1861
1861
  e
1862
1862
  );
1863
- t.stopDown || (t.stopDown = Ke), super(t), this.anchor_ = null, this.lastAngle_ = void 0, this.rotating_ = !1, this.rotationDelta_ = 0, this.threshold_ = e.threshold !== void 0 ? e.threshold : 0.3, this.duration_ = e.duration !== void 0 ? e.duration : 250;
1863
+ t.stopDown || (t.stopDown = Ve), super(t), this.anchor_ = null, this.lastAngle_ = void 0, this.rotating_ = !1, this.rotationDelta_ = 0, this.threshold_ = e.threshold !== void 0 ? e.threshold : 0.3, this.duration_ = e.duration !== void 0 ? e.duration : 250;
1864
1864
  }
1865
1865
  /**
1866
1866
  * Handle pointer drag events.
@@ -1916,7 +1916,7 @@ class Wn extends We {
1916
1916
  /** @type {import("./Pointer.js").Options} */
1917
1917
  e
1918
1918
  );
1919
- t.stopDown || (t.stopDown = Ke), super(t), this.anchor_ = null, this.duration_ = e.duration !== void 0 ? e.duration : 400, this.lastDistance_ = void 0, this.lastScaleDelta_ = 1;
1919
+ t.stopDown || (t.stopDown = Ve), super(t), this.anchor_ = null, this.duration_ = e.duration !== void 0 ? e.duration : 400, this.lastDistance_ = void 0, this.lastScaleDelta_ = 1;
1920
1920
  }
1921
1921
  /**
1922
1922
  * Handle pointer drag events.
@@ -1963,7 +1963,7 @@ function Hn(n) {
1963
1963
  n = n || {};
1964
1964
  const e = new U(), t = new Cn(-5e-3, 0.05, 100);
1965
1965
  return (n.altShiftDragRotate === void 0 || n.altShiftDragRotate) && e.push(new xn()), (n.doubleClickZoom === void 0 || n.doubleClickZoom) && e.push(
1966
- new An({
1966
+ new In({
1967
1967
  delta: n.zoomDelta,
1968
1968
  duration: n.zoomDuration
1969
1969
  })
@@ -2046,7 +2046,7 @@ class Ce extends hn {
2046
2046
  * @private
2047
2047
  */
2048
2048
  handleLayersChanged_() {
2049
- this.layersListenerKeys_.forEach(K), this.layersListenerKeys_.length = 0;
2049
+ this.layersListenerKeys_.forEach(V), this.layersListenerKeys_.length = 0;
2050
2050
  const e = this.getLayers();
2051
2051
  this.layersListenerKeys_.push(
2052
2052
  D(e, W.ADD, this.handleLayersAdd_, this),
@@ -2058,8 +2058,8 @@ class Ce extends hn {
2058
2058
  )
2059
2059
  );
2060
2060
  for (const i in this.listenerKeys_)
2061
- this.listenerKeys_[i].forEach(K);
2062
- At(this.listenerKeys_);
2061
+ this.listenerKeys_[i].forEach(V);
2062
+ It(this.listenerKeys_);
2063
2063
  const t = e.getArray();
2064
2064
  for (let i = 0, r = t.length; i < r; i++) {
2065
2065
  const s = t[i];
@@ -2078,7 +2078,7 @@ class Ce extends hn {
2078
2078
  this.handleLayerChange_,
2079
2079
  this
2080
2080
  ),
2081
- D(e, A.CHANGE, this.handleLayerChange_, this)
2081
+ D(e, I.CHANGE, this.handleLayerChange_, this)
2082
2082
  ];
2083
2083
  e instanceof Ce && t.push(
2084
2084
  D(e, ee.ADDLAYER, this.handleLayerGroupAdd_, this),
@@ -2116,7 +2116,7 @@ class Ce extends hn {
2116
2116
  */
2117
2117
  handleLayersRemove_(e) {
2118
2118
  const t = e.element, i = Ne(t);
2119
- this.listenerKeys_[i].forEach(K), delete this.listenerKeys_[i], this.dispatchEvent(new ne(ee.REMOVELAYER, t)), this.changed();
2119
+ this.listenerKeys_[i].forEach(V), delete this.listenerKeys_[i], this.dispatchEvent(new ne(ee.REMOVELAYER, t)), this.changed();
2120
2120
  }
2121
2121
  /**
2122
2122
  * Returns the {@link module:ol/Collection~Collection collection} of {@link module:ol/layer/Layer~Layer layers}
@@ -2187,7 +2187,7 @@ class Ce extends hn {
2187
2187
  ), l.minResolution = Math.max(
2188
2188
  l.minResolution,
2189
2189
  r.minResolution
2190
- ), l.minZoom = Math.max(l.minZoom, r.minZoom), l.maxZoom = Math.min(l.maxZoom, r.maxZoom), r.extent !== void 0 && (l.extent !== void 0 ? l.extent = Vi(
2190
+ ), l.minZoom = Math.max(l.minZoom, r.minZoom), l.maxZoom = Math.min(l.maxZoom, r.maxZoom), r.extent !== void 0 && (l.extent !== void 0 ? l.extent = Ki(
2191
2191
  l.extent,
2192
2192
  r.extent
2193
2193
  ) : l.extent = r.extent), l.zIndex === void 0 && (l.zIndex = s);
@@ -2210,14 +2210,14 @@ function Ci(n, e, t = 0, i = n.length - 1, r = Yn) {
2210
2210
  }
2211
2211
  const s = n[e];
2212
2212
  let a = t, o = i;
2213
- for (Ie(n, t, e), r(n[i], s) > 0 && Ie(n, t, i); a < o; ) {
2214
- for (Ie(n, a, o), a++, o--; r(n[a], s) < 0; ) a++;
2213
+ for (Ae(n, t, e), r(n[i], s) > 0 && Ae(n, t, i); a < o; ) {
2214
+ for (Ae(n, a, o), a++, o--; r(n[a], s) < 0; ) a++;
2215
2215
  for (; r(n[o], s) > 0; ) o--;
2216
2216
  }
2217
- r(n[t], s) === 0 ? Ie(n, t, o) : (o++, Ie(n, o, i)), o <= e && (t = o + 1), e <= o && (i = o - 1);
2217
+ r(n[t], s) === 0 ? Ae(n, t, o) : (o++, Ae(n, o, i)), o <= e && (t = o + 1), e <= o && (i = o - 1);
2218
2218
  }
2219
2219
  }
2220
- function Ie(n, e, t) {
2220
+ function Ae(n, e, t) {
2221
2221
  const i = n[e];
2222
2222
  n[e] = n[t], n[t] = i;
2223
2223
  }
@@ -2471,14 +2471,14 @@ function Yt(n, e, t, i, r) {
2471
2471
  }
2472
2472
  }
2473
2473
  let fe = 0;
2474
- const N = 1 << fe++, y = 1 << fe++, V = 1 << fe++, Y = 1 << fe++, de = 1 << fe++, Pe = 1 << fe++, Je = Math.pow(2, fe) - 1, Pt = {
2474
+ const N = 1 << fe++, y = 1 << fe++, K = 1 << fe++, Y = 1 << fe++, de = 1 << fe++, Pe = 1 << fe++, Je = Math.pow(2, fe) - 1, Pt = {
2475
2475
  [N]: "boolean",
2476
2476
  [y]: "number",
2477
- [V]: "string",
2477
+ [K]: "string",
2478
2478
  [Y]: "color",
2479
2479
  [de]: "number[]",
2480
2480
  [Pe]: "size"
2481
- }, Jn = Object.keys(Pt).map(Number).sort(Ki);
2481
+ }, Jn = Object.keys(Pt).map(Number).sort(Vi);
2482
2482
  function Qn(n) {
2483
2483
  return n in Pt;
2484
2484
  }
@@ -2530,8 +2530,8 @@ function Li() {
2530
2530
  function S(n, e, t) {
2531
2531
  switch (typeof n) {
2532
2532
  case "boolean": {
2533
- if (te(e, V))
2534
- return new x(V, n ? "true" : "false");
2533
+ if (te(e, K))
2534
+ return new x(K, n ? "true" : "false");
2535
2535
  if (!xe(e, N))
2536
2536
  throw new Error(
2537
2537
  `got a boolean, but expected ${Oe(e)}`
@@ -2543,8 +2543,8 @@ function S(n, e, t) {
2543
2543
  return new x(Pe, ve(n));
2544
2544
  if (te(e, N))
2545
2545
  return new x(N, !!n);
2546
- if (te(e, V))
2547
- return new x(V, n.toString());
2546
+ if (te(e, K))
2547
+ return new x(K, n.toString());
2548
2548
  if (!xe(e, y))
2549
2549
  throw new Error(`got a number, but expected ${Oe(e)}`);
2550
2550
  return new x(y, n);
@@ -2554,9 +2554,9 @@ function S(n, e, t) {
2554
2554
  return new x(Y, gi(n));
2555
2555
  if (te(e, N))
2556
2556
  return new x(N, !!n);
2557
- if (!xe(e, V))
2557
+ if (!xe(e, K))
2558
2558
  throw new Error(`got a string, but expected ${Oe(e)}`);
2559
- return new x(V, n);
2559
+ return new x(K, n);
2560
2560
  }
2561
2561
  }
2562
2562
  if (!Array.isArray(n))
@@ -2645,7 +2645,7 @@ const u = {
2645
2645
  [u.Id]: g(nr, me),
2646
2646
  [u.Concat]: g(
2647
2647
  m(2, 1 / 0),
2648
- C(V)
2648
+ C(K)
2649
2649
  ),
2650
2650
  [u.GeometryType]: g(rr, me),
2651
2651
  [u.LineMetric]: g(sr, me),
@@ -2798,7 +2798,7 @@ const u = {
2798
2798
  ),
2799
2799
  [u.ToString]: g(
2800
2800
  m(1, 1),
2801
- C(N | y | V | Y)
2801
+ C(N | y | K | Y)
2802
2802
  )
2803
2803
  };
2804
2804
  function Ut(n, e, t) {
@@ -2811,7 +2811,7 @@ function Ut(n, e, t) {
2811
2811
  break;
2812
2812
  }
2813
2813
  case "string": {
2814
- r[s] = new x(V, a);
2814
+ r[s] = new x(K, a);
2815
2815
  break;
2816
2816
  }
2817
2817
  default:
@@ -2827,7 +2827,7 @@ function ir(n, e, t) {
2827
2827
  const i = n[1];
2828
2828
  if (typeof i != "string")
2829
2829
  throw new Error("expected a string argument for var operation");
2830
- return t.variables.add(i), [new x(V, i)];
2830
+ return t.variables.add(i), [new x(K, i)];
2831
2831
  }
2832
2832
  function nr(n, e, t) {
2833
2833
  t.featureId = !0;
@@ -2898,7 +2898,7 @@ function Xt(n, e, t) {
2898
2898
  );
2899
2899
  }
2900
2900
  function or(n, e, t) {
2901
- const i = n.length - 1, r = V | y | N, s = S(n[1], r, t), a = S(n[n.length - 1], e, t), o = new Array(i - 2);
2901
+ const i = n.length - 1, r = K | y | N, s = S(n[1], r, t), a = S(n[n.length - 1], e, t), o = new Array(i - 2);
2902
2902
  for (let l = 0; l < i - 2; l += 2) {
2903
2903
  try {
2904
2904
  const h = S(n[l + 2], s.type, t);
@@ -3007,7 +3007,7 @@ function cr(n, e, t) {
3007
3007
  throw new Error(
3008
3008
  'for the "in" operator, a string array should be wrapped in a "literal" operator to disambiguate from expressions'
3009
3009
  );
3010
- typeof i[0] == "string" ? r = V : r = y;
3010
+ typeof i[0] == "string" ? r = K : r = y;
3011
3011
  const s = new Array(i.length);
3012
3012
  for (let o = 0; o < s.length; o++)
3013
3013
  try {
@@ -3073,7 +3073,7 @@ function dr(n, e, t) {
3073
3073
  throw new Error(`unknown operator: ${i}`);
3074
3074
  return r(n, e, t);
3075
3075
  }
3076
- function Ai(n) {
3076
+ function Ii(n) {
3077
3077
  if (!n)
3078
3078
  return "";
3079
3079
  const e = n.getType();
@@ -3092,7 +3092,7 @@ function Ai(n) {
3092
3092
  case "Circle":
3093
3093
  return "Polygon";
3094
3094
  case "GeometryCollection":
3095
- return Ai(
3095
+ return Ii(
3096
3096
  /** @type {import("../geom/GeometryCollection.js").default} */
3097
3097
  n.getGeometries()[0]
3098
3098
  );
@@ -3100,7 +3100,7 @@ function Ai(n) {
3100
3100
  return "";
3101
3101
  }
3102
3102
  }
3103
- function Ii() {
3103
+ function Ai() {
3104
3104
  return {
3105
3105
  variables: {},
3106
3106
  properties: {},
@@ -3577,7 +3577,7 @@ class bi extends oi {
3577
3577
  * @private
3578
3578
  */
3579
3579
  dispatchChangeEvent_() {
3580
- this.dispatchEvent(A.CHANGE);
3580
+ this.dispatchEvent(I.CHANGE);
3581
3581
  }
3582
3582
  /**
3583
3583
  * @private
@@ -3680,9 +3680,9 @@ class bi extends oi {
3680
3680
  e();
3681
3681
  else {
3682
3682
  const t = () => {
3683
- (this.imageState_ === L.LOADED || this.imageState_ === L.ERROR) && (this.removeEventListener(A.CHANGE, t), e());
3683
+ (this.imageState_ === L.LOADED || this.imageState_ === L.ERROR) && (this.removeEventListener(I.CHANGE, t), e());
3684
3684
  };
3685
- this.addEventListener(A.CHANGE, t);
3685
+ this.addEventListener(I.CHANGE, t);
3686
3686
  }
3687
3687
  })), this.ready_;
3688
3688
  }
@@ -3698,9 +3698,9 @@ function ke(n, e, t, i, r, s) {
3698
3698
  ), H.set(e, r, a, s)), s && a && !H.getPattern(e, r) && H.set(e, r, a, s), a;
3699
3699
  }
3700
3700
  function qt(n) {
3701
- return n ? Array.isArray(n) ? _i(n) : typeof n == "object" && "src" in n ? Ar(n) : n : null;
3701
+ return n ? Array.isArray(n) ? _i(n) : typeof n == "object" && "src" in n ? Ir(n) : n : null;
3702
3702
  }
3703
- function Ar(n) {
3703
+ function Ir(n) {
3704
3704
  if (!n.offset || !n.size)
3705
3705
  return H.getPattern(n.src, n.color);
3706
3706
  const e = n.src + ":" + n.offset, t = H.getPattern(e, n.color);
@@ -3732,7 +3732,7 @@ function Ar(n) {
3732
3732
  !0
3733
3733
  ), H.getPattern(e, n.color);
3734
3734
  }
3735
- const us = "10px sans-serif", Zt = "#000", jt = "round", ds = [], fs = 0, Jt = "round", Ir = 10, gs = 0, br = "#000", _s = "center", ms = "middle", ys = [0, 0, 0, 0], Dr = 1, Ee = new nt();
3735
+ const us = "10px sans-serif", Zt = "#000", jt = "round", ds = [], fs = 0, Jt = "round", Ar = 10, gs = 0, br = "#000", _s = "center", ms = "middle", ys = [0, 0, 0, 0], Dr = 1, Ee = new nt();
3736
3736
  let De = null, Qt;
3737
3737
  const vt = {}, Tr = /* @__PURE__ */ new Set([
3738
3738
  "serif",
@@ -3780,7 +3780,7 @@ const ps = /* @__PURE__ */ (function() {
3780
3780
  for (let l = o.length - 1; l >= 0; --l) {
3781
3781
  const h = o[l];
3782
3782
  let c = a[h];
3783
- c < 100 && (await i(h) ? (At(vt), Ee.set(h, 100)) : (c += 10, Ee.set(h, c, !0), c < 100 && (s = !1)));
3783
+ c < 100 && (await i(h) ? (It(vt), Ee.set(h, 100)) : (c += 10, Ee.set(h, c, !0), c < 100 && (s = !1)));
3784
3784
  }
3785
3785
  e = void 0, s || (e = setTimeout(r, 100));
3786
3786
  }
@@ -4358,7 +4358,7 @@ class ot extends at {
4358
4358
  */
4359
4359
  createRenderOptions() {
4360
4360
  let e = jt, t = Jt, i = 0, r = null, s = 0, a, o = 0;
4361
- this.stroke_ && (a = qt(this.stroke_.getColor() ?? br), o = this.stroke_.getWidth() ?? Dr, r = this.stroke_.getLineDash(), s = this.stroke_.getLineDashOffset() ?? 0, t = this.stroke_.getLineJoin() ?? Jt, e = this.stroke_.getLineCap() ?? jt, i = this.stroke_.getMiterLimit() ?? Ir);
4361
+ this.stroke_ && (a = qt(this.stroke_.getColor() ?? br), o = this.stroke_.getWidth() ?? Dr, r = this.stroke_.getLineDash(), s = this.stroke_.getLineDashOffset() ?? 0, t = this.stroke_.getLineJoin() ?? Jt, e = this.stroke_.getLineCap() ?? jt, i = this.stroke_.getMiterLimit() ?? Ar);
4362
4362
  const l = this.calculateLineJoinSize_(t, o, i), h = Math.max(this.radius, this.radius2_ || 0), c = Math.ceil(2 * h + l);
4363
4363
  return {
4364
4364
  strokeStyle: a,
@@ -4856,7 +4856,7 @@ class Ot extends at {
4856
4856
  * @override
4857
4857
  */
4858
4858
  listenImageChange(e) {
4859
- this.iconImage_.addEventListener(A.CHANGE, e);
4859
+ this.iconImage_.addEventListener(I.CHANGE, e);
4860
4860
  }
4861
4861
  /**
4862
4862
  * Load not yet loaded URI.
@@ -4874,7 +4874,7 @@ class Ot extends at {
4874
4874
  * @override
4875
4875
  */
4876
4876
  unlistenImageChange(e) {
4877
- this.iconImage_.removeEventListener(A.CHANGE, e);
4877
+ this.iconImage_.removeEventListener(I.CHANGE, e);
4878
4878
  }
4879
4879
  /**
4880
4880
  * @override
@@ -5711,13 +5711,13 @@ function Sr(n) {
5711
5711
  return !0;
5712
5712
  }
5713
5713
  function kr(n) {
5714
- const e = Li(), t = Nr(n, e), i = Ii();
5714
+ const e = Li(), t = Nr(n, e), i = Ai();
5715
5715
  return function(r, s) {
5716
5716
  if (i.properties = r.getPropertiesInternal(), i.resolution = s, e.featureId) {
5717
5717
  const a = r.getId();
5718
5718
  a !== void 0 ? i.featureId = a : i.featureId = null;
5719
5719
  }
5720
- return e.geometryType && (i.geometryType = Ai(
5720
+ return e.geometryType && (i.geometryType = Ii(
5721
5721
  r.getGeometry()
5722
5722
  )), t(i);
5723
5723
  };
@@ -5726,7 +5726,7 @@ function ii(n) {
5726
5726
  const e = Li(), t = n.length, i = new Array(t);
5727
5727
  for (let a = 0; a < t; ++a)
5728
5728
  i[a] = Ct(n[a], e);
5729
- const r = Ii(), s = new Array(t);
5729
+ const r = Ai(), s = new Array(t);
5730
5730
  return function(a, o) {
5731
5731
  if (r.properties = a.getPropertiesInternal(), r.resolution = o, e.featureId) {
5732
5732
  const h = a.getId();
@@ -5771,7 +5771,7 @@ function Nr(n, e) {
5771
5771
  };
5772
5772
  }
5773
5773
  function Ct(n, e) {
5774
- const t = Fe(n, "", e), i = Ve(n, "", e), r = zr(n, e), s = Fr(n, e), a = M(n, "z-index", e);
5774
+ const t = Fe(n, "", e), i = Ke(n, "", e), r = zr(n, e), s = Fr(n, e), a = M(n, "z-index", e);
5775
5775
  if (!t && !i && !r && !s && !Bi(n))
5776
5776
  throw new Error(
5777
5777
  "No fill, stroke, point, or text symbolizer properties in style: " + JSON.stringify(n)
@@ -5819,7 +5819,7 @@ function Fe(n, e, t) {
5819
5819
  return a === mi ? null : (r.setColor(a), r);
5820
5820
  };
5821
5821
  }
5822
- function Ve(n, e, t) {
5822
+ function Ke(n, e, t) {
5823
5823
  const i = M(
5824
5824
  n,
5825
5825
  e + "stroke-width",
@@ -5886,7 +5886,7 @@ function zr(n, e) {
5886
5886
  n,
5887
5887
  t + "background-",
5888
5888
  e
5889
- ), a = Ve(n, t, e), o = Ve(
5889
+ ), a = Ke(n, t, e), o = Ke(
5890
5890
  n,
5891
5891
  t + "background-",
5892
5892
  e
@@ -5937,27 +5937,27 @@ function zr(n, e) {
5937
5937
  ), q = ct(
5938
5938
  n,
5939
5939
  t + "declutter-mode"
5940
- ), I = new xt({ declutterMode: q });
5940
+ ), A = new xt({ declutterMode: q });
5941
5941
  return function(E) {
5942
- if (I.setText(i(E)), r && I.setFill(r(E)), s && I.setBackgroundFill(s(E)), a && I.setStroke(a(E)), o && I.setBackgroundStroke(o(E)), l && I.setFont(l(E)), h && I.setMaxAngle(h(E)), c && I.setOffsetX(c(E)), d && I.setOffsetY(d(E)), f && I.setOverflow(f(E)), _) {
5942
+ if (A.setText(i(E)), r && A.setFill(r(E)), s && A.setBackgroundFill(s(E)), a && A.setStroke(a(E)), o && A.setBackgroundStroke(o(E)), l && A.setFont(l(E)), h && A.setMaxAngle(h(E)), c && A.setOffsetX(c(E)), d && A.setOffsetY(d(E)), f && A.setOverflow(f(E)), _) {
5943
5943
  const p = _(E);
5944
5944
  if (p !== "point" && p !== "line")
5945
5945
  throw new Error("Expected point or line for text-placement");
5946
- I.setPlacement(p);
5946
+ A.setPlacement(p);
5947
5947
  }
5948
- if (w && I.setRepeat(w(E)), z && I.setScale(z(E)), R && I.setRotateWithView(R(E)), P && I.setRotation(P(E)), B) {
5948
+ if (w && A.setRepeat(w(E)), z && A.setScale(z(E)), R && A.setRotateWithView(R(E)), P && A.setRotation(P(E)), B) {
5949
5949
  const p = B(E);
5950
5950
  if (p !== "left" && p !== "center" && p !== "right" && p !== "end" && p !== "start")
5951
5951
  throw new Error(
5952
5952
  "Expected left, right, center, start, or end for text-align"
5953
5953
  );
5954
- I.setTextAlign(p);
5954
+ A.setTextAlign(p);
5955
5955
  }
5956
5956
  if (O) {
5957
5957
  const p = O(E);
5958
5958
  if (p !== "left" && p !== "right" && p !== "center")
5959
5959
  throw new Error("Expected left, right, or center for text-justify");
5960
- I.setJustify(p);
5960
+ A.setJustify(p);
5961
5961
  }
5962
5962
  if (v) {
5963
5963
  const p = v(E);
@@ -5965,15 +5965,15 @@ function zr(n, e) {
5965
5965
  throw new Error(
5966
5966
  "Expected bottom, top, middle, alphabetic, or hanging for text-baseline"
5967
5967
  );
5968
- I.setTextBaseline(p);
5968
+ A.setTextBaseline(p);
5969
5969
  }
5970
- return F && I.setPadding(F(E)), T && I.setKeepUpright(T(E)), I;
5970
+ return F && A.setPadding(F(E)), T && A.setKeepUpright(T(E)), A;
5971
5971
  };
5972
5972
  }
5973
5973
  function Fr(n, e) {
5974
- return "icon-src" in n ? Vr(n, e) : "shape-points" in n ? Kr(n, e) : "circle-radius" in n ? Br(n, e) : null;
5974
+ return "icon-src" in n ? Kr(n, e) : "shape-points" in n ? Vr(n, e) : "circle-radius" in n ? Br(n, e) : null;
5975
5975
  }
5976
- function Vr(n, e) {
5976
+ function Kr(n, e) {
5977
5977
  const t = "icon-", i = t + "src", r = Oi(n[i], i), s = it(
5978
5978
  n,
5979
5979
  t + "anchor",
@@ -6006,7 +6006,7 @@ function Vr(n, e) {
6006
6006
  const P = Hr(n, t + "cross-origin"), B = Yr(n, t + "offset"), O = ri(n, t + "offset-origin"), v = Lt(n, t + "width"), T = Lt(n, t + "height"), F = Wr(n, t + "size"), q = ct(
6007
6007
  n,
6008
6008
  t + "declutter-mode"
6009
- ), I = {
6009
+ ), A = {
6010
6010
  src: r,
6011
6011
  anchorOrigin: d,
6012
6012
  anchorXUnits: f,
@@ -6026,17 +6026,17 @@ function Vr(n, e) {
6026
6026
  else {
6027
6027
  const Ue = R ? R(p) : z;
6028
6028
  E = new Ot(
6029
- Ue !== void 0 ? Object.assign({}, I, { color: Ue }) : Object.assign({}, I)
6029
+ Ue !== void 0 ? Object.assign({}, A, { color: Ue }) : Object.assign({}, A)
6030
6030
  );
6031
6031
  }
6032
6032
  return o && E.setOpacity(o(p)), l && E.setDisplacement(l(p)), h && E.setRotation(h(p)), c && E.setRotateWithView(c(p)), a && E.setScale(a(p)), s && E.setAnchor(s(p)), E;
6033
6033
  };
6034
6034
  }
6035
- function Kr(n, e) {
6035
+ function Vr(n, e) {
6036
6036
  const t = "shape-", i = t + "points", r = t + "radius", s = Mt(n[i], i);
6037
6037
  if (!(r in n))
6038
6038
  throw new Error(`Expected a number for ${r}`);
6039
- const a = M(n, r, e), o = typeof n[r] == "number" ? n[r] : 5, l = t + "radius2", h = M(n, l, e), c = typeof n[l] == "number" ? n[l] : void 0, d = Fe(n, t, e), f = Ve(n, t, e), _ = ht(n, t + "scale", e), w = it(
6039
+ const a = M(n, r, e), o = typeof n[r] == "number" ? n[r] : 5, l = t + "radius2", h = M(n, l, e), c = typeof n[l] == "number" ? n[l] : void 0, d = Fe(n, t, e), f = Ke(n, t, e), _ = ht(n, t + "scale", e), w = it(
6040
6040
  n,
6041
6041
  t + "displacement",
6042
6042
  e
@@ -6063,7 +6063,7 @@ function Kr(n, e) {
6063
6063
  };
6064
6064
  }
6065
6065
  function Br(n, e) {
6066
- const t = "circle-", i = Fe(n, t, e), r = Ve(n, t, e), s = M(n, t + "radius", e), a = ht(n, t + "scale", e), o = it(
6066
+ const t = "circle-", i = Fe(n, t, e), r = Ke(n, t, e), s = M(n, t + "radius", e), a = ht(n, t + "scale", e), o = it(
6067
6067
  n,
6068
6068
  t + "displacement",
6069
6069
  e
@@ -6106,7 +6106,7 @@ function j(n, e, t) {
6106
6106
  const i = Q(n, e);
6107
6107
  if (i === void 0)
6108
6108
  return null;
6109
- const r = Z(i, V, t);
6109
+ const r = Z(i, K, t);
6110
6110
  return function(s) {
6111
6111
  return Oi(r(s), e);
6112
6112
  };
@@ -6552,13 +6552,13 @@ class qr extends ci {
6552
6552
  for (let T = R - 1; T >= 0; --T) {
6553
6553
  const F = z[T], q = F.layer;
6554
6554
  if (q.hasRenderer() && yi(F, c) && o.call(l, q)) {
6555
- const I = q.getRenderer(), E = q.getSource();
6556
- if (I && E) {
6555
+ const A = q.getRenderer(), E = q.getSource();
6556
+ if (A && E) {
6557
6557
  const p = E.getWrapX() ? _ : e, Ue = d.bind(
6558
6558
  null,
6559
6559
  F.managed
6560
6560
  );
6561
- B[0] = p[0] + w[v][0], B[1] = p[1] + w[v][1], h = I.forEachFeatureAtCoordinate(
6561
+ B[0] = p[0] + w[v][0], B[1] = p[1] + w[v][1], h = A.forEachFeatureAtCoordinate(
6562
6562
  B,
6563
6563
  t,
6564
6564
  i,
@@ -6657,7 +6657,7 @@ class jr extends qr {
6657
6657
  * @override
6658
6658
  */
6659
6659
  disposeInternal() {
6660
- K(this.fontChangeListenerKey_), this.element_.remove(), super.disposeInternal();
6660
+ V(this.fontChangeListenerKey_), this.element_.remove(), super.disposeInternal();
6661
6661
  }
6662
6662
  /**
6663
6663
  * Render.
@@ -6758,7 +6758,7 @@ class Jr extends nt {
6758
6758
  constructor(e) {
6759
6759
  super(), e = e || {}, this.on, this.once, this.un;
6760
6760
  const t = Qr(e);
6761
- this.renderComplete_ = !1, this.loaded_ = !0, this.boundHandleBrowserEvent_ = this.handleBrowserEvent.bind(this), this.maxTilesLoading_ = e.maxTilesLoading !== void 0 ? e.maxTilesLoading : 16, this.pixelRatio_ = e.pixelRatio !== void 0 ? e.pixelRatio : tn, this.postRenderTimeoutHandle_, this.animationDelayKey_, this.animationDelay_ = this.animationDelay_.bind(this), this.coordinateToPixelTransform_ = Kt(), this.pixelToCoordinateTransform_ = Kt(), this.frameIndex_ = 0, this.frameState_ = null, this.previousExtent_ = null, this.viewPropertyListenerKey_ = null, this.viewChangeListenerKey_ = null, this.layerGroupPropertyListenerKeys_ = null, le || (this.viewport_ = document.createElement("div"), this.viewport_.className = "ol-viewport" + ("ontouchstart" in window ? " ol-touch" : ""), this.viewport_.style.position = "relative", this.viewport_.style.overflow = "hidden", this.viewport_.style.width = "100%", this.viewport_.style.height = "100%", this.overlayContainer_ = document.createElement("div"), this.overlayContainer_.style.position = "absolute", this.overlayContainer_.style.zIndex = "0", this.overlayContainer_.style.width = "100%", this.overlayContainer_.style.height = "100%", this.overlayContainer_.style.pointerEvents = "none", this.overlayContainer_.className = "ol-overlaycontainer", this.viewport_.appendChild(this.overlayContainer_), this.overlayContainerStopEvent_ = document.createElement("div"), this.overlayContainerStopEvent_.style.position = "absolute", this.overlayContainerStopEvent_.style.zIndex = "0", this.overlayContainerStopEvent_.style.width = "100%", this.overlayContainerStopEvent_.style.height = "100%", this.overlayContainerStopEvent_.style.pointerEvents = "none", this.overlayContainerStopEvent_.className = "ol-overlaycontainer-stopevent", this.viewport_.appendChild(this.overlayContainerStopEvent_)), this.mapBrowserEventHandler_ = null, this.moveTolerance_ = e.moveTolerance, this.keyboardEventTarget_ = t.keyboardEventTarget, this.targetChangeHandlerKeys_ = null, this.targetElement_ = null, le || (this.resizeObserver_ = new ResizeObserver(() => this.updateSize())), this.controls = t.controls || (le ? new U() : vn()), this.interactions = t.interactions || (le ? new U() : Hn({
6761
+ this.renderComplete_ = !1, this.loaded_ = !0, this.boundHandleBrowserEvent_ = this.handleBrowserEvent.bind(this), this.maxTilesLoading_ = e.maxTilesLoading !== void 0 ? e.maxTilesLoading : 16, this.pixelRatio_ = e.pixelRatio !== void 0 ? e.pixelRatio : tn, this.postRenderTimeoutHandle_, this.animationDelayKey_, this.animationDelay_ = this.animationDelay_.bind(this), this.coordinateToPixelTransform_ = Vt(), this.pixelToCoordinateTransform_ = Vt(), this.frameIndex_ = 0, this.frameState_ = null, this.previousExtent_ = null, this.viewPropertyListenerKey_ = null, this.viewChangeListenerKey_ = null, this.layerGroupPropertyListenerKeys_ = null, le || (this.viewport_ = document.createElement("div"), this.viewport_.className = "ol-viewport" + ("ontouchstart" in window ? " ol-touch" : ""), this.viewport_.style.position = "relative", this.viewport_.style.overflow = "hidden", this.viewport_.style.width = "100%", this.viewport_.style.height = "100%", this.overlayContainer_ = document.createElement("div"), this.overlayContainer_.style.position = "absolute", this.overlayContainer_.style.zIndex = "0", this.overlayContainer_.style.width = "100%", this.overlayContainer_.style.height = "100%", this.overlayContainer_.style.pointerEvents = "none", this.overlayContainer_.className = "ol-overlaycontainer", this.viewport_.appendChild(this.overlayContainer_), this.overlayContainerStopEvent_ = document.createElement("div"), this.overlayContainerStopEvent_.style.position = "absolute", this.overlayContainerStopEvent_.style.zIndex = "0", this.overlayContainerStopEvent_.style.width = "100%", this.overlayContainerStopEvent_.style.height = "100%", this.overlayContainerStopEvent_.style.pointerEvents = "none", this.overlayContainerStopEvent_.className = "ol-overlaycontainer-stopevent", this.viewport_.appendChild(this.overlayContainerStopEvent_)), this.mapBrowserEventHandler_ = null, this.moveTolerance_ = e.moveTolerance, this.keyboardEventTarget_ = t.keyboardEventTarget, this.targetChangeHandlerKeys_ = null, this.targetElement_ = null, le || (this.resizeObserver_ = new ResizeObserver(() => this.updateSize())), this.controls = t.controls || (le ? new U() : vn()), this.interactions = t.interactions || (le ? new U() : Hn({
6762
6762
  onFocusOnly: !0
6763
6763
  })), this.overlays_ = t.overlays, this.overlayIdIndex_ = {}, this.renderer_ = null, this.postRenderFunctions_ = [], this.tileQueue_ = new mn(
6764
6764
  this.getTilePriority.bind(this),
@@ -7318,7 +7318,7 @@ class Jr extends nt {
7318
7318
  if (!this.frameState_)
7319
7319
  return;
7320
7320
  const t = e.originalEvent, i = t.type;
7321
- if (i === Et.POINTERDOWN || i === A.WHEEL || i === A.KEYDOWN) {
7321
+ if (i === Et.POINTERDOWN || i === I.WHEEL || i === I.KEYDOWN) {
7322
7322
  const r = this.getOwnerDocument(), s = this.viewport_.getRootNode ? this.viewport_.getRootNode() : r, a = (
7323
7323
  /** @type {Node} */
7324
7324
  t.target
@@ -7385,12 +7385,12 @@ class Jr extends nt {
7385
7385
  handleTargetChanged_() {
7386
7386
  if (this.mapBrowserEventHandler_) {
7387
7387
  for (let i = 0, r = this.targetChangeHandlerKeys_.length; i < r; ++i)
7388
- K(this.targetChangeHandlerKeys_[i]);
7388
+ V(this.targetChangeHandlerKeys_[i]);
7389
7389
  this.targetChangeHandlerKeys_ = null, this.viewport_.removeEventListener(
7390
- A.CONTEXTMENU,
7390
+ I.CONTEXTMENU,
7391
7391
  this.boundHandleBrowserEvent_
7392
7392
  ), this.viewport_.removeEventListener(
7393
- A.WHEEL,
7393
+ I.WHEEL,
7394
7394
  this.boundHandleBrowserEvent_
7395
7395
  ), this.mapBrowserEventHandler_.dispose(), this.mapBrowserEventHandler_ = null, this.viewport_.remove();
7396
7396
  }
@@ -7414,11 +7414,11 @@ class Jr extends nt {
7414
7414
  this.handleMapBrowserEvent.bind(this)
7415
7415
  );
7416
7416
  this.viewport_.addEventListener(
7417
- A.CONTEXTMENU,
7417
+ I.CONTEXTMENU,
7418
7418
  this.boundHandleBrowserEvent_,
7419
7419
  !1
7420
7420
  ), this.viewport_.addEventListener(
7421
- A.WHEEL,
7421
+ I.WHEEL,
7422
7422
  this.boundHandleBrowserEvent_,
7423
7423
  ui ? { passive: !1 } : !1
7424
7424
  );
@@ -7432,13 +7432,13 @@ class Jr extends nt {
7432
7432
  if (this.targetChangeHandlerKeys_ = [
7433
7433
  D(
7434
7434
  i,
7435
- A.KEYDOWN,
7435
+ I.KEYDOWN,
7436
7436
  this.handleBrowserEvent,
7437
7437
  this
7438
7438
  ),
7439
7439
  D(
7440
7440
  i,
7441
- A.KEYPRESS,
7441
+ I.KEYPRESS,
7442
7442
  this.handleBrowserEvent,
7443
7443
  this
7444
7444
  )
@@ -7466,7 +7466,7 @@ class Jr extends nt {
7466
7466
  * @private
7467
7467
  */
7468
7468
  handleViewChanged_() {
7469
- this.viewPropertyListenerKey_ && (K(this.viewPropertyListenerKey_), this.viewPropertyListenerKey_ = null), this.viewChangeListenerKey_ && (K(this.viewChangeListenerKey_), this.viewChangeListenerKey_ = null);
7469
+ this.viewPropertyListenerKey_ && (V(this.viewPropertyListenerKey_), this.viewPropertyListenerKey_ = null), this.viewChangeListenerKey_ && (V(this.viewChangeListenerKey_), this.viewChangeListenerKey_ = null);
7470
7470
  const e = this.getView();
7471
7471
  e && (this.updateViewportSize_(this.getSize()), this.viewPropertyListenerKey_ = D(
7472
7472
  e,
@@ -7475,7 +7475,7 @@ class Jr extends nt {
7475
7475
  this
7476
7476
  ), this.viewChangeListenerKey_ = D(
7477
7477
  e,
7478
- A.CHANGE,
7478
+ I.CHANGE,
7479
7479
  this.handleViewPropertyChanged_,
7480
7480
  this
7481
7481
  ), e.resolveConstraints(0)), this.render();
@@ -7484,11 +7484,11 @@ class Jr extends nt {
7484
7484
  * @private
7485
7485
  */
7486
7486
  handleLayerGroupChanged_() {
7487
- this.layerGroupPropertyListenerKeys_ && (this.layerGroupPropertyListenerKeys_.forEach(K), this.layerGroupPropertyListenerKeys_ = null);
7487
+ this.layerGroupPropertyListenerKeys_ && (this.layerGroupPropertyListenerKeys_.forEach(V), this.layerGroupPropertyListenerKeys_ = null);
7488
7488
  const e = this.getLayerGroup();
7489
7489
  e && (this.handleLayerAdd_(new ne("addlayer", e)), this.layerGroupPropertyListenerKeys_ = [
7490
7490
  D(e, et.PROPERTYCHANGE, this.render, this),
7491
- D(e, A.CHANGE, this.render, this),
7491
+ D(e, I.CHANGE, this.render, this),
7492
7492
  D(e, "addlayer", this.handleLayerAdd_, this),
7493
7493
  D(e, "removelayer", this.handleLayerRemove_, this)
7494
7494
  ]), this.render();
@@ -7765,53 +7765,53 @@ const Ls = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7765
7765
  default: Jr
7766
7766
  }, Symbol.toStringTag, { value: "Module" }));
7767
7767
  export {
7768
- pn as A,
7768
+ Pn as A,
7769
7769
  $r as B,
7770
- He as C,
7771
- _s as D,
7772
- ms as E,
7773
- re as F,
7774
- vs as G,
7775
- ws as H,
7770
+ U as C,
7771
+ as as D,
7772
+ hs as E,
7773
+ Ge as F,
7774
+ re as G,
7775
+ $ as H,
7776
7776
  Ot as I,
7777
- Es as J,
7778
- os as K,
7779
- wi as L,
7780
- Jr as M,
7777
+ He as J,
7778
+ Ee as K,
7779
+ Jr as L,
7780
+ b as M,
7781
7781
  ls as N,
7782
- Pn as O,
7782
+ at as O,
7783
7783
  We as P,
7784
- ps as Q,
7784
+ pn as Q,
7785
7785
  Un as R,
7786
7786
  ue as S,
7787
7787
  xt as T,
7788
- Rn as U,
7789
- hs as V,
7788
+ k as U,
7789
+ Ls as V,
7790
7790
  wn as Z,
7791
- U as a,
7792
- W as b,
7793
- at as c,
7794
- Ge as d,
7795
- Ht as e,
7796
- Ls as f,
7797
- ie as g,
7798
- b as h,
7799
- k as i,
7800
- $ as j,
7801
- as as k,
7802
- Dn as l,
7803
- qt as m,
7804
- Ee as n,
7805
- Cs as o,
7806
- Zt as p,
7807
- us as q,
7808
- jt as r,
7809
- ds as s,
7810
- fs as t,
7811
- Jt as u,
7812
- Dr as v,
7813
- Ir as w,
7814
- ys as x,
7815
- gs as y,
7816
- br as z
7791
+ W as a,
7792
+ qt as b,
7793
+ br as c,
7794
+ Zt as d,
7795
+ jt as e,
7796
+ ds as f,
7797
+ fs as g,
7798
+ Jt as h,
7799
+ Dr as i,
7800
+ Ar as j,
7801
+ gs as k,
7802
+ ys as l,
7803
+ ms as m,
7804
+ _s as n,
7805
+ us as o,
7806
+ ws as p,
7807
+ vs as q,
7808
+ ps as r,
7809
+ Es as s,
7810
+ wi as t,
7811
+ Dn as u,
7812
+ Rn as v,
7813
+ Ht as w,
7814
+ ie as x,
7815
+ os as y,
7816
+ Cs as z
7817
7817
  };