@ogc-maps/storybook-components 0.10.0 → 0.11.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 (44) hide show
  1. package/dist/FeatureTooltip-DxzN-jnp.js +49 -0
  2. package/dist/components/FeatureTooltip/FeatureTooltip.d.ts +12 -2
  3. package/dist/components/FeatureTooltip/FeatureTooltip.d.ts.map +1 -1
  4. package/dist/components/FeatureTooltip/index.js +1 -1
  5. package/dist/components/LayerEditor/LayerEditor.d.ts.map +1 -1
  6. package/dist/components/ResultsDrawer/ResultsDrawer.d.ts +15 -0
  7. package/dist/components/ResultsDrawer/ResultsDrawer.d.ts.map +1 -0
  8. package/dist/components/ResultsDrawer/index.d.ts +3 -0
  9. package/dist/components/ResultsDrawer/index.d.ts.map +1 -0
  10. package/dist/components/SelectionPanel/SelectionPanel.d.ts +15 -0
  11. package/dist/components/SelectionPanel/SelectionPanel.d.ts.map +1 -0
  12. package/dist/components/SelectionPanel/index.d.ts +3 -0
  13. package/dist/components/SelectionPanel/index.d.ts.map +1 -0
  14. package/dist/components/UIConfigEditor/UIConfigEditor.d.ts.map +1 -1
  15. package/dist/components/admin/CollapsibleSection.d.ts +1 -1
  16. package/dist/components/admin/CollapsibleSection.d.ts.map +1 -1
  17. package/dist/components/index.d.ts +6 -2
  18. package/dist/components/index.d.ts.map +1 -1
  19. package/dist/geo-CyDCsiW-.js +1116 -0
  20. package/dist/hooks/index.d.ts +4 -2
  21. package/dist/hooks/index.d.ts.map +1 -1
  22. package/dist/hooks/index.js +30 -25
  23. package/dist/hooks/useSelection.d.ts +14 -0
  24. package/dist/hooks/useSelection.d.ts.map +1 -0
  25. package/dist/{index-DA_GGs_P.js → index-BrphSJJ2.js} +113 -112
  26. package/dist/main.js +1289 -1047
  27. package/dist/schemas/config.d.ts +11 -0
  28. package/dist/schemas/config.d.ts.map +1 -1
  29. package/dist/schemas/index.js +1 -1
  30. package/dist/style.css +1 -1
  31. package/dist/types/index.js +1 -1
  32. package/dist/utils/boxDraw.d.ts +5 -0
  33. package/dist/utils/boxDraw.d.ts.map +1 -0
  34. package/dist/utils/cql2.d.ts +11 -0
  35. package/dist/utils/cql2.d.ts.map +1 -1
  36. package/dist/utils/index.d.ts +2 -0
  37. package/dist/utils/index.d.ts.map +1 -1
  38. package/dist/utils/ogcApi.d.ts +7 -0
  39. package/dist/utils/ogcApi.d.ts.map +1 -1
  40. package/dist/utils/selection.d.ts +12 -0
  41. package/dist/utils/selection.d.ts.map +1 -0
  42. package/package.json +1 -1
  43. package/dist/FeatureTooltip-Db1LgLQV.js +0 -47
  44. package/dist/geo-CIJBPCVe.js +0 -1038
@@ -130,10 +130,10 @@ class $ extends Error {
130
130
  else if (i.path.length === 0)
131
131
  n._errors.push(t(i));
132
132
  else {
133
- let o = n, f = 0;
134
- for (; f < i.path.length; ) {
135
- const p = i.path[f];
136
- f === i.path.length - 1 ? (o[p] = o[p] || { _errors: [] }, o[p]._errors.push(t(i))) : o[p] = o[p] || { _errors: [] }, o = o[p], f++;
133
+ let o = n, h = 0;
134
+ for (; h < i.path.length; ) {
135
+ const p = i.path[h];
136
+ h === i.path.length - 1 ? (o[p] = o[p] || { _errors: [] }, o[p]._errors.push(t(i))) : o[p] = o[p] || { _errors: [] }, o = o[p], h++;
137
137
  }
138
138
  }
139
139
  };
@@ -239,8 +239,8 @@ const Fe = (a) => {
239
239
  message: r.message
240
240
  };
241
241
  let o = "";
242
- const f = n.filter((p) => !!p).slice().reverse();
243
- for (const p of f)
242
+ const h = n.filter((p) => !!p).slice().reverse();
243
+ for (const p of h)
244
244
  o = p(i, { data: e, defaultError: o }).message;
245
245
  return {
246
246
  ...r,
@@ -310,10 +310,10 @@ class O {
310
310
  const m = Object.freeze({
311
311
  status: "aborted"
312
312
  }), G = (a) => ({ status: "dirty", value: a }), N = (a) => ({ status: "valid", value: a }), we = (a) => a.status === "aborted", Se = (a) => a.status === "dirty", W = (a) => a.status === "valid", Q = (a) => typeof Promise < "u" && a instanceof Promise;
313
- var h;
313
+ var f;
314
314
  (function(a) {
315
315
  a.errToObj = (e) => typeof e == "string" ? { message: e } : e || {}, a.toString = (e) => typeof e == "string" ? e : e == null ? void 0 : e.message;
316
- })(h || (h = {}));
316
+ })(f || (f = {}));
317
317
  class Z {
318
318
  constructor(e, t, n, r) {
319
319
  this._cachedPath = [], this.parent = e, this.data = t, this._path = n, this._key = r;
@@ -344,8 +344,8 @@ function g(a) {
344
344
  if (e && (t || n))
345
345
  throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);
346
346
  return e ? { errorMap: e, description: r } : { errorMap: (i, o) => {
347
- const { message: f } = a;
348
- return i.code === "invalid_enum_value" ? { message: f ?? o.defaultError } : typeof o.data > "u" ? { message: f ?? n ?? o.defaultError } : i.code !== "invalid_type" ? { message: o.defaultError } : { message: f ?? t ?? o.defaultError };
347
+ const { message: h } = a;
348
+ return i.code === "invalid_enum_value" ? { message: h ?? o.defaultError } : typeof o.data > "u" ? { message: h ?? n ?? o.defaultError } : i.code !== "invalid_type" ? { message: o.defaultError } : { message: h ?? t ?? o.defaultError };
349
349
  }, description: r };
350
350
  }
351
351
  class _ {
@@ -470,7 +470,7 @@ class _ {
470
470
  code: l.custom,
471
471
  ...n(r)
472
472
  });
473
- return typeof Promise < "u" && i instanceof Promise ? i.then((f) => f ? !0 : (o(), !1)) : i ? !0 : (o(), !1);
473
+ return typeof Promise < "u" && i instanceof Promise ? i.then((h) => h ? !0 : (o(), !1)) : i ? !0 : (o(), !1);
474
474
  });
475
475
  }
476
476
  refinement(e, t) {
@@ -762,7 +762,7 @@ class j extends _ {
762
762
  return this.refinement((r) => e.test(r), {
763
763
  validation: t,
764
764
  code: l.invalid_string,
765
- ...h.errToObj(n)
765
+ ...f.errToObj(n)
766
766
  });
767
767
  }
768
768
  _addCheck(e) {
@@ -772,46 +772,46 @@ class j extends _ {
772
772
  });
773
773
  }
774
774
  email(e) {
775
- return this._addCheck({ kind: "email", ...h.errToObj(e) });
775
+ return this._addCheck({ kind: "email", ...f.errToObj(e) });
776
776
  }
777
777
  url(e) {
778
- return this._addCheck({ kind: "url", ...h.errToObj(e) });
778
+ return this._addCheck({ kind: "url", ...f.errToObj(e) });
779
779
  }
780
780
  emoji(e) {
781
- return this._addCheck({ kind: "emoji", ...h.errToObj(e) });
781
+ return this._addCheck({ kind: "emoji", ...f.errToObj(e) });
782
782
  }
783
783
  uuid(e) {
784
- return this._addCheck({ kind: "uuid", ...h.errToObj(e) });
784
+ return this._addCheck({ kind: "uuid", ...f.errToObj(e) });
785
785
  }
786
786
  nanoid(e) {
787
- return this._addCheck({ kind: "nanoid", ...h.errToObj(e) });
787
+ return this._addCheck({ kind: "nanoid", ...f.errToObj(e) });
788
788
  }
789
789
  cuid(e) {
790
- return this._addCheck({ kind: "cuid", ...h.errToObj(e) });
790
+ return this._addCheck({ kind: "cuid", ...f.errToObj(e) });
791
791
  }
792
792
  cuid2(e) {
793
- return this._addCheck({ kind: "cuid2", ...h.errToObj(e) });
793
+ return this._addCheck({ kind: "cuid2", ...f.errToObj(e) });
794
794
  }
795
795
  ulid(e) {
796
- return this._addCheck({ kind: "ulid", ...h.errToObj(e) });
796
+ return this._addCheck({ kind: "ulid", ...f.errToObj(e) });
797
797
  }
798
798
  base64(e) {
799
- return this._addCheck({ kind: "base64", ...h.errToObj(e) });
799
+ return this._addCheck({ kind: "base64", ...f.errToObj(e) });
800
800
  }
801
801
  base64url(e) {
802
802
  return this._addCheck({
803
803
  kind: "base64url",
804
- ...h.errToObj(e)
804
+ ...f.errToObj(e)
805
805
  });
806
806
  }
807
807
  jwt(e) {
808
- return this._addCheck({ kind: "jwt", ...h.errToObj(e) });
808
+ return this._addCheck({ kind: "jwt", ...f.errToObj(e) });
809
809
  }
810
810
  ip(e) {
811
- return this._addCheck({ kind: "ip", ...h.errToObj(e) });
811
+ return this._addCheck({ kind: "ip", ...f.errToObj(e) });
812
812
  }
813
813
  cidr(e) {
814
- return this._addCheck({ kind: "cidr", ...h.errToObj(e) });
814
+ return this._addCheck({ kind: "cidr", ...f.errToObj(e) });
815
815
  }
816
816
  datetime(e) {
817
817
  return typeof e == "string" ? this._addCheck({
@@ -825,7 +825,7 @@ class j extends _ {
825
825
  precision: typeof (e == null ? void 0 : e.precision) > "u" ? null : e == null ? void 0 : e.precision,
826
826
  offset: (e == null ? void 0 : e.offset) ?? !1,
827
827
  local: (e == null ? void 0 : e.local) ?? !1,
828
- ...h.errToObj(e == null ? void 0 : e.message)
828
+ ...f.errToObj(e == null ? void 0 : e.message)
829
829
  });
830
830
  }
831
831
  date(e) {
@@ -839,17 +839,17 @@ class j extends _ {
839
839
  }) : this._addCheck({
840
840
  kind: "time",
841
841
  precision: typeof (e == null ? void 0 : e.precision) > "u" ? null : e == null ? void 0 : e.precision,
842
- ...h.errToObj(e == null ? void 0 : e.message)
842
+ ...f.errToObj(e == null ? void 0 : e.message)
843
843
  });
844
844
  }
845
845
  duration(e) {
846
- return this._addCheck({ kind: "duration", ...h.errToObj(e) });
846
+ return this._addCheck({ kind: "duration", ...f.errToObj(e) });
847
847
  }
848
848
  regex(e, t) {
849
849
  return this._addCheck({
850
850
  kind: "regex",
851
851
  regex: e,
852
- ...h.errToObj(t)
852
+ ...f.errToObj(t)
853
853
  });
854
854
  }
855
855
  includes(e, t) {
@@ -857,49 +857,49 @@ class j extends _ {
857
857
  kind: "includes",
858
858
  value: e,
859
859
  position: t == null ? void 0 : t.position,
860
- ...h.errToObj(t == null ? void 0 : t.message)
860
+ ...f.errToObj(t == null ? void 0 : t.message)
861
861
  });
862
862
  }
863
863
  startsWith(e, t) {
864
864
  return this._addCheck({
865
865
  kind: "startsWith",
866
866
  value: e,
867
- ...h.errToObj(t)
867
+ ...f.errToObj(t)
868
868
  });
869
869
  }
870
870
  endsWith(e, t) {
871
871
  return this._addCheck({
872
872
  kind: "endsWith",
873
873
  value: e,
874
- ...h.errToObj(t)
874
+ ...f.errToObj(t)
875
875
  });
876
876
  }
877
877
  min(e, t) {
878
878
  return this._addCheck({
879
879
  kind: "min",
880
880
  value: e,
881
- ...h.errToObj(t)
881
+ ...f.errToObj(t)
882
882
  });
883
883
  }
884
884
  max(e, t) {
885
885
  return this._addCheck({
886
886
  kind: "max",
887
887
  value: e,
888
- ...h.errToObj(t)
888
+ ...f.errToObj(t)
889
889
  });
890
890
  }
891
891
  length(e, t) {
892
892
  return this._addCheck({
893
893
  kind: "length",
894
894
  value: e,
895
- ...h.errToObj(t)
895
+ ...f.errToObj(t)
896
896
  });
897
897
  }
898
898
  /**
899
899
  * Equivalent to `.min(1)`
900
900
  */
901
901
  nonempty(e) {
902
- return this.min(1, h.errToObj(e));
902
+ return this.min(1, f.errToObj(e));
903
903
  }
904
904
  trim() {
905
905
  return new j({
@@ -1036,16 +1036,16 @@ class q extends _ {
1036
1036
  return { status: r.value, value: e.data };
1037
1037
  }
1038
1038
  gte(e, t) {
1039
- return this.setLimit("min", e, !0, h.toString(t));
1039
+ return this.setLimit("min", e, !0, f.toString(t));
1040
1040
  }
1041
1041
  gt(e, t) {
1042
- return this.setLimit("min", e, !1, h.toString(t));
1042
+ return this.setLimit("min", e, !1, f.toString(t));
1043
1043
  }
1044
1044
  lte(e, t) {
1045
- return this.setLimit("max", e, !0, h.toString(t));
1045
+ return this.setLimit("max", e, !0, f.toString(t));
1046
1046
  }
1047
1047
  lt(e, t) {
1048
- return this.setLimit("max", e, !1, h.toString(t));
1048
+ return this.setLimit("max", e, !1, f.toString(t));
1049
1049
  }
1050
1050
  setLimit(e, t, n, r) {
1051
1051
  return new q({
@@ -1056,7 +1056,7 @@ class q extends _ {
1056
1056
  kind: e,
1057
1057
  value: t,
1058
1058
  inclusive: n,
1059
- message: h.toString(r)
1059
+ message: f.toString(r)
1060
1060
  }
1061
1061
  ]
1062
1062
  });
@@ -1070,7 +1070,7 @@ class q extends _ {
1070
1070
  int(e) {
1071
1071
  return this._addCheck({
1072
1072
  kind: "int",
1073
- message: h.toString(e)
1073
+ message: f.toString(e)
1074
1074
  });
1075
1075
  }
1076
1076
  positive(e) {
@@ -1078,7 +1078,7 @@ class q extends _ {
1078
1078
  kind: "min",
1079
1079
  value: 0,
1080
1080
  inclusive: !1,
1081
- message: h.toString(e)
1081
+ message: f.toString(e)
1082
1082
  });
1083
1083
  }
1084
1084
  negative(e) {
@@ -1086,7 +1086,7 @@ class q extends _ {
1086
1086
  kind: "max",
1087
1087
  value: 0,
1088
1088
  inclusive: !1,
1089
- message: h.toString(e)
1089
+ message: f.toString(e)
1090
1090
  });
1091
1091
  }
1092
1092
  nonpositive(e) {
@@ -1094,7 +1094,7 @@ class q extends _ {
1094
1094
  kind: "max",
1095
1095
  value: 0,
1096
1096
  inclusive: !0,
1097
- message: h.toString(e)
1097
+ message: f.toString(e)
1098
1098
  });
1099
1099
  }
1100
1100
  nonnegative(e) {
@@ -1102,20 +1102,20 @@ class q extends _ {
1102
1102
  kind: "min",
1103
1103
  value: 0,
1104
1104
  inclusive: !0,
1105
- message: h.toString(e)
1105
+ message: f.toString(e)
1106
1106
  });
1107
1107
  }
1108
1108
  multipleOf(e, t) {
1109
1109
  return this._addCheck({
1110
1110
  kind: "multipleOf",
1111
1111
  value: e,
1112
- message: h.toString(t)
1112
+ message: f.toString(t)
1113
1113
  });
1114
1114
  }
1115
1115
  finite(e) {
1116
1116
  return this._addCheck({
1117
1117
  kind: "finite",
1118
- message: h.toString(e)
1118
+ message: f.toString(e)
1119
1119
  });
1120
1120
  }
1121
1121
  safe(e) {
@@ -1123,12 +1123,12 @@ class q extends _ {
1123
1123
  kind: "min",
1124
1124
  inclusive: !0,
1125
1125
  value: Number.MIN_SAFE_INTEGER,
1126
- message: h.toString(e)
1126
+ message: f.toString(e)
1127
1127
  })._addCheck({
1128
1128
  kind: "max",
1129
1129
  inclusive: !0,
1130
1130
  value: Number.MAX_SAFE_INTEGER,
1131
- message: h.toString(e)
1131
+ message: f.toString(e)
1132
1132
  });
1133
1133
  }
1134
1134
  get minValue() {
@@ -1206,16 +1206,16 @@ class Y extends _ {
1206
1206
  }), m;
1207
1207
  }
1208
1208
  gte(e, t) {
1209
- return this.setLimit("min", e, !0, h.toString(t));
1209
+ return this.setLimit("min", e, !0, f.toString(t));
1210
1210
  }
1211
1211
  gt(e, t) {
1212
- return this.setLimit("min", e, !1, h.toString(t));
1212
+ return this.setLimit("min", e, !1, f.toString(t));
1213
1213
  }
1214
1214
  lte(e, t) {
1215
- return this.setLimit("max", e, !0, h.toString(t));
1215
+ return this.setLimit("max", e, !0, f.toString(t));
1216
1216
  }
1217
1217
  lt(e, t) {
1218
- return this.setLimit("max", e, !1, h.toString(t));
1218
+ return this.setLimit("max", e, !1, f.toString(t));
1219
1219
  }
1220
1220
  setLimit(e, t, n, r) {
1221
1221
  return new Y({
@@ -1226,7 +1226,7 @@ class Y extends _ {
1226
1226
  kind: e,
1227
1227
  value: t,
1228
1228
  inclusive: n,
1229
- message: h.toString(r)
1229
+ message: f.toString(r)
1230
1230
  }
1231
1231
  ]
1232
1232
  });
@@ -1242,7 +1242,7 @@ class Y extends _ {
1242
1242
  kind: "min",
1243
1243
  value: BigInt(0),
1244
1244
  inclusive: !1,
1245
- message: h.toString(e)
1245
+ message: f.toString(e)
1246
1246
  });
1247
1247
  }
1248
1248
  negative(e) {
@@ -1250,7 +1250,7 @@ class Y extends _ {
1250
1250
  kind: "max",
1251
1251
  value: BigInt(0),
1252
1252
  inclusive: !1,
1253
- message: h.toString(e)
1253
+ message: f.toString(e)
1254
1254
  });
1255
1255
  }
1256
1256
  nonpositive(e) {
@@ -1258,7 +1258,7 @@ class Y extends _ {
1258
1258
  kind: "max",
1259
1259
  value: BigInt(0),
1260
1260
  inclusive: !0,
1261
- message: h.toString(e)
1261
+ message: f.toString(e)
1262
1262
  });
1263
1263
  }
1264
1264
  nonnegative(e) {
@@ -1266,14 +1266,14 @@ class Y extends _ {
1266
1266
  kind: "min",
1267
1267
  value: BigInt(0),
1268
1268
  inclusive: !0,
1269
- message: h.toString(e)
1269
+ message: f.toString(e)
1270
1270
  });
1271
1271
  }
1272
1272
  multipleOf(e, t) {
1273
1273
  return this._addCheck({
1274
1274
  kind: "multipleOf",
1275
1275
  value: e,
1276
- message: h.toString(t)
1276
+ message: f.toString(t)
1277
1277
  });
1278
1278
  }
1279
1279
  get minValue() {
@@ -1362,14 +1362,14 @@ class X extends _ {
1362
1362
  return this._addCheck({
1363
1363
  kind: "min",
1364
1364
  value: e.getTime(),
1365
- message: h.toString(t)
1365
+ message: f.toString(t)
1366
1366
  });
1367
1367
  }
1368
1368
  max(e, t) {
1369
1369
  return this._addCheck({
1370
1370
  kind: "max",
1371
1371
  value: e.getTime(),
1372
- message: h.toString(t)
1372
+ message: f.toString(t)
1373
1373
  });
1374
1374
  }
1375
1375
  get minDate() {
@@ -1408,7 +1408,7 @@ Ce.create = (a) => new Ce({
1408
1408
  typeName: y.ZodSymbol,
1409
1409
  ...g(a)
1410
1410
  });
1411
- class he extends _ {
1411
+ class fe extends _ {
1412
1412
  _parse(e) {
1413
1413
  if (this._getType(e) !== u.undefined) {
1414
1414
  const n = this._getOrReturnCtx(e);
@@ -1421,11 +1421,11 @@ class he extends _ {
1421
1421
  return N(e.data);
1422
1422
  }
1423
1423
  }
1424
- he.create = (a) => new he({
1424
+ fe.create = (a) => new fe({
1425
1425
  typeName: y.ZodUndefined,
1426
1426
  ...g(a)
1427
1427
  });
1428
- class fe extends _ {
1428
+ class he extends _ {
1429
1429
  _parse(e) {
1430
1430
  if (this._getType(e) !== u.null) {
1431
1431
  const n = this._getOrReturnCtx(e);
@@ -1438,7 +1438,7 @@ class fe extends _ {
1438
1438
  return N(e.data);
1439
1439
  }
1440
1440
  }
1441
- fe.create = (a) => new fe({
1441
+ he.create = (a) => new he({
1442
1442
  typeName: y.ZodNull,
1443
1443
  ...g(a)
1444
1444
  });
@@ -1543,19 +1543,19 @@ class A extends _ {
1543
1543
  min(e, t) {
1544
1544
  return new A({
1545
1545
  ...this._def,
1546
- minLength: { value: e, message: h.toString(t) }
1546
+ minLength: { value: e, message: f.toString(t) }
1547
1547
  });
1548
1548
  }
1549
1549
  max(e, t) {
1550
1550
  return new A({
1551
1551
  ...this._def,
1552
- maxLength: { value: e, message: h.toString(t) }
1552
+ maxLength: { value: e, message: f.toString(t) }
1553
1553
  });
1554
1554
  }
1555
1555
  length(e, t) {
1556
1556
  return new A({
1557
1557
  ...this._def,
1558
- exactLength: { value: e, message: h.toString(t) }
1558
+ exactLength: { value: e, message: f.toString(t) }
1559
1559
  });
1560
1560
  }
1561
1561
  nonempty(e) {
@@ -1609,10 +1609,10 @@ class T extends _ {
1609
1609
  if (!(this._def.catchall instanceof L && this._def.unknownKeys === "strip"))
1610
1610
  for (const p in r.data)
1611
1611
  i.includes(p) || o.push(p);
1612
- const f = [];
1612
+ const h = [];
1613
1613
  for (const p of i) {
1614
1614
  const b = s[p], J = r.data[p];
1615
- f.push({
1615
+ h.push({
1616
1616
  key: { status: "valid", value: p },
1617
1617
  value: b._parse(new Z(r, J, r.path, p)),
1618
1618
  alwaysSet: p in r.data
@@ -1622,7 +1622,7 @@ class T extends _ {
1622
1622
  const p = this._def.unknownKeys;
1623
1623
  if (p === "passthrough")
1624
1624
  for (const b of o)
1625
- f.push({
1625
+ h.push({
1626
1626
  key: { status: "valid", value: b },
1627
1627
  value: { status: "valid", value: r.data[b] }
1628
1628
  });
@@ -1636,7 +1636,7 @@ class T extends _ {
1636
1636
  const p = this._def.catchall;
1637
1637
  for (const b of o) {
1638
1638
  const J = r.data[b];
1639
- f.push({
1639
+ h.push({
1640
1640
  key: { status: "valid", value: b },
1641
1641
  value: p._parse(
1642
1642
  new Z(r, J, r.path, b)
@@ -1648,7 +1648,7 @@ class T extends _ {
1648
1648
  }
1649
1649
  return r.common.async ? Promise.resolve().then(async () => {
1650
1650
  const p = [];
1651
- for (const b of f) {
1651
+ for (const b of h) {
1652
1652
  const J = await b.key, Ve = await b.value;
1653
1653
  p.push({
1654
1654
  key: J,
@@ -1657,13 +1657,13 @@ class T extends _ {
1657
1657
  });
1658
1658
  }
1659
1659
  return p;
1660
- }).then((p) => O.mergeObjectSync(n, p)) : O.mergeObjectSync(n, f);
1660
+ }).then((p) => O.mergeObjectSync(n, p)) : O.mergeObjectSync(n, h);
1661
1661
  }
1662
1662
  get shape() {
1663
1663
  return this._def.shape();
1664
1664
  }
1665
1665
  strict(e) {
1666
- return h.errToObj, new T({
1666
+ return f.errToObj, new T({
1667
1667
  ...this._def,
1668
1668
  unknownKeys: "strict",
1669
1669
  ...e !== void 0 ? {
@@ -1671,7 +1671,7 @@ class T extends _ {
1671
1671
  var s, i;
1672
1672
  const r = ((i = (s = this._def).errorMap) == null ? void 0 : i.call(s, t, n).message) ?? n.defaultError;
1673
1673
  return t.code === "unrecognized_keys" ? {
1674
- message: h.errToObj(e).message ?? r
1674
+ message: f.errToObj(e).message ?? r
1675
1675
  } : {
1676
1676
  message: r
1677
1677
  };
@@ -1912,7 +1912,7 @@ class K extends _ {
1912
1912
  {
1913
1913
  let s;
1914
1914
  const i = [];
1915
- for (const f of n) {
1915
+ for (const h of n) {
1916
1916
  const p = {
1917
1917
  ...t,
1918
1918
  common: {
@@ -1920,7 +1920,7 @@ class K extends _ {
1920
1920
  issues: []
1921
1921
  },
1922
1922
  parent: null
1923
- }, b = f._parseSync({
1923
+ }, b = h._parseSync({
1924
1924
  data: t.data,
1925
1925
  path: t.path,
1926
1926
  parent: p
@@ -1931,7 +1931,7 @@ class K extends _ {
1931
1931
  }
1932
1932
  if (s)
1933
1933
  return t.common.issues.push(...s.ctx.common.issues), s.result;
1934
- const o = i.map((f) => new $(f));
1934
+ const o = i.map((h) => new $(h));
1935
1935
  return c(t, {
1936
1936
  code: l.invalid_union,
1937
1937
  unionErrors: o
@@ -1947,7 +1947,7 @@ K.create = (a, e) => new K({
1947
1947
  typeName: y.ZodUnion,
1948
1948
  ...g(e)
1949
1949
  });
1950
- const R = (a) => a instanceof ye ? R(a.schema) : a instanceof P ? R(a.innerType()) : a instanceof ae ? [a.value] : a instanceof D ? a.options : a instanceof ge ? k.objectValues(a.enum) : a instanceof re ? R(a._def.innerType) : a instanceof he ? [void 0] : a instanceof fe ? [null] : a instanceof I ? [void 0, ...R(a.unwrap())] : a instanceof F ? [null, ...R(a.unwrap())] : a instanceof Ee || a instanceof ie ? R(a.unwrap()) : a instanceof se ? R(a._def.innerType) : [];
1950
+ const R = (a) => a instanceof ye ? R(a.schema) : a instanceof P ? R(a.innerType()) : a instanceof ae ? [a.value] : a instanceof D ? a.options : a instanceof ge ? k.objectValues(a.enum) : a instanceof re ? R(a._def.innerType) : a instanceof fe ? [void 0] : a instanceof he ? [null] : a instanceof I ? [void 0, ...R(a.unwrap())] : a instanceof F ? [null, ...R(a.unwrap())] : a instanceof Ee || a instanceof ie ? R(a.unwrap()) : a instanceof se ? R(a._def.innerType) : [];
1951
1951
  class _e extends _ {
1952
1952
  _parse(e) {
1953
1953
  const { ctx: t } = this._processInputParams(e);
@@ -2017,10 +2017,10 @@ function me(a, e) {
2017
2017
  if (t === u.object && n === u.object) {
2018
2018
  const r = k.objectKeys(e), s = k.objectKeys(a).filter((o) => r.indexOf(o) !== -1), i = { ...a, ...e };
2019
2019
  for (const o of s) {
2020
- const f = me(a[o], e[o]);
2021
- if (!f.valid)
2020
+ const h = me(a[o], e[o]);
2021
+ if (!h.valid)
2022
2022
  return { valid: !1 };
2023
- i[o] = f.data;
2023
+ i[o] = h.data;
2024
2024
  }
2025
2025
  return { valid: !0, data: i };
2026
2026
  } else if (t === u.array && n === u.array) {
@@ -2028,10 +2028,10 @@ function me(a, e) {
2028
2028
  return { valid: !1 };
2029
2029
  const r = [];
2030
2030
  for (let s = 0; s < a.length; s++) {
2031
- const i = a[s], o = e[s], f = me(i, o);
2032
- if (!f.valid)
2031
+ const i = a[s], o = e[s], h = me(i, o);
2032
+ if (!h.valid)
2033
2033
  return { valid: !1 };
2034
- r.push(f.data);
2034
+ r.push(h.data);
2035
2035
  }
2036
2036
  return { valid: !0, data: r };
2037
2037
  } else return t === u.date && n === u.date && +a == +e ? { valid: !0, data: a } : { valid: !1 };
@@ -2099,8 +2099,8 @@ class z extends _ {
2099
2099
  type: "array"
2100
2100
  }), t.dirty());
2101
2101
  const s = [...n.data].map((i, o) => {
2102
- const f = this._def.items[o] || this._def.rest;
2103
- return f ? f._parse(new Z(n, i, n.path, o)) : null;
2102
+ const h = this._def.items[o] || this._def.rest;
2103
+ return h ? h._parse(new Z(n, i, n.path, o)) : null;
2104
2104
  }).filter((i) => !!i);
2105
2105
  return n.common.async ? Promise.all(s).then((i) => O.mergeArray(t, i)) : O.mergeArray(t, s);
2106
2106
  }
@@ -2180,15 +2180,15 @@ class Ae extends _ {
2180
2180
  expected: u.map,
2181
2181
  received: n.parsedType
2182
2182
  }), m;
2183
- const r = this._def.keyType, s = this._def.valueType, i = [...n.data.entries()].map(([o, f], p) => ({
2183
+ const r = this._def.keyType, s = this._def.valueType, i = [...n.data.entries()].map(([o, h], p) => ({
2184
2184
  key: r._parse(new Z(n, o, n.path, [p, "key"])),
2185
- value: s._parse(new Z(n, f, n.path, [p, "value"]))
2185
+ value: s._parse(new Z(n, h, n.path, [p, "value"]))
2186
2186
  }));
2187
2187
  if (n.common.async) {
2188
2188
  const o = /* @__PURE__ */ new Map();
2189
2189
  return Promise.resolve().then(async () => {
2190
- for (const f of i) {
2191
- const p = await f.key, b = await f.value;
2190
+ for (const h of i) {
2191
+ const p = await h.key, b = await h.value;
2192
2192
  if (p.status === "aborted" || b.status === "aborted")
2193
2193
  return m;
2194
2194
  (p.status === "dirty" || b.status === "dirty") && t.dirty(), o.set(p.value, b.value);
@@ -2197,8 +2197,8 @@ class Ae extends _ {
2197
2197
  });
2198
2198
  } else {
2199
2199
  const o = /* @__PURE__ */ new Map();
2200
- for (const f of i) {
2201
- const p = f.key, b = f.value;
2200
+ for (const h of i) {
2201
+ const p = h.key, b = h.value;
2202
2202
  if (p.status === "aborted" || b.status === "aborted")
2203
2203
  return m;
2204
2204
  (p.status === "dirty" || b.status === "dirty") && t.dirty(), o.set(p.value, b.value);
@@ -2239,28 +2239,28 @@ class H extends _ {
2239
2239
  message: r.maxSize.message
2240
2240
  }), t.dirty());
2241
2241
  const s = this._def.valueType;
2242
- function i(f) {
2242
+ function i(h) {
2243
2243
  const p = /* @__PURE__ */ new Set();
2244
- for (const b of f) {
2244
+ for (const b of h) {
2245
2245
  if (b.status === "aborted")
2246
2246
  return m;
2247
2247
  b.status === "dirty" && t.dirty(), p.add(b.value);
2248
2248
  }
2249
2249
  return { status: t.value, value: p };
2250
2250
  }
2251
- const o = [...n.data.values()].map((f, p) => s._parse(new Z(n, f, n.path, p)));
2252
- return n.common.async ? Promise.all(o).then((f) => i(f)) : i(o);
2251
+ const o = [...n.data.values()].map((h, p) => s._parse(new Z(n, h, n.path, p)));
2252
+ return n.common.async ? Promise.all(o).then((h) => i(h)) : i(o);
2253
2253
  }
2254
2254
  min(e, t) {
2255
2255
  return new H({
2256
2256
  ...this._def,
2257
- minSize: { value: e, message: h.toString(t) }
2257
+ minSize: { value: e, message: f.toString(t) }
2258
2258
  });
2259
2259
  }
2260
2260
  max(e, t) {
2261
2261
  return new H({
2262
2262
  ...this._def,
2263
- maxSize: { value: e, message: h.toString(t) }
2263
+ maxSize: { value: e, message: f.toString(t) }
2264
2264
  });
2265
2265
  }
2266
2266
  size(e, t) {
@@ -2450,12 +2450,12 @@ class P extends _ {
2450
2450
  return Promise.resolve(i).then(async (o) => {
2451
2451
  if (t.value === "aborted")
2452
2452
  return m;
2453
- const f = await this._def.schema._parseAsync({
2453
+ const h = await this._def.schema._parseAsync({
2454
2454
  data: o,
2455
2455
  path: n.path,
2456
2456
  parent: n
2457
2457
  });
2458
- return f.status === "aborted" ? m : f.status === "dirty" || t.value === "dirty" ? G(f.value) : f;
2458
+ return h.status === "aborted" ? m : h.status === "dirty" || t.value === "dirty" ? G(h.value) : h;
2459
2459
  });
2460
2460
  {
2461
2461
  if (t.value === "aborted")
@@ -2470,10 +2470,10 @@ class P extends _ {
2470
2470
  }
2471
2471
  if (r.type === "refinement") {
2472
2472
  const i = (o) => {
2473
- const f = r.refinement(o, s);
2473
+ const h = r.refinement(o, s);
2474
2474
  if (n.common.async)
2475
- return Promise.resolve(f);
2476
- if (f instanceof Promise)
2475
+ return Promise.resolve(h);
2476
+ if (h instanceof Promise)
2477
2477
  throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");
2478
2478
  return o;
2479
2479
  };
@@ -2705,14 +2705,14 @@ const E = z.create, Me = te.create, V = ae.create, w = D.create;
2705
2705
  ne.create;
2706
2706
  I.create;
2707
2707
  F.create;
2708
- const ht = P.createWithPreprocess, oe = w([
2708
+ const ft = P.createWithPreprocess, oe = w([
2709
2709
  "Point",
2710
2710
  "MultiPoint",
2711
2711
  "LineString",
2712
2712
  "MultiLineString",
2713
2713
  "Polygon",
2714
2714
  "MultiPolygon"
2715
- ]), Le = C(ut()), ke = (a) => xe([v(), Le]).default(a), U = () => xe([v(), Le]).optional(), ft = S({
2715
+ ]), Le = C(ut()), ke = (a) => xe([v(), Le]).default(a), U = () => xe([v(), Le]).optional(), ht = S({
2716
2716
  latitude: d().min(-90).max(90),
2717
2717
  longitude: d().min(-180).max(180),
2718
2718
  zoom: d().min(0).max(24),
@@ -2916,7 +2916,7 @@ const ht = P.createWithPreprocess, oe = w([
2916
2916
  filters: Pt.optional(),
2917
2917
  search: $t.optional(),
2918
2918
  propertyDisplay: Lt.optional()
2919
- }, zt = ht(
2919
+ }, zt = ft(
2920
2920
  (a) => {
2921
2921
  if (a && typeof a == "object" && "style" in a && !("styles" in a)) {
2922
2922
  const { style: e, ...t } = a;
@@ -2943,14 +2943,15 @@ const ht = P.createWithPreprocess, oe = w([
2943
2943
  showFeatureTooltip: x().default(!0),
2944
2944
  showExportButton: x().default(!0),
2945
2945
  showLegendOpacity: x().default(!1),
2946
- showMeasureTool: x().default(!1)
2946
+ showMeasureTool: x().default(!1),
2947
+ showSelectionTool: x().default(!1)
2947
2948
  }), Pe = S({
2948
2949
  sources: C(pt).min(1),
2949
2950
  layers: C(zt),
2950
2951
  basemaps: C(Dt).min(1),
2951
2952
  sprites: C(Ft).optional(),
2952
2953
  ui: Bt.default({}),
2953
- initialView: ft
2954
+ initialView: ht
2954
2955
  });
2955
2956
  function Ut(a) {
2956
2957
  return Pe.parse(a);
@@ -2972,7 +2973,7 @@ export {
2972
2973
  $t as S,
2973
2974
  Zt as T,
2974
2975
  Bt as U,
2975
- ft as V,
2976
+ ht as V,
2976
2977
  gt as a,
2977
2978
  Tt as b,
2978
2979
  mt as c,