@mjhls/mjh-framework 1.0.702-beta-v1 → 1.0.703-testing-module-splitting

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