@loaders.gl/schema 4.0.0-alpha.23 → 4.0.0-alpha.25

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 (98) hide show
  1. package/dist/dist.min.js +543 -934
  2. package/dist/es5/index.js +7 -0
  3. package/dist/es5/index.js.map +1 -1
  4. package/dist/es5/lib/table/arrow-api/arrow-like-table.js +1 -1
  5. package/dist/es5/lib/table/arrow-api/arrow-like-table.js.map +1 -1
  6. package/dist/es5/lib/table/batches/row-table-batch-aggregator.js.map +1 -1
  7. package/dist/es5/lib/table/simple-table/convert-table.js +24 -0
  8. package/dist/es5/lib/table/simple-table/convert-table.js.map +1 -1
  9. package/dist/es5/lib/table/simple-table/table-accessors.js +52 -31
  10. package/dist/es5/lib/table/simple-table/table-accessors.js.map +1 -1
  11. package/dist/es5/types/batch.js +2 -0
  12. package/dist/es5/types/batch.js.map +1 -0
  13. package/dist/es5/types/binary-geometries.js.map +1 -1
  14. package/dist/es5/types/category-gis.js.map +1 -1
  15. package/dist/es5/types/category-table.js.map +1 -1
  16. package/dist/es5/types/schema.js.map +1 -1
  17. package/dist/esm/index.js +1 -0
  18. package/dist/esm/index.js.map +1 -1
  19. package/dist/esm/lib/table/arrow-api/arrow-like-table.js +1 -1
  20. package/dist/esm/lib/table/arrow-api/arrow-like-table.js.map +1 -1
  21. package/dist/esm/lib/table/batches/row-table-batch-aggregator.js.map +1 -1
  22. package/dist/esm/lib/table/simple-table/convert-table.js +22 -0
  23. package/dist/esm/lib/table/simple-table/convert-table.js.map +1 -1
  24. package/dist/esm/lib/table/simple-table/table-accessors.js +32 -11
  25. package/dist/esm/lib/table/simple-table/table-accessors.js.map +1 -1
  26. package/dist/esm/types/batch.js +2 -0
  27. package/dist/esm/types/batch.js.map +1 -0
  28. package/dist/esm/types/binary-geometries.js.map +1 -1
  29. package/dist/esm/types/category-gis.js.map +1 -1
  30. package/dist/esm/types/category-table.js.map +1 -1
  31. package/dist/esm/types/schema.js.map +1 -1
  32. package/dist/index.d.ts +7 -5
  33. package/dist/index.d.ts.map +1 -1
  34. package/dist/lib/table/batches/row-table-batch-aggregator.d.ts +3 -3
  35. package/dist/lib/table/batches/row-table-batch-aggregator.d.ts.map +1 -1
  36. package/dist/lib/table/simple-table/convert-table.d.ts +34 -1
  37. package/dist/lib/table/simple-table/convert-table.d.ts.map +1 -1
  38. package/dist/lib/table/simple-table/table-accessors.d.ts.map +1 -1
  39. package/dist/types/batch.d.ts +34 -0
  40. package/dist/types/batch.d.ts.map +1 -0
  41. package/dist/types/binary-geometries.d.ts +9 -7
  42. package/dist/types/binary-geometries.d.ts.map +1 -1
  43. package/dist/types/category-gis.d.ts +1 -1
  44. package/dist/types/category-gis.d.ts.map +1 -1
  45. package/dist/types/category-table.d.ts +21 -13
  46. package/dist/types/category-table.d.ts.map +1 -1
  47. package/dist/types/schema.d.ts +0 -15
  48. package/dist/types/schema.d.ts.map +1 -1
  49. package/package.json +2 -2
  50. package/src/index.ts +13 -7
  51. package/src/lib/table/arrow-api/arrow-like-table.ts +1 -1
  52. package/src/lib/table/batches/row-table-batch-aggregator.ts +2 -2
  53. package/src/lib/table/simple-table/convert-table.ts +73 -1
  54. package/src/lib/table/simple-table/table-accessors.ts +41 -13
  55. package/src/types/batch.ts +41 -0
  56. package/src/types/binary-geometries.ts +10 -7
  57. package/src/types/category-gis.ts +5 -4
  58. package/src/types/category-table.ts +22 -13
  59. package/src/types/schema.ts +0 -17
  60. package/dist/bundle.js +0 -5
  61. package/dist/index.js +0 -92
  62. package/dist/lib/mesh/convert-mesh.js +0 -40
  63. package/dist/lib/mesh/deduce-mesh-schema.js +0 -66
  64. package/dist/lib/mesh/mesh-to-arrow-table.js +0 -44
  65. package/dist/lib/mesh/mesh-utils.js +0 -51
  66. package/dist/lib/table/arrow/arrow-type-utils.js +0 -53
  67. package/dist/lib/table/arrow/convert-schema-arrow.js +0 -187
  68. package/dist/lib/table/arrow/convert-table-to-arrow.js +0 -57
  69. package/dist/lib/table/arrow-api/arrow-like-field.js +0 -34
  70. package/dist/lib/table/arrow-api/arrow-like-schema.js +0 -81
  71. package/dist/lib/table/arrow-api/arrow-like-table.js +0 -53
  72. package/dist/lib/table/arrow-api/arrow-like-type.js +0 -463
  73. package/dist/lib/table/arrow-api/enum.js +0 -97
  74. package/dist/lib/table/arrow-api/get-type-info.js +0 -29
  75. package/dist/lib/table/arrow-api/index.js +0 -25
  76. package/dist/lib/table/batches/base-table-batch-aggregator.js +0 -60
  77. package/dist/lib/table/batches/columnar-table-batch-aggregator.js +0 -92
  78. package/dist/lib/table/batches/row-table-batch-aggregator.js +0 -81
  79. package/dist/lib/table/batches/table-batch-aggregator.js +0 -3
  80. package/dist/lib/table/batches/table-batch-builder.js +0 -152
  81. package/dist/lib/table/simple-table/convert-table.js +0 -65
  82. package/dist/lib/table/simple-table/data-type.js +0 -93
  83. package/dist/lib/table/simple-table/make-table.js +0 -95
  84. package/dist/lib/table/simple-table/row-utils.js +0 -33
  85. package/dist/lib/table/simple-table/table-accessors.js +0 -319
  86. package/dist/lib/table/simple-table/table-column.js +0 -41
  87. package/dist/lib/table/simple-table/table-schema.js +0 -85
  88. package/dist/lib/utils/assert.js +0 -12
  89. package/dist/lib/utils/async-queue.js +0 -92
  90. package/dist/types/binary-geometries.js +0 -2
  91. package/dist/types/category-gis.js +0 -3
  92. package/dist/types/category-image.js +0 -2
  93. package/dist/types/category-mesh.js +0 -3
  94. package/dist/types/category-table.js +0 -3
  95. package/dist/types/category-texture.js +0 -3
  96. package/dist/types/flat-geometries.js +0 -3
  97. package/dist/types/schema.js +0 -3
  98. package/dist/types/types.js +0 -2
package/dist/dist.min.js CHANGED
@@ -1,10 +1,5 @@
1
1
  (() => {
2
- var __create = Object.create;
3
2
  var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
3
  var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
9
4
  var __esm = (fn, res) => function __init() {
10
5
  return fn && (res = (0, fn[Object.keys(fn)[0]])(fn = 0)), res;
@@ -17,17 +12,6 @@
17
12
  for (var name in all)
18
13
  __defProp(target, name, { get: all[name], enumerable: true });
19
14
  };
20
- var __reExport = (target, module, desc) => {
21
- if (module && typeof module === "object" || typeof module === "function") {
22
- for (let key of __getOwnPropNames(module))
23
- if (!__hasOwnProp.call(target, key) && key !== "default")
24
- __defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable });
25
- }
26
- return target;
27
- };
28
- var __toModule = (module) => {
29
- return __reExport(__markAsModule(__defProp(module != null ? __create(__getProtoOf(module)) : {}, "default", module && module.__esModule && "default" in module ? { get: () => module.default, enumerable: true } : { value: module, enumerable: true })), module);
30
- };
31
15
 
32
16
  // src/lib/table/batches/base-table-batch-aggregator.ts
33
17
  var DEFAULT_ROW_COUNT, BaseTableBatchAggregator;
@@ -422,8 +406,9 @@
422
406
  switch (table.shape) {
423
407
  case "array-row-table":
424
408
  case "object-row-table":
425
- case "geojson-row-table":
426
409
  return table.data.length;
410
+ case "geojson-table":
411
+ return table.features.length;
427
412
  case "arrow-table":
428
413
  return table.data.numRows;
429
414
  case "columnar-table":
@@ -446,8 +431,9 @@
446
431
  case "array-row-table":
447
432
  return table.data[0].length;
448
433
  case "object-row-table":
449
- case "geojson-row-table":
450
434
  return Object.keys(table.data[0]).length;
435
+ case "geojson-table":
436
+ return Object.keys(table.features[0]).length;
451
437
  case "columnar-table":
452
438
  return Object.keys(table.data).length;
453
439
  case "arrow-table":
@@ -462,8 +448,9 @@
462
448
  const columnIndex = getTableColumnIndex(table, columnName);
463
449
  return table.data[rowIndex][columnIndex];
464
450
  case "object-row-table":
465
- case "geojson-row-table":
466
451
  return table.data[rowIndex][columnName];
452
+ case "geojson-table":
453
+ return table.features[rowIndex][columnName];
467
454
  case "columnar-table":
468
455
  const column = table.data[columnName];
469
456
  return column[rowIndex];
@@ -479,7 +466,7 @@
479
466
  case "array-row-table":
480
467
  case "object-row-table":
481
468
  return table.shape;
482
- case "geojson-row-table":
469
+ case "geojson-table":
483
470
  return "object-row-table";
484
471
  case "columnar-table":
485
472
  default:
@@ -505,7 +492,6 @@
505
492
  case "object-row-table":
506
493
  return copy ? Object.fromEntries(Object.entries(table.data[rowIndex])) : table.data[rowIndex];
507
494
  case "array-row-table":
508
- case "geojson-row-table":
509
495
  if (table.schema) {
510
496
  const objectRow2 = target || {};
511
497
  for (let i = 0; i < table.schema.fields.length; i++) {
@@ -514,6 +500,15 @@
514
500
  return objectRow2;
515
501
  }
516
502
  throw new Error("no schema");
503
+ case "geojson-table":
504
+ if (table.schema) {
505
+ const objectRow2 = target || {};
506
+ for (let i = 0; i < table.schema.fields.length; i++) {
507
+ objectRow2[table.schema.fields[i].name] = table.features[rowIndex][i];
508
+ }
509
+ return objectRow2;
510
+ }
511
+ throw new Error("no schema");
517
512
  case "columnar-table":
518
513
  if (table.schema) {
519
514
  const objectRow2 = target || {};
@@ -545,7 +540,6 @@
545
540
  case "array-row-table":
546
541
  return copy ? Array.from(table.data[rowIndex]) : table.data[rowIndex];
547
542
  case "object-row-table":
548
- case "geojson-row-table":
549
543
  if (table.schema) {
550
544
  const arrayRow2 = target || [];
551
545
  for (let i = 0; i < table.schema.fields.length; i++) {
@@ -554,6 +548,15 @@
554
548
  return arrayRow2;
555
549
  }
556
550
  return Object.values(table.data[rowIndex]);
551
+ case "geojson-table":
552
+ if (table.schema) {
553
+ const arrayRow2 = target || [];
554
+ for (let i = 0; i < table.schema.fields.length; i++) {
555
+ arrayRow2[i] = table.features[rowIndex][table.schema.fields[i].name];
556
+ }
557
+ return arrayRow2;
558
+ }
559
+ return Object.values(table.features[rowIndex]);
557
560
  case "columnar-table":
558
561
  if (table.schema) {
559
562
  const arrayRow2 = target || [];
@@ -751,6 +754,31 @@
751
754
  return "null";
752
755
  }
753
756
  }
757
+ function getArrayTypeFromDataType(type, nullable) {
758
+ if (!nullable) {
759
+ switch (type) {
760
+ case "int8":
761
+ return Int8Array;
762
+ case "uint8":
763
+ return Uint8Array;
764
+ case "int16":
765
+ return Int16Array;
766
+ case "uint16":
767
+ return Uint16Array;
768
+ case "int32":
769
+ return Int32Array;
770
+ case "uint32":
771
+ return Uint32Array;
772
+ case "float32":
773
+ return Float32Array;
774
+ case "float64":
775
+ return Float64Array;
776
+ default:
777
+ break;
778
+ }
779
+ }
780
+ return Array;
781
+ }
754
782
  var init_data_type = __esm({
755
783
  "src/lib/table/simple-table/data-type.ts"() {
756
784
  }
@@ -855,7 +883,7 @@
855
883
  this.table = { ...table, schema };
856
884
  }
857
885
  get data() {
858
- return this.table.data;
886
+ return this.table.shape === "geojson-table" ? this.table.features : this.table.data;
859
887
  }
860
888
  get numCols() {
861
889
  return getTableNumCols(this.table);
@@ -913,6 +941,98 @@
913
941
  }
914
942
  });
915
943
 
944
+ // src/lib/table/simple-table/table-column.ts
945
+ function makeColumnFromField(field, length) {
946
+ const ArrayType = getArrayTypeFromDataType(field.type, field.nullable);
947
+ return new ArrayType(length);
948
+ }
949
+ var init_table_column = __esm({
950
+ "src/lib/table/simple-table/table-column.ts"() {
951
+ init_data_type();
952
+ }
953
+ });
954
+
955
+ // src/lib/table/simple-table/convert-table.ts
956
+ function convertTable(table, shape) {
957
+ switch (shape) {
958
+ case "object-row-table":
959
+ return makeObjectRowTable(table);
960
+ case "array-row-table":
961
+ return makeArrayRowTable(table);
962
+ case "columnar-table":
963
+ return makeColumnarTable(table);
964
+ case "arrow-table":
965
+ return makeArrowTable(table);
966
+ default:
967
+ throw new Error(shape);
968
+ }
969
+ }
970
+ function makeArrowTable(table) {
971
+ const _makeArrowTable = globalThis.__luma?._makeArrowTable;
972
+ if (!_makeArrowTable) {
973
+ throw new Error("");
974
+ }
975
+ return _makeArrowTable(table);
976
+ }
977
+ function makeColumnarTable(table) {
978
+ const schema = table.schema || deduceTableSchema(table);
979
+ const fields = table.schema?.fields || [];
980
+ if (table.shape === "columnar-table") {
981
+ return { ...table, schema };
982
+ }
983
+ const length = getTableLength(table);
984
+ const columns = {};
985
+ for (const field of fields) {
986
+ const column = makeColumnFromField(field, length);
987
+ columns[field.name] = column;
988
+ for (let rowIndex = 0; rowIndex < length; rowIndex++) {
989
+ column[rowIndex] = getTableCell(table, rowIndex, field.name);
990
+ }
991
+ }
992
+ return {
993
+ shape: "columnar-table",
994
+ schema,
995
+ data: columns
996
+ };
997
+ }
998
+ function makeArrayRowTable(table) {
999
+ if (table.shape === "array-row-table") {
1000
+ return table;
1001
+ }
1002
+ const length = getTableLength(table);
1003
+ const data = new Array(length);
1004
+ for (let rowIndex = 0; rowIndex < length; rowIndex++) {
1005
+ data[rowIndex] = getTableRowAsArray(table, rowIndex);
1006
+ }
1007
+ return {
1008
+ shape: "array-row-table",
1009
+ schema: table.schema,
1010
+ data
1011
+ };
1012
+ }
1013
+ function makeObjectRowTable(table) {
1014
+ if (table.shape === "object-row-table") {
1015
+ return table;
1016
+ }
1017
+ const length = getTableLength(table);
1018
+ const data = new Array(length);
1019
+ for (let rowIndex = 0; rowIndex < length; rowIndex++) {
1020
+ data[rowIndex] = getTableRowAsObject(table, rowIndex);
1021
+ }
1022
+ return {
1023
+ shape: "object-row-table",
1024
+ schema: table.schema,
1025
+ data
1026
+ };
1027
+ }
1028
+ var init_convert_table = __esm({
1029
+ "src/lib/table/simple-table/convert-table.ts"() {
1030
+ init_table_accessors();
1031
+ init_table_schema();
1032
+ init_table_column();
1033
+ }
1034
+ });
1035
+
916
1036
  // src/lib/mesh/mesh-utils.ts
917
1037
  function getMeshSize(attributes) {
918
1038
  let size = 0;
@@ -1457,549 +1577,134 @@
1457
1577
  }
1458
1578
  });
1459
1579
 
1460
- // ../../node_modules/apache-arrow/node_modules/tslib/tslib.js
1461
- var require_tslib = __commonJS({
1462
- "../../node_modules/apache-arrow/node_modules/tslib/tslib.js"(exports, module) {
1463
- var __extends2;
1464
- var __assign2;
1465
- var __rest2;
1466
- var __decorate2;
1467
- var __param2;
1468
- var __esDecorate2;
1469
- var __runInitializers2;
1470
- var __propKey2;
1471
- var __setFunctionName2;
1472
- var __metadata2;
1473
- var __awaiter2;
1474
- var __generator2;
1475
- var __exportStar2;
1476
- var __values2;
1477
- var __read2;
1478
- var __spread2;
1479
- var __spreadArrays2;
1480
- var __spreadArray2;
1481
- var __await2;
1482
- var __asyncGenerator2;
1483
- var __asyncDelegator2;
1484
- var __asyncValues2;
1485
- var __makeTemplateObject2;
1486
- var __importStar2;
1487
- var __importDefault2;
1488
- var __classPrivateFieldGet2;
1489
- var __classPrivateFieldSet2;
1490
- var __classPrivateFieldIn2;
1491
- var __createBinding2;
1492
- (function(factory) {
1493
- var root = typeof global === "object" ? global : typeof self === "object" ? self : typeof this === "object" ? this : {};
1494
- if (typeof define === "function" && define.amd) {
1495
- define("tslib", ["exports"], function(exports2) {
1496
- factory(createExporter(root, createExporter(exports2)));
1497
- });
1498
- } else if (typeof module === "object" && typeof module.exports === "object") {
1499
- factory(createExporter(root, createExporter(module.exports)));
1500
- } else {
1501
- factory(createExporter(root));
1580
+ // ../../node_modules/apache-arrow/node_modules/tslib/tslib.es6.mjs
1581
+ function __rest(s, e) {
1582
+ var t = {};
1583
+ for (var p in s)
1584
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
1585
+ t[p] = s[p];
1586
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
1587
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
1588
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
1589
+ t[p[i]] = s[p[i]];
1590
+ }
1591
+ return t;
1592
+ }
1593
+ function __awaiter(thisArg, _arguments, P, generator) {
1594
+ function adopt(value) {
1595
+ return value instanceof P ? value : new P(function(resolve) {
1596
+ resolve(value);
1597
+ });
1598
+ }
1599
+ return new (P || (P = Promise))(function(resolve, reject) {
1600
+ function fulfilled(value) {
1601
+ try {
1602
+ step(generator.next(value));
1603
+ } catch (e) {
1604
+ reject(e);
1502
1605
  }
1503
- function createExporter(exports2, previous) {
1504
- if (exports2 !== root) {
1505
- if (typeof Object.create === "function") {
1506
- Object.defineProperty(exports2, "__esModule", { value: true });
1507
- } else {
1508
- exports2.__esModule = true;
1509
- }
1510
- }
1511
- return function(id, v) {
1512
- return exports2[id] = previous ? previous(id, v) : v;
1513
- };
1606
+ }
1607
+ function rejected(value) {
1608
+ try {
1609
+ step(generator["throw"](value));
1610
+ } catch (e) {
1611
+ reject(e);
1514
1612
  }
1515
- })(function(exporter) {
1516
- var extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, b) {
1517
- d.__proto__ = b;
1518
- } || function(d, b) {
1519
- for (var p in b)
1520
- if (Object.prototype.hasOwnProperty.call(b, p))
1521
- d[p] = b[p];
1522
- };
1523
- __extends2 = function(d, b) {
1524
- if (typeof b !== "function" && b !== null)
1525
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
1526
- extendStatics(d, b);
1527
- function __() {
1528
- this.constructor = d;
1529
- }
1530
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
1531
- };
1532
- __assign2 = Object.assign || function(t) {
1533
- for (var s, i = 1, n = arguments.length; i < n; i++) {
1534
- s = arguments[i];
1535
- for (var p in s)
1536
- if (Object.prototype.hasOwnProperty.call(s, p))
1537
- t[p] = s[p];
1538
- }
1539
- return t;
1540
- };
1541
- __rest2 = function(s, e) {
1542
- var t = {};
1543
- for (var p in s)
1544
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
1545
- t[p] = s[p];
1546
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
1547
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
1548
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
1549
- t[p[i]] = s[p[i]];
1550
- }
1551
- return t;
1552
- };
1553
- __decorate2 = function(decorators, target, key, desc) {
1554
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1555
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
1556
- r = Reflect.decorate(decorators, target, key, desc);
1557
- else
1558
- for (var i = decorators.length - 1; i >= 0; i--)
1559
- if (d = decorators[i])
1560
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
1561
- return c > 3 && r && Object.defineProperty(target, key, r), r;
1562
- };
1563
- __param2 = function(paramIndex, decorator) {
1564
- return function(target, key) {
1565
- decorator(target, key, paramIndex);
1566
- };
1567
- };
1568
- __esDecorate2 = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
1569
- function accept(f) {
1570
- if (f !== void 0 && typeof f !== "function")
1571
- throw new TypeError("Function expected");
1572
- return f;
1573
- }
1574
- var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
1575
- var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
1576
- var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
1577
- var _, done = false;
1578
- for (var i = decorators.length - 1; i >= 0; i--) {
1579
- var context = {};
1580
- for (var p in contextIn)
1581
- context[p] = p === "access" ? {} : contextIn[p];
1582
- for (var p in contextIn.access)
1583
- context.access[p] = contextIn.access[p];
1584
- context.addInitializer = function(f) {
1585
- if (done)
1586
- throw new TypeError("Cannot add initializers after decoration has completed");
1587
- extraInitializers.push(accept(f || null));
1588
- };
1589
- var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
1590
- if (kind === "accessor") {
1591
- if (result === void 0)
1592
- continue;
1593
- if (result === null || typeof result !== "object")
1594
- throw new TypeError("Object expected");
1595
- if (_ = accept(result.get))
1596
- descriptor.get = _;
1597
- if (_ = accept(result.set))
1598
- descriptor.set = _;
1599
- if (_ = accept(result.init))
1600
- initializers.push(_);
1601
- } else if (_ = accept(result)) {
1602
- if (kind === "field")
1603
- initializers.push(_);
1604
- else
1605
- descriptor[key] = _;
1606
- }
1607
- }
1608
- if (target)
1609
- Object.defineProperty(target, contextIn.name, descriptor);
1610
- done = true;
1611
- };
1612
- __runInitializers2 = function(thisArg, initializers, value) {
1613
- var useValue = arguments.length > 2;
1614
- for (var i = 0; i < initializers.length; i++) {
1615
- value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
1616
- }
1617
- return useValue ? value : void 0;
1618
- };
1619
- __propKey2 = function(x) {
1620
- return typeof x === "symbol" ? x : "".concat(x);
1621
- };
1622
- __setFunctionName2 = function(f, name, prefix) {
1623
- if (typeof name === "symbol")
1624
- name = name.description ? "[".concat(name.description, "]") : "";
1625
- return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
1626
- };
1627
- __metadata2 = function(metadataKey, metadataValue) {
1628
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
1629
- return Reflect.metadata(metadataKey, metadataValue);
1630
- };
1631
- __awaiter2 = function(thisArg, _arguments, P, generator) {
1632
- function adopt(value) {
1633
- return value instanceof P ? value : new P(function(resolve) {
1634
- resolve(value);
1635
- });
1636
- }
1637
- return new (P || (P = Promise))(function(resolve, reject) {
1638
- function fulfilled(value) {
1639
- try {
1640
- step(generator.next(value));
1641
- } catch (e) {
1642
- reject(e);
1643
- }
1644
- }
1645
- function rejected(value) {
1646
- try {
1647
- step(generator["throw"](value));
1648
- } catch (e) {
1649
- reject(e);
1650
- }
1651
- }
1652
- function step(result) {
1653
- result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
1654
- }
1655
- step((generator = generator.apply(thisArg, _arguments || [])).next());
1613
+ }
1614
+ function step(result) {
1615
+ result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
1616
+ }
1617
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
1618
+ });
1619
+ }
1620
+ function __values(o) {
1621
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
1622
+ if (m)
1623
+ return m.call(o);
1624
+ if (o && typeof o.length === "number")
1625
+ return {
1626
+ next: function() {
1627
+ if (o && i >= o.length)
1628
+ o = void 0;
1629
+ return { value: o && o[i++], done: !o };
1630
+ }
1631
+ };
1632
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
1633
+ }
1634
+ function __await(v) {
1635
+ return this instanceof __await ? (this.v = v, this) : new __await(v);
1636
+ }
1637
+ function __asyncGenerator(thisArg, _arguments, generator) {
1638
+ if (!Symbol.asyncIterator)
1639
+ throw new TypeError("Symbol.asyncIterator is not defined.");
1640
+ var g = generator.apply(thisArg, _arguments || []), i, q = [];
1641
+ return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() {
1642
+ return this;
1643
+ }, i;
1644
+ function verb(n) {
1645
+ if (g[n])
1646
+ i[n] = function(v) {
1647
+ return new Promise(function(a, b) {
1648
+ q.push([n, v, a, b]) > 1 || resume(n, v);
1656
1649
  });
1657
1650
  };
1658
- __generator2 = function(thisArg, body) {
1659
- var _ = { label: 0, sent: function() {
1660
- if (t[0] & 1)
1661
- throw t[1];
1662
- return t[1];
1663
- }, trys: [], ops: [] }, f, y, t, g;
1664
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
1665
- return this;
1666
- }), g;
1667
- function verb(n) {
1668
- return function(v) {
1669
- return step([n, v]);
1670
- };
1671
- }
1672
- function step(op) {
1673
- if (f)
1674
- throw new TypeError("Generator is already executing.");
1675
- while (g && (g = 0, op[0] && (_ = 0)), _)
1676
- try {
1677
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
1678
- return t;
1679
- if (y = 0, t)
1680
- op = [op[0] & 2, t.value];
1681
- switch (op[0]) {
1682
- case 0:
1683
- case 1:
1684
- t = op;
1685
- break;
1686
- case 4:
1687
- _.label++;
1688
- return { value: op[1], done: false };
1689
- case 5:
1690
- _.label++;
1691
- y = op[1];
1692
- op = [0];
1693
- continue;
1694
- case 7:
1695
- op = _.ops.pop();
1696
- _.trys.pop();
1697
- continue;
1698
- default:
1699
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
1700
- _ = 0;
1701
- continue;
1702
- }
1703
- if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
1704
- _.label = op[1];
1705
- break;
1706
- }
1707
- if (op[0] === 6 && _.label < t[1]) {
1708
- _.label = t[1];
1709
- t = op;
1710
- break;
1711
- }
1712
- if (t && _.label < t[2]) {
1713
- _.label = t[2];
1714
- _.ops.push(op);
1715
- break;
1716
- }
1717
- if (t[2])
1718
- _.ops.pop();
1719
- _.trys.pop();
1720
- continue;
1721
- }
1722
- op = body.call(thisArg, _);
1723
- } catch (e) {
1724
- op = [6, e];
1725
- y = 0;
1726
- } finally {
1727
- f = t = 0;
1728
- }
1729
- if (op[0] & 5)
1730
- throw op[1];
1731
- return { value: op[0] ? op[1] : void 0, done: true };
1732
- }
1733
- };
1734
- __exportStar2 = function(m, o) {
1735
- for (var p in m)
1736
- if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
1737
- __createBinding2(o, m, p);
1738
- };
1739
- __createBinding2 = Object.create ? function(o, m, k, k2) {
1740
- if (k2 === void 0)
1741
- k2 = k;
1742
- var desc = Object.getOwnPropertyDescriptor(m, k);
1743
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
1744
- desc = { enumerable: true, get: function() {
1745
- return m[k];
1746
- } };
1747
- }
1748
- Object.defineProperty(o, k2, desc);
1749
- } : function(o, m, k, k2) {
1750
- if (k2 === void 0)
1751
- k2 = k;
1752
- o[k2] = m[k];
1753
- };
1754
- __values2 = function(o) {
1755
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
1756
- if (m)
1757
- return m.call(o);
1758
- if (o && typeof o.length === "number")
1759
- return {
1760
- next: function() {
1761
- if (o && i >= o.length)
1762
- o = void 0;
1763
- return { value: o && o[i++], done: !o };
1764
- }
1765
- };
1766
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
1767
- };
1768
- __read2 = function(o, n) {
1769
- var m = typeof Symbol === "function" && o[Symbol.iterator];
1770
- if (!m)
1771
- return o;
1772
- var i = m.call(o), r, ar = [], e;
1773
- try {
1774
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
1775
- ar.push(r.value);
1776
- } catch (error) {
1777
- e = { error };
1778
- } finally {
1779
- try {
1780
- if (r && !r.done && (m = i["return"]))
1781
- m.call(i);
1782
- } finally {
1783
- if (e)
1784
- throw e.error;
1785
- }
1786
- }
1787
- return ar;
1788
- };
1789
- __spread2 = function() {
1790
- for (var ar = [], i = 0; i < arguments.length; i++)
1791
- ar = ar.concat(__read2(arguments[i]));
1792
- return ar;
1793
- };
1794
- __spreadArrays2 = function() {
1795
- for (var s = 0, i = 0, il = arguments.length; i < il; i++)
1796
- s += arguments[i].length;
1797
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
1798
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
1799
- r[k] = a[j];
1800
- return r;
1801
- };
1802
- __spreadArray2 = function(to, from, pack) {
1803
- if (pack || arguments.length === 2)
1804
- for (var i = 0, l = from.length, ar; i < l; i++) {
1805
- if (ar || !(i in from)) {
1806
- if (!ar)
1807
- ar = Array.prototype.slice.call(from, 0, i);
1808
- ar[i] = from[i];
1809
- }
1810
- }
1811
- return to.concat(ar || Array.prototype.slice.call(from));
1812
- };
1813
- __await2 = function(v) {
1814
- return this instanceof __await2 ? (this.v = v, this) : new __await2(v);
1815
- };
1816
- __asyncGenerator2 = function(thisArg, _arguments, generator) {
1817
- if (!Symbol.asyncIterator)
1818
- throw new TypeError("Symbol.asyncIterator is not defined.");
1819
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
1820
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() {
1821
- return this;
1822
- }, i;
1823
- function verb(n) {
1824
- if (g[n])
1825
- i[n] = function(v) {
1826
- return new Promise(function(a, b) {
1827
- q.push([n, v, a, b]) > 1 || resume(n, v);
1828
- });
1829
- };
1830
- }
1831
- function resume(n, v) {
1832
- try {
1833
- step(g[n](v));
1834
- } catch (e) {
1835
- settle(q[0][3], e);
1836
- }
1837
- }
1838
- function step(r) {
1839
- r.value instanceof __await2 ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r);
1840
- }
1841
- function fulfill(value) {
1842
- resume("next", value);
1843
- }
1844
- function reject(value) {
1845
- resume("throw", value);
1846
- }
1847
- function settle(f, v) {
1848
- if (f(v), q.shift(), q.length)
1849
- resume(q[0][0], q[0][1]);
1850
- }
1851
- };
1852
- __asyncDelegator2 = function(o) {
1853
- var i, p;
1854
- return i = {}, verb("next"), verb("throw", function(e) {
1855
- throw e;
1856
- }), verb("return"), i[Symbol.iterator] = function() {
1857
- return this;
1858
- }, i;
1859
- function verb(n, f) {
1860
- i[n] = o[n] ? function(v) {
1861
- return (p = !p) ? { value: __await2(o[n](v)), done: false } : f ? f(v) : v;
1862
- } : f;
1863
- }
1864
- };
1865
- __asyncValues2 = function(o) {
1866
- if (!Symbol.asyncIterator)
1867
- throw new TypeError("Symbol.asyncIterator is not defined.");
1868
- var m = o[Symbol.asyncIterator], i;
1869
- return m ? m.call(o) : (o = typeof __values2 === "function" ? __values2(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() {
1870
- return this;
1871
- }, i);
1872
- function verb(n) {
1873
- i[n] = o[n] && function(v) {
1874
- return new Promise(function(resolve, reject) {
1875
- v = o[n](v), settle(resolve, reject, v.done, v.value);
1876
- });
1877
- };
1878
- }
1879
- function settle(resolve, reject, d, v) {
1880
- Promise.resolve(v).then(function(v2) {
1881
- resolve({ value: v2, done: d });
1882
- }, reject);
1883
- }
1884
- };
1885
- __makeTemplateObject2 = function(cooked, raw) {
1886
- if (Object.defineProperty) {
1887
- Object.defineProperty(cooked, "raw", { value: raw });
1888
- } else {
1889
- cooked.raw = raw;
1890
- }
1891
- return cooked;
1892
- };
1893
- var __setModuleDefault = Object.create ? function(o, v) {
1894
- Object.defineProperty(o, "default", { enumerable: true, value: v });
1895
- } : function(o, v) {
1896
- o["default"] = v;
1897
- };
1898
- __importStar2 = function(mod) {
1899
- if (mod && mod.__esModule)
1900
- return mod;
1901
- var result = {};
1902
- if (mod != null) {
1903
- for (var k in mod)
1904
- if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
1905
- __createBinding2(result, mod, k);
1906
- }
1907
- __setModuleDefault(result, mod);
1908
- return result;
1909
- };
1910
- __importDefault2 = function(mod) {
1911
- return mod && mod.__esModule ? mod : { "default": mod };
1912
- };
1913
- __classPrivateFieldGet2 = function(receiver, state, kind, f) {
1914
- if (kind === "a" && !f)
1915
- throw new TypeError("Private accessor was defined without a getter");
1916
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
1917
- throw new TypeError("Cannot read private member from an object whose class did not declare it");
1918
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
1919
- };
1920
- __classPrivateFieldSet2 = function(receiver, state, value, kind, f) {
1921
- if (kind === "m")
1922
- throw new TypeError("Private method is not writable");
1923
- if (kind === "a" && !f)
1924
- throw new TypeError("Private accessor was defined without a setter");
1925
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
1926
- throw new TypeError("Cannot write private member to an object whose class did not declare it");
1927
- return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;
1928
- };
1929
- __classPrivateFieldIn2 = function(state, receiver) {
1930
- if (receiver === null || typeof receiver !== "object" && typeof receiver !== "function")
1931
- throw new TypeError("Cannot use 'in' operator on non-object");
1932
- return typeof state === "function" ? receiver === state : state.has(receiver);
1933
- };
1934
- exporter("__extends", __extends2);
1935
- exporter("__assign", __assign2);
1936
- exporter("__rest", __rest2);
1937
- exporter("__decorate", __decorate2);
1938
- exporter("__param", __param2);
1939
- exporter("__esDecorate", __esDecorate2);
1940
- exporter("__runInitializers", __runInitializers2);
1941
- exporter("__propKey", __propKey2);
1942
- exporter("__setFunctionName", __setFunctionName2);
1943
- exporter("__metadata", __metadata2);
1944
- exporter("__awaiter", __awaiter2);
1945
- exporter("__generator", __generator2);
1946
- exporter("__exportStar", __exportStar2);
1947
- exporter("__createBinding", __createBinding2);
1948
- exporter("__values", __values2);
1949
- exporter("__read", __read2);
1950
- exporter("__spread", __spread2);
1951
- exporter("__spreadArrays", __spreadArrays2);
1952
- exporter("__spreadArray", __spreadArray2);
1953
- exporter("__await", __await2);
1954
- exporter("__asyncGenerator", __asyncGenerator2);
1955
- exporter("__asyncDelegator", __asyncDelegator2);
1956
- exporter("__asyncValues", __asyncValues2);
1957
- exporter("__makeTemplateObject", __makeTemplateObject2);
1958
- exporter("__importStar", __importStar2);
1959
- exporter("__importDefault", __importDefault2);
1960
- exporter("__classPrivateFieldGet", __classPrivateFieldGet2);
1961
- exporter("__classPrivateFieldSet", __classPrivateFieldSet2);
1962
- exporter("__classPrivateFieldIn", __classPrivateFieldIn2);
1963
- });
1964
1651
  }
1965
- });
1966
-
1967
- // ../../node_modules/apache-arrow/node_modules/tslib/modules/index.js
1968
- var import_tslib, __extends, __assign, __rest, __decorate, __param, __esDecorate, __runInitializers, __propKey, __setFunctionName, __metadata, __awaiter, __generator, __exportStar, __createBinding, __values, __read, __spread, __spreadArrays, __spreadArray, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault, __classPrivateFieldGet, __classPrivateFieldSet, __classPrivateFieldIn;
1969
- var init_modules = __esm({
1970
- "../../node_modules/apache-arrow/node_modules/tslib/modules/index.js"() {
1971
- import_tslib = __toModule(require_tslib());
1972
- ({
1973
- __extends,
1974
- __assign,
1975
- __rest,
1976
- __decorate,
1977
- __param,
1978
- __esDecorate,
1979
- __runInitializers,
1980
- __propKey,
1981
- __setFunctionName,
1982
- __metadata,
1983
- __awaiter,
1984
- __generator,
1985
- __exportStar,
1986
- __createBinding,
1987
- __values,
1988
- __read,
1989
- __spread,
1990
- __spreadArrays,
1991
- __spreadArray,
1992
- __await,
1993
- __asyncGenerator,
1994
- __asyncDelegator,
1995
- __asyncValues,
1996
- __makeTemplateObject,
1997
- __importStar,
1998
- __importDefault,
1999
- __classPrivateFieldGet,
2000
- __classPrivateFieldSet,
2001
- __classPrivateFieldIn
2002
- } = import_tslib.default);
1652
+ function resume(n, v) {
1653
+ try {
1654
+ step(g[n](v));
1655
+ } catch (e) {
1656
+ settle(q[0][3], e);
1657
+ }
1658
+ }
1659
+ function step(r) {
1660
+ r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r);
1661
+ }
1662
+ function fulfill(value) {
1663
+ resume("next", value);
1664
+ }
1665
+ function reject(value) {
1666
+ resume("throw", value);
1667
+ }
1668
+ function settle(f, v) {
1669
+ if (f(v), q.shift(), q.length)
1670
+ resume(q[0][0], q[0][1]);
1671
+ }
1672
+ }
1673
+ function __asyncDelegator(o) {
1674
+ var i, p;
1675
+ return i = {}, verb("next"), verb("throw", function(e) {
1676
+ throw e;
1677
+ }), verb("return"), i[Symbol.iterator] = function() {
1678
+ return this;
1679
+ }, i;
1680
+ function verb(n, f) {
1681
+ i[n] = o[n] ? function(v) {
1682
+ return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v;
1683
+ } : f;
1684
+ }
1685
+ }
1686
+ function __asyncValues(o) {
1687
+ if (!Symbol.asyncIterator)
1688
+ throw new TypeError("Symbol.asyncIterator is not defined.");
1689
+ var m = o[Symbol.asyncIterator], i;
1690
+ return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() {
1691
+ return this;
1692
+ }, i);
1693
+ function verb(n) {
1694
+ i[n] = o[n] && function(v) {
1695
+ return new Promise(function(resolve, reject) {
1696
+ v = o[n](v), settle(resolve, reject, v.done, v.value);
1697
+ });
1698
+ };
1699
+ }
1700
+ function settle(resolve, reject, d, v) {
1701
+ Promise.resolve(v).then(function(v2) {
1702
+ resolve({ value: v2, done: d });
1703
+ }, reject);
1704
+ }
1705
+ }
1706
+ var init_tslib_es6 = __esm({
1707
+ "../../node_modules/apache-arrow/node_modules/tslib/tslib.es6.mjs"() {
2003
1708
  }
2004
1709
  });
2005
1710
 
@@ -2015,64 +1720,9 @@
2015
1720
  });
2016
1721
 
2017
1722
  // ../../node_modules/apache-arrow/util/compat.mjs
2018
- var BigIntCtor, BigIntAvailable, BigInt64ArrayCtor, BigInt64ArrayAvailable, BigUint64ArrayCtor, BigUint64ArrayAvailable, isNumber, isBoolean, isFunction, isObject, isPromise, isIterable, isAsyncIterable, isArrowJSON, isIteratorResult, isFileHandle, isFetchResponse, isReadableInterop, isWritableDOMStream, isReadableDOMStream, isWritableNodeStream, isReadableNodeStream, isFlatbuffersByteBuffer;
1723
+ var isNumber, isBoolean, isFunction, isObject, isPromise, isIterable, isAsyncIterable, isArrowJSON, isIteratorResult, isFileHandle, isFetchResponse, isReadableInterop, isWritableDOMStream, isReadableDOMStream, isWritableNodeStream, isReadableNodeStream, isFlatbuffersByteBuffer;
2019
1724
  var init_compat = __esm({
2020
1725
  "../../node_modules/apache-arrow/util/compat.mjs"() {
2021
- [BigIntCtor, BigIntAvailable] = (() => {
2022
- const BigIntUnavailableError = () => {
2023
- throw new Error("BigInt is not available in this environment");
2024
- };
2025
- function BigIntUnavailable() {
2026
- throw BigIntUnavailableError();
2027
- }
2028
- BigIntUnavailable.asIntN = () => {
2029
- throw BigIntUnavailableError();
2030
- };
2031
- BigIntUnavailable.asUintN = () => {
2032
- throw BigIntUnavailableError();
2033
- };
2034
- return typeof BigInt !== "undefined" ? [BigInt, true] : [BigIntUnavailable, false];
2035
- })();
2036
- [BigInt64ArrayCtor, BigInt64ArrayAvailable] = (() => {
2037
- const BigInt64ArrayUnavailableError = () => {
2038
- throw new Error("BigInt64Array is not available in this environment");
2039
- };
2040
- class BigInt64ArrayUnavailable {
2041
- static get BYTES_PER_ELEMENT() {
2042
- return 8;
2043
- }
2044
- static of() {
2045
- throw BigInt64ArrayUnavailableError();
2046
- }
2047
- static from() {
2048
- throw BigInt64ArrayUnavailableError();
2049
- }
2050
- constructor() {
2051
- throw BigInt64ArrayUnavailableError();
2052
- }
2053
- }
2054
- return typeof BigInt64Array !== "undefined" ? [BigInt64Array, true] : [BigInt64ArrayUnavailable, false];
2055
- })();
2056
- [BigUint64ArrayCtor, BigUint64ArrayAvailable] = (() => {
2057
- const BigUint64ArrayUnavailableError = () => {
2058
- throw new Error("BigUint64Array is not available in this environment");
2059
- };
2060
- class BigUint64ArrayUnavailable {
2061
- static get BYTES_PER_ELEMENT() {
2062
- return 8;
2063
- }
2064
- static of() {
2065
- throw BigUint64ArrayUnavailableError();
2066
- }
2067
- static from() {
2068
- throw BigUint64ArrayUnavailableError();
2069
- }
2070
- constructor() {
2071
- throw BigUint64ArrayUnavailableError();
2072
- }
2073
- }
2074
- return typeof BigUint64Array !== "undefined" ? [BigUint64Array, true] : [BigUint64ArrayUnavailable, false];
2075
- })();
2076
1726
  isNumber = (x) => typeof x === "number";
2077
1727
  isBoolean = (x) => typeof x === "boolean";
2078
1728
  isFunction = (x) => typeof x === "function";
@@ -2304,18 +1954,18 @@
2304
1954
  var SharedArrayBuf, toInt8Array, toInt16Array, toInt32Array, toBigInt64Array, toUint8Array, toUint16Array, toUint32Array, toBigUint64Array, toFloat32Array, toFloat64Array, toUint8ClampedArray, pump, toInt8ArrayIterator, toInt16ArrayIterator, toInt32ArrayIterator, toUint8ArrayIterator, toUint16ArrayIterator, toUint32ArrayIterator, toFloat32ArrayIterator, toFloat64ArrayIterator, toUint8ClampedArrayIterator, toInt8ArrayAsyncIterator, toInt16ArrayAsyncIterator, toInt32ArrayAsyncIterator, toUint8ArrayAsyncIterator, toUint16ArrayAsyncIterator, toUint32ArrayAsyncIterator, toFloat32ArrayAsyncIterator, toFloat64ArrayAsyncIterator, toUint8ClampedArrayAsyncIterator;
2305
1955
  var init_buffer = __esm({
2306
1956
  "../../node_modules/apache-arrow/util/buffer.mjs"() {
2307
- init_modules();
1957
+ init_tslib_es6();
2308
1958
  init_utf8();
2309
1959
  init_compat();
2310
1960
  SharedArrayBuf = typeof SharedArrayBuffer !== "undefined" ? SharedArrayBuffer : ArrayBuffer;
2311
1961
  toInt8Array = (input) => toArrayBufferView(Int8Array, input);
2312
1962
  toInt16Array = (input) => toArrayBufferView(Int16Array, input);
2313
1963
  toInt32Array = (input) => toArrayBufferView(Int32Array, input);
2314
- toBigInt64Array = (input) => toArrayBufferView(BigInt64ArrayCtor, input);
1964
+ toBigInt64Array = (input) => toArrayBufferView(BigInt64Array, input);
2315
1965
  toUint8Array = (input) => toArrayBufferView(Uint8Array, input);
2316
1966
  toUint16Array = (input) => toArrayBufferView(Uint16Array, input);
2317
1967
  toUint32Array = (input) => toArrayBufferView(Uint32Array, input);
2318
- toBigUint64Array = (input) => toArrayBufferView(BigUint64ArrayCtor, input);
1968
+ toBigUint64Array = (input) => toArrayBufferView(BigUint64Array, input);
2319
1969
  toFloat32Array = (input) => toArrayBufferView(Float32Array, input);
2320
1970
  toFloat64Array = (input) => toArrayBufferView(Float64Array, input);
2321
1971
  toUint8ClampedArray = (input) => toArrayBufferView(Uint8ClampedArray, input);
@@ -2522,7 +2172,7 @@
2522
2172
  var adapters_default, pump2, AdaptiveByteReader, onEvent;
2523
2173
  var init_adapters = __esm({
2524
2174
  "../../node_modules/apache-arrow/io/adapters.mjs"() {
2525
- init_modules();
2175
+ init_tslib_es6();
2526
2176
  init_buffer();
2527
2177
  adapters_default = {
2528
2178
  fromIterable(source) {
@@ -2729,8 +2379,8 @@
2729
2379
  var bn_exports = {};
2730
2380
  __export(bn_exports, {
2731
2381
  BN: () => BN,
2732
- bignumToBigInt: () => bignumToBigInt,
2733
- bignumToString: () => bignumToString,
2382
+ bigNumToBigInt: () => bigNumToBigInt,
2383
+ bigNumToString: () => bigNumToString,
2734
2384
  isArrowBigNumSymbol: () => isArrowBigNumSymbol
2735
2385
  });
2736
2386
  function BigNum(x, ...xs) {
@@ -2748,10 +2398,10 @@
2748
2398
  function DecimalBigNum(...args) {
2749
2399
  return BigNum.apply(this, args);
2750
2400
  }
2751
- function bignumToNumber(bn) {
2401
+ function bigNumToNumber(bn) {
2752
2402
  const { buffer, byteOffset, length, "signed": signed } = bn;
2753
- const words = new BigUint64ArrayCtor(buffer, byteOffset, length);
2754
- const negative = signed && words[words.length - 1] & BigInt(1) << BigInt(63);
2403
+ const words = new BigUint64Array(buffer, byteOffset, length);
2404
+ const negative = signed && words.at(-1) & BigInt(1) << BigInt(63);
2755
2405
  let number = negative ? BigInt(1) : BigInt(0);
2756
2406
  let i = BigInt(0);
2757
2407
  if (!negative) {
@@ -2766,7 +2416,7 @@
2766
2416
  }
2767
2417
  return number;
2768
2418
  }
2769
- function decimalToString(a) {
2419
+ function unsignedBigNumToString(a) {
2770
2420
  let digits = "";
2771
2421
  const base64 = new Uint32Array(2);
2772
2422
  let base32 = new Uint16Array(a.buffer, a.byteOffset, a.byteLength / 2);
@@ -2782,48 +2432,72 @@
2782
2432
  base64[0] = base64[0] - base64[1] * 10;
2783
2433
  digits = `${base64[0]}${digits}`;
2784
2434
  } while (checks[0] || checks[1] || checks[2] || checks[3]);
2785
- return digits ? digits : `0`;
2435
+ return digits !== null && digits !== void 0 ? digits : `0`;
2786
2436
  }
2787
- var isArrowBigNumSymbol, bignumToString, bignumToBigInt, BN;
2437
+ var isArrowBigNumSymbol, bigNumToString, bigNumToBigInt, BN;
2788
2438
  var init_bn = __esm({
2789
2439
  "../../node_modules/apache-arrow/util/bn.mjs"() {
2790
2440
  init_buffer();
2791
- init_compat();
2792
2441
  isArrowBigNumSymbol = Symbol.for("isArrowBigNum");
2793
2442
  BigNum.prototype[isArrowBigNumSymbol] = true;
2794
2443
  BigNum.prototype.toJSON = function() {
2795
- return `"${bignumToString(this)}"`;
2444
+ return `"${bigNumToString(this)}"`;
2796
2445
  };
2797
2446
  BigNum.prototype.valueOf = function() {
2798
- return bignumToNumber(this);
2447
+ return bigNumToNumber(this);
2799
2448
  };
2800
2449
  BigNum.prototype.toString = function() {
2801
- return bignumToString(this);
2450
+ return bigNumToString(this);
2802
2451
  };
2803
2452
  BigNum.prototype[Symbol.toPrimitive] = function(hint = "default") {
2804
2453
  switch (hint) {
2805
2454
  case "number":
2806
- return bignumToNumber(this);
2455
+ return bigNumToNumber(this);
2807
2456
  case "string":
2808
- return bignumToString(this);
2457
+ return bigNumToString(this);
2809
2458
  case "default":
2810
- return bignumToBigInt(this);
2459
+ return bigNumToBigInt(this);
2811
2460
  }
2812
- return bignumToString(this);
2461
+ return bigNumToString(this);
2813
2462
  };
2814
2463
  Object.setPrototypeOf(SignedBigNum.prototype, Object.create(Int32Array.prototype));
2815
2464
  Object.setPrototypeOf(UnsignedBigNum.prototype, Object.create(Uint32Array.prototype));
2816
2465
  Object.setPrototypeOf(DecimalBigNum.prototype, Object.create(Uint32Array.prototype));
2817
- Object.assign(SignedBigNum.prototype, BigNum.prototype, { "constructor": SignedBigNum, "signed": true, "TypedArray": Int32Array, "BigIntArray": BigInt64ArrayCtor });
2818
- Object.assign(UnsignedBigNum.prototype, BigNum.prototype, { "constructor": UnsignedBigNum, "signed": false, "TypedArray": Uint32Array, "BigIntArray": BigUint64ArrayCtor });
2819
- Object.assign(DecimalBigNum.prototype, BigNum.prototype, { "constructor": DecimalBigNum, "signed": true, "TypedArray": Uint32Array, "BigIntArray": BigUint64ArrayCtor });
2820
- if (!BigIntAvailable) {
2821
- bignumToString = decimalToString;
2822
- bignumToBigInt = bignumToString;
2823
- } else {
2824
- bignumToBigInt = (a) => a.byteLength === 8 ? new a["BigIntArray"](a.buffer, a.byteOffset, 1)[0] : decimalToString(a);
2825
- bignumToString = (a) => a.byteLength === 8 ? `${new a["BigIntArray"](a.buffer, a.byteOffset, 1)[0]}` : decimalToString(a);
2826
- }
2466
+ Object.assign(SignedBigNum.prototype, BigNum.prototype, { "constructor": SignedBigNum, "signed": true, "TypedArray": Int32Array, "BigIntArray": BigInt64Array });
2467
+ Object.assign(UnsignedBigNum.prototype, BigNum.prototype, { "constructor": UnsignedBigNum, "signed": false, "TypedArray": Uint32Array, "BigIntArray": BigUint64Array });
2468
+ Object.assign(DecimalBigNum.prototype, BigNum.prototype, { "constructor": DecimalBigNum, "signed": true, "TypedArray": Uint32Array, "BigIntArray": BigUint64Array });
2469
+ bigNumToString = (a) => {
2470
+ if (a.byteLength === 8) {
2471
+ const bigIntArray = new a["BigIntArray"](a.buffer, a.byteOffset, 1);
2472
+ return `${bigIntArray[0]}`;
2473
+ }
2474
+ if (!a["signed"]) {
2475
+ return unsignedBigNumToString(a);
2476
+ }
2477
+ let array = new Uint16Array(a.buffer, a.byteOffset, a.byteLength / 2);
2478
+ const highOrderWord = new Int16Array([array.at(-1)])[0];
2479
+ if (highOrderWord >= 0) {
2480
+ return unsignedBigNumToString(a);
2481
+ }
2482
+ array = array.slice();
2483
+ let carry = 1;
2484
+ for (let i = 0; i < array.length; i++) {
2485
+ const elem = array[i];
2486
+ const updated = ~elem + carry;
2487
+ array[i] = updated;
2488
+ carry &= elem === 0 ? 1 : 0;
2489
+ }
2490
+ const negated = unsignedBigNumToString(array);
2491
+ return `-${negated}`;
2492
+ };
2493
+ bigNumToBigInt = (a) => {
2494
+ if (a.byteLength === 8) {
2495
+ const bigIntArray = new a["BigIntArray"](a.buffer, a.byteOffset, 1);
2496
+ return bigIntArray[0];
2497
+ } else {
2498
+ return bigNumToString(a);
2499
+ }
2500
+ };
2827
2501
  BN = class {
2828
2502
  static new(num, isSigned) {
2829
2503
  switch (isSigned) {
@@ -2836,7 +2510,7 @@
2836
2510
  case Int8Array:
2837
2511
  case Int16Array:
2838
2512
  case Int32Array:
2839
- case BigInt64ArrayCtor:
2513
+ case BigInt64Array:
2840
2514
  return new SignedBigNum(num);
2841
2515
  }
2842
2516
  if (num.byteLength === 16) {
@@ -2860,6 +2534,18 @@
2860
2534
  }
2861
2535
  });
2862
2536
 
2537
+ // ../../node_modules/apache-arrow/util/bigint.mjs
2538
+ function bigIntToNumber(number) {
2539
+ if (typeof number === "bigint" && (number < Number.MIN_SAFE_INTEGER || number > Number.MAX_SAFE_INTEGER)) {
2540
+ throw new TypeError(`${number} is not safe to convert to a number.`);
2541
+ }
2542
+ return Number(number);
2543
+ }
2544
+ var init_bigint = __esm({
2545
+ "../../node_modules/apache-arrow/util/bigint.mjs"() {
2546
+ }
2547
+ });
2548
+
2863
2549
  // ../../node_modules/apache-arrow/type.mjs
2864
2550
  function strideForType(type) {
2865
2551
  const t = type;
@@ -2883,6 +2569,7 @@
2883
2569
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, DataType2, Null2, Int_, Int82, Int162, Int322, Int642, Uint82, Uint162, Uint322, Uint642, Float2, Float162, Float322, Float642, Binary2, Utf82, Bool2, Decimal, Date_, Time_, Timestamp_, Interval_, List, Struct2, Union_, FixedSizeBinary, FixedSizeList2, Map_, getId, Dictionary;
2884
2570
  var init_type = __esm({
2885
2571
  "../../node_modules/apache-arrow/type.mjs"() {
2572
+ init_bigint();
2886
2573
  init_enum2();
2887
2574
  DataType2 = class {
2888
2575
  static isNull(x) {
@@ -3416,7 +3103,7 @@
3416
3103
  this.indices = indices;
3417
3104
  this.dictionary = dictionary;
3418
3105
  this.isOrdered = isOrdered || false;
3419
- this.id = id == null ? getId() : typeof id === "number" ? id : id.low;
3106
+ this.id = id == null ? getId() : bigIntToNumber(id);
3420
3107
  }
3421
3108
  get typeId() {
3422
3109
  return Type2.Dictionary;
@@ -4797,31 +4484,6 @@
4797
4484
  init_buffer();
4798
4485
  kUnknownNullCount = -1;
4799
4486
  Data = class {
4800
- constructor(type, offset, length, nullCount, buffers, children = [], dictionary) {
4801
- this.type = type;
4802
- this.children = children;
4803
- this.dictionary = dictionary;
4804
- this.offset = Math.floor(Math.max(offset || 0, 0));
4805
- this.length = Math.floor(Math.max(length || 0, 0));
4806
- this._nullCount = Math.floor(Math.max(nullCount || 0, -1));
4807
- let buffer;
4808
- if (buffers instanceof Data) {
4809
- this.stride = buffers.stride;
4810
- this.values = buffers.values;
4811
- this.typeIds = buffers.typeIds;
4812
- this.nullBitmap = buffers.nullBitmap;
4813
- this.valueOffsets = buffers.valueOffsets;
4814
- } else {
4815
- this.stride = strideForType(type);
4816
- if (buffers) {
4817
- (buffer = buffers[0]) && (this.valueOffsets = buffer);
4818
- (buffer = buffers[1]) && (this.values = buffer);
4819
- (buffer = buffers[2]) && (this.nullBitmap = buffer);
4820
- (buffer = buffers[3]) && (this.typeIds = buffer);
4821
- }
4822
- }
4823
- this.nullable = this._nullCount !== 0 && this.nullBitmap && this.nullBitmap.byteLength > 0;
4824
- }
4825
4487
  get typeId() {
4826
4488
  return this.type.typeId;
4827
4489
  }
@@ -4848,6 +4510,31 @@
4848
4510
  }
4849
4511
  return nullCount;
4850
4512
  }
4513
+ constructor(type, offset, length, nullCount, buffers, children = [], dictionary) {
4514
+ this.type = type;
4515
+ this.children = children;
4516
+ this.dictionary = dictionary;
4517
+ this.offset = Math.floor(Math.max(offset || 0, 0));
4518
+ this.length = Math.floor(Math.max(length || 0, 0));
4519
+ this._nullCount = Math.floor(Math.max(nullCount || 0, -1));
4520
+ let buffer;
4521
+ if (buffers instanceof Data) {
4522
+ this.stride = buffers.stride;
4523
+ this.values = buffers.values;
4524
+ this.typeIds = buffers.typeIds;
4525
+ this.nullBitmap = buffers.nullBitmap;
4526
+ this.valueOffsets = buffers.valueOffsets;
4527
+ } else {
4528
+ this.stride = strideForType(type);
4529
+ if (buffers) {
4530
+ (buffer = buffers[0]) && (this.valueOffsets = buffer);
4531
+ (buffer = buffers[1]) && (this.values = buffer);
4532
+ (buffer = buffers[2]) && (this.nullBitmap = buffer);
4533
+ (buffer = buffers[3]) && (this.typeIds = buffer);
4534
+ }
4535
+ }
4536
+ this.nullable = this._nullCount !== 0 && this.nullBitmap && this.nullBitmap.byteLength > 0;
4537
+ }
4851
4538
  getValid(index) {
4852
4539
  if (this.nullable && this.nullCount > 0) {
4853
4540
  const pos = this.offset + index;
@@ -5501,7 +5188,7 @@
5501
5188
  this.type = type;
5502
5189
  this.stride = strideForType(type);
5503
5190
  this.numChildren = (_d2 = (_c2 = type.children) === null || _c2 === void 0 ? void 0 : _c2.length) !== null && _d2 !== void 0 ? _d2 : 0;
5504
- this.length = this._offsets[this._offsets.length - 1];
5191
+ this.length = this._offsets.at(-1);
5505
5192
  }
5506
5193
  get byteLength() {
5507
5194
  if (this._byteLength === -1) {
@@ -5568,9 +5255,9 @@
5568
5255
  case 1:
5569
5256
  return data[0].values.subarray(0, length * stride);
5570
5257
  default:
5571
- return data.reduce((memo, { values }) => {
5572
- memo.array.set(values, memo.offset);
5573
- memo.offset += values.length;
5258
+ return data.reduce((memo, { values, length: chunk_length }) => {
5259
+ memo.array.set(values.subarray(0, chunk_length * stride), memo.offset);
5260
+ memo.offset += chunk_length * stride;
5574
5261
  return memo;
5575
5262
  }, { array: new ArrayType(length * stride), offset: 0 }).array;
5576
5263
  }
@@ -5714,15 +5401,12 @@ return true;`);
5714
5401
  function valueToCase(x) {
5715
5402
  if (typeof x !== "bigint") {
5716
5403
  return valueToString(x);
5717
- } else if (BigIntAvailable) {
5718
- return `${valueToString(x)}n`;
5719
5404
  }
5720
- return `"${valueToString(x)}"`;
5405
+ return `${valueToString(x)}n`;
5721
5406
  }
5722
5407
  var init_valid = __esm({
5723
5408
  "../../node_modules/apache-arrow/builder/valid.mjs"() {
5724
5409
  init_pretty();
5725
- init_compat();
5726
5410
  }
5727
5411
  });
5728
5412
 
@@ -5731,7 +5415,7 @@ return true;`);
5731
5415
  var init_buffer2 = __esm({
5732
5416
  "../../node_modules/apache-arrow/builder/buffer.mjs"() {
5733
5417
  init_buffer();
5734
- roundLengthUpToNearest64Bytes = (len, BPE) => (len * BPE + 63 & ~63 || 64) / BPE;
5418
+ roundLengthUpToNearest64Bytes = (len, BPE) => (Math.ceil(len) * BPE + 63 & ~63 || 64) / BPE;
5735
5419
  sliceOrExtendArray = (arr, len = 0) => arr.length >= len ? arr.subarray(0, len) : memcpy(new arr.constructor(len), arr, 0);
5736
5420
  BufferBuilder = class {
5737
5421
  constructor(buffer, stride = 1) {
@@ -5739,10 +5423,10 @@ return true;`);
5739
5423
  this.stride = stride;
5740
5424
  this.BYTES_PER_ELEMENT = buffer.BYTES_PER_ELEMENT;
5741
5425
  this.ArrayType = buffer.constructor;
5742
- this._resize(this.length = Math.trunc(buffer.length / stride));
5426
+ this._resize(this.length = Math.ceil(buffer.length / stride));
5743
5427
  }
5744
5428
  get byteLength() {
5745
- return Math.trunc(this.length * this.stride * this.BYTES_PER_ELEMENT);
5429
+ return Math.ceil(this.length * this.stride) * this.BYTES_PER_ELEMENT;
5746
5430
  }
5747
5431
  get reservedLength() {
5748
5432
  return this.buffer.length / this.stride;
@@ -5856,6 +5540,12 @@ return true;`);
5856
5540
  init_valid();
5857
5541
  init_buffer2();
5858
5542
  Builder = class {
5543
+ static throughNode(options) {
5544
+ throw new Error(`"throughNode" not available in this environment`);
5545
+ }
5546
+ static throughDOM(options) {
5547
+ throw new Error(`"throughDOM" not available in this environment`);
5548
+ }
5859
5549
  constructor({ "type": type, "nullValues": nulls }) {
5860
5550
  this.length = 0;
5861
5551
  this.finished = false;
@@ -5868,12 +5558,6 @@ return true;`);
5868
5558
  this._isValid = createIsValidFunction(nulls);
5869
5559
  }
5870
5560
  }
5871
- static throughNode(options) {
5872
- throw new Error(`"throughNode" not available in this environment`);
5873
- }
5874
- static throughDOM(options) {
5875
- throw new Error(`"throughDOM" not available in this environment`);
5876
- }
5877
5561
  toVector() {
5878
5562
  return new Vector([this.flush()]);
5879
5563
  }
@@ -6083,10 +5767,10 @@ return true;`);
6083
5767
  }
6084
5768
  static createBlock(builder, offset, metaDataLength, bodyLength) {
6085
5769
  builder.prep(8, 24);
6086
- builder.writeInt64(bodyLength);
5770
+ builder.writeInt64(BigInt(bodyLength !== null && bodyLength !== void 0 ? bodyLength : 0));
6087
5771
  builder.pad(4);
6088
5772
  builder.writeInt32(metaDataLength);
6089
- builder.writeInt64(offset);
5773
+ builder.writeInt64(BigInt(offset !== null && offset !== void 0 ? offset : 0));
6090
5774
  return builder.offset();
6091
5775
  }
6092
5776
  };
@@ -6115,29 +5799,6 @@ return true;`);
6115
5799
  }
6116
5800
  });
6117
5801
 
6118
- // ../../node_modules/apache-arrow/node_modules/flatbuffers/mjs/long.js
6119
- var Long;
6120
- var init_long = __esm({
6121
- "../../node_modules/apache-arrow/node_modules/flatbuffers/mjs/long.js"() {
6122
- Long = class {
6123
- constructor(low, high) {
6124
- this.low = low | 0;
6125
- this.high = high | 0;
6126
- }
6127
- static create(low, high) {
6128
- return low == 0 && high == 0 ? Long.ZERO : new Long(low, high);
6129
- }
6130
- toFloat64() {
6131
- return (this.low >>> 0) + this.high * 4294967296;
6132
- }
6133
- equals(other) {
6134
- return this.low == other.low && this.high == other.high;
6135
- }
6136
- };
6137
- Long.ZERO = new Long(0, 0);
6138
- }
6139
- });
6140
-
6141
5802
  // ../../node_modules/apache-arrow/node_modules/flatbuffers/mjs/encoding.js
6142
5803
  var Encoding;
6143
5804
  var init_encoding = __esm({
@@ -6154,13 +5815,13 @@ return true;`);
6154
5815
  var init_byte_buffer = __esm({
6155
5816
  "../../node_modules/apache-arrow/node_modules/flatbuffers/mjs/byte-buffer.js"() {
6156
5817
  init_constants();
6157
- init_long();
6158
5818
  init_utils();
6159
5819
  init_encoding();
6160
5820
  ByteBuffer = class {
6161
5821
  constructor(bytes_) {
6162
5822
  this.bytes_ = bytes_;
6163
5823
  this.position_ = 0;
5824
+ this.text_decoder_ = new TextDecoder();
6164
5825
  }
6165
5826
  static allocate(byte_size) {
6166
5827
  return new ByteBuffer(new Uint8Array(byte_size));
@@ -6199,10 +5860,10 @@ return true;`);
6199
5860
  return this.readInt32(offset) >>> 0;
6200
5861
  }
6201
5862
  readInt64(offset) {
6202
- return new Long(this.readInt32(offset), this.readInt32(offset + 4));
5863
+ return BigInt.asIntN(64, BigInt(this.readUint32(offset)) + (BigInt(this.readUint32(offset + 4)) << BigInt(32)));
6203
5864
  }
6204
5865
  readUint64(offset) {
6205
- return new Long(this.readUint32(offset), this.readUint32(offset + 4));
5866
+ return BigInt.asUintN(64, BigInt(this.readUint32(offset)) + (BigInt(this.readUint32(offset + 4)) << BigInt(32)));
6206
5867
  }
6207
5868
  readFloat32(offset) {
6208
5869
  int32[0] = this.readInt32(offset);
@@ -6240,12 +5901,12 @@ return true;`);
6240
5901
  this.bytes_[offset + 3] = value >> 24;
6241
5902
  }
6242
5903
  writeInt64(offset, value) {
6243
- this.writeInt32(offset, value.low);
6244
- this.writeInt32(offset + 4, value.high);
5904
+ this.writeInt32(offset, Number(BigInt.asIntN(32, value)));
5905
+ this.writeInt32(offset + 4, Number(BigInt.asIntN(32, value >> BigInt(32))));
6245
5906
  }
6246
5907
  writeUint64(offset, value) {
6247
- this.writeUint32(offset, value.low);
6248
- this.writeUint32(offset + 4, value.high);
5908
+ this.writeUint32(offset, Number(BigInt.asUintN(32, value)));
5909
+ this.writeUint32(offset + 4, Number(BigInt.asUintN(32, value >> BigInt(32))));
6249
5910
  }
6250
5911
  writeFloat32(offset, value) {
6251
5912
  float32[0] = value;
@@ -6278,39 +5939,12 @@ return true;`);
6278
5939
  __string(offset, opt_encoding) {
6279
5940
  offset += this.readInt32(offset);
6280
5941
  const length = this.readInt32(offset);
6281
- let result = "";
6282
- let i = 0;
6283
5942
  offset += SIZEOF_INT;
6284
- if (opt_encoding === Encoding.UTF8_BYTES) {
6285
- return this.bytes_.subarray(offset, offset + length);
6286
- }
6287
- while (i < length) {
6288
- let codePoint;
6289
- const a = this.readUint8(offset + i++);
6290
- if (a < 192) {
6291
- codePoint = a;
6292
- } else {
6293
- const b = this.readUint8(offset + i++);
6294
- if (a < 224) {
6295
- codePoint = (a & 31) << 6 | b & 63;
6296
- } else {
6297
- const c = this.readUint8(offset + i++);
6298
- if (a < 240) {
6299
- codePoint = (a & 15) << 12 | (b & 63) << 6 | c & 63;
6300
- } else {
6301
- const d = this.readUint8(offset + i++);
6302
- codePoint = (a & 7) << 18 | (b & 63) << 12 | (c & 63) << 6 | d & 63;
6303
- }
6304
- }
6305
- }
6306
- if (codePoint < 65536) {
6307
- result += String.fromCharCode(codePoint);
6308
- } else {
6309
- codePoint -= 65536;
6310
- result += String.fromCharCode((codePoint >> 10) + 55296, (codePoint & (1 << 10) - 1) + 56320);
6311
- }
6312
- }
6313
- return result;
5943
+ const utf8bytes = this.bytes_.subarray(offset, offset + length);
5944
+ if (opt_encoding === Encoding.UTF8_BYTES)
5945
+ return utf8bytes;
5946
+ else
5947
+ return this.text_decoder_.decode(utf8bytes);
6314
5948
  }
6315
5949
  __union_with_string(o, offset) {
6316
5950
  if (typeof o === "string") {
@@ -6338,14 +5972,12 @@ return true;`);
6338
5972
  }
6339
5973
  return true;
6340
5974
  }
6341
- createLong(low, high) {
6342
- return Long.create(low, high);
6343
- }
6344
5975
  createScalarList(listAccessor, listLength) {
6345
5976
  const ret = [];
6346
5977
  for (let i = 0; i < listLength; ++i) {
6347
- if (listAccessor(i) !== null) {
6348
- ret.push(listAccessor(i));
5978
+ const val = listAccessor(i);
5979
+ if (val !== null) {
5980
+ ret.push(val);
6349
5981
  }
6350
5982
  }
6351
5983
  return ret;
@@ -6370,7 +6002,6 @@ return true;`);
6370
6002
  "../../node_modules/apache-arrow/node_modules/flatbuffers/mjs/builder.js"() {
6371
6003
  init_byte_buffer();
6372
6004
  init_constants();
6373
- init_long();
6374
6005
  Builder2 = class {
6375
6006
  constructor(opt_initial_size) {
6376
6007
  this.minalign = 1;
@@ -6382,6 +6013,7 @@ return true;`);
6382
6013
  this.vector_num_elems = 0;
6383
6014
  this.force_defaults = false;
6384
6015
  this.string_maps = null;
6016
+ this.text_encoder = new TextEncoder();
6385
6017
  let initial_size;
6386
6018
  if (!opt_initial_size) {
6387
6019
  initial_size = 1024;
@@ -6491,7 +6123,7 @@ return true;`);
6491
6123
  }
6492
6124
  }
6493
6125
  addFieldInt64(voffset, value, defaultValue) {
6494
- if (this.force_defaults || !value.equals(defaultValue)) {
6126
+ if (this.force_defaults || value !== defaultValue) {
6495
6127
  this.addInt64(value);
6496
6128
  this.slot(voffset);
6497
6129
  }
@@ -6522,12 +6154,12 @@ return true;`);
6522
6154
  }
6523
6155
  nested(obj) {
6524
6156
  if (obj != this.offset()) {
6525
- throw new Error("FlatBuffers: struct must be serialized inline.");
6157
+ throw new TypeError("FlatBuffers: struct must be serialized inline.");
6526
6158
  }
6527
6159
  }
6528
6160
  notNested() {
6529
6161
  if (this.isNested) {
6530
- throw new Error("FlatBuffers: object serialization must not be nested.");
6162
+ throw new TypeError("FlatBuffers: object serialization must not be nested.");
6531
6163
  }
6532
6164
  }
6533
6165
  slot(voffset) {
@@ -6612,7 +6244,7 @@ return true;`);
6612
6244
  const file_identifier = opt_file_identifier;
6613
6245
  this.prep(this.minalign, SIZEOF_INT + FILE_IDENTIFIER_LENGTH + size_prefix);
6614
6246
  if (file_identifier.length != FILE_IDENTIFIER_LENGTH) {
6615
- throw new Error("FlatBuffers: file identifier must be length " + FILE_IDENTIFIER_LENGTH);
6247
+ throw new TypeError("FlatBuffers: file identifier must be length " + FILE_IDENTIFIER_LENGTH);
6616
6248
  }
6617
6249
  for (let i = FILE_IDENTIFIER_LENGTH - 1; i >= 0; i--) {
6618
6250
  this.writeInt8(file_identifier.charCodeAt(i));
@@ -6631,9 +6263,9 @@ return true;`);
6631
6263
  requiredField(table, field) {
6632
6264
  const table_start = this.bb.capacity() - table;
6633
6265
  const vtable_start = table_start - this.bb.readInt32(table_start);
6634
- const ok = this.bb.readInt16(vtable_start + field) != 0;
6266
+ const ok = field < this.bb.readInt16(vtable_start) && this.bb.readInt16(vtable_start + field) != 0;
6635
6267
  if (!ok) {
6636
- throw new Error("FlatBuffers: field " + field + " must be set");
6268
+ throw new TypeError("FlatBuffers: field " + field + " must be set");
6637
6269
  }
6638
6270
  }
6639
6271
  startVector(elem_size, num_elems, alignment) {
@@ -6661,40 +6293,14 @@ return true;`);
6661
6293
  return offset;
6662
6294
  }
6663
6295
  createString(s) {
6664
- if (!s) {
6296
+ if (s === null || s === void 0) {
6665
6297
  return 0;
6666
6298
  }
6667
6299
  let utf8;
6668
6300
  if (s instanceof Uint8Array) {
6669
6301
  utf8 = s;
6670
6302
  } else {
6671
- utf8 = [];
6672
- let i = 0;
6673
- while (i < s.length) {
6674
- let codePoint;
6675
- const a = s.charCodeAt(i++);
6676
- if (a < 55296 || a >= 56320) {
6677
- codePoint = a;
6678
- } else {
6679
- const b = s.charCodeAt(i++);
6680
- codePoint = (a << 10) + b + (65536 - (55296 << 10) - 56320);
6681
- }
6682
- if (codePoint < 128) {
6683
- utf8.push(codePoint);
6684
- } else {
6685
- if (codePoint < 2048) {
6686
- utf8.push(codePoint >> 6 & 31 | 192);
6687
- } else {
6688
- if (codePoint < 65536) {
6689
- utf8.push(codePoint >> 12 & 15 | 224);
6690
- } else {
6691
- utf8.push(codePoint >> 18 & 7 | 240, codePoint >> 12 & 63 | 128);
6692
- }
6693
- utf8.push(codePoint >> 6 & 63 | 128);
6694
- }
6695
- utf8.push(codePoint & 63 | 128);
6696
- }
6697
- }
6303
+ utf8 = this.text_encoder.encode(s);
6698
6304
  }
6699
6305
  this.addInt8(0);
6700
6306
  this.startVector(1, utf8.length, 1);
@@ -6704,9 +6310,6 @@ return true;`);
6704
6310
  }
6705
6311
  return this.endVector();
6706
6312
  }
6707
- createLong(low, high) {
6708
- return Long.create(low, high);
6709
- }
6710
6313
  createObjectOffset(obj) {
6711
6314
  if (obj === null) {
6712
6315
  return 0;
@@ -6724,14 +6327,14 @@ return true;`);
6724
6327
  if (val !== null) {
6725
6328
  ret.push(this.createObjectOffset(val));
6726
6329
  } else {
6727
- throw new Error("FlatBuffers: Argument for createObjectOffsetList cannot contain null.");
6330
+ throw new TypeError("FlatBuffers: Argument for createObjectOffsetList cannot contain null.");
6728
6331
  }
6729
6332
  }
6730
6333
  return ret;
6731
6334
  }
6732
6335
  createStructOffsetList(list, startFunc) {
6733
6336
  startFunc(this, list.length);
6734
- this.createObjectOffsetList(list);
6337
+ this.createObjectOffsetList(list.slice().reverse());
6735
6338
  return this.endVector();
6736
6339
  }
6737
6340
  };
@@ -6746,7 +6349,6 @@ return true;`);
6746
6349
  init_constants();
6747
6350
  init_constants();
6748
6351
  init_utils();
6749
- init_long();
6750
6352
  init_encoding();
6751
6353
  init_builder2();
6752
6354
  init_byte_buffer();
@@ -6920,7 +6522,7 @@ return true;`);
6920
6522
  }
6921
6523
  id() {
6922
6524
  const offset = this.bb.__offset(this.bb_pos, 4);
6923
- return offset ? this.bb.readInt64(this.bb_pos + offset) : this.bb.createLong(0, 0);
6525
+ return offset ? this.bb.readInt64(this.bb_pos + offset) : BigInt("0");
6924
6526
  }
6925
6527
  indexType(obj) {
6926
6528
  const offset = this.bb.__offset(this.bb_pos, 6);
@@ -6938,7 +6540,7 @@ return true;`);
6938
6540
  builder.startObject(4);
6939
6541
  }
6940
6542
  static addId(builder, id) {
6941
- builder.addFieldInt64(0, id, builder.createLong(0, 0));
6543
+ builder.addFieldInt64(0, id, BigInt("0"));
6942
6544
  }
6943
6545
  static addIndexType(builder, indexTypeOffset) {
6944
6546
  builder.addFieldOffset(1, indexTypeOffset, 0);
@@ -7487,10 +7089,10 @@ return true;`);
7487
7089
  }
7488
7090
  });
7489
7091
 
7490
- // ../../node_modules/apache-arrow/fb/struct_.mjs
7092
+ // ../../node_modules/apache-arrow/fb/struct-.mjs
7491
7093
  var Struct_;
7492
7094
  var init_struct2 = __esm({
7493
- "../../node_modules/apache-arrow/fb/struct_.mjs"() {
7095
+ "../../node_modules/apache-arrow/fb/struct-.mjs"() {
7494
7096
  init_flatbuffers();
7495
7097
  Struct_ = class {
7496
7098
  constructor() {
@@ -7779,6 +7381,7 @@ return true;`);
7779
7381
  Type4[Type4["LargeBinary"] = 19] = "LargeBinary";
7780
7382
  Type4[Type4["LargeUtf8"] = 20] = "LargeUtf8";
7781
7383
  Type4[Type4["LargeList"] = 21] = "LargeList";
7384
+ Type4[Type4["RunEndEncoded"] = 22] = "RunEndEncoded";
7782
7385
  })(Type3 || (Type3 = {}));
7783
7386
  }
7784
7387
  });
@@ -7943,7 +7546,7 @@ return true;`);
7943
7546
  }
7944
7547
  features(index) {
7945
7548
  const offset = this.bb.__offset(this.bb_pos, 10);
7946
- return offset ? this.bb.readInt64(this.bb.__vector(this.bb_pos + offset) + index * 8) : this.bb.createLong(0, 0);
7549
+ return offset ? this.bb.readInt64(this.bb.__vector(this.bb_pos + offset) + index * 8) : BigInt(0);
7947
7550
  }
7948
7551
  featuresLength() {
7949
7552
  const offset = this.bb.__offset(this.bb_pos, 10);
@@ -8192,12 +7795,6 @@ return true;`);
8192
7795
  Schema2.prototype.metadata = null;
8193
7796
  Schema2.prototype.dictionaries = null;
8194
7797
  Field2 = class {
8195
- constructor(name, type, nullable = false, metadata2) {
8196
- this.name = name;
8197
- this.type = type;
8198
- this.nullable = nullable;
8199
- this.metadata = metadata2 || new Map();
8200
- }
8201
7798
  static new(...args) {
8202
7799
  let [name, type, nullable, metadata2] = args;
8203
7800
  if (args[0] && typeof args[0] === "object") {
@@ -8208,6 +7805,12 @@ return true;`);
8208
7805
  }
8209
7806
  return new Field2(`${name}`, type, nullable, metadata2);
8210
7807
  }
7808
+ constructor(name, type, nullable = false, metadata2) {
7809
+ this.name = name;
7810
+ this.type = type;
7811
+ this.nullable = nullable;
7812
+ this.metadata = metadata2 || new Map();
7813
+ }
8211
7814
  get typeId() {
8212
7815
  return this.type.typeId;
8213
7816
  }
@@ -8231,7 +7834,7 @@ return true;`);
8231
7834
  });
8232
7835
 
8233
7836
  // ../../node_modules/apache-arrow/ipc/metadata/file.mjs
8234
- var Long2, Builder3, ByteBuffer2, Footer_, OffHeapFooter, FileBlock;
7837
+ var Builder3, ByteBuffer2, Footer_, OffHeapFooter, FileBlock;
8235
7838
  var init_file = __esm({
8236
7839
  "../../node_modules/apache-arrow/ipc/metadata/file.mjs"() {
8237
7840
  init_block();
@@ -8240,16 +7843,10 @@ return true;`);
8240
7843
  init_schema2();
8241
7844
  init_enum2();
8242
7845
  init_buffer();
8243
- Long2 = Long;
7846
+ init_bigint();
8244
7847
  Builder3 = Builder2;
8245
7848
  ByteBuffer2 = ByteBuffer;
8246
7849
  Footer_ = class {
8247
- constructor(schema, version = MetadataVersion.V4, recordBatches, dictionaryBatches) {
8248
- this.schema = schema;
8249
- this.version = version;
8250
- recordBatches && (this._recordBatches = recordBatches);
8251
- dictionaryBatches && (this._dictionaryBatches = dictionaryBatches);
8252
- }
8253
7850
  static decode(buf) {
8254
7851
  buf = new ByteBuffer2(toUint8Array(buf));
8255
7852
  const footer = Footer.getRootAsFooter(buf);
@@ -8283,6 +7880,12 @@ return true;`);
8283
7880
  get numDictionaries() {
8284
7881
  return this._dictionaryBatches.length;
8285
7882
  }
7883
+ constructor(schema, version = MetadataVersion.V4, recordBatches, dictionaryBatches) {
7884
+ this.schema = schema;
7885
+ this.version = version;
7886
+ recordBatches && (this._recordBatches = recordBatches);
7887
+ dictionaryBatches && (this._dictionaryBatches = dictionaryBatches);
7888
+ }
8286
7889
  *recordBatches() {
8287
7890
  for (let block, i = -1, n = this.numRecordBatches; ++i < n; ) {
8288
7891
  if (block = this.getRecordBatch(i)) {
@@ -8305,16 +7908,16 @@ return true;`);
8305
7908
  }
8306
7909
  };
8307
7910
  OffHeapFooter = class extends Footer_ {
8308
- constructor(schema, _footer) {
8309
- super(schema, _footer.version());
8310
- this._footer = _footer;
8311
- }
8312
7911
  get numRecordBatches() {
8313
7912
  return this._footer.recordBatchesLength();
8314
7913
  }
8315
7914
  get numDictionaries() {
8316
7915
  return this._footer.dictionariesLength();
8317
7916
  }
7917
+ constructor(schema, _footer) {
7918
+ super(schema, _footer.version());
7919
+ this._footer = _footer;
7920
+ }
8318
7921
  getRecordBatch(index) {
8319
7922
  if (index >= 0 && index < this.numRecordBatches) {
8320
7923
  const fileBlock = this._footer.recordBatches(index);
@@ -8335,20 +7938,20 @@ return true;`);
8335
7938
  }
8336
7939
  };
8337
7940
  FileBlock = class {
8338
- constructor(metaDataLength, bodyLength, offset) {
8339
- this.metaDataLength = metaDataLength;
8340
- this.offset = typeof offset === "number" ? offset : offset.low;
8341
- this.bodyLength = typeof bodyLength === "number" ? bodyLength : bodyLength.low;
8342
- }
8343
7941
  static decode(block) {
8344
7942
  return new FileBlock(block.metaDataLength(), block.bodyLength(), block.offset());
8345
7943
  }
8346
7944
  static encode(b, fileBlock) {
8347
7945
  const { metaDataLength } = fileBlock;
8348
- const offset = new Long2(fileBlock.offset, 0);
8349
- const bodyLength = new Long2(fileBlock.bodyLength, 0);
7946
+ const offset = BigInt(fileBlock.offset);
7947
+ const bodyLength = BigInt(fileBlock.bodyLength);
8350
7948
  return Block.createBlock(b, offset, metaDataLength, bodyLength);
8351
7949
  }
7950
+ constructor(metaDataLength, bodyLength, offset) {
7951
+ this.metaDataLength = metaDataLength;
7952
+ this.offset = bigIntToNumber(offset);
7953
+ this.bodyLength = bigIntToNumber(bodyLength);
7954
+ }
8352
7955
  };
8353
7956
  }
8354
7957
  });
@@ -8357,7 +7960,7 @@ return true;`);
8357
7960
  var ITERATOR_DONE, ArrowJSON, ReadableInterop, AsyncQueue;
8358
7961
  var init_interfaces = __esm({
8359
7962
  "../../node_modules/apache-arrow/io/interfaces.mjs"() {
8360
- init_modules();
7963
+ init_tslib_es6();
8361
7964
  init_adapters();
8362
7965
  ITERATOR_DONE = Object.freeze({ done: true, value: void 0 });
8363
7966
  ArrowJSON = class {
@@ -8487,7 +8090,7 @@ return true;`);
8487
8090
  var AsyncByteQueue, ByteStream, AsyncByteStream, ByteStreamSource, AsyncByteStreamSource;
8488
8091
  var init_stream = __esm({
8489
8092
  "../../node_modules/apache-arrow/io/stream.mjs"() {
8490
- init_modules();
8093
+ init_tslib_es6();
8491
8094
  init_adapters();
8492
8095
  init_utf8();
8493
8096
  init_interfaces();
@@ -8504,12 +8107,14 @@ return true;`);
8504
8107
  }
8505
8108
  toUint8Array(sync = false) {
8506
8109
  return sync ? joinUint8Arrays(this._values)[0] : (() => __awaiter(this, void 0, void 0, function* () {
8507
- var e_1, _a5;
8110
+ var _a5, e_1, _b2, _c2;
8508
8111
  const buffers = [];
8509
8112
  let byteLength = 0;
8510
8113
  try {
8511
- for (var _b2 = __asyncValues(this), _c2; _c2 = yield _b2.next(), !_c2.done; ) {
8512
- const chunk = _c2.value;
8114
+ for (var _d2 = true, _e2 = __asyncValues(this), _f2; _f2 = yield _e2.next(), _a5 = _f2.done, !_a5; _d2 = true) {
8115
+ _c2 = _f2.value;
8116
+ _d2 = false;
8117
+ const chunk = _c2;
8513
8118
  buffers.push(chunk);
8514
8119
  byteLength += chunk.byteLength;
8515
8120
  }
@@ -8517,8 +8122,8 @@ return true;`);
8517
8122
  e_1 = { error: e_1_1 };
8518
8123
  } finally {
8519
8124
  try {
8520
- if (_c2 && !_c2.done && (_a5 = _b2.return))
8521
- yield _a5.call(_b2);
8125
+ if (!_d2 && !_a5 && (_b2 = _e2.return))
8126
+ yield _b2.call(_e2);
8522
8127
  } finally {
8523
8128
  if (e_1)
8524
8129
  throw e_1.error;
@@ -8673,7 +8278,7 @@ return true;`);
8673
8278
  var RandomAccessFile, AsyncRandomAccessFile;
8674
8279
  var init_file2 = __esm({
8675
8280
  "../../node_modules/apache-arrow/io/file.mjs"() {
8676
- init_modules();
8281
+ init_tslib_es6();
8677
8282
  init_stream();
8678
8283
  init_buffer();
8679
8284
  RandomAccessFile = class extends ByteStream {
@@ -8681,7 +8286,7 @@ return true;`);
8681
8286
  super();
8682
8287
  this.position = 0;
8683
8288
  this.buffer = toUint8Array(buffer);
8684
- this.size = typeof byteLength === "undefined" ? this.buffer.byteLength : byteLength;
8289
+ this.size = byteLength === void 0 ? this.buffer.byteLength : byteLength;
8685
8290
  }
8686
8291
  readInt32(position) {
8687
8292
  const { buffer, byteOffset } = this.readAt(position, 4);
@@ -9564,13 +9169,14 @@ return true;`);
9564
9169
  const offsets = this._offsets;
9565
9170
  const [child] = this.children;
9566
9171
  for (const [index, value] of pending) {
9567
- if (value === void 0) {
9172
+ if (typeof value === "undefined") {
9568
9173
  offsets.set(index, 0);
9569
9174
  } else {
9570
- const n = value.length;
9175
+ const v = value;
9176
+ const n = v.length;
9571
9177
  const start = offsets.set(index, n).buffer[index];
9572
9178
  for (let i = -1; ++i < n; ) {
9573
- child.set(start + i, value[i]);
9179
+ child.set(start + i, v[i]);
9574
9180
  }
9575
9181
  }
9576
9182
  }
@@ -10112,7 +9718,6 @@ return true;`);
10112
9718
  }
10113
9719
  var init_factories = __esm({
10114
9720
  "../../node_modules/apache-arrow/factories.mjs"() {
10115
- init_modules();
10116
9721
  init_builderctor();
10117
9722
  }
10118
9723
  });
@@ -10218,7 +9823,7 @@ return true;`);
10218
9823
  if (args[0] instanceof Schema2) {
10219
9824
  schema = args.shift();
10220
9825
  }
10221
- if (args[args.length - 1] instanceof Uint32Array) {
9826
+ if (args.at(-1) instanceof Uint32Array) {
10222
9827
  offsets = args.pop();
10223
9828
  }
10224
9829
  const unwrap = (x) => {
@@ -10698,8 +10303,8 @@ return true;`);
10698
10303
  }
10699
10304
  static createBuffer(builder, offset, length) {
10700
10305
  builder.prep(8, 16);
10701
- builder.writeInt64(length);
10702
- builder.writeInt64(offset);
10306
+ builder.writeInt64(BigInt(length !== null && length !== void 0 ? length : 0));
10307
+ builder.writeInt64(BigInt(offset !== null && offset !== void 0 ? offset : 0));
10703
10308
  return builder.offset();
10704
10309
  }
10705
10310
  };
@@ -10731,8 +10336,8 @@ return true;`);
10731
10336
  }
10732
10337
  static createFieldNode(builder, length, null_count) {
10733
10338
  builder.prep(8, 16);
10734
- builder.writeInt64(null_count);
10735
- builder.writeInt64(length);
10339
+ builder.writeInt64(BigInt(null_count !== null && null_count !== void 0 ? null_count : 0));
10340
+ builder.writeInt64(BigInt(length !== null && length !== void 0 ? length : 0));
10736
10341
  return builder.offset();
10737
10342
  }
10738
10343
  };
@@ -10766,7 +10371,7 @@ return true;`);
10766
10371
  }
10767
10372
  length() {
10768
10373
  const offset = this.bb.__offset(this.bb_pos, 4);
10769
- return offset ? this.bb.readInt64(this.bb_pos + offset) : this.bb.createLong(0, 0);
10374
+ return offset ? this.bb.readInt64(this.bb_pos + offset) : BigInt("0");
10770
10375
  }
10771
10376
  nodes(index, obj) {
10772
10377
  const offset = this.bb.__offset(this.bb_pos, 6);
@@ -10792,7 +10397,7 @@ return true;`);
10792
10397
  builder.startObject(4);
10793
10398
  }
10794
10399
  static addLength(builder, length) {
10795
- builder.addFieldInt64(0, length, builder.createLong(0, 0));
10400
+ builder.addFieldInt64(0, length, BigInt("0"));
10796
10401
  }
10797
10402
  static addNodes(builder, nodesOffset) {
10798
10403
  builder.addFieldOffset(1, nodesOffset, 0);
@@ -10842,7 +10447,7 @@ return true;`);
10842
10447
  }
10843
10448
  id() {
10844
10449
  const offset = this.bb.__offset(this.bb_pos, 4);
10845
- return offset ? this.bb.readInt64(this.bb_pos + offset) : this.bb.createLong(0, 0);
10450
+ return offset ? this.bb.readInt64(this.bb_pos + offset) : BigInt("0");
10846
10451
  }
10847
10452
  data(obj) {
10848
10453
  const offset = this.bb.__offset(this.bb_pos, 6);
@@ -10856,7 +10461,7 @@ return true;`);
10856
10461
  builder.startObject(3);
10857
10462
  }
10858
10463
  static addId(builder, id) {
10859
- builder.addFieldInt64(0, id, builder.createLong(0, 0));
10464
+ builder.addFieldInt64(0, id, BigInt("0"));
10860
10465
  }
10861
10466
  static addData(builder, dataOffset) {
10862
10467
  builder.addFieldOffset(1, dataOffset, 0);
@@ -10926,7 +10531,7 @@ return true;`);
10926
10531
  }
10927
10532
  bodyLength() {
10928
10533
  const offset = this.bb.__offset(this.bb_pos, 10);
10929
- return offset ? this.bb.readInt64(this.bb_pos + offset) : this.bb.createLong(0, 0);
10534
+ return offset ? this.bb.readInt64(this.bb_pos + offset) : BigInt("0");
10930
10535
  }
10931
10536
  customMetadata(index, obj) {
10932
10537
  const offset = this.bb.__offset(this.bb_pos, 12);
@@ -10949,7 +10554,7 @@ return true;`);
10949
10554
  builder.addFieldOffset(2, headerOffset, 0);
10950
10555
  }
10951
10556
  static addBodyLength(builder, bodyLength) {
10952
- builder.addFieldInt64(3, bodyLength, builder.createLong(0, 0));
10557
+ builder.addFieldInt64(3, bodyLength, BigInt("0"));
10953
10558
  }
10954
10559
  static addCustomMetadata(builder, customMetadataOffset) {
10955
10560
  builder.addFieldOffset(4, customMetadataOffset, 0);
@@ -10988,10 +10593,9 @@ return true;`);
10988
10593
  });
10989
10594
 
10990
10595
  // ../../node_modules/apache-arrow/visitor/typeassembler.mjs
10991
- var Long3, TypeAssembler, instance8;
10596
+ var TypeAssembler, instance8;
10992
10597
  var init_typeassembler = __esm({
10993
10598
  "../../node_modules/apache-arrow/visitor/typeassembler.mjs"() {
10994
- init_flatbuffers();
10995
10599
  init_visitor();
10996
10600
  init_null();
10997
10601
  init_int();
@@ -11011,7 +10615,6 @@ return true;`);
11011
10615
  init_fixed_size_binary();
11012
10616
  init_fixed_size_list();
11013
10617
  init_map2();
11014
- Long3 = Long;
11015
10618
  TypeAssembler = class extends Visitor {
11016
10619
  visit(node, builder) {
11017
10620
  return node == null || builder == null ? void 0 : super.visit(node, builder);
@@ -11094,7 +10697,7 @@ return true;`);
11094
10697
  visitDictionary(node, b) {
11095
10698
  const indexType = this.visit(node.indices, b);
11096
10699
  DictionaryEncoding.startDictionaryEncoding(b);
11097
- DictionaryEncoding.addId(b, new Long3(node.id, 0));
10700
+ DictionaryEncoding.addId(b, BigInt(node.id));
11098
10701
  DictionaryEncoding.addIsOrdered(b, node.isOrdered);
11099
10702
  if (indexType !== void 0) {
11100
10703
  DictionaryEncoding.addIndexType(b, indexType);
@@ -11358,7 +10961,7 @@ return true;`);
11358
10961
  if (!dictionaries || !(dictMeta = f.dictionary())) {
11359
10962
  type = decodeFieldType(f, decodeFieldChildren(f, dictionaries));
11360
10963
  field = new Field2(f.name(), type, f.nullable(), decodeCustomMetadata(f));
11361
- } else if (!dictionaries.has(id = dictMeta.id().low)) {
10964
+ } else if (!dictionaries.has(id = bigIntToNumber(dictMeta.id()))) {
11362
10965
  keys = (keys = dictMeta.indexType()) ? decodeIndexType(keys) : new Int322();
11363
10966
  dictionaries.set(id, type = decodeFieldType(f, decodeFieldChildren(f, dictionaries)));
11364
10967
  dictType = new Dictionary(type, keys, id, dictMeta.isOrdered());
@@ -11524,7 +11127,7 @@ return true;`);
11524
11127
  BufferRegion.encode(b, b_);
11525
11128
  const buffersVectorOffset = b.endVector();
11526
11129
  RecordBatch2.startRecordBatch(b);
11527
- RecordBatch2.addLength(b, new Long4(recordBatch.length, 0));
11130
+ RecordBatch2.addLength(b, BigInt(recordBatch.length));
11528
11131
  RecordBatch2.addNodes(b, nodesVectorOffset);
11529
11132
  RecordBatch2.addBuffers(b, buffersVectorOffset);
11530
11133
  return RecordBatch2.endRecordBatch(b);
@@ -11532,18 +11135,18 @@ return true;`);
11532
11135
  function encodeDictionaryBatch(b, dictionaryBatch) {
11533
11136
  const dataOffset = RecordBatch3.encode(b, dictionaryBatch.data);
11534
11137
  DictionaryBatch.startDictionaryBatch(b);
11535
- DictionaryBatch.addId(b, new Long4(dictionaryBatch.id, 0));
11138
+ DictionaryBatch.addId(b, BigInt(dictionaryBatch.id));
11536
11139
  DictionaryBatch.addIsDelta(b, dictionaryBatch.isDelta);
11537
11140
  DictionaryBatch.addData(b, dataOffset);
11538
11141
  return DictionaryBatch.endDictionaryBatch(b);
11539
11142
  }
11540
11143
  function encodeFieldNode(b, node) {
11541
- return FieldNode.createFieldNode(b, new Long4(node.length, 0), new Long4(node.nullCount, 0));
11144
+ return FieldNode.createFieldNode(b, BigInt(node.length), BigInt(node.nullCount));
11542
11145
  }
11543
11146
  function encodeBufferRegion(b, node) {
11544
- return Buffer2.createBuffer(b, new Long4(node.offset, 0), new Long4(node.length, 0));
11147
+ return Buffer2.createBuffer(b, BigInt(node.offset), BigInt(node.length));
11545
11148
  }
11546
- var Long4, Builder4, ByteBuffer3, Message2, RecordBatch3, DictionaryBatch2, BufferRegion, FieldNode2, platformIsLittleEndian;
11149
+ var Builder4, ByteBuffer3, Message2, RecordBatch3, DictionaryBatch2, BufferRegion, FieldNode2, platformIsLittleEndian;
11547
11150
  var init_message2 = __esm({
11548
11151
  "../../node_modules/apache-arrow/ipc/metadata/message.mjs"() {
11549
11152
  init_flatbuffers();
@@ -11570,21 +11173,14 @@ return true;`);
11570
11173
  init_message();
11571
11174
  init_schema2();
11572
11175
  init_buffer();
11176
+ init_bigint();
11573
11177
  init_enum2();
11574
11178
  init_typeassembler();
11575
11179
  init_json();
11576
11180
  init_type();
11577
- Long4 = Long;
11578
11181
  Builder4 = Builder2;
11579
11182
  ByteBuffer3 = ByteBuffer;
11580
11183
  Message2 = class {
11581
- constructor(bodyLength, version, headerType, header) {
11582
- this._version = version;
11583
- this._headerType = headerType;
11584
- this.body = new Uint8Array(0);
11585
- header && (this._createHeader = () => header);
11586
- this._bodyLength = typeof bodyLength === "number" ? bodyLength : bodyLength.low;
11587
- }
11588
11184
  static fromJSON(msg, headerType) {
11589
11185
  const message = new Message2(0, MetadataVersion.V4, headerType);
11590
11186
  message._createHeader = messageHeaderFromJSON(msg, headerType);
@@ -11614,7 +11210,7 @@ return true;`);
11614
11210
  Message.addVersion(b, MetadataVersion.V4);
11615
11211
  Message.addHeader(b, headerOffset);
11616
11212
  Message.addHeaderType(b, message.headerType);
11617
- Message.addBodyLength(b, new Long4(message.bodyLength, 0));
11213
+ Message.addBodyLength(b, BigInt(message.bodyLength));
11618
11214
  Message.finishMessageBuffer(b, Message.endMessage(b));
11619
11215
  return b.asUint8Array();
11620
11216
  }
@@ -11654,13 +11250,15 @@ return true;`);
11654
11250
  isDictionaryBatch() {
11655
11251
  return this.headerType === MessageHeader.DictionaryBatch;
11656
11252
  }
11253
+ constructor(bodyLength, version, headerType, header) {
11254
+ this._version = version;
11255
+ this._headerType = headerType;
11256
+ this.body = new Uint8Array(0);
11257
+ header && (this._createHeader = () => header);
11258
+ this._bodyLength = bigIntToNumber(bodyLength);
11259
+ }
11657
11260
  };
11658
11261
  RecordBatch3 = class {
11659
- constructor(length, nodes, buffers) {
11660
- this._nodes = nodes;
11661
- this._buffers = buffers;
11662
- this._length = typeof length === "number" ? length : length.low;
11663
- }
11664
11262
  get nodes() {
11665
11263
  return this._nodes;
11666
11264
  }
@@ -11670,13 +11268,13 @@ return true;`);
11670
11268
  get buffers() {
11671
11269
  return this._buffers;
11672
11270
  }
11271
+ constructor(length, nodes, buffers) {
11272
+ this._nodes = nodes;
11273
+ this._buffers = buffers;
11274
+ this._length = bigIntToNumber(length);
11275
+ }
11673
11276
  };
11674
11277
  DictionaryBatch2 = class {
11675
- constructor(data, id, isDelta = false) {
11676
- this._data = data;
11677
- this._isDelta = isDelta;
11678
- this._id = typeof id === "number" ? id : id.low;
11679
- }
11680
11278
  get id() {
11681
11279
  return this._id;
11682
11280
  }
@@ -11695,17 +11293,22 @@ return true;`);
11695
11293
  get buffers() {
11696
11294
  return this.data.buffers;
11697
11295
  }
11296
+ constructor(data, id, isDelta = false) {
11297
+ this._data = data;
11298
+ this._isDelta = isDelta;
11299
+ this._id = bigIntToNumber(id);
11300
+ }
11698
11301
  };
11699
11302
  BufferRegion = class {
11700
11303
  constructor(offset, length) {
11701
- this.offset = typeof offset === "number" ? offset : offset.low;
11702
- this.length = typeof length === "number" ? length : length.low;
11304
+ this.offset = bigIntToNumber(offset);
11305
+ this.length = bigIntToNumber(length);
11703
11306
  }
11704
11307
  };
11705
11308
  FieldNode2 = class {
11706
11309
  constructor(length, nullCount) {
11707
- this.length = typeof length === "number" ? length : length.low;
11708
- this.nullCount = typeof nullCount === "number" ? nullCount : nullCount.low;
11310
+ this.length = bigIntToNumber(length);
11311
+ this.nullCount = bigIntToNumber(nullCount);
11709
11312
  }
11710
11313
  };
11711
11314
  Field2["encode"] = encodeField;
@@ -11744,7 +11347,7 @@ return true;`);
11744
11347
  var invalidMessageType, nullMessage, invalidMessageMetadata, invalidMessageBodyLength, MessageReader, AsyncMessageReader, JSONMessageReader, PADDING, MAGIC_STR, MAGIC, magicLength, magicAndPadding, magicX2AndPadding;
11745
11348
  var init_message3 = __esm({
11746
11349
  "../../node_modules/apache-arrow/ipc/message.mjs"() {
11747
- init_modules();
11350
+ init_tslib_es6();
11748
11351
  init_enum2();
11749
11352
  init_flatbuffers();
11750
11353
  init_message2();
@@ -11994,8 +11597,8 @@ return true;`);
11994
11597
  });
11995
11598
 
11996
11599
  // ../../node_modules/apache-arrow/ipc/reader.mjs
11997
- function shouldAutoDestroy(self2, options) {
11998
- return options && typeof options["autoDestroy"] === "boolean" ? options["autoDestroy"] : self2["autoDestroy"];
11600
+ function shouldAutoDestroy(self, options) {
11601
+ return options && typeof options["autoDestroy"] === "boolean" ? options["autoDestroy"] : self["autoDestroy"];
11999
11602
  }
12000
11603
  function* readAllSync(source) {
12001
11604
  const reader = RecordBatchReader.from(source);
@@ -12053,7 +11656,7 @@ return true;`);
12053
11656
  var RecordBatchReader, RecordBatchStreamReader, AsyncRecordBatchStreamReader, RecordBatchFileReader, AsyncRecordBatchFileReader, RecordBatchReaderImpl, RecordBatchStreamReaderImpl, AsyncRecordBatchStreamReaderImpl, RecordBatchFileReaderImpl, AsyncRecordBatchFileReaderImpl, RecordBatchJSONReaderImpl;
12054
11657
  var init_reader = __esm({
12055
11658
  "../../node_modules/apache-arrow/ipc/reader.mjs"() {
12056
- init_modules();
11659
+ init_tslib_es6();
12057
11660
  init_data();
12058
11661
  init_vector2();
12059
11662
  init_type();
@@ -12196,20 +11799,22 @@ return true;`);
12196
11799
  this._impl = _impl;
12197
11800
  }
12198
11801
  readAll() {
12199
- var e_1, _a5;
11802
+ var _a5, e_1, _b2, _c2;
12200
11803
  return __awaiter(this, void 0, void 0, function* () {
12201
11804
  const batches = new Array();
12202
11805
  try {
12203
- for (var _b2 = __asyncValues(this), _c2; _c2 = yield _b2.next(), !_c2.done; ) {
12204
- const batch = _c2.value;
11806
+ for (var _d2 = true, _e2 = __asyncValues(this), _f2; _f2 = yield _e2.next(), _a5 = _f2.done, !_a5; _d2 = true) {
11807
+ _c2 = _f2.value;
11808
+ _d2 = false;
11809
+ const batch = _c2;
12205
11810
  batches.push(batch);
12206
11811
  }
12207
11812
  } catch (e_1_1) {
12208
11813
  e_1 = { error: e_1_1 };
12209
11814
  } finally {
12210
11815
  try {
12211
- if (_c2 && !_c2.done && (_a5 = _b2.return))
12212
- yield _a5.call(_b2);
11816
+ if (!_d2 && !_a5 && (_b2 = _e2.return))
11817
+ yield _b2.call(_e2);
12213
11818
  } finally {
12214
11819
  if (e_1)
12215
11820
  throw e_1.error;
@@ -12238,6 +11843,12 @@ return true;`);
12238
11843
  }
12239
11844
  };
12240
11845
  RecordBatchReaderImpl = class {
11846
+ get numDictionaries() {
11847
+ return this._dictionaryIndex;
11848
+ }
11849
+ get numRecordBatches() {
11850
+ return this._recordBatchIndex;
11851
+ }
12241
11852
  constructor(dictionaries = new Map()) {
12242
11853
  this.closed = false;
12243
11854
  this.autoDestroy = true;
@@ -12245,12 +11856,6 @@ return true;`);
12245
11856
  this._recordBatchIndex = 0;
12246
11857
  this.dictionaries = dictionaries;
12247
11858
  }
12248
- get numDictionaries() {
12249
- return this._dictionaryIndex;
12250
- }
12251
- get numRecordBatches() {
12252
- return this._recordBatchIndex;
12253
- }
12254
11859
  isSync() {
12255
11860
  return false;
12256
11861
  }
@@ -12453,9 +12058,6 @@ return true;`);
12453
12058
  }
12454
12059
  };
12455
12060
  RecordBatchFileReaderImpl = class extends RecordBatchStreamReaderImpl {
12456
- constructor(source, dictionaries) {
12457
- super(source instanceof RandomAccessFile ? source : new RandomAccessFile(source), dictionaries);
12458
- }
12459
12061
  get footer() {
12460
12062
  return this._footer;
12461
12063
  }
@@ -12465,6 +12067,9 @@ return true;`);
12465
12067
  get numRecordBatches() {
12466
12068
  return this._footer ? this._footer.numRecordBatches : 0;
12467
12069
  }
12070
+ constructor(source, dictionaries) {
12071
+ super(source instanceof RandomAccessFile ? source : new RandomAccessFile(source), dictionaries);
12072
+ }
12468
12073
  isSync() {
12469
12074
  return true;
12470
12075
  }
@@ -12535,11 +12140,6 @@ return true;`);
12535
12140
  }
12536
12141
  };
12537
12142
  AsyncRecordBatchFileReaderImpl = class extends AsyncRecordBatchStreamReaderImpl {
12538
- constructor(source, ...rest) {
12539
- const byteLength = typeof rest[0] !== "number" ? rest.shift() : void 0;
12540
- const dictionaries = rest[0] instanceof Map ? rest.shift() : void 0;
12541
- super(source instanceof AsyncRandomAccessFile ? source : new AsyncRandomAccessFile(source, byteLength), dictionaries);
12542
- }
12543
12143
  get footer() {
12544
12144
  return this._footer;
12545
12145
  }
@@ -12549,6 +12149,11 @@ return true;`);
12549
12149
  get numRecordBatches() {
12550
12150
  return this._footer ? this._footer.numRecordBatches : 0;
12551
12151
  }
12152
+ constructor(source, ...rest) {
12153
+ const byteLength = typeof rest[0] !== "number" ? rest.shift() : void 0;
12154
+ const dictionaries = rest[0] instanceof Map ? rest.shift() : void 0;
12155
+ super(source instanceof AsyncRandomAccessFile ? source : new AsyncRandomAccessFile(source, byteLength), dictionaries);
12156
+ }
12552
12157
  isFile() {
12553
12158
  return true;
12554
12159
  }
@@ -12727,6 +12332,12 @@ return true;`);
12727
12332
  init_message2();
12728
12333
  init_type();
12729
12334
  VectorAssembler = class extends Visitor {
12335
+ static assemble(...args) {
12336
+ const unwrap = (nodes) => nodes.flatMap((node) => Array.isArray(node) ? unwrap(node) : node instanceof RecordBatch ? node.data.children : node.data);
12337
+ const assembler = new VectorAssembler();
12338
+ assembler.visitMany(unwrap(args));
12339
+ return assembler;
12340
+ }
12730
12341
  constructor() {
12731
12342
  super();
12732
12343
  this._byteLength = 0;
@@ -12734,12 +12345,6 @@ return true;`);
12734
12345
  this._buffers = [];
12735
12346
  this._bufferRegions = [];
12736
12347
  }
12737
- static assemble(...args) {
12738
- const unwrap = (nodes) => nodes.flatMap((node) => Array.isArray(node) ? unwrap(node) : node instanceof RecordBatch ? node.data.children : node.data);
12739
- const assembler = new VectorAssembler();
12740
- assembler.visitMany(unwrap(args));
12741
- return assembler;
12742
- }
12743
12348
  visit(data) {
12744
12349
  if (data instanceof Vector) {
12745
12350
  this.visitMany(data.data);
@@ -12809,20 +12414,22 @@ return true;`);
12809
12414
  return writer.finish();
12810
12415
  }
12811
12416
  function writeAllAsync(writer, batches) {
12812
- var batches_1, batches_1_1;
12813
- var e_1, _a5;
12417
+ var _a5, batches_1, batches_1_1;
12418
+ var _b2, e_1, _c2, _d2;
12814
12419
  return __awaiter(this, void 0, void 0, function* () {
12815
12420
  try {
12816
- for (batches_1 = __asyncValues(batches); batches_1_1 = yield batches_1.next(), !batches_1_1.done; ) {
12817
- const batch = batches_1_1.value;
12421
+ for (_a5 = true, batches_1 = __asyncValues(batches); batches_1_1 = yield batches_1.next(), _b2 = batches_1_1.done, !_b2; _a5 = true) {
12422
+ _d2 = batches_1_1.value;
12423
+ _a5 = false;
12424
+ const batch = _d2;
12818
12425
  writer.write(batch);
12819
12426
  }
12820
12427
  } catch (e_1_1) {
12821
12428
  e_1 = { error: e_1_1 };
12822
12429
  } finally {
12823
12430
  try {
12824
- if (batches_1_1 && !batches_1_1.done && (_a5 = batches_1.return))
12825
- yield _a5.call(batches_1);
12431
+ if (!_a5 && !_b2 && (_c2 = batches_1.return))
12432
+ yield _c2.call(batches_1);
12826
12433
  } finally {
12827
12434
  if (e_1)
12828
12435
  throw e_1.error;
@@ -12834,7 +12441,7 @@ return true;`);
12834
12441
  var RecordBatchWriter, RecordBatchStreamWriter, RecordBatchFileWriter;
12835
12442
  var init_writer = __esm({
12836
12443
  "../../node_modules/apache-arrow/ipc/writer.mjs"() {
12837
- init_modules();
12444
+ init_tslib_es6();
12838
12445
  init_table();
12839
12446
  init_message3();
12840
12447
  init_vector2();
@@ -12850,6 +12457,12 @@ return true;`);
12850
12457
  init_interfaces();
12851
12458
  init_compat();
12852
12459
  RecordBatchWriter = class extends ReadableInterop {
12460
+ static throughNode(options) {
12461
+ throw new Error(`"throughNode" not available in this environment`);
12462
+ }
12463
+ static throughDOM(writableStrategy, readableStrategy) {
12464
+ throw new Error(`"throughDOM" not available in this environment`);
12465
+ }
12853
12466
  constructor(options) {
12854
12467
  super();
12855
12468
  this._position = 0;
@@ -12863,12 +12476,6 @@ return true;`);
12863
12476
  this._autoDestroy = typeof options.autoDestroy === "boolean" ? options.autoDestroy : true;
12864
12477
  this._writeLegacyIpcFormat = typeof options.writeLegacyIpcFormat === "boolean" ? options.writeLegacyIpcFormat : false;
12865
12478
  }
12866
- static throughNode(options) {
12867
- throw new Error(`"throughNode" not available in this environment`);
12868
- }
12869
- static throughDOM(writableStrategy, readableStrategy) {
12870
- throw new Error(`"throughDOM" not available in this environment`);
12871
- }
12872
12479
  toString(sync = false) {
12873
12480
  return this._sink.toString(sync);
12874
12481
  }
@@ -13165,7 +12772,7 @@ return true;`);
13165
12772
  }
13166
12773
  var init_iterable = __esm({
13167
12774
  "../../node_modules/apache-arrow/io/whatwg/iterable.mjs"() {
13168
- init_modules();
12775
+ init_tslib_es6();
13169
12776
  init_buffer();
13170
12777
  init_compat();
13171
12778
  }
@@ -13178,7 +12785,7 @@ return true;`);
13178
12785
  var BuilderTransform, chunkLength, chunkByteLength;
13179
12786
  var init_builder3 = __esm({
13180
12787
  "../../node_modules/apache-arrow/io/whatwg/builder.mjs"() {
13181
- init_modules();
12788
+ init_tslib_es6();
13182
12789
  init_factories();
13183
12790
  BuilderTransform = class {
13184
12791
  constructor(options) {
@@ -13301,7 +12908,7 @@ return true;`);
13301
12908
  }
13302
12909
  var init_reader2 = __esm({
13303
12910
  "../../node_modules/apache-arrow/io/whatwg/reader.mjs"() {
13304
- init_modules();
12911
+ init_tslib_es6();
13305
12912
  init_stream();
13306
12913
  init_reader();
13307
12914
  }
@@ -13345,7 +12952,7 @@ return true;`);
13345
12952
  }
13346
12953
  var init_writer2 = __esm({
13347
12954
  "../../node_modules/apache-arrow/io/whatwg/writer.mjs"() {
13348
- init_modules();
12955
+ init_tslib_es6();
13349
12956
  init_stream();
13350
12957
  }
13351
12958
  });
@@ -13533,6 +13140,7 @@ return true;`);
13533
13140
  Uint64: () => Uint64,
13534
13141
  Uint8: () => Uint8,
13535
13142
  Utf8: () => Utf8,
13143
+ convertTable: () => convertTable,
13536
13144
  convertToArrayRow: () => convertToArrayRow,
13537
13145
  convertToObjectRow: () => convertToObjectRow,
13538
13146
  deduceMeshField: () => deduceMeshField,
@@ -13565,6 +13173,7 @@ return true;`);
13565
13173
  init_table_accessors();
13566
13174
  init_arrow_like_table();
13567
13175
  init_make_table();
13176
+ init_convert_table();
13568
13177
  init_table_schema();
13569
13178
  init_row_utils();
13570
13179
  init_data_type();