@loaders.gl/draco 4.2.0-alpha.6 → 4.2.0-beta.2

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.
@@ -4786,9 +4786,9 @@ var require_decoder = __commonJS({
4786
4786
  return a < 0 ? 0 : a > 255 ? 255 : a;
4787
4787
  }
4788
4788
  constructor.prototype = {
4789
- load: function load(path3) {
4789
+ load: function load(path2) {
4790
4790
  var xhr = new XMLHttpRequest();
4791
- xhr.open("GET", path3, true);
4791
+ xhr.open("GET", path2, true);
4792
4792
  xhr.responseType = "arraybuffer";
4793
4793
  xhr.onload = function() {
4794
4794
  var data = new Uint8Array(xhr.response || xhr.mozResponseArrayBuffer);
@@ -21420,10 +21420,10 @@ var require_store = __commonJS({
21420
21420
  }
21421
21421
  exports.Store = Store;
21422
21422
  Store.prototype.synchronous = false;
21423
- Store.prototype.findCookie = function(domain, path3, key, cb) {
21423
+ Store.prototype.findCookie = function(domain, path2, key, cb) {
21424
21424
  throw new Error("findCookie is not implemented");
21425
21425
  };
21426
- Store.prototype.findCookies = function(domain, path3, cb) {
21426
+ Store.prototype.findCookies = function(domain, path2, cb) {
21427
21427
  throw new Error("findCookies is not implemented");
21428
21428
  };
21429
21429
  Store.prototype.putCookie = function(cookie, cb) {
@@ -21432,10 +21432,10 @@ var require_store = __commonJS({
21432
21432
  Store.prototype.updateCookie = function(oldCookie, newCookie, cb) {
21433
21433
  throw new Error("updateCookie is not implemented");
21434
21434
  };
21435
- Store.prototype.removeCookie = function(domain, path3, key, cb) {
21435
+ Store.prototype.removeCookie = function(domain, path2, key, cb) {
21436
21436
  throw new Error("removeCookie is not implemented");
21437
21437
  };
21438
- Store.prototype.removeCookies = function(domain, path3, cb) {
21438
+ Store.prototype.removeCookies = function(domain, path2, cb) {
21439
21439
  throw new Error("removeCookies is not implemented");
21440
21440
  };
21441
21441
  Store.prototype.removeAllCookies = function(cb) {
@@ -21519,22 +21519,22 @@ var require_memstore = __commonJS({
21519
21519
  if (util.inspect.custom) {
21520
21520
  MemoryCookieStore.prototype[util.inspect.custom] = MemoryCookieStore.prototype.inspect;
21521
21521
  }
21522
- MemoryCookieStore.prototype.findCookie = function(domain, path3, key, cb) {
21522
+ MemoryCookieStore.prototype.findCookie = function(domain, path2, key, cb) {
21523
21523
  if (!this.idx[domain]) {
21524
21524
  return cb(null, void 0);
21525
21525
  }
21526
- if (!this.idx[domain][path3]) {
21526
+ if (!this.idx[domain][path2]) {
21527
21527
  return cb(null, void 0);
21528
21528
  }
21529
- return cb(null, this.idx[domain][path3][key] || null);
21529
+ return cb(null, this.idx[domain][path2][key] || null);
21530
21530
  };
21531
- MemoryCookieStore.prototype.findCookies = function(domain, path3, cb) {
21531
+ MemoryCookieStore.prototype.findCookies = function(domain, path2, cb) {
21532
21532
  var results = [];
21533
21533
  if (!domain) {
21534
21534
  return cb(null, []);
21535
21535
  }
21536
21536
  var pathMatcher;
21537
- if (!path3) {
21537
+ if (!path2) {
21538
21538
  pathMatcher = function matchAll(domainIndex) {
21539
21539
  for (var curPath in domainIndex) {
21540
21540
  var pathIndex = domainIndex[curPath];
@@ -21546,7 +21546,7 @@ var require_memstore = __commonJS({
21546
21546
  } else {
21547
21547
  pathMatcher = function matchRFC(domainIndex) {
21548
21548
  Object.keys(domainIndex).forEach(function(cookiePath) {
21549
- if (pathMatch(path3, cookiePath)) {
21549
+ if (pathMatch(path2, cookiePath)) {
21550
21550
  var pathIndex = domainIndex[cookiePath];
21551
21551
  for (var key in pathIndex) {
21552
21552
  results.push(pathIndex[key]);
@@ -21579,16 +21579,16 @@ var require_memstore = __commonJS({
21579
21579
  MemoryCookieStore.prototype.updateCookie = function(oldCookie, newCookie, cb) {
21580
21580
  this.putCookie(newCookie, cb);
21581
21581
  };
21582
- MemoryCookieStore.prototype.removeCookie = function(domain, path3, key, cb) {
21583
- if (this.idx[domain] && this.idx[domain][path3] && this.idx[domain][path3][key]) {
21584
- delete this.idx[domain][path3][key];
21582
+ MemoryCookieStore.prototype.removeCookie = function(domain, path2, key, cb) {
21583
+ if (this.idx[domain] && this.idx[domain][path2] && this.idx[domain][path2][key]) {
21584
+ delete this.idx[domain][path2][key];
21585
21585
  }
21586
21586
  cb(null);
21587
21587
  };
21588
- MemoryCookieStore.prototype.removeCookies = function(domain, path3, cb) {
21588
+ MemoryCookieStore.prototype.removeCookies = function(domain, path2, cb) {
21589
21589
  if (this.idx[domain]) {
21590
- if (path3) {
21591
- delete this.idx[domain][path3];
21590
+ if (path2) {
21591
+ delete this.idx[domain][path2];
21592
21592
  } else {
21593
21593
  delete this.idx[domain];
21594
21594
  }
@@ -21605,11 +21605,11 @@ var require_memstore = __commonJS({
21605
21605
  var domains = Object.keys(idx);
21606
21606
  domains.forEach(function(domain) {
21607
21607
  var paths = Object.keys(idx[domain]);
21608
- paths.forEach(function(path3) {
21609
- var keys = Object.keys(idx[domain][path3]);
21608
+ paths.forEach(function(path2) {
21609
+ var keys = Object.keys(idx[domain][path2]);
21610
21610
  keys.forEach(function(key) {
21611
21611
  if (key !== null) {
21612
- cookies.push(idx[domain][path3][key]);
21612
+ cookies.push(idx[domain][path2][key]);
21613
21613
  }
21614
21614
  });
21615
21615
  });
@@ -21836,18 +21836,18 @@ var require_cookie = __commonJS({
21836
21836
  }
21837
21837
  return true;
21838
21838
  }
21839
- function defaultPath(path3) {
21840
- if (!path3 || path3.substr(0, 1) !== "/") {
21839
+ function defaultPath(path2) {
21840
+ if (!path2 || path2.substr(0, 1) !== "/") {
21841
21841
  return "/";
21842
21842
  }
21843
- if (path3 === "/") {
21844
- return path3;
21843
+ if (path2 === "/") {
21844
+ return path2;
21845
21845
  }
21846
- var rightSlash = path3.lastIndexOf("/");
21846
+ var rightSlash = path2.lastIndexOf("/");
21847
21847
  if (rightSlash === 0) {
21848
21848
  return "/";
21849
21849
  }
21850
- return path3.slice(0, rightSlash);
21850
+ return path2.slice(0, rightSlash);
21851
21851
  }
21852
21852
  function trimTerminator(str) {
21853
21853
  for (var t = 0; t < TERMINATORS.length; t++) {
@@ -22023,21 +22023,21 @@ var require_cookie = __commonJS({
22023
22023
  cmp = a.creationIndex - b.creationIndex;
22024
22024
  return cmp;
22025
22025
  }
22026
- function permutePath(path3) {
22027
- if (path3 === "/") {
22026
+ function permutePath(path2) {
22027
+ if (path2 === "/") {
22028
22028
  return ["/"];
22029
22029
  }
22030
- if (path3.lastIndexOf("/") === path3.length - 1) {
22031
- path3 = path3.substr(0, path3.length - 1);
22030
+ if (path2.lastIndexOf("/") === path2.length - 1) {
22031
+ path2 = path2.substr(0, path2.length - 1);
22032
22032
  }
22033
- var permutations = [path3];
22034
- while (path3.length > 1) {
22035
- var lindex = path3.lastIndexOf("/");
22033
+ var permutations = [path2];
22034
+ while (path2.length > 1) {
22035
+ var lindex = path2.lastIndexOf("/");
22036
22036
  if (lindex === 0) {
22037
22037
  break;
22038
22038
  }
22039
- path3 = path3.substr(0, lindex);
22040
- permutations.push(path3);
22039
+ path2 = path2.substr(0, lindex);
22040
+ permutations.push(path2);
22041
22041
  }
22042
22042
  permutations.push("/");
22043
22043
  return permutations;
@@ -22368,7 +22368,7 @@ var require_cookie = __commonJS({
22368
22368
  options = {};
22369
22369
  }
22370
22370
  var host = canonicalDomain(context.hostname);
22371
- var path3 = context.pathname || "/";
22371
+ var path2 = context.pathname || "/";
22372
22372
  var secure = options.secure;
22373
22373
  if (secure == null && context.protocol && (context.protocol == "https:" || context.protocol == "wss:")) {
22374
22374
  secure = true;
@@ -22391,7 +22391,7 @@ var require_cookie = __commonJS({
22391
22391
  return false;
22392
22392
  }
22393
22393
  }
22394
- if (!allPaths && !pathMatch(path3, c.path)) {
22394
+ if (!allPaths && !pathMatch(path2, c.path)) {
22395
22395
  return false;
22396
22396
  }
22397
22397
  if (c.secure && !secure) {
@@ -22407,7 +22407,7 @@ var require_cookie = __commonJS({
22407
22407
  }
22408
22408
  return true;
22409
22409
  }
22410
- store.findCookies(host, allPaths ? null : path3, function(err, cookies) {
22410
+ store.findCookies(host, allPaths ? null : path2, function(err, cookies) {
22411
22411
  if (err) {
22412
22412
  return cb(err);
22413
22413
  }
@@ -22891,14 +22891,14 @@ var require_aws_sign2 = __commonJS({
22891
22891
  }
22892
22892
  module2.exports.canonicalizeHeaders = canonicalizeHeaders;
22893
22893
  function canonicalizeResource(resource) {
22894
- var url = parse2(resource, true), path3 = url.pathname, buf = [];
22894
+ var url = parse2(resource, true), path2 = url.pathname, buf = [];
22895
22895
  Object.keys(url.query).forEach(function(key) {
22896
22896
  if (!~keys.indexOf(key))
22897
22897
  return;
22898
22898
  var val = "" == url.query[key] ? "" : "=" + encodeURIComponent(url.query[key]);
22899
22899
  buf.push(key + val);
22900
22900
  });
22901
- return path3 + (buf.length ? "?" + buf.sort().join("&") : "");
22901
+ return path2 + (buf.length ? "?" + buf.sort().join("&") : "");
22902
22902
  }
22903
22903
  module2.exports.canonicalizeResource = canonicalizeResource;
22904
22904
  }
@@ -23196,15 +23196,15 @@ var require_aws4 = __commonJS({
23196
23196
  if (pathStr !== "/") {
23197
23197
  if (normalizePath)
23198
23198
  pathStr = pathStr.replace(/\/{2,}/g, "/");
23199
- pathStr = pathStr.split("/").reduce(function(path3, piece) {
23199
+ pathStr = pathStr.split("/").reduce(function(path2, piece) {
23200
23200
  if (normalizePath && piece === "..") {
23201
- path3.pop();
23201
+ path2.pop();
23202
23202
  } else if (!normalizePath || piece !== ".") {
23203
23203
  if (decodePath)
23204
23204
  piece = decodeURIComponent(piece.replace(/\+/g, " "));
23205
- path3.push(encodeRfc3986Full(piece));
23205
+ path2.push(encodeRfc3986Full(piece));
23206
23206
  }
23207
- return path3;
23207
+ return path2;
23208
23208
  }, []).join("/");
23209
23209
  if (pathStr[0] !== "/")
23210
23210
  pathStr = "/" + pathStr;
@@ -23258,27 +23258,27 @@ var require_aws4 = __commonJS({
23258
23258
  };
23259
23259
  };
23260
23260
  RequestSigner.prototype.parsePath = function() {
23261
- var path3 = this.request.path || "/";
23262
- if (/[^0-9A-Za-z;,/?:@&=+$\-_.!~*'()#%]/.test(path3)) {
23263
- path3 = encodeURI(decodeURI(path3));
23261
+ var path2 = this.request.path || "/";
23262
+ if (/[^0-9A-Za-z;,/?:@&=+$\-_.!~*'()#%]/.test(path2)) {
23263
+ path2 = encodeURI(decodeURI(path2));
23264
23264
  }
23265
- var queryIx = path3.indexOf("?"), query = null;
23265
+ var queryIx = path2.indexOf("?"), query = null;
23266
23266
  if (queryIx >= 0) {
23267
- query = querystring.parse(path3.slice(queryIx + 1));
23268
- path3 = path3.slice(0, queryIx);
23267
+ query = querystring.parse(path2.slice(queryIx + 1));
23268
+ path2 = path2.slice(0, queryIx);
23269
23269
  }
23270
23270
  this.parsedPath = {
23271
- path: path3,
23271
+ path: path2,
23272
23272
  query
23273
23273
  };
23274
23274
  };
23275
23275
  RequestSigner.prototype.formatPath = function() {
23276
- var path3 = this.parsedPath.path, query = this.parsedPath.query;
23276
+ var path2 = this.parsedPath.path, query = this.parsedPath.query;
23277
23277
  if (!query)
23278
- return path3;
23278
+ return path2;
23279
23279
  if (query[""] != null)
23280
23280
  delete query[""];
23281
- return path3 + "?" + encodeRfc3986(querystring.stringify(query));
23281
+ return path2 + "?" + encodeRfc3986(querystring.stringify(query));
23282
23282
  };
23283
23283
  aws4.RequestSigner = RequestSigner;
23284
23284
  aws4.sign = function(request, credentials) {
@@ -36393,13 +36393,13 @@ var require_validate = __commonJS({
36393
36393
  return schema2.type || primitiveConstructors[schema2.name] == schema2 && schema2.name.toLowerCase();
36394
36394
  }
36395
36395
  var errors = [];
36396
- function checkProp(value, schema2, path3, i) {
36396
+ function checkProp(value, schema2, path2, i) {
36397
36397
  var l;
36398
- path3 += path3 ? typeof i == "number" ? "[" + i + "]" : typeof i == "undefined" ? "" : "." + i : i;
36398
+ path2 += path2 ? typeof i == "number" ? "[" + i + "]" : typeof i == "undefined" ? "" : "." + i : i;
36399
36399
  function addError(message) {
36400
- errors.push({ property: path3, message });
36400
+ errors.push({ property: path2, message });
36401
36401
  }
36402
- if ((typeof schema2 != "object" || schema2 instanceof Array) && (path3 || typeof schema2 != "function") && !(schema2 && getType(schema2))) {
36402
+ if ((typeof schema2 != "object" || schema2 instanceof Array) && (path2 || typeof schema2 != "function") && !(schema2 && getType(schema2))) {
36403
36403
  if (typeof schema2 == "function") {
36404
36404
  if (!(value instanceof schema2)) {
36405
36405
  addError("is not an instance of the class/constructor " + schema2.name);
@@ -36413,12 +36413,12 @@ var require_validate = __commonJS({
36413
36413
  addError("is a readonly field, it can not be changed");
36414
36414
  }
36415
36415
  if (schema2["extends"]) {
36416
- checkProp(value, schema2["extends"], path3, i);
36416
+ checkProp(value, schema2["extends"], path2, i);
36417
36417
  }
36418
36418
  function checkType(type, value2) {
36419
36419
  if (type) {
36420
36420
  if (typeof type == "string" && type != "any" && (type == "null" ? value2 !== null : typeof value2 != type) && !(value2 instanceof Array && type == "array") && !(value2 instanceof Date && type == "date") && !(type == "integer" && value2 % 1 === 0)) {
36421
- return [{ property: path3, message: value2 + " - " + typeof value2 + " value found, but a " + type + " is required" }];
36421
+ return [{ property: path2, message: value2 + " - " + typeof value2 + " value found, but a " + type + " is required" }];
36422
36422
  }
36423
36423
  if (type instanceof Array) {
36424
36424
  var unionErrors = [];
@@ -36433,7 +36433,7 @@ var require_validate = __commonJS({
36433
36433
  } else if (typeof type == "object") {
36434
36434
  var priorErrors = errors;
36435
36435
  errors = [];
36436
- checkProp(value2, type, path3);
36436
+ checkProp(value2, type, path2);
36437
36437
  var theseErrors = errors;
36438
36438
  errors = priorErrors;
36439
36439
  return theseErrors;
@@ -36460,7 +36460,7 @@ var require_validate = __commonJS({
36460
36460
  propDef = schema2.items[i];
36461
36461
  if (options.coerce)
36462
36462
  value[i] = options.coerce(value[i], propDef);
36463
- errors.concat(checkProp(value[i], propDef, path3, i));
36463
+ errors.concat(checkProp(value[i], propDef, path2, i));
36464
36464
  }
36465
36465
  }
36466
36466
  if (schema2.minItems && value.length < schema2.minItems) {
@@ -36470,7 +36470,7 @@ var require_validate = __commonJS({
36470
36470
  addError("There must be a maximum of " + schema2.maxItems + " in the array");
36471
36471
  }
36472
36472
  } else if (schema2.properties || schema2.additionalProperties) {
36473
- errors.concat(checkObj(value, schema2.properties, path3, schema2.additionalProperties));
36473
+ errors.concat(checkObj(value, schema2.properties, path2, schema2.additionalProperties));
36474
36474
  }
36475
36475
  if (schema2.pattern && typeof value == "string" && !value.match(schema2.pattern)) {
36476
36476
  addError("does not match the regex pattern " + schema2.pattern);
@@ -36508,10 +36508,10 @@ var require_validate = __commonJS({
36508
36508
  }
36509
36509
  return null;
36510
36510
  }
36511
- function checkObj(instance2, objTypeDef, path3, additionalProp) {
36511
+ function checkObj(instance2, objTypeDef, path2, additionalProp) {
36512
36512
  if (typeof objTypeDef == "object") {
36513
36513
  if (typeof instance2 != "object" || instance2 instanceof Array) {
36514
- errors.push({ property: path3, message: "an object is required" });
36514
+ errors.push({ property: path2, message: "an object is required" });
36515
36515
  }
36516
36516
  for (var i in objTypeDef) {
36517
36517
  if (objTypeDef.hasOwnProperty(i) && i != "__proto__" && i != "constructor") {
@@ -36525,7 +36525,7 @@ var require_validate = __commonJS({
36525
36525
  if (options.coerce && i in instance2) {
36526
36526
  value = instance2[i] = options.coerce(value, propDef);
36527
36527
  }
36528
- checkProp(value, propDef, path3, i);
36528
+ checkProp(value, propDef, path2, i);
36529
36529
  }
36530
36530
  }
36531
36531
  }
@@ -36535,22 +36535,22 @@ var require_validate = __commonJS({
36535
36535
  delete instance2[i];
36536
36536
  continue;
36537
36537
  } else {
36538
- errors.push({ property: path3, message: "The property " + i + " is not defined in the schema and the schema does not allow additional properties" });
36538
+ errors.push({ property: path2, message: "The property " + i + " is not defined in the schema and the schema does not allow additional properties" });
36539
36539
  }
36540
36540
  }
36541
36541
  var requires = objTypeDef && objTypeDef[i] && objTypeDef[i].requires;
36542
36542
  if (requires && !(requires in instance2)) {
36543
- errors.push({ property: path3, message: "the presence of the property " + i + " requires that " + requires + " also be present" });
36543
+ errors.push({ property: path2, message: "the presence of the property " + i + " requires that " + requires + " also be present" });
36544
36544
  }
36545
36545
  value = instance2[i];
36546
36546
  if (additionalProp && (!(objTypeDef && typeof objTypeDef == "object") || !(i in objTypeDef))) {
36547
36547
  if (options.coerce) {
36548
36548
  value = instance2[i] = options.coerce(value, additionalProp);
36549
36549
  }
36550
- checkProp(value, additionalProp, path3, i);
36550
+ checkProp(value, additionalProp, path2, i);
36551
36551
  }
36552
36552
  if (!_changing && value && value.$schema) {
36553
- errors = errors.concat(checkProp(value, value.$schema, path3, i));
36553
+ errors = errors.concat(checkProp(value, value.$schema, path2, i));
36554
36554
  }
36555
36555
  }
36556
36556
  return errors;
@@ -37157,11 +37157,11 @@ var require_signer = __commonJS({
37157
37157
  RequestSigner.prototype.writeDateHeader = function() {
37158
37158
  return this.writeHeader("date", jsprim.rfc1123(new Date()));
37159
37159
  };
37160
- RequestSigner.prototype.writeTarget = function(method, path3) {
37160
+ RequestSigner.prototype.writeTarget = function(method, path2) {
37161
37161
  assert3.string(method, "method");
37162
- assert3.string(path3, "path");
37162
+ assert3.string(path2, "path");
37163
37163
  method = method.toLowerCase();
37164
- this.writeHeader("(request-target)", method + " " + path3);
37164
+ this.writeHeader("(request-target)", method + " " + path2);
37165
37165
  };
37166
37166
  RequestSigner.prototype.sign = function(cb) {
37167
37167
  assert3.func(cb, "callback");
@@ -46046,11 +46046,11 @@ var require_mime_types = __commonJS({
46046
46046
  }
46047
46047
  return exts[0];
46048
46048
  }
46049
- function lookup(path3) {
46050
- if (!path3 || typeof path3 !== "string") {
46049
+ function lookup(path2) {
46050
+ if (!path2 || typeof path2 !== "string") {
46051
46051
  return false;
46052
46052
  }
46053
- var extension2 = extname("x." + path3).toLowerCase().substr(1);
46053
+ var extension2 = extname("x." + path2).toLowerCase().substr(1);
46054
46054
  if (!extension2) {
46055
46055
  return false;
46056
46056
  }
@@ -46764,11 +46764,11 @@ var require_form_data = __commonJS({
46764
46764
  "../../node_modules/form-data/lib/form_data.js"(exports, module2) {
46765
46765
  var CombinedStream = require_combined_stream();
46766
46766
  var util = require("util");
46767
- var path3 = require("path");
46767
+ var path2 = require("path");
46768
46768
  var http2 = require("http");
46769
46769
  var https2 = require("https");
46770
46770
  var parseUrl = require("url").parse;
46771
- var fs5 = require("fs");
46771
+ var fs4 = require("fs");
46772
46772
  var mime = require_mime_types();
46773
46773
  var asynckit = require_asynckit();
46774
46774
  var populate = require_populate();
@@ -46832,7 +46832,7 @@ var require_form_data = __commonJS({
46832
46832
  if (value.end != void 0 && value.end != Infinity && value.start != void 0) {
46833
46833
  callback(null, value.end + 1 - (value.start ? value.start : 0));
46834
46834
  } else {
46835
- fs5.stat(value.path, function(err, stat) {
46835
+ fs4.stat(value.path, function(err, stat) {
46836
46836
  var fileSize;
46837
46837
  if (err) {
46838
46838
  callback(err);
@@ -46890,11 +46890,11 @@ var require_form_data = __commonJS({
46890
46890
  FormData.prototype._getContentDisposition = function(value, options) {
46891
46891
  var filename, contentDisposition;
46892
46892
  if (typeof options.filepath === "string") {
46893
- filename = path3.normalize(options.filepath).replace(/\\/g, "/");
46893
+ filename = path2.normalize(options.filepath).replace(/\\/g, "/");
46894
46894
  } else if (options.filename || value.name || value.path) {
46895
- filename = path3.basename(options.filename || value.name || value.path);
46895
+ filename = path2.basename(options.filename || value.name || value.path);
46896
46896
  } else if (value.readable && value.hasOwnProperty("httpVersion")) {
46897
- filename = path3.basename(value.client._httpMessage.path);
46897
+ filename = path2.basename(value.client._httpMessage.path);
46898
46898
  }
46899
46899
  if (filename) {
46900
46900
  contentDisposition = 'filename="' + filename + '"';
@@ -48548,8 +48548,8 @@ var require_uri_all = __commonJS({
48548
48548
  wsComponents.secure = void 0;
48549
48549
  }
48550
48550
  if (wsComponents.resourceName) {
48551
- var _wsComponents$resourc = wsComponents.resourceName.split("?"), _wsComponents$resourc2 = slicedToArray(_wsComponents$resourc, 2), path3 = _wsComponents$resourc2[0], query = _wsComponents$resourc2[1];
48552
- wsComponents.path = path3 && path3 !== "/" ? path3 : void 0;
48551
+ var _wsComponents$resourc = wsComponents.resourceName.split("?"), _wsComponents$resourc2 = slicedToArray(_wsComponents$resourc, 2), path2 = _wsComponents$resourc2[0], query = _wsComponents$resourc2[1];
48552
+ wsComponents.path = path2 && path2 !== "/" ? path2 : void 0;
48553
48553
  wsComponents.query = query;
48554
48554
  wsComponents.resourceName = void 0;
48555
48555
  }
@@ -48951,12 +48951,12 @@ var require_util3 = __commonJS({
48951
48951
  return "'" + escapeQuotes(str) + "'";
48952
48952
  }
48953
48953
  function getPathExpr(currentPath, expr, jsonPointers, isNumber) {
48954
- var path3 = jsonPointers ? "'/' + " + expr + (isNumber ? "" : ".replace(/~/g, '~0').replace(/\\//g, '~1')") : isNumber ? "'[' + " + expr + " + ']'" : "'[\\'' + " + expr + " + '\\']'";
48955
- return joinPaths(currentPath, path3);
48954
+ var path2 = jsonPointers ? "'/' + " + expr + (isNumber ? "" : ".replace(/~/g, '~0').replace(/\\//g, '~1')") : isNumber ? "'[' + " + expr + " + ']'" : "'[\\'' + " + expr + " + '\\']'";
48955
+ return joinPaths(currentPath, path2);
48956
48956
  }
48957
48957
  function getPath(currentPath, prop, jsonPointers) {
48958
- var path3 = jsonPointers ? toQuotedString("/" + escapeJsonPointer(prop)) : toQuotedString(getProperty(prop));
48959
- return joinPaths(currentPath, path3);
48958
+ var path2 = jsonPointers ? toQuotedString("/" + escapeJsonPointer(prop)) : toQuotedString(getProperty(prop));
48959
+ return joinPaths(currentPath, path2);
48960
48960
  }
48961
48961
  var JSON_POINTER = /^\/(?:[^~]|~0|~1)*$/;
48962
48962
  var RELATIVE_JSON_POINTER = /^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;
@@ -55056,7 +55056,7 @@ var require_promise = __commonJS({
55056
55056
  var require_har2 = __commonJS({
55057
55057
  "../../node_modules/request/lib/har.js"(exports) {
55058
55058
  "use strict";
55059
- var fs5 = require("fs");
55059
+ var fs4 = require("fs");
55060
55060
  var qs = require("querystring");
55061
55061
  var validate = require_promise();
55062
55062
  var extend = require_extend();
@@ -55190,7 +55190,7 @@ var require_har2 = __commonJS({
55190
55190
  return;
55191
55191
  }
55192
55192
  if (param.fileName && !param.value) {
55193
- attachment.value = fs5.createReadStream(param.fileName);
55193
+ attachment.value = fs4.createReadStream(param.fileName);
55194
55194
  } else if (param.value) {
55195
55195
  attachment.value = param.value;
55196
55196
  }
@@ -55332,7 +55332,7 @@ var require_auth = __commonJS({
55332
55332
  return authHeader;
55333
55333
  }
55334
55334
  };
55335
- Auth.prototype.digest = function(method, path3, authHeader) {
55335
+ Auth.prototype.digest = function(method, path2, authHeader) {
55336
55336
  var self2 = this;
55337
55337
  var challenge = {};
55338
55338
  var re = /([a-z0-9_-]+)=(?:"([^"]+)"|([a-z0-9_-]+))/gi;
@@ -55355,13 +55355,13 @@ var require_auth = __commonJS({
55355
55355
  var nc = qop && "00000001";
55356
55356
  var cnonce = qop && uuid().replace(/-/g, "");
55357
55357
  var ha1 = ha1Compute(challenge.algorithm, self2.user, challenge.realm, self2.pass, challenge.nonce, cnonce);
55358
- var ha2 = md5(method + ":" + path3);
55358
+ var ha2 = md5(method + ":" + path2);
55359
55359
  var digestResponse = qop ? md5(ha1 + ":" + challenge.nonce + ":" + nc + ":" + cnonce + ":" + qop + ":" + ha2) : md5(ha1 + ":" + challenge.nonce + ":" + ha2);
55360
55360
  var authValues = {
55361
55361
  username: self2.user,
55362
55362
  realm: challenge.realm,
55363
55363
  nonce: challenge.nonce,
55364
- uri: path3,
55364
+ uri: path2,
55365
55365
  qop,
55366
55366
  response: digestResponse,
55367
55367
  nc,
@@ -57381,10 +57381,10 @@ var require_request2 = __commonJS({
57381
57381
  Request.prototype.enableUnixSocket = function() {
57382
57382
  var unixParts = this.uri.path.split(":");
57383
57383
  var host = unixParts[0];
57384
- var path3 = unixParts[1];
57384
+ var path2 = unixParts[1];
57385
57385
  this.socketPath = host;
57386
- this.uri.pathname = path3;
57387
- this.uri.path = path3;
57386
+ this.uri.pathname = path2;
57387
+ this.uri.path = path2;
57388
57388
  this.uri.host = host;
57389
57389
  this.uri.hostname = host;
57390
57390
  this.uri.isUnix = true;
@@ -57433,14 +57433,14 @@ var require_request2 = __commonJS({
57433
57433
  md5: self2.getHeader("content-md5") || "",
57434
57434
  amazonHeaders: aws2.canonicalizeHeaders(self2.headers)
57435
57435
  };
57436
- var path3 = self2.uri.path;
57437
- if (opts.bucket && path3) {
57438
- auth.resource = "/" + opts.bucket + path3;
57439
- } else if (opts.bucket && !path3) {
57436
+ var path2 = self2.uri.path;
57437
+ if (opts.bucket && path2) {
57438
+ auth.resource = "/" + opts.bucket + path2;
57439
+ } else if (opts.bucket && !path2) {
57440
57440
  auth.resource = "/" + opts.bucket;
57441
- } else if (!opts.bucket && path3) {
57442
- auth.resource = path3;
57443
- } else if (!opts.bucket && !path3) {
57441
+ } else if (!opts.bucket && path2) {
57442
+ auth.resource = path2;
57443
+ } else if (!opts.bucket && !path2) {
57444
57444
  auth.resource = "/";
57445
57445
  }
57446
57446
  auth.resource = aws2.canonicalizeResource(auth.resource);
@@ -57757,13 +57757,13 @@ var require_node_pixels = __commonJS({
57757
57757
  "../../node_modules/get-pixels/node-pixels.js"(exports, module2) {
57758
57758
  "use strict";
57759
57759
  var ndarray2 = require_ndarray();
57760
- var path3 = require("path");
57760
+ var path2 = require("path");
57761
57761
  var PNG = require_png2().PNG;
57762
57762
  var jpeg = require_jpeg_js();
57763
57763
  var pack = require_convert();
57764
57764
  var GifReader = require_omggif().GifReader;
57765
57765
  var Bitmap = require_node_bitmap();
57766
- var fs5 = require("fs");
57766
+ var fs4 = require("fs");
57767
57767
  var request = require_request3();
57768
57768
  var mime = require_mime_types();
57769
57769
  var parseDataURI = require_parse_data_uri();
@@ -57923,7 +57923,7 @@ var require_node_pixels = __commonJS({
57923
57923
  doParse(type, body, cb);
57924
57924
  });
57925
57925
  } else {
57926
- fs5.readFile(url, function(err, data) {
57926
+ fs4.readFile(url, function(err, data) {
57927
57927
  if (err) {
57928
57928
  cb(err);
57929
57929
  return;
@@ -63711,7 +63711,7 @@ function getVersion() {
63711
63711
  );
63712
63712
  globalThis._loadersgl_.version = NPM_TAG;
63713
63713
  } else {
63714
- globalThis._loadersgl_.version = "4.2.0-alpha.5";
63714
+ globalThis._loadersgl_.version = "4.2.0-beta.1";
63715
63715
  }
63716
63716
  }
63717
63717
  return globalThis._loadersgl_.version;
@@ -63871,65 +63871,6 @@ function isKnownMessage(message) {
63871
63871
  return type === "message" && data && typeof data.source === "string" && data.source.startsWith("loaders.gl");
63872
63872
  }
63873
63873
 
63874
- // ../worker-utils/src/lib/node/require-utils.node.ts
63875
- var require_utils_node_exports = {};
63876
- __export(require_utils_node_exports, {
63877
- readFileAsArrayBuffer: () => readFileAsArrayBuffer,
63878
- readFileAsText: () => readFileAsText,
63879
- requireFromFile: () => requireFromFile,
63880
- requireFromString: () => requireFromString
63881
- });
63882
- var import_module = __toESM(require("module"), 1);
63883
- var path = __toESM(require("path"), 1);
63884
- var fs = __toESM(require("fs"), 1);
63885
- async function readFileAsArrayBuffer(filename) {
63886
- if (filename.startsWith("http")) {
63887
- const response = await fetch(filename);
63888
- return await response.arrayBuffer();
63889
- }
63890
- const buffer = fs.readFileSync(filename);
63891
- return buffer.buffer;
63892
- }
63893
- async function readFileAsText(filename) {
63894
- if (filename.startsWith("http")) {
63895
- const response = await fetch(filename);
63896
- return await response.text();
63897
- }
63898
- const text = fs.readFileSync(filename, "utf8");
63899
- return text;
63900
- }
63901
- async function requireFromFile(filename) {
63902
- if (filename.startsWith("http")) {
63903
- const response = await fetch(filename);
63904
- const code2 = await response.text();
63905
- return requireFromString(code2);
63906
- }
63907
- if (!filename.startsWith("/")) {
63908
- filename = `${process.cwd()}/${filename}`;
63909
- }
63910
- const code = await fs.promises.readFile(filename, "utf8");
63911
- return requireFromString(code);
63912
- }
63913
- function requireFromString(code, filename = "", options) {
63914
- if (typeof filename === "object") {
63915
- options = filename;
63916
- filename = "";
63917
- }
63918
- if (typeof code !== "string") {
63919
- throw new Error(`code must be a string, not ${typeof code}`);
63920
- }
63921
- const paths = import_module.default._nodeModulePaths(path.dirname(filename));
63922
- const parent = typeof module !== "undefined" && (module == null ? void 0 : module.parent);
63923
- const newModule = new import_module.default(filename, parent);
63924
- newModule.filename = filename;
63925
- newModule.paths = [].concat((options == null ? void 0 : options.prependPaths) || []).concat(paths).concat((options == null ? void 0 : options.appendPaths) || []);
63926
- newModule._compile(code, filename);
63927
- if (parent && parent.children) {
63928
- parent.children.splice(parent.children.indexOf(newModule), 1);
63929
- }
63930
- return newModule.exports;
63931
- }
63932
-
63933
63874
  // ../worker-utils/src/lib/library-utils/library-utils.ts
63934
63875
  var loadLibraryPromises = {};
63935
63876
  async function loadLibrary(libraryUrl, moduleName = null, options = {}, libraryName = null) {
@@ -63967,7 +63908,8 @@ async function loadLibraryFromFile(libraryUrl) {
63967
63908
  }
63968
63909
  if (!isBrowser2) {
63969
63910
  try {
63970
- return require_utils_node_exports && requireFromFile && await requireFromFile(libraryUrl);
63911
+ const { requireFromFile: requireFromFile2 } = globalThis.loaders || {};
63912
+ return await (requireFromFile2 == null ? void 0 : requireFromFile2(libraryUrl));
63971
63913
  } catch (error) {
63972
63914
  console.error(error);
63973
63915
  return null;
@@ -63981,7 +63923,8 @@ async function loadLibraryFromFile(libraryUrl) {
63981
63923
  }
63982
63924
  function loadLibraryFromString(scriptSource, id) {
63983
63925
  if (!isBrowser2) {
63984
- return requireFromString && requireFromString(scriptSource, id);
63926
+ const { requireFromString: requireFromString2 } = globalThis.loaders || {};
63927
+ return requireFromString2 == null ? void 0 : requireFromString2(scriptSource, id);
63985
63928
  }
63986
63929
  if (isWorker) {
63987
63930
  eval.call(globalThis, scriptSource);
@@ -63998,18 +63941,20 @@ function loadLibraryFromString(scriptSource, id) {
63998
63941
  return null;
63999
63942
  }
64000
63943
  async function loadAsArrayBuffer(url) {
64001
- if (isBrowser2 || !readFileAsArrayBuffer || url.startsWith("http")) {
63944
+ const { readFileAsArrayBuffer: readFileAsArrayBuffer2 } = globalThis.loaders || {};
63945
+ if (isBrowser2 || !readFileAsArrayBuffer2 || url.startsWith("http")) {
64002
63946
  const response = await fetch(url);
64003
63947
  return await response.arrayBuffer();
64004
63948
  }
64005
- return await readFileAsArrayBuffer(url);
63949
+ return await readFileAsArrayBuffer2(url);
64006
63950
  }
64007
63951
  async function loadAsText(url) {
64008
- if (isBrowser2 || !readFileAsText || url.startsWith("http")) {
63952
+ const { readFileAsText: readFileAsText2 } = globalThis.loaders || {};
63953
+ if (isBrowser2 || !readFileAsText2 || url.startsWith("http")) {
64009
63954
  const response = await fetch(url);
64010
63955
  return await response.text();
64011
63956
  }
64012
- return await readFileAsText(url);
63957
+ return await readFileAsText2(url);
64013
63958
  }
64014
63959
 
64015
63960
  // ../loader-utils/src/lib/worker-loader-utils/create-loader-worker.ts
@@ -64143,13 +64088,13 @@ var NodeFile = class {
64143
64088
  size;
64144
64089
  bigsize;
64145
64090
  url;
64146
- constructor(path3, flags, mode) {
64147
- path3 = resolvePath(path3);
64148
- this.handle = import_fs.default.openSync(path3, flags, mode);
64091
+ constructor(path2, flags, mode) {
64092
+ path2 = resolvePath(path2);
64093
+ this.handle = import_fs.default.openSync(path2, flags, mode);
64149
64094
  const stats = import_fs.default.fstatSync(this.handle, { bigint: true });
64150
64095
  this.size = Number(stats.size);
64151
64096
  this.bigsize = stats.size;
64152
- this.url = path3;
64097
+ this.url = path2;
64153
64098
  }
64154
64099
  async close() {
64155
64100
  return new Promise((resolve, reject) => {
@@ -64394,29 +64339,29 @@ var NodeFileSystem = class {
64394
64339
  // implements FileSystem
64395
64340
  constructor() {
64396
64341
  }
64397
- async readdir(dirname2 = ".", options) {
64398
- return await import_promises.default.readdir(dirname2, options);
64342
+ async readdir(dirname = ".", options) {
64343
+ return await import_promises.default.readdir(dirname, options);
64399
64344
  }
64400
- async stat(path3) {
64401
- const info = await import_promises.default.stat(path3, { bigint: true });
64345
+ async stat(path2) {
64346
+ const info = await import_promises.default.stat(path2, { bigint: true });
64402
64347
  return {
64403
64348
  size: Number(info.size),
64404
64349
  bigsize: info.size,
64405
64350
  isDirectory: info.isDirectory()
64406
64351
  };
64407
64352
  }
64408
- async unlink(path3) {
64409
- return await import_promises.default.unlink(path3);
64353
+ async unlink(path2) {
64354
+ return await import_promises.default.unlink(path2);
64410
64355
  }
64411
- async fetch(path3, options) {
64412
- return await fetchNode(path3, options);
64356
+ async fetch(path2, options) {
64357
+ return await fetchNode(path2, options);
64413
64358
  }
64414
64359
  // implements IRandomAccessFileSystem
64415
- async openReadableFile(path3, flags = "r") {
64416
- return new NodeFile(path3, flags);
64360
+ async openReadableFile(path2, flags = "r") {
64361
+ return new NodeFile(path2, flags);
64417
64362
  }
64418
- async openWritableFile(path3, flags = "w", mode) {
64419
- return new NodeFile(path3, flags, mode);
64363
+ async openWritableFile(path2, flags = "w", mode) {
64364
+ return new NodeFile(path2, flags, mode);
64420
64365
  }
64421
64366
  };
64422
64367
 
@@ -64887,10 +64832,10 @@ function installFilePolyfills() {
64887
64832
  var File_ = installFilePolyfills();
64888
64833
 
64889
64834
  // ../polyfills/src/load-library/require-utils.node.ts
64890
- var import_module2 = __toESM(require("module"), 1);
64835
+ var import_module = __toESM(require("module"), 1);
64891
64836
  var import_path = __toESM(require("path"), 1);
64892
64837
  var import_fs3 = __toESM(require("fs"), 1);
64893
- async function readFileAsArrayBuffer2(filename) {
64838
+ async function readFileAsArrayBuffer(filename) {
64894
64839
  if (filename.startsWith("http")) {
64895
64840
  const response = await fetch(filename);
64896
64841
  return await response.arrayBuffer();
@@ -64898,7 +64843,7 @@ async function readFileAsArrayBuffer2(filename) {
64898
64843
  const buffer = import_fs3.default.readFileSync(filename);
64899
64844
  return buffer.buffer;
64900
64845
  }
64901
- async function readFileAsText2(filename) {
64846
+ async function readFileAsText(filename) {
64902
64847
  if (filename.startsWith("http")) {
64903
64848
  const response = await fetch(filename);
64904
64849
  return await response.text();
@@ -64906,19 +64851,19 @@ async function readFileAsText2(filename) {
64906
64851
  const text = import_fs3.default.readFileSync(filename, "utf8");
64907
64852
  return text;
64908
64853
  }
64909
- async function requireFromFile2(filename) {
64854
+ async function requireFromFile(filename) {
64910
64855
  if (filename.startsWith("http")) {
64911
64856
  const response = await fetch(filename);
64912
64857
  const code2 = await response.text();
64913
- return requireFromString2(code2);
64858
+ return requireFromString(code2);
64914
64859
  }
64915
64860
  if (!filename.startsWith("/")) {
64916
64861
  filename = `${process.cwd()}/${filename}`;
64917
64862
  }
64918
64863
  const code = import_fs3.default.readFileSync(filename, "utf8");
64919
- return requireFromString2(code);
64864
+ return requireFromString(code);
64920
64865
  }
64921
- function requireFromString2(code, filename = "", options) {
64866
+ function requireFromString(code, filename = "", options) {
64922
64867
  if (typeof filename === "object") {
64923
64868
  options = filename;
64924
64869
  filename = "";
@@ -64927,9 +64872,9 @@ function requireFromString2(code, filename = "", options) {
64927
64872
  if (typeof code !== "string") {
64928
64873
  throw new Error(`code must be a string, not ${typeof code}`);
64929
64874
  }
64930
- const paths = import_module2.default._nodeModulePaths(import_path.default.dirname(filename));
64875
+ const paths = import_module.default._nodeModulePaths(import_path.default.dirname(filename));
64931
64876
  const parent = typeof module !== "undefined" && (module == null ? void 0 : module.parent);
64932
- const newModule = new import_module2.default(filename, parent);
64877
+ const newModule = new import_module.default(filename, parent);
64933
64878
  newModule.filename = filename;
64934
64879
  newModule.paths = [].concat((options == null ? void 0 : options.prependPaths) || []).concat(paths).concat((options == null ? void 0 : options.appendPaths) || []);
64935
64880
  newModule._compile(code, filename);
@@ -65284,10 +65229,10 @@ globalThis.loaders.parseImageNode = parseImageNode;
65284
65229
  globalThis.loaders.imageFormatsNode = NODE_FORMAT_SUPPORT;
65285
65230
  globalThis._parseImageNode = parseImageNode;
65286
65231
  globalThis._imageFormatsNode = NODE_FORMAT_SUPPORT;
65287
- globalThis.loaders.readFileAsArrayBuffer = readFileAsArrayBuffer2;
65288
- globalThis.loaders.readFileAsText = readFileAsText2;
65289
- globalThis.loaders.requireFromFile = requireFromFile2;
65290
- globalThis.loaders.requireFromString = requireFromString2;
65232
+ globalThis.loaders.readFileAsArrayBuffer = readFileAsArrayBuffer;
65233
+ globalThis.loaders.readFileAsText = readFileAsText;
65234
+ globalThis.loaders.requireFromFile = requireFromFile;
65235
+ globalThis.loaders.requireFromString = requireFromString;
65291
65236
  if (nodeVersion2 < 18) {
65292
65237
  if (!("Headers" in globalThis) && Headers2) {
65293
65238
  globalThis.Headers = Headers2;
@@ -65301,10 +65246,12 @@ if (nodeVersion2 < 18) {
65301
65246
  }
65302
65247
 
65303
65248
  // src/lib/utils/version.ts
65304
- var VERSION2 = true ? "4.2.0-alpha.5" : "latest";
65249
+ var VERSION2 = true ? "4.2.0-beta.1" : "latest";
65305
65250
 
65306
65251
  // src/draco-loader.ts
65307
65252
  var DracoLoader = {
65253
+ dataType: null,
65254
+ batchType: null,
65308
65255
  name: "Draco",
65309
65256
  id: "draco",
65310
65257
  module: "draco",
@@ -65459,7 +65406,11 @@ var DRACO_DATA_TYPE_TO_TYPED_ARRAY_MAP = {
65459
65406
  4: Uint16Array,
65460
65407
  5: Int32Array,
65461
65408
  6: Uint32Array,
65409
+ // 7: BigInt64Array,
65410
+ // 8: BigUint64Array,
65462
65411
  9: Float32Array
65412
+ // 10: Float64Array
65413
+ // 11: BOOL - What array type do we use for this?
65463
65414
  };
65464
65415
  var INDEX_ITEM_SIZE = 4;
65465
65416
  var DracoParser = class {
@@ -65632,14 +65583,17 @@ var DracoParser = class {
65632
65583
  for (const loaderAttribute of Object.values(loaderData.attributes)) {
65633
65584
  const attributeName = this._deduceAttributeName(loaderAttribute, options);
65634
65585
  loaderAttribute.name = attributeName;
65635
- const { value, size } = this._getAttributeValues(dracoGeometry, loaderAttribute);
65636
- attributes[attributeName] = {
65637
- value,
65638
- size,
65639
- byteOffset: loaderAttribute.byte_offset,
65640
- byteStride: loaderAttribute.byte_stride,
65641
- normalized: loaderAttribute.normalized
65642
- };
65586
+ const values = this._getAttributeValues(dracoGeometry, loaderAttribute);
65587
+ if (values) {
65588
+ const { value, size } = values;
65589
+ attributes[attributeName] = {
65590
+ value,
65591
+ size,
65592
+ byteOffset: loaderAttribute.byte_offset,
65593
+ byteStride: loaderAttribute.byte_stride,
65594
+ normalized: loaderAttribute.normalized
65595
+ };
65596
+ }
65643
65597
  }
65644
65598
  return attributes;
65645
65599
  }
@@ -65681,6 +65635,10 @@ var DracoParser = class {
65681
65635
  */
65682
65636
  _getAttributeValues(dracoGeometry, attribute) {
65683
65637
  const TypedArrayCtor = DRACO_DATA_TYPE_TO_TYPED_ARRAY_MAP[attribute.data_type];
65638
+ if (!TypedArrayCtor) {
65639
+ console.warn(`DRACO: Unsupported attribute type ${attribute.data_type}`);
65640
+ return null;
65641
+ }
65684
65642
  const numComponents = attribute.num_components;
65685
65643
  const numPoints = dracoGeometry.num_points();
65686
65644
  const numValues = numPoints * numComponents;
@@ -65911,11 +65869,11 @@ var loadDecoderPromise;
65911
65869
  async function loadDracoDecoderModule(options) {
65912
65870
  const modules = options.modules || {};
65913
65871
  if (modules.draco3d) {
65914
- loadDecoderPromise = loadDecoderPromise || modules.draco3d.createDecoderModule({}).then((draco) => {
65872
+ loadDecoderPromise ||= modules.draco3d.createDecoderModule({}).then((draco) => {
65915
65873
  return { draco };
65916
65874
  });
65917
65875
  } else {
65918
- loadDecoderPromise = loadDecoderPromise || loadDracoDecoder(options);
65876
+ loadDecoderPromise ||= loadDracoDecoder(options);
65919
65877
  }
65920
65878
  return await loadDecoderPromise;
65921
65879
  }