@basemaps/cli-raster 8.2.0 → 8.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.cjs +547 -347
  2. package/package.json +6 -6
package/dist/index.cjs CHANGED
@@ -44838,7 +44838,7 @@ var require_GetObjectCommand = __commonJS({
44838
44838
  var types_1 = require_dist_cjs();
44839
44839
  var models_0_1 = require_models_0();
44840
44840
  var Aws_restXml_1 = require_Aws_restXml();
44841
- var GetObjectCommand3 = class _GetObjectCommand extends smithy_client_1.Command {
44841
+ var GetObjectCommand4 = class _GetObjectCommand extends smithy_client_1.Command {
44842
44842
  static getEndpointParameterInstructions() {
44843
44843
  return {
44844
44844
  Bucket: { type: "contextParams", name: "Bucket" },
@@ -44894,7 +44894,7 @@ var require_GetObjectCommand = __commonJS({
44894
44894
  return (0, Aws_restXml_1.de_GetObjectCommand)(output, context);
44895
44895
  }
44896
44896
  };
44897
- exports.GetObjectCommand = GetObjectCommand3;
44897
+ exports.GetObjectCommand = GetObjectCommand4;
44898
44898
  }
44899
44899
  });
44900
44900
 
@@ -49117,6 +49117,204 @@ var require_dist_cjs69 = __commonJS({
49117
49117
  }
49118
49118
  });
49119
49119
 
49120
+ // ../shared/node_modules/@aws-sdk/util-format-url/dist-cjs/index.js
49121
+ var require_dist_cjs70 = __commonJS({
49122
+ "../shared/node_modules/@aws-sdk/util-format-url/dist-cjs/index.js"(exports) {
49123
+ "use strict";
49124
+ Object.defineProperty(exports, "__esModule", { value: true });
49125
+ exports.formatUrl = void 0;
49126
+ var querystring_builder_1 = require_dist_cjs13();
49127
+ function formatUrl(request) {
49128
+ var _a2, _b;
49129
+ const { port, query } = request;
49130
+ let { protocol, path: path3, hostname } = request;
49131
+ if (protocol && protocol.slice(-1) !== ":") {
49132
+ protocol += ":";
49133
+ }
49134
+ if (port) {
49135
+ hostname += `:${port}`;
49136
+ }
49137
+ if (path3 && path3.charAt(0) !== "/") {
49138
+ path3 = `/${path3}`;
49139
+ }
49140
+ let queryString = query ? (0, querystring_builder_1.buildQueryString)(query) : "";
49141
+ if (queryString && queryString[0] !== "?") {
49142
+ queryString = `?${queryString}`;
49143
+ }
49144
+ let auth = "";
49145
+ if (request.username != null || request.password != null) {
49146
+ const username = (_a2 = request.username) !== null && _a2 !== void 0 ? _a2 : "";
49147
+ const password = (_b = request.password) !== null && _b !== void 0 ? _b : "";
49148
+ auth = `${username}:${password}@`;
49149
+ }
49150
+ let fragment = "";
49151
+ if (request.fragment) {
49152
+ fragment = `#${request.fragment}`;
49153
+ }
49154
+ return `${protocol}//${auth}${hostname}${path3}${queryString}${fragment}`;
49155
+ }
49156
+ exports.formatUrl = formatUrl;
49157
+ }
49158
+ });
49159
+
49160
+ // ../shared/node_modules/@aws-sdk/s3-request-presigner/dist-cjs/constants.js
49161
+ var require_constants11 = __commonJS({
49162
+ "../shared/node_modules/@aws-sdk/s3-request-presigner/dist-cjs/constants.js"(exports) {
49163
+ "use strict";
49164
+ Object.defineProperty(exports, "__esModule", { value: true });
49165
+ exports.ALGORITHM_IDENTIFIER = exports.HOST_HEADER = exports.EXPIRES_QUERY_PARAM = exports.SIGNED_HEADERS_QUERY_PARAM = exports.AMZ_DATE_QUERY_PARAM = exports.CREDENTIAL_QUERY_PARAM = exports.ALGORITHM_QUERY_PARAM = exports.SHA256_HEADER = exports.UNSIGNED_PAYLOAD = void 0;
49166
+ exports.UNSIGNED_PAYLOAD = "UNSIGNED-PAYLOAD";
49167
+ exports.SHA256_HEADER = "X-Amz-Content-Sha256";
49168
+ exports.ALGORITHM_QUERY_PARAM = "X-Amz-Algorithm";
49169
+ exports.CREDENTIAL_QUERY_PARAM = "X-Amz-Credential";
49170
+ exports.AMZ_DATE_QUERY_PARAM = "X-Amz-Date";
49171
+ exports.SIGNED_HEADERS_QUERY_PARAM = "X-Amz-SignedHeaders";
49172
+ exports.EXPIRES_QUERY_PARAM = "X-Amz-Expires";
49173
+ exports.HOST_HEADER = "host";
49174
+ exports.ALGORITHM_IDENTIFIER = "AWS4-HMAC-SHA256";
49175
+ }
49176
+ });
49177
+
49178
+ // ../shared/node_modules/@aws-sdk/s3-request-presigner/dist-cjs/presigner.js
49179
+ var require_presigner = __commonJS({
49180
+ "../shared/node_modules/@aws-sdk/s3-request-presigner/dist-cjs/presigner.js"(exports) {
49181
+ "use strict";
49182
+ Object.defineProperty(exports, "__esModule", { value: true });
49183
+ exports.S3RequestPresigner = void 0;
49184
+ var signature_v4_multi_region_1 = require_dist_cjs64();
49185
+ var constants_1 = require_constants11();
49186
+ var S3RequestPresigner = class {
49187
+ constructor(options) {
49188
+ const resolvedOptions = {
49189
+ service: options.signingName || options.service || "s3",
49190
+ uriEscapePath: options.uriEscapePath || false,
49191
+ applyChecksum: options.applyChecksum || false,
49192
+ ...options
49193
+ };
49194
+ this.signer = new signature_v4_multi_region_1.SignatureV4MultiRegion(resolvedOptions);
49195
+ }
49196
+ presign(requestToSign, { unsignableHeaders = /* @__PURE__ */ new Set(), unhoistableHeaders = /* @__PURE__ */ new Set(), ...options } = {}) {
49197
+ this.prepareRequest(requestToSign, {
49198
+ unsignableHeaders,
49199
+ unhoistableHeaders
49200
+ });
49201
+ return this.signer.presign(requestToSign, {
49202
+ expiresIn: 900,
49203
+ unsignableHeaders,
49204
+ unhoistableHeaders,
49205
+ ...options
49206
+ });
49207
+ }
49208
+ presignWithCredentials(requestToSign, credentials2, { unsignableHeaders = /* @__PURE__ */ new Set(), unhoistableHeaders = /* @__PURE__ */ new Set(), ...options } = {}) {
49209
+ this.prepareRequest(requestToSign, {
49210
+ unsignableHeaders,
49211
+ unhoistableHeaders
49212
+ });
49213
+ return this.signer.presignWithCredentials(requestToSign, credentials2, {
49214
+ expiresIn: 900,
49215
+ unsignableHeaders,
49216
+ unhoistableHeaders,
49217
+ ...options
49218
+ });
49219
+ }
49220
+ prepareRequest(requestToSign, { unsignableHeaders = /* @__PURE__ */ new Set(), unhoistableHeaders = /* @__PURE__ */ new Set() } = {}) {
49221
+ unsignableHeaders.add("content-type");
49222
+ Object.keys(requestToSign.headers).map((header) => header.toLowerCase()).filter((header) => header.startsWith("x-amz-server-side-encryption")).forEach((header) => {
49223
+ unhoistableHeaders.add(header);
49224
+ });
49225
+ requestToSign.headers[constants_1.SHA256_HEADER] = constants_1.UNSIGNED_PAYLOAD;
49226
+ const currentHostHeader = requestToSign.headers.host;
49227
+ const port = requestToSign.port;
49228
+ const expectedHostHeader = `${requestToSign.hostname}${requestToSign.port != null ? ":" + port : ""}`;
49229
+ if (!currentHostHeader || currentHostHeader === requestToSign.hostname && requestToSign.port != null) {
49230
+ requestToSign.headers.host = expectedHostHeader;
49231
+ }
49232
+ }
49233
+ };
49234
+ exports.S3RequestPresigner = S3RequestPresigner;
49235
+ }
49236
+ });
49237
+
49238
+ // ../shared/node_modules/@aws-sdk/s3-request-presigner/dist-cjs/getSignedUrl.js
49239
+ var require_getSignedUrl = __commonJS({
49240
+ "../shared/node_modules/@aws-sdk/s3-request-presigner/dist-cjs/getSignedUrl.js"(exports) {
49241
+ "use strict";
49242
+ Object.defineProperty(exports, "__esModule", { value: true });
49243
+ exports.getSignedUrl = void 0;
49244
+ var util_format_url_1 = require_dist_cjs70();
49245
+ var middleware_endpoint_1 = require_dist_cjs38();
49246
+ var protocol_http_1 = require_dist_cjs2();
49247
+ var presigner_1 = require_presigner();
49248
+ var getSignedUrl2 = async (client, command5, options = {}) => {
49249
+ var _a2, _b;
49250
+ let s3Presigner;
49251
+ if (typeof client.config.endpointProvider === "function") {
49252
+ const endpointV2 = await (0, middleware_endpoint_1.getEndpointFromInstructions)(command5.input, command5.constructor, client.config);
49253
+ const authScheme = (_b = (_a2 = endpointV2.properties) === null || _a2 === void 0 ? void 0 : _a2.authSchemes) === null || _b === void 0 ? void 0 : _b[0];
49254
+ s3Presigner = new presigner_1.S3RequestPresigner({
49255
+ ...client.config,
49256
+ signingName: authScheme === null || authScheme === void 0 ? void 0 : authScheme.signingName,
49257
+ region: async () => authScheme === null || authScheme === void 0 ? void 0 : authScheme.signingRegion
49258
+ });
49259
+ } else {
49260
+ s3Presigner = new presigner_1.S3RequestPresigner(client.config);
49261
+ }
49262
+ const presignInterceptMiddleware = (next, context) => async (args) => {
49263
+ var _a3, _b2;
49264
+ const { request } = args;
49265
+ if (!protocol_http_1.HttpRequest.isInstance(request)) {
49266
+ throw new Error("Request to be presigned is not an valid HTTP request.");
49267
+ }
49268
+ delete request.headers["amz-sdk-invocation-id"];
49269
+ delete request.headers["amz-sdk-request"];
49270
+ delete request.headers["x-amz-user-agent"];
49271
+ let presigned2;
49272
+ const presignerOptions = {
49273
+ ...options,
49274
+ signingRegion: (_a3 = options.signingRegion) !== null && _a3 !== void 0 ? _a3 : context["signing_region"],
49275
+ signingService: (_b2 = options.signingService) !== null && _b2 !== void 0 ? _b2 : context["signing_service"]
49276
+ };
49277
+ if (context.s3ExpressIdentity) {
49278
+ presigned2 = await s3Presigner.presignWithCredentials(request, context.s3ExpressIdentity, presignerOptions);
49279
+ } else {
49280
+ presigned2 = await s3Presigner.presign(request, presignerOptions);
49281
+ }
49282
+ return {
49283
+ response: {},
49284
+ output: {
49285
+ $metadata: { httpStatusCode: 200 },
49286
+ presigned: presigned2
49287
+ }
49288
+ };
49289
+ };
49290
+ const middlewareName = "presignInterceptMiddleware";
49291
+ const clientStack = client.middlewareStack.clone();
49292
+ clientStack.addRelativeTo(presignInterceptMiddleware, {
49293
+ name: middlewareName,
49294
+ relation: "before",
49295
+ toMiddleware: "awsAuthMiddleware",
49296
+ override: true
49297
+ });
49298
+ const handler = command5.resolveMiddleware(clientStack, client.config, {});
49299
+ const { output } = await handler({ input: command5.input });
49300
+ const { presigned } = output;
49301
+ return (0, util_format_url_1.formatUrl)(presigned);
49302
+ };
49303
+ exports.getSignedUrl = getSignedUrl2;
49304
+ }
49305
+ });
49306
+
49307
+ // ../shared/node_modules/@aws-sdk/s3-request-presigner/dist-cjs/index.js
49308
+ var require_dist_cjs71 = __commonJS({
49309
+ "../shared/node_modules/@aws-sdk/s3-request-presigner/dist-cjs/index.js"(exports) {
49310
+ "use strict";
49311
+ Object.defineProperty(exports, "__esModule", { value: true });
49312
+ var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
49313
+ tslib_1.__exportStar(require_getSignedUrl(), exports);
49314
+ tslib_1.__exportStar(require_presigner(), exports);
49315
+ }
49316
+ });
49317
+
49120
49318
  // ../../node_modules/@aws-sdk/client-cognito-identity/dist-cjs/endpoint/EndpointParameters.js
49121
49319
  var require_EndpointParameters4 = __commonJS({
49122
49320
  "../../node_modules/@aws-sdk/client-cognito-identity/dist-cjs/endpoint/EndpointParameters.js"(exports) {
@@ -52666,7 +52864,7 @@ var require_models4 = __commonJS({
52666
52864
  });
52667
52865
 
52668
52866
  // ../../node_modules/@aws-sdk/client-cognito-identity/dist-cjs/index.js
52669
- var require_dist_cjs70 = __commonJS({
52867
+ var require_dist_cjs72 = __commonJS({
52670
52868
  "../../node_modules/@aws-sdk/client-cognito-identity/dist-cjs/index.js"(exports) {
52671
52869
  "use strict";
52672
52870
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -52739,7 +52937,7 @@ var require_fromCognitoIdentity = __commonJS({
52739
52937
  "use strict";
52740
52938
  Object.defineProperty(exports, "__esModule", { value: true });
52741
52939
  exports.fromCognitoIdentity = void 0;
52742
- var client_cognito_identity_1 = require_dist_cjs70();
52940
+ var client_cognito_identity_1 = require_dist_cjs72();
52743
52941
  var property_provider_1 = require_dist_cjs25();
52744
52942
  var resolveLogins_1 = require_resolveLogins();
52745
52943
  function fromCognitoIdentity(parameters) {
@@ -52903,7 +53101,7 @@ var require_fromCognitoIdentityPool = __commonJS({
52903
53101
  "use strict";
52904
53102
  Object.defineProperty(exports, "__esModule", { value: true });
52905
53103
  exports.fromCognitoIdentityPool = void 0;
52906
- var client_cognito_identity_1 = require_dist_cjs70();
53104
+ var client_cognito_identity_1 = require_dist_cjs72();
52907
53105
  var property_provider_1 = require_dist_cjs25();
52908
53106
  var fromCognitoIdentity_1 = require_fromCognitoIdentity();
52909
53107
  var localStorage_1 = require_localStorage();
@@ -52948,7 +53146,7 @@ var require_fromCognitoIdentityPool = __commonJS({
52948
53146
  });
52949
53147
 
52950
53148
  // ../../node_modules/@aws-sdk/credential-provider-cognito-identity/dist-cjs/index.js
52951
- var require_dist_cjs71 = __commonJS({
53149
+ var require_dist_cjs73 = __commonJS({
52952
53150
  "../../node_modules/@aws-sdk/credential-provider-cognito-identity/dist-cjs/index.js"(exports) {
52953
53151
  "use strict";
52954
53152
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -52967,8 +53165,8 @@ var require_fromCognitoIdentity2 = __commonJS({
52967
53165
  "use strict";
52968
53166
  Object.defineProperty(exports, "__esModule", { value: true });
52969
53167
  exports.fromCognitoIdentity = void 0;
52970
- var client_cognito_identity_1 = require_dist_cjs70();
52971
- var credential_provider_cognito_identity_1 = require_dist_cjs71();
53168
+ var client_cognito_identity_1 = require_dist_cjs72();
53169
+ var credential_provider_cognito_identity_1 = require_dist_cjs73();
52972
53170
  var fromCognitoIdentity = (options) => {
52973
53171
  var _a2;
52974
53172
  return (0, credential_provider_cognito_identity_1.fromCognitoIdentity)({
@@ -52986,8 +53184,8 @@ var require_fromCognitoIdentityPool2 = __commonJS({
52986
53184
  "use strict";
52987
53185
  Object.defineProperty(exports, "__esModule", { value: true });
52988
53186
  exports.fromCognitoIdentityPool = void 0;
52989
- var client_cognito_identity_1 = require_dist_cjs70();
52990
- var credential_provider_cognito_identity_1 = require_dist_cjs71();
53187
+ var client_cognito_identity_1 = require_dist_cjs72();
53188
+ var credential_provider_cognito_identity_1 = require_dist_cjs73();
52991
53189
  var fromCognitoIdentityPool = (options) => {
52992
53190
  var _a2;
52993
53191
  return (0, credential_provider_cognito_identity_1.fromCognitoIdentityPool)({
@@ -53208,7 +53406,7 @@ var require_fromHttp = __commonJS({
53208
53406
  });
53209
53407
 
53210
53408
  // ../../node_modules/@aws-sdk/credential-provider-http/dist-cjs/index.js
53211
- var require_dist_cjs72 = __commonJS({
53409
+ var require_dist_cjs74 = __commonJS({
53212
53410
  "../../node_modules/@aws-sdk/credential-provider-http/dist-cjs/index.js"(exports) {
53213
53411
  "use strict";
53214
53412
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -53378,7 +53576,7 @@ var require_fromWebToken2 = __commonJS({
53378
53576
  });
53379
53577
 
53380
53578
  // ../../node_modules/@aws-sdk/credential-providers/dist-cjs/index.js
53381
- var require_dist_cjs73 = __commonJS({
53579
+ var require_dist_cjs75 = __commonJS({
53382
53580
  "../../node_modules/@aws-sdk/credential-providers/dist-cjs/index.js"(exports) {
53383
53581
  "use strict";
53384
53582
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -53388,7 +53586,7 @@ var require_dist_cjs73 = __commonJS({
53388
53586
  tslib_1.__exportStar(require_fromCognitoIdentityPool2(), exports);
53389
53587
  tslib_1.__exportStar(require_fromContainerMetadata2(), exports);
53390
53588
  tslib_1.__exportStar(require_fromEnv3(), exports);
53391
- var credential_provider_http_1 = require_dist_cjs72();
53589
+ var credential_provider_http_1 = require_dist_cjs74();
53392
53590
  Object.defineProperty(exports, "fromHttp", { enumerable: true, get: function() {
53393
53591
  return credential_provider_http_1.fromHttp;
53394
53592
  } });
@@ -53453,7 +53651,7 @@ var require_AbortController = __commonJS({
53453
53651
  });
53454
53652
 
53455
53653
  // ../../node_modules/@smithy/abort-controller/dist-cjs/index.js
53456
- var require_dist_cjs74 = __commonJS({
53654
+ var require_dist_cjs76 = __commonJS({
53457
53655
  "../../node_modules/@smithy/abort-controller/dist-cjs/index.js"(exports) {
53458
53656
  "use strict";
53459
53657
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -53667,7 +53865,7 @@ var require_Upload = __commonJS({
53667
53865
  Object.defineProperty(exports, "__esModule", { value: true });
53668
53866
  exports.Upload = void 0;
53669
53867
  var client_s3_1 = require_dist_cjs69();
53670
- var abort_controller_1 = require_dist_cjs74();
53868
+ var abort_controller_1 = require_dist_cjs76();
53671
53869
  var middleware_endpoint_1 = require_dist_cjs38();
53672
53870
  var smithy_client_1 = require_dist_cjs16();
53673
53871
  var events_1 = require("events");
@@ -53940,7 +54138,7 @@ var require_types11 = __commonJS({
53940
54138
  });
53941
54139
 
53942
54140
  // ../../node_modules/@aws-sdk/lib-storage/dist-cjs/index.js
53943
- var require_dist_cjs75 = __commonJS({
54141
+ var require_dist_cjs77 = __commonJS({
53944
54142
  "../../node_modules/@aws-sdk/lib-storage/dist-cjs/index.js"(exports) {
53945
54143
  "use strict";
53946
54144
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -54701,7 +54899,7 @@ var require_EndpointCache = __commonJS({
54701
54899
  });
54702
54900
 
54703
54901
  // ../../node_modules/@aws-sdk/endpoint-cache/dist-cjs/index.js
54704
- var require_dist_cjs76 = __commonJS({
54902
+ var require_dist_cjs78 = __commonJS({
54705
54903
  "../../node_modules/@aws-sdk/endpoint-cache/dist-cjs/index.js"(exports) {
54706
54904
  "use strict";
54707
54905
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -54717,7 +54915,7 @@ var require_resolveEndpointDiscoveryConfig = __commonJS({
54717
54915
  "use strict";
54718
54916
  Object.defineProperty(exports, "__esModule", { value: true });
54719
54917
  exports.resolveEndpointDiscoveryConfig = void 0;
54720
- var endpoint_cache_1 = require_dist_cjs76();
54918
+ var endpoint_cache_1 = require_dist_cjs78();
54721
54919
  var resolveEndpointDiscoveryConfig = (input, { endpointDiscoveryCommandCtor }) => {
54722
54920
  var _a2;
54723
54921
  return {
@@ -54733,7 +54931,7 @@ var require_resolveEndpointDiscoveryConfig = __commonJS({
54733
54931
  });
54734
54932
 
54735
54933
  // ../../node_modules/@aws-sdk/middleware-endpoint-discovery/dist-cjs/index.js
54736
- var require_dist_cjs77 = __commonJS({
54934
+ var require_dist_cjs79 = __commonJS({
54737
54935
  "../../node_modules/@aws-sdk/middleware-endpoint-discovery/dist-cjs/index.js"(exports) {
54738
54936
  "use strict";
54739
54937
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -60213,7 +60411,7 @@ var require_runtimeConfig6 = __commonJS({
60213
60411
  var client_sts_1 = require_dist_cjs59();
60214
60412
  var core_1 = require_dist_cjs44();
60215
60413
  var credential_provider_node_1 = require_dist_cjs58();
60216
- var middleware_endpoint_discovery_1 = require_dist_cjs77();
60414
+ var middleware_endpoint_discovery_1 = require_dist_cjs79();
60217
60415
  var util_user_agent_node_1 = require_dist_cjs48();
60218
60416
  var config_resolver_1 = require_dist_cjs30();
60219
60417
  var hash_node_1 = require_dist_cjs49();
@@ -60292,7 +60490,7 @@ var require_DynamoDBClient = __commonJS({
60292
60490
  "use strict";
60293
60491
  Object.defineProperty(exports, "__esModule", { value: true });
60294
60492
  exports.DynamoDBClient = exports.__Client = void 0;
60295
- var middleware_endpoint_discovery_1 = require_dist_cjs77();
60493
+ var middleware_endpoint_discovery_1 = require_dist_cjs79();
60296
60494
  var middleware_host_header_1 = require_dist_cjs4();
60297
60495
  var middleware_logger_1 = require_dist_cjs5();
60298
60496
  var middleware_recursion_detection_1 = require_dist_cjs6();
@@ -63924,7 +64122,7 @@ var require_models5 = __commonJS({
63924
64122
  });
63925
64123
 
63926
64124
  // ../../node_modules/@aws-sdk/client-dynamodb/dist-cjs/index.js
63927
- var require_dist_cjs78 = __commonJS({
64125
+ var require_dist_cjs80 = __commonJS({
63928
64126
  "../../node_modules/@aws-sdk/client-dynamodb/dist-cjs/index.js"(exports) {
63929
64127
  "use strict";
63930
64128
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -64260,7 +64458,7 @@ var require_unmarshall = __commonJS({
64260
64458
  });
64261
64459
 
64262
64460
  // ../../node_modules/@aws-sdk/util-dynamodb/dist-cjs/index.js
64263
- var require_dist_cjs79 = __commonJS({
64461
+ var require_dist_cjs81 = __commonJS({
64264
64462
  "../../node_modules/@aws-sdk/util-dynamodb/dist-cjs/index.js"(exports) {
64265
64463
  "use strict";
64266
64464
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -72934,9 +73132,9 @@ var ulid2 = __toESM(require_index_umd(), 1);
72934
73132
  var CliInfo = {
72935
73133
  // Detect unlinked packages looks for this string since its a package name, slightly work around it
72936
73134
  package: "@basemaps/cli",
72937
- version: "v8.2.0",
72938
- hash: "69195be692efa914369fa854d3bae16355dc0dc8",
72939
- buildId: "15601557572-1"
73135
+ version: "v8.5.0",
73136
+ hash: "4f6f3929b9117c3e112f7d156ab185cb98821796",
73137
+ buildId: "16305730095-1"
72940
73138
  };
72941
73139
  var CliDate = (/* @__PURE__ */ new Date()).toISOString();
72942
73140
  var CliId = ulid2.ulid();
@@ -77602,6 +77800,7 @@ var MemoryConfigObject = class extends BasemapsConfigObject {
77602
77800
  // ../shared/build/file.system.js
77603
77801
  var import_node_url3 = require("url");
77604
77802
  var import_client_s34 = __toESM(require_dist_cjs69(), 1);
77803
+ var import_s3_request_presigner = __toESM(require_dist_cjs71(), 1);
77605
77804
 
77606
77805
  // ../../node_modules/@chunkd/source/build/src/error.js
77607
77806
  var SourceError = class _SourceError extends Error {
@@ -78275,12 +78474,12 @@ var FsHttp = class {
78275
78474
 
78276
78475
  // ../../node_modules/@chunkd/fs-aws/build/src/credentials.js
78277
78476
  var import_client_s33 = __toESM(require_dist_cjs69(), 1);
78278
- var import_credential_providers = __toESM(require_dist_cjs73(), 1);
78477
+ var import_credential_providers = __toESM(require_dist_cjs75(), 1);
78279
78478
 
78280
78479
  // ../../node_modules/@chunkd/fs-aws/build/src/fs.s3.js
78281
78480
  var import_node_stream = require("stream");
78282
78481
  var import_client_s32 = __toESM(require_dist_cjs69(), 1);
78283
- var import_lib_storage = __toESM(require_dist_cjs75(), 1);
78482
+ var import_lib_storage = __toESM(require_dist_cjs77(), 1);
78284
78483
 
78285
78484
  // ../../node_modules/@chunkd/source-aws/build/src/index.js
78286
78485
  var import_client_s3 = __toESM(require_dist_cjs69(), 1);
@@ -79004,14 +79203,15 @@ function hasHostName(x) {
79004
79203
  }
79005
79204
 
79006
79205
  // ../shared/build/file.system.js
79007
- var s3Fs = new FsAwsS3(new import_client_s34.S3Client({
79206
+ var s3Client = new import_client_s34.S3Client({
79008
79207
  /**
79009
- * We buckets in multiple regions we do not know ahead of time which bucket is in what region
79208
+ * We have buckets in multiple regions. We don’t know ahead of time which region each bucket is in
79010
79209
  *
79011
- * So the S3 Client will have to follow the endpoints, this adds a bit of extra latency as requests have to be retried
79210
+ * So, the S3 Client will have to follow the endpoints. This adds a bit of extra latency as requests have to be retried
79012
79211
  */
79013
79212
  followRegionRedirects: true
79014
- }));
79213
+ });
79214
+ var s3Fs = new FsAwsS3(s3Client);
79015
79215
  var s3FsPublic = new FsAwsS3(new import_client_s34.S3Client({
79016
79216
  followRegionRedirects: true,
79017
79217
  signer: {
@@ -79139,12 +79339,12 @@ var UrlArrayJsonFile = {
79139
79339
  };
79140
79340
 
79141
79341
  // ../shared/build/dynamo/dynamo.config.js
79142
- var import_client_dynamodb2 = __toESM(require_dist_cjs78(), 1);
79342
+ var import_client_dynamodb2 = __toESM(require_dist_cjs80(), 1);
79143
79343
  var import_util_retry = __toESM(require_dist_cjs40(), 1);
79144
79344
 
79145
79345
  // ../shared/build/dynamo/dynamo.config.base.js
79146
- var import_client_dynamodb = __toESM(require_dist_cjs78(), 1);
79147
- var import_util_dynamodb = __toESM(require_dist_cjs79(), 1);
79346
+ var import_client_dynamodb = __toESM(require_dist_cjs80(), 1);
79347
+ var import_util_dynamodb = __toESM(require_dist_cjs81(), 1);
79148
79348
  function toId(id) {
79149
79349
  return { id: { S: id } };
79150
79350
  }
@@ -80372,143 +80572,6 @@ Object.defineProperty(Projection, "AllowedFloatingError", {
80372
80572
  value: 1e-8
80373
80573
  });
80374
80574
 
80375
- // ../geo/build/proj/projection.loader.js
80376
- var ProjectionLoader = class {
80377
- /**
80378
- * Ensure that a projection EPSG code is avialable for use in Proj4js
80379
- *
80380
- * If its not already loaded, lookup definition from spatialreference.org
80381
- * @param code
80382
- */
80383
- static async load(code) {
80384
- if (Projection.tryGet(code) != null)
80385
- return Epsg.get(code);
80386
- const url = `https://spatialreference.org/ref/epsg/${code}/ogcwkt/`;
80387
- const res = await this._fetch(url);
80388
- if (!res.ok)
80389
- throw new Error("Failed to load projection information for:" + code);
80390
- let epsg = Epsg.tryGet(code);
80391
- if (epsg == null)
80392
- epsg = new Epsg(code);
80393
- const text = await res.text();
80394
- Projection.define(epsg, text);
80395
- return epsg;
80396
- }
80397
- };
80398
- Object.defineProperty(ProjectionLoader, "_fetch", {
80399
- enumerable: true,
80400
- configurable: true,
80401
- writable: true,
80402
- value: fetch
80403
- });
80404
-
80405
- // ../geo/build/proj/tile.set.name.js
80406
- var TileSetName;
80407
- (function(TileSetName2) {
80408
- TileSetName2["aerial"] = "aerial";
80409
- })(TileSetName || (TileSetName = {}));
80410
-
80411
- // ../geo/build/quad.key.js
80412
- var CHAR_0 = "0".charCodeAt(0);
80413
- var CHAR_1 = "1".charCodeAt(0);
80414
- var CHAR_2 = "2".charCodeAt(0);
80415
- var CHAR_3 = "3".charCodeAt(0);
80416
-
80417
- // ../geo/build/simplify.js
80418
- function getDistance(p1, p2) {
80419
- const dx = p1[0] - p2[0];
80420
- const dy = p1[1] - p2[1];
80421
- return dx * dx + dy * dy;
80422
- }
80423
- function getSqSegDist(p, p1, p2) {
80424
- let x = p1[0];
80425
- let y = p1[1];
80426
- let dx = p2[0] - x;
80427
- let dy = p2[1] - y;
80428
- if (dx !== 0 || dy !== 0) {
80429
- const t = ((p[0] - x) * dx + (p[1] - y) * dy) / (dx * dx + dy * dy);
80430
- if (t > 1) {
80431
- x = p2[0];
80432
- y = p2[1];
80433
- } else if (t > 0) {
80434
- x += dx * t;
80435
- y += dy * t;
80436
- }
80437
- }
80438
- dx = p[0] - x;
80439
- dy = p[1] - y;
80440
- return dx * dx + dy * dy;
80441
- }
80442
- function simplifyRadialDist(points, sqTolerance) {
80443
- let prevPoint = points[0];
80444
- let point = points[1];
80445
- const newPoints = [prevPoint];
80446
- for (let i = 1, len = points.length; i < len; i++) {
80447
- point = points[i];
80448
- if (getDistance(point, prevPoint) > sqTolerance) {
80449
- newPoints.push(point);
80450
- prevPoint = point;
80451
- }
80452
- }
80453
- if (prevPoint !== point)
80454
- newPoints.push(point);
80455
- return newPoints;
80456
- }
80457
- function simplifyDPStep(points, first, last, sqTolerance, simplified) {
80458
- let maxSqDist = sqTolerance;
80459
- let index = 0;
80460
- for (let i = first + 1; i < last; i++) {
80461
- const sqDist = getSqSegDist(points[i], points[first], points[last]);
80462
- if (sqDist > maxSqDist) {
80463
- index = i;
80464
- maxSqDist = sqDist;
80465
- }
80466
- }
80467
- if (maxSqDist > sqTolerance) {
80468
- if (index - first > 1)
80469
- simplifyDPStep(points, first, index, sqTolerance, simplified);
80470
- simplified.push(points[index]);
80471
- if (last - index > 1)
80472
- simplifyDPStep(points, index, last, sqTolerance, simplified);
80473
- }
80474
- }
80475
- function simplifyDouglasPeucker(points, sqTolerance) {
80476
- const last = points.length - 1;
80477
- const simplified = [points[0]];
80478
- simplifyDPStep(points, 0, last, sqTolerance, simplified);
80479
- simplified.push(points[last]);
80480
- return simplified;
80481
- }
80482
- var Simplify = {
80483
- points(points, tolerance, highestQuality) {
80484
- if (points.length <= 2)
80485
- return points;
80486
- const sqTolerance = tolerance * tolerance;
80487
- points = highestQuality ? points : simplifyRadialDist(points, sqTolerance);
80488
- points = simplifyDouglasPeucker(points, sqTolerance);
80489
- return points;
80490
- },
80491
- multiPolygon(coordinates, tolerance, removeArea = 1e-8) {
80492
- const output = [];
80493
- for (let k = 0; k < coordinates.length; k++) {
80494
- const outPoints = [];
80495
- for (let l = 0; l < coordinates[k].length; l++) {
80496
- const point = Simplify.points(coordinates[k][l], tolerance);
80497
- if (point.length > 2)
80498
- outPoints.push(point);
80499
- }
80500
- if (outPoints.length > 0) {
80501
- if (removeArea > 0 && Area.polygon(outPoints) < removeArea)
80502
- continue;
80503
- output.push(outPoints);
80504
- }
80505
- }
80506
- if (output.length === 0)
80507
- return null;
80508
- return output;
80509
- }
80510
- };
80511
-
80512
80575
  // ../geo/build/xy.order.js
80513
80576
  function getXyOrder(epsg) {
80514
80577
  const code = typeof epsg === "number" ? epsg : epsg.code;
@@ -80794,25 +80857,25 @@ var TileMatrixSet = class {
80794
80857
  }
80795
80858
  };
80796
80859
 
80797
- // ../geo/build/tms/citm2000.js
80798
- var Citm2000Tmst = {
80860
+ // ../geo/build/tms/google.js
80861
+ var GoogleTmst = {
80799
80862
  type: "TileMatrixSetType",
80800
- title: "Debug tile matrix for EPSG:3793",
80801
- abstract: "",
80802
- identifier: "CITM2000Quad",
80803
- supportedCRS: "https://www.opengis.net/def/crs/EPSG/0/3793",
80863
+ title: "Google Maps Compatible for the World",
80864
+ identifier: "WebMercatorQuad",
80804
80865
  boundingBox: {
80805
80866
  type: "BoundingBoxType",
80806
- crs: "https://www.opengis.net/def/crs/EPSG/0/3793",
80807
- lowerCorner: [5051234111622438e-9, 3.4301543757978342e6],
80808
- upperCorner: [5207777145550478e-9, 3.5866974097258747e6]
80867
+ crs: "http://www.opengis.net/def/crs/EPSG/0/3857",
80868
+ lowerCorner: [-200375083427892e-7, -200375083427892e-7],
80869
+ upperCorner: [200375083427892e-7, 200375083427892e-7]
80809
80870
  },
80871
+ supportedCRS: "https://www.opengis.net/def/crs/EPSG/0/3857",
80872
+ wellKnownScaleSet: "https://www.opengis.net/def/wkss/OGC/1.0/GoogleMapsCompatible",
80810
80873
  tileMatrix: [
80811
80874
  {
80812
80875
  type: "TileMatrixType",
80813
80876
  identifier: "0",
80814
- scaleDenominator: 218391509386217e-8,
80815
- topLeftCorner: [5207777145550478e-9, 3.4301543757978342e6],
80877
+ scaleDenominator: 559082264028717e-6,
80878
+ topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
80816
80879
  tileWidth: 256,
80817
80880
  tileHeight: 256,
80818
80881
  matrixWidth: 1,
@@ -80821,8 +80884,8 @@ var Citm2000Tmst = {
80821
80884
  {
80822
80885
  type: "TileMatrixType",
80823
80886
  identifier: "1",
80824
- scaleDenominator: 109195754693108e-8,
80825
- topLeftCorner: [5207777145550478e-9, 3.4301543757978342e6],
80887
+ scaleDenominator: 279541132014358e-6,
80888
+ topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
80826
80889
  tileWidth: 256,
80827
80890
  tileHeight: 256,
80828
80891
  matrixWidth: 2,
@@ -80831,8 +80894,8 @@ var Citm2000Tmst = {
80831
80894
  {
80832
80895
  type: "TileMatrixType",
80833
80896
  identifier: "2",
80834
- scaleDenominator: 545978.773465544,
80835
- topLeftCorner: [5207777145550478e-9, 3.4301543757978342e6],
80897
+ scaleDenominator: 139770566007179e-6,
80898
+ topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
80836
80899
  tileWidth: 256,
80837
80900
  tileHeight: 256,
80838
80901
  matrixWidth: 4,
@@ -80841,8 +80904,8 @@ var Citm2000Tmst = {
80841
80904
  {
80842
80905
  type: "TileMatrixType",
80843
80906
  identifier: "3",
80844
- scaleDenominator: 272989.386732772,
80845
- topLeftCorner: [5207777145550478e-9, 3.4301543757978342e6],
80907
+ scaleDenominator: 698852830035897e-7,
80908
+ topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
80846
80909
  tileWidth: 256,
80847
80910
  tileHeight: 256,
80848
80911
  matrixWidth: 8,
@@ -80851,8 +80914,8 @@ var Citm2000Tmst = {
80851
80914
  {
80852
80915
  type: "TileMatrixType",
80853
80916
  identifier: "4",
80854
- scaleDenominator: 136494.693366386,
80855
- topLeftCorner: [5207777145550478e-9, 3.4301543757978342e6],
80917
+ scaleDenominator: 349426415017948e-7,
80918
+ topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
80856
80919
  tileWidth: 256,
80857
80920
  tileHeight: 256,
80858
80921
  matrixWidth: 16,
@@ -80861,8 +80924,8 @@ var Citm2000Tmst = {
80861
80924
  {
80862
80925
  type: "TileMatrixType",
80863
80926
  identifier: "5",
80864
- scaleDenominator: 68247.346683193,
80865
- topLeftCorner: [5207777145550478e-9, 3.4301543757978342e6],
80927
+ scaleDenominator: 174713207508974e-7,
80928
+ topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
80866
80929
  tileWidth: 256,
80867
80930
  tileHeight: 256,
80868
80931
  matrixWidth: 32,
@@ -80871,8 +80934,8 @@ var Citm2000Tmst = {
80871
80934
  {
80872
80935
  type: "TileMatrixType",
80873
80936
  identifier: "6",
80874
- scaleDenominator: 34123.6733415964,
80875
- topLeftCorner: [5207777145550478e-9, 3.4301543757978342e6],
80937
+ scaleDenominator: 873566037544871e-8,
80938
+ topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
80876
80939
  tileWidth: 256,
80877
80940
  tileHeight: 256,
80878
80941
  matrixWidth: 64,
@@ -80881,8 +80944,8 @@ var Citm2000Tmst = {
80881
80944
  {
80882
80945
  type: "TileMatrixType",
80883
80946
  identifier: "7",
80884
- scaleDenominator: 17061.8366707982,
80885
- topLeftCorner: [5207777145550478e-9, 3.4301543757978342e6],
80947
+ scaleDenominator: 436783018772435e-8,
80948
+ topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
80886
80949
  tileWidth: 256,
80887
80950
  tileHeight: 256,
80888
80951
  matrixWidth: 128,
@@ -80891,8 +80954,8 @@ var Citm2000Tmst = {
80891
80954
  {
80892
80955
  type: "TileMatrixType",
80893
80956
  identifier: "8",
80894
- scaleDenominator: 8530.91833539913,
80895
- topLeftCorner: [5207777145550478e-9, 3.4301543757978342e6],
80957
+ scaleDenominator: 218391509386217e-8,
80958
+ topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
80896
80959
  tileWidth: 256,
80897
80960
  tileHeight: 256,
80898
80961
  matrixWidth: 256,
@@ -80901,8 +80964,8 @@ var Citm2000Tmst = {
80901
80964
  {
80902
80965
  type: "TileMatrixType",
80903
80966
  identifier: "9",
80904
- scaleDenominator: 4265.45916769956,
80905
- topLeftCorner: [5207777145550478e-9, 3.4301543757978342e6],
80967
+ scaleDenominator: 109195754693108e-8,
80968
+ topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
80906
80969
  tileWidth: 256,
80907
80970
  tileHeight: 256,
80908
80971
  matrixWidth: 512,
@@ -80911,8 +80974,8 @@ var Citm2000Tmst = {
80911
80974
  {
80912
80975
  type: "TileMatrixType",
80913
80976
  identifier: "10",
80914
- scaleDenominator: 2132.72958384978,
80915
- topLeftCorner: [5207777145550478e-9, 3.4301543757978342e6],
80977
+ scaleDenominator: 545978.773465544,
80978
+ topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
80916
80979
  tileWidth: 256,
80917
80980
  tileHeight: 256,
80918
80981
  matrixWidth: 1024,
@@ -80921,8 +80984,8 @@ var Citm2000Tmst = {
80921
80984
  {
80922
80985
  type: "TileMatrixType",
80923
80986
  identifier: "11",
80924
- scaleDenominator: 1066.36479192489,
80925
- topLeftCorner: [5207777145550478e-9, 3.4301543757978342e6],
80987
+ scaleDenominator: 272989.386732772,
80988
+ topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
80926
80989
  tileWidth: 256,
80927
80990
  tileHeight: 256,
80928
80991
  matrixWidth: 2048,
@@ -80931,8 +80994,8 @@ var Citm2000Tmst = {
80931
80994
  {
80932
80995
  type: "TileMatrixType",
80933
80996
  identifier: "12",
80934
- scaleDenominator: 533.182395962445,
80935
- topLeftCorner: [5207777145550478e-9, 3.4301543757978342e6],
80997
+ scaleDenominator: 136494.693366386,
80998
+ topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
80936
80999
  tileWidth: 256,
80937
81000
  tileHeight: 256,
80938
81001
  matrixWidth: 4096,
@@ -80941,8 +81004,8 @@ var Citm2000Tmst = {
80941
81004
  {
80942
81005
  type: "TileMatrixType",
80943
81006
  identifier: "13",
80944
- scaleDenominator: 266.591197981222,
80945
- topLeftCorner: [5207777145550478e-9, 3.4301543757978342e6],
81007
+ scaleDenominator: 68247.346683193,
81008
+ topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
80946
81009
  tileWidth: 256,
80947
81010
  tileHeight: 256,
80948
81011
  matrixWidth: 8192,
@@ -80951,8 +81014,8 @@ var Citm2000Tmst = {
80951
81014
  {
80952
81015
  type: "TileMatrixType",
80953
81016
  identifier: "14",
80954
- scaleDenominator: 133.295598990611,
80955
- topLeftCorner: [5207777145550478e-9, 3.4301543757978342e6],
81017
+ scaleDenominator: 34123.6733415964,
81018
+ topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
80956
81019
  tileWidth: 256,
80957
81020
  tileHeight: 256,
80958
81021
  matrixWidth: 16384,
@@ -80961,8 +81024,8 @@ var Citm2000Tmst = {
80961
81024
  {
80962
81025
  type: "TileMatrixType",
80963
81026
  identifier: "15",
80964
- scaleDenominator: 66.6477994953056,
80965
- topLeftCorner: [5207777145550478e-9, 3.4301543757978342e6],
81027
+ scaleDenominator: 17061.8366707982,
81028
+ topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
80966
81029
  tileWidth: 256,
80967
81030
  tileHeight: 256,
80968
81031
  matrixWidth: 32768,
@@ -80971,294 +81034,431 @@ var Citm2000Tmst = {
80971
81034
  {
80972
81035
  type: "TileMatrixType",
80973
81036
  identifier: "16",
80974
- scaleDenominator: 33.3238997476528,
80975
- topLeftCorner: [5207777145550478e-9, 3.4301543757978342e6],
81037
+ scaleDenominator: 8530.91833539913,
81038
+ topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
80976
81039
  tileWidth: 256,
80977
81040
  tileHeight: 256,
80978
81041
  matrixWidth: 65536,
80979
81042
  matrixHeight: 65536
80980
- }
80981
- ],
80982
- $generated: {
80983
- package: "@basemaps/cli",
80984
- version: "v7.14.0-4-g2766010d",
80985
- hash: "2766010d8d2bb8b673f6bcbef2fe2636f2e0f4ea",
80986
- createdAt: "2025-02-10T20:34:46.643Z"
80987
- },
80988
- $options: {
80989
- sourceTileMatrix: "WebMercatorQuad",
80990
- zoomOffset: 8
80991
- }
80992
- };
80993
- var Citm2000Tms = new TileMatrixSet(Citm2000Tmst);
80994
-
80995
- // ../geo/build/tms/google.js
80996
- var GoogleTmst = {
80997
- type: "TileMatrixSetType",
80998
- title: "Google Maps Compatible for the World",
80999
- identifier: "WebMercatorQuad",
81000
- boundingBox: {
81001
- type: "BoundingBoxType",
81002
- crs: "http://www.opengis.net/def/crs/EPSG/0/3857",
81003
- lowerCorner: [-200375083427892e-7, -200375083427892e-7],
81004
- upperCorner: [200375083427892e-7, 200375083427892e-7]
81005
- },
81006
- supportedCRS: "https://www.opengis.net/def/crs/EPSG/0/3857",
81007
- wellKnownScaleSet: "https://www.opengis.net/def/wkss/OGC/1.0/GoogleMapsCompatible",
81008
- tileMatrix: [
81043
+ },
81009
81044
  {
81010
81045
  type: "TileMatrixType",
81011
- identifier: "0",
81012
- scaleDenominator: 559082264028717e-6,
81046
+ identifier: "17",
81047
+ scaleDenominator: 4265.45916769956,
81013
81048
  topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
81014
81049
  tileWidth: 256,
81015
81050
  tileHeight: 256,
81016
- matrixWidth: 1,
81017
- matrixHeight: 1
81051
+ matrixWidth: 131072,
81052
+ matrixHeight: 131072
81018
81053
  },
81019
81054
  {
81020
81055
  type: "TileMatrixType",
81021
- identifier: "1",
81022
- scaleDenominator: 279541132014358e-6,
81056
+ identifier: "18",
81057
+ scaleDenominator: 2132.72958384978,
81023
81058
  topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
81024
81059
  tileWidth: 256,
81025
81060
  tileHeight: 256,
81026
- matrixWidth: 2,
81027
- matrixHeight: 2
81061
+ matrixWidth: 262144,
81062
+ matrixHeight: 262144
81028
81063
  },
81029
81064
  {
81030
81065
  type: "TileMatrixType",
81031
- identifier: "2",
81032
- scaleDenominator: 139770566007179e-6,
81066
+ identifier: "19",
81067
+ scaleDenominator: 1066.36479192489,
81033
81068
  topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
81034
81069
  tileWidth: 256,
81035
81070
  tileHeight: 256,
81036
- matrixWidth: 4,
81037
- matrixHeight: 4
81071
+ matrixWidth: 524288,
81072
+ matrixHeight: 524288
81038
81073
  },
81039
81074
  {
81040
81075
  type: "TileMatrixType",
81041
- identifier: "3",
81042
- scaleDenominator: 698852830035897e-7,
81076
+ identifier: "20",
81077
+ scaleDenominator: 533.182395962445,
81043
81078
  topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
81044
81079
  tileWidth: 256,
81045
81080
  tileHeight: 256,
81046
- matrixWidth: 8,
81047
- matrixHeight: 8
81081
+ matrixWidth: 1048576,
81082
+ matrixHeight: 1048576
81048
81083
  },
81049
81084
  {
81050
81085
  type: "TileMatrixType",
81051
- identifier: "4",
81052
- scaleDenominator: 349426415017948e-7,
81086
+ identifier: "21",
81087
+ scaleDenominator: 266.591197981222,
81053
81088
  topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
81054
81089
  tileWidth: 256,
81055
81090
  tileHeight: 256,
81056
- matrixWidth: 16,
81057
- matrixHeight: 16
81091
+ matrixWidth: 2097152,
81092
+ matrixHeight: 2097152
81058
81093
  },
81059
81094
  {
81060
81095
  type: "TileMatrixType",
81061
- identifier: "5",
81062
- scaleDenominator: 174713207508974e-7,
81096
+ identifier: "22",
81097
+ scaleDenominator: 133.295598990611,
81063
81098
  topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
81064
81099
  tileWidth: 256,
81065
81100
  tileHeight: 256,
81066
- matrixWidth: 32,
81067
- matrixHeight: 32
81101
+ matrixWidth: 4194304,
81102
+ matrixHeight: 4194304
81068
81103
  },
81069
81104
  {
81070
81105
  type: "TileMatrixType",
81071
- identifier: "6",
81072
- scaleDenominator: 873566037544871e-8,
81106
+ identifier: "23",
81107
+ scaleDenominator: 66.6477994953056,
81073
81108
  topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
81074
81109
  tileWidth: 256,
81075
81110
  tileHeight: 256,
81076
- matrixWidth: 64,
81077
- matrixHeight: 64
81111
+ matrixWidth: 8388608,
81112
+ matrixHeight: 8388608
81078
81113
  },
81079
81114
  {
81080
81115
  type: "TileMatrixType",
81081
- identifier: "7",
81082
- scaleDenominator: 436783018772435e-8,
81116
+ identifier: "24",
81117
+ scaleDenominator: 33.3238997476528,
81083
81118
  topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
81084
81119
  tileWidth: 256,
81085
81120
  tileHeight: 256,
81086
- matrixWidth: 128,
81087
- matrixHeight: 128
81088
- },
81121
+ matrixWidth: 16777216,
81122
+ matrixHeight: 16777216
81123
+ }
81124
+ ]
81125
+ };
81126
+ var GoogleTms = new TileMatrixSet(GoogleTmst);
81127
+
81128
+ // ../geo/build/proj/projection.loader.js
81129
+ var ProjectionLoader = class {
81130
+ /**
81131
+ * Ensure that a projection EPSG code is avialable for use in Proj4js
81132
+ *
81133
+ * If its not already loaded, lookup definition from spatialreference.org
81134
+ * @param code
81135
+ */
81136
+ static async load(code) {
81137
+ if (Projection.tryGet(code) != null)
81138
+ return Epsg.get(code);
81139
+ const url = `https://spatialreference.org/ref/epsg/${code}/ogcwkt/`;
81140
+ const res = await this._fetch(url);
81141
+ if (!res.ok)
81142
+ throw new Error("Failed to load projection information for:" + code);
81143
+ let epsg = Epsg.tryGet(code);
81144
+ if (epsg == null)
81145
+ epsg = new Epsg(code);
81146
+ const text = await res.text();
81147
+ Projection.define(epsg, text);
81148
+ return epsg;
81149
+ }
81150
+ };
81151
+ Object.defineProperty(ProjectionLoader, "_fetch", {
81152
+ enumerable: true,
81153
+ configurable: true,
81154
+ writable: true,
81155
+ value: fetch
81156
+ });
81157
+
81158
+ // ../geo/build/proj/tile.set.name.js
81159
+ var TileSetName;
81160
+ (function(TileSetName2) {
81161
+ TileSetName2["aerial"] = "aerial";
81162
+ })(TileSetName || (TileSetName = {}));
81163
+
81164
+ // ../geo/build/quad.key.js
81165
+ var CHAR_0 = "0".charCodeAt(0);
81166
+ var CHAR_1 = "1".charCodeAt(0);
81167
+ var CHAR_2 = "2".charCodeAt(0);
81168
+ var CHAR_3 = "3".charCodeAt(0);
81169
+
81170
+ // ../geo/build/simplify.js
81171
+ function getDistance(p1, p2) {
81172
+ const dx = p1[0] - p2[0];
81173
+ const dy = p1[1] - p2[1];
81174
+ return dx * dx + dy * dy;
81175
+ }
81176
+ function getSqSegDist(p, p1, p2) {
81177
+ let x = p1[0];
81178
+ let y = p1[1];
81179
+ let dx = p2[0] - x;
81180
+ let dy = p2[1] - y;
81181
+ if (dx !== 0 || dy !== 0) {
81182
+ const t = ((p[0] - x) * dx + (p[1] - y) * dy) / (dx * dx + dy * dy);
81183
+ if (t > 1) {
81184
+ x = p2[0];
81185
+ y = p2[1];
81186
+ } else if (t > 0) {
81187
+ x += dx * t;
81188
+ y += dy * t;
81189
+ }
81190
+ }
81191
+ dx = p[0] - x;
81192
+ dy = p[1] - y;
81193
+ return dx * dx + dy * dy;
81194
+ }
81195
+ function simplifyRadialDist(points, sqTolerance) {
81196
+ let prevPoint = points[0];
81197
+ let point = points[1];
81198
+ const newPoints = [prevPoint];
81199
+ for (let i = 1, len = points.length; i < len; i++) {
81200
+ point = points[i];
81201
+ if (getDistance(point, prevPoint) > sqTolerance) {
81202
+ newPoints.push(point);
81203
+ prevPoint = point;
81204
+ }
81205
+ }
81206
+ if (prevPoint !== point)
81207
+ newPoints.push(point);
81208
+ return newPoints;
81209
+ }
81210
+ function simplifyDPStep(points, first, last, sqTolerance, simplified) {
81211
+ let maxSqDist = sqTolerance;
81212
+ let index = 0;
81213
+ for (let i = first + 1; i < last; i++) {
81214
+ const sqDist = getSqSegDist(points[i], points[first], points[last]);
81215
+ if (sqDist > maxSqDist) {
81216
+ index = i;
81217
+ maxSqDist = sqDist;
81218
+ }
81219
+ }
81220
+ if (maxSqDist > sqTolerance) {
81221
+ if (index - first > 1)
81222
+ simplifyDPStep(points, first, index, sqTolerance, simplified);
81223
+ simplified.push(points[index]);
81224
+ if (last - index > 1)
81225
+ simplifyDPStep(points, index, last, sqTolerance, simplified);
81226
+ }
81227
+ }
81228
+ function simplifyDouglasPeucker(points, sqTolerance) {
81229
+ const last = points.length - 1;
81230
+ const simplified = [points[0]];
81231
+ simplifyDPStep(points, 0, last, sqTolerance, simplified);
81232
+ simplified.push(points[last]);
81233
+ return simplified;
81234
+ }
81235
+ var Simplify = {
81236
+ points(points, tolerance, highestQuality) {
81237
+ if (points.length <= 2)
81238
+ return points;
81239
+ const sqTolerance = tolerance * tolerance;
81240
+ points = highestQuality ? points : simplifyRadialDist(points, sqTolerance);
81241
+ points = simplifyDouglasPeucker(points, sqTolerance);
81242
+ return points;
81243
+ },
81244
+ multiPolygon(coordinates, tolerance, removeArea = 1e-8) {
81245
+ const output = [];
81246
+ for (let k = 0; k < coordinates.length; k++) {
81247
+ const outPoints = [];
81248
+ for (let l = 0; l < coordinates[k].length; l++) {
81249
+ const point = Simplify.points(coordinates[k][l], tolerance);
81250
+ if (point.length > 2)
81251
+ outPoints.push(point);
81252
+ }
81253
+ if (outPoints.length > 0) {
81254
+ if (removeArea > 0 && Area.polygon(outPoints) < removeArea)
81255
+ continue;
81256
+ output.push(outPoints);
81257
+ }
81258
+ }
81259
+ if (output.length === 0)
81260
+ return null;
81261
+ return output;
81262
+ }
81263
+ };
81264
+
81265
+ // ../geo/build/tms/citm2000.js
81266
+ var Citm2000Tmst = {
81267
+ type: "TileMatrixSetType",
81268
+ title: "Debug tile matrix for EPSG:3793",
81269
+ abstract: "",
81270
+ identifier: "CITM2000Quad",
81271
+ supportedCRS: "https://www.opengis.net/def/crs/EPSG/0/3793",
81272
+ boundingBox: {
81273
+ type: "BoundingBoxType",
81274
+ crs: "https://www.opengis.net/def/crs/EPSG/0/3793",
81275
+ lowerCorner: [5051234111622438e-9, 3.4301543757978342e6],
81276
+ upperCorner: [5207777145550478e-9, 3.5866974097258747e6]
81277
+ },
81278
+ tileMatrix: [
81089
81279
  {
81090
81280
  type: "TileMatrixType",
81091
- identifier: "8",
81281
+ identifier: "0",
81092
81282
  scaleDenominator: 218391509386217e-8,
81093
- topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
81283
+ topLeftCorner: [5207777145550478e-9, 3.4301543757978342e6],
81094
81284
  tileWidth: 256,
81095
81285
  tileHeight: 256,
81096
- matrixWidth: 256,
81097
- matrixHeight: 256
81286
+ matrixWidth: 1,
81287
+ matrixHeight: 1
81098
81288
  },
81099
81289
  {
81100
81290
  type: "TileMatrixType",
81101
- identifier: "9",
81291
+ identifier: "1",
81102
81292
  scaleDenominator: 109195754693108e-8,
81103
- topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
81293
+ topLeftCorner: [5207777145550478e-9, 3.4301543757978342e6],
81104
81294
  tileWidth: 256,
81105
81295
  tileHeight: 256,
81106
- matrixWidth: 512,
81107
- matrixHeight: 512
81296
+ matrixWidth: 2,
81297
+ matrixHeight: 2
81108
81298
  },
81109
81299
  {
81110
81300
  type: "TileMatrixType",
81111
- identifier: "10",
81301
+ identifier: "2",
81112
81302
  scaleDenominator: 545978.773465544,
81113
- topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
81303
+ topLeftCorner: [5207777145550478e-9, 3.4301543757978342e6],
81114
81304
  tileWidth: 256,
81115
81305
  tileHeight: 256,
81116
- matrixWidth: 1024,
81117
- matrixHeight: 1024
81306
+ matrixWidth: 4,
81307
+ matrixHeight: 4
81118
81308
  },
81119
81309
  {
81120
81310
  type: "TileMatrixType",
81121
- identifier: "11",
81311
+ identifier: "3",
81122
81312
  scaleDenominator: 272989.386732772,
81123
- topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
81313
+ topLeftCorner: [5207777145550478e-9, 3.4301543757978342e6],
81124
81314
  tileWidth: 256,
81125
81315
  tileHeight: 256,
81126
- matrixWidth: 2048,
81127
- matrixHeight: 2048
81316
+ matrixWidth: 8,
81317
+ matrixHeight: 8
81128
81318
  },
81129
81319
  {
81130
81320
  type: "TileMatrixType",
81131
- identifier: "12",
81321
+ identifier: "4",
81132
81322
  scaleDenominator: 136494.693366386,
81133
- topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
81323
+ topLeftCorner: [5207777145550478e-9, 3.4301543757978342e6],
81134
81324
  tileWidth: 256,
81135
81325
  tileHeight: 256,
81136
- matrixWidth: 4096,
81137
- matrixHeight: 4096
81326
+ matrixWidth: 16,
81327
+ matrixHeight: 16
81138
81328
  },
81139
81329
  {
81140
81330
  type: "TileMatrixType",
81141
- identifier: "13",
81331
+ identifier: "5",
81142
81332
  scaleDenominator: 68247.346683193,
81143
- topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
81333
+ topLeftCorner: [5207777145550478e-9, 3.4301543757978342e6],
81144
81334
  tileWidth: 256,
81145
81335
  tileHeight: 256,
81146
- matrixWidth: 8192,
81147
- matrixHeight: 8192
81336
+ matrixWidth: 32,
81337
+ matrixHeight: 32
81148
81338
  },
81149
81339
  {
81150
81340
  type: "TileMatrixType",
81151
- identifier: "14",
81341
+ identifier: "6",
81152
81342
  scaleDenominator: 34123.6733415964,
81153
- topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
81343
+ topLeftCorner: [5207777145550478e-9, 3.4301543757978342e6],
81154
81344
  tileWidth: 256,
81155
81345
  tileHeight: 256,
81156
- matrixWidth: 16384,
81157
- matrixHeight: 16384
81346
+ matrixWidth: 64,
81347
+ matrixHeight: 64
81158
81348
  },
81159
81349
  {
81160
81350
  type: "TileMatrixType",
81161
- identifier: "15",
81351
+ identifier: "7",
81162
81352
  scaleDenominator: 17061.8366707982,
81163
- topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
81353
+ topLeftCorner: [5207777145550478e-9, 3.4301543757978342e6],
81164
81354
  tileWidth: 256,
81165
81355
  tileHeight: 256,
81166
- matrixWidth: 32768,
81167
- matrixHeight: 32768
81356
+ matrixWidth: 128,
81357
+ matrixHeight: 128
81168
81358
  },
81169
81359
  {
81170
81360
  type: "TileMatrixType",
81171
- identifier: "16",
81361
+ identifier: "8",
81172
81362
  scaleDenominator: 8530.91833539913,
81173
- topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
81363
+ topLeftCorner: [5207777145550478e-9, 3.4301543757978342e6],
81174
81364
  tileWidth: 256,
81175
81365
  tileHeight: 256,
81176
- matrixWidth: 65536,
81177
- matrixHeight: 65536
81366
+ matrixWidth: 256,
81367
+ matrixHeight: 256
81178
81368
  },
81179
81369
  {
81180
81370
  type: "TileMatrixType",
81181
- identifier: "17",
81371
+ identifier: "9",
81182
81372
  scaleDenominator: 4265.45916769956,
81183
- topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
81373
+ topLeftCorner: [5207777145550478e-9, 3.4301543757978342e6],
81184
81374
  tileWidth: 256,
81185
81375
  tileHeight: 256,
81186
- matrixWidth: 131072,
81187
- matrixHeight: 131072
81376
+ matrixWidth: 512,
81377
+ matrixHeight: 512
81188
81378
  },
81189
81379
  {
81190
81380
  type: "TileMatrixType",
81191
- identifier: "18",
81381
+ identifier: "10",
81192
81382
  scaleDenominator: 2132.72958384978,
81193
- topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
81383
+ topLeftCorner: [5207777145550478e-9, 3.4301543757978342e6],
81194
81384
  tileWidth: 256,
81195
81385
  tileHeight: 256,
81196
- matrixWidth: 262144,
81197
- matrixHeight: 262144
81386
+ matrixWidth: 1024,
81387
+ matrixHeight: 1024
81198
81388
  },
81199
81389
  {
81200
81390
  type: "TileMatrixType",
81201
- identifier: "19",
81391
+ identifier: "11",
81202
81392
  scaleDenominator: 1066.36479192489,
81203
- topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
81393
+ topLeftCorner: [5207777145550478e-9, 3.4301543757978342e6],
81204
81394
  tileWidth: 256,
81205
81395
  tileHeight: 256,
81206
- matrixWidth: 524288,
81207
- matrixHeight: 524288
81396
+ matrixWidth: 2048,
81397
+ matrixHeight: 2048
81208
81398
  },
81209
81399
  {
81210
81400
  type: "TileMatrixType",
81211
- identifier: "20",
81401
+ identifier: "12",
81212
81402
  scaleDenominator: 533.182395962445,
81213
- topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
81403
+ topLeftCorner: [5207777145550478e-9, 3.4301543757978342e6],
81214
81404
  tileWidth: 256,
81215
81405
  tileHeight: 256,
81216
- matrixWidth: 1048576,
81217
- matrixHeight: 1048576
81406
+ matrixWidth: 4096,
81407
+ matrixHeight: 4096
81218
81408
  },
81219
81409
  {
81220
81410
  type: "TileMatrixType",
81221
- identifier: "21",
81411
+ identifier: "13",
81222
81412
  scaleDenominator: 266.591197981222,
81223
- topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
81413
+ topLeftCorner: [5207777145550478e-9, 3.4301543757978342e6],
81224
81414
  tileWidth: 256,
81225
81415
  tileHeight: 256,
81226
- matrixWidth: 2097152,
81227
- matrixHeight: 2097152
81416
+ matrixWidth: 8192,
81417
+ matrixHeight: 8192
81228
81418
  },
81229
81419
  {
81230
81420
  type: "TileMatrixType",
81231
- identifier: "22",
81421
+ identifier: "14",
81232
81422
  scaleDenominator: 133.295598990611,
81233
- topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
81423
+ topLeftCorner: [5207777145550478e-9, 3.4301543757978342e6],
81234
81424
  tileWidth: 256,
81235
81425
  tileHeight: 256,
81236
- matrixWidth: 4194304,
81237
- matrixHeight: 4194304
81426
+ matrixWidth: 16384,
81427
+ matrixHeight: 16384
81238
81428
  },
81239
81429
  {
81240
81430
  type: "TileMatrixType",
81241
- identifier: "23",
81431
+ identifier: "15",
81242
81432
  scaleDenominator: 66.6477994953056,
81243
- topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
81433
+ topLeftCorner: [5207777145550478e-9, 3.4301543757978342e6],
81244
81434
  tileWidth: 256,
81245
81435
  tileHeight: 256,
81246
- matrixWidth: 8388608,
81247
- matrixHeight: 8388608
81436
+ matrixWidth: 32768,
81437
+ matrixHeight: 32768
81248
81438
  },
81249
81439
  {
81250
81440
  type: "TileMatrixType",
81251
- identifier: "24",
81441
+ identifier: "16",
81252
81442
  scaleDenominator: 33.3238997476528,
81253
- topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
81443
+ topLeftCorner: [5207777145550478e-9, 3.4301543757978342e6],
81254
81444
  tileWidth: 256,
81255
81445
  tileHeight: 256,
81256
- matrixWidth: 16777216,
81257
- matrixHeight: 16777216
81446
+ matrixWidth: 65536,
81447
+ matrixHeight: 65536
81258
81448
  }
81259
- ]
81449
+ ],
81450
+ $generated: {
81451
+ package: "@basemaps/cli",
81452
+ version: "v7.14.0-4-g2766010d",
81453
+ hash: "2766010d8d2bb8b673f6bcbef2fe2636f2e0f4ea",
81454
+ createdAt: "2025-02-10T20:34:46.643Z"
81455
+ },
81456
+ $options: {
81457
+ sourceTileMatrix: "WebMercatorQuad",
81458
+ zoomOffset: 8
81459
+ }
81260
81460
  };
81261
- var GoogleTms = new TileMatrixSet(GoogleTmst);
81461
+ var Citm2000Tms = new TileMatrixSet(Citm2000Tmst);
81262
81462
 
81263
81463
  // ../geo/build/tms/nztm2000.js
81264
81464
  var Nztm20002 = __toESM(require_src3(), 1);