@mjhls/mjh-framework 1.0.703-testing-module-splittingv6 → 1.0.704-beta-v2

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 (272) hide show
  1. package/README.md +172 -172
  2. package/dist/cjs/AD.js +9 -10
  3. package/dist/cjs/AD300x250.js +24 -26
  4. package/dist/cjs/AD300x250x600.js +24 -26
  5. package/dist/cjs/AD728x90.js +27 -29
  6. package/dist/cjs/ADFloatingFooter.js +29 -31
  7. package/dist/cjs/ADFooter.js +14 -16
  8. package/dist/cjs/ADGutter.js +26 -28
  9. package/dist/cjs/{ADInfeed-d36dc3ca.js → ADInfeed-38066a36.js} +11 -13
  10. package/dist/cjs/ADSkyscraper.js +26 -28
  11. package/dist/cjs/ADSponsoredResources.js +26 -28
  12. package/dist/cjs/ADWebcast.js +26 -28
  13. package/dist/cjs/ADWelcome.js +31 -33
  14. package/dist/cjs/{ADlgInfeed-93205fa0.js → ADlgInfeed-d95c9027.js} +8 -9
  15. package/dist/cjs/AccordionPanel.js +29 -32
  16. package/dist/cjs/AdSlot.js +31 -33
  17. package/dist/cjs/AdSlotsProvider.js +7 -8
  18. package/dist/cjs/AlphabeticList.js +24 -26
  19. package/dist/cjs/ArticleCarousel.js +21 -23
  20. package/dist/cjs/ArticleSeriesListing.js +57 -59
  21. package/dist/cjs/Auth.js +330 -817
  22. package/dist/cjs/{AuthorComponent-482218ce.js → AuthorComponent-bb831b74.js} +13 -14
  23. package/dist/cjs/Beam.js +9 -10
  24. package/dist/cjs/{BlockContent-eca358e4.js → BlockContent-80b15fac.js} +24 -25
  25. package/dist/cjs/Breadcrumbs.js +27 -30
  26. package/dist/cjs/BrowseVideosListing.js +39 -41
  27. package/dist/cjs/CMEDeck.js +78 -79
  28. package/dist/cjs/Column1.js +11 -14
  29. package/dist/cjs/Column2.js +32 -36
  30. package/dist/cjs/Column3.js +55 -59
  31. package/dist/cjs/ConferenceArticleCard.js +37 -38
  32. package/dist/cjs/ConferenceBanner-4a16fddc.js +23 -0
  33. package/dist/cjs/DeckContent.js +102 -107
  34. package/dist/cjs/DeckQueue.js +86 -91
  35. package/dist/cjs/{Dfp-80c3d853.js → Dfp-390337bf.js} +30 -32
  36. package/dist/cjs/EventsDeck.js +149 -157
  37. package/dist/cjs/ExternalResources.js +74 -76
  38. package/dist/cjs/Feature.js +25 -27
  39. package/dist/cjs/ForbesHero.js +40 -42
  40. package/dist/cjs/GridContent.js +177 -182
  41. package/dist/cjs/GridHero.js +42 -44
  42. package/dist/cjs/GroupDeck.js +49 -51
  43. package/dist/cjs/HamMagazine.js +139 -145
  44. package/dist/cjs/Header.js +11 -13
  45. package/dist/cjs/Hero.js +12 -13
  46. package/dist/cjs/HighlightenVideo.js +17 -18
  47. package/dist/cjs/HorizontalHero.js +25 -26
  48. package/dist/cjs/IssueContentDeck.js +72 -78
  49. package/dist/cjs/IssueDeck.js +70 -76
  50. package/dist/cjs/IssueLanding.js +69 -71
  51. package/dist/cjs/KMTracker.js +15 -15
  52. package/dist/cjs/LeftNav.js +36 -39
  53. package/dist/cjs/MasterDeck.js +79 -81
  54. package/dist/cjs/NavDvm.js +75 -81
  55. package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-76c913e3.js} +14 -15
  56. package/dist/cjs/NavMagazine.js +148 -154
  57. package/dist/cjs/NavNative.js +124 -133
  58. package/dist/cjs/NavNormal.js +48 -54
  59. package/dist/cjs/OncliveHero.js +20 -20
  60. package/dist/cjs/OncliveLargeHero.js +66 -68
  61. package/dist/cjs/PageFilter.js +14 -16
  62. package/dist/cjs/PartnerDetailListing.js +105 -107
  63. package/dist/cjs/PdfDownload.js +8 -9
  64. package/dist/cjs/PopUpModal.js +19 -22
  65. package/dist/cjs/PublicationDeck.js +61 -66
  66. package/dist/cjs/PublicationLanding.js +114 -119
  67. package/dist/cjs/QueueDeckExpanded.js +292 -293
  68. package/dist/cjs/RecentNews.js +23 -24
  69. package/dist/cjs/RelatedContent.js +52 -53
  70. package/dist/cjs/RelatedTopicsDropdown.js +29 -32
  71. package/dist/cjs/RolesDeck.js +27 -32
  72. package/dist/cjs/Search.js +18 -23
  73. package/dist/cjs/Segment.js +7 -8
  74. package/dist/cjs/SetCookie.js +1 -1
  75. package/dist/cjs/SideFooter.js +37 -39
  76. package/dist/cjs/SocialIcons.js +9 -10
  77. package/dist/cjs/{SocialSearchComponent-a49e8e9d.js → SocialSearchComponent-56d49a1a.js} +36 -40
  78. package/dist/cjs/SocialShare.js +29 -31
  79. package/dist/cjs/TaxonomyCard.js +57 -63
  80. package/dist/cjs/TemplateNormal.js +72 -74
  81. package/dist/cjs/ThumbnailCard.js +20 -22
  82. package/dist/cjs/Ustream.js +26 -28
  83. package/dist/cjs/VerticalHero.js +17 -18
  84. package/dist/cjs/VideoSeriesCard.js +33 -35
  85. package/dist/cjs/VideoSeriesFilter.js +19 -20
  86. package/dist/cjs/VideoSeriesListing.js +72 -74
  87. package/dist/cjs/View.js +220 -224
  88. package/dist/cjs/YahooHero.js +39 -41
  89. package/dist/cjs/YoutubeGroup.js +68 -70
  90. package/dist/cjs/{_is-array-4c61cfba.js → _is-array-754e012d.js} +12 -13
  91. package/dist/cjs/{_iter-detect-2a826637.js → _iter-detect-60b2f026.js} +4 -4
  92. package/dist/cjs/_object-sap-5e74ba08.js +16 -0
  93. package/dist/cjs/{_set-species-d088ff6e.js → _set-species-f92c67c5.js} +9 -10
  94. package/dist/cjs/{_export-7e018e14.js → _to-object-329a650b.js} +146 -2
  95. package/dist/cjs/{asyncToGenerator-7ca8f87e.js → asyncToGenerator-533d476a.js} +57 -58
  96. package/dist/cjs/{brightcove-react-player-loader.es-a195642e.js → brightcove-react-player-loader.es-156bd4d6.js} +9 -11
  97. package/dist/cjs/{core.get-iterator-method-14f49e03.js → core.get-iterator-method-f62321d4.js} +3 -4
  98. package/dist/cjs/{define-property-fd46a81e.js → define-property-f4d12f4e.js} +3 -3
  99. package/dist/cjs/{defineProperty-edc12c5a.js → defineProperty-55548b25.js} +1 -1
  100. package/dist/cjs/{entities-3f9d0f2f.js → entities-310b46ee.js} +1 -1
  101. package/dist/cjs/{es6.string.iterator-a390d61f.js → es6.string.iterator-cc0bbaa4.js} +17 -18
  102. package/dist/cjs/{extends-0a166456.js → extends-60837c34.js} +5 -6
  103. package/dist/cjs/getRelatedArticle.js +76 -139
  104. package/dist/cjs/getSerializers.js +41 -42
  105. package/dist/cjs/{getTargeting-57edbc60.js → getTargeting-fee8c429.js} +11 -11
  106. package/dist/cjs/getTargeting.js +7 -8
  107. package/dist/cjs/iconBase-68959171.js +3 -0
  108. package/dist/cjs/{index-5ad2b070.js → index-099d45ae.js} +17 -16
  109. package/dist/cjs/{index-cb6ed1fc.js → index-3294d3bc.js} +18 -17
  110. package/dist/cjs/{index-d48b231c.js → index-39beccb3.js} +24 -29
  111. package/dist/cjs/{index-0e3597c2.js → index-58dae365.js} +429 -440
  112. package/dist/cjs/{index-80f57cff.js → index-da796b8c.js} +15 -17
  113. package/dist/cjs/{index.es-f3e47207.js → index.es-9110add6.js} +12 -31
  114. package/dist/cjs/{index.esm-8123cf40.js → index.esm-4d410430.js} +20 -20
  115. package/dist/cjs/{index.esm-3b9b8952.js → index.esm-66ffa47a.js} +9 -4
  116. package/dist/cjs/{index.esm-974f47d9.js → index.esm-90433435.js} +15 -6
  117. package/dist/cjs/{index.esm-05850a2f.js → index.esm-ff47db6f.js} +12 -5
  118. package/dist/cjs/index.js +261 -9
  119. package/dist/cjs/{inherits-a9209207.js → inherits-513d81cd.js} +15 -16
  120. package/dist/cjs/{keys-d2f5bcf0.js → keys-a586b7a0.js} +3 -4
  121. package/dist/cjs/{lodash-4ef21f0f.js → lodash-7fd85bcf.js} +1 -1
  122. package/dist/cjs/{main-eeffe77b.js → main-03ffa84c.js} +80 -116
  123. package/dist/cjs/{moment-aca40de1.js → moment-575fe24c.js} +9 -11
  124. package/dist/cjs/{react-social-icons-af932527.js → react-social-icons-f7f48f71.js} +27 -28
  125. package/dist/cjs/{slicedToArray-60dafa9c.js → slicedToArray-8f385299.js} +7 -7
  126. package/dist/cjs/{smoothscroll-1abb448e.js → smoothscroll-95231a70.js} +1 -1
  127. package/dist/cjs/{stringify-44244c64.js → stringify-7c5aff47.js} +2 -2
  128. package/dist/cjs/timeDifferenceCalc.js +1 -1
  129. package/dist/cjs/{toConsumableArray-4bb00640.js → toConsumableArray-9a3476fe.js} +8 -9
  130. package/dist/cjs/{typeof-03c3fdc8.js → typeof-725500bc.js} +49 -50
  131. package/dist/cjs/urlFor.js +2 -2
  132. package/dist/cjs/{util-6f784d85.js → util-f2c1b65b.js} +1 -1
  133. package/dist/cjs/{visibility-sensor-8b54af99.js → visibility-sensor-0c45a583.js} +5 -7
  134. package/dist/cjs/{web.dom.iterable-2d47ebe6.js → web.dom.iterable-a0e279c1.js} +5 -6
  135. package/dist/esm/AD.js +7 -7
  136. package/dist/esm/AD300x250.js +22 -23
  137. package/dist/esm/AD300x250x600.js +22 -23
  138. package/dist/esm/AD728x90.js +25 -26
  139. package/dist/esm/ADFloatingFooter.js +27 -28
  140. package/dist/esm/ADFooter.js +11 -12
  141. package/dist/esm/ADGutter.js +24 -25
  142. package/dist/esm/{ADInfeed-bf7de12d.js → ADInfeed-7b1b2fcb.js} +7 -7
  143. package/dist/esm/ADSkyscraper.js +24 -25
  144. package/dist/esm/ADSponsoredResources.js +24 -25
  145. package/dist/esm/ADWebcast.js +24 -25
  146. package/dist/esm/ADWelcome.js +29 -30
  147. package/dist/esm/{ADlgInfeed-3ac04591.js → ADlgInfeed-2afe92e6.js} +6 -6
  148. package/dist/esm/AccordionPanel.js +24 -25
  149. package/dist/esm/AdSlot.js +23 -24
  150. package/dist/esm/AdSlotsProvider.js +4 -4
  151. package/dist/esm/AlphabeticList.js +22 -23
  152. package/dist/esm/ArticleCarousel.js +18 -19
  153. package/dist/esm/ArticleSeriesListing.js +52 -53
  154. package/dist/esm/Auth.js +315 -798
  155. package/dist/esm/{AuthorComponent-22790017.js → AuthorComponent-00f13201.js} +11 -11
  156. package/dist/esm/Beam.js +9 -10
  157. package/dist/esm/{BlockContent-d8cd739c.js → BlockContent-c409aca5.js} +4 -4
  158. package/dist/esm/Breadcrumbs.js +17 -18
  159. package/dist/esm/BrowseVideosListing.js +36 -37
  160. package/dist/esm/CMEDeck.js +75 -76
  161. package/dist/esm/Column1.js +5 -5
  162. package/dist/esm/Column2.js +26 -27
  163. package/dist/esm/Column3.js +49 -50
  164. package/dist/esm/ConferenceArticleCard.js +33 -33
  165. package/dist/esm/{ConferenceBanner-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
  166. package/dist/esm/DeckContent.js +84 -85
  167. package/dist/esm/DeckQueue.js +64 -65
  168. package/dist/esm/{Dfp-08279047.js → Dfp-741c01be.js} +20 -21
  169. package/dist/esm/EventsDeck.js +100 -101
  170. package/dist/esm/ExternalResources.js +69 -70
  171. package/dist/esm/Feature.js +18 -18
  172. package/dist/esm/ForbesHero.js +34 -35
  173. package/dist/esm/GridContent.js +139 -140
  174. package/dist/esm/GridHero.js +36 -37
  175. package/dist/esm/GroupDeck.js +45 -46
  176. package/dist/esm/HamMagazine.js +113 -114
  177. package/dist/esm/Header.js +7 -7
  178. package/dist/esm/Hero.js +9 -9
  179. package/dist/esm/HighlightenVideo.js +14 -14
  180. package/dist/esm/HorizontalHero.js +21 -21
  181. package/dist/esm/IssueContentDeck.js +49 -50
  182. package/dist/esm/IssueDeck.js +46 -47
  183. package/dist/esm/IssueLanding.js +67 -68
  184. package/dist/esm/KMTracker.js +15 -15
  185. package/dist/esm/LeftNav.js +33 -34
  186. package/dist/esm/MasterDeck.js +73 -74
  187. package/dist/esm/NavDvm.js +57 -58
  188. package/dist/esm/{NavFooter-c29526b7.js → NavFooter-e27bd93b.js} +12 -12
  189. package/dist/esm/NavMagazine.js +124 -125
  190. package/dist/esm/NavNative.js +100 -101
  191. package/dist/esm/NavNormal.js +36 -37
  192. package/dist/esm/OncliveHero.js +17 -16
  193. package/dist/esm/OncliveLargeHero.js +59 -60
  194. package/dist/esm/PageFilter.js +12 -13
  195. package/dist/esm/PartnerDetailListing.js +102 -103
  196. package/dist/esm/PdfDownload.js +6 -6
  197. package/dist/esm/PopUpModal.js +14 -15
  198. package/dist/esm/PublicationDeck.js +38 -38
  199. package/dist/esm/PublicationLanding.js +75 -76
  200. package/dist/esm/QueueDeckExpanded.js +273 -274
  201. package/dist/esm/RecentNews.js +20 -20
  202. package/dist/esm/RelatedContent.js +47 -47
  203. package/dist/esm/RelatedTopicsDropdown.js +21 -21
  204. package/dist/esm/RolesDeck.js +13 -13
  205. package/dist/esm/Search.js +12 -13
  206. package/dist/esm/Segment.js +7 -8
  207. package/dist/esm/SetCookie.js +1 -1
  208. package/dist/esm/SideFooter.js +33 -34
  209. package/dist/esm/SocialIcons.js +7 -7
  210. package/dist/esm/{SocialSearchComponent-46ea0f4d.js → SocialSearchComponent-677ed3bd.js} +28 -28
  211. package/dist/esm/SocialShare.js +25 -25
  212. package/dist/esm/TaxonomyCard.js +41 -42
  213. package/dist/esm/TemplateNormal.js +67 -68
  214. package/dist/esm/ThumbnailCard.js +13 -13
  215. package/dist/esm/Ustream.js +23 -24
  216. package/dist/esm/VerticalHero.js +13 -13
  217. package/dist/esm/VideoSeriesCard.js +25 -26
  218. package/dist/esm/VideoSeriesFilter.js +16 -17
  219. package/dist/esm/VideoSeriesListing.js +66 -67
  220. package/dist/esm/View.js +212 -212
  221. package/dist/esm/YahooHero.js +34 -35
  222. package/dist/esm/YoutubeGroup.js +53 -54
  223. package/dist/esm/{_is-array-46713c19.js → _is-array-49698029.js} +6 -7
  224. package/dist/esm/{_iter-detect-60cd145f.js → _iter-detect-59409a32.js} +2 -2
  225. package/dist/esm/{_object-pie-33c40e79.js → _object-pie-71ac75a4.js} +1 -1
  226. package/dist/esm/{_object-sap-108a1939.js → _object-sap-4d59d5bd.js} +1 -1
  227. package/dist/esm/{_set-species-a4b3fe39.js → _set-species-cede29f8.js} +5 -6
  228. package/dist/esm/{_export-9029ebab.js → _to-object-ded78eb9.js} +134 -3
  229. package/dist/esm/{asyncToGenerator-7714cea4.js → asyncToGenerator-7c654f36.js} +9 -10
  230. package/dist/esm/{brightcove-react-player-loader.es-b43c695a.js → brightcove-react-player-loader.es-83f53e4e.js} +6 -7
  231. package/dist/esm/{core.get-iterator-method-6636b3ef.js → core.get-iterator-method-54d2e411.js} +2 -3
  232. package/dist/esm/{define-property-f2d6f244.js → define-property-de3fc946.js} +1 -1
  233. package/dist/esm/{defineProperty-69f06029.js → defineProperty-b798470d.js} +1 -1
  234. package/dist/esm/{entities-932b50cf.js → entities-7cc3bf45.js} +1 -1
  235. package/dist/esm/{es6.string.iterator-2efae22d.js → es6.string.iterator-9b2af4a5.js} +3 -4
  236. package/dist/esm/{extends-f866c8d0.js → extends-cc5da797.js} +2 -3
  237. package/dist/esm/getRelatedArticle.js +71 -134
  238. package/dist/esm/getSerializers.js +41 -42
  239. package/dist/esm/{getTargeting-5cdca4e1.js → getTargeting-2acdec91.js} +11 -11
  240. package/dist/esm/getTargeting.js +8 -9
  241. package/dist/esm/{index-3f5c03b2.js → index-3849e3fe.js} +24 -29
  242. package/dist/esm/{index-669ff425.js → index-3f4dd6f2.js} +12 -10
  243. package/dist/esm/{index-752d1dae.js → index-5f9f807a.js} +10 -10
  244. package/dist/esm/{index-5db919a6.js → index-7779a6df.js} +380 -384
  245. package/dist/esm/{index-750a7380.js → index-ef6d5dcf.js} +18 -17
  246. package/dist/esm/{index.es-c6222053.js → index.es-29c1cef5.js} +10 -28
  247. package/dist/esm/{index.esm-57f377a5.js → index.esm-29e48d38.js} +16 -7
  248. package/dist/esm/{index.esm-d6f88d94.js → index.esm-b08f4b04.js} +9 -4
  249. package/dist/esm/{index.esm-a8ff922c.js → index.esm-cf08bf18.js} +12 -5
  250. package/dist/esm/{index.esm-8016b507.js → index.esm-fd746768.js} +18 -17
  251. package/dist/esm/index.js +173 -11
  252. package/dist/esm/{inherits-75d6495f.js → inherits-7ee3e0c1.js} +5 -6
  253. package/dist/esm/{keys-78217618.js → keys-fc2d4c34.js} +2 -3
  254. package/dist/esm/{lodash-ad27652f.js → lodash-ec8c6b48.js} +1 -1
  255. package/dist/esm/{main-decc48f4.js → main-35ff7b4f.js} +78 -113
  256. package/dist/esm/{moment-bc12cb97.js → moment-e2f9b20c.js} +9 -11
  257. package/dist/esm/{react-social-icons-91f9716f.js → react-social-icons-a7d5c5c7.js} +20 -20
  258. package/dist/esm/{slicedToArray-fa9240c4.js → slicedToArray-7021e5df.js} +4 -4
  259. package/dist/esm/{smoothscroll-ab6e0238.js → smoothscroll-4b699764.js} +1 -1
  260. package/dist/esm/{stringify-22907f56.js → stringify-008c8802.js} +1 -1
  261. package/dist/esm/timeDifferenceCalc.js +1 -1
  262. package/dist/esm/{toConsumableArray-bd01c637.js → toConsumableArray-725434a0.js} +4 -5
  263. package/dist/esm/{typeof-668f30cd.js → typeof-08f2c380.js} +8 -9
  264. package/dist/esm/urlFor.js +1 -1
  265. package/dist/esm/{util-3ab476bf.js → util-7700fc59.js} +1 -1
  266. package/dist/esm/{visibility-sensor-082c757b.js → visibility-sensor-0baa4eea.js} +2 -2
  267. package/dist/esm/{web.dom.iterable-89515070.js → web.dom.iterable-8956f9a5.js} +3 -4
  268. package/package.json +105 -105
  269. package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
  270. package/dist/cjs/_object-sap-4ac28868.js +0 -16
  271. package/dist/cjs/_to-object-233fc5c9.js +0 -149
  272. package/dist/esm/_to-object-62924b74.js +0 -135
package/dist/cjs/Auth.js CHANGED
@@ -2,36 +2,31 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var asyncToGenerator = require('./asyncToGenerator-7ca8f87e.js');
6
- var stringify = require('./stringify-44244c64.js');
7
- var slicedToArray = require('./slicedToArray-60dafa9c.js');
8
- var React = require('react');
9
- var Router = require('next/router');
10
- var _extends = require('./extends-0a166456.js');
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');
16
- var util = require('./util-6f784d85.js');
5
+ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
6
+
17
7
  var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
18
- require('./es6.string.iterator-a390d61f.js');
19
- require('./_to-object-233fc5c9.js');
20
- require('./_export-7e018e14.js');
21
- require('./web.dom.iterable-2d47ebe6.js');
8
+ require('./_to-object-329a650b.js');
9
+ require('./es6.string.iterator-cc0bbaa4.js');
22
10
  require('./_library-dd23b178.js');
23
- require('./core.get-iterator-method-14f49e03.js');
24
- require('./_set-species-d088ff6e.js');
25
- require('./_iter-detect-2a826637.js');
11
+ require('./_iter-detect-60b2f026.js');
12
+ require('./core.get-iterator-method-f62321d4.js');
26
13
  require('./_object-pie-68c5bcbc.js');
27
-
28
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
29
-
30
- var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
31
- var Router__default = /*#__PURE__*/_interopDefaultLegacy(Router);
32
- var useSWR__default = /*#__PURE__*/_interopDefaultLegacy(useSWR);
33
- var Local__default = /*#__PURE__*/_interopDefaultLegacy(Local);
34
- var mysql__default = /*#__PURE__*/_interopDefaultLegacy(mysql);
14
+ var _extends = require('./extends-60837c34.js');
15
+ require('./web.dom.iterable-a0e279c1.js');
16
+ var React = require('react');
17
+ var React__default = _interopDefault(React);
18
+ 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');
24
+ var reactBootstrap = require('react-bootstrap');
25
+ 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'));
35
30
 
36
31
  var returnFormField = function returnFormField(_ref) {
37
32
  var name = _ref.name,
@@ -70,21 +65,21 @@ var returnFormField = function returnFormField(_ref) {
70
65
  }
71
66
 
72
67
  if (type == 'text' || type == 'email' || type == 'password' || type == 'number') {
73
- return React__default['default'].createElement(
68
+ return React__default.createElement(
74
69
  reactBootstrap.Form.Group,
75
70
  _extends._extends({}, opts, { controlId: name }),
76
- React__default['default'].createElement(
71
+ React__default.createElement(
77
72
  reactBootstrap.Form.Label,
78
73
  { kye: name + '_label' },
79
74
  label,
80
- required && React__default['default'].createElement(
75
+ required && React__default.createElement(
81
76
  'span',
82
77
  { style: { color: 'red' } },
83
78
  '*'
84
79
  )
85
80
  ),
86
- React__default['default'].createElement(reactBootstrap.Form.Control, { key: name + '_' + type, type: type, readOnly: readonly, name: name, placeholder: '', defaultValue: default_value, required: required }),
87
- React__default['default'].createElement(
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(
88
83
  reactBootstrap.Form.Control.Feedback,
89
84
  { key: name + '_feedback', type: 'invalid' },
90
85
  errors[name]
@@ -92,28 +87,28 @@ var returnFormField = function returnFormField(_ref) {
92
87
  );
93
88
  }
94
89
  if (type == 'select') {
95
- return React__default['default'].createElement(
90
+ return React__default.createElement(
96
91
  reactBootstrap.Form.Group,
97
92
  _extends._extends({}, opts, { key: name, controlId: name }),
98
- React__default['default'].createElement(
93
+ React__default.createElement(
99
94
  reactBootstrap.Form.Label,
100
95
  { key: name + '_' + label },
101
96
  label,
102
- required && React__default['default'].createElement(
97
+ required && React__default.createElement(
103
98
  'span',
104
99
  { key: name + '_required_span', style: { color: 'red' } },
105
100
  '*'
106
101
  )
107
102
  ),
108
- React__default['default'].createElement(
103
+ React__default.createElement(
109
104
  reactBootstrap.Form.Control,
110
105
  { key: name + '_select', as: 'select', name: name, required: required, defaultValue: default_value },
111
- React__default['default'].createElement('option', { value: '', key: name + '_options_empty' }),
106
+ React__default.createElement('option', { value: '', key: name + '_options_empty' }),
112
107
  options.map(function (option, index) {
113
108
  var value = option.value ? option.value : option;
114
109
  var label = option.label ? option.label : option;
115
110
  var key = name + '_options_' + index;
116
- return React__default['default'].createElement(
111
+ return React__default.createElement(
117
112
  'option',
118
113
  { key: key, value: value },
119
114
  label
@@ -124,25 +119,25 @@ var returnFormField = function returnFormField(_ref) {
124
119
  }
125
120
 
126
121
  if (type == 'radio' || type == 'checkbox') {
127
- return React__default['default'].createElement(
122
+ return React__default.createElement(
128
123
  reactBootstrap.Form.Group,
129
124
  opts,
130
- React__default['default'].createElement(
125
+ React__default.createElement(
131
126
  reactBootstrap.Form.Label,
132
127
  null,
133
128
  label,
134
- required && React__default['default'].createElement(
129
+ required && React__default.createElement(
135
130
  'span',
136
131
  { style: { color: 'red' } },
137
132
  '*'
138
133
  )
139
134
  ),
140
135
  options.map(function (option, index) {
141
- return React__default['default'].createElement(
136
+ return React__default.createElement(
142
137
  reactBootstrap.Form.Check,
143
138
  { type: type, key: index, required: required },
144
- 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 }),
145
- React__default['default'].createElement(reactBootstrap.Form.Check.Label, { style: { cursor: 'pointer' }, 'for': name + '_' + index, key: type + '_' + index + '_label', dangerouslySetInnerHTML: { __html: option.label } })
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 } })
146
141
  );
147
142
  })
148
143
  );
@@ -228,7 +223,7 @@ function useUser() {
228
223
  redirectTo = _ref.redirectTo,
229
224
  redirectIfFound = _ref.redirectIfFound;
230
225
 
231
- var _useSWR = useSWR__default['default']('/api/auth/user', dataHandler),
226
+ var _useSWR = useSWR('/api/auth/user', dataHandler),
232
227
  data = _useSWR.data,
233
228
  error = _useSWR.error;
234
229
 
@@ -243,7 +238,7 @@ function useUser() {
243
238
  redirectTo && !redirectIfFound && !hasUser ||
244
239
  // If redirectIfFound is also set, redirect if the user was found
245
240
  redirectIfFound && hasUser) {
246
- Router__default['default'].push(redirectTo);
241
+ Router__default.push(redirectTo);
247
242
  }
248
243
  }, [redirectTo, redirectIfFound, finished, hasUser]);
249
244
 
@@ -349,43 +344,43 @@ var LoginForm = function LoginForm(props) {
349
344
  loading = _useState4[0],
350
345
  setLoading = _useState4[1];
351
346
 
352
- return React__default['default'].createElement(
347
+ return React__default.createElement(
353
348
  reactBootstrap.Form,
354
349
  { className: 'login', onSubmit: handleSubmit },
355
- React__default['default'].createElement(
350
+ React__default.createElement(
356
351
  'h1',
357
352
  null,
358
353
  'Login'
359
354
  ),
360
- React__default['default'].createElement('hr', null),
355
+ React__default.createElement('hr', null),
361
356
  returnFormField({ name: 'email', label: 'Email', type: 'email', required: true }),
362
357
  returnFormField({ name: 'password', label: 'Password', type: 'password', required: true }),
363
- React__default['default'].createElement('hr', null),
364
- React__default['default'].createElement(
358
+ React__default.createElement('hr', null),
359
+ React__default.createElement(
365
360
  reactBootstrap.Form.Row,
366
361
  null,
367
- React__default['default'].createElement(
362
+ React__default.createElement(
368
363
  reactBootstrap.Form.Group,
369
364
  { as: reactBootstrap.Col },
370
- React__default['default'].createElement(
365
+ React__default.createElement(
371
366
  'a',
372
367
  { href: '/auth/signup' },
373
368
  'I don\'t have an account'
374
369
  )
375
370
  ),
376
- React__default['default'].createElement(
371
+ React__default.createElement(
377
372
  reactBootstrap.Form.Group,
378
373
  { as: reactBootstrap.Col, className: 'text-right' },
379
- !loading && React__default['default'].createElement(
374
+ !loading && React__default.createElement(
380
375
  reactBootstrap.Button,
381
376
  { type: 'submit' },
382
377
  'Login'
383
378
  ),
384
- loading && React__default['default'].createElement(
379
+ loading && React__default.createElement(
385
380
  reactBootstrap.Button,
386
381
  { variant: 'primary', disabled: true },
387
- React__default['default'].createElement(reactBootstrap.Spinner, { as: 'span', animation: 'border', role: 'status', 'aria-hidden': 'true', size: 'sm' }),
388
- React__default['default'].createElement(
382
+ React__default.createElement(reactBootstrap.Spinner, { as: 'span', animation: 'border', role: 'status', 'aria-hidden': 'true', size: 'sm' }),
383
+ React__default.createElement(
389
384
  'span',
390
385
  { className: 'sr-only' },
391
386
  'Loading...'
@@ -393,12 +388,12 @@ var LoginForm = function LoginForm(props) {
393
388
  )
394
389
  )
395
390
  ),
396
- errorMsg && React__default['default'].createElement(
391
+ errorMsg && React__default.createElement(
397
392
  'p',
398
393
  { className: 'error' },
399
394
  errorMsg
400
395
  ),
401
- React__default['default'].createElement(
396
+ React__default.createElement(
402
397
  'style',
403
398
  { jsx: 'true'.toString() },
404
399
  '\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 '
@@ -654,29 +649,29 @@ var SignupForm = function SignupForm(props) {
654
649
  loading = _useState14[0],
655
650
  setLoading = _useState14[1];
656
651
 
657
- return React__default['default'].createElement(
652
+ return React__default.createElement(
658
653
  reactBootstrap.Form,
659
654
  { className: 'login', id: 'signupForm', onSubmit: handleSubmit },
660
- React__default['default'].createElement(
655
+ React__default.createElement(
661
656
  'h1',
662
657
  null,
663
658
  'Sign Up'
664
659
  ),
665
- React__default['default'].createElement('hr', null),
660
+ React__default.createElement('hr', null),
666
661
  returnFormField({ name: 'email', label: 'Email', type: 'email', required: true }),
667
- React__default['default'].createElement(
662
+ React__default.createElement(
668
663
  reactBootstrap.Form.Row,
669
664
  null,
670
665
  returnFormField({ name: 'password', label: 'Password', type: 'password', groupType: reactBootstrap.Col, required: true }),
671
666
  returnFormField({ name: 'rpassword', label: 'Retype Password', type: 'password', groupType: reactBootstrap.Col, required: true })
672
667
  ),
673
- React__default['default'].createElement(
668
+ React__default.createElement(
674
669
  reactBootstrap.Form.Row,
675
670
  null,
676
671
  returnFormField({ name: 'first_name', label: 'First Name', type: 'text', groupType: reactBootstrap.Col, required: true }),
677
672
  returnFormField({ name: 'last_name', label: 'Last Name', type: 'text', groupType: reactBootstrap.Col, required: true })
678
673
  ),
679
- React__default['default'].createElement(
674
+ React__default.createElement(
680
675
  reactBootstrap.Form.Row,
681
676
  null,
682
677
  returnFormField({
@@ -690,7 +685,7 @@ var SignupForm = function SignupForm(props) {
690
685
  }),
691
686
  countryUS && returnFormField({ name: 'state', label: 'State', type: 'select', required: true, groupType: reactBootstrap.Col, options: states })
692
687
  ),
693
- React__default['default'].createElement(
688
+ React__default.createElement(
694
689
  reactBootstrap.Form.Row,
695
690
  null,
696
691
  countryUS && returnFormField({ name: 'zip', label: 'Working Zip Code', type: 'text', required: true, groupType: reactBootstrap.Col }),
@@ -737,38 +732,38 @@ var SignupForm = function SignupForm(props) {
737
732
  required: true,
738
733
  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' }]
739
734
  }),
740
- React__default['default'].createElement('hr', null),
741
- React__default['default'].createElement(
735
+ React__default.createElement('hr', null),
736
+ React__default.createElement(
742
737
  reactBootstrap.Form.Row,
743
738
  null,
744
- React__default['default'].createElement(
739
+ React__default.createElement(
745
740
  reactBootstrap.Form.Group,
746
741
  { as: reactBootstrap.Col },
747
- React__default['default'].createElement(
742
+ React__default.createElement(
748
743
  'a',
749
744
  { href: '/auth/login' },
750
745
  'I already have an account'
751
746
  )
752
747
  ),
753
- React__default['default'].createElement(
748
+ React__default.createElement(
754
749
  reactBootstrap.Form.Group,
755
750
  { as: reactBootstrap.Col, className: 'text-right' },
756
- !loading && React__default['default'].createElement(
751
+ !loading && React__default.createElement(
757
752
  reactBootstrap.Button,
758
753
  { type: 'submit' },
759
754
  'Sign Up'
760
755
  ),
761
- loading && React__default['default'].createElement(
756
+ loading && React__default.createElement(
762
757
  reactBootstrap.Button,
763
758
  { variant: 'primary', disabled: true },
764
- React__default['default'].createElement(reactBootstrap.Spinner, {
759
+ React__default.createElement(reactBootstrap.Spinner, {
765
760
  as: 'span',
766
761
  animation: 'border',
767
762
  role: 'status',
768
763
  'aria-hidden': 'true',
769
764
  size: 'sm'
770
765
  }),
771
- React__default['default'].createElement(
766
+ React__default.createElement(
772
767
  'span',
773
768
  { className: 'sr-only' },
774
769
  'Loading...'
@@ -776,12 +771,12 @@ var SignupForm = function SignupForm(props) {
776
771
  )
777
772
  )
778
773
  ),
779
- errorMsg && React__default['default'].createElement(
774
+ errorMsg && React__default.createElement(
780
775
  'p',
781
776
  { className: 'error' },
782
777
  errorMsg
783
778
  ),
784
- React__default['default'].createElement(
779
+ React__default.createElement(
785
780
  'style',
786
781
  { jsx: 'true'.toString() },
787
782
  ' \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 '
@@ -1071,32 +1066,32 @@ var SignupForm$1 = function SignupForm(props) {
1071
1066
  loading = _useState18[0],
1072
1067
  setLoading = _useState18[1];
1073
1068
 
1074
- return React__default['default'].createElement(
1069
+ return React__default.createElement(
1075
1070
  reactBootstrap.Form,
1076
1071
  { className: 'login', id: 'signupForm', onSubmit: handleSubmit },
1077
- React__default['default'].createElement(
1072
+ React__default.createElement(
1078
1073
  'h1',
1079
1074
  null,
1080
1075
  'Profile'
1081
1076
  ),
1082
- React__default['default'].createElement('hr', null),
1083
- userData ? React__default['default'].createElement(
1084
- React__default['default'].Fragment,
1077
+ React__default.createElement('hr', null),
1078
+ userData ? React__default.createElement(
1079
+ React__default.Fragment,
1085
1080
  null,
1086
1081
  returnFormField({ name: 'email', label: 'Email', type: 'email', required: true, readonly: true, default_value: userData.email }),
1087
- React__default['default'].createElement(
1082
+ React__default.createElement(
1088
1083
  reactBootstrap.Form.Row,
1089
1084
  null,
1090
1085
  returnFormField({ name: 'password', label: 'Password', type: 'password', groupType: reactBootstrap.Col, required: false }),
1091
1086
  returnFormField({ name: 'rpassword', label: 'Retype Password', type: 'password', groupType: reactBootstrap.Col, required: false })
1092
1087
  ),
1093
- React__default['default'].createElement(
1088
+ React__default.createElement(
1094
1089
  reactBootstrap.Form.Row,
1095
1090
  null,
1096
1091
  returnFormField({ name: 'first_name', label: 'First Name', type: 'text', groupType: reactBootstrap.Col, required: true, default_value: userData.shared.first_name }),
1097
1092
  returnFormField({ name: 'last_name', label: 'Last Name', type: 'text', groupType: reactBootstrap.Col, required: true, default_value: userData.shared.last_name })
1098
1093
  ),
1099
- React__default['default'].createElement(
1094
+ React__default.createElement(
1100
1095
  reactBootstrap.Form.Row,
1101
1096
  null,
1102
1097
  returnFormField({
@@ -1111,7 +1106,7 @@ var SignupForm$1 = function SignupForm(props) {
1111
1106
  }),
1112
1107
  countryUS && returnFormField({ name: 'state', label: 'State', type: 'select', required: true, groupType: reactBootstrap.Col, options: states, default_value: userData.shared.state })
1113
1108
  ),
1114
- React__default['default'].createElement(
1109
+ React__default.createElement(
1115
1110
  reactBootstrap.Form.Row,
1116
1111
  null,
1117
1112
  countryUS && returnFormField({ name: 'zip', label: 'Working Zip Code', type: 'text', required: true, groupType: reactBootstrap.Col, default_value: userData.shared.zip }),
@@ -1161,29 +1156,29 @@ var SignupForm$1 = function SignupForm(props) {
1161
1156
  required: true,
1162
1157
  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' }]
1163
1158
  }),
1164
- React__default['default'].createElement('hr', null),
1165
- React__default['default'].createElement(
1159
+ React__default.createElement('hr', null),
1160
+ React__default.createElement(
1166
1161
  reactBootstrap.Form.Row,
1167
1162
  null,
1168
- React__default['default'].createElement(
1163
+ React__default.createElement(
1169
1164
  reactBootstrap.Form.Group,
1170
1165
  { as: reactBootstrap.Col },
1171
- !loading && React__default['default'].createElement(
1166
+ !loading && React__default.createElement(
1172
1167
  reactBootstrap.Button,
1173
1168
  { type: 'submit' },
1174
1169
  'Update'
1175
1170
  ),
1176
- loading && React__default['default'].createElement(
1171
+ loading && React__default.createElement(
1177
1172
  reactBootstrap.Button,
1178
1173
  { variant: 'primary', disabled: true },
1179
- React__default['default'].createElement(reactBootstrap.Spinner, {
1174
+ React__default.createElement(reactBootstrap.Spinner, {
1180
1175
  as: 'span',
1181
1176
  animation: 'border',
1182
1177
  role: 'status',
1183
1178
  'aria-hidden': 'true',
1184
1179
  size: 'sm'
1185
1180
  }),
1186
- React__default['default'].createElement(
1181
+ React__default.createElement(
1187
1182
  'span',
1188
1183
  { className: 'sr-only' },
1189
1184
  'Loading...'
@@ -1191,24 +1186,24 @@ var SignupForm$1 = function SignupForm(props) {
1191
1186
  )
1192
1187
  )
1193
1188
  )
1194
- ) : React__default['default'].createElement(reactBootstrap.Spinner, {
1189
+ ) : React__default.createElement(reactBootstrap.Spinner, {
1195
1190
  as: 'span',
1196
1191
  animation: 'border',
1197
1192
  role: 'status',
1198
1193
  'aria-hidden': 'true',
1199
1194
  size: 'sm'
1200
1195
  }),
1201
- errorMsg && React__default['default'].createElement(
1196
+ errorMsg && React__default.createElement(
1202
1197
  'p',
1203
1198
  { className: 'error' },
1204
1199
  errorMsg
1205
1200
  ),
1206
- successMsg && React__default['default'].createElement(
1201
+ successMsg && React__default.createElement(
1207
1202
  'p',
1208
1203
  { className: 'success' },
1209
1204
  successMsg
1210
1205
  ),
1211
- React__default['default'].createElement(
1206
+ React__default.createElement(
1212
1207
  'style',
1213
1208
  { jsx: 'true'.toString() },
1214
1209
  ' \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 '
@@ -1221,7 +1216,7 @@ var MAX_AGE = 60 * 60 * 8; // 8 hours
1221
1216
 
1222
1217
  function setTokenCookie(res, token, eKey) {
1223
1218
  var cookies_serailized = [];
1224
- cookies_serailized.push(index.serialize_1(TOKEN_NAME, token, {
1219
+ cookies_serailized.push(index$4.serialize_1(TOKEN_NAME, token, {
1225
1220
  //maxAge: MAX_AGE, // we want login cookie to expire when browser
1226
1221
  //expires: new Date(Date.now() + MAX_AGE * 1000),
1227
1222
  //httpOnly: true,
@@ -1230,7 +1225,7 @@ function setTokenCookie(res, token, eKey) {
1230
1225
  //sameSite: 'lax',
1231
1226
  }));
1232
1227
 
1233
- cookies_serailized.push(index.serialize_1('eKey', eKey, {
1228
+ cookies_serailized.push(index$4.serialize_1('eKey', eKey, {
1234
1229
  //maxAge: MAX_AGE, // we want login cookie to expire when browser
1235
1230
  //expires: new Date(Date.now() + MAX_AGE * 1000),
1236
1231
  //httpOnly: true,
@@ -1244,12 +1239,12 @@ function setTokenCookie(res, token, eKey) {
1244
1239
 
1245
1240
  function removeTokenCookie(res) {
1246
1241
  var cookies_serailized = [];
1247
- cookies_serailized.push(index.serialize_1(TOKEN_NAME, '', {
1242
+ cookies_serailized.push(index$4.serialize_1(TOKEN_NAME, '', {
1248
1243
  maxAge: -1,
1249
1244
  expires: new Date(Date.now() - MAX_AGE * 1000),
1250
1245
  path: '/'
1251
1246
  }));
1252
- cookies_serailized.push(index.serialize_1('eKey', '', {
1247
+ cookies_serailized.push(index$4.serialize_1('eKey', '', {
1253
1248
  maxAge: -1,
1254
1249
  expires: new Date(Date.now() - MAX_AGE * 1000),
1255
1250
  path: '/'
@@ -1264,7 +1259,7 @@ function parseCookies(req) {
1264
1259
 
1265
1260
  // For pages we do need to parse the cookies.
1266
1261
  var cookie = req.headers ? req.headers.cookie : null;
1267
- return index.parse_1(cookie || '');
1262
+ return index$4.parse_1(cookie || '');
1268
1263
  }
1269
1264
 
1270
1265
  function getTokenCookie(req) {
@@ -1550,59 +1545,6 @@ defineProperties.supportsDescriptors = !!supportsDescriptors;
1550
1545
 
1551
1546
  var defineProperties_1 = defineProperties;
1552
1547
 
1553
- /* eslint no-invalid-this: 1 */
1554
-
1555
- var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
1556
- var slice$1 = Array.prototype.slice;
1557
- var toStr$3 = Object.prototype.toString;
1558
- var funcType = '[object Function]';
1559
-
1560
- var implementation$1 = function bind(that) {
1561
- var target = this;
1562
- if (typeof target !== 'function' || toStr$3.call(target) !== funcType) {
1563
- throw new TypeError(ERROR_MESSAGE + target);
1564
- }
1565
- var args = slice$1.call(arguments, 1);
1566
-
1567
- var bound;
1568
- var binder = function () {
1569
- if (this instanceof bound) {
1570
- var result = target.apply(
1571
- this,
1572
- args.concat(slice$1.call(arguments))
1573
- );
1574
- if (Object(result) === result) {
1575
- return result;
1576
- }
1577
- return this;
1578
- } else {
1579
- return target.apply(
1580
- that,
1581
- args.concat(slice$1.call(arguments))
1582
- );
1583
- }
1584
- };
1585
-
1586
- var boundLength = Math.max(0, target.length - args.length);
1587
- var boundArgs = [];
1588
- for (var i = 0; i < boundLength; i++) {
1589
- boundArgs.push('$' + i);
1590
- }
1591
-
1592
- bound = Function('binder', 'return function (' + boundArgs.join(',') + '){ return binder.apply(this,arguments); }')(binder);
1593
-
1594
- if (target.prototype) {
1595
- var Empty = function Empty() {};
1596
- Empty.prototype = target.prototype;
1597
- bound.prototype = new Empty();
1598
- Empty.prototype = null;
1599
- }
1600
-
1601
- return bound;
1602
- };
1603
-
1604
- var functionBind = Function.prototype.bind || implementation$1;
1605
-
1606
1548
  /* eslint complexity: [2, 18], max-statements: [2, 33] */
1607
1549
  var shams = function hasSymbols() {
1608
1550
  if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
@@ -1656,21 +1598,68 @@ var hasSymbols$1 = function hasNativeSymbols() {
1656
1598
  return shams();
1657
1599
  };
1658
1600
 
1659
- var src = functionBind.call(Function.call, Object.prototype.hasOwnProperty);
1601
+ /* eslint no-invalid-this: 1 */
1660
1602
 
1661
- var undefined$1;
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]';
1662
1607
 
1663
- var $SyntaxError = SyntaxError;
1664
- var $Function = Function;
1665
- var $TypeError = TypeError;
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);
1666
1614
 
1667
- // eslint-disable-next-line consistent-return
1668
- var getEvalledConstructor = function (expressionSyntax) {
1669
- try {
1670
- return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
1671
- } catch (e) {}
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;
1672
1650
  };
1673
1651
 
1652
+ var functionBind = Function.prototype.bind || implementation$1;
1653
+
1654
+ /* globals
1655
+ Atomics,
1656
+ SharedArrayBuffer,
1657
+ */
1658
+
1659
+ var undefined$1;
1660
+
1661
+ var $TypeError = TypeError;
1662
+
1674
1663
  var $gOPD = Object.getOwnPropertyDescriptor;
1675
1664
  if ($gOPD) {
1676
1665
  try {
@@ -1680,9 +1669,7 @@ if ($gOPD) {
1680
1669
  }
1681
1670
  }
1682
1671
 
1683
- var throwTypeError = function () {
1684
- throw new $TypeError();
1685
- };
1672
+ var throwTypeError = function () { throw new $TypeError(); };
1686
1673
  var ThrowTypeError = $gOPD
1687
1674
  ? (function () {
1688
1675
  try {
@@ -1703,351 +1690,203 @@ var ThrowTypeError = $gOPD
1703
1690
  var hasSymbols$2 = hasSymbols$1();
1704
1691
 
1705
1692
  var getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
1706
-
1707
- var needsEval = {};
1693
+ var generatorFunction = undefined$1;
1694
+ var asyncFunction = undefined$1;
1695
+ var asyncGenFunction = undefined$1;
1708
1696
 
1709
1697
  var TypedArray = typeof Uint8Array === 'undefined' ? undefined$1 : getProto(Uint8Array);
1710
1698
 
1711
1699
  var INTRINSICS = {
1712
- '%AggregateError%': typeof AggregateError === 'undefined' ? undefined$1 : AggregateError,
1713
1700
  '%Array%': Array,
1714
1701
  '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$1 : ArrayBuffer,
1702
+ '%ArrayBufferPrototype%': typeof ArrayBuffer === 'undefined' ? undefined$1 : ArrayBuffer.prototype,
1715
1703
  '%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,
1716
1709
  '%AsyncFromSyncIteratorPrototype%': undefined$1,
1717
- '%AsyncFunction%': needsEval,
1718
- '%AsyncGenerator%': needsEval,
1719
- '%AsyncGeneratorFunction%': needsEval,
1720
- '%AsyncIteratorPrototype%': needsEval,
1710
+ '%AsyncFunction%': asyncFunction,
1711
+ '%AsyncFunctionPrototype%': undefined$1,
1712
+ '%AsyncGenerator%': undefined$1,
1713
+ '%AsyncGeneratorFunction%': asyncGenFunction,
1714
+ '%AsyncGeneratorPrototype%': undefined$1,
1715
+ '%AsyncIteratorPrototype%': undefined$1,
1721
1716
  '%Atomics%': typeof Atomics === 'undefined' ? undefined$1 : Atomics,
1722
- '%BigInt%': typeof BigInt === 'undefined' ? undefined$1 : BigInt,
1723
1717
  '%Boolean%': Boolean,
1718
+ '%BooleanPrototype%': Boolean.prototype,
1724
1719
  '%DataView%': typeof DataView === 'undefined' ? undefined$1 : DataView,
1720
+ '%DataViewPrototype%': typeof DataView === 'undefined' ? undefined$1 : DataView.prototype,
1725
1721
  '%Date%': Date,
1722
+ '%DatePrototype%': Date.prototype,
1726
1723
  '%decodeURI%': decodeURI,
1727
1724
  '%decodeURIComponent%': decodeURIComponent,
1728
1725
  '%encodeURI%': encodeURI,
1729
1726
  '%encodeURIComponent%': encodeURIComponent,
1730
1727
  '%Error%': Error,
1728
+ '%ErrorPrototype%': Error.prototype,
1731
1729
  '%eval%': eval, // eslint-disable-line no-eval
1732
1730
  '%EvalError%': EvalError,
1731
+ '%EvalErrorPrototype%': EvalError.prototype,
1733
1732
  '%Float32Array%': typeof Float32Array === 'undefined' ? undefined$1 : Float32Array,
1733
+ '%Float32ArrayPrototype%': typeof Float32Array === 'undefined' ? undefined$1 : Float32Array.prototype,
1734
1734
  '%Float64Array%': typeof Float64Array === 'undefined' ? undefined$1 : Float64Array,
1735
- '%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined$1 : FinalizationRegistry,
1736
- '%Function%': $Function,
1737
- '%GeneratorFunction%': needsEval,
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,
1738
1741
  '%Int8Array%': typeof Int8Array === 'undefined' ? undefined$1 : Int8Array,
1742
+ '%Int8ArrayPrototype%': typeof Int8Array === 'undefined' ? undefined$1 : Int8Array.prototype,
1739
1743
  '%Int16Array%': typeof Int16Array === 'undefined' ? undefined$1 : Int16Array,
1744
+ '%Int16ArrayPrototype%': typeof Int16Array === 'undefined' ? undefined$1 : Int8Array.prototype,
1740
1745
  '%Int32Array%': typeof Int32Array === 'undefined' ? undefined$1 : Int32Array,
1746
+ '%Int32ArrayPrototype%': typeof Int32Array === 'undefined' ? undefined$1 : Int32Array.prototype,
1741
1747
  '%isFinite%': isFinite,
1742
1748
  '%isNaN%': isNaN,
1743
1749
  '%IteratorPrototype%': hasSymbols$2 ? getProto(getProto([][Symbol.iterator]())) : undefined$1,
1744
1750
  '%JSON%': typeof JSON === 'object' ? JSON : undefined$1,
1751
+ '%JSONParse%': typeof JSON === 'object' ? JSON.parse : undefined$1,
1745
1752
  '%Map%': typeof Map === 'undefined' ? undefined$1 : Map,
1746
1753
  '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$2 ? undefined$1 : getProto(new Map()[Symbol.iterator]()),
1754
+ '%MapPrototype%': typeof Map === 'undefined' ? undefined$1 : Map.prototype,
1747
1755
  '%Math%': Math,
1748
1756
  '%Number%': Number,
1757
+ '%NumberPrototype%': Number.prototype,
1749
1758
  '%Object%': Object,
1759
+ '%ObjectPrototype%': Object.prototype,
1760
+ '%ObjProto_toString%': Object.prototype.toString,
1761
+ '%ObjProto_valueOf%': Object.prototype.valueOf,
1750
1762
  '%parseFloat%': parseFloat,
1751
1763
  '%parseInt%': parseInt,
1752
1764
  '%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,
1753
1770
  '%Proxy%': typeof Proxy === 'undefined' ? undefined$1 : Proxy,
1754
1771
  '%RangeError%': RangeError,
1772
+ '%RangeErrorPrototype%': RangeError.prototype,
1755
1773
  '%ReferenceError%': ReferenceError,
1774
+ '%ReferenceErrorPrototype%': ReferenceError.prototype,
1756
1775
  '%Reflect%': typeof Reflect === 'undefined' ? undefined$1 : Reflect,
1757
1776
  '%RegExp%': RegExp,
1777
+ '%RegExpPrototype%': RegExp.prototype,
1758
1778
  '%Set%': typeof Set === 'undefined' ? undefined$1 : Set,
1759
1779
  '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$2 ? undefined$1 : getProto(new Set()[Symbol.iterator]()),
1780
+ '%SetPrototype%': typeof Set === 'undefined' ? undefined$1 : Set.prototype,
1760
1781
  '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$1 : SharedArrayBuffer,
1782
+ '%SharedArrayBufferPrototype%': typeof SharedArrayBuffer === 'undefined' ? undefined$1 : SharedArrayBuffer.prototype,
1761
1783
  '%String%': String,
1762
1784
  '%StringIteratorPrototype%': hasSymbols$2 ? getProto(''[Symbol.iterator]()) : undefined$1,
1785
+ '%StringPrototype%': String.prototype,
1763
1786
  '%Symbol%': hasSymbols$2 ? Symbol : undefined$1,
1764
- '%SyntaxError%': $SyntaxError,
1787
+ '%SymbolPrototype%': hasSymbols$2 ? Symbol.prototype : undefined$1,
1788
+ '%SyntaxError%': SyntaxError,
1789
+ '%SyntaxErrorPrototype%': SyntaxError.prototype,
1765
1790
  '%ThrowTypeError%': ThrowTypeError,
1766
1791
  '%TypedArray%': TypedArray,
1792
+ '%TypedArrayPrototype%': TypedArray ? TypedArray.prototype : undefined$1,
1767
1793
  '%TypeError%': $TypeError,
1794
+ '%TypeErrorPrototype%': $TypeError.prototype,
1768
1795
  '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$1 : Uint8Array,
1796
+ '%Uint8ArrayPrototype%': typeof Uint8Array === 'undefined' ? undefined$1 : Uint8Array.prototype,
1769
1797
  '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$1 : Uint8ClampedArray,
1798
+ '%Uint8ClampedArrayPrototype%': typeof Uint8ClampedArray === 'undefined' ? undefined$1 : Uint8ClampedArray.prototype,
1770
1799
  '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$1 : Uint16Array,
1800
+ '%Uint16ArrayPrototype%': typeof Uint16Array === 'undefined' ? undefined$1 : Uint16Array.prototype,
1771
1801
  '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined$1 : Uint32Array,
1802
+ '%Uint32ArrayPrototype%': typeof Uint32Array === 'undefined' ? undefined$1 : Uint32Array.prototype,
1772
1803
  '%URIError%': URIError,
1804
+ '%URIErrorPrototype%': URIError.prototype,
1773
1805
  '%WeakMap%': typeof WeakMap === 'undefined' ? undefined$1 : WeakMap,
1774
- '%WeakRef%': typeof WeakRef === 'undefined' ? undefined$1 : WeakRef,
1775
- '%WeakSet%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet
1776
- };
1777
-
1778
- var doEval = function doEval(name) {
1779
- var value;
1780
- if (name === '%AsyncFunction%') {
1781
- value = getEvalledConstructor('async function () {}');
1782
- } else if (name === '%GeneratorFunction%') {
1783
- value = getEvalledConstructor('function* () {}');
1784
- } else if (name === '%AsyncGeneratorFunction%') {
1785
- value = getEvalledConstructor('async function* () {}');
1786
- } else if (name === '%AsyncGenerator%') {
1787
- var fn = doEval('%AsyncGeneratorFunction%');
1788
- if (fn) {
1789
- value = fn.prototype;
1790
- }
1791
- } else if (name === '%AsyncIteratorPrototype%') {
1792
- var gen = doEval('%AsyncGenerator%');
1793
- if (gen) {
1794
- value = getProto(gen.prototype);
1795
- }
1796
- }
1797
-
1798
- INTRINSICS[name] = value;
1799
-
1800
- return value;
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
1801
1809
  };
1802
1810
 
1803
- var LEGACY_ALIASES = {
1804
- '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
1805
- '%ArrayPrototype%': ['Array', 'prototype'],
1806
- '%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
1807
- '%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
1808
- '%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
1809
- '%ArrayProto_values%': ['Array', 'prototype', 'values'],
1810
- '%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
1811
- '%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
1812
- '%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
1813
- '%BooleanPrototype%': ['Boolean', 'prototype'],
1814
- '%DataViewPrototype%': ['DataView', 'prototype'],
1815
- '%DatePrototype%': ['Date', 'prototype'],
1816
- '%ErrorPrototype%': ['Error', 'prototype'],
1817
- '%EvalErrorPrototype%': ['EvalError', 'prototype'],
1818
- '%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
1819
- '%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
1820
- '%FunctionPrototype%': ['Function', 'prototype'],
1821
- '%Generator%': ['GeneratorFunction', 'prototype'],
1822
- '%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
1823
- '%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
1824
- '%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
1825
- '%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
1826
- '%JSONParse%': ['JSON', 'parse'],
1827
- '%JSONStringify%': ['JSON', 'stringify'],
1828
- '%MapPrototype%': ['Map', 'prototype'],
1829
- '%NumberPrototype%': ['Number', 'prototype'],
1830
- '%ObjectPrototype%': ['Object', 'prototype'],
1831
- '%ObjProto_toString%': ['Object', 'prototype', 'toString'],
1832
- '%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
1833
- '%PromisePrototype%': ['Promise', 'prototype'],
1834
- '%PromiseProto_then%': ['Promise', 'prototype', 'then'],
1835
- '%Promise_all%': ['Promise', 'all'],
1836
- '%Promise_reject%': ['Promise', 'reject'],
1837
- '%Promise_resolve%': ['Promise', 'resolve'],
1838
- '%RangeErrorPrototype%': ['RangeError', 'prototype'],
1839
- '%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
1840
- '%RegExpPrototype%': ['RegExp', 'prototype'],
1841
- '%SetPrototype%': ['Set', 'prototype'],
1842
- '%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
1843
- '%StringPrototype%': ['String', 'prototype'],
1844
- '%SymbolPrototype%': ['Symbol', 'prototype'],
1845
- '%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
1846
- '%TypedArrayPrototype%': ['TypedArray', 'prototype'],
1847
- '%TypeErrorPrototype%': ['TypeError', 'prototype'],
1848
- '%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
1849
- '%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
1850
- '%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
1851
- '%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
1852
- '%URIErrorPrototype%': ['URIError', 'prototype'],
1853
- '%WeakMapPrototype%': ['WeakMap', 'prototype'],
1854
- '%WeakSetPrototype%': ['WeakSet', 'prototype']
1855
- };
1856
-
1857
-
1858
1811
 
1859
- var $concat = functionBind.call(Function.call, Array.prototype.concat);
1860
- var $spliceApply = functionBind.call(Function.apply, Array.prototype.splice);
1861
1812
  var $replace = functionBind.call(Function.call, String.prototype.replace);
1862
- var $strSlice = functionBind.call(Function.call, String.prototype.slice);
1863
1813
 
1864
1814
  /* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
1865
1815
  var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
1866
1816
  var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
1867
1817
  var stringToPath = function stringToPath(string) {
1868
- var first = $strSlice(string, 0, 1);
1869
- var last = $strSlice(string, -1);
1870
- if (first === '%' && last !== '%') {
1871
- throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
1872
- } else if (last === '%' && first !== '%') {
1873
- throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
1874
- }
1875
1818
  var result = [];
1876
1819
  $replace(string, rePropName, function (match, number, quote, subString) {
1877
- result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
1820
+ result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : (number || match);
1878
1821
  });
1879
1822
  return result;
1880
1823
  };
1881
1824
  /* end adaptation */
1882
1825
 
1883
1826
  var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
1884
- var intrinsicName = name;
1885
- var alias;
1886
- if (src(LEGACY_ALIASES, intrinsicName)) {
1887
- alias = LEGACY_ALIASES[intrinsicName];
1888
- intrinsicName = '%' + alias[0] + '%';
1827
+ if (!(name in INTRINSICS)) {
1828
+ throw new SyntaxError('intrinsic ' + name + ' does not exist!');
1889
1829
  }
1890
1830
 
1891
- if (src(INTRINSICS, intrinsicName)) {
1892
- var value = INTRINSICS[intrinsicName];
1893
- if (value === needsEval) {
1894
- value = doEval(intrinsicName);
1895
- }
1896
- if (typeof value === 'undefined' && !allowMissing) {
1897
- throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
1898
- }
1899
-
1900
- return {
1901
- alias: alias,
1902
- name: intrinsicName,
1903
- value: value
1904
- };
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!');
1905
1834
  }
1906
1835
 
1907
- throw new $SyntaxError('intrinsic ' + name + ' does not exist!');
1836
+ return INTRINSICS[name];
1908
1837
  };
1909
1838
 
1910
- var getIntrinsic = function GetIntrinsic(name, allowMissing) {
1839
+ var GetIntrinsic = function GetIntrinsic(name, allowMissing) {
1911
1840
  if (typeof name !== 'string' || name.length === 0) {
1912
- throw new $TypeError('intrinsic name must be a non-empty string');
1841
+ throw new TypeError('intrinsic name must be a non-empty string');
1913
1842
  }
1914
1843
  if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
1915
- throw new $TypeError('"allowMissing" argument must be a boolean');
1844
+ throw new TypeError('"allowMissing" argument must be a boolean');
1916
1845
  }
1917
1846
 
1918
1847
  var parts = stringToPath(name);
1919
- var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
1920
-
1921
- var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
1922
- var intrinsicRealName = intrinsic.name;
1923
- var value = intrinsic.value;
1924
- var skipFurtherCaching = false;
1925
1848
 
1926
- var alias = intrinsic.alias;
1927
- if (alias) {
1928
- intrinsicBaseName = alias[0];
1929
- $spliceApply(parts, $concat([0, 1], alias));
1930
- }
1931
-
1932
- for (var i = 1, isOwn = true; i < parts.length; i += 1) {
1933
- var part = parts[i];
1934
- var first = $strSlice(part, 0, 1);
1935
- var last = $strSlice(part, -1);
1936
- if (
1937
- (
1938
- (first === '"' || first === "'" || first === '`')
1939
- || (last === '"' || last === "'" || last === '`')
1940
- )
1941
- && first !== last
1942
- ) {
1943
- throw new $SyntaxError('property names with quotes must have matching quotes');
1944
- }
1945
- if (part === 'constructor' || !isOwn) {
1946
- skipFurtherCaching = true;
1947
- }
1948
-
1949
- intrinsicBaseName += '.' + part;
1950
- intrinsicRealName = '%' + intrinsicBaseName + '%';
1951
-
1952
- if (src(INTRINSICS, intrinsicRealName)) {
1953
- value = INTRINSICS[intrinsicRealName];
1954
- } else if (value != null) {
1955
- if (!(part in value)) {
1956
- if (!allowMissing) {
1957
- throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
1958
- }
1959
- return void undefined$1;
1960
- }
1849
+ var value = getBaseIntrinsic('%' + (parts.length > 0 ? parts[0] : '') + '%', allowMissing);
1850
+ for (var i = 1; i < parts.length; i += 1) {
1851
+ if (value != null) {
1961
1852
  if ($gOPD && (i + 1) >= parts.length) {
1962
- var desc = $gOPD(value, part);
1963
- isOwn = !!desc;
1964
-
1965
- // By convention, when a data property is converted to an accessor
1966
- // property to emulate a data property that does not suffer from
1967
- // the override mistake, that accessor's getter is marked with
1968
- // an `originalValue` property. Here, when we detect this, we
1969
- // uphold the illusion by pretending to see that original data
1970
- // property, i.e., returning the value rather than the getter
1971
- // itself.
1972
- if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
1973
- value = desc.get;
1974
- } else {
1975
- value = value[part];
1853
+ var desc = $gOPD(value, parts[i]);
1854
+ if (!allowMissing && !(parts[i] in value)) {
1855
+ throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
1976
1856
  }
1857
+ value = desc ? (desc.get || desc.value) : value[parts[i]];
1977
1858
  } else {
1978
- isOwn = src(value, part);
1979
- value = value[part];
1980
- }
1981
-
1982
- if (isOwn && !skipFurtherCaching) {
1983
- INTRINSICS[intrinsicRealName] = value;
1859
+ value = value[parts[i]];
1984
1860
  }
1985
1861
  }
1986
1862
  }
1987
1863
  return value;
1988
1864
  };
1989
1865
 
1990
- var callBind = _commonjsHelpers.createCommonjsModule(function (module) {
1991
-
1992
-
1993
-
1866
+ var $Function = GetIntrinsic('%Function%');
1867
+ var $apply = $Function.apply;
1868
+ var $call = $Function.call;
1994
1869
 
1995
- var $apply = getIntrinsic('%Function.prototype.apply%');
1996
- var $call = getIntrinsic('%Function.prototype.call%');
1997
- var $reflectApply = getIntrinsic('%Reflect.apply%', true) || functionBind.call($call, $apply);
1998
-
1999
- var $gOPD = getIntrinsic('%Object.getOwnPropertyDescriptor%', true);
2000
- var $defineProperty = getIntrinsic('%Object.defineProperty%', true);
2001
- var $max = getIntrinsic('%Math.max%');
2002
-
2003
- if ($defineProperty) {
2004
- try {
2005
- $defineProperty({}, 'a', { value: 1 });
2006
- } catch (e) {
2007
- // IE 8 has a broken defineProperty
2008
- $defineProperty = null;
2009
- }
2010
- }
2011
-
2012
- module.exports = function callBind(originalFunction) {
2013
- var func = $reflectApply(functionBind, $call, arguments);
2014
- if ($gOPD && $defineProperty) {
2015
- var desc = $gOPD(func, 'length');
2016
- if (desc.configurable) {
2017
- // original length, plus the receiver, minus any additional arguments (after the receiver)
2018
- $defineProperty(
2019
- func,
2020
- 'length',
2021
- { value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }
2022
- );
2023
- }
2024
- }
2025
- return func;
1870
+ var callBind = function callBind() {
1871
+ return functionBind.apply($call, arguments);
2026
1872
  };
2027
1873
 
2028
- var applyBind = function applyBind() {
2029
- return $reflectApply(functionBind, $apply, arguments);
1874
+ var apply = function applyBind() {
1875
+ return functionBind.apply($apply, arguments);
2030
1876
  };
1877
+ callBind.apply = apply;
2031
1878
 
2032
- if ($defineProperty) {
2033
- $defineProperty(module.exports, 'apply', { value: applyBind });
2034
- } else {
2035
- module.exports.apply = applyBind;
2036
- }
2037
- });
2038
- callBind.apply;
2039
-
2040
- var $indexOf = callBind(getIntrinsic('String.prototype.indexOf'));
1879
+ var $indexOf = callBind(GetIntrinsic('String.prototype.indexOf'));
2041
1880
 
2042
1881
  var callBound = function callBoundIntrinsic(name, allowMissing) {
2043
- var intrinsic = getIntrinsic(name, !!allowMissing);
2044
- if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
1882
+ var intrinsic = GetIntrinsic(name, !!allowMissing);
1883
+ if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.')) {
2045
1884
  return callBind(intrinsic);
2046
1885
  }
2047
1886
  return intrinsic;
2048
1887
  };
2049
1888
 
2050
- var $defineProperty = getIntrinsic('%Object.defineProperty%', true);
1889
+ var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
2051
1890
 
2052
1891
  if ($defineProperty) {
2053
1892
  try {
@@ -2089,8 +1928,10 @@ var DefineOwnProperty = function DefineOwnProperty(IsDataDescriptor, SameValue,
2089
1928
  return true;
2090
1929
  };
2091
1930
 
2092
- var $TypeError$1 = getIntrinsic('%TypeError%');
2093
- var $SyntaxError$1 = getIntrinsic('%SyntaxError%');
1931
+ var src = functionBind.call(Function.call, Object.prototype.hasOwnProperty);
1932
+
1933
+ var $TypeError$1 = GetIntrinsic('%TypeError%');
1934
+ var $SyntaxError = GetIntrinsic('%SyntaxError%');
2094
1935
 
2095
1936
 
2096
1937
 
@@ -2127,14 +1968,14 @@ var predicates = {
2127
1968
  var assertRecord = function assertRecord(Type, recordType, argumentName, value) {
2128
1969
  var predicate = predicates[recordType];
2129
1970
  if (typeof predicate !== 'function') {
2130
- throw new $SyntaxError$1('unknown record type: ' + recordType);
1971
+ throw new $SyntaxError('unknown record type: ' + recordType);
2131
1972
  }
2132
1973
  if (!predicate(Type, value)) {
2133
1974
  throw new $TypeError$1(argumentName + ' must be a ' + recordType);
2134
1975
  }
2135
1976
  };
2136
1977
 
2137
- // https://ecma-international.org/ecma-262/5.1/#sec-8
1978
+ // https://www.ecma-international.org/ecma-262/5.1/#sec-8
2138
1979
 
2139
1980
  var Type = function Type(x) {
2140
1981
  if (x === null) {
@@ -2157,19 +1998,16 @@ var Type = function Type(x) {
2157
1998
  }
2158
1999
  };
2159
2000
 
2160
- // https://ecma-international.org/ecma-262/11.0/#sec-ecmascript-data-types-and-values
2001
+ // https://www.ecma-international.org/ecma-262/6.0/#sec-tostring
2161
2002
 
2162
2003
  var Type$1 = function Type$1(x) {
2163
2004
  if (typeof x === 'symbol') {
2164
2005
  return 'Symbol';
2165
2006
  }
2166
- if (typeof x === 'bigint') {
2167
- return 'BigInt';
2168
- }
2169
2007
  return Type(x);
2170
2008
  };
2171
2009
 
2172
- // https://ecma-international.org/ecma-262/6.0/#sec-frompropertydescriptor
2010
+ // https://www.ecma-international.org/ecma-262/6.0/#sec-frompropertydescriptor
2173
2011
 
2174
2012
  var FromPropertyDescriptor = function FromPropertyDescriptor(Desc) {
2175
2013
  if (typeof Desc === 'undefined') {
@@ -2200,7 +2038,7 @@ var FromPropertyDescriptor = function FromPropertyDescriptor(Desc) {
2200
2038
  return obj;
2201
2039
  };
2202
2040
 
2203
- var $gOPD$1 = getIntrinsic('%Object.getOwnPropertyDescriptor%');
2041
+ var $gOPD$1 = GetIntrinsic('%Object.getOwnPropertyDescriptor%');
2204
2042
  if ($gOPD$1) {
2205
2043
  try {
2206
2044
  $gOPD$1([], 'length');
@@ -2212,85 +2050,65 @@ if ($gOPD$1) {
2212
2050
 
2213
2051
  var getOwnPropertyDescriptor = $gOPD$1;
2214
2052
 
2215
- var $Array = getIntrinsic('%Array%');
2053
+ var $Array = GetIntrinsic('%Array%');
2216
2054
 
2217
2055
  // eslint-disable-next-line global-require
2218
2056
  var toStr$4 = !$Array.isArray && callBound('Object.prototype.toString');
2219
2057
 
2220
- // https://ecma-international.org/ecma-262/6.0/#sec-isarray
2058
+ // https://www.ecma-international.org/ecma-262/6.0/#sec-isarray
2221
2059
 
2222
2060
  var IsArray = $Array.isArray || function IsArray(argument) {
2223
2061
  return toStr$4(argument) === '[object Array]';
2224
2062
  };
2225
2063
 
2226
- // https://ecma-international.org/ecma-262/6.0/#sec-ispropertykey
2064
+ // https://www.ecma-international.org/ecma-262/6.0/#sec-ispropertykey
2227
2065
 
2228
2066
  var IsPropertyKey = function IsPropertyKey(argument) {
2229
2067
  return typeof argument === 'string' || typeof argument === 'symbol';
2230
2068
  };
2231
2069
 
2232
- var hasSymbols$3 = hasSymbols$1();
2233
- var hasToStringTag = hasSymbols$3 && typeof Symbol.toStringTag === 'symbol';
2234
- var has$1;
2235
- var $exec;
2236
- var isRegexMarker;
2237
- var badStringifier;
2238
-
2239
- if (hasToStringTag) {
2240
- has$1 = callBound('Object.prototype.hasOwnProperty');
2241
- $exec = callBound('RegExp.prototype.exec');
2242
- isRegexMarker = {};
2243
-
2244
- var throwRegexMarker = function () {
2245
- throw isRegexMarker;
2246
- };
2247
- badStringifier = {
2248
- toString: throwRegexMarker,
2249
- valueOf: throwRegexMarker
2250
- };
2070
+ var regexExec = RegExp.prototype.exec;
2071
+ var gOPD = Object.getOwnPropertyDescriptor;
2251
2072
 
2252
- if (typeof Symbol.toPrimitive === 'symbol') {
2253
- badStringifier[Symbol.toPrimitive] = throwRegexMarker;
2254
- }
2255
- }
2073
+ var tryRegexExecCall = function tryRegexExec(value) {
2074
+ try {
2075
+ var lastIndex = value.lastIndex;
2076
+ value.lastIndex = 0; // eslint-disable-line no-param-reassign
2256
2077
 
2257
- var $toString = callBound('Object.prototype.toString');
2258
- var gOPD = Object.getOwnPropertyDescriptor;
2078
+ regexExec.call(value);
2079
+ return true;
2080
+ } catch (e) {
2081
+ return false;
2082
+ } finally {
2083
+ value.lastIndex = lastIndex; // eslint-disable-line no-param-reassign
2084
+ }
2085
+ };
2086
+ var toStr$5 = Object.prototype.toString;
2259
2087
  var regexClass = '[object RegExp]';
2088
+ var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
2260
2089
 
2261
- var isRegex = hasToStringTag
2262
- // eslint-disable-next-line consistent-return
2263
- ? function isRegex(value) {
2264
- if (!value || typeof value !== 'object') {
2265
- return false;
2266
- }
2267
-
2268
- var descriptor = gOPD(value, 'lastIndex');
2269
- var hasLastIndexDataProperty = descriptor && has$1(descriptor, 'value');
2270
- if (!hasLastIndexDataProperty) {
2271
- return false;
2272
- }
2090
+ var isRegex = function isRegex(value) {
2091
+ if (!value || typeof value !== 'object') {
2092
+ return false;
2093
+ }
2094
+ if (!hasToStringTag) {
2095
+ return toStr$5.call(value) === regexClass;
2096
+ }
2273
2097
 
2274
- try {
2275
- $exec(value, badStringifier);
2276
- } catch (e) {
2277
- return e === isRegexMarker;
2278
- }
2098
+ var descriptor = gOPD(value, 'lastIndex');
2099
+ var hasLastIndexDataProperty = descriptor && src(descriptor, 'value');
2100
+ if (!hasLastIndexDataProperty) {
2101
+ return false;
2279
2102
  }
2280
- : function isRegex(value) {
2281
- // In older browsers, typeof regex incorrectly returns 'function'
2282
- if (!value || (typeof value !== 'object' && typeof value !== 'function')) {
2283
- return false;
2284
- }
2285
2103
 
2286
- return $toString(value) === regexClass;
2287
- };
2104
+ return tryRegexExecCall(value);
2105
+ };
2288
2106
 
2289
- // http://ecma-international.org/ecma-262/5.1/#sec-9.2
2107
+ // http://www.ecma-international.org/ecma-262/5.1/#sec-9.2
2290
2108
 
2291
2109
  var ToBoolean = function ToBoolean(value) { return !!value; };
2292
2110
 
2293
- var $match = getIntrinsic('%Symbol.match%', true);
2111
+ var $match = GetIntrinsic('%Symbol.match%', true);
2294
2112
 
2295
2113
 
2296
2114
 
@@ -2312,27 +2130,6 @@ var IsRegExp = function IsRegExp(argument) {
2312
2130
  };
2313
2131
 
2314
2132
  var fnToStr = Function.prototype.toString;
2315
- var reflectApply = typeof Reflect === 'object' && Reflect !== null && Reflect.apply;
2316
- var badArrayLike;
2317
- var isCallableMarker;
2318
- if (typeof reflectApply === 'function' && typeof Object.defineProperty === 'function') {
2319
- try {
2320
- badArrayLike = Object.defineProperty({}, 'length', {
2321
- get: function () {
2322
- throw isCallableMarker;
2323
- }
2324
- });
2325
- isCallableMarker = {};
2326
- // eslint-disable-next-line no-throw-literal
2327
- reflectApply(function () { throw 42; }, null, badArrayLike);
2328
- } catch (_) {
2329
- if (_ !== isCallableMarker) {
2330
- reflectApply = null;
2331
- }
2332
- }
2333
- } else {
2334
- reflectApply = null;
2335
- }
2336
2133
 
2337
2134
  var constructorRegex = /^\s*class\b/;
2338
2135
  var isES6ClassFn = function isES6ClassFunction(value) {
@@ -2353,42 +2150,26 @@ var tryFunctionObject = function tryFunctionToStr(value) {
2353
2150
  return false;
2354
2151
  }
2355
2152
  };
2356
- var toStr$5 = Object.prototype.toString;
2153
+ var toStr$6 = Object.prototype.toString;
2357
2154
  var fnClass = '[object Function]';
2358
2155
  var genClass = '[object GeneratorFunction]';
2359
2156
  var hasToStringTag$1 = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
2360
- /* globals document: false */
2361
- var documentDotAll = typeof document === 'object' && typeof document.all === 'undefined' && document.all !== undefined ? document.all : {};
2362
-
2363
- var isCallable = reflectApply
2364
- ? function isCallable(value) {
2365
- if (value === documentDotAll) { return true; }
2366
- if (!value) { return false; }
2367
- if (typeof value !== 'function' && typeof value !== 'object') { return false; }
2368
- if (typeof value === 'function' && !value.prototype) { return true; }
2369
- try {
2370
- reflectApply(value, null, badArrayLike);
2371
- } catch (e) {
2372
- if (e !== isCallableMarker) { return false; }
2373
- }
2374
- return !isES6ClassFn(value);
2375
- }
2376
- : function isCallable(value) {
2377
- if (value === documentDotAll) { return true; }
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$5.call(value);
2384
- return strClass === fnClass || strClass === genClass;
2385
- };
2386
2157
 
2387
- // http://ecma-international.org/ecma-262/5.1/#sec-9.11
2158
+ var isCallable = function isCallable(value) {
2159
+ if (!value) { return false; }
2160
+ if (typeof value !== 'function' && typeof value !== 'object') { return false; }
2161
+ if (typeof value === 'function' && !value.prototype) { return true; }
2162
+ if (hasToStringTag$1) { return tryFunctionObject(value); }
2163
+ if (isES6ClassFn(value)) { return false; }
2164
+ var strClass = toStr$6.call(value);
2165
+ return strClass === fnClass || strClass === genClass;
2166
+ };
2167
+
2168
+ // http://www.ecma-international.org/ecma-262/5.1/#sec-9.11
2388
2169
 
2389
2170
  var IsCallable = isCallable;
2390
2171
 
2391
- var $TypeError$2 = getIntrinsic('%TypeError%');
2172
+ var $TypeError$2 = GetIntrinsic('%TypeError%');
2392
2173
 
2393
2174
 
2394
2175
 
@@ -2417,7 +2198,7 @@ var ToPropertyDescriptor = function ToPropertyDescriptor(Obj) {
2417
2198
  if (src(Obj, 'get')) {
2418
2199
  var getter = Obj.get;
2419
2200
  if (typeof getter !== 'undefined' && !IsCallable(getter)) {
2420
- throw new $TypeError$2('getter must be a function');
2201
+ throw new TypeError('getter must be a function');
2421
2202
  }
2422
2203
  desc['[[Get]]'] = getter;
2423
2204
  }
@@ -2435,7 +2216,7 @@ var ToPropertyDescriptor = function ToPropertyDescriptor(Obj) {
2435
2216
  return desc;
2436
2217
  };
2437
2218
 
2438
- var $TypeError$3 = getIntrinsic('%TypeError%');
2219
+ var $TypeError$3 = GetIntrinsic('%TypeError%');
2439
2220
 
2440
2221
 
2441
2222
 
@@ -2449,7 +2230,7 @@ var $isEnumerable$1 = callBound('Object.prototype.propertyIsEnumerable');
2449
2230
 
2450
2231
 
2451
2232
 
2452
- // https://ecma-international.org/ecma-262/6.0/#sec-ordinarygetownproperty
2233
+ // https://www.ecma-international.org/ecma-262/6.0/#sec-ordinarygetownproperty
2453
2234
 
2454
2235
  var OrdinaryGetOwnProperty = function OrdinaryGetOwnProperty(O, P) {
2455
2236
  if (Type$1(O) !== 'Object') {
@@ -2475,7 +2256,7 @@ var OrdinaryGetOwnProperty = function OrdinaryGetOwnProperty(O, P) {
2475
2256
  return ToPropertyDescriptor(getOwnPropertyDescriptor(O, P));
2476
2257
  };
2477
2258
 
2478
- // https://ecma-international.org/ecma-262/6.0/#sec-isdatadescriptor
2259
+ // https://www.ecma-international.org/ecma-262/6.0/#sec-isdatadescriptor
2479
2260
 
2480
2261
  var IsDataDescriptor = function IsDataDescriptor(Desc) {
2481
2262
  if (typeof Desc === 'undefined') {
@@ -2495,14 +2276,14 @@ var isPrimitive = function isPrimitive(value) {
2495
2276
  return value === null || (typeof value !== 'function' && typeof value !== 'object');
2496
2277
  };
2497
2278
 
2498
- var $Object = getIntrinsic('%Object%');
2279
+ var $Object = GetIntrinsic('%Object%');
2499
2280
 
2500
2281
 
2501
2282
 
2502
2283
  var $preventExtensions = $Object.preventExtensions;
2503
2284
  var $isExtensible = $Object.isExtensible;
2504
2285
 
2505
- // https://ecma-international.org/ecma-262/6.0/#sec-isextensible-o
2286
+ // https://www.ecma-international.org/ecma-262/6.0/#sec-isextensible-o
2506
2287
 
2507
2288
  var IsExtensible = $preventExtensions
2508
2289
  ? function IsExtensible(obj) {
@@ -2516,7 +2297,7 @@ var _isNaN = Number.isNaN || function isNaN(a) {
2516
2297
  return a !== a;
2517
2298
  };
2518
2299
 
2519
- // http://ecma-international.org/ecma-262/5.1/#sec-9.12
2300
+ // http://www.ecma-international.org/ecma-262/5.1/#sec-9.12
2520
2301
 
2521
2302
  var SameValue = function SameValue(x, y) {
2522
2303
  if (x === y) { // 0 === -0, but they are not identical.
@@ -2526,7 +2307,7 @@ var SameValue = function SameValue(x, y) {
2526
2307
  return _isNaN(x) && _isNaN(y);
2527
2308
  };
2528
2309
 
2529
- var $TypeError$4 = getIntrinsic('%TypeError%');
2310
+ var $TypeError$4 = GetIntrinsic('%TypeError%');
2530
2311
 
2531
2312
 
2532
2313
 
@@ -2538,7 +2319,7 @@ var $TypeError$4 = getIntrinsic('%TypeError%');
2538
2319
 
2539
2320
 
2540
2321
 
2541
- // https://ecma-international.org/ecma-262/6.0/#sec-createdataproperty
2322
+ // https://www.ecma-international.org/ecma-262/6.0/#sec-createdataproperty
2542
2323
 
2543
2324
  var CreateDataProperty = function CreateDataProperty(O, P, V) {
2544
2325
  if (Type$1(O) !== 'Object') {
@@ -2568,9 +2349,9 @@ var CreateDataProperty = function CreateDataProperty(O, P, V) {
2568
2349
  );
2569
2350
  };
2570
2351
 
2571
- var $TypeError$5 = getIntrinsic('%TypeError%');
2352
+ var $TypeError$5 = GetIntrinsic('%TypeError%');
2572
2353
 
2573
- // http://ecma-international.org/ecma-262/5.1/#sec-9.10
2354
+ // http://www.ecma-international.org/ecma-262/5.1/#sec-9.10
2574
2355
 
2575
2356
  var CheckObjectCoercible = function CheckObjectCoercible(value, optMessage) {
2576
2357
  if (value == null) {
@@ -2581,11 +2362,11 @@ var CheckObjectCoercible = function CheckObjectCoercible(value, optMessage) {
2581
2362
 
2582
2363
  var RequireObjectCoercible = CheckObjectCoercible;
2583
2364
 
2584
- var $Object$1 = getIntrinsic('%Object%');
2365
+ var $Object$1 = GetIntrinsic('%Object%');
2585
2366
 
2586
2367
 
2587
2368
 
2588
- // https://ecma-international.org/ecma-262/6.0/#sec-toobject
2369
+ // https://www.ecma-international.org/ecma-262/6.0/#sec-toobject
2589
2370
 
2590
2371
  var ToObject = function ToObject(value) {
2591
2372
  RequireObjectCoercible(value);
@@ -2595,10 +2376,10 @@ var ToObject = function ToObject(value) {
2595
2376
  var $gOPD$2 = Object.getOwnPropertyDescriptor;
2596
2377
  var $getOwnNames = Object.getOwnPropertyNames;
2597
2378
  var $getSymbols = Object.getOwnPropertySymbols;
2598
- var $concat$1 = callBound('Array.prototype.concat');
2379
+ var $concat = callBound('Array.prototype.concat');
2599
2380
  var $reduce = callBound('Array.prototype.reduce');
2600
2381
  var getAll = $getSymbols ? function (obj) {
2601
- return $concat$1($getOwnNames(obj), $getSymbols(obj));
2382
+ return $concat($getOwnNames(obj), $getSymbols(obj));
2602
2383
  } : $getOwnNames;
2603
2384
 
2604
2385
  var isES5 = IsCallable($gOPD$2) && IsCallable($getOwnNames);
@@ -2637,281 +2418,13 @@ var shim = function shimGetOwnPropertyDescriptors() {
2637
2418
  return polyfill$1;
2638
2419
  };
2639
2420
 
2640
- var bound = callBind(polyfill(), Object);
2641
-
2642
- defineProperties_1(bound, {
2421
+ defineProperties_1(implementation$2, {
2643
2422
  getPolyfill: polyfill,
2644
2423
  implementation: implementation$2,
2645
2424
  shim: shim
2646
2425
  });
2647
2426
 
2648
- var object_getownpropertydescriptors = bound;
2649
-
2650
- /* globals
2651
- Atomics,
2652
- SharedArrayBuffer,
2653
- */
2654
-
2655
- var undefined$2;
2656
-
2657
- var $TypeError$6 = TypeError;
2658
-
2659
- var $gOPD$3 = Object.getOwnPropertyDescriptor;
2660
- if ($gOPD$3) {
2661
- try {
2662
- $gOPD$3({}, '');
2663
- } catch (e) {
2664
- $gOPD$3 = null; // this is IE 8, which has a broken gOPD
2665
- }
2666
- }
2667
-
2668
- var throwTypeError$1 = function () { throw new $TypeError$6(); };
2669
- var ThrowTypeError$1 = $gOPD$3
2670
- ? (function () {
2671
- try {
2672
- // eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
2673
- arguments.callee; // IE 8 does not throw here
2674
- return throwTypeError$1;
2675
- } catch (calleeThrows) {
2676
- try {
2677
- // IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
2678
- return $gOPD$3(arguments, 'callee').get;
2679
- } catch (gOPDthrows) {
2680
- return throwTypeError$1;
2681
- }
2682
- }
2683
- }())
2684
- : throwTypeError$1;
2685
-
2686
- var hasSymbols$4 = hasSymbols$1();
2687
-
2688
- var getProto$1 = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
2689
- var generatorFunction = undefined$2;
2690
- var asyncFunction = undefined$2;
2691
- var asyncGenFunction = undefined$2;
2692
-
2693
- var TypedArray$1 = typeof Uint8Array === 'undefined' ? undefined$2 : getProto$1(Uint8Array);
2694
-
2695
- var INTRINSICS$1 = {
2696
- '%Array%': Array,
2697
- '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$2 : ArrayBuffer,
2698
- '%ArrayBufferPrototype%': typeof ArrayBuffer === 'undefined' ? undefined$2 : ArrayBuffer.prototype,
2699
- '%ArrayIteratorPrototype%': hasSymbols$4 ? getProto$1([][Symbol.iterator]()) : undefined$2,
2700
- '%ArrayPrototype%': Array.prototype,
2701
- '%ArrayProto_entries%': Array.prototype.entries,
2702
- '%ArrayProto_forEach%': Array.prototype.forEach,
2703
- '%ArrayProto_keys%': Array.prototype.keys,
2704
- '%ArrayProto_values%': Array.prototype.values,
2705
- '%AsyncFromSyncIteratorPrototype%': undefined$2,
2706
- '%AsyncFunction%': asyncFunction,
2707
- '%AsyncFunctionPrototype%': undefined$2,
2708
- '%AsyncGenerator%': undefined$2,
2709
- '%AsyncGeneratorFunction%': asyncGenFunction,
2710
- '%AsyncGeneratorPrototype%': undefined$2,
2711
- '%AsyncIteratorPrototype%': undefined$2,
2712
- '%Atomics%': typeof Atomics === 'undefined' ? undefined$2 : Atomics,
2713
- '%Boolean%': Boolean,
2714
- '%BooleanPrototype%': Boolean.prototype,
2715
- '%DataView%': typeof DataView === 'undefined' ? undefined$2 : DataView,
2716
- '%DataViewPrototype%': typeof DataView === 'undefined' ? undefined$2 : DataView.prototype,
2717
- '%Date%': Date,
2718
- '%DatePrototype%': Date.prototype,
2719
- '%decodeURI%': decodeURI,
2720
- '%decodeURIComponent%': decodeURIComponent,
2721
- '%encodeURI%': encodeURI,
2722
- '%encodeURIComponent%': encodeURIComponent,
2723
- '%Error%': Error,
2724
- '%ErrorPrototype%': Error.prototype,
2725
- '%eval%': eval, // eslint-disable-line no-eval
2726
- '%EvalError%': EvalError,
2727
- '%EvalErrorPrototype%': EvalError.prototype,
2728
- '%Float32Array%': typeof Float32Array === 'undefined' ? undefined$2 : Float32Array,
2729
- '%Float32ArrayPrototype%': typeof Float32Array === 'undefined' ? undefined$2 : Float32Array.prototype,
2730
- '%Float64Array%': typeof Float64Array === 'undefined' ? undefined$2 : Float64Array,
2731
- '%Float64ArrayPrototype%': typeof Float64Array === 'undefined' ? undefined$2 : Float64Array.prototype,
2732
- '%Function%': Function,
2733
- '%FunctionPrototype%': Function.prototype,
2734
- '%Generator%': undefined$2,
2735
- '%GeneratorFunction%': generatorFunction,
2736
- '%GeneratorPrototype%': undefined$2,
2737
- '%Int8Array%': typeof Int8Array === 'undefined' ? undefined$2 : Int8Array,
2738
- '%Int8ArrayPrototype%': typeof Int8Array === 'undefined' ? undefined$2 : Int8Array.prototype,
2739
- '%Int16Array%': typeof Int16Array === 'undefined' ? undefined$2 : Int16Array,
2740
- '%Int16ArrayPrototype%': typeof Int16Array === 'undefined' ? undefined$2 : Int8Array.prototype,
2741
- '%Int32Array%': typeof Int32Array === 'undefined' ? undefined$2 : Int32Array,
2742
- '%Int32ArrayPrototype%': typeof Int32Array === 'undefined' ? undefined$2 : Int32Array.prototype,
2743
- '%isFinite%': isFinite,
2744
- '%isNaN%': isNaN,
2745
- '%IteratorPrototype%': hasSymbols$4 ? getProto$1(getProto$1([][Symbol.iterator]())) : undefined$2,
2746
- '%JSON%': typeof JSON === 'object' ? JSON : undefined$2,
2747
- '%JSONParse%': typeof JSON === 'object' ? JSON.parse : undefined$2,
2748
- '%Map%': typeof Map === 'undefined' ? undefined$2 : Map,
2749
- '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$4 ? undefined$2 : getProto$1(new Map()[Symbol.iterator]()),
2750
- '%MapPrototype%': typeof Map === 'undefined' ? undefined$2 : Map.prototype,
2751
- '%Math%': Math,
2752
- '%Number%': Number,
2753
- '%NumberPrototype%': Number.prototype,
2754
- '%Object%': Object,
2755
- '%ObjectPrototype%': Object.prototype,
2756
- '%ObjProto_toString%': Object.prototype.toString,
2757
- '%ObjProto_valueOf%': Object.prototype.valueOf,
2758
- '%parseFloat%': parseFloat,
2759
- '%parseInt%': parseInt,
2760
- '%Promise%': typeof Promise === 'undefined' ? undefined$2 : Promise,
2761
- '%PromisePrototype%': typeof Promise === 'undefined' ? undefined$2 : Promise.prototype,
2762
- '%PromiseProto_then%': typeof Promise === 'undefined' ? undefined$2 : Promise.prototype.then,
2763
- '%Promise_all%': typeof Promise === 'undefined' ? undefined$2 : Promise.all,
2764
- '%Promise_reject%': typeof Promise === 'undefined' ? undefined$2 : Promise.reject,
2765
- '%Promise_resolve%': typeof Promise === 'undefined' ? undefined$2 : Promise.resolve,
2766
- '%Proxy%': typeof Proxy === 'undefined' ? undefined$2 : Proxy,
2767
- '%RangeError%': RangeError,
2768
- '%RangeErrorPrototype%': RangeError.prototype,
2769
- '%ReferenceError%': ReferenceError,
2770
- '%ReferenceErrorPrototype%': ReferenceError.prototype,
2771
- '%Reflect%': typeof Reflect === 'undefined' ? undefined$2 : Reflect,
2772
- '%RegExp%': RegExp,
2773
- '%RegExpPrototype%': RegExp.prototype,
2774
- '%Set%': typeof Set === 'undefined' ? undefined$2 : Set,
2775
- '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$4 ? undefined$2 : getProto$1(new Set()[Symbol.iterator]()),
2776
- '%SetPrototype%': typeof Set === 'undefined' ? undefined$2 : Set.prototype,
2777
- '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$2 : SharedArrayBuffer,
2778
- '%SharedArrayBufferPrototype%': typeof SharedArrayBuffer === 'undefined' ? undefined$2 : SharedArrayBuffer.prototype,
2779
- '%String%': String,
2780
- '%StringIteratorPrototype%': hasSymbols$4 ? getProto$1(''[Symbol.iterator]()) : undefined$2,
2781
- '%StringPrototype%': String.prototype,
2782
- '%Symbol%': hasSymbols$4 ? Symbol : undefined$2,
2783
- '%SymbolPrototype%': hasSymbols$4 ? Symbol.prototype : undefined$2,
2784
- '%SyntaxError%': SyntaxError,
2785
- '%SyntaxErrorPrototype%': SyntaxError.prototype,
2786
- '%ThrowTypeError%': ThrowTypeError$1,
2787
- '%TypedArray%': TypedArray$1,
2788
- '%TypedArrayPrototype%': TypedArray$1 ? TypedArray$1.prototype : undefined$2,
2789
- '%TypeError%': $TypeError$6,
2790
- '%TypeErrorPrototype%': $TypeError$6.prototype,
2791
- '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$2 : Uint8Array,
2792
- '%Uint8ArrayPrototype%': typeof Uint8Array === 'undefined' ? undefined$2 : Uint8Array.prototype,
2793
- '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$2 : Uint8ClampedArray,
2794
- '%Uint8ClampedArrayPrototype%': typeof Uint8ClampedArray === 'undefined' ? undefined$2 : Uint8ClampedArray.prototype,
2795
- '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$2 : Uint16Array,
2796
- '%Uint16ArrayPrototype%': typeof Uint16Array === 'undefined' ? undefined$2 : Uint16Array.prototype,
2797
- '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined$2 : Uint32Array,
2798
- '%Uint32ArrayPrototype%': typeof Uint32Array === 'undefined' ? undefined$2 : Uint32Array.prototype,
2799
- '%URIError%': URIError,
2800
- '%URIErrorPrototype%': URIError.prototype,
2801
- '%WeakMap%': typeof WeakMap === 'undefined' ? undefined$2 : WeakMap,
2802
- '%WeakMapPrototype%': typeof WeakMap === 'undefined' ? undefined$2 : WeakMap.prototype,
2803
- '%WeakSet%': typeof WeakSet === 'undefined' ? undefined$2 : WeakSet,
2804
- '%WeakSetPrototype%': typeof WeakSet === 'undefined' ? undefined$2 : WeakSet.prototype
2805
- };
2806
-
2807
-
2808
- var $replace$1 = functionBind.call(Function.call, String.prototype.replace);
2809
-
2810
- /* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
2811
- var rePropName$1 = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
2812
- var reEscapeChar$1 = /\\(\\)?/g; /** Used to match backslashes in property paths. */
2813
- var stringToPath$1 = function stringToPath(string) {
2814
- var result = [];
2815
- $replace$1(string, rePropName$1, function (match, number, quote, subString) {
2816
- result[result.length] = quote ? $replace$1(subString, reEscapeChar$1, '$1') : (number || match);
2817
- });
2818
- return result;
2819
- };
2820
- /* end adaptation */
2821
-
2822
- var getBaseIntrinsic$1 = function getBaseIntrinsic(name, allowMissing) {
2823
- if (!(name in INTRINSICS$1)) {
2824
- throw new SyntaxError('intrinsic ' + name + ' does not exist!');
2825
- }
2826
-
2827
- // istanbul ignore if // hopefully this is impossible to test :-)
2828
- if (typeof INTRINSICS$1[name] === 'undefined' && !allowMissing) {
2829
- throw new $TypeError$6('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
2830
- }
2831
-
2832
- return INTRINSICS$1[name];
2833
- };
2834
-
2835
- var GetIntrinsic = function GetIntrinsic(name, allowMissing) {
2836
- if (typeof name !== 'string' || name.length === 0) {
2837
- throw new TypeError('intrinsic name must be a non-empty string');
2838
- }
2839
- if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
2840
- throw new TypeError('"allowMissing" argument must be a boolean');
2841
- }
2842
-
2843
- var parts = stringToPath$1(name);
2844
-
2845
- var value = getBaseIntrinsic$1('%' + (parts.length > 0 ? parts[0] : '') + '%', allowMissing);
2846
- for (var i = 1; i < parts.length; i += 1) {
2847
- if (value != null) {
2848
- if ($gOPD$3 && (i + 1) >= parts.length) {
2849
- var desc = $gOPD$3(value, parts[i]);
2850
- if (!allowMissing && !(parts[i] in value)) {
2851
- throw new $TypeError$6('base intrinsic for ' + name + ' exists, but the property is not available.');
2852
- }
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]];
2861
- } else {
2862
- value = value[parts[i]];
2863
- }
2864
- }
2865
- }
2866
- return value;
2867
- };
2868
-
2869
- var callBind$1 = _commonjsHelpers.createCommonjsModule(function (module) {
2870
-
2871
-
2872
-
2873
-
2874
-
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);
2892
- };
2893
-
2894
- var applyBind = function applyBind() {
2895
- return $reflectApply(functionBind, $apply, arguments);
2896
- };
2897
-
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'));
2907
-
2908
- var callBound$1 = function callBoundIntrinsic(name, allowMissing) {
2909
- var intrinsic = GetIntrinsic(name, !!allowMissing);
2910
- if (typeof intrinsic === 'function' && $indexOf$1(name, '.prototype.')) {
2911
- return callBind$1(intrinsic);
2912
- }
2913
- return intrinsic;
2914
- };
2427
+ var object_getownpropertydescriptors = implementation$2;
2915
2428
 
2916
2429
  var isES5$1 = typeof Object.defineProperty === 'function'
2917
2430
  && typeof Object.defineProperties === 'function';
@@ -2930,14 +2443,14 @@ if (typeof Promise !== 'function') {
2930
2443
 
2931
2444
 
2932
2445
 
2933
- var $slice = callBound$1('Array.prototype.slice');
2934
- var $concat$2 = callBound$1('Array.prototype.concat');
2935
- var $forEach = callBound$1('Array.prototype.forEach');
2446
+ var $slice = callBound('Array.prototype.slice');
2447
+ var $concat$1 = callBound('Array.prototype.concat');
2448
+ var $forEach = callBound('Array.prototype.forEach');
2936
2449
 
2937
- var hasSymbols$5 = hasSymbols$1();
2450
+ var hasSymbols$3 = hasSymbols$1();
2938
2451
 
2939
- var kCustomPromisifiedSymbol = hasSymbols$5 ? Symbol('util.promisify.custom') : null;
2940
- var kCustomPromisifyArgsSymbol = hasSymbols$5 ? Symbol('customPromisifyArgs') : null;
2452
+ var kCustomPromisifiedSymbol = hasSymbols$3 ? Symbol('util.promisify.custom') : null;
2453
+ var kCustomPromisifyArgsSymbol = hasSymbols$3 ? Symbol('customPromisifyArgs') : null;
2941
2454
 
2942
2455
  var implementation$3 = function promisify(orig) {
2943
2456
  if (typeof orig !== 'function') {
@@ -2947,7 +2460,7 @@ var implementation$3 = function promisify(orig) {
2947
2460
  throw error;
2948
2461
  }
2949
2462
 
2950
- if (hasSymbols$5 && orig[kCustomPromisifiedSymbol]) {
2463
+ if (hasSymbols$3 && orig[kCustomPromisifiedSymbol]) {
2951
2464
  var customFunction = orig[kCustomPromisifiedSymbol];
2952
2465
  if (typeof customFunction !== 'function') {
2953
2466
  throw new TypeError('The [util.promisify.custom] property must be a function');
@@ -2969,7 +2482,7 @@ var implementation$3 = function promisify(orig) {
2969
2482
  var args = $slice(arguments);
2970
2483
  var self = this; // eslint-disable-line no-invalid-this
2971
2484
  return new Promise(function (resolve, reject) {
2972
- orig.apply(self, $concat$2(args, function (err) {
2485
+ orig.apply(self, $concat$1(args, function (err) {
2973
2486
  var values = arguments.length > 1 ? $slice(arguments, 1) : [];
2974
2487
  if (err) {
2975
2488
  reject(err);
@@ -3054,7 +2567,7 @@ function connect() {
3054
2567
  };
3055
2568
  }
3056
2569
 
3057
- var connection = mysql__default['default'].createConnection(config);
2570
+ var connection = mysql.createConnection(config);
3058
2571
  return {
3059
2572
  query: function query(sql, args) {
3060
2573
  return util.util.promisify(connection.query).call(connection, sql, args);
@@ -3248,7 +2761,7 @@ var md5 = _commonjsHelpers.createCommonjsModule(function (module) {
3248
2761
  message = utf8.stringToBytes(message);
3249
2762
  else if (isBuffer(message))
3250
2763
  message = Array.prototype.slice.call(message, 0);
3251
- else if (!Array.isArray(message) && message.constructor !== Uint8Array)
2764
+ else if (!Array.isArray(message))
3252
2765
  message = message.toString();
3253
2766
  // else, assume byte array already
3254
2767
 
@@ -4015,7 +3528,7 @@ var user = /*#__PURE__*/Object.freeze({
4015
3528
  findUser: findUser$1
4016
3529
  });
4017
3530
 
4018
- var localStrategy = new Local__default['default'].Strategy({
3531
+ var localStrategy = new Local.Strategy({
4019
3532
  usernameField: 'email',
4020
3533
  passwordField: 'password'
4021
3534
  }, function (email, password, done) {