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