@basemaps/server 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.
@@ -44843,7 +44843,7 @@ var require_GetObjectCommand = __commonJS({
44843
44843
  var types_1 = require_dist_cjs();
44844
44844
  var models_0_1 = require_models_0();
44845
44845
  var Aws_restXml_1 = require_Aws_restXml();
44846
- var GetObjectCommand3 = class _GetObjectCommand extends smithy_client_1.Command {
44846
+ var GetObjectCommand4 = class _GetObjectCommand extends smithy_client_1.Command {
44847
44847
  static getEndpointParameterInstructions() {
44848
44848
  return {
44849
44849
  Bucket: { type: "contextParams", name: "Bucket" },
@@ -44899,7 +44899,7 @@ var require_GetObjectCommand = __commonJS({
44899
44899
  return (0, Aws_restXml_1.de_GetObjectCommand)(output, context);
44900
44900
  }
44901
44901
  };
44902
- exports.GetObjectCommand = GetObjectCommand3;
44902
+ exports.GetObjectCommand = GetObjectCommand4;
44903
44903
  }
44904
44904
  });
44905
44905
 
@@ -49122,6 +49122,204 @@ var require_dist_cjs69 = __commonJS({
49122
49122
  }
49123
49123
  });
49124
49124
 
49125
+ // ../shared/node_modules/@aws-sdk/util-format-url/dist-cjs/index.js
49126
+ var require_dist_cjs70 = __commonJS({
49127
+ "../shared/node_modules/@aws-sdk/util-format-url/dist-cjs/index.js"(exports) {
49128
+ "use strict";
49129
+ Object.defineProperty(exports, "__esModule", { value: true });
49130
+ exports.formatUrl = void 0;
49131
+ var querystring_builder_1 = require_dist_cjs13();
49132
+ function formatUrl(request) {
49133
+ var _a2, _b;
49134
+ const { port, query } = request;
49135
+ let { protocol, path: path3, hostname } = request;
49136
+ if (protocol && protocol.slice(-1) !== ":") {
49137
+ protocol += ":";
49138
+ }
49139
+ if (port) {
49140
+ hostname += `:${port}`;
49141
+ }
49142
+ if (path3 && path3.charAt(0) !== "/") {
49143
+ path3 = `/${path3}`;
49144
+ }
49145
+ let queryString = query ? (0, querystring_builder_1.buildQueryString)(query) : "";
49146
+ if (queryString && queryString[0] !== "?") {
49147
+ queryString = `?${queryString}`;
49148
+ }
49149
+ let auth = "";
49150
+ if (request.username != null || request.password != null) {
49151
+ const username = (_a2 = request.username) !== null && _a2 !== void 0 ? _a2 : "";
49152
+ const password = (_b = request.password) !== null && _b !== void 0 ? _b : "";
49153
+ auth = `${username}:${password}@`;
49154
+ }
49155
+ let fragment = "";
49156
+ if (request.fragment) {
49157
+ fragment = `#${request.fragment}`;
49158
+ }
49159
+ return `${protocol}//${auth}${hostname}${path3}${queryString}${fragment}`;
49160
+ }
49161
+ exports.formatUrl = formatUrl;
49162
+ }
49163
+ });
49164
+
49165
+ // ../shared/node_modules/@aws-sdk/s3-request-presigner/dist-cjs/constants.js
49166
+ var require_constants11 = __commonJS({
49167
+ "../shared/node_modules/@aws-sdk/s3-request-presigner/dist-cjs/constants.js"(exports) {
49168
+ "use strict";
49169
+ Object.defineProperty(exports, "__esModule", { value: true });
49170
+ 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;
49171
+ exports.UNSIGNED_PAYLOAD = "UNSIGNED-PAYLOAD";
49172
+ exports.SHA256_HEADER = "X-Amz-Content-Sha256";
49173
+ exports.ALGORITHM_QUERY_PARAM = "X-Amz-Algorithm";
49174
+ exports.CREDENTIAL_QUERY_PARAM = "X-Amz-Credential";
49175
+ exports.AMZ_DATE_QUERY_PARAM = "X-Amz-Date";
49176
+ exports.SIGNED_HEADERS_QUERY_PARAM = "X-Amz-SignedHeaders";
49177
+ exports.EXPIRES_QUERY_PARAM = "X-Amz-Expires";
49178
+ exports.HOST_HEADER = "host";
49179
+ exports.ALGORITHM_IDENTIFIER = "AWS4-HMAC-SHA256";
49180
+ }
49181
+ });
49182
+
49183
+ // ../shared/node_modules/@aws-sdk/s3-request-presigner/dist-cjs/presigner.js
49184
+ var require_presigner = __commonJS({
49185
+ "../shared/node_modules/@aws-sdk/s3-request-presigner/dist-cjs/presigner.js"(exports) {
49186
+ "use strict";
49187
+ Object.defineProperty(exports, "__esModule", { value: true });
49188
+ exports.S3RequestPresigner = void 0;
49189
+ var signature_v4_multi_region_1 = require_dist_cjs64();
49190
+ var constants_1 = require_constants11();
49191
+ var S3RequestPresigner = class {
49192
+ constructor(options) {
49193
+ const resolvedOptions = {
49194
+ service: options.signingName || options.service || "s3",
49195
+ uriEscapePath: options.uriEscapePath || false,
49196
+ applyChecksum: options.applyChecksum || false,
49197
+ ...options
49198
+ };
49199
+ this.signer = new signature_v4_multi_region_1.SignatureV4MultiRegion(resolvedOptions);
49200
+ }
49201
+ presign(requestToSign, { unsignableHeaders = /* @__PURE__ */ new Set(), unhoistableHeaders = /* @__PURE__ */ new Set(), ...options } = {}) {
49202
+ this.prepareRequest(requestToSign, {
49203
+ unsignableHeaders,
49204
+ unhoistableHeaders
49205
+ });
49206
+ return this.signer.presign(requestToSign, {
49207
+ expiresIn: 900,
49208
+ unsignableHeaders,
49209
+ unhoistableHeaders,
49210
+ ...options
49211
+ });
49212
+ }
49213
+ presignWithCredentials(requestToSign, credentials2, { unsignableHeaders = /* @__PURE__ */ new Set(), unhoistableHeaders = /* @__PURE__ */ new Set(), ...options } = {}) {
49214
+ this.prepareRequest(requestToSign, {
49215
+ unsignableHeaders,
49216
+ unhoistableHeaders
49217
+ });
49218
+ return this.signer.presignWithCredentials(requestToSign, credentials2, {
49219
+ expiresIn: 900,
49220
+ unsignableHeaders,
49221
+ unhoistableHeaders,
49222
+ ...options
49223
+ });
49224
+ }
49225
+ prepareRequest(requestToSign, { unsignableHeaders = /* @__PURE__ */ new Set(), unhoistableHeaders = /* @__PURE__ */ new Set() } = {}) {
49226
+ unsignableHeaders.add("content-type");
49227
+ Object.keys(requestToSign.headers).map((header) => header.toLowerCase()).filter((header) => header.startsWith("x-amz-server-side-encryption")).forEach((header) => {
49228
+ unhoistableHeaders.add(header);
49229
+ });
49230
+ requestToSign.headers[constants_1.SHA256_HEADER] = constants_1.UNSIGNED_PAYLOAD;
49231
+ const currentHostHeader = requestToSign.headers.host;
49232
+ const port = requestToSign.port;
49233
+ const expectedHostHeader = `${requestToSign.hostname}${requestToSign.port != null ? ":" + port : ""}`;
49234
+ if (!currentHostHeader || currentHostHeader === requestToSign.hostname && requestToSign.port != null) {
49235
+ requestToSign.headers.host = expectedHostHeader;
49236
+ }
49237
+ }
49238
+ };
49239
+ exports.S3RequestPresigner = S3RequestPresigner;
49240
+ }
49241
+ });
49242
+
49243
+ // ../shared/node_modules/@aws-sdk/s3-request-presigner/dist-cjs/getSignedUrl.js
49244
+ var require_getSignedUrl = __commonJS({
49245
+ "../shared/node_modules/@aws-sdk/s3-request-presigner/dist-cjs/getSignedUrl.js"(exports) {
49246
+ "use strict";
49247
+ Object.defineProperty(exports, "__esModule", { value: true });
49248
+ exports.getSignedUrl = void 0;
49249
+ var util_format_url_1 = require_dist_cjs70();
49250
+ var middleware_endpoint_1 = require_dist_cjs38();
49251
+ var protocol_http_1 = require_dist_cjs2();
49252
+ var presigner_1 = require_presigner();
49253
+ var getSignedUrl2 = async (client, command2, options = {}) => {
49254
+ var _a2, _b;
49255
+ let s3Presigner;
49256
+ if (typeof client.config.endpointProvider === "function") {
49257
+ const endpointV2 = await (0, middleware_endpoint_1.getEndpointFromInstructions)(command2.input, command2.constructor, client.config);
49258
+ const authScheme = (_b = (_a2 = endpointV2.properties) === null || _a2 === void 0 ? void 0 : _a2.authSchemes) === null || _b === void 0 ? void 0 : _b[0];
49259
+ s3Presigner = new presigner_1.S3RequestPresigner({
49260
+ ...client.config,
49261
+ signingName: authScheme === null || authScheme === void 0 ? void 0 : authScheme.signingName,
49262
+ region: async () => authScheme === null || authScheme === void 0 ? void 0 : authScheme.signingRegion
49263
+ });
49264
+ } else {
49265
+ s3Presigner = new presigner_1.S3RequestPresigner(client.config);
49266
+ }
49267
+ const presignInterceptMiddleware = (next, context) => async (args) => {
49268
+ var _a3, _b2;
49269
+ const { request } = args;
49270
+ if (!protocol_http_1.HttpRequest.isInstance(request)) {
49271
+ throw new Error("Request to be presigned is not an valid HTTP request.");
49272
+ }
49273
+ delete request.headers["amz-sdk-invocation-id"];
49274
+ delete request.headers["amz-sdk-request"];
49275
+ delete request.headers["x-amz-user-agent"];
49276
+ let presigned2;
49277
+ const presignerOptions = {
49278
+ ...options,
49279
+ signingRegion: (_a3 = options.signingRegion) !== null && _a3 !== void 0 ? _a3 : context["signing_region"],
49280
+ signingService: (_b2 = options.signingService) !== null && _b2 !== void 0 ? _b2 : context["signing_service"]
49281
+ };
49282
+ if (context.s3ExpressIdentity) {
49283
+ presigned2 = await s3Presigner.presignWithCredentials(request, context.s3ExpressIdentity, presignerOptions);
49284
+ } else {
49285
+ presigned2 = await s3Presigner.presign(request, presignerOptions);
49286
+ }
49287
+ return {
49288
+ response: {},
49289
+ output: {
49290
+ $metadata: { httpStatusCode: 200 },
49291
+ presigned: presigned2
49292
+ }
49293
+ };
49294
+ };
49295
+ const middlewareName = "presignInterceptMiddleware";
49296
+ const clientStack = client.middlewareStack.clone();
49297
+ clientStack.addRelativeTo(presignInterceptMiddleware, {
49298
+ name: middlewareName,
49299
+ relation: "before",
49300
+ toMiddleware: "awsAuthMiddleware",
49301
+ override: true
49302
+ });
49303
+ const handler2 = command2.resolveMiddleware(clientStack, client.config, {});
49304
+ const { output } = await handler2({ input: command2.input });
49305
+ const { presigned } = output;
49306
+ return (0, util_format_url_1.formatUrl)(presigned);
49307
+ };
49308
+ exports.getSignedUrl = getSignedUrl2;
49309
+ }
49310
+ });
49311
+
49312
+ // ../shared/node_modules/@aws-sdk/s3-request-presigner/dist-cjs/index.js
49313
+ var require_dist_cjs71 = __commonJS({
49314
+ "../shared/node_modules/@aws-sdk/s3-request-presigner/dist-cjs/index.js"(exports) {
49315
+ "use strict";
49316
+ Object.defineProperty(exports, "__esModule", { value: true });
49317
+ var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
49318
+ tslib_1.__exportStar(require_getSignedUrl(), exports);
49319
+ tslib_1.__exportStar(require_presigner(), exports);
49320
+ }
49321
+ });
49322
+
49125
49323
  // ../../node_modules/@aws-sdk/client-cognito-identity/dist-cjs/endpoint/EndpointParameters.js
49126
49324
  var require_EndpointParameters4 = __commonJS({
49127
49325
  "../../node_modules/@aws-sdk/client-cognito-identity/dist-cjs/endpoint/EndpointParameters.js"(exports) {
@@ -52671,7 +52869,7 @@ var require_models4 = __commonJS({
52671
52869
  });
52672
52870
 
52673
52871
  // ../../node_modules/@aws-sdk/client-cognito-identity/dist-cjs/index.js
52674
- var require_dist_cjs70 = __commonJS({
52872
+ var require_dist_cjs72 = __commonJS({
52675
52873
  "../../node_modules/@aws-sdk/client-cognito-identity/dist-cjs/index.js"(exports) {
52676
52874
  "use strict";
52677
52875
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -52744,7 +52942,7 @@ var require_fromCognitoIdentity = __commonJS({
52744
52942
  "use strict";
52745
52943
  Object.defineProperty(exports, "__esModule", { value: true });
52746
52944
  exports.fromCognitoIdentity = void 0;
52747
- var client_cognito_identity_1 = require_dist_cjs70();
52945
+ var client_cognito_identity_1 = require_dist_cjs72();
52748
52946
  var property_provider_1 = require_dist_cjs25();
52749
52947
  var resolveLogins_1 = require_resolveLogins();
52750
52948
  function fromCognitoIdentity(parameters) {
@@ -52908,7 +53106,7 @@ var require_fromCognitoIdentityPool = __commonJS({
52908
53106
  "use strict";
52909
53107
  Object.defineProperty(exports, "__esModule", { value: true });
52910
53108
  exports.fromCognitoIdentityPool = void 0;
52911
- var client_cognito_identity_1 = require_dist_cjs70();
53109
+ var client_cognito_identity_1 = require_dist_cjs72();
52912
53110
  var property_provider_1 = require_dist_cjs25();
52913
53111
  var fromCognitoIdentity_1 = require_fromCognitoIdentity();
52914
53112
  var localStorage_1 = require_localStorage();
@@ -52953,7 +53151,7 @@ var require_fromCognitoIdentityPool = __commonJS({
52953
53151
  });
52954
53152
 
52955
53153
  // ../../node_modules/@aws-sdk/credential-provider-cognito-identity/dist-cjs/index.js
52956
- var require_dist_cjs71 = __commonJS({
53154
+ var require_dist_cjs73 = __commonJS({
52957
53155
  "../../node_modules/@aws-sdk/credential-provider-cognito-identity/dist-cjs/index.js"(exports) {
52958
53156
  "use strict";
52959
53157
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -52972,8 +53170,8 @@ var require_fromCognitoIdentity2 = __commonJS({
52972
53170
  "use strict";
52973
53171
  Object.defineProperty(exports, "__esModule", { value: true });
52974
53172
  exports.fromCognitoIdentity = void 0;
52975
- var client_cognito_identity_1 = require_dist_cjs70();
52976
- var credential_provider_cognito_identity_1 = require_dist_cjs71();
53173
+ var client_cognito_identity_1 = require_dist_cjs72();
53174
+ var credential_provider_cognito_identity_1 = require_dist_cjs73();
52977
53175
  var fromCognitoIdentity = (options) => {
52978
53176
  var _a2;
52979
53177
  return (0, credential_provider_cognito_identity_1.fromCognitoIdentity)({
@@ -52991,8 +53189,8 @@ var require_fromCognitoIdentityPool2 = __commonJS({
52991
53189
  "use strict";
52992
53190
  Object.defineProperty(exports, "__esModule", { value: true });
52993
53191
  exports.fromCognitoIdentityPool = void 0;
52994
- var client_cognito_identity_1 = require_dist_cjs70();
52995
- var credential_provider_cognito_identity_1 = require_dist_cjs71();
53192
+ var client_cognito_identity_1 = require_dist_cjs72();
53193
+ var credential_provider_cognito_identity_1 = require_dist_cjs73();
52996
53194
  var fromCognitoIdentityPool = (options) => {
52997
53195
  var _a2;
52998
53196
  return (0, credential_provider_cognito_identity_1.fromCognitoIdentityPool)({
@@ -53213,7 +53411,7 @@ var require_fromHttp = __commonJS({
53213
53411
  });
53214
53412
 
53215
53413
  // ../../node_modules/@aws-sdk/credential-provider-http/dist-cjs/index.js
53216
- var require_dist_cjs72 = __commonJS({
53414
+ var require_dist_cjs74 = __commonJS({
53217
53415
  "../../node_modules/@aws-sdk/credential-provider-http/dist-cjs/index.js"(exports) {
53218
53416
  "use strict";
53219
53417
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -53383,7 +53581,7 @@ var require_fromWebToken2 = __commonJS({
53383
53581
  });
53384
53582
 
53385
53583
  // ../../node_modules/@aws-sdk/credential-providers/dist-cjs/index.js
53386
- var require_dist_cjs73 = __commonJS({
53584
+ var require_dist_cjs75 = __commonJS({
53387
53585
  "../../node_modules/@aws-sdk/credential-providers/dist-cjs/index.js"(exports) {
53388
53586
  "use strict";
53389
53587
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -53393,7 +53591,7 @@ var require_dist_cjs73 = __commonJS({
53393
53591
  tslib_1.__exportStar(require_fromCognitoIdentityPool2(), exports);
53394
53592
  tslib_1.__exportStar(require_fromContainerMetadata2(), exports);
53395
53593
  tslib_1.__exportStar(require_fromEnv3(), exports);
53396
- var credential_provider_http_1 = require_dist_cjs72();
53594
+ var credential_provider_http_1 = require_dist_cjs74();
53397
53595
  Object.defineProperty(exports, "fromHttp", { enumerable: true, get: function() {
53398
53596
  return credential_provider_http_1.fromHttp;
53399
53597
  } });
@@ -53458,7 +53656,7 @@ var require_AbortController = __commonJS({
53458
53656
  });
53459
53657
 
53460
53658
  // ../../node_modules/@smithy/abort-controller/dist-cjs/index.js
53461
- var require_dist_cjs74 = __commonJS({
53659
+ var require_dist_cjs76 = __commonJS({
53462
53660
  "../../node_modules/@smithy/abort-controller/dist-cjs/index.js"(exports) {
53463
53661
  "use strict";
53464
53662
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -53672,7 +53870,7 @@ var require_Upload = __commonJS({
53672
53870
  Object.defineProperty(exports, "__esModule", { value: true });
53673
53871
  exports.Upload = void 0;
53674
53872
  var client_s3_1 = require_dist_cjs69();
53675
- var abort_controller_1 = require_dist_cjs74();
53873
+ var abort_controller_1 = require_dist_cjs76();
53676
53874
  var middleware_endpoint_1 = require_dist_cjs38();
53677
53875
  var smithy_client_1 = require_dist_cjs16();
53678
53876
  var events_1 = require("events");
@@ -53945,7 +54143,7 @@ var require_types11 = __commonJS({
53945
54143
  });
53946
54144
 
53947
54145
  // ../../node_modules/@aws-sdk/lib-storage/dist-cjs/index.js
53948
- var require_dist_cjs75 = __commonJS({
54146
+ var require_dist_cjs77 = __commonJS({
53949
54147
  "../../node_modules/@aws-sdk/lib-storage/dist-cjs/index.js"(exports) {
53950
54148
  "use strict";
53951
54149
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -54706,7 +54904,7 @@ var require_EndpointCache = __commonJS({
54706
54904
  });
54707
54905
 
54708
54906
  // ../../node_modules/@aws-sdk/endpoint-cache/dist-cjs/index.js
54709
- var require_dist_cjs76 = __commonJS({
54907
+ var require_dist_cjs78 = __commonJS({
54710
54908
  "../../node_modules/@aws-sdk/endpoint-cache/dist-cjs/index.js"(exports) {
54711
54909
  "use strict";
54712
54910
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -54722,7 +54920,7 @@ var require_resolveEndpointDiscoveryConfig = __commonJS({
54722
54920
  "use strict";
54723
54921
  Object.defineProperty(exports, "__esModule", { value: true });
54724
54922
  exports.resolveEndpointDiscoveryConfig = void 0;
54725
- var endpoint_cache_1 = require_dist_cjs76();
54923
+ var endpoint_cache_1 = require_dist_cjs78();
54726
54924
  var resolveEndpointDiscoveryConfig = (input, { endpointDiscoveryCommandCtor }) => {
54727
54925
  var _a2;
54728
54926
  return {
@@ -54738,7 +54936,7 @@ var require_resolveEndpointDiscoveryConfig = __commonJS({
54738
54936
  });
54739
54937
 
54740
54938
  // ../../node_modules/@aws-sdk/middleware-endpoint-discovery/dist-cjs/index.js
54741
- var require_dist_cjs77 = __commonJS({
54939
+ var require_dist_cjs79 = __commonJS({
54742
54940
  "../../node_modules/@aws-sdk/middleware-endpoint-discovery/dist-cjs/index.js"(exports) {
54743
54941
  "use strict";
54744
54942
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -60218,7 +60416,7 @@ var require_runtimeConfig6 = __commonJS({
60218
60416
  var client_sts_1 = require_dist_cjs59();
60219
60417
  var core_1 = require_dist_cjs44();
60220
60418
  var credential_provider_node_1 = require_dist_cjs58();
60221
- var middleware_endpoint_discovery_1 = require_dist_cjs77();
60419
+ var middleware_endpoint_discovery_1 = require_dist_cjs79();
60222
60420
  var util_user_agent_node_1 = require_dist_cjs48();
60223
60421
  var config_resolver_1 = require_dist_cjs30();
60224
60422
  var hash_node_1 = require_dist_cjs49();
@@ -60297,7 +60495,7 @@ var require_DynamoDBClient = __commonJS({
60297
60495
  "use strict";
60298
60496
  Object.defineProperty(exports, "__esModule", { value: true });
60299
60497
  exports.DynamoDBClient = exports.__Client = void 0;
60300
- var middleware_endpoint_discovery_1 = require_dist_cjs77();
60498
+ var middleware_endpoint_discovery_1 = require_dist_cjs79();
60301
60499
  var middleware_host_header_1 = require_dist_cjs4();
60302
60500
  var middleware_logger_1 = require_dist_cjs5();
60303
60501
  var middleware_recursion_detection_1 = require_dist_cjs6();
@@ -63929,7 +64127,7 @@ var require_models5 = __commonJS({
63929
64127
  });
63930
64128
 
63931
64129
  // ../../node_modules/@aws-sdk/client-dynamodb/dist-cjs/index.js
63932
- var require_dist_cjs78 = __commonJS({
64130
+ var require_dist_cjs80 = __commonJS({
63933
64131
  "../../node_modules/@aws-sdk/client-dynamodb/dist-cjs/index.js"(exports) {
63934
64132
  "use strict";
63935
64133
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -64265,7 +64463,7 @@ var require_unmarshall = __commonJS({
64265
64463
  });
64266
64464
 
64267
64465
  // ../../node_modules/@aws-sdk/util-dynamodb/dist-cjs/index.js
64268
- var require_dist_cjs79 = __commonJS({
64466
+ var require_dist_cjs81 = __commonJS({
64269
64467
  "../../node_modules/@aws-sdk/util-dynamodb/dist-cjs/index.js"(exports) {
64270
64468
  "use strict";
64271
64469
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -106037,7 +106235,7 @@ var require_proxy_addr = __commonJS({
106037
106235
  });
106038
106236
 
106039
106237
  // ../../node_modules/fastify/node_modules/semver/internal/constants.js
106040
- var require_constants11 = __commonJS({
106238
+ var require_constants12 = __commonJS({
106041
106239
  "../../node_modules/fastify/node_modules/semver/internal/constants.js"(exports, module2) {
106042
106240
  var SEMVER_SPEC_VERSION = "2.0.0";
106043
106241
  var MAX_LENGTH = 256;
@@ -106083,7 +106281,7 @@ var require_re = __commonJS({
106083
106281
  MAX_SAFE_COMPONENT_LENGTH,
106084
106282
  MAX_SAFE_BUILD_LENGTH,
106085
106283
  MAX_LENGTH
106086
- } = require_constants11();
106284
+ } = require_constants12();
106087
106285
  var debug = require_debug3();
106088
106286
  exports = module2.exports = {};
106089
106287
  var re = exports.re = [];
@@ -106201,7 +106399,7 @@ var require_identifiers = __commonJS({
106201
106399
  var require_semver = __commonJS({
106202
106400
  "../../node_modules/fastify/node_modules/semver/classes/semver.js"(exports, module2) {
106203
106401
  var debug = require_debug3();
106204
- var { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants11();
106402
+ var { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants12();
106205
106403
  var { safeRe: re, t } = require_re();
106206
106404
  var parseOptions = require_parse_options();
106207
106405
  var { compareIdentifiers } = require_identifiers();
@@ -107581,7 +107779,7 @@ var require_range = __commonJS({
107581
107779
  tildeTrimReplace,
107582
107780
  caretTrimReplace
107583
107781
  } = require_re();
107584
- var { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require_constants11();
107782
+ var { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require_constants12();
107585
107783
  var isNullSet = (c2) => c2.value === "<0.0.0-0";
107586
107784
  var isAny = (c2) => c2.value === "";
107587
107785
  var isSatisfiable = (comparators, options) => {
@@ -108378,7 +108576,7 @@ var require_subset = __commonJS({
108378
108576
  var require_semver2 = __commonJS({
108379
108577
  "../../node_modules/fastify/node_modules/semver/index.js"(exports, module2) {
108380
108578
  var internalRe = require_re();
108381
- var constants = require_constants11();
108579
+ var constants = require_constants12();
108382
108580
  var SemVer = require_semver();
108383
108581
  var identifiers = require_identifiers();
108384
108582
  var parse2 = require_parse3();
@@ -124913,9 +125111,9 @@ var ulid2 = __toESM(require_index_umd(), 1);
124913
125111
  var CliInfo = {
124914
125112
  // Detect unlinked packages looks for this string since its a package name, slightly work around it
124915
125113
  package: "@basemaps/cli",
124916
- version: "v8.1.0-6-g69195be6",
124917
- hash: "69195be692efa914369fa854d3bae16355dc0dc8",
124918
- buildId: "15601557572-1"
125114
+ version: "v8.4.0-5-g4f6f3929",
125115
+ hash: "4f6f3929b9117c3e112f7d156ab185cb98821796",
125116
+ buildId: "16305730095-1"
124919
125117
  };
124920
125118
  var CliDate = (/* @__PURE__ */ new Date()).toISOString();
124921
125119
  var CliId = ulid2.ulid();
@@ -129627,6 +129825,7 @@ var MemoryConfigObject = class extends BasemapsConfigObject {
129627
129825
 
129628
129826
  // ../shared/build/file.system.js
129629
129827
  var import_client_s34 = __toESM(require_dist_cjs69(), 1);
129828
+ var import_s3_request_presigner = __toESM(require_dist_cjs71(), 1);
129630
129829
 
129631
129830
  // ../../node_modules/@chunkd/source/build/src/error.js
129632
129831
  var SourceError = class _SourceError extends Error {
@@ -130300,12 +130499,12 @@ var FsHttp = class {
130300
130499
 
130301
130500
  // ../../node_modules/@chunkd/fs-aws/build/src/credentials.js
130302
130501
  var import_client_s33 = __toESM(require_dist_cjs69(), 1);
130303
- var import_credential_providers = __toESM(require_dist_cjs73(), 1);
130502
+ var import_credential_providers = __toESM(require_dist_cjs75(), 1);
130304
130503
 
130305
130504
  // ../../node_modules/@chunkd/fs-aws/build/src/fs.s3.js
130306
130505
  var import_node_stream = require("stream");
130307
130506
  var import_client_s32 = __toESM(require_dist_cjs69(), 1);
130308
- var import_lib_storage = __toESM(require_dist_cjs75(), 1);
130507
+ var import_lib_storage = __toESM(require_dist_cjs77(), 1);
130309
130508
 
130310
130509
  // ../../node_modules/@chunkd/source-aws/build/src/index.js
130311
130510
  var import_client_s3 = __toESM(require_dist_cjs69(), 1);
@@ -131029,20 +131228,31 @@ function hasHostName(x) {
131029
131228
  }
131030
131229
 
131031
131230
  // ../shared/build/file.system.js
131032
- var s3Fs = new FsAwsS3(new import_client_s34.S3Client({
131231
+ var s3Client = new import_client_s34.S3Client({
131033
131232
  /**
131034
- * We buckets in multiple regions we do not know ahead of time which bucket is in what region
131233
+ * We have buckets in multiple regions. We don’t know ahead of time which region each bucket is in
131035
131234
  *
131036
- * So the S3 Client will have to follow the endpoints, this adds a bit of extra latency as requests have to be retried
131235
+ * So, the S3 Client will have to follow the endpoints. This adds a bit of extra latency as requests have to be retried
131037
131236
  */
131038
131237
  followRegionRedirects: true
131039
- }));
131238
+ });
131239
+ var s3Config = {
131240
+ client: s3Client,
131241
+ getSignedUrl: import_s3_request_presigner.getSignedUrl
131242
+ };
131243
+ var s3Fs = new FsAwsS3(s3Client);
131040
131244
  var s3FsPublic = new FsAwsS3(new import_client_s34.S3Client({
131041
131245
  followRegionRedirects: true,
131042
131246
  signer: {
131043
131247
  sign: (req) => Promise.resolve(req)
131044
131248
  }
131045
131249
  }));
131250
+ async function signS3Get(target) {
131251
+ if (target.protocol !== "s3:")
131252
+ throw new Error(`Presigning only works for S3 URLs, got ${target.href}`);
131253
+ const command2 = new import_client_s34.GetObjectCommand({ Bucket: target.host, Key: target.pathname.slice(1) });
131254
+ return await s3Config.getSignedUrl(s3Client, command2, { expiresIn: 3600 });
131255
+ }
131046
131256
  function applyS3MiddleWare(fs4) {
131047
131257
  if (fs4.s3 == null)
131048
131258
  return;
@@ -131116,12 +131326,12 @@ function stringToUrlFolder(str) {
131116
131326
  }
131117
131327
 
131118
131328
  // ../shared/build/dynamo/dynamo.config.js
131119
- var import_client_dynamodb2 = __toESM(require_dist_cjs78(), 1);
131329
+ var import_client_dynamodb2 = __toESM(require_dist_cjs80(), 1);
131120
131330
  var import_util_retry = __toESM(require_dist_cjs40(), 1);
131121
131331
 
131122
131332
  // ../shared/build/dynamo/dynamo.config.base.js
131123
- var import_client_dynamodb = __toESM(require_dist_cjs78(), 1);
131124
- var import_util_dynamodb = __toESM(require_dist_cjs79(), 1);
131333
+ var import_client_dynamodb = __toESM(require_dist_cjs80(), 1);
131334
+ var import_util_dynamodb = __toESM(require_dist_cjs81(), 1);
131125
131335
  function toId(id) {
131126
131336
  return { id: { S: id } };
131127
131337
  }
@@ -132274,48 +132484,6 @@ Object.defineProperty(Projection, "AllowedFloatingError", {
132274
132484
  value: 1e-8
132275
132485
  });
132276
132486
 
132277
- // ../geo/build/proj/projection.loader.js
132278
- var ProjectionLoader = class {
132279
- /**
132280
- * Ensure that a projection EPSG code is avialable for use in Proj4js
132281
- *
132282
- * If its not already loaded, lookup definition from spatialreference.org
132283
- * @param code
132284
- */
132285
- static async load(code) {
132286
- if (Projection.tryGet(code) != null)
132287
- return Epsg.get(code);
132288
- const url = `https://spatialreference.org/ref/epsg/${code}/ogcwkt/`;
132289
- const res = await this._fetch(url);
132290
- if (!res.ok)
132291
- throw new Error("Failed to load projection information for:" + code);
132292
- let epsg = Epsg.tryGet(code);
132293
- if (epsg == null)
132294
- epsg = new Epsg(code);
132295
- const text = await res.text();
132296
- Projection.define(epsg, text);
132297
- return epsg;
132298
- }
132299
- };
132300
- Object.defineProperty(ProjectionLoader, "_fetch", {
132301
- enumerable: true,
132302
- configurable: true,
132303
- writable: true,
132304
- value: fetch
132305
- });
132306
-
132307
- // ../geo/build/proj/tile.set.name.js
132308
- var TileSetName;
132309
- (function(TileSetName2) {
132310
- TileSetName2["aerial"] = "aerial";
132311
- })(TileSetName || (TileSetName = {}));
132312
-
132313
- // ../geo/build/quad.key.js
132314
- var CHAR_0 = "0".charCodeAt(0);
132315
- var CHAR_1 = "1".charCodeAt(0);
132316
- var CHAR_2 = "2".charCodeAt(0);
132317
- var CHAR_3 = "3".charCodeAt(0);
132318
-
132319
132487
  // ../geo/build/xy.order.js
132320
132488
  function getXyOrder(epsg) {
132321
132489
  const code = typeof epsg === "number" ? epsg : epsg.code;
@@ -132601,25 +132769,25 @@ var TileMatrixSet = class {
132601
132769
  }
132602
132770
  };
132603
132771
 
132604
- // ../geo/build/tms/citm2000.js
132605
- var Citm2000Tmst = {
132772
+ // ../geo/build/tms/google.js
132773
+ var GoogleTmst = {
132606
132774
  type: "TileMatrixSetType",
132607
- title: "Debug tile matrix for EPSG:3793",
132608
- abstract: "",
132609
- identifier: "CITM2000Quad",
132610
- supportedCRS: "https://www.opengis.net/def/crs/EPSG/0/3793",
132775
+ title: "Google Maps Compatible for the World",
132776
+ identifier: "WebMercatorQuad",
132611
132777
  boundingBox: {
132612
132778
  type: "BoundingBoxType",
132613
- crs: "https://www.opengis.net/def/crs/EPSG/0/3793",
132614
- lowerCorner: [5051234111622438e-9, 3.4301543757978342e6],
132615
- upperCorner: [5207777145550478e-9, 3.5866974097258747e6]
132779
+ crs: "http://www.opengis.net/def/crs/EPSG/0/3857",
132780
+ lowerCorner: [-200375083427892e-7, -200375083427892e-7],
132781
+ upperCorner: [200375083427892e-7, 200375083427892e-7]
132616
132782
  },
132783
+ supportedCRS: "https://www.opengis.net/def/crs/EPSG/0/3857",
132784
+ wellKnownScaleSet: "https://www.opengis.net/def/wkss/OGC/1.0/GoogleMapsCompatible",
132617
132785
  tileMatrix: [
132618
132786
  {
132619
132787
  type: "TileMatrixType",
132620
132788
  identifier: "0",
132621
- scaleDenominator: 218391509386217e-8,
132622
- topLeftCorner: [5207777145550478e-9, 3.4301543757978342e6],
132789
+ scaleDenominator: 559082264028717e-6,
132790
+ topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
132623
132791
  tileWidth: 256,
132624
132792
  tileHeight: 256,
132625
132793
  matrixWidth: 1,
@@ -132628,8 +132796,8 @@ var Citm2000Tmst = {
132628
132796
  {
132629
132797
  type: "TileMatrixType",
132630
132798
  identifier: "1",
132631
- scaleDenominator: 109195754693108e-8,
132632
- topLeftCorner: [5207777145550478e-9, 3.4301543757978342e6],
132799
+ scaleDenominator: 279541132014358e-6,
132800
+ topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
132633
132801
  tileWidth: 256,
132634
132802
  tileHeight: 256,
132635
132803
  matrixWidth: 2,
@@ -132638,8 +132806,8 @@ var Citm2000Tmst = {
132638
132806
  {
132639
132807
  type: "TileMatrixType",
132640
132808
  identifier: "2",
132641
- scaleDenominator: 545978.773465544,
132642
- topLeftCorner: [5207777145550478e-9, 3.4301543757978342e6],
132809
+ scaleDenominator: 139770566007179e-6,
132810
+ topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
132643
132811
  tileWidth: 256,
132644
132812
  tileHeight: 256,
132645
132813
  matrixWidth: 4,
@@ -132648,8 +132816,8 @@ var Citm2000Tmst = {
132648
132816
  {
132649
132817
  type: "TileMatrixType",
132650
132818
  identifier: "3",
132651
- scaleDenominator: 272989.386732772,
132652
- topLeftCorner: [5207777145550478e-9, 3.4301543757978342e6],
132819
+ scaleDenominator: 698852830035897e-7,
132820
+ topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
132653
132821
  tileWidth: 256,
132654
132822
  tileHeight: 256,
132655
132823
  matrixWidth: 8,
@@ -132658,8 +132826,8 @@ var Citm2000Tmst = {
132658
132826
  {
132659
132827
  type: "TileMatrixType",
132660
132828
  identifier: "4",
132661
- scaleDenominator: 136494.693366386,
132662
- topLeftCorner: [5207777145550478e-9, 3.4301543757978342e6],
132829
+ scaleDenominator: 349426415017948e-7,
132830
+ topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
132663
132831
  tileWidth: 256,
132664
132832
  tileHeight: 256,
132665
132833
  matrixWidth: 16,
@@ -132668,8 +132836,8 @@ var Citm2000Tmst = {
132668
132836
  {
132669
132837
  type: "TileMatrixType",
132670
132838
  identifier: "5",
132671
- scaleDenominator: 68247.346683193,
132672
- topLeftCorner: [5207777145550478e-9, 3.4301543757978342e6],
132839
+ scaleDenominator: 174713207508974e-7,
132840
+ topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
132673
132841
  tileWidth: 256,
132674
132842
  tileHeight: 256,
132675
132843
  matrixWidth: 32,
@@ -132678,8 +132846,8 @@ var Citm2000Tmst = {
132678
132846
  {
132679
132847
  type: "TileMatrixType",
132680
132848
  identifier: "6",
132681
- scaleDenominator: 34123.6733415964,
132682
- topLeftCorner: [5207777145550478e-9, 3.4301543757978342e6],
132849
+ scaleDenominator: 873566037544871e-8,
132850
+ topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
132683
132851
  tileWidth: 256,
132684
132852
  tileHeight: 256,
132685
132853
  matrixWidth: 64,
@@ -132688,8 +132856,8 @@ var Citm2000Tmst = {
132688
132856
  {
132689
132857
  type: "TileMatrixType",
132690
132858
  identifier: "7",
132691
- scaleDenominator: 17061.8366707982,
132692
- topLeftCorner: [5207777145550478e-9, 3.4301543757978342e6],
132859
+ scaleDenominator: 436783018772435e-8,
132860
+ topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
132693
132861
  tileWidth: 256,
132694
132862
  tileHeight: 256,
132695
132863
  matrixWidth: 128,
@@ -132698,8 +132866,8 @@ var Citm2000Tmst = {
132698
132866
  {
132699
132867
  type: "TileMatrixType",
132700
132868
  identifier: "8",
132701
- scaleDenominator: 8530.91833539913,
132702
- topLeftCorner: [5207777145550478e-9, 3.4301543757978342e6],
132869
+ scaleDenominator: 218391509386217e-8,
132870
+ topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
132703
132871
  tileWidth: 256,
132704
132872
  tileHeight: 256,
132705
132873
  matrixWidth: 256,
@@ -132708,8 +132876,8 @@ var Citm2000Tmst = {
132708
132876
  {
132709
132877
  type: "TileMatrixType",
132710
132878
  identifier: "9",
132711
- scaleDenominator: 4265.45916769956,
132712
- topLeftCorner: [5207777145550478e-9, 3.4301543757978342e6],
132879
+ scaleDenominator: 109195754693108e-8,
132880
+ topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
132713
132881
  tileWidth: 256,
132714
132882
  tileHeight: 256,
132715
132883
  matrixWidth: 512,
@@ -132718,8 +132886,8 @@ var Citm2000Tmst = {
132718
132886
  {
132719
132887
  type: "TileMatrixType",
132720
132888
  identifier: "10",
132721
- scaleDenominator: 2132.72958384978,
132722
- topLeftCorner: [5207777145550478e-9, 3.4301543757978342e6],
132889
+ scaleDenominator: 545978.773465544,
132890
+ topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
132723
132891
  tileWidth: 256,
132724
132892
  tileHeight: 256,
132725
132893
  matrixWidth: 1024,
@@ -132728,8 +132896,8 @@ var Citm2000Tmst = {
132728
132896
  {
132729
132897
  type: "TileMatrixType",
132730
132898
  identifier: "11",
132731
- scaleDenominator: 1066.36479192489,
132732
- topLeftCorner: [5207777145550478e-9, 3.4301543757978342e6],
132899
+ scaleDenominator: 272989.386732772,
132900
+ topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
132733
132901
  tileWidth: 256,
132734
132902
  tileHeight: 256,
132735
132903
  matrixWidth: 2048,
@@ -132738,8 +132906,8 @@ var Citm2000Tmst = {
132738
132906
  {
132739
132907
  type: "TileMatrixType",
132740
132908
  identifier: "12",
132741
- scaleDenominator: 533.182395962445,
132742
- topLeftCorner: [5207777145550478e-9, 3.4301543757978342e6],
132909
+ scaleDenominator: 136494.693366386,
132910
+ topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
132743
132911
  tileWidth: 256,
132744
132912
  tileHeight: 256,
132745
132913
  matrixWidth: 4096,
@@ -132748,8 +132916,8 @@ var Citm2000Tmst = {
132748
132916
  {
132749
132917
  type: "TileMatrixType",
132750
132918
  identifier: "13",
132751
- scaleDenominator: 266.591197981222,
132752
- topLeftCorner: [5207777145550478e-9, 3.4301543757978342e6],
132919
+ scaleDenominator: 68247.346683193,
132920
+ topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
132753
132921
  tileWidth: 256,
132754
132922
  tileHeight: 256,
132755
132923
  matrixWidth: 8192,
@@ -132758,8 +132926,8 @@ var Citm2000Tmst = {
132758
132926
  {
132759
132927
  type: "TileMatrixType",
132760
132928
  identifier: "14",
132761
- scaleDenominator: 133.295598990611,
132762
- topLeftCorner: [5207777145550478e-9, 3.4301543757978342e6],
132929
+ scaleDenominator: 34123.6733415964,
132930
+ topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
132763
132931
  tileWidth: 256,
132764
132932
  tileHeight: 256,
132765
132933
  matrixWidth: 16384,
@@ -132768,8 +132936,8 @@ var Citm2000Tmst = {
132768
132936
  {
132769
132937
  type: "TileMatrixType",
132770
132938
  identifier: "15",
132771
- scaleDenominator: 66.6477994953056,
132772
- topLeftCorner: [5207777145550478e-9, 3.4301543757978342e6],
132939
+ scaleDenominator: 17061.8366707982,
132940
+ topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
132773
132941
  tileWidth: 256,
132774
132942
  tileHeight: 256,
132775
132943
  matrixWidth: 32768,
@@ -132778,294 +132946,336 @@ var Citm2000Tmst = {
132778
132946
  {
132779
132947
  type: "TileMatrixType",
132780
132948
  identifier: "16",
132781
- scaleDenominator: 33.3238997476528,
132782
- topLeftCorner: [5207777145550478e-9, 3.4301543757978342e6],
132949
+ scaleDenominator: 8530.91833539913,
132950
+ topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
132783
132951
  tileWidth: 256,
132784
132952
  tileHeight: 256,
132785
132953
  matrixWidth: 65536,
132786
132954
  matrixHeight: 65536
132787
- }
132788
- ],
132789
- $generated: {
132790
- package: "@basemaps/cli",
132791
- version: "v7.14.0-4-g2766010d",
132792
- hash: "2766010d8d2bb8b673f6bcbef2fe2636f2e0f4ea",
132793
- createdAt: "2025-02-10T20:34:46.643Z"
132794
- },
132795
- $options: {
132796
- sourceTileMatrix: "WebMercatorQuad",
132797
- zoomOffset: 8
132798
- }
132799
- };
132800
- var Citm2000Tms = new TileMatrixSet(Citm2000Tmst);
132801
-
132802
- // ../geo/build/tms/google.js
132803
- var GoogleTmst = {
132804
- type: "TileMatrixSetType",
132805
- title: "Google Maps Compatible for the World",
132806
- identifier: "WebMercatorQuad",
132807
- boundingBox: {
132808
- type: "BoundingBoxType",
132809
- crs: "http://www.opengis.net/def/crs/EPSG/0/3857",
132810
- lowerCorner: [-200375083427892e-7, -200375083427892e-7],
132811
- upperCorner: [200375083427892e-7, 200375083427892e-7]
132812
- },
132813
- supportedCRS: "https://www.opengis.net/def/crs/EPSG/0/3857",
132814
- wellKnownScaleSet: "https://www.opengis.net/def/wkss/OGC/1.0/GoogleMapsCompatible",
132815
- tileMatrix: [
132955
+ },
132816
132956
  {
132817
132957
  type: "TileMatrixType",
132818
- identifier: "0",
132819
- scaleDenominator: 559082264028717e-6,
132958
+ identifier: "17",
132959
+ scaleDenominator: 4265.45916769956,
132820
132960
  topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
132821
132961
  tileWidth: 256,
132822
132962
  tileHeight: 256,
132823
- matrixWidth: 1,
132824
- matrixHeight: 1
132963
+ matrixWidth: 131072,
132964
+ matrixHeight: 131072
132825
132965
  },
132826
132966
  {
132827
132967
  type: "TileMatrixType",
132828
- identifier: "1",
132829
- scaleDenominator: 279541132014358e-6,
132968
+ identifier: "18",
132969
+ scaleDenominator: 2132.72958384978,
132830
132970
  topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
132831
132971
  tileWidth: 256,
132832
132972
  tileHeight: 256,
132833
- matrixWidth: 2,
132834
- matrixHeight: 2
132973
+ matrixWidth: 262144,
132974
+ matrixHeight: 262144
132835
132975
  },
132836
132976
  {
132837
132977
  type: "TileMatrixType",
132838
- identifier: "2",
132839
- scaleDenominator: 139770566007179e-6,
132978
+ identifier: "19",
132979
+ scaleDenominator: 1066.36479192489,
132840
132980
  topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
132841
132981
  tileWidth: 256,
132842
132982
  tileHeight: 256,
132843
- matrixWidth: 4,
132844
- matrixHeight: 4
132983
+ matrixWidth: 524288,
132984
+ matrixHeight: 524288
132845
132985
  },
132846
132986
  {
132847
132987
  type: "TileMatrixType",
132848
- identifier: "3",
132849
- scaleDenominator: 698852830035897e-7,
132988
+ identifier: "20",
132989
+ scaleDenominator: 533.182395962445,
132850
132990
  topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
132851
132991
  tileWidth: 256,
132852
132992
  tileHeight: 256,
132853
- matrixWidth: 8,
132854
- matrixHeight: 8
132993
+ matrixWidth: 1048576,
132994
+ matrixHeight: 1048576
132855
132995
  },
132856
132996
  {
132857
132997
  type: "TileMatrixType",
132858
- identifier: "4",
132859
- scaleDenominator: 349426415017948e-7,
132998
+ identifier: "21",
132999
+ scaleDenominator: 266.591197981222,
132860
133000
  topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
132861
133001
  tileWidth: 256,
132862
133002
  tileHeight: 256,
132863
- matrixWidth: 16,
132864
- matrixHeight: 16
133003
+ matrixWidth: 2097152,
133004
+ matrixHeight: 2097152
132865
133005
  },
132866
133006
  {
132867
133007
  type: "TileMatrixType",
132868
- identifier: "5",
132869
- scaleDenominator: 174713207508974e-7,
133008
+ identifier: "22",
133009
+ scaleDenominator: 133.295598990611,
132870
133010
  topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
132871
133011
  tileWidth: 256,
132872
133012
  tileHeight: 256,
132873
- matrixWidth: 32,
132874
- matrixHeight: 32
133013
+ matrixWidth: 4194304,
133014
+ matrixHeight: 4194304
132875
133015
  },
132876
133016
  {
132877
133017
  type: "TileMatrixType",
132878
- identifier: "6",
132879
- scaleDenominator: 873566037544871e-8,
133018
+ identifier: "23",
133019
+ scaleDenominator: 66.6477994953056,
132880
133020
  topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
132881
133021
  tileWidth: 256,
132882
133022
  tileHeight: 256,
132883
- matrixWidth: 64,
132884
- matrixHeight: 64
133023
+ matrixWidth: 8388608,
133024
+ matrixHeight: 8388608
132885
133025
  },
132886
133026
  {
132887
133027
  type: "TileMatrixType",
132888
- identifier: "7",
132889
- scaleDenominator: 436783018772435e-8,
133028
+ identifier: "24",
133029
+ scaleDenominator: 33.3238997476528,
132890
133030
  topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
132891
133031
  tileWidth: 256,
132892
133032
  tileHeight: 256,
132893
- matrixWidth: 128,
132894
- matrixHeight: 128
132895
- },
133033
+ matrixWidth: 16777216,
133034
+ matrixHeight: 16777216
133035
+ }
133036
+ ]
133037
+ };
133038
+ var GoogleTms = new TileMatrixSet(GoogleTmst);
133039
+
133040
+ // ../geo/build/proj/projection.loader.js
133041
+ var ProjectionLoader = class {
133042
+ /**
133043
+ * Ensure that a projection EPSG code is avialable for use in Proj4js
133044
+ *
133045
+ * If its not already loaded, lookup definition from spatialreference.org
133046
+ * @param code
133047
+ */
133048
+ static async load(code) {
133049
+ if (Projection.tryGet(code) != null)
133050
+ return Epsg.get(code);
133051
+ const url = `https://spatialreference.org/ref/epsg/${code}/ogcwkt/`;
133052
+ const res = await this._fetch(url);
133053
+ if (!res.ok)
133054
+ throw new Error("Failed to load projection information for:" + code);
133055
+ let epsg = Epsg.tryGet(code);
133056
+ if (epsg == null)
133057
+ epsg = new Epsg(code);
133058
+ const text = await res.text();
133059
+ Projection.define(epsg, text);
133060
+ return epsg;
133061
+ }
133062
+ };
133063
+ Object.defineProperty(ProjectionLoader, "_fetch", {
133064
+ enumerable: true,
133065
+ configurable: true,
133066
+ writable: true,
133067
+ value: fetch
133068
+ });
133069
+
133070
+ // ../geo/build/proj/tile.set.name.js
133071
+ var TileSetName;
133072
+ (function(TileSetName2) {
133073
+ TileSetName2["aerial"] = "aerial";
133074
+ })(TileSetName || (TileSetName = {}));
133075
+
133076
+ // ../geo/build/quad.key.js
133077
+ var CHAR_0 = "0".charCodeAt(0);
133078
+ var CHAR_1 = "1".charCodeAt(0);
133079
+ var CHAR_2 = "2".charCodeAt(0);
133080
+ var CHAR_3 = "3".charCodeAt(0);
133081
+
133082
+ // ../geo/build/tms/citm2000.js
133083
+ var Citm2000Tmst = {
133084
+ type: "TileMatrixSetType",
133085
+ title: "Debug tile matrix for EPSG:3793",
133086
+ abstract: "",
133087
+ identifier: "CITM2000Quad",
133088
+ supportedCRS: "https://www.opengis.net/def/crs/EPSG/0/3793",
133089
+ boundingBox: {
133090
+ type: "BoundingBoxType",
133091
+ crs: "https://www.opengis.net/def/crs/EPSG/0/3793",
133092
+ lowerCorner: [5051234111622438e-9, 3.4301543757978342e6],
133093
+ upperCorner: [5207777145550478e-9, 3.5866974097258747e6]
133094
+ },
133095
+ tileMatrix: [
132896
133096
  {
132897
133097
  type: "TileMatrixType",
132898
- identifier: "8",
133098
+ identifier: "0",
132899
133099
  scaleDenominator: 218391509386217e-8,
132900
- topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
133100
+ topLeftCorner: [5207777145550478e-9, 3.4301543757978342e6],
132901
133101
  tileWidth: 256,
132902
133102
  tileHeight: 256,
132903
- matrixWidth: 256,
132904
- matrixHeight: 256
133103
+ matrixWidth: 1,
133104
+ matrixHeight: 1
132905
133105
  },
132906
133106
  {
132907
133107
  type: "TileMatrixType",
132908
- identifier: "9",
133108
+ identifier: "1",
132909
133109
  scaleDenominator: 109195754693108e-8,
132910
- topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
133110
+ topLeftCorner: [5207777145550478e-9, 3.4301543757978342e6],
132911
133111
  tileWidth: 256,
132912
133112
  tileHeight: 256,
132913
- matrixWidth: 512,
132914
- matrixHeight: 512
133113
+ matrixWidth: 2,
133114
+ matrixHeight: 2
132915
133115
  },
132916
133116
  {
132917
133117
  type: "TileMatrixType",
132918
- identifier: "10",
133118
+ identifier: "2",
132919
133119
  scaleDenominator: 545978.773465544,
132920
- topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
133120
+ topLeftCorner: [5207777145550478e-9, 3.4301543757978342e6],
132921
133121
  tileWidth: 256,
132922
133122
  tileHeight: 256,
132923
- matrixWidth: 1024,
132924
- matrixHeight: 1024
133123
+ matrixWidth: 4,
133124
+ matrixHeight: 4
132925
133125
  },
132926
133126
  {
132927
133127
  type: "TileMatrixType",
132928
- identifier: "11",
133128
+ identifier: "3",
132929
133129
  scaleDenominator: 272989.386732772,
132930
- topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
133130
+ topLeftCorner: [5207777145550478e-9, 3.4301543757978342e6],
132931
133131
  tileWidth: 256,
132932
133132
  tileHeight: 256,
132933
- matrixWidth: 2048,
132934
- matrixHeight: 2048
133133
+ matrixWidth: 8,
133134
+ matrixHeight: 8
132935
133135
  },
132936
133136
  {
132937
133137
  type: "TileMatrixType",
132938
- identifier: "12",
133138
+ identifier: "4",
132939
133139
  scaleDenominator: 136494.693366386,
132940
- topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
133140
+ topLeftCorner: [5207777145550478e-9, 3.4301543757978342e6],
132941
133141
  tileWidth: 256,
132942
133142
  tileHeight: 256,
132943
- matrixWidth: 4096,
132944
- matrixHeight: 4096
133143
+ matrixWidth: 16,
133144
+ matrixHeight: 16
132945
133145
  },
132946
133146
  {
132947
133147
  type: "TileMatrixType",
132948
- identifier: "13",
133148
+ identifier: "5",
132949
133149
  scaleDenominator: 68247.346683193,
132950
- topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
133150
+ topLeftCorner: [5207777145550478e-9, 3.4301543757978342e6],
132951
133151
  tileWidth: 256,
132952
133152
  tileHeight: 256,
132953
- matrixWidth: 8192,
132954
- matrixHeight: 8192
133153
+ matrixWidth: 32,
133154
+ matrixHeight: 32
132955
133155
  },
132956
133156
  {
132957
133157
  type: "TileMatrixType",
132958
- identifier: "14",
133158
+ identifier: "6",
132959
133159
  scaleDenominator: 34123.6733415964,
132960
- topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
133160
+ topLeftCorner: [5207777145550478e-9, 3.4301543757978342e6],
132961
133161
  tileWidth: 256,
132962
133162
  tileHeight: 256,
132963
- matrixWidth: 16384,
132964
- matrixHeight: 16384
133163
+ matrixWidth: 64,
133164
+ matrixHeight: 64
132965
133165
  },
132966
133166
  {
132967
133167
  type: "TileMatrixType",
132968
- identifier: "15",
133168
+ identifier: "7",
132969
133169
  scaleDenominator: 17061.8366707982,
132970
- topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
133170
+ topLeftCorner: [5207777145550478e-9, 3.4301543757978342e6],
132971
133171
  tileWidth: 256,
132972
133172
  tileHeight: 256,
132973
- matrixWidth: 32768,
132974
- matrixHeight: 32768
133173
+ matrixWidth: 128,
133174
+ matrixHeight: 128
132975
133175
  },
132976
133176
  {
132977
133177
  type: "TileMatrixType",
132978
- identifier: "16",
133178
+ identifier: "8",
132979
133179
  scaleDenominator: 8530.91833539913,
132980
- topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
133180
+ topLeftCorner: [5207777145550478e-9, 3.4301543757978342e6],
132981
133181
  tileWidth: 256,
132982
133182
  tileHeight: 256,
132983
- matrixWidth: 65536,
132984
- matrixHeight: 65536
133183
+ matrixWidth: 256,
133184
+ matrixHeight: 256
132985
133185
  },
132986
133186
  {
132987
133187
  type: "TileMatrixType",
132988
- identifier: "17",
133188
+ identifier: "9",
132989
133189
  scaleDenominator: 4265.45916769956,
132990
- topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
133190
+ topLeftCorner: [5207777145550478e-9, 3.4301543757978342e6],
132991
133191
  tileWidth: 256,
132992
133192
  tileHeight: 256,
132993
- matrixWidth: 131072,
132994
- matrixHeight: 131072
133193
+ matrixWidth: 512,
133194
+ matrixHeight: 512
132995
133195
  },
132996
133196
  {
132997
133197
  type: "TileMatrixType",
132998
- identifier: "18",
133198
+ identifier: "10",
132999
133199
  scaleDenominator: 2132.72958384978,
133000
- topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
133200
+ topLeftCorner: [5207777145550478e-9, 3.4301543757978342e6],
133001
133201
  tileWidth: 256,
133002
133202
  tileHeight: 256,
133003
- matrixWidth: 262144,
133004
- matrixHeight: 262144
133203
+ matrixWidth: 1024,
133204
+ matrixHeight: 1024
133005
133205
  },
133006
133206
  {
133007
133207
  type: "TileMatrixType",
133008
- identifier: "19",
133208
+ identifier: "11",
133009
133209
  scaleDenominator: 1066.36479192489,
133010
- topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
133210
+ topLeftCorner: [5207777145550478e-9, 3.4301543757978342e6],
133011
133211
  tileWidth: 256,
133012
133212
  tileHeight: 256,
133013
- matrixWidth: 524288,
133014
- matrixHeight: 524288
133213
+ matrixWidth: 2048,
133214
+ matrixHeight: 2048
133015
133215
  },
133016
133216
  {
133017
133217
  type: "TileMatrixType",
133018
- identifier: "20",
133218
+ identifier: "12",
133019
133219
  scaleDenominator: 533.182395962445,
133020
- topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
133220
+ topLeftCorner: [5207777145550478e-9, 3.4301543757978342e6],
133021
133221
  tileWidth: 256,
133022
133222
  tileHeight: 256,
133023
- matrixWidth: 1048576,
133024
- matrixHeight: 1048576
133223
+ matrixWidth: 4096,
133224
+ matrixHeight: 4096
133025
133225
  },
133026
133226
  {
133027
133227
  type: "TileMatrixType",
133028
- identifier: "21",
133228
+ identifier: "13",
133029
133229
  scaleDenominator: 266.591197981222,
133030
- topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
133230
+ topLeftCorner: [5207777145550478e-9, 3.4301543757978342e6],
133031
133231
  tileWidth: 256,
133032
133232
  tileHeight: 256,
133033
- matrixWidth: 2097152,
133034
- matrixHeight: 2097152
133233
+ matrixWidth: 8192,
133234
+ matrixHeight: 8192
133035
133235
  },
133036
133236
  {
133037
133237
  type: "TileMatrixType",
133038
- identifier: "22",
133238
+ identifier: "14",
133039
133239
  scaleDenominator: 133.295598990611,
133040
- topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
133240
+ topLeftCorner: [5207777145550478e-9, 3.4301543757978342e6],
133041
133241
  tileWidth: 256,
133042
133242
  tileHeight: 256,
133043
- matrixWidth: 4194304,
133044
- matrixHeight: 4194304
133243
+ matrixWidth: 16384,
133244
+ matrixHeight: 16384
133045
133245
  },
133046
133246
  {
133047
133247
  type: "TileMatrixType",
133048
- identifier: "23",
133248
+ identifier: "15",
133049
133249
  scaleDenominator: 66.6477994953056,
133050
- topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
133250
+ topLeftCorner: [5207777145550478e-9, 3.4301543757978342e6],
133051
133251
  tileWidth: 256,
133052
133252
  tileHeight: 256,
133053
- matrixWidth: 8388608,
133054
- matrixHeight: 8388608
133253
+ matrixWidth: 32768,
133254
+ matrixHeight: 32768
133055
133255
  },
133056
133256
  {
133057
133257
  type: "TileMatrixType",
133058
- identifier: "24",
133258
+ identifier: "16",
133059
133259
  scaleDenominator: 33.3238997476528,
133060
- topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
133260
+ topLeftCorner: [5207777145550478e-9, 3.4301543757978342e6],
133061
133261
  tileWidth: 256,
133062
133262
  tileHeight: 256,
133063
- matrixWidth: 16777216,
133064
- matrixHeight: 16777216
133263
+ matrixWidth: 65536,
133264
+ matrixHeight: 65536
133065
133265
  }
133066
- ]
133266
+ ],
133267
+ $generated: {
133268
+ package: "@basemaps/cli",
133269
+ version: "v7.14.0-4-g2766010d",
133270
+ hash: "2766010d8d2bb8b673f6bcbef2fe2636f2e0f4ea",
133271
+ createdAt: "2025-02-10T20:34:46.643Z"
133272
+ },
133273
+ $options: {
133274
+ sourceTileMatrix: "WebMercatorQuad",
133275
+ zoomOffset: 8
133276
+ }
133067
133277
  };
133068
- var GoogleTms = new TileMatrixSet(GoogleTmst);
133278
+ var Citm2000Tms = new TileMatrixSet(Citm2000Tmst);
133069
133279
 
133070
133280
  // ../geo/build/tms/nztm2000.js
133071
133281
  var Nztm20002 = __toESM(require_src3(), 1);
@@ -136369,9 +136579,9 @@ var Router = class {
136369
136579
  };
136370
136580
 
136371
136581
  // ../../node_modules/@linzjs/lambda/build/src/function.js
136372
- var version2 = "v8.1.0-6-g69195be6";
136373
- var hash = "69195be692efa914369fa854d3bae16355dc0dc8";
136374
- var buildId = "15601557572-1";
136582
+ var version2 = "v8.4.0-5-g4f6f3929";
136583
+ var hash = "4f6f3929b9117c3e112f7d156ab185cb98821796";
136584
+ var buildId = "16305730095-1";
136375
136585
  var versionInfo = { version: version2, hash, buildId };
136376
136586
  async function runFunction(req, fn) {
136377
136587
  if (!req.timer.timers.has("lambda"))
@@ -137271,6 +137481,40 @@ async function configImageryGet(req) {
137271
137481
  return sendJson(req, imagery);
137272
137482
  }
137273
137483
 
137484
+ // ../lambda-tiler/build/routes/export.tileset.js
137485
+ async function exportTileSetGet(req) {
137486
+ Validate.apiKey(req);
137487
+ req.set("tileSet", req.params.tileSet);
137488
+ const tileMatrix = Validate.getTileMatrixSet(req.params.tileMatrix);
137489
+ if (tileMatrix == null)
137490
+ throw new LambdaHttpResponse(404, "Tile Matrix not found");
137491
+ req.set("tileMatrix", tileMatrix.identifier);
137492
+ req.set("projection", tileMatrix.projection.code);
137493
+ const config = await ConfigLoader.load(req);
137494
+ req.timer.start("tileset:load");
137495
+ const tileSet = await config.TileSet.get(config.TileSet.id(req.params.tileSet));
137496
+ req.timer.end("tileset:load");
137497
+ if (tileSet == null)
137498
+ return NotFound();
137499
+ if (tileSet.layers.length > 1) {
137500
+ return new LambdaHttpResponse(500, `Too many layers in vector tileset ${tileSet.layers.length}`);
137501
+ }
137502
+ const epsgCode = tileMatrix.projection.code;
137503
+ const layerId = tileSet.layers[0][epsgCode];
137504
+ if (layerId == null)
137505
+ return new LambdaHttpResponse(404, `No data found for tile matrix: ${tileMatrix.identifier}`);
137506
+ if (!layerId.startsWith("s3://"))
137507
+ return new LambdaHttpResponse(400, `Unable to export tilesets not inside of S3`);
137508
+ if (!layerId.endsWith(".tar.co"))
137509
+ return new LambdaHttpResponse(400, `Unable to export tileset`);
137510
+ const target = new URL(layerId.replace(".tar.co", ".mbtiles"));
137511
+ const exists = await fsa.exists(target);
137512
+ if (!exists)
137513
+ return NotFound();
137514
+ const presignedUrl = await signS3Get(target);
137515
+ return new LambdaHttpResponse(302, "Moved", { location: presignedUrl });
137516
+ }
137517
+
137274
137518
  // ../lambda-tiler/build/util/source.cache.js
137275
137519
  var SourceCache2 = class {
137276
137520
  constructor(maxSize) {
@@ -140814,18 +141058,18 @@ async function versionGet(req) {
140814
141058
  * last git version tag
140815
141059
  * @example "v6.42.1"
140816
141060
  */
140817
- version: "v8.1.0-6-g69195be6",
141061
+ version: "v8.4.0-5-g4f6f3929",
140818
141062
  /**
140819
141063
  * Full git commit hash
140820
141064
  * @example "e4231b1ee62c276c8657c56677ced02681dfe5d6"
140821
141065
  */
140822
- hash: "69195be692efa914369fa854d3bae16355dc0dc8",
141066
+ hash: "4f6f3929b9117c3e112f7d156ab185cb98821796",
140823
141067
  /**
140824
141068
  *
140825
141069
  * The exact build that this release was run from
140826
141070
  * @example "1658821493-3"
140827
141071
  */
140828
- buildId: "15601557572-1",
141072
+ buildId: "16305730095-1",
140829
141073
  /**
140830
141074
  * Configuration id that was used to power this config
140831
141075
  * @example { "id": "cb_01JTQ7ZK49F8EY4N5DRJ3XFT73", hash: "HcByZ8WS2zpaTxFJp6wSKg2eUpwahLqAGEQdcDxKxqp6" }
@@ -140895,6 +141139,7 @@ handler.router.get("/v1/attribution/:tileSet/:tileMatrix/summary.json", tileAttr
140895
141139
  handler.router.get("/v1/tiles/:tileSet/:tileMatrix/WMTSCapabilities.xml", wmtsCapabilitiesGet);
140896
141140
  handler.router.get("/v1/tiles/:tileSet/WMTSCapabilities.xml", wmtsCapabilitiesGet);
140897
141141
  handler.router.get("/v1/tiles/WMTSCapabilities.xml", wmtsCapabilitiesGet);
141142
+ handler.router.get("/v1/export/:tileSet/:tileMatrix.:extension", exportTileSetGet);
140898
141143
 
140899
141144
  // src/server.ts
140900
141145
  var import_formbody = __toESM(require_formbody(), 1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@basemaps/server",
3
- "version": "8.2.0",
3
+ "version": "8.5.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/linz/basemaps.git",
@@ -52,17 +52,17 @@
52
52
  "sharp": "^0.33.0"
53
53
  },
54
54
  "devDependencies": {
55
- "@basemaps/config": "^8.1.0",
56
- "@basemaps/config-loader": "^8.2.0",
57
- "@basemaps/geo": "^8.0.0",
58
- "@basemaps/lambda-tiler": "^8.2.0",
55
+ "@basemaps/config": "^8.3.0",
56
+ "@basemaps/config-loader": "^8.5.0",
57
+ "@basemaps/geo": "^8.3.0",
58
+ "@basemaps/lambda-tiler": "^8.5.0",
59
59
  "@basemaps/landing": "^6.39.0",
60
- "@basemaps/shared": "^8.2.0",
60
+ "@basemaps/shared": "^8.5.0",
61
61
  "@fastify/formbody": "^7.0.1",
62
62
  "@fastify/static": "^6.5.0",
63
63
  "cmd-ts": "^0.12.1",
64
64
  "fastify": "^4.9.2",
65
65
  "pretty-json-log": "^1.0.0"
66
66
  },
67
- "gitHead": "69195be692efa914369fa854d3bae16355dc0dc8"
67
+ "gitHead": "4f6f3929b9117c3e112f7d156ab185cb98821796"
68
68
  }