@mjhls/mjh-framework 1.0.689 → 1.0.690
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 +10 -9
- package/dist/cjs/AD300x250.js +24 -23
- package/dist/cjs/AD300x250x600.js +24 -23
- package/dist/cjs/AD728x90.js +27 -26
- package/dist/cjs/ADFloatingFooter.js +29 -28
- package/dist/cjs/ADFooter.js +15 -14
- package/dist/cjs/ADGutter.js +26 -25
- package/dist/cjs/{ADInfeed-3410ab3c.js → ADInfeed-ba531ca6.js} +13 -11
- package/dist/cjs/ADSkyscraper.js +26 -25
- package/dist/cjs/ADSponsoredResources.js +26 -25
- package/dist/cjs/ADWebcast.js +26 -25
- package/dist/cjs/ADWelcome.js +30 -29
- package/dist/cjs/{ADlgInfeed-845aac15.js → ADlgInfeed-b0cc0e88.js} +9 -8
- package/dist/cjs/AccordionPanel.js +31 -29
- package/dist/cjs/AdSlot.js +30 -29
- package/dist/cjs/AdSlotsProvider.js +7 -6
- package/dist/cjs/AlphabeticList.js +25 -24
- package/dist/cjs/ArticleCarousel.js +22 -21
- package/dist/cjs/ArticleSeriesListing.js +58 -57
- package/dist/cjs/Auth.js +793 -557
- package/dist/cjs/{AuthorComponent-bb831b74.js → AuthorComponent-98ebefa4.js} +14 -13
- package/dist/cjs/Beam.js +9 -9
- package/dist/cjs/{BlockContent-88f69acd.js → BlockContent-bbc3be61.js} +25 -24
- package/dist/cjs/Breadcrumbs.js +29 -27
- package/dist/cjs/BrowseVideosListing.js +28 -27
- package/dist/cjs/CMEDeck.js +77 -77
- package/dist/cjs/Column1.js +14 -11
- package/dist/cjs/Column2.js +35 -32
- package/dist/cjs/Column3.js +57 -54
- package/dist/cjs/ConferenceArticleCard.js +38 -37
- package/dist/cjs/ConferenceBanner-6c9e718a.js +24 -0
- package/dist/cjs/DeckContent.js +106 -102
- package/dist/cjs/DeckQueue.js +90 -86
- package/dist/cjs/{Dfp-b2bc3b97.js → Dfp-76acc8c2.js} +31 -30
- package/dist/cjs/EventsDeck.js +153 -146
- package/dist/cjs/ExternalResources.js +73 -72
- package/dist/cjs/Feature.js +27 -25
- package/dist/cjs/ForbesHero.js +41 -40
- package/dist/cjs/GridContent.js +180 -176
- package/dist/cjs/GridHero.js +43 -42
- package/dist/cjs/GroupDeck.js +50 -49
- package/dist/cjs/HamMagazine.js +144 -139
- package/dist/cjs/Header.js +13 -11
- package/dist/cjs/Hero.js +13 -12
- package/dist/cjs/HighlightenVideo.js +18 -17
- package/dist/cjs/HorizontalHero.js +26 -25
- package/dist/cjs/IssueContentDeck.js +77 -72
- package/dist/cjs/IssueDeck.js +75 -70
- package/dist/cjs/IssueLanding.js +70 -69
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +37 -35
- package/dist/cjs/MasterDeck.js +81 -80
- package/dist/cjs/NavDvm.js +80 -75
- package/dist/cjs/{NavFooter-76c913e3.js → NavFooter-3dcd99a8.js} +15 -14
- package/dist/cjs/NavMagazine.js +153 -148
- package/dist/cjs/NavNative.js +128 -120
- package/dist/cjs/NavNormal.js +53 -48
- package/dist/cjs/OncliveHero.js +20 -20
- package/dist/cjs/OncliveLargeHero.js +67 -66
- package/dist/cjs/PageFilter.js +15 -14
- package/dist/cjs/PartnerDetailListing.js +1302 -104
- package/dist/cjs/PdfDownload.js +9 -8
- package/dist/cjs/PopUpModal.js +21 -19
- package/dist/cjs/PublicationDeck.js +66 -61
- package/dist/cjs/PublicationLanding.js +98 -94
- package/dist/cjs/QueueDeckExpanded.js +292 -292
- package/dist/cjs/RecentNews.js +24 -23
- package/dist/cjs/RelatedContent.js +53 -52
- package/dist/cjs/RelatedTopicsDropdown.js +32 -29
- package/dist/cjs/RolesDeck.js +32 -27
- package/dist/cjs/Search.js +22 -18
- package/dist/cjs/Segment.js +7 -7
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +38 -37
- package/dist/cjs/SocialIcons.js +10 -9
- package/dist/cjs/{SocialSearchComponent-6b5e5b47.js → SocialSearchComponent-de064e93.js} +38 -34
- package/dist/cjs/SocialShare.js +31 -29
- package/dist/cjs/TaxonomyCard.js +62 -57
- package/dist/cjs/TemplateNormal.js +72 -71
- package/dist/cjs/ThumbnailCard.js +22 -20
- package/dist/cjs/Ustream.js +27 -26
- package/dist/cjs/VerticalHero.js +18 -17
- package/dist/cjs/VideoSeriesCard.js +34 -33
- package/dist/cjs/VideoSeriesFilter.js +19 -19
- package/dist/cjs/VideoSeriesListing.js +72 -71
- package/dist/cjs/View.js +238 -235
- package/dist/cjs/YahooHero.js +40 -39
- package/dist/cjs/YoutubeGroup.js +69 -68
- package/dist/cjs/{_is-array-754e012d.js → _is-array-b1090e3d.js} +6 -6
- package/dist/cjs/{_iter-detect-60b2f026.js → _iter-detect-8decaf0f.js} +2 -2
- package/dist/cjs/{_object-sap-5e74ba08.js → _object-sap-b69cab35.js} +1 -1
- package/dist/cjs/{_set-species-f92c67c5.js → _set-species-5c9fd235.js} +4 -4
- package/dist/cjs/{_to-object-329a650b.js → _to-object-e2d5cc9d.js} +3 -3
- package/dist/cjs/{asyncToGenerator-533d476a.js → asyncToGenerator-a855b820.js} +6 -6
- package/dist/cjs/{brightcove-react-player-loader.es-156bd4d6.js → brightcove-react-player-loader.es-a195642e.js} +11 -9
- package/dist/cjs/{core.get-iterator-method-f62321d4.js → core.get-iterator-method-bf3fde8c.js} +2 -2
- package/dist/cjs/{define-property-f4d12f4e.js → define-property-1d75ae0f.js} +1 -1
- package/dist/cjs/{defineProperty-55548b25.js → defineProperty-16bd5829.js} +1 -1
- package/dist/cjs/{es6.string.iterator-cc0bbaa4.js → es6.string.iterator-e3ce14ae.js} +1 -1
- package/dist/cjs/{extends-60837c34.js → extends-a9da965c.js} +1 -1
- package/dist/cjs/getRelatedArticle.js +424 -13
- package/dist/cjs/getSerializers.js +39 -39
- package/dist/cjs/{getTargeting-fee8c429.js → getTargeting-d8df2f51.js} +11 -11
- package/dist/cjs/getTargeting.js +7 -7
- package/dist/cjs/iconBase-68959171.js +0 -3
- package/dist/cjs/{index-b5eb3ff8.js → index-10185024.js} +3 -3
- package/dist/cjs/{index-2d0a4911.js → index-5ad2b070.js} +12 -11
- package/dist/cjs/{index-5be2866f.js → index-6367b7bf.js} +16 -17
- package/dist/cjs/{index-da796b8c.js → index-80f57cff.js} +17 -15
- package/dist/cjs/index-bd6c9f56.js +211 -0
- package/dist/cjs/{index-44c25825.js → index-e1d6c590.js} +427 -417
- package/dist/cjs/{index.es-ab3f2690.js → index.es-f3e47207.js} +28 -11
- package/dist/cjs/{index.esm-ff47db6f.js → index.esm-05850a2f.js} +5 -12
- package/dist/cjs/{index.esm-66ffa47a.js → index.esm-3b9b8952.js} +4 -9
- package/dist/cjs/{index.esm-876ca9ff.js → index.esm-61650d1a.js} +5 -12
- package/dist/cjs/{index.esm-4d410430.js → index.esm-8123cf40.js} +20 -20
- package/dist/cjs/index.js +126 -127
- package/dist/cjs/{inherits-513d81cd.js → inherits-3affeccb.js} +8 -8
- package/dist/cjs/{keys-a586b7a0.js → keys-218a754a.js} +2 -2
- package/dist/cjs/{lodash-fc2922d0.js → lodash-7fd85bcf.js} +71 -22
- package/dist/cjs/{main-b6c96c8d.js → main-df97bfe9.js} +84 -79
- package/dist/cjs/{moment-66a6a284.js → moment-ca3bd9fb.js} +10 -8
- package/dist/cjs/{react-social-icons-f7f48f71.js → react-social-icons-af932527.js} +28 -27
- package/dist/cjs/{slicedToArray-8f385299.js → slicedToArray-5b1b0ed8.js} +4 -4
- package/dist/cjs/{smoothscroll-95231a70.js → smoothscroll-1abb448e.js} +1 -1
- package/dist/cjs/{stringify-7c5aff47.js → stringify-4f757ee6.js} +1 -1
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-9a3476fe.js → toConsumableArray-57153848.js} +4 -4
- package/dist/cjs/{typeof-725500bc.js → typeof-c69a5548.js} +6 -6
- package/dist/cjs/urlFor.js +2 -2
- package/dist/cjs/{visibility-sensor-0c45a583.js → visibility-sensor-8b54af99.js} +7 -5
- package/dist/cjs/{web.dom.iterable-a0e279c1.js → web.dom.iterable-0ffca19f.js} +3 -3
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +20 -20
- package/dist/esm/AD300x250x600.js +20 -20
- package/dist/esm/AD728x90.js +23 -23
- package/dist/esm/ADFloatingFooter.js +25 -25
- package/dist/esm/ADFooter.js +11 -11
- package/dist/esm/ADGutter.js +22 -22
- package/dist/esm/{ADInfeed-205cb7a9.js → ADInfeed-45191cf8.js} +7 -7
- package/dist/esm/ADSkyscraper.js +22 -22
- package/dist/esm/ADSponsoredResources.js +22 -22
- package/dist/esm/ADWebcast.js +22 -22
- package/dist/esm/ADWelcome.js +26 -26
- package/dist/esm/{ADlgInfeed-e538f17a.js → ADlgInfeed-1f8fc733.js} +6 -6
- package/dist/esm/AccordionPanel.js +24 -24
- package/dist/esm/AdSlot.js +21 -21
- package/dist/esm/AdSlotsProvider.js +3 -3
- package/dist/esm/AlphabeticList.js +21 -21
- package/dist/esm/ArticleCarousel.js +18 -18
- package/dist/esm/ArticleSeriesListing.js +52 -52
- package/dist/esm/Auth.js +775 -543
- package/dist/esm/{AuthorComponent-00f13201.js → AuthorComponent-30ec92a8.js} +11 -11
- package/dist/esm/Beam.js +9 -9
- package/dist/esm/{BlockContent-a614acdf.js → BlockContent-c5de3044.js} +4 -4
- package/dist/esm/Breadcrumbs.js +17 -17
- package/dist/esm/BrowseVideosListing.js +24 -24
- package/dist/esm/CMEDeck.js +73 -73
- package/dist/esm/Column1.js +5 -5
- package/dist/esm/Column2.js +26 -26
- package/dist/esm/Column3.js +47 -47
- package/dist/esm/ConferenceArticleCard.js +33 -33
- package/dist/esm/{ConferenceBanner-8792ebd2.js → ConferenceBanner-9162d0ca.js} +4 -4
- package/dist/esm/DeckContent.js +84 -84
- package/dist/esm/DeckQueue.js +64 -64
- package/dist/esm/{Dfp-8a8fca18.js → Dfp-8b5b19d0.js} +20 -20
- package/dist/esm/EventsDeck.js +99 -99
- package/dist/esm/ExternalResources.js +66 -66
- package/dist/esm/Feature.js +18 -18
- package/dist/esm/ForbesHero.js +34 -34
- package/dist/esm/GridContent.js +138 -138
- package/dist/esm/GridHero.js +36 -36
- package/dist/esm/GroupDeck.js +45 -45
- package/dist/esm/HamMagazine.js +113 -113
- 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 -49
- package/dist/esm/IssueDeck.js +46 -46
- package/dist/esm/IssueLanding.js +66 -66
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +31 -31
- package/dist/esm/MasterDeck.js +74 -74
- package/dist/esm/NavDvm.js +57 -57
- package/dist/esm/{NavFooter-e27bd93b.js → NavFooter-c29526b7.js} +12 -12
- package/dist/esm/NavMagazine.js +124 -124
- package/dist/esm/NavNative.js +98 -98
- package/dist/esm/NavNormal.js +36 -36
- package/dist/esm/OncliveHero.js +16 -17
- package/dist/esm/OncliveLargeHero.js +59 -59
- package/dist/esm/PageFilter.js +12 -12
- package/dist/esm/PartnerDetailListing.js +1296 -100
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +14 -14
- package/dist/esm/PublicationDeck.js +38 -38
- package/dist/esm/PublicationLanding.js +75 -75
- package/dist/esm/QueueDeckExpanded.js +272 -272
- 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 -12
- package/dist/esm/Segment.js +7 -7
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +33 -33
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-7f14e0f3.js → SocialSearchComponent-cddc9ce1.js} +26 -26
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +41 -41
- package/dist/esm/TemplateNormal.js +65 -65
- package/dist/esm/ThumbnailCard.js +13 -13
- package/dist/esm/Ustream.js +23 -23
- package/dist/esm/VerticalHero.js +13 -13
- package/dist/esm/VideoSeriesCard.js +25 -25
- package/dist/esm/VideoSeriesFilter.js +16 -16
- package/dist/esm/VideoSeriesListing.js +65 -65
- package/dist/esm/View.js +224 -225
- package/dist/esm/YahooHero.js +34 -34
- package/dist/esm/YoutubeGroup.js +53 -53
- package/dist/esm/{_is-array-49698029.js → _is-array-ffa65b7e.js} +6 -6
- package/dist/esm/{_iter-detect-59409a32.js → _iter-detect-256a4d61.js} +2 -2
- package/dist/esm/{_object-sap-4d59d5bd.js → _object-sap-0cecd031.js} +1 -1
- package/dist/esm/{_set-species-cede29f8.js → _set-species-09ba387c.js} +4 -4
- package/dist/esm/{_to-object-ded78eb9.js → _to-object-ee10dabb.js} +4 -4
- package/dist/esm/{asyncToGenerator-7c654f36.js → asyncToGenerator-b0af4000.js} +6 -6
- package/dist/esm/{brightcove-react-player-loader.es-83f53e4e.js → brightcove-react-player-loader.es-b43c695a.js} +7 -6
- package/dist/esm/{core.get-iterator-method-54d2e411.js → core.get-iterator-method-0e6dc181.js} +2 -2
- package/dist/esm/{define-property-de3fc946.js → define-property-e013aae3.js} +1 -1
- package/dist/esm/{defineProperty-b798470d.js → defineProperty-2385da87.js} +1 -1
- package/dist/esm/{es6.string.iterator-9b2af4a5.js → es6.string.iterator-c5179428.js} +2 -2
- package/dist/esm/{extends-cc5da797.js → extends-03593dc6.js} +1 -1
- package/dist/esm/getRelatedArticle.js +424 -13
- package/dist/esm/getSerializers.js +39 -39
- package/dist/esm/{getTargeting-2acdec91.js → getTargeting-60717d7f.js} +11 -11
- package/dist/esm/getTargeting.js +7 -7
- package/dist/esm/{index-51a80699.js → index-4de5c15f.js} +3 -3
- package/dist/esm/{index-93ec3c59.js → index-669ff425.js} +6 -6
- package/dist/esm/{index-5f9f807a.js → index-752d1dae.js} +10 -10
- package/dist/esm/{index-d2f90501.js → index-c00b0bbb.js} +16 -17
- package/dist/esm/{index-8a757d91.js → index-cbd95715.js} +373 -369
- package/dist/esm/index-db3bb315.js +207 -0
- package/dist/esm/{index.es-938a3a58.js → index.es-c6222053.js} +25 -9
- package/dist/esm/{index.esm-85cb09e6.js → index.esm-79385203.js} +5 -12
- package/dist/esm/{index.esm-fd746768.js → index.esm-8016b507.js} +17 -18
- package/dist/esm/{index.esm-cf08bf18.js → index.esm-a8ff922c.js} +5 -12
- package/dist/esm/{index.esm-b08f4b04.js → index.esm-d6f88d94.js} +4 -9
- package/dist/esm/index.js +104 -105
- package/dist/esm/{inherits-7ee3e0c1.js → inherits-d88f5b29.js} +5 -5
- package/dist/esm/{keys-fc2d4c34.js → keys-618df59d.js} +2 -2
- package/dist/esm/{lodash-17fdfebb.js → lodash-ec8c6b48.js} +71 -22
- package/dist/esm/{main-0465b2a0.js → main-a2443735.js} +84 -80
- package/dist/esm/{moment-12415288.js → moment-b6f49411.js} +10 -8
- package/dist/esm/{react-social-icons-a7d5c5c7.js → react-social-icons-91f9716f.js} +20 -20
- package/dist/esm/{slicedToArray-7021e5df.js → slicedToArray-648674b3.js} +4 -4
- package/dist/esm/{smoothscroll-4b699764.js → smoothscroll-ab6e0238.js} +1 -1
- package/dist/esm/{stringify-008c8802.js → stringify-7c97a94d.js} +1 -1
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-725434a0.js → toConsumableArray-aa76a4fe.js} +4 -4
- package/dist/esm/{typeof-08f2c380.js → typeof-5c759779.js} +6 -6
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{visibility-sensor-0baa4eea.js → visibility-sensor-082c757b.js} +2 -2
- package/dist/esm/{web.dom.iterable-8956f9a5.js → web.dom.iterable-de3b4afb.js} +3 -3
- package/package.json +107 -107
- package/dist/cjs/ConferenceBanner-4a16fddc.js +0 -23
package/dist/esm/Auth.js
CHANGED
|
@@ -1,23 +1,24 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import './
|
|
3
|
-
import './
|
|
4
|
-
import '
|
|
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';
|
|
1
|
+
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-b0af4000.js';
|
|
2
|
+
import { _ as _JSON$stringify } from './stringify-7c97a94d.js';
|
|
3
|
+
import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-648674b3.js';
|
|
4
|
+
import React, { useEffect, useState } from 'react';
|
|
11
5
|
import Router from 'next/router';
|
|
12
|
-
import { _ as
|
|
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';
|
|
6
|
+
import { _ as _extends } from './extends-03593dc6.js';
|
|
16
7
|
import { Col, Form, Button, Spinner } from 'react-bootstrap';
|
|
17
|
-
import { u as util } from './util-7700fc59.js';
|
|
18
8
|
import useSWR from 'swr';
|
|
9
|
+
import { s as serialize_1, p as parse_1 } from './index-db3bb315.js';
|
|
19
10
|
import Local from 'passport-local';
|
|
20
11
|
import mysql from 'mysql';
|
|
12
|
+
import { u as util } from './util-7700fc59.js';
|
|
13
|
+
import { a as commonjsGlobal, c as createCommonjsModule } from './_commonjsHelpers-0c4b6f40.js';
|
|
14
|
+
import './es6.string.iterator-c5179428.js';
|
|
15
|
+
import './_to-object-ee10dabb.js';
|
|
16
|
+
import './web.dom.iterable-de3b4afb.js';
|
|
17
|
+
import './_library-528f1934.js';
|
|
18
|
+
import './core.get-iterator-method-0e6dc181.js';
|
|
19
|
+
import './_set-species-09ba387c.js';
|
|
20
|
+
import './_iter-detect-256a4d61.js';
|
|
21
|
+
import './_object-pie-71ac75a4.js';
|
|
21
22
|
|
|
22
23
|
var returnFormField = function returnFormField(_ref) {
|
|
23
24
|
var name = _ref.name,
|
|
@@ -56,21 +57,21 @@ var returnFormField = function returnFormField(_ref) {
|
|
|
56
57
|
}
|
|
57
58
|
|
|
58
59
|
if (type == 'text' || type == 'email' || type == 'password' || type == 'number') {
|
|
59
|
-
return
|
|
60
|
+
return React.createElement(
|
|
60
61
|
Form.Group,
|
|
61
62
|
_extends({}, opts, { controlId: name }),
|
|
62
|
-
|
|
63
|
+
React.createElement(
|
|
63
64
|
Form.Label,
|
|
64
65
|
{ kye: name + '_label' },
|
|
65
66
|
label,
|
|
66
|
-
required &&
|
|
67
|
+
required && React.createElement(
|
|
67
68
|
'span',
|
|
68
69
|
{ style: { color: 'red' } },
|
|
69
70
|
'*'
|
|
70
71
|
)
|
|
71
72
|
),
|
|
72
|
-
|
|
73
|
-
|
|
73
|
+
React.createElement(Form.Control, { key: name + '_' + type, type: type, readOnly: readonly, name: name, placeholder: '', defaultValue: default_value, required: required }),
|
|
74
|
+
React.createElement(
|
|
74
75
|
Form.Control.Feedback,
|
|
75
76
|
{ key: name + '_feedback', type: 'invalid' },
|
|
76
77
|
errors[name]
|
|
@@ -78,28 +79,28 @@ var returnFormField = function returnFormField(_ref) {
|
|
|
78
79
|
);
|
|
79
80
|
}
|
|
80
81
|
if (type == 'select') {
|
|
81
|
-
return
|
|
82
|
+
return React.createElement(
|
|
82
83
|
Form.Group,
|
|
83
84
|
_extends({}, opts, { key: name, controlId: name }),
|
|
84
|
-
|
|
85
|
+
React.createElement(
|
|
85
86
|
Form.Label,
|
|
86
87
|
{ key: name + '_' + label },
|
|
87
88
|
label,
|
|
88
|
-
required &&
|
|
89
|
+
required && React.createElement(
|
|
89
90
|
'span',
|
|
90
91
|
{ key: name + '_required_span', style: { color: 'red' } },
|
|
91
92
|
'*'
|
|
92
93
|
)
|
|
93
94
|
),
|
|
94
|
-
|
|
95
|
+
React.createElement(
|
|
95
96
|
Form.Control,
|
|
96
97
|
{ key: name + '_select', as: 'select', name: name, required: required, defaultValue: default_value },
|
|
97
|
-
|
|
98
|
+
React.createElement('option', { value: '', key: name + '_options_empty' }),
|
|
98
99
|
options.map(function (option, index) {
|
|
99
100
|
var value = option.value ? option.value : option;
|
|
100
101
|
var label = option.label ? option.label : option;
|
|
101
102
|
var key = name + '_options_' + index;
|
|
102
|
-
return
|
|
103
|
+
return React.createElement(
|
|
103
104
|
'option',
|
|
104
105
|
{ key: key, value: value },
|
|
105
106
|
label
|
|
@@ -110,25 +111,25 @@ var returnFormField = function returnFormField(_ref) {
|
|
|
110
111
|
}
|
|
111
112
|
|
|
112
113
|
if (type == 'radio' || type == 'checkbox') {
|
|
113
|
-
return
|
|
114
|
+
return React.createElement(
|
|
114
115
|
Form.Group,
|
|
115
116
|
opts,
|
|
116
|
-
|
|
117
|
+
React.createElement(
|
|
117
118
|
Form.Label,
|
|
118
119
|
null,
|
|
119
120
|
label,
|
|
120
|
-
required &&
|
|
121
|
+
required && React.createElement(
|
|
121
122
|
'span',
|
|
122
123
|
{ style: { color: 'red' } },
|
|
123
124
|
'*'
|
|
124
125
|
)
|
|
125
126
|
),
|
|
126
127
|
options.map(function (option, index) {
|
|
127
|
-
return
|
|
128
|
+
return React.createElement(
|
|
128
129
|
Form.Check,
|
|
129
130
|
{ type: type, key: index, required: required },
|
|
130
|
-
|
|
131
|
-
|
|
131
|
+
React.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.createElement(Form.Check.Label, { style: { cursor: 'pointer' }, 'for': name + '_' + index, key: type + '_' + index + '_label', dangerouslySetInnerHTML: { __html: option.label } })
|
|
132
133
|
);
|
|
133
134
|
})
|
|
134
135
|
);
|
|
@@ -335,43 +336,43 @@ var LoginForm = function LoginForm(props) {
|
|
|
335
336
|
loading = _useState4[0],
|
|
336
337
|
setLoading = _useState4[1];
|
|
337
338
|
|
|
338
|
-
return
|
|
339
|
+
return React.createElement(
|
|
339
340
|
Form,
|
|
340
341
|
{ className: 'login', onSubmit: handleSubmit },
|
|
341
|
-
|
|
342
|
+
React.createElement(
|
|
342
343
|
'h1',
|
|
343
344
|
null,
|
|
344
345
|
'Login'
|
|
345
346
|
),
|
|
346
|
-
|
|
347
|
+
React.createElement('hr', null),
|
|
347
348
|
returnFormField({ name: 'email', label: 'Email', type: 'email', required: true }),
|
|
348
349
|
returnFormField({ name: 'password', label: 'Password', type: 'password', required: true }),
|
|
349
|
-
|
|
350
|
-
|
|
350
|
+
React.createElement('hr', null),
|
|
351
|
+
React.createElement(
|
|
351
352
|
Form.Row,
|
|
352
353
|
null,
|
|
353
|
-
|
|
354
|
+
React.createElement(
|
|
354
355
|
Form.Group,
|
|
355
356
|
{ as: Col },
|
|
356
|
-
|
|
357
|
+
React.createElement(
|
|
357
358
|
'a',
|
|
358
359
|
{ href: '/auth/signup' },
|
|
359
360
|
'I don\'t have an account'
|
|
360
361
|
)
|
|
361
362
|
),
|
|
362
|
-
|
|
363
|
+
React.createElement(
|
|
363
364
|
Form.Group,
|
|
364
365
|
{ as: Col, className: 'text-right' },
|
|
365
|
-
!loading &&
|
|
366
|
+
!loading && React.createElement(
|
|
366
367
|
Button,
|
|
367
368
|
{ type: 'submit' },
|
|
368
369
|
'Login'
|
|
369
370
|
),
|
|
370
|
-
loading &&
|
|
371
|
+
loading && React.createElement(
|
|
371
372
|
Button,
|
|
372
373
|
{ variant: 'primary', disabled: true },
|
|
373
|
-
|
|
374
|
-
|
|
374
|
+
React.createElement(Spinner, { as: 'span', animation: 'border', role: 'status', 'aria-hidden': 'true', size: 'sm' }),
|
|
375
|
+
React.createElement(
|
|
375
376
|
'span',
|
|
376
377
|
{ className: 'sr-only' },
|
|
377
378
|
'Loading...'
|
|
@@ -379,12 +380,12 @@ var LoginForm = function LoginForm(props) {
|
|
|
379
380
|
)
|
|
380
381
|
)
|
|
381
382
|
),
|
|
382
|
-
errorMsg &&
|
|
383
|
+
errorMsg && React.createElement(
|
|
383
384
|
'p',
|
|
384
385
|
{ className: 'error' },
|
|
385
386
|
errorMsg
|
|
386
387
|
),
|
|
387
|
-
|
|
388
|
+
React.createElement(
|
|
388
389
|
'style',
|
|
389
390
|
{ jsx: 'true'.toString() },
|
|
390
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 '
|
|
@@ -640,29 +641,29 @@ var SignupForm = function SignupForm(props) {
|
|
|
640
641
|
loading = _useState14[0],
|
|
641
642
|
setLoading = _useState14[1];
|
|
642
643
|
|
|
643
|
-
return
|
|
644
|
+
return React.createElement(
|
|
644
645
|
Form,
|
|
645
646
|
{ className: 'login', id: 'signupForm', onSubmit: handleSubmit },
|
|
646
|
-
|
|
647
|
+
React.createElement(
|
|
647
648
|
'h1',
|
|
648
649
|
null,
|
|
649
650
|
'Sign Up'
|
|
650
651
|
),
|
|
651
|
-
|
|
652
|
+
React.createElement('hr', null),
|
|
652
653
|
returnFormField({ name: 'email', label: 'Email', type: 'email', required: true }),
|
|
653
|
-
|
|
654
|
+
React.createElement(
|
|
654
655
|
Form.Row,
|
|
655
656
|
null,
|
|
656
657
|
returnFormField({ name: 'password', label: 'Password', type: 'password', groupType: Col, required: true }),
|
|
657
658
|
returnFormField({ name: 'rpassword', label: 'Retype Password', type: 'password', groupType: Col, required: true })
|
|
658
659
|
),
|
|
659
|
-
|
|
660
|
+
React.createElement(
|
|
660
661
|
Form.Row,
|
|
661
662
|
null,
|
|
662
663
|
returnFormField({ name: 'first_name', label: 'First Name', type: 'text', groupType: Col, required: true }),
|
|
663
664
|
returnFormField({ name: 'last_name', label: 'Last Name', type: 'text', groupType: Col, required: true })
|
|
664
665
|
),
|
|
665
|
-
|
|
666
|
+
React.createElement(
|
|
666
667
|
Form.Row,
|
|
667
668
|
null,
|
|
668
669
|
returnFormField({
|
|
@@ -676,7 +677,7 @@ var SignupForm = function SignupForm(props) {
|
|
|
676
677
|
}),
|
|
677
678
|
countryUS && returnFormField({ name: 'state', label: 'State', type: 'select', required: true, groupType: Col, options: states })
|
|
678
679
|
),
|
|
679
|
-
|
|
680
|
+
React.createElement(
|
|
680
681
|
Form.Row,
|
|
681
682
|
null,
|
|
682
683
|
countryUS && returnFormField({ name: 'zip', label: 'Working Zip Code', type: 'text', required: true, groupType: Col }),
|
|
@@ -723,38 +724,38 @@ var SignupForm = function SignupForm(props) {
|
|
|
723
724
|
required: true,
|
|
724
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' }]
|
|
725
726
|
}),
|
|
726
|
-
|
|
727
|
-
|
|
727
|
+
React.createElement('hr', null),
|
|
728
|
+
React.createElement(
|
|
728
729
|
Form.Row,
|
|
729
730
|
null,
|
|
730
|
-
|
|
731
|
+
React.createElement(
|
|
731
732
|
Form.Group,
|
|
732
733
|
{ as: Col },
|
|
733
|
-
|
|
734
|
+
React.createElement(
|
|
734
735
|
'a',
|
|
735
736
|
{ href: '/auth/login' },
|
|
736
737
|
'I already have an account'
|
|
737
738
|
)
|
|
738
739
|
),
|
|
739
|
-
|
|
740
|
+
React.createElement(
|
|
740
741
|
Form.Group,
|
|
741
742
|
{ as: Col, className: 'text-right' },
|
|
742
|
-
!loading &&
|
|
743
|
+
!loading && React.createElement(
|
|
743
744
|
Button,
|
|
744
745
|
{ type: 'submit' },
|
|
745
746
|
'Sign Up'
|
|
746
747
|
),
|
|
747
|
-
loading &&
|
|
748
|
+
loading && React.createElement(
|
|
748
749
|
Button,
|
|
749
750
|
{ variant: 'primary', disabled: true },
|
|
750
|
-
|
|
751
|
+
React.createElement(Spinner, {
|
|
751
752
|
as: 'span',
|
|
752
753
|
animation: 'border',
|
|
753
754
|
role: 'status',
|
|
754
755
|
'aria-hidden': 'true',
|
|
755
756
|
size: 'sm'
|
|
756
757
|
}),
|
|
757
|
-
|
|
758
|
+
React.createElement(
|
|
758
759
|
'span',
|
|
759
760
|
{ className: 'sr-only' },
|
|
760
761
|
'Loading...'
|
|
@@ -762,12 +763,12 @@ var SignupForm = function SignupForm(props) {
|
|
|
762
763
|
)
|
|
763
764
|
)
|
|
764
765
|
),
|
|
765
|
-
errorMsg &&
|
|
766
|
+
errorMsg && React.createElement(
|
|
766
767
|
'p',
|
|
767
768
|
{ className: 'error' },
|
|
768
769
|
errorMsg
|
|
769
770
|
),
|
|
770
|
-
|
|
771
|
+
React.createElement(
|
|
771
772
|
'style',
|
|
772
773
|
{ jsx: 'true'.toString() },
|
|
773
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 '
|
|
@@ -1057,32 +1058,32 @@ var SignupForm$1 = function SignupForm(props) {
|
|
|
1057
1058
|
loading = _useState18[0],
|
|
1058
1059
|
setLoading = _useState18[1];
|
|
1059
1060
|
|
|
1060
|
-
return
|
|
1061
|
+
return React.createElement(
|
|
1061
1062
|
Form,
|
|
1062
1063
|
{ className: 'login', id: 'signupForm', onSubmit: handleSubmit },
|
|
1063
|
-
|
|
1064
|
+
React.createElement(
|
|
1064
1065
|
'h1',
|
|
1065
1066
|
null,
|
|
1066
1067
|
'Profile'
|
|
1067
1068
|
),
|
|
1068
|
-
|
|
1069
|
-
userData ?
|
|
1070
|
-
|
|
1069
|
+
React.createElement('hr', null),
|
|
1070
|
+
userData ? React.createElement(
|
|
1071
|
+
React.Fragment,
|
|
1071
1072
|
null,
|
|
1072
1073
|
returnFormField({ name: 'email', label: 'Email', type: 'email', required: true, readonly: true, default_value: userData.email }),
|
|
1073
|
-
|
|
1074
|
+
React.createElement(
|
|
1074
1075
|
Form.Row,
|
|
1075
1076
|
null,
|
|
1076
1077
|
returnFormField({ name: 'password', label: 'Password', type: 'password', groupType: Col, required: false }),
|
|
1077
1078
|
returnFormField({ name: 'rpassword', label: 'Retype Password', type: 'password', groupType: Col, required: false })
|
|
1078
1079
|
),
|
|
1079
|
-
|
|
1080
|
+
React.createElement(
|
|
1080
1081
|
Form.Row,
|
|
1081
1082
|
null,
|
|
1082
1083
|
returnFormField({ name: 'first_name', label: 'First Name', type: 'text', groupType: Col, required: true, default_value: userData.shared.first_name }),
|
|
1083
1084
|
returnFormField({ name: 'last_name', label: 'Last Name', type: 'text', groupType: Col, required: true, default_value: userData.shared.last_name })
|
|
1084
1085
|
),
|
|
1085
|
-
|
|
1086
|
+
React.createElement(
|
|
1086
1087
|
Form.Row,
|
|
1087
1088
|
null,
|
|
1088
1089
|
returnFormField({
|
|
@@ -1097,7 +1098,7 @@ var SignupForm$1 = function SignupForm(props) {
|
|
|
1097
1098
|
}),
|
|
1098
1099
|
countryUS && returnFormField({ name: 'state', label: 'State', type: 'select', required: true, groupType: Col, options: states, default_value: userData.shared.state })
|
|
1099
1100
|
),
|
|
1100
|
-
|
|
1101
|
+
React.createElement(
|
|
1101
1102
|
Form.Row,
|
|
1102
1103
|
null,
|
|
1103
1104
|
countryUS && returnFormField({ name: 'zip', label: 'Working Zip Code', type: 'text', required: true, groupType: Col, default_value: userData.shared.zip }),
|
|
@@ -1147,29 +1148,29 @@ var SignupForm$1 = function SignupForm(props) {
|
|
|
1147
1148
|
required: true,
|
|
1148
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' }]
|
|
1149
1150
|
}),
|
|
1150
|
-
|
|
1151
|
-
|
|
1151
|
+
React.createElement('hr', null),
|
|
1152
|
+
React.createElement(
|
|
1152
1153
|
Form.Row,
|
|
1153
1154
|
null,
|
|
1154
|
-
|
|
1155
|
+
React.createElement(
|
|
1155
1156
|
Form.Group,
|
|
1156
1157
|
{ as: Col },
|
|
1157
|
-
!loading &&
|
|
1158
|
+
!loading && React.createElement(
|
|
1158
1159
|
Button,
|
|
1159
1160
|
{ type: 'submit' },
|
|
1160
1161
|
'Update'
|
|
1161
1162
|
),
|
|
1162
|
-
loading &&
|
|
1163
|
+
loading && React.createElement(
|
|
1163
1164
|
Button,
|
|
1164
1165
|
{ variant: 'primary', disabled: true },
|
|
1165
|
-
|
|
1166
|
+
React.createElement(Spinner, {
|
|
1166
1167
|
as: 'span',
|
|
1167
1168
|
animation: 'border',
|
|
1168
1169
|
role: 'status',
|
|
1169
1170
|
'aria-hidden': 'true',
|
|
1170
1171
|
size: 'sm'
|
|
1171
1172
|
}),
|
|
1172
|
-
|
|
1173
|
+
React.createElement(
|
|
1173
1174
|
'span',
|
|
1174
1175
|
{ className: 'sr-only' },
|
|
1175
1176
|
'Loading...'
|
|
@@ -1177,24 +1178,24 @@ var SignupForm$1 = function SignupForm(props) {
|
|
|
1177
1178
|
)
|
|
1178
1179
|
)
|
|
1179
1180
|
)
|
|
1180
|
-
) :
|
|
1181
|
+
) : React.createElement(Spinner, {
|
|
1181
1182
|
as: 'span',
|
|
1182
1183
|
animation: 'border',
|
|
1183
1184
|
role: 'status',
|
|
1184
1185
|
'aria-hidden': 'true',
|
|
1185
1186
|
size: 'sm'
|
|
1186
1187
|
}),
|
|
1187
|
-
errorMsg &&
|
|
1188
|
+
errorMsg && React.createElement(
|
|
1188
1189
|
'p',
|
|
1189
1190
|
{ className: 'error' },
|
|
1190
1191
|
errorMsg
|
|
1191
1192
|
),
|
|
1192
|
-
successMsg &&
|
|
1193
|
+
successMsg && React.createElement(
|
|
1193
1194
|
'p',
|
|
1194
1195
|
{ className: 'success' },
|
|
1195
1196
|
successMsg
|
|
1196
1197
|
),
|
|
1197
|
-
|
|
1198
|
+
React.createElement(
|
|
1198
1199
|
'style',
|
|
1199
1200
|
{ jsx: 'true'.toString() },
|
|
1200
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 '
|
|
@@ -1202,207 +1203,6 @@ var SignupForm$1 = function SignupForm(props) {
|
|
|
1202
1203
|
);
|
|
1203
1204
|
};
|
|
1204
1205
|
|
|
1205
|
-
/*!
|
|
1206
|
-
* cookie
|
|
1207
|
-
* Copyright(c) 2012-2014 Roman Shtylman
|
|
1208
|
-
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
1209
|
-
* MIT Licensed
|
|
1210
|
-
*/
|
|
1211
|
-
|
|
1212
|
-
/**
|
|
1213
|
-
* Module exports.
|
|
1214
|
-
* @public
|
|
1215
|
-
*/
|
|
1216
|
-
|
|
1217
|
-
var parse_1 = parse;
|
|
1218
|
-
var serialize_1 = serialize;
|
|
1219
|
-
|
|
1220
|
-
/**
|
|
1221
|
-
* Module variables.
|
|
1222
|
-
* @private
|
|
1223
|
-
*/
|
|
1224
|
-
|
|
1225
|
-
var decode = decodeURIComponent;
|
|
1226
|
-
var encode = encodeURIComponent;
|
|
1227
|
-
var pairSplitRegExp = /; */;
|
|
1228
|
-
|
|
1229
|
-
/**
|
|
1230
|
-
* RegExp to match field-content in RFC 7230 sec 3.2
|
|
1231
|
-
*
|
|
1232
|
-
* field-content = field-vchar [ 1*( SP / HTAB ) field-vchar ]
|
|
1233
|
-
* field-vchar = VCHAR / obs-text
|
|
1234
|
-
* obs-text = %x80-FF
|
|
1235
|
-
*/
|
|
1236
|
-
|
|
1237
|
-
var fieldContentRegExp = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;
|
|
1238
|
-
|
|
1239
|
-
/**
|
|
1240
|
-
* Parse a cookie header.
|
|
1241
|
-
*
|
|
1242
|
-
* Parse the given cookie header string into an object
|
|
1243
|
-
* The object has the various cookies as keys(names) => values
|
|
1244
|
-
*
|
|
1245
|
-
* @param {string} str
|
|
1246
|
-
* @param {object} [options]
|
|
1247
|
-
* @return {object}
|
|
1248
|
-
* @public
|
|
1249
|
-
*/
|
|
1250
|
-
|
|
1251
|
-
function parse(str, options) {
|
|
1252
|
-
if (typeof str !== 'string') {
|
|
1253
|
-
throw new TypeError('argument str must be a string');
|
|
1254
|
-
}
|
|
1255
|
-
|
|
1256
|
-
var obj = {};
|
|
1257
|
-
var opt = options || {};
|
|
1258
|
-
var pairs = str.split(pairSplitRegExp);
|
|
1259
|
-
var dec = opt.decode || decode;
|
|
1260
|
-
|
|
1261
|
-
for (var i = 0; i < pairs.length; i++) {
|
|
1262
|
-
var pair = pairs[i];
|
|
1263
|
-
var eq_idx = pair.indexOf('=');
|
|
1264
|
-
|
|
1265
|
-
// skip things that don't look like key=value
|
|
1266
|
-
if (eq_idx < 0) {
|
|
1267
|
-
continue;
|
|
1268
|
-
}
|
|
1269
|
-
|
|
1270
|
-
var key = pair.substr(0, eq_idx).trim();
|
|
1271
|
-
var val = pair.substr(++eq_idx, pair.length).trim();
|
|
1272
|
-
|
|
1273
|
-
// quoted values
|
|
1274
|
-
if ('"' == val[0]) {
|
|
1275
|
-
val = val.slice(1, -1);
|
|
1276
|
-
}
|
|
1277
|
-
|
|
1278
|
-
// only assign once
|
|
1279
|
-
if (undefined == obj[key]) {
|
|
1280
|
-
obj[key] = tryDecode(val, dec);
|
|
1281
|
-
}
|
|
1282
|
-
}
|
|
1283
|
-
|
|
1284
|
-
return obj;
|
|
1285
|
-
}
|
|
1286
|
-
|
|
1287
|
-
/**
|
|
1288
|
-
* Serialize data into a cookie header.
|
|
1289
|
-
*
|
|
1290
|
-
* Serialize the a name value pair into a cookie string suitable for
|
|
1291
|
-
* http headers. An optional options object specified cookie parameters.
|
|
1292
|
-
*
|
|
1293
|
-
* serialize('foo', 'bar', { httpOnly: true })
|
|
1294
|
-
* => "foo=bar; httpOnly"
|
|
1295
|
-
*
|
|
1296
|
-
* @param {string} name
|
|
1297
|
-
* @param {string} val
|
|
1298
|
-
* @param {object} [options]
|
|
1299
|
-
* @return {string}
|
|
1300
|
-
* @public
|
|
1301
|
-
*/
|
|
1302
|
-
|
|
1303
|
-
function serialize(name, val, options) {
|
|
1304
|
-
var opt = options || {};
|
|
1305
|
-
var enc = opt.encode || encode;
|
|
1306
|
-
|
|
1307
|
-
if (typeof enc !== 'function') {
|
|
1308
|
-
throw new TypeError('option encode is invalid');
|
|
1309
|
-
}
|
|
1310
|
-
|
|
1311
|
-
if (!fieldContentRegExp.test(name)) {
|
|
1312
|
-
throw new TypeError('argument name is invalid');
|
|
1313
|
-
}
|
|
1314
|
-
|
|
1315
|
-
var value = enc(val);
|
|
1316
|
-
|
|
1317
|
-
if (value && !fieldContentRegExp.test(value)) {
|
|
1318
|
-
throw new TypeError('argument val is invalid');
|
|
1319
|
-
}
|
|
1320
|
-
|
|
1321
|
-
var str = name + '=' + value;
|
|
1322
|
-
|
|
1323
|
-
if (null != opt.maxAge) {
|
|
1324
|
-
var maxAge = opt.maxAge - 0;
|
|
1325
|
-
|
|
1326
|
-
if (isNaN(maxAge) || !isFinite(maxAge)) {
|
|
1327
|
-
throw new TypeError('option maxAge is invalid')
|
|
1328
|
-
}
|
|
1329
|
-
|
|
1330
|
-
str += '; Max-Age=' + Math.floor(maxAge);
|
|
1331
|
-
}
|
|
1332
|
-
|
|
1333
|
-
if (opt.domain) {
|
|
1334
|
-
if (!fieldContentRegExp.test(opt.domain)) {
|
|
1335
|
-
throw new TypeError('option domain is invalid');
|
|
1336
|
-
}
|
|
1337
|
-
|
|
1338
|
-
str += '; Domain=' + opt.domain;
|
|
1339
|
-
}
|
|
1340
|
-
|
|
1341
|
-
if (opt.path) {
|
|
1342
|
-
if (!fieldContentRegExp.test(opt.path)) {
|
|
1343
|
-
throw new TypeError('option path is invalid');
|
|
1344
|
-
}
|
|
1345
|
-
|
|
1346
|
-
str += '; Path=' + opt.path;
|
|
1347
|
-
}
|
|
1348
|
-
|
|
1349
|
-
if (opt.expires) {
|
|
1350
|
-
if (typeof opt.expires.toUTCString !== 'function') {
|
|
1351
|
-
throw new TypeError('option expires is invalid');
|
|
1352
|
-
}
|
|
1353
|
-
|
|
1354
|
-
str += '; Expires=' + opt.expires.toUTCString();
|
|
1355
|
-
}
|
|
1356
|
-
|
|
1357
|
-
if (opt.httpOnly) {
|
|
1358
|
-
str += '; HttpOnly';
|
|
1359
|
-
}
|
|
1360
|
-
|
|
1361
|
-
if (opt.secure) {
|
|
1362
|
-
str += '; Secure';
|
|
1363
|
-
}
|
|
1364
|
-
|
|
1365
|
-
if (opt.sameSite) {
|
|
1366
|
-
var sameSite = typeof opt.sameSite === 'string'
|
|
1367
|
-
? opt.sameSite.toLowerCase() : opt.sameSite;
|
|
1368
|
-
|
|
1369
|
-
switch (sameSite) {
|
|
1370
|
-
case true:
|
|
1371
|
-
str += '; SameSite=Strict';
|
|
1372
|
-
break;
|
|
1373
|
-
case 'lax':
|
|
1374
|
-
str += '; SameSite=Lax';
|
|
1375
|
-
break;
|
|
1376
|
-
case 'strict':
|
|
1377
|
-
str += '; SameSite=Strict';
|
|
1378
|
-
break;
|
|
1379
|
-
case 'none':
|
|
1380
|
-
str += '; SameSite=None';
|
|
1381
|
-
break;
|
|
1382
|
-
default:
|
|
1383
|
-
throw new TypeError('option sameSite is invalid');
|
|
1384
|
-
}
|
|
1385
|
-
}
|
|
1386
|
-
|
|
1387
|
-
return str;
|
|
1388
|
-
}
|
|
1389
|
-
|
|
1390
|
-
/**
|
|
1391
|
-
* Try decoding a string using a decoding function.
|
|
1392
|
-
*
|
|
1393
|
-
* @param {string} str
|
|
1394
|
-
* @param {function} decode
|
|
1395
|
-
* @private
|
|
1396
|
-
*/
|
|
1397
|
-
|
|
1398
|
-
function tryDecode(str, decode) {
|
|
1399
|
-
try {
|
|
1400
|
-
return decode(str);
|
|
1401
|
-
} catch (e) {
|
|
1402
|
-
return str;
|
|
1403
|
-
}
|
|
1404
|
-
}
|
|
1405
|
-
|
|
1406
1206
|
var TOKEN_NAME = 'token';
|
|
1407
1207
|
var MAX_AGE = 60 * 60 * 8; // 8 hours
|
|
1408
1208
|
|
|
@@ -1737,6 +1537,59 @@ defineProperties.supportsDescriptors = !!supportsDescriptors;
|
|
|
1737
1537
|
|
|
1738
1538
|
var defineProperties_1 = defineProperties;
|
|
1739
1539
|
|
|
1540
|
+
/* eslint no-invalid-this: 1 */
|
|
1541
|
+
|
|
1542
|
+
var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
|
|
1543
|
+
var slice$1 = Array.prototype.slice;
|
|
1544
|
+
var toStr$3 = Object.prototype.toString;
|
|
1545
|
+
var funcType = '[object Function]';
|
|
1546
|
+
|
|
1547
|
+
var implementation$1 = function bind(that) {
|
|
1548
|
+
var target = this;
|
|
1549
|
+
if (typeof target !== 'function' || toStr$3.call(target) !== funcType) {
|
|
1550
|
+
throw new TypeError(ERROR_MESSAGE + target);
|
|
1551
|
+
}
|
|
1552
|
+
var args = slice$1.call(arguments, 1);
|
|
1553
|
+
|
|
1554
|
+
var bound;
|
|
1555
|
+
var binder = function () {
|
|
1556
|
+
if (this instanceof bound) {
|
|
1557
|
+
var result = target.apply(
|
|
1558
|
+
this,
|
|
1559
|
+
args.concat(slice$1.call(arguments))
|
|
1560
|
+
);
|
|
1561
|
+
if (Object(result) === result) {
|
|
1562
|
+
return result;
|
|
1563
|
+
}
|
|
1564
|
+
return this;
|
|
1565
|
+
} else {
|
|
1566
|
+
return target.apply(
|
|
1567
|
+
that,
|
|
1568
|
+
args.concat(slice$1.call(arguments))
|
|
1569
|
+
);
|
|
1570
|
+
}
|
|
1571
|
+
};
|
|
1572
|
+
|
|
1573
|
+
var boundLength = Math.max(0, target.length - args.length);
|
|
1574
|
+
var boundArgs = [];
|
|
1575
|
+
for (var i = 0; i < boundLength; i++) {
|
|
1576
|
+
boundArgs.push('$' + i);
|
|
1577
|
+
}
|
|
1578
|
+
|
|
1579
|
+
bound = Function('binder', 'return function (' + boundArgs.join(',') + '){ return binder.apply(this,arguments); }')(binder);
|
|
1580
|
+
|
|
1581
|
+
if (target.prototype) {
|
|
1582
|
+
var Empty = function Empty() {};
|
|
1583
|
+
Empty.prototype = target.prototype;
|
|
1584
|
+
bound.prototype = new Empty();
|
|
1585
|
+
Empty.prototype = null;
|
|
1586
|
+
}
|
|
1587
|
+
|
|
1588
|
+
return bound;
|
|
1589
|
+
};
|
|
1590
|
+
|
|
1591
|
+
var functionBind = Function.prototype.bind || implementation$1;
|
|
1592
|
+
|
|
1740
1593
|
/* eslint complexity: [2, 18], max-statements: [2, 33] */
|
|
1741
1594
|
var shams = function hasSymbols() {
|
|
1742
1595
|
if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
|
|
@@ -1790,68 +1643,26 @@ var hasSymbols$1 = function hasNativeSymbols() {
|
|
|
1790
1643
|
return shams();
|
|
1791
1644
|
};
|
|
1792
1645
|
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
|
|
1796
|
-
var slice$1 = Array.prototype.slice;
|
|
1797
|
-
var toStr$3 = Object.prototype.toString;
|
|
1798
|
-
var funcType = '[object Function]';
|
|
1799
|
-
|
|
1800
|
-
var implementation$1 = function bind(that) {
|
|
1801
|
-
var target = this;
|
|
1802
|
-
if (typeof target !== 'function' || toStr$3.call(target) !== funcType) {
|
|
1803
|
-
throw new TypeError(ERROR_MESSAGE + target);
|
|
1804
|
-
}
|
|
1805
|
-
var args = slice$1.call(arguments, 1);
|
|
1806
|
-
|
|
1807
|
-
var bound;
|
|
1808
|
-
var binder = function () {
|
|
1809
|
-
if (this instanceof bound) {
|
|
1810
|
-
var result = target.apply(
|
|
1811
|
-
this,
|
|
1812
|
-
args.concat(slice$1.call(arguments))
|
|
1813
|
-
);
|
|
1814
|
-
if (Object(result) === result) {
|
|
1815
|
-
return result;
|
|
1816
|
-
}
|
|
1817
|
-
return this;
|
|
1818
|
-
} else {
|
|
1819
|
-
return target.apply(
|
|
1820
|
-
that,
|
|
1821
|
-
args.concat(slice$1.call(arguments))
|
|
1822
|
-
);
|
|
1823
|
-
}
|
|
1824
|
-
};
|
|
1825
|
-
|
|
1826
|
-
var boundLength = Math.max(0, target.length - args.length);
|
|
1827
|
-
var boundArgs = [];
|
|
1828
|
-
for (var i = 0; i < boundLength; i++) {
|
|
1829
|
-
boundArgs.push('$' + i);
|
|
1830
|
-
}
|
|
1831
|
-
|
|
1832
|
-
bound = Function('binder', 'return function (' + boundArgs.join(',') + '){ return binder.apply(this,arguments); }')(binder);
|
|
1833
|
-
|
|
1834
|
-
if (target.prototype) {
|
|
1835
|
-
var Empty = function Empty() {};
|
|
1836
|
-
Empty.prototype = target.prototype;
|
|
1837
|
-
bound.prototype = new Empty();
|
|
1838
|
-
Empty.prototype = null;
|
|
1839
|
-
}
|
|
1840
|
-
|
|
1841
|
-
return bound;
|
|
1842
|
-
};
|
|
1843
|
-
|
|
1844
|
-
var functionBind = Function.prototype.bind || implementation$1;
|
|
1646
|
+
var src = functionBind.call(Function.call, Object.prototype.hasOwnProperty);
|
|
1845
1647
|
|
|
1846
1648
|
/* globals
|
|
1847
|
-
|
|
1649
|
+
AggregateError,
|
|
1848
1650
|
SharedArrayBuffer,
|
|
1849
1651
|
*/
|
|
1850
1652
|
|
|
1851
1653
|
var undefined$1;
|
|
1852
1654
|
|
|
1655
|
+
var $SyntaxError = SyntaxError;
|
|
1656
|
+
var $Function = Function;
|
|
1853
1657
|
var $TypeError = TypeError;
|
|
1854
1658
|
|
|
1659
|
+
// eslint-disable-next-line consistent-return
|
|
1660
|
+
var getEvalledConstructor = function (expressionSyntax) {
|
|
1661
|
+
try {
|
|
1662
|
+
return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
|
|
1663
|
+
} catch (e) {}
|
|
1664
|
+
};
|
|
1665
|
+
|
|
1855
1666
|
var $gOPD = Object.getOwnPropertyDescriptor;
|
|
1856
1667
|
if ($gOPD) {
|
|
1857
1668
|
try {
|
|
@@ -1861,7 +1672,9 @@ if ($gOPD) {
|
|
|
1861
1672
|
}
|
|
1862
1673
|
}
|
|
1863
1674
|
|
|
1864
|
-
var throwTypeError = function () {
|
|
1675
|
+
var throwTypeError = function () {
|
|
1676
|
+
throw new $TypeError();
|
|
1677
|
+
};
|
|
1865
1678
|
var ThrowTypeError = $gOPD
|
|
1866
1679
|
? (function () {
|
|
1867
1680
|
try {
|
|
@@ -1882,200 +1695,360 @@ var ThrowTypeError = $gOPD
|
|
|
1882
1695
|
var hasSymbols$2 = hasSymbols$1();
|
|
1883
1696
|
|
|
1884
1697
|
var getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
|
|
1885
|
-
|
|
1886
|
-
var
|
|
1887
|
-
var asyncGenFunction = undefined$1;
|
|
1698
|
+
|
|
1699
|
+
var needsEval = {};
|
|
1888
1700
|
|
|
1889
1701
|
var TypedArray = typeof Uint8Array === 'undefined' ? undefined$1 : getProto(Uint8Array);
|
|
1890
1702
|
|
|
1891
1703
|
var INTRINSICS = {
|
|
1704
|
+
'%AggregateError%': typeof AggregateError === 'undefined' ? undefined$1 : AggregateError,
|
|
1892
1705
|
'%Array%': Array,
|
|
1893
1706
|
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$1 : ArrayBuffer,
|
|
1894
|
-
'%ArrayBufferPrototype%': typeof ArrayBuffer === 'undefined' ? undefined$1 : ArrayBuffer.prototype,
|
|
1895
1707
|
'%ArrayIteratorPrototype%': hasSymbols$2 ? getProto([][Symbol.iterator]()) : undefined$1,
|
|
1896
|
-
'%ArrayPrototype%': Array.prototype,
|
|
1897
|
-
'%ArrayProto_entries%': Array.prototype.entries,
|
|
1898
|
-
'%ArrayProto_forEach%': Array.prototype.forEach,
|
|
1899
|
-
'%ArrayProto_keys%': Array.prototype.keys,
|
|
1900
|
-
'%ArrayProto_values%': Array.prototype.values,
|
|
1901
1708
|
'%AsyncFromSyncIteratorPrototype%': undefined$1,
|
|
1902
|
-
'%AsyncFunction%':
|
|
1903
|
-
'%
|
|
1904
|
-
'%
|
|
1905
|
-
'%
|
|
1906
|
-
'%AsyncGeneratorPrototype%': undefined$1,
|
|
1907
|
-
'%AsyncIteratorPrototype%': undefined$1,
|
|
1709
|
+
'%AsyncFunction%': needsEval,
|
|
1710
|
+
'%AsyncGenerator%': needsEval,
|
|
1711
|
+
'%AsyncGeneratorFunction%': needsEval,
|
|
1712
|
+
'%AsyncIteratorPrototype%': needsEval,
|
|
1908
1713
|
'%Atomics%': typeof Atomics === 'undefined' ? undefined$1 : Atomics,
|
|
1714
|
+
'%BigInt%': typeof BigInt === 'undefined' ? undefined$1 : BigInt,
|
|
1909
1715
|
'%Boolean%': Boolean,
|
|
1910
|
-
'%BooleanPrototype%': Boolean.prototype,
|
|
1911
1716
|
'%DataView%': typeof DataView === 'undefined' ? undefined$1 : DataView,
|
|
1912
|
-
'%DataViewPrototype%': typeof DataView === 'undefined' ? undefined$1 : DataView.prototype,
|
|
1913
1717
|
'%Date%': Date,
|
|
1914
|
-
'%DatePrototype%': Date.prototype,
|
|
1915
1718
|
'%decodeURI%': decodeURI,
|
|
1916
1719
|
'%decodeURIComponent%': decodeURIComponent,
|
|
1917
1720
|
'%encodeURI%': encodeURI,
|
|
1918
1721
|
'%encodeURIComponent%': encodeURIComponent,
|
|
1919
1722
|
'%Error%': Error,
|
|
1920
|
-
'%ErrorPrototype%': Error.prototype,
|
|
1921
1723
|
'%eval%': eval, // eslint-disable-line no-eval
|
|
1922
1724
|
'%EvalError%': EvalError,
|
|
1923
|
-
'%EvalErrorPrototype%': EvalError.prototype,
|
|
1924
1725
|
'%Float32Array%': typeof Float32Array === 'undefined' ? undefined$1 : Float32Array,
|
|
1925
|
-
'%Float32ArrayPrototype%': typeof Float32Array === 'undefined' ? undefined$1 : Float32Array.prototype,
|
|
1926
1726
|
'%Float64Array%': typeof Float64Array === 'undefined' ? undefined$1 : Float64Array,
|
|
1927
|
-
'%
|
|
1928
|
-
'%Function%': Function,
|
|
1929
|
-
'%
|
|
1930
|
-
'%Generator%': undefined$1,
|
|
1931
|
-
'%GeneratorFunction%': generatorFunction,
|
|
1932
|
-
'%GeneratorPrototype%': undefined$1,
|
|
1727
|
+
'%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined$1 : FinalizationRegistry,
|
|
1728
|
+
'%Function%': $Function,
|
|
1729
|
+
'%GeneratorFunction%': needsEval,
|
|
1933
1730
|
'%Int8Array%': typeof Int8Array === 'undefined' ? undefined$1 : Int8Array,
|
|
1934
|
-
'%Int8ArrayPrototype%': typeof Int8Array === 'undefined' ? undefined$1 : Int8Array.prototype,
|
|
1935
1731
|
'%Int16Array%': typeof Int16Array === 'undefined' ? undefined$1 : Int16Array,
|
|
1936
|
-
'%Int16ArrayPrototype%': typeof Int16Array === 'undefined' ? undefined$1 : Int8Array.prototype,
|
|
1937
1732
|
'%Int32Array%': typeof Int32Array === 'undefined' ? undefined$1 : Int32Array,
|
|
1938
|
-
'%Int32ArrayPrototype%': typeof Int32Array === 'undefined' ? undefined$1 : Int32Array.prototype,
|
|
1939
1733
|
'%isFinite%': isFinite,
|
|
1940
1734
|
'%isNaN%': isNaN,
|
|
1941
1735
|
'%IteratorPrototype%': hasSymbols$2 ? getProto(getProto([][Symbol.iterator]())) : undefined$1,
|
|
1942
1736
|
'%JSON%': typeof JSON === 'object' ? JSON : undefined$1,
|
|
1943
|
-
'%JSONParse%': typeof JSON === 'object' ? JSON.parse : undefined$1,
|
|
1944
1737
|
'%Map%': typeof Map === 'undefined' ? undefined$1 : Map,
|
|
1945
1738
|
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$2 ? undefined$1 : getProto(new Map()[Symbol.iterator]()),
|
|
1946
|
-
'%MapPrototype%': typeof Map === 'undefined' ? undefined$1 : Map.prototype,
|
|
1947
1739
|
'%Math%': Math,
|
|
1948
1740
|
'%Number%': Number,
|
|
1949
|
-
'%NumberPrototype%': Number.prototype,
|
|
1950
1741
|
'%Object%': Object,
|
|
1951
|
-
'%ObjectPrototype%': Object.prototype,
|
|
1952
|
-
'%ObjProto_toString%': Object.prototype.toString,
|
|
1953
|
-
'%ObjProto_valueOf%': Object.prototype.valueOf,
|
|
1954
1742
|
'%parseFloat%': parseFloat,
|
|
1955
1743
|
'%parseInt%': parseInt,
|
|
1956
1744
|
'%Promise%': typeof Promise === 'undefined' ? undefined$1 : Promise,
|
|
1957
|
-
'%PromisePrototype%': typeof Promise === 'undefined' ? undefined$1 : Promise.prototype,
|
|
1958
|
-
'%PromiseProto_then%': typeof Promise === 'undefined' ? undefined$1 : Promise.prototype.then,
|
|
1959
|
-
'%Promise_all%': typeof Promise === 'undefined' ? undefined$1 : Promise.all,
|
|
1960
|
-
'%Promise_reject%': typeof Promise === 'undefined' ? undefined$1 : Promise.reject,
|
|
1961
|
-
'%Promise_resolve%': typeof Promise === 'undefined' ? undefined$1 : Promise.resolve,
|
|
1962
1745
|
'%Proxy%': typeof Proxy === 'undefined' ? undefined$1 : Proxy,
|
|
1963
1746
|
'%RangeError%': RangeError,
|
|
1964
|
-
'%RangeErrorPrototype%': RangeError.prototype,
|
|
1965
1747
|
'%ReferenceError%': ReferenceError,
|
|
1966
|
-
'%ReferenceErrorPrototype%': ReferenceError.prototype,
|
|
1967
1748
|
'%Reflect%': typeof Reflect === 'undefined' ? undefined$1 : Reflect,
|
|
1968
1749
|
'%RegExp%': RegExp,
|
|
1969
|
-
'%RegExpPrototype%': RegExp.prototype,
|
|
1970
1750
|
'%Set%': typeof Set === 'undefined' ? undefined$1 : Set,
|
|
1971
1751
|
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$2 ? undefined$1 : getProto(new Set()[Symbol.iterator]()),
|
|
1972
|
-
'%SetPrototype%': typeof Set === 'undefined' ? undefined$1 : Set.prototype,
|
|
1973
1752
|
'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$1 : SharedArrayBuffer,
|
|
1974
|
-
'%SharedArrayBufferPrototype%': typeof SharedArrayBuffer === 'undefined' ? undefined$1 : SharedArrayBuffer.prototype,
|
|
1975
1753
|
'%String%': String,
|
|
1976
1754
|
'%StringIteratorPrototype%': hasSymbols$2 ? getProto(''[Symbol.iterator]()) : undefined$1,
|
|
1977
|
-
'%StringPrototype%': String.prototype,
|
|
1978
1755
|
'%Symbol%': hasSymbols$2 ? Symbol : undefined$1,
|
|
1979
|
-
'%
|
|
1980
|
-
'%SyntaxError%': SyntaxError,
|
|
1981
|
-
'%SyntaxErrorPrototype%': SyntaxError.prototype,
|
|
1756
|
+
'%SyntaxError%': $SyntaxError,
|
|
1982
1757
|
'%ThrowTypeError%': ThrowTypeError,
|
|
1983
1758
|
'%TypedArray%': TypedArray,
|
|
1984
|
-
'%TypedArrayPrototype%': TypedArray ? TypedArray.prototype : undefined$1,
|
|
1985
1759
|
'%TypeError%': $TypeError,
|
|
1986
|
-
'%TypeErrorPrototype%': $TypeError.prototype,
|
|
1987
1760
|
'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$1 : Uint8Array,
|
|
1988
|
-
'%Uint8ArrayPrototype%': typeof Uint8Array === 'undefined' ? undefined$1 : Uint8Array.prototype,
|
|
1989
1761
|
'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$1 : Uint8ClampedArray,
|
|
1990
|
-
'%Uint8ClampedArrayPrototype%': typeof Uint8ClampedArray === 'undefined' ? undefined$1 : Uint8ClampedArray.prototype,
|
|
1991
1762
|
'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$1 : Uint16Array,
|
|
1992
|
-
'%Uint16ArrayPrototype%': typeof Uint16Array === 'undefined' ? undefined$1 : Uint16Array.prototype,
|
|
1993
1763
|
'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined$1 : Uint32Array,
|
|
1994
|
-
'%Uint32ArrayPrototype%': typeof Uint32Array === 'undefined' ? undefined$1 : Uint32Array.prototype,
|
|
1995
1764
|
'%URIError%': URIError,
|
|
1996
|
-
'%URIErrorPrototype%': URIError.prototype,
|
|
1997
1765
|
'%WeakMap%': typeof WeakMap === 'undefined' ? undefined$1 : WeakMap,
|
|
1998
|
-
'%
|
|
1999
|
-
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet
|
|
2000
|
-
'%WeakSetPrototype%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet.prototype
|
|
1766
|
+
'%WeakRef%': typeof WeakRef === 'undefined' ? undefined$1 : WeakRef,
|
|
1767
|
+
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet
|
|
2001
1768
|
};
|
|
2002
1769
|
|
|
1770
|
+
var doEval = function doEval(name) {
|
|
1771
|
+
var value;
|
|
1772
|
+
if (name === '%AsyncFunction%') {
|
|
1773
|
+
value = getEvalledConstructor('async function () {}');
|
|
1774
|
+
} else if (name === '%GeneratorFunction%') {
|
|
1775
|
+
value = getEvalledConstructor('function* () {}');
|
|
1776
|
+
} else if (name === '%AsyncGeneratorFunction%') {
|
|
1777
|
+
value = getEvalledConstructor('async function* () {}');
|
|
1778
|
+
} else if (name === '%AsyncGenerator%') {
|
|
1779
|
+
var fn = doEval('%AsyncGeneratorFunction%');
|
|
1780
|
+
if (fn) {
|
|
1781
|
+
value = fn.prototype;
|
|
1782
|
+
}
|
|
1783
|
+
} else if (name === '%AsyncIteratorPrototype%') {
|
|
1784
|
+
var gen = doEval('%AsyncGenerator%');
|
|
1785
|
+
if (gen) {
|
|
1786
|
+
value = getProto(gen.prototype);
|
|
1787
|
+
}
|
|
1788
|
+
}
|
|
2003
1789
|
|
|
1790
|
+
INTRINSICS[name] = value;
|
|
1791
|
+
|
|
1792
|
+
return value;
|
|
1793
|
+
};
|
|
1794
|
+
|
|
1795
|
+
var LEGACY_ALIASES = {
|
|
1796
|
+
'%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
|
|
1797
|
+
'%ArrayPrototype%': ['Array', 'prototype'],
|
|
1798
|
+
'%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
|
|
1799
|
+
'%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
|
|
1800
|
+
'%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
|
|
1801
|
+
'%ArrayProto_values%': ['Array', 'prototype', 'values'],
|
|
1802
|
+
'%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
|
|
1803
|
+
'%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
|
|
1804
|
+
'%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
|
|
1805
|
+
'%BooleanPrototype%': ['Boolean', 'prototype'],
|
|
1806
|
+
'%DataViewPrototype%': ['DataView', 'prototype'],
|
|
1807
|
+
'%DatePrototype%': ['Date', 'prototype'],
|
|
1808
|
+
'%ErrorPrototype%': ['Error', 'prototype'],
|
|
1809
|
+
'%EvalErrorPrototype%': ['EvalError', 'prototype'],
|
|
1810
|
+
'%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
|
|
1811
|
+
'%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
|
|
1812
|
+
'%FunctionPrototype%': ['Function', 'prototype'],
|
|
1813
|
+
'%Generator%': ['GeneratorFunction', 'prototype'],
|
|
1814
|
+
'%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
|
|
1815
|
+
'%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
|
|
1816
|
+
'%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
|
|
1817
|
+
'%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
|
|
1818
|
+
'%JSONParse%': ['JSON', 'parse'],
|
|
1819
|
+
'%JSONStringify%': ['JSON', 'stringify'],
|
|
1820
|
+
'%MapPrototype%': ['Map', 'prototype'],
|
|
1821
|
+
'%NumberPrototype%': ['Number', 'prototype'],
|
|
1822
|
+
'%ObjectPrototype%': ['Object', 'prototype'],
|
|
1823
|
+
'%ObjProto_toString%': ['Object', 'prototype', 'toString'],
|
|
1824
|
+
'%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
|
|
1825
|
+
'%PromisePrototype%': ['Promise', 'prototype'],
|
|
1826
|
+
'%PromiseProto_then%': ['Promise', 'prototype', 'then'],
|
|
1827
|
+
'%Promise_all%': ['Promise', 'all'],
|
|
1828
|
+
'%Promise_reject%': ['Promise', 'reject'],
|
|
1829
|
+
'%Promise_resolve%': ['Promise', 'resolve'],
|
|
1830
|
+
'%RangeErrorPrototype%': ['RangeError', 'prototype'],
|
|
1831
|
+
'%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
|
|
1832
|
+
'%RegExpPrototype%': ['RegExp', 'prototype'],
|
|
1833
|
+
'%SetPrototype%': ['Set', 'prototype'],
|
|
1834
|
+
'%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
|
|
1835
|
+
'%StringPrototype%': ['String', 'prototype'],
|
|
1836
|
+
'%SymbolPrototype%': ['Symbol', 'prototype'],
|
|
1837
|
+
'%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
|
|
1838
|
+
'%TypedArrayPrototype%': ['TypedArray', 'prototype'],
|
|
1839
|
+
'%TypeErrorPrototype%': ['TypeError', 'prototype'],
|
|
1840
|
+
'%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
|
|
1841
|
+
'%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
|
|
1842
|
+
'%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
|
|
1843
|
+
'%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
|
|
1844
|
+
'%URIErrorPrototype%': ['URIError', 'prototype'],
|
|
1845
|
+
'%WeakMapPrototype%': ['WeakMap', 'prototype'],
|
|
1846
|
+
'%WeakSetPrototype%': ['WeakSet', 'prototype']
|
|
1847
|
+
};
|
|
1848
|
+
|
|
1849
|
+
|
|
1850
|
+
|
|
1851
|
+
var $concat = functionBind.call(Function.call, Array.prototype.concat);
|
|
1852
|
+
var $spliceApply = functionBind.call(Function.apply, Array.prototype.splice);
|
|
2004
1853
|
var $replace = functionBind.call(Function.call, String.prototype.replace);
|
|
1854
|
+
var $strSlice = functionBind.call(Function.call, String.prototype.slice);
|
|
2005
1855
|
|
|
2006
1856
|
/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
|
|
2007
1857
|
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
2008
1858
|
var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
|
|
2009
1859
|
var stringToPath = function stringToPath(string) {
|
|
1860
|
+
var first = $strSlice(string, 0, 1);
|
|
1861
|
+
var last = $strSlice(string, -1);
|
|
1862
|
+
if (first === '%' && last !== '%') {
|
|
1863
|
+
throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
|
|
1864
|
+
} else if (last === '%' && first !== '%') {
|
|
1865
|
+
throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
|
|
1866
|
+
}
|
|
2010
1867
|
var result = [];
|
|
2011
1868
|
$replace(string, rePropName, function (match, number, quote, subString) {
|
|
2012
|
-
result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') :
|
|
1869
|
+
result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
|
|
2013
1870
|
});
|
|
2014
1871
|
return result;
|
|
2015
1872
|
};
|
|
2016
1873
|
/* end adaptation */
|
|
2017
1874
|
|
|
2018
1875
|
var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
|
|
2019
|
-
|
|
2020
|
-
|
|
1876
|
+
var intrinsicName = name;
|
|
1877
|
+
var alias;
|
|
1878
|
+
if (src(LEGACY_ALIASES, intrinsicName)) {
|
|
1879
|
+
alias = LEGACY_ALIASES[intrinsicName];
|
|
1880
|
+
intrinsicName = '%' + alias[0] + '%';
|
|
2021
1881
|
}
|
|
2022
1882
|
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
1883
|
+
if (src(INTRINSICS, intrinsicName)) {
|
|
1884
|
+
var value = INTRINSICS[intrinsicName];
|
|
1885
|
+
if (value === needsEval) {
|
|
1886
|
+
value = doEval(intrinsicName);
|
|
1887
|
+
}
|
|
1888
|
+
if (typeof value === 'undefined' && !allowMissing) {
|
|
1889
|
+
throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
|
|
1890
|
+
}
|
|
1891
|
+
|
|
1892
|
+
return {
|
|
1893
|
+
alias: alias,
|
|
1894
|
+
name: intrinsicName,
|
|
1895
|
+
value: value
|
|
1896
|
+
};
|
|
2026
1897
|
}
|
|
2027
1898
|
|
|
2028
|
-
|
|
1899
|
+
throw new $SyntaxError('intrinsic ' + name + ' does not exist!');
|
|
2029
1900
|
};
|
|
2030
1901
|
|
|
2031
|
-
var
|
|
1902
|
+
var getIntrinsic = function GetIntrinsic(name, allowMissing) {
|
|
2032
1903
|
if (typeof name !== 'string' || name.length === 0) {
|
|
2033
|
-
throw new TypeError('intrinsic name must be a non-empty string');
|
|
1904
|
+
throw new $TypeError('intrinsic name must be a non-empty string');
|
|
2034
1905
|
}
|
|
2035
1906
|
if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
|
|
2036
|
-
throw new TypeError('"allowMissing" argument must be a boolean');
|
|
1907
|
+
throw new $TypeError('"allowMissing" argument must be a boolean');
|
|
2037
1908
|
}
|
|
2038
1909
|
|
|
2039
1910
|
var parts = stringToPath(name);
|
|
1911
|
+
var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
|
|
2040
1912
|
|
|
2041
|
-
var
|
|
2042
|
-
|
|
2043
|
-
|
|
1913
|
+
var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
|
|
1914
|
+
var intrinsicRealName = intrinsic.name;
|
|
1915
|
+
var value = intrinsic.value;
|
|
1916
|
+
var skipFurtherCaching = false;
|
|
1917
|
+
|
|
1918
|
+
var alias = intrinsic.alias;
|
|
1919
|
+
if (alias) {
|
|
1920
|
+
intrinsicBaseName = alias[0];
|
|
1921
|
+
$spliceApply(parts, $concat([0, 1], alias));
|
|
1922
|
+
}
|
|
1923
|
+
|
|
1924
|
+
for (var i = 1, isOwn = true; i < parts.length; i += 1) {
|
|
1925
|
+
var part = parts[i];
|
|
1926
|
+
var first = $strSlice(part, 0, 1);
|
|
1927
|
+
var last = $strSlice(part, -1);
|
|
1928
|
+
if (
|
|
1929
|
+
(
|
|
1930
|
+
(first === '"' || first === "'" || first === '`')
|
|
1931
|
+
|| (last === '"' || last === "'" || last === '`')
|
|
1932
|
+
)
|
|
1933
|
+
&& first !== last
|
|
1934
|
+
) {
|
|
1935
|
+
throw new $SyntaxError('property names with quotes must have matching quotes');
|
|
1936
|
+
}
|
|
1937
|
+
if (part === 'constructor' || !isOwn) {
|
|
1938
|
+
skipFurtherCaching = true;
|
|
1939
|
+
}
|
|
1940
|
+
|
|
1941
|
+
intrinsicBaseName += '.' + part;
|
|
1942
|
+
intrinsicRealName = '%' + intrinsicBaseName + '%';
|
|
1943
|
+
|
|
1944
|
+
if (src(INTRINSICS, intrinsicRealName)) {
|
|
1945
|
+
value = INTRINSICS[intrinsicRealName];
|
|
1946
|
+
} else if (value != null) {
|
|
1947
|
+
if (!(part in value)) {
|
|
1948
|
+
if (!allowMissing) {
|
|
1949
|
+
throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
1950
|
+
}
|
|
1951
|
+
return void undefined$1;
|
|
1952
|
+
}
|
|
2044
1953
|
if ($gOPD && (i + 1) >= parts.length) {
|
|
2045
|
-
var desc = $gOPD(value,
|
|
2046
|
-
|
|
1954
|
+
var desc = $gOPD(value, part);
|
|
1955
|
+
isOwn = !!desc;
|
|
1956
|
+
|
|
1957
|
+
// By convention, when a data property is converted to an accessor
|
|
1958
|
+
// property to emulate a data property that does not suffer from
|
|
1959
|
+
// the override mistake, that accessor's getter is marked with
|
|
1960
|
+
// an `originalValue` property. Here, when we detect this, we
|
|
1961
|
+
// uphold the illusion by pretending to see that original data
|
|
1962
|
+
// property, i.e., returning the value rather than the getter
|
|
1963
|
+
// itself.
|
|
1964
|
+
if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
|
|
1965
|
+
value = desc.get;
|
|
1966
|
+
} else {
|
|
1967
|
+
value = value[part];
|
|
1968
|
+
}
|
|
2047
1969
|
} else {
|
|
2048
|
-
|
|
1970
|
+
isOwn = src(value, part);
|
|
1971
|
+
value = value[part];
|
|
1972
|
+
}
|
|
1973
|
+
|
|
1974
|
+
if (isOwn && !skipFurtherCaching) {
|
|
1975
|
+
INTRINSICS[intrinsicRealName] = value;
|
|
2049
1976
|
}
|
|
2050
1977
|
}
|
|
2051
1978
|
}
|
|
2052
1979
|
return value;
|
|
2053
1980
|
};
|
|
2054
1981
|
|
|
2055
|
-
var
|
|
2056
|
-
|
|
2057
|
-
|
|
1982
|
+
var callBind = createCommonjsModule(function (module) {
|
|
1983
|
+
|
|
1984
|
+
|
|
1985
|
+
|
|
1986
|
+
|
|
1987
|
+
var $apply = getIntrinsic('%Function.prototype.apply%');
|
|
1988
|
+
var $call = getIntrinsic('%Function.prototype.call%');
|
|
1989
|
+
var $reflectApply = getIntrinsic('%Reflect.apply%', true) || functionBind.call($call, $apply);
|
|
1990
|
+
|
|
1991
|
+
var $gOPD = getIntrinsic('%Object.getOwnPropertyDescriptor%', true);
|
|
1992
|
+
var $defineProperty = getIntrinsic('%Object.defineProperty%', true);
|
|
1993
|
+
var $max = getIntrinsic('%Math.max%');
|
|
1994
|
+
|
|
1995
|
+
if ($defineProperty) {
|
|
1996
|
+
try {
|
|
1997
|
+
$defineProperty({}, 'a', { value: 1 });
|
|
1998
|
+
} catch (e) {
|
|
1999
|
+
// IE 8 has a broken defineProperty
|
|
2000
|
+
$defineProperty = null;
|
|
2001
|
+
}
|
|
2002
|
+
}
|
|
2058
2003
|
|
|
2059
|
-
|
|
2060
|
-
|
|
2004
|
+
module.exports = function callBind(originalFunction) {
|
|
2005
|
+
var func = $reflectApply(functionBind, $call, arguments);
|
|
2006
|
+
if ($gOPD && $defineProperty) {
|
|
2007
|
+
var desc = $gOPD(func, 'length');
|
|
2008
|
+
if (desc.configurable) {
|
|
2009
|
+
// original length, plus the receiver, minus any additional arguments (after the receiver)
|
|
2010
|
+
$defineProperty(
|
|
2011
|
+
func,
|
|
2012
|
+
'length',
|
|
2013
|
+
{ value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }
|
|
2014
|
+
);
|
|
2015
|
+
}
|
|
2016
|
+
}
|
|
2017
|
+
return func;
|
|
2061
2018
|
};
|
|
2062
2019
|
|
|
2063
|
-
var
|
|
2064
|
-
return functionBind
|
|
2020
|
+
var applyBind = function applyBind() {
|
|
2021
|
+
return $reflectApply(functionBind, $apply, arguments);
|
|
2065
2022
|
};
|
|
2066
|
-
callBind.apply = apply;
|
|
2067
2023
|
|
|
2068
|
-
|
|
2024
|
+
if ($defineProperty) {
|
|
2025
|
+
$defineProperty(module.exports, 'apply', { value: applyBind });
|
|
2026
|
+
} else {
|
|
2027
|
+
module.exports.apply = applyBind;
|
|
2028
|
+
}
|
|
2029
|
+
});
|
|
2030
|
+
callBind.apply;
|
|
2031
|
+
|
|
2032
|
+
var $indexOf = callBind(getIntrinsic('String.prototype.indexOf'));
|
|
2069
2033
|
|
|
2070
2034
|
var callBound = function callBoundIntrinsic(name, allowMissing) {
|
|
2071
|
-
var intrinsic =
|
|
2072
|
-
if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.')) {
|
|
2035
|
+
var intrinsic = getIntrinsic(name, !!allowMissing);
|
|
2036
|
+
if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
|
|
2073
2037
|
return callBind(intrinsic);
|
|
2074
2038
|
}
|
|
2075
2039
|
return intrinsic;
|
|
2076
2040
|
};
|
|
2077
2041
|
|
|
2078
|
-
var $defineProperty =
|
|
2042
|
+
var $defineProperty = getIntrinsic('%Object.defineProperty%', true);
|
|
2043
|
+
|
|
2044
|
+
if ($defineProperty) {
|
|
2045
|
+
try {
|
|
2046
|
+
$defineProperty({}, 'a', { value: 1 });
|
|
2047
|
+
} catch (e) {
|
|
2048
|
+
// IE 8 has a broken defineProperty
|
|
2049
|
+
$defineProperty = null;
|
|
2050
|
+
}
|
|
2051
|
+
}
|
|
2079
2052
|
|
|
2080
2053
|
|
|
2081
2054
|
|
|
@@ -2108,10 +2081,8 @@ var DefineOwnProperty = function DefineOwnProperty(IsDataDescriptor, SameValue,
|
|
|
2108
2081
|
return true;
|
|
2109
2082
|
};
|
|
2110
2083
|
|
|
2111
|
-
var
|
|
2112
|
-
|
|
2113
|
-
var $TypeError$1 = GetIntrinsic('%TypeError%');
|
|
2114
|
-
var $SyntaxError = GetIntrinsic('%SyntaxError%');
|
|
2084
|
+
var $TypeError$1 = getIntrinsic('%TypeError%');
|
|
2085
|
+
var $SyntaxError$1 = getIntrinsic('%SyntaxError%');
|
|
2115
2086
|
|
|
2116
2087
|
|
|
2117
2088
|
|
|
@@ -2148,14 +2119,14 @@ var predicates = {
|
|
|
2148
2119
|
var assertRecord = function assertRecord(Type, recordType, argumentName, value) {
|
|
2149
2120
|
var predicate = predicates[recordType];
|
|
2150
2121
|
if (typeof predicate !== 'function') {
|
|
2151
|
-
throw new $SyntaxError('unknown record type: ' + recordType);
|
|
2122
|
+
throw new $SyntaxError$1('unknown record type: ' + recordType);
|
|
2152
2123
|
}
|
|
2153
2124
|
if (!predicate(Type, value)) {
|
|
2154
2125
|
throw new $TypeError$1(argumentName + ' must be a ' + recordType);
|
|
2155
2126
|
}
|
|
2156
2127
|
};
|
|
2157
2128
|
|
|
2158
|
-
// https://
|
|
2129
|
+
// https://ecma-international.org/ecma-262/5.1/#sec-8
|
|
2159
2130
|
|
|
2160
2131
|
var Type = function Type(x) {
|
|
2161
2132
|
if (x === null) {
|
|
@@ -2178,16 +2149,19 @@ var Type = function Type(x) {
|
|
|
2178
2149
|
}
|
|
2179
2150
|
};
|
|
2180
2151
|
|
|
2181
|
-
// https://
|
|
2152
|
+
// https://ecma-international.org/ecma-262/11.0/#sec-ecmascript-data-types-and-values
|
|
2182
2153
|
|
|
2183
2154
|
var Type$1 = function Type$1(x) {
|
|
2184
2155
|
if (typeof x === 'symbol') {
|
|
2185
2156
|
return 'Symbol';
|
|
2186
2157
|
}
|
|
2158
|
+
if (typeof x === 'bigint') {
|
|
2159
|
+
return 'BigInt';
|
|
2160
|
+
}
|
|
2187
2161
|
return Type(x);
|
|
2188
2162
|
};
|
|
2189
2163
|
|
|
2190
|
-
// https://
|
|
2164
|
+
// https://ecma-international.org/ecma-262/6.0/#sec-frompropertydescriptor
|
|
2191
2165
|
|
|
2192
2166
|
var FromPropertyDescriptor = function FromPropertyDescriptor(Desc) {
|
|
2193
2167
|
if (typeof Desc === 'undefined') {
|
|
@@ -2218,7 +2192,278 @@ var FromPropertyDescriptor = function FromPropertyDescriptor(Desc) {
|
|
|
2218
2192
|
return obj;
|
|
2219
2193
|
};
|
|
2220
2194
|
|
|
2221
|
-
|
|
2195
|
+
var $gOPD$1 = getIntrinsic('%Object.getOwnPropertyDescriptor%');
|
|
2196
|
+
if ($gOPD$1) {
|
|
2197
|
+
try {
|
|
2198
|
+
$gOPD$1([], 'length');
|
|
2199
|
+
} catch (e) {
|
|
2200
|
+
// IE 8 has a broken gOPD
|
|
2201
|
+
$gOPD$1 = null;
|
|
2202
|
+
}
|
|
2203
|
+
}
|
|
2204
|
+
|
|
2205
|
+
var getOwnPropertyDescriptor = $gOPD$1;
|
|
2206
|
+
|
|
2207
|
+
var $Array = getIntrinsic('%Array%');
|
|
2208
|
+
|
|
2209
|
+
// eslint-disable-next-line global-require
|
|
2210
|
+
var toStr$4 = !$Array.isArray && callBound('Object.prototype.toString');
|
|
2211
|
+
|
|
2212
|
+
// https://ecma-international.org/ecma-262/6.0/#sec-isarray
|
|
2213
|
+
|
|
2214
|
+
var IsArray = $Array.isArray || function IsArray(argument) {
|
|
2215
|
+
return toStr$4(argument) === '[object Array]';
|
|
2216
|
+
};
|
|
2217
|
+
|
|
2218
|
+
// https://ecma-international.org/ecma-262/6.0/#sec-ispropertykey
|
|
2219
|
+
|
|
2220
|
+
var IsPropertyKey = function IsPropertyKey(argument) {
|
|
2221
|
+
return typeof argument === 'string' || typeof argument === 'symbol';
|
|
2222
|
+
};
|
|
2223
|
+
|
|
2224
|
+
var hasSymbols$3 = hasSymbols$1();
|
|
2225
|
+
var hasToStringTag = hasSymbols$3 && typeof Symbol.toStringTag === 'symbol';
|
|
2226
|
+
var hasOwnProperty;
|
|
2227
|
+
var regexExec;
|
|
2228
|
+
var isRegexMarker;
|
|
2229
|
+
var badStringifier;
|
|
2230
|
+
|
|
2231
|
+
if (hasToStringTag) {
|
|
2232
|
+
hasOwnProperty = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
2233
|
+
regexExec = Function.call.bind(RegExp.prototype.exec);
|
|
2234
|
+
isRegexMarker = {};
|
|
2235
|
+
|
|
2236
|
+
var throwRegexMarker = function () {
|
|
2237
|
+
throw isRegexMarker;
|
|
2238
|
+
};
|
|
2239
|
+
badStringifier = {
|
|
2240
|
+
toString: throwRegexMarker,
|
|
2241
|
+
valueOf: throwRegexMarker
|
|
2242
|
+
};
|
|
2243
|
+
|
|
2244
|
+
if (typeof Symbol.toPrimitive === 'symbol') {
|
|
2245
|
+
badStringifier[Symbol.toPrimitive] = throwRegexMarker;
|
|
2246
|
+
}
|
|
2247
|
+
}
|
|
2248
|
+
|
|
2249
|
+
var toStr$5 = Object.prototype.toString;
|
|
2250
|
+
var gOPD = Object.getOwnPropertyDescriptor;
|
|
2251
|
+
var regexClass = '[object RegExp]';
|
|
2252
|
+
|
|
2253
|
+
var isRegex = hasToStringTag
|
|
2254
|
+
// eslint-disable-next-line consistent-return
|
|
2255
|
+
? function isRegex(value) {
|
|
2256
|
+
if (!value || typeof value !== 'object') {
|
|
2257
|
+
return false;
|
|
2258
|
+
}
|
|
2259
|
+
|
|
2260
|
+
var descriptor = gOPD(value, 'lastIndex');
|
|
2261
|
+
var hasLastIndexDataProperty = descriptor && hasOwnProperty(descriptor, 'value');
|
|
2262
|
+
if (!hasLastIndexDataProperty) {
|
|
2263
|
+
return false;
|
|
2264
|
+
}
|
|
2265
|
+
|
|
2266
|
+
try {
|
|
2267
|
+
regexExec(value, badStringifier);
|
|
2268
|
+
} catch (e) {
|
|
2269
|
+
return e === isRegexMarker;
|
|
2270
|
+
}
|
|
2271
|
+
}
|
|
2272
|
+
: function isRegex(value) {
|
|
2273
|
+
// In older browsers, typeof regex incorrectly returns 'function'
|
|
2274
|
+
if (!value || (typeof value !== 'object' && typeof value !== 'function')) {
|
|
2275
|
+
return false;
|
|
2276
|
+
}
|
|
2277
|
+
|
|
2278
|
+
return toStr$5.call(value) === regexClass;
|
|
2279
|
+
};
|
|
2280
|
+
|
|
2281
|
+
// http://ecma-international.org/ecma-262/5.1/#sec-9.2
|
|
2282
|
+
|
|
2283
|
+
var ToBoolean = function ToBoolean(value) { return !!value; };
|
|
2284
|
+
|
|
2285
|
+
var $match = getIntrinsic('%Symbol.match%', true);
|
|
2286
|
+
|
|
2287
|
+
|
|
2288
|
+
|
|
2289
|
+
|
|
2290
|
+
|
|
2291
|
+
// https://ecma-international.org/ecma-262/6.0/#sec-isregexp
|
|
2292
|
+
|
|
2293
|
+
var IsRegExp = function IsRegExp(argument) {
|
|
2294
|
+
if (!argument || typeof argument !== 'object') {
|
|
2295
|
+
return false;
|
|
2296
|
+
}
|
|
2297
|
+
if ($match) {
|
|
2298
|
+
var isRegExp = argument[$match];
|
|
2299
|
+
if (typeof isRegExp !== 'undefined') {
|
|
2300
|
+
return ToBoolean(isRegExp);
|
|
2301
|
+
}
|
|
2302
|
+
}
|
|
2303
|
+
return isRegex(argument);
|
|
2304
|
+
};
|
|
2305
|
+
|
|
2306
|
+
var fnToStr = Function.prototype.toString;
|
|
2307
|
+
var reflectApply = typeof Reflect === 'object' && Reflect !== null && Reflect.apply;
|
|
2308
|
+
var badArrayLike;
|
|
2309
|
+
var isCallableMarker;
|
|
2310
|
+
if (typeof reflectApply === 'function' && typeof Object.defineProperty === 'function') {
|
|
2311
|
+
try {
|
|
2312
|
+
badArrayLike = Object.defineProperty({}, 'length', {
|
|
2313
|
+
get: function () {
|
|
2314
|
+
throw isCallableMarker;
|
|
2315
|
+
}
|
|
2316
|
+
});
|
|
2317
|
+
isCallableMarker = {};
|
|
2318
|
+
// eslint-disable-next-line no-throw-literal
|
|
2319
|
+
reflectApply(function () { throw 42; }, null, badArrayLike);
|
|
2320
|
+
} catch (_) {
|
|
2321
|
+
if (_ !== isCallableMarker) {
|
|
2322
|
+
reflectApply = null;
|
|
2323
|
+
}
|
|
2324
|
+
}
|
|
2325
|
+
} else {
|
|
2326
|
+
reflectApply = null;
|
|
2327
|
+
}
|
|
2328
|
+
|
|
2329
|
+
var constructorRegex = /^\s*class\b/;
|
|
2330
|
+
var isES6ClassFn = function isES6ClassFunction(value) {
|
|
2331
|
+
try {
|
|
2332
|
+
var fnStr = fnToStr.call(value);
|
|
2333
|
+
return constructorRegex.test(fnStr);
|
|
2334
|
+
} catch (e) {
|
|
2335
|
+
return false; // not a function
|
|
2336
|
+
}
|
|
2337
|
+
};
|
|
2338
|
+
|
|
2339
|
+
var tryFunctionObject = function tryFunctionToStr(value) {
|
|
2340
|
+
try {
|
|
2341
|
+
if (isES6ClassFn(value)) { return false; }
|
|
2342
|
+
fnToStr.call(value);
|
|
2343
|
+
return true;
|
|
2344
|
+
} catch (e) {
|
|
2345
|
+
return false;
|
|
2346
|
+
}
|
|
2347
|
+
};
|
|
2348
|
+
var toStr$6 = Object.prototype.toString;
|
|
2349
|
+
var fnClass = '[object Function]';
|
|
2350
|
+
var genClass = '[object GeneratorFunction]';
|
|
2351
|
+
var hasToStringTag$1 = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
|
|
2352
|
+
|
|
2353
|
+
var isCallable = reflectApply
|
|
2354
|
+
? function isCallable(value) {
|
|
2355
|
+
if (!value) { return false; }
|
|
2356
|
+
if (typeof value !== 'function' && typeof value !== 'object') { return false; }
|
|
2357
|
+
if (typeof value === 'function' && !value.prototype) { return true; }
|
|
2358
|
+
try {
|
|
2359
|
+
reflectApply(value, null, badArrayLike);
|
|
2360
|
+
} catch (e) {
|
|
2361
|
+
if (e !== isCallableMarker) { return false; }
|
|
2362
|
+
}
|
|
2363
|
+
return !isES6ClassFn(value);
|
|
2364
|
+
}
|
|
2365
|
+
: function isCallable(value) {
|
|
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$6.call(value);
|
|
2372
|
+
return strClass === fnClass || strClass === genClass;
|
|
2373
|
+
};
|
|
2374
|
+
|
|
2375
|
+
// http://ecma-international.org/ecma-262/5.1/#sec-9.11
|
|
2376
|
+
|
|
2377
|
+
var IsCallable = isCallable;
|
|
2378
|
+
|
|
2379
|
+
var $TypeError$2 = getIntrinsic('%TypeError%');
|
|
2380
|
+
|
|
2381
|
+
|
|
2382
|
+
|
|
2383
|
+
|
|
2384
|
+
|
|
2385
|
+
// https://ecma-international.org/ecma-262/5.1/#sec-8.10.5
|
|
2386
|
+
|
|
2387
|
+
var ToPropertyDescriptor = function ToPropertyDescriptor(Obj) {
|
|
2388
|
+
if (Type$1(Obj) !== 'Object') {
|
|
2389
|
+
throw new $TypeError$2('ToPropertyDescriptor requires an object');
|
|
2390
|
+
}
|
|
2391
|
+
|
|
2392
|
+
var desc = {};
|
|
2393
|
+
if (src(Obj, 'enumerable')) {
|
|
2394
|
+
desc['[[Enumerable]]'] = ToBoolean(Obj.enumerable);
|
|
2395
|
+
}
|
|
2396
|
+
if (src(Obj, 'configurable')) {
|
|
2397
|
+
desc['[[Configurable]]'] = ToBoolean(Obj.configurable);
|
|
2398
|
+
}
|
|
2399
|
+
if (src(Obj, 'value')) {
|
|
2400
|
+
desc['[[Value]]'] = Obj.value;
|
|
2401
|
+
}
|
|
2402
|
+
if (src(Obj, 'writable')) {
|
|
2403
|
+
desc['[[Writable]]'] = ToBoolean(Obj.writable);
|
|
2404
|
+
}
|
|
2405
|
+
if (src(Obj, 'get')) {
|
|
2406
|
+
var getter = Obj.get;
|
|
2407
|
+
if (typeof getter !== 'undefined' && !IsCallable(getter)) {
|
|
2408
|
+
throw new $TypeError$2('getter must be a function');
|
|
2409
|
+
}
|
|
2410
|
+
desc['[[Get]]'] = getter;
|
|
2411
|
+
}
|
|
2412
|
+
if (src(Obj, 'set')) {
|
|
2413
|
+
var setter = Obj.set;
|
|
2414
|
+
if (typeof setter !== 'undefined' && !IsCallable(setter)) {
|
|
2415
|
+
throw new $TypeError$2('setter must be a function');
|
|
2416
|
+
}
|
|
2417
|
+
desc['[[Set]]'] = setter;
|
|
2418
|
+
}
|
|
2419
|
+
|
|
2420
|
+
if ((src(desc, '[[Get]]') || src(desc, '[[Set]]')) && (src(desc, '[[Value]]') || src(desc, '[[Writable]]'))) {
|
|
2421
|
+
throw new $TypeError$2('Invalid property descriptor. Cannot both specify accessors and a value or writable attribute');
|
|
2422
|
+
}
|
|
2423
|
+
return desc;
|
|
2424
|
+
};
|
|
2425
|
+
|
|
2426
|
+
var $TypeError$3 = getIntrinsic('%TypeError%');
|
|
2427
|
+
|
|
2428
|
+
|
|
2429
|
+
|
|
2430
|
+
var $isEnumerable$1 = callBound('Object.prototype.propertyIsEnumerable');
|
|
2431
|
+
|
|
2432
|
+
|
|
2433
|
+
|
|
2434
|
+
|
|
2435
|
+
|
|
2436
|
+
|
|
2437
|
+
|
|
2438
|
+
|
|
2439
|
+
|
|
2440
|
+
// https://ecma-international.org/ecma-262/6.0/#sec-ordinarygetownproperty
|
|
2441
|
+
|
|
2442
|
+
var OrdinaryGetOwnProperty = function OrdinaryGetOwnProperty(O, P) {
|
|
2443
|
+
if (Type$1(O) !== 'Object') {
|
|
2444
|
+
throw new $TypeError$3('Assertion failed: O must be an Object');
|
|
2445
|
+
}
|
|
2446
|
+
if (!IsPropertyKey(P)) {
|
|
2447
|
+
throw new $TypeError$3('Assertion failed: P must be a Property Key');
|
|
2448
|
+
}
|
|
2449
|
+
if (!src(O, P)) {
|
|
2450
|
+
return void 0;
|
|
2451
|
+
}
|
|
2452
|
+
if (!getOwnPropertyDescriptor) {
|
|
2453
|
+
// ES3 / IE 8 fallback
|
|
2454
|
+
var arrayLength = IsArray(O) && P === 'length';
|
|
2455
|
+
var regexLastIndex = IsRegExp(O) && P === 'lastIndex';
|
|
2456
|
+
return {
|
|
2457
|
+
'[[Configurable]]': !(arrayLength || regexLastIndex),
|
|
2458
|
+
'[[Enumerable]]': $isEnumerable$1(O, P),
|
|
2459
|
+
'[[Value]]': O[P],
|
|
2460
|
+
'[[Writable]]': true
|
|
2461
|
+
};
|
|
2462
|
+
}
|
|
2463
|
+
return ToPropertyDescriptor(getOwnPropertyDescriptor(O, P));
|
|
2464
|
+
};
|
|
2465
|
+
|
|
2466
|
+
// https://ecma-international.org/ecma-262/6.0/#sec-isdatadescriptor
|
|
2222
2467
|
|
|
2223
2468
|
var IsDataDescriptor = function IsDataDescriptor(Desc) {
|
|
2224
2469
|
if (typeof Desc === 'undefined') {
|
|
@@ -2238,34 +2483,28 @@ var isPrimitive = function isPrimitive(value) {
|
|
|
2238
2483
|
return value === null || (typeof value !== 'function' && typeof value !== 'object');
|
|
2239
2484
|
};
|
|
2240
2485
|
|
|
2241
|
-
var $Object =
|
|
2486
|
+
var $Object = getIntrinsic('%Object%');
|
|
2242
2487
|
|
|
2243
2488
|
|
|
2244
2489
|
|
|
2245
2490
|
var $preventExtensions = $Object.preventExtensions;
|
|
2246
2491
|
var $isExtensible = $Object.isExtensible;
|
|
2247
2492
|
|
|
2248
|
-
// https://
|
|
2493
|
+
// https://ecma-international.org/ecma-262/6.0/#sec-isextensible-o
|
|
2249
2494
|
|
|
2250
2495
|
var IsExtensible = $preventExtensions
|
|
2251
2496
|
? function IsExtensible(obj) {
|
|
2252
2497
|
return !isPrimitive(obj) && $isExtensible(obj);
|
|
2253
2498
|
}
|
|
2254
|
-
: function IsExtensible(obj) {
|
|
2255
|
-
return
|
|
2499
|
+
: function IsExtensible(obj) {
|
|
2500
|
+
return !isPrimitive(obj);
|
|
2256
2501
|
};
|
|
2257
2502
|
|
|
2258
|
-
// https://www.ecma-international.org/ecma-262/6.0/#sec-ispropertykey
|
|
2259
|
-
|
|
2260
|
-
var IsPropertyKey = function IsPropertyKey(argument) {
|
|
2261
|
-
return typeof argument === 'string' || typeof argument === 'symbol';
|
|
2262
|
-
};
|
|
2263
|
-
|
|
2264
2503
|
var _isNaN = Number.isNaN || function isNaN(a) {
|
|
2265
2504
|
return a !== a;
|
|
2266
2505
|
};
|
|
2267
2506
|
|
|
2268
|
-
// http://
|
|
2507
|
+
// http://ecma-international.org/ecma-262/5.1/#sec-9.12
|
|
2269
2508
|
|
|
2270
2509
|
var SameValue = function SameValue(x, y) {
|
|
2271
2510
|
if (x === y) { // 0 === -0, but they are not identical.
|
|
@@ -2275,8 +2514,7 @@ var SameValue = function SameValue(x, y) {
|
|
|
2275
2514
|
return _isNaN(x) && _isNaN(y);
|
|
2276
2515
|
};
|
|
2277
2516
|
|
|
2278
|
-
var $
|
|
2279
|
-
var $TypeError$2 = GetIntrinsic('%TypeError%');
|
|
2517
|
+
var $TypeError$4 = getIntrinsic('%TypeError%');
|
|
2280
2518
|
|
|
2281
2519
|
|
|
2282
2520
|
|
|
@@ -2287,18 +2525,19 @@ var $TypeError$2 = GetIntrinsic('%TypeError%');
|
|
|
2287
2525
|
|
|
2288
2526
|
|
|
2289
2527
|
|
|
2290
|
-
|
|
2528
|
+
|
|
2529
|
+
// https://ecma-international.org/ecma-262/6.0/#sec-createdataproperty
|
|
2291
2530
|
|
|
2292
2531
|
var CreateDataProperty = function CreateDataProperty(O, P, V) {
|
|
2293
2532
|
if (Type$1(O) !== 'Object') {
|
|
2294
|
-
throw new $TypeError$
|
|
2533
|
+
throw new $TypeError$4('Assertion failed: Type(O) is not Object');
|
|
2295
2534
|
}
|
|
2296
2535
|
if (!IsPropertyKey(P)) {
|
|
2297
|
-
throw new $TypeError$
|
|
2536
|
+
throw new $TypeError$4('Assertion failed: IsPropertyKey(P) is not true');
|
|
2298
2537
|
}
|
|
2299
|
-
var oldDesc =
|
|
2300
|
-
var extensible = oldDesc || IsExtensible(O);
|
|
2301
|
-
var immutable = oldDesc && (!oldDesc
|
|
2538
|
+
var oldDesc = OrdinaryGetOwnProperty(O, P);
|
|
2539
|
+
var extensible = !oldDesc || IsExtensible(O);
|
|
2540
|
+
var immutable = oldDesc && (!oldDesc['[[Writable]]'] || !oldDesc['[[Configurable]]']);
|
|
2302
2541
|
if (immutable || !extensible) {
|
|
2303
2542
|
return false;
|
|
2304
2543
|
}
|
|
@@ -2317,64 +2556,24 @@ var CreateDataProperty = function CreateDataProperty(O, P, V) {
|
|
|
2317
2556
|
);
|
|
2318
2557
|
};
|
|
2319
2558
|
|
|
2320
|
-
var
|
|
2321
|
-
|
|
2322
|
-
var constructorRegex = /^\s*class\b/;
|
|
2323
|
-
var isES6ClassFn = function isES6ClassFunction(value) {
|
|
2324
|
-
try {
|
|
2325
|
-
var fnStr = fnToStr.call(value);
|
|
2326
|
-
return constructorRegex.test(fnStr);
|
|
2327
|
-
} catch (e) {
|
|
2328
|
-
return false; // not a function
|
|
2329
|
-
}
|
|
2330
|
-
};
|
|
2559
|
+
var $TypeError$5 = getIntrinsic('%TypeError%');
|
|
2331
2560
|
|
|
2332
|
-
|
|
2333
|
-
try {
|
|
2334
|
-
if (isES6ClassFn(value)) { return false; }
|
|
2335
|
-
fnToStr.call(value);
|
|
2336
|
-
return true;
|
|
2337
|
-
} catch (e) {
|
|
2338
|
-
return false;
|
|
2339
|
-
}
|
|
2340
|
-
};
|
|
2341
|
-
var toStr$4 = Object.prototype.toString;
|
|
2342
|
-
var fnClass = '[object Function]';
|
|
2343
|
-
var genClass = '[object GeneratorFunction]';
|
|
2344
|
-
var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
|
|
2345
|
-
|
|
2346
|
-
var isCallable = function isCallable(value) {
|
|
2347
|
-
if (!value) { return false; }
|
|
2348
|
-
if (typeof value !== 'function' && typeof value !== 'object') { return false; }
|
|
2349
|
-
if (typeof value === 'function' && !value.prototype) { return true; }
|
|
2350
|
-
if (hasToStringTag) { return tryFunctionObject(value); }
|
|
2351
|
-
if (isES6ClassFn(value)) { return false; }
|
|
2352
|
-
var strClass = toStr$4.call(value);
|
|
2353
|
-
return strClass === fnClass || strClass === genClass;
|
|
2354
|
-
};
|
|
2355
|
-
|
|
2356
|
-
// http://www.ecma-international.org/ecma-262/5.1/#sec-9.11
|
|
2357
|
-
|
|
2358
|
-
var IsCallable = isCallable;
|
|
2359
|
-
|
|
2360
|
-
var $TypeError$3 = GetIntrinsic('%TypeError%');
|
|
2361
|
-
|
|
2362
|
-
// http://www.ecma-international.org/ecma-262/5.1/#sec-9.10
|
|
2561
|
+
// http://ecma-international.org/ecma-262/5.1/#sec-9.10
|
|
2363
2562
|
|
|
2364
2563
|
var CheckObjectCoercible = function CheckObjectCoercible(value, optMessage) {
|
|
2365
2564
|
if (value == null) {
|
|
2366
|
-
throw new $TypeError$
|
|
2565
|
+
throw new $TypeError$5(optMessage || ('Cannot call method on ' + value));
|
|
2367
2566
|
}
|
|
2368
2567
|
return value;
|
|
2369
2568
|
};
|
|
2370
2569
|
|
|
2371
2570
|
var RequireObjectCoercible = CheckObjectCoercible;
|
|
2372
2571
|
|
|
2373
|
-
var $Object$1 =
|
|
2572
|
+
var $Object$1 = getIntrinsic('%Object%');
|
|
2374
2573
|
|
|
2375
2574
|
|
|
2376
2575
|
|
|
2377
|
-
// https://
|
|
2576
|
+
// https://ecma-international.org/ecma-262/6.0/#sec-toobject
|
|
2378
2577
|
|
|
2379
2578
|
var ToObject = function ToObject(value) {
|
|
2380
2579
|
RequireObjectCoercible(value);
|
|
@@ -2384,10 +2583,10 @@ var ToObject = function ToObject(value) {
|
|
|
2384
2583
|
var $gOPD$2 = Object.getOwnPropertyDescriptor;
|
|
2385
2584
|
var $getOwnNames = Object.getOwnPropertyNames;
|
|
2386
2585
|
var $getSymbols = Object.getOwnPropertySymbols;
|
|
2387
|
-
var $concat = callBound('Array.prototype.concat');
|
|
2586
|
+
var $concat$1 = callBound('Array.prototype.concat');
|
|
2388
2587
|
var $reduce = callBound('Array.prototype.reduce');
|
|
2389
2588
|
var getAll = $getSymbols ? function (obj) {
|
|
2390
|
-
return $concat($getOwnNames(obj), $getSymbols(obj));
|
|
2589
|
+
return $concat$1($getOwnNames(obj), $getSymbols(obj));
|
|
2391
2590
|
} : $getOwnNames;
|
|
2392
2591
|
|
|
2393
2592
|
var isES5 = IsCallable($gOPD$2) && IsCallable($getOwnNames);
|
|
@@ -2426,13 +2625,15 @@ var shim = function shimGetOwnPropertyDescriptors() {
|
|
|
2426
2625
|
return polyfill$1;
|
|
2427
2626
|
};
|
|
2428
2627
|
|
|
2429
|
-
|
|
2628
|
+
var bound = callBind(polyfill(), Object);
|
|
2629
|
+
|
|
2630
|
+
defineProperties_1(bound, {
|
|
2430
2631
|
getPolyfill: polyfill,
|
|
2431
2632
|
implementation: implementation$2,
|
|
2432
2633
|
shim: shim
|
|
2433
2634
|
});
|
|
2434
2635
|
|
|
2435
|
-
var object_getownpropertydescriptors =
|
|
2636
|
+
var object_getownpropertydescriptors = bound;
|
|
2436
2637
|
|
|
2437
2638
|
/* globals
|
|
2438
2639
|
Atomics,
|
|
@@ -2441,7 +2642,7 @@ var object_getownpropertydescriptors = implementation$2;
|
|
|
2441
2642
|
|
|
2442
2643
|
var undefined$2;
|
|
2443
2644
|
|
|
2444
|
-
var $TypeError$
|
|
2645
|
+
var $TypeError$6 = TypeError;
|
|
2445
2646
|
|
|
2446
2647
|
var $gOPD$3 = Object.getOwnPropertyDescriptor;
|
|
2447
2648
|
if ($gOPD$3) {
|
|
@@ -2452,7 +2653,7 @@ if ($gOPD$3) {
|
|
|
2452
2653
|
}
|
|
2453
2654
|
}
|
|
2454
2655
|
|
|
2455
|
-
var throwTypeError$1 = function () { throw new $TypeError$
|
|
2656
|
+
var throwTypeError$1 = function () { throw new $TypeError$6(); };
|
|
2456
2657
|
var ThrowTypeError$1 = $gOPD$3
|
|
2457
2658
|
? (function () {
|
|
2458
2659
|
try {
|
|
@@ -2470,12 +2671,12 @@ var ThrowTypeError$1 = $gOPD$3
|
|
|
2470
2671
|
}())
|
|
2471
2672
|
: throwTypeError$1;
|
|
2472
2673
|
|
|
2473
|
-
var hasSymbols$
|
|
2674
|
+
var hasSymbols$4 = hasSymbols$1();
|
|
2474
2675
|
|
|
2475
2676
|
var getProto$1 = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
|
|
2476
|
-
var generatorFunction
|
|
2477
|
-
var asyncFunction
|
|
2478
|
-
var asyncGenFunction
|
|
2677
|
+
var generatorFunction = undefined$2;
|
|
2678
|
+
var asyncFunction = undefined$2;
|
|
2679
|
+
var asyncGenFunction = undefined$2;
|
|
2479
2680
|
|
|
2480
2681
|
var TypedArray$1 = typeof Uint8Array === 'undefined' ? undefined$2 : getProto$1(Uint8Array);
|
|
2481
2682
|
|
|
@@ -2483,17 +2684,17 @@ var INTRINSICS$1 = {
|
|
|
2483
2684
|
'%Array%': Array,
|
|
2484
2685
|
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$2 : ArrayBuffer,
|
|
2485
2686
|
'%ArrayBufferPrototype%': typeof ArrayBuffer === 'undefined' ? undefined$2 : ArrayBuffer.prototype,
|
|
2486
|
-
'%ArrayIteratorPrototype%': hasSymbols$
|
|
2687
|
+
'%ArrayIteratorPrototype%': hasSymbols$4 ? getProto$1([][Symbol.iterator]()) : undefined$2,
|
|
2487
2688
|
'%ArrayPrototype%': Array.prototype,
|
|
2488
2689
|
'%ArrayProto_entries%': Array.prototype.entries,
|
|
2489
2690
|
'%ArrayProto_forEach%': Array.prototype.forEach,
|
|
2490
2691
|
'%ArrayProto_keys%': Array.prototype.keys,
|
|
2491
2692
|
'%ArrayProto_values%': Array.prototype.values,
|
|
2492
2693
|
'%AsyncFromSyncIteratorPrototype%': undefined$2,
|
|
2493
|
-
'%AsyncFunction%': asyncFunction
|
|
2694
|
+
'%AsyncFunction%': asyncFunction,
|
|
2494
2695
|
'%AsyncFunctionPrototype%': undefined$2,
|
|
2495
2696
|
'%AsyncGenerator%': undefined$2,
|
|
2496
|
-
'%AsyncGeneratorFunction%': asyncGenFunction
|
|
2697
|
+
'%AsyncGeneratorFunction%': asyncGenFunction,
|
|
2497
2698
|
'%AsyncGeneratorPrototype%': undefined$2,
|
|
2498
2699
|
'%AsyncIteratorPrototype%': undefined$2,
|
|
2499
2700
|
'%Atomics%': typeof Atomics === 'undefined' ? undefined$2 : Atomics,
|
|
@@ -2519,7 +2720,7 @@ var INTRINSICS$1 = {
|
|
|
2519
2720
|
'%Function%': Function,
|
|
2520
2721
|
'%FunctionPrototype%': Function.prototype,
|
|
2521
2722
|
'%Generator%': undefined$2,
|
|
2522
|
-
'%GeneratorFunction%': generatorFunction
|
|
2723
|
+
'%GeneratorFunction%': generatorFunction,
|
|
2523
2724
|
'%GeneratorPrototype%': undefined$2,
|
|
2524
2725
|
'%Int8Array%': typeof Int8Array === 'undefined' ? undefined$2 : Int8Array,
|
|
2525
2726
|
'%Int8ArrayPrototype%': typeof Int8Array === 'undefined' ? undefined$2 : Int8Array.prototype,
|
|
@@ -2529,11 +2730,11 @@ var INTRINSICS$1 = {
|
|
|
2529
2730
|
'%Int32ArrayPrototype%': typeof Int32Array === 'undefined' ? undefined$2 : Int32Array.prototype,
|
|
2530
2731
|
'%isFinite%': isFinite,
|
|
2531
2732
|
'%isNaN%': isNaN,
|
|
2532
|
-
'%IteratorPrototype%': hasSymbols$
|
|
2733
|
+
'%IteratorPrototype%': hasSymbols$4 ? getProto$1(getProto$1([][Symbol.iterator]())) : undefined$2,
|
|
2533
2734
|
'%JSON%': typeof JSON === 'object' ? JSON : undefined$2,
|
|
2534
2735
|
'%JSONParse%': typeof JSON === 'object' ? JSON.parse : undefined$2,
|
|
2535
2736
|
'%Map%': typeof Map === 'undefined' ? undefined$2 : Map,
|
|
2536
|
-
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$
|
|
2737
|
+
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$4 ? undefined$2 : getProto$1(new Map()[Symbol.iterator]()),
|
|
2537
2738
|
'%MapPrototype%': typeof Map === 'undefined' ? undefined$2 : Map.prototype,
|
|
2538
2739
|
'%Math%': Math,
|
|
2539
2740
|
'%Number%': Number,
|
|
@@ -2559,22 +2760,22 @@ var INTRINSICS$1 = {
|
|
|
2559
2760
|
'%RegExp%': RegExp,
|
|
2560
2761
|
'%RegExpPrototype%': RegExp.prototype,
|
|
2561
2762
|
'%Set%': typeof Set === 'undefined' ? undefined$2 : Set,
|
|
2562
|
-
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$
|
|
2763
|
+
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$4 ? undefined$2 : getProto$1(new Set()[Symbol.iterator]()),
|
|
2563
2764
|
'%SetPrototype%': typeof Set === 'undefined' ? undefined$2 : Set.prototype,
|
|
2564
2765
|
'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$2 : SharedArrayBuffer,
|
|
2565
2766
|
'%SharedArrayBufferPrototype%': typeof SharedArrayBuffer === 'undefined' ? undefined$2 : SharedArrayBuffer.prototype,
|
|
2566
2767
|
'%String%': String,
|
|
2567
|
-
'%StringIteratorPrototype%': hasSymbols$
|
|
2768
|
+
'%StringIteratorPrototype%': hasSymbols$4 ? getProto$1(''[Symbol.iterator]()) : undefined$2,
|
|
2568
2769
|
'%StringPrototype%': String.prototype,
|
|
2569
|
-
'%Symbol%': hasSymbols$
|
|
2570
|
-
'%SymbolPrototype%': hasSymbols$
|
|
2770
|
+
'%Symbol%': hasSymbols$4 ? Symbol : undefined$2,
|
|
2771
|
+
'%SymbolPrototype%': hasSymbols$4 ? Symbol.prototype : undefined$2,
|
|
2571
2772
|
'%SyntaxError%': SyntaxError,
|
|
2572
2773
|
'%SyntaxErrorPrototype%': SyntaxError.prototype,
|
|
2573
2774
|
'%ThrowTypeError%': ThrowTypeError$1,
|
|
2574
2775
|
'%TypedArray%': TypedArray$1,
|
|
2575
2776
|
'%TypedArrayPrototype%': TypedArray$1 ? TypedArray$1.prototype : undefined$2,
|
|
2576
|
-
'%TypeError%': $TypeError$
|
|
2577
|
-
'%TypeErrorPrototype%': $TypeError$
|
|
2777
|
+
'%TypeError%': $TypeError$6,
|
|
2778
|
+
'%TypeErrorPrototype%': $TypeError$6.prototype,
|
|
2578
2779
|
'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$2 : Uint8Array,
|
|
2579
2780
|
'%Uint8ArrayPrototype%': typeof Uint8Array === 'undefined' ? undefined$2 : Uint8Array.prototype,
|
|
2580
2781
|
'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$2 : Uint8ClampedArray,
|
|
@@ -2613,13 +2814,13 @@ var getBaseIntrinsic$1 = function getBaseIntrinsic(name, allowMissing) {
|
|
|
2613
2814
|
|
|
2614
2815
|
// istanbul ignore if // hopefully this is impossible to test :-)
|
|
2615
2816
|
if (typeof INTRINSICS$1[name] === 'undefined' && !allowMissing) {
|
|
2616
|
-
throw new $TypeError$
|
|
2817
|
+
throw new $TypeError$6('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
|
|
2617
2818
|
}
|
|
2618
2819
|
|
|
2619
2820
|
return INTRINSICS$1[name];
|
|
2620
2821
|
};
|
|
2621
2822
|
|
|
2622
|
-
var GetIntrinsic
|
|
2823
|
+
var GetIntrinsic = function GetIntrinsic(name, allowMissing) {
|
|
2623
2824
|
if (typeof name !== 'string' || name.length === 0) {
|
|
2624
2825
|
throw new TypeError('intrinsic name must be a non-empty string');
|
|
2625
2826
|
}
|
|
@@ -2635,9 +2836,16 @@ var GetIntrinsic$1 = function GetIntrinsic(name, allowMissing) {
|
|
|
2635
2836
|
if ($gOPD$3 && (i + 1) >= parts.length) {
|
|
2636
2837
|
var desc = $gOPD$3(value, parts[i]);
|
|
2637
2838
|
if (!allowMissing && !(parts[i] in value)) {
|
|
2638
|
-
throw new $TypeError$
|
|
2839
|
+
throw new $TypeError$6('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
2639
2840
|
}
|
|
2640
|
-
|
|
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]];
|
|
2641
2849
|
} else {
|
|
2642
2850
|
value = value[parts[i]];
|
|
2643
2851
|
}
|
|
@@ -2646,23 +2854,47 @@ var GetIntrinsic$1 = function GetIntrinsic(name, allowMissing) {
|
|
|
2646
2854
|
return value;
|
|
2647
2855
|
};
|
|
2648
2856
|
|
|
2649
|
-
var $
|
|
2650
|
-
|
|
2651
|
-
|
|
2857
|
+
var callBind$1 = createCommonjsModule(function (module) {
|
|
2858
|
+
|
|
2859
|
+
|
|
2652
2860
|
|
|
2653
|
-
|
|
2654
|
-
|
|
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);
|
|
2655
2880
|
};
|
|
2656
2881
|
|
|
2657
|
-
var
|
|
2658
|
-
return $reflectApply(functionBind, $apply
|
|
2882
|
+
var applyBind = function applyBind() {
|
|
2883
|
+
return $reflectApply(functionBind, $apply, arguments);
|
|
2659
2884
|
};
|
|
2660
|
-
callBind$1.apply = apply$1;
|
|
2661
2885
|
|
|
2662
|
-
|
|
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'));
|
|
2663
2895
|
|
|
2664
2896
|
var callBound$1 = function callBoundIntrinsic(name, allowMissing) {
|
|
2665
|
-
var intrinsic = GetIntrinsic
|
|
2897
|
+
var intrinsic = GetIntrinsic(name, !!allowMissing);
|
|
2666
2898
|
if (typeof intrinsic === 'function' && $indexOf$1(name, '.prototype.')) {
|
|
2667
2899
|
return callBind$1(intrinsic);
|
|
2668
2900
|
}
|
|
@@ -2687,13 +2919,13 @@ if (typeof Promise !== 'function') {
|
|
|
2687
2919
|
|
|
2688
2920
|
|
|
2689
2921
|
var $slice = callBound$1('Array.prototype.slice');
|
|
2690
|
-
var $concat$
|
|
2922
|
+
var $concat$2 = callBound$1('Array.prototype.concat');
|
|
2691
2923
|
var $forEach = callBound$1('Array.prototype.forEach');
|
|
2692
2924
|
|
|
2693
|
-
var hasSymbols$
|
|
2925
|
+
var hasSymbols$5 = hasSymbols$1();
|
|
2694
2926
|
|
|
2695
|
-
var kCustomPromisifiedSymbol = hasSymbols$
|
|
2696
|
-
var kCustomPromisifyArgsSymbol = hasSymbols$
|
|
2927
|
+
var kCustomPromisifiedSymbol = hasSymbols$5 ? Symbol('util.promisify.custom') : null;
|
|
2928
|
+
var kCustomPromisifyArgsSymbol = hasSymbols$5 ? Symbol('customPromisifyArgs') : null;
|
|
2697
2929
|
|
|
2698
2930
|
var implementation$3 = function promisify(orig) {
|
|
2699
2931
|
if (typeof orig !== 'function') {
|
|
@@ -2703,7 +2935,7 @@ var implementation$3 = function promisify(orig) {
|
|
|
2703
2935
|
throw error;
|
|
2704
2936
|
}
|
|
2705
2937
|
|
|
2706
|
-
if (hasSymbols$
|
|
2938
|
+
if (hasSymbols$5 && orig[kCustomPromisifiedSymbol]) {
|
|
2707
2939
|
var customFunction = orig[kCustomPromisifiedSymbol];
|
|
2708
2940
|
if (typeof customFunction !== 'function') {
|
|
2709
2941
|
throw new TypeError('The [util.promisify.custom] property must be a function');
|
|
@@ -2725,7 +2957,7 @@ var implementation$3 = function promisify(orig) {
|
|
|
2725
2957
|
var args = $slice(arguments);
|
|
2726
2958
|
var self = this; // eslint-disable-line no-invalid-this
|
|
2727
2959
|
return new Promise(function (resolve, reject) {
|
|
2728
|
-
orig.apply(self, $concat$
|
|
2960
|
+
orig.apply(self, $concat$2(args, function (err) {
|
|
2729
2961
|
var values = arguments.length > 1 ? $slice(arguments, 1) : [];
|
|
2730
2962
|
if (err) {
|
|
2731
2963
|
reject(err);
|
|
@@ -3004,7 +3236,7 @@ var md5 = createCommonjsModule(function (module) {
|
|
|
3004
3236
|
message = utf8.stringToBytes(message);
|
|
3005
3237
|
else if (isBuffer(message))
|
|
3006
3238
|
message = Array.prototype.slice.call(message, 0);
|
|
3007
|
-
else if (!Array.isArray(message))
|
|
3239
|
+
else if (!Array.isArray(message) && message.constructor !== Uint8Array)
|
|
3008
3240
|
message = message.toString();
|
|
3009
3241
|
// else, assume byte array already
|
|
3010
3242
|
|