@mjhls/mjh-framework 1.0.689-segment → 1.0.690

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 (264) hide show
  1. package/README.md +172 -172
  2. package/dist/cjs/AD.js +10 -9
  3. package/dist/cjs/AD300x250.js +24 -23
  4. package/dist/cjs/AD300x250x600.js +24 -23
  5. package/dist/cjs/AD728x90.js +27 -26
  6. package/dist/cjs/ADFloatingFooter.js +29 -28
  7. package/dist/cjs/ADFooter.js +15 -14
  8. package/dist/cjs/ADGutter.js +26 -25
  9. package/dist/cjs/{ADInfeed-3410ab3c.js → ADInfeed-ba531ca6.js} +13 -11
  10. package/dist/cjs/ADSkyscraper.js +26 -25
  11. package/dist/cjs/ADSponsoredResources.js +26 -25
  12. package/dist/cjs/ADWebcast.js +26 -25
  13. package/dist/cjs/ADWelcome.js +30 -29
  14. package/dist/cjs/{ADlgInfeed-845aac15.js → ADlgInfeed-b0cc0e88.js} +9 -8
  15. package/dist/cjs/AccordionPanel.js +31 -29
  16. package/dist/cjs/AdSlot.js +30 -29
  17. package/dist/cjs/AdSlotsProvider.js +7 -6
  18. package/dist/cjs/AlphabeticList.js +25 -24
  19. package/dist/cjs/ArticleCarousel.js +22 -21
  20. package/dist/cjs/ArticleSeriesListing.js +58 -57
  21. package/dist/cjs/Auth.js +793 -357
  22. package/dist/cjs/{AuthorComponent-bb831b74.js → AuthorComponent-98ebefa4.js} +14 -13
  23. package/dist/cjs/Beam.js +9 -9
  24. package/dist/cjs/{BlockContent-88f69acd.js → BlockContent-bbc3be61.js} +25 -24
  25. package/dist/cjs/Breadcrumbs.js +29 -27
  26. package/dist/cjs/BrowseVideosListing.js +28 -27
  27. package/dist/cjs/CMEDeck.js +77 -77
  28. package/dist/cjs/Column1.js +14 -11
  29. package/dist/cjs/Column2.js +35 -32
  30. package/dist/cjs/Column3.js +57 -54
  31. package/dist/cjs/ConferenceArticleCard.js +38 -37
  32. package/dist/cjs/ConferenceBanner-6c9e718a.js +24 -0
  33. package/dist/cjs/DeckContent.js +106 -102
  34. package/dist/cjs/DeckQueue.js +90 -86
  35. package/dist/cjs/{Dfp-b2bc3b97.js → Dfp-76acc8c2.js} +31 -30
  36. package/dist/cjs/EventsDeck.js +153 -146
  37. package/dist/cjs/ExternalResources.js +73 -72
  38. package/dist/cjs/Feature.js +27 -25
  39. package/dist/cjs/ForbesHero.js +41 -40
  40. package/dist/cjs/GridContent.js +180 -176
  41. package/dist/cjs/GridHero.js +43 -42
  42. package/dist/cjs/GroupDeck.js +50 -49
  43. package/dist/cjs/HamMagazine.js +144 -139
  44. package/dist/cjs/Header.js +13 -11
  45. package/dist/cjs/Hero.js +13 -12
  46. package/dist/cjs/HighlightenVideo.js +18 -17
  47. package/dist/cjs/HorizontalHero.js +26 -25
  48. package/dist/cjs/IssueContentDeck.js +77 -72
  49. package/dist/cjs/IssueDeck.js +75 -70
  50. package/dist/cjs/IssueLanding.js +70 -69
  51. package/dist/cjs/KMTracker.js +15 -15
  52. package/dist/cjs/LeftNav.js +37 -35
  53. package/dist/cjs/MasterDeck.js +81 -80
  54. package/dist/cjs/NavDvm.js +80 -75
  55. package/dist/cjs/{NavFooter-76c913e3.js → NavFooter-3dcd99a8.js} +15 -14
  56. package/dist/cjs/NavMagazine.js +153 -148
  57. package/dist/cjs/NavNative.js +132 -138
  58. package/dist/cjs/NavNormal.js +53 -48
  59. package/dist/cjs/OncliveHero.js +20 -20
  60. package/dist/cjs/OncliveLargeHero.js +67 -66
  61. package/dist/cjs/PageFilter.js +15 -14
  62. package/dist/cjs/PartnerDetailListing.js +170 -169
  63. package/dist/cjs/PdfDownload.js +9 -8
  64. package/dist/cjs/PopUpModal.js +21 -19
  65. package/dist/cjs/PublicationDeck.js +66 -61
  66. package/dist/cjs/PublicationLanding.js +98 -94
  67. package/dist/cjs/QueueDeckExpanded.js +292 -292
  68. package/dist/cjs/RecentNews.js +24 -23
  69. package/dist/cjs/RelatedContent.js +53 -52
  70. package/dist/cjs/RelatedTopicsDropdown.js +32 -29
  71. package/dist/cjs/RolesDeck.js +32 -27
  72. package/dist/cjs/Search.js +22 -18
  73. package/dist/cjs/Segment.js +7 -7
  74. package/dist/cjs/SetCookie.js +1 -1
  75. package/dist/cjs/SideFooter.js +38 -37
  76. package/dist/cjs/SocialIcons.js +10 -9
  77. package/dist/cjs/{SocialSearchComponent-6b5e5b47.js → SocialSearchComponent-de064e93.js} +38 -34
  78. package/dist/cjs/SocialShare.js +31 -29
  79. package/dist/cjs/TaxonomyCard.js +62 -57
  80. package/dist/cjs/TemplateNormal.js +72 -71
  81. package/dist/cjs/ThumbnailCard.js +22 -20
  82. package/dist/cjs/Ustream.js +27 -26
  83. package/dist/cjs/VerticalHero.js +18 -17
  84. package/dist/cjs/VideoSeriesCard.js +34 -33
  85. package/dist/cjs/VideoSeriesFilter.js +19 -19
  86. package/dist/cjs/VideoSeriesListing.js +72 -71
  87. package/dist/cjs/View.js +237 -234
  88. package/dist/cjs/YahooHero.js +40 -39
  89. package/dist/cjs/YoutubeGroup.js +69 -68
  90. package/dist/cjs/{_is-array-754e012d.js → _is-array-b1090e3d.js} +6 -6
  91. package/dist/cjs/{_iter-detect-60b2f026.js → _iter-detect-8decaf0f.js} +2 -2
  92. package/dist/cjs/{_object-sap-5e74ba08.js → _object-sap-b69cab35.js} +1 -1
  93. package/dist/cjs/{_set-species-f92c67c5.js → _set-species-5c9fd235.js} +4 -4
  94. package/dist/cjs/{_to-object-329a650b.js → _to-object-e2d5cc9d.js} +3 -3
  95. package/dist/cjs/{asyncToGenerator-533d476a.js → asyncToGenerator-a855b820.js} +6 -6
  96. package/dist/cjs/{brightcove-react-player-loader.es-156bd4d6.js → brightcove-react-player-loader.es-a195642e.js} +11 -9
  97. package/dist/cjs/{core.get-iterator-method-f62321d4.js → core.get-iterator-method-bf3fde8c.js} +2 -2
  98. package/dist/cjs/{define-property-f4d12f4e.js → define-property-1d75ae0f.js} +1 -1
  99. package/dist/cjs/{defineProperty-55548b25.js → defineProperty-16bd5829.js} +1 -1
  100. package/dist/cjs/{es6.string.iterator-cc0bbaa4.js → es6.string.iterator-e3ce14ae.js} +1 -1
  101. package/dist/cjs/{extends-60837c34.js → extends-a9da965c.js} +1 -1
  102. package/dist/cjs/getRelatedArticle.js +19 -19
  103. package/dist/cjs/getSerializers.js +39 -39
  104. package/dist/cjs/{getTargeting-fee8c429.js → getTargeting-d8df2f51.js} +11 -11
  105. package/dist/cjs/getTargeting.js +7 -7
  106. package/dist/cjs/iconBase-68959171.js +0 -3
  107. package/dist/cjs/{index-b5eb3ff8.js → index-10185024.js} +3 -3
  108. package/dist/cjs/{index-2d0a4911.js → index-5ad2b070.js} +12 -11
  109. package/dist/cjs/{index-5be2866f.js → index-6367b7bf.js} +16 -17
  110. package/dist/cjs/{index-da796b8c.js → index-80f57cff.js} +17 -15
  111. package/dist/cjs/{index-44c25825.js → index-e1d6c590.js} +427 -417
  112. package/dist/cjs/{index.es-ab3f2690.js → index.es-f3e47207.js} +28 -11
  113. package/dist/cjs/{index.esm-ff47db6f.js → index.esm-05850a2f.js} +5 -12
  114. package/dist/cjs/{index.esm-66ffa47a.js → index.esm-3b9b8952.js} +4 -9
  115. package/dist/cjs/{index.esm-876ca9ff.js → index.esm-61650d1a.js} +5 -12
  116. package/dist/cjs/{index.esm-4d410430.js → index.esm-8123cf40.js} +20 -20
  117. package/dist/cjs/index.js +126 -126
  118. package/dist/cjs/{inherits-513d81cd.js → inherits-3affeccb.js} +8 -8
  119. package/dist/cjs/{keys-a586b7a0.js → keys-218a754a.js} +2 -2
  120. package/dist/cjs/{lodash-fc2922d0.js → lodash-7fd85bcf.js} +71 -22
  121. package/dist/cjs/{main-b6c96c8d.js → main-df97bfe9.js} +84 -79
  122. package/dist/cjs/{moment-66a6a284.js → moment-ca3bd9fb.js} +10 -8
  123. package/dist/cjs/{react-social-icons-f7f48f71.js → react-social-icons-af932527.js} +28 -27
  124. package/dist/cjs/{slicedToArray-8f385299.js → slicedToArray-5b1b0ed8.js} +4 -4
  125. package/dist/cjs/{smoothscroll-95231a70.js → smoothscroll-1abb448e.js} +1 -1
  126. package/dist/cjs/{stringify-7c5aff47.js → stringify-4f757ee6.js} +1 -1
  127. package/dist/cjs/timeDifferenceCalc.js +1 -1
  128. package/dist/cjs/{toConsumableArray-9a3476fe.js → toConsumableArray-57153848.js} +4 -4
  129. package/dist/cjs/{typeof-725500bc.js → typeof-c69a5548.js} +6 -6
  130. package/dist/cjs/urlFor.js +2 -2
  131. package/dist/cjs/{visibility-sensor-0c45a583.js → visibility-sensor-8b54af99.js} +7 -5
  132. package/dist/cjs/{web.dom.iterable-a0e279c1.js → web.dom.iterable-0ffca19f.js} +3 -3
  133. package/dist/esm/AD.js +7 -7
  134. package/dist/esm/AD300x250.js +20 -20
  135. package/dist/esm/AD300x250x600.js +20 -20
  136. package/dist/esm/AD728x90.js +23 -23
  137. package/dist/esm/ADFloatingFooter.js +25 -25
  138. package/dist/esm/ADFooter.js +11 -11
  139. package/dist/esm/ADGutter.js +22 -22
  140. package/dist/esm/{ADInfeed-205cb7a9.js → ADInfeed-45191cf8.js} +7 -7
  141. package/dist/esm/ADSkyscraper.js +22 -22
  142. package/dist/esm/ADSponsoredResources.js +22 -22
  143. package/dist/esm/ADWebcast.js +22 -22
  144. package/dist/esm/ADWelcome.js +26 -26
  145. package/dist/esm/{ADlgInfeed-e538f17a.js → ADlgInfeed-1f8fc733.js} +6 -6
  146. package/dist/esm/AccordionPanel.js +24 -24
  147. package/dist/esm/AdSlot.js +21 -21
  148. package/dist/esm/AdSlotsProvider.js +3 -3
  149. package/dist/esm/AlphabeticList.js +21 -21
  150. package/dist/esm/ArticleCarousel.js +18 -18
  151. package/dist/esm/ArticleSeriesListing.js +52 -52
  152. package/dist/esm/Auth.js +775 -343
  153. package/dist/esm/{AuthorComponent-00f13201.js → AuthorComponent-30ec92a8.js} +11 -11
  154. package/dist/esm/Beam.js +9 -9
  155. package/dist/esm/{BlockContent-a614acdf.js → BlockContent-c5de3044.js} +4 -4
  156. package/dist/esm/Breadcrumbs.js +17 -17
  157. package/dist/esm/BrowseVideosListing.js +24 -24
  158. package/dist/esm/CMEDeck.js +73 -73
  159. package/dist/esm/Column1.js +5 -5
  160. package/dist/esm/Column2.js +26 -26
  161. package/dist/esm/Column3.js +47 -47
  162. package/dist/esm/ConferenceArticleCard.js +33 -33
  163. package/dist/esm/{ConferenceBanner-8792ebd2.js → ConferenceBanner-9162d0ca.js} +4 -4
  164. package/dist/esm/DeckContent.js +84 -84
  165. package/dist/esm/DeckQueue.js +64 -64
  166. package/dist/esm/{Dfp-8a8fca18.js → Dfp-8b5b19d0.js} +20 -20
  167. package/dist/esm/EventsDeck.js +99 -99
  168. package/dist/esm/ExternalResources.js +66 -66
  169. package/dist/esm/Feature.js +18 -18
  170. package/dist/esm/ForbesHero.js +34 -34
  171. package/dist/esm/GridContent.js +138 -138
  172. package/dist/esm/GridHero.js +36 -36
  173. package/dist/esm/GroupDeck.js +45 -45
  174. package/dist/esm/HamMagazine.js +113 -113
  175. package/dist/esm/Header.js +7 -7
  176. package/dist/esm/Hero.js +9 -9
  177. package/dist/esm/HighlightenVideo.js +14 -14
  178. package/dist/esm/HorizontalHero.js +21 -21
  179. package/dist/esm/IssueContentDeck.js +49 -49
  180. package/dist/esm/IssueDeck.js +46 -46
  181. package/dist/esm/IssueLanding.js +66 -66
  182. package/dist/esm/KMTracker.js +15 -15
  183. package/dist/esm/LeftNav.js +31 -31
  184. package/dist/esm/MasterDeck.js +74 -74
  185. package/dist/esm/NavDvm.js +57 -57
  186. package/dist/esm/{NavFooter-e27bd93b.js → NavFooter-c29526b7.js} +12 -12
  187. package/dist/esm/NavMagazine.js +124 -124
  188. package/dist/esm/NavNative.js +102 -116
  189. package/dist/esm/NavNormal.js +36 -36
  190. package/dist/esm/OncliveHero.js +16 -17
  191. package/dist/esm/OncliveLargeHero.js +59 -59
  192. package/dist/esm/PageFilter.js +12 -12
  193. package/dist/esm/PartnerDetailListing.js +108 -108
  194. package/dist/esm/PdfDownload.js +6 -6
  195. package/dist/esm/PopUpModal.js +14 -14
  196. package/dist/esm/PublicationDeck.js +38 -38
  197. package/dist/esm/PublicationLanding.js +75 -75
  198. package/dist/esm/QueueDeckExpanded.js +272 -272
  199. package/dist/esm/RecentNews.js +20 -20
  200. package/dist/esm/RelatedContent.js +47 -47
  201. package/dist/esm/RelatedTopicsDropdown.js +21 -21
  202. package/dist/esm/RolesDeck.js +13 -13
  203. package/dist/esm/Search.js +12 -12
  204. package/dist/esm/Segment.js +7 -7
  205. package/dist/esm/SetCookie.js +1 -1
  206. package/dist/esm/SideFooter.js +33 -33
  207. package/dist/esm/SocialIcons.js +7 -7
  208. package/dist/esm/{SocialSearchComponent-7f14e0f3.js → SocialSearchComponent-cddc9ce1.js} +26 -26
  209. package/dist/esm/SocialShare.js +25 -25
  210. package/dist/esm/TaxonomyCard.js +41 -41
  211. package/dist/esm/TemplateNormal.js +65 -65
  212. package/dist/esm/ThumbnailCard.js +13 -13
  213. package/dist/esm/Ustream.js +23 -23
  214. package/dist/esm/VerticalHero.js +13 -13
  215. package/dist/esm/VideoSeriesCard.js +25 -25
  216. package/dist/esm/VideoSeriesFilter.js +16 -16
  217. package/dist/esm/VideoSeriesListing.js +65 -65
  218. package/dist/esm/View.js +223 -224
  219. package/dist/esm/YahooHero.js +34 -34
  220. package/dist/esm/YoutubeGroup.js +53 -53
  221. package/dist/esm/{_is-array-49698029.js → _is-array-ffa65b7e.js} +6 -6
  222. package/dist/esm/{_iter-detect-59409a32.js → _iter-detect-256a4d61.js} +2 -2
  223. package/dist/esm/{_object-sap-4d59d5bd.js → _object-sap-0cecd031.js} +1 -1
  224. package/dist/esm/{_set-species-cede29f8.js → _set-species-09ba387c.js} +4 -4
  225. package/dist/esm/{_to-object-ded78eb9.js → _to-object-ee10dabb.js} +4 -4
  226. package/dist/esm/{asyncToGenerator-7c654f36.js → asyncToGenerator-b0af4000.js} +6 -6
  227. package/dist/esm/{brightcove-react-player-loader.es-83f53e4e.js → brightcove-react-player-loader.es-b43c695a.js} +7 -6
  228. package/dist/esm/{core.get-iterator-method-54d2e411.js → core.get-iterator-method-0e6dc181.js} +2 -2
  229. package/dist/esm/{define-property-de3fc946.js → define-property-e013aae3.js} +1 -1
  230. package/dist/esm/{defineProperty-b798470d.js → defineProperty-2385da87.js} +1 -1
  231. package/dist/esm/{es6.string.iterator-9b2af4a5.js → es6.string.iterator-c5179428.js} +2 -2
  232. package/dist/esm/{extends-cc5da797.js → extends-03593dc6.js} +1 -1
  233. package/dist/esm/getRelatedArticle.js +13 -13
  234. package/dist/esm/getSerializers.js +39 -39
  235. package/dist/esm/{getTargeting-2acdec91.js → getTargeting-60717d7f.js} +11 -11
  236. package/dist/esm/getTargeting.js +7 -7
  237. package/dist/esm/{index-51a80699.js → index-4de5c15f.js} +3 -3
  238. package/dist/esm/{index-93ec3c59.js → index-669ff425.js} +6 -6
  239. package/dist/esm/{index-5f9f807a.js → index-752d1dae.js} +10 -10
  240. package/dist/esm/{index-d2f90501.js → index-c00b0bbb.js} +16 -17
  241. package/dist/esm/{index-8a757d91.js → index-cbd95715.js} +373 -369
  242. package/dist/esm/{index.es-938a3a58.js → index.es-c6222053.js} +25 -9
  243. package/dist/esm/{index.esm-85cb09e6.js → index.esm-79385203.js} +5 -12
  244. package/dist/esm/{index.esm-fd746768.js → index.esm-8016b507.js} +17 -18
  245. package/dist/esm/{index.esm-cf08bf18.js → index.esm-a8ff922c.js} +5 -12
  246. package/dist/esm/{index.esm-b08f4b04.js → index.esm-d6f88d94.js} +4 -9
  247. package/dist/esm/index.js +104 -104
  248. package/dist/esm/{inherits-7ee3e0c1.js → inherits-d88f5b29.js} +5 -5
  249. package/dist/esm/{keys-fc2d4c34.js → keys-618df59d.js} +2 -2
  250. package/dist/esm/{lodash-17fdfebb.js → lodash-ec8c6b48.js} +71 -22
  251. package/dist/esm/{main-0465b2a0.js → main-a2443735.js} +84 -80
  252. package/dist/esm/{moment-12415288.js → moment-b6f49411.js} +10 -8
  253. package/dist/esm/{react-social-icons-a7d5c5c7.js → react-social-icons-91f9716f.js} +20 -20
  254. package/dist/esm/{slicedToArray-7021e5df.js → slicedToArray-648674b3.js} +4 -4
  255. package/dist/esm/{smoothscroll-4b699764.js → smoothscroll-ab6e0238.js} +1 -1
  256. package/dist/esm/{stringify-008c8802.js → stringify-7c97a94d.js} +1 -1
  257. package/dist/esm/timeDifferenceCalc.js +1 -1
  258. package/dist/esm/{toConsumableArray-725434a0.js → toConsumableArray-aa76a4fe.js} +4 -4
  259. package/dist/esm/{typeof-08f2c380.js → typeof-5c759779.js} +6 -6
  260. package/dist/esm/urlFor.js +1 -1
  261. package/dist/esm/{visibility-sensor-0baa4eea.js → visibility-sensor-082c757b.js} +2 -2
  262. package/dist/esm/{web.dom.iterable-8956f9a5.js → web.dom.iterable-de3b4afb.js} +3 -3
  263. package/package.json +107 -107
  264. package/dist/cjs/ConferenceBanner-4a16fddc.js +0 -23
package/dist/cjs/Auth.js CHANGED
@@ -2,31 +2,35 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
6
-
7
- var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
8
- require('./_to-object-329a650b.js');
9
- require('./es6.string.iterator-cc0bbaa4.js');
10
- require('./_library-dd23b178.js');
11
- require('./_iter-detect-60b2f026.js');
12
- require('./core.get-iterator-method-f62321d4.js');
13
- require('./_object-pie-68c5bcbc.js');
14
- var _extends = require('./extends-60837c34.js');
15
- require('./web.dom.iterable-a0e279c1.js');
5
+ var asyncToGenerator = require('./asyncToGenerator-a855b820.js');
6
+ var stringify = require('./stringify-4f757ee6.js');
7
+ var slicedToArray = require('./slicedToArray-5b1b0ed8.js');
16
8
  var React = require('react');
17
- var React__default = _interopDefault(React);
18
9
  var Router = require('next/router');
19
- var Router__default = _interopDefault(Router);
20
- var stringify = require('./stringify-7c5aff47.js');
21
- var slicedToArray = require('./slicedToArray-8f385299.js');
22
- var asyncToGenerator = require('./asyncToGenerator-533d476a.js');
23
- require('./_set-species-f92c67c5.js');
10
+ var _extends = require('./extends-a9da965c.js');
24
11
  var reactBootstrap = require('react-bootstrap');
12
+ var useSWR = require('swr');
13
+ var index = require('./index-bd6c9f56.js');
14
+ var Local = require('passport-local');
15
+ var mysql = require('mysql');
25
16
  var util = require('./util-f2c1b65b.js');
26
- var index$4 = require('./index-bd6c9f56.js');
27
- var useSWR = _interopDefault(require('swr'));
28
- var Local = _interopDefault(require('passport-local'));
29
- var mysql = _interopDefault(require('mysql'));
17
+ var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
18
+ require('./es6.string.iterator-e3ce14ae.js');
19
+ require('./_to-object-e2d5cc9d.js');
20
+ require('./web.dom.iterable-0ffca19f.js');
21
+ require('./_library-dd23b178.js');
22
+ require('./core.get-iterator-method-bf3fde8c.js');
23
+ require('./_set-species-5c9fd235.js');
24
+ require('./_iter-detect-8decaf0f.js');
25
+ require('./_object-pie-68c5bcbc.js');
26
+
27
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
28
+
29
+ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
30
+ var Router__default = /*#__PURE__*/_interopDefaultLegacy(Router);
31
+ var useSWR__default = /*#__PURE__*/_interopDefaultLegacy(useSWR);
32
+ var Local__default = /*#__PURE__*/_interopDefaultLegacy(Local);
33
+ var mysql__default = /*#__PURE__*/_interopDefaultLegacy(mysql);
30
34
 
31
35
  var returnFormField = function returnFormField(_ref) {
32
36
  var name = _ref.name,
@@ -65,21 +69,21 @@ var returnFormField = function returnFormField(_ref) {
65
69
  }
66
70
 
67
71
  if (type == 'text' || type == 'email' || type == 'password' || type == 'number') {
68
- return React__default.createElement(
72
+ return React__default['default'].createElement(
69
73
  reactBootstrap.Form.Group,
70
74
  _extends._extends({}, opts, { controlId: name }),
71
- React__default.createElement(
75
+ React__default['default'].createElement(
72
76
  reactBootstrap.Form.Label,
73
77
  { kye: name + '_label' },
74
78
  label,
75
- required && React__default.createElement(
79
+ required && React__default['default'].createElement(
76
80
  'span',
77
81
  { style: { color: 'red' } },
78
82
  '*'
79
83
  )
80
84
  ),
81
- React__default.createElement(reactBootstrap.Form.Control, { key: name + '_' + type, type: type, readOnly: readonly, name: name, placeholder: '', defaultValue: default_value, required: required }),
82
- React__default.createElement(
85
+ React__default['default'].createElement(reactBootstrap.Form.Control, { key: name + '_' + type, type: type, readOnly: readonly, name: name, placeholder: '', defaultValue: default_value, required: required }),
86
+ React__default['default'].createElement(
83
87
  reactBootstrap.Form.Control.Feedback,
84
88
  { key: name + '_feedback', type: 'invalid' },
85
89
  errors[name]
@@ -87,28 +91,28 @@ var returnFormField = function returnFormField(_ref) {
87
91
  );
88
92
  }
89
93
  if (type == 'select') {
90
- return React__default.createElement(
94
+ return React__default['default'].createElement(
91
95
  reactBootstrap.Form.Group,
92
96
  _extends._extends({}, opts, { key: name, controlId: name }),
93
- React__default.createElement(
97
+ React__default['default'].createElement(
94
98
  reactBootstrap.Form.Label,
95
99
  { key: name + '_' + label },
96
100
  label,
97
- required && React__default.createElement(
101
+ required && React__default['default'].createElement(
98
102
  'span',
99
103
  { key: name + '_required_span', style: { color: 'red' } },
100
104
  '*'
101
105
  )
102
106
  ),
103
- React__default.createElement(
107
+ React__default['default'].createElement(
104
108
  reactBootstrap.Form.Control,
105
109
  { key: name + '_select', as: 'select', name: name, required: required, defaultValue: default_value },
106
- React__default.createElement('option', { value: '', key: name + '_options_empty' }),
110
+ React__default['default'].createElement('option', { value: '', key: name + '_options_empty' }),
107
111
  options.map(function (option, index) {
108
112
  var value = option.value ? option.value : option;
109
113
  var label = option.label ? option.label : option;
110
114
  var key = name + '_options_' + index;
111
- return React__default.createElement(
115
+ return React__default['default'].createElement(
112
116
  'option',
113
117
  { key: key, value: value },
114
118
  label
@@ -119,25 +123,25 @@ var returnFormField = function returnFormField(_ref) {
119
123
  }
120
124
 
121
125
  if (type == 'radio' || type == 'checkbox') {
122
- return React__default.createElement(
126
+ return React__default['default'].createElement(
123
127
  reactBootstrap.Form.Group,
124
128
  opts,
125
- React__default.createElement(
129
+ React__default['default'].createElement(
126
130
  reactBootstrap.Form.Label,
127
131
  null,
128
132
  label,
129
- required && React__default.createElement(
133
+ required && React__default['default'].createElement(
130
134
  'span',
131
135
  { style: { color: 'red' } },
132
136
  '*'
133
137
  )
134
138
  ),
135
139
  options.map(function (option, index) {
136
- return React__default.createElement(
140
+ return React__default['default'].createElement(
137
141
  reactBootstrap.Form.Check,
138
142
  { type: type, key: index, required: required },
139
- React__default.createElement(reactBootstrap.Form.Check.Input, { type: type, key: type + '_' + index + '_input', defaultChecked: default_value ? default_value === option.value : false, name: name, id: name + '_' + index, value: option.value, required: required }),
140
- React__default.createElement(reactBootstrap.Form.Check.Label, { style: { cursor: 'pointer' }, 'for': name + '_' + index, key: type + '_' + index + '_label', dangerouslySetInnerHTML: { __html: option.label } })
143
+ React__default['default'].createElement(reactBootstrap.Form.Check.Input, { type: type, key: type + '_' + index + '_input', defaultChecked: default_value ? default_value === option.value : false, name: name, id: name + '_' + index, value: option.value, required: required }),
144
+ React__default['default'].createElement(reactBootstrap.Form.Check.Label, { style: { cursor: 'pointer' }, 'for': name + '_' + index, key: type + '_' + index + '_label', dangerouslySetInnerHTML: { __html: option.label } })
141
145
  );
142
146
  })
143
147
  );
@@ -223,7 +227,7 @@ function useUser() {
223
227
  redirectTo = _ref.redirectTo,
224
228
  redirectIfFound = _ref.redirectIfFound;
225
229
 
226
- var _useSWR = useSWR('/api/auth/user', dataHandler),
230
+ var _useSWR = useSWR__default['default']('/api/auth/user', dataHandler),
227
231
  data = _useSWR.data,
228
232
  error = _useSWR.error;
229
233
 
@@ -238,7 +242,7 @@ function useUser() {
238
242
  redirectTo && !redirectIfFound && !hasUser ||
239
243
  // If redirectIfFound is also set, redirect if the user was found
240
244
  redirectIfFound && hasUser) {
241
- Router__default.push(redirectTo);
245
+ Router__default['default'].push(redirectTo);
242
246
  }
243
247
  }, [redirectTo, redirectIfFound, finished, hasUser]);
244
248
 
@@ -344,43 +348,43 @@ var LoginForm = function LoginForm(props) {
344
348
  loading = _useState4[0],
345
349
  setLoading = _useState4[1];
346
350
 
347
- return React__default.createElement(
351
+ return React__default['default'].createElement(
348
352
  reactBootstrap.Form,
349
353
  { className: 'login', onSubmit: handleSubmit },
350
- React__default.createElement(
354
+ React__default['default'].createElement(
351
355
  'h1',
352
356
  null,
353
357
  'Login'
354
358
  ),
355
- React__default.createElement('hr', null),
359
+ React__default['default'].createElement('hr', null),
356
360
  returnFormField({ name: 'email', label: 'Email', type: 'email', required: true }),
357
361
  returnFormField({ name: 'password', label: 'Password', type: 'password', required: true }),
358
- React__default.createElement('hr', null),
359
- React__default.createElement(
362
+ React__default['default'].createElement('hr', null),
363
+ React__default['default'].createElement(
360
364
  reactBootstrap.Form.Row,
361
365
  null,
362
- React__default.createElement(
366
+ React__default['default'].createElement(
363
367
  reactBootstrap.Form.Group,
364
368
  { as: reactBootstrap.Col },
365
- React__default.createElement(
369
+ React__default['default'].createElement(
366
370
  'a',
367
371
  { href: '/auth/signup' },
368
372
  'I don\'t have an account'
369
373
  )
370
374
  ),
371
- React__default.createElement(
375
+ React__default['default'].createElement(
372
376
  reactBootstrap.Form.Group,
373
377
  { as: reactBootstrap.Col, className: 'text-right' },
374
- !loading && React__default.createElement(
378
+ !loading && React__default['default'].createElement(
375
379
  reactBootstrap.Button,
376
380
  { type: 'submit' },
377
381
  'Login'
378
382
  ),
379
- loading && React__default.createElement(
383
+ loading && React__default['default'].createElement(
380
384
  reactBootstrap.Button,
381
385
  { variant: 'primary', disabled: true },
382
- React__default.createElement(reactBootstrap.Spinner, { as: 'span', animation: 'border', role: 'status', 'aria-hidden': 'true', size: 'sm' }),
383
- React__default.createElement(
386
+ React__default['default'].createElement(reactBootstrap.Spinner, { as: 'span', animation: 'border', role: 'status', 'aria-hidden': 'true', size: 'sm' }),
387
+ React__default['default'].createElement(
384
388
  'span',
385
389
  { className: 'sr-only' },
386
390
  'Loading...'
@@ -388,12 +392,12 @@ var LoginForm = function LoginForm(props) {
388
392
  )
389
393
  )
390
394
  ),
391
- errorMsg && React__default.createElement(
395
+ errorMsg && React__default['default'].createElement(
392
396
  'p',
393
397
  { className: 'error' },
394
398
  errorMsg
395
399
  ),
396
- React__default.createElement(
400
+ React__default['default'].createElement(
397
401
  'style',
398
402
  { jsx: 'true'.toString() },
399
403
  '\n .login {\n margin: 0 auto;\n padding: 1rem;\n border: 1px solid #ccc;\n border-radius: 4px;\n }\n .error {\n color: red;\n margin: 1rem 0 0;\n }\n '
@@ -649,29 +653,29 @@ var SignupForm = function SignupForm(props) {
649
653
  loading = _useState14[0],
650
654
  setLoading = _useState14[1];
651
655
 
652
- return React__default.createElement(
656
+ return React__default['default'].createElement(
653
657
  reactBootstrap.Form,
654
658
  { className: 'login', id: 'signupForm', onSubmit: handleSubmit },
655
- React__default.createElement(
659
+ React__default['default'].createElement(
656
660
  'h1',
657
661
  null,
658
662
  'Sign Up'
659
663
  ),
660
- React__default.createElement('hr', null),
664
+ React__default['default'].createElement('hr', null),
661
665
  returnFormField({ name: 'email', label: 'Email', type: 'email', required: true }),
662
- React__default.createElement(
666
+ React__default['default'].createElement(
663
667
  reactBootstrap.Form.Row,
664
668
  null,
665
669
  returnFormField({ name: 'password', label: 'Password', type: 'password', groupType: reactBootstrap.Col, required: true }),
666
670
  returnFormField({ name: 'rpassword', label: 'Retype Password', type: 'password', groupType: reactBootstrap.Col, required: true })
667
671
  ),
668
- React__default.createElement(
672
+ React__default['default'].createElement(
669
673
  reactBootstrap.Form.Row,
670
674
  null,
671
675
  returnFormField({ name: 'first_name', label: 'First Name', type: 'text', groupType: reactBootstrap.Col, required: true }),
672
676
  returnFormField({ name: 'last_name', label: 'Last Name', type: 'text', groupType: reactBootstrap.Col, required: true })
673
677
  ),
674
- React__default.createElement(
678
+ React__default['default'].createElement(
675
679
  reactBootstrap.Form.Row,
676
680
  null,
677
681
  returnFormField({
@@ -685,7 +689,7 @@ var SignupForm = function SignupForm(props) {
685
689
  }),
686
690
  countryUS && returnFormField({ name: 'state', label: 'State', type: 'select', required: true, groupType: reactBootstrap.Col, options: states })
687
691
  ),
688
- React__default.createElement(
692
+ React__default['default'].createElement(
689
693
  reactBootstrap.Form.Row,
690
694
  null,
691
695
  countryUS && returnFormField({ name: 'zip', label: 'Working Zip Code', type: 'text', required: true, groupType: reactBootstrap.Col }),
@@ -732,38 +736,38 @@ var SignupForm = function SignupForm(props) {
732
736
  required: true,
733
737
  options: [{ label: 'By registering you agree to our <a href="/terms" style="color:blue">Terms and Conditions</a> and <a href="/privacy" style="color:blue">Privacy Policy</a> and understand that you will be receiving email communications', value: 'Y' }]
734
738
  }),
735
- React__default.createElement('hr', null),
736
- React__default.createElement(
739
+ React__default['default'].createElement('hr', null),
740
+ React__default['default'].createElement(
737
741
  reactBootstrap.Form.Row,
738
742
  null,
739
- React__default.createElement(
743
+ React__default['default'].createElement(
740
744
  reactBootstrap.Form.Group,
741
745
  { as: reactBootstrap.Col },
742
- React__default.createElement(
746
+ React__default['default'].createElement(
743
747
  'a',
744
748
  { href: '/auth/login' },
745
749
  'I already have an account'
746
750
  )
747
751
  ),
748
- React__default.createElement(
752
+ React__default['default'].createElement(
749
753
  reactBootstrap.Form.Group,
750
754
  { as: reactBootstrap.Col, className: 'text-right' },
751
- !loading && React__default.createElement(
755
+ !loading && React__default['default'].createElement(
752
756
  reactBootstrap.Button,
753
757
  { type: 'submit' },
754
758
  'Sign Up'
755
759
  ),
756
- loading && React__default.createElement(
760
+ loading && React__default['default'].createElement(
757
761
  reactBootstrap.Button,
758
762
  { variant: 'primary', disabled: true },
759
- React__default.createElement(reactBootstrap.Spinner, {
763
+ React__default['default'].createElement(reactBootstrap.Spinner, {
760
764
  as: 'span',
761
765
  animation: 'border',
762
766
  role: 'status',
763
767
  'aria-hidden': 'true',
764
768
  size: 'sm'
765
769
  }),
766
- React__default.createElement(
770
+ React__default['default'].createElement(
767
771
  'span',
768
772
  { className: 'sr-only' },
769
773
  'Loading...'
@@ -771,12 +775,12 @@ var SignupForm = function SignupForm(props) {
771
775
  )
772
776
  )
773
777
  ),
774
- errorMsg && React__default.createElement(
778
+ errorMsg && React__default['default'].createElement(
775
779
  'p',
776
780
  { className: 'error' },
777
781
  errorMsg
778
782
  ),
779
- React__default.createElement(
783
+ React__default['default'].createElement(
780
784
  'style',
781
785
  { jsx: 'true'.toString() },
782
786
  ' \n .login {\n margin: 0 auto;\n padding: 1rem;\n border: 1px solid #ccc;\n border-radius: 4px;\n }\n .error {\n color: red;\n margin: 1rem 0 0;\n }\n '
@@ -1066,32 +1070,32 @@ var SignupForm$1 = function SignupForm(props) {
1066
1070
  loading = _useState18[0],
1067
1071
  setLoading = _useState18[1];
1068
1072
 
1069
- return React__default.createElement(
1073
+ return React__default['default'].createElement(
1070
1074
  reactBootstrap.Form,
1071
1075
  { className: 'login', id: 'signupForm', onSubmit: handleSubmit },
1072
- React__default.createElement(
1076
+ React__default['default'].createElement(
1073
1077
  'h1',
1074
1078
  null,
1075
1079
  'Profile'
1076
1080
  ),
1077
- React__default.createElement('hr', null),
1078
- userData ? React__default.createElement(
1079
- React__default.Fragment,
1081
+ React__default['default'].createElement('hr', null),
1082
+ userData ? React__default['default'].createElement(
1083
+ React__default['default'].Fragment,
1080
1084
  null,
1081
1085
  returnFormField({ name: 'email', label: 'Email', type: 'email', required: true, readonly: true, default_value: userData.email }),
1082
- React__default.createElement(
1086
+ React__default['default'].createElement(
1083
1087
  reactBootstrap.Form.Row,
1084
1088
  null,
1085
1089
  returnFormField({ name: 'password', label: 'Password', type: 'password', groupType: reactBootstrap.Col, required: false }),
1086
1090
  returnFormField({ name: 'rpassword', label: 'Retype Password', type: 'password', groupType: reactBootstrap.Col, required: false })
1087
1091
  ),
1088
- React__default.createElement(
1092
+ React__default['default'].createElement(
1089
1093
  reactBootstrap.Form.Row,
1090
1094
  null,
1091
1095
  returnFormField({ name: 'first_name', label: 'First Name', type: 'text', groupType: reactBootstrap.Col, required: true, default_value: userData.shared.first_name }),
1092
1096
  returnFormField({ name: 'last_name', label: 'Last Name', type: 'text', groupType: reactBootstrap.Col, required: true, default_value: userData.shared.last_name })
1093
1097
  ),
1094
- React__default.createElement(
1098
+ React__default['default'].createElement(
1095
1099
  reactBootstrap.Form.Row,
1096
1100
  null,
1097
1101
  returnFormField({
@@ -1106,7 +1110,7 @@ var SignupForm$1 = function SignupForm(props) {
1106
1110
  }),
1107
1111
  countryUS && returnFormField({ name: 'state', label: 'State', type: 'select', required: true, groupType: reactBootstrap.Col, options: states, default_value: userData.shared.state })
1108
1112
  ),
1109
- React__default.createElement(
1113
+ React__default['default'].createElement(
1110
1114
  reactBootstrap.Form.Row,
1111
1115
  null,
1112
1116
  countryUS && returnFormField({ name: 'zip', label: 'Working Zip Code', type: 'text', required: true, groupType: reactBootstrap.Col, default_value: userData.shared.zip }),
@@ -1156,29 +1160,29 @@ var SignupForm$1 = function SignupForm(props) {
1156
1160
  required: true,
1157
1161
  options: [{ label: 'By registering you agree to our <a href="/terms">Terms and Conditions</a> and <a href="/privacy">Privacy Policy</a> and understand that you will be receiving email communications', value: 'Y' }]
1158
1162
  }),
1159
- React__default.createElement('hr', null),
1160
- React__default.createElement(
1163
+ React__default['default'].createElement('hr', null),
1164
+ React__default['default'].createElement(
1161
1165
  reactBootstrap.Form.Row,
1162
1166
  null,
1163
- React__default.createElement(
1167
+ React__default['default'].createElement(
1164
1168
  reactBootstrap.Form.Group,
1165
1169
  { as: reactBootstrap.Col },
1166
- !loading && React__default.createElement(
1170
+ !loading && React__default['default'].createElement(
1167
1171
  reactBootstrap.Button,
1168
1172
  { type: 'submit' },
1169
1173
  'Update'
1170
1174
  ),
1171
- loading && React__default.createElement(
1175
+ loading && React__default['default'].createElement(
1172
1176
  reactBootstrap.Button,
1173
1177
  { variant: 'primary', disabled: true },
1174
- React__default.createElement(reactBootstrap.Spinner, {
1178
+ React__default['default'].createElement(reactBootstrap.Spinner, {
1175
1179
  as: 'span',
1176
1180
  animation: 'border',
1177
1181
  role: 'status',
1178
1182
  'aria-hidden': 'true',
1179
1183
  size: 'sm'
1180
1184
  }),
1181
- React__default.createElement(
1185
+ React__default['default'].createElement(
1182
1186
  'span',
1183
1187
  { className: 'sr-only' },
1184
1188
  'Loading...'
@@ -1186,24 +1190,24 @@ var SignupForm$1 = function SignupForm(props) {
1186
1190
  )
1187
1191
  )
1188
1192
  )
1189
- ) : React__default.createElement(reactBootstrap.Spinner, {
1193
+ ) : React__default['default'].createElement(reactBootstrap.Spinner, {
1190
1194
  as: 'span',
1191
1195
  animation: 'border',
1192
1196
  role: 'status',
1193
1197
  'aria-hidden': 'true',
1194
1198
  size: 'sm'
1195
1199
  }),
1196
- errorMsg && React__default.createElement(
1200
+ errorMsg && React__default['default'].createElement(
1197
1201
  'p',
1198
1202
  { className: 'error' },
1199
1203
  errorMsg
1200
1204
  ),
1201
- successMsg && React__default.createElement(
1205
+ successMsg && React__default['default'].createElement(
1202
1206
  'p',
1203
1207
  { className: 'success' },
1204
1208
  successMsg
1205
1209
  ),
1206
- React__default.createElement(
1210
+ React__default['default'].createElement(
1207
1211
  'style',
1208
1212
  { jsx: 'true'.toString() },
1209
1213
  ' \n .login {\n margin: 0 auto;\n padding: 1rem;\n border: 1px solid #ccc;\n border-radius: 4px;\n }\n .error {\n color: red;\n margin: 1rem 0 0;\n }\n .success {\n color: green;\n margin: 1rem 0 0;\n }\n '
@@ -1216,7 +1220,7 @@ var MAX_AGE = 60 * 60 * 8; // 8 hours
1216
1220
 
1217
1221
  function setTokenCookie(res, token, eKey) {
1218
1222
  var cookies_serailized = [];
1219
- cookies_serailized.push(index$4.serialize_1(TOKEN_NAME, token, {
1223
+ cookies_serailized.push(index.serialize_1(TOKEN_NAME, token, {
1220
1224
  //maxAge: MAX_AGE, // we want login cookie to expire when browser
1221
1225
  //expires: new Date(Date.now() + MAX_AGE * 1000),
1222
1226
  //httpOnly: true,
@@ -1225,7 +1229,7 @@ function setTokenCookie(res, token, eKey) {
1225
1229
  //sameSite: 'lax',
1226
1230
  }));
1227
1231
 
1228
- cookies_serailized.push(index$4.serialize_1('eKey', eKey, {
1232
+ cookies_serailized.push(index.serialize_1('eKey', eKey, {
1229
1233
  //maxAge: MAX_AGE, // we want login cookie to expire when browser
1230
1234
  //expires: new Date(Date.now() + MAX_AGE * 1000),
1231
1235
  //httpOnly: true,
@@ -1239,12 +1243,12 @@ function setTokenCookie(res, token, eKey) {
1239
1243
 
1240
1244
  function removeTokenCookie(res) {
1241
1245
  var cookies_serailized = [];
1242
- cookies_serailized.push(index$4.serialize_1(TOKEN_NAME, '', {
1246
+ cookies_serailized.push(index.serialize_1(TOKEN_NAME, '', {
1243
1247
  maxAge: -1,
1244
1248
  expires: new Date(Date.now() - MAX_AGE * 1000),
1245
1249
  path: '/'
1246
1250
  }));
1247
- cookies_serailized.push(index$4.serialize_1('eKey', '', {
1251
+ cookies_serailized.push(index.serialize_1('eKey', '', {
1248
1252
  maxAge: -1,
1249
1253
  expires: new Date(Date.now() - MAX_AGE * 1000),
1250
1254
  path: '/'
@@ -1259,7 +1263,7 @@ function parseCookies(req) {
1259
1263
 
1260
1264
  // For pages we do need to parse the cookies.
1261
1265
  var cookie = req.headers ? req.headers.cookie : null;
1262
- return index$4.parse_1(cookie || '');
1266
+ return index.parse_1(cookie || '');
1263
1267
  }
1264
1268
 
1265
1269
  function getTokenCookie(req) {
@@ -1545,6 +1549,59 @@ defineProperties.supportsDescriptors = !!supportsDescriptors;
1545
1549
 
1546
1550
  var defineProperties_1 = defineProperties;
1547
1551
 
1552
+ /* eslint no-invalid-this: 1 */
1553
+
1554
+ var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
1555
+ var slice$1 = Array.prototype.slice;
1556
+ var toStr$3 = Object.prototype.toString;
1557
+ var funcType = '[object Function]';
1558
+
1559
+ var implementation$1 = function bind(that) {
1560
+ var target = this;
1561
+ if (typeof target !== 'function' || toStr$3.call(target) !== funcType) {
1562
+ throw new TypeError(ERROR_MESSAGE + target);
1563
+ }
1564
+ var args = slice$1.call(arguments, 1);
1565
+
1566
+ var bound;
1567
+ var binder = function () {
1568
+ if (this instanceof bound) {
1569
+ var result = target.apply(
1570
+ this,
1571
+ args.concat(slice$1.call(arguments))
1572
+ );
1573
+ if (Object(result) === result) {
1574
+ return result;
1575
+ }
1576
+ return this;
1577
+ } else {
1578
+ return target.apply(
1579
+ that,
1580
+ args.concat(slice$1.call(arguments))
1581
+ );
1582
+ }
1583
+ };
1584
+
1585
+ var boundLength = Math.max(0, target.length - args.length);
1586
+ var boundArgs = [];
1587
+ for (var i = 0; i < boundLength; i++) {
1588
+ boundArgs.push('$' + i);
1589
+ }
1590
+
1591
+ bound = Function('binder', 'return function (' + boundArgs.join(',') + '){ return binder.apply(this,arguments); }')(binder);
1592
+
1593
+ if (target.prototype) {
1594
+ var Empty = function Empty() {};
1595
+ Empty.prototype = target.prototype;
1596
+ bound.prototype = new Empty();
1597
+ Empty.prototype = null;
1598
+ }
1599
+
1600
+ return bound;
1601
+ };
1602
+
1603
+ var functionBind = Function.prototype.bind || implementation$1;
1604
+
1548
1605
  /* eslint complexity: [2, 18], max-statements: [2, 33] */
1549
1606
  var shams = function hasSymbols() {
1550
1607
  if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
@@ -1598,68 +1655,26 @@ var hasSymbols$1 = function hasNativeSymbols() {
1598
1655
  return shams();
1599
1656
  };
1600
1657
 
1601
- /* eslint no-invalid-this: 1 */
1602
-
1603
- var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
1604
- var slice$1 = Array.prototype.slice;
1605
- var toStr$3 = Object.prototype.toString;
1606
- var funcType = '[object Function]';
1607
-
1608
- var implementation$1 = function bind(that) {
1609
- var target = this;
1610
- if (typeof target !== 'function' || toStr$3.call(target) !== funcType) {
1611
- throw new TypeError(ERROR_MESSAGE + target);
1612
- }
1613
- var args = slice$1.call(arguments, 1);
1614
-
1615
- var bound;
1616
- var binder = function () {
1617
- if (this instanceof bound) {
1618
- var result = target.apply(
1619
- this,
1620
- args.concat(slice$1.call(arguments))
1621
- );
1622
- if (Object(result) === result) {
1623
- return result;
1624
- }
1625
- return this;
1626
- } else {
1627
- return target.apply(
1628
- that,
1629
- args.concat(slice$1.call(arguments))
1630
- );
1631
- }
1632
- };
1633
-
1634
- var boundLength = Math.max(0, target.length - args.length);
1635
- var boundArgs = [];
1636
- for (var i = 0; i < boundLength; i++) {
1637
- boundArgs.push('$' + i);
1638
- }
1639
-
1640
- bound = Function('binder', 'return function (' + boundArgs.join(',') + '){ return binder.apply(this,arguments); }')(binder);
1641
-
1642
- if (target.prototype) {
1643
- var Empty = function Empty() {};
1644
- Empty.prototype = target.prototype;
1645
- bound.prototype = new Empty();
1646
- Empty.prototype = null;
1647
- }
1648
-
1649
- return bound;
1650
- };
1651
-
1652
- var functionBind = Function.prototype.bind || implementation$1;
1658
+ var src = functionBind.call(Function.call, Object.prototype.hasOwnProperty);
1653
1659
 
1654
1660
  /* globals
1655
- Atomics,
1661
+ AggregateError,
1656
1662
  SharedArrayBuffer,
1657
1663
  */
1658
1664
 
1659
1665
  var undefined$1;
1660
1666
 
1667
+ var $SyntaxError = SyntaxError;
1668
+ var $Function = Function;
1661
1669
  var $TypeError = TypeError;
1662
1670
 
1671
+ // eslint-disable-next-line consistent-return
1672
+ var getEvalledConstructor = function (expressionSyntax) {
1673
+ try {
1674
+ return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
1675
+ } catch (e) {}
1676
+ };
1677
+
1663
1678
  var $gOPD = Object.getOwnPropertyDescriptor;
1664
1679
  if ($gOPD) {
1665
1680
  try {
@@ -1669,7 +1684,9 @@ if ($gOPD) {
1669
1684
  }
1670
1685
  }
1671
1686
 
1672
- var throwTypeError = function () { throw new $TypeError(); };
1687
+ var throwTypeError = function () {
1688
+ throw new $TypeError();
1689
+ };
1673
1690
  var ThrowTypeError = $gOPD
1674
1691
  ? (function () {
1675
1692
  try {
@@ -1690,200 +1707,360 @@ var ThrowTypeError = $gOPD
1690
1707
  var hasSymbols$2 = hasSymbols$1();
1691
1708
 
1692
1709
  var getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
1693
- var generatorFunction = undefined$1;
1694
- var asyncFunction = undefined$1;
1695
- var asyncGenFunction = undefined$1;
1710
+
1711
+ var needsEval = {};
1696
1712
 
1697
1713
  var TypedArray = typeof Uint8Array === 'undefined' ? undefined$1 : getProto(Uint8Array);
1698
1714
 
1699
1715
  var INTRINSICS = {
1716
+ '%AggregateError%': typeof AggregateError === 'undefined' ? undefined$1 : AggregateError,
1700
1717
  '%Array%': Array,
1701
1718
  '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$1 : ArrayBuffer,
1702
- '%ArrayBufferPrototype%': typeof ArrayBuffer === 'undefined' ? undefined$1 : ArrayBuffer.prototype,
1703
1719
  '%ArrayIteratorPrototype%': hasSymbols$2 ? getProto([][Symbol.iterator]()) : undefined$1,
1704
- '%ArrayPrototype%': Array.prototype,
1705
- '%ArrayProto_entries%': Array.prototype.entries,
1706
- '%ArrayProto_forEach%': Array.prototype.forEach,
1707
- '%ArrayProto_keys%': Array.prototype.keys,
1708
- '%ArrayProto_values%': Array.prototype.values,
1709
1720
  '%AsyncFromSyncIteratorPrototype%': undefined$1,
1710
- '%AsyncFunction%': asyncFunction,
1711
- '%AsyncFunctionPrototype%': undefined$1,
1712
- '%AsyncGenerator%': undefined$1,
1713
- '%AsyncGeneratorFunction%': asyncGenFunction,
1714
- '%AsyncGeneratorPrototype%': undefined$1,
1715
- '%AsyncIteratorPrototype%': undefined$1,
1721
+ '%AsyncFunction%': needsEval,
1722
+ '%AsyncGenerator%': needsEval,
1723
+ '%AsyncGeneratorFunction%': needsEval,
1724
+ '%AsyncIteratorPrototype%': needsEval,
1716
1725
  '%Atomics%': typeof Atomics === 'undefined' ? undefined$1 : Atomics,
1726
+ '%BigInt%': typeof BigInt === 'undefined' ? undefined$1 : BigInt,
1717
1727
  '%Boolean%': Boolean,
1718
- '%BooleanPrototype%': Boolean.prototype,
1719
1728
  '%DataView%': typeof DataView === 'undefined' ? undefined$1 : DataView,
1720
- '%DataViewPrototype%': typeof DataView === 'undefined' ? undefined$1 : DataView.prototype,
1721
1729
  '%Date%': Date,
1722
- '%DatePrototype%': Date.prototype,
1723
1730
  '%decodeURI%': decodeURI,
1724
1731
  '%decodeURIComponent%': decodeURIComponent,
1725
1732
  '%encodeURI%': encodeURI,
1726
1733
  '%encodeURIComponent%': encodeURIComponent,
1727
1734
  '%Error%': Error,
1728
- '%ErrorPrototype%': Error.prototype,
1729
1735
  '%eval%': eval, // eslint-disable-line no-eval
1730
1736
  '%EvalError%': EvalError,
1731
- '%EvalErrorPrototype%': EvalError.prototype,
1732
1737
  '%Float32Array%': typeof Float32Array === 'undefined' ? undefined$1 : Float32Array,
1733
- '%Float32ArrayPrototype%': typeof Float32Array === 'undefined' ? undefined$1 : Float32Array.prototype,
1734
1738
  '%Float64Array%': typeof Float64Array === 'undefined' ? undefined$1 : Float64Array,
1735
- '%Float64ArrayPrototype%': typeof Float64Array === 'undefined' ? undefined$1 : Float64Array.prototype,
1736
- '%Function%': Function,
1737
- '%FunctionPrototype%': Function.prototype,
1738
- '%Generator%': undefined$1,
1739
- '%GeneratorFunction%': generatorFunction,
1740
- '%GeneratorPrototype%': undefined$1,
1739
+ '%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined$1 : FinalizationRegistry,
1740
+ '%Function%': $Function,
1741
+ '%GeneratorFunction%': needsEval,
1741
1742
  '%Int8Array%': typeof Int8Array === 'undefined' ? undefined$1 : Int8Array,
1742
- '%Int8ArrayPrototype%': typeof Int8Array === 'undefined' ? undefined$1 : Int8Array.prototype,
1743
1743
  '%Int16Array%': typeof Int16Array === 'undefined' ? undefined$1 : Int16Array,
1744
- '%Int16ArrayPrototype%': typeof Int16Array === 'undefined' ? undefined$1 : Int8Array.prototype,
1745
1744
  '%Int32Array%': typeof Int32Array === 'undefined' ? undefined$1 : Int32Array,
1746
- '%Int32ArrayPrototype%': typeof Int32Array === 'undefined' ? undefined$1 : Int32Array.prototype,
1747
1745
  '%isFinite%': isFinite,
1748
1746
  '%isNaN%': isNaN,
1749
1747
  '%IteratorPrototype%': hasSymbols$2 ? getProto(getProto([][Symbol.iterator]())) : undefined$1,
1750
1748
  '%JSON%': typeof JSON === 'object' ? JSON : undefined$1,
1751
- '%JSONParse%': typeof JSON === 'object' ? JSON.parse : undefined$1,
1752
1749
  '%Map%': typeof Map === 'undefined' ? undefined$1 : Map,
1753
1750
  '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$2 ? undefined$1 : getProto(new Map()[Symbol.iterator]()),
1754
- '%MapPrototype%': typeof Map === 'undefined' ? undefined$1 : Map.prototype,
1755
1751
  '%Math%': Math,
1756
1752
  '%Number%': Number,
1757
- '%NumberPrototype%': Number.prototype,
1758
1753
  '%Object%': Object,
1759
- '%ObjectPrototype%': Object.prototype,
1760
- '%ObjProto_toString%': Object.prototype.toString,
1761
- '%ObjProto_valueOf%': Object.prototype.valueOf,
1762
1754
  '%parseFloat%': parseFloat,
1763
1755
  '%parseInt%': parseInt,
1764
1756
  '%Promise%': typeof Promise === 'undefined' ? undefined$1 : Promise,
1765
- '%PromisePrototype%': typeof Promise === 'undefined' ? undefined$1 : Promise.prototype,
1766
- '%PromiseProto_then%': typeof Promise === 'undefined' ? undefined$1 : Promise.prototype.then,
1767
- '%Promise_all%': typeof Promise === 'undefined' ? undefined$1 : Promise.all,
1768
- '%Promise_reject%': typeof Promise === 'undefined' ? undefined$1 : Promise.reject,
1769
- '%Promise_resolve%': typeof Promise === 'undefined' ? undefined$1 : Promise.resolve,
1770
1757
  '%Proxy%': typeof Proxy === 'undefined' ? undefined$1 : Proxy,
1771
1758
  '%RangeError%': RangeError,
1772
- '%RangeErrorPrototype%': RangeError.prototype,
1773
1759
  '%ReferenceError%': ReferenceError,
1774
- '%ReferenceErrorPrototype%': ReferenceError.prototype,
1775
1760
  '%Reflect%': typeof Reflect === 'undefined' ? undefined$1 : Reflect,
1776
1761
  '%RegExp%': RegExp,
1777
- '%RegExpPrototype%': RegExp.prototype,
1778
1762
  '%Set%': typeof Set === 'undefined' ? undefined$1 : Set,
1779
1763
  '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$2 ? undefined$1 : getProto(new Set()[Symbol.iterator]()),
1780
- '%SetPrototype%': typeof Set === 'undefined' ? undefined$1 : Set.prototype,
1781
1764
  '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$1 : SharedArrayBuffer,
1782
- '%SharedArrayBufferPrototype%': typeof SharedArrayBuffer === 'undefined' ? undefined$1 : SharedArrayBuffer.prototype,
1783
1765
  '%String%': String,
1784
1766
  '%StringIteratorPrototype%': hasSymbols$2 ? getProto(''[Symbol.iterator]()) : undefined$1,
1785
- '%StringPrototype%': String.prototype,
1786
1767
  '%Symbol%': hasSymbols$2 ? Symbol : undefined$1,
1787
- '%SymbolPrototype%': hasSymbols$2 ? Symbol.prototype : undefined$1,
1788
- '%SyntaxError%': SyntaxError,
1789
- '%SyntaxErrorPrototype%': SyntaxError.prototype,
1768
+ '%SyntaxError%': $SyntaxError,
1790
1769
  '%ThrowTypeError%': ThrowTypeError,
1791
1770
  '%TypedArray%': TypedArray,
1792
- '%TypedArrayPrototype%': TypedArray ? TypedArray.prototype : undefined$1,
1793
1771
  '%TypeError%': $TypeError,
1794
- '%TypeErrorPrototype%': $TypeError.prototype,
1795
1772
  '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$1 : Uint8Array,
1796
- '%Uint8ArrayPrototype%': typeof Uint8Array === 'undefined' ? undefined$1 : Uint8Array.prototype,
1797
1773
  '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$1 : Uint8ClampedArray,
1798
- '%Uint8ClampedArrayPrototype%': typeof Uint8ClampedArray === 'undefined' ? undefined$1 : Uint8ClampedArray.prototype,
1799
1774
  '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$1 : Uint16Array,
1800
- '%Uint16ArrayPrototype%': typeof Uint16Array === 'undefined' ? undefined$1 : Uint16Array.prototype,
1801
1775
  '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined$1 : Uint32Array,
1802
- '%Uint32ArrayPrototype%': typeof Uint32Array === 'undefined' ? undefined$1 : Uint32Array.prototype,
1803
1776
  '%URIError%': URIError,
1804
- '%URIErrorPrototype%': URIError.prototype,
1805
1777
  '%WeakMap%': typeof WeakMap === 'undefined' ? undefined$1 : WeakMap,
1806
- '%WeakMapPrototype%': typeof WeakMap === 'undefined' ? undefined$1 : WeakMap.prototype,
1807
- '%WeakSet%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet,
1808
- '%WeakSetPrototype%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet.prototype
1778
+ '%WeakRef%': typeof WeakRef === 'undefined' ? undefined$1 : WeakRef,
1779
+ '%WeakSet%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet
1780
+ };
1781
+
1782
+ var doEval = function doEval(name) {
1783
+ var value;
1784
+ if (name === '%AsyncFunction%') {
1785
+ value = getEvalledConstructor('async function () {}');
1786
+ } else if (name === '%GeneratorFunction%') {
1787
+ value = getEvalledConstructor('function* () {}');
1788
+ } else if (name === '%AsyncGeneratorFunction%') {
1789
+ value = getEvalledConstructor('async function* () {}');
1790
+ } else if (name === '%AsyncGenerator%') {
1791
+ var fn = doEval('%AsyncGeneratorFunction%');
1792
+ if (fn) {
1793
+ value = fn.prototype;
1794
+ }
1795
+ } else if (name === '%AsyncIteratorPrototype%') {
1796
+ var gen = doEval('%AsyncGenerator%');
1797
+ if (gen) {
1798
+ value = getProto(gen.prototype);
1799
+ }
1800
+ }
1801
+
1802
+ INTRINSICS[name] = value;
1803
+
1804
+ return value;
1809
1805
  };
1810
1806
 
1807
+ var LEGACY_ALIASES = {
1808
+ '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
1809
+ '%ArrayPrototype%': ['Array', 'prototype'],
1810
+ '%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
1811
+ '%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
1812
+ '%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
1813
+ '%ArrayProto_values%': ['Array', 'prototype', 'values'],
1814
+ '%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
1815
+ '%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
1816
+ '%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
1817
+ '%BooleanPrototype%': ['Boolean', 'prototype'],
1818
+ '%DataViewPrototype%': ['DataView', 'prototype'],
1819
+ '%DatePrototype%': ['Date', 'prototype'],
1820
+ '%ErrorPrototype%': ['Error', 'prototype'],
1821
+ '%EvalErrorPrototype%': ['EvalError', 'prototype'],
1822
+ '%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
1823
+ '%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
1824
+ '%FunctionPrototype%': ['Function', 'prototype'],
1825
+ '%Generator%': ['GeneratorFunction', 'prototype'],
1826
+ '%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
1827
+ '%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
1828
+ '%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
1829
+ '%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
1830
+ '%JSONParse%': ['JSON', 'parse'],
1831
+ '%JSONStringify%': ['JSON', 'stringify'],
1832
+ '%MapPrototype%': ['Map', 'prototype'],
1833
+ '%NumberPrototype%': ['Number', 'prototype'],
1834
+ '%ObjectPrototype%': ['Object', 'prototype'],
1835
+ '%ObjProto_toString%': ['Object', 'prototype', 'toString'],
1836
+ '%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
1837
+ '%PromisePrototype%': ['Promise', 'prototype'],
1838
+ '%PromiseProto_then%': ['Promise', 'prototype', 'then'],
1839
+ '%Promise_all%': ['Promise', 'all'],
1840
+ '%Promise_reject%': ['Promise', 'reject'],
1841
+ '%Promise_resolve%': ['Promise', 'resolve'],
1842
+ '%RangeErrorPrototype%': ['RangeError', 'prototype'],
1843
+ '%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
1844
+ '%RegExpPrototype%': ['RegExp', 'prototype'],
1845
+ '%SetPrototype%': ['Set', 'prototype'],
1846
+ '%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
1847
+ '%StringPrototype%': ['String', 'prototype'],
1848
+ '%SymbolPrototype%': ['Symbol', 'prototype'],
1849
+ '%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
1850
+ '%TypedArrayPrototype%': ['TypedArray', 'prototype'],
1851
+ '%TypeErrorPrototype%': ['TypeError', 'prototype'],
1852
+ '%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
1853
+ '%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
1854
+ '%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
1855
+ '%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
1856
+ '%URIErrorPrototype%': ['URIError', 'prototype'],
1857
+ '%WeakMapPrototype%': ['WeakMap', 'prototype'],
1858
+ '%WeakSetPrototype%': ['WeakSet', 'prototype']
1859
+ };
1811
1860
 
1861
+
1862
+
1863
+ var $concat = functionBind.call(Function.call, Array.prototype.concat);
1864
+ var $spliceApply = functionBind.call(Function.apply, Array.prototype.splice);
1812
1865
  var $replace = functionBind.call(Function.call, String.prototype.replace);
1866
+ var $strSlice = functionBind.call(Function.call, String.prototype.slice);
1813
1867
 
1814
1868
  /* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
1815
1869
  var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
1816
1870
  var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
1817
1871
  var stringToPath = function stringToPath(string) {
1872
+ var first = $strSlice(string, 0, 1);
1873
+ var last = $strSlice(string, -1);
1874
+ if (first === '%' && last !== '%') {
1875
+ throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
1876
+ } else if (last === '%' && first !== '%') {
1877
+ throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
1878
+ }
1818
1879
  var result = [];
1819
1880
  $replace(string, rePropName, function (match, number, quote, subString) {
1820
- result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : (number || match);
1881
+ result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
1821
1882
  });
1822
1883
  return result;
1823
1884
  };
1824
1885
  /* end adaptation */
1825
1886
 
1826
1887
  var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
1827
- if (!(name in INTRINSICS)) {
1828
- throw new SyntaxError('intrinsic ' + name + ' does not exist!');
1888
+ var intrinsicName = name;
1889
+ var alias;
1890
+ if (src(LEGACY_ALIASES, intrinsicName)) {
1891
+ alias = LEGACY_ALIASES[intrinsicName];
1892
+ intrinsicName = '%' + alias[0] + '%';
1829
1893
  }
1830
1894
 
1831
- // istanbul ignore if // hopefully this is impossible to test :-)
1832
- if (typeof INTRINSICS[name] === 'undefined' && !allowMissing) {
1833
- throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
1895
+ if (src(INTRINSICS, intrinsicName)) {
1896
+ var value = INTRINSICS[intrinsicName];
1897
+ if (value === needsEval) {
1898
+ value = doEval(intrinsicName);
1899
+ }
1900
+ if (typeof value === 'undefined' && !allowMissing) {
1901
+ throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
1902
+ }
1903
+
1904
+ return {
1905
+ alias: alias,
1906
+ name: intrinsicName,
1907
+ value: value
1908
+ };
1834
1909
  }
1835
1910
 
1836
- return INTRINSICS[name];
1911
+ throw new $SyntaxError('intrinsic ' + name + ' does not exist!');
1837
1912
  };
1838
1913
 
1839
- var GetIntrinsic = function GetIntrinsic(name, allowMissing) {
1914
+ var getIntrinsic = function GetIntrinsic(name, allowMissing) {
1840
1915
  if (typeof name !== 'string' || name.length === 0) {
1841
- throw new TypeError('intrinsic name must be a non-empty string');
1916
+ throw new $TypeError('intrinsic name must be a non-empty string');
1842
1917
  }
1843
1918
  if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
1844
- throw new TypeError('"allowMissing" argument must be a boolean');
1919
+ throw new $TypeError('"allowMissing" argument must be a boolean');
1845
1920
  }
1846
1921
 
1847
1922
  var parts = stringToPath(name);
1923
+ var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
1848
1924
 
1849
- var value = getBaseIntrinsic('%' + (parts.length > 0 ? parts[0] : '') + '%', allowMissing);
1850
- for (var i = 1; i < parts.length; i += 1) {
1851
- if (value != null) {
1925
+ var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
1926
+ var intrinsicRealName = intrinsic.name;
1927
+ var value = intrinsic.value;
1928
+ var skipFurtherCaching = false;
1929
+
1930
+ var alias = intrinsic.alias;
1931
+ if (alias) {
1932
+ intrinsicBaseName = alias[0];
1933
+ $spliceApply(parts, $concat([0, 1], alias));
1934
+ }
1935
+
1936
+ for (var i = 1, isOwn = true; i < parts.length; i += 1) {
1937
+ var part = parts[i];
1938
+ var first = $strSlice(part, 0, 1);
1939
+ var last = $strSlice(part, -1);
1940
+ if (
1941
+ (
1942
+ (first === '"' || first === "'" || first === '`')
1943
+ || (last === '"' || last === "'" || last === '`')
1944
+ )
1945
+ && first !== last
1946
+ ) {
1947
+ throw new $SyntaxError('property names with quotes must have matching quotes');
1948
+ }
1949
+ if (part === 'constructor' || !isOwn) {
1950
+ skipFurtherCaching = true;
1951
+ }
1952
+
1953
+ intrinsicBaseName += '.' + part;
1954
+ intrinsicRealName = '%' + intrinsicBaseName + '%';
1955
+
1956
+ if (src(INTRINSICS, intrinsicRealName)) {
1957
+ value = INTRINSICS[intrinsicRealName];
1958
+ } else if (value != null) {
1959
+ if (!(part in value)) {
1960
+ if (!allowMissing) {
1961
+ throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
1962
+ }
1963
+ return void undefined$1;
1964
+ }
1852
1965
  if ($gOPD && (i + 1) >= parts.length) {
1853
- var desc = $gOPD(value, parts[i]);
1854
- value = desc ? (desc.get || desc.value) : value[parts[i]];
1966
+ var desc = $gOPD(value, part);
1967
+ isOwn = !!desc;
1968
+
1969
+ // By convention, when a data property is converted to an accessor
1970
+ // property to emulate a data property that does not suffer from
1971
+ // the override mistake, that accessor's getter is marked with
1972
+ // an `originalValue` property. Here, when we detect this, we
1973
+ // uphold the illusion by pretending to see that original data
1974
+ // property, i.e., returning the value rather than the getter
1975
+ // itself.
1976
+ if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
1977
+ value = desc.get;
1978
+ } else {
1979
+ value = value[part];
1980
+ }
1855
1981
  } else {
1856
- value = value[parts[i]];
1982
+ isOwn = src(value, part);
1983
+ value = value[part];
1984
+ }
1985
+
1986
+ if (isOwn && !skipFurtherCaching) {
1987
+ INTRINSICS[intrinsicRealName] = value;
1857
1988
  }
1858
1989
  }
1859
1990
  }
1860
1991
  return value;
1861
1992
  };
1862
1993
 
1863
- var $Function = GetIntrinsic('%Function%');
1864
- var $apply = $Function.apply;
1865
- var $call = $Function.call;
1994
+ var callBind = _commonjsHelpers.createCommonjsModule(function (module) {
1866
1995
 
1867
- var callBind = function callBind() {
1868
- return functionBind.apply($call, arguments);
1996
+
1997
+
1998
+
1999
+ var $apply = getIntrinsic('%Function.prototype.apply%');
2000
+ var $call = getIntrinsic('%Function.prototype.call%');
2001
+ var $reflectApply = getIntrinsic('%Reflect.apply%', true) || functionBind.call($call, $apply);
2002
+
2003
+ var $gOPD = getIntrinsic('%Object.getOwnPropertyDescriptor%', true);
2004
+ var $defineProperty = getIntrinsic('%Object.defineProperty%', true);
2005
+ var $max = getIntrinsic('%Math.max%');
2006
+
2007
+ if ($defineProperty) {
2008
+ try {
2009
+ $defineProperty({}, 'a', { value: 1 });
2010
+ } catch (e) {
2011
+ // IE 8 has a broken defineProperty
2012
+ $defineProperty = null;
2013
+ }
2014
+ }
2015
+
2016
+ module.exports = function callBind(originalFunction) {
2017
+ var func = $reflectApply(functionBind, $call, arguments);
2018
+ if ($gOPD && $defineProperty) {
2019
+ var desc = $gOPD(func, 'length');
2020
+ if (desc.configurable) {
2021
+ // original length, plus the receiver, minus any additional arguments (after the receiver)
2022
+ $defineProperty(
2023
+ func,
2024
+ 'length',
2025
+ { value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }
2026
+ );
2027
+ }
2028
+ }
2029
+ return func;
1869
2030
  };
1870
2031
 
1871
- var apply = function applyBind() {
1872
- return functionBind.apply($apply, arguments);
2032
+ var applyBind = function applyBind() {
2033
+ return $reflectApply(functionBind, $apply, arguments);
1873
2034
  };
1874
- callBind.apply = apply;
1875
2035
 
1876
- var $indexOf = callBind(GetIntrinsic('String.prototype.indexOf'));
2036
+ if ($defineProperty) {
2037
+ $defineProperty(module.exports, 'apply', { value: applyBind });
2038
+ } else {
2039
+ module.exports.apply = applyBind;
2040
+ }
2041
+ });
2042
+ callBind.apply;
2043
+
2044
+ var $indexOf = callBind(getIntrinsic('String.prototype.indexOf'));
1877
2045
 
1878
2046
  var callBound = function callBoundIntrinsic(name, allowMissing) {
1879
- var intrinsic = GetIntrinsic(name, !!allowMissing);
1880
- if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.')) {
2047
+ var intrinsic = getIntrinsic(name, !!allowMissing);
2048
+ if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
1881
2049
  return callBind(intrinsic);
1882
2050
  }
1883
2051
  return intrinsic;
1884
2052
  };
1885
2053
 
1886
- var $defineProperty = GetIntrinsic('%Object.defineProperty%');
2054
+ var $defineProperty = getIntrinsic('%Object.defineProperty%', true);
2055
+
2056
+ if ($defineProperty) {
2057
+ try {
2058
+ $defineProperty({}, 'a', { value: 1 });
2059
+ } catch (e) {
2060
+ // IE 8 has a broken defineProperty
2061
+ $defineProperty = null;
2062
+ }
2063
+ }
1887
2064
 
1888
2065
 
1889
2066
 
@@ -1916,10 +2093,8 @@ var DefineOwnProperty = function DefineOwnProperty(IsDataDescriptor, SameValue,
1916
2093
  return true;
1917
2094
  };
1918
2095
 
1919
- var src = functionBind.call(Function.call, Object.prototype.hasOwnProperty);
1920
-
1921
- var $TypeError$1 = GetIntrinsic('%TypeError%');
1922
- var $SyntaxError = GetIntrinsic('%SyntaxError%');
2096
+ var $TypeError$1 = getIntrinsic('%TypeError%');
2097
+ var $SyntaxError$1 = getIntrinsic('%SyntaxError%');
1923
2098
 
1924
2099
 
1925
2100
 
@@ -1956,14 +2131,14 @@ var predicates = {
1956
2131
  var assertRecord = function assertRecord(Type, recordType, argumentName, value) {
1957
2132
  var predicate = predicates[recordType];
1958
2133
  if (typeof predicate !== 'function') {
1959
- throw new $SyntaxError('unknown record type: ' + recordType);
2134
+ throw new $SyntaxError$1('unknown record type: ' + recordType);
1960
2135
  }
1961
2136
  if (!predicate(Type, value)) {
1962
2137
  throw new $TypeError$1(argumentName + ' must be a ' + recordType);
1963
2138
  }
1964
2139
  };
1965
2140
 
1966
- // https://www.ecma-international.org/ecma-262/5.1/#sec-8
2141
+ // https://ecma-international.org/ecma-262/5.1/#sec-8
1967
2142
 
1968
2143
  var Type = function Type(x) {
1969
2144
  if (x === null) {
@@ -1986,16 +2161,19 @@ var Type = function Type(x) {
1986
2161
  }
1987
2162
  };
1988
2163
 
1989
- // https://www.ecma-international.org/ecma-262/6.0/#sec-tostring
2164
+ // https://ecma-international.org/ecma-262/11.0/#sec-ecmascript-data-types-and-values
1990
2165
 
1991
2166
  var Type$1 = function Type$1(x) {
1992
2167
  if (typeof x === 'symbol') {
1993
2168
  return 'Symbol';
1994
2169
  }
2170
+ if (typeof x === 'bigint') {
2171
+ return 'BigInt';
2172
+ }
1995
2173
  return Type(x);
1996
2174
  };
1997
2175
 
1998
- // https://www.ecma-international.org/ecma-262/6.0/#sec-frompropertydescriptor
2176
+ // https://ecma-international.org/ecma-262/6.0/#sec-frompropertydescriptor
1999
2177
 
2000
2178
  var FromPropertyDescriptor = function FromPropertyDescriptor(Desc) {
2001
2179
  if (typeof Desc === 'undefined') {
@@ -2026,7 +2204,278 @@ var FromPropertyDescriptor = function FromPropertyDescriptor(Desc) {
2026
2204
  return obj;
2027
2205
  };
2028
2206
 
2029
- // https://www.ecma-international.org/ecma-262/6.0/#sec-isdatadescriptor
2207
+ var $gOPD$1 = getIntrinsic('%Object.getOwnPropertyDescriptor%');
2208
+ if ($gOPD$1) {
2209
+ try {
2210
+ $gOPD$1([], 'length');
2211
+ } catch (e) {
2212
+ // IE 8 has a broken gOPD
2213
+ $gOPD$1 = null;
2214
+ }
2215
+ }
2216
+
2217
+ var getOwnPropertyDescriptor = $gOPD$1;
2218
+
2219
+ var $Array = getIntrinsic('%Array%');
2220
+
2221
+ // eslint-disable-next-line global-require
2222
+ var toStr$4 = !$Array.isArray && callBound('Object.prototype.toString');
2223
+
2224
+ // https://ecma-international.org/ecma-262/6.0/#sec-isarray
2225
+
2226
+ var IsArray = $Array.isArray || function IsArray(argument) {
2227
+ return toStr$4(argument) === '[object Array]';
2228
+ };
2229
+
2230
+ // https://ecma-international.org/ecma-262/6.0/#sec-ispropertykey
2231
+
2232
+ var IsPropertyKey = function IsPropertyKey(argument) {
2233
+ return typeof argument === 'string' || typeof argument === 'symbol';
2234
+ };
2235
+
2236
+ var hasSymbols$3 = hasSymbols$1();
2237
+ var hasToStringTag = hasSymbols$3 && typeof Symbol.toStringTag === 'symbol';
2238
+ var hasOwnProperty;
2239
+ var regexExec;
2240
+ var isRegexMarker;
2241
+ var badStringifier;
2242
+
2243
+ if (hasToStringTag) {
2244
+ hasOwnProperty = Function.call.bind(Object.prototype.hasOwnProperty);
2245
+ regexExec = Function.call.bind(RegExp.prototype.exec);
2246
+ isRegexMarker = {};
2247
+
2248
+ var throwRegexMarker = function () {
2249
+ throw isRegexMarker;
2250
+ };
2251
+ badStringifier = {
2252
+ toString: throwRegexMarker,
2253
+ valueOf: throwRegexMarker
2254
+ };
2255
+
2256
+ if (typeof Symbol.toPrimitive === 'symbol') {
2257
+ badStringifier[Symbol.toPrimitive] = throwRegexMarker;
2258
+ }
2259
+ }
2260
+
2261
+ var toStr$5 = Object.prototype.toString;
2262
+ var gOPD = Object.getOwnPropertyDescriptor;
2263
+ var regexClass = '[object RegExp]';
2264
+
2265
+ var isRegex = hasToStringTag
2266
+ // eslint-disable-next-line consistent-return
2267
+ ? function isRegex(value) {
2268
+ if (!value || typeof value !== 'object') {
2269
+ return false;
2270
+ }
2271
+
2272
+ var descriptor = gOPD(value, 'lastIndex');
2273
+ var hasLastIndexDataProperty = descriptor && hasOwnProperty(descriptor, 'value');
2274
+ if (!hasLastIndexDataProperty) {
2275
+ return false;
2276
+ }
2277
+
2278
+ try {
2279
+ regexExec(value, badStringifier);
2280
+ } catch (e) {
2281
+ return e === isRegexMarker;
2282
+ }
2283
+ }
2284
+ : function isRegex(value) {
2285
+ // In older browsers, typeof regex incorrectly returns 'function'
2286
+ if (!value || (typeof value !== 'object' && typeof value !== 'function')) {
2287
+ return false;
2288
+ }
2289
+
2290
+ return toStr$5.call(value) === regexClass;
2291
+ };
2292
+
2293
+ // http://ecma-international.org/ecma-262/5.1/#sec-9.2
2294
+
2295
+ var ToBoolean = function ToBoolean(value) { return !!value; };
2296
+
2297
+ var $match = getIntrinsic('%Symbol.match%', true);
2298
+
2299
+
2300
+
2301
+
2302
+
2303
+ // https://ecma-international.org/ecma-262/6.0/#sec-isregexp
2304
+
2305
+ var IsRegExp = function IsRegExp(argument) {
2306
+ if (!argument || typeof argument !== 'object') {
2307
+ return false;
2308
+ }
2309
+ if ($match) {
2310
+ var isRegExp = argument[$match];
2311
+ if (typeof isRegExp !== 'undefined') {
2312
+ return ToBoolean(isRegExp);
2313
+ }
2314
+ }
2315
+ return isRegex(argument);
2316
+ };
2317
+
2318
+ var fnToStr = Function.prototype.toString;
2319
+ var reflectApply = typeof Reflect === 'object' && Reflect !== null && Reflect.apply;
2320
+ var badArrayLike;
2321
+ var isCallableMarker;
2322
+ if (typeof reflectApply === 'function' && typeof Object.defineProperty === 'function') {
2323
+ try {
2324
+ badArrayLike = Object.defineProperty({}, 'length', {
2325
+ get: function () {
2326
+ throw isCallableMarker;
2327
+ }
2328
+ });
2329
+ isCallableMarker = {};
2330
+ // eslint-disable-next-line no-throw-literal
2331
+ reflectApply(function () { throw 42; }, null, badArrayLike);
2332
+ } catch (_) {
2333
+ if (_ !== isCallableMarker) {
2334
+ reflectApply = null;
2335
+ }
2336
+ }
2337
+ } else {
2338
+ reflectApply = null;
2339
+ }
2340
+
2341
+ var constructorRegex = /^\s*class\b/;
2342
+ var isES6ClassFn = function isES6ClassFunction(value) {
2343
+ try {
2344
+ var fnStr = fnToStr.call(value);
2345
+ return constructorRegex.test(fnStr);
2346
+ } catch (e) {
2347
+ return false; // not a function
2348
+ }
2349
+ };
2350
+
2351
+ var tryFunctionObject = function tryFunctionToStr(value) {
2352
+ try {
2353
+ if (isES6ClassFn(value)) { return false; }
2354
+ fnToStr.call(value);
2355
+ return true;
2356
+ } catch (e) {
2357
+ return false;
2358
+ }
2359
+ };
2360
+ var toStr$6 = Object.prototype.toString;
2361
+ var fnClass = '[object Function]';
2362
+ var genClass = '[object GeneratorFunction]';
2363
+ var hasToStringTag$1 = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
2364
+
2365
+ var isCallable = reflectApply
2366
+ ? function isCallable(value) {
2367
+ if (!value) { return false; }
2368
+ if (typeof value !== 'function' && typeof value !== 'object') { return false; }
2369
+ if (typeof value === 'function' && !value.prototype) { return true; }
2370
+ try {
2371
+ reflectApply(value, null, badArrayLike);
2372
+ } catch (e) {
2373
+ if (e !== isCallableMarker) { return false; }
2374
+ }
2375
+ return !isES6ClassFn(value);
2376
+ }
2377
+ : function isCallable(value) {
2378
+ if (!value) { return false; }
2379
+ if (typeof value !== 'function' && typeof value !== 'object') { return false; }
2380
+ if (typeof value === 'function' && !value.prototype) { return true; }
2381
+ if (hasToStringTag$1) { return tryFunctionObject(value); }
2382
+ if (isES6ClassFn(value)) { return false; }
2383
+ var strClass = toStr$6.call(value);
2384
+ return strClass === fnClass || strClass === genClass;
2385
+ };
2386
+
2387
+ // http://ecma-international.org/ecma-262/5.1/#sec-9.11
2388
+
2389
+ var IsCallable = isCallable;
2390
+
2391
+ var $TypeError$2 = getIntrinsic('%TypeError%');
2392
+
2393
+
2394
+
2395
+
2396
+
2397
+ // https://ecma-international.org/ecma-262/5.1/#sec-8.10.5
2398
+
2399
+ var ToPropertyDescriptor = function ToPropertyDescriptor(Obj) {
2400
+ if (Type$1(Obj) !== 'Object') {
2401
+ throw new $TypeError$2('ToPropertyDescriptor requires an object');
2402
+ }
2403
+
2404
+ var desc = {};
2405
+ if (src(Obj, 'enumerable')) {
2406
+ desc['[[Enumerable]]'] = ToBoolean(Obj.enumerable);
2407
+ }
2408
+ if (src(Obj, 'configurable')) {
2409
+ desc['[[Configurable]]'] = ToBoolean(Obj.configurable);
2410
+ }
2411
+ if (src(Obj, 'value')) {
2412
+ desc['[[Value]]'] = Obj.value;
2413
+ }
2414
+ if (src(Obj, 'writable')) {
2415
+ desc['[[Writable]]'] = ToBoolean(Obj.writable);
2416
+ }
2417
+ if (src(Obj, 'get')) {
2418
+ var getter = Obj.get;
2419
+ if (typeof getter !== 'undefined' && !IsCallable(getter)) {
2420
+ throw new $TypeError$2('getter must be a function');
2421
+ }
2422
+ desc['[[Get]]'] = getter;
2423
+ }
2424
+ if (src(Obj, 'set')) {
2425
+ var setter = Obj.set;
2426
+ if (typeof setter !== 'undefined' && !IsCallable(setter)) {
2427
+ throw new $TypeError$2('setter must be a function');
2428
+ }
2429
+ desc['[[Set]]'] = setter;
2430
+ }
2431
+
2432
+ if ((src(desc, '[[Get]]') || src(desc, '[[Set]]')) && (src(desc, '[[Value]]') || src(desc, '[[Writable]]'))) {
2433
+ throw new $TypeError$2('Invalid property descriptor. Cannot both specify accessors and a value or writable attribute');
2434
+ }
2435
+ return desc;
2436
+ };
2437
+
2438
+ var $TypeError$3 = getIntrinsic('%TypeError%');
2439
+
2440
+
2441
+
2442
+ var $isEnumerable$1 = callBound('Object.prototype.propertyIsEnumerable');
2443
+
2444
+
2445
+
2446
+
2447
+
2448
+
2449
+
2450
+
2451
+
2452
+ // https://ecma-international.org/ecma-262/6.0/#sec-ordinarygetownproperty
2453
+
2454
+ var OrdinaryGetOwnProperty = function OrdinaryGetOwnProperty(O, P) {
2455
+ if (Type$1(O) !== 'Object') {
2456
+ throw new $TypeError$3('Assertion failed: O must be an Object');
2457
+ }
2458
+ if (!IsPropertyKey(P)) {
2459
+ throw new $TypeError$3('Assertion failed: P must be a Property Key');
2460
+ }
2461
+ if (!src(O, P)) {
2462
+ return void 0;
2463
+ }
2464
+ if (!getOwnPropertyDescriptor) {
2465
+ // ES3 / IE 8 fallback
2466
+ var arrayLength = IsArray(O) && P === 'length';
2467
+ var regexLastIndex = IsRegExp(O) && P === 'lastIndex';
2468
+ return {
2469
+ '[[Configurable]]': !(arrayLength || regexLastIndex),
2470
+ '[[Enumerable]]': $isEnumerable$1(O, P),
2471
+ '[[Value]]': O[P],
2472
+ '[[Writable]]': true
2473
+ };
2474
+ }
2475
+ return ToPropertyDescriptor(getOwnPropertyDescriptor(O, P));
2476
+ };
2477
+
2478
+ // https://ecma-international.org/ecma-262/6.0/#sec-isdatadescriptor
2030
2479
 
2031
2480
  var IsDataDescriptor = function IsDataDescriptor(Desc) {
2032
2481
  if (typeof Desc === 'undefined') {
@@ -2046,34 +2495,28 @@ var isPrimitive = function isPrimitive(value) {
2046
2495
  return value === null || (typeof value !== 'function' && typeof value !== 'object');
2047
2496
  };
2048
2497
 
2049
- var $Object = GetIntrinsic('%Object%');
2498
+ var $Object = getIntrinsic('%Object%');
2050
2499
 
2051
2500
 
2052
2501
 
2053
2502
  var $preventExtensions = $Object.preventExtensions;
2054
2503
  var $isExtensible = $Object.isExtensible;
2055
2504
 
2056
- // https://www.ecma-international.org/ecma-262/6.0/#sec-isextensible-o
2505
+ // https://ecma-international.org/ecma-262/6.0/#sec-isextensible-o
2057
2506
 
2058
2507
  var IsExtensible = $preventExtensions
2059
2508
  ? function IsExtensible(obj) {
2060
2509
  return !isPrimitive(obj) && $isExtensible(obj);
2061
2510
  }
2062
- : function IsExtensible(obj) { // eslint-disable-line no-unused-vars
2063
- return true;
2511
+ : function IsExtensible(obj) {
2512
+ return !isPrimitive(obj);
2064
2513
  };
2065
2514
 
2066
- // https://www.ecma-international.org/ecma-262/6.0/#sec-ispropertykey
2067
-
2068
- var IsPropertyKey = function IsPropertyKey(argument) {
2069
- return typeof argument === 'string' || typeof argument === 'symbol';
2070
- };
2071
-
2072
2515
  var _isNaN = Number.isNaN || function isNaN(a) {
2073
2516
  return a !== a;
2074
2517
  };
2075
2518
 
2076
- // http://www.ecma-international.org/ecma-262/5.1/#sec-9.12
2519
+ // http://ecma-international.org/ecma-262/5.1/#sec-9.12
2077
2520
 
2078
2521
  var SameValue = function SameValue(x, y) {
2079
2522
  if (x === y) { // 0 === -0, but they are not identical.
@@ -2083,8 +2526,7 @@ var SameValue = function SameValue(x, y) {
2083
2526
  return _isNaN(x) && _isNaN(y);
2084
2527
  };
2085
2528
 
2086
- var $gOPD$1 = GetIntrinsic('%Object.getOwnPropertyDescriptor%');
2087
- var $TypeError$2 = GetIntrinsic('%TypeError%');
2529
+ var $TypeError$4 = getIntrinsic('%TypeError%');
2088
2530
 
2089
2531
 
2090
2532
 
@@ -2095,18 +2537,19 @@ var $TypeError$2 = GetIntrinsic('%TypeError%');
2095
2537
 
2096
2538
 
2097
2539
 
2098
- // https://www.ecma-international.org/ecma-262/6.0/#sec-createdataproperty
2540
+
2541
+ // https://ecma-international.org/ecma-262/6.0/#sec-createdataproperty
2099
2542
 
2100
2543
  var CreateDataProperty = function CreateDataProperty(O, P, V) {
2101
2544
  if (Type$1(O) !== 'Object') {
2102
- throw new $TypeError$2('Assertion failed: Type(O) is not Object');
2545
+ throw new $TypeError$4('Assertion failed: Type(O) is not Object');
2103
2546
  }
2104
2547
  if (!IsPropertyKey(P)) {
2105
- throw new $TypeError$2('Assertion failed: IsPropertyKey(P) is not true');
2548
+ throw new $TypeError$4('Assertion failed: IsPropertyKey(P) is not true');
2106
2549
  }
2107
- var oldDesc = $gOPD$1(O, P);
2108
- var extensible = oldDesc || IsExtensible(O);
2109
- var immutable = oldDesc && (!oldDesc.writable || !oldDesc.configurable);
2550
+ var oldDesc = OrdinaryGetOwnProperty(O, P);
2551
+ var extensible = !oldDesc || IsExtensible(O);
2552
+ var immutable = oldDesc && (!oldDesc['[[Writable]]'] || !oldDesc['[[Configurable]]']);
2110
2553
  if (immutable || !extensible) {
2111
2554
  return false;
2112
2555
  }
@@ -2125,64 +2568,24 @@ var CreateDataProperty = function CreateDataProperty(O, P, V) {
2125
2568
  );
2126
2569
  };
2127
2570
 
2128
- var fnToStr = Function.prototype.toString;
2129
-
2130
- var constructorRegex = /^\s*class\b/;
2131
- var isES6ClassFn = function isES6ClassFunction(value) {
2132
- try {
2133
- var fnStr = fnToStr.call(value);
2134
- return constructorRegex.test(fnStr);
2135
- } catch (e) {
2136
- return false; // not a function
2137
- }
2138
- };
2139
-
2140
- var tryFunctionObject = function tryFunctionToStr(value) {
2141
- try {
2142
- if (isES6ClassFn(value)) { return false; }
2143
- fnToStr.call(value);
2144
- return true;
2145
- } catch (e) {
2146
- return false;
2147
- }
2148
- };
2149
- var toStr$4 = Object.prototype.toString;
2150
- var fnClass = '[object Function]';
2151
- var genClass = '[object GeneratorFunction]';
2152
- var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
2153
-
2154
- var isCallable = function isCallable(value) {
2155
- if (!value) { return false; }
2156
- if (typeof value !== 'function' && typeof value !== 'object') { return false; }
2157
- if (typeof value === 'function' && !value.prototype) { return true; }
2158
- if (hasToStringTag) { return tryFunctionObject(value); }
2159
- if (isES6ClassFn(value)) { return false; }
2160
- var strClass = toStr$4.call(value);
2161
- return strClass === fnClass || strClass === genClass;
2162
- };
2163
-
2164
- // http://www.ecma-international.org/ecma-262/5.1/#sec-9.11
2165
-
2166
- var IsCallable = isCallable;
2167
-
2168
- var $TypeError$3 = GetIntrinsic('%TypeError%');
2571
+ var $TypeError$5 = getIntrinsic('%TypeError%');
2169
2572
 
2170
- // http://www.ecma-international.org/ecma-262/5.1/#sec-9.10
2573
+ // http://ecma-international.org/ecma-262/5.1/#sec-9.10
2171
2574
 
2172
2575
  var CheckObjectCoercible = function CheckObjectCoercible(value, optMessage) {
2173
2576
  if (value == null) {
2174
- throw new $TypeError$3(optMessage || ('Cannot call method on ' + value));
2577
+ throw new $TypeError$5(optMessage || ('Cannot call method on ' + value));
2175
2578
  }
2176
2579
  return value;
2177
2580
  };
2178
2581
 
2179
2582
  var RequireObjectCoercible = CheckObjectCoercible;
2180
2583
 
2181
- var $Object$1 = GetIntrinsic('%Object%');
2584
+ var $Object$1 = getIntrinsic('%Object%');
2182
2585
 
2183
2586
 
2184
2587
 
2185
- // https://www.ecma-international.org/ecma-262/6.0/#sec-toobject
2588
+ // https://ecma-international.org/ecma-262/6.0/#sec-toobject
2186
2589
 
2187
2590
  var ToObject = function ToObject(value) {
2188
2591
  RequireObjectCoercible(value);
@@ -2192,10 +2595,10 @@ var ToObject = function ToObject(value) {
2192
2595
  var $gOPD$2 = Object.getOwnPropertyDescriptor;
2193
2596
  var $getOwnNames = Object.getOwnPropertyNames;
2194
2597
  var $getSymbols = Object.getOwnPropertySymbols;
2195
- var $concat = callBound('Array.prototype.concat');
2598
+ var $concat$1 = callBound('Array.prototype.concat');
2196
2599
  var $reduce = callBound('Array.prototype.reduce');
2197
2600
  var getAll = $getSymbols ? function (obj) {
2198
- return $concat($getOwnNames(obj), $getSymbols(obj));
2601
+ return $concat$1($getOwnNames(obj), $getSymbols(obj));
2199
2602
  } : $getOwnNames;
2200
2603
 
2201
2604
  var isES5 = IsCallable($gOPD$2) && IsCallable($getOwnNames);
@@ -2234,13 +2637,15 @@ var shim = function shimGetOwnPropertyDescriptors() {
2234
2637
  return polyfill$1;
2235
2638
  };
2236
2639
 
2237
- defineProperties_1(implementation$2, {
2640
+ var bound = callBind(polyfill(), Object);
2641
+
2642
+ defineProperties_1(bound, {
2238
2643
  getPolyfill: polyfill,
2239
2644
  implementation: implementation$2,
2240
2645
  shim: shim
2241
2646
  });
2242
2647
 
2243
- var object_getownpropertydescriptors = implementation$2;
2648
+ var object_getownpropertydescriptors = bound;
2244
2649
 
2245
2650
  /* globals
2246
2651
  Atomics,
@@ -2249,7 +2654,7 @@ var object_getownpropertydescriptors = implementation$2;
2249
2654
 
2250
2655
  var undefined$2;
2251
2656
 
2252
- var $TypeError$4 = TypeError;
2657
+ var $TypeError$6 = TypeError;
2253
2658
 
2254
2659
  var $gOPD$3 = Object.getOwnPropertyDescriptor;
2255
2660
  if ($gOPD$3) {
@@ -2260,7 +2665,7 @@ if ($gOPD$3) {
2260
2665
  }
2261
2666
  }
2262
2667
 
2263
- var throwTypeError$1 = function () { throw new $TypeError$4(); };
2668
+ var throwTypeError$1 = function () { throw new $TypeError$6(); };
2264
2669
  var ThrowTypeError$1 = $gOPD$3
2265
2670
  ? (function () {
2266
2671
  try {
@@ -2278,12 +2683,12 @@ var ThrowTypeError$1 = $gOPD$3
2278
2683
  }())
2279
2684
  : throwTypeError$1;
2280
2685
 
2281
- var hasSymbols$3 = hasSymbols$1();
2686
+ var hasSymbols$4 = hasSymbols$1();
2282
2687
 
2283
2688
  var getProto$1 = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
2284
- var generatorFunction$1 = undefined$2;
2285
- var asyncFunction$1 = undefined$2;
2286
- var asyncGenFunction$1 = undefined$2;
2689
+ var generatorFunction = undefined$2;
2690
+ var asyncFunction = undefined$2;
2691
+ var asyncGenFunction = undefined$2;
2287
2692
 
2288
2693
  var TypedArray$1 = typeof Uint8Array === 'undefined' ? undefined$2 : getProto$1(Uint8Array);
2289
2694
 
@@ -2291,17 +2696,17 @@ var INTRINSICS$1 = {
2291
2696
  '%Array%': Array,
2292
2697
  '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$2 : ArrayBuffer,
2293
2698
  '%ArrayBufferPrototype%': typeof ArrayBuffer === 'undefined' ? undefined$2 : ArrayBuffer.prototype,
2294
- '%ArrayIteratorPrototype%': hasSymbols$3 ? getProto$1([][Symbol.iterator]()) : undefined$2,
2699
+ '%ArrayIteratorPrototype%': hasSymbols$4 ? getProto$1([][Symbol.iterator]()) : undefined$2,
2295
2700
  '%ArrayPrototype%': Array.prototype,
2296
2701
  '%ArrayProto_entries%': Array.prototype.entries,
2297
2702
  '%ArrayProto_forEach%': Array.prototype.forEach,
2298
2703
  '%ArrayProto_keys%': Array.prototype.keys,
2299
2704
  '%ArrayProto_values%': Array.prototype.values,
2300
2705
  '%AsyncFromSyncIteratorPrototype%': undefined$2,
2301
- '%AsyncFunction%': asyncFunction$1,
2706
+ '%AsyncFunction%': asyncFunction,
2302
2707
  '%AsyncFunctionPrototype%': undefined$2,
2303
2708
  '%AsyncGenerator%': undefined$2,
2304
- '%AsyncGeneratorFunction%': asyncGenFunction$1,
2709
+ '%AsyncGeneratorFunction%': asyncGenFunction,
2305
2710
  '%AsyncGeneratorPrototype%': undefined$2,
2306
2711
  '%AsyncIteratorPrototype%': undefined$2,
2307
2712
  '%Atomics%': typeof Atomics === 'undefined' ? undefined$2 : Atomics,
@@ -2327,7 +2732,7 @@ var INTRINSICS$1 = {
2327
2732
  '%Function%': Function,
2328
2733
  '%FunctionPrototype%': Function.prototype,
2329
2734
  '%Generator%': undefined$2,
2330
- '%GeneratorFunction%': generatorFunction$1,
2735
+ '%GeneratorFunction%': generatorFunction,
2331
2736
  '%GeneratorPrototype%': undefined$2,
2332
2737
  '%Int8Array%': typeof Int8Array === 'undefined' ? undefined$2 : Int8Array,
2333
2738
  '%Int8ArrayPrototype%': typeof Int8Array === 'undefined' ? undefined$2 : Int8Array.prototype,
@@ -2337,11 +2742,11 @@ var INTRINSICS$1 = {
2337
2742
  '%Int32ArrayPrototype%': typeof Int32Array === 'undefined' ? undefined$2 : Int32Array.prototype,
2338
2743
  '%isFinite%': isFinite,
2339
2744
  '%isNaN%': isNaN,
2340
- '%IteratorPrototype%': hasSymbols$3 ? getProto$1(getProto$1([][Symbol.iterator]())) : undefined$2,
2745
+ '%IteratorPrototype%': hasSymbols$4 ? getProto$1(getProto$1([][Symbol.iterator]())) : undefined$2,
2341
2746
  '%JSON%': typeof JSON === 'object' ? JSON : undefined$2,
2342
2747
  '%JSONParse%': typeof JSON === 'object' ? JSON.parse : undefined$2,
2343
2748
  '%Map%': typeof Map === 'undefined' ? undefined$2 : Map,
2344
- '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$3 ? undefined$2 : getProto$1(new Map()[Symbol.iterator]()),
2749
+ '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$4 ? undefined$2 : getProto$1(new Map()[Symbol.iterator]()),
2345
2750
  '%MapPrototype%': typeof Map === 'undefined' ? undefined$2 : Map.prototype,
2346
2751
  '%Math%': Math,
2347
2752
  '%Number%': Number,
@@ -2367,22 +2772,22 @@ var INTRINSICS$1 = {
2367
2772
  '%RegExp%': RegExp,
2368
2773
  '%RegExpPrototype%': RegExp.prototype,
2369
2774
  '%Set%': typeof Set === 'undefined' ? undefined$2 : Set,
2370
- '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$3 ? undefined$2 : getProto$1(new Set()[Symbol.iterator]()),
2775
+ '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$4 ? undefined$2 : getProto$1(new Set()[Symbol.iterator]()),
2371
2776
  '%SetPrototype%': typeof Set === 'undefined' ? undefined$2 : Set.prototype,
2372
2777
  '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$2 : SharedArrayBuffer,
2373
2778
  '%SharedArrayBufferPrototype%': typeof SharedArrayBuffer === 'undefined' ? undefined$2 : SharedArrayBuffer.prototype,
2374
2779
  '%String%': String,
2375
- '%StringIteratorPrototype%': hasSymbols$3 ? getProto$1(''[Symbol.iterator]()) : undefined$2,
2780
+ '%StringIteratorPrototype%': hasSymbols$4 ? getProto$1(''[Symbol.iterator]()) : undefined$2,
2376
2781
  '%StringPrototype%': String.prototype,
2377
- '%Symbol%': hasSymbols$3 ? Symbol : undefined$2,
2378
- '%SymbolPrototype%': hasSymbols$3 ? Symbol.prototype : undefined$2,
2782
+ '%Symbol%': hasSymbols$4 ? Symbol : undefined$2,
2783
+ '%SymbolPrototype%': hasSymbols$4 ? Symbol.prototype : undefined$2,
2379
2784
  '%SyntaxError%': SyntaxError,
2380
2785
  '%SyntaxErrorPrototype%': SyntaxError.prototype,
2381
2786
  '%ThrowTypeError%': ThrowTypeError$1,
2382
2787
  '%TypedArray%': TypedArray$1,
2383
2788
  '%TypedArrayPrototype%': TypedArray$1 ? TypedArray$1.prototype : undefined$2,
2384
- '%TypeError%': $TypeError$4,
2385
- '%TypeErrorPrototype%': $TypeError$4.prototype,
2789
+ '%TypeError%': $TypeError$6,
2790
+ '%TypeErrorPrototype%': $TypeError$6.prototype,
2386
2791
  '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$2 : Uint8Array,
2387
2792
  '%Uint8ArrayPrototype%': typeof Uint8Array === 'undefined' ? undefined$2 : Uint8Array.prototype,
2388
2793
  '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$2 : Uint8ClampedArray,
@@ -2421,13 +2826,13 @@ var getBaseIntrinsic$1 = function getBaseIntrinsic(name, allowMissing) {
2421
2826
 
2422
2827
  // istanbul ignore if // hopefully this is impossible to test :-)
2423
2828
  if (typeof INTRINSICS$1[name] === 'undefined' && !allowMissing) {
2424
- throw new $TypeError$4('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
2829
+ throw new $TypeError$6('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
2425
2830
  }
2426
2831
 
2427
2832
  return INTRINSICS$1[name];
2428
2833
  };
2429
2834
 
2430
- var GetIntrinsic$1 = function GetIntrinsic(name, allowMissing) {
2835
+ var GetIntrinsic = function GetIntrinsic(name, allowMissing) {
2431
2836
  if (typeof name !== 'string' || name.length === 0) {
2432
2837
  throw new TypeError('intrinsic name must be a non-empty string');
2433
2838
  }
@@ -2443,9 +2848,16 @@ var GetIntrinsic$1 = function GetIntrinsic(name, allowMissing) {
2443
2848
  if ($gOPD$3 && (i + 1) >= parts.length) {
2444
2849
  var desc = $gOPD$3(value, parts[i]);
2445
2850
  if (!allowMissing && !(parts[i] in value)) {
2446
- throw new $TypeError$4('base intrinsic for ' + name + ' exists, but the property is not available.');
2851
+ throw new $TypeError$6('base intrinsic for ' + name + ' exists, but the property is not available.');
2447
2852
  }
2448
- value = desc ? (desc.get || desc.value) : value[parts[i]];
2853
+ // By convention, when a data property is converted to an accessor
2854
+ // property to emulate a data property that does not suffer from
2855
+ // the override mistake, that accessor's getter is marked with
2856
+ // an `originalValue` property. Here, when we detect this, we
2857
+ // uphold the illusion by pretending to see that original data
2858
+ // property, i.e., returning the value rather than the getter
2859
+ // itself.
2860
+ value = desc && 'get' in desc && !('originalValue' in desc.get) ? desc.get : value[parts[i]];
2449
2861
  } else {
2450
2862
  value = value[parts[i]];
2451
2863
  }
@@ -2454,23 +2866,47 @@ var GetIntrinsic$1 = function GetIntrinsic(name, allowMissing) {
2454
2866
  return value;
2455
2867
  };
2456
2868
 
2457
- var $apply$1 = GetIntrinsic$1('%Function.prototype.apply%');
2458
- var $call$1 = GetIntrinsic$1('%Function.prototype.call%');
2459
- var $reflectApply = GetIntrinsic$1('%Reflect.apply%', true) || functionBind.call($call$1, $apply$1);
2869
+ var callBind$1 = _commonjsHelpers.createCommonjsModule(function (module) {
2870
+
2871
+
2872
+
2873
+
2460
2874
 
2461
- var callBind$1 = function callBind() {
2462
- return $reflectApply(functionBind, $call$1, arguments);
2875
+ var $apply = GetIntrinsic('%Function.prototype.apply%');
2876
+ var $call = GetIntrinsic('%Function.prototype.call%');
2877
+ var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || functionBind.call($call, $apply);
2878
+
2879
+ var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
2880
+
2881
+ if ($defineProperty) {
2882
+ try {
2883
+ $defineProperty({}, 'a', { value: 1 });
2884
+ } catch (e) {
2885
+ // IE 8 has a broken defineProperty
2886
+ $defineProperty = null;
2887
+ }
2888
+ }
2889
+
2890
+ module.exports = function callBind() {
2891
+ return $reflectApply(functionBind, $call, arguments);
2463
2892
  };
2464
2893
 
2465
- var apply$1 = function applyBind() {
2466
- return $reflectApply(functionBind, $apply$1, arguments);
2894
+ var applyBind = function applyBind() {
2895
+ return $reflectApply(functionBind, $apply, arguments);
2467
2896
  };
2468
- callBind$1.apply = apply$1;
2469
2897
 
2470
- var $indexOf$1 = callBind$1(GetIntrinsic$1('String.prototype.indexOf'));
2898
+ if ($defineProperty) {
2899
+ $defineProperty(module.exports, 'apply', { value: applyBind });
2900
+ } else {
2901
+ module.exports.apply = applyBind;
2902
+ }
2903
+ });
2904
+ callBind$1.apply;
2905
+
2906
+ var $indexOf$1 = callBind$1(GetIntrinsic('String.prototype.indexOf'));
2471
2907
 
2472
2908
  var callBound$1 = function callBoundIntrinsic(name, allowMissing) {
2473
- var intrinsic = GetIntrinsic$1(name, !!allowMissing);
2909
+ var intrinsic = GetIntrinsic(name, !!allowMissing);
2474
2910
  if (typeof intrinsic === 'function' && $indexOf$1(name, '.prototype.')) {
2475
2911
  return callBind$1(intrinsic);
2476
2912
  }
@@ -2495,13 +2931,13 @@ if (typeof Promise !== 'function') {
2495
2931
 
2496
2932
 
2497
2933
  var $slice = callBound$1('Array.prototype.slice');
2498
- var $concat$1 = callBound$1('Array.prototype.concat');
2934
+ var $concat$2 = callBound$1('Array.prototype.concat');
2499
2935
  var $forEach = callBound$1('Array.prototype.forEach');
2500
2936
 
2501
- var hasSymbols$4 = hasSymbols$1();
2937
+ var hasSymbols$5 = hasSymbols$1();
2502
2938
 
2503
- var kCustomPromisifiedSymbol = hasSymbols$4 ? Symbol('util.promisify.custom') : null;
2504
- var kCustomPromisifyArgsSymbol = hasSymbols$4 ? Symbol('customPromisifyArgs') : null;
2939
+ var kCustomPromisifiedSymbol = hasSymbols$5 ? Symbol('util.promisify.custom') : null;
2940
+ var kCustomPromisifyArgsSymbol = hasSymbols$5 ? Symbol('customPromisifyArgs') : null;
2505
2941
 
2506
2942
  var implementation$3 = function promisify(orig) {
2507
2943
  if (typeof orig !== 'function') {
@@ -2511,7 +2947,7 @@ var implementation$3 = function promisify(orig) {
2511
2947
  throw error;
2512
2948
  }
2513
2949
 
2514
- if (hasSymbols$4 && orig[kCustomPromisifiedSymbol]) {
2950
+ if (hasSymbols$5 && orig[kCustomPromisifiedSymbol]) {
2515
2951
  var customFunction = orig[kCustomPromisifiedSymbol];
2516
2952
  if (typeof customFunction !== 'function') {
2517
2953
  throw new TypeError('The [util.promisify.custom] property must be a function');
@@ -2533,7 +2969,7 @@ var implementation$3 = function promisify(orig) {
2533
2969
  var args = $slice(arguments);
2534
2970
  var self = this; // eslint-disable-line no-invalid-this
2535
2971
  return new Promise(function (resolve, reject) {
2536
- orig.apply(self, $concat$1(args, function (err) {
2972
+ orig.apply(self, $concat$2(args, function (err) {
2537
2973
  var values = arguments.length > 1 ? $slice(arguments, 1) : [];
2538
2974
  if (err) {
2539
2975
  reject(err);
@@ -2618,7 +3054,7 @@ function connect() {
2618
3054
  };
2619
3055
  }
2620
3056
 
2621
- var connection = mysql.createConnection(config);
3057
+ var connection = mysql__default['default'].createConnection(config);
2622
3058
  return {
2623
3059
  query: function query(sql, args) {
2624
3060
  return util.util.promisify(connection.query).call(connection, sql, args);
@@ -2812,7 +3248,7 @@ var md5 = _commonjsHelpers.createCommonjsModule(function (module) {
2812
3248
  message = utf8.stringToBytes(message);
2813
3249
  else if (isBuffer(message))
2814
3250
  message = Array.prototype.slice.call(message, 0);
2815
- else if (!Array.isArray(message))
3251
+ else if (!Array.isArray(message) && message.constructor !== Uint8Array)
2816
3252
  message = message.toString();
2817
3253
  // else, assume byte array already
2818
3254
 
@@ -3579,7 +4015,7 @@ var user = /*#__PURE__*/Object.freeze({
3579
4015
  findUser: findUser$1
3580
4016
  });
3581
4017
 
3582
- var localStrategy = new Local.Strategy({
4018
+ var localStrategy = new Local__default['default'].Strategy({
3583
4019
  usernameField: 'email',
3584
4020
  passwordField: 'password'
3585
4021
  }, function (email, password, done) {