@d-i-t-a/reader 2.4.10 → 2.5.0

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 (110) hide show
  1. package/README.md +66 -59
  2. package/dist/esm/index.js +64449 -40471
  3. package/dist/esm/index.js.map +4 -4
  4. package/dist/images/altText_add.svg +3 -0
  5. package/dist/images/altText_disclaimer.svg +3 -0
  6. package/dist/images/altText_done.svg +3 -0
  7. package/dist/images/altText_spinner.svg +30 -0
  8. package/dist/images/altText_warning.svg +3 -0
  9. package/dist/images/annotation-check.svg +11 -0
  10. package/dist/images/annotation-comment.svg +16 -0
  11. package/dist/images/annotation-help.svg +26 -0
  12. package/dist/images/annotation-insert.svg +10 -0
  13. package/dist/images/annotation-key.svg +11 -0
  14. package/dist/images/annotation-newparagraph.svg +11 -0
  15. package/dist/images/annotation-noicon.svg +7 -0
  16. package/dist/images/annotation-note.svg +42 -0
  17. package/dist/images/annotation-paperclip.svg +6 -0
  18. package/dist/images/annotation-paragraph.svg +16 -0
  19. package/dist/images/annotation-pushpin.svg +7 -0
  20. package/dist/images/checkmark.svg +5 -0
  21. package/dist/images/comment-actionsButton.svg +3 -0
  22. package/dist/images/comment-closeButton.svg +3 -0
  23. package/dist/images/comment-editButton.svg +8 -0
  24. package/dist/images/comment-popup-editButton.svg +5 -0
  25. package/dist/images/cursor-editorFreeHighlight.svg +6 -0
  26. package/dist/images/cursor-editorFreeText.svg +3 -0
  27. package/dist/images/cursor-editorInk.svg +4 -0
  28. package/dist/images/cursor-editorTextHighlight.svg +8 -0
  29. package/dist/images/editor-toolbar-delete.svg +5 -0
  30. package/dist/images/editor-toolbar-edit.svg +3 -0
  31. package/dist/images/findbarButton-next.svg +3 -0
  32. package/dist/images/findbarButton-previous.svg +3 -0
  33. package/dist/images/gv-toolbarButton-download.svg +3 -0
  34. package/dist/images/loading-icon.gif +0 -0
  35. package/dist/images/loading.svg +1 -0
  36. package/dist/images/messageBar_closingButton.svg +3 -0
  37. package/dist/images/messageBar_info.svg +3 -0
  38. package/dist/images/messageBar_warning.svg +3 -0
  39. package/dist/images/pages_closeButton.svg +3 -0
  40. package/dist/images/pages_selected.svg +7 -0
  41. package/dist/images/pages_viewArrow.svg +3 -0
  42. package/dist/images/pages_viewButton.svg +3 -0
  43. package/dist/images/secondaryToolbarButton-documentProperties.svg +3 -0
  44. package/dist/images/secondaryToolbarButton-firstPage.svg +3 -0
  45. package/dist/images/secondaryToolbarButton-handTool.svg +3 -0
  46. package/dist/images/secondaryToolbarButton-lastPage.svg +3 -0
  47. package/dist/images/secondaryToolbarButton-rotateCcw.svg +3 -0
  48. package/dist/images/secondaryToolbarButton-rotateCw.svg +3 -0
  49. package/dist/images/secondaryToolbarButton-scrollHorizontal.svg +3 -0
  50. package/dist/images/secondaryToolbarButton-scrollPage.svg +3 -0
  51. package/dist/images/secondaryToolbarButton-scrollVertical.svg +3 -0
  52. package/dist/images/secondaryToolbarButton-scrollWrapped.svg +3 -0
  53. package/dist/images/secondaryToolbarButton-selectTool.svg +3 -0
  54. package/dist/images/secondaryToolbarButton-spreadEven.svg +3 -0
  55. package/dist/images/secondaryToolbarButton-spreadNone.svg +3 -0
  56. package/dist/images/secondaryToolbarButton-spreadOdd.svg +3 -0
  57. package/dist/images/toolbarButton-bookmark.svg +3 -0
  58. package/dist/images/toolbarButton-currentOutlineItem.svg +3 -0
  59. package/dist/images/toolbarButton-download.svg +4 -0
  60. package/dist/images/toolbarButton-editorFreeText.svg +5 -0
  61. package/dist/images/toolbarButton-editorHighlight.svg +6 -0
  62. package/dist/images/toolbarButton-editorInk.svg +4 -0
  63. package/dist/images/toolbarButton-editorSignature.svg +6 -0
  64. package/dist/images/toolbarButton-editorStamp.svg +8 -0
  65. package/dist/images/toolbarButton-menuArrow.svg +3 -0
  66. package/dist/images/toolbarButton-openFile.svg +3 -0
  67. package/dist/images/toolbarButton-pageDown.svg +3 -0
  68. package/dist/images/toolbarButton-pageUp.svg +3 -0
  69. package/dist/images/toolbarButton-presentationMode.svg +3 -0
  70. package/dist/images/toolbarButton-print.svg +3 -0
  71. package/dist/images/toolbarButton-search.svg +3 -0
  72. package/dist/images/toolbarButton-secondaryToolbarToggle.svg +3 -0
  73. package/dist/images/toolbarButton-viewAttachments.svg +3 -0
  74. package/dist/images/toolbarButton-viewLayers.svg +3 -0
  75. package/dist/images/toolbarButton-viewOutline.svg +3 -0
  76. package/dist/images/toolbarButton-viewThumbnail.svg +3 -0
  77. package/dist/images/toolbarButton-viewsManagerToggle.svg +3 -0
  78. package/dist/images/toolbarButton-zoomIn.svg +3 -0
  79. package/dist/images/toolbarButton-zoomOut.svg +3 -0
  80. package/dist/images/treeitem-collapsed.svg +1 -0
  81. package/dist/images/treeitem-expanded.svg +1 -0
  82. package/dist/injectables/click/click.js +637 -153
  83. package/dist/injectables/click/click.js.map +4 -4
  84. package/dist/pdf.worker.min.mjs +28 -0
  85. package/dist/pdf_viewer.css +7129 -0
  86. package/dist/reader.css +1 -1
  87. package/dist/reader.css.map +1 -1
  88. package/dist/reader.js +572 -59
  89. package/dist/reader.js.map +4 -4
  90. package/dist/types/index.d.ts +5 -1
  91. package/dist/types/model/user-settings/ReadiumCSS.d.ts +14 -0
  92. package/dist/types/model/user-settings/UserProperties.d.ts +1 -1
  93. package/dist/types/model/user-settings/UserSettings.d.ts +26 -2
  94. package/dist/types/modules/AnnotationModule.d.ts +2 -2
  95. package/dist/types/modules/BookmarkModule.d.ts +2 -2
  96. package/dist/types/modules/ReaderModule.d.ts +6 -0
  97. package/dist/types/modules/citation/CitationModule.d.ts +21 -5
  98. package/dist/types/modules/highlight/TextHighlighter.d.ts +2 -0
  99. package/dist/types/modules/mediaoverlays/MediaOverlayModule.d.ts +4 -0
  100. package/dist/types/modules/protection/ContentProtectionModule.d.ts +1 -2
  101. package/dist/types/navigator/IFrameNavigator.d.ts +37 -16
  102. package/dist/types/navigator/Navigator.d.ts +25 -22
  103. package/dist/types/navigator/PDFNavigator.d.ts +140 -17
  104. package/dist/types/reader.d.ts +15 -7
  105. package/dist/types/store/Annotator.d.ts +26 -22
  106. package/dist/types/store/LocalAnnotator.d.ts +5 -4
  107. package/dist/types/store/LocalStorageStore.d.ts +4 -4
  108. package/dist/types/views/BookView.d.ts +1 -0
  109. package/dist/types/views/ReflowableBookView.d.ts +7 -0
  110. package/package.json +49 -58
@@ -170,6 +170,201 @@
170
170
  }
171
171
  });
172
172
 
173
+ // node_modules/es-object-atoms/index.js
174
+ var require_es_object_atoms = __commonJS({
175
+ "node_modules/es-object-atoms/index.js"(exports, module) {
176
+ "use strict";
177
+ init_polyfills();
178
+ module.exports = Object;
179
+ }
180
+ });
181
+
182
+ // node_modules/es-errors/index.js
183
+ var require_es_errors = __commonJS({
184
+ "node_modules/es-errors/index.js"(exports, module) {
185
+ "use strict";
186
+ init_polyfills();
187
+ module.exports = Error;
188
+ }
189
+ });
190
+
191
+ // node_modules/es-errors/eval.js
192
+ var require_eval = __commonJS({
193
+ "node_modules/es-errors/eval.js"(exports, module) {
194
+ "use strict";
195
+ init_polyfills();
196
+ module.exports = EvalError;
197
+ }
198
+ });
199
+
200
+ // node_modules/es-errors/range.js
201
+ var require_range = __commonJS({
202
+ "node_modules/es-errors/range.js"(exports, module) {
203
+ "use strict";
204
+ init_polyfills();
205
+ module.exports = RangeError;
206
+ }
207
+ });
208
+
209
+ // node_modules/es-errors/ref.js
210
+ var require_ref = __commonJS({
211
+ "node_modules/es-errors/ref.js"(exports, module) {
212
+ "use strict";
213
+ init_polyfills();
214
+ module.exports = ReferenceError;
215
+ }
216
+ });
217
+
218
+ // node_modules/es-errors/syntax.js
219
+ var require_syntax = __commonJS({
220
+ "node_modules/es-errors/syntax.js"(exports, module) {
221
+ "use strict";
222
+ init_polyfills();
223
+ module.exports = SyntaxError;
224
+ }
225
+ });
226
+
227
+ // node_modules/es-errors/type.js
228
+ var require_type = __commonJS({
229
+ "node_modules/es-errors/type.js"(exports, module) {
230
+ "use strict";
231
+ init_polyfills();
232
+ module.exports = TypeError;
233
+ }
234
+ });
235
+
236
+ // node_modules/es-errors/uri.js
237
+ var require_uri = __commonJS({
238
+ "node_modules/es-errors/uri.js"(exports, module) {
239
+ "use strict";
240
+ init_polyfills();
241
+ module.exports = URIError;
242
+ }
243
+ });
244
+
245
+ // node_modules/math-intrinsics/abs.js
246
+ var require_abs = __commonJS({
247
+ "node_modules/math-intrinsics/abs.js"(exports, module) {
248
+ "use strict";
249
+ init_polyfills();
250
+ module.exports = Math.abs;
251
+ }
252
+ });
253
+
254
+ // node_modules/math-intrinsics/floor.js
255
+ var require_floor = __commonJS({
256
+ "node_modules/math-intrinsics/floor.js"(exports, module) {
257
+ "use strict";
258
+ init_polyfills();
259
+ module.exports = Math.floor;
260
+ }
261
+ });
262
+
263
+ // node_modules/math-intrinsics/max.js
264
+ var require_max = __commonJS({
265
+ "node_modules/math-intrinsics/max.js"(exports, module) {
266
+ "use strict";
267
+ init_polyfills();
268
+ module.exports = Math.max;
269
+ }
270
+ });
271
+
272
+ // node_modules/math-intrinsics/min.js
273
+ var require_min = __commonJS({
274
+ "node_modules/math-intrinsics/min.js"(exports, module) {
275
+ "use strict";
276
+ init_polyfills();
277
+ module.exports = Math.min;
278
+ }
279
+ });
280
+
281
+ // node_modules/math-intrinsics/pow.js
282
+ var require_pow = __commonJS({
283
+ "node_modules/math-intrinsics/pow.js"(exports, module) {
284
+ "use strict";
285
+ init_polyfills();
286
+ module.exports = Math.pow;
287
+ }
288
+ });
289
+
290
+ // node_modules/math-intrinsics/round.js
291
+ var require_round = __commonJS({
292
+ "node_modules/math-intrinsics/round.js"(exports, module) {
293
+ "use strict";
294
+ init_polyfills();
295
+ module.exports = Math.round;
296
+ }
297
+ });
298
+
299
+ // node_modules/math-intrinsics/isNaN.js
300
+ var require_isNaN = __commonJS({
301
+ "node_modules/math-intrinsics/isNaN.js"(exports, module) {
302
+ "use strict";
303
+ init_polyfills();
304
+ module.exports = Number.isNaN || function isNaN2(a) {
305
+ return a !== a;
306
+ };
307
+ }
308
+ });
309
+
310
+ // node_modules/math-intrinsics/sign.js
311
+ var require_sign = __commonJS({
312
+ "node_modules/math-intrinsics/sign.js"(exports, module) {
313
+ "use strict";
314
+ init_polyfills();
315
+ var $isNaN = require_isNaN();
316
+ module.exports = function sign(number) {
317
+ if ($isNaN(number) || number === 0) {
318
+ return number;
319
+ }
320
+ return number < 0 ? -1 : 1;
321
+ };
322
+ }
323
+ });
324
+
325
+ // node_modules/gopd/gOPD.js
326
+ var require_gOPD = __commonJS({
327
+ "node_modules/gopd/gOPD.js"(exports, module) {
328
+ "use strict";
329
+ init_polyfills();
330
+ module.exports = Object.getOwnPropertyDescriptor;
331
+ }
332
+ });
333
+
334
+ // node_modules/gopd/index.js
335
+ var require_gopd = __commonJS({
336
+ "node_modules/gopd/index.js"(exports, module) {
337
+ "use strict";
338
+ init_polyfills();
339
+ var $gOPD = require_gOPD();
340
+ if ($gOPD) {
341
+ try {
342
+ $gOPD([], "length");
343
+ } catch (e) {
344
+ $gOPD = null;
345
+ }
346
+ }
347
+ module.exports = $gOPD;
348
+ }
349
+ });
350
+
351
+ // node_modules/es-define-property/index.js
352
+ var require_es_define_property = __commonJS({
353
+ "node_modules/es-define-property/index.js"(exports, module) {
354
+ "use strict";
355
+ init_polyfills();
356
+ var $defineProperty = Object.defineProperty || false;
357
+ if ($defineProperty) {
358
+ try {
359
+ $defineProperty({}, "a", { value: 1 });
360
+ } catch (e) {
361
+ $defineProperty = false;
362
+ }
363
+ }
364
+ module.exports = $defineProperty;
365
+ }
366
+ });
367
+
173
368
  // node_modules/has-symbols/shams.js
174
369
  var require_shams = __commonJS({
175
370
  "node_modules/has-symbols/shams.js"(exports, module) {
@@ -183,7 +378,7 @@
183
378
  return true;
184
379
  }
185
380
  var obj = {};
186
- var sym = Symbol("test");
381
+ var sym = /* @__PURE__ */ Symbol("test");
187
382
  var symObj = Object(sym);
188
383
  if (typeof sym === "string") {
189
384
  return false;
@@ -196,7 +391,7 @@
196
391
  }
197
392
  var symVal = 42;
198
393
  obj[sym] = symVal;
199
- for (sym in obj) {
394
+ for (var _ in obj) {
200
395
  return false;
201
396
  }
202
397
  if (typeof Object.keys === "function" && Object.keys(obj).length !== 0) {
@@ -213,7 +408,10 @@
213
408
  return false;
214
409
  }
215
410
  if (typeof Object.getOwnPropertyDescriptor === "function") {
216
- var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
411
+ var descriptor = (
412
+ /** @type {PropertyDescriptor} */
413
+ Object.getOwnPropertyDescriptor(obj, sym)
414
+ );
217
415
  if (descriptor.value !== symVal || descriptor.enumerable !== true) {
218
416
  return false;
219
417
  }
@@ -240,7 +438,7 @@
240
438
  if (typeof origSymbol("foo") !== "symbol") {
241
439
  return false;
242
440
  }
243
- if (typeof Symbol("bar") !== "symbol") {
441
+ if (typeof /* @__PURE__ */ Symbol("bar") !== "symbol") {
244
442
  return false;
245
443
  }
246
444
  return hasSymbolSham();
@@ -248,18 +446,22 @@
248
446
  }
249
447
  });
250
448
 
251
- // node_modules/has-proto/index.js
252
- var require_has_proto = __commonJS({
253
- "node_modules/has-proto/index.js"(exports, module) {
449
+ // node_modules/get-proto/Reflect.getPrototypeOf.js
450
+ var require_Reflect_getPrototypeOf = __commonJS({
451
+ "node_modules/get-proto/Reflect.getPrototypeOf.js"(exports, module) {
254
452
  "use strict";
255
453
  init_polyfills();
256
- var test = {
257
- foo: {}
258
- };
259
- var $Object = Object;
260
- module.exports = function hasProto() {
261
- return { __proto__: test }.foo === test.foo && !({ __proto__: null } instanceof $Object);
262
- };
454
+ module.exports = typeof Reflect !== "undefined" && Reflect.getPrototypeOf || null;
455
+ }
456
+ });
457
+
458
+ // node_modules/get-proto/Object.getPrototypeOf.js
459
+ var require_Object_getPrototypeOf = __commonJS({
460
+ "node_modules/get-proto/Object.getPrototypeOf.js"(exports, module) {
461
+ "use strict";
462
+ init_polyfills();
463
+ var $Object = require_es_object_atoms();
464
+ module.exports = $Object.getPrototypeOf || null;
263
465
  }
264
466
  });
265
467
 
@@ -350,13 +552,126 @@
350
552
  }
351
553
  });
352
554
 
353
- // node_modules/has/src/index.js
354
- var require_src = __commonJS({
355
- "node_modules/has/src/index.js"(exports, module) {
555
+ // node_modules/call-bind-apply-helpers/functionCall.js
556
+ var require_functionCall = __commonJS({
557
+ "node_modules/call-bind-apply-helpers/functionCall.js"(exports, module) {
558
+ "use strict";
559
+ init_polyfills();
560
+ module.exports = Function.prototype.call;
561
+ }
562
+ });
563
+
564
+ // node_modules/call-bind-apply-helpers/functionApply.js
565
+ var require_functionApply = __commonJS({
566
+ "node_modules/call-bind-apply-helpers/functionApply.js"(exports, module) {
567
+ "use strict";
568
+ init_polyfills();
569
+ module.exports = Function.prototype.apply;
570
+ }
571
+ });
572
+
573
+ // node_modules/call-bind-apply-helpers/reflectApply.js
574
+ var require_reflectApply = __commonJS({
575
+ "node_modules/call-bind-apply-helpers/reflectApply.js"(exports, module) {
576
+ "use strict";
577
+ init_polyfills();
578
+ module.exports = typeof Reflect !== "undefined" && Reflect && Reflect.apply;
579
+ }
580
+ });
581
+
582
+ // node_modules/call-bind-apply-helpers/actualApply.js
583
+ var require_actualApply = __commonJS({
584
+ "node_modules/call-bind-apply-helpers/actualApply.js"(exports, module) {
356
585
  "use strict";
357
586
  init_polyfills();
358
587
  var bind = require_function_bind();
359
- module.exports = bind.call(Function.call, Object.prototype.hasOwnProperty);
588
+ var $apply = require_functionApply();
589
+ var $call = require_functionCall();
590
+ var $reflectApply = require_reflectApply();
591
+ module.exports = $reflectApply || bind.call($call, $apply);
592
+ }
593
+ });
594
+
595
+ // node_modules/call-bind-apply-helpers/index.js
596
+ var require_call_bind_apply_helpers = __commonJS({
597
+ "node_modules/call-bind-apply-helpers/index.js"(exports, module) {
598
+ "use strict";
599
+ init_polyfills();
600
+ var bind = require_function_bind();
601
+ var $TypeError = require_type();
602
+ var $call = require_functionCall();
603
+ var $actualApply = require_actualApply();
604
+ module.exports = function callBindBasic(args) {
605
+ if (args.length < 1 || typeof args[0] !== "function") {
606
+ throw new $TypeError("a function is required");
607
+ }
608
+ return $actualApply(bind, $call, args);
609
+ };
610
+ }
611
+ });
612
+
613
+ // node_modules/dunder-proto/get.js
614
+ var require_get = __commonJS({
615
+ "node_modules/dunder-proto/get.js"(exports, module) {
616
+ "use strict";
617
+ init_polyfills();
618
+ var callBind = require_call_bind_apply_helpers();
619
+ var gOPD = require_gopd();
620
+ var hasProtoAccessor;
621
+ try {
622
+ hasProtoAccessor = /** @type {{ __proto__?: typeof Array.prototype }} */
623
+ [].__proto__ === Array.prototype;
624
+ } catch (e) {
625
+ if (!e || typeof e !== "object" || !("code" in e) || e.code !== "ERR_PROTO_ACCESS") {
626
+ throw e;
627
+ }
628
+ }
629
+ var desc = !!hasProtoAccessor && gOPD && gOPD(
630
+ Object.prototype,
631
+ /** @type {keyof typeof Object.prototype} */
632
+ "__proto__"
633
+ );
634
+ var $Object = Object;
635
+ var $getPrototypeOf = $Object.getPrototypeOf;
636
+ module.exports = desc && typeof desc.get === "function" ? callBind([desc.get]) : typeof $getPrototypeOf === "function" ? (
637
+ /** @type {import('./get')} */
638
+ function getDunder(value) {
639
+ return $getPrototypeOf(value == null ? value : $Object(value));
640
+ }
641
+ ) : false;
642
+ }
643
+ });
644
+
645
+ // node_modules/get-proto/index.js
646
+ var require_get_proto = __commonJS({
647
+ "node_modules/get-proto/index.js"(exports, module) {
648
+ "use strict";
649
+ init_polyfills();
650
+ var reflectGetProto = require_Reflect_getPrototypeOf();
651
+ var originalGetProto = require_Object_getPrototypeOf();
652
+ var getDunderProto = require_get();
653
+ module.exports = reflectGetProto ? function getProto(O) {
654
+ return reflectGetProto(O);
655
+ } : originalGetProto ? function getProto(O) {
656
+ if (!O || typeof O !== "object" && typeof O !== "function") {
657
+ throw new TypeError("getProto: not an object");
658
+ }
659
+ return originalGetProto(O);
660
+ } : getDunderProto ? function getProto(O) {
661
+ return getDunderProto(O);
662
+ } : null;
663
+ }
664
+ });
665
+
666
+ // node_modules/hasown/index.js
667
+ var require_hasown = __commonJS({
668
+ "node_modules/hasown/index.js"(exports, module) {
669
+ "use strict";
670
+ init_polyfills();
671
+ var call = Function.prototype.call;
672
+ var $hasOwn = Object.prototype.hasOwnProperty;
673
+ var bind = require_function_bind();
674
+ module.exports = bind.call(call, $hasOwn);
360
675
  }
361
676
  });
362
677
 
@@ -366,27 +681,34 @@
366
681
  "use strict";
367
682
  init_polyfills();
368
683
  var undefined2;
369
- var $SyntaxError = SyntaxError;
684
+ var $Object = require_es_object_atoms();
685
+ var $Error = require_es_errors();
686
+ var $EvalError = require_eval();
687
+ var $RangeError = require_range();
688
+ var $ReferenceError = require_ref();
689
+ var $SyntaxError = require_syntax();
690
+ var $TypeError = require_type();
691
+ var $URIError = require_uri();
692
+ var abs = require_abs();
693
+ var floor = require_floor();
694
+ var max = require_max();
695
+ var min = require_min();
696
+ var pow = require_pow();
697
+ var round = require_round();
698
+ var sign = require_sign();
370
699
  var $Function = Function;
371
- var $TypeError = TypeError;
372
700
  var getEvalledConstructor = function(expressionSyntax) {
373
701
  try {
374
702
  return $Function('"use strict"; return (' + expressionSyntax + ").constructor;")();
375
703
  } catch (e) {
376
704
  }
377
705
  };
378
- var $gOPD = Object.getOwnPropertyDescriptor;
379
- if ($gOPD) {
380
- try {
381
- $gOPD({}, "");
382
- } catch (e) {
383
- $gOPD = null;
384
- }
385
- }
706
+ var $gOPD = require_gopd();
707
+ var $defineProperty = require_es_define_property();
386
708
  var throwTypeError = function() {
387
709
  throw new $TypeError();
388
710
  };
389
- var ThrowTypeError = $gOPD ? function() {
711
+ var ThrowTypeError = $gOPD ? (function() {
390
712
  try {
391
713
  arguments.callee;
392
714
  return throwTypeError;
@@ -397,15 +719,17 @@
397
719
  return throwTypeError;
398
720
  }
399
721
  }
400
- }() : throwTypeError;
722
+ })() : throwTypeError;
401
723
  var hasSymbols = require_has_symbols()();
402
- var hasProto = require_has_proto()();
403
- var getProto = Object.getPrototypeOf || (hasProto ? function(x) {
404
- return x.__proto__;
405
- } : null);
724
+ var getProto = require_get_proto();
725
+ var $ObjectGPO = require_Object_getPrototypeOf();
726
+ var $ReflectGPO = require_Reflect_getPrototypeOf();
727
+ var $apply = require_functionApply();
728
+ var $call = require_functionCall();
406
729
  var needsEval = {};
407
730
  var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined2 : getProto(Uint8Array);
408
731
  var INTRINSICS = {
732
+ __proto__: null,
409
733
  "%AggregateError%": typeof AggregateError === "undefined" ? undefined2 : AggregateError,
410
734
  "%Array%": Array,
411
735
  "%ArrayBuffer%": typeof ArrayBuffer === "undefined" ? undefined2 : ArrayBuffer,
@@ -426,10 +750,11 @@
426
750
  "%decodeURIComponent%": decodeURIComponent,
427
751
  "%encodeURI%": encodeURI,
428
752
  "%encodeURIComponent%": encodeURIComponent,
429
- "%Error%": Error,
753
+ "%Error%": $Error,
430
754
  "%eval%": eval,
431
755
  // eslint-disable-line no-eval
432
- "%EvalError%": EvalError,
756
+ "%EvalError%": $EvalError,
757
+ "%Float16Array%": typeof Float16Array === "undefined" ? undefined2 : Float16Array,
433
758
  "%Float32Array%": typeof Float32Array === "undefined" ? undefined2 : Float32Array,
434
759
  "%Float64Array%": typeof Float64Array === "undefined" ? undefined2 : Float64Array,
435
760
  "%FinalizationRegistry%": typeof FinalizationRegistry === "undefined" ? undefined2 : FinalizationRegistry,
@@ -446,13 +771,14 @@
446
771
  "%MapIteratorPrototype%": typeof Map === "undefined" || !hasSymbols || !getProto ? undefined2 : getProto((/* @__PURE__ */ new Map())[Symbol.iterator]()),
447
772
  "%Math%": Math,
448
773
  "%Number%": Number,
449
- "%Object%": Object,
774
+ "%Object%": $Object,
775
+ "%Object.getOwnPropertyDescriptor%": $gOPD,
450
776
  "%parseFloat%": parseFloat,
451
777
  "%parseInt%": parseInt,
452
778
  "%Promise%": typeof Promise === "undefined" ? undefined2 : Promise,
453
779
  "%Proxy%": typeof Proxy === "undefined" ? undefined2 : Proxy,
454
- "%RangeError%": RangeError,
455
- "%ReferenceError%": ReferenceError,
780
+ "%RangeError%": $RangeError,
781
+ "%ReferenceError%": $ReferenceError,
456
782
  "%Reflect%": typeof Reflect === "undefined" ? undefined2 : Reflect,
457
783
  "%RegExp%": RegExp,
458
784
  "%Set%": typeof Set === "undefined" ? undefined2 : Set,
@@ -469,10 +795,22 @@
469
795
  "%Uint8ClampedArray%": typeof Uint8ClampedArray === "undefined" ? undefined2 : Uint8ClampedArray,
470
796
  "%Uint16Array%": typeof Uint16Array === "undefined" ? undefined2 : Uint16Array,
471
797
  "%Uint32Array%": typeof Uint32Array === "undefined" ? undefined2 : Uint32Array,
472
- "%URIError%": URIError,
798
+ "%URIError%": $URIError,
473
799
  "%WeakMap%": typeof WeakMap === "undefined" ? undefined2 : WeakMap,
474
800
  "%WeakRef%": typeof WeakRef === "undefined" ? undefined2 : WeakRef,
475
- "%WeakSet%": typeof WeakSet === "undefined" ? undefined2 : WeakSet
801
+ "%WeakSet%": typeof WeakSet === "undefined" ? undefined2 : WeakSet,
802
+ "%Function.prototype.call%": $call,
803
+ "%Function.prototype.apply%": $apply,
804
+ "%Object.defineProperty%": $defineProperty,
805
+ "%Object.getPrototypeOf%": $ObjectGPO,
806
+ "%Math.abs%": abs,
807
+ "%Math.floor%": floor,
808
+ "%Math.max%": max,
809
+ "%Math.min%": min,
810
+ "%Math.pow%": pow,
811
+ "%Math.round%": round,
812
+ "%Math.sign%": sign,
813
+ "%Reflect.getPrototypeOf%": $ReflectGPO
476
814
  };
477
815
  if (getProto) {
478
816
  try {
@@ -506,6 +844,7 @@
506
844
  return value;
507
845
  };
508
846
  var LEGACY_ALIASES = {
847
+ __proto__: null,
509
848
  "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
510
849
  "%ArrayPrototype%": ["Array", "prototype"],
511
850
  "%ArrayProto_entries%": ["Array", "prototype", "entries"],
@@ -559,12 +898,12 @@
559
898
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
560
899
  };
561
900
  var bind = require_function_bind();
562
- var hasOwn = require_src();
563
- var $concat = bind.call(Function.call, Array.prototype.concat);
564
- var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
565
- var $replace = bind.call(Function.call, String.prototype.replace);
566
- var $strSlice = bind.call(Function.call, String.prototype.slice);
567
- var $exec = bind.call(Function.call, RegExp.prototype.exec);
901
+ var hasOwn = require_hasown();
902
+ var $concat = bind.call($call, Array.prototype.concat);
903
+ var $spliceApply = bind.call($apply, Array.prototype.splice);
904
+ var $replace = bind.call($call, String.prototype.replace);
905
+ var $strSlice = bind.call($call, String.prototype.slice);
906
+ var $exec = bind.call($call, RegExp.prototype.exec);
568
907
  var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
569
908
  var reEscapeChar = /\\(\\)?/g;
570
909
  var stringToPath = function stringToPath2(string) {
@@ -644,7 +983,7 @@
644
983
  if (!allowMissing) {
645
984
  throw new $TypeError("base intrinsic for " + name + " exists, but the property is not available.");
646
985
  }
647
- return void 0;
986
+ return void undefined2;
648
987
  }
649
988
  if ($gOPD && i + 1 >= parts.length) {
650
989
  var desc = $gOPD(value, part);
@@ -668,42 +1007,163 @@
668
1007
  }
669
1008
  });
670
1009
 
671
- // node_modules/call-bind/index.js
672
- var require_call_bind = __commonJS({
673
- "node_modules/call-bind/index.js"(exports, module) {
1010
+ // node_modules/define-data-property/index.js
1011
+ var require_define_data_property = __commonJS({
1012
+ "node_modules/define-data-property/index.js"(exports, module) {
674
1013
  "use strict";
675
1014
  init_polyfills();
676
- var bind = require_function_bind();
677
- var GetIntrinsic = require_get_intrinsic();
678
- var $apply = GetIntrinsic("%Function.prototype.apply%");
679
- var $call = GetIntrinsic("%Function.prototype.call%");
680
- var $reflectApply = GetIntrinsic("%Reflect.apply%", true) || bind.call($call, $apply);
681
- var $gOPD = GetIntrinsic("%Object.getOwnPropertyDescriptor%", true);
682
- var $defineProperty = GetIntrinsic("%Object.defineProperty%", true);
683
- var $max = GetIntrinsic("%Math.max%");
684
- if ($defineProperty) {
1015
+ var $defineProperty = require_es_define_property();
1016
+ var $SyntaxError = require_syntax();
1017
+ var $TypeError = require_type();
1018
+ var gopd = require_gopd();
1019
+ module.exports = function defineDataProperty(obj, property, value) {
1020
+ if (!obj || typeof obj !== "object" && typeof obj !== "function") {
1021
+ throw new $TypeError("`obj` must be an object or a function`");
1022
+ }
1023
+ if (typeof property !== "string" && typeof property !== "symbol") {
1024
+ throw new $TypeError("`property` must be a string or a symbol`");
1025
+ }
1026
+ if (arguments.length > 3 && typeof arguments[3] !== "boolean" && arguments[3] !== null) {
1027
+ throw new $TypeError("`nonEnumerable`, if provided, must be a boolean or null");
1028
+ }
1029
+ if (arguments.length > 4 && typeof arguments[4] !== "boolean" && arguments[4] !== null) {
1030
+ throw new $TypeError("`nonWritable`, if provided, must be a boolean or null");
1031
+ }
1032
+ if (arguments.length > 5 && typeof arguments[5] !== "boolean" && arguments[5] !== null) {
1033
+ throw new $TypeError("`nonConfigurable`, if provided, must be a boolean or null");
1034
+ }
1035
+ if (arguments.length > 6 && typeof arguments[6] !== "boolean") {
1036
+ throw new $TypeError("`loose`, if provided, must be a boolean");
1037
+ }
1038
+ var nonEnumerable = arguments.length > 3 ? arguments[3] : null;
1039
+ var nonWritable = arguments.length > 4 ? arguments[4] : null;
1040
+ var nonConfigurable = arguments.length > 5 ? arguments[5] : null;
1041
+ var loose = arguments.length > 6 ? arguments[6] : false;
1042
+ var desc = !!gopd && gopd(obj, property);
1043
+ if ($defineProperty) {
1044
+ $defineProperty(obj, property, {
1045
+ configurable: nonConfigurable === null && desc ? desc.configurable : !nonConfigurable,
1046
+ enumerable: nonEnumerable === null && desc ? desc.enumerable : !nonEnumerable,
1047
+ value,
1048
+ writable: nonWritable === null && desc ? desc.writable : !nonWritable
1049
+ });
1050
+ } else if (loose || !nonEnumerable && !nonWritable && !nonConfigurable) {
1051
+ obj[property] = value;
1052
+ } else {
1053
+ throw new $SyntaxError("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
1054
+ }
1055
+ };
1056
+ }
1057
+ });
1058
+
1059
+ // node_modules/has-property-descriptors/index.js
1060
+ var require_has_property_descriptors = __commonJS({
1061
+ "node_modules/has-property-descriptors/index.js"(exports, module) {
1062
+ "use strict";
1063
+ init_polyfills();
1064
+ var $defineProperty = require_es_define_property();
1065
+ var hasPropertyDescriptors = function hasPropertyDescriptors2() {
1066
+ return !!$defineProperty;
1067
+ };
1068
+ hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {
1069
+ if (!$defineProperty) {
1070
+ return null;
1071
+ }
685
1072
  try {
686
- $defineProperty({}, "a", { value: 1 });
1073
+ return $defineProperty([], "length", { value: 1 }).length !== 1;
687
1074
  } catch (e) {
688
- $defineProperty = null;
1075
+ return true;
689
1076
  }
690
- }
691
- module.exports = function callBind(originalFunction) {
692
- var func = $reflectApply(bind, $call, arguments);
693
- if ($gOPD && $defineProperty) {
694
- var desc = $gOPD(func, "length");
695
- if (desc.configurable) {
696
- $defineProperty(
697
- func,
1077
+ };
1078
+ module.exports = hasPropertyDescriptors;
1079
+ }
1080
+ });
1081
+
1082
+ // node_modules/set-function-length/index.js
1083
+ var require_set_function_length = __commonJS({
1084
+ "node_modules/set-function-length/index.js"(exports, module) {
1085
+ "use strict";
1086
+ init_polyfills();
1087
+ var GetIntrinsic = require_get_intrinsic();
1088
+ var define = require_define_data_property();
1089
+ var hasDescriptors = require_has_property_descriptors()();
1090
+ var gOPD = require_gopd();
1091
+ var $TypeError = require_type();
1092
+ var $floor = GetIntrinsic("%Math.floor%");
1093
+ module.exports = function setFunctionLength(fn, length) {
1094
+ if (typeof fn !== "function") {
1095
+ throw new $TypeError("`fn` is not a function");
1096
+ }
1097
+ if (typeof length !== "number" || length < 0 || length > 4294967295 || $floor(length) !== length) {
1098
+ throw new $TypeError("`length` must be a positive 32-bit integer");
1099
+ }
1100
+ var loose = arguments.length > 2 && !!arguments[2];
1101
+ var functionLengthIsConfigurable = true;
1102
+ var functionLengthIsWritable = true;
1103
+ if ("length" in fn && gOPD) {
1104
+ var desc = gOPD(fn, "length");
1105
+ if (desc && !desc.configurable) {
1106
+ functionLengthIsConfigurable = false;
1107
+ }
1108
+ if (desc && !desc.writable) {
1109
+ functionLengthIsWritable = false;
1110
+ }
1111
+ }
1112
+ if (functionLengthIsConfigurable || functionLengthIsWritable || !loose) {
1113
+ if (hasDescriptors) {
1114
+ define(
1115
+ /** @type {Parameters<define>[0]} */
1116
+ fn,
1117
+ "length",
1118
+ length,
1119
+ true,
1120
+ true
1121
+ );
1122
+ } else {
1123
+ define(
1124
+ /** @type {Parameters<define>[0]} */
1125
+ fn,
698
1126
  "length",
699
- { value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }
1127
+ length
700
1128
  );
701
1129
  }
702
1130
  }
703
- return func;
1131
+ return fn;
1132
+ };
1133
+ }
1134
+ });
1135
+
1136
+ // node_modules/call-bind-apply-helpers/applyBind.js
1137
+ var require_applyBind = __commonJS({
1138
+ "node_modules/call-bind-apply-helpers/applyBind.js"(exports, module) {
1139
+ "use strict";
1140
+ init_polyfills();
1141
+ var bind = require_function_bind();
1142
+ var $apply = require_functionApply();
1143
+ var actualApply = require_actualApply();
1144
+ module.exports = function applyBind() {
1145
+ return actualApply(bind, $apply, arguments);
704
1146
  };
705
- var applyBind = function applyBind2() {
706
- return $reflectApply(bind, $apply, arguments);
1147
+ }
1148
+ });
1149
+
1150
+ // node_modules/call-bind/index.js
1151
+ var require_call_bind = __commonJS({
1152
+ "node_modules/call-bind/index.js"(exports, module) {
1153
+ "use strict";
1154
+ init_polyfills();
1155
+ var setFunctionLength = require_set_function_length();
1156
+ var $defineProperty = require_es_define_property();
1157
+ var callBindBasic = require_call_bind_apply_helpers();
1158
+ var applyBind = require_applyBind();
1159
+ module.exports = function callBind(originalFunction) {
1160
+ var func = callBindBasic(arguments);
1161
+ var adjustedLength = originalFunction.length - (arguments.length - 1);
1162
+ return setFunctionLength(
1163
+ func,
1164
+ 1 + (adjustedLength > 0 ? adjustedLength : 0),
1165
+ true
1166
+ );
707
1167
  };
708
1168
  if ($defineProperty) {
709
1169
  $defineProperty(module.exports, "apply", { value: applyBind });
@@ -751,9 +1211,9 @@
751
1211
  }
752
1212
  return value !== null && typeof value === "object" && typeof value.length === "number" && value.length >= 0 && $toString(value) !== "[object Array]" && $toString(value.callee) === "[object Function]";
753
1213
  };
754
- var supportsStandardArguments = function() {
1214
+ var supportsStandardArguments = (function() {
755
1215
  return isStandardArguments(arguments);
756
- }();
1216
+ })();
757
1217
  isStandardArguments.isLegacyArguments = isLegacyArguments;
758
1218
  module.exports = supportsStandardArguments ? isStandardArguments : isLegacyArguments;
759
1219
  }
@@ -972,7 +1432,10 @@
972
1432
  }
973
1433
  }
974
1434
  };
975
- var forEach = function forEach2(list, iterator, thisArg) {
1435
+ function isArray(x) {
1436
+ return toStr.call(x) === "[object Array]";
1437
+ }
1438
+ module.exports = function forEach(list, iterator, thisArg) {
976
1439
  if (!isCallable(iterator)) {
977
1440
  throw new TypeError("iterator must be a function");
978
1441
  }
@@ -980,7 +1443,7 @@
980
1443
  if (arguments.length >= 3) {
981
1444
  receiver = thisArg;
982
1445
  }
983
- if (toStr.call(list) === "[object Array]") {
1446
+ if (isArray(list)) {
984
1447
  forEachArray(list, iterator, receiver);
985
1448
  } else if (typeof list === "string") {
986
1449
  forEachString(list, iterator, receiver);
@@ -988,28 +1451,36 @@
988
1451
  forEachObject(list, iterator, receiver);
989
1452
  }
990
1453
  };
991
- module.exports = forEach;
992
1454
  }
993
1455
  });
994
1456
 
995
- // node_modules/available-typed-arrays/index.js
996
- var require_available_typed_arrays = __commonJS({
997
- "node_modules/available-typed-arrays/index.js"(exports, module) {
1457
+ // node_modules/possible-typed-array-names/index.js
1458
+ var require_possible_typed_array_names = __commonJS({
1459
+ "node_modules/possible-typed-array-names/index.js"(exports, module) {
998
1460
  "use strict";
999
1461
  init_polyfills();
1000
- var possibleNames = [
1001
- "BigInt64Array",
1002
- "BigUint64Array",
1462
+ module.exports = [
1003
1463
  "Float32Array",
1004
1464
  "Float64Array",
1465
+ "Int8Array",
1005
1466
  "Int16Array",
1006
1467
  "Int32Array",
1007
- "Int8Array",
1468
+ "Uint8Array",
1469
+ "Uint8ClampedArray",
1008
1470
  "Uint16Array",
1009
1471
  "Uint32Array",
1010
- "Uint8Array",
1011
- "Uint8ClampedArray"
1472
+ "BigInt64Array",
1473
+ "BigUint64Array"
1012
1474
  ];
1475
+ }
1476
+ });
1477
+
1478
+ // node_modules/available-typed-arrays/index.js
1479
+ var require_available_typed_arrays = __commonJS({
1480
+ "node_modules/available-typed-arrays/index.js"(exports, module) {
1481
+ "use strict";
1482
+ init_polyfills();
1483
+ var possibleNames = require_possible_typed_array_names();
1013
1484
  var g = typeof globalThis === "undefined" ? globalThis : globalThis;
1014
1485
  module.exports = function availableTypedArrays() {
1015
1486
  var out = [];
@@ -1023,21 +1494,27 @@
1023
1494
  }
1024
1495
  });
1025
1496
 
1026
- // node_modules/gopd/index.js
1027
- var require_gopd = __commonJS({
1028
- "node_modules/gopd/index.js"(exports, module) {
1497
+ // node_modules/call-bound/index.js
1498
+ var require_call_bound = __commonJS({
1499
+ "node_modules/call-bound/index.js"(exports, module) {
1029
1500
  "use strict";
1030
1501
  init_polyfills();
1031
1502
  var GetIntrinsic = require_get_intrinsic();
1032
- var $gOPD = GetIntrinsic("%Object.getOwnPropertyDescriptor%", true);
1033
- if ($gOPD) {
1034
- try {
1035
- $gOPD([], "length");
1036
- } catch (e) {
1037
- $gOPD = null;
1503
+ var callBindBasic = require_call_bind_apply_helpers();
1504
+ var $indexOf = callBindBasic([GetIntrinsic("%String.prototype.indexOf%")]);
1505
+ module.exports = function callBoundIntrinsic(name, allowMissing) {
1506
+ var intrinsic = (
1507
+ /** @type {(this: unknown, ...args: unknown[]) => unknown} */
1508
+ GetIntrinsic(name, !!allowMissing)
1509
+ );
1510
+ if (typeof intrinsic === "function" && $indexOf(name, ".prototype.") > -1) {
1511
+ return callBindBasic(
1512
+ /** @type {const} */
1513
+ [intrinsic]
1514
+ );
1038
1515
  }
1039
- }
1040
- module.exports = $gOPD;
1516
+ return intrinsic;
1517
+ };
1041
1518
  }
1042
1519
  });
1043
1520
 
@@ -1049,14 +1526,14 @@
1049
1526
  var forEach = require_for_each();
1050
1527
  var availableTypedArrays = require_available_typed_arrays();
1051
1528
  var callBind = require_call_bind();
1052
- var callBound = require_callBound();
1529
+ var callBound = require_call_bound();
1053
1530
  var gOPD = require_gopd();
1531
+ var getProto = require_get_proto();
1054
1532
  var $toString = callBound("Object.prototype.toString");
1055
1533
  var hasToStringTag = require_shams2()();
1056
1534
  var g = typeof globalThis === "undefined" ? globalThis : globalThis;
1057
1535
  var typedArrays = availableTypedArrays();
1058
1536
  var $slice = callBound("String.prototype.slice");
1059
- var getPrototypeOf = Object.getPrototypeOf;
1060
1537
  var $indexOf = callBound("Array.prototype.indexOf", true) || function indexOf(array, value) {
1061
1538
  for (var i = 0; i < array.length; i += 1) {
1062
1539
  if (array[i] === value) {
@@ -1066,14 +1543,14 @@
1066
1543
  return -1;
1067
1544
  };
1068
1545
  var cache = { __proto__: null };
1069
- if (hasToStringTag && gOPD && getPrototypeOf) {
1546
+ if (hasToStringTag && gOPD && getProto) {
1070
1547
  forEach(typedArrays, function(typedArray) {
1071
1548
  var arr = new g[typedArray]();
1072
- if (Symbol.toStringTag in arr) {
1073
- var proto = getPrototypeOf(arr);
1549
+ if (Symbol.toStringTag in arr && getProto) {
1550
+ var proto = getProto(arr);
1074
1551
  var descriptor = gOPD(proto, Symbol.toStringTag);
1075
- if (!descriptor) {
1076
- var superProto = getPrototypeOf(proto);
1552
+ if (!descriptor && proto) {
1553
+ var superProto = getProto(proto);
1077
1554
  descriptor = gOPD(superProto, Symbol.toStringTag);
1078
1555
  }
1079
1556
  cache["$" + typedArray] = callBind(descriptor.get);
@@ -1082,34 +1559,54 @@
1082
1559
  } else {
1083
1560
  forEach(typedArrays, function(typedArray) {
1084
1561
  var arr = new g[typedArray]();
1085
- cache["$" + typedArray] = callBind(arr.slice);
1562
+ var fn = arr.slice || arr.set;
1563
+ if (fn) {
1564
+ cache[
1565
+ /** @type {`$${import('.').TypedArrayName}`} */
1566
+ "$" + typedArray
1567
+ ] = /** @type {import('./types').BoundSlice | import('./types').BoundSet} */
1568
+ // @ts-expect-error TODO FIXME
1569
+ callBind(fn);
1570
+ }
1086
1571
  });
1087
1572
  }
1088
1573
  var tryTypedArrays = function tryAllTypedArrays(value) {
1089
1574
  var found = false;
1090
- forEach(cache, function(getter, typedArray) {
1091
- if (!found) {
1092
- try {
1093
- if ("$" + getter(value) === typedArray) {
1094
- found = $slice(typedArray, 1);
1575
+ forEach(
1576
+ /** @type {Record<`\$${import('.').TypedArrayName}`, Getter>} */
1577
+ cache,
1578
+ /** @type {(getter: Getter, name: `\$${import('.').TypedArrayName}`) => void} */
1579
+ function(getter, typedArray) {
1580
+ if (!found) {
1581
+ try {
1582
+ if ("$" + getter(value) === typedArray) {
1583
+ found = /** @type {import('.').TypedArrayName} */
1584
+ $slice(typedArray, 1);
1585
+ }
1586
+ } catch (e) {
1095
1587
  }
1096
- } catch (e) {
1097
1588
  }
1098
1589
  }
1099
- });
1590
+ );
1100
1591
  return found;
1101
1592
  };
1102
1593
  var trySlices = function tryAllSlices(value) {
1103
1594
  var found = false;
1104
- forEach(cache, function(getter, name) {
1105
- if (!found) {
1106
- try {
1107
- getter(value);
1108
- found = $slice(name, 1);
1109
- } catch (e) {
1595
+ forEach(
1596
+ /** @type {Record<`\$${import('.').TypedArrayName}`, Getter>} */
1597
+ cache,
1598
+ /** @type {(getter: Getter, name: `\$${import('.').TypedArrayName}`) => void} */
1599
+ function(getter, name) {
1600
+ if (!found) {
1601
+ try {
1602
+ getter(value);
1603
+ found = /** @type {import('.').TypedArrayName} */
1604
+ $slice(name, 1);
1605
+ } catch (e) {
1606
+ }
1110
1607
  }
1111
1608
  }
1112
- });
1609
+ );
1113
1610
  return found;
1114
1611
  };
1115
1612
  module.exports = function whichTypedArray(value) {
@@ -1445,10 +1942,8 @@
1445
1942
  var args = arguments;
1446
1943
  var len = args.length;
1447
1944
  var str = String(f).replace(formatRegExp, function(x2) {
1448
- if (x2 === "%%")
1449
- return "%";
1450
- if (i >= len)
1451
- return x2;
1945
+ if (x2 === "%%") return "%";
1946
+ if (i >= len) return x2;
1452
1947
  switch (x2) {
1453
1948
  case "%s":
1454
1949
  return String(args[i++]);
@@ -1527,25 +2022,18 @@
1527
2022
  seen: [],
1528
2023
  stylize: stylizeNoColor
1529
2024
  };
1530
- if (arguments.length >= 3)
1531
- ctx.depth = arguments[2];
1532
- if (arguments.length >= 4)
1533
- ctx.colors = arguments[3];
2025
+ if (arguments.length >= 3) ctx.depth = arguments[2];
2026
+ if (arguments.length >= 4) ctx.colors = arguments[3];
1534
2027
  if (isBoolean(opts)) {
1535
2028
  ctx.showHidden = opts;
1536
2029
  } else if (opts) {
1537
2030
  exports._extend(ctx, opts);
1538
2031
  }
1539
- if (isUndefined(ctx.showHidden))
1540
- ctx.showHidden = false;
1541
- if (isUndefined(ctx.depth))
1542
- ctx.depth = 2;
1543
- if (isUndefined(ctx.colors))
1544
- ctx.colors = false;
1545
- if (isUndefined(ctx.customInspect))
1546
- ctx.customInspect = true;
1547
- if (ctx.colors)
1548
- ctx.stylize = stylizeWithColor;
2032
+ if (isUndefined(ctx.showHidden)) ctx.showHidden = false;
2033
+ if (isUndefined(ctx.depth)) ctx.depth = 2;
2034
+ if (isUndefined(ctx.colors)) ctx.colors = false;
2035
+ if (isUndefined(ctx.customInspect)) ctx.customInspect = true;
2036
+ if (ctx.colors) ctx.stylize = stylizeWithColor;
1549
2037
  return formatValue(ctx, obj, ctx.depth);
1550
2038
  }
1551
2039
  exports.inspect = inspect;
@@ -1775,8 +2263,7 @@
1775
2263
  var numLinesEst = 0;
1776
2264
  var length = output.reduce(function(prev, cur) {
1777
2265
  numLinesEst++;
1778
- if (cur.indexOf("\n") >= 0)
1779
- numLinesEst++;
2266
+ if (cur.indexOf("\n") >= 0) numLinesEst++;
1780
2267
  return prev + cur.replace(/\u001b\[\d\d?m/g, "").length + 1;
1781
2268
  }, 0);
1782
2269
  if (length > 60) {
@@ -1880,8 +2367,7 @@
1880
2367
  };
1881
2368
  exports.inherits = require_inherits_browser();
1882
2369
  exports._extend = function(origin, add) {
1883
- if (!add || !isObject(add))
1884
- return origin;
2370
+ if (!add || !isObject(add)) return origin;
1885
2371
  var keys = Object.keys(add);
1886
2372
  var i = keys.length;
1887
2373
  while (i--) {
@@ -1892,7 +2378,7 @@
1892
2378
  function hasOwnProperty(obj, prop) {
1893
2379
  return Object.prototype.hasOwnProperty.call(obj, prop);
1894
2380
  }
1895
- var kCustomPromisifiedSymbol = typeof Symbol !== "undefined" ? Symbol("util.promisify.custom") : void 0;
2381
+ var kCustomPromisifiedSymbol = typeof Symbol !== "undefined" ? /* @__PURE__ */ Symbol("util.promisify.custom") : void 0;
1896
2382
  exports.promisify = function promisify(original) {
1897
2383
  if (typeof original !== "function")
1898
2384
  throw new TypeError('The "original" argument must be of type Function');
@@ -1934,13 +2420,12 @@
1934
2420
  return promise;
1935
2421
  }
1936
2422
  Object.setPrototypeOf(fn, Object.getPrototypeOf(original));
1937
- if (kCustomPromisifiedSymbol)
1938
- Object.defineProperty(fn, kCustomPromisifiedSymbol, {
1939
- value: fn,
1940
- enumerable: false,
1941
- writable: false,
1942
- configurable: true
1943
- });
2423
+ if (kCustomPromisifiedSymbol) Object.defineProperty(fn, kCustomPromisifiedSymbol, {
2424
+ value: fn,
2425
+ enumerable: false,
2426
+ writable: false,
2427
+ configurable: true
2428
+ });
1944
2429
  return Object.defineProperties(
1945
2430
  fn,
1946
2431
  getOwnPropertyDescriptors(original)
@@ -2007,8 +2492,7 @@
2007
2492
  document.addEventListener(
2008
2493
  "click",
2009
2494
  async (_event) => {
2010
- if (IS_DEV)
2011
- console.log("Empty Click Handler");
2495
+ if (IS_DEV) console.log("Empty Click Handler");
2012
2496
  },
2013
2497
  true
2014
2498
  );