@expofp/floorplan 3.42.1 → 3.43.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/{Button-CFOilpWS.js → Button-Bs_UxgiQ.js} +6 -6
- package/dist/browser/{CookieConsent-7xtFQUAC.js → CookieConsent-Dyu43_hP.js} +8 -8
- package/dist/browser/{Debug-Ccq8j5HJ.js → Debug-BsTTWQvE.js} +10 -10
- package/dist/browser/{DebugTools-dIItZaUb.js → DebugTools-aXs-5eza.js} +7 -7
- package/dist/browser/{Demo-waaMiBvy.js → Demo-B-7KGDMJ.js} +13 -13
- package/dist/browser/{Free-DdCaOZ8Q.js → Free-CNL5OIgo.js} +16 -15
- package/dist/browser/{GalleryContainer-DlucEORI.js → GalleryContainer-vKUdXOJc.js} +470 -469
- package/dist/browser/{GpsLoader-cqPoX_Zr.js → GpsLoader-CTx41t_T.js} +40 -37
- package/dist/browser/{KioskStore-BJwAcVii.js → KioskStore-DryCUldq.js} +52 -48
- package/dist/browser/{store-DKVnQzpY.js → LayerStore-KA0vMV1s.js} +21374 -31265
- package/dist/browser/{MaplibreAdapter-BZD4cOe-.js → MaplibreAdapter-VThms9qo.js} +290 -285
- package/dist/browser/{ModalContainer-BSvSFPr9.js → ModalContainer-BnQWgJFk.js} +11 -11
- package/dist/browser/{PermissionNotice-DXt-j2f7.js → PermissionNotice-C6o0LjTv.js} +7 -7
- package/dist/browser/RouteStore-dygrca38.js +1203 -0
- package/dist/browser/SetKioskMode-BlUF1qvU.js +50 -0
- package/dist/browser/{ShowKiosk-BhS74u62.js → ShowKiosk-DFoRzTZf.js} +18 -17
- package/dist/browser/UIState-DOeFZ2L0.js +2026 -0
- package/dist/browser/{ViewerMenuPanel-BYTeVxTR.js → ViewerMenuPanel-BTQx7alw.js} +25 -24
- package/dist/browser/{add-debug-secret-listener-B3Oo6_V2.js → add-debug-secret-listener-DEG-kL4W.js} +1 -1
- package/dist/browser/{adopt-global-settings-Yr-a_0F-.js → adopt-global-settings-CbCj9y4x.js} +10 -10
- package/dist/browser/{boolean-editor-BA7H18pG.js → boolean-editor-MewBldvq.js} +10 -10
- package/dist/browser/{bootIntercom-BEZV9AQ2.js → bootIntercom-Dhf8kEsO.js} +3 -3
- package/dist/browser/bundle.json +110 -71
- package/dist/browser/{camera-events-CJhSKz2q.js → camera-events-BGPhoW-g.js} +1 -1
- package/dist/browser/{classnames-D4c_D7C1.js → classnames-CjOzT3Et.js} +2 -2
- package/dist/browser/{client-DGjMk9A1.js → client-B7ipF6CH.js} +6 -6
- package/dist/browser/{components-MaSv6j2M.js → components-z1AUvMqv.js} +1245 -1228
- package/dist/browser/create-live-plan-BV3wMQvQ.js +3650 -0
- package/dist/browser/{debug-context-C2PWyEVT.js → debug-context-DHcoFmUh.js} +6 -6
- package/dist/browser/{debug-overlay-BXHh1LRW.js → debug-overlay-DyWRfHNB.js} +11 -11
- package/dist/browser/{debug-ui-CO-3GLEU.js → debug-ui--YQc14iG.js} +7 -7
- package/dist/browser/{dimming-kPNlXUew.js → dimming-B3eCxIBl.js} +277 -270
- package/dist/browser/{dist-DEm0E-fN.js → dist-CFpNRHGA.js} +6 -6
- package/dist/browser/{dist-3gOjtf_f.js → dist-DZnPa7Gt.js} +3 -3
- package/dist/browser/{dist-B3PLpTVy.js → dist-d1mv4aS_.js} +7 -7
- package/dist/browser/{efp-debug-init-DkOOpU1g.js → efp-debug-init-Fe6M60if.js} +4 -4
- package/dist/browser/{enum-editor-DPAX_cAI.js → enum-editor-Bpqhj_kX.js} +5 -5
- package/dist/browser/{es5-CpN6LQeU.js → es5-Tm811jgW.js} +2 -2
- package/dist/browser/{event-head-oYEDbvk3.js → event-head-DUUPR6gG.js} +1 -1
- package/dist/browser/{event-not-found-C7GLCJX7.js → event-not-found-payUnjNK.js} +4 -4
- package/dist/browser/event-scoped-cache-C5u7vr_A.js +22 -0
- package/dist/browser/{exports-3uPTDFG9.js → exports-DqGDS1fu.js} +1 -1
- package/dist/browser/{favicon-CQpg641Z.js → favicon-DsfOrGNO.js} +1 -1
- package/dist/browser/{fetch-retry.umd-Chmlkexp.js → fetch-retry.umd-CC5xe8w5.js} +2 -2
- package/dist/browser/{flex--99NWgQk.js → flex-CezZmi5f.js} +6 -6
- package/dist/browser/{floorplan.loader-Ci226yql.js → floorplan.loader-Dlxv8xv-.js} +658 -707
- package/dist/browser/{floorplan.ready-y0hYLknK.js → floorplan.ready-Bet-4Pmf.js} +373 -359
- package/dist/browser/freeBanner-D8r4eSMx.js +31 -0
- package/dist/browser/{fuse-BuFi3LTO.js → fuse-hqr4jkDB.js} +2 -2
- package/dist/browser/{i18n-BAQekIFF.js → i18n-CbKfwktv.js} +1821 -3872
- package/dist/browser/index.js +131 -47
- package/dist/browser/{index.module-CXN9GK4C.js → index.module-BbVqiHXM.js} +17 -17
- package/dist/browser/init-ui-BqvkD2nz.js +286 -0
- package/dist/browser/integrateKiosk-DaSOYn36.js +35 -0
- package/dist/browser/{loadImage-xbueiJmr.js → is-debug-dWXc5YUy.js} +30 -14
- package/dist/browser/{is-own-domain-DPJZoBiw.js → is-own-domain-D8anlQ_Q.js} +1 -1
- package/dist/browser/{is-webview-Bs8mxX94.js → is-webview-fqXWp538.js} +1 -1
- package/dist/browser/{jsx-runtime-BXbSNrYY.js → jsx-runtime-DO7PmxNL.js} +2 -2
- package/dist/browser/kiosk-mode-7b7iDbkP.js +33 -0
- package/dist/browser/{kiosk-record-CaWjqNGY.js → kiosk-record-UJxF1fjj.js} +1 -1
- package/dist/browser/kioskApi-CgpMBKhv.js +440 -0
- package/dist/browser/{lib-jJ4yMeEA.js → lib-Czk5Lszd.js} +3 -3
- package/dist/browser/loadImage-CFo9-YJJ.js +17 -0
- package/dist/browser/{logDeviceInfo-DSmmt_FU.js → logDeviceInfo-DJjhYuqu.js} +9 -9
- package/dist/browser/{mobx-BQA2EJH7.js → mobx-C81AIECP.js} +11 -11
- package/dist/browser/mobx.module-CWCYJWja.js +2064 -0
- package/dist/browser/{optional-boolean-editor-Y_exy4JL.js → optional-boolean-editor-B62ChR7X.js} +4 -4
- package/dist/browser/{optional-enum-editor-CKfj0OB9.js → optional-enum-editor-BBO6A0hj.js} +5 -5
- package/dist/browser/{optional-string-editor-DeavwcWv.js → optional-string-editor-7Q9UPGmg.js} +5 -5
- package/dist/browser/{particles.min-BJkirBpN.js → particles.min-BKHVPr2d.js} +2 -2
- package/dist/browser/{react-CV1gH7Zp.js → react-Cg2OORRh.js} +2 -2
- package/dist/browser/{react-dom-BEwgcqEB.js → react-dom-Ty-lfgLt.js} +3 -3
- package/dist/browser/{rolldown-runtime-BiAnyumg.js → rolldown-runtime-CWnoF_DQ.js} +1 -1
- package/dist/browser/scene-C5l_d13f.js +108 -0
- package/dist/browser/{scheduler-CcNpP8xn.js → scheduler-BU0IIfqL.js} +2 -2
- package/dist/browser/{select-B13QBWfy.js → select-BzHMeDb4.js} +11 -11
- package/dist/browser/{settings-DJUw3GyU.js → settings-BtJgR42s.js} +2 -2
- package/dist/browser/{settings-item-VzMuDMX6.js → settings-item-DdFFETI3.js} +7 -7
- package/dist/browser/store-BTr1tlEV.js +58 -0
- package/dist/browser/{string-editor-B6mio7nq.js → string-editor-BEEQ6kcc.js} +5 -5
- package/dist/browser/{text-field-7dZmg829.js → text-field-DoMqPokj.js} +6 -6
- package/dist/browser/{theme-BotlxmwW.js → theme-BvRXg3tc.js} +9 -9
- package/dist/browser/{ui-Dn5rbA7O.js → ui-CjqBOwnM.js} +9 -9
- package/dist/browser/{useRenderTarget-Rz0x5k4l.js → useRenderTarget-CaMfMKd3.js} +5 -5
- package/dist/browser/{viewport-DOIlU3cR.js → viewport-D1DrneSN.js} +4 -3
- package/dist/browser/wayfinding-BFQ3ZTEN.js +2322 -0
- package/dist/esm/components/GalleryContainer.js +1 -1
- package/dist/esm/components/Kiosk/integrateKiosk.js +1 -1
- package/dist/esm/components/LogoOverlay.js +1 -1
- package/dist/esm/components/Map/Map.js +1 -1
- package/dist/esm/components/Map/MapCamera.js +1 -1
- package/dist/esm/components/Map/booth-by-xy.d.ts +8 -10
- package/dist/esm/components/Map/booth-by-xy.js +1 -1
- package/dist/esm/components/Map/drawing/config/BoothShape.d.ts +0 -1
- package/dist/esm/components/Map/drawing/config/BoothShape.js +1 -1
- package/dist/esm/components/Map/drawing/config/config-booth-bg.js +1 -1
- package/dist/esm/components/Map/drawing/config/config-booth-bookmark.js +1 -1
- package/dist/esm/components/Map/drawing/config/config-booth-border.js +1 -1
- package/dist/esm/components/Map/drawing/config/config-booth-labels-special.js +2 -2
- package/dist/esm/components/Map/drawing/config/config-booth-labels.js +1 -1
- package/dist/esm/components/Map/drawing/config/config-booths.js +1 -1
- package/dist/esm/components/Map/drawing/config/config-markers.js +1 -1
- package/dist/esm/components/Map/drawing/config/layer-images.d.ts +7 -2
- package/dist/esm/components/Map/drawing/config/layer-images.js +1 -1
- package/dist/esm/components/Map/traffic/useManageTraffic.js +1 -1
- package/dist/esm/components/Maplibre/MaplibreAdapter.js +1 -1
- package/dist/esm/components/Maplibre/useCameraReactions.js +1 -1
- package/dist/esm/components/Maplibre/utils/geo-config.js +1 -1
- package/dist/esm/components/Maplibre/utils/map-helpers.js +1 -1
- package/dist/esm/components/Menu.js +1 -1
- package/dist/esm/data/fpGeo.d.ts +6 -1
- package/dist/esm/data/fpGeo.js +1 -1
- package/dist/esm/data/index.d.ts +9 -4
- package/dist/esm/data/index.js +1 -1
- package/dist/esm/data/svg.d.ts +15 -13
- package/dist/esm/data/svg.js +1 -1
- package/dist/esm/floorplan.loader.d.ts +6 -1
- package/dist/esm/floorplan.loader.js +1 -1
- package/dist/esm/floorplan.ready.d.ts +8 -2
- package/dist/esm/floorplan.ready.js +1 -1
- package/dist/esm/load.js +11 -11
- package/dist/esm/plan-lifecycle.d.ts +65 -0
- package/dist/esm/plan-lifecycle.js +1 -0
- package/dist/esm/services/URLFilterManager.js +1 -1
- package/dist/esm/services/url-dispatch.js +1 -1
- package/dist/esm/services/url-sync.d.ts +5 -1
- package/dist/esm/services/url-sync.js +1 -1
- package/dist/esm/store/MaplibreStore.js +1 -1
- package/dist/esm/store/OverlayStore.d.ts +15 -2
- package/dist/esm/store/OverlayStore.js +1 -1
- package/dist/esm/store/RouteStore.js +1 -1
- package/dist/esm/store/UIState.js +1 -1
- package/dist/esm/store/create-live-plan.d.ts +13 -0
- package/dist/esm/store/create-live-plan.js +1 -0
- package/dist/esm/store/index.d.ts +2 -13
- package/dist/esm/store/index.js +1 -1
- package/dist/esm/store/init/init-booths.js +1 -1
- package/dist/esm/store/init/init-events.js +1 -1
- package/dist/esm/store/init/init-exhibitors.js +1 -1
- package/dist/esm/store/init/init-layers.js +1 -1
- package/dist/esm/store/init/init-speakers.js +1 -1
- package/dist/esm/store/init/init-ui.d.ts +4 -6
- package/dist/esm/store/init/init-ui.js +1 -1
- package/dist/esm/store/live-store.d.ts +19 -0
- package/dist/esm/store/live-store.js +1 -0
- package/dist/esm/store/search-buttons/SearchButtonsStore.js +1 -1
- package/dist/esm/tools/event-scoped-cache.d.ts +13 -0
- package/dist/esm/tools/event-scoped-cache.js +1 -0
- package/dist/esm/tools/gtag.d.ts +15 -1
- package/dist/esm/tools/gtag.js +1 -1
- package/dist/esm/tools/reset.js +1 -1
- package/dist/esm/tools/settings.d.ts +7 -2
- package/dist/esm/tools/settings.js +1 -1
- package/dist/esm/tools/slug.js +1 -1
- package/dist/esm/tools/style-registry.d.ts +28 -0
- package/dist/esm/tools/style-registry.js +1 -0
- package/dist/esm/tools/track-event.js +1 -1
- package/dist/esm/types.d.ts +7 -1
- package/dist/esm/utils/entity-storage.js +1 -1
- package/dist/esm/utils/gps.js +1 -1
- package/dist/esm/utils/plan-reactions.d.ts +20 -0
- package/dist/esm/utils/plan-reactions.js +1 -0
- package/dist/esm/utils/preview-exhibitor.d.ts +9 -2
- package/dist/esm/utils/preview-exhibitor.js +1 -1
- package/dist/esm/utils/swappable-proxy.d.ts +28 -0
- package/dist/esm/utils/swappable-proxy.js +1 -0
- package/dist/esm/wayfinding/createWayfinding.js +1 -1
- package/package.json +32 -10
- package/dist/browser/SetKioskMode-CCZNdKum.js +0 -48
- package/dist/browser/integrateKiosk-DjIKsfAy.js +0 -34
|
@@ -0,0 +1,2064 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/mobx@5.15.7/node_modules/mobx/lib/mobx.module.js
|
|
2
|
+
(function() {
|
|
3
|
+
try {
|
|
4
|
+
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
5
|
+
e.SENTRY_RELEASE = { id: "3.43.0" };
|
|
6
|
+
var t = new e.Error().stack;
|
|
7
|
+
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "926ef719-f4b8-4d1a-ab8d-7a06ac2517a8", e._sentryDebugIdIdentifier = "sentry-dbid-926ef719-f4b8-4d1a-ab8d-7a06ac2517a8");
|
|
8
|
+
} catch {}
|
|
9
|
+
})();
|
|
10
|
+
var e = "An invariant failed, however the error is obfuscated because this is a production build.", t = [];
|
|
11
|
+
Object.freeze(t);
|
|
12
|
+
var n = {};
|
|
13
|
+
Object.freeze(n);
|
|
14
|
+
function r() {
|
|
15
|
+
return ++I.mobxGuid;
|
|
16
|
+
}
|
|
17
|
+
function i(e) {
|
|
18
|
+
throw a(!1, e), "X";
|
|
19
|
+
}
|
|
20
|
+
function a(t, n) {
|
|
21
|
+
if (!t) throw Error("[mobx] " + (n || e));
|
|
22
|
+
}
|
|
23
|
+
function o(e) {
|
|
24
|
+
var t = !1;
|
|
25
|
+
return function() {
|
|
26
|
+
if (!t) return t = !0, e.apply(this, arguments);
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
var s = function() {};
|
|
30
|
+
function c(e) {
|
|
31
|
+
var t = [];
|
|
32
|
+
return e.forEach(function(e) {
|
|
33
|
+
t.indexOf(e) === -1 && t.push(e);
|
|
34
|
+
}), t;
|
|
35
|
+
}
|
|
36
|
+
function l(e) {
|
|
37
|
+
return typeof e == "object" && !!e;
|
|
38
|
+
}
|
|
39
|
+
function u(e) {
|
|
40
|
+
if (typeof e != "object" || !e) return !1;
|
|
41
|
+
var t = Object.getPrototypeOf(e);
|
|
42
|
+
return t === Object.prototype || t === null;
|
|
43
|
+
}
|
|
44
|
+
function d(e) {
|
|
45
|
+
if (g(e) || X(e)) return e;
|
|
46
|
+
if (Array.isArray(e)) return new Map(e);
|
|
47
|
+
if (u(e)) {
|
|
48
|
+
var t = /* @__PURE__ */ new Map();
|
|
49
|
+
for (var n in e) t.set(n, e[n]);
|
|
50
|
+
return t;
|
|
51
|
+
} else return i("Cannot convert to map from '" + e + "'");
|
|
52
|
+
}
|
|
53
|
+
function f(e, t, n) {
|
|
54
|
+
Object.defineProperty(e, t, {
|
|
55
|
+
enumerable: !1,
|
|
56
|
+
writable: !0,
|
|
57
|
+
configurable: !0,
|
|
58
|
+
value: n
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
function p(e, t, n) {
|
|
62
|
+
Object.defineProperty(e, t, {
|
|
63
|
+
enumerable: !1,
|
|
64
|
+
writable: !1,
|
|
65
|
+
configurable: !0,
|
|
66
|
+
value: n
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
function m(e, t) {
|
|
70
|
+
var n = Object.getOwnPropertyDescriptor(e, t);
|
|
71
|
+
return !n || n.configurable !== !1 && n.writable !== !1;
|
|
72
|
+
}
|
|
73
|
+
function h(e, t) {
|
|
74
|
+
var n = "isMobX" + e;
|
|
75
|
+
return t.prototype[n] = !0, function(e) {
|
|
76
|
+
return l(e) && e[n] === !0;
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
function g(e) {
|
|
80
|
+
return e instanceof Map;
|
|
81
|
+
}
|
|
82
|
+
function _(e) {
|
|
83
|
+
return e instanceof Set;
|
|
84
|
+
}
|
|
85
|
+
function ee(e) {
|
|
86
|
+
var t = /* @__PURE__ */ new Set();
|
|
87
|
+
for (var n in e) t.add(n);
|
|
88
|
+
return Object.getOwnPropertySymbols(e).forEach(function(n) {
|
|
89
|
+
Object.getOwnPropertyDescriptor(e, n).enumerable && t.add(n);
|
|
90
|
+
}), Array.from(t);
|
|
91
|
+
}
|
|
92
|
+
function v(e) {
|
|
93
|
+
return e && e.toString ? e.toString() : new String(e).toString();
|
|
94
|
+
}
|
|
95
|
+
function te(e) {
|
|
96
|
+
return e === null ? null : typeof e == "object" ? "" + e : e;
|
|
97
|
+
}
|
|
98
|
+
var ne = typeof Reflect < "u" && Reflect.ownKeys ? Reflect.ownKeys : Object.getOwnPropertySymbols ? function(e) {
|
|
99
|
+
return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e));
|
|
100
|
+
} : /* istanbul ignore next */ Object.getOwnPropertyNames, y = Symbol("mobx administration"), b = function() {
|
|
101
|
+
function e(e) {
|
|
102
|
+
e === void 0 && (e = "Atom@" + r()), this.name = e, this.isPendingUnobservation = !1, this.isBeingObserved = !1, this.observers = /* @__PURE__ */ new Set(), this.diffValue = 0, this.lastAccessedBy = 0, this.lowestObserverState = O.NOT_TRACKING;
|
|
103
|
+
}
|
|
104
|
+
return e.prototype.onBecomeObserved = function() {
|
|
105
|
+
this.onBecomeObservedListeners && this.onBecomeObservedListeners.forEach(function(e) {
|
|
106
|
+
return e();
|
|
107
|
+
});
|
|
108
|
+
}, e.prototype.onBecomeUnobserved = function() {
|
|
109
|
+
this.onBecomeUnobservedListeners && this.onBecomeUnobservedListeners.forEach(function(e) {
|
|
110
|
+
return e();
|
|
111
|
+
});
|
|
112
|
+
}, e.prototype.reportObserved = function() {
|
|
113
|
+
return dt(this);
|
|
114
|
+
}, e.prototype.reportChanged = function() {
|
|
115
|
+
L(), ft(this), R();
|
|
116
|
+
}, e.prototype.toString = function() {
|
|
117
|
+
return this.name;
|
|
118
|
+
}, e;
|
|
119
|
+
}(), re = h("Atom", b);
|
|
120
|
+
function ie(e, t, n) {
|
|
121
|
+
t === void 0 && (t = s), n === void 0 && (n = s);
|
|
122
|
+
var r = new b(e);
|
|
123
|
+
return t !== s && Lt(r, t), n !== s && Rt(r, n), r;
|
|
124
|
+
}
|
|
125
|
+
function ae(e, t) {
|
|
126
|
+
return e === t;
|
|
127
|
+
}
|
|
128
|
+
function oe(e, t) {
|
|
129
|
+
return Mn(e, t);
|
|
130
|
+
}
|
|
131
|
+
function se(e, t) {
|
|
132
|
+
return Mn(e, t, 1);
|
|
133
|
+
}
|
|
134
|
+
function ce(e, t) {
|
|
135
|
+
return Object.is(e, t);
|
|
136
|
+
}
|
|
137
|
+
var x = {
|
|
138
|
+
identity: ae,
|
|
139
|
+
structural: oe,
|
|
140
|
+
default: ce,
|
|
141
|
+
shallow: se
|
|
142
|
+
}, le = function(e, t) {
|
|
143
|
+
return le = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {
|
|
144
|
+
e.__proto__ = t;
|
|
145
|
+
} || function(e, t) {
|
|
146
|
+
for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]);
|
|
147
|
+
}, le(e, t);
|
|
148
|
+
};
|
|
149
|
+
function ue(e, t) {
|
|
150
|
+
le(e, t);
|
|
151
|
+
function n() {
|
|
152
|
+
this.constructor = e;
|
|
153
|
+
}
|
|
154
|
+
e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
|
|
155
|
+
}
|
|
156
|
+
var S = function() {
|
|
157
|
+
return S = Object.assign || function(e) {
|
|
158
|
+
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]);
|
|
159
|
+
return e;
|
|
160
|
+
}, S.apply(this, arguments);
|
|
161
|
+
};
|
|
162
|
+
function C(e) {
|
|
163
|
+
var t = typeof Symbol == "function" && e[Symbol.iterator], n = 0;
|
|
164
|
+
return t ? t.call(e) : { next: function() {
|
|
165
|
+
return e && n >= e.length && (e = void 0), {
|
|
166
|
+
value: e && e[n++],
|
|
167
|
+
done: !e
|
|
168
|
+
};
|
|
169
|
+
} };
|
|
170
|
+
}
|
|
171
|
+
function w(e, t) {
|
|
172
|
+
var n = typeof Symbol == "function" && e[Symbol.iterator];
|
|
173
|
+
if (!n) return e;
|
|
174
|
+
var r = n.call(e), i, a = [], o;
|
|
175
|
+
try {
|
|
176
|
+
for (; (t === void 0 || t-- > 0) && !(i = r.next()).done;) a.push(i.value);
|
|
177
|
+
} catch (e) {
|
|
178
|
+
o = { error: e };
|
|
179
|
+
} finally {
|
|
180
|
+
try {
|
|
181
|
+
i && !i.done && (n = r.return) && n.call(r);
|
|
182
|
+
} finally {
|
|
183
|
+
if (o) throw o.error;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
return a;
|
|
187
|
+
}
|
|
188
|
+
function de() {
|
|
189
|
+
for (var e = [], t = 0; t < arguments.length; t++) e = e.concat(w(arguments[t]));
|
|
190
|
+
return e;
|
|
191
|
+
}
|
|
192
|
+
var fe = Symbol("mobx did run lazy initializers"), pe = Symbol("mobx pending decorators"), me = {}, he = {};
|
|
193
|
+
function ge(e, t) {
|
|
194
|
+
var n = t ? me : he;
|
|
195
|
+
return n[e] || (n[e] = {
|
|
196
|
+
configurable: !0,
|
|
197
|
+
enumerable: t,
|
|
198
|
+
get: function() {
|
|
199
|
+
return T(this), this[e];
|
|
200
|
+
},
|
|
201
|
+
set: function(t) {
|
|
202
|
+
T(this), this[e] = t;
|
|
203
|
+
}
|
|
204
|
+
});
|
|
205
|
+
}
|
|
206
|
+
function T(e) {
|
|
207
|
+
var t, n;
|
|
208
|
+
if (e[fe] !== !0) {
|
|
209
|
+
var r = e[pe];
|
|
210
|
+
if (r) {
|
|
211
|
+
f(e, fe, !0);
|
|
212
|
+
var i = de(Object.getOwnPropertySymbols(r), Object.keys(r));
|
|
213
|
+
try {
|
|
214
|
+
for (var a = C(i), o = a.next(); !o.done; o = a.next()) {
|
|
215
|
+
var s = r[o.value];
|
|
216
|
+
s.propertyCreator(e, s.prop, s.descriptor, s.decoratorTarget, s.decoratorArguments);
|
|
217
|
+
}
|
|
218
|
+
} catch (e) {
|
|
219
|
+
t = { error: e };
|
|
220
|
+
} finally {
|
|
221
|
+
try {
|
|
222
|
+
o && !o.done && (n = a.return) && n.call(a);
|
|
223
|
+
} finally {
|
|
224
|
+
if (t) throw t.error;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
function _e(e, n) {
|
|
231
|
+
return function() {
|
|
232
|
+
var r, i = function(t, i, a, o) {
|
|
233
|
+
if (o === !0) return n(t, i, a, t, r), null;
|
|
234
|
+
if (!Object.prototype.hasOwnProperty.call(t, pe)) {
|
|
235
|
+
var s = t[pe];
|
|
236
|
+
f(t, pe, S({}, s));
|
|
237
|
+
}
|
|
238
|
+
return t[pe][i] = {
|
|
239
|
+
prop: i,
|
|
240
|
+
propertyCreator: n,
|
|
241
|
+
descriptor: a,
|
|
242
|
+
decoratorTarget: t,
|
|
243
|
+
decoratorArguments: r
|
|
244
|
+
}, ge(i, e);
|
|
245
|
+
};
|
|
246
|
+
return ve(arguments) ? (r = t, i.apply(null, arguments)) : (r = Array.prototype.slice.call(arguments), i);
|
|
247
|
+
};
|
|
248
|
+
}
|
|
249
|
+
function ve(e) {
|
|
250
|
+
return (e.length === 2 || e.length === 3) && (typeof e[1] == "string" || typeof e[1] == "symbol") || e.length === 4 && e[3] === !0;
|
|
251
|
+
}
|
|
252
|
+
function ye(e, t, n) {
|
|
253
|
+
return Jt(e) ? e : Array.isArray(e) ? D.array(e, { name: n }) : u(e) ? D.object(e, void 0, { name: n }) : g(e) ? D.map(e, { name: n }) : _(e) ? D.set(e, { name: n }) : e;
|
|
254
|
+
}
|
|
255
|
+
function be(e, t, n) {
|
|
256
|
+
return e == null || Q(e) || Y(e) || X(e) || Z(e) ? e : Array.isArray(e) ? D.array(e, {
|
|
257
|
+
name: n,
|
|
258
|
+
deep: !1
|
|
259
|
+
}) : u(e) ? D.object(e, void 0, {
|
|
260
|
+
name: n,
|
|
261
|
+
deep: !1
|
|
262
|
+
}) : g(e) ? D.map(e, {
|
|
263
|
+
name: n,
|
|
264
|
+
deep: !1
|
|
265
|
+
}) : _(e) ? D.set(e, {
|
|
266
|
+
name: n,
|
|
267
|
+
deep: !1
|
|
268
|
+
}) : i(!1);
|
|
269
|
+
}
|
|
270
|
+
function xe(e) {
|
|
271
|
+
return e;
|
|
272
|
+
}
|
|
273
|
+
function Se(e, t, n) {
|
|
274
|
+
return Mn(e, t) ? t : e;
|
|
275
|
+
}
|
|
276
|
+
function Ce(e) {
|
|
277
|
+
a(e);
|
|
278
|
+
var t = _e(!0, function(t, n, r, i, a) {
|
|
279
|
+
var o = r ? r.initializer ? r.initializer.call(t) : r.value : void 0;
|
|
280
|
+
Sn(t).addObservableProp(n, o, e);
|
|
281
|
+
}), n = (typeof process < "u" && process.env, t);
|
|
282
|
+
return n.enhancer = e, n;
|
|
283
|
+
}
|
|
284
|
+
var we = {
|
|
285
|
+
deep: !0,
|
|
286
|
+
name: void 0,
|
|
287
|
+
defaultDecorator: void 0,
|
|
288
|
+
proxy: !0
|
|
289
|
+
};
|
|
290
|
+
Object.freeze(we);
|
|
291
|
+
function E(e) {
|
|
292
|
+
return e == null ? we : typeof e == "string" ? {
|
|
293
|
+
name: e,
|
|
294
|
+
deep: !0,
|
|
295
|
+
proxy: !0
|
|
296
|
+
} : e;
|
|
297
|
+
}
|
|
298
|
+
var Te = Ce(ye), Ee = Ce(be), De = Ce(xe), Oe = Ce(Se);
|
|
299
|
+
function ke(e) {
|
|
300
|
+
return e.defaultDecorator ? e.defaultDecorator.enhancer : e.deep === !1 ? xe : ye;
|
|
301
|
+
}
|
|
302
|
+
function Ae(e, t, n) {
|
|
303
|
+
if (typeof arguments[1] == "string" || typeof arguments[1] == "symbol") return Te.apply(null, arguments);
|
|
304
|
+
if (Jt(e)) return e;
|
|
305
|
+
var r = u(e) ? D.object(e, t, n) : Array.isArray(e) ? D.array(e, t) : g(e) ? D.map(e, t) : _(e) ? D.set(e, t) : e;
|
|
306
|
+
if (r !== e) return r;
|
|
307
|
+
i(!1);
|
|
308
|
+
}
|
|
309
|
+
var je = {
|
|
310
|
+
box: function(e, t) {
|
|
311
|
+
arguments.length > 2 && Me("box");
|
|
312
|
+
var n = E(t);
|
|
313
|
+
return new P(e, ke(n), n.name, !0, n.equals);
|
|
314
|
+
},
|
|
315
|
+
array: function(e, t) {
|
|
316
|
+
arguments.length > 2 && Me("array");
|
|
317
|
+
var n = E(t);
|
|
318
|
+
return fn(e, ke(n), n.name);
|
|
319
|
+
},
|
|
320
|
+
map: function(e, t) {
|
|
321
|
+
arguments.length > 2 && Me("map");
|
|
322
|
+
var n = E(t);
|
|
323
|
+
return new _n(e, ke(n), n.name);
|
|
324
|
+
},
|
|
325
|
+
set: function(e, t) {
|
|
326
|
+
arguments.length > 2 && Me("set");
|
|
327
|
+
var n = E(t);
|
|
328
|
+
return new bn(e, ke(n), n.name);
|
|
329
|
+
},
|
|
330
|
+
object: function(e, t, n) {
|
|
331
|
+
typeof arguments[1] == "string" && Me("object");
|
|
332
|
+
var r = E(n);
|
|
333
|
+
if (r.proxy === !1) return Vt({}, e, t, r);
|
|
334
|
+
var i = Ht(r), a = cn(Vt({}, void 0, void 0, r));
|
|
335
|
+
return Ut(a, e, t, i), a;
|
|
336
|
+
},
|
|
337
|
+
ref: De,
|
|
338
|
+
shallow: Ee,
|
|
339
|
+
deep: Te,
|
|
340
|
+
struct: Oe
|
|
341
|
+
}, D = Ae;
|
|
342
|
+
Object.keys(je).forEach(function(e) {
|
|
343
|
+
return D[e] = je[e];
|
|
344
|
+
});
|
|
345
|
+
function Me(e) {
|
|
346
|
+
i("Expected one or two arguments to observable." + e + ". Did you accidentally try to use observable." + e + " as decorator?");
|
|
347
|
+
}
|
|
348
|
+
var Ne = _e(!1, function(e, t, n, r, i) {
|
|
349
|
+
var a = n.get, o = n.set, s = i[0] || {};
|
|
350
|
+
Sn(e).addComputedProp(e, t, S({
|
|
351
|
+
get: a,
|
|
352
|
+
set: o,
|
|
353
|
+
context: e
|
|
354
|
+
}, s));
|
|
355
|
+
}), Pe = Ne({ equals: x.structural }), Fe = function(e, t, n) {
|
|
356
|
+
if (typeof t == "string" || typeof e == "object" && e && arguments.length === 1) return Ne.apply(null, arguments);
|
|
357
|
+
var r = typeof t == "object" ? t : {};
|
|
358
|
+
return r.get = e, r.set = typeof t == "function" ? t : r.set, r.name = r.name || e.name || "", new F(r);
|
|
359
|
+
};
|
|
360
|
+
Fe.struct = Pe;
|
|
361
|
+
var O;
|
|
362
|
+
(function(e) {
|
|
363
|
+
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";
|
|
364
|
+
})(O || (O = {}));
|
|
365
|
+
var k;
|
|
366
|
+
(function(e) {
|
|
367
|
+
e[e.NONE = 0] = "NONE", e[e.LOG = 1] = "LOG", e[e.BREAK = 2] = "BREAK";
|
|
368
|
+
})(k || (k = {}));
|
|
369
|
+
var Ie = function() {
|
|
370
|
+
function e(e) {
|
|
371
|
+
this.cause = e;
|
|
372
|
+
}
|
|
373
|
+
return e;
|
|
374
|
+
}();
|
|
375
|
+
function Le(e) {
|
|
376
|
+
return e instanceof Ie;
|
|
377
|
+
}
|
|
378
|
+
function Re(e) {
|
|
379
|
+
switch (e.dependenciesState) {
|
|
380
|
+
case O.UP_TO_DATE: return !1;
|
|
381
|
+
case O.NOT_TRACKING:
|
|
382
|
+
case O.STALE: return !0;
|
|
383
|
+
case O.POSSIBLY_STALE:
|
|
384
|
+
for (var t = Ue(!0), n = j(), r = e.observing, i = r.length, a = 0; a < i; a++) {
|
|
385
|
+
var o = r[a];
|
|
386
|
+
if (tt(o)) {
|
|
387
|
+
if (I.disableErrorBoundaries) o.get();
|
|
388
|
+
else try {
|
|
389
|
+
o.get();
|
|
390
|
+
} catch {
|
|
391
|
+
return M(n), We(t), !0;
|
|
392
|
+
}
|
|
393
|
+
if (e.dependenciesState === O.STALE) return M(n), We(t), !0;
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
return Ge(e), M(n), We(t), !1;
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
function A(e) {
|
|
400
|
+
var t = e.observers.size > 0;
|
|
401
|
+
I.computationDepth > 0 && t && i(!1), !I.allowStateChanges && (t || I.enforceActions === "strict") && i(!1);
|
|
402
|
+
}
|
|
403
|
+
function ze(e, t, n) {
|
|
404
|
+
var r = Ue(!0);
|
|
405
|
+
Ge(e), e.newObserving = Array(e.observing.length + 100), e.unboundDepsCount = 0, e.runId = ++I.runId;
|
|
406
|
+
var i = I.trackingDerivation;
|
|
407
|
+
I.trackingDerivation = e;
|
|
408
|
+
var a;
|
|
409
|
+
if (I.disableErrorBoundaries === !0) a = t.call(n);
|
|
410
|
+
else try {
|
|
411
|
+
a = t.call(n);
|
|
412
|
+
} catch (e) {
|
|
413
|
+
a = new Ie(e);
|
|
414
|
+
}
|
|
415
|
+
return I.trackingDerivation = i, Be(e), We(r), a;
|
|
416
|
+
}
|
|
417
|
+
function Be(e) {
|
|
418
|
+
for (var t = e.observing, n = e.observing = e.newObserving, r = O.UP_TO_DATE, i = 0, a = e.unboundDepsCount, o = 0; o < a; o++) {
|
|
419
|
+
var s = n[o];
|
|
420
|
+
s.diffValue === 0 && (s.diffValue = 1, i !== o && (n[i] = s), i++), s.dependenciesState > r && (r = s.dependenciesState);
|
|
421
|
+
}
|
|
422
|
+
for (n.length = i, e.newObserving = null, a = t.length; a--;) {
|
|
423
|
+
var s = t[a];
|
|
424
|
+
s.diffValue === 0 && lt(s, e), s.diffValue = 0;
|
|
425
|
+
}
|
|
426
|
+
for (; i--;) {
|
|
427
|
+
var s = n[i];
|
|
428
|
+
s.diffValue === 1 && (s.diffValue = 0, ct(s, e));
|
|
429
|
+
}
|
|
430
|
+
r !== O.UP_TO_DATE && (e.dependenciesState = r, e.onBecomeStale());
|
|
431
|
+
}
|
|
432
|
+
function Ve(e) {
|
|
433
|
+
var t = e.observing;
|
|
434
|
+
e.observing = [];
|
|
435
|
+
for (var n = t.length; n--;) lt(t[n], e);
|
|
436
|
+
e.dependenciesState = O.NOT_TRACKING;
|
|
437
|
+
}
|
|
438
|
+
function He(e) {
|
|
439
|
+
var t = j();
|
|
440
|
+
try {
|
|
441
|
+
return e();
|
|
442
|
+
} finally {
|
|
443
|
+
M(t);
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
function j() {
|
|
447
|
+
var e = I.trackingDerivation;
|
|
448
|
+
return I.trackingDerivation = null, e;
|
|
449
|
+
}
|
|
450
|
+
function M(e) {
|
|
451
|
+
I.trackingDerivation = e;
|
|
452
|
+
}
|
|
453
|
+
function Ue(e) {
|
|
454
|
+
var t = I.allowStateReads;
|
|
455
|
+
return I.allowStateReads = e, t;
|
|
456
|
+
}
|
|
457
|
+
function We(e) {
|
|
458
|
+
I.allowStateReads = e;
|
|
459
|
+
}
|
|
460
|
+
function Ge(e) {
|
|
461
|
+
if (e.dependenciesState !== O.UP_TO_DATE) {
|
|
462
|
+
e.dependenciesState = O.UP_TO_DATE;
|
|
463
|
+
for (var t = e.observing, n = t.length; n--;) t[n].lowestObserverState = O.UP_TO_DATE;
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
var Ke = 0, qe = 1, Je = Object.getOwnPropertyDescriptor(function() {}, "name");
|
|
467
|
+
Je && Je.configurable;
|
|
468
|
+
function N(e, t, n) {
|
|
469
|
+
var r = function() {
|
|
470
|
+
return Ye(e, t, n || this, arguments);
|
|
471
|
+
};
|
|
472
|
+
return r.isMobxAction = !0, r;
|
|
473
|
+
}
|
|
474
|
+
function Ye(e, t, n, r) {
|
|
475
|
+
var i = Xe(e, n, r);
|
|
476
|
+
try {
|
|
477
|
+
return t.apply(n, r);
|
|
478
|
+
} catch (e) {
|
|
479
|
+
throw i.error = e, e;
|
|
480
|
+
} finally {
|
|
481
|
+
Ze(i);
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
function Xe(e, t, n) {
|
|
485
|
+
var r = z() && !!e, i = 0, a = j();
|
|
486
|
+
L();
|
|
487
|
+
var o = {
|
|
488
|
+
prevDerivation: a,
|
|
489
|
+
prevAllowStateChanges: Qe(!0),
|
|
490
|
+
prevAllowStateReads: Ue(!0),
|
|
491
|
+
notifySpy: r,
|
|
492
|
+
startTime: i,
|
|
493
|
+
actionId: qe++,
|
|
494
|
+
parentActionId: Ke
|
|
495
|
+
};
|
|
496
|
+
return Ke = o.actionId, o;
|
|
497
|
+
}
|
|
498
|
+
function Ze(e) {
|
|
499
|
+
Ke !== e.actionId && i("invalid action stack. did you forget to finish an action?"), Ke = e.parentActionId, e.error !== void 0 && (I.suppressReactionErrors = !0), $e(e.prevAllowStateChanges), We(e.prevAllowStateReads), R(), M(e.prevDerivation), e.notifySpy, I.suppressReactionErrors = !1;
|
|
500
|
+
}
|
|
501
|
+
function Qe(e) {
|
|
502
|
+
var t = I.allowStateChanges;
|
|
503
|
+
return I.allowStateChanges = e, t;
|
|
504
|
+
}
|
|
505
|
+
function $e(e) {
|
|
506
|
+
I.allowStateChanges = e;
|
|
507
|
+
}
|
|
508
|
+
var P = function(e) {
|
|
509
|
+
ue(t, e);
|
|
510
|
+
function t(t, n, i, a, o) {
|
|
511
|
+
i === void 0 && (i = "ObservableValue@" + r()), a === void 0 && (a = !0), o === void 0 && (o = x.default);
|
|
512
|
+
var s = e.call(this, i) || this;
|
|
513
|
+
return s.enhancer = n, s.name = i, s.equals = o, s.hasUnreportedChange = !1, s.value = n(t, void 0, i), s;
|
|
514
|
+
}
|
|
515
|
+
return t.prototype.dehanceValue = function(e) {
|
|
516
|
+
return this.dehancer === void 0 ? e : this.dehancer(e);
|
|
517
|
+
}, t.prototype.set = function(e) {
|
|
518
|
+
this.value, e = this.prepareNewValue(e), e !== I.UNCHANGED && this.setNewValue(e);
|
|
519
|
+
}, t.prototype.prepareNewValue = function(e) {
|
|
520
|
+
if (A(this), U(this)) {
|
|
521
|
+
var t = W(this, {
|
|
522
|
+
object: this,
|
|
523
|
+
type: "update",
|
|
524
|
+
newValue: e
|
|
525
|
+
});
|
|
526
|
+
if (!t) return I.UNCHANGED;
|
|
527
|
+
e = t.newValue;
|
|
528
|
+
}
|
|
529
|
+
return e = this.enhancer(e, this.value, this.name), this.equals(this.value, e) ? I.UNCHANGED : e;
|
|
530
|
+
}, t.prototype.setNewValue = function(e) {
|
|
531
|
+
var t = this.value;
|
|
532
|
+
this.value = e, this.reportChanged(), G(this) && q(this, {
|
|
533
|
+
type: "update",
|
|
534
|
+
object: this,
|
|
535
|
+
newValue: e,
|
|
536
|
+
oldValue: t
|
|
537
|
+
});
|
|
538
|
+
}, t.prototype.get = function() {
|
|
539
|
+
return this.reportObserved(), this.dehanceValue(this.value);
|
|
540
|
+
}, t.prototype.intercept = function(e) {
|
|
541
|
+
return ln(this, e);
|
|
542
|
+
}, t.prototype.observe = function(e, t) {
|
|
543
|
+
return t && e({
|
|
544
|
+
object: this,
|
|
545
|
+
type: "update",
|
|
546
|
+
newValue: this.value,
|
|
547
|
+
oldValue: void 0
|
|
548
|
+
}), K(this, e);
|
|
549
|
+
}, t.prototype.toJSON = function() {
|
|
550
|
+
return this.get();
|
|
551
|
+
}, t.prototype.toString = function() {
|
|
552
|
+
return this.name + "[" + this.value + "]";
|
|
553
|
+
}, t.prototype.valueOf = function() {
|
|
554
|
+
return te(this.get());
|
|
555
|
+
}, t.prototype[Symbol.toPrimitive] = function() {
|
|
556
|
+
return this.valueOf();
|
|
557
|
+
}, t;
|
|
558
|
+
}(b), et = h("ObservableValue", P), F = function() {
|
|
559
|
+
function e(e) {
|
|
560
|
+
this.dependenciesState = O.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 = O.UP_TO_DATE, this.unboundDepsCount = 0, this.__mapid = "#" + r(), this.value = new Ie(null), this.isComputing = !1, this.isRunningSetter = !1, this.isTracing = k.NONE, a(e.get, "missing option for computed: get"), this.derivation = e.get, this.name = e.name || "ComputedValue@" + r(), e.set && (this.setter = N(this.name + "-setter", e.set)), this.equals = e.equals || (e.compareStructural || e.struct ? x.structural : x.default), this.scope = e.context, this.requiresReaction = !!e.requiresReaction, this.keepAlive = !!e.keepAlive;
|
|
561
|
+
}
|
|
562
|
+
return e.prototype.onBecomeStale = function() {
|
|
563
|
+
mt(this);
|
|
564
|
+
}, e.prototype.onBecomeObserved = function() {
|
|
565
|
+
this.onBecomeObservedListeners && this.onBecomeObservedListeners.forEach(function(e) {
|
|
566
|
+
return e();
|
|
567
|
+
});
|
|
568
|
+
}, e.prototype.onBecomeUnobserved = function() {
|
|
569
|
+
this.onBecomeUnobservedListeners && this.onBecomeUnobservedListeners.forEach(function(e) {
|
|
570
|
+
return e();
|
|
571
|
+
});
|
|
572
|
+
}, e.prototype.get = function() {
|
|
573
|
+
this.isComputing && i("Cycle detected in computation " + this.name + ": " + this.derivation), I.inBatch === 0 && this.observers.size === 0 && !this.keepAlive ? Re(this) && (this.warnAboutUntrackedRead(), L(), this.value = this.computeValue(!1), R()) : (dt(this), Re(this) && this.trackAndCompute() && pt(this));
|
|
574
|
+
var e = this.value;
|
|
575
|
+
if (Le(e)) throw e.cause;
|
|
576
|
+
return e;
|
|
577
|
+
}, e.prototype.peek = function() {
|
|
578
|
+
var e = this.computeValue(!1);
|
|
579
|
+
if (Le(e)) throw e.cause;
|
|
580
|
+
return e;
|
|
581
|
+
}, e.prototype.set = function(e) {
|
|
582
|
+
if (this.setter) {
|
|
583
|
+
a(!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;
|
|
584
|
+
try {
|
|
585
|
+
this.setter.call(this.scope, e);
|
|
586
|
+
} finally {
|
|
587
|
+
this.isRunningSetter = !1;
|
|
588
|
+
}
|
|
589
|
+
} else a(!1, !1);
|
|
590
|
+
}, e.prototype.trackAndCompute = function() {
|
|
591
|
+
var e = this.value, t = this.dependenciesState === O.NOT_TRACKING, n = this.computeValue(!0), r = t || Le(e) || Le(n) || !this.equals(e, n);
|
|
592
|
+
return r && (this.value = n), r;
|
|
593
|
+
}, e.prototype.computeValue = function(e) {
|
|
594
|
+
this.isComputing = !0, I.computationDepth++;
|
|
595
|
+
var t;
|
|
596
|
+
if (e) t = ze(this, this.derivation, this.scope);
|
|
597
|
+
else if (I.disableErrorBoundaries === !0) t = this.derivation.call(this.scope);
|
|
598
|
+
else try {
|
|
599
|
+
t = this.derivation.call(this.scope);
|
|
600
|
+
} catch (e) {
|
|
601
|
+
t = new Ie(e);
|
|
602
|
+
}
|
|
603
|
+
return I.computationDepth--, this.isComputing = !1, t;
|
|
604
|
+
}, e.prototype.suspend = function() {
|
|
605
|
+
this.keepAlive || (Ve(this), this.value = void 0);
|
|
606
|
+
}, e.prototype.observe = function(e, t) {
|
|
607
|
+
var n = this, r = !0, i = void 0;
|
|
608
|
+
return Mt(function() {
|
|
609
|
+
var a = n.get();
|
|
610
|
+
if (!r || t) {
|
|
611
|
+
var o = j();
|
|
612
|
+
e({
|
|
613
|
+
type: "update",
|
|
614
|
+
object: n,
|
|
615
|
+
newValue: a,
|
|
616
|
+
oldValue: i
|
|
617
|
+
}), M(o);
|
|
618
|
+
}
|
|
619
|
+
r = !1, i = a;
|
|
620
|
+
});
|
|
621
|
+
}, e.prototype.warnAboutUntrackedRead = function() {}, e.prototype.toJSON = function() {
|
|
622
|
+
return this.get();
|
|
623
|
+
}, e.prototype.toString = function() {
|
|
624
|
+
return this.name + "[" + this.derivation.toString() + "]";
|
|
625
|
+
}, e.prototype.valueOf = function() {
|
|
626
|
+
return te(this.get());
|
|
627
|
+
}, e.prototype[Symbol.toPrimitive] = function() {
|
|
628
|
+
return this.valueOf();
|
|
629
|
+
}, e;
|
|
630
|
+
}(), tt = h("ComputedValue", F), nt = function() {
|
|
631
|
+
function e() {
|
|
632
|
+
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;
|
|
633
|
+
}
|
|
634
|
+
return e;
|
|
635
|
+
}(), rt = {};
|
|
636
|
+
function it() {
|
|
637
|
+
return typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : rt;
|
|
638
|
+
}
|
|
639
|
+
var at = !0, ot = !1, I = (function() {
|
|
640
|
+
var e = it();
|
|
641
|
+
return e.__mobxInstanceCount > 0 && !e.__mobxGlobals && (at = !1), e.__mobxGlobals && e.__mobxGlobals.version !== new nt().version && (at = !1), at ? e.__mobxGlobals ? (e.__mobxInstanceCount += 1, e.__mobxGlobals.UNCHANGED || (e.__mobxGlobals.UNCHANGED = {}), e.__mobxGlobals) : (e.__mobxInstanceCount = 1, e.__mobxGlobals = new nt()) : (setTimeout(function() {
|
|
642
|
+
ot || i("There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`");
|
|
643
|
+
}, 1), new nt());
|
|
644
|
+
})();
|
|
645
|
+
function st() {
|
|
646
|
+
(I.pendingReactions.length || I.inBatch || I.isRunningReactions) && i("isolateGlobalState should be called before MobX is running any reactions"), ot = !0, at && (--it().__mobxInstanceCount === 0 && (it().__mobxGlobals = void 0), I = new nt());
|
|
647
|
+
}
|
|
648
|
+
function ct(e, t) {
|
|
649
|
+
e.observers.add(t), e.lowestObserverState > t.dependenciesState && (e.lowestObserverState = t.dependenciesState);
|
|
650
|
+
}
|
|
651
|
+
function lt(e, t) {
|
|
652
|
+
e.observers.delete(t), e.observers.size === 0 && ut(e);
|
|
653
|
+
}
|
|
654
|
+
function ut(e) {
|
|
655
|
+
e.isPendingUnobservation === !1 && (e.isPendingUnobservation = !0, I.pendingUnobservations.push(e));
|
|
656
|
+
}
|
|
657
|
+
function L() {
|
|
658
|
+
I.inBatch++;
|
|
659
|
+
}
|
|
660
|
+
function R() {
|
|
661
|
+
if (--I.inBatch === 0) {
|
|
662
|
+
bt();
|
|
663
|
+
for (var e = I.pendingUnobservations, t = 0; t < e.length; t++) {
|
|
664
|
+
var n = e[t];
|
|
665
|
+
n.isPendingUnobservation = !1, n.observers.size === 0 && (n.isBeingObserved && (n.isBeingObserved = !1, n.onBecomeUnobserved()), n instanceof F && n.suspend());
|
|
666
|
+
}
|
|
667
|
+
I.pendingUnobservations = [];
|
|
668
|
+
}
|
|
669
|
+
}
|
|
670
|
+
function dt(e) {
|
|
671
|
+
var t = I.trackingDerivation;
|
|
672
|
+
return t === null ? (e.observers.size === 0 && I.inBatch > 0 && ut(e), !1) : (t.runId !== e.lastAccessedBy && (e.lastAccessedBy = t.runId, t.newObserving[t.unboundDepsCount++] = e, e.isBeingObserved || (e.isBeingObserved = !0, e.onBecomeObserved())), !0);
|
|
673
|
+
}
|
|
674
|
+
function ft(e) {
|
|
675
|
+
e.lowestObserverState !== O.STALE && (e.lowestObserverState = O.STALE, e.observers.forEach(function(t) {
|
|
676
|
+
t.dependenciesState === O.UP_TO_DATE && (t.isTracing !== k.NONE && ht(t, e), t.onBecomeStale()), t.dependenciesState = O.STALE;
|
|
677
|
+
}));
|
|
678
|
+
}
|
|
679
|
+
function pt(e) {
|
|
680
|
+
e.lowestObserverState !== O.STALE && (e.lowestObserverState = O.STALE, e.observers.forEach(function(t) {
|
|
681
|
+
t.dependenciesState === O.POSSIBLY_STALE ? t.dependenciesState = O.STALE : t.dependenciesState === O.UP_TO_DATE && (e.lowestObserverState = O.UP_TO_DATE);
|
|
682
|
+
}));
|
|
683
|
+
}
|
|
684
|
+
function mt(e) {
|
|
685
|
+
e.lowestObserverState === O.UP_TO_DATE && (e.lowestObserverState = O.POSSIBLY_STALE, e.observers.forEach(function(t) {
|
|
686
|
+
t.dependenciesState === O.UP_TO_DATE && (t.dependenciesState = O.POSSIBLY_STALE, t.isTracing !== k.NONE && ht(t, e), t.onBecomeStale());
|
|
687
|
+
}));
|
|
688
|
+
}
|
|
689
|
+
function ht(e, t) {
|
|
690
|
+
if (console.log("[mobx.trace] '" + e.name + "' is invalidated due to a change in: '" + t.name + "'"), e.isTracing === k.BREAK) {
|
|
691
|
+
var n = [];
|
|
692
|
+
gt(Wt(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 F ? e.derivation.toString().replace(/[*]\//g, "/") : "") + "\n\nThe dependencies for this derivation are:\n\n" + n.join("\n") + "\n*/\n ")();
|
|
693
|
+
}
|
|
694
|
+
}
|
|
695
|
+
function gt(e, t, n) {
|
|
696
|
+
if (t.length >= 1e3) {
|
|
697
|
+
t.push("(and many more)");
|
|
698
|
+
return;
|
|
699
|
+
}
|
|
700
|
+
t.push("" + Array(n).join(" ") + e.name), e.dependencies && e.dependencies.forEach(function(e) {
|
|
701
|
+
return gt(e, t, n + 1);
|
|
702
|
+
});
|
|
703
|
+
}
|
|
704
|
+
var _t = function() {
|
|
705
|
+
function e(e, t, n, i) {
|
|
706
|
+
e === void 0 && (e = "Reaction@" + r()), i === void 0 && (i = !1), this.name = e, this.onInvalidate = t, this.errorHandler = n, this.requiresObservable = i, this.observing = [], this.newObserving = [], this.dependenciesState = O.NOT_TRACKING, this.diffValue = 0, this.runId = 0, this.unboundDepsCount = 0, this.__mapid = "#" + r(), this.isDisposed = !1, this._isScheduled = !1, this._isTrackPending = !1, this._isRunning = !1, this.isTracing = k.NONE;
|
|
707
|
+
}
|
|
708
|
+
return e.prototype.onBecomeStale = function() {
|
|
709
|
+
this.schedule();
|
|
710
|
+
}, e.prototype.schedule = function() {
|
|
711
|
+
this._isScheduled || (this._isScheduled = !0, I.pendingReactions.push(this), bt());
|
|
712
|
+
}, e.prototype.isScheduled = function() {
|
|
713
|
+
return this._isScheduled;
|
|
714
|
+
}, e.prototype.runReaction = function() {
|
|
715
|
+
if (!this.isDisposed) {
|
|
716
|
+
if (L(), this._isScheduled = !1, Re(this)) {
|
|
717
|
+
this._isTrackPending = !0;
|
|
718
|
+
try {
|
|
719
|
+
this.onInvalidate(), this._isTrackPending;
|
|
720
|
+
} catch (e) {
|
|
721
|
+
this.reportExceptionInDerivation(e);
|
|
722
|
+
}
|
|
723
|
+
}
|
|
724
|
+
R();
|
|
725
|
+
}
|
|
726
|
+
}, e.prototype.track = function(e) {
|
|
727
|
+
if (!this.isDisposed) {
|
|
728
|
+
L(), this._isRunning = !0;
|
|
729
|
+
var t = ze(this, e, void 0);
|
|
730
|
+
this._isRunning = !1, this._isTrackPending = !1, this.isDisposed && Ve(this), Le(t) && this.reportExceptionInDerivation(t.cause), R();
|
|
731
|
+
}
|
|
732
|
+
}, e.prototype.reportExceptionInDerivation = function(e) {
|
|
733
|
+
var t = this;
|
|
734
|
+
if (this.errorHandler) {
|
|
735
|
+
this.errorHandler(e, this);
|
|
736
|
+
return;
|
|
737
|
+
}
|
|
738
|
+
if (I.disableErrorBoundaries) throw e;
|
|
739
|
+
var n = "[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '" + this + "'";
|
|
740
|
+
I.suppressReactionErrors ? console.warn("[mobx] (error in reaction '" + this.name + "' suppressed, fix error of causing action below)") : console.error(n, e), z() && (this.name, "" + e), I.globalReactionErrorHandlers.forEach(function(n) {
|
|
741
|
+
return n(e, t);
|
|
742
|
+
});
|
|
743
|
+
}, e.prototype.dispose = function() {
|
|
744
|
+
this.isDisposed || (this.isDisposed = !0, this._isRunning || (L(), Ve(this), R()));
|
|
745
|
+
}, e.prototype.getDisposer = function() {
|
|
746
|
+
var e = this.dispose.bind(this);
|
|
747
|
+
return e[y] = this, e;
|
|
748
|
+
}, e.prototype.toString = function() {
|
|
749
|
+
return "Reaction[" + this.name + "]";
|
|
750
|
+
}, e.prototype.trace = function(e) {
|
|
751
|
+
e === void 0 && (e = !1), $t(this, e);
|
|
752
|
+
}, e;
|
|
753
|
+
}(), vt = 100, yt = function(e) {
|
|
754
|
+
return e();
|
|
755
|
+
};
|
|
756
|
+
function bt() {
|
|
757
|
+
I.inBatch > 0 || I.isRunningReactions || yt(xt);
|
|
758
|
+
}
|
|
759
|
+
function xt() {
|
|
760
|
+
I.isRunningReactions = !0;
|
|
761
|
+
for (var e = I.pendingReactions, t = 0; e.length > 0;) {
|
|
762
|
+
++t === vt && (console.error("Reaction doesn't converge to a stable state after " + vt + " iterations." + (" Probably there is a cycle in the reactive function: " + e[0])), e.splice(0));
|
|
763
|
+
for (var n = e.splice(0), r = 0, i = n.length; r < i; r++) n[r].runReaction();
|
|
764
|
+
}
|
|
765
|
+
I.isRunningReactions = !1;
|
|
766
|
+
}
|
|
767
|
+
var St = h("Reaction", _t);
|
|
768
|
+
function Ct(e) {
|
|
769
|
+
var t = yt;
|
|
770
|
+
yt = function(n) {
|
|
771
|
+
return e(function() {
|
|
772
|
+
return t(n);
|
|
773
|
+
});
|
|
774
|
+
};
|
|
775
|
+
}
|
|
776
|
+
function z() {
|
|
777
|
+
return !1;
|
|
778
|
+
}
|
|
779
|
+
function wt(e) {
|
|
780
|
+
return console.warn("[mobx.spy] Is a no-op in production builds"), function() {};
|
|
781
|
+
}
|
|
782
|
+
function Tt() {
|
|
783
|
+
i(!1);
|
|
784
|
+
}
|
|
785
|
+
function Et(e) {
|
|
786
|
+
return function(t, n, r) {
|
|
787
|
+
if (r) {
|
|
788
|
+
if (r.value) return {
|
|
789
|
+
value: N(e, r.value),
|
|
790
|
+
enumerable: !1,
|
|
791
|
+
configurable: !0,
|
|
792
|
+
writable: !0
|
|
793
|
+
};
|
|
794
|
+
var i = r.initializer;
|
|
795
|
+
return {
|
|
796
|
+
enumerable: !1,
|
|
797
|
+
configurable: !0,
|
|
798
|
+
writable: !0,
|
|
799
|
+
initializer: function() {
|
|
800
|
+
return N(e, i.call(this));
|
|
801
|
+
}
|
|
802
|
+
};
|
|
803
|
+
}
|
|
804
|
+
return Dt(e).apply(this, arguments);
|
|
805
|
+
};
|
|
806
|
+
}
|
|
807
|
+
function Dt(e) {
|
|
808
|
+
return function(t, n, r) {
|
|
809
|
+
Object.defineProperty(t, n, {
|
|
810
|
+
configurable: !0,
|
|
811
|
+
enumerable: !1,
|
|
812
|
+
get: function() {},
|
|
813
|
+
set: function(t) {
|
|
814
|
+
f(this, n, kt(e, t));
|
|
815
|
+
}
|
|
816
|
+
});
|
|
817
|
+
};
|
|
818
|
+
}
|
|
819
|
+
function Ot(e, t, n, r) {
|
|
820
|
+
return r === !0 ? (jt(e, t, n.value), null) : n ? {
|
|
821
|
+
configurable: !0,
|
|
822
|
+
enumerable: !1,
|
|
823
|
+
get: function() {
|
|
824
|
+
return jt(this, t, n.value || n.initializer.call(this)), this[t];
|
|
825
|
+
},
|
|
826
|
+
set: Tt
|
|
827
|
+
} : {
|
|
828
|
+
enumerable: !1,
|
|
829
|
+
configurable: !0,
|
|
830
|
+
set: function(e) {
|
|
831
|
+
jt(this, t, e);
|
|
832
|
+
},
|
|
833
|
+
get: function() {}
|
|
834
|
+
};
|
|
835
|
+
}
|
|
836
|
+
var kt = function(e, t, n, r) {
|
|
837
|
+
if (arguments.length === 1 && typeof e == "function") return N(e.name || "<unnamed action>", e);
|
|
838
|
+
if (arguments.length === 2 && typeof t == "function") return N(e, t);
|
|
839
|
+
if (arguments.length === 1 && typeof e == "string") return Et(e);
|
|
840
|
+
if (r === !0) f(e, t, N(e.name || t, n.value, this));
|
|
841
|
+
else return Et(t).apply(null, arguments);
|
|
842
|
+
};
|
|
843
|
+
kt.bound = Ot;
|
|
844
|
+
function At(e, t) {
|
|
845
|
+
return Ye(typeof e == "string" ? e : e.name || "<unnamed action>", typeof e == "function" ? e : t, this, void 0);
|
|
846
|
+
}
|
|
847
|
+
function jt(e, t, n) {
|
|
848
|
+
f(e, t, N(t, n.bind(e)));
|
|
849
|
+
}
|
|
850
|
+
function Mt(e, t) {
|
|
851
|
+
t === void 0 && (t = n);
|
|
852
|
+
var i = t && t.name || e.name || "Autorun@" + r(), a = !t.scheduler && !t.delay, o;
|
|
853
|
+
if (a) o = new _t(i, function() {
|
|
854
|
+
this.track(l);
|
|
855
|
+
}, t.onError, t.requiresObservable);
|
|
856
|
+
else {
|
|
857
|
+
var s = Pt(t), c = !1;
|
|
858
|
+
o = new _t(i, function() {
|
|
859
|
+
c || (c = !0, s(function() {
|
|
860
|
+
c = !1, o.isDisposed || o.track(l);
|
|
861
|
+
}));
|
|
862
|
+
}, t.onError, t.requiresObservable);
|
|
863
|
+
}
|
|
864
|
+
function l() {
|
|
865
|
+
e(o);
|
|
866
|
+
}
|
|
867
|
+
return o.schedule(), o.getDisposer();
|
|
868
|
+
}
|
|
869
|
+
var Nt = function(e) {
|
|
870
|
+
return e();
|
|
871
|
+
};
|
|
872
|
+
function Pt(e) {
|
|
873
|
+
return e.scheduler ? e.scheduler : e.delay ? function(t) {
|
|
874
|
+
return setTimeout(t, e.delay);
|
|
875
|
+
} : Nt;
|
|
876
|
+
}
|
|
877
|
+
function Ft(e, t, i) {
|
|
878
|
+
i === void 0 && (i = n);
|
|
879
|
+
var a = i.name || "Reaction@" + r(), o = kt(a, i.onError ? It(i.onError, t) : t), s = !i.scheduler && !i.delay, c = Pt(i), l = !0, u = !1, d, f = i.compareStructural ? x.structural : i.equals || x.default, p = new _t(a, function() {
|
|
880
|
+
l || s ? m() : u || (u = !0, c(m));
|
|
881
|
+
}, i.onError, i.requiresObservable);
|
|
882
|
+
function m() {
|
|
883
|
+
if (u = !1, !p.isDisposed) {
|
|
884
|
+
var t = !1;
|
|
885
|
+
p.track(function() {
|
|
886
|
+
var n = e(p);
|
|
887
|
+
t = l || !f(d, n), d = n;
|
|
888
|
+
}), l && i.fireImmediately && o(d, p), !l && t === !0 && o(d, p), l && (l = !1);
|
|
889
|
+
}
|
|
890
|
+
}
|
|
891
|
+
return p.schedule(), p.getDisposer();
|
|
892
|
+
}
|
|
893
|
+
function It(e, t) {
|
|
894
|
+
return function() {
|
|
895
|
+
try {
|
|
896
|
+
return t.apply(this, arguments);
|
|
897
|
+
} catch (t) {
|
|
898
|
+
e.call(this, t);
|
|
899
|
+
}
|
|
900
|
+
};
|
|
901
|
+
}
|
|
902
|
+
function Lt(e, t, n) {
|
|
903
|
+
return zt("onBecomeObserved", e, t, n);
|
|
904
|
+
}
|
|
905
|
+
function Rt(e, t, n) {
|
|
906
|
+
return zt("onBecomeUnobserved", e, t, n);
|
|
907
|
+
}
|
|
908
|
+
function zt(e, t, n, r) {
|
|
909
|
+
var a = typeof r == "function" ? $(t, n) : $(t), o = typeof r == "function" ? r : n, s = e + "Listeners";
|
|
910
|
+
return a[s] ? a[s].add(o) : a[s] = /* @__PURE__ */ new Set([o]), typeof a[e] == "function" ? function() {
|
|
911
|
+
var e = a[s];
|
|
912
|
+
e && (e.delete(o), e.size === 0 && delete a[s]);
|
|
913
|
+
} : i(!1);
|
|
914
|
+
}
|
|
915
|
+
function Bt(e) {
|
|
916
|
+
var t = e.enforceActions, n = e.computedRequiresReaction, r = e.computedConfigurable, a = e.disableErrorBoundaries, o = e.reactionScheduler, s = e.reactionRequiresObservable, c = e.observableRequiresReaction;
|
|
917
|
+
if (e.isolateGlobalState === !0 && st(), t !== void 0) {
|
|
918
|
+
var l = void 0;
|
|
919
|
+
switch (t) {
|
|
920
|
+
case !0:
|
|
921
|
+
case "observed":
|
|
922
|
+
l = !0;
|
|
923
|
+
break;
|
|
924
|
+
case !1:
|
|
925
|
+
case "never":
|
|
926
|
+
l = !1;
|
|
927
|
+
break;
|
|
928
|
+
case "strict":
|
|
929
|
+
case "always":
|
|
930
|
+
l = "strict";
|
|
931
|
+
break;
|
|
932
|
+
default: i("Invalid value for 'enforceActions': '" + t + "', expected 'never', 'always' or 'observed'");
|
|
933
|
+
}
|
|
934
|
+
I.enforceActions = l, I.allowStateChanges = !(l === !0 || l === "strict");
|
|
935
|
+
}
|
|
936
|
+
n !== void 0 && (I.computedRequiresReaction = !!n), s !== void 0 && (I.reactionRequiresObservable = !!s), c !== void 0 && (I.observableRequiresReaction = !!c, I.allowStateReads = !I.observableRequiresReaction), r !== void 0 && (I.computedConfigurable = !!r), a !== void 0 && (a === !0 && console.warn("WARNING: Debug feature only. MobX will NOT recover from errors when `disableErrorBoundaries` is enabled."), I.disableErrorBoundaries = !!a), o && Ct(o);
|
|
937
|
+
}
|
|
938
|
+
function Vt(e, t, n, r) {
|
|
939
|
+
r = E(r);
|
|
940
|
+
var i = Ht(r);
|
|
941
|
+
return T(e), Sn(e, r.name, i.enhancer), t && Ut(e, t, n, i), e;
|
|
942
|
+
}
|
|
943
|
+
function Ht(e) {
|
|
944
|
+
return e.defaultDecorator || (e.deep === !1 ? De : Te);
|
|
945
|
+
}
|
|
946
|
+
function Ut(e, t, n, r) {
|
|
947
|
+
var i, a;
|
|
948
|
+
if (0) var o, s, c, l;
|
|
949
|
+
L();
|
|
950
|
+
try {
|
|
951
|
+
var o = ne(t);
|
|
952
|
+
try {
|
|
953
|
+
for (var u = C(o), d = u.next(); !d.done; d = u.next()) {
|
|
954
|
+
var l = d.value, f = Object.getOwnPropertyDescriptor(t, l), p = (n && l in n ? n[l] : f.get ? Ne : r)(e, l, f, !0);
|
|
955
|
+
p && Object.defineProperty(e, l, p);
|
|
956
|
+
}
|
|
957
|
+
} catch (e) {
|
|
958
|
+
i = { error: e };
|
|
959
|
+
} finally {
|
|
960
|
+
try {
|
|
961
|
+
d && !d.done && (a = u.return) && a.call(u);
|
|
962
|
+
} finally {
|
|
963
|
+
if (i) throw i.error;
|
|
964
|
+
}
|
|
965
|
+
}
|
|
966
|
+
} finally {
|
|
967
|
+
R();
|
|
968
|
+
}
|
|
969
|
+
}
|
|
970
|
+
function Wt(e, t) {
|
|
971
|
+
return Gt($(e, t));
|
|
972
|
+
}
|
|
973
|
+
function Gt(e) {
|
|
974
|
+
var t = { name: e.name };
|
|
975
|
+
return e.observing && e.observing.length > 0 && (t.dependencies = c(e.observing).map(Gt)), t;
|
|
976
|
+
}
|
|
977
|
+
function Kt() {
|
|
978
|
+
this.message = "FLOW_CANCELLED";
|
|
979
|
+
}
|
|
980
|
+
Kt.prototype = Object.create(Error.prototype);
|
|
981
|
+
function qt(e, t) {
|
|
982
|
+
return e == null ? !1 : t === void 0 ? Q(e) || !!e[y] || re(e) || St(e) || tt(e) : Q(e) ? e[y].values.has(t) : !1;
|
|
983
|
+
}
|
|
984
|
+
function Jt(e) {
|
|
985
|
+
return arguments.length !== 1 && i(!1), qt(e);
|
|
986
|
+
}
|
|
987
|
+
function Yt(e) {
|
|
988
|
+
return Q(e) ? e[y].getKeys() : X(e) || Z(e) ? Array.from(e.keys()) : Y(e) ? e.map(function(e, t) {
|
|
989
|
+
return t;
|
|
990
|
+
}) : i(!1);
|
|
991
|
+
}
|
|
992
|
+
function Xt(e, t, n) {
|
|
993
|
+
if (arguments.length === 2 && !Z(e)) {
|
|
994
|
+
L();
|
|
995
|
+
var r = t;
|
|
996
|
+
try {
|
|
997
|
+
for (var o in r) Xt(e, o, r[o]);
|
|
998
|
+
} finally {
|
|
999
|
+
R();
|
|
1000
|
+
}
|
|
1001
|
+
return;
|
|
1002
|
+
}
|
|
1003
|
+
if (Q(e)) {
|
|
1004
|
+
var s = e[y];
|
|
1005
|
+
s.values.get(t) ? s.write(t, n) : s.addObservableProp(t, n, s.defaultEnhancer);
|
|
1006
|
+
} else if (X(e)) e.set(t, n);
|
|
1007
|
+
else if (Z(e)) e.add(t);
|
|
1008
|
+
else if (Y(e)) typeof t != "number" && (t = parseInt(t, 10)), a(t >= 0, "Not a valid index: '" + t + "'"), L(), t >= e.length && (e.length = t + 1), e[t] = n, R();
|
|
1009
|
+
else return i(!1);
|
|
1010
|
+
}
|
|
1011
|
+
var Zt = {
|
|
1012
|
+
detectCycles: !0,
|
|
1013
|
+
exportMapsAsObjects: !0,
|
|
1014
|
+
recurseEverything: !1
|
|
1015
|
+
};
|
|
1016
|
+
function B(e, t, n, r) {
|
|
1017
|
+
return r.detectCycles && e.set(t, n), n;
|
|
1018
|
+
}
|
|
1019
|
+
function V(e, t, n) {
|
|
1020
|
+
if (!t.recurseEverything && !Jt(e) || typeof e != "object") return e;
|
|
1021
|
+
if (e === null) return null;
|
|
1022
|
+
if (e instanceof Date) return e;
|
|
1023
|
+
if (et(e)) return V(e.get(), t, n);
|
|
1024
|
+
if (Jt(e) && Yt(e), t.detectCycles === !0 && e !== null && n.has(e)) return n.get(e);
|
|
1025
|
+
if (Y(e) || Array.isArray(e)) {
|
|
1026
|
+
var r = B(n, e, [], t), i = e.map(function(e) {
|
|
1027
|
+
return V(e, t, n);
|
|
1028
|
+
});
|
|
1029
|
+
r.length = i.length;
|
|
1030
|
+
for (var a = 0, o = i.length; a < o; a++) r[a] = i[a];
|
|
1031
|
+
return r;
|
|
1032
|
+
}
|
|
1033
|
+
if (Z(e) || Object.getPrototypeOf(e) === Set.prototype) if (t.exportMapsAsObjects === !1) {
|
|
1034
|
+
var s = B(n, e, /* @__PURE__ */ new Set(), t);
|
|
1035
|
+
return e.forEach(function(e) {
|
|
1036
|
+
s.add(V(e, t, n));
|
|
1037
|
+
}), s;
|
|
1038
|
+
} else {
|
|
1039
|
+
var c = B(n, e, [], t);
|
|
1040
|
+
return e.forEach(function(e) {
|
|
1041
|
+
c.push(V(e, t, n));
|
|
1042
|
+
}), c;
|
|
1043
|
+
}
|
|
1044
|
+
if (X(e) || Object.getPrototypeOf(e) === Map.prototype) if (t.exportMapsAsObjects === !1) {
|
|
1045
|
+
var l = B(n, e, /* @__PURE__ */ new Map(), t);
|
|
1046
|
+
return e.forEach(function(e, r) {
|
|
1047
|
+
l.set(r, V(e, t, n));
|
|
1048
|
+
}), l;
|
|
1049
|
+
} else {
|
|
1050
|
+
var u = B(n, e, {}, t);
|
|
1051
|
+
return e.forEach(function(e, r) {
|
|
1052
|
+
u[r] = V(e, t, n);
|
|
1053
|
+
}), u;
|
|
1054
|
+
}
|
|
1055
|
+
var d = B(n, e, {}, t);
|
|
1056
|
+
return ee(e).forEach(function(r) {
|
|
1057
|
+
d[r] = V(e[r], t, n);
|
|
1058
|
+
}), d;
|
|
1059
|
+
}
|
|
1060
|
+
function Qt(e, t) {
|
|
1061
|
+
typeof t == "boolean" && (t = { detectCycles: t }), t || (t = Zt), t.detectCycles = t.detectCycles === void 0 ? t.recurseEverything === !0 : t.detectCycles === !0;
|
|
1062
|
+
var n;
|
|
1063
|
+
return t.detectCycles && (n = /* @__PURE__ */ new Map()), V(e, t, n);
|
|
1064
|
+
}
|
|
1065
|
+
function $t() {
|
|
1066
|
+
var e = [...arguments], t = !1;
|
|
1067
|
+
typeof e[e.length - 1] == "boolean" && (t = e.pop());
|
|
1068
|
+
var n = en(e);
|
|
1069
|
+
if (!n) return i(!1);
|
|
1070
|
+
n.isTracing === k.NONE && console.log("[mobx.trace] '" + n.name + "' tracing enabled"), n.isTracing = t ? k.BREAK : k.LOG;
|
|
1071
|
+
}
|
|
1072
|
+
function en(e) {
|
|
1073
|
+
switch (e.length) {
|
|
1074
|
+
case 0: return I.trackingDerivation;
|
|
1075
|
+
case 1: return $(e[0]);
|
|
1076
|
+
case 2: return $(e[0], e[1]);
|
|
1077
|
+
}
|
|
1078
|
+
}
|
|
1079
|
+
function H(e, t) {
|
|
1080
|
+
t === void 0 && (t = void 0), L();
|
|
1081
|
+
try {
|
|
1082
|
+
return e.apply(t);
|
|
1083
|
+
} finally {
|
|
1084
|
+
R();
|
|
1085
|
+
}
|
|
1086
|
+
}
|
|
1087
|
+
function tn(e, t, n) {
|
|
1088
|
+
return arguments.length === 1 || t && typeof t == "object" ? rn(e, t) : nn(e, t, n || {});
|
|
1089
|
+
}
|
|
1090
|
+
function nn(e, t, n) {
|
|
1091
|
+
var i;
|
|
1092
|
+
typeof n.timeout == "number" && (i = setTimeout(function() {
|
|
1093
|
+
if (!o[y].isDisposed) {
|
|
1094
|
+
o();
|
|
1095
|
+
var e = /* @__PURE__ */ Error("WHEN_TIMEOUT");
|
|
1096
|
+
if (n.onError) n.onError(e);
|
|
1097
|
+
else throw e;
|
|
1098
|
+
}
|
|
1099
|
+
}, n.timeout)), n.name = n.name || "When@" + r();
|
|
1100
|
+
var a = N(n.name + "-effect", t), o = Mt(function(t) {
|
|
1101
|
+
e() && (t.dispose(), i && clearTimeout(i), a());
|
|
1102
|
+
}, n);
|
|
1103
|
+
return o;
|
|
1104
|
+
}
|
|
1105
|
+
function rn(e, t) {
|
|
1106
|
+
var n, r = new Promise(function(r, i) {
|
|
1107
|
+
var a = nn(e, r, S(S({}, t), { onError: i }));
|
|
1108
|
+
n = function() {
|
|
1109
|
+
a(), i("WHEN_CANCELLED");
|
|
1110
|
+
};
|
|
1111
|
+
});
|
|
1112
|
+
return r.cancel = n, r;
|
|
1113
|
+
}
|
|
1114
|
+
function an(e) {
|
|
1115
|
+
return e[y];
|
|
1116
|
+
}
|
|
1117
|
+
function on(e) {
|
|
1118
|
+
return typeof e == "string" || typeof e == "number" || typeof e == "symbol";
|
|
1119
|
+
}
|
|
1120
|
+
var sn = {
|
|
1121
|
+
has: function(e, t) {
|
|
1122
|
+
if (t === y || t === "constructor" || t === fe) return !0;
|
|
1123
|
+
var n = an(e);
|
|
1124
|
+
return on(t) ? n.has(t) : t in e;
|
|
1125
|
+
},
|
|
1126
|
+
get: function(e, t) {
|
|
1127
|
+
if (t === y || t === "constructor" || t === fe) return e[t];
|
|
1128
|
+
var n = an(e), r = n.values.get(t);
|
|
1129
|
+
if (r instanceof b) {
|
|
1130
|
+
var i = r.get();
|
|
1131
|
+
return i === void 0 && n.has(t), i;
|
|
1132
|
+
}
|
|
1133
|
+
return on(t) && n.has(t), e[t];
|
|
1134
|
+
},
|
|
1135
|
+
set: function(e, t, n) {
|
|
1136
|
+
return on(t) ? (Xt(e, t, n), !0) : !1;
|
|
1137
|
+
},
|
|
1138
|
+
deleteProperty: function(e, t) {
|
|
1139
|
+
return on(t) ? (an(e).remove(t), !0) : !1;
|
|
1140
|
+
},
|
|
1141
|
+
ownKeys: function(e) {
|
|
1142
|
+
return an(e).keysAtom.reportObserved(), Reflect.ownKeys(e);
|
|
1143
|
+
},
|
|
1144
|
+
preventExtensions: function(e) {
|
|
1145
|
+
return i("Dynamic observable objects cannot be frozen"), !1;
|
|
1146
|
+
}
|
|
1147
|
+
};
|
|
1148
|
+
function cn(e) {
|
|
1149
|
+
var t = new Proxy(e, sn);
|
|
1150
|
+
return e[y].proxy = t, t;
|
|
1151
|
+
}
|
|
1152
|
+
function U(e) {
|
|
1153
|
+
return e.interceptors !== void 0 && e.interceptors.length > 0;
|
|
1154
|
+
}
|
|
1155
|
+
function ln(e, t) {
|
|
1156
|
+
var n = e.interceptors || (e.interceptors = []);
|
|
1157
|
+
return n.push(t), o(function() {
|
|
1158
|
+
var e = n.indexOf(t);
|
|
1159
|
+
e !== -1 && n.splice(e, 1);
|
|
1160
|
+
});
|
|
1161
|
+
}
|
|
1162
|
+
function W(e, t) {
|
|
1163
|
+
var n = j();
|
|
1164
|
+
try {
|
|
1165
|
+
for (var r = de(e.interceptors || []), i = 0, o = r.length; i < o && (t = r[i](t), a(!t || t.type, "Intercept handlers should return nothing or a change object"), t); i++);
|
|
1166
|
+
return t;
|
|
1167
|
+
} finally {
|
|
1168
|
+
M(n);
|
|
1169
|
+
}
|
|
1170
|
+
}
|
|
1171
|
+
function G(e) {
|
|
1172
|
+
return e.changeListeners !== void 0 && e.changeListeners.length > 0;
|
|
1173
|
+
}
|
|
1174
|
+
function K(e, t) {
|
|
1175
|
+
var n = e.changeListeners || (e.changeListeners = []);
|
|
1176
|
+
return n.push(t), o(function() {
|
|
1177
|
+
var e = n.indexOf(t);
|
|
1178
|
+
e !== -1 && n.splice(e, 1);
|
|
1179
|
+
});
|
|
1180
|
+
}
|
|
1181
|
+
function q(e, t) {
|
|
1182
|
+
var n = j(), r = e.changeListeners;
|
|
1183
|
+
if (r) {
|
|
1184
|
+
r = r.slice();
|
|
1185
|
+
for (var i = 0, a = r.length; i < a; i++) r[i](t);
|
|
1186
|
+
M(n);
|
|
1187
|
+
}
|
|
1188
|
+
}
|
|
1189
|
+
var un = 1e4, dn = {
|
|
1190
|
+
get: function(e, t) {
|
|
1191
|
+
return t === y ? e[y] : t === "length" ? e[y].getArrayLength() : typeof t == "number" ? J.get.call(e, t) : typeof t == "string" && !isNaN(t) ? J.get.call(e, parseInt(t)) : J.hasOwnProperty(t) ? J[t] : e[t];
|
|
1192
|
+
},
|
|
1193
|
+
set: function(e, t, n) {
|
|
1194
|
+
return t === "length" && e[y].setArrayLength(n), typeof t == "number" && J.set.call(e, t, n), typeof t == "symbol" || isNaN(t) ? e[t] = n : J.set.call(e, parseInt(t), n), !0;
|
|
1195
|
+
},
|
|
1196
|
+
preventExtensions: function(e) {
|
|
1197
|
+
return i("Observable arrays cannot be frozen"), !1;
|
|
1198
|
+
}
|
|
1199
|
+
};
|
|
1200
|
+
function fn(e, t, n, i) {
|
|
1201
|
+
n === void 0 && (n = "ObservableArray@" + r()), i === void 0 && (i = !1);
|
|
1202
|
+
var a = new pn(n, t, i);
|
|
1203
|
+
p(a.values, y, a);
|
|
1204
|
+
var o = new Proxy(a.values, dn);
|
|
1205
|
+
if (a.proxy = o, e && e.length) {
|
|
1206
|
+
var s = Qe(!0);
|
|
1207
|
+
a.spliceWithArray(0, 0, e), $e(s);
|
|
1208
|
+
}
|
|
1209
|
+
return o;
|
|
1210
|
+
}
|
|
1211
|
+
var pn = function() {
|
|
1212
|
+
function e(e, t, n) {
|
|
1213
|
+
this.owned = n, this.values = [], this.proxy = void 0, this.lastKnownLength = 0, this.atom = new b(e || "ObservableArray@" + r()), this.enhancer = function(n, r) {
|
|
1214
|
+
return t(n, r, e + "[..]");
|
|
1215
|
+
};
|
|
1216
|
+
}
|
|
1217
|
+
return e.prototype.dehanceValue = function(e) {
|
|
1218
|
+
return this.dehancer === void 0 ? e : this.dehancer(e);
|
|
1219
|
+
}, e.prototype.dehanceValues = function(e) {
|
|
1220
|
+
return this.dehancer !== void 0 && e.length > 0 ? e.map(this.dehancer) : e;
|
|
1221
|
+
}, e.prototype.intercept = function(e) {
|
|
1222
|
+
return ln(this, e);
|
|
1223
|
+
}, e.prototype.observe = function(e, t) {
|
|
1224
|
+
return t === void 0 && (t = !1), t && e({
|
|
1225
|
+
object: this.proxy,
|
|
1226
|
+
type: "splice",
|
|
1227
|
+
index: 0,
|
|
1228
|
+
added: this.values.slice(),
|
|
1229
|
+
addedCount: this.values.length,
|
|
1230
|
+
removed: [],
|
|
1231
|
+
removedCount: 0
|
|
1232
|
+
}), K(this, e);
|
|
1233
|
+
}, e.prototype.getArrayLength = function() {
|
|
1234
|
+
return this.atom.reportObserved(), this.values.length;
|
|
1235
|
+
}, e.prototype.setArrayLength = function(e) {
|
|
1236
|
+
if (typeof e != "number" || e < 0) throw Error("[mobx.array] Out of range: " + e);
|
|
1237
|
+
var t = this.values.length;
|
|
1238
|
+
if (e !== t) if (e > t) {
|
|
1239
|
+
for (var n = Array(e - t), r = 0; r < e - t; r++) n[r] = void 0;
|
|
1240
|
+
this.spliceWithArray(t, 0, n);
|
|
1241
|
+
} else this.spliceWithArray(e, t - e);
|
|
1242
|
+
}, e.prototype.updateArrayLength = function(e, t) {
|
|
1243
|
+
if (e !== this.lastKnownLength) throw Error("[mobx] Modification exception: the internal structure of an observable array was changed.");
|
|
1244
|
+
this.lastKnownLength += t;
|
|
1245
|
+
}, e.prototype.spliceWithArray = function(e, n, r) {
|
|
1246
|
+
var i = this;
|
|
1247
|
+
A(this.atom);
|
|
1248
|
+
var a = this.values.length;
|
|
1249
|
+
if (e === void 0 ? e = 0 : e > a ? e = a : e < 0 && (e = Math.max(0, a + e)), n = arguments.length === 1 ? a - e : n == null ? 0 : Math.max(0, Math.min(n, a - e)), r === void 0 && (r = t), U(this)) {
|
|
1250
|
+
var o = W(this, {
|
|
1251
|
+
object: this.proxy,
|
|
1252
|
+
type: "splice",
|
|
1253
|
+
index: e,
|
|
1254
|
+
removedCount: n,
|
|
1255
|
+
added: r
|
|
1256
|
+
});
|
|
1257
|
+
if (!o) return t;
|
|
1258
|
+
n = o.removedCount, r = o.added;
|
|
1259
|
+
}
|
|
1260
|
+
r = r.length === 0 ? r : r.map(function(e) {
|
|
1261
|
+
return i.enhancer(e, void 0);
|
|
1262
|
+
});
|
|
1263
|
+
var s = this.spliceItemsIntoValues(e, n, r);
|
|
1264
|
+
return (n !== 0 || r.length !== 0) && this.notifyArraySplice(e, r, s), this.dehanceValues(s);
|
|
1265
|
+
}, e.prototype.spliceItemsIntoValues = function(e, t, n) {
|
|
1266
|
+
var r;
|
|
1267
|
+
if (n.length < un) return (r = this.values).splice.apply(r, de([e, t], n));
|
|
1268
|
+
var i = this.values.slice(e, e + t);
|
|
1269
|
+
return this.values = this.values.slice(0, e).concat(n, this.values.slice(e + t)), i;
|
|
1270
|
+
}, e.prototype.notifyArrayChildUpdate = function(e, t, n) {
|
|
1271
|
+
var r = !this.owned && z(), i = G(this), a = i || r ? {
|
|
1272
|
+
object: this.proxy,
|
|
1273
|
+
type: "update",
|
|
1274
|
+
index: e,
|
|
1275
|
+
newValue: t,
|
|
1276
|
+
oldValue: n
|
|
1277
|
+
} : null;
|
|
1278
|
+
this.atom.reportChanged(), i && q(this, a);
|
|
1279
|
+
}, e.prototype.notifyArraySplice = function(e, t, n) {
|
|
1280
|
+
var r = !this.owned && z(), i = G(this), a = i || r ? {
|
|
1281
|
+
object: this.proxy,
|
|
1282
|
+
type: "splice",
|
|
1283
|
+
index: e,
|
|
1284
|
+
removed: n,
|
|
1285
|
+
added: t,
|
|
1286
|
+
removedCount: n.length,
|
|
1287
|
+
addedCount: t.length
|
|
1288
|
+
} : null;
|
|
1289
|
+
this.atom.reportChanged(), i && q(this, a);
|
|
1290
|
+
}, e;
|
|
1291
|
+
}(), J = {
|
|
1292
|
+
intercept: function(e) {
|
|
1293
|
+
return this[y].intercept(e);
|
|
1294
|
+
},
|
|
1295
|
+
observe: function(e, t) {
|
|
1296
|
+
return t === void 0 && (t = !1), this[y].observe(e, t);
|
|
1297
|
+
},
|
|
1298
|
+
clear: function() {
|
|
1299
|
+
return this.splice(0);
|
|
1300
|
+
},
|
|
1301
|
+
replace: function(e) {
|
|
1302
|
+
var t = this[y];
|
|
1303
|
+
return t.spliceWithArray(0, t.values.length, e);
|
|
1304
|
+
},
|
|
1305
|
+
toJS: function() {
|
|
1306
|
+
return this.slice();
|
|
1307
|
+
},
|
|
1308
|
+
toJSON: function() {
|
|
1309
|
+
return this.toJS();
|
|
1310
|
+
},
|
|
1311
|
+
splice: function(e, t) {
|
|
1312
|
+
var n = [...arguments].slice(2), r = this[y];
|
|
1313
|
+
switch (arguments.length) {
|
|
1314
|
+
case 0: return [];
|
|
1315
|
+
case 1: return r.spliceWithArray(e);
|
|
1316
|
+
case 2: return r.spliceWithArray(e, t);
|
|
1317
|
+
}
|
|
1318
|
+
return r.spliceWithArray(e, t, n);
|
|
1319
|
+
},
|
|
1320
|
+
spliceWithArray: function(e, t, n) {
|
|
1321
|
+
return this[y].spliceWithArray(e, t, n);
|
|
1322
|
+
},
|
|
1323
|
+
push: function() {
|
|
1324
|
+
var e = [...arguments], t = this[y];
|
|
1325
|
+
return t.spliceWithArray(t.values.length, 0, e), t.values.length;
|
|
1326
|
+
},
|
|
1327
|
+
pop: function() {
|
|
1328
|
+
return this.splice(Math.max(this[y].values.length - 1, 0), 1)[0];
|
|
1329
|
+
},
|
|
1330
|
+
shift: function() {
|
|
1331
|
+
return this.splice(0, 1)[0];
|
|
1332
|
+
},
|
|
1333
|
+
unshift: function() {
|
|
1334
|
+
var e = [...arguments], t = this[y];
|
|
1335
|
+
return t.spliceWithArray(0, 0, e), t.values.length;
|
|
1336
|
+
},
|
|
1337
|
+
reverse: function() {
|
|
1338
|
+
var e = this.slice();
|
|
1339
|
+
return e.reverse.apply(e, arguments);
|
|
1340
|
+
},
|
|
1341
|
+
sort: function(e) {
|
|
1342
|
+
var t = this.slice();
|
|
1343
|
+
return t.sort.apply(t, arguments);
|
|
1344
|
+
},
|
|
1345
|
+
remove: function(e) {
|
|
1346
|
+
var t = this[y], n = t.dehanceValues(t.values).indexOf(e);
|
|
1347
|
+
return n > -1 ? (this.splice(n, 1), !0) : !1;
|
|
1348
|
+
},
|
|
1349
|
+
get: function(e) {
|
|
1350
|
+
var t = this[y];
|
|
1351
|
+
if (t) {
|
|
1352
|
+
if (e < t.values.length) return t.atom.reportObserved(), t.dehanceValue(t.values[e]);
|
|
1353
|
+
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");
|
|
1354
|
+
}
|
|
1355
|
+
},
|
|
1356
|
+
set: function(e, t) {
|
|
1357
|
+
var n = this[y], r = n.values;
|
|
1358
|
+
if (e < r.length) {
|
|
1359
|
+
A(n.atom);
|
|
1360
|
+
var i = r[e];
|
|
1361
|
+
if (U(n)) {
|
|
1362
|
+
var a = W(n, {
|
|
1363
|
+
type: "update",
|
|
1364
|
+
object: n.proxy,
|
|
1365
|
+
index: e,
|
|
1366
|
+
newValue: t
|
|
1367
|
+
});
|
|
1368
|
+
if (!a) return;
|
|
1369
|
+
t = a.newValue;
|
|
1370
|
+
}
|
|
1371
|
+
t = n.enhancer(t, i), t !== i && (r[e] = t, n.notifyArrayChildUpdate(e, t, i));
|
|
1372
|
+
} else if (e === r.length) n.spliceWithArray(e, 0, [t]);
|
|
1373
|
+
else throw Error("[mobx.array] Index out of bounds, " + e + " is larger than " + r.length);
|
|
1374
|
+
}
|
|
1375
|
+
};
|
|
1376
|
+
[
|
|
1377
|
+
"concat",
|
|
1378
|
+
"flat",
|
|
1379
|
+
"includes",
|
|
1380
|
+
"indexOf",
|
|
1381
|
+
"join",
|
|
1382
|
+
"lastIndexOf",
|
|
1383
|
+
"slice",
|
|
1384
|
+
"toString",
|
|
1385
|
+
"toLocaleString"
|
|
1386
|
+
].forEach(function(e) {
|
|
1387
|
+
typeof Array.prototype[e] == "function" && (J[e] = function() {
|
|
1388
|
+
var t = this[y];
|
|
1389
|
+
t.atom.reportObserved();
|
|
1390
|
+
var n = t.dehanceValues(t.values);
|
|
1391
|
+
return n[e].apply(n, arguments);
|
|
1392
|
+
});
|
|
1393
|
+
}), [
|
|
1394
|
+
"every",
|
|
1395
|
+
"filter",
|
|
1396
|
+
"find",
|
|
1397
|
+
"findIndex",
|
|
1398
|
+
"flatMap",
|
|
1399
|
+
"forEach",
|
|
1400
|
+
"map",
|
|
1401
|
+
"some"
|
|
1402
|
+
].forEach(function(e) {
|
|
1403
|
+
typeof Array.prototype[e] == "function" && (J[e] = function(t, n) {
|
|
1404
|
+
var r = this, i = this[y];
|
|
1405
|
+
return i.atom.reportObserved(), i.dehanceValues(i.values)[e](function(e, i) {
|
|
1406
|
+
return t.call(n, e, i, r);
|
|
1407
|
+
}, n);
|
|
1408
|
+
});
|
|
1409
|
+
}), ["reduce", "reduceRight"].forEach(function(e) {
|
|
1410
|
+
J[e] = function() {
|
|
1411
|
+
var t = this, n = this[y];
|
|
1412
|
+
n.atom.reportObserved();
|
|
1413
|
+
var r = arguments[0];
|
|
1414
|
+
return arguments[0] = function(e, i, a) {
|
|
1415
|
+
return i = n.dehanceValue(i), r(e, i, a, t);
|
|
1416
|
+
}, n.values[e].apply(n.values, arguments);
|
|
1417
|
+
};
|
|
1418
|
+
});
|
|
1419
|
+
var mn = h("ObservableArrayAdministration", pn);
|
|
1420
|
+
function Y(e) {
|
|
1421
|
+
return l(e) && mn(e[y]);
|
|
1422
|
+
}
|
|
1423
|
+
var hn, gn = {}, _n = function() {
|
|
1424
|
+
function e(e, t, n) {
|
|
1425
|
+
if (t === void 0 && (t = ye), n === void 0 && (n = "ObservableMap@" + r()), this.enhancer = t, this.name = n, this[hn] = gn, this._keysAtom = ie(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");
|
|
1426
|
+
this._data = /* @__PURE__ */ new Map(), this._hasMap = /* @__PURE__ */ new Map(), this.merge(e);
|
|
1427
|
+
}
|
|
1428
|
+
return e.prototype._has = function(e) {
|
|
1429
|
+
return this._data.has(e);
|
|
1430
|
+
}, e.prototype.has = function(e) {
|
|
1431
|
+
var t = this;
|
|
1432
|
+
if (!I.trackingDerivation) return this._has(e);
|
|
1433
|
+
var n = this._hasMap.get(e);
|
|
1434
|
+
if (!n) {
|
|
1435
|
+
var r = n = new P(this._has(e), xe, this.name + "." + v(e) + "?", !1);
|
|
1436
|
+
this._hasMap.set(e, r), Rt(r, function() {
|
|
1437
|
+
return t._hasMap.delete(e);
|
|
1438
|
+
});
|
|
1439
|
+
}
|
|
1440
|
+
return n.get();
|
|
1441
|
+
}, e.prototype.set = function(e, t) {
|
|
1442
|
+
var n = this._has(e);
|
|
1443
|
+
if (U(this)) {
|
|
1444
|
+
var r = W(this, {
|
|
1445
|
+
type: n ? "update" : "add",
|
|
1446
|
+
object: this,
|
|
1447
|
+
newValue: t,
|
|
1448
|
+
name: e
|
|
1449
|
+
});
|
|
1450
|
+
if (!r) return this;
|
|
1451
|
+
t = r.newValue;
|
|
1452
|
+
}
|
|
1453
|
+
return n ? this._updateValue(e, t) : this._addValue(e, t), this;
|
|
1454
|
+
}, e.prototype.delete = function(e) {
|
|
1455
|
+
var t = this;
|
|
1456
|
+
if (A(this._keysAtom), U(this)) {
|
|
1457
|
+
var n = W(this, {
|
|
1458
|
+
type: "delete",
|
|
1459
|
+
object: this,
|
|
1460
|
+
name: e
|
|
1461
|
+
});
|
|
1462
|
+
if (!n) return !1;
|
|
1463
|
+
}
|
|
1464
|
+
if (this._has(e)) {
|
|
1465
|
+
var r = z(), i = G(this), n = i || r ? {
|
|
1466
|
+
type: "delete",
|
|
1467
|
+
object: this,
|
|
1468
|
+
oldValue: this._data.get(e).value,
|
|
1469
|
+
name: e
|
|
1470
|
+
} : null;
|
|
1471
|
+
return H(function() {
|
|
1472
|
+
t._keysAtom.reportChanged(), t._updateHasMapEntry(e, !1), t._data.get(e).setNewValue(void 0), t._data.delete(e);
|
|
1473
|
+
}), i && q(this, n), !0;
|
|
1474
|
+
}
|
|
1475
|
+
return !1;
|
|
1476
|
+
}, e.prototype._updateHasMapEntry = function(e, t) {
|
|
1477
|
+
var n = this._hasMap.get(e);
|
|
1478
|
+
n && n.setNewValue(t);
|
|
1479
|
+
}, e.prototype._updateValue = function(e, t) {
|
|
1480
|
+
var n = this._data.get(e);
|
|
1481
|
+
if (t = n.prepareNewValue(t), t !== I.UNCHANGED) {
|
|
1482
|
+
var r = z(), i = G(this), a = i || r ? {
|
|
1483
|
+
type: "update",
|
|
1484
|
+
object: this,
|
|
1485
|
+
oldValue: n.value,
|
|
1486
|
+
name: e,
|
|
1487
|
+
newValue: t
|
|
1488
|
+
} : null;
|
|
1489
|
+
n.setNewValue(t), i && q(this, a);
|
|
1490
|
+
}
|
|
1491
|
+
}, e.prototype._addValue = function(e, t) {
|
|
1492
|
+
var n = this;
|
|
1493
|
+
A(this._keysAtom), H(function() {
|
|
1494
|
+
var r = new P(t, n.enhancer, n.name + "." + v(e), !1);
|
|
1495
|
+
n._data.set(e, r), t = r.value, n._updateHasMapEntry(e, !0), n._keysAtom.reportChanged();
|
|
1496
|
+
});
|
|
1497
|
+
var r = z(), i = G(this), a = i || r ? {
|
|
1498
|
+
type: "add",
|
|
1499
|
+
object: this,
|
|
1500
|
+
name: e,
|
|
1501
|
+
newValue: t
|
|
1502
|
+
} : null;
|
|
1503
|
+
i && q(this, a);
|
|
1504
|
+
}, e.prototype.get = function(e) {
|
|
1505
|
+
return this.has(e) ? this.dehanceValue(this._data.get(e).get()) : this.dehanceValue(void 0);
|
|
1506
|
+
}, e.prototype.dehanceValue = function(e) {
|
|
1507
|
+
return this.dehancer === void 0 ? e : this.dehancer(e);
|
|
1508
|
+
}, e.prototype.keys = function() {
|
|
1509
|
+
return this._keysAtom.reportObserved(), this._data.keys();
|
|
1510
|
+
}, e.prototype.values = function() {
|
|
1511
|
+
var e = this, t = this.keys();
|
|
1512
|
+
return In({ next: function() {
|
|
1513
|
+
var n = t.next(), r = n.done, i = n.value;
|
|
1514
|
+
return {
|
|
1515
|
+
done: r,
|
|
1516
|
+
value: r ? void 0 : e.get(i)
|
|
1517
|
+
};
|
|
1518
|
+
} });
|
|
1519
|
+
}, e.prototype.entries = function() {
|
|
1520
|
+
var e = this, t = this.keys();
|
|
1521
|
+
return In({ next: function() {
|
|
1522
|
+
var n = t.next(), r = n.done, i = n.value;
|
|
1523
|
+
return {
|
|
1524
|
+
done: r,
|
|
1525
|
+
value: r ? void 0 : [i, e.get(i)]
|
|
1526
|
+
};
|
|
1527
|
+
} });
|
|
1528
|
+
}, e.prototype[hn = y, Symbol.iterator] = function() {
|
|
1529
|
+
return this.entries();
|
|
1530
|
+
}, e.prototype.forEach = function(e, t) {
|
|
1531
|
+
var n, r;
|
|
1532
|
+
try {
|
|
1533
|
+
for (var i = C(this), a = i.next(); !a.done; a = i.next()) {
|
|
1534
|
+
var o = w(a.value, 2), s = o[0], c = o[1];
|
|
1535
|
+
e.call(t, c, s, this);
|
|
1536
|
+
}
|
|
1537
|
+
} catch (e) {
|
|
1538
|
+
n = { error: e };
|
|
1539
|
+
} finally {
|
|
1540
|
+
try {
|
|
1541
|
+
a && !a.done && (r = i.return) && r.call(i);
|
|
1542
|
+
} finally {
|
|
1543
|
+
if (n) throw n.error;
|
|
1544
|
+
}
|
|
1545
|
+
}
|
|
1546
|
+
}, e.prototype.merge = function(e) {
|
|
1547
|
+
var t = this;
|
|
1548
|
+
return X(e) && (e = e.toJS()), H(function() {
|
|
1549
|
+
var n = Qe(!0);
|
|
1550
|
+
try {
|
|
1551
|
+
u(e) ? ee(e).forEach(function(n) {
|
|
1552
|
+
return t.set(n, e[n]);
|
|
1553
|
+
}) : Array.isArray(e) ? e.forEach(function(e) {
|
|
1554
|
+
var n = w(e, 2), r = n[0], i = n[1];
|
|
1555
|
+
return t.set(r, i);
|
|
1556
|
+
}) : g(e) ? (e.constructor !== Map && i("Cannot initialize from classes that inherit from Map: " + e.constructor.name), e.forEach(function(e, n) {
|
|
1557
|
+
return t.set(n, e);
|
|
1558
|
+
})) : e != null && i("Cannot initialize map from " + e);
|
|
1559
|
+
} finally {
|
|
1560
|
+
$e(n);
|
|
1561
|
+
}
|
|
1562
|
+
}), this;
|
|
1563
|
+
}, e.prototype.clear = function() {
|
|
1564
|
+
var e = this;
|
|
1565
|
+
H(function() {
|
|
1566
|
+
He(function() {
|
|
1567
|
+
var t, n;
|
|
1568
|
+
try {
|
|
1569
|
+
for (var r = C(e.keys()), i = r.next(); !i.done; i = r.next()) {
|
|
1570
|
+
var a = i.value;
|
|
1571
|
+
e.delete(a);
|
|
1572
|
+
}
|
|
1573
|
+
} catch (e) {
|
|
1574
|
+
t = { error: e };
|
|
1575
|
+
} finally {
|
|
1576
|
+
try {
|
|
1577
|
+
i && !i.done && (n = r.return) && n.call(r);
|
|
1578
|
+
} finally {
|
|
1579
|
+
if (t) throw t.error;
|
|
1580
|
+
}
|
|
1581
|
+
}
|
|
1582
|
+
});
|
|
1583
|
+
});
|
|
1584
|
+
}, e.prototype.replace = function(e) {
|
|
1585
|
+
var t = this;
|
|
1586
|
+
return H(function() {
|
|
1587
|
+
var n, r, i, a, o = d(e), s = /* @__PURE__ */ new Map(), c = !1;
|
|
1588
|
+
try {
|
|
1589
|
+
for (var l = C(t._data.keys()), u = l.next(); !u.done; u = l.next()) {
|
|
1590
|
+
var f = u.value;
|
|
1591
|
+
if (!o.has(f)) if (t.delete(f)) c = !0;
|
|
1592
|
+
else {
|
|
1593
|
+
var p = t._data.get(f);
|
|
1594
|
+
s.set(f, p);
|
|
1595
|
+
}
|
|
1596
|
+
}
|
|
1597
|
+
} catch (e) {
|
|
1598
|
+
n = { error: e };
|
|
1599
|
+
} finally {
|
|
1600
|
+
try {
|
|
1601
|
+
u && !u.done && (r = l.return) && r.call(l);
|
|
1602
|
+
} finally {
|
|
1603
|
+
if (n) throw n.error;
|
|
1604
|
+
}
|
|
1605
|
+
}
|
|
1606
|
+
try {
|
|
1607
|
+
for (var m = C(o.entries()), h = m.next(); !h.done; h = m.next()) {
|
|
1608
|
+
var g = w(h.value, 2), f = g[0], p = g[1], _ = t._data.has(f);
|
|
1609
|
+
if (t.set(f, p), t._data.has(f)) {
|
|
1610
|
+
var ee = t._data.get(f);
|
|
1611
|
+
s.set(f, ee), _ || (c = !0);
|
|
1612
|
+
}
|
|
1613
|
+
}
|
|
1614
|
+
} catch (e) {
|
|
1615
|
+
i = { error: e };
|
|
1616
|
+
} finally {
|
|
1617
|
+
try {
|
|
1618
|
+
h && !h.done && (a = m.return) && a.call(m);
|
|
1619
|
+
} finally {
|
|
1620
|
+
if (i) throw i.error;
|
|
1621
|
+
}
|
|
1622
|
+
}
|
|
1623
|
+
if (!c) if (t._data.size !== s.size) t._keysAtom.reportChanged();
|
|
1624
|
+
else for (var v = t._data.keys(), te = s.keys(), ne = v.next(), y = te.next(); !ne.done;) {
|
|
1625
|
+
if (ne.value !== y.value) {
|
|
1626
|
+
t._keysAtom.reportChanged();
|
|
1627
|
+
break;
|
|
1628
|
+
}
|
|
1629
|
+
ne = v.next(), y = te.next();
|
|
1630
|
+
}
|
|
1631
|
+
t._data = s;
|
|
1632
|
+
}), this;
|
|
1633
|
+
}, Object.defineProperty(e.prototype, "size", {
|
|
1634
|
+
get: function() {
|
|
1635
|
+
return this._keysAtom.reportObserved(), this._data.size;
|
|
1636
|
+
},
|
|
1637
|
+
enumerable: !0,
|
|
1638
|
+
configurable: !0
|
|
1639
|
+
}), e.prototype.toPOJO = function() {
|
|
1640
|
+
var e, t, n = {};
|
|
1641
|
+
try {
|
|
1642
|
+
for (var r = C(this), i = r.next(); !i.done; i = r.next()) {
|
|
1643
|
+
var a = w(i.value, 2), o = a[0], s = a[1];
|
|
1644
|
+
n[typeof o == "symbol" ? o : v(o)] = s;
|
|
1645
|
+
}
|
|
1646
|
+
} catch (t) {
|
|
1647
|
+
e = { error: t };
|
|
1648
|
+
} finally {
|
|
1649
|
+
try {
|
|
1650
|
+
i && !i.done && (t = r.return) && t.call(r);
|
|
1651
|
+
} finally {
|
|
1652
|
+
if (e) throw e.error;
|
|
1653
|
+
}
|
|
1654
|
+
}
|
|
1655
|
+
return n;
|
|
1656
|
+
}, e.prototype.toJS = function() {
|
|
1657
|
+
return new Map(this);
|
|
1658
|
+
}, e.prototype.toJSON = function() {
|
|
1659
|
+
return this.toPOJO();
|
|
1660
|
+
}, e.prototype.toString = function() {
|
|
1661
|
+
var e = this;
|
|
1662
|
+
return this.name + "[{ " + Array.from(this.keys()).map(function(t) {
|
|
1663
|
+
return v(t) + ": " + ("" + e.get(t));
|
|
1664
|
+
}).join(", ") + " }]";
|
|
1665
|
+
}, e.prototype.observe = function(e, t) {
|
|
1666
|
+
return K(this, e);
|
|
1667
|
+
}, e.prototype.intercept = function(e) {
|
|
1668
|
+
return ln(this, e);
|
|
1669
|
+
}, e;
|
|
1670
|
+
}(), X = h("ObservableMap", _n), vn, yn = {}, bn = function() {
|
|
1671
|
+
function e(e, t, n) {
|
|
1672
|
+
if (t === void 0 && (t = ye), n === void 0 && (n = "ObservableSet@" + r()), this.name = n, this[vn] = yn, this._data = /* @__PURE__ */ new Set(), this._atom = ie(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");
|
|
1673
|
+
this.enhancer = function(e, r) {
|
|
1674
|
+
return t(e, r, n);
|
|
1675
|
+
}, e && this.replace(e);
|
|
1676
|
+
}
|
|
1677
|
+
return e.prototype.dehanceValue = function(e) {
|
|
1678
|
+
return this.dehancer === void 0 ? e : this.dehancer(e);
|
|
1679
|
+
}, e.prototype.clear = function() {
|
|
1680
|
+
var e = this;
|
|
1681
|
+
H(function() {
|
|
1682
|
+
He(function() {
|
|
1683
|
+
var t, n;
|
|
1684
|
+
try {
|
|
1685
|
+
for (var r = C(e._data.values()), i = r.next(); !i.done; i = r.next()) {
|
|
1686
|
+
var a = i.value;
|
|
1687
|
+
e.delete(a);
|
|
1688
|
+
}
|
|
1689
|
+
} catch (e) {
|
|
1690
|
+
t = { error: e };
|
|
1691
|
+
} finally {
|
|
1692
|
+
try {
|
|
1693
|
+
i && !i.done && (n = r.return) && n.call(r);
|
|
1694
|
+
} finally {
|
|
1695
|
+
if (t) throw t.error;
|
|
1696
|
+
}
|
|
1697
|
+
}
|
|
1698
|
+
});
|
|
1699
|
+
});
|
|
1700
|
+
}, e.prototype.forEach = function(e, t) {
|
|
1701
|
+
var n, r;
|
|
1702
|
+
try {
|
|
1703
|
+
for (var i = C(this), a = i.next(); !a.done; a = i.next()) {
|
|
1704
|
+
var o = a.value;
|
|
1705
|
+
e.call(t, o, o, this);
|
|
1706
|
+
}
|
|
1707
|
+
} catch (e) {
|
|
1708
|
+
n = { error: e };
|
|
1709
|
+
} finally {
|
|
1710
|
+
try {
|
|
1711
|
+
a && !a.done && (r = i.return) && r.call(i);
|
|
1712
|
+
} finally {
|
|
1713
|
+
if (n) throw n.error;
|
|
1714
|
+
}
|
|
1715
|
+
}
|
|
1716
|
+
}, Object.defineProperty(e.prototype, "size", {
|
|
1717
|
+
get: function() {
|
|
1718
|
+
return this._atom.reportObserved(), this._data.size;
|
|
1719
|
+
},
|
|
1720
|
+
enumerable: !0,
|
|
1721
|
+
configurable: !0
|
|
1722
|
+
}), e.prototype.add = function(e) {
|
|
1723
|
+
var t = this;
|
|
1724
|
+
if (A(this._atom), U(this)) {
|
|
1725
|
+
var n = W(this, {
|
|
1726
|
+
type: "add",
|
|
1727
|
+
object: this,
|
|
1728
|
+
newValue: e
|
|
1729
|
+
});
|
|
1730
|
+
if (!n) return this;
|
|
1731
|
+
}
|
|
1732
|
+
if (!this.has(e)) {
|
|
1733
|
+
H(function() {
|
|
1734
|
+
t._data.add(t.enhancer(e, void 0)), t._atom.reportChanged();
|
|
1735
|
+
});
|
|
1736
|
+
var r = z(), i = G(this), n = i || r ? {
|
|
1737
|
+
type: "add",
|
|
1738
|
+
object: this,
|
|
1739
|
+
newValue: e
|
|
1740
|
+
} : null;
|
|
1741
|
+
i && q(this, n);
|
|
1742
|
+
}
|
|
1743
|
+
return this;
|
|
1744
|
+
}, e.prototype.delete = function(e) {
|
|
1745
|
+
var t = this;
|
|
1746
|
+
if (U(this)) {
|
|
1747
|
+
var n = W(this, {
|
|
1748
|
+
type: "delete",
|
|
1749
|
+
object: this,
|
|
1750
|
+
oldValue: e
|
|
1751
|
+
});
|
|
1752
|
+
if (!n) return !1;
|
|
1753
|
+
}
|
|
1754
|
+
if (this.has(e)) {
|
|
1755
|
+
var r = z(), i = G(this), n = i || r ? {
|
|
1756
|
+
type: "delete",
|
|
1757
|
+
object: this,
|
|
1758
|
+
oldValue: e
|
|
1759
|
+
} : null;
|
|
1760
|
+
return H(function() {
|
|
1761
|
+
t._atom.reportChanged(), t._data.delete(e);
|
|
1762
|
+
}), i && q(this, n), !0;
|
|
1763
|
+
}
|
|
1764
|
+
return !1;
|
|
1765
|
+
}, e.prototype.has = function(e) {
|
|
1766
|
+
return this._atom.reportObserved(), this._data.has(this.dehanceValue(e));
|
|
1767
|
+
}, e.prototype.entries = function() {
|
|
1768
|
+
var e = 0, t = Array.from(this.keys()), n = Array.from(this.values());
|
|
1769
|
+
return In({ next: function() {
|
|
1770
|
+
var r = e;
|
|
1771
|
+
return e += 1, r < n.length ? {
|
|
1772
|
+
value: [t[r], n[r]],
|
|
1773
|
+
done: !1
|
|
1774
|
+
} : { done: !0 };
|
|
1775
|
+
} });
|
|
1776
|
+
}, e.prototype.keys = function() {
|
|
1777
|
+
return this.values();
|
|
1778
|
+
}, e.prototype.values = function() {
|
|
1779
|
+
this._atom.reportObserved();
|
|
1780
|
+
var e = this, t = 0, n = Array.from(this._data.values());
|
|
1781
|
+
return In({ next: function() {
|
|
1782
|
+
return t < n.length ? {
|
|
1783
|
+
value: e.dehanceValue(n[t++]),
|
|
1784
|
+
done: !1
|
|
1785
|
+
} : { done: !0 };
|
|
1786
|
+
} });
|
|
1787
|
+
}, e.prototype.replace = function(e) {
|
|
1788
|
+
var t = this;
|
|
1789
|
+
return Z(e) && (e = e.toJS()), H(function() {
|
|
1790
|
+
var n = Qe(!0);
|
|
1791
|
+
try {
|
|
1792
|
+
Array.isArray(e) || _(e) ? (t.clear(), e.forEach(function(e) {
|
|
1793
|
+
return t.add(e);
|
|
1794
|
+
})) : e != null && i("Cannot initialize set from " + e);
|
|
1795
|
+
} finally {
|
|
1796
|
+
$e(n);
|
|
1797
|
+
}
|
|
1798
|
+
}), this;
|
|
1799
|
+
}, e.prototype.observe = function(e, t) {
|
|
1800
|
+
return K(this, e);
|
|
1801
|
+
}, e.prototype.intercept = function(e) {
|
|
1802
|
+
return ln(this, e);
|
|
1803
|
+
}, e.prototype.toJS = function() {
|
|
1804
|
+
return new Set(this);
|
|
1805
|
+
}, e.prototype.toString = function() {
|
|
1806
|
+
return this.name + "[ " + Array.from(this).join(", ") + " ]";
|
|
1807
|
+
}, e.prototype[vn = y, Symbol.iterator] = function() {
|
|
1808
|
+
return this.values();
|
|
1809
|
+
}, e;
|
|
1810
|
+
}(), Z = h("ObservableSet", bn), xn = function() {
|
|
1811
|
+
function e(e, t, n, r) {
|
|
1812
|
+
t === void 0 && (t = /* @__PURE__ */ new Map()), this.target = e, this.values = t, this.name = n, this.defaultEnhancer = r, this.keysAtom = new b(n + ".keys");
|
|
1813
|
+
}
|
|
1814
|
+
return e.prototype.read = function(e) {
|
|
1815
|
+
return this.values.get(e).get();
|
|
1816
|
+
}, e.prototype.write = function(e, t) {
|
|
1817
|
+
var n = this.target, r = this.values.get(e);
|
|
1818
|
+
if (r instanceof F) {
|
|
1819
|
+
r.set(t);
|
|
1820
|
+
return;
|
|
1821
|
+
}
|
|
1822
|
+
if (U(this)) {
|
|
1823
|
+
var i = W(this, {
|
|
1824
|
+
type: "update",
|
|
1825
|
+
object: this.proxy || n,
|
|
1826
|
+
name: e,
|
|
1827
|
+
newValue: t
|
|
1828
|
+
});
|
|
1829
|
+
if (!i) return;
|
|
1830
|
+
t = i.newValue;
|
|
1831
|
+
}
|
|
1832
|
+
if (t = r.prepareNewValue(t), t !== I.UNCHANGED) {
|
|
1833
|
+
var a = G(this), o = z(), i = a || o ? {
|
|
1834
|
+
type: "update",
|
|
1835
|
+
object: this.proxy || n,
|
|
1836
|
+
oldValue: r.value,
|
|
1837
|
+
name: e,
|
|
1838
|
+
newValue: t
|
|
1839
|
+
} : null;
|
|
1840
|
+
r.setNewValue(t), a && q(this, i);
|
|
1841
|
+
}
|
|
1842
|
+
}, e.prototype.has = function(e) {
|
|
1843
|
+
var t = this.pendingKeys || (this.pendingKeys = /* @__PURE__ */ new Map()), n = t.get(e);
|
|
1844
|
+
return n ? n.get() : (n = new P(!!this.values.get(e), xe, this.name + "." + v(e) + "?", !1), t.set(e, n), n.get());
|
|
1845
|
+
}, e.prototype.addObservableProp = function(e, t, n) {
|
|
1846
|
+
n === void 0 && (n = this.defaultEnhancer);
|
|
1847
|
+
var r = this.target;
|
|
1848
|
+
if (U(this)) {
|
|
1849
|
+
var i = W(this, {
|
|
1850
|
+
object: this.proxy || r,
|
|
1851
|
+
name: e,
|
|
1852
|
+
type: "add",
|
|
1853
|
+
newValue: t
|
|
1854
|
+
});
|
|
1855
|
+
if (!i) return;
|
|
1856
|
+
t = i.newValue;
|
|
1857
|
+
}
|
|
1858
|
+
var a = new P(t, n, this.name + "." + v(e), !1);
|
|
1859
|
+
this.values.set(e, a), t = a.value, Object.defineProperty(r, e, Tn(e)), this.notifyPropertyAddition(e, t);
|
|
1860
|
+
}, e.prototype.addComputedProp = function(e, t, n) {
|
|
1861
|
+
var r = this.target;
|
|
1862
|
+
n.name = n.name || this.name + "." + v(t), this.values.set(t, new F(n)), (e === r || m(e, t)) && Object.defineProperty(e, t, Dn(t));
|
|
1863
|
+
}, e.prototype.remove = function(e) {
|
|
1864
|
+
if (this.values.has(e)) {
|
|
1865
|
+
var t = this.target;
|
|
1866
|
+
if (U(this)) {
|
|
1867
|
+
var n = W(this, {
|
|
1868
|
+
object: this.proxy || t,
|
|
1869
|
+
name: e,
|
|
1870
|
+
type: "remove"
|
|
1871
|
+
});
|
|
1872
|
+
if (!n) return;
|
|
1873
|
+
}
|
|
1874
|
+
try {
|
|
1875
|
+
L();
|
|
1876
|
+
var r = G(this), i = z(), a = this.values.get(e), o = a && a.get();
|
|
1877
|
+
if (a && a.set(void 0), this.keysAtom.reportChanged(), this.values.delete(e), this.pendingKeys) {
|
|
1878
|
+
var s = this.pendingKeys.get(e);
|
|
1879
|
+
s && s.set(!1);
|
|
1880
|
+
}
|
|
1881
|
+
delete this.target[e];
|
|
1882
|
+
var n = r || i ? {
|
|
1883
|
+
type: "remove",
|
|
1884
|
+
object: this.proxy || t,
|
|
1885
|
+
oldValue: o,
|
|
1886
|
+
name: e
|
|
1887
|
+
} : null;
|
|
1888
|
+
r && q(this, n);
|
|
1889
|
+
} finally {
|
|
1890
|
+
R();
|
|
1891
|
+
}
|
|
1892
|
+
}
|
|
1893
|
+
}, e.prototype.illegalAccess = function(e, t) {
|
|
1894
|
+
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");
|
|
1895
|
+
}, e.prototype.observe = function(e, t) {
|
|
1896
|
+
return K(this, e);
|
|
1897
|
+
}, e.prototype.intercept = function(e) {
|
|
1898
|
+
return ln(this, e);
|
|
1899
|
+
}, e.prototype.notifyPropertyAddition = function(e, t) {
|
|
1900
|
+
var n = G(this), r = z(), i = n || r ? {
|
|
1901
|
+
type: "add",
|
|
1902
|
+
object: this.proxy || this.target,
|
|
1903
|
+
name: e,
|
|
1904
|
+
newValue: t
|
|
1905
|
+
} : null;
|
|
1906
|
+
if (n && q(this, i), this.pendingKeys) {
|
|
1907
|
+
var a = this.pendingKeys.get(e);
|
|
1908
|
+
a && a.set(!0);
|
|
1909
|
+
}
|
|
1910
|
+
this.keysAtom.reportChanged();
|
|
1911
|
+
}, e.prototype.getKeys = function() {
|
|
1912
|
+
var e, t;
|
|
1913
|
+
this.keysAtom.reportObserved();
|
|
1914
|
+
var n = [];
|
|
1915
|
+
try {
|
|
1916
|
+
for (var r = C(this.values), i = r.next(); !i.done; i = r.next()) {
|
|
1917
|
+
var a = w(i.value, 2), o = a[0];
|
|
1918
|
+
a[1] instanceof P && n.push(o);
|
|
1919
|
+
}
|
|
1920
|
+
} catch (t) {
|
|
1921
|
+
e = { error: t };
|
|
1922
|
+
} finally {
|
|
1923
|
+
try {
|
|
1924
|
+
i && !i.done && (t = r.return) && t.call(r);
|
|
1925
|
+
} finally {
|
|
1926
|
+
if (e) throw e.error;
|
|
1927
|
+
}
|
|
1928
|
+
}
|
|
1929
|
+
return n;
|
|
1930
|
+
}, e;
|
|
1931
|
+
}();
|
|
1932
|
+
function Sn(e, t, n) {
|
|
1933
|
+
if (t === void 0 && (t = ""), n === void 0 && (n = ye), Object.prototype.hasOwnProperty.call(e, y)) return e[y];
|
|
1934
|
+
u(e) || (t = (e.constructor.name || "ObservableObject") + "@" + r()), t || (t = "ObservableObject@" + r());
|
|
1935
|
+
var i = new xn(e, /* @__PURE__ */ new Map(), v(t), n);
|
|
1936
|
+
return f(e, y, i), i;
|
|
1937
|
+
}
|
|
1938
|
+
var Cn = Object.create(null), wn = Object.create(null);
|
|
1939
|
+
function Tn(e) {
|
|
1940
|
+
return Cn[e] || (Cn[e] = {
|
|
1941
|
+
configurable: !0,
|
|
1942
|
+
enumerable: !0,
|
|
1943
|
+
get: function() {
|
|
1944
|
+
return this[y].read(e);
|
|
1945
|
+
},
|
|
1946
|
+
set: function(t) {
|
|
1947
|
+
this[y].write(e, t);
|
|
1948
|
+
}
|
|
1949
|
+
});
|
|
1950
|
+
}
|
|
1951
|
+
function En(e) {
|
|
1952
|
+
return e[y] || (T(e), e[y]);
|
|
1953
|
+
}
|
|
1954
|
+
function Dn(e) {
|
|
1955
|
+
return wn[e] || (wn[e] = {
|
|
1956
|
+
configurable: I.computedConfigurable,
|
|
1957
|
+
enumerable: !1,
|
|
1958
|
+
get: function() {
|
|
1959
|
+
return En(this).read(e);
|
|
1960
|
+
},
|
|
1961
|
+
set: function(t) {
|
|
1962
|
+
En(this).write(e, t);
|
|
1963
|
+
}
|
|
1964
|
+
});
|
|
1965
|
+
}
|
|
1966
|
+
var On = h("ObservableObjectAdministration", xn);
|
|
1967
|
+
function Q(e) {
|
|
1968
|
+
return l(e) ? (T(e), On(e[y])) : !1;
|
|
1969
|
+
}
|
|
1970
|
+
function $(e, t) {
|
|
1971
|
+
if (typeof e == "object" && e) {
|
|
1972
|
+
if (Y(e)) return t !== void 0 && i(!1), e[y].atom;
|
|
1973
|
+
if (Z(e)) return e[y];
|
|
1974
|
+
if (X(e)) {
|
|
1975
|
+
var n = e;
|
|
1976
|
+
if (t === void 0) return n._keysAtom;
|
|
1977
|
+
var r = n._data.get(t) || n._hasMap.get(t);
|
|
1978
|
+
return r || i(!1), r;
|
|
1979
|
+
}
|
|
1980
|
+
if (T(e), t && !e[y] && e[t], Q(e)) {
|
|
1981
|
+
if (!t) return i(!1);
|
|
1982
|
+
var r = e[y].values.get(t);
|
|
1983
|
+
return r || i(!1), r;
|
|
1984
|
+
}
|
|
1985
|
+
if (re(e) || tt(e) || St(e)) return e;
|
|
1986
|
+
} else if (typeof e == "function" && St(e[y])) return e[y];
|
|
1987
|
+
return i(!1);
|
|
1988
|
+
}
|
|
1989
|
+
function kn(e, t) {
|
|
1990
|
+
if (e || i("Expecting some object"), t !== void 0) return kn($(e, t));
|
|
1991
|
+
if (re(e) || tt(e) || St(e) || X(e) || Z(e)) return e;
|
|
1992
|
+
if (T(e), e[y]) return e[y];
|
|
1993
|
+
i(!1);
|
|
1994
|
+
}
|
|
1995
|
+
function An(e, t) {
|
|
1996
|
+
return (t === void 0 ? Q(e) || X(e) || Z(e) ? kn(e) : $(e) : $(e, t)).name;
|
|
1997
|
+
}
|
|
1998
|
+
var jn = Object.prototype.toString;
|
|
1999
|
+
function Mn(e, t, n) {
|
|
2000
|
+
return n === void 0 && (n = -1), Nn(e, t, n);
|
|
2001
|
+
}
|
|
2002
|
+
function Nn(e, t, n, r, i) {
|
|
2003
|
+
if (e === t) return e !== 0 || 1 / e == 1 / t;
|
|
2004
|
+
if (e == null || t == null) return !1;
|
|
2005
|
+
if (e !== e) return t !== t;
|
|
2006
|
+
var a = typeof e;
|
|
2007
|
+
if (a !== "function" && a !== "object" && typeof t != "object") return !1;
|
|
2008
|
+
var o = jn.call(e);
|
|
2009
|
+
if (o !== jn.call(t)) return !1;
|
|
2010
|
+
switch (o) {
|
|
2011
|
+
case "[object RegExp]":
|
|
2012
|
+
case "[object String]": return "" + e == "" + t;
|
|
2013
|
+
case "[object Number]": return +e == +e ? +e == 0 ? 1 / e == 1 / t : +e == +t : +t != +t;
|
|
2014
|
+
case "[object Date]":
|
|
2015
|
+
case "[object Boolean]": return +e == +t;
|
|
2016
|
+
case "[object Symbol]": return typeof Symbol < "u" && Symbol.valueOf.call(e) === Symbol.valueOf.call(t);
|
|
2017
|
+
case "[object Map]":
|
|
2018
|
+
case "[object Set]":
|
|
2019
|
+
n >= 0 && n++;
|
|
2020
|
+
break;
|
|
2021
|
+
}
|
|
2022
|
+
e = Pn(e), t = Pn(t);
|
|
2023
|
+
var s = o === "[object Array]";
|
|
2024
|
+
if (!s) {
|
|
2025
|
+
if (typeof e != "object" || typeof t != "object") return !1;
|
|
2026
|
+
var c = e.constructor, l = t.constructor;
|
|
2027
|
+
if (c !== l && !(typeof c == "function" && c instanceof c && typeof l == "function" && l instanceof l) && "constructor" in e && "constructor" in t) return !1;
|
|
2028
|
+
}
|
|
2029
|
+
if (n === 0) return !1;
|
|
2030
|
+
n < 0 && (n = -1), r = r || [], i = i || [];
|
|
2031
|
+
for (var u = r.length; u--;) if (r[u] === e) return i[u] === t;
|
|
2032
|
+
if (r.push(e), i.push(t), s) {
|
|
2033
|
+
if (u = e.length, u !== t.length) return !1;
|
|
2034
|
+
for (; u--;) if (!Nn(e[u], t[u], n - 1, r, i)) return !1;
|
|
2035
|
+
} else {
|
|
2036
|
+
var d = Object.keys(e), f = void 0;
|
|
2037
|
+
if (u = d.length, Object.keys(t).length !== u) return !1;
|
|
2038
|
+
for (; u--;) if (f = d[u], !(Fn(t, f) && Nn(e[f], t[f], n - 1, r, i))) return !1;
|
|
2039
|
+
}
|
|
2040
|
+
return r.pop(), i.pop(), !0;
|
|
2041
|
+
}
|
|
2042
|
+
function Pn(e) {
|
|
2043
|
+
return Y(e) ? e.slice() : g(e) || X(e) || _(e) || Z(e) ? Array.from(e.entries()) : e;
|
|
2044
|
+
}
|
|
2045
|
+
function Fn(e, t) {
|
|
2046
|
+
return Object.prototype.hasOwnProperty.call(e, t);
|
|
2047
|
+
}
|
|
2048
|
+
function In(e) {
|
|
2049
|
+
return e[Symbol.iterator] = Ln, e;
|
|
2050
|
+
}
|
|
2051
|
+
function Ln() {
|
|
2052
|
+
return this;
|
|
2053
|
+
}
|
|
2054
|
+
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.");
|
|
2055
|
+
(function() {
|
|
2056
|
+
function e() {}
|
|
2057
|
+
e.name;
|
|
2058
|
+
})(), typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__ == "object" && __MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({
|
|
2059
|
+
spy: wt,
|
|
2060
|
+
extras: { getDebugName: An },
|
|
2061
|
+
$mobx: y
|
|
2062
|
+
});
|
|
2063
|
+
//#endregion
|
|
2064
|
+
export { Fe as a, D as c, wt as d, Qt as f, tn as h, x as i, Ft as l, He as m, kt as n, Bt as o, H as p, Mt as r, Wt as s, _t as t, At as u };
|