@datagouv/components-next 1.0.2-dev.113 → 1.0.2-dev.115
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.
- package/dist/{Control-ZFh5ta_U.js → Control-b-43UT2B.js} +10 -10
- package/dist/{Datafair.client-CKB2P_X1.js → Datafair.client-BH351yV9.js} +4 -4
- package/dist/{Event-DSQcW7OF.js → Event-py_AAwJY.js} +18 -18
- package/dist/{Image-BijNEG0p.js → Image-BHQYZWzH.js} +23 -23
- package/dist/{JsonPreview.client-Bx11-jfT.js → JsonPreview.client-CawLfTe_.js} +5 -5
- package/dist/{Map-BUtPf5GN.js → Map-CtP7leHl.js} +1313 -1173
- package/dist/{MapContainer.client-CdZSeT_L.js → MapContainer.client-DN8kHTOA.js} +17 -17
- package/dist/{OSM-D4MTdBtk.js → OSM-gdDSIsDA.js} +15 -23
- package/dist/{PdfPreview.client-Bh9lP-qU.js → PdfPreview.client-BGOycK0h.js} +6 -10
- package/dist/Pmtiles.client-CRaI4U8S.js +26123 -0
- package/dist/{PreviewWrapper.vue_vue_type_script_setup_true_lang-BnC7vWGP.js → PreviewWrapper.vue_vue_type_script_setup_true_lang-DAddoRna.js} +2 -2
- package/dist/{ScaleLine-hJQIqcZm.js → ScaleLine-hG-FhNqy.js} +2 -2
- package/dist/{Tile-Dcl7oIVu.js → Tile-D6rFonpT.js} +163 -166
- package/dist/{TileImage-BJeHipMX.js → TileImage-cfrEgz5y.js} +131 -119
- package/dist/{View-xp_P_OHw.js → View-vp7vDb9q.js} +169 -119
- package/dist/{XmlPreview.client-oFAOv828.js → XmlPreview.client-Dyv0J4kw.js} +5 -5
- package/dist/{common-BjQlan3k.js → common-C8efyyuc.js} +49 -49
- package/dist/components-next.css +1 -52
- package/dist/components-next.js +36 -36
- package/dist/components.css +2 -2
- package/dist/{index-CxCuKQ81.js → index-_qLRU0Z5.js} +6382 -6057
- package/dist/{leaflet-src-7m1mB8LI.js → leaflet-src-D_sX6kLJ.js} +162 -164
- package/dist/{main-CQ9ZQG7n.js → main-CR8bhz_w.js} +19161 -20321
- package/dist/{proj-CsNo9yH1.js → proj-CsjVeojN.js} +322 -306
- package/dist/{text-clamp.esm-B5kW_XMt.js → text-clamp.esm-DVseBqZZ.js} +4 -4
- package/dist/{tilecoord-A0fLnBZr.js → tilecoord-CPcQJnrF.js} +270 -261
- package/dist/{vue3-json-viewer-BXwup7nO.js → vue3-json-viewer-CJLQFzXZ.js} +10 -16
- package/dist/{vue3-xml-viewer.common-B9qp90K_.js → vue3-xml-viewer.common-DRgxPToX.js} +1 -1
- package/package.json +34 -34
- package/src/components/ResourceAccordion/Pmtiles.client.vue +3 -1
- package/dist/Pmtiles.client-Bi46wN14.js +0 -25185
|
@@ -5,7 +5,38 @@ const Hn = {
|
|
|
5
5
|
* @api
|
|
6
6
|
*/
|
|
7
7
|
PROPERTYCHANGE: "propertychange"
|
|
8
|
-
}
|
|
8
|
+
};
|
|
9
|
+
function Cn(n) {
|
|
10
|
+
for (const t in n)
|
|
11
|
+
delete n[t];
|
|
12
|
+
}
|
|
13
|
+
function Kn(n) {
|
|
14
|
+
let t;
|
|
15
|
+
for (t in n)
|
|
16
|
+
return !1;
|
|
17
|
+
return !t;
|
|
18
|
+
}
|
|
19
|
+
function k(n, t, s, r, e) {
|
|
20
|
+
if (e) {
|
|
21
|
+
const o = s;
|
|
22
|
+
s = function(a) {
|
|
23
|
+
return n.removeEventListener(t, s), o.call(r ?? this, a);
|
|
24
|
+
};
|
|
25
|
+
} else r && r !== n && (s = s.bind(r));
|
|
26
|
+
const i = {
|
|
27
|
+
target: n,
|
|
28
|
+
type: t,
|
|
29
|
+
listener: s
|
|
30
|
+
};
|
|
31
|
+
return n.addEventListener(t, s), i;
|
|
32
|
+
}
|
|
33
|
+
function un(n, t, s, r) {
|
|
34
|
+
return k(n, t, s, r, !0);
|
|
35
|
+
}
|
|
36
|
+
function hn(n) {
|
|
37
|
+
n && n.target && (n.target.removeEventListener(n.type, n.listener), Cn(n));
|
|
38
|
+
}
|
|
39
|
+
const Vn = {
|
|
9
40
|
/**
|
|
10
41
|
* Generic change event. Triggered when the revision counter is increased.
|
|
11
42
|
* @event module:ol/events/Event~BaseEvent#change
|
|
@@ -27,7 +58,7 @@ const Hn = {
|
|
|
27
58
|
TOUCHMOVE: "touchmove",
|
|
28
59
|
WHEEL: "wheel"
|
|
29
60
|
};
|
|
30
|
-
class
|
|
61
|
+
class jn {
|
|
31
62
|
constructor() {
|
|
32
63
|
this.disposed = !1;
|
|
33
64
|
}
|
|
@@ -44,18 +75,18 @@ class Vn {
|
|
|
44
75
|
disposeInternal() {
|
|
45
76
|
}
|
|
46
77
|
}
|
|
47
|
-
function
|
|
78
|
+
function jt(n, t, s) {
|
|
48
79
|
let r, e;
|
|
49
|
-
s = s ||
|
|
80
|
+
s = s || In;
|
|
50
81
|
let i = 0, o = n.length, a = !1;
|
|
51
82
|
for (; i < o; )
|
|
52
83
|
r = i + (o - i >> 1), e = +s(n[r], t), e < 0 ? i = r + 1 : (o = r, a = !e);
|
|
53
84
|
return a ? i : ~i;
|
|
54
85
|
}
|
|
55
|
-
function
|
|
86
|
+
function In(n, t) {
|
|
56
87
|
return n > t ? 1 : n < t ? -1 : 0;
|
|
57
88
|
}
|
|
58
|
-
function
|
|
89
|
+
function kt(n, t) {
|
|
59
90
|
return n < t ? 1 : n > t ? -1 : 0;
|
|
60
91
|
}
|
|
61
92
|
function zt(n, t, s) {
|
|
@@ -94,18 +125,18 @@ function zt(n, t, s) {
|
|
|
94
125
|
}
|
|
95
126
|
return r - 1;
|
|
96
127
|
}
|
|
97
|
-
function
|
|
128
|
+
function Jt(n, t, s) {
|
|
98
129
|
for (; t < s; ) {
|
|
99
130
|
const r = n[t];
|
|
100
131
|
n[t] = n[s], n[s] = r, ++t, --s;
|
|
101
132
|
}
|
|
102
133
|
}
|
|
103
|
-
function
|
|
134
|
+
function Qt(n, t) {
|
|
104
135
|
const s = Array.isArray(t) ? t : [t], r = s.length;
|
|
105
136
|
for (let e = 0; e < r; e++)
|
|
106
137
|
n[n.length] = s[e];
|
|
107
138
|
}
|
|
108
|
-
function
|
|
139
|
+
function kn(n, t) {
|
|
109
140
|
const s = n.length;
|
|
110
141
|
if (s !== t.length)
|
|
111
142
|
return !1;
|
|
@@ -114,8 +145,8 @@ function jn(n, t) {
|
|
|
114
145
|
return !1;
|
|
115
146
|
return !0;
|
|
116
147
|
}
|
|
117
|
-
function
|
|
118
|
-
const r = t ||
|
|
148
|
+
function Zt(n, t, s) {
|
|
149
|
+
const r = t || In;
|
|
119
150
|
return n.every(function(e, i) {
|
|
120
151
|
if (i === 0)
|
|
121
152
|
return !0;
|
|
@@ -123,22 +154,22 @@ function Qt(n, t, s) {
|
|
|
123
154
|
return !(o > 0 || o === 0);
|
|
124
155
|
});
|
|
125
156
|
}
|
|
126
|
-
function
|
|
157
|
+
function xt() {
|
|
127
158
|
return !0;
|
|
128
159
|
}
|
|
129
|
-
function
|
|
160
|
+
function ns() {
|
|
130
161
|
return !1;
|
|
131
162
|
}
|
|
132
|
-
function
|
|
163
|
+
function gn() {
|
|
133
164
|
}
|
|
134
|
-
function
|
|
165
|
+
function ts(n) {
|
|
135
166
|
let t, s, r;
|
|
136
167
|
return function() {
|
|
137
168
|
const e = Array.prototype.slice.call(arguments);
|
|
138
|
-
return (!s || this !== r || !
|
|
169
|
+
return (!s || this !== r || !kn(e, s)) && (r = this, s = e, t = n.apply(this, arguments)), t;
|
|
139
170
|
};
|
|
140
171
|
}
|
|
141
|
-
function
|
|
172
|
+
function ss(n) {
|
|
142
173
|
function t() {
|
|
143
174
|
let s;
|
|
144
175
|
try {
|
|
@@ -150,17 +181,7 @@ function ts(n) {
|
|
|
150
181
|
}
|
|
151
182
|
return t();
|
|
152
183
|
}
|
|
153
|
-
|
|
154
|
-
for (const t in n)
|
|
155
|
-
delete n[t];
|
|
156
|
-
}
|
|
157
|
-
function zn(n) {
|
|
158
|
-
let t;
|
|
159
|
-
for (t in n)
|
|
160
|
-
return !1;
|
|
161
|
-
return !t;
|
|
162
|
-
}
|
|
163
|
-
class pn {
|
|
184
|
+
class On {
|
|
164
185
|
/**
|
|
165
186
|
* @param {string} type Type.
|
|
166
187
|
*/
|
|
@@ -183,7 +204,7 @@ class pn {
|
|
|
183
204
|
this.propagationStopped = !0;
|
|
184
205
|
}
|
|
185
206
|
}
|
|
186
|
-
class
|
|
207
|
+
class zn extends jn {
|
|
187
208
|
/**
|
|
188
209
|
* @param {*} [target] Default event target for dispatched events.
|
|
189
210
|
*/
|
|
@@ -214,7 +235,7 @@ class kn extends Vn {
|
|
|
214
235
|
const s = typeof t == "string", r = s ? t : t.type, e = this.listeners_ && this.listeners_[r];
|
|
215
236
|
if (!e)
|
|
216
237
|
return;
|
|
217
|
-
const i = s ? new
|
|
238
|
+
const i = s ? new On(t) : (
|
|
218
239
|
/** @type {Event} */
|
|
219
240
|
t
|
|
220
241
|
);
|
|
@@ -232,7 +253,7 @@ class kn extends Vn {
|
|
|
232
253
|
if (--o[r] === 0) {
|
|
233
254
|
let l = a[r];
|
|
234
255
|
for (delete a[r]; l--; )
|
|
235
|
-
this.removeEventListener(r,
|
|
256
|
+
this.removeEventListener(r, gn);
|
|
236
257
|
delete o[r];
|
|
237
258
|
}
|
|
238
259
|
return c;
|
|
@@ -242,7 +263,7 @@ class kn extends Vn {
|
|
|
242
263
|
* @override
|
|
243
264
|
*/
|
|
244
265
|
disposeInternal() {
|
|
245
|
-
this.listeners_ &&
|
|
266
|
+
this.listeners_ && Cn(this.listeners_);
|
|
246
267
|
}
|
|
247
268
|
/**
|
|
248
269
|
* Get the listeners for a specified event type. Listeners are returned in the
|
|
@@ -273,33 +294,13 @@ class kn extends Vn {
|
|
|
273
294
|
if (!r)
|
|
274
295
|
return;
|
|
275
296
|
const e = r.indexOf(s);
|
|
276
|
-
e !== -1 && (this.pendingRemovals_ && t in this.pendingRemovals_ ? (r[e] =
|
|
297
|
+
e !== -1 && (this.pendingRemovals_ && t in this.pendingRemovals_ ? (r[e] = gn, ++this.pendingRemovals_[t]) : (r.splice(e, 1), r.length === 0 && delete this.listeners_[t]));
|
|
277
298
|
}
|
|
278
299
|
}
|
|
279
|
-
|
|
280
|
-
if (e) {
|
|
281
|
-
const o = s;
|
|
282
|
-
s = function(a) {
|
|
283
|
-
return n.removeEventListener(t, s), o.call(r ?? this, a);
|
|
284
|
-
};
|
|
285
|
-
} else r && r !== n && (s = s.bind(r));
|
|
286
|
-
const i = {
|
|
287
|
-
target: n,
|
|
288
|
-
type: t,
|
|
289
|
-
listener: s
|
|
290
|
-
};
|
|
291
|
-
return n.addEventListener(t, s), i;
|
|
292
|
-
}
|
|
293
|
-
function hn(n, t, s, r) {
|
|
294
|
-
return z(n, t, s, r, !0);
|
|
295
|
-
}
|
|
296
|
-
function gn(n) {
|
|
297
|
-
n && n.target && (n.target.removeEventListener(n.type, n.listener), In(n));
|
|
298
|
-
}
|
|
299
|
-
class q extends kn {
|
|
300
|
+
class q extends zn {
|
|
300
301
|
constructor() {
|
|
301
|
-
super(), this.on = /** @type {ObservableOnSignature<import("./events").EventsKey>} */
|
|
302
|
-
this.onInternal, this.once = /** @type {ObservableOnSignature<import("./events").EventsKey>} */
|
|
302
|
+
super(), this.on = /** @type {ObservableOnSignature<import("./events.js").EventsKey>} */
|
|
303
|
+
this.onInternal, this.once = /** @type {ObservableOnSignature<import("./events.js").EventsKey>} */
|
|
303
304
|
this.onceInternal, this.un = /** @type {ObservableOnSignature<void>} */
|
|
304
305
|
this.unInternal, this.revision_ = 0;
|
|
305
306
|
}
|
|
@@ -308,7 +309,7 @@ class q extends kn {
|
|
|
308
309
|
* @api
|
|
309
310
|
*/
|
|
310
311
|
changed() {
|
|
311
|
-
++this.revision_, this.dispatchEvent(
|
|
312
|
+
++this.revision_, this.dispatchEvent(Vn.CHANGE);
|
|
312
313
|
}
|
|
313
314
|
/**
|
|
314
315
|
* Get the version number for this object. Each time the object is modified,
|
|
@@ -321,7 +322,7 @@ class q extends kn {
|
|
|
321
322
|
}
|
|
322
323
|
/**
|
|
323
324
|
* @param {string|Array<string>} type Type.
|
|
324
|
-
* @param {function((Event|import("./events/Event").default)): ?} listener Listener.
|
|
325
|
+
* @param {function((Event|import("./events/Event.js").default)): ?} listener Listener.
|
|
325
326
|
* @return {import("./events.js").EventsKey|Array<import("./events.js").EventsKey>} Event key.
|
|
326
327
|
* @protected
|
|
327
328
|
*/
|
|
@@ -329,10 +330,10 @@ class q extends kn {
|
|
|
329
330
|
if (Array.isArray(t)) {
|
|
330
331
|
const r = t.length, e = new Array(r);
|
|
331
332
|
for (let i = 0; i < r; ++i)
|
|
332
|
-
e[i] =
|
|
333
|
+
e[i] = k(this, t[i], s);
|
|
333
334
|
return e;
|
|
334
335
|
}
|
|
335
|
-
return
|
|
336
|
+
return k(
|
|
336
337
|
this,
|
|
337
338
|
/** @type {string} */
|
|
338
339
|
t,
|
|
@@ -341,7 +342,7 @@ class q extends kn {
|
|
|
341
342
|
}
|
|
342
343
|
/**
|
|
343
344
|
* @param {string|Array<string>} type Type.
|
|
344
|
-
* @param {function((Event|import("./events/Event").default)): ?} listener Listener.
|
|
345
|
+
* @param {function((Event|import("./events/Event.js").default)): ?} listener Listener.
|
|
345
346
|
* @return {import("./events.js").EventsKey|Array<import("./events.js").EventsKey>} Event key.
|
|
346
347
|
* @protected
|
|
347
348
|
*/
|
|
@@ -351,9 +352,9 @@ class q extends kn {
|
|
|
351
352
|
const e = t.length;
|
|
352
353
|
r = new Array(e);
|
|
353
354
|
for (let i = 0; i < e; ++i)
|
|
354
|
-
r[i] =
|
|
355
|
+
r[i] = un(this, t[i], s);
|
|
355
356
|
} else
|
|
356
|
-
r =
|
|
357
|
+
r = un(
|
|
357
358
|
this,
|
|
358
359
|
/** @type {string} */
|
|
359
360
|
t,
|
|
@@ -364,7 +365,7 @@ class q extends kn {
|
|
|
364
365
|
/**
|
|
365
366
|
* Unlisten for a certain type of event.
|
|
366
367
|
* @param {string|Array<string>} type Type.
|
|
367
|
-
* @param {function((Event|import("./events/Event").default)): ?} listener Listener.
|
|
368
|
+
* @param {function((Event|import("./events/Event.js").default)): ?} listener Listener.
|
|
368
369
|
* @protected
|
|
369
370
|
*/
|
|
370
371
|
unInternal(t, s) {
|
|
@@ -387,21 +388,21 @@ q.prototype.un;
|
|
|
387
388
|
function Jn(n) {
|
|
388
389
|
if (Array.isArray(n))
|
|
389
390
|
for (let t = 0, s = n.length; t < s; ++t)
|
|
390
|
-
|
|
391
|
+
hn(n[t]);
|
|
391
392
|
else
|
|
392
|
-
|
|
393
|
+
hn(
|
|
393
394
|
/** @type {import("./events.js").EventsKey} */
|
|
394
395
|
n
|
|
395
396
|
);
|
|
396
397
|
}
|
|
397
|
-
function
|
|
398
|
+
function rs() {
|
|
398
399
|
throw new Error("Unimplemented abstract method.");
|
|
399
400
|
}
|
|
400
401
|
let Qn = 0;
|
|
401
402
|
function Zn(n) {
|
|
402
403
|
return n.ol_uid || (n.ol_uid = String(++Qn));
|
|
403
404
|
}
|
|
404
|
-
class dn extends
|
|
405
|
+
class dn extends On {
|
|
405
406
|
/**
|
|
406
407
|
* @param {string} type The event type.
|
|
407
408
|
* @param {string} key The property name.
|
|
@@ -411,9 +412,9 @@ class dn extends pn {
|
|
|
411
412
|
super(t), this.key = s, this.oldValue = r;
|
|
412
413
|
}
|
|
413
414
|
}
|
|
414
|
-
class
|
|
415
|
+
class es extends q {
|
|
415
416
|
/**
|
|
416
|
-
* @param {
|
|
417
|
+
* @param {NoInfer<Properties>} [values] An object with key-value pairs.
|
|
417
418
|
*/
|
|
418
419
|
constructor(t) {
|
|
419
420
|
super(), this.on, this.once, this.un, Zn(this), this.values_ = null, t !== void 0 && this.setProperties(t);
|
|
@@ -438,15 +439,18 @@ class rs extends q {
|
|
|
438
439
|
}
|
|
439
440
|
/**
|
|
440
441
|
* Get an object of all property names and values.
|
|
441
|
-
* @return {
|
|
442
|
+
* @return {NoInfer<Properties>} Object.
|
|
442
443
|
* @api
|
|
443
444
|
*/
|
|
444
445
|
getProperties() {
|
|
445
|
-
return
|
|
446
|
+
return (
|
|
447
|
+
/** @type {NoInfer<Properties>} */
|
|
448
|
+
this.values_ && Object.assign({}, this.values_) || {}
|
|
449
|
+
);
|
|
446
450
|
}
|
|
447
451
|
/**
|
|
448
452
|
* Get an object of all property names and values.
|
|
449
|
-
* @return {
|
|
453
|
+
* @return {Partial<NoInfer<Properties>>?} Object.
|
|
450
454
|
*/
|
|
451
455
|
getPropertiesInternal() {
|
|
452
456
|
return this.values_;
|
|
@@ -498,7 +502,7 @@ class rs extends q {
|
|
|
498
502
|
/**
|
|
499
503
|
* Sets a collection of key-value pairs. Note that this changes any existing
|
|
500
504
|
* properties and adds new ones (it does not remove any existing properties).
|
|
501
|
-
* @param {
|
|
505
|
+
* @param {Partial<NoInfer<Properties>>} values Values.
|
|
502
506
|
* @param {boolean} [silent] Update without triggering an event.
|
|
503
507
|
* @api
|
|
504
508
|
*/
|
|
@@ -523,11 +527,11 @@ class rs extends q {
|
|
|
523
527
|
unset(t, s) {
|
|
524
528
|
if (this.values_ && t in this.values_) {
|
|
525
529
|
const r = this.values_[t];
|
|
526
|
-
delete this.values_[t],
|
|
530
|
+
delete this.values_[t], Kn(this.values_) && (this.values_ = null), s || this.notify(t, r);
|
|
527
531
|
}
|
|
528
532
|
}
|
|
529
533
|
}
|
|
530
|
-
function
|
|
534
|
+
function xn(n, t, s) {
|
|
531
535
|
return Math.min(Math.max(n, t), s);
|
|
532
536
|
}
|
|
533
537
|
function is(n, t, s, r, e, i) {
|
|
@@ -536,9 +540,9 @@ function is(n, t, s, r, e, i) {
|
|
|
536
540
|
const c = ((n - s) * o + (t - r) * a) / (o * o + a * a);
|
|
537
541
|
c > 1 ? (s = e, r = i) : c > 0 && (s += o * c, r += a * c);
|
|
538
542
|
}
|
|
539
|
-
return
|
|
543
|
+
return nt(n, t, s, r);
|
|
540
544
|
}
|
|
541
|
-
function
|
|
545
|
+
function nt(n, t, s, r) {
|
|
542
546
|
const e = s - n, i = r - t;
|
|
543
547
|
return e * e + i * i;
|
|
544
548
|
}
|
|
@@ -594,7 +598,7 @@ function fs(n, t) {
|
|
|
594
598
|
function us(n, t) {
|
|
595
599
|
return Math.ceil(nn(n, t));
|
|
596
600
|
}
|
|
597
|
-
function
|
|
601
|
+
function z(n, t, s) {
|
|
598
602
|
if (n >= t && n < s)
|
|
599
603
|
return n;
|
|
600
604
|
const r = s - t;
|
|
@@ -609,12 +613,12 @@ const E = {
|
|
|
609
613
|
LEFT: 16
|
|
610
614
|
};
|
|
611
615
|
function hs(n) {
|
|
612
|
-
const t =
|
|
616
|
+
const t = Gn();
|
|
613
617
|
for (let s = 0, r = n.length; s < r; ++s)
|
|
614
|
-
|
|
618
|
+
rt(t, n[s]);
|
|
615
619
|
return t;
|
|
616
620
|
}
|
|
617
|
-
function
|
|
621
|
+
function tt(n, t, s) {
|
|
618
622
|
const r = Math.min.apply(null, n), e = Math.min.apply(null, t), i = Math.max.apply(null, n), o = Math.max.apply(null, t);
|
|
619
623
|
return B(r, e, i, o, s);
|
|
620
624
|
}
|
|
@@ -634,12 +638,12 @@ function Es(n, t, s) {
|
|
|
634
638
|
return t < n[0] ? r = n[0] - t : n[2] < t ? r = t - n[2] : r = 0, s < n[1] ? e = n[1] - s : n[3] < s ? e = s - n[3] : e = 0, r * r + e * e;
|
|
635
639
|
}
|
|
636
640
|
function Ms(n, t) {
|
|
637
|
-
return
|
|
641
|
+
return st(n, t[0], t[1]);
|
|
638
642
|
}
|
|
639
643
|
function Ps(n, t) {
|
|
640
644
|
return n[0] <= t[0] && t[2] <= n[2] && n[1] <= t[1] && t[3] <= n[3];
|
|
641
645
|
}
|
|
642
|
-
function
|
|
646
|
+
function st(n, t, s) {
|
|
643
647
|
return n[0] <= t && t <= n[2] && n[1] <= s && s <= n[3];
|
|
644
648
|
}
|
|
645
649
|
function En(n, t) {
|
|
@@ -647,7 +651,7 @@ function En(n, t) {
|
|
|
647
651
|
let c = E.UNKNOWN;
|
|
648
652
|
return o < s ? c = c | E.LEFT : o > e && (c = c | E.RIGHT), a < r ? c = c | E.BELOW : a > i && (c = c | E.ABOVE), c === E.UNKNOWN && (c = E.INTERSECTING), c;
|
|
649
653
|
}
|
|
650
|
-
function
|
|
654
|
+
function Gn() {
|
|
651
655
|
return [1 / 0, 1 / 0, -1 / 0, -1 / 0];
|
|
652
656
|
}
|
|
653
657
|
function B(n, t, s, r, e) {
|
|
@@ -662,7 +666,7 @@ function _s(n, t) {
|
|
|
662
666
|
}
|
|
663
667
|
function ms(n, t, s, r, e) {
|
|
664
668
|
const i = tn(e);
|
|
665
|
-
return
|
|
669
|
+
return et(i, n, t, s, r);
|
|
666
670
|
}
|
|
667
671
|
function ws(n, t) {
|
|
668
672
|
return n[0] == t[0] && n[2] == t[2] && n[1] == t[1] && n[3] == t[3];
|
|
@@ -670,50 +674,50 @@ function ws(n, t) {
|
|
|
670
674
|
function Ts(n, t) {
|
|
671
675
|
return t[0] < n[0] && (n[0] = t[0]), t[2] > n[2] && (n[2] = t[2]), t[1] < n[1] && (n[1] = t[1]), t[3] > n[3] && (n[3] = t[3]), n;
|
|
672
676
|
}
|
|
673
|
-
function
|
|
677
|
+
function rt(n, t) {
|
|
674
678
|
t[0] < n[0] && (n[0] = t[0]), t[0] > n[2] && (n[2] = t[0]), t[1] < n[1] && (n[1] = t[1]), t[1] > n[3] && (n[3] = t[1]);
|
|
675
679
|
}
|
|
676
|
-
function
|
|
680
|
+
function et(n, t, s, r, e) {
|
|
677
681
|
for (; s < r; s += e)
|
|
678
|
-
|
|
682
|
+
it(n, t[s], t[s + 1]);
|
|
679
683
|
return n;
|
|
680
684
|
}
|
|
681
|
-
function
|
|
685
|
+
function it(n, t, s) {
|
|
682
686
|
n[0] = Math.min(n[0], t), n[1] = Math.min(n[1], s), n[2] = Math.max(n[2], t), n[3] = Math.max(n[3], s);
|
|
683
687
|
}
|
|
684
688
|
function ys(n, t) {
|
|
685
689
|
let s;
|
|
686
|
-
return s = t(
|
|
690
|
+
return s = t(Ln(n)), s || (s = t(An(n)), s) || (s = t(pn(n)), s) || (s = t(Un(n)), s) ? s : !1;
|
|
687
691
|
}
|
|
688
692
|
function vs(n) {
|
|
689
693
|
let t = 0;
|
|
690
|
-
return bn(n) || (t =
|
|
694
|
+
return bn(n) || (t = G(n) * ct(n)), t;
|
|
691
695
|
}
|
|
692
|
-
function
|
|
696
|
+
function Ln(n) {
|
|
693
697
|
return [n[0], n[1]];
|
|
694
698
|
}
|
|
695
|
-
function
|
|
699
|
+
function An(n) {
|
|
696
700
|
return [n[2], n[1]];
|
|
697
701
|
}
|
|
698
|
-
function
|
|
702
|
+
function ot(n) {
|
|
699
703
|
return [(n[0] + n[2]) / 2, (n[1] + n[3]) / 2];
|
|
700
704
|
}
|
|
701
705
|
function Rs(n, t) {
|
|
702
706
|
let s;
|
|
703
707
|
if (t === "bottom-left")
|
|
704
|
-
s = Gn(n);
|
|
705
|
-
else if (t === "bottom-right")
|
|
706
708
|
s = Ln(n);
|
|
707
|
-
else if (t === "
|
|
709
|
+
else if (t === "bottom-right")
|
|
708
710
|
s = An(n);
|
|
709
|
-
else if (t === "top-
|
|
711
|
+
else if (t === "top-left")
|
|
710
712
|
s = Un(n);
|
|
713
|
+
else if (t === "top-right")
|
|
714
|
+
s = pn(n);
|
|
711
715
|
else
|
|
712
716
|
throw new Error("Invalid corner");
|
|
713
717
|
return s;
|
|
714
718
|
}
|
|
715
719
|
function Ss(n, t, s, r, e) {
|
|
716
|
-
const [i, o, a, c, l, f, h, u] =
|
|
720
|
+
const [i, o, a, c, l, f, h, u] = at(
|
|
717
721
|
n,
|
|
718
722
|
t,
|
|
719
723
|
s,
|
|
@@ -727,7 +731,7 @@ function Ss(n, t, s, r, e) {
|
|
|
727
731
|
e
|
|
728
732
|
);
|
|
729
733
|
}
|
|
730
|
-
function
|
|
734
|
+
function at(n, t, s, r) {
|
|
731
735
|
const e = t * r[0] / 2, i = t * r[1] / 2, o = Math.cos(s), a = Math.sin(s), c = e * o, l = e * a, f = i * o, h = i * a, u = n[0], g = n[1];
|
|
732
736
|
return [
|
|
733
737
|
u - c + h,
|
|
@@ -742,23 +746,23 @@ function ot(n, t, s, r) {
|
|
|
742
746
|
g - l - f
|
|
743
747
|
];
|
|
744
748
|
}
|
|
745
|
-
function
|
|
749
|
+
function ct(n) {
|
|
746
750
|
return n[3] - n[1];
|
|
747
751
|
}
|
|
748
752
|
function Cs(n, t, s) {
|
|
749
|
-
const r = s ||
|
|
750
|
-
return
|
|
753
|
+
const r = s || Gn();
|
|
754
|
+
return lt(n, t) ? (n[0] > t[0] ? r[0] = n[0] : r[0] = t[0], n[1] > t[1] ? r[1] = n[1] : r[1] = t[1], n[2] < t[2] ? r[2] = n[2] : r[2] = t[2], n[3] < t[3] ? r[3] = n[3] : r[3] = t[3]) : tn(r), r;
|
|
751
755
|
}
|
|
752
|
-
function
|
|
756
|
+
function Un(n) {
|
|
753
757
|
return [n[0], n[3]];
|
|
754
758
|
}
|
|
755
|
-
function
|
|
759
|
+
function pn(n) {
|
|
756
760
|
return [n[2], n[3]];
|
|
757
761
|
}
|
|
758
|
-
function
|
|
762
|
+
function G(n) {
|
|
759
763
|
return n[2] - n[0];
|
|
760
764
|
}
|
|
761
|
-
function
|
|
765
|
+
function lt(n, t) {
|
|
762
766
|
return n[0] <= t[2] && n[2] >= t[0] && n[1] <= t[3] && n[3] >= t[1];
|
|
763
767
|
}
|
|
764
768
|
function bn(n) {
|
|
@@ -767,11 +771,11 @@ function bn(n) {
|
|
|
767
771
|
function Is(n, t) {
|
|
768
772
|
return t ? (t[0] = n[0], t[1] = n[1], t[2] = n[2], t[3] = n[3], t) : n;
|
|
769
773
|
}
|
|
770
|
-
function
|
|
774
|
+
function Os(n, t) {
|
|
771
775
|
const s = (n[2] - n[0]) / 2 * (t - 1), r = (n[3] - n[1]) / 2 * (t - 1);
|
|
772
776
|
n[0] -= s, n[2] += s, n[1] -= r, n[3] += r;
|
|
773
777
|
}
|
|
774
|
-
function
|
|
778
|
+
function Gs(n, t, s) {
|
|
775
779
|
let r = !1;
|
|
776
780
|
const e = En(n, t), i = En(n, s);
|
|
777
781
|
if (e === E.INTERSECTING || i === E.INTERSECTING)
|
|
@@ -783,7 +787,7 @@ function Os(n, t, s) {
|
|
|
783
787
|
}
|
|
784
788
|
return r;
|
|
785
789
|
}
|
|
786
|
-
function
|
|
790
|
+
function ft(n, t, s, r) {
|
|
787
791
|
if (bn(n))
|
|
788
792
|
return tn(s);
|
|
789
793
|
let e = [];
|
|
@@ -815,26 +819,26 @@ function lt(n, t, s, r) {
|
|
|
815
819
|
const i = [], o = [];
|
|
816
820
|
for (let a = 0, c = e.length; a < c; a += 2)
|
|
817
821
|
i.push(e[a]), o.push(e[a + 1]);
|
|
818
|
-
return
|
|
822
|
+
return tt(i, o, s);
|
|
819
823
|
}
|
|
820
|
-
function
|
|
821
|
-
const s = t.getExtent(), r =
|
|
824
|
+
function ut(n, t) {
|
|
825
|
+
const s = t.getExtent(), r = ot(n);
|
|
822
826
|
if (t.canWrapX() && (r[0] < s[0] || r[0] >= s[2])) {
|
|
823
|
-
const e =
|
|
827
|
+
const e = G(s), o = Math.floor(
|
|
824
828
|
(r[0] - s[0]) / e
|
|
825
829
|
) * e;
|
|
826
830
|
n[0] -= o, n[2] -= o;
|
|
827
831
|
}
|
|
828
832
|
return n;
|
|
829
833
|
}
|
|
830
|
-
function
|
|
834
|
+
function Ls(n, t, s) {
|
|
831
835
|
if (t.canWrapX()) {
|
|
832
836
|
const r = t.getExtent();
|
|
833
837
|
if (!isFinite(n[0]) || !isFinite(n[2]))
|
|
834
838
|
return [[r[0], n[1], r[2], n[3]]];
|
|
835
|
-
|
|
836
|
-
const e =
|
|
837
|
-
if (
|
|
839
|
+
ut(n, t);
|
|
840
|
+
const e = G(r);
|
|
841
|
+
if (G(n) > e && !s)
|
|
838
842
|
return [[r[0], n[1], r[2], n[3]]];
|
|
839
843
|
if (n[0] < r[0])
|
|
840
844
|
return [
|
|
@@ -849,15 +853,15 @@ function Gs(n, t, s) {
|
|
|
849
853
|
}
|
|
850
854
|
return [n];
|
|
851
855
|
}
|
|
852
|
-
function
|
|
856
|
+
function As(n, t) {
|
|
853
857
|
return n[0] += +t[0], n[1] += +t[1], n;
|
|
854
858
|
}
|
|
855
|
-
function
|
|
859
|
+
function ht(n, t) {
|
|
856
860
|
const s = n[0], r = n[1], e = t[0], i = t[1], o = e[0], a = e[1], c = i[0], l = i[1], f = c - o, h = l - a, u = f === 0 && h === 0 ? 0 : (f * (s - o) + h * (r - a)) / (f * f + h * h || 0);
|
|
857
861
|
let g, d;
|
|
858
862
|
return u <= 0 ? (g = o, d = a) : u >= 1 ? (g = c, d = l) : (g = o + u * f, d = a + u * h), [g, d];
|
|
859
863
|
}
|
|
860
|
-
function
|
|
864
|
+
function gt(n, t) {
|
|
861
865
|
let s = !0;
|
|
862
866
|
for (let r = n.length - 1; r >= 0; --r)
|
|
863
867
|
if (n[r] != t[r]) {
|
|
@@ -866,11 +870,11 @@ function ht(n, t) {
|
|
|
866
870
|
}
|
|
867
871
|
return s;
|
|
868
872
|
}
|
|
869
|
-
function
|
|
873
|
+
function Us(n, t) {
|
|
870
874
|
const s = Math.cos(t), r = Math.sin(t), e = n[0] * s - n[1] * r, i = n[1] * s + n[0] * r;
|
|
871
875
|
return n[0] = e, n[1] = i, n;
|
|
872
876
|
}
|
|
873
|
-
function
|
|
877
|
+
function ps(n, t) {
|
|
874
878
|
return n[0] *= t, n[1] *= t, n;
|
|
875
879
|
}
|
|
876
880
|
function Nn(n, t) {
|
|
@@ -881,22 +885,33 @@ function bs(n, t) {
|
|
|
881
885
|
return Math.sqrt(Nn(n, t));
|
|
882
886
|
}
|
|
883
887
|
function Ns(n, t) {
|
|
884
|
-
return Nn(n,
|
|
888
|
+
return Nn(n, ht(n, t));
|
|
885
889
|
}
|
|
886
890
|
function Fs(n, t) {
|
|
887
891
|
if (t.canWrapX()) {
|
|
888
|
-
const s =
|
|
892
|
+
const s = G(t.getExtent()), r = dt(n, t, s);
|
|
889
893
|
r && (n[0] -= r * s);
|
|
890
894
|
}
|
|
891
895
|
return n;
|
|
892
896
|
}
|
|
893
|
-
function
|
|
897
|
+
function dt(n, t, s) {
|
|
894
898
|
const r = t.getExtent();
|
|
895
899
|
let e = 0;
|
|
896
|
-
return t.canWrapX() && (n[0] < r[0] || n[0] > r[2]) && (s = s ||
|
|
900
|
+
return t.canWrapX() && (n[0] < r[0] || n[0] > r[2]) && (s = s || G(r), e = Math.floor(
|
|
897
901
|
(n[0] - r[0]) / s
|
|
898
902
|
)), e;
|
|
899
903
|
}
|
|
904
|
+
function Xs(n, t, s) {
|
|
905
|
+
const r = Math.sqrt(
|
|
906
|
+
(t[0] - n[0]) * (t[0] - n[0]) + (t[1] - n[1]) * (t[1] - n[1])
|
|
907
|
+
), e = [(t[0] - n[0]) / r, (t[1] - n[1]) / r], i = [-e[1], e[0]], o = Math.sqrt(
|
|
908
|
+
(s[0] - n[0]) * (s[0] - n[0]) + (s[1] - n[1]) * (s[1] - n[1])
|
|
909
|
+
), a = [(s[0] - n[0]) / o, (s[1] - n[1]) / o];
|
|
910
|
+
let c = r === 0 || o === 0 ? 0 : Math.acos(
|
|
911
|
+
xn(a[0] * e[0] + a[1] * e[1], -1, 1)
|
|
912
|
+
);
|
|
913
|
+
return c = Math.max(c, 1e-5), a[0] * i[0] + a[1] * i[1] > 0 ? c : Math.PI * 2 - c;
|
|
914
|
+
}
|
|
900
915
|
const sn = 63710088e-1;
|
|
901
916
|
function Mn(n, t, s) {
|
|
902
917
|
s = s || sn;
|
|
@@ -913,7 +928,7 @@ function F(n, t) {
|
|
|
913
928
|
}
|
|
914
929
|
return s * t * t / 2;
|
|
915
930
|
}
|
|
916
|
-
function
|
|
931
|
+
function Et(n, t) {
|
|
917
932
|
t = t || {};
|
|
918
933
|
const s = t.radius || sn, r = t.projection || "EPSG:3857", e = n.getType();
|
|
919
934
|
e !== "GeometryCollection" && (n = n.clone().transform(r, "EPSG:4326"));
|
|
@@ -944,7 +959,7 @@ function dt(n, t) {
|
|
|
944
959
|
n.getGeometries()
|
|
945
960
|
);
|
|
946
961
|
for (c = 0, l = u.length; c < l; ++c)
|
|
947
|
-
i +=
|
|
962
|
+
i += Et(u[c], t);
|
|
948
963
|
break;
|
|
949
964
|
}
|
|
950
965
|
default:
|
|
@@ -952,7 +967,7 @@ function dt(n, t) {
|
|
|
952
967
|
}
|
|
953
968
|
return i;
|
|
954
969
|
}
|
|
955
|
-
function
|
|
970
|
+
function Ws(n, t, s, r) {
|
|
956
971
|
r = r || sn;
|
|
957
972
|
const e = M(n[1]), i = M(n[0]), o = t / r, a = Math.asin(
|
|
958
973
|
Math.sin(e) * Math.cos(o) + Math.cos(e) * Math.sin(o) * Math.cos(s)
|
|
@@ -962,7 +977,7 @@ function Xs(n, t, s, r) {
|
|
|
962
977
|
);
|
|
963
978
|
return [W(c), W(a)];
|
|
964
979
|
}
|
|
965
|
-
function
|
|
980
|
+
function Mt(...n) {
|
|
966
981
|
console.warn(...n);
|
|
967
982
|
}
|
|
968
983
|
const J = {
|
|
@@ -1106,7 +1121,7 @@ class rn {
|
|
|
1106
1121
|
return this.getPointResolutionFunc_;
|
|
1107
1122
|
}
|
|
1108
1123
|
}
|
|
1109
|
-
const
|
|
1124
|
+
const p = 6378137, I = Math.PI * p, Pt = [-I, -I, I, I], _t = [-180, -85, 180, 85], X = p * Math.log(Math.tan(Math.PI / 2));
|
|
1110
1125
|
class C extends rn {
|
|
1111
1126
|
/**
|
|
1112
1127
|
* @param {string} code Code.
|
|
@@ -1115,11 +1130,11 @@ class C extends rn {
|
|
|
1115
1130
|
super({
|
|
1116
1131
|
code: t,
|
|
1117
1132
|
units: "m",
|
|
1118
|
-
extent:
|
|
1133
|
+
extent: Pt,
|
|
1119
1134
|
global: !0,
|
|
1120
|
-
worldExtent:
|
|
1135
|
+
worldExtent: _t,
|
|
1121
1136
|
getPointResolution: function(s, r) {
|
|
1122
|
-
return s / Math.cosh(r[1] /
|
|
1137
|
+
return s / Math.cosh(r[1] / p);
|
|
1123
1138
|
}
|
|
1124
1139
|
});
|
|
1125
1140
|
}
|
|
@@ -1132,24 +1147,24 @@ const Pn = [
|
|
|
1132
1147
|
new C("http://www.opengis.net/def/crs/EPSG/0/3857"),
|
|
1133
1148
|
new C("http://www.opengis.net/gml/srs/epsg.xml#3857")
|
|
1134
1149
|
];
|
|
1135
|
-
function
|
|
1150
|
+
function mt(n, t, s, r) {
|
|
1136
1151
|
const e = n.length;
|
|
1137
1152
|
s = s > 1 ? s : 2, r = r ?? s, t === void 0 && (s > 2 ? t = n.slice() : t = new Array(e));
|
|
1138
1153
|
for (let i = 0; i < e; i += r) {
|
|
1139
1154
|
t[i] = I * n[i] / 180;
|
|
1140
|
-
let o =
|
|
1155
|
+
let o = p * Math.log(Math.tan(Math.PI * (+n[i + 1] + 90) / 360));
|
|
1141
1156
|
o > X ? o = X : o < -X && (o = -X), t[i + 1] = o;
|
|
1142
1157
|
}
|
|
1143
1158
|
return t;
|
|
1144
1159
|
}
|
|
1145
|
-
function
|
|
1160
|
+
function wt(n, t, s, r) {
|
|
1146
1161
|
const e = n.length;
|
|
1147
1162
|
s = s > 1 ? s : 2, r = r ?? s, t === void 0 && (s > 2 ? t = n.slice() : t = new Array(e));
|
|
1148
1163
|
for (let i = 0; i < e; i += r)
|
|
1149
|
-
t[i] = 180 * n[i] / I, t[i + 1] = 360 * Math.atan(Math.exp(n[i + 1] /
|
|
1164
|
+
t[i] = 180 * n[i] / I, t[i + 1] = 360 * Math.atan(Math.exp(n[i + 1] / p)) / Math.PI - 90;
|
|
1150
1165
|
return t;
|
|
1151
1166
|
}
|
|
1152
|
-
const
|
|
1167
|
+
const Tt = 6378137, _n = [-180, -90, 180, 90], yt = Math.PI * Tt / 180;
|
|
1153
1168
|
class v extends rn {
|
|
1154
1169
|
/**
|
|
1155
1170
|
* @param {string} code Code.
|
|
@@ -1162,7 +1177,7 @@ class v extends rn {
|
|
|
1162
1177
|
extent: _n,
|
|
1163
1178
|
axisOrientation: s,
|
|
1164
1179
|
global: !0,
|
|
1165
|
-
metersPerUnit:
|
|
1180
|
+
metersPerUnit: yt,
|
|
1166
1181
|
worldExtent: _n
|
|
1167
1182
|
});
|
|
1168
1183
|
}
|
|
@@ -1177,48 +1192,48 @@ const mn = [
|
|
|
1177
1192
|
new v("http://www.opengis.net/def/crs/EPSG/0/4326", "neu")
|
|
1178
1193
|
];
|
|
1179
1194
|
let Q = {};
|
|
1180
|
-
function
|
|
1195
|
+
function vt(n) {
|
|
1181
1196
|
return Q[n] || Q[n.replace(/urn:(x-)?ogc:def:crs:EPSG:(.*:)?(\w+)$/, "EPSG:$3")] || null;
|
|
1182
1197
|
}
|
|
1183
|
-
function
|
|
1198
|
+
function Rt(n, t) {
|
|
1184
1199
|
Q[n] = t;
|
|
1185
1200
|
}
|
|
1186
|
-
let
|
|
1201
|
+
let O = {};
|
|
1187
1202
|
function S(n, t, s) {
|
|
1188
1203
|
const r = n.getCode(), e = t.getCode();
|
|
1189
|
-
r in
|
|
1204
|
+
r in O || (O[r] = {}), O[r][e] = s;
|
|
1190
1205
|
}
|
|
1191
1206
|
function V(n, t) {
|
|
1192
|
-
return n in
|
|
1207
|
+
return n in O && t in O[n] ? O[n][t] : null;
|
|
1193
1208
|
}
|
|
1194
|
-
const D = 0.9996, P = 669438e-8, Y = P * P, H = Y * P, R = P / (1 - P), wn = Math.sqrt(1 - P),
|
|
1195
|
-
function
|
|
1196
|
-
const r = n - 5e5, o = (s.north ? t : t - 1e7) / D / ($ * Wn), a = o +
|
|
1197
|
-
let K = (y -
|
|
1198
|
-
return K =
|
|
1209
|
+
const D = 0.9996, P = 669438e-8, Y = P * P, H = Y * P, R = P / (1 - P), wn = Math.sqrt(1 - P), L = (1 - wn) / (1 + wn), Fn = L * L, en = Fn * L, on = en * L, Xn = on * L, Wn = 1 - P / 4 - 3 * Y / 64 - 5 * H / 256, St = 3 * P / 8 + 3 * Y / 32 + 45 * H / 1024, Ct = 15 * Y / 256 + 45 * H / 1024, It = 35 * H / 3072, Ot = 3 / 2 * L - 27 / 32 * en + 269 / 512 * Xn, Gt = 21 / 16 * Fn - 55 / 32 * on, Lt = 151 / 96 * en - 417 / 128 * Xn, At = 1097 / 512 * on, $ = 6378137;
|
|
1210
|
+
function Ut(n, t, s) {
|
|
1211
|
+
const r = n - 5e5, o = (s.north ? t : t - 1e7) / D / ($ * Wn), a = o + Ot * Math.sin(2 * o) + Gt * Math.sin(4 * o) + Lt * Math.sin(6 * o) + At * Math.sin(8 * o), c = Math.sin(a), l = c * c, f = Math.cos(a), h = c / f, u = h * h, g = u * u, d = 1 - P * l, _ = Math.sqrt(1 - P * l), m = $ / _, b = (1 - P) / d, T = R * f ** 2, A = T * T, y = r / (m * D), N = y * y, U = N * y, ln = U * y, fn = ln * y, Bn = fn * y, Yn = a - h / b * (N / 2 - ln / 24 * (5 + 3 * u + 10 * T - 4 * A - 9 * R)) + Bn / 720 * (61 + 90 * u + 298 * T + 45 * g - 252 * R - 3 * A);
|
|
1212
|
+
let K = (y - U / 6 * (1 + 2 * u + T) + fn / 120 * (5 - 2 * T + 28 * u - 3 * A + 8 * R + 24 * g)) / f;
|
|
1213
|
+
return K = z(
|
|
1199
1214
|
K + M(Dn(s.number)),
|
|
1200
1215
|
-Math.PI,
|
|
1201
1216
|
Math.PI
|
|
1202
1217
|
), [W(K), W(Yn)];
|
|
1203
1218
|
}
|
|
1204
|
-
const Tn = -80, yn = 84,
|
|
1205
|
-
function
|
|
1206
|
-
n =
|
|
1207
|
-
const r = M(t), e = Math.sin(r), i = Math.cos(r), o = e / i, a = o * o, c = a * a, l = M(n), f = Dn(s.number), h = M(f), u = $ / Math.sqrt(1 - P * e ** 2), g = R * i ** 2, d = i *
|
|
1208
|
-
let
|
|
1209
|
-
return s.north || (
|
|
1219
|
+
const Tn = -80, yn = 84, pt = -180, bt = 180;
|
|
1220
|
+
function Nt(n, t, s) {
|
|
1221
|
+
n = z(n, pt, bt), t < Tn ? t = Tn : t > yn && (t = yn);
|
|
1222
|
+
const r = M(t), e = Math.sin(r), i = Math.cos(r), o = e / i, a = o * o, c = a * a, l = M(n), f = Dn(s.number), h = M(f), u = $ / Math.sqrt(1 - P * e ** 2), g = R * i ** 2, d = i * z(l - h, -Math.PI, Math.PI), _ = d * d, m = _ * d, b = m * d, T = b * d, A = T * d, y = $ * (Wn * r - St * Math.sin(2 * r) + Ct * Math.sin(4 * r) - It * Math.sin(6 * r)), N = D * u * (d + m / 6 * (1 - a + g) + T / 120 * (5 - 18 * a + c + 72 * g - 58 * R)) + 5e5;
|
|
1223
|
+
let U = D * (y + u * o * (_ / 2 + b / 24 * (5 - a + 9 * g + 4 * g ** 2) + A / 720 * (61 - 58 * a + c + 600 * g - 330 * R)));
|
|
1224
|
+
return s.north || (U += 1e7), [N, U];
|
|
1210
1225
|
}
|
|
1211
1226
|
function Dn(n) {
|
|
1212
1227
|
return (n - 1) * 6 - 180 + 3;
|
|
1213
1228
|
}
|
|
1214
|
-
const
|
|
1229
|
+
const Ft = [
|
|
1215
1230
|
/^EPSG:(\d+)$/,
|
|
1216
1231
|
/^urn:ogc:def:crs:EPSG::(\d+)$/,
|
|
1217
1232
|
/^http:\/\/www\.opengis\.net\/def\/crs\/EPSG\/0\/(\d+)$/
|
|
1218
1233
|
];
|
|
1219
1234
|
function $n(n) {
|
|
1220
1235
|
let t = 0;
|
|
1221
|
-
for (const e of
|
|
1236
|
+
for (const e of Ft) {
|
|
1222
1237
|
const i = n.match(e);
|
|
1223
1238
|
if (i) {
|
|
1224
1239
|
t = parseInt(i[1]);
|
|
@@ -1241,19 +1256,19 @@ function vn(n, t) {
|
|
|
1241
1256
|
return r;
|
|
1242
1257
|
};
|
|
1243
1258
|
}
|
|
1244
|
-
function
|
|
1259
|
+
function Xt(n) {
|
|
1245
1260
|
return $n(n) ? new rn({ code: n, units: "m" }) : null;
|
|
1246
1261
|
}
|
|
1247
|
-
function
|
|
1262
|
+
function Wt(n) {
|
|
1248
1263
|
const t = $n(n.getCode());
|
|
1249
1264
|
return t ? {
|
|
1250
|
-
forward: vn(
|
|
1251
|
-
inverse: vn(
|
|
1265
|
+
forward: vn(Nt, t),
|
|
1266
|
+
inverse: vn(Ut, t)
|
|
1252
1267
|
} : null;
|
|
1253
1268
|
}
|
|
1254
|
-
const
|
|
1269
|
+
const Dt = [Wt], $t = [Xt];
|
|
1255
1270
|
let Z = !0;
|
|
1256
|
-
function
|
|
1271
|
+
function qt(n) {
|
|
1257
1272
|
Z = !1;
|
|
1258
1273
|
}
|
|
1259
1274
|
function an(n, t) {
|
|
@@ -1265,7 +1280,7 @@ function an(n, t) {
|
|
|
1265
1280
|
t = n.slice();
|
|
1266
1281
|
return t;
|
|
1267
1282
|
}
|
|
1268
|
-
function
|
|
1283
|
+
function Ds(n, t) {
|
|
1269
1284
|
if (t !== void 0 && n !== t) {
|
|
1270
1285
|
for (let s = 0, r = n.length; s < r; ++s)
|
|
1271
1286
|
t[s] = n[s];
|
|
@@ -1274,25 +1289,25 @@ function Ws(n, t) {
|
|
|
1274
1289
|
return n;
|
|
1275
1290
|
}
|
|
1276
1291
|
function x(n) {
|
|
1277
|
-
|
|
1292
|
+
Rt(n.getCode(), n), S(n, n, an);
|
|
1278
1293
|
}
|
|
1279
|
-
function
|
|
1294
|
+
function Bt(n) {
|
|
1280
1295
|
n.forEach(x);
|
|
1281
1296
|
}
|
|
1282
1297
|
function w(n) {
|
|
1283
1298
|
if (typeof n != "string")
|
|
1284
1299
|
return n;
|
|
1285
|
-
const t =
|
|
1300
|
+
const t = vt(n);
|
|
1286
1301
|
if (t)
|
|
1287
1302
|
return t;
|
|
1288
|
-
for (const s of
|
|
1303
|
+
for (const s of $t) {
|
|
1289
1304
|
const r = s(n);
|
|
1290
1305
|
if (r)
|
|
1291
1306
|
return r;
|
|
1292
1307
|
}
|
|
1293
1308
|
return null;
|
|
1294
1309
|
}
|
|
1295
|
-
function
|
|
1310
|
+
function $s(n, t, s, r) {
|
|
1296
1311
|
n = w(n);
|
|
1297
1312
|
let e;
|
|
1298
1313
|
const i = n.getPointResolutionFunc();
|
|
@@ -1334,20 +1349,20 @@ function Ds(n, t, s, r) {
|
|
|
1334
1349
|
return e;
|
|
1335
1350
|
}
|
|
1336
1351
|
function Rn(n) {
|
|
1337
|
-
|
|
1352
|
+
Bt(n), n.forEach(function(t) {
|
|
1338
1353
|
n.forEach(function(s) {
|
|
1339
1354
|
t !== s && S(t, s, an);
|
|
1340
1355
|
});
|
|
1341
1356
|
});
|
|
1342
1357
|
}
|
|
1343
|
-
function
|
|
1358
|
+
function Yt(n, t, s, r) {
|
|
1344
1359
|
n.forEach(function(e) {
|
|
1345
1360
|
t.forEach(function(i) {
|
|
1346
1361
|
S(e, i, s), S(i, e, r);
|
|
1347
1362
|
});
|
|
1348
1363
|
});
|
|
1349
1364
|
}
|
|
1350
|
-
function
|
|
1365
|
+
function qs(n, t) {
|
|
1351
1366
|
return n ? typeof n == "string" ? w(n) : (
|
|
1352
1367
|
/** @type {Projection} */
|
|
1353
1368
|
n
|
|
@@ -1374,7 +1389,7 @@ function Sn(n) {
|
|
|
1374
1389
|
})
|
|
1375
1390
|
);
|
|
1376
1391
|
}
|
|
1377
|
-
function
|
|
1392
|
+
function Bs(n, t, s, r) {
|
|
1378
1393
|
const e = w(n), i = w(t);
|
|
1379
1394
|
S(
|
|
1380
1395
|
e,
|
|
@@ -1386,14 +1401,14 @@ function qs(n, t, s, r) {
|
|
|
1386
1401
|
Sn(r)
|
|
1387
1402
|
);
|
|
1388
1403
|
}
|
|
1389
|
-
function
|
|
1390
|
-
return
|
|
1404
|
+
function Ys(n, t) {
|
|
1405
|
+
return qt(), Ht(
|
|
1391
1406
|
n,
|
|
1392
1407
|
"EPSG:4326",
|
|
1393
1408
|
t !== void 0 ? t : "EPSG:3857"
|
|
1394
1409
|
);
|
|
1395
1410
|
}
|
|
1396
|
-
function
|
|
1411
|
+
function Hs(n, t) {
|
|
1397
1412
|
if (n === t)
|
|
1398
1413
|
return !0;
|
|
1399
1414
|
const s = n.getUnits() === t.getUnits();
|
|
@@ -1405,7 +1420,7 @@ function cn(n, t) {
|
|
|
1405
1420
|
if (e)
|
|
1406
1421
|
return e;
|
|
1407
1422
|
let i = null, o = null;
|
|
1408
|
-
for (const c of
|
|
1423
|
+
for (const c of Dt)
|
|
1409
1424
|
i || (i = c(n)), o || (o = c(t));
|
|
1410
1425
|
if (!i && !o)
|
|
1411
1426
|
return null;
|
|
@@ -1441,7 +1456,7 @@ function qn(n, t) {
|
|
|
1441
1456
|
const s = w(n), r = w(t);
|
|
1442
1457
|
return cn(s, r);
|
|
1443
1458
|
}
|
|
1444
|
-
function
|
|
1459
|
+
function Ht(n, t, s) {
|
|
1445
1460
|
const r = qn(t, s);
|
|
1446
1461
|
if (!r) {
|
|
1447
1462
|
const e = w(t).getCode(), i = w(s).getCode();
|
|
@@ -1451,154 +1466,155 @@ function Yt(n, t, s) {
|
|
|
1451
1466
|
}
|
|
1452
1467
|
return r(n, void 0, n.length);
|
|
1453
1468
|
}
|
|
1454
|
-
function
|
|
1469
|
+
function Ks(n, t, s, r) {
|
|
1455
1470
|
const e = qn(t, s);
|
|
1456
|
-
return
|
|
1471
|
+
return ft(n, e, void 0, r);
|
|
1457
1472
|
}
|
|
1458
|
-
let
|
|
1459
|
-
function
|
|
1460
|
-
return
|
|
1473
|
+
let Kt = null;
|
|
1474
|
+
function Vs() {
|
|
1475
|
+
return Kt;
|
|
1461
1476
|
}
|
|
1462
|
-
function
|
|
1477
|
+
function js(n, t) {
|
|
1463
1478
|
return n;
|
|
1464
1479
|
}
|
|
1465
|
-
function
|
|
1466
|
-
return Z && !
|
|
1480
|
+
function ks(n, t) {
|
|
1481
|
+
return Z && !gt(n, [0, 0]) && n[0] >= -180 && n[0] <= 180 && n[1] >= -90 && n[1] <= 90 && (Z = !1, Mt(
|
|
1467
1482
|
"Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates."
|
|
1468
1483
|
)), n;
|
|
1469
1484
|
}
|
|
1470
1485
|
function zs(n, t) {
|
|
1471
1486
|
return n;
|
|
1472
1487
|
}
|
|
1473
|
-
function
|
|
1488
|
+
function Js(n, t) {
|
|
1474
1489
|
return n;
|
|
1475
1490
|
}
|
|
1476
|
-
function
|
|
1491
|
+
function Qs(n, t) {
|
|
1477
1492
|
return n;
|
|
1478
1493
|
}
|
|
1479
|
-
function
|
|
1480
|
-
Rn(Pn), Rn(mn),
|
|
1494
|
+
function Vt() {
|
|
1495
|
+
Rn(Pn), Rn(mn), Yt(
|
|
1481
1496
|
mn,
|
|
1482
1497
|
Pn,
|
|
1483
|
-
|
|
1484
|
-
|
|
1498
|
+
mt,
|
|
1499
|
+
wt
|
|
1485
1500
|
);
|
|
1486
1501
|
}
|
|
1487
|
-
|
|
1502
|
+
Vt();
|
|
1488
1503
|
export {
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1504
|
+
ys as $,
|
|
1505
|
+
tn as A,
|
|
1506
|
+
On as B,
|
|
1492
1507
|
_s as C,
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1508
|
+
jn as D,
|
|
1509
|
+
Vn as E,
|
|
1510
|
+
ns as F,
|
|
1511
|
+
ms as G,
|
|
1512
|
+
qs as H,
|
|
1513
|
+
Sn as I,
|
|
1514
|
+
kt as J,
|
|
1515
|
+
qt as K,
|
|
1516
|
+
bs as L,
|
|
1502
1517
|
J as M,
|
|
1503
|
-
|
|
1518
|
+
ws as N,
|
|
1504
1519
|
Hn as O,
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1520
|
+
rn as P,
|
|
1521
|
+
kn as Q,
|
|
1522
|
+
E as R,
|
|
1523
|
+
gt as S,
|
|
1524
|
+
xt as T,
|
|
1525
|
+
Hs as U,
|
|
1526
|
+
gn as V,
|
|
1527
|
+
Qt as W,
|
|
1528
|
+
Ts as X,
|
|
1529
|
+
rt as Y,
|
|
1530
|
+
et as Z,
|
|
1531
|
+
fs as _,
|
|
1532
|
+
es as a,
|
|
1533
|
+
Ys as a0,
|
|
1534
|
+
ks as a1,
|
|
1535
|
+
Js as a2,
|
|
1536
|
+
Qs as a3,
|
|
1537
|
+
w as a4,
|
|
1538
|
+
V as a5,
|
|
1539
|
+
Et as a6,
|
|
1540
|
+
vs as a7,
|
|
1541
|
+
Ln as a8,
|
|
1542
|
+
An as a9,
|
|
1543
|
+
as as aA,
|
|
1544
|
+
Ws as aB,
|
|
1545
|
+
Is as aC,
|
|
1546
|
+
Jt as aD,
|
|
1532
1547
|
Us as aE,
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1548
|
+
ls as aF,
|
|
1549
|
+
ps as aG,
|
|
1550
|
+
Os as aH,
|
|
1551
|
+
os as aI,
|
|
1552
|
+
nt as aJ,
|
|
1553
|
+
Nn as aK,
|
|
1554
|
+
Ns as aL,
|
|
1555
|
+
is as aM,
|
|
1556
|
+
nn as aN,
|
|
1557
|
+
ss as aO,
|
|
1558
|
+
M as aP,
|
|
1559
|
+
js as aQ,
|
|
1560
|
+
zs as aR,
|
|
1561
|
+
Ht as aS,
|
|
1562
|
+
Ks as aT,
|
|
1563
|
+
Jn as aU,
|
|
1564
|
+
hn as aV,
|
|
1565
|
+
Mt as aW,
|
|
1566
|
+
Ls as aX,
|
|
1567
|
+
Fs as aY,
|
|
1568
|
+
ut as aZ,
|
|
1569
|
+
ot as aa,
|
|
1570
|
+
Rs as ab,
|
|
1571
|
+
Mn as ac,
|
|
1572
|
+
Ss as ad,
|
|
1573
|
+
ct as ae,
|
|
1574
|
+
Cs as af,
|
|
1575
|
+
$s as ag,
|
|
1576
|
+
at as ah,
|
|
1577
|
+
Un as ai,
|
|
1578
|
+
pn as aj,
|
|
1563
1579
|
qn as ak,
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1580
|
+
cn as al,
|
|
1581
|
+
Zn as am,
|
|
1582
|
+
Vs as an,
|
|
1583
|
+
G as ao,
|
|
1584
|
+
Ds as ap,
|
|
1585
|
+
lt as aq,
|
|
1586
|
+
Gs as ar,
|
|
1587
|
+
Kn as as,
|
|
1588
|
+
bn as at,
|
|
1589
|
+
Zt as au,
|
|
1590
|
+
cs as av,
|
|
1591
|
+
zt as aw,
|
|
1592
|
+
k as ax,
|
|
1593
|
+
un as ay,
|
|
1594
|
+
ts as az,
|
|
1595
|
+
q as b,
|
|
1596
|
+
zn as c,
|
|
1597
|
+
rs as d,
|
|
1598
|
+
As as e,
|
|
1599
|
+
Bs as f,
|
|
1600
|
+
Rn as g,
|
|
1601
|
+
x as h,
|
|
1602
|
+
Xs as i,
|
|
1603
|
+
ft as j,
|
|
1604
|
+
In as k,
|
|
1605
|
+
jt as l,
|
|
1606
|
+
hs as m,
|
|
1607
|
+
gs as n,
|
|
1608
|
+
us as o,
|
|
1609
|
+
xn as p,
|
|
1610
|
+
Cn as q,
|
|
1611
|
+
ds as r,
|
|
1612
|
+
ht as s,
|
|
1613
|
+
Es as t,
|
|
1614
|
+
Ms as u,
|
|
1615
|
+
Ps as v,
|
|
1616
|
+
st as w,
|
|
1617
|
+
En as x,
|
|
1618
|
+
Gn as y,
|
|
1619
|
+
B as z
|
|
1604
1620
|
};
|