@hybridcore/ui 1.6.13 → 1.6.14

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 (95) hide show
  1. package/dist/AccordionSummary-DUtr16g6.js +781 -0
  2. package/dist/Add-Bk8R160M.js +403 -0
  3. package/dist/Button-Cem3nbwc.js +357 -0
  4. package/dist/ButtonBase-DObmf4Q_.js +886 -0
  5. package/dist/Delete-CVJ6FeDn.js +203 -0
  6. package/dist/FormGroup-BRj1o7-E.js +89 -0
  7. package/dist/InputLabel-CjD30ZHz.js +341 -0
  8. package/dist/MenuItem-BKvRGLvM.js +233 -0
  9. package/dist/Modal-BVYydOr5.js +1156 -0
  10. package/dist/Paper-B1HV8GyO.js +582 -0
  11. package/dist/Select-Bfhvigsx.js +3914 -0
  12. package/dist/Source-BSZST_GH.js +4410 -0
  13. package/dist/SwitchBase-BEK49kdS.js +235 -0
  14. package/dist/Text-ChJRuaD8.js +2197 -0
  15. package/dist/TextField-Ca9ykixI.js +696 -0
  16. package/dist/TransitionGroupContext-Ja2CgIob.js +96 -0
  17. package/dist/Typography-D3X-Y5fh.js +178 -0
  18. package/dist/Vector-BmuhQO4p.js +3606 -0
  19. package/dist/Vector-DfTqQEln.js +1735 -0
  20. package/dist/WKT-2wsDT-nq.js +2310 -0
  21. package/dist/{_commonjsHelpers-BVfed4GL.js → _commonjsHelpers-BkfeUUK-.js} +2 -2
  22. package/dist/assertThisInitialized-C1dAyb4j.js +7 -0
  23. package/dist/assets/index.css +1 -1
  24. package/dist/assets/index2.css +1 -1
  25. package/dist/assets/index3.css +1 -0
  26. package/dist/assets/index4.css +1 -0
  27. package/dist/clsx-OuTLNxxd.js +16 -0
  28. package/dist/components/button/styled.js +1 -1
  29. package/dist/components/charts/_common/format.js +126 -82
  30. package/dist/components/charts/drill-down-voronoi-treemap/logic.js +1 -1
  31. package/dist/components/collapsible-card/index.js +30 -21
  32. package/dist/components/collapsible-card/styled.js +14 -16
  33. package/dist/components/color-picker/index.js +3358 -2228
  34. package/dist/components/color-picker/styled.js +7 -87
  35. package/dist/components/confirm/dialog.js +7 -89
  36. package/dist/components/confirm/index.js +1 -1
  37. package/dist/components/data-map/index.js +1 -1
  38. package/dist/components/data-map/logic.js +20 -20
  39. package/dist/components/data-security-selectors/dissemination-list/index.js +3117 -32
  40. package/dist/components/date-range-picker/index.js +454 -466
  41. package/dist/components/document-viewer/components/viewer/index.js +1 -1
  42. package/dist/components/duration-select/index.js +10 -10
  43. package/dist/components/duration-select/styled.js +1 -1
  44. package/dist/components/geometry-picker/coordinate/index.js +14 -14
  45. package/dist/components/geometry-picker/edit/index.js +1 -1
  46. package/dist/components/geometry-picker/geometry/index.js +1 -1
  47. package/dist/components/geometry-picker/kml/index.js +11 -11
  48. package/dist/components/geometry-picker/map/logic.js +3656 -145
  49. package/dist/components/geometry-picker/map/style.js +17 -18
  50. package/dist/components/geometry-picker/parser/coordinate-input/logic.js +1255 -43
  51. package/dist/components/heat-map/index.js +1 -1
  52. package/dist/components/heat-map/logic.js +1924 -77
  53. package/dist/components/instance-form/components/composite-matrix/components/json-editor/index.js +2 -2
  54. package/dist/components/instance-hierarchy-table/styled.js +16 -18
  55. package/dist/components/map/helpers/mapbox.js +15 -17
  56. package/dist/components/map/helpers/ol.js +27 -386
  57. package/dist/components/map/index.js +10 -11
  58. package/dist/components/map/logic.js +22 -22
  59. package/dist/components/map/styled.js +27 -31
  60. package/dist/components/phone-input/index.js +9 -10
  61. package/dist/components/property-mapping/index.js +1 -1
  62. package/dist/components/prr-map/index.js +1 -1
  63. package/dist/components/prr-map/logic.js +26 -27
  64. package/dist/components/raster-grid-map/index.js +1 -1
  65. package/dist/components/raster-grid-map/logic.js +57 -60
  66. package/dist/components/sortable-list/index.js +1264 -1091
  67. package/dist/components/template-form/components/property-list/index.js +32 -36
  68. package/dist/components/template-form/components/property-list/property-list-columns.js +17 -19
  69. package/dist/components/template-form/components/property-list/property-list-form.js +600 -137
  70. package/dist/components/template-form/components/recognition-property-list/index.js +36 -40
  71. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +9 -11
  72. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +64 -57
  73. package/dist/components/tree-select/index.js +16 -16
  74. package/dist/createChainedFunction-C0nujS3O.js +9 -0
  75. package/dist/createSvgIcon-BghzB2Y9.js +93 -0
  76. package/dist/createSvgIcon-D7U1nd99.js +185 -0
  77. package/dist/debounce-46wSf_lW.js +15 -0
  78. package/dist/dialog-BtJhjyF5.js +664 -0
  79. package/dist/extends-C3382pL0.js +22 -0
  80. package/dist/formControlState-vgaj2ksH.js +10 -0
  81. package/dist/generateUtilityClasses-Cc-owZ4J.js +2971 -0
  82. package/dist/{index-C__OZmYy.js → index-CblbdqjE.js} +1 -1
  83. package/dist/index-DH6qsPBn.js +153 -0
  84. package/dist/index.esm-DAf19hyR.js +318 -0
  85. package/dist/math-Bvt2Ubuz.js +704 -0
  86. package/dist/ol-yOE-NV0X.js +7465 -0
  87. package/dist/ownerWindow-wg6foiOE.js +10 -0
  88. package/dist/setPrototypeOf-NPgp4cYc.js +8 -0
  89. package/dist/styled-DD4BkuVf.js +350 -0
  90. package/dist/useControlled-BYdyS7Pn.js +31 -0
  91. package/dist/useFormControl-CatNKXAi.js +10 -0
  92. package/dist/useId-BW-oWmul.js +19 -0
  93. package/dist/useSlot-u4t0X96G.js +42 -0
  94. package/package.json +1 -1
  95. package/dist/index.esm-UfGMjYOL.js +0 -197
@@ -0,0 +1,704 @@
1
+ class m {
2
+ /**
3
+ * @param {string} type Type.
4
+ */
5
+ constructor(e) {
6
+ this.propagationStopped, this.defaultPrevented, this.type = e, this.target = null;
7
+ }
8
+ /**
9
+ * Prevent default. This means that no emulated `click`, `singleclick` or `doubleclick` events
10
+ * will be fired.
11
+ * @api
12
+ */
13
+ preventDefault() {
14
+ this.defaultPrevented = !0;
15
+ }
16
+ /**
17
+ * Stop event propagation.
18
+ * @api
19
+ */
20
+ stopPropagation() {
21
+ this.propagationStopped = !0;
22
+ }
23
+ }
24
+ const A = {
25
+ /**
26
+ * Triggered when a property is changed.
27
+ * @event module:ol/Object.ObjectEvent#propertychange
28
+ * @api
29
+ */
30
+ PROPERTYCHANGE: "propertychange"
31
+ };
32
+ class w {
33
+ constructor() {
34
+ this.disposed = !1;
35
+ }
36
+ /**
37
+ * Clean up.
38
+ */
39
+ dispose() {
40
+ this.disposed || (this.disposed = !0, this.disposeInternal());
41
+ }
42
+ /**
43
+ * Extension point for disposable objects.
44
+ * @protected
45
+ */
46
+ disposeInternal() {
47
+ }
48
+ }
49
+ function N(n, e, s) {
50
+ let t, i;
51
+ s = s || y;
52
+ let r = 0, a = n.length, o = !1;
53
+ for (; r < a; )
54
+ t = r + (a - r >> 1), i = +s(n[t], e), i < 0 ? r = t + 1 : (a = t, o = !i);
55
+ return o ? r : ~r;
56
+ }
57
+ function y(n, e) {
58
+ return n > e ? 1 : n < e ? -1 : 0;
59
+ }
60
+ function U(n, e, s) {
61
+ if (n[0] <= e)
62
+ return 0;
63
+ const t = n.length;
64
+ if (e <= n[t - 1])
65
+ return t - 1;
66
+ if (typeof s == "function") {
67
+ for (let i = 1; i < t; ++i) {
68
+ const r = n[i];
69
+ if (r === e)
70
+ return i;
71
+ if (r < e)
72
+ return s(e, n[i - 1], r) > 0 ? i - 1 : i;
73
+ }
74
+ return t - 1;
75
+ }
76
+ if (s > 0) {
77
+ for (let i = 1; i < t; ++i)
78
+ if (n[i] < e)
79
+ return i - 1;
80
+ return t - 1;
81
+ }
82
+ if (s < 0) {
83
+ for (let i = 1; i < t; ++i)
84
+ if (n[i] <= e)
85
+ return i;
86
+ return t - 1;
87
+ }
88
+ for (let i = 1; i < t; ++i) {
89
+ if (n[i] == e)
90
+ return i;
91
+ if (n[i] < e)
92
+ return n[i - 1] - e < e - n[i] ? i - 1 : i;
93
+ }
94
+ return t - 1;
95
+ }
96
+ function D(n, e, s) {
97
+ for (; e < s; ) {
98
+ const t = n[e];
99
+ n[e] = n[s], n[s] = t, ++e, --s;
100
+ }
101
+ }
102
+ function B(n, e) {
103
+ const s = Array.isArray(e) ? e : [e], t = s.length;
104
+ for (let i = 0; i < t; i++)
105
+ n[n.length] = s[i];
106
+ }
107
+ function R(n, e) {
108
+ const s = n.length;
109
+ if (s !== e.length)
110
+ return !1;
111
+ for (let t = 0; t < s; t++)
112
+ if (n[t] !== e[t])
113
+ return !1;
114
+ return !0;
115
+ }
116
+ function G(n, e, s) {
117
+ const t = e || y;
118
+ return n.every(function(i, r) {
119
+ if (r === 0)
120
+ return !0;
121
+ const a = t(n[r - 1], i);
122
+ return !(a > 0 || a === 0);
123
+ });
124
+ }
125
+ function V() {
126
+ return !0;
127
+ }
128
+ function k() {
129
+ return !1;
130
+ }
131
+ function f() {
132
+ }
133
+ function j(n) {
134
+ let e = !1, s, t, i;
135
+ return function() {
136
+ const r = Array.prototype.slice.call(arguments);
137
+ return (!e || this !== i || !R(r, t)) && (e = !0, i = this, t = r, s = n.apply(this, arguments)), s;
138
+ };
139
+ }
140
+ function E(n) {
141
+ for (const e in n)
142
+ delete n[e];
143
+ }
144
+ function L(n) {
145
+ let e;
146
+ for (e in n)
147
+ return !1;
148
+ return !e;
149
+ }
150
+ class S extends w {
151
+ /**
152
+ * @param {*} [target] Default event target for dispatched events.
153
+ */
154
+ constructor(e) {
155
+ super(), this.eventTarget_ = e, this.pendingRemovals_ = null, this.dispatching_ = null, this.listeners_ = null;
156
+ }
157
+ /**
158
+ * @param {string} type Type.
159
+ * @param {import("../events.js").Listener} listener Listener.
160
+ */
161
+ addEventListener(e, s) {
162
+ if (!e || !s)
163
+ return;
164
+ const t = this.listeners_ || (this.listeners_ = {}), i = t[e] || (t[e] = []);
165
+ i.includes(s) || i.push(s);
166
+ }
167
+ /**
168
+ * Dispatches an event and calls all listeners listening for events
169
+ * of this type. The event parameter can either be a string or an
170
+ * Object with a `type` property.
171
+ *
172
+ * @param {import("./Event.js").default|string} event Event object.
173
+ * @return {boolean|undefined} `false` if anyone called preventDefault on the
174
+ * event object or if any of the listeners returned false.
175
+ * @api
176
+ */
177
+ dispatchEvent(e) {
178
+ const s = typeof e == "string", t = s ? e : e.type, i = this.listeners_ && this.listeners_[t];
179
+ if (!i)
180
+ return;
181
+ const r = s ? new m(e) : (
182
+ /** @type {Event} */
183
+ e
184
+ );
185
+ r.target || (r.target = this.eventTarget_ || this);
186
+ const a = this.dispatching_ || (this.dispatching_ = {}), o = this.pendingRemovals_ || (this.pendingRemovals_ = {});
187
+ t in a || (a[t] = 0, o[t] = 0), ++a[t];
188
+ let l;
189
+ for (let u = 0, b = i.length; u < b; ++u)
190
+ if ("handleEvent" in i[u] ? l = /** @type {import("../events.js").ListenerObject} */
191
+ i[u].handleEvent(r) : l = /** @type {import("../events.js").ListenerFunction} */
192
+ i[u].call(this, r), l === !1 || r.propagationStopped) {
193
+ l = !1;
194
+ break;
195
+ }
196
+ if (--a[t] === 0) {
197
+ let u = o[t];
198
+ for (delete o[t]; u--; )
199
+ this.removeEventListener(t, f);
200
+ delete a[t];
201
+ }
202
+ return l;
203
+ }
204
+ /**
205
+ * Clean up.
206
+ */
207
+ disposeInternal() {
208
+ this.listeners_ && E(this.listeners_);
209
+ }
210
+ /**
211
+ * Get the listeners for a specified event type. Listeners are returned in the
212
+ * order that they will be called in.
213
+ *
214
+ * @param {string} type Type.
215
+ * @return {Array<import("../events.js").Listener>|undefined} Listeners.
216
+ */
217
+ getListeners(e) {
218
+ return this.listeners_ && this.listeners_[e] || void 0;
219
+ }
220
+ /**
221
+ * @param {string} [type] Type. If not provided,
222
+ * `true` will be returned if this event target has any listeners.
223
+ * @return {boolean} Has listeners.
224
+ */
225
+ hasListener(e) {
226
+ return this.listeners_ ? e ? e in this.listeners_ : Object.keys(this.listeners_).length > 0 : !1;
227
+ }
228
+ /**
229
+ * @param {string} type Type.
230
+ * @param {import("../events.js").Listener} listener Listener.
231
+ */
232
+ removeEventListener(e, s) {
233
+ const t = this.listeners_ && this.listeners_[e];
234
+ if (t) {
235
+ const i = t.indexOf(s);
236
+ i !== -1 && (this.pendingRemovals_ && e in this.pendingRemovals_ ? (t[i] = f, ++this.pendingRemovals_[e]) : (t.splice(i, 1), t.length === 0 && delete this.listeners_[e]));
237
+ }
238
+ }
239
+ }
240
+ const I = {
241
+ /**
242
+ * Generic change event. Triggered when the revision counter is increased.
243
+ * @event module:ol/events/Event~BaseEvent#change
244
+ * @api
245
+ */
246
+ CHANGE: "change",
247
+ /**
248
+ * Generic error event. Triggered when an error occurs.
249
+ * @event module:ol/events/Event~BaseEvent#error
250
+ * @api
251
+ */
252
+ ERROR: "error",
253
+ BLUR: "blur",
254
+ CLEAR: "clear",
255
+ CONTEXTMENU: "contextmenu",
256
+ CLICK: "click",
257
+ DBLCLICK: "dblclick",
258
+ DRAGENTER: "dragenter",
259
+ DRAGOVER: "dragover",
260
+ DROP: "drop",
261
+ FOCUS: "focus",
262
+ KEYDOWN: "keydown",
263
+ KEYPRESS: "keypress",
264
+ LOAD: "load",
265
+ RESIZE: "resize",
266
+ TOUCHMOVE: "touchmove",
267
+ WHEEL: "wheel"
268
+ };
269
+ function h(n, e, s, t, i) {
270
+ if (t && t !== n && (s = s.bind(t)), i) {
271
+ const a = s;
272
+ s = function() {
273
+ n.removeEventListener(e, s), a.apply(this, arguments);
274
+ };
275
+ }
276
+ const r = {
277
+ target: n,
278
+ type: e,
279
+ listener: s
280
+ };
281
+ return n.addEventListener(e, s), r;
282
+ }
283
+ function p(n, e, s, t) {
284
+ return h(n, e, s, t, !0);
285
+ }
286
+ function v(n) {
287
+ n && n.target && (n.target.removeEventListener(n.type, n.listener), E(n));
288
+ }
289
+ class d extends S {
290
+ constructor() {
291
+ super(), this.on = /** @type {ObservableOnSignature<import("./events").EventsKey>} */
292
+ this.onInternal, this.once = /** @type {ObservableOnSignature<import("./events").EventsKey>} */
293
+ this.onceInternal, this.un = /** @type {ObservableOnSignature<void>} */
294
+ this.unInternal, this.revision_ = 0;
295
+ }
296
+ /**
297
+ * Increases the revision counter and dispatches a 'change' event.
298
+ * @api
299
+ */
300
+ changed() {
301
+ ++this.revision_, this.dispatchEvent(I.CHANGE);
302
+ }
303
+ /**
304
+ * Get the version number for this object. Each time the object is modified,
305
+ * its version number will be incremented.
306
+ * @return {number} Revision.
307
+ * @api
308
+ */
309
+ getRevision() {
310
+ return this.revision_;
311
+ }
312
+ /**
313
+ * @param {string|Array<string>} type Type.
314
+ * @param {function((Event|import("./events/Event").default)): ?} listener Listener.
315
+ * @return {import("./events.js").EventsKey|Array<import("./events.js").EventsKey>} Event key.
316
+ * @protected
317
+ */
318
+ onInternal(e, s) {
319
+ if (Array.isArray(e)) {
320
+ const t = e.length, i = new Array(t);
321
+ for (let r = 0; r < t; ++r)
322
+ i[r] = h(this, e[r], s);
323
+ return i;
324
+ }
325
+ return h(
326
+ this,
327
+ /** @type {string} */
328
+ e,
329
+ s
330
+ );
331
+ }
332
+ /**
333
+ * @param {string|Array<string>} type Type.
334
+ * @param {function((Event|import("./events/Event").default)): ?} listener Listener.
335
+ * @return {import("./events.js").EventsKey|Array<import("./events.js").EventsKey>} Event key.
336
+ * @protected
337
+ */
338
+ onceInternal(e, s) {
339
+ let t;
340
+ if (Array.isArray(e)) {
341
+ const i = e.length;
342
+ t = new Array(i);
343
+ for (let r = 0; r < i; ++r)
344
+ t[r] = p(this, e[r], s);
345
+ } else
346
+ t = p(
347
+ this,
348
+ /** @type {string} */
349
+ e,
350
+ s
351
+ );
352
+ return s.ol_key = t, t;
353
+ }
354
+ /**
355
+ * Unlisten for a certain type of event.
356
+ * @param {string|Array<string>} type Type.
357
+ * @param {function((Event|import("./events/Event").default)): ?} listener Listener.
358
+ * @protected
359
+ */
360
+ unInternal(e, s) {
361
+ const t = (
362
+ /** @type {Object} */
363
+ s.ol_key
364
+ );
365
+ if (t)
366
+ T(t);
367
+ else if (Array.isArray(e))
368
+ for (let i = 0, r = e.length; i < r; ++i)
369
+ this.removeEventListener(e[i], s);
370
+ else
371
+ this.removeEventListener(e, s);
372
+ }
373
+ }
374
+ d.prototype.on;
375
+ d.prototype.once;
376
+ d.prototype.un;
377
+ function T(n) {
378
+ if (Array.isArray(n))
379
+ for (let e = 0, s = n.length; e < s; ++e)
380
+ v(n[e]);
381
+ else
382
+ v(
383
+ /** @type {import("./events.js").EventsKey} */
384
+ n
385
+ );
386
+ }
387
+ function q() {
388
+ throw new Error("Unimplemented abstract method.");
389
+ }
390
+ let O = 0;
391
+ function C(n) {
392
+ return n.ol_uid || (n.ol_uid = String(++O));
393
+ }
394
+ class g extends m {
395
+ /**
396
+ * @param {string} type The event type.
397
+ * @param {string} key The property name.
398
+ * @param {*} oldValue The old value for `key`.
399
+ */
400
+ constructor(e, s, t) {
401
+ super(e), this.key = s, this.oldValue = t;
402
+ }
403
+ }
404
+ class K extends d {
405
+ /**
406
+ * @param {Object<string, *>} [values] An object with key-value pairs.
407
+ */
408
+ constructor(e) {
409
+ super(), this.on, this.once, this.un, C(this), this.values_ = null, e !== void 0 && this.setProperties(e);
410
+ }
411
+ /**
412
+ * Gets a value.
413
+ * @param {string} key Key name.
414
+ * @return {*} Value.
415
+ * @api
416
+ */
417
+ get(e) {
418
+ let s;
419
+ return this.values_ && this.values_.hasOwnProperty(e) && (s = this.values_[e]), s;
420
+ }
421
+ /**
422
+ * Get a list of object property names.
423
+ * @return {Array<string>} List of property names.
424
+ * @api
425
+ */
426
+ getKeys() {
427
+ return this.values_ && Object.keys(this.values_) || [];
428
+ }
429
+ /**
430
+ * Get an object of all property names and values.
431
+ * @return {Object<string, *>} Object.
432
+ * @api
433
+ */
434
+ getProperties() {
435
+ return this.values_ && Object.assign({}, this.values_) || {};
436
+ }
437
+ /**
438
+ * @return {boolean} The object has properties.
439
+ */
440
+ hasProperties() {
441
+ return !!this.values_;
442
+ }
443
+ /**
444
+ * @param {string} key Key name.
445
+ * @param {*} oldValue Old value.
446
+ */
447
+ notify(e, s) {
448
+ let t;
449
+ t = `change:${e}`, this.hasListener(t) && this.dispatchEvent(new g(t, e, s)), t = A.PROPERTYCHANGE, this.hasListener(t) && this.dispatchEvent(new g(t, e, s));
450
+ }
451
+ /**
452
+ * @param {string} key Key name.
453
+ * @param {import("./events.js").Listener} listener Listener.
454
+ */
455
+ addChangeListener(e, s) {
456
+ this.addEventListener(`change:${e}`, s);
457
+ }
458
+ /**
459
+ * @param {string} key Key name.
460
+ * @param {import("./events.js").Listener} listener Listener.
461
+ */
462
+ removeChangeListener(e, s) {
463
+ this.removeEventListener(`change:${e}`, s);
464
+ }
465
+ /**
466
+ * Sets a value.
467
+ * @param {string} key Key name.
468
+ * @param {*} value Value.
469
+ * @param {boolean} [silent] Update without triggering an event.
470
+ * @api
471
+ */
472
+ set(e, s, t) {
473
+ const i = this.values_ || (this.values_ = {});
474
+ if (t)
475
+ i[e] = s;
476
+ else {
477
+ const r = i[e];
478
+ i[e] = s, r !== s && this.notify(e, r);
479
+ }
480
+ }
481
+ /**
482
+ * Sets a collection of key-value pairs. Note that this changes any existing
483
+ * properties and adds new ones (it does not remove any existing properties).
484
+ * @param {Object<string, *>} values Values.
485
+ * @param {boolean} [silent] Update without triggering an event.
486
+ * @api
487
+ */
488
+ setProperties(e, s) {
489
+ for (const t in e)
490
+ this.set(t, e[t], s);
491
+ }
492
+ /**
493
+ * Apply any properties from another object without triggering events.
494
+ * @param {BaseObject} source The source object.
495
+ * @protected
496
+ */
497
+ applyProperties(e) {
498
+ e.values_ && Object.assign(this.values_ || (this.values_ = {}), e.values_);
499
+ }
500
+ /**
501
+ * Unsets a property.
502
+ * @param {string} key Key name.
503
+ * @param {boolean} [silent] Unset without triggering an event.
504
+ * @api
505
+ */
506
+ unset(e, s) {
507
+ if (this.values_ && e in this.values_) {
508
+ const t = this.values_[e];
509
+ delete this.values_[e], L(this.values_) && (this.values_ = null), s || this.notify(e, t);
510
+ }
511
+ }
512
+ }
513
+ const c = typeof navigator < "u" && typeof navigator.userAgent < "u" ? navigator.userAgent.toLowerCase() : "", W = c.includes("firefox"), x = c.includes("safari") && !c.includes("chrom"), z = x && (c.includes("version/15.4") || /cpu (os|iphone os) 15_4 like mac os x/.test(c)), H = c.includes("webkit") && !c.includes("edge"), Y = c.includes("macintosh"), J = typeof devicePixelRatio < "u" ? devicePixelRatio : 1, X = typeof WorkerGlobalScope < "u" && typeof OffscreenCanvas < "u" && self instanceof WorkerGlobalScope, $ = typeof Image < "u" && Image.prototype.decode, Q = function() {
514
+ let n = !1;
515
+ try {
516
+ const e = Object.defineProperty({}, "passive", {
517
+ get: function() {
518
+ n = !0;
519
+ }
520
+ });
521
+ window.addEventListener("_", null, e), window.removeEventListener("_", null, e);
522
+ } catch {
523
+ }
524
+ return n;
525
+ }(), P = {
526
+ 1: "The view center is not defined",
527
+ 2: "The view resolution is not defined",
528
+ 3: "The view rotation is not defined",
529
+ 4: "`image` and `src` cannot be provided at the same time",
530
+ 5: "`imgSize` must be set when `image` is provided",
531
+ 7: "`format` must be set when `url` is set",
532
+ 8: "Unknown `serverType` configured",
533
+ 9: "`url` must be configured or set using `#setUrl()`",
534
+ 10: "The default `geometryFunction` can only handle `Point` geometries",
535
+ 11: "`options.featureTypes` must be an Array",
536
+ 12: "`options.geometryName` must also be provided when `options.bbox` is set",
537
+ 13: "Invalid corner",
538
+ 14: "Invalid color",
539
+ 15: "Tried to get a value for a key that does not exist in the cache",
540
+ 16: "Tried to set a value for a key that is used already",
541
+ 17: "`resolutions` must be sorted in descending order",
542
+ 18: "Either `origin` or `origins` must be configured, never both",
543
+ 19: "Number of `tileSizes` and `resolutions` must be equal",
544
+ 20: "Number of `origins` and `resolutions` must be equal",
545
+ 22: "Either `tileSize` or `tileSizes` must be configured, never both",
546
+ 24: "Invalid extent or geometry provided as `geometry`",
547
+ 25: "Cannot fit empty extent provided as `geometry`",
548
+ 26: "Features must have an id set",
549
+ 27: "Features must have an id set",
550
+ 28: '`renderMode` must be `"hybrid"` or `"vector"`',
551
+ 30: "The passed `feature` was already added to the source",
552
+ 31: "Tried to enqueue an `element` that was already added to the queue",
553
+ 32: "Transformation matrix cannot be inverted",
554
+ 33: "Invalid units",
555
+ 34: "Invalid geometry layout",
556
+ 36: "Unknown SRS type",
557
+ 37: "Unknown geometry type found",
558
+ 38: "`styleMapValue` has an unknown type",
559
+ 39: "Unknown geometry type",
560
+ 40: "Expected `feature` to have a geometry",
561
+ 41: "Expected an `ol/style/Style` or an array of `ol/style/Style.js`",
562
+ 42: "Question unknown, the answer is 42",
563
+ 43: "Expected `layers` to be an array or a `Collection`",
564
+ 47: "Expected `controls` to be an array or an `ol/Collection`",
565
+ 48: "Expected `interactions` to be an array or an `ol/Collection`",
566
+ 49: "Expected `overlays` to be an array or an `ol/Collection`",
567
+ 50: "`options.featureTypes` should be an Array",
568
+ 51: "Either `url` or `tileJSON` options must be provided",
569
+ 52: "Unknown `serverType` configured",
570
+ 53: "Unknown `tierSizeCalculation` configured",
571
+ 55: "The {-y} placeholder requires a tile grid with extent",
572
+ 56: "mapBrowserEvent must originate from a pointer event",
573
+ 57: "At least 2 conditions are required",
574
+ 59: "Invalid command found in the PBF",
575
+ 60: "Missing or invalid `size`",
576
+ 61: "Cannot determine IIIF Image API version from provided image information JSON",
577
+ 62: "A `WebGLArrayBuffer` must either be of type `ELEMENT_ARRAY_BUFFER` or `ARRAY_BUFFER`",
578
+ 64: "Layer opacity must be a number",
579
+ 66: "`forEachFeatureAtCoordinate` cannot be used on a WebGL layer if the hit detection logic has not been enabled. This is done by providing adequate shaders using the `hitVertexShader` and `hitFragmentShader` properties of `WebGLPointsLayerRenderer`",
580
+ 67: "A layer can only be added to the map once. Use either `layer.setMap()` or `map.addLayer()`, not both",
581
+ 68: "A VectorTile source can only be rendered if it has a projection compatible with the view projection",
582
+ 69: "`width` or `height` cannot be provided together with `scale`"
583
+ };
584
+ class F extends Error {
585
+ /**
586
+ * @param {number} code Error code.
587
+ */
588
+ constructor(e) {
589
+ const s = P[e];
590
+ super(s), this.code = e, this.name = "AssertionError", this.message = s;
591
+ }
592
+ }
593
+ function Z(n, e) {
594
+ if (!n)
595
+ throw new F(e);
596
+ }
597
+ function ee(n, e, s) {
598
+ return Math.min(Math.max(n, e), s);
599
+ }
600
+ function te(n, e, s, t, i, r) {
601
+ const a = i - s, o = r - t;
602
+ if (a !== 0 || o !== 0) {
603
+ const l = ((n - s) * a + (e - t) * o) / (a * a + o * o);
604
+ l > 1 ? (s = i, t = r) : l > 0 && (s += a * l, t += o * l);
605
+ }
606
+ return M(n, e, s, t);
607
+ }
608
+ function M(n, e, s, t) {
609
+ const i = s - n, r = t - e;
610
+ return i * i + r * r;
611
+ }
612
+ function ne(n) {
613
+ const e = n.length;
614
+ for (let t = 0; t < e; t++) {
615
+ let i = t, r = Math.abs(n[t][t]);
616
+ for (let o = t + 1; o < e; o++) {
617
+ const l = Math.abs(n[o][t]);
618
+ l > r && (r = l, i = o);
619
+ }
620
+ if (r === 0)
621
+ return null;
622
+ const a = n[i];
623
+ n[i] = n[t], n[t] = a;
624
+ for (let o = t + 1; o < e; o++) {
625
+ const l = -n[o][t] / n[t][t];
626
+ for (let u = t; u < e + 1; u++)
627
+ t == u ? n[o][u] = 0 : n[o][u] += l * n[t][u];
628
+ }
629
+ }
630
+ const s = new Array(e);
631
+ for (let t = e - 1; t >= 0; t--) {
632
+ s[t] = n[t][e] / n[t][t];
633
+ for (let i = t - 1; i >= 0; i--)
634
+ n[i][e] -= n[i][t] * s[t];
635
+ }
636
+ return s;
637
+ }
638
+ function se(n) {
639
+ return n * Math.PI / 180;
640
+ }
641
+ function ie(n, e) {
642
+ const s = n % e;
643
+ return s * e < 0 ? s + e : s;
644
+ }
645
+ function re(n, e, s) {
646
+ return n + s * (e - n);
647
+ }
648
+ function _(n, e) {
649
+ const s = Math.pow(10, e);
650
+ return Math.round(n * s) / s;
651
+ }
652
+ function oe(n, e) {
653
+ return Math.floor(_(n, e));
654
+ }
655
+ function ae(n, e) {
656
+ return Math.ceil(_(n, e));
657
+ }
658
+ export {
659
+ F as A,
660
+ K as B,
661
+ j as C,
662
+ w as D,
663
+ I as E,
664
+ k as F,
665
+ te as G,
666
+ H,
667
+ $ as I,
668
+ W as J,
669
+ J as K,
670
+ ne as L,
671
+ Y as M,
672
+ d as O,
673
+ Q as P,
674
+ z as S,
675
+ V as T,
676
+ f as V,
677
+ X as W,
678
+ Z as a,
679
+ q as b,
680
+ N as c,
681
+ re as d,
682
+ B as e,
683
+ m as f,
684
+ C as g,
685
+ A as h,
686
+ L as i,
687
+ E as j,
688
+ R as k,
689
+ h as l,
690
+ ee as m,
691
+ p as n,
692
+ S as o,
693
+ G as p,
694
+ U as q,
695
+ ae as r,
696
+ M as s,
697
+ _ as t,
698
+ v as u,
699
+ oe as v,
700
+ ie as w,
701
+ D as x,
702
+ y,
703
+ se as z
704
+ };