@teritorio/openstreetmap-logical-history-component 0.4.7 → 0.5.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/index.css +1 -1
- package/dist/index.js +356 -325
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +1 -1
- package/dist/index.umd.cjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -587,90 +587,94 @@ function ct(e, t) {
|
|
|
587
587
|
}
|
|
588
588
|
//#endregion
|
|
589
589
|
//#region src/components/LoCha/LoChaObject.vue?vue&type=script&setup=true&lang.ts
|
|
590
|
-
var lt = { class: "locha-object" }, ut = { class: "
|
|
590
|
+
var lt = { class: "locha-object" }, ut = { class: "header-row" }, dt = { class: "before-content" }, ft = { class: "wrap" }, pt = ["href"], mt = {
|
|
591
|
+
key: 1,
|
|
592
|
+
class: "fab"
|
|
593
|
+
}, ht = { class: "fab-menu" }, gt = ["href"], _t = ["href", "target"], vt = ["href"], yt = ["href"], bt = { class: "date" }, xt = ["href", "title"], St = /* @__PURE__ */ l({
|
|
591
594
|
__name: "LoChaObject",
|
|
592
595
|
props: {
|
|
593
596
|
feature: {},
|
|
594
|
-
josmTarget: {}
|
|
597
|
+
josmTarget: {},
|
|
598
|
+
compact: { type: Boolean }
|
|
595
599
|
},
|
|
596
|
-
setup(
|
|
600
|
+
setup(n) {
|
|
597
601
|
ee((e) => ({
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
602
|
+
v1a4012b6: u.value,
|
|
603
|
+
v58477c4e: j(G).delete,
|
|
604
|
+
f6b42446: j(G).new
|
|
601
605
|
}));
|
|
602
|
-
let
|
|
603
|
-
switch (
|
|
606
|
+
let o = n, { getStatus: s } = p(et), c = t(() => s(o.feature)), l = t(() => {
|
|
607
|
+
switch (c.value) {
|
|
604
608
|
case "new": return "new";
|
|
605
609
|
case "delete": return "deleted";
|
|
606
610
|
default: return "";
|
|
607
611
|
}
|
|
608
|
-
}),
|
|
609
|
-
return (t,
|
|
610
|
-
a("div",
|
|
612
|
+
}), u = t(() => G[c.value]);
|
|
613
|
+
return (t, s) => (x(), i("article", lt, [a("div", ut, [t.$slots.before ? (x(), i(e, { key: 0 }, [a("div", dt, [E(t.$slots, "before", {}, void 0, !0)]), s[6] ||= a("span", { class: "header-arrow" }, "→", -1)], 64)) : r("", !0), a("header", null, [
|
|
614
|
+
a("div", ft, [
|
|
611
615
|
a("a", {
|
|
612
|
-
href: j(it)(
|
|
616
|
+
href: j(it)(n.feature.properties.objtype, n.feature.properties.id),
|
|
613
617
|
title: "OSM History",
|
|
614
618
|
target: "_blank",
|
|
615
|
-
onClick:
|
|
616
|
-
}, O(`${
|
|
617
|
-
|
|
619
|
+
onClick: s[0] ||= P(() => {}, ["stop"])
|
|
620
|
+
}, O(`${n.feature.properties.objtype}${n.feature.properties.id}-v${n.feature.properties.version}`), 9, pt),
|
|
621
|
+
!n.compact && (c.value === "new" || c.value === "delete") ? (x(), i("div", {
|
|
618
622
|
key: 0,
|
|
619
623
|
class: g(["status-content", {
|
|
620
|
-
"object-new":
|
|
621
|
-
"object-deleted":
|
|
624
|
+
"object-new": c.value === "new",
|
|
625
|
+
"object-deleted": c.value === "delete"
|
|
622
626
|
}])
|
|
623
|
-
}, O(
|
|
624
|
-
|
|
627
|
+
}, O(l.value), 3)) : r("", !0),
|
|
628
|
+
n.compact ? r("", !0) : (x(), i("div", mt, [s[7] ||= a("button", {
|
|
625
629
|
class: "fab-toggle",
|
|
626
630
|
type: "button",
|
|
627
631
|
title: "Tools"
|
|
628
|
-
}, " 🔧 Tools ", -1), a("div",
|
|
632
|
+
}, " 🔧 Tools ", -1), a("div", ht, [
|
|
629
633
|
a("a", {
|
|
630
|
-
href: j(it)(
|
|
634
|
+
href: j(it)(n.feature.properties.objtype, n.feature.properties.id),
|
|
631
635
|
class: "action-btn",
|
|
632
636
|
title: "Edit in OSM iD",
|
|
633
637
|
target: "_blank",
|
|
634
|
-
onClick:
|
|
635
|
-
}, " OSM iD ", 8,
|
|
638
|
+
onClick: s[1] ||= P(() => {}, ["stop"])
|
|
639
|
+
}, " OSM iD ", 8, gt),
|
|
636
640
|
a("a", {
|
|
637
|
-
href: j(ot)(
|
|
641
|
+
href: j(ot)(n.feature.properties.objtype, n.feature.properties.id),
|
|
638
642
|
class: "action-btn",
|
|
639
643
|
title: "Edit in JOSM",
|
|
640
|
-
target:
|
|
641
|
-
onClick:
|
|
642
|
-
}, " JOSM ", 8,
|
|
644
|
+
target: n.josmTarget || "hidden_josm_target",
|
|
645
|
+
onClick: s[2] ||= P(() => {}, ["stop"])
|
|
646
|
+
}, " JOSM ", 8, _t),
|
|
643
647
|
a("a", {
|
|
644
|
-
href: j(st)(
|
|
648
|
+
href: j(st)(n.feature.properties.objtype, n.feature.properties.id),
|
|
645
649
|
class: "action-btn",
|
|
646
650
|
title: "OSM Deep History",
|
|
647
651
|
target: "_blank",
|
|
648
|
-
onClick:
|
|
649
|
-
}, " Deep H ", 8,
|
|
652
|
+
onClick: s[3] ||= P(() => {}, ["stop"])
|
|
653
|
+
}, " Deep H ", 8, vt),
|
|
650
654
|
a("a", {
|
|
651
|
-
href: j(ct)(
|
|
655
|
+
href: j(ct)(n.feature.properties.objtype, n.feature.properties.id),
|
|
652
656
|
class: "action-btn",
|
|
653
657
|
title: "OSM History Viewer",
|
|
654
658
|
target: "_blank",
|
|
655
|
-
onClick:
|
|
656
|
-
}, " OSM H ", 8,
|
|
657
|
-
])])
|
|
659
|
+
onClick: s[4] ||= P(() => {}, ["stop"])
|
|
660
|
+
}, " OSM H ", 8, yt)
|
|
661
|
+
])]))
|
|
658
662
|
]),
|
|
659
|
-
a("p",
|
|
660
|
-
|
|
663
|
+
a("p", bt, " 📅 " + O(o.feature.properties.created), 1),
|
|
664
|
+
n.feature.properties.username ? (x(), i("a", {
|
|
661
665
|
key: 0,
|
|
662
|
-
href: j(at)(
|
|
663
|
-
title: `View ${
|
|
666
|
+
href: j(at)(n.feature.properties.username),
|
|
667
|
+
title: `View ${n.feature.properties.username} OSM profile`,
|
|
664
668
|
target: "_blank",
|
|
665
|
-
onClick:
|
|
666
|
-
}, " 👤" + O(
|
|
667
|
-
]), E(t.$slots, "object-detail", {}, void 0, !0)]));
|
|
669
|
+
onClick: s[5] ||= P(() => {}, ["stop"])
|
|
670
|
+
}, " 👤" + O(n.feature.properties.username), 9, xt)) : r("", !0)
|
|
671
|
+
])]), n.compact ? r("", !0) : E(t.$slots, "object-detail", { key: 0 }, void 0, !0)]));
|
|
668
672
|
}
|
|
669
|
-
}),
|
|
673
|
+
}), Ct = (e, t) => {
|
|
670
674
|
let n = e.__vccOpts || e;
|
|
671
675
|
for (let [e, r] of t) n[e] = r;
|
|
672
676
|
return n;
|
|
673
|
-
},
|
|
677
|
+
}, wt = /* @__PURE__ */ Ct(St, [["__scopeId", "data-v-3cb59a96"]]);
|
|
674
678
|
//#endregion
|
|
675
679
|
//#region node_modules/@turf/bbox/dist/esm/index.js
|
|
676
680
|
function K(e, t = {}) {
|
|
@@ -685,31 +689,31 @@ function K(e, t = {}) {
|
|
|
685
689
|
n[0] > e[0] && (n[0] = e[0]), n[1] > e[1] && (n[1] = e[1]), n[2] < e[0] && (n[2] = e[0]), n[3] < e[1] && (n[3] = e[1]);
|
|
686
690
|
}), n;
|
|
687
691
|
}
|
|
688
|
-
var
|
|
692
|
+
var Tt = K;
|
|
689
693
|
//#endregion
|
|
690
694
|
//#region node_modules/@vueuse/shared/dist/index.js
|
|
691
|
-
function
|
|
695
|
+
function Et(e, t) {
|
|
692
696
|
return d() ? (y(e, t), !0) : !1;
|
|
693
697
|
}
|
|
694
|
-
var
|
|
698
|
+
var Dt = typeof window < "u" && typeof document < "u";
|
|
695
699
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
696
|
-
var
|
|
697
|
-
function
|
|
700
|
+
var Ot = (e) => e != null, kt = Object.prototype.toString, At = (e) => kt.call(e) === "[object Object]", jt = () => {}, Mt = /* @__PURE__ */ Nt();
|
|
701
|
+
function Nt() {
|
|
698
702
|
var e, t;
|
|
699
|
-
return
|
|
703
|
+
return Dt && !!(!((e = window) == null || (e = e.navigator) == null) && e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((t = window) == null || (t = t.navigator) == null ? void 0 : t.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window?.navigator.userAgent));
|
|
700
704
|
}
|
|
701
|
-
function
|
|
705
|
+
function Pt(...e) {
|
|
702
706
|
if (e.length !== 1) return k(...e);
|
|
703
707
|
let t = e[0];
|
|
704
708
|
return typeof t == "function" ? C(c(() => ({
|
|
705
709
|
get: t,
|
|
706
|
-
set:
|
|
710
|
+
set: jt
|
|
707
711
|
}))) : w(t);
|
|
708
712
|
}
|
|
709
|
-
function
|
|
713
|
+
function Ft(e) {
|
|
710
714
|
return Array.isArray(e) ? e : [e];
|
|
711
715
|
}
|
|
712
|
-
function
|
|
716
|
+
function It(e, t, n) {
|
|
713
717
|
return M(e, t, {
|
|
714
718
|
...n,
|
|
715
719
|
immediate: !0
|
|
@@ -717,64 +721,64 @@ function Pt(e, t, n) {
|
|
|
717
721
|
}
|
|
718
722
|
//#endregion
|
|
719
723
|
//#region node_modules/@vueuse/core/dist/index.js
|
|
720
|
-
var
|
|
721
|
-
|
|
722
|
-
function
|
|
724
|
+
var Lt = Dt ? window : void 0;
|
|
725
|
+
Dt && window.document, Dt && window.navigator, Dt && window.location;
|
|
726
|
+
function Rt(e) {
|
|
723
727
|
let t = A(e);
|
|
724
728
|
return t?.$el ?? t;
|
|
725
729
|
}
|
|
726
|
-
function
|
|
730
|
+
function zt(...e) {
|
|
727
731
|
let n = (e, t, n, r) => (e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r)), r = t(() => {
|
|
728
|
-
let t =
|
|
732
|
+
let t = Ft(A(e[0])).filter((e) => e != null);
|
|
729
733
|
return t.every((e) => typeof e != "string") ? t : void 0;
|
|
730
734
|
});
|
|
731
|
-
return
|
|
732
|
-
r.value?.map((e) =>
|
|
733
|
-
|
|
734
|
-
|
|
735
|
+
return It(() => [
|
|
736
|
+
r.value?.map((e) => Rt(e)) ?? [Lt].filter((e) => e != null),
|
|
737
|
+
Ft(A(r.value ? e[1] : e[0])),
|
|
738
|
+
Ft(j(r.value ? e[2] : e[1])),
|
|
735
739
|
A(r.value ? e[3] : e[2])
|
|
736
740
|
], ([e, t, r, i], a, o) => {
|
|
737
741
|
if (!e?.length || !t?.length || !r?.length) return;
|
|
738
|
-
let s =
|
|
742
|
+
let s = At(i) ? { ...i } : i, c = e.flatMap((e) => t.flatMap((t) => r.map((r) => n(e, t, r, s))));
|
|
739
743
|
o(() => {
|
|
740
744
|
c.forEach((e) => e());
|
|
741
745
|
});
|
|
742
746
|
}, { flush: "post" });
|
|
743
747
|
}
|
|
744
|
-
function
|
|
748
|
+
function Bt() {
|
|
745
749
|
let e = D(!1), t = u();
|
|
746
750
|
return t && v(() => {
|
|
747
751
|
e.value = !0;
|
|
748
752
|
}, t), e;
|
|
749
753
|
}
|
|
750
754
|
/* @__NO_SIDE_EFFECTS__ */
|
|
751
|
-
function
|
|
752
|
-
let n =
|
|
755
|
+
function Vt(e) {
|
|
756
|
+
let n = Bt();
|
|
753
757
|
return t(() => (n.value, !!e()));
|
|
754
758
|
}
|
|
755
|
-
function
|
|
756
|
-
let { root: i, rootMargin: a, threshold: o = 0, window: s =
|
|
759
|
+
function Ht(e, n, r = {}) {
|
|
760
|
+
let { root: i, rootMargin: a, threshold: o = 0, window: s = Lt, immediate: c = !0 } = r, l = /* @__PURE__ */ Vt(() => s && "IntersectionObserver" in s), u = t(() => Ft(A(e)).map(Rt).filter(Ot)), d = jt, f = D(c), p = l.value ? M(() => [
|
|
757
761
|
u.value,
|
|
758
|
-
|
|
762
|
+
Rt(i),
|
|
759
763
|
A(a),
|
|
760
764
|
f.value
|
|
761
765
|
], ([e, t, r]) => {
|
|
762
766
|
if (d(), !f.value || !e.length) return;
|
|
763
767
|
let i = new IntersectionObserver(n, {
|
|
764
|
-
root:
|
|
768
|
+
root: Rt(t),
|
|
765
769
|
rootMargin: r,
|
|
766
770
|
threshold: o
|
|
767
771
|
});
|
|
768
772
|
e.forEach((e) => e && i.observe(e)), d = () => {
|
|
769
|
-
i.disconnect(), d =
|
|
773
|
+
i.disconnect(), d = jt;
|
|
770
774
|
};
|
|
771
775
|
}, {
|
|
772
776
|
immediate: c,
|
|
773
777
|
flush: "post"
|
|
774
|
-
}) :
|
|
778
|
+
}) : jt, m = () => {
|
|
775
779
|
d(), p(), f.value = !1;
|
|
776
780
|
};
|
|
777
|
-
return
|
|
781
|
+
return Et(m), {
|
|
778
782
|
isSupported: l,
|
|
779
783
|
isActive: f,
|
|
780
784
|
pause() {
|
|
@@ -786,42 +790,42 @@ function Bt(e, n, r = {}) {
|
|
|
786
790
|
stop: m
|
|
787
791
|
};
|
|
788
792
|
}
|
|
789
|
-
function
|
|
793
|
+
function Ut(e) {
|
|
790
794
|
return typeof Window < "u" && e instanceof Window ? e.document.documentElement : typeof Document < "u" && e instanceof Document ? e.documentElement : e;
|
|
791
795
|
}
|
|
792
|
-
function
|
|
796
|
+
function Wt(e) {
|
|
793
797
|
let t = window.getComputedStyle(e);
|
|
794
798
|
if (t.overflowX === "scroll" || t.overflowY === "scroll" || t.overflowX === "auto" && e.clientWidth < e.scrollWidth || t.overflowY === "auto" && e.clientHeight < e.scrollHeight) return !0;
|
|
795
799
|
{
|
|
796
800
|
let t = e.parentNode;
|
|
797
|
-
return !t || t.tagName === "BODY" ? !1 :
|
|
801
|
+
return !t || t.tagName === "BODY" ? !1 : Wt(t);
|
|
798
802
|
}
|
|
799
803
|
}
|
|
800
|
-
function
|
|
804
|
+
function Gt(e) {
|
|
801
805
|
let t = e || window.event, n = t.target;
|
|
802
|
-
return
|
|
806
|
+
return Wt(n) ? !1 : t.touches.length > 1 ? !0 : (t.preventDefault && t.preventDefault(), !1);
|
|
803
807
|
}
|
|
804
|
-
var
|
|
805
|
-
function
|
|
808
|
+
var Kt = /* @__PURE__ */ new WeakMap();
|
|
809
|
+
function qt(e, n = !1) {
|
|
806
810
|
let r = D(n), i = null, a = "";
|
|
807
|
-
M(
|
|
808
|
-
let t =
|
|
811
|
+
M(Pt(e), (e) => {
|
|
812
|
+
let t = Ut(A(e));
|
|
809
813
|
if (t) {
|
|
810
814
|
let e = t;
|
|
811
|
-
if (
|
|
815
|
+
if (Kt.get(e) || Kt.set(e, e.style.overflow), e.style.overflow !== "hidden" && (a = e.style.overflow), e.style.overflow === "hidden") return r.value = !0;
|
|
812
816
|
if (r.value) return e.style.overflow = "hidden";
|
|
813
817
|
}
|
|
814
818
|
}, { immediate: !0 });
|
|
815
819
|
let o = () => {
|
|
816
|
-
let t =
|
|
817
|
-
!t || r.value || (
|
|
818
|
-
|
|
820
|
+
let t = Ut(A(e));
|
|
821
|
+
!t || r.value || (Mt && (i = zt(t, "touchmove", (e) => {
|
|
822
|
+
Gt(e);
|
|
819
823
|
}, { passive: !1 })), t.style.overflow = "hidden", r.value = !0);
|
|
820
824
|
}, s = () => {
|
|
821
|
-
let t =
|
|
822
|
-
!t || !r.value || (
|
|
825
|
+
let t = Ut(A(e));
|
|
826
|
+
!t || !r.value || (Mt && i?.(), t.style.overflow = a, Kt.delete(t), r.value = !1);
|
|
823
827
|
};
|
|
824
|
-
return
|
|
828
|
+
return Et(s), t({
|
|
825
829
|
get() {
|
|
826
830
|
return r.value;
|
|
827
831
|
},
|
|
@@ -832,31 +836,30 @@ function Gt(e, n = !1) {
|
|
|
832
836
|
}
|
|
833
837
|
//#endregion
|
|
834
838
|
//#region node_modules/@vueuse/components/dist/index.js
|
|
835
|
-
var
|
|
836
|
-
typeof t.value == "function" ?
|
|
839
|
+
var Jt = { mounted(e, t) {
|
|
840
|
+
typeof t.value == "function" ? Ht(e, t.value) : Ht(e, ...t.value);
|
|
837
841
|
} };
|
|
838
|
-
function
|
|
842
|
+
function Yt() {
|
|
839
843
|
let e = !1, t = D(!1);
|
|
840
844
|
return (n, r) => {
|
|
841
845
|
if (t.value = r.value, e) return;
|
|
842
846
|
e = !0;
|
|
843
|
-
let i =
|
|
847
|
+
let i = qt(n, r.value);
|
|
844
848
|
M(t, (e) => i.value = e);
|
|
845
849
|
};
|
|
846
850
|
}
|
|
847
|
-
|
|
851
|
+
Yt();
|
|
848
852
|
//#endregion
|
|
849
853
|
//#region src/constants/map.ts
|
|
850
|
-
var
|
|
854
|
+
var Xt = "https://maps.cartoway.com/styles/positron/style.json", Zt = "#f4f4f5", Qt = "bbox", q = "lochas", J = {
|
|
851
855
|
Bbox: {
|
|
852
856
|
id: "bbox-layer",
|
|
853
857
|
type: "line",
|
|
854
|
-
source:
|
|
858
|
+
source: Qt,
|
|
855
859
|
paint: {
|
|
856
860
|
"line-color": "#000000",
|
|
857
861
|
"line-width": 1,
|
|
858
|
-
"line-dasharray": [2, 2]
|
|
859
|
-
"line-offset": -12
|
|
862
|
+
"line-dasharray": [2, 2]
|
|
860
863
|
}
|
|
861
864
|
},
|
|
862
865
|
PolygonBorder: {
|
|
@@ -904,7 +907,7 @@ var Jt = "https://maps.cartoway.com/styles/positron/style.json", Yt = "#f4f4f5",
|
|
|
904
907
|
["get", "geom"],
|
|
905
908
|
!1
|
|
906
909
|
],
|
|
907
|
-
|
|
910
|
+
Zt,
|
|
908
911
|
[
|
|
909
912
|
"==",
|
|
910
913
|
["get", "is_new"],
|
|
@@ -945,7 +948,7 @@ var Jt = "https://maps.cartoway.com/styles/positron/style.json", Yt = "#f4f4f5",
|
|
|
945
948
|
["get", "geom"],
|
|
946
949
|
!1
|
|
947
950
|
],
|
|
948
|
-
|
|
951
|
+
Zt,
|
|
949
952
|
[
|
|
950
953
|
"==",
|
|
951
954
|
["get", "is_new"],
|
|
@@ -1071,7 +1074,7 @@ var Jt = "https://maps.cartoway.com/styles/positron/style.json", Yt = "#f4f4f5",
|
|
|
1071
1074
|
["get", "geom"],
|
|
1072
1075
|
!1
|
|
1073
1076
|
],
|
|
1074
|
-
|
|
1077
|
+
Zt,
|
|
1075
1078
|
[
|
|
1076
1079
|
"==",
|
|
1077
1080
|
["get", "is_new"],
|
|
@@ -1102,61 +1105,61 @@ var Jt = "https://maps.cartoway.com/styles/positron/style.json", Yt = "#f4f4f5",
|
|
|
1102
1105
|
};
|
|
1103
1106
|
//#endregion
|
|
1104
1107
|
//#region node_modules/@turf/bbox-clip/dist/esm/index.js
|
|
1105
|
-
function
|
|
1106
|
-
var r = e.length, i =
|
|
1108
|
+
function $t(e, t, n) {
|
|
1109
|
+
var r = e.length, i = nn(e[0], t), a = [], o, s, c;
|
|
1107
1110
|
let l, u;
|
|
1108
1111
|
for (n ||= [], o = 1; o < r; o++) {
|
|
1109
|
-
for (l = e[o - 1], u = e[o], s = c =
|
|
1112
|
+
for (l = e[o - 1], u = e[o], s = c = nn(u, t);;) if (!(i | s)) {
|
|
1110
1113
|
a.push(l), s === c ? o === r - 1 && a.push(u) : (a.push(u), o < r - 1 && (n.push(a), a = []));
|
|
1111
1114
|
break;
|
|
1112
1115
|
} else if (i & s) break;
|
|
1113
|
-
else i ? (l =
|
|
1116
|
+
else i ? (l = tn(l, u, i, t), i = nn(l, t)) : (u = tn(l, u, s, t), s = nn(u, t));
|
|
1114
1117
|
i = c;
|
|
1115
1118
|
}
|
|
1116
1119
|
return a.length && n.push(a), n;
|
|
1117
1120
|
}
|
|
1118
|
-
function
|
|
1121
|
+
function en(e, t) {
|
|
1119
1122
|
var n, r, i, a, o, s, c;
|
|
1120
1123
|
for (r = 1; r <= 8; r *= 2) {
|
|
1121
|
-
for (n = [], i = e[e.length - 1], a = !(
|
|
1124
|
+
for (n = [], i = e[e.length - 1], a = !(nn(i, t) & r), o = 0; o < e.length; o++) s = e[o], c = !(nn(s, t) & r), c !== a && n.push(tn(i, s, r, t)), c && n.push(s), i = s, a = c;
|
|
1122
1125
|
if (e = n, !e.length) break;
|
|
1123
1126
|
}
|
|
1124
1127
|
return n;
|
|
1125
1128
|
}
|
|
1126
|
-
function
|
|
1129
|
+
function tn(e, t, n, r) {
|
|
1127
1130
|
return n & 8 ? [e[0] + (t[0] - e[0]) * (r[3] - e[1]) / (t[1] - e[1]), r[3]] : n & 4 ? [e[0] + (t[0] - e[0]) * (r[1] - e[1]) / (t[1] - e[1]), r[1]] : n & 2 ? [r[2], e[1] + (t[1] - e[1]) * (r[2] - e[0]) / (t[0] - e[0])] : n & 1 ? [r[0], e[1] + (t[1] - e[1]) * (r[0] - e[0]) / (t[0] - e[0])] : null;
|
|
1128
1131
|
}
|
|
1129
|
-
function
|
|
1132
|
+
function nn(e, t) {
|
|
1130
1133
|
var n = 0;
|
|
1131
1134
|
return e[0] < t[0] ? n |= 1 : e[0] > t[2] && (n |= 2), e[1] < t[1] ? n |= 4 : e[1] > t[3] && (n |= 8), n;
|
|
1132
1135
|
}
|
|
1133
|
-
function
|
|
1136
|
+
function rn(e, t) {
|
|
1134
1137
|
let n = U(e), r = n.type, i = e.type === "Feature" ? e.properties : {}, a = n.coordinates;
|
|
1135
1138
|
switch (r) {
|
|
1136
1139
|
case "LineString":
|
|
1137
1140
|
case "MultiLineString": {
|
|
1138
1141
|
let e = [];
|
|
1139
1142
|
return r === "LineString" && (a = [a]), a.forEach((n) => {
|
|
1140
|
-
|
|
1143
|
+
$t(n, t, e);
|
|
1141
1144
|
}), e.length === 1 ? L(e[0], i) : _e(e, i);
|
|
1142
1145
|
}
|
|
1143
|
-
case "Polygon": return ge(
|
|
1144
|
-
case "MultiPolygon": return ve(a.map((e) =>
|
|
1146
|
+
case "Polygon": return ge(an(a, t), i);
|
|
1147
|
+
case "MultiPolygon": return ve(a.map((e) => an(e, t)), i);
|
|
1145
1148
|
default: throw Error("geometry " + r + " not supported");
|
|
1146
1149
|
}
|
|
1147
1150
|
}
|
|
1148
|
-
function
|
|
1151
|
+
function an(e, t) {
|
|
1149
1152
|
let n = [];
|
|
1150
1153
|
for (let r of e) {
|
|
1151
|
-
let e =
|
|
1154
|
+
let e = en(r, t);
|
|
1152
1155
|
e.length > 0 && ((e[0][0] !== e[e.length - 1][0] || e[0][1] !== e[e.length - 1][1]) && e.push(e[0]), e.length >= 4 && n.push(e));
|
|
1153
1156
|
}
|
|
1154
1157
|
return n;
|
|
1155
1158
|
}
|
|
1156
|
-
var
|
|
1159
|
+
var on = rn;
|
|
1157
1160
|
//#endregion
|
|
1158
1161
|
//#region node_modules/@turf/bbox-polygon/dist/esm/index.js
|
|
1159
|
-
function
|
|
1162
|
+
function sn(e, t = {}) {
|
|
1160
1163
|
let n = Number(e[0]), r = Number(e[1]), i = Number(e[2]), a = Number(e[3]);
|
|
1161
1164
|
if (e.length === 6) throw Error("@turf/bbox-polygon does not support BBox with 6 positions");
|
|
1162
1165
|
let o = [n, r];
|
|
@@ -1171,8 +1174,8 @@ function an(e, t = {}) {
|
|
|
1171
1174
|
id: t.id
|
|
1172
1175
|
});
|
|
1173
1176
|
}
|
|
1174
|
-
var
|
|
1175
|
-
function
|
|
1177
|
+
var cn = sn, Y = 11102230246251565e-32, X = 134217729, ln = (3 + 8 * Y) * Y;
|
|
1178
|
+
function un(e, t, n, r, i) {
|
|
1176
1179
|
let a, o, s, c, l = t[0], u = r[0], d = 0, f = 0;
|
|
1177
1180
|
u > l == u > -l ? (a = l, l = t[++d]) : (a = u, u = r[++f]);
|
|
1178
1181
|
let p = 0;
|
|
@@ -1181,7 +1184,7 @@ function cn(e, t, n, r, i) {
|
|
|
1181
1184
|
for (; f < n;) o = a + u, c = o - a, s = a - (o - c) + (u - c), u = r[++f], a = o, s !== 0 && (i[p++] = s);
|
|
1182
1185
|
return (a !== 0 || p === 0) && (i[p++] = a), p;
|
|
1183
1186
|
}
|
|
1184
|
-
function
|
|
1187
|
+
function dn(e, t) {
|
|
1185
1188
|
let n = t[0];
|
|
1186
1189
|
for (let r = 1; r < e; r++) n += t[r];
|
|
1187
1190
|
return n;
|
|
@@ -1191,26 +1194,26 @@ function Z(e) {
|
|
|
1191
1194
|
}
|
|
1192
1195
|
//#endregion
|
|
1193
1196
|
//#region node_modules/robust-predicates/esm/orient2d.js
|
|
1194
|
-
var
|
|
1195
|
-
function
|
|
1197
|
+
var fn = (3 + 16 * Y) * Y, pn = (2 + 12 * Y) * Y, mn = (9 + 64 * Y) * Y * Y, hn = Z(4), gn = Z(8), _n = Z(12), vn = Z(16), Q = Z(4);
|
|
1198
|
+
function yn(e, t, n, r, i, a, o) {
|
|
1196
1199
|
let s, c, l, u, d, f, p, m, h, g, _, v, y, b, x, S, C, w, T = e - i, E = n - i, D = t - a, O = r - a;
|
|
1197
|
-
b = T * O, f = X * T, p = f - (f - T), m = T - p, f = X * O, h = f - (f - O), g = O - h, x = m * g - (b - p * h - m * h - p * g), S = D * E, f = X * D, p = f - (f - D), m = D - p, f = X * E, h = f - (f - E), g = E - h, C = m * g - (S - p * h - m * h - p * g), _ = x - C, d = x - _,
|
|
1198
|
-
let k =
|
|
1199
|
-
if (k >= A || -k >= A || (d = e - T, s = e - (T + d) + (d - i), d = n - E, l = n - (E + d) + (d - i), d = t - D, c = t - (D + d) + (d - a), d = r - O, u = r - (O + d) + (d - a), s === 0 && c === 0 && l === 0 && u === 0) || (A =
|
|
1200
|
+
b = T * O, f = X * T, p = f - (f - T), m = T - p, f = X * O, h = f - (f - O), g = O - h, x = m * g - (b - p * h - m * h - p * g), S = D * E, f = X * D, p = f - (f - D), m = D - p, f = X * E, h = f - (f - E), g = E - h, C = m * g - (S - p * h - m * h - p * g), _ = x - C, d = x - _, hn[0] = x - (_ + d) + (d - C), v = b + _, d = v - b, y = b - (v - d) + (_ - d), _ = y - S, d = y - _, hn[1] = y - (_ + d) + (d - S), w = v + _, d = w - v, hn[2] = v - (w - d) + (_ - d), hn[3] = w;
|
|
1201
|
+
let k = dn(4, hn), A = pn * o;
|
|
1202
|
+
if (k >= A || -k >= A || (d = e - T, s = e - (T + d) + (d - i), d = n - E, l = n - (E + d) + (d - i), d = t - D, c = t - (D + d) + (d - a), d = r - O, u = r - (O + d) + (d - a), s === 0 && c === 0 && l === 0 && u === 0) || (A = mn * o + ln * Math.abs(k), k += T * u + O * s - (D * l + E * c), k >= A || -k >= A)) return k;
|
|
1200
1203
|
b = s * O, f = X * s, p = f - (f - s), m = s - p, f = X * O, h = f - (f - O), g = O - h, x = m * g - (b - p * h - m * h - p * g), S = c * E, f = X * c, p = f - (f - c), m = c - p, f = X * E, h = f - (f - E), g = E - h, C = m * g - (S - p * h - m * h - p * g), _ = x - C, d = x - _, Q[0] = x - (_ + d) + (d - C), v = b + _, d = v - b, y = b - (v - d) + (_ - d), _ = y - S, d = y - _, Q[1] = y - (_ + d) + (d - S), w = v + _, d = w - v, Q[2] = v - (w - d) + (_ - d), Q[3] = w;
|
|
1201
|
-
let j =
|
|
1204
|
+
let j = un(4, hn, 4, Q, gn);
|
|
1202
1205
|
b = T * u, f = X * T, p = f - (f - T), m = T - p, f = X * u, h = f - (f - u), g = u - h, x = m * g - (b - p * h - m * h - p * g), S = D * l, f = X * D, p = f - (f - D), m = D - p, f = X * l, h = f - (f - l), g = l - h, C = m * g - (S - p * h - m * h - p * g), _ = x - C, d = x - _, Q[0] = x - (_ + d) + (d - C), v = b + _, d = v - b, y = b - (v - d) + (_ - d), _ = y - S, d = y - _, Q[1] = y - (_ + d) + (d - S), w = v + _, d = w - v, Q[2] = v - (w - d) + (_ - d), Q[3] = w;
|
|
1203
|
-
let ee =
|
|
1204
|
-
return b = s * u, f = X * s, p = f - (f - s), m = s - p, f = X * u, h = f - (f - u), g = u - h, x = m * g - (b - p * h - m * h - p * g), S = c * l, f = X * c, p = f - (f - c), m = c - p, f = X * l, h = f - (f - l), g = l - h, C = m * g - (S - p * h - m * h - p * g), _ = x - C, d = x - _, Q[0] = x - (_ + d) + (d - C), v = b + _, d = v - b, y = b - (v - d) + (_ - d), _ = y - S, d = y - _, Q[1] = y - (_ + d) + (d - S), w = v + _, d = w - v, Q[2] = v - (w - d) + (_ - d), Q[3] = w,
|
|
1206
|
+
let ee = un(j, gn, 4, Q, _n);
|
|
1207
|
+
return b = s * u, f = X * s, p = f - (f - s), m = s - p, f = X * u, h = f - (f - u), g = u - h, x = m * g - (b - p * h - m * h - p * g), S = c * l, f = X * c, p = f - (f - c), m = c - p, f = X * l, h = f - (f - l), g = l - h, C = m * g - (S - p * h - m * h - p * g), _ = x - C, d = x - _, Q[0] = x - (_ + d) + (d - C), v = b + _, d = v - b, y = b - (v - d) + (_ - d), _ = y - S, d = y - _, Q[1] = y - (_ + d) + (d - S), w = v + _, d = w - v, Q[2] = v - (w - d) + (_ - d), Q[3] = w, vn[un(ee, _n, 4, Q, vn) - 1];
|
|
1205
1208
|
}
|
|
1206
|
-
function
|
|
1209
|
+
function bn(e, t, n, r, i, a) {
|
|
1207
1210
|
let o = (t - a) * (n - i), s = (e - i) * (r - a), c = o - s, l = Math.abs(o + s);
|
|
1208
|
-
return Math.abs(c) >=
|
|
1211
|
+
return Math.abs(c) >= fn * l ? c : -yn(e, t, n, r, i, a, l);
|
|
1209
1212
|
}
|
|
1210
1213
|
(7 + 56 * Y) * Y, (3 + 28 * Y) * Y, (26 + 288 * Y) * Y * Y, Z(4), Z(4), Z(4), Z(4), Z(4), Z(4), Z(4), Z(4), Z(4), Z(8), Z(8), Z(8), Z(4), Z(8), Z(8), Z(8), Z(12), Z(192), Z(192), (10 + 96 * Y) * Y, (4 + 48 * Y) * Y, (44 + 576 * Y) * Y * Y, Z(4), Z(4), Z(4), Z(4), Z(4), Z(4), Z(4), Z(4), Z(8), Z(8), Z(8), Z(8), Z(8), Z(8), Z(8), Z(8), Z(8), Z(4), Z(4), Z(4), Z(8), Z(16), Z(16), Z(16), Z(32), Z(32), Z(48), Z(64), Z(1152), Z(1152), (16 + 224 * Y) * Y, (5 + 72 * Y) * Y, (71 + 1408 * Y) * Y * Y, Z(4), Z(4), Z(4), Z(4), Z(4), Z(4), Z(4), Z(4), Z(4), Z(4), Z(24), Z(24), Z(24), Z(24), Z(24), Z(24), Z(24), Z(24), Z(24), Z(24), Z(1152), Z(1152), Z(1152), Z(1152), Z(1152), Z(2304), Z(2304), Z(3456), Z(5760), Z(8), Z(8), Z(8), Z(16), Z(24), Z(48), Z(48), Z(96), Z(192), Z(384), Z(384), Z(384), Z(768), Z(96), Z(96), Z(96), Z(1152);
|
|
1211
1214
|
//#endregion
|
|
1212
1215
|
//#region node_modules/point-in-polygon-hao/dist/esm/index.js
|
|
1213
|
-
function
|
|
1216
|
+
function xn(e, t) {
|
|
1214
1217
|
var n, r, i = 0, a, o, s, c, l, u, d, f = e[0], p = e[1], m = t.length;
|
|
1215
1218
|
for (n = 0; n < m; n++) {
|
|
1216
1219
|
r = 0;
|
|
@@ -1220,7 +1223,7 @@ function yn(e, t) {
|
|
|
1220
1223
|
if (d = h[r + 1], c = d[0] - f, l = d[1] - p, s === 0 && l === 0) {
|
|
1221
1224
|
if (c <= 0 && o >= 0 || o <= 0 && c >= 0) return 0;
|
|
1222
1225
|
} else if (l >= 0 && s <= 0 || l <= 0 && s >= 0) {
|
|
1223
|
-
if (a =
|
|
1226
|
+
if (a = bn(o, c, s, l, 0, 0), a === 0) return 0;
|
|
1224
1227
|
(a > 0 && l > 0 && s <= 0 || a < 0 && l <= 0 && s > 0) && i++;
|
|
1225
1228
|
}
|
|
1226
1229
|
u = d, s = l, o = c;
|
|
@@ -1230,26 +1233,26 @@ function yn(e, t) {
|
|
|
1230
1233
|
}
|
|
1231
1234
|
//#endregion
|
|
1232
1235
|
//#region node_modules/@turf/boolean-point-in-polygon/dist/esm/index.js
|
|
1233
|
-
function
|
|
1236
|
+
function Sn(e, t, n = {}) {
|
|
1234
1237
|
if (!e) throw Error("point is required");
|
|
1235
1238
|
if (!t) throw Error("polygon is required");
|
|
1236
1239
|
let r = V(e), i = U(t), a = i.type, o = t.bbox, s = i.coordinates;
|
|
1237
|
-
if (o &&
|
|
1240
|
+
if (o && Cn(r, o) === !1) return !1;
|
|
1238
1241
|
a === "Polygon" && (s = [s]);
|
|
1239
1242
|
let c = !1;
|
|
1240
1243
|
for (var l = 0; l < s.length; ++l) {
|
|
1241
|
-
let e =
|
|
1244
|
+
let e = xn(r, s[l]);
|
|
1242
1245
|
if (e === 0) return !n.ignoreBoundary;
|
|
1243
1246
|
e && (c = !0);
|
|
1244
1247
|
}
|
|
1245
1248
|
return c;
|
|
1246
1249
|
}
|
|
1247
|
-
function
|
|
1250
|
+
function Cn(e, t) {
|
|
1248
1251
|
return t[0] <= e[0] && t[1] <= e[1] && t[2] >= e[0] && t[3] >= e[1];
|
|
1249
1252
|
}
|
|
1250
1253
|
//#endregion
|
|
1251
1254
|
//#region node_modules/@turf/geojson-rbush/dist/esm/index.js
|
|
1252
|
-
var
|
|
1255
|
+
var wn = /* @__PURE__ */ pe((/* @__PURE__ */ de(((e, t) => {
|
|
1253
1256
|
(function(n, r) {
|
|
1254
1257
|
typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n ||= self).RBush = r();
|
|
1255
1258
|
})(e, function() {
|
|
@@ -1467,7 +1470,7 @@ var Sn = /* @__PURE__ */ pe((/* @__PURE__ */ de(((e, t) => {
|
|
|
1467
1470
|
}, r;
|
|
1468
1471
|
});
|
|
1469
1472
|
})))(), 1);
|
|
1470
|
-
function
|
|
1473
|
+
function Tn(e) {
|
|
1471
1474
|
var t;
|
|
1472
1475
|
if (e.bbox) t = e.bbox;
|
|
1473
1476
|
else if (Array.isArray(e) && e.length === 4) t = e;
|
|
@@ -1487,9 +1490,9 @@ function Cn(e) {
|
|
|
1487
1490
|
maxY: t[3]
|
|
1488
1491
|
};
|
|
1489
1492
|
}
|
|
1490
|
-
var
|
|
1493
|
+
var En = class {
|
|
1491
1494
|
constructor(e = 9) {
|
|
1492
|
-
this.tree = new
|
|
1495
|
+
this.tree = new wn.default(e), this.tree.toBBox = Tn;
|
|
1493
1496
|
}
|
|
1494
1497
|
insert(e) {
|
|
1495
1498
|
if (e.type !== "Feature") throw Error("invalid feature");
|
|
@@ -1513,10 +1516,10 @@ var wn = class {
|
|
|
1513
1516
|
return this.tree.clear(), this;
|
|
1514
1517
|
}
|
|
1515
1518
|
search(e) {
|
|
1516
|
-
return R(this.tree.search(
|
|
1519
|
+
return R(this.tree.search(Tn(e)));
|
|
1517
1520
|
}
|
|
1518
1521
|
collides(e) {
|
|
1519
|
-
return this.tree.collides(
|
|
1522
|
+
return this.tree.collides(Tn(e));
|
|
1520
1523
|
}
|
|
1521
1524
|
all() {
|
|
1522
1525
|
return R(this.tree.all());
|
|
@@ -1528,12 +1531,12 @@ var wn = class {
|
|
|
1528
1531
|
return this.tree.fromJSON(e), this;
|
|
1529
1532
|
}
|
|
1530
1533
|
};
|
|
1531
|
-
function
|
|
1532
|
-
return new
|
|
1534
|
+
function Dn(e) {
|
|
1535
|
+
return new En(e);
|
|
1533
1536
|
}
|
|
1534
1537
|
//#endregion
|
|
1535
1538
|
//#region node_modules/@turf/truncate/dist/esm/index.js
|
|
1536
|
-
function
|
|
1539
|
+
function On(e, t) {
|
|
1537
1540
|
if (t ??= {}, !Se(t)) throw Error("options is invalid");
|
|
1538
1541
|
var n = t.precision, r = t.coordinates, i = t.mutate;
|
|
1539
1542
|
if (n = n == null || isNaN(n) ? 6 : n, r = r == null || isNaN(r) ? 3 : r, !e) throw Error("<geojson> is required");
|
|
@@ -1542,24 +1545,24 @@ function En(e, t) {
|
|
|
1542
1545
|
(i === !1 || i === void 0) && (e = JSON.parse(JSON.stringify(e)));
|
|
1543
1546
|
var a = 10 ** n;
|
|
1544
1547
|
return Ce(e, function(e) {
|
|
1545
|
-
|
|
1548
|
+
kn(e, a, r);
|
|
1546
1549
|
}), e;
|
|
1547
1550
|
}
|
|
1548
|
-
function
|
|
1551
|
+
function kn(e, t, n) {
|
|
1549
1552
|
e.length > n && e.splice(n, e.length);
|
|
1550
1553
|
for (var r = 0; r < e.length; r++) e[r] = Math.round(e[r] * t) / t;
|
|
1551
1554
|
return e;
|
|
1552
1555
|
}
|
|
1553
1556
|
//#endregion
|
|
1554
1557
|
//#region node_modules/@turf/line-segment/dist/esm/index.js
|
|
1555
|
-
function
|
|
1558
|
+
function An(e) {
|
|
1556
1559
|
if (!e) throw Error("geojson is required");
|
|
1557
1560
|
let t = [];
|
|
1558
1561
|
return Oe(e, (e) => {
|
|
1559
|
-
|
|
1562
|
+
jn(e, t);
|
|
1560
1563
|
}), R(t);
|
|
1561
1564
|
}
|
|
1562
|
-
function
|
|
1565
|
+
function jn(e, t) {
|
|
1563
1566
|
let n = [], r = e.geometry;
|
|
1564
1567
|
if (r !== null) {
|
|
1565
1568
|
switch (r.type) {
|
|
@@ -1569,20 +1572,20 @@ function kn(e, t) {
|
|
|
1569
1572
|
case "LineString": n = [H(r)];
|
|
1570
1573
|
}
|
|
1571
1574
|
n.forEach((n) => {
|
|
1572
|
-
|
|
1575
|
+
Mn(n, e.properties).forEach((e) => {
|
|
1573
1576
|
e.id = t.length, t.push(e);
|
|
1574
1577
|
});
|
|
1575
1578
|
});
|
|
1576
1579
|
}
|
|
1577
1580
|
}
|
|
1578
|
-
function
|
|
1581
|
+
function Mn(e, t) {
|
|
1579
1582
|
let n = [];
|
|
1580
1583
|
return e.reduce((e, r) => {
|
|
1581
1584
|
let i = L([e, r], t);
|
|
1582
|
-
return i.bbox =
|
|
1585
|
+
return i.bbox = Nn(e, r), n.push(i), r;
|
|
1583
1586
|
}), n;
|
|
1584
1587
|
}
|
|
1585
|
-
function
|
|
1588
|
+
function Nn(e, t) {
|
|
1586
1589
|
let n = e[0], r = e[1], i = t[0], a = t[1];
|
|
1587
1590
|
return [
|
|
1588
1591
|
n < i ? n : i,
|
|
@@ -1593,8 +1596,8 @@ function jn(e, t) {
|
|
|
1593
1596
|
}
|
|
1594
1597
|
//#endregion
|
|
1595
1598
|
//#region node_modules/sweepline-intersections/dist/sweeplineIntersections.esm.js
|
|
1596
|
-
var
|
|
1597
|
-
constructor(e = [], t =
|
|
1599
|
+
var Pn = class {
|
|
1600
|
+
constructor(e = [], t = Fn) {
|
|
1598
1601
|
if (this.data = e, this.length = this.data.length, this.compare = t, this.length > 0) for (let e = (this.length >> 1) - 1; e >= 0; e--) this._down(e);
|
|
1599
1602
|
}
|
|
1600
1603
|
push(e) {
|
|
@@ -1627,16 +1630,16 @@ var Mn = class {
|
|
|
1627
1630
|
t[e] = i;
|
|
1628
1631
|
}
|
|
1629
1632
|
};
|
|
1630
|
-
function
|
|
1633
|
+
function Fn(e, t) {
|
|
1631
1634
|
return e < t ? -1 : e > t ? 1 : 0;
|
|
1632
1635
|
}
|
|
1633
|
-
function
|
|
1636
|
+
function In(e, t) {
|
|
1634
1637
|
return e.p.x > t.p.x ? 1 : e.p.x < t.p.x ? -1 : e.p.y === t.p.y || e.p.y > t.p.y ? 1 : -1;
|
|
1635
1638
|
}
|
|
1636
|
-
function
|
|
1639
|
+
function Ln(e, t) {
|
|
1637
1640
|
return e.rightSweepEvent.p.x > t.rightSweepEvent.p.x ? 1 : e.rightSweepEvent.p.x < t.rightSweepEvent.p.x ? -1 : e.rightSweepEvent.p.y === t.rightSweepEvent.p.y || e.rightSweepEvent.p.y < t.rightSweepEvent.p.y ? 1 : -1;
|
|
1638
1641
|
}
|
|
1639
|
-
var
|
|
1642
|
+
var Rn = class {
|
|
1640
1643
|
constructor(e, t, n, r) {
|
|
1641
1644
|
this.p = {
|
|
1642
1645
|
x: e[0],
|
|
@@ -1647,50 +1650,50 @@ var In = class {
|
|
|
1647
1650
|
return this.p.x === e.p.x && this.p.y === e.p.y;
|
|
1648
1651
|
}
|
|
1649
1652
|
};
|
|
1650
|
-
function
|
|
1653
|
+
function zn(e, t) {
|
|
1651
1654
|
if (e.type === "FeatureCollection") {
|
|
1652
1655
|
let n = e.features;
|
|
1653
|
-
for (let e = 0; e < n.length; e++)
|
|
1654
|
-
} else
|
|
1656
|
+
for (let e = 0; e < n.length; e++) Un(n[e], t);
|
|
1657
|
+
} else Un(e, t);
|
|
1655
1658
|
}
|
|
1656
|
-
var
|
|
1657
|
-
function
|
|
1659
|
+
var Bn = 0, Vn = 0, Hn = 0;
|
|
1660
|
+
function Un(e, t) {
|
|
1658
1661
|
let n = e.type === "Feature" ? e.geometry : e, r = n.coordinates;
|
|
1659
1662
|
(n.type === "Polygon" || n.type === "MultiLineString") && (r = [r]), n.type === "LineString" && (r = [[r]]);
|
|
1660
1663
|
for (let e = 0; e < r.length; e++) for (let n = 0; n < r[e].length; n++) {
|
|
1661
1664
|
let i = r[e][n][0], a = null;
|
|
1662
|
-
|
|
1665
|
+
Vn += 1;
|
|
1663
1666
|
for (let o = 0; o < r[e][n].length - 1; o++) {
|
|
1664
1667
|
a = r[e][n][o + 1];
|
|
1665
|
-
let s = new
|
|
1666
|
-
s.otherEvent = c, c.otherEvent = s,
|
|
1668
|
+
let s = new Rn(i, Bn, Vn, Hn), c = new Rn(a, Bn, Vn, Hn + 1);
|
|
1669
|
+
s.otherEvent = c, c.otherEvent = s, In(s, c) > 0 ? (c.isLeftEndpoint = !0, s.isLeftEndpoint = !1) : (s.isLeftEndpoint = !0, c.isLeftEndpoint = !1), t.push(s), t.push(c), i = a, Hn += 1;
|
|
1667
1670
|
}
|
|
1668
1671
|
}
|
|
1669
|
-
|
|
1672
|
+
Bn += 1;
|
|
1670
1673
|
}
|
|
1671
|
-
var
|
|
1674
|
+
var Wn = class {
|
|
1672
1675
|
constructor(e) {
|
|
1673
1676
|
this.leftSweepEvent = e, this.rightSweepEvent = e.otherEvent;
|
|
1674
1677
|
}
|
|
1675
1678
|
};
|
|
1676
|
-
function
|
|
1679
|
+
function Gn(e, t) {
|
|
1677
1680
|
if (e === null || t === null || e.leftSweepEvent.ringId === t.leftSweepEvent.ringId && (e.rightSweepEvent.isSamePoint(t.leftSweepEvent) || e.rightSweepEvent.isSamePoint(t.leftSweepEvent) || e.rightSweepEvent.isSamePoint(t.rightSweepEvent) || e.leftSweepEvent.isSamePoint(t.leftSweepEvent) || e.leftSweepEvent.isSamePoint(t.rightSweepEvent))) return !1;
|
|
1678
1681
|
let n = e.leftSweepEvent.p.x, r = e.leftSweepEvent.p.y, i = e.rightSweepEvent.p.x, a = e.rightSweepEvent.p.y, o = t.leftSweepEvent.p.x, s = t.leftSweepEvent.p.y, c = t.rightSweepEvent.p.x, l = t.rightSweepEvent.p.y, u = (l - s) * (i - n) - (c - o) * (a - r), d = (c - o) * (r - s) - (l - s) * (n - o), f = (i - n) * (r - s) - (a - r) * (n - o);
|
|
1679
1682
|
if (u === 0) return !1;
|
|
1680
1683
|
let p = d / u, m = f / u;
|
|
1681
1684
|
return p >= 0 && p <= 1 && m >= 0 && m <= 1 ? [n + p * (i - n), r + p * (a - r)] : !1;
|
|
1682
1685
|
}
|
|
1683
|
-
function
|
|
1686
|
+
function Kn(e, t) {
|
|
1684
1687
|
t ||= !1;
|
|
1685
|
-
let n = [], r = new
|
|
1688
|
+
let n = [], r = new Pn([], Ln);
|
|
1686
1689
|
for (; e.length;) {
|
|
1687
1690
|
let i = e.pop();
|
|
1688
1691
|
if (i.isLeftEndpoint) {
|
|
1689
|
-
let e = new
|
|
1692
|
+
let e = new Wn(i);
|
|
1690
1693
|
for (let a = 0; a < r.data.length; a++) {
|
|
1691
1694
|
let o = r.data[a];
|
|
1692
1695
|
if (t && o.leftSweepEvent.featureId === i.featureId) continue;
|
|
1693
|
-
let s =
|
|
1696
|
+
let s = Gn(e, o);
|
|
1694
1697
|
s !== !1 && n.push(s);
|
|
1695
1698
|
}
|
|
1696
1699
|
r.push(e);
|
|
@@ -1698,17 +1701,17 @@ function Wn(e, t) {
|
|
|
1698
1701
|
}
|
|
1699
1702
|
return n;
|
|
1700
1703
|
}
|
|
1701
|
-
function
|
|
1702
|
-
let n = new
|
|
1703
|
-
return
|
|
1704
|
+
function qn(e, t) {
|
|
1705
|
+
let n = new Pn([], In);
|
|
1706
|
+
return zn(e, n), Kn(n, t);
|
|
1704
1707
|
}
|
|
1705
1708
|
//#endregion
|
|
1706
1709
|
//#region node_modules/@turf/line-intersect/dist/esm/index.js
|
|
1707
|
-
var
|
|
1708
|
-
function
|
|
1710
|
+
var Jn = qn;
|
|
1711
|
+
function Yn(e, t, n = {}) {
|
|
1709
1712
|
let { removeDuplicates: r = !0, ignoreSelfIntersections: i = !0 } = n, a = [];
|
|
1710
1713
|
e.type === "FeatureCollection" ? a = a.concat(e.features) : e.type === "Feature" ? a.push(e) : (e.type === "LineString" || e.type === "Polygon" || e.type === "MultiLineString" || e.type === "MultiPolygon") && a.push(I(e)), t.type === "FeatureCollection" ? a = a.concat(t.features) : t.type === "Feature" ? a.push(t) : (t.type === "LineString" || t.type === "Polygon" || t.type === "MultiLineString" || t.type === "MultiPolygon") && a.push(I(t));
|
|
1711
|
-
let o =
|
|
1714
|
+
let o = Jn(R(a), i), s = [];
|
|
1712
1715
|
if (r) {
|
|
1713
1716
|
let e = {};
|
|
1714
1717
|
o.forEach((t) => {
|
|
@@ -1720,23 +1723,23 @@ function qn(e, t, n = {}) {
|
|
|
1720
1723
|
}
|
|
1721
1724
|
//#endregion
|
|
1722
1725
|
//#region node_modules/@turf/distance/dist/esm/index.js
|
|
1723
|
-
function
|
|
1726
|
+
function Xn(e, t, n = {}) {
|
|
1724
1727
|
var r = V(e), i = V(t), a = z(i[1] - r[1]), o = z(i[0] - r[0]), s = z(r[1]), c = z(i[1]), l = Math.sin(a / 2) ** 2 + Math.sin(o / 2) ** 2 * Math.cos(s) * Math.cos(c);
|
|
1725
1728
|
return ye(2 * Math.atan2(Math.sqrt(l), Math.sqrt(1 - l)), n.units);
|
|
1726
1729
|
}
|
|
1727
1730
|
//#endregion
|
|
1728
1731
|
//#region node_modules/@turf/nearest-point-on-line/dist/esm/index.js
|
|
1729
|
-
var
|
|
1732
|
+
var Zn = Object.defineProperty, Qn = Object.defineProperties, $n = Object.getOwnPropertyDescriptors, er = Object.getOwnPropertySymbols, tr = Object.prototype.hasOwnProperty, nr = Object.prototype.propertyIsEnumerable, rr = (e, t, n) => t in e ? Zn(e, t, {
|
|
1730
1733
|
enumerable: !0,
|
|
1731
1734
|
configurable: !0,
|
|
1732
1735
|
writable: !0,
|
|
1733
1736
|
value: n
|
|
1734
|
-
}) : e[t] = n,
|
|
1735
|
-
for (var n in t ||= {})
|
|
1736
|
-
if (
|
|
1737
|
+
}) : e[t] = n, ir = (e, t) => {
|
|
1738
|
+
for (var n in t ||= {}) tr.call(t, n) && rr(e, n, t[n]);
|
|
1739
|
+
if (er) for (var n of er(t)) nr.call(t, n) && rr(e, n, t[n]);
|
|
1737
1740
|
return e;
|
|
1738
|
-
},
|
|
1739
|
-
function
|
|
1741
|
+
}, ar = (e, t) => Qn(e, $n(t));
|
|
1742
|
+
function or(e, t, n = {}) {
|
|
1740
1743
|
if (!e || !t) throw Error("lines and inputPoint are required arguments");
|
|
1741
1744
|
let r = V(t), i = he([Infinity, Infinity], {
|
|
1742
1745
|
lineStringIndex: -1,
|
|
@@ -1754,11 +1757,11 @@ function ir(e, t, n = {}) {
|
|
|
1754
1757
|
s !== l && (s = l, o = 0);
|
|
1755
1758
|
let u = H(e);
|
|
1756
1759
|
for (let e = 0; e < u.length - 1; e++) {
|
|
1757
|
-
let s = he(u[e]), c = V(s), d = he(u[e + 1]), f = V(d), p =
|
|
1758
|
-
f[0] === r[0] && f[1] === r[1] ? [m, h] = [f, !0] : c[0] === r[0] && c[1] === r[1] ? [m, h] = [c, !1] : [m, h] =
|
|
1759
|
-
let g =
|
|
1760
|
+
let s = he(u[e]), c = V(s), d = he(u[e + 1]), f = V(d), p = Xn(s, d, n), m, h;
|
|
1761
|
+
f[0] === r[0] && f[1] === r[1] ? [m, h] = [f, !0] : c[0] === r[0] && c[1] === r[1] ? [m, h] = [c, !1] : [m, h] = fr(c, f, r);
|
|
1762
|
+
let g = Xn(t, m, n);
|
|
1760
1763
|
if (g < i.properties.pointDistance) {
|
|
1761
|
-
let t =
|
|
1764
|
+
let t = Xn(s, m, n);
|
|
1762
1765
|
i = he(m, {
|
|
1763
1766
|
lineStringIndex: l,
|
|
1764
1767
|
segmentIndex: h ? e + 1 : e,
|
|
@@ -1770,7 +1773,7 @@ function ir(e, t, n = {}) {
|
|
|
1770
1773
|
index: -1,
|
|
1771
1774
|
location: -1,
|
|
1772
1775
|
dist: Infinity
|
|
1773
|
-
}), i.properties =
|
|
1776
|
+
}), i.properties = ar(ir({}, i.properties), {
|
|
1774
1777
|
multiFeatureIndex: i.properties.lineStringIndex,
|
|
1775
1778
|
index: i.properties.segmentIndex,
|
|
1776
1779
|
location: i.properties.totalDistance,
|
|
@@ -1785,7 +1788,7 @@ function $(e, t) {
|
|
|
1785
1788
|
let [n, r, i] = e, [a, o, s] = t;
|
|
1786
1789
|
return n * a + r * o + i * s;
|
|
1787
1790
|
}
|
|
1788
|
-
function
|
|
1791
|
+
function sr(e, t) {
|
|
1789
1792
|
let [n, r, i] = e, [a, o, s] = t;
|
|
1790
1793
|
return [
|
|
1791
1794
|
r * s - i * o,
|
|
@@ -1793,18 +1796,18 @@ function ar(e, t) {
|
|
|
1793
1796
|
n * o - r * a
|
|
1794
1797
|
];
|
|
1795
1798
|
}
|
|
1796
|
-
function
|
|
1799
|
+
function cr(e) {
|
|
1797
1800
|
return Math.sqrt(e[0] ** 2 + e[1] ** 2 + e[2] ** 2);
|
|
1798
1801
|
}
|
|
1799
|
-
function
|
|
1800
|
-
let t =
|
|
1802
|
+
function lr(e) {
|
|
1803
|
+
let t = cr(e);
|
|
1801
1804
|
return [
|
|
1802
1805
|
e[0] / t,
|
|
1803
1806
|
e[1] / t,
|
|
1804
1807
|
e[2] / t
|
|
1805
1808
|
];
|
|
1806
1809
|
}
|
|
1807
|
-
function
|
|
1810
|
+
function ur(e) {
|
|
1808
1811
|
let t = z(e[1]), n = z(e[0]);
|
|
1809
1812
|
return [
|
|
1810
1813
|
Math.cos(t) * Math.cos(n),
|
|
@@ -1812,144 +1815,144 @@ function cr(e) {
|
|
|
1812
1815
|
Math.sin(t)
|
|
1813
1816
|
];
|
|
1814
1817
|
}
|
|
1815
|
-
function
|
|
1818
|
+
function dr(e) {
|
|
1816
1819
|
let [t, n, r] = e, i = Math.min(Math.max(r, -1), 1), a = be(Math.asin(i));
|
|
1817
1820
|
return [be(Math.atan2(n, t)), a];
|
|
1818
1821
|
}
|
|
1819
|
-
function
|
|
1820
|
-
let r =
|
|
1822
|
+
function fr(e, t, n) {
|
|
1823
|
+
let r = ur(e), i = ur(t), a = ur(n), o = sr(r, i);
|
|
1821
1824
|
if (o[0] === 0 && o[1] === 0 && o[2] === 0) return $(r, i) > 0 ? [[...t], !0] : [[...n], !1];
|
|
1822
|
-
let s =
|
|
1825
|
+
let s = sr(o, a);
|
|
1823
1826
|
if (s[0] === 0 && s[1] === 0 && s[2] === 0) return [[...t], !0];
|
|
1824
|
-
let c = sr(
|
|
1827
|
+
let c = lr(sr(s, o)), l = [
|
|
1825
1828
|
-c[0],
|
|
1826
1829
|
-c[1],
|
|
1827
1830
|
-c[2]
|
|
1828
|
-
], u = $(a, c) > $(a, l) ? c : l, d =
|
|
1829
|
-
return f >= 0 && p >= 0 ? [
|
|
1831
|
+
], u = $(a, c) > $(a, l) ? c : l, d = lr(o), f = $(sr(r, u), d), p = $(sr(u, i), d);
|
|
1832
|
+
return f >= 0 && p >= 0 ? [dr(u), !1] : $(r, a) > $(i, a) ? [[...e], !1] : [[...t], !0];
|
|
1830
1833
|
}
|
|
1831
1834
|
//#endregion
|
|
1832
1835
|
//#region node_modules/@turf/line-split/dist/esm/index.js
|
|
1833
|
-
function
|
|
1836
|
+
function pr(e, t) {
|
|
1834
1837
|
if (!e) throw Error("line is required");
|
|
1835
1838
|
if (!t) throw Error("splitter is required");
|
|
1836
1839
|
let n = Ue(e), r = Ue(t);
|
|
1837
1840
|
if (n !== "LineString") throw Error("line must be LineString");
|
|
1838
1841
|
if (r === "FeatureCollection") throw Error("splitter cannot be a FeatureCollection");
|
|
1839
1842
|
if (r === "GeometryCollection") throw Error("splitter cannot be a GeometryCollection");
|
|
1840
|
-
var i =
|
|
1843
|
+
var i = On(t, { precision: 7 });
|
|
1841
1844
|
switch (e.type !== "Feature" && (e = I(e)), r) {
|
|
1842
|
-
case "Point": return
|
|
1843
|
-
case "MultiPoint": return
|
|
1845
|
+
case "Point": return hr(e, i);
|
|
1846
|
+
case "MultiPoint": return mr(e, i);
|
|
1844
1847
|
case "LineString":
|
|
1845
1848
|
case "MultiLineString":
|
|
1846
1849
|
case "Polygon":
|
|
1847
|
-
case "MultiPolygon": return
|
|
1850
|
+
case "MultiPolygon": return mr(e, Yn(e, i, { ignoreSelfIntersections: !0 }));
|
|
1848
1851
|
}
|
|
1849
1852
|
}
|
|
1850
|
-
function
|
|
1851
|
-
var n = [], r =
|
|
1853
|
+
function mr(e, t) {
|
|
1854
|
+
var n = [], r = Dn();
|
|
1852
1855
|
return Oe(t, function(t) {
|
|
1853
1856
|
if (n.forEach(function(e, t) {
|
|
1854
1857
|
e.id = t;
|
|
1855
|
-
}), !n.length) n =
|
|
1858
|
+
}), !n.length) n = hr(e, t).features, r.load(R(n));
|
|
1856
1859
|
else {
|
|
1857
1860
|
var i = r.search(t);
|
|
1858
1861
|
if (i.features.length) {
|
|
1859
|
-
var a =
|
|
1862
|
+
var a = gr(t, i);
|
|
1860
1863
|
n = n.filter(function(e) {
|
|
1861
1864
|
return e.id !== a.id;
|
|
1862
|
-
}), r.remove(a), we(
|
|
1865
|
+
}), r.remove(a), we(hr(a, t), function(e) {
|
|
1863
1866
|
n.push(e), r.insert(e);
|
|
1864
1867
|
});
|
|
1865
1868
|
}
|
|
1866
1869
|
}
|
|
1867
1870
|
}), R(n);
|
|
1868
1871
|
}
|
|
1869
|
-
function
|
|
1872
|
+
function hr(e, t) {
|
|
1870
1873
|
var n = [], r = H(e)[0], i = H(e)[e.geometry.coordinates.length - 1];
|
|
1871
|
-
if (
|
|
1872
|
-
var a =
|
|
1874
|
+
if (_r(r, V(t)) || _r(i, V(t))) return R([e]);
|
|
1875
|
+
var a = Dn(), o = An(e);
|
|
1873
1876
|
a.load(o);
|
|
1874
1877
|
var s = a.search(t);
|
|
1875
1878
|
if (!s.features.length) return R([e]);
|
|
1876
|
-
var c =
|
|
1879
|
+
var c = gr(t, s), l = Te(o, function(e, r, i) {
|
|
1877
1880
|
var a = H(r)[1], o = V(t);
|
|
1878
|
-
return i === c.id ? (e.push(o), n.push(L(e)),
|
|
1881
|
+
return i === c.id ? (e.push(o), n.push(L(e)), _r(o, a) ? [o] : [o, a]) : (e.push(a), e);
|
|
1879
1882
|
}, [r]);
|
|
1880
1883
|
return l.length > 1 && n.push(L(l)), R(n);
|
|
1881
1884
|
}
|
|
1882
|
-
function
|
|
1885
|
+
function gr(e, t) {
|
|
1883
1886
|
if (!t.features.length) throw Error("lines must contain features");
|
|
1884
1887
|
if (t.features.length === 1) return t.features[0];
|
|
1885
1888
|
var n, r = Infinity;
|
|
1886
1889
|
return we(t, function(t) {
|
|
1887
|
-
var i =
|
|
1890
|
+
var i = or(t, e).properties.dist;
|
|
1888
1891
|
i < r && (n = t, r = i);
|
|
1889
1892
|
}), n;
|
|
1890
1893
|
}
|
|
1891
|
-
function
|
|
1894
|
+
function _r(e, t) {
|
|
1892
1895
|
return e[0] === t[0] && e[1] === t[1];
|
|
1893
1896
|
}
|
|
1894
1897
|
//#endregion
|
|
1895
1898
|
//#region node_modules/@turf/boolean-contains/dist/esm/index.js
|
|
1896
|
-
function
|
|
1899
|
+
function vr(e, t) {
|
|
1897
1900
|
let n = U(e), r = U(t), i = n.type, a = r.type, o = n.coordinates, s = r.coordinates;
|
|
1898
1901
|
switch (i) {
|
|
1899
1902
|
case "Point": switch (a) {
|
|
1900
|
-
case "Point": return
|
|
1903
|
+
case "Point": return Ar(o, s);
|
|
1901
1904
|
default: throw Error("feature2 " + a + " geometry not supported");
|
|
1902
1905
|
}
|
|
1903
1906
|
case "MultiPoint": switch (a) {
|
|
1904
|
-
case "Point": return
|
|
1905
|
-
case "MultiPoint": return
|
|
1907
|
+
case "Point": return xr(n, r);
|
|
1908
|
+
case "MultiPoint": return Sr(n, r);
|
|
1906
1909
|
default: throw Error("feature2 " + a + " geometry not supported");
|
|
1907
1910
|
}
|
|
1908
1911
|
case "LineString": switch (a) {
|
|
1909
1912
|
case "Point": return W(r, n, { ignoreEndVertices: !0 });
|
|
1910
|
-
case "LineString": return
|
|
1911
|
-
case "MultiPoint": return
|
|
1913
|
+
case "LineString": return Tr(n, r);
|
|
1914
|
+
case "MultiPoint": return Cr(n, r);
|
|
1912
1915
|
default: throw Error("feature2 " + a + " geometry not supported");
|
|
1913
1916
|
}
|
|
1914
1917
|
case "Polygon": switch (a) {
|
|
1915
|
-
case "Point": return
|
|
1916
|
-
case "LineString": return
|
|
1917
|
-
case "Polygon": return
|
|
1918
|
-
case "MultiPoint": return
|
|
1919
|
-
case "MultiPolygon": return
|
|
1918
|
+
case "Point": return Sn(r, n, { ignoreBoundary: !0 });
|
|
1919
|
+
case "LineString": return Dr(n, r);
|
|
1920
|
+
case "Polygon": return Or(n, r);
|
|
1921
|
+
case "MultiPoint": return wr(n, r);
|
|
1922
|
+
case "MultiPolygon": return br(n, r);
|
|
1920
1923
|
default: throw Error("feature2 " + a + " geometry not supported");
|
|
1921
1924
|
}
|
|
1922
1925
|
case "MultiPolygon": switch (a) {
|
|
1923
|
-
case "Polygon": return
|
|
1926
|
+
case "Polygon": return yr(n, r);
|
|
1924
1927
|
default: throw Error("feature2 " + a + " geometry not supported");
|
|
1925
1928
|
}
|
|
1926
1929
|
default: throw Error("feature1 " + i + " geometry not supported");
|
|
1927
1930
|
}
|
|
1928
1931
|
}
|
|
1929
|
-
function
|
|
1930
|
-
return e.coordinates.some((e) =>
|
|
1932
|
+
function yr(e, t) {
|
|
1933
|
+
return e.coordinates.some((e) => Or({
|
|
1931
1934
|
type: "Polygon",
|
|
1932
1935
|
coordinates: e
|
|
1933
1936
|
}, t));
|
|
1934
1937
|
}
|
|
1935
|
-
function
|
|
1936
|
-
return t.coordinates.every((t) =>
|
|
1938
|
+
function br(e, t) {
|
|
1939
|
+
return t.coordinates.every((t) => Or(e, {
|
|
1937
1940
|
type: "Polygon",
|
|
1938
1941
|
coordinates: t
|
|
1939
1942
|
}));
|
|
1940
1943
|
}
|
|
1941
|
-
function
|
|
1944
|
+
function xr(e, t) {
|
|
1942
1945
|
let n, r = !1;
|
|
1943
|
-
for (n = 0; n < e.coordinates.length; n++) if (
|
|
1946
|
+
for (n = 0; n < e.coordinates.length; n++) if (Ar(e.coordinates[n], t.coordinates)) {
|
|
1944
1947
|
r = !0;
|
|
1945
1948
|
break;
|
|
1946
1949
|
}
|
|
1947
1950
|
return r;
|
|
1948
1951
|
}
|
|
1949
|
-
function
|
|
1952
|
+
function Sr(e, t) {
|
|
1950
1953
|
for (let n of t.coordinates) {
|
|
1951
1954
|
let t = !1;
|
|
1952
|
-
for (let r of e.coordinates) if (
|
|
1955
|
+
for (let r of e.coordinates) if (Ar(n, r)) {
|
|
1953
1956
|
t = !0;
|
|
1954
1957
|
break;
|
|
1955
1958
|
}
|
|
@@ -1957,16 +1960,16 @@ function br(e, t) {
|
|
|
1957
1960
|
}
|
|
1958
1961
|
return !0;
|
|
1959
1962
|
}
|
|
1960
|
-
function
|
|
1963
|
+
function Cr(e, t) {
|
|
1961
1964
|
let n = !1;
|
|
1962
1965
|
for (let r of t.coordinates) if (W(r, e, { ignoreEndVertices: !0 }) && (n = !0), !W(r, e)) return !1;
|
|
1963
1966
|
return !!n;
|
|
1964
1967
|
}
|
|
1965
|
-
function
|
|
1966
|
-
for (let n of t.coordinates) if (!
|
|
1968
|
+
function wr(e, t) {
|
|
1969
|
+
for (let n of t.coordinates) if (!Sn(n, e, { ignoreBoundary: !0 })) return !1;
|
|
1967
1970
|
return !0;
|
|
1968
1971
|
}
|
|
1969
|
-
function
|
|
1972
|
+
function Tr(e, t) {
|
|
1970
1973
|
let n = !1;
|
|
1971
1974
|
for (let r of t.coordinates) if (W({
|
|
1972
1975
|
type: "Point",
|
|
@@ -1977,58 +1980,58 @@ function Cr(e, t) {
|
|
|
1977
1980
|
}, e, { ignoreEndVertices: !1 })) return !1;
|
|
1978
1981
|
return n;
|
|
1979
1982
|
}
|
|
1980
|
-
function
|
|
1983
|
+
function Er(e, t) {
|
|
1981
1984
|
let n = e.coordinates, r = [];
|
|
1982
1985
|
for (let e = 0; e < n.length - 1; e++) {
|
|
1983
|
-
let i = L([n[e], n[e + 1]]), a =
|
|
1986
|
+
let i = L([n[e], n[e + 1]]), a = pr(i, I(t));
|
|
1984
1987
|
a.features.length === 0 ? r.push(i) : r.push(...a.features);
|
|
1985
1988
|
}
|
|
1986
1989
|
return R(r);
|
|
1987
1990
|
}
|
|
1988
|
-
function
|
|
1989
|
-
if (!
|
|
1990
|
-
for (let n of t.coordinates) if (!
|
|
1991
|
-
let n = !1, r =
|
|
1991
|
+
function Dr(e, t) {
|
|
1992
|
+
if (!kr(K(e), K(t))) return !1;
|
|
1993
|
+
for (let n of t.coordinates) if (!Sn(n, e)) return !1;
|
|
1994
|
+
let n = !1, r = Er(t, e);
|
|
1992
1995
|
for (let t of r.features) {
|
|
1993
|
-
let r =
|
|
1994
|
-
if (!
|
|
1995
|
-
!n &&
|
|
1996
|
+
let r = jr(t.geometry.coordinates[0], t.geometry.coordinates[1]);
|
|
1997
|
+
if (!Sn(r, e)) return !1;
|
|
1998
|
+
!n && Sn(r, e, { ignoreBoundary: !0 }) && (n = !0);
|
|
1996
1999
|
}
|
|
1997
2000
|
return n;
|
|
1998
2001
|
}
|
|
1999
|
-
function
|
|
2000
|
-
if (e.type === "Feature" && e.geometry === null || t.type === "Feature" && t.geometry === null || !
|
|
2002
|
+
function Or(e, t) {
|
|
2003
|
+
if (e.type === "Feature" && e.geometry === null || t.type === "Feature" && t.geometry === null || !kr(K(e), K(t))) return !1;
|
|
2001
2004
|
let n = U(t).coordinates;
|
|
2002
|
-
for (let t of n) for (let n of t) if (!
|
|
2005
|
+
for (let t of n) for (let n of t) if (!Sn(n, e)) return !1;
|
|
2003
2006
|
return !0;
|
|
2004
2007
|
}
|
|
2005
|
-
function
|
|
2008
|
+
function kr(e, t) {
|
|
2006
2009
|
return !(e[0] > t[0] || e[2] < t[2] || e[1] > t[1] || e[3] < t[3]);
|
|
2007
2010
|
}
|
|
2008
|
-
function
|
|
2011
|
+
function Ar(e, t) {
|
|
2009
2012
|
return e[0] === t[0] && e[1] === t[1];
|
|
2010
2013
|
}
|
|
2011
|
-
function
|
|
2014
|
+
function jr(e, t) {
|
|
2012
2015
|
return [(e[0] + t[0]) / 2, (e[1] + t[1]) / 2];
|
|
2013
2016
|
}
|
|
2014
|
-
var
|
|
2017
|
+
var Mr = vr;
|
|
2015
2018
|
//#endregion
|
|
2016
2019
|
//#region node_modules/@turf/envelope/dist/esm/index.js
|
|
2017
|
-
function
|
|
2018
|
-
return
|
|
2020
|
+
function Nr(e) {
|
|
2021
|
+
return sn(K(e));
|
|
2019
2022
|
}
|
|
2020
|
-
var
|
|
2023
|
+
var Pr = Nr;
|
|
2021
2024
|
//#endregion
|
|
2022
2025
|
//#region src/utils/geom.ts
|
|
2023
|
-
function
|
|
2026
|
+
function Fr(e) {
|
|
2024
2027
|
return e.geometry && (e.geometry.type === "LineString" || e.geometry.type === "MultiLineString" || e.geometry.type === "Polygon" || e.geometry.type === "MultiPolygon");
|
|
2025
2028
|
}
|
|
2026
|
-
function
|
|
2027
|
-
let n = e.map((e) => e.geometry ? e.geometry.type === "Point" || e.geometry.type === "MultiPoint" ?
|
|
2028
|
-
return n.length === 0 ? null :
|
|
2029
|
+
function Ir(e, t) {
|
|
2030
|
+
let n = e.map((e) => e.geometry ? e.geometry.type === "Point" || e.geometry.type === "MultiPoint" ? Mr(cn(t), e) ? e : null : Fr(e) ? on(e, t) : null : null).filter((e) => e !== null);
|
|
2031
|
+
return n.length === 0 ? null : Pr(R(n));
|
|
2029
2032
|
}
|
|
2030
|
-
var
|
|
2031
|
-
function
|
|
2033
|
+
var Lr = .001;
|
|
2034
|
+
function Rr(e, t) {
|
|
2032
2035
|
return [
|
|
2033
2036
|
e[0] - t,
|
|
2034
2037
|
e[1] - t,
|
|
@@ -2036,15 +2039,15 @@ function Lr(e, t) {
|
|
|
2036
2039
|
e[3] + t
|
|
2037
2040
|
];
|
|
2038
2041
|
}
|
|
2039
|
-
function Rr(e) {
|
|
2040
|
-
return Lr(e, Fr);
|
|
2041
|
-
}
|
|
2042
2042
|
function zr(e) {
|
|
2043
|
-
return
|
|
2043
|
+
return Rr(e, Lr);
|
|
2044
|
+
}
|
|
2045
|
+
function Br(e) {
|
|
2046
|
+
return e[0] === e[2] || e[1] === e[3];
|
|
2044
2047
|
}
|
|
2045
2048
|
//#endregion
|
|
2046
2049
|
//#region src/components/VMap.vue?vue&type=script&setup=true&lang.ts
|
|
2047
|
-
var
|
|
2050
|
+
var Vr = ["id"], Hr = /* @__PURE__ */ Ct(/* @__PURE__ */ l({
|
|
2048
2051
|
__name: "VMap",
|
|
2049
2052
|
props: {
|
|
2050
2053
|
id: {},
|
|
@@ -2052,7 +2055,7 @@ var Br = ["id"], Vr = /* @__PURE__ */ xt(/* @__PURE__ */ l({
|
|
|
2052
2055
|
bbox: {}
|
|
2053
2056
|
},
|
|
2054
2057
|
setup(e) {
|
|
2055
|
-
let t = e, n = p(nt,
|
|
2058
|
+
let t = e, n = p(nt, Xt), r = {
|
|
2056
2059
|
top: 60,
|
|
2057
2060
|
left: 60,
|
|
2058
2061
|
right: 60,
|
|
@@ -2065,10 +2068,10 @@ var Br = ["id"], Vr = /* @__PURE__ */ xt(/* @__PURE__ */ l({
|
|
|
2065
2068
|
});
|
|
2066
2069
|
function u() {
|
|
2067
2070
|
if (!a.value) {
|
|
2068
|
-
l = t.bbox ?
|
|
2069
|
-
let e = l ?
|
|
2071
|
+
l = t.bbox ? zr(t.bbox) : void 0;
|
|
2072
|
+
let e = l ? Ir(t.features, l) : R(t.features);
|
|
2070
2073
|
if (e) {
|
|
2071
|
-
let i =
|
|
2074
|
+
let i = Tt(e), o = [[i[0], i[1]], [i[2], i[3]]];
|
|
2072
2075
|
a.value = new ie.Map({
|
|
2073
2076
|
hash: !1,
|
|
2074
2077
|
container: `map-${t.id}`,
|
|
@@ -2087,7 +2090,7 @@ var Br = ["id"], Vr = /* @__PURE__ */ xt(/* @__PURE__ */ l({
|
|
|
2087
2090
|
}
|
|
2088
2091
|
function d(e) {
|
|
2089
2092
|
if (!a.value) throw Error("Call initMap() function first.");
|
|
2090
|
-
a.value.addSource(
|
|
2093
|
+
a.value.addSource(Qt, {
|
|
2091
2094
|
type: "geojson",
|
|
2092
2095
|
data: {
|
|
2093
2096
|
type: "Feature",
|
|
@@ -2107,7 +2110,7 @@ var Br = ["id"], Vr = /* @__PURE__ */ xt(/* @__PURE__ */ l({
|
|
|
2107
2110
|
}
|
|
2108
2111
|
function f() {
|
|
2109
2112
|
if (!a.value) throw Error("Call initMap() function first.");
|
|
2110
|
-
|
|
2113
|
+
t.bbox && !Br(t.bbox) && d(t.bbox), a.value.addSource(q, {
|
|
2111
2114
|
type: "geojson",
|
|
2112
2115
|
data: {
|
|
2113
2116
|
type: "FeatureCollection",
|
|
@@ -2147,21 +2150,21 @@ var Br = ["id"], Vr = /* @__PURE__ */ xt(/* @__PURE__ */ l({
|
|
|
2147
2150
|
return (t, n) => re((x(), i("div", {
|
|
2148
2151
|
id: `map-${e.id}`,
|
|
2149
2152
|
class: "v-map"
|
|
2150
|
-
}, null, 8,
|
|
2153
|
+
}, null, 8, Vr)), [[j(Jt), S]]);
|
|
2151
2154
|
}
|
|
2152
|
-
}), [["__scopeId", "data-v-
|
|
2155
|
+
}), [["__scopeId", "data-v-d8de1c60"]]), Ur = ["id"], Wr = { class: "group-header" }, Gr = { class: "header-start" }, Kr = ["href"], qr = ["title"], Jr = {
|
|
2153
2156
|
key: 0,
|
|
2154
2157
|
class: "name-before"
|
|
2155
|
-
},
|
|
2158
|
+
}, Yr = {
|
|
2156
2159
|
key: 1,
|
|
2157
2160
|
class: "name-separator"
|
|
2158
|
-
},
|
|
2161
|
+
}, Xr = {
|
|
2159
2162
|
key: 2,
|
|
2160
2163
|
class: "name-after"
|
|
2161
|
-
},
|
|
2164
|
+
}, Zr = { class: "header-center" }, Qr = { class: "header-end" }, $r = { class: "group-content" }, ei = {
|
|
2162
2165
|
key: 0,
|
|
2163
2166
|
class: "content-start"
|
|
2164
|
-
},
|
|
2167
|
+
}, ti = { key: 0 }, ni = { key: 1 }, ri = /* @__PURE__ */ Ct(/* @__PURE__ */ l({
|
|
2165
2168
|
__name: "LoChaGroup",
|
|
2166
2169
|
props: {
|
|
2167
2170
|
id: {},
|
|
@@ -2171,11 +2174,11 @@ var Br = ["id"], Vr = /* @__PURE__ */ xt(/* @__PURE__ */ l({
|
|
|
2171
2174
|
},
|
|
2172
2175
|
emits: ["navigate"],
|
|
2173
2176
|
setup(n) {
|
|
2174
|
-
ee((e) => ({
|
|
2177
|
+
ee((e) => ({ v62f70e54: u.value }));
|
|
2175
2178
|
let c = n, l = te(), u = t(() => l["content-start"] ? "repeat(4, minmax(0, 1fr))" : "repeat(3, minmax(0, 1fr))"), d = p(tt), { loCha: f, getBeforeFeatures: m, getAfterFeatures: h } = p(et);
|
|
2176
2179
|
if (!f.value) throw Error("LoCha is empty.");
|
|
2177
|
-
let
|
|
2178
|
-
let e = [...new Set(
|
|
2180
|
+
let _ = t(() => m(c.features)), v = t(() => h(c.features)), y = t(() => _.value.length > 0 && v.value.length === 0), b = t(() => _.value.length === 0 && v.value.length > 0), S = t(() => _.value.length === 1 && v.value.length === 1 && !!v.value[0]?.properties.deleted), C = t(() => _.value.length === 1 && v.value.length === 1 && !v.value[0]?.properties.deleted), w = t(() => {
|
|
2181
|
+
let e = [...new Set(_.value.map((e) => e.properties.tags?.name).filter(Boolean))], t = [...new Set(v.value.map((e) => e.properties.tags?.name).filter(Boolean))], n = e.length > 0 ? e.join(", ") : null, r = t.length > 0 ? t.join(", ") : null;
|
|
2179
2182
|
return n === r ? {
|
|
2180
2183
|
before: null,
|
|
2181
2184
|
after: r
|
|
@@ -2183,31 +2186,34 @@ var Br = ["id"], Vr = /* @__PURE__ */ xt(/* @__PURE__ */ l({
|
|
|
2183
2186
|
before: n,
|
|
2184
2187
|
after: r
|
|
2185
2188
|
};
|
|
2186
|
-
}),
|
|
2187
|
-
let { before: e, after: t } =
|
|
2189
|
+
}), D = t(() => {
|
|
2190
|
+
let { before: e, after: t } = w.value;
|
|
2188
2191
|
return e && t ? `${e} → ${t}` : e ?? t ?? void 0;
|
|
2189
2192
|
});
|
|
2190
2193
|
return (t, l) => (x(), i("div", {
|
|
2191
2194
|
id: n.id,
|
|
2192
2195
|
class: "locha-group"
|
|
2193
|
-
}, [a("div",
|
|
2194
|
-
a("div",
|
|
2196
|
+
}, [a("div", Wr, [
|
|
2197
|
+
a("div", Gr, [a("a", {
|
|
2195
2198
|
class: "anchor-button",
|
|
2196
2199
|
href: `#${n.id}`,
|
|
2197
2200
|
onClick: l[0] ||= P((e) => t.$emit("navigate", `#${n.id}`), ["prevent"])
|
|
2198
|
-
}, "🔗", 8,
|
|
2201
|
+
}, "🔗", 8, Kr), a("h3", {
|
|
2199
2202
|
class: "group-name",
|
|
2200
|
-
title:
|
|
2203
|
+
title: D.value
|
|
2201
2204
|
}, [
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
], 8,
|
|
2206
|
-
a("div",
|
|
2207
|
-
a("div",
|
|
2208
|
-
]), a("div",
|
|
2209
|
-
t.$slots["content-start"] ? (x(), i("div",
|
|
2210
|
-
|
|
2205
|
+
w.value.before ? (x(), i("span", Jr, O(w.value.before), 1)) : r("", !0),
|
|
2206
|
+
w.value.before ? (x(), i("span", Yr, " → ")) : r("", !0),
|
|
2207
|
+
w.value.after ? (x(), i("span", Xr, O(w.value.after), 1)) : r("", !0)
|
|
2208
|
+
], 8, qr)]),
|
|
2209
|
+
a("div", Zr, [E(t.$slots, "header-center", { index: n.index }, void 0, !0)]),
|
|
2210
|
+
a("div", Qr, [E(t.$slots, "header-end", { index: n.index }, void 0, !0)])
|
|
2211
|
+
]), a("div", $r, [
|
|
2212
|
+
t.$slots["content-start"] ? (x(), i("div", ei, [E(t.$slots, "content-start", { index: n.index }, void 0, !0)])) : r("", !0),
|
|
2213
|
+
!C.value && !b.value && !S.value ? (x(), i("div", {
|
|
2214
|
+
key: 1,
|
|
2215
|
+
class: g(["before-list", { "list--wide": y.value }])
|
|
2216
|
+
}, [a("ul", null, [(x(!0), i(e, null, T(_.value, (e) => (x(), i("li", { key: e.id }, [s(wt, {
|
|
2211
2217
|
feature: e,
|
|
2212
2218
|
"josm-target": n.josmTarget
|
|
2213
2219
|
}, o({ _: 2 }, [t.$slots["object-detail"] ? {
|
|
@@ -2217,8 +2223,33 @@ var Br = ["id"], Vr = /* @__PURE__ */ xt(/* @__PURE__ */ l({
|
|
|
2217
2223
|
index: n.index
|
|
2218
2224
|
}, void 0, !0)]),
|
|
2219
2225
|
key: "0"
|
|
2220
|
-
} : void 0]), 1032, ["feature", "josm-target"])]))), 128))])]),
|
|
2221
|
-
|
|
2226
|
+
} : void 0]), 1032, ["feature", "josm-target"])]))), 128))])], 2)) : r("", !0),
|
|
2227
|
+
y.value ? r("", !0) : (x(), i("div", {
|
|
2228
|
+
key: 2,
|
|
2229
|
+
class: g(["after-list", { "list--wide": b.value || C.value || S.value }])
|
|
2230
|
+
}, [a("ul", null, [S.value ? (x(), i("li", ti, [s(wt, {
|
|
2231
|
+
feature: v.value[0],
|
|
2232
|
+
"josm-target": n.josmTarget
|
|
2233
|
+
}, {
|
|
2234
|
+
"object-detail": N(() => [E(t.$slots, "object-detail", {
|
|
2235
|
+
feature: _.value[0],
|
|
2236
|
+
index: n.index
|
|
2237
|
+
}, void 0, !0)]),
|
|
2238
|
+
_: 3
|
|
2239
|
+
}, 8, ["feature", "josm-target"])])) : C.value ? (x(), i("li", ni, [s(wt, {
|
|
2240
|
+
feature: v.value[0],
|
|
2241
|
+
"josm-target": n.josmTarget
|
|
2242
|
+
}, {
|
|
2243
|
+
before: N(() => [s(wt, {
|
|
2244
|
+
feature: _.value[0],
|
|
2245
|
+
compact: !0
|
|
2246
|
+
}, null, 8, ["feature"])]),
|
|
2247
|
+
"object-detail": N(() => [E(t.$slots, "object-detail", {
|
|
2248
|
+
feature: v.value[0],
|
|
2249
|
+
index: n.index
|
|
2250
|
+
}, void 0, !0)]),
|
|
2251
|
+
_: 3
|
|
2252
|
+
}, 8, ["feature", "josm-target"])])) : (x(!0), i(e, { key: 2 }, T(v.value, (e) => (x(), i("li", { key: e.id }, [s(wt, {
|
|
2222
2253
|
feature: e,
|
|
2223
2254
|
"josm-target": n.josmTarget
|
|
2224
2255
|
}, o({ _: 2 }, [t.$slots["object-detail"] ? {
|
|
@@ -2228,8 +2259,8 @@ var Br = ["id"], Vr = /* @__PURE__ */ xt(/* @__PURE__ */ l({
|
|
|
2228
2259
|
index: n.index
|
|
2229
2260
|
}, void 0, !0)]),
|
|
2230
2261
|
key: "0"
|
|
2231
|
-
} : void 0]), 1032, ["feature", "josm-target"])]))), 128))])]),
|
|
2232
|
-
s(
|
|
2262
|
+
} : void 0]), 1032, ["feature", "josm-target"])]))), 128))])], 2)),
|
|
2263
|
+
s(Hr, {
|
|
2233
2264
|
id: `${j(d)}-${c.index}`,
|
|
2234
2265
|
features: n.features,
|
|
2235
2266
|
bbox: j(f)?.bbox
|
|
@@ -2238,12 +2269,12 @@ var Br = ["id"], Vr = /* @__PURE__ */ xt(/* @__PURE__ */ l({
|
|
|
2238
2269
|
"features",
|
|
2239
2270
|
"bbox"
|
|
2240
2271
|
])
|
|
2241
|
-
])], 8,
|
|
2272
|
+
])], 8, Ur));
|
|
2242
2273
|
}
|
|
2243
|
-
}), [["__scopeId", "data-v-
|
|
2274
|
+
}), [["__scopeId", "data-v-f0d155b8"]]);
|
|
2244
2275
|
//#endregion
|
|
2245
2276
|
//#region src/utils/scrollToSection.ts
|
|
2246
|
-
function
|
|
2277
|
+
function ii(e, t = {}) {
|
|
2247
2278
|
let { container: n = document, behavior: r = "smooth", block: i = "start", inline: a = "nearest" } = t, o = e.startsWith("#") ? e.slice(1) : e, s = n.querySelector(`#${CSS.escape(o)}`);
|
|
2248
2279
|
return s ? (s.scrollIntoView({
|
|
2249
2280
|
behavior: r,
|
|
@@ -2253,7 +2284,7 @@ function ri(e, t = {}) {
|
|
|
2253
2284
|
}
|
|
2254
2285
|
//#endregion
|
|
2255
2286
|
//#region src/components/LoCha/LoChaGroupList.vue?vue&type=script&setup=true&lang.ts
|
|
2256
|
-
var
|
|
2287
|
+
var ai = ["name"], oi = /* @__PURE__ */ Ct(/* @__PURE__ */ l({
|
|
2257
2288
|
__name: "LoChaGroupList",
|
|
2258
2289
|
props: { hash: {} },
|
|
2259
2290
|
setup(t) {
|
|
@@ -2280,7 +2311,7 @@ var ii = ["name"], ai = /* @__PURE__ */ xt(/* @__PURE__ */ l({
|
|
|
2280
2311
|
hash: e,
|
|
2281
2312
|
instanceId: c
|
|
2282
2313
|
} })), h(() => {
|
|
2283
|
-
y = !1,
|
|
2314
|
+
y = !1, ii(e, { container: d.value ?? void 0 });
|
|
2284
2315
|
});
|
|
2285
2316
|
}
|
|
2286
2317
|
function C(e) {
|
|
@@ -2288,7 +2319,7 @@ var ii = ["name"], ai = /* @__PURE__ */ xt(/* @__PURE__ */ l({
|
|
|
2288
2319
|
t !== c && (u.value = void 0);
|
|
2289
2320
|
}
|
|
2290
2321
|
return M(() => n.hash, (e) => {
|
|
2291
|
-
y || (u.value = e, e && h(() =>
|
|
2322
|
+
y || (u.value = e, e && h(() => ii(e, { container: d.value ?? void 0 })));
|
|
2292
2323
|
}, { immediate: !0 }), v(() => {
|
|
2293
2324
|
window.addEventListener("locha-navigate", C);
|
|
2294
2325
|
let e = window.location.hash;
|
|
@@ -2302,7 +2333,7 @@ var ii = ["name"], ai = /* @__PURE__ */ xt(/* @__PURE__ */ l({
|
|
|
2302
2333
|
}, [a("ul", null, [(x(!0), i(e, null, T(j(r), (e, n) => (x(), i("li", {
|
|
2303
2334
|
key: n,
|
|
2304
2335
|
class: g({ selected: u.value === `#${f(n)}` })
|
|
2305
|
-
}, [s(
|
|
2336
|
+
}, [s(ri, {
|
|
2306
2337
|
id: f(n),
|
|
2307
2338
|
features: e,
|
|
2308
2339
|
index: n,
|
|
@@ -2337,17 +2368,17 @@ var ii = ["name"], ai = /* @__PURE__ */ xt(/* @__PURE__ */ l({
|
|
|
2337
2368
|
])], 2))), 128))]), a("iframe", {
|
|
2338
2369
|
name: _(),
|
|
2339
2370
|
style: { display: "none" }
|
|
2340
|
-
}, null, 8,
|
|
2371
|
+
}, null, 8, ai)], 512));
|
|
2341
2372
|
}
|
|
2342
|
-
}), [["__scopeId", "data-v-178acf78"]]),
|
|
2373
|
+
}), [["__scopeId", "data-v-178acf78"]]), si = {
|
|
2343
2374
|
key: 0,
|
|
2344
2375
|
class: "user-feedback"
|
|
2345
|
-
},
|
|
2376
|
+
}, ci = /* @__PURE__ */ Ct(/* @__PURE__ */ l({
|
|
2346
2377
|
__name: "LoCha",
|
|
2347
2378
|
props: {
|
|
2348
2379
|
id: {},
|
|
2349
2380
|
data: {},
|
|
2350
|
-
mapStyleUrl: { default:
|
|
2381
|
+
mapStyleUrl: { default: Xt },
|
|
2351
2382
|
reasonCollapsed: {
|
|
2352
2383
|
type: Boolean,
|
|
2353
2384
|
default: !0
|
|
@@ -2362,7 +2393,7 @@ var ii = ["name"], ai = /* @__PURE__ */ xt(/* @__PURE__ */ l({
|
|
|
2362
2393
|
let { featureCount: s, groups: c, setLoCha: l } = a, u = t(() => c.value.length === 1);
|
|
2363
2394
|
return M(() => r.data, (e) => {
|
|
2364
2395
|
e && l(e);
|
|
2365
|
-
}, { immediate: !0 }), (t, r) => (x(), i("section", { class: g(["locha", { "locha--single": u.value }]) }, [j(s) ? (x(), n(
|
|
2396
|
+
}, { immediate: !0 }), (t, r) => (x(), i("section", { class: g(["locha", { "locha--single": u.value }]) }, [j(s) ? (x(), n(oi, {
|
|
2366
2397
|
key: 1,
|
|
2367
2398
|
hash: e.hash
|
|
2368
2399
|
}, o({ _: 2 }, [
|
|
@@ -2386,10 +2417,10 @@ var ii = ["name"], ai = /* @__PURE__ */ xt(/* @__PURE__ */ l({
|
|
|
2386
2417
|
fn: N((e) => [E(t.$slots, "content-start", _(f(e)), void 0, !0)]),
|
|
2387
2418
|
key: "3"
|
|
2388
2419
|
} : void 0
|
|
2389
|
-
]), 1032, ["hash"])) : (x(), i("p",
|
|
2420
|
+
]), 1032, ["hash"])) : (x(), i("p", si, " ⚠️ No data "))], 2));
|
|
2390
2421
|
}
|
|
2391
2422
|
}), [["__scopeId", "data-v-791095c2"]]);
|
|
2392
2423
|
//#endregion
|
|
2393
|
-
export {
|
|
2424
|
+
export { ci as LoCha, ii as scrollToSection };
|
|
2394
2425
|
|
|
2395
2426
|
//# sourceMappingURL=index.js.map
|