@loaders.gl/core 3.4.0-alpha.1 → 3.4.0-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (194) hide show
  1. package/dist/dist.min.js +461 -248
  2. package/dist/es5/core-addons/write-file-browser.js +0 -2
  3. package/dist/es5/index.js.map +1 -1
  4. package/dist/es5/iterators/batch-iterators/timed-batch-iterator.js +65 -67
  5. package/dist/es5/iterators/batch-iterators/timed-batch-iterator.js.map +1 -1
  6. package/dist/es5/iterators/make-iterator/make-array-buffer-iterator.js +13 -24
  7. package/dist/es5/iterators/make-iterator/make-array-buffer-iterator.js.map +1 -1
  8. package/dist/es5/iterators/make-iterator/make-blob-iterator.js +22 -25
  9. package/dist/es5/iterators/make-iterator/make-blob-iterator.js.map +1 -1
  10. package/dist/es5/iterators/make-iterator/make-iterator.js.map +1 -1
  11. package/dist/es5/iterators/make-iterator/make-stream-iterator.js +88 -93
  12. package/dist/es5/iterators/make-iterator/make-stream-iterator.js.map +1 -1
  13. package/dist/es5/iterators/make-iterator/make-string-iterator.js +20 -24
  14. package/dist/es5/iterators/make-iterator/make-string-iterator.js.map +1 -1
  15. package/dist/es5/iterators/make-stream/make-dom-stream.js +30 -34
  16. package/dist/es5/iterators/make-stream/make-dom-stream.js.map +1 -1
  17. package/dist/es5/iterators/make-stream/make-node-stream.js +88 -87
  18. package/dist/es5/iterators/make-stream/make-node-stream.js.map +1 -1
  19. package/dist/es5/javascript-utils/is-type.js +0 -3
  20. package/dist/es5/javascript-utils/is-type.js.map +1 -1
  21. package/dist/es5/lib/api/encode.js +157 -166
  22. package/dist/es5/lib/api/encode.js.map +1 -1
  23. package/dist/es5/lib/api/load-in-batches.js +25 -31
  24. package/dist/es5/lib/api/load-in-batches.js.map +1 -1
  25. package/dist/es5/lib/api/load.js +35 -38
  26. package/dist/es5/lib/api/load.js.map +1 -1
  27. package/dist/es5/lib/api/loader-options.js.map +1 -1
  28. package/dist/es5/lib/api/parse-in-batches.js +192 -207
  29. package/dist/es5/lib/api/parse-in-batches.js.map +1 -1
  30. package/dist/es5/lib/api/parse-sync.js +0 -7
  31. package/dist/es5/lib/api/parse-sync.js.map +1 -1
  32. package/dist/es5/lib/api/parse.js +99 -107
  33. package/dist/es5/lib/api/parse.js.map +1 -1
  34. package/dist/es5/lib/api/register-loaders.js +1 -3
  35. package/dist/es5/lib/api/register-loaders.js.map +1 -1
  36. package/dist/es5/lib/api/save.js +13 -15
  37. package/dist/es5/lib/api/save.js.map +1 -1
  38. package/dist/es5/lib/api/select-loader.js +41 -58
  39. package/dist/es5/lib/api/select-loader.js.map +1 -1
  40. package/dist/es5/lib/fetch/fetch-error-message.js +29 -31
  41. package/dist/es5/lib/fetch/fetch-error-message.js.map +1 -1
  42. package/dist/es5/lib/fetch/fetch-file.js +23 -25
  43. package/dist/es5/lib/fetch/fetch-file.js.map +1 -1
  44. package/dist/es5/lib/fetch/read-array-buffer.js +41 -45
  45. package/dist/es5/lib/fetch/read-array-buffer.js.map +1 -1
  46. package/dist/es5/lib/fetch/read-file.js +0 -3
  47. package/dist/es5/lib/fetch/read-file.js.map +1 -1
  48. package/dist/es5/lib/fetch/write-file.js +15 -17
  49. package/dist/es5/lib/fetch/write-file.js.map +1 -1
  50. package/dist/es5/lib/filesystems/browser-filesystem.js +107 -124
  51. package/dist/es5/lib/filesystems/browser-filesystem.js.map +1 -1
  52. package/dist/es5/lib/filesystems/read-array-buffer.js +19 -21
  53. package/dist/es5/lib/filesystems/read-array-buffer.js.map +1 -1
  54. package/dist/es5/lib/init.js +1 -3
  55. package/dist/es5/lib/init.js.map +1 -1
  56. package/dist/es5/lib/loader-utils/check-errors.js +24 -26
  57. package/dist/es5/lib/loader-utils/check-errors.js.map +1 -1
  58. package/dist/es5/lib/loader-utils/get-data.js +130 -145
  59. package/dist/es5/lib/loader-utils/get-data.js.map +1 -1
  60. package/dist/es5/lib/loader-utils/get-fetch-function.js +26 -0
  61. package/dist/es5/lib/loader-utils/get-fetch-function.js.map +1 -0
  62. package/dist/es5/lib/loader-utils/loader-context.js +2 -5
  63. package/dist/es5/lib/loader-utils/loader-context.js.map +1 -1
  64. package/dist/es5/lib/loader-utils/loggers.js +0 -2
  65. package/dist/es5/lib/loader-utils/loggers.js.map +1 -1
  66. package/dist/es5/lib/loader-utils/normalize-loader.js +0 -3
  67. package/dist/es5/lib/loader-utils/normalize-loader.js.map +1 -1
  68. package/dist/es5/lib/loader-utils/option-defaults.js +0 -2
  69. package/dist/es5/lib/loader-utils/option-defaults.js.map +1 -1
  70. package/dist/es5/lib/loader-utils/option-utils.js +21 -55
  71. package/dist/es5/lib/loader-utils/option-utils.js.map +1 -1
  72. package/dist/es5/lib/progress/fetch-progress.js +92 -98
  73. package/dist/es5/lib/progress/fetch-progress.js.map +1 -1
  74. package/dist/es5/lib/utils/log.js +0 -1
  75. package/dist/es5/lib/utils/log.js.map +1 -1
  76. package/dist/es5/lib/utils/mime-type-utils.js +0 -3
  77. package/dist/es5/lib/utils/mime-type-utils.js.map +1 -1
  78. package/dist/es5/lib/utils/resource-utils.js +0 -4
  79. package/dist/es5/lib/utils/resource-utils.js.map +1 -1
  80. package/dist/es5/lib/utils/response-utils.js +118 -131
  81. package/dist/es5/lib/utils/response-utils.js.map +1 -1
  82. package/dist/es5/null-loader.js +57 -63
  83. package/dist/es5/null-loader.js.map +1 -1
  84. package/dist/es5/workers/null-worker.js.map +1 -1
  85. package/dist/esm/bundle.js +0 -1
  86. package/dist/esm/bundle.js.map +1 -1
  87. package/dist/esm/index.js +0 -12
  88. package/dist/esm/index.js.map +1 -1
  89. package/dist/esm/iterators/batch-iterators/timed-batch-iterator.js +0 -1
  90. package/dist/esm/iterators/batch-iterators/timed-batch-iterator.js.map +1 -1
  91. package/dist/esm/iterators/make-iterator/make-array-buffer-iterator.js +16 -17
  92. package/dist/esm/iterators/make-iterator/make-array-buffer-iterator.js.map +1 -1
  93. package/dist/esm/iterators/make-iterator/make-blob-iterator.js +0 -1
  94. package/dist/esm/iterators/make-iterator/make-blob-iterator.js.map +1 -1
  95. package/dist/esm/iterators/make-iterator/make-iterator.js +0 -1
  96. package/dist/esm/iterators/make-iterator/make-iterator.js.map +1 -1
  97. package/dist/esm/iterators/make-iterator/make-stream-iterator.js +0 -3
  98. package/dist/esm/iterators/make-iterator/make-stream-iterator.js.map +1 -1
  99. package/dist/esm/iterators/make-iterator/make-string-iterator.js +0 -2
  100. package/dist/esm/iterators/make-iterator/make-string-iterator.js.map +1 -1
  101. package/dist/esm/iterators/make-stream/make-dom-stream.js +1 -3
  102. package/dist/esm/iterators/make-stream/make-dom-stream.js.map +1 -1
  103. package/dist/esm/iterators/make-stream/make-node-stream.js +3 -2
  104. package/dist/esm/iterators/make-stream/make-node-stream.js.map +1 -1
  105. package/dist/esm/javascript-utils/is-type.js +0 -4
  106. package/dist/esm/javascript-utils/is-type.js.map +1 -1
  107. package/dist/esm/lib/api/encode.js +0 -9
  108. package/dist/esm/lib/api/encode.js.map +1 -1
  109. package/dist/esm/lib/api/load-in-batches.js +1 -5
  110. package/dist/esm/lib/api/load-in-batches.js.map +1 -1
  111. package/dist/esm/lib/api/load.js +1 -6
  112. package/dist/esm/lib/api/load.js.map +1 -1
  113. package/dist/esm/lib/api/parse-in-batches.js +2 -16
  114. package/dist/esm/lib/api/parse-in-batches.js.map +1 -1
  115. package/dist/esm/lib/api/parse-sync.js +0 -8
  116. package/dist/esm/lib/api/parse-sync.js.map +1 -1
  117. package/dist/esm/lib/api/parse.js +0 -12
  118. package/dist/esm/lib/api/parse.js.map +1 -1
  119. package/dist/esm/lib/api/register-loaders.js +0 -3
  120. package/dist/esm/lib/api/register-loaders.js.map +1 -1
  121. package/dist/esm/lib/api/save.js.map +1 -1
  122. package/dist/esm/lib/api/select-loader.js +0 -20
  123. package/dist/esm/lib/api/select-loader.js.map +1 -1
  124. package/dist/esm/lib/fetch/fetch-error-message.js.map +1 -1
  125. package/dist/esm/lib/fetch/fetch-file.js +0 -1
  126. package/dist/esm/lib/fetch/fetch-file.js.map +1 -1
  127. package/dist/esm/lib/fetch/read-array-buffer.js +0 -3
  128. package/dist/esm/lib/fetch/read-array-buffer.js.map +1 -1
  129. package/dist/esm/lib/fetch/read-file.js +0 -4
  130. package/dist/esm/lib/fetch/read-file.js.map +1 -1
  131. package/dist/esm/lib/fetch/write-file.js +0 -1
  132. package/dist/esm/lib/fetch/write-file.js.map +1 -1
  133. package/dist/esm/lib/filesystems/browser-filesystem.js +1 -11
  134. package/dist/esm/lib/filesystems/browser-filesystem.js.map +1 -1
  135. package/dist/esm/lib/filesystems/read-array-buffer.js +0 -2
  136. package/dist/esm/lib/filesystems/read-array-buffer.js.map +1 -1
  137. package/dist/esm/lib/init.js +1 -4
  138. package/dist/esm/lib/init.js.map +1 -1
  139. package/dist/esm/lib/loader-utils/check-errors.js +1 -2
  140. package/dist/esm/lib/loader-utils/check-errors.js.map +1 -1
  141. package/dist/esm/lib/loader-utils/get-data.js +0 -6
  142. package/dist/esm/lib/loader-utils/get-data.js.map +1 -1
  143. package/dist/esm/lib/loader-utils/get-fetch-function.js +18 -0
  144. package/dist/esm/lib/loader-utils/get-fetch-function.js.map +1 -0
  145. package/dist/esm/lib/loader-utils/loader-context.js +1 -5
  146. package/dist/esm/lib/loader-utils/loader-context.js.map +1 -1
  147. package/dist/esm/lib/loader-utils/loggers.js +0 -3
  148. package/dist/esm/lib/loader-utils/loggers.js.map +1 -1
  149. package/dist/esm/lib/loader-utils/normalize-loader.js +0 -3
  150. package/dist/esm/lib/loader-utils/normalize-loader.js.map +1 -1
  151. package/dist/esm/lib/loader-utils/option-defaults.js +0 -2
  152. package/dist/esm/lib/loader-utils/option-defaults.js.map +1 -1
  153. package/dist/esm/lib/loader-utils/option-utils.js +0 -32
  154. package/dist/esm/lib/loader-utils/option-utils.js.map +1 -1
  155. package/dist/esm/lib/progress/fetch-progress.js +2 -6
  156. package/dist/esm/lib/progress/fetch-progress.js.map +1 -1
  157. package/dist/esm/lib/utils/log.js +0 -1
  158. package/dist/esm/lib/utils/log.js.map +1 -1
  159. package/dist/esm/lib/utils/mime-type-utils.js +0 -4
  160. package/dist/esm/lib/utils/mime-type-utils.js.map +1 -1
  161. package/dist/esm/lib/utils/resource-utils.js +0 -4
  162. package/dist/esm/lib/utils/resource-utils.js.map +1 -1
  163. package/dist/esm/lib/utils/response-utils.js +1 -12
  164. package/dist/esm/lib/utils/response-utils.js.map +1 -1
  165. package/dist/esm/null-loader.js +1 -4
  166. package/dist/esm/null-loader.js.map +1 -1
  167. package/dist/iterators/make-stream/make-node-stream.d.ts +7 -2
  168. package/dist/iterators/make-stream/make-node-stream.d.ts.map +1 -1
  169. package/dist/iterators/make-stream/make-node-stream.js +28 -2
  170. package/dist/lib/api/encode.d.ts +5 -5
  171. package/dist/lib/api/encode.d.ts.map +1 -1
  172. package/dist/lib/api/encode.js +1 -0
  173. package/dist/lib/api/load-in-batches.js +2 -2
  174. package/dist/lib/api/load.d.ts.map +1 -1
  175. package/dist/lib/api/load.js +3 -2
  176. package/dist/lib/fetch/fetch-file.js +1 -1
  177. package/dist/lib/loader-utils/get-fetch-function.d.ts +9 -0
  178. package/dist/lib/loader-utils/get-fetch-function.d.ts.map +1 -0
  179. package/dist/lib/loader-utils/get-fetch-function.js +31 -0
  180. package/dist/lib/loader-utils/loader-context.js +2 -2
  181. package/dist/lib/loader-utils/option-utils.d.ts +5 -15
  182. package/dist/lib/loader-utils/option-utils.d.ts.map +1 -1
  183. package/dist/lib/loader-utils/option-utils.js +10 -31
  184. package/dist/lib/progress/fetch-progress.js +2 -2
  185. package/dist/null-worker.js +1 -1
  186. package/package.json +5 -5
  187. package/src/iterators/make-stream/make-node-stream.ts +8 -2
  188. package/src/lib/api/encode.ts +7 -6
  189. package/src/lib/api/load-in-batches.ts +1 -1
  190. package/src/lib/api/load.ts +3 -2
  191. package/src/lib/loader-utils/get-fetch-function.ts +38 -0
  192. package/src/lib/loader-utils/loader-context.ts +1 -1
  193. package/src/lib/loader-utils/option-utils.ts +17 -44
  194. package/src/lib/progress/fetch-progress.ts +2 -2
package/dist/dist.min.js CHANGED
@@ -119,8 +119,8 @@
119
119
  };
120
120
  this.name = jobName;
121
121
  this.workerThread = workerThread;
122
- this.result = new Promise((resolve, reject) => {
123
- this._resolve = resolve;
122
+ this.result = new Promise((resolve2, reject) => {
123
+ this._resolve = resolve2;
124
124
  this._reject = reject;
125
125
  });
126
126
  }
@@ -715,56 +715,7 @@
715
715
  }
716
716
  });
717
717
 
718
- // (disabled):../loader-utils/src/lib/node/buffer
719
- var init_buffer = __esm({
720
- "(disabled):../loader-utils/src/lib/node/buffer"() {
721
- }
722
- });
723
-
724
- // ../loader-utils/src/lib/binary-utils/buffer-utils.ts
725
- function isBuffer(value) {
726
- return value && typeof value === "object" && value.isBuffer;
727
- }
728
- function toBuffer2(data) {
729
- return node.toBuffer ? node.toBuffer(data) : data;
730
- }
731
- function bufferToArrayBuffer(buffer) {
732
- if (isBuffer(buffer)) {
733
- const typedArray = new Uint8Array(buffer.buffer, buffer.byteOffset, buffer.length);
734
- return typedArray.slice().buffer;
735
- }
736
- return buffer;
737
- }
738
- var init_buffer_utils = __esm({
739
- "../loader-utils/src/lib/binary-utils/buffer-utils.ts"() {
740
- init_buffer();
741
- }
742
- });
743
-
744
718
  // ../loader-utils/src/lib/binary-utils/array-buffer-utils.ts
745
- function toArrayBuffer(data) {
746
- if (isBuffer(data)) {
747
- return bufferToArrayBuffer(data);
748
- }
749
- if (data instanceof ArrayBuffer) {
750
- return data;
751
- }
752
- if (ArrayBuffer.isView(data)) {
753
- if (data.byteOffset === 0 && data.byteLength === data.buffer.byteLength) {
754
- return data.buffer;
755
- }
756
- return data.buffer.slice(data.byteOffset, data.byteOffset + data.byteLength);
757
- }
758
- if (typeof data === "string") {
759
- const text = data;
760
- const uint8Array = new TextEncoder().encode(text);
761
- return uint8Array.buffer;
762
- }
763
- if (data && typeof data === "object" && data._toArrayBuffer) {
764
- return data._toArrayBuffer();
765
- }
766
- throw new Error("toArrayBuffer");
767
- }
768
719
  function compareArrayBuffers(arrayBuffer1, arrayBuffer2, byteLength) {
769
720
  byteLength = byteLength || arrayBuffer1.byteLength;
770
721
  if (arrayBuffer1.byteLength < byteLength || arrayBuffer2.byteLength < byteLength) {
@@ -792,7 +743,6 @@
792
743
  }
793
744
  var init_array_buffer_utils = __esm({
794
745
  "../loader-utils/src/lib/binary-utils/array-buffer-utils.ts"() {
795
- init_buffer_utils();
796
746
  }
797
747
  });
798
748
 
@@ -863,8 +813,54 @@
863
813
  }
864
814
  });
865
815
 
816
+ // ../../node_modules/@babel/runtime/helpers/esm/typeof.js
817
+ function _typeof(obj) {
818
+ "@babel/helpers - typeof";
819
+ return _typeof = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(obj2) {
820
+ return typeof obj2;
821
+ } : function(obj2) {
822
+ return obj2 && typeof Symbol == "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
823
+ }, _typeof(obj);
824
+ }
825
+ var init_typeof = __esm({
826
+ "../../node_modules/@babel/runtime/helpers/esm/typeof.js"() {
827
+ }
828
+ });
829
+
830
+ // ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
831
+ function _toPrimitive(input, hint) {
832
+ if (_typeof(input) !== "object" || input === null)
833
+ return input;
834
+ var prim = input[Symbol.toPrimitive];
835
+ if (prim !== void 0) {
836
+ var res = prim.call(input, hint || "default");
837
+ if (_typeof(res) !== "object")
838
+ return res;
839
+ throw new TypeError("@@toPrimitive must return a primitive value.");
840
+ }
841
+ return (hint === "string" ? String : Number)(input);
842
+ }
843
+ var init_toPrimitive = __esm({
844
+ "../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js"() {
845
+ init_typeof();
846
+ }
847
+ });
848
+
849
+ // ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
850
+ function _toPropertyKey(arg) {
851
+ var key = _toPrimitive(arg, "string");
852
+ return _typeof(key) === "symbol" ? key : String(key);
853
+ }
854
+ var init_toPropertyKey = __esm({
855
+ "../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js"() {
856
+ init_typeof();
857
+ init_toPrimitive();
858
+ }
859
+ });
860
+
866
861
  // ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
867
862
  function _defineProperty(obj, key, value) {
863
+ key = _toPropertyKey(key);
868
864
  if (key in obj) {
869
865
  Object.defineProperty(obj, key, {
870
866
  value,
@@ -879,10 +875,11 @@
879
875
  }
880
876
  var init_defineProperty = __esm({
881
877
  "../../node_modules/@babel/runtime/helpers/esm/defineProperty.js"() {
878
+ init_toPropertyKey();
882
879
  }
883
880
  });
884
881
 
885
- // ../../node_modules/@probe.gl/stats/dist/esm/utils/hi-res-timestamp.js
882
+ // ../loader-utils/node_modules/@probe.gl/stats/dist/utils/hi-res-timestamp.js
886
883
  function getHiResTimestamp() {
887
884
  let timestamp;
888
885
  if (typeof window !== "undefined" && window.performance) {
@@ -896,14 +893,14 @@
896
893
  return timestamp;
897
894
  }
898
895
  var init_hi_res_timestamp = __esm({
899
- "../../node_modules/@probe.gl/stats/dist/esm/utils/hi-res-timestamp.js"() {
896
+ "../loader-utils/node_modules/@probe.gl/stats/dist/utils/hi-res-timestamp.js"() {
900
897
  }
901
898
  });
902
899
 
903
- // ../../node_modules/@probe.gl/stats/dist/esm/lib/stat.js
900
+ // ../loader-utils/node_modules/@probe.gl/stats/dist/lib/stat.js
904
901
  var Stat;
905
902
  var init_stat = __esm({
906
- "../../node_modules/@probe.gl/stats/dist/esm/lib/stat.js"() {
903
+ "../loader-utils/node_modules/@probe.gl/stats/dist/lib/stat.js"() {
907
904
  init_defineProperty();
908
905
  init_hi_res_timestamp();
909
906
  Stat = class {
@@ -911,12 +908,12 @@
911
908
  _defineProperty(this, "name", void 0);
912
909
  _defineProperty(this, "type", void 0);
913
910
  _defineProperty(this, "sampleSize", 1);
914
- _defineProperty(this, "time", void 0);
915
- _defineProperty(this, "count", void 0);
916
- _defineProperty(this, "samples", void 0);
917
- _defineProperty(this, "lastTiming", void 0);
918
- _defineProperty(this, "lastSampleTime", void 0);
919
- _defineProperty(this, "lastSampleCount", void 0);
911
+ _defineProperty(this, "time", 0);
912
+ _defineProperty(this, "count", 0);
913
+ _defineProperty(this, "samples", 0);
914
+ _defineProperty(this, "lastTiming", 0);
915
+ _defineProperty(this, "lastSampleTime", 0);
916
+ _defineProperty(this, "lastSampleCount", 0);
920
917
  _defineProperty(this, "_count", 0);
921
918
  _defineProperty(this, "_time", 0);
922
919
  _defineProperty(this, "_samples", 0);
@@ -926,6 +923,20 @@
926
923
  this.type = type;
927
924
  this.reset();
928
925
  }
926
+ reset() {
927
+ this.time = 0;
928
+ this.count = 0;
929
+ this.samples = 0;
930
+ this.lastTiming = 0;
931
+ this.lastSampleTime = 0;
932
+ this.lastSampleCount = 0;
933
+ this._count = 0;
934
+ this._time = 0;
935
+ this._samples = 0;
936
+ this._startTime = 0;
937
+ this._timerPending = false;
938
+ return this;
939
+ }
929
940
  setSampleSize(samples) {
930
941
  this.sampleSize = samples;
931
942
  return this;
@@ -989,20 +1000,6 @@
989
1000
  getHz() {
990
1001
  return this.time > 0 ? this.samples / (this.time / 1e3) : 0;
991
1002
  }
992
- reset() {
993
- this.time = 0;
994
- this.count = 0;
995
- this.samples = 0;
996
- this.lastTiming = 0;
997
- this.lastSampleTime = 0;
998
- this.lastSampleCount = 0;
999
- this._count = 0;
1000
- this._time = 0;
1001
- this._samples = 0;
1002
- this._startTime = 0;
1003
- this._timerPending = false;
1004
- return this;
1005
- }
1006
1003
  _checkSampling() {
1007
1004
  if (this._samples === this.sampleSize) {
1008
1005
  this.lastSampleTime = this._time;
@@ -1019,10 +1016,10 @@
1019
1016
  }
1020
1017
  });
1021
1018
 
1022
- // ../../node_modules/@probe.gl/stats/dist/esm/lib/stats.js
1019
+ // ../loader-utils/node_modules/@probe.gl/stats/dist/lib/stats.js
1023
1020
  var Stats;
1024
1021
  var init_stats = __esm({
1025
- "../../node_modules/@probe.gl/stats/dist/esm/lib/stats.js"() {
1022
+ "../loader-utils/node_modules/@probe.gl/stats/dist/lib/stats.js"() {
1026
1023
  init_defineProperty();
1027
1024
  init_stat();
1028
1025
  Stats = class {
@@ -1045,56 +1042,56 @@
1045
1042
  return Object.keys(this.stats).length;
1046
1043
  }
1047
1044
  reset() {
1048
- for (const key in this.stats) {
1049
- this.stats[key].reset();
1045
+ for (const stat2 of Object.values(this.stats)) {
1046
+ stat2.reset();
1050
1047
  }
1051
1048
  return this;
1052
1049
  }
1053
1050
  forEach(fn) {
1054
- for (const key in this.stats) {
1055
- fn(this.stats[key]);
1051
+ for (const stat2 of Object.values(this.stats)) {
1052
+ fn(stat2);
1056
1053
  }
1057
1054
  }
1058
1055
  getTable() {
1059
1056
  const table = {};
1060
- this.forEach((stat) => {
1061
- table[stat.name] = {
1062
- time: stat.time || 0,
1063
- count: stat.count || 0,
1064
- average: stat.getAverageTime() || 0,
1065
- hz: stat.getHz() || 0
1057
+ this.forEach((stat2) => {
1058
+ table[stat2.name] = {
1059
+ time: stat2.time || 0,
1060
+ count: stat2.count || 0,
1061
+ average: stat2.getAverageTime() || 0,
1062
+ hz: stat2.getHz() || 0
1066
1063
  };
1067
1064
  });
1068
1065
  return table;
1069
1066
  }
1070
1067
  _initializeStats() {
1071
1068
  let stats = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
1072
- stats.forEach((stat) => this._getOrCreate(stat));
1069
+ stats.forEach((stat2) => this._getOrCreate(stat2));
1073
1070
  }
1074
- _getOrCreate(stat) {
1075
- if (!stat || !stat.name) {
1071
+ _getOrCreate(stat2) {
1072
+ if (!stat2 || !stat2.name) {
1076
1073
  return null;
1077
1074
  }
1078
1075
  const {
1079
1076
  name,
1080
1077
  type
1081
- } = stat;
1078
+ } = stat2;
1082
1079
  if (!this.stats[name]) {
1083
- if (stat instanceof Stat) {
1084
- this.stats[name] = stat;
1080
+ if (stat2 instanceof Stat) {
1081
+ this.stats[name] = stat2;
1085
1082
  } else {
1086
1083
  this.stats[name] = new Stat(name, type);
1087
1084
  }
1088
1085
  }
1089
- return this.stats[name];
1086
+ return this.stats[name] || null;
1090
1087
  }
1091
1088
  };
1092
1089
  }
1093
1090
  });
1094
1091
 
1095
- // ../../node_modules/@probe.gl/stats/dist/esm/index.js
1096
- var init_esm = __esm({
1097
- "../../node_modules/@probe.gl/stats/dist/esm/index.js"() {
1092
+ // ../loader-utils/node_modules/@probe.gl/stats/dist/index.js
1093
+ var init_dist = __esm({
1094
+ "../loader-utils/node_modules/@probe.gl/stats/dist/index.js"() {
1098
1095
  init_stats();
1099
1096
  init_stat();
1100
1097
  init_hi_res_timestamp();
@@ -1105,7 +1102,7 @@
1105
1102
  var STAT_QUEUED_REQUESTS, STAT_ACTIVE_REQUESTS, STAT_CANCELLED_REQUESTS, STAT_QUEUED_REQUESTS_EVER, STAT_ACTIVE_REQUESTS_EVER, DEFAULT_PROPS2, RequestScheduler;
1106
1103
  var init_request_scheduler = __esm({
1107
1104
  "../loader-utils/src/lib/request-utils/request-scheduler.ts"() {
1108
- init_esm();
1105
+ init_dist();
1109
1106
  STAT_QUEUED_REQUESTS = "Queued Requests";
1110
1107
  STAT_ACTIVE_REQUESTS = "Active Requests";
1111
1108
  STAT_CANCELLED_REQUESTS = "Cancelled Requests";
@@ -1139,8 +1136,8 @@
1139
1136
  return this.requestMap.get(handle);
1140
1137
  }
1141
1138
  const request = { handle, priority: 0, getPriority };
1142
- const promise = new Promise((resolve) => {
1143
- request.resolve = resolve;
1139
+ const promise = new Promise((resolve2) => {
1140
+ request.resolve = resolve2;
1144
1141
  return request;
1145
1142
  });
1146
1143
  this.requestQueue.push(request);
@@ -1149,7 +1146,7 @@
1149
1146
  return promise;
1150
1147
  }
1151
1148
  _issueRequest(request) {
1152
- const { handle, resolve } = request;
1149
+ const { handle, resolve: resolve2 } = request;
1153
1150
  let isDone = false;
1154
1151
  const done = () => {
1155
1152
  if (!isDone) {
@@ -1160,7 +1157,7 @@
1160
1157
  }
1161
1158
  };
1162
1159
  this.activeRequestCount++;
1163
- return resolve ? resolve({ done }) : Promise.resolve({ done });
1160
+ return resolve2 ? resolve2({ done }) : Promise.resolve({ done });
1164
1161
  }
1165
1162
  _issueNewRequests() {
1166
1163
  if (!this.deferredUpdate) {
@@ -1256,19 +1253,93 @@
1256
1253
  }
1257
1254
  });
1258
1255
 
1256
+ // ../loader-utils/src/lib/node/buffer.browser.ts
1257
+ function toArrayBuffer(buffer) {
1258
+ return buffer;
1259
+ }
1260
+ function toBuffer(binaryData) {
1261
+ throw new Error("Buffer not supported in browser");
1262
+ }
1263
+ var init_buffer_browser = __esm({
1264
+ "../loader-utils/src/lib/node/buffer.browser.ts"() {
1265
+ }
1266
+ });
1267
+
1268
+ // ../loader-utils/src/lib/binary-utils/memory-conversion-utils.ts
1269
+ function isBuffer(value) {
1270
+ return value && typeof value === "object" && value.isBuffer;
1271
+ }
1272
+ function toBuffer2(data) {
1273
+ return toBuffer ? toBuffer(data) : data;
1274
+ }
1275
+ function toArrayBuffer2(data) {
1276
+ if (isBuffer(data)) {
1277
+ return toArrayBuffer(data);
1278
+ }
1279
+ if (data instanceof ArrayBuffer) {
1280
+ return data;
1281
+ }
1282
+ if (ArrayBuffer.isView(data)) {
1283
+ if (data.byteOffset === 0 && data.byteLength === data.buffer.byteLength) {
1284
+ return data.buffer;
1285
+ }
1286
+ return data.buffer.slice(data.byteOffset, data.byteOffset + data.byteLength);
1287
+ }
1288
+ if (typeof data === "string") {
1289
+ const text = data;
1290
+ const uint8Array = new TextEncoder().encode(text);
1291
+ return uint8Array.buffer;
1292
+ }
1293
+ if (data && typeof data === "object" && data._toArrayBuffer) {
1294
+ return data._toArrayBuffer();
1295
+ }
1296
+ throw new Error("toArrayBuffer");
1297
+ }
1298
+ var init_memory_conversion_utils = __esm({
1299
+ "../loader-utils/src/lib/binary-utils/memory-conversion-utils.ts"() {
1300
+ init_buffer_browser();
1301
+ }
1302
+ });
1303
+
1304
+ // ../loader-utils/src/lib/node/promisify.ts
1305
+ function promisify2(fn) {
1306
+ return (arg1, arg2) => new Promise((resolve2, reject) => fn(arg1, arg2, (error, callbackArgs) => error ? reject(error) : resolve2(callbackArgs)));
1307
+ }
1308
+ function promisify3(fn) {
1309
+ return (arg1, arg2, arg3) => new Promise((resolve2, reject) => fn(arg1, arg2, arg3, (error, callbackArgs) => error ? reject(error) : resolve2(callbackArgs)));
1310
+ }
1311
+ var init_promisify = __esm({
1312
+ "../loader-utils/src/lib/node/promisify.ts"() {
1313
+ }
1314
+ });
1315
+
1316
+ // ../loader-utils/src/lib/path-utils/get-cwd.ts
1317
+ function getCWD() {
1318
+ if (typeof process !== "undefined" && typeof process.cwd !== "undefined") {
1319
+ return process.cwd();
1320
+ }
1321
+ const pathname = window.location?.pathname;
1322
+ return pathname?.slice(0, pathname.lastIndexOf("/") + 1) || "";
1323
+ }
1324
+ var init_get_cwd = __esm({
1325
+ "../loader-utils/src/lib/path-utils/get-cwd.ts"() {
1326
+ }
1327
+ });
1328
+
1259
1329
  // ../loader-utils/src/lib/path-utils/path.ts
1260
1330
  var path_exports = {};
1261
1331
  __export(path_exports, {
1262
1332
  dirname: () => dirname,
1263
1333
  filename: () => filename,
1264
- join: () => join
1334
+ join: () => join,
1335
+ resolve: () => resolve
1265
1336
  });
1266
1337
  function filename(url) {
1267
- const slashIndex = url && url.lastIndexOf("/");
1338
+ const slashIndex = url ? url.lastIndexOf("/") : -1;
1268
1339
  return slashIndex >= 0 ? url.substr(slashIndex + 1) : "";
1269
1340
  }
1270
1341
  function dirname(url) {
1271
- const slashIndex = url && url.lastIndexOf("/");
1342
+ const slashIndex = url ? url.lastIndexOf("/") : -1;
1272
1343
  return slashIndex >= 0 ? url.substr(0, slashIndex) : "";
1273
1344
  }
1274
1345
  function join(...parts) {
@@ -1284,19 +1355,172 @@
1284
1355
  });
1285
1356
  return parts.join(separator);
1286
1357
  }
1358
+ function resolve(...components) {
1359
+ const paths = [];
1360
+ for (let _i = 0; _i < components.length; _i++) {
1361
+ paths[_i] = components[_i];
1362
+ }
1363
+ let resolvedPath = "";
1364
+ let resolvedAbsolute = false;
1365
+ let cwd;
1366
+ for (let i = paths.length - 1; i >= -1 && !resolvedAbsolute; i--) {
1367
+ let path;
1368
+ if (i >= 0) {
1369
+ path = paths[i];
1370
+ } else {
1371
+ if (cwd === void 0) {
1372
+ cwd = getCWD();
1373
+ }
1374
+ path = cwd;
1375
+ }
1376
+ if (path.length === 0) {
1377
+ continue;
1378
+ }
1379
+ resolvedPath = `${path}/${resolvedPath}`;
1380
+ resolvedAbsolute = path.charCodeAt(0) === SLASH;
1381
+ }
1382
+ resolvedPath = normalizeStringPosix(resolvedPath, !resolvedAbsolute);
1383
+ if (resolvedAbsolute) {
1384
+ return `/${resolvedPath}`;
1385
+ } else if (resolvedPath.length > 0) {
1386
+ return resolvedPath;
1387
+ }
1388
+ return ".";
1389
+ }
1390
+ function normalizeStringPosix(path, allowAboveRoot) {
1391
+ let res = "";
1392
+ let lastSlash = -1;
1393
+ let dots = 0;
1394
+ let code;
1395
+ let isAboveRoot = false;
1396
+ for (let i = 0; i <= path.length; ++i) {
1397
+ if (i < path.length) {
1398
+ code = path.charCodeAt(i);
1399
+ } else if (code === SLASH) {
1400
+ break;
1401
+ } else {
1402
+ code = SLASH;
1403
+ }
1404
+ if (code === SLASH) {
1405
+ if (lastSlash === i - 1 || dots === 1) {
1406
+ } else if (lastSlash !== i - 1 && dots === 2) {
1407
+ if (res.length < 2 || !isAboveRoot || res.charCodeAt(res.length - 1) !== DOT || res.charCodeAt(res.length - 2) !== DOT) {
1408
+ if (res.length > 2) {
1409
+ const start = res.length - 1;
1410
+ let j = start;
1411
+ for (; j >= 0; --j) {
1412
+ if (res.charCodeAt(j) === SLASH) {
1413
+ break;
1414
+ }
1415
+ }
1416
+ if (j !== start) {
1417
+ res = j === -1 ? "" : res.slice(0, j);
1418
+ lastSlash = i;
1419
+ dots = 0;
1420
+ isAboveRoot = false;
1421
+ continue;
1422
+ }
1423
+ } else if (res.length === 2 || res.length === 1) {
1424
+ res = "";
1425
+ lastSlash = i;
1426
+ dots = 0;
1427
+ isAboveRoot = false;
1428
+ continue;
1429
+ }
1430
+ }
1431
+ if (allowAboveRoot) {
1432
+ if (res.length > 0) {
1433
+ res += "/..";
1434
+ } else {
1435
+ res = "..";
1436
+ }
1437
+ isAboveRoot = true;
1438
+ }
1439
+ } else {
1440
+ const slice = path.slice(lastSlash + 1, i);
1441
+ if (res.length > 0) {
1442
+ res += `/${slice}`;
1443
+ } else {
1444
+ res = slice;
1445
+ }
1446
+ isAboveRoot = false;
1447
+ }
1448
+ lastSlash = i;
1449
+ dots = 0;
1450
+ } else if (code === DOT && dots !== -1) {
1451
+ ++dots;
1452
+ } else {
1453
+ dots = -1;
1454
+ }
1455
+ }
1456
+ return res;
1457
+ }
1458
+ var SLASH, DOT;
1287
1459
  var init_path = __esm({
1288
1460
  "../loader-utils/src/lib/path-utils/path.ts"() {
1461
+ init_get_cwd();
1462
+ SLASH = 47;
1463
+ DOT = 46;
1289
1464
  }
1290
1465
  });
1291
1466
 
1292
- // (disabled):../loader-utils/src/lib/node/fs
1467
+ // (disabled):fs
1293
1468
  var require_fs = __commonJS({
1294
- "(disabled):../loader-utils/src/lib/node/fs"() {
1469
+ "(disabled):fs"() {
1470
+ }
1471
+ });
1472
+
1473
+ // ../loader-utils/src/lib/node/fs.ts
1474
+ var fs_exports = {};
1475
+ __export(fs_exports, {
1476
+ _readToArrayBuffer: () => _readToArrayBuffer,
1477
+ close: () => close,
1478
+ createWriteStream: () => createWriteStream,
1479
+ fstat: () => fstat,
1480
+ isSupported: () => isSupported,
1481
+ open: () => open,
1482
+ read: () => read,
1483
+ readFile: () => readFile,
1484
+ readFileSync: () => readFileSync,
1485
+ readdir: () => readdir,
1486
+ stat: () => stat,
1487
+ writeFile: () => writeFile,
1488
+ writeFileSync: () => writeFileSync
1489
+ });
1490
+ async function _readToArrayBuffer(fd, start, length) {
1491
+ const buffer = Buffer.alloc(length);
1492
+ const { bytesRead } = await read(fd, buffer, 0, length, start);
1493
+ if (bytesRead !== length) {
1494
+ throw new Error("fs.read failed");
1495
+ }
1496
+ return toArrayBuffer(buffer);
1497
+ }
1498
+ var import_fs, readdir, stat, readFile, readFileSync, writeFile, writeFileSync, open, close, read, fstat, createWriteStream, isSupported;
1499
+ var init_fs = __esm({
1500
+ "../loader-utils/src/lib/node/fs.ts"() {
1501
+ import_fs = __toModule(require_fs());
1502
+ init_buffer_browser();
1503
+ init_promisify();
1504
+ isSupported = Boolean(import_fs.default);
1505
+ try {
1506
+ readdir = promisify2(import_fs.default.readdir);
1507
+ stat = promisify2(import_fs.default.stat);
1508
+ readFile = import_fs.default.readFile;
1509
+ readFileSync = import_fs.default.readFileSync;
1510
+ writeFile = promisify3(import_fs.default.writeFile);
1511
+ writeFileSync = import_fs.default.writeFileSync;
1512
+ open = import_fs.default.open;
1513
+ close = (fd) => new Promise((resolve2, reject) => import_fs.default.close(fd, (err) => err ? reject(err) : resolve2()));
1514
+ read = import_fs.default.read;
1515
+ fstat = import_fs.default.fstat;
1516
+ createWriteStream = import_fs.default.createWriteStream;
1517
+ isSupported = Boolean(import_fs.default);
1518
+ } catch {
1519
+ }
1295
1520
  }
1296
1521
  });
1297
1522
 
1298
1523
  // ../loader-utils/src/index.ts
1299
- var fs;
1300
1524
  var init_src2 = __esm({
1301
1525
  "../loader-utils/src/index.ts"() {
1302
1526
  init_assert();
@@ -1309,9 +1533,9 @@
1309
1533
  init_request_scheduler();
1310
1534
  init_file_aliases();
1311
1535
  init_json_loader();
1536
+ init_memory_conversion_utils();
1312
1537
  init_path();
1313
- init_buffer_utils();
1314
- fs = __toModule(require_fs());
1538
+ init_fs();
1315
1539
  }
1316
1540
  });
1317
1541
 
@@ -1471,9 +1695,9 @@
1471
1695
  }
1472
1696
  if (resource instanceof Blob) {
1473
1697
  const blobSlice = resource.slice(0, 5);
1474
- return await new Promise((resolve) => {
1698
+ return await new Promise((resolve2) => {
1475
1699
  const reader = new FileReader();
1476
- reader.onload = (event) => resolve(event?.target?.result);
1700
+ reader.onload = (event) => resolve2(event?.target?.result);
1477
1701
  reader.readAsDataURL(blobSlice);
1478
1702
  });
1479
1703
  }
@@ -1521,7 +1745,7 @@
1521
1745
  // src/lib/fetch/read-array-buffer.ts
1522
1746
  async function readArrayBuffer(file, start, length) {
1523
1747
  if (typeof file === "number") {
1524
- return await fs._readToArrayBuffer(file, start, length);
1748
+ return await fs_exports._readToArrayBuffer(file, start, length);
1525
1749
  }
1526
1750
  if (!(file instanceof Blob)) {
1527
1751
  file = new Blob([file]);
@@ -1530,9 +1754,9 @@
1530
1754
  return await readBlob(slice);
1531
1755
  }
1532
1756
  async function readBlob(blob) {
1533
- return await new Promise((resolve, reject) => {
1757
+ return await new Promise((resolve2, reject) => {
1534
1758
  const fileReader = new FileReader();
1535
- fileReader.onload = (event) => resolve(event?.target?.result);
1759
+ fileReader.onload = (event) => resolve2(event?.target?.result);
1536
1760
  fileReader.onerror = (error) => reject(error);
1537
1761
  fileReader.readAsArrayBuffer(blob);
1538
1762
  });
@@ -1544,11 +1768,11 @@
1544
1768
  });
1545
1769
 
1546
1770
  // src/lib/fetch/read-file.ts
1547
- function readFileSync(url, options = {}) {
1771
+ function readFileSync2(url, options = {}) {
1548
1772
  url = resolvePath(url);
1549
1773
  if (!isBrowser) {
1550
- const buffer = fs.readFileSync(url, options);
1551
- return typeof buffer !== "string" ? toArrayBuffer(buffer) : buffer;
1774
+ const buffer = fs_exports.readFileSync(url, options);
1775
+ return typeof buffer !== "string" ? toArrayBuffer2(buffer) : buffer;
1552
1776
  }
1553
1777
  if (!options.nothrow) {
1554
1778
  assert(false);
@@ -1563,17 +1787,17 @@
1563
1787
  });
1564
1788
 
1565
1789
  // src/lib/fetch/write-file.ts
1566
- async function writeFile(filePath, arrayBufferOrString, options) {
1790
+ async function writeFile2(filePath, arrayBufferOrString, options) {
1567
1791
  filePath = resolvePath(filePath);
1568
1792
  if (!isBrowser) {
1569
- await fs.writeFile(filePath, toBuffer2(arrayBufferOrString), { flag: "w" });
1793
+ await fs_exports.writeFile(filePath, toBuffer2(arrayBufferOrString), { flag: "w" });
1570
1794
  }
1571
1795
  assert(false);
1572
1796
  }
1573
- function writeFileSync(filePath, arrayBufferOrString, options) {
1797
+ function writeFileSync2(filePath, arrayBufferOrString, options) {
1574
1798
  filePath = resolvePath(filePath);
1575
1799
  if (!isBrowser) {
1576
- fs.writeFileSync(filePath, toBuffer2(arrayBufferOrString), { flag: "w" });
1800
+ fs_exports.writeFileSync(filePath, toBuffer2(arrayBufferOrString), { flag: "w" });
1577
1801
  }
1578
1802
  assert(false);
1579
1803
  }
@@ -1584,12 +1808,12 @@
1584
1808
  }
1585
1809
  });
1586
1810
 
1587
- // ../../node_modules/@probe.gl/env/dist/esm/lib/is-electron.js
1811
+ // node_modules/@probe.gl/env/dist/lib/is-electron.js
1588
1812
  function isElectron(mockUserAgent) {
1589
1813
  if (typeof window !== "undefined" && typeof window.process === "object" && window.process.type === "renderer") {
1590
1814
  return true;
1591
1815
  }
1592
- if (typeof process !== "undefined" && typeof process.versions === "object" && Boolean(process.versions.electron)) {
1816
+ if (typeof process !== "undefined" && typeof process.versions === "object" && Boolean(process.versions["electron"])) {
1593
1817
  return true;
1594
1818
  }
1595
1819
  const realUserAgent = typeof navigator === "object" && typeof navigator.userAgent === "string" && navigator.userAgent;
@@ -1600,59 +1824,54 @@
1600
1824
  return false;
1601
1825
  }
1602
1826
  var init_is_electron = __esm({
1603
- "../../node_modules/@probe.gl/env/dist/esm/lib/is-electron.js"() {
1827
+ "node_modules/@probe.gl/env/dist/lib/is-electron.js"() {
1604
1828
  }
1605
1829
  });
1606
1830
 
1607
- // ../../node_modules/@probe.gl/env/dist/esm/lib/is-browser.js
1831
+ // node_modules/@probe.gl/env/dist/lib/is-browser.js
1608
1832
  function isBrowser3() {
1609
1833
  const isNode = typeof process === "object" && String(process) === "[object process]" && !process.browser;
1610
1834
  return !isNode || isElectron();
1611
1835
  }
1612
1836
  var init_is_browser = __esm({
1613
- "../../node_modules/@probe.gl/env/dist/esm/lib/is-browser.js"() {
1837
+ "node_modules/@probe.gl/env/dist/lib/is-browser.js"() {
1614
1838
  init_is_electron();
1615
1839
  }
1616
1840
  });
1617
1841
 
1618
- // ../../node_modules/@probe.gl/env/dist/esm/lib/globals.js
1619
- var globals3, self_3, window_3, document_3, process_;
1842
+ // node_modules/@probe.gl/env/dist/lib/globals.js
1843
+ var self2, window2, document2, process2, console2, navigator2;
1620
1844
  var init_globals3 = __esm({
1621
- "../../node_modules/@probe.gl/env/dist/esm/lib/globals.js"() {
1622
- globals3 = {
1623
- self: typeof self !== "undefined" && self,
1624
- window: typeof window !== "undefined" && window,
1625
- global: typeof global !== "undefined" && global,
1626
- document: typeof document !== "undefined" && document,
1627
- process: typeof process === "object" && process
1628
- };
1629
- self_3 = globals3.self || globals3.window || globals3.global;
1630
- window_3 = globals3.window || globals3.self || globals3.global;
1631
- document_3 = globals3.document || {};
1632
- process_ = globals3.process || {};
1845
+ "node_modules/@probe.gl/env/dist/lib/globals.js"() {
1846
+ self2 = globalThis.self || globalThis.window || globalThis.global;
1847
+ window2 = globalThis.window || globalThis.self || globalThis.global;
1848
+ document2 = globalThis.document || {};
1849
+ process2 = globalThis.process || {};
1850
+ console2 = globalThis.console;
1851
+ navigator2 = globalThis.navigator || {};
1633
1852
  }
1634
1853
  });
1635
1854
 
1636
- // ../../node_modules/@probe.gl/env/dist/esm/utils/globals.js
1855
+ // node_modules/@probe.gl/env/dist/utils/globals.js
1637
1856
  var VERSION4, isBrowser4;
1638
1857
  var init_globals4 = __esm({
1639
- "../../node_modules/@probe.gl/env/dist/esm/utils/globals.js"() {
1858
+ "node_modules/@probe.gl/env/dist/utils/globals.js"() {
1640
1859
  init_is_browser();
1641
1860
  VERSION4 = typeof __VERSION__ !== "undefined" ? __VERSION__ : "untranspiled source";
1642
1861
  isBrowser4 = isBrowser3();
1643
1862
  }
1644
1863
  });
1645
1864
 
1646
- // ../../node_modules/@probe.gl/env/dist/esm/index.js
1647
- var init_esm2 = __esm({
1648
- "../../node_modules/@probe.gl/env/dist/esm/index.js"() {
1865
+ // node_modules/@probe.gl/env/dist/index.js
1866
+ var init_dist2 = __esm({
1867
+ "node_modules/@probe.gl/env/dist/index.js"() {
1649
1868
  init_globals4();
1650
1869
  init_globals3();
1651
1870
  init_is_browser();
1652
1871
  }
1653
1872
  });
1654
1873
 
1655
- // ../../node_modules/@probe.gl/log/dist/esm/utils/local-storage.js
1874
+ // node_modules/@probe.gl/log/dist/utils/local-storage.js
1656
1875
  function getStorage(type) {
1657
1876
  try {
1658
1877
  const storage = window[type];
@@ -1666,35 +1885,28 @@
1666
1885
  }
1667
1886
  var LocalStorage;
1668
1887
  var init_local_storage = __esm({
1669
- "../../node_modules/@probe.gl/log/dist/esm/utils/local-storage.js"() {
1888
+ "node_modules/@probe.gl/log/dist/utils/local-storage.js"() {
1670
1889
  init_defineProperty();
1671
1890
  LocalStorage = class {
1672
- constructor(id) {
1673
- let defaultSettings = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
1891
+ constructor(id, defaultConfig) {
1674
1892
  let type = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "sessionStorage";
1675
1893
  _defineProperty(this, "storage", void 0);
1676
1894
  _defineProperty(this, "id", void 0);
1677
- _defineProperty(this, "config", {});
1895
+ _defineProperty(this, "config", void 0);
1678
1896
  this.storage = getStorage(type);
1679
1897
  this.id = id;
1680
- this.config = {};
1681
- Object.assign(this.config, defaultSettings);
1898
+ this.config = defaultConfig;
1682
1899
  this._loadConfiguration();
1683
1900
  }
1684
1901
  getConfiguration() {
1685
1902
  return this.config;
1686
1903
  }
1687
1904
  setConfiguration(configuration) {
1688
- this.config = {};
1689
- return this.updateConfiguration(configuration);
1690
- }
1691
- updateConfiguration(configuration) {
1692
1905
  Object.assign(this.config, configuration);
1693
1906
  if (this.storage) {
1694
1907
  const serialized = JSON.stringify(this.config);
1695
1908
  this.storage.setItem(this.id, serialized);
1696
1909
  }
1697
- return this;
1698
1910
  }
1699
1911
  _loadConfiguration() {
1700
1912
  let configuration = {};
@@ -1709,7 +1921,7 @@
1709
1921
  }
1710
1922
  });
1711
1923
 
1712
- // ../../node_modules/@probe.gl/log/dist/esm/utils/formatters.js
1924
+ // node_modules/@probe.gl/log/dist/utils/formatters.js
1713
1925
  function formatTime(ms) {
1714
1926
  let formatted;
1715
1927
  if (ms < 10) {
@@ -1740,31 +1952,35 @@
1740
1952
  return ["".concat(message, " %c+"), style];
1741
1953
  }
1742
1954
  var init_formatters = __esm({
1743
- "../../node_modules/@probe.gl/log/dist/esm/utils/formatters.js"() {
1955
+ "node_modules/@probe.gl/log/dist/utils/formatters.js"() {
1744
1956
  }
1745
1957
  });
1746
1958
 
1747
- // ../../node_modules/@probe.gl/log/dist/esm/utils/color.js
1959
+ // node_modules/@probe.gl/log/dist/utils/color.js
1748
1960
  function getColor(color) {
1749
- return typeof color === "string" ? COLOR[color.toUpperCase()] || COLOR.WHITE : color;
1961
+ if (typeof color !== "string") {
1962
+ return color;
1963
+ }
1964
+ color = color.toUpperCase();
1965
+ return COLOR[color] || COLOR.WHITE;
1750
1966
  }
1751
1967
  function addColor(string, color, background) {
1752
1968
  if (!isBrowser3 && typeof string === "string") {
1753
1969
  if (color) {
1754
- color = getColor(color);
1755
- string = "[".concat(color, "m").concat(string, "");
1970
+ const colorCode = getColor(color);
1971
+ string = "[".concat(colorCode, "m").concat(string, "");
1756
1972
  }
1757
1973
  if (background) {
1758
- color = getColor(background);
1759
- string = "[".concat(background + 10, "m").concat(string, "");
1974
+ const colorCode = getColor(background);
1975
+ string = "[".concat(colorCode + BACKGROUND_INCREMENT, "m").concat(string, "");
1760
1976
  }
1761
1977
  }
1762
1978
  return string;
1763
1979
  }
1764
- var COLOR;
1980
+ var COLOR, BACKGROUND_INCREMENT;
1765
1981
  var init_color = __esm({
1766
- "../../node_modules/@probe.gl/log/dist/esm/utils/color.js"() {
1767
- init_esm2();
1982
+ "node_modules/@probe.gl/log/dist/utils/color.js"() {
1983
+ init_dist2();
1768
1984
  (function(COLOR2) {
1769
1985
  COLOR2[COLOR2["BLACK"] = 30] = "BLACK";
1770
1986
  COLOR2[COLOR2["RED"] = 31] = "RED";
@@ -1783,47 +1999,50 @@
1783
1999
  COLOR2[COLOR2["BRIGHT_CYAN"] = 96] = "BRIGHT_CYAN";
1784
2000
  COLOR2[COLOR2["BRIGHT_WHITE"] = 97] = "BRIGHT_WHITE";
1785
2001
  })(COLOR || (COLOR = {}));
2002
+ BACKGROUND_INCREMENT = 10;
1786
2003
  }
1787
2004
  });
1788
2005
 
1789
- // ../../node_modules/@probe.gl/log/dist/esm/utils/autobind.js
2006
+ // node_modules/@probe.gl/log/dist/utils/autobind.js
1790
2007
  function autobind(obj) {
1791
2008
  let predefined = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ["constructor"];
1792
2009
  const proto = Object.getPrototypeOf(obj);
1793
2010
  const propNames = Object.getOwnPropertyNames(proto);
2011
+ const object = obj;
1794
2012
  for (const key of propNames) {
1795
- if (typeof obj[key] === "function") {
2013
+ const value = object[key];
2014
+ if (typeof value === "function") {
1796
2015
  if (!predefined.find((name) => key === name)) {
1797
- obj[key] = obj[key].bind(obj);
2016
+ object[key] = value.bind(obj);
1798
2017
  }
1799
2018
  }
1800
2019
  }
1801
2020
  }
1802
2021
  var init_autobind = __esm({
1803
- "../../node_modules/@probe.gl/log/dist/esm/utils/autobind.js"() {
2022
+ "node_modules/@probe.gl/log/dist/utils/autobind.js"() {
1804
2023
  }
1805
2024
  });
1806
2025
 
1807
- // ../../node_modules/@probe.gl/log/dist/esm/utils/assert.js
2026
+ // node_modules/@probe.gl/log/dist/utils/assert.js
1808
2027
  function assert3(condition, message) {
1809
2028
  if (!condition) {
1810
2029
  throw new Error(message || "Assertion failed");
1811
2030
  }
1812
2031
  }
1813
2032
  var init_assert3 = __esm({
1814
- "../../node_modules/@probe.gl/log/dist/esm/utils/assert.js"() {
2033
+ "node_modules/@probe.gl/log/dist/utils/assert.js"() {
1815
2034
  }
1816
2035
  });
1817
2036
 
1818
- // ../../node_modules/@probe.gl/log/dist/esm/utils/hi-res-timestamp.js
2037
+ // node_modules/@probe.gl/log/dist/utils/hi-res-timestamp.js
1819
2038
  function getHiResTimestamp2() {
1820
2039
  let timestamp;
1821
- if (isBrowser3 && "performance" in window_3) {
2040
+ if (isBrowser3() && window2.performance) {
1822
2041
  var _window$performance, _window$performance$n;
1823
- timestamp = window_3 === null || window_3 === void 0 ? void 0 : (_window$performance = window_3.performance) === null || _window$performance === void 0 ? void 0 : (_window$performance$n = _window$performance.now) === null || _window$performance$n === void 0 ? void 0 : _window$performance$n.call(_window$performance);
1824
- } else if ("hrtime" in process_) {
2042
+ timestamp = window2 === null || window2 === void 0 ? void 0 : (_window$performance = window2.performance) === null || _window$performance === void 0 ? void 0 : (_window$performance$n = _window$performance.now) === null || _window$performance$n === void 0 ? void 0 : _window$performance$n.call(_window$performance);
2043
+ } else if ("hrtime" in process2) {
1825
2044
  var _process$hrtime;
1826
- const timeParts = process_ === null || process_ === void 0 ? void 0 : (_process$hrtime = process_.hrtime) === null || _process$hrtime === void 0 ? void 0 : _process$hrtime.call(process_);
2045
+ const timeParts = process2 === null || process2 === void 0 ? void 0 : (_process$hrtime = process2.hrtime) === null || _process$hrtime === void 0 ? void 0 : _process$hrtime.call(process2);
1827
2046
  timestamp = timeParts[0] * 1e3 + timeParts[1] / 1e6;
1828
2047
  } else {
1829
2048
  timestamp = Date.now();
@@ -1831,18 +2050,12 @@
1831
2050
  return timestamp;
1832
2051
  }
1833
2052
  var init_hi_res_timestamp2 = __esm({
1834
- "../../node_modules/@probe.gl/log/dist/esm/utils/hi-res-timestamp.js"() {
1835
- init_esm2();
1836
- }
1837
- });
1838
-
1839
- // (disabled):../../node_modules/@probe.gl/log/dist/esm/node/node-asciify-image
1840
- var init_node_asciify_image = __esm({
1841
- "(disabled):../../node_modules/@probe.gl/log/dist/esm/node/node-asciify-image"() {
2053
+ "node_modules/@probe.gl/log/dist/utils/hi-res-timestamp.js"() {
2054
+ init_dist2();
1842
2055
  }
1843
2056
  });
1844
2057
 
1845
- // ../../node_modules/@probe.gl/log/dist/esm/log.js
2058
+ // node_modules/@probe.gl/log/dist/log.js
1846
2059
  function noop() {
1847
2060
  }
1848
2061
  function normalizeLogLevel(logLevel) {
@@ -1908,11 +2121,7 @@
1908
2121
  message = "",
1909
2122
  scale = 1
1910
2123
  } = _ref2;
1911
- asciify.nodeAsciifyImage({
1912
- image,
1913
- message,
1914
- scale
1915
- });
2124
+ console.warn("removed");
1916
2125
  return noop;
1917
2126
  }
1918
2127
  function logImageInBrowser(_ref3) {
@@ -1951,26 +2160,25 @@
1951
2160
  }
1952
2161
  return "empty";
1953
2162
  }
1954
- var originalConsole, DEFAULT_SETTINGS, cache, ONCE, Log;
2163
+ var originalConsole, DEFAULT_LOG_CONFIGURATION, cache, ONCE, Log;
1955
2164
  var init_log = __esm({
1956
- "../../node_modules/@probe.gl/log/dist/esm/log.js"() {
2165
+ "node_modules/@probe.gl/log/dist/log.js"() {
1957
2166
  init_defineProperty();
1958
- init_esm2();
2167
+ init_dist2();
1959
2168
  init_local_storage();
1960
2169
  init_formatters();
1961
2170
  init_color();
1962
2171
  init_autobind();
1963
2172
  init_assert3();
1964
2173
  init_hi_res_timestamp2();
1965
- init_node_asciify_image();
1966
2174
  originalConsole = {
1967
- debug: isBrowser3 ? console.debug || console.log : console.log,
2175
+ debug: isBrowser3() ? console.debug || console.log : console.log,
1968
2176
  log: console.log,
1969
2177
  info: console.info,
1970
2178
  warn: console.warn,
1971
2179
  error: console.error
1972
2180
  };
1973
- DEFAULT_SETTINGS = {
2181
+ DEFAULT_LOG_CONFIGURATION = {
1974
2182
  enabled: true,
1975
2183
  level: 0
1976
2184
  };
@@ -1993,8 +2201,8 @@
1993
2201
  _defineProperty(this, "userData", {});
1994
2202
  _defineProperty(this, "LOG_THROTTLE_TIMEOUT", 0);
1995
2203
  this.id = id;
1996
- this._storage = new LocalStorage("__probe-".concat(this.id, "__"), DEFAULT_SETTINGS);
1997
2204
  this.userData = {};
2205
+ this._storage = new LocalStorage("__probe-".concat(this.id, "__"), DEFAULT_LOG_CONFIGURATION);
1998
2206
  this.timeStamp("".concat(this.id, " started"));
1999
2207
  autobind(this);
2000
2208
  Object.seal(this);
@@ -2028,13 +2236,13 @@
2028
2236
  }
2029
2237
  enable() {
2030
2238
  let enabled = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : true;
2031
- this._storage.updateConfiguration({
2239
+ this._storage.setConfiguration({
2032
2240
  enabled
2033
2241
  });
2034
2242
  return this;
2035
2243
  }
2036
2244
  setLevel(level) {
2037
- this._storage.updateConfiguration({
2245
+ this._storage.setConfiguration({
2038
2246
  level
2039
2247
  });
2040
2248
  return this;
@@ -2043,7 +2251,7 @@
2043
2251
  return this._storage.config[setting];
2044
2252
  }
2045
2253
  set(setting, value) {
2046
- this._storage.updateConfiguration({
2254
+ this._storage.setConfiguration({
2047
2255
  [setting]: value
2048
2256
  });
2049
2257
  }
@@ -2082,9 +2290,6 @@
2082
2290
  return this._getLogFunction(logLevel, message, console.info, arguments);
2083
2291
  }
2084
2292
  once(logLevel, message) {
2085
- for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
2086
- args[_key - 2] = arguments[_key];
2087
- }
2088
2293
  return this._getLogFunction(logLevel, message, originalConsole.debug || originalConsole.info, arguments, ONCE);
2089
2294
  }
2090
2295
  table(logLevel, table, columns) {
@@ -2106,7 +2311,7 @@
2106
2311
  if (!this._shouldLog(logLevel || priority)) {
2107
2312
  return noop;
2108
2313
  }
2109
- return isBrowser3 ? logImageInBrowser({
2314
+ return isBrowser3() ? logImageInBrowser({
2110
2315
  image,
2111
2316
  message,
2112
2317
  scale
@@ -2179,7 +2384,7 @@
2179
2384
  opts.delta = this.getDelta();
2180
2385
  this._deltaTs = getHiResTimestamp2();
2181
2386
  const tag = opts.tag || opts.message;
2182
- if (opts.once) {
2387
+ if (opts.once && tag) {
2183
2388
  if (!cache[tag]) {
2184
2389
  cache[tag] = getHiResTimestamp2();
2185
2390
  } else {
@@ -2196,13 +2401,13 @@
2196
2401
  }
2197
2402
  });
2198
2403
 
2199
- // ../../node_modules/@probe.gl/log/dist/esm/index.js
2200
- var esm_default;
2201
- var init_esm3 = __esm({
2202
- "../../node_modules/@probe.gl/log/dist/esm/index.js"() {
2404
+ // node_modules/@probe.gl/log/dist/index.js
2405
+ var dist_default;
2406
+ var init_dist3 = __esm({
2407
+ "node_modules/@probe.gl/log/dist/index.js"() {
2203
2408
  init_log();
2204
2409
  init_log();
2205
- esm_default = new Log({
2410
+ dist_default = new Log({
2206
2411
  id: "@probe.gl/log"
2207
2412
  });
2208
2413
  }
@@ -2212,7 +2417,7 @@
2212
2417
  var probeLog, NullLog, ConsoleLog;
2213
2418
  var init_loggers = __esm({
2214
2419
  "src/lib/loader-utils/loggers.ts"() {
2215
- init_esm3();
2420
+ init_dist3();
2216
2421
  probeLog = new Log({ id: "loaders.gl" });
2217
2422
  NullLog = class {
2218
2423
  log() {
@@ -2315,20 +2520,6 @@
2315
2520
  validateOptions(options, loaders);
2316
2521
  return normalizeOptionsInternal(loader, options, url);
2317
2522
  }
2318
- function getFetchFunction(options, context) {
2319
- const globalOptions = getGlobalLoaderOptions();
2320
- const fetchOptions = options || globalOptions;
2321
- if (typeof fetchOptions.fetch === "function") {
2322
- return fetchOptions.fetch;
2323
- }
2324
- if (isObject(fetchOptions.fetch)) {
2325
- return (url) => fetchFile(url, fetchOptions);
2326
- }
2327
- if (context?.fetch) {
2328
- return context?.fetch;
2329
- }
2330
- return fetchFile;
2331
- }
2332
2523
  function validateOptions(options, loaders) {
2333
2524
  validateOptionsObject(options, null, DEFAULT_LOADER_OPTIONS, REMOVED_LOADER_OPTIONS, loaders);
2334
2525
  for (const loader of loaders) {
@@ -2407,7 +2598,6 @@
2407
2598
  var init_option_utils = __esm({
2408
2599
  "src/lib/loader-utils/option-utils.ts"() {
2409
2600
  init_is_type();
2410
- init_fetch_file();
2411
2601
  init_loggers();
2412
2602
  init_option_defaults();
2413
2603
  getGlobalLoaderOptions = () => {
@@ -2498,7 +2688,7 @@
2498
2688
  var log;
2499
2689
  var init_log2 = __esm({
2500
2690
  "src/lib/utils/log.ts"() {
2501
- init_esm3();
2691
+ init_dist3();
2502
2692
  log = new Log({ id: "loaders.gl" });
2503
2693
  }
2504
2694
  });
@@ -2771,7 +2961,7 @@
2771
2961
  if (done) {
2772
2962
  return;
2773
2963
  }
2774
- yield toArrayBuffer(value);
2964
+ yield toArrayBuffer2(value);
2775
2965
  }
2776
2966
  } catch (error) {
2777
2967
  reader.releaseLock();
@@ -2779,7 +2969,7 @@
2779
2969
  }
2780
2970
  async function* makeNodeStreamIterator(stream, options) {
2781
2971
  for await (const chunk of stream) {
2782
- yield toArrayBuffer(chunk);
2972
+ yield toArrayBuffer2(chunk);
2783
2973
  }
2784
2974
  }
2785
2975
  var init_make_stream_iterator = __esm({
@@ -2917,6 +3107,29 @@
2917
3107
  }
2918
3108
  });
2919
3109
 
3110
+ // src/lib/loader-utils/get-fetch-function.ts
3111
+ function getFetchFunction(options, context) {
3112
+ const globalOptions = getGlobalLoaderOptions();
3113
+ const fetchOptions = options || globalOptions;
3114
+ if (typeof fetchOptions.fetch === "function") {
3115
+ return fetchOptions.fetch;
3116
+ }
3117
+ if (isObject(fetchOptions.fetch)) {
3118
+ return (url) => fetchFile(url, fetchOptions);
3119
+ }
3120
+ if (context?.fetch) {
3121
+ return context?.fetch;
3122
+ }
3123
+ return fetchFile;
3124
+ }
3125
+ var init_get_fetch_function = __esm({
3126
+ "src/lib/loader-utils/get-fetch-function.ts"() {
3127
+ init_is_type();
3128
+ init_fetch_file();
3129
+ init_option_utils();
3130
+ }
3131
+ });
3132
+
2920
3133
  // src/lib/loader-utils/loader-context.ts
2921
3134
  function getLoaderContext(context, options, previousContext = null) {
2922
3135
  if (previousContext) {
@@ -2947,7 +3160,7 @@
2947
3160
  }
2948
3161
  var init_loader_context = __esm({
2949
3162
  "src/lib/loader-utils/loader-context.ts"() {
2950
- init_option_utils();
3163
+ init_get_fetch_function();
2951
3164
  }
2952
3165
  });
2953
3166
 
@@ -3156,7 +3369,7 @@
3156
3369
  "src/lib/api/load.ts"() {
3157
3370
  init_is_type();
3158
3371
  init_normalize_loader();
3159
- init_option_utils();
3372
+ init_get_fetch_function();
3160
3373
  init_parse();
3161
3374
  }
3162
3375
  });
@@ -3186,7 +3399,7 @@
3186
3399
  var init_load_in_batches = __esm({
3187
3400
  "src/lib/api/load-in-batches.ts"() {
3188
3401
  init_normalize_loader();
3189
- init_option_utils();
3402
+ init_get_fetch_function();
3190
3403
  init_parse_in_batches();
3191
3404
  }
3192
3405
  });
@@ -3217,7 +3430,7 @@
3217
3430
  }
3218
3431
  if (!isBrowser && writer.encodeURLtoURL) {
3219
3432
  const tmpInputFilename = getTemporaryFilename("input");
3220
- await writeFile(tmpInputFilename, data);
3433
+ await writeFile2(tmpInputFilename, data);
3221
3434
  const tmpOutputFilename = getTemporaryFilename("output");
3222
3435
  const outputFilename = await encodeURLtoURL(tmpInputFilename, tmpOutputFilename, writer, options);
3223
3436
  const response = await fetchFile(outputFilename);
@@ -3279,11 +3492,11 @@
3279
3492
  // src/lib/api/save.ts
3280
3493
  async function save(data, url, writer, options) {
3281
3494
  const encodedData = await encode(data, writer, options);
3282
- return await writeFile(url, encodedData);
3495
+ return await writeFile2(url, encodedData);
3283
3496
  }
3284
3497
  function saveSync(data, url, writer, options) {
3285
3498
  const encodedData = encodeSync(data, writer, options);
3286
- return writeFileSync(url, encodedData);
3499
+ return writeFileSync2(url, encodedData);
3287
3500
  }
3288
3501
  var init_save = __esm({
3289
3502
  "src/lib/api/save.ts"() {
@@ -3383,8 +3596,8 @@
3383
3596
  return response;
3384
3597
  }
3385
3598
  const contentLength = response.headers.get("content-length") || 0;
3386
- const totalBytes = contentLength && parseInt(contentLength);
3387
- if (!(contentLength > 0)) {
3599
+ const totalBytes = contentLength ? parseInt(contentLength) : 0;
3600
+ if (!(totalBytes > 0)) {
3388
3601
  return response;
3389
3602
  }
3390
3603
  if (typeof ReadableStream === "undefined" || !body.getReader) {
@@ -3393,12 +3606,12 @@
3393
3606
  const progressStream = new ReadableStream({
3394
3607
  async start(controller) {
3395
3608
  const reader = body.getReader();
3396
- await read(controller, reader, 0, totalBytes, onProgress, onDone, onError);
3609
+ await read2(controller, reader, 0, totalBytes, onProgress, onDone, onError);
3397
3610
  }
3398
3611
  });
3399
3612
  return new Response(progressStream);
3400
3613
  }
3401
- async function read(controller, reader, loadedBytes, totalBytes, onProgress, onDone, onError) {
3614
+ async function read2(controller, reader, loadedBytes, totalBytes, onProgress, onDone, onError) {
3402
3615
  try {
3403
3616
  const { done, value } = await reader.read();
3404
3617
  if (done) {
@@ -3410,7 +3623,7 @@
3410
3623
  const percent = Math.round(loadedBytes / totalBytes * 100);
3411
3624
  onProgress(percent, { loadedBytes, totalBytes });
3412
3625
  controller.enqueue(value);
3413
- await read(controller, reader, loadedBytes, totalBytes, onProgress, onDone, onError);
3626
+ await read2(controller, reader, loadedBytes, totalBytes, onProgress, onDone, onError);
3414
3627
  } catch (error) {
3415
3628
  controller.error(error);
3416
3629
  onError(error);
@@ -3548,7 +3761,7 @@
3548
3761
  parseInBatches: () => parseInBatches,
3549
3762
  parseSync: () => parseSync,
3550
3763
  readArrayBuffer: () => readArrayBuffer,
3551
- readFileSync: () => readFileSync,
3764
+ readFileSync: () => readFileSync2,
3552
3765
  registerLoaders: () => registerLoaders,
3553
3766
  resolvePath: () => resolvePath,
3554
3767
  save: () => save,
@@ -3559,8 +3772,8 @@
3559
3772
  setLoaderOptions: () => setGlobalOptions,
3560
3773
  setPathPrefix: () => setPathPrefix,
3561
3774
  window: () => window_,
3562
- writeFile: () => writeFile,
3563
- writeFileSync: () => writeFileSync
3775
+ writeFile: () => writeFile2,
3776
+ writeFileSync: () => writeFileSync2
3564
3777
  });
3565
3778
  var init_src3 = __esm({
3566
3779
  "src/index.ts"() {