@cj-tech-master/excelts 1.1.0 → 1.4.1

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 (41) hide show
  1. package/dist/browser/excelts.iife.js +1089 -568
  2. package/dist/browser/excelts.iife.js.map +1 -1
  3. package/dist/browser/excelts.iife.min.js +18 -18
  4. package/dist/cjs/doc/data-validations.js +29 -1
  5. package/dist/cjs/index.js +1 -1
  6. package/dist/cjs/utils/cell-format.js +815 -0
  7. package/dist/cjs/utils/parse-sax.js +2 -2
  8. package/dist/cjs/utils/{extra-utils.js → sheet-utils.js} +114 -89
  9. package/dist/cjs/utils/stream-buf.js +15 -4
  10. package/dist/cjs/utils/unzip/parse.js +82 -1
  11. package/dist/cjs/utils/utils.js +13 -17
  12. package/dist/cjs/utils/zip-stream.js +20 -32
  13. package/dist/cjs/xlsx/xform/sheet/data-validations-xform.js +46 -7
  14. package/dist/cjs/xlsx/xlsx.js +1 -2
  15. package/dist/esm/doc/data-validations.js +29 -1
  16. package/dist/esm/index.browser.js +1 -1
  17. package/dist/esm/index.js +1 -1
  18. package/dist/esm/utils/cell-format.js +810 -0
  19. package/dist/esm/utils/parse-sax.js +1 -1
  20. package/dist/esm/utils/{extra-utils.js → sheet-utils.js} +97 -72
  21. package/dist/esm/utils/stream-buf.js +15 -4
  22. package/dist/esm/utils/unzip/parse.js +83 -2
  23. package/dist/esm/utils/utils.js +12 -16
  24. package/dist/esm/utils/zip-stream.js +20 -32
  25. package/dist/esm/xlsx/xform/sheet/data-validations-xform.js +46 -7
  26. package/dist/esm/xlsx/xlsx.js +1 -2
  27. package/dist/types/index.browser.d.ts +1 -1
  28. package/dist/types/index.d.ts +1 -1
  29. package/dist/types/utils/cell-format.d.ts +32 -0
  30. package/dist/types/utils/{extra-utils.d.ts → sheet-utils.d.ts} +51 -52
  31. package/dist/types/utils/utils.d.ts +5 -2
  32. package/package.json +5 -5
  33. package/dist/cjs/utils/browser-buffer-decode.js +0 -13
  34. package/dist/cjs/utils/browser-buffer-encode.js +0 -13
  35. package/dist/cjs/utils/browser.js +0 -6
  36. package/dist/esm/utils/browser-buffer-decode.js +0 -11
  37. package/dist/esm/utils/browser-buffer-encode.js +0 -11
  38. package/dist/esm/utils/browser.js +0 -3
  39. package/dist/types/utils/browser-buffer-decode.d.ts +0 -2
  40. package/dist/types/utils/browser-buffer-encode.d.ts +0 -2
  41. package/dist/types/utils/browser.d.ts +0 -1
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @cj-tech-master/excelts v1.1.0
2
+ * @cj-tech-master/excelts v1.4.1
3
3
  * TypeScript Excel Workbook Manager - Read and Write xlsx and csv Files.
4
4
  * (c) 2025 cjnoname
5
5
  * Released under the MIT License
@@ -2508,7 +2508,20 @@ var ExcelTS = (function(exports) {
2508
2508
  return this.model[address] = validation$2;
2509
2509
  }
2510
2510
  find(address) {
2511
- return this.model[address];
2511
+ const direct = this.model[address];
2512
+ if (direct !== void 0) return direct;
2513
+ const rangeKeys = Object.keys(this.model).filter((k) => k.startsWith("range:"));
2514
+ if (rangeKeys.length === 0) return;
2515
+ const decoded = colCache.decodeAddress(address);
2516
+ for (const key$1 of rangeKeys) {
2517
+ const rangeStr = key$1.slice(6);
2518
+ const rangeDecoded = colCache.decodeEx(rangeStr);
2519
+ if (rangeDecoded.dimensions) {
2520
+ const tl = rangeDecoded.tl;
2521
+ const br = rangeDecoded.br;
2522
+ if (decoded.row >= tl.row && decoded.row <= br.row && decoded.col >= tl.col && decoded.col <= br.col) return this.model[key$1];
2523
+ }
2524
+ }
2512
2525
  }
2513
2526
  remove(address) {
2514
2527
  this.model[address] = void 0;
@@ -2690,7 +2703,7 @@ var ExcelTS = (function(exports) {
2690
2703
  var base64 = require_base64_js();
2691
2704
  var ieee754 = require_ieee754();
2692
2705
  var customInspectSymbol = typeof Symbol === "function" && typeof Symbol["for"] === "function" ? Symbol["for"]("nodejs.util.inspect.custom") : null;
2693
- exports.Buffer = Buffer$69;
2706
+ exports.Buffer = Buffer$68;
2694
2707
  exports.SlowBuffer = SlowBuffer;
2695
2708
  exports.INSPECT_MAX_BYTES = 50;
2696
2709
  var K_MAX_LENGTH = 2147483647;
@@ -2709,8 +2722,8 @@ var ExcelTS = (function(exports) {
2709
2722
  * (See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438). IE 10 lacks support
2710
2723
  * for __proto__ and has a buggy typed array implementation.
2711
2724
  */
2712
- Buffer$69.TYPED_ARRAY_SUPPORT = typedArraySupport();
2713
- if (!Buffer$69.TYPED_ARRAY_SUPPORT && typeof console !== "undefined" && typeof console.error === "function") console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");
2725
+ Buffer$68.TYPED_ARRAY_SUPPORT = typedArraySupport();
2726
+ if (!Buffer$68.TYPED_ARRAY_SUPPORT && typeof console !== "undefined" && typeof console.error === "function") console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");
2714
2727
  function typedArraySupport() {
2715
2728
  try {
2716
2729
  var arr = new Uint8Array(1);
@@ -2724,24 +2737,24 @@ var ExcelTS = (function(exports) {
2724
2737
  return false;
2725
2738
  }
2726
2739
  }
2727
- Object.defineProperty(Buffer$69.prototype, "parent", {
2740
+ Object.defineProperty(Buffer$68.prototype, "parent", {
2728
2741
  enumerable: true,
2729
2742
  get: function() {
2730
- if (!Buffer$69.isBuffer(this)) return void 0;
2743
+ if (!Buffer$68.isBuffer(this)) return void 0;
2731
2744
  return this.buffer;
2732
2745
  }
2733
2746
  });
2734
- Object.defineProperty(Buffer$69.prototype, "offset", {
2747
+ Object.defineProperty(Buffer$68.prototype, "offset", {
2735
2748
  enumerable: true,
2736
2749
  get: function() {
2737
- if (!Buffer$69.isBuffer(this)) return void 0;
2750
+ if (!Buffer$68.isBuffer(this)) return void 0;
2738
2751
  return this.byteOffset;
2739
2752
  }
2740
2753
  });
2741
2754
  function createBuffer(length) {
2742
2755
  if (length > K_MAX_LENGTH) throw new RangeError("The value \"" + length + "\" is invalid for option \"size\"");
2743
2756
  var buf = new Uint8Array(length);
2744
- Object.setPrototypeOf(buf, Buffer$69.prototype);
2757
+ Object.setPrototypeOf(buf, Buffer$68.prototype);
2745
2758
  return buf;
2746
2759
  }
2747
2760
  /**
@@ -2753,14 +2766,14 @@ var ExcelTS = (function(exports) {
2753
2766
  *
2754
2767
  * The `Uint8Array` prototype remains unmodified.
2755
2768
  */
2756
- function Buffer$69(arg, encodingOrOffset, length) {
2769
+ function Buffer$68(arg, encodingOrOffset, length) {
2757
2770
  if (typeof arg === "number") {
2758
2771
  if (typeof encodingOrOffset === "string") throw new TypeError("The \"string\" argument must be of type string. Received type number");
2759
2772
  return allocUnsafe(arg);
2760
2773
  }
2761
2774
  return from$1(arg, encodingOrOffset, length);
2762
2775
  }
2763
- Buffer$69.poolSize = 8192;
2776
+ Buffer$68.poolSize = 8192;
2764
2777
  function from$1(value, encodingOrOffset, length) {
2765
2778
  if (typeof value === "string") return fromString(value, encodingOrOffset);
2766
2779
  if (ArrayBuffer.isView(value)) return fromArrayView(value);
@@ -2769,10 +2782,10 @@ var ExcelTS = (function(exports) {
2769
2782
  if (typeof SharedArrayBuffer !== "undefined" && (isInstance(value, SharedArrayBuffer) || value && isInstance(value.buffer, SharedArrayBuffer))) return fromArrayBuffer(value, encodingOrOffset, length);
2770
2783
  if (typeof value === "number") throw new TypeError("The \"value\" argument must not be of type number. Received type number");
2771
2784
  var valueOf = value.valueOf && value.valueOf();
2772
- if (valueOf != null && valueOf !== value) return Buffer$69.from(valueOf, encodingOrOffset, length);
2785
+ if (valueOf != null && valueOf !== value) return Buffer$68.from(valueOf, encodingOrOffset, length);
2773
2786
  var b = fromObject(value);
2774
2787
  if (b) return b;
2775
- if (typeof Symbol !== "undefined" && Symbol.toPrimitive != null && typeof value[Symbol.toPrimitive] === "function") return Buffer$69.from(value[Symbol.toPrimitive]("string"), encodingOrOffset, length);
2788
+ if (typeof Symbol !== "undefined" && Symbol.toPrimitive != null && typeof value[Symbol.toPrimitive] === "function") return Buffer$68.from(value[Symbol.toPrimitive]("string"), encodingOrOffset, length);
2776
2789
  throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof value);
2777
2790
  }
2778
2791
  /**
@@ -2783,11 +2796,11 @@ var ExcelTS = (function(exports) {
2783
2796
  * Buffer.from(buffer)
2784
2797
  * Buffer.from(arrayBuffer[, byteOffset[, length]])
2785
2798
  **/
2786
- Buffer$69.from = function(value, encodingOrOffset, length) {
2799
+ Buffer$68.from = function(value, encodingOrOffset, length) {
2787
2800
  return from$1(value, encodingOrOffset, length);
2788
2801
  };
2789
- Object.setPrototypeOf(Buffer$69.prototype, Uint8Array.prototype);
2790
- Object.setPrototypeOf(Buffer$69, Uint8Array);
2802
+ Object.setPrototypeOf(Buffer$68.prototype, Uint8Array.prototype);
2803
+ Object.setPrototypeOf(Buffer$68, Uint8Array);
2791
2804
  function assertSize$1(size) {
2792
2805
  if (typeof size !== "number") throw new TypeError("\"size\" argument must be of type number");
2793
2806
  else if (size < 0) throw new RangeError("The value \"" + size + "\" is invalid for option \"size\"");
@@ -2802,7 +2815,7 @@ var ExcelTS = (function(exports) {
2802
2815
  * Creates a new filled Buffer instance.
2803
2816
  * alloc(size[, fill[, encoding]])
2804
2817
  **/
2805
- Buffer$69.alloc = function(size, fill, encoding) {
2818
+ Buffer$68.alloc = function(size, fill, encoding) {
2806
2819
  return alloc(size, fill, encoding);
2807
2820
  };
2808
2821
  function allocUnsafe(size) {
@@ -2812,18 +2825,18 @@ var ExcelTS = (function(exports) {
2812
2825
  /**
2813
2826
  * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.
2814
2827
  * */
2815
- Buffer$69.allocUnsafe = function(size) {
2828
+ Buffer$68.allocUnsafe = function(size) {
2816
2829
  return allocUnsafe(size);
2817
2830
  };
2818
2831
  /**
2819
2832
  * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.
2820
2833
  */
2821
- Buffer$69.allocUnsafeSlow = function(size) {
2834
+ Buffer$68.allocUnsafeSlow = function(size) {
2822
2835
  return allocUnsafe(size);
2823
2836
  };
2824
2837
  function fromString(string, encoding) {
2825
2838
  if (typeof encoding !== "string" || encoding === "") encoding = "utf8";
2826
- if (!Buffer$69.isEncoding(encoding)) throw new TypeError("Unknown encoding: " + encoding);
2839
+ if (!Buffer$68.isEncoding(encoding)) throw new TypeError("Unknown encoding: " + encoding);
2827
2840
  var length = byteLength(string, encoding) | 0;
2828
2841
  var buf = createBuffer(length);
2829
2842
  var actual = buf.write(string, encoding);
@@ -2850,11 +2863,11 @@ var ExcelTS = (function(exports) {
2850
2863
  if (byteOffset === void 0 && length === void 0) buf = new Uint8Array(array);
2851
2864
  else if (length === void 0) buf = new Uint8Array(array, byteOffset);
2852
2865
  else buf = new Uint8Array(array, byteOffset, length);
2853
- Object.setPrototypeOf(buf, Buffer$69.prototype);
2866
+ Object.setPrototypeOf(buf, Buffer$68.prototype);
2854
2867
  return buf;
2855
2868
  }
2856
2869
  function fromObject(obj) {
2857
- if (Buffer$69.isBuffer(obj)) {
2870
+ if (Buffer$68.isBuffer(obj)) {
2858
2871
  var len$1 = checked(obj.length) | 0;
2859
2872
  var buf = createBuffer(len$1);
2860
2873
  if (buf.length === 0) return buf;
@@ -2873,15 +2886,15 @@ var ExcelTS = (function(exports) {
2873
2886
  }
2874
2887
  function SlowBuffer(length) {
2875
2888
  if (+length != length) length = 0;
2876
- return Buffer$69.alloc(+length);
2889
+ return Buffer$68.alloc(+length);
2877
2890
  }
2878
- Buffer$69.isBuffer = function isBuffer(b) {
2879
- return b != null && b._isBuffer === true && b !== Buffer$69.prototype;
2891
+ Buffer$68.isBuffer = function isBuffer(b) {
2892
+ return b != null && b._isBuffer === true && b !== Buffer$68.prototype;
2880
2893
  };
2881
- Buffer$69.compare = function compare$1(a, b) {
2882
- if (isInstance(a, Uint8Array)) a = Buffer$69.from(a, a.offset, a.byteLength);
2883
- if (isInstance(b, Uint8Array)) b = Buffer$69.from(b, b.offset, b.byteLength);
2884
- if (!Buffer$69.isBuffer(a) || !Buffer$69.isBuffer(b)) throw new TypeError("The \"buf1\", \"buf2\" arguments must be one of type Buffer or Uint8Array");
2894
+ Buffer$68.compare = function compare$1(a, b) {
2895
+ if (isInstance(a, Uint8Array)) a = Buffer$68.from(a, a.offset, a.byteLength);
2896
+ if (isInstance(b, Uint8Array)) b = Buffer$68.from(b, b.offset, b.byteLength);
2897
+ if (!Buffer$68.isBuffer(a) || !Buffer$68.isBuffer(b)) throw new TypeError("The \"buf1\", \"buf2\" arguments must be one of type Buffer or Uint8Array");
2885
2898
  if (a === b) return 0;
2886
2899
  var x$1 = a.length;
2887
2900
  var y = b.length;
@@ -2894,7 +2907,7 @@ var ExcelTS = (function(exports) {
2894
2907
  if (y < x$1) return 1;
2895
2908
  return 0;
2896
2909
  };
2897
- Buffer$69.isEncoding = function isEncoding$1(encoding) {
2910
+ Buffer$68.isEncoding = function isEncoding$1(encoding) {
2898
2911
  switch (String(encoding).toLowerCase()) {
2899
2912
  case "hex":
2900
2913
  case "utf8":
@@ -2910,28 +2923,28 @@ var ExcelTS = (function(exports) {
2910
2923
  default: return false;
2911
2924
  }
2912
2925
  };
2913
- Buffer$69.concat = function concat(list, length) {
2926
+ Buffer$68.concat = function concat(list, length) {
2914
2927
  if (!Array.isArray(list)) throw new TypeError("\"list\" argument must be an Array of Buffers");
2915
- if (list.length === 0) return Buffer$69.alloc(0);
2928
+ if (list.length === 0) return Buffer$68.alloc(0);
2916
2929
  var i$2;
2917
2930
  if (length === void 0) {
2918
2931
  length = 0;
2919
2932
  for (i$2 = 0; i$2 < list.length; ++i$2) length += list[i$2].length;
2920
2933
  }
2921
- var buffer$2 = Buffer$69.allocUnsafe(length);
2934
+ var buffer$2 = Buffer$68.allocUnsafe(length);
2922
2935
  var pos = 0;
2923
2936
  for (i$2 = 0; i$2 < list.length; ++i$2) {
2924
2937
  var buf = list[i$2];
2925
- if (isInstance(buf, Uint8Array)) if (pos + buf.length > buffer$2.length) Buffer$69.from(buf).copy(buffer$2, pos);
2938
+ if (isInstance(buf, Uint8Array)) if (pos + buf.length > buffer$2.length) Buffer$68.from(buf).copy(buffer$2, pos);
2926
2939
  else Uint8Array.prototype.set.call(buffer$2, buf, pos);
2927
- else if (!Buffer$69.isBuffer(buf)) throw new TypeError("\"list\" argument must be an Array of Buffers");
2940
+ else if (!Buffer$68.isBuffer(buf)) throw new TypeError("\"list\" argument must be an Array of Buffers");
2928
2941
  else buf.copy(buffer$2, pos);
2929
2942
  pos += buf.length;
2930
2943
  }
2931
2944
  return buffer$2;
2932
2945
  };
2933
2946
  function byteLength(string, encoding) {
2934
- if (Buffer$69.isBuffer(string)) return string.length;
2947
+ if (Buffer$68.isBuffer(string)) return string.length;
2935
2948
  if (ArrayBuffer.isView(string) || isInstance(string, ArrayBuffer)) return string.byteLength;
2936
2949
  if (typeof string !== "string") throw new TypeError("The \"string\" argument must be one of type string, Buffer, or ArrayBuffer. Received type " + typeof string);
2937
2950
  var len$1 = string.length;
@@ -2956,7 +2969,7 @@ var ExcelTS = (function(exports) {
2956
2969
  loweredCase = true;
2957
2970
  }
2958
2971
  }
2959
- Buffer$69.byteLength = byteLength;
2972
+ Buffer$68.byteLength = byteLength;
2960
2973
  function slowToString(encoding, start, end) {
2961
2974
  var loweredCase = false;
2962
2975
  if (start === void 0 || start < 0) start = 0;
@@ -2985,19 +2998,19 @@ var ExcelTS = (function(exports) {
2985
2998
  loweredCase = true;
2986
2999
  }
2987
3000
  }
2988
- Buffer$69.prototype._isBuffer = true;
3001
+ Buffer$68.prototype._isBuffer = true;
2989
3002
  function swap(b, n, m) {
2990
3003
  var i$2 = b[n];
2991
3004
  b[n] = b[m];
2992
3005
  b[m] = i$2;
2993
3006
  }
2994
- Buffer$69.prototype.swap16 = function swap16() {
3007
+ Buffer$68.prototype.swap16 = function swap16() {
2995
3008
  var len$1 = this.length;
2996
3009
  if (len$1 % 2 !== 0) throw new RangeError("Buffer size must be a multiple of 16-bits");
2997
3010
  for (var i$2 = 0; i$2 < len$1; i$2 += 2) swap(this, i$2, i$2 + 1);
2998
3011
  return this;
2999
3012
  };
3000
- Buffer$69.prototype.swap32 = function swap32() {
3013
+ Buffer$68.prototype.swap32 = function swap32() {
3001
3014
  var len$1 = this.length;
3002
3015
  if (len$1 % 4 !== 0) throw new RangeError("Buffer size must be a multiple of 32-bits");
3003
3016
  for (var i$2 = 0; i$2 < len$1; i$2 += 4) {
@@ -3006,7 +3019,7 @@ var ExcelTS = (function(exports) {
3006
3019
  }
3007
3020
  return this;
3008
3021
  };
3009
- Buffer$69.prototype.swap64 = function swap64() {
3022
+ Buffer$68.prototype.swap64 = function swap64() {
3010
3023
  var len$1 = this.length;
3011
3024
  if (len$1 % 8 !== 0) throw new RangeError("Buffer size must be a multiple of 64-bits");
3012
3025
  for (var i$2 = 0; i$2 < len$1; i$2 += 8) {
@@ -3017,29 +3030,29 @@ var ExcelTS = (function(exports) {
3017
3030
  }
3018
3031
  return this;
3019
3032
  };
3020
- Buffer$69.prototype.toString = function toString$5() {
3033
+ Buffer$68.prototype.toString = function toString$5() {
3021
3034
  var length = this.length;
3022
3035
  if (length === 0) return "";
3023
3036
  if (arguments.length === 0) return utf8Slice(this, 0, length);
3024
3037
  return slowToString.apply(this, arguments);
3025
3038
  };
3026
- Buffer$69.prototype.toLocaleString = Buffer$69.prototype.toString;
3027
- Buffer$69.prototype.equals = function equals(b) {
3028
- if (!Buffer$69.isBuffer(b)) throw new TypeError("Argument must be a Buffer");
3039
+ Buffer$68.prototype.toLocaleString = Buffer$68.prototype.toString;
3040
+ Buffer$68.prototype.equals = function equals(b) {
3041
+ if (!Buffer$68.isBuffer(b)) throw new TypeError("Argument must be a Buffer");
3029
3042
  if (this === b) return true;
3030
- return Buffer$69.compare(this, b) === 0;
3043
+ return Buffer$68.compare(this, b) === 0;
3031
3044
  };
3032
- Buffer$69.prototype.inspect = function inspect$2() {
3045
+ Buffer$68.prototype.inspect = function inspect$2() {
3033
3046
  var str = "";
3034
3047
  var max$3 = exports.INSPECT_MAX_BYTES;
3035
3048
  str = this.toString("hex", 0, max$3).replace(/(.{2})/g, "$1 ").trim();
3036
3049
  if (this.length > max$3) str += " ... ";
3037
3050
  return "<Buffer " + str + ">";
3038
3051
  };
3039
- if (customInspectSymbol) Buffer$69.prototype[customInspectSymbol] = Buffer$69.prototype.inspect;
3040
- Buffer$69.prototype.compare = function compare$1(target, start, end, thisStart, thisEnd) {
3041
- if (isInstance(target, Uint8Array)) target = Buffer$69.from(target, target.offset, target.byteLength);
3042
- if (!Buffer$69.isBuffer(target)) throw new TypeError("The \"target\" argument must be one of type Buffer or Uint8Array. Received type " + typeof target);
3052
+ if (customInspectSymbol) Buffer$68.prototype[customInspectSymbol] = Buffer$68.prototype.inspect;
3053
+ Buffer$68.prototype.compare = function compare$1(target, start, end, thisStart, thisEnd) {
3054
+ if (isInstance(target, Uint8Array)) target = Buffer$68.from(target, target.offset, target.byteLength);
3055
+ if (!Buffer$68.isBuffer(target)) throw new TypeError("The \"target\" argument must be one of type Buffer or Uint8Array. Received type " + typeof target);
3043
3056
  if (start === void 0) start = 0;
3044
3057
  if (end === void 0) end = target ? target.length : 0;
3045
3058
  if (thisStart === void 0) thisStart = 0;
@@ -3081,8 +3094,8 @@ var ExcelTS = (function(exports) {
3081
3094
  else byteOffset = buffer$2.length - 1;
3082
3095
  else if (byteOffset < 0) if (dir) byteOffset = 0;
3083
3096
  else return -1;
3084
- if (typeof val === "string") val = Buffer$69.from(val, encoding);
3085
- if (Buffer$69.isBuffer(val)) {
3097
+ if (typeof val === "string") val = Buffer$68.from(val, encoding);
3098
+ if (Buffer$68.isBuffer(val)) {
3086
3099
  if (val.length === 0) return -1;
3087
3100
  return arrayIndexOf(buffer$2, val, byteOffset, encoding, dir);
3088
3101
  } else if (typeof val === "number") {
@@ -3134,13 +3147,13 @@ var ExcelTS = (function(exports) {
3134
3147
  }
3135
3148
  return -1;
3136
3149
  }
3137
- Buffer$69.prototype.includes = function includes$1(val, byteOffset, encoding) {
3150
+ Buffer$68.prototype.includes = function includes$1(val, byteOffset, encoding) {
3138
3151
  return this.indexOf(val, byteOffset, encoding) !== -1;
3139
3152
  };
3140
- Buffer$69.prototype.indexOf = function indexOf$2(val, byteOffset, encoding) {
3153
+ Buffer$68.prototype.indexOf = function indexOf$2(val, byteOffset, encoding) {
3141
3154
  return bidirectionalIndexOf(this, val, byteOffset, encoding, true);
3142
3155
  };
3143
- Buffer$69.prototype.lastIndexOf = function lastIndexOf(val, byteOffset, encoding) {
3156
+ Buffer$68.prototype.lastIndexOf = function lastIndexOf(val, byteOffset, encoding) {
3144
3157
  return bidirectionalIndexOf(this, val, byteOffset, encoding, false);
3145
3158
  };
3146
3159
  function hexWrite(buf, string, offset, length) {
@@ -3172,7 +3185,7 @@ var ExcelTS = (function(exports) {
3172
3185
  function ucs2Write(buf, string, offset, length) {
3173
3186
  return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length);
3174
3187
  }
3175
- Buffer$69.prototype.write = function write$1(string, offset, length, encoding) {
3188
+ Buffer$68.prototype.write = function write$1(string, offset, length, encoding) {
3176
3189
  if (offset === void 0) {
3177
3190
  encoding = "utf8";
3178
3191
  length = this.length;
@@ -3214,7 +3227,7 @@ var ExcelTS = (function(exports) {
3214
3227
  loweredCase = true;
3215
3228
  }
3216
3229
  };
3217
- Buffer$69.prototype.toJSON = function toJSON() {
3230
+ Buffer$68.prototype.toJSON = function toJSON() {
3218
3231
  return {
3219
3232
  type: "Buffer",
3220
3233
  data: Array.prototype.slice.call(this._arr || this, 0)
@@ -3311,7 +3324,7 @@ var ExcelTS = (function(exports) {
3311
3324
  for (var i$2 = 0; i$2 < bytes.length - 1; i$2 += 2) res += String.fromCharCode(bytes[i$2] + bytes[i$2 + 1] * 256);
3312
3325
  return res;
3313
3326
  }
3314
- Buffer$69.prototype.slice = function slice(start, end) {
3327
+ Buffer$68.prototype.slice = function slice(start, end) {
3315
3328
  var len$1 = this.length;
3316
3329
  start = ~~start;
3317
3330
  end = end === void 0 ? len$1 : ~~end;
@@ -3325,14 +3338,14 @@ var ExcelTS = (function(exports) {
3325
3338
  } else if (end > len$1) end = len$1;
3326
3339
  if (end < start) end = start;
3327
3340
  var newBuf = this.subarray(start, end);
3328
- Object.setPrototypeOf(newBuf, Buffer$69.prototype);
3341
+ Object.setPrototypeOf(newBuf, Buffer$68.prototype);
3329
3342
  return newBuf;
3330
3343
  };
3331
3344
  function checkOffset(offset, ext, length) {
3332
3345
  if (offset % 1 !== 0 || offset < 0) throw new RangeError("offset is not uint");
3333
3346
  if (offset + ext > length) throw new RangeError("Trying to access beyond buffer length");
3334
3347
  }
3335
- Buffer$69.prototype.readUintLE = Buffer$69.prototype.readUIntLE = function readUIntLE(offset, byteLength$2, noAssert) {
3348
+ Buffer$68.prototype.readUintLE = Buffer$68.prototype.readUIntLE = function readUIntLE(offset, byteLength$2, noAssert) {
3336
3349
  offset = offset >>> 0;
3337
3350
  byteLength$2 = byteLength$2 >>> 0;
3338
3351
  if (!noAssert) checkOffset(offset, byteLength$2, this.length);
@@ -3342,7 +3355,7 @@ var ExcelTS = (function(exports) {
3342
3355
  while (++i$2 < byteLength$2 && (mul *= 256)) val += this[offset + i$2] * mul;
3343
3356
  return val;
3344
3357
  };
3345
- Buffer$69.prototype.readUintBE = Buffer$69.prototype.readUIntBE = function readUIntBE(offset, byteLength$2, noAssert) {
3358
+ Buffer$68.prototype.readUintBE = Buffer$68.prototype.readUIntBE = function readUIntBE(offset, byteLength$2, noAssert) {
3346
3359
  offset = offset >>> 0;
3347
3360
  byteLength$2 = byteLength$2 >>> 0;
3348
3361
  if (!noAssert) checkOffset(offset, byteLength$2, this.length);
@@ -3351,32 +3364,32 @@ var ExcelTS = (function(exports) {
3351
3364
  while (byteLength$2 > 0 && (mul *= 256)) val += this[offset + --byteLength$2] * mul;
3352
3365
  return val;
3353
3366
  };
3354
- Buffer$69.prototype.readUint8 = Buffer$69.prototype.readUInt8 = function readUInt8(offset, noAssert) {
3367
+ Buffer$68.prototype.readUint8 = Buffer$68.prototype.readUInt8 = function readUInt8(offset, noAssert) {
3355
3368
  offset = offset >>> 0;
3356
3369
  if (!noAssert) checkOffset(offset, 1, this.length);
3357
3370
  return this[offset];
3358
3371
  };
3359
- Buffer$69.prototype.readUint16LE = Buffer$69.prototype.readUInt16LE = function readUInt16LE(offset, noAssert) {
3372
+ Buffer$68.prototype.readUint16LE = Buffer$68.prototype.readUInt16LE = function readUInt16LE(offset, noAssert) {
3360
3373
  offset = offset >>> 0;
3361
3374
  if (!noAssert) checkOffset(offset, 2, this.length);
3362
3375
  return this[offset] | this[offset + 1] << 8;
3363
3376
  };
3364
- Buffer$69.prototype.readUint16BE = Buffer$69.prototype.readUInt16BE = function readUInt16BE(offset, noAssert) {
3377
+ Buffer$68.prototype.readUint16BE = Buffer$68.prototype.readUInt16BE = function readUInt16BE(offset, noAssert) {
3365
3378
  offset = offset >>> 0;
3366
3379
  if (!noAssert) checkOffset(offset, 2, this.length);
3367
3380
  return this[offset] << 8 | this[offset + 1];
3368
3381
  };
3369
- Buffer$69.prototype.readUint32LE = Buffer$69.prototype.readUInt32LE = function readUInt32LE(offset, noAssert) {
3382
+ Buffer$68.prototype.readUint32LE = Buffer$68.prototype.readUInt32LE = function readUInt32LE(offset, noAssert) {
3370
3383
  offset = offset >>> 0;
3371
3384
  if (!noAssert) checkOffset(offset, 4, this.length);
3372
3385
  return (this[offset] | this[offset + 1] << 8 | this[offset + 2] << 16) + this[offset + 3] * 16777216;
3373
3386
  };
3374
- Buffer$69.prototype.readUint32BE = Buffer$69.prototype.readUInt32BE = function readUInt32BE(offset, noAssert) {
3387
+ Buffer$68.prototype.readUint32BE = Buffer$68.prototype.readUInt32BE = function readUInt32BE(offset, noAssert) {
3375
3388
  offset = offset >>> 0;
3376
3389
  if (!noAssert) checkOffset(offset, 4, this.length);
3377
3390
  return this[offset] * 16777216 + (this[offset + 1] << 16 | this[offset + 2] << 8 | this[offset + 3]);
3378
3391
  };
3379
- Buffer$69.prototype.readIntLE = function readIntLE(offset, byteLength$2, noAssert) {
3392
+ Buffer$68.prototype.readIntLE = function readIntLE(offset, byteLength$2, noAssert) {
3380
3393
  offset = offset >>> 0;
3381
3394
  byteLength$2 = byteLength$2 >>> 0;
3382
3395
  if (!noAssert) checkOffset(offset, byteLength$2, this.length);
@@ -3388,7 +3401,7 @@ var ExcelTS = (function(exports) {
3388
3401
  if (val >= mul) val -= Math.pow(2, 8 * byteLength$2);
3389
3402
  return val;
3390
3403
  };
3391
- Buffer$69.prototype.readIntBE = function readIntBE(offset, byteLength$2, noAssert) {
3404
+ Buffer$68.prototype.readIntBE = function readIntBE(offset, byteLength$2, noAssert) {
3392
3405
  offset = offset >>> 0;
3393
3406
  byteLength$2 = byteLength$2 >>> 0;
3394
3407
  if (!noAssert) checkOffset(offset, byteLength$2, this.length);
@@ -3400,60 +3413,60 @@ var ExcelTS = (function(exports) {
3400
3413
  if (val >= mul) val -= Math.pow(2, 8 * byteLength$2);
3401
3414
  return val;
3402
3415
  };
3403
- Buffer$69.prototype.readInt8 = function readInt8(offset, noAssert) {
3416
+ Buffer$68.prototype.readInt8 = function readInt8(offset, noAssert) {
3404
3417
  offset = offset >>> 0;
3405
3418
  if (!noAssert) checkOffset(offset, 1, this.length);
3406
3419
  if (!(this[offset] & 128)) return this[offset];
3407
3420
  return (255 - this[offset] + 1) * -1;
3408
3421
  };
3409
- Buffer$69.prototype.readInt16LE = function readInt16LE(offset, noAssert) {
3422
+ Buffer$68.prototype.readInt16LE = function readInt16LE(offset, noAssert) {
3410
3423
  offset = offset >>> 0;
3411
3424
  if (!noAssert) checkOffset(offset, 2, this.length);
3412
3425
  var val = this[offset] | this[offset + 1] << 8;
3413
3426
  return val & 32768 ? val | 4294901760 : val;
3414
3427
  };
3415
- Buffer$69.prototype.readInt16BE = function readInt16BE(offset, noAssert) {
3428
+ Buffer$68.prototype.readInt16BE = function readInt16BE(offset, noAssert) {
3416
3429
  offset = offset >>> 0;
3417
3430
  if (!noAssert) checkOffset(offset, 2, this.length);
3418
3431
  var val = this[offset + 1] | this[offset] << 8;
3419
3432
  return val & 32768 ? val | 4294901760 : val;
3420
3433
  };
3421
- Buffer$69.prototype.readInt32LE = function readInt32LE(offset, noAssert) {
3434
+ Buffer$68.prototype.readInt32LE = function readInt32LE(offset, noAssert) {
3422
3435
  offset = offset >>> 0;
3423
3436
  if (!noAssert) checkOffset(offset, 4, this.length);
3424
3437
  return this[offset] | this[offset + 1] << 8 | this[offset + 2] << 16 | this[offset + 3] << 24;
3425
3438
  };
3426
- Buffer$69.prototype.readInt32BE = function readInt32BE(offset, noAssert) {
3439
+ Buffer$68.prototype.readInt32BE = function readInt32BE(offset, noAssert) {
3427
3440
  offset = offset >>> 0;
3428
3441
  if (!noAssert) checkOffset(offset, 4, this.length);
3429
3442
  return this[offset] << 24 | this[offset + 1] << 16 | this[offset + 2] << 8 | this[offset + 3];
3430
3443
  };
3431
- Buffer$69.prototype.readFloatLE = function readFloatLE(offset, noAssert) {
3444
+ Buffer$68.prototype.readFloatLE = function readFloatLE(offset, noAssert) {
3432
3445
  offset = offset >>> 0;
3433
3446
  if (!noAssert) checkOffset(offset, 4, this.length);
3434
3447
  return ieee754.read(this, offset, true, 23, 4);
3435
3448
  };
3436
- Buffer$69.prototype.readFloatBE = function readFloatBE(offset, noAssert) {
3449
+ Buffer$68.prototype.readFloatBE = function readFloatBE(offset, noAssert) {
3437
3450
  offset = offset >>> 0;
3438
3451
  if (!noAssert) checkOffset(offset, 4, this.length);
3439
3452
  return ieee754.read(this, offset, false, 23, 4);
3440
3453
  };
3441
- Buffer$69.prototype.readDoubleLE = function readDoubleLE(offset, noAssert) {
3454
+ Buffer$68.prototype.readDoubleLE = function readDoubleLE(offset, noAssert) {
3442
3455
  offset = offset >>> 0;
3443
3456
  if (!noAssert) checkOffset(offset, 8, this.length);
3444
3457
  return ieee754.read(this, offset, true, 52, 8);
3445
3458
  };
3446
- Buffer$69.prototype.readDoubleBE = function readDoubleBE(offset, noAssert) {
3459
+ Buffer$68.prototype.readDoubleBE = function readDoubleBE(offset, noAssert) {
3447
3460
  offset = offset >>> 0;
3448
3461
  if (!noAssert) checkOffset(offset, 8, this.length);
3449
3462
  return ieee754.read(this, offset, false, 52, 8);
3450
3463
  };
3451
3464
  function checkInt(buf, value, offset, ext, max$3, min$1) {
3452
- if (!Buffer$69.isBuffer(buf)) throw new TypeError("\"buffer\" argument must be a Buffer instance");
3465
+ if (!Buffer$68.isBuffer(buf)) throw new TypeError("\"buffer\" argument must be a Buffer instance");
3453
3466
  if (value > max$3 || value < min$1) throw new RangeError("\"value\" argument is out of bounds");
3454
3467
  if (offset + ext > buf.length) throw new RangeError("Index out of range");
3455
3468
  }
3456
- Buffer$69.prototype.writeUintLE = Buffer$69.prototype.writeUIntLE = function writeUIntLE(value, offset, byteLength$2, noAssert) {
3469
+ Buffer$68.prototype.writeUintLE = Buffer$68.prototype.writeUIntLE = function writeUIntLE(value, offset, byteLength$2, noAssert) {
3457
3470
  value = +value;
3458
3471
  offset = offset >>> 0;
3459
3472
  byteLength$2 = byteLength$2 >>> 0;
@@ -3467,7 +3480,7 @@ var ExcelTS = (function(exports) {
3467
3480
  while (++i$2 < byteLength$2 && (mul *= 256)) this[offset + i$2] = value / mul & 255;
3468
3481
  return offset + byteLength$2;
3469
3482
  };
3470
- Buffer$69.prototype.writeUintBE = Buffer$69.prototype.writeUIntBE = function writeUIntBE(value, offset, byteLength$2, noAssert) {
3483
+ Buffer$68.prototype.writeUintBE = Buffer$68.prototype.writeUIntBE = function writeUIntBE(value, offset, byteLength$2, noAssert) {
3471
3484
  value = +value;
3472
3485
  offset = offset >>> 0;
3473
3486
  byteLength$2 = byteLength$2 >>> 0;
@@ -3481,14 +3494,14 @@ var ExcelTS = (function(exports) {
3481
3494
  while (--i$2 >= 0 && (mul *= 256)) this[offset + i$2] = value / mul & 255;
3482
3495
  return offset + byteLength$2;
3483
3496
  };
3484
- Buffer$69.prototype.writeUint8 = Buffer$69.prototype.writeUInt8 = function writeUInt8(value, offset, noAssert) {
3497
+ Buffer$68.prototype.writeUint8 = Buffer$68.prototype.writeUInt8 = function writeUInt8(value, offset, noAssert) {
3485
3498
  value = +value;
3486
3499
  offset = offset >>> 0;
3487
3500
  if (!noAssert) checkInt(this, value, offset, 1, 255, 0);
3488
3501
  this[offset] = value & 255;
3489
3502
  return offset + 1;
3490
3503
  };
3491
- Buffer$69.prototype.writeUint16LE = Buffer$69.prototype.writeUInt16LE = function writeUInt16LE(value, offset, noAssert) {
3504
+ Buffer$68.prototype.writeUint16LE = Buffer$68.prototype.writeUInt16LE = function writeUInt16LE(value, offset, noAssert) {
3492
3505
  value = +value;
3493
3506
  offset = offset >>> 0;
3494
3507
  if (!noAssert) checkInt(this, value, offset, 2, 65535, 0);
@@ -3496,7 +3509,7 @@ var ExcelTS = (function(exports) {
3496
3509
  this[offset + 1] = value >>> 8;
3497
3510
  return offset + 2;
3498
3511
  };
3499
- Buffer$69.prototype.writeUint16BE = Buffer$69.prototype.writeUInt16BE = function writeUInt16BE(value, offset, noAssert) {
3512
+ Buffer$68.prototype.writeUint16BE = Buffer$68.prototype.writeUInt16BE = function writeUInt16BE(value, offset, noAssert) {
3500
3513
  value = +value;
3501
3514
  offset = offset >>> 0;
3502
3515
  if (!noAssert) checkInt(this, value, offset, 2, 65535, 0);
@@ -3504,7 +3517,7 @@ var ExcelTS = (function(exports) {
3504
3517
  this[offset + 1] = value & 255;
3505
3518
  return offset + 2;
3506
3519
  };
3507
- Buffer$69.prototype.writeUint32LE = Buffer$69.prototype.writeUInt32LE = function writeUInt32LE(value, offset, noAssert) {
3520
+ Buffer$68.prototype.writeUint32LE = Buffer$68.prototype.writeUInt32LE = function writeUInt32LE(value, offset, noAssert) {
3508
3521
  value = +value;
3509
3522
  offset = offset >>> 0;
3510
3523
  if (!noAssert) checkInt(this, value, offset, 4, 4294967295, 0);
@@ -3514,7 +3527,7 @@ var ExcelTS = (function(exports) {
3514
3527
  this[offset] = value & 255;
3515
3528
  return offset + 4;
3516
3529
  };
3517
- Buffer$69.prototype.writeUint32BE = Buffer$69.prototype.writeUInt32BE = function writeUInt32BE(value, offset, noAssert) {
3530
+ Buffer$68.prototype.writeUint32BE = Buffer$68.prototype.writeUInt32BE = function writeUInt32BE(value, offset, noAssert) {
3518
3531
  value = +value;
3519
3532
  offset = offset >>> 0;
3520
3533
  if (!noAssert) checkInt(this, value, offset, 4, 4294967295, 0);
@@ -3524,7 +3537,7 @@ var ExcelTS = (function(exports) {
3524
3537
  this[offset + 3] = value & 255;
3525
3538
  return offset + 4;
3526
3539
  };
3527
- Buffer$69.prototype.writeIntLE = function writeIntLE(value, offset, byteLength$2, noAssert) {
3540
+ Buffer$68.prototype.writeIntLE = function writeIntLE(value, offset, byteLength$2, noAssert) {
3528
3541
  value = +value;
3529
3542
  offset = offset >>> 0;
3530
3543
  if (!noAssert) {
@@ -3541,7 +3554,7 @@ var ExcelTS = (function(exports) {
3541
3554
  }
3542
3555
  return offset + byteLength$2;
3543
3556
  };
3544
- Buffer$69.prototype.writeIntBE = function writeIntBE(value, offset, byteLength$2, noAssert) {
3557
+ Buffer$68.prototype.writeIntBE = function writeIntBE(value, offset, byteLength$2, noAssert) {
3545
3558
  value = +value;
3546
3559
  offset = offset >>> 0;
3547
3560
  if (!noAssert) {
@@ -3558,7 +3571,7 @@ var ExcelTS = (function(exports) {
3558
3571
  }
3559
3572
  return offset + byteLength$2;
3560
3573
  };
3561
- Buffer$69.prototype.writeInt8 = function writeInt8(value, offset, noAssert) {
3574
+ Buffer$68.prototype.writeInt8 = function writeInt8(value, offset, noAssert) {
3562
3575
  value = +value;
3563
3576
  offset = offset >>> 0;
3564
3577
  if (!noAssert) checkInt(this, value, offset, 1, 127, -128);
@@ -3566,7 +3579,7 @@ var ExcelTS = (function(exports) {
3566
3579
  this[offset] = value & 255;
3567
3580
  return offset + 1;
3568
3581
  };
3569
- Buffer$69.prototype.writeInt16LE = function writeInt16LE(value, offset, noAssert) {
3582
+ Buffer$68.prototype.writeInt16LE = function writeInt16LE(value, offset, noAssert) {
3570
3583
  value = +value;
3571
3584
  offset = offset >>> 0;
3572
3585
  if (!noAssert) checkInt(this, value, offset, 2, 32767, -32768);
@@ -3574,7 +3587,7 @@ var ExcelTS = (function(exports) {
3574
3587
  this[offset + 1] = value >>> 8;
3575
3588
  return offset + 2;
3576
3589
  };
3577
- Buffer$69.prototype.writeInt16BE = function writeInt16BE(value, offset, noAssert) {
3590
+ Buffer$68.prototype.writeInt16BE = function writeInt16BE(value, offset, noAssert) {
3578
3591
  value = +value;
3579
3592
  offset = offset >>> 0;
3580
3593
  if (!noAssert) checkInt(this, value, offset, 2, 32767, -32768);
@@ -3582,7 +3595,7 @@ var ExcelTS = (function(exports) {
3582
3595
  this[offset + 1] = value & 255;
3583
3596
  return offset + 2;
3584
3597
  };
3585
- Buffer$69.prototype.writeInt32LE = function writeInt32LE(value, offset, noAssert) {
3598
+ Buffer$68.prototype.writeInt32LE = function writeInt32LE(value, offset, noAssert) {
3586
3599
  value = +value;
3587
3600
  offset = offset >>> 0;
3588
3601
  if (!noAssert) checkInt(this, value, offset, 4, 2147483647, -2147483648);
@@ -3592,7 +3605,7 @@ var ExcelTS = (function(exports) {
3592
3605
  this[offset + 3] = value >>> 24;
3593
3606
  return offset + 4;
3594
3607
  };
3595
- Buffer$69.prototype.writeInt32BE = function writeInt32BE(value, offset, noAssert) {
3608
+ Buffer$68.prototype.writeInt32BE = function writeInt32BE(value, offset, noAssert) {
3596
3609
  value = +value;
3597
3610
  offset = offset >>> 0;
3598
3611
  if (!noAssert) checkInt(this, value, offset, 4, 2147483647, -2147483648);
@@ -3614,10 +3627,10 @@ var ExcelTS = (function(exports) {
3614
3627
  ieee754.write(buf, value, offset, littleEndian, 23, 4);
3615
3628
  return offset + 4;
3616
3629
  }
3617
- Buffer$69.prototype.writeFloatLE = function writeFloatLE(value, offset, noAssert) {
3630
+ Buffer$68.prototype.writeFloatLE = function writeFloatLE(value, offset, noAssert) {
3618
3631
  return writeFloat(this, value, offset, true, noAssert);
3619
3632
  };
3620
- Buffer$69.prototype.writeFloatBE = function writeFloatBE(value, offset, noAssert) {
3633
+ Buffer$68.prototype.writeFloatBE = function writeFloatBE(value, offset, noAssert) {
3621
3634
  return writeFloat(this, value, offset, false, noAssert);
3622
3635
  };
3623
3636
  function writeDouble(buf, value, offset, littleEndian, noAssert) {
@@ -3627,14 +3640,14 @@ var ExcelTS = (function(exports) {
3627
3640
  ieee754.write(buf, value, offset, littleEndian, 52, 8);
3628
3641
  return offset + 8;
3629
3642
  }
3630
- Buffer$69.prototype.writeDoubleLE = function writeDoubleLE(value, offset, noAssert) {
3643
+ Buffer$68.prototype.writeDoubleLE = function writeDoubleLE(value, offset, noAssert) {
3631
3644
  return writeDouble(this, value, offset, true, noAssert);
3632
3645
  };
3633
- Buffer$69.prototype.writeDoubleBE = function writeDoubleBE(value, offset, noAssert) {
3646
+ Buffer$68.prototype.writeDoubleBE = function writeDoubleBE(value, offset, noAssert) {
3634
3647
  return writeDouble(this, value, offset, false, noAssert);
3635
3648
  };
3636
- Buffer$69.prototype.copy = function copy(target, targetStart, start, end) {
3637
- if (!Buffer$69.isBuffer(target)) throw new TypeError("argument should be a Buffer");
3649
+ Buffer$68.prototype.copy = function copy(target, targetStart, start, end) {
3650
+ if (!Buffer$68.isBuffer(target)) throw new TypeError("argument should be a Buffer");
3638
3651
  if (!start) start = 0;
3639
3652
  if (!end && end !== 0) end = this.length;
3640
3653
  if (targetStart >= target.length) targetStart = target.length;
@@ -3652,7 +3665,7 @@ var ExcelTS = (function(exports) {
3652
3665
  else Uint8Array.prototype.set.call(target, this.subarray(start, end), targetStart);
3653
3666
  return len$1;
3654
3667
  };
3655
- Buffer$69.prototype.fill = function fill(val, start, end, encoding) {
3668
+ Buffer$68.prototype.fill = function fill(val, start, end, encoding) {
3656
3669
  if (typeof val === "string") {
3657
3670
  if (typeof start === "string") {
3658
3671
  encoding = start;
@@ -3663,7 +3676,7 @@ var ExcelTS = (function(exports) {
3663
3676
  end = this.length;
3664
3677
  }
3665
3678
  if (encoding !== void 0 && typeof encoding !== "string") throw new TypeError("encoding must be a string");
3666
- if (typeof encoding === "string" && !Buffer$69.isEncoding(encoding)) throw new TypeError("Unknown encoding: " + encoding);
3679
+ if (typeof encoding === "string" && !Buffer$68.isEncoding(encoding)) throw new TypeError("Unknown encoding: " + encoding);
3667
3680
  if (val.length === 1) {
3668
3681
  var code$1 = val.charCodeAt(0);
3669
3682
  if (encoding === "utf8" && code$1 < 128 || encoding === "latin1") val = code$1;
@@ -3678,7 +3691,7 @@ var ExcelTS = (function(exports) {
3678
3691
  var i$2;
3679
3692
  if (typeof val === "number") for (i$2 = start; i$2 < end; ++i$2) this[i$2] = val;
3680
3693
  else {
3681
- var bytes = Buffer$69.isBuffer(val) ? val : Buffer$69.from(val, encoding);
3694
+ var bytes = Buffer$68.isBuffer(val) ? val : Buffer$68.from(val, encoding);
3682
3695
  var len$1 = bytes.length;
3683
3696
  if (len$1 === 0) throw new TypeError("The value \"" + val + "\" is invalid for argument \"value\"");
3684
3697
  for (i$2 = 0; i$2 < end - start; ++i$2) this[i$2 + start] = bytes[i$2 % len$1];
@@ -3993,27 +4006,27 @@ var ExcelTS = (function(exports) {
3993
4006
  var require_safe_buffer$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3994
4007
  /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
3995
4008
  var buffer$1 = require_buffer$1();
3996
- var Buffer$68 = buffer$1.Buffer;
4009
+ var Buffer$67 = buffer$1.Buffer;
3997
4010
  function copyProps$1(src, dst) {
3998
4011
  for (var key$1 in src) dst[key$1] = src[key$1];
3999
4012
  }
4000
- if (Buffer$68.from && Buffer$68.alloc && Buffer$68.allocUnsafe && Buffer$68.allocUnsafeSlow) module.exports = buffer$1;
4013
+ if (Buffer$67.from && Buffer$67.alloc && Buffer$67.allocUnsafe && Buffer$67.allocUnsafeSlow) module.exports = buffer$1;
4001
4014
  else {
4002
4015
  copyProps$1(buffer$1, exports);
4003
4016
  exports.Buffer = SafeBuffer$1;
4004
4017
  }
4005
4018
  function SafeBuffer$1(arg, encodingOrOffset, length) {
4006
- return Buffer$68(arg, encodingOrOffset, length);
4019
+ return Buffer$67(arg, encodingOrOffset, length);
4007
4020
  }
4008
- SafeBuffer$1.prototype = Object.create(Buffer$68.prototype);
4009
- copyProps$1(Buffer$68, SafeBuffer$1);
4021
+ SafeBuffer$1.prototype = Object.create(Buffer$67.prototype);
4022
+ copyProps$1(Buffer$67, SafeBuffer$1);
4010
4023
  SafeBuffer$1.from = function(arg, encodingOrOffset, length) {
4011
4024
  if (typeof arg === "number") throw new TypeError("Argument must not be a number");
4012
- return Buffer$68(arg, encodingOrOffset, length);
4025
+ return Buffer$67(arg, encodingOrOffset, length);
4013
4026
  };
4014
4027
  SafeBuffer$1.alloc = function(size, fill, encoding) {
4015
4028
  if (typeof size !== "number") throw new TypeError("Argument must be a number");
4016
- var buf = Buffer$68(size);
4029
+ var buf = Buffer$67(size);
4017
4030
  if (fill !== void 0) if (typeof encoding === "string") buf.fill(fill, encoding);
4018
4031
  else buf.fill(fill);
4019
4032
  else buf.fill(0);
@@ -4021,7 +4034,7 @@ var ExcelTS = (function(exports) {
4021
4034
  };
4022
4035
  SafeBuffer$1.allocUnsafe = function(size) {
4023
4036
  if (typeof size !== "number") throw new TypeError("Argument must be a number");
4024
- return Buffer$68(size);
4037
+ return Buffer$67(size);
4025
4038
  };
4026
4039
  SafeBuffer$1.allocUnsafeSlow = function(size) {
4027
4040
  if (typeof size !== "number") throw new TypeError("Argument must be a number");
@@ -4038,13 +4051,13 @@ var ExcelTS = (function(exports) {
4038
4051
  function oldBrowser$1() {
4039
4052
  throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11");
4040
4053
  }
4041
- var Buffer$67 = require_safe_buffer$1().Buffer;
4054
+ var Buffer$66 = require_safe_buffer$1().Buffer;
4042
4055
  var crypto$4 = global.crypto || global.msCrypto;
4043
4056
  if (crypto$4 && crypto$4.getRandomValues) module.exports = randomBytes$4;
4044
4057
  else module.exports = oldBrowser$1;
4045
4058
  function randomBytes$4(size, cb) {
4046
4059
  if (size > MAX_UINT32) throw new RangeError("requested too many random bytes");
4047
- var bytes = Buffer$67.allocUnsafe(size);
4060
+ var bytes = Buffer$66.allocUnsafe(size);
4048
4061
  if (size > 0) if (size > MAX_BYTES) for (var generated = 0; generated < size; generated += MAX_BYTES) crypto$4.getRandomValues(bytes.slice(generated, generated + MAX_BYTES));
4049
4062
  else crypto$4.getRandomValues(bytes);
4050
4063
  if (typeof cb === "function") return api.nextTick(function() {
@@ -6271,11 +6284,11 @@ var ExcelTS = (function(exports) {
6271
6284
  }
6272
6285
  return (hint === "string" ? String : Number)(input);
6273
6286
  }
6274
- var Buffer$66 = require_buffer$1().Buffer;
6287
+ var Buffer$65 = require_buffer$1().Buffer;
6275
6288
  var inspect = require_util$1().inspect;
6276
6289
  var custom = inspect && inspect.custom || "inspect";
6277
6290
  function copyBuffer$1(src, target, offset) {
6278
- Buffer$66.prototype.copy.call(src, target, offset);
6291
+ Buffer$65.prototype.copy.call(src, target, offset);
6279
6292
  }
6280
6293
  module.exports = /* @__PURE__ */ function() {
6281
6294
  function BufferList$2() {
@@ -6341,8 +6354,8 @@ var ExcelTS = (function(exports) {
6341
6354
  {
6342
6355
  key: "concat",
6343
6356
  value: function concat(n) {
6344
- if (this.length === 0) return Buffer$66.alloc(0);
6345
- var ret = Buffer$66.allocUnsafe(n >>> 0);
6357
+ if (this.length === 0) return Buffer$65.alloc(0);
6358
+ var ret = Buffer$65.allocUnsafe(n >>> 0);
6346
6359
  var p$1 = this.head;
6347
6360
  var i$2 = 0;
6348
6361
  while (p$1) {
@@ -6404,7 +6417,7 @@ var ExcelTS = (function(exports) {
6404
6417
  {
6405
6418
  key: "_getBuffer",
6406
6419
  value: function _getBuffer(n) {
6407
- var ret = Buffer$66.allocUnsafe(n);
6420
+ var ret = Buffer$65.allocUnsafe(n);
6408
6421
  var p$1 = this.head;
6409
6422
  var c = 1;
6410
6423
  p$1.data.copy(ret);
@@ -6699,13 +6712,13 @@ var ExcelTS = (function(exports) {
6699
6712
  Writable$3.WritableState = WritableState$1;
6700
6713
  var internalUtil$1 = { deprecate: require_browser$10() };
6701
6714
  var Stream$4 = require_stream_browser$1();
6702
- var Buffer$65 = require_buffer$1().Buffer;
6715
+ var Buffer$64 = require_buffer$1().Buffer;
6703
6716
  var OurUint8Array$3 = (typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : typeof self !== "undefined" ? self : {}).Uint8Array || function() {};
6704
6717
  function _uint8ArrayToBuffer$3(chunk) {
6705
- return Buffer$65.from(chunk);
6718
+ return Buffer$64.from(chunk);
6706
6719
  }
6707
6720
  function _isUint8Array$3(obj) {
6708
- return Buffer$65.isBuffer(obj) || obj instanceof OurUint8Array$3;
6721
+ return Buffer$64.isBuffer(obj) || obj instanceof OurUint8Array$3;
6709
6722
  }
6710
6723
  var destroyImpl$3 = require_destroy$1();
6711
6724
  var getHighWaterMark$1 = require_state().getHighWaterMark;
@@ -6812,7 +6825,7 @@ var ExcelTS = (function(exports) {
6812
6825
  var state = this._writableState;
6813
6826
  var ret = false;
6814
6827
  var isBuf = !state.objectMode && _isUint8Array$3(chunk);
6815
- if (isBuf && !Buffer$65.isBuffer(chunk)) chunk = _uint8ArrayToBuffer$3(chunk);
6828
+ if (isBuf && !Buffer$64.isBuffer(chunk)) chunk = _uint8ArrayToBuffer$3(chunk);
6816
6829
  if (typeof encoding === "function") {
6817
6830
  cb = encoding;
6818
6831
  encoding = null;
@@ -6862,7 +6875,7 @@ var ExcelTS = (function(exports) {
6862
6875
  }
6863
6876
  });
6864
6877
  function decodeChunk$1(state, chunk, encoding) {
6865
- if (!state.objectMode && state.decodeStrings !== false && typeof chunk === "string") chunk = Buffer$65.from(chunk, encoding);
6878
+ if (!state.objectMode && state.decodeStrings !== false && typeof chunk === "string") chunk = Buffer$64.from(chunk, encoding);
6866
6879
  return chunk;
6867
6880
  }
6868
6881
  Object.defineProperty(Writable$3.prototype, "writableHighWaterMark", {
@@ -7171,8 +7184,8 @@ var ExcelTS = (function(exports) {
7171
7184
  //#endregion
7172
7185
  //#region node_modules/.pnpm/string_decoder@1.3.0/node_modules/string_decoder/lib/string_decoder.js
7173
7186
  var require_string_decoder = /* @__PURE__ */ __commonJSMin(((exports) => {
7174
- var Buffer$64 = require_safe_buffer$1().Buffer;
7175
- var isEncoding = Buffer$64.isEncoding || function(encoding) {
7187
+ var Buffer$63 = require_safe_buffer$1().Buffer;
7188
+ var isEncoding = Buffer$63.isEncoding || function(encoding) {
7176
7189
  encoding = "" + encoding;
7177
7190
  switch (encoding && encoding.toLowerCase()) {
7178
7191
  case "hex":
@@ -7212,7 +7225,7 @@ var ExcelTS = (function(exports) {
7212
7225
  }
7213
7226
  function normalizeEncoding(enc) {
7214
7227
  var nenc = _normalizeEncoding(enc);
7215
- if (typeof nenc !== "string" && (Buffer$64.isEncoding === isEncoding || !isEncoding(enc))) throw new Error("Unknown encoding: " + enc);
7228
+ if (typeof nenc !== "string" && (Buffer$63.isEncoding === isEncoding || !isEncoding(enc))) throw new Error("Unknown encoding: " + enc);
7216
7229
  return nenc || enc;
7217
7230
  }
7218
7231
  exports.StringDecoder = StringDecoder$3;
@@ -7241,7 +7254,7 @@ var ExcelTS = (function(exports) {
7241
7254
  }
7242
7255
  this.lastNeed = 0;
7243
7256
  this.lastTotal = 0;
7244
- this.lastChar = Buffer$64.allocUnsafe(nb);
7257
+ this.lastChar = Buffer$63.allocUnsafe(nb);
7245
7258
  }
7246
7259
  StringDecoder$3.prototype.write = function(buf) {
7247
7260
  if (buf.length === 0) return "";
@@ -7666,13 +7679,13 @@ var ExcelTS = (function(exports) {
7666
7679
  return emitter.listeners(type).length;
7667
7680
  };
7668
7681
  var Stream$3 = require_stream_browser$1();
7669
- var Buffer$63 = require_buffer$1().Buffer;
7682
+ var Buffer$62 = require_buffer$1().Buffer;
7670
7683
  var OurUint8Array$2 = (typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : typeof self !== "undefined" ? self : {}).Uint8Array || function() {};
7671
7684
  function _uint8ArrayToBuffer$2(chunk) {
7672
- return Buffer$63.from(chunk);
7685
+ return Buffer$62.from(chunk);
7673
7686
  }
7674
7687
  function _isUint8Array$2(obj) {
7675
- return Buffer$63.isBuffer(obj) || obj instanceof OurUint8Array$2;
7688
+ return Buffer$62.isBuffer(obj) || obj instanceof OurUint8Array$2;
7676
7689
  }
7677
7690
  var debugUtil$1 = require_util$1();
7678
7691
  var debug$1;
@@ -7770,7 +7783,7 @@ var ExcelTS = (function(exports) {
7770
7783
  if (typeof chunk === "string") {
7771
7784
  encoding = encoding || state.defaultEncoding;
7772
7785
  if (encoding !== state.encoding) {
7773
- chunk = Buffer$63.from(chunk, encoding);
7786
+ chunk = Buffer$62.from(chunk, encoding);
7774
7787
  encoding = "";
7775
7788
  }
7776
7789
  skipChunkCheck = true;
@@ -7792,7 +7805,7 @@ var ExcelTS = (function(exports) {
7792
7805
  if (!skipChunkCheck) er = chunkInvalid$1(state, chunk);
7793
7806
  if (er) errorOrDestroy(stream$1, er);
7794
7807
  else if (state.objectMode || chunk && chunk.length > 0) {
7795
- if (typeof chunk !== "string" && !state.objectMode && Object.getPrototypeOf(chunk) !== Buffer$63.prototype) chunk = _uint8ArrayToBuffer$2(chunk);
7808
+ if (typeof chunk !== "string" && !state.objectMode && Object.getPrototypeOf(chunk) !== Buffer$62.prototype) chunk = _uint8ArrayToBuffer$2(chunk);
7796
7809
  if (addToFront) if (state.endEmitted) errorOrDestroy(stream$1, new ERR_STREAM_UNSHIFT_AFTER_END_EVENT());
7797
7810
  else addChunk$1(stream$1, state, chunk, true);
7798
7811
  else if (state.ended) errorOrDestroy(stream$1, new ERR_STREAM_PUSH_AFTER_EOF());
@@ -8557,12 +8570,12 @@ var ExcelTS = (function(exports) {
8557
8570
  //#endregion
8558
8571
  //#region node_modules/.pnpm/hash-base@3.0.5/node_modules/hash-base/index.js
8559
8572
  var require_hash_base$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
8560
- var Buffer$62 = require_safe_buffer$1().Buffer;
8573
+ var Buffer$61 = require_safe_buffer$1().Buffer;
8561
8574
  var Transform$8 = require_stream_browserify().Transform;
8562
8575
  var inherits$34 = require_inherits_browser();
8563
8576
  function HashBase$3(blockSize$1) {
8564
8577
  Transform$8.call(this);
8565
- this._block = Buffer$62.allocUnsafe(blockSize$1);
8578
+ this._block = Buffer$61.allocUnsafe(blockSize$1);
8566
8579
  this._blockSize = blockSize$1;
8567
8580
  this._blockOffset = 0;
8568
8581
  this._length = [
@@ -8593,17 +8606,17 @@ var ExcelTS = (function(exports) {
8593
8606
  callback(error);
8594
8607
  };
8595
8608
  var useUint8Array$3 = typeof Uint8Array !== "undefined";
8596
- var useArrayBuffer$1 = typeof ArrayBuffer !== "undefined" && typeof Uint8Array !== "undefined" && ArrayBuffer.isView && (Buffer$62.prototype instanceof Uint8Array || Buffer$62.TYPED_ARRAY_SUPPORT);
8609
+ var useArrayBuffer$1 = typeof ArrayBuffer !== "undefined" && typeof Uint8Array !== "undefined" && ArrayBuffer.isView && (Buffer$61.prototype instanceof Uint8Array || Buffer$61.TYPED_ARRAY_SUPPORT);
8597
8610
  function toBuffer$7(data, encoding) {
8598
- if (data instanceof Buffer$62) return data;
8599
- if (typeof data === "string") return Buffer$62.from(data, encoding);
8611
+ if (data instanceof Buffer$61) return data;
8612
+ if (typeof data === "string") return Buffer$61.from(data, encoding);
8600
8613
  if (useArrayBuffer$1 && ArrayBuffer.isView(data)) {
8601
- if (data.byteLength === 0) return Buffer$62.alloc(0);
8602
- var res = Buffer$62.from(data.buffer, data.byteOffset, data.byteLength);
8614
+ if (data.byteLength === 0) return Buffer$61.alloc(0);
8615
+ var res = Buffer$61.from(data.buffer, data.byteOffset, data.byteLength);
8603
8616
  if (res.byteLength === data.byteLength) return res;
8604
8617
  }
8605
- if (useUint8Array$3 && data instanceof Uint8Array) return Buffer$62.from(data);
8606
- if (Buffer$62.isBuffer(data) && data.constructor && typeof data.constructor.isBuffer === "function" && data.constructor.isBuffer(data)) return Buffer$62.from(data);
8618
+ if (useUint8Array$3 && data instanceof Uint8Array) return Buffer$61.from(data);
8619
+ if (Buffer$61.isBuffer(data) && data.constructor && typeof data.constructor.isBuffer === "function" && data.constructor.isBuffer(data)) return Buffer$61.from(data);
8607
8620
  throw new TypeError("The \"data\" argument must be of type string or an instance of Buffer, TypedArray, or DataView.");
8608
8621
  }
8609
8622
  HashBase$3.prototype.update = function(data, encoding) {
@@ -8648,7 +8661,7 @@ var ExcelTS = (function(exports) {
8648
8661
  var require_md5$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
8649
8662
  var inherits$33 = require_inherits_browser();
8650
8663
  var HashBase$2 = require_hash_base$1();
8651
- var Buffer$61 = require_safe_buffer$1().Buffer;
8664
+ var Buffer$60 = require_safe_buffer$1().Buffer;
8652
8665
  var ARRAY16$1 = new Array(16);
8653
8666
  function MD5$3() {
8654
8667
  HashBase$2.call(this, 64);
@@ -8745,7 +8758,7 @@ var ExcelTS = (function(exports) {
8745
8758
  this._block.writeUInt32LE(this._length[0], 56);
8746
8759
  this._block.writeUInt32LE(this._length[1], 60);
8747
8760
  this._update();
8748
- var buffer$2 = Buffer$61.allocUnsafe(16);
8761
+ var buffer$2 = Buffer$60.allocUnsafe(16);
8749
8762
  buffer$2.writeInt32LE(this._a, 0);
8750
8763
  buffer$2.writeInt32LE(this._b, 4);
8751
8764
  buffer$2.writeInt32LE(this._c, 8);
@@ -8796,7 +8809,7 @@ var ExcelTS = (function(exports) {
8796
8809
  //#endregion
8797
8810
  //#region node_modules/.pnpm/to-buffer@1.2.2/node_modules/to-buffer/index.js
8798
8811
  var require_to_buffer$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
8799
- var Buffer$60 = require_safe_buffer$1().Buffer;
8812
+ var Buffer$59 = require_safe_buffer$1().Buffer;
8800
8813
  var isArray$3 = require_isarray$1();
8801
8814
  var typedArrayBuffer = require_typed_array_buffer();
8802
8815
  var isView$2 = ArrayBuffer.isView || function isView$3(obj) {
@@ -8809,30 +8822,30 @@ var ExcelTS = (function(exports) {
8809
8822
  };
8810
8823
  var useUint8Array$2 = typeof Uint8Array !== "undefined";
8811
8824
  var useArrayBuffer = typeof ArrayBuffer !== "undefined" && typeof Uint8Array !== "undefined";
8812
- var useFromArrayBuffer = useArrayBuffer && (Buffer$60.prototype instanceof Uint8Array || Buffer$60.TYPED_ARRAY_SUPPORT);
8825
+ var useFromArrayBuffer = useArrayBuffer && (Buffer$59.prototype instanceof Uint8Array || Buffer$59.TYPED_ARRAY_SUPPORT);
8813
8826
  module.exports = function toBuffer$8(data, encoding) {
8814
- if (Buffer$60.isBuffer(data)) {
8815
- if (data.constructor && !("isBuffer" in data)) return Buffer$60.from(data);
8827
+ if (Buffer$59.isBuffer(data)) {
8828
+ if (data.constructor && !("isBuffer" in data)) return Buffer$59.from(data);
8816
8829
  return data;
8817
8830
  }
8818
- if (typeof data === "string") return Buffer$60.from(data, encoding);
8831
+ if (typeof data === "string") return Buffer$59.from(data, encoding);
8819
8832
  if (useArrayBuffer && isView$2(data)) {
8820
- if (data.byteLength === 0) return Buffer$60.alloc(0);
8833
+ if (data.byteLength === 0) return Buffer$59.alloc(0);
8821
8834
  if (useFromArrayBuffer) {
8822
- var res = Buffer$60.from(data.buffer, data.byteOffset, data.byteLength);
8835
+ var res = Buffer$59.from(data.buffer, data.byteOffset, data.byteLength);
8823
8836
  if (res.byteLength === data.byteLength) return res;
8824
8837
  }
8825
8838
  var uint8 = data instanceof Uint8Array ? data : new Uint8Array(data.buffer, data.byteOffset, data.byteLength);
8826
- var result = Buffer$60.from(uint8);
8839
+ var result = Buffer$59.from(uint8);
8827
8840
  if (result.length === data.byteLength) return result;
8828
8841
  }
8829
- if (useUint8Array$2 && data instanceof Uint8Array) return Buffer$60.from(data);
8842
+ if (useUint8Array$2 && data instanceof Uint8Array) return Buffer$59.from(data);
8830
8843
  var isArr = isArray$3(data);
8831
8844
  if (isArr) for (var i$2 = 0; i$2 < data.length; i$2 += 1) {
8832
8845
  var x$1 = data[i$2];
8833
8846
  if (typeof x$1 !== "number" || x$1 < 0 || x$1 > 255 || ~~x$1 !== x$1) throw new RangeError("Array items must be numbers in the range 0-255.");
8834
8847
  }
8835
- if (isArr || Buffer$60.isBuffer(data) && data.constructor && typeof data.constructor.isBuffer === "function" && data.constructor.isBuffer(data)) return Buffer$60.from(data);
8848
+ if (isArr || Buffer$59.isBuffer(data) && data.constructor && typeof data.constructor.isBuffer === "function" && data.constructor.isBuffer(data)) return Buffer$59.from(data);
8836
8849
  throw new TypeError("The \"data\" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.");
8837
8850
  };
8838
8851
  }));
@@ -8840,12 +8853,12 @@ var ExcelTS = (function(exports) {
8840
8853
  //#endregion
8841
8854
  //#region node_modules/.pnpm/hash-base@3.1.2/node_modules/hash-base/to-buffer.js
8842
8855
  var require_to_buffer$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
8843
- var Buffer$59 = require_safe_buffer$1().Buffer;
8856
+ var Buffer$58 = require_safe_buffer$1().Buffer;
8844
8857
  var toBuffer$6 = require_to_buffer$2();
8845
8858
  var useUint8Array$1 = typeof Uint8Array !== "undefined";
8846
8859
  var isView$1 = useUint8Array$1 && typeof ArrayBuffer !== "undefined" && ArrayBuffer.isView;
8847
8860
  module.exports = function(thing, encoding) {
8848
- if (typeof thing === "string" || Buffer$59.isBuffer(thing) || useUint8Array$1 && thing instanceof Uint8Array || isView$1 && isView$1(thing)) return toBuffer$6(thing, encoding);
8861
+ if (typeof thing === "string" || Buffer$58.isBuffer(thing) || useUint8Array$1 && thing instanceof Uint8Array || isView$1 && isView$1(thing)) return toBuffer$6(thing, encoding);
8849
8862
  throw new TypeError("The \"data\" argument must be a string, a Buffer, a Uint8Array, or a DataView");
8850
8863
  };
8851
8864
  }));
@@ -8902,26 +8915,26 @@ var ExcelTS = (function(exports) {
8902
8915
  //#region node_modules/.pnpm/safe-buffer@5.1.2/node_modules/safe-buffer/index.js
8903
8916
  var require_safe_buffer = /* @__PURE__ */ __commonJSMin(((exports, module) => {
8904
8917
  var buffer = require_buffer$1();
8905
- var Buffer$58 = buffer.Buffer;
8918
+ var Buffer$57 = buffer.Buffer;
8906
8919
  function copyProps(src, dst) {
8907
8920
  for (var key$1 in src) dst[key$1] = src[key$1];
8908
8921
  }
8909
- if (Buffer$58.from && Buffer$58.alloc && Buffer$58.allocUnsafe && Buffer$58.allocUnsafeSlow) module.exports = buffer;
8922
+ if (Buffer$57.from && Buffer$57.alloc && Buffer$57.allocUnsafe && Buffer$57.allocUnsafeSlow) module.exports = buffer;
8910
8923
  else {
8911
8924
  copyProps(buffer, exports);
8912
8925
  exports.Buffer = SafeBuffer;
8913
8926
  }
8914
8927
  function SafeBuffer(arg, encodingOrOffset, length) {
8915
- return Buffer$58(arg, encodingOrOffset, length);
8928
+ return Buffer$57(arg, encodingOrOffset, length);
8916
8929
  }
8917
- copyProps(Buffer$58, SafeBuffer);
8930
+ copyProps(Buffer$57, SafeBuffer);
8918
8931
  SafeBuffer.from = function(arg, encodingOrOffset, length) {
8919
8932
  if (typeof arg === "number") throw new TypeError("Argument must not be a number");
8920
- return Buffer$58(arg, encodingOrOffset, length);
8933
+ return Buffer$57(arg, encodingOrOffset, length);
8921
8934
  };
8922
8935
  SafeBuffer.alloc = function(size, fill, encoding) {
8923
8936
  if (typeof size !== "number") throw new TypeError("Argument must be a number");
8924
- var buf = Buffer$58(size);
8937
+ var buf = Buffer$57(size);
8925
8938
  if (fill !== void 0) if (typeof encoding === "string") buf.fill(fill, encoding);
8926
8939
  else buf.fill(fill);
8927
8940
  else buf.fill(0);
@@ -8929,7 +8942,7 @@ var ExcelTS = (function(exports) {
8929
8942
  };
8930
8943
  SafeBuffer.allocUnsafe = function(size) {
8931
8944
  if (typeof size !== "number") throw new TypeError("Argument must be a number");
8932
- return Buffer$58(size);
8945
+ return Buffer$57(size);
8933
8946
  };
8934
8947
  SafeBuffer.allocUnsafeSlow = function(size) {
8935
8948
  if (typeof size !== "number") throw new TypeError("Argument must be a number");
@@ -9009,7 +9022,7 @@ var ExcelTS = (function(exports) {
9009
9022
  function _classCallCheck(instance, Constructor) {
9010
9023
  if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
9011
9024
  }
9012
- var Buffer$57 = require_safe_buffer().Buffer;
9025
+ var Buffer$56 = require_safe_buffer().Buffer;
9013
9026
  var util$5 = require_util$1();
9014
9027
  function copyBuffer(src, target, offset) {
9015
9028
  src.copy(target, offset);
@@ -9060,8 +9073,8 @@ var ExcelTS = (function(exports) {
9060
9073
  return ret;
9061
9074
  };
9062
9075
  BufferList$2.prototype.concat = function concat(n) {
9063
- if (this.length === 0) return Buffer$57.alloc(0);
9064
- var ret = Buffer$57.allocUnsafe(n >>> 0);
9076
+ if (this.length === 0) return Buffer$56.alloc(0);
9077
+ var ret = Buffer$56.allocUnsafe(n >>> 0);
9065
9078
  var p$1 = this.head;
9066
9079
  var i$2 = 0;
9067
9080
  while (p$1) {
@@ -9158,13 +9171,13 @@ var ExcelTS = (function(exports) {
9158
9171
  util$4.inherits = require_inherits_browser();
9159
9172
  var internalUtil = { deprecate: require_browser$10() };
9160
9173
  var Stream$1 = require_stream_browser();
9161
- var Buffer$56 = require_safe_buffer().Buffer;
9174
+ var Buffer$55 = require_safe_buffer().Buffer;
9162
9175
  var OurUint8Array$1 = (typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : typeof self !== "undefined" ? self : {}).Uint8Array || function() {};
9163
9176
  function _uint8ArrayToBuffer$1(chunk) {
9164
- return Buffer$56.from(chunk);
9177
+ return Buffer$55.from(chunk);
9165
9178
  }
9166
9179
  function _isUint8Array$1(obj) {
9167
- return Buffer$56.isBuffer(obj) || obj instanceof OurUint8Array$1;
9180
+ return Buffer$55.isBuffer(obj) || obj instanceof OurUint8Array$1;
9168
9181
  }
9169
9182
  var destroyImpl$1 = require_destroy();
9170
9183
  util$4.inherits(Writable$1, Stream$1);
@@ -9272,7 +9285,7 @@ var ExcelTS = (function(exports) {
9272
9285
  var state = this._writableState;
9273
9286
  var ret = false;
9274
9287
  var isBuf = !state.objectMode && _isUint8Array$1(chunk);
9275
- if (isBuf && !Buffer$56.isBuffer(chunk)) chunk = _uint8ArrayToBuffer$1(chunk);
9288
+ if (isBuf && !Buffer$55.isBuffer(chunk)) chunk = _uint8ArrayToBuffer$1(chunk);
9276
9289
  if (typeof encoding === "function") {
9277
9290
  cb = encoding;
9278
9291
  encoding = null;
@@ -9317,7 +9330,7 @@ var ExcelTS = (function(exports) {
9317
9330
  return this;
9318
9331
  };
9319
9332
  function decodeChunk(state, chunk, encoding) {
9320
- if (!state.objectMode && state.decodeStrings !== false && typeof chunk === "string") chunk = Buffer$56.from(chunk, encoding);
9333
+ if (!state.objectMode && state.decodeStrings !== false && typeof chunk === "string") chunk = Buffer$55.from(chunk, encoding);
9321
9334
  return chunk;
9322
9335
  }
9323
9336
  Object.defineProperty(Writable$1.prototype, "writableHighWaterMark", {
@@ -9614,13 +9627,13 @@ var ExcelTS = (function(exports) {
9614
9627
  return emitter.listeners(type).length;
9615
9628
  };
9616
9629
  var Stream = require_stream_browser();
9617
- var Buffer$55 = require_safe_buffer().Buffer;
9630
+ var Buffer$54 = require_safe_buffer().Buffer;
9618
9631
  var OurUint8Array = (typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : typeof self !== "undefined" ? self : {}).Uint8Array || function() {};
9619
9632
  function _uint8ArrayToBuffer(chunk) {
9620
- return Buffer$55.from(chunk);
9633
+ return Buffer$54.from(chunk);
9621
9634
  }
9622
9635
  function _isUint8Array(obj) {
9623
- return Buffer$55.isBuffer(obj) || obj instanceof OurUint8Array;
9636
+ return Buffer$54.isBuffer(obj) || obj instanceof OurUint8Array;
9624
9637
  }
9625
9638
  var util$2 = Object.create(require_util());
9626
9639
  util$2.inherits = require_inherits_browser();
@@ -9717,7 +9730,7 @@ var ExcelTS = (function(exports) {
9717
9730
  if (typeof chunk === "string") {
9718
9731
  encoding = encoding || state.defaultEncoding;
9719
9732
  if (encoding !== state.encoding) {
9720
- chunk = Buffer$55.from(chunk, encoding);
9733
+ chunk = Buffer$54.from(chunk, encoding);
9721
9734
  encoding = "";
9722
9735
  }
9723
9736
  skipChunkCheck = true;
@@ -9738,7 +9751,7 @@ var ExcelTS = (function(exports) {
9738
9751
  if (!skipChunkCheck) er = chunkInvalid(state, chunk);
9739
9752
  if (er) stream$1.emit("error", er);
9740
9753
  else if (state.objectMode || chunk && chunk.length > 0) {
9741
- if (typeof chunk !== "string" && !state.objectMode && Object.getPrototypeOf(chunk) !== Buffer$55.prototype) chunk = _uint8ArrayToBuffer(chunk);
9754
+ if (typeof chunk !== "string" && !state.objectMode && Object.getPrototypeOf(chunk) !== Buffer$54.prototype) chunk = _uint8ArrayToBuffer(chunk);
9742
9755
  if (addToFront) if (state.endEmitted) stream$1.emit("error", /* @__PURE__ */ new Error("stream.unshift() after end event"));
9743
9756
  else addChunk(stream$1, state, chunk, true);
9744
9757
  else if (state.ended) stream$1.emit("error", /* @__PURE__ */ new Error("stream.push() after EOF"));
@@ -10191,7 +10204,7 @@ var ExcelTS = (function(exports) {
10191
10204
  return ret;
10192
10205
  }
10193
10206
  function copyFromBuffer(n, list) {
10194
- var ret = Buffer$55.allocUnsafe(n);
10207
+ var ret = Buffer$54.allocUnsafe(n);
10195
10208
  var p$1 = list.head;
10196
10209
  var c = 1;
10197
10210
  p$1.data.copy(ret);
@@ -10357,13 +10370,13 @@ var ExcelTS = (function(exports) {
10357
10370
  //#endregion
10358
10371
  //#region node_modules/.pnpm/hash-base@3.1.2/node_modules/hash-base/index.js
10359
10372
  var require_hash_base = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10360
- var Buffer$54 = require_safe_buffer$1().Buffer;
10373
+ var Buffer$53 = require_safe_buffer$1().Buffer;
10361
10374
  var toBuffer$5 = require_to_buffer$1();
10362
10375
  var Transform$5 = require_readable_browser().Transform;
10363
10376
  var inherits$32 = require_inherits_browser();
10364
10377
  function HashBase$1(blockSize$1) {
10365
10378
  Transform$5.call(this);
10366
- this._block = Buffer$54.allocUnsafe(blockSize$1);
10379
+ this._block = Buffer$53.allocUnsafe(blockSize$1);
10367
10380
  this._blockSize = blockSize$1;
10368
10381
  this._blockOffset = 0;
10369
10382
  this._length = [
@@ -10441,7 +10454,7 @@ var ExcelTS = (function(exports) {
10441
10454
  //#endregion
10442
10455
  //#region node_modules/.pnpm/ripemd160@2.0.3/node_modules/ripemd160/index.js
10443
10456
  var require_ripemd160 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10444
- var Buffer$53 = require_buffer$1().Buffer;
10457
+ var Buffer$52 = require_buffer$1().Buffer;
10445
10458
  var inherits$31 = require_inherits_browser();
10446
10459
  var HashBase = require_hash_base();
10447
10460
  var ARRAY16 = new Array(16);
@@ -10876,7 +10889,7 @@ var ExcelTS = (function(exports) {
10876
10889
  this._block.writeUInt32LE(this._length[0], 56);
10877
10890
  this._block.writeUInt32LE(this._length[1], 60);
10878
10891
  this._update();
10879
- var buffer$2 = Buffer$53.alloc ? Buffer$53.alloc(20) : new Buffer$53(20);
10892
+ var buffer$2 = Buffer$52.alloc ? Buffer$52.alloc(20) : new Buffer$52(20);
10880
10893
  buffer$2.writeInt32LE(this._a, 0);
10881
10894
  buffer$2.writeInt32LE(this._b, 4);
10882
10895
  buffer$2.writeInt32LE(this._c, 8);
@@ -10890,10 +10903,10 @@ var ExcelTS = (function(exports) {
10890
10903
  //#endregion
10891
10904
  //#region node_modules/.pnpm/sha.js@2.4.12/node_modules/sha.js/hash.js
10892
10905
  var require_hash$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10893
- var Buffer$52 = require_safe_buffer$1().Buffer;
10906
+ var Buffer$51 = require_safe_buffer$1().Buffer;
10894
10907
  var toBuffer$4 = require_to_buffer$2();
10895
10908
  function Hash$9(blockSize$1, finalSize) {
10896
- this._block = Buffer$52.alloc(blockSize$1);
10909
+ this._block = Buffer$51.alloc(blockSize$1);
10897
10910
  this._finalSize = finalSize;
10898
10911
  this._blockSize = blockSize$1;
10899
10912
  this._len = 0;
@@ -10946,7 +10959,7 @@ var ExcelTS = (function(exports) {
10946
10959
  var require_sha$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10947
10960
  var inherits$30 = require_inherits_browser();
10948
10961
  var Hash$8 = require_hash$1();
10949
- var Buffer$51 = require_safe_buffer$1().Buffer;
10962
+ var Buffer$50 = require_safe_buffer$1().Buffer;
10950
10963
  var K$4 = [
10951
10964
  1518500249,
10952
10965
  1859775393,
@@ -11004,7 +11017,7 @@ var ExcelTS = (function(exports) {
11004
11017
  this._e = e + this._e | 0;
11005
11018
  };
11006
11019
  Sha.prototype._hash = function() {
11007
- var H = Buffer$51.allocUnsafe(20);
11020
+ var H = Buffer$50.allocUnsafe(20);
11008
11021
  H.writeInt32BE(this._a | 0, 0);
11009
11022
  H.writeInt32BE(this._b | 0, 4);
11010
11023
  H.writeInt32BE(this._c | 0, 8);
@@ -11020,7 +11033,7 @@ var ExcelTS = (function(exports) {
11020
11033
  var require_sha1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
11021
11034
  var inherits$29 = require_inherits_browser();
11022
11035
  var Hash$7 = require_hash$1();
11023
- var Buffer$50 = require_safe_buffer$1().Buffer;
11036
+ var Buffer$49 = require_safe_buffer$1().Buffer;
11024
11037
  var K$3 = [
11025
11038
  1518500249,
11026
11039
  1859775393,
@@ -11081,7 +11094,7 @@ var ExcelTS = (function(exports) {
11081
11094
  this._e = e + this._e | 0;
11082
11095
  };
11083
11096
  Sha1.prototype._hash = function() {
11084
- var H = Buffer$50.allocUnsafe(20);
11097
+ var H = Buffer$49.allocUnsafe(20);
11085
11098
  H.writeInt32BE(this._a | 0, 0);
11086
11099
  H.writeInt32BE(this._b | 0, 4);
11087
11100
  H.writeInt32BE(this._c | 0, 8);
@@ -11104,7 +11117,7 @@ var ExcelTS = (function(exports) {
11104
11117
  */
11105
11118
  var inherits$28 = require_inherits_browser();
11106
11119
  var Hash$6 = require_hash$1();
11107
- var Buffer$49 = require_safe_buffer$1().Buffer;
11120
+ var Buffer$48 = require_safe_buffer$1().Buffer;
11108
11121
  var K$2 = [
11109
11122
  1116352408,
11110
11123
  1899447441,
@@ -11241,7 +11254,7 @@ var ExcelTS = (function(exports) {
11241
11254
  this._h = h + this._h | 0;
11242
11255
  };
11243
11256
  Sha256$1.prototype._hash = function() {
11244
- var H = Buffer$49.allocUnsafe(32);
11257
+ var H = Buffer$48.allocUnsafe(32);
11245
11258
  H.writeInt32BE(this._a, 0);
11246
11259
  H.writeInt32BE(this._b, 4);
11247
11260
  H.writeInt32BE(this._c, 8);
@@ -11268,7 +11281,7 @@ var ExcelTS = (function(exports) {
11268
11281
  var inherits$27 = require_inherits_browser();
11269
11282
  var Sha256 = require_sha256();
11270
11283
  var Hash$5 = require_hash$1();
11271
- var Buffer$48 = require_safe_buffer$1().Buffer;
11284
+ var Buffer$47 = require_safe_buffer$1().Buffer;
11272
11285
  var W$2 = new Array(64);
11273
11286
  function Sha224() {
11274
11287
  this.init();
@@ -11288,7 +11301,7 @@ var ExcelTS = (function(exports) {
11288
11301
  return this;
11289
11302
  };
11290
11303
  Sha224.prototype._hash = function() {
11291
- var H = Buffer$48.allocUnsafe(28);
11304
+ var H = Buffer$47.allocUnsafe(28);
11292
11305
  H.writeInt32BE(this._a, 0);
11293
11306
  H.writeInt32BE(this._b, 4);
11294
11307
  H.writeInt32BE(this._c, 8);
@@ -11306,7 +11319,7 @@ var ExcelTS = (function(exports) {
11306
11319
  var require_sha512 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
11307
11320
  var inherits$26 = require_inherits_browser();
11308
11321
  var Hash$4 = require_hash$1();
11309
- var Buffer$47 = require_safe_buffer$1().Buffer;
11322
+ var Buffer$46 = require_safe_buffer$1().Buffer;
11310
11323
  var K$1 = [
11311
11324
  1116352408,
11312
11325
  3609767458,
@@ -11624,7 +11637,7 @@ var ExcelTS = (function(exports) {
11624
11637
  this._hh = this._hh + hh + getCarry(this._hl, hl$1) | 0;
11625
11638
  };
11626
11639
  Sha512.prototype._hash = function() {
11627
- var H = Buffer$47.allocUnsafe(64);
11640
+ var H = Buffer$46.allocUnsafe(64);
11628
11641
  function writeInt64BE(h, l, offset) {
11629
11642
  H.writeInt32BE(h, offset);
11630
11643
  H.writeInt32BE(l, offset + 4);
@@ -11648,7 +11661,7 @@ var ExcelTS = (function(exports) {
11648
11661
  var inherits$25 = require_inherits_browser();
11649
11662
  var SHA512$2 = require_sha512();
11650
11663
  var Hash$3 = require_hash$1();
11651
- var Buffer$46 = require_safe_buffer$1().Buffer;
11664
+ var Buffer$45 = require_safe_buffer$1().Buffer;
11652
11665
  var W = new Array(160);
11653
11666
  function Sha384() {
11654
11667
  this.init();
@@ -11676,7 +11689,7 @@ var ExcelTS = (function(exports) {
11676
11689
  return this;
11677
11690
  };
11678
11691
  Sha384.prototype._hash = function() {
11679
- var H = Buffer$46.allocUnsafe(48);
11692
+ var H = Buffer$45.allocUnsafe(48);
11680
11693
  function writeInt64BE(h, l, offset) {
11681
11694
  H.writeInt32BE(h, offset);
11682
11695
  H.writeInt32BE(l, offset + 4);
@@ -11712,7 +11725,7 @@ var ExcelTS = (function(exports) {
11712
11725
  //#endregion
11713
11726
  //#region node_modules/.pnpm/cipher-base@1.0.7/node_modules/cipher-base/index.js
11714
11727
  var require_cipher_base = /* @__PURE__ */ __commonJSMin(((exports, module) => {
11715
- var Buffer$45 = require_safe_buffer$1().Buffer;
11728
+ var Buffer$44 = require_safe_buffer$1().Buffer;
11716
11729
  var Transform$4 = require_stream_browserify().Transform;
11717
11730
  var StringDecoder = require_string_decoder().StringDecoder;
11718
11731
  var inherits$24 = require_inherits_browser();
@@ -11768,7 +11781,7 @@ var ExcelTS = (function(exports) {
11768
11781
  done$2(err$1);
11769
11782
  };
11770
11783
  CipherBase$1.prototype._finalOrDigest = function(outputEnc) {
11771
- var outData = this.__final() || Buffer$45.alloc(0);
11784
+ var outData = this.__final() || Buffer$44.alloc(0);
11772
11785
  if (outputEnc) outData = this._toString(outData, outputEnc, true);
11773
11786
  return outData;
11774
11787
  };
@@ -11816,19 +11829,19 @@ var ExcelTS = (function(exports) {
11816
11829
  //#region node_modules/.pnpm/create-hmac@1.1.7/node_modules/create-hmac/legacy.js
11817
11830
  var require_legacy = /* @__PURE__ */ __commonJSMin(((exports, module) => {
11818
11831
  var inherits$22 = require_inherits_browser();
11819
- var Buffer$44 = require_safe_buffer$1().Buffer;
11832
+ var Buffer$43 = require_safe_buffer$1().Buffer;
11820
11833
  var Base$4 = require_cipher_base();
11821
- var ZEROS$2 = Buffer$44.alloc(128);
11834
+ var ZEROS$2 = Buffer$43.alloc(128);
11822
11835
  var blocksize = 64;
11823
11836
  function Hmac$3(alg, key$1) {
11824
11837
  Base$4.call(this, "digest");
11825
- if (typeof key$1 === "string") key$1 = Buffer$44.from(key$1);
11838
+ if (typeof key$1 === "string") key$1 = Buffer$43.from(key$1);
11826
11839
  this._alg = alg;
11827
11840
  this._key = key$1;
11828
11841
  if (key$1.length > blocksize) key$1 = alg(key$1);
11829
- else if (key$1.length < blocksize) key$1 = Buffer$44.concat([key$1, ZEROS$2], blocksize);
11830
- var ipad = this._ipad = Buffer$44.allocUnsafe(blocksize);
11831
- var opad = this._opad = Buffer$44.allocUnsafe(blocksize);
11842
+ else if (key$1.length < blocksize) key$1 = Buffer$43.concat([key$1, ZEROS$2], blocksize);
11843
+ var ipad = this._ipad = Buffer$43.allocUnsafe(blocksize);
11844
+ var opad = this._opad = Buffer$43.allocUnsafe(blocksize);
11832
11845
  for (var i$2 = 0; i$2 < blocksize; i$2++) {
11833
11846
  ipad[i$2] = key$1[i$2] ^ 54;
11834
11847
  opad[i$2] = key$1[i$2] ^ 92;
@@ -11840,8 +11853,8 @@ var ExcelTS = (function(exports) {
11840
11853
  this._hash.push(data);
11841
11854
  };
11842
11855
  Hmac$3.prototype._final = function() {
11843
- var h = this._alg(Buffer$44.concat(this._hash));
11844
- return this._alg(Buffer$44.concat([this._opad, h]));
11856
+ var h = this._alg(Buffer$43.concat(this._hash));
11857
+ return this._alg(Buffer$43.concat([this._opad, h]));
11845
11858
  };
11846
11859
  module.exports = Hmac$3;
11847
11860
  }));
@@ -11861,21 +11874,21 @@ var ExcelTS = (function(exports) {
11861
11874
  var inherits$21 = require_inherits_browser();
11862
11875
  var Legacy = require_legacy();
11863
11876
  var Base$3 = require_cipher_base();
11864
- var Buffer$43 = require_safe_buffer$1().Buffer;
11877
+ var Buffer$42 = require_safe_buffer$1().Buffer;
11865
11878
  var md5$1 = require_md5();
11866
11879
  var RIPEMD160$2 = require_ripemd160();
11867
11880
  var sha$1 = require_sha$1();
11868
- var ZEROS$1 = Buffer$43.alloc(128);
11881
+ var ZEROS$1 = Buffer$42.alloc(128);
11869
11882
  function Hmac$2(alg, key$1) {
11870
11883
  Base$3.call(this, "digest");
11871
- if (typeof key$1 === "string") key$1 = Buffer$43.from(key$1);
11884
+ if (typeof key$1 === "string") key$1 = Buffer$42.from(key$1);
11872
11885
  var blocksize$1 = alg === "sha512" || alg === "sha384" ? 128 : 64;
11873
11886
  this._alg = alg;
11874
11887
  this._key = key$1;
11875
11888
  if (key$1.length > blocksize$1) key$1 = (alg === "rmd160" ? new RIPEMD160$2() : sha$1(alg)).update(key$1).digest();
11876
- else if (key$1.length < blocksize$1) key$1 = Buffer$43.concat([key$1, ZEROS$1], blocksize$1);
11877
- var ipad = this._ipad = Buffer$43.allocUnsafe(blocksize$1);
11878
- var opad = this._opad = Buffer$43.allocUnsafe(blocksize$1);
11889
+ else if (key$1.length < blocksize$1) key$1 = Buffer$42.concat([key$1, ZEROS$1], blocksize$1);
11890
+ var ipad = this._ipad = Buffer$42.allocUnsafe(blocksize$1);
11891
+ var opad = this._opad = Buffer$42.allocUnsafe(blocksize$1);
11879
11892
  for (var i$2 = 0; i$2 < blocksize$1; i$2++) {
11880
11893
  ipad[i$2] = key$1[i$2] ^ 54;
11881
11894
  opad[i$2] = key$1[i$2] ^ 92;
@@ -12090,12 +12103,12 @@ var ExcelTS = (function(exports) {
12090
12103
  //#endregion
12091
12104
  //#region node_modules/.pnpm/pbkdf2@3.1.5/node_modules/pbkdf2/lib/to-buffer.js
12092
12105
  var require_to_buffer = /* @__PURE__ */ __commonJSMin(((exports, module) => {
12093
- var Buffer$42 = require_safe_buffer$1().Buffer;
12106
+ var Buffer$41 = require_safe_buffer$1().Buffer;
12094
12107
  var toBuffer$2 = require_to_buffer$2();
12095
12108
  var useUint8Array = typeof Uint8Array !== "undefined";
12096
12109
  var isView = useUint8Array && typeof ArrayBuffer !== "undefined" && ArrayBuffer.isView;
12097
12110
  module.exports = function(thing, encoding, name) {
12098
- if (typeof thing === "string" || Buffer$42.isBuffer(thing) || useUint8Array && thing instanceof Uint8Array || isView && isView(thing)) return toBuffer$2(thing, encoding);
12111
+ if (typeof thing === "string" || Buffer$41.isBuffer(thing) || useUint8Array && thing instanceof Uint8Array || isView && isView(thing)) return toBuffer$2(thing, encoding);
12099
12112
  throw new TypeError(name + " must be a string, a Buffer, a Uint8Array, or a DataView");
12100
12113
  };
12101
12114
  }));
@@ -12106,11 +12119,11 @@ var ExcelTS = (function(exports) {
12106
12119
  var md5 = require_md5();
12107
12120
  var RIPEMD160$1 = require_ripemd160();
12108
12121
  var sha = require_sha$1();
12109
- var Buffer$41 = require_safe_buffer$1().Buffer;
12122
+ var Buffer$40 = require_safe_buffer$1().Buffer;
12110
12123
  var checkParameters$1 = require_precondition();
12111
12124
  var defaultEncoding$1 = require_default_encoding();
12112
12125
  var toBuffer$1 = require_to_buffer();
12113
- var ZEROS = Buffer$41.alloc(128);
12126
+ var ZEROS = Buffer$40.alloc(128);
12114
12127
  var sizes = {
12115
12128
  __proto__: null,
12116
12129
  md5: 16,
@@ -12147,14 +12160,14 @@ var ExcelTS = (function(exports) {
12147
12160
  var hash$4 = getDigest(alg);
12148
12161
  var blocksize$1 = alg === "sha512" || alg === "sha384" ? 128 : 64;
12149
12162
  if (key$1.length > blocksize$1) key$1 = hash$4(key$1);
12150
- else if (key$1.length < blocksize$1) key$1 = Buffer$41.concat([key$1, ZEROS], blocksize$1);
12151
- var ipad = Buffer$41.allocUnsafe(blocksize$1 + sizes[alg]);
12152
- var opad = Buffer$41.allocUnsafe(blocksize$1 + sizes[alg]);
12163
+ else if (key$1.length < blocksize$1) key$1 = Buffer$40.concat([key$1, ZEROS], blocksize$1);
12164
+ var ipad = Buffer$40.allocUnsafe(blocksize$1 + sizes[alg]);
12165
+ var opad = Buffer$40.allocUnsafe(blocksize$1 + sizes[alg]);
12153
12166
  for (var i$2 = 0; i$2 < blocksize$1; i$2++) {
12154
12167
  ipad[i$2] = key$1[i$2] ^ 54;
12155
12168
  opad[i$2] = key$1[i$2] ^ 92;
12156
12169
  }
12157
- var ipad1 = Buffer$41.allocUnsafe(blocksize$1 + saltLen + 4);
12170
+ var ipad1 = Buffer$40.allocUnsafe(blocksize$1 + saltLen + 4);
12158
12171
  ipad.copy(ipad1, 0, 0, blocksize$1);
12159
12172
  this.ipad1 = ipad1;
12160
12173
  this.ipad2 = ipad;
@@ -12178,8 +12191,8 @@ var ExcelTS = (function(exports) {
12178
12191
  var size = sizes[mappedDigest];
12179
12192
  if (typeof size !== "number" || !size) throw new TypeError("Digest algorithm not supported: " + digest);
12180
12193
  var hmac = new Hmac$1(mappedDigest, password, salt.length);
12181
- var DK = Buffer$41.allocUnsafe(keylen);
12182
- var block1 = Buffer$41.allocUnsafe(salt.length + 4);
12194
+ var DK = Buffer$40.allocUnsafe(keylen);
12195
+ var block1 = Buffer$40.allocUnsafe(salt.length + 4);
12183
12196
  salt.copy(block1, 0, 0, salt.length);
12184
12197
  var destPos = 0;
12185
12198
  var hLen = size;
@@ -12203,7 +12216,7 @@ var ExcelTS = (function(exports) {
12203
12216
  //#endregion
12204
12217
  //#region node_modules/.pnpm/pbkdf2@3.1.5/node_modules/pbkdf2/lib/async.js
12205
12218
  var require_async = /* @__PURE__ */ __commonJSMin(((exports, module) => {
12206
- var Buffer$40 = require_safe_buffer$1().Buffer;
12219
+ var Buffer$39 = require_safe_buffer$1().Buffer;
12207
12220
  var checkParameters = require_precondition();
12208
12221
  var defaultEncoding = require_default_encoding();
12209
12222
  var sync = require_sync_browser();
@@ -12240,14 +12253,14 @@ var ExcelTS = (function(exports) {
12240
12253
  hash: { name: algo }
12241
12254
  }, key$1, length << 3);
12242
12255
  }).then(function(res) {
12243
- return Buffer$40.from(res);
12256
+ return Buffer$39.from(res);
12244
12257
  });
12245
12258
  }
12246
12259
  function checkNative(algo) {
12247
12260
  if (global.process && !global.process.browser) return Promise.resolve(false);
12248
12261
  if (!subtle || !subtle.importKey || !subtle.deriveBits) return Promise.resolve(false);
12249
12262
  if (checks[algo] !== void 0) return checks[algo];
12250
- ZERO_BUF = ZERO_BUF || Buffer$40.alloc(8);
12263
+ ZERO_BUF = ZERO_BUF || Buffer$39.alloc(8);
12251
12264
  var prom = browserPbkdf2(ZERO_BUF, ZERO_BUF, 10, 128, algo).then(function() {
12252
12265
  return true;
12253
12266
  }, function() {
@@ -13403,7 +13416,7 @@ var ExcelTS = (function(exports) {
13403
13416
  var CipherBase = require_cipher_base();
13404
13417
  var des = require_des();
13405
13418
  var inherits$17 = require_inherits_browser();
13406
- var Buffer$39 = require_safe_buffer$1().Buffer;
13419
+ var Buffer$38 = require_safe_buffer$1().Buffer;
13407
13420
  var modes$2 = {
13408
13421
  "des-ede3-cbc": des.CBC.instantiate(des.EDE),
13409
13422
  "des-ede3": des.EDE,
@@ -13424,10 +13437,10 @@ var ExcelTS = (function(exports) {
13424
13437
  if (opts.decrypt) type = "decrypt";
13425
13438
  else type = "encrypt";
13426
13439
  var key$1 = opts.key;
13427
- if (!Buffer$39.isBuffer(key$1)) key$1 = Buffer$39.from(key$1);
13428
- if (modeName === "des-ede" || modeName === "des-ede-cbc") key$1 = Buffer$39.concat([key$1, key$1.slice(0, 8)]);
13440
+ if (!Buffer$38.isBuffer(key$1)) key$1 = Buffer$38.from(key$1);
13441
+ if (modeName === "des-ede" || modeName === "des-ede-cbc") key$1 = Buffer$38.concat([key$1, key$1.slice(0, 8)]);
13429
13442
  var iv = opts.iv;
13430
- if (!Buffer$39.isBuffer(iv)) iv = Buffer$39.from(iv);
13443
+ if (!Buffer$38.isBuffer(iv)) iv = Buffer$38.from(iv);
13431
13444
  this._des = mode.create({
13432
13445
  key: key$1,
13433
13446
  iv,
@@ -13435,10 +13448,10 @@ var ExcelTS = (function(exports) {
13435
13448
  });
13436
13449
  }
13437
13450
  DES$1.prototype._update = function(data) {
13438
- return Buffer$39.from(this._des.update(data));
13451
+ return Buffer$38.from(this._des.update(data));
13439
13452
  };
13440
13453
  DES$1.prototype._final = function() {
13441
- return Buffer$39.from(this._des.final());
13454
+ return Buffer$38.from(this._des.final());
13442
13455
  };
13443
13456
  }));
13444
13457
 
@@ -13456,10 +13469,10 @@ var ExcelTS = (function(exports) {
13456
13469
  //#endregion
13457
13470
  //#region node_modules/.pnpm/buffer-xor@1.0.3/node_modules/buffer-xor/index.js
13458
13471
  var require_buffer_xor = /* @__PURE__ */ __commonJSMin(((exports, module) => {
13459
- var import_buffer$12 = require_buffer$1();
13472
+ var import_buffer$11 = require_buffer$1();
13460
13473
  module.exports = function xor$7(a, b) {
13461
13474
  var length = Math.min(a.length, b.length);
13462
- var buffer$2 = new import_buffer$12.Buffer(length);
13475
+ var buffer$2 = new import_buffer$11.Buffer(length);
13463
13476
  for (var i$2 = 0; i$2 < length; ++i$2) buffer$2[i$2] = a[i$2] ^ b[i$2];
13464
13477
  return buffer$2;
13465
13478
  };
@@ -13484,29 +13497,29 @@ var ExcelTS = (function(exports) {
13484
13497
  //#endregion
13485
13498
  //#region node_modules/.pnpm/browserify-aes@1.2.0/node_modules/browserify-aes/modes/cfb.js
13486
13499
  var require_cfb = /* @__PURE__ */ __commonJSMin(((exports) => {
13487
- var Buffer$37 = require_safe_buffer$1().Buffer;
13500
+ var Buffer$36 = require_safe_buffer$1().Buffer;
13488
13501
  var xor$5 = require_buffer_xor();
13489
13502
  function encryptStart(self$1, data, decrypt$1) {
13490
13503
  var len$1 = data.length;
13491
13504
  var out = xor$5(data, self$1._cache);
13492
13505
  self$1._cache = self$1._cache.slice(len$1);
13493
- self$1._prev = Buffer$37.concat([self$1._prev, decrypt$1 ? data : out]);
13506
+ self$1._prev = Buffer$36.concat([self$1._prev, decrypt$1 ? data : out]);
13494
13507
  return out;
13495
13508
  }
13496
13509
  exports.encrypt = function(self$1, data, decrypt$1) {
13497
- var out = Buffer$37.allocUnsafe(0);
13510
+ var out = Buffer$36.allocUnsafe(0);
13498
13511
  var len$1;
13499
13512
  while (data.length) {
13500
13513
  if (self$1._cache.length === 0) {
13501
13514
  self$1._cache = self$1._cipher.encryptBlock(self$1._prev);
13502
- self$1._prev = Buffer$37.allocUnsafe(0);
13515
+ self$1._prev = Buffer$36.allocUnsafe(0);
13503
13516
  }
13504
13517
  if (self$1._cache.length <= data.length) {
13505
13518
  len$1 = self$1._cache.length;
13506
- out = Buffer$37.concat([out, encryptStart(self$1, data.slice(0, len$1), decrypt$1)]);
13519
+ out = Buffer$36.concat([out, encryptStart(self$1, data.slice(0, len$1), decrypt$1)]);
13507
13520
  data = data.slice(len$1);
13508
13521
  } else {
13509
- out = Buffer$37.concat([out, encryptStart(self$1, data, decrypt$1)]);
13522
+ out = Buffer$36.concat([out, encryptStart(self$1, data, decrypt$1)]);
13510
13523
  break;
13511
13524
  }
13512
13525
  }
@@ -13517,15 +13530,15 @@ var ExcelTS = (function(exports) {
13517
13530
  //#endregion
13518
13531
  //#region node_modules/.pnpm/browserify-aes@1.2.0/node_modules/browserify-aes/modes/cfb8.js
13519
13532
  var require_cfb8 = /* @__PURE__ */ __commonJSMin(((exports) => {
13520
- var Buffer$36 = require_safe_buffer$1().Buffer;
13533
+ var Buffer$35 = require_safe_buffer$1().Buffer;
13521
13534
  function encryptByte$1(self$1, byteParam, decrypt$1) {
13522
13535
  var out = self$1._cipher.encryptBlock(self$1._prev)[0] ^ byteParam;
13523
- self$1._prev = Buffer$36.concat([self$1._prev.slice(1), Buffer$36.from([decrypt$1 ? byteParam : out])]);
13536
+ self$1._prev = Buffer$35.concat([self$1._prev.slice(1), Buffer$35.from([decrypt$1 ? byteParam : out])]);
13524
13537
  return out;
13525
13538
  }
13526
13539
  exports.encrypt = function(self$1, chunk, decrypt$1) {
13527
13540
  var len$1 = chunk.length;
13528
- var out = Buffer$36.allocUnsafe(len$1);
13541
+ var out = Buffer$35.allocUnsafe(len$1);
13529
13542
  var i$2 = -1;
13530
13543
  while (++i$2 < len$1) out[i$2] = encryptByte$1(self$1, chunk[i$2], decrypt$1);
13531
13544
  return out;
@@ -13535,7 +13548,7 @@ var ExcelTS = (function(exports) {
13535
13548
  //#endregion
13536
13549
  //#region node_modules/.pnpm/browserify-aes@1.2.0/node_modules/browserify-aes/modes/cfb1.js
13537
13550
  var require_cfb1 = /* @__PURE__ */ __commonJSMin(((exports) => {
13538
- var Buffer$35 = require_safe_buffer$1().Buffer;
13551
+ var Buffer$34 = require_safe_buffer$1().Buffer;
13539
13552
  function encryptByte(self$1, byteParam, decrypt$1) {
13540
13553
  var pad$1;
13541
13554
  var i$2 = -1;
@@ -13554,14 +13567,14 @@ var ExcelTS = (function(exports) {
13554
13567
  function shiftIn(buffer$2, value) {
13555
13568
  var len$1 = buffer$2.length;
13556
13569
  var i$2 = -1;
13557
- var out = Buffer$35.allocUnsafe(buffer$2.length);
13558
- buffer$2 = Buffer$35.concat([buffer$2, Buffer$35.from([value])]);
13570
+ var out = Buffer$34.allocUnsafe(buffer$2.length);
13571
+ buffer$2 = Buffer$34.concat([buffer$2, Buffer$34.from([value])]);
13559
13572
  while (++i$2 < len$1) out[i$2] = buffer$2[i$2] << 1 | buffer$2[i$2 + 1] >> 7;
13560
13573
  return out;
13561
13574
  }
13562
13575
  exports.encrypt = function(self$1, chunk, decrypt$1) {
13563
13576
  var len$1 = chunk.length;
13564
- var out = Buffer$35.allocUnsafe(len$1);
13577
+ var out = Buffer$34.allocUnsafe(len$1);
13565
13578
  var i$2 = -1;
13566
13579
  while (++i$2 < len$1) out[i$2] = encryptByte(self$1, chunk[i$2], decrypt$1);
13567
13580
  return out;
@@ -13571,14 +13584,14 @@ var ExcelTS = (function(exports) {
13571
13584
  //#endregion
13572
13585
  //#region node_modules/.pnpm/browserify-aes@1.2.0/node_modules/browserify-aes/modes/ofb.js
13573
13586
  var require_ofb = /* @__PURE__ */ __commonJSMin(((exports) => {
13574
- var import_buffer$11 = require_buffer$1();
13587
+ var import_buffer$10 = require_buffer$1();
13575
13588
  var xor$4 = require_buffer_xor();
13576
13589
  function getBlock$1(self$1) {
13577
13590
  self$1._prev = self$1._cipher.encryptBlock(self$1._prev);
13578
13591
  return self$1._prev;
13579
13592
  }
13580
13593
  exports.encrypt = function(self$1, chunk) {
13581
- while (self$1._cache.length < chunk.length) self$1._cache = import_buffer$11.Buffer.concat([self$1._cache, getBlock$1(self$1)]);
13594
+ while (self$1._cache.length < chunk.length) self$1._cache = import_buffer$10.Buffer.concat([self$1._cache, getBlock$1(self$1)]);
13582
13595
  var pad$1 = self$1._cache.slice(0, chunk.length);
13583
13596
  self$1._cache = self$1._cache.slice(chunk.length);
13584
13597
  return xor$4(chunk, pad$1);
@@ -13608,7 +13621,7 @@ var ExcelTS = (function(exports) {
13608
13621
  //#region node_modules/.pnpm/browserify-aes@1.2.0/node_modules/browserify-aes/modes/ctr.js
13609
13622
  var require_ctr = /* @__PURE__ */ __commonJSMin(((exports) => {
13610
13623
  var xor$3 = require_buffer_xor();
13611
- var Buffer$33 = require_safe_buffer$1().Buffer;
13624
+ var Buffer$32 = require_safe_buffer$1().Buffer;
13612
13625
  var incr32$1 = require_incr32();
13613
13626
  function getBlock(self$1) {
13614
13627
  var out = self$1._cipher.encryptBlockRaw(self$1._prev);
@@ -13619,7 +13632,7 @@ var ExcelTS = (function(exports) {
13619
13632
  exports.encrypt = function(self$1, chunk) {
13620
13633
  var chunkNum = Math.ceil(chunk.length / blockSize);
13621
13634
  var start = self$1._cache.length;
13622
- self$1._cache = Buffer$33.concat([self$1._cache, Buffer$33.allocUnsafe(chunkNum * blockSize)]);
13635
+ self$1._cache = Buffer$32.concat([self$1._cache, Buffer$32.allocUnsafe(chunkNum * blockSize)]);
13623
13636
  for (var i$2 = 0; i$2 < chunkNum; i$2++) {
13624
13637
  var out = getBlock(self$1);
13625
13638
  var offset = start + i$2 * blockSize;
@@ -13851,9 +13864,9 @@ var ExcelTS = (function(exports) {
13851
13864
  //#endregion
13852
13865
  //#region node_modules/.pnpm/browserify-aes@1.2.0/node_modules/browserify-aes/aes.js
13853
13866
  var require_aes = /* @__PURE__ */ __commonJSMin(((exports, module) => {
13854
- var Buffer$32 = require_safe_buffer$1().Buffer;
13867
+ var Buffer$31 = require_safe_buffer$1().Buffer;
13855
13868
  function asUInt32Array(buf) {
13856
- if (!Buffer$32.isBuffer(buf)) buf = Buffer$32.from(buf);
13869
+ if (!Buffer$31.isBuffer(buf)) buf = Buffer$31.from(buf);
13857
13870
  var len$1 = buf.length / 4 | 0;
13858
13871
  var out = new Array(len$1);
13859
13872
  for (var i$2 = 0; i$2 < len$1; i$2++) out[i$2] = buf.readUInt32BE(i$2 * 4);
@@ -14003,7 +14016,7 @@ var ExcelTS = (function(exports) {
14003
14016
  };
14004
14017
  AES.prototype.encryptBlock = function(M) {
14005
14018
  var out = this.encryptBlockRaw(M);
14006
- var buf = Buffer$32.allocUnsafe(16);
14019
+ var buf = Buffer$31.allocUnsafe(16);
14007
14020
  buf.writeUInt32BE(out[0], 0);
14008
14021
  buf.writeUInt32BE(out[1], 4);
14009
14022
  buf.writeUInt32BE(out[2], 8);
@@ -14016,7 +14029,7 @@ var ExcelTS = (function(exports) {
14016
14029
  M[1] = M[3];
14017
14030
  M[3] = m1;
14018
14031
  var out = cryptBlock(M, this._invKeySchedule, G.INV_SUB_MIX, G.INV_SBOX, this._nRounds);
14019
- var buf = Buffer$32.allocUnsafe(16);
14032
+ var buf = Buffer$31.allocUnsafe(16);
14020
14033
  buf.writeUInt32BE(out[0], 0);
14021
14034
  buf.writeUInt32BE(out[3], 4);
14022
14035
  buf.writeUInt32BE(out[2], 8);
@@ -14034,8 +14047,8 @@ var ExcelTS = (function(exports) {
14034
14047
  //#endregion
14035
14048
  //#region node_modules/.pnpm/browserify-aes@1.2.0/node_modules/browserify-aes/ghash.js
14036
14049
  var require_ghash = /* @__PURE__ */ __commonJSMin(((exports, module) => {
14037
- var Buffer$31 = require_safe_buffer$1().Buffer;
14038
- var ZEROES = Buffer$31.alloc(16, 0);
14050
+ var Buffer$30 = require_safe_buffer$1().Buffer;
14051
+ var ZEROES = Buffer$30.alloc(16, 0);
14039
14052
  function toArray$2(buf) {
14040
14053
  return [
14041
14054
  buf.readUInt32BE(0),
@@ -14045,7 +14058,7 @@ var ExcelTS = (function(exports) {
14045
14058
  ];
14046
14059
  }
14047
14060
  function fromArray(out) {
14048
- var buf = Buffer$31.allocUnsafe(16);
14061
+ var buf = Buffer$30.allocUnsafe(16);
14049
14062
  buf.writeUInt32BE(out[0] >>> 0, 0);
14050
14063
  buf.writeUInt32BE(out[1] >>> 0, 4);
14051
14064
  buf.writeUInt32BE(out[2] >>> 0, 8);
@@ -14054,8 +14067,8 @@ var ExcelTS = (function(exports) {
14054
14067
  }
14055
14068
  function GHASH$1(key$1) {
14056
14069
  this.h = key$1;
14057
- this.state = Buffer$31.alloc(16, 0);
14058
- this.cache = Buffer$31.allocUnsafe(0);
14070
+ this.state = Buffer$30.alloc(16, 0);
14071
+ this.cache = Buffer$30.allocUnsafe(0);
14059
14072
  }
14060
14073
  GHASH$1.prototype.ghash = function(block) {
14061
14074
  var i$2 = -1;
@@ -14088,7 +14101,7 @@ var ExcelTS = (function(exports) {
14088
14101
  this.state = fromArray(Zi);
14089
14102
  };
14090
14103
  GHASH$1.prototype.update = function(buf) {
14091
- this.cache = Buffer$31.concat([this.cache, buf]);
14104
+ this.cache = Buffer$30.concat([this.cache, buf]);
14092
14105
  var chunk;
14093
14106
  while (this.cache.length >= 16) {
14094
14107
  chunk = this.cache.slice(0, 16);
@@ -14097,7 +14110,7 @@ var ExcelTS = (function(exports) {
14097
14110
  }
14098
14111
  };
14099
14112
  GHASH$1.prototype.final = function(abl, bl) {
14100
- if (this.cache.length) this.ghash(Buffer$31.concat([this.cache, ZEROES], 16));
14113
+ if (this.cache.length) this.ghash(Buffer$30.concat([this.cache, ZEROES], 16));
14101
14114
  this.ghash(fromArray([
14102
14115
  0,
14103
14116
  abl,
@@ -14113,7 +14126,7 @@ var ExcelTS = (function(exports) {
14113
14126
  //#region node_modules/.pnpm/browserify-aes@1.2.0/node_modules/browserify-aes/authCipher.js
14114
14127
  var require_authCipher = /* @__PURE__ */ __commonJSMin(((exports, module) => {
14115
14128
  var aes$5 = require_aes();
14116
- var Buffer$30 = require_safe_buffer$1().Buffer;
14129
+ var Buffer$29 = require_safe_buffer$1().Buffer;
14117
14130
  var Transform$3 = require_cipher_base();
14118
14131
  var inherits$16 = require_inherits_browser();
14119
14132
  var GHASH = require_ghash();
@@ -14128,13 +14141,13 @@ var ExcelTS = (function(exports) {
14128
14141
  }
14129
14142
  function calcIv(self$1, iv, ck) {
14130
14143
  if (iv.length === 12) {
14131
- self$1._finID = Buffer$30.concat([iv, Buffer$30.from([
14144
+ self$1._finID = Buffer$29.concat([iv, Buffer$29.from([
14132
14145
  0,
14133
14146
  0,
14134
14147
  0,
14135
14148
  1
14136
14149
  ])]);
14137
- return Buffer$30.concat([iv, Buffer$30.from([
14150
+ return Buffer$29.concat([iv, Buffer$29.from([
14138
14151
  0,
14139
14152
  0,
14140
14153
  0,
@@ -14147,28 +14160,28 @@ var ExcelTS = (function(exports) {
14147
14160
  ghash.update(iv);
14148
14161
  if (toPad) {
14149
14162
  toPad = 16 - toPad;
14150
- ghash.update(Buffer$30.alloc(toPad, 0));
14163
+ ghash.update(Buffer$29.alloc(toPad, 0));
14151
14164
  }
14152
- ghash.update(Buffer$30.alloc(8, 0));
14165
+ ghash.update(Buffer$29.alloc(8, 0));
14153
14166
  var ivBits = len$1 * 8;
14154
- var tail = Buffer$30.alloc(8);
14167
+ var tail = Buffer$29.alloc(8);
14155
14168
  tail.writeUIntBE(ivBits, 0, 8);
14156
14169
  ghash.update(tail);
14157
14170
  self$1._finID = ghash.state;
14158
- var out = Buffer$30.from(self$1._finID);
14171
+ var out = Buffer$29.from(self$1._finID);
14159
14172
  incr32(out);
14160
14173
  return out;
14161
14174
  }
14162
14175
  function StreamCipher$3(mode, key$1, iv, decrypt$1) {
14163
14176
  Transform$3.call(this);
14164
- var h = Buffer$30.alloc(4, 0);
14177
+ var h = Buffer$29.alloc(4, 0);
14165
14178
  this._cipher = new aes$5.AES(key$1);
14166
14179
  var ck = this._cipher.encryptBlock(h);
14167
14180
  this._ghash = new GHASH(ck);
14168
14181
  iv = calcIv(this, iv, ck);
14169
- this._prev = Buffer$30.from(iv);
14170
- this._cache = Buffer$30.allocUnsafe(0);
14171
- this._secCache = Buffer$30.allocUnsafe(0);
14182
+ this._prev = Buffer$29.from(iv);
14183
+ this._cache = Buffer$29.allocUnsafe(0);
14184
+ this._secCache = Buffer$29.allocUnsafe(0);
14172
14185
  this._decrypt = decrypt$1;
14173
14186
  this._alen = 0;
14174
14187
  this._len = 0;
@@ -14181,7 +14194,7 @@ var ExcelTS = (function(exports) {
14181
14194
  if (!this._called && this._alen) {
14182
14195
  var rump = 16 - this._alen % 16;
14183
14196
  if (rump < 16) {
14184
- rump = Buffer$30.alloc(rump, 0);
14197
+ rump = Buffer$29.alloc(rump, 0);
14185
14198
  this._ghash.update(rump);
14186
14199
  }
14187
14200
  }
@@ -14200,7 +14213,7 @@ var ExcelTS = (function(exports) {
14200
14213
  this._cipher.scrub();
14201
14214
  };
14202
14215
  StreamCipher$3.prototype.getAuthTag = function getAuthTag() {
14203
- if (this._decrypt || !Buffer$30.isBuffer(this._authTag)) throw new Error("Attempting to get auth tag in unsupported state");
14216
+ if (this._decrypt || !Buffer$29.isBuffer(this._authTag)) throw new Error("Attempting to get auth tag in unsupported state");
14204
14217
  return this._authTag;
14205
14218
  };
14206
14219
  StreamCipher$3.prototype.setAuthTag = function setAuthTag(tag) {
@@ -14219,15 +14232,15 @@ var ExcelTS = (function(exports) {
14219
14232
  //#region node_modules/.pnpm/browserify-aes@1.2.0/node_modules/browserify-aes/streamCipher.js
14220
14233
  var require_streamCipher = /* @__PURE__ */ __commonJSMin(((exports, module) => {
14221
14234
  var aes$4 = require_aes();
14222
- var Buffer$29 = require_safe_buffer$1().Buffer;
14235
+ var Buffer$28 = require_safe_buffer$1().Buffer;
14223
14236
  var Transform$2 = require_cipher_base();
14224
14237
  var inherits$15 = require_inherits_browser();
14225
14238
  function StreamCipher$2(mode, key$1, iv, decrypt$1) {
14226
14239
  Transform$2.call(this);
14227
14240
  this._cipher = new aes$4.AES(key$1);
14228
- this._prev = Buffer$29.from(iv);
14229
- this._cache = Buffer$29.allocUnsafe(0);
14230
- this._secCache = Buffer$29.allocUnsafe(0);
14241
+ this._prev = Buffer$28.from(iv);
14242
+ this._cache = Buffer$28.allocUnsafe(0);
14243
+ this._secCache = Buffer$28.allocUnsafe(0);
14231
14244
  this._decrypt = decrypt$1;
14232
14245
  this._mode = mode;
14233
14246
  }
@@ -14244,18 +14257,18 @@ var ExcelTS = (function(exports) {
14244
14257
  //#endregion
14245
14258
  //#region node_modules/.pnpm/evp_bytestokey@1.0.3/node_modules/evp_bytestokey/index.js
14246
14259
  var require_evp_bytestokey = /* @__PURE__ */ __commonJSMin(((exports, module) => {
14247
- var Buffer$28 = require_safe_buffer$1().Buffer;
14260
+ var Buffer$27 = require_safe_buffer$1().Buffer;
14248
14261
  var MD5 = require_md5$1();
14249
14262
  function EVP_BytesToKey(password, salt, keyBits, ivLen) {
14250
- if (!Buffer$28.isBuffer(password)) password = Buffer$28.from(password, "binary");
14263
+ if (!Buffer$27.isBuffer(password)) password = Buffer$27.from(password, "binary");
14251
14264
  if (salt) {
14252
- if (!Buffer$28.isBuffer(salt)) salt = Buffer$28.from(salt, "binary");
14265
+ if (!Buffer$27.isBuffer(salt)) salt = Buffer$27.from(salt, "binary");
14253
14266
  if (salt.length !== 8) throw new RangeError("salt should be Buffer with 8 byte length");
14254
14267
  }
14255
14268
  var keyLen = keyBits / 8;
14256
- var key$1 = Buffer$28.alloc(keyLen);
14257
- var iv = Buffer$28.alloc(ivLen || 0);
14258
- var tmp = Buffer$28.alloc(0);
14269
+ var key$1 = Buffer$27.alloc(keyLen);
14270
+ var iv = Buffer$27.alloc(ivLen || 0);
14271
+ var tmp = Buffer$27.alloc(0);
14259
14272
  while (keyLen > 0 || ivLen > 0) {
14260
14273
  var hash$4 = new MD5();
14261
14274
  hash$4.update(tmp);
@@ -14290,7 +14303,7 @@ var ExcelTS = (function(exports) {
14290
14303
  var require_encrypter = /* @__PURE__ */ __commonJSMin(((exports) => {
14291
14304
  var MODES$1 = require_modes$1();
14292
14305
  var AuthCipher$1 = require_authCipher();
14293
- var Buffer$27 = require_safe_buffer$1().Buffer;
14306
+ var Buffer$26 = require_safe_buffer$1().Buffer;
14294
14307
  var StreamCipher$1 = require_streamCipher();
14295
14308
  var Transform$1 = require_cipher_base();
14296
14309
  var aes$3 = require_aes();
@@ -14300,7 +14313,7 @@ var ExcelTS = (function(exports) {
14300
14313
  Transform$1.call(this);
14301
14314
  this._cache = new Splitter$1();
14302
14315
  this._cipher = new aes$3.AES(key$1);
14303
- this._prev = Buffer$27.from(iv);
14316
+ this._prev = Buffer$26.from(iv);
14304
14317
  this._mode = mode;
14305
14318
  this._autopadding = true;
14306
14319
  }
@@ -14314,9 +14327,9 @@ var ExcelTS = (function(exports) {
14314
14327
  thing = this._mode.encrypt(this, chunk);
14315
14328
  out.push(thing);
14316
14329
  }
14317
- return Buffer$27.concat(out);
14330
+ return Buffer$26.concat(out);
14318
14331
  };
14319
- var PADDING = Buffer$27.alloc(16, 16);
14332
+ var PADDING = Buffer$26.alloc(16, 16);
14320
14333
  Cipher.prototype._final = function() {
14321
14334
  var chunk = this._cache.flush();
14322
14335
  if (this._autopadding) {
@@ -14334,10 +14347,10 @@ var ExcelTS = (function(exports) {
14334
14347
  return this;
14335
14348
  };
14336
14349
  function Splitter$1() {
14337
- this.cache = Buffer$27.allocUnsafe(0);
14350
+ this.cache = Buffer$26.allocUnsafe(0);
14338
14351
  }
14339
14352
  Splitter$1.prototype.add = function(data) {
14340
- this.cache = Buffer$27.concat([this.cache, data]);
14353
+ this.cache = Buffer$26.concat([this.cache, data]);
14341
14354
  };
14342
14355
  Splitter$1.prototype.get = function() {
14343
14356
  if (this.cache.length > 15) {
@@ -14349,17 +14362,17 @@ var ExcelTS = (function(exports) {
14349
14362
  };
14350
14363
  Splitter$1.prototype.flush = function() {
14351
14364
  var len$1 = 16 - this.cache.length;
14352
- var padBuff = Buffer$27.allocUnsafe(len$1);
14365
+ var padBuff = Buffer$26.allocUnsafe(len$1);
14353
14366
  var i$2 = -1;
14354
14367
  while (++i$2 < len$1) padBuff.writeUInt8(len$1, i$2);
14355
- return Buffer$27.concat([this.cache, padBuff]);
14368
+ return Buffer$26.concat([this.cache, padBuff]);
14356
14369
  };
14357
14370
  function createCipheriv$1(suite, password, iv) {
14358
14371
  var config$1 = MODES$1[suite.toLowerCase()];
14359
14372
  if (!config$1) throw new TypeError("invalid suite type");
14360
- if (typeof password === "string") password = Buffer$27.from(password);
14373
+ if (typeof password === "string") password = Buffer$26.from(password);
14361
14374
  if (password.length !== config$1.key / 8) throw new TypeError("invalid key length " + password.length);
14362
- if (typeof iv === "string") iv = Buffer$27.from(iv);
14375
+ if (typeof iv === "string") iv = Buffer$26.from(iv);
14363
14376
  if (config$1.mode !== "GCM" && iv.length !== config$1.iv) throw new TypeError("invalid iv length " + iv.length);
14364
14377
  if (config$1.type === "stream") return new StreamCipher$1(config$1.module, password, iv);
14365
14378
  else if (config$1.type === "auth") return new AuthCipher$1(config$1.module, password, iv);
@@ -14379,7 +14392,7 @@ var ExcelTS = (function(exports) {
14379
14392
  //#region node_modules/.pnpm/browserify-aes@1.2.0/node_modules/browserify-aes/decrypter.js
14380
14393
  var require_decrypter = /* @__PURE__ */ __commonJSMin(((exports) => {
14381
14394
  var AuthCipher = require_authCipher();
14382
- var Buffer$26 = require_safe_buffer$1().Buffer;
14395
+ var Buffer$25 = require_safe_buffer$1().Buffer;
14383
14396
  var MODES = require_modes$1();
14384
14397
  var StreamCipher = require_streamCipher();
14385
14398
  var Transform = require_cipher_base();
@@ -14391,7 +14404,7 @@ var ExcelTS = (function(exports) {
14391
14404
  this._cache = new Splitter();
14392
14405
  this._last = void 0;
14393
14406
  this._cipher = new aes$2.AES(key$1);
14394
- this._prev = Buffer$26.from(iv);
14407
+ this._prev = Buffer$25.from(iv);
14395
14408
  this._mode = mode;
14396
14409
  this._autopadding = true;
14397
14410
  }
@@ -14405,7 +14418,7 @@ var ExcelTS = (function(exports) {
14405
14418
  thing = this._mode.decrypt(this, chunk);
14406
14419
  out.push(thing);
14407
14420
  }
14408
- return Buffer$26.concat(out);
14421
+ return Buffer$25.concat(out);
14409
14422
  };
14410
14423
  Decipher.prototype._final = function() {
14411
14424
  var chunk = this._cache.flush();
@@ -14417,10 +14430,10 @@ var ExcelTS = (function(exports) {
14417
14430
  return this;
14418
14431
  };
14419
14432
  function Splitter() {
14420
- this.cache = Buffer$26.allocUnsafe(0);
14433
+ this.cache = Buffer$25.allocUnsafe(0);
14421
14434
  }
14422
14435
  Splitter.prototype.add = function(data) {
14423
- this.cache = Buffer$26.concat([this.cache, data]);
14436
+ this.cache = Buffer$25.concat([this.cache, data]);
14424
14437
  };
14425
14438
  Splitter.prototype.get = function(autoPadding) {
14426
14439
  var out;
@@ -14451,9 +14464,9 @@ var ExcelTS = (function(exports) {
14451
14464
  function createDecipheriv$1(suite, password, iv) {
14452
14465
  var config$1 = MODES[suite.toLowerCase()];
14453
14466
  if (!config$1) throw new TypeError("invalid suite type");
14454
- if (typeof iv === "string") iv = Buffer$26.from(iv);
14467
+ if (typeof iv === "string") iv = Buffer$25.from(iv);
14455
14468
  if (config$1.mode !== "GCM" && iv.length !== config$1.iv) throw new TypeError("invalid iv length " + iv.length);
14456
- if (typeof password === "string") password = Buffer$26.from(password);
14469
+ if (typeof password === "string") password = Buffer$25.from(password);
14457
14470
  if (password.length !== config$1.key / 8) throw new TypeError("invalid key length " + password.length);
14458
14471
  if (config$1.type === "stream") return new StreamCipher(config$1.module, password, iv, true);
14459
14472
  else if (config$1.type === "auth") return new AuthCipher(config$1.module, password, iv, true);
@@ -14612,10 +14625,10 @@ var ExcelTS = (function(exports) {
14612
14625
  else exports$1.BN = BN$18;
14613
14626
  BN$18.BN = BN$18;
14614
14627
  BN$18.wordSize = 26;
14615
- var Buffer$70;
14628
+ var Buffer$69;
14616
14629
  try {
14617
- if (typeof window !== "undefined" && typeof window.Buffer !== "undefined") Buffer$70 = window.Buffer;
14618
- else Buffer$70 = require_buffer$1().Buffer;
14630
+ if (typeof window !== "undefined" && typeof window.Buffer !== "undefined") Buffer$69 = window.Buffer;
14631
+ else Buffer$69 = require_buffer$1().Buffer;
14619
14632
  } catch (e) {}
14620
14633
  BN$18.isBN = function isBN(num) {
14621
14634
  if (num instanceof BN$18) return true;
@@ -14967,8 +14980,8 @@ var ExcelTS = (function(exports) {
14967
14980
  return this.toString(16);
14968
14981
  };
14969
14982
  BN$18.prototype.toBuffer = function toBuffer$8(endian, length) {
14970
- assert$22(typeof Buffer$70 !== "undefined");
14971
- return this.toArrayLike(Buffer$70, endian, length);
14983
+ assert$22(typeof Buffer$69 !== "undefined");
14984
+ return this.toArrayLike(Buffer$69, endian, length);
14972
14985
  };
14973
14986
  BN$18.prototype.toArray = function toArray$3(endian, length) {
14974
14987
  return this.toArrayLike(Array, endian, length);
@@ -17288,7 +17301,7 @@ var ExcelTS = (function(exports) {
17288
17301
  //#endregion
17289
17302
  //#region node_modules/.pnpm/diffie-hellman@5.0.3/node_modules/diffie-hellman/lib/dh.js
17290
17303
  var require_dh = /* @__PURE__ */ __commonJSMin(((exports, module) => {
17291
- var import_buffer$10 = require_buffer$1();
17304
+ var import_buffer$9 = require_buffer$1();
17292
17305
  var BN$16 = require_bn$1();
17293
17306
  var millerRabin = new (require_mr())();
17294
17307
  var TWENTYFOUR = new BN$16(24);
@@ -17301,13 +17314,13 @@ var ExcelTS = (function(exports) {
17301
17314
  module.exports = DH$1;
17302
17315
  function setPublicKey(pub, enc) {
17303
17316
  enc = enc || "utf8";
17304
- if (!import_buffer$10.Buffer.isBuffer(pub)) pub = new import_buffer$10.Buffer(pub, enc);
17317
+ if (!import_buffer$9.Buffer.isBuffer(pub)) pub = new import_buffer$9.Buffer(pub, enc);
17305
17318
  this._pub = new BN$16(pub);
17306
17319
  return this;
17307
17320
  }
17308
17321
  function setPrivateKey(priv, enc) {
17309
17322
  enc = enc || "utf8";
17310
- if (!import_buffer$10.Buffer.isBuffer(priv)) priv = new import_buffer$10.Buffer(priv, enc);
17323
+ if (!import_buffer$9.Buffer.isBuffer(priv)) priv = new import_buffer$9.Buffer(priv, enc);
17311
17324
  this._priv = new BN$16(priv);
17312
17325
  return this;
17313
17326
  }
@@ -17367,12 +17380,12 @@ var ExcelTS = (function(exports) {
17367
17380
  DH$1.prototype.computeSecret = function(other) {
17368
17381
  other = new BN$16(other);
17369
17382
  other = other.toRed(this._prime);
17370
- var out = new import_buffer$10.Buffer(other.redPow(this._priv).fromRed().toArray());
17383
+ var out = new import_buffer$9.Buffer(other.redPow(this._priv).fromRed().toArray());
17371
17384
  var prime = this.getPrime();
17372
17385
  if (out.length < prime.length) {
17373
- var front = new import_buffer$10.Buffer(prime.length - out.length);
17386
+ var front = new import_buffer$9.Buffer(prime.length - out.length);
17374
17387
  front.fill(0);
17375
- out = import_buffer$10.Buffer.concat([front, out]);
17388
+ out = import_buffer$9.Buffer.concat([front, out]);
17376
17389
  }
17377
17390
  return out;
17378
17391
  };
@@ -17390,13 +17403,13 @@ var ExcelTS = (function(exports) {
17390
17403
  };
17391
17404
  DH$1.prototype.setGenerator = function(gen, enc) {
17392
17405
  enc = enc || "utf8";
17393
- if (!import_buffer$10.Buffer.isBuffer(gen)) gen = new import_buffer$10.Buffer(gen, enc);
17406
+ if (!import_buffer$9.Buffer.isBuffer(gen)) gen = new import_buffer$9.Buffer(gen, enc);
17394
17407
  this.__gen = gen;
17395
17408
  this._gen = new BN$16(gen);
17396
17409
  return this;
17397
17410
  };
17398
17411
  function formatReturnValue$1(bn$1, enc) {
17399
- var buf = new import_buffer$10.Buffer(bn$1.toArray());
17412
+ var buf = new import_buffer$9.Buffer(bn$1.toArray());
17400
17413
  if (!enc) return buf;
17401
17414
  else return buf.toString(enc);
17402
17415
  }
@@ -17405,12 +17418,12 @@ var ExcelTS = (function(exports) {
17405
17418
  //#endregion
17406
17419
  //#region node_modules/.pnpm/diffie-hellman@5.0.3/node_modules/diffie-hellman/browser.js
17407
17420
  var require_browser$4 = /* @__PURE__ */ __commonJSMin(((exports) => {
17408
- var import_buffer$9 = require_buffer$1();
17421
+ var import_buffer$8 = require_buffer$1();
17409
17422
  var generatePrime = require_generatePrime();
17410
17423
  var primes = require_primes();
17411
17424
  var DH = require_dh();
17412
17425
  function getDiffieHellman(mod) {
17413
- return new DH(new import_buffer$9.Buffer(primes[mod].prime, "hex"), new import_buffer$9.Buffer(primes[mod].gen, "hex"));
17426
+ return new DH(new import_buffer$8.Buffer(primes[mod].prime, "hex"), new import_buffer$8.Buffer(primes[mod].gen, "hex"));
17414
17427
  }
17415
17428
  var ENCODINGS = {
17416
17429
  "binary": true,
@@ -17418,13 +17431,13 @@ var ExcelTS = (function(exports) {
17418
17431
  "base64": true
17419
17432
  };
17420
17433
  function createDiffieHellman(prime, enc, generator, genc) {
17421
- if (import_buffer$9.Buffer.isBuffer(enc) || ENCODINGS[enc] === void 0) return createDiffieHellman(prime, "binary", enc, generator);
17434
+ if (import_buffer$8.Buffer.isBuffer(enc) || ENCODINGS[enc] === void 0) return createDiffieHellman(prime, "binary", enc, generator);
17422
17435
  enc = enc || "binary";
17423
17436
  genc = genc || "binary";
17424
- generator = generator || new import_buffer$9.Buffer([2]);
17425
- if (!import_buffer$9.Buffer.isBuffer(generator)) generator = new import_buffer$9.Buffer(generator, genc);
17437
+ generator = generator || new import_buffer$8.Buffer([2]);
17438
+ if (!import_buffer$8.Buffer.isBuffer(generator)) generator = new import_buffer$8.Buffer(generator, genc);
17426
17439
  if (typeof prime === "number") return new DH(generatePrime(prime, generator), generator, true);
17427
- if (!import_buffer$9.Buffer.isBuffer(prime)) prime = new import_buffer$9.Buffer(prime, enc);
17440
+ if (!import_buffer$8.Buffer.isBuffer(prime)) prime = new import_buffer$8.Buffer(prime, enc);
17428
17441
  return new DH(prime, generator, true);
17429
17442
  }
17430
17443
  exports.DiffieHellmanGroup = exports.createDiffieHellmanGroup = exports.getDiffieHellman = getDiffieHellman;
@@ -17464,10 +17477,10 @@ var ExcelTS = (function(exports) {
17464
17477
  else exports$1.BN = BN$18;
17465
17478
  BN$18.BN = BN$18;
17466
17479
  BN$18.wordSize = 26;
17467
- var Buffer$70;
17480
+ var Buffer$69;
17468
17481
  try {
17469
- if (typeof window !== "undefined" && typeof window.Buffer !== "undefined") Buffer$70 = window.Buffer;
17470
- else Buffer$70 = require_buffer$1().Buffer;
17482
+ if (typeof window !== "undefined" && typeof window.Buffer !== "undefined") Buffer$69 = window.Buffer;
17483
+ else Buffer$69 = require_buffer$1().Buffer;
17471
17484
  } catch (e) {}
17472
17485
  BN$18.isBN = function isBN(num) {
17473
17486
  if (num instanceof BN$18) return true;
@@ -17837,8 +17850,8 @@ var ExcelTS = (function(exports) {
17837
17850
  BN$18.prototype.toJSON = function toJSON() {
17838
17851
  return this.toString(16, 2);
17839
17852
  };
17840
- if (Buffer$70) BN$18.prototype.toBuffer = function toBuffer$8(endian, length) {
17841
- return this.toArrayLike(Buffer$70, endian, length);
17853
+ if (Buffer$69) BN$18.prototype.toBuffer = function toBuffer$8(endian, length) {
17854
+ return this.toArrayLike(Buffer$69, endian, length);
17842
17855
  };
17843
17856
  BN$18.prototype.toArray = function toArray$3(endian, length) {
17844
17857
  return this.toArrayLike(Array, endian, length);
@@ -19978,7 +19991,7 @@ var ExcelTS = (function(exports) {
19978
19991
  var require_browserify_rsa = /* @__PURE__ */ __commonJSMin(((exports, module) => {
19979
19992
  var BN$15 = require_bn();
19980
19993
  var randomBytes$1 = require_browser$11();
19981
- var Buffer$23 = require_safe_buffer$1().Buffer;
19994
+ var Buffer$22 = require_safe_buffer$1().Buffer;
19982
19995
  function getr(priv) {
19983
19996
  var len$1 = priv.modulus.byteLength();
19984
19997
  var r$2;
@@ -20006,7 +20019,7 @@ var ExcelTS = (function(exports) {
20006
20019
  var m1 = c1.redPow(priv.exponent1).fromRed();
20007
20020
  var m2 = c2.redPow(priv.exponent2).fromRed();
20008
20021
  var h = m1.isub(m2).imul(qinv).umod(p$1).imul(q);
20009
- return m2.iadd(h).imul(blinds.unblinder).umod(priv.modulus).toArrayLike(Buffer$23, "be", len$1);
20022
+ return m2.iadd(h).imul(blinds.unblinder).umod(priv.modulus).toArrayLike(Buffer$22, "be", len$1);
20010
20023
  }
20011
20024
  crt$3.getr = getr;
20012
20025
  module.exports = crt$3;
@@ -24119,10 +24132,10 @@ var ExcelTS = (function(exports) {
24119
24132
  var require_buffer = /* @__PURE__ */ __commonJSMin(((exports) => {
24120
24133
  var inherits$6 = require_inherits_browser();
24121
24134
  var Reporter$1 = require_base().Reporter;
24122
- var Buffer$22 = require_buffer$1().Buffer;
24135
+ var Buffer$21 = require_buffer$1().Buffer;
24123
24136
  function DecoderBuffer$1(base$3, options) {
24124
24137
  Reporter$1.call(this, options);
24125
- if (!Buffer$22.isBuffer(base$3)) {
24138
+ if (!Buffer$21.isBuffer(base$3)) {
24126
24139
  this.error("Input not Buffer");
24127
24140
  return;
24128
24141
  }
@@ -24179,15 +24192,15 @@ var ExcelTS = (function(exports) {
24179
24192
  this.length = 1;
24180
24193
  } else if (typeof value === "string") {
24181
24194
  this.value = value;
24182
- this.length = Buffer$22.byteLength(value);
24183
- } else if (Buffer$22.isBuffer(value)) {
24195
+ this.length = Buffer$21.byteLength(value);
24196
+ } else if (Buffer$21.isBuffer(value)) {
24184
24197
  this.value = value;
24185
24198
  this.length = value.length;
24186
24199
  } else return reporter.error("Unsupported type: " + typeof value);
24187
24200
  }
24188
24201
  exports.EncoderBuffer = EncoderBuffer$1;
24189
24202
  EncoderBuffer$1.prototype.join = function join(out, offset) {
24190
- if (!out) out = new Buffer$22(this.length);
24203
+ if (!out) out = new Buffer$21(this.length);
24191
24204
  if (!offset) offset = 0;
24192
24205
  if (this.length === 0) return out;
24193
24206
  if (Array.isArray(this.value)) this.value.forEach(function(item) {
@@ -24197,7 +24210,7 @@ var ExcelTS = (function(exports) {
24197
24210
  else {
24198
24211
  if (typeof this.value === "number") out[offset] = this.value;
24199
24212
  else if (typeof this.value === "string") out.write(this.value, offset);
24200
- else if (Buffer$22.isBuffer(this.value)) this.value.copy(out, offset);
24213
+ else if (Buffer$21.isBuffer(this.value)) this.value.copy(out, offset);
24201
24214
  offset += this.length;
24202
24215
  }
24203
24216
  return out;
@@ -24931,7 +24944,7 @@ var ExcelTS = (function(exports) {
24931
24944
  //#region node_modules/.pnpm/asn1.js@4.10.1/node_modules/asn1.js/lib/asn1/decoders/pem.js
24932
24945
  var require_pem$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
24933
24946
  var inherits$4 = require_inherits_browser();
24934
- var Buffer$21 = require_buffer$1().Buffer;
24947
+ var Buffer$20 = require_buffer$1().Buffer;
24935
24948
  var DERDecoder = require_der$1();
24936
24949
  function PEMDecoder(entity) {
24937
24950
  DERDecoder.call(this, entity);
@@ -24961,7 +24974,7 @@ var ExcelTS = (function(exports) {
24961
24974
  if (start === -1 || end === -1) throw new Error("PEM section not found for: " + label);
24962
24975
  var base64$1 = lines.slice(start + 1, end).join("");
24963
24976
  base64$1.replace(/[^a-z0-9\+\/=]+/gi, "");
24964
- var input = new Buffer$21(base64$1, "base64");
24977
+ var input = new Buffer$20(base64$1, "base64");
24965
24978
  return DERDecoder.prototype.decode.call(this, input, options);
24966
24979
  };
24967
24980
  }));
@@ -24978,7 +24991,7 @@ var ExcelTS = (function(exports) {
24978
24991
  //#region node_modules/.pnpm/asn1.js@4.10.1/node_modules/asn1.js/lib/asn1/encoders/der.js
24979
24992
  var require_der = /* @__PURE__ */ __commonJSMin(((exports, module) => {
24980
24993
  var inherits$3 = require_inherits_browser();
24981
- var Buffer$20 = require_buffer$1().Buffer;
24994
+ var Buffer$19 = require_buffer$1().Buffer;
24982
24995
  var asn1$3 = require_asn1$1();
24983
24996
  var base = asn1$3.base;
24984
24997
  var der = asn1$3.constants.der;
@@ -25000,14 +25013,14 @@ var ExcelTS = (function(exports) {
25000
25013
  DERNode.prototype._encodeComposite = function encodeComposite(tag, primitive, cls, content) {
25001
25014
  var encodedTag = encodeTag(tag, primitive, cls, this.reporter);
25002
25015
  if (content.length < 128) {
25003
- var header = new Buffer$20(2);
25016
+ var header = new Buffer$19(2);
25004
25017
  header[0] = encodedTag;
25005
25018
  header[1] = content.length;
25006
25019
  return this._createEncoderBuffer([header, content]);
25007
25020
  }
25008
25021
  var lenOctets = 1;
25009
25022
  for (var i$2 = content.length; i$2 >= 256; i$2 >>= 8) lenOctets++;
25010
- var header = new Buffer$20(2 + lenOctets);
25023
+ var header = new Buffer$19(2 + lenOctets);
25011
25024
  header[0] = encodedTag;
25012
25025
  header[1] = 128 | lenOctets;
25013
25026
  for (var i$2 = 1 + lenOctets, j = content.length; j > 0; i$2--, j >>= 8) header[i$2] = j & 255;
@@ -25016,7 +25029,7 @@ var ExcelTS = (function(exports) {
25016
25029
  DERNode.prototype._encodeStr = function encodeStr(str, tag) {
25017
25030
  if (tag === "bitstr") return this._createEncoderBuffer([str.unused | 0, str.data]);
25018
25031
  else if (tag === "bmpstr") {
25019
- var buf = new Buffer$20(str.length * 2);
25032
+ var buf = new Buffer$19(str.length * 2);
25020
25033
  for (var i$2 = 0; i$2 < str.length; i$2++) buf.writeUInt16BE(str.charCodeAt(i$2), i$2 * 2);
25021
25034
  return this._createEncoderBuffer(buf);
25022
25035
  } else if (tag === "numstr") {
@@ -25049,7 +25062,7 @@ var ExcelTS = (function(exports) {
25049
25062
  var ident = id[i$2];
25050
25063
  for (size++; ident >= 128; ident >>= 7) size++;
25051
25064
  }
25052
- var objid = new Buffer$20(size);
25065
+ var objid = new Buffer$19(size);
25053
25066
  var offset = objid.length - 1;
25054
25067
  for (var i$2 = id.length - 1; i$2 >= 0; i$2--) {
25055
25068
  var ident = id[i$2];
@@ -25095,15 +25108,15 @@ var ExcelTS = (function(exports) {
25095
25108
  if (!values.hasOwnProperty(num)) return this.reporter.error("Values map doesn't contain: " + JSON.stringify(num));
25096
25109
  num = values[num];
25097
25110
  }
25098
- if (typeof num !== "number" && !Buffer$20.isBuffer(num)) {
25111
+ if (typeof num !== "number" && !Buffer$19.isBuffer(num)) {
25099
25112
  var numArray = num.toArray();
25100
25113
  if (!num.sign && numArray[0] & 128) numArray.unshift(0);
25101
- num = new Buffer$20(numArray);
25114
+ num = new Buffer$19(numArray);
25102
25115
  }
25103
- if (Buffer$20.isBuffer(num)) {
25116
+ if (Buffer$19.isBuffer(num)) {
25104
25117
  var size = num.length;
25105
25118
  if (num.length === 0) size++;
25106
- var out = new Buffer$20(size);
25119
+ var out = new Buffer$19(size);
25107
25120
  num.copy(out);
25108
25121
  if (num.length === 0) out[0] = 0;
25109
25122
  return this._createEncoderBuffer(out);
@@ -25118,7 +25131,7 @@ var ExcelTS = (function(exports) {
25118
25131
  num >>= 8;
25119
25132
  }
25120
25133
  if (out[0] & 128) out.unshift(0);
25121
- return this._createEncoderBuffer(new Buffer$20(out));
25134
+ return this._createEncoderBuffer(new Buffer$19(out));
25122
25135
  };
25123
25136
  DERNode.prototype._encodeBool = function encodeBool(value) {
25124
25137
  return this._createEncoderBuffer(value ? 255 : 0);
@@ -25308,24 +25321,24 @@ var ExcelTS = (function(exports) {
25308
25321
  var fullRegex = /^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m;
25309
25322
  var evp = require_evp_bytestokey();
25310
25323
  var ciphers$1 = require_browser$6();
25311
- var Buffer$19 = require_safe_buffer$1().Buffer;
25324
+ var Buffer$18 = require_safe_buffer$1().Buffer;
25312
25325
  module.exports = function(okey, password) {
25313
25326
  var key$1 = okey.toString();
25314
25327
  var match = key$1.match(findProc);
25315
25328
  var decrypted;
25316
25329
  if (!match) {
25317
25330
  var match2 = key$1.match(fullRegex);
25318
- decrypted = Buffer$19.from(match2[2].replace(/[\r\n]/g, ""), "base64");
25331
+ decrypted = Buffer$18.from(match2[2].replace(/[\r\n]/g, ""), "base64");
25319
25332
  } else {
25320
25333
  var suite = "aes" + match[1];
25321
- var iv = Buffer$19.from(match[2], "hex");
25322
- var cipherText = Buffer$19.from(match[3].replace(/[\r\n]/g, ""), "base64");
25334
+ var iv = Buffer$18.from(match[2], "hex");
25335
+ var cipherText = Buffer$18.from(match[3].replace(/[\r\n]/g, ""), "base64");
25323
25336
  var cipherKey = evp(password, iv.slice(0, 8), parseInt(match[1], 10)).key;
25324
25337
  var out = [];
25325
25338
  var cipher = ciphers$1.createDecipheriv(suite, cipherKey, iv);
25326
25339
  out.push(cipher.update(cipherText));
25327
25340
  out.push(cipher["final"]());
25328
- decrypted = Buffer$19.concat(out);
25341
+ decrypted = Buffer$18.concat(out);
25329
25342
  }
25330
25343
  return {
25331
25344
  tag: key$1.match(startRegex)[1],
@@ -25342,7 +25355,7 @@ var ExcelTS = (function(exports) {
25342
25355
  var fixProc = require_fixProc();
25343
25356
  var ciphers = require_browser$6();
25344
25357
  var pbkdf2Sync = require_browser$7().pbkdf2Sync;
25345
- var Buffer$18 = require_safe_buffer$1().Buffer;
25358
+ var Buffer$17 = require_safe_buffer$1().Buffer;
25346
25359
  function decrypt(data, password) {
25347
25360
  var salt = data.algorithm.decrypt.kde.kdeparams.salt;
25348
25361
  var iters = parseInt(data.algorithm.decrypt.kde.kdeparams.iters.toString(), 10);
@@ -25354,15 +25367,15 @@ var ExcelTS = (function(exports) {
25354
25367
  var out = [];
25355
25368
  out.push(cipher.update(cipherText));
25356
25369
  out.push(cipher["final"]());
25357
- return Buffer$18.concat(out);
25370
+ return Buffer$17.concat(out);
25358
25371
  }
25359
25372
  function parseKeys$4(buffer$2) {
25360
25373
  var password;
25361
- if (typeof buffer$2 === "object" && !Buffer$18.isBuffer(buffer$2)) {
25374
+ if (typeof buffer$2 === "object" && !Buffer$17.isBuffer(buffer$2)) {
25362
25375
  password = buffer$2.passphrase;
25363
25376
  buffer$2 = buffer$2.key;
25364
25377
  }
25365
- if (typeof buffer$2 === "string") buffer$2 = Buffer$18.from(buffer$2);
25378
+ if (typeof buffer$2 === "string") buffer$2 = Buffer$17.from(buffer$2);
25366
25379
  var stripped = fixProc(buffer$2, password);
25367
25380
  var type = stripped.tag;
25368
25381
  var data = stripped.data;
@@ -25443,7 +25456,7 @@ var ExcelTS = (function(exports) {
25443
25456
  //#endregion
25444
25457
  //#region node_modules/.pnpm/browserify-sign@4.2.5/node_modules/browserify-sign/browser/sign.js
25445
25458
  var require_sign = /* @__PURE__ */ __commonJSMin(((exports, module) => {
25446
- var Buffer$17 = require_safe_buffer$1().Buffer;
25459
+ var Buffer$16 = require_safe_buffer$1().Buffer;
25447
25460
  var createHmac = require_browser$8();
25448
25461
  var crt$2 = require_browserify_rsa();
25449
25462
  var EC$1 = require_elliptic().ec;
@@ -25462,7 +25475,7 @@ var ExcelTS = (function(exports) {
25462
25475
  }
25463
25476
  if (signType !== "rsa" && signType !== "ecdsa/rsa") throw new Error("wrong private key type");
25464
25477
  if (key$1.padding !== void 0 && key$1.padding !== RSA_PKCS1_PADDING) throw new Error("illegal or unsupported padding mode");
25465
- hash$4 = Buffer$17.concat([tag, hash$4]);
25478
+ hash$4 = Buffer$16.concat([tag, hash$4]);
25466
25479
  var len$1 = priv.modulus.byteLength();
25467
25480
  var pad$1 = [0, 1];
25468
25481
  while (hash$4.length + pad$1.length + 1 < len$1) pad$1.push(255);
@@ -25475,7 +25488,7 @@ var ExcelTS = (function(exports) {
25475
25488
  var curveId = curves$1[priv.curve.join(".")];
25476
25489
  if (!curveId) throw new Error("unknown curve " + priv.curve.join("."));
25477
25490
  var out = new EC$1(curveId).keyFromPrivate(priv.privateKey).sign(hash$4);
25478
- return Buffer$17.from(out.toDER());
25491
+ return Buffer$16.from(out.toDER());
25479
25492
  }
25480
25493
  function dsaSign(hash$4, priv, algo) {
25481
25494
  var x$1 = priv.params.priv_key;
@@ -25510,22 +25523,22 @@ var ExcelTS = (function(exports) {
25510
25523
  r$2.length
25511
25524
  ];
25512
25525
  res = res.concat(r$2, [2, s$1.length], s$1);
25513
- return Buffer$17.from(res);
25526
+ return Buffer$16.from(res);
25514
25527
  }
25515
25528
  function getKey(x$1, q, hash$4, algo) {
25516
- x$1 = Buffer$17.from(x$1.toArray());
25529
+ x$1 = Buffer$16.from(x$1.toArray());
25517
25530
  if (x$1.length < q.byteLength()) {
25518
- var zeros = Buffer$17.alloc(q.byteLength() - x$1.length);
25519
- x$1 = Buffer$17.concat([zeros, x$1]);
25531
+ var zeros = Buffer$16.alloc(q.byteLength() - x$1.length);
25532
+ x$1 = Buffer$16.concat([zeros, x$1]);
25520
25533
  }
25521
25534
  var hlen = hash$4.length;
25522
25535
  var hbits = bits2octets(hash$4, q);
25523
- var v$2 = Buffer$17.alloc(hlen);
25536
+ var v$2 = Buffer$16.alloc(hlen);
25524
25537
  v$2.fill(1);
25525
- var k = Buffer$17.alloc(hlen);
25526
- k = createHmac(algo, k).update(v$2).update(Buffer$17.from([0])).update(x$1).update(hbits).digest();
25538
+ var k = Buffer$16.alloc(hlen);
25539
+ k = createHmac(algo, k).update(v$2).update(Buffer$16.from([0])).update(x$1).update(hbits).digest();
25527
25540
  v$2 = createHmac(algo, k).update(v$2).digest();
25528
- k = createHmac(algo, k).update(v$2).update(Buffer$17.from([1])).update(x$1).update(hbits).digest();
25541
+ k = createHmac(algo, k).update(v$2).update(Buffer$16.from([1])).update(x$1).update(hbits).digest();
25529
25542
  v$2 = createHmac(algo, k).update(v$2).digest();
25530
25543
  return {
25531
25544
  k,
@@ -25541,10 +25554,10 @@ var ExcelTS = (function(exports) {
25541
25554
  function bits2octets(bits$1, q) {
25542
25555
  bits$1 = bits2int(bits$1, q);
25543
25556
  bits$1 = bits$1.mod(q);
25544
- var out = Buffer$17.from(bits$1.toArray());
25557
+ var out = Buffer$16.from(bits$1.toArray());
25545
25558
  if (out.length < q.byteLength()) {
25546
- var zeros = Buffer$17.alloc(q.byteLength() - out.length);
25547
- out = Buffer$17.concat([zeros, out]);
25559
+ var zeros = Buffer$16.alloc(q.byteLength() - out.length);
25560
+ out = Buffer$16.concat([zeros, out]);
25548
25561
  }
25549
25562
  return out;
25550
25563
  }
@@ -25552,13 +25565,13 @@ var ExcelTS = (function(exports) {
25552
25565
  var t;
25553
25566
  var k;
25554
25567
  do {
25555
- t = Buffer$17.alloc(0);
25568
+ t = Buffer$16.alloc(0);
25556
25569
  while (t.length * 8 < q.bitLength()) {
25557
25570
  kv.v = createHmac(algo, kv.k).update(kv.v).digest();
25558
- t = Buffer$17.concat([t, kv.v]);
25571
+ t = Buffer$16.concat([t, kv.v]);
25559
25572
  }
25560
25573
  k = bits2int(t, q);
25561
- kv.k = createHmac(algo, kv.k).update(kv.v).update(Buffer$17.from([0])).digest();
25574
+ kv.k = createHmac(algo, kv.k).update(kv.v).update(Buffer$16.from([0])).digest();
25562
25575
  kv.v = createHmac(algo, kv.k).update(kv.v).digest();
25563
25576
  } while (k.cmp(q) !== -1);
25564
25577
  return k;
@@ -25574,7 +25587,7 @@ var ExcelTS = (function(exports) {
25574
25587
  //#endregion
25575
25588
  //#region node_modules/.pnpm/browserify-sign@4.2.5/node_modules/browserify-sign/browser/verify.js
25576
25589
  var require_verify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
25577
- var Buffer$16 = require_safe_buffer$1().Buffer;
25590
+ var Buffer$15 = require_safe_buffer$1().Buffer;
25578
25591
  var BN$4 = require_bn();
25579
25592
  var EC = require_elliptic().ec;
25580
25593
  var parseKeys$2 = require_parse_asn1();
@@ -25589,7 +25602,7 @@ var ExcelTS = (function(exports) {
25589
25602
  return dsaVerify(sig, hash$4, pub);
25590
25603
  }
25591
25604
  if (signType !== "rsa" && signType !== "ecdsa/rsa") throw new Error("wrong public key type");
25592
- hash$4 = Buffer$16.concat([tag, hash$4]);
25605
+ hash$4 = Buffer$15.concat([tag, hash$4]);
25593
25606
  var len$1 = pub.modulus.byteLength();
25594
25607
  var pad$1 = [1];
25595
25608
  var padNum = 0;
@@ -25600,11 +25613,11 @@ var ExcelTS = (function(exports) {
25600
25613
  pad$1.push(0);
25601
25614
  var i$2 = -1;
25602
25615
  while (++i$2 < hash$4.length) pad$1.push(hash$4[i$2]);
25603
- pad$1 = Buffer$16.from(pad$1);
25616
+ pad$1 = Buffer$15.from(pad$1);
25604
25617
  var red = BN$4.mont(pub.modulus);
25605
25618
  sig = new BN$4(sig).toRed(red);
25606
25619
  sig = sig.redPow(new BN$4(pub.publicExponent));
25607
- sig = Buffer$16.from(sig.fromRed().toArray());
25620
+ sig = Buffer$15.from(sig.fromRed().toArray());
25608
25621
  var out = padNum < 8 ? 1 : 0;
25609
25622
  len$1 = Math.min(sig.length, pad$1.length);
25610
25623
  if (sig.length !== pad$1.length) out = 1;
@@ -25643,7 +25656,7 @@ var ExcelTS = (function(exports) {
25643
25656
  //#endregion
25644
25657
  //#region node_modules/.pnpm/browserify-sign@4.2.5/node_modules/browserify-sign/browser/index.js
25645
25658
  var require_browser$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
25646
- var Buffer$15 = require_safe_buffer$1().Buffer;
25659
+ var Buffer$14 = require_safe_buffer$1().Buffer;
25647
25660
  var createHash$3 = require_browser$9();
25648
25661
  var stream = require_readable_browser();
25649
25662
  var inherits$1 = require_inherits_browser();
@@ -25651,7 +25664,7 @@ var ExcelTS = (function(exports) {
25651
25664
  var verify = require_verify();
25652
25665
  var algorithms = require_algorithms();
25653
25666
  Object.keys(algorithms).forEach(function(key$1) {
25654
- algorithms[key$1].id = Buffer$15.from(algorithms[key$1].id, "hex");
25667
+ algorithms[key$1].id = Buffer$14.from(algorithms[key$1].id, "hex");
25655
25668
  algorithms[key$1.toLowerCase()] = algorithms[key$1];
25656
25669
  });
25657
25670
  function Sign(algorithm) {
@@ -25669,7 +25682,7 @@ var ExcelTS = (function(exports) {
25669
25682
  done$2();
25670
25683
  };
25671
25684
  Sign.prototype.update = function update(data, enc) {
25672
- this._hash.update(typeof data === "string" ? Buffer$15.from(data, enc) : data);
25685
+ this._hash.update(typeof data === "string" ? Buffer$14.from(data, enc) : data);
25673
25686
  return this;
25674
25687
  };
25675
25688
  Sign.prototype.sign = function signMethod(key$1, enc) {
@@ -25691,11 +25704,11 @@ var ExcelTS = (function(exports) {
25691
25704
  done$2();
25692
25705
  };
25693
25706
  Verify.prototype.update = function update(data, enc) {
25694
- this._hash.update(typeof data === "string" ? Buffer$15.from(data, enc) : data);
25707
+ this._hash.update(typeof data === "string" ? Buffer$14.from(data, enc) : data);
25695
25708
  return this;
25696
25709
  };
25697
25710
  Verify.prototype.verify = function verifyMethod(key$1, sig, enc) {
25698
- var sigBuffer = typeof sig === "string" ? Buffer$15.from(sig, enc) : sig;
25711
+ var sigBuffer = typeof sig === "string" ? Buffer$14.from(sig, enc) : sig;
25699
25712
  this.end();
25700
25713
  return verify(sigBuffer, this._hash.digest(), key$1, this._signType, this._tag);
25701
25714
  };
@@ -25716,7 +25729,7 @@ var ExcelTS = (function(exports) {
25716
25729
  //#endregion
25717
25730
  //#region node_modules/.pnpm/create-ecdh@4.0.4/node_modules/create-ecdh/browser.js
25718
25731
  var require_browser$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
25719
- var import_buffer$8 = require_buffer$1();
25732
+ var import_buffer$7 = require_buffer$1();
25720
25733
  var elliptic = require_elliptic();
25721
25734
  var BN$3 = require_bn$1();
25722
25735
  module.exports = function createECDH(curve$2) {
@@ -25763,18 +25776,18 @@ var ExcelTS = (function(exports) {
25763
25776
  this.curve = new elliptic.ec(this.curveType.name);
25764
25777
  this.keys = void 0;
25765
25778
  }
25766
- ECDH.prototype.generateKeys = function(enc, format$2) {
25779
+ ECDH.prototype.generateKeys = function(enc, format$3) {
25767
25780
  this.keys = this.curve.genKeyPair();
25768
- return this.getPublicKey(enc, format$2);
25781
+ return this.getPublicKey(enc, format$3);
25769
25782
  };
25770
25783
  ECDH.prototype.computeSecret = function(other, inenc, enc) {
25771
25784
  inenc = inenc || "utf8";
25772
- if (!import_buffer$8.Buffer.isBuffer(other)) other = new import_buffer$8.Buffer(other, inenc);
25785
+ if (!import_buffer$7.Buffer.isBuffer(other)) other = new import_buffer$7.Buffer(other, inenc);
25773
25786
  return formatReturnValue(this.curve.keyFromPublic(other).getPublic().mul(this.keys.getPrivate()).getX(), enc, this.curveType.byteLength);
25774
25787
  };
25775
- ECDH.prototype.getPublicKey = function(enc, format$2) {
25776
- var key$1 = this.keys.getPublic(format$2 === "compressed", true);
25777
- if (format$2 === "hybrid") if (key$1[key$1.length - 1] % 2) key$1[0] = 7;
25788
+ ECDH.prototype.getPublicKey = function(enc, format$3) {
25789
+ var key$1 = this.keys.getPublic(format$3 === "compressed", true);
25790
+ if (format$3 === "hybrid") if (key$1[key$1.length - 1] % 2) key$1[0] = 7;
25778
25791
  else key$1[0] = 6;
25779
25792
  return formatReturnValue(key$1, enc);
25780
25793
  };
@@ -25783,13 +25796,13 @@ var ExcelTS = (function(exports) {
25783
25796
  };
25784
25797
  ECDH.prototype.setPublicKey = function(pub, enc) {
25785
25798
  enc = enc || "utf8";
25786
- if (!import_buffer$8.Buffer.isBuffer(pub)) pub = new import_buffer$8.Buffer(pub, enc);
25799
+ if (!import_buffer$7.Buffer.isBuffer(pub)) pub = new import_buffer$7.Buffer(pub, enc);
25787
25800
  this.keys._importPublic(pub);
25788
25801
  return this;
25789
25802
  };
25790
25803
  ECDH.prototype.setPrivateKey = function(priv, enc) {
25791
25804
  enc = enc || "utf8";
25792
- if (!import_buffer$8.Buffer.isBuffer(priv)) priv = new import_buffer$8.Buffer(priv, enc);
25805
+ if (!import_buffer$7.Buffer.isBuffer(priv)) priv = new import_buffer$7.Buffer(priv, enc);
25793
25806
  var _priv = new BN$3(priv);
25794
25807
  _priv = _priv.toString(16);
25795
25808
  this.keys = this.curve.genKeyPair();
@@ -25798,11 +25811,11 @@ var ExcelTS = (function(exports) {
25798
25811
  };
25799
25812
  function formatReturnValue(bn$1, enc, len$1) {
25800
25813
  if (!Array.isArray(bn$1)) bn$1 = bn$1.toArray();
25801
- var buf = new import_buffer$8.Buffer(bn$1);
25814
+ var buf = new import_buffer$7.Buffer(bn$1);
25802
25815
  if (len$1 && buf.length < len$1) {
25803
- var zeros = new import_buffer$8.Buffer(len$1 - buf.length);
25816
+ var zeros = new import_buffer$7.Buffer(len$1 - buf.length);
25804
25817
  zeros.fill(0);
25805
- buf = import_buffer$8.Buffer.concat([zeros, buf]);
25818
+ buf = import_buffer$7.Buffer.concat([zeros, buf]);
25806
25819
  }
25807
25820
  if (!enc) return buf;
25808
25821
  else return buf.toString(enc);
@@ -25813,19 +25826,19 @@ var ExcelTS = (function(exports) {
25813
25826
  //#region node_modules/.pnpm/public-encrypt@4.0.3/node_modules/public-encrypt/mgf.js
25814
25827
  var require_mgf = /* @__PURE__ */ __commonJSMin(((exports, module) => {
25815
25828
  var createHash$2 = require_browser$9();
25816
- var Buffer$13 = require_safe_buffer$1().Buffer;
25829
+ var Buffer$12 = require_safe_buffer$1().Buffer;
25817
25830
  module.exports = function(seed, len$1) {
25818
- var t = Buffer$13.alloc(0);
25831
+ var t = Buffer$12.alloc(0);
25819
25832
  var i$2 = 0;
25820
25833
  var c;
25821
25834
  while (t.length < len$1) {
25822
25835
  c = i2ops(i$2++);
25823
- t = Buffer$13.concat([t, createHash$2("sha1").update(seed).update(c).digest()]);
25836
+ t = Buffer$12.concat([t, createHash$2("sha1").update(seed).update(c).digest()]);
25824
25837
  }
25825
25838
  return t.slice(0, len$1);
25826
25839
  };
25827
25840
  function i2ops(c) {
25828
- var out = Buffer$13.allocUnsafe(4);
25841
+ var out = Buffer$12.allocUnsafe(4);
25829
25842
  out.writeUInt32BE(c, 0);
25830
25843
  return out;
25831
25844
  }
@@ -25846,9 +25859,9 @@ var ExcelTS = (function(exports) {
25846
25859
  //#region node_modules/.pnpm/public-encrypt@4.0.3/node_modules/public-encrypt/withPublic.js
25847
25860
  var require_withPublic = /* @__PURE__ */ __commonJSMin(((exports, module) => {
25848
25861
  var BN$2 = require_bn$1();
25849
- var Buffer$12 = require_safe_buffer$1().Buffer;
25862
+ var Buffer$11 = require_safe_buffer$1().Buffer;
25850
25863
  function withPublic$2(paddedMsg, key$1) {
25851
- return Buffer$12.from(paddedMsg.toRed(BN$2.mont(key$1.modulus)).redPow(new BN$2(key$1.publicExponent)).fromRed().toArray());
25864
+ return Buffer$11.from(paddedMsg.toRed(BN$2.mont(key$1.modulus)).redPow(new BN$2(key$1.publicExponent)).fromRed().toArray());
25852
25865
  }
25853
25866
  module.exports = withPublic$2;
25854
25867
  }));
@@ -25864,7 +25877,7 @@ var ExcelTS = (function(exports) {
25864
25877
  var BN$1 = require_bn$1();
25865
25878
  var withPublic$1 = require_withPublic();
25866
25879
  var crt$1 = require_browserify_rsa();
25867
- var Buffer$11 = require_safe_buffer$1().Buffer;
25880
+ var Buffer$10 = require_safe_buffer$1().Buffer;
25868
25881
  module.exports = function publicEncrypt$1(publicKey, msg, reverse) {
25869
25882
  var padding;
25870
25883
  if (publicKey.padding) padding = publicKey.padding;
@@ -25884,22 +25897,22 @@ var ExcelTS = (function(exports) {
25884
25897
  function oaep$1(key$1, msg) {
25885
25898
  var k = key$1.modulus.byteLength();
25886
25899
  var mLen = msg.length;
25887
- var iHash = createHash$1("sha1").update(Buffer$11.alloc(0)).digest();
25900
+ var iHash = createHash$1("sha1").update(Buffer$10.alloc(0)).digest();
25888
25901
  var hLen = iHash.length;
25889
25902
  var hLen2 = 2 * hLen;
25890
25903
  if (mLen > k - hLen2 - 2) throw new Error("message too long");
25891
- var ps = Buffer$11.alloc(k - mLen - hLen2 - 2);
25904
+ var ps = Buffer$10.alloc(k - mLen - hLen2 - 2);
25892
25905
  var dblen = k - hLen - 1;
25893
25906
  var seed = randomBytes(hLen);
25894
- var maskedDb = xor$1(Buffer$11.concat([
25907
+ var maskedDb = xor$1(Buffer$10.concat([
25895
25908
  iHash,
25896
25909
  ps,
25897
- Buffer$11.alloc(1, 1),
25910
+ Buffer$10.alloc(1, 1),
25898
25911
  msg
25899
25912
  ], dblen), mgf$1(seed, dblen));
25900
25913
  var maskedSeed = xor$1(seed, mgf$1(maskedDb, hLen));
25901
- return new BN$1(Buffer$11.concat([
25902
- Buffer$11.alloc(1),
25914
+ return new BN$1(Buffer$10.concat([
25915
+ Buffer$10.alloc(1),
25903
25916
  maskedSeed,
25904
25917
  maskedDb
25905
25918
  ], k));
@@ -25909,17 +25922,17 @@ var ExcelTS = (function(exports) {
25909
25922
  var k = key$1.modulus.byteLength();
25910
25923
  if (mLen > k - 11) throw new Error("message too long");
25911
25924
  var ps;
25912
- if (reverse) ps = Buffer$11.alloc(k - mLen - 3, 255);
25925
+ if (reverse) ps = Buffer$10.alloc(k - mLen - 3, 255);
25913
25926
  else ps = nonZero(k - mLen - 3);
25914
- return new BN$1(Buffer$11.concat([
25915
- Buffer$11.from([0, reverse ? 1 : 2]),
25927
+ return new BN$1(Buffer$10.concat([
25928
+ Buffer$10.from([0, reverse ? 1 : 2]),
25916
25929
  ps,
25917
- Buffer$11.alloc(1),
25930
+ Buffer$10.alloc(1),
25918
25931
  msg
25919
25932
  ], k));
25920
25933
  }
25921
25934
  function nonZero(len$1) {
25922
- var out = Buffer$11.allocUnsafe(len$1);
25935
+ var out = Buffer$10.allocUnsafe(len$1);
25923
25936
  var i$2 = 0;
25924
25937
  var cache$1 = randomBytes(len$1 * 2);
25925
25938
  var cur = 0;
@@ -25946,7 +25959,7 @@ var ExcelTS = (function(exports) {
25946
25959
  var crt = require_browserify_rsa();
25947
25960
  var createHash = require_browser$9();
25948
25961
  var withPublic = require_withPublic();
25949
- var Buffer$10 = require_safe_buffer$1().Buffer;
25962
+ var Buffer$9 = require_safe_buffer$1().Buffer;
25950
25963
  module.exports = function privateDecrypt(privateKey, enc, reverse) {
25951
25964
  var padding;
25952
25965
  if (privateKey.padding) padding = privateKey.padding;
@@ -25958,8 +25971,8 @@ var ExcelTS = (function(exports) {
25958
25971
  var msg;
25959
25972
  if (reverse) msg = withPublic(new BN(enc), key$1);
25960
25973
  else msg = crt(enc, key$1);
25961
- var zBuffer = Buffer$10.alloc(k - msg.length);
25962
- msg = Buffer$10.concat([zBuffer, msg], k);
25974
+ var zBuffer = Buffer$9.alloc(k - msg.length);
25975
+ msg = Buffer$9.concat([zBuffer, msg], k);
25963
25976
  if (padding === 4) return oaep(key$1, msg);
25964
25977
  else if (padding === 1) return pkcs1(key$1, msg, reverse);
25965
25978
  else if (padding === 3) return msg;
@@ -25967,7 +25980,7 @@ var ExcelTS = (function(exports) {
25967
25980
  };
25968
25981
  function oaep(key$1, msg) {
25969
25982
  var k = key$1.modulus.byteLength();
25970
- var iHash = createHash("sha1").update(Buffer$10.alloc(0)).digest();
25983
+ var iHash = createHash("sha1").update(Buffer$9.alloc(0)).digest();
25971
25984
  var hLen = iHash.length;
25972
25985
  if (msg[0] !== 0) throw new Error("decryption error");
25973
25986
  var maskedSeed = msg.slice(1, hLen + 1);
@@ -25994,8 +26007,8 @@ var ExcelTS = (function(exports) {
25994
26007
  return msg.slice(i$2);
25995
26008
  }
25996
26009
  function compare(a, b) {
25997
- a = Buffer$10.from(a);
25998
- b = Buffer$10.from(b);
26010
+ a = Buffer$9.from(a);
26011
+ b = Buffer$9.from(b);
25999
26012
  var dif = 0;
26000
26013
  var len$1 = a.length;
26001
26014
  if (a.length !== b.length) {
@@ -26030,7 +26043,7 @@ var ExcelTS = (function(exports) {
26030
26043
  }
26031
26044
  var safeBuffer = require_safe_buffer$1();
26032
26045
  var randombytes = require_browser$11();
26033
- var Buffer$9 = safeBuffer.Buffer;
26046
+ var Buffer$8 = safeBuffer.Buffer;
26034
26047
  var kBufferMaxLength = safeBuffer.kMaxLength;
26035
26048
  var crypto$2 = global.crypto || global.msCrypto;
26036
26049
  var kMaxUint32 = Math.pow(2, 32) - 1;
@@ -26052,7 +26065,7 @@ var ExcelTS = (function(exports) {
26052
26065
  exports.randomFillSync = oldBrowser;
26053
26066
  }
26054
26067
  function randomFill(buf, offset, size, cb) {
26055
- if (!Buffer$9.isBuffer(buf) && !(buf instanceof global.Uint8Array)) throw new TypeError("\"buf\" argument must be a Buffer or Uint8Array");
26068
+ if (!Buffer$8.isBuffer(buf) && !(buf instanceof global.Uint8Array)) throw new TypeError("\"buf\" argument must be a Buffer or Uint8Array");
26056
26069
  if (typeof offset === "function") {
26057
26070
  cb = offset;
26058
26071
  offset = 0;
@@ -26091,7 +26104,7 @@ var ExcelTS = (function(exports) {
26091
26104
  }
26092
26105
  function randomFillSync(buf, offset, size) {
26093
26106
  if (typeof offset === "undefined") offset = 0;
26094
- if (!Buffer$9.isBuffer(buf) && !(buf instanceof global.Uint8Array)) throw new TypeError("\"buf\" argument must be a Buffer or Uint8Array");
26107
+ if (!Buffer$8.isBuffer(buf) && !(buf instanceof global.Uint8Array)) throw new TypeError("\"buf\" argument must be a Buffer or Uint8Array");
26095
26108
  assertOffset(offset, buf.length);
26096
26109
  if (size === void 0) size = buf.length - offset;
26097
26110
  assertSize(size, offset, buf.length);
@@ -26177,21 +26190,21 @@ var ExcelTS = (function(exports) {
26177
26190
 
26178
26191
  //#endregion
26179
26192
  //#region src/utils/encryptor.ts
26180
- var import_buffer$7 = require_buffer$1();
26193
+ var import_buffer$6 = require_buffer$1();
26181
26194
  var import_crypto_browserify = /* @__PURE__ */ __toESM(require_crypto_browserify(), 1);
26182
26195
  const Encryptor = {
26183
26196
  hash(algorithm, ...buffers) {
26184
26197
  const hash$4 = import_crypto_browserify.createHash(algorithm);
26185
- hash$4.update(import_buffer$7.Buffer.concat(buffers));
26198
+ hash$4.update(import_buffer$6.Buffer.concat(buffers));
26186
26199
  return hash$4.digest();
26187
26200
  },
26188
26201
  convertPasswordToHash(password, hashAlgorithm, saltValue, spinCount) {
26189
26202
  hashAlgorithm = hashAlgorithm.toLowerCase();
26190
26203
  if (import_crypto_browserify.getHashes().indexOf(hashAlgorithm) < 0) throw new Error(`Hash algorithm '${hashAlgorithm}' not supported!`);
26191
- const passwordBuffer = import_buffer$7.Buffer.from(password, "utf16le");
26192
- let key$1 = this.hash(hashAlgorithm, import_buffer$7.Buffer.from(saltValue, "base64"), passwordBuffer);
26204
+ const passwordBuffer = import_buffer$6.Buffer.from(password, "utf16le");
26205
+ let key$1 = this.hash(hashAlgorithm, import_buffer$6.Buffer.from(saltValue, "base64"), passwordBuffer);
26193
26206
  for (let i$2 = 0; i$2 < spinCount; i$2++) {
26194
- const iterator = import_buffer$7.Buffer.alloc(4);
26207
+ const iterator = import_buffer$6.Buffer.alloc(4);
26195
26208
  iterator.writeUInt32LE(i$2, 0);
26196
26209
  key$1 = this.hash(hashAlgorithm, key$1, iterator);
26197
26210
  }
@@ -26334,6 +26347,15 @@ var ExcelTS = (function(exports) {
26334
26347
  return result;
26335
26348
  }, {});
26336
26349
  }
26350
+ const textDecoder = new TextDecoder("utf-8");
26351
+ /**
26352
+ * Convert a Buffer or ArrayBuffer to a UTF-8 string
26353
+ * Works in both Node.js and browser environments
26354
+ */
26355
+ function bufferToString(chunk) {
26356
+ if (typeof chunk === "string") return chunk;
26357
+ return textDecoder.decode(chunk);
26358
+ }
26337
26359
 
26338
26360
  //#endregion
26339
26361
  //#region src/doc/pivot-table.ts
@@ -28520,10 +28542,10 @@ Please leave feedback at https://github.com/excelts/excelts/discussions/2575`);
28520
28542
  //#region src/utils/string-buf.ts
28521
28543
  var import_stream_browserify$1 = require_stream_browserify();
28522
28544
  var import_events = /* @__PURE__ */ __toESM(require_events(), 1);
28523
- var import_buffer$6 = require_buffer$1();
28545
+ var import_buffer$5 = require_buffer$1();
28524
28546
  var StringBuf = class {
28525
28547
  constructor(options) {
28526
- this._buf = import_buffer$6.Buffer.alloc(options && options.size || 16384);
28548
+ this._buf = import_buffer$5.Buffer.alloc(options && options.size || 16384);
28527
28549
  this._encoding = options && options.encoding || "utf8";
28528
28550
  this._inPos = 0;
28529
28551
  this._buffer = void 0;
@@ -28539,7 +28561,7 @@ var import_events = /* @__PURE__ */ __toESM(require_events(), 1);
28539
28561
  }
28540
28562
  toBuffer() {
28541
28563
  if (!this._buffer) {
28542
- this._buffer = import_buffer$6.Buffer.alloc(this.length);
28564
+ this._buffer = import_buffer$5.Buffer.alloc(this.length);
28543
28565
  this._buf.copy(this._buffer, 0, 0, this.length);
28544
28566
  }
28545
28567
  return this._buffer;
@@ -28552,7 +28574,7 @@ var import_events = /* @__PURE__ */ __toESM(require_events(), 1);
28552
28574
  _grow(min$1) {
28553
28575
  let size = this._buf.length * 2;
28554
28576
  while (size < min$1) size *= 2;
28555
- const buf = import_buffer$6.Buffer.alloc(size);
28577
+ const buf = import_buffer$5.Buffer.alloc(size);
28556
28578
  this._buf.copy(buf, 0);
28557
28579
  this._buf = buf;
28558
28580
  }
@@ -28577,8 +28599,7 @@ var import_events = /* @__PURE__ */ __toESM(require_events(), 1);
28577
28599
 
28578
28600
  //#endregion
28579
28601
  //#region src/utils/stream-buf.ts
28580
- var import_buffer$5 = require_buffer$1();
28581
- init_process();
28602
+ var import_buffer$4 = require_buffer$1();
28582
28603
  var StringChunk = class {
28583
28604
  constructor(data, encoding) {
28584
28605
  this._data = data;
@@ -28591,7 +28612,7 @@ var import_events = /* @__PURE__ */ __toESM(require_events(), 1);
28591
28612
  return this.toBuffer().copy(target, targetOffset, offset, length);
28592
28613
  }
28593
28614
  toBuffer() {
28594
- if (!this._buffer) this._buffer = import_buffer$5.Buffer.from(this._data, this._encoding);
28615
+ if (!this._buffer) this._buffer = import_buffer$4.Buffer.from(this._data, this._encoding);
28595
28616
  return this._buffer;
28596
28617
  }
28597
28618
  };
@@ -28626,13 +28647,13 @@ var import_events = /* @__PURE__ */ __toESM(require_events(), 1);
28626
28647
  var ReadWriteBuf = class {
28627
28648
  constructor(size) {
28628
28649
  this.size = size;
28629
- this.buffer = import_buffer$5.Buffer.alloc(size);
28650
+ this.buffer = import_buffer$4.Buffer.alloc(size);
28630
28651
  this.iRead = 0;
28631
28652
  this.iWrite = 0;
28632
28653
  }
28633
28654
  toBuffer() {
28634
28655
  if (this.iRead === 0 && this.iWrite === this.size) return this.buffer;
28635
- const buf = import_buffer$5.Buffer.alloc(this.iWrite - this.iRead);
28656
+ const buf = import_buffer$4.Buffer.alloc(this.iWrite - this.iRead);
28636
28657
  this.buffer.copy(buf, 0, this.iRead, this.iWrite);
28637
28658
  return buf;
28638
28659
  }
@@ -28653,7 +28674,7 @@ var import_events = /* @__PURE__ */ __toESM(require_events(), 1);
28653
28674
  this.iRead = this.iWrite;
28654
28675
  return buf;
28655
28676
  }
28656
- buf = import_buffer$5.Buffer.alloc(size);
28677
+ buf = import_buffer$4.Buffer.alloc(size);
28657
28678
  this.buffer.copy(buf, 0, this.iRead, size);
28658
28679
  this.iRead += size;
28659
28680
  return buf;
@@ -28684,7 +28705,7 @@ var import_events = /* @__PURE__ */ __toESM(require_events(), 1);
28684
28705
  switch (this.buffers.length) {
28685
28706
  case 0: return null;
28686
28707
  case 1: return this.buffers[0].toBuffer();
28687
- default: return import_buffer$5.Buffer.concat(this.buffers.map((rwBuf) => rwBuf.toBuffer()));
28708
+ default: return import_buffer$4.Buffer.concat(this.buffers.map((rwBuf) => rwBuf.toBuffer()));
28688
28709
  }
28689
28710
  },
28690
28711
  _getWritableBuffer() {
@@ -28722,9 +28743,11 @@ var import_events = /* @__PURE__ */ __toESM(require_events(), 1);
28722
28743
  callback = callback || nop;
28723
28744
  let chunk;
28724
28745
  if (data instanceof StringBuf || data && data.constructor?.name === "StringBuf") chunk = new StringBufChunk(data);
28725
- else if (data instanceof import_buffer$5.Buffer) chunk = new BufferChunk(data);
28726
- else if (typeof data === "string" || data instanceof String || data instanceof ArrayBuffer) chunk = new StringChunk(String(data), encoding);
28727
- else throw new Error("Chunk must be one of type String, Buffer or StringBuf.");
28746
+ else if (import_buffer$4.Buffer.isBuffer(data)) chunk = new BufferChunk(data);
28747
+ else if (ArrayBuffer.isView(data)) chunk = new BufferChunk(import_buffer$4.Buffer.from(data.buffer, data.byteOffset, data.byteLength));
28748
+ else if (data instanceof ArrayBuffer) chunk = new BufferChunk(import_buffer$4.Buffer.from(data));
28749
+ else if (typeof data === "string" || data instanceof String) chunk = new StringChunk(String(data), encoding);
28750
+ else throw new Error("Chunk must be one of type String, Buffer, Uint8Array, ArrayBuffer or StringBuf.");
28728
28751
  if (this.pipes.length) if (this.batch) {
28729
28752
  this._writeToBuffers(chunk);
28730
28753
  while (!this.corked && this.buffers.length > 1) this._pipe(this.buffers.shift());
@@ -28733,7 +28756,7 @@ var import_events = /* @__PURE__ */ __toESM(require_events(), 1);
28733
28756
  callback();
28734
28757
  } else {
28735
28758
  this._writeToBuffers(chunk);
28736
- api.nextTick(callback);
28759
+ queueMicrotask(() => callback());
28737
28760
  }
28738
28761
  else {
28739
28762
  if (!this.paused) this.emit("data", chunk.toBuffer());
@@ -28777,11 +28800,11 @@ var import_events = /* @__PURE__ */ __toESM(require_events(), 1);
28777
28800
  buffers.push(buffer$2);
28778
28801
  if (first.eod && first.full) this.buffers.shift();
28779
28802
  }
28780
- return import_buffer$5.Buffer.concat(buffers);
28803
+ return import_buffer$4.Buffer.concat(buffers);
28781
28804
  }
28782
28805
  buffers = this.buffers.map((buf) => buf.toBuffer()).filter(Boolean);
28783
28806
  this.buffers = [];
28784
- return import_buffer$5.Buffer.concat(buffers);
28807
+ return import_buffer$4.Buffer.concat(buffers);
28785
28808
  },
28786
28809
  setEncoding(encoding) {
28787
28810
  this.encoding = encoding;
@@ -28811,20 +28834,6 @@ var import_events = /* @__PURE__ */ __toESM(require_events(), 1);
28811
28834
  }
28812
28835
  });
28813
28836
 
28814
- //#endregion
28815
- //#region src/utils/browser-buffer-encode.ts
28816
- var import_buffer$4 = require_buffer$1();
28817
- const textEncoder = typeof TextEncoder === "undefined" ? null : new TextEncoder();
28818
- function stringToBuffer(str) {
28819
- if (typeof str !== "string") return str;
28820
- if (textEncoder) return import_buffer$4.Buffer.from(textEncoder.encode(str).buffer);
28821
- return import_buffer$4.Buffer.from(str);
28822
- }
28823
-
28824
- //#endregion
28825
- //#region src/utils/browser.ts
28826
- const isBrowser = typeof window !== "undefined" && typeof document !== "undefined" && typeof navigator !== "undefined";
28827
-
28828
28837
  //#endregion
28829
28838
  //#region src/utils/zip-stream.ts
28830
28839
  var import_buffer$3 = require_buffer$1();
@@ -28852,15 +28861,11 @@ var import_events = /* @__PURE__ */ __toESM(require_events(), 1);
28852
28861
  let buffer$2;
28853
28862
  if (Object.prototype.hasOwnProperty.call(options, "base64") && options.base64) {
28854
28863
  const base64Data = typeof data === "string" ? data : data.toString();
28855
- if (isBrowser) {
28856
- const binaryString = atob(base64Data);
28857
- const len$1 = binaryString.length;
28858
- buffer$2 = new Uint8Array(len$1);
28859
- for (let i$2 = 0; i$2 < len$1; i$2++) buffer$2[i$2] = binaryString.charCodeAt(i$2);
28860
- } else buffer$2 = import_buffer$3.Buffer.from(base64Data, "base64");
28861
- } else if (typeof data === "string") if (isBrowser) buffer$2 = stringToBuffer(data);
28862
- else buffer$2 = import_buffer$3.Buffer.from(data, "utf8");
28863
- else if (import_buffer$3.Buffer.isBuffer(data)) buffer$2 = new Uint8Array(data);
28864
+ buffer$2 = import_buffer$3.Buffer.from(base64Data, "base64");
28865
+ } else if (typeof data === "string") buffer$2 = import_buffer$3.Buffer.from(data, "utf8");
28866
+ else if (import_buffer$3.Buffer.isBuffer(data)) buffer$2 = data;
28867
+ else if (ArrayBuffer.isView(data)) buffer$2 = new Uint8Array(data.buffer, data.byteOffset, data.byteLength);
28868
+ else if (data instanceof ArrayBuffer) buffer$2 = new Uint8Array(data);
28864
28869
  else buffer$2 = data;
28865
28870
  const zipFile = this.options.compression !== "STORE" ? new ZipDeflate(options.name, { level: this.compressionLevel }) : new ZipPassThrough(options.name);
28866
28871
  this.zip.add(zipFile);
@@ -29028,15 +29033,6 @@ var import_events = /* @__PURE__ */ __toESM(require_events(), 1);
29028
29033
  }
29029
29034
  };
29030
29035
 
29031
- //#endregion
29032
- //#region src/utils/browser-buffer-decode.ts
29033
- const textDecoder = typeof TextDecoder === "undefined" ? null : new TextDecoder("utf-8");
29034
- function bufferToString(chunk) {
29035
- if (typeof chunk === "string") return chunk;
29036
- if (textDecoder) return textDecoder.decode(chunk);
29037
- return String.fromCharCode(...new Uint8Array(chunk));
29038
- }
29039
-
29040
29036
  //#endregion
29041
29037
  //#region node_modules/.pnpm/xmlchars@2.2.0/node_modules/xmlchars/xml/1.0/ed5.js
29042
29038
  var require_ed5 = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -34652,7 +34648,21 @@ ${XMLNS_NAMESPACE}.`);
34652
34648
  }
34653
34649
  function optimiseDataValidations(model) {
34654
34650
  if (!model) return [];
34655
- const dvList = Object.entries(model).map(([address, dataValidation]) => ({
34651
+ const rangeValidations = [];
34652
+ const regularModel = {};
34653
+ for (const [key$1, value] of Object.entries(model)) {
34654
+ if (value === void 0 || value === null) continue;
34655
+ if (key$1.startsWith("range:")) {
34656
+ const rangeStr = key$1.slice(6);
34657
+ const { sqref: _sqref, ...rest } = value;
34658
+ rangeValidations.push({
34659
+ ...rest,
34660
+ sqref: rangeStr
34661
+ });
34662
+ } else regularModel[key$1] = value;
34663
+ }
34664
+ if (Object.keys(regularModel).length === 0) return rangeValidations;
34665
+ const dvList = Object.entries(regularModel).map(([address, dataValidation]) => ({
34656
34666
  address,
34657
34667
  dataValidation,
34658
34668
  marked: false
@@ -34661,11 +34671,11 @@ ${XMLNS_NAMESPACE}.`);
34661
34671
  const matchCol = (addr, height, col) => {
34662
34672
  for (let i$2 = 0; i$2 < height; i$2++) {
34663
34673
  const otherAddress = colCache.encodeAddress(addr.row + i$2, col);
34664
- if (!model[otherAddress] || !isEqual(model[addr.address], model[otherAddress])) return false;
34674
+ if (!regularModel[otherAddress] || !isEqual(regularModel[addr.address], regularModel[otherAddress])) return false;
34665
34675
  }
34666
34676
  return true;
34667
34677
  };
34668
- return dvList.map((dv) => {
34678
+ const optimized = dvList.map((dv) => {
34669
34679
  if (!dv.marked) {
34670
34680
  const addr = colCache.decodeEx(dv.address);
34671
34681
  if (addr.dimensions) {
@@ -34677,7 +34687,7 @@ ${XMLNS_NAMESPACE}.`);
34677
34687
  }
34678
34688
  let height = 1;
34679
34689
  let otherAddress = colCache.encodeAddress(addr.row + height, addr.col);
34680
- while (model[otherAddress] && isEqual(dv.dataValidation, model[otherAddress])) {
34690
+ while (regularModel[otherAddress] && isEqual(dv.dataValidation, regularModel[otherAddress])) {
34681
34691
  height++;
34682
34692
  otherAddress = colCache.encodeAddress(addr.row + height, addr.col);
34683
34693
  }
@@ -34702,6 +34712,7 @@ ${XMLNS_NAMESPACE}.`);
34702
34712
  }
34703
34713
  return null;
34704
34714
  }).filter(Boolean);
34715
+ return [...rangeValidations, ...optimized];
34705
34716
  }
34706
34717
  var DataValidationsXform = class extends BaseXform {
34707
34718
  get tag() {
@@ -34786,10 +34797,13 @@ ${XMLNS_NAMESPACE}.`);
34786
34797
  delete this._dataValidation.operator;
34787
34798
  }
34788
34799
  (this._address.split(/\s+/g) || []).forEach((addr) => {
34789
- if (addr.includes(":")) new Range(addr).forEachAddress((address) => {
34790
- this.model[address] = this._dataValidation;
34791
- });
34792
- else this.model[addr] = this._dataValidation;
34800
+ if (addr.includes(":")) {
34801
+ const range$1 = new Range(addr);
34802
+ if ((range$1.bottom - range$1.top + 1) * (range$1.right - range$1.left + 1) <= 1e3) range$1.forEachAddress((address) => {
34803
+ this.model[address] = this._dataValidation;
34804
+ });
34805
+ else this.model[`range:${addr}`] = this._dataValidation;
34806
+ } else this.model[addr] = this._dataValidation;
34793
34807
  });
34794
34808
  return true;
34795
34809
  case "formula1":
@@ -40365,10 +40379,10 @@ ${XMLNS_NAMESPACE}.`);
40365
40379
  return FormatterOptions_2.FormatterOptions;
40366
40380
  }
40367
40381
  });
40368
- const format$1 = (options) => {
40382
+ const format$2 = (options) => {
40369
40383
  return new CsvFormatterStream_1.CsvFormatterStream(new FormatterOptions_1.FormatterOptions(options));
40370
40384
  };
40371
- exports.format = format$1;
40385
+ exports.format = format$2;
40372
40386
  const write = (rows, options) => {
40373
40387
  const csvStream = (0, exports.format)(options);
40374
40388
  const promiseWrite = (0, util_1.promisify)((row, cb) => {
@@ -45031,45 +45045,548 @@ ${XMLNS_NAMESPACE}.`);
45031
45045
  }({});
45032
45046
 
45033
45047
  //#endregion
45034
- //#region src/utils/extra-utils.ts
45048
+ //#region src/utils/cell-format.ts
45049
+ /**
45050
+ * Excel Cell Format Parser
45051
+ * A simplified implementation for formatting cell values according to Excel numFmt patterns
45052
+ * Supports: General, percentages, decimals, thousands separators, dates, currencies,
45053
+ * scientific notation, fractions, elapsed time, and more
45054
+ */
45055
+ /**
45056
+ * Pad number with leading zeros
45057
+ */
45058
+ function pad0(num, len$1) {
45059
+ let s$1 = Math.round(num).toString();
45060
+ while (s$1.length < len$1) s$1 = "0" + s$1;
45061
+ return s$1;
45062
+ }
45063
+ /**
45064
+ * Add thousand separators to a number string
45065
+ */
45066
+ function commaify(s$1) {
45067
+ const w = 3;
45068
+ if (s$1.length <= w) return s$1;
45069
+ const j = s$1.length % w;
45070
+ let o = s$1.substring(0, j);
45071
+ for (let i$2 = j; i$2 < s$1.length; i$2 += w) o += (o.length > 0 ? "," : "") + s$1.substring(i$2, i$2 + w);
45072
+ return o;
45073
+ }
45074
+ /**
45075
+ * Round a number to specified decimal places
45076
+ */
45077
+ function roundTo(val, decimals) {
45078
+ const factor = Math.pow(10, decimals);
45079
+ return Math.round(val * factor) / factor;
45080
+ }
45081
+ /**
45082
+ * Process _ (underscore) placeholder - adds space with width of next character
45083
+ * Process * (asterisk) placeholder - repeats next character to fill width (simplified to single char)
45084
+ */
45085
+ function processPlaceholders(fmt) {
45086
+ let result = fmt.replace(/_./g, " ");
45087
+ result = result.replace(/\*./g, "");
45088
+ return result;
45089
+ }
45090
+ /**
45091
+ * Check if format is "General"
45092
+ */
45093
+ function isGeneral(fmt) {
45094
+ return /^General$/i.test(fmt.trim());
45095
+ }
45096
+ /**
45097
+ * Check if format is a date format
45098
+ */
45099
+ function isDateFormat(fmt) {
45100
+ const cleaned = fmt.replace(/\[[^\]]*\]/g, "");
45101
+ return /[ymdhs]/i.test(cleaned) && !/^[#0.,E%$\s()\-+]+$/i.test(cleaned);
45102
+ }
45103
+ const MONTHS_SHORT = [
45104
+ "Jan",
45105
+ "Feb",
45106
+ "Mar",
45107
+ "Apr",
45108
+ "May",
45109
+ "Jun",
45110
+ "Jul",
45111
+ "Aug",
45112
+ "Sep",
45113
+ "Oct",
45114
+ "Nov",
45115
+ "Dec"
45116
+ ];
45117
+ const MONTHS_LONG = [
45118
+ "January",
45119
+ "February",
45120
+ "March",
45121
+ "April",
45122
+ "May",
45123
+ "June",
45124
+ "July",
45125
+ "August",
45126
+ "September",
45127
+ "October",
45128
+ "November",
45129
+ "December"
45130
+ ];
45131
+ const MONTHS_LETTER = [
45132
+ "J",
45133
+ "F",
45134
+ "M",
45135
+ "A",
45136
+ "M",
45137
+ "J",
45138
+ "J",
45139
+ "A",
45140
+ "S",
45141
+ "O",
45142
+ "N",
45143
+ "D"
45144
+ ];
45145
+ const DAYS_SHORT = [
45146
+ "Sun",
45147
+ "Mon",
45148
+ "Tue",
45149
+ "Wed",
45150
+ "Thu",
45151
+ "Fri",
45152
+ "Sat"
45153
+ ];
45154
+ const DAYS_LONG = [
45155
+ "Sunday",
45156
+ "Monday",
45157
+ "Tuesday",
45158
+ "Wednesday",
45159
+ "Thursday",
45160
+ "Friday",
45161
+ "Saturday"
45162
+ ];
45163
+ /**
45164
+ * Format a date value using Excel date format
45165
+ * @param serial Excel serial number (days since 1900-01-01)
45166
+ * @param fmt Format string
45167
+ */
45168
+ function formatDate(serial, fmt) {
45169
+ const date = excelToDate(serial, false);
45170
+ const year = date.getFullYear();
45171
+ const month = date.getMonth();
45172
+ const day = date.getDate();
45173
+ const hours = date.getHours();
45174
+ const minutes = date.getMinutes();
45175
+ const seconds = date.getSeconds();
45176
+ const dayOfWeek = date.getDay();
45177
+ const totalSeconds = serial * 86400;
45178
+ const fractionalSeconds = totalSeconds - Math.floor(totalSeconds);
45179
+ const hasAmPm = /AM\/PM|A\/P/i.test(fmt);
45180
+ const isPm = hours >= 12;
45181
+ const hours12 = hours % 12 || 12;
45182
+ let result = fmt.replace(/\[(Red|Green|Blue|Yellow|Magenta|Cyan|White|Black|Color\d+)\]/gi, "");
45183
+ result = processPlaceholders(result);
45184
+ const fracSecMatch = result.match(/ss\.(0+)/i);
45185
+ let fracSecStr = "";
45186
+ if (fracSecMatch) {
45187
+ const decPlaces = fracSecMatch[1].length;
45188
+ fracSecStr = Math.round(fractionalSeconds * Math.pow(10, decPlaces)).toString().padStart(decPlaces, "0");
45189
+ result = result.replace(/ss\.0+/gi, "\0SF\0");
45190
+ }
45191
+ result = result.replace(/yyyy/gi, "\0Y4\0");
45192
+ result = result.replace(/yy/gi, "\0Y2\0");
45193
+ result = result.replace(/mmmmm/gi, "\0MN5\0");
45194
+ result = result.replace(/mmmm/gi, "\0MN4\0");
45195
+ result = result.replace(/mmm/gi, "\0MN3\0");
45196
+ result = result.replace(/dddd/gi, "\0DN4\0");
45197
+ result = result.replace(/ddd/gi, "\0DN3\0");
45198
+ result = result.replace(/dd/gi, "\0D2\0");
45199
+ result = result.replace(/\bd\b/gi, "\0D1\0");
45200
+ result = result.replace(/hh/gi, "\0H2\0");
45201
+ result = result.replace(/\bh\b/gi, "\0H1\0");
45202
+ result = result.replace(/ss/gi, "\0S2\0");
45203
+ result = result.replace(/\bs\b/gi, "\0S1\0");
45204
+ if (/\x00H[12]\x00.*mm|mm.*\x00S[12]\x00/i.test(result)) result = result.replace(/mm/gi, "\0MI2\0");
45205
+ else result = result.replace(/mm/gi, "\0M2\0");
45206
+ result = result.replace(/\bm\b/gi, "\0M1\0");
45207
+ result = result.replace(/AM\/PM/gi, "\0AMPM\0");
45208
+ result = result.replace(/A\/P/gi, "\0AP\0");
45209
+ const hourVal = hasAmPm ? hours12 : hours;
45210
+ result = result.replace(/\x00Y4\x00/g, year.toString()).replace(/\x00Y2\x00/g, (year % 100).toString().padStart(2, "0")).replace(/\x00MN5\x00/g, MONTHS_LETTER[month]).replace(/\x00MN4\x00/g, MONTHS_LONG[month]).replace(/\x00MN3\x00/g, MONTHS_SHORT[month]).replace(/\x00M2\x00/g, (month + 1).toString().padStart(2, "0")).replace(/\x00M1\x00/g, (month + 1).toString()).replace(/\x00DN4\x00/g, DAYS_LONG[dayOfWeek]).replace(/\x00DN3\x00/g, DAYS_SHORT[dayOfWeek]).replace(/\x00D2\x00/g, day.toString().padStart(2, "0")).replace(/\x00D1\x00/g, day.toString()).replace(/\x00H2\x00/g, hourVal.toString().padStart(2, "0")).replace(/\x00H1\x00/g, hourVal.toString()).replace(/\x00MI2\x00/g, minutes.toString().padStart(2, "0")).replace(/\x00S2\x00/g, seconds.toString().padStart(2, "0")).replace(/\x00S1\x00/g, seconds.toString()).replace(/\x00SF\x00/g, seconds.toString().padStart(2, "0") + "." + fracSecStr).replace(/\x00AMPM\x00/g, isPm ? "PM" : "AM").replace(/\x00AP\x00/g, isPm ? "P" : "A");
45211
+ result = result.replace(/\\/g, "");
45212
+ return result;
45213
+ }
45214
+ /**
45215
+ * Format a number using "General" format
45216
+ */
45217
+ function formatGeneral(val) {
45218
+ if (typeof val === "boolean") return val ? "TRUE" : "FALSE";
45219
+ if (typeof val === "string") return val;
45220
+ if (Number.isInteger(val)) return val.toString();
45221
+ return val.toPrecision(11).replace(/\.?0+$/, "").replace(/\.?0+e/, "e");
45222
+ }
45223
+ /**
45224
+ * Format a percentage value
45225
+ * @param val The decimal value (e.g., 0.25 for 25%)
45226
+ * @param fmt The format string containing %
45227
+ */
45228
+ function formatPercentage(val, fmt) {
45229
+ const percentCount = (fmt.match(/%/g) || []).length;
45230
+ return formatNumberPattern(val * Math.pow(100, percentCount), fmt.replace(/%/g, "") || "0") + "%".repeat(percentCount);
45231
+ }
45232
+ /**
45233
+ * Format a number in scientific notation
45234
+ * @param val The number to format
45235
+ * @param fmt The format string (e.g., "0.00E+00")
45236
+ */
45237
+ function formatScientific(val, fmt) {
45238
+ const sign$4 = val < 0 ? "-" : "";
45239
+ const absVal = Math.abs(val);
45240
+ if (absVal === 0) {
45241
+ const decMatch$1 = fmt.match(/\.([0#]+)E/i);
45242
+ const decPlaces$1 = decMatch$1 ? decMatch$1[1].length : 2;
45243
+ return "0." + "0".repeat(decPlaces$1) + "E+00";
45244
+ }
45245
+ const decMatch = fmt.match(/\.([0#]+)E/i);
45246
+ const decPlaces = decMatch ? decMatch[1].length : 2;
45247
+ const hasPlus = fmt.includes("E+");
45248
+ const exp = Math.floor(Math.log10(absVal));
45249
+ const mantissaStr = roundTo(absVal / Math.pow(10, exp), decPlaces).toFixed(decPlaces);
45250
+ const expSign = exp >= 0 ? hasPlus ? "+" : "" : "-";
45251
+ const expStr = pad0(Math.abs(exp), 2);
45252
+ return sign$4 + mantissaStr + "E" + expSign + expStr;
45253
+ }
45254
+ /**
45255
+ * Convert decimal to fraction using continued fraction algorithm
45256
+ */
45257
+ function toFraction(val, maxDenom) {
45258
+ const sign$4 = val < 0 ? -1 : 1;
45259
+ let absVal = Math.abs(val);
45260
+ const whole = Math.floor(absVal);
45261
+ absVal -= whole;
45262
+ if (absVal < 1e-10) return [
45263
+ sign$4 * whole,
45264
+ 0,
45265
+ 1
45266
+ ];
45267
+ let p0 = 0, p1 = 1;
45268
+ let q0 = 1, q1 = 0;
45269
+ let a = Math.floor(absVal);
45270
+ let p$1 = a;
45271
+ let q = 1;
45272
+ while (q1 < maxDenom) {
45273
+ a = Math.floor(absVal);
45274
+ p$1 = a * p1 + p0;
45275
+ q = a * q1 + q0;
45276
+ if (absVal - a < 1e-10) break;
45277
+ absVal = 1 / (absVal - a);
45278
+ p0 = p1;
45279
+ p1 = p$1;
45280
+ q0 = q1;
45281
+ q1 = q;
45282
+ }
45283
+ if (q > maxDenom) {
45284
+ q = q1;
45285
+ p$1 = p1;
45286
+ }
45287
+ return [
45288
+ sign$4 * whole,
45289
+ sign$4 * p$1,
45290
+ q
45291
+ ];
45292
+ }
45293
+ /**
45294
+ * Format a number as a fraction
45295
+ * @param val The number to format
45296
+ * @param fmt The format string (e.g., "# ?/?", "# ??/??")
45297
+ */
45298
+ function formatFraction(val, fmt) {
45299
+ const sign$4 = val < 0 ? "-" : "";
45300
+ const absVal = Math.abs(val);
45301
+ const fixedDenomMatch = fmt.match(/\?+\s*\/\s*(\d+)/);
45302
+ if (fixedDenomMatch) {
45303
+ const denom$1 = parseInt(fixedDenomMatch[1], 10);
45304
+ const whole$1 = Math.floor(absVal);
45305
+ const frac = absVal - whole$1;
45306
+ const numer$1 = Math.round(frac * denom$1);
45307
+ if (fmt.includes("#") || fmt.includes("0")) {
45308
+ if (numer$1 === 0) return sign$4 + whole$1.toString();
45309
+ return sign$4 + (whole$1 > 0 ? whole$1 + " " : "") + numer$1 + "/" + denom$1;
45310
+ }
45311
+ return sign$4 + (whole$1 * denom$1 + numer$1) + "/" + denom$1;
45312
+ }
45313
+ const denomMatch = fmt.match(/\/\s*(\?+)/);
45314
+ const maxDigits = denomMatch ? denomMatch[1].length : 2;
45315
+ const [whole, numer, denom] = toFraction(absVal, Math.pow(10, maxDigits) - 1);
45316
+ if (fmt.includes("#") && whole !== 0) {
45317
+ if (numer === 0) return sign$4 + Math.abs(whole).toString();
45318
+ return sign$4 + Math.abs(whole) + " " + Math.abs(numer) + "/" + denom;
45319
+ }
45320
+ if (numer === 0) return whole === 0 ? "0" : sign$4 + Math.abs(whole).toString();
45321
+ return sign$4 + (Math.abs(whole) * denom + Math.abs(numer)) + "/" + denom;
45322
+ }
45323
+ /**
45324
+ * Format elapsed time (e.g., [h]:mm:ss for durations > 24 hours)
45325
+ */
45326
+ function formatElapsedTime(serial, fmt) {
45327
+ const totalSeconds = Math.round(serial * 86400);
45328
+ const totalMinutes = Math.floor(totalSeconds / 60);
45329
+ const totalHours = Math.floor(totalMinutes / 60);
45330
+ const seconds = totalSeconds % 60;
45331
+ const minutes = totalMinutes % 60;
45332
+ const hours = totalHours;
45333
+ let result = fmt;
45334
+ if (/\[h+\]/i.test(result)) result = result.replace(/\[h+\]/gi, hours.toString());
45335
+ if (/\[m+\]/i.test(result)) result = result.replace(/\[m+\]/gi, totalMinutes.toString());
45336
+ if (/\[s+\]/i.test(result)) result = result.replace(/\[s+\]/gi, totalSeconds.toString());
45337
+ result = result.replace(/mm/gi, minutes.toString().padStart(2, "0"));
45338
+ result = result.replace(/ss/gi, seconds.toString().padStart(2, "0"));
45339
+ return result;
45340
+ }
45341
+ /**
45342
+ * Format a number with the given pattern
45343
+ * Handles patterns like "0", "00", "#,##0", "0-0", "000-0000" etc.
45344
+ */
45345
+ function formatNumberPattern(val, fmt) {
45346
+ const absVal = Math.abs(val);
45347
+ const sign$4 = val < 0 ? "-" : "";
45348
+ let trailingCommas = 0;
45349
+ let workFmt = fmt;
45350
+ while (workFmt.endsWith(",")) {
45351
+ trailingCommas++;
45352
+ workFmt = workFmt.slice(0, -1);
45353
+ }
45354
+ const scaledVal = absVal / Math.pow(1e3, trailingCommas);
45355
+ const decimalIdx = workFmt.indexOf(".");
45356
+ let intFmt = workFmt;
45357
+ let decFmt = "";
45358
+ if (decimalIdx !== -1) {
45359
+ intFmt = workFmt.substring(0, decimalIdx);
45360
+ decFmt = workFmt.substring(decimalIdx + 1);
45361
+ }
45362
+ const decimalPlaces = decFmt.replace(/[^0#?]/g, "").length;
45363
+ const [intPart, decPart = ""] = roundTo(scaledVal, decimalPlaces).toString().split(".");
45364
+ const hasLiteralInFormat = /[0#?][^0#?,.\s][0#?]/.test(intFmt);
45365
+ let formattedInt;
45366
+ if (hasLiteralInFormat) {
45367
+ const digitPlaceholders = intFmt.replace(/[^0#?]/g, "").length;
45368
+ let digits = intPart;
45369
+ if (digits.length < digitPlaceholders) digits = "0".repeat(digitPlaceholders - digits.length) + digits;
45370
+ formattedInt = "";
45371
+ let digitIndex = digits.length - digitPlaceholders;
45372
+ for (let i$2 = 0; i$2 < intFmt.length; i$2++) {
45373
+ const char = intFmt[i$2];
45374
+ if (char === "0" || char === "#" || char === "?") {
45375
+ if (digitIndex < digits.length) {
45376
+ formattedInt += digits[digitIndex];
45377
+ digitIndex++;
45378
+ }
45379
+ } else if (char !== ",") formattedInt += char;
45380
+ }
45381
+ } else {
45382
+ formattedInt = intPart;
45383
+ if (intFmt.includes(",")) formattedInt = commaify(intPart);
45384
+ const minIntDigits = (intFmt.match(/0/g) || []).length;
45385
+ if (formattedInt.length < minIntDigits) formattedInt = "0".repeat(minIntDigits - formattedInt.length) + formattedInt;
45386
+ }
45387
+ let formattedDec = "";
45388
+ if (decimalPlaces > 0) formattedDec = "." + (decPart + "0".repeat(decimalPlaces)).substring(0, decimalPlaces);
45389
+ return sign$4 + formattedInt + formattedDec;
45390
+ }
45391
+ /**
45392
+ * Remove quoted literal text markers and return the literal characters
45393
+ * Also handles backslash escape sequences
45394
+ */
45395
+ function processQuotedText(fmt) {
45396
+ let result = "";
45397
+ let i$2 = 0;
45398
+ while (i$2 < fmt.length) if (fmt[i$2] === "\"") {
45399
+ i$2++;
45400
+ while (i$2 < fmt.length && fmt[i$2] !== "\"") {
45401
+ result += fmt[i$2];
45402
+ i$2++;
45403
+ }
45404
+ i$2++;
45405
+ } else if (fmt[i$2] === "\\" && i$2 + 1 < fmt.length) {
45406
+ i$2++;
45407
+ result += fmt[i$2];
45408
+ i$2++;
45409
+ } else {
45410
+ result += fmt[i$2];
45411
+ i$2++;
45412
+ }
45413
+ return result;
45414
+ }
45415
+ /**
45416
+ * Check if a condition matches (e.g., [>100], [<=50])
45417
+ */
45418
+ function checkCondition(val, condition) {
45419
+ const match = condition.match(/\[(=|>|<|>=|<=|<>)(-?\d+(?:\.\d*)?)\]/);
45420
+ if (!match) return false;
45421
+ const op = match[1];
45422
+ const threshold = parseFloat(match[2]);
45423
+ switch (op) {
45424
+ case "=": return val === threshold;
45425
+ case ">": return val > threshold;
45426
+ case "<": return val < threshold;
45427
+ case ">=": return val >= threshold;
45428
+ case "<=": return val <= threshold;
45429
+ case "<>": return val !== threshold;
45430
+ default: return false;
45431
+ }
45432
+ }
45433
+ /**
45434
+ * Parse format string and handle positive/negative/zero/text sections
45435
+ * Excel format: positive;negative;zero;text
45436
+ * Also handles conditional formats like [>100]
45437
+ */
45438
+ function chooseFormat(fmt, val) {
45439
+ if (typeof val === "string") {
45440
+ const sections$1 = splitFormat(fmt);
45441
+ if (sections$1.length >= 4 && sections$1[3]) return processQuotedText(sections$1[3]).replace(/@/g, val);
45442
+ return val;
45443
+ }
45444
+ if (typeof val === "boolean") return val ? "TRUE" : "FALSE";
45445
+ const sections = splitFormat(fmt);
45446
+ const condRegex = /\[(=|>|<|>=|<=|<>)-?\d+(?:\.\d*)?\]/;
45447
+ if ((sections[0] && condRegex.test(sections[0]) || sections[1] && condRegex.test(sections[1])) && sections.length >= 2) {
45448
+ for (let i$2 = 0; i$2 < Math.min(sections.length, 2); i$2++) {
45449
+ const condMatch = sections[i$2].match(/\[(=|>|<|>=|<=|<>)-?\d+(?:\.\d*)?\]/);
45450
+ if (condMatch && checkCondition(val, condMatch[0])) return sections[i$2];
45451
+ }
45452
+ return sections[sections.length > 2 ? 2 : 1];
45453
+ }
45454
+ if (sections.length === 1) return sections[0];
45455
+ if (sections.length === 2) return val >= 0 ? sections[0] : sections[1];
45456
+ if (val > 0) return sections[0];
45457
+ if (val < 0) return sections[1];
45458
+ return sections[2] || sections[0];
45459
+ }
45460
+ /**
45461
+ * Check if format section is for negative values (2nd section in multi-section format)
45462
+ */
45463
+ function isNegativeSection(fmt, selectedFmt) {
45464
+ const sections = splitFormat(fmt);
45465
+ return sections.length >= 2 && sections[1] === selectedFmt;
45466
+ }
45467
+ /**
45468
+ * Split format string by semicolons, respecting quoted strings and brackets
45469
+ */
45470
+ function splitFormat(fmt) {
45471
+ const sections = [];
45472
+ let current = "";
45473
+ let inQuote = false;
45474
+ let inBracket = false;
45475
+ for (let i$2 = 0; i$2 < fmt.length; i$2++) {
45476
+ const char = fmt[i$2];
45477
+ if (char === "\"" && !inBracket) {
45478
+ inQuote = !inQuote;
45479
+ current += char;
45480
+ } else if (char === "[" && !inQuote) {
45481
+ inBracket = true;
45482
+ current += char;
45483
+ } else if (char === "]" && !inQuote) {
45484
+ inBracket = false;
45485
+ current += char;
45486
+ } else if (char === ";" && !inQuote && !inBracket) {
45487
+ sections.push(current);
45488
+ current = "";
45489
+ } else current += char;
45490
+ }
45491
+ sections.push(current);
45492
+ return sections;
45493
+ }
45494
+ /**
45495
+ * Main format function - formats a value according to Excel numFmt
45496
+ * @param fmt The Excel number format string (e.g., "0.00%", "#,##0", "yyyy-mm-dd")
45497
+ * @param val The value to format
45498
+ */
45499
+ function format(fmt, val) {
45500
+ if (val == null) return "";
45501
+ if (isGeneral(fmt)) return formatGeneral(val);
45502
+ if (typeof val === "string") return chooseFormat(fmt, val);
45503
+ if (typeof val === "boolean") return val ? "TRUE" : "FALSE";
45504
+ let numVal = val;
45505
+ const selectedFmt = chooseFormat(fmt, numVal);
45506
+ if (numVal < 0 && isNegativeSection(fmt, selectedFmt)) numVal = Math.abs(numVal);
45507
+ let cleanFmt = selectedFmt.replace(/\[(Red|Green|Blue|Yellow|Magenta|Cyan|White|Black|Color\d+)\]/gi, "");
45508
+ cleanFmt = cleanFmt.replace(/\[(>|<|>=|<=|=|<>)-?\d+(\.\d+)?\]/g, "");
45509
+ cleanFmt = cleanFmt.replace(/\[\$[^\]]*\]/g, "");
45510
+ cleanFmt = processPlaceholders(cleanFmt);
45511
+ cleanFmt = processQuotedText(cleanFmt);
45512
+ if (/\[[hms]+\]/i.test(cleanFmt)) return formatElapsedTime(numVal, cleanFmt);
45513
+ if (isDateFormat(cleanFmt)) return formatDate(numVal, cleanFmt);
45514
+ if (cleanFmt.includes("%")) return formatPercentage(numVal, cleanFmt);
45515
+ if (/E[+-]?/i.test(cleanFmt)) return formatScientific(numVal, cleanFmt);
45516
+ if (/\?+\s*\/\s*[\d?]+/.test(cleanFmt)) return formatFraction(numVal, cleanFmt);
45517
+ if (cleanFmt.includes("(") && cleanFmt.includes(")") && numVal < 0) {
45518
+ const innerFmt = cleanFmt.replace(/\(|\)/g, "");
45519
+ return "(" + formatNumberPattern(-numVal, innerFmt) + ")";
45520
+ }
45521
+ if (cleanFmt === "@") return numVal.toString();
45522
+ let prefix = "";
45523
+ let suffix = "";
45524
+ const prefixMatch = cleanFmt.match(/^([^#0?.,]+)/);
45525
+ if (prefixMatch) {
45526
+ prefix = prefixMatch[1];
45527
+ cleanFmt = cleanFmt.substring(prefixMatch[0].length);
45528
+ }
45529
+ const suffixMatch = cleanFmt.match(/([^#0?.,]+)$/);
45530
+ if (suffixMatch && !suffixMatch[1].includes("%")) {
45531
+ suffix = suffixMatch[1];
45532
+ cleanFmt = cleanFmt.substring(0, cleanFmt.length - suffixMatch[0].length);
45533
+ }
45534
+ const formattedNum = formatNumberPattern(numVal, cleanFmt);
45535
+ return prefix + formattedNum + suffix;
45536
+ }
45537
+
45538
+ //#endregion
45539
+ //#region src/utils/sheet-utils.ts
45035
45540
  /**
45036
45541
  * Utility functions for ExcelTS
45037
45542
  * Provides convenient helper functions for common spreadsheet operations
45038
- * compatible with xlsx library's utils API but built on excelts native types
45039
45543
  */
45040
45544
  /**
45545
+ * Get formatted display text for a cell value
45546
+ * Returns the value formatted according to the cell's numFmt
45547
+ * This matches Excel's display exactly
45548
+ */
45549
+ function getCellDisplayText(cell) {
45550
+ const value = cell.value;
45551
+ const fmt = cell.numFmt || "General";
45552
+ if (value == null) return "";
45553
+ if (value instanceof Date) return format(fmt, dateToExcel(value, false));
45554
+ if (typeof value === "number" || typeof value === "boolean" || typeof value === "string") return format(fmt, value);
45555
+ return cell.text;
45556
+ }
45557
+ /**
45041
45558
  * Decode column string to 0-indexed number
45042
- * @example decode_col("A") => 0, decode_col("Z") => 25, decode_col("AA") => 26
45559
+ * @example decodeCol("A") => 0, decodeCol("Z") => 25, decodeCol("AA") => 26
45043
45560
  */
45044
- function decode_col(colstr) {
45561
+ function decodeCol(colstr) {
45045
45562
  return colCache.l2n(colstr.toUpperCase()) - 1;
45046
45563
  }
45047
45564
  /**
45048
45565
  * Encode 0-indexed column number to string
45049
- * @example encode_col(0) => "A", encode_col(25) => "Z", encode_col(26) => "AA"
45566
+ * @example encodeCol(0) => "A", encodeCol(25) => "Z", encodeCol(26) => "AA"
45050
45567
  */
45051
- function encode_col(col) {
45568
+ function encodeCol(col) {
45052
45569
  return colCache.n2l(col + 1);
45053
45570
  }
45054
45571
  /**
45055
45572
  * Decode row string to 0-indexed number
45056
- * @example decode_row("1") => 0, decode_row("10") => 9
45573
+ * @example decodeRow("1") => 0, decodeRow("10") => 9
45057
45574
  */
45058
- function decode_row(rowstr) {
45575
+ function decodeRow(rowstr) {
45059
45576
  return parseInt(rowstr, 10) - 1;
45060
45577
  }
45061
45578
  /**
45062
45579
  * Encode 0-indexed row number to string
45063
- * @example encode_row(0) => "1", encode_row(9) => "10"
45580
+ * @example encodeRow(0) => "1", encodeRow(9) => "10"
45064
45581
  */
45065
- function encode_row(row) {
45582
+ function encodeRow(row) {
45066
45583
  return String(row + 1);
45067
45584
  }
45068
45585
  /**
45069
45586
  * Decode cell address string to CellAddress object
45070
- * @example decode_cell("A1") => {c: 0, r: 0}, decode_cell("B2") => {c: 1, r: 1}
45587
+ * @example decodeCell("A1") => {c: 0, r: 0}, decodeCell("B2") => {c: 1, r: 1}
45071
45588
  */
45072
- function decode_cell(cstr) {
45589
+ function decodeCell(cstr) {
45073
45590
  const addr = colCache.decodeAddress(cstr.toUpperCase());
45074
45591
  return {
45075
45592
  c: addr.col - 1,
@@ -45078,44 +45595,44 @@ ${XMLNS_NAMESPACE}.`);
45078
45595
  }
45079
45596
  /**
45080
45597
  * Encode CellAddress object to cell address string
45081
- * @example encode_cell({c: 0, r: 0}) => "A1", encode_cell({c: 1, r: 1}) => "B2"
45598
+ * @example encodeCell({c: 0, r: 0}) => "A1", encodeCell({c: 1, r: 1}) => "B2"
45082
45599
  */
45083
- function encode_cell(cell) {
45600
+ function encodeCell(cell) {
45084
45601
  return colCache.encodeAddress(cell.r + 1, cell.c + 1);
45085
45602
  }
45086
45603
  /**
45087
45604
  * Decode range string to Range object
45088
- * @example decode_range("A1:B2") => {s: {c: 0, r: 0}, e: {c: 1, r: 1}}
45605
+ * @example decodeRange("A1:B2") => {s: {c: 0, r: 0}, e: {c: 1, r: 1}}
45089
45606
  */
45090
- function decode_range(range$1) {
45607
+ function decodeRange(range$1) {
45091
45608
  const idx = range$1.indexOf(":");
45092
45609
  if (idx === -1) {
45093
- const cell = decode_cell(range$1);
45610
+ const cell = decodeCell(range$1);
45094
45611
  return {
45095
45612
  s: cell,
45096
45613
  e: { ...cell }
45097
45614
  };
45098
45615
  }
45099
45616
  return {
45100
- s: decode_cell(range$1.slice(0, idx)),
45101
- e: decode_cell(range$1.slice(idx + 1))
45617
+ s: decodeCell(range$1.slice(0, idx)),
45618
+ e: decodeCell(range$1.slice(idx + 1))
45102
45619
  };
45103
45620
  }
45104
- function encode_range(startOrRange, end) {
45621
+ function encodeRange(startOrRange, end) {
45105
45622
  if (end === void 0) {
45106
45623
  const range$1 = startOrRange;
45107
- return encode_range(range$1.s, range$1.e);
45624
+ return encodeRange(range$1.s, range$1.e);
45108
45625
  }
45109
- const startStr = encode_cell(startOrRange);
45110
- const endStr = encode_cell(end);
45626
+ const startStr = encodeCell(startOrRange);
45627
+ const endStr = encodeCell(end);
45111
45628
  return startStr === endStr ? startStr : `${startStr}:${endStr}`;
45112
45629
  }
45113
45630
  /**
45114
45631
  * Create a worksheet from an array of objects (xlsx compatible)
45115
45632
  * @example
45116
- * const ws = json_to_sheet([{name: "Alice", age: 30}, {name: "Bob", age: 25}])
45633
+ * const ws = jsonToSheet([{name: "Alice", age: 30}, {name: "Bob", age: 25}])
45117
45634
  */
45118
- function json_to_sheet(data, opts) {
45635
+ function jsonToSheet(data, opts) {
45119
45636
  const o = opts || {};
45120
45637
  const worksheet = new Workbook().addWorksheet("Sheet1");
45121
45638
  if (data.length === 0) return worksheet;
@@ -45145,13 +45662,13 @@ ${XMLNS_NAMESPACE}.`);
45145
45662
  /**
45146
45663
  * Add data from an array of objects to an existing worksheet (xlsx compatible)
45147
45664
  */
45148
- function sheet_add_json(worksheet, data, opts) {
45665
+ function sheetAddJson(worksheet, data, opts) {
45149
45666
  const o = opts || {};
45150
45667
  if (data.length === 0) return worksheet;
45151
45668
  let startRow = 1;
45152
45669
  let startCol = 1;
45153
45670
  if (o.origin !== void 0) if (typeof o.origin === "string") {
45154
- const addr = decode_cell(o.origin);
45671
+ const addr = decodeCell(o.origin);
45155
45672
  startRow = addr.r + 1;
45156
45673
  startCol = addr.c + 1;
45157
45674
  } else if (typeof o.origin === "number") if (o.origin === -1) startRow = worksheet.rowCount + 1;
@@ -45187,18 +45704,18 @@ ${XMLNS_NAMESPACE}.`);
45187
45704
  * Convert worksheet to JSON array (xlsx compatible)
45188
45705
  * @example
45189
45706
  * // Default: array of objects with first row as headers
45190
- * const data = sheet_to_json(worksheet)
45707
+ * const data = sheetToJson(worksheet)
45191
45708
  * // => [{name: "Alice", age: 30}, {name: "Bob", age: 25}]
45192
45709
  *
45193
45710
  * // Array of arrays
45194
- * const aoa = sheet_to_json(worksheet, { header: 1 })
45711
+ * const aoa = sheetToJson(worksheet, { header: 1 })
45195
45712
  * // => [["name", "age"], ["Alice", 30], ["Bob", 25]]
45196
45713
  *
45197
45714
  * // Column letters as keys
45198
- * const cols = sheet_to_json(worksheet, { header: "A" })
45715
+ * const cols = sheetToJson(worksheet, { header: "A" })
45199
45716
  * // => [{A: "name", B: "age"}, {A: "Alice", B: 30}]
45200
45717
  */
45201
- function sheet_to_json(worksheet, opts) {
45718
+ function sheetToJson(worksheet, opts) {
45202
45719
  const o = opts || {};
45203
45720
  let startRow = 1;
45204
45721
  let endRow = worksheet.rowCount;
@@ -45207,7 +45724,7 @@ ${XMLNS_NAMESPACE}.`);
45207
45724
  if (o.range !== void 0) {
45208
45725
  if (typeof o.range === "number") startRow = o.range + 1;
45209
45726
  else if (typeof o.range === "string") {
45210
- const r$2 = decode_range(o.range);
45727
+ const r$2 = decodeRange(o.range);
45211
45728
  startRow = r$2.s.r + 1;
45212
45729
  endRow = r$2.e.r + 1;
45213
45730
  startCol = r$2.s.c + 1;
@@ -45223,8 +45740,9 @@ ${XMLNS_NAMESPACE}.`);
45223
45740
  const rowData = [];
45224
45741
  let isEmpty = true;
45225
45742
  for (let col = startCol; col <= endCol; col++) {
45226
- const val = worksheet.getCell(row, col).value;
45227
- if (val != null) {
45743
+ const cell = worksheet.getCell(row, col);
45744
+ const val = o.raw === false ? getCellDisplayText(cell).trim() : cell.value;
45745
+ if (val != null && val !== "") {
45228
45746
  rowData[col - startCol] = val;
45229
45747
  isEmpty = false;
45230
45748
  } else if (o.defval !== void 0) rowData[col - startCol] = o.defval;
@@ -45241,9 +45759,10 @@ ${XMLNS_NAMESPACE}.`);
45241
45759
  const rowData = {};
45242
45760
  let isEmpty = true;
45243
45761
  for (let col = startCol; col <= endCol; col++) {
45244
- const val = worksheet.getCell(row, col).value;
45245
- const key$1 = encode_col(col - 1);
45246
- if (val != null) {
45762
+ const cell = worksheet.getCell(row, col);
45763
+ const val = o.raw === false ? getCellDisplayText(cell).trim() : cell.value;
45764
+ const key$1 = encodeCol(col - 1);
45765
+ if (val != null && val !== "") {
45247
45766
  rowData[key$1] = val;
45248
45767
  isEmpty = false;
45249
45768
  } else if (o.defval !== void 0) rowData[key$1] = o.defval;
@@ -45261,8 +45780,9 @@ ${XMLNS_NAMESPACE}.`);
45261
45780
  for (let col = startCol; col <= endCol; col++) {
45262
45781
  const colIdx = col - startCol;
45263
45782
  const key$1 = headerOpt[colIdx] ?? `__EMPTY_${colIdx}`;
45264
- const val = worksheet.getCell(row, col).value;
45265
- if (val != null) {
45783
+ const cell = worksheet.getCell(row, col);
45784
+ const val = o.raw === false ? getCellDisplayText(cell).trim() : cell.value;
45785
+ if (val != null && val !== "") {
45266
45786
  rowData[key$1] = val;
45267
45787
  isEmpty = false;
45268
45788
  } else if (o.defval !== void 0) rowData[key$1] = o.defval;
@@ -45289,9 +45809,10 @@ ${XMLNS_NAMESPACE}.`);
45289
45809
  const rowData = {};
45290
45810
  let isEmpty = true;
45291
45811
  for (let col = startCol; col <= endCol; col++) {
45292
- const val = worksheet.getCell(row, col).value;
45812
+ const cell = worksheet.getCell(row, col);
45813
+ const val = o.raw === false ? getCellDisplayText(cell).trim() : cell.value;
45293
45814
  const key$1 = headers[col - startCol];
45294
- if (val != null) {
45815
+ if (val != null && val !== "") {
45295
45816
  rowData[key$1] = val;
45296
45817
  isEmpty = false;
45297
45818
  } else if (o.defval !== void 0) rowData[key$1] = o.defval;
@@ -45303,7 +45824,7 @@ ${XMLNS_NAMESPACE}.`);
45303
45824
  /**
45304
45825
  * Convert worksheet to CSV string
45305
45826
  */
45306
- function sheet_to_csv(worksheet, opts) {
45827
+ function sheetToCsv(worksheet, opts) {
45307
45828
  const o = opts || {};
45308
45829
  const FS = o.FS ?? ",";
45309
45830
  const RS = o.RS ?? "\n";
@@ -45333,17 +45854,17 @@ ${XMLNS_NAMESPACE}.`);
45333
45854
  /**
45334
45855
  * Create a new workbook
45335
45856
  */
45336
- function book_new() {
45857
+ function bookNew() {
45337
45858
  return new Workbook();
45338
45859
  }
45339
45860
  /**
45340
45861
  * Append worksheet to workbook (xlsx compatible)
45341
45862
  * @example
45342
- * const wb = book_new();
45343
- * const ws = json_to_sheet([{a: 1, b: 2}]);
45344
- * book_append_sheet(wb, ws, "Sheet1");
45863
+ * const wb = bookNew();
45864
+ * const ws = jsonToSheet([{a: 1, b: 2}]);
45865
+ * bookAppendSheet(wb, ws, "Sheet1");
45345
45866
  */
45346
- function book_append_sheet(workbook, worksheet, name) {
45867
+ function bookAppendSheet(workbook, worksheet, name) {
45347
45868
  const newWs = workbook.addWorksheet(name);
45348
45869
  worksheet.eachRow({ includeEmpty: true }, (row, rowNumber) => {
45349
45870
  row.eachCell({ includeEmpty: true }, (cell, colNumber) => {
@@ -45361,15 +45882,15 @@ ${XMLNS_NAMESPACE}.`);
45361
45882
  /**
45362
45883
  * Create a worksheet from an array of arrays (xlsx compatible)
45363
45884
  * @example
45364
- * const ws = aoa_to_sheet([["Name", "Age"], ["Alice", 30], ["Bob", 25]])
45885
+ * const ws = aoaToSheet([["Name", "Age"], ["Alice", 30], ["Bob", 25]])
45365
45886
  */
45366
- function aoa_to_sheet(data, opts) {
45887
+ function aoaToSheet(data, opts) {
45367
45888
  const worksheet = new Workbook().addWorksheet("Sheet1");
45368
45889
  if (data.length === 0) return worksheet;
45369
45890
  let startRow = 1;
45370
45891
  let startCol = 1;
45371
45892
  if (opts?.origin !== void 0) if (typeof opts.origin === "string") {
45372
- const addr = decode_cell(opts.origin);
45893
+ const addr = decodeCell(opts.origin);
45373
45894
  startRow = addr.r + 1;
45374
45895
  startCol = addr.c + 1;
45375
45896
  } else if (typeof opts.origin === "number") startRow = opts.origin + 1;
@@ -45388,12 +45909,12 @@ ${XMLNS_NAMESPACE}.`);
45388
45909
  /**
45389
45910
  * Add data from an array of arrays to an existing worksheet (xlsx compatible)
45390
45911
  */
45391
- function sheet_add_aoa(worksheet, data, opts) {
45912
+ function sheetAddAoa(worksheet, data, opts) {
45392
45913
  if (data.length === 0) return worksheet;
45393
45914
  let startRow = 1;
45394
45915
  let startCol = 1;
45395
45916
  if (opts?.origin !== void 0) if (typeof opts.origin === "string") {
45396
- const addr = decode_cell(opts.origin);
45917
+ const addr = decodeCell(opts.origin);
45397
45918
  startRow = addr.r + 1;
45398
45919
  startCol = addr.c + 1;
45399
45920
  } else if (typeof opts.origin === "number") if (opts.origin === -1) startRow = worksheet.rowCount + 1;
@@ -45413,7 +45934,7 @@ ${XMLNS_NAMESPACE}.`);
45413
45934
  /**
45414
45935
  * Convert worksheet to array of arrays
45415
45936
  */
45416
- function sheet_to_aoa(worksheet) {
45937
+ function sheetToAoa(worksheet) {
45417
45938
  const result = [];
45418
45939
  worksheet.eachRow({ includeEmpty: true }, (row, rowNumber) => {
45419
45940
  const rowData = [];
@@ -45425,23 +45946,23 @@ ${XMLNS_NAMESPACE}.`);
45425
45946
  return result;
45426
45947
  }
45427
45948
  const utils = {
45428
- decode_col,
45429
- encode_col,
45430
- decode_row,
45431
- encode_row,
45432
- decode_cell,
45433
- encode_cell,
45434
- decode_range,
45435
- encode_range,
45436
- json_to_sheet,
45437
- sheet_add_json,
45438
- sheet_to_json,
45439
- sheet_to_csv,
45440
- aoa_to_sheet,
45441
- sheet_add_aoa,
45442
- sheet_to_aoa,
45443
- book_new,
45444
- book_append_sheet
45949
+ decodeCol,
45950
+ encodeCol,
45951
+ decodeRow,
45952
+ encodeRow,
45953
+ decodeCell,
45954
+ encodeCell,
45955
+ decodeRange,
45956
+ encodeRange,
45957
+ jsonToSheet,
45958
+ sheetAddJson,
45959
+ sheetToJson,
45960
+ sheetToCsv,
45961
+ aoaToSheet,
45962
+ sheetAddAoa,
45963
+ sheetToAoa,
45964
+ bookNew,
45965
+ bookAppendSheet
45445
45966
  };
45446
45967
 
45447
45968
  //#endregion
@@ -45454,23 +45975,23 @@ exports.ReadingOrder = ReadingOrder;
45454
45975
  exports.RelationshipType = RelationshipType;
45455
45976
  exports.ValueType = ValueType;
45456
45977
  exports.Workbook = Workbook;
45457
- exports.aoa_to_sheet = aoa_to_sheet;
45458
- exports.book_append_sheet = book_append_sheet;
45459
- exports.book_new = book_new;
45460
- exports.decode_cell = decode_cell;
45461
- exports.decode_col = decode_col;
45462
- exports.decode_range = decode_range;
45463
- exports.decode_row = decode_row;
45464
- exports.encode_cell = encode_cell;
45465
- exports.encode_col = encode_col;
45466
- exports.encode_range = encode_range;
45467
- exports.encode_row = encode_row;
45468
- exports.json_to_sheet = json_to_sheet;
45469
- exports.sheet_add_aoa = sheet_add_aoa;
45470
- exports.sheet_add_json = sheet_add_json;
45471
- exports.sheet_to_aoa = sheet_to_aoa;
45472
- exports.sheet_to_csv = sheet_to_csv;
45473
- exports.sheet_to_json = sheet_to_json;
45978
+ exports.aoaToSheet = aoaToSheet;
45979
+ exports.bookAppendSheet = bookAppendSheet;
45980
+ exports.bookNew = bookNew;
45981
+ exports.decodeCell = decodeCell;
45982
+ exports.decodeCol = decodeCol;
45983
+ exports.decodeRange = decodeRange;
45984
+ exports.decodeRow = decodeRow;
45985
+ exports.encodeCell = encodeCell;
45986
+ exports.encodeCol = encodeCol;
45987
+ exports.encodeRange = encodeRange;
45988
+ exports.encodeRow = encodeRow;
45989
+ exports.jsonToSheet = jsonToSheet;
45990
+ exports.sheetAddAoa = sheetAddAoa;
45991
+ exports.sheetAddJson = sheetAddJson;
45992
+ exports.sheetToAoa = sheetToAoa;
45993
+ exports.sheetToCsv = sheetToCsv;
45994
+ exports.sheetToJson = sheetToJson;
45474
45995
  exports.utils = utils;
45475
45996
  return exports;
45476
45997
  })({});