@harbour-enterprises/superdoc 0.14.0-next.6 → 0.14.0-next.7

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 (30) hide show
  1. package/dist/chunks/{index-BABtK_9p.cjs → index-CE6UNfC5.cjs} +2 -2
  2. package/dist/chunks/{index-DRG7AiQg.es.js → index-CW9fKHgN.es.js} +2 -2
  3. package/dist/chunks/{index-BOOtEcgZ.cjs → index-DGsxwjB4.cjs} +1 -1
  4. package/dist/chunks/{index-ClYNVXDv.es.js → index-DHn8sl2L.es.js} +1 -1
  5. package/dist/chunks/{super-editor.es-PFHHaxd8.es.js → super-editor.es-B1co-x-F.es.js} +9 -5
  6. package/dist/chunks/{super-editor.es-CETApTAM.cjs → super-editor.es-BrUIfwuC.cjs} +9 -5
  7. package/dist/chunks/{url-BmSVZ-b1.cjs → url-CUv5CLO-.cjs} +1 -1
  8. package/dist/chunks/{url-DtyZlUvQ.es.js → url-CZOvt3H8.es.js} +1 -1
  9. package/dist/chunks/{xml-js-uhSaCX_L.es.js → xml-js-D5Licdr-.es.js} +158 -123
  10. package/dist/chunks/{xml-js-PTtx0UCg.cjs → xml-js-tHwLFq2w.cjs} +158 -123
  11. package/dist/super-editor/ai-writer.es.js +2 -2
  12. package/dist/super-editor/chunks/{converter-DXxu8c9w.js → converter-Cq8A38P6.js} +2 -2
  13. package/dist/super-editor/chunks/{docx-zipper-DjxR5LqI.js → docx-zipper-DOtI6fZj.js} +1 -1
  14. package/dist/super-editor/chunks/{editor-DQyfLPCk.js → editor-DiMXpjJM.js} +9 -5
  15. package/dist/super-editor/chunks/{toolbar-LIs10qdJ.js → toolbar-CE2dEw2j.js} +2 -2
  16. package/dist/super-editor/converter.es.js +1 -1
  17. package/dist/super-editor/core/Editor.d.ts.map +1 -1
  18. package/dist/super-editor/docx-zipper.es.js +2 -2
  19. package/dist/super-editor/editor.es.js +3 -3
  20. package/dist/super-editor/extensions/pagination/pagination-helpers.d.ts.map +1 -1
  21. package/dist/super-editor/file-zipper.es.js +1 -1
  22. package/dist/super-editor/super-editor.es.js +6 -6
  23. package/dist/super-editor/toolbar.es.js +2 -2
  24. package/dist/super-editor.cjs +1 -1
  25. package/dist/super-editor.es.js +1 -1
  26. package/dist/superdoc.cjs +5 -5
  27. package/dist/superdoc.es.js +6 -6
  28. package/dist/superdoc.umd.js +10 -6
  29. package/dist/superdoc.umd.js.map +1 -1
  30. package/package.json +1 -1
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  const jszip = require("./jszip-9bCX1h2W.cjs");
3
3
  const vue = require("./vue-BBjMeYfo.cjs");
4
- const xmlJs = require("./xml-js-PTtx0UCg.cjs");
5
- const url = require("./url-BmSVZ-b1.cjs");
4
+ const xmlJs = require("./xml-js-tHwLFq2w.cjs");
5
+ const url = require("./url-CUv5CLO-.cjs");
6
6
  function _mergeNamespaces(n, m) {
7
7
  for (var i = 0; i < m.length; i++) {
8
8
  const e = m[i];
@@ -1,7 +1,7 @@
1
1
  import { c as commonjsGlobal, B as Buffer, a as getAugmentedNamespace, g as getDefaultExportFromCjs } from "./jszip-Cl3s9njw.es.js";
2
2
  import { p as process$1 } from "./vue-BBJVqxjL.es.js";
3
- import { e as eventsExports, r as require$$2, u as util, i as inherits_browserExports, b as browser$1, a as requireString_decoder } from "./xml-js-uhSaCX_L.es.js";
4
- import { u as url } from "./url-DtyZlUvQ.es.js";
3
+ import { e as eventsExports, r as require$$2, u as util, i as inherits_browserExports, b as browser$1, a as requireString_decoder } from "./xml-js-D5Licdr-.es.js";
4
+ import { u as url } from "./url-CZOvt3H8.es.js";
5
5
  function _mergeNamespaces(n, m) {
6
6
  for (var i = 0; i < m.length; i++) {
7
7
  const e = m[i];
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  const jszip = require("./jszip-9bCX1h2W.cjs");
3
- const index$2 = require("./index-BABtK_9p.cjs");
3
+ const index$2 = require("./index-CE6UNfC5.cjs");
4
4
  function _mergeNamespaces(n, m) {
5
5
  for (var i = 0; i < m.length; i++) {
6
6
  const e = m[i];
@@ -1,5 +1,5 @@
1
1
  import { g as getDefaultExportFromCjs } from "./jszip-Cl3s9njw.es.js";
2
- import { s as streamHttp, r as require$$1 } from "./index-DRG7AiQg.es.js";
2
+ import { s as streamHttp, r as require$$1 } from "./index-CW9fKHgN.es.js";
3
3
  function _mergeNamespaces(n, m) {
4
4
  for (var i = 0; i < m.length; i++) {
5
5
  const e = m[i];
@@ -24235,7 +24235,7 @@ const _SuperConverter = class _SuperConverter2 {
24235
24235
  return;
24236
24236
  }
24237
24237
  }
24238
- static updateDocumentVersion(docx = this.convertedXml, version2 = "0.14.0-next.6") {
24238
+ static updateDocumentVersion(docx = this.convertedXml, version2 = "0.14.0-next.7") {
24239
24239
  const customLocation = "docProps/custom.xml";
24240
24240
  if (!docx[customLocation]) {
24241
24241
  docx[customLocation] = generateCustomXml();
@@ -24703,7 +24703,7 @@ function storeSuperdocVersion(docx) {
24703
24703
  function generateCustomXml() {
24704
24704
  return DEFAULT_CUSTOM_XML;
24705
24705
  }
24706
- function generateSuperdocVersion(pid = 2, version2 = "0.14.0-next.6") {
24706
+ function generateSuperdocVersion(pid = 2, version2 = "0.14.0-next.7") {
24707
24707
  return {
24708
24708
  type: "element",
24709
24709
  name: "property",
@@ -39781,6 +39781,8 @@ const createHeaderFooterEditor = ({
39781
39781
  });
39782
39782
  if (appendToBody) document.body.appendChild(editorContainer);
39783
39783
  const headerFooterEditor = new Editor({
39784
+ documentMode: editor.options.documentMode,
39785
+ role: editor.options.role,
39784
39786
  loadFromSchema: true,
39785
39787
  mode: "docx",
39786
39788
  element: editorContainer,
@@ -41922,7 +41924,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
41922
41924
  * @returns {Object | void} Migration results
41923
41925
  */
41924
41926
  processCollaborationMigrations() {
41925
- console.debug("[checkVersionMigrations] Current editor version", "0.14.0-next.6");
41927
+ console.debug("[checkVersionMigrations] Current editor version", "0.14.0-next.7");
41926
41928
  if (!this.options.ydoc) return;
41927
41929
  const metaMap = this.options.ydoc.getMap("meta");
41928
41930
  let docVersion = metaMap.get("version");
@@ -42119,8 +42121,6 @@ init_fn = function(options2) {
42119
42121
  this.on("contentError", this.options.onContentError);
42120
42122
  this.on("exception", this.options.onException);
42121
42123
  this.mount(this.options.element);
42122
- this.initDefaultStyles();
42123
- this.setDocumentMode(options2.documentMode);
42124
42124
  if (this.options.isHeadless) return;
42125
42125
  this.on("create", this.options.onCreate);
42126
42126
  this.on("update", this.options.onUpdate);
@@ -42138,6 +42138,10 @@ init_fn = function(options2) {
42138
42138
  this.on("paginationUpdate", this.options.onPaginationUpdate);
42139
42139
  this.on("comment-positions", this.options.onCommentLocationsUpdate);
42140
42140
  this.initializeCollaborationData();
42141
+ this.initDefaultStyles();
42142
+ setTimeout(() => {
42143
+ this.setDocumentMode(this.options.documentMode);
42144
+ }, 50);
42141
42145
  if (!this.options.ydoc) {
42142
42146
  this.initPagination();
42143
42147
  __privateMethod$1(this, _Editor_instances, initComments_fn).call(this);
@@ -24252,7 +24252,7 @@ const _SuperConverter = class _SuperConverter2 {
24252
24252
  return;
24253
24253
  }
24254
24254
  }
24255
- static updateDocumentVersion(docx = this.convertedXml, version2 = "0.14.0-next.6") {
24255
+ static updateDocumentVersion(docx = this.convertedXml, version2 = "0.14.0-next.7") {
24256
24256
  const customLocation = "docProps/custom.xml";
24257
24257
  if (!docx[customLocation]) {
24258
24258
  docx[customLocation] = generateCustomXml();
@@ -24720,7 +24720,7 @@ function storeSuperdocVersion(docx) {
24720
24720
  function generateCustomXml() {
24721
24721
  return DEFAULT_CUSTOM_XML;
24722
24722
  }
24723
- function generateSuperdocVersion(pid = 2, version2 = "0.14.0-next.6") {
24723
+ function generateSuperdocVersion(pid = 2, version2 = "0.14.0-next.7") {
24724
24724
  return {
24725
24725
  type: "element",
24726
24726
  name: "property",
@@ -39798,6 +39798,8 @@ const createHeaderFooterEditor = ({
39798
39798
  });
39799
39799
  if (appendToBody) document.body.appendChild(editorContainer);
39800
39800
  const headerFooterEditor = new Editor({
39801
+ documentMode: editor.options.documentMode,
39802
+ role: editor.options.role,
39801
39803
  loadFromSchema: true,
39802
39804
  mode: "docx",
39803
39805
  element: editorContainer,
@@ -41939,7 +41941,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
41939
41941
  * @returns {Object | void} Migration results
41940
41942
  */
41941
41943
  processCollaborationMigrations() {
41942
- console.debug("[checkVersionMigrations] Current editor version", "0.14.0-next.6");
41944
+ console.debug("[checkVersionMigrations] Current editor version", "0.14.0-next.7");
41943
41945
  if (!this.options.ydoc) return;
41944
41946
  const metaMap = this.options.ydoc.getMap("meta");
41945
41947
  let docVersion = metaMap.get("version");
@@ -42136,8 +42138,6 @@ init_fn = function(options2) {
42136
42138
  this.on("contentError", this.options.onContentError);
42137
42139
  this.on("exception", this.options.onException);
42138
42140
  this.mount(this.options.element);
42139
- this.initDefaultStyles();
42140
- this.setDocumentMode(options2.documentMode);
42141
42141
  if (this.options.isHeadless) return;
42142
42142
  this.on("create", this.options.onCreate);
42143
42143
  this.on("update", this.options.onUpdate);
@@ -42155,6 +42155,10 @@ init_fn = function(options2) {
42155
42155
  this.on("paginationUpdate", this.options.onPaginationUpdate);
42156
42156
  this.on("comment-positions", this.options.onCommentLocationsUpdate);
42157
42157
  this.initializeCollaborationData();
42158
+ this.initDefaultStyles();
42159
+ setTimeout(() => {
42160
+ this.setDocumentMode(this.options.documentMode);
42161
+ }, 50);
42158
42162
  if (!this.options.ydoc) {
42159
42163
  this.initPagination();
42160
42164
  __privateMethod$1(this, _Editor_instances, initComments_fn).call(this);
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  const jszip = require("./jszip-9bCX1h2W.cjs");
3
- const xmlJs = require("./xml-js-PTtx0UCg.cjs");
3
+ const xmlJs = require("./xml-js-tHwLFq2w.cjs");
4
4
  const __viteBrowserExternal = require("./__vite-browser-external-DWbQq7bv.cjs");
5
5
  var punycode$1 = { exports: {} };
6
6
  /*! https://mths.be/punycode v1.4.1 by @mathias */
@@ -1,5 +1,5 @@
1
1
  import { c as commonjsGlobal, g as getDefaultExportFromCjs, a as getAugmentedNamespace } from "./jszip-Cl3s9njw.es.js";
2
- import { t as type, g as getIntrinsic, c as callBound$2 } from "./xml-js-uhSaCX_L.es.js";
2
+ import { t as type, g as getIntrinsic, c as callBound$2 } from "./xml-js-D5Licdr-.es.js";
3
3
  import { _ as __viteBrowserExternal } from "./__vite-browser-external-CURh0WXD.es.js";
4
4
  var punycode$1 = { exports: {} };
5
5
  /*! https://mths.be/punycode v1.4.1 by @mathias */
@@ -394,55 +394,62 @@ var eventsExports = events.exports;
394
394
  const require$$2 = /* @__PURE__ */ getAugmentedNamespace(dist);
395
395
  var util = {};
396
396
  var types = {};
397
- var shams$1 = function hasSymbols() {
398
- if (typeof Symbol !== "function" || typeof Object.getOwnPropertySymbols !== "function") {
399
- return false;
400
- }
401
- if (typeof Symbol.iterator === "symbol") {
402
- return true;
403
- }
404
- var obj = {};
405
- var sym = Symbol("test");
406
- var symObj = Object(sym);
407
- if (typeof sym === "string") {
408
- return false;
409
- }
410
- if (Object.prototype.toString.call(sym) !== "[object Symbol]") {
411
- return false;
412
- }
413
- if (Object.prototype.toString.call(symObj) !== "[object Symbol]") {
414
- return false;
415
- }
416
- var symVal = 42;
417
- obj[sym] = symVal;
418
- for (var _ in obj) {
419
- return false;
420
- }
421
- if (typeof Object.keys === "function" && Object.keys(obj).length !== 0) {
422
- return false;
423
- }
424
- if (typeof Object.getOwnPropertyNames === "function" && Object.getOwnPropertyNames(obj).length !== 0) {
425
- return false;
426
- }
427
- var syms = Object.getOwnPropertySymbols(obj);
428
- if (syms.length !== 1 || syms[0] !== sym) {
429
- return false;
430
- }
431
- if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) {
432
- return false;
433
- }
434
- if (typeof Object.getOwnPropertyDescriptor === "function") {
435
- var descriptor = (
436
- /** @type {PropertyDescriptor} */
437
- Object.getOwnPropertyDescriptor(obj, sym)
438
- );
439
- if (descriptor.value !== symVal || descriptor.enumerable !== true) {
397
+ var shams$1;
398
+ var hasRequiredShams;
399
+ function requireShams() {
400
+ if (hasRequiredShams) return shams$1;
401
+ hasRequiredShams = 1;
402
+ shams$1 = function hasSymbols2() {
403
+ if (typeof Symbol !== "function" || typeof Object.getOwnPropertySymbols !== "function") {
440
404
  return false;
441
405
  }
442
- }
443
- return true;
444
- };
445
- var hasSymbols$2 = shams$1;
406
+ if (typeof Symbol.iterator === "symbol") {
407
+ return true;
408
+ }
409
+ var obj = {};
410
+ var sym = Symbol("test");
411
+ var symObj = Object(sym);
412
+ if (typeof sym === "string") {
413
+ return false;
414
+ }
415
+ if (Object.prototype.toString.call(sym) !== "[object Symbol]") {
416
+ return false;
417
+ }
418
+ if (Object.prototype.toString.call(symObj) !== "[object Symbol]") {
419
+ return false;
420
+ }
421
+ var symVal = 42;
422
+ obj[sym] = symVal;
423
+ for (var _ in obj) {
424
+ return false;
425
+ }
426
+ if (typeof Object.keys === "function" && Object.keys(obj).length !== 0) {
427
+ return false;
428
+ }
429
+ if (typeof Object.getOwnPropertyNames === "function" && Object.getOwnPropertyNames(obj).length !== 0) {
430
+ return false;
431
+ }
432
+ var syms = Object.getOwnPropertySymbols(obj);
433
+ if (syms.length !== 1 || syms[0] !== sym) {
434
+ return false;
435
+ }
436
+ if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) {
437
+ return false;
438
+ }
439
+ if (typeof Object.getOwnPropertyDescriptor === "function") {
440
+ var descriptor = (
441
+ /** @type {PropertyDescriptor} */
442
+ Object.getOwnPropertyDescriptor(obj, sym)
443
+ );
444
+ if (descriptor.value !== symVal || descriptor.enumerable !== true) {
445
+ return false;
446
+ }
447
+ }
448
+ return true;
449
+ };
450
+ return shams$1;
451
+ }
452
+ var hasSymbols$2 = requireShams();
446
453
  var shams = function hasToStringTagShams() {
447
454
  return hasSymbols$2() && !!Symbol.toStringTag;
448
455
  };
@@ -470,8 +477,8 @@ var sign$1 = function sign(number) {
470
477
  }
471
478
  return number < 0 ? -1 : 1;
472
479
  };
473
- var gOPD$4 = Object.getOwnPropertyDescriptor;
474
- var $gOPD$1 = gOPD$4;
480
+ var gOPD$3 = Object.getOwnPropertyDescriptor;
481
+ var $gOPD$1 = gOPD$3;
475
482
  if ($gOPD$1) {
476
483
  try {
477
484
  $gOPD$1([], "length");
@@ -495,7 +502,7 @@ function requireHasSymbols() {
495
502
  if (hasRequiredHasSymbols) return hasSymbols$1;
496
503
  hasRequiredHasSymbols = 1;
497
504
  var origSymbol = typeof Symbol !== "undefined" && Symbol;
498
- var hasSymbolSham = shams$1;
505
+ var hasSymbolSham = requireShams();
499
506
  hasSymbols$1 = function hasNativeSymbols() {
500
507
  if (typeof origSymbol !== "function") {
501
508
  return false;
@@ -513,9 +520,23 @@ function requireHasSymbols() {
513
520
  };
514
521
  return hasSymbols$1;
515
522
  }
516
- var Reflect_getPrototypeOf = typeof Reflect !== "undefined" && Reflect.getPrototypeOf || null;
517
- var $Object$2 = esObjectAtoms;
518
- var Object_getPrototypeOf = $Object$2.getPrototypeOf || null;
523
+ var Reflect_getPrototypeOf;
524
+ var hasRequiredReflect_getPrototypeOf;
525
+ function requireReflect_getPrototypeOf() {
526
+ if (hasRequiredReflect_getPrototypeOf) return Reflect_getPrototypeOf;
527
+ hasRequiredReflect_getPrototypeOf = 1;
528
+ Reflect_getPrototypeOf = typeof Reflect !== "undefined" && Reflect.getPrototypeOf || null;
529
+ return Reflect_getPrototypeOf;
530
+ }
531
+ var Object_getPrototypeOf;
532
+ var hasRequiredObject_getPrototypeOf;
533
+ function requireObject_getPrototypeOf() {
534
+ if (hasRequiredObject_getPrototypeOf) return Object_getPrototypeOf;
535
+ hasRequiredObject_getPrototypeOf = 1;
536
+ var $Object2 = esObjectAtoms;
537
+ Object_getPrototypeOf = $Object2.getPrototypeOf || null;
538
+ return Object_getPrototypeOf;
539
+ }
519
540
  var implementation;
520
541
  var hasRequiredImplementation;
521
542
  function requireImplementation() {
@@ -633,43 +654,57 @@ var callBindApplyHelpers = function callBindBasic(args) {
633
654
  }
634
655
  return $actualApply(bind$2, $call$1, args);
635
656
  };
636
- var callBind$2 = callBindApplyHelpers;
637
- var gOPD$3 = gopd$1;
638
- var hasProtoAccessor;
639
- try {
640
- hasProtoAccessor = /** @type {{ __proto__?: typeof Array.prototype }} */
641
- [].__proto__ === Array.prototype;
642
- } catch (e) {
643
- if (!e || typeof e !== "object" || !("code" in e) || e.code !== "ERR_PROTO_ACCESS") {
644
- throw e;
657
+ var get;
658
+ var hasRequiredGet;
659
+ function requireGet() {
660
+ if (hasRequiredGet) return get;
661
+ hasRequiredGet = 1;
662
+ var callBind2 = callBindApplyHelpers;
663
+ var gOPD2 = gopd$1;
664
+ var hasProtoAccessor;
665
+ try {
666
+ hasProtoAccessor = /** @type {{ __proto__?: typeof Array.prototype }} */
667
+ [].__proto__ === Array.prototype;
668
+ } catch (e) {
669
+ if (!e || typeof e !== "object" || !("code" in e) || e.code !== "ERR_PROTO_ACCESS") {
670
+ throw e;
671
+ }
645
672
  }
673
+ var desc = !!hasProtoAccessor && gOPD2 && gOPD2(
674
+ Object.prototype,
675
+ /** @type {keyof typeof Object.prototype} */
676
+ "__proto__"
677
+ );
678
+ var $Object2 = Object;
679
+ var $getPrototypeOf = $Object2.getPrototypeOf;
680
+ get = desc && typeof desc.get === "function" ? callBind2([desc.get]) : typeof $getPrototypeOf === "function" ? (
681
+ /** @type {import('./get')} */
682
+ function getDunder(value) {
683
+ return $getPrototypeOf(value == null ? value : $Object2(value));
684
+ }
685
+ ) : false;
686
+ return get;
687
+ }
688
+ var getProto$3;
689
+ var hasRequiredGetProto;
690
+ function requireGetProto() {
691
+ if (hasRequiredGetProto) return getProto$3;
692
+ hasRequiredGetProto = 1;
693
+ var reflectGetProto = requireReflect_getPrototypeOf();
694
+ var originalGetProto = requireObject_getPrototypeOf();
695
+ var getDunderProto = requireGet();
696
+ getProto$3 = reflectGetProto ? function getProto2(O) {
697
+ return reflectGetProto(O);
698
+ } : originalGetProto ? function getProto2(O) {
699
+ if (!O || typeof O !== "object" && typeof O !== "function") {
700
+ throw new TypeError("getProto: not an object");
701
+ }
702
+ return originalGetProto(O);
703
+ } : getDunderProto ? function getProto2(O) {
704
+ return getDunderProto(O);
705
+ } : null;
706
+ return getProto$3;
646
707
  }
647
- var desc = !!hasProtoAccessor && gOPD$3 && gOPD$3(
648
- Object.prototype,
649
- /** @type {keyof typeof Object.prototype} */
650
- "__proto__"
651
- );
652
- var $Object$1 = Object;
653
- var $getPrototypeOf = $Object$1.getPrototypeOf;
654
- var get = desc && typeof desc.get === "function" ? callBind$2([desc.get]) : typeof $getPrototypeOf === "function" ? (
655
- /** @type {import('./get')} */
656
- function getDunder(value) {
657
- return $getPrototypeOf(value == null ? value : $Object$1(value));
658
- }
659
- ) : false;
660
- var reflectGetProto = Reflect_getPrototypeOf;
661
- var originalGetProto = Object_getPrototypeOf;
662
- var getDunderProto = get;
663
- var getProto$3 = reflectGetProto ? function getProto(O) {
664
- return reflectGetProto(O);
665
- } : originalGetProto ? function getProto2(O) {
666
- if (!O || typeof O !== "object" && typeof O !== "function") {
667
- throw new TypeError("getProto: not an object");
668
- }
669
- return originalGetProto(O);
670
- } : getDunderProto ? function getProto3(O) {
671
- return getDunderProto(O);
672
- } : null;
673
708
  var hasown;
674
709
  var hasRequiredHasown;
675
710
  function requireHasown() {
@@ -721,10 +756,10 @@ var ThrowTypeError = $gOPD ? function() {
721
756
  }
722
757
  }
723
758
  }() : throwTypeError;
724
- var hasSymbols2 = requireHasSymbols()();
725
- var getProto$2 = getProto$3;
726
- var $ObjectGPO = Object_getPrototypeOf;
727
- var $ReflectGPO = Reflect_getPrototypeOf;
759
+ var hasSymbols = requireHasSymbols()();
760
+ var getProto$2 = requireGetProto();
761
+ var $ObjectGPO = requireObject_getPrototypeOf();
762
+ var $ReflectGPO = requireReflect_getPrototypeOf();
728
763
  var $apply$1 = requireFunctionApply();
729
764
  var $call = requireFunctionCall();
730
765
  var needsEval = {};
@@ -734,7 +769,7 @@ var INTRINSICS = {
734
769
  "%AggregateError%": typeof AggregateError === "undefined" ? undefined$1 : AggregateError,
735
770
  "%Array%": Array,
736
771
  "%ArrayBuffer%": typeof ArrayBuffer === "undefined" ? undefined$1 : ArrayBuffer,
737
- "%ArrayIteratorPrototype%": hasSymbols2 && getProto$2 ? getProto$2([][Symbol.iterator]()) : undefined$1,
772
+ "%ArrayIteratorPrototype%": hasSymbols && getProto$2 ? getProto$2([][Symbol.iterator]()) : undefined$1,
738
773
  "%AsyncFromSyncIteratorPrototype%": undefined$1,
739
774
  "%AsyncFunction%": needsEval,
740
775
  "%AsyncGenerator%": needsEval,
@@ -766,10 +801,10 @@ var INTRINSICS = {
766
801
  "%Int32Array%": typeof Int32Array === "undefined" ? undefined$1 : Int32Array,
767
802
  "%isFinite%": isFinite,
768
803
  "%isNaN%": isNaN,
769
- "%IteratorPrototype%": hasSymbols2 && getProto$2 ? getProto$2(getProto$2([][Symbol.iterator]())) : undefined$1,
804
+ "%IteratorPrototype%": hasSymbols && getProto$2 ? getProto$2(getProto$2([][Symbol.iterator]())) : undefined$1,
770
805
  "%JSON%": typeof JSON === "object" ? JSON : undefined$1,
771
806
  "%Map%": typeof Map === "undefined" ? undefined$1 : Map,
772
- "%MapIteratorPrototype%": typeof Map === "undefined" || !hasSymbols2 || !getProto$2 ? undefined$1 : getProto$2((/* @__PURE__ */ new Map())[Symbol.iterator]()),
807
+ "%MapIteratorPrototype%": typeof Map === "undefined" || !hasSymbols || !getProto$2 ? undefined$1 : getProto$2((/* @__PURE__ */ new Map())[Symbol.iterator]()),
773
808
  "%Math%": Math,
774
809
  "%Number%": Number,
775
810
  "%Object%": $Object,
@@ -783,11 +818,11 @@ var INTRINSICS = {
783
818
  "%Reflect%": typeof Reflect === "undefined" ? undefined$1 : Reflect,
784
819
  "%RegExp%": RegExp,
785
820
  "%Set%": typeof Set === "undefined" ? undefined$1 : Set,
786
- "%SetIteratorPrototype%": typeof Set === "undefined" || !hasSymbols2 || !getProto$2 ? undefined$1 : getProto$2((/* @__PURE__ */ new Set())[Symbol.iterator]()),
821
+ "%SetIteratorPrototype%": typeof Set === "undefined" || !hasSymbols || !getProto$2 ? undefined$1 : getProto$2((/* @__PURE__ */ new Set())[Symbol.iterator]()),
787
822
  "%SharedArrayBuffer%": typeof SharedArrayBuffer === "undefined" ? undefined$1 : SharedArrayBuffer,
788
823
  "%String%": String,
789
- "%StringIteratorPrototype%": hasSymbols2 && getProto$2 ? getProto$2(""[Symbol.iterator]()) : undefined$1,
790
- "%Symbol%": hasSymbols2 ? Symbol : undefined$1,
824
+ "%StringIteratorPrototype%": hasSymbols && getProto$2 ? getProto$2(""[Symbol.iterator]()) : undefined$1,
825
+ "%Symbol%": hasSymbols ? Symbol : undefined$1,
791
826
  "%SyntaxError%": $SyntaxError$1,
792
827
  "%ThrowTypeError%": ThrowTypeError,
793
828
  "%TypedArray%": TypedArray,
@@ -986,10 +1021,10 @@ var getIntrinsic = function GetIntrinsic(name, allowMissing) {
986
1021
  return void 0;
987
1022
  }
988
1023
  if ($gOPD && i + 1 >= parts.length) {
989
- var desc2 = $gOPD(value, part);
990
- isOwn = !!desc2;
991
- if (isOwn && "get" in desc2 && !("originalValue" in desc2.get)) {
992
- value = desc2.get;
1024
+ var desc = $gOPD(value, part);
1025
+ isOwn = !!desc;
1026
+ if (isOwn && "get" in desc && !("originalValue" in desc.get)) {
1027
+ value = desc.get;
993
1028
  } else {
994
1029
  value = value[part];
995
1030
  }
@@ -1112,7 +1147,7 @@ var callBound$1 = callBound$5;
1112
1147
  var safeRegexTest = safeRegexTest$1;
1113
1148
  var isFnRegex = safeRegexTest(/^\s*(?:function)?\*/);
1114
1149
  var hasToStringTag$2 = shams();
1115
- var getProto$1 = getProto$3;
1150
+ var getProto$1 = requireGetProto();
1116
1151
  var toStr$2 = callBound$1("Object.prototype.toString");
1117
1152
  var fnToStr$1 = callBound$1("Function.prototype.toString");
1118
1153
  var getGeneratorFunc = function() {
@@ -1364,13 +1399,13 @@ var defineDataProperty = function defineDataProperty2(obj, property, value) {
1364
1399
  var nonWritable = arguments.length > 4 ? arguments[4] : null;
1365
1400
  var nonConfigurable = arguments.length > 5 ? arguments[5] : null;
1366
1401
  var loose = arguments.length > 6 ? arguments[6] : false;
1367
- var desc2 = !!gopd && gopd(obj, property);
1402
+ var desc = !!gopd && gopd(obj, property);
1368
1403
  if ($defineProperty$1) {
1369
1404
  $defineProperty$1(obj, property, {
1370
- configurable: nonConfigurable === null && desc2 ? desc2.configurable : !nonConfigurable,
1371
- enumerable: nonEnumerable === null && desc2 ? desc2.enumerable : !nonEnumerable,
1405
+ configurable: nonConfigurable === null && desc ? desc.configurable : !nonConfigurable,
1406
+ enumerable: nonEnumerable === null && desc ? desc.enumerable : !nonEnumerable,
1372
1407
  value,
1373
- writable: nonWritable === null && desc2 ? desc2.writable : !nonWritable
1408
+ writable: nonWritable === null && desc ? desc.writable : !nonWritable
1374
1409
  });
1375
1410
  } else if (loose || !nonEnumerable && !nonWritable && !nonConfigurable) {
1376
1411
  obj[property] = value;
@@ -1410,11 +1445,11 @@ var setFunctionLength = function setFunctionLength2(fn2, length) {
1410
1445
  var functionLengthIsConfigurable = true;
1411
1446
  var functionLengthIsWritable = true;
1412
1447
  if ("length" in fn2 && gOPD$1) {
1413
- var desc2 = gOPD$1(fn2, "length");
1414
- if (desc2 && !desc2.configurable) {
1448
+ var desc = gOPD$1(fn2, "length");
1449
+ if (desc && !desc.configurable) {
1415
1450
  functionLengthIsConfigurable = false;
1416
1451
  }
1417
- if (desc2 && !desc2.writable) {
1452
+ if (desc && !desc.writable) {
1418
1453
  functionLengthIsWritable = false;
1419
1454
  }
1420
1455
  }
@@ -1471,7 +1506,7 @@ var availableTypedArrays2 = availableTypedArrays$1;
1471
1506
  var callBind = callBindExports;
1472
1507
  var callBound = callBound$5;
1473
1508
  var gOPD = gopd$1;
1474
- var getProto4 = getProto$3;
1509
+ var getProto = requireGetProto();
1475
1510
  var $toString = callBound("Object.prototype.toString");
1476
1511
  var hasToStringTag = shams();
1477
1512
  var g = typeof globalThis === "undefined" ? commonjsGlobal : globalThis;
@@ -1486,14 +1521,14 @@ var $indexOf = callBound("Array.prototype.indexOf", true) || function indexOf(ar
1486
1521
  return -1;
1487
1522
  };
1488
1523
  var cache = { __proto__: null };
1489
- if (hasToStringTag && gOPD && getProto4) {
1524
+ if (hasToStringTag && gOPD && getProto) {
1490
1525
  forEach2(typedArrays, function(typedArray) {
1491
1526
  var arr = new g[typedArray]();
1492
- if (Symbol.toStringTag in arr && getProto4) {
1493
- var proto = getProto4(arr);
1527
+ if (Symbol.toStringTag in arr && getProto) {
1528
+ var proto = getProto(arr);
1494
1529
  var descriptor = gOPD(proto, Symbol.toStringTag);
1495
1530
  if (!descriptor && proto) {
1496
- var superProto = getProto4(proto);
1531
+ var superProto = getProto(proto);
1497
1532
  descriptor = gOPD(superProto, Symbol.toStringTag);
1498
1533
  }
1499
1534
  cache["$" + typedArray] = callBind(descriptor.get);
@@ -2086,16 +2121,16 @@ var isBufferBrowser = function isBuffer(arg) {
2086
2121
  return output;
2087
2122
  }
2088
2123
  function formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) {
2089
- var name, str, desc2;
2090
- desc2 = Object.getOwnPropertyDescriptor(value, key) || { value: value[key] };
2091
- if (desc2.get) {
2092
- if (desc2.set) {
2124
+ var name, str, desc;
2125
+ desc = Object.getOwnPropertyDescriptor(value, key) || { value: value[key] };
2126
+ if (desc.get) {
2127
+ if (desc.set) {
2093
2128
  str = ctx.stylize("[Getter/Setter]", "special");
2094
2129
  } else {
2095
2130
  str = ctx.stylize("[Getter]", "special");
2096
2131
  }
2097
2132
  } else {
2098
- if (desc2.set) {
2133
+ if (desc.set) {
2099
2134
  str = ctx.stylize("[Setter]", "special");
2100
2135
  }
2101
2136
  }
@@ -2103,11 +2138,11 @@ var isBufferBrowser = function isBuffer(arg) {
2103
2138
  name = "[" + key + "]";
2104
2139
  }
2105
2140
  if (!str) {
2106
- if (ctx.seen.indexOf(desc2.value) < 0) {
2141
+ if (ctx.seen.indexOf(desc.value) < 0) {
2107
2142
  if (isNull(recurseTimes)) {
2108
- str = formatValue(ctx, desc2.value, null);
2143
+ str = formatValue(ctx, desc.value, null);
2109
2144
  } else {
2110
- str = formatValue(ctx, desc2.value, recurseTimes - 1);
2145
+ str = formatValue(ctx, desc.value, recurseTimes - 1);
2111
2146
  }
2112
2147
  if (str.indexOf("\n") > -1) {
2113
2148
  if (array) {