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

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 (316) hide show
  1. package/dist/cjs/AD.js +10 -9
  2. package/dist/cjs/AD300x250.js +30 -30
  3. package/dist/cjs/AD300x250x600.js +30 -30
  4. package/dist/cjs/AD728x90.js +33 -33
  5. package/dist/cjs/ADFloatingFooter.js +32 -32
  6. package/dist/cjs/ADFooter.js +15 -14
  7. package/dist/cjs/ADGutter.js +32 -32
  8. package/dist/cjs/{ADInfeed-8d621d3c.js → ADInfeed-eb4ce360.js} +15 -13
  9. package/dist/cjs/ADSkyscraper.js +32 -32
  10. package/dist/cjs/ADSponsoredResources.js +32 -32
  11. package/dist/cjs/ADWebcast.js +32 -32
  12. package/dist/cjs/ADWelcome.js +33 -33
  13. package/dist/cjs/{ADlgInfeed-0e26bccb.js → ADlgInfeed-8a05b63f.js} +11 -10
  14. package/dist/cjs/AccordionPanel.js +31 -29
  15. package/dist/cjs/AdSlot.js +35 -35
  16. package/dist/cjs/AdSlotsProvider.js +20 -912
  17. package/dist/cjs/AlgoliaSearch.js +59 -14022
  18. package/dist/cjs/AlphabeticList.js +26 -25
  19. package/dist/cjs/ArticleCarousel.js +24 -23
  20. package/dist/cjs/ArticleProgramLandingPage.js +59 -59
  21. package/dist/cjs/ArticleSeriesLandingPage.js +41 -41
  22. package/dist/cjs/ArticleSeriesListing.js +62 -62
  23. package/dist/cjs/Auth.js +686 -662
  24. package/dist/cjs/AuthWrapper.js +310 -268
  25. package/dist/cjs/{AuthorComponent-bb831b74.js → AuthorComponent-c21aac7f.js} +14 -13
  26. package/dist/cjs/Beam.js +8 -8
  27. package/dist/cjs/{BlockContent-091a991f.js → BlockContent-36e54d77.js} +56 -55
  28. package/dist/cjs/Breadcrumbs.js +29 -27
  29. package/dist/cjs/CMEDeck.js +83 -84
  30. package/dist/cjs/Column1.js +14 -11
  31. package/dist/cjs/Column2.js +36 -33
  32. package/dist/cjs/Column3.js +61 -59
  33. package/dist/cjs/ConferenceArticleCard.js +23 -22
  34. package/dist/cjs/ConferenceBanner-6c9e718a.js +24 -0
  35. package/dist/cjs/DeckContent.js +99 -96
  36. package/dist/cjs/DeckQueue.js +92 -89
  37. package/dist/cjs/{Dfp-26baccf1.js → Dfp-3f0ed4c8.js} +34 -34
  38. package/dist/cjs/EventsDeck.js +142 -135
  39. package/dist/cjs/ExternalResources.js +80 -80
  40. package/dist/cjs/Feature.js +26 -24
  41. package/dist/cjs/ForbesHero.js +43 -42
  42. package/dist/cjs/GridContent.js +238 -234
  43. package/dist/cjs/GridHero.js +45 -44
  44. package/dist/cjs/GroupDeck.js +60 -59
  45. package/dist/cjs/HamMagazine.js +137 -132
  46. package/dist/cjs/Header.js +14 -12
  47. package/dist/cjs/Hero.js +13 -12
  48. package/dist/cjs/HighlightenVideo.js +18 -17
  49. package/dist/cjs/HorizontalArticleListing.js +72 -72
  50. package/dist/cjs/HorizontalHero.js +26 -25
  51. package/dist/cjs/IssueContentDeck.js +78 -73
  52. package/dist/cjs/IssueDeck.js +77 -72
  53. package/dist/cjs/IssueLanding.js +67 -67
  54. package/dist/cjs/LeftNav.js +40 -39
  55. package/dist/cjs/MasterDeck.js +72 -72
  56. package/dist/cjs/MediaSeriesLanding.js +1182 -1091
  57. package/dist/cjs/NavDvm.js +79 -74
  58. package/dist/cjs/{NavFooter-76c913e3.js → NavFooter-3dcd99a8.js} +15 -14
  59. package/dist/cjs/NavMagazine.js +143 -138
  60. package/dist/cjs/NavNative.js +138 -130
  61. package/dist/cjs/OncliveHero.js +19 -19
  62. package/dist/cjs/OncliveLargeHero.js +73 -72
  63. package/dist/cjs/PageFilter.js +15 -14
  64. package/dist/cjs/PartnerDetailListing.js +109 -1207
  65. package/dist/cjs/PdfDownload.js +10 -9
  66. package/dist/cjs/PopUpModal.js +21 -19
  67. package/dist/cjs/PubSection.js +43 -43
  68. package/dist/cjs/PubToc.js +16 -15
  69. package/dist/cjs/PublicationDeck.js +67 -62
  70. package/dist/cjs/PublicationLanding.js +112 -108
  71. package/dist/cjs/QueueDeckExpanded.js +310 -311
  72. package/dist/cjs/RecentNews.js +23 -22
  73. package/dist/cjs/RelatedContent.js +27 -26
  74. package/dist/cjs/RelatedTopicsDropdown.js +22 -19
  75. package/dist/cjs/RolesDeck.js +32 -27
  76. package/dist/cjs/Search.js +22 -18
  77. package/dist/cjs/Segment.js +6 -6
  78. package/dist/cjs/SeriesListingDeck.js +38 -39
  79. package/dist/cjs/{SeriesSlider-8bbc989f.js → SeriesSlider-e3e8ead7.js} +36 -35
  80. package/dist/cjs/SetCookie.js +1 -1
  81. package/dist/cjs/SideFooter.js +37 -36
  82. package/dist/cjs/SocialIcons.js +10 -9
  83. package/dist/cjs/{SocialSearchComponent-cea213aa.js → SocialSearchComponent-948138c7.js} +40 -36
  84. package/dist/cjs/SocialShare.js +31 -29
  85. package/dist/cjs/TaxonomyCard.js +64 -59
  86. package/dist/cjs/TaxonomyDescription.js +55 -55
  87. package/dist/cjs/TemplateNormal.js +74 -74
  88. package/dist/cjs/ThumbnailCard.js +23 -21
  89. package/dist/cjs/Ustream.js +31 -30
  90. package/dist/cjs/VerticalHero.js +17 -16
  91. package/dist/cjs/VideoProgramLandingPage.js +77 -74
  92. package/dist/cjs/VideoSeriesCard.js +32 -31
  93. package/dist/cjs/VideoSeriesFilter.js +18 -18
  94. package/dist/cjs/VideoSeriesLandingPage.js +50 -50
  95. package/dist/cjs/VideoSeriesListing.js +79 -79
  96. package/dist/cjs/View.js +263 -261
  97. package/dist/cjs/YahooHero.js +42 -41
  98. package/dist/cjs/YoutubeGroup.js +63 -62
  99. package/dist/cjs/{_is-array-754e012d.js → _is-array-6128bd56.js} +6 -6
  100. package/dist/cjs/{_iter-detect-60b2f026.js → _iter-detect-55a5657a.js} +8 -8
  101. package/dist/cjs/{_object-pie-68c5bcbc.js → _object-pie-083f2dd6.js} +4 -4
  102. package/dist/cjs/{_object-sap-5e74ba08.js → _object-sap-a175b4a9.js} +1 -1
  103. package/dist/cjs/{_object-to-array-5762f850.js → _object-to-array-8fe5a54f.js} +2 -2
  104. package/dist/cjs/{_to-object-329a650b.js → _to-object-6de10e57.js} +8 -8
  105. package/dist/cjs/{asyncToGenerator-140e5f89.js → asyncToGenerator-58c289d9.js} +32 -32
  106. package/dist/cjs/{brightcove-react-player-loader.es-156bd4d6.js → brightcove-react-player-loader.es-a195642e.js} +11 -9
  107. package/dist/cjs/{core.get-iterator-method-f62321d4.js → core.get-iterator-method-f474eacc.js} +2 -2
  108. package/dist/cjs/{debounce-529c8d06.js → debounce-d4a2369b.js} +2 -2
  109. package/dist/cjs/{define-property-f4d12f4e.js → define-property-c88be878.js} +6 -6
  110. package/dist/cjs/{defineProperty-55548b25.js → defineProperty-0cb76d99.js} +1 -1
  111. package/dist/cjs/{entities-310b46ee.js → entities-3f9d0f2f.js} +1 -1
  112. package/dist/cjs/{eq-bb2843ed.js → eq-5fc26c07.js} +1 -1
  113. package/dist/cjs/{es6.string.iterator-cc0bbaa4.js → es6.string.iterator-c2573ffd.js} +6 -6
  114. package/dist/cjs/{extends-0a918631.js → extends-29bdbc6d.js} +7 -7
  115. package/dist/cjs/faundadb.js +7 -7
  116. package/dist/cjs/{get-adbb11e3.js → get-5839e5b5.js} +21 -21
  117. package/dist/cjs/getQuery.js +2 -2
  118. package/dist/cjs/getRelatedArticle.js +425 -12
  119. package/dist/cjs/getRootDocGroup.js +6 -6
  120. package/dist/cjs/getSerializers.js +45 -46
  121. package/dist/cjs/{getTargeting-021d644c.js → getTargeting-a100d6e5.js} +3 -3
  122. package/dist/cjs/getTargeting.js +8 -8
  123. package/dist/{esm/iconBase-602d52fe.js → cjs/iconBase-be4097c0.js} +33 -8
  124. package/dist/cjs/{index-98e01cb9.js → index-0e4427c8.js} +479 -13
  125. package/dist/cjs/{index-017609b5.js → index-55dd328c.js} +1014 -997
  126. package/dist/cjs/index-bd6c9f56.js +211 -0
  127. package/dist/cjs/{index-96b3db50.js → index-eadd5035.js} +17 -15
  128. package/dist/cjs/{index-be0c82be.js → index-efca863c.js} +36 -30
  129. package/dist/cjs/{index-3294d3bc.js → index-f86bb269.js} +44 -45
  130. package/dist/cjs/{index.es-9110add6.js → index.es-f3e47207.js} +31 -12
  131. package/dist/cjs/{index.esm-90433435.js → index.esm-00a6aade.js} +7 -16
  132. package/dist/cjs/{index.esm-4d410430.js → index.esm-2bb721c8.js} +21 -21
  133. package/dist/cjs/{index.esm-e32d3e8e.js → index.esm-c1e16606.js} +4 -7
  134. package/dist/cjs/{index.esm-ff47db6f.js → index.esm-f27f80d9.js} +6 -13
  135. package/dist/cjs/index.js +167 -164
  136. package/dist/cjs/{inherits-452ff02c.js → inherits-c2065b95.js} +19 -19
  137. package/dist/cjs/{isSymbol-04666465.js → isSymbol-03abbdf0.js} +15 -15
  138. package/dist/cjs/keys-7f2c2108.js +25 -0
  139. package/dist/cjs/{lodash-fc2922d0.js → lodash-f0783643.js} +128 -31
  140. package/dist/cjs/main-f1c77adb.js +973 -0
  141. package/dist/cjs/{md5-5039b1a6.js → md5-e1ca5797.js} +1 -1
  142. package/dist/cjs/{moment-575fe24c.js → moment-aca40de1.js} +11 -9
  143. package/dist/cjs/{react-social-icons-f7f48f71.js → react-social-icons-af932527.js} +28 -27
  144. package/dist/cjs/{slicedToArray-8f385299.js → slicedToArray-5d1bc3b3.js} +14 -14
  145. package/dist/cjs/{smoothscroll-5054361f.js → smoothscroll-99df7f93.js} +1 -1
  146. package/dist/cjs/stringify-c9ac1214.js +17 -0
  147. package/dist/cjs/timeDifferenceCalc.js +1 -1
  148. package/dist/cjs/{toConsumableArray-9a3476fe.js → toConsumableArray-ddb70795.js} +9 -9
  149. package/dist/cjs/{toNumber-36d1e7e5.js → toNumber-5e1fac58.js} +40 -5
  150. package/dist/cjs/{typeof-725500bc.js → typeof-88a668c5.js} +36 -36
  151. package/dist/cjs/urlFor.js +3 -3
  152. package/dist/cjs/{ustream-api-d092dc31.js → ustream-api-b2b9092f.js} +4 -4
  153. package/dist/cjs/{util-f2c1b65b.js → util-6f784d85.js} +1 -1
  154. package/dist/cjs/{visibility-sensor-ad5e3116.js → visibility-sensor-eb2c5b69.js} +7 -5
  155. package/dist/cjs/{web.dom.iterable-a0e279c1.js → web.dom.iterable-46657b5c.js} +3 -3
  156. package/dist/esm/AD.js +1 -1
  157. package/dist/esm/AD300x250.js +23 -24
  158. package/dist/esm/AD300x250x600.js +23 -24
  159. package/dist/esm/AD728x90.js +26 -27
  160. package/dist/esm/ADFloatingFooter.js +22 -23
  161. package/dist/esm/ADFooter.js +6 -6
  162. package/dist/esm/ADGutter.js +22 -23
  163. package/dist/esm/{ADInfeed-b566ce41.js → ADInfeed-4a09242b.js} +6 -6
  164. package/dist/esm/ADSkyscraper.js +22 -23
  165. package/dist/esm/ADSponsoredResources.js +22 -23
  166. package/dist/esm/ADWebcast.js +22 -23
  167. package/dist/esm/ADWelcome.js +19 -20
  168. package/dist/esm/{ADlgInfeed-5eb7281d.js → ADlgInfeed-0bff9a62.js} +4 -4
  169. package/dist/esm/AccordionPanel.js +8 -8
  170. package/dist/esm/AdSlot.js +23 -24
  171. package/dist/esm/AdSlotsProvider.js +16 -909
  172. package/dist/esm/AlgoliaSearch.js +29 -13993
  173. package/dist/esm/AlphabeticList.js +10 -10
  174. package/dist/esm/ArticleCarousel.js +17 -17
  175. package/dist/esm/ArticleProgramLandingPage.js +49 -50
  176. package/dist/esm/ArticleSeriesLandingPage.js +32 -33
  177. package/dist/esm/ArticleSeriesListing.js +34 -35
  178. package/dist/esm/Auth.js +595 -575
  179. package/dist/esm/AuthWrapper.js +287 -246
  180. package/dist/esm/{AuthorComponent-34b16174.js → AuthorComponent-30aeba69.js} +1 -1
  181. package/dist/esm/Beam.js +8 -8
  182. package/dist/esm/{BlockContent-e9b4ddcf.js → BlockContent-c99c9a8d.js} +34 -34
  183. package/dist/esm/Breadcrumbs.js +7 -7
  184. package/dist/esm/CMEDeck.js +24 -25
  185. package/dist/esm/Column1.js +4 -4
  186. package/dist/esm/Column2.js +21 -21
  187. package/dist/esm/Column3.js +38 -39
  188. package/dist/esm/ConferenceArticleCard.js +7 -7
  189. package/dist/esm/DeckContent.js +49 -50
  190. package/dist/esm/DeckQueue.js +48 -49
  191. package/dist/esm/{Dfp-b7236041.js → Dfp-be030f2a.js} +14 -15
  192. package/dist/esm/EventsDeck.js +50 -50
  193. package/dist/esm/ExternalResources.js +47 -48
  194. package/dist/esm/Feature.js +4 -4
  195. package/dist/esm/ForbesHero.js +12 -12
  196. package/dist/esm/GridContent.js +90 -91
  197. package/dist/esm/GridHero.js +13 -13
  198. package/dist/esm/GroupDeck.js +14 -14
  199. package/dist/esm/HamMagazine.js +30 -30
  200. package/dist/esm/Hero.js +4 -4
  201. package/dist/esm/HighlightenVideo.js +2 -2
  202. package/dist/esm/HorizontalArticleListing.js +46 -47
  203. package/dist/esm/HorizontalHero.js +5 -5
  204. package/dist/esm/IssueContentDeck.js +27 -27
  205. package/dist/esm/IssueDeck.js +37 -37
  206. package/dist/esm/IssueLanding.js +55 -56
  207. package/dist/esm/LeftNav.js +21 -22
  208. package/dist/esm/MasterDeck.js +36 -37
  209. package/dist/esm/MediaSeriesLanding.js +733 -645
  210. package/dist/esm/NavDvm.js +16 -16
  211. package/dist/esm/NavMagazine.js +34 -34
  212. package/dist/esm/NavNative.js +34 -34
  213. package/dist/esm/OncliveHero.js +4 -5
  214. package/dist/esm/OncliveLargeHero.js +13 -13
  215. package/dist/esm/PageFilter.js +6 -6
  216. package/dist/esm/PartnerDetailListing.js +59 -1157
  217. package/dist/esm/PdfDownload.js +2 -2
  218. package/dist/esm/PopUpModal.js +6 -6
  219. package/dist/esm/PubSection.js +34 -35
  220. package/dist/esm/PubToc.js +8 -8
  221. package/dist/esm/PublicationDeck.js +24 -24
  222. package/dist/esm/PublicationLanding.js +49 -49
  223. package/dist/esm/QueueDeckExpanded.js +38 -39
  224. package/dist/esm/RecentNews.js +4 -4
  225. package/dist/esm/RelatedContent.js +7 -7
  226. package/dist/esm/RolesDeck.js +12 -12
  227. package/dist/esm/Search.js +8 -8
  228. package/dist/esm/Segment.js +6 -6
  229. package/dist/esm/SeriesListingDeck.js +20 -21
  230. package/dist/esm/{SeriesSlider-a866bb21.js → SeriesSlider-ae17159f.js} +10 -10
  231. package/dist/esm/SetCookie.js +1 -1
  232. package/dist/esm/SideFooter.js +15 -15
  233. package/dist/esm/{SocialSearchComponent-03c3e869.js → SocialSearchComponent-db963c3e.js} +12 -12
  234. package/dist/esm/TaxonomyCard.js +25 -25
  235. package/dist/esm/TaxonomyDescription.js +45 -46
  236. package/dist/esm/TemplateNormal.js +49 -50
  237. package/dist/esm/ThumbnailCard.js +7 -7
  238. package/dist/esm/Ustream.js +14 -14
  239. package/dist/esm/VerticalHero.js +3 -3
  240. package/dist/esm/VideoProgramLandingPage.js +53 -54
  241. package/dist/esm/VideoSeriesCard.js +13 -13
  242. package/dist/esm/VideoSeriesFilter.js +9 -9
  243. package/dist/esm/VideoSeriesLandingPage.js +38 -39
  244. package/dist/esm/VideoSeriesListing.js +35 -36
  245. package/dist/esm/View.js +90 -92
  246. package/dist/esm/YahooHero.js +15 -15
  247. package/dist/esm/YoutubeGroup.js +22 -22
  248. package/dist/esm/{_is-array-58e95429.js → _is-array-3e99e06e.js} +6 -6
  249. package/dist/esm/{_iter-detect-5d49a330.js → _iter-detect-7e5e5ce2.js} +8 -8
  250. package/dist/esm/{_object-pie-33c40e79.js → _object-pie-133f504a.js} +4 -4
  251. package/dist/esm/{_object-sap-964b6feb.js → _object-sap-f353c2a9.js} +1 -1
  252. package/dist/esm/{_object-to-array-7e804fce.js → _object-to-array-0f197f89.js} +2 -2
  253. package/dist/esm/{_to-object-a4107da3.js → _to-object-b50e61c3.js} +9 -9
  254. package/dist/esm/{asyncToGenerator-fc1c2e29.js → asyncToGenerator-7f8f9219.js} +32 -32
  255. package/dist/esm/{brightcove-react-player-loader.es-83f53e4e.js → brightcove-react-player-loader.es-57a70a56.js} +5 -4
  256. package/dist/esm/{core.get-iterator-method-e1de7503.js → core.get-iterator-method-133dfacd.js} +2 -2
  257. package/dist/esm/{debounce-9207d8ee.js → debounce-533d9748.js} +2 -2
  258. package/dist/esm/{define-property-8af5f002.js → define-property-fe54dc9f.js} +6 -6
  259. package/dist/esm/{defineProperty-94fd8bfc.js → defineProperty-f5ff6f5a.js} +1 -1
  260. package/dist/esm/{entities-7cc3bf45.js → entities-932b50cf.js} +1 -1
  261. package/dist/esm/{eq-b470f743.js → eq-bdcbf886.js} +1 -1
  262. package/dist/esm/{es6.string.iterator-c990c18c.js → es6.string.iterator-bc33758b.js} +7 -7
  263. package/dist/esm/{extends-6f2fcc99.js → extends-60e0e1c6.js} +7 -7
  264. package/dist/esm/faundadb.js +7 -7
  265. package/dist/esm/{get-1e515072.js → get-3c308da4.js} +21 -21
  266. package/dist/esm/getQuery.js +2 -2
  267. package/dist/esm/getRelatedArticle.js +425 -12
  268. package/dist/esm/getRootDocGroup.js +6 -6
  269. package/dist/esm/getSerializers.js +45 -46
  270. package/dist/esm/{getTargeting-82e86707.js → getTargeting-05c216d6.js} +2 -2
  271. package/dist/esm/getTargeting.js +8 -8
  272. package/dist/{cjs/iconBase-68959171.js → esm/iconBase-ccc56b97.js} +2 -8
  273. package/dist/esm/{index-73819142.js → index-0dbff1d1.js} +36 -30
  274. package/dist/esm/{index-ff630779.js → index-490e778a.js} +640 -630
  275. package/dist/esm/{index-41a678ea.js → index-5cc7b406.js} +469 -4
  276. package/dist/esm/{index-5f7e79e7.js → index-755f2cc2.js} +6 -6
  277. package/dist/esm/{index-ef6d5dcf.js → index-79cfd25c.js} +44 -45
  278. package/dist/esm/index-db3bb315.js +207 -0
  279. package/dist/esm/{index.es-29c1cef5.js → index.es-a6137319.js} +23 -5
  280. package/dist/esm/{index.esm-fd746768.js → index.esm-37268dca.js} +4 -5
  281. package/dist/esm/{index.esm-f8aaeeeb.js → index.esm-9b042655.js} +4 -7
  282. package/dist/esm/{index.esm-cf08bf18.js → index.esm-d4932dea.js} +6 -13
  283. package/dist/esm/{index.esm-29e48d38.js → index.esm-f6156a57.js} +7 -16
  284. package/dist/esm/index.js +122 -122
  285. package/dist/esm/{inherits-cf8dde54.js → inherits-a41fe93f.js} +19 -19
  286. package/dist/esm/{isSymbol-1981418f.js → isSymbol-a7e9aafe.js} +15 -15
  287. package/dist/esm/{keys-8eda7a5c.js → keys-7a3adabf.js} +6 -6
  288. package/dist/esm/{lodash-17fdfebb.js → lodash-f97fd99a.js} +128 -31
  289. package/dist/esm/main-d4165069.js +961 -0
  290. package/dist/esm/{md5-9be0e905.js → md5-4e42248e.js} +1 -1
  291. package/dist/esm/{moment-e2f9b20c.js → moment-bc12cb97.js} +11 -9
  292. package/dist/esm/{react-social-icons-a7d5c5c7.js → react-social-icons-9be47857.js} +16 -16
  293. package/dist/esm/{slicedToArray-641f241f.js → slicedToArray-be2f7a22.js} +14 -14
  294. package/dist/esm/{smoothscroll-0cd4c7a6.js → smoothscroll-fa4e3f8c.js} +1 -1
  295. package/dist/esm/stringify-59c8f690.js +15 -0
  296. package/dist/esm/timeDifferenceCalc.js +1 -1
  297. package/dist/esm/{toConsumableArray-43aa614d.js → toConsumableArray-6d9a4616.js} +9 -9
  298. package/dist/esm/{toNumber-2f7a84cd.js → toNumber-5aeba6e7.js} +40 -5
  299. package/dist/esm/{typeof-6435ba1c.js → typeof-a286cf0c.js} +36 -36
  300. package/dist/esm/urlFor.js +1 -1
  301. package/dist/esm/{ustream-api-9a50644d.js → ustream-api-33a866b6.js} +4 -4
  302. package/dist/esm/{util-7700fc59.js → util-3ab476bf.js} +1 -1
  303. package/dist/esm/{web.dom.iterable-4439f05a.js → web.dom.iterable-4109ff68.js} +3 -3
  304. package/package.json +1 -1
  305. package/dist/cjs/ConferenceBanner-4a16fddc.js +0 -23
  306. package/dist/cjs/events-1b438fe7.js +0 -469
  307. package/dist/cjs/index-e2e62963.js +0 -89
  308. package/dist/cjs/inherits-8d29278d.js +0 -110
  309. package/dist/cjs/keys-a586b7a0.js +0 -25
  310. package/dist/cjs/main-02daeefe.js +0 -862
  311. package/dist/cjs/stringify-7c5aff47.js +0 -17
  312. package/dist/esm/events-6c3a7a63.js +0 -467
  313. package/dist/esm/index-aaa2dae0.js +0 -85
  314. package/dist/esm/inherits-77d5e4fc.js +0 -101
  315. package/dist/esm/main-e4a934b2.js +0 -851
  316. package/dist/esm/stringify-4330ccdc.js +0 -15
package/dist/esm/Auth.js CHANGED
@@ -1,23 +1,24 @@
1
- import { a as commonjsGlobal } from './_commonjsHelpers-0c4b6f40.js';
2
- import './_to-object-a4107da3.js';
3
- import './es6.string.iterator-c990c18c.js';
4
- import './_library-528f1934.js';
5
- import './_iter-detect-5d49a330.js';
6
- import './core.get-iterator-method-e1de7503.js';
7
- import './_object-pie-33c40e79.js';
8
- import { _ as _extends } from './extends-6f2fcc99.js';
9
- import './web.dom.iterable-4439f05a.js';
1
+ import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-7f8f9219.js';
2
+ import { _ as _JSON$stringify } from './stringify-59c8f690.js';
3
+ import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-be2f7a22.js';
10
4
  import React__default, { useEffect, useState } from 'react';
11
5
  import Router from 'next/router';
12
- import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-641f241f.js';
13
- import { _ as _JSON$stringify } from './stringify-4330ccdc.js';
14
- import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-fc1c2e29.js';
6
+ import { _ as _extends } from './extends-60e0e1c6.js';
15
7
  import { Col, Form, Button, Spinner } from 'react-bootstrap';
16
- import { u as util } from './util-7700fc59.js';
17
8
  import useSWR from 'swr';
9
+ import { s as serialize_1, p as parse_1 } from './index-db3bb315.js';
18
10
  import Local from 'passport-local';
19
11
  import mysql from 'mysql';
20
- import { m as md5 } from './md5-9be0e905.js';
12
+ import { u as util } from './util-3ab476bf.js';
13
+ import { c as createCommonjsModule } from './_commonjsHelpers-0c4b6f40.js';
14
+ import { m as md5 } from './md5-4e42248e.js';
15
+ import './es6.string.iterator-bc33758b.js';
16
+ import './_to-object-b50e61c3.js';
17
+ import './web.dom.iterable-4109ff68.js';
18
+ import './_library-528f1934.js';
19
+ import './core.get-iterator-method-133dfacd.js';
20
+ import './_iter-detect-7e5e5ce2.js';
21
+ import './_object-pie-133f504a.js';
21
22
 
22
23
  var returnFormField = function returnFormField(_ref) {
23
24
  var name = _ref.name,
@@ -135,7 +136,7 @@ var returnFormField = function returnFormField(_ref) {
135
136
  }
136
137
  };
137
138
 
138
- var _this = undefined;
139
+ var _this$4 = undefined;
139
140
 
140
141
  var dataHandler = function () {
141
142
  var _ref = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(api_url, body) {
@@ -201,7 +202,7 @@ var dataHandler = function () {
201
202
  return _context.stop();
202
203
  }
203
204
  }
204
- }, _callee, _this, [[0, 20]]);
205
+ }, _callee, _this$4, [[0, 20]]);
205
206
  }));
206
207
 
207
208
  return function dataHandler(_x, _x2) {
@@ -397,9 +398,9 @@ var countries = ["United States", "Afghanistan", "Albania", "Algeria", "American
397
398
 
398
399
  var states = ['AL', 'AK', 'AS', 'AZ', 'AR', 'CA', 'CO', 'CT', 'DE', 'DC', 'FM', 'FL', 'GA', 'GU', 'HI', 'ID', 'IL', 'IN', 'IA', 'KS', 'KY', 'LA', 'ME', 'MH', 'MD', 'MA', 'MI', 'MN', 'MS', 'MO', 'MT', 'NE', 'NV', 'NH', 'NJ', 'NM', 'NY', 'NC', 'ND', 'MP', 'OH', 'OK', 'OR', 'PW', 'PA', 'PR', 'RI', 'SC', 'SD', 'TN', 'TX', 'UT', 'VT', 'VI', 'VA', 'WA', 'WV', 'WI', 'WY'];
399
400
 
400
- var _this$1 = undefined;
401
+ var _this$3 = undefined;
401
402
 
402
- var SignupForm = function SignupForm(props) {
403
+ var SignupForm$1 = function SignupForm(props) {
403
404
  var handleSubmit = function () {
404
405
  var _ref3 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee3(e) {
405
406
  var formData, body, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, key, res;
@@ -560,7 +561,7 @@ var SignupForm = function SignupForm(props) {
560
561
  return _context.stop();
561
562
  }
562
563
  }
563
- }, _callee, _this$1);
564
+ }, _callee, _this$3);
564
565
  }));
565
566
 
566
567
  return function loadInitData() {
@@ -627,7 +628,7 @@ var SignupForm = function SignupForm(props) {
627
628
  return _context2.stop();
628
629
  }
629
630
  }
630
- }, _callee2, _this$1);
631
+ }, _callee2, _this$3);
631
632
  }));
632
633
 
633
634
  return function handleOccupationChanged(_x) {
@@ -777,7 +778,7 @@ var SignupForm = function SignupForm(props) {
777
778
 
778
779
  var _this$2 = undefined;
779
780
 
780
- var SignupForm$1 = function SignupForm(props) {
781
+ var SignupForm = function SignupForm(props) {
781
782
  var handleSubmit = function () {
782
783
  var _ref3 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee3(e) {
783
784
  var formData, body, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, key, res;
@@ -1202,207 +1203,6 @@ var SignupForm$1 = function SignupForm(props) {
1202
1203
  );
1203
1204
  };
1204
1205
 
1205
- /*!
1206
- * cookie
1207
- * Copyright(c) 2012-2014 Roman Shtylman
1208
- * Copyright(c) 2015 Douglas Christopher Wilson
1209
- * MIT Licensed
1210
- */
1211
-
1212
- /**
1213
- * Module exports.
1214
- * @public
1215
- */
1216
-
1217
- var parse_1 = parse;
1218
- var serialize_1 = serialize;
1219
-
1220
- /**
1221
- * Module variables.
1222
- * @private
1223
- */
1224
-
1225
- var decode = decodeURIComponent;
1226
- var encode = encodeURIComponent;
1227
- var pairSplitRegExp = /; */;
1228
-
1229
- /**
1230
- * RegExp to match field-content in RFC 7230 sec 3.2
1231
- *
1232
- * field-content = field-vchar [ 1*( SP / HTAB ) field-vchar ]
1233
- * field-vchar = VCHAR / obs-text
1234
- * obs-text = %x80-FF
1235
- */
1236
-
1237
- var fieldContentRegExp = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;
1238
-
1239
- /**
1240
- * Parse a cookie header.
1241
- *
1242
- * Parse the given cookie header string into an object
1243
- * The object has the various cookies as keys(names) => values
1244
- *
1245
- * @param {string} str
1246
- * @param {object} [options]
1247
- * @return {object}
1248
- * @public
1249
- */
1250
-
1251
- function parse(str, options) {
1252
- if (typeof str !== 'string') {
1253
- throw new TypeError('argument str must be a string');
1254
- }
1255
-
1256
- var obj = {};
1257
- var opt = options || {};
1258
- var pairs = str.split(pairSplitRegExp);
1259
- var dec = opt.decode || decode;
1260
-
1261
- for (var i = 0; i < pairs.length; i++) {
1262
- var pair = pairs[i];
1263
- var eq_idx = pair.indexOf('=');
1264
-
1265
- // skip things that don't look like key=value
1266
- if (eq_idx < 0) {
1267
- continue;
1268
- }
1269
-
1270
- var key = pair.substr(0, eq_idx).trim();
1271
- var val = pair.substr(++eq_idx, pair.length).trim();
1272
-
1273
- // quoted values
1274
- if ('"' == val[0]) {
1275
- val = val.slice(1, -1);
1276
- }
1277
-
1278
- // only assign once
1279
- if (undefined == obj[key]) {
1280
- obj[key] = tryDecode(val, dec);
1281
- }
1282
- }
1283
-
1284
- return obj;
1285
- }
1286
-
1287
- /**
1288
- * Serialize data into a cookie header.
1289
- *
1290
- * Serialize the a name value pair into a cookie string suitable for
1291
- * http headers. An optional options object specified cookie parameters.
1292
- *
1293
- * serialize('foo', 'bar', { httpOnly: true })
1294
- * => "foo=bar; httpOnly"
1295
- *
1296
- * @param {string} name
1297
- * @param {string} val
1298
- * @param {object} [options]
1299
- * @return {string}
1300
- * @public
1301
- */
1302
-
1303
- function serialize(name, val, options) {
1304
- var opt = options || {};
1305
- var enc = opt.encode || encode;
1306
-
1307
- if (typeof enc !== 'function') {
1308
- throw new TypeError('option encode is invalid');
1309
- }
1310
-
1311
- if (!fieldContentRegExp.test(name)) {
1312
- throw new TypeError('argument name is invalid');
1313
- }
1314
-
1315
- var value = enc(val);
1316
-
1317
- if (value && !fieldContentRegExp.test(value)) {
1318
- throw new TypeError('argument val is invalid');
1319
- }
1320
-
1321
- var str = name + '=' + value;
1322
-
1323
- if (null != opt.maxAge) {
1324
- var maxAge = opt.maxAge - 0;
1325
-
1326
- if (isNaN(maxAge) || !isFinite(maxAge)) {
1327
- throw new TypeError('option maxAge is invalid')
1328
- }
1329
-
1330
- str += '; Max-Age=' + Math.floor(maxAge);
1331
- }
1332
-
1333
- if (opt.domain) {
1334
- if (!fieldContentRegExp.test(opt.domain)) {
1335
- throw new TypeError('option domain is invalid');
1336
- }
1337
-
1338
- str += '; Domain=' + opt.domain;
1339
- }
1340
-
1341
- if (opt.path) {
1342
- if (!fieldContentRegExp.test(opt.path)) {
1343
- throw new TypeError('option path is invalid');
1344
- }
1345
-
1346
- str += '; Path=' + opt.path;
1347
- }
1348
-
1349
- if (opt.expires) {
1350
- if (typeof opt.expires.toUTCString !== 'function') {
1351
- throw new TypeError('option expires is invalid');
1352
- }
1353
-
1354
- str += '; Expires=' + opt.expires.toUTCString();
1355
- }
1356
-
1357
- if (opt.httpOnly) {
1358
- str += '; HttpOnly';
1359
- }
1360
-
1361
- if (opt.secure) {
1362
- str += '; Secure';
1363
- }
1364
-
1365
- if (opt.sameSite) {
1366
- var sameSite = typeof opt.sameSite === 'string'
1367
- ? opt.sameSite.toLowerCase() : opt.sameSite;
1368
-
1369
- switch (sameSite) {
1370
- case true:
1371
- str += '; SameSite=Strict';
1372
- break;
1373
- case 'lax':
1374
- str += '; SameSite=Lax';
1375
- break;
1376
- case 'strict':
1377
- str += '; SameSite=Strict';
1378
- break;
1379
- case 'none':
1380
- str += '; SameSite=None';
1381
- break;
1382
- default:
1383
- throw new TypeError('option sameSite is invalid');
1384
- }
1385
- }
1386
-
1387
- return str;
1388
- }
1389
-
1390
- /**
1391
- * Try decoding a string using a decoding function.
1392
- *
1393
- * @param {string} str
1394
- * @param {function} decode
1395
- * @private
1396
- */
1397
-
1398
- function tryDecode(str, decode) {
1399
- try {
1400
- return decode(str);
1401
- } catch (e) {
1402
- return str;
1403
- }
1404
- }
1405
-
1406
1206
  var TOKEN_NAME = 'token';
1407
1207
  var MAX_AGE = 60 * 60 * 8; // 8 hours
1408
1208
 
@@ -1513,10 +1313,10 @@ var iron = /*#__PURE__*/Object.freeze({
1513
1313
  getSession: getSession
1514
1314
  });
1515
1315
 
1516
- var toStr = Object.prototype.toString;
1316
+ var toStr$5 = Object.prototype.toString;
1517
1317
 
1518
1318
  var isArguments = function isArguments(value) {
1519
- var str = toStr.call(value);
1319
+ var str = toStr$5.call(value);
1520
1320
  var isArgs = str === '[object Arguments]';
1521
1321
  if (!isArgs) {
1522
1322
  isArgs = str !== '[object Array]' &&
@@ -1524,16 +1324,16 @@ var isArguments = function isArguments(value) {
1524
1324
  typeof value === 'object' &&
1525
1325
  typeof value.length === 'number' &&
1526
1326
  value.length >= 0 &&
1527
- toStr.call(value.callee) === '[object Function]';
1327
+ toStr$5.call(value.callee) === '[object Function]';
1528
1328
  }
1529
1329
  return isArgs;
1530
1330
  };
1531
1331
 
1532
- var keysShim;
1332
+ var keysShim$1;
1533
1333
  if (!Object.keys) {
1534
1334
  // modified from https://github.com/es-shims/es5-shim
1535
- var has = Object.prototype.hasOwnProperty;
1536
- var toStr$1 = Object.prototype.toString;
1335
+ var has$1 = Object.prototype.hasOwnProperty;
1336
+ var toStr$4 = Object.prototype.toString;
1537
1337
  var isArgs = isArguments; // eslint-disable-line global-require
1538
1338
  var isEnumerable = Object.prototype.propertyIsEnumerable;
1539
1339
  var hasDontEnumBug = !isEnumerable.call({ toString: null }, 'toString');
@@ -1581,7 +1381,7 @@ if (!Object.keys) {
1581
1381
  if (typeof window === 'undefined') { return false; }
1582
1382
  for (var k in window) {
1583
1383
  try {
1584
- if (!excludedKeys['$' + k] && has.call(window, k) && window[k] !== null && typeof window[k] === 'object') {
1384
+ if (!excludedKeys['$' + k] && has$1.call(window, k) && window[k] !== null && typeof window[k] === 'object') {
1585
1385
  try {
1586
1386
  equalsConstructorPrototype(window[k]);
1587
1387
  } catch (e) {
@@ -1606,11 +1406,11 @@ if (!Object.keys) {
1606
1406
  }
1607
1407
  };
1608
1408
 
1609
- keysShim = function keys(object) {
1409
+ keysShim$1 = function keys(object) {
1610
1410
  var isObject = object !== null && typeof object === 'object';
1611
- var isFunction = toStr$1.call(object) === '[object Function]';
1411
+ var isFunction = toStr$4.call(object) === '[object Function]';
1612
1412
  var isArguments = isArgs(object);
1613
- var isString = isObject && toStr$1.call(object) === '[object String]';
1413
+ var isString = isObject && toStr$4.call(object) === '[object String]';
1614
1414
  var theKeys = [];
1615
1415
 
1616
1416
  if (!isObject && !isFunction && !isArguments) {
@@ -1618,7 +1418,7 @@ if (!Object.keys) {
1618
1418
  }
1619
1419
 
1620
1420
  var skipProto = hasProtoEnumBug && isFunction;
1621
- if (isString && object.length > 0 && !has.call(object, 0)) {
1421
+ if (isString && object.length > 0 && !has$1.call(object, 0)) {
1622
1422
  for (var i = 0; i < object.length; ++i) {
1623
1423
  theKeys.push(String(i));
1624
1424
  }
@@ -1630,7 +1430,7 @@ if (!Object.keys) {
1630
1430
  }
1631
1431
  } else {
1632
1432
  for (var name in object) {
1633
- if (!(skipProto && name === 'prototype') && has.call(object, name)) {
1433
+ if (!(skipProto && name === 'prototype') && has$1.call(object, name)) {
1634
1434
  theKeys.push(String(name));
1635
1435
  }
1636
1436
  }
@@ -1640,7 +1440,7 @@ if (!Object.keys) {
1640
1440
  var skipConstructor = equalsConstructorPrototypeIfNotBuggy(object);
1641
1441
 
1642
1442
  for (var k = 0; k < dontEnums.length; ++k) {
1643
- if (!(skipConstructor && dontEnums[k] === 'constructor') && has.call(object, dontEnums[k])) {
1443
+ if (!(skipConstructor && dontEnums[k] === 'constructor') && has$1.call(object, dontEnums[k])) {
1644
1444
  theKeys.push(dontEnums[k]);
1645
1445
  }
1646
1446
  }
@@ -1648,17 +1448,17 @@ if (!Object.keys) {
1648
1448
  return theKeys;
1649
1449
  };
1650
1450
  }
1651
- var implementation = keysShim;
1451
+ var implementation$3 = keysShim$1;
1652
1452
 
1653
- var slice = Array.prototype.slice;
1453
+ var slice$1 = Array.prototype.slice;
1654
1454
 
1655
1455
 
1656
1456
  var origKeys = Object.keys;
1657
- var keysShim$1 = origKeys ? function keys(o) { return origKeys(o); } : implementation;
1457
+ var keysShim = origKeys ? function keys(o) { return origKeys(o); } : implementation$3;
1658
1458
 
1659
1459
  var originalKeys = Object.keys;
1660
1460
 
1661
- keysShim$1.shim = function shimObjectKeys() {
1461
+ keysShim.shim = function shimObjectKeys() {
1662
1462
  if (Object.keys) {
1663
1463
  var keysWorksWithArguments = (function () {
1664
1464
  // Safari 5.0 bug
@@ -1668,27 +1468,27 @@ keysShim$1.shim = function shimObjectKeys() {
1668
1468
  if (!keysWorksWithArguments) {
1669
1469
  Object.keys = function keys(object) { // eslint-disable-line func-name-matching
1670
1470
  if (isArguments(object)) {
1671
- return originalKeys(slice.call(object));
1471
+ return originalKeys(slice$1.call(object));
1672
1472
  }
1673
1473
  return originalKeys(object);
1674
1474
  };
1675
1475
  }
1676
1476
  } else {
1677
- Object.keys = keysShim$1;
1477
+ Object.keys = keysShim;
1678
1478
  }
1679
- return Object.keys || keysShim$1;
1479
+ return Object.keys || keysShim;
1680
1480
  };
1681
1481
 
1682
- var objectKeys = keysShim$1;
1482
+ var objectKeys = keysShim;
1683
1483
 
1684
- var hasSymbols = typeof Symbol === 'function' && typeof Symbol('foo') === 'symbol';
1484
+ var hasSymbols$4 = typeof Symbol === 'function' && typeof Symbol('foo') === 'symbol';
1685
1485
 
1686
- var toStr$2 = Object.prototype.toString;
1486
+ var toStr$3 = Object.prototype.toString;
1687
1487
  var concat = Array.prototype.concat;
1688
1488
  var origDefineProperty = Object.defineProperty;
1689
1489
 
1690
1490
  var isFunction = function (fn) {
1691
- return typeof fn === 'function' && toStr$2.call(fn) === '[object Function]';
1491
+ return typeof fn === 'function' && toStr$3.call(fn) === '[object Function]';
1692
1492
  };
1693
1493
 
1694
1494
  var arePropertyDescriptorsSupported = function () {
@@ -1725,7 +1525,7 @@ var defineProperty = function (object, name, value, predicate) {
1725
1525
  var defineProperties = function (object, map) {
1726
1526
  var predicates = arguments.length > 2 ? arguments[2] : {};
1727
1527
  var props = objectKeys(map);
1728
- if (hasSymbols) {
1528
+ if (hasSymbols$4) {
1729
1529
  props = concat.call(props, Object.getOwnPropertySymbols(map));
1730
1530
  }
1731
1531
  for (var i = 0; i < props.length; i += 1) {
@@ -1737,6 +1537,59 @@ defineProperties.supportsDescriptors = !!supportsDescriptors;
1737
1537
 
1738
1538
  var defineProperties_1 = defineProperties;
1739
1539
 
1540
+ /* eslint no-invalid-this: 1 */
1541
+
1542
+ var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
1543
+ var slice = Array.prototype.slice;
1544
+ var toStr$2 = Object.prototype.toString;
1545
+ var funcType = '[object Function]';
1546
+
1547
+ var implementation$2 = function bind(that) {
1548
+ var target = this;
1549
+ if (typeof target !== 'function' || toStr$2.call(target) !== funcType) {
1550
+ throw new TypeError(ERROR_MESSAGE + target);
1551
+ }
1552
+ var args = slice.call(arguments, 1);
1553
+
1554
+ var bound;
1555
+ var binder = function () {
1556
+ if (this instanceof bound) {
1557
+ var result = target.apply(
1558
+ this,
1559
+ args.concat(slice.call(arguments))
1560
+ );
1561
+ if (Object(result) === result) {
1562
+ return result;
1563
+ }
1564
+ return this;
1565
+ } else {
1566
+ return target.apply(
1567
+ that,
1568
+ args.concat(slice.call(arguments))
1569
+ );
1570
+ }
1571
+ };
1572
+
1573
+ var boundLength = Math.max(0, target.length - args.length);
1574
+ var boundArgs = [];
1575
+ for (var i = 0; i < boundLength; i++) {
1576
+ boundArgs.push('$' + i);
1577
+ }
1578
+
1579
+ bound = Function('binder', 'return function (' + boundArgs.join(',') + '){ return binder.apply(this,arguments); }')(binder);
1580
+
1581
+ if (target.prototype) {
1582
+ var Empty = function Empty() {};
1583
+ Empty.prototype = target.prototype;
1584
+ bound.prototype = new Empty();
1585
+ Empty.prototype = null;
1586
+ }
1587
+
1588
+ return bound;
1589
+ };
1590
+
1591
+ var functionBind = Function.prototype.bind || implementation$2;
1592
+
1740
1593
  /* eslint complexity: [2, 18], max-statements: [2, 33] */
1741
1594
  var shams = function hasSymbols() {
1742
1595
  if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
@@ -1760,7 +1613,7 @@ var shams = function hasSymbols() {
1760
1613
 
1761
1614
  var symVal = 42;
1762
1615
  obj[sym] = symVal;
1763
- for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax
1616
+ for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
1764
1617
  if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
1765
1618
 
1766
1619
  if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
@@ -1778,10 +1631,10 @@ var shams = function hasSymbols() {
1778
1631
  return true;
1779
1632
  };
1780
1633
 
1781
- var origSymbol = commonjsGlobal.Symbol;
1634
+ var origSymbol = typeof Symbol !== 'undefined' && Symbol;
1782
1635
 
1783
1636
 
1784
- var hasSymbols$1 = function hasNativeSymbols() {
1637
+ var hasSymbols$3 = function hasNativeSymbols() {
1785
1638
  if (typeof origSymbol !== 'function') { return false; }
1786
1639
  if (typeof Symbol !== 'function') { return false; }
1787
1640
  if (typeof origSymbol('foo') !== 'symbol') { return false; }
@@ -1790,79 +1643,34 @@ var hasSymbols$1 = function hasNativeSymbols() {
1790
1643
  return shams();
1791
1644
  };
1792
1645
 
1793
- /* eslint no-invalid-this: 1 */
1794
-
1795
- var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
1796
- var slice$1 = Array.prototype.slice;
1797
- var toStr$3 = Object.prototype.toString;
1798
- var funcType = '[object Function]';
1799
-
1800
- var implementation$1 = function bind(that) {
1801
- var target = this;
1802
- if (typeof target !== 'function' || toStr$3.call(target) !== funcType) {
1803
- throw new TypeError(ERROR_MESSAGE + target);
1804
- }
1805
- var args = slice$1.call(arguments, 1);
1806
-
1807
- var bound;
1808
- var binder = function () {
1809
- if (this instanceof bound) {
1810
- var result = target.apply(
1811
- this,
1812
- args.concat(slice$1.call(arguments))
1813
- );
1814
- if (Object(result) === result) {
1815
- return result;
1816
- }
1817
- return this;
1818
- } else {
1819
- return target.apply(
1820
- that,
1821
- args.concat(slice$1.call(arguments))
1822
- );
1823
- }
1824
- };
1646
+ var src = functionBind.call(Function.call, Object.prototype.hasOwnProperty);
1825
1647
 
1826
- var boundLength = Math.max(0, target.length - args.length);
1827
- var boundArgs = [];
1828
- for (var i = 0; i < boundLength; i++) {
1829
- boundArgs.push('$' + i);
1830
- }
1648
+ var undefined$1;
1831
1649
 
1832
- bound = Function('binder', 'return function (' + boundArgs.join(',') + '){ return binder.apply(this,arguments); }')(binder);
1650
+ var $SyntaxError$1 = SyntaxError;
1651
+ var $Function = Function;
1652
+ var $TypeError$5 = TypeError;
1833
1653
 
1834
- if (target.prototype) {
1835
- var Empty = function Empty() {};
1836
- Empty.prototype = target.prototype;
1837
- bound.prototype = new Empty();
1838
- Empty.prototype = null;
1839
- }
1840
-
1841
- return bound;
1654
+ // eslint-disable-next-line consistent-return
1655
+ var getEvalledConstructor = function (expressionSyntax) {
1656
+ try {
1657
+ return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
1658
+ } catch (e) {}
1842
1659
  };
1843
1660
 
1844
- var functionBind = Function.prototype.bind || implementation$1;
1845
-
1846
- /* globals
1847
- Atomics,
1848
- SharedArrayBuffer,
1849
- */
1850
-
1851
- var undefined$1;
1852
-
1853
- var $TypeError = TypeError;
1854
-
1855
- var $gOPD = Object.getOwnPropertyDescriptor;
1856
- if ($gOPD) {
1661
+ var $gOPD$2 = Object.getOwnPropertyDescriptor;
1662
+ if ($gOPD$2) {
1857
1663
  try {
1858
- $gOPD({}, '');
1664
+ $gOPD$2({}, '');
1859
1665
  } catch (e) {
1860
- $gOPD = null; // this is IE 8, which has a broken gOPD
1666
+ $gOPD$2 = null; // this is IE 8, which has a broken gOPD
1861
1667
  }
1862
1668
  }
1863
1669
 
1864
- var throwTypeError = function () { throw new $TypeError(); };
1865
- var ThrowTypeError = $gOPD
1670
+ var throwTypeError = function () {
1671
+ throw new $TypeError$5();
1672
+ };
1673
+ var ThrowTypeError = $gOPD$2
1866
1674
  ? (function () {
1867
1675
  try {
1868
1676
  // eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
@@ -1871,7 +1679,7 @@ var ThrowTypeError = $gOPD
1871
1679
  } catch (calleeThrows) {
1872
1680
  try {
1873
1681
  // IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
1874
- return $gOPD(arguments, 'callee').get;
1682
+ return $gOPD$2(arguments, 'callee').get;
1875
1683
  } catch (gOPDthrows) {
1876
1684
  return throwTypeError;
1877
1685
  }
@@ -1879,206 +1687,354 @@ var ThrowTypeError = $gOPD
1879
1687
  }())
1880
1688
  : throwTypeError;
1881
1689
 
1882
- var hasSymbols$2 = hasSymbols$1();
1690
+ var hasSymbols$2 = hasSymbols$3();
1883
1691
 
1884
1692
  var getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
1885
- var generatorFunction = undefined$1;
1886
- var asyncFunction = undefined$1;
1887
- var asyncGenFunction = undefined$1;
1693
+
1694
+ var needsEval = {};
1888
1695
 
1889
1696
  var TypedArray = typeof Uint8Array === 'undefined' ? undefined$1 : getProto(Uint8Array);
1890
1697
 
1891
1698
  var INTRINSICS = {
1699
+ '%AggregateError%': typeof AggregateError === 'undefined' ? undefined$1 : AggregateError,
1892
1700
  '%Array%': Array,
1893
1701
  '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$1 : ArrayBuffer,
1894
- '%ArrayBufferPrototype%': typeof ArrayBuffer === 'undefined' ? undefined$1 : ArrayBuffer.prototype,
1895
1702
  '%ArrayIteratorPrototype%': hasSymbols$2 ? getProto([][Symbol.iterator]()) : undefined$1,
1896
- '%ArrayPrototype%': Array.prototype,
1897
- '%ArrayProto_entries%': Array.prototype.entries,
1898
- '%ArrayProto_forEach%': Array.prototype.forEach,
1899
- '%ArrayProto_keys%': Array.prototype.keys,
1900
- '%ArrayProto_values%': Array.prototype.values,
1901
1703
  '%AsyncFromSyncIteratorPrototype%': undefined$1,
1902
- '%AsyncFunction%': asyncFunction,
1903
- '%AsyncFunctionPrototype%': undefined$1,
1904
- '%AsyncGenerator%': undefined$1,
1905
- '%AsyncGeneratorFunction%': asyncGenFunction,
1906
- '%AsyncGeneratorPrototype%': undefined$1,
1907
- '%AsyncIteratorPrototype%': undefined$1,
1704
+ '%AsyncFunction%': needsEval,
1705
+ '%AsyncGenerator%': needsEval,
1706
+ '%AsyncGeneratorFunction%': needsEval,
1707
+ '%AsyncIteratorPrototype%': needsEval,
1908
1708
  '%Atomics%': typeof Atomics === 'undefined' ? undefined$1 : Atomics,
1709
+ '%BigInt%': typeof BigInt === 'undefined' ? undefined$1 : BigInt,
1909
1710
  '%Boolean%': Boolean,
1910
- '%BooleanPrototype%': Boolean.prototype,
1911
1711
  '%DataView%': typeof DataView === 'undefined' ? undefined$1 : DataView,
1912
- '%DataViewPrototype%': typeof DataView === 'undefined' ? undefined$1 : DataView.prototype,
1913
1712
  '%Date%': Date,
1914
- '%DatePrototype%': Date.prototype,
1915
1713
  '%decodeURI%': decodeURI,
1916
1714
  '%decodeURIComponent%': decodeURIComponent,
1917
1715
  '%encodeURI%': encodeURI,
1918
1716
  '%encodeURIComponent%': encodeURIComponent,
1919
1717
  '%Error%': Error,
1920
- '%ErrorPrototype%': Error.prototype,
1921
1718
  '%eval%': eval, // eslint-disable-line no-eval
1922
1719
  '%EvalError%': EvalError,
1923
- '%EvalErrorPrototype%': EvalError.prototype,
1924
1720
  '%Float32Array%': typeof Float32Array === 'undefined' ? undefined$1 : Float32Array,
1925
- '%Float32ArrayPrototype%': typeof Float32Array === 'undefined' ? undefined$1 : Float32Array.prototype,
1926
1721
  '%Float64Array%': typeof Float64Array === 'undefined' ? undefined$1 : Float64Array,
1927
- '%Float64ArrayPrototype%': typeof Float64Array === 'undefined' ? undefined$1 : Float64Array.prototype,
1928
- '%Function%': Function,
1929
- '%FunctionPrototype%': Function.prototype,
1930
- '%Generator%': undefined$1,
1931
- '%GeneratorFunction%': generatorFunction,
1932
- '%GeneratorPrototype%': undefined$1,
1722
+ '%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined$1 : FinalizationRegistry,
1723
+ '%Function%': $Function,
1724
+ '%GeneratorFunction%': needsEval,
1933
1725
  '%Int8Array%': typeof Int8Array === 'undefined' ? undefined$1 : Int8Array,
1934
- '%Int8ArrayPrototype%': typeof Int8Array === 'undefined' ? undefined$1 : Int8Array.prototype,
1935
1726
  '%Int16Array%': typeof Int16Array === 'undefined' ? undefined$1 : Int16Array,
1936
- '%Int16ArrayPrototype%': typeof Int16Array === 'undefined' ? undefined$1 : Int8Array.prototype,
1937
1727
  '%Int32Array%': typeof Int32Array === 'undefined' ? undefined$1 : Int32Array,
1938
- '%Int32ArrayPrototype%': typeof Int32Array === 'undefined' ? undefined$1 : Int32Array.prototype,
1939
1728
  '%isFinite%': isFinite,
1940
1729
  '%isNaN%': isNaN,
1941
1730
  '%IteratorPrototype%': hasSymbols$2 ? getProto(getProto([][Symbol.iterator]())) : undefined$1,
1942
1731
  '%JSON%': typeof JSON === 'object' ? JSON : undefined$1,
1943
- '%JSONParse%': typeof JSON === 'object' ? JSON.parse : undefined$1,
1944
1732
  '%Map%': typeof Map === 'undefined' ? undefined$1 : Map,
1945
1733
  '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$2 ? undefined$1 : getProto(new Map()[Symbol.iterator]()),
1946
- '%MapPrototype%': typeof Map === 'undefined' ? undefined$1 : Map.prototype,
1947
1734
  '%Math%': Math,
1948
1735
  '%Number%': Number,
1949
- '%NumberPrototype%': Number.prototype,
1950
1736
  '%Object%': Object,
1951
- '%ObjectPrototype%': Object.prototype,
1952
- '%ObjProto_toString%': Object.prototype.toString,
1953
- '%ObjProto_valueOf%': Object.prototype.valueOf,
1954
1737
  '%parseFloat%': parseFloat,
1955
1738
  '%parseInt%': parseInt,
1956
1739
  '%Promise%': typeof Promise === 'undefined' ? undefined$1 : Promise,
1957
- '%PromisePrototype%': typeof Promise === 'undefined' ? undefined$1 : Promise.prototype,
1958
- '%PromiseProto_then%': typeof Promise === 'undefined' ? undefined$1 : Promise.prototype.then,
1959
- '%Promise_all%': typeof Promise === 'undefined' ? undefined$1 : Promise.all,
1960
- '%Promise_reject%': typeof Promise === 'undefined' ? undefined$1 : Promise.reject,
1961
- '%Promise_resolve%': typeof Promise === 'undefined' ? undefined$1 : Promise.resolve,
1962
1740
  '%Proxy%': typeof Proxy === 'undefined' ? undefined$1 : Proxy,
1963
1741
  '%RangeError%': RangeError,
1964
- '%RangeErrorPrototype%': RangeError.prototype,
1965
1742
  '%ReferenceError%': ReferenceError,
1966
- '%ReferenceErrorPrototype%': ReferenceError.prototype,
1967
1743
  '%Reflect%': typeof Reflect === 'undefined' ? undefined$1 : Reflect,
1968
1744
  '%RegExp%': RegExp,
1969
- '%RegExpPrototype%': RegExp.prototype,
1970
1745
  '%Set%': typeof Set === 'undefined' ? undefined$1 : Set,
1971
1746
  '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$2 ? undefined$1 : getProto(new Set()[Symbol.iterator]()),
1972
- '%SetPrototype%': typeof Set === 'undefined' ? undefined$1 : Set.prototype,
1973
1747
  '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$1 : SharedArrayBuffer,
1974
- '%SharedArrayBufferPrototype%': typeof SharedArrayBuffer === 'undefined' ? undefined$1 : SharedArrayBuffer.prototype,
1975
1748
  '%String%': String,
1976
1749
  '%StringIteratorPrototype%': hasSymbols$2 ? getProto(''[Symbol.iterator]()) : undefined$1,
1977
- '%StringPrototype%': String.prototype,
1978
1750
  '%Symbol%': hasSymbols$2 ? Symbol : undefined$1,
1979
- '%SymbolPrototype%': hasSymbols$2 ? Symbol.prototype : undefined$1,
1980
- '%SyntaxError%': SyntaxError,
1981
- '%SyntaxErrorPrototype%': SyntaxError.prototype,
1751
+ '%SyntaxError%': $SyntaxError$1,
1982
1752
  '%ThrowTypeError%': ThrowTypeError,
1983
1753
  '%TypedArray%': TypedArray,
1984
- '%TypedArrayPrototype%': TypedArray ? TypedArray.prototype : undefined$1,
1985
- '%TypeError%': $TypeError,
1986
- '%TypeErrorPrototype%': $TypeError.prototype,
1754
+ '%TypeError%': $TypeError$5,
1987
1755
  '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$1 : Uint8Array,
1988
- '%Uint8ArrayPrototype%': typeof Uint8Array === 'undefined' ? undefined$1 : Uint8Array.prototype,
1989
1756
  '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$1 : Uint8ClampedArray,
1990
- '%Uint8ClampedArrayPrototype%': typeof Uint8ClampedArray === 'undefined' ? undefined$1 : Uint8ClampedArray.prototype,
1991
1757
  '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$1 : Uint16Array,
1992
- '%Uint16ArrayPrototype%': typeof Uint16Array === 'undefined' ? undefined$1 : Uint16Array.prototype,
1993
1758
  '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined$1 : Uint32Array,
1994
- '%Uint32ArrayPrototype%': typeof Uint32Array === 'undefined' ? undefined$1 : Uint32Array.prototype,
1995
1759
  '%URIError%': URIError,
1996
- '%URIErrorPrototype%': URIError.prototype,
1997
1760
  '%WeakMap%': typeof WeakMap === 'undefined' ? undefined$1 : WeakMap,
1998
- '%WeakMapPrototype%': typeof WeakMap === 'undefined' ? undefined$1 : WeakMap.prototype,
1999
- '%WeakSet%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet,
2000
- '%WeakSetPrototype%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet.prototype
1761
+ '%WeakRef%': typeof WeakRef === 'undefined' ? undefined$1 : WeakRef,
1762
+ '%WeakSet%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet
1763
+ };
1764
+
1765
+ var doEval = function doEval(name) {
1766
+ var value;
1767
+ if (name === '%AsyncFunction%') {
1768
+ value = getEvalledConstructor('async function () {}');
1769
+ } else if (name === '%GeneratorFunction%') {
1770
+ value = getEvalledConstructor('function* () {}');
1771
+ } else if (name === '%AsyncGeneratorFunction%') {
1772
+ value = getEvalledConstructor('async function* () {}');
1773
+ } else if (name === '%AsyncGenerator%') {
1774
+ var fn = doEval('%AsyncGeneratorFunction%');
1775
+ if (fn) {
1776
+ value = fn.prototype;
1777
+ }
1778
+ } else if (name === '%AsyncIteratorPrototype%') {
1779
+ var gen = doEval('%AsyncGenerator%');
1780
+ if (gen) {
1781
+ value = getProto(gen.prototype);
1782
+ }
1783
+ }
1784
+
1785
+ INTRINSICS[name] = value;
1786
+
1787
+ return value;
1788
+ };
1789
+
1790
+ var LEGACY_ALIASES = {
1791
+ '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
1792
+ '%ArrayPrototype%': ['Array', 'prototype'],
1793
+ '%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
1794
+ '%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
1795
+ '%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
1796
+ '%ArrayProto_values%': ['Array', 'prototype', 'values'],
1797
+ '%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
1798
+ '%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
1799
+ '%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
1800
+ '%BooleanPrototype%': ['Boolean', 'prototype'],
1801
+ '%DataViewPrototype%': ['DataView', 'prototype'],
1802
+ '%DatePrototype%': ['Date', 'prototype'],
1803
+ '%ErrorPrototype%': ['Error', 'prototype'],
1804
+ '%EvalErrorPrototype%': ['EvalError', 'prototype'],
1805
+ '%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
1806
+ '%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
1807
+ '%FunctionPrototype%': ['Function', 'prototype'],
1808
+ '%Generator%': ['GeneratorFunction', 'prototype'],
1809
+ '%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
1810
+ '%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
1811
+ '%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
1812
+ '%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
1813
+ '%JSONParse%': ['JSON', 'parse'],
1814
+ '%JSONStringify%': ['JSON', 'stringify'],
1815
+ '%MapPrototype%': ['Map', 'prototype'],
1816
+ '%NumberPrototype%': ['Number', 'prototype'],
1817
+ '%ObjectPrototype%': ['Object', 'prototype'],
1818
+ '%ObjProto_toString%': ['Object', 'prototype', 'toString'],
1819
+ '%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
1820
+ '%PromisePrototype%': ['Promise', 'prototype'],
1821
+ '%PromiseProto_then%': ['Promise', 'prototype', 'then'],
1822
+ '%Promise_all%': ['Promise', 'all'],
1823
+ '%Promise_reject%': ['Promise', 'reject'],
1824
+ '%Promise_resolve%': ['Promise', 'resolve'],
1825
+ '%RangeErrorPrototype%': ['RangeError', 'prototype'],
1826
+ '%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
1827
+ '%RegExpPrototype%': ['RegExp', 'prototype'],
1828
+ '%SetPrototype%': ['Set', 'prototype'],
1829
+ '%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
1830
+ '%StringPrototype%': ['String', 'prototype'],
1831
+ '%SymbolPrototype%': ['Symbol', 'prototype'],
1832
+ '%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
1833
+ '%TypedArrayPrototype%': ['TypedArray', 'prototype'],
1834
+ '%TypeErrorPrototype%': ['TypeError', 'prototype'],
1835
+ '%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
1836
+ '%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
1837
+ '%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
1838
+ '%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
1839
+ '%URIErrorPrototype%': ['URIError', 'prototype'],
1840
+ '%WeakMapPrototype%': ['WeakMap', 'prototype'],
1841
+ '%WeakSetPrototype%': ['WeakSet', 'prototype']
2001
1842
  };
2002
1843
 
2003
1844
 
1845
+
1846
+ var $concat$2 = functionBind.call(Function.call, Array.prototype.concat);
1847
+ var $spliceApply = functionBind.call(Function.apply, Array.prototype.splice);
2004
1848
  var $replace = functionBind.call(Function.call, String.prototype.replace);
1849
+ var $strSlice = functionBind.call(Function.call, String.prototype.slice);
2005
1850
 
2006
1851
  /* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
2007
1852
  var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
2008
1853
  var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
2009
1854
  var stringToPath = function stringToPath(string) {
1855
+ var first = $strSlice(string, 0, 1);
1856
+ var last = $strSlice(string, -1);
1857
+ if (first === '%' && last !== '%') {
1858
+ throw new $SyntaxError$1('invalid intrinsic syntax, expected closing `%`');
1859
+ } else if (last === '%' && first !== '%') {
1860
+ throw new $SyntaxError$1('invalid intrinsic syntax, expected opening `%`');
1861
+ }
2010
1862
  var result = [];
2011
1863
  $replace(string, rePropName, function (match, number, quote, subString) {
2012
- result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : (number || match);
1864
+ result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
2013
1865
  });
2014
1866
  return result;
2015
1867
  };
2016
1868
  /* end adaptation */
2017
1869
 
2018
1870
  var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
2019
- if (!(name in INTRINSICS)) {
2020
- throw new SyntaxError('intrinsic ' + name + ' does not exist!');
1871
+ var intrinsicName = name;
1872
+ var alias;
1873
+ if (src(LEGACY_ALIASES, intrinsicName)) {
1874
+ alias = LEGACY_ALIASES[intrinsicName];
1875
+ intrinsicName = '%' + alias[0] + '%';
2021
1876
  }
2022
1877
 
2023
- // istanbul ignore if // hopefully this is impossible to test :-)
2024
- if (typeof INTRINSICS[name] === 'undefined' && !allowMissing) {
2025
- throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
1878
+ if (src(INTRINSICS, intrinsicName)) {
1879
+ var value = INTRINSICS[intrinsicName];
1880
+ if (value === needsEval) {
1881
+ value = doEval(intrinsicName);
1882
+ }
1883
+ if (typeof value === 'undefined' && !allowMissing) {
1884
+ throw new $TypeError$5('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
1885
+ }
1886
+
1887
+ return {
1888
+ alias: alias,
1889
+ name: intrinsicName,
1890
+ value: value
1891
+ };
2026
1892
  }
2027
1893
 
2028
- return INTRINSICS[name];
1894
+ throw new $SyntaxError$1('intrinsic ' + name + ' does not exist!');
2029
1895
  };
2030
1896
 
2031
- var GetIntrinsic = function GetIntrinsic(name, allowMissing) {
1897
+ var getIntrinsic = function GetIntrinsic(name, allowMissing) {
2032
1898
  if (typeof name !== 'string' || name.length === 0) {
2033
- throw new TypeError('intrinsic name must be a non-empty string');
1899
+ throw new $TypeError$5('intrinsic name must be a non-empty string');
2034
1900
  }
2035
1901
  if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
2036
- throw new TypeError('"allowMissing" argument must be a boolean');
1902
+ throw new $TypeError$5('"allowMissing" argument must be a boolean');
2037
1903
  }
2038
1904
 
2039
1905
  var parts = stringToPath(name);
1906
+ var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
1907
+
1908
+ var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
1909
+ var intrinsicRealName = intrinsic.name;
1910
+ var value = intrinsic.value;
1911
+ var skipFurtherCaching = false;
1912
+
1913
+ var alias = intrinsic.alias;
1914
+ if (alias) {
1915
+ intrinsicBaseName = alias[0];
1916
+ $spliceApply(parts, $concat$2([0, 1], alias));
1917
+ }
1918
+
1919
+ for (var i = 1, isOwn = true; i < parts.length; i += 1) {
1920
+ var part = parts[i];
1921
+ var first = $strSlice(part, 0, 1);
1922
+ var last = $strSlice(part, -1);
1923
+ if (
1924
+ (
1925
+ (first === '"' || first === "'" || first === '`')
1926
+ || (last === '"' || last === "'" || last === '`')
1927
+ )
1928
+ && first !== last
1929
+ ) {
1930
+ throw new $SyntaxError$1('property names with quotes must have matching quotes');
1931
+ }
1932
+ if (part === 'constructor' || !isOwn) {
1933
+ skipFurtherCaching = true;
1934
+ }
2040
1935
 
2041
- var value = getBaseIntrinsic('%' + (parts.length > 0 ? parts[0] : '') + '%', allowMissing);
2042
- for (var i = 1; i < parts.length; i += 1) {
2043
- if (value != null) {
2044
- if ($gOPD && (i + 1) >= parts.length) {
2045
- var desc = $gOPD(value, parts[i]);
2046
- if (!allowMissing && !(parts[i] in value)) {
2047
- throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
1936
+ intrinsicBaseName += '.' + part;
1937
+ intrinsicRealName = '%' + intrinsicBaseName + '%';
1938
+
1939
+ if (src(INTRINSICS, intrinsicRealName)) {
1940
+ value = INTRINSICS[intrinsicRealName];
1941
+ } else if (value != null) {
1942
+ if (!(part in value)) {
1943
+ if (!allowMissing) {
1944
+ throw new $TypeError$5('base intrinsic for ' + name + ' exists, but the property is not available.');
1945
+ }
1946
+ return void undefined$1;
1947
+ }
1948
+ if ($gOPD$2 && (i + 1) >= parts.length) {
1949
+ var desc = $gOPD$2(value, part);
1950
+ isOwn = !!desc;
1951
+
1952
+ // By convention, when a data property is converted to an accessor
1953
+ // property to emulate a data property that does not suffer from
1954
+ // the override mistake, that accessor's getter is marked with
1955
+ // an `originalValue` property. Here, when we detect this, we
1956
+ // uphold the illusion by pretending to see that original data
1957
+ // property, i.e., returning the value rather than the getter
1958
+ // itself.
1959
+ if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
1960
+ value = desc.get;
1961
+ } else {
1962
+ value = value[part];
2048
1963
  }
2049
- value = desc ? (desc.get || desc.value) : value[parts[i]];
2050
1964
  } else {
2051
- value = value[parts[i]];
1965
+ isOwn = src(value, part);
1966
+ value = value[part];
1967
+ }
1968
+
1969
+ if (isOwn && !skipFurtherCaching) {
1970
+ INTRINSICS[intrinsicRealName] = value;
2052
1971
  }
2053
1972
  }
2054
1973
  }
2055
1974
  return value;
2056
1975
  };
2057
1976
 
2058
- var $Function = GetIntrinsic('%Function%');
2059
- var $apply = $Function.apply;
2060
- var $call = $Function.call;
1977
+ var callBind = createCommonjsModule(function (module) {
1978
+
1979
+
1980
+
2061
1981
 
2062
- var callBind = function callBind() {
2063
- return functionBind.apply($call, arguments);
1982
+ var $apply = getIntrinsic('%Function.prototype.apply%');
1983
+ var $call = getIntrinsic('%Function.prototype.call%');
1984
+ var $reflectApply = getIntrinsic('%Reflect.apply%', true) || functionBind.call($call, $apply);
1985
+
1986
+ var $gOPD = getIntrinsic('%Object.getOwnPropertyDescriptor%', true);
1987
+ var $defineProperty = getIntrinsic('%Object.defineProperty%', true);
1988
+ var $max = getIntrinsic('%Math.max%');
1989
+
1990
+ if ($defineProperty) {
1991
+ try {
1992
+ $defineProperty({}, 'a', { value: 1 });
1993
+ } catch (e) {
1994
+ // IE 8 has a broken defineProperty
1995
+ $defineProperty = null;
1996
+ }
1997
+ }
1998
+
1999
+ module.exports = function callBind(originalFunction) {
2000
+ var func = $reflectApply(functionBind, $call, arguments);
2001
+ if ($gOPD && $defineProperty) {
2002
+ var desc = $gOPD(func, 'length');
2003
+ if (desc.configurable) {
2004
+ // original length, plus the receiver, minus any additional arguments (after the receiver)
2005
+ $defineProperty(
2006
+ func,
2007
+ 'length',
2008
+ { value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }
2009
+ );
2010
+ }
2011
+ }
2012
+ return func;
2064
2013
  };
2065
2014
 
2066
- var apply = function applyBind() {
2067
- return functionBind.apply($apply, arguments);
2015
+ var applyBind = function applyBind() {
2016
+ return $reflectApply(functionBind, $apply, arguments);
2068
2017
  };
2069
- callBind.apply = apply;
2070
2018
 
2071
- var $indexOf = callBind(GetIntrinsic('String.prototype.indexOf'));
2019
+ if ($defineProperty) {
2020
+ $defineProperty(module.exports, 'apply', { value: applyBind });
2021
+ } else {
2022
+ module.exports.apply = applyBind;
2023
+ }
2024
+ });
2025
+ callBind.apply;
2026
+
2027
+ var $indexOf = callBind(getIntrinsic('String.prototype.indexOf'));
2072
2028
 
2073
- var callBound = function callBoundIntrinsic(name, allowMissing) {
2074
- var intrinsic = GetIntrinsic(name, !!allowMissing);
2075
- if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.')) {
2029
+ var callBound$1 = function callBoundIntrinsic(name, allowMissing) {
2030
+ var intrinsic = getIntrinsic(name, !!allowMissing);
2031
+ if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
2076
2032
  return callBind(intrinsic);
2077
2033
  }
2078
2034
  return intrinsic;
2079
2035
  };
2080
2036
 
2081
- var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
2037
+ var $defineProperty = getIntrinsic('%Object.defineProperty%', true);
2082
2038
 
2083
2039
  if ($defineProperty) {
2084
2040
  try {
@@ -2091,7 +2047,7 @@ if ($defineProperty) {
2091
2047
 
2092
2048
 
2093
2049
 
2094
- var $isEnumerable = callBound('Object.prototype.propertyIsEnumerable');
2050
+ var $isEnumerable$1 = callBound$1('Object.prototype.propertyIsEnumerable');
2095
2051
 
2096
2052
  // eslint-disable-next-line max-params
2097
2053
  var DefineOwnProperty = function DefineOwnProperty(IsDataDescriptor, SameValue, FromPropertyDescriptor, O, P, desc) {
@@ -2105,7 +2061,7 @@ var DefineOwnProperty = function DefineOwnProperty(IsDataDescriptor, SameValue,
2105
2061
  }
2106
2062
 
2107
2063
  // fallback for ES3
2108
- if (P in O && $isEnumerable(O, P) !== !!desc['[[Enumerable]]']) {
2064
+ if (P in O && $isEnumerable$1(O, P) !== !!desc['[[Enumerable]]']) {
2109
2065
  // a non-enumerable existing property
2110
2066
  return false;
2111
2067
  }
@@ -2120,15 +2076,13 @@ var DefineOwnProperty = function DefineOwnProperty(IsDataDescriptor, SameValue,
2120
2076
  return true;
2121
2077
  };
2122
2078
 
2123
- var src = functionBind.call(Function.call, Object.prototype.hasOwnProperty);
2124
-
2125
- var $TypeError$1 = GetIntrinsic('%TypeError%');
2126
- var $SyntaxError = GetIntrinsic('%SyntaxError%');
2079
+ var $TypeError$4 = getIntrinsic('%TypeError%');
2080
+ var $SyntaxError = getIntrinsic('%SyntaxError%');
2127
2081
 
2128
2082
 
2129
2083
 
2130
2084
  var predicates = {
2131
- // https://ecma-international.org/ecma-262/6.0/#sec-property-descriptor-specification-type
2085
+ // https://262.ecma-international.org/6.0/#sec-property-descriptor-specification-type
2132
2086
  'Property Descriptor': function isPropertyDescriptor(Type, Desc) {
2133
2087
  if (Type(Desc) !== 'Object') {
2134
2088
  return false;
@@ -2151,7 +2105,7 @@ var predicates = {
2151
2105
  var isData = src(Desc, '[[Value]]');
2152
2106
  var IsAccessor = src(Desc, '[[Get]]') || src(Desc, '[[Set]]');
2153
2107
  if (isData && IsAccessor) {
2154
- throw new $TypeError$1('Property Descriptors may not be both accessor and data descriptors');
2108
+ throw new $TypeError$4('Property Descriptors may not be both accessor and data descriptors');
2155
2109
  }
2156
2110
  return true;
2157
2111
  }
@@ -2163,13 +2117,13 @@ var assertRecord = function assertRecord(Type, recordType, argumentName, value)
2163
2117
  throw new $SyntaxError('unknown record type: ' + recordType);
2164
2118
  }
2165
2119
  if (!predicate(Type, value)) {
2166
- throw new $TypeError$1(argumentName + ' must be a ' + recordType);
2120
+ throw new $TypeError$4(argumentName + ' must be a ' + recordType);
2167
2121
  }
2168
2122
  };
2169
2123
 
2170
- // https://www.ecma-international.org/ecma-262/5.1/#sec-8
2124
+ // https://262.ecma-international.org/5.1/#sec-8
2171
2125
 
2172
- var Type = function Type(x) {
2126
+ var Type$1 = function Type(x) {
2173
2127
  if (x === null) {
2174
2128
  return 'Null';
2175
2129
  }
@@ -2190,23 +2144,26 @@ var Type = function Type(x) {
2190
2144
  }
2191
2145
  };
2192
2146
 
2193
- // https://www.ecma-international.org/ecma-262/6.0/#sec-tostring
2147
+ // https://262.ecma-international.org/11.0/#sec-ecmascript-data-types-and-values
2194
2148
 
2195
- var Type$1 = function Type$1(x) {
2149
+ var Type = function Type(x) {
2196
2150
  if (typeof x === 'symbol') {
2197
2151
  return 'Symbol';
2198
2152
  }
2199
- return Type(x);
2153
+ if (typeof x === 'bigint') {
2154
+ return 'BigInt';
2155
+ }
2156
+ return Type$1(x);
2200
2157
  };
2201
2158
 
2202
- // https://www.ecma-international.org/ecma-262/6.0/#sec-frompropertydescriptor
2159
+ // https://ecma-international.org/ecma-262/6.0/#sec-frompropertydescriptor
2203
2160
 
2204
2161
  var FromPropertyDescriptor = function FromPropertyDescriptor(Desc) {
2205
2162
  if (typeof Desc === 'undefined') {
2206
2163
  return Desc;
2207
2164
  }
2208
2165
 
2209
- assertRecord(Type$1, 'Property Descriptor', 'Desc', Desc);
2166
+ assertRecord(Type, 'Property Descriptor', 'Desc', Desc);
2210
2167
 
2211
2168
  var obj = {};
2212
2169
  if ('[[Value]]' in Desc) {
@@ -2230,7 +2187,7 @@ var FromPropertyDescriptor = function FromPropertyDescriptor(Desc) {
2230
2187
  return obj;
2231
2188
  };
2232
2189
 
2233
- var $gOPD$1 = GetIntrinsic('%Object.getOwnPropertyDescriptor%');
2190
+ var $gOPD$1 = getIntrinsic('%Object.getOwnPropertyDescriptor%');
2234
2191
  if ($gOPD$1) {
2235
2192
  try {
2236
2193
  $gOPD$1([], 'length');
@@ -2242,65 +2199,85 @@ if ($gOPD$1) {
2242
2199
 
2243
2200
  var getOwnPropertyDescriptor = $gOPD$1;
2244
2201
 
2245
- var $Array = GetIntrinsic('%Array%');
2202
+ var $Array = getIntrinsic('%Array%');
2246
2203
 
2247
2204
  // eslint-disable-next-line global-require
2248
- var toStr$4 = !$Array.isArray && callBound('Object.prototype.toString');
2205
+ var toStr$1 = !$Array.isArray && callBound$1('Object.prototype.toString');
2249
2206
 
2250
- // https://www.ecma-international.org/ecma-262/6.0/#sec-isarray
2207
+ // https://ecma-international.org/ecma-262/6.0/#sec-isarray
2251
2208
 
2252
2209
  var IsArray = $Array.isArray || function IsArray(argument) {
2253
- return toStr$4(argument) === '[object Array]';
2210
+ return toStr$1(argument) === '[object Array]';
2254
2211
  };
2255
2212
 
2256
- // https://www.ecma-international.org/ecma-262/6.0/#sec-ispropertykey
2213
+ // https://ecma-international.org/ecma-262/6.0/#sec-ispropertykey
2257
2214
 
2258
2215
  var IsPropertyKey = function IsPropertyKey(argument) {
2259
2216
  return typeof argument === 'string' || typeof argument === 'symbol';
2260
2217
  };
2261
2218
 
2262
- var regexExec = RegExp.prototype.exec;
2263
- var gOPD = Object.getOwnPropertyDescriptor;
2219
+ var hasSymbols$1 = hasSymbols$3();
2220
+ var hasToStringTag$1 = hasSymbols$1 && typeof Symbol.toStringTag === 'symbol';
2221
+ var has;
2222
+ var $exec;
2223
+ var isRegexMarker;
2224
+ var badStringifier;
2264
2225
 
2265
- var tryRegexExecCall = function tryRegexExec(value) {
2266
- try {
2267
- var lastIndex = value.lastIndex;
2268
- value.lastIndex = 0; // eslint-disable-line no-param-reassign
2226
+ if (hasToStringTag$1) {
2227
+ has = callBound$1('Object.prototype.hasOwnProperty');
2228
+ $exec = callBound$1('RegExp.prototype.exec');
2229
+ isRegexMarker = {};
2269
2230
 
2270
- regexExec.call(value);
2271
- return true;
2272
- } catch (e) {
2273
- return false;
2274
- } finally {
2275
- value.lastIndex = lastIndex; // eslint-disable-line no-param-reassign
2231
+ var throwRegexMarker = function () {
2232
+ throw isRegexMarker;
2233
+ };
2234
+ badStringifier = {
2235
+ toString: throwRegexMarker,
2236
+ valueOf: throwRegexMarker
2237
+ };
2238
+
2239
+ if (typeof Symbol.toPrimitive === 'symbol') {
2240
+ badStringifier[Symbol.toPrimitive] = throwRegexMarker;
2276
2241
  }
2277
- };
2278
- var toStr$5 = Object.prototype.toString;
2242
+ }
2243
+
2244
+ var $toString = callBound$1('Object.prototype.toString');
2245
+ var gOPD = Object.getOwnPropertyDescriptor;
2279
2246
  var regexClass = '[object RegExp]';
2280
- var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
2281
2247
 
2282
- var isRegex = function isRegex(value) {
2283
- if (!value || typeof value !== 'object') {
2284
- return false;
2285
- }
2286
- if (!hasToStringTag) {
2287
- return toStr$5.call(value) === regexClass;
2288
- }
2248
+ var isRegex = hasToStringTag$1
2249
+ // eslint-disable-next-line consistent-return
2250
+ ? function isRegex(value) {
2251
+ if (!value || typeof value !== 'object') {
2252
+ return false;
2253
+ }
2289
2254
 
2290
- var descriptor = gOPD(value, 'lastIndex');
2291
- var hasLastIndexDataProperty = descriptor && src(descriptor, 'value');
2292
- if (!hasLastIndexDataProperty) {
2293
- return false;
2255
+ var descriptor = gOPD(value, 'lastIndex');
2256
+ var hasLastIndexDataProperty = descriptor && has(descriptor, 'value');
2257
+ if (!hasLastIndexDataProperty) {
2258
+ return false;
2259
+ }
2260
+
2261
+ try {
2262
+ $exec(value, badStringifier);
2263
+ } catch (e) {
2264
+ return e === isRegexMarker;
2265
+ }
2294
2266
  }
2267
+ : function isRegex(value) {
2268
+ // In older browsers, typeof regex incorrectly returns 'function'
2269
+ if (!value || (typeof value !== 'object' && typeof value !== 'function')) {
2270
+ return false;
2271
+ }
2295
2272
 
2296
- return tryRegexExecCall(value);
2297
- };
2273
+ return $toString(value) === regexClass;
2274
+ };
2298
2275
 
2299
- // http://www.ecma-international.org/ecma-262/5.1/#sec-9.2
2276
+ // http://262.ecma-international.org/5.1/#sec-9.2
2300
2277
 
2301
2278
  var ToBoolean = function ToBoolean(value) { return !!value; };
2302
2279
 
2303
- var $match = GetIntrinsic('%Symbol.match%', true);
2280
+ var $match = getIntrinsic('%Symbol.match%', true);
2304
2281
 
2305
2282
 
2306
2283
 
@@ -2322,6 +2299,27 @@ var IsRegExp = function IsRegExp(argument) {
2322
2299
  };
2323
2300
 
2324
2301
  var fnToStr = Function.prototype.toString;
2302
+ var reflectApply = typeof Reflect === 'object' && Reflect !== null && Reflect.apply;
2303
+ var badArrayLike;
2304
+ var isCallableMarker;
2305
+ if (typeof reflectApply === 'function' && typeof Object.defineProperty === 'function') {
2306
+ try {
2307
+ badArrayLike = Object.defineProperty({}, 'length', {
2308
+ get: function () {
2309
+ throw isCallableMarker;
2310
+ }
2311
+ });
2312
+ isCallableMarker = {};
2313
+ // eslint-disable-next-line no-throw-literal
2314
+ reflectApply(function () { throw 42; }, null, badArrayLike);
2315
+ } catch (_) {
2316
+ if (_ !== isCallableMarker) {
2317
+ reflectApply = null;
2318
+ }
2319
+ }
2320
+ } else {
2321
+ reflectApply = null;
2322
+ }
2325
2323
 
2326
2324
  var constructorRegex = /^\s*class\b/;
2327
2325
  var isES6ClassFn = function isES6ClassFunction(value) {
@@ -2342,36 +2340,52 @@ var tryFunctionObject = function tryFunctionToStr(value) {
2342
2340
  return false;
2343
2341
  }
2344
2342
  };
2345
- var toStr$6 = Object.prototype.toString;
2343
+ var toStr = Object.prototype.toString;
2346
2344
  var fnClass = '[object Function]';
2347
2345
  var genClass = '[object GeneratorFunction]';
2348
- var hasToStringTag$1 = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
2349
-
2350
- var isCallable = function isCallable(value) {
2351
- if (!value) { return false; }
2352
- if (typeof value !== 'function' && typeof value !== 'object') { return false; }
2353
- if (typeof value === 'function' && !value.prototype) { return true; }
2354
- if (hasToStringTag$1) { return tryFunctionObject(value); }
2355
- if (isES6ClassFn(value)) { return false; }
2356
- var strClass = toStr$6.call(value);
2357
- return strClass === fnClass || strClass === genClass;
2358
- };
2346
+ var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
2347
+ /* globals document: false */
2348
+ var documentDotAll = typeof document === 'object' && typeof document.all === 'undefined' && document.all !== undefined ? document.all : {};
2349
+
2350
+ var isCallable = reflectApply
2351
+ ? function isCallable(value) {
2352
+ if (value === documentDotAll) { return true; }
2353
+ if (!value) { return false; }
2354
+ if (typeof value !== 'function' && typeof value !== 'object') { return false; }
2355
+ if (typeof value === 'function' && !value.prototype) { return true; }
2356
+ try {
2357
+ reflectApply(value, null, badArrayLike);
2358
+ } catch (e) {
2359
+ if (e !== isCallableMarker) { return false; }
2360
+ }
2361
+ return !isES6ClassFn(value);
2362
+ }
2363
+ : function isCallable(value) {
2364
+ if (value === documentDotAll) { return true; }
2365
+ if (!value) { return false; }
2366
+ if (typeof value !== 'function' && typeof value !== 'object') { return false; }
2367
+ if (typeof value === 'function' && !value.prototype) { return true; }
2368
+ if (hasToStringTag) { return tryFunctionObject(value); }
2369
+ if (isES6ClassFn(value)) { return false; }
2370
+ var strClass = toStr.call(value);
2371
+ return strClass === fnClass || strClass === genClass;
2372
+ };
2359
2373
 
2360
- // http://www.ecma-international.org/ecma-262/5.1/#sec-9.11
2374
+ // http://262.ecma-international.org/5.1/#sec-9.11
2361
2375
 
2362
2376
  var IsCallable = isCallable;
2363
2377
 
2364
- var $TypeError$2 = GetIntrinsic('%TypeError%');
2378
+ var $TypeError$3 = getIntrinsic('%TypeError%');
2365
2379
 
2366
2380
 
2367
2381
 
2368
2382
 
2369
2383
 
2370
- // https://ecma-international.org/ecma-262/5.1/#sec-8.10.5
2384
+ // https://262.ecma-international.org/5.1/#sec-8.10.5
2371
2385
 
2372
2386
  var ToPropertyDescriptor = function ToPropertyDescriptor(Obj) {
2373
- if (Type$1(Obj) !== 'Object') {
2374
- throw new $TypeError$2('ToPropertyDescriptor requires an object');
2387
+ if (Type(Obj) !== 'Object') {
2388
+ throw new $TypeError$3('ToPropertyDescriptor requires an object');
2375
2389
  }
2376
2390
 
2377
2391
  var desc = {};
@@ -2390,29 +2404,29 @@ var ToPropertyDescriptor = function ToPropertyDescriptor(Obj) {
2390
2404
  if (src(Obj, 'get')) {
2391
2405
  var getter = Obj.get;
2392
2406
  if (typeof getter !== 'undefined' && !IsCallable(getter)) {
2393
- throw new TypeError('getter must be a function');
2407
+ throw new $TypeError$3('getter must be a function');
2394
2408
  }
2395
2409
  desc['[[Get]]'] = getter;
2396
2410
  }
2397
2411
  if (src(Obj, 'set')) {
2398
2412
  var setter = Obj.set;
2399
2413
  if (typeof setter !== 'undefined' && !IsCallable(setter)) {
2400
- throw new $TypeError$2('setter must be a function');
2414
+ throw new $TypeError$3('setter must be a function');
2401
2415
  }
2402
2416
  desc['[[Set]]'] = setter;
2403
2417
  }
2404
2418
 
2405
2419
  if ((src(desc, '[[Get]]') || src(desc, '[[Set]]')) && (src(desc, '[[Value]]') || src(desc, '[[Writable]]'))) {
2406
- throw new $TypeError$2('Invalid property descriptor. Cannot both specify accessors and a value or writable attribute');
2420
+ throw new $TypeError$3('Invalid property descriptor. Cannot both specify accessors and a value or writable attribute');
2407
2421
  }
2408
2422
  return desc;
2409
2423
  };
2410
2424
 
2411
- var $TypeError$3 = GetIntrinsic('%TypeError%');
2425
+ var $TypeError$2 = getIntrinsic('%TypeError%');
2412
2426
 
2413
2427
 
2414
2428
 
2415
- var $isEnumerable$1 = callBound('Object.prototype.propertyIsEnumerable');
2429
+ var $isEnumerable = callBound$1('Object.prototype.propertyIsEnumerable');
2416
2430
 
2417
2431
 
2418
2432
 
@@ -2422,14 +2436,14 @@ var $isEnumerable$1 = callBound('Object.prototype.propertyIsEnumerable');
2422
2436
 
2423
2437
 
2424
2438
 
2425
- // https://www.ecma-international.org/ecma-262/6.0/#sec-ordinarygetownproperty
2439
+ // https://ecma-international.org/ecma-262/6.0/#sec-ordinarygetownproperty
2426
2440
 
2427
2441
  var OrdinaryGetOwnProperty = function OrdinaryGetOwnProperty(O, P) {
2428
- if (Type$1(O) !== 'Object') {
2429
- throw new $TypeError$3('Assertion failed: O must be an Object');
2442
+ if (Type(O) !== 'Object') {
2443
+ throw new $TypeError$2('Assertion failed: O must be an Object');
2430
2444
  }
2431
2445
  if (!IsPropertyKey(P)) {
2432
- throw new $TypeError$3('Assertion failed: P must be a Property Key');
2446
+ throw new $TypeError$2('Assertion failed: P must be a Property Key');
2433
2447
  }
2434
2448
  if (!src(O, P)) {
2435
2449
  return void 0;
@@ -2440,7 +2454,7 @@ var OrdinaryGetOwnProperty = function OrdinaryGetOwnProperty(O, P) {
2440
2454
  var regexLastIndex = IsRegExp(O) && P === 'lastIndex';
2441
2455
  return {
2442
2456
  '[[Configurable]]': !(arrayLength || regexLastIndex),
2443
- '[[Enumerable]]': $isEnumerable$1(O, P),
2457
+ '[[Enumerable]]': $isEnumerable(O, P),
2444
2458
  '[[Value]]': O[P],
2445
2459
  '[[Writable]]': true
2446
2460
  };
@@ -2448,14 +2462,14 @@ var OrdinaryGetOwnProperty = function OrdinaryGetOwnProperty(O, P) {
2448
2462
  return ToPropertyDescriptor(getOwnPropertyDescriptor(O, P));
2449
2463
  };
2450
2464
 
2451
- // https://www.ecma-international.org/ecma-262/6.0/#sec-isdatadescriptor
2465
+ // https://ecma-international.org/ecma-262/6.0/#sec-isdatadescriptor
2452
2466
 
2453
2467
  var IsDataDescriptor = function IsDataDescriptor(Desc) {
2454
2468
  if (typeof Desc === 'undefined') {
2455
2469
  return false;
2456
2470
  }
2457
2471
 
2458
- assertRecord(Type$1, 'Property Descriptor', 'Desc', Desc);
2472
+ assertRecord(Type, 'Property Descriptor', 'Desc', Desc);
2459
2473
 
2460
2474
  if (!src(Desc, '[[Value]]') && !src(Desc, '[[Writable]]')) {
2461
2475
  return false;
@@ -2468,14 +2482,14 @@ var isPrimitive = function isPrimitive(value) {
2468
2482
  return value === null || (typeof value !== 'function' && typeof value !== 'object');
2469
2483
  };
2470
2484
 
2471
- var $Object = GetIntrinsic('%Object%');
2485
+ var $Object$1 = getIntrinsic('%Object%');
2472
2486
 
2473
2487
 
2474
2488
 
2475
- var $preventExtensions = $Object.preventExtensions;
2476
- var $isExtensible = $Object.isExtensible;
2489
+ var $preventExtensions = $Object$1.preventExtensions;
2490
+ var $isExtensible = $Object$1.isExtensible;
2477
2491
 
2478
- // https://www.ecma-international.org/ecma-262/6.0/#sec-isextensible-o
2492
+ // https://ecma-international.org/ecma-262/6.0/#sec-isextensible-o
2479
2493
 
2480
2494
  var IsExtensible = $preventExtensions
2481
2495
  ? function IsExtensible(obj) {
@@ -2489,7 +2503,7 @@ var _isNaN = Number.isNaN || function isNaN(a) {
2489
2503
  return a !== a;
2490
2504
  };
2491
2505
 
2492
- // http://www.ecma-international.org/ecma-262/5.1/#sec-9.12
2506
+ // http://262.ecma-international.org/5.1/#sec-9.12
2493
2507
 
2494
2508
  var SameValue = function SameValue(x, y) {
2495
2509
  if (x === y) { // 0 === -0, but they are not identical.
@@ -2499,7 +2513,7 @@ var SameValue = function SameValue(x, y) {
2499
2513
  return _isNaN(x) && _isNaN(y);
2500
2514
  };
2501
2515
 
2502
- var $TypeError$4 = GetIntrinsic('%TypeError%');
2516
+ var $TypeError$1 = getIntrinsic('%TypeError%');
2503
2517
 
2504
2518
 
2505
2519
 
@@ -2511,18 +2525,18 @@ var $TypeError$4 = GetIntrinsic('%TypeError%');
2511
2525
 
2512
2526
 
2513
2527
 
2514
- // https://www.ecma-international.org/ecma-262/6.0/#sec-createdataproperty
2528
+ // https://ecma-international.org/ecma-262/6.0/#sec-createdataproperty
2515
2529
 
2516
2530
  var CreateDataProperty = function CreateDataProperty(O, P, V) {
2517
- if (Type$1(O) !== 'Object') {
2518
- throw new $TypeError$4('Assertion failed: Type(O) is not Object');
2531
+ if (Type(O) !== 'Object') {
2532
+ throw new $TypeError$1('Assertion failed: Type(O) is not Object');
2519
2533
  }
2520
2534
  if (!IsPropertyKey(P)) {
2521
- throw new $TypeError$4('Assertion failed: IsPropertyKey(P) is not true');
2535
+ throw new $TypeError$1('Assertion failed: IsPropertyKey(P) is not true');
2522
2536
  }
2523
2537
  var oldDesc = OrdinaryGetOwnProperty(O, P);
2524
- var extensible = oldDesc || IsExtensible(O);
2525
- var immutable = oldDesc && (!oldDesc.writable || !oldDesc.configurable);
2538
+ var extensible = !oldDesc || IsExtensible(O);
2539
+ var immutable = oldDesc && (!oldDesc['[[Writable]]'] || !oldDesc['[[Configurable]]']);
2526
2540
  if (immutable || !extensible) {
2527
2541
  return false;
2528
2542
  }
@@ -2541,44 +2555,44 @@ var CreateDataProperty = function CreateDataProperty(O, P, V) {
2541
2555
  );
2542
2556
  };
2543
2557
 
2544
- var $TypeError$5 = GetIntrinsic('%TypeError%');
2558
+ var $TypeError = getIntrinsic('%TypeError%');
2545
2559
 
2546
- // http://www.ecma-international.org/ecma-262/5.1/#sec-9.10
2560
+ // http://262.ecma-international.org/5.1/#sec-9.10
2547
2561
 
2548
2562
  var CheckObjectCoercible = function CheckObjectCoercible(value, optMessage) {
2549
2563
  if (value == null) {
2550
- throw new $TypeError$5(optMessage || ('Cannot call method on ' + value));
2564
+ throw new $TypeError(optMessage || ('Cannot call method on ' + value));
2551
2565
  }
2552
2566
  return value;
2553
2567
  };
2554
2568
 
2555
2569
  var RequireObjectCoercible = CheckObjectCoercible;
2556
2570
 
2557
- var $Object$1 = GetIntrinsic('%Object%');
2571
+ var $Object = getIntrinsic('%Object%');
2558
2572
 
2559
2573
 
2560
2574
 
2561
- // https://www.ecma-international.org/ecma-262/6.0/#sec-toobject
2575
+ // https://ecma-international.org/ecma-262/6.0/#sec-toobject
2562
2576
 
2563
2577
  var ToObject = function ToObject(value) {
2564
2578
  RequireObjectCoercible(value);
2565
- return $Object$1(value);
2579
+ return $Object(value);
2566
2580
  };
2567
2581
 
2568
- var $gOPD$2 = Object.getOwnPropertyDescriptor;
2582
+ var $gOPD = Object.getOwnPropertyDescriptor;
2569
2583
  var $getOwnNames = Object.getOwnPropertyNames;
2570
2584
  var $getSymbols = Object.getOwnPropertySymbols;
2571
- var $concat = callBound('Array.prototype.concat');
2572
- var $reduce = callBound('Array.prototype.reduce');
2585
+ var $concat$1 = callBound$1('Array.prototype.concat');
2586
+ var $reduce = callBound$1('Array.prototype.reduce');
2573
2587
  var getAll = $getSymbols ? function (obj) {
2574
- return $concat($getOwnNames(obj), $getSymbols(obj));
2588
+ return $concat$1($getOwnNames(obj), $getSymbols(obj));
2575
2589
  } : $getOwnNames;
2576
2590
 
2577
- var isES5 = IsCallable($gOPD$2) && IsCallable($getOwnNames);
2591
+ var isES5$1 = IsCallable($gOPD) && IsCallable($getOwnNames);
2578
2592
 
2579
- var implementation$2 = function getOwnPropertyDescriptors(value) {
2593
+ var implementation$1 = function getOwnPropertyDescriptors(value) {
2580
2594
  RequireObjectCoercible(value);
2581
- if (!isES5) {
2595
+ if (!isES5$1) {
2582
2596
  throw new TypeError('getOwnPropertyDescriptors requires Object.getOwnPropertyDescriptor');
2583
2597
  }
2584
2598
 
@@ -2586,7 +2600,7 @@ var implementation$2 = function getOwnPropertyDescriptors(value) {
2586
2600
  return $reduce(
2587
2601
  getAll(O),
2588
2602
  function (acc, key) {
2589
- var descriptor = $gOPD$2(O, key);
2603
+ var descriptor = $gOPD(O, key);
2590
2604
  if (typeof descriptor !== 'undefined') {
2591
2605
  CreateDataProperty(acc, key, descriptor);
2592
2606
  }
@@ -2596,34 +2610,40 @@ var implementation$2 = function getOwnPropertyDescriptors(value) {
2596
2610
  );
2597
2611
  };
2598
2612
 
2599
- var polyfill = function getPolyfill() {
2600
- return typeof Object.getOwnPropertyDescriptors === 'function' ? Object.getOwnPropertyDescriptors : implementation$2;
2613
+ var polyfill$2 = function getPolyfill() {
2614
+ return typeof Object.getOwnPropertyDescriptors === 'function' ? Object.getOwnPropertyDescriptors : implementation$1;
2601
2615
  };
2602
2616
 
2603
- var shim = function shimGetOwnPropertyDescriptors() {
2604
- var polyfill$1 = polyfill();
2617
+ var shim$1 = function shimGetOwnPropertyDescriptors() {
2618
+ var polyfill = polyfill$2();
2605
2619
  defineProperties_1(
2606
2620
  Object,
2607
- { getOwnPropertyDescriptors: polyfill$1 },
2608
- { getOwnPropertyDescriptors: function () { return Object.getOwnPropertyDescriptors !== polyfill$1; } }
2621
+ { getOwnPropertyDescriptors: polyfill },
2622
+ { getOwnPropertyDescriptors: function () { return Object.getOwnPropertyDescriptors !== polyfill; } }
2609
2623
  );
2610
- return polyfill$1;
2624
+ return polyfill;
2611
2625
  };
2612
2626
 
2613
- defineProperties_1(implementation$2, {
2614
- getPolyfill: polyfill,
2615
- implementation: implementation$2,
2616
- shim: shim
2627
+ var bound = callBind(polyfill$2(), Object);
2628
+
2629
+ defineProperties_1(bound, {
2630
+ getPolyfill: polyfill$2,
2631
+ implementation: implementation$1,
2632
+ shim: shim$1
2617
2633
  });
2618
2634
 
2619
- var object_getownpropertydescriptors = implementation$2;
2635
+ var object_getownpropertydescriptors = bound;
2636
+
2637
+ // TODO; semver-major: remove
2620
2638
 
2621
- var isES5$1 = typeof Object.defineProperty === 'function'
2639
+ var callBound = callBound$1;
2640
+
2641
+ var isES5 = typeof Object.defineProperty === 'function'
2622
2642
  && typeof Object.defineProperties === 'function';
2623
2643
 
2624
2644
  var hasProto = [].__proto__ === Array.prototype; // eslint-disable-line no-proto
2625
2645
 
2626
- if (!isES5$1 || !hasProto) {
2646
+ if (!isES5 || !hasProto) {
2627
2647
  throw new TypeError('util.promisify requires a true ES5 environment, that also supports `__proto__`');
2628
2648
  }
2629
2649
 
@@ -2636,15 +2656,15 @@ if (typeof Promise !== 'function') {
2636
2656
 
2637
2657
 
2638
2658
  var $slice = callBound('Array.prototype.slice');
2639
- var $concat$1 = callBound('Array.prototype.concat');
2659
+ var $concat = callBound('Array.prototype.concat');
2640
2660
  var $forEach = callBound('Array.prototype.forEach');
2641
2661
 
2642
- var hasSymbols$3 = hasSymbols$1();
2662
+ var hasSymbols = hasSymbols$3();
2643
2663
 
2644
- var kCustomPromisifiedSymbol = hasSymbols$3 ? Symbol('util.promisify.custom') : null;
2645
- var kCustomPromisifyArgsSymbol = hasSymbols$3 ? Symbol('customPromisifyArgs') : null;
2664
+ var kCustomPromisifiedSymbol = hasSymbols ? Symbol('util.promisify.custom') : null;
2665
+ var kCustomPromisifyArgsSymbol = hasSymbols ? Symbol('customPromisifyArgs') : null;
2646
2666
 
2647
- var implementation$3 = function promisify(orig) {
2667
+ var implementation = function promisify(orig) {
2648
2668
  if (typeof orig !== 'function') {
2649
2669
  var error = new TypeError('The "original" argument must be of type function');
2650
2670
  error.name = 'TypeError [ERR_INVALID_ARG_TYPE]';
@@ -2652,7 +2672,7 @@ var implementation$3 = function promisify(orig) {
2652
2672
  throw error;
2653
2673
  }
2654
2674
 
2655
- if (hasSymbols$3 && orig[kCustomPromisifiedSymbol]) {
2675
+ if (hasSymbols && orig[kCustomPromisifiedSymbol]) {
2656
2676
  var customFunction = orig[kCustomPromisifiedSymbol];
2657
2677
  if (typeof customFunction !== 'function') {
2658
2678
  throw new TypeError('The [util.promisify.custom] property must be a function');
@@ -2674,7 +2694,7 @@ var implementation$3 = function promisify(orig) {
2674
2694
  var args = $slice(arguments);
2675
2695
  var self = this; // eslint-disable-line no-invalid-this
2676
2696
  return new Promise(function (resolve, reject) {
2677
- orig.apply(self, $concat$1(args, function (err) {
2697
+ orig.apply(self, $concat(args, function (err) {
2678
2698
  var values = arguments.length > 1 ? $slice(arguments, 1) : [];
2679
2699
  if (err) {
2680
2700
  reject(err);
@@ -2704,17 +2724,17 @@ var implementation$3 = function promisify(orig) {
2704
2724
 
2705
2725
  var custom = kCustomPromisifiedSymbol;
2706
2726
  var customPromisifyArgs = kCustomPromisifyArgsSymbol;
2707
- implementation$3.custom = custom;
2708
- implementation$3.customPromisifyArgs = customPromisifyArgs;
2727
+ implementation.custom = custom;
2728
+ implementation.customPromisifyArgs = customPromisifyArgs;
2709
2729
 
2710
2730
  var polyfill$1 = function getPolyfill() {
2711
2731
  if (typeof util.promisify === 'function') {
2712
2732
  return util.promisify;
2713
2733
  }
2714
- return implementation$3;
2734
+ return implementation;
2715
2735
  };
2716
2736
 
2717
- var shim$1 = function shimUtilPromisify() {
2737
+ var shim = function shimUtilPromisify() {
2718
2738
  var polyfill = polyfill$1();
2719
2739
  if (polyfill !== util.promisify) {
2720
2740
  Object.defineProperty(util, 'promisify', {
@@ -2727,20 +2747,20 @@ var shim$1 = function shimUtilPromisify() {
2727
2747
  return polyfill;
2728
2748
  };
2729
2749
 
2730
- var polyfill$2 = polyfill$1();
2750
+ var polyfill = polyfill$1();
2731
2751
 
2732
2752
 
2733
2753
  /* eslint-disable no-unused-vars */
2734
2754
  var boundPromisify = function promisify(orig) {
2735
2755
  /* eslint-enable no-unused-vars */
2736
- return polyfill$2.apply(util, arguments);
2756
+ return polyfill.apply(util, arguments);
2737
2757
  };
2738
2758
  defineProperties_1(boundPromisify, {
2739
- custom: polyfill$2.custom,
2740
- customPromisifyArgs: polyfill$2.customPromisifyArgs,
2759
+ custom: polyfill.custom,
2760
+ customPromisifyArgs: polyfill.customPromisifyArgs,
2741
2761
  getPolyfill: polyfill$1,
2742
- implementation: implementation$3,
2743
- shim: shim$1
2762
+ implementation: implementation,
2763
+ shim: shim
2744
2764
  });
2745
2765
 
2746
2766
  var util_promisify = boundPromisify;
@@ -2781,16 +2801,16 @@ function connect() {
2781
2801
 
2782
2802
  var db = connect;
2783
2803
 
2784
- var _this$3 = undefined;
2804
+ var _this$1 = undefined;
2785
2805
 
2786
- var config = {
2806
+ var config$1 = {
2787
2807
  host: 'sanity-datasource.cluster-crao688bsrdh.us-east-1.rds.amazonaws.com',
2788
2808
  user: 'nasp',
2789
2809
  password: 'uRNkF9SkfXQs6AKK',
2790
2810
  database: 'user'
2791
2811
  };
2792
2812
 
2793
- var findUser = function () {
2813
+ var findUser$1 = function () {
2794
2814
  var _ref = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(email) {
2795
2815
  var password = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
2796
2816
  var db$1, query, res, user, hash, passwordsMatch, user_shared, occupation_id;
@@ -2802,7 +2822,7 @@ var findUser = function () {
2802
2822
  _context.prev = 1;
2803
2823
 
2804
2824
 
2805
- db$1 = db(config);
2825
+ db$1 = db(config$1);
2806
2826
 
2807
2827
  query = '\n select * \n from user \n where trim(lower(email)) = ?\n ';
2808
2828
  _context.next = 6;
@@ -2898,7 +2918,7 @@ var findUser = function () {
2898
2918
  };
2899
2919
  }();
2900
2920
 
2901
- var updateUser = function () {
2921
+ var updateUser$1 = function () {
2902
2922
  var _ref2 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2(data) {
2903
2923
  var db$1, query, res, hash, columns, i, column, occupation_name;
2904
2924
  return regenerator.wrap(function _callee2$(_context2) {
@@ -2911,7 +2931,7 @@ var updateUser = function () {
2911
2931
 
2912
2932
  validateUserData(data);
2913
2933
 
2914
- db$1 = db(config);
2934
+ db$1 = db(config$1);
2915
2935
 
2916
2936
  _context2.next = 6;
2917
2937
  return db$1.beginTransaction();
@@ -3018,7 +3038,7 @@ var updateUser = function () {
3018
3038
 
3019
3039
  return _context2.abrupt('return', {
3020
3040
  error: '',
3021
- user: findUser(data.email)
3041
+ user: findUser$1(data.email)
3022
3042
  });
3023
3043
 
3024
3044
  case 45:
@@ -3130,7 +3150,7 @@ var getOccupationNameById = function () {
3130
3150
  return _context3.stop();
3131
3151
  }
3132
3152
  }
3133
- }, _callee3, _this$3);
3153
+ }, _callee3, _this$1);
3134
3154
  }));
3135
3155
 
3136
3156
  return function getOccupationNameById(_x5, _x6) {
@@ -3138,7 +3158,7 @@ var getOccupationNameById = function () {
3138
3158
  };
3139
3159
  }();
3140
3160
 
3141
- var createUser = function () {
3161
+ var createUser$1 = function () {
3142
3162
  var _ref4 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee4(data) {
3143
3163
  var db$1, query, res, hash, columns, i, column, user_id, occupation_name;
3144
3164
  return regenerator.wrap(function _callee4$(_context4) {
@@ -3151,7 +3171,7 @@ var createUser = function () {
3151
3171
 
3152
3172
  validateUserData(data, true);
3153
3173
 
3154
- db$1 = db(config);
3174
+ db$1 = db(config$1);
3155
3175
 
3156
3176
  _context4.next = 6;
3157
3177
  return db$1.beginTransaction();
@@ -3247,7 +3267,7 @@ var createUser = function () {
3247
3267
  case 39:
3248
3268
  return _context4.abrupt('return', {
3249
3269
  error: '',
3250
- user: findUser(data.email)
3270
+ user: findUser$1(data.email)
3251
3271
  });
3252
3272
 
3253
3273
  case 42:
@@ -3285,7 +3305,7 @@ var createUser = function () {
3285
3305
  };
3286
3306
  }();
3287
3307
 
3288
- var createUser$1 = function () {
3308
+ var createUser = function () {
3289
3309
  var _ref = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(data) {
3290
3310
  var res;
3291
3311
  return regenerator.wrap(function _callee$(_context) {
@@ -3293,7 +3313,7 @@ var createUser$1 = function () {
3293
3313
  switch (_context.prev = _context.next) {
3294
3314
  case 0:
3295
3315
  _context.next = 2;
3296
- return createUser(data);
3316
+ return createUser$1(data);
3297
3317
 
3298
3318
  case 2:
3299
3319
  res = _context.sent;
@@ -3321,7 +3341,7 @@ var createUser$1 = function () {
3321
3341
  };
3322
3342
  }();
3323
3343
 
3324
- var updateUser$1 = function () {
3344
+ var updateUser = function () {
3325
3345
  var _ref2 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2(data) {
3326
3346
  var res;
3327
3347
  return regenerator.wrap(function _callee2$(_context2) {
@@ -3329,7 +3349,7 @@ var updateUser$1 = function () {
3329
3349
  switch (_context2.prev = _context2.next) {
3330
3350
  case 0:
3331
3351
  _context2.next = 2;
3332
- return updateUser(data);
3352
+ return updateUser$1(data);
3333
3353
 
3334
3354
  case 2:
3335
3355
  res = _context2.sent;
@@ -3357,7 +3377,7 @@ var updateUser$1 = function () {
3357
3377
  };
3358
3378
  }();
3359
3379
 
3360
- var findUser$1 = function () {
3380
+ var findUser = function () {
3361
3381
  var _ref3 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee3(_ref4) {
3362
3382
  var email = _ref4.email,
3363
3383
  password = _ref4.password;
@@ -3367,7 +3387,7 @@ var findUser$1 = function () {
3367
3387
  switch (_context3.prev = _context3.next) {
3368
3388
  case 0:
3369
3389
  _context3.next = 2;
3370
- return findUser(email, password);
3390
+ return findUser$1(email, password);
3371
3391
 
3372
3392
  case 2:
3373
3393
  res = _context3.sent;
@@ -3397,9 +3417,9 @@ var findUser$1 = function () {
3397
3417
 
3398
3418
  var user = /*#__PURE__*/Object.freeze({
3399
3419
  __proto__: null,
3400
- createUser: createUser$1,
3401
- updateUser: updateUser$1,
3402
- findUser: findUser$1
3420
+ createUser: createUser,
3421
+ updateUser: updateUser,
3422
+ findUser: findUser
3403
3423
  });
3404
3424
 
3405
3425
  var localStrategy = new Local.Strategy({
@@ -3407,7 +3427,7 @@ var localStrategy = new Local.Strategy({
3407
3427
  passwordField: 'password'
3408
3428
  }, function (email, password, done) {
3409
3429
 
3410
- findUser$1({ email: email, password: password }).then(function (user) {
3430
+ findUser({ email: email, password: password }).then(function (user) {
3411
3431
  done(null, user);
3412
3432
  }).catch(function (error) {
3413
3433
  done(error);
@@ -3419,9 +3439,9 @@ var passportLocal = /*#__PURE__*/Object.freeze({
3419
3439
  localStrategy: localStrategy
3420
3440
  });
3421
3441
 
3422
- var _this$4 = undefined;
3442
+ var _this = undefined;
3423
3443
 
3424
- var config$1 = {
3444
+ var config = {
3425
3445
  host: 'sanity-datasource.cluster-crao688bsrdh.us-east-1.rds.amazonaws.com',
3426
3446
  user: 'nasp',
3427
3447
  password: 'uRNkF9SkfXQs6AKK',
@@ -3435,7 +3455,7 @@ var getOccupation = function () {
3435
3455
  while (1) {
3436
3456
  switch (_context.prev = _context.next) {
3437
3457
  case 0:
3438
- db$1 = db(config$1);
3458
+ db$1 = db(config);
3439
3459
  query = '\n select name as label, id as value\n from occupation\n where type = ?\n ';
3440
3460
  _context.next = 4;
3441
3461
  return db$1.query(query, [type]);
@@ -3453,7 +3473,7 @@ var getOccupation = function () {
3453
3473
  return _context.stop();
3454
3474
  }
3455
3475
  }
3456
- }, _callee, _this$4);
3476
+ }, _callee, _this);
3457
3477
  }));
3458
3478
 
3459
3479
  return function getOccupation(_x) {
@@ -3468,7 +3488,7 @@ var getFieldsAndOptions = function () {
3468
3488
  while (1) {
3469
3489
  switch (_context2.prev = _context2.next) {
3470
3490
  case 0:
3471
- db$1 = db(config$1);
3491
+ db$1 = db(config);
3472
3492
  query = '\n select * \n from field\n where occupation_id = ?\n order by sorting\n ';
3473
3493
  _context2.next = 4;
3474
3494
  return db$1.query(query, [occupation]);
@@ -3516,7 +3536,7 @@ var getFieldsAndOptions = function () {
3516
3536
  return _context2.stop();
3517
3537
  }
3518
3538
  }
3519
- }, _callee2, _this$4);
3539
+ }, _callee2, _this);
3520
3540
  }));
3521
3541
 
3522
3542
  return function getFieldsAndOptions(_x2) {
@@ -3587,8 +3607,8 @@ var ProcessData = (function () {
3587
3607
  })();
3588
3608
 
3589
3609
  var LoginForm_1 = LoginForm;
3590
- var SignupForm_1 = SignupForm;
3591
- var ProfileForm_1 = SignupForm$1;
3610
+ var SignupForm_1 = SignupForm$1;
3611
+ var ProfileForm_1 = SignupForm;
3592
3612
  var AuthCookies_1 = authCookies;
3593
3613
  var AuthHooks_1 = hooks;
3594
3614
  var Iron_1 = iron;