@mjhls/mjh-framework 1.0.711-cors-proxy → 1.0.711

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 (239) hide show
  1. package/dist/cjs/AD.js +1 -1
  2. package/dist/cjs/AD300x250.js +17 -17
  3. package/dist/cjs/AD300x250x600.js +17 -17
  4. package/dist/cjs/AD728x90.js +19 -19
  5. package/dist/cjs/ADFloatingFooter.js +17 -17
  6. package/dist/cjs/ADFooter.js +6 -6
  7. package/dist/cjs/ADGutter.js +17 -17
  8. package/dist/cjs/{ADInfeed-71e2533d.js → ADInfeed-2c7a6dd8.js} +2 -2
  9. package/dist/cjs/ADSkyscraper.js +17 -17
  10. package/dist/cjs/ADSponsoredResources.js +17 -17
  11. package/dist/cjs/ADWebcast.js +17 -17
  12. package/dist/cjs/ADWelcome.js +17 -17
  13. package/dist/cjs/{ADlgInfeed-2c6a814f.js → ADlgInfeed-fb101797.js} +2 -2
  14. package/dist/cjs/AccordionPanel.js +8 -8
  15. package/dist/cjs/AdSlot.js +20 -20
  16. package/dist/cjs/AdSlotsProvider.js +3 -3
  17. package/dist/cjs/AlphabeticList.js +9 -9
  18. package/dist/cjs/ArticleCarousel.js +16 -16
  19. package/dist/cjs/ArticleSeriesListing.js +28 -28
  20. package/dist/cjs/Auth.js +611 -213
  21. package/dist/cjs/{AuthorComponent-ac8972ce.js → AuthorComponent-5fa89df5.js} +1 -1
  22. package/dist/cjs/Beam.js +9 -9
  23. package/dist/cjs/{BlockContent-8b494587.js → BlockContent-eca358e4.js} +1 -1
  24. package/dist/cjs/Breadcrumbs.js +8 -8
  25. package/dist/cjs/BrowseVideosListing.js +18 -18
  26. package/dist/cjs/CMEDeck.js +24 -24
  27. package/dist/cjs/Column2.js +16 -16
  28. package/dist/cjs/Column3.js +29 -29
  29. package/dist/cjs/ConferenceArticleCard.js +7 -7
  30. package/dist/cjs/DeckContent.js +31 -31
  31. package/dist/cjs/DeckQueue.js +25 -25
  32. package/dist/cjs/{Dfp-234d2d8e.js → Dfp-a863cf48.js} +12 -12
  33. package/dist/cjs/EventsDeck.js +22 -22
  34. package/dist/cjs/ExternalResources.js +42 -42
  35. package/dist/cjs/Feature.js +3 -3
  36. package/dist/cjs/ForbesHero.js +11 -11
  37. package/dist/cjs/GridContent.js +40 -40
  38. package/dist/cjs/GridHero.js +12 -12
  39. package/dist/cjs/GroupDeck.js +12 -12
  40. package/dist/cjs/HamMagazine.js +24 -24
  41. package/dist/cjs/Hero.js +3 -3
  42. package/dist/cjs/HighlightenVideo.js +2 -2
  43. package/dist/cjs/HorizontalHero.js +4 -4
  44. package/dist/cjs/IssueContentDeck.js +12 -12
  45. package/dist/cjs/IssueDeck.js +15 -15
  46. package/dist/cjs/IssueLanding.js +33 -33
  47. package/dist/cjs/LeftNav.js +19 -19
  48. package/dist/cjs/MasterDeck.js +31 -31
  49. package/dist/cjs/NavDvm.js +14 -14
  50. package/dist/cjs/NavMagazine.js +29 -29
  51. package/dist/cjs/NavNative.js +24 -24
  52. package/dist/cjs/NavNormal.js +15 -15
  53. package/dist/cjs/OncliveHero.js +4 -4
  54. package/dist/cjs/OncliveLargeHero.js +12 -12
  55. package/dist/cjs/PageFilter.js +6 -6
  56. package/dist/cjs/PartnerDetailListing.js +53 -53
  57. package/dist/cjs/PdfDownload.js +1 -1
  58. package/dist/cjs/PopUpModal.js +6 -6
  59. package/dist/cjs/PublicationDeck.js +7 -7
  60. package/dist/cjs/PublicationLanding.js +17 -17
  61. package/dist/cjs/QueueDeckExpanded.js +33 -33
  62. package/dist/cjs/RecentNews.js +5 -5
  63. package/dist/cjs/RelatedContent.js +6 -6
  64. package/dist/cjs/Search.js +8 -8
  65. package/dist/cjs/Segment.js +7 -7
  66. package/dist/cjs/SetCookie.js +1 -1
  67. package/dist/cjs/SideFooter.js +14 -14
  68. package/dist/cjs/{SocialSearchComponent-87578cd1.js → SocialSearchComponent-45c54bed.js} +6 -6
  69. package/dist/cjs/TaxonomyCard.js +9 -9
  70. package/dist/cjs/TaxonomyDescription.js +41 -41
  71. package/dist/cjs/TemplateNormal.js +44 -44
  72. package/dist/cjs/ThumbnailCard.js +6 -6
  73. package/dist/cjs/Ustream.js +8 -8
  74. package/dist/cjs/VerticalHero.js +3 -3
  75. package/dist/cjs/VideoSeriesCard.js +12 -12
  76. package/dist/cjs/VideoSeriesFilter.js +10 -10
  77. package/dist/cjs/VideoSeriesListing.js +28 -28
  78. package/dist/cjs/View.js +68 -69
  79. package/dist/cjs/YahooHero.js +14 -14
  80. package/dist/cjs/YoutubeGroup.js +15 -15
  81. package/dist/cjs/{_is-array-754e012d.js → _is-array-63ae4740.js} +6 -6
  82. package/dist/cjs/{_iter-detect-60b2f026.js → _iter-detect-2613ffa1.js} +2 -2
  83. package/dist/cjs/{_object-sap-5e74ba08.js → _object-sap-c5bd707d.js} +1 -1
  84. package/dist/cjs/{_set-species-f92c67c5.js → _set-species-a8cfdb84.js} +4 -4
  85. package/dist/cjs/{_to-object-329a650b.js → _to-object-821a2927.js} +4 -4
  86. package/dist/cjs/{asyncToGenerator-533d476a.js → asyncToGenerator-2edcb6ad.js} +8 -8
  87. package/dist/cjs/{core.get-iterator-method-f62321d4.js → core.get-iterator-method-b4615fd3.js} +2 -2
  88. package/dist/cjs/{define-property-f4d12f4e.js → define-property-aff11f8a.js} +1 -1
  89. package/dist/cjs/{defineProperty-55548b25.js → defineProperty-d6fbb280.js} +1 -1
  90. package/dist/cjs/{entities-310b46ee.js → entities-3f9d0f2f.js} +1 -1
  91. package/dist/cjs/{es6.string.iterator-cc0bbaa4.js → es6.string.iterator-20d42c53.js} +2 -2
  92. package/dist/cjs/{extends-60837c34.js → extends-1e24fc8d.js} +1 -1
  93. package/dist/cjs/getRelatedArticle.js +133 -71
  94. package/dist/cjs/getSerializers.js +41 -41
  95. package/dist/cjs/{getTargeting-fee8c429.js → getTargeting-497b581d.js} +2 -2
  96. package/dist/cjs/getTargeting.js +7 -7
  97. package/dist/cjs/{index-6367b7bf.js → index-4d74ffd6.js} +31 -31
  98. package/dist/cjs/{index-e08f00ce.js → index-5ad2b070.js} +21 -40
  99. package/dist/cjs/{index-8a3fb0bc.js → index-80f57cff.js} +7 -7
  100. package/dist/cjs/{index-ad961307.js → index-bb09dc7c.js} +83 -83
  101. package/dist/cjs/{index-b5eb3ff8.js → index-d48b231c.js} +11 -6
  102. package/dist/cjs/{index.esm-3ffa049c.js → index.esm-8123cf40.js} +1 -1
  103. package/dist/cjs/index.js +124 -124
  104. package/dist/cjs/{inherits-87492b40.js → inherits-2eb23889.js} +5 -5
  105. package/dist/cjs/{keys-a586b7a0.js → keys-95c064c9.js} +2 -2
  106. package/dist/cjs/{lodash-7fd85bcf.js → lodash-4ef21f0f.js} +1 -1
  107. package/dist/cjs/{main-7b5e57b0.js → main-dc082238.js} +51 -51
  108. package/dist/cjs/{moment-ca3bd9fb.js → moment-aca40de1.js} +1 -1
  109. package/dist/cjs/{react-social-icons-07939b41.js → react-social-icons-af932527.js} +17 -17
  110. package/dist/cjs/{slicedToArray-8f385299.js → slicedToArray-db24842a.js} +4 -4
  111. package/dist/cjs/{smoothscroll-95231a70.js → smoothscroll-1abb448e.js} +1 -1
  112. package/dist/cjs/{stringify-7c5aff47.js → stringify-01cf47f7.js} +1 -1
  113. package/dist/cjs/timeDifferenceCalc.js +1 -1
  114. package/dist/cjs/{toConsumableArray-9a3476fe.js → toConsumableArray-cf0865fc.js} +4 -4
  115. package/dist/cjs/{typeof-9d7f610f.js → typeof-97065d40.js} +6 -6
  116. package/dist/cjs/urlFor.js +1 -1
  117. package/dist/cjs/{util-f2c1b65b.js → util-6f784d85.js} +1 -1
  118. package/dist/cjs/{web.dom.iterable-a0e279c1.js → web.dom.iterable-4480325a.js} +3 -3
  119. package/dist/esm/AD.js +1 -1
  120. package/dist/esm/AD300x250.js +17 -17
  121. package/dist/esm/AD300x250x600.js +17 -17
  122. package/dist/esm/AD728x90.js +19 -19
  123. package/dist/esm/ADFloatingFooter.js +17 -17
  124. package/dist/esm/ADFooter.js +6 -6
  125. package/dist/esm/ADGutter.js +17 -17
  126. package/dist/esm/{ADInfeed-73a22dad.js → ADInfeed-a9a35a5c.js} +2 -2
  127. package/dist/esm/ADSkyscraper.js +17 -17
  128. package/dist/esm/ADSponsoredResources.js +17 -17
  129. package/dist/esm/ADWebcast.js +17 -17
  130. package/dist/esm/ADWelcome.js +17 -17
  131. package/dist/esm/{ADlgInfeed-e5c107b7.js → ADlgInfeed-ce2e0e3a.js} +2 -2
  132. package/dist/esm/AccordionPanel.js +8 -8
  133. package/dist/esm/AdSlot.js +20 -20
  134. package/dist/esm/AdSlotsProvider.js +3 -3
  135. package/dist/esm/AlphabeticList.js +9 -9
  136. package/dist/esm/ArticleCarousel.js +16 -16
  137. package/dist/esm/ArticleSeriesListing.js +28 -28
  138. package/dist/esm/Auth.js +611 -213
  139. package/dist/esm/{AuthorComponent-23afa074.js → AuthorComponent-c29a0075.js} +1 -1
  140. package/dist/esm/Beam.js +9 -9
  141. package/dist/esm/{BlockContent-d05b5b23.js → BlockContent-d8cd739c.js} +1 -1
  142. package/dist/esm/Breadcrumbs.js +7 -7
  143. package/dist/esm/BrowseVideosListing.js +18 -18
  144. package/dist/esm/CMEDeck.js +24 -24
  145. package/dist/esm/Column2.js +16 -16
  146. package/dist/esm/Column3.js +29 -29
  147. package/dist/esm/ConferenceArticleCard.js +7 -7
  148. package/dist/esm/DeckContent.js +31 -31
  149. package/dist/esm/DeckQueue.js +25 -25
  150. package/dist/esm/{Dfp-f9463b48.js → Dfp-db06d7dc.js} +12 -12
  151. package/dist/esm/EventsDeck.js +20 -20
  152. package/dist/esm/ExternalResources.js +42 -42
  153. package/dist/esm/Feature.js +3 -3
  154. package/dist/esm/ForbesHero.js +11 -11
  155. package/dist/esm/GridContent.js +40 -40
  156. package/dist/esm/GridHero.js +12 -12
  157. package/dist/esm/GroupDeck.js +12 -12
  158. package/dist/esm/HamMagazine.js +24 -24
  159. package/dist/esm/Hero.js +3 -3
  160. package/dist/esm/HighlightenVideo.js +2 -2
  161. package/dist/esm/HorizontalHero.js +4 -4
  162. package/dist/esm/IssueContentDeck.js +12 -12
  163. package/dist/esm/IssueDeck.js +14 -14
  164. package/dist/esm/IssueLanding.js +33 -33
  165. package/dist/esm/LeftNav.js +19 -19
  166. package/dist/esm/MasterDeck.js +31 -31
  167. package/dist/esm/NavDvm.js +14 -14
  168. package/dist/esm/NavMagazine.js +29 -29
  169. package/dist/esm/NavNative.js +22 -22
  170. package/dist/esm/NavNormal.js +15 -15
  171. package/dist/esm/OncliveHero.js +4 -4
  172. package/dist/esm/OncliveLargeHero.js +12 -12
  173. package/dist/esm/PageFilter.js +6 -6
  174. package/dist/esm/PartnerDetailListing.js +53 -53
  175. package/dist/esm/PdfDownload.js +1 -1
  176. package/dist/esm/PopUpModal.js +6 -6
  177. package/dist/esm/PublicationDeck.js +6 -6
  178. package/dist/esm/PublicationLanding.js +16 -16
  179. package/dist/esm/QueueDeckExpanded.js +33 -33
  180. package/dist/esm/RecentNews.js +5 -5
  181. package/dist/esm/RelatedContent.js +6 -6
  182. package/dist/esm/Search.js +7 -7
  183. package/dist/esm/Segment.js +7 -7
  184. package/dist/esm/SetCookie.js +1 -1
  185. package/dist/esm/SideFooter.js +14 -14
  186. package/dist/esm/{SocialSearchComponent-91c19daa.js → SocialSearchComponent-fab3e851.js} +5 -5
  187. package/dist/esm/TaxonomyCard.js +9 -9
  188. package/dist/esm/TaxonomyDescription.js +41 -41
  189. package/dist/esm/TemplateNormal.js +44 -44
  190. package/dist/esm/ThumbnailCard.js +6 -6
  191. package/dist/esm/Ustream.js +8 -8
  192. package/dist/esm/VerticalHero.js +3 -3
  193. package/dist/esm/VideoSeriesCard.js +12 -12
  194. package/dist/esm/VideoSeriesFilter.js +10 -10
  195. package/dist/esm/VideoSeriesListing.js +28 -28
  196. package/dist/esm/View.js +66 -67
  197. package/dist/esm/YahooHero.js +14 -14
  198. package/dist/esm/YoutubeGroup.js +15 -15
  199. package/dist/esm/{_is-array-49698029.js → _is-array-9383b394.js} +6 -6
  200. package/dist/esm/{_iter-detect-59409a32.js → _iter-detect-d4d262ee.js} +2 -2
  201. package/dist/esm/{_object-sap-4d59d5bd.js → _object-sap-6a003379.js} +1 -1
  202. package/dist/esm/{_set-species-cede29f8.js → _set-species-0b056cff.js} +4 -4
  203. package/dist/esm/{_to-object-ded78eb9.js → _to-object-9bef3b62.js} +5 -5
  204. package/dist/esm/{asyncToGenerator-7c654f36.js → asyncToGenerator-acd1cc47.js} +8 -8
  205. package/dist/esm/{core.get-iterator-method-54d2e411.js → core.get-iterator-method-1b116089.js} +2 -2
  206. package/dist/esm/{define-property-de3fc946.js → define-property-9a008401.js} +1 -1
  207. package/dist/esm/{defineProperty-b798470d.js → defineProperty-ddd52c29.js} +1 -1
  208. package/dist/esm/{entities-7cc3bf45.js → entities-932b50cf.js} +1 -1
  209. package/dist/esm/{es6.string.iterator-9b2af4a5.js → es6.string.iterator-b24a54f2.js} +3 -3
  210. package/dist/esm/{extends-cc5da797.js → extends-c2b1c9d7.js} +1 -1
  211. package/dist/esm/getRelatedArticle.js +133 -71
  212. package/dist/esm/getSerializers.js +41 -41
  213. package/dist/esm/{getTargeting-2acdec91.js → getTargeting-b1a7be54.js} +2 -2
  214. package/dist/esm/getTargeting.js +7 -7
  215. package/dist/esm/{index-51a80699.js → index-3f5c03b2.js} +11 -6
  216. package/dist/esm/{index-1a7c57c9.js → index-48a08226.js} +80 -80
  217. package/dist/esm/{index-acfb8079.js → index-669ff425.js} +21 -40
  218. package/dist/esm/{index-c5fd0af5.js → index-752d1dae.js} +6 -6
  219. package/dist/esm/{index-c00b0bbb.js → index-ccb770c7.js} +31 -31
  220. package/dist/esm/{index.esm-8ee5ff72.js → index.esm-8016b507.js} +1 -1
  221. package/dist/esm/index.js +105 -105
  222. package/dist/esm/{inherits-596840e8.js → inherits-18d4a779.js} +5 -5
  223. package/dist/esm/{keys-fc2d4c34.js → keys-9bb7939c.js} +2 -2
  224. package/dist/esm/{lodash-ec8c6b48.js → lodash-ad27652f.js} +1 -1
  225. package/dist/esm/{main-747e7d25.js → main-1450d277.js} +51 -51
  226. package/dist/esm/{moment-b6f49411.js → moment-bc12cb97.js} +1 -1
  227. package/dist/esm/{react-social-icons-3822f1ce.js → react-social-icons-91f9716f.js} +16 -16
  228. package/dist/esm/{slicedToArray-7021e5df.js → slicedToArray-34468155.js} +4 -4
  229. package/dist/esm/{smoothscroll-4b699764.js → smoothscroll-ab6e0238.js} +1 -1
  230. package/dist/esm/{stringify-008c8802.js → stringify-8a4f19f7.js} +1 -1
  231. package/dist/esm/timeDifferenceCalc.js +1 -1
  232. package/dist/esm/{toConsumableArray-725434a0.js → toConsumableArray-5212fee7.js} +4 -4
  233. package/dist/esm/{typeof-ee095d0c.js → typeof-64422756.js} +6 -6
  234. package/dist/esm/urlFor.js +1 -1
  235. package/dist/esm/{util-7700fc59.js → util-3ab476bf.js} +1 -1
  236. package/dist/esm/{web.dom.iterable-8956f9a5.js → web.dom.iterable-ca37144a.js} +3 -3
  237. package/package.json +1 -1
  238. package/dist/cjs/{brightcove-react-player-loader.es-5c98aec7.js → brightcove-react-player-loader.es-a195642e.js} +1 -1
  239. package/dist/esm/{brightcove-react-player-loader.es-4abff0b1.js → brightcove-react-player-loader.es-b43c695a.js} +1 -1
package/dist/esm/Auth.js CHANGED
@@ -1,24 +1,24 @@
1
- import { a as commonjsGlobal, c as createCommonjsModule } from './_commonjsHelpers-0c4b6f40.js';
2
- import './_to-object-ded78eb9.js';
3
- import './es6.string.iterator-9b2af4a5.js';
4
- import './_library-528f1934.js';
5
- import './_iter-detect-59409a32.js';
6
- import './core.get-iterator-method-54d2e411.js';
7
- import './_object-pie-71ac75a4.js';
8
- import { _ as _extends } from './extends-cc5da797.js';
9
- import './web.dom.iterable-8956f9a5.js';
1
+ import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-acd1cc47.js';
2
+ import { _ as _JSON$stringify } from './stringify-8a4f19f7.js';
3
+ import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-34468155.js';
10
4
  import React, { useEffect, useState } from 'react';
11
5
  import Router from 'next/router';
12
- import { _ as _JSON$stringify } from './stringify-008c8802.js';
13
- import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-7021e5df.js';
14
- import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-7c654f36.js';
15
- import './_set-species-cede29f8.js';
6
+ import { _ as _extends } from './extends-c2b1c9d7.js';
16
7
  import { Col, Form, Button, Spinner } from 'react-bootstrap';
17
- import { u as util } from './util-7700fc59.js';
18
- import { s as serialize_1, p as parse_1 } from './index-db3bb315.js';
19
8
  import useSWR from 'swr';
9
+ import { s as serialize_1, p as parse_1 } from './index-db3bb315.js';
20
10
  import Local from 'passport-local';
21
11
  import mysql from 'mysql';
12
+ import { u as util } from './util-3ab476bf.js';
13
+ import { a as commonjsGlobal, c as createCommonjsModule } from './_commonjsHelpers-0c4b6f40.js';
14
+ import './es6.string.iterator-b24a54f2.js';
15
+ import './_to-object-9bef3b62.js';
16
+ import './web.dom.iterable-ca37144a.js';
17
+ import './_library-528f1934.js';
18
+ import './core.get-iterator-method-1b116089.js';
19
+ import './_set-species-0b056cff.js';
20
+ import './_iter-detect-d4d262ee.js';
21
+ import './_object-pie-71ac75a4.js';
22
22
 
23
23
  var returnFormField = function returnFormField(_ref) {
24
24
  var name = _ref.name,
@@ -1537,59 +1537,6 @@ defineProperties.supportsDescriptors = !!supportsDescriptors;
1537
1537
 
1538
1538
  var defineProperties_1 = defineProperties;
1539
1539
 
1540
- /* eslint complexity: [2, 18], max-statements: [2, 33] */
1541
- var shams = function hasSymbols() {
1542
- if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
1543
- if (typeof Symbol.iterator === 'symbol') { return true; }
1544
-
1545
- var obj = {};
1546
- var sym = Symbol('test');
1547
- var symObj = Object(sym);
1548
- if (typeof sym === 'string') { return false; }
1549
-
1550
- if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }
1551
- if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }
1552
-
1553
- // temp disabled per https://github.com/ljharb/object.assign/issues/17
1554
- // if (sym instanceof Symbol) { return false; }
1555
- // temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
1556
- // if (!(symObj instanceof Symbol)) { return false; }
1557
-
1558
- // if (typeof Symbol.prototype.toString !== 'function') { return false; }
1559
- // if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
1560
-
1561
- var symVal = 42;
1562
- obj[sym] = symVal;
1563
- for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax
1564
- if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
1565
-
1566
- if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
1567
-
1568
- var syms = Object.getOwnPropertySymbols(obj);
1569
- if (syms.length !== 1 || syms[0] !== sym) { return false; }
1570
-
1571
- if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
1572
-
1573
- if (typeof Object.getOwnPropertyDescriptor === 'function') {
1574
- var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
1575
- if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
1576
- }
1577
-
1578
- return true;
1579
- };
1580
-
1581
- var origSymbol = commonjsGlobal.Symbol;
1582
-
1583
-
1584
- var hasSymbols$1 = function hasNativeSymbols() {
1585
- if (typeof origSymbol !== 'function') { return false; }
1586
- if (typeof Symbol !== 'function') { return false; }
1587
- if (typeof origSymbol('foo') !== 'symbol') { return false; }
1588
- if (typeof Symbol('bar') !== 'symbol') { return false; }
1589
-
1590
- return shams();
1591
- };
1592
-
1593
1540
  /* eslint no-invalid-this: 1 */
1594
1541
 
1595
1542
  var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
@@ -1643,15 +1590,74 @@ var implementation$1 = function bind(that) {
1643
1590
 
1644
1591
  var functionBind = Function.prototype.bind || implementation$1;
1645
1592
 
1646
- /* globals
1647
- Atomics,
1648
- SharedArrayBuffer,
1649
- */
1593
+ /* eslint complexity: [2, 18], max-statements: [2, 33] */
1594
+ var shams = function hasSymbols() {
1595
+ if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
1596
+ if (typeof Symbol.iterator === 'symbol') { return true; }
1597
+
1598
+ var obj = {};
1599
+ var sym = Symbol('test');
1600
+ var symObj = Object(sym);
1601
+ if (typeof sym === 'string') { return false; }
1602
+
1603
+ if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }
1604
+ if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }
1605
+
1606
+ // temp disabled per https://github.com/ljharb/object.assign/issues/17
1607
+ // if (sym instanceof Symbol) { return false; }
1608
+ // temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
1609
+ // if (!(symObj instanceof Symbol)) { return false; }
1610
+
1611
+ // if (typeof Symbol.prototype.toString !== 'function') { return false; }
1612
+ // if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
1613
+
1614
+ var symVal = 42;
1615
+ obj[sym] = symVal;
1616
+ for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax
1617
+ if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
1618
+
1619
+ if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
1620
+
1621
+ var syms = Object.getOwnPropertySymbols(obj);
1622
+ if (syms.length !== 1 || syms[0] !== sym) { return false; }
1623
+
1624
+ if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
1625
+
1626
+ if (typeof Object.getOwnPropertyDescriptor === 'function') {
1627
+ var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
1628
+ if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
1629
+ }
1630
+
1631
+ return true;
1632
+ };
1633
+
1634
+ var origSymbol = commonjsGlobal.Symbol;
1635
+
1636
+
1637
+ var hasSymbols$1 = function hasNativeSymbols() {
1638
+ if (typeof origSymbol !== 'function') { return false; }
1639
+ if (typeof Symbol !== 'function') { return false; }
1640
+ if (typeof origSymbol('foo') !== 'symbol') { return false; }
1641
+ if (typeof Symbol('bar') !== 'symbol') { return false; }
1642
+
1643
+ return shams();
1644
+ };
1645
+
1646
+ var src = functionBind.call(Function.call, Object.prototype.hasOwnProperty);
1650
1647
 
1651
1648
  var undefined$1;
1652
1649
 
1650
+ var $SyntaxError = SyntaxError;
1651
+ var $Function = Function;
1653
1652
  var $TypeError = TypeError;
1654
1653
 
1654
+ // eslint-disable-next-line consistent-return
1655
+ var getEvalledConstructor = function (expressionSyntax) {
1656
+ try {
1657
+ return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
1658
+ } catch (e) {}
1659
+ };
1660
+
1655
1661
  var $gOPD = Object.getOwnPropertyDescriptor;
1656
1662
  if ($gOPD) {
1657
1663
  try {
@@ -1661,7 +1667,9 @@ if ($gOPD) {
1661
1667
  }
1662
1668
  }
1663
1669
 
1664
- var throwTypeError = function () { throw new $TypeError(); };
1670
+ var throwTypeError = function () {
1671
+ throw new $TypeError();
1672
+ };
1665
1673
  var ThrowTypeError = $gOPD
1666
1674
  ? (function () {
1667
1675
  try {
@@ -1682,170 +1690,265 @@ var ThrowTypeError = $gOPD
1682
1690
  var hasSymbols$2 = hasSymbols$1();
1683
1691
 
1684
1692
  var getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
1685
- var generatorFunction = undefined$1;
1686
- var asyncFunction = undefined$1;
1687
- var asyncGenFunction = undefined$1;
1693
+
1694
+ var needsEval = {};
1688
1695
 
1689
1696
  var TypedArray = typeof Uint8Array === 'undefined' ? undefined$1 : getProto(Uint8Array);
1690
1697
 
1691
1698
  var INTRINSICS = {
1699
+ '%AggregateError%': typeof AggregateError === 'undefined' ? undefined$1 : AggregateError,
1692
1700
  '%Array%': Array,
1693
1701
  '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$1 : ArrayBuffer,
1694
- '%ArrayBufferPrototype%': typeof ArrayBuffer === 'undefined' ? undefined$1 : ArrayBuffer.prototype,
1695
1702
  '%ArrayIteratorPrototype%': hasSymbols$2 ? getProto([][Symbol.iterator]()) : undefined$1,
1696
- '%ArrayPrototype%': Array.prototype,
1697
- '%ArrayProto_entries%': Array.prototype.entries,
1698
- '%ArrayProto_forEach%': Array.prototype.forEach,
1699
- '%ArrayProto_keys%': Array.prototype.keys,
1700
- '%ArrayProto_values%': Array.prototype.values,
1701
1703
  '%AsyncFromSyncIteratorPrototype%': undefined$1,
1702
- '%AsyncFunction%': asyncFunction,
1703
- '%AsyncFunctionPrototype%': undefined$1,
1704
- '%AsyncGenerator%': undefined$1,
1705
- '%AsyncGeneratorFunction%': asyncGenFunction,
1706
- '%AsyncGeneratorPrototype%': undefined$1,
1707
- '%AsyncIteratorPrototype%': undefined$1,
1704
+ '%AsyncFunction%': needsEval,
1705
+ '%AsyncGenerator%': needsEval,
1706
+ '%AsyncGeneratorFunction%': needsEval,
1707
+ '%AsyncIteratorPrototype%': needsEval,
1708
1708
  '%Atomics%': typeof Atomics === 'undefined' ? undefined$1 : Atomics,
1709
+ '%BigInt%': typeof BigInt === 'undefined' ? undefined$1 : BigInt,
1709
1710
  '%Boolean%': Boolean,
1710
- '%BooleanPrototype%': Boolean.prototype,
1711
1711
  '%DataView%': typeof DataView === 'undefined' ? undefined$1 : DataView,
1712
- '%DataViewPrototype%': typeof DataView === 'undefined' ? undefined$1 : DataView.prototype,
1713
1712
  '%Date%': Date,
1714
- '%DatePrototype%': Date.prototype,
1715
1713
  '%decodeURI%': decodeURI,
1716
1714
  '%decodeURIComponent%': decodeURIComponent,
1717
1715
  '%encodeURI%': encodeURI,
1718
1716
  '%encodeURIComponent%': encodeURIComponent,
1719
1717
  '%Error%': Error,
1720
- '%ErrorPrototype%': Error.prototype,
1721
1718
  '%eval%': eval, // eslint-disable-line no-eval
1722
1719
  '%EvalError%': EvalError,
1723
- '%EvalErrorPrototype%': EvalError.prototype,
1724
1720
  '%Float32Array%': typeof Float32Array === 'undefined' ? undefined$1 : Float32Array,
1725
- '%Float32ArrayPrototype%': typeof Float32Array === 'undefined' ? undefined$1 : Float32Array.prototype,
1726
1721
  '%Float64Array%': typeof Float64Array === 'undefined' ? undefined$1 : Float64Array,
1727
- '%Float64ArrayPrototype%': typeof Float64Array === 'undefined' ? undefined$1 : Float64Array.prototype,
1728
- '%Function%': Function,
1729
- '%FunctionPrototype%': Function.prototype,
1730
- '%Generator%': undefined$1,
1731
- '%GeneratorFunction%': generatorFunction,
1732
- '%GeneratorPrototype%': undefined$1,
1722
+ '%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined$1 : FinalizationRegistry,
1723
+ '%Function%': $Function,
1724
+ '%GeneratorFunction%': needsEval,
1733
1725
  '%Int8Array%': typeof Int8Array === 'undefined' ? undefined$1 : Int8Array,
1734
- '%Int8ArrayPrototype%': typeof Int8Array === 'undefined' ? undefined$1 : Int8Array.prototype,
1735
1726
  '%Int16Array%': typeof Int16Array === 'undefined' ? undefined$1 : Int16Array,
1736
- '%Int16ArrayPrototype%': typeof Int16Array === 'undefined' ? undefined$1 : Int8Array.prototype,
1737
1727
  '%Int32Array%': typeof Int32Array === 'undefined' ? undefined$1 : Int32Array,
1738
- '%Int32ArrayPrototype%': typeof Int32Array === 'undefined' ? undefined$1 : Int32Array.prototype,
1739
1728
  '%isFinite%': isFinite,
1740
1729
  '%isNaN%': isNaN,
1741
1730
  '%IteratorPrototype%': hasSymbols$2 ? getProto(getProto([][Symbol.iterator]())) : undefined$1,
1742
1731
  '%JSON%': typeof JSON === 'object' ? JSON : undefined$1,
1743
- '%JSONParse%': typeof JSON === 'object' ? JSON.parse : undefined$1,
1744
1732
  '%Map%': typeof Map === 'undefined' ? undefined$1 : Map,
1745
1733
  '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$2 ? undefined$1 : getProto(new Map()[Symbol.iterator]()),
1746
- '%MapPrototype%': typeof Map === 'undefined' ? undefined$1 : Map.prototype,
1747
1734
  '%Math%': Math,
1748
1735
  '%Number%': Number,
1749
- '%NumberPrototype%': Number.prototype,
1750
1736
  '%Object%': Object,
1751
- '%ObjectPrototype%': Object.prototype,
1752
- '%ObjProto_toString%': Object.prototype.toString,
1753
- '%ObjProto_valueOf%': Object.prototype.valueOf,
1754
1737
  '%parseFloat%': parseFloat,
1755
1738
  '%parseInt%': parseInt,
1756
1739
  '%Promise%': typeof Promise === 'undefined' ? undefined$1 : Promise,
1757
- '%PromisePrototype%': typeof Promise === 'undefined' ? undefined$1 : Promise.prototype,
1758
- '%PromiseProto_then%': typeof Promise === 'undefined' ? undefined$1 : Promise.prototype.then,
1759
- '%Promise_all%': typeof Promise === 'undefined' ? undefined$1 : Promise.all,
1760
- '%Promise_reject%': typeof Promise === 'undefined' ? undefined$1 : Promise.reject,
1761
- '%Promise_resolve%': typeof Promise === 'undefined' ? undefined$1 : Promise.resolve,
1762
1740
  '%Proxy%': typeof Proxy === 'undefined' ? undefined$1 : Proxy,
1763
1741
  '%RangeError%': RangeError,
1764
- '%RangeErrorPrototype%': RangeError.prototype,
1765
1742
  '%ReferenceError%': ReferenceError,
1766
- '%ReferenceErrorPrototype%': ReferenceError.prototype,
1767
1743
  '%Reflect%': typeof Reflect === 'undefined' ? undefined$1 : Reflect,
1768
1744
  '%RegExp%': RegExp,
1769
- '%RegExpPrototype%': RegExp.prototype,
1770
1745
  '%Set%': typeof Set === 'undefined' ? undefined$1 : Set,
1771
1746
  '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$2 ? undefined$1 : getProto(new Set()[Symbol.iterator]()),
1772
- '%SetPrototype%': typeof Set === 'undefined' ? undefined$1 : Set.prototype,
1773
1747
  '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$1 : SharedArrayBuffer,
1774
- '%SharedArrayBufferPrototype%': typeof SharedArrayBuffer === 'undefined' ? undefined$1 : SharedArrayBuffer.prototype,
1775
1748
  '%String%': String,
1776
1749
  '%StringIteratorPrototype%': hasSymbols$2 ? getProto(''[Symbol.iterator]()) : undefined$1,
1777
- '%StringPrototype%': String.prototype,
1778
1750
  '%Symbol%': hasSymbols$2 ? Symbol : undefined$1,
1779
- '%SymbolPrototype%': hasSymbols$2 ? Symbol.prototype : undefined$1,
1780
- '%SyntaxError%': SyntaxError,
1781
- '%SyntaxErrorPrototype%': SyntaxError.prototype,
1751
+ '%SyntaxError%': $SyntaxError,
1782
1752
  '%ThrowTypeError%': ThrowTypeError,
1783
1753
  '%TypedArray%': TypedArray,
1784
- '%TypedArrayPrototype%': TypedArray ? TypedArray.prototype : undefined$1,
1785
1754
  '%TypeError%': $TypeError,
1786
- '%TypeErrorPrototype%': $TypeError.prototype,
1787
1755
  '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$1 : Uint8Array,
1788
- '%Uint8ArrayPrototype%': typeof Uint8Array === 'undefined' ? undefined$1 : Uint8Array.prototype,
1789
1756
  '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$1 : Uint8ClampedArray,
1790
- '%Uint8ClampedArrayPrototype%': typeof Uint8ClampedArray === 'undefined' ? undefined$1 : Uint8ClampedArray.prototype,
1791
1757
  '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$1 : Uint16Array,
1792
- '%Uint16ArrayPrototype%': typeof Uint16Array === 'undefined' ? undefined$1 : Uint16Array.prototype,
1793
1758
  '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined$1 : Uint32Array,
1794
- '%Uint32ArrayPrototype%': typeof Uint32Array === 'undefined' ? undefined$1 : Uint32Array.prototype,
1795
1759
  '%URIError%': URIError,
1796
- '%URIErrorPrototype%': URIError.prototype,
1797
1760
  '%WeakMap%': typeof WeakMap === 'undefined' ? undefined$1 : WeakMap,
1798
- '%WeakMapPrototype%': typeof WeakMap === 'undefined' ? undefined$1 : WeakMap.prototype,
1799
- '%WeakSet%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet,
1800
- '%WeakSetPrototype%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet.prototype
1761
+ '%WeakRef%': typeof WeakRef === 'undefined' ? undefined$1 : WeakRef,
1762
+ '%WeakSet%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet
1763
+ };
1764
+
1765
+ var doEval = function doEval(name) {
1766
+ var value;
1767
+ if (name === '%AsyncFunction%') {
1768
+ value = getEvalledConstructor('async function () {}');
1769
+ } else if (name === '%GeneratorFunction%') {
1770
+ value = getEvalledConstructor('function* () {}');
1771
+ } else if (name === '%AsyncGeneratorFunction%') {
1772
+ value = getEvalledConstructor('async function* () {}');
1773
+ } else if (name === '%AsyncGenerator%') {
1774
+ var fn = doEval('%AsyncGeneratorFunction%');
1775
+ if (fn) {
1776
+ value = fn.prototype;
1777
+ }
1778
+ } else if (name === '%AsyncIteratorPrototype%') {
1779
+ var gen = doEval('%AsyncGenerator%');
1780
+ if (gen) {
1781
+ value = getProto(gen.prototype);
1782
+ }
1783
+ }
1784
+
1785
+ INTRINSICS[name] = value;
1786
+
1787
+ return value;
1788
+ };
1789
+
1790
+ var LEGACY_ALIASES = {
1791
+ '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
1792
+ '%ArrayPrototype%': ['Array', 'prototype'],
1793
+ '%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
1794
+ '%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
1795
+ '%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
1796
+ '%ArrayProto_values%': ['Array', 'prototype', 'values'],
1797
+ '%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
1798
+ '%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
1799
+ '%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
1800
+ '%BooleanPrototype%': ['Boolean', 'prototype'],
1801
+ '%DataViewPrototype%': ['DataView', 'prototype'],
1802
+ '%DatePrototype%': ['Date', 'prototype'],
1803
+ '%ErrorPrototype%': ['Error', 'prototype'],
1804
+ '%EvalErrorPrototype%': ['EvalError', 'prototype'],
1805
+ '%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
1806
+ '%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
1807
+ '%FunctionPrototype%': ['Function', 'prototype'],
1808
+ '%Generator%': ['GeneratorFunction', 'prototype'],
1809
+ '%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
1810
+ '%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
1811
+ '%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
1812
+ '%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
1813
+ '%JSONParse%': ['JSON', 'parse'],
1814
+ '%JSONStringify%': ['JSON', 'stringify'],
1815
+ '%MapPrototype%': ['Map', 'prototype'],
1816
+ '%NumberPrototype%': ['Number', 'prototype'],
1817
+ '%ObjectPrototype%': ['Object', 'prototype'],
1818
+ '%ObjProto_toString%': ['Object', 'prototype', 'toString'],
1819
+ '%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
1820
+ '%PromisePrototype%': ['Promise', 'prototype'],
1821
+ '%PromiseProto_then%': ['Promise', 'prototype', 'then'],
1822
+ '%Promise_all%': ['Promise', 'all'],
1823
+ '%Promise_reject%': ['Promise', 'reject'],
1824
+ '%Promise_resolve%': ['Promise', 'resolve'],
1825
+ '%RangeErrorPrototype%': ['RangeError', 'prototype'],
1826
+ '%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
1827
+ '%RegExpPrototype%': ['RegExp', 'prototype'],
1828
+ '%SetPrototype%': ['Set', 'prototype'],
1829
+ '%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
1830
+ '%StringPrototype%': ['String', 'prototype'],
1831
+ '%SymbolPrototype%': ['Symbol', 'prototype'],
1832
+ '%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
1833
+ '%TypedArrayPrototype%': ['TypedArray', 'prototype'],
1834
+ '%TypeErrorPrototype%': ['TypeError', 'prototype'],
1835
+ '%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
1836
+ '%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
1837
+ '%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
1838
+ '%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
1839
+ '%URIErrorPrototype%': ['URIError', 'prototype'],
1840
+ '%WeakMapPrototype%': ['WeakMap', 'prototype'],
1841
+ '%WeakSetPrototype%': ['WeakSet', 'prototype']
1801
1842
  };
1802
1843
 
1803
1844
 
1845
+
1846
+ var $concat = functionBind.call(Function.call, Array.prototype.concat);
1847
+ var $spliceApply = functionBind.call(Function.apply, Array.prototype.splice);
1804
1848
  var $replace = functionBind.call(Function.call, String.prototype.replace);
1849
+ var $strSlice = functionBind.call(Function.call, String.prototype.slice);
1805
1850
 
1806
1851
  /* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
1807
1852
  var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
1808
1853
  var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
1809
1854
  var stringToPath = function stringToPath(string) {
1855
+ var first = $strSlice(string, 0, 1);
1856
+ var last = $strSlice(string, -1);
1857
+ if (first === '%' && last !== '%') {
1858
+ throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
1859
+ } else if (last === '%' && first !== '%') {
1860
+ throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
1861
+ }
1810
1862
  var result = [];
1811
1863
  $replace(string, rePropName, function (match, number, quote, subString) {
1812
- result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : (number || match);
1864
+ result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
1813
1865
  });
1814
1866
  return result;
1815
1867
  };
1816
1868
  /* end adaptation */
1817
1869
 
1818
1870
  var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
1819
- if (!(name in INTRINSICS)) {
1820
- throw new SyntaxError('intrinsic ' + name + ' does not exist!');
1871
+ var intrinsicName = name;
1872
+ var alias;
1873
+ if (src(LEGACY_ALIASES, intrinsicName)) {
1874
+ alias = LEGACY_ALIASES[intrinsicName];
1875
+ intrinsicName = '%' + alias[0] + '%';
1821
1876
  }
1822
1877
 
1823
- // istanbul ignore if // hopefully this is impossible to test :-)
1824
- if (typeof INTRINSICS[name] === 'undefined' && !allowMissing) {
1825
- throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
1878
+ if (src(INTRINSICS, intrinsicName)) {
1879
+ var value = INTRINSICS[intrinsicName];
1880
+ if (value === needsEval) {
1881
+ value = doEval(intrinsicName);
1882
+ }
1883
+ if (typeof value === 'undefined' && !allowMissing) {
1884
+ throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
1885
+ }
1886
+
1887
+ return {
1888
+ alias: alias,
1889
+ name: intrinsicName,
1890
+ value: value
1891
+ };
1826
1892
  }
1827
1893
 
1828
- return INTRINSICS[name];
1894
+ throw new $SyntaxError('intrinsic ' + name + ' does not exist!');
1829
1895
  };
1830
1896
 
1831
- var GetIntrinsic = function GetIntrinsic(name, allowMissing) {
1897
+ var getIntrinsic = function GetIntrinsic(name, allowMissing) {
1832
1898
  if (typeof name !== 'string' || name.length === 0) {
1833
- throw new TypeError('intrinsic name must be a non-empty string');
1899
+ throw new $TypeError('intrinsic name must be a non-empty string');
1834
1900
  }
1835
1901
  if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
1836
- throw new TypeError('"allowMissing" argument must be a boolean');
1902
+ throw new $TypeError('"allowMissing" argument must be a boolean');
1837
1903
  }
1838
1904
 
1839
1905
  var parts = stringToPath(name);
1906
+ var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
1840
1907
 
1841
- var value = getBaseIntrinsic('%' + (parts.length > 0 ? parts[0] : '') + '%', allowMissing);
1842
- for (var i = 1; i < parts.length; i += 1) {
1843
- if (value != null) {
1844
- if ($gOPD && (i + 1) >= parts.length) {
1845
- var desc = $gOPD(value, parts[i]);
1846
- if (!allowMissing && !(parts[i] in value)) {
1908
+ var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
1909
+ var intrinsicRealName = intrinsic.name;
1910
+ var value = intrinsic.value;
1911
+ var skipFurtherCaching = false;
1912
+
1913
+ var alias = intrinsic.alias;
1914
+ if (alias) {
1915
+ intrinsicBaseName = alias[0];
1916
+ $spliceApply(parts, $concat([0, 1], alias));
1917
+ }
1918
+
1919
+ for (var i = 1, isOwn = true; i < parts.length; i += 1) {
1920
+ var part = parts[i];
1921
+ var first = $strSlice(part, 0, 1);
1922
+ var last = $strSlice(part, -1);
1923
+ if (
1924
+ (
1925
+ (first === '"' || first === "'" || first === '`')
1926
+ || (last === '"' || last === "'" || last === '`')
1927
+ )
1928
+ && first !== last
1929
+ ) {
1930
+ throw new $SyntaxError('property names with quotes must have matching quotes');
1931
+ }
1932
+ if (part === 'constructor' || !isOwn) {
1933
+ skipFurtherCaching = true;
1934
+ }
1935
+
1936
+ intrinsicBaseName += '.' + part;
1937
+ intrinsicRealName = '%' + intrinsicBaseName + '%';
1938
+
1939
+ if (src(INTRINSICS, intrinsicRealName)) {
1940
+ value = INTRINSICS[intrinsicRealName];
1941
+ } else if (value != null) {
1942
+ if (!(part in value)) {
1943
+ if (!allowMissing) {
1847
1944
  throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
1848
1945
  }
1946
+ return void undefined$1;
1947
+ }
1948
+ if ($gOPD && (i + 1) >= parts.length) {
1949
+ var desc = $gOPD(value, part);
1950
+ isOwn = !!desc;
1951
+
1849
1952
  // By convention, when a data property is converted to an accessor
1850
1953
  // property to emulate a data property that does not suffer from
1851
1954
  // the override mistake, that accessor's getter is marked with
@@ -1853,9 +1956,18 @@ var GetIntrinsic = function GetIntrinsic(name, allowMissing) {
1853
1956
  // uphold the illusion by pretending to see that original data
1854
1957
  // property, i.e., returning the value rather than the getter
1855
1958
  // itself.
1856
- value = desc && 'get' in desc && !('originalValue' in desc.get) ? desc.get : value[parts[i]];
1959
+ if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
1960
+ value = desc.get;
1961
+ } else {
1962
+ value = value[part];
1963
+ }
1857
1964
  } else {
1858
- value = value[parts[i]];
1965
+ isOwn = src(value, part);
1966
+ value = value[part];
1967
+ }
1968
+
1969
+ if (isOwn && !skipFurtherCaching) {
1970
+ INTRINSICS[intrinsicRealName] = value;
1859
1971
  }
1860
1972
  }
1861
1973
  }
@@ -1867,12 +1979,13 @@ var callBind = createCommonjsModule(function (module) {
1867
1979
 
1868
1980
 
1869
1981
 
1982
+ var $apply = getIntrinsic('%Function.prototype.apply%');
1983
+ var $call = getIntrinsic('%Function.prototype.call%');
1984
+ var $reflectApply = getIntrinsic('%Reflect.apply%', true) || functionBind.call($call, $apply);
1870
1985
 
1871
- var $apply = GetIntrinsic('%Function.prototype.apply%');
1872
- var $call = GetIntrinsic('%Function.prototype.call%');
1873
- var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || functionBind.call($call, $apply);
1874
-
1875
- var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
1986
+ var $gOPD = getIntrinsic('%Object.getOwnPropertyDescriptor%', true);
1987
+ var $defineProperty = getIntrinsic('%Object.defineProperty%', true);
1988
+ var $max = getIntrinsic('%Math.max%');
1876
1989
 
1877
1990
  if ($defineProperty) {
1878
1991
  try {
@@ -1883,8 +1996,20 @@ if ($defineProperty) {
1883
1996
  }
1884
1997
  }
1885
1998
 
1886
- module.exports = function callBind() {
1887
- return $reflectApply(functionBind, $call, arguments);
1999
+ module.exports = function callBind(originalFunction) {
2000
+ var func = $reflectApply(functionBind, $call, arguments);
2001
+ if ($gOPD && $defineProperty) {
2002
+ var desc = $gOPD(func, 'length');
2003
+ if (desc.configurable) {
2004
+ // original length, plus the receiver, minus any additional arguments (after the receiver)
2005
+ $defineProperty(
2006
+ func,
2007
+ 'length',
2008
+ { value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }
2009
+ );
2010
+ }
2011
+ }
2012
+ return func;
1888
2013
  };
1889
2014
 
1890
2015
  var applyBind = function applyBind() {
@@ -1897,19 +2022,19 @@ if ($defineProperty) {
1897
2022
  module.exports.apply = applyBind;
1898
2023
  }
1899
2024
  });
1900
- var callBind_1 = callBind.apply;
2025
+ callBind.apply;
1901
2026
 
1902
- var $indexOf = callBind(GetIntrinsic('String.prototype.indexOf'));
2027
+ var $indexOf = callBind(getIntrinsic('String.prototype.indexOf'));
1903
2028
 
1904
2029
  var callBound = function callBoundIntrinsic(name, allowMissing) {
1905
- var intrinsic = GetIntrinsic(name, !!allowMissing);
1906
- if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.')) {
2030
+ var intrinsic = getIntrinsic(name, !!allowMissing);
2031
+ if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
1907
2032
  return callBind(intrinsic);
1908
2033
  }
1909
2034
  return intrinsic;
1910
2035
  };
1911
2036
 
1912
- var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
2037
+ var $defineProperty = getIntrinsic('%Object.defineProperty%', true);
1913
2038
 
1914
2039
  if ($defineProperty) {
1915
2040
  try {
@@ -1951,10 +2076,8 @@ var DefineOwnProperty = function DefineOwnProperty(IsDataDescriptor, SameValue,
1951
2076
  return true;
1952
2077
  };
1953
2078
 
1954
- var src = functionBind.call(Function.call, Object.prototype.hasOwnProperty);
1955
-
1956
- var $TypeError$1 = GetIntrinsic('%TypeError%');
1957
- var $SyntaxError = GetIntrinsic('%SyntaxError%');
2079
+ var $TypeError$1 = getIntrinsic('%TypeError%');
2080
+ var $SyntaxError$1 = getIntrinsic('%SyntaxError%');
1958
2081
 
1959
2082
 
1960
2083
 
@@ -1991,14 +2114,14 @@ var predicates = {
1991
2114
  var assertRecord = function assertRecord(Type, recordType, argumentName, value) {
1992
2115
  var predicate = predicates[recordType];
1993
2116
  if (typeof predicate !== 'function') {
1994
- throw new $SyntaxError('unknown record type: ' + recordType);
2117
+ throw new $SyntaxError$1('unknown record type: ' + recordType);
1995
2118
  }
1996
2119
  if (!predicate(Type, value)) {
1997
2120
  throw new $TypeError$1(argumentName + ' must be a ' + recordType);
1998
2121
  }
1999
2122
  };
2000
2123
 
2001
- // https://www.ecma-international.org/ecma-262/5.1/#sec-8
2124
+ // https://ecma-international.org/ecma-262/5.1/#sec-8
2002
2125
 
2003
2126
  var Type = function Type(x) {
2004
2127
  if (x === null) {
@@ -2021,16 +2144,19 @@ var Type = function Type(x) {
2021
2144
  }
2022
2145
  };
2023
2146
 
2024
- // https://ecma-international.org/ecma-262/6.0/#sec-ecmascript-data-types-and-values
2147
+ // https://ecma-international.org/ecma-262/11.0/#sec-ecmascript-data-types-and-values
2025
2148
 
2026
2149
  var Type$1 = function Type$1(x) {
2027
2150
  if (typeof x === 'symbol') {
2028
2151
  return 'Symbol';
2029
2152
  }
2153
+ if (typeof x === 'bigint') {
2154
+ return 'BigInt';
2155
+ }
2030
2156
  return Type(x);
2031
2157
  };
2032
2158
 
2033
- // https://www.ecma-international.org/ecma-262/6.0/#sec-frompropertydescriptor
2159
+ // https://ecma-international.org/ecma-262/6.0/#sec-frompropertydescriptor
2034
2160
 
2035
2161
  var FromPropertyDescriptor = function FromPropertyDescriptor(Desc) {
2036
2162
  if (typeof Desc === 'undefined') {
@@ -2061,7 +2187,7 @@ var FromPropertyDescriptor = function FromPropertyDescriptor(Desc) {
2061
2187
  return obj;
2062
2188
  };
2063
2189
 
2064
- var $gOPD$1 = GetIntrinsic('%Object.getOwnPropertyDescriptor%');
2190
+ var $gOPD$1 = getIntrinsic('%Object.getOwnPropertyDescriptor%');
2065
2191
  if ($gOPD$1) {
2066
2192
  try {
2067
2193
  $gOPD$1([], 'length');
@@ -2073,18 +2199,18 @@ if ($gOPD$1) {
2073
2199
 
2074
2200
  var getOwnPropertyDescriptor = $gOPD$1;
2075
2201
 
2076
- var $Array = GetIntrinsic('%Array%');
2202
+ var $Array = getIntrinsic('%Array%');
2077
2203
 
2078
2204
  // eslint-disable-next-line global-require
2079
2205
  var toStr$4 = !$Array.isArray && callBound('Object.prototype.toString');
2080
2206
 
2081
- // https://www.ecma-international.org/ecma-262/6.0/#sec-isarray
2207
+ // https://ecma-international.org/ecma-262/6.0/#sec-isarray
2082
2208
 
2083
2209
  var IsArray = $Array.isArray || function IsArray(argument) {
2084
2210
  return toStr$4(argument) === '[object Array]';
2085
2211
  };
2086
2212
 
2087
- // https://www.ecma-international.org/ecma-262/6.0/#sec-ispropertykey
2213
+ // https://ecma-international.org/ecma-262/6.0/#sec-ispropertykey
2088
2214
 
2089
2215
  var IsPropertyKey = function IsPropertyKey(argument) {
2090
2216
  return typeof argument === 'string' || typeof argument === 'symbol';
@@ -2092,14 +2218,14 @@ var IsPropertyKey = function IsPropertyKey(argument) {
2092
2218
 
2093
2219
  var hasSymbols$3 = hasSymbols$1();
2094
2220
  var hasToStringTag = hasSymbols$3 && typeof Symbol.toStringTag === 'symbol';
2095
- var hasOwnProperty;
2096
- var regexExec;
2221
+ var has$1;
2222
+ var $exec;
2097
2223
  var isRegexMarker;
2098
2224
  var badStringifier;
2099
2225
 
2100
2226
  if (hasToStringTag) {
2101
- hasOwnProperty = Function.call.bind(Object.prototype.hasOwnProperty);
2102
- regexExec = Function.call.bind(RegExp.prototype.exec);
2227
+ has$1 = callBound('Object.prototype.hasOwnProperty');
2228
+ $exec = callBound('RegExp.prototype.exec');
2103
2229
  isRegexMarker = {};
2104
2230
 
2105
2231
  var throwRegexMarker = function () {
@@ -2115,7 +2241,7 @@ if (hasToStringTag) {
2115
2241
  }
2116
2242
  }
2117
2243
 
2118
- var toStr$5 = Object.prototype.toString;
2244
+ var $toString = callBound('Object.prototype.toString');
2119
2245
  var gOPD = Object.getOwnPropertyDescriptor;
2120
2246
  var regexClass = '[object RegExp]';
2121
2247
 
@@ -2127,13 +2253,13 @@ var isRegex = hasToStringTag
2127
2253
  }
2128
2254
 
2129
2255
  var descriptor = gOPD(value, 'lastIndex');
2130
- var hasLastIndexDataProperty = descriptor && hasOwnProperty(descriptor, 'value');
2256
+ var hasLastIndexDataProperty = descriptor && has$1(descriptor, 'value');
2131
2257
  if (!hasLastIndexDataProperty) {
2132
2258
  return false;
2133
2259
  }
2134
2260
 
2135
2261
  try {
2136
- regexExec(value, badStringifier);
2262
+ $exec(value, badStringifier);
2137
2263
  } catch (e) {
2138
2264
  return e === isRegexMarker;
2139
2265
  }
@@ -2144,14 +2270,14 @@ var isRegex = hasToStringTag
2144
2270
  return false;
2145
2271
  }
2146
2272
 
2147
- return toStr$5.call(value) === regexClass;
2273
+ return $toString(value) === regexClass;
2148
2274
  };
2149
2275
 
2150
- // http://www.ecma-international.org/ecma-262/5.1/#sec-9.2
2276
+ // http://ecma-international.org/ecma-262/5.1/#sec-9.2
2151
2277
 
2152
2278
  var ToBoolean = function ToBoolean(value) { return !!value; };
2153
2279
 
2154
- var $match = GetIntrinsic('%Symbol.match%', true);
2280
+ var $match = getIntrinsic('%Symbol.match%', true);
2155
2281
 
2156
2282
 
2157
2283
 
@@ -2214,13 +2340,16 @@ var tryFunctionObject = function tryFunctionToStr(value) {
2214
2340
  return false;
2215
2341
  }
2216
2342
  };
2217
- var toStr$6 = Object.prototype.toString;
2343
+ var toStr$5 = Object.prototype.toString;
2218
2344
  var fnClass = '[object Function]';
2219
2345
  var genClass = '[object GeneratorFunction]';
2220
2346
  var hasToStringTag$1 = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
2347
+ /* globals document: false */
2348
+ var documentDotAll = typeof document === 'object' && typeof document.all === 'undefined' && document.all !== undefined ? document.all : {};
2221
2349
 
2222
2350
  var isCallable = reflectApply
2223
2351
  ? function isCallable(value) {
2352
+ if (value === documentDotAll) { return true; }
2224
2353
  if (!value) { return false; }
2225
2354
  if (typeof value !== 'function' && typeof value !== 'object') { return false; }
2226
2355
  if (typeof value === 'function' && !value.prototype) { return true; }
@@ -2232,20 +2361,21 @@ var isCallable = reflectApply
2232
2361
  return !isES6ClassFn(value);
2233
2362
  }
2234
2363
  : function isCallable(value) {
2364
+ if (value === documentDotAll) { return true; }
2235
2365
  if (!value) { return false; }
2236
2366
  if (typeof value !== 'function' && typeof value !== 'object') { return false; }
2237
2367
  if (typeof value === 'function' && !value.prototype) { return true; }
2238
2368
  if (hasToStringTag$1) { return tryFunctionObject(value); }
2239
2369
  if (isES6ClassFn(value)) { return false; }
2240
- var strClass = toStr$6.call(value);
2370
+ var strClass = toStr$5.call(value);
2241
2371
  return strClass === fnClass || strClass === genClass;
2242
2372
  };
2243
2373
 
2244
- // http://www.ecma-international.org/ecma-262/5.1/#sec-9.11
2374
+ // http://ecma-international.org/ecma-262/5.1/#sec-9.11
2245
2375
 
2246
2376
  var IsCallable = isCallable;
2247
2377
 
2248
- var $TypeError$2 = GetIntrinsic('%TypeError%');
2378
+ var $TypeError$2 = getIntrinsic('%TypeError%');
2249
2379
 
2250
2380
 
2251
2381
 
@@ -2292,7 +2422,7 @@ var ToPropertyDescriptor = function ToPropertyDescriptor(Obj) {
2292
2422
  return desc;
2293
2423
  };
2294
2424
 
2295
- var $TypeError$3 = GetIntrinsic('%TypeError%');
2425
+ var $TypeError$3 = getIntrinsic('%TypeError%');
2296
2426
 
2297
2427
 
2298
2428
 
@@ -2306,7 +2436,7 @@ var $isEnumerable$1 = callBound('Object.prototype.propertyIsEnumerable');
2306
2436
 
2307
2437
 
2308
2438
 
2309
- // https://www.ecma-international.org/ecma-262/6.0/#sec-ordinarygetownproperty
2439
+ // https://ecma-international.org/ecma-262/6.0/#sec-ordinarygetownproperty
2310
2440
 
2311
2441
  var OrdinaryGetOwnProperty = function OrdinaryGetOwnProperty(O, P) {
2312
2442
  if (Type$1(O) !== 'Object') {
@@ -2332,7 +2462,7 @@ var OrdinaryGetOwnProperty = function OrdinaryGetOwnProperty(O, P) {
2332
2462
  return ToPropertyDescriptor(getOwnPropertyDescriptor(O, P));
2333
2463
  };
2334
2464
 
2335
- // https://www.ecma-international.org/ecma-262/6.0/#sec-isdatadescriptor
2465
+ // https://ecma-international.org/ecma-262/6.0/#sec-isdatadescriptor
2336
2466
 
2337
2467
  var IsDataDescriptor = function IsDataDescriptor(Desc) {
2338
2468
  if (typeof Desc === 'undefined') {
@@ -2352,14 +2482,14 @@ var isPrimitive = function isPrimitive(value) {
2352
2482
  return value === null || (typeof value !== 'function' && typeof value !== 'object');
2353
2483
  };
2354
2484
 
2355
- var $Object = GetIntrinsic('%Object%');
2485
+ var $Object = getIntrinsic('%Object%');
2356
2486
 
2357
2487
 
2358
2488
 
2359
2489
  var $preventExtensions = $Object.preventExtensions;
2360
2490
  var $isExtensible = $Object.isExtensible;
2361
2491
 
2362
- // https://www.ecma-international.org/ecma-262/6.0/#sec-isextensible-o
2492
+ // https://ecma-international.org/ecma-262/6.0/#sec-isextensible-o
2363
2493
 
2364
2494
  var IsExtensible = $preventExtensions
2365
2495
  ? function IsExtensible(obj) {
@@ -2373,7 +2503,7 @@ var _isNaN = Number.isNaN || function isNaN(a) {
2373
2503
  return a !== a;
2374
2504
  };
2375
2505
 
2376
- // http://www.ecma-international.org/ecma-262/5.1/#sec-9.12
2506
+ // http://ecma-international.org/ecma-262/5.1/#sec-9.12
2377
2507
 
2378
2508
  var SameValue = function SameValue(x, y) {
2379
2509
  if (x === y) { // 0 === -0, but they are not identical.
@@ -2383,7 +2513,7 @@ var SameValue = function SameValue(x, y) {
2383
2513
  return _isNaN(x) && _isNaN(y);
2384
2514
  };
2385
2515
 
2386
- var $TypeError$4 = GetIntrinsic('%TypeError%');
2516
+ var $TypeError$4 = getIntrinsic('%TypeError%');
2387
2517
 
2388
2518
 
2389
2519
 
@@ -2395,7 +2525,7 @@ var $TypeError$4 = GetIntrinsic('%TypeError%');
2395
2525
 
2396
2526
 
2397
2527
 
2398
- // https://www.ecma-international.org/ecma-262/6.0/#sec-createdataproperty
2528
+ // https://ecma-international.org/ecma-262/6.0/#sec-createdataproperty
2399
2529
 
2400
2530
  var CreateDataProperty = function CreateDataProperty(O, P, V) {
2401
2531
  if (Type$1(O) !== 'Object') {
@@ -2425,9 +2555,9 @@ var CreateDataProperty = function CreateDataProperty(O, P, V) {
2425
2555
  );
2426
2556
  };
2427
2557
 
2428
- var $TypeError$5 = GetIntrinsic('%TypeError%');
2558
+ var $TypeError$5 = getIntrinsic('%TypeError%');
2429
2559
 
2430
- // http://www.ecma-international.org/ecma-262/5.1/#sec-9.10
2560
+ // http://ecma-international.org/ecma-262/5.1/#sec-9.10
2431
2561
 
2432
2562
  var CheckObjectCoercible = function CheckObjectCoercible(value, optMessage) {
2433
2563
  if (value == null) {
@@ -2438,11 +2568,11 @@ var CheckObjectCoercible = function CheckObjectCoercible(value, optMessage) {
2438
2568
 
2439
2569
  var RequireObjectCoercible = CheckObjectCoercible;
2440
2570
 
2441
- var $Object$1 = GetIntrinsic('%Object%');
2571
+ var $Object$1 = getIntrinsic('%Object%');
2442
2572
 
2443
2573
 
2444
2574
 
2445
- // https://www.ecma-international.org/ecma-262/6.0/#sec-toobject
2575
+ // https://ecma-international.org/ecma-262/6.0/#sec-toobject
2446
2576
 
2447
2577
  var ToObject = function ToObject(value) {
2448
2578
  RequireObjectCoercible(value);
@@ -2452,10 +2582,10 @@ var ToObject = function ToObject(value) {
2452
2582
  var $gOPD$2 = Object.getOwnPropertyDescriptor;
2453
2583
  var $getOwnNames = Object.getOwnPropertyNames;
2454
2584
  var $getSymbols = Object.getOwnPropertySymbols;
2455
- var $concat = callBound('Array.prototype.concat');
2585
+ var $concat$1 = callBound('Array.prototype.concat');
2456
2586
  var $reduce = callBound('Array.prototype.reduce');
2457
2587
  var getAll = $getSymbols ? function (obj) {
2458
- return $concat($getOwnNames(obj), $getSymbols(obj));
2588
+ return $concat$1($getOwnNames(obj), $getSymbols(obj));
2459
2589
  } : $getOwnNames;
2460
2590
 
2461
2591
  var isES5 = IsCallable($gOPD$2) && IsCallable($getOwnNames);
@@ -2494,13 +2624,281 @@ var shim = function shimGetOwnPropertyDescriptors() {
2494
2624
  return polyfill$1;
2495
2625
  };
2496
2626
 
2497
- defineProperties_1(implementation$2, {
2627
+ var bound = callBind(polyfill(), Object);
2628
+
2629
+ defineProperties_1(bound, {
2498
2630
  getPolyfill: polyfill,
2499
2631
  implementation: implementation$2,
2500
2632
  shim: shim
2501
2633
  });
2502
2634
 
2503
- var object_getownpropertydescriptors = implementation$2;
2635
+ var object_getownpropertydescriptors = bound;
2636
+
2637
+ /* globals
2638
+ Atomics,
2639
+ SharedArrayBuffer,
2640
+ */
2641
+
2642
+ var undefined$2;
2643
+
2644
+ var $TypeError$6 = TypeError;
2645
+
2646
+ var $gOPD$3 = Object.getOwnPropertyDescriptor;
2647
+ if ($gOPD$3) {
2648
+ try {
2649
+ $gOPD$3({}, '');
2650
+ } catch (e) {
2651
+ $gOPD$3 = null; // this is IE 8, which has a broken gOPD
2652
+ }
2653
+ }
2654
+
2655
+ var throwTypeError$1 = function () { throw new $TypeError$6(); };
2656
+ var ThrowTypeError$1 = $gOPD$3
2657
+ ? (function () {
2658
+ try {
2659
+ // eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
2660
+ arguments.callee; // IE 8 does not throw here
2661
+ return throwTypeError$1;
2662
+ } catch (calleeThrows) {
2663
+ try {
2664
+ // IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
2665
+ return $gOPD$3(arguments, 'callee').get;
2666
+ } catch (gOPDthrows) {
2667
+ return throwTypeError$1;
2668
+ }
2669
+ }
2670
+ }())
2671
+ : throwTypeError$1;
2672
+
2673
+ var hasSymbols$4 = hasSymbols$1();
2674
+
2675
+ var getProto$1 = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
2676
+ var generatorFunction = undefined$2;
2677
+ var asyncFunction = undefined$2;
2678
+ var asyncGenFunction = undefined$2;
2679
+
2680
+ var TypedArray$1 = typeof Uint8Array === 'undefined' ? undefined$2 : getProto$1(Uint8Array);
2681
+
2682
+ var INTRINSICS$1 = {
2683
+ '%Array%': Array,
2684
+ '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$2 : ArrayBuffer,
2685
+ '%ArrayBufferPrototype%': typeof ArrayBuffer === 'undefined' ? undefined$2 : ArrayBuffer.prototype,
2686
+ '%ArrayIteratorPrototype%': hasSymbols$4 ? getProto$1([][Symbol.iterator]()) : undefined$2,
2687
+ '%ArrayPrototype%': Array.prototype,
2688
+ '%ArrayProto_entries%': Array.prototype.entries,
2689
+ '%ArrayProto_forEach%': Array.prototype.forEach,
2690
+ '%ArrayProto_keys%': Array.prototype.keys,
2691
+ '%ArrayProto_values%': Array.prototype.values,
2692
+ '%AsyncFromSyncIteratorPrototype%': undefined$2,
2693
+ '%AsyncFunction%': asyncFunction,
2694
+ '%AsyncFunctionPrototype%': undefined$2,
2695
+ '%AsyncGenerator%': undefined$2,
2696
+ '%AsyncGeneratorFunction%': asyncGenFunction,
2697
+ '%AsyncGeneratorPrototype%': undefined$2,
2698
+ '%AsyncIteratorPrototype%': undefined$2,
2699
+ '%Atomics%': typeof Atomics === 'undefined' ? undefined$2 : Atomics,
2700
+ '%Boolean%': Boolean,
2701
+ '%BooleanPrototype%': Boolean.prototype,
2702
+ '%DataView%': typeof DataView === 'undefined' ? undefined$2 : DataView,
2703
+ '%DataViewPrototype%': typeof DataView === 'undefined' ? undefined$2 : DataView.prototype,
2704
+ '%Date%': Date,
2705
+ '%DatePrototype%': Date.prototype,
2706
+ '%decodeURI%': decodeURI,
2707
+ '%decodeURIComponent%': decodeURIComponent,
2708
+ '%encodeURI%': encodeURI,
2709
+ '%encodeURIComponent%': encodeURIComponent,
2710
+ '%Error%': Error,
2711
+ '%ErrorPrototype%': Error.prototype,
2712
+ '%eval%': eval, // eslint-disable-line no-eval
2713
+ '%EvalError%': EvalError,
2714
+ '%EvalErrorPrototype%': EvalError.prototype,
2715
+ '%Float32Array%': typeof Float32Array === 'undefined' ? undefined$2 : Float32Array,
2716
+ '%Float32ArrayPrototype%': typeof Float32Array === 'undefined' ? undefined$2 : Float32Array.prototype,
2717
+ '%Float64Array%': typeof Float64Array === 'undefined' ? undefined$2 : Float64Array,
2718
+ '%Float64ArrayPrototype%': typeof Float64Array === 'undefined' ? undefined$2 : Float64Array.prototype,
2719
+ '%Function%': Function,
2720
+ '%FunctionPrototype%': Function.prototype,
2721
+ '%Generator%': undefined$2,
2722
+ '%GeneratorFunction%': generatorFunction,
2723
+ '%GeneratorPrototype%': undefined$2,
2724
+ '%Int8Array%': typeof Int8Array === 'undefined' ? undefined$2 : Int8Array,
2725
+ '%Int8ArrayPrototype%': typeof Int8Array === 'undefined' ? undefined$2 : Int8Array.prototype,
2726
+ '%Int16Array%': typeof Int16Array === 'undefined' ? undefined$2 : Int16Array,
2727
+ '%Int16ArrayPrototype%': typeof Int16Array === 'undefined' ? undefined$2 : Int8Array.prototype,
2728
+ '%Int32Array%': typeof Int32Array === 'undefined' ? undefined$2 : Int32Array,
2729
+ '%Int32ArrayPrototype%': typeof Int32Array === 'undefined' ? undefined$2 : Int32Array.prototype,
2730
+ '%isFinite%': isFinite,
2731
+ '%isNaN%': isNaN,
2732
+ '%IteratorPrototype%': hasSymbols$4 ? getProto$1(getProto$1([][Symbol.iterator]())) : undefined$2,
2733
+ '%JSON%': typeof JSON === 'object' ? JSON : undefined$2,
2734
+ '%JSONParse%': typeof JSON === 'object' ? JSON.parse : undefined$2,
2735
+ '%Map%': typeof Map === 'undefined' ? undefined$2 : Map,
2736
+ '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$4 ? undefined$2 : getProto$1(new Map()[Symbol.iterator]()),
2737
+ '%MapPrototype%': typeof Map === 'undefined' ? undefined$2 : Map.prototype,
2738
+ '%Math%': Math,
2739
+ '%Number%': Number,
2740
+ '%NumberPrototype%': Number.prototype,
2741
+ '%Object%': Object,
2742
+ '%ObjectPrototype%': Object.prototype,
2743
+ '%ObjProto_toString%': Object.prototype.toString,
2744
+ '%ObjProto_valueOf%': Object.prototype.valueOf,
2745
+ '%parseFloat%': parseFloat,
2746
+ '%parseInt%': parseInt,
2747
+ '%Promise%': typeof Promise === 'undefined' ? undefined$2 : Promise,
2748
+ '%PromisePrototype%': typeof Promise === 'undefined' ? undefined$2 : Promise.prototype,
2749
+ '%PromiseProto_then%': typeof Promise === 'undefined' ? undefined$2 : Promise.prototype.then,
2750
+ '%Promise_all%': typeof Promise === 'undefined' ? undefined$2 : Promise.all,
2751
+ '%Promise_reject%': typeof Promise === 'undefined' ? undefined$2 : Promise.reject,
2752
+ '%Promise_resolve%': typeof Promise === 'undefined' ? undefined$2 : Promise.resolve,
2753
+ '%Proxy%': typeof Proxy === 'undefined' ? undefined$2 : Proxy,
2754
+ '%RangeError%': RangeError,
2755
+ '%RangeErrorPrototype%': RangeError.prototype,
2756
+ '%ReferenceError%': ReferenceError,
2757
+ '%ReferenceErrorPrototype%': ReferenceError.prototype,
2758
+ '%Reflect%': typeof Reflect === 'undefined' ? undefined$2 : Reflect,
2759
+ '%RegExp%': RegExp,
2760
+ '%RegExpPrototype%': RegExp.prototype,
2761
+ '%Set%': typeof Set === 'undefined' ? undefined$2 : Set,
2762
+ '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$4 ? undefined$2 : getProto$1(new Set()[Symbol.iterator]()),
2763
+ '%SetPrototype%': typeof Set === 'undefined' ? undefined$2 : Set.prototype,
2764
+ '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$2 : SharedArrayBuffer,
2765
+ '%SharedArrayBufferPrototype%': typeof SharedArrayBuffer === 'undefined' ? undefined$2 : SharedArrayBuffer.prototype,
2766
+ '%String%': String,
2767
+ '%StringIteratorPrototype%': hasSymbols$4 ? getProto$1(''[Symbol.iterator]()) : undefined$2,
2768
+ '%StringPrototype%': String.prototype,
2769
+ '%Symbol%': hasSymbols$4 ? Symbol : undefined$2,
2770
+ '%SymbolPrototype%': hasSymbols$4 ? Symbol.prototype : undefined$2,
2771
+ '%SyntaxError%': SyntaxError,
2772
+ '%SyntaxErrorPrototype%': SyntaxError.prototype,
2773
+ '%ThrowTypeError%': ThrowTypeError$1,
2774
+ '%TypedArray%': TypedArray$1,
2775
+ '%TypedArrayPrototype%': TypedArray$1 ? TypedArray$1.prototype : undefined$2,
2776
+ '%TypeError%': $TypeError$6,
2777
+ '%TypeErrorPrototype%': $TypeError$6.prototype,
2778
+ '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$2 : Uint8Array,
2779
+ '%Uint8ArrayPrototype%': typeof Uint8Array === 'undefined' ? undefined$2 : Uint8Array.prototype,
2780
+ '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$2 : Uint8ClampedArray,
2781
+ '%Uint8ClampedArrayPrototype%': typeof Uint8ClampedArray === 'undefined' ? undefined$2 : Uint8ClampedArray.prototype,
2782
+ '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$2 : Uint16Array,
2783
+ '%Uint16ArrayPrototype%': typeof Uint16Array === 'undefined' ? undefined$2 : Uint16Array.prototype,
2784
+ '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined$2 : Uint32Array,
2785
+ '%Uint32ArrayPrototype%': typeof Uint32Array === 'undefined' ? undefined$2 : Uint32Array.prototype,
2786
+ '%URIError%': URIError,
2787
+ '%URIErrorPrototype%': URIError.prototype,
2788
+ '%WeakMap%': typeof WeakMap === 'undefined' ? undefined$2 : WeakMap,
2789
+ '%WeakMapPrototype%': typeof WeakMap === 'undefined' ? undefined$2 : WeakMap.prototype,
2790
+ '%WeakSet%': typeof WeakSet === 'undefined' ? undefined$2 : WeakSet,
2791
+ '%WeakSetPrototype%': typeof WeakSet === 'undefined' ? undefined$2 : WeakSet.prototype
2792
+ };
2793
+
2794
+
2795
+ var $replace$1 = functionBind.call(Function.call, String.prototype.replace);
2796
+
2797
+ /* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
2798
+ var rePropName$1 = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
2799
+ var reEscapeChar$1 = /\\(\\)?/g; /** Used to match backslashes in property paths. */
2800
+ var stringToPath$1 = function stringToPath(string) {
2801
+ var result = [];
2802
+ $replace$1(string, rePropName$1, function (match, number, quote, subString) {
2803
+ result[result.length] = quote ? $replace$1(subString, reEscapeChar$1, '$1') : (number || match);
2804
+ });
2805
+ return result;
2806
+ };
2807
+ /* end adaptation */
2808
+
2809
+ var getBaseIntrinsic$1 = function getBaseIntrinsic(name, allowMissing) {
2810
+ if (!(name in INTRINSICS$1)) {
2811
+ throw new SyntaxError('intrinsic ' + name + ' does not exist!');
2812
+ }
2813
+
2814
+ // istanbul ignore if // hopefully this is impossible to test :-)
2815
+ if (typeof INTRINSICS$1[name] === 'undefined' && !allowMissing) {
2816
+ throw new $TypeError$6('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
2817
+ }
2818
+
2819
+ return INTRINSICS$1[name];
2820
+ };
2821
+
2822
+ var GetIntrinsic = function GetIntrinsic(name, allowMissing) {
2823
+ if (typeof name !== 'string' || name.length === 0) {
2824
+ throw new TypeError('intrinsic name must be a non-empty string');
2825
+ }
2826
+ if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
2827
+ throw new TypeError('"allowMissing" argument must be a boolean');
2828
+ }
2829
+
2830
+ var parts = stringToPath$1(name);
2831
+
2832
+ var value = getBaseIntrinsic$1('%' + (parts.length > 0 ? parts[0] : '') + '%', allowMissing);
2833
+ for (var i = 1; i < parts.length; i += 1) {
2834
+ if (value != null) {
2835
+ if ($gOPD$3 && (i + 1) >= parts.length) {
2836
+ var desc = $gOPD$3(value, parts[i]);
2837
+ if (!allowMissing && !(parts[i] in value)) {
2838
+ throw new $TypeError$6('base intrinsic for ' + name + ' exists, but the property is not available.');
2839
+ }
2840
+ // By convention, when a data property is converted to an accessor
2841
+ // property to emulate a data property that does not suffer from
2842
+ // the override mistake, that accessor's getter is marked with
2843
+ // an `originalValue` property. Here, when we detect this, we
2844
+ // uphold the illusion by pretending to see that original data
2845
+ // property, i.e., returning the value rather than the getter
2846
+ // itself.
2847
+ value = desc && 'get' in desc && !('originalValue' in desc.get) ? desc.get : value[parts[i]];
2848
+ } else {
2849
+ value = value[parts[i]];
2850
+ }
2851
+ }
2852
+ }
2853
+ return value;
2854
+ };
2855
+
2856
+ var callBind$1 = createCommonjsModule(function (module) {
2857
+
2858
+
2859
+
2860
+
2861
+
2862
+ var $apply = GetIntrinsic('%Function.prototype.apply%');
2863
+ var $call = GetIntrinsic('%Function.prototype.call%');
2864
+ var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || functionBind.call($call, $apply);
2865
+
2866
+ var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
2867
+
2868
+ if ($defineProperty) {
2869
+ try {
2870
+ $defineProperty({}, 'a', { value: 1 });
2871
+ } catch (e) {
2872
+ // IE 8 has a broken defineProperty
2873
+ $defineProperty = null;
2874
+ }
2875
+ }
2876
+
2877
+ module.exports = function callBind() {
2878
+ return $reflectApply(functionBind, $call, arguments);
2879
+ };
2880
+
2881
+ var applyBind = function applyBind() {
2882
+ return $reflectApply(functionBind, $apply, arguments);
2883
+ };
2884
+
2885
+ if ($defineProperty) {
2886
+ $defineProperty(module.exports, 'apply', { value: applyBind });
2887
+ } else {
2888
+ module.exports.apply = applyBind;
2889
+ }
2890
+ });
2891
+ callBind$1.apply;
2892
+
2893
+ var $indexOf$1 = callBind$1(GetIntrinsic('String.prototype.indexOf'));
2894
+
2895
+ var callBound$1 = function callBoundIntrinsic(name, allowMissing) {
2896
+ var intrinsic = GetIntrinsic(name, !!allowMissing);
2897
+ if (typeof intrinsic === 'function' && $indexOf$1(name, '.prototype.')) {
2898
+ return callBind$1(intrinsic);
2899
+ }
2900
+ return intrinsic;
2901
+ };
2504
2902
 
2505
2903
  var isES5$1 = typeof Object.defineProperty === 'function'
2506
2904
  && typeof Object.defineProperties === 'function';
@@ -2519,14 +2917,14 @@ if (typeof Promise !== 'function') {
2519
2917
 
2520
2918
 
2521
2919
 
2522
- var $slice = callBound('Array.prototype.slice');
2523
- var $concat$1 = callBound('Array.prototype.concat');
2524
- var $forEach = callBound('Array.prototype.forEach');
2920
+ var $slice = callBound$1('Array.prototype.slice');
2921
+ var $concat$2 = callBound$1('Array.prototype.concat');
2922
+ var $forEach = callBound$1('Array.prototype.forEach');
2525
2923
 
2526
- var hasSymbols$4 = hasSymbols$1();
2924
+ var hasSymbols$5 = hasSymbols$1();
2527
2925
 
2528
- var kCustomPromisifiedSymbol = hasSymbols$4 ? Symbol('util.promisify.custom') : null;
2529
- var kCustomPromisifyArgsSymbol = hasSymbols$4 ? Symbol('customPromisifyArgs') : null;
2926
+ var kCustomPromisifiedSymbol = hasSymbols$5 ? Symbol('util.promisify.custom') : null;
2927
+ var kCustomPromisifyArgsSymbol = hasSymbols$5 ? Symbol('customPromisifyArgs') : null;
2530
2928
 
2531
2929
  var implementation$3 = function promisify(orig) {
2532
2930
  if (typeof orig !== 'function') {
@@ -2536,7 +2934,7 @@ var implementation$3 = function promisify(orig) {
2536
2934
  throw error;
2537
2935
  }
2538
2936
 
2539
- if (hasSymbols$4 && orig[kCustomPromisifiedSymbol]) {
2937
+ if (hasSymbols$5 && orig[kCustomPromisifiedSymbol]) {
2540
2938
  var customFunction = orig[kCustomPromisifiedSymbol];
2541
2939
  if (typeof customFunction !== 'function') {
2542
2940
  throw new TypeError('The [util.promisify.custom] property must be a function');
@@ -2558,7 +2956,7 @@ var implementation$3 = function promisify(orig) {
2558
2956
  var args = $slice(arguments);
2559
2957
  var self = this; // eslint-disable-line no-invalid-this
2560
2958
  return new Promise(function (resolve, reject) {
2561
- orig.apply(self, $concat$1(args, function (err) {
2959
+ orig.apply(self, $concat$2(args, function (err) {
2562
2960
  var values = arguments.length > 1 ? $slice(arguments, 1) : [];
2563
2961
  if (err) {
2564
2962
  reject(err);