@mjhls/mjh-framework 1.0.791-auth-test-v4 → 1.0.792
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.
- package/README.md +170 -170
- package/dist/cjs/AD.js +1 -1
- package/dist/cjs/AD300x250.js +15 -15
- package/dist/cjs/AD300x250x600.js +15 -15
- package/dist/cjs/AD728x90.js +16 -16
- package/dist/cjs/ADFloatingFooter.js +14 -14
- package/dist/cjs/ADFooter.js +5 -5
- package/dist/cjs/ADGutter.js +14 -14
- package/dist/cjs/{ADInfeed-e7aecdf9.js → ADInfeed-1e53d7db.js} +1 -1
- package/dist/cjs/ADSkyscraper.js +14 -14
- package/dist/cjs/ADSponsoredResources.js +14 -14
- package/dist/cjs/ADWebcast.js +14 -14
- package/dist/cjs/ADWelcome.js +14 -14
- package/dist/cjs/{ADlgInfeed-0941023e.js → ADlgInfeed-2494fd17.js} +1 -1
- package/dist/cjs/AccordionPanel.js +5 -5
- package/dist/cjs/AdSlot.js +16 -16
- package/dist/cjs/AdSlotsProvider.js +10 -10
- package/dist/cjs/AlphabeticList.js +9 -9
- package/dist/cjs/ArticleCarousel.js +11 -11
- package/dist/cjs/ArticleProgramLandingPage.js +25 -24
- package/dist/cjs/ArticleSeriesLandingPage.js +24 -24
- package/dist/cjs/ArticleSeriesListing.js +17 -17
- package/dist/cjs/Auth.js +789 -210
- package/dist/cjs/{AuthorComponent-c21aac7f.js → AuthorComponent-5fa89df5.js} +1 -1
- package/dist/cjs/Beam.js +7 -7
- package/dist/cjs/{BlockContent-36e54d77.js → BlockContent-eca358e4.js} +34 -34
- package/dist/cjs/Breadcrumbs.js +5 -5
- package/dist/cjs/CMEDeck.js +14 -14
- package/dist/cjs/Column2.js +11 -11
- package/dist/cjs/Column3.js +20 -20
- package/dist/cjs/ConferenceArticleCard.js +16 -16
- package/dist/cjs/DeckContent.js +31 -31
- package/dist/cjs/DeckQueue.js +21 -21
- package/dist/cjs/{Dfp-3f0ed4c8.js → Dfp-6d140494.js} +8 -8
- package/dist/cjs/EventsDeck.js +36 -36
- package/dist/cjs/ExternalResources.js +26 -25
- package/dist/cjs/Feature.js +3 -3
- package/dist/cjs/ForbesHero.js +7 -7
- package/dist/cjs/GridContent.js +30 -30
- package/dist/cjs/GridHero.js +7 -7
- package/dist/cjs/GroupDeck.js +9 -9
- package/dist/cjs/HamMagazine.js +21 -21
- package/dist/cjs/Hero.js +1 -1
- package/dist/cjs/HorizontalArticleListing.js +25 -24
- package/dist/cjs/HorizontalHero.js +1 -1
- package/dist/cjs/IssueContentDeck.js +7 -7
- package/dist/cjs/IssueDeck.js +10 -10
- package/dist/cjs/IssueLanding.js +49 -49
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +14 -14
- package/dist/cjs/MasterDeck.js +32 -32
- package/dist/cjs/MediaSeriesLanding.js +400 -408
- package/dist/cjs/NavDvm.js +7 -7
- package/dist/cjs/NavMagazine.js +21 -21
- package/dist/cjs/NavNative.js +26 -26
- package/dist/cjs/NavNormal.js +7 -7
- package/dist/cjs/OncliveHero.js +1 -1
- package/dist/cjs/OncliveLargeHero.js +7 -7
- package/dist/cjs/PageFilter.js +5 -5
- package/dist/cjs/PartnerDetailListing.js +31 -30
- package/dist/cjs/PopUpModal.js +5 -5
- package/dist/cjs/PubSection.js +20 -20
- package/dist/cjs/PubToc.js +7 -7
- package/dist/cjs/PublicationDeck.js +2 -2
- package/dist/cjs/PublicationLanding.js +49 -49
- package/dist/cjs/QueueDeckExpanded.js +22 -22
- package/dist/cjs/RecentNews.js +1 -1
- package/dist/cjs/RelatedContent.js +29 -29
- package/dist/cjs/RelatedTopicsDropdown.js +10 -10
- package/dist/cjs/Search.js +5 -5
- package/dist/cjs/Segment.js +6 -6
- package/dist/cjs/SeriesListingDeck.js +12 -12
- package/dist/cjs/{SeriesSlider-c022ce04.js → SeriesSlider-49577417.js} +12 -12
- package/dist/cjs/SideFooter.js +13 -13
- package/dist/cjs/{SocialSearchComponent-31afe61f.js → SocialSearchComponent-45c54bed.js} +6 -6
- package/dist/cjs/TaxonomyCard.js +5 -5
- package/dist/cjs/TaxonomyDescription.js +25 -24
- package/dist/cjs/TemplateNormal.js +19 -19
- package/dist/cjs/ThumbnailCard.js +1 -1
- package/dist/cjs/Ustream.js +7 -7
- package/dist/cjs/VerticalHero.js +1 -1
- package/dist/cjs/VideoProgramLandingPage.js +25 -24
- package/dist/cjs/VideoSeriesCard.js +8 -8
- package/dist/cjs/VideoSeriesFilter.js +7 -7
- package/dist/cjs/VideoSeriesLandingPage.js +24 -24
- package/dist/cjs/VideoSeriesListing.js +17 -17
- package/dist/cjs/View.js +39 -38
- package/dist/cjs/YahooHero.js +7 -7
- package/dist/cjs/YoutubeGroup.js +19 -19
- package/dist/cjs/{_is-array-6128bd56.js → _is-array-63ae4740.js} +1 -1
- package/dist/cjs/{_iter-detect-55a5657a.js → _iter-detect-2613ffa1.js} +8 -8
- package/dist/cjs/{_object-pie-083f2dd6.js → _object-pie-68c5bcbc.js} +4 -4
- package/dist/cjs/{_object-sap-a175b4a9.js → _object-sap-c5bd707d.js} +1 -1
- package/dist/cjs/{_object-to-array-8fe5a54f.js → _object-to-array-bec5fcf2.js} +2 -2
- package/dist/cjs/{_to-object-6de10e57.js → _to-object-821a2927.js} +4 -4
- package/dist/cjs/{asyncToGenerator-58c289d9.js → asyncToGenerator-b6a175bf.js} +30 -30
- package/dist/cjs/{core.get-iterator-method-f474eacc.js → core.get-iterator-method-b4615fd3.js} +2 -2
- package/dist/cjs/{debounce-d4a2369b.js → debounce-529c8d06.js} +2 -2
- package/dist/cjs/{define-property-c88be878.js → define-property-aff11f8a.js} +6 -6
- package/dist/cjs/{defineProperty-0cb76d99.js → defineProperty-d6fbb280.js} +1 -1
- package/dist/cjs/{eq-5fc26c07.js → eq-bb2843ed.js} +1 -1
- package/dist/cjs/{es6.string.iterator-c2573ffd.js → es6.string.iterator-20d42c53.js} +5 -5
- package/dist/cjs/{extends-29bdbc6d.js → extends-1e24fc8d.js} +7 -8
- package/dist/cjs/{get-5839e5b5.js → get-adbb11e3.js} +21 -21
- package/dist/cjs/getRelatedArticle.js +9 -11
- package/dist/cjs/getRootDocGroup.js +6 -6
- package/dist/cjs/getSerializers.js +25 -24
- package/dist/cjs/{getTargeting-45b91c88.js → getTargeting-497b581d.js} +11 -11
- package/dist/cjs/getTargeting.js +8 -8
- package/dist/cjs/{index-f86bb269.js → index-4d74ffd6.js} +4 -4
- package/dist/cjs/{index-70cfabd2.js → index-d450e2d5.js} +88 -338
- package/dist/cjs/{index-efca863c.js → index-d48b231c.js} +5 -5
- package/dist/cjs/index.js +37 -37
- package/dist/cjs/{inherits-c2065b95.js → inherits-2eb23889.js} +19 -22
- package/dist/cjs/{isSymbol-03abbdf0.js → isSymbol-04666465.js} +15 -15
- package/dist/cjs/keys-95c064c9.js +25 -0
- package/dist/cjs/{lodash-f0783643.js → lodash-4ef21f0f.js} +9 -57
- package/dist/cjs/{main-025fdc78.js → main-dc082238.js} +109 -184
- package/dist/cjs/{slicedToArray-5d1bc3b3.js → slicedToArray-db24842a.js} +14 -14
- package/dist/cjs/stringify-01cf47f7.js +17 -0
- package/dist/cjs/{toConsumableArray-ddb70795.js → toConsumableArray-cf0865fc.js} +9 -9
- package/dist/cjs/{toNumber-5e1fac58.js → toNumber-36d1e7e5.js} +5 -40
- package/dist/cjs/{typeof-88a668c5.js → typeof-97065d40.js} +34 -34
- package/dist/cjs/urlFor.js +1 -1
- package/dist/cjs/{web.dom.iterable-46657b5c.js → web.dom.iterable-4480325a.js} +2 -2
- package/dist/esm/AD.js +1 -1
- package/dist/esm/AD300x250.js +15 -15
- package/dist/esm/AD300x250x600.js +15 -15
- package/dist/esm/AD728x90.js +16 -16
- package/dist/esm/ADFloatingFooter.js +14 -14
- package/dist/esm/ADFooter.js +5 -5
- package/dist/esm/ADGutter.js +14 -14
- package/dist/esm/{ADInfeed-e1e18f87.js → ADInfeed-94817c40.js} +1 -1
- package/dist/esm/ADSkyscraper.js +14 -14
- package/dist/esm/ADSponsoredResources.js +14 -14
- package/dist/esm/ADWebcast.js +14 -14
- package/dist/esm/ADWelcome.js +14 -14
- package/dist/esm/{ADlgInfeed-c6d2831b.js → ADlgInfeed-6124ee3c.js} +1 -1
- package/dist/esm/AccordionPanel.js +5 -5
- package/dist/esm/AdSlot.js +16 -16
- package/dist/esm/AdSlotsProvider.js +10 -10
- package/dist/esm/AlphabeticList.js +9 -9
- package/dist/esm/ArticleCarousel.js +11 -11
- package/dist/esm/ArticleProgramLandingPage.js +25 -24
- package/dist/esm/ArticleSeriesLandingPage.js +24 -24
- package/dist/esm/ArticleSeriesListing.js +17 -17
- package/dist/esm/Auth.js +787 -208
- package/dist/esm/{AuthorComponent-5ae7409f.js → AuthorComponent-c7ff069f.js} +1 -1
- package/dist/esm/Beam.js +7 -7
- package/dist/esm/{BlockContent-52cf21c5.js → BlockContent-d8cd739c.js} +34 -34
- package/dist/esm/Breadcrumbs.js +5 -5
- package/dist/esm/CMEDeck.js +14 -14
- package/dist/esm/Column2.js +11 -11
- package/dist/esm/Column3.js +20 -20
- package/dist/esm/ConferenceArticleCard.js +16 -16
- package/dist/esm/DeckContent.js +31 -31
- package/dist/esm/DeckQueue.js +21 -21
- package/dist/esm/{Dfp-a304d96c.js → Dfp-313e4ebe.js} +8 -8
- package/dist/esm/EventsDeck.js +36 -36
- package/dist/esm/ExternalResources.js +26 -25
- package/dist/esm/Feature.js +3 -3
- package/dist/esm/ForbesHero.js +7 -7
- package/dist/esm/GridContent.js +30 -30
- package/dist/esm/GridHero.js +7 -7
- package/dist/esm/GroupDeck.js +9 -9
- package/dist/esm/HamMagazine.js +21 -21
- package/dist/esm/Hero.js +1 -1
- package/dist/esm/HorizontalArticleListing.js +25 -24
- package/dist/esm/HorizontalHero.js +1 -1
- package/dist/esm/IssueContentDeck.js +7 -7
- package/dist/esm/IssueDeck.js +10 -10
- package/dist/esm/IssueLanding.js +49 -49
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +14 -14
- package/dist/esm/MasterDeck.js +32 -32
- package/dist/esm/MediaSeriesLanding.js +396 -404
- package/dist/esm/NavDvm.js +7 -7
- package/dist/esm/NavMagazine.js +21 -21
- package/dist/esm/NavNative.js +26 -26
- package/dist/esm/NavNormal.js +7 -7
- package/dist/esm/OncliveHero.js +1 -1
- package/dist/esm/OncliveLargeHero.js +7 -7
- package/dist/esm/PageFilter.js +5 -5
- package/dist/esm/PartnerDetailListing.js +31 -30
- package/dist/esm/PopUpModal.js +5 -5
- package/dist/esm/PubSection.js +20 -20
- package/dist/esm/PubToc.js +7 -7
- package/dist/esm/PublicationDeck.js +2 -2
- package/dist/esm/PublicationLanding.js +49 -49
- package/dist/esm/QueueDeckExpanded.js +22 -22
- package/dist/esm/RecentNews.js +1 -1
- package/dist/esm/RelatedContent.js +29 -29
- package/dist/esm/RelatedTopicsDropdown.js +10 -10
- package/dist/esm/Search.js +5 -5
- package/dist/esm/Segment.js +6 -6
- package/dist/esm/SeriesListingDeck.js +12 -12
- package/dist/esm/{SeriesSlider-8414085b.js → SeriesSlider-291e1c9e.js} +12 -12
- package/dist/esm/SideFooter.js +13 -13
- package/dist/esm/{SocialSearchComponent-116b1d5d.js → SocialSearchComponent-c3216d1a.js} +6 -6
- package/dist/esm/TaxonomyCard.js +5 -5
- package/dist/esm/TaxonomyDescription.js +25 -24
- package/dist/esm/TemplateNormal.js +19 -19
- package/dist/esm/ThumbnailCard.js +1 -1
- package/dist/esm/Ustream.js +7 -7
- package/dist/esm/VerticalHero.js +1 -1
- package/dist/esm/VideoProgramLandingPage.js +25 -24
- package/dist/esm/VideoSeriesCard.js +8 -8
- package/dist/esm/VideoSeriesFilter.js +7 -7
- package/dist/esm/VideoSeriesLandingPage.js +24 -24
- package/dist/esm/VideoSeriesListing.js +17 -17
- package/dist/esm/View.js +39 -38
- package/dist/esm/YahooHero.js +7 -7
- package/dist/esm/YoutubeGroup.js +19 -19
- package/dist/esm/{_is-array-3e99e06e.js → _is-array-674f71ec.js} +1 -1
- package/dist/esm/{_iter-detect-7e5e5ce2.js → _iter-detect-48516cd3.js} +8 -8
- package/dist/esm/{_object-pie-133f504a.js → _object-pie-33c40e79.js} +4 -4
- package/dist/esm/{_object-sap-f353c2a9.js → _object-sap-fd3054d0.js} +1 -1
- package/dist/esm/{_object-to-array-0f197f89.js → _object-to-array-8f409e54.js} +2 -2
- package/dist/esm/{_to-object-b50e61c3.js → _to-object-97770c52.js} +4 -4
- package/dist/esm/{asyncToGenerator-7f8f9219.js → asyncToGenerator-585841c0.js} +30 -30
- package/dist/esm/{core.get-iterator-method-133dfacd.js → core.get-iterator-method-d1d5ed02.js} +2 -2
- package/dist/esm/{debounce-533d9748.js → debounce-9207d8ee.js} +2 -2
- package/dist/esm/{define-property-fe54dc9f.js → define-property-ec6d528d.js} +6 -6
- package/dist/esm/{defineProperty-f5ff6f5a.js → defineProperty-ea516b15.js} +1 -1
- package/dist/esm/{eq-bdcbf886.js → eq-b470f743.js} +1 -1
- package/dist/esm/{es6.string.iterator-bc33758b.js → es6.string.iterator-aa6068a3.js} +5 -5
- package/dist/esm/{extends-60e0e1c6.js → extends-31d65aba.js} +8 -8
- package/dist/esm/{get-3c308da4.js → get-1e515072.js} +21 -21
- package/dist/esm/getRelatedArticle.js +9 -11
- package/dist/esm/getRootDocGroup.js +6 -6
- package/dist/esm/getSerializers.js +25 -24
- package/dist/esm/{getTargeting-d0d71a56.js → getTargeting-2d402d66.js} +11 -11
- package/dist/esm/getTargeting.js +8 -8
- package/dist/esm/{index-0dbff1d1.js → index-3f5c03b2.js} +5 -5
- package/dist/esm/{index-79cfd25c.js → index-ccb770c7.js} +4 -4
- package/dist/esm/{index-613fdebe.js → index-f4fe5a50.js} +86 -337
- package/dist/esm/index.js +37 -37
- package/dist/esm/{inherits-a41fe93f.js → inherits-5906fbea.js} +20 -20
- package/dist/esm/{isSymbol-a7e9aafe.js → isSymbol-1981418f.js} +15 -15
- package/dist/esm/{keys-7a3adabf.js → keys-a0b0c7a4.js} +6 -6
- package/dist/esm/{lodash-f97fd99a.js → lodash-ad27652f.js} +9 -57
- package/dist/esm/{main-b5c5aac1.js → main-1450d277.js} +103 -178
- package/dist/esm/{slicedToArray-be2f7a22.js → slicedToArray-cdeaee08.js} +14 -14
- package/dist/esm/stringify-d4839bab.js +15 -0
- package/dist/esm/{toConsumableArray-6d9a4616.js → toConsumableArray-fa2dcda7.js} +9 -9
- package/dist/esm/{toNumber-5aeba6e7.js → toNumber-2f7a84cd.js} +5 -40
- package/dist/esm/{typeof-a286cf0c.js → typeof-e9cea9e8.js} +34 -34
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{web.dom.iterable-4109ff68.js → web.dom.iterable-035980f3.js} +2 -2
- package/package.json +108 -111
- package/dist/cjs/AuthWrapper.js +0 -2957
- package/dist/cjs/faundadb.js +0 -324
- package/dist/cjs/inheritsLoose-b17eb2a8.js +0 -18
- package/dist/cjs/keys-7f2c2108.js +0 -25
- package/dist/cjs/md5-e1ca5797.js +0 -323
- package/dist/cjs/stringify-c9ac1214.js +0 -17
- package/dist/esm/AuthWrapper.js +0 -2951
- package/dist/esm/faundadb.js +0 -316
- package/dist/esm/inheritsLoose-8f901617.js +0 -16
- package/dist/esm/md5-4e42248e.js +0 -321
- package/dist/esm/stringify-59c8f690.js +0 -15
package/dist/cjs/Auth.js
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var asyncToGenerator = require('./asyncToGenerator-
|
|
6
|
-
var stringify = require('./stringify-
|
|
7
|
-
var slicedToArray = require('./slicedToArray-
|
|
5
|
+
var asyncToGenerator = require('./asyncToGenerator-b6a175bf.js');
|
|
6
|
+
var stringify = require('./stringify-01cf47f7.js');
|
|
7
|
+
var slicedToArray = require('./slicedToArray-db24842a.js');
|
|
8
8
|
var React = require('react');
|
|
9
9
|
var Router = require('next/router');
|
|
10
|
-
var _extends = require('./extends-
|
|
10
|
+
var _extends = require('./extends-1e24fc8d.js');
|
|
11
11
|
var reactBootstrap = require('react-bootstrap');
|
|
12
12
|
var useSWR = require('swr');
|
|
13
13
|
var index = require('./index-bd6c9f56.js');
|
|
@@ -15,14 +15,13 @@ var Local = require('passport-local');
|
|
|
15
15
|
var mysql = require('mysql');
|
|
16
16
|
var util = require('./util-6f784d85.js');
|
|
17
17
|
var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
|
|
18
|
-
|
|
19
|
-
require('./
|
|
20
|
-
require('./
|
|
21
|
-
require('./web.dom.iterable-46657b5c.js');
|
|
18
|
+
require('./es6.string.iterator-20d42c53.js');
|
|
19
|
+
require('./_to-object-821a2927.js');
|
|
20
|
+
require('./web.dom.iterable-4480325a.js');
|
|
22
21
|
require('./_library-dd23b178.js');
|
|
23
|
-
require('./core.get-iterator-method-
|
|
24
|
-
require('./_iter-detect-
|
|
25
|
-
require('./_object-pie-
|
|
22
|
+
require('./core.get-iterator-method-b4615fd3.js');
|
|
23
|
+
require('./_iter-detect-2613ffa1.js');
|
|
24
|
+
require('./_object-pie-68c5bcbc.js');
|
|
26
25
|
|
|
27
26
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
28
27
|
|
|
@@ -148,7 +147,7 @@ var returnFormField = function returnFormField(_ref) {
|
|
|
148
147
|
}
|
|
149
148
|
};
|
|
150
149
|
|
|
151
|
-
var _this
|
|
150
|
+
var _this = undefined;
|
|
152
151
|
|
|
153
152
|
var dataHandler = function () {
|
|
154
153
|
var _ref = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator.regenerator.mark(function _callee(api_url, body) {
|
|
@@ -214,7 +213,7 @@ var dataHandler = function () {
|
|
|
214
213
|
return _context.stop();
|
|
215
214
|
}
|
|
216
215
|
}
|
|
217
|
-
}, _callee, _this
|
|
216
|
+
}, _callee, _this, [[0, 20]]);
|
|
218
217
|
}));
|
|
219
218
|
|
|
220
219
|
return function dataHandler(_x, _x2) {
|
|
@@ -410,9 +409,9 @@ var countries = ["United States", "Afghanistan", "Albania", "Algeria", "American
|
|
|
410
409
|
|
|
411
410
|
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'];
|
|
412
411
|
|
|
413
|
-
var _this$
|
|
412
|
+
var _this$1 = undefined;
|
|
414
413
|
|
|
415
|
-
var SignupForm
|
|
414
|
+
var SignupForm = function SignupForm(props) {
|
|
416
415
|
var handleSubmit = function () {
|
|
417
416
|
var _ref3 = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator.regenerator.mark(function _callee3(e) {
|
|
418
417
|
var formData, body, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, key, res;
|
|
@@ -573,7 +572,7 @@ var SignupForm$1 = function SignupForm(props) {
|
|
|
573
572
|
return _context.stop();
|
|
574
573
|
}
|
|
575
574
|
}
|
|
576
|
-
}, _callee, _this$
|
|
575
|
+
}, _callee, _this$1);
|
|
577
576
|
}));
|
|
578
577
|
|
|
579
578
|
return function loadInitData() {
|
|
@@ -640,7 +639,7 @@ var SignupForm$1 = function SignupForm(props) {
|
|
|
640
639
|
return _context2.stop();
|
|
641
640
|
}
|
|
642
641
|
}
|
|
643
|
-
}, _callee2, _this$
|
|
642
|
+
}, _callee2, _this$1);
|
|
644
643
|
}));
|
|
645
644
|
|
|
646
645
|
return function handleOccupationChanged(_x) {
|
|
@@ -790,7 +789,7 @@ var SignupForm$1 = function SignupForm(props) {
|
|
|
790
789
|
|
|
791
790
|
var _this$2 = undefined;
|
|
792
791
|
|
|
793
|
-
var SignupForm = function SignupForm(props) {
|
|
792
|
+
var SignupForm$1 = function SignupForm(props) {
|
|
794
793
|
var handleSubmit = function () {
|
|
795
794
|
var _ref3 = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator.regenerator.mark(function _callee3(e) {
|
|
796
795
|
var formData, body, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, key, res;
|
|
@@ -1325,10 +1324,10 @@ var iron = /*#__PURE__*/Object.freeze({
|
|
|
1325
1324
|
getSession: getSession
|
|
1326
1325
|
});
|
|
1327
1326
|
|
|
1328
|
-
var toStr
|
|
1327
|
+
var toStr = Object.prototype.toString;
|
|
1329
1328
|
|
|
1330
1329
|
var isArguments = function isArguments(value) {
|
|
1331
|
-
var str = toStr
|
|
1330
|
+
var str = toStr.call(value);
|
|
1332
1331
|
var isArgs = str === '[object Arguments]';
|
|
1333
1332
|
if (!isArgs) {
|
|
1334
1333
|
isArgs = str !== '[object Array]' &&
|
|
@@ -1336,16 +1335,16 @@ var isArguments = function isArguments(value) {
|
|
|
1336
1335
|
typeof value === 'object' &&
|
|
1337
1336
|
typeof value.length === 'number' &&
|
|
1338
1337
|
value.length >= 0 &&
|
|
1339
|
-
toStr
|
|
1338
|
+
toStr.call(value.callee) === '[object Function]';
|
|
1340
1339
|
}
|
|
1341
1340
|
return isArgs;
|
|
1342
1341
|
};
|
|
1343
1342
|
|
|
1344
|
-
var keysShim
|
|
1343
|
+
var keysShim;
|
|
1345
1344
|
if (!Object.keys) {
|
|
1346
1345
|
// modified from https://github.com/es-shims/es5-shim
|
|
1347
|
-
var has
|
|
1348
|
-
var toStr$
|
|
1346
|
+
var has = Object.prototype.hasOwnProperty;
|
|
1347
|
+
var toStr$1 = Object.prototype.toString;
|
|
1349
1348
|
var isArgs = isArguments; // eslint-disable-line global-require
|
|
1350
1349
|
var isEnumerable = Object.prototype.propertyIsEnumerable;
|
|
1351
1350
|
var hasDontEnumBug = !isEnumerable.call({ toString: null }, 'toString');
|
|
@@ -1393,7 +1392,7 @@ if (!Object.keys) {
|
|
|
1393
1392
|
if (typeof window === 'undefined') { return false; }
|
|
1394
1393
|
for (var k in window) {
|
|
1395
1394
|
try {
|
|
1396
|
-
if (!excludedKeys['$' + k] && has
|
|
1395
|
+
if (!excludedKeys['$' + k] && has.call(window, k) && window[k] !== null && typeof window[k] === 'object') {
|
|
1397
1396
|
try {
|
|
1398
1397
|
equalsConstructorPrototype(window[k]);
|
|
1399
1398
|
} catch (e) {
|
|
@@ -1418,11 +1417,11 @@ if (!Object.keys) {
|
|
|
1418
1417
|
}
|
|
1419
1418
|
};
|
|
1420
1419
|
|
|
1421
|
-
keysShim
|
|
1420
|
+
keysShim = function keys(object) {
|
|
1422
1421
|
var isObject = object !== null && typeof object === 'object';
|
|
1423
|
-
var isFunction = toStr$
|
|
1422
|
+
var isFunction = toStr$1.call(object) === '[object Function]';
|
|
1424
1423
|
var isArguments = isArgs(object);
|
|
1425
|
-
var isString = isObject && toStr$
|
|
1424
|
+
var isString = isObject && toStr$1.call(object) === '[object String]';
|
|
1426
1425
|
var theKeys = [];
|
|
1427
1426
|
|
|
1428
1427
|
if (!isObject && !isFunction && !isArguments) {
|
|
@@ -1430,7 +1429,7 @@ if (!Object.keys) {
|
|
|
1430
1429
|
}
|
|
1431
1430
|
|
|
1432
1431
|
var skipProto = hasProtoEnumBug && isFunction;
|
|
1433
|
-
if (isString && object.length > 0 && !has
|
|
1432
|
+
if (isString && object.length > 0 && !has.call(object, 0)) {
|
|
1434
1433
|
for (var i = 0; i < object.length; ++i) {
|
|
1435
1434
|
theKeys.push(String(i));
|
|
1436
1435
|
}
|
|
@@ -1442,7 +1441,7 @@ if (!Object.keys) {
|
|
|
1442
1441
|
}
|
|
1443
1442
|
} else {
|
|
1444
1443
|
for (var name in object) {
|
|
1445
|
-
if (!(skipProto && name === 'prototype') && has
|
|
1444
|
+
if (!(skipProto && name === 'prototype') && has.call(object, name)) {
|
|
1446
1445
|
theKeys.push(String(name));
|
|
1447
1446
|
}
|
|
1448
1447
|
}
|
|
@@ -1452,7 +1451,7 @@ if (!Object.keys) {
|
|
|
1452
1451
|
var skipConstructor = equalsConstructorPrototypeIfNotBuggy(object);
|
|
1453
1452
|
|
|
1454
1453
|
for (var k = 0; k < dontEnums.length; ++k) {
|
|
1455
|
-
if (!(skipConstructor && dontEnums[k] === 'constructor') && has
|
|
1454
|
+
if (!(skipConstructor && dontEnums[k] === 'constructor') && has.call(object, dontEnums[k])) {
|
|
1456
1455
|
theKeys.push(dontEnums[k]);
|
|
1457
1456
|
}
|
|
1458
1457
|
}
|
|
@@ -1460,17 +1459,17 @@ if (!Object.keys) {
|
|
|
1460
1459
|
return theKeys;
|
|
1461
1460
|
};
|
|
1462
1461
|
}
|
|
1463
|
-
var implementation
|
|
1462
|
+
var implementation = keysShim;
|
|
1464
1463
|
|
|
1465
|
-
var slice
|
|
1464
|
+
var slice = Array.prototype.slice;
|
|
1466
1465
|
|
|
1467
1466
|
|
|
1468
1467
|
var origKeys = Object.keys;
|
|
1469
|
-
var keysShim = origKeys ? function keys(o) { return origKeys(o); } : implementation
|
|
1468
|
+
var keysShim$1 = origKeys ? function keys(o) { return origKeys(o); } : implementation;
|
|
1470
1469
|
|
|
1471
1470
|
var originalKeys = Object.keys;
|
|
1472
1471
|
|
|
1473
|
-
keysShim.shim = function shimObjectKeys() {
|
|
1472
|
+
keysShim$1.shim = function shimObjectKeys() {
|
|
1474
1473
|
if (Object.keys) {
|
|
1475
1474
|
var keysWorksWithArguments = (function () {
|
|
1476
1475
|
// Safari 5.0 bug
|
|
@@ -1480,27 +1479,27 @@ keysShim.shim = function shimObjectKeys() {
|
|
|
1480
1479
|
if (!keysWorksWithArguments) {
|
|
1481
1480
|
Object.keys = function keys(object) { // eslint-disable-line func-name-matching
|
|
1482
1481
|
if (isArguments(object)) {
|
|
1483
|
-
return originalKeys(slice
|
|
1482
|
+
return originalKeys(slice.call(object));
|
|
1484
1483
|
}
|
|
1485
1484
|
return originalKeys(object);
|
|
1486
1485
|
};
|
|
1487
1486
|
}
|
|
1488
1487
|
} else {
|
|
1489
|
-
Object.keys = keysShim;
|
|
1488
|
+
Object.keys = keysShim$1;
|
|
1490
1489
|
}
|
|
1491
|
-
return Object.keys || keysShim;
|
|
1490
|
+
return Object.keys || keysShim$1;
|
|
1492
1491
|
};
|
|
1493
1492
|
|
|
1494
|
-
var objectKeys = keysShim;
|
|
1493
|
+
var objectKeys = keysShim$1;
|
|
1495
1494
|
|
|
1496
|
-
var hasSymbols
|
|
1495
|
+
var hasSymbols = typeof Symbol === 'function' && typeof Symbol('foo') === 'symbol';
|
|
1497
1496
|
|
|
1498
|
-
var toStr$
|
|
1497
|
+
var toStr$2 = Object.prototype.toString;
|
|
1499
1498
|
var concat = Array.prototype.concat;
|
|
1500
1499
|
var origDefineProperty = Object.defineProperty;
|
|
1501
1500
|
|
|
1502
1501
|
var isFunction = function (fn) {
|
|
1503
|
-
return typeof fn === 'function' && toStr$
|
|
1502
|
+
return typeof fn === 'function' && toStr$2.call(fn) === '[object Function]';
|
|
1504
1503
|
};
|
|
1505
1504
|
|
|
1506
1505
|
var arePropertyDescriptorsSupported = function () {
|
|
@@ -1537,7 +1536,7 @@ var defineProperty = function (object, name, value, predicate) {
|
|
|
1537
1536
|
var defineProperties = function (object, map) {
|
|
1538
1537
|
var predicates = arguments.length > 2 ? arguments[2] : {};
|
|
1539
1538
|
var props = objectKeys(map);
|
|
1540
|
-
if (hasSymbols
|
|
1539
|
+
if (hasSymbols) {
|
|
1541
1540
|
props = concat.call(props, Object.getOwnPropertySymbols(map));
|
|
1542
1541
|
}
|
|
1543
1542
|
for (var i = 0; i < props.length; i += 1) {
|
|
@@ -1552,23 +1551,23 @@ var defineProperties_1 = defineProperties;
|
|
|
1552
1551
|
/* eslint no-invalid-this: 1 */
|
|
1553
1552
|
|
|
1554
1553
|
var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
|
|
1555
|
-
var slice = Array.prototype.slice;
|
|
1556
|
-
var toStr$
|
|
1554
|
+
var slice$1 = Array.prototype.slice;
|
|
1555
|
+
var toStr$3 = Object.prototype.toString;
|
|
1557
1556
|
var funcType = '[object Function]';
|
|
1558
1557
|
|
|
1559
|
-
var implementation$
|
|
1558
|
+
var implementation$1 = function bind(that) {
|
|
1560
1559
|
var target = this;
|
|
1561
|
-
if (typeof target !== 'function' || toStr$
|
|
1560
|
+
if (typeof target !== 'function' || toStr$3.call(target) !== funcType) {
|
|
1562
1561
|
throw new TypeError(ERROR_MESSAGE + target);
|
|
1563
1562
|
}
|
|
1564
|
-
var args = slice.call(arguments, 1);
|
|
1563
|
+
var args = slice$1.call(arguments, 1);
|
|
1565
1564
|
|
|
1566
1565
|
var bound;
|
|
1567
1566
|
var binder = function () {
|
|
1568
1567
|
if (this instanceof bound) {
|
|
1569
1568
|
var result = target.apply(
|
|
1570
1569
|
this,
|
|
1571
|
-
args.concat(slice.call(arguments))
|
|
1570
|
+
args.concat(slice$1.call(arguments))
|
|
1572
1571
|
);
|
|
1573
1572
|
if (Object(result) === result) {
|
|
1574
1573
|
return result;
|
|
@@ -1577,7 +1576,7 @@ var implementation$2 = function bind(that) {
|
|
|
1577
1576
|
} else {
|
|
1578
1577
|
return target.apply(
|
|
1579
1578
|
that,
|
|
1580
|
-
args.concat(slice.call(arguments))
|
|
1579
|
+
args.concat(slice$1.call(arguments))
|
|
1581
1580
|
);
|
|
1582
1581
|
}
|
|
1583
1582
|
};
|
|
@@ -1600,7 +1599,7 @@ var implementation$2 = function bind(that) {
|
|
|
1600
1599
|
return bound;
|
|
1601
1600
|
};
|
|
1602
1601
|
|
|
1603
|
-
var functionBind = Function.prototype.bind || implementation$
|
|
1602
|
+
var functionBind = Function.prototype.bind || implementation$1;
|
|
1604
1603
|
|
|
1605
1604
|
/* eslint complexity: [2, 18], max-statements: [2, 33] */
|
|
1606
1605
|
var shams = function hasSymbols() {
|
|
@@ -1625,7 +1624,7 @@ var shams = function hasSymbols() {
|
|
|
1625
1624
|
|
|
1626
1625
|
var symVal = 42;
|
|
1627
1626
|
obj[sym] = symVal;
|
|
1628
|
-
for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax
|
|
1627
|
+
for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax
|
|
1629
1628
|
if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
|
|
1630
1629
|
|
|
1631
1630
|
if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
|
|
@@ -1643,10 +1642,10 @@ var shams = function hasSymbols() {
|
|
|
1643
1642
|
return true;
|
|
1644
1643
|
};
|
|
1645
1644
|
|
|
1646
|
-
var origSymbol =
|
|
1645
|
+
var origSymbol = _commonjsHelpers.commonjsGlobal.Symbol;
|
|
1647
1646
|
|
|
1648
1647
|
|
|
1649
|
-
var hasSymbols$
|
|
1648
|
+
var hasSymbols$1 = function hasNativeSymbols() {
|
|
1650
1649
|
if (typeof origSymbol !== 'function') { return false; }
|
|
1651
1650
|
if (typeof Symbol !== 'function') { return false; }
|
|
1652
1651
|
if (typeof origSymbol('foo') !== 'symbol') { return false; }
|
|
@@ -1659,9 +1658,9 @@ var src = functionBind.call(Function.call, Object.prototype.hasOwnProperty);
|
|
|
1659
1658
|
|
|
1660
1659
|
var undefined$1;
|
|
1661
1660
|
|
|
1662
|
-
var $SyntaxError
|
|
1661
|
+
var $SyntaxError = SyntaxError;
|
|
1663
1662
|
var $Function = Function;
|
|
1664
|
-
var $TypeError
|
|
1663
|
+
var $TypeError = TypeError;
|
|
1665
1664
|
|
|
1666
1665
|
// eslint-disable-next-line consistent-return
|
|
1667
1666
|
var getEvalledConstructor = function (expressionSyntax) {
|
|
@@ -1670,19 +1669,19 @@ var getEvalledConstructor = function (expressionSyntax) {
|
|
|
1670
1669
|
} catch (e) {}
|
|
1671
1670
|
};
|
|
1672
1671
|
|
|
1673
|
-
var $gOPD
|
|
1674
|
-
if ($gOPD
|
|
1672
|
+
var $gOPD = Object.getOwnPropertyDescriptor;
|
|
1673
|
+
if ($gOPD) {
|
|
1675
1674
|
try {
|
|
1676
|
-
$gOPD
|
|
1675
|
+
$gOPD({}, '');
|
|
1677
1676
|
} catch (e) {
|
|
1678
|
-
$gOPD
|
|
1677
|
+
$gOPD = null; // this is IE 8, which has a broken gOPD
|
|
1679
1678
|
}
|
|
1680
1679
|
}
|
|
1681
1680
|
|
|
1682
1681
|
var throwTypeError = function () {
|
|
1683
|
-
throw new $TypeError
|
|
1682
|
+
throw new $TypeError();
|
|
1684
1683
|
};
|
|
1685
|
-
var ThrowTypeError = $gOPD
|
|
1684
|
+
var ThrowTypeError = $gOPD
|
|
1686
1685
|
? (function () {
|
|
1687
1686
|
try {
|
|
1688
1687
|
// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
|
|
@@ -1691,7 +1690,7 @@ var ThrowTypeError = $gOPD$2
|
|
|
1691
1690
|
} catch (calleeThrows) {
|
|
1692
1691
|
try {
|
|
1693
1692
|
// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
|
|
1694
|
-
return $gOPD
|
|
1693
|
+
return $gOPD(arguments, 'callee').get;
|
|
1695
1694
|
} catch (gOPDthrows) {
|
|
1696
1695
|
return throwTypeError;
|
|
1697
1696
|
}
|
|
@@ -1699,7 +1698,7 @@ var ThrowTypeError = $gOPD$2
|
|
|
1699
1698
|
}())
|
|
1700
1699
|
: throwTypeError;
|
|
1701
1700
|
|
|
1702
|
-
var hasSymbols$2 = hasSymbols$
|
|
1701
|
+
var hasSymbols$2 = hasSymbols$1();
|
|
1703
1702
|
|
|
1704
1703
|
var getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
|
|
1705
1704
|
|
|
@@ -1760,10 +1759,10 @@ var INTRINSICS = {
|
|
|
1760
1759
|
'%String%': String,
|
|
1761
1760
|
'%StringIteratorPrototype%': hasSymbols$2 ? getProto(''[Symbol.iterator]()) : undefined$1,
|
|
1762
1761
|
'%Symbol%': hasSymbols$2 ? Symbol : undefined$1,
|
|
1763
|
-
'%SyntaxError%': $SyntaxError
|
|
1762
|
+
'%SyntaxError%': $SyntaxError,
|
|
1764
1763
|
'%ThrowTypeError%': ThrowTypeError,
|
|
1765
1764
|
'%TypedArray%': TypedArray,
|
|
1766
|
-
'%TypeError%': $TypeError
|
|
1765
|
+
'%TypeError%': $TypeError,
|
|
1767
1766
|
'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$1 : Uint8Array,
|
|
1768
1767
|
'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$1 : Uint8ClampedArray,
|
|
1769
1768
|
'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$1 : Uint16Array,
|
|
@@ -1855,7 +1854,7 @@ var LEGACY_ALIASES = {
|
|
|
1855
1854
|
|
|
1856
1855
|
|
|
1857
1856
|
|
|
1858
|
-
var $concat
|
|
1857
|
+
var $concat = functionBind.call(Function.call, Array.prototype.concat);
|
|
1859
1858
|
var $spliceApply = functionBind.call(Function.apply, Array.prototype.splice);
|
|
1860
1859
|
var $replace = functionBind.call(Function.call, String.prototype.replace);
|
|
1861
1860
|
var $strSlice = functionBind.call(Function.call, String.prototype.slice);
|
|
@@ -1867,9 +1866,9 @@ var stringToPath = function stringToPath(string) {
|
|
|
1867
1866
|
var first = $strSlice(string, 0, 1);
|
|
1868
1867
|
var last = $strSlice(string, -1);
|
|
1869
1868
|
if (first === '%' && last !== '%') {
|
|
1870
|
-
throw new $SyntaxError
|
|
1869
|
+
throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
|
|
1871
1870
|
} else if (last === '%' && first !== '%') {
|
|
1872
|
-
throw new $SyntaxError
|
|
1871
|
+
throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
|
|
1873
1872
|
}
|
|
1874
1873
|
var result = [];
|
|
1875
1874
|
$replace(string, rePropName, function (match, number, quote, subString) {
|
|
@@ -1893,7 +1892,7 @@ var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
|
|
|
1893
1892
|
value = doEval(intrinsicName);
|
|
1894
1893
|
}
|
|
1895
1894
|
if (typeof value === 'undefined' && !allowMissing) {
|
|
1896
|
-
throw new $TypeError
|
|
1895
|
+
throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
|
|
1897
1896
|
}
|
|
1898
1897
|
|
|
1899
1898
|
return {
|
|
@@ -1903,15 +1902,15 @@ var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
|
|
|
1903
1902
|
};
|
|
1904
1903
|
}
|
|
1905
1904
|
|
|
1906
|
-
throw new $SyntaxError
|
|
1905
|
+
throw new $SyntaxError('intrinsic ' + name + ' does not exist!');
|
|
1907
1906
|
};
|
|
1908
1907
|
|
|
1909
1908
|
var getIntrinsic = function GetIntrinsic(name, allowMissing) {
|
|
1910
1909
|
if (typeof name !== 'string' || name.length === 0) {
|
|
1911
|
-
throw new $TypeError
|
|
1910
|
+
throw new $TypeError('intrinsic name must be a non-empty string');
|
|
1912
1911
|
}
|
|
1913
1912
|
if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
|
|
1914
|
-
throw new $TypeError
|
|
1913
|
+
throw new $TypeError('"allowMissing" argument must be a boolean');
|
|
1915
1914
|
}
|
|
1916
1915
|
|
|
1917
1916
|
var parts = stringToPath(name);
|
|
@@ -1925,7 +1924,7 @@ var getIntrinsic = function GetIntrinsic(name, allowMissing) {
|
|
|
1925
1924
|
var alias = intrinsic.alias;
|
|
1926
1925
|
if (alias) {
|
|
1927
1926
|
intrinsicBaseName = alias[0];
|
|
1928
|
-
$spliceApply(parts, $concat
|
|
1927
|
+
$spliceApply(parts, $concat([0, 1], alias));
|
|
1929
1928
|
}
|
|
1930
1929
|
|
|
1931
1930
|
for (var i = 1, isOwn = true; i < parts.length; i += 1) {
|
|
@@ -1939,7 +1938,7 @@ var getIntrinsic = function GetIntrinsic(name, allowMissing) {
|
|
|
1939
1938
|
)
|
|
1940
1939
|
&& first !== last
|
|
1941
1940
|
) {
|
|
1942
|
-
throw new $SyntaxError
|
|
1941
|
+
throw new $SyntaxError('property names with quotes must have matching quotes');
|
|
1943
1942
|
}
|
|
1944
1943
|
if (part === 'constructor' || !isOwn) {
|
|
1945
1944
|
skipFurtherCaching = true;
|
|
@@ -1953,12 +1952,12 @@ var getIntrinsic = function GetIntrinsic(name, allowMissing) {
|
|
|
1953
1952
|
} else if (value != null) {
|
|
1954
1953
|
if (!(part in value)) {
|
|
1955
1954
|
if (!allowMissing) {
|
|
1956
|
-
throw new $TypeError
|
|
1955
|
+
throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
1957
1956
|
}
|
|
1958
1957
|
return void undefined$1;
|
|
1959
1958
|
}
|
|
1960
|
-
if ($gOPD
|
|
1961
|
-
var desc = $gOPD
|
|
1959
|
+
if ($gOPD && (i + 1) >= parts.length) {
|
|
1960
|
+
var desc = $gOPD(value, part);
|
|
1962
1961
|
isOwn = !!desc;
|
|
1963
1962
|
|
|
1964
1963
|
// By convention, when a data property is converted to an accessor
|
|
@@ -2038,7 +2037,7 @@ callBind.apply;
|
|
|
2038
2037
|
|
|
2039
2038
|
var $indexOf = callBind(getIntrinsic('String.prototype.indexOf'));
|
|
2040
2039
|
|
|
2041
|
-
var callBound
|
|
2040
|
+
var callBound = function callBoundIntrinsic(name, allowMissing) {
|
|
2042
2041
|
var intrinsic = getIntrinsic(name, !!allowMissing);
|
|
2043
2042
|
if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
|
|
2044
2043
|
return callBind(intrinsic);
|
|
@@ -2059,7 +2058,7 @@ if ($defineProperty) {
|
|
|
2059
2058
|
|
|
2060
2059
|
|
|
2061
2060
|
|
|
2062
|
-
var $isEnumerable
|
|
2061
|
+
var $isEnumerable = callBound('Object.prototype.propertyIsEnumerable');
|
|
2063
2062
|
|
|
2064
2063
|
// eslint-disable-next-line max-params
|
|
2065
2064
|
var DefineOwnProperty = function DefineOwnProperty(IsDataDescriptor, SameValue, FromPropertyDescriptor, O, P, desc) {
|
|
@@ -2073,7 +2072,7 @@ var DefineOwnProperty = function DefineOwnProperty(IsDataDescriptor, SameValue,
|
|
|
2073
2072
|
}
|
|
2074
2073
|
|
|
2075
2074
|
// fallback for ES3
|
|
2076
|
-
if (P in O && $isEnumerable
|
|
2075
|
+
if (P in O && $isEnumerable(O, P) !== !!desc['[[Enumerable]]']) {
|
|
2077
2076
|
// a non-enumerable existing property
|
|
2078
2077
|
return false;
|
|
2079
2078
|
}
|
|
@@ -2088,13 +2087,13 @@ var DefineOwnProperty = function DefineOwnProperty(IsDataDescriptor, SameValue,
|
|
|
2088
2087
|
return true;
|
|
2089
2088
|
};
|
|
2090
2089
|
|
|
2091
|
-
var $TypeError$
|
|
2092
|
-
var $SyntaxError = getIntrinsic('%SyntaxError%');
|
|
2090
|
+
var $TypeError$1 = getIntrinsic('%TypeError%');
|
|
2091
|
+
var $SyntaxError$1 = getIntrinsic('%SyntaxError%');
|
|
2093
2092
|
|
|
2094
2093
|
|
|
2095
2094
|
|
|
2096
2095
|
var predicates = {
|
|
2097
|
-
// https://
|
|
2096
|
+
// https://ecma-international.org/ecma-262/6.0/#sec-property-descriptor-specification-type
|
|
2098
2097
|
'Property Descriptor': function isPropertyDescriptor(Type, Desc) {
|
|
2099
2098
|
if (Type(Desc) !== 'Object') {
|
|
2100
2099
|
return false;
|
|
@@ -2117,7 +2116,7 @@ var predicates = {
|
|
|
2117
2116
|
var isData = src(Desc, '[[Value]]');
|
|
2118
2117
|
var IsAccessor = src(Desc, '[[Get]]') || src(Desc, '[[Set]]');
|
|
2119
2118
|
if (isData && IsAccessor) {
|
|
2120
|
-
throw new $TypeError$
|
|
2119
|
+
throw new $TypeError$1('Property Descriptors may not be both accessor and data descriptors');
|
|
2121
2120
|
}
|
|
2122
2121
|
return true;
|
|
2123
2122
|
}
|
|
@@ -2126,16 +2125,16 @@ var predicates = {
|
|
|
2126
2125
|
var assertRecord = function assertRecord(Type, recordType, argumentName, value) {
|
|
2127
2126
|
var predicate = predicates[recordType];
|
|
2128
2127
|
if (typeof predicate !== 'function') {
|
|
2129
|
-
throw new $SyntaxError('unknown record type: ' + recordType);
|
|
2128
|
+
throw new $SyntaxError$1('unknown record type: ' + recordType);
|
|
2130
2129
|
}
|
|
2131
2130
|
if (!predicate(Type, value)) {
|
|
2132
|
-
throw new $TypeError$
|
|
2131
|
+
throw new $TypeError$1(argumentName + ' must be a ' + recordType);
|
|
2133
2132
|
}
|
|
2134
2133
|
};
|
|
2135
2134
|
|
|
2136
|
-
// https://
|
|
2135
|
+
// https://ecma-international.org/ecma-262/5.1/#sec-8
|
|
2137
2136
|
|
|
2138
|
-
var Type
|
|
2137
|
+
var Type = function Type(x) {
|
|
2139
2138
|
if (x === null) {
|
|
2140
2139
|
return 'Null';
|
|
2141
2140
|
}
|
|
@@ -2156,16 +2155,16 @@ var Type$1 = function Type(x) {
|
|
|
2156
2155
|
}
|
|
2157
2156
|
};
|
|
2158
2157
|
|
|
2159
|
-
// https://
|
|
2158
|
+
// https://ecma-international.org/ecma-262/11.0/#sec-ecmascript-data-types-and-values
|
|
2160
2159
|
|
|
2161
|
-
var Type = function Type(x) {
|
|
2160
|
+
var Type$1 = function Type$1(x) {
|
|
2162
2161
|
if (typeof x === 'symbol') {
|
|
2163
2162
|
return 'Symbol';
|
|
2164
2163
|
}
|
|
2165
2164
|
if (typeof x === 'bigint') {
|
|
2166
2165
|
return 'BigInt';
|
|
2167
2166
|
}
|
|
2168
|
-
return Type
|
|
2167
|
+
return Type(x);
|
|
2169
2168
|
};
|
|
2170
2169
|
|
|
2171
2170
|
// https://ecma-international.org/ecma-262/6.0/#sec-frompropertydescriptor
|
|
@@ -2175,7 +2174,7 @@ var FromPropertyDescriptor = function FromPropertyDescriptor(Desc) {
|
|
|
2175
2174
|
return Desc;
|
|
2176
2175
|
}
|
|
2177
2176
|
|
|
2178
|
-
assertRecord(Type, 'Property Descriptor', 'Desc', Desc);
|
|
2177
|
+
assertRecord(Type$1, 'Property Descriptor', 'Desc', Desc);
|
|
2179
2178
|
|
|
2180
2179
|
var obj = {};
|
|
2181
2180
|
if ('[[Value]]' in Desc) {
|
|
@@ -2214,12 +2213,12 @@ var getOwnPropertyDescriptor = $gOPD$1;
|
|
|
2214
2213
|
var $Array = getIntrinsic('%Array%');
|
|
2215
2214
|
|
|
2216
2215
|
// eslint-disable-next-line global-require
|
|
2217
|
-
var toStr$
|
|
2216
|
+
var toStr$4 = !$Array.isArray && callBound('Object.prototype.toString');
|
|
2218
2217
|
|
|
2219
2218
|
// https://ecma-international.org/ecma-262/6.0/#sec-isarray
|
|
2220
2219
|
|
|
2221
2220
|
var IsArray = $Array.isArray || function IsArray(argument) {
|
|
2222
|
-
return toStr$
|
|
2221
|
+
return toStr$4(argument) === '[object Array]';
|
|
2223
2222
|
};
|
|
2224
2223
|
|
|
2225
2224
|
// https://ecma-international.org/ecma-262/6.0/#sec-ispropertykey
|
|
@@ -2228,16 +2227,16 @@ var IsPropertyKey = function IsPropertyKey(argument) {
|
|
|
2228
2227
|
return typeof argument === 'string' || typeof argument === 'symbol';
|
|
2229
2228
|
};
|
|
2230
2229
|
|
|
2231
|
-
var hasSymbols$
|
|
2232
|
-
var hasToStringTag
|
|
2233
|
-
var has;
|
|
2230
|
+
var hasSymbols$3 = hasSymbols$1();
|
|
2231
|
+
var hasToStringTag = hasSymbols$3 && typeof Symbol.toStringTag === 'symbol';
|
|
2232
|
+
var has$1;
|
|
2234
2233
|
var $exec;
|
|
2235
2234
|
var isRegexMarker;
|
|
2236
2235
|
var badStringifier;
|
|
2237
2236
|
|
|
2238
|
-
if (hasToStringTag
|
|
2239
|
-
has = callBound
|
|
2240
|
-
$exec = callBound
|
|
2237
|
+
if (hasToStringTag) {
|
|
2238
|
+
has$1 = callBound('Object.prototype.hasOwnProperty');
|
|
2239
|
+
$exec = callBound('RegExp.prototype.exec');
|
|
2241
2240
|
isRegexMarker = {};
|
|
2242
2241
|
|
|
2243
2242
|
var throwRegexMarker = function () {
|
|
@@ -2253,11 +2252,11 @@ if (hasToStringTag$1) {
|
|
|
2253
2252
|
}
|
|
2254
2253
|
}
|
|
2255
2254
|
|
|
2256
|
-
var $toString = callBound
|
|
2255
|
+
var $toString = callBound('Object.prototype.toString');
|
|
2257
2256
|
var gOPD = Object.getOwnPropertyDescriptor;
|
|
2258
2257
|
var regexClass = '[object RegExp]';
|
|
2259
2258
|
|
|
2260
|
-
var isRegex = hasToStringTag
|
|
2259
|
+
var isRegex = hasToStringTag
|
|
2261
2260
|
// eslint-disable-next-line consistent-return
|
|
2262
2261
|
? function isRegex(value) {
|
|
2263
2262
|
if (!value || typeof value !== 'object') {
|
|
@@ -2265,7 +2264,7 @@ var isRegex = hasToStringTag$1
|
|
|
2265
2264
|
}
|
|
2266
2265
|
|
|
2267
2266
|
var descriptor = gOPD(value, 'lastIndex');
|
|
2268
|
-
var hasLastIndexDataProperty = descriptor && has(descriptor, 'value');
|
|
2267
|
+
var hasLastIndexDataProperty = descriptor && has$1(descriptor, 'value');
|
|
2269
2268
|
if (!hasLastIndexDataProperty) {
|
|
2270
2269
|
return false;
|
|
2271
2270
|
}
|
|
@@ -2285,7 +2284,7 @@ var isRegex = hasToStringTag$1
|
|
|
2285
2284
|
return $toString(value) === regexClass;
|
|
2286
2285
|
};
|
|
2287
2286
|
|
|
2288
|
-
// http://
|
|
2287
|
+
// http://ecma-international.org/ecma-262/5.1/#sec-9.2
|
|
2289
2288
|
|
|
2290
2289
|
var ToBoolean = function ToBoolean(value) { return !!value; };
|
|
2291
2290
|
|
|
@@ -2352,10 +2351,10 @@ var tryFunctionObject = function tryFunctionToStr(value) {
|
|
|
2352
2351
|
return false;
|
|
2353
2352
|
}
|
|
2354
2353
|
};
|
|
2355
|
-
var toStr = Object.prototype.toString;
|
|
2354
|
+
var toStr$5 = Object.prototype.toString;
|
|
2356
2355
|
var fnClass = '[object Function]';
|
|
2357
2356
|
var genClass = '[object GeneratorFunction]';
|
|
2358
|
-
var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
|
|
2357
|
+
var hasToStringTag$1 = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
|
|
2359
2358
|
/* globals document: false */
|
|
2360
2359
|
var documentDotAll = typeof document === 'object' && typeof document.all === 'undefined' && document.all !== undefined ? document.all : {};
|
|
2361
2360
|
|
|
@@ -2377,27 +2376,27 @@ var isCallable = reflectApply
|
|
|
2377
2376
|
if (!value) { return false; }
|
|
2378
2377
|
if (typeof value !== 'function' && typeof value !== 'object') { return false; }
|
|
2379
2378
|
if (typeof value === 'function' && !value.prototype) { return true; }
|
|
2380
|
-
if (hasToStringTag) { return tryFunctionObject(value); }
|
|
2379
|
+
if (hasToStringTag$1) { return tryFunctionObject(value); }
|
|
2381
2380
|
if (isES6ClassFn(value)) { return false; }
|
|
2382
|
-
var strClass = toStr.call(value);
|
|
2381
|
+
var strClass = toStr$5.call(value);
|
|
2383
2382
|
return strClass === fnClass || strClass === genClass;
|
|
2384
2383
|
};
|
|
2385
2384
|
|
|
2386
|
-
// http://
|
|
2385
|
+
// http://ecma-international.org/ecma-262/5.1/#sec-9.11
|
|
2387
2386
|
|
|
2388
2387
|
var IsCallable = isCallable;
|
|
2389
2388
|
|
|
2390
|
-
var $TypeError$
|
|
2389
|
+
var $TypeError$2 = getIntrinsic('%TypeError%');
|
|
2391
2390
|
|
|
2392
2391
|
|
|
2393
2392
|
|
|
2394
2393
|
|
|
2395
2394
|
|
|
2396
|
-
// https://
|
|
2395
|
+
// https://ecma-international.org/ecma-262/5.1/#sec-8.10.5
|
|
2397
2396
|
|
|
2398
2397
|
var ToPropertyDescriptor = function ToPropertyDescriptor(Obj) {
|
|
2399
|
-
if (Type(Obj) !== 'Object') {
|
|
2400
|
-
throw new $TypeError$
|
|
2398
|
+
if (Type$1(Obj) !== 'Object') {
|
|
2399
|
+
throw new $TypeError$2('ToPropertyDescriptor requires an object');
|
|
2401
2400
|
}
|
|
2402
2401
|
|
|
2403
2402
|
var desc = {};
|
|
@@ -2416,29 +2415,29 @@ var ToPropertyDescriptor = function ToPropertyDescriptor(Obj) {
|
|
|
2416
2415
|
if (src(Obj, 'get')) {
|
|
2417
2416
|
var getter = Obj.get;
|
|
2418
2417
|
if (typeof getter !== 'undefined' && !IsCallable(getter)) {
|
|
2419
|
-
throw new $TypeError$
|
|
2418
|
+
throw new $TypeError$2('getter must be a function');
|
|
2420
2419
|
}
|
|
2421
2420
|
desc['[[Get]]'] = getter;
|
|
2422
2421
|
}
|
|
2423
2422
|
if (src(Obj, 'set')) {
|
|
2424
2423
|
var setter = Obj.set;
|
|
2425
2424
|
if (typeof setter !== 'undefined' && !IsCallable(setter)) {
|
|
2426
|
-
throw new $TypeError$
|
|
2425
|
+
throw new $TypeError$2('setter must be a function');
|
|
2427
2426
|
}
|
|
2428
2427
|
desc['[[Set]]'] = setter;
|
|
2429
2428
|
}
|
|
2430
2429
|
|
|
2431
2430
|
if ((src(desc, '[[Get]]') || src(desc, '[[Set]]')) && (src(desc, '[[Value]]') || src(desc, '[[Writable]]'))) {
|
|
2432
|
-
throw new $TypeError$
|
|
2431
|
+
throw new $TypeError$2('Invalid property descriptor. Cannot both specify accessors and a value or writable attribute');
|
|
2433
2432
|
}
|
|
2434
2433
|
return desc;
|
|
2435
2434
|
};
|
|
2436
2435
|
|
|
2437
|
-
var $TypeError$
|
|
2436
|
+
var $TypeError$3 = getIntrinsic('%TypeError%');
|
|
2438
2437
|
|
|
2439
2438
|
|
|
2440
2439
|
|
|
2441
|
-
var $isEnumerable = callBound
|
|
2440
|
+
var $isEnumerable$1 = callBound('Object.prototype.propertyIsEnumerable');
|
|
2442
2441
|
|
|
2443
2442
|
|
|
2444
2443
|
|
|
@@ -2451,11 +2450,11 @@ var $isEnumerable = callBound$1('Object.prototype.propertyIsEnumerable');
|
|
|
2451
2450
|
// https://ecma-international.org/ecma-262/6.0/#sec-ordinarygetownproperty
|
|
2452
2451
|
|
|
2453
2452
|
var OrdinaryGetOwnProperty = function OrdinaryGetOwnProperty(O, P) {
|
|
2454
|
-
if (Type(O) !== 'Object') {
|
|
2455
|
-
throw new $TypeError$
|
|
2453
|
+
if (Type$1(O) !== 'Object') {
|
|
2454
|
+
throw new $TypeError$3('Assertion failed: O must be an Object');
|
|
2456
2455
|
}
|
|
2457
2456
|
if (!IsPropertyKey(P)) {
|
|
2458
|
-
throw new $TypeError$
|
|
2457
|
+
throw new $TypeError$3('Assertion failed: P must be a Property Key');
|
|
2459
2458
|
}
|
|
2460
2459
|
if (!src(O, P)) {
|
|
2461
2460
|
return void 0;
|
|
@@ -2466,7 +2465,7 @@ var OrdinaryGetOwnProperty = function OrdinaryGetOwnProperty(O, P) {
|
|
|
2466
2465
|
var regexLastIndex = IsRegExp(O) && P === 'lastIndex';
|
|
2467
2466
|
return {
|
|
2468
2467
|
'[[Configurable]]': !(arrayLength || regexLastIndex),
|
|
2469
|
-
'[[Enumerable]]': $isEnumerable(O, P),
|
|
2468
|
+
'[[Enumerable]]': $isEnumerable$1(O, P),
|
|
2470
2469
|
'[[Value]]': O[P],
|
|
2471
2470
|
'[[Writable]]': true
|
|
2472
2471
|
};
|
|
@@ -2481,7 +2480,7 @@ var IsDataDescriptor = function IsDataDescriptor(Desc) {
|
|
|
2481
2480
|
return false;
|
|
2482
2481
|
}
|
|
2483
2482
|
|
|
2484
|
-
assertRecord(Type, 'Property Descriptor', 'Desc', Desc);
|
|
2483
|
+
assertRecord(Type$1, 'Property Descriptor', 'Desc', Desc);
|
|
2485
2484
|
|
|
2486
2485
|
if (!src(Desc, '[[Value]]') && !src(Desc, '[[Writable]]')) {
|
|
2487
2486
|
return false;
|
|
@@ -2494,12 +2493,12 @@ var isPrimitive = function isPrimitive(value) {
|
|
|
2494
2493
|
return value === null || (typeof value !== 'function' && typeof value !== 'object');
|
|
2495
2494
|
};
|
|
2496
2495
|
|
|
2497
|
-
var $Object
|
|
2496
|
+
var $Object = getIntrinsic('%Object%');
|
|
2498
2497
|
|
|
2499
2498
|
|
|
2500
2499
|
|
|
2501
|
-
var $preventExtensions = $Object
|
|
2502
|
-
var $isExtensible = $Object
|
|
2500
|
+
var $preventExtensions = $Object.preventExtensions;
|
|
2501
|
+
var $isExtensible = $Object.isExtensible;
|
|
2503
2502
|
|
|
2504
2503
|
// https://ecma-international.org/ecma-262/6.0/#sec-isextensible-o
|
|
2505
2504
|
|
|
@@ -2515,7 +2514,7 @@ var _isNaN = Number.isNaN || function isNaN(a) {
|
|
|
2515
2514
|
return a !== a;
|
|
2516
2515
|
};
|
|
2517
2516
|
|
|
2518
|
-
// http://
|
|
2517
|
+
// http://ecma-international.org/ecma-262/5.1/#sec-9.12
|
|
2519
2518
|
|
|
2520
2519
|
var SameValue = function SameValue(x, y) {
|
|
2521
2520
|
if (x === y) { // 0 === -0, but they are not identical.
|
|
@@ -2525,7 +2524,7 @@ var SameValue = function SameValue(x, y) {
|
|
|
2525
2524
|
return _isNaN(x) && _isNaN(y);
|
|
2526
2525
|
};
|
|
2527
2526
|
|
|
2528
|
-
var $TypeError$
|
|
2527
|
+
var $TypeError$4 = getIntrinsic('%TypeError%');
|
|
2529
2528
|
|
|
2530
2529
|
|
|
2531
2530
|
|
|
@@ -2540,11 +2539,11 @@ var $TypeError$1 = getIntrinsic('%TypeError%');
|
|
|
2540
2539
|
// https://ecma-international.org/ecma-262/6.0/#sec-createdataproperty
|
|
2541
2540
|
|
|
2542
2541
|
var CreateDataProperty = function CreateDataProperty(O, P, V) {
|
|
2543
|
-
if (Type(O) !== 'Object') {
|
|
2544
|
-
throw new $TypeError$
|
|
2542
|
+
if (Type$1(O) !== 'Object') {
|
|
2543
|
+
throw new $TypeError$4('Assertion failed: Type(O) is not Object');
|
|
2545
2544
|
}
|
|
2546
2545
|
if (!IsPropertyKey(P)) {
|
|
2547
|
-
throw new $TypeError$
|
|
2546
|
+
throw new $TypeError$4('Assertion failed: IsPropertyKey(P) is not true');
|
|
2548
2547
|
}
|
|
2549
2548
|
var oldDesc = OrdinaryGetOwnProperty(O, P);
|
|
2550
2549
|
var extensible = !oldDesc || IsExtensible(O);
|
|
@@ -2567,20 +2566,20 @@ var CreateDataProperty = function CreateDataProperty(O, P, V) {
|
|
|
2567
2566
|
);
|
|
2568
2567
|
};
|
|
2569
2568
|
|
|
2570
|
-
var $TypeError = getIntrinsic('%TypeError%');
|
|
2569
|
+
var $TypeError$5 = getIntrinsic('%TypeError%');
|
|
2571
2570
|
|
|
2572
|
-
// http://
|
|
2571
|
+
// http://ecma-international.org/ecma-262/5.1/#sec-9.10
|
|
2573
2572
|
|
|
2574
2573
|
var CheckObjectCoercible = function CheckObjectCoercible(value, optMessage) {
|
|
2575
2574
|
if (value == null) {
|
|
2576
|
-
throw new $TypeError(optMessage || ('Cannot call method on ' + value));
|
|
2575
|
+
throw new $TypeError$5(optMessage || ('Cannot call method on ' + value));
|
|
2577
2576
|
}
|
|
2578
2577
|
return value;
|
|
2579
2578
|
};
|
|
2580
2579
|
|
|
2581
2580
|
var RequireObjectCoercible = CheckObjectCoercible;
|
|
2582
2581
|
|
|
2583
|
-
var $Object = getIntrinsic('%Object%');
|
|
2582
|
+
var $Object$1 = getIntrinsic('%Object%');
|
|
2584
2583
|
|
|
2585
2584
|
|
|
2586
2585
|
|
|
@@ -2588,23 +2587,23 @@ var $Object = getIntrinsic('%Object%');
|
|
|
2588
2587
|
|
|
2589
2588
|
var ToObject = function ToObject(value) {
|
|
2590
2589
|
RequireObjectCoercible(value);
|
|
2591
|
-
return $Object(value);
|
|
2590
|
+
return $Object$1(value);
|
|
2592
2591
|
};
|
|
2593
2592
|
|
|
2594
|
-
var $gOPD = Object.getOwnPropertyDescriptor;
|
|
2593
|
+
var $gOPD$2 = Object.getOwnPropertyDescriptor;
|
|
2595
2594
|
var $getOwnNames = Object.getOwnPropertyNames;
|
|
2596
2595
|
var $getSymbols = Object.getOwnPropertySymbols;
|
|
2597
|
-
var $concat$1 = callBound
|
|
2598
|
-
var $reduce = callBound
|
|
2596
|
+
var $concat$1 = callBound('Array.prototype.concat');
|
|
2597
|
+
var $reduce = callBound('Array.prototype.reduce');
|
|
2599
2598
|
var getAll = $getSymbols ? function (obj) {
|
|
2600
2599
|
return $concat$1($getOwnNames(obj), $getSymbols(obj));
|
|
2601
2600
|
} : $getOwnNames;
|
|
2602
2601
|
|
|
2603
|
-
var isES5
|
|
2602
|
+
var isES5 = IsCallable($gOPD$2) && IsCallable($getOwnNames);
|
|
2604
2603
|
|
|
2605
|
-
var implementation$
|
|
2604
|
+
var implementation$2 = function getOwnPropertyDescriptors(value) {
|
|
2606
2605
|
RequireObjectCoercible(value);
|
|
2607
|
-
if (!isES5
|
|
2606
|
+
if (!isES5) {
|
|
2608
2607
|
throw new TypeError('getOwnPropertyDescriptors requires Object.getOwnPropertyDescriptor');
|
|
2609
2608
|
}
|
|
2610
2609
|
|
|
@@ -2612,7 +2611,7 @@ var implementation$1 = function getOwnPropertyDescriptors(value) {
|
|
|
2612
2611
|
return $reduce(
|
|
2613
2612
|
getAll(O),
|
|
2614
2613
|
function (acc, key) {
|
|
2615
|
-
var descriptor = $gOPD(O, key);
|
|
2614
|
+
var descriptor = $gOPD$2(O, key);
|
|
2616
2615
|
if (typeof descriptor !== 'undefined') {
|
|
2617
2616
|
CreateDataProperty(acc, key, descriptor);
|
|
2618
2617
|
}
|
|
@@ -2622,40 +2621,302 @@ var implementation$1 = function getOwnPropertyDescriptors(value) {
|
|
|
2622
2621
|
);
|
|
2623
2622
|
};
|
|
2624
2623
|
|
|
2625
|
-
var polyfill
|
|
2626
|
-
return typeof Object.getOwnPropertyDescriptors === 'function' ? Object.getOwnPropertyDescriptors : implementation$
|
|
2624
|
+
var polyfill = function getPolyfill() {
|
|
2625
|
+
return typeof Object.getOwnPropertyDescriptors === 'function' ? Object.getOwnPropertyDescriptors : implementation$2;
|
|
2627
2626
|
};
|
|
2628
2627
|
|
|
2629
|
-
var shim
|
|
2630
|
-
var polyfill = polyfill
|
|
2628
|
+
var shim = function shimGetOwnPropertyDescriptors() {
|
|
2629
|
+
var polyfill$1 = polyfill();
|
|
2631
2630
|
defineProperties_1(
|
|
2632
2631
|
Object,
|
|
2633
|
-
{ getOwnPropertyDescriptors: polyfill },
|
|
2634
|
-
{ getOwnPropertyDescriptors: function () { return Object.getOwnPropertyDescriptors !== polyfill; } }
|
|
2632
|
+
{ getOwnPropertyDescriptors: polyfill$1 },
|
|
2633
|
+
{ getOwnPropertyDescriptors: function () { return Object.getOwnPropertyDescriptors !== polyfill$1; } }
|
|
2635
2634
|
);
|
|
2636
|
-
return polyfill;
|
|
2635
|
+
return polyfill$1;
|
|
2637
2636
|
};
|
|
2638
2637
|
|
|
2639
|
-
var bound = callBind(polyfill
|
|
2638
|
+
var bound = callBind(polyfill(), Object);
|
|
2640
2639
|
|
|
2641
2640
|
defineProperties_1(bound, {
|
|
2642
|
-
getPolyfill: polyfill
|
|
2643
|
-
implementation: implementation$
|
|
2644
|
-
shim: shim
|
|
2641
|
+
getPolyfill: polyfill,
|
|
2642
|
+
implementation: implementation$2,
|
|
2643
|
+
shim: shim
|
|
2645
2644
|
});
|
|
2646
2645
|
|
|
2647
2646
|
var object_getownpropertydescriptors = bound;
|
|
2648
2647
|
|
|
2649
|
-
|
|
2648
|
+
/* globals
|
|
2649
|
+
Atomics,
|
|
2650
|
+
SharedArrayBuffer,
|
|
2651
|
+
*/
|
|
2650
2652
|
|
|
2651
|
-
var
|
|
2653
|
+
var undefined$2;
|
|
2652
2654
|
|
|
2653
|
-
var
|
|
2655
|
+
var $TypeError$6 = TypeError;
|
|
2656
|
+
|
|
2657
|
+
var $gOPD$3 = Object.getOwnPropertyDescriptor;
|
|
2658
|
+
if ($gOPD$3) {
|
|
2659
|
+
try {
|
|
2660
|
+
$gOPD$3({}, '');
|
|
2661
|
+
} catch (e) {
|
|
2662
|
+
$gOPD$3 = null; // this is IE 8, which has a broken gOPD
|
|
2663
|
+
}
|
|
2664
|
+
}
|
|
2665
|
+
|
|
2666
|
+
var throwTypeError$1 = function () { throw new $TypeError$6(); };
|
|
2667
|
+
var ThrowTypeError$1 = $gOPD$3
|
|
2668
|
+
? (function () {
|
|
2669
|
+
try {
|
|
2670
|
+
// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
|
|
2671
|
+
arguments.callee; // IE 8 does not throw here
|
|
2672
|
+
return throwTypeError$1;
|
|
2673
|
+
} catch (calleeThrows) {
|
|
2674
|
+
try {
|
|
2675
|
+
// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
|
|
2676
|
+
return $gOPD$3(arguments, 'callee').get;
|
|
2677
|
+
} catch (gOPDthrows) {
|
|
2678
|
+
return throwTypeError$1;
|
|
2679
|
+
}
|
|
2680
|
+
}
|
|
2681
|
+
}())
|
|
2682
|
+
: throwTypeError$1;
|
|
2683
|
+
|
|
2684
|
+
var hasSymbols$4 = hasSymbols$1();
|
|
2685
|
+
|
|
2686
|
+
var getProto$1 = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
|
|
2687
|
+
var generatorFunction = undefined$2;
|
|
2688
|
+
var asyncFunction = undefined$2;
|
|
2689
|
+
var asyncGenFunction = undefined$2;
|
|
2690
|
+
|
|
2691
|
+
var TypedArray$1 = typeof Uint8Array === 'undefined' ? undefined$2 : getProto$1(Uint8Array);
|
|
2692
|
+
|
|
2693
|
+
var INTRINSICS$1 = {
|
|
2694
|
+
'%Array%': Array,
|
|
2695
|
+
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$2 : ArrayBuffer,
|
|
2696
|
+
'%ArrayBufferPrototype%': typeof ArrayBuffer === 'undefined' ? undefined$2 : ArrayBuffer.prototype,
|
|
2697
|
+
'%ArrayIteratorPrototype%': hasSymbols$4 ? getProto$1([][Symbol.iterator]()) : undefined$2,
|
|
2698
|
+
'%ArrayPrototype%': Array.prototype,
|
|
2699
|
+
'%ArrayProto_entries%': Array.prototype.entries,
|
|
2700
|
+
'%ArrayProto_forEach%': Array.prototype.forEach,
|
|
2701
|
+
'%ArrayProto_keys%': Array.prototype.keys,
|
|
2702
|
+
'%ArrayProto_values%': Array.prototype.values,
|
|
2703
|
+
'%AsyncFromSyncIteratorPrototype%': undefined$2,
|
|
2704
|
+
'%AsyncFunction%': asyncFunction,
|
|
2705
|
+
'%AsyncFunctionPrototype%': undefined$2,
|
|
2706
|
+
'%AsyncGenerator%': undefined$2,
|
|
2707
|
+
'%AsyncGeneratorFunction%': asyncGenFunction,
|
|
2708
|
+
'%AsyncGeneratorPrototype%': undefined$2,
|
|
2709
|
+
'%AsyncIteratorPrototype%': undefined$2,
|
|
2710
|
+
'%Atomics%': typeof Atomics === 'undefined' ? undefined$2 : Atomics,
|
|
2711
|
+
'%Boolean%': Boolean,
|
|
2712
|
+
'%BooleanPrototype%': Boolean.prototype,
|
|
2713
|
+
'%DataView%': typeof DataView === 'undefined' ? undefined$2 : DataView,
|
|
2714
|
+
'%DataViewPrototype%': typeof DataView === 'undefined' ? undefined$2 : DataView.prototype,
|
|
2715
|
+
'%Date%': Date,
|
|
2716
|
+
'%DatePrototype%': Date.prototype,
|
|
2717
|
+
'%decodeURI%': decodeURI,
|
|
2718
|
+
'%decodeURIComponent%': decodeURIComponent,
|
|
2719
|
+
'%encodeURI%': encodeURI,
|
|
2720
|
+
'%encodeURIComponent%': encodeURIComponent,
|
|
2721
|
+
'%Error%': Error,
|
|
2722
|
+
'%ErrorPrototype%': Error.prototype,
|
|
2723
|
+
'%eval%': eval, // eslint-disable-line no-eval
|
|
2724
|
+
'%EvalError%': EvalError,
|
|
2725
|
+
'%EvalErrorPrototype%': EvalError.prototype,
|
|
2726
|
+
'%Float32Array%': typeof Float32Array === 'undefined' ? undefined$2 : Float32Array,
|
|
2727
|
+
'%Float32ArrayPrototype%': typeof Float32Array === 'undefined' ? undefined$2 : Float32Array.prototype,
|
|
2728
|
+
'%Float64Array%': typeof Float64Array === 'undefined' ? undefined$2 : Float64Array,
|
|
2729
|
+
'%Float64ArrayPrototype%': typeof Float64Array === 'undefined' ? undefined$2 : Float64Array.prototype,
|
|
2730
|
+
'%Function%': Function,
|
|
2731
|
+
'%FunctionPrototype%': Function.prototype,
|
|
2732
|
+
'%Generator%': undefined$2,
|
|
2733
|
+
'%GeneratorFunction%': generatorFunction,
|
|
2734
|
+
'%GeneratorPrototype%': undefined$2,
|
|
2735
|
+
'%Int8Array%': typeof Int8Array === 'undefined' ? undefined$2 : Int8Array,
|
|
2736
|
+
'%Int8ArrayPrototype%': typeof Int8Array === 'undefined' ? undefined$2 : Int8Array.prototype,
|
|
2737
|
+
'%Int16Array%': typeof Int16Array === 'undefined' ? undefined$2 : Int16Array,
|
|
2738
|
+
'%Int16ArrayPrototype%': typeof Int16Array === 'undefined' ? undefined$2 : Int8Array.prototype,
|
|
2739
|
+
'%Int32Array%': typeof Int32Array === 'undefined' ? undefined$2 : Int32Array,
|
|
2740
|
+
'%Int32ArrayPrototype%': typeof Int32Array === 'undefined' ? undefined$2 : Int32Array.prototype,
|
|
2741
|
+
'%isFinite%': isFinite,
|
|
2742
|
+
'%isNaN%': isNaN,
|
|
2743
|
+
'%IteratorPrototype%': hasSymbols$4 ? getProto$1(getProto$1([][Symbol.iterator]())) : undefined$2,
|
|
2744
|
+
'%JSON%': typeof JSON === 'object' ? JSON : undefined$2,
|
|
2745
|
+
'%JSONParse%': typeof JSON === 'object' ? JSON.parse : undefined$2,
|
|
2746
|
+
'%Map%': typeof Map === 'undefined' ? undefined$2 : Map,
|
|
2747
|
+
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$4 ? undefined$2 : getProto$1(new Map()[Symbol.iterator]()),
|
|
2748
|
+
'%MapPrototype%': typeof Map === 'undefined' ? undefined$2 : Map.prototype,
|
|
2749
|
+
'%Math%': Math,
|
|
2750
|
+
'%Number%': Number,
|
|
2751
|
+
'%NumberPrototype%': Number.prototype,
|
|
2752
|
+
'%Object%': Object,
|
|
2753
|
+
'%ObjectPrototype%': Object.prototype,
|
|
2754
|
+
'%ObjProto_toString%': Object.prototype.toString,
|
|
2755
|
+
'%ObjProto_valueOf%': Object.prototype.valueOf,
|
|
2756
|
+
'%parseFloat%': parseFloat,
|
|
2757
|
+
'%parseInt%': parseInt,
|
|
2758
|
+
'%Promise%': typeof Promise === 'undefined' ? undefined$2 : Promise,
|
|
2759
|
+
'%PromisePrototype%': typeof Promise === 'undefined' ? undefined$2 : Promise.prototype,
|
|
2760
|
+
'%PromiseProto_then%': typeof Promise === 'undefined' ? undefined$2 : Promise.prototype.then,
|
|
2761
|
+
'%Promise_all%': typeof Promise === 'undefined' ? undefined$2 : Promise.all,
|
|
2762
|
+
'%Promise_reject%': typeof Promise === 'undefined' ? undefined$2 : Promise.reject,
|
|
2763
|
+
'%Promise_resolve%': typeof Promise === 'undefined' ? undefined$2 : Promise.resolve,
|
|
2764
|
+
'%Proxy%': typeof Proxy === 'undefined' ? undefined$2 : Proxy,
|
|
2765
|
+
'%RangeError%': RangeError,
|
|
2766
|
+
'%RangeErrorPrototype%': RangeError.prototype,
|
|
2767
|
+
'%ReferenceError%': ReferenceError,
|
|
2768
|
+
'%ReferenceErrorPrototype%': ReferenceError.prototype,
|
|
2769
|
+
'%Reflect%': typeof Reflect === 'undefined' ? undefined$2 : Reflect,
|
|
2770
|
+
'%RegExp%': RegExp,
|
|
2771
|
+
'%RegExpPrototype%': RegExp.prototype,
|
|
2772
|
+
'%Set%': typeof Set === 'undefined' ? undefined$2 : Set,
|
|
2773
|
+
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$4 ? undefined$2 : getProto$1(new Set()[Symbol.iterator]()),
|
|
2774
|
+
'%SetPrototype%': typeof Set === 'undefined' ? undefined$2 : Set.prototype,
|
|
2775
|
+
'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$2 : SharedArrayBuffer,
|
|
2776
|
+
'%SharedArrayBufferPrototype%': typeof SharedArrayBuffer === 'undefined' ? undefined$2 : SharedArrayBuffer.prototype,
|
|
2777
|
+
'%String%': String,
|
|
2778
|
+
'%StringIteratorPrototype%': hasSymbols$4 ? getProto$1(''[Symbol.iterator]()) : undefined$2,
|
|
2779
|
+
'%StringPrototype%': String.prototype,
|
|
2780
|
+
'%Symbol%': hasSymbols$4 ? Symbol : undefined$2,
|
|
2781
|
+
'%SymbolPrototype%': hasSymbols$4 ? Symbol.prototype : undefined$2,
|
|
2782
|
+
'%SyntaxError%': SyntaxError,
|
|
2783
|
+
'%SyntaxErrorPrototype%': SyntaxError.prototype,
|
|
2784
|
+
'%ThrowTypeError%': ThrowTypeError$1,
|
|
2785
|
+
'%TypedArray%': TypedArray$1,
|
|
2786
|
+
'%TypedArrayPrototype%': TypedArray$1 ? TypedArray$1.prototype : undefined$2,
|
|
2787
|
+
'%TypeError%': $TypeError$6,
|
|
2788
|
+
'%TypeErrorPrototype%': $TypeError$6.prototype,
|
|
2789
|
+
'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$2 : Uint8Array,
|
|
2790
|
+
'%Uint8ArrayPrototype%': typeof Uint8Array === 'undefined' ? undefined$2 : Uint8Array.prototype,
|
|
2791
|
+
'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$2 : Uint8ClampedArray,
|
|
2792
|
+
'%Uint8ClampedArrayPrototype%': typeof Uint8ClampedArray === 'undefined' ? undefined$2 : Uint8ClampedArray.prototype,
|
|
2793
|
+
'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$2 : Uint16Array,
|
|
2794
|
+
'%Uint16ArrayPrototype%': typeof Uint16Array === 'undefined' ? undefined$2 : Uint16Array.prototype,
|
|
2795
|
+
'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined$2 : Uint32Array,
|
|
2796
|
+
'%Uint32ArrayPrototype%': typeof Uint32Array === 'undefined' ? undefined$2 : Uint32Array.prototype,
|
|
2797
|
+
'%URIError%': URIError,
|
|
2798
|
+
'%URIErrorPrototype%': URIError.prototype,
|
|
2799
|
+
'%WeakMap%': typeof WeakMap === 'undefined' ? undefined$2 : WeakMap,
|
|
2800
|
+
'%WeakMapPrototype%': typeof WeakMap === 'undefined' ? undefined$2 : WeakMap.prototype,
|
|
2801
|
+
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined$2 : WeakSet,
|
|
2802
|
+
'%WeakSetPrototype%': typeof WeakSet === 'undefined' ? undefined$2 : WeakSet.prototype
|
|
2803
|
+
};
|
|
2804
|
+
|
|
2805
|
+
|
|
2806
|
+
var $replace$1 = functionBind.call(Function.call, String.prototype.replace);
|
|
2807
|
+
|
|
2808
|
+
/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
|
|
2809
|
+
var rePropName$1 = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
2810
|
+
var reEscapeChar$1 = /\\(\\)?/g; /** Used to match backslashes in property paths. */
|
|
2811
|
+
var stringToPath$1 = function stringToPath(string) {
|
|
2812
|
+
var result = [];
|
|
2813
|
+
$replace$1(string, rePropName$1, function (match, number, quote, subString) {
|
|
2814
|
+
result[result.length] = quote ? $replace$1(subString, reEscapeChar$1, '$1') : (number || match);
|
|
2815
|
+
});
|
|
2816
|
+
return result;
|
|
2817
|
+
};
|
|
2818
|
+
/* end adaptation */
|
|
2819
|
+
|
|
2820
|
+
var getBaseIntrinsic$1 = function getBaseIntrinsic(name, allowMissing) {
|
|
2821
|
+
if (!(name in INTRINSICS$1)) {
|
|
2822
|
+
throw new SyntaxError('intrinsic ' + name + ' does not exist!');
|
|
2823
|
+
}
|
|
2824
|
+
|
|
2825
|
+
// istanbul ignore if // hopefully this is impossible to test :-)
|
|
2826
|
+
if (typeof INTRINSICS$1[name] === 'undefined' && !allowMissing) {
|
|
2827
|
+
throw new $TypeError$6('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
|
|
2828
|
+
}
|
|
2829
|
+
|
|
2830
|
+
return INTRINSICS$1[name];
|
|
2831
|
+
};
|
|
2832
|
+
|
|
2833
|
+
var GetIntrinsic = function GetIntrinsic(name, allowMissing) {
|
|
2834
|
+
if (typeof name !== 'string' || name.length === 0) {
|
|
2835
|
+
throw new TypeError('intrinsic name must be a non-empty string');
|
|
2836
|
+
}
|
|
2837
|
+
if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
|
|
2838
|
+
throw new TypeError('"allowMissing" argument must be a boolean');
|
|
2839
|
+
}
|
|
2840
|
+
|
|
2841
|
+
var parts = stringToPath$1(name);
|
|
2842
|
+
|
|
2843
|
+
var value = getBaseIntrinsic$1('%' + (parts.length > 0 ? parts[0] : '') + '%', allowMissing);
|
|
2844
|
+
for (var i = 1; i < parts.length; i += 1) {
|
|
2845
|
+
if (value != null) {
|
|
2846
|
+
if ($gOPD$3 && (i + 1) >= parts.length) {
|
|
2847
|
+
var desc = $gOPD$3(value, parts[i]);
|
|
2848
|
+
if (!allowMissing && !(parts[i] in value)) {
|
|
2849
|
+
throw new $TypeError$6('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
2850
|
+
}
|
|
2851
|
+
// By convention, when a data property is converted to an accessor
|
|
2852
|
+
// property to emulate a data property that does not suffer from
|
|
2853
|
+
// the override mistake, that accessor's getter is marked with
|
|
2854
|
+
// an `originalValue` property. Here, when we detect this, we
|
|
2855
|
+
// uphold the illusion by pretending to see that original data
|
|
2856
|
+
// property, i.e., returning the value rather than the getter
|
|
2857
|
+
// itself.
|
|
2858
|
+
value = desc && 'get' in desc && !('originalValue' in desc.get) ? desc.get : value[parts[i]];
|
|
2859
|
+
} else {
|
|
2860
|
+
value = value[parts[i]];
|
|
2861
|
+
}
|
|
2862
|
+
}
|
|
2863
|
+
}
|
|
2864
|
+
return value;
|
|
2865
|
+
};
|
|
2866
|
+
|
|
2867
|
+
var callBind$1 = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
2868
|
+
|
|
2869
|
+
|
|
2870
|
+
|
|
2871
|
+
|
|
2872
|
+
|
|
2873
|
+
var $apply = GetIntrinsic('%Function.prototype.apply%');
|
|
2874
|
+
var $call = GetIntrinsic('%Function.prototype.call%');
|
|
2875
|
+
var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || functionBind.call($call, $apply);
|
|
2876
|
+
|
|
2877
|
+
var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
|
|
2878
|
+
|
|
2879
|
+
if ($defineProperty) {
|
|
2880
|
+
try {
|
|
2881
|
+
$defineProperty({}, 'a', { value: 1 });
|
|
2882
|
+
} catch (e) {
|
|
2883
|
+
// IE 8 has a broken defineProperty
|
|
2884
|
+
$defineProperty = null;
|
|
2885
|
+
}
|
|
2886
|
+
}
|
|
2887
|
+
|
|
2888
|
+
module.exports = function callBind() {
|
|
2889
|
+
return $reflectApply(functionBind, $call, arguments);
|
|
2890
|
+
};
|
|
2891
|
+
|
|
2892
|
+
var applyBind = function applyBind() {
|
|
2893
|
+
return $reflectApply(functionBind, $apply, arguments);
|
|
2894
|
+
};
|
|
2895
|
+
|
|
2896
|
+
if ($defineProperty) {
|
|
2897
|
+
$defineProperty(module.exports, 'apply', { value: applyBind });
|
|
2898
|
+
} else {
|
|
2899
|
+
module.exports.apply = applyBind;
|
|
2900
|
+
}
|
|
2901
|
+
});
|
|
2902
|
+
callBind$1.apply;
|
|
2903
|
+
|
|
2904
|
+
var $indexOf$1 = callBind$1(GetIntrinsic('String.prototype.indexOf'));
|
|
2905
|
+
|
|
2906
|
+
var callBound$1 = function callBoundIntrinsic(name, allowMissing) {
|
|
2907
|
+
var intrinsic = GetIntrinsic(name, !!allowMissing);
|
|
2908
|
+
if (typeof intrinsic === 'function' && $indexOf$1(name, '.prototype.')) {
|
|
2909
|
+
return callBind$1(intrinsic);
|
|
2910
|
+
}
|
|
2911
|
+
return intrinsic;
|
|
2912
|
+
};
|
|
2913
|
+
|
|
2914
|
+
var isES5$1 = typeof Object.defineProperty === 'function'
|
|
2654
2915
|
&& typeof Object.defineProperties === 'function';
|
|
2655
2916
|
|
|
2656
2917
|
var hasProto = [].__proto__ === Array.prototype; // eslint-disable-line no-proto
|
|
2657
2918
|
|
|
2658
|
-
if (!isES5 || !hasProto) {
|
|
2919
|
+
if (!isES5$1 || !hasProto) {
|
|
2659
2920
|
throw new TypeError('util.promisify requires a true ES5 environment, that also supports `__proto__`');
|
|
2660
2921
|
}
|
|
2661
2922
|
|
|
@@ -2667,16 +2928,16 @@ if (typeof Promise !== 'function') {
|
|
|
2667
2928
|
|
|
2668
2929
|
|
|
2669
2930
|
|
|
2670
|
-
var $slice = callBound('Array.prototype.slice');
|
|
2671
|
-
var $concat = callBound('Array.prototype.concat');
|
|
2672
|
-
var $forEach = callBound('Array.prototype.forEach');
|
|
2931
|
+
var $slice = callBound$1('Array.prototype.slice');
|
|
2932
|
+
var $concat$2 = callBound$1('Array.prototype.concat');
|
|
2933
|
+
var $forEach = callBound$1('Array.prototype.forEach');
|
|
2673
2934
|
|
|
2674
|
-
var hasSymbols = hasSymbols$
|
|
2935
|
+
var hasSymbols$5 = hasSymbols$1();
|
|
2675
2936
|
|
|
2676
|
-
var kCustomPromisifiedSymbol = hasSymbols ? Symbol('util.promisify.custom') : null;
|
|
2677
|
-
var kCustomPromisifyArgsSymbol = hasSymbols ? Symbol('customPromisifyArgs') : null;
|
|
2937
|
+
var kCustomPromisifiedSymbol = hasSymbols$5 ? Symbol('util.promisify.custom') : null;
|
|
2938
|
+
var kCustomPromisifyArgsSymbol = hasSymbols$5 ? Symbol('customPromisifyArgs') : null;
|
|
2678
2939
|
|
|
2679
|
-
var implementation = function promisify(orig) {
|
|
2940
|
+
var implementation$3 = function promisify(orig) {
|
|
2680
2941
|
if (typeof orig !== 'function') {
|
|
2681
2942
|
var error = new TypeError('The "original" argument must be of type function');
|
|
2682
2943
|
error.name = 'TypeError [ERR_INVALID_ARG_TYPE]';
|
|
@@ -2684,7 +2945,7 @@ var implementation = function promisify(orig) {
|
|
|
2684
2945
|
throw error;
|
|
2685
2946
|
}
|
|
2686
2947
|
|
|
2687
|
-
if (hasSymbols && orig[kCustomPromisifiedSymbol]) {
|
|
2948
|
+
if (hasSymbols$5 && orig[kCustomPromisifiedSymbol]) {
|
|
2688
2949
|
var customFunction = orig[kCustomPromisifiedSymbol];
|
|
2689
2950
|
if (typeof customFunction !== 'function') {
|
|
2690
2951
|
throw new TypeError('The [util.promisify.custom] property must be a function');
|
|
@@ -2706,7 +2967,7 @@ var implementation = function promisify(orig) {
|
|
|
2706
2967
|
var args = $slice(arguments);
|
|
2707
2968
|
var self = this; // eslint-disable-line no-invalid-this
|
|
2708
2969
|
return new Promise(function (resolve, reject) {
|
|
2709
|
-
orig.apply(self, $concat(args, function (err) {
|
|
2970
|
+
orig.apply(self, $concat$2(args, function (err) {
|
|
2710
2971
|
var values = arguments.length > 1 ? $slice(arguments, 1) : [];
|
|
2711
2972
|
if (err) {
|
|
2712
2973
|
reject(err);
|
|
@@ -2736,17 +2997,17 @@ var implementation = function promisify(orig) {
|
|
|
2736
2997
|
|
|
2737
2998
|
var custom = kCustomPromisifiedSymbol;
|
|
2738
2999
|
var customPromisifyArgs = kCustomPromisifyArgsSymbol;
|
|
2739
|
-
implementation.custom = custom;
|
|
2740
|
-
implementation.customPromisifyArgs = customPromisifyArgs;
|
|
3000
|
+
implementation$3.custom = custom;
|
|
3001
|
+
implementation$3.customPromisifyArgs = customPromisifyArgs;
|
|
2741
3002
|
|
|
2742
3003
|
var polyfill$1 = function getPolyfill() {
|
|
2743
3004
|
if (typeof util.util.promisify === 'function') {
|
|
2744
3005
|
return util.util.promisify;
|
|
2745
3006
|
}
|
|
2746
|
-
return implementation;
|
|
3007
|
+
return implementation$3;
|
|
2747
3008
|
};
|
|
2748
3009
|
|
|
2749
|
-
var shim = function shimUtilPromisify() {
|
|
3010
|
+
var shim$1 = function shimUtilPromisify() {
|
|
2750
3011
|
var polyfill = polyfill$1();
|
|
2751
3012
|
if (polyfill !== util.util.promisify) {
|
|
2752
3013
|
Object.defineProperty(util.util, 'promisify', {
|
|
@@ -2759,20 +3020,20 @@ var shim = function shimUtilPromisify() {
|
|
|
2759
3020
|
return polyfill;
|
|
2760
3021
|
};
|
|
2761
3022
|
|
|
2762
|
-
var polyfill = polyfill$1();
|
|
3023
|
+
var polyfill$2 = polyfill$1();
|
|
2763
3024
|
|
|
2764
3025
|
|
|
2765
3026
|
/* eslint-disable no-unused-vars */
|
|
2766
3027
|
var boundPromisify = function promisify(orig) {
|
|
2767
3028
|
/* eslint-enable no-unused-vars */
|
|
2768
|
-
return polyfill.apply(util.util, arguments);
|
|
3029
|
+
return polyfill$2.apply(util.util, arguments);
|
|
2769
3030
|
};
|
|
2770
3031
|
defineProperties_1(boundPromisify, {
|
|
2771
|
-
custom: polyfill.custom,
|
|
2772
|
-
customPromisifyArgs: polyfill.customPromisifyArgs,
|
|
3032
|
+
custom: polyfill$2.custom,
|
|
3033
|
+
customPromisifyArgs: polyfill$2.customPromisifyArgs,
|
|
2773
3034
|
getPolyfill: polyfill$1,
|
|
2774
|
-
implementation: implementation,
|
|
2775
|
-
shim: shim
|
|
3035
|
+
implementation: implementation$3,
|
|
3036
|
+
shim: shim$1
|
|
2776
3037
|
});
|
|
2777
3038
|
|
|
2778
3039
|
var util_promisify = boundPromisify;
|
|
@@ -2813,16 +3074,334 @@ function connect() {
|
|
|
2813
3074
|
|
|
2814
3075
|
var db = connect;
|
|
2815
3076
|
|
|
2816
|
-
var
|
|
3077
|
+
var crypt = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
3078
|
+
(function() {
|
|
3079
|
+
var base64map
|
|
3080
|
+
= 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/',
|
|
3081
|
+
|
|
3082
|
+
crypt = {
|
|
3083
|
+
// Bit-wise rotation left
|
|
3084
|
+
rotl: function(n, b) {
|
|
3085
|
+
return (n << b) | (n >>> (32 - b));
|
|
3086
|
+
},
|
|
3087
|
+
|
|
3088
|
+
// Bit-wise rotation right
|
|
3089
|
+
rotr: function(n, b) {
|
|
3090
|
+
return (n << (32 - b)) | (n >>> b);
|
|
3091
|
+
},
|
|
3092
|
+
|
|
3093
|
+
// Swap big-endian to little-endian and vice versa
|
|
3094
|
+
endian: function(n) {
|
|
3095
|
+
// If number given, swap endian
|
|
3096
|
+
if (n.constructor == Number) {
|
|
3097
|
+
return crypt.rotl(n, 8) & 0x00FF00FF | crypt.rotl(n, 24) & 0xFF00FF00;
|
|
3098
|
+
}
|
|
2817
3099
|
|
|
2818
|
-
|
|
3100
|
+
// Else, assume array and swap all items
|
|
3101
|
+
for (var i = 0; i < n.length; i++)
|
|
3102
|
+
n[i] = crypt.endian(n[i]);
|
|
3103
|
+
return n;
|
|
3104
|
+
},
|
|
3105
|
+
|
|
3106
|
+
// Generate an array of any length of random bytes
|
|
3107
|
+
randomBytes: function(n) {
|
|
3108
|
+
for (var bytes = []; n > 0; n--)
|
|
3109
|
+
bytes.push(Math.floor(Math.random() * 256));
|
|
3110
|
+
return bytes;
|
|
3111
|
+
},
|
|
3112
|
+
|
|
3113
|
+
// Convert a byte array to big-endian 32-bit words
|
|
3114
|
+
bytesToWords: function(bytes) {
|
|
3115
|
+
for (var words = [], i = 0, b = 0; i < bytes.length; i++, b += 8)
|
|
3116
|
+
words[b >>> 5] |= bytes[i] << (24 - b % 32);
|
|
3117
|
+
return words;
|
|
3118
|
+
},
|
|
3119
|
+
|
|
3120
|
+
// Convert big-endian 32-bit words to a byte array
|
|
3121
|
+
wordsToBytes: function(words) {
|
|
3122
|
+
for (var bytes = [], b = 0; b < words.length * 32; b += 8)
|
|
3123
|
+
bytes.push((words[b >>> 5] >>> (24 - b % 32)) & 0xFF);
|
|
3124
|
+
return bytes;
|
|
3125
|
+
},
|
|
3126
|
+
|
|
3127
|
+
// Convert a byte array to a hex string
|
|
3128
|
+
bytesToHex: function(bytes) {
|
|
3129
|
+
for (var hex = [], i = 0; i < bytes.length; i++) {
|
|
3130
|
+
hex.push((bytes[i] >>> 4).toString(16));
|
|
3131
|
+
hex.push((bytes[i] & 0xF).toString(16));
|
|
3132
|
+
}
|
|
3133
|
+
return hex.join('');
|
|
3134
|
+
},
|
|
3135
|
+
|
|
3136
|
+
// Convert a hex string to a byte array
|
|
3137
|
+
hexToBytes: function(hex) {
|
|
3138
|
+
for (var bytes = [], c = 0; c < hex.length; c += 2)
|
|
3139
|
+
bytes.push(parseInt(hex.substr(c, 2), 16));
|
|
3140
|
+
return bytes;
|
|
3141
|
+
},
|
|
3142
|
+
|
|
3143
|
+
// Convert a byte array to a base-64 string
|
|
3144
|
+
bytesToBase64: function(bytes) {
|
|
3145
|
+
for (var base64 = [], i = 0; i < bytes.length; i += 3) {
|
|
3146
|
+
var triplet = (bytes[i] << 16) | (bytes[i + 1] << 8) | bytes[i + 2];
|
|
3147
|
+
for (var j = 0; j < 4; j++)
|
|
3148
|
+
if (i * 8 + j * 6 <= bytes.length * 8)
|
|
3149
|
+
base64.push(base64map.charAt((triplet >>> 6 * (3 - j)) & 0x3F));
|
|
3150
|
+
else
|
|
3151
|
+
base64.push('=');
|
|
3152
|
+
}
|
|
3153
|
+
return base64.join('');
|
|
3154
|
+
},
|
|
3155
|
+
|
|
3156
|
+
// Convert a base-64 string to a byte array
|
|
3157
|
+
base64ToBytes: function(base64) {
|
|
3158
|
+
// Remove non-base-64 characters
|
|
3159
|
+
base64 = base64.replace(/[^A-Z0-9+\/]/ig, '');
|
|
3160
|
+
|
|
3161
|
+
for (var bytes = [], i = 0, imod4 = 0; i < base64.length;
|
|
3162
|
+
imod4 = ++i % 4) {
|
|
3163
|
+
if (imod4 == 0) continue;
|
|
3164
|
+
bytes.push(((base64map.indexOf(base64.charAt(i - 1))
|
|
3165
|
+
& (Math.pow(2, -2 * imod4 + 8) - 1)) << (imod4 * 2))
|
|
3166
|
+
| (base64map.indexOf(base64.charAt(i)) >>> (6 - imod4 * 2)));
|
|
3167
|
+
}
|
|
3168
|
+
return bytes;
|
|
3169
|
+
}
|
|
3170
|
+
};
|
|
3171
|
+
|
|
3172
|
+
module.exports = crypt;
|
|
3173
|
+
})();
|
|
3174
|
+
});
|
|
3175
|
+
|
|
3176
|
+
var charenc = {
|
|
3177
|
+
// UTF-8 encoding
|
|
3178
|
+
utf8: {
|
|
3179
|
+
// Convert a string to a byte array
|
|
3180
|
+
stringToBytes: function(str) {
|
|
3181
|
+
return charenc.bin.stringToBytes(unescape(encodeURIComponent(str)));
|
|
3182
|
+
},
|
|
3183
|
+
|
|
3184
|
+
// Convert a byte array to a string
|
|
3185
|
+
bytesToString: function(bytes) {
|
|
3186
|
+
return decodeURIComponent(escape(charenc.bin.bytesToString(bytes)));
|
|
3187
|
+
}
|
|
3188
|
+
},
|
|
3189
|
+
|
|
3190
|
+
// Binary encoding
|
|
3191
|
+
bin: {
|
|
3192
|
+
// Convert a string to a byte array
|
|
3193
|
+
stringToBytes: function(str) {
|
|
3194
|
+
for (var bytes = [], i = 0; i < str.length; i++)
|
|
3195
|
+
bytes.push(str.charCodeAt(i) & 0xFF);
|
|
3196
|
+
return bytes;
|
|
3197
|
+
},
|
|
3198
|
+
|
|
3199
|
+
// Convert a byte array to a string
|
|
3200
|
+
bytesToString: function(bytes) {
|
|
3201
|
+
for (var str = [], i = 0; i < bytes.length; i++)
|
|
3202
|
+
str.push(String.fromCharCode(bytes[i]));
|
|
3203
|
+
return str.join('');
|
|
3204
|
+
}
|
|
3205
|
+
}
|
|
3206
|
+
};
|
|
3207
|
+
|
|
3208
|
+
var charenc_1 = charenc;
|
|
3209
|
+
|
|
3210
|
+
/*!
|
|
3211
|
+
* Determine if an object is a Buffer
|
|
3212
|
+
*
|
|
3213
|
+
* @author Feross Aboukhadijeh <https://feross.org>
|
|
3214
|
+
* @license MIT
|
|
3215
|
+
*/
|
|
3216
|
+
|
|
3217
|
+
// The _isBuffer check is for Safari 5-7 support, because it's missing
|
|
3218
|
+
// Object.prototype.constructor. Remove this eventually
|
|
3219
|
+
var isBuffer_1 = function (obj) {
|
|
3220
|
+
return obj != null && (isBuffer(obj) || isSlowBuffer(obj) || !!obj._isBuffer)
|
|
3221
|
+
};
|
|
3222
|
+
|
|
3223
|
+
function isBuffer (obj) {
|
|
3224
|
+
return !!obj.constructor && typeof obj.constructor.isBuffer === 'function' && obj.constructor.isBuffer(obj)
|
|
3225
|
+
}
|
|
3226
|
+
|
|
3227
|
+
// For Node v0.10 support. Remove this eventually.
|
|
3228
|
+
function isSlowBuffer (obj) {
|
|
3229
|
+
return typeof obj.readFloatLE === 'function' && typeof obj.slice === 'function' && isBuffer(obj.slice(0, 0))
|
|
3230
|
+
}
|
|
3231
|
+
|
|
3232
|
+
var md5 = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
3233
|
+
(function(){
|
|
3234
|
+
var crypt$1 = crypt,
|
|
3235
|
+
utf8 = charenc_1.utf8,
|
|
3236
|
+
isBuffer = isBuffer_1,
|
|
3237
|
+
bin = charenc_1.bin,
|
|
3238
|
+
|
|
3239
|
+
// The core
|
|
3240
|
+
md5 = function (message, options) {
|
|
3241
|
+
// Convert to byte array
|
|
3242
|
+
if (message.constructor == String)
|
|
3243
|
+
if (options && options.encoding === 'binary')
|
|
3244
|
+
message = bin.stringToBytes(message);
|
|
3245
|
+
else
|
|
3246
|
+
message = utf8.stringToBytes(message);
|
|
3247
|
+
else if (isBuffer(message))
|
|
3248
|
+
message = Array.prototype.slice.call(message, 0);
|
|
3249
|
+
else if (!Array.isArray(message) && message.constructor !== Uint8Array)
|
|
3250
|
+
message = message.toString();
|
|
3251
|
+
// else, assume byte array already
|
|
3252
|
+
|
|
3253
|
+
var m = crypt$1.bytesToWords(message),
|
|
3254
|
+
l = message.length * 8,
|
|
3255
|
+
a = 1732584193,
|
|
3256
|
+
b = -271733879,
|
|
3257
|
+
c = -1732584194,
|
|
3258
|
+
d = 271733878;
|
|
3259
|
+
|
|
3260
|
+
// Swap endian
|
|
3261
|
+
for (var i = 0; i < m.length; i++) {
|
|
3262
|
+
m[i] = ((m[i] << 8) | (m[i] >>> 24)) & 0x00FF00FF |
|
|
3263
|
+
((m[i] << 24) | (m[i] >>> 8)) & 0xFF00FF00;
|
|
3264
|
+
}
|
|
3265
|
+
|
|
3266
|
+
// Padding
|
|
3267
|
+
m[l >>> 5] |= 0x80 << (l % 32);
|
|
3268
|
+
m[(((l + 64) >>> 9) << 4) + 14] = l;
|
|
3269
|
+
|
|
3270
|
+
// Method shortcuts
|
|
3271
|
+
var FF = md5._ff,
|
|
3272
|
+
GG = md5._gg,
|
|
3273
|
+
HH = md5._hh,
|
|
3274
|
+
II = md5._ii;
|
|
3275
|
+
|
|
3276
|
+
for (var i = 0; i < m.length; i += 16) {
|
|
3277
|
+
|
|
3278
|
+
var aa = a,
|
|
3279
|
+
bb = b,
|
|
3280
|
+
cc = c,
|
|
3281
|
+
dd = d;
|
|
3282
|
+
|
|
3283
|
+
a = FF(a, b, c, d, m[i+ 0], 7, -680876936);
|
|
3284
|
+
d = FF(d, a, b, c, m[i+ 1], 12, -389564586);
|
|
3285
|
+
c = FF(c, d, a, b, m[i+ 2], 17, 606105819);
|
|
3286
|
+
b = FF(b, c, d, a, m[i+ 3], 22, -1044525330);
|
|
3287
|
+
a = FF(a, b, c, d, m[i+ 4], 7, -176418897);
|
|
3288
|
+
d = FF(d, a, b, c, m[i+ 5], 12, 1200080426);
|
|
3289
|
+
c = FF(c, d, a, b, m[i+ 6], 17, -1473231341);
|
|
3290
|
+
b = FF(b, c, d, a, m[i+ 7], 22, -45705983);
|
|
3291
|
+
a = FF(a, b, c, d, m[i+ 8], 7, 1770035416);
|
|
3292
|
+
d = FF(d, a, b, c, m[i+ 9], 12, -1958414417);
|
|
3293
|
+
c = FF(c, d, a, b, m[i+10], 17, -42063);
|
|
3294
|
+
b = FF(b, c, d, a, m[i+11], 22, -1990404162);
|
|
3295
|
+
a = FF(a, b, c, d, m[i+12], 7, 1804603682);
|
|
3296
|
+
d = FF(d, a, b, c, m[i+13], 12, -40341101);
|
|
3297
|
+
c = FF(c, d, a, b, m[i+14], 17, -1502002290);
|
|
3298
|
+
b = FF(b, c, d, a, m[i+15], 22, 1236535329);
|
|
3299
|
+
|
|
3300
|
+
a = GG(a, b, c, d, m[i+ 1], 5, -165796510);
|
|
3301
|
+
d = GG(d, a, b, c, m[i+ 6], 9, -1069501632);
|
|
3302
|
+
c = GG(c, d, a, b, m[i+11], 14, 643717713);
|
|
3303
|
+
b = GG(b, c, d, a, m[i+ 0], 20, -373897302);
|
|
3304
|
+
a = GG(a, b, c, d, m[i+ 5], 5, -701558691);
|
|
3305
|
+
d = GG(d, a, b, c, m[i+10], 9, 38016083);
|
|
3306
|
+
c = GG(c, d, a, b, m[i+15], 14, -660478335);
|
|
3307
|
+
b = GG(b, c, d, a, m[i+ 4], 20, -405537848);
|
|
3308
|
+
a = GG(a, b, c, d, m[i+ 9], 5, 568446438);
|
|
3309
|
+
d = GG(d, a, b, c, m[i+14], 9, -1019803690);
|
|
3310
|
+
c = GG(c, d, a, b, m[i+ 3], 14, -187363961);
|
|
3311
|
+
b = GG(b, c, d, a, m[i+ 8], 20, 1163531501);
|
|
3312
|
+
a = GG(a, b, c, d, m[i+13], 5, -1444681467);
|
|
3313
|
+
d = GG(d, a, b, c, m[i+ 2], 9, -51403784);
|
|
3314
|
+
c = GG(c, d, a, b, m[i+ 7], 14, 1735328473);
|
|
3315
|
+
b = GG(b, c, d, a, m[i+12], 20, -1926607734);
|
|
3316
|
+
|
|
3317
|
+
a = HH(a, b, c, d, m[i+ 5], 4, -378558);
|
|
3318
|
+
d = HH(d, a, b, c, m[i+ 8], 11, -2022574463);
|
|
3319
|
+
c = HH(c, d, a, b, m[i+11], 16, 1839030562);
|
|
3320
|
+
b = HH(b, c, d, a, m[i+14], 23, -35309556);
|
|
3321
|
+
a = HH(a, b, c, d, m[i+ 1], 4, -1530992060);
|
|
3322
|
+
d = HH(d, a, b, c, m[i+ 4], 11, 1272893353);
|
|
3323
|
+
c = HH(c, d, a, b, m[i+ 7], 16, -155497632);
|
|
3324
|
+
b = HH(b, c, d, a, m[i+10], 23, -1094730640);
|
|
3325
|
+
a = HH(a, b, c, d, m[i+13], 4, 681279174);
|
|
3326
|
+
d = HH(d, a, b, c, m[i+ 0], 11, -358537222);
|
|
3327
|
+
c = HH(c, d, a, b, m[i+ 3], 16, -722521979);
|
|
3328
|
+
b = HH(b, c, d, a, m[i+ 6], 23, 76029189);
|
|
3329
|
+
a = HH(a, b, c, d, m[i+ 9], 4, -640364487);
|
|
3330
|
+
d = HH(d, a, b, c, m[i+12], 11, -421815835);
|
|
3331
|
+
c = HH(c, d, a, b, m[i+15], 16, 530742520);
|
|
3332
|
+
b = HH(b, c, d, a, m[i+ 2], 23, -995338651);
|
|
3333
|
+
|
|
3334
|
+
a = II(a, b, c, d, m[i+ 0], 6, -198630844);
|
|
3335
|
+
d = II(d, a, b, c, m[i+ 7], 10, 1126891415);
|
|
3336
|
+
c = II(c, d, a, b, m[i+14], 15, -1416354905);
|
|
3337
|
+
b = II(b, c, d, a, m[i+ 5], 21, -57434055);
|
|
3338
|
+
a = II(a, b, c, d, m[i+12], 6, 1700485571);
|
|
3339
|
+
d = II(d, a, b, c, m[i+ 3], 10, -1894986606);
|
|
3340
|
+
c = II(c, d, a, b, m[i+10], 15, -1051523);
|
|
3341
|
+
b = II(b, c, d, a, m[i+ 1], 21, -2054922799);
|
|
3342
|
+
a = II(a, b, c, d, m[i+ 8], 6, 1873313359);
|
|
3343
|
+
d = II(d, a, b, c, m[i+15], 10, -30611744);
|
|
3344
|
+
c = II(c, d, a, b, m[i+ 6], 15, -1560198380);
|
|
3345
|
+
b = II(b, c, d, a, m[i+13], 21, 1309151649);
|
|
3346
|
+
a = II(a, b, c, d, m[i+ 4], 6, -145523070);
|
|
3347
|
+
d = II(d, a, b, c, m[i+11], 10, -1120210379);
|
|
3348
|
+
c = II(c, d, a, b, m[i+ 2], 15, 718787259);
|
|
3349
|
+
b = II(b, c, d, a, m[i+ 9], 21, -343485551);
|
|
3350
|
+
|
|
3351
|
+
a = (a + aa) >>> 0;
|
|
3352
|
+
b = (b + bb) >>> 0;
|
|
3353
|
+
c = (c + cc) >>> 0;
|
|
3354
|
+
d = (d + dd) >>> 0;
|
|
3355
|
+
}
|
|
3356
|
+
|
|
3357
|
+
return crypt$1.endian([a, b, c, d]);
|
|
3358
|
+
};
|
|
3359
|
+
|
|
3360
|
+
// Auxiliary functions
|
|
3361
|
+
md5._ff = function (a, b, c, d, x, s, t) {
|
|
3362
|
+
var n = a + (b & c | ~b & d) + (x >>> 0) + t;
|
|
3363
|
+
return ((n << s) | (n >>> (32 - s))) + b;
|
|
3364
|
+
};
|
|
3365
|
+
md5._gg = function (a, b, c, d, x, s, t) {
|
|
3366
|
+
var n = a + (b & d | c & ~d) + (x >>> 0) + t;
|
|
3367
|
+
return ((n << s) | (n >>> (32 - s))) + b;
|
|
3368
|
+
};
|
|
3369
|
+
md5._hh = function (a, b, c, d, x, s, t) {
|
|
3370
|
+
var n = a + (b ^ c ^ d) + (x >>> 0) + t;
|
|
3371
|
+
return ((n << s) | (n >>> (32 - s))) + b;
|
|
3372
|
+
};
|
|
3373
|
+
md5._ii = function (a, b, c, d, x, s, t) {
|
|
3374
|
+
var n = a + (c ^ (b | ~d)) + (x >>> 0) + t;
|
|
3375
|
+
return ((n << s) | (n >>> (32 - s))) + b;
|
|
3376
|
+
};
|
|
3377
|
+
|
|
3378
|
+
// Package private blocksize
|
|
3379
|
+
md5._blocksize = 16;
|
|
3380
|
+
md5._digestsize = 16;
|
|
3381
|
+
|
|
3382
|
+
module.exports = function (message, options) {
|
|
3383
|
+
if (message === undefined || message === null)
|
|
3384
|
+
throw new Error('Illegal argument ' + message);
|
|
3385
|
+
|
|
3386
|
+
var digestbytes = crypt$1.wordsToBytes(md5(message, options));
|
|
3387
|
+
return options && options.asBytes ? digestbytes :
|
|
3388
|
+
options && options.asString ? bin.bytesToString(digestbytes) :
|
|
3389
|
+
crypt$1.bytesToHex(digestbytes);
|
|
3390
|
+
};
|
|
3391
|
+
|
|
3392
|
+
})();
|
|
3393
|
+
});
|
|
3394
|
+
|
|
3395
|
+
var _this$3 = undefined;
|
|
3396
|
+
|
|
3397
|
+
var config = {
|
|
2819
3398
|
host: 'sanity-datasource.cluster-crao688bsrdh.us-east-1.rds.amazonaws.com',
|
|
2820
3399
|
user: 'nasp',
|
|
2821
3400
|
password: 'uRNkF9SkfXQs6AKK',
|
|
2822
3401
|
database: 'user'
|
|
2823
3402
|
};
|
|
2824
3403
|
|
|
2825
|
-
var findUser
|
|
3404
|
+
var findUser = function () {
|
|
2826
3405
|
var _ref = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator.regenerator.mark(function _callee(email) {
|
|
2827
3406
|
var password = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
2828
3407
|
var db$1, query, res, user, hash, passwordsMatch, user_shared, occupation_id;
|
|
@@ -2834,7 +3413,7 @@ var findUser$1 = function () {
|
|
|
2834
3413
|
_context.prev = 1;
|
|
2835
3414
|
|
|
2836
3415
|
|
|
2837
|
-
db$1 = db(config
|
|
3416
|
+
db$1 = db(config);
|
|
2838
3417
|
|
|
2839
3418
|
query = '\n select * \n from user \n where trim(lower(email)) = ?\n ';
|
|
2840
3419
|
_context.next = 6;
|
|
@@ -2857,7 +3436,7 @@ var findUser$1 = function () {
|
|
|
2857
3436
|
break;
|
|
2858
3437
|
}
|
|
2859
3438
|
|
|
2860
|
-
hash = md5
|
|
3439
|
+
hash = md5(password);
|
|
2861
3440
|
passwordsMatch = hash === user.password;
|
|
2862
3441
|
|
|
2863
3442
|
if (passwordsMatch) {
|
|
@@ -2930,7 +3509,7 @@ var findUser$1 = function () {
|
|
|
2930
3509
|
};
|
|
2931
3510
|
}();
|
|
2932
3511
|
|
|
2933
|
-
var updateUser
|
|
3512
|
+
var updateUser = function () {
|
|
2934
3513
|
var _ref2 = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator.regenerator.mark(function _callee2(data) {
|
|
2935
3514
|
var db$1, query, res, hash, columns, i, column, occupation_name;
|
|
2936
3515
|
return asyncToGenerator.regenerator.wrap(function _callee2$(_context2) {
|
|
@@ -2943,7 +3522,7 @@ var updateUser$1 = function () {
|
|
|
2943
3522
|
|
|
2944
3523
|
validateUserData(data);
|
|
2945
3524
|
|
|
2946
|
-
db$1 = db(config
|
|
3525
|
+
db$1 = db(config);
|
|
2947
3526
|
|
|
2948
3527
|
_context2.next = 6;
|
|
2949
3528
|
return db$1.beginTransaction();
|
|
@@ -2981,7 +3560,7 @@ var updateUser$1 = function () {
|
|
|
2981
3560
|
break;
|
|
2982
3561
|
}
|
|
2983
3562
|
|
|
2984
|
-
hash = md5
|
|
3563
|
+
hash = md5(data.password);
|
|
2985
3564
|
|
|
2986
3565
|
query = '\n update user \n set password = ?\n where user_id = ?\n ';
|
|
2987
3566
|
_context2.next = 20;
|
|
@@ -3050,7 +3629,7 @@ var updateUser$1 = function () {
|
|
|
3050
3629
|
|
|
3051
3630
|
return _context2.abrupt('return', {
|
|
3052
3631
|
error: '',
|
|
3053
|
-
user: findUser
|
|
3632
|
+
user: findUser(data.email)
|
|
3054
3633
|
});
|
|
3055
3634
|
|
|
3056
3635
|
case 45:
|
|
@@ -3162,7 +3741,7 @@ var getOccupationNameById = function () {
|
|
|
3162
3741
|
return _context3.stop();
|
|
3163
3742
|
}
|
|
3164
3743
|
}
|
|
3165
|
-
}, _callee3, _this$
|
|
3744
|
+
}, _callee3, _this$3);
|
|
3166
3745
|
}));
|
|
3167
3746
|
|
|
3168
3747
|
return function getOccupationNameById(_x5, _x6) {
|
|
@@ -3170,7 +3749,7 @@ var getOccupationNameById = function () {
|
|
|
3170
3749
|
};
|
|
3171
3750
|
}();
|
|
3172
3751
|
|
|
3173
|
-
var createUser
|
|
3752
|
+
var createUser = function () {
|
|
3174
3753
|
var _ref4 = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator.regenerator.mark(function _callee4(data) {
|
|
3175
3754
|
var db$1, query, res, hash, columns, i, column, user_id, occupation_name;
|
|
3176
3755
|
return asyncToGenerator.regenerator.wrap(function _callee4$(_context4) {
|
|
@@ -3183,7 +3762,7 @@ var createUser$1 = function () {
|
|
|
3183
3762
|
|
|
3184
3763
|
validateUserData(data, true);
|
|
3185
3764
|
|
|
3186
|
-
db$1 = db(config
|
|
3765
|
+
db$1 = db(config);
|
|
3187
3766
|
|
|
3188
3767
|
_context4.next = 6;
|
|
3189
3768
|
return db$1.beginTransaction();
|
|
@@ -3208,7 +3787,7 @@ var createUser$1 = function () {
|
|
|
3208
3787
|
throw new Error('User already exists');
|
|
3209
3788
|
|
|
3210
3789
|
case 13:
|
|
3211
|
-
hash = md5
|
|
3790
|
+
hash = md5(data.password);
|
|
3212
3791
|
|
|
3213
3792
|
// basic user info
|
|
3214
3793
|
|
|
@@ -3279,7 +3858,7 @@ var createUser$1 = function () {
|
|
|
3279
3858
|
case 39:
|
|
3280
3859
|
return _context4.abrupt('return', {
|
|
3281
3860
|
error: '',
|
|
3282
|
-
user: findUser
|
|
3861
|
+
user: findUser(data.email)
|
|
3283
3862
|
});
|
|
3284
3863
|
|
|
3285
3864
|
case 42:
|
|
@@ -3317,7 +3896,7 @@ var createUser$1 = function () {
|
|
|
3317
3896
|
};
|
|
3318
3897
|
}();
|
|
3319
3898
|
|
|
3320
|
-
var createUser = function () {
|
|
3899
|
+
var createUser$1 = function () {
|
|
3321
3900
|
var _ref = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator.regenerator.mark(function _callee(data) {
|
|
3322
3901
|
var res;
|
|
3323
3902
|
return asyncToGenerator.regenerator.wrap(function _callee$(_context) {
|
|
@@ -3325,7 +3904,7 @@ var createUser = function () {
|
|
|
3325
3904
|
switch (_context.prev = _context.next) {
|
|
3326
3905
|
case 0:
|
|
3327
3906
|
_context.next = 2;
|
|
3328
|
-
return createUser
|
|
3907
|
+
return createUser(data);
|
|
3329
3908
|
|
|
3330
3909
|
case 2:
|
|
3331
3910
|
res = _context.sent;
|
|
@@ -3353,7 +3932,7 @@ var createUser = function () {
|
|
|
3353
3932
|
};
|
|
3354
3933
|
}();
|
|
3355
3934
|
|
|
3356
|
-
var updateUser = function () {
|
|
3935
|
+
var updateUser$1 = function () {
|
|
3357
3936
|
var _ref2 = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator.regenerator.mark(function _callee2(data) {
|
|
3358
3937
|
var res;
|
|
3359
3938
|
return asyncToGenerator.regenerator.wrap(function _callee2$(_context2) {
|
|
@@ -3361,7 +3940,7 @@ var updateUser = function () {
|
|
|
3361
3940
|
switch (_context2.prev = _context2.next) {
|
|
3362
3941
|
case 0:
|
|
3363
3942
|
_context2.next = 2;
|
|
3364
|
-
return updateUser
|
|
3943
|
+
return updateUser(data);
|
|
3365
3944
|
|
|
3366
3945
|
case 2:
|
|
3367
3946
|
res = _context2.sent;
|
|
@@ -3389,7 +3968,7 @@ var updateUser = function () {
|
|
|
3389
3968
|
};
|
|
3390
3969
|
}();
|
|
3391
3970
|
|
|
3392
|
-
var findUser = function () {
|
|
3971
|
+
var findUser$1 = function () {
|
|
3393
3972
|
var _ref3 = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator.regenerator.mark(function _callee3(_ref4) {
|
|
3394
3973
|
var email = _ref4.email,
|
|
3395
3974
|
password = _ref4.password;
|
|
@@ -3399,7 +3978,7 @@ var findUser = function () {
|
|
|
3399
3978
|
switch (_context3.prev = _context3.next) {
|
|
3400
3979
|
case 0:
|
|
3401
3980
|
_context3.next = 2;
|
|
3402
|
-
return findUser
|
|
3981
|
+
return findUser(email, password);
|
|
3403
3982
|
|
|
3404
3983
|
case 2:
|
|
3405
3984
|
res = _context3.sent;
|
|
@@ -3429,9 +4008,9 @@ var findUser = function () {
|
|
|
3429
4008
|
|
|
3430
4009
|
var user = /*#__PURE__*/Object.freeze({
|
|
3431
4010
|
__proto__: null,
|
|
3432
|
-
createUser: createUser,
|
|
3433
|
-
updateUser: updateUser,
|
|
3434
|
-
findUser: findUser
|
|
4011
|
+
createUser: createUser$1,
|
|
4012
|
+
updateUser: updateUser$1,
|
|
4013
|
+
findUser: findUser$1
|
|
3435
4014
|
});
|
|
3436
4015
|
|
|
3437
4016
|
var localStrategy = new Local__default['default'].Strategy({
|
|
@@ -3439,7 +4018,7 @@ var localStrategy = new Local__default['default'].Strategy({
|
|
|
3439
4018
|
passwordField: 'password'
|
|
3440
4019
|
}, function (email, password, done) {
|
|
3441
4020
|
|
|
3442
|
-
findUser({ email: email, password: password }).then(function (user) {
|
|
4021
|
+
findUser$1({ email: email, password: password }).then(function (user) {
|
|
3443
4022
|
done(null, user);
|
|
3444
4023
|
}).catch(function (error) {
|
|
3445
4024
|
done(error);
|
|
@@ -3451,9 +4030,9 @@ var passportLocal = /*#__PURE__*/Object.freeze({
|
|
|
3451
4030
|
localStrategy: localStrategy
|
|
3452
4031
|
});
|
|
3453
4032
|
|
|
3454
|
-
var _this = undefined;
|
|
4033
|
+
var _this$4 = undefined;
|
|
3455
4034
|
|
|
3456
|
-
var config = {
|
|
4035
|
+
var config$1 = {
|
|
3457
4036
|
host: 'sanity-datasource.cluster-crao688bsrdh.us-east-1.rds.amazonaws.com',
|
|
3458
4037
|
user: 'nasp',
|
|
3459
4038
|
password: 'uRNkF9SkfXQs6AKK',
|
|
@@ -3467,7 +4046,7 @@ var getOccupation = function () {
|
|
|
3467
4046
|
while (1) {
|
|
3468
4047
|
switch (_context.prev = _context.next) {
|
|
3469
4048
|
case 0:
|
|
3470
|
-
db$1 = db(config);
|
|
4049
|
+
db$1 = db(config$1);
|
|
3471
4050
|
query = '\n select name as label, id as value\n from occupation\n where type = ?\n ';
|
|
3472
4051
|
_context.next = 4;
|
|
3473
4052
|
return db$1.query(query, [type]);
|
|
@@ -3485,7 +4064,7 @@ var getOccupation = function () {
|
|
|
3485
4064
|
return _context.stop();
|
|
3486
4065
|
}
|
|
3487
4066
|
}
|
|
3488
|
-
}, _callee, _this);
|
|
4067
|
+
}, _callee, _this$4);
|
|
3489
4068
|
}));
|
|
3490
4069
|
|
|
3491
4070
|
return function getOccupation(_x) {
|
|
@@ -3500,7 +4079,7 @@ var getFieldsAndOptions = function () {
|
|
|
3500
4079
|
while (1) {
|
|
3501
4080
|
switch (_context2.prev = _context2.next) {
|
|
3502
4081
|
case 0:
|
|
3503
|
-
db$1 = db(config);
|
|
4082
|
+
db$1 = db(config$1);
|
|
3504
4083
|
query = '\n select * \n from field\n where occupation_id = ?\n order by sorting\n ';
|
|
3505
4084
|
_context2.next = 4;
|
|
3506
4085
|
return db$1.query(query, [occupation]);
|
|
@@ -3548,7 +4127,7 @@ var getFieldsAndOptions = function () {
|
|
|
3548
4127
|
return _context2.stop();
|
|
3549
4128
|
}
|
|
3550
4129
|
}
|
|
3551
|
-
}, _callee2, _this);
|
|
4130
|
+
}, _callee2, _this$4);
|
|
3552
4131
|
}));
|
|
3553
4132
|
|
|
3554
4133
|
return function getFieldsAndOptions(_x2) {
|
|
@@ -3619,8 +4198,8 @@ var ProcessData = (function () {
|
|
|
3619
4198
|
})();
|
|
3620
4199
|
|
|
3621
4200
|
var LoginForm_1 = LoginForm;
|
|
3622
|
-
var SignupForm_1 = SignupForm
|
|
3623
|
-
var ProfileForm_1 = SignupForm;
|
|
4201
|
+
var SignupForm_1 = SignupForm;
|
|
4202
|
+
var ProfileForm_1 = SignupForm$1;
|
|
3624
4203
|
var AuthCookies_1 = authCookies;
|
|
3625
4204
|
var AuthHooks_1 = hooks;
|
|
3626
4205
|
var Iron_1 = iron;
|