@expofp/floorplan 3.2.13 → 3.2.14
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/dist/browser/Button-BdvuWzrR.js +204 -0
- package/dist/browser/CookieConsent-bTG3GDKg.js +71 -0
- package/dist/browser/{Debug-DGpD6gi3.js → Debug-CjX9xriA.js} +8 -7
- package/dist/browser/{Demo-D58NFoyc.js → Demo-D66SE96z.js} +12 -11
- package/dist/browser/{Free-0cQAwFKa.js → Free-ouV3S0cy.js} +12 -11
- package/dist/browser/{Gallery-CPVZPQ00.js → Gallery-Bm4oVw4n.js} +608 -642
- package/dist/browser/{GpsLoader-qwW4aTNa.js → GpsLoader-BheKXFiI.js} +49 -47
- package/dist/browser/{KioskStore-IujhAAGe.js → KioskStore-CYaE9WLG.js} +62 -62
- package/dist/browser/{Mapbox-BEIVuKI-.js → Mapbox-CDlR6UrM.js} +40 -39
- package/dist/browser/Modal-DS2N0vIo.js +105 -0
- package/dist/browser/{SetKioskMode-DlUxPyq5.js → SetKioskMode-DofzJB3e.js} +18 -17
- package/dist/browser/{ShowKiosk-DzPcuttS.js → ShowKiosk-UX2N2NU3.js} +11 -10
- package/dist/browser/{ThreeComponent-D7GyVwct.js → ThreeComponent-CglSG5wI.js} +248 -247
- package/dist/browser/{TouchHand-DUyEIum1.js → TouchHand-DvgAAuKo.js} +15 -14
- package/dist/browser/{ViewerMenuPanel-DQds_0Se.js → ViewerMenuPanel-KPn2i2KL.js} +22 -21
- package/dist/browser/{add-debug-secret-listener-BoLrZL18.js → add-debug-secret-listener-BN00-9E4.js} +1 -1
- package/dist/browser/{boolean-editor-D439oELN.js → boolean-editor-fbHiF9vJ.js} +11 -11
- package/dist/browser/{bootIntercom-C0fIuZrS.js → bootIntercom-CKo2IztD.js} +3 -3
- package/dist/browser/{box-DQ37DLtr.js → box-B2jxGgXa.js} +6 -6
- package/dist/browser/{browser-BWeq0ALX.js → browser-vqeti97Y.js} +2 -2
- package/dist/browser/bundle.json +68 -53
- package/dist/browser/{classnames-BqhGxx8b.js → classnames-CHmxGkvV.js} +2 -2
- package/dist/browser/{client-DpMmqnL3.js → client-pnzfy6PK.js} +5 -5
- package/dist/browser/components-DVzc3v5I.js +8145 -0
- package/dist/browser/{data-BGGzJSZ3.js → data-BmUUjPca.js} +43 -43
- package/dist/browser/{debug-overlay-DyHs08sf.js → debug-overlay-B_1ADa5Y.js} +12 -12
- package/dist/browser/{debug-ui-Ds2r10P8.js → debug-ui-DBOzEUkM.js} +7 -7
- package/dist/browser/{dist-CXnrXk8a.js → dist-0qGu5ADv.js} +3 -3
- package/dist/browser/{dist-C8-R05Uf.js → dist-BpuX8MZ6.js} +7 -7
- package/dist/browser/{dist-DeJCQ-ni.js → dist-DblWkNUV.js} +6 -6
- package/dist/browser/{efp-debug-init-BAaVZ-Sv.js → efp-debug-init-BwJWCRkJ.js} +3 -3
- package/dist/browser/{enum-editor-bO-7z_65.js → enum-editor-BYkKqvGq.js} +12 -12
- package/dist/browser/{exports-DuxaY9F1.js → exports-BRRDMtlG.js} +1 -1
- package/dist/browser/{favicon-BiX13mYV.js → favicon-C_bgpvWA.js} +1 -1
- package/dist/browser/{fetch-retry.umd-BxHhVEQ9.js → fetch-retry.umd-Dinto0ag.js} +2 -2
- package/dist/browser/{flex-DznufWy4.js → flex-uHBCXaOV.js} +7 -7
- package/dist/browser/{flex.props-CBBCApDT.js → flex.props-eBOcuRMU.js} +3 -3
- package/dist/browser/{floorplan.loader-CYCz53F2.js → floorplan.loader-CMXBnLtZ.js} +650 -649
- package/dist/browser/{floorplan.ready-t0OqKoP2.js → floorplan.ready-UbtSin_R.js} +215 -215
- package/dist/browser/{fuse-2x0Yl6bu.js → fuse-CgTQNNsn.js} +2 -2
- package/dist/browser/{is-debug-Dj3mKaHR.js → i18n-BOl9oxrx.js} +774 -883
- package/dist/browser/index.js +12 -12
- package/dist/browser/is-debug-DMN58EYn.js +122 -0
- package/dist/browser/{jsx-runtime-DS_WWXud.js → jsx-runtime-B2BgIlMm.js} +2 -2
- package/dist/browser/{lib-Bt7PWtNh.js → lib-DByP5YwC.js} +5 -5
- package/dist/browser/{main-DK2hJr48.js → main-D3mbrWsr.js} +1 -1
- package/dist/browser/{mobx-BcjkYuCb.js → mobx-CdvsVcc9.js} +5 -5
- package/dist/browser/{particles.min-BGHzdrAw.js → particles.min-DfI3C-qp.js} +2 -2
- package/dist/browser/{prop-types-DwnAO0Yi.js → prop-types-B6zERU6Z.js} +2 -2
- package/dist/browser/{react-DddeiwYl.js → react-C3o_QT06.js} +2 -2
- package/dist/browser/{react-dom-D8AyYBO2.js → react-dom-sBqrMskT.js} +3 -3
- package/dist/browser/{reset-all-settings-BMiI_ZFm.js → reset-all-settings-BwKg7iVu.js} +8 -8
- package/dist/browser/{rolldown-runtime-DaP-Mfpn.js → rolldown-runtime-DB8Ddt08.js} +1 -1
- package/dist/browser/{settings-Bbym8GNQ.js → settings-BLMQJ1yq.js} +2 -2
- package/dist/browser/{settings-item-D8MTM1Pj.js → settings-item-C19s0haM.js} +7 -7
- package/dist/browser/{store-nbxV99WZ.js → store-CQE29UCE.js} +5684 -5862
- package/dist/browser/{string-editor-BSj1Zdr7.js → string-editor-DyFEQo_P.js} +9 -9
- package/dist/browser/{theme-Bo2UyA3Q.js → theme-CrwkiIG5.js} +9 -9
- package/dist/browser/{ui-C5q_HiUr.js → ui-MUJDbhD1.js} +9 -9
- package/dist/browser/useRenderTarget-Pk0fGZOz.js +48 -0
- package/dist/esm/components/AlertContainer.d.ts +5 -0
- package/dist/esm/components/AlertContainer.js +1 -0
- package/dist/esm/components/Booth/Booth.js +1 -1
- package/dist/esm/components/CookieConsent.js +1 -1
- package/dist/esm/components/EntityItem.d.ts +1 -0
- package/dist/esm/components/EntityItem.js +1 -1
- package/dist/esm/components/EntityItemContainer.d.ts +5 -0
- package/dist/esm/components/EntityItemContainer.js +1 -0
- package/dist/esm/components/EntityList.js +1 -1
- package/dist/esm/components/EntityListRow.js +1 -1
- package/dist/esm/components/Event.js +1 -1
- package/dist/esm/components/Exhibitor.js +1 -1
- package/dist/esm/components/GlobalErrorMessage.js +1 -1
- package/dist/esm/components/HighlightTextContainer.d.ts +6 -0
- package/dist/esm/components/HighlightTextContainer.js +1 -0
- package/dist/esm/components/Kiosk/KioskStore.d.ts +1 -1
- package/dist/esm/components/Kiosk/SetKiosk/Confirm/ConfirmDialog.js +1 -1
- package/dist/esm/components/Kiosk/SetKiosk/SetKioskForm.js +1 -1
- package/dist/esm/components/Kiosk/SetKiosk/types.d.ts +2 -2
- package/dist/esm/components/Kiosk/ShowKiosk.js +1 -1
- package/dist/esm/components/LanguageRow.js +1 -1
- package/dist/esm/components/Layout.js +1 -1
- package/dist/esm/components/List.js +1 -1
- package/dist/esm/components/LogoOverlay.d.ts +0 -1
- package/dist/esm/components/LogoOverlay.js +1 -1
- package/dist/esm/components/Menu.js +1 -1
- package/dist/esm/components/Modal.d.ts +2 -1
- package/dist/esm/components/Modal.js +1 -1
- package/dist/esm/components/Overlay.d.ts +1 -0
- package/dist/esm/components/Overlay.js +1 -1
- package/dist/esm/components/OverlayContainer.js +1 -1
- package/dist/esm/components/PermissionNotice/PermissionNotice.js +1 -1
- package/dist/esm/components/RebookingNotes.js +1 -1
- package/dist/esm/components/RoutePlanner/RoutePlanner.js +1 -1
- package/dist/esm/components/RoutePlanner/RoutePlannerHeader.js +1 -1
- package/dist/esm/components/RoutePlanner/RoutePlannerStopItem.js +1 -1
- package/dist/esm/components/SidebarActions.js +1 -1
- package/dist/esm/components/SimpleRow.js +1 -1
- package/dist/esm/components/Speakers.js +1 -1
- package/dist/esm/components/ToursList.js +1 -1
- package/dist/esm/components/Wayfinding.js +1 -1
- package/dist/esm/components/WayfindingFloorSelectorContainer.d.ts +5 -0
- package/dist/esm/components/WayfindingFloorSelectorContainer.js +1 -0
- package/dist/esm/components/WayfindingTemplate.d.ts +6 -8
- package/dist/esm/components/WayfindingTemplate.js +1 -1
- package/dist/esm/components/index.d.ts +22 -22
- package/dist/esm/components/index.js +1 -1
- package/dist/esm/components/stories/CookieConsent.stories.js +1 -1
- package/dist/esm/components/stories/Modal.stories.d.ts +5 -0
- package/dist/esm/components/stories/Modal.stories.js +1 -0
- package/dist/esm/components/stories/Share.stories.d.ts +5 -0
- package/dist/esm/components/stories/Share.stories.js +1 -0
- package/dist/esm/components/stories/{CheckboxButton.stories.d.ts → WayInformation.stories.d.ts} +1 -1
- package/dist/esm/components/stories/WayfindingTemplate.stories.d.ts +5 -0
- package/dist/esm/components/stories/WayfindingTemplate.stories.js +1 -0
- package/dist/esm/store/RoutePlannerStore.d.ts +1 -1
- package/dist/esm/store/RoutePlannerStore.js +1 -1
- package/dist/esm/storybook/store/index.stub.d.ts +4 -0
- package/dist/esm/storybook/store/index.stub.js +1 -1
- package/dist/esm/{components → ui/Alert}/Alert.d.ts +3 -3
- package/dist/esm/ui/Alert/Alert.js +1 -0
- package/dist/esm/{components/stories → ui/Alert}/Alert.stories.d.ts +1 -1
- package/dist/esm/ui/Alert/Alert.stories.js +1 -0
- package/dist/esm/ui/Alert/index.d.ts +3 -0
- package/dist/esm/ui/Alert/index.js +1 -0
- package/dist/esm/{components → ui/Badge}/Badge.d.ts +1 -2
- package/dist/esm/ui/Badge/Badge.stories.d.ts +5 -0
- package/dist/esm/ui/Badge/Badge.stories.js +1 -0
- package/dist/esm/ui/Badge/index.d.ts +3 -0
- package/dist/esm/ui/Badge/index.js +1 -0
- package/dist/esm/{components → ui/Button}/Button.d.ts +2 -2
- package/dist/esm/ui/Button/Button.js +1 -0
- package/dist/esm/ui/Button/Button.stories.d.ts +5 -0
- package/dist/esm/ui/Button/Button.stories.js +1 -0
- package/dist/esm/ui/Button/index.d.ts +3 -0
- package/dist/esm/ui/Button/index.js +1 -0
- package/dist/esm/ui/Checkbox/Checkbox.d.ts +18 -0
- package/dist/esm/ui/Checkbox/Checkbox.js +1 -0
- package/dist/esm/ui/Checkbox/Checkbox.stories.d.ts +5 -0
- package/dist/esm/ui/Checkbox/Checkbox.stories.js +1 -0
- package/dist/esm/ui/Checkbox/index.d.ts +3 -0
- package/dist/esm/ui/Checkbox/index.js +1 -0
- package/dist/esm/ui/CheckboxButton/CheckboxButton.d.ts +11 -0
- package/dist/esm/ui/CheckboxButton/CheckboxButton.js +1 -0
- package/dist/esm/ui/CheckboxButton/CheckboxButton.stories.d.ts +5 -0
- package/dist/esm/ui/CheckboxButton/CheckboxButton.stories.js +1 -0
- package/dist/esm/ui/CheckboxButton/index.d.ts +3 -0
- package/dist/esm/ui/CheckboxButton/index.js +1 -0
- package/dist/esm/ui/HighlightText/HighlightText.d.ts +6 -0
- package/dist/esm/ui/HighlightText/HighlightText.js +1 -0
- package/dist/esm/ui/HighlightText/HighlightText.stories.d.ts +7 -0
- package/dist/esm/ui/HighlightText/HighlightText.stories.js +1 -0
- package/dist/esm/ui/HighlightText/index.d.ts +2 -0
- package/dist/esm/ui/HighlightText/index.js +1 -0
- package/dist/esm/ui/Radio/Radio.d.ts +14 -0
- package/dist/esm/ui/Radio/Radio.js +1 -0
- package/dist/esm/ui/Radio/Radio.stories.d.ts +18 -0
- package/dist/esm/ui/Radio/Radio.stories.js +1 -0
- package/dist/esm/ui/Radio/index.d.ts +3 -0
- package/dist/esm/ui/Radio/index.js +1 -0
- package/dist/esm/ui/Spinner/Spinner.d.ts +8 -0
- package/dist/esm/ui/Spinner/Spinner.js +1 -0
- package/dist/esm/ui/Spinner/Spinner.stories.d.ts +5 -0
- package/dist/esm/ui/Spinner/Spinner.stories.js +1 -0
- package/dist/esm/ui/Spinner/index.d.ts +3 -0
- package/dist/esm/ui/Spinner/index.js +1 -0
- package/dist/esm/ui/ToggleButton/ToggleButton.d.ts +16 -0
- package/dist/esm/ui/ToggleButton/ToggleButton.js +1 -0
- package/dist/esm/ui/ToggleButton/ToggleButton.stories.d.ts +5 -0
- package/dist/esm/ui/ToggleButton/ToggleButton.stories.js +1 -0
- package/dist/esm/ui/ToggleButton/index.d.ts +3 -0
- package/dist/esm/ui/ToggleButton/index.js +1 -0
- package/dist/esm/ui/ToggleSwitch/ToggleSwitch.d.ts +17 -0
- package/dist/esm/ui/ToggleSwitch/ToggleSwitch.js +1 -0
- package/dist/esm/ui/ToggleSwitch/ToggleSwitch.stories.d.ts +5 -0
- package/dist/esm/ui/ToggleSwitch/ToggleSwitch.stories.js +1 -0
- package/dist/esm/ui/ToggleSwitch/index.d.ts +3 -0
- package/dist/esm/ui/ToggleSwitch/index.js +1 -0
- package/dist/esm/ui/TouchHand/TouchHand.d.ts +4 -0
- package/dist/esm/ui/TouchHand/TouchHand.js +1 -0
- package/dist/esm/ui/TouchHand/TouchHand.stories.d.ts +5 -0
- package/dist/esm/ui/TouchHand/TouchHand.stories.js +1 -0
- package/dist/esm/ui/TouchHand/index.d.ts +2 -0
- package/dist/esm/ui/TouchHand/index.js +1 -0
- package/dist/esm/ui/WayfindingFloorSelector/WayfindingFloorSelector.d.ts +23 -0
- package/dist/esm/ui/WayfindingFloorSelector/WayfindingFloorSelector.js +1 -0
- package/dist/esm/ui/WayfindingFloorSelector/WayfindingFloorSelector.stories.d.ts +5 -0
- package/dist/esm/ui/WayfindingFloorSelector/WayfindingFloorSelector.stories.js +1 -0
- package/dist/esm/ui/WayfindingFloorSelector/index.d.ts +3 -0
- package/dist/esm/ui/WayfindingFloorSelector/index.js +1 -0
- package/package.json +3 -3
- package/dist/browser/CookieConsent-l5gCtFOx.js +0 -8234
- package/dist/esm/components/Alert.js +0 -1
- package/dist/esm/components/Button.js +0 -1
- package/dist/esm/components/Checkbox.d.ts +0 -13
- package/dist/esm/components/Checkbox.js +0 -1
- package/dist/esm/components/CheckboxButton.d.ts +0 -11
- package/dist/esm/components/CheckboxButton.js +0 -1
- package/dist/esm/components/HighlightText.d.ts +0 -6
- package/dist/esm/components/HighlightText.js +0 -1
- package/dist/esm/components/LayersLoading.d.ts +0 -9
- package/dist/esm/components/LayersLoading.js +0 -1
- package/dist/esm/components/Radio.d.ts +0 -12
- package/dist/esm/components/Radio.js +0 -1
- package/dist/esm/components/ToggleButton.d.ts +0 -11
- package/dist/esm/components/ToggleButton.js +0 -1
- package/dist/esm/components/ToggleSwitch.d.ts +0 -12
- package/dist/esm/components/ToggleSwitch.js +0 -1
- package/dist/esm/components/TouchHand.d.ts +0 -4
- package/dist/esm/components/TouchHand.js +0 -1
- package/dist/esm/components/WayfindingFloorSelector.d.ts +0 -21
- package/dist/esm/components/WayfindingFloorSelector.js +0 -1
- package/dist/esm/components/stories/Alert.stories.js +0 -1
- package/dist/esm/components/stories/Badge.stories.d.ts +0 -5
- package/dist/esm/components/stories/Badge.stories.js +0 -1
- package/dist/esm/components/stories/Button.stories.d.ts +0 -5
- package/dist/esm/components/stories/Button.stories.js +0 -1
- package/dist/esm/components/stories/Checkbox.stories.d.ts +0 -5
- package/dist/esm/components/stories/Checkbox.stories.js +0 -1
- package/dist/esm/components/stories/CheckboxButton.stories.js +0 -1
- package/dist/esm/components/stories/Loading.stories.d.ts +0 -5
- package/dist/esm/components/stories/Loading.stories.js +0 -1
- package/dist/esm/components/stories/Modal.storiesss.d.ts +0 -5
- package/dist/esm/components/stories/Modal.storiesss.js +0 -1
- package/dist/esm/components/stories/Radio.stories.d.ts +0 -10
- package/dist/esm/components/stories/Radio.stories.js +0 -1
- package/dist/esm/components/stories/Share.storiesSS.d.ts +0 -5
- package/dist/esm/components/stories/Share.storiesSS.js +0 -1
- package/dist/esm/components/stories/ToggleButton.stories.d.ts +0 -5
- package/dist/esm/components/stories/ToggleButton.stories.js +0 -1
- package/dist/esm/components/stories/ToggleSwitch.stories.d.ts +0 -5
- package/dist/esm/components/stories/ToggleSwitch.stories.js +0 -1
- package/dist/esm/components/stories/TouchHand.stories.d.ts +0 -5
- package/dist/esm/components/stories/TouchHand.stories.js +0 -1
- package/dist/esm/components/stories/WayInformation.storiesss.d.ts +0 -5
- package/dist/esm/components/stories/WayfindingFloorSelector.storiesss.d.ts +0 -5
- package/dist/esm/components/stories/WayfindingFloorSelector.storiesss.js +0 -1
- package/dist/esm/components/stories/WayfindingTemplate.storiesss.d.ts +0 -5
- package/dist/esm/components/stories/WayfindingTemplate.storiesss.js +0 -1
- /package/dist/esm/components/stories/{WayInformation.storiesss.js → WayInformation.stories.js} +0 -0
- /package/dist/esm/{components → ui/Badge}/Badge.js +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
(function() {
|
|
2
2
|
try {
|
|
3
3
|
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
4
|
-
e.SENTRY_RELEASE = { id: "3.2.
|
|
4
|
+
e.SENTRY_RELEASE = { id: "3.2.14" };
|
|
5
5
|
var t = new e.Error().stack;
|
|
6
|
-
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "
|
|
6
|
+
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "09c8affe-57e7-49fa-b934-1afaca71ad60", e._sentryDebugIdIdentifier = "sentry-dbid-09c8affe-57e7-49fa-b934-1afaca71ad60");
|
|
7
7
|
} catch {}
|
|
8
8
|
})();
|
|
9
|
-
import { r as e, t } from "./rolldown-runtime-
|
|
10
|
-
import { t as n } from "./browser-
|
|
9
|
+
import { r as e, t } from "./rolldown-runtime-DB8Ddt08.js";
|
|
10
|
+
import { t as n } from "./browser-vqeti97Y.js";
|
|
11
11
|
//#region src/tools/logger.ts
|
|
12
12
|
var r = /* @__PURE__ */ e(n(), 1), i = class {
|
|
13
13
|
constructor() {
|
|
@@ -50,25 +50,7 @@ var o = new i(), s = "___visibility", c = "previewMode", l = "___preview_mode",
|
|
|
50
50
|
import.meta.url
|
|
51
51
|
).href;
|
|
52
52
|
pe.endsWith("/") || (pe += "/");
|
|
53
|
-
var me = pe, he =
|
|
54
|
-
function ge() {
|
|
55
|
-
return new URLSearchParams(decodeURIComponent(window.location.search)).get(he);
|
|
56
|
-
}
|
|
57
|
-
function _e() {
|
|
58
|
-
let e = ge();
|
|
59
|
-
return e || (e = sessionStorage.getItem(he)), e;
|
|
60
|
-
}
|
|
61
|
-
function ve(e) {
|
|
62
|
-
sessionStorage.setItem(he, e);
|
|
63
|
-
}
|
|
64
|
-
function ye(e, t) {
|
|
65
|
-
let n = new URL(e, "https://app.expofp.com/");
|
|
66
|
-
for (let [e, r] of Object.entries(t)) n.searchParams.set(e, r);
|
|
67
|
-
return n.href;
|
|
68
|
-
}
|
|
69
|
-
//#endregion
|
|
70
|
-
//#region src/utils/browser.ts
|
|
71
|
-
var be = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
|
|
53
|
+
var me = pe, he = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
|
|
72
54
|
(function(n, r) {
|
|
73
55
|
typeof e == "object" && typeof t == "object" ? t.exports = r() : typeof define == "function" && define.amd ? define([], r) : typeof e == "object" ? e.bowser = r() : n.bowser = r();
|
|
74
56
|
})(e, (function() {
|
|
@@ -1767,11 +1749,11 @@ var be = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
|
|
|
1767
1749
|
}
|
|
1768
1750
|
});
|
|
1769
1751
|
}));
|
|
1770
|
-
})))(), 1),
|
|
1771
|
-
o.log("Browser",
|
|
1752
|
+
})))(), 1), ge, _e = window.navigator.userAgent, ve = he.default.getParser(_e);
|
|
1753
|
+
o.log("Browser", ve.getBrowserName(), ve.getBrowserVersion(), ve.getOSName(), (ge = ve.getEngine()) == null ? void 0 : ge.name);
|
|
1772
1754
|
//#endregion
|
|
1773
1755
|
//#region src/utils/is-from-designer.ts
|
|
1774
|
-
var
|
|
1756
|
+
var ye = document.referrer && (document.referrer.indexOf("app.expofp.com") > -1 || document.referrer.indexOf("app-show.expofp.com") > -1), be = /* @__PURE__ */ t(((e, t) => {
|
|
1775
1757
|
(function() {
|
|
1776
1758
|
function e(e, t) {
|
|
1777
1759
|
document.addEventListener ? e.addEventListener("scroll", t, !1) : e.attachEvent("scroll", t);
|
|
@@ -1871,49 +1853,49 @@ var we = document.referrer && (document.referrer.indexOf("app.expofp.com") > -1
|
|
|
1871
1853
|
});
|
|
1872
1854
|
}, typeof t == "object" ? t.exports = s : (window.FontFaceObserver = s, window.FontFaceObserver.prototype.load = s.prototype.load);
|
|
1873
1855
|
})();
|
|
1874
|
-
})),
|
|
1875
|
-
function
|
|
1876
|
-
if (!
|
|
1877
|
-
return
|
|
1856
|
+
})), xe, Se = new Uint8Array(16);
|
|
1857
|
+
function Ce() {
|
|
1858
|
+
if (!xe && (xe = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !xe)) throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
1859
|
+
return xe(Se);
|
|
1878
1860
|
}
|
|
1879
1861
|
//#endregion
|
|
1880
1862
|
//#region ../../node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/esm-browser/stringify.js
|
|
1881
1863
|
var w = [];
|
|
1882
1864
|
for (let e = 0; e < 256; ++e) w.push((e + 256).toString(16).slice(1));
|
|
1883
|
-
function
|
|
1865
|
+
function we(e, t = 0) {
|
|
1884
1866
|
return w[e[t + 0]] + w[e[t + 1]] + w[e[t + 2]] + w[e[t + 3]] + "-" + w[e[t + 4]] + w[e[t + 5]] + "-" + w[e[t + 6]] + w[e[t + 7]] + "-" + w[e[t + 8]] + w[e[t + 9]] + "-" + w[e[t + 10]] + w[e[t + 11]] + w[e[t + 12]] + w[e[t + 13]] + w[e[t + 14]] + w[e[t + 15]];
|
|
1885
1867
|
}
|
|
1886
|
-
var
|
|
1868
|
+
var Te = { randomUUID: typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto) };
|
|
1887
1869
|
//#endregion
|
|
1888
1870
|
//#region ../../node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/esm-browser/v4.js
|
|
1889
|
-
function
|
|
1890
|
-
if (
|
|
1871
|
+
function Ee(e, t, n) {
|
|
1872
|
+
if (Te.randomUUID && !t && !e) return Te.randomUUID();
|
|
1891
1873
|
e = e || {};
|
|
1892
|
-
let r = e.random || (e.rng ||
|
|
1874
|
+
let r = e.random || (e.rng || Ce)();
|
|
1893
1875
|
if (r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, t) {
|
|
1894
1876
|
n = n || 0;
|
|
1895
1877
|
for (let e = 0; e < 16; ++e) t[n + e] = r[e];
|
|
1896
1878
|
return t;
|
|
1897
1879
|
}
|
|
1898
|
-
return
|
|
1880
|
+
return we(r);
|
|
1899
1881
|
}
|
|
1900
1882
|
//#endregion
|
|
1901
1883
|
//#region src/tools/loaders.ts
|
|
1902
|
-
var
|
|
1903
|
-
async function
|
|
1884
|
+
var De = /* @__PURE__ */ e(be(), 1);
|
|
1885
|
+
async function Oe(e) {
|
|
1904
1886
|
return await (await fetch(e, { credentials: "same-origin" })).json();
|
|
1905
1887
|
}
|
|
1906
|
-
function
|
|
1888
|
+
function ke(e, t) {
|
|
1907
1889
|
let n = document.createElement("link");
|
|
1908
1890
|
n.rel = "stylesheet", n.href = e, n.setAttribute("fetchpriority", "high"), t.appendChild(n);
|
|
1909
1891
|
}
|
|
1910
|
-
async function
|
|
1911
|
-
return e =
|
|
1892
|
+
async function Ae(e) {
|
|
1893
|
+
return e = ye && e.indexOf("?") === -1 ? `${e}?v=${(/* @__PURE__ */ new Date()).getMilliseconds()}` : e, new Promise(function(t, n) {
|
|
1912
1894
|
let r = document.createElement("script");
|
|
1913
|
-
r.src =
|
|
1895
|
+
r.src = Pe(e), r.setAttribute("fetchpriority", "high"), r.onload = t, r.onerror = t, o.log("Injecting script:", r.src), document.head.appendChild(r);
|
|
1914
1896
|
});
|
|
1915
1897
|
}
|
|
1916
|
-
async function
|
|
1898
|
+
async function je(e, t, n) {
|
|
1917
1899
|
var r;
|
|
1918
1900
|
n = {
|
|
1919
1901
|
style: "normal",
|
|
@@ -1921,8 +1903,8 @@ async function Ie(e, t, n) {
|
|
|
1921
1903
|
...n || {}
|
|
1922
1904
|
};
|
|
1923
1905
|
let i = `url("${t}")`;
|
|
1924
|
-
if (!window.FontFace) return e.startsWith("Font Awesome") ||
|
|
1925
|
-
e.indexOf(" ") !== -1 && ((r =
|
|
1906
|
+
if (!window.FontFace) return e.startsWith("Font Awesome") || Me(e, i, n), Promise.resolve();
|
|
1907
|
+
e.indexOf(" ") !== -1 && ((r = ve.getEngine()) == null ? void 0 : r.name) === "Gecko" && (e = `'${e}'`);
|
|
1926
1908
|
let a;
|
|
1927
1909
|
try {
|
|
1928
1910
|
a = new FontFace(e, i, n);
|
|
@@ -1931,23 +1913,23 @@ async function Ie(e, t, n) {
|
|
|
1931
1913
|
}
|
|
1932
1914
|
return document.fonts.add(a), a.load();
|
|
1933
1915
|
}
|
|
1934
|
-
function
|
|
1916
|
+
function Me(e, t, n) {
|
|
1935
1917
|
let r = document.createElement("style");
|
|
1936
1918
|
r.appendChild(document.createTextNode(`@font-face { font-family: ${e}; font-weight: ${n.weight}; font-style: ${n.style}; src: ${t} format('woff2'); font-display: swap; }`)), document.head.appendChild(r);
|
|
1937
1919
|
let i = document.createElement("div");
|
|
1938
1920
|
i.setAttribute("style", `font-family: oswald; font-weight: ${n.weight}; position: fixed; left: -1000px; top: 0; visibility: hidden`), i.innerHTML = "Oswald", document.body.appendChild(i);
|
|
1939
1921
|
}
|
|
1940
|
-
async function
|
|
1922
|
+
async function Ne(e) {
|
|
1941
1923
|
var t;
|
|
1942
1924
|
let n = getComputedStyle(document.documentElement).getPropertyValue("--expofp-font-face") || ((t = e.match(/--expofp-font-face:\s*([^;]*)/)) == null ? void 0 : t[1]);
|
|
1943
1925
|
if (!n) return;
|
|
1944
|
-
let r = n.replace(/"/g, "").split(", ").map((e) => e.trim()).map((e) => new
|
|
1926
|
+
let r = n.replace(/"/g, "").split(", ").map((e) => e.trim()).map((e) => new De.default(e).load());
|
|
1945
1927
|
return Promise.allSettled(r);
|
|
1946
1928
|
}
|
|
1947
|
-
function
|
|
1929
|
+
function Pe(e) {
|
|
1948
1930
|
try {
|
|
1949
1931
|
let t = window.__fpDataVersion;
|
|
1950
|
-
t || (t =
|
|
1932
|
+
t || (t = Ee().replace(/\D/g, ""));
|
|
1951
1933
|
let [n, r = ""] = e.split("?"), i = new URLSearchParams(r);
|
|
1952
1934
|
if (i.has("v")) return e;
|
|
1953
1935
|
i.set("v", t);
|
|
@@ -1958,82 +1940,6 @@ function ze(e) {
|
|
|
1958
1940
|
}
|
|
1959
1941
|
}
|
|
1960
1942
|
//#endregion
|
|
1961
|
-
//#region src/utils/urlEncoding.ts
|
|
1962
|
-
function Be(e) {
|
|
1963
|
-
if (!e || e.length === 0) return "";
|
|
1964
|
-
let t = e.map((e) => encodeURIComponent(e.trim())).join(",");
|
|
1965
|
-
return o.log("URLEncoding: encoding string array:", {
|
|
1966
|
-
original: e,
|
|
1967
|
-
encoded: t
|
|
1968
|
-
}), t;
|
|
1969
|
-
}
|
|
1970
|
-
function Ve(e) {
|
|
1971
|
-
if (!e) return [];
|
|
1972
|
-
try {
|
|
1973
|
-
let t = e.split(",").map((e) => decodeURIComponent(e.trim())).filter(Boolean);
|
|
1974
|
-
return o.log("URLEncoding: decoding string array:", {
|
|
1975
|
-
encoded: e,
|
|
1976
|
-
decoded: t
|
|
1977
|
-
}), t;
|
|
1978
|
-
} catch (t) {
|
|
1979
|
-
return o.warn("URLEncoding: failed to decode string array:", e, t), [];
|
|
1980
|
-
}
|
|
1981
|
-
}
|
|
1982
|
-
function He(e) {
|
|
1983
|
-
if (!e) return null;
|
|
1984
|
-
let t = encodeURIComponent(e.trim());
|
|
1985
|
-
return o.log("URLEncoding: encoding string:", {
|
|
1986
|
-
original: e,
|
|
1987
|
-
encoded: t
|
|
1988
|
-
}), t;
|
|
1989
|
-
}
|
|
1990
|
-
function Ue(e) {
|
|
1991
|
-
if (!e) return null;
|
|
1992
|
-
try {
|
|
1993
|
-
let t = decodeURIComponent(e.trim());
|
|
1994
|
-
return o.log("URLEncoding: decoding string:", {
|
|
1995
|
-
encoded: e,
|
|
1996
|
-
decoded: t
|
|
1997
|
-
}), t;
|
|
1998
|
-
} catch (t) {
|
|
1999
|
-
return o.warn("URLEncoding: failed to decode string:", e, t), null;
|
|
2000
|
-
}
|
|
2001
|
-
}
|
|
2002
|
-
function We(e) {
|
|
2003
|
-
return e.map((e) => e.toLowerCase());
|
|
2004
|
-
}
|
|
2005
|
-
function Ge(e) {
|
|
2006
|
-
return e ? e.toLowerCase() : null;
|
|
2007
|
-
}
|
|
2008
|
-
//#endregion
|
|
2009
|
-
//#region src/utils/index.ts
|
|
2010
|
-
function Ke(e) {
|
|
2011
|
-
return e * parseFloat(getComputedStyle(document.documentElement).fontSize);
|
|
2012
|
-
}
|
|
2013
|
-
function qe(e, t) {
|
|
2014
|
-
let n = [];
|
|
2015
|
-
for (let r = 0; r < e.length; r += t) n.push(e.slice(r, r + t));
|
|
2016
|
-
return n;
|
|
2017
|
-
}
|
|
2018
|
-
function Je(e) {
|
|
2019
|
-
e.sort(function(e, t) {
|
|
2020
|
-
var n = e.name.toLowerCase(), r = t.name.toLowerCase();
|
|
2021
|
-
return n < r ? -1 : +(n > r);
|
|
2022
|
-
});
|
|
2023
|
-
}
|
|
2024
|
-
var Ye = document.createElement("canvas"), Xe = !!(Ye.getContext("webgl") || Ye.getContext("experimental-webgl"));
|
|
2025
|
-
if (!Xe) {
|
|
2026
|
-
let e = document.createElement("div");
|
|
2027
|
-
e.innerHTML = "<!--no webgl-->", document.body.appendChild(e);
|
|
2028
|
-
}
|
|
2029
|
-
function Ze(e) {
|
|
2030
|
-
for (var t = e.length, n, r; t !== 0;) r = Math.floor(Math.random() * t), --t, n = e[t], e[t] = e[r], e[r] = n;
|
|
2031
|
-
return e;
|
|
2032
|
-
}
|
|
2033
|
-
function Qe(e) {
|
|
2034
|
-
return new Promise((t) => setTimeout(t, e));
|
|
2035
|
-
}
|
|
2036
|
-
//#endregion
|
|
2037
1943
|
//#region ../../node_modules/.pnpm/@babel+runtime@7.28.6/node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
2038
1944
|
function T(e) {
|
|
2039
1945
|
"@babel/helpers - typeof";
|
|
@@ -2045,7 +1951,7 @@ function T(e) {
|
|
|
2045
1951
|
}
|
|
2046
1952
|
//#endregion
|
|
2047
1953
|
//#region ../../node_modules/.pnpm/@babel+runtime@7.28.6/node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
|
2048
|
-
function
|
|
1954
|
+
function Fe(e, t) {
|
|
2049
1955
|
if (T(e) != "object" || !e) return e;
|
|
2050
1956
|
var n = e[Symbol.toPrimitive];
|
|
2051
1957
|
if (n !== void 0) {
|
|
@@ -2057,14 +1963,14 @@ function $e(e, t) {
|
|
|
2057
1963
|
}
|
|
2058
1964
|
//#endregion
|
|
2059
1965
|
//#region ../../node_modules/.pnpm/@babel+runtime@7.28.6/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
|
2060
|
-
function
|
|
2061
|
-
var t =
|
|
1966
|
+
function Ie(e) {
|
|
1967
|
+
var t = Fe(e, "string");
|
|
2062
1968
|
return T(t) == "symbol" ? t : t + "";
|
|
2063
1969
|
}
|
|
2064
1970
|
//#endregion
|
|
2065
1971
|
//#region ../../node_modules/.pnpm/@babel+runtime@7.28.6/node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
2066
|
-
function
|
|
2067
|
-
return (t =
|
|
1972
|
+
function Le(e, t, n) {
|
|
1973
|
+
return (t = Ie(t)) in e ? Object.defineProperty(e, t, {
|
|
2068
1974
|
value: n,
|
|
2069
1975
|
enumerable: !0,
|
|
2070
1976
|
configurable: !0,
|
|
@@ -2079,7 +1985,7 @@ function E(e) {
|
|
|
2079
1985
|
typeof Object.getOwnPropertySymbols == "function" && r.push.apply(r, Object.getOwnPropertySymbols(n).filter(function(e) {
|
|
2080
1986
|
return Object.getOwnPropertyDescriptor(n, e).enumerable;
|
|
2081
1987
|
})), r.forEach(function(t) {
|
|
2082
|
-
|
|
1988
|
+
Le(e, t, n[t]);
|
|
2083
1989
|
});
|
|
2084
1990
|
}
|
|
2085
1991
|
return e;
|
|
@@ -2091,14 +1997,14 @@ function D(e, t) {
|
|
|
2091
1997
|
}
|
|
2092
1998
|
//#endregion
|
|
2093
1999
|
//#region ../../node_modules/.pnpm/@babel+runtime@7.28.6/node_modules/@babel/runtime/helpers/esm/createClass.js
|
|
2094
|
-
function
|
|
2000
|
+
function Re(e, t) {
|
|
2095
2001
|
for (var n = 0; n < t.length; n++) {
|
|
2096
2002
|
var r = t[n];
|
|
2097
|
-
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e,
|
|
2003
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, Ie(r.key), r);
|
|
2098
2004
|
}
|
|
2099
2005
|
}
|
|
2100
2006
|
function O(e, t, n) {
|
|
2101
|
-
return t &&
|
|
2007
|
+
return t && Re(e.prototype, t), n && Re(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
2102
2008
|
}
|
|
2103
2009
|
//#endregion
|
|
2104
2010
|
//#region ../../node_modules/.pnpm/@babel+runtime@7.28.6/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
|
|
@@ -2108,38 +2014,38 @@ function k(e) {
|
|
|
2108
2014
|
}
|
|
2109
2015
|
//#endregion
|
|
2110
2016
|
//#region ../../node_modules/.pnpm/@babel+runtime@7.28.6/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
|
|
2111
|
-
function
|
|
2017
|
+
function ze(e, t) {
|
|
2112
2018
|
if (t && (T(t) == "object" || typeof t == "function")) return t;
|
|
2113
2019
|
if (t !== void 0) throw TypeError("Derived constructors may only return object or undefined");
|
|
2114
2020
|
return k(e);
|
|
2115
2021
|
}
|
|
2116
2022
|
//#endregion
|
|
2117
2023
|
//#region ../../node_modules/.pnpm/@babel+runtime@7.28.6/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
|
|
2118
|
-
function
|
|
2119
|
-
return
|
|
2024
|
+
function Be(e) {
|
|
2025
|
+
return Be = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
|
|
2120
2026
|
return e.__proto__ || Object.getPrototypeOf(e);
|
|
2121
|
-
},
|
|
2027
|
+
}, Be(e);
|
|
2122
2028
|
}
|
|
2123
2029
|
//#endregion
|
|
2124
2030
|
//#region ../../node_modules/.pnpm/@babel+runtime@7.28.6/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
2125
|
-
function
|
|
2126
|
-
return
|
|
2031
|
+
function Ve(e, t) {
|
|
2032
|
+
return Ve = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
|
|
2127
2033
|
return e.__proto__ = t, e;
|
|
2128
|
-
},
|
|
2034
|
+
}, Ve(e, t);
|
|
2129
2035
|
}
|
|
2130
2036
|
//#endregion
|
|
2131
2037
|
//#region ../../node_modules/.pnpm/@babel+runtime@7.28.6/node_modules/@babel/runtime/helpers/esm/inherits.js
|
|
2132
|
-
function
|
|
2038
|
+
function He(e, t) {
|
|
2133
2039
|
if (typeof t != "function" && t !== null) throw TypeError("Super expression must either be null or a function");
|
|
2134
2040
|
e.prototype = Object.create(t && t.prototype, { constructor: {
|
|
2135
2041
|
value: e,
|
|
2136
2042
|
writable: !0,
|
|
2137
2043
|
configurable: !0
|
|
2138
|
-
} }), Object.defineProperty(e, "prototype", { writable: !1 }), t &&
|
|
2044
|
+
} }), Object.defineProperty(e, "prototype", { writable: !1 }), t && Ve(e, t);
|
|
2139
2045
|
}
|
|
2140
2046
|
//#endregion
|
|
2141
2047
|
//#region ../../node_modules/.pnpm/i18next@19.9.2/node_modules/i18next/dist/esm/i18next.js
|
|
2142
|
-
var
|
|
2048
|
+
var Ue = {
|
|
2143
2049
|
type: "logger",
|
|
2144
2050
|
log: function(e) {
|
|
2145
2051
|
this.output("log", e);
|
|
@@ -2163,7 +2069,7 @@ var st = {
|
|
|
2163
2069
|
key: "init",
|
|
2164
2070
|
value: function(e) {
|
|
2165
2071
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
2166
|
-
this.prefix = t.prefix || "i18next:", this.logger = e ||
|
|
2072
|
+
this.prefix = t.prefix || "i18next:", this.logger = e || Ue, this.options = t, this.debug = t.debug;
|
|
2167
2073
|
}
|
|
2168
2074
|
},
|
|
2169
2075
|
{
|
|
@@ -2213,7 +2119,7 @@ var st = {
|
|
|
2213
2119
|
}
|
|
2214
2120
|
}
|
|
2215
2121
|
]), e;
|
|
2216
|
-
}())(),
|
|
2122
|
+
}())(), j = function() {
|
|
2217
2123
|
function e() {
|
|
2218
2124
|
D(this, e), this.observers = {};
|
|
2219
2125
|
}
|
|
@@ -2254,21 +2160,21 @@ var st = {
|
|
|
2254
2160
|
}
|
|
2255
2161
|
]), e;
|
|
2256
2162
|
}();
|
|
2257
|
-
function
|
|
2163
|
+
function We() {
|
|
2258
2164
|
var e, t, n = new Promise(function(n, r) {
|
|
2259
2165
|
e = n, t = r;
|
|
2260
2166
|
});
|
|
2261
2167
|
return n.resolve = e, n.reject = t, n;
|
|
2262
2168
|
}
|
|
2263
|
-
function
|
|
2169
|
+
function Ge(e) {
|
|
2264
2170
|
return e == null ? "" : "" + e;
|
|
2265
2171
|
}
|
|
2266
|
-
function
|
|
2172
|
+
function Ke(e, t, n) {
|
|
2267
2173
|
e.forEach(function(e) {
|
|
2268
2174
|
t[e] && (n[e] = t[e]);
|
|
2269
2175
|
});
|
|
2270
2176
|
}
|
|
2271
|
-
function
|
|
2177
|
+
function qe(e, t, n) {
|
|
2272
2178
|
function r(e) {
|
|
2273
2179
|
return e && e.indexOf("###") > -1 ? e.replace(/###/g, ".") : e;
|
|
2274
2180
|
}
|
|
@@ -2285,30 +2191,30 @@ function ft(e, t, n) {
|
|
|
2285
2191
|
k: r(a.shift())
|
|
2286
2192
|
};
|
|
2287
2193
|
}
|
|
2288
|
-
function
|
|
2289
|
-
var r =
|
|
2194
|
+
function Je(e, t, n) {
|
|
2195
|
+
var r = qe(e, t, Object), i = r.obj, a = r.k;
|
|
2290
2196
|
i[a] = n;
|
|
2291
2197
|
}
|
|
2292
|
-
function
|
|
2293
|
-
var i =
|
|
2198
|
+
function Ye(e, t, n, r) {
|
|
2199
|
+
var i = qe(e, t, Object), a = i.obj, o = i.k;
|
|
2294
2200
|
a[o] = a[o] || [], r && (a[o] = a[o].concat(n)), r || a[o].push(n);
|
|
2295
2201
|
}
|
|
2296
|
-
function
|
|
2297
|
-
var n =
|
|
2202
|
+
function Xe(e, t) {
|
|
2203
|
+
var n = qe(e, t), r = n.obj, i = n.k;
|
|
2298
2204
|
if (r) return r[i];
|
|
2299
2205
|
}
|
|
2300
|
-
function
|
|
2301
|
-
var r =
|
|
2302
|
-
return r === void 0 ?
|
|
2206
|
+
function Ze(e, t, n) {
|
|
2207
|
+
var r = Xe(e, n);
|
|
2208
|
+
return r === void 0 ? Xe(t, n) : r;
|
|
2303
2209
|
}
|
|
2304
|
-
function
|
|
2305
|
-
for (var r in t) r !== "__proto__" && r !== "constructor" && (r in e ? typeof e[r] == "string" || e[r] instanceof String || typeof t[r] == "string" || t[r] instanceof String ? n && (e[r] = t[r]) :
|
|
2210
|
+
function Qe(e, t, n) {
|
|
2211
|
+
for (var r in t) r !== "__proto__" && r !== "constructor" && (r in e ? typeof e[r] == "string" || e[r] instanceof String || typeof t[r] == "string" || t[r] instanceof String ? n && (e[r] = t[r]) : Qe(e[r], t[r], n) : e[r] = t[r]);
|
|
2306
2212
|
return e;
|
|
2307
2213
|
}
|
|
2308
|
-
function
|
|
2214
|
+
function $e(e) {
|
|
2309
2215
|
return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
|
|
2310
2216
|
}
|
|
2311
|
-
var
|
|
2217
|
+
var et = {
|
|
2312
2218
|
"&": "&",
|
|
2313
2219
|
"<": "<",
|
|
2314
2220
|
">": ">",
|
|
@@ -2316,19 +2222,19 @@ var yt = {
|
|
|
2316
2222
|
"'": "'",
|
|
2317
2223
|
"/": "/"
|
|
2318
2224
|
};
|
|
2319
|
-
function
|
|
2225
|
+
function tt(e) {
|
|
2320
2226
|
return typeof e == "string" ? e.replace(/[&<>"'\/]/g, function(e) {
|
|
2321
|
-
return
|
|
2227
|
+
return et[e];
|
|
2322
2228
|
}) : e;
|
|
2323
2229
|
}
|
|
2324
|
-
var
|
|
2325
|
-
|
|
2230
|
+
var nt = typeof window < "u" && window.navigator && window.navigator.userAgent && window.navigator.userAgent.indexOf("MSIE") > -1, rt = function(e) {
|
|
2231
|
+
He(t, e);
|
|
2326
2232
|
function t(e) {
|
|
2327
2233
|
var n, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
2328
2234
|
ns: ["translation"],
|
|
2329
2235
|
defaultNS: "translation"
|
|
2330
2236
|
};
|
|
2331
|
-
return D(this, t), n =
|
|
2237
|
+
return D(this, t), n = ze(this, Be(t).call(this)), nt && j.call(k(n)), n.data = e || {}, n.options = r, n.options.keySeparator === void 0 && (n.options.keySeparator = "."), n;
|
|
2332
2238
|
}
|
|
2333
2239
|
return O(t, [
|
|
2334
2240
|
{
|
|
@@ -2348,7 +2254,7 @@ var xt = typeof window < "u" && window.navigator && window.navigator.userAgent &
|
|
|
2348
2254
|
key: "getResource",
|
|
2349
2255
|
value: function(e, t, n) {
|
|
2350
2256
|
var r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, i = r.keySeparator === void 0 ? this.options.keySeparator : r.keySeparator, a = [e, t];
|
|
2351
|
-
return n && typeof n != "string" && (a = a.concat(n)), n && typeof n == "string" && (a = a.concat(i ? n.split(i) : n)), e.indexOf(".") > -1 && (a = e.split(".")),
|
|
2257
|
+
return n && typeof n != "string" && (a = a.concat(n)), n && typeof n == "string" && (a = a.concat(i ? n.split(i) : n)), e.indexOf(".") > -1 && (a = e.split(".")), Xe(this.data, a);
|
|
2352
2258
|
}
|
|
2353
2259
|
},
|
|
2354
2260
|
{
|
|
@@ -2357,7 +2263,7 @@ var xt = typeof window < "u" && window.navigator && window.navigator.userAgent &
|
|
|
2357
2263
|
var i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : { silent: !1 }, a = this.options.keySeparator;
|
|
2358
2264
|
a === void 0 && (a = ".");
|
|
2359
2265
|
var o = [e, t];
|
|
2360
|
-
n && (o = o.concat(a ? n.split(a) : n)), e.indexOf(".") > -1 && (o = e.split("."), r = t, t = o[1]), this.addNamespaces(t),
|
|
2266
|
+
n && (o = o.concat(a ? n.split(a) : n)), e.indexOf(".") > -1 && (o = e.split("."), r = t, t = o[1]), this.addNamespaces(t), Je(this.data, o, r), i.silent || this.emit("added", e, t, n, r);
|
|
2361
2267
|
}
|
|
2362
2268
|
},
|
|
2363
2269
|
{
|
|
@@ -2373,8 +2279,8 @@ var xt = typeof window < "u" && window.navigator && window.navigator.userAgent &
|
|
|
2373
2279
|
value: function(e, t, n, r, i) {
|
|
2374
2280
|
var a = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : { silent: !1 }, o = [e, t];
|
|
2375
2281
|
e.indexOf(".") > -1 && (o = e.split("."), r = n, n = t, t = o[1]), this.addNamespaces(t);
|
|
2376
|
-
var s =
|
|
2377
|
-
r ?
|
|
2282
|
+
var s = Xe(this.data, o) || {};
|
|
2283
|
+
r ? Qe(s, n, i) : s = E({}, s, n), Je(this.data, o, s), a.silent || this.emit("added", e, t, n);
|
|
2378
2284
|
}
|
|
2379
2285
|
},
|
|
2380
2286
|
{
|
|
@@ -2408,7 +2314,7 @@ var xt = typeof window < "u" && window.navigator && window.navigator.userAgent &
|
|
|
2408
2314
|
}
|
|
2409
2315
|
}
|
|
2410
2316
|
]), t;
|
|
2411
|
-
}(
|
|
2317
|
+
}(j), it = {
|
|
2412
2318
|
processors: {},
|
|
2413
2319
|
addPostProcessor: function(e) {
|
|
2414
2320
|
this.processors[e.name] = e;
|
|
@@ -2419,11 +2325,11 @@ var xt = typeof window < "u" && window.navigator && window.navigator.userAgent &
|
|
|
2419
2325
|
a.processors[e] && (t = a.processors[e].process(t, n, r, i));
|
|
2420
2326
|
}), t;
|
|
2421
2327
|
}
|
|
2422
|
-
},
|
|
2423
|
-
|
|
2328
|
+
}, at = {}, ot = function(e) {
|
|
2329
|
+
He(t, e);
|
|
2424
2330
|
function t(e) {
|
|
2425
2331
|
var n, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
2426
|
-
return D(this, t), n =
|
|
2332
|
+
return D(this, t), n = ze(this, Be(t).call(this)), nt && j.call(k(n)), Ke([
|
|
2427
2333
|
"resourceStore",
|
|
2428
2334
|
"languageUtils",
|
|
2429
2335
|
"pluralResolver",
|
|
@@ -2544,7 +2450,7 @@ var xt = typeof window < "u" && window.navigator && window.navigator.userAgent &
|
|
|
2544
2450
|
}, n)), n.interpolation && this.interpolator.reset();
|
|
2545
2451
|
}
|
|
2546
2452
|
var f = n.postProcess || this.options.postProcess, p = typeof f == "string" ? [f] : f;
|
|
2547
|
-
return e != null && p && p.length && n.applyPostProcessor !== !1 && (e =
|
|
2453
|
+
return e != null && p && p.length && n.applyPostProcessor !== !1 && (e = it.handle(p, e, t, this.options && this.options.postProcessPassResolved ? E({ i18nResolved: r }, n) : n, this)), e;
|
|
2548
2454
|
}
|
|
2549
2455
|
},
|
|
2550
2456
|
{
|
|
@@ -2559,7 +2465,7 @@ var xt = typeof window < "u" && window.navigator && window.navigator.userAgent &
|
|
|
2559
2465
|
t.options.fallbackNS && (u = u.concat(t.options.fallbackNS));
|
|
2560
2466
|
var d = n.count !== void 0 && typeof n.count != "string", f = n.context !== void 0 && typeof n.context == "string" && n.context !== "", p = n.lngs ? n.lngs : t.languageUtils.toResolveHierarchy(n.lng || t.language, n.fallbackLng);
|
|
2561
2467
|
u.forEach(function(e) {
|
|
2562
|
-
t.isValidLookup(r) || (s = e, !
|
|
2468
|
+
t.isValidLookup(r) || (s = e, !at[`${p[0]}-${e}`] && t.utils && t.utils.hasLoadedNamespace && !t.utils.hasLoadedNamespace(s) && (at[`${p[0]}-${e}`] = !0, t.logger.warn(`key "${i}" for languages "${p.join(", ")}" won't get resolved as namespace "${s}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), p.forEach(function(i) {
|
|
2563
2469
|
if (!t.isValidLookup(r)) {
|
|
2564
2470
|
o = i;
|
|
2565
2471
|
var s = l, c = [s];
|
|
@@ -2603,11 +2509,11 @@ var xt = typeof window < "u" && window.navigator && window.navigator.userAgent &
|
|
|
2603
2509
|
return !1;
|
|
2604
2510
|
}
|
|
2605
2511
|
}]), t;
|
|
2606
|
-
}(
|
|
2607
|
-
function
|
|
2512
|
+
}(j);
|
|
2513
|
+
function st(e) {
|
|
2608
2514
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
2609
2515
|
}
|
|
2610
|
-
var
|
|
2516
|
+
var ct = function() {
|
|
2611
2517
|
function e(t) {
|
|
2612
2518
|
D(this, e), this.options = t, this.whitelist = this.options.supportedLngs || !1, this.supportedLngs = this.options.supportedLngs || !1, this.logger = A.create("languageUtils");
|
|
2613
2519
|
}
|
|
@@ -2643,7 +2549,7 @@ var Dt = function() {
|
|
|
2643
2549
|
], n = e.split("-");
|
|
2644
2550
|
return this.options.lowerCaseLng ? n = n.map(function(e) {
|
|
2645
2551
|
return e.toLowerCase();
|
|
2646
|
-
}) : n.length === 2 ? (n[0] = n[0].toLowerCase(), n[1] = n[1].toUpperCase(), t.indexOf(n[1].toLowerCase()) > -1 && (n[1] =
|
|
2552
|
+
}) : n.length === 2 ? (n[0] = n[0].toLowerCase(), n[1] = n[1].toUpperCase(), t.indexOf(n[1].toLowerCase()) > -1 && (n[1] = st(n[1].toLowerCase()))) : n.length === 3 && (n[0] = n[0].toLowerCase(), n[1].length === 2 && (n[1] = n[1].toUpperCase()), n[0] !== "sgn" && n[2].length === 2 && (n[2] = n[2].toUpperCase()), t.indexOf(n[1].toLowerCase()) > -1 && (n[1] = st(n[1].toLowerCase())), t.indexOf(n[2].toLowerCase()) > -1 && (n[2] = st(n[2].toLowerCase()))), n.join("-");
|
|
2647
2553
|
}
|
|
2648
2554
|
return this.options.cleanCode || this.options.lowerCaseLng ? e.toLowerCase() : e;
|
|
2649
2555
|
}
|
|
@@ -2704,7 +2610,7 @@ var Dt = function() {
|
|
|
2704
2610
|
}
|
|
2705
2611
|
}
|
|
2706
2612
|
]), e;
|
|
2707
|
-
}(),
|
|
2613
|
+
}(), lt = [
|
|
2708
2614
|
{
|
|
2709
2615
|
lngs: [
|
|
2710
2616
|
"ach",
|
|
@@ -2945,7 +2851,7 @@ var Dt = function() {
|
|
|
2945
2851
|
],
|
|
2946
2852
|
fc: 22
|
|
2947
2853
|
}
|
|
2948
|
-
],
|
|
2854
|
+
], ut = {
|
|
2949
2855
|
1: function(e) {
|
|
2950
2856
|
return Number(e > 1);
|
|
2951
2857
|
},
|
|
@@ -3013,21 +2919,21 @@ var Dt = function() {
|
|
|
3013
2919
|
return Number(e == 1 ? 0 : e == 2 ? 1 : (e < 0 || e > 10) && e % 10 == 0 ? 2 : 3);
|
|
3014
2920
|
}
|
|
3015
2921
|
};
|
|
3016
|
-
function
|
|
2922
|
+
function dt() {
|
|
3017
2923
|
var e = {};
|
|
3018
|
-
return
|
|
2924
|
+
return lt.forEach(function(t) {
|
|
3019
2925
|
t.lngs.forEach(function(n) {
|
|
3020
2926
|
e[n] = {
|
|
3021
2927
|
numbers: t.nr,
|
|
3022
|
-
plurals:
|
|
2928
|
+
plurals: ut[t.fc]
|
|
3023
2929
|
};
|
|
3024
2930
|
});
|
|
3025
2931
|
}), e;
|
|
3026
2932
|
}
|
|
3027
|
-
var
|
|
2933
|
+
var ft = function() {
|
|
3028
2934
|
function e(t) {
|
|
3029
2935
|
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
3030
|
-
D(this, e), this.languageUtils = t, this.options = n, this.logger = A.create("pluralResolver"), this.rules =
|
|
2936
|
+
D(this, e), this.languageUtils = t, this.options = n, this.logger = A.create("pluralResolver"), this.rules = dt();
|
|
3031
2937
|
}
|
|
3032
2938
|
return O(e, [
|
|
3033
2939
|
{
|
|
@@ -3082,7 +2988,7 @@ var jt = function() {
|
|
|
3082
2988
|
}
|
|
3083
2989
|
}
|
|
3084
2990
|
]), e;
|
|
3085
|
-
}(),
|
|
2991
|
+
}(), pt = function() {
|
|
3086
2992
|
function e() {
|
|
3087
2993
|
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
3088
2994
|
D(this, e), this.logger = A.create("interpolator"), this.options = t, this.format = t.interpolation && t.interpolation.format || function(e) {
|
|
@@ -3096,7 +3002,7 @@ var jt = function() {
|
|
|
3096
3002
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
3097
3003
|
e.interpolation || (e.interpolation = { escapeValue: !0 });
|
|
3098
3004
|
var t = e.interpolation;
|
|
3099
|
-
this.escape = t.escape === void 0 ?
|
|
3005
|
+
this.escape = t.escape === void 0 ? tt : t.escape, this.escapeValue = t.escapeValue === void 0 ? !0 : t.escapeValue, this.useRawValueToEscape = t.useRawValueToEscape === void 0 ? !1 : t.useRawValueToEscape, this.prefix = t.prefix ? $e(t.prefix) : t.prefixEscaped || "{{", this.suffix = t.suffix ? $e(t.suffix) : t.suffixEscaped || "}}", this.formatSeparator = t.formatSeparator ? t.formatSeparator : t.formatSeparator || ",", this.unescapePrefix = t.unescapeSuffix ? "" : t.unescapePrefix || "-", this.unescapeSuffix = this.unescapePrefix ? "" : t.unescapeSuffix || "", this.nestingPrefix = t.nestingPrefix ? $e(t.nestingPrefix) : t.nestingPrefixEscaped || $e("$t("), this.nestingSuffix = t.nestingSuffix ? $e(t.nestingSuffix) : t.nestingSuffixEscaped || $e(")"), this.nestingOptionsSeparator = t.nestingOptionsSeparator ? t.nestingOptionsSeparator : t.nestingOptionsSeparator || ",", this.maxReplaces = t.maxReplaces ? t.maxReplaces : 1e3, this.alwaysFormat = t.alwaysFormat === void 0 ? !1 : t.alwaysFormat, this.resetRegExp();
|
|
3100
3006
|
}
|
|
3101
3007
|
},
|
|
3102
3008
|
{
|
|
@@ -3125,11 +3031,11 @@ var jt = function() {
|
|
|
3125
3031
|
}
|
|
3126
3032
|
var u = function(e) {
|
|
3127
3033
|
if (e.indexOf(i.formatSeparator) < 0) {
|
|
3128
|
-
var a =
|
|
3034
|
+
var a = Ze(t, c, e);
|
|
3129
3035
|
return i.alwaysFormat ? i.format(a, void 0, n) : a;
|
|
3130
3036
|
}
|
|
3131
3037
|
var o = e.split(i.formatSeparator), s = o.shift().trim(), l = o.join(i.formatSeparator).trim();
|
|
3132
|
-
return i.format(
|
|
3038
|
+
return i.format(Ze(t, c, s), l, n, r);
|
|
3133
3039
|
};
|
|
3134
3040
|
this.resetRegExp();
|
|
3135
3041
|
var d = r && r.missingInterpolationHandler || this.options.missingInterpolationHandler, f = r && r.interpolation && r.interpolation.skipOnVariables || this.options.interpolation.skipOnVariables;
|
|
@@ -3152,7 +3058,7 @@ var jt = function() {
|
|
|
3152
3058
|
o = a[0];
|
|
3153
3059
|
continue;
|
|
3154
3060
|
} else i.logger.warn(`missed to pass in variable ${a[1]} for interpolating ${e}`), o = "";
|
|
3155
|
-
else typeof o != "string" && !i.useRawValueToEscape && (o =
|
|
3061
|
+
else typeof o != "string" && !i.useRawValueToEscape && (o = Ge(o));
|
|
3156
3062
|
if (e = e.replace(a[0], t.safeValue(o)), t.regex.lastIndex = 0, s++, s >= i.maxReplaces) break;
|
|
3157
3063
|
}
|
|
3158
3064
|
}), e;
|
|
@@ -3184,7 +3090,7 @@ var jt = function() {
|
|
|
3184
3090
|
i[1] = u.shift(), c = u, l = !0;
|
|
3185
3091
|
}
|
|
3186
3092
|
if (a = t(s.call(this, i[1].trim(), o), o), a && i[0] === e && typeof a != "string") return a;
|
|
3187
|
-
typeof a != "string" && (a =
|
|
3093
|
+
typeof a != "string" && (a = Ge(a)), a || (this.logger.warn(`missed to resolve ${i[1]} for nesting ${e}`), a = ""), l && (a = c.reduce(function(e, t) {
|
|
3188
3094
|
return n.format(e, t, r.lng, r);
|
|
3189
3095
|
}, a.trim())), e = e.replace(i[0], a), this.regexp.lastIndex = 0;
|
|
3190
3096
|
}
|
|
@@ -3193,14 +3099,14 @@ var jt = function() {
|
|
|
3193
3099
|
}
|
|
3194
3100
|
]), e;
|
|
3195
3101
|
}();
|
|
3196
|
-
function
|
|
3102
|
+
function mt(e, t) {
|
|
3197
3103
|
for (var n = e.indexOf(t); n !== -1;) e.splice(n, 1), n = e.indexOf(t);
|
|
3198
3104
|
}
|
|
3199
|
-
var
|
|
3200
|
-
|
|
3105
|
+
var ht = function(e) {
|
|
3106
|
+
He(t, e);
|
|
3201
3107
|
function t(e, n, r) {
|
|
3202
3108
|
var i, a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
3203
|
-
return D(this, t), i =
|
|
3109
|
+
return D(this, t), i = ze(this, Be(t).call(this)), nt && j.call(k(i)), i.backend = e, i.store = n, i.services = r, i.languageUtils = r.languageUtils, i.options = a, i.logger = A.create("backendConnector"), i.state = {}, i.queue = [], i.backend && i.backend.init && i.backend.init(r, a.backend, a), i;
|
|
3204
3110
|
}
|
|
3205
3111
|
return O(t, [
|
|
3206
3112
|
{
|
|
@@ -3233,7 +3139,7 @@ var Pt = function(e) {
|
|
|
3233
3139
|
t && this.emit("failedLoading", i, a, t), n && this.store.addResourceBundle(i, a, n), this.state[e] = t ? -1 : 2;
|
|
3234
3140
|
var o = {};
|
|
3235
3141
|
this.queue.forEach(function(n) {
|
|
3236
|
-
|
|
3142
|
+
Ye(n.loaded, [i], a), mt(n.pending, e), t && n.errors.push(t), n.pending.length === 0 && !n.done && (Object.keys(n.loaded).forEach(function(e) {
|
|
3237
3143
|
o[e] || (o[e] = []), n.loaded[e].length && n.loaded[e].forEach(function(t) {
|
|
3238
3144
|
o[e].indexOf(t) < 0 && o[e].push(t);
|
|
3239
3145
|
});
|
|
@@ -3304,8 +3210,8 @@ var Pt = function(e) {
|
|
|
3304
3210
|
}
|
|
3305
3211
|
}
|
|
3306
3212
|
]), t;
|
|
3307
|
-
}(
|
|
3308
|
-
function
|
|
3213
|
+
}(j);
|
|
3214
|
+
function gt() {
|
|
3309
3215
|
return {
|
|
3310
3216
|
debug: !1,
|
|
3311
3217
|
initImmediate: !0,
|
|
@@ -3368,16 +3274,16 @@ function Ft() {
|
|
|
3368
3274
|
}
|
|
3369
3275
|
};
|
|
3370
3276
|
}
|
|
3371
|
-
function
|
|
3277
|
+
function _t(e) {
|
|
3372
3278
|
return typeof e.ns == "string" && (e.ns = [e.ns]), typeof e.fallbackLng == "string" && (e.fallbackLng = [e.fallbackLng]), typeof e.fallbackNS == "string" && (e.fallbackNS = [e.fallbackNS]), e.whitelist && (e.whitelist && e.whitelist.indexOf("cimode") < 0 && (e.whitelist = e.whitelist.concat(["cimode"])), e.supportedLngs = e.whitelist), e.nonExplicitWhitelist && (e.nonExplicitSupportedLngs = e.nonExplicitWhitelist), e.supportedLngs && e.supportedLngs.indexOf("cimode") < 0 && (e.supportedLngs = e.supportedLngs.concat(["cimode"])), e;
|
|
3373
3279
|
}
|
|
3374
|
-
function
|
|
3375
|
-
var
|
|
3376
|
-
|
|
3280
|
+
function vt() {}
|
|
3281
|
+
var yt = new (function(e) {
|
|
3282
|
+
He(t, e);
|
|
3377
3283
|
function t() {
|
|
3378
3284
|
var e, n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = arguments.length > 1 ? arguments[1] : void 0;
|
|
3379
|
-
if (D(this, t), e =
|
|
3380
|
-
if (!e.options.initImmediate) return e.init(n, r),
|
|
3285
|
+
if (D(this, t), e = ze(this, Be(t).call(this)), nt && j.call(k(e)), e.options = _t(n), e.services = {}, e.logger = A, e.modules = { external: [] }, r && !e.isInitialized && !n.isClone) {
|
|
3286
|
+
if (!e.options.initImmediate) return e.init(n, r), ze(e, k(e));
|
|
3381
3287
|
setTimeout(function() {
|
|
3382
3288
|
e.init(n, r);
|
|
3383
3289
|
}, 0);
|
|
@@ -3389,23 +3295,23 @@ var Rt = new (function(e) {
|
|
|
3389
3295
|
key: "init",
|
|
3390
3296
|
value: function() {
|
|
3391
3297
|
var e = this, t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 ? arguments[1] : void 0;
|
|
3392
|
-
typeof t == "function" && (n = t, t = {}), t.whitelist && !t.supportedLngs && this.logger.deprecate("whitelist", "option \"whitelist\" will be renamed to \"supportedLngs\" in the next major - please make sure to rename this option asap."), t.nonExplicitWhitelist && !t.nonExplicitSupportedLngs && this.logger.deprecate("whitelist", "options \"nonExplicitWhitelist\" will be renamed to \"nonExplicitSupportedLngs\" in the next major - please make sure to rename this option asap."), this.options = E({},
|
|
3298
|
+
typeof t == "function" && (n = t, t = {}), t.whitelist && !t.supportedLngs && this.logger.deprecate("whitelist", "option \"whitelist\" will be renamed to \"supportedLngs\" in the next major - please make sure to rename this option asap."), t.nonExplicitWhitelist && !t.nonExplicitSupportedLngs && this.logger.deprecate("whitelist", "options \"nonExplicitWhitelist\" will be renamed to \"nonExplicitSupportedLngs\" in the next major - please make sure to rename this option asap."), this.options = E({}, gt(), this.options, _t(t)), this.format = this.options.interpolation.format, n || (n = vt);
|
|
3393
3299
|
function r(e) {
|
|
3394
3300
|
return e ? typeof e == "function" ? new e() : e : null;
|
|
3395
3301
|
}
|
|
3396
3302
|
if (!this.options.isClone) {
|
|
3397
3303
|
this.modules.logger ? A.init(r(this.modules.logger), this.options) : A.init(null, this.options);
|
|
3398
|
-
var i = new
|
|
3399
|
-
this.store = new
|
|
3304
|
+
var i = new ct(this.options);
|
|
3305
|
+
this.store = new rt(this.options.resources, this.options);
|
|
3400
3306
|
var a = this.services;
|
|
3401
|
-
a.logger = A, a.resourceStore = this.store, a.languageUtils = i, a.pluralResolver = new
|
|
3307
|
+
a.logger = A, a.resourceStore = this.store, a.languageUtils = i, a.pluralResolver = new ft(i, {
|
|
3402
3308
|
prepend: this.options.pluralSeparator,
|
|
3403
3309
|
compatibilityJSON: this.options.compatibilityJSON,
|
|
3404
3310
|
simplifyPluralSuffix: this.options.simplifyPluralSuffix
|
|
3405
|
-
}), a.interpolator = new
|
|
3311
|
+
}), a.interpolator = new pt(this.options), a.utils = { hasLoadedNamespace: this.hasLoadedNamespace.bind(this) }, a.backendConnector = new ht(r(this.modules.backend), a.resourceStore, a, this.options), a.backendConnector.on("*", function(t) {
|
|
3406
3312
|
var n = [...arguments].slice(1);
|
|
3407
3313
|
e.emit.apply(e, [t].concat(n));
|
|
3408
|
-
}), this.modules.languageDetector && (a.languageDetector = r(this.modules.languageDetector), a.languageDetector.init(a, this.options.detection, this.options)), this.modules.i18nFormat && (a.i18nFormat = r(this.modules.i18nFormat), a.i18nFormat.init && a.i18nFormat.init(this)), this.translator = new
|
|
3314
|
+
}), this.modules.languageDetector && (a.languageDetector = r(this.modules.languageDetector), a.languageDetector.init(a, this.options.detection, this.options)), this.modules.i18nFormat && (a.i18nFormat = r(this.modules.i18nFormat), a.i18nFormat.init && a.i18nFormat.init(this)), this.translator = new ot(this.services, this.options), this.translator.on("*", function(t) {
|
|
3409
3315
|
var n = [...arguments].slice(1);
|
|
3410
3316
|
e.emit.apply(e, [t].concat(n));
|
|
3411
3317
|
}), this.modules.external.forEach(function(t) {
|
|
@@ -3437,7 +3343,7 @@ var Rt = new (function(e) {
|
|
|
3437
3343
|
return (n = e.store)[t].apply(n, arguments), e;
|
|
3438
3344
|
};
|
|
3439
3345
|
});
|
|
3440
|
-
var s =
|
|
3346
|
+
var s = We(), c = function() {
|
|
3441
3347
|
var t = function(t, r) {
|
|
3442
3348
|
e.isInitialized && e.logger.warn("init: i18next is already initialized. You should call init just once!"), e.isInitialized = !0, e.options.isClone || e.logger.log("initialized", e.options), e.emit("initialized", e.options), s.resolve(r), n(t, r);
|
|
3443
3349
|
};
|
|
@@ -3450,7 +3356,7 @@ var Rt = new (function(e) {
|
|
|
3450
3356
|
{
|
|
3451
3357
|
key: "loadResources",
|
|
3452
3358
|
value: function(e) {
|
|
3453
|
-
var t = this, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
|
3359
|
+
var t = this, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : vt, r = typeof e == "string" ? e : this.language;
|
|
3454
3360
|
if (typeof e == "function" && (n = e), !this.options.resources || this.options.partialBundledLanguages) {
|
|
3455
3361
|
if (r && r.toLowerCase() === "cimode") return n();
|
|
3456
3362
|
var i = [], a = function(e) {
|
|
@@ -3469,8 +3375,8 @@ var Rt = new (function(e) {
|
|
|
3469
3375
|
{
|
|
3470
3376
|
key: "reloadResources",
|
|
3471
3377
|
value: function(e, t, n) {
|
|
3472
|
-
var r =
|
|
3473
|
-
return e || (e = this.languages), t || (t = this.options.ns), n || (n =
|
|
3378
|
+
var r = We();
|
|
3379
|
+
return e || (e = this.languages), t || (t = this.options.ns), n || (n = vt), this.services.backendConnector.reload(e, t, function(e) {
|
|
3474
3380
|
r.resolve(), n(e);
|
|
3475
3381
|
}), r;
|
|
3476
3382
|
}
|
|
@@ -3480,7 +3386,7 @@ var Rt = new (function(e) {
|
|
|
3480
3386
|
value: function(e) {
|
|
3481
3387
|
if (!e) throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
|
|
3482
3388
|
if (!e.type) throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
|
|
3483
|
-
return e.type === "backend" && (this.modules.backend = e), (e.type === "logger" || e.log && e.warn && e.error) && (this.modules.logger = e), e.type === "languageDetector" && (this.modules.languageDetector = e), e.type === "i18nFormat" && (this.modules.i18nFormat = e), e.type === "postProcessor" &&
|
|
3389
|
+
return e.type === "backend" && (this.modules.backend = e), (e.type === "logger" || e.log && e.warn && e.error) && (this.modules.logger = e), e.type === "languageDetector" && (this.modules.languageDetector = e), e.type === "i18nFormat" && (this.modules.i18nFormat = e), e.type === "postProcessor" && it.addPostProcessor(e), e.type === "3rdParty" && this.modules.external.push(e), this;
|
|
3484
3390
|
}
|
|
3485
3391
|
},
|
|
3486
3392
|
{
|
|
@@ -3488,7 +3394,7 @@ var Rt = new (function(e) {
|
|
|
3488
3394
|
value: function(e, t) {
|
|
3489
3395
|
var n = this;
|
|
3490
3396
|
this.isLanguageChangingTo = e;
|
|
3491
|
-
var r =
|
|
3397
|
+
var r = We();
|
|
3492
3398
|
this.emit("languageChanging", e);
|
|
3493
3399
|
var i = function(e, i) {
|
|
3494
3400
|
i ? (n.language = i, n.languages = n.services.languageUtils.toResolveHierarchy(i), n.translator.changeLanguage(i), n.isLanguageChangingTo = void 0, n.emit("languageChanged", i), n.logger.log("languageChanged", i)) : n.isLanguageChangingTo = void 0, r.resolve(function() {
|
|
@@ -3561,7 +3467,7 @@ var Rt = new (function(e) {
|
|
|
3561
3467
|
{
|
|
3562
3468
|
key: "loadNamespaces",
|
|
3563
3469
|
value: function(e, t) {
|
|
3564
|
-
var n = this, r =
|
|
3470
|
+
var n = this, r = We();
|
|
3565
3471
|
return this.options.ns ? (typeof e == "string" && (e = [e]), e.forEach(function(e) {
|
|
3566
3472
|
n.options.ns.indexOf(e) < 0 && n.options.ns.push(e);
|
|
3567
3473
|
}), this.loadResources(function(e) {
|
|
@@ -3572,7 +3478,7 @@ var Rt = new (function(e) {
|
|
|
3572
3478
|
{
|
|
3573
3479
|
key: "loadLanguages",
|
|
3574
3480
|
value: function(e, t) {
|
|
3575
|
-
var n =
|
|
3481
|
+
var n = We();
|
|
3576
3482
|
typeof e == "string" && (e = [e]);
|
|
3577
3483
|
var r = this.options.preload || [], i = e.filter(function(e) {
|
|
3578
3484
|
return r.indexOf(e) < 0;
|
|
@@ -3597,64 +3503,64 @@ var Rt = new (function(e) {
|
|
|
3597
3503
|
{
|
|
3598
3504
|
key: "cloneInstance",
|
|
3599
3505
|
value: function() {
|
|
3600
|
-
var e = this, n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
|
3506
|
+
var e = this, n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : vt, i = E({}, this.options, n, { isClone: !0 }), a = new t(i);
|
|
3601
3507
|
return [
|
|
3602
3508
|
"store",
|
|
3603
3509
|
"services",
|
|
3604
3510
|
"language"
|
|
3605
3511
|
].forEach(function(t) {
|
|
3606
3512
|
a[t] = e[t];
|
|
3607
|
-
}), a.services = E({}, this.services), a.services.utils = { hasLoadedNamespace: a.hasLoadedNamespace.bind(a) }, a.translator = new
|
|
3513
|
+
}), a.services = E({}, this.services), a.services.utils = { hasLoadedNamespace: a.hasLoadedNamespace.bind(a) }, a.translator = new ot(a.services, a.options), a.translator.on("*", function(e) {
|
|
3608
3514
|
var t = [...arguments].slice(1);
|
|
3609
3515
|
a.emit.apply(a, [e].concat(t));
|
|
3610
3516
|
}), a.init(i, r), a.translator.options = a.options, a.translator.backendConnector.services.utils = { hasLoadedNamespace: a.hasLoadedNamespace.bind(a) }, a;
|
|
3611
3517
|
}
|
|
3612
3518
|
}
|
|
3613
3519
|
]), t;
|
|
3614
|
-
}(
|
|
3615
|
-
Object.freeze(
|
|
3616
|
-
var
|
|
3617
|
-
Object.freeze(
|
|
3618
|
-
function
|
|
3619
|
-
return ++
|
|
3520
|
+
}(j))(), bt = "An invariant failed, however the error is obfuscated because this is a production build.", xt = [];
|
|
3521
|
+
Object.freeze(xt);
|
|
3522
|
+
var St = {};
|
|
3523
|
+
Object.freeze(St);
|
|
3524
|
+
function M() {
|
|
3525
|
+
return ++H.mobxGuid;
|
|
3620
3526
|
}
|
|
3621
|
-
function
|
|
3622
|
-
throw
|
|
3527
|
+
function N(e) {
|
|
3528
|
+
throw Ct(!1, e), "X";
|
|
3623
3529
|
}
|
|
3624
|
-
function
|
|
3625
|
-
if (!e) throw Error("[mobx] " + (t ||
|
|
3530
|
+
function Ct(e, t) {
|
|
3531
|
+
if (!e) throw Error("[mobx] " + (t || bt));
|
|
3626
3532
|
}
|
|
3627
|
-
function
|
|
3533
|
+
function wt(e) {
|
|
3628
3534
|
var t = !1;
|
|
3629
3535
|
return function() {
|
|
3630
3536
|
if (!t) return t = !0, e.apply(this, arguments);
|
|
3631
3537
|
};
|
|
3632
3538
|
}
|
|
3633
|
-
var
|
|
3634
|
-
function
|
|
3539
|
+
var Tt = function() {};
|
|
3540
|
+
function Et(e) {
|
|
3635
3541
|
var t = [];
|
|
3636
3542
|
return e.forEach(function(e) {
|
|
3637
3543
|
t.indexOf(e) === -1 && t.push(e);
|
|
3638
3544
|
}), t;
|
|
3639
3545
|
}
|
|
3640
|
-
function
|
|
3546
|
+
function Dt(e) {
|
|
3641
3547
|
return typeof e == "object" && !!e;
|
|
3642
3548
|
}
|
|
3643
|
-
function
|
|
3549
|
+
function Ot(e) {
|
|
3644
3550
|
if (typeof e != "object" || !e) return !1;
|
|
3645
3551
|
var t = Object.getPrototypeOf(e);
|
|
3646
3552
|
return t === Object.prototype || t === null;
|
|
3647
3553
|
}
|
|
3648
|
-
function
|
|
3649
|
-
if (
|
|
3554
|
+
function kt(e) {
|
|
3555
|
+
if (Nt(e) || Q(e)) return e;
|
|
3650
3556
|
if (Array.isArray(e)) return new Map(e);
|
|
3651
|
-
if (
|
|
3557
|
+
if (Ot(e)) {
|
|
3652
3558
|
var t = /* @__PURE__ */ new Map();
|
|
3653
3559
|
for (var n in e) t.set(n, e[n]);
|
|
3654
3560
|
return t;
|
|
3655
|
-
} else return
|
|
3561
|
+
} else return N("Cannot convert to map from '" + e + "'");
|
|
3656
3562
|
}
|
|
3657
|
-
function
|
|
3563
|
+
function At(e, t, n) {
|
|
3658
3564
|
Object.defineProperty(e, t, {
|
|
3659
3565
|
enumerable: !1,
|
|
3660
3566
|
writable: !0,
|
|
@@ -3662,7 +3568,7 @@ function Yt(e, t, n) {
|
|
|
3662
3568
|
value: n
|
|
3663
3569
|
});
|
|
3664
3570
|
}
|
|
3665
|
-
function
|
|
3571
|
+
function jt(e, t, n) {
|
|
3666
3572
|
Object.defineProperty(e, t, {
|
|
3667
3573
|
enumerable: !1,
|
|
3668
3574
|
writable: !1,
|
|
@@ -3670,40 +3576,40 @@ function Xt(e, t, n) {
|
|
|
3670
3576
|
value: n
|
|
3671
3577
|
});
|
|
3672
3578
|
}
|
|
3673
|
-
function
|
|
3579
|
+
function Mt(e, t) {
|
|
3674
3580
|
var n = Object.getOwnPropertyDescriptor(e, t);
|
|
3675
3581
|
return !n || n.configurable !== !1 && n.writable !== !1;
|
|
3676
3582
|
}
|
|
3677
|
-
function
|
|
3583
|
+
function P(e, t) {
|
|
3678
3584
|
var n = "isMobX" + e;
|
|
3679
3585
|
return t.prototype[n] = !0, function(e) {
|
|
3680
|
-
return
|
|
3586
|
+
return Dt(e) && e[n] === !0;
|
|
3681
3587
|
};
|
|
3682
3588
|
}
|
|
3683
|
-
function
|
|
3589
|
+
function Nt(e) {
|
|
3684
3590
|
return e instanceof Map;
|
|
3685
3591
|
}
|
|
3686
|
-
function
|
|
3592
|
+
function Pt(e) {
|
|
3687
3593
|
return e instanceof Set;
|
|
3688
3594
|
}
|
|
3689
|
-
function
|
|
3595
|
+
function Ft(e) {
|
|
3690
3596
|
var t = /* @__PURE__ */ new Set();
|
|
3691
3597
|
for (var n in e) t.add(n);
|
|
3692
3598
|
return Object.getOwnPropertySymbols(e).forEach(function(n) {
|
|
3693
3599
|
Object.getOwnPropertyDescriptor(e, n).enumerable && t.add(n);
|
|
3694
3600
|
}), Array.from(t);
|
|
3695
3601
|
}
|
|
3696
|
-
function
|
|
3602
|
+
function F(e) {
|
|
3697
3603
|
return e && e.toString ? e.toString() : new String(e).toString();
|
|
3698
3604
|
}
|
|
3699
|
-
function
|
|
3605
|
+
function It(e) {
|
|
3700
3606
|
return e === null ? null : typeof e == "object" ? "" + e : e;
|
|
3701
3607
|
}
|
|
3702
|
-
var
|
|
3608
|
+
var Lt = typeof Reflect < "u" && Reflect.ownKeys ? Reflect.ownKeys : Object.getOwnPropertySymbols ? function(e) {
|
|
3703
3609
|
return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e));
|
|
3704
|
-
} : /* istanbul ignore next */ Object.getOwnPropertyNames,
|
|
3610
|
+
} : /* istanbul ignore next */ Object.getOwnPropertyNames, I = Symbol("mobx administration"), Rt = function() {
|
|
3705
3611
|
function e(e) {
|
|
3706
|
-
e === void 0 && (e = "Atom@" +
|
|
3612
|
+
e === void 0 && (e = "Atom@" + M()), this.name = e, this.isPendingUnobservation = !1, this.isBeingObserved = !1, this.observers = /* @__PURE__ */ new Set(), this.diffValue = 0, this.lastAccessedBy = 0, this.lowestObserverState = z.NOT_TRACKING;
|
|
3707
3613
|
}
|
|
3708
3614
|
return e.prototype.onBecomeObserved = function() {
|
|
3709
3615
|
this.onBecomeObservedListeners && this.onBecomeObservedListeners.forEach(function(e) {
|
|
@@ -3714,56 +3620,56 @@ var nn = typeof Reflect < "u" && Reflect.ownKeys ? Reflect.ownKeys : Object.getO
|
|
|
3714
3620
|
return e();
|
|
3715
3621
|
});
|
|
3716
3622
|
}, e.prototype.reportObserved = function() {
|
|
3717
|
-
return
|
|
3623
|
+
return ir(this);
|
|
3718
3624
|
}, e.prototype.reportChanged = function() {
|
|
3719
|
-
|
|
3625
|
+
U(), ar(this), W();
|
|
3720
3626
|
}, e.prototype.toString = function() {
|
|
3721
3627
|
return this.name;
|
|
3722
3628
|
}, e;
|
|
3723
|
-
}(),
|
|
3724
|
-
function
|
|
3725
|
-
t === void 0 && (t =
|
|
3726
|
-
var r = new
|
|
3727
|
-
return t !==
|
|
3629
|
+
}(), zt = P("Atom", Rt);
|
|
3630
|
+
function Bt(e, t, n) {
|
|
3631
|
+
t === void 0 && (t = Tt), n === void 0 && (n = Tt);
|
|
3632
|
+
var r = new Rt(e);
|
|
3633
|
+
return t !== Tt && Ar(r, t), n !== Tt && jr(r, n), r;
|
|
3728
3634
|
}
|
|
3729
|
-
function
|
|
3635
|
+
function Vt(e, t) {
|
|
3730
3636
|
return e === t;
|
|
3731
3637
|
}
|
|
3732
|
-
function
|
|
3733
|
-
return
|
|
3638
|
+
function Ht(e, t) {
|
|
3639
|
+
return Di(e, t);
|
|
3734
3640
|
}
|
|
3735
|
-
function
|
|
3736
|
-
return
|
|
3641
|
+
function Ut(e, t) {
|
|
3642
|
+
return Di(e, t, 1);
|
|
3737
3643
|
}
|
|
3738
|
-
function
|
|
3644
|
+
function Wt(e, t) {
|
|
3739
3645
|
return Object.is(e, t);
|
|
3740
3646
|
}
|
|
3741
|
-
var
|
|
3742
|
-
identity:
|
|
3743
|
-
structural:
|
|
3744
|
-
default:
|
|
3745
|
-
shallow:
|
|
3746
|
-
},
|
|
3747
|
-
return
|
|
3647
|
+
var Gt = {
|
|
3648
|
+
identity: Vt,
|
|
3649
|
+
structural: Ht,
|
|
3650
|
+
default: Wt,
|
|
3651
|
+
shallow: Ut
|
|
3652
|
+
}, Kt = function(e, t) {
|
|
3653
|
+
return Kt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {
|
|
3748
3654
|
e.__proto__ = t;
|
|
3749
3655
|
} || function(e, t) {
|
|
3750
3656
|
for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]);
|
|
3751
|
-
},
|
|
3657
|
+
}, Kt(e, t);
|
|
3752
3658
|
};
|
|
3753
|
-
function
|
|
3754
|
-
|
|
3659
|
+
function qt(e, t) {
|
|
3660
|
+
Kt(e, t);
|
|
3755
3661
|
function n() {
|
|
3756
3662
|
this.constructor = e;
|
|
3757
3663
|
}
|
|
3758
3664
|
e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
|
|
3759
3665
|
}
|
|
3760
|
-
var
|
|
3761
|
-
return
|
|
3666
|
+
var Jt = function() {
|
|
3667
|
+
return Jt = Object.assign || function(e) {
|
|
3762
3668
|
for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
|
|
3763
3669
|
return e;
|
|
3764
|
-
},
|
|
3670
|
+
}, Jt.apply(this, arguments);
|
|
3765
3671
|
};
|
|
3766
|
-
function
|
|
3672
|
+
function L(e) {
|
|
3767
3673
|
var t = typeof Symbol == "function" && e[Symbol.iterator], n = 0;
|
|
3768
3674
|
return t ? t.call(e) : { next: function() {
|
|
3769
3675
|
return e && n >= e.length && (e = void 0), {
|
|
@@ -3772,7 +3678,7 @@ function I(e) {
|
|
|
3772
3678
|
};
|
|
3773
3679
|
} };
|
|
3774
3680
|
}
|
|
3775
|
-
function
|
|
3681
|
+
function Yt(e, t) {
|
|
3776
3682
|
var n = typeof Symbol == "function" && e[Symbol.iterator];
|
|
3777
3683
|
if (!n) return e;
|
|
3778
3684
|
var r = n.call(e), i, a = [], o;
|
|
@@ -3789,33 +3695,33 @@ function hn(e, t) {
|
|
|
3789
3695
|
}
|
|
3790
3696
|
return a;
|
|
3791
3697
|
}
|
|
3792
|
-
function
|
|
3793
|
-
for (var e = [], t = 0; t < arguments.length; t++) e = e.concat(
|
|
3698
|
+
function Xt() {
|
|
3699
|
+
for (var e = [], t = 0; t < arguments.length; t++) e = e.concat(Yt(arguments[t]));
|
|
3794
3700
|
return e;
|
|
3795
3701
|
}
|
|
3796
|
-
var
|
|
3797
|
-
function
|
|
3798
|
-
var n = t ?
|
|
3702
|
+
var Zt = Symbol("mobx did run lazy initializers"), Qt = Symbol("mobx pending decorators"), $t = {}, en = {};
|
|
3703
|
+
function tn(e, t) {
|
|
3704
|
+
var n = t ? $t : en;
|
|
3799
3705
|
return n[e] || (n[e] = {
|
|
3800
3706
|
configurable: !0,
|
|
3801
3707
|
enumerable: t,
|
|
3802
3708
|
get: function() {
|
|
3803
|
-
return
|
|
3709
|
+
return nn(this), this[e];
|
|
3804
3710
|
},
|
|
3805
3711
|
set: function(t) {
|
|
3806
|
-
|
|
3712
|
+
nn(this), this[e] = t;
|
|
3807
3713
|
}
|
|
3808
3714
|
});
|
|
3809
3715
|
}
|
|
3810
|
-
function
|
|
3716
|
+
function nn(e) {
|
|
3811
3717
|
var t, n;
|
|
3812
|
-
if (e[
|
|
3813
|
-
var r = e[
|
|
3718
|
+
if (e[Zt] !== !0) {
|
|
3719
|
+
var r = e[Qt];
|
|
3814
3720
|
if (r) {
|
|
3815
|
-
|
|
3816
|
-
var i =
|
|
3721
|
+
At(e, Zt, !0);
|
|
3722
|
+
var i = Xt(Object.getOwnPropertySymbols(r), Object.keys(r));
|
|
3817
3723
|
try {
|
|
3818
|
-
for (var a =
|
|
3724
|
+
for (var a = L(i), o = a.next(); !o.done; o = a.next()) {
|
|
3819
3725
|
var s = r[o.value];
|
|
3820
3726
|
s.propertyCreator(e, s.prop, s.descriptor, s.decoratorTarget, s.decoratorArguments);
|
|
3821
3727
|
}
|
|
@@ -3831,306 +3737,306 @@ function Sn(e) {
|
|
|
3831
3737
|
}
|
|
3832
3738
|
}
|
|
3833
3739
|
}
|
|
3834
|
-
function
|
|
3740
|
+
function rn(e, t) {
|
|
3835
3741
|
return function() {
|
|
3836
3742
|
var n, r = function(r, i, a, o) {
|
|
3837
3743
|
if (o === !0) return t(r, i, a, r, n), null;
|
|
3838
|
-
if (!Object.prototype.hasOwnProperty.call(r,
|
|
3839
|
-
var s = r[
|
|
3840
|
-
|
|
3744
|
+
if (!Object.prototype.hasOwnProperty.call(r, Qt)) {
|
|
3745
|
+
var s = r[Qt];
|
|
3746
|
+
At(r, Qt, Jt({}, s));
|
|
3841
3747
|
}
|
|
3842
|
-
return r[
|
|
3748
|
+
return r[Qt][i] = {
|
|
3843
3749
|
prop: i,
|
|
3844
3750
|
propertyCreator: t,
|
|
3845
3751
|
descriptor: a,
|
|
3846
3752
|
decoratorTarget: r,
|
|
3847
3753
|
decoratorArguments: n
|
|
3848
|
-
},
|
|
3754
|
+
}, tn(i, e);
|
|
3849
3755
|
};
|
|
3850
|
-
return
|
|
3756
|
+
return an(arguments) ? (n = xt, r.apply(null, arguments)) : (n = Array.prototype.slice.call(arguments), r);
|
|
3851
3757
|
};
|
|
3852
3758
|
}
|
|
3853
|
-
function
|
|
3759
|
+
function an(e) {
|
|
3854
3760
|
return (e.length === 2 || e.length === 3) && (typeof e[1] == "string" || typeof e[1] == "symbol") || e.length === 4 && e[3] === !0;
|
|
3855
3761
|
}
|
|
3856
|
-
function
|
|
3857
|
-
return
|
|
3762
|
+
function on(e, t, n) {
|
|
3763
|
+
return Vr(e) ? e : Array.isArray(e) ? R.array(e, { name: n }) : Ot(e) ? R.object(e, void 0, { name: n }) : Nt(e) ? R.map(e, { name: n }) : Pt(e) ? R.set(e, { name: n }) : e;
|
|
3858
3764
|
}
|
|
3859
|
-
function
|
|
3860
|
-
return e == null ||
|
|
3765
|
+
function sn(e, t, n) {
|
|
3766
|
+
return e == null || Si(e) || si(e) || Q(e) || $(e) ? e : Array.isArray(e) ? R.array(e, {
|
|
3861
3767
|
name: n,
|
|
3862
3768
|
deep: !1
|
|
3863
|
-
}) :
|
|
3769
|
+
}) : Ot(e) ? R.object(e, void 0, {
|
|
3864
3770
|
name: n,
|
|
3865
3771
|
deep: !1
|
|
3866
|
-
}) :
|
|
3772
|
+
}) : Nt(e) ? R.map(e, {
|
|
3867
3773
|
name: n,
|
|
3868
3774
|
deep: !1
|
|
3869
|
-
}) :
|
|
3775
|
+
}) : Pt(e) ? R.set(e, {
|
|
3870
3776
|
name: n,
|
|
3871
3777
|
deep: !1
|
|
3872
|
-
}) :
|
|
3778
|
+
}) : N(!1);
|
|
3873
3779
|
}
|
|
3874
|
-
function
|
|
3780
|
+
function cn(e) {
|
|
3875
3781
|
return e;
|
|
3876
3782
|
}
|
|
3877
|
-
function
|
|
3878
|
-
return
|
|
3783
|
+
function ln(e, t, n) {
|
|
3784
|
+
return Di(e, t) ? t : e;
|
|
3879
3785
|
}
|
|
3880
|
-
function
|
|
3881
|
-
|
|
3882
|
-
var t =
|
|
3786
|
+
function un(e) {
|
|
3787
|
+
Ct(e);
|
|
3788
|
+
var t = rn(!0, function(t, n, r, i, a) {
|
|
3883
3789
|
var o = r ? r.initializer ? r.initializer.call(t) : r.value : void 0;
|
|
3884
|
-
|
|
3790
|
+
hi(t).addObservableProp(n, o, e);
|
|
3885
3791
|
}), n = (typeof process < "u" && process.env, t);
|
|
3886
3792
|
return n.enhancer = e, n;
|
|
3887
3793
|
}
|
|
3888
|
-
var
|
|
3794
|
+
var dn = {
|
|
3889
3795
|
deep: !0,
|
|
3890
3796
|
name: void 0,
|
|
3891
3797
|
defaultDecorator: void 0,
|
|
3892
3798
|
proxy: !0
|
|
3893
3799
|
};
|
|
3894
|
-
Object.freeze(
|
|
3895
|
-
function
|
|
3896
|
-
return e == null ?
|
|
3800
|
+
Object.freeze(dn);
|
|
3801
|
+
function fn(e) {
|
|
3802
|
+
return e == null ? dn : typeof e == "string" ? {
|
|
3897
3803
|
name: e,
|
|
3898
3804
|
deep: !0,
|
|
3899
3805
|
proxy: !0
|
|
3900
3806
|
} : e;
|
|
3901
3807
|
}
|
|
3902
|
-
var
|
|
3903
|
-
function
|
|
3904
|
-
return e.defaultDecorator ? e.defaultDecorator.enhancer : e.deep === !1 ?
|
|
3808
|
+
var pn = un(on), mn = un(sn), hn = un(cn), gn = un(ln);
|
|
3809
|
+
function _n(e) {
|
|
3810
|
+
return e.defaultDecorator ? e.defaultDecorator.enhancer : e.deep === !1 ? cn : on;
|
|
3905
3811
|
}
|
|
3906
|
-
function
|
|
3907
|
-
if (typeof arguments[1] == "string" || typeof arguments[1] == "symbol") return
|
|
3908
|
-
if (
|
|
3909
|
-
var r =
|
|
3812
|
+
function vn(e, t, n) {
|
|
3813
|
+
if (typeof arguments[1] == "string" || typeof arguments[1] == "symbol") return pn.apply(null, arguments);
|
|
3814
|
+
if (Vr(e)) return e;
|
|
3815
|
+
var r = Ot(e) ? R.object(e, t, n) : Array.isArray(e) ? R.array(e, t) : Nt(e) ? R.map(e, t) : Pt(e) ? R.set(e, t) : e;
|
|
3910
3816
|
if (r !== e) return r;
|
|
3911
|
-
|
|
3817
|
+
N(!1);
|
|
3912
3818
|
}
|
|
3913
|
-
var
|
|
3819
|
+
var yn = {
|
|
3914
3820
|
box: function(e, t) {
|
|
3915
|
-
arguments.length > 2 &&
|
|
3916
|
-
var n =
|
|
3917
|
-
return new
|
|
3821
|
+
arguments.length > 2 && bn("box");
|
|
3822
|
+
var n = fn(t);
|
|
3823
|
+
return new Gn(e, _n(n), n.name, !0, n.equals);
|
|
3918
3824
|
},
|
|
3919
3825
|
array: function(e, t) {
|
|
3920
|
-
arguments.length > 2 &&
|
|
3921
|
-
var n =
|
|
3922
|
-
return
|
|
3826
|
+
arguments.length > 2 && bn("array");
|
|
3827
|
+
var n = fn(t);
|
|
3828
|
+
return ii(e, _n(n), n.name);
|
|
3923
3829
|
},
|
|
3924
3830
|
map: function(e, t) {
|
|
3925
|
-
arguments.length > 2 &&
|
|
3926
|
-
var n =
|
|
3927
|
-
return new
|
|
3831
|
+
arguments.length > 2 && bn("map");
|
|
3832
|
+
var n = fn(t);
|
|
3833
|
+
return new ui(e, _n(n), n.name);
|
|
3928
3834
|
},
|
|
3929
3835
|
set: function(e, t) {
|
|
3930
|
-
arguments.length > 2 &&
|
|
3931
|
-
var n =
|
|
3932
|
-
return new
|
|
3836
|
+
arguments.length > 2 && bn("set");
|
|
3837
|
+
var n = fn(t);
|
|
3838
|
+
return new pi(e, _n(n), n.name);
|
|
3933
3839
|
},
|
|
3934
3840
|
object: function(e, t, n) {
|
|
3935
|
-
typeof arguments[1] == "string" &&
|
|
3936
|
-
var r =
|
|
3937
|
-
if (r.proxy === !1) return
|
|
3938
|
-
var i =
|
|
3939
|
-
return
|
|
3841
|
+
typeof arguments[1] == "string" && bn("object");
|
|
3842
|
+
var r = fn(n);
|
|
3843
|
+
if (r.proxy === !1) return Pr({}, e, t, r);
|
|
3844
|
+
var i = Fr(r), a = $r(Pr({}, void 0, void 0, r));
|
|
3845
|
+
return Ir(a, e, t, i), a;
|
|
3940
3846
|
},
|
|
3941
|
-
ref:
|
|
3942
|
-
shallow:
|
|
3943
|
-
deep:
|
|
3944
|
-
struct:
|
|
3945
|
-
},
|
|
3946
|
-
Object.keys(
|
|
3947
|
-
return
|
|
3847
|
+
ref: hn,
|
|
3848
|
+
shallow: mn,
|
|
3849
|
+
deep: pn,
|
|
3850
|
+
struct: gn
|
|
3851
|
+
}, R = vn;
|
|
3852
|
+
Object.keys(yn).forEach(function(e) {
|
|
3853
|
+
return R[e] = yn[e];
|
|
3948
3854
|
});
|
|
3949
|
-
function
|
|
3950
|
-
|
|
3855
|
+
function bn(e) {
|
|
3856
|
+
N("Expected one or two arguments to observable." + e + ". Did you accidentally try to use observable." + e + " as decorator?");
|
|
3951
3857
|
}
|
|
3952
|
-
var
|
|
3858
|
+
var xn = rn(!1, function(e, t, n, r, i) {
|
|
3953
3859
|
var a = n.get, o = n.set, s = i[0] || {};
|
|
3954
|
-
|
|
3860
|
+
hi(e).addComputedProp(e, t, Jt({
|
|
3955
3861
|
get: a,
|
|
3956
3862
|
set: o,
|
|
3957
3863
|
context: e
|
|
3958
3864
|
}, s));
|
|
3959
|
-
}),
|
|
3960
|
-
if (typeof t == "string" || typeof e == "object" && e && arguments.length === 1) return
|
|
3865
|
+
}), Sn = xn({ equals: Gt.structural }), Cn = function(e, t, n) {
|
|
3866
|
+
if (typeof t == "string" || typeof e == "object" && e && arguments.length === 1) return xn.apply(null, arguments);
|
|
3961
3867
|
var r = typeof t == "object" ? t : {};
|
|
3962
|
-
return r.get = e, r.set = typeof t == "function" ? t : r.set, r.name = r.name || e.name || "", new
|
|
3868
|
+
return r.get = e, r.set = typeof t == "function" ? t : r.set, r.name = r.name || e.name || "", new qn(r);
|
|
3963
3869
|
};
|
|
3964
|
-
|
|
3965
|
-
var
|
|
3870
|
+
Cn.struct = Sn;
|
|
3871
|
+
var z;
|
|
3966
3872
|
(function(e) {
|
|
3967
3873
|
e[e.NOT_TRACKING = -1] = "NOT_TRACKING", e[e.UP_TO_DATE = 0] = "UP_TO_DATE", e[e.POSSIBLY_STALE = 1] = "POSSIBLY_STALE", e[e.STALE = 2] = "STALE";
|
|
3968
|
-
})(
|
|
3969
|
-
var
|
|
3874
|
+
})(z || (z = {}));
|
|
3875
|
+
var B;
|
|
3970
3876
|
(function(e) {
|
|
3971
3877
|
e[e.NONE = 0] = "NONE", e[e.LOG = 1] = "LOG", e[e.BREAK = 2] = "BREAK";
|
|
3972
|
-
})(
|
|
3973
|
-
var
|
|
3878
|
+
})(B || (B = {}));
|
|
3879
|
+
var wn = function() {
|
|
3974
3880
|
function e(e) {
|
|
3975
3881
|
this.cause = e;
|
|
3976
3882
|
}
|
|
3977
3883
|
return e;
|
|
3978
3884
|
}();
|
|
3979
|
-
function
|
|
3980
|
-
return e instanceof
|
|
3885
|
+
function Tn(e) {
|
|
3886
|
+
return e instanceof wn;
|
|
3981
3887
|
}
|
|
3982
|
-
function
|
|
3888
|
+
function En(e) {
|
|
3983
3889
|
switch (e.dependenciesState) {
|
|
3984
|
-
case
|
|
3985
|
-
case
|
|
3986
|
-
case
|
|
3987
|
-
case
|
|
3988
|
-
for (var t =
|
|
3890
|
+
case z.UP_TO_DATE: return !1;
|
|
3891
|
+
case z.NOT_TRACKING:
|
|
3892
|
+
case z.STALE: return !0;
|
|
3893
|
+
case z.POSSIBLY_STALE:
|
|
3894
|
+
for (var t = Nn(!0), n = Mn(), r = e.observing, i = r.length, a = 0; a < i; a++) {
|
|
3989
3895
|
var o = r[a];
|
|
3990
|
-
if (
|
|
3991
|
-
if (
|
|
3896
|
+
if (Jn(o)) {
|
|
3897
|
+
if (H.disableErrorBoundaries) o.get();
|
|
3992
3898
|
else try {
|
|
3993
3899
|
o.get();
|
|
3994
3900
|
} catch {
|
|
3995
|
-
return
|
|
3901
|
+
return V(n), Pn(t), !0;
|
|
3996
3902
|
}
|
|
3997
|
-
if (e.dependenciesState ===
|
|
3903
|
+
if (e.dependenciesState === z.STALE) return V(n), Pn(t), !0;
|
|
3998
3904
|
}
|
|
3999
3905
|
}
|
|
4000
|
-
return
|
|
3906
|
+
return Fn(e), V(n), Pn(t), !1;
|
|
4001
3907
|
}
|
|
4002
3908
|
}
|
|
4003
|
-
function
|
|
3909
|
+
function Dn(e) {
|
|
4004
3910
|
var t = e.observers.size > 0;
|
|
4005
|
-
|
|
3911
|
+
H.computationDepth > 0 && t && N(!1), !H.allowStateChanges && (t || H.enforceActions === "strict") && N(!1);
|
|
4006
3912
|
}
|
|
4007
|
-
function
|
|
4008
|
-
var r =
|
|
4009
|
-
|
|
4010
|
-
var i =
|
|
4011
|
-
|
|
3913
|
+
function On(e, t, n) {
|
|
3914
|
+
var r = Nn(!0);
|
|
3915
|
+
Fn(e), e.newObserving = Array(e.observing.length + 100), e.unboundDepsCount = 0, e.runId = ++H.runId;
|
|
3916
|
+
var i = H.trackingDerivation;
|
|
3917
|
+
H.trackingDerivation = e;
|
|
4012
3918
|
var a;
|
|
4013
|
-
if (
|
|
3919
|
+
if (H.disableErrorBoundaries === !0) a = t.call(n);
|
|
4014
3920
|
else try {
|
|
4015
3921
|
a = t.call(n);
|
|
4016
3922
|
} catch (e) {
|
|
4017
|
-
a = new
|
|
3923
|
+
a = new wn(e);
|
|
4018
3924
|
}
|
|
4019
|
-
return
|
|
3925
|
+
return H.trackingDerivation = i, kn(e), Pn(r), a;
|
|
4020
3926
|
}
|
|
4021
|
-
function
|
|
4022
|
-
for (var t = e.observing, n = e.observing = e.newObserving, r =
|
|
3927
|
+
function kn(e) {
|
|
3928
|
+
for (var t = e.observing, n = e.observing = e.newObserving, r = z.UP_TO_DATE, i = 0, a = e.unboundDepsCount, o = 0; o < a; o++) {
|
|
4023
3929
|
var s = n[o];
|
|
4024
3930
|
s.diffValue === 0 && (s.diffValue = 1, i !== o && (n[i] = s), i++), s.dependenciesState > r && (r = s.dependenciesState);
|
|
4025
3931
|
}
|
|
4026
3932
|
for (n.length = i, e.newObserving = null, a = t.length; a--;) {
|
|
4027
3933
|
var s = t[a];
|
|
4028
|
-
s.diffValue === 0 &&
|
|
3934
|
+
s.diffValue === 0 && nr(s, e), s.diffValue = 0;
|
|
4029
3935
|
}
|
|
4030
3936
|
for (; i--;) {
|
|
4031
3937
|
var s = n[i];
|
|
4032
|
-
s.diffValue === 1 && (s.diffValue = 0,
|
|
3938
|
+
s.diffValue === 1 && (s.diffValue = 0, tr(s, e));
|
|
4033
3939
|
}
|
|
4034
|
-
r !==
|
|
3940
|
+
r !== z.UP_TO_DATE && (e.dependenciesState = r, e.onBecomeStale());
|
|
4035
3941
|
}
|
|
4036
|
-
function
|
|
3942
|
+
function An(e) {
|
|
4037
3943
|
var t = e.observing;
|
|
4038
3944
|
e.observing = [];
|
|
4039
|
-
for (var n = t.length; n--;)
|
|
4040
|
-
e.dependenciesState =
|
|
3945
|
+
for (var n = t.length; n--;) nr(t[n], e);
|
|
3946
|
+
e.dependenciesState = z.NOT_TRACKING;
|
|
4041
3947
|
}
|
|
4042
|
-
function
|
|
4043
|
-
var t =
|
|
3948
|
+
function jn(e) {
|
|
3949
|
+
var t = Mn();
|
|
4044
3950
|
try {
|
|
4045
3951
|
return e();
|
|
4046
3952
|
} finally {
|
|
4047
|
-
|
|
3953
|
+
V(t);
|
|
4048
3954
|
}
|
|
4049
3955
|
}
|
|
4050
|
-
function
|
|
4051
|
-
var e =
|
|
4052
|
-
return
|
|
3956
|
+
function Mn() {
|
|
3957
|
+
var e = H.trackingDerivation;
|
|
3958
|
+
return H.trackingDerivation = null, e;
|
|
4053
3959
|
}
|
|
4054
|
-
function
|
|
4055
|
-
|
|
3960
|
+
function V(e) {
|
|
3961
|
+
H.trackingDerivation = e;
|
|
4056
3962
|
}
|
|
4057
|
-
function
|
|
4058
|
-
var t =
|
|
4059
|
-
return
|
|
3963
|
+
function Nn(e) {
|
|
3964
|
+
var t = H.allowStateReads;
|
|
3965
|
+
return H.allowStateReads = e, t;
|
|
4060
3966
|
}
|
|
4061
|
-
function
|
|
4062
|
-
|
|
3967
|
+
function Pn(e) {
|
|
3968
|
+
H.allowStateReads = e;
|
|
4063
3969
|
}
|
|
4064
|
-
function
|
|
4065
|
-
if (e.dependenciesState !==
|
|
4066
|
-
e.dependenciesState =
|
|
4067
|
-
for (var t = e.observing, n = t.length; n--;) t[n].lowestObserverState =
|
|
3970
|
+
function Fn(e) {
|
|
3971
|
+
if (e.dependenciesState !== z.UP_TO_DATE) {
|
|
3972
|
+
e.dependenciesState = z.UP_TO_DATE;
|
|
3973
|
+
for (var t = e.observing, n = t.length; n--;) t[n].lowestObserverState = z.UP_TO_DATE;
|
|
4068
3974
|
}
|
|
4069
3975
|
}
|
|
4070
|
-
var
|
|
4071
|
-
|
|
4072
|
-
function
|
|
3976
|
+
var In = 0, Ln = 1, Rn = Object.getOwnPropertyDescriptor(function() {}, "name");
|
|
3977
|
+
Rn && Rn.configurable;
|
|
3978
|
+
function zn(e, t, n) {
|
|
4073
3979
|
var r = function() {
|
|
4074
|
-
return
|
|
3980
|
+
return Bn(e, t, n || this, arguments);
|
|
4075
3981
|
};
|
|
4076
3982
|
return r.isMobxAction = !0, r;
|
|
4077
3983
|
}
|
|
4078
|
-
function
|
|
4079
|
-
var i =
|
|
3984
|
+
function Bn(e, t, n, r) {
|
|
3985
|
+
var i = Vn(e, n, r);
|
|
4080
3986
|
try {
|
|
4081
3987
|
return t.apply(n, r);
|
|
4082
3988
|
} catch (e) {
|
|
4083
3989
|
throw i.error = e, e;
|
|
4084
3990
|
} finally {
|
|
4085
|
-
|
|
3991
|
+
Hn(i);
|
|
4086
3992
|
}
|
|
4087
3993
|
}
|
|
4088
|
-
function
|
|
4089
|
-
var r =
|
|
4090
|
-
|
|
3994
|
+
function Vn(e, t, n) {
|
|
3995
|
+
var r = G() && !!e, i = 0, a = Mn();
|
|
3996
|
+
U();
|
|
4091
3997
|
var o = {
|
|
4092
3998
|
prevDerivation: a,
|
|
4093
|
-
prevAllowStateChanges:
|
|
4094
|
-
prevAllowStateReads:
|
|
3999
|
+
prevAllowStateChanges: Un(!0),
|
|
4000
|
+
prevAllowStateReads: Nn(!0),
|
|
4095
4001
|
notifySpy: r,
|
|
4096
4002
|
startTime: i,
|
|
4097
|
-
actionId:
|
|
4098
|
-
parentActionId:
|
|
4003
|
+
actionId: Ln++,
|
|
4004
|
+
parentActionId: In
|
|
4099
4005
|
};
|
|
4100
|
-
return
|
|
4006
|
+
return In = o.actionId, o;
|
|
4101
4007
|
}
|
|
4102
|
-
function
|
|
4103
|
-
|
|
4008
|
+
function Hn(e) {
|
|
4009
|
+
In !== e.actionId && N("invalid action stack. did you forget to finish an action?"), In = e.parentActionId, e.error !== void 0 && (H.suppressReactionErrors = !0), Wn(e.prevAllowStateChanges), Pn(e.prevAllowStateReads), W(), V(e.prevDerivation), e.notifySpy, H.suppressReactionErrors = !1;
|
|
4104
4010
|
}
|
|
4105
|
-
function
|
|
4106
|
-
var t =
|
|
4107
|
-
return
|
|
4011
|
+
function Un(e) {
|
|
4012
|
+
var t = H.allowStateChanges;
|
|
4013
|
+
return H.allowStateChanges = e, t;
|
|
4108
4014
|
}
|
|
4109
|
-
function
|
|
4110
|
-
|
|
4015
|
+
function Wn(e) {
|
|
4016
|
+
H.allowStateChanges = e;
|
|
4111
4017
|
}
|
|
4112
|
-
var
|
|
4113
|
-
|
|
4018
|
+
var Gn = function(e) {
|
|
4019
|
+
qt(t, e);
|
|
4114
4020
|
function t(t, n, r, i, a) {
|
|
4115
|
-
r === void 0 && (r = "ObservableValue@" +
|
|
4021
|
+
r === void 0 && (r = "ObservableValue@" + M()), i === void 0 && (i = !0), a === void 0 && (a = Gt.default);
|
|
4116
4022
|
var o = e.call(this, r) || this;
|
|
4117
4023
|
return o.enhancer = n, o.name = r, o.equals = a, o.hasUnreportedChange = !1, o.value = n(t, void 0, r), o;
|
|
4118
4024
|
}
|
|
4119
4025
|
return t.prototype.dehanceValue = function(e) {
|
|
4120
4026
|
return this.dehancer === void 0 ? e : this.dehancer(e);
|
|
4121
4027
|
}, t.prototype.set = function(e) {
|
|
4122
|
-
this.value, e = this.prepareNewValue(e), e !==
|
|
4028
|
+
this.value, e = this.prepareNewValue(e), e !== H.UNCHANGED && this.setNewValue(e);
|
|
4123
4029
|
}, t.prototype.prepareNewValue = function(e) {
|
|
4124
|
-
if (
|
|
4030
|
+
if (Dn(this), q(this)) {
|
|
4125
4031
|
var t = J(this, {
|
|
4126
4032
|
object: this,
|
|
4127
4033
|
type: "update",
|
|
4128
4034
|
newValue: e
|
|
4129
4035
|
});
|
|
4130
|
-
if (!t) return
|
|
4036
|
+
if (!t) return H.UNCHANGED;
|
|
4131
4037
|
e = t.newValue;
|
|
4132
4038
|
}
|
|
4133
|
-
return e = this.enhancer(e, this.value, this.name), this.equals(this.value, e) ?
|
|
4039
|
+
return e = this.enhancer(e, this.value, this.name), this.equals(this.value, e) ? H.UNCHANGED : e;
|
|
4134
4040
|
}, t.prototype.setNewValue = function(e) {
|
|
4135
4041
|
var t = this.value;
|
|
4136
4042
|
this.value = e, this.reportChanged(), Y(this) && X(this, {
|
|
@@ -4142,29 +4048,29 @@ var ur = function(e) {
|
|
|
4142
4048
|
}, t.prototype.get = function() {
|
|
4143
4049
|
return this.reportObserved(), this.dehanceValue(this.value);
|
|
4144
4050
|
}, t.prototype.intercept = function(e) {
|
|
4145
|
-
return
|
|
4051
|
+
return ei(this, e);
|
|
4146
4052
|
}, t.prototype.observe = function(e, t) {
|
|
4147
4053
|
return t && e({
|
|
4148
4054
|
object: this,
|
|
4149
4055
|
type: "update",
|
|
4150
4056
|
newValue: this.value,
|
|
4151
4057
|
oldValue: void 0
|
|
4152
|
-
}),
|
|
4058
|
+
}), ti(this, e);
|
|
4153
4059
|
}, t.prototype.toJSON = function() {
|
|
4154
4060
|
return this.get();
|
|
4155
4061
|
}, t.prototype.toString = function() {
|
|
4156
4062
|
return this.name + "[" + this.value + "]";
|
|
4157
4063
|
}, t.prototype.valueOf = function() {
|
|
4158
|
-
return
|
|
4064
|
+
return It(this.get());
|
|
4159
4065
|
}, t.prototype[Symbol.toPrimitive] = function() {
|
|
4160
4066
|
return this.valueOf();
|
|
4161
4067
|
}, t;
|
|
4162
|
-
}(
|
|
4068
|
+
}(Rt), Kn = P("ObservableValue", Gn), qn = function() {
|
|
4163
4069
|
function e(e) {
|
|
4164
|
-
this.dependenciesState =
|
|
4070
|
+
this.dependenciesState = z.NOT_TRACKING, this.observing = [], this.newObserving = null, this.isBeingObserved = !1, this.isPendingUnobservation = !1, this.observers = /* @__PURE__ */ new Set(), this.diffValue = 0, this.runId = 0, this.lastAccessedBy = 0, this.lowestObserverState = z.UP_TO_DATE, this.unboundDepsCount = 0, this.__mapid = "#" + M(), this.value = new wn(null), this.isComputing = !1, this.isRunningSetter = !1, this.isTracing = B.NONE, Ct(e.get, "missing option for computed: get"), this.derivation = e.get, this.name = e.name || "ComputedValue@" + M(), e.set && (this.setter = zn(this.name + "-setter", e.set)), this.equals = e.equals || (e.compareStructural || e.struct ? Gt.structural : Gt.default), this.scope = e.context, this.requiresReaction = !!e.requiresReaction, this.keepAlive = !!e.keepAlive;
|
|
4165
4071
|
}
|
|
4166
4072
|
return e.prototype.onBecomeStale = function() {
|
|
4167
|
-
|
|
4073
|
+
sr(this);
|
|
4168
4074
|
}, e.prototype.onBecomeObserved = function() {
|
|
4169
4075
|
this.onBecomeObservedListeners && this.onBecomeObservedListeners.forEach(function(e) {
|
|
4170
4076
|
return e();
|
|
@@ -4174,51 +4080,51 @@ var ur = function(e) {
|
|
|
4174
4080
|
return e();
|
|
4175
4081
|
});
|
|
4176
4082
|
}, e.prototype.get = function() {
|
|
4177
|
-
this.isComputing &&
|
|
4083
|
+
this.isComputing && N("Cycle detected in computation " + this.name + ": " + this.derivation), H.inBatch === 0 && this.observers.size === 0 && !this.keepAlive ? En(this) && (this.warnAboutUntrackedRead(), U(), this.value = this.computeValue(!1), W()) : (ir(this), En(this) && this.trackAndCompute() && or(this));
|
|
4178
4084
|
var e = this.value;
|
|
4179
|
-
if (
|
|
4085
|
+
if (Tn(e)) throw e.cause;
|
|
4180
4086
|
return e;
|
|
4181
4087
|
}, e.prototype.peek = function() {
|
|
4182
4088
|
var e = this.computeValue(!1);
|
|
4183
|
-
if (
|
|
4089
|
+
if (Tn(e)) throw e.cause;
|
|
4184
4090
|
return e;
|
|
4185
4091
|
}, e.prototype.set = function(e) {
|
|
4186
4092
|
if (this.setter) {
|
|
4187
|
-
|
|
4093
|
+
Ct(!this.isRunningSetter, "The setter of computed value '" + this.name + "' is trying to update itself. Did you intend to update an _observable_ value, instead of the computed property?"), this.isRunningSetter = !0;
|
|
4188
4094
|
try {
|
|
4189
4095
|
this.setter.call(this.scope, e);
|
|
4190
4096
|
} finally {
|
|
4191
4097
|
this.isRunningSetter = !1;
|
|
4192
4098
|
}
|
|
4193
|
-
} else
|
|
4099
|
+
} else Ct(!1, !1);
|
|
4194
4100
|
}, e.prototype.trackAndCompute = function() {
|
|
4195
|
-
var e = this.value, t = this.dependenciesState ===
|
|
4101
|
+
var e = this.value, t = this.dependenciesState === z.NOT_TRACKING, n = this.computeValue(!0), r = t || Tn(e) || Tn(n) || !this.equals(e, n);
|
|
4196
4102
|
return r && (this.value = n), r;
|
|
4197
4103
|
}, e.prototype.computeValue = function(e) {
|
|
4198
|
-
this.isComputing = !0,
|
|
4104
|
+
this.isComputing = !0, H.computationDepth++;
|
|
4199
4105
|
var t;
|
|
4200
|
-
if (e) t =
|
|
4201
|
-
else if (
|
|
4106
|
+
if (e) t = On(this, this.derivation, this.scope);
|
|
4107
|
+
else if (H.disableErrorBoundaries === !0) t = this.derivation.call(this.scope);
|
|
4202
4108
|
else try {
|
|
4203
4109
|
t = this.derivation.call(this.scope);
|
|
4204
4110
|
} catch (e) {
|
|
4205
|
-
t = new
|
|
4111
|
+
t = new wn(e);
|
|
4206
4112
|
}
|
|
4207
|
-
return
|
|
4113
|
+
return H.computationDepth--, this.isComputing = !1, t;
|
|
4208
4114
|
}, e.prototype.suspend = function() {
|
|
4209
|
-
this.keepAlive || (
|
|
4115
|
+
this.keepAlive || (An(this), this.value = void 0);
|
|
4210
4116
|
}, e.prototype.observe = function(e, t) {
|
|
4211
4117
|
var n = this, r = !0, i = void 0;
|
|
4212
|
-
return
|
|
4118
|
+
return Tr(function() {
|
|
4213
4119
|
var a = n.get();
|
|
4214
4120
|
if (!r || t) {
|
|
4215
|
-
var o =
|
|
4121
|
+
var o = Mn();
|
|
4216
4122
|
e({
|
|
4217
4123
|
type: "update",
|
|
4218
4124
|
object: n,
|
|
4219
4125
|
newValue: a,
|
|
4220
4126
|
oldValue: i
|
|
4221
|
-
}),
|
|
4127
|
+
}), V(o);
|
|
4222
4128
|
}
|
|
4223
4129
|
r = !1, i = a;
|
|
4224
4130
|
});
|
|
@@ -4227,97 +4133,97 @@ var ur = function(e) {
|
|
|
4227
4133
|
}, e.prototype.toString = function() {
|
|
4228
4134
|
return this.name + "[" + this.derivation.toString() + "]";
|
|
4229
4135
|
}, e.prototype.valueOf = function() {
|
|
4230
|
-
return
|
|
4136
|
+
return It(this.get());
|
|
4231
4137
|
}, e.prototype[Symbol.toPrimitive] = function() {
|
|
4232
4138
|
return this.valueOf();
|
|
4233
4139
|
}, e;
|
|
4234
|
-
}(),
|
|
4140
|
+
}(), Jn = P("ComputedValue", qn), Yn = function() {
|
|
4235
4141
|
function e() {
|
|
4236
4142
|
this.version = 5, this.UNCHANGED = {}, this.trackingDerivation = null, this.computationDepth = 0, this.runId = 0, this.mobxGuid = 0, this.inBatch = 0, this.pendingUnobservations = [], this.pendingReactions = [], this.isRunningReactions = !1, this.allowStateChanges = !0, this.allowStateReads = !0, this.enforceActions = !1, this.spyListeners = [], this.globalReactionErrorHandlers = [], this.computedRequiresReaction = !1, this.reactionRequiresObservable = !1, this.observableRequiresReaction = !1, this.computedConfigurable = !1, this.disableErrorBoundaries = !1, this.suppressReactionErrors = !1;
|
|
4237
4143
|
}
|
|
4238
4144
|
return e;
|
|
4239
|
-
}(),
|
|
4240
|
-
function
|
|
4241
|
-
return typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self :
|
|
4242
|
-
}
|
|
4243
|
-
var
|
|
4244
|
-
var e =
|
|
4245
|
-
return e.__mobxInstanceCount > 0 && !e.__mobxGlobals && (
|
|
4246
|
-
|
|
4247
|
-
}, 1), new
|
|
4145
|
+
}(), Xn = {};
|
|
4146
|
+
function Zn() {
|
|
4147
|
+
return typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : Xn;
|
|
4148
|
+
}
|
|
4149
|
+
var Qn = !0, $n = !1, H = (function() {
|
|
4150
|
+
var e = Zn();
|
|
4151
|
+
return e.__mobxInstanceCount > 0 && !e.__mobxGlobals && (Qn = !1), e.__mobxGlobals && e.__mobxGlobals.version !== new Yn().version && (Qn = !1), Qn ? e.__mobxGlobals ? (e.__mobxInstanceCount += 1, e.__mobxGlobals.UNCHANGED || (e.__mobxGlobals.UNCHANGED = {}), e.__mobxGlobals) : (e.__mobxInstanceCount = 1, e.__mobxGlobals = new Yn()) : (setTimeout(function() {
|
|
4152
|
+
$n || N("There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`");
|
|
4153
|
+
}, 1), new Yn());
|
|
4248
4154
|
})();
|
|
4249
|
-
function
|
|
4250
|
-
(
|
|
4155
|
+
function er() {
|
|
4156
|
+
(H.pendingReactions.length || H.inBatch || H.isRunningReactions) && N("isolateGlobalState should be called before MobX is running any reactions"), $n = !0, Qn && (--Zn().__mobxInstanceCount === 0 && (Zn().__mobxGlobals = void 0), H = new Yn());
|
|
4251
4157
|
}
|
|
4252
|
-
function
|
|
4158
|
+
function tr(e, t) {
|
|
4253
4159
|
e.observers.add(t), e.lowestObserverState > t.dependenciesState && (e.lowestObserverState = t.dependenciesState);
|
|
4254
4160
|
}
|
|
4255
|
-
function
|
|
4256
|
-
e.observers.delete(t), e.observers.size === 0 &&
|
|
4257
|
-
}
|
|
4258
|
-
function Sr(e) {
|
|
4259
|
-
e.isPendingUnobservation === !1 && (e.isPendingUnobservation = !0, V.pendingUnobservations.push(e));
|
|
4161
|
+
function nr(e, t) {
|
|
4162
|
+
e.observers.delete(t), e.observers.size === 0 && rr(e);
|
|
4260
4163
|
}
|
|
4261
|
-
function
|
|
4262
|
-
|
|
4164
|
+
function rr(e) {
|
|
4165
|
+
e.isPendingUnobservation === !1 && (e.isPendingUnobservation = !0, H.pendingUnobservations.push(e));
|
|
4263
4166
|
}
|
|
4264
4167
|
function U() {
|
|
4265
|
-
|
|
4266
|
-
|
|
4267
|
-
|
|
4168
|
+
H.inBatch++;
|
|
4169
|
+
}
|
|
4170
|
+
function W() {
|
|
4171
|
+
if (--H.inBatch === 0) {
|
|
4172
|
+
pr();
|
|
4173
|
+
for (var e = H.pendingUnobservations, t = 0; t < e.length; t++) {
|
|
4268
4174
|
var n = e[t];
|
|
4269
|
-
n.isPendingUnobservation = !1, n.observers.size === 0 && (n.isBeingObserved && (n.isBeingObserved = !1, n.onBecomeUnobserved()), n instanceof
|
|
4175
|
+
n.isPendingUnobservation = !1, n.observers.size === 0 && (n.isBeingObserved && (n.isBeingObserved = !1, n.onBecomeUnobserved()), n instanceof qn && n.suspend());
|
|
4270
4176
|
}
|
|
4271
|
-
|
|
4177
|
+
H.pendingUnobservations = [];
|
|
4272
4178
|
}
|
|
4273
4179
|
}
|
|
4274
|
-
function
|
|
4275
|
-
var t =
|
|
4276
|
-
return t === null ? (e.observers.size === 0 &&
|
|
4180
|
+
function ir(e) {
|
|
4181
|
+
var t = H.trackingDerivation;
|
|
4182
|
+
return t === null ? (e.observers.size === 0 && H.inBatch > 0 && rr(e), !1) : (t.runId !== e.lastAccessedBy && (e.lastAccessedBy = t.runId, t.newObserving[t.unboundDepsCount++] = e, e.isBeingObserved || (e.isBeingObserved = !0, e.onBecomeObserved())), !0);
|
|
4277
4183
|
}
|
|
4278
|
-
function
|
|
4279
|
-
e.lowestObserverState !==
|
|
4280
|
-
t.dependenciesState ===
|
|
4184
|
+
function ar(e) {
|
|
4185
|
+
e.lowestObserverState !== z.STALE && (e.lowestObserverState = z.STALE, e.observers.forEach(function(t) {
|
|
4186
|
+
t.dependenciesState === z.UP_TO_DATE && (t.isTracing !== B.NONE && cr(t, e), t.onBecomeStale()), t.dependenciesState = z.STALE;
|
|
4281
4187
|
}));
|
|
4282
4188
|
}
|
|
4283
|
-
function
|
|
4284
|
-
e.lowestObserverState !==
|
|
4285
|
-
t.dependenciesState ===
|
|
4189
|
+
function or(e) {
|
|
4190
|
+
e.lowestObserverState !== z.STALE && (e.lowestObserverState = z.STALE, e.observers.forEach(function(t) {
|
|
4191
|
+
t.dependenciesState === z.POSSIBLY_STALE ? t.dependenciesState = z.STALE : t.dependenciesState === z.UP_TO_DATE && (e.lowestObserverState = z.UP_TO_DATE);
|
|
4286
4192
|
}));
|
|
4287
4193
|
}
|
|
4288
|
-
function
|
|
4289
|
-
e.lowestObserverState ===
|
|
4290
|
-
t.dependenciesState ===
|
|
4194
|
+
function sr(e) {
|
|
4195
|
+
e.lowestObserverState === z.UP_TO_DATE && (e.lowestObserverState = z.POSSIBLY_STALE, e.observers.forEach(function(t) {
|
|
4196
|
+
t.dependenciesState === z.UP_TO_DATE && (t.dependenciesState = z.POSSIBLY_STALE, t.isTracing !== B.NONE && cr(t, e), t.onBecomeStale());
|
|
4291
4197
|
}));
|
|
4292
4198
|
}
|
|
4293
|
-
function
|
|
4294
|
-
if (console.log("[mobx.trace] '" + e.name + "' is invalidated due to a change in: '" + t.name + "'"), e.isTracing ===
|
|
4199
|
+
function cr(e, t) {
|
|
4200
|
+
if (console.log("[mobx.trace] '" + e.name + "' is invalidated due to a change in: '" + t.name + "'"), e.isTracing === B.BREAK) {
|
|
4295
4201
|
var n = [];
|
|
4296
|
-
|
|
4202
|
+
lr(Lr(e), n, 1), Function("debugger;\n/*\nTracing '" + e.name + "'\n\nYou are entering this break point because derivation '" + e.name + "' is being traced and '" + t.name + "' is now forcing it to update.\nJust follow the stacktrace you should now see in the devtools to see precisely what piece of your code is causing this update\nThe stackframe you are looking for is at least ~6-8 stack-frames up.\n\n" + (e instanceof qn ? e.derivation.toString().replace(/[*]\//g, "/") : "") + "\n\nThe dependencies for this derivation are:\n\n" + n.join("\n") + "\n*/\n ")();
|
|
4297
4203
|
}
|
|
4298
4204
|
}
|
|
4299
|
-
function
|
|
4205
|
+
function lr(e, t, n) {
|
|
4300
4206
|
if (t.length >= 1e3) {
|
|
4301
4207
|
t.push("(and many more)");
|
|
4302
4208
|
return;
|
|
4303
4209
|
}
|
|
4304
4210
|
t.push("" + Array(n).join(" ") + e.name), e.dependencies && e.dependencies.forEach(function(e) {
|
|
4305
|
-
return
|
|
4211
|
+
return lr(e, t, n + 1);
|
|
4306
4212
|
});
|
|
4307
4213
|
}
|
|
4308
|
-
var
|
|
4214
|
+
var ur = function() {
|
|
4309
4215
|
function e(e, t, n, r) {
|
|
4310
|
-
e === void 0 && (e = "Reaction@" +
|
|
4216
|
+
e === void 0 && (e = "Reaction@" + M()), r === void 0 && (r = !1), this.name = e, this.onInvalidate = t, this.errorHandler = n, this.requiresObservable = r, this.observing = [], this.newObserving = [], this.dependenciesState = z.NOT_TRACKING, this.diffValue = 0, this.runId = 0, this.unboundDepsCount = 0, this.__mapid = "#" + M(), this.isDisposed = !1, this._isScheduled = !1, this._isTrackPending = !1, this._isRunning = !1, this.isTracing = B.NONE;
|
|
4311
4217
|
}
|
|
4312
4218
|
return e.prototype.onBecomeStale = function() {
|
|
4313
4219
|
this.schedule();
|
|
4314
4220
|
}, e.prototype.schedule = function() {
|
|
4315
|
-
this._isScheduled || (this._isScheduled = !0,
|
|
4221
|
+
this._isScheduled || (this._isScheduled = !0, H.pendingReactions.push(this), pr());
|
|
4316
4222
|
}, e.prototype.isScheduled = function() {
|
|
4317
4223
|
return this._isScheduled;
|
|
4318
4224
|
}, e.prototype.runReaction = function() {
|
|
4319
4225
|
if (!this.isDisposed) {
|
|
4320
|
-
if (
|
|
4226
|
+
if (U(), this._isScheduled = !1, En(this)) {
|
|
4321
4227
|
this._isTrackPending = !0;
|
|
4322
4228
|
try {
|
|
4323
4229
|
this.onInvalidate(), this._isTrackPending;
|
|
@@ -4325,13 +4231,13 @@ var kr = function() {
|
|
|
4325
4231
|
this.reportExceptionInDerivation(e);
|
|
4326
4232
|
}
|
|
4327
4233
|
}
|
|
4328
|
-
|
|
4234
|
+
W();
|
|
4329
4235
|
}
|
|
4330
4236
|
}, e.prototype.track = function(e) {
|
|
4331
4237
|
if (!this.isDisposed) {
|
|
4332
|
-
|
|
4333
|
-
var t =
|
|
4334
|
-
this._isRunning = !1, this._isTrackPending = !1, this.isDisposed &&
|
|
4238
|
+
U(), this._isRunning = !0;
|
|
4239
|
+
var t = On(this, e, void 0);
|
|
4240
|
+
this._isRunning = !1, this._isTrackPending = !1, this.isDisposed && An(this), Tn(t) && this.reportExceptionInDerivation(t.cause), W();
|
|
4335
4241
|
}
|
|
4336
4242
|
}, e.prototype.reportExceptionInDerivation = function(e) {
|
|
4337
4243
|
var t = this;
|
|
@@ -4339,58 +4245,58 @@ var kr = function() {
|
|
|
4339
4245
|
this.errorHandler(e, this);
|
|
4340
4246
|
return;
|
|
4341
4247
|
}
|
|
4342
|
-
if (
|
|
4248
|
+
if (H.disableErrorBoundaries) throw e;
|
|
4343
4249
|
var n = "[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '" + this + "'";
|
|
4344
|
-
|
|
4250
|
+
H.suppressReactionErrors ? console.warn("[mobx] (error in reaction '" + this.name + "' suppressed, fix error of causing action below)") : console.error(n, e), G() && (this.name, "" + e), H.globalReactionErrorHandlers.forEach(function(n) {
|
|
4345
4251
|
return n(e, t);
|
|
4346
4252
|
});
|
|
4347
4253
|
}, e.prototype.dispose = function() {
|
|
4348
|
-
this.isDisposed || (this.isDisposed = !0, this._isRunning || (
|
|
4254
|
+
this.isDisposed || (this.isDisposed = !0, this._isRunning || (U(), An(this), W()));
|
|
4349
4255
|
}, e.prototype.getDisposer = function() {
|
|
4350
4256
|
var e = this.dispose.bind(this);
|
|
4351
|
-
return e[
|
|
4257
|
+
return e[I] = this, e;
|
|
4352
4258
|
}, e.prototype.toString = function() {
|
|
4353
4259
|
return "Reaction[" + this.name + "]";
|
|
4354
4260
|
}, e.prototype.trace = function(e) {
|
|
4355
|
-
e === void 0 && (e = !1),
|
|
4261
|
+
e === void 0 && (e = !1), Jr(this, e);
|
|
4356
4262
|
}, e;
|
|
4357
|
-
}(),
|
|
4263
|
+
}(), dr = 100, fr = function(e) {
|
|
4358
4264
|
return e();
|
|
4359
4265
|
};
|
|
4360
|
-
function
|
|
4361
|
-
|
|
4266
|
+
function pr() {
|
|
4267
|
+
H.inBatch > 0 || H.isRunningReactions || fr(mr);
|
|
4362
4268
|
}
|
|
4363
|
-
function
|
|
4364
|
-
|
|
4365
|
-
for (var e =
|
|
4366
|
-
++t ===
|
|
4269
|
+
function mr() {
|
|
4270
|
+
H.isRunningReactions = !0;
|
|
4271
|
+
for (var e = H.pendingReactions, t = 0; e.length > 0;) {
|
|
4272
|
+
++t === dr && (console.error("Reaction doesn't converge to a stable state after " + dr + " iterations." + (" Probably there is a cycle in the reactive function: " + e[0])), e.splice(0));
|
|
4367
4273
|
for (var n = e.splice(0), r = 0, i = n.length; r < i; r++) n[r].runReaction();
|
|
4368
4274
|
}
|
|
4369
|
-
|
|
4275
|
+
H.isRunningReactions = !1;
|
|
4370
4276
|
}
|
|
4371
|
-
var
|
|
4372
|
-
function
|
|
4373
|
-
var t =
|
|
4374
|
-
|
|
4277
|
+
var hr = P("Reaction", ur);
|
|
4278
|
+
function gr(e) {
|
|
4279
|
+
var t = fr;
|
|
4280
|
+
fr = function(n) {
|
|
4375
4281
|
return e(function() {
|
|
4376
4282
|
return t(n);
|
|
4377
4283
|
});
|
|
4378
4284
|
};
|
|
4379
4285
|
}
|
|
4380
|
-
function
|
|
4286
|
+
function G() {
|
|
4381
4287
|
return !1;
|
|
4382
4288
|
}
|
|
4383
|
-
function
|
|
4289
|
+
function _r(e) {
|
|
4384
4290
|
return console.warn("[mobx.spy] Is a no-op in production builds"), function() {};
|
|
4385
4291
|
}
|
|
4386
|
-
function
|
|
4387
|
-
|
|
4292
|
+
function vr() {
|
|
4293
|
+
N(!1);
|
|
4388
4294
|
}
|
|
4389
|
-
function
|
|
4295
|
+
function yr(e) {
|
|
4390
4296
|
return function(t, n, r) {
|
|
4391
4297
|
if (r) {
|
|
4392
4298
|
if (r.value) return {
|
|
4393
|
-
value:
|
|
4299
|
+
value: zn(e, r.value),
|
|
4394
4300
|
enumerable: !1,
|
|
4395
4301
|
configurable: !0,
|
|
4396
4302
|
writable: !0
|
|
@@ -4401,65 +4307,65 @@ function Rr(e) {
|
|
|
4401
4307
|
configurable: !0,
|
|
4402
4308
|
writable: !0,
|
|
4403
4309
|
initializer: function() {
|
|
4404
|
-
return
|
|
4310
|
+
return zn(e, i.call(this));
|
|
4405
4311
|
}
|
|
4406
4312
|
};
|
|
4407
4313
|
}
|
|
4408
|
-
return
|
|
4314
|
+
return br(e).apply(this, arguments);
|
|
4409
4315
|
};
|
|
4410
4316
|
}
|
|
4411
|
-
function
|
|
4317
|
+
function br(e) {
|
|
4412
4318
|
return function(t, n, r) {
|
|
4413
4319
|
Object.defineProperty(t, n, {
|
|
4414
4320
|
configurable: !0,
|
|
4415
4321
|
enumerable: !1,
|
|
4416
4322
|
get: function() {},
|
|
4417
4323
|
set: function(t) {
|
|
4418
|
-
|
|
4324
|
+
At(this, n, Sr(e, t));
|
|
4419
4325
|
}
|
|
4420
4326
|
});
|
|
4421
4327
|
};
|
|
4422
4328
|
}
|
|
4423
|
-
function
|
|
4424
|
-
return r === !0 ? (
|
|
4329
|
+
function xr(e, t, n, r) {
|
|
4330
|
+
return r === !0 ? (wr(e, t, n.value), null) : n ? {
|
|
4425
4331
|
configurable: !0,
|
|
4426
4332
|
enumerable: !1,
|
|
4427
4333
|
get: function() {
|
|
4428
|
-
return
|
|
4334
|
+
return wr(this, t, n.value || n.initializer.call(this)), this[t];
|
|
4429
4335
|
},
|
|
4430
|
-
set:
|
|
4336
|
+
set: vr
|
|
4431
4337
|
} : {
|
|
4432
4338
|
enumerable: !1,
|
|
4433
4339
|
configurable: !0,
|
|
4434
4340
|
set: function(e) {
|
|
4435
|
-
|
|
4341
|
+
wr(this, t, e);
|
|
4436
4342
|
},
|
|
4437
4343
|
get: function() {}
|
|
4438
4344
|
};
|
|
4439
4345
|
}
|
|
4440
|
-
var
|
|
4441
|
-
if (arguments.length === 1 && typeof e == "function") return
|
|
4442
|
-
if (arguments.length === 2 && typeof t == "function") return
|
|
4443
|
-
if (arguments.length === 1 && typeof e == "string") return
|
|
4444
|
-
if (r === !0)
|
|
4445
|
-
else return
|
|
4346
|
+
var Sr = function(e, t, n, r) {
|
|
4347
|
+
if (arguments.length === 1 && typeof e == "function") return zn(e.name || "<unnamed action>", e);
|
|
4348
|
+
if (arguments.length === 2 && typeof t == "function") return zn(e, t);
|
|
4349
|
+
if (arguments.length === 1 && typeof e == "string") return yr(e);
|
|
4350
|
+
if (r === !0) At(e, t, zn(e.name || t, n.value, this));
|
|
4351
|
+
else return yr(t).apply(null, arguments);
|
|
4446
4352
|
};
|
|
4447
|
-
|
|
4448
|
-
function
|
|
4449
|
-
return
|
|
4353
|
+
Sr.bound = xr;
|
|
4354
|
+
function Cr(e, t) {
|
|
4355
|
+
return Bn(typeof e == "string" ? e : e.name || "<unnamed action>", typeof e == "function" ? e : t, this, void 0);
|
|
4450
4356
|
}
|
|
4451
|
-
function
|
|
4452
|
-
|
|
4357
|
+
function wr(e, t, n) {
|
|
4358
|
+
At(e, t, zn(t, n.bind(e)));
|
|
4453
4359
|
}
|
|
4454
|
-
function
|
|
4455
|
-
t === void 0 && (t =
|
|
4456
|
-
var n = t && t.name || e.name || "Autorun@" +
|
|
4457
|
-
if (r) i = new
|
|
4360
|
+
function Tr(e, t) {
|
|
4361
|
+
t === void 0 && (t = St);
|
|
4362
|
+
var n = t && t.name || e.name || "Autorun@" + M(), r = !t.scheduler && !t.delay, i;
|
|
4363
|
+
if (r) i = new ur(n, function() {
|
|
4458
4364
|
this.track(s);
|
|
4459
4365
|
}, t.onError, t.requiresObservable);
|
|
4460
4366
|
else {
|
|
4461
|
-
var a =
|
|
4462
|
-
i = new
|
|
4367
|
+
var a = Dr(t), o = !1;
|
|
4368
|
+
i = new ur(n, function() {
|
|
4463
4369
|
o || (o = !0, a(function() {
|
|
4464
4370
|
o = !1, i.isDisposed || i.track(s);
|
|
4465
4371
|
}));
|
|
@@ -4470,17 +4376,17 @@ function Wr(e, t) {
|
|
|
4470
4376
|
}
|
|
4471
4377
|
return i.schedule(), i.getDisposer();
|
|
4472
4378
|
}
|
|
4473
|
-
var
|
|
4379
|
+
var Er = function(e) {
|
|
4474
4380
|
return e();
|
|
4475
4381
|
};
|
|
4476
|
-
function
|
|
4382
|
+
function Dr(e) {
|
|
4477
4383
|
return e.scheduler ? e.scheduler : e.delay ? function(t) {
|
|
4478
4384
|
return setTimeout(t, e.delay);
|
|
4479
|
-
} :
|
|
4385
|
+
} : Er;
|
|
4480
4386
|
}
|
|
4481
|
-
function
|
|
4482
|
-
n === void 0 && (n =
|
|
4483
|
-
var r = n.name || "Reaction@" +
|
|
4387
|
+
function Or(e, t, n) {
|
|
4388
|
+
n === void 0 && (n = St);
|
|
4389
|
+
var r = n.name || "Reaction@" + M(), i = Sr(r, n.onError ? kr(n.onError, t) : t), a = !n.scheduler && !n.delay, o = Dr(n), s = !0, c = !1, l, u = n.compareStructural ? Gt.structural : n.equals || Gt.default, d = new ur(r, function() {
|
|
4484
4390
|
s || a ? f() : c || (c = !0, o(f));
|
|
4485
4391
|
}, n.onError, n.requiresObservable);
|
|
4486
4392
|
function f() {
|
|
@@ -4494,7 +4400,7 @@ function qr(e, t, n) {
|
|
|
4494
4400
|
}
|
|
4495
4401
|
return d.schedule(), d.getDisposer();
|
|
4496
4402
|
}
|
|
4497
|
-
function
|
|
4403
|
+
function kr(e, t) {
|
|
4498
4404
|
return function() {
|
|
4499
4405
|
try {
|
|
4500
4406
|
return t.apply(this, arguments);
|
|
@@ -4503,22 +4409,22 @@ function Jr(e, t) {
|
|
|
4503
4409
|
}
|
|
4504
4410
|
};
|
|
4505
4411
|
}
|
|
4506
|
-
function
|
|
4507
|
-
return
|
|
4412
|
+
function Ar(e, t, n) {
|
|
4413
|
+
return Mr("onBecomeObserved", e, t, n);
|
|
4508
4414
|
}
|
|
4509
|
-
function
|
|
4510
|
-
return
|
|
4415
|
+
function jr(e, t, n) {
|
|
4416
|
+
return Mr("onBecomeUnobserved", e, t, n);
|
|
4511
4417
|
}
|
|
4512
|
-
function
|
|
4513
|
-
var i = typeof r == "function" ?
|
|
4418
|
+
function Mr(e, t, n, r) {
|
|
4419
|
+
var i = typeof r == "function" ? Ci(t, n) : Ci(t), a = typeof r == "function" ? r : n, o = e + "Listeners";
|
|
4514
4420
|
return i[o] ? i[o].add(a) : i[o] = new Set([a]), typeof i[e] == "function" ? function() {
|
|
4515
4421
|
var e = i[o];
|
|
4516
4422
|
e && (e.delete(a), e.size === 0 && delete i[o]);
|
|
4517
|
-
} :
|
|
4423
|
+
} : N(!1);
|
|
4518
4424
|
}
|
|
4519
|
-
function
|
|
4425
|
+
function Nr(e) {
|
|
4520
4426
|
var t = e.enforceActions, n = e.computedRequiresReaction, r = e.computedConfigurable, i = e.disableErrorBoundaries, a = e.reactionScheduler, o = e.reactionRequiresObservable, s = e.observableRequiresReaction;
|
|
4521
|
-
if (e.isolateGlobalState === !0 &&
|
|
4427
|
+
if (e.isolateGlobalState === !0 && er(), t !== void 0) {
|
|
4522
4428
|
var c = void 0;
|
|
4523
4429
|
switch (t) {
|
|
4524
4430
|
case !0:
|
|
@@ -4533,29 +4439,29 @@ function Qr(e) {
|
|
|
4533
4439
|
case "always":
|
|
4534
4440
|
c = "strict";
|
|
4535
4441
|
break;
|
|
4536
|
-
default:
|
|
4442
|
+
default: N("Invalid value for 'enforceActions': '" + t + "', expected 'never', 'always' or 'observed'");
|
|
4537
4443
|
}
|
|
4538
|
-
|
|
4444
|
+
H.enforceActions = c, H.allowStateChanges = !(c === !0 || c === "strict");
|
|
4539
4445
|
}
|
|
4540
|
-
n !== void 0 && (
|
|
4446
|
+
n !== void 0 && (H.computedRequiresReaction = !!n), o !== void 0 && (H.reactionRequiresObservable = !!o), s !== void 0 && (H.observableRequiresReaction = !!s, H.allowStateReads = !H.observableRequiresReaction), r !== void 0 && (H.computedConfigurable = !!r), i !== void 0 && (i === !0 && console.warn("WARNING: Debug feature only. MobX will NOT recover from errors when `disableErrorBoundaries` is enabled."), H.disableErrorBoundaries = !!i), a && gr(a);
|
|
4541
4447
|
}
|
|
4542
|
-
function
|
|
4543
|
-
r =
|
|
4544
|
-
var i =
|
|
4545
|
-
return
|
|
4448
|
+
function Pr(e, t, n, r) {
|
|
4449
|
+
r = fn(r);
|
|
4450
|
+
var i = Fr(r);
|
|
4451
|
+
return nn(e), hi(e, r.name, i.enhancer), t && Ir(e, t, n, i), e;
|
|
4546
4452
|
}
|
|
4547
|
-
function
|
|
4548
|
-
return e.defaultDecorator || (e.deep === !1 ?
|
|
4453
|
+
function Fr(e) {
|
|
4454
|
+
return e.defaultDecorator || (e.deep === !1 ? hn : pn);
|
|
4549
4455
|
}
|
|
4550
|
-
function
|
|
4456
|
+
function Ir(e, t, n, r) {
|
|
4551
4457
|
var i, a;
|
|
4552
4458
|
if (0) var o, s;
|
|
4553
|
-
|
|
4459
|
+
U();
|
|
4554
4460
|
try {
|
|
4555
|
-
var o =
|
|
4461
|
+
var o = Lt(t);
|
|
4556
4462
|
try {
|
|
4557
|
-
for (var c =
|
|
4558
|
-
var s = l.value, u = Object.getOwnPropertyDescriptor(t, s), d = (n && s in n ? n[s] : u.get ?
|
|
4463
|
+
for (var c = L(o), l = c.next(); !l.done; l = c.next()) {
|
|
4464
|
+
var s = l.value, u = Object.getOwnPropertyDescriptor(t, s), d = (n && s in n ? n[s] : u.get ? xn : r)(e, s, u, !0);
|
|
4559
4465
|
d && Object.defineProperty(e, s, d);
|
|
4560
4466
|
}
|
|
4561
4467
|
} catch (e) {
|
|
@@ -4568,226 +4474,226 @@ function ti(e, t, n, r) {
|
|
|
4568
4474
|
}
|
|
4569
4475
|
}
|
|
4570
4476
|
} finally {
|
|
4571
|
-
|
|
4477
|
+
W();
|
|
4572
4478
|
}
|
|
4573
4479
|
}
|
|
4574
|
-
function
|
|
4575
|
-
return
|
|
4480
|
+
function Lr(e, t) {
|
|
4481
|
+
return Rr(Ci(e, t));
|
|
4576
4482
|
}
|
|
4577
|
-
function
|
|
4483
|
+
function Rr(e) {
|
|
4578
4484
|
var t = { name: e.name };
|
|
4579
|
-
return e.observing && e.observing.length > 0 && (t.dependencies =
|
|
4485
|
+
return e.observing && e.observing.length > 0 && (t.dependencies = Et(e.observing).map(Rr)), t;
|
|
4580
4486
|
}
|
|
4581
|
-
function
|
|
4487
|
+
function zr() {
|
|
4582
4488
|
this.message = "FLOW_CANCELLED";
|
|
4583
4489
|
}
|
|
4584
|
-
|
|
4585
|
-
function
|
|
4586
|
-
return e == null ? !1 : t === void 0 ?
|
|
4490
|
+
zr.prototype = Object.create(Error.prototype);
|
|
4491
|
+
function Br(e, t) {
|
|
4492
|
+
return e == null ? !1 : t === void 0 ? Si(e) || !!e[I] || zt(e) || hr(e) || Jn(e) : Si(e) ? e[I].values.has(t) : !1;
|
|
4587
4493
|
}
|
|
4588
|
-
function
|
|
4589
|
-
return arguments.length !== 1 &&
|
|
4494
|
+
function Vr(e) {
|
|
4495
|
+
return arguments.length !== 1 && N(!1), Br(e);
|
|
4590
4496
|
}
|
|
4591
|
-
function
|
|
4592
|
-
return
|
|
4497
|
+
function Hr(e) {
|
|
4498
|
+
return Si(e) ? e[I].getKeys() : Q(e) || $(e) ? Array.from(e.keys()) : si(e) ? e.map(function(e, t) {
|
|
4593
4499
|
return t;
|
|
4594
|
-
}) :
|
|
4500
|
+
}) : N(!1);
|
|
4595
4501
|
}
|
|
4596
|
-
function
|
|
4502
|
+
function Ur(e, t, n) {
|
|
4597
4503
|
if (arguments.length === 2 && !$(e)) {
|
|
4598
|
-
|
|
4504
|
+
U();
|
|
4599
4505
|
var r = t;
|
|
4600
4506
|
try {
|
|
4601
|
-
for (var i in r)
|
|
4507
|
+
for (var i in r) Ur(e, i, r[i]);
|
|
4602
4508
|
} finally {
|
|
4603
|
-
|
|
4509
|
+
W();
|
|
4604
4510
|
}
|
|
4605
4511
|
return;
|
|
4606
4512
|
}
|
|
4607
|
-
if (
|
|
4608
|
-
var a = e[
|
|
4513
|
+
if (Si(e)) {
|
|
4514
|
+
var a = e[I];
|
|
4609
4515
|
a.values.get(t) ? a.write(t, n) : a.addObservableProp(t, n, a.defaultEnhancer);
|
|
4610
4516
|
} else if (Q(e)) e.set(t, n);
|
|
4611
4517
|
else if ($(e)) e.add(t);
|
|
4612
|
-
else if (
|
|
4613
|
-
else return
|
|
4518
|
+
else if (si(e)) typeof t != "number" && (t = parseInt(t, 10)), Ct(t >= 0, "Not a valid index: '" + t + "'"), U(), t >= e.length && (e.length = t + 1), e[t] = n, W();
|
|
4519
|
+
else return N(!1);
|
|
4614
4520
|
}
|
|
4615
|
-
var
|
|
4521
|
+
var Wr = {
|
|
4616
4522
|
detectCycles: !0,
|
|
4617
4523
|
exportMapsAsObjects: !0,
|
|
4618
4524
|
recurseEverything: !1
|
|
4619
4525
|
};
|
|
4620
|
-
function
|
|
4526
|
+
function Gr(e, t, n, r) {
|
|
4621
4527
|
return r.detectCycles && e.set(t, n), n;
|
|
4622
4528
|
}
|
|
4623
|
-
function
|
|
4624
|
-
if (!t.recurseEverything && !
|
|
4529
|
+
function Kr(e, t, n) {
|
|
4530
|
+
if (!t.recurseEverything && !Vr(e) || typeof e != "object") return e;
|
|
4625
4531
|
if (e === null) return null;
|
|
4626
4532
|
if (e instanceof Date) return e;
|
|
4627
|
-
if (
|
|
4628
|
-
if (
|
|
4629
|
-
if (
|
|
4630
|
-
var r =
|
|
4631
|
-
return
|
|
4533
|
+
if (Kn(e)) return Kr(e.get(), t, n);
|
|
4534
|
+
if (Vr(e) && Hr(e), t.detectCycles === !0 && e !== null && n.has(e)) return n.get(e);
|
|
4535
|
+
if (si(e) || Array.isArray(e)) {
|
|
4536
|
+
var r = Gr(n, e, [], t), i = e.map(function(e) {
|
|
4537
|
+
return Kr(e, t, n);
|
|
4632
4538
|
});
|
|
4633
4539
|
r.length = i.length;
|
|
4634
4540
|
for (var a = 0, o = i.length; a < o; a++) r[a] = i[a];
|
|
4635
4541
|
return r;
|
|
4636
4542
|
}
|
|
4637
4543
|
if ($(e) || Object.getPrototypeOf(e) === Set.prototype) if (t.exportMapsAsObjects === !1) {
|
|
4638
|
-
var s =
|
|
4544
|
+
var s = Gr(n, e, /* @__PURE__ */ new Set(), t);
|
|
4639
4545
|
return e.forEach(function(e) {
|
|
4640
|
-
s.add(
|
|
4546
|
+
s.add(Kr(e, t, n));
|
|
4641
4547
|
}), s;
|
|
4642
4548
|
} else {
|
|
4643
|
-
var c =
|
|
4549
|
+
var c = Gr(n, e, [], t);
|
|
4644
4550
|
return e.forEach(function(e) {
|
|
4645
|
-
c.push(
|
|
4551
|
+
c.push(Kr(e, t, n));
|
|
4646
4552
|
}), c;
|
|
4647
4553
|
}
|
|
4648
4554
|
if (Q(e) || Object.getPrototypeOf(e) === Map.prototype) if (t.exportMapsAsObjects === !1) {
|
|
4649
|
-
var l =
|
|
4555
|
+
var l = Gr(n, e, /* @__PURE__ */ new Map(), t);
|
|
4650
4556
|
return e.forEach(function(e, r) {
|
|
4651
|
-
l.set(r,
|
|
4557
|
+
l.set(r, Kr(e, t, n));
|
|
4652
4558
|
}), l;
|
|
4653
4559
|
} else {
|
|
4654
|
-
var u =
|
|
4560
|
+
var u = Gr(n, e, {}, t);
|
|
4655
4561
|
return e.forEach(function(e, r) {
|
|
4656
|
-
u[r] =
|
|
4562
|
+
u[r] = Kr(e, t, n);
|
|
4657
4563
|
}), u;
|
|
4658
4564
|
}
|
|
4659
|
-
var d =
|
|
4660
|
-
return
|
|
4661
|
-
d[r] =
|
|
4565
|
+
var d = Gr(n, e, {}, t);
|
|
4566
|
+
return Ft(e).forEach(function(r) {
|
|
4567
|
+
d[r] = Kr(e[r], t, n);
|
|
4662
4568
|
}), d;
|
|
4663
4569
|
}
|
|
4664
|
-
function
|
|
4665
|
-
typeof t == "boolean" && (t = { detectCycles: t }), t || (t =
|
|
4570
|
+
function qr(e, t) {
|
|
4571
|
+
typeof t == "boolean" && (t = { detectCycles: t }), t || (t = Wr), t.detectCycles = t.detectCycles === void 0 ? t.recurseEverything === !0 : t.detectCycles === !0;
|
|
4666
4572
|
var n;
|
|
4667
|
-
return t.detectCycles && (n = /* @__PURE__ */ new Map()),
|
|
4573
|
+
return t.detectCycles && (n = /* @__PURE__ */ new Map()), Kr(e, t, n);
|
|
4668
4574
|
}
|
|
4669
|
-
function
|
|
4575
|
+
function Jr() {
|
|
4670
4576
|
var e = [...arguments], t = !1;
|
|
4671
4577
|
typeof e[e.length - 1] == "boolean" && (t = e.pop());
|
|
4672
|
-
var n =
|
|
4673
|
-
if (!n) return
|
|
4674
|
-
n.isTracing ===
|
|
4578
|
+
var n = Yr(e);
|
|
4579
|
+
if (!n) return N(!1);
|
|
4580
|
+
n.isTracing === B.NONE && console.log("[mobx.trace] '" + n.name + "' tracing enabled"), n.isTracing = t ? B.BREAK : B.LOG;
|
|
4675
4581
|
}
|
|
4676
|
-
function
|
|
4582
|
+
function Yr(e) {
|
|
4677
4583
|
switch (e.length) {
|
|
4678
|
-
case 0: return
|
|
4679
|
-
case 1: return
|
|
4680
|
-
case 2: return
|
|
4584
|
+
case 0: return H.trackingDerivation;
|
|
4585
|
+
case 1: return Ci(e[0]);
|
|
4586
|
+
case 2: return Ci(e[0], e[1]);
|
|
4681
4587
|
}
|
|
4682
4588
|
}
|
|
4683
4589
|
function K(e, t) {
|
|
4684
|
-
t === void 0 && (t = void 0),
|
|
4590
|
+
t === void 0 && (t = void 0), U();
|
|
4685
4591
|
try {
|
|
4686
4592
|
return e.apply(t);
|
|
4687
4593
|
} finally {
|
|
4688
|
-
|
|
4594
|
+
W();
|
|
4689
4595
|
}
|
|
4690
4596
|
}
|
|
4691
|
-
function
|
|
4692
|
-
return e[
|
|
4597
|
+
function Xr(e) {
|
|
4598
|
+
return e[I];
|
|
4693
4599
|
}
|
|
4694
|
-
function
|
|
4600
|
+
function Zr(e) {
|
|
4695
4601
|
return typeof e == "string" || typeof e == "number" || typeof e == "symbol";
|
|
4696
4602
|
}
|
|
4697
|
-
var
|
|
4603
|
+
var Qr = {
|
|
4698
4604
|
has: function(e, t) {
|
|
4699
|
-
if (t ===
|
|
4700
|
-
var n =
|
|
4701
|
-
return
|
|
4605
|
+
if (t === I || t === "constructor" || t === Zt) return !0;
|
|
4606
|
+
var n = Xr(e);
|
|
4607
|
+
return Zr(t) ? n.has(t) : t in e;
|
|
4702
4608
|
},
|
|
4703
4609
|
get: function(e, t) {
|
|
4704
|
-
if (t ===
|
|
4705
|
-
var n =
|
|
4706
|
-
if (r instanceof
|
|
4610
|
+
if (t === I || t === "constructor" || t === Zt) return e[t];
|
|
4611
|
+
var n = Xr(e), r = n.values.get(t);
|
|
4612
|
+
if (r instanceof Rt) {
|
|
4707
4613
|
var i = r.get();
|
|
4708
4614
|
return i === void 0 && n.has(t), i;
|
|
4709
4615
|
}
|
|
4710
|
-
return
|
|
4616
|
+
return Zr(t) && n.has(t), e[t];
|
|
4711
4617
|
},
|
|
4712
4618
|
set: function(e, t, n) {
|
|
4713
|
-
return
|
|
4619
|
+
return Zr(t) ? (Ur(e, t, n), !0) : !1;
|
|
4714
4620
|
},
|
|
4715
4621
|
deleteProperty: function(e, t) {
|
|
4716
|
-
return
|
|
4622
|
+
return Zr(t) ? (Xr(e).remove(t), !0) : !1;
|
|
4717
4623
|
},
|
|
4718
4624
|
ownKeys: function(e) {
|
|
4719
|
-
return
|
|
4625
|
+
return Xr(e).keysAtom.reportObserved(), Reflect.ownKeys(e);
|
|
4720
4626
|
},
|
|
4721
4627
|
preventExtensions: function(e) {
|
|
4722
|
-
return
|
|
4628
|
+
return N("Dynamic observable objects cannot be frozen"), !1;
|
|
4723
4629
|
}
|
|
4724
4630
|
};
|
|
4725
|
-
function
|
|
4726
|
-
var t = new Proxy(e,
|
|
4727
|
-
return e[
|
|
4631
|
+
function $r(e) {
|
|
4632
|
+
var t = new Proxy(e, Qr);
|
|
4633
|
+
return e[I].proxy = t, t;
|
|
4728
4634
|
}
|
|
4729
4635
|
function q(e) {
|
|
4730
4636
|
return e.interceptors !== void 0 && e.interceptors.length > 0;
|
|
4731
4637
|
}
|
|
4732
|
-
function
|
|
4638
|
+
function ei(e, t) {
|
|
4733
4639
|
var n = e.interceptors || (e.interceptors = []);
|
|
4734
|
-
return n.push(t),
|
|
4640
|
+
return n.push(t), wt(function() {
|
|
4735
4641
|
var e = n.indexOf(t);
|
|
4736
4642
|
e !== -1 && n.splice(e, 1);
|
|
4737
4643
|
});
|
|
4738
4644
|
}
|
|
4739
4645
|
function J(e, t) {
|
|
4740
|
-
var n =
|
|
4646
|
+
var n = Mn();
|
|
4741
4647
|
try {
|
|
4742
|
-
for (var r =
|
|
4648
|
+
for (var r = Xt(e.interceptors || []), i = 0, a = r.length; i < a && (t = r[i](t), Ct(!t || t.type, "Intercept handlers should return nothing or a change object"), t); i++);
|
|
4743
4649
|
return t;
|
|
4744
4650
|
} finally {
|
|
4745
|
-
|
|
4651
|
+
V(n);
|
|
4746
4652
|
}
|
|
4747
4653
|
}
|
|
4748
4654
|
function Y(e) {
|
|
4749
4655
|
return e.changeListeners !== void 0 && e.changeListeners.length > 0;
|
|
4750
4656
|
}
|
|
4751
|
-
function
|
|
4657
|
+
function ti(e, t) {
|
|
4752
4658
|
var n = e.changeListeners || (e.changeListeners = []);
|
|
4753
|
-
return n.push(t),
|
|
4659
|
+
return n.push(t), wt(function() {
|
|
4754
4660
|
var e = n.indexOf(t);
|
|
4755
4661
|
e !== -1 && n.splice(e, 1);
|
|
4756
4662
|
});
|
|
4757
4663
|
}
|
|
4758
4664
|
function X(e, t) {
|
|
4759
|
-
var n =
|
|
4665
|
+
var n = Mn(), r = e.changeListeners;
|
|
4760
4666
|
if (r) {
|
|
4761
4667
|
r = r.slice();
|
|
4762
4668
|
for (var i = 0, a = r.length; i < a; i++) r[i](t);
|
|
4763
|
-
|
|
4669
|
+
V(n);
|
|
4764
4670
|
}
|
|
4765
4671
|
}
|
|
4766
|
-
var
|
|
4672
|
+
var ni = 1e4, ri = {
|
|
4767
4673
|
get: function(e, t) {
|
|
4768
|
-
return t ===
|
|
4674
|
+
return t === I ? e[I] : t === "length" ? e[I].getArrayLength() : typeof t == "number" ? Z.get.call(e, t) : typeof t == "string" && !isNaN(t) ? Z.get.call(e, parseInt(t)) : Z.hasOwnProperty(t) ? Z[t] : e[t];
|
|
4769
4675
|
},
|
|
4770
4676
|
set: function(e, t, n) {
|
|
4771
|
-
return t === "length" && e[
|
|
4677
|
+
return t === "length" && e[I].setArrayLength(n), typeof t == "number" && Z.set.call(e, t, n), typeof t == "symbol" || isNaN(t) ? e[t] = n : Z.set.call(e, parseInt(t), n), !0;
|
|
4772
4678
|
},
|
|
4773
4679
|
preventExtensions: function(e) {
|
|
4774
|
-
return
|
|
4680
|
+
return N("Observable arrays cannot be frozen"), !1;
|
|
4775
4681
|
}
|
|
4776
4682
|
};
|
|
4777
|
-
function
|
|
4778
|
-
n === void 0 && (n = "ObservableArray@" +
|
|
4779
|
-
var i = new
|
|
4780
|
-
|
|
4781
|
-
var a = new Proxy(i.values,
|
|
4683
|
+
function ii(e, t, n, r) {
|
|
4684
|
+
n === void 0 && (n = "ObservableArray@" + M()), r === void 0 && (r = !1);
|
|
4685
|
+
var i = new ai(n, t, r);
|
|
4686
|
+
jt(i.values, I, i);
|
|
4687
|
+
var a = new Proxy(i.values, ri);
|
|
4782
4688
|
if (i.proxy = a, e && e.length) {
|
|
4783
|
-
var o =
|
|
4784
|
-
i.spliceWithArray(0, 0, e),
|
|
4689
|
+
var o = Un(!0);
|
|
4690
|
+
i.spliceWithArray(0, 0, e), Wn(o);
|
|
4785
4691
|
}
|
|
4786
4692
|
return a;
|
|
4787
4693
|
}
|
|
4788
|
-
var
|
|
4694
|
+
var ai = function() {
|
|
4789
4695
|
function e(e, t, n) {
|
|
4790
|
-
this.owned = n, this.values = [], this.proxy = void 0, this.lastKnownLength = 0, this.atom = new
|
|
4696
|
+
this.owned = n, this.values = [], this.proxy = void 0, this.lastKnownLength = 0, this.atom = new Rt(e || "ObservableArray@" + M()), this.enhancer = function(n, r) {
|
|
4791
4697
|
return t(n, r, e + "[..]");
|
|
4792
4698
|
};
|
|
4793
4699
|
}
|
|
@@ -4796,7 +4702,7 @@ var Ci = function() {
|
|
|
4796
4702
|
}, e.prototype.dehanceValues = function(e) {
|
|
4797
4703
|
return this.dehancer !== void 0 && e.length > 0 ? e.map(this.dehancer) : e;
|
|
4798
4704
|
}, e.prototype.intercept = function(e) {
|
|
4799
|
-
return
|
|
4705
|
+
return ei(this, e);
|
|
4800
4706
|
}, e.prototype.observe = function(e, t) {
|
|
4801
4707
|
return t === void 0 && (t = !1), t && e({
|
|
4802
4708
|
object: this.proxy,
|
|
@@ -4806,7 +4712,7 @@ var Ci = function() {
|
|
|
4806
4712
|
addedCount: this.values.length,
|
|
4807
4713
|
removed: [],
|
|
4808
4714
|
removedCount: 0
|
|
4809
|
-
}),
|
|
4715
|
+
}), ti(this, e);
|
|
4810
4716
|
}, e.prototype.getArrayLength = function() {
|
|
4811
4717
|
return this.atom.reportObserved(), this.values.length;
|
|
4812
4718
|
}, e.prototype.setArrayLength = function(e) {
|
|
@@ -4821,9 +4727,9 @@ var Ci = function() {
|
|
|
4821
4727
|
this.lastKnownLength += t;
|
|
4822
4728
|
}, e.prototype.spliceWithArray = function(e, t, n) {
|
|
4823
4729
|
var r = this;
|
|
4824
|
-
|
|
4730
|
+
Dn(this.atom);
|
|
4825
4731
|
var i = this.values.length;
|
|
4826
|
-
if (e === void 0 ? e = 0 : e > i ? e = i : e < 0 && (e = Math.max(0, i + e)), t = arguments.length === 1 ? i - e : t == null ? 0 : Math.max(0, Math.min(t, i - e)), n === void 0 && (n =
|
|
4732
|
+
if (e === void 0 ? e = 0 : e > i ? e = i : e < 0 && (e = Math.max(0, i + e)), t = arguments.length === 1 ? i - e : t == null ? 0 : Math.max(0, Math.min(t, i - e)), n === void 0 && (n = xt), q(this)) {
|
|
4827
4733
|
var a = J(this, {
|
|
4828
4734
|
object: this.proxy,
|
|
4829
4735
|
type: "splice",
|
|
@@ -4831,7 +4737,7 @@ var Ci = function() {
|
|
|
4831
4737
|
removedCount: t,
|
|
4832
4738
|
added: n
|
|
4833
4739
|
});
|
|
4834
|
-
if (!a) return
|
|
4740
|
+
if (!a) return xt;
|
|
4835
4741
|
t = a.removedCount, n = a.added;
|
|
4836
4742
|
}
|
|
4837
4743
|
n = n.length === 0 ? n : n.map(function(e) {
|
|
@@ -4841,11 +4747,11 @@ var Ci = function() {
|
|
|
4841
4747
|
return (t !== 0 || n.length !== 0) && this.notifyArraySplice(e, n, o), this.dehanceValues(o);
|
|
4842
4748
|
}, e.prototype.spliceItemsIntoValues = function(e, t, n) {
|
|
4843
4749
|
var r;
|
|
4844
|
-
if (n.length <
|
|
4750
|
+
if (n.length < ni) return (r = this.values).splice.apply(r, Xt([e, t], n));
|
|
4845
4751
|
var i = this.values.slice(e, e + t);
|
|
4846
4752
|
return this.values = this.values.slice(0, e).concat(n, this.values.slice(e + t)), i;
|
|
4847
4753
|
}, e.prototype.notifyArrayChildUpdate = function(e, t, n) {
|
|
4848
|
-
var r = !this.owned &&
|
|
4754
|
+
var r = !this.owned && G(), i = Y(this), a = i || r ? {
|
|
4849
4755
|
object: this.proxy,
|
|
4850
4756
|
type: "update",
|
|
4851
4757
|
index: e,
|
|
@@ -4854,7 +4760,7 @@ var Ci = function() {
|
|
|
4854
4760
|
} : null;
|
|
4855
4761
|
this.atom.reportChanged(), i && X(this, a);
|
|
4856
4762
|
}, e.prototype.notifyArraySplice = function(e, t, n) {
|
|
4857
|
-
var r = !this.owned &&
|
|
4763
|
+
var r = !this.owned && G(), i = Y(this), a = i || r ? {
|
|
4858
4764
|
object: this.proxy,
|
|
4859
4765
|
type: "splice",
|
|
4860
4766
|
index: e,
|
|
@@ -4867,16 +4773,16 @@ var Ci = function() {
|
|
|
4867
4773
|
}, e;
|
|
4868
4774
|
}(), Z = {
|
|
4869
4775
|
intercept: function(e) {
|
|
4870
|
-
return this[
|
|
4776
|
+
return this[I].intercept(e);
|
|
4871
4777
|
},
|
|
4872
4778
|
observe: function(e, t) {
|
|
4873
|
-
return t === void 0 && (t = !1), this[
|
|
4779
|
+
return t === void 0 && (t = !1), this[I].observe(e, t);
|
|
4874
4780
|
},
|
|
4875
4781
|
clear: function() {
|
|
4876
4782
|
return this.splice(0);
|
|
4877
4783
|
},
|
|
4878
4784
|
replace: function(e) {
|
|
4879
|
-
var t = this[
|
|
4785
|
+
var t = this[I];
|
|
4880
4786
|
return t.spliceWithArray(0, t.values.length, e);
|
|
4881
4787
|
},
|
|
4882
4788
|
toJS: function() {
|
|
@@ -4886,7 +4792,7 @@ var Ci = function() {
|
|
|
4886
4792
|
return this.toJS();
|
|
4887
4793
|
},
|
|
4888
4794
|
splice: function(e, t) {
|
|
4889
|
-
var n = [...arguments].slice(2), r = this[
|
|
4795
|
+
var n = [...arguments].slice(2), r = this[I];
|
|
4890
4796
|
switch (arguments.length) {
|
|
4891
4797
|
case 0: return [];
|
|
4892
4798
|
case 1: return r.spliceWithArray(e);
|
|
@@ -4895,20 +4801,20 @@ var Ci = function() {
|
|
|
4895
4801
|
return r.spliceWithArray(e, t, n);
|
|
4896
4802
|
},
|
|
4897
4803
|
spliceWithArray: function(e, t, n) {
|
|
4898
|
-
return this[
|
|
4804
|
+
return this[I].spliceWithArray(e, t, n);
|
|
4899
4805
|
},
|
|
4900
4806
|
push: function() {
|
|
4901
|
-
var e = [...arguments], t = this[
|
|
4807
|
+
var e = [...arguments], t = this[I];
|
|
4902
4808
|
return t.spliceWithArray(t.values.length, 0, e), t.values.length;
|
|
4903
4809
|
},
|
|
4904
4810
|
pop: function() {
|
|
4905
|
-
return this.splice(Math.max(this[
|
|
4811
|
+
return this.splice(Math.max(this[I].values.length - 1, 0), 1)[0];
|
|
4906
4812
|
},
|
|
4907
4813
|
shift: function() {
|
|
4908
4814
|
return this.splice(0, 1)[0];
|
|
4909
4815
|
},
|
|
4910
4816
|
unshift: function() {
|
|
4911
|
-
var e = [...arguments], t = this[
|
|
4817
|
+
var e = [...arguments], t = this[I];
|
|
4912
4818
|
return t.spliceWithArray(0, 0, e), t.values.length;
|
|
4913
4819
|
},
|
|
4914
4820
|
reverse: function() {
|
|
@@ -4920,20 +4826,20 @@ var Ci = function() {
|
|
|
4920
4826
|
return t.sort.apply(t, arguments);
|
|
4921
4827
|
},
|
|
4922
4828
|
remove: function(e) {
|
|
4923
|
-
var t = this[
|
|
4829
|
+
var t = this[I], n = t.dehanceValues(t.values).indexOf(e);
|
|
4924
4830
|
return n > -1 ? (this.splice(n, 1), !0) : !1;
|
|
4925
4831
|
},
|
|
4926
4832
|
get: function(e) {
|
|
4927
|
-
var t = this[
|
|
4833
|
+
var t = this[I];
|
|
4928
4834
|
if (t) {
|
|
4929
4835
|
if (e < t.values.length) return t.atom.reportObserved(), t.dehanceValue(t.values[e]);
|
|
4930
4836
|
console.warn("[mobx.array] Attempt to read an array index (" + e + ") that is out of bounds (" + t.values.length + "). Please check length first. Out of bound indices will not be tracked by MobX");
|
|
4931
4837
|
}
|
|
4932
4838
|
},
|
|
4933
4839
|
set: function(e, t) {
|
|
4934
|
-
var n = this[
|
|
4840
|
+
var n = this[I], r = n.values;
|
|
4935
4841
|
if (e < r.length) {
|
|
4936
|
-
|
|
4842
|
+
Dn(n.atom);
|
|
4937
4843
|
var i = r[e];
|
|
4938
4844
|
if (q(n)) {
|
|
4939
4845
|
var a = J(n, {
|
|
@@ -4962,7 +4868,7 @@ var Ci = function() {
|
|
|
4962
4868
|
"toLocaleString"
|
|
4963
4869
|
].forEach(function(e) {
|
|
4964
4870
|
typeof Array.prototype[e] == "function" && (Z[e] = function() {
|
|
4965
|
-
var t = this[
|
|
4871
|
+
var t = this[I];
|
|
4966
4872
|
t.atom.reportObserved();
|
|
4967
4873
|
var n = t.dehanceValues(t.values);
|
|
4968
4874
|
return n[e].apply(n, arguments);
|
|
@@ -4978,14 +4884,14 @@ var Ci = function() {
|
|
|
4978
4884
|
"some"
|
|
4979
4885
|
].forEach(function(e) {
|
|
4980
4886
|
typeof Array.prototype[e] == "function" && (Z[e] = function(t, n) {
|
|
4981
|
-
var r = this, i = this[
|
|
4887
|
+
var r = this, i = this[I];
|
|
4982
4888
|
return i.atom.reportObserved(), i.dehanceValues(i.values)[e](function(e, i) {
|
|
4983
4889
|
return t.call(n, e, i, r);
|
|
4984
4890
|
}, n);
|
|
4985
4891
|
});
|
|
4986
4892
|
}), ["reduce", "reduceRight"].forEach(function(e) {
|
|
4987
4893
|
Z[e] = function() {
|
|
4988
|
-
var t = this, n = this[
|
|
4894
|
+
var t = this, n = this[I];
|
|
4989
4895
|
n.atom.reportObserved();
|
|
4990
4896
|
var r = arguments[0];
|
|
4991
4897
|
return arguments[0] = function(e, i, a) {
|
|
@@ -4993,24 +4899,24 @@ var Ci = function() {
|
|
|
4993
4899
|
}, n.values[e].apply(n.values, arguments);
|
|
4994
4900
|
};
|
|
4995
4901
|
});
|
|
4996
|
-
var
|
|
4997
|
-
function
|
|
4998
|
-
return
|
|
4902
|
+
var oi = P("ObservableArrayAdministration", ai);
|
|
4903
|
+
function si(e) {
|
|
4904
|
+
return Dt(e) && oi(e[I]);
|
|
4999
4905
|
}
|
|
5000
|
-
var
|
|
4906
|
+
var ci, li = {}, ui = function() {
|
|
5001
4907
|
function e(e, t, n) {
|
|
5002
|
-
if (t === void 0 && (t =
|
|
4908
|
+
if (t === void 0 && (t = on), n === void 0 && (n = "ObservableMap@" + M()), this.enhancer = t, this.name = n, this[ci] = li, this._keysAtom = Bt(this.name + ".keys()"), this[Symbol.toStringTag] = "Map", typeof Map != "function") throw Error("mobx.map requires Map polyfill for the current browser. Check babel-polyfill or core-js/es6/map.js");
|
|
5003
4909
|
this._data = /* @__PURE__ */ new Map(), this._hasMap = /* @__PURE__ */ new Map(), this.merge(e);
|
|
5004
4910
|
}
|
|
5005
4911
|
return e.prototype._has = function(e) {
|
|
5006
4912
|
return this._data.has(e);
|
|
5007
4913
|
}, e.prototype.has = function(e) {
|
|
5008
4914
|
var t = this;
|
|
5009
|
-
if (!
|
|
4915
|
+
if (!H.trackingDerivation) return this._has(e);
|
|
5010
4916
|
var n = this._hasMap.get(e);
|
|
5011
4917
|
if (!n) {
|
|
5012
|
-
var r = n = new
|
|
5013
|
-
this._hasMap.set(e, r),
|
|
4918
|
+
var r = n = new Gn(this._has(e), cn, this.name + "." + F(e) + "?", !1);
|
|
4919
|
+
this._hasMap.set(e, r), jr(r, function() {
|
|
5014
4920
|
return t._hasMap.delete(e);
|
|
5015
4921
|
});
|
|
5016
4922
|
}
|
|
@@ -5030,7 +4936,7 @@ var Ei, Di = {}, Oi = function() {
|
|
|
5030
4936
|
return n ? this._updateValue(e, t) : this._addValue(e, t), this;
|
|
5031
4937
|
}, e.prototype.delete = function(e) {
|
|
5032
4938
|
var t = this;
|
|
5033
|
-
if (
|
|
4939
|
+
if (Dn(this._keysAtom), q(this)) {
|
|
5034
4940
|
var n = J(this, {
|
|
5035
4941
|
type: "delete",
|
|
5036
4942
|
object: this,
|
|
@@ -5039,7 +4945,7 @@ var Ei, Di = {}, Oi = function() {
|
|
|
5039
4945
|
if (!n) return !1;
|
|
5040
4946
|
}
|
|
5041
4947
|
if (this._has(e)) {
|
|
5042
|
-
var r =
|
|
4948
|
+
var r = G(), i = Y(this), n = i || r ? {
|
|
5043
4949
|
type: "delete",
|
|
5044
4950
|
object: this,
|
|
5045
4951
|
oldValue: this._data.get(e).value,
|
|
@@ -5055,8 +4961,8 @@ var Ei, Di = {}, Oi = function() {
|
|
|
5055
4961
|
n && n.setNewValue(t);
|
|
5056
4962
|
}, e.prototype._updateValue = function(e, t) {
|
|
5057
4963
|
var n = this._data.get(e);
|
|
5058
|
-
if (t = n.prepareNewValue(t), t !==
|
|
5059
|
-
var r =
|
|
4964
|
+
if (t = n.prepareNewValue(t), t !== H.UNCHANGED) {
|
|
4965
|
+
var r = G(), i = Y(this), a = i || r ? {
|
|
5060
4966
|
type: "update",
|
|
5061
4967
|
object: this,
|
|
5062
4968
|
oldValue: n.value,
|
|
@@ -5067,11 +4973,11 @@ var Ei, Di = {}, Oi = function() {
|
|
|
5067
4973
|
}
|
|
5068
4974
|
}, e.prototype._addValue = function(e, t) {
|
|
5069
4975
|
var n = this;
|
|
5070
|
-
|
|
5071
|
-
var r = new
|
|
4976
|
+
Dn(this._keysAtom), K(function() {
|
|
4977
|
+
var r = new Gn(t, n.enhancer, n.name + "." + F(e), !1);
|
|
5072
4978
|
n._data.set(e, r), t = r.value, n._updateHasMapEntry(e, !0), n._keysAtom.reportChanged();
|
|
5073
4979
|
});
|
|
5074
|
-
var r =
|
|
4980
|
+
var r = G(), i = Y(this), a = i || r ? {
|
|
5075
4981
|
type: "add",
|
|
5076
4982
|
object: this,
|
|
5077
4983
|
name: e,
|
|
@@ -5086,7 +4992,7 @@ var Ei, Di = {}, Oi = function() {
|
|
|
5086
4992
|
return this._keysAtom.reportObserved(), this._data.keys();
|
|
5087
4993
|
}, e.prototype.values = function() {
|
|
5088
4994
|
var e = this, t = this.keys();
|
|
5089
|
-
return
|
|
4995
|
+
return ji({ next: function() {
|
|
5090
4996
|
var n = t.next(), r = n.done, i = n.value;
|
|
5091
4997
|
return {
|
|
5092
4998
|
done: r,
|
|
@@ -5095,20 +5001,20 @@ var Ei, Di = {}, Oi = function() {
|
|
|
5095
5001
|
} });
|
|
5096
5002
|
}, e.prototype.entries = function() {
|
|
5097
5003
|
var e = this, t = this.keys();
|
|
5098
|
-
return
|
|
5004
|
+
return ji({ next: function() {
|
|
5099
5005
|
var n = t.next(), r = n.done, i = n.value;
|
|
5100
5006
|
return {
|
|
5101
5007
|
done: r,
|
|
5102
5008
|
value: r ? void 0 : [i, e.get(i)]
|
|
5103
5009
|
};
|
|
5104
5010
|
} });
|
|
5105
|
-
}, e.prototype[
|
|
5011
|
+
}, e.prototype[ci = I, Symbol.iterator] = function() {
|
|
5106
5012
|
return this.entries();
|
|
5107
5013
|
}, e.prototype.forEach = function(e, t) {
|
|
5108
5014
|
var n, r;
|
|
5109
5015
|
try {
|
|
5110
|
-
for (var i =
|
|
5111
|
-
var o =
|
|
5016
|
+
for (var i = L(this), a = i.next(); !a.done; a = i.next()) {
|
|
5017
|
+
var o = Yt(a.value, 2), s = o[0], c = o[1];
|
|
5112
5018
|
e.call(t, c, s, this);
|
|
5113
5019
|
}
|
|
5114
5020
|
} catch (e) {
|
|
@@ -5123,27 +5029,27 @@ var Ei, Di = {}, Oi = function() {
|
|
|
5123
5029
|
}, e.prototype.merge = function(e) {
|
|
5124
5030
|
var t = this;
|
|
5125
5031
|
return Q(e) && (e = e.toJS()), K(function() {
|
|
5126
|
-
var n =
|
|
5032
|
+
var n = Un(!0);
|
|
5127
5033
|
try {
|
|
5128
|
-
|
|
5034
|
+
Ot(e) ? Ft(e).forEach(function(n) {
|
|
5129
5035
|
return t.set(n, e[n]);
|
|
5130
5036
|
}) : Array.isArray(e) ? e.forEach(function(e) {
|
|
5131
|
-
var n =
|
|
5037
|
+
var n = Yt(e, 2), r = n[0], i = n[1];
|
|
5132
5038
|
return t.set(r, i);
|
|
5133
|
-
}) :
|
|
5039
|
+
}) : Nt(e) ? (e.constructor !== Map && N("Cannot initialize from classes that inherit from Map: " + e.constructor.name), e.forEach(function(e, n) {
|
|
5134
5040
|
return t.set(n, e);
|
|
5135
|
-
})) : e != null &&
|
|
5041
|
+
})) : e != null && N("Cannot initialize map from " + e);
|
|
5136
5042
|
} finally {
|
|
5137
|
-
|
|
5043
|
+
Wn(n);
|
|
5138
5044
|
}
|
|
5139
5045
|
}), this;
|
|
5140
5046
|
}, e.prototype.clear = function() {
|
|
5141
5047
|
var e = this;
|
|
5142
5048
|
K(function() {
|
|
5143
|
-
|
|
5049
|
+
jn(function() {
|
|
5144
5050
|
var t, n;
|
|
5145
5051
|
try {
|
|
5146
|
-
for (var r =
|
|
5052
|
+
for (var r = L(e.keys()), i = r.next(); !i.done; i = r.next()) {
|
|
5147
5053
|
var a = i.value;
|
|
5148
5054
|
e.delete(a);
|
|
5149
5055
|
}
|
|
@@ -5161,9 +5067,9 @@ var Ei, Di = {}, Oi = function() {
|
|
|
5161
5067
|
}, e.prototype.replace = function(e) {
|
|
5162
5068
|
var t = this;
|
|
5163
5069
|
return K(function() {
|
|
5164
|
-
var n, r, i, a, o =
|
|
5070
|
+
var n, r, i, a, o = kt(e), s = /* @__PURE__ */ new Map(), c = !1;
|
|
5165
5071
|
try {
|
|
5166
|
-
for (var l =
|
|
5072
|
+
for (var l = L(t._data.keys()), u = l.next(); !u.done; u = l.next()) {
|
|
5167
5073
|
var d = u.value;
|
|
5168
5074
|
if (!o.has(d)) if (t.delete(d)) c = !0;
|
|
5169
5075
|
else {
|
|
@@ -5181,8 +5087,8 @@ var Ei, Di = {}, Oi = function() {
|
|
|
5181
5087
|
}
|
|
5182
5088
|
}
|
|
5183
5089
|
try {
|
|
5184
|
-
for (var p =
|
|
5185
|
-
var h =
|
|
5090
|
+
for (var p = L(o.entries()), m = p.next(); !m.done; m = p.next()) {
|
|
5091
|
+
var h = Yt(m.value, 2), d = h[0], f = h[1], g = t._data.has(d);
|
|
5186
5092
|
if (t.set(d, f), t._data.has(d)) {
|
|
5187
5093
|
var _ = t._data.get(d);
|
|
5188
5094
|
s.set(d, _), g || (c = !0);
|
|
@@ -5216,9 +5122,9 @@ var Ei, Di = {}, Oi = function() {
|
|
|
5216
5122
|
}), e.prototype.toPOJO = function() {
|
|
5217
5123
|
var e, t, n = {};
|
|
5218
5124
|
try {
|
|
5219
|
-
for (var r =
|
|
5220
|
-
var a =
|
|
5221
|
-
n[typeof o == "symbol" ? o :
|
|
5125
|
+
for (var r = L(this), i = r.next(); !i.done; i = r.next()) {
|
|
5126
|
+
var a = Yt(i.value, 2), o = a[0], s = a[1];
|
|
5127
|
+
n[typeof o == "symbol" ? o : F(o)] = s;
|
|
5222
5128
|
}
|
|
5223
5129
|
} catch (t) {
|
|
5224
5130
|
e = { error: t };
|
|
@@ -5237,16 +5143,16 @@ var Ei, Di = {}, Oi = function() {
|
|
|
5237
5143
|
}, e.prototype.toString = function() {
|
|
5238
5144
|
var e = this;
|
|
5239
5145
|
return this.name + "[{ " + Array.from(this.keys()).map(function(t) {
|
|
5240
|
-
return
|
|
5146
|
+
return F(t) + ": " + ("" + e.get(t));
|
|
5241
5147
|
}).join(", ") + " }]";
|
|
5242
5148
|
}, e.prototype.observe = function(e, t) {
|
|
5243
|
-
return
|
|
5149
|
+
return ti(this, e);
|
|
5244
5150
|
}, e.prototype.intercept = function(e) {
|
|
5245
|
-
return
|
|
5151
|
+
return ei(this, e);
|
|
5246
5152
|
}, e;
|
|
5247
|
-
}(), Q =
|
|
5153
|
+
}(), Q = P("ObservableMap", ui), di, fi = {}, pi = function() {
|
|
5248
5154
|
function e(e, t, n) {
|
|
5249
|
-
if (t === void 0 && (t =
|
|
5155
|
+
if (t === void 0 && (t = on), n === void 0 && (n = "ObservableSet@" + M()), this.name = n, this[di] = fi, this._data = /* @__PURE__ */ new Set(), this._atom = Bt(this.name), this[Symbol.toStringTag] = "Set", typeof Set != "function") throw Error("mobx.set requires Set polyfill for the current browser. Check babel-polyfill or core-js/es6/set.js");
|
|
5250
5156
|
this.enhancer = function(e, r) {
|
|
5251
5157
|
return t(e, r, n);
|
|
5252
5158
|
}, e && this.replace(e);
|
|
@@ -5256,10 +5162,10 @@ var Ei, Di = {}, Oi = function() {
|
|
|
5256
5162
|
}, e.prototype.clear = function() {
|
|
5257
5163
|
var e = this;
|
|
5258
5164
|
K(function() {
|
|
5259
|
-
|
|
5165
|
+
jn(function() {
|
|
5260
5166
|
var t, n;
|
|
5261
5167
|
try {
|
|
5262
|
-
for (var r =
|
|
5168
|
+
for (var r = L(e._data.values()), i = r.next(); !i.done; i = r.next()) {
|
|
5263
5169
|
var a = i.value;
|
|
5264
5170
|
e.delete(a);
|
|
5265
5171
|
}
|
|
@@ -5277,7 +5183,7 @@ var Ei, Di = {}, Oi = function() {
|
|
|
5277
5183
|
}, e.prototype.forEach = function(e, t) {
|
|
5278
5184
|
var n, r;
|
|
5279
5185
|
try {
|
|
5280
|
-
for (var i =
|
|
5186
|
+
for (var i = L(this), a = i.next(); !a.done; a = i.next()) {
|
|
5281
5187
|
var o = a.value;
|
|
5282
5188
|
e.call(t, o, o, this);
|
|
5283
5189
|
}
|
|
@@ -5298,7 +5204,7 @@ var Ei, Di = {}, Oi = function() {
|
|
|
5298
5204
|
configurable: !0
|
|
5299
5205
|
}), e.prototype.add = function(e) {
|
|
5300
5206
|
var t = this;
|
|
5301
|
-
if (
|
|
5207
|
+
if (Dn(this._atom), q(this)) {
|
|
5302
5208
|
var n = J(this, {
|
|
5303
5209
|
type: "add",
|
|
5304
5210
|
object: this,
|
|
@@ -5310,7 +5216,7 @@ var Ei, Di = {}, Oi = function() {
|
|
|
5310
5216
|
K(function() {
|
|
5311
5217
|
t._data.add(t.enhancer(e, void 0)), t._atom.reportChanged();
|
|
5312
5218
|
});
|
|
5313
|
-
var r =
|
|
5219
|
+
var r = G(), i = Y(this), n = i || r ? {
|
|
5314
5220
|
type: "add",
|
|
5315
5221
|
object: this,
|
|
5316
5222
|
newValue: e
|
|
@@ -5329,7 +5235,7 @@ var Ei, Di = {}, Oi = function() {
|
|
|
5329
5235
|
if (!n) return !1;
|
|
5330
5236
|
}
|
|
5331
5237
|
if (this.has(e)) {
|
|
5332
|
-
var r =
|
|
5238
|
+
var r = G(), i = Y(this), n = i || r ? {
|
|
5333
5239
|
type: "delete",
|
|
5334
5240
|
object: this,
|
|
5335
5241
|
oldValue: e
|
|
@@ -5343,7 +5249,7 @@ var Ei, Di = {}, Oi = function() {
|
|
|
5343
5249
|
return this._atom.reportObserved(), this._data.has(this.dehanceValue(e));
|
|
5344
5250
|
}, e.prototype.entries = function() {
|
|
5345
5251
|
var e = 0, t = Array.from(this.keys()), n = Array.from(this.values());
|
|
5346
|
-
return
|
|
5252
|
+
return ji({ next: function() {
|
|
5347
5253
|
var r = e;
|
|
5348
5254
|
return e += 1, r < n.length ? {
|
|
5349
5255
|
value: [t[r], n[r]],
|
|
@@ -5355,7 +5261,7 @@ var Ei, Di = {}, Oi = function() {
|
|
|
5355
5261
|
}, e.prototype.values = function() {
|
|
5356
5262
|
this._atom.reportObserved();
|
|
5357
5263
|
var e = this, t = 0, n = Array.from(this._data.values());
|
|
5358
|
-
return
|
|
5264
|
+
return ji({ next: function() {
|
|
5359
5265
|
return t < n.length ? {
|
|
5360
5266
|
value: e.dehanceValue(n[t++]),
|
|
5361
5267
|
done: !1
|
|
@@ -5364,35 +5270,35 @@ var Ei, Di = {}, Oi = function() {
|
|
|
5364
5270
|
}, e.prototype.replace = function(e) {
|
|
5365
5271
|
var t = this;
|
|
5366
5272
|
return $(e) && (e = e.toJS()), K(function() {
|
|
5367
|
-
var n =
|
|
5273
|
+
var n = Un(!0);
|
|
5368
5274
|
try {
|
|
5369
|
-
Array.isArray(e) ||
|
|
5275
|
+
Array.isArray(e) || Pt(e) ? (t.clear(), e.forEach(function(e) {
|
|
5370
5276
|
return t.add(e);
|
|
5371
|
-
})) : e != null &&
|
|
5277
|
+
})) : e != null && N("Cannot initialize set from " + e);
|
|
5372
5278
|
} finally {
|
|
5373
|
-
|
|
5279
|
+
Wn(n);
|
|
5374
5280
|
}
|
|
5375
5281
|
}), this;
|
|
5376
5282
|
}, e.prototype.observe = function(e, t) {
|
|
5377
|
-
return
|
|
5283
|
+
return ti(this, e);
|
|
5378
5284
|
}, e.prototype.intercept = function(e) {
|
|
5379
|
-
return
|
|
5285
|
+
return ei(this, e);
|
|
5380
5286
|
}, e.prototype.toJS = function() {
|
|
5381
5287
|
return new Set(this);
|
|
5382
5288
|
}, e.prototype.toString = function() {
|
|
5383
5289
|
return this.name + "[ " + Array.from(this).join(", ") + " ]";
|
|
5384
|
-
}, e.prototype[
|
|
5290
|
+
}, e.prototype[di = I, Symbol.iterator] = function() {
|
|
5385
5291
|
return this.values();
|
|
5386
5292
|
}, e;
|
|
5387
|
-
}(), $ =
|
|
5293
|
+
}(), $ = P("ObservableSet", pi), mi = function() {
|
|
5388
5294
|
function e(e, t, n, r) {
|
|
5389
|
-
t === void 0 && (t = /* @__PURE__ */ new Map()), this.target = e, this.values = t, this.name = n, this.defaultEnhancer = r, this.keysAtom = new
|
|
5295
|
+
t === void 0 && (t = /* @__PURE__ */ new Map()), this.target = e, this.values = t, this.name = n, this.defaultEnhancer = r, this.keysAtom = new Rt(n + ".keys");
|
|
5390
5296
|
}
|
|
5391
5297
|
return e.prototype.read = function(e) {
|
|
5392
5298
|
return this.values.get(e).get();
|
|
5393
5299
|
}, e.prototype.write = function(e, t) {
|
|
5394
5300
|
var n = this.target, r = this.values.get(e);
|
|
5395
|
-
if (r instanceof
|
|
5301
|
+
if (r instanceof qn) {
|
|
5396
5302
|
r.set(t);
|
|
5397
5303
|
return;
|
|
5398
5304
|
}
|
|
@@ -5406,8 +5312,8 @@ var Ei, Di = {}, Oi = function() {
|
|
|
5406
5312
|
if (!i) return;
|
|
5407
5313
|
t = i.newValue;
|
|
5408
5314
|
}
|
|
5409
|
-
if (t = r.prepareNewValue(t), t !==
|
|
5410
|
-
var a = Y(this), o =
|
|
5315
|
+
if (t = r.prepareNewValue(t), t !== H.UNCHANGED) {
|
|
5316
|
+
var a = Y(this), o = G(), i = a || o ? {
|
|
5411
5317
|
type: "update",
|
|
5412
5318
|
object: this.proxy || n,
|
|
5413
5319
|
oldValue: r.value,
|
|
@@ -5418,7 +5324,7 @@ var Ei, Di = {}, Oi = function() {
|
|
|
5418
5324
|
}
|
|
5419
5325
|
}, e.prototype.has = function(e) {
|
|
5420
5326
|
var t = this.pendingKeys || (this.pendingKeys = /* @__PURE__ */ new Map()), n = t.get(e);
|
|
5421
|
-
return n ? n.get() : (n = new
|
|
5327
|
+
return n ? n.get() : (n = new Gn(!!this.values.get(e), cn, this.name + "." + F(e) + "?", !1), t.set(e, n), n.get());
|
|
5422
5328
|
}, e.prototype.addObservableProp = function(e, t, n) {
|
|
5423
5329
|
n === void 0 && (n = this.defaultEnhancer);
|
|
5424
5330
|
var r = this.target;
|
|
@@ -5432,11 +5338,11 @@ var Ei, Di = {}, Oi = function() {
|
|
|
5432
5338
|
if (!i) return;
|
|
5433
5339
|
t = i.newValue;
|
|
5434
5340
|
}
|
|
5435
|
-
var a = new
|
|
5436
|
-
this.values.set(e, a), t = a.value, Object.defineProperty(r, e,
|
|
5341
|
+
var a = new Gn(t, n, this.name + "." + F(e), !1);
|
|
5342
|
+
this.values.set(e, a), t = a.value, Object.defineProperty(r, e, vi(e)), this.notifyPropertyAddition(e, t);
|
|
5437
5343
|
}, e.prototype.addComputedProp = function(e, t, n) {
|
|
5438
5344
|
var r = this.target;
|
|
5439
|
-
n.name = n.name || this.name + "." +
|
|
5345
|
+
n.name = n.name || this.name + "." + F(t), this.values.set(t, new qn(n)), (e === r || Mt(e, t)) && Object.defineProperty(e, t, bi(t));
|
|
5440
5346
|
}, e.prototype.remove = function(e) {
|
|
5441
5347
|
if (this.values.has(e)) {
|
|
5442
5348
|
var t = this.target;
|
|
@@ -5449,8 +5355,8 @@ var Ei, Di = {}, Oi = function() {
|
|
|
5449
5355
|
if (!n) return;
|
|
5450
5356
|
}
|
|
5451
5357
|
try {
|
|
5452
|
-
|
|
5453
|
-
var r = Y(this), i =
|
|
5358
|
+
U();
|
|
5359
|
+
var r = Y(this), i = G(), a = this.values.get(e), o = a && a.get();
|
|
5454
5360
|
if (a && a.set(void 0), this.keysAtom.reportChanged(), this.values.delete(e), this.pendingKeys) {
|
|
5455
5361
|
var s = this.pendingKeys.get(e);
|
|
5456
5362
|
s && s.set(!1);
|
|
@@ -5464,17 +5370,17 @@ var Ei, Di = {}, Oi = function() {
|
|
|
5464
5370
|
} : null;
|
|
5465
5371
|
r && X(this, n);
|
|
5466
5372
|
} finally {
|
|
5467
|
-
|
|
5373
|
+
W();
|
|
5468
5374
|
}
|
|
5469
5375
|
}
|
|
5470
5376
|
}, e.prototype.illegalAccess = function(e, t) {
|
|
5471
5377
|
console.warn("Property '" + t + "' of '" + e + "' was accessed through the prototype chain. Use 'decorate' instead to declare the prop or access it statically through it's owner");
|
|
5472
5378
|
}, e.prototype.observe = function(e, t) {
|
|
5473
|
-
return
|
|
5379
|
+
return ti(this, e);
|
|
5474
5380
|
}, e.prototype.intercept = function(e) {
|
|
5475
|
-
return
|
|
5381
|
+
return ei(this, e);
|
|
5476
5382
|
}, e.prototype.notifyPropertyAddition = function(e, t) {
|
|
5477
|
-
var n = Y(this), r =
|
|
5383
|
+
var n = Y(this), r = G(), i = n || r ? {
|
|
5478
5384
|
type: "add",
|
|
5479
5385
|
object: this.proxy || this.target,
|
|
5480
5386
|
name: e,
|
|
@@ -5490,9 +5396,9 @@ var Ei, Di = {}, Oi = function() {
|
|
|
5490
5396
|
this.keysAtom.reportObserved();
|
|
5491
5397
|
var n = [];
|
|
5492
5398
|
try {
|
|
5493
|
-
for (var r =
|
|
5494
|
-
var a =
|
|
5495
|
-
a[1] instanceof
|
|
5399
|
+
for (var r = L(this.values), i = r.next(); !i.done; i = r.next()) {
|
|
5400
|
+
var a = Yt(i.value, 2), o = a[0];
|
|
5401
|
+
a[1] instanceof Gn && n.push(o);
|
|
5496
5402
|
}
|
|
5497
5403
|
} catch (t) {
|
|
5498
5404
|
e = { error: t };
|
|
@@ -5506,84 +5412,84 @@ var Ei, Di = {}, Oi = function() {
|
|
|
5506
5412
|
return n;
|
|
5507
5413
|
}, e;
|
|
5508
5414
|
}();
|
|
5509
|
-
function
|
|
5510
|
-
if (t === void 0 && (t = ""), n === void 0 && (n =
|
|
5511
|
-
|
|
5512
|
-
var r = new
|
|
5513
|
-
return
|
|
5514
|
-
}
|
|
5515
|
-
var
|
|
5516
|
-
function
|
|
5517
|
-
return
|
|
5415
|
+
function hi(e, t, n) {
|
|
5416
|
+
if (t === void 0 && (t = ""), n === void 0 && (n = on), Object.prototype.hasOwnProperty.call(e, I)) return e[I];
|
|
5417
|
+
Ot(e) || (t = (e.constructor.name || "ObservableObject") + "@" + M()), t || (t = "ObservableObject@" + M());
|
|
5418
|
+
var r = new mi(e, /* @__PURE__ */ new Map(), F(t), n);
|
|
5419
|
+
return At(e, I, r), r;
|
|
5420
|
+
}
|
|
5421
|
+
var gi = Object.create(null), _i = Object.create(null);
|
|
5422
|
+
function vi(e) {
|
|
5423
|
+
return gi[e] || (gi[e] = {
|
|
5518
5424
|
configurable: !0,
|
|
5519
5425
|
enumerable: !0,
|
|
5520
5426
|
get: function() {
|
|
5521
|
-
return this[
|
|
5427
|
+
return this[I].read(e);
|
|
5522
5428
|
},
|
|
5523
5429
|
set: function(t) {
|
|
5524
|
-
this[
|
|
5430
|
+
this[I].write(e, t);
|
|
5525
5431
|
}
|
|
5526
5432
|
});
|
|
5527
5433
|
}
|
|
5528
|
-
function
|
|
5529
|
-
return e[
|
|
5434
|
+
function yi(e) {
|
|
5435
|
+
return e[I] || (nn(e), e[I]);
|
|
5530
5436
|
}
|
|
5531
|
-
function
|
|
5532
|
-
return
|
|
5533
|
-
configurable:
|
|
5437
|
+
function bi(e) {
|
|
5438
|
+
return _i[e] || (_i[e] = {
|
|
5439
|
+
configurable: H.computedConfigurable,
|
|
5534
5440
|
enumerable: !1,
|
|
5535
5441
|
get: function() {
|
|
5536
|
-
return
|
|
5442
|
+
return yi(this).read(e);
|
|
5537
5443
|
},
|
|
5538
5444
|
set: function(t) {
|
|
5539
|
-
|
|
5445
|
+
yi(this).write(e, t);
|
|
5540
5446
|
}
|
|
5541
5447
|
});
|
|
5542
5448
|
}
|
|
5543
|
-
var
|
|
5544
|
-
function
|
|
5545
|
-
return
|
|
5449
|
+
var xi = P("ObservableObjectAdministration", mi);
|
|
5450
|
+
function Si(e) {
|
|
5451
|
+
return Dt(e) ? (nn(e), xi(e[I])) : !1;
|
|
5546
5452
|
}
|
|
5547
|
-
function
|
|
5453
|
+
function Ci(e, t) {
|
|
5548
5454
|
if (typeof e == "object" && e) {
|
|
5549
|
-
if (
|
|
5550
|
-
if ($(e)) return e[
|
|
5455
|
+
if (si(e)) return t !== void 0 && N(!1), e[I].atom;
|
|
5456
|
+
if ($(e)) return e[I];
|
|
5551
5457
|
if (Q(e)) {
|
|
5552
5458
|
var n = e;
|
|
5553
5459
|
if (t === void 0) return n._keysAtom;
|
|
5554
5460
|
var r = n._data.get(t) || n._hasMap.get(t);
|
|
5555
|
-
return r ||
|
|
5461
|
+
return r || N(!1), r;
|
|
5556
5462
|
}
|
|
5557
|
-
if (
|
|
5558
|
-
if (!t) return
|
|
5559
|
-
var r = e[
|
|
5560
|
-
return r ||
|
|
5463
|
+
if (nn(e), t && !e[I] && e[t], Si(e)) {
|
|
5464
|
+
if (!t) return N(!1);
|
|
5465
|
+
var r = e[I].values.get(t);
|
|
5466
|
+
return r || N(!1), r;
|
|
5561
5467
|
}
|
|
5562
|
-
if (
|
|
5563
|
-
} else if (typeof e == "function" &&
|
|
5564
|
-
return
|
|
5468
|
+
if (zt(e) || Jn(e) || hr(e)) return e;
|
|
5469
|
+
} else if (typeof e == "function" && hr(e[I])) return e[I];
|
|
5470
|
+
return N(!1);
|
|
5565
5471
|
}
|
|
5566
|
-
function
|
|
5567
|
-
if (e ||
|
|
5568
|
-
if (
|
|
5569
|
-
if (
|
|
5570
|
-
|
|
5472
|
+
function wi(e, t) {
|
|
5473
|
+
if (e || N("Expecting some object"), t !== void 0) return wi(Ci(e, t));
|
|
5474
|
+
if (zt(e) || Jn(e) || hr(e) || Q(e) || $(e)) return e;
|
|
5475
|
+
if (nn(e), e[I]) return e[I];
|
|
5476
|
+
N(!1);
|
|
5571
5477
|
}
|
|
5572
|
-
function
|
|
5573
|
-
return (t === void 0 ?
|
|
5478
|
+
function Ti(e, t) {
|
|
5479
|
+
return (t === void 0 ? Si(e) || Q(e) || $(e) ? wi(e) : Ci(e) : Ci(e, t)).name;
|
|
5574
5480
|
}
|
|
5575
|
-
var
|
|
5576
|
-
function
|
|
5577
|
-
return n === void 0 && (n = -1),
|
|
5481
|
+
var Ei = Object.prototype.toString;
|
|
5482
|
+
function Di(e, t, n) {
|
|
5483
|
+
return n === void 0 && (n = -1), Oi(e, t, n);
|
|
5578
5484
|
}
|
|
5579
|
-
function
|
|
5485
|
+
function Oi(e, t, n, r, i) {
|
|
5580
5486
|
if (e === t) return e !== 0 || 1 / e == 1 / t;
|
|
5581
5487
|
if (e == null || t == null) return !1;
|
|
5582
5488
|
if (e !== e) return t !== t;
|
|
5583
5489
|
var a = typeof e;
|
|
5584
5490
|
if (a !== "function" && a !== "object" && typeof t != "object") return !1;
|
|
5585
|
-
var o =
|
|
5586
|
-
if (o !==
|
|
5491
|
+
var o = Ei.call(e);
|
|
5492
|
+
if (o !== Ei.call(t)) return !1;
|
|
5587
5493
|
switch (o) {
|
|
5588
5494
|
case "[object RegExp]":
|
|
5589
5495
|
case "[object String]": return "" + e == "" + t;
|
|
@@ -5596,7 +5502,7 @@ function Ki(e, t, n, r, i) {
|
|
|
5596
5502
|
n >= 0 && n++;
|
|
5597
5503
|
break;
|
|
5598
5504
|
}
|
|
5599
|
-
e =
|
|
5505
|
+
e = ki(e), t = ki(t);
|
|
5600
5506
|
var s = o === "[object Array]";
|
|
5601
5507
|
if (!s) {
|
|
5602
5508
|
if (typeof e != "object" || typeof t != "object") return !1;
|
|
@@ -5608,24 +5514,24 @@ function Ki(e, t, n, r, i) {
|
|
|
5608
5514
|
for (var u = r.length; u--;) if (r[u] === e) return i[u] === t;
|
|
5609
5515
|
if (r.push(e), i.push(t), s) {
|
|
5610
5516
|
if (u = e.length, u !== t.length) return !1;
|
|
5611
|
-
for (; u--;) if (!
|
|
5517
|
+
for (; u--;) if (!Oi(e[u], t[u], n - 1, r, i)) return !1;
|
|
5612
5518
|
} else {
|
|
5613
5519
|
var d = Object.keys(e), f = void 0;
|
|
5614
5520
|
if (u = d.length, Object.keys(t).length !== u) return !1;
|
|
5615
|
-
for (; u--;) if (f = d[u], !(
|
|
5521
|
+
for (; u--;) if (f = d[u], !(Ai(t, f) && Oi(e[f], t[f], n - 1, r, i))) return !1;
|
|
5616
5522
|
}
|
|
5617
5523
|
return r.pop(), i.pop(), !0;
|
|
5618
5524
|
}
|
|
5619
|
-
function
|
|
5620
|
-
return
|
|
5525
|
+
function ki(e) {
|
|
5526
|
+
return si(e) ? e.slice() : Nt(e) || Q(e) || Pt(e) || $(e) ? Array.from(e.entries()) : e;
|
|
5621
5527
|
}
|
|
5622
|
-
function
|
|
5528
|
+
function Ai(e, t) {
|
|
5623
5529
|
return Object.prototype.hasOwnProperty.call(e, t);
|
|
5624
5530
|
}
|
|
5625
|
-
function
|
|
5626
|
-
return e[Symbol.iterator] =
|
|
5531
|
+
function ji(e) {
|
|
5532
|
+
return e[Symbol.iterator] = Mi, e;
|
|
5627
5533
|
}
|
|
5628
|
-
function
|
|
5534
|
+
function Mi() {
|
|
5629
5535
|
return this;
|
|
5630
5536
|
}
|
|
5631
5537
|
if (typeof Proxy > "u" || typeof Symbol > "u") throw Error("[mobx] MobX 5+ requires Proxy and Symbol objects. If your environment doesn't support Symbol or Proxy objects, please downgrade to MobX 4. For React Native Android, consider upgrading JSCore.");
|
|
@@ -5633,20 +5539,20 @@ if (typeof Proxy > "u" || typeof Symbol > "u") throw Error("[mobx] MobX 5+ requi
|
|
|
5633
5539
|
function e() {}
|
|
5634
5540
|
e.name;
|
|
5635
5541
|
})(), typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__ == "object" && __MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({
|
|
5636
|
-
spy:
|
|
5637
|
-
extras: { getDebugName:
|
|
5638
|
-
$mobx:
|
|
5542
|
+
spy: _r,
|
|
5543
|
+
extras: { getDebugName: Ti },
|
|
5544
|
+
$mobx: I
|
|
5639
5545
|
});
|
|
5640
5546
|
//#endregion
|
|
5641
5547
|
//#region src/utils/localStorage.ts
|
|
5642
|
-
function
|
|
5548
|
+
function Ni() {
|
|
5643
5549
|
try {
|
|
5644
5550
|
return localStorage.setItem("test", "test"), localStorage.removeItem("test"), !0;
|
|
5645
5551
|
} catch {
|
|
5646
5552
|
return !1;
|
|
5647
5553
|
}
|
|
5648
5554
|
}
|
|
5649
|
-
var
|
|
5555
|
+
var Pi = Ni(), Fi = {
|
|
5650
5556
|
de: "Deutsch",
|
|
5651
5557
|
en: "English",
|
|
5652
5558
|
es: "Español",
|
|
@@ -5667,55 +5573,40 @@ var Qi = Zi(), $i = {
|
|
|
5667
5573
|
kk: "Қазақша",
|
|
5668
5574
|
pl: "Polski",
|
|
5669
5575
|
mn: "Монгол"
|
|
5670
|
-
},
|
|
5671
|
-
if (!
|
|
5672
|
-
let e = localStorage.getItem(
|
|
5673
|
-
return t && localStorage.removeItem(
|
|
5674
|
-
},
|
|
5576
|
+
}, Ii = "en", Li = "efp-locale", Ri = "language", zi = R.box(Ii), Bi = R.array([], { deep: !1 }), Vi = (e) => Oe(`${me}locales/${e}.json`), Hi = () => {
|
|
5577
|
+
if (!Pi) return null;
|
|
5578
|
+
let e = localStorage.getItem(Li), t = localStorage.getItem(Ri);
|
|
5579
|
+
return t && localStorage.removeItem(Ri), e || (t && localStorage.setItem(Li, t), t);
|
|
5580
|
+
}, Ui = () => {
|
|
5675
5581
|
var e;
|
|
5676
|
-
let t = window.__data, n = ((e = navigator.languages) == null ? void 0 : e[0]) || navigator.language, r = Object.keys(
|
|
5677
|
-
return (
|
|
5678
|
-
},
|
|
5679
|
-
|
|
5582
|
+
let t = window.__data, n = ((e = navigator.languages) == null ? void 0 : e[0]) || navigator.language, r = Object.keys(Fi).find((e) => n.startsWith(e));
|
|
5583
|
+
return (Hi() || (t == null ? void 0 : t.locale) || r || Ii).toLowerCase();
|
|
5584
|
+
}, Wi = () => zi.get(), Gi = () => Bi, Ki = (e) => Bi.some((t) => t.id === e), qi = (e, t) => (zi.get(), yt.t(e, t)), Ji = async () => {
|
|
5585
|
+
Bi.replace(Object.entries(Fi).sort(([e], [t]) => e.localeCompare(t)).map(([e, t]) => ({
|
|
5680
5586
|
id: e,
|
|
5681
5587
|
name: t,
|
|
5682
5588
|
entity: { type: te }
|
|
5683
5589
|
})));
|
|
5684
|
-
let e =
|
|
5685
|
-
if (e !==
|
|
5686
|
-
t[e] = { translation: await
|
|
5590
|
+
let e = Ui(), t = {};
|
|
5591
|
+
if (e !== Ii) try {
|
|
5592
|
+
t[e] = { translation: await Vi(e) };
|
|
5687
5593
|
} catch (t) {
|
|
5688
|
-
console.error(`Unable to load "${e}" localization, falling back to "${
|
|
5594
|
+
console.error(`Unable to load "${e}" localization, falling back to "${Ii}".`, t), e = Ii;
|
|
5689
5595
|
}
|
|
5690
|
-
return
|
|
5596
|
+
return zi.set(e), yt.init({
|
|
5691
5597
|
resources: t,
|
|
5692
5598
|
lng: e,
|
|
5693
5599
|
keySeparator: !1,
|
|
5694
|
-
saveMissing: e !==
|
|
5600
|
+
saveMissing: e !== Ii,
|
|
5695
5601
|
missingKeyHandler: (e, t, n, r) => console.debug(`i18n missing key: '${e[0]}:${t}:${n}', fallback: '${r}'`)
|
|
5696
5602
|
});
|
|
5697
|
-
},
|
|
5603
|
+
}, Yi = async (e) => {
|
|
5698
5604
|
let t = e.toLowerCase();
|
|
5699
5605
|
try {
|
|
5700
|
-
t !==
|
|
5606
|
+
t !== Ii && !yt.hasResourceBundle(t, "translation") && yt.addResourceBundle(t, "translation", await Vi(t), !0, !0), await yt.changeLanguage(t), zi.set(t), Pi && localStorage.setItem(Li, t);
|
|
5701
5607
|
} catch (e) {
|
|
5702
5608
|
console.error(`Failed to switch language to "${t}":`, e);
|
|
5703
5609
|
}
|
|
5704
|
-
},
|
|
5705
|
-
//#endregion
|
|
5706
|
-
//#region src/utils/loadImage.ts
|
|
5707
|
-
function ga(e) {
|
|
5708
|
-
return new Promise((t) => {
|
|
5709
|
-
var n = new Image();
|
|
5710
|
-
n.onerror = () => t(null), n.onload = () => t(n), n.crossOrigin = "anonymous", n.src = e;
|
|
5711
|
-
});
|
|
5712
|
-
}
|
|
5713
|
-
//#endregion
|
|
5714
|
-
//#region src/utils/is-debug.ts
|
|
5715
|
-
if (typeof window < "u") {
|
|
5716
|
-
var _a, va;
|
|
5717
|
-
((va = (_a = window).efpDebugUi) == null ? _a.efpDebugUi = {} : va)[g] = { type: "boolean" };
|
|
5718
|
-
}
|
|
5719
|
-
var ya = Qi && localStorage.getItem("efp:debug") === "true";
|
|
5610
|
+
}, Xi = async () => (Pi && (localStorage.removeItem(Li), localStorage.removeItem(Ri)), Yi(Ui()));
|
|
5720
5611
|
//#endregion
|
|
5721
|
-
export {
|
|
5612
|
+
export { l as $, me as A, se as B, Pe as C, Ae as D, je as E, g as F, m as G, f as H, ae as I, b as J, ue as K, oe as L, _ as M, ee as N, ye as O, h as P, c as Q, C as R, k as S, Ne as T, te as U, ce as V, S as W, y as X, v as Y, u as Z, Cr as _, Xi as a, fe as at, K as b, Pi as c, Tr as d, p as et, Cn as f, Or as g, R as h, Ji as i, de as it, d as j, ve as k, ur as l, Lr as m, Gi as n, re as nt, Yi as o, s as ot, Nr as p, x as q, Ki as r, ie as rt, qi as s, o as st, Wi as t, ne as tt, Sr as u, _r as v, ke as w, Ve as x, qr as y, le as z };
|