@loaders.gl/geospatial 5.0.0-alpha.13 → 5.0.0-alpha.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 (69) hide show
  1. package/LICENSE +52 -0
  2. package/dist/dbf-worker.js +59 -15
  3. package/dist/flatgeobuf/flatgeobuf-loader-types.js +2 -2
  4. package/dist/flatgeobuf/flatgeobuf-loader-types.js.map +1 -1
  5. package/dist/flatgeobuf/flatgeobuf-source-loader.js +1 -1
  6. package/dist/flatgeobuf/index.cjs +16 -25
  7. package/dist/flatgeobuf/index.cjs.map +2 -2
  8. package/dist/flatgeobuf-worker.js +2032 -508
  9. package/dist/flatgeobuf.d.ts +1 -2
  10. package/dist/flatgeobuf.d.ts.map +1 -1
  11. package/dist/flatgeobuf.js +1 -1
  12. package/dist/flatgeobuf.js.map +1 -1
  13. package/dist/geopackage/geopackage-loader-types.d.ts.map +1 -1
  14. package/dist/geopackage/geopackage-loader-types.js +1 -1
  15. package/dist/geopackage/geopackage-loader-types.js.map +1 -1
  16. package/dist/geopackage/geopackage-source-loader.js +1 -1
  17. package/dist/geopackage/index.cjs +14 -24
  18. package/dist/geopackage/index.cjs.map +2 -2
  19. package/dist/geopackage.d.ts +1 -2
  20. package/dist/geopackage.d.ts.map +1 -1
  21. package/dist/geopackage.js +1 -1
  22. package/dist/geopackage.js.map +1 -1
  23. package/dist/index.cjs +66 -96
  24. package/dist/index.cjs.map +3 -3
  25. package/dist/kml/gpx-loader-types.js +1 -1
  26. package/dist/kml/index.cjs +53 -62
  27. package/dist/kml/index.cjs.map +3 -3
  28. package/dist/kml/kml-loader-types.d.ts +2 -2
  29. package/dist/kml/kml-loader-types.js +2 -2
  30. package/dist/kml/kml-loader-types.js.map +1 -1
  31. package/dist/kml/kml-writer.js +2 -2
  32. package/dist/kml/kml-writer.js.map +1 -1
  33. package/dist/kml/kmz-archive.js +1 -1
  34. package/dist/kml/kmz-archive.js.map +1 -1
  35. package/dist/kml/kmz-loader-types.js +1 -1
  36. package/dist/kml/kmz-source.js +1 -1
  37. package/dist/kml/tcx-loader-types.js +1 -1
  38. package/dist/kml.d.ts +1 -2
  39. package/dist/kml.d.ts.map +1 -1
  40. package/dist/kml.js +1 -1
  41. package/dist/kml.js.map +1 -1
  42. package/dist/shapefile/dbf-loader-types.js +1 -1
  43. package/dist/shapefile/dbf-loader.d.ts +1 -0
  44. package/dist/shapefile/dbf-loader.d.ts.map +1 -1
  45. package/dist/shapefile/index.cjs +9 -17
  46. package/dist/shapefile/index.cjs.map +2 -2
  47. package/dist/shapefile/shapefile-loader-types.d.ts +2 -2
  48. package/dist/shapefile/shapefile-loader-types.d.ts.map +1 -1
  49. package/dist/shapefile/shapefile-loader-types.js +2 -2
  50. package/dist/shapefile/shapefile-loader-types.js.map +1 -1
  51. package/dist/shapefile/shp-loader-types.js +1 -1
  52. package/dist/shapefile/shp-loader.d.ts +1 -0
  53. package/dist/shapefile/shp-loader.d.ts.map +1 -1
  54. package/dist/shapefile.d.ts +1 -2
  55. package/dist/shapefile.d.ts.map +1 -1
  56. package/dist/shapefile.js +1 -1
  57. package/dist/shapefile.js.map +1 -1
  58. package/dist/shp-worker.js +66 -17
  59. package/package.json +19 -14
  60. package/src/flatgeobuf/flatgeobuf-loader-types.ts +1 -1
  61. package/src/flatgeobuf.ts +1 -2
  62. package/src/geopackage/geopackage-loader-types.ts +3 -1
  63. package/src/geopackage.ts +1 -2
  64. package/src/kml/kml-loader-types.ts +1 -1
  65. package/src/kml/kml-writer.ts +1 -1
  66. package/src/kml/kmz-archive.ts +1 -1
  67. package/src/kml.ts +1 -2
  68. package/src/shapefile/shapefile-loader-types.ts +3 -1
  69. package/src/shapefile.ts +1 -2
package/LICENSE ADDED
@@ -0,0 +1,52 @@
1
+ loaders.gl is licensed under the MIT license
2
+
3
+ Copyright (c) vis.gl contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
22
+
23
+ ---
24
+
25
+ Copyright (c) 2015 Uber Technologies, Inc.
26
+
27
+ Portions of modules/images/src/lib/category-api/binary-image-api.ts are based on
28
+ binary-gltf-utils (https://github.com/Qantas94Heavy/binary-gltf-utils) under the
29
+ MIT License reproduced above.
30
+
31
+ Copyright (c) 2016-17 Karl Cheng
32
+
33
+ Portions of modules/core/src/schema-utils/lib/utils/async-queue.ts are adapted from
34
+ async-iter-demo (https://github.com/rauschma/async-iter-demo) under the MIT
35
+ License reproduced above.
36
+
37
+ Copyright (c) 2016 Axel Rauschmayer
38
+
39
+ loaders.gl includes certain files from Cesium (https://github.com/CesiumGS/cesium)
40
+ under the Apache 2.0 License, including files in modules/3d-tiles.
41
+
42
+ Copyright 2011-2018 CesiumJS Contributors
43
+
44
+ Licensed under the Apache License, Version 2.0 (the "License");
45
+ you may not use this file except in compliance with the License.
46
+ You may obtain a copy of the License at
47
+ http://www.apache.org/licenses/LICENSE-2.0
48
+
49
+ Unless required by applicable law or agreed to in writing, software
50
+ distributed under the License is distributed on an "AS IS" BASIS,
51
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
52
+ See the License for the specific language governing permissions and limitations under the License.
@@ -243,6 +243,8 @@
243
243
  process: processOnMainThread
244
244
  };
245
245
  WorkerBody.onmessage = async (type, payload) => {
246
+ const reporter = type === "process" || type === "process-in-batches" ? createProgressReporter() : void 0;
247
+ const jobContext = { ...context, reportProgress: reporter?.report };
246
248
  try {
247
249
  switch (type) {
248
250
  case "preload":
@@ -255,9 +257,10 @@
255
257
  const result = await process(
256
258
  payload.input,
257
259
  payload.options || {},
258
- context,
260
+ jobContext,
259
261
  payload.context || {}
260
262
  );
263
+ reporter?.finish();
261
264
  WorkerBody.postMessage("done", { result });
262
265
  break;
263
266
  case "process-in-batches":
@@ -272,13 +275,14 @@
272
275
  const resultIterator = processInBatches(
273
276
  createDemandDrivenIterator(inputBatches),
274
277
  payload.options || {},
275
- context,
278
+ jobContext,
276
279
  payload.context || {}
277
280
  );
278
281
  for await (const batch of resultIterator) {
279
282
  await WorkerBody.postMessage("output-batch", { result: batch });
280
283
  await outputAcknowledgements.next();
281
284
  }
285
+ reporter?.finish();
282
286
  await WorkerBody.postMessage("done", {});
283
287
  } finally {
284
288
  activeInputBatches = null;
@@ -306,6 +310,7 @@
306
310
  default:
307
311
  }
308
312
  } catch (error) {
313
+ reporter?.finish();
309
314
  const message = error instanceof Error ? error.message : "";
310
315
  WorkerBody.postMessage("error", { error: message });
311
316
  }
@@ -345,6 +350,35 @@
345
350
  WorkerBody.postMessage("process", payload);
346
351
  });
347
352
  }
353
+ function createProgressReporter() {
354
+ let pending;
355
+ let finished = false;
356
+ let scheduled = false;
357
+ const flush = () => {
358
+ scheduled = false;
359
+ if (pending) {
360
+ WorkerBody.postMessage("progress", { progress: pending });
361
+ pending = void 0;
362
+ }
363
+ };
364
+ return {
365
+ /** Records progress while retaining phase transitions. */
366
+ report(progress) {
367
+ if (finished) return;
368
+ if (pending && pending.phase !== progress.phase) flush();
369
+ pending = { ...progress };
370
+ if (!scheduled) {
371
+ scheduled = true;
372
+ setTimeout(flush, 0);
373
+ }
374
+ },
375
+ /** Flushes final progress and suppresses reports from stale callbacks. */
376
+ finish() {
377
+ flush();
378
+ finished = true;
379
+ }
380
+ };
381
+ }
348
382
  var requestId, activeInputBatches, activeOutputAcknowledgements;
349
383
  var init_create_worker = __esm({
350
384
  "../core/src/worker-utils/lib/worker-api/create-worker.ts"() {
@@ -391,6 +425,7 @@
391
425
  options,
392
426
  context: {
393
427
  ...loaderContext,
428
+ reportProgress: workerContext?.reportProgress,
394
429
  coreApi: createWorkerCoreApi(),
395
430
  _parse: createParseOnMainThread(workerContext?.process)
396
431
  }
@@ -401,8 +436,10 @@
401
436
  if (!loader.parseInBatches) {
402
437
  throw new Error(`${loader.id} loader does not support batched parsing`);
403
438
  }
404
- const resultIterator = loader.parseInBatches(inputIterator, options, {
439
+ const parserOptions = getWorkerLoaderOptions(loader, options);
440
+ const resultIterator = loader.parseInBatches(inputIterator, parserOptions, {
405
441
  ...loaderContext,
442
+ reportProgress: workerContext?.reportProgress,
406
443
  coreApi: createWorkerCoreApi(),
407
444
  _parse: createParseOnMainThread(workerContext?.process)
408
445
  });
@@ -458,7 +495,17 @@
458
495
  if (!context) {
459
496
  return void 0;
460
497
  }
461
- const { fetch: fetch2, loaders, coreApi, _parse, _parseSync, _parseInBatches, ...serializableContext } = context;
498
+ const {
499
+ fetch: fetch2,
500
+ loaders,
501
+ coreApi,
502
+ signal,
503
+ reportProgress,
504
+ _parse,
505
+ _parseSync,
506
+ _parseInBatches,
507
+ ...serializableContext
508
+ } = context;
462
509
  return JSON.parse(JSON.stringify(serializableContext));
463
510
  }
464
511
  async function parseData({
@@ -479,18 +526,15 @@
479
526
  } else {
480
527
  throw new Error(`Could not load data with ${loader.name} loader`);
481
528
  }
482
- options = {
529
+ options = getWorkerLoaderOptions(loader, options);
530
+ return await parser(data, { ...options }, context, loader);
531
+ }
532
+ function getWorkerLoaderOptions(loader, options) {
533
+ return {
483
534
  ...options,
484
- modules: {
485
- ...loader && loader.options && loader.options.modules || {},
486
- ...options.modules || {}
487
- },
488
- core: {
489
- ...options.core,
490
- worker: false
491
- }
535
+ modules: { ...loader.options?.modules, ...options.modules },
536
+ core: { ...options.core, worker: false }
492
537
  };
493
- return await parser(data, { ...options }, context, loader);
494
538
  }
495
539
  var init_create_loader_worker = __esm({
496
540
  "../core/src/loader-utils/lib/worker-loader-utils/create-loader-worker.ts"() {
@@ -16796,7 +16840,7 @@ return true;`);
16796
16840
  var init_dbf_loader_types = __esm({
16797
16841
  "src/shapefile/dbf-loader-types.ts"() {
16798
16842
  "use strict";
16799
- VERSION = true ? "5.0.0-alpha.13" : "latest";
16843
+ VERSION = true ? "5.0.0-alpha.14" : "latest";
16800
16844
  DBFLoader = {
16801
16845
  name: "DBF",
16802
16846
  dataType: null,
@@ -4,12 +4,12 @@
4
4
  import { FlatGeobufFormat } from "./flatgeobuf-format.js";
5
5
  // __VERSION__ is injected by babel-plugin-version-inline
6
6
  // @ts-ignore TS2304: Cannot find name '__VERSION__'.
7
- const VERSION = typeof "5.0.0-alpha.13" !== 'undefined' ? "5.0.0-alpha.13" : 'latest';
7
+ const VERSION = typeof "5.0.0-alpha.14" !== 'undefined' ? "5.0.0-alpha.14" : 'latest';
8
8
  // FGB\3FGB\1
9
9
  const FGB_MAGIC_NUMBER = [0x66, 0x67, 0x62, 0x03, 0x66, 0x67, 0x62, 0x01];
10
10
  /** Preloads the parser-bearing FlatGeobuf loader implementation. */
11
11
  async function preload() {
12
- const { FlatGeobufLoaderWithParser } = await import('@loaders.gl/geospatial/flatgeobuf');
12
+ const { FlatGeobufLoaderWithParser } = await import('@loaders.gl/geospatial/flatgeobuf/flatgeobuf-loader');
13
13
  return FlatGeobufLoaderWithParser;
14
14
  }
15
15
  /** Metadata-only FlatGeobuf worker loader. */
@@ -1 +1 @@
1
- {"version":3,"file":"flatgeobuf-loader-types.js","sourceRoot":"","sources":["../../src/flatgeobuf/flatgeobuf-loader-types.ts"],"names":[],"mappings":"AAAA,aAAa;AACb,+BAA+B;AAC/B,oCAAoC;AAUpC,OAAO,EAAC,gBAAgB,EAAC,+BAA4B;AAErD,yDAAyD;AACzD,qDAAqD;AACrD,MAAM,OAAO,GAAG,uBAAkB,KAAK,WAAW,CAAC,CAAC,kBAAa,CAAC,CAAC,QAAQ,CAAC;AAE5E,aAAa;AACb,MAAM,gBAAgB,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;AAkB1E,oEAAoE;AACpE,KAAK,UAAU,OAAO;IACpB,MAAM,EAAC,0BAA0B,EAAC,GAAG,MAAM,MAAM,CAAC,mCAAmC,CAAC,CAAC;IACvF,OAAO,0BAA0B,CAAC;AACpC,CAAC;AAED,8CAA8C;AAC9C,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,GAAG,gBAAgB;IAEnB,QAAQ,EAAE,IAAW;IACrB,SAAS,EAAE,IAAW;IACtB,OAAO,EAAE,OAAO;IAChB,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,IAAI;IACZ,KAAK,EAAE,CAAC,IAAI,UAAU,CAAC,gBAAgB,CAAC,CAAC,MAAM,CAAC;IAChD,OAAO,EAAE;QACP,UAAU,EAAE;YACV,KAAK,EAAE,aAAa;SACrB;QACD,GAAG,EAAE;YACH,SAAS,EAAE,KAAK;SACjB;KACF;IACD,OAAO;CAKR,CAAC;AAEF,wCAAwC;AACxC,MAAM,CAAC,MAAM,sBAAsB,GAAG,gBAAgB,CAAC"}
1
+ {"version":3,"file":"flatgeobuf-loader-types.js","sourceRoot":"","sources":["../../src/flatgeobuf/flatgeobuf-loader-types.ts"],"names":[],"mappings":"AAAA,aAAa;AACb,+BAA+B;AAC/B,oCAAoC;AAUpC,OAAO,EAAC,gBAAgB,EAAC,+BAA4B;AAErD,yDAAyD;AACzD,qDAAqD;AACrD,MAAM,OAAO,GAAG,uBAAkB,KAAK,WAAW,CAAC,CAAC,kBAAa,CAAC,CAAC,QAAQ,CAAC;AAE5E,aAAa;AACb,MAAM,gBAAgB,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;AAkB1E,oEAAoE;AACpE,KAAK,UAAU,OAAO;IACpB,MAAM,EAAC,0BAA0B,EAAC,GAAG,MAAM,MAAM,CAAC,qDAAqD,CAAC,CAAC;IACzG,OAAO,0BAA0B,CAAC;AACpC,CAAC;AAED,8CAA8C;AAC9C,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,GAAG,gBAAgB;IAEnB,QAAQ,EAAE,IAAW;IACrB,SAAS,EAAE,IAAW;IACtB,OAAO,EAAE,OAAO;IAChB,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,IAAI;IACZ,KAAK,EAAE,CAAC,IAAI,UAAU,CAAC,gBAAgB,CAAC,CAAC,MAAM,CAAC;IAChD,OAAO,EAAE;QACP,UAAU,EAAE;YACV,KAAK,EAAE,aAAa;SACrB;QACD,GAAG,EAAE;YACH,SAAS,EAAE,KAAK;SACjB;KACF;IACD,OAAO;CAKR,CAAC;AAEF,wCAAwC;AACxC,MAAM,CAAC,MAAM,sBAAsB,GAAG,gBAAgB,CAAC"}
@@ -9,7 +9,7 @@ import { getFlatGeobufCRSIdentifier, readFlatGeobufHeader } from "./lib/flatgeob
9
9
  import { FLATGEOBUF_TABLE_QUERY_CAPABILITIES } from "./flatgeobuf-table-query-capabilities.js";
10
10
  // __VERSION__ is injected by babel-plugin-version-inline
11
11
  // @ts-ignore TS2304: Cannot find name '__VERSION__'.
12
- const VERSION = typeof "5.0.0-alpha.13" !== 'undefined' ? "5.0.0-alpha.13" : 'latest';
12
+ const VERSION = typeof "5.0.0-alpha.14" !== 'undefined' ? "5.0.0-alpha.14" : 'latest';
13
13
  /** Incrementally loads indexed FlatGeobuf data sources. */
14
14
  export const FlatGeobufSourceLoader = {
15
15
  dataType: null,
@@ -169,7 +169,7 @@ function createAuthenticatedFetch(options) {
169
169
  const authenticatedFetch = async (url, requestOptions = {}) => {
170
170
  var _a, _b, _c, _d, _e, _f, _g;
171
171
  requestOptions = mergeFetchOptions(fetchOptions, requestOptions);
172
- if ((_a = requestOptions.signal) == null ? void 0 : _a.aborted) throw createAbortError();
172
+ (_a = requestOptions.signal) == null ? void 0 : _a.throwIfAborted();
173
173
  if (!credentials.length) return baseFetch(url, requestOptions);
174
174
  const resolvedURL = parseHTTPURL(url);
175
175
  const authorization = resolvedURL ? await authorizeRequest(resolvedURL, requestOptions, tokenCredentials) : { url, options: requestOptions, credentials: [] };
@@ -188,7 +188,7 @@ function createAuthenticatedFetch(options) {
188
188
  }
189
189
  );
190
190
  if (!refreshableCredentials.length && !shouldRetrySignature) return response;
191
- if ((_e = requestOptions.signal) == null ? void 0 : _e.aborted) throw createAbortError();
191
+ (_e = requestOptions.signal) == null ? void 0 : _e.throwIfAborted();
192
192
  const refreshedTokens = /* @__PURE__ */ new Map();
193
193
  await Promise.all(
194
194
  refreshableCredentials.map(async ({ credential }) => {
@@ -199,7 +199,7 @@ function createAuthenticatedFetch(options) {
199
199
  if (!refreshedTokens.size && !shouldRetrySignature) return response;
200
200
  await ((_f = response.body) == null ? void 0 : _f.cancel().catch(() => {
201
201
  }));
202
- if ((_g = requestOptions.signal) == null ? void 0 : _g.aborted) throw createAbortError();
202
+ (_g = requestOptions.signal) == null ? void 0 : _g.throwIfAborted();
203
203
  const replayAuthorization = resolvedURL ? await authorizeRequest(
204
204
  resolvedURL,
205
205
  requestOptions,
@@ -234,9 +234,10 @@ function getAuthenticatedFetch(options = {}) {
234
234
  } else {
235
235
  fetchFunction = (url, requestOptions) => fetch(url, requestOptions);
236
236
  }
237
+ const fetchOptions = typeof fetchOption === "object" && fetchOption ? fetchOption : void 0;
237
238
  return createAuthenticatedFetch({
238
239
  fetch: fetchFunction,
239
- fetchOptions: typeof fetchOption === "object" && fetchOption ? fetchOption : void 0,
240
+ fetchOptions: options.signal ? { ...fetchOptions, signal: options.signal } : fetchOptions,
240
241
  credentials: ((_b = options.core) == null ? void 0 : _b.credentials) || [],
241
242
  authentications: (_c = options.core) == null ? void 0 : _c.authentications
242
243
  });
@@ -256,7 +257,7 @@ async function authenticateRequest(request, credentials, reason, response) {
256
257
  for (const credential of credentials) {
257
258
  const origin = getRequestOrigin(request.url);
258
259
  if (!origin || !normalizeRequestOrigins(credential.origins).includes(origin)) continue;
259
- if (signal == null ? void 0 : signal.aborted) throw createAbortError();
260
+ signal == null ? void 0 : signal.throwIfAborted();
260
261
  const authenticatedRequest = await credential.authenticate({
261
262
  url: request.url,
262
263
  options: { ...request.options, headers: new Headers(request.options.headers) },
@@ -272,7 +273,7 @@ async function authenticateRequest(request, credentials, reason, response) {
272
273
  };
273
274
  appliedCredentials.push(credential);
274
275
  }
275
- if (signal == null ? void 0 : signal.aborted) throw createAbortError();
276
+ signal == null ? void 0 : signal.throwIfAborted();
276
277
  return { ...request, credentials: appliedCredentials };
277
278
  }
278
279
  function getRequestOrigin(url) {
@@ -362,9 +363,6 @@ function isReplayableRequest(options) {
362
363
  if (!["GET", "HEAD", "OPTIONS", "PUT", "DELETE"].includes(method)) return false;
363
364
  return !(options.body && typeof ReadableStream !== "undefined" && options.body instanceof ReadableStream);
364
365
  }
365
- function createAbortError() {
366
- return new DOMException("The operation was aborted.", "AbortError");
367
- }
368
366
  var AUTHENTICATED_FETCH, refreshPromises;
369
367
  var init_request_credentials = __esm({
370
368
  "../core/src/loader-utils/lib/request-utils/request-credentials.ts"() {
@@ -4419,7 +4417,7 @@ var init_flatgeobuf_format = __esm({
4419
4417
 
4420
4418
  // src/flatgeobuf/flatgeobuf-loader-types.ts
4421
4419
  async function preload() {
4422
- const { FlatGeobufLoaderWithParser: FlatGeobufLoaderWithParser2 } = await Promise.resolve().then(() => (init_flatgeobuf(), flatgeobuf_exports));
4420
+ const { FlatGeobufLoaderWithParser: FlatGeobufLoaderWithParser2 } = await Promise.resolve().then(() => (init_flatgeobuf_loader(), flatgeobuf_loader_exports));
4423
4421
  return FlatGeobufLoaderWithParser2;
4424
4422
  }
4425
4423
  var VERSION2, FGB_MAGIC_NUMBER, FlatGeobufLoader, FlatGeobufWorkerLoader;
@@ -4492,6 +4490,11 @@ var init_flatgeobuf_worker_transport = __esm({
4492
4490
  });
4493
4491
 
4494
4492
  // src/flatgeobuf/flatgeobuf-loader.ts
4493
+ var flatgeobuf_loader_exports = {};
4494
+ __export(flatgeobuf_loader_exports, {
4495
+ FlatGeobufLoaderWithParser: () => FlatGeobufLoaderWithParser,
4496
+ FlatGeobufWorkerLoaderWithParser: () => FlatGeobufWorkerLoaderWithParser
4497
+ });
4495
4498
  function parseSync(arrayBuffer, options = {}) {
4496
4499
  return parseFlatGeobuf(arrayBuffer, getOptions(options));
4497
4500
  }
@@ -4532,18 +4535,6 @@ var init_flatgeobuf_loader = __esm({
4532
4535
  }
4533
4536
  });
4534
4537
 
4535
- // src/flatgeobuf.ts
4536
- var flatgeobuf_exports = {};
4537
- __export(flatgeobuf_exports, {
4538
- FlatGeobufLoaderWithParser: () => FlatGeobufLoaderWithParser
4539
- });
4540
- var init_flatgeobuf = __esm({
4541
- "src/flatgeobuf.ts"() {
4542
- "use strict";
4543
- init_flatgeobuf_loader();
4544
- }
4545
- });
4546
-
4547
4538
  // dist/flatgeobuf/index.js
4548
4539
  var index_exports = {};
4549
4540
  __export(index_exports, {
@@ -4579,10 +4570,10 @@ var FLATGEOBUF_TABLE_QUERY_CAPABILITIES = Object.freeze({
4579
4570
  });
4580
4571
 
4581
4572
  // dist/flatgeobuf/flatgeobuf-loader-types.js
4582
- var VERSION3 = true ? "5.0.0-alpha.13" : "latest";
4573
+ var VERSION3 = true ? "5.0.0-alpha.14" : "latest";
4583
4574
  var FGB_MAGIC_NUMBER2 = [102, 103, 98, 3, 102, 103, 98, 1];
4584
4575
  async function preload2() {
4585
- const { FlatGeobufLoaderWithParser: FlatGeobufLoaderWithParser2 } = await Promise.resolve().then(() => (init_flatgeobuf(), flatgeobuf_exports));
4576
+ const { FlatGeobufLoaderWithParser: FlatGeobufLoaderWithParser2 } = await Promise.resolve().then(() => (init_flatgeobuf_loader(), flatgeobuf_loader_exports));
4586
4577
  return FlatGeobufLoaderWithParser2;
4587
4578
  }
4588
4579
  var FlatGeobufLoader2 = {
@@ -5335,7 +5326,7 @@ function makePropertySchema2(header) {
5335
5326
  }
5336
5327
 
5337
5328
  // dist/flatgeobuf/flatgeobuf-source-loader.js
5338
- var VERSION4 = true ? "5.0.0-alpha.13" : "latest";
5329
+ var VERSION4 = true ? "5.0.0-alpha.14" : "latest";
5339
5330
  var FlatGeobufSourceLoader = {
5340
5331
  dataType: null,
5341
5332
  batchType: null,