@expofp/floorplan 3.1.13 → 3.1.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/{CookieConsent-Bw3oK-p1.js → CookieConsent-Jau4ROyh.js} +1154 -1154
- package/dist/browser/{Debug-cM5zeZ84.js → Debug-B0DTKyj4.js} +6 -6
- package/dist/browser/{Demo-ZB-Jl9mj.js → Demo-DHAqCrx_.js} +8 -8
- package/dist/browser/{Free-BaILsghL.js → Free-DLgSf53K.js} +8 -8
- package/dist/browser/{Gallery-Buc865iX.js → Gallery-CBECpMlB.js} +8 -8
- package/dist/browser/{GpsLoader-C-OlR79z.js → GpsLoader-D78set4y.js} +16 -16
- package/dist/browser/{KioskStore-CVRSdBbM.js → KioskStore-Da8gyZzb.js} +3 -3
- package/dist/browser/{Mapbox-prEgeqtQ.js → Mapbox-DbzVLM2d.js} +8 -8
- package/dist/browser/{SetKioskMode-TNLvZAWm.js → SetKioskMode-keUVRfe-.js} +7 -7
- package/dist/browser/{ShowKiosk-CnnLBsr0.js → ShowKiosk-2pRbsBL3.js} +10 -10
- package/dist/browser/{ThreeComponent-BORSPsAL.js → ThreeComponent-CVgKj-gS.js} +9 -9
- package/dist/browser/{TouchHand-By609eDM.js → TouchHand-DiS2NfrZ.js} +4 -4
- package/dist/browser/{ViewerMenuPanel-Bken9w9L.js → ViewerMenuPanel-CVCNoXRk.js} +7 -7
- package/dist/browser/{add-debug-secret-listener-Cogpdw0z.js → add-debug-secret-listener-Dui11cLW.js} +1 -1
- package/dist/browser/{boolean-editor-C8yOM6gc.js → boolean-editor-CWiXvHKa.js} +10 -10
- package/dist/browser/{bootIntercom-CoTIFNrp.js → bootIntercom-X7Q0qJ8P.js} +1 -1
- package/dist/browser/{box-CDTEWyhk.js → box-DZckrsYm.js} +5 -5
- package/dist/browser/{browser-i2x06Taw.js → browser-mjnFK9ca.js} +2 -2
- package/dist/browser/bundle.json +53 -53
- package/dist/browser/{classnames-Cd3n4YpU.js → classnames-B4weq2Ty.js} +2 -2
- package/dist/browser/{client-C764iZSN.js → client-NJkFIlRf.js} +4 -4
- package/dist/browser/{data-Cr4kCufX.js → data-B0LDCr9E.js} +3 -3
- package/dist/browser/{debug-overlay-BTiy7adc.js → debug-overlay-CBaewbg-.js} +11 -11
- package/dist/browser/{debug-ui-1B-O-gkR.js → debug-ui-C5CQj4oF.js} +6 -6
- package/dist/browser/{dist-BkTYDcWj.js → dist-CAg6bo_9.js} +5 -5
- package/dist/browser/{dist-DQ2_5GNh.js → dist-DKWUThwo.js} +3 -3
- package/dist/browser/{dist-KUfLT3TG.js → dist-DtaqwcIk.js} +6 -6
- package/dist/browser/{efp-debug-init-BgUJd85n.js → efp-debug-init-CsStoKRb.js} +2 -2
- package/dist/browser/{enum-editor-sNO1uQI8.js → enum-editor-B6PFZoRZ.js} +11 -11
- package/dist/browser/{exports-C7rHdUj-.js → exports-CVRRKgWx.js} +1 -1
- package/dist/browser/{favicon-B_zFwxxh.js → favicon-DUYMhzqt.js} +1 -1
- package/dist/browser/{fetch-retry.umd-0dNy8QW_.js → fetch-retry.umd-DYkr3oJ8.js} +2 -2
- package/dist/browser/{flex-CqjtImsX.js → flex-BIK48-5b.js} +6 -6
- package/dist/browser/{flex.props-nEtxNVS6.js → flex.props-De2GuHrM.js} +2 -2
- package/dist/browser/{floorplan.loader-D79yVyYt.js → floorplan.loader-BlkC19U8.js} +22 -22
- package/dist/browser/{floorplan.ready-DKbBmNeQ.js → floorplan.ready-DV5Rehny.js} +15 -15
- package/dist/browser/{fuse-Cp0r9jDo.js → fuse-DW0EmQwO.js} +2 -2
- package/dist/browser/index.js +12 -12
- package/dist/browser/{is-debug-DukrtRMA.js → is-debug-bXQ-_ZFu.js} +647 -639
- package/dist/browser/{jsx-runtime-BIGAPFGy.js → jsx-runtime-Dwqsy2SF.js} +2 -2
- package/dist/browser/{lib-DEQ5HkJU.js → lib-QAlhuFMi.js} +4 -4
- package/dist/browser/{main-BVC2ZP7O.js → main-BGOSuQXG.js} +1 -1
- package/dist/browser/{mobx-BG_Oieyv.js → mobx-JlhCeSfI.js} +4 -4
- package/dist/browser/{particles.min-9JyrSnxE.js → particles.min-B8JVoWiC.js} +2 -2
- package/dist/browser/{prop-types-CfA0wnDd.js → prop-types-B79OvOGn.js} +2 -2
- package/dist/browser/{react-BanOPiQr.js → react-4sXQr-K3.js} +2 -2
- package/dist/browser/{react-dom-8FN3trc4.js → react-dom-DUqtXrhB.js} +3 -3
- package/dist/browser/{reset-all-settings-B65-H1In.js → reset-all-settings-BJ-mpqBY.js} +7 -7
- package/dist/browser/{rolldown-runtime-CJulXBpQ.js → rolldown-runtime-r2RAXlih.js} +1 -1
- package/dist/browser/{settings-BF7tQpXy.js → settings-BbED0LMr.js} +2 -2
- package/dist/browser/{settings-item-DeGIeTFU.js → settings-item-B7vBwblm.js} +6 -6
- package/dist/browser/{store-CajkKGHG.js → store-lLHC57GH.js} +982 -982
- package/dist/browser/{string-editor-DTh4109K.js → string-editor-DiAnwUbd.js} +8 -8
- package/dist/browser/{theme-CDTiXq4t.js → theme-CPrp516O.js} +8 -8
- package/dist/browser/{ui-CqtN1zR0.js → ui-4Pe0LAdA.js} +8 -8
- package/dist/esm/components/Map/Map.js +1 -1
- package/dist/esm/constants.d.ts +1 -0
- package/dist/esm/constants.js +1 -1
- package/dist/esm/tools/handleDebugMode.js +1 -1
- package/dist/esm/utils/is-debug.d.ts +11 -0
- package/dist/esm/utils/is-debug.js +1 -1
- package/package.json +3 -3
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
(function() {
|
|
2
2
|
try {
|
|
3
3
|
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
4
|
-
e.SENTRY_RELEASE = { id: "3.1.
|
|
4
|
+
e.SENTRY_RELEASE = { id: "3.1.14" };
|
|
5
5
|
var t = new e.Error().stack;
|
|
6
|
-
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "
|
|
6
|
+
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "c59981a7-d0c1-4954-930d-a8eea937215c", e._sentryDebugIdIdentifier = "sentry-dbid-c59981a7-d0c1-4954-930d-a8eea937215c");
|
|
7
7
|
} catch {}
|
|
8
8
|
})();
|
|
9
|
-
import { r as e, t } from "./rolldown-runtime-
|
|
10
|
-
import { t as n } from "./browser-
|
|
9
|
+
import { r as e, t } from "./rolldown-runtime-r2RAXlih.js";
|
|
10
|
+
import { t as n } from "./browser-mjnFK9ca.js";
|
|
11
11
|
//#region src/tools/logger.ts
|
|
12
12
|
var r = /* @__PURE__ */ e(n(), 1), i = class {
|
|
13
13
|
constructor() {
|
|
@@ -44,31 +44,31 @@ function a(e, t) {
|
|
|
44
44
|
e.apply(e, t);
|
|
45
45
|
} catch {}
|
|
46
46
|
}
|
|
47
|
-
var o = new i(), s = "___visibility", c = "previewMode", l = "___preview_mode", u = "data-preview-mode", d = "booths", f = "kiosk", p = "setkiosk", m = "expofp-map-settings", h = "debug", g = "build-route",
|
|
47
|
+
var o = new i(), s = "___visibility", c = "previewMode", l = "___preview_mode", u = "data-preview-mode", d = "booths", f = "kiosk", p = "setkiosk", m = "expofp-map-settings", h = "debug", g = "efp:debug", _ = "build-route", v = "planner", y = "source", b = "from", x = "pathway", ee = 1e3, S = "lang", te = "language", ne = "uiscale", re = "resetuiscale", ie = "___ui-scale", ae = "--expofp-font-face", oe = "--expofp-booth-main-weight", se = "--expofp-booth-details-weight", C = "--expofp-exhibitor-main-weight", ce = "--expofp-exhibitor-details-weight", le = "--expofp-booth-special-weight", ue = "efp-compass-permission-granted", de = "viewermode", fe = "___viewer_mode", pe = new URL(
|
|
48
48
|
/* @vite-ignore */
|
|
49
49
|
".",
|
|
50
50
|
import.meta.url
|
|
51
51
|
).href;
|
|
52
|
-
|
|
53
|
-
var
|
|
54
|
-
function he() {
|
|
55
|
-
return new URLSearchParams(decodeURIComponent(window.location.search)).get(me);
|
|
56
|
-
}
|
|
52
|
+
pe.endsWith("/") || (pe += "/");
|
|
53
|
+
var me = pe, he = "rt";
|
|
57
54
|
function ge() {
|
|
58
|
-
|
|
59
|
-
|
|
55
|
+
return new URLSearchParams(decodeURIComponent(window.location.search)).get(he);
|
|
56
|
+
}
|
|
57
|
+
function _e() {
|
|
58
|
+
let e = ge();
|
|
59
|
+
return e || (e = sessionStorage.getItem(he)), e;
|
|
60
60
|
}
|
|
61
|
-
function
|
|
62
|
-
sessionStorage.setItem(
|
|
61
|
+
function ve(e) {
|
|
62
|
+
sessionStorage.setItem(he, e);
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function ye(e, t) {
|
|
65
65
|
let n = new URL(e, "https://app.expofp.com/");
|
|
66
66
|
for (let [e, r] of Object.entries(t)) n.searchParams.set(e, r);
|
|
67
67
|
return n.href;
|
|
68
68
|
}
|
|
69
69
|
//#endregion
|
|
70
70
|
//#region src/utils/browser.ts
|
|
71
|
-
var
|
|
71
|
+
var be = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
|
|
72
72
|
(function(n, r) {
|
|
73
73
|
typeof e == "object" && typeof t == "object" ? t.exports = r() : typeof define == "function" && define.amd ? define([], r) : typeof e == "object" ? e.bowser = r() : n.bowser = r();
|
|
74
74
|
})(e, (function() {
|
|
@@ -1767,11 +1767,11 @@ var ye = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
|
|
|
1767
1767
|
}
|
|
1768
1768
|
});
|
|
1769
1769
|
}));
|
|
1770
|
-
})))(), 1),
|
|
1771
|
-
o.log("Browser",
|
|
1770
|
+
})))(), 1), xe, Se = window.navigator.userAgent, Ce = be.default.getParser(Se);
|
|
1771
|
+
o.log("Browser", Ce.getBrowserName(), Ce.getBrowserVersion(), Ce.getOSName(), (xe = Ce.getEngine()) == null ? void 0 : xe.name);
|
|
1772
1772
|
//#endregion
|
|
1773
1773
|
//#region src/utils/is-from-designer.ts
|
|
1774
|
-
var
|
|
1774
|
+
var we = document.referrer && (document.referrer.indexOf("app.expofp.com") > -1 || document.referrer.indexOf("app-show.expofp.com") > -1), Te = /* @__PURE__ */ t(((e, t) => {
|
|
1775
1775
|
(function() {
|
|
1776
1776
|
function e(e, t) {
|
|
1777
1777
|
document.addEventListener ? e.addEventListener("scroll", t, !1) : e.attachEvent("scroll", t);
|
|
@@ -1871,49 +1871,49 @@ var Ce = document.referrer && (document.referrer.indexOf("app.expofp.com") > -1
|
|
|
1871
1871
|
});
|
|
1872
1872
|
}, typeof t == "object" ? t.exports = s : (window.FontFaceObserver = s, window.FontFaceObserver.prototype.load = s.prototype.load);
|
|
1873
1873
|
})();
|
|
1874
|
-
})),
|
|
1875
|
-
function
|
|
1876
|
-
if (!
|
|
1877
|
-
return
|
|
1874
|
+
})), Ee, De = new Uint8Array(16);
|
|
1875
|
+
function Oe() {
|
|
1876
|
+
if (!Ee && (Ee = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !Ee)) throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
1877
|
+
return Ee(De);
|
|
1878
1878
|
}
|
|
1879
1879
|
//#endregion
|
|
1880
1880
|
//#region ../../node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/esm-browser/stringify.js
|
|
1881
1881
|
var w = [];
|
|
1882
1882
|
for (let e = 0; e < 256; ++e) w.push((e + 256).toString(16).slice(1));
|
|
1883
|
-
function
|
|
1883
|
+
function ke(e, t = 0) {
|
|
1884
1884
|
return w[e[t + 0]] + w[e[t + 1]] + w[e[t + 2]] + w[e[t + 3]] + "-" + w[e[t + 4]] + w[e[t + 5]] + "-" + w[e[t + 6]] + w[e[t + 7]] + "-" + w[e[t + 8]] + w[e[t + 9]] + "-" + w[e[t + 10]] + w[e[t + 11]] + w[e[t + 12]] + w[e[t + 13]] + w[e[t + 14]] + w[e[t + 15]];
|
|
1885
1885
|
}
|
|
1886
|
-
var
|
|
1886
|
+
var Ae = { randomUUID: typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto) };
|
|
1887
1887
|
//#endregion
|
|
1888
1888
|
//#region ../../node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/esm-browser/v4.js
|
|
1889
|
-
function
|
|
1890
|
-
if (
|
|
1889
|
+
function je(e, t, n) {
|
|
1890
|
+
if (Ae.randomUUID && !t && !e) return Ae.randomUUID();
|
|
1891
1891
|
e = e || {};
|
|
1892
|
-
let r = e.random || (e.rng ||
|
|
1892
|
+
let r = e.random || (e.rng || Oe)();
|
|
1893
1893
|
if (r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, t) {
|
|
1894
1894
|
n = n || 0;
|
|
1895
1895
|
for (let e = 0; e < 16; ++e) t[n + e] = r[e];
|
|
1896
1896
|
return t;
|
|
1897
1897
|
}
|
|
1898
|
-
return
|
|
1898
|
+
return ke(r);
|
|
1899
1899
|
}
|
|
1900
1900
|
//#endregion
|
|
1901
1901
|
//#region src/tools/loaders.ts
|
|
1902
|
-
var
|
|
1903
|
-
async function
|
|
1902
|
+
var Me = /* @__PURE__ */ e(Te(), 1);
|
|
1903
|
+
async function Ne(e) {
|
|
1904
1904
|
return await (await fetch(e, { credentials: "same-origin" })).json();
|
|
1905
1905
|
}
|
|
1906
|
-
function
|
|
1906
|
+
function Pe(e, t) {
|
|
1907
1907
|
let n = document.createElement("link");
|
|
1908
1908
|
n.rel = "stylesheet", n.href = e, n.setAttribute("fetchpriority", "high"), t.appendChild(n);
|
|
1909
1909
|
}
|
|
1910
|
-
async function
|
|
1911
|
-
return e =
|
|
1910
|
+
async function Fe(e) {
|
|
1911
|
+
return e = we && e.indexOf("?") === -1 ? `${e}?v=${(/* @__PURE__ */ new Date()).getMilliseconds()}` : e, new Promise(function(t, n) {
|
|
1912
1912
|
let r = document.createElement("script");
|
|
1913
|
-
r.src =
|
|
1913
|
+
r.src = ze(e), r.setAttribute("fetchpriority", "high"), r.onload = t, r.onerror = t, o.log("Injecting script:", r.src), document.head.appendChild(r);
|
|
1914
1914
|
});
|
|
1915
1915
|
}
|
|
1916
|
-
async function
|
|
1916
|
+
async function Ie(e, t, n) {
|
|
1917
1917
|
var r;
|
|
1918
1918
|
n = {
|
|
1919
1919
|
style: "normal",
|
|
@@ -1921,8 +1921,8 @@ async function Fe(e, t, n) {
|
|
|
1921
1921
|
...n || {}
|
|
1922
1922
|
};
|
|
1923
1923
|
let i = `url("${t}")`;
|
|
1924
|
-
if (!window.FontFace) return e.startsWith("Font Awesome") ||
|
|
1925
|
-
e.indexOf(" ") !== -1 && ((r =
|
|
1924
|
+
if (!window.FontFace) return e.startsWith("Font Awesome") || Le(e, i, n), Promise.resolve();
|
|
1925
|
+
e.indexOf(" ") !== -1 && ((r = Ce.getEngine()) == null ? void 0 : r.name) === "Gecko" && (e = `'${e}'`);
|
|
1926
1926
|
let a;
|
|
1927
1927
|
try {
|
|
1928
1928
|
a = new FontFace(e, i, n);
|
|
@@ -1931,23 +1931,23 @@ async function Fe(e, t, n) {
|
|
|
1931
1931
|
}
|
|
1932
1932
|
return document.fonts.add(a), a.load();
|
|
1933
1933
|
}
|
|
1934
|
-
function
|
|
1934
|
+
function Le(e, t, n) {
|
|
1935
1935
|
let r = document.createElement("style");
|
|
1936
1936
|
r.appendChild(document.createTextNode(`@font-face { font-family: ${e}; font-weight: ${n.weight}; font-style: ${n.style}; src: ${t} format('woff2'); font-display: swap; }`)), document.head.appendChild(r);
|
|
1937
1937
|
let i = document.createElement("div");
|
|
1938
1938
|
i.setAttribute("style", `font-family: oswald; font-weight: ${n.weight}; position: fixed; left: -1000px; top: 0; visibility: hidden`), i.innerHTML = "Oswald", document.body.appendChild(i);
|
|
1939
1939
|
}
|
|
1940
|
-
async function
|
|
1940
|
+
async function Re(e) {
|
|
1941
1941
|
var t;
|
|
1942
1942
|
let n = getComputedStyle(document.documentElement).getPropertyValue("--expofp-font-face") || ((t = e.match(/--expofp-font-face:\s*([^;]*)/)) == null ? void 0 : t[1]);
|
|
1943
1943
|
if (!n) return;
|
|
1944
|
-
let r = n.replace(/"/g, "").split(", ").map((e) => e.trim()).map((e) => new
|
|
1944
|
+
let r = n.replace(/"/g, "").split(", ").map((e) => e.trim()).map((e) => new Me.default(e).load());
|
|
1945
1945
|
return Promise.allSettled(r);
|
|
1946
1946
|
}
|
|
1947
|
-
function
|
|
1947
|
+
function ze(e) {
|
|
1948
1948
|
try {
|
|
1949
1949
|
let t = window.__fpDataVersion;
|
|
1950
|
-
t || (t =
|
|
1950
|
+
t || (t = je().replace(/\D/g, ""));
|
|
1951
1951
|
let [n, r = ""] = e.split("?"), i = new URLSearchParams(r);
|
|
1952
1952
|
if (i.has("v")) return e;
|
|
1953
1953
|
i.set("v", t);
|
|
@@ -1959,7 +1959,7 @@ function Re(e) {
|
|
|
1959
1959
|
}
|
|
1960
1960
|
//#endregion
|
|
1961
1961
|
//#region src/utils/urlEncoding.ts
|
|
1962
|
-
function
|
|
1962
|
+
function Be(e) {
|
|
1963
1963
|
if (!e || e.length === 0) return "";
|
|
1964
1964
|
let t = e.map((e) => encodeURIComponent(e.trim())).join(",");
|
|
1965
1965
|
return o.log("URLEncoding: encoding string array:", {
|
|
@@ -1967,7 +1967,7 @@ function ze(e) {
|
|
|
1967
1967
|
encoded: t
|
|
1968
1968
|
}), t;
|
|
1969
1969
|
}
|
|
1970
|
-
function
|
|
1970
|
+
function Ve(e) {
|
|
1971
1971
|
if (!e) return [];
|
|
1972
1972
|
try {
|
|
1973
1973
|
let t = e.split(",").map((e) => decodeURIComponent(e.trim())).filter(Boolean);
|
|
@@ -1979,7 +1979,7 @@ function Be(e) {
|
|
|
1979
1979
|
return o.warn("URLEncoding: failed to decode string array:", e, t), [];
|
|
1980
1980
|
}
|
|
1981
1981
|
}
|
|
1982
|
-
function
|
|
1982
|
+
function He(e) {
|
|
1983
1983
|
if (!e) return null;
|
|
1984
1984
|
let t = encodeURIComponent(e.trim());
|
|
1985
1985
|
return o.log("URLEncoding: encoding string:", {
|
|
@@ -1987,7 +1987,7 @@ function Ve(e) {
|
|
|
1987
1987
|
encoded: t
|
|
1988
1988
|
}), t;
|
|
1989
1989
|
}
|
|
1990
|
-
function
|
|
1990
|
+
function Ue(e) {
|
|
1991
1991
|
if (!e) return null;
|
|
1992
1992
|
try {
|
|
1993
1993
|
let t = decodeURIComponent(e.trim());
|
|
@@ -1999,38 +1999,38 @@ function He(e) {
|
|
|
1999
1999
|
return o.warn("URLEncoding: failed to decode string:", e, t), null;
|
|
2000
2000
|
}
|
|
2001
2001
|
}
|
|
2002
|
-
function
|
|
2002
|
+
function We(e) {
|
|
2003
2003
|
return e.map((e) => e.toLowerCase());
|
|
2004
2004
|
}
|
|
2005
|
-
function
|
|
2005
|
+
function Ge(e) {
|
|
2006
2006
|
return e ? e.toLowerCase() : null;
|
|
2007
2007
|
}
|
|
2008
2008
|
//#endregion
|
|
2009
2009
|
//#region src/utils/index.ts
|
|
2010
|
-
function
|
|
2010
|
+
function Ke(e) {
|
|
2011
2011
|
return e * parseFloat(getComputedStyle(document.documentElement).fontSize);
|
|
2012
2012
|
}
|
|
2013
|
-
function
|
|
2013
|
+
function qe(e, t) {
|
|
2014
2014
|
let n = [];
|
|
2015
2015
|
for (let r = 0; r < e.length; r += t) n.push(e.slice(r, r + t));
|
|
2016
2016
|
return n;
|
|
2017
2017
|
}
|
|
2018
|
-
function
|
|
2018
|
+
function Je(e) {
|
|
2019
2019
|
e.sort(function(e, t) {
|
|
2020
2020
|
var n = e.name.toLowerCase(), r = t.name.toLowerCase();
|
|
2021
2021
|
return n < r ? -1 : +(n > r);
|
|
2022
2022
|
});
|
|
2023
2023
|
}
|
|
2024
|
-
var
|
|
2025
|
-
if (!
|
|
2024
|
+
var Ye = document.createElement("canvas"), Xe = !!(Ye.getContext("webgl") || Ye.getContext("experimental-webgl"));
|
|
2025
|
+
if (!Xe) {
|
|
2026
2026
|
let e = document.createElement("div");
|
|
2027
2027
|
e.innerHTML = "<!--no webgl-->", document.body.appendChild(e);
|
|
2028
2028
|
}
|
|
2029
|
-
function
|
|
2029
|
+
function Ze(e) {
|
|
2030
2030
|
for (var t = e.length, n, r; t !== 0;) r = Math.floor(Math.random() * t), --t, n = e[t], e[t] = e[r], e[r] = n;
|
|
2031
2031
|
return e;
|
|
2032
2032
|
}
|
|
2033
|
-
function
|
|
2033
|
+
function Qe(e) {
|
|
2034
2034
|
return new Promise((t) => setTimeout(t, e));
|
|
2035
2035
|
}
|
|
2036
2036
|
//#endregion
|
|
@@ -2045,7 +2045,7 @@ function T(e) {
|
|
|
2045
2045
|
}
|
|
2046
2046
|
//#endregion
|
|
2047
2047
|
//#region ../../node_modules/.pnpm/@babel+runtime@7.28.6/node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
|
2048
|
-
function
|
|
2048
|
+
function $e(e, t) {
|
|
2049
2049
|
if (T(e) != "object" || !e) return e;
|
|
2050
2050
|
var n = e[Symbol.toPrimitive];
|
|
2051
2051
|
if (n !== void 0) {
|
|
@@ -2057,14 +2057,14 @@ function Qe(e, t) {
|
|
|
2057
2057
|
}
|
|
2058
2058
|
//#endregion
|
|
2059
2059
|
//#region ../../node_modules/.pnpm/@babel+runtime@7.28.6/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
|
2060
|
-
function
|
|
2061
|
-
var t =
|
|
2060
|
+
function et(e) {
|
|
2061
|
+
var t = $e(e, "string");
|
|
2062
2062
|
return T(t) == "symbol" ? t : t + "";
|
|
2063
2063
|
}
|
|
2064
2064
|
//#endregion
|
|
2065
2065
|
//#region ../../node_modules/.pnpm/@babel+runtime@7.28.6/node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
2066
|
-
function
|
|
2067
|
-
return (t =
|
|
2066
|
+
function tt(e, t, n) {
|
|
2067
|
+
return (t = et(t)) in e ? Object.defineProperty(e, t, {
|
|
2068
2068
|
value: n,
|
|
2069
2069
|
enumerable: !0,
|
|
2070
2070
|
configurable: !0,
|
|
@@ -2079,7 +2079,7 @@ function E(e) {
|
|
|
2079
2079
|
typeof Object.getOwnPropertySymbols == "function" && r.push.apply(r, Object.getOwnPropertySymbols(n).filter(function(e) {
|
|
2080
2080
|
return Object.getOwnPropertyDescriptor(n, e).enumerable;
|
|
2081
2081
|
})), r.forEach(function(t) {
|
|
2082
|
-
|
|
2082
|
+
tt(e, t, n[t]);
|
|
2083
2083
|
});
|
|
2084
2084
|
}
|
|
2085
2085
|
return e;
|
|
@@ -2091,14 +2091,14 @@ function D(e, t) {
|
|
|
2091
2091
|
}
|
|
2092
2092
|
//#endregion
|
|
2093
2093
|
//#region ../../node_modules/.pnpm/@babel+runtime@7.28.6/node_modules/@babel/runtime/helpers/esm/createClass.js
|
|
2094
|
-
function
|
|
2094
|
+
function nt(e, t) {
|
|
2095
2095
|
for (var n = 0; n < t.length; n++) {
|
|
2096
2096
|
var r = t[n];
|
|
2097
|
-
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e,
|
|
2097
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, et(r.key), r);
|
|
2098
2098
|
}
|
|
2099
2099
|
}
|
|
2100
2100
|
function O(e, t, n) {
|
|
2101
|
-
return t &&
|
|
2101
|
+
return t && nt(e.prototype, t), n && nt(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
2102
2102
|
}
|
|
2103
2103
|
//#endregion
|
|
2104
2104
|
//#region ../../node_modules/.pnpm/@babel+runtime@7.28.6/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
|
|
@@ -2108,38 +2108,38 @@ function k(e) {
|
|
|
2108
2108
|
}
|
|
2109
2109
|
//#endregion
|
|
2110
2110
|
//#region ../../node_modules/.pnpm/@babel+runtime@7.28.6/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
|
|
2111
|
-
function
|
|
2111
|
+
function rt(e, t) {
|
|
2112
2112
|
if (t && (T(t) == "object" || typeof t == "function")) return t;
|
|
2113
2113
|
if (t !== void 0) throw TypeError("Derived constructors may only return object or undefined");
|
|
2114
2114
|
return k(e);
|
|
2115
2115
|
}
|
|
2116
2116
|
//#endregion
|
|
2117
2117
|
//#region ../../node_modules/.pnpm/@babel+runtime@7.28.6/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
|
|
2118
|
-
function
|
|
2119
|
-
return
|
|
2118
|
+
function it(e) {
|
|
2119
|
+
return it = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
|
|
2120
2120
|
return e.__proto__ || Object.getPrototypeOf(e);
|
|
2121
|
-
},
|
|
2121
|
+
}, it(e);
|
|
2122
2122
|
}
|
|
2123
2123
|
//#endregion
|
|
2124
2124
|
//#region ../../node_modules/.pnpm/@babel+runtime@7.28.6/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
2125
|
-
function
|
|
2126
|
-
return
|
|
2125
|
+
function at(e, t) {
|
|
2126
|
+
return at = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
|
|
2127
2127
|
return e.__proto__ = t, e;
|
|
2128
|
-
},
|
|
2128
|
+
}, at(e, t);
|
|
2129
2129
|
}
|
|
2130
2130
|
//#endregion
|
|
2131
2131
|
//#region ../../node_modules/.pnpm/@babel+runtime@7.28.6/node_modules/@babel/runtime/helpers/esm/inherits.js
|
|
2132
|
-
function
|
|
2132
|
+
function ot(e, t) {
|
|
2133
2133
|
if (typeof t != "function" && t !== null) throw TypeError("Super expression must either be null or a function");
|
|
2134
2134
|
e.prototype = Object.create(t && t.prototype, { constructor: {
|
|
2135
2135
|
value: e,
|
|
2136
2136
|
writable: !0,
|
|
2137
2137
|
configurable: !0
|
|
2138
|
-
} }), Object.defineProperty(e, "prototype", { writable: !1 }), t &&
|
|
2138
|
+
} }), Object.defineProperty(e, "prototype", { writable: !1 }), t && at(e, t);
|
|
2139
2139
|
}
|
|
2140
2140
|
//#endregion
|
|
2141
2141
|
//#region ../../node_modules/.pnpm/i18next@19.9.2/node_modules/i18next/dist/esm/i18next.js
|
|
2142
|
-
var
|
|
2142
|
+
var st = {
|
|
2143
2143
|
type: "logger",
|
|
2144
2144
|
log: function(e) {
|
|
2145
2145
|
this.output("log", e);
|
|
@@ -2163,7 +2163,7 @@ var ot = {
|
|
|
2163
2163
|
key: "init",
|
|
2164
2164
|
value: function(e) {
|
|
2165
2165
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
2166
|
-
this.prefix = t.prefix || "i18next:", this.logger = e ||
|
|
2166
|
+
this.prefix = t.prefix || "i18next:", this.logger = e || st, this.options = t, this.debug = t.debug;
|
|
2167
2167
|
}
|
|
2168
2168
|
},
|
|
2169
2169
|
{
|
|
@@ -2213,7 +2213,7 @@ var ot = {
|
|
|
2213
2213
|
}
|
|
2214
2214
|
}
|
|
2215
2215
|
]), e;
|
|
2216
|
-
}())(),
|
|
2216
|
+
}())(), ct = function() {
|
|
2217
2217
|
function e() {
|
|
2218
2218
|
D(this, e), this.observers = {};
|
|
2219
2219
|
}
|
|
@@ -2254,21 +2254,21 @@ var ot = {
|
|
|
2254
2254
|
}
|
|
2255
2255
|
]), e;
|
|
2256
2256
|
}();
|
|
2257
|
-
function
|
|
2257
|
+
function lt() {
|
|
2258
2258
|
var e, t, n = new Promise(function(n, r) {
|
|
2259
2259
|
e = n, t = r;
|
|
2260
2260
|
});
|
|
2261
2261
|
return n.resolve = e, n.reject = t, n;
|
|
2262
2262
|
}
|
|
2263
|
-
function
|
|
2263
|
+
function ut(e) {
|
|
2264
2264
|
return e == null ? "" : "" + e;
|
|
2265
2265
|
}
|
|
2266
|
-
function
|
|
2266
|
+
function dt(e, t, n) {
|
|
2267
2267
|
e.forEach(function(e) {
|
|
2268
2268
|
t[e] && (n[e] = t[e]);
|
|
2269
2269
|
});
|
|
2270
2270
|
}
|
|
2271
|
-
function
|
|
2271
|
+
function ft(e, t, n) {
|
|
2272
2272
|
function r(e) {
|
|
2273
2273
|
return e && e.indexOf("###") > -1 ? e.replace(/###/g, ".") : e;
|
|
2274
2274
|
}
|
|
@@ -2285,30 +2285,30 @@ function dt(e, t, n) {
|
|
|
2285
2285
|
k: r(a.shift())
|
|
2286
2286
|
};
|
|
2287
2287
|
}
|
|
2288
|
-
function
|
|
2289
|
-
var r =
|
|
2288
|
+
function pt(e, t, n) {
|
|
2289
|
+
var r = ft(e, t, Object), i = r.obj, a = r.k;
|
|
2290
2290
|
i[a] = n;
|
|
2291
2291
|
}
|
|
2292
|
-
function
|
|
2293
|
-
var i =
|
|
2292
|
+
function mt(e, t, n, r) {
|
|
2293
|
+
var i = ft(e, t, Object), a = i.obj, o = i.k;
|
|
2294
2294
|
a[o] = a[o] || [], r && (a[o] = a[o].concat(n)), r || a[o].push(n);
|
|
2295
2295
|
}
|
|
2296
|
-
function
|
|
2297
|
-
var n =
|
|
2296
|
+
function ht(e, t) {
|
|
2297
|
+
var n = ft(e, t), r = n.obj, i = n.k;
|
|
2298
2298
|
if (r) return r[i];
|
|
2299
2299
|
}
|
|
2300
|
-
function ht(e, t, n) {
|
|
2301
|
-
var r = mt(e, n);
|
|
2302
|
-
return r === void 0 ? mt(t, n) : r;
|
|
2303
|
-
}
|
|
2304
2300
|
function gt(e, t, n) {
|
|
2305
|
-
|
|
2301
|
+
var r = ht(e, n);
|
|
2302
|
+
return r === void 0 ? ht(t, n) : r;
|
|
2303
|
+
}
|
|
2304
|
+
function _t(e, t, n) {
|
|
2305
|
+
for (var r in t) r !== "__proto__" && r !== "constructor" && (r in e ? typeof e[r] == "string" || e[r] instanceof String || typeof t[r] == "string" || t[r] instanceof String ? n && (e[r] = t[r]) : _t(e[r], t[r], n) : e[r] = t[r]);
|
|
2306
2306
|
return e;
|
|
2307
2307
|
}
|
|
2308
|
-
function
|
|
2308
|
+
function vt(e) {
|
|
2309
2309
|
return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
|
|
2310
2310
|
}
|
|
2311
|
-
var
|
|
2311
|
+
var yt = {
|
|
2312
2312
|
"&": "&",
|
|
2313
2313
|
"<": "<",
|
|
2314
2314
|
">": ">",
|
|
@@ -2316,19 +2316,19 @@ var vt = {
|
|
|
2316
2316
|
"'": "'",
|
|
2317
2317
|
"/": "/"
|
|
2318
2318
|
};
|
|
2319
|
-
function
|
|
2319
|
+
function bt(e) {
|
|
2320
2320
|
return typeof e == "string" ? e.replace(/[&<>"'\/]/g, function(e) {
|
|
2321
|
-
return
|
|
2321
|
+
return yt[e];
|
|
2322
2322
|
}) : e;
|
|
2323
2323
|
}
|
|
2324
|
-
var
|
|
2325
|
-
|
|
2324
|
+
var xt = typeof window < "u" && window.navigator && window.navigator.userAgent && window.navigator.userAgent.indexOf("MSIE") > -1, St = function(e) {
|
|
2325
|
+
ot(t, e);
|
|
2326
2326
|
function t(e) {
|
|
2327
2327
|
var n, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
2328
2328
|
ns: ["translation"],
|
|
2329
2329
|
defaultNS: "translation"
|
|
2330
2330
|
};
|
|
2331
|
-
return D(this, t), n =
|
|
2331
|
+
return D(this, t), n = rt(this, it(t).call(this)), xt && ct.call(k(n)), n.data = e || {}, n.options = r, n.options.keySeparator === void 0 && (n.options.keySeparator = "."), n;
|
|
2332
2332
|
}
|
|
2333
2333
|
return O(t, [
|
|
2334
2334
|
{
|
|
@@ -2348,7 +2348,7 @@ var bt = typeof window < "u" && window.navigator && window.navigator.userAgent &
|
|
|
2348
2348
|
key: "getResource",
|
|
2349
2349
|
value: function(e, t, n) {
|
|
2350
2350
|
var r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, i = r.keySeparator === void 0 ? this.options.keySeparator : r.keySeparator, a = [e, t];
|
|
2351
|
-
return n && typeof n != "string" && (a = a.concat(n)), n && typeof n == "string" && (a = a.concat(i ? n.split(i) : n)), e.indexOf(".") > -1 && (a = e.split(".")),
|
|
2351
|
+
return n && typeof n != "string" && (a = a.concat(n)), n && typeof n == "string" && (a = a.concat(i ? n.split(i) : n)), e.indexOf(".") > -1 && (a = e.split(".")), ht(this.data, a);
|
|
2352
2352
|
}
|
|
2353
2353
|
},
|
|
2354
2354
|
{
|
|
@@ -2357,7 +2357,7 @@ var bt = typeof window < "u" && window.navigator && window.navigator.userAgent &
|
|
|
2357
2357
|
var i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : { silent: !1 }, a = this.options.keySeparator;
|
|
2358
2358
|
a === void 0 && (a = ".");
|
|
2359
2359
|
var o = [e, t];
|
|
2360
|
-
n && (o = o.concat(a ? n.split(a) : n)), e.indexOf(".") > -1 && (o = e.split("."), r = t, t = o[1]), this.addNamespaces(t),
|
|
2360
|
+
n && (o = o.concat(a ? n.split(a) : n)), e.indexOf(".") > -1 && (o = e.split("."), r = t, t = o[1]), this.addNamespaces(t), pt(this.data, o, r), i.silent || this.emit("added", e, t, n, r);
|
|
2361
2361
|
}
|
|
2362
2362
|
},
|
|
2363
2363
|
{
|
|
@@ -2373,8 +2373,8 @@ var bt = typeof window < "u" && window.navigator && window.navigator.userAgent &
|
|
|
2373
2373
|
value: function(e, t, n, r, i) {
|
|
2374
2374
|
var a = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : { silent: !1 }, o = [e, t];
|
|
2375
2375
|
e.indexOf(".") > -1 && (o = e.split("."), r = n, n = t, t = o[1]), this.addNamespaces(t);
|
|
2376
|
-
var s =
|
|
2377
|
-
r ?
|
|
2376
|
+
var s = ht(this.data, o) || {};
|
|
2377
|
+
r ? _t(s, n, i) : s = E({}, s, n), pt(this.data, o, s), a.silent || this.emit("added", e, t, n);
|
|
2378
2378
|
}
|
|
2379
2379
|
},
|
|
2380
2380
|
{
|
|
@@ -2408,7 +2408,7 @@ var bt = typeof window < "u" && window.navigator && window.navigator.userAgent &
|
|
|
2408
2408
|
}
|
|
2409
2409
|
}
|
|
2410
2410
|
]), t;
|
|
2411
|
-
}(
|
|
2411
|
+
}(ct), Ct = {
|
|
2412
2412
|
processors: {},
|
|
2413
2413
|
addPostProcessor: function(e) {
|
|
2414
2414
|
this.processors[e.name] = e;
|
|
@@ -2419,11 +2419,11 @@ var bt = typeof window < "u" && window.navigator && window.navigator.userAgent &
|
|
|
2419
2419
|
a.processors[e] && (t = a.processors[e].process(t, n, r, i));
|
|
2420
2420
|
}), t;
|
|
2421
2421
|
}
|
|
2422
|
-
},
|
|
2423
|
-
|
|
2422
|
+
}, wt = {}, Tt = function(e) {
|
|
2423
|
+
ot(t, e);
|
|
2424
2424
|
function t(e) {
|
|
2425
2425
|
var n, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
2426
|
-
return D(this, t), n =
|
|
2426
|
+
return D(this, t), n = rt(this, it(t).call(this)), xt && ct.call(k(n)), dt([
|
|
2427
2427
|
"resourceStore",
|
|
2428
2428
|
"languageUtils",
|
|
2429
2429
|
"pluralResolver",
|
|
@@ -2544,7 +2544,7 @@ var bt = typeof window < "u" && window.navigator && window.navigator.userAgent &
|
|
|
2544
2544
|
}, n)), n.interpolation && this.interpolator.reset();
|
|
2545
2545
|
}
|
|
2546
2546
|
var f = n.postProcess || this.options.postProcess, p = typeof f == "string" ? [f] : f;
|
|
2547
|
-
return e != null && p && p.length && n.applyPostProcessor !== !1 && (e =
|
|
2547
|
+
return e != null && p && p.length && n.applyPostProcessor !== !1 && (e = Ct.handle(p, e, t, this.options && this.options.postProcessPassResolved ? E({ i18nResolved: r }, n) : n, this)), e;
|
|
2548
2548
|
}
|
|
2549
2549
|
},
|
|
2550
2550
|
{
|
|
@@ -2559,7 +2559,7 @@ var bt = typeof window < "u" && window.navigator && window.navigator.userAgent &
|
|
|
2559
2559
|
t.options.fallbackNS && (u = u.concat(t.options.fallbackNS));
|
|
2560
2560
|
var d = n.count !== void 0 && typeof n.count != "string", f = n.context !== void 0 && typeof n.context == "string" && n.context !== "", p = n.lngs ? n.lngs : t.languageUtils.toResolveHierarchy(n.lng || t.language, n.fallbackLng);
|
|
2561
2561
|
u.forEach(function(e) {
|
|
2562
|
-
t.isValidLookup(r) || (s = e, !
|
|
2562
|
+
t.isValidLookup(r) || (s = e, !wt[`${p[0]}-${e}`] && t.utils && t.utils.hasLoadedNamespace && !t.utils.hasLoadedNamespace(s) && (wt[`${p[0]}-${e}`] = !0, t.logger.warn(`key "${i}" for languages "${p.join(", ")}" won't get resolved as namespace "${s}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), p.forEach(function(i) {
|
|
2563
2563
|
if (!t.isValidLookup(r)) {
|
|
2564
2564
|
o = i;
|
|
2565
2565
|
var s = l, c = [s];
|
|
@@ -2603,11 +2603,11 @@ var bt = typeof window < "u" && window.navigator && window.navigator.userAgent &
|
|
|
2603
2603
|
return !1;
|
|
2604
2604
|
}
|
|
2605
2605
|
}]), t;
|
|
2606
|
-
}(
|
|
2607
|
-
function
|
|
2606
|
+
}(ct);
|
|
2607
|
+
function Et(e) {
|
|
2608
2608
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
2609
2609
|
}
|
|
2610
|
-
var
|
|
2610
|
+
var Dt = function() {
|
|
2611
2611
|
function e(t) {
|
|
2612
2612
|
D(this, e), this.options = t, this.whitelist = this.options.supportedLngs || !1, this.supportedLngs = this.options.supportedLngs || !1, this.logger = A.create("languageUtils");
|
|
2613
2613
|
}
|
|
@@ -2643,7 +2643,7 @@ var Et = function() {
|
|
|
2643
2643
|
], n = e.split("-");
|
|
2644
2644
|
return this.options.lowerCaseLng ? n = n.map(function(e) {
|
|
2645
2645
|
return e.toLowerCase();
|
|
2646
|
-
}) : n.length === 2 ? (n[0] = n[0].toLowerCase(), n[1] = n[1].toUpperCase(), t.indexOf(n[1].toLowerCase()) > -1 && (n[1] =
|
|
2646
|
+
}) : n.length === 2 ? (n[0] = n[0].toLowerCase(), n[1] = n[1].toUpperCase(), t.indexOf(n[1].toLowerCase()) > -1 && (n[1] = Et(n[1].toLowerCase()))) : n.length === 3 && (n[0] = n[0].toLowerCase(), n[1].length === 2 && (n[1] = n[1].toUpperCase()), n[0] !== "sgn" && n[2].length === 2 && (n[2] = n[2].toUpperCase()), t.indexOf(n[1].toLowerCase()) > -1 && (n[1] = Et(n[1].toLowerCase())), t.indexOf(n[2].toLowerCase()) > -1 && (n[2] = Et(n[2].toLowerCase()))), n.join("-");
|
|
2647
2647
|
}
|
|
2648
2648
|
return this.options.cleanCode || this.options.lowerCaseLng ? e.toLowerCase() : e;
|
|
2649
2649
|
}
|
|
@@ -2704,7 +2704,7 @@ var Et = function() {
|
|
|
2704
2704
|
}
|
|
2705
2705
|
}
|
|
2706
2706
|
]), e;
|
|
2707
|
-
}(),
|
|
2707
|
+
}(), Ot = [
|
|
2708
2708
|
{
|
|
2709
2709
|
lngs: [
|
|
2710
2710
|
"ach",
|
|
@@ -2945,7 +2945,7 @@ var Et = function() {
|
|
|
2945
2945
|
],
|
|
2946
2946
|
fc: 22
|
|
2947
2947
|
}
|
|
2948
|
-
],
|
|
2948
|
+
], kt = {
|
|
2949
2949
|
1: function(e) {
|
|
2950
2950
|
return Number(e > 1);
|
|
2951
2951
|
},
|
|
@@ -3013,21 +3013,21 @@ var Et = function() {
|
|
|
3013
3013
|
return Number(e == 1 ? 0 : e == 2 ? 1 : (e < 0 || e > 10) && e % 10 == 0 ? 2 : 3);
|
|
3014
3014
|
}
|
|
3015
3015
|
};
|
|
3016
|
-
function
|
|
3016
|
+
function At() {
|
|
3017
3017
|
var e = {};
|
|
3018
|
-
return
|
|
3018
|
+
return Ot.forEach(function(t) {
|
|
3019
3019
|
t.lngs.forEach(function(n) {
|
|
3020
3020
|
e[n] = {
|
|
3021
3021
|
numbers: t.nr,
|
|
3022
|
-
plurals:
|
|
3022
|
+
plurals: kt[t.fc]
|
|
3023
3023
|
};
|
|
3024
3024
|
});
|
|
3025
3025
|
}), e;
|
|
3026
3026
|
}
|
|
3027
|
-
var
|
|
3027
|
+
var jt = function() {
|
|
3028
3028
|
function e(t) {
|
|
3029
3029
|
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
3030
|
-
D(this, e), this.languageUtils = t, this.options = n, this.logger = A.create("pluralResolver"), this.rules =
|
|
3030
|
+
D(this, e), this.languageUtils = t, this.options = n, this.logger = A.create("pluralResolver"), this.rules = At();
|
|
3031
3031
|
}
|
|
3032
3032
|
return O(e, [
|
|
3033
3033
|
{
|
|
@@ -3082,7 +3082,7 @@ var At = function() {
|
|
|
3082
3082
|
}
|
|
3083
3083
|
}
|
|
3084
3084
|
]), e;
|
|
3085
|
-
}(),
|
|
3085
|
+
}(), Mt = function() {
|
|
3086
3086
|
function e() {
|
|
3087
3087
|
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
3088
3088
|
D(this, e), this.logger = A.create("interpolator"), this.options = t, this.format = t.interpolation && t.interpolation.format || function(e) {
|
|
@@ -3096,7 +3096,7 @@ var At = function() {
|
|
|
3096
3096
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
3097
3097
|
e.interpolation || (e.interpolation = { escapeValue: !0 });
|
|
3098
3098
|
var t = e.interpolation;
|
|
3099
|
-
this.escape = t.escape === void 0 ?
|
|
3099
|
+
this.escape = t.escape === void 0 ? bt : t.escape, this.escapeValue = t.escapeValue === void 0 ? !0 : t.escapeValue, this.useRawValueToEscape = t.useRawValueToEscape === void 0 ? !1 : t.useRawValueToEscape, this.prefix = t.prefix ? vt(t.prefix) : t.prefixEscaped || "{{", this.suffix = t.suffix ? vt(t.suffix) : t.suffixEscaped || "}}", this.formatSeparator = t.formatSeparator ? t.formatSeparator : t.formatSeparator || ",", this.unescapePrefix = t.unescapeSuffix ? "" : t.unescapePrefix || "-", this.unescapeSuffix = this.unescapePrefix ? "" : t.unescapeSuffix || "", this.nestingPrefix = t.nestingPrefix ? vt(t.nestingPrefix) : t.nestingPrefixEscaped || vt("$t("), this.nestingSuffix = t.nestingSuffix ? vt(t.nestingSuffix) : t.nestingSuffixEscaped || vt(")"), this.nestingOptionsSeparator = t.nestingOptionsSeparator ? t.nestingOptionsSeparator : t.nestingOptionsSeparator || ",", this.maxReplaces = t.maxReplaces ? t.maxReplaces : 1e3, this.alwaysFormat = t.alwaysFormat === void 0 ? !1 : t.alwaysFormat, this.resetRegExp();
|
|
3100
3100
|
}
|
|
3101
3101
|
},
|
|
3102
3102
|
{
|
|
@@ -3125,11 +3125,11 @@ var At = function() {
|
|
|
3125
3125
|
}
|
|
3126
3126
|
var u = function(e) {
|
|
3127
3127
|
if (e.indexOf(i.formatSeparator) < 0) {
|
|
3128
|
-
var a =
|
|
3128
|
+
var a = gt(t, c, e);
|
|
3129
3129
|
return i.alwaysFormat ? i.format(a, void 0, n) : a;
|
|
3130
3130
|
}
|
|
3131
3131
|
var o = e.split(i.formatSeparator), s = o.shift().trim(), l = o.join(i.formatSeparator).trim();
|
|
3132
|
-
return i.format(
|
|
3132
|
+
return i.format(gt(t, c, s), l, n, r);
|
|
3133
3133
|
};
|
|
3134
3134
|
this.resetRegExp();
|
|
3135
3135
|
var d = r && r.missingInterpolationHandler || this.options.missingInterpolationHandler, f = r && r.interpolation && r.interpolation.skipOnVariables || this.options.interpolation.skipOnVariables;
|
|
@@ -3152,7 +3152,7 @@ var At = function() {
|
|
|
3152
3152
|
o = a[0];
|
|
3153
3153
|
continue;
|
|
3154
3154
|
} else i.logger.warn(`missed to pass in variable ${a[1]} for interpolating ${e}`), o = "";
|
|
3155
|
-
else typeof o != "string" && !i.useRawValueToEscape && (o =
|
|
3155
|
+
else typeof o != "string" && !i.useRawValueToEscape && (o = ut(o));
|
|
3156
3156
|
if (e = e.replace(a[0], t.safeValue(o)), t.regex.lastIndex = 0, s++, s >= i.maxReplaces) break;
|
|
3157
3157
|
}
|
|
3158
3158
|
}), e;
|
|
@@ -3184,7 +3184,7 @@ var At = function() {
|
|
|
3184
3184
|
i[1] = u.shift(), c = u, l = !0;
|
|
3185
3185
|
}
|
|
3186
3186
|
if (a = t(s.call(this, i[1].trim(), o), o), a && i[0] === e && typeof a != "string") return a;
|
|
3187
|
-
typeof a != "string" && (a =
|
|
3187
|
+
typeof a != "string" && (a = ut(a)), a || (this.logger.warn(`missed to resolve ${i[1]} for nesting ${e}`), a = ""), l && (a = c.reduce(function(e, t) {
|
|
3188
3188
|
return n.format(e, t, r.lng, r);
|
|
3189
3189
|
}, a.trim())), e = e.replace(i[0], a), this.regexp.lastIndex = 0;
|
|
3190
3190
|
}
|
|
@@ -3193,14 +3193,14 @@ var At = function() {
|
|
|
3193
3193
|
}
|
|
3194
3194
|
]), e;
|
|
3195
3195
|
}();
|
|
3196
|
-
function
|
|
3196
|
+
function Nt(e, t) {
|
|
3197
3197
|
for (var n = e.indexOf(t); n !== -1;) e.splice(n, 1), n = e.indexOf(t);
|
|
3198
3198
|
}
|
|
3199
|
-
var
|
|
3200
|
-
|
|
3199
|
+
var Pt = function(e) {
|
|
3200
|
+
ot(t, e);
|
|
3201
3201
|
function t(e, n, r) {
|
|
3202
3202
|
var i, a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
3203
|
-
return D(this, t), i =
|
|
3203
|
+
return D(this, t), i = rt(this, it(t).call(this)), xt && ct.call(k(i)), i.backend = e, i.store = n, i.services = r, i.languageUtils = r.languageUtils, i.options = a, i.logger = A.create("backendConnector"), i.state = {}, i.queue = [], i.backend && i.backend.init && i.backend.init(r, a.backend, a), i;
|
|
3204
3204
|
}
|
|
3205
3205
|
return O(t, [
|
|
3206
3206
|
{
|
|
@@ -3233,7 +3233,7 @@ var Nt = function(e) {
|
|
|
3233
3233
|
t && this.emit("failedLoading", i, a, t), n && this.store.addResourceBundle(i, a, n), this.state[e] = t ? -1 : 2;
|
|
3234
3234
|
var o = {};
|
|
3235
3235
|
this.queue.forEach(function(n) {
|
|
3236
|
-
|
|
3236
|
+
mt(n.loaded, [i], a), Nt(n.pending, e), t && n.errors.push(t), n.pending.length === 0 && !n.done && (Object.keys(n.loaded).forEach(function(e) {
|
|
3237
3237
|
o[e] || (o[e] = []), n.loaded[e].length && n.loaded[e].forEach(function(t) {
|
|
3238
3238
|
o[e].indexOf(t) < 0 && o[e].push(t);
|
|
3239
3239
|
});
|
|
@@ -3304,8 +3304,8 @@ var Nt = function(e) {
|
|
|
3304
3304
|
}
|
|
3305
3305
|
}
|
|
3306
3306
|
]), t;
|
|
3307
|
-
}(
|
|
3308
|
-
function
|
|
3307
|
+
}(ct);
|
|
3308
|
+
function Ft() {
|
|
3309
3309
|
return {
|
|
3310
3310
|
debug: !1,
|
|
3311
3311
|
initImmediate: !0,
|
|
@@ -3368,16 +3368,16 @@ function Pt() {
|
|
|
3368
3368
|
}
|
|
3369
3369
|
};
|
|
3370
3370
|
}
|
|
3371
|
-
function
|
|
3371
|
+
function It(e) {
|
|
3372
3372
|
return typeof e.ns == "string" && (e.ns = [e.ns]), typeof e.fallbackLng == "string" && (e.fallbackLng = [e.fallbackLng]), typeof e.fallbackNS == "string" && (e.fallbackNS = [e.fallbackNS]), e.whitelist && (e.whitelist && e.whitelist.indexOf("cimode") < 0 && (e.whitelist = e.whitelist.concat(["cimode"])), e.supportedLngs = e.whitelist), e.nonExplicitWhitelist && (e.nonExplicitSupportedLngs = e.nonExplicitWhitelist), e.supportedLngs && e.supportedLngs.indexOf("cimode") < 0 && (e.supportedLngs = e.supportedLngs.concat(["cimode"])), e;
|
|
3373
3373
|
}
|
|
3374
|
-
function
|
|
3375
|
-
var
|
|
3376
|
-
|
|
3374
|
+
function Lt() {}
|
|
3375
|
+
var Rt = new (function(e) {
|
|
3376
|
+
ot(t, e);
|
|
3377
3377
|
function t() {
|
|
3378
3378
|
var e, n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = arguments.length > 1 ? arguments[1] : void 0;
|
|
3379
|
-
if (D(this, t), e =
|
|
3380
|
-
if (!e.options.initImmediate) return e.init(n, r),
|
|
3379
|
+
if (D(this, t), e = rt(this, it(t).call(this)), xt && ct.call(k(e)), e.options = It(n), e.services = {}, e.logger = A, e.modules = { external: [] }, r && !e.isInitialized && !n.isClone) {
|
|
3380
|
+
if (!e.options.initImmediate) return e.init(n, r), rt(e, k(e));
|
|
3381
3381
|
setTimeout(function() {
|
|
3382
3382
|
e.init(n, r);
|
|
3383
3383
|
}, 0);
|
|
@@ -3389,23 +3389,23 @@ var Lt = new (function(e) {
|
|
|
3389
3389
|
key: "init",
|
|
3390
3390
|
value: function() {
|
|
3391
3391
|
var e = this, t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 ? arguments[1] : void 0;
|
|
3392
|
-
typeof t == "function" && (n = t, t = {}), t.whitelist && !t.supportedLngs && this.logger.deprecate("whitelist", "option \"whitelist\" will be renamed to \"supportedLngs\" in the next major - please make sure to rename this option asap."), t.nonExplicitWhitelist && !t.nonExplicitSupportedLngs && this.logger.deprecate("whitelist", "options \"nonExplicitWhitelist\" will be renamed to \"nonExplicitSupportedLngs\" in the next major - please make sure to rename this option asap."), this.options = E({},
|
|
3392
|
+
typeof t == "function" && (n = t, t = {}), t.whitelist && !t.supportedLngs && this.logger.deprecate("whitelist", "option \"whitelist\" will be renamed to \"supportedLngs\" in the next major - please make sure to rename this option asap."), t.nonExplicitWhitelist && !t.nonExplicitSupportedLngs && this.logger.deprecate("whitelist", "options \"nonExplicitWhitelist\" will be renamed to \"nonExplicitSupportedLngs\" in the next major - please make sure to rename this option asap."), this.options = E({}, Ft(), this.options, It(t)), this.format = this.options.interpolation.format, n || (n = Lt);
|
|
3393
3393
|
function r(e) {
|
|
3394
3394
|
return e ? typeof e == "function" ? new e() : e : null;
|
|
3395
3395
|
}
|
|
3396
3396
|
if (!this.options.isClone) {
|
|
3397
3397
|
this.modules.logger ? A.init(r(this.modules.logger), this.options) : A.init(null, this.options);
|
|
3398
|
-
var i = new
|
|
3399
|
-
this.store = new
|
|
3398
|
+
var i = new Dt(this.options);
|
|
3399
|
+
this.store = new St(this.options.resources, this.options);
|
|
3400
3400
|
var a = this.services;
|
|
3401
|
-
a.logger = A, a.resourceStore = this.store, a.languageUtils = i, a.pluralResolver = new
|
|
3401
|
+
a.logger = A, a.resourceStore = this.store, a.languageUtils = i, a.pluralResolver = new jt(i, {
|
|
3402
3402
|
prepend: this.options.pluralSeparator,
|
|
3403
3403
|
compatibilityJSON: this.options.compatibilityJSON,
|
|
3404
3404
|
simplifyPluralSuffix: this.options.simplifyPluralSuffix
|
|
3405
|
-
}), a.interpolator = new
|
|
3405
|
+
}), a.interpolator = new Mt(this.options), a.utils = { hasLoadedNamespace: this.hasLoadedNamespace.bind(this) }, a.backendConnector = new Pt(r(this.modules.backend), a.resourceStore, a, this.options), a.backendConnector.on("*", function(t) {
|
|
3406
3406
|
var n = [...arguments].slice(1);
|
|
3407
3407
|
e.emit.apply(e, [t].concat(n));
|
|
3408
|
-
}), this.modules.languageDetector && (a.languageDetector = r(this.modules.languageDetector), a.languageDetector.init(a, this.options.detection, this.options)), this.modules.i18nFormat && (a.i18nFormat = r(this.modules.i18nFormat), a.i18nFormat.init && a.i18nFormat.init(this)), this.translator = new
|
|
3408
|
+
}), this.modules.languageDetector && (a.languageDetector = r(this.modules.languageDetector), a.languageDetector.init(a, this.options.detection, this.options)), this.modules.i18nFormat && (a.i18nFormat = r(this.modules.i18nFormat), a.i18nFormat.init && a.i18nFormat.init(this)), this.translator = new Tt(this.services, this.options), this.translator.on("*", function(t) {
|
|
3409
3409
|
var n = [...arguments].slice(1);
|
|
3410
3410
|
e.emit.apply(e, [t].concat(n));
|
|
3411
3411
|
}), this.modules.external.forEach(function(t) {
|
|
@@ -3437,7 +3437,7 @@ var Lt = new (function(e) {
|
|
|
3437
3437
|
return (n = e.store)[t].apply(n, arguments), e;
|
|
3438
3438
|
};
|
|
3439
3439
|
});
|
|
3440
|
-
var s =
|
|
3440
|
+
var s = lt(), c = function() {
|
|
3441
3441
|
var t = function(t, r) {
|
|
3442
3442
|
e.isInitialized && e.logger.warn("init: i18next is already initialized. You should call init just once!"), e.isInitialized = !0, e.options.isClone || e.logger.log("initialized", e.options), e.emit("initialized", e.options), s.resolve(r), n(t, r);
|
|
3443
3443
|
};
|
|
@@ -3450,7 +3450,7 @@ var Lt = new (function(e) {
|
|
|
3450
3450
|
{
|
|
3451
3451
|
key: "loadResources",
|
|
3452
3452
|
value: function(e) {
|
|
3453
|
-
var t = this, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
|
3453
|
+
var t = this, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Lt, r = typeof e == "string" ? e : this.language;
|
|
3454
3454
|
if (typeof e == "function" && (n = e), !this.options.resources || this.options.partialBundledLanguages) {
|
|
3455
3455
|
if (r && r.toLowerCase() === "cimode") return n();
|
|
3456
3456
|
var i = [], a = function(e) {
|
|
@@ -3469,8 +3469,8 @@ var Lt = new (function(e) {
|
|
|
3469
3469
|
{
|
|
3470
3470
|
key: "reloadResources",
|
|
3471
3471
|
value: function(e, t, n) {
|
|
3472
|
-
var r =
|
|
3473
|
-
return e || (e = this.languages), t || (t = this.options.ns), n || (n =
|
|
3472
|
+
var r = lt();
|
|
3473
|
+
return e || (e = this.languages), t || (t = this.options.ns), n || (n = Lt), this.services.backendConnector.reload(e, t, function(e) {
|
|
3474
3474
|
r.resolve(), n(e);
|
|
3475
3475
|
}), r;
|
|
3476
3476
|
}
|
|
@@ -3480,7 +3480,7 @@ var Lt = new (function(e) {
|
|
|
3480
3480
|
value: function(e) {
|
|
3481
3481
|
if (!e) throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
|
|
3482
3482
|
if (!e.type) throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
|
|
3483
|
-
return e.type === "backend" && (this.modules.backend = e), (e.type === "logger" || e.log && e.warn && e.error) && (this.modules.logger = e), e.type === "languageDetector" && (this.modules.languageDetector = e), e.type === "i18nFormat" && (this.modules.i18nFormat = e), e.type === "postProcessor" &&
|
|
3483
|
+
return e.type === "backend" && (this.modules.backend = e), (e.type === "logger" || e.log && e.warn && e.error) && (this.modules.logger = e), e.type === "languageDetector" && (this.modules.languageDetector = e), e.type === "i18nFormat" && (this.modules.i18nFormat = e), e.type === "postProcessor" && Ct.addPostProcessor(e), e.type === "3rdParty" && this.modules.external.push(e), this;
|
|
3484
3484
|
}
|
|
3485
3485
|
},
|
|
3486
3486
|
{
|
|
@@ -3488,7 +3488,7 @@ var Lt = new (function(e) {
|
|
|
3488
3488
|
value: function(e, t) {
|
|
3489
3489
|
var n = this;
|
|
3490
3490
|
this.isLanguageChangingTo = e;
|
|
3491
|
-
var r =
|
|
3491
|
+
var r = lt();
|
|
3492
3492
|
this.emit("languageChanging", e);
|
|
3493
3493
|
var i = function(e, i) {
|
|
3494
3494
|
i ? (n.language = i, n.languages = n.services.languageUtils.toResolveHierarchy(i), n.translator.changeLanguage(i), n.isLanguageChangingTo = void 0, n.emit("languageChanged", i), n.logger.log("languageChanged", i)) : n.isLanguageChangingTo = void 0, r.resolve(function() {
|
|
@@ -3561,7 +3561,7 @@ var Lt = new (function(e) {
|
|
|
3561
3561
|
{
|
|
3562
3562
|
key: "loadNamespaces",
|
|
3563
3563
|
value: function(e, t) {
|
|
3564
|
-
var n = this, r =
|
|
3564
|
+
var n = this, r = lt();
|
|
3565
3565
|
return this.options.ns ? (typeof e == "string" && (e = [e]), e.forEach(function(e) {
|
|
3566
3566
|
n.options.ns.indexOf(e) < 0 && n.options.ns.push(e);
|
|
3567
3567
|
}), this.loadResources(function(e) {
|
|
@@ -3572,7 +3572,7 @@ var Lt = new (function(e) {
|
|
|
3572
3572
|
{
|
|
3573
3573
|
key: "loadLanguages",
|
|
3574
3574
|
value: function(e, t) {
|
|
3575
|
-
var n =
|
|
3575
|
+
var n = lt();
|
|
3576
3576
|
typeof e == "string" && (e = [e]);
|
|
3577
3577
|
var r = this.options.preload || [], i = e.filter(function(e) {
|
|
3578
3578
|
return r.indexOf(e) < 0;
|
|
@@ -3597,64 +3597,64 @@ var Lt = new (function(e) {
|
|
|
3597
3597
|
{
|
|
3598
3598
|
key: "cloneInstance",
|
|
3599
3599
|
value: function() {
|
|
3600
|
-
var e = this, n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
|
3600
|
+
var e = this, n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Lt, i = E({}, this.options, n, { isClone: !0 }), a = new t(i);
|
|
3601
3601
|
return [
|
|
3602
3602
|
"store",
|
|
3603
3603
|
"services",
|
|
3604
3604
|
"language"
|
|
3605
3605
|
].forEach(function(t) {
|
|
3606
3606
|
a[t] = e[t];
|
|
3607
|
-
}), a.services = E({}, this.services), a.services.utils = { hasLoadedNamespace: a.hasLoadedNamespace.bind(a) }, a.translator = new
|
|
3607
|
+
}), a.services = E({}, this.services), a.services.utils = { hasLoadedNamespace: a.hasLoadedNamespace.bind(a) }, a.translator = new Tt(a.services, a.options), a.translator.on("*", function(e) {
|
|
3608
3608
|
var t = [...arguments].slice(1);
|
|
3609
3609
|
a.emit.apply(a, [e].concat(t));
|
|
3610
3610
|
}), a.init(i, r), a.translator.options = a.options, a.translator.backendConnector.services.utils = { hasLoadedNamespace: a.hasLoadedNamespace.bind(a) }, a;
|
|
3611
3611
|
}
|
|
3612
3612
|
}
|
|
3613
3613
|
]), t;
|
|
3614
|
-
}(
|
|
3615
|
-
Object.freeze(zt);
|
|
3616
|
-
var Bt = {};
|
|
3614
|
+
}(ct))(), zt = "An invariant failed, however the error is obfuscated because this is a production build.", Bt = [];
|
|
3617
3615
|
Object.freeze(Bt);
|
|
3616
|
+
var Vt = {};
|
|
3617
|
+
Object.freeze(Vt);
|
|
3618
3618
|
function j() {
|
|
3619
3619
|
return ++V.mobxGuid;
|
|
3620
3620
|
}
|
|
3621
3621
|
function M(e) {
|
|
3622
|
-
throw
|
|
3622
|
+
throw Ht(!1, e), "X";
|
|
3623
3623
|
}
|
|
3624
|
-
function
|
|
3625
|
-
if (!e) throw Error("[mobx] " + (t ||
|
|
3624
|
+
function Ht(e, t) {
|
|
3625
|
+
if (!e) throw Error("[mobx] " + (t || zt));
|
|
3626
3626
|
}
|
|
3627
|
-
function
|
|
3627
|
+
function Ut(e) {
|
|
3628
3628
|
var t = !1;
|
|
3629
3629
|
return function() {
|
|
3630
3630
|
if (!t) return t = !0, e.apply(this, arguments);
|
|
3631
3631
|
};
|
|
3632
3632
|
}
|
|
3633
|
-
var
|
|
3634
|
-
function
|
|
3633
|
+
var Wt = function() {};
|
|
3634
|
+
function Gt(e) {
|
|
3635
3635
|
var t = [];
|
|
3636
3636
|
return e.forEach(function(e) {
|
|
3637
3637
|
t.indexOf(e) === -1 && t.push(e);
|
|
3638
3638
|
}), t;
|
|
3639
3639
|
}
|
|
3640
|
-
function
|
|
3640
|
+
function Kt(e) {
|
|
3641
3641
|
return typeof e == "object" && !!e;
|
|
3642
3642
|
}
|
|
3643
|
-
function
|
|
3643
|
+
function qt(e) {
|
|
3644
3644
|
if (typeof e != "object" || !e) return !1;
|
|
3645
3645
|
var t = Object.getPrototypeOf(e);
|
|
3646
3646
|
return t === Object.prototype || t === null;
|
|
3647
3647
|
}
|
|
3648
|
-
function
|
|
3649
|
-
if (
|
|
3648
|
+
function Jt(e) {
|
|
3649
|
+
if (Qt(e) || Q(e)) return e;
|
|
3650
3650
|
if (Array.isArray(e)) return new Map(e);
|
|
3651
|
-
if (
|
|
3651
|
+
if (qt(e)) {
|
|
3652
3652
|
var t = /* @__PURE__ */ new Map();
|
|
3653
3653
|
for (var n in e) t.set(n, e[n]);
|
|
3654
3654
|
return t;
|
|
3655
3655
|
} else return M("Cannot convert to map from '" + e + "'");
|
|
3656
3656
|
}
|
|
3657
|
-
function
|
|
3657
|
+
function Yt(e, t, n) {
|
|
3658
3658
|
Object.defineProperty(e, t, {
|
|
3659
3659
|
enumerable: !1,
|
|
3660
3660
|
writable: !0,
|
|
@@ -3662,7 +3662,7 @@ function Jt(e, t, n) {
|
|
|
3662
3662
|
value: n
|
|
3663
3663
|
});
|
|
3664
3664
|
}
|
|
3665
|
-
function
|
|
3665
|
+
function Xt(e, t, n) {
|
|
3666
3666
|
Object.defineProperty(e, t, {
|
|
3667
3667
|
enumerable: !1,
|
|
3668
3668
|
writable: !1,
|
|
@@ -3670,23 +3670,23 @@ function Yt(e, t, n) {
|
|
|
3670
3670
|
value: n
|
|
3671
3671
|
});
|
|
3672
3672
|
}
|
|
3673
|
-
function
|
|
3673
|
+
function Zt(e, t) {
|
|
3674
3674
|
var n = Object.getOwnPropertyDescriptor(e, t);
|
|
3675
3675
|
return !n || n.configurable !== !1 && n.writable !== !1;
|
|
3676
3676
|
}
|
|
3677
3677
|
function N(e, t) {
|
|
3678
3678
|
var n = "isMobX" + e;
|
|
3679
3679
|
return t.prototype[n] = !0, function(e) {
|
|
3680
|
-
return
|
|
3680
|
+
return Kt(e) && e[n] === !0;
|
|
3681
3681
|
};
|
|
3682
3682
|
}
|
|
3683
|
-
function
|
|
3683
|
+
function Qt(e) {
|
|
3684
3684
|
return e instanceof Map;
|
|
3685
3685
|
}
|
|
3686
|
-
function
|
|
3686
|
+
function $t(e) {
|
|
3687
3687
|
return e instanceof Set;
|
|
3688
3688
|
}
|
|
3689
|
-
function
|
|
3689
|
+
function en(e) {
|
|
3690
3690
|
var t = /* @__PURE__ */ new Set();
|
|
3691
3691
|
for (var n in e) t.add(n);
|
|
3692
3692
|
return Object.getOwnPropertySymbols(e).forEach(function(n) {
|
|
@@ -3696,12 +3696,12 @@ function $t(e) {
|
|
|
3696
3696
|
function P(e) {
|
|
3697
3697
|
return e && e.toString ? e.toString() : new String(e).toString();
|
|
3698
3698
|
}
|
|
3699
|
-
function
|
|
3699
|
+
function tn(e) {
|
|
3700
3700
|
return e === null ? null : typeof e == "object" ? "" + e : e;
|
|
3701
3701
|
}
|
|
3702
|
-
var
|
|
3702
|
+
var nn = typeof Reflect < "u" && Reflect.ownKeys ? Reflect.ownKeys : Object.getOwnPropertySymbols ? function(e) {
|
|
3703
3703
|
return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e));
|
|
3704
|
-
} : /* istanbul ignore next */ Object.getOwnPropertyNames, F = Symbol("mobx administration"),
|
|
3704
|
+
} : /* istanbul ignore next */ Object.getOwnPropertyNames, F = Symbol("mobx administration"), rn = function() {
|
|
3705
3705
|
function e(e) {
|
|
3706
3706
|
e === void 0 && (e = "Atom@" + j()), this.name = e, this.isPendingUnobservation = !1, this.isBeingObserved = !1, this.observers = /* @__PURE__ */ new Set(), this.diffValue = 0, this.lastAccessedBy = 0, this.lowestObserverState = R.NOT_TRACKING;
|
|
3707
3707
|
}
|
|
@@ -3714,54 +3714,54 @@ var tn = typeof Reflect < "u" && Reflect.ownKeys ? Reflect.ownKeys : Object.getO
|
|
|
3714
3714
|
return e();
|
|
3715
3715
|
});
|
|
3716
3716
|
}, e.prototype.reportObserved = function() {
|
|
3717
|
-
return
|
|
3717
|
+
return Cr(this);
|
|
3718
3718
|
}, e.prototype.reportChanged = function() {
|
|
3719
|
-
H(),
|
|
3719
|
+
H(), wr(this), U();
|
|
3720
3720
|
}, e.prototype.toString = function() {
|
|
3721
3721
|
return this.name;
|
|
3722
3722
|
}, e;
|
|
3723
|
-
}(),
|
|
3724
|
-
function
|
|
3725
|
-
t === void 0 && (t =
|
|
3726
|
-
var r = new
|
|
3727
|
-
return t !==
|
|
3728
|
-
}
|
|
3729
|
-
function on(e, t) {
|
|
3730
|
-
return e === t;
|
|
3723
|
+
}(), an = N("Atom", rn);
|
|
3724
|
+
function on(e, t, n) {
|
|
3725
|
+
t === void 0 && (t = Wt), n === void 0 && (n = Wt);
|
|
3726
|
+
var r = new rn(e);
|
|
3727
|
+
return t !== Wt && Yr(r, t), n !== Wt && Xr(r, n), r;
|
|
3731
3728
|
}
|
|
3732
3729
|
function sn(e, t) {
|
|
3733
|
-
return
|
|
3730
|
+
return e === t;
|
|
3734
3731
|
}
|
|
3735
3732
|
function cn(e, t) {
|
|
3736
|
-
return
|
|
3733
|
+
return Gi(e, t);
|
|
3737
3734
|
}
|
|
3738
3735
|
function ln(e, t) {
|
|
3736
|
+
return Gi(e, t, 1);
|
|
3737
|
+
}
|
|
3738
|
+
function un(e, t) {
|
|
3739
3739
|
return Object.is(e, t);
|
|
3740
3740
|
}
|
|
3741
|
-
var
|
|
3742
|
-
identity:
|
|
3743
|
-
structural:
|
|
3744
|
-
default:
|
|
3745
|
-
shallow:
|
|
3746
|
-
},
|
|
3747
|
-
return
|
|
3741
|
+
var dn = {
|
|
3742
|
+
identity: sn,
|
|
3743
|
+
structural: cn,
|
|
3744
|
+
default: un,
|
|
3745
|
+
shallow: ln
|
|
3746
|
+
}, fn = function(e, t) {
|
|
3747
|
+
return fn = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {
|
|
3748
3748
|
e.__proto__ = t;
|
|
3749
3749
|
} || function(e, t) {
|
|
3750
3750
|
for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]);
|
|
3751
|
-
},
|
|
3751
|
+
}, fn(e, t);
|
|
3752
3752
|
};
|
|
3753
|
-
function
|
|
3754
|
-
|
|
3753
|
+
function pn(e, t) {
|
|
3754
|
+
fn(e, t);
|
|
3755
3755
|
function n() {
|
|
3756
3756
|
this.constructor = e;
|
|
3757
3757
|
}
|
|
3758
3758
|
e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
|
|
3759
3759
|
}
|
|
3760
|
-
var
|
|
3761
|
-
return
|
|
3760
|
+
var mn = function() {
|
|
3761
|
+
return mn = Object.assign || function(e) {
|
|
3762
3762
|
for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
|
|
3763
3763
|
return e;
|
|
3764
|
-
},
|
|
3764
|
+
}, mn.apply(this, arguments);
|
|
3765
3765
|
};
|
|
3766
3766
|
function I(e) {
|
|
3767
3767
|
var t = typeof Symbol == "function" && e[Symbol.iterator], n = 0;
|
|
@@ -3772,7 +3772,7 @@ function I(e) {
|
|
|
3772
3772
|
};
|
|
3773
3773
|
} };
|
|
3774
3774
|
}
|
|
3775
|
-
function
|
|
3775
|
+
function hn(e, t) {
|
|
3776
3776
|
var n = typeof Symbol == "function" && e[Symbol.iterator];
|
|
3777
3777
|
if (!n) return e;
|
|
3778
3778
|
var r = n.call(e), i, a = [], o;
|
|
@@ -3789,31 +3789,31 @@ function mn(e, t) {
|
|
|
3789
3789
|
}
|
|
3790
3790
|
return a;
|
|
3791
3791
|
}
|
|
3792
|
-
function
|
|
3793
|
-
for (var e = [], t = 0; t < arguments.length; t++) e = e.concat(
|
|
3792
|
+
function gn() {
|
|
3793
|
+
for (var e = [], t = 0; t < arguments.length; t++) e = e.concat(hn(arguments[t]));
|
|
3794
3794
|
return e;
|
|
3795
3795
|
}
|
|
3796
|
-
var
|
|
3797
|
-
function
|
|
3798
|
-
var n = t ?
|
|
3796
|
+
var _n = Symbol("mobx did run lazy initializers"), vn = Symbol("mobx pending decorators"), yn = {}, bn = {};
|
|
3797
|
+
function xn(e, t) {
|
|
3798
|
+
var n = t ? yn : bn;
|
|
3799
3799
|
return n[e] || (n[e] = {
|
|
3800
3800
|
configurable: !0,
|
|
3801
3801
|
enumerable: t,
|
|
3802
3802
|
get: function() {
|
|
3803
|
-
return
|
|
3803
|
+
return Sn(this), this[e];
|
|
3804
3804
|
},
|
|
3805
3805
|
set: function(t) {
|
|
3806
|
-
|
|
3806
|
+
Sn(this), this[e] = t;
|
|
3807
3807
|
}
|
|
3808
3808
|
});
|
|
3809
3809
|
}
|
|
3810
|
-
function
|
|
3810
|
+
function Sn(e) {
|
|
3811
3811
|
var t, n;
|
|
3812
|
-
if (e[
|
|
3813
|
-
var r = e[
|
|
3812
|
+
if (e[_n] !== !0) {
|
|
3813
|
+
var r = e[vn];
|
|
3814
3814
|
if (r) {
|
|
3815
|
-
|
|
3816
|
-
var i =
|
|
3815
|
+
Yt(e, _n, !0);
|
|
3816
|
+
var i = gn(Object.getOwnPropertySymbols(r), Object.keys(r));
|
|
3817
3817
|
try {
|
|
3818
3818
|
for (var a = I(i), o = a.next(); !o.done; o = a.next()) {
|
|
3819
3819
|
var s = r[o.value];
|
|
@@ -3831,137 +3831,137 @@ function xn(e) {
|
|
|
3831
3831
|
}
|
|
3832
3832
|
}
|
|
3833
3833
|
}
|
|
3834
|
-
function
|
|
3834
|
+
function Cn(e, t) {
|
|
3835
3835
|
return function() {
|
|
3836
3836
|
var n, r = function(r, i, a, o) {
|
|
3837
3837
|
if (o === !0) return t(r, i, a, r, n), null;
|
|
3838
|
-
if (!Object.prototype.hasOwnProperty.call(r,
|
|
3839
|
-
var s = r[
|
|
3840
|
-
|
|
3838
|
+
if (!Object.prototype.hasOwnProperty.call(r, vn)) {
|
|
3839
|
+
var s = r[vn];
|
|
3840
|
+
Yt(r, vn, mn({}, s));
|
|
3841
3841
|
}
|
|
3842
|
-
return r[
|
|
3842
|
+
return r[vn][i] = {
|
|
3843
3843
|
prop: i,
|
|
3844
3844
|
propertyCreator: t,
|
|
3845
3845
|
descriptor: a,
|
|
3846
3846
|
decoratorTarget: r,
|
|
3847
3847
|
decoratorArguments: n
|
|
3848
|
-
},
|
|
3848
|
+
}, xn(i, e);
|
|
3849
3849
|
};
|
|
3850
|
-
return
|
|
3850
|
+
return wn(arguments) ? (n = Bt, r.apply(null, arguments)) : (n = Array.prototype.slice.call(arguments), r);
|
|
3851
3851
|
};
|
|
3852
3852
|
}
|
|
3853
|
-
function
|
|
3853
|
+
function wn(e) {
|
|
3854
3854
|
return (e.length === 2 || e.length === 3) && (typeof e[1] == "string" || typeof e[1] == "symbol") || e.length === 4 && e[3] === !0;
|
|
3855
3855
|
}
|
|
3856
|
-
function wn(e, t, n) {
|
|
3857
|
-
return ai(e) ? e : Array.isArray(e) ? L.array(e, { name: n }) : Kt(e) ? L.object(e, void 0, { name: n }) : Zt(e) ? L.map(e, { name: n }) : Qt(e) ? L.set(e, { name: n }) : e;
|
|
3858
|
-
}
|
|
3859
3856
|
function Tn(e, t, n) {
|
|
3860
|
-
return e
|
|
3857
|
+
return oi(e) ? e : Array.isArray(e) ? L.array(e, { name: n }) : qt(e) ? L.object(e, void 0, { name: n }) : Qt(e) ? L.map(e, { name: n }) : $t(e) ? L.set(e, { name: n }) : e;
|
|
3858
|
+
}
|
|
3859
|
+
function En(e, t, n) {
|
|
3860
|
+
return e == null || Bi(e) || Ti(e) || Q(e) || $(e) ? e : Array.isArray(e) ? L.array(e, {
|
|
3861
3861
|
name: n,
|
|
3862
3862
|
deep: !1
|
|
3863
|
-
}) :
|
|
3863
|
+
}) : qt(e) ? L.object(e, void 0, {
|
|
3864
3864
|
name: n,
|
|
3865
3865
|
deep: !1
|
|
3866
|
-
}) :
|
|
3866
|
+
}) : Qt(e) ? L.map(e, {
|
|
3867
3867
|
name: n,
|
|
3868
3868
|
deep: !1
|
|
3869
|
-
}) :
|
|
3869
|
+
}) : $t(e) ? L.set(e, {
|
|
3870
3870
|
name: n,
|
|
3871
3871
|
deep: !1
|
|
3872
3872
|
}) : M(!1);
|
|
3873
3873
|
}
|
|
3874
|
-
function
|
|
3874
|
+
function Dn(e) {
|
|
3875
3875
|
return e;
|
|
3876
3876
|
}
|
|
3877
|
-
function
|
|
3878
|
-
return
|
|
3877
|
+
function On(e, t, n) {
|
|
3878
|
+
return Gi(e, t) ? t : e;
|
|
3879
3879
|
}
|
|
3880
|
-
function
|
|
3881
|
-
|
|
3882
|
-
var t =
|
|
3880
|
+
function kn(e) {
|
|
3881
|
+
Ht(e);
|
|
3882
|
+
var t = Cn(!0, function(t, n, r, i, a) {
|
|
3883
3883
|
var o = r ? r.initializer ? r.initializer.call(t) : r.value : void 0;
|
|
3884
|
-
|
|
3884
|
+
Ni(t).addObservableProp(n, o, e);
|
|
3885
3885
|
}), n = (typeof process < "u" && process.env, t);
|
|
3886
3886
|
return n.enhancer = e, n;
|
|
3887
3887
|
}
|
|
3888
|
-
var
|
|
3888
|
+
var An = {
|
|
3889
3889
|
deep: !0,
|
|
3890
3890
|
name: void 0,
|
|
3891
3891
|
defaultDecorator: void 0,
|
|
3892
3892
|
proxy: !0
|
|
3893
3893
|
};
|
|
3894
|
-
Object.freeze(
|
|
3895
|
-
function
|
|
3896
|
-
return e == null ?
|
|
3894
|
+
Object.freeze(An);
|
|
3895
|
+
function jn(e) {
|
|
3896
|
+
return e == null ? An : typeof e == "string" ? {
|
|
3897
3897
|
name: e,
|
|
3898
3898
|
deep: !0,
|
|
3899
3899
|
proxy: !0
|
|
3900
3900
|
} : e;
|
|
3901
3901
|
}
|
|
3902
|
-
var
|
|
3903
|
-
function
|
|
3904
|
-
return e.defaultDecorator ? e.defaultDecorator.enhancer : e.deep === !1 ?
|
|
3902
|
+
var Mn = kn(Tn), Nn = kn(En), Pn = kn(Dn), Fn = kn(On);
|
|
3903
|
+
function In(e) {
|
|
3904
|
+
return e.defaultDecorator ? e.defaultDecorator.enhancer : e.deep === !1 ? Dn : Tn;
|
|
3905
3905
|
}
|
|
3906
|
-
function
|
|
3907
|
-
if (typeof arguments[1] == "string" || typeof arguments[1] == "symbol") return
|
|
3908
|
-
if (
|
|
3909
|
-
var r =
|
|
3906
|
+
function Ln(e, t, n) {
|
|
3907
|
+
if (typeof arguments[1] == "string" || typeof arguments[1] == "symbol") return Mn.apply(null, arguments);
|
|
3908
|
+
if (oi(e)) return e;
|
|
3909
|
+
var r = qt(e) ? L.object(e, t, n) : Array.isArray(e) ? L.array(e, t) : Qt(e) ? L.map(e, t) : $t(e) ? L.set(e, t) : e;
|
|
3910
3910
|
if (r !== e) return r;
|
|
3911
3911
|
M(!1);
|
|
3912
3912
|
}
|
|
3913
|
-
var
|
|
3913
|
+
var Rn = {
|
|
3914
3914
|
box: function(e, t) {
|
|
3915
|
-
arguments.length > 2 &&
|
|
3916
|
-
var n =
|
|
3917
|
-
return new
|
|
3915
|
+
arguments.length > 2 && zn("box");
|
|
3916
|
+
var n = jn(t);
|
|
3917
|
+
return new ur(e, In(n), n.name, !0, n.equals);
|
|
3918
3918
|
},
|
|
3919
3919
|
array: function(e, t) {
|
|
3920
|
-
arguments.length > 2 &&
|
|
3921
|
-
var n =
|
|
3922
|
-
return
|
|
3920
|
+
arguments.length > 2 && zn("array");
|
|
3921
|
+
var n = jn(t);
|
|
3922
|
+
return Si(e, In(n), n.name);
|
|
3923
3923
|
},
|
|
3924
3924
|
map: function(e, t) {
|
|
3925
|
-
arguments.length > 2 &&
|
|
3926
|
-
var n =
|
|
3927
|
-
return new
|
|
3925
|
+
arguments.length > 2 && zn("map");
|
|
3926
|
+
var n = jn(t);
|
|
3927
|
+
return new Oi(e, In(n), n.name);
|
|
3928
3928
|
},
|
|
3929
3929
|
set: function(e, t) {
|
|
3930
|
-
arguments.length > 2 &&
|
|
3931
|
-
var n =
|
|
3932
|
-
return new
|
|
3930
|
+
arguments.length > 2 && zn("set");
|
|
3931
|
+
var n = jn(t);
|
|
3932
|
+
return new ji(e, In(n), n.name);
|
|
3933
3933
|
},
|
|
3934
3934
|
object: function(e, t, n) {
|
|
3935
|
-
typeof arguments[1] == "string" &&
|
|
3936
|
-
var r =
|
|
3937
|
-
if (r.proxy === !1) return
|
|
3938
|
-
var i =
|
|
3939
|
-
return
|
|
3935
|
+
typeof arguments[1] == "string" && zn("object");
|
|
3936
|
+
var r = jn(n);
|
|
3937
|
+
if (r.proxy === !1) return $r({}, e, t, r);
|
|
3938
|
+
var i = ei(r), a = _i($r({}, void 0, void 0, r));
|
|
3939
|
+
return ti(a, e, t, i), a;
|
|
3940
3940
|
},
|
|
3941
|
-
ref:
|
|
3942
|
-
shallow:
|
|
3943
|
-
deep:
|
|
3944
|
-
struct:
|
|
3945
|
-
}, L =
|
|
3946
|
-
Object.keys(
|
|
3947
|
-
return L[e] =
|
|
3941
|
+
ref: Pn,
|
|
3942
|
+
shallow: Nn,
|
|
3943
|
+
deep: Mn,
|
|
3944
|
+
struct: Fn
|
|
3945
|
+
}, L = Ln;
|
|
3946
|
+
Object.keys(Rn).forEach(function(e) {
|
|
3947
|
+
return L[e] = Rn[e];
|
|
3948
3948
|
});
|
|
3949
|
-
function
|
|
3949
|
+
function zn(e) {
|
|
3950
3950
|
M("Expected one or two arguments to observable." + e + ". Did you accidentally try to use observable." + e + " as decorator?");
|
|
3951
3951
|
}
|
|
3952
|
-
var
|
|
3952
|
+
var Bn = Cn(!1, function(e, t, n, r, i) {
|
|
3953
3953
|
var a = n.get, o = n.set, s = i[0] || {};
|
|
3954
|
-
|
|
3954
|
+
Ni(e).addComputedProp(e, t, mn({
|
|
3955
3955
|
get: a,
|
|
3956
3956
|
set: o,
|
|
3957
3957
|
context: e
|
|
3958
3958
|
}, s));
|
|
3959
|
-
}),
|
|
3960
|
-
if (typeof t == "string" || typeof e == "object" && e && arguments.length === 1) return
|
|
3959
|
+
}), Vn = Bn({ equals: dn.structural }), Hn = function(e, t, n) {
|
|
3960
|
+
if (typeof t == "string" || typeof e == "object" && e && arguments.length === 1) return Bn.apply(null, arguments);
|
|
3961
3961
|
var r = typeof t == "object" ? t : {};
|
|
3962
|
-
return r.get = e, r.set = typeof t == "function" ? t : r.set, r.name = r.name || e.name || "", new
|
|
3962
|
+
return r.get = e, r.set = typeof t == "function" ? t : r.set, r.name = r.name || e.name || "", new fr(r);
|
|
3963
3963
|
};
|
|
3964
|
-
|
|
3964
|
+
Hn.struct = Vn;
|
|
3965
3965
|
var R;
|
|
3966
3966
|
(function(e) {
|
|
3967
3967
|
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";
|
|
@@ -3970,43 +3970,43 @@ var z;
|
|
|
3970
3970
|
(function(e) {
|
|
3971
3971
|
e[e.NONE = 0] = "NONE", e[e.LOG = 1] = "LOG", e[e.BREAK = 2] = "BREAK";
|
|
3972
3972
|
})(z || (z = {}));
|
|
3973
|
-
var
|
|
3973
|
+
var Un = function() {
|
|
3974
3974
|
function e(e) {
|
|
3975
3975
|
this.cause = e;
|
|
3976
3976
|
}
|
|
3977
3977
|
return e;
|
|
3978
3978
|
}();
|
|
3979
|
-
function Un(e) {
|
|
3980
|
-
return e instanceof Hn;
|
|
3981
|
-
}
|
|
3982
3979
|
function Wn(e) {
|
|
3980
|
+
return e instanceof Un;
|
|
3981
|
+
}
|
|
3982
|
+
function Gn(e) {
|
|
3983
3983
|
switch (e.dependenciesState) {
|
|
3984
3984
|
case R.UP_TO_DATE: return !1;
|
|
3985
3985
|
case R.NOT_TRACKING:
|
|
3986
3986
|
case R.STALE: return !0;
|
|
3987
3987
|
case R.POSSIBLY_STALE:
|
|
3988
|
-
for (var t =
|
|
3988
|
+
for (var t = Qn(!0), n = Zn(), r = e.observing, i = r.length, a = 0; a < i; a++) {
|
|
3989
3989
|
var o = r[a];
|
|
3990
|
-
if (
|
|
3990
|
+
if (pr(o)) {
|
|
3991
3991
|
if (V.disableErrorBoundaries) o.get();
|
|
3992
3992
|
else try {
|
|
3993
3993
|
o.get();
|
|
3994
3994
|
} catch {
|
|
3995
|
-
return B(n),
|
|
3995
|
+
return B(n), $n(t), !0;
|
|
3996
3996
|
}
|
|
3997
|
-
if (e.dependenciesState === R.STALE) return B(n),
|
|
3997
|
+
if (e.dependenciesState === R.STALE) return B(n), $n(t), !0;
|
|
3998
3998
|
}
|
|
3999
3999
|
}
|
|
4000
|
-
return
|
|
4000
|
+
return er(e), B(n), $n(t), !1;
|
|
4001
4001
|
}
|
|
4002
4002
|
}
|
|
4003
|
-
function
|
|
4003
|
+
function Kn(e) {
|
|
4004
4004
|
var t = e.observers.size > 0;
|
|
4005
4005
|
V.computationDepth > 0 && t && M(!1), !V.allowStateChanges && (t || V.enforceActions === "strict") && M(!1);
|
|
4006
4006
|
}
|
|
4007
|
-
function
|
|
4008
|
-
var r =
|
|
4009
|
-
|
|
4007
|
+
function qn(e, t, n) {
|
|
4008
|
+
var r = Qn(!0);
|
|
4009
|
+
er(e), e.newObserving = Array(e.observing.length + 100), e.unboundDepsCount = 0, e.runId = ++V.runId;
|
|
4010
4010
|
var i = V.trackingDerivation;
|
|
4011
4011
|
V.trackingDerivation = e;
|
|
4012
4012
|
var a;
|
|
@@ -4014,105 +4014,105 @@ function Kn(e, t, n) {
|
|
|
4014
4014
|
else try {
|
|
4015
4015
|
a = t.call(n);
|
|
4016
4016
|
} catch (e) {
|
|
4017
|
-
a = new
|
|
4017
|
+
a = new Un(e);
|
|
4018
4018
|
}
|
|
4019
|
-
return V.trackingDerivation = i,
|
|
4019
|
+
return V.trackingDerivation = i, Jn(e), $n(r), a;
|
|
4020
4020
|
}
|
|
4021
|
-
function
|
|
4021
|
+
function Jn(e) {
|
|
4022
4022
|
for (var t = e.observing, n = e.observing = e.newObserving, r = R.UP_TO_DATE, i = 0, a = e.unboundDepsCount, o = 0; o < a; o++) {
|
|
4023
4023
|
var s = n[o];
|
|
4024
4024
|
s.diffValue === 0 && (s.diffValue = 1, i !== o && (n[i] = s), i++), s.dependenciesState > r && (r = s.dependenciesState);
|
|
4025
4025
|
}
|
|
4026
4026
|
for (n.length = i, e.newObserving = null, a = t.length; a--;) {
|
|
4027
4027
|
var s = t[a];
|
|
4028
|
-
s.diffValue === 0 &&
|
|
4028
|
+
s.diffValue === 0 && xr(s, e), s.diffValue = 0;
|
|
4029
4029
|
}
|
|
4030
4030
|
for (; i--;) {
|
|
4031
4031
|
var s = n[i];
|
|
4032
|
-
s.diffValue === 1 && (s.diffValue = 0,
|
|
4032
|
+
s.diffValue === 1 && (s.diffValue = 0, br(s, e));
|
|
4033
4033
|
}
|
|
4034
4034
|
r !== R.UP_TO_DATE && (e.dependenciesState = r, e.onBecomeStale());
|
|
4035
4035
|
}
|
|
4036
|
-
function
|
|
4036
|
+
function Yn(e) {
|
|
4037
4037
|
var t = e.observing;
|
|
4038
4038
|
e.observing = [];
|
|
4039
|
-
for (var n = t.length; n--;)
|
|
4039
|
+
for (var n = t.length; n--;) xr(t[n], e);
|
|
4040
4040
|
e.dependenciesState = R.NOT_TRACKING;
|
|
4041
4041
|
}
|
|
4042
|
-
function
|
|
4043
|
-
var t =
|
|
4042
|
+
function Xn(e) {
|
|
4043
|
+
var t = Zn();
|
|
4044
4044
|
try {
|
|
4045
4045
|
return e();
|
|
4046
4046
|
} finally {
|
|
4047
4047
|
B(t);
|
|
4048
4048
|
}
|
|
4049
4049
|
}
|
|
4050
|
-
function
|
|
4050
|
+
function Zn() {
|
|
4051
4051
|
var e = V.trackingDerivation;
|
|
4052
4052
|
return V.trackingDerivation = null, e;
|
|
4053
4053
|
}
|
|
4054
4054
|
function B(e) {
|
|
4055
4055
|
V.trackingDerivation = e;
|
|
4056
4056
|
}
|
|
4057
|
-
function
|
|
4057
|
+
function Qn(e) {
|
|
4058
4058
|
var t = V.allowStateReads;
|
|
4059
4059
|
return V.allowStateReads = e, t;
|
|
4060
4060
|
}
|
|
4061
|
-
function
|
|
4061
|
+
function $n(e) {
|
|
4062
4062
|
V.allowStateReads = e;
|
|
4063
4063
|
}
|
|
4064
|
-
function
|
|
4064
|
+
function er(e) {
|
|
4065
4065
|
if (e.dependenciesState !== R.UP_TO_DATE) {
|
|
4066
4066
|
e.dependenciesState = R.UP_TO_DATE;
|
|
4067
4067
|
for (var t = e.observing, n = t.length; n--;) t[n].lowestObserverState = R.UP_TO_DATE;
|
|
4068
4068
|
}
|
|
4069
4069
|
}
|
|
4070
|
-
var
|
|
4071
|
-
|
|
4072
|
-
function
|
|
4070
|
+
var tr = 0, nr = 1, rr = Object.getOwnPropertyDescriptor(function() {}, "name");
|
|
4071
|
+
rr && rr.configurable;
|
|
4072
|
+
function ir(e, t, n) {
|
|
4073
4073
|
var r = function() {
|
|
4074
|
-
return
|
|
4074
|
+
return ar(e, t, n || this, arguments);
|
|
4075
4075
|
};
|
|
4076
4076
|
return r.isMobxAction = !0, r;
|
|
4077
4077
|
}
|
|
4078
|
-
function
|
|
4079
|
-
var i =
|
|
4078
|
+
function ar(e, t, n, r) {
|
|
4079
|
+
var i = or(e, n, r);
|
|
4080
4080
|
try {
|
|
4081
4081
|
return t.apply(n, r);
|
|
4082
4082
|
} catch (e) {
|
|
4083
4083
|
throw i.error = e, e;
|
|
4084
4084
|
} finally {
|
|
4085
|
-
|
|
4085
|
+
sr(i);
|
|
4086
4086
|
}
|
|
4087
4087
|
}
|
|
4088
|
-
function
|
|
4089
|
-
var r = W() && !!e, i = 0, a =
|
|
4088
|
+
function or(e, t, n) {
|
|
4089
|
+
var r = W() && !!e, i = 0, a = Zn();
|
|
4090
4090
|
H();
|
|
4091
4091
|
var o = {
|
|
4092
4092
|
prevDerivation: a,
|
|
4093
|
-
prevAllowStateChanges:
|
|
4094
|
-
prevAllowStateReads:
|
|
4093
|
+
prevAllowStateChanges: cr(!0),
|
|
4094
|
+
prevAllowStateReads: Qn(!0),
|
|
4095
4095
|
notifySpy: r,
|
|
4096
4096
|
startTime: i,
|
|
4097
|
-
actionId:
|
|
4098
|
-
parentActionId:
|
|
4097
|
+
actionId: nr++,
|
|
4098
|
+
parentActionId: tr
|
|
4099
4099
|
};
|
|
4100
|
-
return
|
|
4101
|
-
}
|
|
4102
|
-
function or(e) {
|
|
4103
|
-
er !== e.actionId && M("invalid action stack. did you forget to finish an action?"), er = e.parentActionId, e.error !== void 0 && (V.suppressReactionErrors = !0), cr(e.prevAllowStateChanges), Qn(e.prevAllowStateReads), U(), B(e.prevDerivation), e.notifySpy, V.suppressReactionErrors = !1;
|
|
4100
|
+
return tr = o.actionId, o;
|
|
4104
4101
|
}
|
|
4105
4102
|
function sr(e) {
|
|
4103
|
+
tr !== e.actionId && M("invalid action stack. did you forget to finish an action?"), tr = e.parentActionId, e.error !== void 0 && (V.suppressReactionErrors = !0), lr(e.prevAllowStateChanges), $n(e.prevAllowStateReads), U(), B(e.prevDerivation), e.notifySpy, V.suppressReactionErrors = !1;
|
|
4104
|
+
}
|
|
4105
|
+
function cr(e) {
|
|
4106
4106
|
var t = V.allowStateChanges;
|
|
4107
4107
|
return V.allowStateChanges = e, t;
|
|
4108
4108
|
}
|
|
4109
|
-
function
|
|
4109
|
+
function lr(e) {
|
|
4110
4110
|
V.allowStateChanges = e;
|
|
4111
4111
|
}
|
|
4112
|
-
var
|
|
4113
|
-
|
|
4112
|
+
var ur = function(e) {
|
|
4113
|
+
pn(t, e);
|
|
4114
4114
|
function t(t, n, r, i, a) {
|
|
4115
|
-
r === void 0 && (r = "ObservableValue@" + j()), i === void 0 && (i = !0), a === void 0 && (a =
|
|
4115
|
+
r === void 0 && (r = "ObservableValue@" + j()), i === void 0 && (i = !0), a === void 0 && (a = dn.default);
|
|
4116
4116
|
var o = e.call(this, r) || this;
|
|
4117
4117
|
return o.enhancer = n, o.name = r, o.equals = a, o.hasUnreportedChange = !1, o.value = n(t, void 0, r), o;
|
|
4118
4118
|
}
|
|
@@ -4121,7 +4121,7 @@ var lr = function(e) {
|
|
|
4121
4121
|
}, t.prototype.set = function(e) {
|
|
4122
4122
|
this.value, e = this.prepareNewValue(e), e !== V.UNCHANGED && this.setNewValue(e);
|
|
4123
4123
|
}, t.prototype.prepareNewValue = function(e) {
|
|
4124
|
-
if (
|
|
4124
|
+
if (Kn(this), q(this)) {
|
|
4125
4125
|
var t = J(this, {
|
|
4126
4126
|
object: this,
|
|
4127
4127
|
type: "update",
|
|
@@ -4142,29 +4142,29 @@ var lr = function(e) {
|
|
|
4142
4142
|
}, t.prototype.get = function() {
|
|
4143
4143
|
return this.reportObserved(), this.dehanceValue(this.value);
|
|
4144
4144
|
}, t.prototype.intercept = function(e) {
|
|
4145
|
-
return
|
|
4145
|
+
return vi(this, e);
|
|
4146
4146
|
}, t.prototype.observe = function(e, t) {
|
|
4147
4147
|
return t && e({
|
|
4148
4148
|
object: this,
|
|
4149
4149
|
type: "update",
|
|
4150
4150
|
newValue: this.value,
|
|
4151
4151
|
oldValue: void 0
|
|
4152
|
-
}),
|
|
4152
|
+
}), yi(this, e);
|
|
4153
4153
|
}, t.prototype.toJSON = function() {
|
|
4154
4154
|
return this.get();
|
|
4155
4155
|
}, t.prototype.toString = function() {
|
|
4156
4156
|
return this.name + "[" + this.value + "]";
|
|
4157
4157
|
}, t.prototype.valueOf = function() {
|
|
4158
|
-
return
|
|
4158
|
+
return tn(this.get());
|
|
4159
4159
|
}, t.prototype[Symbol.toPrimitive] = function() {
|
|
4160
4160
|
return this.valueOf();
|
|
4161
4161
|
}, t;
|
|
4162
|
-
}(
|
|
4162
|
+
}(rn), dr = N("ObservableValue", ur), fr = function() {
|
|
4163
4163
|
function e(e) {
|
|
4164
|
-
this.dependenciesState = R.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 = R.UP_TO_DATE, this.unboundDepsCount = 0, this.__mapid = "#" + j(), this.value = new
|
|
4164
|
+
this.dependenciesState = R.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 = R.UP_TO_DATE, this.unboundDepsCount = 0, this.__mapid = "#" + j(), this.value = new Un(null), this.isComputing = !1, this.isRunningSetter = !1, this.isTracing = z.NONE, Ht(e.get, "missing option for computed: get"), this.derivation = e.get, this.name = e.name || "ComputedValue@" + j(), e.set && (this.setter = ir(this.name + "-setter", e.set)), this.equals = e.equals || (e.compareStructural || e.struct ? dn.structural : dn.default), this.scope = e.context, this.requiresReaction = !!e.requiresReaction, this.keepAlive = !!e.keepAlive;
|
|
4165
4165
|
}
|
|
4166
4166
|
return e.prototype.onBecomeStale = function() {
|
|
4167
|
-
|
|
4167
|
+
Er(this);
|
|
4168
4168
|
}, e.prototype.onBecomeObserved = function() {
|
|
4169
4169
|
this.onBecomeObservedListeners && this.onBecomeObservedListeners.forEach(function(e) {
|
|
4170
4170
|
return e();
|
|
@@ -4174,45 +4174,45 @@ var lr = function(e) {
|
|
|
4174
4174
|
return e();
|
|
4175
4175
|
});
|
|
4176
4176
|
}, e.prototype.get = function() {
|
|
4177
|
-
this.isComputing && M("Cycle detected in computation " + this.name + ": " + this.derivation), V.inBatch === 0 && this.observers.size === 0 && !this.keepAlive ?
|
|
4177
|
+
this.isComputing && M("Cycle detected in computation " + this.name + ": " + this.derivation), V.inBatch === 0 && this.observers.size === 0 && !this.keepAlive ? Gn(this) && (this.warnAboutUntrackedRead(), H(), this.value = this.computeValue(!1), U()) : (Cr(this), Gn(this) && this.trackAndCompute() && Tr(this));
|
|
4178
4178
|
var e = this.value;
|
|
4179
|
-
if (
|
|
4179
|
+
if (Wn(e)) throw e.cause;
|
|
4180
4180
|
return e;
|
|
4181
4181
|
}, e.prototype.peek = function() {
|
|
4182
4182
|
var e = this.computeValue(!1);
|
|
4183
|
-
if (
|
|
4183
|
+
if (Wn(e)) throw e.cause;
|
|
4184
4184
|
return e;
|
|
4185
4185
|
}, e.prototype.set = function(e) {
|
|
4186
4186
|
if (this.setter) {
|
|
4187
|
-
|
|
4187
|
+
Ht(!this.isRunningSetter, "The setter of computed value '" + this.name + "' is trying to update itself. Did you intend to update an _observable_ value, instead of the computed property?"), this.isRunningSetter = !0;
|
|
4188
4188
|
try {
|
|
4189
4189
|
this.setter.call(this.scope, e);
|
|
4190
4190
|
} finally {
|
|
4191
4191
|
this.isRunningSetter = !1;
|
|
4192
4192
|
}
|
|
4193
|
-
} else
|
|
4193
|
+
} else Ht(!1, !1);
|
|
4194
4194
|
}, e.prototype.trackAndCompute = function() {
|
|
4195
|
-
var e = this.value, t = this.dependenciesState === R.NOT_TRACKING, n = this.computeValue(!0), r = t ||
|
|
4195
|
+
var e = this.value, t = this.dependenciesState === R.NOT_TRACKING, n = this.computeValue(!0), r = t || Wn(e) || Wn(n) || !this.equals(e, n);
|
|
4196
4196
|
return r && (this.value = n), r;
|
|
4197
4197
|
}, e.prototype.computeValue = function(e) {
|
|
4198
4198
|
this.isComputing = !0, V.computationDepth++;
|
|
4199
4199
|
var t;
|
|
4200
|
-
if (e) t =
|
|
4200
|
+
if (e) t = qn(this, this.derivation, this.scope);
|
|
4201
4201
|
else if (V.disableErrorBoundaries === !0) t = this.derivation.call(this.scope);
|
|
4202
4202
|
else try {
|
|
4203
4203
|
t = this.derivation.call(this.scope);
|
|
4204
4204
|
} catch (e) {
|
|
4205
|
-
t = new
|
|
4205
|
+
t = new Un(e);
|
|
4206
4206
|
}
|
|
4207
4207
|
return V.computationDepth--, this.isComputing = !1, t;
|
|
4208
4208
|
}, e.prototype.suspend = function() {
|
|
4209
|
-
this.keepAlive || (
|
|
4209
|
+
this.keepAlive || (Yn(this), this.value = void 0);
|
|
4210
4210
|
}, e.prototype.observe = function(e, t) {
|
|
4211
4211
|
var n = this, r = !0, i = void 0;
|
|
4212
|
-
return
|
|
4212
|
+
return Wr(function() {
|
|
4213
4213
|
var a = n.get();
|
|
4214
4214
|
if (!r || t) {
|
|
4215
|
-
var o =
|
|
4215
|
+
var o = Zn();
|
|
4216
4216
|
e({
|
|
4217
4217
|
type: "update",
|
|
4218
4218
|
object: n,
|
|
@@ -4227,35 +4227,35 @@ var lr = function(e) {
|
|
|
4227
4227
|
}, e.prototype.toString = function() {
|
|
4228
4228
|
return this.name + "[" + this.derivation.toString() + "]";
|
|
4229
4229
|
}, e.prototype.valueOf = function() {
|
|
4230
|
-
return
|
|
4230
|
+
return tn(this.get());
|
|
4231
4231
|
}, e.prototype[Symbol.toPrimitive] = function() {
|
|
4232
4232
|
return this.valueOf();
|
|
4233
4233
|
}, e;
|
|
4234
|
-
}(),
|
|
4234
|
+
}(), pr = N("ComputedValue", fr), mr = function() {
|
|
4235
4235
|
function e() {
|
|
4236
4236
|
this.version = 5, this.UNCHANGED = {}, this.trackingDerivation = null, this.computationDepth = 0, this.runId = 0, this.mobxGuid = 0, this.inBatch = 0, this.pendingUnobservations = [], this.pendingReactions = [], this.isRunningReactions = !1, this.allowStateChanges = !0, this.allowStateReads = !0, this.enforceActions = !1, this.spyListeners = [], this.globalReactionErrorHandlers = [], this.computedRequiresReaction = !1, this.reactionRequiresObservable = !1, this.observableRequiresReaction = !1, this.computedConfigurable = !1, this.disableErrorBoundaries = !1, this.suppressReactionErrors = !1;
|
|
4237
4237
|
}
|
|
4238
4238
|
return e;
|
|
4239
|
-
}(),
|
|
4240
|
-
function
|
|
4241
|
-
return typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self :
|
|
4242
|
-
}
|
|
4243
|
-
var
|
|
4244
|
-
var e =
|
|
4245
|
-
return e.__mobxInstanceCount > 0 && !e.__mobxGlobals && (
|
|
4246
|
-
|
|
4247
|
-
}, 1), new
|
|
4239
|
+
}(), hr = {};
|
|
4240
|
+
function gr() {
|
|
4241
|
+
return typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : hr;
|
|
4242
|
+
}
|
|
4243
|
+
var _r = !0, vr = !1, V = (function() {
|
|
4244
|
+
var e = gr();
|
|
4245
|
+
return e.__mobxInstanceCount > 0 && !e.__mobxGlobals && (_r = !1), e.__mobxGlobals && e.__mobxGlobals.version !== new mr().version && (_r = !1), _r ? e.__mobxGlobals ? (e.__mobxInstanceCount += 1, e.__mobxGlobals.UNCHANGED || (e.__mobxGlobals.UNCHANGED = {}), e.__mobxGlobals) : (e.__mobxInstanceCount = 1, e.__mobxGlobals = new mr()) : (setTimeout(function() {
|
|
4246
|
+
vr || M("There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`");
|
|
4247
|
+
}, 1), new mr());
|
|
4248
4248
|
})();
|
|
4249
|
-
function
|
|
4250
|
-
(V.pendingReactions.length || V.inBatch || V.isRunningReactions) && M("isolateGlobalState should be called before MobX is running any reactions"),
|
|
4249
|
+
function yr() {
|
|
4250
|
+
(V.pendingReactions.length || V.inBatch || V.isRunningReactions) && M("isolateGlobalState should be called before MobX is running any reactions"), vr = !0, _r && (--gr().__mobxInstanceCount === 0 && (gr().__mobxGlobals = void 0), V = new mr());
|
|
4251
4251
|
}
|
|
4252
|
-
function
|
|
4252
|
+
function br(e, t) {
|
|
4253
4253
|
e.observers.add(t), e.lowestObserverState > t.dependenciesState && (e.lowestObserverState = t.dependenciesState);
|
|
4254
4254
|
}
|
|
4255
|
-
function
|
|
4256
|
-
e.observers.delete(t), e.observers.size === 0 &&
|
|
4255
|
+
function xr(e, t) {
|
|
4256
|
+
e.observers.delete(t), e.observers.size === 0 && Sr(e);
|
|
4257
4257
|
}
|
|
4258
|
-
function
|
|
4258
|
+
function Sr(e) {
|
|
4259
4259
|
e.isPendingUnobservation === !1 && (e.isPendingUnobservation = !0, V.pendingUnobservations.push(e));
|
|
4260
4260
|
}
|
|
4261
4261
|
function H() {
|
|
@@ -4263,61 +4263,61 @@ function H() {
|
|
|
4263
4263
|
}
|
|
4264
4264
|
function U() {
|
|
4265
4265
|
if (--V.inBatch === 0) {
|
|
4266
|
-
|
|
4266
|
+
Mr();
|
|
4267
4267
|
for (var e = V.pendingUnobservations, t = 0; t < e.length; t++) {
|
|
4268
4268
|
var n = e[t];
|
|
4269
|
-
n.isPendingUnobservation = !1, n.observers.size === 0 && (n.isBeingObserved && (n.isBeingObserved = !1, n.onBecomeUnobserved()), n instanceof
|
|
4269
|
+
n.isPendingUnobservation = !1, n.observers.size === 0 && (n.isBeingObserved && (n.isBeingObserved = !1, n.onBecomeUnobserved()), n instanceof fr && n.suspend());
|
|
4270
4270
|
}
|
|
4271
4271
|
V.pendingUnobservations = [];
|
|
4272
4272
|
}
|
|
4273
4273
|
}
|
|
4274
|
-
function
|
|
4274
|
+
function Cr(e) {
|
|
4275
4275
|
var t = V.trackingDerivation;
|
|
4276
|
-
return t === null ? (e.observers.size === 0 && V.inBatch > 0 &&
|
|
4276
|
+
return t === null ? (e.observers.size === 0 && V.inBatch > 0 && Sr(e), !1) : (t.runId !== e.lastAccessedBy && (e.lastAccessedBy = t.runId, t.newObserving[t.unboundDepsCount++] = e, e.isBeingObserved || (e.isBeingObserved = !0, e.onBecomeObserved())), !0);
|
|
4277
4277
|
}
|
|
4278
|
-
function
|
|
4278
|
+
function wr(e) {
|
|
4279
4279
|
e.lowestObserverState !== R.STALE && (e.lowestObserverState = R.STALE, e.observers.forEach(function(t) {
|
|
4280
|
-
t.dependenciesState === R.UP_TO_DATE && (t.isTracing !== z.NONE &&
|
|
4280
|
+
t.dependenciesState === R.UP_TO_DATE && (t.isTracing !== z.NONE && Dr(t, e), t.onBecomeStale()), t.dependenciesState = R.STALE;
|
|
4281
4281
|
}));
|
|
4282
4282
|
}
|
|
4283
|
-
function
|
|
4283
|
+
function Tr(e) {
|
|
4284
4284
|
e.lowestObserverState !== R.STALE && (e.lowestObserverState = R.STALE, e.observers.forEach(function(t) {
|
|
4285
4285
|
t.dependenciesState === R.POSSIBLY_STALE ? t.dependenciesState = R.STALE : t.dependenciesState === R.UP_TO_DATE && (e.lowestObserverState = R.UP_TO_DATE);
|
|
4286
4286
|
}));
|
|
4287
4287
|
}
|
|
4288
|
-
function
|
|
4288
|
+
function Er(e) {
|
|
4289
4289
|
e.lowestObserverState === R.UP_TO_DATE && (e.lowestObserverState = R.POSSIBLY_STALE, e.observers.forEach(function(t) {
|
|
4290
|
-
t.dependenciesState === R.UP_TO_DATE && (t.dependenciesState = R.POSSIBLY_STALE, t.isTracing !== z.NONE &&
|
|
4290
|
+
t.dependenciesState === R.UP_TO_DATE && (t.dependenciesState = R.POSSIBLY_STALE, t.isTracing !== z.NONE && Dr(t, e), t.onBecomeStale());
|
|
4291
4291
|
}));
|
|
4292
4292
|
}
|
|
4293
|
-
function
|
|
4293
|
+
function Dr(e, t) {
|
|
4294
4294
|
if (console.log("[mobx.trace] '" + e.name + "' is invalidated due to a change in: '" + t.name + "'"), e.isTracing === z.BREAK) {
|
|
4295
4295
|
var n = [];
|
|
4296
|
-
|
|
4296
|
+
Or(ni(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 fr ? e.derivation.toString().replace(/[*]\//g, "/") : "") + "\n\nThe dependencies for this derivation are:\n\n" + n.join("\n") + "\n*/\n ")();
|
|
4297
4297
|
}
|
|
4298
4298
|
}
|
|
4299
|
-
function
|
|
4299
|
+
function Or(e, t, n) {
|
|
4300
4300
|
if (t.length >= 1e3) {
|
|
4301
4301
|
t.push("(and many more)");
|
|
4302
4302
|
return;
|
|
4303
4303
|
}
|
|
4304
4304
|
t.push("" + Array(n).join(" ") + e.name), e.dependencies && e.dependencies.forEach(function(e) {
|
|
4305
|
-
return
|
|
4305
|
+
return Or(e, t, n + 1);
|
|
4306
4306
|
});
|
|
4307
4307
|
}
|
|
4308
|
-
var
|
|
4308
|
+
var kr = function() {
|
|
4309
4309
|
function e(e, t, n, r) {
|
|
4310
4310
|
e === void 0 && (e = "Reaction@" + j()), r === void 0 && (r = !1), this.name = e, this.onInvalidate = t, this.errorHandler = n, this.requiresObservable = r, this.observing = [], this.newObserving = [], this.dependenciesState = R.NOT_TRACKING, this.diffValue = 0, this.runId = 0, this.unboundDepsCount = 0, this.__mapid = "#" + j(), this.isDisposed = !1, this._isScheduled = !1, this._isTrackPending = !1, this._isRunning = !1, this.isTracing = z.NONE;
|
|
4311
4311
|
}
|
|
4312
4312
|
return e.prototype.onBecomeStale = function() {
|
|
4313
4313
|
this.schedule();
|
|
4314
4314
|
}, e.prototype.schedule = function() {
|
|
4315
|
-
this._isScheduled || (this._isScheduled = !0, V.pendingReactions.push(this),
|
|
4315
|
+
this._isScheduled || (this._isScheduled = !0, V.pendingReactions.push(this), Mr());
|
|
4316
4316
|
}, e.prototype.isScheduled = function() {
|
|
4317
4317
|
return this._isScheduled;
|
|
4318
4318
|
}, e.prototype.runReaction = function() {
|
|
4319
4319
|
if (!this.isDisposed) {
|
|
4320
|
-
if (H(), this._isScheduled = !1,
|
|
4320
|
+
if (H(), this._isScheduled = !1, Gn(this)) {
|
|
4321
4321
|
this._isTrackPending = !0;
|
|
4322
4322
|
try {
|
|
4323
4323
|
this.onInvalidate(), this._isTrackPending;
|
|
@@ -4330,8 +4330,8 @@ var Or = function() {
|
|
|
4330
4330
|
}, e.prototype.track = function(e) {
|
|
4331
4331
|
if (!this.isDisposed) {
|
|
4332
4332
|
H(), this._isRunning = !0;
|
|
4333
|
-
var t =
|
|
4334
|
-
this._isRunning = !1, this._isTrackPending = !1, this.isDisposed &&
|
|
4333
|
+
var t = qn(this, e, void 0);
|
|
4334
|
+
this._isRunning = !1, this._isTrackPending = !1, this.isDisposed && Yn(this), Wn(t) && this.reportExceptionInDerivation(t.cause), U();
|
|
4335
4335
|
}
|
|
4336
4336
|
}, e.prototype.reportExceptionInDerivation = function(e) {
|
|
4337
4337
|
var t = this;
|
|
@@ -4345,33 +4345,33 @@ var Or = function() {
|
|
|
4345
4345
|
return n(e, t);
|
|
4346
4346
|
});
|
|
4347
4347
|
}, e.prototype.dispose = function() {
|
|
4348
|
-
this.isDisposed || (this.isDisposed = !0, this._isRunning || (H(),
|
|
4348
|
+
this.isDisposed || (this.isDisposed = !0, this._isRunning || (H(), Yn(this), U()));
|
|
4349
4349
|
}, e.prototype.getDisposer = function() {
|
|
4350
4350
|
var e = this.dispose.bind(this);
|
|
4351
4351
|
return e[F] = this, e;
|
|
4352
4352
|
}, e.prototype.toString = function() {
|
|
4353
4353
|
return "Reaction[" + this.name + "]";
|
|
4354
4354
|
}, e.prototype.trace = function(e) {
|
|
4355
|
-
e === void 0 && (e = !1),
|
|
4355
|
+
e === void 0 && (e = !1), fi(this, e);
|
|
4356
4356
|
}, e;
|
|
4357
|
-
}(),
|
|
4357
|
+
}(), Ar = 100, jr = function(e) {
|
|
4358
4358
|
return e();
|
|
4359
4359
|
};
|
|
4360
|
-
function jr() {
|
|
4361
|
-
V.inBatch > 0 || V.isRunningReactions || Ar(Mr);
|
|
4362
|
-
}
|
|
4363
4360
|
function Mr() {
|
|
4361
|
+
V.inBatch > 0 || V.isRunningReactions || jr(Nr);
|
|
4362
|
+
}
|
|
4363
|
+
function Nr() {
|
|
4364
4364
|
V.isRunningReactions = !0;
|
|
4365
4365
|
for (var e = V.pendingReactions, t = 0; e.length > 0;) {
|
|
4366
|
-
++t ===
|
|
4366
|
+
++t === Ar && (console.error("Reaction doesn't converge to a stable state after " + Ar + " iterations." + (" Probably there is a cycle in the reactive function: " + e[0])), e.splice(0));
|
|
4367
4367
|
for (var n = e.splice(0), r = 0, i = n.length; r < i; r++) n[r].runReaction();
|
|
4368
4368
|
}
|
|
4369
4369
|
V.isRunningReactions = !1;
|
|
4370
4370
|
}
|
|
4371
|
-
var
|
|
4372
|
-
function
|
|
4373
|
-
var t =
|
|
4374
|
-
|
|
4371
|
+
var Pr = N("Reaction", kr);
|
|
4372
|
+
function Fr(e) {
|
|
4373
|
+
var t = jr;
|
|
4374
|
+
jr = function(n) {
|
|
4375
4375
|
return e(function() {
|
|
4376
4376
|
return t(n);
|
|
4377
4377
|
});
|
|
@@ -4380,17 +4380,17 @@ function Pr(e) {
|
|
|
4380
4380
|
function W() {
|
|
4381
4381
|
return !1;
|
|
4382
4382
|
}
|
|
4383
|
-
function
|
|
4383
|
+
function Ir(e) {
|
|
4384
4384
|
return console.warn("[mobx.spy] Is a no-op in production builds"), function() {};
|
|
4385
4385
|
}
|
|
4386
|
-
function
|
|
4386
|
+
function Lr() {
|
|
4387
4387
|
M(!1);
|
|
4388
4388
|
}
|
|
4389
|
-
function
|
|
4389
|
+
function Rr(e) {
|
|
4390
4390
|
return function(t, n, r) {
|
|
4391
4391
|
if (r) {
|
|
4392
4392
|
if (r.value) return {
|
|
4393
|
-
value:
|
|
4393
|
+
value: ir(e, r.value),
|
|
4394
4394
|
enumerable: !1,
|
|
4395
4395
|
configurable: !0,
|
|
4396
4396
|
writable: !0
|
|
@@ -4401,65 +4401,65 @@ function Lr(e) {
|
|
|
4401
4401
|
configurable: !0,
|
|
4402
4402
|
writable: !0,
|
|
4403
4403
|
initializer: function() {
|
|
4404
|
-
return
|
|
4404
|
+
return ir(e, i.call(this));
|
|
4405
4405
|
}
|
|
4406
4406
|
};
|
|
4407
4407
|
}
|
|
4408
|
-
return
|
|
4408
|
+
return zr(e).apply(this, arguments);
|
|
4409
4409
|
};
|
|
4410
4410
|
}
|
|
4411
|
-
function
|
|
4411
|
+
function zr(e) {
|
|
4412
4412
|
return function(t, n, r) {
|
|
4413
4413
|
Object.defineProperty(t, n, {
|
|
4414
4414
|
configurable: !0,
|
|
4415
4415
|
enumerable: !1,
|
|
4416
4416
|
get: function() {},
|
|
4417
4417
|
set: function(t) {
|
|
4418
|
-
|
|
4418
|
+
Yt(this, n, Vr(e, t));
|
|
4419
4419
|
}
|
|
4420
4420
|
});
|
|
4421
4421
|
};
|
|
4422
4422
|
}
|
|
4423
|
-
function
|
|
4424
|
-
return r === !0 ? (
|
|
4423
|
+
function Br(e, t, n, r) {
|
|
4424
|
+
return r === !0 ? (Ur(e, t, n.value), null) : n ? {
|
|
4425
4425
|
configurable: !0,
|
|
4426
4426
|
enumerable: !1,
|
|
4427
4427
|
get: function() {
|
|
4428
|
-
return
|
|
4428
|
+
return Ur(this, t, n.value || n.initializer.call(this)), this[t];
|
|
4429
4429
|
},
|
|
4430
|
-
set:
|
|
4430
|
+
set: Lr
|
|
4431
4431
|
} : {
|
|
4432
4432
|
enumerable: !1,
|
|
4433
4433
|
configurable: !0,
|
|
4434
4434
|
set: function(e) {
|
|
4435
|
-
|
|
4435
|
+
Ur(this, t, e);
|
|
4436
4436
|
},
|
|
4437
4437
|
get: function() {}
|
|
4438
4438
|
};
|
|
4439
4439
|
}
|
|
4440
|
-
var
|
|
4441
|
-
if (arguments.length === 1 && typeof e == "function") return
|
|
4442
|
-
if (arguments.length === 2 && typeof t == "function") return
|
|
4443
|
-
if (arguments.length === 1 && typeof e == "string") return
|
|
4444
|
-
if (r === !0)
|
|
4445
|
-
else return
|
|
4440
|
+
var Vr = function(e, t, n, r) {
|
|
4441
|
+
if (arguments.length === 1 && typeof e == "function") return ir(e.name || "<unnamed action>", e);
|
|
4442
|
+
if (arguments.length === 2 && typeof t == "function") return ir(e, t);
|
|
4443
|
+
if (arguments.length === 1 && typeof e == "string") return Rr(e);
|
|
4444
|
+
if (r === !0) Yt(e, t, ir(e.name || t, n.value, this));
|
|
4445
|
+
else return Rr(t).apply(null, arguments);
|
|
4446
4446
|
};
|
|
4447
|
-
|
|
4448
|
-
function
|
|
4449
|
-
return
|
|
4447
|
+
Vr.bound = Br;
|
|
4448
|
+
function Hr(e, t) {
|
|
4449
|
+
return ar(typeof e == "string" ? e : e.name || "<unnamed action>", typeof e == "function" ? e : t, this, void 0);
|
|
4450
4450
|
}
|
|
4451
|
-
function
|
|
4452
|
-
|
|
4451
|
+
function Ur(e, t, n) {
|
|
4452
|
+
Yt(e, t, ir(t, n.bind(e)));
|
|
4453
4453
|
}
|
|
4454
|
-
function
|
|
4455
|
-
t === void 0 && (t =
|
|
4454
|
+
function Wr(e, t) {
|
|
4455
|
+
t === void 0 && (t = Vt);
|
|
4456
4456
|
var n = t && t.name || e.name || "Autorun@" + j(), r = !t.scheduler && !t.delay, i;
|
|
4457
|
-
if (r) i = new
|
|
4457
|
+
if (r) i = new kr(n, function() {
|
|
4458
4458
|
this.track(s);
|
|
4459
4459
|
}, t.onError, t.requiresObservable);
|
|
4460
4460
|
else {
|
|
4461
|
-
var a =
|
|
4462
|
-
i = new
|
|
4461
|
+
var a = Kr(t), o = !1;
|
|
4462
|
+
i = new kr(n, function() {
|
|
4463
4463
|
o || (o = !0, a(function() {
|
|
4464
4464
|
o = !1, i.isDisposed || i.track(s);
|
|
4465
4465
|
}));
|
|
@@ -4470,17 +4470,17 @@ function Ur(e, t) {
|
|
|
4470
4470
|
}
|
|
4471
4471
|
return i.schedule(), i.getDisposer();
|
|
4472
4472
|
}
|
|
4473
|
-
var
|
|
4473
|
+
var Gr = function(e) {
|
|
4474
4474
|
return e();
|
|
4475
4475
|
};
|
|
4476
|
-
function
|
|
4476
|
+
function Kr(e) {
|
|
4477
4477
|
return e.scheduler ? e.scheduler : e.delay ? function(t) {
|
|
4478
4478
|
return setTimeout(t, e.delay);
|
|
4479
|
-
} :
|
|
4479
|
+
} : Gr;
|
|
4480
4480
|
}
|
|
4481
|
-
function
|
|
4482
|
-
n === void 0 && (n =
|
|
4483
|
-
var r = n.name || "Reaction@" + j(), i =
|
|
4481
|
+
function qr(e, t, n) {
|
|
4482
|
+
n === void 0 && (n = Vt);
|
|
4483
|
+
var r = n.name || "Reaction@" + j(), i = Vr(r, n.onError ? Jr(n.onError, t) : t), a = !n.scheduler && !n.delay, o = Kr(n), s = !0, c = !1, l, u = n.compareStructural ? dn.structural : n.equals || dn.default, d = new kr(r, function() {
|
|
4484
4484
|
s || a ? f() : c || (c = !0, o(f));
|
|
4485
4485
|
}, n.onError, n.requiresObservable);
|
|
4486
4486
|
function f() {
|
|
@@ -4494,7 +4494,7 @@ function Kr(e, t, n) {
|
|
|
4494
4494
|
}
|
|
4495
4495
|
return d.schedule(), d.getDisposer();
|
|
4496
4496
|
}
|
|
4497
|
-
function
|
|
4497
|
+
function Jr(e, t) {
|
|
4498
4498
|
return function() {
|
|
4499
4499
|
try {
|
|
4500
4500
|
return t.apply(this, arguments);
|
|
@@ -4503,22 +4503,22 @@ function qr(e, t) {
|
|
|
4503
4503
|
}
|
|
4504
4504
|
};
|
|
4505
4505
|
}
|
|
4506
|
-
function Jr(e, t, n) {
|
|
4507
|
-
return Xr("onBecomeObserved", e, t, n);
|
|
4508
|
-
}
|
|
4509
4506
|
function Yr(e, t, n) {
|
|
4510
|
-
return
|
|
4507
|
+
return Zr("onBecomeObserved", e, t, n);
|
|
4511
4508
|
}
|
|
4512
|
-
function Xr(e, t, n
|
|
4513
|
-
|
|
4509
|
+
function Xr(e, t, n) {
|
|
4510
|
+
return Zr("onBecomeUnobserved", e, t, n);
|
|
4511
|
+
}
|
|
4512
|
+
function Zr(e, t, n, r) {
|
|
4513
|
+
var i = typeof r == "function" ? Vi(t, n) : Vi(t), a = typeof r == "function" ? r : n, o = e + "Listeners";
|
|
4514
4514
|
return i[o] ? i[o].add(a) : i[o] = new Set([a]), typeof i[e] == "function" ? function() {
|
|
4515
4515
|
var e = i[o];
|
|
4516
4516
|
e && (e.delete(a), e.size === 0 && delete i[o]);
|
|
4517
4517
|
} : M(!1);
|
|
4518
4518
|
}
|
|
4519
|
-
function
|
|
4519
|
+
function Qr(e) {
|
|
4520
4520
|
var t = e.enforceActions, n = e.computedRequiresReaction, r = e.computedConfigurable, i = e.disableErrorBoundaries, a = e.reactionScheduler, o = e.reactionRequiresObservable, s = e.observableRequiresReaction;
|
|
4521
|
-
if (e.isolateGlobalState === !0 &&
|
|
4521
|
+
if (e.isolateGlobalState === !0 && yr(), t !== void 0) {
|
|
4522
4522
|
var c = void 0;
|
|
4523
4523
|
switch (t) {
|
|
4524
4524
|
case !0:
|
|
@@ -4537,25 +4537,25 @@ function Zr(e) {
|
|
|
4537
4537
|
}
|
|
4538
4538
|
V.enforceActions = c, V.allowStateChanges = !(c === !0 || c === "strict");
|
|
4539
4539
|
}
|
|
4540
|
-
n !== void 0 && (V.computedRequiresReaction = !!n), o !== void 0 && (V.reactionRequiresObservable = !!o), s !== void 0 && (V.observableRequiresReaction = !!s, V.allowStateReads = !V.observableRequiresReaction), r !== void 0 && (V.computedConfigurable = !!r), i !== void 0 && (i === !0 && console.warn("WARNING: Debug feature only. MobX will NOT recover from errors when `disableErrorBoundaries` is enabled."), V.disableErrorBoundaries = !!i), a &&
|
|
4540
|
+
n !== void 0 && (V.computedRequiresReaction = !!n), o !== void 0 && (V.reactionRequiresObservable = !!o), s !== void 0 && (V.observableRequiresReaction = !!s, V.allowStateReads = !V.observableRequiresReaction), r !== void 0 && (V.computedConfigurable = !!r), i !== void 0 && (i === !0 && console.warn("WARNING: Debug feature only. MobX will NOT recover from errors when `disableErrorBoundaries` is enabled."), V.disableErrorBoundaries = !!i), a && Fr(a);
|
|
4541
4541
|
}
|
|
4542
|
-
function
|
|
4543
|
-
r =
|
|
4544
|
-
var i =
|
|
4545
|
-
return
|
|
4542
|
+
function $r(e, t, n, r) {
|
|
4543
|
+
r = jn(r);
|
|
4544
|
+
var i = ei(r);
|
|
4545
|
+
return Sn(e), Ni(e, r.name, i.enhancer), t && ti(e, t, n, i), e;
|
|
4546
4546
|
}
|
|
4547
|
-
function
|
|
4548
|
-
return e.defaultDecorator || (e.deep === !1 ?
|
|
4547
|
+
function ei(e) {
|
|
4548
|
+
return e.defaultDecorator || (e.deep === !1 ? Pn : Mn);
|
|
4549
4549
|
}
|
|
4550
|
-
function
|
|
4550
|
+
function ti(e, t, n, r) {
|
|
4551
4551
|
var i, a;
|
|
4552
4552
|
if (0) var o, s;
|
|
4553
4553
|
H();
|
|
4554
4554
|
try {
|
|
4555
|
-
var o =
|
|
4555
|
+
var o = nn(t);
|
|
4556
4556
|
try {
|
|
4557
4557
|
for (var c = I(o), l = c.next(); !l.done; l = c.next()) {
|
|
4558
|
-
var s = l.value, u = Object.getOwnPropertyDescriptor(t, s), d = (n && s in n ? n[s] : u.get ?
|
|
4558
|
+
var s = l.value, u = Object.getOwnPropertyDescriptor(t, s), d = (n && s in n ? n[s] : u.get ? Bn : r)(e, s, u, !0);
|
|
4559
4559
|
d && Object.defineProperty(e, s, d);
|
|
4560
4560
|
}
|
|
4561
4561
|
} catch (e) {
|
|
@@ -4571,63 +4571,63 @@ function ei(e, t, n, r) {
|
|
|
4571
4571
|
U();
|
|
4572
4572
|
}
|
|
4573
4573
|
}
|
|
4574
|
-
function
|
|
4575
|
-
return
|
|
4574
|
+
function ni(e, t) {
|
|
4575
|
+
return ri(Vi(e, t));
|
|
4576
4576
|
}
|
|
4577
|
-
function
|
|
4577
|
+
function ri(e) {
|
|
4578
4578
|
var t = { name: e.name };
|
|
4579
|
-
return e.observing && e.observing.length > 0 && (t.dependencies =
|
|
4579
|
+
return e.observing && e.observing.length > 0 && (t.dependencies = Gt(e.observing).map(ri)), t;
|
|
4580
4580
|
}
|
|
4581
|
-
function
|
|
4581
|
+
function ii() {
|
|
4582
4582
|
this.message = "FLOW_CANCELLED";
|
|
4583
4583
|
}
|
|
4584
|
-
|
|
4585
|
-
function
|
|
4586
|
-
return e == null ? !1 : t === void 0 ?
|
|
4587
|
-
}
|
|
4588
|
-
function ai(e) {
|
|
4589
|
-
return arguments.length !== 1 && M(!1), ii(e);
|
|
4584
|
+
ii.prototype = Object.create(Error.prototype);
|
|
4585
|
+
function ai(e, t) {
|
|
4586
|
+
return e == null ? !1 : t === void 0 ? Bi(e) || !!e[F] || an(e) || Pr(e) || pr(e) : Bi(e) ? e[F].values.has(t) : !1;
|
|
4590
4587
|
}
|
|
4591
4588
|
function oi(e) {
|
|
4592
|
-
return
|
|
4589
|
+
return arguments.length !== 1 && M(!1), ai(e);
|
|
4590
|
+
}
|
|
4591
|
+
function si(e) {
|
|
4592
|
+
return Bi(e) ? e[F].getKeys() : Q(e) || $(e) ? Array.from(e.keys()) : Ti(e) ? e.map(function(e, t) {
|
|
4593
4593
|
return t;
|
|
4594
4594
|
}) : M(!1);
|
|
4595
4595
|
}
|
|
4596
|
-
function
|
|
4596
|
+
function ci(e, t, n) {
|
|
4597
4597
|
if (arguments.length === 2 && !$(e)) {
|
|
4598
4598
|
H();
|
|
4599
4599
|
var r = t;
|
|
4600
4600
|
try {
|
|
4601
|
-
for (var i in r)
|
|
4601
|
+
for (var i in r) ci(e, i, r[i]);
|
|
4602
4602
|
} finally {
|
|
4603
4603
|
U();
|
|
4604
4604
|
}
|
|
4605
4605
|
return;
|
|
4606
4606
|
}
|
|
4607
|
-
if (
|
|
4607
|
+
if (Bi(e)) {
|
|
4608
4608
|
var a = e[F];
|
|
4609
4609
|
a.values.get(t) ? a.write(t, n) : a.addObservableProp(t, n, a.defaultEnhancer);
|
|
4610
4610
|
} else if (Q(e)) e.set(t, n);
|
|
4611
4611
|
else if ($(e)) e.add(t);
|
|
4612
|
-
else if (
|
|
4612
|
+
else if (Ti(e)) typeof t != "number" && (t = parseInt(t, 10)), Ht(t >= 0, "Not a valid index: '" + t + "'"), H(), t >= e.length && (e.length = t + 1), e[t] = n, U();
|
|
4613
4613
|
else return M(!1);
|
|
4614
4614
|
}
|
|
4615
|
-
var
|
|
4615
|
+
var li = {
|
|
4616
4616
|
detectCycles: !0,
|
|
4617
4617
|
exportMapsAsObjects: !0,
|
|
4618
4618
|
recurseEverything: !1
|
|
4619
4619
|
};
|
|
4620
|
-
function
|
|
4620
|
+
function ui(e, t, n, r) {
|
|
4621
4621
|
return r.detectCycles && e.set(t, n), n;
|
|
4622
4622
|
}
|
|
4623
4623
|
function G(e, t, n) {
|
|
4624
|
-
if (!t.recurseEverything && !
|
|
4624
|
+
if (!t.recurseEverything && !oi(e) || typeof e != "object") return e;
|
|
4625
4625
|
if (e === null) return null;
|
|
4626
4626
|
if (e instanceof Date) return e;
|
|
4627
|
-
if (
|
|
4628
|
-
if (
|
|
4629
|
-
if (
|
|
4630
|
-
var r =
|
|
4627
|
+
if (dr(e)) return G(e.get(), t, n);
|
|
4628
|
+
if (oi(e) && si(e), t.detectCycles === !0 && e !== null && n.has(e)) return n.get(e);
|
|
4629
|
+
if (Ti(e) || Array.isArray(e)) {
|
|
4630
|
+
var r = ui(n, e, [], t), i = e.map(function(e) {
|
|
4631
4631
|
return G(e, t, n);
|
|
4632
4632
|
});
|
|
4633
4633
|
r.length = i.length;
|
|
@@ -4635,49 +4635,49 @@ function G(e, t, n) {
|
|
|
4635
4635
|
return r;
|
|
4636
4636
|
}
|
|
4637
4637
|
if ($(e) || Object.getPrototypeOf(e) === Set.prototype) if (t.exportMapsAsObjects === !1) {
|
|
4638
|
-
var s =
|
|
4638
|
+
var s = ui(n, e, /* @__PURE__ */ new Set(), t);
|
|
4639
4639
|
return e.forEach(function(e) {
|
|
4640
4640
|
s.add(G(e, t, n));
|
|
4641
4641
|
}), s;
|
|
4642
4642
|
} else {
|
|
4643
|
-
var c =
|
|
4643
|
+
var c = ui(n, e, [], t);
|
|
4644
4644
|
return e.forEach(function(e) {
|
|
4645
4645
|
c.push(G(e, t, n));
|
|
4646
4646
|
}), c;
|
|
4647
4647
|
}
|
|
4648
4648
|
if (Q(e) || Object.getPrototypeOf(e) === Map.prototype) if (t.exportMapsAsObjects === !1) {
|
|
4649
|
-
var l =
|
|
4649
|
+
var l = ui(n, e, /* @__PURE__ */ new Map(), t);
|
|
4650
4650
|
return e.forEach(function(e, r) {
|
|
4651
4651
|
l.set(r, G(e, t, n));
|
|
4652
4652
|
}), l;
|
|
4653
4653
|
} else {
|
|
4654
|
-
var u =
|
|
4654
|
+
var u = ui(n, e, {}, t);
|
|
4655
4655
|
return e.forEach(function(e, r) {
|
|
4656
4656
|
u[r] = G(e, t, n);
|
|
4657
4657
|
}), u;
|
|
4658
4658
|
}
|
|
4659
|
-
var d =
|
|
4660
|
-
return
|
|
4659
|
+
var d = ui(n, e, {}, t);
|
|
4660
|
+
return en(e).forEach(function(r) {
|
|
4661
4661
|
d[r] = G(e[r], t, n);
|
|
4662
4662
|
}), d;
|
|
4663
4663
|
}
|
|
4664
|
-
function
|
|
4665
|
-
typeof t == "boolean" && (t = { detectCycles: t }), t || (t =
|
|
4664
|
+
function di(e, t) {
|
|
4665
|
+
typeof t == "boolean" && (t = { detectCycles: t }), t || (t = li), t.detectCycles = t.detectCycles === void 0 ? t.recurseEverything === !0 : t.detectCycles === !0;
|
|
4666
4666
|
var n;
|
|
4667
4667
|
return t.detectCycles && (n = /* @__PURE__ */ new Map()), G(e, t, n);
|
|
4668
4668
|
}
|
|
4669
|
-
function
|
|
4669
|
+
function fi() {
|
|
4670
4670
|
var e = [...arguments], t = !1;
|
|
4671
4671
|
typeof e[e.length - 1] == "boolean" && (t = e.pop());
|
|
4672
|
-
var n =
|
|
4672
|
+
var n = pi(e);
|
|
4673
4673
|
if (!n) return M(!1);
|
|
4674
4674
|
n.isTracing === z.NONE && console.log("[mobx.trace] '" + n.name + "' tracing enabled"), n.isTracing = t ? z.BREAK : z.LOG;
|
|
4675
4675
|
}
|
|
4676
|
-
function
|
|
4676
|
+
function pi(e) {
|
|
4677
4677
|
switch (e.length) {
|
|
4678
4678
|
case 0: return V.trackingDerivation;
|
|
4679
|
-
case 1: return
|
|
4680
|
-
case 2: return
|
|
4679
|
+
case 1: return Vi(e[0]);
|
|
4680
|
+
case 2: return Vi(e[0], e[1]);
|
|
4681
4681
|
}
|
|
4682
4682
|
}
|
|
4683
4683
|
function K(e, t) {
|
|
@@ -4688,58 +4688,58 @@ function K(e, t) {
|
|
|
4688
4688
|
U();
|
|
4689
4689
|
}
|
|
4690
4690
|
}
|
|
4691
|
-
function
|
|
4691
|
+
function mi(e) {
|
|
4692
4692
|
return e[F];
|
|
4693
4693
|
}
|
|
4694
|
-
function
|
|
4694
|
+
function hi(e) {
|
|
4695
4695
|
return typeof e == "string" || typeof e == "number" || typeof e == "symbol";
|
|
4696
4696
|
}
|
|
4697
|
-
var
|
|
4697
|
+
var gi = {
|
|
4698
4698
|
has: function(e, t) {
|
|
4699
|
-
if (t === F || t === "constructor" || t ===
|
|
4700
|
-
var n =
|
|
4701
|
-
return
|
|
4699
|
+
if (t === F || t === "constructor" || t === _n) return !0;
|
|
4700
|
+
var n = mi(e);
|
|
4701
|
+
return hi(t) ? n.has(t) : t in e;
|
|
4702
4702
|
},
|
|
4703
4703
|
get: function(e, t) {
|
|
4704
|
-
if (t === F || t === "constructor" || t ===
|
|
4705
|
-
var n =
|
|
4706
|
-
if (r instanceof
|
|
4704
|
+
if (t === F || t === "constructor" || t === _n) return e[t];
|
|
4705
|
+
var n = mi(e), r = n.values.get(t);
|
|
4706
|
+
if (r instanceof rn) {
|
|
4707
4707
|
var i = r.get();
|
|
4708
4708
|
return i === void 0 && n.has(t), i;
|
|
4709
4709
|
}
|
|
4710
|
-
return
|
|
4710
|
+
return hi(t) && n.has(t), e[t];
|
|
4711
4711
|
},
|
|
4712
4712
|
set: function(e, t, n) {
|
|
4713
|
-
return
|
|
4713
|
+
return hi(t) ? (ci(e, t, n), !0) : !1;
|
|
4714
4714
|
},
|
|
4715
4715
|
deleteProperty: function(e, t) {
|
|
4716
|
-
return
|
|
4716
|
+
return hi(t) ? (mi(e).remove(t), !0) : !1;
|
|
4717
4717
|
},
|
|
4718
4718
|
ownKeys: function(e) {
|
|
4719
|
-
return
|
|
4719
|
+
return mi(e).keysAtom.reportObserved(), Reflect.ownKeys(e);
|
|
4720
4720
|
},
|
|
4721
4721
|
preventExtensions: function(e) {
|
|
4722
4722
|
return M("Dynamic observable objects cannot be frozen"), !1;
|
|
4723
4723
|
}
|
|
4724
4724
|
};
|
|
4725
|
-
function
|
|
4726
|
-
var t = new Proxy(e,
|
|
4725
|
+
function _i(e) {
|
|
4726
|
+
var t = new Proxy(e, gi);
|
|
4727
4727
|
return e[F].proxy = t, t;
|
|
4728
4728
|
}
|
|
4729
4729
|
function q(e) {
|
|
4730
4730
|
return e.interceptors !== void 0 && e.interceptors.length > 0;
|
|
4731
4731
|
}
|
|
4732
|
-
function
|
|
4732
|
+
function vi(e, t) {
|
|
4733
4733
|
var n = e.interceptors || (e.interceptors = []);
|
|
4734
|
-
return n.push(t),
|
|
4734
|
+
return n.push(t), Ut(function() {
|
|
4735
4735
|
var e = n.indexOf(t);
|
|
4736
4736
|
e !== -1 && n.splice(e, 1);
|
|
4737
4737
|
});
|
|
4738
4738
|
}
|
|
4739
4739
|
function J(e, t) {
|
|
4740
|
-
var n =
|
|
4740
|
+
var n = Zn();
|
|
4741
4741
|
try {
|
|
4742
|
-
for (var r =
|
|
4742
|
+
for (var r = gn(e.interceptors || []), i = 0, a = r.length; i < a && (t = r[i](t), Ht(!t || t.type, "Intercept handlers should return nothing or a change object"), t); i++);
|
|
4743
4743
|
return t;
|
|
4744
4744
|
} finally {
|
|
4745
4745
|
B(n);
|
|
@@ -4748,22 +4748,22 @@ function J(e, t) {
|
|
|
4748
4748
|
function Y(e) {
|
|
4749
4749
|
return e.changeListeners !== void 0 && e.changeListeners.length > 0;
|
|
4750
4750
|
}
|
|
4751
|
-
function
|
|
4751
|
+
function yi(e, t) {
|
|
4752
4752
|
var n = e.changeListeners || (e.changeListeners = []);
|
|
4753
|
-
return n.push(t),
|
|
4753
|
+
return n.push(t), Ut(function() {
|
|
4754
4754
|
var e = n.indexOf(t);
|
|
4755
4755
|
e !== -1 && n.splice(e, 1);
|
|
4756
4756
|
});
|
|
4757
4757
|
}
|
|
4758
4758
|
function X(e, t) {
|
|
4759
|
-
var n =
|
|
4759
|
+
var n = Zn(), r = e.changeListeners;
|
|
4760
4760
|
if (r) {
|
|
4761
4761
|
r = r.slice();
|
|
4762
4762
|
for (var i = 0, a = r.length; i < a; i++) r[i](t);
|
|
4763
4763
|
B(n);
|
|
4764
4764
|
}
|
|
4765
4765
|
}
|
|
4766
|
-
var
|
|
4766
|
+
var bi = 1e4, xi = {
|
|
4767
4767
|
get: function(e, t) {
|
|
4768
4768
|
return t === F ? e[F] : t === "length" ? e[F].getArrayLength() : typeof t == "number" ? Z.get.call(e, t) : typeof t == "string" && !isNaN(t) ? Z.get.call(e, parseInt(t)) : Z.hasOwnProperty(t) ? Z[t] : e[t];
|
|
4769
4769
|
},
|
|
@@ -4774,20 +4774,20 @@ var yi = 1e4, bi = {
|
|
|
4774
4774
|
return M("Observable arrays cannot be frozen"), !1;
|
|
4775
4775
|
}
|
|
4776
4776
|
};
|
|
4777
|
-
function
|
|
4777
|
+
function Si(e, t, n, r) {
|
|
4778
4778
|
n === void 0 && (n = "ObservableArray@" + j()), r === void 0 && (r = !1);
|
|
4779
|
-
var i = new
|
|
4780
|
-
|
|
4781
|
-
var a = new Proxy(i.values,
|
|
4779
|
+
var i = new Ci(n, t, r);
|
|
4780
|
+
Xt(i.values, F, i);
|
|
4781
|
+
var a = new Proxy(i.values, xi);
|
|
4782
4782
|
if (i.proxy = a, e && e.length) {
|
|
4783
|
-
var o =
|
|
4784
|
-
i.spliceWithArray(0, 0, e),
|
|
4783
|
+
var o = cr(!0);
|
|
4784
|
+
i.spliceWithArray(0, 0, e), lr(o);
|
|
4785
4785
|
}
|
|
4786
4786
|
return a;
|
|
4787
4787
|
}
|
|
4788
|
-
var
|
|
4788
|
+
var Ci = function() {
|
|
4789
4789
|
function e(e, t, n) {
|
|
4790
|
-
this.owned = n, this.values = [], this.proxy = void 0, this.lastKnownLength = 0, this.atom = new
|
|
4790
|
+
this.owned = n, this.values = [], this.proxy = void 0, this.lastKnownLength = 0, this.atom = new rn(e || "ObservableArray@" + j()), this.enhancer = function(n, r) {
|
|
4791
4791
|
return t(n, r, e + "[..]");
|
|
4792
4792
|
};
|
|
4793
4793
|
}
|
|
@@ -4796,7 +4796,7 @@ var Si = function() {
|
|
|
4796
4796
|
}, e.prototype.dehanceValues = function(e) {
|
|
4797
4797
|
return this.dehancer !== void 0 && e.length > 0 ? e.map(this.dehancer) : e;
|
|
4798
4798
|
}, e.prototype.intercept = function(e) {
|
|
4799
|
-
return
|
|
4799
|
+
return vi(this, e);
|
|
4800
4800
|
}, e.prototype.observe = function(e, t) {
|
|
4801
4801
|
return t === void 0 && (t = !1), t && e({
|
|
4802
4802
|
object: this.proxy,
|
|
@@ -4806,7 +4806,7 @@ var Si = function() {
|
|
|
4806
4806
|
addedCount: this.values.length,
|
|
4807
4807
|
removed: [],
|
|
4808
4808
|
removedCount: 0
|
|
4809
|
-
}),
|
|
4809
|
+
}), yi(this, e);
|
|
4810
4810
|
}, e.prototype.getArrayLength = function() {
|
|
4811
4811
|
return this.atom.reportObserved(), this.values.length;
|
|
4812
4812
|
}, e.prototype.setArrayLength = function(e) {
|
|
@@ -4821,9 +4821,9 @@ var Si = function() {
|
|
|
4821
4821
|
this.lastKnownLength += t;
|
|
4822
4822
|
}, e.prototype.spliceWithArray = function(e, t, n) {
|
|
4823
4823
|
var r = this;
|
|
4824
|
-
|
|
4824
|
+
Kn(this.atom);
|
|
4825
4825
|
var i = this.values.length;
|
|
4826
|
-
if (e === void 0 ? e = 0 : e > i ? e = i : e < 0 && (e = Math.max(0, i + e)), t = arguments.length === 1 ? i - e : t == null ? 0 : Math.max(0, Math.min(t, i - e)), n === void 0 && (n =
|
|
4826
|
+
if (e === void 0 ? e = 0 : e > i ? e = i : e < 0 && (e = Math.max(0, i + e)), t = arguments.length === 1 ? i - e : t == null ? 0 : Math.max(0, Math.min(t, i - e)), n === void 0 && (n = Bt), q(this)) {
|
|
4827
4827
|
var a = J(this, {
|
|
4828
4828
|
object: this.proxy,
|
|
4829
4829
|
type: "splice",
|
|
@@ -4831,7 +4831,7 @@ var Si = function() {
|
|
|
4831
4831
|
removedCount: t,
|
|
4832
4832
|
added: n
|
|
4833
4833
|
});
|
|
4834
|
-
if (!a) return
|
|
4834
|
+
if (!a) return Bt;
|
|
4835
4835
|
t = a.removedCount, n = a.added;
|
|
4836
4836
|
}
|
|
4837
4837
|
n = n.length === 0 ? n : n.map(function(e) {
|
|
@@ -4841,7 +4841,7 @@ var Si = function() {
|
|
|
4841
4841
|
return (t !== 0 || n.length !== 0) && this.notifyArraySplice(e, n, o), this.dehanceValues(o);
|
|
4842
4842
|
}, e.prototype.spliceItemsIntoValues = function(e, t, n) {
|
|
4843
4843
|
var r;
|
|
4844
|
-
if (n.length <
|
|
4844
|
+
if (n.length < bi) return (r = this.values).splice.apply(r, gn([e, t], n));
|
|
4845
4845
|
var i = this.values.slice(e, e + t);
|
|
4846
4846
|
return this.values = this.values.slice(0, e).concat(n, this.values.slice(e + t)), i;
|
|
4847
4847
|
}, e.prototype.notifyArrayChildUpdate = function(e, t, n) {
|
|
@@ -4933,7 +4933,7 @@ var Si = function() {
|
|
|
4933
4933
|
set: function(e, t) {
|
|
4934
4934
|
var n = this[F], r = n.values;
|
|
4935
4935
|
if (e < r.length) {
|
|
4936
|
-
|
|
4936
|
+
Kn(n.atom);
|
|
4937
4937
|
var i = r[e];
|
|
4938
4938
|
if (q(n)) {
|
|
4939
4939
|
var a = J(n, {
|
|
@@ -4993,13 +4993,13 @@ var Si = function() {
|
|
|
4993
4993
|
}, n.values[e].apply(n.values, arguments);
|
|
4994
4994
|
};
|
|
4995
4995
|
});
|
|
4996
|
-
var
|
|
4997
|
-
function
|
|
4998
|
-
return
|
|
4996
|
+
var wi = N("ObservableArrayAdministration", Ci);
|
|
4997
|
+
function Ti(e) {
|
|
4998
|
+
return Kt(e) && wi(e[F]);
|
|
4999
4999
|
}
|
|
5000
|
-
var
|
|
5000
|
+
var Ei, Di = {}, Oi = function() {
|
|
5001
5001
|
function e(e, t, n) {
|
|
5002
|
-
if (t === void 0 && (t =
|
|
5002
|
+
if (t === void 0 && (t = Tn), n === void 0 && (n = "ObservableMap@" + j()), this.enhancer = t, this.name = n, this[Ei] = Di, this._keysAtom = on(this.name + ".keys()"), this[Symbol.toStringTag] = "Map", typeof Map != "function") throw Error("mobx.map requires Map polyfill for the current browser. Check babel-polyfill or core-js/es6/map.js");
|
|
5003
5003
|
this._data = /* @__PURE__ */ new Map(), this._hasMap = /* @__PURE__ */ new Map(), this.merge(e);
|
|
5004
5004
|
}
|
|
5005
5005
|
return e.prototype._has = function(e) {
|
|
@@ -5009,8 +5009,8 @@ var Ti, Ei = {}, Di = function() {
|
|
|
5009
5009
|
if (!V.trackingDerivation) return this._has(e);
|
|
5010
5010
|
var n = this._hasMap.get(e);
|
|
5011
5011
|
if (!n) {
|
|
5012
|
-
var r = n = new
|
|
5013
|
-
this._hasMap.set(e, r),
|
|
5012
|
+
var r = n = new ur(this._has(e), Dn, this.name + "." + P(e) + "?", !1);
|
|
5013
|
+
this._hasMap.set(e, r), Xr(r, function() {
|
|
5014
5014
|
return t._hasMap.delete(e);
|
|
5015
5015
|
});
|
|
5016
5016
|
}
|
|
@@ -5030,7 +5030,7 @@ var Ti, Ei = {}, Di = function() {
|
|
|
5030
5030
|
return n ? this._updateValue(e, t) : this._addValue(e, t), this;
|
|
5031
5031
|
}, e.prototype.delete = function(e) {
|
|
5032
5032
|
var t = this;
|
|
5033
|
-
if (
|
|
5033
|
+
if (Kn(this._keysAtom), q(this)) {
|
|
5034
5034
|
var n = J(this, {
|
|
5035
5035
|
type: "delete",
|
|
5036
5036
|
object: this,
|
|
@@ -5067,8 +5067,8 @@ var Ti, Ei = {}, Di = function() {
|
|
|
5067
5067
|
}
|
|
5068
5068
|
}, e.prototype._addValue = function(e, t) {
|
|
5069
5069
|
var n = this;
|
|
5070
|
-
|
|
5071
|
-
var r = new
|
|
5070
|
+
Kn(this._keysAtom), K(function() {
|
|
5071
|
+
var r = new ur(t, n.enhancer, n.name + "." + P(e), !1);
|
|
5072
5072
|
n._data.set(e, r), t = r.value, n._updateHasMapEntry(e, !0), n._keysAtom.reportChanged();
|
|
5073
5073
|
});
|
|
5074
5074
|
var r = W(), i = Y(this), a = i || r ? {
|
|
@@ -5086,7 +5086,7 @@ var Ti, Ei = {}, Di = function() {
|
|
|
5086
5086
|
return this._keysAtom.reportObserved(), this._data.keys();
|
|
5087
5087
|
}, e.prototype.values = function() {
|
|
5088
5088
|
var e = this, t = this.keys();
|
|
5089
|
-
return
|
|
5089
|
+
return Yi({ next: function() {
|
|
5090
5090
|
var n = t.next(), r = n.done, i = n.value;
|
|
5091
5091
|
return {
|
|
5092
5092
|
done: r,
|
|
@@ -5095,20 +5095,20 @@ var Ti, Ei = {}, Di = function() {
|
|
|
5095
5095
|
} });
|
|
5096
5096
|
}, e.prototype.entries = function() {
|
|
5097
5097
|
var e = this, t = this.keys();
|
|
5098
|
-
return
|
|
5098
|
+
return Yi({ next: function() {
|
|
5099
5099
|
var n = t.next(), r = n.done, i = n.value;
|
|
5100
5100
|
return {
|
|
5101
5101
|
done: r,
|
|
5102
5102
|
value: r ? void 0 : [i, e.get(i)]
|
|
5103
5103
|
};
|
|
5104
5104
|
} });
|
|
5105
|
-
}, e.prototype[
|
|
5105
|
+
}, e.prototype[Ei = F, Symbol.iterator] = function() {
|
|
5106
5106
|
return this.entries();
|
|
5107
5107
|
}, e.prototype.forEach = function(e, t) {
|
|
5108
5108
|
var n, r;
|
|
5109
5109
|
try {
|
|
5110
5110
|
for (var i = I(this), a = i.next(); !a.done; a = i.next()) {
|
|
5111
|
-
var o =
|
|
5111
|
+
var o = hn(a.value, 2), s = o[0], c = o[1];
|
|
5112
5112
|
e.call(t, c, s, this);
|
|
5113
5113
|
}
|
|
5114
5114
|
} catch (e) {
|
|
@@ -5123,24 +5123,24 @@ var Ti, Ei = {}, Di = function() {
|
|
|
5123
5123
|
}, e.prototype.merge = function(e) {
|
|
5124
5124
|
var t = this;
|
|
5125
5125
|
return Q(e) && (e = e.toJS()), K(function() {
|
|
5126
|
-
var n =
|
|
5126
|
+
var n = cr(!0);
|
|
5127
5127
|
try {
|
|
5128
|
-
|
|
5128
|
+
qt(e) ? en(e).forEach(function(n) {
|
|
5129
5129
|
return t.set(n, e[n]);
|
|
5130
5130
|
}) : Array.isArray(e) ? e.forEach(function(e) {
|
|
5131
|
-
var n =
|
|
5131
|
+
var n = hn(e, 2), r = n[0], i = n[1];
|
|
5132
5132
|
return t.set(r, i);
|
|
5133
|
-
}) :
|
|
5133
|
+
}) : Qt(e) ? (e.constructor !== Map && M("Cannot initialize from classes that inherit from Map: " + e.constructor.name), e.forEach(function(e, n) {
|
|
5134
5134
|
return t.set(n, e);
|
|
5135
5135
|
})) : e != null && M("Cannot initialize map from " + e);
|
|
5136
5136
|
} finally {
|
|
5137
|
-
|
|
5137
|
+
lr(n);
|
|
5138
5138
|
}
|
|
5139
5139
|
}), this;
|
|
5140
5140
|
}, e.prototype.clear = function() {
|
|
5141
5141
|
var e = this;
|
|
5142
5142
|
K(function() {
|
|
5143
|
-
|
|
5143
|
+
Xn(function() {
|
|
5144
5144
|
var t, n;
|
|
5145
5145
|
try {
|
|
5146
5146
|
for (var r = I(e.keys()), i = r.next(); !i.done; i = r.next()) {
|
|
@@ -5161,7 +5161,7 @@ var Ti, Ei = {}, Di = function() {
|
|
|
5161
5161
|
}, e.prototype.replace = function(e) {
|
|
5162
5162
|
var t = this;
|
|
5163
5163
|
return K(function() {
|
|
5164
|
-
var n, r, i, a, o =
|
|
5164
|
+
var n, r, i, a, o = Jt(e), s = /* @__PURE__ */ new Map(), c = !1;
|
|
5165
5165
|
try {
|
|
5166
5166
|
for (var l = I(t._data.keys()), u = l.next(); !u.done; u = l.next()) {
|
|
5167
5167
|
var d = u.value;
|
|
@@ -5182,7 +5182,7 @@ var Ti, Ei = {}, Di = function() {
|
|
|
5182
5182
|
}
|
|
5183
5183
|
try {
|
|
5184
5184
|
for (var p = I(o.entries()), m = p.next(); !m.done; m = p.next()) {
|
|
5185
|
-
var h =
|
|
5185
|
+
var h = hn(m.value, 2), d = h[0], f = h[1], g = t._data.has(d);
|
|
5186
5186
|
if (t.set(d, f), t._data.has(d)) {
|
|
5187
5187
|
var _ = t._data.get(d);
|
|
5188
5188
|
s.set(d, _), g || (c = !0);
|
|
@@ -5217,7 +5217,7 @@ var Ti, Ei = {}, Di = function() {
|
|
|
5217
5217
|
var e, t, n = {};
|
|
5218
5218
|
try {
|
|
5219
5219
|
for (var r = I(this), i = r.next(); !i.done; i = r.next()) {
|
|
5220
|
-
var a =
|
|
5220
|
+
var a = hn(i.value, 2), o = a[0], s = a[1];
|
|
5221
5221
|
n[typeof o == "symbol" ? o : P(o)] = s;
|
|
5222
5222
|
}
|
|
5223
5223
|
} catch (t) {
|
|
@@ -5240,13 +5240,13 @@ var Ti, Ei = {}, Di = function() {
|
|
|
5240
5240
|
return P(t) + ": " + ("" + e.get(t));
|
|
5241
5241
|
}).join(", ") + " }]";
|
|
5242
5242
|
}, e.prototype.observe = function(e, t) {
|
|
5243
|
-
return
|
|
5243
|
+
return yi(this, e);
|
|
5244
5244
|
}, e.prototype.intercept = function(e) {
|
|
5245
|
-
return
|
|
5245
|
+
return vi(this, e);
|
|
5246
5246
|
}, e;
|
|
5247
|
-
}(), Q = N("ObservableMap",
|
|
5247
|
+
}(), Q = N("ObservableMap", Oi), ki, Ai = {}, ji = function() {
|
|
5248
5248
|
function e(e, t, n) {
|
|
5249
|
-
if (t === void 0 && (t =
|
|
5249
|
+
if (t === void 0 && (t = Tn), n === void 0 && (n = "ObservableSet@" + j()), this.name = n, this[ki] = Ai, this._data = /* @__PURE__ */ new Set(), this._atom = on(this.name), this[Symbol.toStringTag] = "Set", typeof Set != "function") throw Error("mobx.set requires Set polyfill for the current browser. Check babel-polyfill or core-js/es6/set.js");
|
|
5250
5250
|
this.enhancer = function(e, r) {
|
|
5251
5251
|
return t(e, r, n);
|
|
5252
5252
|
}, e && this.replace(e);
|
|
@@ -5256,7 +5256,7 @@ var Ti, Ei = {}, Di = function() {
|
|
|
5256
5256
|
}, e.prototype.clear = function() {
|
|
5257
5257
|
var e = this;
|
|
5258
5258
|
K(function() {
|
|
5259
|
-
|
|
5259
|
+
Xn(function() {
|
|
5260
5260
|
var t, n;
|
|
5261
5261
|
try {
|
|
5262
5262
|
for (var r = I(e._data.values()), i = r.next(); !i.done; i = r.next()) {
|
|
@@ -5298,7 +5298,7 @@ var Ti, Ei = {}, Di = function() {
|
|
|
5298
5298
|
configurable: !0
|
|
5299
5299
|
}), e.prototype.add = function(e) {
|
|
5300
5300
|
var t = this;
|
|
5301
|
-
if (
|
|
5301
|
+
if (Kn(this._atom), q(this)) {
|
|
5302
5302
|
var n = J(this, {
|
|
5303
5303
|
type: "add",
|
|
5304
5304
|
object: this,
|
|
@@ -5343,7 +5343,7 @@ var Ti, Ei = {}, Di = function() {
|
|
|
5343
5343
|
return this._atom.reportObserved(), this._data.has(this.dehanceValue(e));
|
|
5344
5344
|
}, e.prototype.entries = function() {
|
|
5345
5345
|
var e = 0, t = Array.from(this.keys()), n = Array.from(this.values());
|
|
5346
|
-
return
|
|
5346
|
+
return Yi({ next: function() {
|
|
5347
5347
|
var r = e;
|
|
5348
5348
|
return e += 1, r < n.length ? {
|
|
5349
5349
|
value: [t[r], n[r]],
|
|
@@ -5355,7 +5355,7 @@ var Ti, Ei = {}, Di = function() {
|
|
|
5355
5355
|
}, e.prototype.values = function() {
|
|
5356
5356
|
this._atom.reportObserved();
|
|
5357
5357
|
var e = this, t = 0, n = Array.from(this._data.values());
|
|
5358
|
-
return
|
|
5358
|
+
return Yi({ next: function() {
|
|
5359
5359
|
return t < n.length ? {
|
|
5360
5360
|
value: e.dehanceValue(n[t++]),
|
|
5361
5361
|
done: !1
|
|
@@ -5364,35 +5364,35 @@ var Ti, Ei = {}, Di = function() {
|
|
|
5364
5364
|
}, e.prototype.replace = function(e) {
|
|
5365
5365
|
var t = this;
|
|
5366
5366
|
return $(e) && (e = e.toJS()), K(function() {
|
|
5367
|
-
var n =
|
|
5367
|
+
var n = cr(!0);
|
|
5368
5368
|
try {
|
|
5369
|
-
Array.isArray(e) ||
|
|
5369
|
+
Array.isArray(e) || $t(e) ? (t.clear(), e.forEach(function(e) {
|
|
5370
5370
|
return t.add(e);
|
|
5371
5371
|
})) : e != null && M("Cannot initialize set from " + e);
|
|
5372
5372
|
} finally {
|
|
5373
|
-
|
|
5373
|
+
lr(n);
|
|
5374
5374
|
}
|
|
5375
5375
|
}), this;
|
|
5376
5376
|
}, e.prototype.observe = function(e, t) {
|
|
5377
|
-
return
|
|
5377
|
+
return yi(this, e);
|
|
5378
5378
|
}, e.prototype.intercept = function(e) {
|
|
5379
|
-
return
|
|
5379
|
+
return vi(this, e);
|
|
5380
5380
|
}, e.prototype.toJS = function() {
|
|
5381
5381
|
return new Set(this);
|
|
5382
5382
|
}, e.prototype.toString = function() {
|
|
5383
5383
|
return this.name + "[ " + Array.from(this).join(", ") + " ]";
|
|
5384
|
-
}, e.prototype[
|
|
5384
|
+
}, e.prototype[ki = F, Symbol.iterator] = function() {
|
|
5385
5385
|
return this.values();
|
|
5386
5386
|
}, e;
|
|
5387
|
-
}(), $ = N("ObservableSet",
|
|
5387
|
+
}(), $ = N("ObservableSet", ji), Mi = function() {
|
|
5388
5388
|
function e(e, t, n, r) {
|
|
5389
|
-
t === void 0 && (t = /* @__PURE__ */ new Map()), this.target = e, this.values = t, this.name = n, this.defaultEnhancer = r, this.keysAtom = new
|
|
5389
|
+
t === void 0 && (t = /* @__PURE__ */ new Map()), this.target = e, this.values = t, this.name = n, this.defaultEnhancer = r, this.keysAtom = new rn(n + ".keys");
|
|
5390
5390
|
}
|
|
5391
5391
|
return e.prototype.read = function(e) {
|
|
5392
5392
|
return this.values.get(e).get();
|
|
5393
5393
|
}, e.prototype.write = function(e, t) {
|
|
5394
5394
|
var n = this.target, r = this.values.get(e);
|
|
5395
|
-
if (r instanceof
|
|
5395
|
+
if (r instanceof fr) {
|
|
5396
5396
|
r.set(t);
|
|
5397
5397
|
return;
|
|
5398
5398
|
}
|
|
@@ -5418,7 +5418,7 @@ var Ti, Ei = {}, Di = function() {
|
|
|
5418
5418
|
}
|
|
5419
5419
|
}, e.prototype.has = function(e) {
|
|
5420
5420
|
var t = this.pendingKeys || (this.pendingKeys = /* @__PURE__ */ new Map()), n = t.get(e);
|
|
5421
|
-
return n ? n.get() : (n = new
|
|
5421
|
+
return n ? n.get() : (n = new ur(!!this.values.get(e), Dn, this.name + "." + P(e) + "?", !1), t.set(e, n), n.get());
|
|
5422
5422
|
}, e.prototype.addObservableProp = function(e, t, n) {
|
|
5423
5423
|
n === void 0 && (n = this.defaultEnhancer);
|
|
5424
5424
|
var r = this.target;
|
|
@@ -5432,11 +5432,11 @@ var Ti, Ei = {}, Di = function() {
|
|
|
5432
5432
|
if (!i) return;
|
|
5433
5433
|
t = i.newValue;
|
|
5434
5434
|
}
|
|
5435
|
-
var a = new
|
|
5436
|
-
this.values.set(e, a), t = a.value, Object.defineProperty(r, e,
|
|
5435
|
+
var a = new ur(t, n, this.name + "." + P(e), !1);
|
|
5436
|
+
this.values.set(e, a), t = a.value, Object.defineProperty(r, e, Ii(e)), this.notifyPropertyAddition(e, t);
|
|
5437
5437
|
}, e.prototype.addComputedProp = function(e, t, n) {
|
|
5438
5438
|
var r = this.target;
|
|
5439
|
-
n.name = n.name || this.name + "." + P(t), this.values.set(t, new
|
|
5439
|
+
n.name = n.name || this.name + "." + P(t), this.values.set(t, new fr(n)), (e === r || Zt(e, t)) && Object.defineProperty(e, t, Ri(t));
|
|
5440
5440
|
}, e.prototype.remove = function(e) {
|
|
5441
5441
|
if (this.values.has(e)) {
|
|
5442
5442
|
var t = this.target;
|
|
@@ -5470,9 +5470,9 @@ var Ti, Ei = {}, Di = function() {
|
|
|
5470
5470
|
}, e.prototype.illegalAccess = function(e, t) {
|
|
5471
5471
|
console.warn("Property '" + t + "' of '" + e + "' was accessed through the prototype chain. Use 'decorate' instead to declare the prop or access it statically through it's owner");
|
|
5472
5472
|
}, e.prototype.observe = function(e, t) {
|
|
5473
|
-
return
|
|
5473
|
+
return yi(this, e);
|
|
5474
5474
|
}, e.prototype.intercept = function(e) {
|
|
5475
|
-
return
|
|
5475
|
+
return vi(this, e);
|
|
5476
5476
|
}, e.prototype.notifyPropertyAddition = function(e, t) {
|
|
5477
5477
|
var n = Y(this), r = W(), i = n || r ? {
|
|
5478
5478
|
type: "add",
|
|
@@ -5491,8 +5491,8 @@ var Ti, Ei = {}, Di = function() {
|
|
|
5491
5491
|
var n = [];
|
|
5492
5492
|
try {
|
|
5493
5493
|
for (var r = I(this.values), i = r.next(); !i.done; i = r.next()) {
|
|
5494
|
-
var a =
|
|
5495
|
-
a[1] instanceof
|
|
5494
|
+
var a = hn(i.value, 2), o = a[0];
|
|
5495
|
+
a[1] instanceof ur && n.push(o);
|
|
5496
5496
|
}
|
|
5497
5497
|
} catch (t) {
|
|
5498
5498
|
e = { error: t };
|
|
@@ -5506,15 +5506,15 @@ var Ti, Ei = {}, Di = function() {
|
|
|
5506
5506
|
return n;
|
|
5507
5507
|
}, e;
|
|
5508
5508
|
}();
|
|
5509
|
-
function
|
|
5510
|
-
if (t === void 0 && (t = ""), n === void 0 && (n =
|
|
5511
|
-
|
|
5512
|
-
var r = new
|
|
5513
|
-
return
|
|
5514
|
-
}
|
|
5515
|
-
var
|
|
5516
|
-
function
|
|
5517
|
-
return
|
|
5509
|
+
function Ni(e, t, n) {
|
|
5510
|
+
if (t === void 0 && (t = ""), n === void 0 && (n = Tn), Object.prototype.hasOwnProperty.call(e, F)) return e[F];
|
|
5511
|
+
qt(e) || (t = (e.constructor.name || "ObservableObject") + "@" + j()), t || (t = "ObservableObject@" + j());
|
|
5512
|
+
var r = new Mi(e, /* @__PURE__ */ new Map(), P(t), n);
|
|
5513
|
+
return Yt(e, F, r), r;
|
|
5514
|
+
}
|
|
5515
|
+
var Pi = Object.create(null), Fi = Object.create(null);
|
|
5516
|
+
function Ii(e) {
|
|
5517
|
+
return Pi[e] || (Pi[e] = {
|
|
5518
5518
|
configurable: !0,
|
|
5519
5519
|
enumerable: !0,
|
|
5520
5520
|
get: function() {
|
|
@@ -5525,28 +5525,28 @@ function Fi(e) {
|
|
|
5525
5525
|
}
|
|
5526
5526
|
});
|
|
5527
5527
|
}
|
|
5528
|
-
function Ii(e) {
|
|
5529
|
-
return e[F] || (xn(e), e[F]);
|
|
5530
|
-
}
|
|
5531
5528
|
function Li(e) {
|
|
5532
|
-
return
|
|
5529
|
+
return e[F] || (Sn(e), e[F]);
|
|
5530
|
+
}
|
|
5531
|
+
function Ri(e) {
|
|
5532
|
+
return Fi[e] || (Fi[e] = {
|
|
5533
5533
|
configurable: V.computedConfigurable,
|
|
5534
5534
|
enumerable: !1,
|
|
5535
5535
|
get: function() {
|
|
5536
|
-
return
|
|
5536
|
+
return Li(this).read(e);
|
|
5537
5537
|
},
|
|
5538
5538
|
set: function(t) {
|
|
5539
|
-
|
|
5539
|
+
Li(this).write(e, t);
|
|
5540
5540
|
}
|
|
5541
5541
|
});
|
|
5542
5542
|
}
|
|
5543
|
-
var
|
|
5544
|
-
function
|
|
5545
|
-
return
|
|
5543
|
+
var zi = N("ObservableObjectAdministration", Mi);
|
|
5544
|
+
function Bi(e) {
|
|
5545
|
+
return Kt(e) ? (Sn(e), zi(e[F])) : !1;
|
|
5546
5546
|
}
|
|
5547
|
-
function
|
|
5547
|
+
function Vi(e, t) {
|
|
5548
5548
|
if (typeof e == "object" && e) {
|
|
5549
|
-
if (
|
|
5549
|
+
if (Ti(e)) return t !== void 0 && M(!1), e[F].atom;
|
|
5550
5550
|
if ($(e)) return e[F];
|
|
5551
5551
|
if (Q(e)) {
|
|
5552
5552
|
var n = e;
|
|
@@ -5554,36 +5554,36 @@ function Bi(e, t) {
|
|
|
5554
5554
|
var r = n._data.get(t) || n._hasMap.get(t);
|
|
5555
5555
|
return r || M(!1), r;
|
|
5556
5556
|
}
|
|
5557
|
-
if (
|
|
5557
|
+
if (Sn(e), t && !e[F] && e[t], Bi(e)) {
|
|
5558
5558
|
if (!t) return M(!1);
|
|
5559
5559
|
var r = e[F].values.get(t);
|
|
5560
5560
|
return r || M(!1), r;
|
|
5561
5561
|
}
|
|
5562
|
-
if (
|
|
5563
|
-
} else if (typeof e == "function" &&
|
|
5562
|
+
if (an(e) || pr(e) || Pr(e)) return e;
|
|
5563
|
+
} else if (typeof e == "function" && Pr(e[F])) return e[F];
|
|
5564
5564
|
return M(!1);
|
|
5565
5565
|
}
|
|
5566
|
-
function
|
|
5567
|
-
if (e || M("Expecting some object"), t !== void 0) return Vi(
|
|
5568
|
-
if (
|
|
5569
|
-
if (
|
|
5566
|
+
function Hi(e, t) {
|
|
5567
|
+
if (e || M("Expecting some object"), t !== void 0) return Hi(Vi(e, t));
|
|
5568
|
+
if (an(e) || pr(e) || Pr(e) || Q(e) || $(e)) return e;
|
|
5569
|
+
if (Sn(e), e[F]) return e[F];
|
|
5570
5570
|
M(!1);
|
|
5571
5571
|
}
|
|
5572
|
-
function
|
|
5573
|
-
return (t === void 0 ?
|
|
5572
|
+
function Ui(e, t) {
|
|
5573
|
+
return (t === void 0 ? Bi(e) || Q(e) || $(e) ? Hi(e) : Vi(e) : Vi(e, t)).name;
|
|
5574
5574
|
}
|
|
5575
|
-
var
|
|
5576
|
-
function
|
|
5577
|
-
return n === void 0 && (n = -1),
|
|
5575
|
+
var Wi = Object.prototype.toString;
|
|
5576
|
+
function Gi(e, t, n) {
|
|
5577
|
+
return n === void 0 && (n = -1), Ki(e, t, n);
|
|
5578
5578
|
}
|
|
5579
|
-
function
|
|
5579
|
+
function Ki(e, t, n, r, i) {
|
|
5580
5580
|
if (e === t) return e !== 0 || 1 / e == 1 / t;
|
|
5581
5581
|
if (e == null || t == null) return !1;
|
|
5582
5582
|
if (e !== e) return t !== t;
|
|
5583
5583
|
var a = typeof e;
|
|
5584
5584
|
if (a !== "function" && a !== "object" && typeof t != "object") return !1;
|
|
5585
|
-
var o =
|
|
5586
|
-
if (o !==
|
|
5585
|
+
var o = Wi.call(e);
|
|
5586
|
+
if (o !== Wi.call(t)) return !1;
|
|
5587
5587
|
switch (o) {
|
|
5588
5588
|
case "[object RegExp]":
|
|
5589
5589
|
case "[object String]": return "" + e == "" + t;
|
|
@@ -5596,7 +5596,7 @@ function Gi(e, t, n, r, i) {
|
|
|
5596
5596
|
n >= 0 && n++;
|
|
5597
5597
|
break;
|
|
5598
5598
|
}
|
|
5599
|
-
e =
|
|
5599
|
+
e = qi(e), t = qi(t);
|
|
5600
5600
|
var s = o === "[object Array]";
|
|
5601
5601
|
if (!s) {
|
|
5602
5602
|
if (typeof e != "object" || typeof t != "object") return !1;
|
|
@@ -5608,24 +5608,24 @@ function Gi(e, t, n, r, i) {
|
|
|
5608
5608
|
for (var u = r.length; u--;) if (r[u] === e) return i[u] === t;
|
|
5609
5609
|
if (r.push(e), i.push(t), s) {
|
|
5610
5610
|
if (u = e.length, u !== t.length) return !1;
|
|
5611
|
-
for (; u--;) if (!
|
|
5611
|
+
for (; u--;) if (!Ki(e[u], t[u], n - 1, r, i)) return !1;
|
|
5612
5612
|
} else {
|
|
5613
5613
|
var d = Object.keys(e), f = void 0;
|
|
5614
5614
|
if (u = d.length, Object.keys(t).length !== u) return !1;
|
|
5615
|
-
for (; u--;) if (f = d[u], !(
|
|
5615
|
+
for (; u--;) if (f = d[u], !(Ji(t, f) && Ki(e[f], t[f], n - 1, r, i))) return !1;
|
|
5616
5616
|
}
|
|
5617
5617
|
return r.pop(), i.pop(), !0;
|
|
5618
5618
|
}
|
|
5619
|
-
function
|
|
5620
|
-
return
|
|
5619
|
+
function qi(e) {
|
|
5620
|
+
return Ti(e) ? e.slice() : Qt(e) || Q(e) || $t(e) || $(e) ? Array.from(e.entries()) : e;
|
|
5621
5621
|
}
|
|
5622
|
-
function
|
|
5622
|
+
function Ji(e, t) {
|
|
5623
5623
|
return Object.prototype.hasOwnProperty.call(e, t);
|
|
5624
5624
|
}
|
|
5625
|
-
function
|
|
5626
|
-
return e[Symbol.iterator] =
|
|
5625
|
+
function Yi(e) {
|
|
5626
|
+
return e[Symbol.iterator] = Xi, e;
|
|
5627
5627
|
}
|
|
5628
|
-
function
|
|
5628
|
+
function Xi() {
|
|
5629
5629
|
return this;
|
|
5630
5630
|
}
|
|
5631
5631
|
if (typeof Proxy > "u" || typeof Symbol > "u") throw Error("[mobx] MobX 5+ requires Proxy and Symbol objects. If your environment doesn't support Symbol or Proxy objects, please downgrade to MobX 4. For React Native Android, consider upgrading JSCore.");
|
|
@@ -5633,20 +5633,20 @@ if (typeof Proxy > "u" || typeof Symbol > "u") throw Error("[mobx] MobX 5+ requi
|
|
|
5633
5633
|
function e() {}
|
|
5634
5634
|
e.name;
|
|
5635
5635
|
})(), typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__ == "object" && __MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({
|
|
5636
|
-
spy:
|
|
5637
|
-
extras: { getDebugName:
|
|
5636
|
+
spy: Ir,
|
|
5637
|
+
extras: { getDebugName: Ui },
|
|
5638
5638
|
$mobx: F
|
|
5639
5639
|
});
|
|
5640
5640
|
//#endregion
|
|
5641
5641
|
//#region src/utils/localStorage.ts
|
|
5642
|
-
function
|
|
5642
|
+
function Zi() {
|
|
5643
5643
|
try {
|
|
5644
5644
|
return localStorage.setItem("test", "test"), localStorage.removeItem("test"), !0;
|
|
5645
5645
|
} catch {
|
|
5646
5646
|
return !1;
|
|
5647
5647
|
}
|
|
5648
5648
|
}
|
|
5649
|
-
var
|
|
5649
|
+
var Qi = Zi(), $i = {
|
|
5650
5650
|
de: "Deutsch",
|
|
5651
5651
|
en: "English",
|
|
5652
5652
|
es: "Español",
|
|
@@ -5667,44 +5667,44 @@ var Zi = Xi(), Qi = {
|
|
|
5667
5667
|
kk: "Қазақша",
|
|
5668
5668
|
pl: "Polski",
|
|
5669
5669
|
mn: "Монгол"
|
|
5670
|
-
},
|
|
5671
|
-
if (!
|
|
5672
|
-
let e = localStorage.getItem(
|
|
5673
|
-
return t && localStorage.removeItem(
|
|
5674
|
-
},
|
|
5670
|
+
}, ea = "en", ta = "efp-locale", na = "language", ra = L.box(ea), ia = L.array([], { deep: !1 }), aa = (e) => Ne(`${me}locales/${e}.json`), oa = () => {
|
|
5671
|
+
if (!Qi) return null;
|
|
5672
|
+
let e = localStorage.getItem(ta), t = localStorage.getItem(na);
|
|
5673
|
+
return t && localStorage.removeItem(na), e || (t && localStorage.setItem(ta, t), t);
|
|
5674
|
+
}, sa = () => {
|
|
5675
5675
|
var e;
|
|
5676
|
-
let t = window.__data, n = ((e = navigator.languages) == null ? void 0 : e[0]) || navigator.language, r = Object.keys(
|
|
5677
|
-
return (
|
|
5678
|
-
},
|
|
5679
|
-
|
|
5676
|
+
let t = window.__data, n = ((e = navigator.languages) == null ? void 0 : e[0]) || navigator.language, r = Object.keys($i).find((e) => n.startsWith(e));
|
|
5677
|
+
return (oa() || (t == null ? void 0 : t.locale) || r || ea).toLowerCase();
|
|
5678
|
+
}, ca = () => ra.get(), la = () => ia, ua = (e) => ia.some((t) => t.id === e), da = (e, t) => (ra.get(), Rt.t(e, t)), fa = async () => {
|
|
5679
|
+
ia.replace(Object.entries($i).sort(([e], [t]) => e.localeCompare(t)).map(([e, t]) => ({
|
|
5680
5680
|
id: e,
|
|
5681
5681
|
name: t,
|
|
5682
|
-
entity: { type:
|
|
5682
|
+
entity: { type: te }
|
|
5683
5683
|
})));
|
|
5684
|
-
let e =
|
|
5685
|
-
if (e !==
|
|
5686
|
-
t[e] = { translation: await
|
|
5684
|
+
let e = sa(), t = {};
|
|
5685
|
+
if (e !== ea) try {
|
|
5686
|
+
t[e] = { translation: await aa(e) };
|
|
5687
5687
|
} catch (t) {
|
|
5688
|
-
console.error(`Unable to load "${e}" localization, falling back to "${
|
|
5688
|
+
console.error(`Unable to load "${e}" localization, falling back to "${ea}".`, t), e = ea;
|
|
5689
5689
|
}
|
|
5690
|
-
return
|
|
5690
|
+
return ra.set(e), Rt.init({
|
|
5691
5691
|
resources: t,
|
|
5692
5692
|
lng: e,
|
|
5693
5693
|
keySeparator: !1,
|
|
5694
|
-
saveMissing: e !==
|
|
5694
|
+
saveMissing: e !== ea,
|
|
5695
5695
|
missingKeyHandler: (e, t, n, r) => console.debug(`i18n missing key: '${e[0]}:${t}:${n}', fallback: '${r}'`)
|
|
5696
5696
|
});
|
|
5697
|
-
},
|
|
5697
|
+
}, pa = async (e) => {
|
|
5698
5698
|
let t = e.toLowerCase();
|
|
5699
5699
|
try {
|
|
5700
|
-
t !==
|
|
5700
|
+
t !== ea && !Rt.hasResourceBundle(t, "translation") && Rt.addResourceBundle(t, "translation", await aa(t), !0, !0), await Rt.changeLanguage(t), ra.set(t), Qi && localStorage.setItem(ta, t);
|
|
5701
5701
|
} catch (e) {
|
|
5702
5702
|
console.error(`Failed to switch language to "${t}":`, e);
|
|
5703
5703
|
}
|
|
5704
|
-
},
|
|
5704
|
+
}, ma = async () => (Qi && (localStorage.removeItem(ta), localStorage.removeItem(na)), pa(sa())), ha = /webview|wv|ip((?!.*Safari)|(?=.*like Safari))|iosWebView|AndroidWebView/i.test(navigator.userAgent);
|
|
5705
5705
|
//#endregion
|
|
5706
5706
|
//#region src/utils/loadImage.ts
|
|
5707
|
-
function
|
|
5707
|
+
function ga(e) {
|
|
5708
5708
|
return new Promise((t) => {
|
|
5709
5709
|
var n = new Image();
|
|
5710
5710
|
n.onerror = () => t(null), n.onload = () => t(n), n.crossOrigin = "anonymous", n.src = e;
|
|
@@ -5712,6 +5712,14 @@ function ha(e) {
|
|
|
5712
5712
|
}
|
|
5713
5713
|
//#endregion
|
|
5714
5714
|
//#region src/utils/is-debug.ts
|
|
5715
|
-
|
|
5715
|
+
if (typeof window < "u") {
|
|
5716
|
+
var _a, va, ya;
|
|
5717
|
+
let e = (va = (_a = window).efpDebug) == null ? _a.efpDebug = {} : va;
|
|
5718
|
+
((ya = e.settings) == null ? e.settings = {} : ya)[g] = {
|
|
5719
|
+
type: "boolean",
|
|
5720
|
+
label: "Debug Mode"
|
|
5721
|
+
};
|
|
5722
|
+
}
|
|
5723
|
+
var ba = Qi && localStorage.getItem("efp:debug") === "true";
|
|
5716
5724
|
//#endregion
|
|
5717
|
-
export { h as $,
|
|
5725
|
+
export { h as $, Qe as A, Re as B, K as C, de as Ct, Xe as D, qe as E, o as Et, Be as F, ye as G, Fe as H, We as I, ve as J, _e as K, Ge as L, Ue as M, Ve as N, Ke as O, He as P, ee as Q, ze as R, di as S, ie as St, k as T, s as Tt, we as U, Ie as V, Ce as W, d as X, me as Y, _ as Z, ni as _, c as _t, la as a, se as at, Hr as b, ne as bt, ma as c, te as ct, Qi as d, ue as dt, g as et, kr as f, x as ft, Qr as g, u as gt, Hn as h, y as ht, ca as i, le as it, Je as j, Ze as k, pa as l, S as lt, Wr as m, v as mt, ga as n, oe as nt, ua as o, ce as ot, Vr as p, b as pt, ge as q, ha as r, C as rt, fa as s, f as st, ba as t, ae as tt, da as u, m as ut, L as v, l as vt, at as w, fe as wt, Ir as x, re as xt, qr as y, p as yt, Pe as z };
|