@neshan-maps-platform/react-openlayers 3.0.1 → 3.0.2-alpha.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.
@@ -1,676 +1,288 @@
1
- import qe, { forwardRef as wt, useRef as Ge, useState as We, useImperativeHandle as Pt, useEffect as xt } from "react";
2
- import { Map as Tt, View as St } from "@neshan-maps-platform/ol";
3
- var de = { exports: {} }, Y = {};
1
+ import ge, { forwardRef as Pe, useRef as te, useState as re, useImperativeHandle as Re, useEffect as we } from "react";
2
+ import { Map as Te, View as be } from "@neshan-maps-platform/ol";
3
+ var G = { exports: {} }, O = {};
4
4
  /**
5
5
  * @license React
6
- * react-jsx-runtime.production.min.js
6
+ * react-jsx-runtime.production.js
7
7
  *
8
- * Copyright (c) Facebook, Inc. and its affiliates.
8
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
9
9
  *
10
10
  * This source code is licensed under the MIT license found in the
11
11
  * LICENSE file in the root directory of this source tree.
12
12
  */
13
- var Ne;
14
- function Ct() {
15
- if (Ne)
16
- return Y;
17
- Ne = 1;
18
- var a = qe, r = Symbol.for("react.element"), o = Symbol.for("react.fragment"), u = Object.prototype.hasOwnProperty, f = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, _ = { key: !0, ref: !0, __self: !0, __source: !0 };
19
- function j(x, p, C) {
20
- var y, w = {}, b = null, P = null;
21
- C !== void 0 && (b = "" + C), p.key !== void 0 && (b = "" + p.key), p.ref !== void 0 && (P = p.ref);
22
- for (y in p)
23
- u.call(p, y) && !_.hasOwnProperty(y) && (w[y] = p[y]);
24
- if (x && x.defaultProps)
25
- for (y in p = x.defaultProps, p)
26
- w[y] === void 0 && (w[y] = p[y]);
27
- return { $$typeof: r, type: x, key: b, ref: P, props: w, _owner: f.current };
13
+ var ne;
14
+ function ve() {
15
+ if (ne) return O;
16
+ ne = 1;
17
+ var r = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
18
+ function n(s, a, i) {
19
+ var h = null;
20
+ if (i !== void 0 && (h = "" + i), a.key !== void 0 && (h = "" + a.key), "key" in a) {
21
+ i = {};
22
+ for (var g in a)
23
+ g !== "key" && (i[g] = a[g]);
24
+ } else i = a;
25
+ return a = i.ref, {
26
+ $$typeof: r,
27
+ type: s,
28
+ key: h,
29
+ ref: a !== void 0 ? a : null,
30
+ props: i
31
+ };
28
32
  }
29
- return Y.Fragment = o, Y.jsx = j, Y.jsxs = j, Y;
33
+ return O.Fragment = t, O.jsx = n, O.jsxs = n, O;
30
34
  }
31
- var L = {};
35
+ var A = {};
32
36
  /**
33
37
  * @license React
34
38
  * react-jsx-runtime.development.js
35
39
  *
36
- * Copyright (c) Facebook, Inc. and its affiliates.
40
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
37
41
  *
38
42
  * This source code is licensed under the MIT license found in the
39
43
  * LICENSE file in the root directory of this source tree.
40
44
  */
41
- var Ue;
42
- function Ot() {
43
- return Ue || (Ue = 1, process.env.NODE_ENV !== "production" && function() {
44
- var a = qe, r = Symbol.for("react.element"), o = Symbol.for("react.portal"), u = Symbol.for("react.fragment"), f = Symbol.for("react.strict_mode"), _ = Symbol.for("react.profiler"), j = Symbol.for("react.provider"), x = Symbol.for("react.context"), p = Symbol.for("react.forward_ref"), C = Symbol.for("react.suspense"), y = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), P = Symbol.for("react.offscreen"), G = Symbol.iterator, ee = "@@iterator";
45
- function W(e) {
46
- if (e === null || typeof e != "object")
47
- return null;
48
- var t = G && e[G] || e[ee];
49
- return typeof t == "function" ? t : null;
50
- }
51
- var O = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
52
- function m(e) {
53
- {
54
- for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), i = 1; i < t; i++)
55
- n[i - 1] = arguments[i];
56
- te("error", e, n);
57
- }
58
- }
59
- function te(e, t, n) {
60
- {
61
- var i = O.ReactDebugCurrentFrame, c = i.getStackAddendum();
62
- c !== "" && (t += "%s", n = n.concat([c]));
63
- var d = n.map(function(s) {
64
- return String(s);
65
- });
66
- d.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, d);
67
- }
68
- }
69
- var re = !1, ne = !1, g = !1, z = !1, B = !1, ve;
70
- ve = Symbol.for("react.module.reference");
71
- function He(e) {
72
- return !!(typeof e == "string" || typeof e == "function" || e === u || e === _ || B || e === f || e === C || e === y || z || e === P || re || ne || g || typeof e == "object" && e !== null && (e.$$typeof === b || e.$$typeof === w || e.$$typeof === j || e.$$typeof === x || e.$$typeof === p || // This needs to include all possible module reference object
73
- // types supported by any Flight configuration anywhere since
74
- // we don't know which Flight build this will end up being used
75
- // with.
76
- e.$$typeof === ve || e.getModuleId !== void 0));
77
- }
78
- function Ke(e, t, n) {
79
- var i = e.displayName;
80
- if (i)
81
- return i;
82
- var c = t.displayName || t.name || "";
83
- return c !== "" ? n + "(" + c + ")" : n;
84
- }
85
- function ge(e) {
86
- return e.displayName || "Context";
87
- }
88
- function T(e) {
89
- if (e == null)
90
- return null;
91
- if (typeof e.tag == "number" && m("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
92
- return e.displayName || e.name || null;
93
- if (typeof e == "string")
94
- return e;
45
+ var oe;
46
+ function Se() {
47
+ return oe || (oe = 1, process.env.NODE_ENV !== "production" && function() {
48
+ function r(e) {
49
+ if (e == null) return null;
50
+ if (typeof e == "function")
51
+ return e.$$typeof === me ? null : e.displayName || e.name || null;
52
+ if (typeof e == "string") return e;
95
53
  switch (e) {
96
- case u:
54
+ case v:
97
55
  return "Fragment";
98
- case o:
99
- return "Portal";
100
- case _:
56
+ case Y:
101
57
  return "Profiler";
102
- case f:
58
+ case S:
103
59
  return "StrictMode";
104
- case C:
60
+ case W:
105
61
  return "Suspense";
106
- case y:
62
+ case c:
107
63
  return "SuspenseList";
64
+ case Ee:
65
+ return "Activity";
108
66
  }
109
67
  if (typeof e == "object")
110
- switch (e.$$typeof) {
111
- case x:
112
- var t = e;
113
- return ge(t) + ".Consumer";
68
+ switch (typeof e.tag == "number" && console.error(
69
+ "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
70
+ ), e.$$typeof) {
71
+ case N:
72
+ return "Portal";
73
+ case U:
74
+ return (e.displayName || "Context") + ".Provider";
114
75
  case j:
115
- var n = e;
116
- return ge(n._context) + ".Provider";
117
- case p:
118
- return Ke(e, e.render, "ForwardRef");
119
- case w:
120
- var i = e.displayName || null;
121
- return i !== null ? i : T(e.type) || "Memo";
122
- case b: {
123
- var c = e, d = c._payload, s = c._init;
76
+ return (e._context.displayName || "Context") + ".Consumer";
77
+ case D:
78
+ var o = e.render;
79
+ return e = e.displayName, e || (e = o.displayName || o.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
80
+ case I:
81
+ return o = e.displayName || null, o !== null ? o : r(e.type) || "Memo";
82
+ case x:
83
+ o = e._payload, e = e._init;
124
84
  try {
125
- return T(s(d));
85
+ return r(e(o));
126
86
  } catch {
127
- return null;
128
87
  }
129
- }
130
88
  }
131
89
  return null;
132
90
  }
133
- var F = Object.assign, N = 0, he, pe, me, ye, Ee, be, Re;
134
- function we() {
135
- }
136
- we.__reactDisabledLog = !0;
137
- function Ze() {
138
- {
139
- if (N === 0) {
140
- he = console.log, pe = console.info, me = console.warn, ye = console.error, Ee = console.group, be = console.groupCollapsed, Re = console.groupEnd;
141
- var e = {
142
- configurable: !0,
143
- enumerable: !0,
144
- value: we,
145
- writable: !0
146
- };
147
- Object.defineProperties(console, {
148
- info: e,
149
- log: e,
150
- warn: e,
151
- error: e,
152
- group: e,
153
- groupCollapsed: e,
154
- groupEnd: e
155
- });
156
- }
157
- N++;
158
- }
159
- }
160
- function Qe() {
161
- {
162
- if (N--, N === 0) {
163
- var e = {
164
- configurable: !0,
165
- enumerable: !0,
166
- writable: !0
167
- };
168
- Object.defineProperties(console, {
169
- log: F({}, e, {
170
- value: he
171
- }),
172
- info: F({}, e, {
173
- value: pe
174
- }),
175
- warn: F({}, e, {
176
- value: me
177
- }),
178
- error: F({}, e, {
179
- value: ye
180
- }),
181
- group: F({}, e, {
182
- value: Ee
183
- }),
184
- groupCollapsed: F({}, e, {
185
- value: be
186
- }),
187
- groupEnd: F({}, e, {
188
- value: Re
189
- })
190
- });
191
- }
192
- N < 0 && m("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
193
- }
194
- }
195
- var ae = O.ReactCurrentDispatcher, oe;
196
- function q(e, t, n) {
197
- {
198
- if (oe === void 0)
199
- try {
200
- throw Error();
201
- } catch (c) {
202
- var i = c.stack.trim().match(/\n( *(at )?)/);
203
- oe = i && i[1] || "";
204
- }
205
- return `
206
- ` + oe + e;
207
- }
208
- }
209
- var ie = !1, X;
210
- {
211
- var et = typeof WeakMap == "function" ? WeakMap : Map;
212
- X = new et();
91
+ function t(e) {
92
+ return "" + e;
213
93
  }
214
- function Pe(e, t) {
215
- if (!e || ie)
216
- return "";
217
- {
218
- var n = X.get(e);
219
- if (n !== void 0)
220
- return n;
221
- }
222
- var i;
223
- ie = !0;
224
- var c = Error.prepareStackTrace;
225
- Error.prepareStackTrace = void 0;
226
- var d;
227
- d = ae.current, ae.current = null, Ze();
94
+ function n(e) {
228
95
  try {
229
- if (t) {
230
- var s = function() {
231
- throw Error();
232
- };
233
- if (Object.defineProperty(s.prototype, "props", {
234
- set: function() {
235
- throw Error();
236
- }
237
- }), typeof Reflect == "object" && Reflect.construct) {
238
- try {
239
- Reflect.construct(s, []);
240
- } catch (S) {
241
- i = S;
242
- }
243
- Reflect.construct(e, [], s);
244
- } else {
245
- try {
246
- s.call();
247
- } catch (S) {
248
- i = S;
249
- }
250
- e.call(s.prototype);
251
- }
252
- } else {
253
- try {
254
- throw Error();
255
- } catch (S) {
256
- i = S;
257
- }
258
- e();
259
- }
260
- } catch (S) {
261
- if (S && i && typeof S.stack == "string") {
262
- for (var l = S.stack.split(`
263
- `), E = i.stack.split(`
264
- `), v = l.length - 1, h = E.length - 1; v >= 1 && h >= 0 && l[v] !== E[h]; )
265
- h--;
266
- for (; v >= 1 && h >= 0; v--, h--)
267
- if (l[v] !== E[h]) {
268
- if (v !== 1 || h !== 1)
269
- do
270
- if (v--, h--, h < 0 || l[v] !== E[h]) {
271
- var R = `
272
- ` + l[v].replace(" at new ", " at ");
273
- return e.displayName && R.includes("<anonymous>") && (R = R.replace("<anonymous>", e.displayName)), typeof e == "function" && X.set(e, R), R;
274
- }
275
- while (v >= 1 && h >= 0);
276
- break;
277
- }
278
- }
279
- } finally {
280
- ie = !1, ae.current = d, Qe(), Error.prepareStackTrace = c;
281
- }
282
- var A = e ? e.displayName || e.name : "", Me = A ? q(A) : "";
283
- return typeof e == "function" && X.set(e, Me), Me;
284
- }
285
- function tt(e, t, n) {
286
- return Pe(e, !1);
287
- }
288
- function rt(e) {
289
- var t = e.prototype;
290
- return !!(t && t.isReactComponent);
291
- }
292
- function J(e, t, n) {
293
- if (e == null)
294
- return "";
295
- if (typeof e == "function")
296
- return Pe(e, rt(e));
297
- if (typeof e == "string")
298
- return q(e);
299
- switch (e) {
300
- case C:
301
- return q("Suspense");
302
- case y:
303
- return q("SuspenseList");
304
- }
305
- if (typeof e == "object")
306
- switch (e.$$typeof) {
307
- case p:
308
- return tt(e.render);
309
- case w:
310
- return J(e.type, t, n);
311
- case b: {
312
- var i = e, c = i._payload, d = i._init;
313
- try {
314
- return J(d(c), t, n);
315
- } catch {
316
- }
317
- }
318
- }
319
- return "";
320
- }
321
- var H = Object.prototype.hasOwnProperty, xe = {}, Te = O.ReactDebugCurrentFrame;
322
- function K(e) {
323
- if (e) {
324
- var t = e._owner, n = J(e.type, e._source, t ? t.type : null);
325
- Te.setExtraStackFrame(n);
326
- } else
327
- Te.setExtraStackFrame(null);
328
- }
329
- function nt(e, t, n, i, c) {
330
- {
331
- var d = Function.call.bind(H);
332
- for (var s in e)
333
- if (d(e, s)) {
334
- var l = void 0;
335
- try {
336
- if (typeof e[s] != "function") {
337
- var E = Error((i || "React class") + ": " + n + " type `" + s + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[s] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
338
- throw E.name = "Invariant Violation", E;
339
- }
340
- l = e[s](t, s, i, n, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
341
- } catch (v) {
342
- l = v;
343
- }
344
- l && !(l instanceof Error) && (K(c), m("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", i || "React class", n, s, typeof l), K(null)), l instanceof Error && !(l.message in xe) && (xe[l.message] = !0, K(c), m("Failed %s type: %s", n, l.message), K(null));
345
- }
96
+ t(e);
97
+ var o = !1;
98
+ } catch {
99
+ o = !0;
346
100
  }
347
- }
348
- var at = Array.isArray;
349
- function le(e) {
350
- return at(e);
351
- }
352
- function ot(e) {
353
- {
354
- var t = typeof Symbol == "function" && Symbol.toStringTag, n = t && e[Symbol.toStringTag] || e.constructor.name || "Object";
355
- return n;
101
+ if (o) {
102
+ o = console;
103
+ var l = o.error, u = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
104
+ return l.call(
105
+ o,
106
+ "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
107
+ u
108
+ ), t(e);
356
109
  }
357
110
  }
358
- function it(e) {
111
+ function s(e) {
112
+ if (e === v) return "<>";
113
+ if (typeof e == "object" && e !== null && e.$$typeof === x)
114
+ return "<...>";
359
115
  try {
360
- return Se(e), !1;
116
+ var o = r(e);
117
+ return o ? "<" + o + ">" : "<...>";
361
118
  } catch {
362
- return !0;
119
+ return "<...>";
363
120
  }
364
121
  }
365
- function Se(e) {
366
- return "" + e;
367
- }
368
- function Ce(e) {
369
- if (it(e))
370
- return m("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ot(e)), Se(e);
122
+ function a() {
123
+ var e = X.A;
124
+ return e === null ? null : e.getOwner();
371
125
  }
372
- var U = O.ReactCurrentOwner, lt = {
373
- key: !0,
374
- ref: !0,
375
- __self: !0,
376
- __source: !0
377
- }, Oe, je, se;
378
- se = {};
379
- function st(e) {
380
- if (H.call(e, "ref")) {
381
- var t = Object.getOwnPropertyDescriptor(e, "ref").get;
382
- if (t && t.isReactWarning)
383
- return !1;
384
- }
385
- return e.ref !== void 0;
126
+ function i() {
127
+ return Error("react-stack-top-frame");
386
128
  }
387
- function ut(e) {
388
- if (H.call(e, "key")) {
389
- var t = Object.getOwnPropertyDescriptor(e, "key").get;
390
- if (t && t.isReactWarning)
391
- return !1;
129
+ function h(e) {
130
+ if (B.call(e, "key")) {
131
+ var o = Object.getOwnPropertyDescriptor(e, "key").get;
132
+ if (o && o.isReactWarning) return !1;
392
133
  }
393
134
  return e.key !== void 0;
394
135
  }
395
- function ct(e, t) {
396
- if (typeof e.ref == "string" && U.current && t && U.current.stateNode !== t) {
397
- var n = T(U.current.type);
398
- se[n] || (m('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', T(U.current.type), e.ref), se[n] = !0);
136
+ function g(e, o) {
137
+ function l() {
138
+ H || (H = !0, console.error(
139
+ "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
140
+ o
141
+ ));
399
142
  }
400
- }
401
- function ft(e, t) {
402
- {
403
- var n = function() {
404
- Oe || (Oe = !0, m("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", t));
405
- };
406
- n.isReactWarning = !0, Object.defineProperty(e, "key", {
407
- get: n,
408
- configurable: !0
409
- });
410
- }
411
- }
412
- function dt(e, t) {
413
- {
414
- var n = function() {
415
- je || (je = !0, m("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", t));
416
- };
417
- n.isReactWarning = !0, Object.defineProperty(e, "ref", {
418
- get: n,
419
- configurable: !0
420
- });
421
- }
422
- }
423
- var _t = function(e, t, n, i, c, d, s) {
424
- var l = {
425
- // This tag allows us to uniquely identify this as a React Element
426
- $$typeof: r,
427
- // Built-in properties that belong on the element
143
+ l.isReactWarning = !0, Object.defineProperty(e, "key", {
144
+ get: l,
145
+ configurable: !0
146
+ });
147
+ }
148
+ function p() {
149
+ var e = r(this.type);
150
+ return Z[e] || (Z[e] = !0, console.error(
151
+ "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
152
+ )), e = this.props.ref, e !== void 0 ? e : null;
153
+ }
154
+ function $(e, o, l, u, _, E, q, J) {
155
+ return l = E.ref, e = {
156
+ $$typeof: m,
428
157
  type: e,
429
- key: t,
430
- ref: n,
431
- props: s,
432
- // Record the component responsible for creating this element.
433
- _owner: d
434
- };
435
- return l._store = {}, Object.defineProperty(l._store, "validated", {
158
+ key: o,
159
+ props: E,
160
+ _owner: _
161
+ }, (l !== void 0 ? l : null) !== null ? Object.defineProperty(e, "ref", {
162
+ enumerable: !1,
163
+ get: p
164
+ }) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
436
165
  configurable: !1,
437
166
  enumerable: !1,
438
167
  writable: !0,
439
- value: !1
440
- }), Object.defineProperty(l, "_self", {
168
+ value: 0
169
+ }), Object.defineProperty(e, "_debugInfo", {
441
170
  configurable: !1,
442
171
  enumerable: !1,
443
- writable: !1,
444
- value: i
445
- }), Object.defineProperty(l, "_source", {
172
+ writable: !0,
173
+ value: null
174
+ }), Object.defineProperty(e, "_debugStack", {
446
175
  configurable: !1,
447
176
  enumerable: !1,
448
- writable: !1,
449
- value: c
450
- }), Object.freeze && (Object.freeze(l.props), Object.freeze(l)), l;
451
- };
452
- function vt(e, t, n, i, c) {
453
- {
454
- var d, s = {}, l = null, E = null;
455
- n !== void 0 && (Ce(n), l = "" + n), ut(t) && (Ce(t.key), l = "" + t.key), st(t) && (E = t.ref, ct(t, c));
456
- for (d in t)
457
- H.call(t, d) && !lt.hasOwnProperty(d) && (s[d] = t[d]);
458
- if (e && e.defaultProps) {
459
- var v = e.defaultProps;
460
- for (d in v)
461
- s[d] === void 0 && (s[d] = v[d]);
462
- }
463
- if (l || E) {
464
- var h = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
465
- l && ft(s, h), E && dt(s, h);
466
- }
467
- return _t(e, l, E, c, i, U.current, s);
468
- }
469
- }
470
- var ue = O.ReactCurrentOwner, Fe = O.ReactDebugCurrentFrame;
471
- function k(e) {
472
- if (e) {
473
- var t = e._owner, n = J(e.type, e._source, t ? t.type : null);
474
- Fe.setExtraStackFrame(n);
475
- } else
476
- Fe.setExtraStackFrame(null);
477
- }
478
- var ce;
479
- ce = !1;
480
- function fe(e) {
481
- return typeof e == "object" && e !== null && e.$$typeof === r;
482
- }
483
- function Ie() {
484
- {
485
- if (ue.current) {
486
- var e = T(ue.current.type);
487
- if (e)
488
- return `
489
-
490
- Check the render method of \`` + e + "`.";
491
- }
492
- return "";
493
- }
494
- }
495
- function gt(e) {
496
- {
497
- if (e !== void 0) {
498
- var t = e.fileName.replace(/^.*[\\\/]/, ""), n = e.lineNumber;
499
- return `
500
-
501
- Check your code at ` + t + ":" + n + ".";
502
- }
503
- return "";
504
- }
505
- }
506
- var ke = {};
507
- function ht(e) {
508
- {
509
- var t = Ie();
510
- if (!t) {
511
- var n = typeof e == "string" ? e : e.displayName || e.name;
512
- n && (t = `
513
-
514
- Check the top-level render call using <` + n + ">.");
515
- }
516
- return t;
517
- }
518
- }
519
- function Ae(e, t) {
520
- {
521
- if (!e._store || e._store.validated || e.key != null)
522
- return;
523
- e._store.validated = !0;
524
- var n = ht(t);
525
- if (ke[n])
526
- return;
527
- ke[n] = !0;
528
- var i = "";
529
- e && e._owner && e._owner !== ue.current && (i = " It was passed a child from " + T(e._owner.type) + "."), k(e), m('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', n, i), k(null);
530
- }
531
- }
532
- function De(e, t) {
533
- {
534
- if (typeof e != "object")
535
- return;
536
- if (le(e))
537
- for (var n = 0; n < e.length; n++) {
538
- var i = e[n];
539
- fe(i) && Ae(i, t);
540
- }
541
- else if (fe(e))
542
- e._store && (e._store.validated = !0);
543
- else if (e) {
544
- var c = W(e);
545
- if (typeof c == "function" && c !== e.entries)
546
- for (var d = c.call(e), s; !(s = d.next()).done; )
547
- fe(s.value) && Ae(s.value, t);
548
- }
549
- }
550
- }
551
- function pt(e) {
552
- {
553
- var t = e.type;
554
- if (t == null || typeof t == "string")
555
- return;
556
- var n;
557
- if (typeof t == "function")
558
- n = t.propTypes;
559
- else if (typeof t == "object" && (t.$$typeof === p || // Note: Memo only checks outer props here.
560
- // Inner props are checked in the reconciler.
561
- t.$$typeof === w))
562
- n = t.propTypes;
563
- else
564
- return;
565
- if (n) {
566
- var i = T(t);
567
- nt(n, e.props, "prop", i, e);
568
- } else if (t.PropTypes !== void 0 && !ce) {
569
- ce = !0;
570
- var c = T(t);
571
- m("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", c || "Unknown");
572
- }
573
- typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && m("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
574
- }
575
- }
576
- function mt(e) {
577
- {
578
- for (var t = Object.keys(e.props), n = 0; n < t.length; n++) {
579
- var i = t[n];
580
- if (i !== "children" && i !== "key") {
581
- k(e), m("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", i), k(null);
582
- break;
583
- }
584
- }
585
- e.ref !== null && (k(e), m("Invalid attribute `ref` supplied to `React.Fragment`."), k(null));
177
+ writable: !0,
178
+ value: q
179
+ }), Object.defineProperty(e, "_debugTask", {
180
+ configurable: !1,
181
+ enumerable: !1,
182
+ writable: !0,
183
+ value: J
184
+ }), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
185
+ }
186
+ function k(e, o, l, u, _, E, q, J) {
187
+ var f = o.children;
188
+ if (f !== void 0)
189
+ if (u)
190
+ if (_e(f)) {
191
+ for (u = 0; u < f.length; u++)
192
+ C(f[u]);
193
+ Object.freeze && Object.freeze(f);
194
+ } else
195
+ console.error(
196
+ "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
197
+ );
198
+ else C(f);
199
+ if (B.call(o, "key")) {
200
+ f = r(e);
201
+ var R = Object.keys(o).filter(function(he) {
202
+ return he !== "key";
203
+ });
204
+ u = 0 < R.length ? "{key: someKey, " + R.join(": ..., ") + ": ...}" : "{key: someKey}", ee[f + u] || (R = 0 < R.length ? "{" + R.join(": ..., ") + ": ...}" : "{}", console.error(
205
+ `A props object containing a "key" prop is being spread into JSX:
206
+ let props = %s;
207
+ <%s {...props} />
208
+ React keys must be passed directly to JSX without using spread:
209
+ let props = %s;
210
+ <%s key={someKey} {...props} />`,
211
+ u,
212
+ f,
213
+ R,
214
+ f
215
+ ), ee[f + u] = !0);
586
216
  }
587
- }
588
- function $e(e, t, n, i, c, d) {
589
- {
590
- var s = He(e);
591
- if (!s) {
592
- var l = "";
593
- (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (l += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
594
- var E = gt(c);
595
- E ? l += E : l += Ie();
596
- var v;
597
- e === null ? v = "null" : le(e) ? v = "array" : e !== void 0 && e.$$typeof === r ? (v = "<" + (T(e.type) || "Unknown") + " />", l = " Did you accidentally export a JSX literal instead of a component?") : v = typeof e, m("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", v, l);
598
- }
599
- var h = vt(e, t, n, c, d);
600
- if (h == null)
601
- return h;
602
- if (s) {
603
- var R = t.children;
604
- if (R !== void 0)
605
- if (i)
606
- if (le(R)) {
607
- for (var A = 0; A < R.length; A++)
608
- De(R[A], e);
609
- Object.freeze && Object.freeze(R);
610
- } else
611
- m("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
612
- else
613
- De(R, e);
614
- }
615
- return e === u ? mt(h) : pt(h), h;
217
+ if (f = null, l !== void 0 && (n(l), f = "" + l), h(o) && (n(o.key), f = "" + o.key), "key" in o) {
218
+ l = {};
219
+ for (var V in o)
220
+ V !== "key" && (l[V] = o[V]);
221
+ } else l = o;
222
+ return f && g(
223
+ l,
224
+ typeof e == "function" ? e.displayName || e.name || "Unknown" : e
225
+ ), $(
226
+ e,
227
+ f,
228
+ E,
229
+ _,
230
+ a(),
231
+ l,
232
+ q,
233
+ J
234
+ );
235
+ }
236
+ function C(e) {
237
+ typeof e == "object" && e !== null && e.$$typeof === m && e._store && (e._store.validated = 1);
238
+ }
239
+ var d = ge, m = Symbol.for("react.transitional.element"), N = Symbol.for("react.portal"), v = Symbol.for("react.fragment"), S = Symbol.for("react.strict_mode"), Y = Symbol.for("react.profiler"), j = Symbol.for("react.consumer"), U = Symbol.for("react.context"), D = Symbol.for("react.forward_ref"), W = Symbol.for("react.suspense"), c = Symbol.for("react.suspense_list"), I = Symbol.for("react.memo"), x = Symbol.for("react.lazy"), Ee = Symbol.for("react.activity"), me = Symbol.for("react.client.reference"), X = d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, B = Object.prototype.hasOwnProperty, _e = Array.isArray, L = console.createTask ? console.createTask : function() {
240
+ return null;
241
+ };
242
+ d = {
243
+ "react-stack-bottom-frame": function(e) {
244
+ return e();
616
245
  }
617
- }
618
- function yt(e, t, n) {
619
- return $e(e, t, n, !0);
620
- }
621
- function Et(e, t, n) {
622
- return $e(e, t, n, !1);
623
- }
624
- var bt = Et, Rt = yt;
625
- L.Fragment = u, L.jsx = bt, L.jsxs = Rt;
626
- }()), L;
246
+ };
247
+ var H, Z = {}, Q = d["react-stack-bottom-frame"].bind(
248
+ d,
249
+ i
250
+ )(), K = L(s(i)), ee = {};
251
+ A.Fragment = v, A.jsx = function(e, o, l, u, _) {
252
+ var E = 1e4 > X.recentlyCreatedOwnerStacks++;
253
+ return k(
254
+ e,
255
+ o,
256
+ l,
257
+ !1,
258
+ u,
259
+ _,
260
+ E ? Error("react-stack-top-frame") : Q,
261
+ E ? L(s(e)) : K
262
+ );
263
+ }, A.jsxs = function(e, o, l, u, _) {
264
+ var E = 1e4 > X.recentlyCreatedOwnerStacks++;
265
+ return k(
266
+ e,
267
+ o,
268
+ l,
269
+ !0,
270
+ u,
271
+ _,
272
+ E ? Error("react-stack-top-frame") : Q,
273
+ E ? L(s(e)) : K
274
+ );
275
+ };
276
+ }()), A;
627
277
  }
628
- process.env.NODE_ENV === "production" ? de.exports = Ct() : de.exports = Ot();
629
- var jt = de.exports;
630
- const Ft = jt.jsx;
631
- const It = "_map_1tyvt_2", kt = "_touch_1tyvt_26", At = "_floaten_1tyvt_45", Dt = "_float_1tyvt_45", $t = {
632
- "ol-box": "_ol-box_1tyvt_1",
633
- "ol-mouse-position": "_ol-mouse-position_1tyvt_1",
634
- "ol-scale-line": "_ol-scale-line_1tyvt_1",
635
- "ol-scale-line-inner": "_ol-scale-line-inner_1tyvt_1",
636
- "ol-scale-bar": "_ol-scale-bar_1tyvt_1",
637
- "ol-scale-bar-inner": "_ol-scale-bar-inner_1tyvt_1",
638
- "ol-scale-step-marker": "_ol-scale-step-marker_1tyvt_1",
639
- "ol-scale-step-text": "_ol-scale-step-text_1tyvt_1",
640
- "ol-scale-text": "_ol-scale-text_1tyvt_1",
641
- "ol-scale-singlebar": "_ol-scale-singlebar_1tyvt_1",
642
- "ol-scale-singlebar-even": "_ol-scale-singlebar-even_1tyvt_1",
643
- "ol-scale-singlebar-odd": "_ol-scale-singlebar-odd_1tyvt_1",
644
- "ol-unsupported": "_ol-unsupported_1tyvt_1",
645
- "ol-viewport": "_ol-viewport_1tyvt_1",
646
- "ol-unselectable": "_ol-unselectable_1tyvt_1",
647
- "ol-selectable": "_ol-selectable_1tyvt_1",
648
- "ol-grabbing": "_ol-grabbing_1tyvt_1",
649
- "ol-grab": "_ol-grab_1tyvt_1",
650
- "ol-control": "_ol-control_1tyvt_1",
651
- "ol-zoom": "_ol-zoom_1tyvt_1",
652
- "ol-rotate": "_ol-rotate_1tyvt_1",
653
- "ol-hidden": "_ol-hidden_1tyvt_1",
654
- "ol-zoom-extent": "_ol-zoom-extent_1tyvt_1",
655
- "ol-full-screen": "_ol-full-screen_1tyvt_1",
656
- "ol-compass": "_ol-compass_1tyvt_1",
657
- "ol-touch": "_ol-touch_1tyvt_1",
658
- "ol-zoom-in": "_ol-zoom-in_1tyvt_1",
659
- "ol-zoom-out": "_ol-zoom-out_1tyvt_1",
660
- "ol-attribution": "_ol-attribution_1tyvt_1",
661
- "ol-collapsed": "_ol-collapsed_1tyvt_1",
662
- "ol-uncollapsible": "_ol-uncollapsible_1tyvt_1",
663
- "ol-zoomslider": "_ol-zoomslider_1tyvt_1",
664
- "ol-overviewmap": "_ol-overviewmap_1tyvt_1",
665
- "ol-overviewmap-map": "_ol-overviewmap-map_1tyvt_1",
666
- "ol-overviewmap-box": "_ol-overviewmap-box_1tyvt_1",
667
- map: It,
668
- "map-popup-container": "_map-popup-container_1tyvt_7",
669
- touch: kt,
670
- "mobile-layers-button": "_mobile-layers-button_1tyvt_30",
671
- floaten: At,
672
- float: Dt
673
- }, Mt = {
278
+ var ae;
279
+ function xe() {
280
+ return ae || (ae = 1, process.env.NODE_ENV === "production" ? G.exports = ve() : G.exports = Se()), G.exports;
281
+ }
282
+ var Oe = xe();
283
+ const Ae = "_map_1tyvt_2", ye = {
284
+ map: Ae
285
+ }, pe = {
674
286
  // use the radius of the Normal sphere
675
287
  radians: 6370997 / (2 * Math.PI),
676
288
  degrees: 2 * Math.PI * 6370997 / 360,
@@ -678,13 +290,13 @@ const It = "_map_1tyvt_2", kt = "_touch_1tyvt_26", At = "_floaten_1tyvt_45", Dt
678
290
  m: 1,
679
291
  "us-ft": 1200 / 3937
680
292
  };
681
- class Gt {
293
+ class fe {
682
294
  /**
683
295
  * @param {Options} options Projection options.
684
296
  */
685
- constructor(r) {
686
- this.code_ = r.code, this.units_ = /** @type {import("./Units.js").Units} */
687
- r.units, this.extent_ = r.extent !== void 0 ? r.extent : null, this.worldExtent_ = r.worldExtent !== void 0 ? r.worldExtent : null, this.axisOrientation_ = r.axisOrientation !== void 0 ? r.axisOrientation : "enu", this.global_ = r.global !== void 0 ? r.global : !1, this.canWrapX_ = !!(this.global_ && this.extent_), this.getPointResolutionFunc_ = r.getPointResolution, this.defaultTileGrid_ = null, this.metersPerUnit_ = r.metersPerUnit;
297
+ constructor(t) {
298
+ this.code_ = t.code, this.units_ = /** @type {import("./Units.js").Units} */
299
+ t.units, this.extent_ = t.extent !== void 0 ? t.extent : null, this.worldExtent_ = t.worldExtent !== void 0 ? t.worldExtent : null, this.axisOrientation_ = t.axisOrientation !== void 0 ? t.axisOrientation : "enu", this.global_ = t.global !== void 0 ? t.global : !1, this.canWrapX_ = !!(this.global_ && this.extent_), this.getPointResolutionFunc_ = t.getPointResolution, this.defaultTileGrid_ = null, this.metersPerUnit_ = t.metersPerUnit;
688
300
  }
689
301
  /**
690
302
  * @return {boolean} The projection is suitable for wrapping the x-axis
@@ -724,7 +336,7 @@ class Gt {
724
336
  * @api
725
337
  */
726
338
  getMetersPerUnit() {
727
- return this.metersPerUnit_ || Mt[this.units_];
339
+ return this.metersPerUnit_ || pe[this.units_];
728
340
  }
729
341
  /**
730
342
  * Get the world extent for this projection.
@@ -761,8 +373,8 @@ class Gt {
761
373
  * @param {boolean} global Whether the projection is global.
762
374
  * @api
763
375
  */
764
- setGlobal(r) {
765
- this.global_ = r, this.canWrapX_ = !!(r && this.extent_);
376
+ setGlobal(t) {
377
+ this.global_ = t, this.canWrapX_ = !!(t && this.extent_);
766
378
  }
767
379
  /**
768
380
  * @return {import("../tilegrid/TileGrid.js").default} The default tile grid.
@@ -773,16 +385,16 @@ class Gt {
773
385
  /**
774
386
  * @param {import("../tilegrid/TileGrid.js").default} tileGrid The default tile grid.
775
387
  */
776
- setDefaultTileGrid(r) {
777
- this.defaultTileGrid_ = r;
388
+ setDefaultTileGrid(t) {
389
+ this.defaultTileGrid_ = t;
778
390
  }
779
391
  /**
780
392
  * Set the validity extent for this projection.
781
393
  * @param {import("../extent.js").Extent} extent Extent.
782
394
  * @api
783
395
  */
784
- setExtent(r) {
785
- this.extent_ = r, this.canWrapX_ = !!(this.global_ && r);
396
+ setExtent(t) {
397
+ this.extent_ = t, this.canWrapX_ = !!(this.global_ && t);
786
398
  }
787
399
  /**
788
400
  * Set the world extent for this projection.
@@ -790,8 +402,8 @@ class Gt {
790
402
  * [minlon, minlat, maxlon, maxlat].
791
403
  * @api
792
404
  */
793
- setWorldExtent(r) {
794
- this.worldExtent_ = r;
405
+ setWorldExtent(t) {
406
+ this.worldExtent_ = t;
795
407
  }
796
408
  /**
797
409
  * Set the getPointResolution function (see {@link module:ol/proj.getPointResolution}
@@ -799,8 +411,8 @@ class Gt {
799
411
  * @param {function(number, import("../coordinate.js").Coordinate):number} func Function
800
412
  * @api
801
413
  */
802
- setGetPointResolution(r) {
803
- this.getPointResolutionFunc_ = r;
414
+ setGetPointResolution(t) {
415
+ this.getPointResolutionFunc_ = t;
804
416
  }
805
417
  /**
806
418
  * Get the custom point resolution function for this projection (if set).
@@ -811,240 +423,238 @@ class Gt {
811
423
  return this.getPointResolutionFunc_;
812
424
  }
813
425
  }
814
- const Xe = Gt, V = 6378137, $ = Math.PI * V, Wt = [-$, -$, $, $], Nt = [-180, -85, 180, 85], Z = V * Math.log(Math.tan(Math.PI / 2));
815
- class D extends Xe {
426
+ const y = 6378137, T = Math.PI * y, ke = [-T, -T, T, T], Ce = [-180, -85, 180, 85], M = y * Math.log(Math.tan(Math.PI / 2));
427
+ class w extends fe {
816
428
  /**
817
429
  * @param {string} code Code.
818
430
  */
819
- constructor(r) {
431
+ constructor(t) {
820
432
  super({
821
- code: r,
433
+ code: t,
822
434
  units: "m",
823
- extent: Wt,
435
+ extent: ke,
824
436
  global: !0,
825
- worldExtent: Nt,
826
- getPointResolution: function(o, u) {
827
- return o / Math.cosh(u[1] / V);
437
+ worldExtent: Ce,
438
+ getPointResolution: function(n, s) {
439
+ return n / Math.cosh(s[1] / y);
828
440
  }
829
441
  });
830
442
  }
831
443
  }
832
- const Ye = [
833
- new D("EPSG:3857"),
834
- new D("EPSG:102100"),
835
- new D("EPSG:102113"),
836
- new D("EPSG:900913"),
837
- new D("http://www.opengis.net/def/crs/EPSG/0/3857"),
838
- new D("http://www.opengis.net/gml/srs/epsg.xml#3857")
444
+ const se = [
445
+ new w("EPSG:3857"),
446
+ new w("EPSG:102100"),
447
+ new w("EPSG:102113"),
448
+ new w("EPSG:900913"),
449
+ new w("http://www.opengis.net/def/crs/EPSG/0/3857"),
450
+ new w("http://www.opengis.net/gml/srs/epsg.xml#3857")
839
451
  ];
840
- function Ut(a, r, o) {
841
- const u = a.length;
842
- o = o > 1 ? o : 2, r === void 0 && (o > 2 ? r = a.slice() : r = new Array(u));
843
- for (let f = 0; f < u; f += o) {
844
- r[f] = $ * a[f] / 180;
845
- let _ = V * Math.log(Math.tan(Math.PI * (+a[f + 1] + 90) / 360));
846
- _ > Z ? _ = Z : _ < -Z && (_ = -Z), r[f + 1] = _;
452
+ function Ne(r, t, n) {
453
+ const s = r.length;
454
+ n = n > 1 ? n : 2, t === void 0 && (n > 2 ? t = r.slice() : t = new Array(s));
455
+ for (let a = 0; a < s; a += n) {
456
+ t[a] = T * r[a] / 180;
457
+ let i = y * Math.log(Math.tan(Math.PI * (+r[a + 1] + 90) / 360));
458
+ i > M ? i = M : i < -M && (i = -M), t[a + 1] = i;
847
459
  }
848
- return r;
460
+ return t;
849
461
  }
850
- function Yt(a, r, o) {
851
- const u = a.length;
852
- o = o > 1 ? o : 2, r === void 0 && (o > 2 ? r = a.slice() : r = new Array(u));
853
- for (let f = 0; f < u; f += o)
854
- r[f] = 180 * a[f] / $, r[f + 1] = 360 * Math.atan(Math.exp(a[f + 1] / V)) / Math.PI - 90;
855
- return r;
462
+ function je(r, t, n) {
463
+ const s = r.length;
464
+ n = n > 1 ? n : 2, t === void 0 && (n > 2 ? t = r.slice() : t = new Array(s));
465
+ for (let a = 0; a < s; a += n)
466
+ t[a] = 180 * r[a] / T, t[a + 1] = 360 * Math.atan(Math.exp(r[a + 1] / y)) / Math.PI - 90;
467
+ return t;
856
468
  }
857
- const Lt = 6378137, Le = [-180, -90, 180, 90], Vt = Math.PI * Lt / 180;
858
- class I extends Xe {
469
+ const Ie = 6378137, ie = [-180, -90, 180, 90], Ge = Math.PI * Ie / 180;
470
+ class P extends fe {
859
471
  /**
860
472
  * @param {string} code Code.
861
473
  * @param {string} [axisOrientation] Axis orientation.
862
474
  */
863
- constructor(r, o) {
475
+ constructor(t, n) {
864
476
  super({
865
- code: r,
477
+ code: t,
866
478
  units: "degrees",
867
- extent: Le,
868
- axisOrientation: o,
479
+ extent: ie,
480
+ axisOrientation: n,
869
481
  global: !0,
870
- metersPerUnit: Vt,
871
- worldExtent: Le
482
+ metersPerUnit: Ge,
483
+ worldExtent: ie
872
484
  });
873
485
  }
874
486
  }
875
- const Ve = [
876
- new I("CRS:84"),
877
- new I("EPSG:4326", "neu"),
878
- new I("urn:ogc:def:crs:OGC:1.3:CRS84"),
879
- new I("urn:ogc:def:crs:OGC:2:84"),
880
- new I("http://www.opengis.net/def/crs/OGC/1.3/CRS84"),
881
- new I("http://www.opengis.net/gml/srs/epsg.xml#4326", "neu"),
882
- new I("http://www.opengis.net/def/crs/EPSG/0/4326", "neu")
487
+ const le = [
488
+ new P("CRS:84"),
489
+ new P("EPSG:4326", "neu"),
490
+ new P("urn:ogc:def:crs:OGC:1.3:CRS84"),
491
+ new P("urn:ogc:def:crs:OGC:2:84"),
492
+ new P("http://www.opengis.net/def/crs/OGC/1.3/CRS84"),
493
+ new P("http://www.opengis.net/gml/srs/epsg.xml#4326", "neu"),
494
+ new P("http://www.opengis.net/def/crs/EPSG/0/4326", "neu")
883
495
  ];
884
- let _e = {};
885
- function zt(a) {
886
- return _e[a] || _e[a.replace(/urn:(x-)?ogc:def:crs:EPSG:(.*:)?(\w+)$/, "EPSG:$3")] || null;
496
+ let z = {};
497
+ function Me(r) {
498
+ return z[r] || z[r.replace(/urn:(x-)?ogc:def:crs:EPSG:(.*:)?(\w+)$/, "EPSG:$3")] || null;
887
499
  }
888
- function Bt(a, r) {
889
- _e[a] = r;
500
+ function Fe(r, t) {
501
+ z[r] = t;
890
502
  }
891
- let M = {};
892
- function Q(a, r, o) {
893
- const u = a.getCode(), f = r.getCode();
894
- u in M || (M[u] = {}), M[u][f] = o;
503
+ let b = {};
504
+ function F(r, t, n) {
505
+ const s = r.getCode(), a = t.getCode();
506
+ s in b || (b[s] = {}), b[s][a] = n;
895
507
  }
896
- function qt(a, r) {
897
- let o;
898
- return a in M && r in M[a] && (o = M[a][r]), o;
508
+ function $e(r, t) {
509
+ let n;
510
+ return r in b && t in b[r] && (n = b[r][t]), n;
899
511
  }
900
- function Je(a, r) {
901
- if (r !== void 0) {
902
- for (let o = 0, u = a.length; o < u; ++o)
903
- r[o] = a[o];
904
- r = r;
512
+ function de(r, t) {
513
+ if (t !== void 0) {
514
+ for (let n = 0, s = r.length; n < s; ++n)
515
+ t[n] = r[n];
516
+ t = t;
905
517
  } else
906
- r = a.slice();
907
- return r;
518
+ t = r.slice();
519
+ return t;
908
520
  }
909
- function Xt(a, r) {
910
- if (r !== void 0 && a !== r) {
911
- for (let o = 0, u = a.length; o < u; ++o)
912
- r[o] = a[o];
913
- a = r;
521
+ function Ye(r, t) {
522
+ if (t !== void 0 && r !== t) {
523
+ for (let n = 0, s = r.length; n < s; ++n)
524
+ t[n] = r[n];
525
+ r = t;
914
526
  }
915
- return a;
527
+ return r;
916
528
  }
917
- function Jt(a) {
918
- Bt(a.getCode(), a), Q(a, a, Je);
529
+ function Ue(r) {
530
+ Fe(r.getCode(), r), F(r, r, de);
919
531
  }
920
- function Ht(a) {
921
- a.forEach(Jt);
532
+ function De(r) {
533
+ r.forEach(Ue);
922
534
  }
923
- function ze(a) {
924
- return typeof a == "string" ? zt(
535
+ function ce(r) {
536
+ return typeof r == "string" ? Me(
925
537
  /** @type {string} */
926
- a
538
+ r
927
539
  ) : (
928
540
  /** @type {Projection} */
929
- a || null
541
+ r || null
930
542
  );
931
543
  }
932
- function Be(a) {
933
- Ht(a), a.forEach(function(r) {
934
- a.forEach(function(o) {
935
- r !== o && Q(r, o, Je);
544
+ function ue(r) {
545
+ De(r), r.forEach(function(t) {
546
+ r.forEach(function(n) {
547
+ t !== n && F(t, n, de);
936
548
  });
937
549
  });
938
550
  }
939
- function Kt(a, r, o, u) {
940
- a.forEach(function(f) {
941
- r.forEach(function(_) {
942
- Q(f, _, o), Q(_, f, u);
551
+ function We(r, t, n, s) {
552
+ r.forEach(function(a) {
553
+ t.forEach(function(i) {
554
+ F(a, i, n), F(i, a, s);
943
555
  });
944
556
  });
945
557
  }
946
- function Zt(a, r) {
947
- return tr(
948
- a,
558
+ function Xe(r, t) {
559
+ return Je(
560
+ r,
949
561
  "EPSG:4326",
950
- r !== void 0 ? r : "EPSG:3857"
562
+ "EPSG:3857"
951
563
  );
952
564
  }
953
- function Qt(a, r) {
954
- const o = a.getCode(), u = r.getCode();
955
- let f = qt(o, u);
956
- return f || (f = Xt), f;
565
+ function Le(r, t) {
566
+ const n = r.getCode(), s = t.getCode();
567
+ let a = $e(n, s);
568
+ return a || (a = Ye), a;
957
569
  }
958
- function er(a, r) {
959
- const o = ze(a), u = ze(r);
960
- return Qt(o, u);
570
+ function qe(r, t) {
571
+ const n = ce(r), s = ce(t);
572
+ return Le(n, s);
961
573
  }
962
- function tr(a, r, o) {
963
- return er(r, o)(a, void 0, a.length);
574
+ function Je(r, t, n) {
575
+ return qe(t, n)(r, void 0, r.length);
964
576
  }
965
- function rr() {
966
- Be(Ye), Be(Ve), Kt(
967
- Ve,
968
- Ye,
969
- Ut,
970
- Yt
577
+ function Ve() {
578
+ ue(se), ue(le), We(
579
+ le,
580
+ se,
581
+ Ne,
582
+ je
971
583
  );
972
584
  }
973
- rr();
974
- const or = wt(
585
+ Ve();
586
+ const He = Pe(
975
587
  ({
976
- options: a,
977
- mapKey: r,
978
- zoom: o,
979
- defaultType: u,
980
- scale: f,
981
- center: _,
982
- poi: j,
983
- traffic: x,
588
+ options: r,
589
+ mapKey: t,
590
+ zoom: n,
591
+ defaultType: s,
592
+ scale: a,
593
+ center: i,
594
+ poi: h,
595
+ traffic: g,
984
596
  onInit: p,
985
- className: C,
986
- style: y
987
- }, w) => {
988
- const b = Ge(null), P = Ge(null), [G, ee] = We(!1), [W, O] = We(null);
989
- Pt(
990
- w,
597
+ className: $,
598
+ style: k
599
+ }, C) => {
600
+ const d = te(null), m = te(null), [N, v] = re(!1), [S, Y] = re(null);
601
+ Re(
602
+ C,
991
603
  () => ({
992
604
  get mapContainer() {
993
- return b;
605
+ return d;
994
606
  },
995
607
  get map() {
996
- return P.current;
608
+ return m.current;
997
609
  },
998
610
  get isInitiated() {
999
- return G;
611
+ return N;
1000
612
  }
1001
613
  }),
1002
- [G, P.current]
614
+ [N, m.current]
1003
615
  );
1004
- const m = () => {
1005
- var z, B;
1006
- if (W)
1007
- return W;
1008
- const g = (B = (z = b.current) == null ? void 0 : z.querySelector(".ol-viewport")) == null ? void 0 : B.querySelectorAll("div:last-child");
1009
- if (g)
1010
- return O(
1011
- Array.from(g)[g.length - 1]
1012
- ), W;
1013
- }, te = () => {
1014
- const g = m();
1015
- g == null || g.style.setProperty("scale", "" + f);
1016
- }, re = () => {
1017
- const g = m();
1018
- g == null || g.style.setProperty("bottom", "0.2em"), g == null || g.style.setProperty("left", "0.4em");
1019
- }, ne = () => {
1020
- if (P.current != null || !b.current)
1021
- return;
1022
- const g = {};
1023
- _ != null && _.longitude && _.latitude && (g.center = Zt([_ == null ? void 0 : _.longitude, _ == null ? void 0 : _.latitude])), o && (g.zoom = o), P.current = new Tt({
1024
- target: b.current,
1025
- key: r || "",
1026
- mapType: u,
616
+ const j = () => {
617
+ var I, x;
618
+ if (S) return S;
619
+ const c = (x = (I = d.current) == null ? void 0 : I.querySelector(".ol-viewport")) == null ? void 0 : x.querySelectorAll("div:last-child");
620
+ if (c)
621
+ return Y(
622
+ Array.from(c)[c.length - 1]
623
+ ), S;
624
+ }, U = () => {
625
+ const c = j();
626
+ c == null || c.style.setProperty("scale", "" + a);
627
+ }, D = () => {
628
+ const c = j();
629
+ c == null || c.style.setProperty("bottom", "0.2em"), c == null || c.style.setProperty("left", "0.4em");
630
+ }, W = () => {
631
+ if (m.current != null || !d.current) return;
632
+ const c = {};
633
+ i != null && i.longitude && i.latitude && (c.center = Xe([i == null ? void 0 : i.longitude, i == null ? void 0 : i.latitude])), n && (c.zoom = n), m.current = new Te({
634
+ target: d.current,
635
+ key: t || "",
636
+ mapType: s,
1027
637
  // poi: store.state.poiLayer,
1028
- poi: j,
638
+ poi: h,
1029
639
  // traffic: store.state.trafficLayer,
1030
- traffic: x,
1031
- view: new St(g),
640
+ traffic: g,
641
+ view: new be(c),
1032
642
  controls: [],
1033
- ...a
1034
- }), ee(!0), p && p(P.current);
643
+ ...r
644
+ }), v(!0), p && p(m.current);
1035
645
  };
1036
- return xt(() => {
1037
- ne(), te(), re();
1038
- }, []), /* @__PURE__ */ Ft(
646
+ return we(() => {
647
+ W(), U(), D();
648
+ }, []), /* @__PURE__ */ Oe.jsx(
1039
649
  "div",
1040
650
  {
1041
- ref: b,
1042
- className: C || $t.map,
1043
- style: y
651
+ ref: d,
652
+ className: $ || ye.map,
653
+ style: k
1044
654
  }
1045
655
  );
1046
656
  }
1047
657
  );
1048
658
  export {
1049
- or as default
659
+ He as default
1050
660
  };