@mjhls/mjh-framework 1.0.784-beta.0 → 1.0.784

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