@sheerid/jslib 1.115.0 → 1.117.0
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/es5/Tmetrix.bundle.js +5 -5
- package/es5/messages_ar.bundle.js +5 -5
- package/es5/messages_bg.bundle.js +5 -5
- package/es5/messages_cs.bundle.js +5 -5
- package/es5/messages_da.bundle.js +5 -5
- package/es5/messages_de.bundle.js +5 -5
- package/es5/messages_el.bundle.js +5 -5
- package/es5/messages_en-GB.bundle.js +5 -5
- package/es5/messages_es-ES.bundle.js +5 -5
- package/es5/messages_es.bundle.js +5 -5
- package/es5/messages_fi.bundle.js +5 -5
- package/es5/messages_fr-CA.bundle.js +5 -5
- package/es5/messages_fr.bundle.js +5 -5
- package/es5/messages_ga.bundle.js +5 -5
- package/es5/messages_hr.bundle.js +5 -5
- package/es5/messages_hu.bundle.js +5 -5
- package/es5/messages_id.bundle.js +5 -5
- package/es5/messages_it.bundle.js +5 -5
- package/es5/messages_iw.bundle.js +5 -5
- package/es5/messages_ja.bundle.js +5 -5
- package/es5/messages_ko.bundle.js +5 -5
- package/es5/messages_lo.bundle.js +5 -5
- package/es5/messages_lt.bundle.js +5 -5
- package/es5/messages_ms.bundle.js +5 -5
- package/es5/messages_nl.bundle.js +5 -5
- package/es5/messages_no.bundle.js +5 -5
- package/es5/messages_pl.bundle.js +5 -5
- package/es5/messages_pt-BR.bundle.js +5 -5
- package/es5/messages_pt.bundle.js +5 -5
- package/es5/messages_ru.bundle.js +5 -5
- package/es5/messages_sk.bundle.js +5 -5
- package/es5/messages_sl.bundle.js +5 -5
- package/es5/messages_sr.bundle.js +5 -5
- package/es5/messages_sv.bundle.js +5 -5
- package/es5/messages_th.bundle.js +5 -5
- package/es5/messages_tr.bundle.js +5 -5
- package/es5/messages_zh-HK.bundle.js +5 -5
- package/es5/messages_zh.bundle.js +5 -5
- package/es6/{ar-be8a4ea7.es.js → ar-98e99567.es.js} +5 -6
- package/es6/{cs-76972631.es.js.map → ar-98e99567.es.js.map} +1 -1
- package/es6/{bg-7d68b084.es.js → bg-702603e3.es.js} +5 -6
- package/es6/{ar-be8a4ea7.es.js.map → bg-702603e3.es.js.map} +1 -1
- package/es6/{cs-76972631.es.js → cs-a320d5e4.es.js} +445 -446
- package/es6/{da-ac1717ad.es.js.map → cs-a320d5e4.es.js.map} +1 -1
- package/es6/{da-ac1717ad.es.js → da-80c2454e.es.js} +5 -6
- package/es6/{bg-7d68b084.es.js.map → da-80c2454e.es.js.map} +1 -1
- package/es6/{de-074f4e20.es.js → de-a2581478.es.js} +352 -353
- package/es6/de-a2581478.es.js.map +1 -0
- package/es6/el-325e1941.es.js +962 -0
- package/es6/el-325e1941.es.js.map +1 -0
- package/es6/{en-GB-a9ddb9ae.es.js → en-GB-e1441ff4.es.js} +5 -6
- package/es6/{en-GB-a9ddb9ae.es.js.map → en-GB-e1441ff4.es.js.map} +1 -1
- package/es6/{es-0b85cd1e.es.js → es-698c8234.es.js} +262 -263
- package/es6/es-698c8234.es.js.map +1 -0
- package/es6/{es-ES-09a85ab4.es.js → es-ES-c34afa10.es.js} +356 -357
- package/es6/{es-ES-09a85ab4.es.js.map → es-ES-c34afa10.es.js.map} +1 -1
- package/es6/{fi-e9d2aa76.es.js → fi-fae49b12.es.js} +5 -6
- package/es6/fi-fae49b12.es.js.map +1 -0
- package/es6/{fr-CA-e6486012.es.js → fr-CA-30c34f2e.es.js} +389 -390
- package/es6/{fr-CA-e6486012.es.js.map → fr-CA-30c34f2e.es.js.map} +1 -1
- package/es6/{fr-c29171e7.es.js → fr-ff4242b1.es.js} +511 -512
- package/es6/fr-ff4242b1.es.js.map +1 -0
- package/es6/{ga-9f436ad1.es.js → ga-d0e2aa7b.es.js} +5 -6
- package/es6/ga-d0e2aa7b.es.js.map +1 -0
- package/es6/{hr-98b6b845.es.js → hr-27eaee7a.es.js} +5 -6
- package/es6/hr-27eaee7a.es.js.map +1 -0
- package/es6/{hu-c24b11a8.es.js → hu-e3664793.es.js} +5 -6
- package/es6/hu-e3664793.es.js.map +1 -0
- package/es6/{id-7f3237d0.es.js → id-213d6401.es.js} +5 -6
- package/es6/id-213d6401.es.js.map +1 -0
- package/es6/{it-ee9d3e4d.es.js → it-6826ae41.es.js} +5 -6
- package/es6/it-6826ae41.es.js.map +1 -0
- package/es6/{iw-1105c657.es.js → iw-aa79df21.es.js} +5 -6
- package/es6/iw-aa79df21.es.js.map +1 -0
- package/es6/{ja-5a7bda14.es.js → ja-7463abcc.es.js} +423 -424
- package/es6/ja-7463abcc.es.js.map +1 -0
- package/es6/{ko-293bcc87.es.js → ko-a6c7728b.es.js} +5 -6
- package/es6/ko-a6c7728b.es.js.map +1 -0
- package/es6/{lo-d4965434.es.js → lo-9170ac48.es.js} +5 -6
- package/es6/lo-9170ac48.es.js.map +1 -0
- package/es6/{lt-1dd3f6bc.es.js → lt-5ab878c1.es.js} +5 -6
- package/es6/lt-5ab878c1.es.js.map +1 -0
- package/es6/{ms-a2b49f0e.es.js → ms-8029472e.es.js} +5 -6
- package/es6/ms-8029472e.es.js.map +1 -0
- package/es6/{nl-1c1caaa7.es.js → nl-577f06ab.es.js} +5 -6
- package/es6/nl-577f06ab.es.js.map +1 -0
- package/es6/{no-6b809f77.es.js → no-2cbcceb9.es.js} +5 -6
- package/es6/no-2cbcceb9.es.js.map +1 -0
- package/es6/pl-54311695.es.js +962 -0
- package/es6/pl-54311695.es.js.map +1 -0
- package/es6/{pt-6940ccd4.es.js → pt-279ac8bf.es.js} +453 -454
- package/es6/pt-279ac8bf.es.js.map +1 -0
- package/es6/{pt-BR-fd0de0f9.es.js → pt-BR-a0ceb834.es.js} +350 -351
- package/es6/{pt-BR-fd0de0f9.es.js.map → pt-BR-a0ceb834.es.js.map} +1 -1
- package/es6/{ru-5a707928.es.js → ru-a8b852f4.es.js} +5 -6
- package/es6/ru-a8b852f4.es.js.map +1 -0
- package/es6/{sk-89ce05be.es.js → sk-ec9866bc.es.js} +5 -6
- package/es6/sk-ec9866bc.es.js.map +1 -0
- package/es6/{sl-31c230c2.es.js → sl-de83f81c.es.js} +5 -6
- package/es6/sl-de83f81c.es.js.map +1 -0
- package/es6/{sr-b7ed8dda.es.js → sr-eddec6ba.es.js} +5 -6
- package/es6/sr-eddec6ba.es.js.map +1 -0
- package/es6/{sv-62e472d2.es.js → sv-4573019f.es.js} +5 -6
- package/es6/sv-4573019f.es.js.map +1 -0
- package/es6/{th-4b41f086.es.js → th-359b065f.es.js} +5 -6
- package/es6/th-359b065f.es.js.map +1 -0
- package/es6/{tr-57f74930.es.js → tr-3b0f2171.es.js} +317 -318
- package/es6/tr-3b0f2171.es.js.map +1 -0
- package/es6/{zh-077bb71f.es.js → zh-56631a55.es.js} +490 -491
- package/es6/zh-56631a55.es.js.map +1 -0
- package/es6/{zh-HK-f0861267.es.js → zh-HK-c1588b0f.es.js} +5 -6
- package/es6/zh-HK-c1588b0f.es.js.map +1 -0
- package/localized-messages/ar.json +5 -6
- package/localized-messages/bg.json +5 -6
- package/localized-messages/cs.json +445 -446
- package/localized-messages/da.json +5 -6
- package/localized-messages/de.json +352 -353
- package/localized-messages/el.json +528 -529
- package/localized-messages/en-GB.json +5 -6
- package/localized-messages/en-US.json +1 -2
- package/localized-messages/es-ES.json +356 -357
- package/localized-messages/es.json +262 -263
- package/localized-messages/fi.json +5 -6
- package/localized-messages/fr-CA.json +389 -390
- package/localized-messages/fr.json +511 -512
- package/localized-messages/ga.json +5 -6
- package/localized-messages/hr.json +5 -6
- package/localized-messages/hu.json +5 -6
- package/localized-messages/id.json +5 -6
- package/localized-messages/in.json +960 -0
- package/localized-messages/it.json +5 -6
- package/localized-messages/iw.json +5 -6
- package/localized-messages/ja.json +423 -424
- package/localized-messages/ko.json +5 -6
- package/localized-messages/lo.json +5 -6
- package/localized-messages/lt.json +5 -6
- package/localized-messages/ms.json +5 -6
- package/localized-messages/nl.json +5 -6
- package/localized-messages/no.json +5 -6
- package/localized-messages/pl.json +843 -844
- package/localized-messages/pt-BR.json +350 -351
- package/localized-messages/pt.json +453 -454
- package/localized-messages/ru.json +5 -6
- package/localized-messages/sk.json +5 -6
- package/localized-messages/sl.json +5 -6
- package/localized-messages/sr.json +5 -6
- package/localized-messages/sv.json +5 -6
- package/localized-messages/th.json +5 -6
- package/localized-messages/tr.json +317 -318
- package/localized-messages/zh-HK.json +5 -6
- package/localized-messages/zh.json +490 -491
- package/manifest.json +48 -48
- package/package.json +1 -2
- package/sheerid-requestOrg.css +5 -5
- package/sheerid-requestOrg.css.map +1 -1
- package/sheerid-requestOrg.js +14 -14
- package/sheerid-requestOrg.js.map +1 -1
- package/sheerid-utils.js +9 -9
- package/sheerid-utils.js.map +1 -1
- package/sheerid.css +5 -5
- package/sheerid.css.map +1 -1
- package/sheerid.js +18 -18
- package/sheerid.js.map +1 -1
- package/sheerides6.js +70 -1641
- package/sheerides6.js.map +1 -1
- package/src/components/AcceptableUploadsComponent/AcceptableUploadsComponent.d.ts +0 -1
- package/src/components/CustomCssWrapperComponent.d.ts +0 -1
- package/src/components/CustomTextWrapper.d.ts +0 -1
- package/src/components/ExtraMessage.d.ts +0 -1
- package/src/components/FaqLink/FaqLinkComponent.d.ts +0 -1
- package/src/components/FormFields/MarketConsentWrapper/MarketConsentWrapperComponent.d.ts +0 -1
- package/src/components/FormFields/OptIn/OptInComponent.d.ts +0 -1
- package/src/components/FormFields/PostalCode/PostalCodeComponent.d.ts +0 -1
- package/src/components/FormFooter/FormFooterComponent.d.ts +0 -1
- package/src/components/FormInputs/InputSelect/InputSelectButton/InputSelectButtonComponent.d.ts +0 -1
- package/src/components/FormInputs/InputSelect/InputSelectComponent.d.ts +0 -1
- package/src/components/FormInputs/InputSelect/InputSelectList/InputSelectListComponent.d.ts +0 -1
- package/src/components/FormInputs/OptInInput/OptInInputComponent.d.ts +0 -1
- package/src/components/FormInputs/Select/SelectButton/SelectButtonComponent.d.ts +0 -1
- package/src/components/FormInputs/Select/SelectComponent.d.ts +0 -1
- package/src/components/FormInputs/Select/SelectList/SelectListComponent.d.ts +0 -1
- package/src/components/FormInputs/Typeahead/TypeaheadComponent.d.ts +0 -1
- package/src/components/FormWrapper/FormWrapperComponent.d.ts +0 -1
- package/src/components/LoadStepComponent.d.ts +0 -1
- package/src/components/LoadingSpinner/LoadingSpinnerComponent.d.ts +0 -1
- package/src/components/LogoComponent/LogoComponent.d.ts +0 -1
- package/src/components/NewVerificationInnerComponent.d.ts +0 -1
- package/src/components/PoweredBy/PoweredByComponent.d.ts +0 -1
- package/src/components/RequestOrganization/NewRequestOrganizationComponent.d.ts +0 -1
- package/src/components/RequestOrganization/NewRequestOrganizationInnerComponent.d.ts +0 -1
- package/src/components/RequestOrganization/OrganizationResultComponent.d.ts +0 -1
- package/src/components/RequestOrganization/RequestOrganizationErrorComponent.d.ts +0 -1
- package/src/components/RequestOrganization/RequestOrganizationFormComponent.d.ts +0 -1
- package/src/components/RequestOrganization/RequestOrganizationFormFooterComponent.d.ts +0 -1
- package/src/components/RequestOrganization/RequestOrganizationLoadStepComponent.d.ts +0 -1
- package/src/components/RequestOrganization/RequestOrganizationSuccessComponent.d.ts +0 -1
- package/src/components/RequestOrganization/SearchFieldComponent.d.ts +0 -1
- package/src/components/RewardsRemaining/RewardsRemainingComponent.d.ts +0 -1
- package/src/components/ScreenReaderLabelComponent.d.ts +0 -1
- package/src/components/StepConsolation/StepConsolationComponent.d.ts +0 -1
- package/src/components/StepMemberPersonalInfo/StepMemberPersonalInfoComponent.d.ts +0 -1
- package/src/components/StepMilitaryPersonalInfo/StepCollectMilitaryStatusComponent.d.ts +0 -1
- package/src/components/StepPending/ReviewPendingComponent.d.ts +0 -1
- package/src/components/StepPending/SSOPendingComponent.d.ts +0 -1
- package/src/components/StepSSO/StepSSOComponent.d.ts +0 -1
- package/src/components/StepSocialSecurityNumber/SsnChoice.d.ts +0 -1
- package/src/components/StepStudentPersonalInfo/StepStudentPersonalInfoComponent.d.ts +0 -1
- package/src/components/StepSuccess/StepSuccessComponent.d.ts +0 -1
- package/src/components/StepTeacherPersonalInfo/StepTeacherPersonalInfoComponent.d.ts +0 -1
- package/src/components/TestModeFlag/TestModeFlagComponent.d.ts +0 -1
- package/src/components/TryAgainButtonComponent.d.ts +0 -1
- package/src/components/UploadInfoComponent/UploadInfoComponent.d.ts +0 -1
- package/src/constants.d.ts +0 -10
- package/src/lib/types/types.d.ts +1 -2
- package/src/lib/utils/customTagReplacer/index.d.ts +0 -1
- package/types-reference.zip +0 -0
- package/es6/de-074f4e20.es.js.map +0 -1
- package/es6/el-3f65cd3e.es.js +0 -963
- package/es6/el-3f65cd3e.es.js.map +0 -1
- package/es6/es-0b85cd1e.es.js.map +0 -1
- package/es6/fi-e9d2aa76.es.js.map +0 -1
- package/es6/fr-c29171e7.es.js.map +0 -1
- package/es6/ga-9f436ad1.es.js.map +0 -1
- package/es6/hr-98b6b845.es.js.map +0 -1
- package/es6/hu-c24b11a8.es.js.map +0 -1
- package/es6/id-7f3237d0.es.js.map +0 -1
- package/es6/it-ee9d3e4d.es.js.map +0 -1
- package/es6/iw-1105c657.es.js.map +0 -1
- package/es6/ja-5a7bda14.es.js.map +0 -1
- package/es6/ko-293bcc87.es.js.map +0 -1
- package/es6/lo-d4965434.es.js.map +0 -1
- package/es6/lt-1dd3f6bc.es.js.map +0 -1
- package/es6/ms-a2b49f0e.es.js.map +0 -1
- package/es6/nl-1c1caaa7.es.js.map +0 -1
- package/es6/no-6b809f77.es.js.map +0 -1
- package/es6/pl-d19254aa.es.js +0 -963
- package/es6/pl-d19254aa.es.js.map +0 -1
- package/es6/pt-6940ccd4.es.js.map +0 -1
- package/es6/ru-5a707928.es.js.map +0 -1
- package/es6/sk-89ce05be.es.js.map +0 -1
- package/es6/sl-31c230c2.es.js.map +0 -1
- package/es6/sr-b7ed8dda.es.js.map +0 -1
- package/es6/sv-62e472d2.es.js.map +0 -1
- package/es6/th-4b41f086.es.js.map +0 -1
- package/es6/tr-57f74930.es.js.map +0 -1
- package/es6/zh-077bb71f.es.js.map +0 -1
- package/es6/zh-HK-f0861267.es.js.map +0 -1
- package/src/components/FeatureFlags/flags.d.ts +0 -14
- package/src/components/FeatureFlags/hooks.d.ts +0 -3
package/sheerides6.js
CHANGED
|
@@ -13,10 +13,6 @@ function createCommonjsModule(fn, module) {
|
|
|
13
13
|
return module = { exports: {} }, fn(module, module.exports), module.exports;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
function getCjsExportFromNamespace (n) {
|
|
17
|
-
return n && n['default'] || n;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
16
|
var clone_1 = createCommonjsModule(function (module) {
|
|
21
17
|
var clone = (function() {
|
|
22
18
|
|
|
@@ -1563,7 +1559,7 @@ const getSheerIdScriptBasePath = () => {
|
|
|
1563
1559
|
};
|
|
1564
1560
|
|
|
1565
1561
|
const country = "country";
|
|
1566
|
-
const name
|
|
1562
|
+
const name = "name";
|
|
1567
1563
|
async function fetchProgramOrganizations(orgSearchUrl, searchTerm, countryCode, searchTags) {
|
|
1568
1564
|
if (!orgSearchUrl) {
|
|
1569
1565
|
return Promise.resolve([]);
|
|
@@ -1571,7 +1567,7 @@ async function fetchProgramOrganizations(orgSearchUrl, searchTerm, countryCode,
|
|
|
1571
1567
|
const searchUrl = new URL(orgSearchUrl);
|
|
1572
1568
|
const { origin, pathname, search } = searchUrl;
|
|
1573
1569
|
const searchParams = new URLSearchParams(search);
|
|
1574
|
-
searchParams.set(name
|
|
1570
|
+
searchParams.set(name, searchTerm);
|
|
1575
1571
|
if (countryCode) {
|
|
1576
1572
|
searchParams.set(country, countryCode);
|
|
1577
1573
|
}
|
|
@@ -2210,7 +2206,6 @@ var enUSMessages = {
|
|
|
2210
2206
|
"defaultMessages.locales.hr": "Croatian",
|
|
2211
2207
|
"defaultMessages.locales.hu": "Hungarian",
|
|
2212
2208
|
"defaultMessages.locales.id": "Indonesian",
|
|
2213
|
-
"defaultMessages.locales.in": "Indonesian",
|
|
2214
2209
|
"defaultMessages.locales.it": "Italian",
|
|
2215
2210
|
"defaultMessages.locales.iw": "Hebrew",
|
|
2216
2211
|
"defaultMessages.locales.ja": "Japanese",
|
|
@@ -2789,158 +2784,154 @@ const getMessagesModuleByLocale = async (locale) => {
|
|
|
2789
2784
|
switch (locale) {
|
|
2790
2785
|
case "ar":
|
|
2791
2786
|
localizedMessages = await import(
|
|
2792
|
-
/* webpackChunkName: "messages_ar" */ './es6/ar-
|
|
2787
|
+
/* webpackChunkName: "messages_ar" */ './es6/ar-98e99567.es.js').then((m) => m.default);
|
|
2793
2788
|
break;
|
|
2794
2789
|
case "bg":
|
|
2795
2790
|
localizedMessages = await import(
|
|
2796
|
-
/* webpackChunkName: "messages_bg" */ './es6/bg-
|
|
2791
|
+
/* webpackChunkName: "messages_bg" */ './es6/bg-702603e3.es.js').then((m) => m.default);
|
|
2797
2792
|
break;
|
|
2798
2793
|
case "cs":
|
|
2799
2794
|
localizedMessages = await import(
|
|
2800
|
-
/* webpackChunkName: "messages_cs" */ './es6/cs-
|
|
2795
|
+
/* webpackChunkName: "messages_cs" */ './es6/cs-a320d5e4.es.js').then((m) => m.default);
|
|
2801
2796
|
break;
|
|
2802
2797
|
case "da":
|
|
2803
2798
|
localizedMessages = await import(
|
|
2804
|
-
/* webpackChunkName: "messages_da" */ './es6/da-
|
|
2799
|
+
/* webpackChunkName: "messages_da" */ './es6/da-80c2454e.es.js').then((m) => m.default);
|
|
2805
2800
|
break;
|
|
2806
2801
|
case "de":
|
|
2807
2802
|
localizedMessages = await import(
|
|
2808
|
-
/* webpackChunkName: "messages_de" */ './es6/de-
|
|
2803
|
+
/* webpackChunkName: "messages_de" */ './es6/de-a2581478.es.js').then((m) => m.default);
|
|
2809
2804
|
break;
|
|
2810
2805
|
case "el":
|
|
2811
2806
|
localizedMessages = await import(
|
|
2812
|
-
/* webpackChunkName: "messages_el" */ './es6/el-
|
|
2807
|
+
/* webpackChunkName: "messages_el" */ './es6/el-325e1941.es.js').then((m) => m.default);
|
|
2813
2808
|
break;
|
|
2814
2809
|
case "en-GB":
|
|
2815
2810
|
localizedMessages = await import(
|
|
2816
|
-
/* webpackChunkName: "messages_en-GB" */ './es6/en-GB-
|
|
2811
|
+
/* webpackChunkName: "messages_en-GB" */ './es6/en-GB-e1441ff4.es.js').then((m) => m.default);
|
|
2817
2812
|
break;
|
|
2818
2813
|
case "en-US":
|
|
2819
2814
|
localizedMessages = enUSMessages;
|
|
2820
2815
|
break;
|
|
2821
2816
|
case "es-ES":
|
|
2822
2817
|
localizedMessages = await import(
|
|
2823
|
-
/* webpackChunkName: "messages_es-ES" */ './es6/es-ES-
|
|
2818
|
+
/* webpackChunkName: "messages_es-ES" */ './es6/es-ES-c34afa10.es.js').then((m) => m.default);
|
|
2824
2819
|
break;
|
|
2825
2820
|
case "es":
|
|
2826
2821
|
localizedMessages = await import(
|
|
2827
|
-
/* webpackChunkName: "messages_es" */ './es6/es-
|
|
2822
|
+
/* webpackChunkName: "messages_es" */ './es6/es-698c8234.es.js').then((m) => m.default);
|
|
2828
2823
|
break;
|
|
2829
2824
|
case "fi":
|
|
2830
2825
|
localizedMessages = await import(
|
|
2831
|
-
/* webpackChunkName: "messages_fi" */ './es6/fi-
|
|
2826
|
+
/* webpackChunkName: "messages_fi" */ './es6/fi-fae49b12.es.js').then((m) => m.default);
|
|
2832
2827
|
break;
|
|
2833
2828
|
case "fr-CA":
|
|
2834
2829
|
localizedMessages = await import(
|
|
2835
|
-
/* webpackChunkName: "messages_fr-CA" */ './es6/fr-CA-
|
|
2830
|
+
/* webpackChunkName: "messages_fr-CA" */ './es6/fr-CA-30c34f2e.es.js').then((m) => m.default);
|
|
2836
2831
|
break;
|
|
2837
2832
|
case "fr":
|
|
2838
2833
|
localizedMessages = await import(
|
|
2839
|
-
/* webpackChunkName: "messages_fr" */ './es6/fr-
|
|
2834
|
+
/* webpackChunkName: "messages_fr" */ './es6/fr-ff4242b1.es.js').then((m) => m.default);
|
|
2840
2835
|
break;
|
|
2841
2836
|
case "ga":
|
|
2842
2837
|
localizedMessages = await import(
|
|
2843
|
-
/* webpackChunkName: "messages_ga" */ './es6/ga-
|
|
2838
|
+
/* webpackChunkName: "messages_ga" */ './es6/ga-d0e2aa7b.es.js').then((m) => m.default);
|
|
2844
2839
|
break;
|
|
2845
2840
|
case "hr":
|
|
2846
2841
|
localizedMessages = await import(
|
|
2847
|
-
/* webpackChunkName: "messages_hr" */ './es6/hr-
|
|
2842
|
+
/* webpackChunkName: "messages_hr" */ './es6/hr-27eaee7a.es.js').then((m) => m.default);
|
|
2848
2843
|
break;
|
|
2849
2844
|
case "hu":
|
|
2850
2845
|
localizedMessages = await import(
|
|
2851
|
-
/* webpackChunkName: "messages_hu" */ './es6/hu-
|
|
2846
|
+
/* webpackChunkName: "messages_hu" */ './es6/hu-e3664793.es.js').then((m) => m.default);
|
|
2852
2847
|
break;
|
|
2853
2848
|
case "id":
|
|
2854
2849
|
localizedMessages = await import(
|
|
2855
|
-
/* webpackChunkName: "messages_id" */ './es6/id-
|
|
2856
|
-
break;
|
|
2857
|
-
case "in":
|
|
2858
|
-
localizedMessages = await import(
|
|
2859
|
-
/* webpackChunkName: "messages_in" */ './es6/id-7f3237d0.es.js').then((m) => m.default);
|
|
2850
|
+
/* webpackChunkName: "messages_id" */ './es6/id-213d6401.es.js').then((m) => m.default);
|
|
2860
2851
|
break;
|
|
2861
2852
|
case "it":
|
|
2862
2853
|
localizedMessages = await import(
|
|
2863
|
-
/* webpackChunkName: "messages_it" */ './es6/it-
|
|
2854
|
+
/* webpackChunkName: "messages_it" */ './es6/it-6826ae41.es.js').then((m) => m.default);
|
|
2864
2855
|
break;
|
|
2865
2856
|
case "iw":
|
|
2866
2857
|
localizedMessages = await import(
|
|
2867
|
-
/* webpackChunkName: "messages_iw" */ './es6/iw-
|
|
2858
|
+
/* webpackChunkName: "messages_iw" */ './es6/iw-aa79df21.es.js').then((m) => m.default);
|
|
2868
2859
|
break;
|
|
2869
2860
|
case "ja":
|
|
2870
2861
|
localizedMessages = await import(
|
|
2871
|
-
/* webpackChunkName: "messages_ja" */ './es6/ja-
|
|
2862
|
+
/* webpackChunkName: "messages_ja" */ './es6/ja-7463abcc.es.js').then((m) => m.default);
|
|
2872
2863
|
break;
|
|
2873
2864
|
case "ko":
|
|
2874
2865
|
localizedMessages = await import(
|
|
2875
|
-
/* webpackChunkName: "messages_ko" */ './es6/ko-
|
|
2866
|
+
/* webpackChunkName: "messages_ko" */ './es6/ko-a6c7728b.es.js').then((m) => m.default);
|
|
2876
2867
|
break;
|
|
2877
2868
|
case "lo":
|
|
2878
2869
|
localizedMessages = await import(
|
|
2879
|
-
/* webpackChunkName: "messages_lo" */ './es6/lo-
|
|
2870
|
+
/* webpackChunkName: "messages_lo" */ './es6/lo-9170ac48.es.js').then((m) => m.default);
|
|
2880
2871
|
break;
|
|
2881
2872
|
case "lt":
|
|
2882
2873
|
localizedMessages = await import(
|
|
2883
|
-
/* webpackChunkName: "messages_lt" */ './es6/lt-
|
|
2874
|
+
/* webpackChunkName: "messages_lt" */ './es6/lt-5ab878c1.es.js').then((m) => m.default);
|
|
2884
2875
|
break;
|
|
2885
2876
|
case "ms":
|
|
2886
2877
|
localizedMessages = await import(
|
|
2887
|
-
/* webpackChunkName: "messages_ms" */ './es6/ms-
|
|
2878
|
+
/* webpackChunkName: "messages_ms" */ './es6/ms-8029472e.es.js').then((m) => m.default);
|
|
2888
2879
|
break;
|
|
2889
2880
|
case "nl":
|
|
2890
2881
|
localizedMessages = await import(
|
|
2891
|
-
/* webpackChunkName: "messages_nl" */ './es6/nl-
|
|
2882
|
+
/* webpackChunkName: "messages_nl" */ './es6/nl-577f06ab.es.js').then((m) => m.default);
|
|
2892
2883
|
break;
|
|
2893
2884
|
case "no":
|
|
2894
2885
|
localizedMessages = await import(
|
|
2895
|
-
/* webpackChunkName: "messages_no" */ './es6/no-
|
|
2886
|
+
/* webpackChunkName: "messages_no" */ './es6/no-2cbcceb9.es.js').then((m) => m.default);
|
|
2896
2887
|
break;
|
|
2897
2888
|
case "pl":
|
|
2898
2889
|
localizedMessages = await import(
|
|
2899
|
-
/* webpackChunkName: "messages_pl" */ './es6/pl-
|
|
2890
|
+
/* webpackChunkName: "messages_pl" */ './es6/pl-54311695.es.js').then((m) => m.default);
|
|
2900
2891
|
break;
|
|
2901
2892
|
case "pt-BR":
|
|
2902
2893
|
localizedMessages = await import(
|
|
2903
|
-
/* webpackChunkName: "messages_pt-BR" */ './es6/pt-BR-
|
|
2894
|
+
/* webpackChunkName: "messages_pt-BR" */ './es6/pt-BR-a0ceb834.es.js').then((m) => m.default);
|
|
2904
2895
|
break;
|
|
2905
2896
|
case "pt":
|
|
2906
2897
|
localizedMessages = await import(
|
|
2907
|
-
/* webpackChunkName: "messages_pt" */ './es6/pt-
|
|
2898
|
+
/* webpackChunkName: "messages_pt" */ './es6/pt-279ac8bf.es.js').then((m) => m.default);
|
|
2908
2899
|
break;
|
|
2909
2900
|
case "ru":
|
|
2910
2901
|
localizedMessages = await import(
|
|
2911
|
-
/* webpackChunkName: "messages_ru" */ './es6/ru-
|
|
2902
|
+
/* webpackChunkName: "messages_ru" */ './es6/ru-a8b852f4.es.js').then((m) => m.default);
|
|
2912
2903
|
break;
|
|
2913
2904
|
case "sk":
|
|
2914
2905
|
localizedMessages = await import(
|
|
2915
|
-
/* webpackChunkName: "messages_sk" */ './es6/sk-
|
|
2906
|
+
/* webpackChunkName: "messages_sk" */ './es6/sk-ec9866bc.es.js').then((m) => m.default);
|
|
2916
2907
|
break;
|
|
2917
2908
|
case "sl":
|
|
2918
2909
|
localizedMessages = await import(
|
|
2919
|
-
/* webpackChunkName: "messages_sl" */ './es6/sl-
|
|
2910
|
+
/* webpackChunkName: "messages_sl" */ './es6/sl-de83f81c.es.js').then((m) => m.default);
|
|
2920
2911
|
break;
|
|
2921
2912
|
case "sr":
|
|
2922
2913
|
localizedMessages = await import(
|
|
2923
|
-
/* webpackChunkName: "messages_sr" */ './es6/sr-
|
|
2914
|
+
/* webpackChunkName: "messages_sr" */ './es6/sr-eddec6ba.es.js').then((m) => m.default);
|
|
2924
2915
|
break;
|
|
2925
2916
|
case "sv":
|
|
2926
2917
|
localizedMessages = await import(
|
|
2927
|
-
/* webpackChunkName: "messages_sv" */ './es6/sv-
|
|
2918
|
+
/* webpackChunkName: "messages_sv" */ './es6/sv-4573019f.es.js').then((m) => m.default);
|
|
2928
2919
|
break;
|
|
2929
2920
|
case "th":
|
|
2930
2921
|
localizedMessages = await import(
|
|
2931
|
-
/* webpackChunkName: "messages_th" */ './es6/th-
|
|
2922
|
+
/* webpackChunkName: "messages_th" */ './es6/th-359b065f.es.js').then((m) => m.default);
|
|
2932
2923
|
break;
|
|
2933
2924
|
case "tr":
|
|
2934
2925
|
localizedMessages = await import(
|
|
2935
|
-
/* webpackChunkName: "messages_tr" */ './es6/tr-
|
|
2926
|
+
/* webpackChunkName: "messages_tr" */ './es6/tr-3b0f2171.es.js').then((m) => m.default);
|
|
2936
2927
|
break;
|
|
2937
2928
|
case "zh-HK":
|
|
2938
2929
|
localizedMessages = await import(
|
|
2939
|
-
/* webpackChunkName: "messages_zh-HK" */ './es6/zh-HK-
|
|
2930
|
+
/* webpackChunkName: "messages_zh-HK" */ './es6/zh-HK-c1588b0f.es.js').then((m) => m.default);
|
|
2940
2931
|
break;
|
|
2941
2932
|
case "zh":
|
|
2942
2933
|
localizedMessages = await import(
|
|
2943
|
-
/* webpackChunkName: "messages_zh" */ './es6/zh-
|
|
2934
|
+
/* webpackChunkName: "messages_zh" */ './es6/zh-56631a55.es.js').then((m) => m.default);
|
|
2944
2935
|
break;
|
|
2945
2936
|
default:
|
|
2946
2937
|
logger.warn(`getMessagesModuleByLocale: Unable to load messages for ${locale}, falling back to en-US`);
|
|
@@ -3745,7 +3736,7 @@ const getEmptyRequestOrganizationViewModel = () => {
|
|
|
3745
3736
|
return requestOrganizationEmptyClone;
|
|
3746
3737
|
};
|
|
3747
3738
|
|
|
3748
|
-
function n$6(n){for(var t=arguments.length,r=Array(t>1?t-1:0),e=1;e<t;e++)r[e-1]=arguments[e];if("production"!==process.env.NODE_ENV){var i=Y$1[n],o=i?"function"==typeof i?i.apply(null,r):i:"unknown error nr: "+n;throw Error("[Immer] "+o)}throw Error("[Immer] minified error nr: "+n+(r.length?" "+r.map((function(n){return "'"+n+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function t$5(n){return !!n&&!!n[Q$1]}function r$6(n){return !!n&&(function(n){if(!n||"object"!=typeof n)return !1;var t=Object.getPrototypeOf(n);if(null===t)return !0;var r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object||"function"==typeof r&&Function.toString.call(r)===Z$1}(n)||Array.isArray(n)||!!n[L$1]||!!n.constructor[L$1]||s$1(n)||v$5(n))}function i$1(n,t,r){void 0===r&&(r=!1),0===o$1(n)?(r?Object.keys:nn)(n).forEach((function(e){r&&"symbol"==typeof e||t(e,n[e],n);})):n.forEach((function(r,e){return t(e,r,n)}));}function o$1(n){var t=n[Q$1];return t?t.i>3?t.i-4:t.i:Array.isArray(n)?1:s$1(n)?2:v$5(n)?3:0}function u$2(n,t){return 2===o$1(n)?n.has(t):Object.prototype.hasOwnProperty.call(n,t)}function a$1(n,t){return 2===o$1(n)?n.get(t):n[t]}function f$5(n,t,r){var e=o$1(n);2===e?n.set(t,r):3===e?(n.delete(t),n.add(r)):n[t]=r;}function c$5(n,t){return n===t?0!==n||1/n==1/t:n!=n&&t!=t}function s$1(n){return X$1&&n instanceof Map}function v$5(n){return q$5&&n instanceof Set}function p$5(n){return n.o||n.t}function l$5(n){if(Array.isArray(n))return Array.prototype.slice.call(n);var t=tn(n);delete t[Q$1];for(var r=nn(t),e=0;e<r.length;e++){var i=r[e],o=t[i];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:n[i]});}return Object.create(Object.getPrototypeOf(n),t)}function d$5(n,e){return void 0===e&&(e=!1),y$5(n)||t$5(n)||!r$6(n)?n:(o$1(n)>1&&(n.set=n.add=n.clear=n.delete=h$5),Object.freeze(n),e&&i$1(n,(function(n,t){return d$5(t,!0)}),!0),n)}function h$5(){n$6(2);}function y$5(n){return null==n||"object"!=typeof n||Object.isFrozen(n)}function b$5(t){var r=rn[t];return r||n$6(18,t),r}function m$5(n,t){rn[n]||(rn[n]=t);}function _$1(){return "production"===process.env.NODE_ENV||U$1||n$6(0),U$1}function j$1(n,t){t&&(b$5("Patches"),n.u=[],n.s=[],n.v=t);}function O$1(n){g$5(n),n.p.forEach(S$1),n.p=null;}function g$5(n){n===U$1&&(U$1=n.l);}function w$5(n){return U$1={p:[],l:U$1,h:n,m:!0,_:0}}function S$1(n){var t=n[Q$1];0===t.i||1===t.i?t.j():t.O=!0;}function P$1(t,e){e._=e.p.length;var i=e.p[0],o=void 0!==t&&t!==i;return e.h.g||b$5("ES5").S(e,t,o),o?(i[Q$1].P&&(O$1(e),n$6(4)),r$6(t)&&(t=M$1(e,t),e.l||x$5(e,t)),e.u&&b$5("Patches").M(i[Q$1],t,e.u,e.s)):t=M$1(e,i,[]),O$1(e),e.u&&e.v(e.u,e.s),t!==H$2?t:void 0}function M$1(n,t,r){if(y$5(t))return t;var e=t[Q$1];if(!e)return i$1(t,(function(i,o){return A$5(n,e,t,i,o,r)}),!0),t;if(e.A!==n)return t;if(!e.P)return x$5(n,e.t,!0),e.t;if(!e.I){e.I=!0,e.A._--;var o=4===e.i||5===e.i?e.o=l$5(e.k):e.o;i$1(3===e.i?new Set(o):o,(function(t,i){return A$5(n,e,o,t,i,r)})),x$5(n,o,!1),r&&n.u&&b$5("Patches").R(e,r,n.u,n.s);}return e.o}function A$5(e,i,o,a,c,s){if("production"!==process.env.NODE_ENV&&c===o&&n$6(5),t$5(c)){var v=M$1(e,c,s&&i&&3!==i.i&&!u$2(i.D,a)?s.concat(a):void 0);if(f$5(o,a,v),!t$5(v))return;e.m=!1;}if(r$6(c)&&!y$5(c)){if(!e.h.F&&e._<1)return;M$1(e,c),i&&i.A.l||x$5(e,c);}}function x$5(n,t,r){void 0===r&&(r=!1),n.h.F&&n.m&&d$5(t,r);}function z$5(n,t){var r=n[Q$1];return (r?p$5(r):n)[t]}function I$2(n,t){if(t in n)for(var r=Object.getPrototypeOf(n);r;){var e=Object.getOwnPropertyDescriptor(r,t);if(e)return e;r=Object.getPrototypeOf(r);}}function k$5(n){n.P||(n.P=!0,n.l&&k$5(n.l));}function E$2(n){n.o||(n.o=l$5(n.t));}function R$1(n,t,r){var e=s$1(t)?b$5("MapSet").N(t,r):v$5(t)?b$5("MapSet").T(t,r):n.g?function(n,t){var r=Array.isArray(n),e={i:r?1:0,A:t?t.A:_$1(),P:!1,I:!1,D:{},l:t,t:n,k:null,o:null,j:null,C:!1},i=e,o=en;r&&(i=[e],o=on);var u=Proxy.revocable(i,o),a=u.revoke,f=u.proxy;return e.k=f,e.j=a,f}(t,r):b$5("ES5").J(t,r);return (r?r.A:_$1()).p.push(e),e}function D$2(e){return t$5(e)||n$6(22,e),function n(t){if(!r$6(t))return t;var e,u=t[Q$1],c=o$1(t);if(u){if(!u.P&&(u.i<4||!b$5("ES5").K(u)))return u.t;u.I=!0,e=F$2(t,c),u.I=!1;}else e=F$2(t,c);return i$1(e,(function(t,r){u&&a$1(u.t,t)===r||f$5(e,t,n(r));})),3===c?new Set(e):e}(e)}function F$2(n,t){switch(t){case 2:return new Map(n);case 3:return Array.from(n)}return l$5(n)}function N$1(){function r(n,t){var r=s[n];return r?r.enumerable=t:s[n]=r={configurable:!0,enumerable:t,get:function(){var t=this[Q$1];return "production"!==process.env.NODE_ENV&&f(t),en.get(t,n)},set:function(t){var r=this[Q$1];"production"!==process.env.NODE_ENV&&f(r),en.set(r,n,t);}},r}function e(n){for(var t=n.length-1;t>=0;t--){var r=n[t][Q$1];if(!r.P)switch(r.i){case 5:a(r)&&k$5(r);break;case 4:o(r)&&k$5(r);}}}function o(n){for(var t=n.t,r=n.k,e=nn(r),i=e.length-1;i>=0;i--){var o=e[i];if(o!==Q$1){var a=t[o];if(void 0===a&&!u$2(t,o))return !0;var f=r[o],s=f&&f[Q$1];if(s?s.t!==a:!c$5(f,a))return !0}}var v=!!t[Q$1];return e.length!==nn(t).length+(v?0:1)}function a(n){var t=n.k;if(t.length!==n.t.length)return !0;var r=Object.getOwnPropertyDescriptor(t,t.length-1);return !(!r||r.get)}function f(t){t.O&&n$6(3,JSON.stringify(p$5(t)));}var s={};m$5("ES5",{J:function(n,t){var e=Array.isArray(n),i=function(n,t){if(n){for(var e=Array(t.length),i=0;i<t.length;i++)Object.defineProperty(e,""+i,r(i,!0));return e}var o=tn(t);delete o[Q$1];for(var u=nn(o),a=0;a<u.length;a++){var f=u[a];o[f]=r(f,n||!!o[f].enumerable);}return Object.create(Object.getPrototypeOf(t),o)}(e,n),o={i:e?5:4,A:t?t.A:_$1(),P:!1,I:!1,D:{},l:t,t:n,k:i,o:null,O:!1,C:!1};return Object.defineProperty(i,Q$1,{value:o,writable:!0}),i},S:function(n,r,o){o?t$5(r)&&r[Q$1].A===n&&e(n.p):(n.u&&function n(t){if(t&&"object"==typeof t){var r=t[Q$1];if(r){var e=r.t,o=r.k,f=r.D,c=r.i;if(4===c)i$1(o,(function(t){t!==Q$1&&(void 0!==e[t]||u$2(e,t)?f[t]||n(o[t]):(f[t]=!0,k$5(r)));})),i$1(e,(function(n){void 0!==o[n]||u$2(o,n)||(f[n]=!1,k$5(r));}));else if(5===c){if(a(r)&&(k$5(r),f.length=!0),o.length<e.length)for(var s=o.length;s<e.length;s++)f[s]=!1;else for(var v=e.length;v<o.length;v++)f[v]=!0;for(var p=Math.min(o.length,e.length),l=0;l<p;l++)void 0===f[l]&&n(o[l]);}}}}(n.p[0]),e(n.p));},K:function(n){return 4===n.i?o(n):a(n)}});}var G$2,U$1,W$1="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),X$1="undefined"!=typeof Map,q$5="undefined"!=typeof Set,B$2="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,H$2=W$1?Symbol.for("immer-nothing"):((G$2={})["immer-nothing"]=!0,G$2),L$1=W$1?Symbol.for("immer-draftable"):"__$immer_draftable",Q$1=W$1?Symbol.for("immer-state"):"__$immer_state",Y$1={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(n){return "Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+n},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(n){return "Cannot apply patch, path doesn't resolve: "+n},16:'Sets cannot have "replace" patches.',17:function(n){return "Unsupported patch operation: "+n},18:function(n){return "The plugin for '"+n+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+n+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(n){return "produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+n+"'"},22:function(n){return "'current' expects a draft, got: "+n},23:function(n){return "'original' expects a draft, got: "+n},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},Z$1=""+Object.prototype.constructor,nn="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(n){return Object.getOwnPropertyNames(n).concat(Object.getOwnPropertySymbols(n))}:Object.getOwnPropertyNames,tn=Object.getOwnPropertyDescriptors||function(n){var t={};return nn(n).forEach((function(r){t[r]=Object.getOwnPropertyDescriptor(n,r);})),t},rn={},en={get:function(n,t){if(t===Q$1)return n;var e=p$5(n);if(!u$2(e,t))return function(n,t,r){var e,i=I$2(t,r);return i?"value"in i?i.value:null===(e=i.get)||void 0===e?void 0:e.call(n.k):void 0}(n,e,t);var i=e[t];return n.I||!r$6(i)?i:i===z$5(n.t,t)?(E$2(n),n.o[t]=R$1(n.A.h,i,n)):i},has:function(n,t){return t in p$5(n)},ownKeys:function(n){return Reflect.ownKeys(p$5(n))},set:function(n,t,r){var e=I$2(p$5(n),t);if(null==e?void 0:e.set)return e.set.call(n.k,r),!0;if(!n.P){var i=z$5(p$5(n),t),o=null==i?void 0:i[Q$1];if(o&&o.t===r)return n.o[t]=r,n.D[t]=!1,!0;if(c$5(r,i)&&(void 0!==r||u$2(n.t,t)))return !0;E$2(n),k$5(n);}return n.o[t]===r&&"number"!=typeof r&&(void 0!==r||t in n.o)||(n.o[t]=r,n.D[t]=!0,!0)},deleteProperty:function(n,t){return void 0!==z$5(n.t,t)||t in n.t?(n.D[t]=!1,E$2(n),k$5(n)):delete n.D[t],n.o&&delete n.o[t],!0},getOwnPropertyDescriptor:function(n,t){var r=p$5(n),e=Reflect.getOwnPropertyDescriptor(r,t);return e?{writable:!0,configurable:1!==n.i||"length"!==t,enumerable:e.enumerable,value:r[t]}:e},defineProperty:function(){n$6(11);},getPrototypeOf:function(n){return Object.getPrototypeOf(n.t)},setPrototypeOf:function(){n$6(12);}},on={};i$1(en,(function(n,t){on[n]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)};})),on.deleteProperty=function(t,r){return "production"!==process.env.NODE_ENV&&isNaN(parseInt(r))&&n$6(13),en.deleteProperty.call(this,t[0],r)},on.set=function(t,r,e){return "production"!==process.env.NODE_ENV&&"length"!==r&&isNaN(parseInt(r))&&n$6(14),en.set.call(this,t[0],r,e,t[0])};var un=function(){function e(t){var e=this;this.g=B$2,this.F=!0,this.produce=function(t,i,o){if("function"==typeof t&&"function"!=typeof i){var u=i;i=t;var a=e;return function(n){var t=this;void 0===n&&(n=u);for(var r=arguments.length,e=Array(r>1?r-1:0),o=1;o<r;o++)e[o-1]=arguments[o];return a.produce(n,(function(n){var r;return (r=i).call.apply(r,[t,n].concat(e))}))}}var f;if("function"!=typeof i&&n$6(6),void 0!==o&&"function"!=typeof o&&n$6(7),r$6(t)){var c=w$5(e),s=R$1(e,t,void 0),v=!0;try{f=i(s),v=!1;}finally{v?O$1(c):g$5(c);}return "undefined"!=typeof Promise&&f instanceof Promise?f.then((function(n){return j$1(c,o),P$1(n,c)}),(function(n){throw O$1(c),n})):(j$1(c,o),P$1(f,c))}if(!t||"object"!=typeof t){if((f=i(t))===H$2)return;return void 0===f&&(f=t),e.F&&d$5(f,!0),f}n$6(21,t);},this.produceWithPatches=function(n,t){return "function"==typeof n?function(t){for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return e.produceWithPatches(t,(function(t){return n.apply(void 0,[t].concat(i))}))}:[e.produce(n,t,(function(n,t){r=n,i=t;})),r,i];var r,i;},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze);}var i=e.prototype;return i.createDraft=function(e){r$6(e)||n$6(8),t$5(e)&&(e=D$2(e));var i=w$5(this),o=R$1(this,e,void 0);return o[Q$1].C=!0,g$5(i),o},i.finishDraft=function(t,r){var e=t&&t[Q$1];"production"!==process.env.NODE_ENV&&(e&&e.C||n$6(9),e.I&&n$6(10));var i=e.A;return j$1(i,r),P$1(void 0,i)},i.setAutoFreeze=function(n){this.F=n;},i.setUseProxies=function(t){t&&!B$2&&n$6(20),this.g=t;},i.applyPatches=function(n,r){var e;for(e=r.length-1;e>=0;e--){var i=r[e];if(0===i.path.length&&"replace"===i.op){n=i.value;break}}var o=b$5("Patches").$;return t$5(n)?o(n,r):this.produce(n,(function(n){return o(n,r.slice(e+1))}))},e}(),an=new un,fn=an.produce;an.produceWithPatches.bind(an);an.setAutoFreeze.bind(an);an.setUseProxies.bind(an);an.applyPatches.bind(an);an.createDraft.bind(an);an.finishDraft.bind(an);
|
|
3739
|
+
function n$5(n){for(var t=arguments.length,r=Array(t>1?t-1:0),e=1;e<t;e++)r[e-1]=arguments[e];if("production"!==process.env.NODE_ENV){var i=Y[n],o=i?"function"==typeof i?i.apply(null,r):i:"unknown error nr: "+n;throw Error("[Immer] "+o)}throw Error("[Immer] minified error nr: "+n+(r.length?" "+r.map((function(n){return "'"+n+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function t$4(n){return !!n&&!!n[Q]}function r$5(n){return !!n&&(function(n){if(!n||"object"!=typeof n)return !1;var t=Object.getPrototypeOf(n);if(null===t)return !0;var r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object||"function"==typeof r&&Function.toString.call(r)===Z}(n)||Array.isArray(n)||!!n[L]||!!n.constructor[L]||s(n)||v$4(n))}function i(n,t,r){void 0===r&&(r=!1),0===o(n)?(r?Object.keys:nn)(n).forEach((function(e){r&&"symbol"==typeof e||t(e,n[e],n);})):n.forEach((function(r,e){return t(e,r,n)}));}function o(n){var t=n[Q];return t?t.i>3?t.i-4:t.i:Array.isArray(n)?1:s(n)?2:v$4(n)?3:0}function u$1(n,t){return 2===o(n)?n.has(t):Object.prototype.hasOwnProperty.call(n,t)}function a(n,t){return 2===o(n)?n.get(t):n[t]}function f$4(n,t,r){var e=o(n);2===e?n.set(t,r):3===e?(n.delete(t),n.add(r)):n[t]=r;}function c$4(n,t){return n===t?0!==n||1/n==1/t:n!=n&&t!=t}function s(n){return X&&n instanceof Map}function v$4(n){return q$4&&n instanceof Set}function p$4(n){return n.o||n.t}function l$4(n){if(Array.isArray(n))return Array.prototype.slice.call(n);var t=tn(n);delete t[Q];for(var r=nn(t),e=0;e<r.length;e++){var i=r[e],o=t[i];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:n[i]});}return Object.create(Object.getPrototypeOf(n),t)}function d$4(n,e){return void 0===e&&(e=!1),y$4(n)||t$4(n)||!r$5(n)?n:(o(n)>1&&(n.set=n.add=n.clear=n.delete=h$4),Object.freeze(n),e&&i(n,(function(n,t){return d$4(t,!0)}),!0),n)}function h$4(){n$5(2);}function y$4(n){return null==n||"object"!=typeof n||Object.isFrozen(n)}function b$4(t){var r=rn[t];return r||n$5(18,t),r}function m$4(n,t){rn[n]||(rn[n]=t);}function _(){return "production"===process.env.NODE_ENV||U||n$5(0),U}function j(n,t){t&&(b$4("Patches"),n.u=[],n.s=[],n.v=t);}function O(n){g$4(n),n.p.forEach(S),n.p=null;}function g$4(n){n===U&&(U=n.l);}function w$4(n){return U={p:[],l:U,h:n,m:!0,_:0}}function S(n){var t=n[Q];0===t.i||1===t.i?t.j():t.O=!0;}function P(t,e){e._=e.p.length;var i=e.p[0],o=void 0!==t&&t!==i;return e.h.g||b$4("ES5").S(e,t,o),o?(i[Q].P&&(O(e),n$5(4)),r$5(t)&&(t=M(e,t),e.l||x$4(e,t)),e.u&&b$4("Patches").M(i[Q],t,e.u,e.s)):t=M(e,i,[]),O(e),e.u&&e.v(e.u,e.s),t!==H$1?t:void 0}function M(n,t,r){if(y$4(t))return t;var e=t[Q];if(!e)return i(t,(function(i,o){return A$4(n,e,t,i,o,r)}),!0),t;if(e.A!==n)return t;if(!e.P)return x$4(n,e.t,!0),e.t;if(!e.I){e.I=!0,e.A._--;var o=4===e.i||5===e.i?e.o=l$4(e.k):e.o;i(3===e.i?new Set(o):o,(function(t,i){return A$4(n,e,o,t,i,r)})),x$4(n,o,!1),r&&n.u&&b$4("Patches").R(e,r,n.u,n.s);}return e.o}function A$4(e,i,o,a,c,s){if("production"!==process.env.NODE_ENV&&c===o&&n$5(5),t$4(c)){var v=M(e,c,s&&i&&3!==i.i&&!u$1(i.D,a)?s.concat(a):void 0);if(f$4(o,a,v),!t$4(v))return;e.m=!1;}if(r$5(c)&&!y$4(c)){if(!e.h.F&&e._<1)return;M(e,c),i&&i.A.l||x$4(e,c);}}function x$4(n,t,r){void 0===r&&(r=!1),n.h.F&&n.m&&d$4(t,r);}function z$4(n,t){var r=n[Q];return (r?p$4(r):n)[t]}function I$1(n,t){if(t in n)for(var r=Object.getPrototypeOf(n);r;){var e=Object.getOwnPropertyDescriptor(r,t);if(e)return e;r=Object.getPrototypeOf(r);}}function k$4(n){n.P||(n.P=!0,n.l&&k$4(n.l));}function E$1(n){n.o||(n.o=l$4(n.t));}function R(n,t,r){var e=s(t)?b$4("MapSet").N(t,r):v$4(t)?b$4("MapSet").T(t,r):n.g?function(n,t){var r=Array.isArray(n),e={i:r?1:0,A:t?t.A:_(),P:!1,I:!1,D:{},l:t,t:n,k:null,o:null,j:null,C:!1},i=e,o=en;r&&(i=[e],o=on);var u=Proxy.revocable(i,o),a=u.revoke,f=u.proxy;return e.k=f,e.j=a,f}(t,r):b$4("ES5").J(t,r);return (r?r.A:_()).p.push(e),e}function D$1(e){return t$4(e)||n$5(22,e),function n(t){if(!r$5(t))return t;var e,u=t[Q],c=o(t);if(u){if(!u.P&&(u.i<4||!b$4("ES5").K(u)))return u.t;u.I=!0,e=F$1(t,c),u.I=!1;}else e=F$1(t,c);return i(e,(function(t,r){u&&a(u.t,t)===r||f$4(e,t,n(r));})),3===c?new Set(e):e}(e)}function F$1(n,t){switch(t){case 2:return new Map(n);case 3:return Array.from(n)}return l$4(n)}function N(){function r(n,t){var r=s[n];return r?r.enumerable=t:s[n]=r={configurable:!0,enumerable:t,get:function(){var t=this[Q];return "production"!==process.env.NODE_ENV&&f(t),en.get(t,n)},set:function(t){var r=this[Q];"production"!==process.env.NODE_ENV&&f(r),en.set(r,n,t);}},r}function e(n){for(var t=n.length-1;t>=0;t--){var r=n[t][Q];if(!r.P)switch(r.i){case 5:a(r)&&k$4(r);break;case 4:o(r)&&k$4(r);}}}function o(n){for(var t=n.t,r=n.k,e=nn(r),i=e.length-1;i>=0;i--){var o=e[i];if(o!==Q){var a=t[o];if(void 0===a&&!u$1(t,o))return !0;var f=r[o],s=f&&f[Q];if(s?s.t!==a:!c$4(f,a))return !0}}var v=!!t[Q];return e.length!==nn(t).length+(v?0:1)}function a(n){var t=n.k;if(t.length!==n.t.length)return !0;var r=Object.getOwnPropertyDescriptor(t,t.length-1);return !(!r||r.get)}function f(t){t.O&&n$5(3,JSON.stringify(p$4(t)));}var s={};m$4("ES5",{J:function(n,t){var e=Array.isArray(n),i=function(n,t){if(n){for(var e=Array(t.length),i=0;i<t.length;i++)Object.defineProperty(e,""+i,r(i,!0));return e}var o=tn(t);delete o[Q];for(var u=nn(o),a=0;a<u.length;a++){var f=u[a];o[f]=r(f,n||!!o[f].enumerable);}return Object.create(Object.getPrototypeOf(t),o)}(e,n),o={i:e?5:4,A:t?t.A:_(),P:!1,I:!1,D:{},l:t,t:n,k:i,o:null,O:!1,C:!1};return Object.defineProperty(i,Q,{value:o,writable:!0}),i},S:function(n,r,o){o?t$4(r)&&r[Q].A===n&&e(n.p):(n.u&&function n(t){if(t&&"object"==typeof t){var r=t[Q];if(r){var e=r.t,o=r.k,f=r.D,c=r.i;if(4===c)i(o,(function(t){t!==Q&&(void 0!==e[t]||u$1(e,t)?f[t]||n(o[t]):(f[t]=!0,k$4(r)));})),i(e,(function(n){void 0!==o[n]||u$1(o,n)||(f[n]=!1,k$4(r));}));else if(5===c){if(a(r)&&(k$4(r),f.length=!0),o.length<e.length)for(var s=o.length;s<e.length;s++)f[s]=!1;else for(var v=e.length;v<o.length;v++)f[v]=!0;for(var p=Math.min(o.length,e.length),l=0;l<p;l++)void 0===f[l]&&n(o[l]);}}}}(n.p[0]),e(n.p));},K:function(n){return 4===n.i?o(n):a(n)}});}var G$1,U,W="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),X="undefined"!=typeof Map,q$4="undefined"!=typeof Set,B$1="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,H$1=W?Symbol.for("immer-nothing"):((G$1={})["immer-nothing"]=!0,G$1),L=W?Symbol.for("immer-draftable"):"__$immer_draftable",Q=W?Symbol.for("immer-state"):"__$immer_state",Y={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(n){return "Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+n},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(n){return "Cannot apply patch, path doesn't resolve: "+n},16:'Sets cannot have "replace" patches.',17:function(n){return "Unsupported patch operation: "+n},18:function(n){return "The plugin for '"+n+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+n+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(n){return "produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+n+"'"},22:function(n){return "'current' expects a draft, got: "+n},23:function(n){return "'original' expects a draft, got: "+n},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},Z=""+Object.prototype.constructor,nn="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(n){return Object.getOwnPropertyNames(n).concat(Object.getOwnPropertySymbols(n))}:Object.getOwnPropertyNames,tn=Object.getOwnPropertyDescriptors||function(n){var t={};return nn(n).forEach((function(r){t[r]=Object.getOwnPropertyDescriptor(n,r);})),t},rn={},en={get:function(n,t){if(t===Q)return n;var e=p$4(n);if(!u$1(e,t))return function(n,t,r){var e,i=I$1(t,r);return i?"value"in i?i.value:null===(e=i.get)||void 0===e?void 0:e.call(n.k):void 0}(n,e,t);var i=e[t];return n.I||!r$5(i)?i:i===z$4(n.t,t)?(E$1(n),n.o[t]=R(n.A.h,i,n)):i},has:function(n,t){return t in p$4(n)},ownKeys:function(n){return Reflect.ownKeys(p$4(n))},set:function(n,t,r){var e=I$1(p$4(n),t);if(null==e?void 0:e.set)return e.set.call(n.k,r),!0;if(!n.P){var i=z$4(p$4(n),t),o=null==i?void 0:i[Q];if(o&&o.t===r)return n.o[t]=r,n.D[t]=!1,!0;if(c$4(r,i)&&(void 0!==r||u$1(n.t,t)))return !0;E$1(n),k$4(n);}return n.o[t]===r&&"number"!=typeof r&&(void 0!==r||t in n.o)||(n.o[t]=r,n.D[t]=!0,!0)},deleteProperty:function(n,t){return void 0!==z$4(n.t,t)||t in n.t?(n.D[t]=!1,E$1(n),k$4(n)):delete n.D[t],n.o&&delete n.o[t],!0},getOwnPropertyDescriptor:function(n,t){var r=p$4(n),e=Reflect.getOwnPropertyDescriptor(r,t);return e?{writable:!0,configurable:1!==n.i||"length"!==t,enumerable:e.enumerable,value:r[t]}:e},defineProperty:function(){n$5(11);},getPrototypeOf:function(n){return Object.getPrototypeOf(n.t)},setPrototypeOf:function(){n$5(12);}},on={};i(en,(function(n,t){on[n]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)};})),on.deleteProperty=function(t,r){return "production"!==process.env.NODE_ENV&&isNaN(parseInt(r))&&n$5(13),en.deleteProperty.call(this,t[0],r)},on.set=function(t,r,e){return "production"!==process.env.NODE_ENV&&"length"!==r&&isNaN(parseInt(r))&&n$5(14),en.set.call(this,t[0],r,e,t[0])};var un=function(){function e(t){var e=this;this.g=B$1,this.F=!0,this.produce=function(t,i,o){if("function"==typeof t&&"function"!=typeof i){var u=i;i=t;var a=e;return function(n){var t=this;void 0===n&&(n=u);for(var r=arguments.length,e=Array(r>1?r-1:0),o=1;o<r;o++)e[o-1]=arguments[o];return a.produce(n,(function(n){var r;return (r=i).call.apply(r,[t,n].concat(e))}))}}var f;if("function"!=typeof i&&n$5(6),void 0!==o&&"function"!=typeof o&&n$5(7),r$5(t)){var c=w$4(e),s=R(e,t,void 0),v=!0;try{f=i(s),v=!1;}finally{v?O(c):g$4(c);}return "undefined"!=typeof Promise&&f instanceof Promise?f.then((function(n){return j(c,o),P(n,c)}),(function(n){throw O(c),n})):(j(c,o),P(f,c))}if(!t||"object"!=typeof t){if((f=i(t))===H$1)return;return void 0===f&&(f=t),e.F&&d$4(f,!0),f}n$5(21,t);},this.produceWithPatches=function(n,t){return "function"==typeof n?function(t){for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return e.produceWithPatches(t,(function(t){return n.apply(void 0,[t].concat(i))}))}:[e.produce(n,t,(function(n,t){r=n,i=t;})),r,i];var r,i;},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze);}var i=e.prototype;return i.createDraft=function(e){r$5(e)||n$5(8),t$4(e)&&(e=D$1(e));var i=w$4(this),o=R(this,e,void 0);return o[Q].C=!0,g$4(i),o},i.finishDraft=function(t,r){var e=t&&t[Q];"production"!==process.env.NODE_ENV&&(e&&e.C||n$5(9),e.I&&n$5(10));var i=e.A;return j(i,r),P(void 0,i)},i.setAutoFreeze=function(n){this.F=n;},i.setUseProxies=function(t){t&&!B$1&&n$5(20),this.g=t;},i.applyPatches=function(n,r){var e;for(e=r.length-1;e>=0;e--){var i=r[e];if(0===i.path.length&&"replace"===i.op){n=i.value;break}}var o=b$4("Patches").$;return t$4(n)?o(n,r):this.produce(n,(function(n){return o(n,r.slice(e+1))}))},e}(),an=new un,fn=an.produce;an.produceWithPatches.bind(an);an.setAutoFreeze.bind(an);an.setUseProxies.bind(an);an.applyPatches.bind(an);an.createDraft.bind(an);an.finishDraft.bind(an);
|
|
3749
3740
|
|
|
3750
3741
|
const requestOrganizationReducer = (state, action) => {
|
|
3751
3742
|
switch (action.type) {
|
|
@@ -5249,12 +5240,12 @@ function _inheritsLoose(subClass, superClass) {
|
|
|
5249
5240
|
* This source code is licensed under the MIT license found in the
|
|
5250
5241
|
* LICENSE file in the root directory of this source tree.
|
|
5251
5242
|
*/
|
|
5252
|
-
var b$
|
|
5253
|
-
Symbol.for("react.suspense_list"):60120,r$
|
|
5254
|
-
function z$
|
|
5255
|
-
var Profiler$3=g$
|
|
5256
|
-
var isMemo$3=function(a){return z$
|
|
5257
|
-
var isValidElementType$3=function(a){return "string"===typeof a||"function"===typeof a||a===e$
|
|
5243
|
+
var b$3="function"===typeof Symbol&&Symbol.for,c$3=b$3?Symbol.for("react.element"):60103,d$3=b$3?Symbol.for("react.portal"):60106,e$4=b$3?Symbol.for("react.fragment"):60107,f$3=b$3?Symbol.for("react.strict_mode"):60108,g$3=b$3?Symbol.for("react.profiler"):60114,h$3=b$3?Symbol.for("react.provider"):60109,k$3=b$3?Symbol.for("react.context"):60110,l$3=b$3?Symbol.for("react.async_mode"):60111,m$3=b$3?Symbol.for("react.concurrent_mode"):60111,n$4=b$3?Symbol.for("react.forward_ref"):60112,p$3=b$3?Symbol.for("react.suspense"):60113,q$3=b$3?
|
|
5244
|
+
Symbol.for("react.suspense_list"):60120,r$4=b$3?Symbol.for("react.memo"):60115,t$3=b$3?Symbol.for("react.lazy"):60116,v$3=b$3?Symbol.for("react.block"):60121,w$3=b$3?Symbol.for("react.fundamental"):60117,x$3=b$3?Symbol.for("react.responder"):60118,y$3=b$3?Symbol.for("react.scope"):60119;
|
|
5245
|
+
function z$3(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c$3:switch(a=a.type,a){case l$3:case m$3:case e$4:case g$3:case f$3:case p$3:return a;default:switch(a=a&&a.$$typeof,a){case k$3:case n$4:case t$3:case r$4:case h$3:return a;default:return u}}case d$3:return u}}}function A$3(a){return z$3(a)===m$3}var AsyncMode$2=l$3;var ConcurrentMode$2=m$3;var ContextConsumer$3=k$3;var ContextProvider$3=h$3;var Element$3=c$3;var ForwardRef$3=n$4;var Fragment$3=e$4;var Lazy$3=t$3;var Memo$3=r$4;var Portal$3=d$3;
|
|
5246
|
+
var Profiler$3=g$3;var StrictMode$3=f$3;var Suspense$3=p$3;var isAsyncMode$3=function(a){return A$3(a)||z$3(a)===l$3};var isConcurrentMode$3=A$3;var isContextConsumer$3=function(a){return z$3(a)===k$3};var isContextProvider$3=function(a){return z$3(a)===h$3};var isElement$3=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c$3};var isForwardRef$3=function(a){return z$3(a)===n$4};var isFragment$3=function(a){return z$3(a)===e$4};var isLazy$3=function(a){return z$3(a)===t$3};
|
|
5247
|
+
var isMemo$3=function(a){return z$3(a)===r$4};var isPortal$3=function(a){return z$3(a)===d$3};var isProfiler$3=function(a){return z$3(a)===g$3};var isStrictMode$3=function(a){return z$3(a)===f$3};var isSuspense$3=function(a){return z$3(a)===p$3};
|
|
5248
|
+
var isValidElementType$3=function(a){return "string"===typeof a||"function"===typeof a||a===e$4||a===m$3||a===g$3||a===f$3||a===p$3||a===q$3||"object"===typeof a&&null!==a&&(a.$$typeof===t$3||a.$$typeof===r$4||a.$$typeof===h$3||a.$$typeof===k$3||a.$$typeof===n$4||a.$$typeof===w$3||a.$$typeof===x$3||a.$$typeof===y$3||a.$$typeof===v$3)};var typeOf$3=z$3;
|
|
5258
5249
|
|
|
5259
5250
|
var reactIs_production_min$3 = {
|
|
5260
5251
|
AsyncMode: AsyncMode$2,
|
|
@@ -6361,12 +6352,12 @@ propTypes.shape;
|
|
|
6361
6352
|
* This source code is licensed under the MIT license found in the
|
|
6362
6353
|
* LICENSE file in the root directory of this source tree.
|
|
6363
6354
|
*/
|
|
6364
|
-
var b$
|
|
6365
|
-
if("function"===typeof Symbol&&Symbol.for){var x$
|
|
6366
|
-
function y$
|
|
6367
|
-
var Suspense$2=I
|
|
6368
|
-
var isPortal$2=function(a){return y$
|
|
6369
|
-
var typeOf$2=y$
|
|
6355
|
+
var b$2=60103,c$2=60106,d$2=60107,e$3=60108,f$2=60114,g$2=60109,h$2=60110,k$2=60112,l$2=60113,m$2=60120,n$3=60115,p$2=60116,q$2=60121,r$3=60122,u=60117,v$2=60129,w$2=60131;
|
|
6356
|
+
if("function"===typeof Symbol&&Symbol.for){var x$2=Symbol.for;b$2=x$2("react.element");c$2=x$2("react.portal");d$2=x$2("react.fragment");e$3=x$2("react.strict_mode");f$2=x$2("react.profiler");g$2=x$2("react.provider");h$2=x$2("react.context");k$2=x$2("react.forward_ref");l$2=x$2("react.suspense");m$2=x$2("react.suspense_list");n$3=x$2("react.memo");p$2=x$2("react.lazy");q$2=x$2("react.block");r$3=x$2("react.server.block");u=x$2("react.fundamental");v$2=x$2("react.debug_trace_mode");w$2=x$2("react.legacy_hidden");}
|
|
6357
|
+
function y$2(a){if("object"===typeof a&&null!==a){var t=a.$$typeof;switch(t){case b$2:switch(a=a.type,a){case d$2:case f$2:case e$3:case l$2:case m$2:return a;default:switch(a=a&&a.$$typeof,a){case h$2:case k$2:case p$2:case n$3:case g$2:return a;default:return t}}case c$2:return t}}}var z$2=g$2,A$2=b$2,B=k$2,C=d$2,D=p$2,E=n$3,F=c$2,G=f$2,H=e$3,I=l$2;var ContextConsumer$2=h$2;var ContextProvider$2=z$2;var Element$2=A$2;var ForwardRef$2=B;var Fragment$2=C;var Lazy$2=D;var Memo$2=E;var Portal$2=F;var Profiler$2=G;var StrictMode$2=H;
|
|
6358
|
+
var Suspense$2=I;var isAsyncMode$2=function(){return !1};var isConcurrentMode$2=function(){return !1};var isContextConsumer$2=function(a){return y$2(a)===h$2};var isContextProvider$2=function(a){return y$2(a)===g$2};var isElement$2=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===b$2};var isForwardRef$2=function(a){return y$2(a)===k$2};var isFragment$2=function(a){return y$2(a)===d$2};var isLazy$2=function(a){return y$2(a)===p$2};var isMemo$2=function(a){return y$2(a)===n$3};
|
|
6359
|
+
var isPortal$2=function(a){return y$2(a)===c$2};var isProfiler$2=function(a){return y$2(a)===f$2};var isStrictMode$2=function(a){return y$2(a)===e$3};var isSuspense$2=function(a){return y$2(a)===l$2};var isValidElementType$2=function(a){return "string"===typeof a||"function"===typeof a||a===d$2||a===f$2||a===v$2||a===e$3||a===l$2||a===m$2||a===w$2||"object"===typeof a&&null!==a&&(a.$$typeof===p$2||a.$$typeof===n$3||a.$$typeof===g$2||a.$$typeof===h$2||a.$$typeof===k$2||a.$$typeof===u||a.$$typeof===q$2||a[0]===r$3)?!0:!1};
|
|
6360
|
+
var typeOf$2=y$2;
|
|
6370
6361
|
|
|
6371
6362
|
var reactIs_production_min$2 = {
|
|
6372
6363
|
ContextConsumer: ContextConsumer$2,
|
|
@@ -6650,7 +6641,7 @@ reactIs$2.isValidElementType;
|
|
|
6650
6641
|
reactIs$2.isContextConsumer;
|
|
6651
6642
|
var reactIs_3 = reactIs$2.isForwardRef;
|
|
6652
6643
|
|
|
6653
|
-
function t$
|
|
6644
|
+
function t$2(t){return "object"==typeof t&&null!=t&&1===t.nodeType}function e$2(t,e){return (!e||"hidden"!==t)&&"visible"!==t&&"clip"!==t}function n$2(t,n){if(t.clientHeight<t.scrollHeight||t.clientWidth<t.scrollWidth){var r=getComputedStyle(t,null);return e$2(r.overflowY,n)||e$2(r.overflowX,n)||function(t){var e=function(t){if(!t.ownerDocument||!t.ownerDocument.defaultView)return null;try{return t.ownerDocument.defaultView.frameElement}catch(t){return null}}(t);return !!e&&(e.clientHeight<t.scrollHeight||e.clientWidth<t.scrollWidth)}(t)}return !1}function r$2(t,e,n,r,i,o,l,d){return o<t&&l>e||o>t&&l<e?0:o<=t&&d<=n||l>=e&&d>=n?o-t-r:l>e&&d<n||o<t&&d>n?l-e+i:0}function computeScrollIntoView(e,i){var o=window,l=i.scrollMode,d=i.block,u=i.inline,h=i.boundary,a=i.skipOverflowHiddenElements,c="function"==typeof h?h:function(t){return t!==h};if(!t$2(e))throw new TypeError("Invalid target");for(var f=document.scrollingElement||document.documentElement,s=[],p=e;t$2(p)&&c(p);){if((p=p.parentElement)===f){s.push(p);break}null!=p&&p===document.body&&n$2(p)&&!n$2(document.documentElement)||null!=p&&n$2(p,a)&&s.push(p);}for(var m=o.visualViewport?o.visualViewport.width:innerWidth,g=o.visualViewport?o.visualViewport.height:innerHeight,w=window.scrollX||pageXOffset,v=window.scrollY||pageYOffset,W=e.getBoundingClientRect(),b=W.height,H=W.width,y=W.top,E=W.right,M=W.bottom,V=W.left,x="start"===d||"nearest"===d?y:"end"===d?M:y+b/2,I="center"===u?V+H/2:"end"===u?E:V,C=[],T=0;T<s.length;T++){var k=s[T],B=k.getBoundingClientRect(),D=B.height,O=B.width,R=B.top,X=B.right,Y=B.bottom,L=B.left;if("if-needed"===l&&y>=0&&V>=0&&M<=g&&E<=m&&y>=R&&M<=Y&&V>=L&&E<=X)return C;var S=getComputedStyle(k),j=parseInt(S.borderLeftWidth,10),q=parseInt(S.borderTopWidth,10),z=parseInt(S.borderRightWidth,10),A=parseInt(S.borderBottomWidth,10),F=0,G=0,J="offsetWidth"in k?k.offsetWidth-k.clientWidth-j-z:0,K="offsetHeight"in k?k.offsetHeight-k.clientHeight-q-A:0;if(f===k)F="start"===d?x:"end"===d?x-g:"nearest"===d?r$2(v,v+g,g,q,A,v+x,v+x+b,b):x-g/2,G="start"===u?I:"center"===u?I-m/2:"end"===u?I-m:r$2(w,w+m,m,j,z,w+I,w+I+H,H),F=Math.max(0,F+v),G=Math.max(0,G+w);else {F="start"===d?x-R-q:"end"===d?x-Y+A+K:"nearest"===d?r$2(R,Y,D,q,A+K,x,x+b,b):x-(R+D/2)+K/2,G="start"===u?I-L-j:"center"===u?I-(L+O/2)+J/2:"end"===u?I-X+z+J:r$2(L,X,O,j,z+J,I,I+H,H);var N=k.scrollLeft,P=k.scrollTop;x+=P-(F=Math.max(0,Math.min(P+F,k.scrollHeight-D+K))),I+=N-(G=Math.max(0,Math.min(N+G,k.scrollWidth-O+J)));}C.push({el:k,top:F,left:G});}return C}
|
|
6654
6645
|
|
|
6655
6646
|
var idCounter = 0;
|
|
6656
6647
|
/**
|
|
@@ -14948,12 +14939,12 @@ Provider.propTypes = {
|
|
|
14948
14939
|
* This source code is licensed under the MIT license found in the
|
|
14949
14940
|
* LICENSE file in the root directory of this source tree.
|
|
14950
14941
|
*/
|
|
14951
|
-
var b$
|
|
14952
|
-
Symbol.for("react.suspense_list"):60120,r$
|
|
14953
|
-
function z$
|
|
14954
|
-
var Profiler$1=g$
|
|
14955
|
-
var isMemo$1=function(a){return z$
|
|
14956
|
-
var isValidElementType$1=function(a){return "string"===typeof a||"function"===typeof a||a===e$
|
|
14942
|
+
var b$1="function"===typeof Symbol&&Symbol.for,c$1=b$1?Symbol.for("react.element"):60103,d$1=b$1?Symbol.for("react.portal"):60106,e$1=b$1?Symbol.for("react.fragment"):60107,f$1=b$1?Symbol.for("react.strict_mode"):60108,g$1=b$1?Symbol.for("react.profiler"):60114,h$1=b$1?Symbol.for("react.provider"):60109,k$1=b$1?Symbol.for("react.context"):60110,l$1=b$1?Symbol.for("react.async_mode"):60111,m$1=b$1?Symbol.for("react.concurrent_mode"):60111,n$1=b$1?Symbol.for("react.forward_ref"):60112,p$1=b$1?Symbol.for("react.suspense"):60113,q$1=b$1?
|
|
14943
|
+
Symbol.for("react.suspense_list"):60120,r$1=b$1?Symbol.for("react.memo"):60115,t$1=b$1?Symbol.for("react.lazy"):60116,v$1=b$1?Symbol.for("react.block"):60121,w$1=b$1?Symbol.for("react.fundamental"):60117,x$1=b$1?Symbol.for("react.responder"):60118,y$1=b$1?Symbol.for("react.scope"):60119;
|
|
14944
|
+
function z$1(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c$1:switch(a=a.type,a){case l$1:case m$1:case e$1:case g$1:case f$1:case p$1:return a;default:switch(a=a&&a.$$typeof,a){case k$1:case n$1:case t$1:case r$1:case h$1:return a;default:return u}}case d$1:return u}}}function A$1(a){return z$1(a)===m$1}var AsyncMode$1=l$1;var ConcurrentMode$1=m$1;var ContextConsumer$1=k$1;var ContextProvider$1=h$1;var Element$1=c$1;var ForwardRef$1=n$1;var Fragment$1=e$1;var Lazy$1=t$1;var Memo$1=r$1;var Portal$1=d$1;
|
|
14945
|
+
var Profiler$1=g$1;var StrictMode$1=f$1;var Suspense$1=p$1;var isAsyncMode$1=function(a){return A$1(a)||z$1(a)===l$1};var isConcurrentMode$1=A$1;var isContextConsumer$1=function(a){return z$1(a)===k$1};var isContextProvider$1=function(a){return z$1(a)===h$1};var isElement$1=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c$1};var isForwardRef$1=function(a){return z$1(a)===n$1};var isFragment$1=function(a){return z$1(a)===e$1};var isLazy$1=function(a){return z$1(a)===t$1};
|
|
14946
|
+
var isMemo$1=function(a){return z$1(a)===r$1};var isPortal$1=function(a){return z$1(a)===d$1};var isProfiler$1=function(a){return z$1(a)===g$1};var isStrictMode$1=function(a){return z$1(a)===f$1};var isSuspense$1=function(a){return z$1(a)===p$1};
|
|
14947
|
+
var isValidElementType$1=function(a){return "string"===typeof a||"function"===typeof a||a===e$1||a===m$1||a===g$1||a===f$1||a===p$1||a===q$1||"object"===typeof a&&null!==a&&(a.$$typeof===t$1||a.$$typeof===r$1||a.$$typeof===h$1||a.$$typeof===k$1||a.$$typeof===n$1||a.$$typeof===w$1||a.$$typeof===x$1||a.$$typeof===y$1||a.$$typeof===v$1)};var typeOf$1=z$1;
|
|
14957
14948
|
|
|
14958
14949
|
var reactIs_production_min$1 = {
|
|
14959
14950
|
AsyncMode: AsyncMode$1,
|
|
@@ -15354,12 +15345,12 @@ var invariant_1 = invariant;
|
|
|
15354
15345
|
* This source code is licensed under the MIT license found in the
|
|
15355
15346
|
* LICENSE file in the root directory of this source tree.
|
|
15356
15347
|
*/
|
|
15357
|
-
var b
|
|
15358
|
-
Symbol.for("react.suspense_list"):60120,r
|
|
15359
|
-
function z
|
|
15360
|
-
var Profiler=g
|
|
15361
|
-
var isMemo=function(a){return z
|
|
15362
|
-
var isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e
|
|
15348
|
+
var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?
|
|
15349
|
+
Symbol.for("react.suspense_list"):60120,r=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;
|
|
15350
|
+
function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}var AsyncMode=l;var ConcurrentMode=m;var ContextConsumer=k;var ContextProvider=h;var Element=c;var ForwardRef=n;var Fragment=e;var Lazy=t;var Memo=r;var Portal=d;
|
|
15351
|
+
var Profiler=g;var StrictMode=f;var Suspense=p;var isAsyncMode=function(a){return A(a)||z(a)===l};var isConcurrentMode=A;var isContextConsumer=function(a){return z(a)===k};var isContextProvider=function(a){return z(a)===h};var isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c};var isForwardRef=function(a){return z(a)===n};var isFragment=function(a){return z(a)===e};var isLazy=function(a){return z(a)===t};
|
|
15352
|
+
var isMemo=function(a){return z(a)===r};var isPortal=function(a){return z(a)===d};var isProfiler=function(a){return z(a)===g};var isStrictMode=function(a){return z(a)===f};var isSuspense=function(a){return z(a)===p};
|
|
15353
|
+
var isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};var typeOf=z;
|
|
15363
15354
|
|
|
15364
15355
|
var reactIs_production_min = {
|
|
15365
15356
|
AsyncMode: AsyncMode,
|
|
@@ -16190,1567 +16181,6 @@ function createConnect(_temp) {
|
|
|
16190
16181
|
}
|
|
16191
16182
|
var connect = createConnect();
|
|
16192
16183
|
|
|
16193
|
-
var types$1 = createCommonjsModule(function (module, exports) {
|
|
16194
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16195
|
-
exports.defaultReactOptions = void 0;
|
|
16196
|
-
/**
|
|
16197
|
-
* Contains default values for the `reactOptions` object.
|
|
16198
|
-
*/
|
|
16199
|
-
exports.defaultReactOptions = { useCamelCaseFlagKeys: true };
|
|
16200
|
-
|
|
16201
|
-
});
|
|
16202
|
-
|
|
16203
|
-
unwrapExports(types$1);
|
|
16204
|
-
types$1.defaultReactOptions;
|
|
16205
|
-
|
|
16206
|
-
var context_1 = createCommonjsModule(function (module, exports) {
|
|
16207
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16208
|
-
exports.Consumer = exports.Provider = void 0;
|
|
16209
|
-
|
|
16210
|
-
/**
|
|
16211
|
-
* @ignore
|
|
16212
|
-
*/
|
|
16213
|
-
var context = (0, React.createContext)({ flags: {}, ldClient: undefined });
|
|
16214
|
-
var
|
|
16215
|
-
/**
|
|
16216
|
-
* @ignore
|
|
16217
|
-
*/
|
|
16218
|
-
Provider = context.Provider,
|
|
16219
|
-
/**
|
|
16220
|
-
* @ignore
|
|
16221
|
-
*/
|
|
16222
|
-
Consumer = context.Consumer;
|
|
16223
|
-
exports.Provider = Provider;
|
|
16224
|
-
exports.Consumer = Consumer;
|
|
16225
|
-
exports.default = context;
|
|
16226
|
-
|
|
16227
|
-
});
|
|
16228
|
-
|
|
16229
|
-
unwrapExports(context_1);
|
|
16230
|
-
context_1.Consumer;
|
|
16231
|
-
context_1.Provider;
|
|
16232
|
-
|
|
16233
|
-
function e(n){return (e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function n(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function t(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r);}return t}function r(e){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?t(o,!0).forEach((function(t){n(e,t,o[t]);})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):t(o).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(o,n));}));}return e}function o(e){return function(e){if(Array.isArray(e)){for(var n=0,t=new Array(e.length);n<e.length;n++)t[n]=e[n];return t}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function i(e){function n(e,n){Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.message=e,this.code=n;}return n.prototype=new Error,n.prototype.name=e,n.prototype.constructor=n,n}var a=i("LaunchDarklyUnexpectedResponseError"),u=i("LaunchDarklyInvalidEnvironmentIdError"),s=i("LaunchDarklyInvalidUserError"),c=i("LaunchDarklyInvalidEventKeyError"),l=i("LaunchDarklyInvalidArgumentError"),f=i("LaunchDarklyFlagFetchError"),d=i("LaunchDarklyInvalidDataError");function v(e){return !(e>=400&&e<500)||400===e||408===e||429===e}for(var g=Object.freeze({__proto__:null,LDUnexpectedResponseError:a,LDInvalidEnvironmentIdError:u,LDInvalidUserError:s,LDInvalidEventKeyError:c,LDInvalidArgumentError:l,LDFlagFetchError:f,LDInvalidDataError:d,isHttpErrorRecoverable:v}),p=[],m=[],h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",y=0,w=h.length;y<w;++y)p[y]=h[y],m[h.charCodeAt(y)]=y;function b(e,n,t){for(var r,o,i=[],a=n;a<t;a+=3)r=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),i.push(p[(o=r)>>18&63]+p[o>>12&63]+p[o>>6&63]+p[63&o]);return i.join("")}m["-".charCodeAt(0)]=62,m["_".charCodeAt(0)]=63;var k=Array.isArray,E=Object.keys,D=Object.prototype.hasOwnProperty,S=["key","secondary","ip","country","email","firstName","lastName","avatar","name"];function O(e){return function(e){for(var n,t=e.length,r=t%3,o=[],i=0,a=t-r;i<a;i+=16383)o.push(b(e,i,i+16383>a?a:i+16383));return 1===r?(n=e[t-1],o.push(p[n>>2]+p[n<<4&63]+"==")):2===r&&(n=(e[t-2]<<8)+e[t-1],o.push(p[n>>10]+p[n>>4&63]+p[n<<2&63]+"=")),o.join("")}(function(e){for(var n=[],t=0;t<e.length;t++)n.push(e.charCodeAt(t));return n}(unescape(encodeURIComponent(e))))}function P(e){return O(e).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function U(e){return JSON.parse(JSON.stringify(e))}function R(e,n){return function e(n,t){if(n===t)return !0;if(n&&t&&"object"==typeof n&&"object"==typeof t){var r,o,i,a=k(n),u=k(t);if(a&&u){if((o=n.length)!=t.length)return !1;for(r=o;0!=r--;)if(!e(n[r],t[r]))return !1;return !0}if(a!=u)return !1;var s=n instanceof Date,c=t instanceof Date;if(s!=c)return !1;if(s&&c)return n.getTime()==t.getTime();var l=n instanceof RegExp,f=t instanceof RegExp;if(l!=f)return !1;if(l&&f)return n.toString()==t.toString();var d=E(n);if((o=d.length)!==E(t).length)return !1;for(r=o;0!=r--;)if(!D.call(t,d[r]))return !1;for(r=o;0!=r--;)if(!e(n[i=d[r]],t[i]))return !1;return !0}return n!=n&&t!=t}(e,n)}function j(e){setTimeout(e,0);}function I(e,n){var t=e.then((function(e){return n&&setTimeout((function(){n(null,e);}),0),e}),(function(e){if(!n)return Promise.reject(e);setTimeout((function(){n(e,null);}),0);}));return n?void 0:t}function T(e){var n={};for(var t in e)q(e,t)&&(n[t]={value:e[t],version:0});return n}function L(e){var n={};for(var t in e)q(e,t)&&(n[t]=e[t].value);return n}function N(e,n){for(var t,r=n.slice(0),o=[],i=e;r.length>0;){for(t=[];i>0;){var a=r.shift();if(!a)break;(i-=P(JSON.stringify(a)).length)<0&&t.length>0?r.unshift(a):t.push(a);}i=e,o.push(t);}return o}function x(e){var n=e.version||"3.5.1";return e.userAgent+"/"+n}function F(e,n){if(n&&!n.sendLDHeaders)return {};var t={"X-LaunchDarkly-User-Agent":x(e)};return n&&n.wrapperName&&(t["X-LaunchDarkly-Wrapper"]=n.wrapperVersion?n.wrapperName+"/"+n.wrapperVersion:n.wrapperName),t}function A(e,n){return n&&n.requestHeaderTransform?n.requestHeaderTransform(r({},e)):e}function C(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return n.reduce((function(e,n){return r({},e,{},n)}),{})}function q(e,n){return Object.prototype.hasOwnProperty.call(e,n)}function V(e){if(!e)return e;var n;for(var t in S){var o=S[t],i=e[o];void 0!==i&&"string"!=typeof i&&((n=n||r({},e))[o]=String(i));}return n||e}Object.freeze({__proto__:null,btoa:O,base64URLEncode:P,clone:U,deepEquals:R,onNextTick:j,wrapPromiseCallback:I,transformValuesToVersionedValues:T,transformVersionedValuesToValues:L,chunkUserEventsForUrl:N,getLDUserAgentString:x,getLDHeaders:F,transformHeaders:A,extend:C,objectHasOwnProperty:q,sanitizeUser:V});for(var _=function(e,n){return function(e){var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(n){var t=new Uint8Array(16);e.exports=function(){return n(t),t};}else {var r=new Array(16);e.exports=function(){for(var e,n=0;n<16;n++)0==(3&n)&&(e=4294967296*Math.random()),r[n]=e>>>((3&n)<<3)&255;return r};}}(n={exports:{}}),n.exports}(),J=[],z=0;z<256;++z)J[z]=(z+256).toString(16).substr(1);var M,H,K=0,$=0,B=function(e,n,t){var r=n&&t||0,o=n||[],i=(e=e||{}).node||M,a=void 0!==e.clockseq?e.clockseq:H;if(null==i||null==a){var u=_();null==i&&(i=M=[1|u[0],u[1],u[2],u[3],u[4],u[5]]),null==a&&(a=H=16383&(u[6]<<8|u[7]));}var s=void 0!==e.msecs?e.msecs:(new Date).getTime(),c=void 0!==e.nsecs?e.nsecs:$+1,l=s-K+(c-$)/1e4;if(l<0&&void 0===e.clockseq&&(a=a+1&16383),(l<0||s>K)&&void 0===e.nsecs&&(c=0),c>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");K=s,$=c,H=a;var f=(1e4*(268435455&(s+=122192928e5))+c)%4294967296;o[r++]=f>>>24&255,o[r++]=f>>>16&255,o[r++]=f>>>8&255,o[r++]=255&f;var d=s/4294967296*1e4&268435455;o[r++]=d>>>8&255,o[r++]=255&d,o[r++]=d>>>24&15|16,o[r++]=d>>>16&255,o[r++]=a>>>8|128,o[r++]=255&a;for(var v=0;v<6;++v)o[r+v]=i[v];return n||function(e,n){var t=n||0,r=J;return [r[e[t++]],r[e[t++]],r[e[t++]],r[e[t++]],"-",r[e[t++]],r[e[t++]],"-",r[e[t++]],r[e[t++]],"-",r[e[t++]],r[e[t++]],"-",r[e[t++]],r[e[t++]],r[e[t++]],r[e[t++]],r[e[t++]],r[e[t++]]].join("")}(o)};function G(e,n,t){var r="/a/"+n+".gif",o=C({"Content-Type":"application/json"},F(e,t)),i=e.httpFallbackPing,a={sendChunk:function(n,a,u,s){var c=JSON.stringify(n),l=u?null:B();return s?function n(r){var i=u?o:C({},o,{"X-LaunchDarkly-Event-Schema":"3","X-LaunchDarkly-Payload-ID":l});return e.httpRequest("POST",a,A(i,t),c).promise.then((function(e){if(e)return e.status>=400&&v(e.status)&&r?n(!1):function(e){var n={status:e.status},t=e.header("date");if(t){var r=Date.parse(t);r&&(n.serverTime=r);}return n}(e)})).catch((function(){return r?n(!1):Promise.reject()}))}(!0).catch((function(){})):(i&&i(a+r+"?d="+P(c)),Promise.resolve())},sendEvents:function(n,t,r){if(!e.httpRequest)return Promise.resolve();var o,i=e.httpAllowsPost();o=i?[n]:N(2e3-t.length,n);for(var u=[],s=0;s<o.length;s++)u.push(a.sendChunk(o[s],t,r,i));return Promise.all(u)}};return a}function X(){var e={},n=0,t=0,r={};return e.summarizeEvent=function(e){if("feature"===e.kind){var o=e.key+":"+(null!==e.variation&&void 0!==e.variation?e.variation:"")+":"+(null!==e.version&&void 0!==e.version?e.version:""),i=r[o];i?i.count=i.count+1:r[o]={count:1,key:e.key,variation:e.variation,version:e.version,value:e.value,default:e.default},(0===n||e.creationDate<n)&&(n=e.creationDate),e.creationDate>t&&(t=e.creationDate);}},e.getSummary=function(){var e={},o=!0;for(var i in r){var a=r[i],u=e[a.key];u||(u={default:a.default,counters:[]},e[a.key]=u);var s={value:a.value,count:a.count};void 0!==a.variation&&null!==a.variation&&(s.variation=a.variation),a.version?s.version=a.version:s.unknown=!0,u.counters.push(s),o=!1;}return o?null:{startDate:n,endDate:t,features:e}},e.clearSummary=function(){n=0,t=0,r={};},e}function W(e){var n={},t=e.allAttributesPrivate,r=e.privateAttributeNames||[],o={key:!0,custom:!0,anonymous:!0},i={key:!0,secondary:!0,ip:!0,country:!0,email:!0,firstName:!0,lastName:!0,avatar:!0,name:!0,anonymous:!0,custom:!0};return n.filterUser=function(e){if(!e)return null;var n=e.privateAttributeNames||[],a=function(e,i){return Object.keys(e).reduce((function(a,u){var s=a;return i(u)&&(function(e){return !o[e]&&(t||-1!==n.indexOf(e)||-1!==r.indexOf(e))}(u)?s[1][u]=!0:s[0][u]=e[u]),s}),[{},{}])},u=a(e,(function(e){return i[e]})),s=u[0],c=u[1];if(e.custom){var l=a(e.custom,(function(){return !0}));s.custom=l[0],c=C({},c,l[1]);}var f=Object.keys(c);return f.length&&(f.sort(),s.privateAttrs=f),s},n}function Q(e){return e&&e.message?e.message:"string"==typeof e||e instanceof String?e:JSON.stringify(e)}var Y=" Please see https://docs.launchdarkly.com/sdk/client-side/javascript#initializing-the-client for instructions on SDK initialization.",Z=function(e){return 'Expected application/json content type but got "'+e+'"'},ee=function(e){return "local storage is unavailable: "+Q(e)},ne=function(e){return "network error"+(e?" ("+e+")":"")},te=function(e){return 'Custom event "'+e+'" does not exist'},re=function(){return "Environment not found. Double check that you specified a valid environment/client-side ID."+Y},oe=function(){return "No environment/client-side ID was specified."+Y},ie=function(e){return "Error fetching flag settings: "+Q(e)},ae=function(){return "No user specified."+Y},ue=function(){return "Invalid user specified."+Y},se=function(){return "LaunchDarkly client was initialized with bootstrap data that did not include flag metadata. Events may not be sent correctly."+Y},ce=function(e,n){return n?'"'+e+'" is deprecated, please use "'+n+'"':'"'+e+'" is deprecated'},le=function(e,n,t){return "Received error "+e+(401===e?" (invalid SDK key)":"")+" for "+n+" - "+(v(e)?t:"giving up permanently")},fe=function(){return "Cannot make HTTP requests in this environment."+Y},de=function(e){return "Opening stream connection to "+e},ve=function(e,n){return "Error on stream connection: "+Q(e)+", will continue retrying every "+n+" milliseconds."},ge=function(e){return 'Ignoring unknown config option "'+e+'"'},pe=function(e,n,t){return 'Config option "'+e+'" should be of type '+n+", got "+t+", using default value"},me=function(e,n){return 'Config option "'+e+'" should be a boolean, got '+n+", converting to boolean"},he=function(e,n,t){return 'Config option "'+e+'" was set to '+n+", changing to minimum value of "+t},ye=function(e){return "polling for feature flags at "+e},we=function(e){return 'received streaming update for flag "'+e+'"'},be=function(e){return 'received streaming update for flag "'+e+'" but ignored due to version check'},ke=function(e){return 'received streaming deletion for flag "'+e+'"'},Ee=function(e){return 'received streaming deletion for flag "'+e+'" but ignored due to version check'},De=function(e){return 'enqueueing "'+e+'" event'},Se=function(e){return "sending "+e+" events"},Oe=Object.freeze({__proto__:null,clientInitialized:function(){return "LaunchDarkly client initialized"},clientNotReady:function(){return "LaunchDarkly client is not ready"},eventCapacityExceeded:function(){return "Exceeded event queue capacity. Increase capacity to avoid dropping events."},eventWithoutUser:function(){return "Be sure to call `identify` in the LaunchDarkly client: https://docs.launchdarkly.com/sdk/features/identify#javascript"},invalidContentType:Z,invalidKey:function(){return "Event key must be a string"},localStorageUnavailable:ee,networkError:ne,unknownCustomEventKey:te,environmentNotFound:re,environmentNotSpecified:oe,errorFetchingFlags:ie,userNotSpecified:ae,invalidUser:ue,invalidData:function(){return "Invalid data received from LaunchDarkly; connection may have been interrupted"},bootstrapOldFormat:se,bootstrapInvalid:function(){return "LaunchDarkly bootstrap data is not available because the back end could not read the flags."},deprecated:ce,httpErrorMessage:le,httpUnavailable:fe,identifyDisabled:function(){return "identify() has no effect here; it must be called on the main client instance"},streamClosing:function(){return "Closing stream connection"},streamConnecting:de,streamError:ve,unknownOption:ge,wrongOptionType:pe,wrongOptionTypeBoolean:me,optionBelowMinimum:he,debugPolling:ye,debugStreamPing:function(){return "received ping message from stream"},debugStreamPut:function(){return "received streaming update for all flags"},debugStreamPatch:we,debugStreamPatchIgnored:be,debugStreamDelete:ke,debugStreamDeleteIgnored:Ee,debugEnqueueingEvent:De,debugPostingEvents:Se,debugPostingDiagnosticEvent:function(e){return "sending diagnostic event ("+e.kind+")"}});function Pe(e,n,t,r){var o={};function i(){var e="",o=r.getUser();return o&&(e=t||O(JSON.stringify(o))),"ld:"+n+":"+e}return o.loadFlags=function(){return e.get(i()).then((function(e){if(null==e)return null;try{var n=JSON.parse(e);if(n){var t=n.$schema;void 0===t||t<1?n=T(n):delete n.$schema;}return n}catch(e){return o.clearFlags().then((function(){return null}))}}))},o.saveFlags=function(n){var t=C({},n,{$schema:1});return e.set(i(),JSON.stringify(t))},o.clearFlags=function(){return e.clear(i())},o}function Ue(e,n,t,r){var o,i=n.streamUrl,a=n.logger,u={},s=i+"/eval/"+t,c=n.useReport,l=n.evaluationReasons,f=n.streamReconnectDelay,d=F(e,n),v=!1,g=null,p=null,m=null,h=null,y=null;function w(e){v||(a.warn(ve(e,f)),v=!0),D(!1),E(),b(f);}function b(e){p||(e?p=setTimeout(k,e):k());}function k(){var r;p=null;var u="",f={headers:d,readTimeoutMillis:3e5};if(e.eventSourceFactory){for(var v in null!=h&&(u="h="+h),c?e.eventSourceAllowsReport?(r=s,f.method="REPORT",f.headers["Content-Type"]="application/json",f.body=JSON.stringify(m)):(r=i+"/ping/"+t,u=""):r=s+"/"+P(JSON.stringify(m)),f.headers=A(f.headers,n),l&&(u=u+(u?"&":"")+"withReasons=true"),r=r+(u?"?":"")+u,E(),a.info(de(r)),o=(new Date).getTime(),g=e.eventSourceFactory(r,f),y)q(y,v)&&g.addEventListener(v,y[v]);g.onerror=w;}}function E(){g&&(a.info("Closing stream connection"),g.close(),g=null);}function D(e){o&&r&&r.recordStreamInit(o,!e,(new Date).getTime()-o),o=null;}return u.connect=function(e,n,t){m=e,h=n,y={};var r=function(e){y[e]=function(n){v=!1,D(!0),t[e]&&t[e](n);};};for(var o in t||{})r(o);b();},u.disconnect=function(){clearTimeout(p),p=null,E();},u.isConnected=function(){return !!(g&&e.eventSourceIsActive&&e.eventSourceIsActive(g))},u}function Re(e,n,t){var r=n.baseUrl,o=n.useReport,i=n.evaluationReasons,a=n.logger,s={},c={};function l(t,r){if(!e.httpRequest)return new Promise((function(e,n){n(new f(fe()));}));var o=r?"REPORT":"GET",i=F(e,n);r&&(i["Content-Type"]="application/json");var a=c[t];a||(a=function(e){var n,t,r,o,i={addPromise:function(i,a){n=i,t&&t(),t=a,i.then((function(t){n===i&&(r(t),e&&e());}),(function(t){n===i&&(o(t),e&&e());}));}};return i.resultPromise=new Promise((function(e,n){r=e,o=n;})),i}((function(){delete c[t];})),c[t]=a);var s=e.httpRequest(o,t,A(i,n),r),l=s.promise.then((function(e){if(200===e.status){if(e.header("content-type")&&"application/json"===e.header("content-type").substring(0,"application/json".length))return JSON.parse(e.body);var n=Z(e.header("content-type")||"");return Promise.reject(new f(n))}return Promise.reject(function(e){return 404===e.status?new u(re()):new f(ie(e.statusText||String(e.status)))}(e))}),(function(e){return Promise.reject(new f(ne(e)))}));return a.addPromise(l,(function(){s.cancel&&s.cancel();})),a.resultPromise}return s.fetchJSON=function(e){return l(r+e,null)},s.fetchFlagSettings=function(e,n){var u,s,c,f="";return o?(s=[r,"/sdk/evalx/",t,"/user"].join(""),c=JSON.stringify(e)):(u=P(JSON.stringify(e)),s=[r,"/sdk/evalx/",t,"/users/",u].join("")),n&&(f="h="+n),i&&(f=f+(f?"&":"")+"withReasons=true"),s=s+(f?"?":"")+f,a.debug(ye(s)),l(s,c)},s}function je(e){var n={validateUser:function(n){if(!n)return Promise.reject(new s(ae()));var t=U(n);return null!==t.key&&void 0!==t.key?(t.key=t.key.toString(),Promise.resolve(t)):t.anonymous?e.get("ld:$anonUserId").then((function(n){if(n)return t.key=n,t;var r=B();return t.key=r,function(n){return e.set("ld:$anonUserId",n)}(r).then((function(){return t}))})):Promise.reject(new s(ue()))}};return n}var Ie=["debug","info","warn","error","none"];function Te(e,n){return function(e,n){if(e&&e.destination&&"function"!=typeof e.destination)throw new Error("destination for basicLogger was set to a non-function");function t(e){return function(n){console&&console[e]&&console[e].call(console,n);}}var r=e&&e.destination?[e.destination,e.destination,e.destination,e.destination]:[t("log"),t("info"),t("warn"),t("error")],i=!(!e||!e.destination),a=e&&void 0!==e.prefix&&null!==e.prefix?e.prefix:"[LaunchDarkly] ",u=1;if(e&&e.level)for(var s=0;s<Ie.length;s++)Ie[s]===e.level&&(u=s);function c(e,t,u){if(!(u.length<1)){var s,c=i?t+": "+a:a;if(1!==u.length&&n){var l=o(u);l[0]=c+l[0],s=n.apply(void 0,o(l));}else s=c+u[0];try{r[e](s);}catch(e){console&&console.log&&console.log("[LaunchDarkly] Configured logger's "+t+" method threw an exception: "+e);}}}for(var l={},f=function(e){var n=Ie[e];if("none"!==n)if(e<u)l[n]=function(){};else {var t=e;l[n]=function(){c(t,n,arguments);};}},d=0;d<Ie.length;d++)f(d);return l}({level:e,prefix:n})}var Le={baseUrl:{default:"https://app.launchdarkly.com"},streamUrl:{default:"https://clientstream.launchdarkly.com"},eventsUrl:{default:"https://events.launchdarkly.com"},sendEvents:{default:!0},streaming:{type:"boolean"},sendLDHeaders:{default:!0},requestHeaderTransform:{type:"function"},inlineUsersInEvents:{default:!1},allowFrequentDuplicateEvents:{default:!1},sendEventsOnlyForVariation:{default:!1},useReport:{default:!1},evaluationReasons:{default:!1},eventCapacity:{default:100,minimum:1},flushInterval:{default:2e3,minimum:2e3},samplingInterval:{default:0,minimum:0},streamReconnectDelay:{default:1e3,minimum:0},allAttributesPrivate:{default:!1},privateAttributeNames:{default:[]},bootstrap:{type:"string|object"},diagnosticRecordingInterval:{default:9e5,minimum:2e3},diagnosticOptOut:{default:!1},wrapperName:{type:"string"},wrapperVersion:{type:"string"},stateProvider:{type:"object"},autoAliasingOptOut:{default:!1}};function Ne(n,t,r,o){var i=C({logger:{default:o}},Le,r),a={all_attributes_private:"allAttributesPrivate",private_attribute_names:"privateAttributeNames",samplingInterval:null};function u(e){j((function(){t&&t.maybeReportError(new l(e));}));}var s=C({},n||{});return function(e){var n=e;Object.keys(a).forEach((function(e){if(void 0!==n[e]){var t=a[e];o&&o.warn(ce(e,t)),t&&(void 0===n[t]&&(n[t]=n[e]),delete n[e]);}}));}(s),function(e){Ie.forEach((function(n){if("none"!==n&&(!e[n]||"function"!=typeof e[n]))throw new Error("Provided logger instance must support logger."+n+"(...) method")}));}((s=function(n){var t=C({},n),r=function(n){if(null===n)return "any";if(void 0!==n){if(Array.isArray(n))return "array";var t=e(n);return "boolean"===t||"string"===t||"number"===t||"function"===t?t:"object"}};return Object.keys(n).forEach((function(e){var o=n[e];if(null!=o){var a=i[e];if(void 0===a)u(ge(e));else {var s=a.type||r(a.default);if("any"!==s){var c=s.split("|"),l=r(o);c.indexOf(l)<0?"boolean"===s?(t[e]=!!o,u(me(e,l))):(u(pe(e,s,l)),t[e]=a.default):"number"===l&&void 0!==a.minimum&&o<a.minimum&&(u(he(e,o,a.minimum)),t[e]=a.minimum);}}}})),t}(s=function(e){var n=C({},e);return Object.keys(i).forEach((function(e){void 0!==n[e]&&null!==n[e]||(n[e]=i[e]&&i[e].default);})),n}(s))).logger),s}var xe=Object.freeze({__proto__:null,baseOptionDefs:Le,validate:Ne}).baseOptionDefs,Fe=function(e){var n={diagnosticId:B()};return e&&(n.sdkKeySuffix=e.length>6?e.substring(e.length-6):e),n};function Ae(n,t,o,i,s){var l,g,p,m=o&&o.logger?o.logger:s&&s.logger&&s.logger.default||Te("warn"),h=function(e){var n={},t={};return n.on=function(e,n,r){t[e]=t[e]||[],t[e]=t[e].concat({handler:n,context:r});},n.off=function(e,n,r){if(t[e])for(var o=0;o<t[e].length;o++)t[e][o].handler===n&&t[e][o].context===r&&(t[e]=t[e].slice(0,o).concat(t[e].slice(o+1)));},n.emit=function(e){if(t[e])for(var n=t[e].slice(0),r=0;r<n.length;r++)n[r].handler.apply(n[r].context,Array.prototype.slice.call(arguments,1));},n.getEvents=function(){return Object.keys(t)},n.getEventListenerCount=function(e){return t[e]?t[e].length:0},n.maybeReportError=function(n){n&&(t.error?this.emit("error",n):(e||console).error(n.message));},n}(m),y=function(e){var n=!1,t=!1,r=null,o=null,i=new Promise((function(n){e.on("ready",(function t(){e.off("ready",t),n();}));})).catch((function(){}));return {getInitializationPromise:function(){return o||(n?Promise.resolve():t?Promise.reject(r):o=new Promise((function(n,t){e.on("initialized",(function t(){e.off("initialized",t),n();})),e.on("failed",(function n(r){e.off("failed",n),t(r);}));})))},getReadyPromise:function(){return i},signalSuccess:function(){n||t||(n=!0,e.emit("initialized"),e.emit("ready"));},signalFailure:function(o){n||t||(t=!0,r=o,e.emit("failed",o),e.emit("ready")),e.maybeReportError(o);}}}(h),w=Ne(o,h,s,m),b=w.sendEvents,k=n,E=w.hash,D=function(e,n){var t={},r=!1,o=function(e){r||(r=!0,n.warn(ee(e)));};return t.isEnabled=function(){return !!e},t.get=function(n){return new Promise((function(t){e?e.get(n).then(t).catch((function(e){o(e),t(void 0);})):t(void 0);}))},t.set=function(n,t){return new Promise((function(r){e?e.set(n,t).then((function(){return r(!0)})).catch((function(e){o(e),r(!1);})):r(!1);}))},t.clear=function(n){return new Promise((function(t){e?e.clear(n).then((function(){return t(!0)})).catch((function(e){o(e),t(!1);})):t(!1);}))},t}(i.localStorage,m),S=G(i,k,w),O=w.sendEvents&&!w.diagnosticOptOut,P=O?Fe(k):null,T=O?function(e){var n,t,r,o;function i(e){n=e,t=0,r=0,o=[];}return i(e),{getProps:function(){return {dataSinceDate:n,droppedEvents:t,eventsInLastBatch:r,streamInits:o}},setProps:function(e){n=e.dataSinceDate,t=e.droppedEvents||0,r=e.eventsInLastBatch||0,o=e.streamInits||[];},incrementDroppedEvents:function(){t++;},setEventsInLastBatch:function(e){r=e;},recordStreamInit:function(e,n,t){var r={timestamp:e,failed:n,durationMillis:t};o.push(r);},reset:i}}((new Date).getTime()):null,N=O?function(e,n,t,o,i,a,u){var s,c,l=!!e.diagnosticUseCombinedEvent,f="ld:"+i+":$diagnostics",d=a.eventsUrl+"/events/diagnostic/"+i,v=a.diagnosticRecordingInterval,g=t,p=!!a.streaming,m={};function h(){return {sdk:b(),configuration:(n={customBaseURI:a.baseUrl!==xe.baseUrl.default,customStreamURI:a.streamUrl!==xe.streamUrl.default,customEventsURI:a.eventsUrl!==xe.eventsUrl.default,eventsCapacity:a.eventCapacity,eventsFlushIntervalMillis:a.flushInterval,reconnectTimeMillis:a.streamReconnectDelay,streamingDisabled:!p,allAttributesPrivate:!!a.allAttributesPrivate,inlineUsersInEvents:!!a.inlineUsersInEvents,diagnosticRecordingIntervalMillis:a.diagnosticRecordingInterval,usingSecureMode:!!a.hash,bootstrapMode:!!a.bootstrap,fetchGoalsDisabled:!a.fetchGoals,allowFrequentDuplicateEvents:!!a.allowFrequentDuplicateEvents,sendEventsOnlyForVariation:!!a.sendEventsOnlyForVariation,autoAliasingOptOut:!!a.autoAliasingOptOut},n),platform:e.diagnosticPlatformData};var n;}function y(e){a.logger&&a.logger.debug(Oe.debugPostingDiagnosticEvent(e)),o.sendEvents(e,d,!0).then((function(){})).catch((function(){}));}function w(){var e,t;y((e=(new Date).getTime(),t=r({kind:l?"diagnostic-combined":"diagnostic",id:u,creationDate:e},g.getProps()),l&&(t=r({},t,{},h())),g.reset(e),t)),c=setTimeout(w,v),s=(new Date).getTime(),l&&function(){if(n.isEnabled()){var e=r({},g.getProps());n.set(f,JSON.stringify(e));}}();}function b(){var n=r({},e.diagnosticSdkData);return a.wrapperName&&(n.wrapperName=a.wrapperName),a.wrapperVersion&&(n.wrapperVersion=a.wrapperVersion),n}return m.start=function(){l?function(e){if(!n.isEnabled())return e(!1);n.get(f).then((function(n){if(n)try{var t=JSON.parse(n);g.setProps(t),s=t.dataSinceDate;}catch(e){}e(!0);})).catch((function(){e(!1);}));}((function(e){if(e){var n=(s||0)+v,t=(new Date).getTime();t>=n?w():c=setTimeout(w,n-t);}else 0===Math.floor(4*Math.random())?w():c=setTimeout(w,v);})):(y(r({kind:"diagnostic-init",id:u,creationDate:g.getProps().dataSinceDate},h())),c=setTimeout(w,v));},m.stop=function(){c&&clearTimeout(c);},m.setStreaming=function(e){p=e;},m}(i,D,T,S,k,w,P):null,x=Ue(i,w,k,T),F=w.eventProcessor||function(e,n,t){var r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,u=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,s={},c=u||G(e,t,n),l=n.eventsUrl+"/events/bulk/"+t,f=X(),d=W(n),g=n.inlineUsersInEvents,p=n.samplingInterval,m=n.eventCapacity,h=n.flushInterval,y=n.logger,w=[],b=0,k=!1,E=!1;function D(){return 0===p||0===Math.floor(Math.random()*p)}function S(e){return !!e.debugEventsUntilDate&&e.debugEventsUntilDate>b&&e.debugEventsUntilDate>(new Date).getTime()}function O(e){var n=C({},e);return "alias"===e.kind||(g||"identify"===e.kind?n.user=d.filterUser(e.user):(n.userKey=e.user.key,delete n.user),"feature"===e.kind&&(delete n.trackEvents,delete n.debugEventsUntilDate)),n}function P(e){w.length<m?(w.push(e),E=!1):(E||(E=!0,y.warn("Exceeded event queue capacity. Increase capacity to avoid dropping events.")),o&&o.incrementDroppedEvents());}return s.enqueue=function(e){if(!k){var n=!1,t=!1;if(f.summarizeEvent(e),"feature"===e.kind?D()&&(n=!!e.trackEvents,t=S(e)):n=D(),n&&P(O(e)),t){var r=C({},e,{kind:"debug"});r.user=d.filterUser(r.user),delete r.trackEvents,delete r.debugEventsUntilDate,P(r);}}},s.flush=function(){if(k)return Promise.resolve();var e=w,n=f.getSummary();return f.clearSummary(),n&&(n.kind="summary",e.push(n)),o&&o.setEventsInLastBatch(e.length),0===e.length?Promise.resolve():(w=[],y.debug(Se(e.length)),c.sendEvents(e,l).then((function(e){e&&(e.serverTime&&(b=e.serverTime),v(e.status)||(k=!0),e.status>=400&&j((function(){i.maybeReportError(new a(le(e.status,"event posting","some events were dropped")));})));})))},s.start=function(){r=setTimeout((function e(){s.flush(),r=setTimeout(e,h);}),h);},s.stop=function(){clearTimeout(r);},s}(i,w,k,T,h,S),A=Re(i,w,k),_={},J={},z=w.streaming,M=!1,H=!1,K=!0,$=w.stateProvider,B=function(e,n){var t,r={setUser:function(e){var r=t&&U(t);(t=V(e))&&n&&n(U(t),r);},getUser:function(){return t?U(t):null}};return r}(0,(function(e,n){((function(e){$||e&&Z({kind:"identify",key:e.key,user:e,creationDate:(new Date).getTime()});}))(e),!w.autoAliasingOptOut&&n&&n.anonymous&&e&&!e.anonymous&&ce(e,n);})),Q=je(D),Y=D.isEnabled()?new Pe(D,k,E,B,m):null;function Z(e){if(k&&!($&&$.enqueueEvent&&$.enqueueEvent(e))){if("alias"!==e.kind){if(!e.user)return void(K&&(m.warn("Be sure to call `identify` in the LaunchDarkly client: https://docs.launchdarkly.com/sdk/features/identify#javascript"),K=!1));K=!1;}!b||H||i.isDoNotTrack()||(m.debug(De(e.kind)),F.enqueue(e));}}function ne(e,n,t,r){var o=B.getUser(),i=new Date,a=n?n.value:null;if(!w.allowFrequentDuplicateEvents){var u=JSON.stringify(a)+(o&&o.key?o.key:"")+e,s=_[u];if(s&&i-s<3e5)return;_[u]=i;}var c={kind:"feature",key:e,user:o,value:a,variation:n?n.variationIndex:null,default:t,creationDate:i.getTime()};o&&o.anonymous&&(c.contextKind=ue(o));var l=J[e];l&&(c.version=l.flagVersion?l.flagVersion:l.version,c.trackEvents=l.trackEvents,c.debugEventsUntilDate=l.debugEventsUntilDate),(r||l&&l.trackReason)&&n&&(c.reason=n.reason),Z(c);}function re(e,n,t,r){var o;if(J&&q(J,e)&&J[e]&&!J[e].deleted){var i=J[e];o=ae(i),null!==i.value&&void 0!==i.value||(o.value=n);}else o={value:n,variationIndex:null,reason:{kind:"ERROR",errorKind:"FLAG_NOT_FOUND"}};return t&&ne(e,o,n,r),o}function ae(e){return {value:e.value,variationIndex:void 0===e.variation?null:e.variation,reason:e.reason||null}}function ue(e){return e.anonymous?"anonymousUser":"user"}function ce(e,n){$||e&&n&&Z({kind:"alias",key:e.key,contextKind:ue(e),previousKey:n.key,previousContextKind:ue(n),creationDate:(new Date).getTime()});}function fe(){if(g=!0,B.getUser()){var e=function(e){try{return JSON.parse(e)}catch(e){return void h.maybeReportError(new d("Invalid data received from LaunchDarkly; connection may have been interrupted"))}};x.connect(B.getUser(),E,{ping:function(){m.debug("received ping message from stream");var e=B.getUser();A.fetchFlagSettings(e,E).then((function(n){R(e,B.getUser())&&ve(n||{});})).catch((function(e){h.maybeReportError(new f(ie(e)));}));},put:function(n){var t=e(n.data);t&&(m.debug("received streaming update for all flags"),ve(t));},patch:function(n){var t=e(n.data);if(t){var r=J[t.key];if(!r||!r.version||!t.version||r.version<t.version){m.debug(we(t.key));var o={},i=C({},t);delete i.key,J[t.key]=i;var a=ae(i);o[t.key]=r?{previous:r.value,current:a}:{current:a},ge(o);}else m.debug(be(t.key));}},delete:function(n){var t=e(n.data);if(t)if(!J[t.key]||J[t.key].version<t.version){m.debug(ke(t.key));var r={};J[t.key]&&!J[t.key].deleted&&(r[t.key]={previous:J[t.key].value}),J[t.key]={version:t.version,deleted:!0},ge(r);}else m.debug(Ee(t.key));}});}}function de(){g&&(x.disconnect(),g=!1);}function ve(e){var n={};if(!e)return Promise.resolve();for(var t in J)q(J,t)&&J[t]&&(e[t]&&!R(e[t].value,J[t].value)?n[t]={previous:J[t].value,current:ae(e[t])}:e[t]&&!e[t].deleted||(n[t]={previous:J[t].value}));for(var o in e)q(e,o)&&e[o]&&(!J[o]||J[o].deleted)&&(n[o]={current:ae(e[o])});return J=r({},e),ge(n).catch((function(){}))}function ge(e){var n=Object.keys(e);if(n.length>0){var t={};n.forEach((function(n){var r=e[n].current,o=r?r.value:void 0,i=e[n].previous;h.emit("change:"+n,o,i),t[n]=r?{current:o,previous:i}:{previous:i};})),h.emit("change",t),h.emit("internal-change",J),w.sendEventsOnlyForVariation||$||n.forEach((function(n){ne(n,e[n].current);}));}return l&&Y?Y.saveFlags(J):Promise.resolve()}function pe(){var e=z||p&&void 0===z;e&&!g?fe():!e&&g&&de(),N&&N.setStreaming(e);}function me(e){return "change"===e||"change:"===e.substr(0,"change".length+1)}if("string"==typeof w.bootstrap&&"LOCALSTORAGE"===w.bootstrap.toUpperCase()&&(Y?l=!0:m.warn(ee())),"object"===e(w.bootstrap)&&(J=function(e){var n=Object.keys(e),t=e.$flagsState;!t&&n.length&&m.warn(se()),!1===e.$valid&&m.warn("LaunchDarkly bootstrap data is not available because the back end could not read the flags.");var r={};return n.forEach((function(n){if("$flagsState"!==n&&"$valid"!==n){var o={value:e[n]};t&&t[n]?o=C(o,t[n]):o.version=0,r[n]=o;}})),r}(w.bootstrap)),$){var he=$.getInitialState();he?ye(he):$.on("init",ye),$.on("update",(function(e){e.user&&B.setUser(e.user),e.flags&&ve(e.flags);}));}else (n?Q.validateUser(t).then((function(n){return B.setUser(n),"object"===e(w.bootstrap)?Ie():l?Y.loadFlags().then((function(e){return null==e?(J={},A.fetchFlagSettings(B.getUser(),E).then((function(e){return ve(e||{})})).then(Ie).catch((function(e){Le(new f(ie(e)));}))):(J=e,j(Ie),A.fetchFlagSettings(B.getUser(),E).then((function(e){return ve(e)})).catch((function(e){return h.maybeReportError(e)})))})):A.fetchFlagSettings(B.getUser(),E).then((function(e){J=e||{},Ie();})).catch((function(e){J={},Le(e);}))})):Promise.reject(new u(oe()))).catch(Le);function ye(e){k=e.environment,B.setUser(e.user),J=r({},e.flags),j(Ie);}function Ie(){m.info("LaunchDarkly client initialized"),M=!0,pe(),y.signalSuccess();}function Le(e){y.signalFailure(e);}return {client:{waitForInitialization:function(){return y.getInitializationPromise()},waitUntilReady:function(){return y.getReadyPromise()},identify:function(e,n,t){return H?I(Promise.resolve({}),t):$?(m.warn("identify() has no effect here; it must be called on the main client instance"),I(Promise.resolve(L(J)),t)):I((l&&Y?Y.clearFlags():Promise.resolve()).then((function(){return Q.validateUser(e)})).then((function(e){return A.fetchFlagSettings(e,n).then((function(t){var r=L(t);return B.setUser(e),E=n,t?ve(t).then((function(){return r})):r}))})).then((function(e){return g&&fe(),e})).catch((function(e){return h.maybeReportError(e),Promise.reject(e)})),t)},getUser:function(){return B.getUser()},variation:function(e,n){return re(e,n,!0,!1).value},variationDetail:function(e,n){return re(e,n,!0,!0)},track:function(e,n,t){if("string"==typeof e){i.customEventFilter&&!i.customEventFilter(e)&&m.warn(te(e));var r=B.getUser(),o={kind:"custom",key:e,user:r,url:i.getCurrentUrl(),creationDate:(new Date).getTime()};r&&r.anonymous&&(o.contextKind=ue(r)),null!=n&&(o.data=n),null!=t&&(o.metricValue=t),Z(o);}else h.maybeReportError(new c(te(e)));},alias:ce,on:function(e,n,t){me(e)?(p=!0,M&&pe(),h.on(e,n,t)):h.on.apply(h,arguments);},off:function(e){if(h.off.apply(h,arguments),me(e)){var n=!1;h.getEvents().forEach((function(e){me(e)&&h.getEventListenerCount(e)>0&&(n=!0);})),n||(p=!1,g&&void 0===z&&de());}},setStreaming:function(e){var n=null===e?void 0:e;n!==z&&(z=n,pe());},flush:function(e){return I(b?F.flush():Promise.resolve(),e)},allFlags:function(){var e={};if(!J)return e;for(var n in J)q(J,n)&&(e[n]=re(n,null,!w.sendEventsOnlyForVariation).value);return e},close:function(e){if(H)return I(Promise.resolve(),e);var n=function(){H=!0,J={};};return I(Promise.resolve().then((function(){if(de(),N&&N.stop(),b)return F.stop(),F.flush()})).then(n).catch(n),e)}},options:w,emitter:h,ident:B,logger:m,requestor:A,start:function(){b&&(N&&N.start(),F.start());},enqueueEvent:Z,getFlagsInternal:function(){return J},getEnvironmentId:function(){return k},internalChangeEventName:"internal-change"}}function Ce(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function qe(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r);}return t}function Ve(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?qe(Object(t),!0).forEach((function(n){Ce(e,n,t[n]);})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):qe(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n));}));}return e}var _e={promise:Promise.resolve({status:200,header:function(){return null},body:null})};function Je(e,n,t,r,o){if(o&&!function(){var e=window.navigator&&window.navigator.userAgent;if(e){var n=e.match(/Chrom(e|ium)\/([0-9]+)\./);if(n)return parseInt(n[2],10)<73}return !0}())return _e;var i=new window.XMLHttpRequest;for(var a in i.open(e,n,!o),t||{})Object.prototype.hasOwnProperty.call(t,a)&&i.setRequestHeader(a,t[a]);if(o)return i.send(r),_e;var u;return {promise:new Promise((function(e,n){i.addEventListener("load",(function(){u||e({status:i.status,header:function(e){return i.getResponseHeader(e)},body:i.responseText});})),i.addEventListener("error",(function(){u||n(new Error);})),i.send(r);})),cancel:function(){u=!0,i.abort();}}}function ze(e){var n,t={synchronousFlush:!1};if(window.XMLHttpRequest){var r=e&&e.disableSyncEventPost;t.httpRequest=function(e,n,o,i){var a=t.synchronousFlush&!r;return t.synchronousFlush=!1,Je(e,n,o,i,a)};}t.httpAllowsPost=function(){return void 0===n&&(n=!!window.XMLHttpRequest&&"withCredentials"in new window.XMLHttpRequest),n},t.httpFallbackPing=function(e){(new window.Image).src=e;};var o,i=e&&e.eventUrlTransformer;t.getCurrentUrl=function(){return i?i(window.location.href):window.location.href},t.isDoNotTrack=function(){var e;return 1===(e=window.navigator&&void 0!==window.navigator.doNotTrack?window.navigator.doNotTrack:window.navigator&&void 0!==window.navigator.msDoNotTrack?window.navigator.msDoNotTrack:window.doNotTrack)||!0===e||"1"===e||"yes"===e};try{window.localStorage&&(t.localStorage={get:function(e){return new Promise((function(n){n(window.localStorage.getItem(e));}))},set:function(e,n){return new Promise((function(t){window.localStorage.setItem(e,n),t();}))},clear:function(e){return new Promise((function(n){window.localStorage.removeItem(e),n();}))}});}catch(e){t.localStorage=null;}if(e&&e.useReport&&"function"==typeof window.EventSourcePolyfill&&window.EventSourcePolyfill.supportedOptions&&window.EventSourcePolyfill.supportedOptions.method?(t.eventSourceAllowsReport=!0,o=window.EventSourcePolyfill):(t.eventSourceAllowsReport=!1,o=window.EventSource),window.EventSource){var a=3e5;t.eventSourceFactory=function(e,n){var t=Ve(Ve({},{heartbeatTimeout:a,silentTimeout:a,skipDefaultHeaders:!0}),n);return new o(e,t)},t.eventSourceIsActive=function(e){return e.readyState===window.EventSource.OPEN||e.readyState===window.EventSource.CONNECTING};}return t.userAgent="JSClient",t.version="2.20.2",t.diagnosticSdkData={name:"js-client-sdk",version:"2.20.2"},t.diagnosticPlatformData={name:"JS"},t.diagnosticUseCombinedEvent=!0,t}var Me=/[|\\{}()[\]^$+*?.]/g,He=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(Me,"\\$&")};function Ke(e,n,t,r){var o,i,a=(("substring"===e.kind||"regex"===e.kind)&&r.includes("/")?n:n.replace(r,"")).replace(t,"");switch(e.kind){case"exact":i=n,o=new RegExp("^"+He(e.url)+"/?$");break;case"canonical":i=a,o=new RegExp("^"+He(e.url)+"/?$");break;case"substring":i=a,o=new RegExp(".*"+He(e.substring)+".*$");break;case"regex":i=a,o=new RegExp(e.pattern);break;default:return !1}return o.test(i)}function $e(e,n){for(var t={},r=null,o=[],i=0;i<e.length;i++)for(var a=e[i],u=a.urls||[],s=0;s<u.length;s++)if(Ke(u[s],window.location.href,window.location.search,window.location.hash)){"pageview"===a.kind?n("pageview",a):(o.push(a),n("click_pageview",a));break}return o.length>0&&(r=function(e){for(var t=function(e,n){for(var t=[],r=0;r<n.length;r++)for(var o=e.target,i=n[r],a=i.selector,u=document.querySelectorAll(a);o&&u.length>0;){for(var s=0;s<u.length;s++)o===u[s]&&t.push(i);o=o.parentNode;}return t}(e,o),r=0;r<t.length;r++)n("click",t[r]);},document.addEventListener("click",r)),t.dispose=function(){document.removeEventListener("click",r);},t}function Be(e,n){var t,r;function o(){r&&r.dispose(),t&&t.length&&(r=$e(t,i));}function i(n,t){var r=e.ident.getUser(),o={kind:n,key:t.key,data:null,url:window.location.href,user:r,creationDate:(new Date).getTime()};return r&&r.anonymous&&(o.contextKind="anonymousUser"),"click"===n&&(o.selector=t.selector),e.enqueueEvent(o)}return e.requestor.fetchJSON("/sdk/goals/"+e.getEnvironmentId()).then((function(e){e&&e.length>0&&(r=$e(t=e,i),function(e,n){var t,r=window.location.href;function o(){(t=window.location.href)!==r&&(r=t,n());}!function e(n,t){n(),setTimeout((function(){e(n,t);}),t);}(o,e),window.history&&window.history.pushState?window.addEventListener("popstate",o):window.addEventListener("hashchange",o);}(300,o)),n();})).catch((function(t){e.emitter.maybeReportError(new g.LDUnexpectedResponseError((t&&t.message,t.message))),n();})),{}}var Ge={fetchGoals:{default:!0},hash:{type:"string"},eventProcessor:{type:"object"},eventUrlTransformer:{type:"function"},disableSyncEventPost:{default:!1}};function Xe(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=ze(t),o=Ae(e,n,t,r,Ge),i=o.client,a=o.options,u=o.emitter,s=new Promise((function(e){var n=u.on("goalsReady",(function(){u.off("goalsReady",n),e();}));}));i.waitUntilGoalsReady=function(){return s},a.fetchGoals?Be(o,(function(){return u.emit("goalsReady")})):u.emit("goalsReady"),"complete"!==document.readyState?window.addEventListener("load",o.start):o.start();var c=function(){r.synchronousFlush=!0,i.flush().catch((function(){})),r.synchronousFlush=!1;};return window.addEventListener("beforeunload",c),window.addEventListener("unload",c),i}var Ye={initialize:function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return console&&console.warn&&console.warn(Oe.deprecated("default export","named LDClient export")),Xe(e,n,t)},version:"2.20.2"};
|
|
16234
|
-
|
|
16235
|
-
/**
|
|
16236
|
-
* lodash (Custom Build) <https://lodash.com/>
|
|
16237
|
-
* Build: `lodash modularize exports="npm" -o ./`
|
|
16238
|
-
* Copyright jQuery Foundation and other contributors <https://jquery.org/>
|
|
16239
|
-
* Released under MIT license <https://lodash.com/license>
|
|
16240
|
-
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
16241
|
-
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
16242
|
-
*/
|
|
16243
|
-
|
|
16244
|
-
/** Used as references for various `Number` constants. */
|
|
16245
|
-
var INFINITY = 1 / 0;
|
|
16246
|
-
|
|
16247
|
-
/** `Object#toString` result references. */
|
|
16248
|
-
var symbolTag = '[object Symbol]';
|
|
16249
|
-
|
|
16250
|
-
/** Used to match words composed of alphanumeric characters. */
|
|
16251
|
-
var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
|
|
16252
|
-
|
|
16253
|
-
/** Used to match Latin Unicode letters (excluding mathematical operators). */
|
|
16254
|
-
var reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g;
|
|
16255
|
-
|
|
16256
|
-
/** Used to compose unicode character classes. */
|
|
16257
|
-
var rsAstralRange = '\\ud800-\\udfff',
|
|
16258
|
-
rsComboMarksRange = '\\u0300-\\u036f\\ufe20-\\ufe23',
|
|
16259
|
-
rsComboSymbolsRange = '\\u20d0-\\u20f0',
|
|
16260
|
-
rsDingbatRange = '\\u2700-\\u27bf',
|
|
16261
|
-
rsLowerRange = 'a-z\\xdf-\\xf6\\xf8-\\xff',
|
|
16262
|
-
rsMathOpRange = '\\xac\\xb1\\xd7\\xf7',
|
|
16263
|
-
rsNonCharRange = '\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf',
|
|
16264
|
-
rsPunctuationRange = '\\u2000-\\u206f',
|
|
16265
|
-
rsSpaceRange = ' \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000',
|
|
16266
|
-
rsUpperRange = 'A-Z\\xc0-\\xd6\\xd8-\\xde',
|
|
16267
|
-
rsVarRange = '\\ufe0e\\ufe0f',
|
|
16268
|
-
rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange;
|
|
16269
|
-
|
|
16270
|
-
/** Used to compose unicode capture groups. */
|
|
16271
|
-
var rsApos = "['\u2019]",
|
|
16272
|
-
rsAstral = '[' + rsAstralRange + ']',
|
|
16273
|
-
rsBreak = '[' + rsBreakRange + ']',
|
|
16274
|
-
rsCombo = '[' + rsComboMarksRange + rsComboSymbolsRange + ']',
|
|
16275
|
-
rsDigits = '\\d+',
|
|
16276
|
-
rsDingbat = '[' + rsDingbatRange + ']',
|
|
16277
|
-
rsLower = '[' + rsLowerRange + ']',
|
|
16278
|
-
rsMisc = '[^' + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + ']',
|
|
16279
|
-
rsFitz = '\\ud83c[\\udffb-\\udfff]',
|
|
16280
|
-
rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',
|
|
16281
|
-
rsNonAstral = '[^' + rsAstralRange + ']',
|
|
16282
|
-
rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}',
|
|
16283
|
-
rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]',
|
|
16284
|
-
rsUpper = '[' + rsUpperRange + ']',
|
|
16285
|
-
rsZWJ = '\\u200d';
|
|
16286
|
-
|
|
16287
|
-
/** Used to compose unicode regexes. */
|
|
16288
|
-
var rsLowerMisc = '(?:' + rsLower + '|' + rsMisc + ')',
|
|
16289
|
-
rsUpperMisc = '(?:' + rsUpper + '|' + rsMisc + ')',
|
|
16290
|
-
rsOptLowerContr = '(?:' + rsApos + '(?:d|ll|m|re|s|t|ve))?',
|
|
16291
|
-
rsOptUpperContr = '(?:' + rsApos + '(?:D|LL|M|RE|S|T|VE))?',
|
|
16292
|
-
reOptMod = rsModifier + '?',
|
|
16293
|
-
rsOptVar = '[' + rsVarRange + ']?',
|
|
16294
|
-
rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',
|
|
16295
|
-
rsSeq = rsOptVar + reOptMod + rsOptJoin,
|
|
16296
|
-
rsEmoji = '(?:' + [rsDingbat, rsRegional, rsSurrPair].join('|') + ')' + rsSeq,
|
|
16297
|
-
rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';
|
|
16298
|
-
|
|
16299
|
-
/** Used to match apostrophes. */
|
|
16300
|
-
var reApos = RegExp(rsApos, 'g');
|
|
16301
|
-
|
|
16302
|
-
/**
|
|
16303
|
-
* Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) and
|
|
16304
|
-
* [combining diacritical marks for symbols](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks_for_Symbols).
|
|
16305
|
-
*/
|
|
16306
|
-
var reComboMark = RegExp(rsCombo, 'g');
|
|
16307
|
-
|
|
16308
|
-
/** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */
|
|
16309
|
-
var reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');
|
|
16310
|
-
|
|
16311
|
-
/** Used to match complex or compound words. */
|
|
16312
|
-
var reUnicodeWord = RegExp([
|
|
16313
|
-
rsUpper + '?' + rsLower + '+' + rsOptLowerContr + '(?=' + [rsBreak, rsUpper, '$'].join('|') + ')',
|
|
16314
|
-
rsUpperMisc + '+' + rsOptUpperContr + '(?=' + [rsBreak, rsUpper + rsLowerMisc, '$'].join('|') + ')',
|
|
16315
|
-
rsUpper + '?' + rsLowerMisc + '+' + rsOptLowerContr,
|
|
16316
|
-
rsUpper + '+' + rsOptUpperContr,
|
|
16317
|
-
rsDigits,
|
|
16318
|
-
rsEmoji
|
|
16319
|
-
].join('|'), 'g');
|
|
16320
|
-
|
|
16321
|
-
/** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */
|
|
16322
|
-
var reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange + rsComboMarksRange + rsComboSymbolsRange + rsVarRange + ']');
|
|
16323
|
-
|
|
16324
|
-
/** Used to detect strings that need a more robust regexp to match words. */
|
|
16325
|
-
var reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
|
|
16326
|
-
|
|
16327
|
-
/** Used to map Latin Unicode letters to basic Latin letters. */
|
|
16328
|
-
var deburredLetters = {
|
|
16329
|
-
// Latin-1 Supplement block.
|
|
16330
|
-
'\xc0': 'A', '\xc1': 'A', '\xc2': 'A', '\xc3': 'A', '\xc4': 'A', '\xc5': 'A',
|
|
16331
|
-
'\xe0': 'a', '\xe1': 'a', '\xe2': 'a', '\xe3': 'a', '\xe4': 'a', '\xe5': 'a',
|
|
16332
|
-
'\xc7': 'C', '\xe7': 'c',
|
|
16333
|
-
'\xd0': 'D', '\xf0': 'd',
|
|
16334
|
-
'\xc8': 'E', '\xc9': 'E', '\xca': 'E', '\xcb': 'E',
|
|
16335
|
-
'\xe8': 'e', '\xe9': 'e', '\xea': 'e', '\xeb': 'e',
|
|
16336
|
-
'\xcc': 'I', '\xcd': 'I', '\xce': 'I', '\xcf': 'I',
|
|
16337
|
-
'\xec': 'i', '\xed': 'i', '\xee': 'i', '\xef': 'i',
|
|
16338
|
-
'\xd1': 'N', '\xf1': 'n',
|
|
16339
|
-
'\xd2': 'O', '\xd3': 'O', '\xd4': 'O', '\xd5': 'O', '\xd6': 'O', '\xd8': 'O',
|
|
16340
|
-
'\xf2': 'o', '\xf3': 'o', '\xf4': 'o', '\xf5': 'o', '\xf6': 'o', '\xf8': 'o',
|
|
16341
|
-
'\xd9': 'U', '\xda': 'U', '\xdb': 'U', '\xdc': 'U',
|
|
16342
|
-
'\xf9': 'u', '\xfa': 'u', '\xfb': 'u', '\xfc': 'u',
|
|
16343
|
-
'\xdd': 'Y', '\xfd': 'y', '\xff': 'y',
|
|
16344
|
-
'\xc6': 'Ae', '\xe6': 'ae',
|
|
16345
|
-
'\xde': 'Th', '\xfe': 'th',
|
|
16346
|
-
'\xdf': 'ss',
|
|
16347
|
-
// Latin Extended-A block.
|
|
16348
|
-
'\u0100': 'A', '\u0102': 'A', '\u0104': 'A',
|
|
16349
|
-
'\u0101': 'a', '\u0103': 'a', '\u0105': 'a',
|
|
16350
|
-
'\u0106': 'C', '\u0108': 'C', '\u010a': 'C', '\u010c': 'C',
|
|
16351
|
-
'\u0107': 'c', '\u0109': 'c', '\u010b': 'c', '\u010d': 'c',
|
|
16352
|
-
'\u010e': 'D', '\u0110': 'D', '\u010f': 'd', '\u0111': 'd',
|
|
16353
|
-
'\u0112': 'E', '\u0114': 'E', '\u0116': 'E', '\u0118': 'E', '\u011a': 'E',
|
|
16354
|
-
'\u0113': 'e', '\u0115': 'e', '\u0117': 'e', '\u0119': 'e', '\u011b': 'e',
|
|
16355
|
-
'\u011c': 'G', '\u011e': 'G', '\u0120': 'G', '\u0122': 'G',
|
|
16356
|
-
'\u011d': 'g', '\u011f': 'g', '\u0121': 'g', '\u0123': 'g',
|
|
16357
|
-
'\u0124': 'H', '\u0126': 'H', '\u0125': 'h', '\u0127': 'h',
|
|
16358
|
-
'\u0128': 'I', '\u012a': 'I', '\u012c': 'I', '\u012e': 'I', '\u0130': 'I',
|
|
16359
|
-
'\u0129': 'i', '\u012b': 'i', '\u012d': 'i', '\u012f': 'i', '\u0131': 'i',
|
|
16360
|
-
'\u0134': 'J', '\u0135': 'j',
|
|
16361
|
-
'\u0136': 'K', '\u0137': 'k', '\u0138': 'k',
|
|
16362
|
-
'\u0139': 'L', '\u013b': 'L', '\u013d': 'L', '\u013f': 'L', '\u0141': 'L',
|
|
16363
|
-
'\u013a': 'l', '\u013c': 'l', '\u013e': 'l', '\u0140': 'l', '\u0142': 'l',
|
|
16364
|
-
'\u0143': 'N', '\u0145': 'N', '\u0147': 'N', '\u014a': 'N',
|
|
16365
|
-
'\u0144': 'n', '\u0146': 'n', '\u0148': 'n', '\u014b': 'n',
|
|
16366
|
-
'\u014c': 'O', '\u014e': 'O', '\u0150': 'O',
|
|
16367
|
-
'\u014d': 'o', '\u014f': 'o', '\u0151': 'o',
|
|
16368
|
-
'\u0154': 'R', '\u0156': 'R', '\u0158': 'R',
|
|
16369
|
-
'\u0155': 'r', '\u0157': 'r', '\u0159': 'r',
|
|
16370
|
-
'\u015a': 'S', '\u015c': 'S', '\u015e': 'S', '\u0160': 'S',
|
|
16371
|
-
'\u015b': 's', '\u015d': 's', '\u015f': 's', '\u0161': 's',
|
|
16372
|
-
'\u0162': 'T', '\u0164': 'T', '\u0166': 'T',
|
|
16373
|
-
'\u0163': 't', '\u0165': 't', '\u0167': 't',
|
|
16374
|
-
'\u0168': 'U', '\u016a': 'U', '\u016c': 'U', '\u016e': 'U', '\u0170': 'U', '\u0172': 'U',
|
|
16375
|
-
'\u0169': 'u', '\u016b': 'u', '\u016d': 'u', '\u016f': 'u', '\u0171': 'u', '\u0173': 'u',
|
|
16376
|
-
'\u0174': 'W', '\u0175': 'w',
|
|
16377
|
-
'\u0176': 'Y', '\u0177': 'y', '\u0178': 'Y',
|
|
16378
|
-
'\u0179': 'Z', '\u017b': 'Z', '\u017d': 'Z',
|
|
16379
|
-
'\u017a': 'z', '\u017c': 'z', '\u017e': 'z',
|
|
16380
|
-
'\u0132': 'IJ', '\u0133': 'ij',
|
|
16381
|
-
'\u0152': 'Oe', '\u0153': 'oe',
|
|
16382
|
-
'\u0149': "'n", '\u017f': 'ss'
|
|
16383
|
-
};
|
|
16384
|
-
|
|
16385
|
-
/** Detect free variable `global` from Node.js. */
|
|
16386
|
-
var freeGlobal = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
|
|
16387
|
-
|
|
16388
|
-
/** Detect free variable `self`. */
|
|
16389
|
-
var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
|
|
16390
|
-
|
|
16391
|
-
/** Used as a reference to the global object. */
|
|
16392
|
-
var root = freeGlobal || freeSelf || Function('return this')();
|
|
16393
|
-
|
|
16394
|
-
/**
|
|
16395
|
-
* A specialized version of `_.reduce` for arrays without support for
|
|
16396
|
-
* iteratee shorthands.
|
|
16397
|
-
*
|
|
16398
|
-
* @private
|
|
16399
|
-
* @param {Array} [array] The array to iterate over.
|
|
16400
|
-
* @param {Function} iteratee The function invoked per iteration.
|
|
16401
|
-
* @param {*} [accumulator] The initial value.
|
|
16402
|
-
* @param {boolean} [initAccum] Specify using the first element of `array` as
|
|
16403
|
-
* the initial value.
|
|
16404
|
-
* @returns {*} Returns the accumulated value.
|
|
16405
|
-
*/
|
|
16406
|
-
function arrayReduce(array, iteratee, accumulator, initAccum) {
|
|
16407
|
-
var index = -1,
|
|
16408
|
-
length = array ? array.length : 0;
|
|
16409
|
-
|
|
16410
|
-
if (initAccum && length) {
|
|
16411
|
-
accumulator = array[++index];
|
|
16412
|
-
}
|
|
16413
|
-
while (++index < length) {
|
|
16414
|
-
accumulator = iteratee(accumulator, array[index], index, array);
|
|
16415
|
-
}
|
|
16416
|
-
return accumulator;
|
|
16417
|
-
}
|
|
16418
|
-
|
|
16419
|
-
/**
|
|
16420
|
-
* Converts an ASCII `string` to an array.
|
|
16421
|
-
*
|
|
16422
|
-
* @private
|
|
16423
|
-
* @param {string} string The string to convert.
|
|
16424
|
-
* @returns {Array} Returns the converted array.
|
|
16425
|
-
*/
|
|
16426
|
-
function asciiToArray(string) {
|
|
16427
|
-
return string.split('');
|
|
16428
|
-
}
|
|
16429
|
-
|
|
16430
|
-
/**
|
|
16431
|
-
* Splits an ASCII `string` into an array of its words.
|
|
16432
|
-
*
|
|
16433
|
-
* @private
|
|
16434
|
-
* @param {string} The string to inspect.
|
|
16435
|
-
* @returns {Array} Returns the words of `string`.
|
|
16436
|
-
*/
|
|
16437
|
-
function asciiWords(string) {
|
|
16438
|
-
return string.match(reAsciiWord) || [];
|
|
16439
|
-
}
|
|
16440
|
-
|
|
16441
|
-
/**
|
|
16442
|
-
* The base implementation of `_.propertyOf` without support for deep paths.
|
|
16443
|
-
*
|
|
16444
|
-
* @private
|
|
16445
|
-
* @param {Object} object The object to query.
|
|
16446
|
-
* @returns {Function} Returns the new accessor function.
|
|
16447
|
-
*/
|
|
16448
|
-
function basePropertyOf(object) {
|
|
16449
|
-
return function(key) {
|
|
16450
|
-
return object == null ? undefined : object[key];
|
|
16451
|
-
};
|
|
16452
|
-
}
|
|
16453
|
-
|
|
16454
|
-
/**
|
|
16455
|
-
* Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A
|
|
16456
|
-
* letters to basic Latin letters.
|
|
16457
|
-
*
|
|
16458
|
-
* @private
|
|
16459
|
-
* @param {string} letter The matched letter to deburr.
|
|
16460
|
-
* @returns {string} Returns the deburred letter.
|
|
16461
|
-
*/
|
|
16462
|
-
var deburrLetter = basePropertyOf(deburredLetters);
|
|
16463
|
-
|
|
16464
|
-
/**
|
|
16465
|
-
* Checks if `string` contains Unicode symbols.
|
|
16466
|
-
*
|
|
16467
|
-
* @private
|
|
16468
|
-
* @param {string} string The string to inspect.
|
|
16469
|
-
* @returns {boolean} Returns `true` if a symbol is found, else `false`.
|
|
16470
|
-
*/
|
|
16471
|
-
function hasUnicode(string) {
|
|
16472
|
-
return reHasUnicode.test(string);
|
|
16473
|
-
}
|
|
16474
|
-
|
|
16475
|
-
/**
|
|
16476
|
-
* Checks if `string` contains a word composed of Unicode symbols.
|
|
16477
|
-
*
|
|
16478
|
-
* @private
|
|
16479
|
-
* @param {string} string The string to inspect.
|
|
16480
|
-
* @returns {boolean} Returns `true` if a word is found, else `false`.
|
|
16481
|
-
*/
|
|
16482
|
-
function hasUnicodeWord(string) {
|
|
16483
|
-
return reHasUnicodeWord.test(string);
|
|
16484
|
-
}
|
|
16485
|
-
|
|
16486
|
-
/**
|
|
16487
|
-
* Converts `string` to an array.
|
|
16488
|
-
*
|
|
16489
|
-
* @private
|
|
16490
|
-
* @param {string} string The string to convert.
|
|
16491
|
-
* @returns {Array} Returns the converted array.
|
|
16492
|
-
*/
|
|
16493
|
-
function stringToArray(string) {
|
|
16494
|
-
return hasUnicode(string)
|
|
16495
|
-
? unicodeToArray(string)
|
|
16496
|
-
: asciiToArray(string);
|
|
16497
|
-
}
|
|
16498
|
-
|
|
16499
|
-
/**
|
|
16500
|
-
* Converts a Unicode `string` to an array.
|
|
16501
|
-
*
|
|
16502
|
-
* @private
|
|
16503
|
-
* @param {string} string The string to convert.
|
|
16504
|
-
* @returns {Array} Returns the converted array.
|
|
16505
|
-
*/
|
|
16506
|
-
function unicodeToArray(string) {
|
|
16507
|
-
return string.match(reUnicode) || [];
|
|
16508
|
-
}
|
|
16509
|
-
|
|
16510
|
-
/**
|
|
16511
|
-
* Splits a Unicode `string` into an array of its words.
|
|
16512
|
-
*
|
|
16513
|
-
* @private
|
|
16514
|
-
* @param {string} The string to inspect.
|
|
16515
|
-
* @returns {Array} Returns the words of `string`.
|
|
16516
|
-
*/
|
|
16517
|
-
function unicodeWords(string) {
|
|
16518
|
-
return string.match(reUnicodeWord) || [];
|
|
16519
|
-
}
|
|
16520
|
-
|
|
16521
|
-
/** Used for built-in method references. */
|
|
16522
|
-
var objectProto = Object.prototype;
|
|
16523
|
-
|
|
16524
|
-
/**
|
|
16525
|
-
* Used to resolve the
|
|
16526
|
-
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
16527
|
-
* of values.
|
|
16528
|
-
*/
|
|
16529
|
-
var objectToString = objectProto.toString;
|
|
16530
|
-
|
|
16531
|
-
/** Built-in value references. */
|
|
16532
|
-
var Symbol$1 = root.Symbol;
|
|
16533
|
-
|
|
16534
|
-
/** Used to convert symbols to primitives and strings. */
|
|
16535
|
-
var symbolProto = Symbol$1 ? Symbol$1.prototype : undefined,
|
|
16536
|
-
symbolToString = symbolProto ? symbolProto.toString : undefined;
|
|
16537
|
-
|
|
16538
|
-
/**
|
|
16539
|
-
* The base implementation of `_.slice` without an iteratee call guard.
|
|
16540
|
-
*
|
|
16541
|
-
* @private
|
|
16542
|
-
* @param {Array} array The array to slice.
|
|
16543
|
-
* @param {number} [start=0] The start position.
|
|
16544
|
-
* @param {number} [end=array.length] The end position.
|
|
16545
|
-
* @returns {Array} Returns the slice of `array`.
|
|
16546
|
-
*/
|
|
16547
|
-
function baseSlice(array, start, end) {
|
|
16548
|
-
var index = -1,
|
|
16549
|
-
length = array.length;
|
|
16550
|
-
|
|
16551
|
-
if (start < 0) {
|
|
16552
|
-
start = -start > length ? 0 : (length + start);
|
|
16553
|
-
}
|
|
16554
|
-
end = end > length ? length : end;
|
|
16555
|
-
if (end < 0) {
|
|
16556
|
-
end += length;
|
|
16557
|
-
}
|
|
16558
|
-
length = start > end ? 0 : ((end - start) >>> 0);
|
|
16559
|
-
start >>>= 0;
|
|
16560
|
-
|
|
16561
|
-
var result = Array(length);
|
|
16562
|
-
while (++index < length) {
|
|
16563
|
-
result[index] = array[index + start];
|
|
16564
|
-
}
|
|
16565
|
-
return result;
|
|
16566
|
-
}
|
|
16567
|
-
|
|
16568
|
-
/**
|
|
16569
|
-
* The base implementation of `_.toString` which doesn't convert nullish
|
|
16570
|
-
* values to empty strings.
|
|
16571
|
-
*
|
|
16572
|
-
* @private
|
|
16573
|
-
* @param {*} value The value to process.
|
|
16574
|
-
* @returns {string} Returns the string.
|
|
16575
|
-
*/
|
|
16576
|
-
function baseToString(value) {
|
|
16577
|
-
// Exit early for strings to avoid a performance hit in some environments.
|
|
16578
|
-
if (typeof value == 'string') {
|
|
16579
|
-
return value;
|
|
16580
|
-
}
|
|
16581
|
-
if (isSymbol(value)) {
|
|
16582
|
-
return symbolToString ? symbolToString.call(value) : '';
|
|
16583
|
-
}
|
|
16584
|
-
var result = (value + '');
|
|
16585
|
-
return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
|
|
16586
|
-
}
|
|
16587
|
-
|
|
16588
|
-
/**
|
|
16589
|
-
* Casts `array` to a slice if it's needed.
|
|
16590
|
-
*
|
|
16591
|
-
* @private
|
|
16592
|
-
* @param {Array} array The array to inspect.
|
|
16593
|
-
* @param {number} start The start position.
|
|
16594
|
-
* @param {number} [end=array.length] The end position.
|
|
16595
|
-
* @returns {Array} Returns the cast slice.
|
|
16596
|
-
*/
|
|
16597
|
-
function castSlice(array, start, end) {
|
|
16598
|
-
var length = array.length;
|
|
16599
|
-
end = end === undefined ? length : end;
|
|
16600
|
-
return (!start && end >= length) ? array : baseSlice(array, start, end);
|
|
16601
|
-
}
|
|
16602
|
-
|
|
16603
|
-
/**
|
|
16604
|
-
* Creates a function like `_.lowerFirst`.
|
|
16605
|
-
*
|
|
16606
|
-
* @private
|
|
16607
|
-
* @param {string} methodName The name of the `String` case method to use.
|
|
16608
|
-
* @returns {Function} Returns the new case function.
|
|
16609
|
-
*/
|
|
16610
|
-
function createCaseFirst(methodName) {
|
|
16611
|
-
return function(string) {
|
|
16612
|
-
string = toString(string);
|
|
16613
|
-
|
|
16614
|
-
var strSymbols = hasUnicode(string)
|
|
16615
|
-
? stringToArray(string)
|
|
16616
|
-
: undefined;
|
|
16617
|
-
|
|
16618
|
-
var chr = strSymbols
|
|
16619
|
-
? strSymbols[0]
|
|
16620
|
-
: string.charAt(0);
|
|
16621
|
-
|
|
16622
|
-
var trailing = strSymbols
|
|
16623
|
-
? castSlice(strSymbols, 1).join('')
|
|
16624
|
-
: string.slice(1);
|
|
16625
|
-
|
|
16626
|
-
return chr[methodName]() + trailing;
|
|
16627
|
-
};
|
|
16628
|
-
}
|
|
16629
|
-
|
|
16630
|
-
/**
|
|
16631
|
-
* Creates a function like `_.camelCase`.
|
|
16632
|
-
*
|
|
16633
|
-
* @private
|
|
16634
|
-
* @param {Function} callback The function to combine each word.
|
|
16635
|
-
* @returns {Function} Returns the new compounder function.
|
|
16636
|
-
*/
|
|
16637
|
-
function createCompounder(callback) {
|
|
16638
|
-
return function(string) {
|
|
16639
|
-
return arrayReduce(words(deburr(string).replace(reApos, '')), callback, '');
|
|
16640
|
-
};
|
|
16641
|
-
}
|
|
16642
|
-
|
|
16643
|
-
/**
|
|
16644
|
-
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
16645
|
-
* and has a `typeof` result of "object".
|
|
16646
|
-
*
|
|
16647
|
-
* @static
|
|
16648
|
-
* @memberOf _
|
|
16649
|
-
* @since 4.0.0
|
|
16650
|
-
* @category Lang
|
|
16651
|
-
* @param {*} value The value to check.
|
|
16652
|
-
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
|
|
16653
|
-
* @example
|
|
16654
|
-
*
|
|
16655
|
-
* _.isObjectLike({});
|
|
16656
|
-
* // => true
|
|
16657
|
-
*
|
|
16658
|
-
* _.isObjectLike([1, 2, 3]);
|
|
16659
|
-
* // => true
|
|
16660
|
-
*
|
|
16661
|
-
* _.isObjectLike(_.noop);
|
|
16662
|
-
* // => false
|
|
16663
|
-
*
|
|
16664
|
-
* _.isObjectLike(null);
|
|
16665
|
-
* // => false
|
|
16666
|
-
*/
|
|
16667
|
-
function isObjectLike(value) {
|
|
16668
|
-
return !!value && typeof value == 'object';
|
|
16669
|
-
}
|
|
16670
|
-
|
|
16671
|
-
/**
|
|
16672
|
-
* Checks if `value` is classified as a `Symbol` primitive or object.
|
|
16673
|
-
*
|
|
16674
|
-
* @static
|
|
16675
|
-
* @memberOf _
|
|
16676
|
-
* @since 4.0.0
|
|
16677
|
-
* @category Lang
|
|
16678
|
-
* @param {*} value The value to check.
|
|
16679
|
-
* @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
|
|
16680
|
-
* @example
|
|
16681
|
-
*
|
|
16682
|
-
* _.isSymbol(Symbol.iterator);
|
|
16683
|
-
* // => true
|
|
16684
|
-
*
|
|
16685
|
-
* _.isSymbol('abc');
|
|
16686
|
-
* // => false
|
|
16687
|
-
*/
|
|
16688
|
-
function isSymbol(value) {
|
|
16689
|
-
return typeof value == 'symbol' ||
|
|
16690
|
-
(isObjectLike(value) && objectToString.call(value) == symbolTag);
|
|
16691
|
-
}
|
|
16692
|
-
|
|
16693
|
-
/**
|
|
16694
|
-
* Converts `value` to a string. An empty string is returned for `null`
|
|
16695
|
-
* and `undefined` values. The sign of `-0` is preserved.
|
|
16696
|
-
*
|
|
16697
|
-
* @static
|
|
16698
|
-
* @memberOf _
|
|
16699
|
-
* @since 4.0.0
|
|
16700
|
-
* @category Lang
|
|
16701
|
-
* @param {*} value The value to process.
|
|
16702
|
-
* @returns {string} Returns the string.
|
|
16703
|
-
* @example
|
|
16704
|
-
*
|
|
16705
|
-
* _.toString(null);
|
|
16706
|
-
* // => ''
|
|
16707
|
-
*
|
|
16708
|
-
* _.toString(-0);
|
|
16709
|
-
* // => '-0'
|
|
16710
|
-
*
|
|
16711
|
-
* _.toString([1, 2, 3]);
|
|
16712
|
-
* // => '1,2,3'
|
|
16713
|
-
*/
|
|
16714
|
-
function toString(value) {
|
|
16715
|
-
return value == null ? '' : baseToString(value);
|
|
16716
|
-
}
|
|
16717
|
-
|
|
16718
|
-
/**
|
|
16719
|
-
* Converts `string` to [camel case](https://en.wikipedia.org/wiki/CamelCase).
|
|
16720
|
-
*
|
|
16721
|
-
* @static
|
|
16722
|
-
* @memberOf _
|
|
16723
|
-
* @since 3.0.0
|
|
16724
|
-
* @category String
|
|
16725
|
-
* @param {string} [string=''] The string to convert.
|
|
16726
|
-
* @returns {string} Returns the camel cased string.
|
|
16727
|
-
* @example
|
|
16728
|
-
*
|
|
16729
|
-
* _.camelCase('Foo Bar');
|
|
16730
|
-
* // => 'fooBar'
|
|
16731
|
-
*
|
|
16732
|
-
* _.camelCase('--foo-bar--');
|
|
16733
|
-
* // => 'fooBar'
|
|
16734
|
-
*
|
|
16735
|
-
* _.camelCase('__FOO_BAR__');
|
|
16736
|
-
* // => 'fooBar'
|
|
16737
|
-
*/
|
|
16738
|
-
var camelCase = createCompounder(function(result, word, index) {
|
|
16739
|
-
word = word.toLowerCase();
|
|
16740
|
-
return result + (index ? capitalize(word) : word);
|
|
16741
|
-
});
|
|
16742
|
-
|
|
16743
|
-
/**
|
|
16744
|
-
* Converts the first character of `string` to upper case and the remaining
|
|
16745
|
-
* to lower case.
|
|
16746
|
-
*
|
|
16747
|
-
* @static
|
|
16748
|
-
* @memberOf _
|
|
16749
|
-
* @since 3.0.0
|
|
16750
|
-
* @category String
|
|
16751
|
-
* @param {string} [string=''] The string to capitalize.
|
|
16752
|
-
* @returns {string} Returns the capitalized string.
|
|
16753
|
-
* @example
|
|
16754
|
-
*
|
|
16755
|
-
* _.capitalize('FRED');
|
|
16756
|
-
* // => 'Fred'
|
|
16757
|
-
*/
|
|
16758
|
-
function capitalize(string) {
|
|
16759
|
-
return upperFirst(toString(string).toLowerCase());
|
|
16760
|
-
}
|
|
16761
|
-
|
|
16762
|
-
/**
|
|
16763
|
-
* Deburrs `string` by converting
|
|
16764
|
-
* [Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table)
|
|
16765
|
-
* and [Latin Extended-A](https://en.wikipedia.org/wiki/Latin_Extended-A)
|
|
16766
|
-
* letters to basic Latin letters and removing
|
|
16767
|
-
* [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks).
|
|
16768
|
-
*
|
|
16769
|
-
* @static
|
|
16770
|
-
* @memberOf _
|
|
16771
|
-
* @since 3.0.0
|
|
16772
|
-
* @category String
|
|
16773
|
-
* @param {string} [string=''] The string to deburr.
|
|
16774
|
-
* @returns {string} Returns the deburred string.
|
|
16775
|
-
* @example
|
|
16776
|
-
*
|
|
16777
|
-
* _.deburr('déjà vu');
|
|
16778
|
-
* // => 'deja vu'
|
|
16779
|
-
*/
|
|
16780
|
-
function deburr(string) {
|
|
16781
|
-
string = toString(string);
|
|
16782
|
-
return string && string.replace(reLatin, deburrLetter).replace(reComboMark, '');
|
|
16783
|
-
}
|
|
16784
|
-
|
|
16785
|
-
/**
|
|
16786
|
-
* Converts the first character of `string` to upper case.
|
|
16787
|
-
*
|
|
16788
|
-
* @static
|
|
16789
|
-
* @memberOf _
|
|
16790
|
-
* @since 4.0.0
|
|
16791
|
-
* @category String
|
|
16792
|
-
* @param {string} [string=''] The string to convert.
|
|
16793
|
-
* @returns {string} Returns the converted string.
|
|
16794
|
-
* @example
|
|
16795
|
-
*
|
|
16796
|
-
* _.upperFirst('fred');
|
|
16797
|
-
* // => 'Fred'
|
|
16798
|
-
*
|
|
16799
|
-
* _.upperFirst('FRED');
|
|
16800
|
-
* // => 'FRED'
|
|
16801
|
-
*/
|
|
16802
|
-
var upperFirst = createCaseFirst('toUpperCase');
|
|
16803
|
-
|
|
16804
|
-
/**
|
|
16805
|
-
* Splits `string` into an array of its words.
|
|
16806
|
-
*
|
|
16807
|
-
* @static
|
|
16808
|
-
* @memberOf _
|
|
16809
|
-
* @since 3.0.0
|
|
16810
|
-
* @category String
|
|
16811
|
-
* @param {string} [string=''] The string to inspect.
|
|
16812
|
-
* @param {RegExp|string} [pattern] The pattern to match words.
|
|
16813
|
-
* @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
|
|
16814
|
-
* @returns {Array} Returns the words of `string`.
|
|
16815
|
-
* @example
|
|
16816
|
-
*
|
|
16817
|
-
* _.words('fred, barney, & pebbles');
|
|
16818
|
-
* // => ['fred', 'barney', 'pebbles']
|
|
16819
|
-
*
|
|
16820
|
-
* _.words('fred, barney, & pebbles', /[^, ]+/g);
|
|
16821
|
-
* // => ['fred', 'barney', '&', 'pebbles']
|
|
16822
|
-
*/
|
|
16823
|
-
function words(string, pattern, guard) {
|
|
16824
|
-
string = toString(string);
|
|
16825
|
-
pattern = guard ? undefined : pattern;
|
|
16826
|
-
|
|
16827
|
-
if (pattern === undefined) {
|
|
16828
|
-
return hasUnicodeWord(string) ? unicodeWords(string) : asciiWords(string);
|
|
16829
|
-
}
|
|
16830
|
-
return string.match(pattern) || [];
|
|
16831
|
-
}
|
|
16832
|
-
|
|
16833
|
-
var lodash_camelcase = camelCase;
|
|
16834
|
-
|
|
16835
|
-
var utils = createCommonjsModule(function (module, exports) {
|
|
16836
|
-
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
16837
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
16838
|
-
};
|
|
16839
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16840
|
-
exports.fetchFlags = exports.getFlattenedFlagsFromChangeset = exports.camelCaseKeys = void 0;
|
|
16841
|
-
var lodash_camelcase_1 = __importDefault(lodash_camelcase);
|
|
16842
|
-
|
|
16843
|
-
/**
|
|
16844
|
-
* Transforms a set of flags so that their keys are camelCased. This function ignores
|
|
16845
|
-
* flag keys which start with `$`.
|
|
16846
|
-
*
|
|
16847
|
-
* @param rawFlags A mapping of flag keys and their values
|
|
16848
|
-
* @return A transformed `LDFlagSet` with camelCased flag keys
|
|
16849
|
-
*/
|
|
16850
|
-
var camelCaseKeys = function (rawFlags) {
|
|
16851
|
-
var flags = {};
|
|
16852
|
-
for (var rawFlag in rawFlags) {
|
|
16853
|
-
// Exclude system keys
|
|
16854
|
-
if (rawFlag.indexOf('$') !== 0) {
|
|
16855
|
-
flags[(0, lodash_camelcase_1.default)(rawFlag)] = rawFlags[rawFlag]; // tslint:disable-line:no-unsafe-any
|
|
16856
|
-
}
|
|
16857
|
-
}
|
|
16858
|
-
return flags;
|
|
16859
|
-
};
|
|
16860
|
-
exports.camelCaseKeys = camelCaseKeys;
|
|
16861
|
-
/**
|
|
16862
|
-
* Gets the flags to pass to the provider from the changeset.
|
|
16863
|
-
*
|
|
16864
|
-
* @param changes the `LDFlagChangeset` from the ldClient onchange handler.
|
|
16865
|
-
* @param targetFlags if targetFlags are specified, changes to other flags are ignored and not returned in the
|
|
16866
|
-
* flattened `LDFlagSet`
|
|
16867
|
-
* @param reactOptions reactOptions.useCamelCaseFlagKeys determines whether to change the flag keys to camelCase
|
|
16868
|
-
* @return an `LDFlagSet` with the current flag values from the LDFlagChangeset filtered by `targetFlags`. The returned
|
|
16869
|
-
* object may be empty `{}` if none of the targetFlags were changed.
|
|
16870
|
-
*/
|
|
16871
|
-
var getFlattenedFlagsFromChangeset = function (changes, targetFlags, reactOptions) {
|
|
16872
|
-
var flattened = {};
|
|
16873
|
-
for (var key in changes) {
|
|
16874
|
-
if (!targetFlags || targetFlags[key] !== undefined) {
|
|
16875
|
-
// tslint:disable-next-line:no-unsafe-any
|
|
16876
|
-
var flagKey = reactOptions.useCamelCaseFlagKeys ? (0, lodash_camelcase_1.default)(key) : key;
|
|
16877
|
-
flattened[flagKey] = changes[key].current;
|
|
16878
|
-
}
|
|
16879
|
-
}
|
|
16880
|
-
return flattened;
|
|
16881
|
-
};
|
|
16882
|
-
exports.getFlattenedFlagsFromChangeset = getFlattenedFlagsFromChangeset;
|
|
16883
|
-
/**
|
|
16884
|
-
* Retrieves flag values.
|
|
16885
|
-
*
|
|
16886
|
-
* @param ldClient LaunchDarkly client
|
|
16887
|
-
* @param reactOptions Initialization options for the LaunchDarkly React SDK
|
|
16888
|
-
* @param targetFlags If specified, `launchdarkly-react-client-sdk` will only request and listen to these flags.
|
|
16889
|
-
*
|
|
16890
|
-
* @returns an `LDFlagSet` with the current flag values from LaunchDarkly filtered by `targetFlags`.
|
|
16891
|
-
*/
|
|
16892
|
-
var fetchFlags = function (ldClient, reactOptions, targetFlags) {
|
|
16893
|
-
if (reactOptions === void 0) { reactOptions = types$1.defaultReactOptions; }
|
|
16894
|
-
var rawFlags = {};
|
|
16895
|
-
if (targetFlags) {
|
|
16896
|
-
for (var flag in targetFlags) {
|
|
16897
|
-
rawFlags[flag] = ldClient.variation(flag, targetFlags[flag]);
|
|
16898
|
-
}
|
|
16899
|
-
}
|
|
16900
|
-
else {
|
|
16901
|
-
rawFlags = ldClient.allFlags();
|
|
16902
|
-
}
|
|
16903
|
-
return reactOptions.useCamelCaseFlagKeys ? (0, exports.camelCaseKeys)(rawFlags) : rawFlags;
|
|
16904
|
-
};
|
|
16905
|
-
exports.fetchFlags = fetchFlags;
|
|
16906
|
-
/**
|
|
16907
|
-
* @deprecated The `camelCaseKeys.camelCaseKeys` property will be removed in a future version,
|
|
16908
|
-
* please update your code to use the `camelCaseKeys` function directly.
|
|
16909
|
-
*/
|
|
16910
|
-
// tslint:disable-next-line deprecation
|
|
16911
|
-
exports.camelCaseKeys.camelCaseKeys = exports.camelCaseKeys;
|
|
16912
|
-
exports.default = { camelCaseKeys: exports.camelCaseKeys, getFlattenedFlagsFromChangeset: exports.getFlattenedFlagsFromChangeset, fetchFlags: exports.fetchFlags };
|
|
16913
|
-
|
|
16914
|
-
});
|
|
16915
|
-
|
|
16916
|
-
unwrapExports(utils);
|
|
16917
|
-
utils.fetchFlags;
|
|
16918
|
-
utils.getFlattenedFlagsFromChangeset;
|
|
16919
|
-
utils.camelCaseKeys;
|
|
16920
|
-
|
|
16921
|
-
var name = "launchdarkly-react-client-sdk";
|
|
16922
|
-
var version = "2.25.1";
|
|
16923
|
-
var description = "LaunchDarkly SDK for React";
|
|
16924
|
-
var author = "LaunchDarkly <team@launchdarkly.com>";
|
|
16925
|
-
var license = "Apache-2.0";
|
|
16926
|
-
var keywords = [
|
|
16927
|
-
"launchdarkly",
|
|
16928
|
-
"launch",
|
|
16929
|
-
"darkly",
|
|
16930
|
-
"react",
|
|
16931
|
-
"sdk",
|
|
16932
|
-
"bindings"
|
|
16933
|
-
];
|
|
16934
|
-
var main = "lib/index.js";
|
|
16935
|
-
var types = "lib/index.d.ts";
|
|
16936
|
-
var files = [
|
|
16937
|
-
"lib",
|
|
16938
|
-
"src",
|
|
16939
|
-
"!**/*.test.*",
|
|
16940
|
-
"!**/__snapshots__"
|
|
16941
|
-
];
|
|
16942
|
-
var scripts = {
|
|
16943
|
-
test: "jest",
|
|
16944
|
-
"test:junit": "jest --ci --reporters=default --reporters=jest-junit",
|
|
16945
|
-
build: "rimraf lib/* && tsc && mv lib/src/* lib && rimraf lib/package.json lib/src lib/*.test.*",
|
|
16946
|
-
lint: "tslint -p tsconfig.json 'src/**/*.ts*'",
|
|
16947
|
-
"lint:all": "npm run lint",
|
|
16948
|
-
"check-typescript": "tsc",
|
|
16949
|
-
prepublishOnly: "npm run build",
|
|
16950
|
-
prettier: "prettier --write 'src/*.@(js|ts|tsx|json|css)'",
|
|
16951
|
-
"link-dev": "./link-dev.sh"
|
|
16952
|
-
};
|
|
16953
|
-
var repository = {
|
|
16954
|
-
type: "git",
|
|
16955
|
-
url: "git://github.com/launchdarkly/react-client-sdk.git"
|
|
16956
|
-
};
|
|
16957
|
-
var homepage = "https://github.com/launchdarkly/react-client-sdk";
|
|
16958
|
-
var devDependencies = {
|
|
16959
|
-
"@testing-library/jest-dom": "^5.16.1",
|
|
16960
|
-
"@testing-library/react": "^12.1.2",
|
|
16961
|
-
"@types/enzyme": "^3.10.3",
|
|
16962
|
-
"@types/hoist-non-react-statics": "^3.3.1",
|
|
16963
|
-
"@types/jest": "^27.0.3",
|
|
16964
|
-
"@types/lodash.camelcase": "^4.3.6",
|
|
16965
|
-
"@types/prop-types": "^15.7.4",
|
|
16966
|
-
"@types/react": "^17.0.37",
|
|
16967
|
-
"@types/react-dom": "^17.0.11",
|
|
16968
|
-
"@types/react-test-renderer": "^17.0.1",
|
|
16969
|
-
"@types/uuid": "^3.4.5",
|
|
16970
|
-
enzyme: "^3.10.0",
|
|
16971
|
-
"enzyme-adapter-react-16": "^1.14.0",
|
|
16972
|
-
jest: "^27.4.4",
|
|
16973
|
-
"jest-environment-jsdom-global": "^3.0.0",
|
|
16974
|
-
"jest-junit": "^13.0.0",
|
|
16975
|
-
prettier: "^1.18.2",
|
|
16976
|
-
"prop-types": "^15.7.2",
|
|
16977
|
-
react: "^17.0.0",
|
|
16978
|
-
"react-dom": "^17.0.0",
|
|
16979
|
-
"react-test-renderer": "^17.0.2",
|
|
16980
|
-
rimraf: "^3.0.0",
|
|
16981
|
-
"ts-jest": "^27.1.1",
|
|
16982
|
-
tslint: "^6.1.3",
|
|
16983
|
-
"tslint-config-prettier": "^1.18.0",
|
|
16984
|
-
"tslint-plugin-prettier": "^2.3.0",
|
|
16985
|
-
typescript: "^4.5.3"
|
|
16986
|
-
};
|
|
16987
|
-
var dependencies = {
|
|
16988
|
-
"hoist-non-react-statics": "^3.3.2",
|
|
16989
|
-
"launchdarkly-js-client-sdk": "2.20.2",
|
|
16990
|
-
"lodash.camelcase": "^4.3.0",
|
|
16991
|
-
uuid: "^3.3.2"
|
|
16992
|
-
};
|
|
16993
|
-
var peerDependencies = {
|
|
16994
|
-
react: "^16.6.3 || ^17.0.0",
|
|
16995
|
-
"react-dom": "^16.8.4 || ^17.0.0"
|
|
16996
|
-
};
|
|
16997
|
-
var _resolved = "https://registry.npmjs.org/launchdarkly-react-client-sdk/-/launchdarkly-react-client-sdk-2.25.1.tgz";
|
|
16998
|
-
var _integrity = "sha512-OejNEZs8QvW1q/qn/ey1o6lfdLw3aW8tWfLucUmRTeazp0MtBXARnEZoqHWGmgRkRlxkTul3HqecksnoXC/wBg==";
|
|
16999
|
-
var _from = "launchdarkly-react-client-sdk@2.25.1";
|
|
17000
|
-
var _package = {
|
|
17001
|
-
name: name,
|
|
17002
|
-
version: version,
|
|
17003
|
-
description: description,
|
|
17004
|
-
author: author,
|
|
17005
|
-
license: license,
|
|
17006
|
-
keywords: keywords,
|
|
17007
|
-
main: main,
|
|
17008
|
-
types: types,
|
|
17009
|
-
files: files,
|
|
17010
|
-
scripts: scripts,
|
|
17011
|
-
repository: repository,
|
|
17012
|
-
homepage: homepage,
|
|
17013
|
-
devDependencies: devDependencies,
|
|
17014
|
-
dependencies: dependencies,
|
|
17015
|
-
peerDependencies: peerDependencies,
|
|
17016
|
-
_resolved: _resolved,
|
|
17017
|
-
_integrity: _integrity,
|
|
17018
|
-
_from: _from
|
|
17019
|
-
};
|
|
17020
|
-
|
|
17021
|
-
var _package$1 = /*#__PURE__*/Object.freeze({
|
|
17022
|
-
__proto__: null,
|
|
17023
|
-
name: name,
|
|
17024
|
-
version: version,
|
|
17025
|
-
description: description,
|
|
17026
|
-
author: author,
|
|
17027
|
-
license: license,
|
|
17028
|
-
keywords: keywords,
|
|
17029
|
-
main: main,
|
|
17030
|
-
types: types,
|
|
17031
|
-
files: files,
|
|
17032
|
-
scripts: scripts,
|
|
17033
|
-
repository: repository,
|
|
17034
|
-
homepage: homepage,
|
|
17035
|
-
devDependencies: devDependencies,
|
|
17036
|
-
dependencies: dependencies,
|
|
17037
|
-
peerDependencies: peerDependencies,
|
|
17038
|
-
_resolved: _resolved,
|
|
17039
|
-
_integrity: _integrity,
|
|
17040
|
-
_from: _from,
|
|
17041
|
-
'default': _package
|
|
17042
|
-
});
|
|
17043
|
-
|
|
17044
|
-
var package_json_1 = getCjsExportFromNamespace(_package$1);
|
|
17045
|
-
|
|
17046
|
-
var initLDClient_1 = createCommonjsModule(function (module, exports) {
|
|
17047
|
-
var __assign = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
17048
|
-
__assign = Object.assign || function(t) {
|
|
17049
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
17050
|
-
s = arguments[i];
|
|
17051
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
17052
|
-
t[p] = s[p];
|
|
17053
|
-
}
|
|
17054
|
-
return t;
|
|
17055
|
-
};
|
|
17056
|
-
return __assign.apply(this, arguments);
|
|
17057
|
-
};
|
|
17058
|
-
var __awaiter = (commonjsGlobal && commonjsGlobal.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
17059
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17060
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17061
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
17062
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
17063
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
17064
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
17065
|
-
});
|
|
17066
|
-
};
|
|
17067
|
-
var __generator = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
17068
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
17069
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
17070
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
17071
|
-
function step(op) {
|
|
17072
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
17073
|
-
while (_) try {
|
|
17074
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
17075
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
17076
|
-
switch (op[0]) {
|
|
17077
|
-
case 0: case 1: t = op; break;
|
|
17078
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
17079
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
17080
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
17081
|
-
default:
|
|
17082
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
17083
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
17084
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
17085
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
17086
|
-
if (t[2]) _.ops.pop();
|
|
17087
|
-
_.trys.pop(); continue;
|
|
17088
|
-
}
|
|
17089
|
-
op = body.call(thisArg, _);
|
|
17090
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
17091
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
17092
|
-
}
|
|
17093
|
-
};
|
|
17094
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17095
|
-
|
|
17096
|
-
|
|
17097
|
-
|
|
17098
|
-
|
|
17099
|
-
/**
|
|
17100
|
-
* Internal function to initialize the `LDClient`.
|
|
17101
|
-
*
|
|
17102
|
-
* @param clientSideID Your project and environment specific client side ID
|
|
17103
|
-
* @param user A LaunchDarkly user object
|
|
17104
|
-
* @param reactOptions Initialization options for the LaunchDarkly React SDK
|
|
17105
|
-
* @param options LaunchDarkly initialization options
|
|
17106
|
-
* @param targetFlags If specified, `launchdarkly-react-client-sdk` will only request and listen to these flags.
|
|
17107
|
-
*
|
|
17108
|
-
* @see `ProviderConfig` for more details about the parameters
|
|
17109
|
-
* @return An initialized client and flags
|
|
17110
|
-
*/
|
|
17111
|
-
var initLDClient = function (clientSideID, user, reactOptions, options, targetFlags) {
|
|
17112
|
-
if (user === void 0) { user = { anonymous: true }; }
|
|
17113
|
-
if (reactOptions === void 0) { reactOptions = types$1.defaultReactOptions; }
|
|
17114
|
-
return __awaiter(void 0, void 0, void 0, function () {
|
|
17115
|
-
var allOptions, ldClient;
|
|
17116
|
-
return __generator(this, function (_a) {
|
|
17117
|
-
allOptions = __assign({ wrapperName: 'react-client-sdk', wrapperVersion: package_json_1.version }, options);
|
|
17118
|
-
ldClient = (0, Ye.initialize)(clientSideID, user, allOptions);
|
|
17119
|
-
return [2 /*return*/, new Promise(function (resolve) {
|
|
17120
|
-
ldClient.on('ready', function () {
|
|
17121
|
-
var flags = (0, utils.fetchFlags)(ldClient, reactOptions, targetFlags);
|
|
17122
|
-
resolve({ flags: flags, ldClient: ldClient });
|
|
17123
|
-
});
|
|
17124
|
-
})];
|
|
17125
|
-
});
|
|
17126
|
-
});
|
|
17127
|
-
};
|
|
17128
|
-
exports.default = initLDClient;
|
|
17129
|
-
|
|
17130
|
-
});
|
|
17131
|
-
|
|
17132
|
-
unwrapExports(initLDClient_1);
|
|
17133
|
-
|
|
17134
|
-
var provider = createCommonjsModule(function (module, exports) {
|
|
17135
|
-
var __extends = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
17136
|
-
var extendStatics = function (d, b) {
|
|
17137
|
-
extendStatics = Object.setPrototypeOf ||
|
|
17138
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
17139
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
17140
|
-
return extendStatics(d, b);
|
|
17141
|
-
};
|
|
17142
|
-
return function (d, b) {
|
|
17143
|
-
if (typeof b !== "function" && b !== null)
|
|
17144
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
17145
|
-
extendStatics(d, b);
|
|
17146
|
-
function __() { this.constructor = d; }
|
|
17147
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
17148
|
-
};
|
|
17149
|
-
})();
|
|
17150
|
-
var __assign = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
17151
|
-
__assign = Object.assign || function(t) {
|
|
17152
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
17153
|
-
s = arguments[i];
|
|
17154
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
17155
|
-
t[p] = s[p];
|
|
17156
|
-
}
|
|
17157
|
-
return t;
|
|
17158
|
-
};
|
|
17159
|
-
return __assign.apply(this, arguments);
|
|
17160
|
-
};
|
|
17161
|
-
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
17162
|
-
if (k2 === undefined) k2 = k;
|
|
17163
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
17164
|
-
}) : (function(o, m, k, k2) {
|
|
17165
|
-
if (k2 === undefined) k2 = k;
|
|
17166
|
-
o[k2] = m[k];
|
|
17167
|
-
}));
|
|
17168
|
-
var __setModuleDefault = (commonjsGlobal && commonjsGlobal.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17169
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17170
|
-
}) : function(o, v) {
|
|
17171
|
-
o["default"] = v;
|
|
17172
|
-
});
|
|
17173
|
-
var __importStar = (commonjsGlobal && commonjsGlobal.__importStar) || function (mod) {
|
|
17174
|
-
if (mod && mod.__esModule) return mod;
|
|
17175
|
-
var result = {};
|
|
17176
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
17177
|
-
__setModuleDefault(result, mod);
|
|
17178
|
-
return result;
|
|
17179
|
-
};
|
|
17180
|
-
var __awaiter = (commonjsGlobal && commonjsGlobal.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
17181
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17182
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17183
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
17184
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
17185
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
17186
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
17187
|
-
});
|
|
17188
|
-
};
|
|
17189
|
-
var __generator = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
17190
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
17191
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
17192
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
17193
|
-
function step(op) {
|
|
17194
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
17195
|
-
while (_) try {
|
|
17196
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
17197
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
17198
|
-
switch (op[0]) {
|
|
17199
|
-
case 0: case 1: t = op; break;
|
|
17200
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
17201
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
17202
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
17203
|
-
default:
|
|
17204
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
17205
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
17206
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
17207
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
17208
|
-
if (t[2]) _.ops.pop();
|
|
17209
|
-
_.trys.pop(); continue;
|
|
17210
|
-
}
|
|
17211
|
-
op = body.call(thisArg, _);
|
|
17212
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
17213
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
17214
|
-
}
|
|
17215
|
-
};
|
|
17216
|
-
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
17217
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17218
|
-
};
|
|
17219
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17220
|
-
var React$1 = __importStar(React);
|
|
17221
|
-
|
|
17222
|
-
|
|
17223
|
-
var initLDClient_1$1 = __importDefault(initLDClient_1);
|
|
17224
|
-
|
|
17225
|
-
/**
|
|
17226
|
-
* The `LDProvider` is a component which accepts a config object which is used to
|
|
17227
|
-
* initialize `launchdarkly-js-client-sdk`.
|
|
17228
|
-
*
|
|
17229
|
-
* This Provider does three things:
|
|
17230
|
-
* - It initializes the ldClient instance by calling `launchdarkly-js-client-sdk` initialize on `componentDidMount`
|
|
17231
|
-
* - It saves all flags and the ldClient instance in the context API
|
|
17232
|
-
* - It subscribes to flag changes and propagate them through the context API
|
|
17233
|
-
*
|
|
17234
|
-
* Because the `launchdarkly-js-client-sdk` in only initialized on `componentDidMount`, your flags and the
|
|
17235
|
-
* ldClient are only available after your app has mounted. This can result in a flicker due to flag changes at
|
|
17236
|
-
* startup time.
|
|
17237
|
-
*
|
|
17238
|
-
* This component can be used as a standalone provider. However, be mindful to only include the component once
|
|
17239
|
-
* within your application. This provider is used inside the `withLDProviderHOC` and can be used instead to initialize
|
|
17240
|
-
* the `launchdarkly-js-client-sdk`. For async initialization, check out the `asyncWithLDProvider` function
|
|
17241
|
-
*/
|
|
17242
|
-
var LDProvider = /** @class */ (function (_super) {
|
|
17243
|
-
__extends(LDProvider, _super);
|
|
17244
|
-
function LDProvider(props) {
|
|
17245
|
-
var _this = _super.call(this, props) || this;
|
|
17246
|
-
_this.getReactOptions = function () { return (__assign(__assign({}, types$1.defaultReactOptions), _this.props.reactOptions)); };
|
|
17247
|
-
_this.subscribeToChanges = function (ldClient) {
|
|
17248
|
-
var targetFlags = _this.props.flags;
|
|
17249
|
-
ldClient.on('change', function (changes) {
|
|
17250
|
-
var flattened = (0, utils.getFlattenedFlagsFromChangeset)(changes, targetFlags, _this.getReactOptions());
|
|
17251
|
-
if (Object.keys(flattened).length > 0) {
|
|
17252
|
-
_this.setState(function (_a) {
|
|
17253
|
-
var flags = _a.flags;
|
|
17254
|
-
return ({ flags: __assign(__assign({}, flags), flattened) });
|
|
17255
|
-
});
|
|
17256
|
-
}
|
|
17257
|
-
});
|
|
17258
|
-
};
|
|
17259
|
-
_this.initLDClient = function () { return __awaiter(_this, void 0, void 0, function () {
|
|
17260
|
-
var _a, clientSideID, flags, options, user, ldClient, reactOptions, fetchedFlags, initialisedOutput;
|
|
17261
|
-
return __generator(this, function (_b) {
|
|
17262
|
-
switch (_b.label) {
|
|
17263
|
-
case 0:
|
|
17264
|
-
_a = this.props, clientSideID = _a.clientSideID, flags = _a.flags, options = _a.options, user = _a.user;
|
|
17265
|
-
return [4 /*yield*/, this.props.ldClient];
|
|
17266
|
-
case 1:
|
|
17267
|
-
ldClient = _b.sent();
|
|
17268
|
-
reactOptions = this.getReactOptions();
|
|
17269
|
-
if (!ldClient) return [3 /*break*/, 2];
|
|
17270
|
-
fetchedFlags = (0, utils.fetchFlags)(ldClient, reactOptions, flags);
|
|
17271
|
-
return [3 /*break*/, 4];
|
|
17272
|
-
case 2: return [4 /*yield*/, (0, initLDClient_1$1.default)(clientSideID, user, reactOptions, options, flags)];
|
|
17273
|
-
case 3:
|
|
17274
|
-
initialisedOutput = _b.sent();
|
|
17275
|
-
fetchedFlags = initialisedOutput.flags;
|
|
17276
|
-
ldClient = initialisedOutput.ldClient;
|
|
17277
|
-
_b.label = 4;
|
|
17278
|
-
case 4:
|
|
17279
|
-
this.setState({ flags: fetchedFlags, ldClient: ldClient });
|
|
17280
|
-
this.subscribeToChanges(ldClient);
|
|
17281
|
-
return [2 /*return*/];
|
|
17282
|
-
}
|
|
17283
|
-
});
|
|
17284
|
-
}); };
|
|
17285
|
-
var options = props.options;
|
|
17286
|
-
_this.state = {
|
|
17287
|
-
flags: {},
|
|
17288
|
-
ldClient: undefined,
|
|
17289
|
-
};
|
|
17290
|
-
if (options) {
|
|
17291
|
-
var bootstrap = options.bootstrap;
|
|
17292
|
-
if (bootstrap && bootstrap !== 'localStorage') {
|
|
17293
|
-
var useCamelCaseFlagKeys = _this.getReactOptions().useCamelCaseFlagKeys;
|
|
17294
|
-
var flags = useCamelCaseFlagKeys ? (0, utils.camelCaseKeys)(bootstrap) : bootstrap;
|
|
17295
|
-
_this.state = {
|
|
17296
|
-
flags: flags,
|
|
17297
|
-
ldClient: undefined,
|
|
17298
|
-
};
|
|
17299
|
-
}
|
|
17300
|
-
}
|
|
17301
|
-
return _this;
|
|
17302
|
-
}
|
|
17303
|
-
LDProvider.prototype.componentDidMount = function () {
|
|
17304
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
17305
|
-
var _a, user, deferInitialization;
|
|
17306
|
-
return __generator(this, function (_b) {
|
|
17307
|
-
switch (_b.label) {
|
|
17308
|
-
case 0:
|
|
17309
|
-
_a = this.props, user = _a.user, deferInitialization = _a.deferInitialization;
|
|
17310
|
-
if (deferInitialization && !user) {
|
|
17311
|
-
return [2 /*return*/];
|
|
17312
|
-
}
|
|
17313
|
-
return [4 /*yield*/, this.initLDClient()];
|
|
17314
|
-
case 1:
|
|
17315
|
-
_b.sent();
|
|
17316
|
-
return [2 /*return*/];
|
|
17317
|
-
}
|
|
17318
|
-
});
|
|
17319
|
-
});
|
|
17320
|
-
};
|
|
17321
|
-
LDProvider.prototype.componentDidUpdate = function (prevProps) {
|
|
17322
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
17323
|
-
var _a, user, deferInitialization, userJustLoaded;
|
|
17324
|
-
return __generator(this, function (_b) {
|
|
17325
|
-
switch (_b.label) {
|
|
17326
|
-
case 0:
|
|
17327
|
-
_a = this.props, user = _a.user, deferInitialization = _a.deferInitialization;
|
|
17328
|
-
userJustLoaded = !prevProps.user && user;
|
|
17329
|
-
if (!(deferInitialization && userJustLoaded)) return [3 /*break*/, 2];
|
|
17330
|
-
return [4 /*yield*/, this.initLDClient()];
|
|
17331
|
-
case 1:
|
|
17332
|
-
_b.sent();
|
|
17333
|
-
_b.label = 2;
|
|
17334
|
-
case 2: return [2 /*return*/];
|
|
17335
|
-
}
|
|
17336
|
-
});
|
|
17337
|
-
});
|
|
17338
|
-
};
|
|
17339
|
-
LDProvider.prototype.render = function () {
|
|
17340
|
-
return React$1.createElement(context_1.Provider, { value: this.state }, this.props.children);
|
|
17341
|
-
};
|
|
17342
|
-
return LDProvider;
|
|
17343
|
-
}(React$1.Component));
|
|
17344
|
-
exports.default = LDProvider;
|
|
17345
|
-
|
|
17346
|
-
});
|
|
17347
|
-
|
|
17348
|
-
unwrapExports(provider);
|
|
17349
|
-
|
|
17350
|
-
var withLDProvider_1 = createCommonjsModule(function (module, exports) {
|
|
17351
|
-
var __extends = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
17352
|
-
var extendStatics = function (d, b) {
|
|
17353
|
-
extendStatics = Object.setPrototypeOf ||
|
|
17354
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
17355
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
17356
|
-
return extendStatics(d, b);
|
|
17357
|
-
};
|
|
17358
|
-
return function (d, b) {
|
|
17359
|
-
if (typeof b !== "function" && b !== null)
|
|
17360
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
17361
|
-
extendStatics(d, b);
|
|
17362
|
-
function __() { this.constructor = d; }
|
|
17363
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
17364
|
-
};
|
|
17365
|
-
})();
|
|
17366
|
-
var __assign = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
17367
|
-
__assign = Object.assign || function(t) {
|
|
17368
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
17369
|
-
s = arguments[i];
|
|
17370
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
17371
|
-
t[p] = s[p];
|
|
17372
|
-
}
|
|
17373
|
-
return t;
|
|
17374
|
-
};
|
|
17375
|
-
return __assign.apply(this, arguments);
|
|
17376
|
-
};
|
|
17377
|
-
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
17378
|
-
if (k2 === undefined) k2 = k;
|
|
17379
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
17380
|
-
}) : (function(o, m, k, k2) {
|
|
17381
|
-
if (k2 === undefined) k2 = k;
|
|
17382
|
-
o[k2] = m[k];
|
|
17383
|
-
}));
|
|
17384
|
-
var __setModuleDefault = (commonjsGlobal && commonjsGlobal.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17385
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17386
|
-
}) : function(o, v) {
|
|
17387
|
-
o["default"] = v;
|
|
17388
|
-
});
|
|
17389
|
-
var __importStar = (commonjsGlobal && commonjsGlobal.__importStar) || function (mod) {
|
|
17390
|
-
if (mod && mod.__esModule) return mod;
|
|
17391
|
-
var result = {};
|
|
17392
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
17393
|
-
__setModuleDefault(result, mod);
|
|
17394
|
-
return result;
|
|
17395
|
-
};
|
|
17396
|
-
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
17397
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17398
|
-
};
|
|
17399
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17400
|
-
exports.withLDProvider = void 0;
|
|
17401
|
-
var React$1 = __importStar(React);
|
|
17402
|
-
|
|
17403
|
-
var provider_1 = __importDefault(provider);
|
|
17404
|
-
var hoist_non_react_statics_1 = __importDefault(hoistNonReactStatics_cjs);
|
|
17405
|
-
/**
|
|
17406
|
-
* `withLDProvider` is a function which accepts a config object which is used to
|
|
17407
|
-
* initialize `launchdarkly-js-client-sdk`.
|
|
17408
|
-
*
|
|
17409
|
-
* This HOC handles passing configuration to the `LDProvider`, which does the following:
|
|
17410
|
-
* - It initializes the ldClient instance by calling `launchdarkly-js-client-sdk` initialize on `componentDidMount`
|
|
17411
|
-
* - It saves all flags and the ldClient instance in the context API
|
|
17412
|
-
* - It subscribes to flag changes and propagate them through the context API
|
|
17413
|
-
*
|
|
17414
|
-
* The difference between `withLDProvider` and `asyncWithLDProvider` is that `withLDProvider` initializes
|
|
17415
|
-
* `launchdarkly-js-client-sdk` at `componentDidMount`. This means your flags and the ldClient are only available after
|
|
17416
|
-
* your app has mounted. This can result in a flicker due to flag changes at startup time.
|
|
17417
|
-
*
|
|
17418
|
-
* `asyncWithLDProvider` initializes `launchdarkly-js-client-sdk` at the entry point of your app prior to render.
|
|
17419
|
-
* This means that your flags and the ldClient are ready at the beginning of your app. This ensures your app does not
|
|
17420
|
-
* flicker due to flag changes at startup time.
|
|
17421
|
-
*
|
|
17422
|
-
* @param config - The configuration used to initialize LaunchDarkly's JS SDK
|
|
17423
|
-
* @return A function which accepts your root React component and returns a HOC
|
|
17424
|
-
*/
|
|
17425
|
-
function withLDProvider(config) {
|
|
17426
|
-
return function withLDProviderHoc(WrappedComponent) {
|
|
17427
|
-
var userReactOptions = config.reactOptions;
|
|
17428
|
-
var reactOptions = __assign(__assign({}, types$1.defaultReactOptions), userReactOptions);
|
|
17429
|
-
var providerProps = __assign(__assign({}, config), { reactOptions: reactOptions });
|
|
17430
|
-
var HoistedComponent = /** @class */ (function (_super) {
|
|
17431
|
-
__extends(HoistedComponent, _super);
|
|
17432
|
-
function HoistedComponent() {
|
|
17433
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
17434
|
-
}
|
|
17435
|
-
HoistedComponent.prototype.render = function () {
|
|
17436
|
-
return (React$1.createElement(provider_1.default, __assign({}, providerProps),
|
|
17437
|
-
React$1.createElement(WrappedComponent, __assign({}, this.props))));
|
|
17438
|
-
};
|
|
17439
|
-
return HoistedComponent;
|
|
17440
|
-
}(React$1.Component));
|
|
17441
|
-
(0, hoist_non_react_statics_1.default)(HoistedComponent, WrappedComponent);
|
|
17442
|
-
return HoistedComponent;
|
|
17443
|
-
};
|
|
17444
|
-
}
|
|
17445
|
-
exports.withLDProvider = withLDProvider;
|
|
17446
|
-
exports.default = withLDProvider;
|
|
17447
|
-
|
|
17448
|
-
});
|
|
17449
|
-
|
|
17450
|
-
unwrapExports(withLDProvider_1);
|
|
17451
|
-
withLDProvider_1.withLDProvider;
|
|
17452
|
-
|
|
17453
|
-
var asyncWithLDProvider_1 = createCommonjsModule(function (module, exports) {
|
|
17454
|
-
var __assign = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
17455
|
-
__assign = Object.assign || function(t) {
|
|
17456
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
17457
|
-
s = arguments[i];
|
|
17458
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
17459
|
-
t[p] = s[p];
|
|
17460
|
-
}
|
|
17461
|
-
return t;
|
|
17462
|
-
};
|
|
17463
|
-
return __assign.apply(this, arguments);
|
|
17464
|
-
};
|
|
17465
|
-
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
17466
|
-
if (k2 === undefined) k2 = k;
|
|
17467
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
17468
|
-
}) : (function(o, m, k, k2) {
|
|
17469
|
-
if (k2 === undefined) k2 = k;
|
|
17470
|
-
o[k2] = m[k];
|
|
17471
|
-
}));
|
|
17472
|
-
var __setModuleDefault = (commonjsGlobal && commonjsGlobal.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17473
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17474
|
-
}) : function(o, v) {
|
|
17475
|
-
o["default"] = v;
|
|
17476
|
-
});
|
|
17477
|
-
var __importStar = (commonjsGlobal && commonjsGlobal.__importStar) || function (mod) {
|
|
17478
|
-
if (mod && mod.__esModule) return mod;
|
|
17479
|
-
var result = {};
|
|
17480
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
17481
|
-
__setModuleDefault(result, mod);
|
|
17482
|
-
return result;
|
|
17483
|
-
};
|
|
17484
|
-
var __awaiter = (commonjsGlobal && commonjsGlobal.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
17485
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17486
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17487
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
17488
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
17489
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
17490
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
17491
|
-
});
|
|
17492
|
-
};
|
|
17493
|
-
var __generator = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
17494
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
17495
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
17496
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
17497
|
-
function step(op) {
|
|
17498
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
17499
|
-
while (_) try {
|
|
17500
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
17501
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
17502
|
-
switch (op[0]) {
|
|
17503
|
-
case 0: case 1: t = op; break;
|
|
17504
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
17505
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
17506
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
17507
|
-
default:
|
|
17508
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
17509
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
17510
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
17511
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
17512
|
-
if (t[2]) _.ops.pop();
|
|
17513
|
-
_.trys.pop(); continue;
|
|
17514
|
-
}
|
|
17515
|
-
op = body.call(thisArg, _);
|
|
17516
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
17517
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
17518
|
-
}
|
|
17519
|
-
};
|
|
17520
|
-
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
17521
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17522
|
-
};
|
|
17523
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17524
|
-
var react_1 = __importStar(React);
|
|
17525
|
-
|
|
17526
|
-
|
|
17527
|
-
var initLDClient_1$1 = __importDefault(initLDClient_1);
|
|
17528
|
-
|
|
17529
|
-
/**
|
|
17530
|
-
* This is an async function which initializes LaunchDarkly's JS SDK (`launchdarkly-js-client-sdk`)
|
|
17531
|
-
* and awaits it so all flags and the ldClient are ready before the consumer app is rendered.
|
|
17532
|
-
*
|
|
17533
|
-
* The difference between `withLDProvider` and `asyncWithLDProvider` is that `withLDProvider` initializes
|
|
17534
|
-
* `launchdarkly-js-client-sdk` at componentDidMount. This means your flags and the ldClient are only available after
|
|
17535
|
-
* your app has mounted. This can result in a flicker due to flag changes at startup time.
|
|
17536
|
-
*
|
|
17537
|
-
* `asyncWithLDProvider` initializes `launchdarkly-js-client-sdk` at the entry point of your app prior to render.
|
|
17538
|
-
* This means that your flags and the ldClient are ready at the beginning of your app. This ensures your app does not
|
|
17539
|
-
* flicker due to flag changes at startup time.
|
|
17540
|
-
*
|
|
17541
|
-
* `asyncWithLDProvider` accepts a config object which is used to initialize `launchdarkly-js-client-sdk`.
|
|
17542
|
-
*
|
|
17543
|
-
* `asyncWithLDProvider` does not support the `deferInitialization` config option because `asyncWithLDProvider` needs
|
|
17544
|
-
* to be initialized at the entry point prior to render to ensure your flags and the ldClient are ready at the beginning
|
|
17545
|
-
* of your app.
|
|
17546
|
-
*
|
|
17547
|
-
* It returns a provider which is a React FunctionComponent which:
|
|
17548
|
-
* - saves all flags and the ldClient instance in the context API
|
|
17549
|
-
* - subscribes to flag changes and propagate them through the context API
|
|
17550
|
-
*
|
|
17551
|
-
* @param config - The configuration used to initialize LaunchDarkly's JS SDK
|
|
17552
|
-
*/
|
|
17553
|
-
function asyncWithLDProvider(config) {
|
|
17554
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
17555
|
-
var clientSideID, user, targetFlags, options, userReactOptions, reactOptions, ldClient, LDProvider;
|
|
17556
|
-
return __generator(this, function (_a) {
|
|
17557
|
-
switch (_a.label) {
|
|
17558
|
-
case 0:
|
|
17559
|
-
clientSideID = config.clientSideID, user = config.user, targetFlags = config.flags, options = config.options, userReactOptions = config.reactOptions;
|
|
17560
|
-
reactOptions = __assign(__assign({}, types$1.defaultReactOptions), userReactOptions);
|
|
17561
|
-
return [4 /*yield*/, (0, initLDClient_1$1.default)(clientSideID, user, reactOptions, options, targetFlags)];
|
|
17562
|
-
case 1:
|
|
17563
|
-
ldClient = (_a.sent()).ldClient;
|
|
17564
|
-
LDProvider = function (_a) {
|
|
17565
|
-
var children = _a.children;
|
|
17566
|
-
var _b = (0, react_1.useState)({
|
|
17567
|
-
flags: (0, utils.fetchFlags)(ldClient, reactOptions, targetFlags),
|
|
17568
|
-
ldClient: ldClient,
|
|
17569
|
-
}), ldData = _b[0], setLDData = _b[1];
|
|
17570
|
-
(0, react_1.useEffect)(function () {
|
|
17571
|
-
if (options) {
|
|
17572
|
-
var bootstrap = options.bootstrap;
|
|
17573
|
-
if (bootstrap && bootstrap !== 'localStorage') {
|
|
17574
|
-
var bootstrappedFlags_1 = reactOptions.useCamelCaseFlagKeys ? (0, utils.camelCaseKeys)(bootstrap) : bootstrap;
|
|
17575
|
-
setLDData(function (prev) { return (__assign(__assign({}, prev), { flags: bootstrappedFlags_1 })); });
|
|
17576
|
-
}
|
|
17577
|
-
}
|
|
17578
|
-
ldClient.on('change', function (changes) {
|
|
17579
|
-
var flattened = (0, utils.getFlattenedFlagsFromChangeset)(changes, targetFlags, reactOptions);
|
|
17580
|
-
if (Object.keys(flattened).length > 0) {
|
|
17581
|
-
setLDData(function (prev) { return (__assign(__assign({}, prev), { flags: __assign(__assign({}, prev.flags), flattened) })); });
|
|
17582
|
-
}
|
|
17583
|
-
});
|
|
17584
|
-
}, []);
|
|
17585
|
-
return react_1.default.createElement(context_1.Provider, { value: ldData }, children);
|
|
17586
|
-
};
|
|
17587
|
-
return [2 /*return*/, LDProvider];
|
|
17588
|
-
}
|
|
17589
|
-
});
|
|
17590
|
-
});
|
|
17591
|
-
}
|
|
17592
|
-
exports.default = asyncWithLDProvider;
|
|
17593
|
-
|
|
17594
|
-
});
|
|
17595
|
-
|
|
17596
|
-
unwrapExports(asyncWithLDProvider_1);
|
|
17597
|
-
|
|
17598
|
-
var withLDConsumer_1 = createCommonjsModule(function (module, exports) {
|
|
17599
|
-
var __assign = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
17600
|
-
__assign = Object.assign || function(t) {
|
|
17601
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
17602
|
-
s = arguments[i];
|
|
17603
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
17604
|
-
t[p] = s[p];
|
|
17605
|
-
}
|
|
17606
|
-
return t;
|
|
17607
|
-
};
|
|
17608
|
-
return __assign.apply(this, arguments);
|
|
17609
|
-
};
|
|
17610
|
-
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
17611
|
-
if (k2 === undefined) k2 = k;
|
|
17612
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
17613
|
-
}) : (function(o, m, k, k2) {
|
|
17614
|
-
if (k2 === undefined) k2 = k;
|
|
17615
|
-
o[k2] = m[k];
|
|
17616
|
-
}));
|
|
17617
|
-
var __setModuleDefault = (commonjsGlobal && commonjsGlobal.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17618
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17619
|
-
}) : function(o, v) {
|
|
17620
|
-
o["default"] = v;
|
|
17621
|
-
});
|
|
17622
|
-
var __importStar = (commonjsGlobal && commonjsGlobal.__importStar) || function (mod) {
|
|
17623
|
-
if (mod && mod.__esModule) return mod;
|
|
17624
|
-
var result = {};
|
|
17625
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
17626
|
-
__setModuleDefault(result, mod);
|
|
17627
|
-
return result;
|
|
17628
|
-
};
|
|
17629
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17630
|
-
var React$1 = __importStar(React);
|
|
17631
|
-
|
|
17632
|
-
/**
|
|
17633
|
-
* withLDConsumer is a function which accepts an optional options object and returns a function
|
|
17634
|
-
* which accepts your React component. This function returns a HOC with flags
|
|
17635
|
-
* and the ldClient instance injected via props.
|
|
17636
|
-
*
|
|
17637
|
-
* @param options - If you need only the `ldClient` instance and not flags, then set `{ clientOnly: true }`
|
|
17638
|
-
* to only pass the ldClient prop to your component. Defaults to `{ clientOnly: false }`.
|
|
17639
|
-
* @return A HOC with flags and the `ldClient` instance injected via props
|
|
17640
|
-
*/
|
|
17641
|
-
function withLDConsumer(options) {
|
|
17642
|
-
if (options === void 0) { options = { clientOnly: false }; }
|
|
17643
|
-
return function withLDConsumerHoc(WrappedComponent) {
|
|
17644
|
-
return function (props) { return (React$1.createElement(context_1.Consumer, null, function (_a) {
|
|
17645
|
-
var flags = _a.flags, ldClient = _a.ldClient;
|
|
17646
|
-
if (options.clientOnly) {
|
|
17647
|
-
return React$1.createElement(WrappedComponent, __assign({ ldClient: ldClient }, props));
|
|
17648
|
-
}
|
|
17649
|
-
return React$1.createElement(WrappedComponent, __assign({ flags: flags, ldClient: ldClient }, props));
|
|
17650
|
-
})); };
|
|
17651
|
-
};
|
|
17652
|
-
}
|
|
17653
|
-
exports.default = withLDConsumer;
|
|
17654
|
-
|
|
17655
|
-
});
|
|
17656
|
-
|
|
17657
|
-
unwrapExports(withLDConsumer_1);
|
|
17658
|
-
|
|
17659
|
-
var useFlags_1 = createCommonjsModule(function (module, exports) {
|
|
17660
|
-
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
17661
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17662
|
-
};
|
|
17663
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17664
|
-
|
|
17665
|
-
var context_1$1 = __importDefault(context_1);
|
|
17666
|
-
/**
|
|
17667
|
-
* `useFlags` is a custom hook which returns all feature flags. It uses the `useContext` primitive
|
|
17668
|
-
* to access the LaunchDarkly context set up by `withLDProvider`. As such you will still need to
|
|
17669
|
-
* use the `withLDProvider` HOC at the root of your app to initialize the React SDK and populate the
|
|
17670
|
-
* context with `ldClient` and your flags.
|
|
17671
|
-
*
|
|
17672
|
-
* @return All the feature flags configured in your LaunchDarkly project
|
|
17673
|
-
*/
|
|
17674
|
-
var useFlags = function () {
|
|
17675
|
-
var flags = (0, React.useContext)(context_1$1.default).flags;
|
|
17676
|
-
return flags;
|
|
17677
|
-
};
|
|
17678
|
-
exports.default = useFlags;
|
|
17679
|
-
|
|
17680
|
-
});
|
|
17681
|
-
|
|
17682
|
-
unwrapExports(useFlags_1);
|
|
17683
|
-
|
|
17684
|
-
var useLDClient_1 = createCommonjsModule(function (module, exports) {
|
|
17685
|
-
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
17686
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17687
|
-
};
|
|
17688
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17689
|
-
|
|
17690
|
-
var context_1$1 = __importDefault(context_1);
|
|
17691
|
-
// tslint:disable:max-line-length
|
|
17692
|
-
/**
|
|
17693
|
-
* `useLDClient` is a custom hook which returns the underlying [LaunchDarkly JavaScript SDK client object](https://launchdarkly.github.io/js-client-sdk/interfaces/_launchdarkly_js_client_sdk_.ldclient.html).
|
|
17694
|
-
* Like the `useFlags` custom hook, `useLDClient` also uses the `useContext` primitive to access the LaunchDarkly
|
|
17695
|
-
* context set up by `withLDProvider`. You will still need to use the `withLDProvider` HOC
|
|
17696
|
-
* to initialise the react sdk to use this custom hook.
|
|
17697
|
-
*
|
|
17698
|
-
* @return The `launchdarkly-js-client-sdk` `LDClient` object
|
|
17699
|
-
*/
|
|
17700
|
-
// tslint:enable:max-line-length
|
|
17701
|
-
var useLDClient = function () {
|
|
17702
|
-
var ldClient = (0, React.useContext)(context_1$1.default).ldClient;
|
|
17703
|
-
return ldClient;
|
|
17704
|
-
};
|
|
17705
|
-
exports.default = useLDClient;
|
|
17706
|
-
|
|
17707
|
-
});
|
|
17708
|
-
|
|
17709
|
-
unwrapExports(useLDClient_1);
|
|
17710
|
-
|
|
17711
|
-
var lib$1 = createCommonjsModule(function (module, exports) {
|
|
17712
|
-
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
17713
|
-
if (k2 === undefined) k2 = k;
|
|
17714
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
17715
|
-
}) : (function(o, m, k, k2) {
|
|
17716
|
-
if (k2 === undefined) k2 = k;
|
|
17717
|
-
o[k2] = m[k];
|
|
17718
|
-
}));
|
|
17719
|
-
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
|
17720
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
17721
|
-
};
|
|
17722
|
-
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
17723
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17724
|
-
};
|
|
17725
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17726
|
-
exports.withLDConsumer = exports.withLDProvider = exports.useLDClient = exports.useFlags = exports.camelCaseKeys = exports.asyncWithLDProvider = exports.LDProvider = void 0;
|
|
17727
|
-
var provider_1 = __importDefault(provider);
|
|
17728
|
-
exports.LDProvider = provider_1.default;
|
|
17729
|
-
var withLDProvider_1$1 = __importDefault(withLDProvider_1);
|
|
17730
|
-
exports.withLDProvider = withLDProvider_1$1.default;
|
|
17731
|
-
var asyncWithLDProvider_1$1 = __importDefault(asyncWithLDProvider_1);
|
|
17732
|
-
exports.asyncWithLDProvider = asyncWithLDProvider_1$1.default;
|
|
17733
|
-
var withLDConsumer_1$1 = __importDefault(withLDConsumer_1);
|
|
17734
|
-
exports.withLDConsumer = withLDConsumer_1$1.default;
|
|
17735
|
-
var useFlags_1$1 = __importDefault(useFlags_1);
|
|
17736
|
-
exports.useFlags = useFlags_1$1.default;
|
|
17737
|
-
var useLDClient_1$1 = __importDefault(useLDClient_1);
|
|
17738
|
-
exports.useLDClient = useLDClient_1$1.default;
|
|
17739
|
-
|
|
17740
|
-
Object.defineProperty(exports, "camelCaseKeys", { enumerable: true, get: function () { return utils.camelCaseKeys; } });
|
|
17741
|
-
__exportStar(types$1, exports);
|
|
17742
|
-
|
|
17743
|
-
});
|
|
17744
|
-
|
|
17745
|
-
unwrapExports(lib$1);
|
|
17746
|
-
lib$1.withLDConsumer;
|
|
17747
|
-
lib$1.withLDProvider;
|
|
17748
|
-
lib$1.useLDClient;
|
|
17749
|
-
lib$1.useFlags;
|
|
17750
|
-
lib$1.camelCaseKeys;
|
|
17751
|
-
lib$1.asyncWithLDProvider;
|
|
17752
|
-
var lib_7 = lib$1.LDProvider;
|
|
17753
|
-
|
|
17754
16184
|
/**
|
|
17755
16185
|
* Copyright 2015, Yahoo! Inc.
|
|
17756
16186
|
* Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
|
|
@@ -20497,9 +18927,9 @@ const StepLicensedProfessionalPersonalInfo = ({ intl, verificationService, }) =>
|
|
|
20497
18927
|
React.createElement("div", { className: "sid-l-horz-center" },
|
|
20498
18928
|
React.createElement(LogoComponent, { verificationService: verificationService })),
|
|
20499
18929
|
React.createElement("div", { className: "sid-header__title sid-l-horz-center" },
|
|
20500
|
-
React.createElement(FormattedHTMLMessage, { id: "step.personalInfo.title
|
|
18930
|
+
React.createElement(FormattedHTMLMessage, { id: "step.personalInfo.title", defaultMessage: "Unlock this Special Offer", tagName: "h1" })),
|
|
20501
18931
|
React.createElement("div", { className: "sid-header__subtitle sid-l-horz-center" },
|
|
20502
|
-
React.createElement(FormattedHTMLMessage, { id: "step.personalInfo.subtitle
|
|
18932
|
+
React.createElement(FormattedHTMLMessage, { id: "step.personalInfo.subtitle", defaultMessage: "Verify you have a professional license in your field." })),
|
|
20503
18933
|
React.createElement("div", { className: "sid-header__how-verifying-works sid-l-horz-center" },
|
|
20504
18934
|
React.createElement(HowDoesVerifyingWorkComponent, { verificationService: verificationService }),
|
|
20505
18935
|
React.createElement(RewardsRemainingComponent, { verificationService: verificationService })))),
|
|
@@ -23493,7 +21923,7 @@ class NewVerification extends React.Component {
|
|
|
23493
21923
|
}
|
|
23494
21924
|
}
|
|
23495
21925
|
componentDidMount() {
|
|
23496
|
-
N
|
|
21926
|
+
N(); // https://sheerid.atlassian.net/browse/UX-362
|
|
23497
21927
|
maintainFocusInLightbox();
|
|
23498
21928
|
listenToInstallPage((event) => {
|
|
23499
21929
|
if (event.data.action === "setViewModel") {
|
|
@@ -23572,9 +22002,8 @@ const VerificationForm = React.forwardRef(({ programId, trackingId = undefined }
|
|
|
23572
22002
|
};
|
|
23573
22003
|
}
|
|
23574
22004
|
return (React.createElement(Provider, { store: store },
|
|
23575
|
-
React.createElement(
|
|
23576
|
-
React.createElement(
|
|
23577
|
-
React.createElement(NewVerificationComponent, { programId: programId, trackingId: trackingId })))));
|
|
22005
|
+
React.createElement(FormWrapperComponent, null,
|
|
22006
|
+
React.createElement(NewVerificationComponent, { programId: programId, trackingId: trackingId }))));
|
|
23578
22007
|
});
|
|
23579
22008
|
|
|
23580
22009
|
const State = ({ value, isErrored, onChange, intl, onKeyDown = undefined, placeholder = "", }) => (React.createElement("div", { className: "sid-field sid-state" },
|