pdfkit 0.17.0 → 0.17.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -223,8 +223,18 @@ class PDFReference extends PDFAbstractReference {
223
223
  }
224
224
  }
225
225
 
226
+ const fArray = new Float32Array(1);
227
+ const uArray = new Uint32Array(fArray.buffer);
226
228
  function PDFNumber(n) {
227
- return Math.fround(n);
229
+ const rounded = Math.fround(n);
230
+ if (rounded <= n) return rounded;
231
+ fArray[0] = n;
232
+ if (n <= 0) {
233
+ uArray[0] += 1;
234
+ } else {
235
+ uArray[0] -= 1;
236
+ }
237
+ return fArray[0];
228
238
  }
229
239
  function normalizeSides(sides, defaultDefinition = undefined, transformer = v => v) {
230
240
  if (sides == null || typeof sides === 'object' && Object.keys(sides).length === 0) {
@@ -2139,20 +2149,12 @@ oslash ugrave uacute ucircumflex
2139
2149
  udieresis yacute thorn ydieresis\
2140
2150
  `.split(/\s+/);
2141
2151
  class AFMFont {
2142
- static open(filename) {
2143
- return new AFMFont(fs.readFileSync(filename, 'utf8'));
2144
- }
2145
2152
  constructor(contents) {
2146
- this.contents = contents;
2147
2153
  this.attributes = {};
2148
2154
  this.glyphWidths = {};
2149
2155
  this.boundingBoxes = {};
2150
2156
  this.kernPairs = {};
2151
- this.parse();
2152
- this.charWidths = new Array(256);
2153
- for (let char = 0; char <= 255; char++) {
2154
- this.charWidths[char] = this.glyphWidths[characters[char]];
2155
- }
2157
+ this.parse(contents);
2156
2158
  this.bbox = this.attributes['FontBBox'].split(/\s+/).map(e => +e);
2157
2159
  this.ascender = +(this.attributes['Ascender'] || 0);
2158
2160
  this.descender = +(this.attributes['Descender'] || 0);
@@ -2160,9 +2162,9 @@ class AFMFont {
2160
2162
  this.capHeight = +(this.attributes['CapHeight'] || 0);
2161
2163
  this.lineGap = this.bbox[3] - this.bbox[1] - (this.ascender - this.descender);
2162
2164
  }
2163
- parse() {
2165
+ parse(contents) {
2164
2166
  let section = '';
2165
- for (let line of this.contents.split('\n')) {
2167
+ for (let line of contents.split('\n')) {
2166
2168
  var match;
2167
2169
  var a;
2168
2170
  if (match = line.match(/^Start(\w+)/)) {
@@ -2815,7 +2817,7 @@ class LineWrapper extends events.EventEmitter {
2815
2817
  });
2816
2818
  }
2817
2819
  wordWidth(word) {
2818
- return this.document.widthOfString(word, this) + this.characterSpacing + this.wordSpacing;
2820
+ return PDFNumber(this.document.widthOfString(word, this) + this.characterSpacing + this.wordSpacing);
2819
2821
  }
2820
2822
  canFit(word, w) {
2821
2823
  if (word[word.length - 1] != SOFT_HYPHEN) {
@@ -2956,12 +2958,14 @@ class LineWrapper extends events.EventEmitter {
2956
2958
  }
2957
2959
  emitLine();
2958
2960
  if (PDFNumber(this.document.y + lh) > this.maxY) {
2961
+ this.emit('sectionEnd', options, this);
2959
2962
  const shouldContinue = this.nextSection();
2960
2963
  if (!shouldContinue) {
2961
2964
  wc = 0;
2962
2965
  buffer = '';
2963
2966
  return false;
2964
2967
  }
2968
+ this.emit('sectionStart', options, this);
2965
2969
  }
2966
2970
  if (bk.required) {
2967
2971
  this.spaceLeft = this.lineWidth;
@@ -2994,7 +2998,6 @@ class LineWrapper extends events.EventEmitter {
2994
2998
  }
2995
2999
  }
2996
3000
  nextSection(options) {
2997
- this.emit('sectionEnd', options, this);
2998
3001
  if (++this.column > this.columns) {
2999
3002
  if (this.height != null) {
3000
3003
  return false;
@@ -3013,7 +3016,6 @@ class LineWrapper extends events.EventEmitter {
3013
3016
  this.document.y = this.startY;
3014
3017
  this.emit('columnBreak', options, this);
3015
3018
  }
3016
- this.emit('sectionStart', options, this);
3017
3019
  return true;
3018
3020
  }
3019
3021
  }
@@ -3021,6 +3023,15 @@ class LineWrapper extends events.EventEmitter {
3021
3023
  const {
3022
3024
  number
3023
3025
  } = PDFObject;
3026
+ function formatListLabel(n, listType) {
3027
+ if (listType === 'numbered') {
3028
+ return `${n}.`;
3029
+ }
3030
+ var letter = String.fromCharCode((n - 1) % 26 + 65);
3031
+ var times = Math.floor((n - 1) / 26 + 1);
3032
+ var text = Array(times + 1).join(letter);
3033
+ return `${text}.`;
3034
+ }
3024
3035
  var TextMixin = {
3025
3036
  initText() {
3026
3037
  this._line = this._line.bind(this);
@@ -3197,7 +3208,7 @@ var TextMixin = {
3197
3208
  this.y = y;
3198
3209
  return height;
3199
3210
  },
3200
- list(list, x, y, options, wrapper) {
3211
+ list(list, x, y, options) {
3201
3212
  options = this._initOptions(x, y, options);
3202
3213
  const listType = options.listType || 'bullet';
3203
3214
  const unit = Math.round(this._font.ascender / 1000 * this._fontSize);
@@ -3227,19 +3238,8 @@ var TextMixin = {
3227
3238
  }
3228
3239
  };
3229
3240
  flatten(list);
3230
- const label = function (n) {
3231
- switch (listType) {
3232
- case 'numbered':
3233
- return `${n}.`;
3234
- case 'lettered':
3235
- var letter = String.fromCharCode((n - 1) % 26 + 65);
3236
- var times = Math.floor((n - 1) / 26 + 1);
3237
- var text = Array(times + 1).join(letter);
3238
- return `${text}.`;
3239
- }
3240
- };
3241
3241
  const drawListItem = function (listItem, i) {
3242
- wrapper = new LineWrapper(this, options);
3242
+ const wrapper = new LineWrapper(this, options);
3243
3243
  wrapper.on('line', this._line);
3244
3244
  level = 1;
3245
3245
  wrapper.once('firstLine', () => {
@@ -3274,7 +3274,7 @@ var TextMixin = {
3274
3274
  break;
3275
3275
  case 'numbered':
3276
3276
  case 'lettered':
3277
- var text = label(numbers[i - 1]);
3277
+ var text = formatListLabel(numbers[i - 1], listType);
3278
3278
  this._fragment(text, this.x - indent, this.y, options);
3279
3279
  break;
3280
3280
  }
@@ -3342,11 +3342,11 @@ var TextMixin = {
3342
3342
  },
3343
3343
  _line(text, options = {}, wrapper) {
3344
3344
  this._fragment(text, this.x, this.y, options);
3345
- const lineGap = options.lineGap || this._lineGap || 0;
3346
- if (!wrapper) {
3347
- this.x += this.widthOfString(text, options);
3348
- } else {
3345
+ if (wrapper) {
3346
+ const lineGap = options.lineGap || this._lineGap || 0;
3349
3347
  this.y += this.currentLineHeight(true) + lineGap;
3348
+ } else {
3349
+ this.x += this.widthOfString(text, options);
3350
3350
  }
3351
3351
  },
3352
3352
  _fragment(text, x, y, options) {
@@ -3733,8 +3733,8 @@ class PDFImage {
3733
3733
  } else if (src instanceof ArrayBuffer) {
3734
3734
  data = Buffer.from(new Uint8Array(src));
3735
3735
  } else {
3736
- let match;
3737
- if (match = /^data:.+?;base64,(.*)$/.exec(src)) {
3736
+ const match = /^data:.+?;base64,(.*)$/.exec(src);
3737
+ if (match) {
3738
3738
  data = Buffer.from(match[1], 'base64');
3739
3739
  } else {
3740
3740
  data = fs.readFileSync(src);
@@ -4821,8 +4821,8 @@ var AttachmentsMixin = {
4821
4821
  } else if (src instanceof ArrayBuffer) {
4822
4822
  data = Buffer.from(new Uint8Array(src));
4823
4823
  } else {
4824
- let match;
4825
- if (match = /^data:(.*?);base64,(.*)$/.exec(src)) {
4824
+ const match = /^data:(.*?);base64,(.*)$/.exec(src);
4825
+ if (match) {
4826
4826
  if (match[1]) {
4827
4827
  refBody.Subtype = match[1].replace('/', '#2F');
4828
4828
  }
@@ -5019,7 +5019,7 @@ function deepMerge(target, ...sources) {
5019
5019
  }
5020
5020
  function deepClone(obj) {
5021
5021
  let result = obj;
5022
- if (typeof obj == 'object') {
5022
+ if (obj && typeof obj == 'object') {
5023
5023
  result = Array.isArray(obj) ? [] : {};
5024
5024
  for (const key in obj) result[key] = deepClone(obj[key]);
5025
5025
  }
@@ -6000,7 +6000,7 @@ module.exports = PDFDocument;
6000
6000
 
6001
6001
 
6002
6002
  }).call(this)}).call(this,require("buffer").Buffer)
6003
- },{"buffer":36,"crypto-js":56,"events":94,"fontkit":96,"fs":35,"jpeg-exif":114,"linebreak":116,"png-js":128,"stream":134,"zlib":23}],2:[function(require,module,exports){
6003
+ },{"buffer":36,"crypto-js":56,"events":94,"fontkit":96,"fs":35,"jpeg-exif":118,"linebreak":120,"png-js":135,"stream":142,"zlib":23}],2:[function(require,module,exports){
6004
6004
  "use strict";
6005
6005
 
6006
6006
  function _define_property(obj, key, value) {
@@ -6017,7 +6017,7 @@ exports._ = _define_property;
6017
6017
 
6018
6018
  exports._ = require("tslib").__decorate;
6019
6019
 
6020
- },{"tslib":151}],4:[function(require,module,exports){
6020
+ },{"tslib":159}],4:[function(require,module,exports){
6021
6021
  (function (global){(function (){
6022
6022
  'use strict';
6023
6023
 
@@ -6527,7 +6527,7 @@ var objectKeys = Object.keys || function (obj) {
6527
6527
  };
6528
6528
 
6529
6529
  }).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
6530
- },{"object.assign/polyfill":127,"util/":7}],5:[function(require,module,exports){
6530
+ },{"object.assign/polyfill":134,"util/":7}],5:[function(require,module,exports){
6531
6531
  if (typeof Object.create === 'function') {
6532
6532
  // implementation from standard node.js 'util' module
6533
6533
  module.exports = function inherits(ctor, superCtor) {
@@ -7149,7 +7149,7 @@ function hasOwnProperty(obj, prop) {
7149
7149
  }
7150
7150
 
7151
7151
  }).call(this)}).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
7152
- },{"./support/isBuffer":6,"_process":130,"inherits":5}],8:[function(require,module,exports){
7152
+ },{"./support/isBuffer":6,"_process":137,"inherits":5}],8:[function(require,module,exports){
7153
7153
  (function (global){(function (){
7154
7154
  'use strict';
7155
7155
 
@@ -7170,7 +7170,7 @@ module.exports = function availableTypedArrays() {
7170
7170
  };
7171
7171
 
7172
7172
  }).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
7173
- },{"possible-typed-array-names":129}],9:[function(require,module,exports){
7173
+ },{"possible-typed-array-names":136}],9:[function(require,module,exports){
7174
7174
  'use strict'
7175
7175
 
7176
7176
  exports.byteLength = byteLength
@@ -9586,7 +9586,7 @@ Zlib.prototype._reset = function () {
9586
9586
 
9587
9587
  exports.Zlib = Zlib;
9588
9588
  }).call(this)}).call(this,require('_process'),require("buffer").Buffer)
9589
- },{"_process":130,"assert":4,"buffer":36,"pako/lib/zlib/constants":26,"pako/lib/zlib/deflate.js":28,"pako/lib/zlib/inflate.js":30,"pako/lib/zlib/zstream":34}],23:[function(require,module,exports){
9589
+ },{"_process":137,"assert":4,"buffer":36,"pako/lib/zlib/constants":26,"pako/lib/zlib/deflate.js":28,"pako/lib/zlib/inflate.js":30,"pako/lib/zlib/zstream":34}],23:[function(require,module,exports){
9590
9590
  (function (process){(function (){
9591
9591
  'use strict';
9592
9592
 
@@ -10198,7 +10198,7 @@ util.inherits(DeflateRaw, Zlib);
10198
10198
  util.inherits(InflateRaw, Zlib);
10199
10199
  util.inherits(Unzip, Zlib);
10200
10200
  }).call(this)}).call(this,require('_process'))
10201
- },{"./binding":22,"_process":130,"assert":4,"buffer":36,"stream":134,"util":158}],24:[function(require,module,exports){
10201
+ },{"./binding":22,"_process":137,"assert":4,"buffer":36,"stream":142,"util":166}],24:[function(require,module,exports){
10202
10202
  'use strict';
10203
10203
 
10204
10204
 
@@ -17705,7 +17705,7 @@ function numberIsNaN (obj) {
17705
17705
  }
17706
17706
 
17707
17707
  }).call(this)}).call(this,require("buffer").Buffer)
17708
- },{"base64-js":9,"buffer":36,"ieee754":108}],37:[function(require,module,exports){
17708
+ },{"base64-js":9,"buffer":36,"ieee754":111}],37:[function(require,module,exports){
17709
17709
  'use strict';
17710
17710
 
17711
17711
  var bind = require('function-bind');
@@ -17750,7 +17750,7 @@ var $TypeError = require('es-errors/type');
17750
17750
  var $call = require('./functionCall');
17751
17751
  var $actualApply = require('./actualApply');
17752
17752
 
17753
- /** @type {import('.')} */
17753
+ /** @type {(args: [Function, thisArg?: unknown, ...args: unknown[]]) => Function} TODO FIXME, find a way to use import('.') */
17754
17754
  module.exports = function callBindBasic(args) {
17755
17755
  if (args.length < 1 || typeof args[0] !== 'function') {
17756
17756
  throw new $TypeError('a function is required');
@@ -17790,7 +17790,7 @@ if ($defineProperty) {
17790
17790
  module.exports.apply = applyBind;
17791
17791
  }
17792
17792
 
17793
- },{"call-bind-apply-helpers":41,"call-bind-apply-helpers/applyBind":38,"es-define-property":85,"set-function-length":133}],44:[function(require,module,exports){
17793
+ },{"call-bind-apply-helpers":41,"call-bind-apply-helpers/applyBind":38,"es-define-property":85,"set-function-length":141}],44:[function(require,module,exports){
17794
17794
  'use strict';
17795
17795
 
17796
17796
  var GetIntrinsic = require('get-intrinsic');
@@ -17802,10 +17802,11 @@ var $indexOf = callBindBasic([GetIntrinsic('%String.prototype.indexOf%')]);
17802
17802
 
17803
17803
  /** @type {import('.')} */
17804
17804
  module.exports = function callBoundIntrinsic(name, allowMissing) {
17805
- // eslint-disable-next-line no-extra-parens
17806
- var intrinsic = /** @type {Parameters<typeof callBindBasic>[0][0]} */ (GetIntrinsic(name, !!allowMissing));
17805
+ /* eslint no-extra-parens: 0 */
17806
+
17807
+ var intrinsic = /** @type {(this: unknown, ...args: unknown[]) => unknown} */ (GetIntrinsic(name, !!allowMissing));
17807
17808
  if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
17808
- return callBindBasic([intrinsic]);
17809
+ return callBindBasic(/** @type {const} */ ([intrinsic]));
17809
17810
  }
17810
17811
  return intrinsic;
17811
17812
  };
@@ -25450,7 +25451,7 @@ module.exports = function defineDataProperty(
25450
25451
  }
25451
25452
  };
25452
25453
 
25453
- },{"es-define-property":85,"es-errors/syntax":90,"es-errors/type":91,"gopd":102}],83:[function(require,module,exports){
25454
+ },{"es-define-property":85,"es-errors/syntax":90,"es-errors/type":91,"gopd":105}],83:[function(require,module,exports){
25454
25455
  'use strict';
25455
25456
 
25456
25457
  var INITIAL_STATE = 1;
@@ -25575,7 +25576,7 @@ module.exports = desc && typeof desc.get === 'function'
25575
25576
  }
25576
25577
  : false;
25577
25578
 
25578
- },{"call-bind-apply-helpers":41,"gopd":102}],85:[function(require,module,exports){
25579
+ },{"call-bind-apply-helpers":41,"gopd":105}],85:[function(require,module,exports){
25579
25580
  'use strict';
25580
25581
 
25581
25582
  /** @type {import('.')} */
@@ -39523,7 +39524,7 @@ $parcel$exportWildcard(module.exports, $59aa4ed98453e1d4$exports);
39523
39524
 
39524
39525
 
39525
39526
  }).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
39526
- },{"@swc/helpers/cjs/_define_property.cjs":2,"@swc/helpers/cjs/_ts_decorate.cjs":3,"brotli/decompress.js":20,"clone":45,"dfa":83,"fast-deep-equal":95,"restructure":131,"tiny-inflate":150,"unicode-properties":152,"unicode-trie":153}],97:[function(require,module,exports){
39527
+ },{"@swc/helpers/cjs/_define_property.cjs":2,"@swc/helpers/cjs/_ts_decorate.cjs":3,"brotli/decompress.js":20,"clone":45,"dfa":83,"fast-deep-equal":95,"restructure":138,"tiny-inflate":158,"unicode-properties":160,"unicode-trie":161}],97:[function(require,module,exports){
39527
39528
  'use strict';
39528
39529
 
39529
39530
  var isCallable = require('is-callable');
@@ -39531,6 +39532,7 @@ var isCallable = require('is-callable');
39531
39532
  var toStr = Object.prototype.toString;
39532
39533
  var hasOwnProperty = Object.prototype.hasOwnProperty;
39533
39534
 
39535
+ /** @type {<This, A extends readonly unknown[]>(arr: A, iterator: (this: This | void, value: A[number], index: number, arr: A) => void, receiver: This | undefined) => void} */
39534
39536
  var forEachArray = function forEachArray(array, iterator, receiver) {
39535
39537
  for (var i = 0, len = array.length; i < len; i++) {
39536
39538
  if (hasOwnProperty.call(array, i)) {
@@ -39543,6 +39545,7 @@ var forEachArray = function forEachArray(array, iterator, receiver) {
39543
39545
  }
39544
39546
  };
39545
39547
 
39548
+ /** @type {<This, S extends string>(string: S, iterator: (this: This | void, value: S[number], index: number, string: S) => void, receiver: This | undefined) => void} */
39546
39549
  var forEachString = function forEachString(string, iterator, receiver) {
39547
39550
  for (var i = 0, len = string.length; i < len; i++) {
39548
39551
  // no such thing as a sparse string.
@@ -39554,6 +39557,7 @@ var forEachString = function forEachString(string, iterator, receiver) {
39554
39557
  }
39555
39558
  };
39556
39559
 
39560
+ /** @type {<This, O>(obj: O, iterator: (this: This | void, value: O[keyof O], index: keyof O, obj: O) => void, receiver: This | undefined) => void} */
39557
39561
  var forEachObject = function forEachObject(object, iterator, receiver) {
39558
39562
  for (var k in object) {
39559
39563
  if (hasOwnProperty.call(object, k)) {
@@ -39566,7 +39570,13 @@ var forEachObject = function forEachObject(object, iterator, receiver) {
39566
39570
  }
39567
39571
  };
39568
39572
 
39569
- var forEach = function forEach(list, iterator, thisArg) {
39573
+ /** @type {(x: unknown) => x is readonly unknown[]} */
39574
+ function isArray(x) {
39575
+ return toStr.call(x) === '[object Array]';
39576
+ }
39577
+
39578
+ /** @type {import('.')._internal} */
39579
+ module.exports = function forEach(list, iterator, thisArg) {
39570
39580
  if (!isCallable(iterator)) {
39571
39581
  throw new TypeError('iterator must be a function');
39572
39582
  }
@@ -39576,7 +39586,7 @@ var forEach = function forEach(list, iterator, thisArg) {
39576
39586
  receiver = thisArg;
39577
39587
  }
39578
39588
 
39579
- if (toStr.call(list) === '[object Array]') {
39589
+ if (isArray(list)) {
39580
39590
  forEachArray(list, iterator, receiver);
39581
39591
  } else if (typeof list === 'string') {
39582
39592
  forEachString(list, iterator, receiver);
@@ -39585,9 +39595,7 @@ var forEach = function forEach(list, iterator, thisArg) {
39585
39595
  }
39586
39596
  };
39587
39597
 
39588
- module.exports = forEach;
39589
-
39590
- },{"is-callable":111}],98:[function(require,module,exports){
39598
+ },{"is-callable":114}],98:[function(require,module,exports){
39591
39599
  'use strict';
39592
39600
 
39593
39601
  /* eslint no-invalid-this: 1 */
@@ -39700,6 +39708,8 @@ var floor = require('math-intrinsics/floor');
39700
39708
  var max = require('math-intrinsics/max');
39701
39709
  var min = require('math-intrinsics/min');
39702
39710
  var pow = require('math-intrinsics/pow');
39711
+ var round = require('math-intrinsics/round');
39712
+ var sign = require('math-intrinsics/sign');
39703
39713
 
39704
39714
  var $Function = Function;
39705
39715
 
@@ -39734,11 +39744,10 @@ var ThrowTypeError = $gOPD
39734
39744
  : throwTypeError;
39735
39745
 
39736
39746
  var hasSymbols = require('has-symbols')();
39737
- var getDunderProto = require('dunder-proto/get');
39738
39747
 
39739
- var getProto = (typeof Reflect === 'function' && Reflect.getPrototypeOf)
39740
- || $Object.getPrototypeOf
39741
- || getDunderProto;
39748
+ var getProto = require('get-proto');
39749
+ var $ObjectGPO = require('get-proto/Object.getPrototypeOf');
39750
+ var $ReflectGPO = require('get-proto/Reflect.getPrototypeOf');
39742
39751
 
39743
39752
  var $apply = require('call-bind-apply-helpers/functionApply');
39744
39753
  var $call = require('call-bind-apply-helpers/functionCall');
@@ -39772,6 +39781,7 @@ var INTRINSICS = {
39772
39781
  '%Error%': $Error,
39773
39782
  '%eval%': eval, // eslint-disable-line no-eval
39774
39783
  '%EvalError%': $EvalError,
39784
+ '%Float16Array%': typeof Float16Array === 'undefined' ? undefined : Float16Array,
39775
39785
  '%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,
39776
39786
  '%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,
39777
39787
  '%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,
@@ -39820,11 +39830,15 @@ var INTRINSICS = {
39820
39830
  '%Function.prototype.call%': $call,
39821
39831
  '%Function.prototype.apply%': $apply,
39822
39832
  '%Object.defineProperty%': $defineProperty,
39833
+ '%Object.getPrototypeOf%': $ObjectGPO,
39823
39834
  '%Math.abs%': abs,
39824
39835
  '%Math.floor%': floor,
39825
39836
  '%Math.max%': max,
39826
39837
  '%Math.min%': min,
39827
- '%Math.pow%': pow
39838
+ '%Math.pow%': pow,
39839
+ '%Math.round%': round,
39840
+ '%Math.sign%': sign,
39841
+ '%Reflect.getPrototypeOf%': $ReflectGPO
39828
39842
  };
39829
39843
 
39830
39844
  if (getProto) {
@@ -40054,13 +40068,56 @@ module.exports = function GetIntrinsic(name, allowMissing) {
40054
40068
  return value;
40055
40069
  };
40056
40070
 
40057
- },{"call-bind-apply-helpers/functionApply":39,"call-bind-apply-helpers/functionCall":40,"dunder-proto/get":84,"es-define-property":85,"es-errors":87,"es-errors/eval":86,"es-errors/range":88,"es-errors/ref":89,"es-errors/syntax":90,"es-errors/type":91,"es-errors/uri":92,"es-object-atoms":93,"function-bind":99,"gopd":102,"has-symbols":104,"hasown":107,"math-intrinsics/abs":118,"math-intrinsics/floor":119,"math-intrinsics/max":120,"math-intrinsics/min":121,"math-intrinsics/pow":122}],101:[function(require,module,exports){
40071
+ },{"call-bind-apply-helpers/functionApply":39,"call-bind-apply-helpers/functionCall":40,"es-define-property":85,"es-errors":87,"es-errors/eval":86,"es-errors/range":88,"es-errors/ref":89,"es-errors/syntax":90,"es-errors/type":91,"es-errors/uri":92,"es-object-atoms":93,"function-bind":99,"get-proto":103,"get-proto/Object.getPrototypeOf":101,"get-proto/Reflect.getPrototypeOf":102,"gopd":105,"has-symbols":107,"hasown":110,"math-intrinsics/abs":122,"math-intrinsics/floor":123,"math-intrinsics/max":125,"math-intrinsics/min":126,"math-intrinsics/pow":127,"math-intrinsics/round":128,"math-intrinsics/sign":129}],101:[function(require,module,exports){
40072
+ 'use strict';
40073
+
40074
+ var $Object = require('es-object-atoms');
40075
+
40076
+ /** @type {import('./Object.getPrototypeOf')} */
40077
+ module.exports = $Object.getPrototypeOf || null;
40078
+
40079
+ },{"es-object-atoms":93}],102:[function(require,module,exports){
40080
+ 'use strict';
40081
+
40082
+ /** @type {import('./Reflect.getPrototypeOf')} */
40083
+ module.exports = (typeof Reflect !== 'undefined' && Reflect.getPrototypeOf) || null;
40084
+
40085
+ },{}],103:[function(require,module,exports){
40086
+ 'use strict';
40087
+
40088
+ var reflectGetProto = require('./Reflect.getPrototypeOf');
40089
+ var originalGetProto = require('./Object.getPrototypeOf');
40090
+
40091
+ var getDunderProto = require('dunder-proto/get');
40092
+
40093
+ /** @type {import('.')} */
40094
+ module.exports = reflectGetProto
40095
+ ? function getProto(O) {
40096
+ // @ts-expect-error TS can't narrow inside a closure, for some reason
40097
+ return reflectGetProto(O);
40098
+ }
40099
+ : originalGetProto
40100
+ ? function getProto(O) {
40101
+ if (!O || (typeof O !== 'object' && typeof O !== 'function')) {
40102
+ throw new TypeError('getProto: not an object');
40103
+ }
40104
+ // @ts-expect-error TS can't narrow inside a closure, for some reason
40105
+ return originalGetProto(O);
40106
+ }
40107
+ : getDunderProto
40108
+ ? function getProto(O) {
40109
+ // @ts-expect-error TS can't narrow inside a closure, for some reason
40110
+ return getDunderProto(O);
40111
+ }
40112
+ : null;
40113
+
40114
+ },{"./Object.getPrototypeOf":101,"./Reflect.getPrototypeOf":102,"dunder-proto/get":84}],104:[function(require,module,exports){
40058
40115
  'use strict';
40059
40116
 
40060
40117
  /** @type {import('./gOPD')} */
40061
40118
  module.exports = Object.getOwnPropertyDescriptor;
40062
40119
 
40063
- },{}],102:[function(require,module,exports){
40120
+ },{}],105:[function(require,module,exports){
40064
40121
  'use strict';
40065
40122
 
40066
40123
  /** @type {import('.')} */
@@ -40077,7 +40134,7 @@ if ($gOPD) {
40077
40134
 
40078
40135
  module.exports = $gOPD;
40079
40136
 
40080
- },{"./gOPD":101}],103:[function(require,module,exports){
40137
+ },{"./gOPD":104}],106:[function(require,module,exports){
40081
40138
  'use strict';
40082
40139
 
40083
40140
  var $defineProperty = require('es-define-property');
@@ -40101,7 +40158,7 @@ hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBu
40101
40158
 
40102
40159
  module.exports = hasPropertyDescriptors;
40103
40160
 
40104
- },{"es-define-property":85}],104:[function(require,module,exports){
40161
+ },{"es-define-property":85}],107:[function(require,module,exports){
40105
40162
  'use strict';
40106
40163
 
40107
40164
  var origSymbol = typeof Symbol !== 'undefined' && Symbol;
@@ -40117,7 +40174,7 @@ module.exports = function hasNativeSymbols() {
40117
40174
  return hasSymbolSham();
40118
40175
  };
40119
40176
 
40120
- },{"./shams":105}],105:[function(require,module,exports){
40177
+ },{"./shams":108}],108:[function(require,module,exports){
40121
40178
  'use strict';
40122
40179
 
40123
40180
  /** @type {import('./shams')} */
@@ -40164,7 +40221,7 @@ module.exports = function hasSymbols() {
40164
40221
  return true;
40165
40222
  };
40166
40223
 
40167
- },{}],106:[function(require,module,exports){
40224
+ },{}],109:[function(require,module,exports){
40168
40225
  'use strict';
40169
40226
 
40170
40227
  var hasSymbols = require('has-symbols/shams');
@@ -40174,7 +40231,7 @@ module.exports = function hasToStringTagShams() {
40174
40231
  return hasSymbols() && !!Symbol.toStringTag;
40175
40232
  };
40176
40233
 
40177
- },{"has-symbols/shams":105}],107:[function(require,module,exports){
40234
+ },{"has-symbols/shams":108}],110:[function(require,module,exports){
40178
40235
  'use strict';
40179
40236
 
40180
40237
  var call = Function.prototype.call;
@@ -40184,7 +40241,7 @@ var bind = require('function-bind');
40184
40241
  /** @type {import('.')} */
40185
40242
  module.exports = bind.call(call, $hasOwn);
40186
40243
 
40187
- },{"function-bind":99}],108:[function(require,module,exports){
40244
+ },{"function-bind":99}],111:[function(require,module,exports){
40188
40245
  /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
40189
40246
  exports.read = function (buffer, offset, isLE, mLen, nBytes) {
40190
40247
  var e, m
@@ -40271,7 +40328,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) {
40271
40328
  buffer[offset + i - d] |= s * 128
40272
40329
  }
40273
40330
 
40274
- },{}],109:[function(require,module,exports){
40331
+ },{}],112:[function(require,module,exports){
40275
40332
  if (typeof Object.create === 'function') {
40276
40333
  // implementation from standard node.js 'util' module
40277
40334
  module.exports = function inherits(ctor, superCtor) {
@@ -40300,7 +40357,7 @@ if (typeof Object.create === 'function') {
40300
40357
  }
40301
40358
  }
40302
40359
 
40303
- },{}],110:[function(require,module,exports){
40360
+ },{}],113:[function(require,module,exports){
40304
40361
  'use strict';
40305
40362
 
40306
40363
  var hasToStringTag = require('has-tostringtag/shams')();
@@ -40346,7 +40403,7 @@ isStandardArguments.isLegacyArguments = isLegacyArguments; // for tests
40346
40403
  /** @type {import('.')} */
40347
40404
  module.exports = supportsStandardArguments ? isStandardArguments : isLegacyArguments;
40348
40405
 
40349
- },{"call-bound":44,"has-tostringtag/shams":106}],111:[function(require,module,exports){
40406
+ },{"call-bound":44,"has-tostringtag/shams":109}],114:[function(require,module,exports){
40350
40407
  'use strict';
40351
40408
 
40352
40409
  var fnToStr = Function.prototype.toString;
@@ -40449,14 +40506,18 @@ module.exports = reflectApply
40449
40506
  return tryFunctionObject(value);
40450
40507
  };
40451
40508
 
40452
- },{}],112:[function(require,module,exports){
40509
+ },{}],115:[function(require,module,exports){
40453
40510
  'use strict';
40454
40511
 
40455
- var toStr = Object.prototype.toString;
40456
- var fnToStr = Function.prototype.toString;
40457
- var isFnRegex = /^\s*(?:function)?\*/;
40512
+ var callBound = require('call-bound');
40513
+ var safeRegexTest = require('safe-regex-test');
40514
+ var isFnRegex = safeRegexTest(/^\s*(?:function)?\*/);
40458
40515
  var hasToStringTag = require('has-tostringtag/shams')();
40459
- var getProto = Object.getPrototypeOf;
40516
+ var getProto = require('get-proto');
40517
+
40518
+ var toStr = callBound('Object.prototype.toString');
40519
+ var fnToStr = callBound('Function.prototype.toString');
40520
+
40460
40521
  var getGeneratorFunc = function () { // eslint-disable-line consistent-return
40461
40522
  if (!hasToStringTag) {
40462
40523
  return false;
@@ -40466,17 +40527,19 @@ var getGeneratorFunc = function () { // eslint-disable-line consistent-return
40466
40527
  } catch (e) {
40467
40528
  }
40468
40529
  };
40530
+ /** @type {undefined | false | null | GeneratorFunctionConstructor} */
40469
40531
  var GeneratorFunction;
40470
40532
 
40533
+ /** @type {import('.')} */
40471
40534
  module.exports = function isGeneratorFunction(fn) {
40472
40535
  if (typeof fn !== 'function') {
40473
40536
  return false;
40474
40537
  }
40475
- if (isFnRegex.test(fnToStr.call(fn))) {
40538
+ if (isFnRegex(fnToStr(fn))) {
40476
40539
  return true;
40477
40540
  }
40478
40541
  if (!hasToStringTag) {
40479
- var str = toStr.call(fn);
40542
+ var str = toStr(fn);
40480
40543
  return str === '[object GeneratorFunction]';
40481
40544
  }
40482
40545
  if (!getProto) {
@@ -40484,12 +40547,86 @@ module.exports = function isGeneratorFunction(fn) {
40484
40547
  }
40485
40548
  if (typeof GeneratorFunction === 'undefined') {
40486
40549
  var generatorFunc = getGeneratorFunc();
40487
- GeneratorFunction = generatorFunc ? getProto(generatorFunc) : false;
40550
+ GeneratorFunction = generatorFunc
40551
+ // eslint-disable-next-line no-extra-parens
40552
+ ? /** @type {GeneratorFunctionConstructor} */ (getProto(generatorFunc))
40553
+ : false;
40488
40554
  }
40489
40555
  return getProto(fn) === GeneratorFunction;
40490
40556
  };
40491
40557
 
40492
- },{"has-tostringtag/shams":106}],113:[function(require,module,exports){
40558
+ },{"call-bound":44,"get-proto":103,"has-tostringtag/shams":109,"safe-regex-test":140}],116:[function(require,module,exports){
40559
+ 'use strict';
40560
+
40561
+ var callBound = require('call-bound');
40562
+ var hasToStringTag = require('has-tostringtag/shams')();
40563
+ var hasOwn = require('hasown');
40564
+ var gOPD = require('gopd');
40565
+
40566
+ /** @type {import('.')} */
40567
+ var fn;
40568
+
40569
+ if (hasToStringTag) {
40570
+ /** @type {(receiver: ThisParameterType<typeof RegExp.prototype.exec>, ...args: Parameters<typeof RegExp.prototype.exec>) => ReturnType<typeof RegExp.prototype.exec>} */
40571
+ var $exec = callBound('RegExp.prototype.exec');
40572
+ /** @type {object} */
40573
+ var isRegexMarker = {};
40574
+
40575
+ var throwRegexMarker = function () {
40576
+ throw isRegexMarker;
40577
+ };
40578
+ /** @type {{ toString(): never, valueOf(): never, [Symbol.toPrimitive]?(): never }} */
40579
+ var badStringifier = {
40580
+ toString: throwRegexMarker,
40581
+ valueOf: throwRegexMarker
40582
+ };
40583
+
40584
+ if (typeof Symbol.toPrimitive === 'symbol') {
40585
+ badStringifier[Symbol.toPrimitive] = throwRegexMarker;
40586
+ }
40587
+
40588
+ /** @type {import('.')} */
40589
+ // @ts-expect-error TS can't figure out that the $exec call always throws
40590
+ // eslint-disable-next-line consistent-return
40591
+ fn = function isRegex(value) {
40592
+ if (!value || typeof value !== 'object') {
40593
+ return false;
40594
+ }
40595
+
40596
+ // eslint-disable-next-line no-extra-parens
40597
+ var descriptor = /** @type {NonNullable<typeof gOPD>} */ (gOPD)(/** @type {{ lastIndex?: unknown }} */ (value), 'lastIndex');
40598
+ var hasLastIndexDataProperty = descriptor && hasOwn(descriptor, 'value');
40599
+ if (!hasLastIndexDataProperty) {
40600
+ return false;
40601
+ }
40602
+
40603
+ try {
40604
+ // eslint-disable-next-line no-extra-parens
40605
+ $exec(value, /** @type {string} */ (/** @type {unknown} */ (badStringifier)));
40606
+ } catch (e) {
40607
+ return e === isRegexMarker;
40608
+ }
40609
+ };
40610
+ } else {
40611
+ /** @type {(receiver: ThisParameterType<typeof Object.prototype.toString>, ...args: Parameters<typeof Object.prototype.toString>) => ReturnType<typeof Object.prototype.toString>} */
40612
+ var $toString = callBound('Object.prototype.toString');
40613
+ /** @const @type {'[object RegExp]'} */
40614
+ var regexClass = '[object RegExp]';
40615
+
40616
+ /** @type {import('.')} */
40617
+ fn = function isRegex(value) {
40618
+ // In older browsers, typeof regex incorrectly returns 'function'
40619
+ if (!value || (typeof value !== 'object' && typeof value !== 'function')) {
40620
+ return false;
40621
+ }
40622
+
40623
+ return $toString(value) === regexClass;
40624
+ };
40625
+ }
40626
+
40627
+ module.exports = fn;
40628
+
40629
+ },{"call-bound":44,"gopd":105,"has-tostringtag/shams":109,"hasown":110}],117:[function(require,module,exports){
40493
40630
  'use strict';
40494
40631
 
40495
40632
  var whichTypedArray = require('which-typed-array');
@@ -40499,7 +40636,7 @@ module.exports = function isTypedArray(value) {
40499
40636
  return !!whichTypedArray(value);
40500
40637
  };
40501
40638
 
40502
- },{"which-typed-array":159}],114:[function(require,module,exports){
40639
+ },{"which-typed-array":167}],118:[function(require,module,exports){
40503
40640
  'use strict';
40504
40641
 
40505
40642
  var _fs = require('fs');
@@ -40876,7 +41013,7 @@ exports.fromBuffer = fromBuffer;
40876
41013
  exports.parse = async;
40877
41014
  exports.parseSync = sync;
40878
41015
 
40879
- },{"./tags.json":115,"fs":35}],115:[function(require,module,exports){
41016
+ },{"./tags.json":119,"fs":35}],119:[function(require,module,exports){
40880
41017
  module.exports={
40881
41018
  "ifd": {
40882
41019
  "010e": "ImageDescription",
@@ -41017,7 +41154,7 @@ module.exports={
41017
41154
  "001f": "GPSHPositioningError"
41018
41155
  }
41019
41156
  }
41020
- },{}],116:[function(require,module,exports){
41157
+ },{}],120:[function(require,module,exports){
41021
41158
  var $kQ2hT$unicodetrie = require("unicode-trie");
41022
41159
  var $kQ2hT$base64js = require("base64-js");
41023
41160
 
@@ -42388,7 +42525,7 @@ module.exports = $f898ea50f3b38ab8$var$LineBreaker;
42388
42525
 
42389
42526
 
42390
42527
 
42391
- },{"base64-js":117,"unicode-trie":153}],117:[function(require,module,exports){
42528
+ },{"base64-js":121,"unicode-trie":161}],121:[function(require,module,exports){
42392
42529
  var lookup = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
42393
42530
 
42394
42531
  ;(function (exports) {
@@ -42514,37 +42651,64 @@ var lookup = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
42514
42651
  exports.fromByteArray = uint8ToBase64
42515
42652
  }(typeof exports === 'undefined' ? (this.base64js = {}) : exports))
42516
42653
 
42517
- },{}],118:[function(require,module,exports){
42654
+ },{}],122:[function(require,module,exports){
42518
42655
  'use strict';
42519
42656
 
42520
42657
  /** @type {import('./abs')} */
42521
42658
  module.exports = Math.abs;
42522
42659
 
42523
- },{}],119:[function(require,module,exports){
42660
+ },{}],123:[function(require,module,exports){
42524
42661
  'use strict';
42525
42662
 
42526
42663
  /** @type {import('./floor')} */
42527
42664
  module.exports = Math.floor;
42528
42665
 
42529
- },{}],120:[function(require,module,exports){
42666
+ },{}],124:[function(require,module,exports){
42667
+ 'use strict';
42668
+
42669
+ /** @type {import('./isNaN')} */
42670
+ module.exports = Number.isNaN || function isNaN(a) {
42671
+ return a !== a;
42672
+ };
42673
+
42674
+ },{}],125:[function(require,module,exports){
42530
42675
  'use strict';
42531
42676
 
42532
42677
  /** @type {import('./max')} */
42533
42678
  module.exports = Math.max;
42534
42679
 
42535
- },{}],121:[function(require,module,exports){
42680
+ },{}],126:[function(require,module,exports){
42536
42681
  'use strict';
42537
42682
 
42538
42683
  /** @type {import('./min')} */
42539
42684
  module.exports = Math.min;
42540
42685
 
42541
- },{}],122:[function(require,module,exports){
42686
+ },{}],127:[function(require,module,exports){
42542
42687
  'use strict';
42543
42688
 
42544
42689
  /** @type {import('./pow')} */
42545
42690
  module.exports = Math.pow;
42546
42691
 
42547
- },{}],123:[function(require,module,exports){
42692
+ },{}],128:[function(require,module,exports){
42693
+ 'use strict';
42694
+
42695
+ /** @type {import('./round')} */
42696
+ module.exports = Math.round;
42697
+
42698
+ },{}],129:[function(require,module,exports){
42699
+ 'use strict';
42700
+
42701
+ var $isNaN = require('./isNaN');
42702
+
42703
+ /** @type {import('./sign')} */
42704
+ module.exports = function sign(number) {
42705
+ if ($isNaN(number) || number === 0) {
42706
+ return number;
42707
+ }
42708
+ return number < 0 ? -1 : +1;
42709
+ };
42710
+
42711
+ },{"./isNaN":124}],130:[function(require,module,exports){
42548
42712
  'use strict';
42549
42713
 
42550
42714
  var keysShim;
@@ -42668,7 +42832,7 @@ if (!Object.keys) {
42668
42832
  }
42669
42833
  module.exports = keysShim;
42670
42834
 
42671
- },{"./isArguments":125}],124:[function(require,module,exports){
42835
+ },{"./isArguments":132}],131:[function(require,module,exports){
42672
42836
  'use strict';
42673
42837
 
42674
42838
  var slice = Array.prototype.slice;
@@ -42702,7 +42866,7 @@ keysShim.shim = function shimObjectKeys() {
42702
42866
 
42703
42867
  module.exports = keysShim;
42704
42868
 
42705
- },{"./implementation":123,"./isArguments":125}],125:[function(require,module,exports){
42869
+ },{"./implementation":130,"./isArguments":132}],132:[function(require,module,exports){
42706
42870
  'use strict';
42707
42871
 
42708
42872
  var toStr = Object.prototype.toString;
@@ -42721,7 +42885,7 @@ module.exports = function isArguments(value) {
42721
42885
  return isArgs;
42722
42886
  };
42723
42887
 
42724
- },{}],126:[function(require,module,exports){
42888
+ },{}],133:[function(require,module,exports){
42725
42889
  'use strict';
42726
42890
 
42727
42891
  // modified from https://github.com/es-shims/es6-shim
@@ -42769,7 +42933,7 @@ module.exports = function assign(target, source1) {
42769
42933
  return to; // step 4
42770
42934
  };
42771
42935
 
42772
- },{"call-bound":44,"es-object-atoms":93,"has-symbols/shams":105,"object-keys":124}],127:[function(require,module,exports){
42936
+ },{"call-bound":44,"es-object-atoms":93,"has-symbols/shams":108,"object-keys":131}],134:[function(require,module,exports){
42773
42937
  'use strict';
42774
42938
 
42775
42939
  var implementation = require('./implementation');
@@ -42826,7 +42990,7 @@ module.exports = function getPolyfill() {
42826
42990
  return Object.assign;
42827
42991
  };
42828
42992
 
42829
- },{"./implementation":126}],128:[function(require,module,exports){
42993
+ },{"./implementation":133}],135:[function(require,module,exports){
42830
42994
  (function (Buffer){(function (){
42831
42995
  /*
42832
42996
  * MIT LICENSE
@@ -43232,11 +43396,12 @@ module.exports = class PNG {
43232
43396
  };
43233
43397
 
43234
43398
  }).call(this)}).call(this,require("buffer").Buffer)
43235
- },{"buffer":36,"fs":35,"zlib":23}],129:[function(require,module,exports){
43399
+ },{"buffer":36,"fs":35,"zlib":23}],136:[function(require,module,exports){
43236
43400
  'use strict';
43237
43401
 
43238
43402
  /** @type {import('.')} */
43239
43403
  module.exports = [
43404
+ 'Float16Array',
43240
43405
  'Float32Array',
43241
43406
  'Float64Array',
43242
43407
  'Int8Array',
@@ -43250,7 +43415,7 @@ module.exports = [
43250
43415
  'BigUint64Array'
43251
43416
  ];
43252
43417
 
43253
- },{}],130:[function(require,module,exports){
43418
+ },{}],137:[function(require,module,exports){
43254
43419
  // shim for using process in browser
43255
43420
  var process = module.exports = {};
43256
43421
 
@@ -43436,7 +43601,7 @@ process.chdir = function (dir) {
43436
43601
  };
43437
43602
  process.umask = function() { return 0; };
43438
43603
 
43439
- },{}],131:[function(require,module,exports){
43604
+ },{}],138:[function(require,module,exports){
43440
43605
 
43441
43606
  function $parcel$exportWildcard(dest, source) {
43442
43607
  Object.keys(source).forEach(function(key) {
@@ -44457,7 +44622,7 @@ $parcel$exportWildcard(module.exports, $92184962f8f0d5e2$exports);
44457
44622
 
44458
44623
 
44459
44624
 
44460
- },{}],132:[function(require,module,exports){
44625
+ },{}],139:[function(require,module,exports){
44461
44626
  /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
44462
44627
  /* eslint-disable node/no-deprecated-api */
44463
44628
  var buffer = require('buffer')
@@ -44524,7 +44689,26 @@ SafeBuffer.allocUnsafeSlow = function (size) {
44524
44689
  return buffer.SlowBuffer(size)
44525
44690
  }
44526
44691
 
44527
- },{"buffer":36}],133:[function(require,module,exports){
44692
+ },{"buffer":36}],140:[function(require,module,exports){
44693
+ 'use strict';
44694
+
44695
+ var callBound = require('call-bound');
44696
+ var isRegex = require('is-regex');
44697
+
44698
+ var $exec = callBound('RegExp.prototype.exec');
44699
+ var $TypeError = require('es-errors/type');
44700
+
44701
+ /** @type {import('.')} */
44702
+ module.exports = function regexTester(regex) {
44703
+ if (!isRegex(regex)) {
44704
+ throw new $TypeError('`regex` must be a RegExp');
44705
+ }
44706
+ return function test(s) {
44707
+ return $exec(regex, s) !== null;
44708
+ };
44709
+ };
44710
+
44711
+ },{"call-bound":44,"es-errors/type":91,"is-regex":116}],141:[function(require,module,exports){
44528
44712
  'use strict';
44529
44713
 
44530
44714
  var GetIntrinsic = require('get-intrinsic');
@@ -44568,7 +44752,7 @@ module.exports = function setFunctionLength(fn, length) {
44568
44752
  return fn;
44569
44753
  };
44570
44754
 
44571
- },{"define-data-property":82,"es-errors/type":91,"get-intrinsic":100,"gopd":102,"has-property-descriptors":103}],134:[function(require,module,exports){
44755
+ },{"define-data-property":82,"es-errors/type":91,"get-intrinsic":100,"gopd":105,"has-property-descriptors":106}],142:[function(require,module,exports){
44572
44756
  // Copyright Joyent, Inc. and other Node contributors.
44573
44757
  //
44574
44758
  // Permission is hereby granted, free of charge, to any person obtaining a
@@ -44699,7 +44883,7 @@ Stream.prototype.pipe = function(dest, options) {
44699
44883
  return dest;
44700
44884
  };
44701
44885
 
44702
- },{"events":94,"inherits":109,"readable-stream/lib/_stream_duplex.js":136,"readable-stream/lib/_stream_passthrough.js":137,"readable-stream/lib/_stream_readable.js":138,"readable-stream/lib/_stream_transform.js":139,"readable-stream/lib/_stream_writable.js":140,"readable-stream/lib/internal/streams/end-of-stream.js":144,"readable-stream/lib/internal/streams/pipeline.js":146}],135:[function(require,module,exports){
44886
+ },{"events":94,"inherits":112,"readable-stream/lib/_stream_duplex.js":144,"readable-stream/lib/_stream_passthrough.js":145,"readable-stream/lib/_stream_readable.js":146,"readable-stream/lib/_stream_transform.js":147,"readable-stream/lib/_stream_writable.js":148,"readable-stream/lib/internal/streams/end-of-stream.js":152,"readable-stream/lib/internal/streams/pipeline.js":154}],143:[function(require,module,exports){
44703
44887
  'use strict';
44704
44888
 
44705
44889
  function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
@@ -44828,7 +45012,7 @@ createErrorType('ERR_UNKNOWN_ENCODING', function (arg) {
44828
45012
  createErrorType('ERR_STREAM_UNSHIFT_AFTER_END_EVENT', 'stream.unshift() after end event');
44829
45013
  module.exports.codes = codes;
44830
45014
 
44831
- },{}],136:[function(require,module,exports){
45015
+ },{}],144:[function(require,module,exports){
44832
45016
  (function (process){(function (){
44833
45017
  // Copyright Joyent, Inc. and other Node contributors.
44834
45018
  //
@@ -44957,7 +45141,7 @@ Object.defineProperty(Duplex.prototype, 'destroyed', {
44957
45141
  }
44958
45142
  });
44959
45143
  }).call(this)}).call(this,require('_process'))
44960
- },{"./_stream_readable":138,"./_stream_writable":140,"_process":130,"inherits":109}],137:[function(require,module,exports){
45144
+ },{"./_stream_readable":146,"./_stream_writable":148,"_process":137,"inherits":112}],145:[function(require,module,exports){
44961
45145
  // Copyright Joyent, Inc. and other Node contributors.
44962
45146
  //
44963
45147
  // Permission is hereby granted, free of charge, to any person obtaining a
@@ -44995,7 +45179,7 @@ function PassThrough(options) {
44995
45179
  PassThrough.prototype._transform = function (chunk, encoding, cb) {
44996
45180
  cb(null, chunk);
44997
45181
  };
44998
- },{"./_stream_transform":139,"inherits":109}],138:[function(require,module,exports){
45182
+ },{"./_stream_transform":147,"inherits":112}],146:[function(require,module,exports){
44999
45183
  (function (process,global){(function (){
45000
45184
  // Copyright Joyent, Inc. and other Node contributors.
45001
45185
  //
@@ -46025,7 +46209,7 @@ function indexOf(xs, x) {
46025
46209
  return -1;
46026
46210
  }
46027
46211
  }).call(this)}).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
46028
- },{"../errors":135,"./_stream_duplex":136,"./internal/streams/async_iterator":141,"./internal/streams/buffer_list":142,"./internal/streams/destroy":143,"./internal/streams/from":145,"./internal/streams/state":147,"./internal/streams/stream":148,"_process":130,"buffer":36,"events":94,"inherits":109,"string_decoder/":149,"util":21}],139:[function(require,module,exports){
46212
+ },{"../errors":143,"./_stream_duplex":144,"./internal/streams/async_iterator":149,"./internal/streams/buffer_list":150,"./internal/streams/destroy":151,"./internal/streams/from":153,"./internal/streams/state":155,"./internal/streams/stream":156,"_process":137,"buffer":36,"events":94,"inherits":112,"string_decoder/":157,"util":21}],147:[function(require,module,exports){
46029
46213
  // Copyright Joyent, Inc. and other Node contributors.
46030
46214
  //
46031
46215
  // Permission is hereby granted, free of charge, to any person obtaining a
@@ -46216,7 +46400,7 @@ function done(stream, er, data) {
46216
46400
  if (stream._transformState.transforming) throw new ERR_TRANSFORM_ALREADY_TRANSFORMING();
46217
46401
  return stream.push(null);
46218
46402
  }
46219
- },{"../errors":135,"./_stream_duplex":136,"inherits":109}],140:[function(require,module,exports){
46403
+ },{"../errors":143,"./_stream_duplex":144,"inherits":112}],148:[function(require,module,exports){
46220
46404
  (function (process,global){(function (){
46221
46405
  // Copyright Joyent, Inc. and other Node contributors.
46222
46406
  //
@@ -46860,7 +47044,7 @@ Writable.prototype._destroy = function (err, cb) {
46860
47044
  cb(err);
46861
47045
  };
46862
47046
  }).call(this)}).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
46863
- },{"../errors":135,"./_stream_duplex":136,"./internal/streams/destroy":143,"./internal/streams/state":147,"./internal/streams/stream":148,"_process":130,"buffer":36,"inherits":109,"util-deprecate":155}],141:[function(require,module,exports){
47047
+ },{"../errors":143,"./_stream_duplex":144,"./internal/streams/destroy":151,"./internal/streams/state":155,"./internal/streams/stream":156,"_process":137,"buffer":36,"inherits":112,"util-deprecate":163}],149:[function(require,module,exports){
46864
47048
  (function (process){(function (){
46865
47049
  'use strict';
46866
47050
 
@@ -47043,7 +47227,7 @@ var createReadableStreamAsyncIterator = function createReadableStreamAsyncIterat
47043
47227
  };
47044
47228
  module.exports = createReadableStreamAsyncIterator;
47045
47229
  }).call(this)}).call(this,require('_process'))
47046
- },{"./end-of-stream":144,"_process":130}],142:[function(require,module,exports){
47230
+ },{"./end-of-stream":152,"_process":137}],150:[function(require,module,exports){
47047
47231
  'use strict';
47048
47232
 
47049
47233
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
@@ -47227,7 +47411,7 @@ module.exports = /*#__PURE__*/function () {
47227
47411
  }]);
47228
47412
  return BufferList;
47229
47413
  }();
47230
- },{"buffer":36,"util":21}],143:[function(require,module,exports){
47414
+ },{"buffer":36,"util":21}],151:[function(require,module,exports){
47231
47415
  (function (process){(function (){
47232
47416
  'use strict';
47233
47417
 
@@ -47326,7 +47510,7 @@ module.exports = {
47326
47510
  errorOrDestroy: errorOrDestroy
47327
47511
  };
47328
47512
  }).call(this)}).call(this,require('_process'))
47329
- },{"_process":130}],144:[function(require,module,exports){
47513
+ },{"_process":137}],152:[function(require,module,exports){
47330
47514
  // Ported from https://github.com/mafintosh/end-of-stream with
47331
47515
  // permission from the author, Mathias Buus (@mafintosh).
47332
47516
 
@@ -47413,12 +47597,12 @@ function eos(stream, opts, callback) {
47413
47597
  };
47414
47598
  }
47415
47599
  module.exports = eos;
47416
- },{"../../../errors":135}],145:[function(require,module,exports){
47600
+ },{"../../../errors":143}],153:[function(require,module,exports){
47417
47601
  module.exports = function () {
47418
47602
  throw new Error('Readable.from is not available in the browser')
47419
47603
  };
47420
47604
 
47421
- },{}],146:[function(require,module,exports){
47605
+ },{}],154:[function(require,module,exports){
47422
47606
  // Ported from https://github.com/mafintosh/pump with
47423
47607
  // permission from the author, Mathias Buus (@mafintosh).
47424
47608
 
@@ -47505,7 +47689,7 @@ function pipeline() {
47505
47689
  return streams.reduce(pipe);
47506
47690
  }
47507
47691
  module.exports = pipeline;
47508
- },{"../../../errors":135,"./end-of-stream":144}],147:[function(require,module,exports){
47692
+ },{"../../../errors":143,"./end-of-stream":152}],155:[function(require,module,exports){
47509
47693
  'use strict';
47510
47694
 
47511
47695
  var ERR_INVALID_OPT_VALUE = require('../../../errors').codes.ERR_INVALID_OPT_VALUE;
@@ -47528,10 +47712,10 @@ function getHighWaterMark(state, options, duplexKey, isDuplex) {
47528
47712
  module.exports = {
47529
47713
  getHighWaterMark: getHighWaterMark
47530
47714
  };
47531
- },{"../../../errors":135}],148:[function(require,module,exports){
47715
+ },{"../../../errors":143}],156:[function(require,module,exports){
47532
47716
  module.exports = require('events').EventEmitter;
47533
47717
 
47534
- },{"events":94}],149:[function(require,module,exports){
47718
+ },{"events":94}],157:[function(require,module,exports){
47535
47719
  // Copyright Joyent, Inc. and other Node contributors.
47536
47720
  //
47537
47721
  // Permission is hereby granted, free of charge, to any person obtaining a
@@ -47828,7 +48012,7 @@ function simpleWrite(buf) {
47828
48012
  function simpleEnd(buf) {
47829
48013
  return buf && buf.length ? this.write(buf) : '';
47830
48014
  }
47831
- },{"safe-buffer":132}],150:[function(require,module,exports){
48015
+ },{"safe-buffer":139}],158:[function(require,module,exports){
47832
48016
  var TINF_OK = 0;
47833
48017
  var TINF_DATA_ERROR = -3;
47834
48018
 
@@ -48205,7 +48389,7 @@ length_base[28] = 258;
48205
48389
 
48206
48390
  module.exports = tinf_uncompress;
48207
48391
 
48208
- },{}],151:[function(require,module,exports){
48392
+ },{}],159:[function(require,module,exports){
48209
48393
  (function (global){(function (){
48210
48394
  /******************************************************************************
48211
48395
  Copyright (c) Microsoft Corporation.
@@ -48693,7 +48877,7 @@ var __rewriteRelativeImportExtension;
48693
48877
  });
48694
48878
 
48695
48879
  }).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
48696
- },{}],152:[function(require,module,exports){
48880
+ },{}],160:[function(require,module,exports){
48697
48881
  var $c5L0i$base64js = require("base64-js");
48698
48882
  var $c5L0i$unicodetrie = require("unicode-trie");
48699
48883
 
@@ -48845,7 +49029,7 @@ $43d7963e56408b24$export$2e2bcd8739ae039 = {
48845
49029
 
48846
49030
 
48847
49031
 
48848
- },{"base64-js":9,"unicode-trie":153}],153:[function(require,module,exports){
49032
+ },{"base64-js":9,"unicode-trie":161}],161:[function(require,module,exports){
48849
49033
  const inflate = require('tiny-inflate');
48850
49034
  const { swap32LE } = require('./swap');
48851
49035
 
@@ -48982,7 +49166,7 @@ class UnicodeTrie {
48982
49166
  }
48983
49167
 
48984
49168
  module.exports = UnicodeTrie;
48985
- },{"./swap":154,"tiny-inflate":150}],154:[function(require,module,exports){
49169
+ },{"./swap":162,"tiny-inflate":158}],162:[function(require,module,exports){
48986
49170
  const isBigEndian = (new Uint8Array(new Uint32Array([0x12345678]).buffer)[0] === 0x12);
48987
49171
 
48988
49172
  const swap = (b, n, m) => {
@@ -49009,7 +49193,7 @@ module.exports = {
49009
49193
  swap32LE: swap32LE
49010
49194
  };
49011
49195
 
49012
- },{}],155:[function(require,module,exports){
49196
+ },{}],163:[function(require,module,exports){
49013
49197
  (function (global){(function (){
49014
49198
 
49015
49199
  /**
@@ -49080,9 +49264,9 @@ function config (name) {
49080
49264
  }
49081
49265
 
49082
49266
  }).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
49083
- },{}],156:[function(require,module,exports){
49267
+ },{}],164:[function(require,module,exports){
49084
49268
  arguments[4][6][0].apply(exports,arguments)
49085
- },{"dup":6}],157:[function(require,module,exports){
49269
+ },{"dup":6}],165:[function(require,module,exports){
49086
49270
  // Currently in sync with Node.js lib/internal/util/types.js
49087
49271
  // https://github.com/nodejs/node/commit/112cc7c27551254aa2b17098fb774867f05ed0d9
49088
49272
 
@@ -49418,7 +49602,7 @@ exports.isAnyArrayBuffer = isAnyArrayBuffer;
49418
49602
  });
49419
49603
  });
49420
49604
 
49421
- },{"is-arguments":110,"is-generator-function":112,"is-typed-array":113,"which-typed-array":159}],158:[function(require,module,exports){
49605
+ },{"is-arguments":113,"is-generator-function":115,"is-typed-array":117,"which-typed-array":167}],166:[function(require,module,exports){
49422
49606
  (function (process){(function (){
49423
49607
  // Copyright Joyent, Inc. and other Node contributors.
49424
49608
  //
@@ -50137,7 +50321,7 @@ function callbackify(original) {
50137
50321
  exports.callbackify = callbackify;
50138
50322
 
50139
50323
  }).call(this)}).call(this,require('_process'))
50140
- },{"./support/isBuffer":156,"./support/types":157,"_process":130,"inherits":109}],159:[function(require,module,exports){
50324
+ },{"./support/isBuffer":164,"./support/types":165,"_process":137,"inherits":112}],167:[function(require,module,exports){
50141
50325
  (function (global){(function (){
50142
50326
  'use strict';
50143
50327
 
@@ -50146,8 +50330,8 @@ var availableTypedArrays = require('available-typed-arrays');
50146
50330
  var callBind = require('call-bind');
50147
50331
  var callBound = require('call-bound');
50148
50332
  var gOPD = require('gopd');
50333
+ var getProto = require('get-proto');
50149
50334
 
50150
- /** @type {(O: object) => string} */
50151
50335
  var $toString = callBound('Object.prototype.toString');
50152
50336
  var hasToStringTag = require('has-tostringtag/shams')();
50153
50337
 
@@ -50155,7 +50339,6 @@ var g = typeof globalThis === 'undefined' ? global : globalThis;
50155
50339
  var typedArrays = availableTypedArrays();
50156
50340
 
50157
50341
  var $slice = callBound('String.prototype.slice');
50158
- var getPrototypeOf = Object.getPrototypeOf; // require('getprototypeof');
50159
50342
 
50160
50343
  /** @type {<T = unknown>(array: readonly T[], value: unknown) => number} */
50161
50344
  var $indexOf = callBound('Array.prototype.indexOf', true) || function indexOf(array, value) {
@@ -50167,18 +50350,18 @@ var $indexOf = callBound('Array.prototype.indexOf', true) || function indexOf(ar
50167
50350
  return -1;
50168
50351
  };
50169
50352
 
50170
- /** @typedef {(receiver: import('.').TypedArray) => string | typeof Uint8Array.prototype.slice.call | typeof Uint8Array.prototype.set.call} Getter */
50171
- /** @type {{ [k in `\$${import('.').TypedArrayName}`]?: Getter } & { __proto__: null }} */
50353
+ /** @typedef {import('./types').Getter} Getter */
50354
+ /** @type {import('./types').Cache} */
50172
50355
  var cache = { __proto__: null };
50173
- if (hasToStringTag && gOPD && getPrototypeOf) {
50356
+ if (hasToStringTag && gOPD && getProto) {
50174
50357
  forEach(typedArrays, function (typedArray) {
50175
50358
  var arr = new g[typedArray]();
50176
- if (Symbol.toStringTag in arr) {
50177
- var proto = getPrototypeOf(arr);
50359
+ if (Symbol.toStringTag in arr && getProto) {
50360
+ var proto = getProto(arr);
50178
50361
  // @ts-expect-error TS won't narrow inside a closure
50179
50362
  var descriptor = gOPD(proto, Symbol.toStringTag);
50180
- if (!descriptor) {
50181
- var superProto = getPrototypeOf(proto);
50363
+ if (!descriptor && proto) {
50364
+ var superProto = getProto(proto);
50182
50365
  // @ts-expect-error TS won't narrow inside a closure
50183
50366
  descriptor = gOPD(superProto, Symbol.toStringTag);
50184
50367
  }
@@ -50191,8 +50374,12 @@ if (hasToStringTag && gOPD && getPrototypeOf) {
50191
50374
  var arr = new g[typedArray]();
50192
50375
  var fn = arr.slice || arr.set;
50193
50376
  if (fn) {
50194
- // @ts-expect-error TODO: fix
50195
- cache['$' + typedArray] = callBind(fn);
50377
+ cache[
50378
+ /** @type {`$${import('.').TypedArrayName}`} */ ('$' + typedArray)
50379
+ ] = /** @type {import('./types').BoundSlice | import('./types').BoundSet} */ (
50380
+ // @ts-expect-error TODO FIXME
50381
+ callBind(fn)
50382
+ );
50196
50383
  }
50197
50384
  });
50198
50385
  }
@@ -50201,15 +50388,14 @@ if (hasToStringTag && gOPD && getPrototypeOf) {
50201
50388
  var tryTypedArrays = function tryAllTypedArrays(value) {
50202
50389
  /** @type {ReturnType<typeof tryAllTypedArrays>} */ var found = false;
50203
50390
  forEach(
50204
- // eslint-disable-next-line no-extra-parens
50205
- /** @type {Record<`\$${TypedArrayName}`, Getter>} */ /** @type {any} */ (cache),
50391
+ /** @type {Record<`\$${import('.').TypedArrayName}`, Getter>} */ (cache),
50206
50392
  /** @type {(getter: Getter, name: `\$${import('.').TypedArrayName}`) => void} */
50207
50393
  function (getter, typedArray) {
50208
50394
  if (!found) {
50209
50395
  try {
50210
- // @ts-expect-error TODO: fix
50396
+ // @ts-expect-error a throw is fine here
50211
50397
  if ('$' + getter(value) === typedArray) {
50212
- found = $slice(typedArray, 1);
50398
+ found = /** @type {import('.').TypedArrayName} */ ($slice(typedArray, 1));
50213
50399
  }
50214
50400
  } catch (e) { /**/ }
50215
50401
  }
@@ -50222,14 +50408,13 @@ var tryTypedArrays = function tryAllTypedArrays(value) {
50222
50408
  var trySlices = function tryAllSlices(value) {
50223
50409
  /** @type {ReturnType<typeof tryAllSlices>} */ var found = false;
50224
50410
  forEach(
50225
- // eslint-disable-next-line no-extra-parens
50226
- /** @type {Record<`\$${TypedArrayName}`, Getter>} */ /** @type {any} */ (cache),
50227
- /** @type {(getter: typeof cache, name: `\$${import('.').TypedArrayName}`) => void} */ function (getter, name) {
50411
+ /** @type {Record<`\$${import('.').TypedArrayName}`, Getter>} */(cache),
50412
+ /** @type {(getter: Getter, name: `\$${import('.').TypedArrayName}`) => void} */ function (getter, name) {
50228
50413
  if (!found) {
50229
50414
  try {
50230
- // @ts-expect-error TODO: fix
50415
+ // @ts-expect-error a throw is fine here
50231
50416
  getter(value);
50232
- found = $slice(name, 1);
50417
+ found = /** @type {import('.').TypedArrayName} */ ($slice(name, 1));
50233
50418
  } catch (e) { /**/ }
50234
50419
  }
50235
50420
  }
@@ -50257,5 +50442,5 @@ module.exports = function whichTypedArray(value) {
50257
50442
  };
50258
50443
 
50259
50444
  }).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
50260
- },{"available-typed-arrays":8,"call-bind":43,"call-bound":44,"for-each":97,"gopd":102,"has-tostringtag/shams":106}]},{},[1])(1)
50445
+ },{"available-typed-arrays":8,"call-bind":43,"call-bound":44,"for-each":97,"get-proto":103,"gopd":105,"has-tostringtag/shams":109}]},{},[1])(1)
50261
50446
  });