n8n-editor-ui 1.75.1 → 1.76.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. package/dist/assets/{AnnotationTagsDropdown.ee.vue_vue_type_script_setup_true_lang-BhRv3Xk0.js → AnnotationTagsDropdown.ee.vue_vue_type_script_setup_true_lang-BHsxR3W1.js} +1 -1
  2. package/dist/assets/{AuthView-vL9vjCvD.js → AuthView-BM2FUuPl.js} +2 -2
  3. package/dist/assets/{CanvasChat-B69VJDcA.js → CanvasChat-CH9p9KhM.js} +28 -33
  4. package/dist/assets/{CanvasControls-DhhKk7yf.js → CanvasControls-B731Q2p8.js} +1 -1
  5. package/dist/assets/{ChangePasswordView-D8y2rYLl.js → ChangePasswordView-V_sPVTAZ.js} +3 -3
  6. package/dist/assets/CollectionParameter-6vvdqJHF.js +4 -0
  7. package/dist/assets/{ConcurrentExecutionsHeader-Dv0s5rxY.js → ConcurrentExecutionsHeader-CqJlRLxg.js} +2 -2
  8. package/dist/assets/{CredentialsView-Dp0fVbpZ.js → CredentialsView-C4S2fAdA.js} +4 -4
  9. package/dist/assets/{ErrorView-a6qq4rkt.js → ErrorView-JaoAwutc.js} +1 -1
  10. package/dist/assets/{ExecutionsView-CpILe_1o.js → ExecutionsView-5wTNtaSW.js} +17 -5
  11. package/dist/assets/{FileSaver.min-C1QTiJmy.js → FileSaver.min-LGC4rFGc.js} +1 -1
  12. package/dist/assets/{FixedCollectionParameter-kphzKyyy.js → FixedCollectionParameter-D4_FTYVl.js} +1 -1
  13. package/dist/assets/{ForgotMyPasswordView-DzUekqel.js → ForgotMyPasswordView-w2WP9YgP.js} +3 -3
  14. package/dist/assets/{Logo-B-pFOUGc.js → Logo-SPkbfh59.js} +1 -1
  15. package/dist/assets/{MainHeader-C6S60KwG.js → MainHeader-BJg52ZXw.js} +15 -105
  16. package/dist/assets/{MainHeader-BIKp2Ncp.css → MainHeader-DC-g9NGP.css} +12 -11
  17. package/dist/assets/{MainSidebar-CJ-OKhK-.js → MainSidebar-CKqH4uT7.js} +4 -81
  18. package/dist/assets/{NodeCreation-CNcty5fl.js → NodeCreation-CVgzrFcX.js} +4 -4
  19. package/dist/assets/{NodeCreator-DAW2sX8p.js → NodeCreator-cCYcgerB.js} +5 -5
  20. package/dist/assets/{NodeViewSwitcher-mtWBt9cw.js → NodeViewSwitcher-CUwv0PGz.js} +89 -48
  21. package/dist/assets/{NodeViewSwitcher-CB1zkjni.css → NodeViewSwitcher-aJwrKS8o.css} +23 -23
  22. package/dist/assets/{ProjectCardBadge-DcWhzEr6.js → ProjectCardBadge-C3jDsURN.js} +2 -15
  23. package/dist/assets/{ProjectHeader-D2FCquSr.js → ProjectHeader-DSa1hmOP.js} +1 -1
  24. package/dist/assets/{ProjectSettings-CDg4IQw7.js → ProjectSettings-I2IF04E7.js} +2 -2
  25. package/dist/assets/{PushConnectionTracker.vue_vue_type_script_setup_true_lang-BPBen7Li.js → PushConnectionTracker.vue_vue_type_script_setup_true_lang-CmOvnliJ.js} +1 -1
  26. package/dist/assets/{ResourcesListLayout-DWASP6Vp.js → ResourcesListLayout-bBpXYF7L.js} +21 -11
  27. package/dist/assets/{ResourcesListLayout-CJC-YvjD.css → ResourcesListLayout-d7mMNhOL.css} +6 -6
  28. package/dist/assets/{RunDataJson-CFNeORgR.js → RunDataJson-CcnypqRE.js} +15 -15
  29. package/dist/assets/{RunDataJson-BXTLuo7i.css → RunDataJson-Txw0lqay.css} +1 -0
  30. package/dist/assets/{RunDataJsonActions-COFXneND.js → RunDataJsonActions-kHQ6vY1P.js} +2 -2
  31. package/dist/assets/{RunDataSearch-D9UDSGjR.js → RunDataSearch-DACIe57p.js} +1 -1
  32. package/dist/assets/{RunDataTable-C3flt0dy.js → RunDataTable-Sb63wJLj.js} +2 -2
  33. package/dist/assets/{SamlOnboarding-CWM-8qu7.js → SamlOnboarding-DQsARCUw.js} +3 -3
  34. package/dist/assets/{SettingsApiView-Bl6jvpWQ.js → SettingsApiView-zx8BvT3f.js} +1 -1
  35. package/dist/assets/{SettingsCommunityNodesView-5Dl4EOzd.js → SettingsCommunityNodesView-Ctc1LGK_.js} +4 -4
  36. package/dist/assets/{SettingsExternalSecrets-DljwCjwW.js → SettingsExternalSecrets-BMlNzQCb.js} +1 -1
  37. package/dist/assets/{SettingsLdapView-5kgLPxB7.js → SettingsLdapView-C4cxA2ox.js} +1 -1
  38. package/dist/assets/{SettingsLogStreamingView-CsB-E4Kv.js → SettingsLogStreamingView-CeD1-VKh.js} +1 -1
  39. package/dist/assets/{SettingsPersonalView-B0vJNuPt.js → SettingsPersonalView-CMDHnJnJ.js} +1 -1
  40. package/dist/assets/{SettingsSourceControl-B7SGpzBu.js → SettingsSourceControl-uNESGSVY.js} +1 -1
  41. package/dist/assets/{SettingsSso-pDsu2lsS.js → SettingsSso-B5395yj8.js} +1 -1
  42. package/dist/assets/{SettingsUsageAndPlan-B83lunzH.js → SettingsUsageAndPlan-B9L45dZx.js} +1 -1
  43. package/dist/assets/{SettingsUsersView-DPM5R_9p.js → SettingsUsersView-BfjRqHo8.js} +1 -1
  44. package/dist/assets/{SettingsView-NF_8zzqr.js → SettingsView-Dvnv5HjE.js} +1 -1
  45. package/dist/assets/{SetupView-Dzehb2sC.js → SetupView-Bo0whiYi.js} +3 -3
  46. package/dist/assets/{SetupWorkflowCredentialsButton-Bhx7c9Lu.js → SetupWorkflowCredentialsButton-CMSQ2frW.js} +1 -1
  47. package/dist/assets/{SetupWorkflowFromTemplateView-DaP6_l4S.js → SetupWorkflowFromTemplateView-DVqRDQCE.js} +3 -3
  48. package/dist/assets/{SigninView-BLyXzN0c.js → SigninView-BdyUXUo3.js} +3 -3
  49. package/dist/assets/{SignoutView-BsaJctbQ.js → SignoutView-BJybdazp.js} +1 -1
  50. package/dist/assets/{SignupView-m53hHk3y.js → SignupView-CzWl7RK9.js} +3 -3
  51. package/dist/assets/{TemplateDetails-CWR4kXyf.js → TemplateDetails-D7boD6wI.js} +1 -1
  52. package/dist/assets/{TemplateList-DLQxEmgt.js → TemplateList-CThbAVgl.js} +1 -1
  53. package/dist/assets/{TemplatesCollectionView-CobxDh9v.js → TemplatesCollectionView-Dc0v4dF-.js} +5 -5
  54. package/dist/assets/{TemplatesSearchView-CDW7EH1p.js → TemplatesSearchView-BuT5hNyb.js} +3 -3
  55. package/dist/assets/{TemplatesView-DJCodjB-.js → TemplatesView-BJE24X4W.js} +1 -1
  56. package/dist/assets/{TemplatesWorkflowView-DOlLEzEa.js → TemplatesWorkflowView-CbvvJsE5.js} +5 -5
  57. package/dist/assets/{TestDefinitionEditView-Cuphh86f.js → TestDefinitionEditView-I7Ov_Zoa.js} +785 -547
  58. package/dist/assets/{TestDefinitionEditView-FI1GVbhl.css → TestDefinitionEditView-d7yfvp9P.css} +601 -238
  59. package/dist/assets/{TestDefinitionListView-Dgq9dXJL.js → TestDefinitionListView-D5DrgrXe.js} +93 -68
  60. package/dist/assets/{TestDefinitionRootView-DU-JMBSH.js → TestDefinitionRootView-L4hq7nTP.js} +1 -1
  61. package/dist/assets/{VariablesView-D4pRzSuY.css → VariablesView-CIfrpJdg.css} +21 -54
  62. package/dist/assets/VariablesView-LkC3vF2q.js +509 -0
  63. package/dist/assets/{WorkerView-CbqToUTB.js → WorkerView-COvW8anR.js} +5 -5
  64. package/dist/assets/{WorkflowActivator-BaM6Tydw.js → WorkflowActivator-P0lWv8pk.js} +2 -2
  65. package/dist/assets/{WorkflowExecutionsInfoAccordion-6kKOPXK7.js → WorkflowExecutionsInfoAccordion-BIkiqgxq.js} +1 -1
  66. package/dist/assets/{WorkflowExecutionsLandingPage-Cqq5FeZE.js → WorkflowExecutionsLandingPage-D4n3E-xo.js} +2 -2
  67. package/dist/assets/{WorkflowExecutionsPreview-D1cSllVi.js → WorkflowExecutionsPreview-CJPBVQWQ.js} +5 -5
  68. package/dist/assets/{WorkflowExecutionsView-BUHtKz5M.css → WorkflowExecutionsView-BjdRnQOE.css} +32 -32
  69. package/dist/assets/{WorkflowExecutionsView-qTFEWbeC.js → WorkflowExecutionsView-C1q64QSF.js} +43 -29
  70. package/dist/assets/{WorkflowHistory-De54-QkN.js → WorkflowHistory-BMFmf0H2.js} +3 -3
  71. package/dist/assets/{WorkflowOnboardingView-p6cAElRZ.js → WorkflowOnboardingView-C9MYK55j.js} +1 -1
  72. package/dist/assets/{WorkflowPreview-CKK96lnJ.js → WorkflowPreview-p6m8HW6g.js} +1 -1
  73. package/dist/assets/{WorkflowsView-D5G530AX.js → WorkflowsView-ryt6Z6Pg.js} +7 -7
  74. package/dist/assets/{easyAiWorkflowUtils-eykvtlKm.js → easyAiWorkflowUtils-IFYGWz42.js} +1 -1
  75. package/dist/assets/{index-CWcTt6jd.js → index-BfLzQZy8.js} +2543 -1944
  76. package/dist/assets/{index-DXFsvbJ_.css → index-DsHZ4yOE.css} +250 -31
  77. package/dist/assets/{polyfills-BN5TIqPj.js → polyfills-DfOJfMlf.js} +961 -901
  78. package/dist/assets/{pushConnection.store-CTrZ_kO6.js → pushConnection.store-B2kXZQ1r.js} +1 -1
  79. package/dist/assets/{templateActions-B712CNo3.js → templateActions-Cs3Aa6ob.js} +1 -1
  80. package/dist/assets/useBeforeUnload-Df6rjuGn.js +43 -0
  81. package/dist/assets/{useBugReporting-BxDqzvRW.js → useBugReporting-DKZQoKUA.js} +2 -1
  82. package/dist/assets/{useCanvasOperations-DTx4vbp_.js → useCanvasOperations-0-rDC1Yl.js} +599 -692
  83. package/dist/assets/{useCanvasOperations-BSKKylIT.css → useCanvasOperations-Bjf582lB.css} +12 -12
  84. package/dist/assets/{useExecutionDebugging-DjYGtT4w.js → useExecutionDebugging-DX94986O.js} +1 -1
  85. package/dist/assets/{useExecutionHelpers-DcyS3__o.js → useExecutionHelpers-CVNFGfe1.js} +1 -1
  86. package/dist/assets/{usePinnedData-C5NRkSpx.js → usePinnedData-CE68dXlh.js} +1 -1
  87. package/dist/assets/{usePushConnection-CGv57TM5.js → usePushConnection-D1Uzxdr7.js} +3 -3
  88. package/dist/assets/{useRunWorkflow-C_vazd74.js → useRunWorkflow-CrM3JYTw.js} +7 -4
  89. package/dist/assets/{useWorkflowActivate-Dxi5zSSs.js → useWorkflowActivate-DhQ6AKDL.js} +1 -1
  90. package/dist/index.html +3 -3
  91. package/package.json +1 -1
  92. package/dist/assets/CollectionParameter-djLQ8MUO.js +0 -4
  93. package/dist/assets/VariablesView-CaGkZXjl.js +0 -599
  94. package/dist/assets/useNodeViewVersionSwitcher-CXU1PYlK.js +0 -93
@@ -1634,360 +1634,6 @@ function requireEs_array_push () {
1634
1634
 
1635
1635
  requireEs_array_push();
1636
1636
 
1637
- var es_array_toReversed = {};
1638
-
1639
- var arrayToReversed;
1640
- var hasRequiredArrayToReversed;
1641
-
1642
- function requireArrayToReversed () {
1643
- if (hasRequiredArrayToReversed) return arrayToReversed;
1644
- hasRequiredArrayToReversed = 1;
1645
- var lengthOfArrayLike = requireLengthOfArrayLike();
1646
-
1647
- // https://tc39.es/proposal-change-array-by-copy/#sec-array.prototype.toReversed
1648
- // https://tc39.es/proposal-change-array-by-copy/#sec-%typedarray%.prototype.toReversed
1649
- arrayToReversed = function (O, C) {
1650
- var len = lengthOfArrayLike(O);
1651
- var A = new C(len);
1652
- var k = 0;
1653
- for (; k < len; k++) A[k] = O[len - k - 1];
1654
- return A;
1655
- };
1656
- return arrayToReversed;
1657
- }
1658
-
1659
- var objectDefineProperties = {};
1660
-
1661
- var objectKeys;
1662
- var hasRequiredObjectKeys;
1663
-
1664
- function requireObjectKeys () {
1665
- if (hasRequiredObjectKeys) return objectKeys;
1666
- hasRequiredObjectKeys = 1;
1667
- var internalObjectKeys = requireObjectKeysInternal();
1668
- var enumBugKeys = requireEnumBugKeys();
1669
-
1670
- // `Object.keys` method
1671
- // https://tc39.es/ecma262/#sec-object.keys
1672
- // eslint-disable-next-line es/no-object-keys -- safe
1673
- objectKeys = Object.keys || function keys(O) {
1674
- return internalObjectKeys(O, enumBugKeys);
1675
- };
1676
- return objectKeys;
1677
- }
1678
-
1679
- var hasRequiredObjectDefineProperties;
1680
-
1681
- function requireObjectDefineProperties () {
1682
- if (hasRequiredObjectDefineProperties) return objectDefineProperties;
1683
- hasRequiredObjectDefineProperties = 1;
1684
- var DESCRIPTORS = requireDescriptors();
1685
- var V8_PROTOTYPE_DEFINE_BUG = requireV8PrototypeDefineBug();
1686
- var definePropertyModule = requireObjectDefineProperty();
1687
- var anObject = requireAnObject();
1688
- var toIndexedObject = requireToIndexedObject();
1689
- var objectKeys = requireObjectKeys();
1690
-
1691
- // `Object.defineProperties` method
1692
- // https://tc39.es/ecma262/#sec-object.defineproperties
1693
- // eslint-disable-next-line es/no-object-defineproperties -- safe
1694
- objectDefineProperties.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
1695
- anObject(O);
1696
- var props = toIndexedObject(Properties);
1697
- var keys = objectKeys(Properties);
1698
- var length = keys.length;
1699
- var index = 0;
1700
- var key;
1701
- while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
1702
- return O;
1703
- };
1704
- return objectDefineProperties;
1705
- }
1706
-
1707
- var html;
1708
- var hasRequiredHtml;
1709
-
1710
- function requireHtml () {
1711
- if (hasRequiredHtml) return html;
1712
- hasRequiredHtml = 1;
1713
- var getBuiltIn = requireGetBuiltIn();
1714
-
1715
- html = getBuiltIn('document', 'documentElement');
1716
- return html;
1717
- }
1718
-
1719
- var objectCreate;
1720
- var hasRequiredObjectCreate;
1721
-
1722
- function requireObjectCreate () {
1723
- if (hasRequiredObjectCreate) return objectCreate;
1724
- hasRequiredObjectCreate = 1;
1725
- /* global ActiveXObject -- old IE, WSH */
1726
- var anObject = requireAnObject();
1727
- var definePropertiesModule = requireObjectDefineProperties();
1728
- var enumBugKeys = requireEnumBugKeys();
1729
- var hiddenKeys = requireHiddenKeys();
1730
- var html = requireHtml();
1731
- var documentCreateElement = requireDocumentCreateElement();
1732
- var sharedKey = requireSharedKey();
1733
-
1734
- var GT = '>';
1735
- var LT = '<';
1736
- var PROTOTYPE = 'prototype';
1737
- var SCRIPT = 'script';
1738
- var IE_PROTO = sharedKey('IE_PROTO');
1739
-
1740
- var EmptyConstructor = function () { /* empty */ };
1741
-
1742
- var scriptTag = function (content) {
1743
- return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
1744
- };
1745
-
1746
- // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
1747
- var NullProtoObjectViaActiveX = function (activeXDocument) {
1748
- activeXDocument.write(scriptTag(''));
1749
- activeXDocument.close();
1750
- var temp = activeXDocument.parentWindow.Object;
1751
- // eslint-disable-next-line no-useless-assignment -- avoid memory leak
1752
- activeXDocument = null;
1753
- return temp;
1754
- };
1755
-
1756
- // Create object with fake `null` prototype: use iframe Object with cleared prototype
1757
- var NullProtoObjectViaIFrame = function () {
1758
- // Thrash, waste and sodomy: IE GC bug
1759
- var iframe = documentCreateElement('iframe');
1760
- var JS = 'java' + SCRIPT + ':';
1761
- var iframeDocument;
1762
- iframe.style.display = 'none';
1763
- html.appendChild(iframe);
1764
- // https://github.com/zloirock/core-js/issues/475
1765
- iframe.src = String(JS);
1766
- iframeDocument = iframe.contentWindow.document;
1767
- iframeDocument.open();
1768
- iframeDocument.write(scriptTag('document.F=Object'));
1769
- iframeDocument.close();
1770
- return iframeDocument.F;
1771
- };
1772
-
1773
- // Check for document.domain and active x support
1774
- // No need to use active x approach when document.domain is not set
1775
- // see https://github.com/es-shims/es5-shim/issues/150
1776
- // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
1777
- // avoid IE GC bug
1778
- var activeXDocument;
1779
- var NullProtoObject = function () {
1780
- try {
1781
- activeXDocument = new ActiveXObject('htmlfile');
1782
- } catch (error) { /* ignore */ }
1783
- NullProtoObject = typeof document != 'undefined'
1784
- ? document.domain && activeXDocument
1785
- ? NullProtoObjectViaActiveX(activeXDocument) // old IE
1786
- : NullProtoObjectViaIFrame()
1787
- : NullProtoObjectViaActiveX(activeXDocument); // WSH
1788
- var length = enumBugKeys.length;
1789
- while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
1790
- return NullProtoObject();
1791
- };
1792
-
1793
- hiddenKeys[IE_PROTO] = true;
1794
-
1795
- // `Object.create` method
1796
- // https://tc39.es/ecma262/#sec-object.create
1797
- // eslint-disable-next-line es/no-object-create -- safe
1798
- objectCreate = Object.create || function create(O, Properties) {
1799
- var result;
1800
- if (O !== null) {
1801
- EmptyConstructor[PROTOTYPE] = anObject(O);
1802
- result = new EmptyConstructor();
1803
- EmptyConstructor[PROTOTYPE] = null;
1804
- // add "__proto__" for Object.getPrototypeOf polyfill
1805
- result[IE_PROTO] = O;
1806
- } else result = NullProtoObject();
1807
- return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
1808
- };
1809
- return objectCreate;
1810
- }
1811
-
1812
- var addToUnscopables;
1813
- var hasRequiredAddToUnscopables;
1814
-
1815
- function requireAddToUnscopables () {
1816
- if (hasRequiredAddToUnscopables) return addToUnscopables;
1817
- hasRequiredAddToUnscopables = 1;
1818
- var wellKnownSymbol = requireWellKnownSymbol();
1819
- var create = requireObjectCreate();
1820
- var defineProperty = requireObjectDefineProperty().f;
1821
-
1822
- var UNSCOPABLES = wellKnownSymbol('unscopables');
1823
- var ArrayPrototype = Array.prototype;
1824
-
1825
- // Array.prototype[@@unscopables]
1826
- // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1827
- if (ArrayPrototype[UNSCOPABLES] === undefined) {
1828
- defineProperty(ArrayPrototype, UNSCOPABLES, {
1829
- configurable: true,
1830
- value: create(null)
1831
- });
1832
- }
1833
-
1834
- // add a key to Array.prototype[@@unscopables]
1835
- addToUnscopables = function (key) {
1836
- ArrayPrototype[UNSCOPABLES][key] = true;
1837
- };
1838
- return addToUnscopables;
1839
- }
1840
-
1841
- var hasRequiredEs_array_toReversed;
1842
-
1843
- function requireEs_array_toReversed () {
1844
- if (hasRequiredEs_array_toReversed) return es_array_toReversed;
1845
- hasRequiredEs_array_toReversed = 1;
1846
- var $ = require_export();
1847
- var arrayToReversed = requireArrayToReversed();
1848
- var toIndexedObject = requireToIndexedObject();
1849
- var addToUnscopables = requireAddToUnscopables();
1850
-
1851
- var $Array = Array;
1852
-
1853
- // `Array.prototype.toReversed` method
1854
- // https://tc39.es/ecma262/#sec-array.prototype.toreversed
1855
- $({ target: 'Array', proto: true }, {
1856
- toReversed: function toReversed() {
1857
- return arrayToReversed(toIndexedObject(this), $Array);
1858
- }
1859
- });
1860
-
1861
- addToUnscopables('toReversed');
1862
- return es_array_toReversed;
1863
- }
1864
-
1865
- requireEs_array_toReversed();
1866
-
1867
- var es_array_toSorted = {};
1868
-
1869
- var arrayFromConstructorAndList;
1870
- var hasRequiredArrayFromConstructorAndList;
1871
-
1872
- function requireArrayFromConstructorAndList () {
1873
- if (hasRequiredArrayFromConstructorAndList) return arrayFromConstructorAndList;
1874
- hasRequiredArrayFromConstructorAndList = 1;
1875
- var lengthOfArrayLike = requireLengthOfArrayLike();
1876
-
1877
- arrayFromConstructorAndList = function (Constructor, list, $length) {
1878
- var index = 0;
1879
- var length = arguments.length > 2 ? $length : lengthOfArrayLike(list);
1880
- var result = new Constructor(length);
1881
- while (length > index) result[index] = list[index++];
1882
- return result;
1883
- };
1884
- return arrayFromConstructorAndList;
1885
- }
1886
-
1887
- var getBuiltInPrototypeMethod;
1888
- var hasRequiredGetBuiltInPrototypeMethod;
1889
-
1890
- function requireGetBuiltInPrototypeMethod () {
1891
- if (hasRequiredGetBuiltInPrototypeMethod) return getBuiltInPrototypeMethod;
1892
- hasRequiredGetBuiltInPrototypeMethod = 1;
1893
- var globalThis = requireGlobalThis();
1894
-
1895
- getBuiltInPrototypeMethod = function (CONSTRUCTOR, METHOD) {
1896
- var Constructor = globalThis[CONSTRUCTOR];
1897
- var Prototype = Constructor && Constructor.prototype;
1898
- return Prototype && Prototype[METHOD];
1899
- };
1900
- return getBuiltInPrototypeMethod;
1901
- }
1902
-
1903
- var hasRequiredEs_array_toSorted;
1904
-
1905
- function requireEs_array_toSorted () {
1906
- if (hasRequiredEs_array_toSorted) return es_array_toSorted;
1907
- hasRequiredEs_array_toSorted = 1;
1908
- var $ = require_export();
1909
- var uncurryThis = requireFunctionUncurryThis();
1910
- var aCallable = requireACallable();
1911
- var toIndexedObject = requireToIndexedObject();
1912
- var arrayFromConstructorAndList = requireArrayFromConstructorAndList();
1913
- var getBuiltInPrototypeMethod = requireGetBuiltInPrototypeMethod();
1914
- var addToUnscopables = requireAddToUnscopables();
1915
-
1916
- var $Array = Array;
1917
- var sort = uncurryThis(getBuiltInPrototypeMethod('Array', 'sort'));
1918
-
1919
- // `Array.prototype.toSorted` method
1920
- // https://tc39.es/ecma262/#sec-array.prototype.tosorted
1921
- $({ target: 'Array', proto: true }, {
1922
- toSorted: function toSorted(compareFn) {
1923
- if (compareFn !== undefined) aCallable(compareFn);
1924
- var O = toIndexedObject(this);
1925
- var A = arrayFromConstructorAndList($Array, O);
1926
- return sort(A, compareFn);
1927
- }
1928
- });
1929
-
1930
- addToUnscopables('toSorted');
1931
- return es_array_toSorted;
1932
- }
1933
-
1934
- requireEs_array_toSorted();
1935
-
1936
- var es_array_toSpliced = {};
1937
-
1938
- var hasRequiredEs_array_toSpliced;
1939
-
1940
- function requireEs_array_toSpliced () {
1941
- if (hasRequiredEs_array_toSpliced) return es_array_toSpliced;
1942
- hasRequiredEs_array_toSpliced = 1;
1943
- var $ = require_export();
1944
- var addToUnscopables = requireAddToUnscopables();
1945
- var doesNotExceedSafeInteger = requireDoesNotExceedSafeInteger();
1946
- var lengthOfArrayLike = requireLengthOfArrayLike();
1947
- var toAbsoluteIndex = requireToAbsoluteIndex();
1948
- var toIndexedObject = requireToIndexedObject();
1949
- var toIntegerOrInfinity = requireToIntegerOrInfinity();
1950
-
1951
- var $Array = Array;
1952
- var max = Math.max;
1953
- var min = Math.min;
1954
-
1955
- // `Array.prototype.toSpliced` method
1956
- // https://tc39.es/ecma262/#sec-array.prototype.tospliced
1957
- $({ target: 'Array', proto: true }, {
1958
- toSpliced: function toSpliced(start, deleteCount /* , ...items */) {
1959
- var O = toIndexedObject(this);
1960
- var len = lengthOfArrayLike(O);
1961
- var actualStart = toAbsoluteIndex(start, len);
1962
- var argumentsLength = arguments.length;
1963
- var k = 0;
1964
- var insertCount, actualDeleteCount, newLen, A;
1965
- if (argumentsLength === 0) {
1966
- insertCount = actualDeleteCount = 0;
1967
- } else if (argumentsLength === 1) {
1968
- insertCount = 0;
1969
- actualDeleteCount = len - actualStart;
1970
- } else {
1971
- insertCount = argumentsLength - 2;
1972
- actualDeleteCount = min(max(toIntegerOrInfinity(deleteCount), 0), len - actualStart);
1973
- }
1974
- newLen = doesNotExceedSafeInteger(len + insertCount - actualDeleteCount);
1975
- A = $Array(newLen);
1976
-
1977
- for (; k < actualStart; k++) A[k] = O[k];
1978
- for (; k < actualStart + insertCount; k++) A[k] = arguments[k - actualStart + 2];
1979
- for (; k < newLen; k++) A[k] = O[k + actualDeleteCount - insertCount];
1980
-
1981
- return A;
1982
- }
1983
- });
1984
-
1985
- addToUnscopables('toSpliced');
1986
- return es_array_toSpliced;
1987
- }
1988
-
1989
- requireEs_array_toSpliced();
1990
-
1991
1637
  var es_arrayBuffer_detached = {};
1992
1638
 
1993
1639
  var defineBuiltInAccessor;
@@ -2389,99 +2035,6 @@ function requireEs_arrayBuffer_transferToFixedLength () {
2389
2035
 
2390
2036
  requireEs_arrayBuffer_transferToFixedLength();
2391
2037
 
2392
- var es_regexp_flags = {};
2393
-
2394
- var regexpFlags;
2395
- var hasRequiredRegexpFlags;
2396
-
2397
- function requireRegexpFlags () {
2398
- if (hasRequiredRegexpFlags) return regexpFlags;
2399
- hasRequiredRegexpFlags = 1;
2400
- var anObject = requireAnObject();
2401
-
2402
- // `RegExp.prototype.flags` getter implementation
2403
- // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
2404
- regexpFlags = function () {
2405
- var that = anObject(this);
2406
- var result = '';
2407
- if (that.hasIndices) result += 'd';
2408
- if (that.global) result += 'g';
2409
- if (that.ignoreCase) result += 'i';
2410
- if (that.multiline) result += 'm';
2411
- if (that.dotAll) result += 's';
2412
- if (that.unicode) result += 'u';
2413
- if (that.unicodeSets) result += 'v';
2414
- if (that.sticky) result += 'y';
2415
- return result;
2416
- };
2417
- return regexpFlags;
2418
- }
2419
-
2420
- var hasRequiredEs_regexp_flags;
2421
-
2422
- function requireEs_regexp_flags () {
2423
- if (hasRequiredEs_regexp_flags) return es_regexp_flags;
2424
- hasRequiredEs_regexp_flags = 1;
2425
- var globalThis = requireGlobalThis();
2426
- var DESCRIPTORS = requireDescriptors();
2427
- var defineBuiltInAccessor = requireDefineBuiltInAccessor();
2428
- var regExpFlags = requireRegexpFlags();
2429
- var fails = requireFails();
2430
-
2431
- // babel-minify and Closure Compiler transpiles RegExp('.', 'd') -> /./d and it causes SyntaxError
2432
- var RegExp = globalThis.RegExp;
2433
- var RegExpPrototype = RegExp.prototype;
2434
-
2435
- var FORCED = DESCRIPTORS && fails(function () {
2436
- var INDICES_SUPPORT = true;
2437
- try {
2438
- RegExp('.', 'd');
2439
- } catch (error) {
2440
- INDICES_SUPPORT = false;
2441
- }
2442
-
2443
- var O = {};
2444
- // modern V8 bug
2445
- var calls = '';
2446
- var expected = INDICES_SUPPORT ? 'dgimsy' : 'gimsy';
2447
-
2448
- var addGetter = function (key, chr) {
2449
- // eslint-disable-next-line es/no-object-defineproperty -- safe
2450
- Object.defineProperty(O, key, { get: function () {
2451
- calls += chr;
2452
- return true;
2453
- } });
2454
- };
2455
-
2456
- var pairs = {
2457
- dotAll: 's',
2458
- global: 'g',
2459
- ignoreCase: 'i',
2460
- multiline: 'm',
2461
- sticky: 'y'
2462
- };
2463
-
2464
- if (INDICES_SUPPORT) pairs.hasIndices = 'd';
2465
-
2466
- for (var key in pairs) addGetter(key, pairs[key]);
2467
-
2468
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
2469
- var result = Object.getOwnPropertyDescriptor(RegExpPrototype, 'flags').get.call(O);
2470
-
2471
- return result !== expected || calls !== expected;
2472
- });
2473
-
2474
- // `RegExp.prototype.flags` getter
2475
- // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
2476
- if (FORCED) defineBuiltInAccessor(RegExpPrototype, 'flags', {
2477
- configurable: true,
2478
- get: regExpFlags
2479
- });
2480
- return es_regexp_flags;
2481
- }
2482
-
2483
- requireEs_regexp_flags();
2484
-
2485
2038
  var es_set_difference_v2 = {};
2486
2039
 
2487
2040
  var setHelpers;
@@ -3104,73 +2657,7 @@ function requireEs_set_union_v2 () {
3104
2657
 
3105
2658
  requireEs_set_union_v2();
3106
2659
 
3107
- var es_typedArray_toReversed = {};
3108
-
3109
- var arrayBufferBasicDetection;
3110
- var hasRequiredArrayBufferBasicDetection;
3111
-
3112
- function requireArrayBufferBasicDetection () {
3113
- if (hasRequiredArrayBufferBasicDetection) return arrayBufferBasicDetection;
3114
- hasRequiredArrayBufferBasicDetection = 1;
3115
- // eslint-disable-next-line es/no-typed-arrays -- safe
3116
- arrayBufferBasicDetection = typeof ArrayBuffer != 'undefined' && typeof DataView != 'undefined';
3117
- return arrayBufferBasicDetection;
3118
- }
3119
-
3120
- var toStringTagSupport;
3121
- var hasRequiredToStringTagSupport;
3122
-
3123
- function requireToStringTagSupport () {
3124
- if (hasRequiredToStringTagSupport) return toStringTagSupport;
3125
- hasRequiredToStringTagSupport = 1;
3126
- var wellKnownSymbol = requireWellKnownSymbol();
3127
-
3128
- var TO_STRING_TAG = wellKnownSymbol('toStringTag');
3129
- var test = {};
3130
-
3131
- test[TO_STRING_TAG] = 'z';
3132
-
3133
- toStringTagSupport = String(test) === '[object z]';
3134
- return toStringTagSupport;
3135
- }
3136
-
3137
- var classof;
3138
- var hasRequiredClassof;
3139
-
3140
- function requireClassof () {
3141
- if (hasRequiredClassof) return classof;
3142
- hasRequiredClassof = 1;
3143
- var TO_STRING_TAG_SUPPORT = requireToStringTagSupport();
3144
- var isCallable = requireIsCallable();
3145
- var classofRaw = requireClassofRaw();
3146
- var wellKnownSymbol = requireWellKnownSymbol();
3147
-
3148
- var TO_STRING_TAG = wellKnownSymbol('toStringTag');
3149
- var $Object = Object;
3150
-
3151
- // ES3 wrong here
3152
- var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) === 'Arguments';
3153
-
3154
- // fallback for IE11 Script Access Denied error
3155
- var tryGet = function (it, key) {
3156
- try {
3157
- return it[key];
3158
- } catch (error) { /* empty */ }
3159
- };
3160
-
3161
- // getting tag from ES6+ `Object.prototype.toString`
3162
- classof = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
3163
- var O, tag, result;
3164
- return it === undefined ? 'Undefined' : it === null ? 'Null'
3165
- // @@toStringTag case
3166
- : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
3167
- // builtinTag case
3168
- : CORRECT_ARGUMENTS ? classofRaw(O)
3169
- // ES3 arguments fallback
3170
- : (result = classofRaw(O)) === 'Object' && isCallable(O.callee) ? 'Arguments' : result;
3171
- };
3172
- return classof;
3173
- }
2660
+ var esnext_suppressedError_constructor = {};
3174
2661
 
3175
2662
  var correctPrototypeGetter;
3176
2663
  var hasRequiredCorrectPrototypeGetter;
@@ -3229,422 +2716,217 @@ function requireIsPossiblePrototype () {
3229
2716
 
3230
2717
  isPossiblePrototype = function (argument) {
3231
2718
  return isObject(argument) || argument === null;
3232
- };
3233
- return isPossiblePrototype;
3234
- }
3235
-
3236
- var aPossiblePrototype;
3237
- var hasRequiredAPossiblePrototype;
3238
-
3239
- function requireAPossiblePrototype () {
3240
- if (hasRequiredAPossiblePrototype) return aPossiblePrototype;
3241
- hasRequiredAPossiblePrototype = 1;
3242
- var isPossiblePrototype = requireIsPossiblePrototype();
3243
-
3244
- var $String = String;
3245
- var $TypeError = TypeError;
3246
-
3247
- aPossiblePrototype = function (argument) {
3248
- if (isPossiblePrototype(argument)) return argument;
3249
- throw new $TypeError("Can't set " + $String(argument) + ' as a prototype');
3250
- };
3251
- return aPossiblePrototype;
3252
- }
3253
-
3254
- var objectSetPrototypeOf;
3255
- var hasRequiredObjectSetPrototypeOf;
3256
-
3257
- function requireObjectSetPrototypeOf () {
3258
- if (hasRequiredObjectSetPrototypeOf) return objectSetPrototypeOf;
3259
- hasRequiredObjectSetPrototypeOf = 1;
3260
- /* eslint-disable no-proto -- safe */
3261
- var uncurryThisAccessor = requireFunctionUncurryThisAccessor();
3262
- var isObject = requireIsObject();
3263
- var requireObjectCoercible = requireRequireObjectCoercible();
3264
- var aPossiblePrototype = requireAPossiblePrototype();
3265
-
3266
- // `Object.setPrototypeOf` method
3267
- // https://tc39.es/ecma262/#sec-object.setprototypeof
3268
- // Works with __proto__ only. Old v8 can't work with null proto objects.
3269
- // eslint-disable-next-line es/no-object-setprototypeof -- safe
3270
- objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
3271
- var CORRECT_SETTER = false;
3272
- var test = {};
3273
- var setter;
3274
- try {
3275
- setter = uncurryThisAccessor(Object.prototype, '__proto__', 'set');
3276
- setter(test, []);
3277
- CORRECT_SETTER = test instanceof Array;
3278
- } catch (error) { /* empty */ }
3279
- return function setPrototypeOf(O, proto) {
3280
- requireObjectCoercible(O);
3281
- aPossiblePrototype(proto);
3282
- if (!isObject(O)) return O;
3283
- if (CORRECT_SETTER) setter(O, proto);
3284
- else O.__proto__ = proto;
3285
- return O;
3286
- };
3287
- }() : undefined);
3288
- return objectSetPrototypeOf;
3289
- }
3290
-
3291
- var arrayBufferViewCore;
3292
- var hasRequiredArrayBufferViewCore;
3293
-
3294
- function requireArrayBufferViewCore () {
3295
- if (hasRequiredArrayBufferViewCore) return arrayBufferViewCore;
3296
- hasRequiredArrayBufferViewCore = 1;
3297
- var NATIVE_ARRAY_BUFFER = requireArrayBufferBasicDetection();
3298
- var DESCRIPTORS = requireDescriptors();
3299
- var globalThis = requireGlobalThis();
3300
- var isCallable = requireIsCallable();
3301
- var isObject = requireIsObject();
3302
- var hasOwn = requireHasOwnProperty();
3303
- var classof = requireClassof();
3304
- var tryToString = requireTryToString();
3305
- var createNonEnumerableProperty = requireCreateNonEnumerableProperty();
3306
- var defineBuiltIn = requireDefineBuiltIn();
3307
- var defineBuiltInAccessor = requireDefineBuiltInAccessor();
3308
- var isPrototypeOf = requireObjectIsPrototypeOf();
3309
- var getPrototypeOf = requireObjectGetPrototypeOf();
3310
- var setPrototypeOf = requireObjectSetPrototypeOf();
3311
- var wellKnownSymbol = requireWellKnownSymbol();
3312
- var uid = requireUid();
3313
- var InternalStateModule = requireInternalState();
3314
-
3315
- var enforceInternalState = InternalStateModule.enforce;
3316
- var getInternalState = InternalStateModule.get;
3317
- var Int8Array = globalThis.Int8Array;
3318
- var Int8ArrayPrototype = Int8Array && Int8Array.prototype;
3319
- var Uint8ClampedArray = globalThis.Uint8ClampedArray;
3320
- var Uint8ClampedArrayPrototype = Uint8ClampedArray && Uint8ClampedArray.prototype;
3321
- var TypedArray = Int8Array && getPrototypeOf(Int8Array);
3322
- var TypedArrayPrototype = Int8ArrayPrototype && getPrototypeOf(Int8ArrayPrototype);
3323
- var ObjectPrototype = Object.prototype;
3324
- var TypeError = globalThis.TypeError;
3325
-
3326
- var TO_STRING_TAG = wellKnownSymbol('toStringTag');
3327
- var TYPED_ARRAY_TAG = uid('TYPED_ARRAY_TAG');
3328
- var TYPED_ARRAY_CONSTRUCTOR = 'TypedArrayConstructor';
3329
- // Fixing native typed arrays in Opera Presto crashes the browser, see #595
3330
- var NATIVE_ARRAY_BUFFER_VIEWS = NATIVE_ARRAY_BUFFER && !!setPrototypeOf && classof(globalThis.opera) !== 'Opera';
3331
- var TYPED_ARRAY_TAG_REQUIRED = false;
3332
- var NAME, Constructor, Prototype;
3333
-
3334
- var TypedArrayConstructorsList = {
3335
- Int8Array: 1,
3336
- Uint8Array: 1,
3337
- Uint8ClampedArray: 1,
3338
- Int16Array: 2,
3339
- Uint16Array: 2,
3340
- Int32Array: 4,
3341
- Uint32Array: 4,
3342
- Float32Array: 4,
3343
- Float64Array: 8
3344
- };
3345
-
3346
- var BigIntArrayConstructorsList = {
3347
- BigInt64Array: 8,
3348
- BigUint64Array: 8
3349
- };
3350
-
3351
- var isView = function isView(it) {
3352
- if (!isObject(it)) return false;
3353
- var klass = classof(it);
3354
- return klass === 'DataView'
3355
- || hasOwn(TypedArrayConstructorsList, klass)
3356
- || hasOwn(BigIntArrayConstructorsList, klass);
3357
- };
3358
-
3359
- var getTypedArrayConstructor = function (it) {
3360
- var proto = getPrototypeOf(it);
3361
- if (!isObject(proto)) return;
3362
- var state = getInternalState(proto);
3363
- return (state && hasOwn(state, TYPED_ARRAY_CONSTRUCTOR)) ? state[TYPED_ARRAY_CONSTRUCTOR] : getTypedArrayConstructor(proto);
3364
- };
3365
-
3366
- var isTypedArray = function (it) {
3367
- if (!isObject(it)) return false;
3368
- var klass = classof(it);
3369
- return hasOwn(TypedArrayConstructorsList, klass)
3370
- || hasOwn(BigIntArrayConstructorsList, klass);
3371
- };
3372
-
3373
- var aTypedArray = function (it) {
3374
- if (isTypedArray(it)) return it;
3375
- throw new TypeError('Target is not a typed array');
3376
- };
3377
-
3378
- var aTypedArrayConstructor = function (C) {
3379
- if (isCallable(C) && (!setPrototypeOf || isPrototypeOf(TypedArray, C))) return C;
3380
- throw new TypeError(tryToString(C) + ' is not a typed array constructor');
3381
- };
3382
-
3383
- var exportTypedArrayMethod = function (KEY, property, forced, options) {
3384
- if (!DESCRIPTORS) return;
3385
- if (forced) for (var ARRAY in TypedArrayConstructorsList) {
3386
- var TypedArrayConstructor = globalThis[ARRAY];
3387
- if (TypedArrayConstructor && hasOwn(TypedArrayConstructor.prototype, KEY)) try {
3388
- delete TypedArrayConstructor.prototype[KEY];
3389
- } catch (error) {
3390
- // old WebKit bug - some methods are non-configurable
3391
- try {
3392
- TypedArrayConstructor.prototype[KEY] = property;
3393
- } catch (error2) { /* empty */ }
3394
- }
3395
- }
3396
- if (!TypedArrayPrototype[KEY] || forced) {
3397
- defineBuiltIn(TypedArrayPrototype, KEY, forced ? property
3398
- : NATIVE_ARRAY_BUFFER_VIEWS && Int8ArrayPrototype[KEY] || property, options);
3399
- }
3400
- };
3401
-
3402
- var exportTypedArrayStaticMethod = function (KEY, property, forced) {
3403
- var ARRAY, TypedArrayConstructor;
3404
- if (!DESCRIPTORS) return;
3405
- if (setPrototypeOf) {
3406
- if (forced) for (ARRAY in TypedArrayConstructorsList) {
3407
- TypedArrayConstructor = globalThis[ARRAY];
3408
- if (TypedArrayConstructor && hasOwn(TypedArrayConstructor, KEY)) try {
3409
- delete TypedArrayConstructor[KEY];
3410
- } catch (error) { /* empty */ }
3411
- }
3412
- if (!TypedArray[KEY] || forced) {
3413
- // V8 ~ Chrome 49-50 `%TypedArray%` methods are non-writable non-configurable
3414
- try {
3415
- return defineBuiltIn(TypedArray, KEY, forced ? property : NATIVE_ARRAY_BUFFER_VIEWS && TypedArray[KEY] || property);
3416
- } catch (error) { /* empty */ }
3417
- } else return;
3418
- }
3419
- for (ARRAY in TypedArrayConstructorsList) {
3420
- TypedArrayConstructor = globalThis[ARRAY];
3421
- if (TypedArrayConstructor && (!TypedArrayConstructor[KEY] || forced)) {
3422
- defineBuiltIn(TypedArrayConstructor, KEY, property);
3423
- }
3424
- }
3425
- };
3426
-
3427
- for (NAME in TypedArrayConstructorsList) {
3428
- Constructor = globalThis[NAME];
3429
- Prototype = Constructor && Constructor.prototype;
3430
- if (Prototype) enforceInternalState(Prototype)[TYPED_ARRAY_CONSTRUCTOR] = Constructor;
3431
- else NATIVE_ARRAY_BUFFER_VIEWS = false;
3432
- }
3433
-
3434
- for (NAME in BigIntArrayConstructorsList) {
3435
- Constructor = globalThis[NAME];
3436
- Prototype = Constructor && Constructor.prototype;
3437
- if (Prototype) enforceInternalState(Prototype)[TYPED_ARRAY_CONSTRUCTOR] = Constructor;
3438
- }
3439
-
3440
- // WebKit bug - typed arrays constructors prototype is Object.prototype
3441
- if (!NATIVE_ARRAY_BUFFER_VIEWS || !isCallable(TypedArray) || TypedArray === Function.prototype) {
3442
- // eslint-disable-next-line no-shadow -- safe
3443
- TypedArray = function TypedArray() {
3444
- throw new TypeError('Incorrect invocation');
3445
- };
3446
- if (NATIVE_ARRAY_BUFFER_VIEWS) for (NAME in TypedArrayConstructorsList) {
3447
- if (globalThis[NAME]) setPrototypeOf(globalThis[NAME], TypedArray);
3448
- }
3449
- }
3450
-
3451
- if (!NATIVE_ARRAY_BUFFER_VIEWS || !TypedArrayPrototype || TypedArrayPrototype === ObjectPrototype) {
3452
- TypedArrayPrototype = TypedArray.prototype;
3453
- if (NATIVE_ARRAY_BUFFER_VIEWS) for (NAME in TypedArrayConstructorsList) {
3454
- if (globalThis[NAME]) setPrototypeOf(globalThis[NAME].prototype, TypedArrayPrototype);
3455
- }
3456
- }
3457
-
3458
- // WebKit bug - one more object in Uint8ClampedArray prototype chain
3459
- if (NATIVE_ARRAY_BUFFER_VIEWS && getPrototypeOf(Uint8ClampedArrayPrototype) !== TypedArrayPrototype) {
3460
- setPrototypeOf(Uint8ClampedArrayPrototype, TypedArrayPrototype);
3461
- }
3462
-
3463
- if (DESCRIPTORS && !hasOwn(TypedArrayPrototype, TO_STRING_TAG)) {
3464
- TYPED_ARRAY_TAG_REQUIRED = true;
3465
- defineBuiltInAccessor(TypedArrayPrototype, TO_STRING_TAG, {
3466
- configurable: true,
3467
- get: function () {
3468
- return isObject(this) ? this[TYPED_ARRAY_TAG] : undefined;
3469
- }
3470
- });
3471
- for (NAME in TypedArrayConstructorsList) if (globalThis[NAME]) {
3472
- createNonEnumerableProperty(globalThis[NAME], TYPED_ARRAY_TAG, NAME);
3473
- }
3474
- }
3475
-
3476
- arrayBufferViewCore = {
3477
- NATIVE_ARRAY_BUFFER_VIEWS: NATIVE_ARRAY_BUFFER_VIEWS,
3478
- TYPED_ARRAY_TAG: TYPED_ARRAY_TAG_REQUIRED && TYPED_ARRAY_TAG,
3479
- aTypedArray: aTypedArray,
3480
- aTypedArrayConstructor: aTypedArrayConstructor,
3481
- exportTypedArrayMethod: exportTypedArrayMethod,
3482
- exportTypedArrayStaticMethod: exportTypedArrayStaticMethod,
3483
- getTypedArrayConstructor: getTypedArrayConstructor,
3484
- isView: isView,
3485
- isTypedArray: isTypedArray,
3486
- TypedArray: TypedArray,
3487
- TypedArrayPrototype: TypedArrayPrototype
3488
- };
3489
- return arrayBufferViewCore;
3490
- }
3491
-
3492
- var hasRequiredEs_typedArray_toReversed;
3493
-
3494
- function requireEs_typedArray_toReversed () {
3495
- if (hasRequiredEs_typedArray_toReversed) return es_typedArray_toReversed;
3496
- hasRequiredEs_typedArray_toReversed = 1;
3497
- var arrayToReversed = requireArrayToReversed();
3498
- var ArrayBufferViewCore = requireArrayBufferViewCore();
3499
-
3500
- var aTypedArray = ArrayBufferViewCore.aTypedArray;
3501
- var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
3502
- var getTypedArrayConstructor = ArrayBufferViewCore.getTypedArrayConstructor;
3503
-
3504
- // `%TypedArray%.prototype.toReversed` method
3505
- // https://tc39.es/ecma262/#sec-%typedarray%.prototype.toreversed
3506
- exportTypedArrayMethod('toReversed', function toReversed() {
3507
- return arrayToReversed(aTypedArray(this), getTypedArrayConstructor(this));
3508
- });
3509
- return es_typedArray_toReversed;
2719
+ };
2720
+ return isPossiblePrototype;
3510
2721
  }
3511
2722
 
3512
- requireEs_typedArray_toReversed();
3513
-
3514
- var es_typedArray_toSorted = {};
2723
+ var aPossiblePrototype;
2724
+ var hasRequiredAPossiblePrototype;
3515
2725
 
3516
- var hasRequiredEs_typedArray_toSorted;
2726
+ function requireAPossiblePrototype () {
2727
+ if (hasRequiredAPossiblePrototype) return aPossiblePrototype;
2728
+ hasRequiredAPossiblePrototype = 1;
2729
+ var isPossiblePrototype = requireIsPossiblePrototype();
3517
2730
 
3518
- function requireEs_typedArray_toSorted () {
3519
- if (hasRequiredEs_typedArray_toSorted) return es_typedArray_toSorted;
3520
- hasRequiredEs_typedArray_toSorted = 1;
3521
- var ArrayBufferViewCore = requireArrayBufferViewCore();
3522
- var uncurryThis = requireFunctionUncurryThis();
3523
- var aCallable = requireACallable();
3524
- var arrayFromConstructorAndList = requireArrayFromConstructorAndList();
2731
+ var $String = String;
2732
+ var $TypeError = TypeError;
3525
2733
 
3526
- var aTypedArray = ArrayBufferViewCore.aTypedArray;
3527
- var getTypedArrayConstructor = ArrayBufferViewCore.getTypedArrayConstructor;
3528
- var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
3529
- var sort = uncurryThis(ArrayBufferViewCore.TypedArrayPrototype.sort);
3530
-
3531
- // `%TypedArray%.prototype.toSorted` method
3532
- // https://tc39.es/ecma262/#sec-%typedarray%.prototype.tosorted
3533
- exportTypedArrayMethod('toSorted', function toSorted(compareFn) {
3534
- if (compareFn !== undefined) aCallable(compareFn);
3535
- var O = aTypedArray(this);
3536
- var A = arrayFromConstructorAndList(getTypedArrayConstructor(O), O);
3537
- return sort(A, compareFn);
3538
- });
3539
- return es_typedArray_toSorted;
2734
+ aPossiblePrototype = function (argument) {
2735
+ if (isPossiblePrototype(argument)) return argument;
2736
+ throw new $TypeError("Can't set " + $String(argument) + ' as a prototype');
2737
+ };
2738
+ return aPossiblePrototype;
3540
2739
  }
3541
2740
 
3542
- requireEs_typedArray_toSorted();
2741
+ var objectSetPrototypeOf;
2742
+ var hasRequiredObjectSetPrototypeOf;
2743
+
2744
+ function requireObjectSetPrototypeOf () {
2745
+ if (hasRequiredObjectSetPrototypeOf) return objectSetPrototypeOf;
2746
+ hasRequiredObjectSetPrototypeOf = 1;
2747
+ /* eslint-disable no-proto -- safe */
2748
+ var uncurryThisAccessor = requireFunctionUncurryThisAccessor();
2749
+ var isObject = requireIsObject();
2750
+ var requireObjectCoercible = requireRequireObjectCoercible();
2751
+ var aPossiblePrototype = requireAPossiblePrototype();
3543
2752
 
3544
- var es_typedArray_with = {};
2753
+ // `Object.setPrototypeOf` method
2754
+ // https://tc39.es/ecma262/#sec-object.setprototypeof
2755
+ // Works with __proto__ only. Old v8 can't work with null proto objects.
2756
+ // eslint-disable-next-line es/no-object-setprototypeof -- safe
2757
+ objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
2758
+ var CORRECT_SETTER = false;
2759
+ var test = {};
2760
+ var setter;
2761
+ try {
2762
+ setter = uncurryThisAccessor(Object.prototype, '__proto__', 'set');
2763
+ setter(test, []);
2764
+ CORRECT_SETTER = test instanceof Array;
2765
+ } catch (error) { /* empty */ }
2766
+ return function setPrototypeOf(O, proto) {
2767
+ requireObjectCoercible(O);
2768
+ aPossiblePrototype(proto);
2769
+ if (!isObject(O)) return O;
2770
+ if (CORRECT_SETTER) setter(O, proto);
2771
+ else O.__proto__ = proto;
2772
+ return O;
2773
+ };
2774
+ }() : undefined);
2775
+ return objectSetPrototypeOf;
2776
+ }
3545
2777
 
3546
- var arrayWith;
3547
- var hasRequiredArrayWith;
2778
+ var objectDefineProperties = {};
3548
2779
 
3549
- function requireArrayWith () {
3550
- if (hasRequiredArrayWith) return arrayWith;
3551
- hasRequiredArrayWith = 1;
3552
- var lengthOfArrayLike = requireLengthOfArrayLike();
3553
- var toIntegerOrInfinity = requireToIntegerOrInfinity();
2780
+ var objectKeys;
2781
+ var hasRequiredObjectKeys;
3554
2782
 
3555
- var $RangeError = RangeError;
2783
+ function requireObjectKeys () {
2784
+ if (hasRequiredObjectKeys) return objectKeys;
2785
+ hasRequiredObjectKeys = 1;
2786
+ var internalObjectKeys = requireObjectKeysInternal();
2787
+ var enumBugKeys = requireEnumBugKeys();
3556
2788
 
3557
- // https://tc39.es/proposal-change-array-by-copy/#sec-array.prototype.with
3558
- // https://tc39.es/proposal-change-array-by-copy/#sec-%typedarray%.prototype.with
3559
- arrayWith = function (O, C, index, value) {
3560
- var len = lengthOfArrayLike(O);
3561
- var relativeIndex = toIntegerOrInfinity(index);
3562
- var actualIndex = relativeIndex < 0 ? len + relativeIndex : relativeIndex;
3563
- if (actualIndex >= len || actualIndex < 0) throw new $RangeError('Incorrect index');
3564
- var A = new C(len);
3565
- var k = 0;
3566
- for (; k < len; k++) A[k] = k === actualIndex ? value : O[k];
3567
- return A;
2789
+ // `Object.keys` method
2790
+ // https://tc39.es/ecma262/#sec-object.keys
2791
+ // eslint-disable-next-line es/no-object-keys -- safe
2792
+ objectKeys = Object.keys || function keys(O) {
2793
+ return internalObjectKeys(O, enumBugKeys);
3568
2794
  };
3569
- return arrayWith;
2795
+ return objectKeys;
3570
2796
  }
3571
2797
 
3572
- var isBigIntArray;
3573
- var hasRequiredIsBigIntArray;
2798
+ var hasRequiredObjectDefineProperties;
3574
2799
 
3575
- function requireIsBigIntArray () {
3576
- if (hasRequiredIsBigIntArray) return isBigIntArray;
3577
- hasRequiredIsBigIntArray = 1;
3578
- var classof = requireClassof();
2800
+ function requireObjectDefineProperties () {
2801
+ if (hasRequiredObjectDefineProperties) return objectDefineProperties;
2802
+ hasRequiredObjectDefineProperties = 1;
2803
+ var DESCRIPTORS = requireDescriptors();
2804
+ var V8_PROTOTYPE_DEFINE_BUG = requireV8PrototypeDefineBug();
2805
+ var definePropertyModule = requireObjectDefineProperty();
2806
+ var anObject = requireAnObject();
2807
+ var toIndexedObject = requireToIndexedObject();
2808
+ var objectKeys = requireObjectKeys();
3579
2809
 
3580
- isBigIntArray = function (it) {
3581
- var klass = classof(it);
3582
- return klass === 'BigInt64Array' || klass === 'BigUint64Array';
2810
+ // `Object.defineProperties` method
2811
+ // https://tc39.es/ecma262/#sec-object.defineproperties
2812
+ // eslint-disable-next-line es/no-object-defineproperties -- safe
2813
+ objectDefineProperties.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
2814
+ anObject(O);
2815
+ var props = toIndexedObject(Properties);
2816
+ var keys = objectKeys(Properties);
2817
+ var length = keys.length;
2818
+ var index = 0;
2819
+ var key;
2820
+ while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
2821
+ return O;
3583
2822
  };
3584
- return isBigIntArray;
2823
+ return objectDefineProperties;
3585
2824
  }
3586
2825
 
3587
- var toBigInt;
3588
- var hasRequiredToBigInt;
3589
-
3590
- function requireToBigInt () {
3591
- if (hasRequiredToBigInt) return toBigInt;
3592
- hasRequiredToBigInt = 1;
3593
- var toPrimitive = requireToPrimitive();
2826
+ var html;
2827
+ var hasRequiredHtml;
3594
2828
 
3595
- var $TypeError = TypeError;
2829
+ function requireHtml () {
2830
+ if (hasRequiredHtml) return html;
2831
+ hasRequiredHtml = 1;
2832
+ var getBuiltIn = requireGetBuiltIn();
3596
2833
 
3597
- // `ToBigInt` abstract operation
3598
- // https://tc39.es/ecma262/#sec-tobigint
3599
- toBigInt = function (argument) {
3600
- var prim = toPrimitive(argument, 'number');
3601
- if (typeof prim == 'number') throw new $TypeError("Can't convert number to bigint");
3602
- // eslint-disable-next-line es/no-bigint -- safe
3603
- return BigInt(prim);
3604
- };
3605
- return toBigInt;
2834
+ html = getBuiltIn('document', 'documentElement');
2835
+ return html;
3606
2836
  }
3607
2837
 
3608
- var hasRequiredEs_typedArray_with;
2838
+ var objectCreate;
2839
+ var hasRequiredObjectCreate;
3609
2840
 
3610
- function requireEs_typedArray_with () {
3611
- if (hasRequiredEs_typedArray_with) return es_typedArray_with;
3612
- hasRequiredEs_typedArray_with = 1;
3613
- var arrayWith = requireArrayWith();
3614
- var ArrayBufferViewCore = requireArrayBufferViewCore();
3615
- var isBigIntArray = requireIsBigIntArray();
3616
- var toIntegerOrInfinity = requireToIntegerOrInfinity();
3617
- var toBigInt = requireToBigInt();
2841
+ function requireObjectCreate () {
2842
+ if (hasRequiredObjectCreate) return objectCreate;
2843
+ hasRequiredObjectCreate = 1;
2844
+ /* global ActiveXObject -- old IE, WSH */
2845
+ var anObject = requireAnObject();
2846
+ var definePropertiesModule = requireObjectDefineProperties();
2847
+ var enumBugKeys = requireEnumBugKeys();
2848
+ var hiddenKeys = requireHiddenKeys();
2849
+ var html = requireHtml();
2850
+ var documentCreateElement = requireDocumentCreateElement();
2851
+ var sharedKey = requireSharedKey();
3618
2852
 
3619
- var aTypedArray = ArrayBufferViewCore.aTypedArray;
3620
- var getTypedArrayConstructor = ArrayBufferViewCore.getTypedArrayConstructor;
3621
- var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
2853
+ var GT = '>';
2854
+ var LT = '<';
2855
+ var PROTOTYPE = 'prototype';
2856
+ var SCRIPT = 'script';
2857
+ var IE_PROTO = sharedKey('IE_PROTO');
3622
2858
 
3623
- var PROPER_ORDER = !!function () {
3624
- try {
3625
- // eslint-disable-next-line no-throw-literal, es/no-typed-arrays, es/no-array-prototype-with -- required for testing
3626
- new Int8Array(1)['with'](2, { valueOf: function () { throw 8; } });
3627
- } catch (error) {
3628
- // some early implementations, like WebKit, does not follow the final semantic
3629
- // https://github.com/tc39/proposal-change-array-by-copy/pull/86
3630
- return error === 8;
3631
- }
3632
- }();
2859
+ var EmptyConstructor = function () { /* empty */ };
3633
2860
 
3634
- // `%TypedArray%.prototype.with` method
3635
- // https://tc39.es/ecma262/#sec-%typedarray%.prototype.with
3636
- exportTypedArrayMethod('with', { 'with': function (index, value) {
3637
- var O = aTypedArray(this);
3638
- var relativeIndex = toIntegerOrInfinity(index);
3639
- var actualValue = isBigIntArray(O) ? toBigInt(value) : +value;
3640
- return arrayWith(O, getTypedArrayConstructor(O), relativeIndex, actualValue);
3641
- } }['with'], !PROPER_ORDER);
3642
- return es_typedArray_with;
3643
- }
2861
+ var scriptTag = function (content) {
2862
+ return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
2863
+ };
3644
2864
 
3645
- requireEs_typedArray_with();
2865
+ // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
2866
+ var NullProtoObjectViaActiveX = function (activeXDocument) {
2867
+ activeXDocument.write(scriptTag(''));
2868
+ activeXDocument.close();
2869
+ var temp = activeXDocument.parentWindow.Object;
2870
+ // eslint-disable-next-line no-useless-assignment -- avoid memory leak
2871
+ activeXDocument = null;
2872
+ return temp;
2873
+ };
3646
2874
 
3647
- var esnext_suppressedError_constructor = {};
2875
+ // Create object with fake `null` prototype: use iframe Object with cleared prototype
2876
+ var NullProtoObjectViaIFrame = function () {
2877
+ // Thrash, waste and sodomy: IE GC bug
2878
+ var iframe = documentCreateElement('iframe');
2879
+ var JS = 'java' + SCRIPT + ':';
2880
+ var iframeDocument;
2881
+ iframe.style.display = 'none';
2882
+ html.appendChild(iframe);
2883
+ // https://github.com/zloirock/core-js/issues/475
2884
+ iframe.src = String(JS);
2885
+ iframeDocument = iframe.contentWindow.document;
2886
+ iframeDocument.open();
2887
+ iframeDocument.write(scriptTag('document.F=Object'));
2888
+ iframeDocument.close();
2889
+ return iframeDocument.F;
2890
+ };
2891
+
2892
+ // Check for document.domain and active x support
2893
+ // No need to use active x approach when document.domain is not set
2894
+ // see https://github.com/es-shims/es5-shim/issues/150
2895
+ // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
2896
+ // avoid IE GC bug
2897
+ var activeXDocument;
2898
+ var NullProtoObject = function () {
2899
+ try {
2900
+ activeXDocument = new ActiveXObject('htmlfile');
2901
+ } catch (error) { /* ignore */ }
2902
+ NullProtoObject = typeof document != 'undefined'
2903
+ ? document.domain && activeXDocument
2904
+ ? NullProtoObjectViaActiveX(activeXDocument) // old IE
2905
+ : NullProtoObjectViaIFrame()
2906
+ : NullProtoObjectViaActiveX(activeXDocument); // WSH
2907
+ var length = enumBugKeys.length;
2908
+ while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
2909
+ return NullProtoObject();
2910
+ };
2911
+
2912
+ hiddenKeys[IE_PROTO] = true;
2913
+
2914
+ // `Object.create` method
2915
+ // https://tc39.es/ecma262/#sec-object.create
2916
+ // eslint-disable-next-line es/no-object-create -- safe
2917
+ objectCreate = Object.create || function create(O, Properties) {
2918
+ var result;
2919
+ if (O !== null) {
2920
+ EmptyConstructor[PROTOTYPE] = anObject(O);
2921
+ result = new EmptyConstructor();
2922
+ EmptyConstructor[PROTOTYPE] = null;
2923
+ // add "__proto__" for Object.getPrototypeOf polyfill
2924
+ result[IE_PROTO] = O;
2925
+ } else result = NullProtoObject();
2926
+ return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
2927
+ };
2928
+ return objectCreate;
2929
+ }
3648
2930
 
3649
2931
  var errorStackClear;
3650
2932
  var hasRequiredErrorStackClear;
@@ -3708,7 +2990,62 @@ function requireErrorStackInstall () {
3708
2990
  else createNonEnumerableProperty(error, 'stack', clearErrorStack(stack, dropEntries));
3709
2991
  }
3710
2992
  };
3711
- return errorStackInstall;
2993
+ return errorStackInstall;
2994
+ }
2995
+
2996
+ var toStringTagSupport;
2997
+ var hasRequiredToStringTagSupport;
2998
+
2999
+ function requireToStringTagSupport () {
3000
+ if (hasRequiredToStringTagSupport) return toStringTagSupport;
3001
+ hasRequiredToStringTagSupport = 1;
3002
+ var wellKnownSymbol = requireWellKnownSymbol();
3003
+
3004
+ var TO_STRING_TAG = wellKnownSymbol('toStringTag');
3005
+ var test = {};
3006
+
3007
+ test[TO_STRING_TAG] = 'z';
3008
+
3009
+ toStringTagSupport = String(test) === '[object z]';
3010
+ return toStringTagSupport;
3011
+ }
3012
+
3013
+ var classof;
3014
+ var hasRequiredClassof;
3015
+
3016
+ function requireClassof () {
3017
+ if (hasRequiredClassof) return classof;
3018
+ hasRequiredClassof = 1;
3019
+ var TO_STRING_TAG_SUPPORT = requireToStringTagSupport();
3020
+ var isCallable = requireIsCallable();
3021
+ var classofRaw = requireClassofRaw();
3022
+ var wellKnownSymbol = requireWellKnownSymbol();
3023
+
3024
+ var TO_STRING_TAG = wellKnownSymbol('toStringTag');
3025
+ var $Object = Object;
3026
+
3027
+ // ES3 wrong here
3028
+ var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) === 'Arguments';
3029
+
3030
+ // fallback for IE11 Script Access Denied error
3031
+ var tryGet = function (it, key) {
3032
+ try {
3033
+ return it[key];
3034
+ } catch (error) { /* empty */ }
3035
+ };
3036
+
3037
+ // getting tag from ES6+ `Object.prototype.toString`
3038
+ classof = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
3039
+ var O, tag, result;
3040
+ return it === undefined ? 'Undefined' : it === null ? 'Null'
3041
+ // @@toStringTag case
3042
+ : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
3043
+ // builtinTag case
3044
+ : CORRECT_ARGUMENTS ? classofRaw(O)
3045
+ // ES3 arguments fallback
3046
+ : (result = classofRaw(O)) === 'Object' && isCallable(O.callee) ? 'Arguments' : result;
3047
+ };
3048
+ return classof;
3712
3049
  }
3713
3050
 
3714
3051
  var toString;
@@ -3839,6 +3176,24 @@ function requireFunctionBindContext () {
3839
3176
  return functionBindContext;
3840
3177
  }
3841
3178
 
3179
+ var arrayFromConstructorAndList;
3180
+ var hasRequiredArrayFromConstructorAndList;
3181
+
3182
+ function requireArrayFromConstructorAndList () {
3183
+ if (hasRequiredArrayFromConstructorAndList) return arrayFromConstructorAndList;
3184
+ hasRequiredArrayFromConstructorAndList = 1;
3185
+ var lengthOfArrayLike = requireLengthOfArrayLike();
3186
+
3187
+ arrayFromConstructorAndList = function (Constructor, list, $length) {
3188
+ var index = 0;
3189
+ var length = arguments.length > 2 ? $length : lengthOfArrayLike(list);
3190
+ var result = new Constructor(length);
3191
+ while (length > index) result[index] = list[index++];
3192
+ return result;
3193
+ };
3194
+ return arrayFromConstructorAndList;
3195
+ }
3196
+
3842
3197
  var arrayGroup;
3843
3198
  var hasRequiredArrayGroup;
3844
3199
 
@@ -3884,6 +3239,35 @@ function requireArrayGroup () {
3884
3239
  return arrayGroup;
3885
3240
  }
3886
3241
 
3242
+ var addToUnscopables;
3243
+ var hasRequiredAddToUnscopables;
3244
+
3245
+ function requireAddToUnscopables () {
3246
+ if (hasRequiredAddToUnscopables) return addToUnscopables;
3247
+ hasRequiredAddToUnscopables = 1;
3248
+ var wellKnownSymbol = requireWellKnownSymbol();
3249
+ var create = requireObjectCreate();
3250
+ var defineProperty = requireObjectDefineProperty().f;
3251
+
3252
+ var UNSCOPABLES = wellKnownSymbol('unscopables');
3253
+ var ArrayPrototype = Array.prototype;
3254
+
3255
+ // Array.prototype[@@unscopables]
3256
+ // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
3257
+ if (ArrayPrototype[UNSCOPABLES] === undefined) {
3258
+ defineProperty(ArrayPrototype, UNSCOPABLES, {
3259
+ configurable: true,
3260
+ value: create(null)
3261
+ });
3262
+ }
3263
+
3264
+ // add a key to Array.prototype[@@unscopables]
3265
+ addToUnscopables = function (key) {
3266
+ ArrayPrototype[UNSCOPABLES][key] = true;
3267
+ };
3268
+ return addToUnscopables;
3269
+ }
3270
+
3887
3271
  var hasRequiredEsnext_array_group;
3888
3272
 
3889
3273
  function requireEsnext_array_group () {
@@ -5983,3 +5367,679 @@ function requireWeb_urlSearchParams_size () {
5983
5367
  }
5984
5368
 
5985
5369
  requireWeb_urlSearchParams_size();
5370
+
5371
+ var web_structuredClone = {};
5372
+
5373
+ var isConstructor;
5374
+ var hasRequiredIsConstructor;
5375
+
5376
+ function requireIsConstructor () {
5377
+ if (hasRequiredIsConstructor) return isConstructor;
5378
+ hasRequiredIsConstructor = 1;
5379
+ var uncurryThis = requireFunctionUncurryThis();
5380
+ var fails = requireFails();
5381
+ var isCallable = requireIsCallable();
5382
+ var classof = requireClassof();
5383
+ var getBuiltIn = requireGetBuiltIn();
5384
+ var inspectSource = requireInspectSource();
5385
+
5386
+ var noop = function () { /* empty */ };
5387
+ var construct = getBuiltIn('Reflect', 'construct');
5388
+ var constructorRegExp = /^\s*(?:class|function)\b/;
5389
+ var exec = uncurryThis(constructorRegExp.exec);
5390
+ var INCORRECT_TO_STRING = !constructorRegExp.test(noop);
5391
+
5392
+ var isConstructorModern = function isConstructor(argument) {
5393
+ if (!isCallable(argument)) return false;
5394
+ try {
5395
+ construct(noop, [], argument);
5396
+ return true;
5397
+ } catch (error) {
5398
+ return false;
5399
+ }
5400
+ };
5401
+
5402
+ var isConstructorLegacy = function isConstructor(argument) {
5403
+ if (!isCallable(argument)) return false;
5404
+ switch (classof(argument)) {
5405
+ case 'AsyncFunction':
5406
+ case 'GeneratorFunction':
5407
+ case 'AsyncGeneratorFunction': return false;
5408
+ }
5409
+ try {
5410
+ // we can't check .prototype since constructors produced by .bind haven't it
5411
+ // `Function#toString` throws on some built-it function in some legacy engines
5412
+ // (for example, `DOMQuad` and similar in FF41-)
5413
+ return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));
5414
+ } catch (error) {
5415
+ return true;
5416
+ }
5417
+ };
5418
+
5419
+ isConstructorLegacy.sham = true;
5420
+
5421
+ // `IsConstructor` abstract operation
5422
+ // https://tc39.es/ecma262/#sec-isconstructor
5423
+ isConstructor = !construct || fails(function () {
5424
+ var called;
5425
+ return isConstructorModern(isConstructorModern.call)
5426
+ || !isConstructorModern(Object)
5427
+ || !isConstructorModern(function () { called = true; })
5428
+ || called;
5429
+ }) ? isConstructorLegacy : isConstructorModern;
5430
+ return isConstructor;
5431
+ }
5432
+
5433
+ var regexpFlags;
5434
+ var hasRequiredRegexpFlags;
5435
+
5436
+ function requireRegexpFlags () {
5437
+ if (hasRequiredRegexpFlags) return regexpFlags;
5438
+ hasRequiredRegexpFlags = 1;
5439
+ var anObject = requireAnObject();
5440
+
5441
+ // `RegExp.prototype.flags` getter implementation
5442
+ // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
5443
+ regexpFlags = function () {
5444
+ var that = anObject(this);
5445
+ var result = '';
5446
+ if (that.hasIndices) result += 'd';
5447
+ if (that.global) result += 'g';
5448
+ if (that.ignoreCase) result += 'i';
5449
+ if (that.multiline) result += 'm';
5450
+ if (that.dotAll) result += 's';
5451
+ if (that.unicode) result += 'u';
5452
+ if (that.unicodeSets) result += 'v';
5453
+ if (that.sticky) result += 'y';
5454
+ return result;
5455
+ };
5456
+ return regexpFlags;
5457
+ }
5458
+
5459
+ var regexpGetFlags;
5460
+ var hasRequiredRegexpGetFlags;
5461
+
5462
+ function requireRegexpGetFlags () {
5463
+ if (hasRequiredRegexpGetFlags) return regexpGetFlags;
5464
+ hasRequiredRegexpGetFlags = 1;
5465
+ var call = requireFunctionCall();
5466
+ var hasOwn = requireHasOwnProperty();
5467
+ var isPrototypeOf = requireObjectIsPrototypeOf();
5468
+ var regExpFlags = requireRegexpFlags();
5469
+
5470
+ var RegExpPrototype = RegExp.prototype;
5471
+
5472
+ regexpGetFlags = function (R) {
5473
+ var flags = R.flags;
5474
+ return flags === undefined && !('flags' in RegExpPrototype) && !hasOwn(R, 'flags') && isPrototypeOf(RegExpPrototype, R)
5475
+ ? call(regExpFlags, R) : flags;
5476
+ };
5477
+ return regexpGetFlags;
5478
+ }
5479
+
5480
+ var mapHelpers;
5481
+ var hasRequiredMapHelpers;
5482
+
5483
+ function requireMapHelpers () {
5484
+ if (hasRequiredMapHelpers) return mapHelpers;
5485
+ hasRequiredMapHelpers = 1;
5486
+ var uncurryThis = requireFunctionUncurryThis();
5487
+
5488
+ // eslint-disable-next-line es/no-map -- safe
5489
+ var MapPrototype = Map.prototype;
5490
+
5491
+ mapHelpers = {
5492
+ // eslint-disable-next-line es/no-map -- safe
5493
+ Map: Map,
5494
+ set: uncurryThis(MapPrototype.set),
5495
+ get: uncurryThis(MapPrototype.get),
5496
+ has: uncurryThis(MapPrototype.has),
5497
+ remove: uncurryThis(MapPrototype['delete']),
5498
+ proto: MapPrototype
5499
+ };
5500
+ return mapHelpers;
5501
+ }
5502
+
5503
+ var hasRequiredWeb_structuredClone;
5504
+
5505
+ function requireWeb_structuredClone () {
5506
+ if (hasRequiredWeb_structuredClone) return web_structuredClone;
5507
+ hasRequiredWeb_structuredClone = 1;
5508
+ var IS_PURE = requireIsPure();
5509
+ var $ = require_export();
5510
+ var globalThis = requireGlobalThis();
5511
+ var getBuiltIn = requireGetBuiltIn();
5512
+ var uncurryThis = requireFunctionUncurryThis();
5513
+ var fails = requireFails();
5514
+ var uid = requireUid();
5515
+ var isCallable = requireIsCallable();
5516
+ var isConstructor = requireIsConstructor();
5517
+ var isNullOrUndefined = requireIsNullOrUndefined();
5518
+ var isObject = requireIsObject();
5519
+ var isSymbol = requireIsSymbol();
5520
+ var iterate = requireIterate();
5521
+ var anObject = requireAnObject();
5522
+ var classof = requireClassof();
5523
+ var hasOwn = requireHasOwnProperty();
5524
+ var createProperty = requireCreateProperty();
5525
+ var createNonEnumerableProperty = requireCreateNonEnumerableProperty();
5526
+ var lengthOfArrayLike = requireLengthOfArrayLike();
5527
+ var validateArgumentsLength = requireValidateArgumentsLength();
5528
+ var getRegExpFlags = requireRegexpGetFlags();
5529
+ var MapHelpers = requireMapHelpers();
5530
+ var SetHelpers = requireSetHelpers();
5531
+ var setIterate = requireSetIterate();
5532
+ var detachTransferable = requireDetachTransferable();
5533
+ var ERROR_STACK_INSTALLABLE = requireErrorStackInstallable();
5534
+ var PROPER_STRUCTURED_CLONE_TRANSFER = requireStructuredCloneProperTransfer();
5535
+
5536
+ var Object = globalThis.Object;
5537
+ var Array = globalThis.Array;
5538
+ var Date = globalThis.Date;
5539
+ var Error = globalThis.Error;
5540
+ var TypeError = globalThis.TypeError;
5541
+ var PerformanceMark = globalThis.PerformanceMark;
5542
+ var DOMException = getBuiltIn('DOMException');
5543
+ var Map = MapHelpers.Map;
5544
+ var mapHas = MapHelpers.has;
5545
+ var mapGet = MapHelpers.get;
5546
+ var mapSet = MapHelpers.set;
5547
+ var Set = SetHelpers.Set;
5548
+ var setAdd = SetHelpers.add;
5549
+ var setHas = SetHelpers.has;
5550
+ var objectKeys = getBuiltIn('Object', 'keys');
5551
+ var push = uncurryThis([].push);
5552
+ var thisBooleanValue = uncurryThis(true.valueOf);
5553
+ var thisNumberValue = uncurryThis(1.0.valueOf);
5554
+ var thisStringValue = uncurryThis(''.valueOf);
5555
+ var thisTimeValue = uncurryThis(Date.prototype.getTime);
5556
+ var PERFORMANCE_MARK = uid('structuredClone');
5557
+ var DATA_CLONE_ERROR = 'DataCloneError';
5558
+ var TRANSFERRING = 'Transferring';
5559
+
5560
+ var checkBasicSemantic = function (structuredCloneImplementation) {
5561
+ return !fails(function () {
5562
+ var set1 = new globalThis.Set([7]);
5563
+ var set2 = structuredCloneImplementation(set1);
5564
+ var number = structuredCloneImplementation(Object(7));
5565
+ return set2 === set1 || !set2.has(7) || !isObject(number) || +number !== 7;
5566
+ }) && structuredCloneImplementation;
5567
+ };
5568
+
5569
+ var checkErrorsCloning = function (structuredCloneImplementation, $Error) {
5570
+ return !fails(function () {
5571
+ var error = new $Error();
5572
+ var test = structuredCloneImplementation({ a: error, b: error });
5573
+ return !(test && test.a === test.b && test.a instanceof $Error && test.a.stack === error.stack);
5574
+ });
5575
+ };
5576
+
5577
+ // https://github.com/whatwg/html/pull/5749
5578
+ var checkNewErrorsCloningSemantic = function (structuredCloneImplementation) {
5579
+ return !fails(function () {
5580
+ var test = structuredCloneImplementation(new globalThis.AggregateError([1], PERFORMANCE_MARK, { cause: 3 }));
5581
+ return test.name !== 'AggregateError' || test.errors[0] !== 1 || test.message !== PERFORMANCE_MARK || test.cause !== 3;
5582
+ });
5583
+ };
5584
+
5585
+ // FF94+, Safari 15.4+, Chrome 98+, NodeJS 17.0+, Deno 1.13+
5586
+ // FF<103 and Safari implementations can't clone errors
5587
+ // https://bugzilla.mozilla.org/show_bug.cgi?id=1556604
5588
+ // FF103 can clone errors, but `.stack` of clone is an empty string
5589
+ // https://bugzilla.mozilla.org/show_bug.cgi?id=1778762
5590
+ // FF104+ fixed it on usual errors, but not on DOMExceptions
5591
+ // https://bugzilla.mozilla.org/show_bug.cgi?id=1777321
5592
+ // Chrome <102 returns `null` if cloned object contains multiple references to one error
5593
+ // https://bugs.chromium.org/p/v8/issues/detail?id=12542
5594
+ // NodeJS implementation can't clone DOMExceptions
5595
+ // https://github.com/nodejs/node/issues/41038
5596
+ // only FF103+ supports new (html/5749) error cloning semantic
5597
+ var nativeStructuredClone = globalThis.structuredClone;
5598
+
5599
+ var FORCED_REPLACEMENT = IS_PURE
5600
+ || !checkErrorsCloning(nativeStructuredClone, Error)
5601
+ || !checkErrorsCloning(nativeStructuredClone, DOMException)
5602
+ || !checkNewErrorsCloningSemantic(nativeStructuredClone);
5603
+
5604
+ // Chrome 82+, Safari 14.1+, Deno 1.11+
5605
+ // Chrome 78-81 implementation swaps `.name` and `.message` of cloned `DOMException`
5606
+ // Chrome returns `null` if cloned object contains multiple references to one error
5607
+ // Safari 14.1 implementation doesn't clone some `RegExp` flags, so requires a workaround
5608
+ // Safari implementation can't clone errors
5609
+ // Deno 1.2-1.10 implementations too naive
5610
+ // NodeJS 16.0+ does not have `PerformanceMark` constructor
5611
+ // NodeJS <17.2 structured cloning implementation from `performance.mark` is too naive
5612
+ // and can't clone, for example, `RegExp` or some boxed primitives
5613
+ // https://github.com/nodejs/node/issues/40840
5614
+ // no one of those implementations supports new (html/5749) error cloning semantic
5615
+ var structuredCloneFromMark = !nativeStructuredClone && checkBasicSemantic(function (value) {
5616
+ return new PerformanceMark(PERFORMANCE_MARK, { detail: value }).detail;
5617
+ });
5618
+
5619
+ var nativeRestrictedStructuredClone = checkBasicSemantic(nativeStructuredClone) || structuredCloneFromMark;
5620
+
5621
+ var throwUncloneable = function (type) {
5622
+ throw new DOMException('Uncloneable type: ' + type, DATA_CLONE_ERROR);
5623
+ };
5624
+
5625
+ var throwUnpolyfillable = function (type, action) {
5626
+ throw new DOMException((action || 'Cloning') + ' of ' + type + ' cannot be properly polyfilled in this engine', DATA_CLONE_ERROR);
5627
+ };
5628
+
5629
+ var tryNativeRestrictedStructuredClone = function (value, type) {
5630
+ if (!nativeRestrictedStructuredClone) throwUnpolyfillable(type);
5631
+ return nativeRestrictedStructuredClone(value);
5632
+ };
5633
+
5634
+ var createDataTransfer = function () {
5635
+ var dataTransfer;
5636
+ try {
5637
+ dataTransfer = new globalThis.DataTransfer();
5638
+ } catch (error) {
5639
+ try {
5640
+ dataTransfer = new globalThis.ClipboardEvent('').clipboardData;
5641
+ } catch (error2) { /* empty */ }
5642
+ }
5643
+ return dataTransfer && dataTransfer.items && dataTransfer.files ? dataTransfer : null;
5644
+ };
5645
+
5646
+ var cloneBuffer = function (value, map, $type) {
5647
+ if (mapHas(map, value)) return mapGet(map, value);
5648
+
5649
+ var type = $type || classof(value);
5650
+ var clone, length, options, source, target, i;
5651
+
5652
+ if (type === 'SharedArrayBuffer') {
5653
+ if (nativeRestrictedStructuredClone) clone = nativeRestrictedStructuredClone(value);
5654
+ // SharedArrayBuffer should use shared memory, we can't polyfill it, so return the original
5655
+ else clone = value;
5656
+ } else {
5657
+ var DataView = globalThis.DataView;
5658
+
5659
+ // `ArrayBuffer#slice` is not available in IE10
5660
+ // `ArrayBuffer#slice` and `DataView` are not available in old FF
5661
+ if (!DataView && !isCallable(value.slice)) throwUnpolyfillable('ArrayBuffer');
5662
+ // detached buffers throws in `DataView` and `.slice`
5663
+ try {
5664
+ if (isCallable(value.slice) && !value.resizable) {
5665
+ clone = value.slice(0);
5666
+ } else {
5667
+ length = value.byteLength;
5668
+ options = 'maxByteLength' in value ? { maxByteLength: value.maxByteLength } : undefined;
5669
+ // eslint-disable-next-line es/no-resizable-and-growable-arraybuffers -- safe
5670
+ clone = new ArrayBuffer(length, options);
5671
+ source = new DataView(value);
5672
+ target = new DataView(clone);
5673
+ for (i = 0; i < length; i++) {
5674
+ target.setUint8(i, source.getUint8(i));
5675
+ }
5676
+ }
5677
+ } catch (error) {
5678
+ throw new DOMException('ArrayBuffer is detached', DATA_CLONE_ERROR);
5679
+ }
5680
+ }
5681
+
5682
+ mapSet(map, value, clone);
5683
+
5684
+ return clone;
5685
+ };
5686
+
5687
+ var cloneView = function (value, type, offset, length, map) {
5688
+ var C = globalThis[type];
5689
+ // in some old engines like Safari 9, typeof C is 'object'
5690
+ // on Uint8ClampedArray or some other constructors
5691
+ if (!isObject(C)) throwUnpolyfillable(type);
5692
+ return new C(cloneBuffer(value.buffer, map), offset, length);
5693
+ };
5694
+
5695
+ var structuredCloneInternal = function (value, map) {
5696
+ if (isSymbol(value)) throwUncloneable('Symbol');
5697
+ if (!isObject(value)) return value;
5698
+ // effectively preserves circular references
5699
+ if (map) {
5700
+ if (mapHas(map, value)) return mapGet(map, value);
5701
+ } else map = new Map();
5702
+
5703
+ var type = classof(value);
5704
+ var C, name, cloned, dataTransfer, i, length, keys, key;
5705
+
5706
+ switch (type) {
5707
+ case 'Array':
5708
+ cloned = Array(lengthOfArrayLike(value));
5709
+ break;
5710
+ case 'Object':
5711
+ cloned = {};
5712
+ break;
5713
+ case 'Map':
5714
+ cloned = new Map();
5715
+ break;
5716
+ case 'Set':
5717
+ cloned = new Set();
5718
+ break;
5719
+ case 'RegExp':
5720
+ // in this block because of a Safari 14.1 bug
5721
+ // old FF does not clone regexes passed to the constructor, so get the source and flags directly
5722
+ cloned = new RegExp(value.source, getRegExpFlags(value));
5723
+ break;
5724
+ case 'Error':
5725
+ name = value.name;
5726
+ switch (name) {
5727
+ case 'AggregateError':
5728
+ cloned = new (getBuiltIn(name))([]);
5729
+ break;
5730
+ case 'EvalError':
5731
+ case 'RangeError':
5732
+ case 'ReferenceError':
5733
+ case 'SuppressedError':
5734
+ case 'SyntaxError':
5735
+ case 'TypeError':
5736
+ case 'URIError':
5737
+ cloned = new (getBuiltIn(name))();
5738
+ break;
5739
+ case 'CompileError':
5740
+ case 'LinkError':
5741
+ case 'RuntimeError':
5742
+ cloned = new (getBuiltIn('WebAssembly', name))();
5743
+ break;
5744
+ default:
5745
+ cloned = new Error();
5746
+ }
5747
+ break;
5748
+ case 'DOMException':
5749
+ cloned = new DOMException(value.message, value.name);
5750
+ break;
5751
+ case 'ArrayBuffer':
5752
+ case 'SharedArrayBuffer':
5753
+ cloned = cloneBuffer(value, map, type);
5754
+ break;
5755
+ case 'DataView':
5756
+ case 'Int8Array':
5757
+ case 'Uint8Array':
5758
+ case 'Uint8ClampedArray':
5759
+ case 'Int16Array':
5760
+ case 'Uint16Array':
5761
+ case 'Int32Array':
5762
+ case 'Uint32Array':
5763
+ case 'Float16Array':
5764
+ case 'Float32Array':
5765
+ case 'Float64Array':
5766
+ case 'BigInt64Array':
5767
+ case 'BigUint64Array':
5768
+ length = type === 'DataView' ? value.byteLength : value.length;
5769
+ cloned = cloneView(value, type, value.byteOffset, length, map);
5770
+ break;
5771
+ case 'DOMQuad':
5772
+ try {
5773
+ cloned = new DOMQuad(
5774
+ structuredCloneInternal(value.p1, map),
5775
+ structuredCloneInternal(value.p2, map),
5776
+ structuredCloneInternal(value.p3, map),
5777
+ structuredCloneInternal(value.p4, map)
5778
+ );
5779
+ } catch (error) {
5780
+ cloned = tryNativeRestrictedStructuredClone(value, type);
5781
+ }
5782
+ break;
5783
+ case 'File':
5784
+ if (nativeRestrictedStructuredClone) try {
5785
+ cloned = nativeRestrictedStructuredClone(value);
5786
+ // NodeJS 20.0.0 bug, https://github.com/nodejs/node/issues/47612
5787
+ if (classof(cloned) !== type) cloned = undefined;
5788
+ } catch (error) { /* empty */ }
5789
+ if (!cloned) try {
5790
+ cloned = new File([value], value.name, value);
5791
+ } catch (error) { /* empty */ }
5792
+ if (!cloned) throwUnpolyfillable(type);
5793
+ break;
5794
+ case 'FileList':
5795
+ dataTransfer = createDataTransfer();
5796
+ if (dataTransfer) {
5797
+ for (i = 0, length = lengthOfArrayLike(value); i < length; i++) {
5798
+ dataTransfer.items.add(structuredCloneInternal(value[i], map));
5799
+ }
5800
+ cloned = dataTransfer.files;
5801
+ } else cloned = tryNativeRestrictedStructuredClone(value, type);
5802
+ break;
5803
+ case 'ImageData':
5804
+ // Safari 9 ImageData is a constructor, but typeof ImageData is 'object'
5805
+ try {
5806
+ cloned = new ImageData(
5807
+ structuredCloneInternal(value.data, map),
5808
+ value.width,
5809
+ value.height,
5810
+ { colorSpace: value.colorSpace }
5811
+ );
5812
+ } catch (error) {
5813
+ cloned = tryNativeRestrictedStructuredClone(value, type);
5814
+ } break;
5815
+ default:
5816
+ if (nativeRestrictedStructuredClone) {
5817
+ cloned = nativeRestrictedStructuredClone(value);
5818
+ } else switch (type) {
5819
+ case 'BigInt':
5820
+ // can be a 3rd party polyfill
5821
+ cloned = Object(value.valueOf());
5822
+ break;
5823
+ case 'Boolean':
5824
+ cloned = Object(thisBooleanValue(value));
5825
+ break;
5826
+ case 'Number':
5827
+ cloned = Object(thisNumberValue(value));
5828
+ break;
5829
+ case 'String':
5830
+ cloned = Object(thisStringValue(value));
5831
+ break;
5832
+ case 'Date':
5833
+ cloned = new Date(thisTimeValue(value));
5834
+ break;
5835
+ case 'Blob':
5836
+ try {
5837
+ cloned = value.slice(0, value.size, value.type);
5838
+ } catch (error) {
5839
+ throwUnpolyfillable(type);
5840
+ } break;
5841
+ case 'DOMPoint':
5842
+ case 'DOMPointReadOnly':
5843
+ C = globalThis[type];
5844
+ try {
5845
+ cloned = C.fromPoint
5846
+ ? C.fromPoint(value)
5847
+ : new C(value.x, value.y, value.z, value.w);
5848
+ } catch (error) {
5849
+ throwUnpolyfillable(type);
5850
+ } break;
5851
+ case 'DOMRect':
5852
+ case 'DOMRectReadOnly':
5853
+ C = globalThis[type];
5854
+ try {
5855
+ cloned = C.fromRect
5856
+ ? C.fromRect(value)
5857
+ : new C(value.x, value.y, value.width, value.height);
5858
+ } catch (error) {
5859
+ throwUnpolyfillable(type);
5860
+ } break;
5861
+ case 'DOMMatrix':
5862
+ case 'DOMMatrixReadOnly':
5863
+ C = globalThis[type];
5864
+ try {
5865
+ cloned = C.fromMatrix
5866
+ ? C.fromMatrix(value)
5867
+ : new C(value);
5868
+ } catch (error) {
5869
+ throwUnpolyfillable(type);
5870
+ } break;
5871
+ case 'AudioData':
5872
+ case 'VideoFrame':
5873
+ if (!isCallable(value.clone)) throwUnpolyfillable(type);
5874
+ try {
5875
+ cloned = value.clone();
5876
+ } catch (error) {
5877
+ throwUncloneable(type);
5878
+ } break;
5879
+ case 'CropTarget':
5880
+ case 'CryptoKey':
5881
+ case 'FileSystemDirectoryHandle':
5882
+ case 'FileSystemFileHandle':
5883
+ case 'FileSystemHandle':
5884
+ case 'GPUCompilationInfo':
5885
+ case 'GPUCompilationMessage':
5886
+ case 'ImageBitmap':
5887
+ case 'RTCCertificate':
5888
+ case 'WebAssembly.Module':
5889
+ throwUnpolyfillable(type);
5890
+ // break omitted
5891
+ default:
5892
+ throwUncloneable(type);
5893
+ }
5894
+ }
5895
+
5896
+ mapSet(map, value, cloned);
5897
+
5898
+ switch (type) {
5899
+ case 'Array':
5900
+ case 'Object':
5901
+ keys = objectKeys(value);
5902
+ for (i = 0, length = lengthOfArrayLike(keys); i < length; i++) {
5903
+ key = keys[i];
5904
+ createProperty(cloned, key, structuredCloneInternal(value[key], map));
5905
+ } break;
5906
+ case 'Map':
5907
+ value.forEach(function (v, k) {
5908
+ mapSet(cloned, structuredCloneInternal(k, map), structuredCloneInternal(v, map));
5909
+ });
5910
+ break;
5911
+ case 'Set':
5912
+ value.forEach(function (v) {
5913
+ setAdd(cloned, structuredCloneInternal(v, map));
5914
+ });
5915
+ break;
5916
+ case 'Error':
5917
+ createNonEnumerableProperty(cloned, 'message', structuredCloneInternal(value.message, map));
5918
+ if (hasOwn(value, 'cause')) {
5919
+ createNonEnumerableProperty(cloned, 'cause', structuredCloneInternal(value.cause, map));
5920
+ }
5921
+ if (name === 'AggregateError') {
5922
+ cloned.errors = structuredCloneInternal(value.errors, map);
5923
+ } else if (name === 'SuppressedError') {
5924
+ cloned.error = structuredCloneInternal(value.error, map);
5925
+ cloned.suppressed = structuredCloneInternal(value.suppressed, map);
5926
+ } // break omitted
5927
+ case 'DOMException':
5928
+ if (ERROR_STACK_INSTALLABLE) {
5929
+ createNonEnumerableProperty(cloned, 'stack', structuredCloneInternal(value.stack, map));
5930
+ }
5931
+ }
5932
+
5933
+ return cloned;
5934
+ };
5935
+
5936
+ var tryToTransfer = function (rawTransfer, map) {
5937
+ if (!isObject(rawTransfer)) throw new TypeError('Transfer option cannot be converted to a sequence');
5938
+
5939
+ var transfer = [];
5940
+
5941
+ iterate(rawTransfer, function (value) {
5942
+ push(transfer, anObject(value));
5943
+ });
5944
+
5945
+ var i = 0;
5946
+ var length = lengthOfArrayLike(transfer);
5947
+ var buffers = new Set();
5948
+ var value, type, C, transferred, canvas, context;
5949
+
5950
+ while (i < length) {
5951
+ value = transfer[i++];
5952
+
5953
+ type = classof(value);
5954
+
5955
+ if (type === 'ArrayBuffer' ? setHas(buffers, value) : mapHas(map, value)) {
5956
+ throw new DOMException('Duplicate transferable', DATA_CLONE_ERROR);
5957
+ }
5958
+
5959
+ if (type === 'ArrayBuffer') {
5960
+ setAdd(buffers, value);
5961
+ continue;
5962
+ }
5963
+
5964
+ if (PROPER_STRUCTURED_CLONE_TRANSFER) {
5965
+ transferred = nativeStructuredClone(value, { transfer: [value] });
5966
+ } else switch (type) {
5967
+ case 'ImageBitmap':
5968
+ C = globalThis.OffscreenCanvas;
5969
+ if (!isConstructor(C)) throwUnpolyfillable(type, TRANSFERRING);
5970
+ try {
5971
+ canvas = new C(value.width, value.height);
5972
+ context = canvas.getContext('bitmaprenderer');
5973
+ context.transferFromImageBitmap(value);
5974
+ transferred = canvas.transferToImageBitmap();
5975
+ } catch (error) { /* empty */ }
5976
+ break;
5977
+ case 'AudioData':
5978
+ case 'VideoFrame':
5979
+ if (!isCallable(value.clone) || !isCallable(value.close)) throwUnpolyfillable(type, TRANSFERRING);
5980
+ try {
5981
+ transferred = value.clone();
5982
+ value.close();
5983
+ } catch (error) { /* empty */ }
5984
+ break;
5985
+ case 'MediaSourceHandle':
5986
+ case 'MessagePort':
5987
+ case 'MIDIAccess':
5988
+ case 'OffscreenCanvas':
5989
+ case 'ReadableStream':
5990
+ case 'RTCDataChannel':
5991
+ case 'TransformStream':
5992
+ case 'WebTransportReceiveStream':
5993
+ case 'WebTransportSendStream':
5994
+ case 'WritableStream':
5995
+ throwUnpolyfillable(type, TRANSFERRING);
5996
+ }
5997
+
5998
+ if (transferred === undefined) throw new DOMException('This object cannot be transferred: ' + type, DATA_CLONE_ERROR);
5999
+
6000
+ mapSet(map, value, transferred);
6001
+ }
6002
+
6003
+ return buffers;
6004
+ };
6005
+
6006
+ var detachBuffers = function (buffers) {
6007
+ setIterate(buffers, function (buffer) {
6008
+ if (PROPER_STRUCTURED_CLONE_TRANSFER) {
6009
+ nativeRestrictedStructuredClone(buffer, { transfer: [buffer] });
6010
+ } else if (isCallable(buffer.transfer)) {
6011
+ buffer.transfer();
6012
+ } else if (detachTransferable) {
6013
+ detachTransferable(buffer);
6014
+ } else {
6015
+ throwUnpolyfillable('ArrayBuffer', TRANSFERRING);
6016
+ }
6017
+ });
6018
+ };
6019
+
6020
+ // `structuredClone` method
6021
+ // https://html.spec.whatwg.org/multipage/structured-data.html#dom-structuredclone
6022
+ $({ global: true, enumerable: true, sham: !PROPER_STRUCTURED_CLONE_TRANSFER, forced: FORCED_REPLACEMENT }, {
6023
+ structuredClone: function structuredClone(value /* , { transfer } */) {
6024
+ var options = validateArgumentsLength(arguments.length, 1) > 1 && !isNullOrUndefined(arguments[1]) ? anObject(arguments[1]) : undefined;
6025
+ var transfer = options ? options.transfer : undefined;
6026
+ var map, buffers;
6027
+
6028
+ if (transfer !== undefined) {
6029
+ map = new Map();
6030
+ buffers = tryToTransfer(transfer, map);
6031
+ }
6032
+
6033
+ var clone = structuredCloneInternal(value, map);
6034
+
6035
+ // since of an issue with cloning views of transferred buffers, we a forced to detach them later
6036
+ // https://github.com/zloirock/core-js/issues/1265
6037
+ if (buffers) detachBuffers(buffers);
6038
+
6039
+ return clone;
6040
+ }
6041
+ });
6042
+ return web_structuredClone;
6043
+ }
6044
+
6045
+ requireWeb_structuredClone();