@mjhls/mjh-framework 1.0.703-testing-module-splittingv6 → 1.0.704-beta-v2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +172 -172
- package/dist/cjs/AD.js +9 -10
- package/dist/cjs/AD300x250.js +24 -26
- package/dist/cjs/AD300x250x600.js +24 -26
- package/dist/cjs/AD728x90.js +27 -29
- package/dist/cjs/ADFloatingFooter.js +29 -31
- package/dist/cjs/ADFooter.js +14 -16
- package/dist/cjs/ADGutter.js +26 -28
- package/dist/cjs/{ADInfeed-d36dc3ca.js → ADInfeed-38066a36.js} +11 -13
- package/dist/cjs/ADSkyscraper.js +26 -28
- package/dist/cjs/ADSponsoredResources.js +26 -28
- package/dist/cjs/ADWebcast.js +26 -28
- package/dist/cjs/ADWelcome.js +31 -33
- package/dist/cjs/{ADlgInfeed-93205fa0.js → ADlgInfeed-d95c9027.js} +8 -9
- package/dist/cjs/AccordionPanel.js +29 -32
- package/dist/cjs/AdSlot.js +31 -33
- package/dist/cjs/AdSlotsProvider.js +7 -8
- package/dist/cjs/AlphabeticList.js +24 -26
- package/dist/cjs/ArticleCarousel.js +21 -23
- package/dist/cjs/ArticleSeriesListing.js +57 -59
- package/dist/cjs/Auth.js +330 -817
- package/dist/cjs/{AuthorComponent-482218ce.js → AuthorComponent-bb831b74.js} +13 -14
- package/dist/cjs/Beam.js +9 -10
- package/dist/cjs/{BlockContent-eca358e4.js → BlockContent-80b15fac.js} +24 -25
- package/dist/cjs/Breadcrumbs.js +27 -30
- package/dist/cjs/BrowseVideosListing.js +39 -41
- package/dist/cjs/CMEDeck.js +78 -79
- package/dist/cjs/Column1.js +11 -14
- package/dist/cjs/Column2.js +32 -36
- package/dist/cjs/Column3.js +55 -59
- package/dist/cjs/ConferenceArticleCard.js +37 -38
- package/dist/cjs/ConferenceBanner-4a16fddc.js +23 -0
- package/dist/cjs/DeckContent.js +102 -107
- package/dist/cjs/DeckQueue.js +86 -91
- package/dist/cjs/{Dfp-80c3d853.js → Dfp-390337bf.js} +30 -32
- package/dist/cjs/EventsDeck.js +149 -157
- package/dist/cjs/ExternalResources.js +74 -76
- package/dist/cjs/Feature.js +25 -27
- package/dist/cjs/ForbesHero.js +40 -42
- package/dist/cjs/GridContent.js +177 -182
- package/dist/cjs/GridHero.js +42 -44
- package/dist/cjs/GroupDeck.js +49 -51
- package/dist/cjs/HamMagazine.js +139 -145
- package/dist/cjs/Header.js +11 -13
- package/dist/cjs/Hero.js +12 -13
- package/dist/cjs/HighlightenVideo.js +17 -18
- package/dist/cjs/HorizontalHero.js +25 -26
- package/dist/cjs/IssueContentDeck.js +72 -78
- package/dist/cjs/IssueDeck.js +70 -76
- package/dist/cjs/IssueLanding.js +69 -71
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +36 -39
- package/dist/cjs/MasterDeck.js +79 -81
- package/dist/cjs/NavDvm.js +75 -81
- package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-76c913e3.js} +14 -15
- package/dist/cjs/NavMagazine.js +148 -154
- package/dist/cjs/NavNative.js +124 -133
- package/dist/cjs/NavNormal.js +48 -54
- package/dist/cjs/OncliveHero.js +20 -20
- package/dist/cjs/OncliveLargeHero.js +66 -68
- package/dist/cjs/PageFilter.js +14 -16
- package/dist/cjs/PartnerDetailListing.js +105 -107
- package/dist/cjs/PdfDownload.js +8 -9
- package/dist/cjs/PopUpModal.js +19 -22
- package/dist/cjs/PublicationDeck.js +61 -66
- package/dist/cjs/PublicationLanding.js +114 -119
- package/dist/cjs/QueueDeckExpanded.js +292 -293
- package/dist/cjs/RecentNews.js +23 -24
- package/dist/cjs/RelatedContent.js +52 -53
- package/dist/cjs/RelatedTopicsDropdown.js +29 -32
- package/dist/cjs/RolesDeck.js +27 -32
- package/dist/cjs/Search.js +18 -23
- package/dist/cjs/Segment.js +7 -8
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +37 -39
- package/dist/cjs/SocialIcons.js +9 -10
- package/dist/cjs/{SocialSearchComponent-a49e8e9d.js → SocialSearchComponent-56d49a1a.js} +36 -40
- package/dist/cjs/SocialShare.js +29 -31
- package/dist/cjs/TaxonomyCard.js +57 -63
- package/dist/cjs/TemplateNormal.js +72 -74
- package/dist/cjs/ThumbnailCard.js +20 -22
- package/dist/cjs/Ustream.js +26 -28
- package/dist/cjs/VerticalHero.js +17 -18
- package/dist/cjs/VideoSeriesCard.js +33 -35
- package/dist/cjs/VideoSeriesFilter.js +19 -20
- package/dist/cjs/VideoSeriesListing.js +72 -74
- package/dist/cjs/View.js +220 -224
- package/dist/cjs/YahooHero.js +39 -41
- package/dist/cjs/YoutubeGroup.js +68 -70
- package/dist/cjs/{_is-array-4c61cfba.js → _is-array-754e012d.js} +12 -13
- package/dist/cjs/{_iter-detect-2a826637.js → _iter-detect-60b2f026.js} +4 -4
- package/dist/cjs/_object-sap-5e74ba08.js +16 -0
- package/dist/cjs/{_set-species-d088ff6e.js → _set-species-f92c67c5.js} +9 -10
- package/dist/cjs/{_export-7e018e14.js → _to-object-329a650b.js} +146 -2
- package/dist/cjs/{asyncToGenerator-7ca8f87e.js → asyncToGenerator-533d476a.js} +57 -58
- package/dist/cjs/{brightcove-react-player-loader.es-a195642e.js → brightcove-react-player-loader.es-156bd4d6.js} +9 -11
- package/dist/cjs/{core.get-iterator-method-14f49e03.js → core.get-iterator-method-f62321d4.js} +3 -4
- package/dist/cjs/{define-property-fd46a81e.js → define-property-f4d12f4e.js} +3 -3
- package/dist/cjs/{defineProperty-edc12c5a.js → defineProperty-55548b25.js} +1 -1
- package/dist/cjs/{entities-3f9d0f2f.js → entities-310b46ee.js} +1 -1
- package/dist/cjs/{es6.string.iterator-a390d61f.js → es6.string.iterator-cc0bbaa4.js} +17 -18
- package/dist/cjs/{extends-0a166456.js → extends-60837c34.js} +5 -6
- package/dist/cjs/getRelatedArticle.js +76 -139
- package/dist/cjs/getSerializers.js +41 -42
- package/dist/cjs/{getTargeting-57edbc60.js → getTargeting-fee8c429.js} +11 -11
- package/dist/cjs/getTargeting.js +7 -8
- package/dist/cjs/iconBase-68959171.js +3 -0
- package/dist/cjs/{index-5ad2b070.js → index-099d45ae.js} +17 -16
- package/dist/cjs/{index-cb6ed1fc.js → index-3294d3bc.js} +18 -17
- package/dist/cjs/{index-d48b231c.js → index-39beccb3.js} +24 -29
- package/dist/cjs/{index-0e3597c2.js → index-58dae365.js} +429 -440
- package/dist/cjs/{index-80f57cff.js → index-da796b8c.js} +15 -17
- package/dist/cjs/{index.es-f3e47207.js → index.es-9110add6.js} +12 -31
- package/dist/cjs/{index.esm-8123cf40.js → index.esm-4d410430.js} +20 -20
- package/dist/cjs/{index.esm-3b9b8952.js → index.esm-66ffa47a.js} +9 -4
- package/dist/cjs/{index.esm-974f47d9.js → index.esm-90433435.js} +15 -6
- package/dist/cjs/{index.esm-05850a2f.js → index.esm-ff47db6f.js} +12 -5
- package/dist/cjs/index.js +261 -9
- package/dist/cjs/{inherits-a9209207.js → inherits-513d81cd.js} +15 -16
- package/dist/cjs/{keys-d2f5bcf0.js → keys-a586b7a0.js} +3 -4
- package/dist/cjs/{lodash-4ef21f0f.js → lodash-7fd85bcf.js} +1 -1
- package/dist/cjs/{main-eeffe77b.js → main-03ffa84c.js} +80 -116
- package/dist/cjs/{moment-aca40de1.js → moment-575fe24c.js} +9 -11
- package/dist/cjs/{react-social-icons-af932527.js → react-social-icons-f7f48f71.js} +27 -28
- package/dist/cjs/{slicedToArray-60dafa9c.js → slicedToArray-8f385299.js} +7 -7
- package/dist/cjs/{smoothscroll-1abb448e.js → smoothscroll-95231a70.js} +1 -1
- package/dist/cjs/{stringify-44244c64.js → stringify-7c5aff47.js} +2 -2
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-4bb00640.js → toConsumableArray-9a3476fe.js} +8 -9
- package/dist/cjs/{typeof-03c3fdc8.js → typeof-725500bc.js} +49 -50
- package/dist/cjs/urlFor.js +2 -2
- package/dist/cjs/{util-6f784d85.js → util-f2c1b65b.js} +1 -1
- package/dist/cjs/{visibility-sensor-8b54af99.js → visibility-sensor-0c45a583.js} +5 -7
- package/dist/cjs/{web.dom.iterable-2d47ebe6.js → web.dom.iterable-a0e279c1.js} +5 -6
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +22 -23
- package/dist/esm/AD300x250x600.js +22 -23
- package/dist/esm/AD728x90.js +25 -26
- package/dist/esm/ADFloatingFooter.js +27 -28
- package/dist/esm/ADFooter.js +11 -12
- package/dist/esm/ADGutter.js +24 -25
- package/dist/esm/{ADInfeed-bf7de12d.js → ADInfeed-7b1b2fcb.js} +7 -7
- package/dist/esm/ADSkyscraper.js +24 -25
- package/dist/esm/ADSponsoredResources.js +24 -25
- package/dist/esm/ADWebcast.js +24 -25
- package/dist/esm/ADWelcome.js +29 -30
- package/dist/esm/{ADlgInfeed-3ac04591.js → ADlgInfeed-2afe92e6.js} +6 -6
- package/dist/esm/AccordionPanel.js +24 -25
- package/dist/esm/AdSlot.js +23 -24
- package/dist/esm/AdSlotsProvider.js +4 -4
- package/dist/esm/AlphabeticList.js +22 -23
- package/dist/esm/ArticleCarousel.js +18 -19
- package/dist/esm/ArticleSeriesListing.js +52 -53
- package/dist/esm/Auth.js +315 -798
- package/dist/esm/{AuthorComponent-22790017.js → AuthorComponent-00f13201.js} +11 -11
- package/dist/esm/Beam.js +9 -10
- package/dist/esm/{BlockContent-d8cd739c.js → BlockContent-c409aca5.js} +4 -4
- package/dist/esm/Breadcrumbs.js +17 -18
- package/dist/esm/BrowseVideosListing.js +36 -37
- package/dist/esm/CMEDeck.js +75 -76
- package/dist/esm/Column1.js +5 -5
- package/dist/esm/Column2.js +26 -27
- package/dist/esm/Column3.js +49 -50
- package/dist/esm/ConferenceArticleCard.js +33 -33
- package/dist/esm/{ConferenceBanner-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
- package/dist/esm/DeckContent.js +84 -85
- package/dist/esm/DeckQueue.js +64 -65
- package/dist/esm/{Dfp-08279047.js → Dfp-741c01be.js} +20 -21
- package/dist/esm/EventsDeck.js +100 -101
- package/dist/esm/ExternalResources.js +69 -70
- package/dist/esm/Feature.js +18 -18
- package/dist/esm/ForbesHero.js +34 -35
- package/dist/esm/GridContent.js +139 -140
- package/dist/esm/GridHero.js +36 -37
- package/dist/esm/GroupDeck.js +45 -46
- package/dist/esm/HamMagazine.js +113 -114
- package/dist/esm/Header.js +7 -7
- package/dist/esm/Hero.js +9 -9
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalHero.js +21 -21
- package/dist/esm/IssueContentDeck.js +49 -50
- package/dist/esm/IssueDeck.js +46 -47
- package/dist/esm/IssueLanding.js +67 -68
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +33 -34
- package/dist/esm/MasterDeck.js +73 -74
- package/dist/esm/NavDvm.js +57 -58
- package/dist/esm/{NavFooter-c29526b7.js → NavFooter-e27bd93b.js} +12 -12
- package/dist/esm/NavMagazine.js +124 -125
- package/dist/esm/NavNative.js +100 -101
- package/dist/esm/NavNormal.js +36 -37
- package/dist/esm/OncliveHero.js +17 -16
- package/dist/esm/OncliveLargeHero.js +59 -60
- package/dist/esm/PageFilter.js +12 -13
- package/dist/esm/PartnerDetailListing.js +102 -103
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +14 -15
- package/dist/esm/PublicationDeck.js +38 -38
- package/dist/esm/PublicationLanding.js +75 -76
- package/dist/esm/QueueDeckExpanded.js +273 -274
- package/dist/esm/RecentNews.js +20 -20
- package/dist/esm/RelatedContent.js +47 -47
- package/dist/esm/RelatedTopicsDropdown.js +21 -21
- package/dist/esm/RolesDeck.js +13 -13
- package/dist/esm/Search.js +12 -13
- package/dist/esm/Segment.js +7 -8
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +33 -34
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-46ea0f4d.js → SocialSearchComponent-677ed3bd.js} +28 -28
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +41 -42
- package/dist/esm/TemplateNormal.js +67 -68
- package/dist/esm/ThumbnailCard.js +13 -13
- package/dist/esm/Ustream.js +23 -24
- package/dist/esm/VerticalHero.js +13 -13
- package/dist/esm/VideoSeriesCard.js +25 -26
- package/dist/esm/VideoSeriesFilter.js +16 -17
- package/dist/esm/VideoSeriesListing.js +66 -67
- package/dist/esm/View.js +212 -212
- package/dist/esm/YahooHero.js +34 -35
- package/dist/esm/YoutubeGroup.js +53 -54
- package/dist/esm/{_is-array-46713c19.js → _is-array-49698029.js} +6 -7
- package/dist/esm/{_iter-detect-60cd145f.js → _iter-detect-59409a32.js} +2 -2
- package/dist/esm/{_object-pie-33c40e79.js → _object-pie-71ac75a4.js} +1 -1
- package/dist/esm/{_object-sap-108a1939.js → _object-sap-4d59d5bd.js} +1 -1
- package/dist/esm/{_set-species-a4b3fe39.js → _set-species-cede29f8.js} +5 -6
- package/dist/esm/{_export-9029ebab.js → _to-object-ded78eb9.js} +134 -3
- package/dist/esm/{asyncToGenerator-7714cea4.js → asyncToGenerator-7c654f36.js} +9 -10
- package/dist/esm/{brightcove-react-player-loader.es-b43c695a.js → brightcove-react-player-loader.es-83f53e4e.js} +6 -7
- package/dist/esm/{core.get-iterator-method-6636b3ef.js → core.get-iterator-method-54d2e411.js} +2 -3
- package/dist/esm/{define-property-f2d6f244.js → define-property-de3fc946.js} +1 -1
- package/dist/esm/{defineProperty-69f06029.js → defineProperty-b798470d.js} +1 -1
- package/dist/esm/{entities-932b50cf.js → entities-7cc3bf45.js} +1 -1
- package/dist/esm/{es6.string.iterator-2efae22d.js → es6.string.iterator-9b2af4a5.js} +3 -4
- package/dist/esm/{extends-f866c8d0.js → extends-cc5da797.js} +2 -3
- package/dist/esm/getRelatedArticle.js +71 -134
- package/dist/esm/getSerializers.js +41 -42
- package/dist/esm/{getTargeting-5cdca4e1.js → getTargeting-2acdec91.js} +11 -11
- package/dist/esm/getTargeting.js +8 -9
- package/dist/esm/{index-3f5c03b2.js → index-3849e3fe.js} +24 -29
- package/dist/esm/{index-669ff425.js → index-3f4dd6f2.js} +12 -10
- package/dist/esm/{index-752d1dae.js → index-5f9f807a.js} +10 -10
- package/dist/esm/{index-5db919a6.js → index-7779a6df.js} +380 -384
- package/dist/esm/{index-750a7380.js → index-ef6d5dcf.js} +18 -17
- package/dist/esm/{index.es-c6222053.js → index.es-29c1cef5.js} +10 -28
- package/dist/esm/{index.esm-57f377a5.js → index.esm-29e48d38.js} +16 -7
- package/dist/esm/{index.esm-d6f88d94.js → index.esm-b08f4b04.js} +9 -4
- package/dist/esm/{index.esm-a8ff922c.js → index.esm-cf08bf18.js} +12 -5
- package/dist/esm/{index.esm-8016b507.js → index.esm-fd746768.js} +18 -17
- package/dist/esm/index.js +173 -11
- package/dist/esm/{inherits-75d6495f.js → inherits-7ee3e0c1.js} +5 -6
- package/dist/esm/{keys-78217618.js → keys-fc2d4c34.js} +2 -3
- package/dist/esm/{lodash-ad27652f.js → lodash-ec8c6b48.js} +1 -1
- package/dist/esm/{main-decc48f4.js → main-35ff7b4f.js} +78 -113
- package/dist/esm/{moment-bc12cb97.js → moment-e2f9b20c.js} +9 -11
- package/dist/esm/{react-social-icons-91f9716f.js → react-social-icons-a7d5c5c7.js} +20 -20
- package/dist/esm/{slicedToArray-fa9240c4.js → slicedToArray-7021e5df.js} +4 -4
- package/dist/esm/{smoothscroll-ab6e0238.js → smoothscroll-4b699764.js} +1 -1
- package/dist/esm/{stringify-22907f56.js → stringify-008c8802.js} +1 -1
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-bd01c637.js → toConsumableArray-725434a0.js} +4 -5
- package/dist/esm/{typeof-668f30cd.js → typeof-08f2c380.js} +8 -9
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{util-3ab476bf.js → util-7700fc59.js} +1 -1
- package/dist/esm/{visibility-sensor-082c757b.js → visibility-sensor-0baa4eea.js} +2 -2
- package/dist/esm/{web.dom.iterable-89515070.js → web.dom.iterable-8956f9a5.js} +3 -4
- package/package.json +105 -105
- package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
- package/dist/cjs/_object-sap-4ac28868.js +0 -16
- package/dist/cjs/_to-object-233fc5c9.js +0 -149
- package/dist/esm/_to-object-62924b74.js +0 -135
package/dist/esm/Auth.js
CHANGED
|
@@ -1,25 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
1
|
+
import { a as commonjsGlobal, c as createCommonjsModule } from './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
+
import './_to-object-ded78eb9.js';
|
|
3
|
+
import './es6.string.iterator-9b2af4a5.js';
|
|
4
|
+
import './_library-528f1934.js';
|
|
5
|
+
import './_iter-detect-59409a32.js';
|
|
6
|
+
import './core.get-iterator-method-54d2e411.js';
|
|
7
|
+
import './_object-pie-71ac75a4.js';
|
|
8
|
+
import { _ as _extends } from './extends-cc5da797.js';
|
|
9
|
+
import './web.dom.iterable-8956f9a5.js';
|
|
10
|
+
import React__default, { useEffect, useState } from 'react';
|
|
5
11
|
import Router from 'next/router';
|
|
6
|
-
import { _ as
|
|
12
|
+
import { _ as _JSON$stringify } from './stringify-008c8802.js';
|
|
13
|
+
import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-7021e5df.js';
|
|
14
|
+
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-7c654f36.js';
|
|
15
|
+
import './_set-species-cede29f8.js';
|
|
7
16
|
import { Col, Form, Button, Spinner } from 'react-bootstrap';
|
|
8
|
-
import
|
|
17
|
+
import { u as util } from './util-7700fc59.js';
|
|
9
18
|
import { s as serialize_1, p as parse_1 } from './index-db3bb315.js';
|
|
19
|
+
import useSWR from 'swr';
|
|
10
20
|
import Local from 'passport-local';
|
|
11
21
|
import mysql from 'mysql';
|
|
12
|
-
import { u as util } from './util-3ab476bf.js';
|
|
13
|
-
import { a as commonjsGlobal, c as createCommonjsModule } from './_commonjsHelpers-0c4b6f40.js';
|
|
14
|
-
import './es6.string.iterator-2efae22d.js';
|
|
15
|
-
import './_to-object-62924b74.js';
|
|
16
|
-
import './_export-9029ebab.js';
|
|
17
|
-
import './web.dom.iterable-89515070.js';
|
|
18
|
-
import './_library-528f1934.js';
|
|
19
|
-
import './core.get-iterator-method-6636b3ef.js';
|
|
20
|
-
import './_set-species-a4b3fe39.js';
|
|
21
|
-
import './_iter-detect-60cd145f.js';
|
|
22
|
-
import './_object-pie-33c40e79.js';
|
|
23
22
|
|
|
24
23
|
var returnFormField = function returnFormField(_ref) {
|
|
25
24
|
var name = _ref.name,
|
|
@@ -58,21 +57,21 @@ var returnFormField = function returnFormField(_ref) {
|
|
|
58
57
|
}
|
|
59
58
|
|
|
60
59
|
if (type == 'text' || type == 'email' || type == 'password' || type == 'number') {
|
|
61
|
-
return
|
|
60
|
+
return React__default.createElement(
|
|
62
61
|
Form.Group,
|
|
63
62
|
_extends({}, opts, { controlId: name }),
|
|
64
|
-
|
|
63
|
+
React__default.createElement(
|
|
65
64
|
Form.Label,
|
|
66
65
|
{ kye: name + '_label' },
|
|
67
66
|
label,
|
|
68
|
-
required &&
|
|
67
|
+
required && React__default.createElement(
|
|
69
68
|
'span',
|
|
70
69
|
{ style: { color: 'red' } },
|
|
71
70
|
'*'
|
|
72
71
|
)
|
|
73
72
|
),
|
|
74
|
-
|
|
75
|
-
|
|
73
|
+
React__default.createElement(Form.Control, { key: name + '_' + type, type: type, readOnly: readonly, name: name, placeholder: '', defaultValue: default_value, required: required }),
|
|
74
|
+
React__default.createElement(
|
|
76
75
|
Form.Control.Feedback,
|
|
77
76
|
{ key: name + '_feedback', type: 'invalid' },
|
|
78
77
|
errors[name]
|
|
@@ -80,28 +79,28 @@ var returnFormField = function returnFormField(_ref) {
|
|
|
80
79
|
);
|
|
81
80
|
}
|
|
82
81
|
if (type == 'select') {
|
|
83
|
-
return
|
|
82
|
+
return React__default.createElement(
|
|
84
83
|
Form.Group,
|
|
85
84
|
_extends({}, opts, { key: name, controlId: name }),
|
|
86
|
-
|
|
85
|
+
React__default.createElement(
|
|
87
86
|
Form.Label,
|
|
88
87
|
{ key: name + '_' + label },
|
|
89
88
|
label,
|
|
90
|
-
required &&
|
|
89
|
+
required && React__default.createElement(
|
|
91
90
|
'span',
|
|
92
91
|
{ key: name + '_required_span', style: { color: 'red' } },
|
|
93
92
|
'*'
|
|
94
93
|
)
|
|
95
94
|
),
|
|
96
|
-
|
|
95
|
+
React__default.createElement(
|
|
97
96
|
Form.Control,
|
|
98
97
|
{ key: name + '_select', as: 'select', name: name, required: required, defaultValue: default_value },
|
|
99
|
-
|
|
98
|
+
React__default.createElement('option', { value: '', key: name + '_options_empty' }),
|
|
100
99
|
options.map(function (option, index) {
|
|
101
100
|
var value = option.value ? option.value : option;
|
|
102
101
|
var label = option.label ? option.label : option;
|
|
103
102
|
var key = name + '_options_' + index;
|
|
104
|
-
return
|
|
103
|
+
return React__default.createElement(
|
|
105
104
|
'option',
|
|
106
105
|
{ key: key, value: value },
|
|
107
106
|
label
|
|
@@ -112,25 +111,25 @@ var returnFormField = function returnFormField(_ref) {
|
|
|
112
111
|
}
|
|
113
112
|
|
|
114
113
|
if (type == 'radio' || type == 'checkbox') {
|
|
115
|
-
return
|
|
114
|
+
return React__default.createElement(
|
|
116
115
|
Form.Group,
|
|
117
116
|
opts,
|
|
118
|
-
|
|
117
|
+
React__default.createElement(
|
|
119
118
|
Form.Label,
|
|
120
119
|
null,
|
|
121
120
|
label,
|
|
122
|
-
required &&
|
|
121
|
+
required && React__default.createElement(
|
|
123
122
|
'span',
|
|
124
123
|
{ style: { color: 'red' } },
|
|
125
124
|
'*'
|
|
126
125
|
)
|
|
127
126
|
),
|
|
128
127
|
options.map(function (option, index) {
|
|
129
|
-
return
|
|
128
|
+
return React__default.createElement(
|
|
130
129
|
Form.Check,
|
|
131
130
|
{ type: type, key: index, required: required },
|
|
132
|
-
|
|
133
|
-
|
|
131
|
+
React__default.createElement(Form.Check.Input, { type: type, key: type + '_' + index + '_input', defaultChecked: default_value ? default_value === option.value : false, name: name, id: name + '_' + index, value: option.value, required: required }),
|
|
132
|
+
React__default.createElement(Form.Check.Label, { style: { cursor: 'pointer' }, 'for': name + '_' + index, key: type + '_' + index + '_label', dangerouslySetInnerHTML: { __html: option.label } })
|
|
134
133
|
);
|
|
135
134
|
})
|
|
136
135
|
);
|
|
@@ -337,43 +336,43 @@ var LoginForm = function LoginForm(props) {
|
|
|
337
336
|
loading = _useState4[0],
|
|
338
337
|
setLoading = _useState4[1];
|
|
339
338
|
|
|
340
|
-
return
|
|
339
|
+
return React__default.createElement(
|
|
341
340
|
Form,
|
|
342
341
|
{ className: 'login', onSubmit: handleSubmit },
|
|
343
|
-
|
|
342
|
+
React__default.createElement(
|
|
344
343
|
'h1',
|
|
345
344
|
null,
|
|
346
345
|
'Login'
|
|
347
346
|
),
|
|
348
|
-
|
|
347
|
+
React__default.createElement('hr', null),
|
|
349
348
|
returnFormField({ name: 'email', label: 'Email', type: 'email', required: true }),
|
|
350
349
|
returnFormField({ name: 'password', label: 'Password', type: 'password', required: true }),
|
|
351
|
-
|
|
352
|
-
|
|
350
|
+
React__default.createElement('hr', null),
|
|
351
|
+
React__default.createElement(
|
|
353
352
|
Form.Row,
|
|
354
353
|
null,
|
|
355
|
-
|
|
354
|
+
React__default.createElement(
|
|
356
355
|
Form.Group,
|
|
357
356
|
{ as: Col },
|
|
358
|
-
|
|
357
|
+
React__default.createElement(
|
|
359
358
|
'a',
|
|
360
359
|
{ href: '/auth/signup' },
|
|
361
360
|
'I don\'t have an account'
|
|
362
361
|
)
|
|
363
362
|
),
|
|
364
|
-
|
|
363
|
+
React__default.createElement(
|
|
365
364
|
Form.Group,
|
|
366
365
|
{ as: Col, className: 'text-right' },
|
|
367
|
-
!loading &&
|
|
366
|
+
!loading && React__default.createElement(
|
|
368
367
|
Button,
|
|
369
368
|
{ type: 'submit' },
|
|
370
369
|
'Login'
|
|
371
370
|
),
|
|
372
|
-
loading &&
|
|
371
|
+
loading && React__default.createElement(
|
|
373
372
|
Button,
|
|
374
373
|
{ variant: 'primary', disabled: true },
|
|
375
|
-
|
|
376
|
-
|
|
374
|
+
React__default.createElement(Spinner, { as: 'span', animation: 'border', role: 'status', 'aria-hidden': 'true', size: 'sm' }),
|
|
375
|
+
React__default.createElement(
|
|
377
376
|
'span',
|
|
378
377
|
{ className: 'sr-only' },
|
|
379
378
|
'Loading...'
|
|
@@ -381,12 +380,12 @@ var LoginForm = function LoginForm(props) {
|
|
|
381
380
|
)
|
|
382
381
|
)
|
|
383
382
|
),
|
|
384
|
-
errorMsg &&
|
|
383
|
+
errorMsg && React__default.createElement(
|
|
385
384
|
'p',
|
|
386
385
|
{ className: 'error' },
|
|
387
386
|
errorMsg
|
|
388
387
|
),
|
|
389
|
-
|
|
388
|
+
React__default.createElement(
|
|
390
389
|
'style',
|
|
391
390
|
{ jsx: 'true'.toString() },
|
|
392
391
|
'\n .login {\n margin: 0 auto;\n padding: 1rem;\n border: 1px solid #ccc;\n border-radius: 4px;\n }\n .error {\n color: red;\n margin: 1rem 0 0;\n }\n '
|
|
@@ -642,29 +641,29 @@ var SignupForm = function SignupForm(props) {
|
|
|
642
641
|
loading = _useState14[0],
|
|
643
642
|
setLoading = _useState14[1];
|
|
644
643
|
|
|
645
|
-
return
|
|
644
|
+
return React__default.createElement(
|
|
646
645
|
Form,
|
|
647
646
|
{ className: 'login', id: 'signupForm', onSubmit: handleSubmit },
|
|
648
|
-
|
|
647
|
+
React__default.createElement(
|
|
649
648
|
'h1',
|
|
650
649
|
null,
|
|
651
650
|
'Sign Up'
|
|
652
651
|
),
|
|
653
|
-
|
|
652
|
+
React__default.createElement('hr', null),
|
|
654
653
|
returnFormField({ name: 'email', label: 'Email', type: 'email', required: true }),
|
|
655
|
-
|
|
654
|
+
React__default.createElement(
|
|
656
655
|
Form.Row,
|
|
657
656
|
null,
|
|
658
657
|
returnFormField({ name: 'password', label: 'Password', type: 'password', groupType: Col, required: true }),
|
|
659
658
|
returnFormField({ name: 'rpassword', label: 'Retype Password', type: 'password', groupType: Col, required: true })
|
|
660
659
|
),
|
|
661
|
-
|
|
660
|
+
React__default.createElement(
|
|
662
661
|
Form.Row,
|
|
663
662
|
null,
|
|
664
663
|
returnFormField({ name: 'first_name', label: 'First Name', type: 'text', groupType: Col, required: true }),
|
|
665
664
|
returnFormField({ name: 'last_name', label: 'Last Name', type: 'text', groupType: Col, required: true })
|
|
666
665
|
),
|
|
667
|
-
|
|
666
|
+
React__default.createElement(
|
|
668
667
|
Form.Row,
|
|
669
668
|
null,
|
|
670
669
|
returnFormField({
|
|
@@ -678,7 +677,7 @@ var SignupForm = function SignupForm(props) {
|
|
|
678
677
|
}),
|
|
679
678
|
countryUS && returnFormField({ name: 'state', label: 'State', type: 'select', required: true, groupType: Col, options: states })
|
|
680
679
|
),
|
|
681
|
-
|
|
680
|
+
React__default.createElement(
|
|
682
681
|
Form.Row,
|
|
683
682
|
null,
|
|
684
683
|
countryUS && returnFormField({ name: 'zip', label: 'Working Zip Code', type: 'text', required: true, groupType: Col }),
|
|
@@ -725,38 +724,38 @@ var SignupForm = function SignupForm(props) {
|
|
|
725
724
|
required: true,
|
|
726
725
|
options: [{ label: 'By registering you agree to our <a href="/terms" style="color:blue">Terms and Conditions</a> and <a href="/privacy" style="color:blue">Privacy Policy</a> and understand that you will be receiving email communications', value: 'Y' }]
|
|
727
726
|
}),
|
|
728
|
-
|
|
729
|
-
|
|
727
|
+
React__default.createElement('hr', null),
|
|
728
|
+
React__default.createElement(
|
|
730
729
|
Form.Row,
|
|
731
730
|
null,
|
|
732
|
-
|
|
731
|
+
React__default.createElement(
|
|
733
732
|
Form.Group,
|
|
734
733
|
{ as: Col },
|
|
735
|
-
|
|
734
|
+
React__default.createElement(
|
|
736
735
|
'a',
|
|
737
736
|
{ href: '/auth/login' },
|
|
738
737
|
'I already have an account'
|
|
739
738
|
)
|
|
740
739
|
),
|
|
741
|
-
|
|
740
|
+
React__default.createElement(
|
|
742
741
|
Form.Group,
|
|
743
742
|
{ as: Col, className: 'text-right' },
|
|
744
|
-
!loading &&
|
|
743
|
+
!loading && React__default.createElement(
|
|
745
744
|
Button,
|
|
746
745
|
{ type: 'submit' },
|
|
747
746
|
'Sign Up'
|
|
748
747
|
),
|
|
749
|
-
loading &&
|
|
748
|
+
loading && React__default.createElement(
|
|
750
749
|
Button,
|
|
751
750
|
{ variant: 'primary', disabled: true },
|
|
752
|
-
|
|
751
|
+
React__default.createElement(Spinner, {
|
|
753
752
|
as: 'span',
|
|
754
753
|
animation: 'border',
|
|
755
754
|
role: 'status',
|
|
756
755
|
'aria-hidden': 'true',
|
|
757
756
|
size: 'sm'
|
|
758
757
|
}),
|
|
759
|
-
|
|
758
|
+
React__default.createElement(
|
|
760
759
|
'span',
|
|
761
760
|
{ className: 'sr-only' },
|
|
762
761
|
'Loading...'
|
|
@@ -764,12 +763,12 @@ var SignupForm = function SignupForm(props) {
|
|
|
764
763
|
)
|
|
765
764
|
)
|
|
766
765
|
),
|
|
767
|
-
errorMsg &&
|
|
766
|
+
errorMsg && React__default.createElement(
|
|
768
767
|
'p',
|
|
769
768
|
{ className: 'error' },
|
|
770
769
|
errorMsg
|
|
771
770
|
),
|
|
772
|
-
|
|
771
|
+
React__default.createElement(
|
|
773
772
|
'style',
|
|
774
773
|
{ jsx: 'true'.toString() },
|
|
775
774
|
' \n .login {\n margin: 0 auto;\n padding: 1rem;\n border: 1px solid #ccc;\n border-radius: 4px;\n }\n .error {\n color: red;\n margin: 1rem 0 0;\n }\n '
|
|
@@ -1059,32 +1058,32 @@ var SignupForm$1 = function SignupForm(props) {
|
|
|
1059
1058
|
loading = _useState18[0],
|
|
1060
1059
|
setLoading = _useState18[1];
|
|
1061
1060
|
|
|
1062
|
-
return
|
|
1061
|
+
return React__default.createElement(
|
|
1063
1062
|
Form,
|
|
1064
1063
|
{ className: 'login', id: 'signupForm', onSubmit: handleSubmit },
|
|
1065
|
-
|
|
1064
|
+
React__default.createElement(
|
|
1066
1065
|
'h1',
|
|
1067
1066
|
null,
|
|
1068
1067
|
'Profile'
|
|
1069
1068
|
),
|
|
1070
|
-
|
|
1071
|
-
userData ?
|
|
1072
|
-
|
|
1069
|
+
React__default.createElement('hr', null),
|
|
1070
|
+
userData ? React__default.createElement(
|
|
1071
|
+
React__default.Fragment,
|
|
1073
1072
|
null,
|
|
1074
1073
|
returnFormField({ name: 'email', label: 'Email', type: 'email', required: true, readonly: true, default_value: userData.email }),
|
|
1075
|
-
|
|
1074
|
+
React__default.createElement(
|
|
1076
1075
|
Form.Row,
|
|
1077
1076
|
null,
|
|
1078
1077
|
returnFormField({ name: 'password', label: 'Password', type: 'password', groupType: Col, required: false }),
|
|
1079
1078
|
returnFormField({ name: 'rpassword', label: 'Retype Password', type: 'password', groupType: Col, required: false })
|
|
1080
1079
|
),
|
|
1081
|
-
|
|
1080
|
+
React__default.createElement(
|
|
1082
1081
|
Form.Row,
|
|
1083
1082
|
null,
|
|
1084
1083
|
returnFormField({ name: 'first_name', label: 'First Name', type: 'text', groupType: Col, required: true, default_value: userData.shared.first_name }),
|
|
1085
1084
|
returnFormField({ name: 'last_name', label: 'Last Name', type: 'text', groupType: Col, required: true, default_value: userData.shared.last_name })
|
|
1086
1085
|
),
|
|
1087
|
-
|
|
1086
|
+
React__default.createElement(
|
|
1088
1087
|
Form.Row,
|
|
1089
1088
|
null,
|
|
1090
1089
|
returnFormField({
|
|
@@ -1099,7 +1098,7 @@ var SignupForm$1 = function SignupForm(props) {
|
|
|
1099
1098
|
}),
|
|
1100
1099
|
countryUS && returnFormField({ name: 'state', label: 'State', type: 'select', required: true, groupType: Col, options: states, default_value: userData.shared.state })
|
|
1101
1100
|
),
|
|
1102
|
-
|
|
1101
|
+
React__default.createElement(
|
|
1103
1102
|
Form.Row,
|
|
1104
1103
|
null,
|
|
1105
1104
|
countryUS && returnFormField({ name: 'zip', label: 'Working Zip Code', type: 'text', required: true, groupType: Col, default_value: userData.shared.zip }),
|
|
@@ -1149,29 +1148,29 @@ var SignupForm$1 = function SignupForm(props) {
|
|
|
1149
1148
|
required: true,
|
|
1150
1149
|
options: [{ label: 'By registering you agree to our <a href="/terms">Terms and Conditions</a> and <a href="/privacy">Privacy Policy</a> and understand that you will be receiving email communications', value: 'Y' }]
|
|
1151
1150
|
}),
|
|
1152
|
-
|
|
1153
|
-
|
|
1151
|
+
React__default.createElement('hr', null),
|
|
1152
|
+
React__default.createElement(
|
|
1154
1153
|
Form.Row,
|
|
1155
1154
|
null,
|
|
1156
|
-
|
|
1155
|
+
React__default.createElement(
|
|
1157
1156
|
Form.Group,
|
|
1158
1157
|
{ as: Col },
|
|
1159
|
-
!loading &&
|
|
1158
|
+
!loading && React__default.createElement(
|
|
1160
1159
|
Button,
|
|
1161
1160
|
{ type: 'submit' },
|
|
1162
1161
|
'Update'
|
|
1163
1162
|
),
|
|
1164
|
-
loading &&
|
|
1163
|
+
loading && React__default.createElement(
|
|
1165
1164
|
Button,
|
|
1166
1165
|
{ variant: 'primary', disabled: true },
|
|
1167
|
-
|
|
1166
|
+
React__default.createElement(Spinner, {
|
|
1168
1167
|
as: 'span',
|
|
1169
1168
|
animation: 'border',
|
|
1170
1169
|
role: 'status',
|
|
1171
1170
|
'aria-hidden': 'true',
|
|
1172
1171
|
size: 'sm'
|
|
1173
1172
|
}),
|
|
1174
|
-
|
|
1173
|
+
React__default.createElement(
|
|
1175
1174
|
'span',
|
|
1176
1175
|
{ className: 'sr-only' },
|
|
1177
1176
|
'Loading...'
|
|
@@ -1179,24 +1178,24 @@ var SignupForm$1 = function SignupForm(props) {
|
|
|
1179
1178
|
)
|
|
1180
1179
|
)
|
|
1181
1180
|
)
|
|
1182
|
-
) :
|
|
1181
|
+
) : React__default.createElement(Spinner, {
|
|
1183
1182
|
as: 'span',
|
|
1184
1183
|
animation: 'border',
|
|
1185
1184
|
role: 'status',
|
|
1186
1185
|
'aria-hidden': 'true',
|
|
1187
1186
|
size: 'sm'
|
|
1188
1187
|
}),
|
|
1189
|
-
errorMsg &&
|
|
1188
|
+
errorMsg && React__default.createElement(
|
|
1190
1189
|
'p',
|
|
1191
1190
|
{ className: 'error' },
|
|
1192
1191
|
errorMsg
|
|
1193
1192
|
),
|
|
1194
|
-
successMsg &&
|
|
1193
|
+
successMsg && React__default.createElement(
|
|
1195
1194
|
'p',
|
|
1196
1195
|
{ className: 'success' },
|
|
1197
1196
|
successMsg
|
|
1198
1197
|
),
|
|
1199
|
-
|
|
1198
|
+
React__default.createElement(
|
|
1200
1199
|
'style',
|
|
1201
1200
|
{ jsx: 'true'.toString() },
|
|
1202
1201
|
' \n .login {\n margin: 0 auto;\n padding: 1rem;\n border: 1px solid #ccc;\n border-radius: 4px;\n }\n .error {\n color: red;\n margin: 1rem 0 0;\n }\n .success {\n color: green;\n margin: 1rem 0 0;\n }\n '
|
|
@@ -1538,59 +1537,6 @@ defineProperties.supportsDescriptors = !!supportsDescriptors;
|
|
|
1538
1537
|
|
|
1539
1538
|
var defineProperties_1 = defineProperties;
|
|
1540
1539
|
|
|
1541
|
-
/* eslint no-invalid-this: 1 */
|
|
1542
|
-
|
|
1543
|
-
var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
|
|
1544
|
-
var slice$1 = Array.prototype.slice;
|
|
1545
|
-
var toStr$3 = Object.prototype.toString;
|
|
1546
|
-
var funcType = '[object Function]';
|
|
1547
|
-
|
|
1548
|
-
var implementation$1 = function bind(that) {
|
|
1549
|
-
var target = this;
|
|
1550
|
-
if (typeof target !== 'function' || toStr$3.call(target) !== funcType) {
|
|
1551
|
-
throw new TypeError(ERROR_MESSAGE + target);
|
|
1552
|
-
}
|
|
1553
|
-
var args = slice$1.call(arguments, 1);
|
|
1554
|
-
|
|
1555
|
-
var bound;
|
|
1556
|
-
var binder = function () {
|
|
1557
|
-
if (this instanceof bound) {
|
|
1558
|
-
var result = target.apply(
|
|
1559
|
-
this,
|
|
1560
|
-
args.concat(slice$1.call(arguments))
|
|
1561
|
-
);
|
|
1562
|
-
if (Object(result) === result) {
|
|
1563
|
-
return result;
|
|
1564
|
-
}
|
|
1565
|
-
return this;
|
|
1566
|
-
} else {
|
|
1567
|
-
return target.apply(
|
|
1568
|
-
that,
|
|
1569
|
-
args.concat(slice$1.call(arguments))
|
|
1570
|
-
);
|
|
1571
|
-
}
|
|
1572
|
-
};
|
|
1573
|
-
|
|
1574
|
-
var boundLength = Math.max(0, target.length - args.length);
|
|
1575
|
-
var boundArgs = [];
|
|
1576
|
-
for (var i = 0; i < boundLength; i++) {
|
|
1577
|
-
boundArgs.push('$' + i);
|
|
1578
|
-
}
|
|
1579
|
-
|
|
1580
|
-
bound = Function('binder', 'return function (' + boundArgs.join(',') + '){ return binder.apply(this,arguments); }')(binder);
|
|
1581
|
-
|
|
1582
|
-
if (target.prototype) {
|
|
1583
|
-
var Empty = function Empty() {};
|
|
1584
|
-
Empty.prototype = target.prototype;
|
|
1585
|
-
bound.prototype = new Empty();
|
|
1586
|
-
Empty.prototype = null;
|
|
1587
|
-
}
|
|
1588
|
-
|
|
1589
|
-
return bound;
|
|
1590
|
-
};
|
|
1591
|
-
|
|
1592
|
-
var functionBind = Function.prototype.bind || implementation$1;
|
|
1593
|
-
|
|
1594
1540
|
/* eslint complexity: [2, 18], max-statements: [2, 33] */
|
|
1595
1541
|
var shams = function hasSymbols() {
|
|
1596
1542
|
if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
|
|
@@ -1644,21 +1590,68 @@ var hasSymbols$1 = function hasNativeSymbols() {
|
|
|
1644
1590
|
return shams();
|
|
1645
1591
|
};
|
|
1646
1592
|
|
|
1647
|
-
|
|
1593
|
+
/* eslint no-invalid-this: 1 */
|
|
1648
1594
|
|
|
1649
|
-
var
|
|
1595
|
+
var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
|
|
1596
|
+
var slice$1 = Array.prototype.slice;
|
|
1597
|
+
var toStr$3 = Object.prototype.toString;
|
|
1598
|
+
var funcType = '[object Function]';
|
|
1650
1599
|
|
|
1651
|
-
var $
|
|
1652
|
-
var
|
|
1653
|
-
|
|
1600
|
+
var implementation$1 = function bind(that) {
|
|
1601
|
+
var target = this;
|
|
1602
|
+
if (typeof target !== 'function' || toStr$3.call(target) !== funcType) {
|
|
1603
|
+
throw new TypeError(ERROR_MESSAGE + target);
|
|
1604
|
+
}
|
|
1605
|
+
var args = slice$1.call(arguments, 1);
|
|
1654
1606
|
|
|
1655
|
-
|
|
1656
|
-
var
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1607
|
+
var bound;
|
|
1608
|
+
var binder = function () {
|
|
1609
|
+
if (this instanceof bound) {
|
|
1610
|
+
var result = target.apply(
|
|
1611
|
+
this,
|
|
1612
|
+
args.concat(slice$1.call(arguments))
|
|
1613
|
+
);
|
|
1614
|
+
if (Object(result) === result) {
|
|
1615
|
+
return result;
|
|
1616
|
+
}
|
|
1617
|
+
return this;
|
|
1618
|
+
} else {
|
|
1619
|
+
return target.apply(
|
|
1620
|
+
that,
|
|
1621
|
+
args.concat(slice$1.call(arguments))
|
|
1622
|
+
);
|
|
1623
|
+
}
|
|
1624
|
+
};
|
|
1625
|
+
|
|
1626
|
+
var boundLength = Math.max(0, target.length - args.length);
|
|
1627
|
+
var boundArgs = [];
|
|
1628
|
+
for (var i = 0; i < boundLength; i++) {
|
|
1629
|
+
boundArgs.push('$' + i);
|
|
1630
|
+
}
|
|
1631
|
+
|
|
1632
|
+
bound = Function('binder', 'return function (' + boundArgs.join(',') + '){ return binder.apply(this,arguments); }')(binder);
|
|
1633
|
+
|
|
1634
|
+
if (target.prototype) {
|
|
1635
|
+
var Empty = function Empty() {};
|
|
1636
|
+
Empty.prototype = target.prototype;
|
|
1637
|
+
bound.prototype = new Empty();
|
|
1638
|
+
Empty.prototype = null;
|
|
1639
|
+
}
|
|
1640
|
+
|
|
1641
|
+
return bound;
|
|
1660
1642
|
};
|
|
1661
1643
|
|
|
1644
|
+
var functionBind = Function.prototype.bind || implementation$1;
|
|
1645
|
+
|
|
1646
|
+
/* globals
|
|
1647
|
+
Atomics,
|
|
1648
|
+
SharedArrayBuffer,
|
|
1649
|
+
*/
|
|
1650
|
+
|
|
1651
|
+
var undefined$1;
|
|
1652
|
+
|
|
1653
|
+
var $TypeError = TypeError;
|
|
1654
|
+
|
|
1662
1655
|
var $gOPD = Object.getOwnPropertyDescriptor;
|
|
1663
1656
|
if ($gOPD) {
|
|
1664
1657
|
try {
|
|
@@ -1668,9 +1661,7 @@ if ($gOPD) {
|
|
|
1668
1661
|
}
|
|
1669
1662
|
}
|
|
1670
1663
|
|
|
1671
|
-
var throwTypeError = function () {
|
|
1672
|
-
throw new $TypeError();
|
|
1673
|
-
};
|
|
1664
|
+
var throwTypeError = function () { throw new $TypeError(); };
|
|
1674
1665
|
var ThrowTypeError = $gOPD
|
|
1675
1666
|
? (function () {
|
|
1676
1667
|
try {
|
|
@@ -1691,351 +1682,203 @@ var ThrowTypeError = $gOPD
|
|
|
1691
1682
|
var hasSymbols$2 = hasSymbols$1();
|
|
1692
1683
|
|
|
1693
1684
|
var getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
|
|
1694
|
-
|
|
1695
|
-
var
|
|
1685
|
+
var generatorFunction = undefined$1;
|
|
1686
|
+
var asyncFunction = undefined$1;
|
|
1687
|
+
var asyncGenFunction = undefined$1;
|
|
1696
1688
|
|
|
1697
1689
|
var TypedArray = typeof Uint8Array === 'undefined' ? undefined$1 : getProto(Uint8Array);
|
|
1698
1690
|
|
|
1699
1691
|
var INTRINSICS = {
|
|
1700
|
-
'%AggregateError%': typeof AggregateError === 'undefined' ? undefined$1 : AggregateError,
|
|
1701
1692
|
'%Array%': Array,
|
|
1702
1693
|
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$1 : ArrayBuffer,
|
|
1694
|
+
'%ArrayBufferPrototype%': typeof ArrayBuffer === 'undefined' ? undefined$1 : ArrayBuffer.prototype,
|
|
1703
1695
|
'%ArrayIteratorPrototype%': hasSymbols$2 ? getProto([][Symbol.iterator]()) : undefined$1,
|
|
1696
|
+
'%ArrayPrototype%': Array.prototype,
|
|
1697
|
+
'%ArrayProto_entries%': Array.prototype.entries,
|
|
1698
|
+
'%ArrayProto_forEach%': Array.prototype.forEach,
|
|
1699
|
+
'%ArrayProto_keys%': Array.prototype.keys,
|
|
1700
|
+
'%ArrayProto_values%': Array.prototype.values,
|
|
1704
1701
|
'%AsyncFromSyncIteratorPrototype%': undefined$1,
|
|
1705
|
-
'%AsyncFunction%':
|
|
1706
|
-
'%
|
|
1707
|
-
'%
|
|
1708
|
-
'%
|
|
1702
|
+
'%AsyncFunction%': asyncFunction,
|
|
1703
|
+
'%AsyncFunctionPrototype%': undefined$1,
|
|
1704
|
+
'%AsyncGenerator%': undefined$1,
|
|
1705
|
+
'%AsyncGeneratorFunction%': asyncGenFunction,
|
|
1706
|
+
'%AsyncGeneratorPrototype%': undefined$1,
|
|
1707
|
+
'%AsyncIteratorPrototype%': undefined$1,
|
|
1709
1708
|
'%Atomics%': typeof Atomics === 'undefined' ? undefined$1 : Atomics,
|
|
1710
|
-
'%BigInt%': typeof BigInt === 'undefined' ? undefined$1 : BigInt,
|
|
1711
1709
|
'%Boolean%': Boolean,
|
|
1710
|
+
'%BooleanPrototype%': Boolean.prototype,
|
|
1712
1711
|
'%DataView%': typeof DataView === 'undefined' ? undefined$1 : DataView,
|
|
1712
|
+
'%DataViewPrototype%': typeof DataView === 'undefined' ? undefined$1 : DataView.prototype,
|
|
1713
1713
|
'%Date%': Date,
|
|
1714
|
+
'%DatePrototype%': Date.prototype,
|
|
1714
1715
|
'%decodeURI%': decodeURI,
|
|
1715
1716
|
'%decodeURIComponent%': decodeURIComponent,
|
|
1716
1717
|
'%encodeURI%': encodeURI,
|
|
1717
1718
|
'%encodeURIComponent%': encodeURIComponent,
|
|
1718
1719
|
'%Error%': Error,
|
|
1720
|
+
'%ErrorPrototype%': Error.prototype,
|
|
1719
1721
|
'%eval%': eval, // eslint-disable-line no-eval
|
|
1720
1722
|
'%EvalError%': EvalError,
|
|
1723
|
+
'%EvalErrorPrototype%': EvalError.prototype,
|
|
1721
1724
|
'%Float32Array%': typeof Float32Array === 'undefined' ? undefined$1 : Float32Array,
|
|
1725
|
+
'%Float32ArrayPrototype%': typeof Float32Array === 'undefined' ? undefined$1 : Float32Array.prototype,
|
|
1722
1726
|
'%Float64Array%': typeof Float64Array === 'undefined' ? undefined$1 : Float64Array,
|
|
1723
|
-
'%
|
|
1724
|
-
'%Function%':
|
|
1725
|
-
'%
|
|
1727
|
+
'%Float64ArrayPrototype%': typeof Float64Array === 'undefined' ? undefined$1 : Float64Array.prototype,
|
|
1728
|
+
'%Function%': Function,
|
|
1729
|
+
'%FunctionPrototype%': Function.prototype,
|
|
1730
|
+
'%Generator%': undefined$1,
|
|
1731
|
+
'%GeneratorFunction%': generatorFunction,
|
|
1732
|
+
'%GeneratorPrototype%': undefined$1,
|
|
1726
1733
|
'%Int8Array%': typeof Int8Array === 'undefined' ? undefined$1 : Int8Array,
|
|
1734
|
+
'%Int8ArrayPrototype%': typeof Int8Array === 'undefined' ? undefined$1 : Int8Array.prototype,
|
|
1727
1735
|
'%Int16Array%': typeof Int16Array === 'undefined' ? undefined$1 : Int16Array,
|
|
1736
|
+
'%Int16ArrayPrototype%': typeof Int16Array === 'undefined' ? undefined$1 : Int8Array.prototype,
|
|
1728
1737
|
'%Int32Array%': typeof Int32Array === 'undefined' ? undefined$1 : Int32Array,
|
|
1738
|
+
'%Int32ArrayPrototype%': typeof Int32Array === 'undefined' ? undefined$1 : Int32Array.prototype,
|
|
1729
1739
|
'%isFinite%': isFinite,
|
|
1730
1740
|
'%isNaN%': isNaN,
|
|
1731
1741
|
'%IteratorPrototype%': hasSymbols$2 ? getProto(getProto([][Symbol.iterator]())) : undefined$1,
|
|
1732
1742
|
'%JSON%': typeof JSON === 'object' ? JSON : undefined$1,
|
|
1743
|
+
'%JSONParse%': typeof JSON === 'object' ? JSON.parse : undefined$1,
|
|
1733
1744
|
'%Map%': typeof Map === 'undefined' ? undefined$1 : Map,
|
|
1734
1745
|
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$2 ? undefined$1 : getProto(new Map()[Symbol.iterator]()),
|
|
1746
|
+
'%MapPrototype%': typeof Map === 'undefined' ? undefined$1 : Map.prototype,
|
|
1735
1747
|
'%Math%': Math,
|
|
1736
1748
|
'%Number%': Number,
|
|
1749
|
+
'%NumberPrototype%': Number.prototype,
|
|
1737
1750
|
'%Object%': Object,
|
|
1751
|
+
'%ObjectPrototype%': Object.prototype,
|
|
1752
|
+
'%ObjProto_toString%': Object.prototype.toString,
|
|
1753
|
+
'%ObjProto_valueOf%': Object.prototype.valueOf,
|
|
1738
1754
|
'%parseFloat%': parseFloat,
|
|
1739
1755
|
'%parseInt%': parseInt,
|
|
1740
1756
|
'%Promise%': typeof Promise === 'undefined' ? undefined$1 : Promise,
|
|
1757
|
+
'%PromisePrototype%': typeof Promise === 'undefined' ? undefined$1 : Promise.prototype,
|
|
1758
|
+
'%PromiseProto_then%': typeof Promise === 'undefined' ? undefined$1 : Promise.prototype.then,
|
|
1759
|
+
'%Promise_all%': typeof Promise === 'undefined' ? undefined$1 : Promise.all,
|
|
1760
|
+
'%Promise_reject%': typeof Promise === 'undefined' ? undefined$1 : Promise.reject,
|
|
1761
|
+
'%Promise_resolve%': typeof Promise === 'undefined' ? undefined$1 : Promise.resolve,
|
|
1741
1762
|
'%Proxy%': typeof Proxy === 'undefined' ? undefined$1 : Proxy,
|
|
1742
1763
|
'%RangeError%': RangeError,
|
|
1764
|
+
'%RangeErrorPrototype%': RangeError.prototype,
|
|
1743
1765
|
'%ReferenceError%': ReferenceError,
|
|
1766
|
+
'%ReferenceErrorPrototype%': ReferenceError.prototype,
|
|
1744
1767
|
'%Reflect%': typeof Reflect === 'undefined' ? undefined$1 : Reflect,
|
|
1745
1768
|
'%RegExp%': RegExp,
|
|
1769
|
+
'%RegExpPrototype%': RegExp.prototype,
|
|
1746
1770
|
'%Set%': typeof Set === 'undefined' ? undefined$1 : Set,
|
|
1747
1771
|
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$2 ? undefined$1 : getProto(new Set()[Symbol.iterator]()),
|
|
1772
|
+
'%SetPrototype%': typeof Set === 'undefined' ? undefined$1 : Set.prototype,
|
|
1748
1773
|
'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$1 : SharedArrayBuffer,
|
|
1774
|
+
'%SharedArrayBufferPrototype%': typeof SharedArrayBuffer === 'undefined' ? undefined$1 : SharedArrayBuffer.prototype,
|
|
1749
1775
|
'%String%': String,
|
|
1750
1776
|
'%StringIteratorPrototype%': hasSymbols$2 ? getProto(''[Symbol.iterator]()) : undefined$1,
|
|
1777
|
+
'%StringPrototype%': String.prototype,
|
|
1751
1778
|
'%Symbol%': hasSymbols$2 ? Symbol : undefined$1,
|
|
1752
|
-
'%
|
|
1779
|
+
'%SymbolPrototype%': hasSymbols$2 ? Symbol.prototype : undefined$1,
|
|
1780
|
+
'%SyntaxError%': SyntaxError,
|
|
1781
|
+
'%SyntaxErrorPrototype%': SyntaxError.prototype,
|
|
1753
1782
|
'%ThrowTypeError%': ThrowTypeError,
|
|
1754
1783
|
'%TypedArray%': TypedArray,
|
|
1784
|
+
'%TypedArrayPrototype%': TypedArray ? TypedArray.prototype : undefined$1,
|
|
1755
1785
|
'%TypeError%': $TypeError,
|
|
1786
|
+
'%TypeErrorPrototype%': $TypeError.prototype,
|
|
1756
1787
|
'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$1 : Uint8Array,
|
|
1788
|
+
'%Uint8ArrayPrototype%': typeof Uint8Array === 'undefined' ? undefined$1 : Uint8Array.prototype,
|
|
1757
1789
|
'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$1 : Uint8ClampedArray,
|
|
1790
|
+
'%Uint8ClampedArrayPrototype%': typeof Uint8ClampedArray === 'undefined' ? undefined$1 : Uint8ClampedArray.prototype,
|
|
1758
1791
|
'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$1 : Uint16Array,
|
|
1792
|
+
'%Uint16ArrayPrototype%': typeof Uint16Array === 'undefined' ? undefined$1 : Uint16Array.prototype,
|
|
1759
1793
|
'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined$1 : Uint32Array,
|
|
1794
|
+
'%Uint32ArrayPrototype%': typeof Uint32Array === 'undefined' ? undefined$1 : Uint32Array.prototype,
|
|
1760
1795
|
'%URIError%': URIError,
|
|
1796
|
+
'%URIErrorPrototype%': URIError.prototype,
|
|
1761
1797
|
'%WeakMap%': typeof WeakMap === 'undefined' ? undefined$1 : WeakMap,
|
|
1762
|
-
'%
|
|
1763
|
-
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet
|
|
1798
|
+
'%WeakMapPrototype%': typeof WeakMap === 'undefined' ? undefined$1 : WeakMap.prototype,
|
|
1799
|
+
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet,
|
|
1800
|
+
'%WeakSetPrototype%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet.prototype
|
|
1764
1801
|
};
|
|
1765
1802
|
|
|
1766
|
-
var doEval = function doEval(name) {
|
|
1767
|
-
var value;
|
|
1768
|
-
if (name === '%AsyncFunction%') {
|
|
1769
|
-
value = getEvalledConstructor('async function () {}');
|
|
1770
|
-
} else if (name === '%GeneratorFunction%') {
|
|
1771
|
-
value = getEvalledConstructor('function* () {}');
|
|
1772
|
-
} else if (name === '%AsyncGeneratorFunction%') {
|
|
1773
|
-
value = getEvalledConstructor('async function* () {}');
|
|
1774
|
-
} else if (name === '%AsyncGenerator%') {
|
|
1775
|
-
var fn = doEval('%AsyncGeneratorFunction%');
|
|
1776
|
-
if (fn) {
|
|
1777
|
-
value = fn.prototype;
|
|
1778
|
-
}
|
|
1779
|
-
} else if (name === '%AsyncIteratorPrototype%') {
|
|
1780
|
-
var gen = doEval('%AsyncGenerator%');
|
|
1781
|
-
if (gen) {
|
|
1782
|
-
value = getProto(gen.prototype);
|
|
1783
|
-
}
|
|
1784
|
-
}
|
|
1785
1803
|
|
|
1786
|
-
INTRINSICS[name] = value;
|
|
1787
|
-
|
|
1788
|
-
return value;
|
|
1789
|
-
};
|
|
1790
|
-
|
|
1791
|
-
var LEGACY_ALIASES = {
|
|
1792
|
-
'%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
|
|
1793
|
-
'%ArrayPrototype%': ['Array', 'prototype'],
|
|
1794
|
-
'%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
|
|
1795
|
-
'%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
|
|
1796
|
-
'%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
|
|
1797
|
-
'%ArrayProto_values%': ['Array', 'prototype', 'values'],
|
|
1798
|
-
'%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
|
|
1799
|
-
'%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
|
|
1800
|
-
'%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
|
|
1801
|
-
'%BooleanPrototype%': ['Boolean', 'prototype'],
|
|
1802
|
-
'%DataViewPrototype%': ['DataView', 'prototype'],
|
|
1803
|
-
'%DatePrototype%': ['Date', 'prototype'],
|
|
1804
|
-
'%ErrorPrototype%': ['Error', 'prototype'],
|
|
1805
|
-
'%EvalErrorPrototype%': ['EvalError', 'prototype'],
|
|
1806
|
-
'%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
|
|
1807
|
-
'%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
|
|
1808
|
-
'%FunctionPrototype%': ['Function', 'prototype'],
|
|
1809
|
-
'%Generator%': ['GeneratorFunction', 'prototype'],
|
|
1810
|
-
'%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
|
|
1811
|
-
'%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
|
|
1812
|
-
'%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
|
|
1813
|
-
'%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
|
|
1814
|
-
'%JSONParse%': ['JSON', 'parse'],
|
|
1815
|
-
'%JSONStringify%': ['JSON', 'stringify'],
|
|
1816
|
-
'%MapPrototype%': ['Map', 'prototype'],
|
|
1817
|
-
'%NumberPrototype%': ['Number', 'prototype'],
|
|
1818
|
-
'%ObjectPrototype%': ['Object', 'prototype'],
|
|
1819
|
-
'%ObjProto_toString%': ['Object', 'prototype', 'toString'],
|
|
1820
|
-
'%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
|
|
1821
|
-
'%PromisePrototype%': ['Promise', 'prototype'],
|
|
1822
|
-
'%PromiseProto_then%': ['Promise', 'prototype', 'then'],
|
|
1823
|
-
'%Promise_all%': ['Promise', 'all'],
|
|
1824
|
-
'%Promise_reject%': ['Promise', 'reject'],
|
|
1825
|
-
'%Promise_resolve%': ['Promise', 'resolve'],
|
|
1826
|
-
'%RangeErrorPrototype%': ['RangeError', 'prototype'],
|
|
1827
|
-
'%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
|
|
1828
|
-
'%RegExpPrototype%': ['RegExp', 'prototype'],
|
|
1829
|
-
'%SetPrototype%': ['Set', 'prototype'],
|
|
1830
|
-
'%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
|
|
1831
|
-
'%StringPrototype%': ['String', 'prototype'],
|
|
1832
|
-
'%SymbolPrototype%': ['Symbol', 'prototype'],
|
|
1833
|
-
'%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
|
|
1834
|
-
'%TypedArrayPrototype%': ['TypedArray', 'prototype'],
|
|
1835
|
-
'%TypeErrorPrototype%': ['TypeError', 'prototype'],
|
|
1836
|
-
'%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
|
|
1837
|
-
'%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
|
|
1838
|
-
'%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
|
|
1839
|
-
'%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
|
|
1840
|
-
'%URIErrorPrototype%': ['URIError', 'prototype'],
|
|
1841
|
-
'%WeakMapPrototype%': ['WeakMap', 'prototype'],
|
|
1842
|
-
'%WeakSetPrototype%': ['WeakSet', 'prototype']
|
|
1843
|
-
};
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
var $concat = functionBind.call(Function.call, Array.prototype.concat);
|
|
1848
|
-
var $spliceApply = functionBind.call(Function.apply, Array.prototype.splice);
|
|
1849
1804
|
var $replace = functionBind.call(Function.call, String.prototype.replace);
|
|
1850
|
-
var $strSlice = functionBind.call(Function.call, String.prototype.slice);
|
|
1851
1805
|
|
|
1852
1806
|
/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
|
|
1853
1807
|
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
1854
1808
|
var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
|
|
1855
1809
|
var stringToPath = function stringToPath(string) {
|
|
1856
|
-
var first = $strSlice(string, 0, 1);
|
|
1857
|
-
var last = $strSlice(string, -1);
|
|
1858
|
-
if (first === '%' && last !== '%') {
|
|
1859
|
-
throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
|
|
1860
|
-
} else if (last === '%' && first !== '%') {
|
|
1861
|
-
throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
|
|
1862
|
-
}
|
|
1863
1810
|
var result = [];
|
|
1864
1811
|
$replace(string, rePropName, function (match, number, quote, subString) {
|
|
1865
|
-
result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
|
|
1812
|
+
result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : (number || match);
|
|
1866
1813
|
});
|
|
1867
1814
|
return result;
|
|
1868
1815
|
};
|
|
1869
1816
|
/* end adaptation */
|
|
1870
1817
|
|
|
1871
1818
|
var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
if (src(LEGACY_ALIASES, intrinsicName)) {
|
|
1875
|
-
alias = LEGACY_ALIASES[intrinsicName];
|
|
1876
|
-
intrinsicName = '%' + alias[0] + '%';
|
|
1819
|
+
if (!(name in INTRINSICS)) {
|
|
1820
|
+
throw new SyntaxError('intrinsic ' + name + ' does not exist!');
|
|
1877
1821
|
}
|
|
1878
1822
|
|
|
1879
|
-
if
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
value = doEval(intrinsicName);
|
|
1883
|
-
}
|
|
1884
|
-
if (typeof value === 'undefined' && !allowMissing) {
|
|
1885
|
-
throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
|
|
1886
|
-
}
|
|
1887
|
-
|
|
1888
|
-
return {
|
|
1889
|
-
alias: alias,
|
|
1890
|
-
name: intrinsicName,
|
|
1891
|
-
value: value
|
|
1892
|
-
};
|
|
1823
|
+
// istanbul ignore if // hopefully this is impossible to test :-)
|
|
1824
|
+
if (typeof INTRINSICS[name] === 'undefined' && !allowMissing) {
|
|
1825
|
+
throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
|
|
1893
1826
|
}
|
|
1894
1827
|
|
|
1895
|
-
|
|
1828
|
+
return INTRINSICS[name];
|
|
1896
1829
|
};
|
|
1897
1830
|
|
|
1898
|
-
var
|
|
1831
|
+
var GetIntrinsic = function GetIntrinsic(name, allowMissing) {
|
|
1899
1832
|
if (typeof name !== 'string' || name.length === 0) {
|
|
1900
|
-
throw new
|
|
1833
|
+
throw new TypeError('intrinsic name must be a non-empty string');
|
|
1901
1834
|
}
|
|
1902
1835
|
if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
|
|
1903
|
-
throw new
|
|
1836
|
+
throw new TypeError('"allowMissing" argument must be a boolean');
|
|
1904
1837
|
}
|
|
1905
1838
|
|
|
1906
1839
|
var parts = stringToPath(name);
|
|
1907
|
-
var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
|
|
1908
|
-
|
|
1909
|
-
var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
|
|
1910
|
-
var intrinsicRealName = intrinsic.name;
|
|
1911
|
-
var value = intrinsic.value;
|
|
1912
|
-
var skipFurtherCaching = false;
|
|
1913
|
-
|
|
1914
|
-
var alias = intrinsic.alias;
|
|
1915
|
-
if (alias) {
|
|
1916
|
-
intrinsicBaseName = alias[0];
|
|
1917
|
-
$spliceApply(parts, $concat([0, 1], alias));
|
|
1918
|
-
}
|
|
1919
1840
|
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
var last = $strSlice(part, -1);
|
|
1924
|
-
if (
|
|
1925
|
-
(
|
|
1926
|
-
(first === '"' || first === "'" || first === '`')
|
|
1927
|
-
|| (last === '"' || last === "'" || last === '`')
|
|
1928
|
-
)
|
|
1929
|
-
&& first !== last
|
|
1930
|
-
) {
|
|
1931
|
-
throw new $SyntaxError('property names with quotes must have matching quotes');
|
|
1932
|
-
}
|
|
1933
|
-
if (part === 'constructor' || !isOwn) {
|
|
1934
|
-
skipFurtherCaching = true;
|
|
1935
|
-
}
|
|
1936
|
-
|
|
1937
|
-
intrinsicBaseName += '.' + part;
|
|
1938
|
-
intrinsicRealName = '%' + intrinsicBaseName + '%';
|
|
1939
|
-
|
|
1940
|
-
if (src(INTRINSICS, intrinsicRealName)) {
|
|
1941
|
-
value = INTRINSICS[intrinsicRealName];
|
|
1942
|
-
} else if (value != null) {
|
|
1943
|
-
if (!(part in value)) {
|
|
1944
|
-
if (!allowMissing) {
|
|
1945
|
-
throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
1946
|
-
}
|
|
1947
|
-
return void undefined$1;
|
|
1948
|
-
}
|
|
1841
|
+
var value = getBaseIntrinsic('%' + (parts.length > 0 ? parts[0] : '') + '%', allowMissing);
|
|
1842
|
+
for (var i = 1; i < parts.length; i += 1) {
|
|
1843
|
+
if (value != null) {
|
|
1949
1844
|
if ($gOPD && (i + 1) >= parts.length) {
|
|
1950
|
-
var desc = $gOPD(value,
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
// By convention, when a data property is converted to an accessor
|
|
1954
|
-
// property to emulate a data property that does not suffer from
|
|
1955
|
-
// the override mistake, that accessor's getter is marked with
|
|
1956
|
-
// an `originalValue` property. Here, when we detect this, we
|
|
1957
|
-
// uphold the illusion by pretending to see that original data
|
|
1958
|
-
// property, i.e., returning the value rather than the getter
|
|
1959
|
-
// itself.
|
|
1960
|
-
if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
|
|
1961
|
-
value = desc.get;
|
|
1962
|
-
} else {
|
|
1963
|
-
value = value[part];
|
|
1845
|
+
var desc = $gOPD(value, parts[i]);
|
|
1846
|
+
if (!allowMissing && !(parts[i] in value)) {
|
|
1847
|
+
throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
1964
1848
|
}
|
|
1849
|
+
value = desc ? (desc.get || desc.value) : value[parts[i]];
|
|
1965
1850
|
} else {
|
|
1966
|
-
|
|
1967
|
-
value = value[part];
|
|
1968
|
-
}
|
|
1969
|
-
|
|
1970
|
-
if (isOwn && !skipFurtherCaching) {
|
|
1971
|
-
INTRINSICS[intrinsicRealName] = value;
|
|
1851
|
+
value = value[parts[i]];
|
|
1972
1852
|
}
|
|
1973
1853
|
}
|
|
1974
1854
|
}
|
|
1975
1855
|
return value;
|
|
1976
1856
|
};
|
|
1977
1857
|
|
|
1978
|
-
var
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
var $apply = getIntrinsic('%Function.prototype.apply%');
|
|
1984
|
-
var $call = getIntrinsic('%Function.prototype.call%');
|
|
1985
|
-
var $reflectApply = getIntrinsic('%Reflect.apply%', true) || functionBind.call($call, $apply);
|
|
1858
|
+
var $Function = GetIntrinsic('%Function%');
|
|
1859
|
+
var $apply = $Function.apply;
|
|
1860
|
+
var $call = $Function.call;
|
|
1986
1861
|
|
|
1987
|
-
var
|
|
1988
|
-
|
|
1989
|
-
var $max = getIntrinsic('%Math.max%');
|
|
1990
|
-
|
|
1991
|
-
if ($defineProperty) {
|
|
1992
|
-
try {
|
|
1993
|
-
$defineProperty({}, 'a', { value: 1 });
|
|
1994
|
-
} catch (e) {
|
|
1995
|
-
// IE 8 has a broken defineProperty
|
|
1996
|
-
$defineProperty = null;
|
|
1997
|
-
}
|
|
1998
|
-
}
|
|
1999
|
-
|
|
2000
|
-
module.exports = function callBind(originalFunction) {
|
|
2001
|
-
var func = $reflectApply(functionBind, $call, arguments);
|
|
2002
|
-
if ($gOPD && $defineProperty) {
|
|
2003
|
-
var desc = $gOPD(func, 'length');
|
|
2004
|
-
if (desc.configurable) {
|
|
2005
|
-
// original length, plus the receiver, minus any additional arguments (after the receiver)
|
|
2006
|
-
$defineProperty(
|
|
2007
|
-
func,
|
|
2008
|
-
'length',
|
|
2009
|
-
{ value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }
|
|
2010
|
-
);
|
|
2011
|
-
}
|
|
2012
|
-
}
|
|
2013
|
-
return func;
|
|
1862
|
+
var callBind = function callBind() {
|
|
1863
|
+
return functionBind.apply($call, arguments);
|
|
2014
1864
|
};
|
|
2015
1865
|
|
|
2016
|
-
var
|
|
2017
|
-
return
|
|
1866
|
+
var apply = function applyBind() {
|
|
1867
|
+
return functionBind.apply($apply, arguments);
|
|
2018
1868
|
};
|
|
1869
|
+
callBind.apply = apply;
|
|
2019
1870
|
|
|
2020
|
-
|
|
2021
|
-
$defineProperty(module.exports, 'apply', { value: applyBind });
|
|
2022
|
-
} else {
|
|
2023
|
-
module.exports.apply = applyBind;
|
|
2024
|
-
}
|
|
2025
|
-
});
|
|
2026
|
-
callBind.apply;
|
|
2027
|
-
|
|
2028
|
-
var $indexOf = callBind(getIntrinsic('String.prototype.indexOf'));
|
|
1871
|
+
var $indexOf = callBind(GetIntrinsic('String.prototype.indexOf'));
|
|
2029
1872
|
|
|
2030
1873
|
var callBound = function callBoundIntrinsic(name, allowMissing) {
|
|
2031
|
-
var intrinsic =
|
|
2032
|
-
if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.')
|
|
1874
|
+
var intrinsic = GetIntrinsic(name, !!allowMissing);
|
|
1875
|
+
if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.')) {
|
|
2033
1876
|
return callBind(intrinsic);
|
|
2034
1877
|
}
|
|
2035
1878
|
return intrinsic;
|
|
2036
1879
|
};
|
|
2037
1880
|
|
|
2038
|
-
var $defineProperty =
|
|
1881
|
+
var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
|
|
2039
1882
|
|
|
2040
1883
|
if ($defineProperty) {
|
|
2041
1884
|
try {
|
|
@@ -2077,8 +1920,10 @@ var DefineOwnProperty = function DefineOwnProperty(IsDataDescriptor, SameValue,
|
|
|
2077
1920
|
return true;
|
|
2078
1921
|
};
|
|
2079
1922
|
|
|
2080
|
-
var
|
|
2081
|
-
|
|
1923
|
+
var src = functionBind.call(Function.call, Object.prototype.hasOwnProperty);
|
|
1924
|
+
|
|
1925
|
+
var $TypeError$1 = GetIntrinsic('%TypeError%');
|
|
1926
|
+
var $SyntaxError = GetIntrinsic('%SyntaxError%');
|
|
2082
1927
|
|
|
2083
1928
|
|
|
2084
1929
|
|
|
@@ -2115,14 +1960,14 @@ var predicates = {
|
|
|
2115
1960
|
var assertRecord = function assertRecord(Type, recordType, argumentName, value) {
|
|
2116
1961
|
var predicate = predicates[recordType];
|
|
2117
1962
|
if (typeof predicate !== 'function') {
|
|
2118
|
-
throw new $SyntaxError
|
|
1963
|
+
throw new $SyntaxError('unknown record type: ' + recordType);
|
|
2119
1964
|
}
|
|
2120
1965
|
if (!predicate(Type, value)) {
|
|
2121
1966
|
throw new $TypeError$1(argumentName + ' must be a ' + recordType);
|
|
2122
1967
|
}
|
|
2123
1968
|
};
|
|
2124
1969
|
|
|
2125
|
-
// https://ecma-international.org/ecma-262/5.1/#sec-8
|
|
1970
|
+
// https://www.ecma-international.org/ecma-262/5.1/#sec-8
|
|
2126
1971
|
|
|
2127
1972
|
var Type = function Type(x) {
|
|
2128
1973
|
if (x === null) {
|
|
@@ -2145,19 +1990,16 @@ var Type = function Type(x) {
|
|
|
2145
1990
|
}
|
|
2146
1991
|
};
|
|
2147
1992
|
|
|
2148
|
-
// https://ecma-international.org/ecma-262/
|
|
1993
|
+
// https://www.ecma-international.org/ecma-262/6.0/#sec-tostring
|
|
2149
1994
|
|
|
2150
1995
|
var Type$1 = function Type$1(x) {
|
|
2151
1996
|
if (typeof x === 'symbol') {
|
|
2152
1997
|
return 'Symbol';
|
|
2153
1998
|
}
|
|
2154
|
-
if (typeof x === 'bigint') {
|
|
2155
|
-
return 'BigInt';
|
|
2156
|
-
}
|
|
2157
1999
|
return Type(x);
|
|
2158
2000
|
};
|
|
2159
2001
|
|
|
2160
|
-
// https://ecma-international.org/ecma-262/6.0/#sec-frompropertydescriptor
|
|
2002
|
+
// https://www.ecma-international.org/ecma-262/6.0/#sec-frompropertydescriptor
|
|
2161
2003
|
|
|
2162
2004
|
var FromPropertyDescriptor = function FromPropertyDescriptor(Desc) {
|
|
2163
2005
|
if (typeof Desc === 'undefined') {
|
|
@@ -2188,7 +2030,7 @@ var FromPropertyDescriptor = function FromPropertyDescriptor(Desc) {
|
|
|
2188
2030
|
return obj;
|
|
2189
2031
|
};
|
|
2190
2032
|
|
|
2191
|
-
var $gOPD$1 =
|
|
2033
|
+
var $gOPD$1 = GetIntrinsic('%Object.getOwnPropertyDescriptor%');
|
|
2192
2034
|
if ($gOPD$1) {
|
|
2193
2035
|
try {
|
|
2194
2036
|
$gOPD$1([], 'length');
|
|
@@ -2200,85 +2042,65 @@ if ($gOPD$1) {
|
|
|
2200
2042
|
|
|
2201
2043
|
var getOwnPropertyDescriptor = $gOPD$1;
|
|
2202
2044
|
|
|
2203
|
-
var $Array =
|
|
2045
|
+
var $Array = GetIntrinsic('%Array%');
|
|
2204
2046
|
|
|
2205
2047
|
// eslint-disable-next-line global-require
|
|
2206
2048
|
var toStr$4 = !$Array.isArray && callBound('Object.prototype.toString');
|
|
2207
2049
|
|
|
2208
|
-
// https://ecma-international.org/ecma-262/6.0/#sec-isarray
|
|
2050
|
+
// https://www.ecma-international.org/ecma-262/6.0/#sec-isarray
|
|
2209
2051
|
|
|
2210
2052
|
var IsArray = $Array.isArray || function IsArray(argument) {
|
|
2211
2053
|
return toStr$4(argument) === '[object Array]';
|
|
2212
2054
|
};
|
|
2213
2055
|
|
|
2214
|
-
// https://ecma-international.org/ecma-262/6.0/#sec-ispropertykey
|
|
2056
|
+
// https://www.ecma-international.org/ecma-262/6.0/#sec-ispropertykey
|
|
2215
2057
|
|
|
2216
2058
|
var IsPropertyKey = function IsPropertyKey(argument) {
|
|
2217
2059
|
return typeof argument === 'string' || typeof argument === 'symbol';
|
|
2218
2060
|
};
|
|
2219
2061
|
|
|
2220
|
-
var
|
|
2221
|
-
var
|
|
2222
|
-
var has$1;
|
|
2223
|
-
var $exec;
|
|
2224
|
-
var isRegexMarker;
|
|
2225
|
-
var badStringifier;
|
|
2226
|
-
|
|
2227
|
-
if (hasToStringTag) {
|
|
2228
|
-
has$1 = callBound('Object.prototype.hasOwnProperty');
|
|
2229
|
-
$exec = callBound('RegExp.prototype.exec');
|
|
2230
|
-
isRegexMarker = {};
|
|
2231
|
-
|
|
2232
|
-
var throwRegexMarker = function () {
|
|
2233
|
-
throw isRegexMarker;
|
|
2234
|
-
};
|
|
2235
|
-
badStringifier = {
|
|
2236
|
-
toString: throwRegexMarker,
|
|
2237
|
-
valueOf: throwRegexMarker
|
|
2238
|
-
};
|
|
2062
|
+
var regexExec = RegExp.prototype.exec;
|
|
2063
|
+
var gOPD = Object.getOwnPropertyDescriptor;
|
|
2239
2064
|
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2065
|
+
var tryRegexExecCall = function tryRegexExec(value) {
|
|
2066
|
+
try {
|
|
2067
|
+
var lastIndex = value.lastIndex;
|
|
2068
|
+
value.lastIndex = 0; // eslint-disable-line no-param-reassign
|
|
2244
2069
|
|
|
2245
|
-
|
|
2246
|
-
|
|
2070
|
+
regexExec.call(value);
|
|
2071
|
+
return true;
|
|
2072
|
+
} catch (e) {
|
|
2073
|
+
return false;
|
|
2074
|
+
} finally {
|
|
2075
|
+
value.lastIndex = lastIndex; // eslint-disable-line no-param-reassign
|
|
2076
|
+
}
|
|
2077
|
+
};
|
|
2078
|
+
var toStr$5 = Object.prototype.toString;
|
|
2247
2079
|
var regexClass = '[object RegExp]';
|
|
2080
|
+
var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
|
|
2248
2081
|
|
|
2249
|
-
var isRegex =
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
var descriptor = gOPD(value, 'lastIndex');
|
|
2257
|
-
var hasLastIndexDataProperty = descriptor && has$1(descriptor, 'value');
|
|
2258
|
-
if (!hasLastIndexDataProperty) {
|
|
2259
|
-
return false;
|
|
2260
|
-
}
|
|
2082
|
+
var isRegex = function isRegex(value) {
|
|
2083
|
+
if (!value || typeof value !== 'object') {
|
|
2084
|
+
return false;
|
|
2085
|
+
}
|
|
2086
|
+
if (!hasToStringTag) {
|
|
2087
|
+
return toStr$5.call(value) === regexClass;
|
|
2088
|
+
}
|
|
2261
2089
|
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
}
|
|
2090
|
+
var descriptor = gOPD(value, 'lastIndex');
|
|
2091
|
+
var hasLastIndexDataProperty = descriptor && src(descriptor, 'value');
|
|
2092
|
+
if (!hasLastIndexDataProperty) {
|
|
2093
|
+
return false;
|
|
2267
2094
|
}
|
|
2268
|
-
: function isRegex(value) {
|
|
2269
|
-
// In older browsers, typeof regex incorrectly returns 'function'
|
|
2270
|
-
if (!value || (typeof value !== 'object' && typeof value !== 'function')) {
|
|
2271
|
-
return false;
|
|
2272
|
-
}
|
|
2273
2095
|
|
|
2274
|
-
|
|
2275
|
-
|
|
2096
|
+
return tryRegexExecCall(value);
|
|
2097
|
+
};
|
|
2276
2098
|
|
|
2277
|
-
// http://ecma-international.org/ecma-262/5.1/#sec-9.2
|
|
2099
|
+
// http://www.ecma-international.org/ecma-262/5.1/#sec-9.2
|
|
2278
2100
|
|
|
2279
2101
|
var ToBoolean = function ToBoolean(value) { return !!value; };
|
|
2280
2102
|
|
|
2281
|
-
var $match =
|
|
2103
|
+
var $match = GetIntrinsic('%Symbol.match%', true);
|
|
2282
2104
|
|
|
2283
2105
|
|
|
2284
2106
|
|
|
@@ -2300,27 +2122,6 @@ var IsRegExp = function IsRegExp(argument) {
|
|
|
2300
2122
|
};
|
|
2301
2123
|
|
|
2302
2124
|
var fnToStr = Function.prototype.toString;
|
|
2303
|
-
var reflectApply = typeof Reflect === 'object' && Reflect !== null && Reflect.apply;
|
|
2304
|
-
var badArrayLike;
|
|
2305
|
-
var isCallableMarker;
|
|
2306
|
-
if (typeof reflectApply === 'function' && typeof Object.defineProperty === 'function') {
|
|
2307
|
-
try {
|
|
2308
|
-
badArrayLike = Object.defineProperty({}, 'length', {
|
|
2309
|
-
get: function () {
|
|
2310
|
-
throw isCallableMarker;
|
|
2311
|
-
}
|
|
2312
|
-
});
|
|
2313
|
-
isCallableMarker = {};
|
|
2314
|
-
// eslint-disable-next-line no-throw-literal
|
|
2315
|
-
reflectApply(function () { throw 42; }, null, badArrayLike);
|
|
2316
|
-
} catch (_) {
|
|
2317
|
-
if (_ !== isCallableMarker) {
|
|
2318
|
-
reflectApply = null;
|
|
2319
|
-
}
|
|
2320
|
-
}
|
|
2321
|
-
} else {
|
|
2322
|
-
reflectApply = null;
|
|
2323
|
-
}
|
|
2324
2125
|
|
|
2325
2126
|
var constructorRegex = /^\s*class\b/;
|
|
2326
2127
|
var isES6ClassFn = function isES6ClassFunction(value) {
|
|
@@ -2341,42 +2142,26 @@ var tryFunctionObject = function tryFunctionToStr(value) {
|
|
|
2341
2142
|
return false;
|
|
2342
2143
|
}
|
|
2343
2144
|
};
|
|
2344
|
-
var toStr$
|
|
2145
|
+
var toStr$6 = Object.prototype.toString;
|
|
2345
2146
|
var fnClass = '[object Function]';
|
|
2346
2147
|
var genClass = '[object GeneratorFunction]';
|
|
2347
2148
|
var hasToStringTag$1 = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
|
|
2348
|
-
/* globals document: false */
|
|
2349
|
-
var documentDotAll = typeof document === 'object' && typeof document.all === 'undefined' && document.all !== undefined ? document.all : {};
|
|
2350
|
-
|
|
2351
|
-
var isCallable = reflectApply
|
|
2352
|
-
? function isCallable(value) {
|
|
2353
|
-
if (value === documentDotAll) { return true; }
|
|
2354
|
-
if (!value) { return false; }
|
|
2355
|
-
if (typeof value !== 'function' && typeof value !== 'object') { return false; }
|
|
2356
|
-
if (typeof value === 'function' && !value.prototype) { return true; }
|
|
2357
|
-
try {
|
|
2358
|
-
reflectApply(value, null, badArrayLike);
|
|
2359
|
-
} catch (e) {
|
|
2360
|
-
if (e !== isCallableMarker) { return false; }
|
|
2361
|
-
}
|
|
2362
|
-
return !isES6ClassFn(value);
|
|
2363
|
-
}
|
|
2364
|
-
: function isCallable(value) {
|
|
2365
|
-
if (value === documentDotAll) { return true; }
|
|
2366
|
-
if (!value) { return false; }
|
|
2367
|
-
if (typeof value !== 'function' && typeof value !== 'object') { return false; }
|
|
2368
|
-
if (typeof value === 'function' && !value.prototype) { return true; }
|
|
2369
|
-
if (hasToStringTag$1) { return tryFunctionObject(value); }
|
|
2370
|
-
if (isES6ClassFn(value)) { return false; }
|
|
2371
|
-
var strClass = toStr$5.call(value);
|
|
2372
|
-
return strClass === fnClass || strClass === genClass;
|
|
2373
|
-
};
|
|
2374
2149
|
|
|
2375
|
-
|
|
2150
|
+
var isCallable = function isCallable(value) {
|
|
2151
|
+
if (!value) { return false; }
|
|
2152
|
+
if (typeof value !== 'function' && typeof value !== 'object') { return false; }
|
|
2153
|
+
if (typeof value === 'function' && !value.prototype) { return true; }
|
|
2154
|
+
if (hasToStringTag$1) { return tryFunctionObject(value); }
|
|
2155
|
+
if (isES6ClassFn(value)) { return false; }
|
|
2156
|
+
var strClass = toStr$6.call(value);
|
|
2157
|
+
return strClass === fnClass || strClass === genClass;
|
|
2158
|
+
};
|
|
2159
|
+
|
|
2160
|
+
// http://www.ecma-international.org/ecma-262/5.1/#sec-9.11
|
|
2376
2161
|
|
|
2377
2162
|
var IsCallable = isCallable;
|
|
2378
2163
|
|
|
2379
|
-
var $TypeError$2 =
|
|
2164
|
+
var $TypeError$2 = GetIntrinsic('%TypeError%');
|
|
2380
2165
|
|
|
2381
2166
|
|
|
2382
2167
|
|
|
@@ -2405,7 +2190,7 @@ var ToPropertyDescriptor = function ToPropertyDescriptor(Obj) {
|
|
|
2405
2190
|
if (src(Obj, 'get')) {
|
|
2406
2191
|
var getter = Obj.get;
|
|
2407
2192
|
if (typeof getter !== 'undefined' && !IsCallable(getter)) {
|
|
2408
|
-
throw new
|
|
2193
|
+
throw new TypeError('getter must be a function');
|
|
2409
2194
|
}
|
|
2410
2195
|
desc['[[Get]]'] = getter;
|
|
2411
2196
|
}
|
|
@@ -2423,7 +2208,7 @@ var ToPropertyDescriptor = function ToPropertyDescriptor(Obj) {
|
|
|
2423
2208
|
return desc;
|
|
2424
2209
|
};
|
|
2425
2210
|
|
|
2426
|
-
var $TypeError$3 =
|
|
2211
|
+
var $TypeError$3 = GetIntrinsic('%TypeError%');
|
|
2427
2212
|
|
|
2428
2213
|
|
|
2429
2214
|
|
|
@@ -2437,7 +2222,7 @@ var $isEnumerable$1 = callBound('Object.prototype.propertyIsEnumerable');
|
|
|
2437
2222
|
|
|
2438
2223
|
|
|
2439
2224
|
|
|
2440
|
-
// https://ecma-international.org/ecma-262/6.0/#sec-ordinarygetownproperty
|
|
2225
|
+
// https://www.ecma-international.org/ecma-262/6.0/#sec-ordinarygetownproperty
|
|
2441
2226
|
|
|
2442
2227
|
var OrdinaryGetOwnProperty = function OrdinaryGetOwnProperty(O, P) {
|
|
2443
2228
|
if (Type$1(O) !== 'Object') {
|
|
@@ -2463,7 +2248,7 @@ var OrdinaryGetOwnProperty = function OrdinaryGetOwnProperty(O, P) {
|
|
|
2463
2248
|
return ToPropertyDescriptor(getOwnPropertyDescriptor(O, P));
|
|
2464
2249
|
};
|
|
2465
2250
|
|
|
2466
|
-
// https://ecma-international.org/ecma-262/6.0/#sec-isdatadescriptor
|
|
2251
|
+
// https://www.ecma-international.org/ecma-262/6.0/#sec-isdatadescriptor
|
|
2467
2252
|
|
|
2468
2253
|
var IsDataDescriptor = function IsDataDescriptor(Desc) {
|
|
2469
2254
|
if (typeof Desc === 'undefined') {
|
|
@@ -2483,14 +2268,14 @@ var isPrimitive = function isPrimitive(value) {
|
|
|
2483
2268
|
return value === null || (typeof value !== 'function' && typeof value !== 'object');
|
|
2484
2269
|
};
|
|
2485
2270
|
|
|
2486
|
-
var $Object =
|
|
2271
|
+
var $Object = GetIntrinsic('%Object%');
|
|
2487
2272
|
|
|
2488
2273
|
|
|
2489
2274
|
|
|
2490
2275
|
var $preventExtensions = $Object.preventExtensions;
|
|
2491
2276
|
var $isExtensible = $Object.isExtensible;
|
|
2492
2277
|
|
|
2493
|
-
// https://ecma-international.org/ecma-262/6.0/#sec-isextensible-o
|
|
2278
|
+
// https://www.ecma-international.org/ecma-262/6.0/#sec-isextensible-o
|
|
2494
2279
|
|
|
2495
2280
|
var IsExtensible = $preventExtensions
|
|
2496
2281
|
? function IsExtensible(obj) {
|
|
@@ -2504,7 +2289,7 @@ var _isNaN = Number.isNaN || function isNaN(a) {
|
|
|
2504
2289
|
return a !== a;
|
|
2505
2290
|
};
|
|
2506
2291
|
|
|
2507
|
-
// http://ecma-international.org/ecma-262/5.1/#sec-9.12
|
|
2292
|
+
// http://www.ecma-international.org/ecma-262/5.1/#sec-9.12
|
|
2508
2293
|
|
|
2509
2294
|
var SameValue = function SameValue(x, y) {
|
|
2510
2295
|
if (x === y) { // 0 === -0, but they are not identical.
|
|
@@ -2514,7 +2299,7 @@ var SameValue = function SameValue(x, y) {
|
|
|
2514
2299
|
return _isNaN(x) && _isNaN(y);
|
|
2515
2300
|
};
|
|
2516
2301
|
|
|
2517
|
-
var $TypeError$4 =
|
|
2302
|
+
var $TypeError$4 = GetIntrinsic('%TypeError%');
|
|
2518
2303
|
|
|
2519
2304
|
|
|
2520
2305
|
|
|
@@ -2526,7 +2311,7 @@ var $TypeError$4 = getIntrinsic('%TypeError%');
|
|
|
2526
2311
|
|
|
2527
2312
|
|
|
2528
2313
|
|
|
2529
|
-
// https://ecma-international.org/ecma-262/6.0/#sec-createdataproperty
|
|
2314
|
+
// https://www.ecma-international.org/ecma-262/6.0/#sec-createdataproperty
|
|
2530
2315
|
|
|
2531
2316
|
var CreateDataProperty = function CreateDataProperty(O, P, V) {
|
|
2532
2317
|
if (Type$1(O) !== 'Object') {
|
|
@@ -2556,9 +2341,9 @@ var CreateDataProperty = function CreateDataProperty(O, P, V) {
|
|
|
2556
2341
|
);
|
|
2557
2342
|
};
|
|
2558
2343
|
|
|
2559
|
-
var $TypeError$5 =
|
|
2344
|
+
var $TypeError$5 = GetIntrinsic('%TypeError%');
|
|
2560
2345
|
|
|
2561
|
-
// http://ecma-international.org/ecma-262/5.1/#sec-9.10
|
|
2346
|
+
// http://www.ecma-international.org/ecma-262/5.1/#sec-9.10
|
|
2562
2347
|
|
|
2563
2348
|
var CheckObjectCoercible = function CheckObjectCoercible(value, optMessage) {
|
|
2564
2349
|
if (value == null) {
|
|
@@ -2569,11 +2354,11 @@ var CheckObjectCoercible = function CheckObjectCoercible(value, optMessage) {
|
|
|
2569
2354
|
|
|
2570
2355
|
var RequireObjectCoercible = CheckObjectCoercible;
|
|
2571
2356
|
|
|
2572
|
-
var $Object$1 =
|
|
2357
|
+
var $Object$1 = GetIntrinsic('%Object%');
|
|
2573
2358
|
|
|
2574
2359
|
|
|
2575
2360
|
|
|
2576
|
-
// https://ecma-international.org/ecma-262/6.0/#sec-toobject
|
|
2361
|
+
// https://www.ecma-international.org/ecma-262/6.0/#sec-toobject
|
|
2577
2362
|
|
|
2578
2363
|
var ToObject = function ToObject(value) {
|
|
2579
2364
|
RequireObjectCoercible(value);
|
|
@@ -2583,10 +2368,10 @@ var ToObject = function ToObject(value) {
|
|
|
2583
2368
|
var $gOPD$2 = Object.getOwnPropertyDescriptor;
|
|
2584
2369
|
var $getOwnNames = Object.getOwnPropertyNames;
|
|
2585
2370
|
var $getSymbols = Object.getOwnPropertySymbols;
|
|
2586
|
-
var $concat
|
|
2371
|
+
var $concat = callBound('Array.prototype.concat');
|
|
2587
2372
|
var $reduce = callBound('Array.prototype.reduce');
|
|
2588
2373
|
var getAll = $getSymbols ? function (obj) {
|
|
2589
|
-
return $concat
|
|
2374
|
+
return $concat($getOwnNames(obj), $getSymbols(obj));
|
|
2590
2375
|
} : $getOwnNames;
|
|
2591
2376
|
|
|
2592
2377
|
var isES5 = IsCallable($gOPD$2) && IsCallable($getOwnNames);
|
|
@@ -2625,281 +2410,13 @@ var shim = function shimGetOwnPropertyDescriptors() {
|
|
|
2625
2410
|
return polyfill$1;
|
|
2626
2411
|
};
|
|
2627
2412
|
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
defineProperties_1(bound, {
|
|
2413
|
+
defineProperties_1(implementation$2, {
|
|
2631
2414
|
getPolyfill: polyfill,
|
|
2632
2415
|
implementation: implementation$2,
|
|
2633
2416
|
shim: shim
|
|
2634
2417
|
});
|
|
2635
2418
|
|
|
2636
|
-
var object_getownpropertydescriptors =
|
|
2637
|
-
|
|
2638
|
-
/* globals
|
|
2639
|
-
Atomics,
|
|
2640
|
-
SharedArrayBuffer,
|
|
2641
|
-
*/
|
|
2642
|
-
|
|
2643
|
-
var undefined$2;
|
|
2644
|
-
|
|
2645
|
-
var $TypeError$6 = TypeError;
|
|
2646
|
-
|
|
2647
|
-
var $gOPD$3 = Object.getOwnPropertyDescriptor;
|
|
2648
|
-
if ($gOPD$3) {
|
|
2649
|
-
try {
|
|
2650
|
-
$gOPD$3({}, '');
|
|
2651
|
-
} catch (e) {
|
|
2652
|
-
$gOPD$3 = null; // this is IE 8, which has a broken gOPD
|
|
2653
|
-
}
|
|
2654
|
-
}
|
|
2655
|
-
|
|
2656
|
-
var throwTypeError$1 = function () { throw new $TypeError$6(); };
|
|
2657
|
-
var ThrowTypeError$1 = $gOPD$3
|
|
2658
|
-
? (function () {
|
|
2659
|
-
try {
|
|
2660
|
-
// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
|
|
2661
|
-
arguments.callee; // IE 8 does not throw here
|
|
2662
|
-
return throwTypeError$1;
|
|
2663
|
-
} catch (calleeThrows) {
|
|
2664
|
-
try {
|
|
2665
|
-
// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
|
|
2666
|
-
return $gOPD$3(arguments, 'callee').get;
|
|
2667
|
-
} catch (gOPDthrows) {
|
|
2668
|
-
return throwTypeError$1;
|
|
2669
|
-
}
|
|
2670
|
-
}
|
|
2671
|
-
}())
|
|
2672
|
-
: throwTypeError$1;
|
|
2673
|
-
|
|
2674
|
-
var hasSymbols$4 = hasSymbols$1();
|
|
2675
|
-
|
|
2676
|
-
var getProto$1 = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
|
|
2677
|
-
var generatorFunction = undefined$2;
|
|
2678
|
-
var asyncFunction = undefined$2;
|
|
2679
|
-
var asyncGenFunction = undefined$2;
|
|
2680
|
-
|
|
2681
|
-
var TypedArray$1 = typeof Uint8Array === 'undefined' ? undefined$2 : getProto$1(Uint8Array);
|
|
2682
|
-
|
|
2683
|
-
var INTRINSICS$1 = {
|
|
2684
|
-
'%Array%': Array,
|
|
2685
|
-
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$2 : ArrayBuffer,
|
|
2686
|
-
'%ArrayBufferPrototype%': typeof ArrayBuffer === 'undefined' ? undefined$2 : ArrayBuffer.prototype,
|
|
2687
|
-
'%ArrayIteratorPrototype%': hasSymbols$4 ? getProto$1([][Symbol.iterator]()) : undefined$2,
|
|
2688
|
-
'%ArrayPrototype%': Array.prototype,
|
|
2689
|
-
'%ArrayProto_entries%': Array.prototype.entries,
|
|
2690
|
-
'%ArrayProto_forEach%': Array.prototype.forEach,
|
|
2691
|
-
'%ArrayProto_keys%': Array.prototype.keys,
|
|
2692
|
-
'%ArrayProto_values%': Array.prototype.values,
|
|
2693
|
-
'%AsyncFromSyncIteratorPrototype%': undefined$2,
|
|
2694
|
-
'%AsyncFunction%': asyncFunction,
|
|
2695
|
-
'%AsyncFunctionPrototype%': undefined$2,
|
|
2696
|
-
'%AsyncGenerator%': undefined$2,
|
|
2697
|
-
'%AsyncGeneratorFunction%': asyncGenFunction,
|
|
2698
|
-
'%AsyncGeneratorPrototype%': undefined$2,
|
|
2699
|
-
'%AsyncIteratorPrototype%': undefined$2,
|
|
2700
|
-
'%Atomics%': typeof Atomics === 'undefined' ? undefined$2 : Atomics,
|
|
2701
|
-
'%Boolean%': Boolean,
|
|
2702
|
-
'%BooleanPrototype%': Boolean.prototype,
|
|
2703
|
-
'%DataView%': typeof DataView === 'undefined' ? undefined$2 : DataView,
|
|
2704
|
-
'%DataViewPrototype%': typeof DataView === 'undefined' ? undefined$2 : DataView.prototype,
|
|
2705
|
-
'%Date%': Date,
|
|
2706
|
-
'%DatePrototype%': Date.prototype,
|
|
2707
|
-
'%decodeURI%': decodeURI,
|
|
2708
|
-
'%decodeURIComponent%': decodeURIComponent,
|
|
2709
|
-
'%encodeURI%': encodeURI,
|
|
2710
|
-
'%encodeURIComponent%': encodeURIComponent,
|
|
2711
|
-
'%Error%': Error,
|
|
2712
|
-
'%ErrorPrototype%': Error.prototype,
|
|
2713
|
-
'%eval%': eval, // eslint-disable-line no-eval
|
|
2714
|
-
'%EvalError%': EvalError,
|
|
2715
|
-
'%EvalErrorPrototype%': EvalError.prototype,
|
|
2716
|
-
'%Float32Array%': typeof Float32Array === 'undefined' ? undefined$2 : Float32Array,
|
|
2717
|
-
'%Float32ArrayPrototype%': typeof Float32Array === 'undefined' ? undefined$2 : Float32Array.prototype,
|
|
2718
|
-
'%Float64Array%': typeof Float64Array === 'undefined' ? undefined$2 : Float64Array,
|
|
2719
|
-
'%Float64ArrayPrototype%': typeof Float64Array === 'undefined' ? undefined$2 : Float64Array.prototype,
|
|
2720
|
-
'%Function%': Function,
|
|
2721
|
-
'%FunctionPrototype%': Function.prototype,
|
|
2722
|
-
'%Generator%': undefined$2,
|
|
2723
|
-
'%GeneratorFunction%': generatorFunction,
|
|
2724
|
-
'%GeneratorPrototype%': undefined$2,
|
|
2725
|
-
'%Int8Array%': typeof Int8Array === 'undefined' ? undefined$2 : Int8Array,
|
|
2726
|
-
'%Int8ArrayPrototype%': typeof Int8Array === 'undefined' ? undefined$2 : Int8Array.prototype,
|
|
2727
|
-
'%Int16Array%': typeof Int16Array === 'undefined' ? undefined$2 : Int16Array,
|
|
2728
|
-
'%Int16ArrayPrototype%': typeof Int16Array === 'undefined' ? undefined$2 : Int8Array.prototype,
|
|
2729
|
-
'%Int32Array%': typeof Int32Array === 'undefined' ? undefined$2 : Int32Array,
|
|
2730
|
-
'%Int32ArrayPrototype%': typeof Int32Array === 'undefined' ? undefined$2 : Int32Array.prototype,
|
|
2731
|
-
'%isFinite%': isFinite,
|
|
2732
|
-
'%isNaN%': isNaN,
|
|
2733
|
-
'%IteratorPrototype%': hasSymbols$4 ? getProto$1(getProto$1([][Symbol.iterator]())) : undefined$2,
|
|
2734
|
-
'%JSON%': typeof JSON === 'object' ? JSON : undefined$2,
|
|
2735
|
-
'%JSONParse%': typeof JSON === 'object' ? JSON.parse : undefined$2,
|
|
2736
|
-
'%Map%': typeof Map === 'undefined' ? undefined$2 : Map,
|
|
2737
|
-
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$4 ? undefined$2 : getProto$1(new Map()[Symbol.iterator]()),
|
|
2738
|
-
'%MapPrototype%': typeof Map === 'undefined' ? undefined$2 : Map.prototype,
|
|
2739
|
-
'%Math%': Math,
|
|
2740
|
-
'%Number%': Number,
|
|
2741
|
-
'%NumberPrototype%': Number.prototype,
|
|
2742
|
-
'%Object%': Object,
|
|
2743
|
-
'%ObjectPrototype%': Object.prototype,
|
|
2744
|
-
'%ObjProto_toString%': Object.prototype.toString,
|
|
2745
|
-
'%ObjProto_valueOf%': Object.prototype.valueOf,
|
|
2746
|
-
'%parseFloat%': parseFloat,
|
|
2747
|
-
'%parseInt%': parseInt,
|
|
2748
|
-
'%Promise%': typeof Promise === 'undefined' ? undefined$2 : Promise,
|
|
2749
|
-
'%PromisePrototype%': typeof Promise === 'undefined' ? undefined$2 : Promise.prototype,
|
|
2750
|
-
'%PromiseProto_then%': typeof Promise === 'undefined' ? undefined$2 : Promise.prototype.then,
|
|
2751
|
-
'%Promise_all%': typeof Promise === 'undefined' ? undefined$2 : Promise.all,
|
|
2752
|
-
'%Promise_reject%': typeof Promise === 'undefined' ? undefined$2 : Promise.reject,
|
|
2753
|
-
'%Promise_resolve%': typeof Promise === 'undefined' ? undefined$2 : Promise.resolve,
|
|
2754
|
-
'%Proxy%': typeof Proxy === 'undefined' ? undefined$2 : Proxy,
|
|
2755
|
-
'%RangeError%': RangeError,
|
|
2756
|
-
'%RangeErrorPrototype%': RangeError.prototype,
|
|
2757
|
-
'%ReferenceError%': ReferenceError,
|
|
2758
|
-
'%ReferenceErrorPrototype%': ReferenceError.prototype,
|
|
2759
|
-
'%Reflect%': typeof Reflect === 'undefined' ? undefined$2 : Reflect,
|
|
2760
|
-
'%RegExp%': RegExp,
|
|
2761
|
-
'%RegExpPrototype%': RegExp.prototype,
|
|
2762
|
-
'%Set%': typeof Set === 'undefined' ? undefined$2 : Set,
|
|
2763
|
-
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$4 ? undefined$2 : getProto$1(new Set()[Symbol.iterator]()),
|
|
2764
|
-
'%SetPrototype%': typeof Set === 'undefined' ? undefined$2 : Set.prototype,
|
|
2765
|
-
'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$2 : SharedArrayBuffer,
|
|
2766
|
-
'%SharedArrayBufferPrototype%': typeof SharedArrayBuffer === 'undefined' ? undefined$2 : SharedArrayBuffer.prototype,
|
|
2767
|
-
'%String%': String,
|
|
2768
|
-
'%StringIteratorPrototype%': hasSymbols$4 ? getProto$1(''[Symbol.iterator]()) : undefined$2,
|
|
2769
|
-
'%StringPrototype%': String.prototype,
|
|
2770
|
-
'%Symbol%': hasSymbols$4 ? Symbol : undefined$2,
|
|
2771
|
-
'%SymbolPrototype%': hasSymbols$4 ? Symbol.prototype : undefined$2,
|
|
2772
|
-
'%SyntaxError%': SyntaxError,
|
|
2773
|
-
'%SyntaxErrorPrototype%': SyntaxError.prototype,
|
|
2774
|
-
'%ThrowTypeError%': ThrowTypeError$1,
|
|
2775
|
-
'%TypedArray%': TypedArray$1,
|
|
2776
|
-
'%TypedArrayPrototype%': TypedArray$1 ? TypedArray$1.prototype : undefined$2,
|
|
2777
|
-
'%TypeError%': $TypeError$6,
|
|
2778
|
-
'%TypeErrorPrototype%': $TypeError$6.prototype,
|
|
2779
|
-
'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$2 : Uint8Array,
|
|
2780
|
-
'%Uint8ArrayPrototype%': typeof Uint8Array === 'undefined' ? undefined$2 : Uint8Array.prototype,
|
|
2781
|
-
'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$2 : Uint8ClampedArray,
|
|
2782
|
-
'%Uint8ClampedArrayPrototype%': typeof Uint8ClampedArray === 'undefined' ? undefined$2 : Uint8ClampedArray.prototype,
|
|
2783
|
-
'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$2 : Uint16Array,
|
|
2784
|
-
'%Uint16ArrayPrototype%': typeof Uint16Array === 'undefined' ? undefined$2 : Uint16Array.prototype,
|
|
2785
|
-
'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined$2 : Uint32Array,
|
|
2786
|
-
'%Uint32ArrayPrototype%': typeof Uint32Array === 'undefined' ? undefined$2 : Uint32Array.prototype,
|
|
2787
|
-
'%URIError%': URIError,
|
|
2788
|
-
'%URIErrorPrototype%': URIError.prototype,
|
|
2789
|
-
'%WeakMap%': typeof WeakMap === 'undefined' ? undefined$2 : WeakMap,
|
|
2790
|
-
'%WeakMapPrototype%': typeof WeakMap === 'undefined' ? undefined$2 : WeakMap.prototype,
|
|
2791
|
-
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined$2 : WeakSet,
|
|
2792
|
-
'%WeakSetPrototype%': typeof WeakSet === 'undefined' ? undefined$2 : WeakSet.prototype
|
|
2793
|
-
};
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
var $replace$1 = functionBind.call(Function.call, String.prototype.replace);
|
|
2797
|
-
|
|
2798
|
-
/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
|
|
2799
|
-
var rePropName$1 = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
2800
|
-
var reEscapeChar$1 = /\\(\\)?/g; /** Used to match backslashes in property paths. */
|
|
2801
|
-
var stringToPath$1 = function stringToPath(string) {
|
|
2802
|
-
var result = [];
|
|
2803
|
-
$replace$1(string, rePropName$1, function (match, number, quote, subString) {
|
|
2804
|
-
result[result.length] = quote ? $replace$1(subString, reEscapeChar$1, '$1') : (number || match);
|
|
2805
|
-
});
|
|
2806
|
-
return result;
|
|
2807
|
-
};
|
|
2808
|
-
/* end adaptation */
|
|
2809
|
-
|
|
2810
|
-
var getBaseIntrinsic$1 = function getBaseIntrinsic(name, allowMissing) {
|
|
2811
|
-
if (!(name in INTRINSICS$1)) {
|
|
2812
|
-
throw new SyntaxError('intrinsic ' + name + ' does not exist!');
|
|
2813
|
-
}
|
|
2814
|
-
|
|
2815
|
-
// istanbul ignore if // hopefully this is impossible to test :-)
|
|
2816
|
-
if (typeof INTRINSICS$1[name] === 'undefined' && !allowMissing) {
|
|
2817
|
-
throw new $TypeError$6('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
|
|
2818
|
-
}
|
|
2819
|
-
|
|
2820
|
-
return INTRINSICS$1[name];
|
|
2821
|
-
};
|
|
2822
|
-
|
|
2823
|
-
var GetIntrinsic = function GetIntrinsic(name, allowMissing) {
|
|
2824
|
-
if (typeof name !== 'string' || name.length === 0) {
|
|
2825
|
-
throw new TypeError('intrinsic name must be a non-empty string');
|
|
2826
|
-
}
|
|
2827
|
-
if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
|
|
2828
|
-
throw new TypeError('"allowMissing" argument must be a boolean');
|
|
2829
|
-
}
|
|
2830
|
-
|
|
2831
|
-
var parts = stringToPath$1(name);
|
|
2832
|
-
|
|
2833
|
-
var value = getBaseIntrinsic$1('%' + (parts.length > 0 ? parts[0] : '') + '%', allowMissing);
|
|
2834
|
-
for (var i = 1; i < parts.length; i += 1) {
|
|
2835
|
-
if (value != null) {
|
|
2836
|
-
if ($gOPD$3 && (i + 1) >= parts.length) {
|
|
2837
|
-
var desc = $gOPD$3(value, parts[i]);
|
|
2838
|
-
if (!allowMissing && !(parts[i] in value)) {
|
|
2839
|
-
throw new $TypeError$6('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
2840
|
-
}
|
|
2841
|
-
// By convention, when a data property is converted to an accessor
|
|
2842
|
-
// property to emulate a data property that does not suffer from
|
|
2843
|
-
// the override mistake, that accessor's getter is marked with
|
|
2844
|
-
// an `originalValue` property. Here, when we detect this, we
|
|
2845
|
-
// uphold the illusion by pretending to see that original data
|
|
2846
|
-
// property, i.e., returning the value rather than the getter
|
|
2847
|
-
// itself.
|
|
2848
|
-
value = desc && 'get' in desc && !('originalValue' in desc.get) ? desc.get : value[parts[i]];
|
|
2849
|
-
} else {
|
|
2850
|
-
value = value[parts[i]];
|
|
2851
|
-
}
|
|
2852
|
-
}
|
|
2853
|
-
}
|
|
2854
|
-
return value;
|
|
2855
|
-
};
|
|
2856
|
-
|
|
2857
|
-
var callBind$1 = createCommonjsModule(function (module) {
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
var $apply = GetIntrinsic('%Function.prototype.apply%');
|
|
2864
|
-
var $call = GetIntrinsic('%Function.prototype.call%');
|
|
2865
|
-
var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || functionBind.call($call, $apply);
|
|
2866
|
-
|
|
2867
|
-
var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
|
|
2868
|
-
|
|
2869
|
-
if ($defineProperty) {
|
|
2870
|
-
try {
|
|
2871
|
-
$defineProperty({}, 'a', { value: 1 });
|
|
2872
|
-
} catch (e) {
|
|
2873
|
-
// IE 8 has a broken defineProperty
|
|
2874
|
-
$defineProperty = null;
|
|
2875
|
-
}
|
|
2876
|
-
}
|
|
2877
|
-
|
|
2878
|
-
module.exports = function callBind() {
|
|
2879
|
-
return $reflectApply(functionBind, $call, arguments);
|
|
2880
|
-
};
|
|
2881
|
-
|
|
2882
|
-
var applyBind = function applyBind() {
|
|
2883
|
-
return $reflectApply(functionBind, $apply, arguments);
|
|
2884
|
-
};
|
|
2885
|
-
|
|
2886
|
-
if ($defineProperty) {
|
|
2887
|
-
$defineProperty(module.exports, 'apply', { value: applyBind });
|
|
2888
|
-
} else {
|
|
2889
|
-
module.exports.apply = applyBind;
|
|
2890
|
-
}
|
|
2891
|
-
});
|
|
2892
|
-
callBind$1.apply;
|
|
2893
|
-
|
|
2894
|
-
var $indexOf$1 = callBind$1(GetIntrinsic('String.prototype.indexOf'));
|
|
2895
|
-
|
|
2896
|
-
var callBound$1 = function callBoundIntrinsic(name, allowMissing) {
|
|
2897
|
-
var intrinsic = GetIntrinsic(name, !!allowMissing);
|
|
2898
|
-
if (typeof intrinsic === 'function' && $indexOf$1(name, '.prototype.')) {
|
|
2899
|
-
return callBind$1(intrinsic);
|
|
2900
|
-
}
|
|
2901
|
-
return intrinsic;
|
|
2902
|
-
};
|
|
2419
|
+
var object_getownpropertydescriptors = implementation$2;
|
|
2903
2420
|
|
|
2904
2421
|
var isES5$1 = typeof Object.defineProperty === 'function'
|
|
2905
2422
|
&& typeof Object.defineProperties === 'function';
|
|
@@ -2918,14 +2435,14 @@ if (typeof Promise !== 'function') {
|
|
|
2918
2435
|
|
|
2919
2436
|
|
|
2920
2437
|
|
|
2921
|
-
var $slice = callBound
|
|
2922
|
-
var $concat$
|
|
2923
|
-
var $forEach = callBound
|
|
2438
|
+
var $slice = callBound('Array.prototype.slice');
|
|
2439
|
+
var $concat$1 = callBound('Array.prototype.concat');
|
|
2440
|
+
var $forEach = callBound('Array.prototype.forEach');
|
|
2924
2441
|
|
|
2925
|
-
var hasSymbols$
|
|
2442
|
+
var hasSymbols$3 = hasSymbols$1();
|
|
2926
2443
|
|
|
2927
|
-
var kCustomPromisifiedSymbol = hasSymbols$
|
|
2928
|
-
var kCustomPromisifyArgsSymbol = hasSymbols$
|
|
2444
|
+
var kCustomPromisifiedSymbol = hasSymbols$3 ? Symbol('util.promisify.custom') : null;
|
|
2445
|
+
var kCustomPromisifyArgsSymbol = hasSymbols$3 ? Symbol('customPromisifyArgs') : null;
|
|
2929
2446
|
|
|
2930
2447
|
var implementation$3 = function promisify(orig) {
|
|
2931
2448
|
if (typeof orig !== 'function') {
|
|
@@ -2935,7 +2452,7 @@ var implementation$3 = function promisify(orig) {
|
|
|
2935
2452
|
throw error;
|
|
2936
2453
|
}
|
|
2937
2454
|
|
|
2938
|
-
if (hasSymbols$
|
|
2455
|
+
if (hasSymbols$3 && orig[kCustomPromisifiedSymbol]) {
|
|
2939
2456
|
var customFunction = orig[kCustomPromisifiedSymbol];
|
|
2940
2457
|
if (typeof customFunction !== 'function') {
|
|
2941
2458
|
throw new TypeError('The [util.promisify.custom] property must be a function');
|
|
@@ -2957,7 +2474,7 @@ var implementation$3 = function promisify(orig) {
|
|
|
2957
2474
|
var args = $slice(arguments);
|
|
2958
2475
|
var self = this; // eslint-disable-line no-invalid-this
|
|
2959
2476
|
return new Promise(function (resolve, reject) {
|
|
2960
|
-
orig.apply(self, $concat$
|
|
2477
|
+
orig.apply(self, $concat$1(args, function (err) {
|
|
2961
2478
|
var values = arguments.length > 1 ? $slice(arguments, 1) : [];
|
|
2962
2479
|
if (err) {
|
|
2963
2480
|
reject(err);
|
|
@@ -3236,7 +2753,7 @@ var md5 = createCommonjsModule(function (module) {
|
|
|
3236
2753
|
message = utf8.stringToBytes(message);
|
|
3237
2754
|
else if (isBuffer(message))
|
|
3238
2755
|
message = Array.prototype.slice.call(message, 0);
|
|
3239
|
-
else if (!Array.isArray(message)
|
|
2756
|
+
else if (!Array.isArray(message))
|
|
3240
2757
|
message = message.toString();
|
|
3241
2758
|
// else, assume byte array already
|
|
3242
2759
|
|