@expofp/floorplan 3.13.4 → 3.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/{Button-Di2ct8As.js → Button-DiKCIDd1.js} +5 -5
- package/dist/browser/{CookieConsent-CzE7xqru.js → CookieConsent-DXk2Caeo.js} +7 -7
- package/dist/browser/{Debug-BsFpCwAP.js → Debug-Mo3SzSJr.js} +7 -7
- package/dist/browser/{Demo-CUBUALkV.js → Demo-ACnPuJuZ.js} +9 -9
- package/dist/browser/Free-DGCskEvz.js +68 -0
- package/dist/browser/{Gallery-BseorZVt.js → Gallery-BRAf8cfL.js} +9 -9
- package/dist/browser/{GpsLoader-CEqhVKuQ.js → GpsLoader-rTwB2wu0.js} +10 -10
- package/dist/browser/{KioskStore-CkjO0Hfm.js → KioskStore-CYH_X97a.js} +3 -3
- package/dist/browser/{MaplibreAdapter-Cv3TA80a.js → MaplibreAdapter-bgkOesNk.js} +2019 -2002
- package/dist/browser/{ModalContainer-DBzlfN-T.js → ModalContainer-BN8zhCt2.js} +10 -10
- package/dist/browser/{PermissionNotice-B07dAoJS.js → PermissionNotice-C8C_NDGv.js} +6 -6
- package/dist/browser/{SetKioskMode-Bx1kz1kp.js → SetKioskMode-4Ezmfeob.js} +8 -8
- package/dist/browser/{ShowKiosk-B7-iTNeI.js → ShowKiosk-BUsEWQV4.js} +11 -11
- package/dist/browser/{TouchHand-Bnn5MVhC.js → TouchHand-DkHfBJG-.js} +4 -4
- package/dist/browser/{ViewerMenuPanel-CXUBz4Wo.js → ViewerMenuPanel-CfqODIqt.js} +9 -9
- package/dist/browser/{add-debug-secret-listener-BNYotAb-.js → add-debug-secret-listener-DYtnArTi.js} +1 -1
- package/dist/browser/{adopt-global-settings-4U11MsDW.js → adopt-global-settings-BED4RRA8.js} +9 -9
- package/dist/browser/{boolean-editor-CHApWCH1.js → boolean-editor-dOhsBReV.js} +9 -9
- package/dist/browser/{bootIntercom-DxJQ9eFU.js → bootIntercom-D79L4pO2.js} +2 -2
- package/dist/browser/{booth-by-xy-BLVVwNtj.js → booth-by-xy-DuDn5AXV.js} +6 -6
- package/dist/browser/bundle.json +65 -65
- package/dist/browser/{classnames-DyPh2wWH.js → classnames-Bioiliw4.js} +2 -2
- package/dist/browser/{client-VtpPft-k.js → client-Cttq4oY1.js} +4 -4
- package/dist/browser/{components-pEqQBzpb.js → components-Bgx5mydM.js} +65 -62
- package/dist/browser/{debug-overlay-BIIG939X.js → debug-overlay-KXVOoJjM.js} +10 -10
- package/dist/browser/{debug-ui-Dd-aHSgD.js → debug-ui-ZzOpVpEz.js} +6 -6
- package/dist/browser/{dist-B--b6-sL.js → dist-9RSDApOC.js} +6 -6
- package/dist/browser/{dist-qa-F0eMk.js → dist-BPj-IuGE.js} +5 -5
- package/dist/browser/{dist-B-7AJaNA.js → dist-L0hv6drb.js} +3 -3
- package/dist/browser/{efp-debug-init-Bzf4T8Xx.js → efp-debug-init-Agb1pk8j.js} +3 -3
- package/dist/browser/{enum-editor-DC0RIYSE.js → enum-editor-Bh_hYBnp.js} +4 -4
- package/dist/browser/{es5-DQ8JOeDN.js → es5-kIj9wk6V.js} +2 -2
- package/dist/browser/{event-not-found-BKJBsZXi.js → event-not-found-mH5XaRNk.js} +1 -1
- package/dist/browser/{exports-6X24q5_8.js → exports-CVxQSSfr.js} +37 -37
- package/dist/browser/{favicon-DxFo6cG6.js → favicon-WuO1Pu8A.js} +1 -1
- package/dist/browser/{fetch-retry.umd-DbPKc93r.js → fetch-retry.umd-FoSetp20.js} +2 -2
- package/dist/browser/{flex-D7Rgw10G.js → flex-BfiMbJhi.js} +5 -5
- package/dist/browser/{floorplan.loader-DWmxY4b8.js → floorplan.loader-CbrCvnB3.js} +77 -77
- package/dist/browser/{floorplan.ready-BBeRJMyN.js → floorplan.ready-D7yYGdzw.js} +18 -18
- package/dist/browser/{fuse-CMjVlF0N.js → fuse-BvFHcjwl.js} +2 -2
- package/dist/browser/{i18n-xqAQbHAE.js → i18n-DqJQjSKr.js} +1040 -1038
- package/dist/browser/index.js +14 -14
- package/dist/browser/{index.module-Cow3RO4I.js → index.module-CEPrlQrj.js} +4 -4
- package/dist/browser/{integrateKiosk-GhnQowhu.js → integrateKiosk-CJ_IdVa8.js} +3 -3
- package/dist/browser/{is-webview-BL3sbVlT.js → is-webview-tegLZHDi.js} +1 -1
- package/dist/browser/{jsx-runtime-1kuNv2jo.js → jsx-runtime-BIqVyDF_.js} +2 -2
- package/dist/browser/{lib-KmlWWpxs.js → lib-DvrhZpe0.js} +3 -3
- package/dist/browser/{loadImage-OQCwDcXc.js → loadImage-De6eYPJF.js} +4 -4
- package/dist/browser/{logDeviceInfo-C4CqLCSB.js → logDeviceInfo-Bum0lCVo.js} +9 -9
- package/dist/browser/{main-lSz23rgB.js → main-g8ySx9GZ.js} +1 -1
- package/dist/browser/{mobx-Juv7YSNw.js → mobx-DMf4iflz.js} +4 -4
- package/dist/browser/{optional-boolean-editor-Bzfn3FDz.js → optional-boolean-editor-CPYoKATy.js} +3 -3
- package/dist/browser/{optional-enum-editor-C46BK0zF.js → optional-enum-editor-DfoHhTUT.js} +4 -4
- package/dist/browser/{optional-string-editor-77_tZQLr.js → optional-string-editor-D7iVASyc.js} +4 -4
- package/dist/browser/{particles.min-vy3ld3Rh.js → particles.min-ArVYLTRf.js} +2 -2
- package/dist/browser/{react-DTFJ9F0z.js → react-4YK9tuu5.js} +2 -2
- package/dist/browser/{react-dom--ZXNmyjd.js → react-dom-CJtjdq-P.js} +3 -3
- package/dist/browser/{rolldown-runtime-DKhEBWux.js → rolldown-runtime-CCOBdLcF.js} +1 -1
- package/dist/browser/{select-BSCoOOKF.js → select-Dy5YH7Jb.js} +10 -10
- package/dist/browser/{settings-COo-V6uV.js → settings-C_UdnCV9.js} +2 -2
- package/dist/browser/{settings-item-twkhiQs1.js → settings-item-DIBQbzxn.js} +6 -6
- package/dist/browser/{store-7Bfkwa8d.js → store-ye6iGYGq.js} +6683 -6657
- package/dist/browser/{string-editor-D3_ZBuje.js → string-editor-B9d3eAoA.js} +4 -4
- package/dist/browser/{text-field-BlFx76b3.js → text-field-CkqHnfbI.js} +5 -5
- package/dist/browser/{theme-Cdr_JTu6.js → theme-hhwTUU9a.js} +8 -8
- package/dist/browser/{ui-DsnmvJHp.js → ui-CXpcuvXZ.js} +8 -8
- package/dist/browser/{useRenderTarget-CqTbZKLS.js → useRenderTarget-BuB768wj.js} +4 -4
- package/dist/esm/components/Layout.js +1 -1
- package/dist/esm/components/Maplibre/utils/map-helpers.d.ts +3 -2
- package/dist/esm/components/Maplibre/utils/map-helpers.js +1 -1
- package/dist/esm/components/Maplibre/utils/map-theme.d.ts +20 -0
- package/dist/esm/components/Maplibre/utils/map-theme.js +1 -0
- package/dist/esm/components/SearchButtons/SearchButtons.d.ts +1 -2
- package/dist/esm/components/SearchButtons/SearchButtons.js +1 -1
- package/dist/esm/data/fpGeo.d.ts +11 -4
- package/dist/esm/data/fpGeo.js +1 -1
- package/dist/esm/store/RoutePlannerStore.d.ts +2 -4
- package/dist/esm/store/RoutePlannerStore.js +1 -1
- package/dist/esm/store/UIState.d.ts +3 -0
- package/dist/esm/store/UIState.js +1 -1
- package/dist/esm/store/types.d.ts +1 -0
- package/dist/esm/tools/settings.d.ts +2 -2
- package/dist/esm/tools/settings.js +1 -1
- package/dist/esm/types.d.ts +1 -0
- package/dist/esm/ui/Autocomplete/Autocomplete.js +1 -1
- package/package.json +14 -14
- package/dist/browser/Free-CeVCkK7q.js +0 -68
|
@@ -1,14 +1,14 @@
|
|
|
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.
|
|
4
|
+
e.SENTRY_RELEASE = { id: "3.15.0" };
|
|
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] = "d05072bc-3c13-4d30-9783-876038d0064d", e._sentryDebugIdIdentifier = "sentry-dbid-d05072bc-3c13-4d30-9783-876038d0064d");
|
|
7
7
|
} catch {}
|
|
8
8
|
})();
|
|
9
|
-
import { r as e, t } from "./rolldown-runtime-
|
|
10
|
-
import { s as n } from "./efp-debug-init-
|
|
11
|
-
import { t as r } from "./es5-
|
|
9
|
+
import { r as e, t } from "./rolldown-runtime-CCOBdLcF.js";
|
|
10
|
+
import { s as n } from "./efp-debug-init-Agb1pk8j.js";
|
|
11
|
+
import { t as r } from "./es5-kIj9wk6V.js";
|
|
12
12
|
//#region ../config/src/lib/config-store.ts
|
|
13
13
|
var i;
|
|
14
14
|
function a(e) {
|
|
@@ -3786,41 +3786,46 @@ var ts = B({
|
|
|
3786
3786
|
customSetKiosk: P().optional(),
|
|
3787
3787
|
hideBoothBadges: L().optional(),
|
|
3788
3788
|
busRoutes: L().optional()
|
|
3789
|
-
}), ps =
|
|
3789
|
+
}), ps = B({
|
|
3790
|
+
styleUrl: P(),
|
|
3791
|
+
style: Ya(),
|
|
3792
|
+
offline: L()
|
|
3793
|
+
}).partial(), ms = po(["light", "dark"]), hs = z({
|
|
3790
3794
|
lat: I(),
|
|
3791
3795
|
lng: I(),
|
|
3792
3796
|
x: I(),
|
|
3793
3797
|
y: I()
|
|
3794
|
-
}),
|
|
3795
|
-
p0:
|
|
3796
|
-
p1:
|
|
3797
|
-
p2:
|
|
3798
|
-
p3:
|
|
3798
|
+
}), gs = B({
|
|
3799
|
+
p0: hs.optional(),
|
|
3800
|
+
p1: hs.optional(),
|
|
3801
|
+
p2: hs.optional(),
|
|
3802
|
+
p3: hs.optional(),
|
|
3799
3803
|
bearing: I().optional(),
|
|
3800
|
-
snapThreshold: I().optional()
|
|
3801
|
-
|
|
3804
|
+
snapThreshold: I().optional(),
|
|
3805
|
+
style: ms.optional()
|
|
3806
|
+
}), _s = B({
|
|
3802
3807
|
layer: P(),
|
|
3803
3808
|
data: P(),
|
|
3804
3809
|
points: R(R(Za()))
|
|
3805
|
-
}),
|
|
3810
|
+
}), vs = B({
|
|
3806
3811
|
properties: B({
|
|
3807
|
-
config:
|
|
3812
|
+
config: gs.optional(),
|
|
3808
3813
|
mpViewbox: R(I()).optional(),
|
|
3809
3814
|
useMaplibre: L().optional()
|
|
3810
3815
|
}).optional(),
|
|
3811
|
-
images: R(
|
|
3812
|
-
}),
|
|
3816
|
+
images: R(_s).optional()
|
|
3817
|
+
}), ys = V([
|
|
3813
3818
|
I(),
|
|
3814
3819
|
I(),
|
|
3815
3820
|
I().optional()
|
|
3816
|
-
]),
|
|
3821
|
+
]), bs = V([
|
|
3817
3822
|
I(),
|
|
3818
3823
|
I(),
|
|
3819
3824
|
I()
|
|
3820
|
-
]),
|
|
3821
|
-
positions: R(
|
|
3822
|
-
cells: R(
|
|
3823
|
-
}),
|
|
3825
|
+
]), xs = z({
|
|
3826
|
+
positions: R(ys),
|
|
3827
|
+
cells: R(bs)
|
|
3828
|
+
}), Ss = B({
|
|
3824
3829
|
boothLabelColor: P().optional(),
|
|
3825
3830
|
boothBorderColor: P().optional(),
|
|
3826
3831
|
backgroundColor: P().optional(),
|
|
@@ -3828,50 +3833,51 @@ var ts = B({
|
|
|
3828
3833
|
heatmapColors: R(P()).optional(),
|
|
3829
3834
|
maxZoom: I().optional(),
|
|
3830
3835
|
fpVer: P().optional()
|
|
3831
|
-
}),
|
|
3836
|
+
}), Cs = B({ dataSize: I().optional() }), ws = B({
|
|
3832
3837
|
x: I(),
|
|
3833
3838
|
y: I(),
|
|
3834
3839
|
width: I(),
|
|
3835
3840
|
height: I(),
|
|
3836
3841
|
angle: I().optional()
|
|
3837
|
-
}),
|
|
3842
|
+
}), Ts = B({
|
|
3838
3843
|
x1: I(),
|
|
3839
3844
|
y1: I(),
|
|
3840
3845
|
x2: I(),
|
|
3841
3846
|
y2: I(),
|
|
3842
3847
|
angle: I().optional()
|
|
3843
|
-
}),
|
|
3848
|
+
}), Es = B({
|
|
3844
3849
|
name: P(),
|
|
3845
3850
|
description: P().optional(),
|
|
3846
3851
|
frozen: L().optional(),
|
|
3847
3852
|
mode: I().nullish(),
|
|
3848
|
-
rect:
|
|
3849
|
-
viewbox:
|
|
3853
|
+
rect: Ts.nullish(),
|
|
3854
|
+
viewbox: Ts.nullish(),
|
|
3850
3855
|
floorIndex: I().nullish()
|
|
3851
|
-
}),
|
|
3856
|
+
}), Ds = {
|
|
3852
3857
|
__fp: P().optional().meta({ svgAsset: !0 }),
|
|
3853
|
-
__fpPaths: R(
|
|
3854
|
-
__fpGeo:
|
|
3855
|
-
__fpSettings:
|
|
3856
|
-
__fpStat:
|
|
3858
|
+
__fpPaths: R(xs).optional(),
|
|
3859
|
+
__fpGeo: vs.optional(),
|
|
3860
|
+
__fpSettings: Ss.optional(),
|
|
3861
|
+
__fpStat: Cs.optional(),
|
|
3857
3862
|
__fpVersion: I().optional()
|
|
3858
|
-
},
|
|
3859
|
-
...
|
|
3863
|
+
}, Os = B({ ...Ds }), ks = z({ $ref: P() }).meta({ refSchema: Os }), As = B({
|
|
3864
|
+
...Ds,
|
|
3860
3865
|
__fpPending: L().optional(),
|
|
3861
|
-
__viewbox:
|
|
3862
|
-
__fpLayers: R(
|
|
3866
|
+
__viewbox: ws.optional(),
|
|
3867
|
+
__fpLayers: R(Es).optional(),
|
|
3863
3868
|
__fpLayersMode: I().optional(),
|
|
3864
3869
|
__fpDefaultLayer: P().optional()
|
|
3865
|
-
}),
|
|
3870
|
+
}), js = z({ $ref: P() }).meta({ refSchema: As }), Ms = z({
|
|
3866
3871
|
enabled: L().optional(),
|
|
3867
3872
|
variant: po(["booths", "yah"]).optional(),
|
|
3868
3873
|
kiosk: L().optional()
|
|
3869
|
-
}),
|
|
3874
|
+
}), Ns = z({
|
|
3870
3875
|
controls: L().optional(),
|
|
3871
3876
|
levels: L().optional(),
|
|
3872
3877
|
header: L().optional(),
|
|
3873
|
-
overlay: L().optional()
|
|
3874
|
-
|
|
3878
|
+
overlay: L().optional(),
|
|
3879
|
+
searchButtons: L().optional()
|
|
3880
|
+
}), Ps = po([
|
|
3875
3881
|
"bookmarks",
|
|
3876
3882
|
"visited",
|
|
3877
3883
|
"sessions",
|
|
@@ -3879,18 +3885,18 @@ var ts = B({
|
|
|
3879
3885
|
"speakers",
|
|
3880
3886
|
"tours",
|
|
3881
3887
|
"language"
|
|
3882
|
-
]),
|
|
3888
|
+
]), Fs = z({
|
|
3883
3889
|
items: R(P()).optional(),
|
|
3884
3890
|
from: P().optional(),
|
|
3885
3891
|
fromBookmarks: L().optional()
|
|
3886
|
-
}),
|
|
3892
|
+
}), Is = z({
|
|
3887
3893
|
x: I(),
|
|
3888
3894
|
y: I(),
|
|
3889
3895
|
z: ro([I(), P()]).optional(),
|
|
3890
3896
|
angle: I().optional(),
|
|
3891
3897
|
lat: I().optional(),
|
|
3892
3898
|
lng: I().optional()
|
|
3893
|
-
}),
|
|
3899
|
+
}), Ls = ao("name", [
|
|
3894
3900
|
z({
|
|
3895
3901
|
name: H("selectBooth"),
|
|
3896
3902
|
args: V([P()])
|
|
@@ -3913,7 +3919,7 @@ var ts = B({
|
|
|
3913
3919
|
}),
|
|
3914
3920
|
z({
|
|
3915
3921
|
name: H("showList"),
|
|
3916
|
-
args: V([
|
|
3922
|
+
args: V([Ps])
|
|
3917
3923
|
}),
|
|
3918
3924
|
z({
|
|
3919
3925
|
name: H("selectTour"),
|
|
@@ -3921,7 +3927,7 @@ var ts = B({
|
|
|
3921
3927
|
}),
|
|
3922
3928
|
z({
|
|
3923
3929
|
name: H("openPlanner"),
|
|
3924
|
-
args: V([
|
|
3930
|
+
args: V([Fs])
|
|
3925
3931
|
}),
|
|
3926
3932
|
z({
|
|
3927
3933
|
name: H("startBuildRoute"),
|
|
@@ -3933,7 +3939,7 @@ var ts = B({
|
|
|
3933
3939
|
}),
|
|
3934
3940
|
z({
|
|
3935
3941
|
name: H("setVisibility"),
|
|
3936
|
-
args: V([
|
|
3942
|
+
args: V([Ns.refine((e) => Object.keys(e).length > 0)])
|
|
3937
3943
|
}),
|
|
3938
3944
|
z({
|
|
3939
3945
|
name: H("selectRoute"),
|
|
@@ -3950,12 +3956,12 @@ var ts = B({
|
|
|
3950
3956
|
z({
|
|
3951
3957
|
name: H("selectCurrentPosition"),
|
|
3952
3958
|
args: V([
|
|
3953
|
-
|
|
3959
|
+
Is,
|
|
3954
3960
|
L(),
|
|
3955
3961
|
I().optional()
|
|
3956
3962
|
])
|
|
3957
3963
|
})
|
|
3958
|
-
]),
|
|
3964
|
+
]), Rs = z({
|
|
3959
3965
|
x: I().optional(),
|
|
3960
3966
|
y: I().optional(),
|
|
3961
3967
|
z: ro([P(), I()]).optional(),
|
|
@@ -3970,15 +3976,11 @@ var ts = B({
|
|
|
3970
3976
|
mapCenterX: I().optional(),
|
|
3971
3977
|
mapCenterY: I().optional(),
|
|
3972
3978
|
mapPitch: I().optional()
|
|
3973
|
-
}),
|
|
3974
|
-
styleUrl: P(),
|
|
3975
|
-
style: Ya(),
|
|
3976
|
-
offline: L()
|
|
3977
|
-
}).partial(), Rs = B({
|
|
3979
|
+
}), zs = B({
|
|
3978
3980
|
id: I(),
|
|
3979
3981
|
name: P(),
|
|
3980
3982
|
parentId: I().optional()
|
|
3981
|
-
}),
|
|
3983
|
+
}), Bs = B({ photoFile: P().optional().meta({ asset: !0 }) }), Vs = B({
|
|
3982
3984
|
id: I(),
|
|
3983
3985
|
name: P(),
|
|
3984
3986
|
externalId: P().optional(),
|
|
@@ -3989,57 +3991,57 @@ var ts = B({
|
|
|
3989
3991
|
endDate: P().optional(),
|
|
3990
3992
|
link: P().optional(),
|
|
3991
3993
|
logoFile: P().optional().meta({ asset: !0 }),
|
|
3992
|
-
speakers: R(
|
|
3994
|
+
speakers: R(Bs).optional(),
|
|
3993
3995
|
tracks: R(Za()).optional()
|
|
3994
|
-
}),
|
|
3996
|
+
}), Hs = B({
|
|
3995
3997
|
id: ro([I(), P()]).optional(),
|
|
3996
3998
|
type: P(),
|
|
3997
3999
|
name: P().optional(),
|
|
3998
4000
|
visible: L().optional(),
|
|
3999
4001
|
count: I().optional(),
|
|
4000
4002
|
linkUrl: P().optional()
|
|
4001
|
-
}),
|
|
4003
|
+
}), Us = B({
|
|
4002
4004
|
id: P().optional(),
|
|
4003
4005
|
type: P(),
|
|
4004
4006
|
name: P(),
|
|
4005
4007
|
visible: L().optional(),
|
|
4006
4008
|
builtIn: L().optional(),
|
|
4007
4009
|
order: I().optional(),
|
|
4008
|
-
children: R(
|
|
4009
|
-
}),
|
|
4010
|
+
children: R(Hs).optional()
|
|
4011
|
+
}), Ws = B({
|
|
4010
4012
|
isExplicit: L().optional(),
|
|
4011
4013
|
sortType: po(["custom", "alphabetical"]).optional(),
|
|
4012
|
-
searchButtons: R(
|
|
4013
|
-
}),
|
|
4014
|
+
searchButtons: R(Us).optional()
|
|
4015
|
+
}), Gs = B({
|
|
4014
4016
|
x: I(),
|
|
4015
4017
|
y: I(),
|
|
4016
4018
|
layer: P().optional()
|
|
4017
|
-
}),
|
|
4019
|
+
}), Ks = B({ __wfData: B({
|
|
4018
4020
|
lines: R(B({
|
|
4019
|
-
p0:
|
|
4020
|
-
p1:
|
|
4021
|
+
p0: Gs,
|
|
4022
|
+
p1: Gs,
|
|
4021
4023
|
weight: I().optional(),
|
|
4022
4024
|
virtual: L().optional(),
|
|
4023
4025
|
unaccessible: L().optional(),
|
|
4024
4026
|
unidirection: L().optional(),
|
|
4025
4027
|
virtualLength: I().optional()
|
|
4026
4028
|
})).optional(),
|
|
4027
|
-
lineEnds: R(
|
|
4029
|
+
lineEnds: R(Gs).optional(),
|
|
4028
4030
|
walls: R(Za()).optional()
|
|
4029
|
-
}).optional() }),
|
|
4031
|
+
}).optional() }), qs = z({ $ref: P() }).meta({ refSchema: Ks }), Js = B({
|
|
4030
4032
|
weight: ro([P(), I()]).optional(),
|
|
4031
4033
|
style: P().optional(),
|
|
4032
4034
|
url: P().meta({ asset: !0 }).optional()
|
|
4033
|
-
}),
|
|
4035
|
+
}), Ys = po([
|
|
4034
4036
|
"ask",
|
|
4035
4037
|
"granted",
|
|
4036
4038
|
"denied"
|
|
4037
|
-
]),
|
|
4039
|
+
]), Xs = z({
|
|
4038
4040
|
expo: P(),
|
|
4039
|
-
intents: R(
|
|
4040
|
-
fpSvgJsRef:
|
|
4041
|
-
fpSvgLayerJsRefs: uo(P(),
|
|
4042
|
-
wfDataJsRef:
|
|
4041
|
+
intents: R(Ls),
|
|
4042
|
+
fpSvgJsRef: js.nullable(),
|
|
4043
|
+
fpSvgLayerJsRefs: uo(P(), ks),
|
|
4044
|
+
wfDataJsRef: qs.nullable(),
|
|
4043
4045
|
noFeatured: L(),
|
|
4044
4046
|
isTrial: L(),
|
|
4045
4047
|
expoFpAd: L(),
|
|
@@ -4066,7 +4068,7 @@ var ts = B({
|
|
|
4066
4068
|
booths: R(rs),
|
|
4067
4069
|
exhibitors: R(us),
|
|
4068
4070
|
categories: R(as),
|
|
4069
|
-
poiTypes: R(
|
|
4071
|
+
poiTypes: R(zs),
|
|
4070
4072
|
reserveInstructions: P(),
|
|
4071
4073
|
sendLoginLinkUrl: P(),
|
|
4072
4074
|
trackerUrl: P(),
|
|
@@ -4090,9 +4092,9 @@ var ts = B({
|
|
|
4090
4092
|
hide3dMapDefault: L(),
|
|
4091
4093
|
hideModeSwitchButton: L(),
|
|
4092
4094
|
isRebooking: L(),
|
|
4093
|
-
events: R(
|
|
4095
|
+
events: R(Vs),
|
|
4094
4096
|
customCss: P().meta({ cssAsset: !0 }),
|
|
4095
|
-
customCssFonts: R(
|
|
4097
|
+
customCssFonts: R(Js),
|
|
4096
4098
|
showLevelLabel: L(),
|
|
4097
4099
|
showCategories: L(),
|
|
4098
4100
|
showCompaniesAndBooths: L(),
|
|
@@ -4101,7 +4103,7 @@ var ts = B({
|
|
|
4101
4103
|
viewOptimizationLevel: I(),
|
|
4102
4104
|
shortLevelName: L(),
|
|
4103
4105
|
searchText: P(),
|
|
4104
|
-
filterButtonsConfig:
|
|
4106
|
+
filterButtonsConfig: Ws,
|
|
4105
4107
|
enableRotation: L(),
|
|
4106
4108
|
alwaysShowSidebar: L(),
|
|
4107
4109
|
customKioskQrCodeUrl: P(),
|
|
@@ -4113,10 +4115,10 @@ var ts = B({
|
|
|
4113
4115
|
noOverlay: L(),
|
|
4114
4116
|
offHistory: L(),
|
|
4115
4117
|
ignoreQuery: L(),
|
|
4116
|
-
consent:
|
|
4118
|
+
consent: Ys,
|
|
4117
4119
|
viewerMode: L(),
|
|
4118
4120
|
disableRuntimeAlerts: L(),
|
|
4119
|
-
maplibre:
|
|
4121
|
+
maplibre: ps,
|
|
4120
4122
|
monochrome: L(),
|
|
4121
4123
|
hideHeaderLogo: L(),
|
|
4122
4124
|
hideLogoInBooth: L(),
|
|
@@ -4124,19 +4126,19 @@ var ts = B({
|
|
|
4124
4126
|
disableBookmarked: L(),
|
|
4125
4127
|
disableGps: L(),
|
|
4126
4128
|
camera: is,
|
|
4127
|
-
visibility:
|
|
4129
|
+
visibility: Ns,
|
|
4128
4130
|
filters: ds,
|
|
4129
|
-
heatmap:
|
|
4130
|
-
kiosk:
|
|
4131
|
-
}),
|
|
4132
|
-
...
|
|
4133
|
-
...
|
|
4131
|
+
heatmap: Ms,
|
|
4132
|
+
kiosk: Rs
|
|
4133
|
+
}), Zs = { allowConsent: L().optional() }, Qs = { validateSchema: L().optional() }, $s = B({ __data: B({
|
|
4134
|
+
...Xs.partial().shape,
|
|
4135
|
+
...Zs,
|
|
4134
4136
|
flags: fs.optional().meta({ description: "deprecated, use root-level fields" })
|
|
4135
|
-
}).optional() }),
|
|
4136
|
-
...
|
|
4137
|
-
...
|
|
4137
|
+
}).optional() }), ec = B({
|
|
4138
|
+
...Xs.partial().required({ expo: !0 }).shape,
|
|
4139
|
+
...Zs,
|
|
4138
4140
|
legacyDataUrlBase: P().optional()
|
|
4139
|
-
}),
|
|
4141
|
+
}), tc = Xs.partial().pick({
|
|
4140
4142
|
previewMode: !0,
|
|
4141
4143
|
noOverlay: !0,
|
|
4142
4144
|
offHistory: !0,
|
|
@@ -4145,7 +4147,7 @@ var ts = B({
|
|
|
4145
4147
|
viewerMode: !0,
|
|
4146
4148
|
disableRuntimeAlerts: !0,
|
|
4147
4149
|
maplibre: !0
|
|
4148
|
-
}).extend(
|
|
4150
|
+
}).extend(Zs), nc = Xs.partial().pick({
|
|
4149
4151
|
enableExperimentalMaplibre: !0,
|
|
4150
4152
|
intents: !0,
|
|
4151
4153
|
consent: !0,
|
|
@@ -4161,14 +4163,14 @@ var ts = B({
|
|
|
4161
4163
|
filters: !0,
|
|
4162
4164
|
heatmap: !0,
|
|
4163
4165
|
kiosk: !0
|
|
4164
|
-
}).extend(
|
|
4166
|
+
}).extend(Zs).extend(Qs), rc = Xs.partial().pick({
|
|
4165
4167
|
enableExperimentalMaplibre: !0,
|
|
4166
4168
|
debugMode: !0,
|
|
4167
4169
|
debugPattern: !0,
|
|
4168
4170
|
showDebugButton: !0,
|
|
4169
4171
|
viewerMode: !0,
|
|
4170
4172
|
previewMode: !0
|
|
4171
|
-
}).extend({ uiScale: I().min(.8).max(1.4).optional().catch(void 0) }).extend(
|
|
4173
|
+
}).extend({ uiScale: I().min(.8).max(1.4).optional().catch(void 0) }).extend(Qs), ic = {
|
|
4172
4174
|
expo: "",
|
|
4173
4175
|
noFeatured: !1,
|
|
4174
4176
|
isTrial: !1,
|
|
@@ -4265,111 +4267,111 @@ var ts = B({
|
|
|
4265
4267
|
};
|
|
4266
4268
|
//#endregion
|
|
4267
4269
|
//#region ../utils/src/lib/clone.ts
|
|
4268
|
-
function
|
|
4270
|
+
function ac(e) {
|
|
4269
4271
|
return "structuredClone" in globalThis ? globalThis.structuredClone(e) : JSON.parse(JSON.stringify(e));
|
|
4270
4272
|
}
|
|
4271
4273
|
//#endregion
|
|
4272
4274
|
//#region ../utils/src/lib/deep-freeze.ts
|
|
4273
|
-
function
|
|
4275
|
+
function oc(e) {
|
|
4274
4276
|
return typeof e != "object" || !e ? e : (Object.getOwnPropertyNames(e).forEach((t) => {
|
|
4275
4277
|
let n = e[t];
|
|
4276
|
-
n && typeof n == "object" &&
|
|
4278
|
+
n && typeof n == "object" && oc(n);
|
|
4277
4279
|
}), Object.freeze(e));
|
|
4278
4280
|
}
|
|
4279
4281
|
//#endregion
|
|
4280
4282
|
//#region ../utils/src/lib/fetch-with-retry.ts
|
|
4281
|
-
var
|
|
4282
|
-
return
|
|
4283
|
+
var sc, cc = async function(...t) {
|
|
4284
|
+
return sc || (sc = typeof window < "u" && typeof document < "u" ? window.fetch.bind(window) : (await import("./fetch-retry.umd-FoSetp20.js").then((t) => /* @__PURE__ */ e(t.default, 1))).default(globalThis.fetch)), sc(...t);
|
|
4283
4285
|
};
|
|
4284
4286
|
//#endregion
|
|
4285
4287
|
//#region ../utils/src/lib/import-node-module.ts
|
|
4286
|
-
async function
|
|
4288
|
+
async function lc(e) {
|
|
4287
4289
|
var t;
|
|
4288
4290
|
if (typeof process > "u" || !((t = process.versions) != null && t.node)) throw Error("importNodeModule can only be used in Node.js environments");
|
|
4289
4291
|
return Function("moduleName", "return import(moduleName)")(e);
|
|
4290
4292
|
}
|
|
4291
4293
|
//#endregion
|
|
4292
4294
|
//#region ../utils/src/lib/import-fs-promises.ts
|
|
4293
|
-
async function
|
|
4294
|
-
return
|
|
4295
|
+
async function uc() {
|
|
4296
|
+
return lc("node:fs/promises");
|
|
4295
4297
|
}
|
|
4296
4298
|
//#endregion
|
|
4297
4299
|
//#region ../utils/src/lib/import-js-as-json.ts
|
|
4298
|
-
var
|
|
4299
|
-
async function
|
|
4300
|
+
var dc = (0, Ro.default)("efp:utils:importJsAsJson");
|
|
4301
|
+
async function fc(e) {
|
|
4300
4302
|
return await import(
|
|
4301
4303
|
/* @vite-ignore */
|
|
4302
4304
|
e
|
|
4303
4305
|
);
|
|
4304
4306
|
}
|
|
4305
|
-
var
|
|
4307
|
+
var pc = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : {}, mc = [
|
|
4306
4308
|
"window",
|
|
4307
4309
|
"self",
|
|
4308
4310
|
"globalThis"
|
|
4309
4311
|
];
|
|
4310
|
-
function
|
|
4312
|
+
function hc(e, t) {
|
|
4311
4313
|
var n;
|
|
4312
4314
|
if (typeof Proxy > "u") throw Error("evalJsToJson requires Proxy, which is unavailable in this environment");
|
|
4313
4315
|
let r = (n = t == null ? void 0 : t.globals) == null ? {} : n, i = { ...r }, a = new Proxy(i, {
|
|
4314
4316
|
has: () => !0,
|
|
4315
4317
|
get: (e, t) => {
|
|
4316
|
-
if (t !== Symbol.unscopables) return typeof t == "string" &&
|
|
4318
|
+
if (t !== Symbol.unscopables) return typeof t == "string" && mc.includes(t) ? a : t in e ? e[t] : pc[t];
|
|
4317
4319
|
},
|
|
4318
4320
|
set: (e, t, n) => (e[t] = n, !0)
|
|
4319
4321
|
});
|
|
4320
|
-
return Function("__scope__", `with(__scope__){${e}\n}`)(a),
|
|
4322
|
+
return Function("__scope__", `with(__scope__){${e}\n}`)(a), vc(i, /* @__PURE__ */ new Set([...mc, ...Object.keys(r)]), t == null ? void 0 : t.pick);
|
|
4321
4323
|
}
|
|
4322
|
-
async function
|
|
4324
|
+
async function gc(e, t) {
|
|
4323
4325
|
var n;
|
|
4324
|
-
return
|
|
4326
|
+
return dc("Loading JS from", e), hc(await _c(e, (n = t == null ? void 0 : t.signal) == null ? null : n), t);
|
|
4325
4327
|
}
|
|
4326
|
-
async function
|
|
4328
|
+
async function _c(e, t) {
|
|
4327
4329
|
let n = new URL(e);
|
|
4328
4330
|
if (n.protocol === "file:") {
|
|
4329
|
-
|
|
4330
|
-
let { readFile: r } = await
|
|
4331
|
+
dc("Read from file system", e);
|
|
4332
|
+
let { readFile: r } = await fc("node:fs/promises");
|
|
4331
4333
|
return r(n, {
|
|
4332
4334
|
encoding: "utf-8",
|
|
4333
4335
|
signal: t == null ? void 0 : t
|
|
4334
4336
|
});
|
|
4335
4337
|
}
|
|
4336
|
-
|
|
4337
|
-
let r = await
|
|
4338
|
+
dc("Fetch", e);
|
|
4339
|
+
let r = await cc(e, { signal: t });
|
|
4338
4340
|
if (!r.ok) throw Error(`Failed to fetch JS from ${e} (HTTP ${r.status})`);
|
|
4339
4341
|
return r.text();
|
|
4340
4342
|
}
|
|
4341
|
-
function
|
|
4343
|
+
function vc(e, t, n) {
|
|
4342
4344
|
let r = {}, i = n == null ? Object.keys(e).filter((e) => !t.has(e)) : n;
|
|
4343
4345
|
for (let t of i) Object.prototype.hasOwnProperty.call(e, t) && (r[t] = e[t]);
|
|
4344
4346
|
return r;
|
|
4345
4347
|
}
|
|
4346
4348
|
//#endregion
|
|
4347
4349
|
//#region ../utils/src/lib/import-json.ts
|
|
4348
|
-
var
|
|
4349
|
-
function
|
|
4350
|
+
var yc = (0, Ro.default)("efp:utils:importJson"), bc = /* @__PURE__ */ new WeakSet(), xc;
|
|
4351
|
+
function Sc() {
|
|
4350
4352
|
var e;
|
|
4351
|
-
if (
|
|
4352
|
-
|
|
4353
|
+
if (xc === void 0) try {
|
|
4354
|
+
xc = Function("url", "return import(url, { with: { type: \"json\" } });");
|
|
4353
4355
|
} catch {
|
|
4354
|
-
|
|
4356
|
+
yc("Dynamic import not available"), xc = null;
|
|
4355
4357
|
}
|
|
4356
|
-
return (e =
|
|
4358
|
+
return (e = xc) == null ? void 0 : e;
|
|
4357
4359
|
}
|
|
4358
|
-
async function
|
|
4360
|
+
async function Cc(e, t) {
|
|
4359
4361
|
var n, r, i, a;
|
|
4360
|
-
let o = (n = t == null ? void 0 : t.forceFetch) != null && n, s = (r = t == null ? void 0 : t.fetchCache) == null ? /* @__PURE__ */ new Map() : r, c = (i = t == null ? void 0 : t.signal) == null ? null : i, l, u = o ? void 0 :
|
|
4362
|
+
let o = (n = t == null ? void 0 : t.forceFetch) != null && n, s = (r = t == null ? void 0 : t.fetchCache) == null ? /* @__PURE__ */ new Map() : r, c = (i = t == null ? void 0 : t.signal) == null ? null : i, l, u = o ? void 0 : Sc();
|
|
4361
4363
|
if (u) try {
|
|
4362
|
-
|
|
4364
|
+
yc("Dynamic import", e), l = (await u(e)).default;
|
|
4363
4365
|
} catch {
|
|
4364
|
-
|
|
4366
|
+
yc("Dynamic import not available"), xc = null;
|
|
4365
4367
|
}
|
|
4366
|
-
return l === void 0 && (e.startsWith("file:") && !o ? (
|
|
4368
|
+
return l === void 0 && (e.startsWith("file:") && !o ? (yc("Read from file system", e), l = await Tc(new URL(e))) : (yc("Fetch", e), l = await wc(e, s, c))), t == null || (a = t.importCallback) == null || a.call(t, e), typeof l == "object" && l && !bc.has(l) && (oc(l), bc.add(l)), l;
|
|
4367
4369
|
}
|
|
4368
|
-
async function
|
|
4370
|
+
async function wc(e, t, n) {
|
|
4369
4371
|
let r = "__loadJson__" + e;
|
|
4370
4372
|
if (t.has(r)) return t.get(r);
|
|
4371
4373
|
let i = (async () => {
|
|
4372
|
-
let t = await
|
|
4374
|
+
let t = await cc(e, { signal: n });
|
|
4373
4375
|
if (!t.ok) throw Error(`Failed to fetch JSON from ${e}`);
|
|
4374
4376
|
return await t.json();
|
|
4375
4377
|
})();
|
|
@@ -4377,14 +4379,14 @@ async function Cc(e, t, n) {
|
|
|
4377
4379
|
t.get(r) === i && t.delete(r);
|
|
4378
4380
|
}), i;
|
|
4379
4381
|
}
|
|
4380
|
-
async function
|
|
4382
|
+
async function Tc(e) {
|
|
4381
4383
|
if (e.protocol !== "file:") throw Error(`readJsonFromFs only supports file: URLs, got ${e.href}`);
|
|
4382
|
-
let t = await (await
|
|
4384
|
+
let t = await (await uc()).readFile(e, { encoding: "utf-8" });
|
|
4383
4385
|
return JSON.parse(t);
|
|
4384
4386
|
}
|
|
4385
4387
|
//#endregion
|
|
4386
4388
|
//#region ../utils/src/lib/safe-decode.ts
|
|
4387
|
-
function
|
|
4389
|
+
function Ec(e) {
|
|
4388
4390
|
try {
|
|
4389
4391
|
return decodeURIComponent(e);
|
|
4390
4392
|
} catch {
|
|
@@ -4393,13 +4395,13 @@ function Tc(e) {
|
|
|
4393
4395
|
}
|
|
4394
4396
|
//#endregion
|
|
4395
4397
|
//#region ../config/src/lib/legacy-url.ts
|
|
4396
|
-
var
|
|
4398
|
+
var Dc = /* @__PURE__ */ new Set([...Object.keys(nc.shape), ...Ls.options.map((e) => e.shape.name.value)]), Oc = /* @__PURE__ */ new Set([
|
|
4397
4399
|
"blue-dot",
|
|
4398
4400
|
"viewermode",
|
|
4399
4401
|
"previewMode",
|
|
4400
4402
|
"uiscale",
|
|
4401
4403
|
"resetuiscale"
|
|
4402
|
-
]),
|
|
4404
|
+
]), kc = /* @__PURE__ */ new Set([
|
|
4403
4405
|
"centerxy",
|
|
4404
4406
|
"center",
|
|
4405
4407
|
"z",
|
|
@@ -4407,8 +4409,8 @@ var Ec = /* @__PURE__ */ new Set([...Object.keys(tc.shape), ...Fs.options.map((e
|
|
|
4407
4409
|
"zoomtime",
|
|
4408
4410
|
"roll"
|
|
4409
4411
|
]);
|
|
4410
|
-
function
|
|
4411
|
-
let t = e.startsWith("?") ? e.slice(1) : e, n =
|
|
4412
|
+
function Ac(e) {
|
|
4413
|
+
let t = e.startsWith("?") ? e.slice(1) : e, n = Ec(t), r = new URLSearchParams(n), i = Mc(t, r);
|
|
4412
4414
|
return t.startsWith("preview=") || t.startsWith("b=") || t.startsWith("ba=") || n.includes("copy_exh") ? {
|
|
4413
4415
|
primary: {
|
|
4414
4416
|
type: "select",
|
|
@@ -4416,11 +4418,11 @@ function kc(e) {
|
|
|
4416
4418
|
},
|
|
4417
4419
|
oneShots: i.filter((e) => e.type === "heatmap" || e.type === "legacyBookmarks")
|
|
4418
4420
|
} : {
|
|
4419
|
-
primary:
|
|
4421
|
+
primary: jc(Lc(n), r, Ic(n)),
|
|
4420
4422
|
oneShots: i
|
|
4421
4423
|
};
|
|
4422
4424
|
}
|
|
4423
|
-
function
|
|
4425
|
+
function jc(e, t, n) {
|
|
4424
4426
|
if (t.has("kiosk")) {
|
|
4425
4427
|
let e = t.get("kiosk");
|
|
4426
4428
|
return {
|
|
@@ -4516,7 +4518,7 @@ function Ac(e, t, n) {
|
|
|
4516
4518
|
slug: e
|
|
4517
4519
|
};
|
|
4518
4520
|
}
|
|
4519
|
-
function
|
|
4521
|
+
function Mc(e, t) {
|
|
4520
4522
|
let n = [];
|
|
4521
4523
|
if (t.get("heatmap") === "true" && n.push({
|
|
4522
4524
|
type: "heatmap",
|
|
@@ -4566,21 +4568,21 @@ function jc(e, t) {
|
|
|
4566
4568
|
raw: o
|
|
4567
4569
|
});
|
|
4568
4570
|
}
|
|
4569
|
-
let s =
|
|
4571
|
+
let s = Nc(t);
|
|
4570
4572
|
return s && n.push(s), n;
|
|
4571
4573
|
}
|
|
4572
|
-
function
|
|
4573
|
-
let t = {}, n =
|
|
4574
|
+
function Nc(e) {
|
|
4575
|
+
let t = {}, n = Pc(e.get("centerxy"));
|
|
4574
4576
|
n && ([t.x, t.y] = n);
|
|
4575
|
-
let r =
|
|
4577
|
+
let r = Pc(e.get("center"));
|
|
4576
4578
|
r && ([t.lat, t.lng] = r);
|
|
4577
4579
|
let i = e.get("z");
|
|
4578
4580
|
i && (t.floor = i);
|
|
4579
|
-
let a =
|
|
4581
|
+
let a = Fc(e.get("bearing"));
|
|
4580
4582
|
a !== void 0 && (t.bearing = a);
|
|
4581
|
-
let o =
|
|
4583
|
+
let o = Fc(e.get("zoomtime"));
|
|
4582
4584
|
o !== void 0 && (t.zoomTime = o);
|
|
4583
|
-
let s =
|
|
4585
|
+
let s = Fc(e.get("roll"));
|
|
4584
4586
|
return !Object.keys(t).length && s === void 0 ? null : s === void 0 ? {
|
|
4585
4587
|
type: "camera",
|
|
4586
4588
|
camera: t
|
|
@@ -4590,34 +4592,34 @@ function Mc(e) {
|
|
|
4590
4592
|
roll: s
|
|
4591
4593
|
};
|
|
4592
4594
|
}
|
|
4593
|
-
function
|
|
4595
|
+
function Pc(e) {
|
|
4594
4596
|
if (!e) return;
|
|
4595
4597
|
let t = e.split(",").map(parseFloat);
|
|
4596
4598
|
if (!(t.length !== 2 || !t.every(Number.isFinite))) return [t[0], t[1]];
|
|
4597
4599
|
}
|
|
4598
|
-
function
|
|
4600
|
+
function Fc(e) {
|
|
4599
4601
|
if (e === null || e === "") return;
|
|
4600
4602
|
let t = parseFloat(e);
|
|
4601
4603
|
return Number.isFinite(t) ? t : void 0;
|
|
4602
4604
|
}
|
|
4603
|
-
function
|
|
4605
|
+
function Ic(e) {
|
|
4604
4606
|
return e.split("&").some((e) => {
|
|
4605
4607
|
let t = e.split("=")[0];
|
|
4606
|
-
return t !== "heatmap" &&
|
|
4608
|
+
return t !== "heatmap" && Dc.has(t.split("[")[0]);
|
|
4607
4609
|
});
|
|
4608
4610
|
}
|
|
4609
|
-
function
|
|
4611
|
+
function Lc(e) {
|
|
4610
4612
|
return e.split("&").filter((e) => {
|
|
4611
4613
|
if (!e) return !1;
|
|
4612
4614
|
let t = e.split("=")[0].split("[")[0];
|
|
4613
|
-
return
|
|
4615
|
+
return kc.has(t) && e.includes("=") ? !1 : e.split("=")[0] === "heatmap" || !Dc.has(t) && !Oc.has(t);
|
|
4614
4616
|
}).join("&");
|
|
4615
4617
|
}
|
|
4616
|
-
function
|
|
4617
|
-
let t =
|
|
4618
|
+
function Rc(e) {
|
|
4619
|
+
let t = zc(e);
|
|
4618
4620
|
return t ? "?" + encodeURIComponent(t) : "";
|
|
4619
4621
|
}
|
|
4620
|
-
function
|
|
4622
|
+
function zc(e) {
|
|
4621
4623
|
switch (e.type) {
|
|
4622
4624
|
case "none": return "";
|
|
4623
4625
|
case "slug": return e.slug;
|
|
@@ -4636,37 +4638,37 @@ function Rc(e) {
|
|
|
4636
4638
|
}
|
|
4637
4639
|
//#endregion
|
|
4638
4640
|
//#region ../resolve/src/resolve.ts
|
|
4639
|
-
var
|
|
4640
|
-
async function
|
|
4641
|
+
var Bc = /* @__PURE__ */ new Map(), Vc = /* @__PURE__ */ new Map();
|
|
4642
|
+
async function Hc(e, t) {
|
|
4641
4643
|
var n;
|
|
4642
|
-
if (!
|
|
4643
|
-
let r = e.$ref, i = await (
|
|
4644
|
-
fetchCache: (n = t == null ? void 0 : t.refCache) == null ?
|
|
4644
|
+
if (!Gc(e)) return e;
|
|
4645
|
+
let r = e.$ref, i = await (Kc(r) ? qc(r, t) : Cc(r, {
|
|
4646
|
+
fetchCache: (n = t == null ? void 0 : t.refCache) == null ? Bc : n,
|
|
4645
4647
|
forceFetch: t == null ? void 0 : t.forceFetch,
|
|
4646
4648
|
signal: t == null ? void 0 : t.signal,
|
|
4647
4649
|
importCallback: t == null ? void 0 : t.importCallback
|
|
4648
4650
|
})), a = e.process ? await e.process(i, r) : i;
|
|
4649
|
-
return
|
|
4650
|
-
}
|
|
4651
|
-
function Hc(e) {
|
|
4652
|
-
if (!Wc(e)) return e;
|
|
4653
|
-
if (!Bc.has(e.$ref)) throw Error(`resolve: $ref not resolved yet: ${e.$ref}`);
|
|
4654
|
-
return Bc.get(e.$ref);
|
|
4651
|
+
return oc(a), Vc.set(r, a), a;
|
|
4655
4652
|
}
|
|
4656
4653
|
function Uc(e) {
|
|
4657
|
-
|
|
4654
|
+
if (!Gc(e)) return e;
|
|
4655
|
+
if (!Vc.has(e.$ref)) throw Error(`resolve: $ref not resolved yet: ${e.$ref}`);
|
|
4656
|
+
return Vc.get(e.$ref);
|
|
4658
4657
|
}
|
|
4659
4658
|
function Wc(e) {
|
|
4660
|
-
return
|
|
4659
|
+
return !Gc(e) || Vc.has(e.$ref);
|
|
4661
4660
|
}
|
|
4662
4661
|
function Gc(e) {
|
|
4662
|
+
return typeof e == "object" && !!e && "$ref" in e && typeof e.$ref == "string";
|
|
4663
|
+
}
|
|
4664
|
+
function Kc(e) {
|
|
4663
4665
|
return /\.js(\?|#|$)/i.test(e);
|
|
4664
4666
|
}
|
|
4665
|
-
function
|
|
4667
|
+
function qc(e, t) {
|
|
4666
4668
|
var n;
|
|
4667
|
-
let r = (n = t == null ? void 0 : t.refCache) == null ?
|
|
4669
|
+
let r = (n = t == null ? void 0 : t.refCache) == null ? Bc : n, i = "__loadJs__" + e, a = t != null && t.forceFetch ? void 0 : r.get(i);
|
|
4668
4670
|
if (!a) {
|
|
4669
|
-
let n =
|
|
4671
|
+
let n = gc(e, { signal: t == null ? void 0 : t.signal });
|
|
4670
4672
|
r.set(i, n), n.catch(() => {
|
|
4671
4673
|
r.get(i) === n && r.delete(i);
|
|
4672
4674
|
}), a = n;
|
|
@@ -4678,7 +4680,7 @@ function Kc(e, t) {
|
|
|
4678
4680
|
}
|
|
4679
4681
|
//#endregion
|
|
4680
4682
|
//#region ../config/src/lib/normalize-fp-svg.ts
|
|
4681
|
-
function
|
|
4683
|
+
function Jc(e, t) {
|
|
4682
4684
|
if (e.__fp === void 0) {
|
|
4683
4685
|
let n = e[`__fp${t}`];
|
|
4684
4686
|
typeof n == "string" && (e.__fp = n);
|
|
@@ -4690,103 +4692,103 @@ function qc(e, t) {
|
|
|
4690
4692
|
}
|
|
4691
4693
|
//#endregion
|
|
4692
4694
|
//#region ../config/src/lib/resource-urls.ts
|
|
4693
|
-
function
|
|
4694
|
-
return e === "" ||
|
|
4695
|
+
function Yc(e, t) {
|
|
4696
|
+
return e === "" || Xc(e) ? e : `${t.replace(/\/+$/, "")}/${e}`;
|
|
4695
4697
|
}
|
|
4696
|
-
function
|
|
4698
|
+
function Xc(e) {
|
|
4697
4699
|
return e.startsWith("/") || /^[a-z][a-z0-9+.-]*:/i.test(e);
|
|
4698
4700
|
}
|
|
4699
|
-
function
|
|
4701
|
+
function Zc(e) {
|
|
4700
4702
|
let t = e.split(/[?#]/, 1)[0];
|
|
4701
4703
|
return t.slice(0, t.lastIndexOf("/") + 1);
|
|
4702
4704
|
}
|
|
4703
|
-
function
|
|
4705
|
+
function Qc(e, t) {
|
|
4704
4706
|
let n = [];
|
|
4705
4707
|
e.lastIndex = 0;
|
|
4706
4708
|
for (let r = e.exec(t); r; r = e.exec(t)) n.push(r), r[0] === "" && e.lastIndex++;
|
|
4707
4709
|
return n;
|
|
4708
4710
|
}
|
|
4709
|
-
var
|
|
4710
|
-
function
|
|
4711
|
+
var $c = /<image\b[^>]*>/g, el = /(\b(?:xlink:)?href\s*=\s*)(?:"([^"]*)"|'([^']*)')/g;
|
|
4712
|
+
function tl(e) {
|
|
4711
4713
|
return !!e && !e.startsWith("#");
|
|
4712
4714
|
}
|
|
4713
|
-
function
|
|
4715
|
+
function nl(e) {
|
|
4714
4716
|
var t;
|
|
4715
4717
|
let n = /* @__PURE__ */ new Set();
|
|
4716
4718
|
if (!e.includes("<image")) return [];
|
|
4717
|
-
for (let i of (t = e.match(
|
|
4719
|
+
for (let i of (t = e.match($c)) == null ? [] : t) for (let e of Qc(el, i)) {
|
|
4718
4720
|
var r;
|
|
4719
4721
|
let t = (r = e[2]) == null ? e[3] : r;
|
|
4720
|
-
|
|
4722
|
+
tl(t) && n.add(t);
|
|
4721
4723
|
}
|
|
4722
4724
|
return [...n];
|
|
4723
4725
|
}
|
|
4724
|
-
function
|
|
4725
|
-
return e.includes("<image") ? e.replace(
|
|
4726
|
+
function rl(e, t) {
|
|
4727
|
+
return e.includes("<image") ? e.replace($c, (e) => e.replace(el, (e, n, r, i) => {
|
|
4726
4728
|
var a;
|
|
4727
4729
|
let o = (a = r == null ? i : r) == null ? "" : a;
|
|
4728
|
-
if (!
|
|
4730
|
+
if (!tl(o)) return e;
|
|
4729
4731
|
let s = r === void 0 ? "'" : "\"";
|
|
4730
4732
|
return `${n}${s}${t(o)}${s}`;
|
|
4731
4733
|
})) : e;
|
|
4732
4734
|
}
|
|
4733
|
-
var
|
|
4734
|
-
function
|
|
4735
|
+
var il = /url\(\s*(['"]?)(.*?)\1\s*\)/g;
|
|
4736
|
+
function al(e) {
|
|
4735
4737
|
let t = /* @__PURE__ */ new Set();
|
|
4736
|
-
for (let n of
|
|
4738
|
+
for (let n of Qc(il, e)) {
|
|
4737
4739
|
let e = n[2];
|
|
4738
4740
|
e && !e.startsWith("data:") && t.add(e);
|
|
4739
4741
|
}
|
|
4740
4742
|
return [...t];
|
|
4741
4743
|
}
|
|
4742
|
-
function
|
|
4743
|
-
return e.replace(
|
|
4744
|
+
function ol(e, t) {
|
|
4745
|
+
return e.replace(il, (e, n, r) => !r || r.startsWith("data:") ? e : `url(${n}${t(r)}${n})`);
|
|
4744
4746
|
}
|
|
4745
|
-
var
|
|
4746
|
-
async function
|
|
4747
|
-
let i = /* @__PURE__ */ new Set(), a = [...e.matchAll(
|
|
4747
|
+
var sl = /@import\s+(?:url\(\s*(['"]?)(.*?)\1\s*\)|(["'])(.*?)\3)\s*([^;]*);/gi;
|
|
4748
|
+
async function cl(e, t, n, r = []) {
|
|
4749
|
+
let i = /* @__PURE__ */ new Set(), a = [...e.matchAll(sl)], o = await Promise.all(a.map(async (e) => {
|
|
4748
4750
|
var a, o;
|
|
4749
|
-
let s = (a = (o = e[2]) == null ? e[4] : o) == null ? "" : a, c = e[5].trim(), l =
|
|
4751
|
+
let s = (a = (o = e[2]) == null ? e[4] : o) == null ? "" : a, c = e[5].trim(), l = ul(s, n);
|
|
4750
4752
|
if (!l || c) return console.warn(c ? `Keeping conditional CSS import remote: @import ${s} ${c}` : `Keeping unresolvable relative CSS import: @import ${s}`), i.add(s), e[0];
|
|
4751
4753
|
if (r.includes(l)) throw Error(`CSS @import cycle: ${[...r, l].join(" -> ")}`);
|
|
4752
4754
|
let u = await t(l);
|
|
4753
|
-
if (!
|
|
4754
|
-
let d = await
|
|
4755
|
+
if (!ll(u)) return console.warn(`Dropping non-stylesheet CSS @import (not parseable as CSS): @import ${s}`), "";
|
|
4756
|
+
let d = await cl(u, t, l, [...r, l]);
|
|
4755
4757
|
for (let e of d.external) {
|
|
4756
4758
|
var f;
|
|
4757
|
-
i.add(e), i.add((f =
|
|
4759
|
+
i.add(e), i.add((f = ul(e, l)) == null ? e : f);
|
|
4758
4760
|
}
|
|
4759
|
-
return
|
|
4761
|
+
return ol(d.css, (e) => {
|
|
4760
4762
|
var t;
|
|
4761
|
-
return (t =
|
|
4763
|
+
return (t = ul(e, l)) == null ? e : t;
|
|
4762
4764
|
});
|
|
4763
4765
|
})), s = 0;
|
|
4764
4766
|
return {
|
|
4765
|
-
css: e.replace(
|
|
4767
|
+
css: e.replace(sl, () => o[s++]),
|
|
4766
4768
|
external: i
|
|
4767
4769
|
};
|
|
4768
4770
|
}
|
|
4769
|
-
function
|
|
4771
|
+
function ll(e) {
|
|
4770
4772
|
return !e.includes("\0");
|
|
4771
4773
|
}
|
|
4772
|
-
function
|
|
4774
|
+
function ul(e, t) {
|
|
4773
4775
|
if (e) try {
|
|
4774
4776
|
return t ? new URL(e, t).href : new URL(e).href;
|
|
4775
4777
|
} catch {
|
|
4776
4778
|
return;
|
|
4777
4779
|
}
|
|
4778
4780
|
}
|
|
4779
|
-
function
|
|
4780
|
-
let [n, r] =
|
|
4781
|
+
function dl(e, t) {
|
|
4782
|
+
let [n, r] = fl(e, /[?#]/), i = n.lastIndexOf("/"), a = n.slice(0, i + 1), o = n.slice(i + 1), s = o.lastIndexOf(".");
|
|
4781
4783
|
return `${a}${s > 0 ? `${o.slice(0, s)}${t}${o.slice(s)}` : `${o}${t}`}${r}`;
|
|
4782
4784
|
}
|
|
4783
|
-
function
|
|
4785
|
+
function fl(e, t) {
|
|
4784
4786
|
let n = e.search(t);
|
|
4785
4787
|
return n === -1 ? [e, ""] : [e.slice(0, n), e.slice(n)];
|
|
4786
4788
|
}
|
|
4787
4789
|
//#endregion
|
|
4788
4790
|
//#region ../config/src/lib/normalize-legacy-data.ts
|
|
4789
|
-
var
|
|
4791
|
+
var pl = [
|
|
4790
4792
|
2567,
|
|
4791
4793
|
2704,
|
|
4792
4794
|
2681,
|
|
@@ -4801,7 +4803,7 @@ var fl = [
|
|
|
4801
4803
|
2566,
|
|
4802
4804
|
2736
|
|
4803
4805
|
];
|
|
4804
|
-
function
|
|
4806
|
+
function ml(e, t) {
|
|
4805
4807
|
var n, r;
|
|
4806
4808
|
let i = e.expo, a = (n = e.booths) == null ? [] : n, o = (r = e.exhibitors) == null ? [] : r;
|
|
4807
4809
|
if (e.booths = a, e.exhibitors = o, e.categories != null || (e.categories = []), e.free && (e.noFeatured = !0, e.expoFpAd = !0), e.trialExpiresAt) {
|
|
@@ -4811,12 +4813,12 @@ function pl(e, t) {
|
|
|
4811
4813
|
if (o.length > 0) for (let e of a) delete e.reserved;
|
|
4812
4814
|
for (let e of o) typeof e.logo == "string" && (e.logo = e.logo ? {
|
|
4813
4815
|
url: e.logo,
|
|
4814
|
-
smallUrl:
|
|
4815
|
-
tinyUrl:
|
|
4816
|
+
smallUrl: dl(e.logo, "__small"),
|
|
4817
|
+
tinyUrl: dl(e.logo, "__tiny")
|
|
4816
4818
|
} : { url: e.logo });
|
|
4817
|
-
!e.logo && i === "expo" && (e.logo =
|
|
4819
|
+
!e.logo && i === "expo" && (e.logo = hl("../logo.svg", t)), e.logo || (e.logo = hl(`../${i}-logo.png`, t)), !e.homeUrl && i === "jtrade19" && (e.homeUrl = "https://www.jtrade.co.uk/"), e.boothTerm || (e.boothTerm = "Booth"), e.exhibitorTermPlural || (e.exhibitorTermPlural = "Exhibitors"), i === "expo" && o.filter((e) => {
|
|
4818
4820
|
var t;
|
|
4819
|
-
return ((t = e.logo) == null ? void 0 : t.url) &&
|
|
4821
|
+
return ((t = e.logo) == null ? void 0 : t.url) && pl.includes(e.id);
|
|
4820
4822
|
}).forEach((e) => e.advertise = !0);
|
|
4821
4823
|
for (let e of a) {
|
|
4822
4824
|
var s;
|
|
@@ -4828,39 +4830,39 @@ function pl(e, t) {
|
|
|
4828
4830
|
}
|
|
4829
4831
|
e.noFeatured && o.forEach((e) => e.featured = !1);
|
|
4830
4832
|
}
|
|
4831
|
-
function
|
|
4833
|
+
function hl(e, t) {
|
|
4832
4834
|
return t ? `${t.replace(/\/+$/, "")}/${e}` : e;
|
|
4833
4835
|
}
|
|
4834
4836
|
//#endregion
|
|
4835
4837
|
//#region ../config/src/lib/rebooking.ts
|
|
4836
|
-
var
|
|
4837
|
-
async function
|
|
4838
|
+
var gl = "rt", _l = "https://app.expofp.com/";
|
|
4839
|
+
async function vl(e, t) {
|
|
4838
4840
|
try {
|
|
4839
|
-
let r =
|
|
4841
|
+
let r = yl(t);
|
|
4840
4842
|
if (!r) {
|
|
4841
4843
|
e.isRebooking = !1;
|
|
4842
4844
|
return;
|
|
4843
4845
|
}
|
|
4844
|
-
|
|
4845
|
-
let i = new URL("api/rebooking-data",
|
|
4846
|
-
i.searchParams.set(
|
|
4846
|
+
bl(r);
|
|
4847
|
+
let i = new URL("api/rebooking-data", _l);
|
|
4848
|
+
i.searchParams.set(gl, r), i.searchParams.set("expoKey", e.expo);
|
|
4847
4849
|
let a = await fetch(i.href);
|
|
4848
4850
|
if (a.ok) {
|
|
4849
4851
|
var n;
|
|
4850
|
-
|
|
4852
|
+
xl(e, (n = (await a.json()).exhibitors) == null ? [] : n);
|
|
4851
4853
|
}
|
|
4852
4854
|
e.isRebooking = a.ok;
|
|
4853
4855
|
} catch (e) {
|
|
4854
4856
|
console.error(e);
|
|
4855
4857
|
}
|
|
4856
4858
|
}
|
|
4857
|
-
function vl(e) {
|
|
4858
|
-
return (e ? new URLSearchParams(decodeURIComponent(e)).get(hl) : null) || (typeof sessionStorage < "u" ? sessionStorage.getItem(hl) : null);
|
|
4859
|
-
}
|
|
4860
4859
|
function yl(e) {
|
|
4861
|
-
typeof sessionStorage < "u"
|
|
4860
|
+
return (e ? new URLSearchParams(decodeURIComponent(e)).get(gl) : null) || (typeof sessionStorage < "u" ? sessionStorage.getItem(gl) : null);
|
|
4862
4861
|
}
|
|
4863
|
-
function bl(e
|
|
4862
|
+
function bl(e) {
|
|
4863
|
+
typeof sessionStorage < "u" && sessionStorage.setItem(gl, e);
|
|
4864
|
+
}
|
|
4865
|
+
function xl(e, t) {
|
|
4864
4866
|
var n;
|
|
4865
4867
|
let r = (n = e.exhibitors) == null ? [] : n;
|
|
4866
4868
|
for (let e of t) {
|
|
@@ -4870,8 +4872,8 @@ function bl(e, t) {
|
|
|
4870
4872
|
}
|
|
4871
4873
|
//#endregion
|
|
4872
4874
|
//#region ../config/src/lib/url-codec.ts
|
|
4873
|
-
function
|
|
4874
|
-
let n =
|
|
4875
|
+
function Sl(e, t) {
|
|
4876
|
+
let n = Cl(e, t), r = [], i = e.safeParse(n);
|
|
4875
4877
|
for (; !i.success;) {
|
|
4876
4878
|
let t = /* @__PURE__ */ new Set();
|
|
4877
4879
|
for (let e of i.error.issues) {
|
|
@@ -4888,39 +4890,39 @@ function xl(e, t) {
|
|
|
4888
4890
|
invalidKeys: r
|
|
4889
4891
|
};
|
|
4890
4892
|
}
|
|
4891
|
-
function
|
|
4892
|
-
return Go(Ho(e),
|
|
4893
|
-
}
|
|
4894
|
-
function Cl(e) {
|
|
4895
|
-
return wl(jl(e));
|
|
4893
|
+
function Cl(e, t) {
|
|
4894
|
+
return Go(Ho(e), Tl(Ml(t)));
|
|
4896
4895
|
}
|
|
4897
4896
|
function wl(e) {
|
|
4897
|
+
return Tl(Ml(e));
|
|
4898
|
+
}
|
|
4899
|
+
function Tl(e) {
|
|
4898
4900
|
let t = {};
|
|
4899
|
-
for (let [n, r] of e)
|
|
4901
|
+
for (let [n, r] of e) Al(t, El(n), r);
|
|
4900
4902
|
return t;
|
|
4901
4903
|
}
|
|
4902
|
-
function
|
|
4904
|
+
function El(e) {
|
|
4903
4905
|
return e.replace(/\]/g, "").split("[");
|
|
4904
4906
|
}
|
|
4905
|
-
var
|
|
4907
|
+
var Dl = /* @__PURE__ */ new Set([
|
|
4906
4908
|
"__proto__",
|
|
4907
4909
|
"constructor",
|
|
4908
4910
|
"prototype"
|
|
4909
|
-
]),
|
|
4910
|
-
function
|
|
4911
|
-
return /^\d+$/.test(e) && Number(e) <=
|
|
4911
|
+
]), Ol = 20;
|
|
4912
|
+
function kl(e) {
|
|
4913
|
+
return /^\d+$/.test(e) && Number(e) <= Ol;
|
|
4912
4914
|
}
|
|
4913
|
-
function
|
|
4915
|
+
function Al(e, t, n) {
|
|
4914
4916
|
let r = e, i = "", a = e;
|
|
4915
4917
|
for (let e = 0; e < t.length; e++) {
|
|
4916
4918
|
let o = t[e];
|
|
4917
|
-
if (
|
|
4919
|
+
if (Dl.has(o)) return;
|
|
4918
4920
|
let s = e === t.length - 1, c = o === "";
|
|
4919
|
-
if (Array.isArray(a) && !c && !
|
|
4921
|
+
if (Array.isArray(a) && !c && !kl(o) && (a = jl(a, r, i)), s) {
|
|
4920
4922
|
c && Array.isArray(a) ? a.push(n) : a[o] = n;
|
|
4921
4923
|
return;
|
|
4922
4924
|
}
|
|
4923
|
-
let l = t[e + 1], u = l === "" ||
|
|
4925
|
+
let l = t[e + 1], u = l === "" || kl(l);
|
|
4924
4926
|
if (c && Array.isArray(a)) {
|
|
4925
4927
|
let e = u ? [] : {};
|
|
4926
4928
|
a.push(e), r = a, i = String(a.length - 1), a = e;
|
|
@@ -4930,25 +4932,25 @@ function kl(e, t, n) {
|
|
|
4930
4932
|
}
|
|
4931
4933
|
}
|
|
4932
4934
|
}
|
|
4933
|
-
function
|
|
4935
|
+
function jl(e, t, n) {
|
|
4934
4936
|
let r = {};
|
|
4935
4937
|
return e.forEach((e, t) => {
|
|
4936
4938
|
r[t] = e;
|
|
4937
4939
|
}), t[n] = r, r;
|
|
4938
4940
|
}
|
|
4939
|
-
function
|
|
4941
|
+
function Ml(e) {
|
|
4940
4942
|
if (e instanceof URL) return e.searchParams;
|
|
4941
4943
|
let t = e.indexOf("?"), n = t >= 0 ? e.slice(t + 1) : e, r = n.indexOf("#");
|
|
4942
4944
|
return new URLSearchParams(r >= 0 ? n.slice(0, r) : n);
|
|
4943
4945
|
}
|
|
4944
4946
|
//#endregion
|
|
4945
4947
|
//#region ../config/src/lib/url-intents.ts
|
|
4946
|
-
var
|
|
4947
|
-
function
|
|
4948
|
+
var Nl = new Set(Ls.options.map((e) => e.shape.name.value));
|
|
4949
|
+
function Pl(e) {
|
|
4948
4950
|
let t = [], n = [];
|
|
4949
|
-
for (let [r, i] of Object.entries(
|
|
4950
|
-
if (!
|
|
4951
|
-
let e = Array.isArray(i) ? i : [i], a = (i === "" ? [[]] : [e, [e]]).map((e) =>
|
|
4951
|
+
for (let [r, i] of Object.entries(wl(e))) {
|
|
4952
|
+
if (!Nl.has(r)) continue;
|
|
4953
|
+
let e = Array.isArray(i) ? i : [i], a = (i === "" ? [[]] : [e, [e]]).map((e) => Ls.safeParse(Go(Ho(Ls), {
|
|
4952
4954
|
name: r,
|
|
4953
4955
|
args: e
|
|
4954
4956
|
}))).find((e) => e.success);
|
|
@@ -4961,31 +4963,31 @@ function Nl(e) {
|
|
|
4961
4963
|
}
|
|
4962
4964
|
//#endregion
|
|
4963
4965
|
//#region ../config/src/lib/validate-flag.ts
|
|
4964
|
-
function
|
|
4966
|
+
function Fl(e, t) {
|
|
4965
4967
|
var n;
|
|
4966
|
-
let r = e === void 0 ? void 0 :
|
|
4968
|
+
let r = e === void 0 ? void 0 : Sl(nc, e).value.validateSchema, i = t ? Yo(rc, t).validateSchema : void 0;
|
|
4967
4969
|
return (n = r == null ? i : r) != null && n;
|
|
4968
4970
|
}
|
|
4969
4971
|
//#endregion
|
|
4970
4972
|
//#region ../config/src/lib/validate-timing.ts
|
|
4971
|
-
var
|
|
4972
|
-
function
|
|
4973
|
-
|
|
4973
|
+
var Il = (0, Ro.default)("efp:config:validate"), Ll = 0, Rl = 0, zl = -Infinity, Bl = !1;
|
|
4974
|
+
function Vl() {
|
|
4975
|
+
zl = performance.now(), Il("%d validations, %sms total since page load", Rl, Ll.toFixed(1));
|
|
4974
4976
|
}
|
|
4975
|
-
function
|
|
4976
|
-
if (!
|
|
4977
|
+
function Hl(e) {
|
|
4978
|
+
if (!Il.enabled) return e();
|
|
4977
4979
|
let t = performance.now();
|
|
4978
4980
|
try {
|
|
4979
4981
|
return e();
|
|
4980
4982
|
} finally {
|
|
4981
|
-
|
|
4982
|
-
let e = performance.now() -
|
|
4983
|
-
if (e >= 1e3)
|
|
4984
|
-
else if (!
|
|
4983
|
+
Ll += performance.now() - t, Rl++;
|
|
4984
|
+
let e = performance.now() - zl;
|
|
4985
|
+
if (e >= 1e3) Vl();
|
|
4986
|
+
else if (!Bl) {
|
|
4985
4987
|
var n;
|
|
4986
|
-
|
|
4988
|
+
Bl = !0;
|
|
4987
4989
|
let t = setTimeout(() => {
|
|
4988
|
-
|
|
4990
|
+
Bl = !1, Vl();
|
|
4989
4991
|
}, 1e3 - e);
|
|
4990
4992
|
(n = t.unref) == null || n.call(t);
|
|
4991
4993
|
}
|
|
@@ -4993,39 +4995,39 @@ function Vl(e) {
|
|
|
4993
4995
|
}
|
|
4994
4996
|
//#endregion
|
|
4995
4997
|
//#region ../config/src/lib/visit-resources.ts
|
|
4996
|
-
var
|
|
4997
|
-
function
|
|
4998
|
-
|
|
4998
|
+
var Ul = !1;
|
|
4999
|
+
function Wl(e) {
|
|
5000
|
+
Ul = e;
|
|
4999
5001
|
}
|
|
5000
|
-
function
|
|
5001
|
-
return
|
|
5002
|
+
function Gl(e, t) {
|
|
5003
|
+
return Ul ? Hl(() => e.parse(t)) : ac(t);
|
|
5002
5004
|
}
|
|
5003
|
-
function
|
|
5005
|
+
function Kl(e, t, n) {
|
|
5004
5006
|
let r = async (e, r) => {
|
|
5005
|
-
let i =
|
|
5007
|
+
let i = Gl(t, e);
|
|
5006
5008
|
n == null || n(i);
|
|
5007
|
-
let a =
|
|
5008
|
-
return await
|
|
5009
|
+
let a = Zc(r), o = Xc(a);
|
|
5010
|
+
return await ql(t, i, { asset: (e) => o ? Yc(e, a) : e }), i;
|
|
5009
5011
|
};
|
|
5010
5012
|
return {
|
|
5011
5013
|
...e,
|
|
5012
5014
|
process: r
|
|
5013
5015
|
};
|
|
5014
5016
|
}
|
|
5015
|
-
async function
|
|
5016
|
-
await
|
|
5017
|
+
async function ql(e, t, n, r) {
|
|
5018
|
+
await Jl(Ho(e), t, Xl, n, r);
|
|
5017
5019
|
}
|
|
5018
|
-
async function
|
|
5020
|
+
async function Jl(e, t, n, r, i) {
|
|
5019
5021
|
var a;
|
|
5020
5022
|
if (t == null) return;
|
|
5021
5023
|
let o = (a = e == null ? void 0 : e.anyOf) == null ? e == null ? void 0 : e.oneOf : a;
|
|
5022
|
-
if (o) return
|
|
5023
|
-
if (
|
|
5024
|
+
if (o) return Jl(o.find((e) => Wo(e, t)), t, n, r, i);
|
|
5025
|
+
if (Yl(t)) {
|
|
5024
5026
|
if (!r.document || t.$ref.startsWith("/")) return;
|
|
5025
5027
|
let a = t.$ref;
|
|
5026
5028
|
try {
|
|
5027
|
-
let o = e ? Uo(e) : void 0, s = { document:
|
|
5028
|
-
o && await
|
|
5029
|
+
let o = e ? Uo(e) : void 0, s = { document: ac(Wc(t) ? Uc(t) : await Hc(o ? Kl({ $ref: a }, o) : { $ref: a }, { signal: i == null ? void 0 : i.signal })) };
|
|
5030
|
+
o && await Jl(Ho(o), s.document, (e) => {
|
|
5029
5031
|
s.document = e;
|
|
5030
5032
|
}, r, i), n({ $ref: await r.document(a, s.document) });
|
|
5031
5033
|
} catch (e) {
|
|
@@ -5038,17 +5040,17 @@ async function ql(e, t, n, r, i) {
|
|
|
5038
5040
|
if (e != null && e.asset && t) n(await r.asset(t, e.optionalAsset));
|
|
5039
5041
|
else if (e != null && e.svgAsset) {
|
|
5040
5042
|
let e = /* @__PURE__ */ new Map();
|
|
5041
|
-
for (let n of
|
|
5042
|
-
n(
|
|
5043
|
+
for (let n of nl(t)) e.set(n, await r.asset(n));
|
|
5044
|
+
n(rl(t, (t) => {
|
|
5043
5045
|
var n;
|
|
5044
5046
|
return (n = e.get(t)) == null ? t : n;
|
|
5045
5047
|
}));
|
|
5046
5048
|
} else if (e != null && e.cssAsset) {
|
|
5047
5049
|
let e = t, i = /* @__PURE__ */ new Set();
|
|
5048
|
-
r.stylesheetText && ({css: e, external: i} = await
|
|
5050
|
+
r.stylesheetText && ({css: e, external: i} = await cl(e, r.stylesheetText.bind(r)));
|
|
5049
5051
|
let a = /* @__PURE__ */ new Map();
|
|
5050
|
-
for (let t of
|
|
5051
|
-
n(
|
|
5052
|
+
for (let t of al(e)) i.has(t) || /^[a-z][a-z0-9+.-]*:/i.test(t) && a.set(t, await r.asset(t));
|
|
5053
|
+
n(ol(e, (e) => {
|
|
5052
5054
|
var t;
|
|
5053
5055
|
return (t = a.get(e)) == null ? e : t;
|
|
5054
5056
|
}));
|
|
@@ -5056,7 +5058,7 @@ async function ql(e, t, n, r, i) {
|
|
|
5056
5058
|
return;
|
|
5057
5059
|
}
|
|
5058
5060
|
if (Array.isArray(t)) {
|
|
5059
|
-
for (let n = 0; n < t.length; n++) await
|
|
5061
|
+
for (let n = 0; n < t.length; n++) await Jl(e == null ? void 0 : e.items, t[n], (e) => {
|
|
5060
5062
|
t[n] = e;
|
|
5061
5063
|
}, r, i);
|
|
5062
5064
|
return;
|
|
@@ -5065,118 +5067,118 @@ async function ql(e, t, n, r, i) {
|
|
|
5065
5067
|
let n = t, a = typeof (e == null ? void 0 : e.additionalProperties) == "object" ? e.additionalProperties : void 0;
|
|
5066
5068
|
for (let t of Object.keys(n)) {
|
|
5067
5069
|
var s, c;
|
|
5068
|
-
await
|
|
5070
|
+
await Jl((s = e == null || (c = e.properties) == null ? void 0 : c[t]) == null ? a : s, n[t], (e) => {
|
|
5069
5071
|
e === void 0 ? delete n[t] : n[t] = e;
|
|
5070
5072
|
}, r, i);
|
|
5071
5073
|
}
|
|
5072
5074
|
}
|
|
5073
5075
|
}
|
|
5074
|
-
function
|
|
5076
|
+
function Yl(e) {
|
|
5075
5077
|
return typeof e == "object" && !!e && "$ref" in e && typeof e.$ref == "string";
|
|
5076
5078
|
}
|
|
5077
|
-
function
|
|
5079
|
+
function Xl() {
|
|
5078
5080
|
throw Error("visitResources: the top-level value must be an object or array");
|
|
5079
5081
|
}
|
|
5080
5082
|
//#endregion
|
|
5081
5083
|
//#region ../config/src/lib/load-config.ts
|
|
5082
|
-
var
|
|
5083
|
-
async function
|
|
5084
|
-
let i = { ...
|
|
5085
|
-
|
|
5084
|
+
var Zl = (0, Ro.default)("efp:config");
|
|
5085
|
+
async function Ql(e, t, n, r) {
|
|
5086
|
+
let i = { ...ic };
|
|
5087
|
+
Wl(Fl(n, r)), e = Gl(ec, await Hc(e));
|
|
5086
5088
|
let { legacyDataUrlBase: a, legacyDataVersion: o, ...s } = e;
|
|
5087
|
-
|
|
5089
|
+
cu(s), lu(i, s), t = tc.parse(t), cu(t);
|
|
5088
5090
|
let c = String(Date.now());
|
|
5089
5091
|
if (a) {
|
|
5090
|
-
if (
|
|
5092
|
+
if (au()) Zl("loadConfig", "designer referrer — cache-busting with a timestamp");
|
|
5091
5093
|
else try {
|
|
5092
|
-
c = (await
|
|
5094
|
+
c = (await Hc({ $ref: `${a}version.json` })).version;
|
|
5093
5095
|
} catch {
|
|
5094
|
-
|
|
5096
|
+
Zl("loadConfig", "no version.json found at", a);
|
|
5095
5097
|
}
|
|
5096
|
-
i.fpSvgJsRef != null || (i.fpSvgJsRef =
|
|
5098
|
+
i.fpSvgJsRef != null || (i.fpSvgJsRef = ou(a, "fp.svg.js", c)), i.wfDataJsRef != null || (i.wfDataJsRef = ou(a, "wf.data.js", c));
|
|
5097
5099
|
}
|
|
5098
|
-
i.fpSvgJsRef && (i.fpSvgJsRef =
|
|
5100
|
+
i.fpSvgJsRef && (i.fpSvgJsRef = Kl(i.fpSvgJsRef, As)), i.wfDataJsRef && (i.wfDataJsRef = Kl(i.wfDataJsRef, Ks));
|
|
5099
5101
|
let l = {};
|
|
5100
|
-
for (let [e, t] of Object.entries(i.fpSvgLayerJsRefs)) l[e] =
|
|
5102
|
+
for (let [e, t] of Object.entries(i.fpSvgLayerJsRefs)) l[e] = ru(t, e);
|
|
5101
5103
|
i.fpSvgLayerJsRefs = l;
|
|
5102
5104
|
let [u, d] = await Promise.all([
|
|
5103
|
-
a ?
|
|
5104
|
-
i.fpSvgJsRef ?
|
|
5105
|
-
|
|
5105
|
+
a ? $l(a, c) : null,
|
|
5106
|
+
i.fpSvgJsRef ? tu(i.fpSvgJsRef, a) : null,
|
|
5107
|
+
nu(i.wfDataJsRef)
|
|
5106
5108
|
]);
|
|
5107
5109
|
if (u) {
|
|
5108
5110
|
let { flags: e, legacyDataUrlBase: t, legacyDataVersion: n, fpSvgJsRef: r, wfDataJsRef: a, fpSvgLayerJsRefs: o, ...s } = u;
|
|
5109
|
-
e && (
|
|
5111
|
+
e && (cu(e), lu(i, e)), cu(s), lu(i, s);
|
|
5110
5112
|
}
|
|
5111
|
-
if (d && (i.fpSvgJsRef = d.ref, !Object.keys(i.fpSvgLayerJsRefs).length && a && (i.fpSvgLayerJsRefs =
|
|
5112
|
-
let { viewerMode: e, previewMode: t, uiScale: n, ...a } = Yo(
|
|
5113
|
-
|
|
5113
|
+
if (d && (i.fpSvgJsRef = d.ref, !Object.keys(i.fpSvgLayerJsRefs).length && a && (i.fpSvgLayerJsRefs = iu(d.payload, a, c))), lu(i, t), r) {
|
|
5114
|
+
let { viewerMode: e, previewMode: t, uiScale: n, ...a } = Yo(rc, r);
|
|
5115
|
+
lu(i, a);
|
|
5114
5116
|
}
|
|
5115
5117
|
if (n !== void 0 && !i.ignoreQuery) {
|
|
5116
|
-
let { value: e, invalidKeys: t } =
|
|
5118
|
+
let { value: e, invalidKeys: t } = Sl(nc, n), r = Pl(n);
|
|
5117
5119
|
if (r.intents.length) {
|
|
5118
5120
|
var f;
|
|
5119
5121
|
e.intents = [...(f = e.intents) == null ? [] : f, ...r.intents];
|
|
5120
5122
|
}
|
|
5121
|
-
t.push(...r.invalidKeys), t.length &&
|
|
5123
|
+
t.push(...r.invalidKeys), t.length && Zl("loadConfig", "ignoring invalid URL config params:", t), cu(e), lu(i, e);
|
|
5122
5124
|
}
|
|
5123
|
-
return
|
|
5125
|
+
return ml(i, a), await vl(i, i.ignoreQuery ? void 0 : n), delete i.validateSchema, oc(i), i;
|
|
5124
5126
|
}
|
|
5125
|
-
async function
|
|
5127
|
+
async function $l(e, t) {
|
|
5126
5128
|
var n;
|
|
5127
|
-
let r = await
|
|
5128
|
-
return r.__data ||
|
|
5129
|
+
let r = await Hc(Kl(ou(e, "data.js", t), $s));
|
|
5130
|
+
return r.__data || Zl("loadLegacyDataJs", "no __data global in data.js at", e), ac((n = r.__data) == null ? {} : n);
|
|
5129
5131
|
}
|
|
5130
|
-
var
|
|
5131
|
-
async function
|
|
5132
|
-
let n = e, r = await
|
|
5133
|
-
for (let i = 1; r.__fpPending && !r.__fp; i++)
|
|
5132
|
+
var eu = 2e3;
|
|
5133
|
+
async function tu(e, t) {
|
|
5134
|
+
let n = e, r = await Hc(n);
|
|
5135
|
+
for (let i = 1; r.__fpPending && !r.__fp; i++) Zl("loadLegacyFpSvgJs", "plan is still generating, retry", i), await su(eu), n = t ? Kl(ou(t, "fp.svg.js", String(i)), As) : e, r = await Hc(n, { forceFetch: !0 });
|
|
5134
5136
|
return {
|
|
5135
5137
|
payload: r,
|
|
5136
5138
|
ref: n
|
|
5137
5139
|
};
|
|
5138
5140
|
}
|
|
5139
|
-
async function
|
|
5141
|
+
async function nu(e) {
|
|
5140
5142
|
if (e) try {
|
|
5141
|
-
await
|
|
5143
|
+
await Hc(e);
|
|
5142
5144
|
} catch (e) {
|
|
5143
|
-
|
|
5145
|
+
Zl("prefetchWfData", "wf.data.js not loaded, wayfinding stays off", e);
|
|
5144
5146
|
}
|
|
5145
5147
|
}
|
|
5146
|
-
function
|
|
5147
|
-
return
|
|
5148
|
+
function ru(e, t) {
|
|
5149
|
+
return Kl(e, Os, (e) => Jc(e, t));
|
|
5148
5150
|
}
|
|
5149
|
-
function
|
|
5151
|
+
function iu(e, t, n) {
|
|
5150
5152
|
var r;
|
|
5151
5153
|
let i = {};
|
|
5152
|
-
for (let a of (r = e.__fpLayers) == null ? [] : r) a.name !== e.__fpDefaultLayer && (i[a.name] =
|
|
5154
|
+
for (let a of (r = e.__fpLayers) == null ? [] : r) a.name !== e.__fpDefaultLayer && (i[a.name] = ru(ou(t, `fp.svg.${a.name}.js`, n), a.name));
|
|
5153
5155
|
return i;
|
|
5154
5156
|
}
|
|
5155
|
-
function
|
|
5157
|
+
function au() {
|
|
5156
5158
|
return typeof document > "u" || !document.referrer ? !1 : document.referrer.includes("app.expofp.com") || document.referrer.includes("app-show.expofp.com");
|
|
5157
5159
|
}
|
|
5158
|
-
function
|
|
5160
|
+
function ou(e, t, n) {
|
|
5159
5161
|
let r = `${e}${t}`;
|
|
5160
5162
|
return { $ref: n ? `${r}?v=${n}` : r };
|
|
5161
5163
|
}
|
|
5162
|
-
function
|
|
5164
|
+
function su(e) {
|
|
5163
5165
|
return new Promise((t) => setTimeout(t, e));
|
|
5164
5166
|
}
|
|
5165
|
-
function
|
|
5167
|
+
function cu(e) {
|
|
5166
5168
|
e.allowConsent !== void 0 && (e.consent != null || (e.consent = e.allowConsent ? "granted" : "denied"), delete e.allowConsent);
|
|
5167
5169
|
}
|
|
5168
|
-
function
|
|
5170
|
+
function lu(e, t) {
|
|
5169
5171
|
for (let [n, r] of Object.entries(t)) r !== void 0 && (e[n] = r);
|
|
5170
5172
|
}
|
|
5171
5173
|
//#endregion
|
|
5172
5174
|
//#region src/constants.ts
|
|
5173
|
-
var
|
|
5175
|
+
var uu = "___visibility", du = "data-preview-mode", fu = "booths", pu = "kiosk", mu = "setkiosk", hu = "debug", gu = "efp-debugMode", _u = "pathway", vu = 1e3, yu = "language", bu = "efp-viewerMode", xu = "___viewer_mode", Su = "efp-previewMode", Cu = "___preview_mode", wu = "efp-uiScale", Tu = "___ui-scale", Eu = "--expofp-font-face", Du = "--expofp-booth-main-weight", Ou = "--expofp-booth-details-weight", ku = "--expofp-exhibitor-main-weight", Au = "--expofp-exhibitor-details-weight", ju = "--expofp-booth-special-weight", Mu = "efp-compass-permission-granted", Nu = new URL(
|
|
5174
5176
|
/* @vite-ignore */
|
|
5175
5177
|
".",
|
|
5176
5178
|
import.meta.url
|
|
5177
5179
|
).href;
|
|
5178
|
-
|
|
5179
|
-
var
|
|
5180
|
+
Nu.endsWith("/") || (Nu += "/");
|
|
5181
|
+
var Pu = Nu, Fu = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
|
|
5180
5182
|
(function() {
|
|
5181
5183
|
function e(e, t) {
|
|
5182
5184
|
document.addEventListener ? e.addEventListener("scroll", t, !1) : e.attachEvent("scroll", t);
|
|
@@ -5276,17 +5278,17 @@ var Nu = Mu, Pu = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
|
|
|
5276
5278
|
});
|
|
5277
5279
|
}, typeof t == "object" ? t.exports = s : (window.FontFaceObserver = s, window.FontFaceObserver.prototype.load = s.prototype.load);
|
|
5278
5280
|
})();
|
|
5279
|
-
})))(), 1),
|
|
5281
|
+
})))(), 1), Iu = /* @__PURE__ */ e(r(), 1), Lu = window.navigator.userAgent, Ru = Iu.default.getParser(Lu);
|
|
5280
5282
|
//#endregion
|
|
5281
5283
|
//#region src/tools/loaders.ts
|
|
5282
|
-
async function
|
|
5284
|
+
async function zu(e) {
|
|
5283
5285
|
return await (await fetch(e, { credentials: "same-origin" })).json();
|
|
5284
5286
|
}
|
|
5285
|
-
function
|
|
5287
|
+
function Bu(e, t) {
|
|
5286
5288
|
let n = document.createElement("link");
|
|
5287
5289
|
n.rel = "stylesheet", n.href = e, n.setAttribute("fetchpriority", "high"), t.appendChild(n);
|
|
5288
5290
|
}
|
|
5289
|
-
async function
|
|
5291
|
+
async function Vu(e, t, n) {
|
|
5290
5292
|
var r;
|
|
5291
5293
|
n = {
|
|
5292
5294
|
style: "normal",
|
|
@@ -5294,8 +5296,8 @@ async function Bu(e, t, n) {
|
|
|
5294
5296
|
...n || {}
|
|
5295
5297
|
};
|
|
5296
5298
|
let i = `url("${t}")`;
|
|
5297
|
-
if (!window.FontFace) return e.startsWith("Font Awesome") ||
|
|
5298
|
-
e.indexOf(" ") !== -1 && ((r =
|
|
5299
|
+
if (!window.FontFace) return e.startsWith("Font Awesome") || Hu(e, i, n), Promise.resolve();
|
|
5300
|
+
e.indexOf(" ") !== -1 && ((r = Ru.getEngine()) == null ? void 0 : r.name) === "Gecko" && (e = `'${e}'`);
|
|
5299
5301
|
let a;
|
|
5300
5302
|
try {
|
|
5301
5303
|
a = new FontFace(e, i, n);
|
|
@@ -5304,17 +5306,17 @@ async function Bu(e, t, n) {
|
|
|
5304
5306
|
}
|
|
5305
5307
|
return document.fonts.add(a), a.load();
|
|
5306
5308
|
}
|
|
5307
|
-
function
|
|
5309
|
+
function Hu(e, t, n) {
|
|
5308
5310
|
let r = document.createElement("style");
|
|
5309
5311
|
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);
|
|
5310
5312
|
let i = document.createElement("div");
|
|
5311
5313
|
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);
|
|
5312
5314
|
}
|
|
5313
|
-
async function
|
|
5315
|
+
async function Uu(e) {
|
|
5314
5316
|
var t;
|
|
5315
5317
|
let n = getComputedStyle(document.documentElement).getPropertyValue("--expofp-font-face") || ((t = e.match(/--expofp-font-face:\s*([^;]*)/)) == null ? void 0 : t[1]);
|
|
5316
5318
|
if (!n) return;
|
|
5317
|
-
let r = n.replace(/"/g, "").split(", ").map((e) => e.trim()).map((e) => new
|
|
5319
|
+
let r = n.replace(/"/g, "").split(", ").map((e) => e.trim()).map((e) => new Fu.default(e).load());
|
|
5318
5320
|
return Promise.allSettled(r);
|
|
5319
5321
|
}
|
|
5320
5322
|
//#endregion
|
|
@@ -5329,7 +5331,7 @@ function U(e) {
|
|
|
5329
5331
|
}
|
|
5330
5332
|
//#endregion
|
|
5331
5333
|
//#region ../../node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
|
5332
|
-
function
|
|
5334
|
+
function Wu(e, t) {
|
|
5333
5335
|
if (U(e) != "object" || !e) return e;
|
|
5334
5336
|
var n = e[Symbol.toPrimitive];
|
|
5335
5337
|
if (n !== void 0) {
|
|
@@ -5341,14 +5343,14 @@ function Uu(e, t) {
|
|
|
5341
5343
|
}
|
|
5342
5344
|
//#endregion
|
|
5343
5345
|
//#region ../../node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
|
5344
|
-
function
|
|
5345
|
-
var t =
|
|
5346
|
+
function Gu(e) {
|
|
5347
|
+
var t = Wu(e, "string");
|
|
5346
5348
|
return U(t) == "symbol" ? t : t + "";
|
|
5347
5349
|
}
|
|
5348
5350
|
//#endregion
|
|
5349
5351
|
//#region ../../node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
5350
|
-
function
|
|
5351
|
-
return (t =
|
|
5352
|
+
function Ku(e, t, n) {
|
|
5353
|
+
return (t = Gu(t)) in e ? Object.defineProperty(e, t, {
|
|
5352
5354
|
value: n,
|
|
5353
5355
|
enumerable: !0,
|
|
5354
5356
|
configurable: !0,
|
|
@@ -5363,67 +5365,67 @@ function W(e) {
|
|
|
5363
5365
|
typeof Object.getOwnPropertySymbols == "function" && r.push.apply(r, Object.getOwnPropertySymbols(n).filter(function(e) {
|
|
5364
5366
|
return Object.getOwnPropertyDescriptor(n, e).enumerable;
|
|
5365
5367
|
})), r.forEach(function(t) {
|
|
5366
|
-
|
|
5368
|
+
Ku(e, t, n[t]);
|
|
5367
5369
|
});
|
|
5368
5370
|
}
|
|
5369
5371
|
return e;
|
|
5370
5372
|
}
|
|
5371
5373
|
//#endregion
|
|
5372
5374
|
//#region ../../node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
5373
|
-
function
|
|
5375
|
+
function qu(e, t) {
|
|
5374
5376
|
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
5375
5377
|
}
|
|
5376
5378
|
//#endregion
|
|
5377
5379
|
//#region ../../node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/createClass.js
|
|
5378
|
-
function
|
|
5380
|
+
function Ju(e, t) {
|
|
5379
5381
|
for (var n = 0; n < t.length; n++) {
|
|
5380
5382
|
var r = t[n];
|
|
5381
|
-
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e,
|
|
5383
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, Gu(r.key), r);
|
|
5382
5384
|
}
|
|
5383
5385
|
}
|
|
5384
|
-
function
|
|
5385
|
-
return t &&
|
|
5386
|
+
function Yu(e, t, n) {
|
|
5387
|
+
return t && Ju(e.prototype, t), n && Ju(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
5386
5388
|
}
|
|
5387
5389
|
//#endregion
|
|
5388
5390
|
//#region ../../node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
|
|
5389
|
-
function
|
|
5391
|
+
function Xu(e) {
|
|
5390
5392
|
if (e === void 0) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
5391
5393
|
return e;
|
|
5392
5394
|
}
|
|
5393
5395
|
//#endregion
|
|
5394
5396
|
//#region ../../node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
|
|
5395
|
-
function
|
|
5397
|
+
function Zu(e, t) {
|
|
5396
5398
|
if (t && (U(t) == "object" || typeof t == "function")) return t;
|
|
5397
5399
|
if (t !== void 0) throw TypeError("Derived constructors may only return object or undefined");
|
|
5398
|
-
return
|
|
5400
|
+
return Xu(e);
|
|
5399
5401
|
}
|
|
5400
5402
|
//#endregion
|
|
5401
5403
|
//#region ../../node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
|
|
5402
|
-
function
|
|
5403
|
-
return
|
|
5404
|
+
function Qu(e) {
|
|
5405
|
+
return Qu = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
|
|
5404
5406
|
return e.__proto__ || Object.getPrototypeOf(e);
|
|
5405
|
-
},
|
|
5407
|
+
}, Qu(e);
|
|
5406
5408
|
}
|
|
5407
5409
|
//#endregion
|
|
5408
5410
|
//#region ../../node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
5409
|
-
function
|
|
5410
|
-
return
|
|
5411
|
+
function $u(e, t) {
|
|
5412
|
+
return $u = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
|
|
5411
5413
|
return e.__proto__ = t, e;
|
|
5412
|
-
},
|
|
5414
|
+
}, $u(e, t);
|
|
5413
5415
|
}
|
|
5414
5416
|
//#endregion
|
|
5415
5417
|
//#region ../../node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/inherits.js
|
|
5416
|
-
function
|
|
5418
|
+
function ed(e, t) {
|
|
5417
5419
|
if (typeof t != "function" && t !== null) throw TypeError("Super expression must either be null or a function");
|
|
5418
5420
|
e.prototype = Object.create(t && t.prototype, { constructor: {
|
|
5419
5421
|
value: e,
|
|
5420
5422
|
writable: !0,
|
|
5421
5423
|
configurable: !0
|
|
5422
|
-
} }), Object.defineProperty(e, "prototype", { writable: !1 }), t &&
|
|
5424
|
+
} }), Object.defineProperty(e, "prototype", { writable: !1 }), t && $u(e, t);
|
|
5423
5425
|
}
|
|
5424
5426
|
//#endregion
|
|
5425
5427
|
//#region ../../node_modules/.pnpm/i18next@19.9.2/node_modules/i18next/dist/esm/i18next.js
|
|
5426
|
-
var
|
|
5428
|
+
var td = {
|
|
5427
5429
|
type: "logger",
|
|
5428
5430
|
log: function(e) {
|
|
5429
5431
|
this.output("log", e);
|
|
@@ -5437,17 +5439,17 @@ var ed = {
|
|
|
5437
5439
|
output: function(e, t) {
|
|
5438
5440
|
console && console[e] && console[e].apply(console, t);
|
|
5439
5441
|
}
|
|
5440
|
-
},
|
|
5442
|
+
}, nd = new (function() {
|
|
5441
5443
|
function e(t) {
|
|
5442
5444
|
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
5443
|
-
|
|
5445
|
+
qu(this, e), this.init(t, n);
|
|
5444
5446
|
}
|
|
5445
|
-
return
|
|
5447
|
+
return Yu(e, [
|
|
5446
5448
|
{
|
|
5447
5449
|
key: "init",
|
|
5448
5450
|
value: function(e) {
|
|
5449
5451
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
5450
|
-
this.prefix = t.prefix || "i18next:", this.logger = e ||
|
|
5452
|
+
this.prefix = t.prefix || "i18next:", this.logger = e || td, this.options = t, this.debug = t.debug;
|
|
5451
5453
|
}
|
|
5452
5454
|
},
|
|
5453
5455
|
{
|
|
@@ -5497,11 +5499,11 @@ var ed = {
|
|
|
5497
5499
|
}
|
|
5498
5500
|
}
|
|
5499
5501
|
]), e;
|
|
5500
|
-
}())(),
|
|
5502
|
+
}())(), rd = function() {
|
|
5501
5503
|
function e() {
|
|
5502
|
-
|
|
5504
|
+
qu(this, e), this.observers = {};
|
|
5503
5505
|
}
|
|
5504
|
-
return
|
|
5506
|
+
return Yu(e, [
|
|
5505
5507
|
{
|
|
5506
5508
|
key: "on",
|
|
5507
5509
|
value: function(e, t) {
|
|
@@ -5538,21 +5540,21 @@ var ed = {
|
|
|
5538
5540
|
}
|
|
5539
5541
|
]), e;
|
|
5540
5542
|
}();
|
|
5541
|
-
function
|
|
5543
|
+
function id() {
|
|
5542
5544
|
var e, t, n = new Promise(function(n, r) {
|
|
5543
5545
|
e = n, t = r;
|
|
5544
5546
|
});
|
|
5545
5547
|
return n.resolve = e, n.reject = t, n;
|
|
5546
5548
|
}
|
|
5547
|
-
function
|
|
5549
|
+
function ad(e) {
|
|
5548
5550
|
return e == null ? "" : "" + e;
|
|
5549
5551
|
}
|
|
5550
|
-
function
|
|
5552
|
+
function od(e, t, n) {
|
|
5551
5553
|
e.forEach(function(e) {
|
|
5552
5554
|
t[e] && (n[e] = t[e]);
|
|
5553
5555
|
});
|
|
5554
5556
|
}
|
|
5555
|
-
function
|
|
5557
|
+
function sd(e, t, n) {
|
|
5556
5558
|
function r(e) {
|
|
5557
5559
|
return e && e.indexOf("###") > -1 ? e.replace(/###/g, ".") : e;
|
|
5558
5560
|
}
|
|
@@ -5569,30 +5571,30 @@ function od(e, t, n) {
|
|
|
5569
5571
|
k: r(a.shift())
|
|
5570
5572
|
};
|
|
5571
5573
|
}
|
|
5572
|
-
function
|
|
5573
|
-
var r =
|
|
5574
|
+
function cd(e, t, n) {
|
|
5575
|
+
var r = sd(e, t, Object), i = r.obj, a = r.k;
|
|
5574
5576
|
i[a] = n;
|
|
5575
5577
|
}
|
|
5576
|
-
function
|
|
5577
|
-
var i =
|
|
5578
|
+
function ld(e, t, n, r) {
|
|
5579
|
+
var i = sd(e, t, Object), a = i.obj, o = i.k;
|
|
5578
5580
|
a[o] = a[o] || [], r && (a[o] = a[o].concat(n)), r || a[o].push(n);
|
|
5579
5581
|
}
|
|
5580
|
-
function
|
|
5581
|
-
var n =
|
|
5582
|
+
function ud(e, t) {
|
|
5583
|
+
var n = sd(e, t), r = n.obj, i = n.k;
|
|
5582
5584
|
if (r) return r[i];
|
|
5583
5585
|
}
|
|
5584
|
-
function ud(e, t, n) {
|
|
5585
|
-
var r = ld(e, n);
|
|
5586
|
-
return r === void 0 ? ld(t, n) : r;
|
|
5587
|
-
}
|
|
5588
5586
|
function dd(e, t, n) {
|
|
5589
|
-
|
|
5587
|
+
var r = ud(e, n);
|
|
5588
|
+
return r === void 0 ? ud(t, n) : r;
|
|
5589
|
+
}
|
|
5590
|
+
function fd(e, t, n) {
|
|
5591
|
+
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]) : fd(e[r], t[r], n) : e[r] = t[r]);
|
|
5590
5592
|
return e;
|
|
5591
5593
|
}
|
|
5592
|
-
function
|
|
5594
|
+
function pd(e) {
|
|
5593
5595
|
return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
|
|
5594
5596
|
}
|
|
5595
|
-
var
|
|
5597
|
+
var md = {
|
|
5596
5598
|
"&": "&",
|
|
5597
5599
|
"<": "<",
|
|
5598
5600
|
">": ">",
|
|
@@ -5600,21 +5602,21 @@ var pd = {
|
|
|
5600
5602
|
"'": "'",
|
|
5601
5603
|
"/": "/"
|
|
5602
5604
|
};
|
|
5603
|
-
function
|
|
5605
|
+
function hd(e) {
|
|
5604
5606
|
return typeof e == "string" ? e.replace(/[&<>"'\/]/g, function(e) {
|
|
5605
|
-
return
|
|
5607
|
+
return md[e];
|
|
5606
5608
|
}) : e;
|
|
5607
5609
|
}
|
|
5608
|
-
var
|
|
5609
|
-
|
|
5610
|
+
var gd = typeof window < "u" && window.navigator && window.navigator.userAgent && window.navigator.userAgent.indexOf("MSIE") > -1, _d = function(e) {
|
|
5611
|
+
ed(t, e);
|
|
5610
5612
|
function t(e) {
|
|
5611
5613
|
var n, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
5612
5614
|
ns: ["translation"],
|
|
5613
5615
|
defaultNS: "translation"
|
|
5614
5616
|
};
|
|
5615
|
-
return
|
|
5617
|
+
return qu(this, t), n = Zu(this, Qu(t).call(this)), gd && rd.call(Xu(n)), n.data = e || {}, n.options = r, n.options.keySeparator === void 0 && (n.options.keySeparator = "."), n;
|
|
5616
5618
|
}
|
|
5617
|
-
return
|
|
5619
|
+
return Yu(t, [
|
|
5618
5620
|
{
|
|
5619
5621
|
key: "addNamespaces",
|
|
5620
5622
|
value: function(e) {
|
|
@@ -5632,7 +5634,7 @@ var hd = typeof window < "u" && window.navigator && window.navigator.userAgent &
|
|
|
5632
5634
|
key: "getResource",
|
|
5633
5635
|
value: function(e, t, n) {
|
|
5634
5636
|
var r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, i = r.keySeparator === void 0 ? this.options.keySeparator : r.keySeparator, a = [e, t];
|
|
5635
|
-
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(".")),
|
|
5637
|
+
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(".")), ud(this.data, a);
|
|
5636
5638
|
}
|
|
5637
5639
|
},
|
|
5638
5640
|
{
|
|
@@ -5641,7 +5643,7 @@ var hd = typeof window < "u" && window.navigator && window.navigator.userAgent &
|
|
|
5641
5643
|
var i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : { silent: !1 }, a = this.options.keySeparator;
|
|
5642
5644
|
a === void 0 && (a = ".");
|
|
5643
5645
|
var o = [e, t];
|
|
5644
|
-
n && (o = o.concat(a ? n.split(a) : n)), e.indexOf(".") > -1 && (o = e.split("."), r = t, t = o[1]), this.addNamespaces(t),
|
|
5646
|
+
n && (o = o.concat(a ? n.split(a) : n)), e.indexOf(".") > -1 && (o = e.split("."), r = t, t = o[1]), this.addNamespaces(t), cd(this.data, o, r), i.silent || this.emit("added", e, t, n, r);
|
|
5645
5647
|
}
|
|
5646
5648
|
},
|
|
5647
5649
|
{
|
|
@@ -5657,8 +5659,8 @@ var hd = typeof window < "u" && window.navigator && window.navigator.userAgent &
|
|
|
5657
5659
|
value: function(e, t, n, r, i) {
|
|
5658
5660
|
var a = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : { silent: !1 }, o = [e, t];
|
|
5659
5661
|
e.indexOf(".") > -1 && (o = e.split("."), r = n, n = t, t = o[1]), this.addNamespaces(t);
|
|
5660
|
-
var s =
|
|
5661
|
-
r ?
|
|
5662
|
+
var s = ud(this.data, o) || {};
|
|
5663
|
+
r ? fd(s, n, i) : s = W({}, s, n), cd(this.data, o, s), a.silent || this.emit("added", e, t, n);
|
|
5662
5664
|
}
|
|
5663
5665
|
},
|
|
5664
5666
|
{
|
|
@@ -5692,7 +5694,7 @@ var hd = typeof window < "u" && window.navigator && window.navigator.userAgent &
|
|
|
5692
5694
|
}
|
|
5693
5695
|
}
|
|
5694
5696
|
]), t;
|
|
5695
|
-
}(
|
|
5697
|
+
}(rd), vd = {
|
|
5696
5698
|
processors: {},
|
|
5697
5699
|
addPostProcessor: function(e) {
|
|
5698
5700
|
this.processors[e.name] = e;
|
|
@@ -5703,11 +5705,11 @@ var hd = typeof window < "u" && window.navigator && window.navigator.userAgent &
|
|
|
5703
5705
|
a.processors[e] && (t = a.processors[e].process(t, n, r, i));
|
|
5704
5706
|
}), t;
|
|
5705
5707
|
}
|
|
5706
|
-
},
|
|
5707
|
-
|
|
5708
|
+
}, yd = {}, bd = function(e) {
|
|
5709
|
+
ed(t, e);
|
|
5708
5710
|
function t(e) {
|
|
5709
5711
|
var n, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
5710
|
-
return
|
|
5712
|
+
return qu(this, t), n = Zu(this, Qu(t).call(this)), gd && rd.call(Xu(n)), od([
|
|
5711
5713
|
"resourceStore",
|
|
5712
5714
|
"languageUtils",
|
|
5713
5715
|
"pluralResolver",
|
|
@@ -5715,9 +5717,9 @@ var hd = typeof window < "u" && window.navigator && window.navigator.userAgent &
|
|
|
5715
5717
|
"backendConnector",
|
|
5716
5718
|
"i18nFormat",
|
|
5717
5719
|
"utils"
|
|
5718
|
-
], e,
|
|
5720
|
+
], e, Xu(n)), n.options = r, n.options.keySeparator === void 0 && (n.options.keySeparator = "."), n.logger = nd.create("translator"), n;
|
|
5719
5721
|
}
|
|
5720
|
-
return
|
|
5722
|
+
return Yu(t, [
|
|
5721
5723
|
{
|
|
5722
5724
|
key: "changeLanguage",
|
|
5723
5725
|
value: function(e) {
|
|
@@ -5828,7 +5830,7 @@ var hd = typeof window < "u" && window.navigator && window.navigator.userAgent &
|
|
|
5828
5830
|
}, n)), n.interpolation && this.interpolator.reset();
|
|
5829
5831
|
}
|
|
5830
5832
|
var f = n.postProcess || this.options.postProcess, p = typeof f == "string" ? [f] : f;
|
|
5831
|
-
return e != null && p && p.length && n.applyPostProcessor !== !1 && (e =
|
|
5833
|
+
return e != null && p && p.length && n.applyPostProcessor !== !1 && (e = vd.handle(p, e, t, this.options && this.options.postProcessPassResolved ? W({ i18nResolved: r }, n) : n, this)), e;
|
|
5832
5834
|
}
|
|
5833
5835
|
},
|
|
5834
5836
|
{
|
|
@@ -5843,7 +5845,7 @@ var hd = typeof window < "u" && window.navigator && window.navigator.userAgent &
|
|
|
5843
5845
|
t.options.fallbackNS && (u = u.concat(t.options.fallbackNS));
|
|
5844
5846
|
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);
|
|
5845
5847
|
u.forEach(function(e) {
|
|
5846
|
-
t.isValidLookup(r) || (s = e, !
|
|
5848
|
+
t.isValidLookup(r) || (s = e, !yd[`${p[0]}-${e}`] && t.utils && t.utils.hasLoadedNamespace && !t.utils.hasLoadedNamespace(s) && (yd[`${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) {
|
|
5847
5849
|
if (!t.isValidLookup(r)) {
|
|
5848
5850
|
o = i;
|
|
5849
5851
|
var s = l, c = [s];
|
|
@@ -5887,15 +5889,15 @@ var hd = typeof window < "u" && window.navigator && window.navigator.userAgent &
|
|
|
5887
5889
|
return !1;
|
|
5888
5890
|
}
|
|
5889
5891
|
}]), t;
|
|
5890
|
-
}(
|
|
5891
|
-
function
|
|
5892
|
+
}(rd);
|
|
5893
|
+
function xd(e) {
|
|
5892
5894
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
5893
5895
|
}
|
|
5894
|
-
var
|
|
5896
|
+
var Sd = function() {
|
|
5895
5897
|
function e(t) {
|
|
5896
|
-
|
|
5898
|
+
qu(this, e), this.options = t, this.whitelist = this.options.supportedLngs || !1, this.supportedLngs = this.options.supportedLngs || !1, this.logger = nd.create("languageUtils");
|
|
5897
5899
|
}
|
|
5898
|
-
return
|
|
5900
|
+
return Yu(e, [
|
|
5899
5901
|
{
|
|
5900
5902
|
key: "getScriptPartFromCode",
|
|
5901
5903
|
value: function(e) {
|
|
@@ -5927,7 +5929,7 @@ var xd = function() {
|
|
|
5927
5929
|
], n = e.split("-");
|
|
5928
5930
|
return this.options.lowerCaseLng ? n = n.map(function(e) {
|
|
5929
5931
|
return e.toLowerCase();
|
|
5930
|
-
}) : n.length === 2 ? (n[0] = n[0].toLowerCase(), n[1] = n[1].toUpperCase(), t.indexOf(n[1].toLowerCase()) > -1 && (n[1] =
|
|
5932
|
+
}) : n.length === 2 ? (n[0] = n[0].toLowerCase(), n[1] = n[1].toUpperCase(), t.indexOf(n[1].toLowerCase()) > -1 && (n[1] = xd(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] = xd(n[1].toLowerCase())), t.indexOf(n[2].toLowerCase()) > -1 && (n[2] = xd(n[2].toLowerCase()))), n.join("-");
|
|
5931
5933
|
}
|
|
5932
5934
|
return this.options.cleanCode || this.options.lowerCaseLng ? e.toLowerCase() : e;
|
|
5933
5935
|
}
|
|
@@ -5988,7 +5990,7 @@ var xd = function() {
|
|
|
5988
5990
|
}
|
|
5989
5991
|
}
|
|
5990
5992
|
]), e;
|
|
5991
|
-
}(),
|
|
5993
|
+
}(), Cd = [
|
|
5992
5994
|
{
|
|
5993
5995
|
lngs: [
|
|
5994
5996
|
"ach",
|
|
@@ -6229,7 +6231,7 @@ var xd = function() {
|
|
|
6229
6231
|
],
|
|
6230
6232
|
fc: 22
|
|
6231
6233
|
}
|
|
6232
|
-
],
|
|
6234
|
+
], wd = {
|
|
6233
6235
|
1: function(e) {
|
|
6234
6236
|
return Number(e > 1);
|
|
6235
6237
|
},
|
|
@@ -6297,23 +6299,23 @@ var xd = function() {
|
|
|
6297
6299
|
return Number(e == 1 ? 0 : e == 2 ? 1 : (e < 0 || e > 10) && e % 10 == 0 ? 2 : 3);
|
|
6298
6300
|
}
|
|
6299
6301
|
};
|
|
6300
|
-
function
|
|
6302
|
+
function Td() {
|
|
6301
6303
|
var e = {};
|
|
6302
|
-
return
|
|
6304
|
+
return Cd.forEach(function(t) {
|
|
6303
6305
|
t.lngs.forEach(function(n) {
|
|
6304
6306
|
e[n] = {
|
|
6305
6307
|
numbers: t.nr,
|
|
6306
|
-
plurals:
|
|
6308
|
+
plurals: wd[t.fc]
|
|
6307
6309
|
};
|
|
6308
6310
|
});
|
|
6309
6311
|
}), e;
|
|
6310
6312
|
}
|
|
6311
|
-
var
|
|
6313
|
+
var Ed = function() {
|
|
6312
6314
|
function e(t) {
|
|
6313
6315
|
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
6314
|
-
|
|
6316
|
+
qu(this, e), this.languageUtils = t, this.options = n, this.logger = nd.create("pluralResolver"), this.rules = Td();
|
|
6315
6317
|
}
|
|
6316
|
-
return
|
|
6318
|
+
return Yu(e, [
|
|
6317
6319
|
{
|
|
6318
6320
|
key: "addRule",
|
|
6319
6321
|
value: function(e, t) {
|
|
@@ -6366,21 +6368,21 @@ var Td = function() {
|
|
|
6366
6368
|
}
|
|
6367
6369
|
}
|
|
6368
6370
|
]), e;
|
|
6369
|
-
}(),
|
|
6371
|
+
}(), Dd = function() {
|
|
6370
6372
|
function e() {
|
|
6371
6373
|
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
6372
|
-
|
|
6374
|
+
qu(this, e), this.logger = nd.create("interpolator"), this.options = t, this.format = t.interpolation && t.interpolation.format || function(e) {
|
|
6373
6375
|
return e;
|
|
6374
6376
|
}, this.init(t);
|
|
6375
6377
|
}
|
|
6376
|
-
return
|
|
6378
|
+
return Yu(e, [
|
|
6377
6379
|
{
|
|
6378
6380
|
key: "init",
|
|
6379
6381
|
value: function() {
|
|
6380
6382
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
6381
6383
|
e.interpolation || (e.interpolation = { escapeValue: !0 });
|
|
6382
6384
|
var t = e.interpolation;
|
|
6383
|
-
this.escape = t.escape === void 0 ?
|
|
6385
|
+
this.escape = t.escape === void 0 ? hd : t.escape, this.escapeValue = t.escapeValue === void 0 || t.escapeValue, this.useRawValueToEscape = t.useRawValueToEscape !== void 0 && t.useRawValueToEscape, this.prefix = t.prefix ? pd(t.prefix) : t.prefixEscaped || "{{", this.suffix = t.suffix ? pd(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 ? pd(t.nestingPrefix) : t.nestingPrefixEscaped || pd("$t("), this.nestingSuffix = t.nestingSuffix ? pd(t.nestingSuffix) : t.nestingSuffixEscaped || pd(")"), this.nestingOptionsSeparator = t.nestingOptionsSeparator ? t.nestingOptionsSeparator : t.nestingOptionsSeparator || ",", this.maxReplaces = t.maxReplaces ? t.maxReplaces : 1e3, this.alwaysFormat = t.alwaysFormat !== void 0 && t.alwaysFormat, this.resetRegExp();
|
|
6384
6386
|
}
|
|
6385
6387
|
},
|
|
6386
6388
|
{
|
|
@@ -6409,11 +6411,11 @@ var Td = function() {
|
|
|
6409
6411
|
}
|
|
6410
6412
|
var u = function(e) {
|
|
6411
6413
|
if (e.indexOf(i.formatSeparator) < 0) {
|
|
6412
|
-
var a =
|
|
6414
|
+
var a = dd(t, c, e);
|
|
6413
6415
|
return i.alwaysFormat ? i.format(a, void 0, n) : a;
|
|
6414
6416
|
}
|
|
6415
6417
|
var o = e.split(i.formatSeparator), s = o.shift().trim(), l = o.join(i.formatSeparator).trim();
|
|
6416
|
-
return i.format(
|
|
6418
|
+
return i.format(dd(t, c, s), l, n, r);
|
|
6417
6419
|
};
|
|
6418
6420
|
this.resetRegExp();
|
|
6419
6421
|
var d = r && r.missingInterpolationHandler || this.options.missingInterpolationHandler, f = r && r.interpolation && r.interpolation.skipOnVariables || this.options.interpolation.skipOnVariables;
|
|
@@ -6436,7 +6438,7 @@ var Td = function() {
|
|
|
6436
6438
|
o = a[0];
|
|
6437
6439
|
continue;
|
|
6438
6440
|
} else i.logger.warn(`missed to pass in variable ${a[1]} for interpolating ${e}`), o = "";
|
|
6439
|
-
else typeof o != "string" && !i.useRawValueToEscape && (o =
|
|
6441
|
+
else typeof o != "string" && !i.useRawValueToEscape && (o = ad(o));
|
|
6440
6442
|
if (e = e.replace(a[0], t.safeValue(o)), t.regex.lastIndex = 0, s++, s >= i.maxReplaces) break;
|
|
6441
6443
|
}
|
|
6442
6444
|
}), e;
|
|
@@ -6468,7 +6470,7 @@ var Td = function() {
|
|
|
6468
6470
|
i[1] = u.shift(), c = u, l = !0;
|
|
6469
6471
|
}
|
|
6470
6472
|
if (a = t(s.call(this, i[1].trim(), o), o), a && i[0] === e && typeof a != "string") return a;
|
|
6471
|
-
typeof a != "string" && (a =
|
|
6473
|
+
typeof a != "string" && (a = ad(a)), a || (this.logger.warn(`missed to resolve ${i[1]} for nesting ${e}`), a = ""), l && (a = c.reduce(function(e, t) {
|
|
6472
6474
|
return n.format(e, t, r.lng, r);
|
|
6473
6475
|
}, a.trim())), e = e.replace(i[0], a), this.regexp.lastIndex = 0;
|
|
6474
6476
|
}
|
|
@@ -6477,16 +6479,16 @@ var Td = function() {
|
|
|
6477
6479
|
}
|
|
6478
6480
|
]), e;
|
|
6479
6481
|
}();
|
|
6480
|
-
function
|
|
6482
|
+
function Od(e, t) {
|
|
6481
6483
|
for (var n = e.indexOf(t); n !== -1;) e.splice(n, 1), n = e.indexOf(t);
|
|
6482
6484
|
}
|
|
6483
|
-
var
|
|
6484
|
-
|
|
6485
|
+
var kd = function(e) {
|
|
6486
|
+
ed(t, e);
|
|
6485
6487
|
function t(e, n, r) {
|
|
6486
6488
|
var i, a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
6487
|
-
return
|
|
6489
|
+
return qu(this, t), i = Zu(this, Qu(t).call(this)), gd && rd.call(Xu(i)), i.backend = e, i.store = n, i.services = r, i.languageUtils = r.languageUtils, i.options = a, i.logger = nd.create("backendConnector"), i.state = {}, i.queue = [], i.backend && i.backend.init && i.backend.init(r, a.backend, a), i;
|
|
6488
6490
|
}
|
|
6489
|
-
return
|
|
6491
|
+
return Yu(t, [
|
|
6490
6492
|
{
|
|
6491
6493
|
key: "queueLoad",
|
|
6492
6494
|
value: function(e, t, n, r) {
|
|
@@ -6517,7 +6519,7 @@ var Od = function(e) {
|
|
|
6517
6519
|
t && this.emit("failedLoading", i, a, t), n && this.store.addResourceBundle(i, a, n), this.state[e] = t ? -1 : 2;
|
|
6518
6520
|
var o = {};
|
|
6519
6521
|
this.queue.forEach(function(n) {
|
|
6520
|
-
|
|
6522
|
+
ld(n.loaded, [i], a), Od(n.pending, e), t && n.errors.push(t), n.pending.length === 0 && !n.done && (Object.keys(n.loaded).forEach(function(e) {
|
|
6521
6523
|
o[e] || (o[e] = []), n.loaded[e].length && n.loaded[e].forEach(function(t) {
|
|
6522
6524
|
o[e].indexOf(t) < 0 && o[e].push(t);
|
|
6523
6525
|
});
|
|
@@ -6588,8 +6590,8 @@ var Od = function(e) {
|
|
|
6588
6590
|
}
|
|
6589
6591
|
}
|
|
6590
6592
|
]), t;
|
|
6591
|
-
}(
|
|
6592
|
-
function
|
|
6593
|
+
}(rd);
|
|
6594
|
+
function Ad() {
|
|
6593
6595
|
return {
|
|
6594
6596
|
debug: !1,
|
|
6595
6597
|
initImmediate: !0,
|
|
@@ -6652,44 +6654,44 @@ function kd() {
|
|
|
6652
6654
|
}
|
|
6653
6655
|
};
|
|
6654
6656
|
}
|
|
6655
|
-
function
|
|
6657
|
+
function jd(e) {
|
|
6656
6658
|
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;
|
|
6657
6659
|
}
|
|
6658
|
-
function
|
|
6659
|
-
var
|
|
6660
|
-
|
|
6660
|
+
function Md() {}
|
|
6661
|
+
var Nd = new (function(e) {
|
|
6662
|
+
ed(t, e);
|
|
6661
6663
|
function t() {
|
|
6662
6664
|
var e, n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = arguments.length > 1 ? arguments[1] : void 0;
|
|
6663
|
-
if (
|
|
6664
|
-
if (!e.options.initImmediate) return e.init(n, r),
|
|
6665
|
+
if (qu(this, t), e = Zu(this, Qu(t).call(this)), gd && rd.call(Xu(e)), e.options = jd(n), e.services = {}, e.logger = nd, e.modules = { external: [] }, r && !e.isInitialized && !n.isClone) {
|
|
6666
|
+
if (!e.options.initImmediate) return e.init(n, r), Zu(e, Xu(e));
|
|
6665
6667
|
setTimeout(function() {
|
|
6666
6668
|
e.init(n, r);
|
|
6667
6669
|
}, 0);
|
|
6668
6670
|
}
|
|
6669
6671
|
return e;
|
|
6670
6672
|
}
|
|
6671
|
-
return
|
|
6673
|
+
return Yu(t, [
|
|
6672
6674
|
{
|
|
6673
6675
|
key: "init",
|
|
6674
6676
|
value: function() {
|
|
6675
6677
|
var e = this, t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 ? arguments[1] : void 0;
|
|
6676
|
-
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 = W({},
|
|
6678
|
+
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 = W({}, Ad(), this.options, jd(t)), this.format = this.options.interpolation.format, n || (n = Md);
|
|
6677
6679
|
function r(e) {
|
|
6678
6680
|
return e ? typeof e == "function" ? new e() : e : null;
|
|
6679
6681
|
}
|
|
6680
6682
|
if (!this.options.isClone) {
|
|
6681
|
-
this.modules.logger ?
|
|
6682
|
-
var i = new
|
|
6683
|
-
this.store = new
|
|
6683
|
+
this.modules.logger ? nd.init(r(this.modules.logger), this.options) : nd.init(null, this.options);
|
|
6684
|
+
var i = new Sd(this.options);
|
|
6685
|
+
this.store = new _d(this.options.resources, this.options);
|
|
6684
6686
|
var a = this.services;
|
|
6685
|
-
a.logger =
|
|
6687
|
+
a.logger = nd, a.resourceStore = this.store, a.languageUtils = i, a.pluralResolver = new Ed(i, {
|
|
6686
6688
|
prepend: this.options.pluralSeparator,
|
|
6687
6689
|
compatibilityJSON: this.options.compatibilityJSON,
|
|
6688
6690
|
simplifyPluralSuffix: this.options.simplifyPluralSuffix
|
|
6689
|
-
}), a.interpolator = new
|
|
6691
|
+
}), a.interpolator = new Dd(this.options), a.utils = { hasLoadedNamespace: this.hasLoadedNamespace.bind(this) }, a.backendConnector = new kd(r(this.modules.backend), a.resourceStore, a, this.options), a.backendConnector.on("*", function(t) {
|
|
6690
6692
|
var n = [...arguments].slice(1);
|
|
6691
6693
|
e.emit.apply(e, [t].concat(n));
|
|
6692
|
-
}), 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
|
|
6694
|
+
}), 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 bd(this.services, this.options), this.translator.on("*", function(t) {
|
|
6693
6695
|
var n = [...arguments].slice(1);
|
|
6694
6696
|
e.emit.apply(e, [t].concat(n));
|
|
6695
6697
|
}), this.modules.external.forEach(function(t) {
|
|
@@ -6721,7 +6723,7 @@ var Md = new (function(e) {
|
|
|
6721
6723
|
return (n = e.store)[t].apply(n, arguments), e;
|
|
6722
6724
|
};
|
|
6723
6725
|
});
|
|
6724
|
-
var s =
|
|
6726
|
+
var s = id(), c = function() {
|
|
6725
6727
|
var t = function(t, r) {
|
|
6726
6728
|
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);
|
|
6727
6729
|
};
|
|
@@ -6734,7 +6736,7 @@ var Md = new (function(e) {
|
|
|
6734
6736
|
{
|
|
6735
6737
|
key: "loadResources",
|
|
6736
6738
|
value: function(e) {
|
|
6737
|
-
var t = this, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
|
6739
|
+
var t = this, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Md, r = typeof e == "string" ? e : this.language;
|
|
6738
6740
|
if (typeof e == "function" && (n = e), !this.options.resources || this.options.partialBundledLanguages) {
|
|
6739
6741
|
if (r && r.toLowerCase() === "cimode") return n();
|
|
6740
6742
|
var i = [], a = function(e) {
|
|
@@ -6753,8 +6755,8 @@ var Md = new (function(e) {
|
|
|
6753
6755
|
{
|
|
6754
6756
|
key: "reloadResources",
|
|
6755
6757
|
value: function(e, t, n) {
|
|
6756
|
-
var r =
|
|
6757
|
-
return e || (e = this.languages), t || (t = this.options.ns), n || (n =
|
|
6758
|
+
var r = id();
|
|
6759
|
+
return e || (e = this.languages), t || (t = this.options.ns), n || (n = Md), this.services.backendConnector.reload(e, t, function(e) {
|
|
6758
6760
|
r.resolve(), n(e);
|
|
6759
6761
|
}), r;
|
|
6760
6762
|
}
|
|
@@ -6764,7 +6766,7 @@ var Md = new (function(e) {
|
|
|
6764
6766
|
value: function(e) {
|
|
6765
6767
|
if (!e) throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
|
|
6766
6768
|
if (!e.type) throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
|
|
6767
|
-
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" &&
|
|
6769
|
+
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" && vd.addPostProcessor(e), e.type === "3rdParty" && this.modules.external.push(e), this;
|
|
6768
6770
|
}
|
|
6769
6771
|
},
|
|
6770
6772
|
{
|
|
@@ -6772,7 +6774,7 @@ var Md = new (function(e) {
|
|
|
6772
6774
|
value: function(e, t) {
|
|
6773
6775
|
var n = this;
|
|
6774
6776
|
this.isLanguageChangingTo = e;
|
|
6775
|
-
var r =
|
|
6777
|
+
var r = id();
|
|
6776
6778
|
this.emit("languageChanging", e);
|
|
6777
6779
|
var i = function(e, i) {
|
|
6778
6780
|
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() {
|
|
@@ -6845,7 +6847,7 @@ var Md = new (function(e) {
|
|
|
6845
6847
|
{
|
|
6846
6848
|
key: "loadNamespaces",
|
|
6847
6849
|
value: function(e, t) {
|
|
6848
|
-
var n = this, r =
|
|
6850
|
+
var n = this, r = id();
|
|
6849
6851
|
return this.options.ns ? (typeof e == "string" && (e = [e]), e.forEach(function(e) {
|
|
6850
6852
|
n.options.ns.indexOf(e) < 0 && n.options.ns.push(e);
|
|
6851
6853
|
}), this.loadResources(function(e) {
|
|
@@ -6856,7 +6858,7 @@ var Md = new (function(e) {
|
|
|
6856
6858
|
{
|
|
6857
6859
|
key: "loadLanguages",
|
|
6858
6860
|
value: function(e, t) {
|
|
6859
|
-
var n =
|
|
6861
|
+
var n = id();
|
|
6860
6862
|
typeof e == "string" && (e = [e]);
|
|
6861
6863
|
var r = this.options.preload || [], i = e.filter(function(e) {
|
|
6862
6864
|
return r.indexOf(e) < 0;
|
|
@@ -6881,64 +6883,64 @@ var Md = new (function(e) {
|
|
|
6881
6883
|
{
|
|
6882
6884
|
key: "cloneInstance",
|
|
6883
6885
|
value: function() {
|
|
6884
|
-
var e = this, n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
|
6886
|
+
var e = this, n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Md, i = W({}, this.options, n, { isClone: !0 }), a = new t(i);
|
|
6885
6887
|
return [
|
|
6886
6888
|
"store",
|
|
6887
6889
|
"services",
|
|
6888
6890
|
"language"
|
|
6889
6891
|
].forEach(function(t) {
|
|
6890
6892
|
a[t] = e[t];
|
|
6891
|
-
}), a.services = W({}, this.services), a.services.utils = { hasLoadedNamespace: a.hasLoadedNamespace.bind(a) }, a.translator = new
|
|
6893
|
+
}), a.services = W({}, this.services), a.services.utils = { hasLoadedNamespace: a.hasLoadedNamespace.bind(a) }, a.translator = new bd(a.services, a.options), a.translator.on("*", function(e) {
|
|
6892
6894
|
var t = [...arguments].slice(1);
|
|
6893
6895
|
a.emit.apply(a, [e].concat(t));
|
|
6894
6896
|
}), a.init(i, r), a.translator.options = a.options, a.translator.backendConnector.services.utils = { hasLoadedNamespace: a.hasLoadedNamespace.bind(a) }, a;
|
|
6895
6897
|
}
|
|
6896
6898
|
}
|
|
6897
6899
|
]), t;
|
|
6898
|
-
}(
|
|
6899
|
-
Object.freeze(Pd);
|
|
6900
|
-
var Fd = {};
|
|
6900
|
+
}(rd))(), Pd = "An invariant failed, however the error is obfuscated because this is a production build.", Fd = [];
|
|
6901
6901
|
Object.freeze(Fd);
|
|
6902
|
+
var Id = {};
|
|
6903
|
+
Object.freeze(Id);
|
|
6902
6904
|
function G() {
|
|
6903
6905
|
return ++X.mobxGuid;
|
|
6904
6906
|
}
|
|
6905
6907
|
function K(e) {
|
|
6906
|
-
throw
|
|
6908
|
+
throw Ld(!1, e), "X";
|
|
6907
6909
|
}
|
|
6908
|
-
function
|
|
6909
|
-
if (!e) throw Error("[mobx] " + (t ||
|
|
6910
|
+
function Ld(e, t) {
|
|
6911
|
+
if (!e) throw Error("[mobx] " + (t || Pd));
|
|
6910
6912
|
}
|
|
6911
|
-
function
|
|
6913
|
+
function Rd(e) {
|
|
6912
6914
|
var t = !1;
|
|
6913
6915
|
return function() {
|
|
6914
6916
|
if (!t) return t = !0, e.apply(this, arguments);
|
|
6915
6917
|
};
|
|
6916
6918
|
}
|
|
6917
|
-
var
|
|
6918
|
-
function
|
|
6919
|
+
var zd = function() {};
|
|
6920
|
+
function Bd(e) {
|
|
6919
6921
|
var t = [];
|
|
6920
6922
|
return e.forEach(function(e) {
|
|
6921
6923
|
t.indexOf(e) === -1 && t.push(e);
|
|
6922
6924
|
}), t;
|
|
6923
6925
|
}
|
|
6924
|
-
function
|
|
6926
|
+
function Vd(e) {
|
|
6925
6927
|
return typeof e == "object" && !!e;
|
|
6926
6928
|
}
|
|
6927
|
-
function
|
|
6929
|
+
function Hd(e) {
|
|
6928
6930
|
if (typeof e != "object" || !e) return !1;
|
|
6929
6931
|
var t = Object.getPrototypeOf(e);
|
|
6930
6932
|
return t === Object.prototype || t === null;
|
|
6931
6933
|
}
|
|
6932
|
-
function
|
|
6933
|
-
if (
|
|
6934
|
+
function Ud(e) {
|
|
6935
|
+
if (Jd(e) || zm(e)) return e;
|
|
6934
6936
|
if (Array.isArray(e)) return new Map(e);
|
|
6935
|
-
if (
|
|
6937
|
+
if (Hd(e)) {
|
|
6936
6938
|
var t = /* @__PURE__ */ new Map();
|
|
6937
6939
|
for (var n in e) t.set(n, e[n]);
|
|
6938
6940
|
return t;
|
|
6939
6941
|
} else return K("Cannot convert to map from '" + e + "'");
|
|
6940
6942
|
}
|
|
6941
|
-
function
|
|
6943
|
+
function Wd(e, t, n) {
|
|
6942
6944
|
Object.defineProperty(e, t, {
|
|
6943
6945
|
enumerable: !1,
|
|
6944
6946
|
writable: !0,
|
|
@@ -6946,7 +6948,7 @@ function Ud(e, t, n) {
|
|
|
6946
6948
|
value: n
|
|
6947
6949
|
});
|
|
6948
6950
|
}
|
|
6949
|
-
function
|
|
6951
|
+
function Gd(e, t, n) {
|
|
6950
6952
|
Object.defineProperty(e, t, {
|
|
6951
6953
|
enumerable: !1,
|
|
6952
6954
|
writable: !1,
|
|
@@ -6954,38 +6956,38 @@ function Wd(e, t, n) {
|
|
|
6954
6956
|
value: n
|
|
6955
6957
|
});
|
|
6956
6958
|
}
|
|
6957
|
-
function
|
|
6959
|
+
function Kd(e, t) {
|
|
6958
6960
|
var n = Object.getOwnPropertyDescriptor(e, t);
|
|
6959
6961
|
return !n || n.configurable !== !1 && n.writable !== !1;
|
|
6960
6962
|
}
|
|
6961
|
-
function
|
|
6963
|
+
function qd(e, t) {
|
|
6962
6964
|
var n = "isMobX" + e;
|
|
6963
6965
|
return t.prototype[n] = !0, function(e) {
|
|
6964
|
-
return
|
|
6966
|
+
return Vd(e) && e[n] === !0;
|
|
6965
6967
|
};
|
|
6966
6968
|
}
|
|
6967
|
-
function
|
|
6969
|
+
function Jd(e) {
|
|
6968
6970
|
return e instanceof Map;
|
|
6969
6971
|
}
|
|
6970
|
-
function
|
|
6972
|
+
function Yd(e) {
|
|
6971
6973
|
return e instanceof Set;
|
|
6972
6974
|
}
|
|
6973
|
-
function
|
|
6975
|
+
function Xd(e) {
|
|
6974
6976
|
var t = /* @__PURE__ */ new Set();
|
|
6975
6977
|
for (var n in e) t.add(n);
|
|
6976
6978
|
return Object.getOwnPropertySymbols(e).forEach(function(n) {
|
|
6977
6979
|
Object.getOwnPropertyDescriptor(e, n).enumerable && t.add(n);
|
|
6978
6980
|
}), Array.from(t);
|
|
6979
6981
|
}
|
|
6980
|
-
function
|
|
6982
|
+
function Zd(e) {
|
|
6981
6983
|
return e && e.toString ? e.toString() : new String(e).toString();
|
|
6982
6984
|
}
|
|
6983
|
-
function
|
|
6985
|
+
function Qd(e) {
|
|
6984
6986
|
return e === null ? null : typeof e == "object" ? "" + e : e;
|
|
6985
6987
|
}
|
|
6986
|
-
var
|
|
6988
|
+
var $d = typeof Reflect < "u" && Reflect.ownKeys ? Reflect.ownKeys : Object.getOwnPropertySymbols ? function(e) {
|
|
6987
6989
|
return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e));
|
|
6988
|
-
} : /* istanbul ignore next */ Object.getOwnPropertyNames, q = Symbol("mobx administration"),
|
|
6990
|
+
} : /* istanbul ignore next */ Object.getOwnPropertyNames, q = Symbol("mobx administration"), ef = function() {
|
|
6989
6991
|
function e(e) {
|
|
6990
6992
|
e === void 0 && (e = "Atom@" + G()), this.name = e, this.isPendingUnobservation = !1, this.isBeingObserved = !1, this.observers = /* @__PURE__ */ new Set(), this.diffValue = 0, this.lastAccessedBy = 0, this.lowestObserverState = Y.NOT_TRACKING;
|
|
6991
6993
|
}
|
|
@@ -6998,56 +7000,56 @@ var Qd = typeof Reflect < "u" && Reflect.ownKeys ? Reflect.ownKeys : Object.getO
|
|
|
6998
7000
|
return e();
|
|
6999
7001
|
});
|
|
7000
7002
|
}, e.prototype.reportObserved = function() {
|
|
7001
|
-
return
|
|
7003
|
+
return Cp(this);
|
|
7002
7004
|
}, e.prototype.reportChanged = function() {
|
|
7003
|
-
Z(),
|
|
7005
|
+
Z(), wp(this), Q();
|
|
7004
7006
|
}, e.prototype.toString = function() {
|
|
7005
7007
|
return this.name;
|
|
7006
7008
|
}, e;
|
|
7007
|
-
}(),
|
|
7008
|
-
function
|
|
7009
|
-
t === void 0 && (t =
|
|
7010
|
-
var r = new
|
|
7011
|
-
return t !==
|
|
7012
|
-
}
|
|
7013
|
-
function nf(e, t) {
|
|
7014
|
-
return e === t;
|
|
7009
|
+
}(), tf = qd("Atom", ef);
|
|
7010
|
+
function nf(e, t, n) {
|
|
7011
|
+
t === void 0 && (t = zd), n === void 0 && (n = zd);
|
|
7012
|
+
var r = new ef(e);
|
|
7013
|
+
return t !== zd && Yp(r, t), n !== zd && Xp(r, n), r;
|
|
7015
7014
|
}
|
|
7016
7015
|
function rf(e, t) {
|
|
7017
|
-
return
|
|
7016
|
+
return e === t;
|
|
7018
7017
|
}
|
|
7019
7018
|
function af(e, t) {
|
|
7020
|
-
return
|
|
7019
|
+
return rh(e, t);
|
|
7021
7020
|
}
|
|
7022
7021
|
function of(e, t) {
|
|
7022
|
+
return rh(e, t, 1);
|
|
7023
|
+
}
|
|
7024
|
+
function sf(e, t) {
|
|
7023
7025
|
return Object.is(e, t);
|
|
7024
7026
|
}
|
|
7025
|
-
var
|
|
7026
|
-
identity:
|
|
7027
|
-
structural:
|
|
7028
|
-
default:
|
|
7029
|
-
shallow:
|
|
7030
|
-
},
|
|
7031
|
-
return
|
|
7027
|
+
var cf = {
|
|
7028
|
+
identity: rf,
|
|
7029
|
+
structural: af,
|
|
7030
|
+
default: sf,
|
|
7031
|
+
shallow: of
|
|
7032
|
+
}, lf = function(e, t) {
|
|
7033
|
+
return lf = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {
|
|
7032
7034
|
e.__proto__ = t;
|
|
7033
7035
|
} || function(e, t) {
|
|
7034
7036
|
for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]);
|
|
7035
|
-
},
|
|
7037
|
+
}, lf(e, t);
|
|
7036
7038
|
};
|
|
7037
|
-
function
|
|
7038
|
-
|
|
7039
|
+
function uf(e, t) {
|
|
7040
|
+
lf(e, t);
|
|
7039
7041
|
function n() {
|
|
7040
7042
|
this.constructor = e;
|
|
7041
7043
|
}
|
|
7042
7044
|
e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
|
|
7043
7045
|
}
|
|
7044
|
-
var
|
|
7045
|
-
return
|
|
7046
|
+
var df = function() {
|
|
7047
|
+
return df = Object.assign || function(e) {
|
|
7046
7048
|
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]);
|
|
7047
7049
|
return e;
|
|
7048
|
-
},
|
|
7050
|
+
}, df.apply(this, arguments);
|
|
7049
7051
|
};
|
|
7050
|
-
function
|
|
7052
|
+
function ff(e) {
|
|
7051
7053
|
var t = typeof Symbol == "function" && e[Symbol.iterator], n = 0;
|
|
7052
7054
|
return t ? t.call(e) : { next: function() {
|
|
7053
7055
|
return e && n >= e.length && (e = void 0), {
|
|
@@ -7056,7 +7058,7 @@ function df(e) {
|
|
|
7056
7058
|
};
|
|
7057
7059
|
} };
|
|
7058
7060
|
}
|
|
7059
|
-
function
|
|
7061
|
+
function pf(e, t) {
|
|
7060
7062
|
var n = typeof Symbol == "function" && e[Symbol.iterator];
|
|
7061
7063
|
if (!n) return e;
|
|
7062
7064
|
var r = n.call(e), i, a = [], o;
|
|
@@ -7073,33 +7075,33 @@ function ff(e, t) {
|
|
|
7073
7075
|
}
|
|
7074
7076
|
return a;
|
|
7075
7077
|
}
|
|
7076
|
-
function
|
|
7077
|
-
for (var e = [], t = 0; t < arguments.length; t++) e = e.concat(
|
|
7078
|
+
function mf() {
|
|
7079
|
+
for (var e = [], t = 0; t < arguments.length; t++) e = e.concat(pf(arguments[t]));
|
|
7078
7080
|
return e;
|
|
7079
7081
|
}
|
|
7080
|
-
var
|
|
7081
|
-
function
|
|
7082
|
-
var n = t ?
|
|
7082
|
+
var hf = Symbol("mobx did run lazy initializers"), gf = Symbol("mobx pending decorators"), _f = {}, vf = {};
|
|
7083
|
+
function yf(e, t) {
|
|
7084
|
+
var n = t ? _f : vf;
|
|
7083
7085
|
return n[e] || (n[e] = {
|
|
7084
7086
|
configurable: !0,
|
|
7085
7087
|
enumerable: t,
|
|
7086
7088
|
get: function() {
|
|
7087
|
-
return
|
|
7089
|
+
return bf(this), this[e];
|
|
7088
7090
|
},
|
|
7089
7091
|
set: function(t) {
|
|
7090
|
-
|
|
7092
|
+
bf(this), this[e] = t;
|
|
7091
7093
|
}
|
|
7092
7094
|
});
|
|
7093
7095
|
}
|
|
7094
|
-
function
|
|
7096
|
+
function bf(e) {
|
|
7095
7097
|
var t, n;
|
|
7096
|
-
if (e[
|
|
7097
|
-
var r = e[
|
|
7098
|
+
if (e[hf] !== !0) {
|
|
7099
|
+
var r = e[gf];
|
|
7098
7100
|
if (r) {
|
|
7099
|
-
|
|
7100
|
-
var i =
|
|
7101
|
+
Wd(e, hf, !0);
|
|
7102
|
+
var i = mf(Object.getOwnPropertySymbols(r), Object.keys(r));
|
|
7101
7103
|
try {
|
|
7102
|
-
for (var a =
|
|
7104
|
+
for (var a = ff(i), o = a.next(); !o.done; o = a.next()) {
|
|
7103
7105
|
var s = r[o.value];
|
|
7104
7106
|
s.propertyCreator(e, s.prop, s.descriptor, s.decoratorTarget, s.decoratorArguments);
|
|
7105
7107
|
}
|
|
@@ -7115,182 +7117,182 @@ function yf(e) {
|
|
|
7115
7117
|
}
|
|
7116
7118
|
}
|
|
7117
7119
|
}
|
|
7118
|
-
function
|
|
7120
|
+
function xf(e, t) {
|
|
7119
7121
|
return function() {
|
|
7120
7122
|
var n, r = function(r, i, a, o) {
|
|
7121
7123
|
if (o === !0) return t(r, i, a, r, n), null;
|
|
7122
|
-
if (!Object.prototype.hasOwnProperty.call(r,
|
|
7123
|
-
var s = r[
|
|
7124
|
-
|
|
7124
|
+
if (!Object.prototype.hasOwnProperty.call(r, gf)) {
|
|
7125
|
+
var s = r[gf];
|
|
7126
|
+
Wd(r, gf, df({}, s));
|
|
7125
7127
|
}
|
|
7126
|
-
return r[
|
|
7128
|
+
return r[gf][i] = {
|
|
7127
7129
|
prop: i,
|
|
7128
7130
|
propertyCreator: t,
|
|
7129
7131
|
descriptor: a,
|
|
7130
7132
|
decoratorTarget: r,
|
|
7131
7133
|
decoratorArguments: n
|
|
7132
|
-
},
|
|
7134
|
+
}, yf(i, e);
|
|
7133
7135
|
};
|
|
7134
|
-
return
|
|
7136
|
+
return Sf(arguments) ? (n = Fd, r.apply(null, arguments)) : (n = Array.prototype.slice.call(arguments), r);
|
|
7135
7137
|
};
|
|
7136
7138
|
}
|
|
7137
|
-
function
|
|
7139
|
+
function Sf(e) {
|
|
7138
7140
|
return (e.length === 2 || e.length === 3) && (typeof e[1] == "string" || typeof e[1] == "symbol") || e.length === 4 && e[3] === !0;
|
|
7139
7141
|
}
|
|
7140
|
-
function Sf(e, t, n) {
|
|
7141
|
-
return am(e) ? e : Array.isArray(e) ? J.array(e, { name: n }) : Vd(e) ? J.object(e, void 0, { name: n }) : qd(e) ? J.map(e, { name: n }) : Jd(e) ? J.set(e, { name: n }) : e;
|
|
7142
|
-
}
|
|
7143
7142
|
function Cf(e, t, n) {
|
|
7144
|
-
return e
|
|
7143
|
+
return om(e) ? e : Array.isArray(e) ? J.array(e, { name: n }) : Hd(e) ? J.object(e, void 0, { name: n }) : Jd(e) ? J.map(e, { name: n }) : Yd(e) ? J.set(e, { name: n }) : e;
|
|
7144
|
+
}
|
|
7145
|
+
function wf(e, t, n) {
|
|
7146
|
+
return e == null || Qm(e) || Fm(e) || zm(e) || Um(e) ? e : Array.isArray(e) ? J.array(e, {
|
|
7145
7147
|
name: n,
|
|
7146
7148
|
deep: !1
|
|
7147
|
-
}) :
|
|
7149
|
+
}) : Hd(e) ? J.object(e, void 0, {
|
|
7148
7150
|
name: n,
|
|
7149
7151
|
deep: !1
|
|
7150
|
-
}) :
|
|
7152
|
+
}) : Jd(e) ? J.map(e, {
|
|
7151
7153
|
name: n,
|
|
7152
7154
|
deep: !1
|
|
7153
|
-
}) :
|
|
7155
|
+
}) : Yd(e) ? J.set(e, {
|
|
7154
7156
|
name: n,
|
|
7155
7157
|
deep: !1
|
|
7156
7158
|
}) : K(!1);
|
|
7157
7159
|
}
|
|
7158
|
-
function
|
|
7160
|
+
function Tf(e) {
|
|
7159
7161
|
return e;
|
|
7160
7162
|
}
|
|
7161
|
-
function
|
|
7162
|
-
return
|
|
7163
|
+
function Ef(e, t, n) {
|
|
7164
|
+
return rh(e, t) ? t : e;
|
|
7163
7165
|
}
|
|
7164
|
-
function
|
|
7165
|
-
|
|
7166
|
-
var t =
|
|
7166
|
+
function Df(e) {
|
|
7167
|
+
Ld(e);
|
|
7168
|
+
var t = xf(!0, function(t, n, r, i, a) {
|
|
7167
7169
|
var o = r ? r.initializer ? r.initializer.call(t) : r.value : void 0;
|
|
7168
|
-
|
|
7170
|
+
Gm(t).addObservableProp(n, o, e);
|
|
7169
7171
|
}), n = (typeof process < "u" && process.env, t);
|
|
7170
7172
|
return n.enhancer = e, n;
|
|
7171
7173
|
}
|
|
7172
|
-
var
|
|
7174
|
+
var Of = {
|
|
7173
7175
|
deep: !0,
|
|
7174
7176
|
name: void 0,
|
|
7175
7177
|
defaultDecorator: void 0,
|
|
7176
7178
|
proxy: !0
|
|
7177
7179
|
};
|
|
7178
|
-
Object.freeze(
|
|
7179
|
-
function
|
|
7180
|
-
return e == null ?
|
|
7180
|
+
Object.freeze(Of);
|
|
7181
|
+
function kf(e) {
|
|
7182
|
+
return e == null ? Of : typeof e == "string" ? {
|
|
7181
7183
|
name: e,
|
|
7182
7184
|
deep: !0,
|
|
7183
7185
|
proxy: !0
|
|
7184
7186
|
} : e;
|
|
7185
7187
|
}
|
|
7186
|
-
var
|
|
7187
|
-
function
|
|
7188
|
-
return e.defaultDecorator ? e.defaultDecorator.enhancer : e.deep === !1 ?
|
|
7188
|
+
var Af = Df(Cf), jf = Df(wf), Mf = Df(Tf), Nf = Df(Ef);
|
|
7189
|
+
function Pf(e) {
|
|
7190
|
+
return e.defaultDecorator ? e.defaultDecorator.enhancer : e.deep === !1 ? Tf : Cf;
|
|
7189
7191
|
}
|
|
7190
|
-
function
|
|
7191
|
-
if (typeof arguments[1] == "string" || typeof arguments[1] == "symbol") return
|
|
7192
|
-
if (
|
|
7193
|
-
var r =
|
|
7192
|
+
function Ff(e, t, n) {
|
|
7193
|
+
if (typeof arguments[1] == "string" || typeof arguments[1] == "symbol") return Af.apply(null, arguments);
|
|
7194
|
+
if (om(e)) return e;
|
|
7195
|
+
var r = Hd(e) ? J.object(e, t, n) : Array.isArray(e) ? J.array(e, t) : Jd(e) ? J.map(e, t) : Yd(e) ? J.set(e, t) : e;
|
|
7194
7196
|
if (r !== e) return r;
|
|
7195
7197
|
K(!1);
|
|
7196
7198
|
}
|
|
7197
|
-
var
|
|
7199
|
+
var If = {
|
|
7198
7200
|
box: function(e, t) {
|
|
7199
|
-
arguments.length > 2 &&
|
|
7200
|
-
var n =
|
|
7201
|
-
return new
|
|
7201
|
+
arguments.length > 2 && Lf("box");
|
|
7202
|
+
var n = kf(t);
|
|
7203
|
+
return new up(e, Pf(n), n.name, !0, n.equals);
|
|
7202
7204
|
},
|
|
7203
7205
|
array: function(e, t) {
|
|
7204
|
-
arguments.length > 2 &&
|
|
7205
|
-
var n =
|
|
7206
|
-
return
|
|
7206
|
+
arguments.length > 2 && Lf("array");
|
|
7207
|
+
var n = kf(t);
|
|
7208
|
+
return jm(e, Pf(n), n.name);
|
|
7207
7209
|
},
|
|
7208
7210
|
map: function(e, t) {
|
|
7209
|
-
arguments.length > 2 &&
|
|
7210
|
-
var n =
|
|
7211
|
-
return new
|
|
7211
|
+
arguments.length > 2 && Lf("map");
|
|
7212
|
+
var n = kf(t);
|
|
7213
|
+
return new Rm(e, Pf(n), n.name);
|
|
7212
7214
|
},
|
|
7213
7215
|
set: function(e, t) {
|
|
7214
|
-
arguments.length > 2 &&
|
|
7215
|
-
var n =
|
|
7216
|
-
return new
|
|
7216
|
+
arguments.length > 2 && Lf("set");
|
|
7217
|
+
var n = kf(t);
|
|
7218
|
+
return new Hm(e, Pf(n), n.name);
|
|
7217
7219
|
},
|
|
7218
7220
|
object: function(e, t, n) {
|
|
7219
|
-
typeof arguments[1] == "string" &&
|
|
7220
|
-
var r =
|
|
7221
|
-
if (r.proxy === !1) return
|
|
7222
|
-
var i =
|
|
7223
|
-
return
|
|
7221
|
+
typeof arguments[1] == "string" && Lf("object");
|
|
7222
|
+
var r = kf(n);
|
|
7223
|
+
if (r.proxy === !1) return $p({}, e, t, r);
|
|
7224
|
+
var i = em(r), a = Sm($p({}, void 0, void 0, r));
|
|
7225
|
+
return tm(a, e, t, i), a;
|
|
7224
7226
|
},
|
|
7225
|
-
ref:
|
|
7226
|
-
shallow:
|
|
7227
|
-
deep:
|
|
7228
|
-
struct:
|
|
7229
|
-
}, J =
|
|
7230
|
-
Object.keys(
|
|
7231
|
-
return J[e] =
|
|
7227
|
+
ref: Mf,
|
|
7228
|
+
shallow: jf,
|
|
7229
|
+
deep: Af,
|
|
7230
|
+
struct: Nf
|
|
7231
|
+
}, J = Ff;
|
|
7232
|
+
Object.keys(If).forEach(function(e) {
|
|
7233
|
+
return J[e] = If[e];
|
|
7232
7234
|
});
|
|
7233
|
-
function
|
|
7235
|
+
function Lf(e) {
|
|
7234
7236
|
K("Expected one or two arguments to observable." + e + ". Did you accidentally try to use observable." + e + " as decorator?");
|
|
7235
7237
|
}
|
|
7236
|
-
var
|
|
7238
|
+
var Rf = xf(!1, function(e, t, n, r, i) {
|
|
7237
7239
|
var a = n.get, o = n.set, s = i[0] || {};
|
|
7238
|
-
|
|
7240
|
+
Gm(e).addComputedProp(e, t, df({
|
|
7239
7241
|
get: a,
|
|
7240
7242
|
set: o,
|
|
7241
7243
|
context: e
|
|
7242
7244
|
}, s));
|
|
7243
|
-
}),
|
|
7244
|
-
if (typeof t == "string" || typeof e == "object" && e && arguments.length === 1) return
|
|
7245
|
+
}), zf = Rf({ equals: cf.structural }), Bf = function(e, t, n) {
|
|
7246
|
+
if (typeof t == "string" || typeof e == "object" && e && arguments.length === 1) return Rf.apply(null, arguments);
|
|
7245
7247
|
var r = typeof t == "object" ? t : {};
|
|
7246
|
-
return r.get = e, r.set = typeof t == "function" ? t : r.set, r.name = r.name || e.name || "", new
|
|
7248
|
+
return r.get = e, r.set = typeof t == "function" ? t : r.set, r.name = r.name || e.name || "", new fp(r);
|
|
7247
7249
|
};
|
|
7248
|
-
|
|
7250
|
+
Bf.struct = zf;
|
|
7249
7251
|
var Y;
|
|
7250
7252
|
(function(e) {
|
|
7251
7253
|
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";
|
|
7252
7254
|
})(Y || (Y = {}));
|
|
7253
|
-
var
|
|
7255
|
+
var Vf;
|
|
7254
7256
|
(function(e) {
|
|
7255
7257
|
e[e.NONE = 0] = "NONE", e[e.LOG = 1] = "LOG", e[e.BREAK = 2] = "BREAK";
|
|
7256
|
-
})(
|
|
7257
|
-
var
|
|
7258
|
+
})(Vf || (Vf = {}));
|
|
7259
|
+
var Hf = function() {
|
|
7258
7260
|
function e(e) {
|
|
7259
7261
|
this.cause = e;
|
|
7260
7262
|
}
|
|
7261
7263
|
return e;
|
|
7262
7264
|
}();
|
|
7263
|
-
function Hf(e) {
|
|
7264
|
-
return e instanceof Vf;
|
|
7265
|
-
}
|
|
7266
7265
|
function Uf(e) {
|
|
7266
|
+
return e instanceof Hf;
|
|
7267
|
+
}
|
|
7268
|
+
function Wf(e) {
|
|
7267
7269
|
switch (e.dependenciesState) {
|
|
7268
7270
|
case Y.UP_TO_DATE: return !1;
|
|
7269
7271
|
case Y.NOT_TRACKING:
|
|
7270
7272
|
case Y.STALE: return !0;
|
|
7271
7273
|
case Y.POSSIBLY_STALE:
|
|
7272
|
-
for (var t =
|
|
7274
|
+
for (var t = Qf(!0), n = Xf(), r = e.observing, i = r.length, a = 0; a < i; a++) {
|
|
7273
7275
|
var o = r[a];
|
|
7274
|
-
if (
|
|
7276
|
+
if (pp(o)) {
|
|
7275
7277
|
if (X.disableErrorBoundaries) o.get();
|
|
7276
7278
|
else try {
|
|
7277
7279
|
o.get();
|
|
7278
7280
|
} catch {
|
|
7279
|
-
return
|
|
7281
|
+
return Zf(n), $f(t), !0;
|
|
7280
7282
|
}
|
|
7281
|
-
if (e.dependenciesState === Y.STALE) return
|
|
7283
|
+
if (e.dependenciesState === Y.STALE) return Zf(n), $f(t), !0;
|
|
7282
7284
|
}
|
|
7283
7285
|
}
|
|
7284
|
-
return
|
|
7286
|
+
return ep(e), Zf(n), $f(t), !1;
|
|
7285
7287
|
}
|
|
7286
7288
|
}
|
|
7287
|
-
function
|
|
7289
|
+
function Gf(e) {
|
|
7288
7290
|
var t = e.observers.size > 0;
|
|
7289
7291
|
X.computationDepth > 0 && t && K(!1), !X.allowStateChanges && (t || X.enforceActions === "strict") && K(!1);
|
|
7290
7292
|
}
|
|
7291
|
-
function
|
|
7292
|
-
var r =
|
|
7293
|
-
|
|
7293
|
+
function Kf(e, t, n) {
|
|
7294
|
+
var r = Qf(!0);
|
|
7295
|
+
ep(e), e.newObserving = Array(e.observing.length + 100), e.unboundDepsCount = 0, e.runId = ++X.runId;
|
|
7294
7296
|
var i = X.trackingDerivation;
|
|
7295
7297
|
X.trackingDerivation = e;
|
|
7296
7298
|
var a;
|
|
@@ -7298,105 +7300,105 @@ function Gf(e, t, n) {
|
|
|
7298
7300
|
else try {
|
|
7299
7301
|
a = t.call(n);
|
|
7300
7302
|
} catch (e) {
|
|
7301
|
-
a = new
|
|
7303
|
+
a = new Hf(e);
|
|
7302
7304
|
}
|
|
7303
|
-
return X.trackingDerivation = i,
|
|
7305
|
+
return X.trackingDerivation = i, qf(e), $f(r), a;
|
|
7304
7306
|
}
|
|
7305
|
-
function
|
|
7307
|
+
function qf(e) {
|
|
7306
7308
|
for (var t = e.observing, n = e.observing = e.newObserving, r = Y.UP_TO_DATE, i = 0, a = e.unboundDepsCount, o = 0; o < a; o++) {
|
|
7307
7309
|
var s = n[o];
|
|
7308
7310
|
s.diffValue === 0 && (s.diffValue = 1, i !== o && (n[i] = s), i++), s.dependenciesState > r && (r = s.dependenciesState);
|
|
7309
7311
|
}
|
|
7310
7312
|
for (n.length = i, e.newObserving = null, a = t.length; a--;) {
|
|
7311
7313
|
var s = t[a];
|
|
7312
|
-
s.diffValue === 0 &&
|
|
7314
|
+
s.diffValue === 0 && xp(s, e), s.diffValue = 0;
|
|
7313
7315
|
}
|
|
7314
7316
|
for (; i--;) {
|
|
7315
7317
|
var s = n[i];
|
|
7316
|
-
s.diffValue === 1 && (s.diffValue = 0,
|
|
7318
|
+
s.diffValue === 1 && (s.diffValue = 0, bp(s, e));
|
|
7317
7319
|
}
|
|
7318
7320
|
r !== Y.UP_TO_DATE && (e.dependenciesState = r, e.onBecomeStale());
|
|
7319
7321
|
}
|
|
7320
|
-
function
|
|
7322
|
+
function Jf(e) {
|
|
7321
7323
|
var t = e.observing;
|
|
7322
7324
|
e.observing = [];
|
|
7323
|
-
for (var n = t.length; n--;)
|
|
7325
|
+
for (var n = t.length; n--;) xp(t[n], e);
|
|
7324
7326
|
e.dependenciesState = Y.NOT_TRACKING;
|
|
7325
7327
|
}
|
|
7326
|
-
function
|
|
7327
|
-
var t =
|
|
7328
|
+
function Yf(e) {
|
|
7329
|
+
var t = Xf();
|
|
7328
7330
|
try {
|
|
7329
7331
|
return e();
|
|
7330
7332
|
} finally {
|
|
7331
|
-
|
|
7333
|
+
Zf(t);
|
|
7332
7334
|
}
|
|
7333
7335
|
}
|
|
7334
|
-
function
|
|
7336
|
+
function Xf() {
|
|
7335
7337
|
var e = X.trackingDerivation;
|
|
7336
7338
|
return X.trackingDerivation = null, e;
|
|
7337
7339
|
}
|
|
7338
|
-
function
|
|
7340
|
+
function Zf(e) {
|
|
7339
7341
|
X.trackingDerivation = e;
|
|
7340
7342
|
}
|
|
7341
|
-
function
|
|
7343
|
+
function Qf(e) {
|
|
7342
7344
|
var t = X.allowStateReads;
|
|
7343
7345
|
return X.allowStateReads = e, t;
|
|
7344
7346
|
}
|
|
7345
|
-
function
|
|
7347
|
+
function $f(e) {
|
|
7346
7348
|
X.allowStateReads = e;
|
|
7347
7349
|
}
|
|
7348
|
-
function
|
|
7350
|
+
function ep(e) {
|
|
7349
7351
|
if (e.dependenciesState !== Y.UP_TO_DATE) {
|
|
7350
7352
|
e.dependenciesState = Y.UP_TO_DATE;
|
|
7351
7353
|
for (var t = e.observing, n = t.length; n--;) t[n].lowestObserverState = Y.UP_TO_DATE;
|
|
7352
7354
|
}
|
|
7353
7355
|
}
|
|
7354
|
-
var
|
|
7355
|
-
|
|
7356
|
-
function
|
|
7356
|
+
var tp = 0, np = 1, rp = Object.getOwnPropertyDescriptor(function() {}, "name");
|
|
7357
|
+
rp && rp.configurable;
|
|
7358
|
+
function ip(e, t, n) {
|
|
7357
7359
|
var r = function() {
|
|
7358
|
-
return
|
|
7360
|
+
return ap(e, t, n || this, arguments);
|
|
7359
7361
|
};
|
|
7360
7362
|
return r.isMobxAction = !0, r;
|
|
7361
7363
|
}
|
|
7362
|
-
function
|
|
7363
|
-
var i =
|
|
7364
|
+
function ap(e, t, n, r) {
|
|
7365
|
+
var i = op(e, n, r);
|
|
7364
7366
|
try {
|
|
7365
7367
|
return t.apply(n, r);
|
|
7366
7368
|
} catch (e) {
|
|
7367
7369
|
throw i.error = e, e;
|
|
7368
7370
|
} finally {
|
|
7369
|
-
|
|
7371
|
+
sp(i);
|
|
7370
7372
|
}
|
|
7371
7373
|
}
|
|
7372
|
-
function
|
|
7373
|
-
var r = $() && !!e, i = 0, a =
|
|
7374
|
+
function op(e, t, n) {
|
|
7375
|
+
var r = $() && !!e, i = 0, a = Xf();
|
|
7374
7376
|
Z();
|
|
7375
7377
|
var o = {
|
|
7376
7378
|
prevDerivation: a,
|
|
7377
|
-
prevAllowStateChanges:
|
|
7378
|
-
prevAllowStateReads:
|
|
7379
|
+
prevAllowStateChanges: cp(!0),
|
|
7380
|
+
prevAllowStateReads: Qf(!0),
|
|
7379
7381
|
notifySpy: r,
|
|
7380
7382
|
startTime: i,
|
|
7381
|
-
actionId:
|
|
7382
|
-
parentActionId:
|
|
7383
|
+
actionId: np++,
|
|
7384
|
+
parentActionId: tp
|
|
7383
7385
|
};
|
|
7384
|
-
return
|
|
7385
|
-
}
|
|
7386
|
-
function op(e) {
|
|
7387
|
-
ep !== e.actionId && K("invalid action stack. did you forget to finish an action?"), ep = e.parentActionId, e.error !== void 0 && (X.suppressReactionErrors = !0), cp(e.prevAllowStateChanges), Qf(e.prevAllowStateReads), Q(), Xf(e.prevDerivation), e.notifySpy, X.suppressReactionErrors = !1;
|
|
7386
|
+
return tp = o.actionId, o;
|
|
7388
7387
|
}
|
|
7389
7388
|
function sp(e) {
|
|
7389
|
+
tp !== e.actionId && K("invalid action stack. did you forget to finish an action?"), tp = e.parentActionId, e.error !== void 0 && (X.suppressReactionErrors = !0), lp(e.prevAllowStateChanges), $f(e.prevAllowStateReads), Q(), Zf(e.prevDerivation), e.notifySpy, X.suppressReactionErrors = !1;
|
|
7390
|
+
}
|
|
7391
|
+
function cp(e) {
|
|
7390
7392
|
var t = X.allowStateChanges;
|
|
7391
7393
|
return X.allowStateChanges = e, t;
|
|
7392
7394
|
}
|
|
7393
|
-
function
|
|
7395
|
+
function lp(e) {
|
|
7394
7396
|
X.allowStateChanges = e;
|
|
7395
7397
|
}
|
|
7396
|
-
var
|
|
7397
|
-
|
|
7398
|
+
var up = function(e) {
|
|
7399
|
+
uf(t, e);
|
|
7398
7400
|
function t(t, n, r, i, a) {
|
|
7399
|
-
r === void 0 && (r = "ObservableValue@" + G()), i === void 0 && (i = !0), a === void 0 && (a =
|
|
7401
|
+
r === void 0 && (r = "ObservableValue@" + G()), i === void 0 && (i = !0), a === void 0 && (a = cf.default);
|
|
7400
7402
|
var o = e.call(this, r) || this;
|
|
7401
7403
|
return o.enhancer = n, o.name = r, o.equals = a, o.hasUnreportedChange = !1, o.value = n(t, void 0, r), o;
|
|
7402
7404
|
}
|
|
@@ -7405,8 +7407,8 @@ var lp = function(e) {
|
|
|
7405
7407
|
}, t.prototype.set = function(e) {
|
|
7406
7408
|
this.value, e = this.prepareNewValue(e), e !== X.UNCHANGED && this.setNewValue(e);
|
|
7407
7409
|
}, t.prototype.prepareNewValue = function(e) {
|
|
7408
|
-
if (
|
|
7409
|
-
var t =
|
|
7410
|
+
if (Gf(this), Cm(this)) {
|
|
7411
|
+
var t = Tm(this, {
|
|
7410
7412
|
object: this,
|
|
7411
7413
|
type: "update",
|
|
7412
7414
|
newValue: e
|
|
@@ -7417,7 +7419,7 @@ var lp = function(e) {
|
|
|
7417
7419
|
return e = this.enhancer(e, this.value, this.name), this.equals(this.value, e) ? X.UNCHANGED : e;
|
|
7418
7420
|
}, t.prototype.setNewValue = function(e) {
|
|
7419
7421
|
var t = this.value;
|
|
7420
|
-
this.value = e, this.reportChanged(),
|
|
7422
|
+
this.value = e, this.reportChanged(), Em(this) && Om(this, {
|
|
7421
7423
|
type: "update",
|
|
7422
7424
|
object: this,
|
|
7423
7425
|
newValue: e,
|
|
@@ -7426,29 +7428,29 @@ var lp = function(e) {
|
|
|
7426
7428
|
}, t.prototype.get = function() {
|
|
7427
7429
|
return this.reportObserved(), this.dehanceValue(this.value);
|
|
7428
7430
|
}, t.prototype.intercept = function(e) {
|
|
7429
|
-
return
|
|
7431
|
+
return wm(this, e);
|
|
7430
7432
|
}, t.prototype.observe = function(e, t) {
|
|
7431
7433
|
return t && e({
|
|
7432
7434
|
object: this,
|
|
7433
7435
|
type: "update",
|
|
7434
7436
|
newValue: this.value,
|
|
7435
7437
|
oldValue: void 0
|
|
7436
|
-
}),
|
|
7438
|
+
}), Dm(this, e);
|
|
7437
7439
|
}, t.prototype.toJSON = function() {
|
|
7438
7440
|
return this.get();
|
|
7439
7441
|
}, t.prototype.toString = function() {
|
|
7440
7442
|
return this.name + "[" + this.value + "]";
|
|
7441
7443
|
}, t.prototype.valueOf = function() {
|
|
7442
|
-
return
|
|
7444
|
+
return Qd(this.get());
|
|
7443
7445
|
}, t.prototype[Symbol.toPrimitive] = function() {
|
|
7444
7446
|
return this.valueOf();
|
|
7445
7447
|
}, t;
|
|
7446
|
-
}(
|
|
7448
|
+
}(ef), dp = qd("ObservableValue", up), fp = function() {
|
|
7447
7449
|
function e(e) {
|
|
7448
|
-
this.dependenciesState = Y.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 = Y.UP_TO_DATE, this.unboundDepsCount = 0, this.__mapid = "#" + G(), this.value = new
|
|
7450
|
+
this.dependenciesState = Y.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 = Y.UP_TO_DATE, this.unboundDepsCount = 0, this.__mapid = "#" + G(), this.value = new Hf(null), this.isComputing = !1, this.isRunningSetter = !1, this.isTracing = Vf.NONE, Ld(e.get, "missing option for computed: get"), this.derivation = e.get, this.name = e.name || "ComputedValue@" + G(), e.set && (this.setter = ip(this.name + "-setter", e.set)), this.equals = e.equals || (e.compareStructural || e.struct ? cf.structural : cf.default), this.scope = e.context, this.requiresReaction = !!e.requiresReaction, this.keepAlive = !!e.keepAlive;
|
|
7449
7451
|
}
|
|
7450
7452
|
return e.prototype.onBecomeStale = function() {
|
|
7451
|
-
|
|
7453
|
+
Ep(this);
|
|
7452
7454
|
}, e.prototype.onBecomeObserved = function() {
|
|
7453
7455
|
this.onBecomeObservedListeners && this.onBecomeObservedListeners.forEach(function(e) {
|
|
7454
7456
|
return e();
|
|
@@ -7458,51 +7460,51 @@ var lp = function(e) {
|
|
|
7458
7460
|
return e();
|
|
7459
7461
|
});
|
|
7460
7462
|
}, e.prototype.get = function() {
|
|
7461
|
-
this.isComputing && K("Cycle detected in computation " + this.name + ": " + this.derivation), X.inBatch === 0 && this.observers.size === 0 && !this.keepAlive ?
|
|
7463
|
+
this.isComputing && K("Cycle detected in computation " + this.name + ": " + this.derivation), X.inBatch === 0 && this.observers.size === 0 && !this.keepAlive ? Wf(this) && (this.warnAboutUntrackedRead(), Z(), this.value = this.computeValue(!1), Q()) : (Cp(this), Wf(this) && this.trackAndCompute() && Tp(this));
|
|
7462
7464
|
var e = this.value;
|
|
7463
|
-
if (
|
|
7465
|
+
if (Uf(e)) throw e.cause;
|
|
7464
7466
|
return e;
|
|
7465
7467
|
}, e.prototype.peek = function() {
|
|
7466
7468
|
var e = this.computeValue(!1);
|
|
7467
|
-
if (
|
|
7469
|
+
if (Uf(e)) throw e.cause;
|
|
7468
7470
|
return e;
|
|
7469
7471
|
}, e.prototype.set = function(e) {
|
|
7470
7472
|
if (this.setter) {
|
|
7471
|
-
|
|
7473
|
+
Ld(!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;
|
|
7472
7474
|
try {
|
|
7473
7475
|
this.setter.call(this.scope, e);
|
|
7474
7476
|
} finally {
|
|
7475
7477
|
this.isRunningSetter = !1;
|
|
7476
7478
|
}
|
|
7477
|
-
} else
|
|
7479
|
+
} else Ld(!1, !1);
|
|
7478
7480
|
}, e.prototype.trackAndCompute = function() {
|
|
7479
|
-
var e = this.value, t = this.dependenciesState === Y.NOT_TRACKING, n = this.computeValue(!0), r = t ||
|
|
7481
|
+
var e = this.value, t = this.dependenciesState === Y.NOT_TRACKING, n = this.computeValue(!0), r = t || Uf(e) || Uf(n) || !this.equals(e, n);
|
|
7480
7482
|
return r && (this.value = n), r;
|
|
7481
7483
|
}, e.prototype.computeValue = function(e) {
|
|
7482
7484
|
this.isComputing = !0, X.computationDepth++;
|
|
7483
7485
|
var t;
|
|
7484
|
-
if (e) t =
|
|
7486
|
+
if (e) t = Kf(this, this.derivation, this.scope);
|
|
7485
7487
|
else if (X.disableErrorBoundaries === !0) t = this.derivation.call(this.scope);
|
|
7486
7488
|
else try {
|
|
7487
7489
|
t = this.derivation.call(this.scope);
|
|
7488
7490
|
} catch (e) {
|
|
7489
|
-
t = new
|
|
7491
|
+
t = new Hf(e);
|
|
7490
7492
|
}
|
|
7491
7493
|
return X.computationDepth--, this.isComputing = !1, t;
|
|
7492
7494
|
}, e.prototype.suspend = function() {
|
|
7493
|
-
this.keepAlive || (
|
|
7495
|
+
this.keepAlive || (Jf(this), this.value = void 0);
|
|
7494
7496
|
}, e.prototype.observe = function(e, t) {
|
|
7495
7497
|
var n = this, r = !0, i = void 0;
|
|
7496
|
-
return
|
|
7498
|
+
return Wp(function() {
|
|
7497
7499
|
var a = n.get();
|
|
7498
7500
|
if (!r || t) {
|
|
7499
|
-
var o =
|
|
7501
|
+
var o = Xf();
|
|
7500
7502
|
e({
|
|
7501
7503
|
type: "update",
|
|
7502
7504
|
object: n,
|
|
7503
7505
|
newValue: a,
|
|
7504
7506
|
oldValue: i
|
|
7505
|
-
}),
|
|
7507
|
+
}), Zf(o);
|
|
7506
7508
|
}
|
|
7507
7509
|
r = !1, i = a;
|
|
7508
7510
|
});
|
|
@@ -7511,35 +7513,35 @@ var lp = function(e) {
|
|
|
7511
7513
|
}, e.prototype.toString = function() {
|
|
7512
7514
|
return this.name + "[" + this.derivation.toString() + "]";
|
|
7513
7515
|
}, e.prototype.valueOf = function() {
|
|
7514
|
-
return
|
|
7516
|
+
return Qd(this.get());
|
|
7515
7517
|
}, e.prototype[Symbol.toPrimitive] = function() {
|
|
7516
7518
|
return this.valueOf();
|
|
7517
7519
|
}, e;
|
|
7518
|
-
}(),
|
|
7520
|
+
}(), pp = qd("ComputedValue", fp), mp = function() {
|
|
7519
7521
|
function e() {
|
|
7520
7522
|
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;
|
|
7521
7523
|
}
|
|
7522
7524
|
return e;
|
|
7523
|
-
}(),
|
|
7524
|
-
function
|
|
7525
|
-
return typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self :
|
|
7526
|
-
}
|
|
7527
|
-
var
|
|
7528
|
-
var e =
|
|
7529
|
-
return e.__mobxInstanceCount > 0 && !e.__mobxGlobals && (
|
|
7530
|
-
|
|
7531
|
-
}, 1), new
|
|
7525
|
+
}(), hp = {};
|
|
7526
|
+
function gp() {
|
|
7527
|
+
return typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : hp;
|
|
7528
|
+
}
|
|
7529
|
+
var _p = !0, vp = !1, X = (function() {
|
|
7530
|
+
var e = gp();
|
|
7531
|
+
return e.__mobxInstanceCount > 0 && !e.__mobxGlobals && (_p = !1), e.__mobxGlobals && e.__mobxGlobals.version !== new mp().version && (_p = !1), _p ? e.__mobxGlobals ? (e.__mobxInstanceCount += 1, e.__mobxGlobals.UNCHANGED || (e.__mobxGlobals.UNCHANGED = {}), e.__mobxGlobals) : (e.__mobxInstanceCount = 1, e.__mobxGlobals = new mp()) : (setTimeout(function() {
|
|
7532
|
+
vp || K("There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`");
|
|
7533
|
+
}, 1), new mp());
|
|
7532
7534
|
})();
|
|
7533
|
-
function
|
|
7534
|
-
(X.pendingReactions.length || X.inBatch || X.isRunningReactions) && K("isolateGlobalState should be called before MobX is running any reactions"),
|
|
7535
|
+
function yp() {
|
|
7536
|
+
(X.pendingReactions.length || X.inBatch || X.isRunningReactions) && K("isolateGlobalState should be called before MobX is running any reactions"), vp = !0, _p && (--gp().__mobxInstanceCount === 0 && (gp().__mobxGlobals = void 0), X = new mp());
|
|
7535
7537
|
}
|
|
7536
|
-
function
|
|
7538
|
+
function bp(e, t) {
|
|
7537
7539
|
e.observers.add(t), e.lowestObserverState > t.dependenciesState && (e.lowestObserverState = t.dependenciesState);
|
|
7538
7540
|
}
|
|
7539
|
-
function
|
|
7540
|
-
e.observers.delete(t), e.observers.size === 0 &&
|
|
7541
|
+
function xp(e, t) {
|
|
7542
|
+
e.observers.delete(t), e.observers.size === 0 && Sp(e);
|
|
7541
7543
|
}
|
|
7542
|
-
function
|
|
7544
|
+
function Sp(e) {
|
|
7543
7545
|
e.isPendingUnobservation === !1 && (e.isPendingUnobservation = !0, X.pendingUnobservations.push(e));
|
|
7544
7546
|
}
|
|
7545
7547
|
function Z() {
|
|
@@ -7547,61 +7549,61 @@ function Z() {
|
|
|
7547
7549
|
}
|
|
7548
7550
|
function Q() {
|
|
7549
7551
|
if (--X.inBatch === 0) {
|
|
7550
|
-
|
|
7552
|
+
Mp();
|
|
7551
7553
|
for (var e = X.pendingUnobservations, t = 0; t < e.length; t++) {
|
|
7552
7554
|
var n = e[t];
|
|
7553
|
-
n.isPendingUnobservation = !1, n.observers.size === 0 && (n.isBeingObserved && (n.isBeingObserved = !1, n.onBecomeUnobserved()), n instanceof
|
|
7555
|
+
n.isPendingUnobservation = !1, n.observers.size === 0 && (n.isBeingObserved && (n.isBeingObserved = !1, n.onBecomeUnobserved()), n instanceof fp && n.suspend());
|
|
7554
7556
|
}
|
|
7555
7557
|
X.pendingUnobservations = [];
|
|
7556
7558
|
}
|
|
7557
7559
|
}
|
|
7558
|
-
function
|
|
7560
|
+
function Cp(e) {
|
|
7559
7561
|
var t = X.trackingDerivation;
|
|
7560
|
-
return t === null ? (e.observers.size === 0 && X.inBatch > 0 &&
|
|
7562
|
+
return t === null ? (e.observers.size === 0 && X.inBatch > 0 && Sp(e), !1) : (t.runId !== e.lastAccessedBy && (e.lastAccessedBy = t.runId, t.newObserving[t.unboundDepsCount++] = e, e.isBeingObserved || (e.isBeingObserved = !0, e.onBecomeObserved())), !0);
|
|
7561
7563
|
}
|
|
7562
|
-
function
|
|
7564
|
+
function wp(e) {
|
|
7563
7565
|
e.lowestObserverState !== Y.STALE && (e.lowestObserverState = Y.STALE, e.observers.forEach(function(t) {
|
|
7564
|
-
t.dependenciesState === Y.UP_TO_DATE && (t.isTracing !==
|
|
7566
|
+
t.dependenciesState === Y.UP_TO_DATE && (t.isTracing !== Vf.NONE && Dp(t, e), t.onBecomeStale()), t.dependenciesState = Y.STALE;
|
|
7565
7567
|
}));
|
|
7566
7568
|
}
|
|
7567
|
-
function
|
|
7569
|
+
function Tp(e) {
|
|
7568
7570
|
e.lowestObserverState !== Y.STALE && (e.lowestObserverState = Y.STALE, e.observers.forEach(function(t) {
|
|
7569
7571
|
t.dependenciesState === Y.POSSIBLY_STALE ? t.dependenciesState = Y.STALE : t.dependenciesState === Y.UP_TO_DATE && (e.lowestObserverState = Y.UP_TO_DATE);
|
|
7570
7572
|
}));
|
|
7571
7573
|
}
|
|
7572
|
-
function
|
|
7574
|
+
function Ep(e) {
|
|
7573
7575
|
e.lowestObserverState === Y.UP_TO_DATE && (e.lowestObserverState = Y.POSSIBLY_STALE, e.observers.forEach(function(t) {
|
|
7574
|
-
t.dependenciesState === Y.UP_TO_DATE && (t.dependenciesState = Y.POSSIBLY_STALE, t.isTracing !==
|
|
7576
|
+
t.dependenciesState === Y.UP_TO_DATE && (t.dependenciesState = Y.POSSIBLY_STALE, t.isTracing !== Vf.NONE && Dp(t, e), t.onBecomeStale());
|
|
7575
7577
|
}));
|
|
7576
7578
|
}
|
|
7577
|
-
function
|
|
7578
|
-
if (console.log("[mobx.trace] '" + e.name + "' is invalidated due to a change in: '" + t.name + "'"), e.isTracing ===
|
|
7579
|
+
function Dp(e, t) {
|
|
7580
|
+
if (console.log("[mobx.trace] '" + e.name + "' is invalidated due to a change in: '" + t.name + "'"), e.isTracing === Vf.BREAK) {
|
|
7579
7581
|
var n = [];
|
|
7580
|
-
|
|
7582
|
+
Op(nm(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 fp ? e.derivation.toString().replace(/[*]\//g, "/") : "") + "\n\nThe dependencies for this derivation are:\n\n" + n.join("\n") + "\n*/\n ")();
|
|
7581
7583
|
}
|
|
7582
7584
|
}
|
|
7583
|
-
function
|
|
7585
|
+
function Op(e, t, n) {
|
|
7584
7586
|
if (t.length >= 1e3) {
|
|
7585
7587
|
t.push("(and many more)");
|
|
7586
7588
|
return;
|
|
7587
7589
|
}
|
|
7588
7590
|
t.push("" + Array(n).join(" ") + e.name), e.dependencies && e.dependencies.forEach(function(e) {
|
|
7589
|
-
return
|
|
7591
|
+
return Op(e, t, n + 1);
|
|
7590
7592
|
});
|
|
7591
7593
|
}
|
|
7592
|
-
var
|
|
7594
|
+
var kp = function() {
|
|
7593
7595
|
function e(e, t, n, r) {
|
|
7594
|
-
e === void 0 && (e = "Reaction@" + G()), r === void 0 && (r = !1), this.name = e, this.onInvalidate = t, this.errorHandler = n, this.requiresObservable = r, this.observing = [], this.newObserving = [], this.dependenciesState = Y.NOT_TRACKING, this.diffValue = 0, this.runId = 0, this.unboundDepsCount = 0, this.__mapid = "#" + G(), this.isDisposed = !1, this._isScheduled = !1, this._isTrackPending = !1, this._isRunning = !1, this.isTracing =
|
|
7596
|
+
e === void 0 && (e = "Reaction@" + G()), r === void 0 && (r = !1), this.name = e, this.onInvalidate = t, this.errorHandler = n, this.requiresObservable = r, this.observing = [], this.newObserving = [], this.dependenciesState = Y.NOT_TRACKING, this.diffValue = 0, this.runId = 0, this.unboundDepsCount = 0, this.__mapid = "#" + G(), this.isDisposed = !1, this._isScheduled = !1, this._isTrackPending = !1, this._isRunning = !1, this.isTracing = Vf.NONE;
|
|
7595
7597
|
}
|
|
7596
7598
|
return e.prototype.onBecomeStale = function() {
|
|
7597
7599
|
this.schedule();
|
|
7598
7600
|
}, e.prototype.schedule = function() {
|
|
7599
|
-
this._isScheduled || (this._isScheduled = !0, X.pendingReactions.push(this),
|
|
7601
|
+
this._isScheduled || (this._isScheduled = !0, X.pendingReactions.push(this), Mp());
|
|
7600
7602
|
}, e.prototype.isScheduled = function() {
|
|
7601
7603
|
return this._isScheduled;
|
|
7602
7604
|
}, e.prototype.runReaction = function() {
|
|
7603
7605
|
if (!this.isDisposed) {
|
|
7604
|
-
if (Z(), this._isScheduled = !1,
|
|
7606
|
+
if (Z(), this._isScheduled = !1, Wf(this)) {
|
|
7605
7607
|
this._isTrackPending = !0;
|
|
7606
7608
|
try {
|
|
7607
7609
|
this.onInvalidate(), this._isTrackPending;
|
|
@@ -7614,8 +7616,8 @@ var Op = function() {
|
|
|
7614
7616
|
}, e.prototype.track = function(e) {
|
|
7615
7617
|
if (!this.isDisposed) {
|
|
7616
7618
|
Z(), this._isRunning = !0;
|
|
7617
|
-
var t =
|
|
7618
|
-
this._isRunning = !1, this._isTrackPending = !1, this.isDisposed &&
|
|
7619
|
+
var t = Kf(this, e, void 0);
|
|
7620
|
+
this._isRunning = !1, this._isTrackPending = !1, this.isDisposed && Jf(this), Uf(t) && this.reportExceptionInDerivation(t.cause), Q();
|
|
7619
7621
|
}
|
|
7620
7622
|
}, e.prototype.reportExceptionInDerivation = function(e) {
|
|
7621
7623
|
var t = this;
|
|
@@ -7629,33 +7631,33 @@ var Op = function() {
|
|
|
7629
7631
|
return n(e, t);
|
|
7630
7632
|
});
|
|
7631
7633
|
}, e.prototype.dispose = function() {
|
|
7632
|
-
this.isDisposed || (this.isDisposed = !0, this._isRunning || (Z(),
|
|
7634
|
+
this.isDisposed || (this.isDisposed = !0, this._isRunning || (Z(), Jf(this), Q()));
|
|
7633
7635
|
}, e.prototype.getDisposer = function() {
|
|
7634
7636
|
var e = this.dispose.bind(this);
|
|
7635
7637
|
return e[q] = this, e;
|
|
7636
7638
|
}, e.prototype.toString = function() {
|
|
7637
7639
|
return "Reaction[" + this.name + "]";
|
|
7638
7640
|
}, e.prototype.trace = function(e) {
|
|
7639
|
-
e === void 0 && (e = !1),
|
|
7641
|
+
e === void 0 && (e = !1), pm(this, e);
|
|
7640
7642
|
}, e;
|
|
7641
|
-
}(),
|
|
7643
|
+
}(), Ap = 100, jp = function(e) {
|
|
7642
7644
|
return e();
|
|
7643
7645
|
};
|
|
7644
|
-
function jp() {
|
|
7645
|
-
X.inBatch > 0 || X.isRunningReactions || Ap(Mp);
|
|
7646
|
-
}
|
|
7647
7646
|
function Mp() {
|
|
7647
|
+
X.inBatch > 0 || X.isRunningReactions || jp(Np);
|
|
7648
|
+
}
|
|
7649
|
+
function Np() {
|
|
7648
7650
|
X.isRunningReactions = !0;
|
|
7649
7651
|
for (var e = X.pendingReactions, t = 0; e.length > 0;) {
|
|
7650
|
-
++t ===
|
|
7652
|
+
++t === Ap && (console.error("Reaction doesn't converge to a stable state after " + Ap + " iterations." + (" Probably there is a cycle in the reactive function: " + e[0])), e.splice(0));
|
|
7651
7653
|
for (var n = e.splice(0), r = 0, i = n.length; r < i; r++) n[r].runReaction();
|
|
7652
7654
|
}
|
|
7653
7655
|
X.isRunningReactions = !1;
|
|
7654
7656
|
}
|
|
7655
|
-
var
|
|
7656
|
-
function
|
|
7657
|
-
var t =
|
|
7658
|
-
|
|
7657
|
+
var Pp = qd("Reaction", kp);
|
|
7658
|
+
function Fp(e) {
|
|
7659
|
+
var t = jp;
|
|
7660
|
+
jp = function(n) {
|
|
7659
7661
|
return e(function() {
|
|
7660
7662
|
return t(n);
|
|
7661
7663
|
});
|
|
@@ -7664,17 +7666,17 @@ function Pp(e) {
|
|
|
7664
7666
|
function $() {
|
|
7665
7667
|
return !1;
|
|
7666
7668
|
}
|
|
7667
|
-
function
|
|
7669
|
+
function Ip(e) {
|
|
7668
7670
|
return console.warn("[mobx.spy] Is a no-op in production builds"), function() {};
|
|
7669
7671
|
}
|
|
7670
|
-
function
|
|
7672
|
+
function Lp() {
|
|
7671
7673
|
K(!1);
|
|
7672
7674
|
}
|
|
7673
|
-
function
|
|
7675
|
+
function Rp(e) {
|
|
7674
7676
|
return function(t, n, r) {
|
|
7675
7677
|
if (r) {
|
|
7676
7678
|
if (r.value) return {
|
|
7677
|
-
value:
|
|
7679
|
+
value: ip(e, r.value),
|
|
7678
7680
|
enumerable: !1,
|
|
7679
7681
|
configurable: !0,
|
|
7680
7682
|
writable: !0
|
|
@@ -7685,65 +7687,65 @@ function Lp(e) {
|
|
|
7685
7687
|
configurable: !0,
|
|
7686
7688
|
writable: !0,
|
|
7687
7689
|
initializer: function() {
|
|
7688
|
-
return
|
|
7690
|
+
return ip(e, i.call(this));
|
|
7689
7691
|
}
|
|
7690
7692
|
};
|
|
7691
7693
|
}
|
|
7692
|
-
return
|
|
7694
|
+
return zp(e).apply(this, arguments);
|
|
7693
7695
|
};
|
|
7694
7696
|
}
|
|
7695
|
-
function
|
|
7697
|
+
function zp(e) {
|
|
7696
7698
|
return function(t, n, r) {
|
|
7697
7699
|
Object.defineProperty(t, n, {
|
|
7698
7700
|
configurable: !0,
|
|
7699
7701
|
enumerable: !1,
|
|
7700
7702
|
get: function() {},
|
|
7701
7703
|
set: function(t) {
|
|
7702
|
-
|
|
7704
|
+
Wd(this, n, Vp(e, t));
|
|
7703
7705
|
}
|
|
7704
7706
|
});
|
|
7705
7707
|
};
|
|
7706
7708
|
}
|
|
7707
|
-
function
|
|
7708
|
-
return r === !0 ? (
|
|
7709
|
+
function Bp(e, t, n, r) {
|
|
7710
|
+
return r === !0 ? (Up(e, t, n.value), null) : n ? {
|
|
7709
7711
|
configurable: !0,
|
|
7710
7712
|
enumerable: !1,
|
|
7711
7713
|
get: function() {
|
|
7712
|
-
return
|
|
7714
|
+
return Up(this, t, n.value || n.initializer.call(this)), this[t];
|
|
7713
7715
|
},
|
|
7714
|
-
set:
|
|
7716
|
+
set: Lp
|
|
7715
7717
|
} : {
|
|
7716
7718
|
enumerable: !1,
|
|
7717
7719
|
configurable: !0,
|
|
7718
7720
|
set: function(e) {
|
|
7719
|
-
|
|
7721
|
+
Up(this, t, e);
|
|
7720
7722
|
},
|
|
7721
7723
|
get: function() {}
|
|
7722
7724
|
};
|
|
7723
7725
|
}
|
|
7724
|
-
var
|
|
7725
|
-
if (arguments.length === 1 && typeof e == "function") return
|
|
7726
|
-
if (arguments.length === 2 && typeof t == "function") return
|
|
7727
|
-
if (arguments.length === 1 && typeof e == "string") return
|
|
7728
|
-
if (r === !0)
|
|
7729
|
-
else return
|
|
7726
|
+
var Vp = function(e, t, n, r) {
|
|
7727
|
+
if (arguments.length === 1 && typeof e == "function") return ip(e.name || "<unnamed action>", e);
|
|
7728
|
+
if (arguments.length === 2 && typeof t == "function") return ip(e, t);
|
|
7729
|
+
if (arguments.length === 1 && typeof e == "string") return Rp(e);
|
|
7730
|
+
if (r === !0) Wd(e, t, ip(e.name || t, n.value, this));
|
|
7731
|
+
else return Rp(t).apply(null, arguments);
|
|
7730
7732
|
};
|
|
7731
|
-
|
|
7732
|
-
function
|
|
7733
|
-
return
|
|
7733
|
+
Vp.bound = Bp;
|
|
7734
|
+
function Hp(e, t) {
|
|
7735
|
+
return ap(typeof e == "string" ? e : e.name || "<unnamed action>", typeof e == "function" ? e : t, this, void 0);
|
|
7734
7736
|
}
|
|
7735
|
-
function
|
|
7736
|
-
|
|
7737
|
+
function Up(e, t, n) {
|
|
7738
|
+
Wd(e, t, ip(t, n.bind(e)));
|
|
7737
7739
|
}
|
|
7738
|
-
function
|
|
7739
|
-
t === void 0 && (t =
|
|
7740
|
+
function Wp(e, t) {
|
|
7741
|
+
t === void 0 && (t = Id);
|
|
7740
7742
|
var n = t && t.name || e.name || "Autorun@" + G(), r = !t.scheduler && !t.delay, i;
|
|
7741
|
-
if (r) i = new
|
|
7743
|
+
if (r) i = new kp(n, function() {
|
|
7742
7744
|
this.track(s);
|
|
7743
7745
|
}, t.onError, t.requiresObservable);
|
|
7744
7746
|
else {
|
|
7745
|
-
var a =
|
|
7746
|
-
i = new
|
|
7747
|
+
var a = Kp(t), o = !1;
|
|
7748
|
+
i = new kp(n, function() {
|
|
7747
7749
|
o || (o = !0, a(function() {
|
|
7748
7750
|
o = !1, i.isDisposed || i.track(s);
|
|
7749
7751
|
}));
|
|
@@ -7754,17 +7756,17 @@ function Up(e, t) {
|
|
|
7754
7756
|
}
|
|
7755
7757
|
return i.schedule(), i.getDisposer();
|
|
7756
7758
|
}
|
|
7757
|
-
var
|
|
7759
|
+
var Gp = function(e) {
|
|
7758
7760
|
return e();
|
|
7759
7761
|
};
|
|
7760
|
-
function
|
|
7762
|
+
function Kp(e) {
|
|
7761
7763
|
return e.scheduler ? e.scheduler : e.delay ? function(t) {
|
|
7762
7764
|
return setTimeout(t, e.delay);
|
|
7763
|
-
} :
|
|
7765
|
+
} : Gp;
|
|
7764
7766
|
}
|
|
7765
|
-
function
|
|
7766
|
-
n === void 0 && (n =
|
|
7767
|
-
var r = n.name || "Reaction@" + G(), i =
|
|
7767
|
+
function qp(e, t, n) {
|
|
7768
|
+
n === void 0 && (n = Id);
|
|
7769
|
+
var r = n.name || "Reaction@" + G(), i = Vp(r, n.onError ? Jp(n.onError, t) : t), a = !n.scheduler && !n.delay, o = Kp(n), s = !0, c = !1, l, u = n.compareStructural ? cf.structural : n.equals || cf.default, d = new kp(r, function() {
|
|
7768
7770
|
s || a ? f() : c || (c = !0, o(f));
|
|
7769
7771
|
}, n.onError, n.requiresObservable);
|
|
7770
7772
|
function f() {
|
|
@@ -7778,7 +7780,7 @@ function Kp(e, t, n) {
|
|
|
7778
7780
|
}
|
|
7779
7781
|
return d.schedule(), d.getDisposer();
|
|
7780
7782
|
}
|
|
7781
|
-
function
|
|
7783
|
+
function Jp(e, t) {
|
|
7782
7784
|
return function() {
|
|
7783
7785
|
try {
|
|
7784
7786
|
return t.apply(this, arguments);
|
|
@@ -7787,22 +7789,22 @@ function qp(e, t) {
|
|
|
7787
7789
|
}
|
|
7788
7790
|
};
|
|
7789
7791
|
}
|
|
7790
|
-
function Jp(e, t, n) {
|
|
7791
|
-
return Xp("onBecomeObserved", e, t, n);
|
|
7792
|
-
}
|
|
7793
7792
|
function Yp(e, t, n) {
|
|
7794
|
-
return
|
|
7793
|
+
return Zp("onBecomeObserved", e, t, n);
|
|
7794
|
+
}
|
|
7795
|
+
function Xp(e, t, n) {
|
|
7796
|
+
return Zp("onBecomeUnobserved", e, t, n);
|
|
7795
7797
|
}
|
|
7796
|
-
function
|
|
7797
|
-
var i = typeof r == "function" ?
|
|
7798
|
+
function Zp(e, t, n, r) {
|
|
7799
|
+
var i = typeof r == "function" ? $m(t, n) : $m(t), a = typeof r == "function" ? r : n, o = e + "Listeners";
|
|
7798
7800
|
return i[o] ? i[o].add(a) : i[o] = /* @__PURE__ */ new Set([a]), typeof i[e] == "function" ? function() {
|
|
7799
7801
|
var e = i[o];
|
|
7800
7802
|
e && (e.delete(a), e.size === 0 && delete i[o]);
|
|
7801
7803
|
} : K(!1);
|
|
7802
7804
|
}
|
|
7803
|
-
function
|
|
7805
|
+
function Qp(e) {
|
|
7804
7806
|
var t = e.enforceActions, n = e.computedRequiresReaction, r = e.computedConfigurable, i = e.disableErrorBoundaries, a = e.reactionScheduler, o = e.reactionRequiresObservable, s = e.observableRequiresReaction;
|
|
7805
|
-
if (e.isolateGlobalState === !0 &&
|
|
7807
|
+
if (e.isolateGlobalState === !0 && yp(), t !== void 0) {
|
|
7806
7808
|
var c = void 0;
|
|
7807
7809
|
switch (t) {
|
|
7808
7810
|
case !0:
|
|
@@ -7821,25 +7823,25 @@ function Zp(e) {
|
|
|
7821
7823
|
}
|
|
7822
7824
|
X.enforceActions = c, X.allowStateChanges = !(c === !0 || c === "strict");
|
|
7823
7825
|
}
|
|
7824
|
-
n !== void 0 && (X.computedRequiresReaction = !!n), o !== void 0 && (X.reactionRequiresObservable = !!o), s !== void 0 && (X.observableRequiresReaction = !!s, X.allowStateReads = !X.observableRequiresReaction), r !== void 0 && (X.computedConfigurable = !!r), i !== void 0 && (i === !0 && console.warn("WARNING: Debug feature only. MobX will NOT recover from errors when `disableErrorBoundaries` is enabled."), X.disableErrorBoundaries = !!i), a &&
|
|
7826
|
+
n !== void 0 && (X.computedRequiresReaction = !!n), o !== void 0 && (X.reactionRequiresObservable = !!o), s !== void 0 && (X.observableRequiresReaction = !!s, X.allowStateReads = !X.observableRequiresReaction), r !== void 0 && (X.computedConfigurable = !!r), i !== void 0 && (i === !0 && console.warn("WARNING: Debug feature only. MobX will NOT recover from errors when `disableErrorBoundaries` is enabled."), X.disableErrorBoundaries = !!i), a && Fp(a);
|
|
7825
7827
|
}
|
|
7826
|
-
function
|
|
7827
|
-
r =
|
|
7828
|
-
var i =
|
|
7829
|
-
return
|
|
7828
|
+
function $p(e, t, n, r) {
|
|
7829
|
+
r = kf(r);
|
|
7830
|
+
var i = em(r);
|
|
7831
|
+
return bf(e), Gm(e, r.name, i.enhancer), t && tm(e, t, n, i), e;
|
|
7830
7832
|
}
|
|
7831
|
-
function
|
|
7832
|
-
return e.defaultDecorator || (e.deep === !1 ?
|
|
7833
|
+
function em(e) {
|
|
7834
|
+
return e.defaultDecorator || (e.deep === !1 ? Mf : Af);
|
|
7833
7835
|
}
|
|
7834
|
-
function
|
|
7836
|
+
function tm(e, t, n, r) {
|
|
7835
7837
|
var i, a;
|
|
7836
7838
|
if (0) var o, s, c, l;
|
|
7837
7839
|
Z();
|
|
7838
7840
|
try {
|
|
7839
|
-
var o =
|
|
7841
|
+
var o = $d(t);
|
|
7840
7842
|
try {
|
|
7841
|
-
for (var u =
|
|
7842
|
-
var l = d.value, f = Object.getOwnPropertyDescriptor(t, l), p = (n && l in n ? n[l] : f.get ?
|
|
7843
|
+
for (var u = ff(o), d = u.next(); !d.done; d = u.next()) {
|
|
7844
|
+
var l = d.value, f = Object.getOwnPropertyDescriptor(t, l), p = (n && l in n ? n[l] : f.get ? Rf : r)(e, l, f, !0);
|
|
7843
7845
|
p && Object.defineProperty(e, l, p);
|
|
7844
7846
|
}
|
|
7845
7847
|
} catch (e) {
|
|
@@ -7855,116 +7857,116 @@ function em(e, t, n, r) {
|
|
|
7855
7857
|
Q();
|
|
7856
7858
|
}
|
|
7857
7859
|
}
|
|
7858
|
-
function
|
|
7859
|
-
return
|
|
7860
|
+
function nm(e, t) {
|
|
7861
|
+
return rm($m(e, t));
|
|
7860
7862
|
}
|
|
7861
|
-
function
|
|
7863
|
+
function rm(e) {
|
|
7862
7864
|
var t = { name: e.name };
|
|
7863
|
-
return e.observing && e.observing.length > 0 && (t.dependencies =
|
|
7865
|
+
return e.observing && e.observing.length > 0 && (t.dependencies = Bd(e.observing).map(rm)), t;
|
|
7864
7866
|
}
|
|
7865
|
-
function
|
|
7867
|
+
function im() {
|
|
7866
7868
|
this.message = "FLOW_CANCELLED";
|
|
7867
7869
|
}
|
|
7868
|
-
|
|
7869
|
-
function
|
|
7870
|
-
return e == null ? !1 : t === void 0 ?
|
|
7871
|
-
}
|
|
7872
|
-
function am(e) {
|
|
7873
|
-
return arguments.length !== 1 && K(!1), im(e);
|
|
7870
|
+
im.prototype = Object.create(Error.prototype);
|
|
7871
|
+
function am(e, t) {
|
|
7872
|
+
return e == null ? !1 : t === void 0 ? Qm(e) || !!e[q] || tf(e) || Pp(e) || pp(e) : Qm(e) ? e[q].values.has(t) : !1;
|
|
7874
7873
|
}
|
|
7875
7874
|
function om(e) {
|
|
7876
|
-
return
|
|
7875
|
+
return arguments.length !== 1 && K(!1), am(e);
|
|
7876
|
+
}
|
|
7877
|
+
function sm(e) {
|
|
7878
|
+
return Qm(e) ? e[q].getKeys() : zm(e) || Um(e) ? Array.from(e.keys()) : Fm(e) ? e.map(function(e, t) {
|
|
7877
7879
|
return t;
|
|
7878
7880
|
}) : K(!1);
|
|
7879
7881
|
}
|
|
7880
|
-
function
|
|
7881
|
-
if (arguments.length === 2 && !
|
|
7882
|
+
function cm(e, t, n) {
|
|
7883
|
+
if (arguments.length === 2 && !Um(e)) {
|
|
7882
7884
|
Z();
|
|
7883
7885
|
var r = t;
|
|
7884
7886
|
try {
|
|
7885
|
-
for (var i in r)
|
|
7887
|
+
for (var i in r) cm(e, i, r[i]);
|
|
7886
7888
|
} finally {
|
|
7887
7889
|
Q();
|
|
7888
7890
|
}
|
|
7889
7891
|
return;
|
|
7890
7892
|
}
|
|
7891
|
-
if (
|
|
7893
|
+
if (Qm(e)) {
|
|
7892
7894
|
var a = e[q];
|
|
7893
7895
|
a.values.get(t) ? a.write(t, n) : a.addObservableProp(t, n, a.defaultEnhancer);
|
|
7894
|
-
} else if (
|
|
7895
|
-
else if (
|
|
7896
|
-
else if (
|
|
7896
|
+
} else if (zm(e)) e.set(t, n);
|
|
7897
|
+
else if (Um(e)) e.add(t);
|
|
7898
|
+
else if (Fm(e)) typeof t != "number" && (t = parseInt(t, 10)), Ld(t >= 0, "Not a valid index: '" + t + "'"), Z(), t >= e.length && (e.length = t + 1), e[t] = n, Q();
|
|
7897
7899
|
else return K(!1);
|
|
7898
7900
|
}
|
|
7899
|
-
var
|
|
7901
|
+
var lm = {
|
|
7900
7902
|
detectCycles: !0,
|
|
7901
7903
|
exportMapsAsObjects: !0,
|
|
7902
7904
|
recurseEverything: !1
|
|
7903
7905
|
};
|
|
7904
|
-
function
|
|
7906
|
+
function um(e, t, n, r) {
|
|
7905
7907
|
return r.detectCycles && e.set(t, n), n;
|
|
7906
7908
|
}
|
|
7907
|
-
function
|
|
7908
|
-
if (!t.recurseEverything && !
|
|
7909
|
+
function dm(e, t, n) {
|
|
7910
|
+
if (!t.recurseEverything && !om(e) || typeof e != "object") return e;
|
|
7909
7911
|
if (e === null) return null;
|
|
7910
7912
|
if (e instanceof Date) return e;
|
|
7911
|
-
if (
|
|
7912
|
-
if (
|
|
7913
|
-
if (
|
|
7914
|
-
var r =
|
|
7915
|
-
return
|
|
7913
|
+
if (dp(e)) return dm(e.get(), t, n);
|
|
7914
|
+
if (om(e) && sm(e), t.detectCycles === !0 && e !== null && n.has(e)) return n.get(e);
|
|
7915
|
+
if (Fm(e) || Array.isArray(e)) {
|
|
7916
|
+
var r = um(n, e, [], t), i = e.map(function(e) {
|
|
7917
|
+
return dm(e, t, n);
|
|
7916
7918
|
});
|
|
7917
7919
|
r.length = i.length;
|
|
7918
7920
|
for (var a = 0, o = i.length; a < o; a++) r[a] = i[a];
|
|
7919
7921
|
return r;
|
|
7920
7922
|
}
|
|
7921
|
-
if (
|
|
7922
|
-
var s =
|
|
7923
|
+
if (Um(e) || Object.getPrototypeOf(e) === Set.prototype) if (t.exportMapsAsObjects === !1) {
|
|
7924
|
+
var s = um(n, e, /* @__PURE__ */ new Set(), t);
|
|
7923
7925
|
return e.forEach(function(e) {
|
|
7924
|
-
s.add(
|
|
7926
|
+
s.add(dm(e, t, n));
|
|
7925
7927
|
}), s;
|
|
7926
7928
|
} else {
|
|
7927
|
-
var c =
|
|
7929
|
+
var c = um(n, e, [], t);
|
|
7928
7930
|
return e.forEach(function(e) {
|
|
7929
|
-
c.push(
|
|
7931
|
+
c.push(dm(e, t, n));
|
|
7930
7932
|
}), c;
|
|
7931
7933
|
}
|
|
7932
|
-
if (
|
|
7933
|
-
var l =
|
|
7934
|
+
if (zm(e) || Object.getPrototypeOf(e) === Map.prototype) if (t.exportMapsAsObjects === !1) {
|
|
7935
|
+
var l = um(n, e, /* @__PURE__ */ new Map(), t);
|
|
7934
7936
|
return e.forEach(function(e, r) {
|
|
7935
|
-
l.set(r,
|
|
7937
|
+
l.set(r, dm(e, t, n));
|
|
7936
7938
|
}), l;
|
|
7937
7939
|
} else {
|
|
7938
|
-
var u =
|
|
7940
|
+
var u = um(n, e, {}, t);
|
|
7939
7941
|
return e.forEach(function(e, r) {
|
|
7940
|
-
u[r] =
|
|
7942
|
+
u[r] = dm(e, t, n);
|
|
7941
7943
|
}), u;
|
|
7942
7944
|
}
|
|
7943
|
-
var d =
|
|
7944
|
-
return
|
|
7945
|
-
d[r] =
|
|
7945
|
+
var d = um(n, e, {}, t);
|
|
7946
|
+
return Xd(e).forEach(function(r) {
|
|
7947
|
+
d[r] = dm(e[r], t, n);
|
|
7946
7948
|
}), d;
|
|
7947
7949
|
}
|
|
7948
|
-
function
|
|
7949
|
-
typeof t == "boolean" && (t = { detectCycles: t }), t || (t =
|
|
7950
|
+
function fm(e, t) {
|
|
7951
|
+
typeof t == "boolean" && (t = { detectCycles: t }), t || (t = lm), t.detectCycles = t.detectCycles === void 0 ? t.recurseEverything === !0 : t.detectCycles === !0;
|
|
7950
7952
|
var n;
|
|
7951
|
-
return t.detectCycles && (n = /* @__PURE__ */ new Map()),
|
|
7953
|
+
return t.detectCycles && (n = /* @__PURE__ */ new Map()), dm(e, t, n);
|
|
7952
7954
|
}
|
|
7953
|
-
function
|
|
7955
|
+
function pm() {
|
|
7954
7956
|
var e = [...arguments], t = !1;
|
|
7955
7957
|
typeof e[e.length - 1] == "boolean" && (t = e.pop());
|
|
7956
|
-
var n =
|
|
7958
|
+
var n = mm(e);
|
|
7957
7959
|
if (!n) return K(!1);
|
|
7958
|
-
n.isTracing ===
|
|
7960
|
+
n.isTracing === Vf.NONE && console.log("[mobx.trace] '" + n.name + "' tracing enabled"), n.isTracing = t ? Vf.BREAK : Vf.LOG;
|
|
7959
7961
|
}
|
|
7960
|
-
function
|
|
7962
|
+
function mm(e) {
|
|
7961
7963
|
switch (e.length) {
|
|
7962
7964
|
case 0: return X.trackingDerivation;
|
|
7963
|
-
case 1: return
|
|
7964
|
-
case 2: return
|
|
7965
|
+
case 1: return $m(e[0]);
|
|
7966
|
+
case 2: return $m(e[0], e[1]);
|
|
7965
7967
|
}
|
|
7966
7968
|
}
|
|
7967
|
-
function
|
|
7969
|
+
function hm(e, t) {
|
|
7968
7970
|
t === void 0 && (t = void 0), Z();
|
|
7969
7971
|
try {
|
|
7970
7972
|
return e.apply(t);
|
|
@@ -7972,10 +7974,10 @@ function mm(e, t) {
|
|
|
7972
7974
|
Q();
|
|
7973
7975
|
}
|
|
7974
7976
|
}
|
|
7975
|
-
function hm(e, t, n) {
|
|
7976
|
-
return arguments.length === 1 || t && typeof t == "object" ? _m(e, t) : gm(e, t, n || {});
|
|
7977
|
-
}
|
|
7978
7977
|
function gm(e, t, n) {
|
|
7978
|
+
return arguments.length === 1 || t && typeof t == "object" ? vm(e, t) : _m(e, t, n || {});
|
|
7979
|
+
}
|
|
7980
|
+
function _m(e, t, n) {
|
|
7979
7981
|
var r;
|
|
7980
7982
|
typeof n.timeout == "number" && (r = setTimeout(function() {
|
|
7981
7983
|
if (!a[q].isDisposed) {
|
|
@@ -7985,120 +7987,120 @@ function gm(e, t, n) {
|
|
|
7985
7987
|
else throw e;
|
|
7986
7988
|
}
|
|
7987
7989
|
}, n.timeout)), n.name = n.name || "When@" + G();
|
|
7988
|
-
var i =
|
|
7990
|
+
var i = ip(n.name + "-effect", t), a = Wp(function(t) {
|
|
7989
7991
|
e() && (t.dispose(), r && clearTimeout(r), i());
|
|
7990
7992
|
}, n);
|
|
7991
7993
|
return a;
|
|
7992
7994
|
}
|
|
7993
|
-
function
|
|
7995
|
+
function vm(e, t) {
|
|
7994
7996
|
var n, r = new Promise(function(r, i) {
|
|
7995
|
-
var a =
|
|
7997
|
+
var a = _m(e, r, df(df({}, t), { onError: i }));
|
|
7996
7998
|
n = function() {
|
|
7997
7999
|
a(), i("WHEN_CANCELLED");
|
|
7998
8000
|
};
|
|
7999
8001
|
});
|
|
8000
8002
|
return r.cancel = n, r;
|
|
8001
8003
|
}
|
|
8002
|
-
function
|
|
8004
|
+
function ym(e) {
|
|
8003
8005
|
return e[q];
|
|
8004
8006
|
}
|
|
8005
|
-
function
|
|
8007
|
+
function bm(e) {
|
|
8006
8008
|
return typeof e == "string" || typeof e == "number" || typeof e == "symbol";
|
|
8007
8009
|
}
|
|
8008
|
-
var
|
|
8010
|
+
var xm = {
|
|
8009
8011
|
has: function(e, t) {
|
|
8010
|
-
if (t === q || t === "constructor" || t ===
|
|
8011
|
-
var n =
|
|
8012
|
-
return
|
|
8012
|
+
if (t === q || t === "constructor" || t === hf) return !0;
|
|
8013
|
+
var n = ym(e);
|
|
8014
|
+
return bm(t) ? n.has(t) : t in e;
|
|
8013
8015
|
},
|
|
8014
8016
|
get: function(e, t) {
|
|
8015
|
-
if (t === q || t === "constructor" || t ===
|
|
8016
|
-
var n =
|
|
8017
|
-
if (r instanceof
|
|
8017
|
+
if (t === q || t === "constructor" || t === hf) return e[t];
|
|
8018
|
+
var n = ym(e), r = n.values.get(t);
|
|
8019
|
+
if (r instanceof ef) {
|
|
8018
8020
|
var i = r.get();
|
|
8019
8021
|
return i === void 0 && n.has(t), i;
|
|
8020
8022
|
}
|
|
8021
|
-
return
|
|
8023
|
+
return bm(t) && n.has(t), e[t];
|
|
8022
8024
|
},
|
|
8023
8025
|
set: function(e, t, n) {
|
|
8024
|
-
return
|
|
8026
|
+
return bm(t) ? (cm(e, t, n), !0) : !1;
|
|
8025
8027
|
},
|
|
8026
8028
|
deleteProperty: function(e, t) {
|
|
8027
|
-
return
|
|
8029
|
+
return bm(t) ? (ym(e).remove(t), !0) : !1;
|
|
8028
8030
|
},
|
|
8029
8031
|
ownKeys: function(e) {
|
|
8030
|
-
return
|
|
8032
|
+
return ym(e).keysAtom.reportObserved(), Reflect.ownKeys(e);
|
|
8031
8033
|
},
|
|
8032
8034
|
preventExtensions: function(e) {
|
|
8033
8035
|
return K("Dynamic observable objects cannot be frozen"), !1;
|
|
8034
8036
|
}
|
|
8035
8037
|
};
|
|
8036
|
-
function
|
|
8037
|
-
var t = new Proxy(e,
|
|
8038
|
+
function Sm(e) {
|
|
8039
|
+
var t = new Proxy(e, xm);
|
|
8038
8040
|
return e[q].proxy = t, t;
|
|
8039
8041
|
}
|
|
8040
|
-
function
|
|
8042
|
+
function Cm(e) {
|
|
8041
8043
|
return e.interceptors !== void 0 && e.interceptors.length > 0;
|
|
8042
8044
|
}
|
|
8043
|
-
function
|
|
8045
|
+
function wm(e, t) {
|
|
8044
8046
|
var n = e.interceptors || (e.interceptors = []);
|
|
8045
|
-
return n.push(t),
|
|
8047
|
+
return n.push(t), Rd(function() {
|
|
8046
8048
|
var e = n.indexOf(t);
|
|
8047
8049
|
e !== -1 && n.splice(e, 1);
|
|
8048
8050
|
});
|
|
8049
8051
|
}
|
|
8050
|
-
function
|
|
8051
|
-
var n =
|
|
8052
|
+
function Tm(e, t) {
|
|
8053
|
+
var n = Xf();
|
|
8052
8054
|
try {
|
|
8053
|
-
for (var r =
|
|
8055
|
+
for (var r = mf(e.interceptors || []), i = 0, a = r.length; i < a && (t = r[i](t), Ld(!t || t.type, "Intercept handlers should return nothing or a change object"), t); i++);
|
|
8054
8056
|
return t;
|
|
8055
8057
|
} finally {
|
|
8056
|
-
|
|
8058
|
+
Zf(n);
|
|
8057
8059
|
}
|
|
8058
8060
|
}
|
|
8059
|
-
function
|
|
8061
|
+
function Em(e) {
|
|
8060
8062
|
return e.changeListeners !== void 0 && e.changeListeners.length > 0;
|
|
8061
8063
|
}
|
|
8062
|
-
function
|
|
8064
|
+
function Dm(e, t) {
|
|
8063
8065
|
var n = e.changeListeners || (e.changeListeners = []);
|
|
8064
|
-
return n.push(t),
|
|
8066
|
+
return n.push(t), Rd(function() {
|
|
8065
8067
|
var e = n.indexOf(t);
|
|
8066
8068
|
e !== -1 && n.splice(e, 1);
|
|
8067
8069
|
});
|
|
8068
8070
|
}
|
|
8069
|
-
function
|
|
8070
|
-
var n =
|
|
8071
|
+
function Om(e, t) {
|
|
8072
|
+
var n = Xf(), r = e.changeListeners;
|
|
8071
8073
|
if (r) {
|
|
8072
8074
|
r = r.slice();
|
|
8073
8075
|
for (var i = 0, a = r.length; i < a; i++) r[i](t);
|
|
8074
|
-
|
|
8076
|
+
Zf(n);
|
|
8075
8077
|
}
|
|
8076
8078
|
}
|
|
8077
|
-
var
|
|
8079
|
+
var km = 1e4, Am = {
|
|
8078
8080
|
get: function(e, t) {
|
|
8079
|
-
return t === q ? e[q] : t === "length" ? e[q].getArrayLength() : typeof t == "number" ?
|
|
8081
|
+
return t === q ? e[q] : t === "length" ? e[q].getArrayLength() : typeof t == "number" ? Nm.get.call(e, t) : typeof t == "string" && !isNaN(t) ? Nm.get.call(e, parseInt(t)) : Nm.hasOwnProperty(t) ? Nm[t] : e[t];
|
|
8080
8082
|
},
|
|
8081
8083
|
set: function(e, t, n) {
|
|
8082
|
-
return t === "length" && e[q].setArrayLength(n), typeof t == "number" &&
|
|
8084
|
+
return t === "length" && e[q].setArrayLength(n), typeof t == "number" && Nm.set.call(e, t, n), typeof t == "symbol" || isNaN(t) ? e[t] = n : Nm.set.call(e, parseInt(t), n), !0;
|
|
8083
8085
|
},
|
|
8084
8086
|
preventExtensions: function(e) {
|
|
8085
8087
|
return K("Observable arrays cannot be frozen"), !1;
|
|
8086
8088
|
}
|
|
8087
8089
|
};
|
|
8088
|
-
function
|
|
8090
|
+
function jm(e, t, n, r) {
|
|
8089
8091
|
n === void 0 && (n = "ObservableArray@" + G()), r === void 0 && (r = !1);
|
|
8090
|
-
var i = new
|
|
8091
|
-
|
|
8092
|
-
var a = new Proxy(i.values,
|
|
8092
|
+
var i = new Mm(n, t, r);
|
|
8093
|
+
Gd(i.values, q, i);
|
|
8094
|
+
var a = new Proxy(i.values, Am);
|
|
8093
8095
|
if (i.proxy = a, e && e.length) {
|
|
8094
|
-
var o =
|
|
8095
|
-
i.spliceWithArray(0, 0, e),
|
|
8096
|
+
var o = cp(!0);
|
|
8097
|
+
i.spliceWithArray(0, 0, e), lp(o);
|
|
8096
8098
|
}
|
|
8097
8099
|
return a;
|
|
8098
8100
|
}
|
|
8099
|
-
var
|
|
8101
|
+
var Mm = function() {
|
|
8100
8102
|
function e(e, t, n) {
|
|
8101
|
-
this.owned = n, this.values = [], this.proxy = void 0, this.lastKnownLength = 0, this.atom = new
|
|
8103
|
+
this.owned = n, this.values = [], this.proxy = void 0, this.lastKnownLength = 0, this.atom = new ef(e || "ObservableArray@" + G()), this.enhancer = function(n, r) {
|
|
8102
8104
|
return t(n, r, e + "[..]");
|
|
8103
8105
|
};
|
|
8104
8106
|
}
|
|
@@ -8107,7 +8109,7 @@ var jm = function() {
|
|
|
8107
8109
|
}, e.prototype.dehanceValues = function(e) {
|
|
8108
8110
|
return this.dehancer !== void 0 && e.length > 0 ? e.map(this.dehancer) : e;
|
|
8109
8111
|
}, e.prototype.intercept = function(e) {
|
|
8110
|
-
return
|
|
8112
|
+
return wm(this, e);
|
|
8111
8113
|
}, e.prototype.observe = function(e, t) {
|
|
8112
8114
|
return t === void 0 && (t = !1), t && e({
|
|
8113
8115
|
object: this.proxy,
|
|
@@ -8117,7 +8119,7 @@ var jm = function() {
|
|
|
8117
8119
|
addedCount: this.values.length,
|
|
8118
8120
|
removed: [],
|
|
8119
8121
|
removedCount: 0
|
|
8120
|
-
}),
|
|
8122
|
+
}), Dm(this, e);
|
|
8121
8123
|
}, e.prototype.getArrayLength = function() {
|
|
8122
8124
|
return this.atom.reportObserved(), this.values.length;
|
|
8123
8125
|
}, e.prototype.setArrayLength = function(e) {
|
|
@@ -8132,17 +8134,17 @@ var jm = function() {
|
|
|
8132
8134
|
this.lastKnownLength += t;
|
|
8133
8135
|
}, e.prototype.spliceWithArray = function(e, t, n) {
|
|
8134
8136
|
var r = this;
|
|
8135
|
-
|
|
8137
|
+
Gf(this.atom);
|
|
8136
8138
|
var i = this.values.length;
|
|
8137
|
-
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 =
|
|
8138
|
-
var a =
|
|
8139
|
+
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 = Fd), Cm(this)) {
|
|
8140
|
+
var a = Tm(this, {
|
|
8139
8141
|
object: this.proxy,
|
|
8140
8142
|
type: "splice",
|
|
8141
8143
|
index: e,
|
|
8142
8144
|
removedCount: t,
|
|
8143
8145
|
added: n
|
|
8144
8146
|
});
|
|
8145
|
-
if (!a) return
|
|
8147
|
+
if (!a) return Fd;
|
|
8146
8148
|
t = a.removedCount, n = a.added;
|
|
8147
8149
|
}
|
|
8148
8150
|
n = n.length === 0 ? n : n.map(function(e) {
|
|
@@ -8152,20 +8154,20 @@ var jm = function() {
|
|
|
8152
8154
|
return (t !== 0 || n.length !== 0) && this.notifyArraySplice(e, n, o), this.dehanceValues(o);
|
|
8153
8155
|
}, e.prototype.spliceItemsIntoValues = function(e, t, n) {
|
|
8154
8156
|
var r;
|
|
8155
|
-
if (n.length <
|
|
8157
|
+
if (n.length < km) return (r = this.values).splice.apply(r, mf([e, t], n));
|
|
8156
8158
|
var i = this.values.slice(e, e + t);
|
|
8157
8159
|
return this.values = this.values.slice(0, e).concat(n, this.values.slice(e + t)), i;
|
|
8158
8160
|
}, e.prototype.notifyArrayChildUpdate = function(e, t, n) {
|
|
8159
|
-
var r = !this.owned && $(), i =
|
|
8161
|
+
var r = !this.owned && $(), i = Em(this), a = i || r ? {
|
|
8160
8162
|
object: this.proxy,
|
|
8161
8163
|
type: "update",
|
|
8162
8164
|
index: e,
|
|
8163
8165
|
newValue: t,
|
|
8164
8166
|
oldValue: n
|
|
8165
8167
|
} : null;
|
|
8166
|
-
this.atom.reportChanged(), i &&
|
|
8168
|
+
this.atom.reportChanged(), i && Om(this, a);
|
|
8167
8169
|
}, e.prototype.notifyArraySplice = function(e, t, n) {
|
|
8168
|
-
var r = !this.owned && $(), i =
|
|
8170
|
+
var r = !this.owned && $(), i = Em(this), a = i || r ? {
|
|
8169
8171
|
object: this.proxy,
|
|
8170
8172
|
type: "splice",
|
|
8171
8173
|
index: e,
|
|
@@ -8174,9 +8176,9 @@ var jm = function() {
|
|
|
8174
8176
|
removedCount: n.length,
|
|
8175
8177
|
addedCount: t.length
|
|
8176
8178
|
} : null;
|
|
8177
|
-
this.atom.reportChanged(), i &&
|
|
8179
|
+
this.atom.reportChanged(), i && Om(this, a);
|
|
8178
8180
|
}, e;
|
|
8179
|
-
}(),
|
|
8181
|
+
}(), Nm = {
|
|
8180
8182
|
intercept: function(e) {
|
|
8181
8183
|
return this[q].intercept(e);
|
|
8182
8184
|
},
|
|
@@ -8244,10 +8246,10 @@ var jm = function() {
|
|
|
8244
8246
|
set: function(e, t) {
|
|
8245
8247
|
var n = this[q], r = n.values;
|
|
8246
8248
|
if (e < r.length) {
|
|
8247
|
-
|
|
8249
|
+
Gf(n.atom);
|
|
8248
8250
|
var i = r[e];
|
|
8249
|
-
if (
|
|
8250
|
-
var a =
|
|
8251
|
+
if (Cm(n)) {
|
|
8252
|
+
var a = Tm(n, {
|
|
8251
8253
|
type: "update",
|
|
8252
8254
|
object: n.proxy,
|
|
8253
8255
|
index: e,
|
|
@@ -8272,7 +8274,7 @@ var jm = function() {
|
|
|
8272
8274
|
"toString",
|
|
8273
8275
|
"toLocaleString"
|
|
8274
8276
|
].forEach(function(e) {
|
|
8275
|
-
typeof Array.prototype[e] == "function" && (
|
|
8277
|
+
typeof Array.prototype[e] == "function" && (Nm[e] = function() {
|
|
8276
8278
|
var t = this[q];
|
|
8277
8279
|
t.atom.reportObserved();
|
|
8278
8280
|
var n = t.dehanceValues(t.values);
|
|
@@ -8288,14 +8290,14 @@ var jm = function() {
|
|
|
8288
8290
|
"map",
|
|
8289
8291
|
"some"
|
|
8290
8292
|
].forEach(function(e) {
|
|
8291
|
-
typeof Array.prototype[e] == "function" && (
|
|
8293
|
+
typeof Array.prototype[e] == "function" && (Nm[e] = function(t, n) {
|
|
8292
8294
|
var r = this, i = this[q];
|
|
8293
8295
|
return i.atom.reportObserved(), i.dehanceValues(i.values)[e](function(e, i) {
|
|
8294
8296
|
return t.call(n, e, i, r);
|
|
8295
8297
|
}, n);
|
|
8296
8298
|
});
|
|
8297
8299
|
}), ["reduce", "reduceRight"].forEach(function(e) {
|
|
8298
|
-
|
|
8300
|
+
Nm[e] = function() {
|
|
8299
8301
|
var t = this, n = this[q];
|
|
8300
8302
|
n.atom.reportObserved();
|
|
8301
8303
|
var r = arguments[0];
|
|
@@ -8304,13 +8306,13 @@ var jm = function() {
|
|
|
8304
8306
|
}, n.values[e].apply(n.values, arguments);
|
|
8305
8307
|
};
|
|
8306
8308
|
});
|
|
8307
|
-
var
|
|
8308
|
-
function
|
|
8309
|
-
return
|
|
8309
|
+
var Pm = qd("ObservableArrayAdministration", Mm);
|
|
8310
|
+
function Fm(e) {
|
|
8311
|
+
return Vd(e) && Pm(e[q]);
|
|
8310
8312
|
}
|
|
8311
|
-
var
|
|
8313
|
+
var Im, Lm = {}, Rm = function() {
|
|
8312
8314
|
function e(e, t, n) {
|
|
8313
|
-
if (t === void 0 && (t =
|
|
8315
|
+
if (t === void 0 && (t = Cf), n === void 0 && (n = "ObservableMap@" + G()), this.enhancer = t, this.name = n, this[Im] = Lm, this._keysAtom = nf(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");
|
|
8314
8316
|
this._data = /* @__PURE__ */ new Map(), this._hasMap = /* @__PURE__ */ new Map(), this.merge(e);
|
|
8315
8317
|
}
|
|
8316
8318
|
return e.prototype._has = function(e) {
|
|
@@ -8320,16 +8322,16 @@ var Fm, Im = {}, Lm = function() {
|
|
|
8320
8322
|
if (!X.trackingDerivation) return this._has(e);
|
|
8321
8323
|
var n = this._hasMap.get(e);
|
|
8322
8324
|
if (!n) {
|
|
8323
|
-
var r = n = new
|
|
8324
|
-
this._hasMap.set(e, r),
|
|
8325
|
+
var r = n = new up(this._has(e), Tf, this.name + "." + Zd(e) + "?", !1);
|
|
8326
|
+
this._hasMap.set(e, r), Xp(r, function() {
|
|
8325
8327
|
return t._hasMap.delete(e);
|
|
8326
8328
|
});
|
|
8327
8329
|
}
|
|
8328
8330
|
return n.get();
|
|
8329
8331
|
}, e.prototype.set = function(e, t) {
|
|
8330
8332
|
var n = this._has(e);
|
|
8331
|
-
if (
|
|
8332
|
-
var r =
|
|
8333
|
+
if (Cm(this)) {
|
|
8334
|
+
var r = Tm(this, {
|
|
8333
8335
|
type: n ? "update" : "add",
|
|
8334
8336
|
object: this,
|
|
8335
8337
|
newValue: t,
|
|
@@ -8341,8 +8343,8 @@ var Fm, Im = {}, Lm = function() {
|
|
|
8341
8343
|
return n ? this._updateValue(e, t) : this._addValue(e, t), this;
|
|
8342
8344
|
}, e.prototype.delete = function(e) {
|
|
8343
8345
|
var t = this;
|
|
8344
|
-
if (
|
|
8345
|
-
var n =
|
|
8346
|
+
if (Gf(this._keysAtom), Cm(this)) {
|
|
8347
|
+
var n = Tm(this, {
|
|
8346
8348
|
type: "delete",
|
|
8347
8349
|
object: this,
|
|
8348
8350
|
name: e
|
|
@@ -8350,15 +8352,15 @@ var Fm, Im = {}, Lm = function() {
|
|
|
8350
8352
|
if (!n) return !1;
|
|
8351
8353
|
}
|
|
8352
8354
|
if (this._has(e)) {
|
|
8353
|
-
var r = $(), i =
|
|
8355
|
+
var r = $(), i = Em(this), n = i || r ? {
|
|
8354
8356
|
type: "delete",
|
|
8355
8357
|
object: this,
|
|
8356
8358
|
oldValue: this._data.get(e).value,
|
|
8357
8359
|
name: e
|
|
8358
8360
|
} : null;
|
|
8359
|
-
return
|
|
8361
|
+
return hm(function() {
|
|
8360
8362
|
t._keysAtom.reportChanged(), t._updateHasMapEntry(e, !1), t._data.get(e).setNewValue(void 0), t._data.delete(e);
|
|
8361
|
-
}), i &&
|
|
8363
|
+
}), i && Om(this, n), !0;
|
|
8362
8364
|
}
|
|
8363
8365
|
return !1;
|
|
8364
8366
|
}, e.prototype._updateHasMapEntry = function(e, t) {
|
|
@@ -8367,28 +8369,28 @@ var Fm, Im = {}, Lm = function() {
|
|
|
8367
8369
|
}, e.prototype._updateValue = function(e, t) {
|
|
8368
8370
|
var n = this._data.get(e);
|
|
8369
8371
|
if (t = n.prepareNewValue(t), t !== X.UNCHANGED) {
|
|
8370
|
-
var r = $(), i =
|
|
8372
|
+
var r = $(), i = Em(this), a = i || r ? {
|
|
8371
8373
|
type: "update",
|
|
8372
8374
|
object: this,
|
|
8373
8375
|
oldValue: n.value,
|
|
8374
8376
|
name: e,
|
|
8375
8377
|
newValue: t
|
|
8376
8378
|
} : null;
|
|
8377
|
-
n.setNewValue(t), i &&
|
|
8379
|
+
n.setNewValue(t), i && Om(this, a);
|
|
8378
8380
|
}
|
|
8379
8381
|
}, e.prototype._addValue = function(e, t) {
|
|
8380
8382
|
var n = this;
|
|
8381
|
-
|
|
8382
|
-
var r = new
|
|
8383
|
+
Gf(this._keysAtom), hm(function() {
|
|
8384
|
+
var r = new up(t, n.enhancer, n.name + "." + Zd(e), !1);
|
|
8383
8385
|
n._data.set(e, r), t = r.value, n._updateHasMapEntry(e, !0), n._keysAtom.reportChanged();
|
|
8384
8386
|
});
|
|
8385
|
-
var r = $(), i =
|
|
8387
|
+
var r = $(), i = Em(this), a = i || r ? {
|
|
8386
8388
|
type: "add",
|
|
8387
8389
|
object: this,
|
|
8388
8390
|
name: e,
|
|
8389
8391
|
newValue: t
|
|
8390
8392
|
} : null;
|
|
8391
|
-
i &&
|
|
8393
|
+
i && Om(this, a);
|
|
8392
8394
|
}, e.prototype.get = function(e) {
|
|
8393
8395
|
return this.has(e) ? this.dehanceValue(this._data.get(e).get()) : this.dehanceValue(void 0);
|
|
8394
8396
|
}, e.prototype.dehanceValue = function(e) {
|
|
@@ -8397,7 +8399,7 @@ var Fm, Im = {}, Lm = function() {
|
|
|
8397
8399
|
return this._keysAtom.reportObserved(), this._data.keys();
|
|
8398
8400
|
}, e.prototype.values = function() {
|
|
8399
8401
|
var e = this, t = this.keys();
|
|
8400
|
-
return
|
|
8402
|
+
return sh({ next: function() {
|
|
8401
8403
|
var n = t.next(), r = n.done, i = n.value;
|
|
8402
8404
|
return {
|
|
8403
8405
|
done: r,
|
|
@@ -8406,20 +8408,20 @@ var Fm, Im = {}, Lm = function() {
|
|
|
8406
8408
|
} });
|
|
8407
8409
|
}, e.prototype.entries = function() {
|
|
8408
8410
|
var e = this, t = this.keys();
|
|
8409
|
-
return
|
|
8411
|
+
return sh({ next: function() {
|
|
8410
8412
|
var n = t.next(), r = n.done, i = n.value;
|
|
8411
8413
|
return {
|
|
8412
8414
|
done: r,
|
|
8413
8415
|
value: r ? void 0 : [i, e.get(i)]
|
|
8414
8416
|
};
|
|
8415
8417
|
} });
|
|
8416
|
-
}, e.prototype[
|
|
8418
|
+
}, e.prototype[Im = q, Symbol.iterator] = function() {
|
|
8417
8419
|
return this.entries();
|
|
8418
8420
|
}, e.prototype.forEach = function(e, t) {
|
|
8419
8421
|
var n, r;
|
|
8420
8422
|
try {
|
|
8421
|
-
for (var i =
|
|
8422
|
-
var o =
|
|
8423
|
+
for (var i = ff(this), a = i.next(); !a.done; a = i.next()) {
|
|
8424
|
+
var o = pf(a.value, 2), s = o[0], c = o[1];
|
|
8423
8425
|
e.call(t, c, s, this);
|
|
8424
8426
|
}
|
|
8425
8427
|
} catch (e) {
|
|
@@ -8433,28 +8435,28 @@ var Fm, Im = {}, Lm = function() {
|
|
|
8433
8435
|
}
|
|
8434
8436
|
}, e.prototype.merge = function(e) {
|
|
8435
8437
|
var t = this;
|
|
8436
|
-
return
|
|
8437
|
-
var n =
|
|
8438
|
+
return zm(e) && (e = e.toJS()), hm(function() {
|
|
8439
|
+
var n = cp(!0);
|
|
8438
8440
|
try {
|
|
8439
|
-
|
|
8441
|
+
Hd(e) ? Xd(e).forEach(function(n) {
|
|
8440
8442
|
return t.set(n, e[n]);
|
|
8441
8443
|
}) : Array.isArray(e) ? e.forEach(function(e) {
|
|
8442
|
-
var n =
|
|
8444
|
+
var n = pf(e, 2), r = n[0], i = n[1];
|
|
8443
8445
|
return t.set(r, i);
|
|
8444
|
-
}) :
|
|
8446
|
+
}) : Jd(e) ? (e.constructor !== Map && K("Cannot initialize from classes that inherit from Map: " + e.constructor.name), e.forEach(function(e, n) {
|
|
8445
8447
|
return t.set(n, e);
|
|
8446
8448
|
})) : e != null && K("Cannot initialize map from " + e);
|
|
8447
8449
|
} finally {
|
|
8448
|
-
|
|
8450
|
+
lp(n);
|
|
8449
8451
|
}
|
|
8450
8452
|
}), this;
|
|
8451
8453
|
}, e.prototype.clear = function() {
|
|
8452
8454
|
var e = this;
|
|
8453
|
-
|
|
8454
|
-
|
|
8455
|
+
hm(function() {
|
|
8456
|
+
Yf(function() {
|
|
8455
8457
|
var t, n;
|
|
8456
8458
|
try {
|
|
8457
|
-
for (var r =
|
|
8459
|
+
for (var r = ff(e.keys()), i = r.next(); !i.done; i = r.next()) {
|
|
8458
8460
|
var a = i.value;
|
|
8459
8461
|
e.delete(a);
|
|
8460
8462
|
}
|
|
@@ -8471,10 +8473,10 @@ var Fm, Im = {}, Lm = function() {
|
|
|
8471
8473
|
});
|
|
8472
8474
|
}, e.prototype.replace = function(e) {
|
|
8473
8475
|
var t = this;
|
|
8474
|
-
return
|
|
8475
|
-
var n, r, i, a, o =
|
|
8476
|
+
return hm(function() {
|
|
8477
|
+
var n, r, i, a, o = Ud(e), s = /* @__PURE__ */ new Map(), c = !1;
|
|
8476
8478
|
try {
|
|
8477
|
-
for (var l =
|
|
8479
|
+
for (var l = ff(t._data.keys()), u = l.next(); !u.done; u = l.next()) {
|
|
8478
8480
|
var d = u.value;
|
|
8479
8481
|
if (!o.has(d)) if (t.delete(d)) c = !0;
|
|
8480
8482
|
else {
|
|
@@ -8492,8 +8494,8 @@ var Fm, Im = {}, Lm = function() {
|
|
|
8492
8494
|
}
|
|
8493
8495
|
}
|
|
8494
8496
|
try {
|
|
8495
|
-
for (var p =
|
|
8496
|
-
var h =
|
|
8497
|
+
for (var p = ff(o.entries()), m = p.next(); !m.done; m = p.next()) {
|
|
8498
|
+
var h = pf(m.value, 2), d = h[0], f = h[1], g = t._data.has(d);
|
|
8497
8499
|
if (t.set(d, f), t._data.has(d)) {
|
|
8498
8500
|
var _ = t._data.get(d);
|
|
8499
8501
|
s.set(d, _), g || (c = !0);
|
|
@@ -8527,9 +8529,9 @@ var Fm, Im = {}, Lm = function() {
|
|
|
8527
8529
|
}), e.prototype.toPOJO = function() {
|
|
8528
8530
|
var e, t, n = {};
|
|
8529
8531
|
try {
|
|
8530
|
-
for (var r =
|
|
8531
|
-
var a =
|
|
8532
|
-
n[typeof o == "symbol" ? o :
|
|
8532
|
+
for (var r = ff(this), i = r.next(); !i.done; i = r.next()) {
|
|
8533
|
+
var a = pf(i.value, 2), o = a[0], s = a[1];
|
|
8534
|
+
n[typeof o == "symbol" ? o : Zd(o)] = s;
|
|
8533
8535
|
}
|
|
8534
8536
|
} catch (t) {
|
|
8535
8537
|
e = { error: t };
|
|
@@ -8548,16 +8550,16 @@ var Fm, Im = {}, Lm = function() {
|
|
|
8548
8550
|
}, e.prototype.toString = function() {
|
|
8549
8551
|
var e = this;
|
|
8550
8552
|
return this.name + "[{ " + Array.from(this.keys()).map(function(t) {
|
|
8551
|
-
return
|
|
8553
|
+
return Zd(t) + ": " + ("" + e.get(t));
|
|
8552
8554
|
}).join(", ") + " }]";
|
|
8553
8555
|
}, e.prototype.observe = function(e, t) {
|
|
8554
|
-
return
|
|
8556
|
+
return Dm(this, e);
|
|
8555
8557
|
}, e.prototype.intercept = function(e) {
|
|
8556
|
-
return
|
|
8558
|
+
return wm(this, e);
|
|
8557
8559
|
}, e;
|
|
8558
|
-
}(),
|
|
8560
|
+
}(), zm = qd("ObservableMap", Rm), Bm, Vm = {}, Hm = function() {
|
|
8559
8561
|
function e(e, t, n) {
|
|
8560
|
-
if (t === void 0 && (t =
|
|
8562
|
+
if (t === void 0 && (t = Cf), n === void 0 && (n = "ObservableSet@" + G()), this.name = n, this[Bm] = Vm, this._data = /* @__PURE__ */ new Set(), this._atom = nf(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");
|
|
8561
8563
|
this.enhancer = function(e, r) {
|
|
8562
8564
|
return t(e, r, n);
|
|
8563
8565
|
}, e && this.replace(e);
|
|
@@ -8566,11 +8568,11 @@ var Fm, Im = {}, Lm = function() {
|
|
|
8566
8568
|
return this.dehancer === void 0 ? e : this.dehancer(e);
|
|
8567
8569
|
}, e.prototype.clear = function() {
|
|
8568
8570
|
var e = this;
|
|
8569
|
-
|
|
8570
|
-
|
|
8571
|
+
hm(function() {
|
|
8572
|
+
Yf(function() {
|
|
8571
8573
|
var t, n;
|
|
8572
8574
|
try {
|
|
8573
|
-
for (var r =
|
|
8575
|
+
for (var r = ff(e._data.values()), i = r.next(); !i.done; i = r.next()) {
|
|
8574
8576
|
var a = i.value;
|
|
8575
8577
|
e.delete(a);
|
|
8576
8578
|
}
|
|
@@ -8588,7 +8590,7 @@ var Fm, Im = {}, Lm = function() {
|
|
|
8588
8590
|
}, e.prototype.forEach = function(e, t) {
|
|
8589
8591
|
var n, r;
|
|
8590
8592
|
try {
|
|
8591
|
-
for (var i =
|
|
8593
|
+
for (var i = ff(this), a = i.next(); !a.done; a = i.next()) {
|
|
8592
8594
|
var o = a.value;
|
|
8593
8595
|
e.call(t, o, o, this);
|
|
8594
8596
|
}
|
|
@@ -8609,8 +8611,8 @@ var Fm, Im = {}, Lm = function() {
|
|
|
8609
8611
|
configurable: !0
|
|
8610
8612
|
}), e.prototype.add = function(e) {
|
|
8611
8613
|
var t = this;
|
|
8612
|
-
if (
|
|
8613
|
-
var n =
|
|
8614
|
+
if (Gf(this._atom), Cm(this)) {
|
|
8615
|
+
var n = Tm(this, {
|
|
8614
8616
|
type: "add",
|
|
8615
8617
|
object: this,
|
|
8616
8618
|
newValue: e
|
|
@@ -8618,21 +8620,21 @@ var Fm, Im = {}, Lm = function() {
|
|
|
8618
8620
|
if (!n) return this;
|
|
8619
8621
|
}
|
|
8620
8622
|
if (!this.has(e)) {
|
|
8621
|
-
|
|
8623
|
+
hm(function() {
|
|
8622
8624
|
t._data.add(t.enhancer(e, void 0)), t._atom.reportChanged();
|
|
8623
8625
|
});
|
|
8624
|
-
var r = $(), i =
|
|
8626
|
+
var r = $(), i = Em(this), n = i || r ? {
|
|
8625
8627
|
type: "add",
|
|
8626
8628
|
object: this,
|
|
8627
8629
|
newValue: e
|
|
8628
8630
|
} : null;
|
|
8629
|
-
i &&
|
|
8631
|
+
i && Om(this, n);
|
|
8630
8632
|
}
|
|
8631
8633
|
return this;
|
|
8632
8634
|
}, e.prototype.delete = function(e) {
|
|
8633
8635
|
var t = this;
|
|
8634
|
-
if (
|
|
8635
|
-
var n =
|
|
8636
|
+
if (Cm(this)) {
|
|
8637
|
+
var n = Tm(this, {
|
|
8636
8638
|
type: "delete",
|
|
8637
8639
|
object: this,
|
|
8638
8640
|
oldValue: e
|
|
@@ -8640,21 +8642,21 @@ var Fm, Im = {}, Lm = function() {
|
|
|
8640
8642
|
if (!n) return !1;
|
|
8641
8643
|
}
|
|
8642
8644
|
if (this.has(e)) {
|
|
8643
|
-
var r = $(), i =
|
|
8645
|
+
var r = $(), i = Em(this), n = i || r ? {
|
|
8644
8646
|
type: "delete",
|
|
8645
8647
|
object: this,
|
|
8646
8648
|
oldValue: e
|
|
8647
8649
|
} : null;
|
|
8648
|
-
return
|
|
8650
|
+
return hm(function() {
|
|
8649
8651
|
t._atom.reportChanged(), t._data.delete(e);
|
|
8650
|
-
}), i &&
|
|
8652
|
+
}), i && Om(this, n), !0;
|
|
8651
8653
|
}
|
|
8652
8654
|
return !1;
|
|
8653
8655
|
}, e.prototype.has = function(e) {
|
|
8654
8656
|
return this._atom.reportObserved(), this._data.has(this.dehanceValue(e));
|
|
8655
8657
|
}, e.prototype.entries = function() {
|
|
8656
8658
|
var e = 0, t = Array.from(this.keys()), n = Array.from(this.values());
|
|
8657
|
-
return
|
|
8659
|
+
return sh({ next: function() {
|
|
8658
8660
|
var r = e;
|
|
8659
8661
|
return e += 1, r < n.length ? {
|
|
8660
8662
|
value: [t[r], n[r]],
|
|
@@ -8666,7 +8668,7 @@ var Fm, Im = {}, Lm = function() {
|
|
|
8666
8668
|
}, e.prototype.values = function() {
|
|
8667
8669
|
this._atom.reportObserved();
|
|
8668
8670
|
var e = this, t = 0, n = Array.from(this._data.values());
|
|
8669
|
-
return
|
|
8671
|
+
return sh({ next: function() {
|
|
8670
8672
|
return t < n.length ? {
|
|
8671
8673
|
value: e.dehanceValue(n[t++]),
|
|
8672
8674
|
done: !1
|
|
@@ -8674,41 +8676,41 @@ var Fm, Im = {}, Lm = function() {
|
|
|
8674
8676
|
} });
|
|
8675
8677
|
}, e.prototype.replace = function(e) {
|
|
8676
8678
|
var t = this;
|
|
8677
|
-
return
|
|
8678
|
-
var n =
|
|
8679
|
+
return Um(e) && (e = e.toJS()), hm(function() {
|
|
8680
|
+
var n = cp(!0);
|
|
8679
8681
|
try {
|
|
8680
|
-
Array.isArray(e) ||
|
|
8682
|
+
Array.isArray(e) || Yd(e) ? (t.clear(), e.forEach(function(e) {
|
|
8681
8683
|
return t.add(e);
|
|
8682
8684
|
})) : e != null && K("Cannot initialize set from " + e);
|
|
8683
8685
|
} finally {
|
|
8684
|
-
|
|
8686
|
+
lp(n);
|
|
8685
8687
|
}
|
|
8686
8688
|
}), this;
|
|
8687
8689
|
}, e.prototype.observe = function(e, t) {
|
|
8688
|
-
return
|
|
8690
|
+
return Dm(this, e);
|
|
8689
8691
|
}, e.prototype.intercept = function(e) {
|
|
8690
|
-
return
|
|
8692
|
+
return wm(this, e);
|
|
8691
8693
|
}, e.prototype.toJS = function() {
|
|
8692
8694
|
return new Set(this);
|
|
8693
8695
|
}, e.prototype.toString = function() {
|
|
8694
8696
|
return this.name + "[ " + Array.from(this).join(", ") + " ]";
|
|
8695
|
-
}, e.prototype[
|
|
8697
|
+
}, e.prototype[Bm = q, Symbol.iterator] = function() {
|
|
8696
8698
|
return this.values();
|
|
8697
8699
|
}, e;
|
|
8698
|
-
}(),
|
|
8700
|
+
}(), Um = qd("ObservableSet", Hm), Wm = function() {
|
|
8699
8701
|
function e(e, t, n, r) {
|
|
8700
|
-
t === void 0 && (t = /* @__PURE__ */ new Map()), this.target = e, this.values = t, this.name = n, this.defaultEnhancer = r, this.keysAtom = new
|
|
8702
|
+
t === void 0 && (t = /* @__PURE__ */ new Map()), this.target = e, this.values = t, this.name = n, this.defaultEnhancer = r, this.keysAtom = new ef(n + ".keys");
|
|
8701
8703
|
}
|
|
8702
8704
|
return e.prototype.read = function(e) {
|
|
8703
8705
|
return this.values.get(e).get();
|
|
8704
8706
|
}, e.prototype.write = function(e, t) {
|
|
8705
8707
|
var n = this.target, r = this.values.get(e);
|
|
8706
|
-
if (r instanceof
|
|
8708
|
+
if (r instanceof fp) {
|
|
8707
8709
|
r.set(t);
|
|
8708
8710
|
return;
|
|
8709
8711
|
}
|
|
8710
|
-
if (
|
|
8711
|
-
var i =
|
|
8712
|
+
if (Cm(this)) {
|
|
8713
|
+
var i = Tm(this, {
|
|
8712
8714
|
type: "update",
|
|
8713
8715
|
object: this.proxy || n,
|
|
8714
8716
|
name: e,
|
|
@@ -8718,23 +8720,23 @@ var Fm, Im = {}, Lm = function() {
|
|
|
8718
8720
|
t = i.newValue;
|
|
8719
8721
|
}
|
|
8720
8722
|
if (t = r.prepareNewValue(t), t !== X.UNCHANGED) {
|
|
8721
|
-
var a =
|
|
8723
|
+
var a = Em(this), o = $(), i = a || o ? {
|
|
8722
8724
|
type: "update",
|
|
8723
8725
|
object: this.proxy || n,
|
|
8724
8726
|
oldValue: r.value,
|
|
8725
8727
|
name: e,
|
|
8726
8728
|
newValue: t
|
|
8727
8729
|
} : null;
|
|
8728
|
-
r.setNewValue(t), a &&
|
|
8730
|
+
r.setNewValue(t), a && Om(this, i);
|
|
8729
8731
|
}
|
|
8730
8732
|
}, e.prototype.has = function(e) {
|
|
8731
8733
|
var t = this.pendingKeys || (this.pendingKeys = /* @__PURE__ */ new Map()), n = t.get(e);
|
|
8732
|
-
return n ? n.get() : (n = new
|
|
8734
|
+
return n ? n.get() : (n = new up(!!this.values.get(e), Tf, this.name + "." + Zd(e) + "?", !1), t.set(e, n), n.get());
|
|
8733
8735
|
}, e.prototype.addObservableProp = function(e, t, n) {
|
|
8734
8736
|
n === void 0 && (n = this.defaultEnhancer);
|
|
8735
8737
|
var r = this.target;
|
|
8736
|
-
if (
|
|
8737
|
-
var i =
|
|
8738
|
+
if (Cm(this)) {
|
|
8739
|
+
var i = Tm(this, {
|
|
8738
8740
|
object: this.proxy || r,
|
|
8739
8741
|
name: e,
|
|
8740
8742
|
type: "add",
|
|
@@ -8743,16 +8745,16 @@ var Fm, Im = {}, Lm = function() {
|
|
|
8743
8745
|
if (!i) return;
|
|
8744
8746
|
t = i.newValue;
|
|
8745
8747
|
}
|
|
8746
|
-
var a = new
|
|
8747
|
-
this.values.set(e, a), t = a.value, Object.defineProperty(r, e,
|
|
8748
|
+
var a = new up(t, n, this.name + "." + Zd(e), !1);
|
|
8749
|
+
this.values.set(e, a), t = a.value, Object.defineProperty(r, e, Jm(e)), this.notifyPropertyAddition(e, t);
|
|
8748
8750
|
}, e.prototype.addComputedProp = function(e, t, n) {
|
|
8749
8751
|
var r = this.target;
|
|
8750
|
-
n.name = n.name || this.name + "." +
|
|
8752
|
+
n.name = n.name || this.name + "." + Zd(t), this.values.set(t, new fp(n)), (e === r || Kd(e, t)) && Object.defineProperty(e, t, Xm(t));
|
|
8751
8753
|
}, e.prototype.remove = function(e) {
|
|
8752
8754
|
if (this.values.has(e)) {
|
|
8753
8755
|
var t = this.target;
|
|
8754
|
-
if (
|
|
8755
|
-
var n =
|
|
8756
|
+
if (Cm(this)) {
|
|
8757
|
+
var n = Tm(this, {
|
|
8756
8758
|
object: this.proxy || t,
|
|
8757
8759
|
name: e,
|
|
8758
8760
|
type: "remove"
|
|
@@ -8761,7 +8763,7 @@ var Fm, Im = {}, Lm = function() {
|
|
|
8761
8763
|
}
|
|
8762
8764
|
try {
|
|
8763
8765
|
Z();
|
|
8764
|
-
var r =
|
|
8766
|
+
var r = Em(this), i = $(), a = this.values.get(e), o = a && a.get();
|
|
8765
8767
|
if (a && a.set(void 0), this.keysAtom.reportChanged(), this.values.delete(e), this.pendingKeys) {
|
|
8766
8768
|
var s = this.pendingKeys.get(e);
|
|
8767
8769
|
s && s.set(!1);
|
|
@@ -8773,7 +8775,7 @@ var Fm, Im = {}, Lm = function() {
|
|
|
8773
8775
|
oldValue: o,
|
|
8774
8776
|
name: e
|
|
8775
8777
|
} : null;
|
|
8776
|
-
r &&
|
|
8778
|
+
r && Om(this, n);
|
|
8777
8779
|
} finally {
|
|
8778
8780
|
Q();
|
|
8779
8781
|
}
|
|
@@ -8781,17 +8783,17 @@ var Fm, Im = {}, Lm = function() {
|
|
|
8781
8783
|
}, e.prototype.illegalAccess = function(e, t) {
|
|
8782
8784
|
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");
|
|
8783
8785
|
}, e.prototype.observe = function(e, t) {
|
|
8784
|
-
return
|
|
8786
|
+
return Dm(this, e);
|
|
8785
8787
|
}, e.prototype.intercept = function(e) {
|
|
8786
|
-
return
|
|
8788
|
+
return wm(this, e);
|
|
8787
8789
|
}, e.prototype.notifyPropertyAddition = function(e, t) {
|
|
8788
|
-
var n =
|
|
8790
|
+
var n = Em(this), r = $(), i = n || r ? {
|
|
8789
8791
|
type: "add",
|
|
8790
8792
|
object: this.proxy || this.target,
|
|
8791
8793
|
name: e,
|
|
8792
8794
|
newValue: t
|
|
8793
8795
|
} : null;
|
|
8794
|
-
if (n &&
|
|
8796
|
+
if (n && Om(this, i), this.pendingKeys) {
|
|
8795
8797
|
var a = this.pendingKeys.get(e);
|
|
8796
8798
|
a && a.set(!0);
|
|
8797
8799
|
}
|
|
@@ -8801,9 +8803,9 @@ var Fm, Im = {}, Lm = function() {
|
|
|
8801
8803
|
this.keysAtom.reportObserved();
|
|
8802
8804
|
var n = [];
|
|
8803
8805
|
try {
|
|
8804
|
-
for (var r =
|
|
8805
|
-
var a =
|
|
8806
|
-
a[1] instanceof
|
|
8806
|
+
for (var r = ff(this.values), i = r.next(); !i.done; i = r.next()) {
|
|
8807
|
+
var a = pf(i.value, 2), o = a[0];
|
|
8808
|
+
a[1] instanceof up && n.push(o);
|
|
8807
8809
|
}
|
|
8808
8810
|
} catch (t) {
|
|
8809
8811
|
e = { error: t };
|
|
@@ -8817,15 +8819,15 @@ var Fm, Im = {}, Lm = function() {
|
|
|
8817
8819
|
return n;
|
|
8818
8820
|
}, e;
|
|
8819
8821
|
}();
|
|
8820
|
-
function
|
|
8821
|
-
if (t === void 0 && (t = ""), n === void 0 && (n =
|
|
8822
|
-
|
|
8823
|
-
var r = new
|
|
8824
|
-
return
|
|
8825
|
-
}
|
|
8826
|
-
var
|
|
8827
|
-
function
|
|
8828
|
-
return
|
|
8822
|
+
function Gm(e, t, n) {
|
|
8823
|
+
if (t === void 0 && (t = ""), n === void 0 && (n = Cf), Object.prototype.hasOwnProperty.call(e, q)) return e[q];
|
|
8824
|
+
Hd(e) || (t = (e.constructor.name || "ObservableObject") + "@" + G()), t || (t = "ObservableObject@" + G());
|
|
8825
|
+
var r = new Wm(e, /* @__PURE__ */ new Map(), Zd(t), n);
|
|
8826
|
+
return Wd(e, q, r), r;
|
|
8827
|
+
}
|
|
8828
|
+
var Km = Object.create(null), qm = Object.create(null);
|
|
8829
|
+
function Jm(e) {
|
|
8830
|
+
return Km[e] || (Km[e] = {
|
|
8829
8831
|
configurable: !0,
|
|
8830
8832
|
enumerable: !0,
|
|
8831
8833
|
get: function() {
|
|
@@ -8836,65 +8838,65 @@ function qm(e) {
|
|
|
8836
8838
|
}
|
|
8837
8839
|
});
|
|
8838
8840
|
}
|
|
8839
|
-
function Jm(e) {
|
|
8840
|
-
return e[q] || (yf(e), e[q]);
|
|
8841
|
-
}
|
|
8842
8841
|
function Ym(e) {
|
|
8843
|
-
return
|
|
8842
|
+
return e[q] || (bf(e), e[q]);
|
|
8843
|
+
}
|
|
8844
|
+
function Xm(e) {
|
|
8845
|
+
return qm[e] || (qm[e] = {
|
|
8844
8846
|
configurable: X.computedConfigurable,
|
|
8845
8847
|
enumerable: !1,
|
|
8846
8848
|
get: function() {
|
|
8847
|
-
return
|
|
8849
|
+
return Ym(this).read(e);
|
|
8848
8850
|
},
|
|
8849
8851
|
set: function(t) {
|
|
8850
|
-
|
|
8852
|
+
Ym(this).write(e, t);
|
|
8851
8853
|
}
|
|
8852
8854
|
});
|
|
8853
8855
|
}
|
|
8854
|
-
var
|
|
8855
|
-
function
|
|
8856
|
-
return
|
|
8856
|
+
var Zm = qd("ObservableObjectAdministration", Wm);
|
|
8857
|
+
function Qm(e) {
|
|
8858
|
+
return Vd(e) ? (bf(e), Zm(e[q])) : !1;
|
|
8857
8859
|
}
|
|
8858
|
-
function
|
|
8860
|
+
function $m(e, t) {
|
|
8859
8861
|
if (typeof e == "object" && e) {
|
|
8860
|
-
if (
|
|
8861
|
-
if (
|
|
8862
|
-
if (
|
|
8862
|
+
if (Fm(e)) return t !== void 0 && K(!1), e[q].atom;
|
|
8863
|
+
if (Um(e)) return e[q];
|
|
8864
|
+
if (zm(e)) {
|
|
8863
8865
|
var n = e;
|
|
8864
8866
|
if (t === void 0) return n._keysAtom;
|
|
8865
8867
|
var r = n._data.get(t) || n._hasMap.get(t);
|
|
8866
8868
|
return r || K(!1), r;
|
|
8867
8869
|
}
|
|
8868
|
-
if (
|
|
8870
|
+
if (bf(e), t && !e[q] && e[t], Qm(e)) {
|
|
8869
8871
|
if (!t) return K(!1);
|
|
8870
8872
|
var r = e[q].values.get(t);
|
|
8871
8873
|
return r || K(!1), r;
|
|
8872
8874
|
}
|
|
8873
|
-
if (
|
|
8874
|
-
} else if (typeof e == "function" &&
|
|
8875
|
+
if (tf(e) || pp(e) || Pp(e)) return e;
|
|
8876
|
+
} else if (typeof e == "function" && Pp(e[q])) return e[q];
|
|
8875
8877
|
return K(!1);
|
|
8876
8878
|
}
|
|
8877
|
-
function
|
|
8878
|
-
if (e || K("Expecting some object"), t !== void 0) return $m(
|
|
8879
|
-
if (
|
|
8880
|
-
if (
|
|
8879
|
+
function eh(e, t) {
|
|
8880
|
+
if (e || K("Expecting some object"), t !== void 0) return eh($m(e, t));
|
|
8881
|
+
if (tf(e) || pp(e) || Pp(e) || zm(e) || Um(e)) return e;
|
|
8882
|
+
if (bf(e), e[q]) return e[q];
|
|
8881
8883
|
K(!1);
|
|
8882
8884
|
}
|
|
8883
|
-
function
|
|
8884
|
-
return (t === void 0 ?
|
|
8885
|
+
function th(e, t) {
|
|
8886
|
+
return (t === void 0 ? Qm(e) || zm(e) || Um(e) ? eh(e) : $m(e) : $m(e, t)).name;
|
|
8885
8887
|
}
|
|
8886
|
-
var
|
|
8887
|
-
function
|
|
8888
|
-
return n === void 0 && (n = -1),
|
|
8888
|
+
var nh = Object.prototype.toString;
|
|
8889
|
+
function rh(e, t, n) {
|
|
8890
|
+
return n === void 0 && (n = -1), ih(e, t, n);
|
|
8889
8891
|
}
|
|
8890
|
-
function
|
|
8892
|
+
function ih(e, t, n, r, i) {
|
|
8891
8893
|
if (e === t) return e !== 0 || 1 / e == 1 / t;
|
|
8892
8894
|
if (e == null || t == null) return !1;
|
|
8893
8895
|
if (e !== e) return t !== t;
|
|
8894
8896
|
var a = typeof e;
|
|
8895
8897
|
if (a !== "function" && a !== "object" && typeof t != "object") return !1;
|
|
8896
|
-
var o =
|
|
8897
|
-
if (o !==
|
|
8898
|
+
var o = nh.call(e);
|
|
8899
|
+
if (o !== nh.call(t)) return !1;
|
|
8898
8900
|
switch (o) {
|
|
8899
8901
|
case "[object RegExp]":
|
|
8900
8902
|
case "[object String]": return "" + e == "" + t;
|
|
@@ -8907,7 +8909,7 @@ function rh(e, t, n, r, i) {
|
|
|
8907
8909
|
n >= 0 && n++;
|
|
8908
8910
|
break;
|
|
8909
8911
|
}
|
|
8910
|
-
e =
|
|
8912
|
+
e = ah(e), t = ah(t);
|
|
8911
8913
|
var s = o === "[object Array]";
|
|
8912
8914
|
if (!s) {
|
|
8913
8915
|
if (typeof e != "object" || typeof t != "object") return !1;
|
|
@@ -8919,24 +8921,24 @@ function rh(e, t, n, r, i) {
|
|
|
8919
8921
|
for (var u = r.length; u--;) if (r[u] === e) return i[u] === t;
|
|
8920
8922
|
if (r.push(e), i.push(t), s) {
|
|
8921
8923
|
if (u = e.length, u !== t.length) return !1;
|
|
8922
|
-
for (; u--;) if (!
|
|
8924
|
+
for (; u--;) if (!ih(e[u], t[u], n - 1, r, i)) return !1;
|
|
8923
8925
|
} else {
|
|
8924
8926
|
var d = Object.keys(e), f = void 0;
|
|
8925
8927
|
if (u = d.length, Object.keys(t).length !== u) return !1;
|
|
8926
|
-
for (; u--;) if (f = d[u], !(
|
|
8928
|
+
for (; u--;) if (f = d[u], !(oh(t, f) && ih(e[f], t[f], n - 1, r, i))) return !1;
|
|
8927
8929
|
}
|
|
8928
8930
|
return r.pop(), i.pop(), !0;
|
|
8929
8931
|
}
|
|
8930
|
-
function
|
|
8931
|
-
return
|
|
8932
|
+
function ah(e) {
|
|
8933
|
+
return Fm(e) ? e.slice() : Jd(e) || zm(e) || Yd(e) || Um(e) ? Array.from(e.entries()) : e;
|
|
8932
8934
|
}
|
|
8933
|
-
function
|
|
8935
|
+
function oh(e, t) {
|
|
8934
8936
|
return Object.prototype.hasOwnProperty.call(e, t);
|
|
8935
8937
|
}
|
|
8936
|
-
function
|
|
8937
|
-
return e[Symbol.iterator] =
|
|
8938
|
+
function sh(e) {
|
|
8939
|
+
return e[Symbol.iterator] = ch, e;
|
|
8938
8940
|
}
|
|
8939
|
-
function
|
|
8941
|
+
function ch() {
|
|
8940
8942
|
return this;
|
|
8941
8943
|
}
|
|
8942
8944
|
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.");
|
|
@@ -8944,13 +8946,13 @@ if (typeof Proxy > "u" || typeof Symbol > "u") throw Error("[mobx] MobX 5+ requi
|
|
|
8944
8946
|
function e() {}
|
|
8945
8947
|
e.name;
|
|
8946
8948
|
})(), typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__ == "object" && __MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({
|
|
8947
|
-
spy:
|
|
8948
|
-
extras: { getDebugName:
|
|
8949
|
+
spy: Ip,
|
|
8950
|
+
extras: { getDebugName: th },
|
|
8949
8951
|
$mobx: q
|
|
8950
8952
|
});
|
|
8951
8953
|
//#endregion
|
|
8952
8954
|
//#region src/locales.ts
|
|
8953
|
-
var
|
|
8955
|
+
var lh = {
|
|
8954
8956
|
de: "Deutsch",
|
|
8955
8957
|
en: "English",
|
|
8956
8958
|
es: "Español",
|
|
@@ -8975,47 +8977,47 @@ var ch = {
|
|
|
8975
8977
|
};
|
|
8976
8978
|
//#endregion
|
|
8977
8979
|
//#region src/utils/localStorage.ts
|
|
8978
|
-
function
|
|
8980
|
+
function uh() {
|
|
8979
8981
|
try {
|
|
8980
8982
|
return localStorage.setItem("test", "test"), localStorage.removeItem("test"), !0;
|
|
8981
8983
|
} catch {
|
|
8982
8984
|
return !1;
|
|
8983
8985
|
}
|
|
8984
8986
|
}
|
|
8985
|
-
var
|
|
8986
|
-
if (!
|
|
8987
|
-
let e = localStorage.getItem(
|
|
8988
|
-
return t && localStorage.removeItem(
|
|
8989
|
-
},
|
|
8987
|
+
var dh = uh(), fh = "en", ph = "efp-locale", mh = "language", hh = J.box(fh), gh = J.array([], { deep: !1 }), _h = (e) => zu(`${Pu}locales/${e}.json`), vh = () => {
|
|
8988
|
+
if (!dh) return null;
|
|
8989
|
+
let e = localStorage.getItem(ph), t = localStorage.getItem(mh);
|
|
8990
|
+
return t && localStorage.removeItem(mh), e || (t && localStorage.setItem(ph, t), t);
|
|
8991
|
+
}, yh = () => {
|
|
8990
8992
|
var e;
|
|
8991
|
-
let t = ((e = navigator.languages) == null ? void 0 : e[0]) || navigator.language, n = Object.keys(
|
|
8992
|
-
return (
|
|
8993
|
-
},
|
|
8994
|
-
|
|
8993
|
+
let t = ((e = navigator.languages) == null ? void 0 : e[0]) || navigator.language, n = Object.keys(lh).find((e) => t.startsWith(e));
|
|
8994
|
+
return (vh() || o().locale || n || fh).toLowerCase();
|
|
8995
|
+
}, bh = () => hh.get(), xh = () => gh, Sh = (e) => gh.some((t) => t.id === e), Ch = (e, t) => (hh.get(), Nd.t(e, t)), wh = (e, t) => (hh.get(), Nd.exists(e, t) ? Nd.t(e, t) : e), Th = async () => {
|
|
8996
|
+
gh.replace(Object.entries(lh).sort(([e], [t]) => e.localeCompare(t)).map(([e, t]) => ({
|
|
8995
8997
|
id: e,
|
|
8996
8998
|
name: t,
|
|
8997
|
-
entity: { type:
|
|
8999
|
+
entity: { type: yu }
|
|
8998
9000
|
})));
|
|
8999
|
-
let e =
|
|
9000
|
-
if (e !==
|
|
9001
|
-
t[e] = { translation: await
|
|
9001
|
+
let e = yh(), t = {};
|
|
9002
|
+
if (e !== fh) try {
|
|
9003
|
+
t[e] = { translation: await _h(e) };
|
|
9002
9004
|
} catch (t) {
|
|
9003
|
-
console.error(`Unable to load "${e}" localization, falling back to "${
|
|
9005
|
+
console.error(`Unable to load "${e}" localization, falling back to "${fh}".`, t), e = fh;
|
|
9004
9006
|
}
|
|
9005
|
-
return
|
|
9007
|
+
return hh.set(e), Nd.init({
|
|
9006
9008
|
resources: t,
|
|
9007
9009
|
lng: e,
|
|
9008
9010
|
keySeparator: !1,
|
|
9009
|
-
saveMissing: e !==
|
|
9011
|
+
saveMissing: e !== fh,
|
|
9010
9012
|
missingKeyHandler: (e, t, n, r) => console.debug(`i18n missing key: '${e[0]}:${t}:${n}', fallback: '${r}'`)
|
|
9011
9013
|
});
|
|
9012
|
-
},
|
|
9014
|
+
}, Eh = async (e) => {
|
|
9013
9015
|
let t = e.toLowerCase();
|
|
9014
9016
|
try {
|
|
9015
|
-
t !==
|
|
9017
|
+
t !== fh && !Nd.hasResourceBundle(t, "translation") && Nd.addResourceBundle(t, "translation", await _h(t), !0, !0), await Nd.changeLanguage(t), hh.set(t), dh && localStorage.setItem(ph, t);
|
|
9016
9018
|
} catch (e) {
|
|
9017
9019
|
console.error(`Failed to switch language to "${t}":`, e);
|
|
9018
9020
|
}
|
|
9019
|
-
},
|
|
9021
|
+
}, Dh = async () => (dh && (localStorage.removeItem(ph), localStorage.removeItem(mh)), Eh(yh()));
|
|
9020
9022
|
//#endregion
|
|
9021
|
-
export {
|
|
9023
|
+
export { uu as $, Pu as A, b as At, Au as B, gm as C, zt as Ct, Uu as D, Ne as Dt, Bu as E, je as Et, Eu as F, xu as G, yu as H, Du as I, du as J, Mu as K, ku as L, vu as M, c as Mt, hu as N, o as Nt, Vu as O, Fe as Ot, gu as P, a as Pt, bu as Q, ju as R, hm as S, Vn as St, Xu as T, ke as Tt, Cu as U, pu as V, Tu as W, mu as X, Su as Y, wu as Z, J as _, bn as _t, Dh as a, Hc as at, Ip as b, pn as bt, wh as c, Ec as ct, Vp as d, is as dt, Ql as et, Wp as f, $o as ft, nm as g, or as gt, Qp as h, oi as ht, Th as i, Wc as it, fu as j, E as jt, Ru as k, T as kt, dh as l, rc as lt, Bf as m, Nr as mt, xh as n, Sl as nt, Eh as o, Ac as ot, cf as p, Rr as pt, _u as q, Sh as r, Uc as rt, Ch as s, Rc as st, bh as t, Pl as tt, kp as u, nc as ut, qp as v, er as vt, $u as w, O as wt, fm as x, wn as xt, Hp as y, vn as yt, Ou as z };
|