@eyeon/map 2.0.43 → 2.0.45
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/assets/index.css +1 -1
- package/dist/chunks/MapViewer.js +2611 -2598
- package/dist/chunks/MapViewer.js.map +1 -1
- package/dist/chunks/responsive.js +1741 -1727
- package/dist/chunks/responsive.js.map +1 -1
- package/dist/chunks/wheelZoom.js +159 -159
- package/dist/chunks/wheelZoom.js.map +1 -1
- package/dist/core/import/index.d.ts +7 -0
- package/dist/core/import/index.d.ts.map +1 -1
- package/dist/core/index.js +161 -160
- package/dist/core/outdoorDecoration.d.ts +3 -2
- package/dist/core/outdoorDecoration.d.ts.map +1 -1
- package/dist/core/publish/index.d.ts +3 -3
- package/dist/core/publish/index.d.ts.map +1 -1
- package/dist/editor/MapEditor.d.ts +8 -1
- package/dist/editor/MapEditor.d.ts.map +1 -1
- package/dist/editor/canvas/EditorCanvas.d.ts.map +1 -1
- package/dist/editor/canvas/OutdoorSvgUnderlay.d.ts +3 -1
- package/dist/editor/canvas/OutdoorSvgUnderlay.d.ts.map +1 -1
- package/dist/editor/index.css +15 -0
- package/dist/editor/index.js +4638 -4527
- package/dist/editor/index.js.map +1 -1
- package/dist/editor/panels/ClassicMapFooter.d.ts +8 -4
- package/dist/editor/panels/ClassicMapFooter.d.ts.map +1 -1
- package/dist/editor/panels/LeftRail.d.ts +2 -1
- package/dist/editor/panels/LeftRail.d.ts.map +1 -1
- package/dist/editor/panels/PreviewOverlay.d.ts +3 -1
- package/dist/editor/panels/PreviewOverlay.d.ts.map +1 -1
- package/dist/editor/previewDocument.d.ts +2 -0
- package/dist/editor/previewDocument.d.ts.map +1 -1
- package/dist/viewer/MapViewer.d.ts +5 -0
- package/dist/viewer/MapViewer.d.ts.map +1 -1
- package/dist/viewer/components/LevelMeshes.d.ts.map +1 -1
- package/dist/viewer/components/MapScene.d.ts +6 -1
- package/dist/viewer/components/MapScene.d.ts.map +1 -1
- package/dist/viewer/components/SvgVectorLayer.d.ts +6 -1
- package/dist/viewer/components/SvgVectorLayer.d.ts.map +1 -1
- package/dist/viewer/index.js +4 -4
- package/package.json +2 -2
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
const
|
|
4
|
-
function W(
|
|
5
|
-
const
|
|
6
|
-
return
|
|
7
|
-
}
|
|
8
|
-
function
|
|
9
|
-
const
|
|
10
|
-
if (
|
|
1
|
+
import Ln from "ngraph.graph";
|
|
2
|
+
import Nn from "ngraph.path";
|
|
3
|
+
const Ne = "transparent", De = "#94a3b8", Tn = 0.28, Ke = 32, Mn = 48, pe = 56;
|
|
4
|
+
function W(e) {
|
|
5
|
+
const n = (e ?? "").trim().toLowerCase();
|
|
6
|
+
return n === Ne || n === "none";
|
|
7
|
+
}
|
|
8
|
+
function Ye(e) {
|
|
9
|
+
const n = e.replace("#", "").trim();
|
|
10
|
+
if (n.length === 3) {
|
|
11
11
|
const i = [
|
|
12
|
-
parseInt(
|
|
13
|
-
parseInt(
|
|
14
|
-
parseInt(
|
|
12
|
+
parseInt(n[0] + n[0], 16),
|
|
13
|
+
parseInt(n[1] + n[1], 16),
|
|
14
|
+
parseInt(n[2] + n[2], 16)
|
|
15
15
|
];
|
|
16
16
|
return i.some((c) => Number.isNaN(c)) ? null : i;
|
|
17
17
|
}
|
|
18
|
-
if (
|
|
19
|
-
const
|
|
20
|
-
return [
|
|
18
|
+
if (n.length !== 6) return null;
|
|
19
|
+
const t = parseInt(n.slice(0, 2), 16), r = parseInt(n.slice(2, 4), 16), o = parseInt(n.slice(4, 6), 16);
|
|
20
|
+
return [t, r, o].some((i) => Number.isNaN(i)) ? null : [t, r, o];
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function Be(e, n, t) {
|
|
23
23
|
const r = (o) => Math.max(0, Math.min(255, Math.round(o))).toString(16).padStart(2, "0");
|
|
24
|
-
return `#${r(
|
|
24
|
+
return `#${r(e)}${r(n)}${r(t)}`;
|
|
25
25
|
}
|
|
26
|
-
function
|
|
27
|
-
const
|
|
28
|
-
return r ?
|
|
26
|
+
function fo(e, n = De) {
|
|
27
|
+
const t = W(e) ? n : e, r = Ye(t) ?? Ye(n);
|
|
28
|
+
return r ? wn(r) : De;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
31
|
-
const r = Math.max(
|
|
32
|
-
if (r <
|
|
33
|
-
return
|
|
34
|
-
let o = 1 -
|
|
35
|
-
return r - Math.max(i, c, a) <
|
|
30
|
+
function wn([e, n, t]) {
|
|
31
|
+
const r = Math.max(e, n, t);
|
|
32
|
+
if (r < Mn)
|
|
33
|
+
return Be(e + pe, n + pe, t + pe);
|
|
34
|
+
let o = 1 - Tn, i = e * o, c = n * o, a = t * o;
|
|
35
|
+
return r - Math.max(i, c, a) < Ke && (o = (r - Ke) / r, i = e * o, c = n * o, a = t * o), Be(i, c, a);
|
|
36
36
|
}
|
|
37
|
-
const
|
|
37
|
+
const an = "#E9F7FC", Pn = [
|
|
38
38
|
"green-area",
|
|
39
39
|
"water-area",
|
|
40
40
|
"parking-lane",
|
|
41
41
|
"parking-icon",
|
|
42
42
|
"walking-path"
|
|
43
|
-
],
|
|
43
|
+
], Fn = {
|
|
44
44
|
"green-area": "GREEN_AREA_COLOR",
|
|
45
45
|
"water-area": "WATER_COLOR",
|
|
46
46
|
"parking-lane": "PARKING_LANE_COLOR",
|
|
47
47
|
"parking-icon": "PARKING_ICON_COLOR",
|
|
48
48
|
"walking-path": "WALKABLE_COLOR"
|
|
49
|
-
},
|
|
49
|
+
}, Dn = 2, ln = {
|
|
50
50
|
"green-area": {
|
|
51
51
|
fill: "#C4DDAB",
|
|
52
52
|
// Same band as other artwork. Parking lanes are pulled under green areas
|
|
@@ -70,16 +70,16 @@ const ce = "#E9F7FC", we = [
|
|
|
70
70
|
extrudeHeight: 1
|
|
71
71
|
},
|
|
72
72
|
"walking-path": {
|
|
73
|
-
fill:
|
|
73
|
+
fill: an,
|
|
74
74
|
renderOrder: 2,
|
|
75
75
|
extrudeHeight: 1
|
|
76
76
|
}
|
|
77
77
|
};
|
|
78
|
-
function U(
|
|
79
|
-
const
|
|
80
|
-
return
|
|
78
|
+
function U(e) {
|
|
79
|
+
const n = ln[e];
|
|
80
|
+
return n.fill ?? n.stroke ?? "";
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function Kn() {
|
|
83
83
|
return {
|
|
84
84
|
GREEN_AREA_COLOR: U("green-area"),
|
|
85
85
|
WATER_COLOR: U("water-area"),
|
|
@@ -88,101 +88,101 @@ function De() {
|
|
|
88
88
|
WALKABLE_COLOR: U("walking-path")
|
|
89
89
|
};
|
|
90
90
|
}
|
|
91
|
-
const
|
|
91
|
+
const xe = {
|
|
92
92
|
amenity: "#444444",
|
|
93
93
|
kiosk: "#444444",
|
|
94
94
|
connector: "#0763b1"
|
|
95
|
-
},
|
|
95
|
+
}, ho = {
|
|
96
96
|
amenity: "AMENITY_ICON_COLOR",
|
|
97
97
|
kiosk: "KIOSK_ICON_COLOR",
|
|
98
98
|
connector: "CONNECTOR_ICON_COLOR"
|
|
99
99
|
};
|
|
100
|
-
function
|
|
100
|
+
function Yn() {
|
|
101
101
|
return {
|
|
102
|
-
AMENITY_ICON_COLOR:
|
|
103
|
-
KIOSK_ICON_COLOR:
|
|
104
|
-
CONNECTOR_ICON_COLOR:
|
|
102
|
+
AMENITY_ICON_COLOR: xe.amenity,
|
|
103
|
+
KIOSK_ICON_COLOR: xe.kiosk,
|
|
104
|
+
CONNECTOR_ICON_COLOR: xe.connector
|
|
105
105
|
};
|
|
106
106
|
}
|
|
107
|
-
function
|
|
108
|
-
return
|
|
107
|
+
function un(e) {
|
|
108
|
+
return e.toLowerCase().replace(/[-_]+/g, " ").replace(/\s+/g, " ").trim();
|
|
109
109
|
}
|
|
110
|
-
function
|
|
111
|
-
const
|
|
112
|
-
return !!(
|
|
110
|
+
function Bn(e, n) {
|
|
111
|
+
const t = un(n);
|
|
112
|
+
return !!(e === t || e.startsWith(`${t} `) || e === `${t}s` || e.startsWith(`${t}s `));
|
|
113
113
|
}
|
|
114
|
-
function
|
|
115
|
-
if (!t) return null;
|
|
116
|
-
const e = le(t);
|
|
114
|
+
function de(e) {
|
|
117
115
|
if (!e) return null;
|
|
118
|
-
const n =
|
|
119
|
-
|
|
120
|
-
|
|
116
|
+
const n = un(e);
|
|
117
|
+
if (!n) return null;
|
|
118
|
+
const t = [...Pn].sort((r, o) => o.length - r.length);
|
|
119
|
+
for (const r of t)
|
|
120
|
+
if (Bn(n, r)) return r;
|
|
121
121
|
return null;
|
|
122
122
|
}
|
|
123
|
-
function $e
|
|
124
|
-
const r =
|
|
125
|
-
if (!r) return
|
|
126
|
-
const o =
|
|
127
|
-
return typeof o != "string" ?
|
|
123
|
+
function $n(e, n, t) {
|
|
124
|
+
const r = Fn[n];
|
|
125
|
+
if (!r) return e;
|
|
126
|
+
const o = t == null ? void 0 : t[r];
|
|
127
|
+
return typeof o != "string" ? e : W(o) ? e.fill ? { ...e, fill: "transparent" } : e.stroke ? { ...e, stroke: "transparent" } : e : o.trim() ? e.fill ? { ...e, fill: o } : e.stroke ? { ...e, stroke: o } : e : e;
|
|
128
128
|
}
|
|
129
|
-
function
|
|
130
|
-
const
|
|
131
|
-
return
|
|
129
|
+
function he(e, n) {
|
|
130
|
+
const t = de(e);
|
|
131
|
+
return t ? $n(ln[t], t, n) : null;
|
|
132
132
|
}
|
|
133
|
-
function
|
|
134
|
-
var
|
|
135
|
-
return ((
|
|
133
|
+
function yo(e) {
|
|
134
|
+
var n;
|
|
135
|
+
return ((n = he(e)) == null ? void 0 : n.renderOrder) ?? Dn;
|
|
136
136
|
}
|
|
137
|
-
function
|
|
138
|
-
return
|
|
137
|
+
function ce(e) {
|
|
138
|
+
return de(e) === "parking-lane";
|
|
139
139
|
}
|
|
140
|
-
function
|
|
141
|
-
return
|
|
140
|
+
function ae(e) {
|
|
141
|
+
return de(e) === "parking-icon";
|
|
142
142
|
}
|
|
143
|
-
function
|
|
144
|
-
return
|
|
143
|
+
function Ce(e) {
|
|
144
|
+
return de(e) === "green-area";
|
|
145
145
|
}
|
|
146
|
-
function
|
|
147
|
-
const
|
|
148
|
-
if (
|
|
149
|
-
const o =
|
|
150
|
-
return o && a ? -1 : c && i ? 1 :
|
|
146
|
+
function mo(e, n) {
|
|
147
|
+
const t = ae(e.layerName), r = ae(n.layerName);
|
|
148
|
+
if (t !== r) return t ? 1 : -1;
|
|
149
|
+
const o = ce(e.layerName), i = ce(n.layerName), c = Ce(e.layerName), a = Ce(n.layerName);
|
|
150
|
+
return o && a ? -1 : c && i ? 1 : e.index - n.index;
|
|
151
151
|
}
|
|
152
|
-
function
|
|
153
|
-
const
|
|
152
|
+
function po(e, n) {
|
|
153
|
+
const t = e.map((s, f) => ({
|
|
154
154
|
item: s,
|
|
155
155
|
index: f,
|
|
156
|
-
layerName:
|
|
157
|
-
})), r =
|
|
158
|
-
(s) => !
|
|
159
|
-
), c = i.findIndex((s) =>
|
|
156
|
+
layerName: n(s)
|
|
157
|
+
})), r = t.filter((s) => ae(s.layerName)), o = t.filter((s) => ce(s.layerName)), i = t.filter(
|
|
158
|
+
(s) => !ae(s.layerName) && !ce(s.layerName)
|
|
159
|
+
), c = i.findIndex((s) => Ce(s.layerName));
|
|
160
160
|
return [...c >= 0 ? [
|
|
161
161
|
...i.slice(0, c),
|
|
162
162
|
...o,
|
|
163
163
|
...i.slice(c)
|
|
164
164
|
] : [...i, ...o].sort((s, f) => s.index - f.index), ...r].map((s) => s.item);
|
|
165
165
|
}
|
|
166
|
-
function
|
|
167
|
-
const
|
|
168
|
-
for (const o of
|
|
166
|
+
function zn(e, n) {
|
|
167
|
+
const t = (n == null ? void 0 : n.omitStaticLayers) === !0, r = /* @__PURE__ */ new Set();
|
|
168
|
+
for (const o of e) {
|
|
169
169
|
const i = o.sourceSvgId;
|
|
170
|
-
i && (
|
|
170
|
+
i && (t && he(i) || r.add(i));
|
|
171
171
|
}
|
|
172
172
|
return r;
|
|
173
173
|
}
|
|
174
|
-
function
|
|
175
|
-
return
|
|
176
|
-
|
|
174
|
+
function xo(e) {
|
|
175
|
+
return zn(
|
|
176
|
+
e.flatMap((n) => [...n.shapes]),
|
|
177
177
|
{ omitStaticLayers: !0 }
|
|
178
178
|
);
|
|
179
179
|
}
|
|
180
|
-
const
|
|
181
|
-
function
|
|
182
|
-
return
|
|
180
|
+
const bo = ["escalator", "elevator"];
|
|
181
|
+
function Gn(e) {
|
|
182
|
+
return e === "escalator" || e === "elevator";
|
|
183
183
|
}
|
|
184
|
-
function
|
|
185
|
-
return
|
|
184
|
+
function Xn(e) {
|
|
185
|
+
return e === "google" ? "google" : "transparent";
|
|
186
186
|
}
|
|
187
187
|
const V = {
|
|
188
188
|
MAP_STYLE: "2D",
|
|
@@ -203,26 +203,26 @@ const V = {
|
|
|
203
203
|
OVERLAY_COLOR: "#000000",
|
|
204
204
|
OVERLAY_OPACITY: 0.15,
|
|
205
205
|
PARKING_ZONE_COLOR: "#cbd5e1",
|
|
206
|
-
...
|
|
207
|
-
...
|
|
206
|
+
...Kn(),
|
|
207
|
+
...Yn(),
|
|
208
208
|
KIOSK_SIZE: 12,
|
|
209
209
|
ZOOM_STEP: 0.5,
|
|
210
210
|
CAMERA_MAX_DISTANCE: 2e3,
|
|
211
211
|
CAMERA_MIN_DISTANCE: 50
|
|
212
|
-
},
|
|
213
|
-
function
|
|
214
|
-
const
|
|
215
|
-
return !Number.isFinite(
|
|
212
|
+
}, Hn = "#f5f5f5", Un = /* @__PURE__ */ new Set(["#f8fafc", "#f1efea"]), Vn = "#86efac", Wn = "#7dd3fc", Zn = "#e2e8f0", jn = 500, qn = 100;
|
|
213
|
+
function fn(e) {
|
|
214
|
+
const n = typeof e == "number" ? e : Number(e);
|
|
215
|
+
return !Number.isFinite(n) || n <= 0 ? 0 : Math.min(n, jn);
|
|
216
216
|
}
|
|
217
|
-
function
|
|
218
|
-
const
|
|
219
|
-
return !Number.isFinite(
|
|
217
|
+
function Qn(e) {
|
|
218
|
+
const n = typeof e == "number" ? e : Number(e);
|
|
219
|
+
return !Number.isFinite(n) || n <= 0 ? V.ROUTE_THICKNESS : Math.min(n, qn);
|
|
220
220
|
}
|
|
221
|
-
function
|
|
222
|
-
const
|
|
223
|
-
return
|
|
221
|
+
function Jn(...e) {
|
|
222
|
+
const n = Object.assign({}, V, ...e.filter(Boolean));
|
|
223
|
+
return n.SURROUNDINGS = Xn(n.SURROUNDINGS), n.MAP_BACKGROUND_COLOR.toLowerCase() === Hn && (n.MAP_BACKGROUND_COLOR = V.MAP_BACKGROUND_COLOR), Un.has(n.WALKABLE_COLOR.toLowerCase()) && (n.WALKABLE_COLOR = an), n.GREEN_AREA_COLOR.toLowerCase() === Vn && (n.GREEN_AREA_COLOR = V.GREEN_AREA_COLOR), n.WATER_COLOR.toLowerCase() === Wn && (n.WATER_COLOR = V.WATER_COLOR), n.STORE_DEFAULT_COLOR.toLowerCase() === Zn && (n.STORE_DEFAULT_COLOR = V.STORE_DEFAULT_COLOR), n.STORE_RADIUS = fn(n.STORE_RADIUS), n.ROUTE_THICKNESS = Qn(n.ROUTE_THICKNESS), n;
|
|
224
224
|
}
|
|
225
|
-
const
|
|
225
|
+
const et = [
|
|
226
226
|
"unit",
|
|
227
227
|
"amenity",
|
|
228
228
|
"kiosk_screen",
|
|
@@ -230,82 +230,82 @@ const Je = [
|
|
|
230
230
|
"entrance",
|
|
231
231
|
"parking_zone",
|
|
232
232
|
"custom"
|
|
233
|
-
],
|
|
233
|
+
], ve = 1e4, Io = 2.5, nt = {
|
|
234
234
|
lat: 39.8283,
|
|
235
235
|
lng: -98.5795,
|
|
236
236
|
zoom: 4,
|
|
237
237
|
heading: 0
|
|
238
238
|
};
|
|
239
|
-
function
|
|
240
|
-
if (!
|
|
241
|
-
const
|
|
242
|
-
if (![
|
|
243
|
-
const c = (i % 360 + 360) % 360, a = Number(
|
|
239
|
+
function tt(e) {
|
|
240
|
+
if (!e || typeof e != "object") return null;
|
|
241
|
+
const n = e, t = Number(n.lat), r = Number(n.lng), o = Number(n.zoom), i = Number(n.heading);
|
|
242
|
+
if (![t, r, o, i].every((l) => Number.isFinite(l)) || t < -90 || t > 90 || r < -180 || r > 180 || o < 1 || o > 21) return null;
|
|
243
|
+
const c = (i % 360 + 360) % 360, a = Number(n.anchorZoom), s = Number(n.anchorX), f = Number(n.anchorY), y = Number.isFinite(a) && a > 0 ? {
|
|
244
244
|
anchorZoom: Math.round(a * 1e3) / 1e3,
|
|
245
245
|
anchorX: Number.isFinite(s) ? s : 0,
|
|
246
246
|
anchorY: Number.isFinite(f) ? f : 0
|
|
247
247
|
} : {};
|
|
248
248
|
return {
|
|
249
|
-
lat:
|
|
249
|
+
lat: t,
|
|
250
250
|
lng: r,
|
|
251
251
|
zoom: Math.round(o * 100) / 100,
|
|
252
252
|
heading: Math.round(c * 10) / 10,
|
|
253
253
|
...y
|
|
254
254
|
};
|
|
255
255
|
}
|
|
256
|
-
function
|
|
257
|
-
return Math.abs(
|
|
256
|
+
function dn(e, n) {
|
|
257
|
+
return Math.abs(e.lat - n.lat) < 2e-5 && Math.abs(e.lng - n.lng) < 2e-5 && Math.abs(e.zoom - n.zoom) < 1e-3 && Math.abs(e.heading - n.heading) < 0.05;
|
|
258
258
|
}
|
|
259
|
-
function
|
|
260
|
-
const
|
|
261
|
-
return
|
|
259
|
+
function rt(e, n) {
|
|
260
|
+
const t = e.anchorZoom != null && e.anchorZoom > 0, r = n.anchorZoom != null && n.anchorZoom > 0;
|
|
261
|
+
return t !== r ? !1 : !t || !r || e.anchorZoom == null || n.anchorZoom == null ? !0 : Math.abs(e.anchorZoom - n.anchorZoom) < 1e-3 && Math.abs((e.anchorX ?? 0) - (n.anchorX ?? 0)) < 0.05 && Math.abs((e.anchorY ?? 0) - (n.anchorY ?? 0)) < 0.05;
|
|
262
262
|
}
|
|
263
|
-
function
|
|
264
|
-
return
|
|
263
|
+
function go(e, n) {
|
|
264
|
+
return dn(e, n) && rt(e, n);
|
|
265
265
|
}
|
|
266
|
-
function
|
|
267
|
-
return
|
|
266
|
+
function _o(e) {
|
|
267
|
+
return dn(e, nt);
|
|
268
268
|
}
|
|
269
|
-
const
|
|
270
|
-
function
|
|
269
|
+
const le = "entrance", ko = 24, ot = 8;
|
|
270
|
+
function it(e) {
|
|
271
271
|
var o;
|
|
272
|
-
if (!
|
|
273
|
-
const
|
|
274
|
-
return
|
|
275
|
-
}
|
|
276
|
-
function
|
|
277
|
-
var
|
|
278
|
-
return
|
|
279
|
-
}
|
|
280
|
-
function
|
|
281
|
-
var
|
|
282
|
-
return !
|
|
283
|
-
...
|
|
284
|
-
imageKey:
|
|
272
|
+
if (!e) return !1;
|
|
273
|
+
const n = e.trim();
|
|
274
|
+
return n ? n === le ? !0 : ((o = (n.split(/[?#]/, 1)[0] ?? n).split("/").filter(Boolean).pop()) == null ? void 0 : o.toLowerCase()) === le : !1;
|
|
275
|
+
}
|
|
276
|
+
function st(e) {
|
|
277
|
+
var n;
|
|
278
|
+
return e.kind !== "entrance" ? !1 : it((n = e.label) == null ? void 0 : n.imageKey) ? !0 : e.origin === "manual" && !e.sourceSvgId;
|
|
279
|
+
}
|
|
280
|
+
function hn(e) {
|
|
281
|
+
var n;
|
|
282
|
+
return !st(e) || ((n = e.label) == null ? void 0 : n.imageKey) === le ? e.label : {
|
|
283
|
+
...e.label ?? {},
|
|
284
|
+
imageKey: le
|
|
285
285
|
};
|
|
286
286
|
}
|
|
287
|
-
function
|
|
288
|
-
const r =
|
|
289
|
-
return
|
|
290
|
-
...
|
|
291
|
-
kind:
|
|
287
|
+
function Oo(e, n, t) {
|
|
288
|
+
const r = n != null ? { ...e, ...n } : { ...e ?? {} };
|
|
289
|
+
return hn({
|
|
290
|
+
...t,
|
|
291
|
+
kind: t.kind ?? "unit",
|
|
292
292
|
label: r
|
|
293
293
|
}) ?? r;
|
|
294
294
|
}
|
|
295
|
-
function
|
|
296
|
-
return Math.max(
|
|
295
|
+
function Ao(e) {
|
|
296
|
+
return Math.max(ot, e);
|
|
297
297
|
}
|
|
298
|
-
const
|
|
299
|
-
function
|
|
300
|
-
return
|
|
298
|
+
const So = ["left", "center", "right"], ct = "center";
|
|
299
|
+
function Ro(e) {
|
|
300
|
+
return e === "left" || e === "right" ? e : ct;
|
|
301
301
|
}
|
|
302
|
-
function
|
|
303
|
-
return
|
|
302
|
+
function Co(e, n) {
|
|
303
|
+
return n === "left" ? e.minX : n === "right" ? e.maxX : (e.minX + e.maxX) / 2;
|
|
304
304
|
}
|
|
305
|
-
function
|
|
306
|
-
return
|
|
305
|
+
function vo(e) {
|
|
306
|
+
return e === "left" ? "start" : e === "right" ? "end" : "middle";
|
|
307
307
|
}
|
|
308
|
-
const
|
|
308
|
+
const ye = 12, at = ye, lt = 4, ut = [
|
|
309
309
|
"retail_name",
|
|
310
310
|
"retail_logo",
|
|
311
311
|
"retail_text",
|
|
@@ -314,60 +314,60 @@ const dt = 12, an = dt, ln = 4, un = [
|
|
|
314
314
|
"connector",
|
|
315
315
|
"custom_text",
|
|
316
316
|
"custom_image"
|
|
317
|
-
],
|
|
318
|
-
function
|
|
319
|
-
const
|
|
320
|
-
return Number.isFinite(
|
|
321
|
-
}
|
|
322
|
-
const
|
|
323
|
-
function
|
|
324
|
-
const
|
|
325
|
-
if (
|
|
317
|
+
], ft = new Set(ut);
|
|
318
|
+
function j(e, n) {
|
|
319
|
+
const t = typeof e == "number" ? e : Number(e);
|
|
320
|
+
return Number.isFinite(t) ? t : n;
|
|
321
|
+
}
|
|
322
|
+
const dt = /^(?:|[+\-]|[+\-]?\.(?:0*)?)$/;
|
|
323
|
+
function ht(e) {
|
|
324
|
+
const n = e.trim();
|
|
325
|
+
if (dt.test(n))
|
|
326
326
|
return { render: 0, complete: !1 };
|
|
327
|
-
const
|
|
328
|
-
return Number.isFinite(
|
|
327
|
+
const t = Number(n);
|
|
328
|
+
return Number.isFinite(t) ? { render: t, complete: !0 } : { render: 0, complete: !1 };
|
|
329
329
|
}
|
|
330
|
-
function
|
|
331
|
-
const
|
|
332
|
-
return
|
|
330
|
+
function Eo(e) {
|
|
331
|
+
const n = ht(e);
|
|
332
|
+
return n.complete ? { display: String(n.render), render: n.render } : { display: "0", render: 0 };
|
|
333
333
|
}
|
|
334
|
-
function
|
|
335
|
-
if (
|
|
336
|
-
const
|
|
337
|
-
return
|
|
334
|
+
function K(e) {
|
|
335
|
+
if (e == null) return null;
|
|
336
|
+
const n = String(e).trim();
|
|
337
|
+
return n || null;
|
|
338
338
|
}
|
|
339
|
-
function
|
|
340
|
-
if (
|
|
341
|
-
const
|
|
342
|
-
return
|
|
339
|
+
function yt(e) {
|
|
340
|
+
if (e == null) return null;
|
|
341
|
+
const n = String(e);
|
|
342
|
+
return n === "" ? null : n;
|
|
343
343
|
}
|
|
344
|
-
function
|
|
345
|
-
if (
|
|
346
|
-
const
|
|
347
|
-
return Number.isFinite(
|
|
344
|
+
function be(e) {
|
|
345
|
+
if (e == null || e === "") return null;
|
|
346
|
+
const n = Number(e);
|
|
347
|
+
return Number.isFinite(n) ? n : null;
|
|
348
348
|
}
|
|
349
|
-
function
|
|
350
|
-
return typeof
|
|
349
|
+
function mt(e) {
|
|
350
|
+
return typeof e == "string" && ft.has(e);
|
|
351
351
|
}
|
|
352
|
-
function
|
|
353
|
-
return
|
|
352
|
+
function Te(e) {
|
|
353
|
+
return e === "amenity" ? "amenity" : e === "kiosk_screen" ? "kiosk" : e === "connector" ? "connector" : e === "custom" ? "custom_text" : "retail_name";
|
|
354
354
|
}
|
|
355
|
-
function
|
|
356
|
-
const
|
|
357
|
-
if (!
|
|
355
|
+
function pt(e) {
|
|
356
|
+
const n = e == null ? void 0 : e.trim();
|
|
357
|
+
if (!n) return !1;
|
|
358
358
|
try {
|
|
359
|
-
const
|
|
360
|
-
return
|
|
359
|
+
const t = new URL(n);
|
|
360
|
+
return t.protocol === "http:" || t.protocol === "https:";
|
|
361
361
|
} catch {
|
|
362
362
|
return !1;
|
|
363
363
|
}
|
|
364
364
|
}
|
|
365
|
-
function
|
|
366
|
-
return
|
|
365
|
+
function Lo(e) {
|
|
366
|
+
return e === "amenity" ? "amenity" : e === "kiosk_screen" ? "kiosk" : e === "unit" || e === "parking_zone" ? "retailer" : "none";
|
|
367
367
|
}
|
|
368
|
-
function
|
|
368
|
+
function No(e, n) {
|
|
369
369
|
return {
|
|
370
|
-
shapeId:
|
|
370
|
+
shapeId: e,
|
|
371
371
|
targetType: "none",
|
|
372
372
|
retailerId: null,
|
|
373
373
|
amenityId: null,
|
|
@@ -376,8 +376,8 @@ function Eo(t, e) {
|
|
|
376
376
|
unitNumber: null,
|
|
377
377
|
customLabel: null,
|
|
378
378
|
customImageKey: null,
|
|
379
|
-
layerType:
|
|
380
|
-
size:
|
|
379
|
+
layerType: Te(n),
|
|
380
|
+
size: ye,
|
|
381
381
|
rotate: 0,
|
|
382
382
|
offsetX: 0,
|
|
383
383
|
offsetY: 0,
|
|
@@ -385,229 +385,229 @@ function Eo(t, e) {
|
|
|
385
385
|
textColor: null
|
|
386
386
|
};
|
|
387
387
|
}
|
|
388
|
-
function
|
|
389
|
-
const
|
|
388
|
+
function To(e, n = "unit") {
|
|
389
|
+
const t = e.layerType ?? e.layer_type, r = e.unitStatus ?? e.unit_status ?? "vacant";
|
|
390
390
|
return {
|
|
391
|
-
shapeId:
|
|
392
|
-
|
|
391
|
+
shapeId: j(
|
|
392
|
+
e.shapeId ?? e.shape_id,
|
|
393
393
|
0
|
|
394
394
|
),
|
|
395
|
-
targetType:
|
|
396
|
-
retailerId:
|
|
397
|
-
|
|
395
|
+
targetType: e.targetType ?? e.target_type ?? "none",
|
|
396
|
+
retailerId: be(
|
|
397
|
+
e.retailerId ?? e.retailer_id
|
|
398
398
|
),
|
|
399
|
-
amenityId:
|
|
400
|
-
|
|
399
|
+
amenityId: be(
|
|
400
|
+
e.amenityId ?? e.amenity_id
|
|
401
401
|
),
|
|
402
|
-
kioskId:
|
|
403
|
-
|
|
402
|
+
kioskId: be(
|
|
403
|
+
e.kioskId ?? e.kiosk_id
|
|
404
404
|
),
|
|
405
405
|
unitStatus: r || "vacant",
|
|
406
|
-
unitNumber:
|
|
407
|
-
|
|
406
|
+
unitNumber: K(
|
|
407
|
+
e.unitNumber ?? e.unit_number
|
|
408
408
|
),
|
|
409
|
-
customLabel:
|
|
410
|
-
|
|
409
|
+
customLabel: yt(
|
|
410
|
+
e.customLabel ?? e.custom_label
|
|
411
411
|
),
|
|
412
|
-
customImageKey:
|
|
413
|
-
|
|
412
|
+
customImageKey: K(
|
|
413
|
+
e.customImageKey ?? e.custom_image_key
|
|
414
414
|
),
|
|
415
|
-
layerType:
|
|
416
|
-
size:
|
|
417
|
-
rotate:
|
|
418
|
-
offsetX:
|
|
419
|
-
|
|
415
|
+
layerType: mt(t) ? t : Te(n),
|
|
416
|
+
size: j(e.size, ye),
|
|
417
|
+
rotate: j(e.rotate, 0),
|
|
418
|
+
offsetX: j(
|
|
419
|
+
e.offsetX ?? e.offset_x,
|
|
420
420
|
0
|
|
421
421
|
),
|
|
422
|
-
offsetY:
|
|
423
|
-
|
|
422
|
+
offsetY: j(
|
|
423
|
+
e.offsetY ?? e.offset_y,
|
|
424
424
|
0
|
|
425
425
|
),
|
|
426
|
-
bgColor:
|
|
427
|
-
|
|
426
|
+
bgColor: K(
|
|
427
|
+
e.bgColor ?? e.bg_color
|
|
428
428
|
),
|
|
429
|
-
textColor:
|
|
430
|
-
|
|
429
|
+
textColor: K(
|
|
430
|
+
e.textColor ?? e.text_color
|
|
431
431
|
),
|
|
432
|
-
align:
|
|
432
|
+
align: xt(e.align)
|
|
433
433
|
};
|
|
434
434
|
}
|
|
435
|
-
function
|
|
436
|
-
if (
|
|
435
|
+
function xt(e) {
|
|
436
|
+
if (e === "left" || e === "right" || e === "center") return e;
|
|
437
437
|
}
|
|
438
|
-
function
|
|
439
|
-
const
|
|
440
|
-
return
|
|
438
|
+
function Mo(e, n) {
|
|
439
|
+
const t = (e.location ?? "").trim();
|
|
440
|
+
return n && t && t !== "-" ? `${e.name} (${t})` : e.name;
|
|
441
441
|
}
|
|
442
|
-
function
|
|
442
|
+
function $e(e, n) {
|
|
443
443
|
var r;
|
|
444
|
-
const
|
|
445
|
-
return W(
|
|
444
|
+
const t = (r = e == null ? void 0 : e.bgColor) == null ? void 0 : r.trim();
|
|
445
|
+
return W(t) ? "transparent" : t || n;
|
|
446
446
|
}
|
|
447
|
-
function
|
|
448
|
-
return
|
|
447
|
+
function Me(e) {
|
|
448
|
+
return e === "amenity" || e === "kiosk_screen" || e === "connector";
|
|
449
449
|
}
|
|
450
|
-
function
|
|
451
|
-
return
|
|
450
|
+
function wo(e, n) {
|
|
451
|
+
return Me(e) ? Ne : n;
|
|
452
452
|
}
|
|
453
|
-
function
|
|
453
|
+
function Po(e, n) {
|
|
454
454
|
var r;
|
|
455
|
-
const
|
|
456
|
-
return W(
|
|
455
|
+
const t = (r = e == null ? void 0 : e.textColor) == null ? void 0 : r.trim();
|
|
456
|
+
return W(t) ? "transparent" : t || n;
|
|
457
457
|
}
|
|
458
|
-
function
|
|
459
|
-
const r = (
|
|
460
|
-
return r === "kiosk" ?
|
|
458
|
+
function bt(e, n, t) {
|
|
459
|
+
const r = (e == null ? void 0 : e.layerType) ?? (t ? Te(t) : void 0);
|
|
460
|
+
return r === "kiosk" ? n.KIOSK_ICON_COLOR : r === "amenity" ? n.AMENITY_ICON_COLOR : r === "connector" ? n.CONNECTOR_ICON_COLOR : n.STORE_TEXT_COLOR;
|
|
461
461
|
}
|
|
462
|
-
function
|
|
462
|
+
function Fo(e, n, t, r) {
|
|
463
463
|
var i;
|
|
464
|
-
const o = (i =
|
|
465
|
-
return W(o) ? "transparent" : o ||
|
|
464
|
+
const o = (i = t ?? (e == null ? void 0 : e.textColor)) == null ? void 0 : i.trim();
|
|
465
|
+
return W(o) ? "transparent" : o || bt(e, n, r);
|
|
466
466
|
}
|
|
467
|
-
function
|
|
468
|
-
const
|
|
469
|
-
if (!
|
|
470
|
-
const
|
|
471
|
-
return Number.isSafeInteger(
|
|
467
|
+
function Do(e) {
|
|
468
|
+
const n = e.trim();
|
|
469
|
+
if (!n || !/^\d+$/.test(n)) return null;
|
|
470
|
+
const t = Number(n);
|
|
471
|
+
return Number.isSafeInteger(t) && t > 0 ? t : null;
|
|
472
472
|
}
|
|
473
|
-
function
|
|
473
|
+
function Ko(e, n) {
|
|
474
474
|
var o;
|
|
475
|
-
const
|
|
476
|
-
if (
|
|
477
|
-
const r = (o =
|
|
478
|
-
return r || ((
|
|
475
|
+
const t = n == null ? void 0 : n.trim();
|
|
476
|
+
if (t) return t;
|
|
477
|
+
const r = (o = e == null ? void 0 : e.customLabel) == null ? void 0 : o.trim();
|
|
478
|
+
return r || ((e == null ? void 0 : e.amenityId) != null ? `Amenity ${e.amenityId}` : null);
|
|
479
479
|
}
|
|
480
|
-
function
|
|
480
|
+
function Yo(e, n) {
|
|
481
481
|
var o;
|
|
482
|
-
const
|
|
483
|
-
if (
|
|
484
|
-
const r =
|
|
485
|
-
return r || ((
|
|
482
|
+
const t = (o = e == null ? void 0 : e.customLabel) == null ? void 0 : o.trim();
|
|
483
|
+
if (t) return t;
|
|
484
|
+
const r = n == null ? void 0 : n.trim();
|
|
485
|
+
return r || ((e == null ? void 0 : e.kioskId) != null ? `Kiosk ${e.kioskId}` : null);
|
|
486
486
|
}
|
|
487
|
-
function
|
|
488
|
-
var
|
|
489
|
-
return
|
|
487
|
+
function M(e) {
|
|
488
|
+
var n, t, r;
|
|
489
|
+
return e ? e.targetType === "retailer" ? e.retailerId != null : e.targetType === "amenity" ? e.amenityId != null || !!((n = e.customLabel) != null && n.trim()) : e.targetType === "kiosk" ? e.kioskId != null || !!((t = e.customLabel) != null && t.trim()) : e.targetType === "none" && e.layerType === "custom_text" ? !!((r = e.customLabel) != null && r.trim()) : e.targetType === "none" && e.layerType === "custom_image" ? pt(e.customImageKey) : !1 : !1;
|
|
490
490
|
}
|
|
491
|
-
const
|
|
491
|
+
const It = /* @__PURE__ */ new Set([
|
|
492
492
|
"unit",
|
|
493
493
|
"parking_zone",
|
|
494
494
|
"amenity",
|
|
495
495
|
"kiosk_screen",
|
|
496
496
|
"custom"
|
|
497
497
|
]);
|
|
498
|
-
function
|
|
498
|
+
function yn(e, n, t) {
|
|
499
499
|
var r, o;
|
|
500
|
-
return
|
|
501
|
-
{ style:
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
).label :
|
|
505
|
-
...
|
|
500
|
+
return e.kind === "label" ? e.label : e.kind === "entrance" ? hn(e) ?? e.label : e.kind === "connector" || (n == null ? void 0 : n.layerType) === "connector" ? n ? Ge(
|
|
501
|
+
{ style: e.style ?? {}, label: e.label },
|
|
502
|
+
n,
|
|
503
|
+
t
|
|
504
|
+
).label : e.label : It.has(e.kind) ? !n || !M(n) ? !((r = e.label) != null && r.text) && !((o = e.label) != null && o.imageKey) ? e.label : {
|
|
505
|
+
...e.label,
|
|
506
506
|
text: void 0,
|
|
507
507
|
imageKey: void 0
|
|
508
|
-
} :
|
|
509
|
-
{ style:
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
).label :
|
|
513
|
-
}
|
|
514
|
-
function
|
|
515
|
-
if (
|
|
516
|
-
if (
|
|
517
|
-
return
|
|
518
|
-
if (
|
|
519
|
-
return (
|
|
508
|
+
} : Ge(
|
|
509
|
+
{ style: e.style ?? {}, label: e.label },
|
|
510
|
+
n,
|
|
511
|
+
t
|
|
512
|
+
).label : e.label;
|
|
513
|
+
}
|
|
514
|
+
function gt(e, n) {
|
|
515
|
+
if (M(e)) {
|
|
516
|
+
if (e.layerType === "retail_text" || e.layerType === "custom_text")
|
|
517
|
+
return e.customLabel ?? void 0;
|
|
518
|
+
if (e.layerType === "retail_name")
|
|
519
|
+
return (n == null ? void 0 : n.name) ?? e.customLabel ?? void 0;
|
|
520
520
|
}
|
|
521
521
|
}
|
|
522
|
-
function
|
|
523
|
-
if (!(!
|
|
524
|
-
return
|
|
522
|
+
function mn(e, n, t) {
|
|
523
|
+
if (!(!M(e) || !e) && !(e.layerType !== "retail_logo" && e.layerType !== "custom_image"))
|
|
524
|
+
return kt(e, n) ?? K(t == null ? void 0 : t.imageKey) ?? void 0;
|
|
525
525
|
}
|
|
526
|
-
function
|
|
527
|
-
var
|
|
528
|
-
if (!(!
|
|
529
|
-
if (
|
|
530
|
-
if (
|
|
531
|
-
return ((
|
|
526
|
+
function Bo(e, n) {
|
|
527
|
+
var t, r;
|
|
528
|
+
if (!(!M(e) || !e)) {
|
|
529
|
+
if (e.layerType === "kiosk") return "kiosk";
|
|
530
|
+
if (e.layerType === "amenity")
|
|
531
|
+
return ((t = n == null ? void 0 : n.find((o) => o.id === e.amenityId)) == null ? void 0 : t.code) ?? ((r = e.customLabel) == null ? void 0 : r.trim()) ?? void 0;
|
|
532
532
|
}
|
|
533
533
|
}
|
|
534
|
-
function
|
|
535
|
-
const
|
|
536
|
-
return (
|
|
534
|
+
function _t(e, n) {
|
|
535
|
+
const t = Number.isFinite(e) && e > 0 ? e : ye;
|
|
536
|
+
return (n == null ? void 0 : n.layerType) === "retail_logo" || (n == null ? void 0 : n.layerType) === "custom_image" ? t * lt : t;
|
|
537
537
|
}
|
|
538
|
-
function
|
|
539
|
-
const
|
|
538
|
+
function $o(e) {
|
|
539
|
+
const n = e.assignment, t = e.label;
|
|
540
540
|
return {
|
|
541
|
-
size:
|
|
542
|
-
(
|
|
541
|
+
size: _t(
|
|
542
|
+
(n == null ? void 0 : n.size) ?? (t == null ? void 0 : t.size) ?? at
|
|
543
543
|
),
|
|
544
|
-
rotate: (
|
|
545
|
-
offsetX: (
|
|
546
|
-
offsetY: (
|
|
547
|
-
iconColor: (
|
|
544
|
+
rotate: (n == null ? void 0 : n.rotate) ?? (t == null ? void 0 : t.rotate) ?? 0,
|
|
545
|
+
offsetX: (n == null ? void 0 : n.offsetX) ?? (t == null ? void 0 : t.offsetX) ?? 0,
|
|
546
|
+
offsetY: (n == null ? void 0 : n.offsetY) ?? (t == null ? void 0 : t.offsetY) ?? 0,
|
|
547
|
+
iconColor: (n == null ? void 0 : n.textColor) ?? (t == null ? void 0 : t.color) ?? null
|
|
548
548
|
};
|
|
549
549
|
}
|
|
550
|
-
function
|
|
551
|
-
var
|
|
552
|
-
return
|
|
553
|
-
}
|
|
554
|
-
function
|
|
555
|
-
if (
|
|
556
|
-
if (
|
|
557
|
-
return
|
|
558
|
-
if (
|
|
559
|
-
return
|
|
550
|
+
function zo(e, n) {
|
|
551
|
+
var t;
|
|
552
|
+
return M(e) ? (e == null ? void 0 : e.layerType) === "kiosk" || (e == null ? void 0 : e.layerType) === "amenity" || mn(e, null, n) ? !0 : !!((t = n == null ? void 0 : n.text) != null && t.trim()) : !1;
|
|
553
|
+
}
|
|
554
|
+
function kt(e, n) {
|
|
555
|
+
if (M(e)) {
|
|
556
|
+
if (e.layerType === "retail_logo")
|
|
557
|
+
return K(n == null ? void 0 : n.logoKey) ?? K(n == null ? void 0 : n.logoUrl) ?? K(e.customImageKey) ?? void 0;
|
|
558
|
+
if (e.layerType === "custom_image")
|
|
559
|
+
return K(e.customImageKey) ?? void 0;
|
|
560
560
|
}
|
|
561
561
|
}
|
|
562
|
-
function
|
|
563
|
-
if (
|
|
564
|
-
const
|
|
565
|
-
return
|
|
562
|
+
function Ie(e) {
|
|
563
|
+
if (e.length === 0) return "";
|
|
564
|
+
const n = e[0];
|
|
565
|
+
return e.every((t) => t === n) ? n : "";
|
|
566
566
|
}
|
|
567
|
-
function
|
|
568
|
-
if (
|
|
569
|
-
const
|
|
570
|
-
return
|
|
567
|
+
function ze(e) {
|
|
568
|
+
if (e.length === 0) return !1;
|
|
569
|
+
const n = e[0];
|
|
570
|
+
return e.some((t) => t !== n);
|
|
571
571
|
}
|
|
572
|
-
function
|
|
573
|
-
const
|
|
572
|
+
function Go(e) {
|
|
573
|
+
const n = e.map((r) => r.bgColor ?? ""), t = e.map((r) => r.textColor ?? "");
|
|
574
574
|
return {
|
|
575
|
-
size:
|
|
576
|
-
bgColor:
|
|
577
|
-
textColor:
|
|
578
|
-
bgColorMixed:
|
|
579
|
-
textColorMixed:
|
|
575
|
+
size: Ie(e.map((r) => r.size)),
|
|
576
|
+
bgColor: Ie(n),
|
|
577
|
+
textColor: Ie(t),
|
|
578
|
+
bgColorMixed: ze(n),
|
|
579
|
+
textColorMixed: ze(t)
|
|
580
580
|
};
|
|
581
581
|
}
|
|
582
|
-
function
|
|
582
|
+
function Xo(e, n) {
|
|
583
583
|
return {
|
|
584
|
-
...
|
|
585
|
-
...
|
|
586
|
-
...
|
|
587
|
-
...
|
|
584
|
+
...e,
|
|
585
|
+
...n.size != null ? { size: n.size } : {},
|
|
586
|
+
...n.bgColor !== void 0 ? { bgColor: n.bgColor } : {},
|
|
587
|
+
...n.textColor !== void 0 ? { textColor: n.textColor } : {}
|
|
588
588
|
};
|
|
589
589
|
}
|
|
590
|
-
function
|
|
591
|
-
const r =
|
|
590
|
+
function Ge(e, n, t) {
|
|
591
|
+
const r = mn(n, t, e.label), o = M(n) ? r ? void 0 : gt(n, t) ?? e.label.text : void 0;
|
|
592
592
|
return {
|
|
593
593
|
style: {
|
|
594
|
-
...
|
|
595
|
-
fill:
|
|
594
|
+
...e.style,
|
|
595
|
+
fill: n.bgColor ?? void 0
|
|
596
596
|
},
|
|
597
597
|
label: {
|
|
598
|
-
...
|
|
598
|
+
...e.label,
|
|
599
599
|
text: o,
|
|
600
600
|
imageKey: r,
|
|
601
|
-
size: Number.isFinite(
|
|
602
|
-
rotate: Number.isFinite(
|
|
603
|
-
offsetX: Number.isFinite(
|
|
604
|
-
offsetY: Number.isFinite(
|
|
605
|
-
color:
|
|
606
|
-
...
|
|
601
|
+
size: Number.isFinite(n.size) ? n.size : 0,
|
|
602
|
+
rotate: Number.isFinite(n.rotate) ? n.rotate : 0,
|
|
603
|
+
offsetX: Number.isFinite(n.offsetX) ? n.offsetX : 0,
|
|
604
|
+
offsetY: Number.isFinite(n.offsetY) ? n.offsetY : 0,
|
|
605
|
+
color: n.textColor ?? void 0,
|
|
606
|
+
...n.align ? { align: n.align } : {}
|
|
607
607
|
}
|
|
608
608
|
};
|
|
609
609
|
}
|
|
610
|
-
const
|
|
610
|
+
const Ot = [
|
|
611
611
|
"floorplate",
|
|
612
612
|
"walkable",
|
|
613
613
|
"decor",
|
|
@@ -616,150 +616,150 @@ const kn = [
|
|
|
616
616
|
"water",
|
|
617
617
|
"parking_zone"
|
|
618
618
|
];
|
|
619
|
-
function
|
|
620
|
-
return
|
|
619
|
+
function At(e) {
|
|
620
|
+
return e === "void";
|
|
621
621
|
}
|
|
622
|
-
function
|
|
623
|
-
return
|
|
622
|
+
function Ho(e) {
|
|
623
|
+
return Ot.includes(e);
|
|
624
624
|
}
|
|
625
|
-
function
|
|
626
|
-
return
|
|
625
|
+
function pn(e) {
|
|
626
|
+
return At(e.kind) && !e.orphanedAt;
|
|
627
627
|
}
|
|
628
|
-
function
|
|
629
|
-
return (
|
|
628
|
+
function St(e) {
|
|
629
|
+
return (e.shapes ?? []).some(pn);
|
|
630
630
|
}
|
|
631
|
-
function
|
|
632
|
-
var
|
|
633
|
-
const
|
|
634
|
-
for (const r of
|
|
635
|
-
if (
|
|
636
|
-
for (const o of ((
|
|
637
|
-
o.length >= 3 &&
|
|
638
|
-
return
|
|
639
|
-
}
|
|
640
|
-
function
|
|
641
|
-
let
|
|
642
|
-
for (let
|
|
643
|
-
|
|
644
|
-
return
|
|
645
|
-
}
|
|
646
|
-
function
|
|
647
|
-
return
|
|
648
|
-
}
|
|
649
|
-
function
|
|
650
|
-
const
|
|
651
|
-
return
|
|
652
|
-
}
|
|
653
|
-
function
|
|
654
|
-
let
|
|
655
|
-
for (const i of
|
|
656
|
-
i.x <
|
|
657
|
-
return { minX:
|
|
658
|
-
}
|
|
659
|
-
function
|
|
660
|
-
const
|
|
661
|
-
return
|
|
662
|
-
}
|
|
663
|
-
function
|
|
664
|
-
return
|
|
665
|
-
}
|
|
666
|
-
const
|
|
667
|
-
function
|
|
668
|
-
return
|
|
669
|
-
}
|
|
670
|
-
function X(
|
|
671
|
-
return
|
|
672
|
-
}
|
|
673
|
-
function
|
|
674
|
-
const
|
|
675
|
-
return !r || X(r) ||
|
|
676
|
-
}
|
|
677
|
-
function
|
|
678
|
-
if (
|
|
679
|
-
const
|
|
631
|
+
function Uo(e) {
|
|
632
|
+
var t;
|
|
633
|
+
const n = [];
|
|
634
|
+
for (const r of e.shapes ?? [])
|
|
635
|
+
if (pn(r))
|
|
636
|
+
for (const o of ((t = r.geometry) == null ? void 0 : t.polygons) ?? [])
|
|
637
|
+
o.length >= 3 && n.push(o);
|
|
638
|
+
return n;
|
|
639
|
+
}
|
|
640
|
+
function Xe(e) {
|
|
641
|
+
let n = 0;
|
|
642
|
+
for (let t = 0, r = e.length - 1; t < e.length; r = t++)
|
|
643
|
+
n += e[r].x * e[t].y - e[t].x * e[r].y;
|
|
644
|
+
return n / 2;
|
|
645
|
+
}
|
|
646
|
+
function Rt(e) {
|
|
647
|
+
return e.slice().reverse();
|
|
648
|
+
}
|
|
649
|
+
function Ct(e, n) {
|
|
650
|
+
const t = Xe(e), r = Xe(n);
|
|
651
|
+
return t === 0 || r === 0 ? n : Math.sign(t) === Math.sign(r) ? Rt(n) : n;
|
|
652
|
+
}
|
|
653
|
+
function He(e) {
|
|
654
|
+
let n = 1 / 0, t = 1 / 0, r = -1 / 0, o = -1 / 0;
|
|
655
|
+
for (const i of e)
|
|
656
|
+
i.x < n && (n = i.x), i.y < t && (t = i.y), i.x > r && (r = i.x), i.y > o && (o = i.y);
|
|
657
|
+
return { minX: n, minY: t, maxX: r, maxY: o };
|
|
658
|
+
}
|
|
659
|
+
function vt(e, n) {
|
|
660
|
+
const t = He(e), r = He(n);
|
|
661
|
+
return t.minX <= r.maxX && t.maxX >= r.minX && t.minY <= r.maxY && t.maxY >= r.minY;
|
|
662
|
+
}
|
|
663
|
+
function Vo(e, n) {
|
|
664
|
+
return n.filter((t) => t.length >= 3 && vt(e, t)).map((t) => Ct(e, t));
|
|
665
|
+
}
|
|
666
|
+
const Wo = "#e8eef4", Zo = "#64748b", jo = "#475569";
|
|
667
|
+
function Et(e, n) {
|
|
668
|
+
return e.ordering - n.ordering || e.levelIndex - n.levelIndex;
|
|
669
|
+
}
|
|
670
|
+
function X(e) {
|
|
671
|
+
return e.kind === "outdoor";
|
|
672
|
+
}
|
|
673
|
+
function Lt(e, n) {
|
|
674
|
+
const t = e.filter(X), r = n == null ? null : e.find((o) => o.id === n) ?? null;
|
|
675
|
+
return !r || X(r) || t.some((o) => o.id === r.id) ? t : [...t, r];
|
|
676
|
+
}
|
|
677
|
+
function Nt(e, n) {
|
|
678
|
+
if (n == null) return [];
|
|
679
|
+
const t = me(e), r = t.findIndex((c) => c.id === n);
|
|
680
680
|
if (r < 0) return [];
|
|
681
681
|
const o = [];
|
|
682
|
-
let i =
|
|
683
|
-
for (let c = r; c <
|
|
684
|
-
const a =
|
|
682
|
+
let i = t[r];
|
|
683
|
+
for (let c = r; c < t.length - 1 && St(i); c++) {
|
|
684
|
+
const a = t[c + 1];
|
|
685
685
|
if (!a) break;
|
|
686
686
|
o.unshift(a), i = a;
|
|
687
687
|
}
|
|
688
688
|
return o;
|
|
689
689
|
}
|
|
690
|
-
function
|
|
691
|
-
return
|
|
690
|
+
function qo(e, n) {
|
|
691
|
+
return Nt(e, n).at(-1) ?? null;
|
|
692
692
|
}
|
|
693
|
-
function
|
|
694
|
-
const r =
|
|
695
|
-
if (!r || !X(r)) return
|
|
696
|
-
const o =
|
|
697
|
-
return o && !X(o) ? o.id :
|
|
693
|
+
function Qo(e, n, t) {
|
|
694
|
+
const r = e.find((i) => i.id === t);
|
|
695
|
+
if (!r || !X(r)) return t;
|
|
696
|
+
const o = n == null ? null : e.find((i) => i.id === n) ?? null;
|
|
697
|
+
return o && !X(o) ? o.id : wt(e) ?? t;
|
|
698
698
|
}
|
|
699
|
-
function
|
|
700
|
-
return
|
|
699
|
+
function me(e) {
|
|
700
|
+
return e.filter((n) => n.kind === "floor").slice().sort(Et);
|
|
701
701
|
}
|
|
702
|
-
function
|
|
703
|
-
return
|
|
702
|
+
function Jo(e) {
|
|
703
|
+
return me(e);
|
|
704
704
|
}
|
|
705
|
-
function
|
|
706
|
-
return
|
|
705
|
+
function ei(e) {
|
|
706
|
+
return me(e).length > 1;
|
|
707
707
|
}
|
|
708
|
-
function
|
|
709
|
-
return
|
|
708
|
+
function Tt(e) {
|
|
709
|
+
return e.some((n) => n.kind === "floor");
|
|
710
710
|
}
|
|
711
|
-
function
|
|
712
|
-
return
|
|
711
|
+
function Mt(e) {
|
|
712
|
+
return e.some(X);
|
|
713
713
|
}
|
|
714
|
-
const
|
|
715
|
-
function
|
|
716
|
-
var
|
|
717
|
-
return ((
|
|
714
|
+
const ni = "This map doesn’t have any floors yet.";
|
|
715
|
+
function wt(e) {
|
|
716
|
+
var n, t;
|
|
717
|
+
return ((n = me(e).at(-1)) == null ? void 0 : n.id) ?? ((t = e[0]) == null ? void 0 : t.id) ?? null;
|
|
718
718
|
}
|
|
719
|
-
function
|
|
719
|
+
function Ue(e) {
|
|
720
720
|
return {
|
|
721
|
-
minX:
|
|
722
|
-
minY:
|
|
723
|
-
maxX:
|
|
724
|
-
maxY:
|
|
725
|
-
cx:
|
|
726
|
-
cy:
|
|
727
|
-
size: Math.max(
|
|
721
|
+
minX: e.x,
|
|
722
|
+
minY: e.y,
|
|
723
|
+
maxX: e.x + e.width,
|
|
724
|
+
maxY: e.y + e.height,
|
|
725
|
+
cx: e.x + e.width / 2,
|
|
726
|
+
cy: e.y + e.height / 2,
|
|
727
|
+
size: Math.max(e.width, e.height, 100)
|
|
728
728
|
};
|
|
729
729
|
}
|
|
730
|
-
function
|
|
731
|
-
const
|
|
730
|
+
function Pt(e, n) {
|
|
731
|
+
const t = n.scale || 1, r = (n.rotate || 0) * Math.PI / 180, o = Math.cos(r), i = Math.sin(r), c = e.x * t, a = e.y * t;
|
|
732
732
|
return {
|
|
733
|
-
x: c * o - a * i + (
|
|
734
|
-
y: c * i + a * o + (
|
|
733
|
+
x: c * o - a * i + (n.translateX || 0),
|
|
734
|
+
y: c * i + a * o + (n.translateY || 0)
|
|
735
735
|
};
|
|
736
736
|
}
|
|
737
|
-
function
|
|
738
|
-
const
|
|
739
|
-
{ x:
|
|
740
|
-
{ x:
|
|
741
|
-
{ x:
|
|
742
|
-
{ x:
|
|
743
|
-
].map((a) =>
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
737
|
+
function Ft(e, n) {
|
|
738
|
+
const t = [
|
|
739
|
+
{ x: e.minX, y: e.minY },
|
|
740
|
+
{ x: e.maxX, y: e.minY },
|
|
741
|
+
{ x: e.minX, y: e.maxY },
|
|
742
|
+
{ x: e.maxX, y: e.maxY }
|
|
743
|
+
].map((a) => n ? Pt(a, n) : a), r = Math.min(
|
|
744
|
+
t[0].x,
|
|
745
|
+
t[1].x,
|
|
746
|
+
t[2].x,
|
|
747
|
+
t[3].x
|
|
748
748
|
), o = Math.min(
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
749
|
+
t[0].y,
|
|
750
|
+
t[1].y,
|
|
751
|
+
t[2].y,
|
|
752
|
+
t[3].y
|
|
753
753
|
), i = Math.max(
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
754
|
+
t[0].x,
|
|
755
|
+
t[1].x,
|
|
756
|
+
t[2].x,
|
|
757
|
+
t[3].x
|
|
758
758
|
), c = Math.max(
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
759
|
+
t[0].y,
|
|
760
|
+
t[1].y,
|
|
761
|
+
t[2].y,
|
|
762
|
+
t[3].y
|
|
763
763
|
);
|
|
764
764
|
return {
|
|
765
765
|
minX: r,
|
|
@@ -771,43 +771,43 @@ function Fn(t, e) {
|
|
|
771
771
|
size: Math.max(i - r, c - o, 100)
|
|
772
772
|
};
|
|
773
773
|
}
|
|
774
|
-
function
|
|
775
|
-
const
|
|
774
|
+
function Ve(e, n) {
|
|
775
|
+
const t = Math.min(e.minX, n.minX), r = Math.min(e.minY, n.minY), o = Math.max(e.maxX, n.maxX), i = Math.max(e.maxY, n.maxY);
|
|
776
776
|
return {
|
|
777
|
-
minX:
|
|
777
|
+
minX: t,
|
|
778
778
|
minY: r,
|
|
779
779
|
maxX: o,
|
|
780
780
|
maxY: i,
|
|
781
|
-
cx: (
|
|
781
|
+
cx: (t + o) / 2,
|
|
782
782
|
cy: (r + i) / 2,
|
|
783
|
-
size: Math.max(o -
|
|
783
|
+
size: Math.max(o - t, i - r, 100)
|
|
784
784
|
};
|
|
785
785
|
}
|
|
786
|
-
function ti(
|
|
787
|
-
let r =
|
|
788
|
-
for (const o of
|
|
786
|
+
function ti(e, n, t) {
|
|
787
|
+
let r = t ? Ue(t) : null;
|
|
788
|
+
for (const o of Lt(e, n)) {
|
|
789
789
|
if (o.viewbox) {
|
|
790
|
-
const i =
|
|
791
|
-
r = r ?
|
|
790
|
+
const i = Ue(o.viewbox);
|
|
791
|
+
r = r ? Ve(r, i) : i;
|
|
792
792
|
}
|
|
793
793
|
for (const i of o.shapes) {
|
|
794
|
-
const c =
|
|
795
|
-
r = r ?
|
|
794
|
+
const c = Ft(i.bbox);
|
|
795
|
+
r = r ? Ve(r, c) : c;
|
|
796
796
|
}
|
|
797
797
|
}
|
|
798
798
|
return r ?? { minX: 0, minY: 0, maxX: 500, maxY: 500, cx: 250, cy: 250, size: 500 };
|
|
799
799
|
}
|
|
800
|
-
function
|
|
801
|
-
if (!
|
|
802
|
-
if (!
|
|
803
|
-
if (!
|
|
804
|
-
const
|
|
805
|
-
return { x:
|
|
800
|
+
function ri(e, n) {
|
|
801
|
+
if (!e && !n) return { x: 0, y: 0, width: 1e3, height: 800 };
|
|
802
|
+
if (!e) return n;
|
|
803
|
+
if (!n) return e;
|
|
804
|
+
const t = Math.min(e.x, n.x), r = Math.min(e.y, n.y), o = Math.max(e.x + e.width, n.x + n.width), i = Math.max(e.y + e.height, n.y + n.height);
|
|
805
|
+
return { x: t, y: r, width: o - t, height: i - r };
|
|
806
806
|
}
|
|
807
|
-
function
|
|
808
|
-
return
|
|
807
|
+
function oi(e) {
|
|
808
|
+
return e === "PORTAL" ? "editor" : "viewer";
|
|
809
809
|
}
|
|
810
|
-
const
|
|
810
|
+
const ge = {
|
|
811
811
|
search: !1,
|
|
812
812
|
amenities: !1,
|
|
813
813
|
floors: !0,
|
|
@@ -817,67 +817,67 @@ const It = {
|
|
|
817
817
|
storeModal: !1,
|
|
818
818
|
sidebar: !1,
|
|
819
819
|
hoverTooltip: !1
|
|
820
|
-
},
|
|
820
|
+
}, Dt = {
|
|
821
821
|
/** v1 WP_SITE / MapBox HOST WEBSITE. */
|
|
822
|
-
WEBSITE: { ...
|
|
822
|
+
WEBSITE: { ...ge, sidebar: !0, hoverTooltip: !0 },
|
|
823
823
|
/** Assign mode: click shapes, no public directory chrome. */
|
|
824
|
-
PORTAL_ASSIGN:
|
|
824
|
+
PORTAL_ASSIGN: ge,
|
|
825
825
|
DISPLAY_APP: {
|
|
826
|
-
...
|
|
826
|
+
...ge,
|
|
827
827
|
kioskOrigin: !0,
|
|
828
828
|
hoverTooltip: !0
|
|
829
829
|
}
|
|
830
830
|
};
|
|
831
|
-
function
|
|
832
|
-
return
|
|
831
|
+
function xn(e) {
|
|
832
|
+
return Dt[e];
|
|
833
833
|
}
|
|
834
|
-
function
|
|
835
|
-
return
|
|
834
|
+
function ii(e) {
|
|
835
|
+
return e !== "WEBSITE";
|
|
836
836
|
}
|
|
837
|
-
function
|
|
838
|
-
return
|
|
837
|
+
function si(e) {
|
|
838
|
+
return e !== "PORTAL";
|
|
839
839
|
}
|
|
840
|
-
function
|
|
841
|
-
return
|
|
840
|
+
function Kt(e) {
|
|
841
|
+
return e === "WEBSITE" || e === "DISPLAY_APP";
|
|
842
842
|
}
|
|
843
|
-
function
|
|
844
|
-
return
|
|
843
|
+
function ci(e, n) {
|
|
844
|
+
return Tt(n) ? !0 : Kt(e) ? !1 : Mt(n);
|
|
845
845
|
}
|
|
846
|
-
function
|
|
847
|
-
for (const
|
|
848
|
-
const
|
|
849
|
-
if (
|
|
846
|
+
function We(...e) {
|
|
847
|
+
for (const n of e) {
|
|
848
|
+
const t = n == null ? void 0 : n.trim();
|
|
849
|
+
if (t) return t;
|
|
850
850
|
}
|
|
851
851
|
return null;
|
|
852
852
|
}
|
|
853
|
-
function
|
|
854
|
-
return
|
|
853
|
+
function ai(e) {
|
|
854
|
+
return xn(e).hoverTooltip;
|
|
855
855
|
}
|
|
856
|
-
function
|
|
856
|
+
function li(e, n = [], t = []) {
|
|
857
857
|
var r, o, i, c, a, s, f;
|
|
858
|
-
if (
|
|
859
|
-
const y = (r =
|
|
860
|
-
return
|
|
858
|
+
if (e.kind === "unit") {
|
|
859
|
+
const y = (r = e.assignment) == null ? void 0 : r.retailerId, l = y != null ? n.find((b) => b.id === y) : void 0;
|
|
860
|
+
return We(
|
|
861
861
|
l == null ? void 0 : l.name,
|
|
862
|
-
(o =
|
|
863
|
-
(i =
|
|
862
|
+
(o = e.assignment) == null ? void 0 : o.customLabel,
|
|
863
|
+
(i = e.label) == null ? void 0 : i.text
|
|
864
864
|
);
|
|
865
865
|
}
|
|
866
|
-
if (
|
|
867
|
-
const y = (c =
|
|
868
|
-
return
|
|
866
|
+
if (e.kind === "amenity") {
|
|
867
|
+
const y = (c = e.assignment) == null ? void 0 : c.amenityId, l = (s = (a = e.assignment) == null ? void 0 : a.customLabel) == null ? void 0 : s.trim(), b = y != null ? t.find((d) => d.id === y) : void 0, u = l ? t.find((d) => d.code === l) : void 0;
|
|
868
|
+
return We(b == null ? void 0 : b.name, u == null ? void 0 : u.name, l, (f = e.label) == null ? void 0 : f.text);
|
|
869
869
|
}
|
|
870
870
|
return null;
|
|
871
871
|
}
|
|
872
|
-
function
|
|
872
|
+
function Yt(e, n, t) {
|
|
873
873
|
var r;
|
|
874
|
-
return
|
|
874
|
+
return e === "DISPLAY_APP" && n != null && t.kind === "kiosk_screen" && !t.orphanedAt && ((r = t.assignment) == null ? void 0 : r.kioskId) === n;
|
|
875
875
|
}
|
|
876
|
-
function
|
|
876
|
+
function ui(e, n, t) {
|
|
877
877
|
var r;
|
|
878
|
-
for (const o of
|
|
878
|
+
for (const o of e.levels) {
|
|
879
879
|
const i = o.shapes.find(
|
|
880
|
-
(c) =>
|
|
880
|
+
(c) => Yt(n, t, c)
|
|
881
881
|
);
|
|
882
882
|
if (i)
|
|
883
883
|
return {
|
|
@@ -888,293 +888,293 @@ function ai(t, e, n) {
|
|
|
888
888
|
}
|
|
889
889
|
return null;
|
|
890
890
|
}
|
|
891
|
-
function
|
|
891
|
+
function fi(e) {
|
|
892
892
|
var o, i;
|
|
893
|
-
const
|
|
894
|
-
if (
|
|
893
|
+
const n = ((o = e.kioskOrigin) == null ? void 0 : o.anchorId) ?? null;
|
|
894
|
+
if (e.kind === "chrome")
|
|
895
895
|
return {
|
|
896
|
-
fromAnchorId:
|
|
896
|
+
fromAnchorId: n,
|
|
897
897
|
toAnchorId: null,
|
|
898
898
|
nextLevelId: null,
|
|
899
899
|
resetCamera: !0
|
|
900
900
|
};
|
|
901
|
-
const
|
|
901
|
+
const t = ((i = e.kioskOrigin) == null ? void 0 : i.levelId) ?? e.defaultLevelId, r = t != null && t !== e.activeLevelId;
|
|
902
902
|
return {
|
|
903
|
-
fromAnchorId:
|
|
903
|
+
fromAnchorId: n,
|
|
904
904
|
toAnchorId: null,
|
|
905
|
-
nextLevelId: r ?
|
|
905
|
+
nextLevelId: r ? t : null,
|
|
906
906
|
resetCamera: !r
|
|
907
907
|
};
|
|
908
908
|
}
|
|
909
|
-
function
|
|
910
|
-
const
|
|
911
|
-
for (const o of
|
|
909
|
+
function di(e, n) {
|
|
910
|
+
const t = /* @__PURE__ */ new Map();
|
|
911
|
+
for (const o of n) {
|
|
912
912
|
if (o.connectorId == null) continue;
|
|
913
|
-
let i =
|
|
914
|
-
i || (i = /* @__PURE__ */ new Set(),
|
|
913
|
+
let i = t.get(o.connectorId);
|
|
914
|
+
i || (i = /* @__PURE__ */ new Set(), t.set(o.connectorId, i)), i.add(o.levelId);
|
|
915
915
|
}
|
|
916
916
|
const r = {
|
|
917
917
|
escalator: !1,
|
|
918
918
|
elevator: !1
|
|
919
919
|
};
|
|
920
|
-
for (const o of
|
|
920
|
+
for (const o of e) {
|
|
921
921
|
if (o.kind !== "escalator" && o.kind !== "elevator") continue;
|
|
922
|
-
const i =
|
|
922
|
+
const i = t.get(o.id);
|
|
923
923
|
!i || i.size < 2 || (r[o.kind] = !0);
|
|
924
924
|
}
|
|
925
925
|
return r;
|
|
926
926
|
}
|
|
927
|
-
function
|
|
927
|
+
function hi(e, n) {
|
|
928
928
|
var r;
|
|
929
|
-
if (!
|
|
930
|
-
const
|
|
931
|
-
if (
|
|
932
|
-
for (const o of
|
|
933
|
-
if (o.anchors.some((i) => i.id ===
|
|
929
|
+
if (!e || n == null) return null;
|
|
930
|
+
const t = (r = e.graph) == null ? void 0 : r.nodes.find((o) => o.id === n);
|
|
931
|
+
if (t) return t.levelId;
|
|
932
|
+
for (const o of e.levels ?? [])
|
|
933
|
+
if (o.anchors.some((i) => i.id === n)) return o.id;
|
|
934
934
|
return null;
|
|
935
935
|
}
|
|
936
|
-
function
|
|
937
|
-
const { fromLevelId:
|
|
938
|
-
return
|
|
936
|
+
function yi(e) {
|
|
937
|
+
const { fromLevelId: n, toLevelId: t, availability: r } = e;
|
|
938
|
+
return n == null || t == null || n === t ? !1 : r.escalator && r.elevator;
|
|
939
939
|
}
|
|
940
|
-
function
|
|
941
|
-
return
|
|
940
|
+
function mi(e, n) {
|
|
941
|
+
return e.map((t) => ({ x: t.x, y: n - t.y }));
|
|
942
942
|
}
|
|
943
|
-
function
|
|
944
|
-
const
|
|
945
|
-
return Math.hypot(
|
|
943
|
+
function T(e, n) {
|
|
944
|
+
const t = e.x - n.x, r = e.y - n.y;
|
|
945
|
+
return Math.hypot(t, r);
|
|
946
946
|
}
|
|
947
|
-
function
|
|
948
|
-
if (
|
|
947
|
+
function Bt(e) {
|
|
948
|
+
if (e.length === 0)
|
|
949
949
|
return { minX: 0, minY: 0, maxX: 0, maxY: 0 };
|
|
950
|
-
let
|
|
951
|
-
for (let i = 1; i <
|
|
952
|
-
const c =
|
|
953
|
-
c.x <
|
|
950
|
+
let n = e[0].x, t = e[0].y, r = e[0].x, o = e[0].y;
|
|
951
|
+
for (let i = 1; i < e.length; i++) {
|
|
952
|
+
const c = e[i];
|
|
953
|
+
c.x < n && (n = c.x), c.y < t && (t = c.y), c.x > r && (r = c.x), c.y > o && (o = c.y);
|
|
954
954
|
}
|
|
955
|
-
return { minX:
|
|
955
|
+
return { minX: n, minY: t, maxX: r, maxY: o };
|
|
956
956
|
}
|
|
957
|
-
function
|
|
957
|
+
function pi(e, n) {
|
|
958
958
|
return {
|
|
959
|
-
minX: Math.min(
|
|
960
|
-
minY: Math.min(
|
|
961
|
-
maxX: Math.max(
|
|
962
|
-
maxY: Math.max(
|
|
959
|
+
minX: Math.min(e.minX, n.minX),
|
|
960
|
+
minY: Math.min(e.minY, n.minY),
|
|
961
|
+
maxX: Math.max(e.maxX, n.maxX),
|
|
962
|
+
maxY: Math.max(e.maxY, n.maxY)
|
|
963
963
|
};
|
|
964
964
|
}
|
|
965
|
-
function
|
|
966
|
-
if (
|
|
967
|
-
let
|
|
968
|
-
for (const r of
|
|
969
|
-
|
|
970
|
-
return { x:
|
|
971
|
-
}
|
|
972
|
-
function
|
|
973
|
-
let
|
|
974
|
-
for (let r = 0, o =
|
|
975
|
-
const i =
|
|
976
|
-
c >
|
|
965
|
+
function $t(e) {
|
|
966
|
+
if (e.length === 0) return { x: 0, y: 0 };
|
|
967
|
+
let n = 0, t = 0;
|
|
968
|
+
for (const r of e)
|
|
969
|
+
n += r.x, t += r.y;
|
|
970
|
+
return { x: n / e.length, y: t / e.length };
|
|
971
|
+
}
|
|
972
|
+
function zt(e, n) {
|
|
973
|
+
let t = !1;
|
|
974
|
+
for (let r = 0, o = n.length - 1; r < n.length; o = r++) {
|
|
975
|
+
const i = n[r].x, c = n[r].y, a = n[o].x, s = n[o].y;
|
|
976
|
+
c > e.y != s > e.y && e.x < (a - i) * (e.y - c) / (s - c + Number.EPSILON) + i && (t = !t);
|
|
977
977
|
}
|
|
978
|
-
return
|
|
978
|
+
return t;
|
|
979
979
|
}
|
|
980
|
-
function
|
|
981
|
-
return
|
|
980
|
+
function xi(e, n) {
|
|
981
|
+
return n.some((t) => zt(e, t));
|
|
982
982
|
}
|
|
983
|
-
function
|
|
984
|
-
const r =
|
|
983
|
+
function ue(e, n, t) {
|
|
984
|
+
const r = t.x - n.x, o = t.y - n.y, i = r * r + o * o;
|
|
985
985
|
if (i === 0)
|
|
986
|
-
return { point: { ...
|
|
987
|
-
let c = ((
|
|
986
|
+
return { point: { ...n }, t: 0, distance: T(e, n) };
|
|
987
|
+
let c = ((e.x - n.x) * r + (e.y - n.y) * o) / i;
|
|
988
988
|
c = Math.max(0, Math.min(1, c));
|
|
989
|
-
const a = { x:
|
|
990
|
-
return { point: a, t: c, distance:
|
|
991
|
-
}
|
|
992
|
-
function
|
|
993
|
-
if (
|
|
994
|
-
let
|
|
995
|
-
for (let r = 0; r <
|
|
996
|
-
const o =
|
|
997
|
-
(!
|
|
989
|
+
const a = { x: n.x + c * r, y: n.y + c * o };
|
|
990
|
+
return { point: a, t: c, distance: T(e, a) };
|
|
991
|
+
}
|
|
992
|
+
function bi(e, n) {
|
|
993
|
+
if (n.length < 2) return null;
|
|
994
|
+
let t = null;
|
|
995
|
+
for (let r = 0; r < n.length - 1; r++) {
|
|
996
|
+
const o = ue(e, n[r], n[r + 1]);
|
|
997
|
+
(!t || o.distance < t.distance) && (t = { point: o.point, segmentIndex: r, distance: o.distance });
|
|
998
998
|
}
|
|
999
|
-
return
|
|
999
|
+
return t;
|
|
1000
1000
|
}
|
|
1001
|
-
function
|
|
1001
|
+
function fe(e, n, t, r, o = 8) {
|
|
1002
1002
|
const i = [];
|
|
1003
1003
|
for (let c = 0; c <= o; c++) {
|
|
1004
1004
|
const a = c / o, s = 1 - a;
|
|
1005
1005
|
i.push({
|
|
1006
|
-
x: s * s * s *
|
|
1007
|
-
y: s * s * s *
|
|
1006
|
+
x: s * s * s * e.x + 3 * s * s * a * n.x + 3 * s * a * a * t.x + a * a * a * r.x,
|
|
1007
|
+
y: s * s * s * e.y + 3 * s * s * a * n.y + 3 * s * a * a * t.y + a * a * a * r.y
|
|
1008
1008
|
});
|
|
1009
1009
|
}
|
|
1010
1010
|
return i;
|
|
1011
1011
|
}
|
|
1012
|
-
function
|
|
1012
|
+
function Ze(e, n, t, r = 6) {
|
|
1013
1013
|
const o = [];
|
|
1014
1014
|
for (let i = 0; i <= r; i++) {
|
|
1015
1015
|
const c = i / r, a = 1 - c;
|
|
1016
1016
|
o.push({
|
|
1017
|
-
x: a * a *
|
|
1018
|
-
y: a * a *
|
|
1017
|
+
x: a * a * e.x + 2 * a * c * n.x + c * c * t.x,
|
|
1018
|
+
y: a * a * e.y + 2 * a * c * n.y + c * c * t.y
|
|
1019
1019
|
});
|
|
1020
1020
|
}
|
|
1021
1021
|
return o;
|
|
1022
1022
|
}
|
|
1023
|
-
const
|
|
1024
|
-
function
|
|
1025
|
-
if (
|
|
1026
|
-
let a = Math.abs(
|
|
1023
|
+
const Gt = 8;
|
|
1024
|
+
function Xt(e, n, t, r, o, i, c) {
|
|
1025
|
+
if (e.x === c.x && e.y === c.y) return [{ ...e }];
|
|
1026
|
+
let a = Math.abs(n), s = Math.abs(t);
|
|
1027
1027
|
if (a === 0 || s === 0 || !Number.isFinite(a) || !Number.isFinite(s))
|
|
1028
|
-
return [{ ...
|
|
1029
|
-
const f = r % 360 * Math.PI / 180, y = Math.cos(f), l = Math.sin(f), b = (
|
|
1028
|
+
return [{ ...e }, { ...c }];
|
|
1029
|
+
const f = r % 360 * Math.PI / 180, y = Math.cos(f), l = Math.sin(f), b = (e.x - c.x) / 2, u = (e.y - c.y) / 2, d = y * b + l * u, h = -l * b + y * u, m = d * d / (a * a) + h * h / (s * s);
|
|
1030
1030
|
if (m > 1) {
|
|
1031
|
-
const
|
|
1032
|
-
a *=
|
|
1031
|
+
const F = Math.sqrt(m);
|
|
1032
|
+
a *= F, s *= F;
|
|
1033
1033
|
}
|
|
1034
|
-
const
|
|
1035
|
-
let R = Math.atan2(
|
|
1034
|
+
const p = a * a, I = s * s, k = p * I - p * h * h - I * d * d, x = p * h * h + I * d * d, g = Math.sqrt(Math.max(0, k / x)) * (o === i ? -1 : 1), _ = g * a * h / s, A = -g * s * d / a, S = y * _ - l * A + (e.x + c.x) / 2, C = l * _ + y * A + (e.y + c.y) / 2, Y = (d - _) / a, v = (h - A) / s, z = (-d - _) / a, L = (-h - A) / s, B = Math.atan2(v, Y);
|
|
1035
|
+
let R = Math.atan2(Y * L - v * z, Y * z + v * L);
|
|
1036
1036
|
!i && R > 0 ? R -= 2 * Math.PI : i && R < 0 && (R += 2 * Math.PI);
|
|
1037
|
-
const
|
|
1038
|
-
for (let
|
|
1039
|
-
const
|
|
1040
|
-
|
|
1041
|
-
x: S + a * y *
|
|
1042
|
-
y:
|
|
1037
|
+
const E = Math.abs(R) / (Math.PI / 2) * Gt, w = Math.max(1, Math.round(E)), P = [{ ...e }];
|
|
1038
|
+
for (let F = 1; F <= w; F++) {
|
|
1039
|
+
const Z = B + R * F / w, ee = Math.cos(Z), ne = Math.sin(Z);
|
|
1040
|
+
P.push({
|
|
1041
|
+
x: S + a * y * ee - s * l * ne,
|
|
1042
|
+
y: C + a * l * ee + s * y * ne
|
|
1043
1043
|
});
|
|
1044
1044
|
}
|
|
1045
|
-
return
|
|
1046
|
-
}
|
|
1047
|
-
const
|
|
1048
|
-
function
|
|
1049
|
-
const
|
|
1050
|
-
let
|
|
1051
|
-
for (;
|
|
1052
|
-
const i = t
|
|
1053
|
-
if (
|
|
1054
|
-
|
|
1045
|
+
return P[P.length - 1] = { ...c }, P;
|
|
1046
|
+
}
|
|
1047
|
+
const Ht = /[\s,]/;
|
|
1048
|
+
function bn(e) {
|
|
1049
|
+
const n = [];
|
|
1050
|
+
let t = 0, r = "", o = 0;
|
|
1051
|
+
for (; t < e.length; ) {
|
|
1052
|
+
const i = e[t];
|
|
1053
|
+
if (Ht.test(i)) {
|
|
1054
|
+
t++;
|
|
1055
1055
|
continue;
|
|
1056
1056
|
}
|
|
1057
1057
|
if (i >= "a" && i <= "z" || i >= "A" && i <= "Z") {
|
|
1058
|
-
r = i, o = 0,
|
|
1058
|
+
r = i, o = 0, n.push(i), t++;
|
|
1059
1059
|
continue;
|
|
1060
1060
|
}
|
|
1061
1061
|
const c = r === "A" || r === "a" ? o % 7 : -1;
|
|
1062
1062
|
if ((c === 3 || c === 4) && (i === "0" || i === "1")) {
|
|
1063
|
-
|
|
1063
|
+
n.push(i), t++, o++;
|
|
1064
1064
|
continue;
|
|
1065
1065
|
}
|
|
1066
|
-
const a =
|
|
1066
|
+
const a = t;
|
|
1067
1067
|
let s = 0;
|
|
1068
|
-
for ((i === "+" || i === "-") &&
|
|
1069
|
-
|
|
1070
|
-
if (t
|
|
1071
|
-
for (
|
|
1072
|
-
|
|
1073
|
-
if (s > 0 && (t
|
|
1074
|
-
const f =
|
|
1075
|
-
if (
|
|
1076
|
-
for (;
|
|
1068
|
+
for ((i === "+" || i === "-") && t++; t < e.length && e[t] >= "0" && e[t] <= "9"; )
|
|
1069
|
+
t++, s++;
|
|
1070
|
+
if (e[t] === ".")
|
|
1071
|
+
for (t++; t < e.length && e[t] >= "0" && e[t] <= "9"; )
|
|
1072
|
+
t++, s++;
|
|
1073
|
+
if (s > 0 && (e[t] === "e" || e[t] === "E")) {
|
|
1074
|
+
const f = t;
|
|
1075
|
+
if (t++, (e[t] === "+" || e[t] === "-") && t++, t < e.length && e[t] >= "0" && e[t] <= "9")
|
|
1076
|
+
for (; t < e.length && e[t] >= "0" && e[t] <= "9"; ) t++;
|
|
1077
1077
|
else
|
|
1078
|
-
|
|
1078
|
+
t = f;
|
|
1079
1079
|
}
|
|
1080
1080
|
if (s === 0) {
|
|
1081
|
-
|
|
1081
|
+
t = a + 1;
|
|
1082
1082
|
continue;
|
|
1083
1083
|
}
|
|
1084
|
-
|
|
1084
|
+
n.push(e.slice(a, t)), o++;
|
|
1085
1085
|
}
|
|
1086
|
-
return
|
|
1086
|
+
return n;
|
|
1087
1087
|
}
|
|
1088
|
-
function
|
|
1089
|
-
const
|
|
1088
|
+
function In(e) {
|
|
1089
|
+
const n = bn(e), t = [];
|
|
1090
1090
|
let r = [], o = 0, i = 0, c = 0, a = 0, s = null, f = 0, y = "";
|
|
1091
|
-
const l = () => Number(
|
|
1092
|
-
for (; f <
|
|
1093
|
-
const b =
|
|
1091
|
+
const l = () => Number(n[f++]);
|
|
1092
|
+
for (; f < n.length; ) {
|
|
1093
|
+
const b = n[f];
|
|
1094
1094
|
switch (/[a-zA-Z]/.test(b) && (y = b, f++), y) {
|
|
1095
1095
|
case "M":
|
|
1096
1096
|
case "m": {
|
|
1097
|
-
const u = y === "m",
|
|
1098
|
-
o = u ? o +
|
|
1097
|
+
const u = y === "m", d = l(), h = l();
|
|
1098
|
+
o = u ? o + d : d, i = u ? i + h : h, r.length > 0 && t.push(r), r = [{ x: o, y: i }], c = o, a = i, s = null, y = u ? "l" : "L";
|
|
1099
1099
|
break;
|
|
1100
1100
|
}
|
|
1101
1101
|
case "L":
|
|
1102
1102
|
case "l": {
|
|
1103
|
-
const u = y === "l",
|
|
1104
|
-
o = u ? o +
|
|
1103
|
+
const u = y === "l", d = l(), h = l();
|
|
1104
|
+
o = u ? o + d : d, i = u ? i + h : h, r.push({ x: o, y: i }), s = null;
|
|
1105
1105
|
break;
|
|
1106
1106
|
}
|
|
1107
1107
|
case "H":
|
|
1108
1108
|
case "h": {
|
|
1109
|
-
const u = y === "h",
|
|
1110
|
-
o = u ? o +
|
|
1109
|
+
const u = y === "h", d = l();
|
|
1110
|
+
o = u ? o + d : d, r.push({ x: o, y: i }), s = null;
|
|
1111
1111
|
break;
|
|
1112
1112
|
}
|
|
1113
1113
|
case "V":
|
|
1114
1114
|
case "v": {
|
|
1115
|
-
const u = y === "v",
|
|
1116
|
-
i = u ? i +
|
|
1115
|
+
const u = y === "v", d = l();
|
|
1116
|
+
i = u ? i + d : d, r.push({ x: o, y: i }), s = null;
|
|
1117
1117
|
break;
|
|
1118
1118
|
}
|
|
1119
1119
|
case "C":
|
|
1120
1120
|
case "c": {
|
|
1121
|
-
const u = y === "c",
|
|
1121
|
+
const u = y === "c", d = u ? o + l() : l(), h = u ? i + l() : l(), m = u ? o + l() : l(), p = u ? i + l() : l(), I = u ? o + l() : l(), k = u ? i + l() : l(), x = fe(
|
|
1122
1122
|
{ x: o, y: i },
|
|
1123
|
-
{ x:
|
|
1124
|
-
{ x: m, y:
|
|
1125
|
-
{ x: I, y:
|
|
1123
|
+
{ x: d, y: h },
|
|
1124
|
+
{ x: m, y: p },
|
|
1125
|
+
{ x: I, y: k }
|
|
1126
1126
|
);
|
|
1127
|
-
r.push(...
|
|
1127
|
+
r.push(...x.slice(1)), s = { x: m, y: p }, o = I, i = k;
|
|
1128
1128
|
break;
|
|
1129
1129
|
}
|
|
1130
1130
|
case "Q":
|
|
1131
1131
|
case "q": {
|
|
1132
|
-
const u = y === "q",
|
|
1132
|
+
const u = y === "q", d = u ? o + l() : l(), h = u ? i + l() : l(), m = u ? o + l() : l(), p = u ? i + l() : l(), I = Ze(
|
|
1133
1133
|
{ x: o, y: i },
|
|
1134
|
-
{ x:
|
|
1135
|
-
{ x: m, y:
|
|
1134
|
+
{ x: d, y: h },
|
|
1135
|
+
{ x: m, y: p }
|
|
1136
1136
|
);
|
|
1137
|
-
r.push(...I.slice(1)), s = { x:
|
|
1137
|
+
r.push(...I.slice(1)), s = { x: d, y: h }, o = m, i = p;
|
|
1138
1138
|
break;
|
|
1139
1139
|
}
|
|
1140
1140
|
case "S":
|
|
1141
1141
|
case "s": {
|
|
1142
|
-
const u = y === "s",
|
|
1142
|
+
const u = y === "s", d = s ? 2 * o - s.x : o, h = s ? 2 * i - s.y : i, m = u ? o + l() : l(), p = u ? i + l() : l(), I = u ? o + l() : l(), k = u ? i + l() : l(), x = fe(
|
|
1143
1143
|
{ x: o, y: i },
|
|
1144
|
-
{ x:
|
|
1145
|
-
{ x: m, y:
|
|
1146
|
-
{ x: I, y:
|
|
1144
|
+
{ x: d, y: h },
|
|
1145
|
+
{ x: m, y: p },
|
|
1146
|
+
{ x: I, y: k }
|
|
1147
1147
|
);
|
|
1148
|
-
r.push(...
|
|
1148
|
+
r.push(...x.slice(1)), s = { x: m, y: p }, o = I, i = k;
|
|
1149
1149
|
break;
|
|
1150
1150
|
}
|
|
1151
1151
|
case "T":
|
|
1152
1152
|
case "t": {
|
|
1153
|
-
const u = y === "t",
|
|
1153
|
+
const u = y === "t", d = s ? 2 * o - s.x : o, h = s ? 2 * i - s.y : i, m = u ? o + l() : l(), p = u ? i + l() : l(), I = Ze(
|
|
1154
1154
|
{ x: o, y: i },
|
|
1155
|
-
{ x:
|
|
1156
|
-
{ x: m, y:
|
|
1155
|
+
{ x: d, y: h },
|
|
1156
|
+
{ x: m, y: p }
|
|
1157
1157
|
);
|
|
1158
|
-
r.push(...I.slice(1)), s = { x:
|
|
1158
|
+
r.push(...I.slice(1)), s = { x: d, y: h }, o = m, i = p;
|
|
1159
1159
|
break;
|
|
1160
1160
|
}
|
|
1161
1161
|
case "A":
|
|
1162
1162
|
case "a": {
|
|
1163
|
-
const u = y === "a",
|
|
1163
|
+
const u = y === "a", d = l(), h = l(), m = l(), p = l() !== 0, I = l() !== 0, k = u ? o + l() : l(), x = u ? i + l() : l(), g = Xt(
|
|
1164
1164
|
{ x: o, y: i },
|
|
1165
|
-
h,
|
|
1166
1165
|
d,
|
|
1166
|
+
h,
|
|
1167
1167
|
m,
|
|
1168
|
-
|
|
1168
|
+
p,
|
|
1169
1169
|
I,
|
|
1170
|
-
{ x:
|
|
1170
|
+
{ x: k, y: x }
|
|
1171
1171
|
);
|
|
1172
|
-
r.push(...
|
|
1172
|
+
r.push(...g.slice(1)), s = null, o = k, i = x;
|
|
1173
1173
|
break;
|
|
1174
1174
|
}
|
|
1175
1175
|
case "Z":
|
|
1176
1176
|
case "z": {
|
|
1177
|
-
r.push({ x: c, y: a }),
|
|
1177
|
+
r.push({ x: c, y: a }), t.push(r), r = [], o = c, i = a, s = null;
|
|
1178
1178
|
break;
|
|
1179
1179
|
}
|
|
1180
1180
|
default:
|
|
@@ -1182,124 +1182,124 @@ function be(t) {
|
|
|
1182
1182
|
break;
|
|
1183
1183
|
}
|
|
1184
1184
|
}
|
|
1185
|
-
return r.length > 0 &&
|
|
1185
|
+
return r.length > 0 && t.push(r), t;
|
|
1186
1186
|
}
|
|
1187
|
-
function
|
|
1188
|
-
const
|
|
1187
|
+
function Ut(e) {
|
|
1188
|
+
const n = e.match(
|
|
1189
1189
|
/^\s*M\s*(-?\d*\.?\d+(?:e[-+]?\d+)?)[\s,]+(-?\d*\.?\d+(?:e[-+]?\d+)?)/i
|
|
1190
1190
|
);
|
|
1191
|
-
if (!
|
|
1192
|
-
const
|
|
1193
|
-
return Number.isFinite(
|
|
1191
|
+
if (!n) return null;
|
|
1192
|
+
const t = Number(n[1]), r = Number(n[2]);
|
|
1193
|
+
return Number.isFinite(t) && Number.isFinite(r) ? { x: t, y: r } : null;
|
|
1194
1194
|
}
|
|
1195
|
-
function
|
|
1195
|
+
function Vt(e) {
|
|
1196
1196
|
var o, i;
|
|
1197
|
-
const
|
|
1198
|
-
if (!
|
|
1199
|
-
const
|
|
1200
|
-
return !
|
|
1201
|
-
}
|
|
1202
|
-
function
|
|
1203
|
-
if (!
|
|
1204
|
-
const
|
|
1205
|
-
return
|
|
1206
|
-
}
|
|
1207
|
-
function
|
|
1208
|
-
const
|
|
1197
|
+
const n = (o = e.paths[0]) == null ? void 0 : o.d;
|
|
1198
|
+
if (!n || e.polygons.length === 0) return !1;
|
|
1199
|
+
const t = Ut(n), r = (i = e.polygons[0]) == null ? void 0 : i[0];
|
|
1200
|
+
return !t || !r ? !1 : Math.abs(t.x - r.x) > 0.01 || Math.abs(t.y - r.y) > 0.01;
|
|
1201
|
+
}
|
|
1202
|
+
function gn(e) {
|
|
1203
|
+
if (!Vt(e)) return e;
|
|
1204
|
+
const n = e.paths.flatMap((t) => In(t.d));
|
|
1205
|
+
return n.length === 0 ? e : { paths: e.paths, polygons: n };
|
|
1206
|
+
}
|
|
1207
|
+
function Wt(e) {
|
|
1208
|
+
const n = e.map((r) => ({
|
|
1209
1209
|
d: r,
|
|
1210
1210
|
closed: /z/i.test(r)
|
|
1211
|
-
})),
|
|
1212
|
-
return { paths:
|
|
1211
|
+
})), t = e.flatMap((r) => In(r));
|
|
1212
|
+
return { paths: n, polygons: t };
|
|
1213
1213
|
}
|
|
1214
|
-
function
|
|
1215
|
-
const
|
|
1216
|
-
return
|
|
1214
|
+
function we(e) {
|
|
1215
|
+
const n = e.polygons.flat();
|
|
1216
|
+
return Bt(n);
|
|
1217
1217
|
}
|
|
1218
|
-
function
|
|
1219
|
-
return
|
|
1218
|
+
function Zt(e) {
|
|
1219
|
+
return $t(e.polygons.flat());
|
|
1220
1220
|
}
|
|
1221
|
-
function
|
|
1222
|
-
const o =
|
|
1223
|
-
if (c === 0) return { ...
|
|
1224
|
-
const s = Math.atan2(i, o) * 180 / Math.PI -
|
|
1221
|
+
function Ii(e, n, t = 0, r = [15, 45, 90]) {
|
|
1222
|
+
const o = n.x - e.x, i = n.y - e.y, c = Math.hypot(o, i);
|
|
1223
|
+
if (c === 0) return { ...n };
|
|
1224
|
+
const s = Math.atan2(i, o) * 180 / Math.PI - t;
|
|
1225
1225
|
let f = s, y = 1 / 0;
|
|
1226
1226
|
for (const b of r) {
|
|
1227
|
-
const u = Math.round(s / b) * b,
|
|
1228
|
-
|
|
1227
|
+
const u = Math.round(s / b) * b, d = Math.abs(s - u);
|
|
1228
|
+
d < y && (y = d, f = u);
|
|
1229
1229
|
}
|
|
1230
|
-
const l = (f +
|
|
1230
|
+
const l = (f + t) * Math.PI / 180;
|
|
1231
1231
|
return {
|
|
1232
|
-
x:
|
|
1233
|
-
y:
|
|
1232
|
+
x: e.x + Math.cos(l) * c,
|
|
1233
|
+
y: e.y + Math.sin(l) * c
|
|
1234
1234
|
};
|
|
1235
1235
|
}
|
|
1236
|
-
function
|
|
1237
|
-
return Math.atan2(
|
|
1236
|
+
function gi(e, n) {
|
|
1237
|
+
return Math.atan2(n.y - e.y, n.x - e.x) * 180 / Math.PI;
|
|
1238
1238
|
}
|
|
1239
|
-
function
|
|
1240
|
-
if (!
|
|
1241
|
-
const
|
|
1242
|
-
return
|
|
1239
|
+
function jt(e) {
|
|
1240
|
+
if (!e) return null;
|
|
1241
|
+
const n = e.trim().split(/[\s,]+/).map(Number);
|
|
1242
|
+
return n.length !== 4 || n.some((t) => Number.isNaN(t)) ? null : { x: n[0], y: n[1], width: n[2], height: n[3] };
|
|
1243
1243
|
}
|
|
1244
|
-
function
|
|
1245
|
-
return { x:
|
|
1244
|
+
function G(e, n, t) {
|
|
1245
|
+
return { x: e.x + (n.x - e.x) * t, y: e.y + (n.y - e.y) * t };
|
|
1246
1246
|
}
|
|
1247
|
-
function
|
|
1248
|
-
return { x:
|
|
1247
|
+
function te(e, n) {
|
|
1248
|
+
return { x: e.x + n.x, y: e.y + n.y };
|
|
1249
1249
|
}
|
|
1250
|
-
function
|
|
1251
|
-
return { x:
|
|
1250
|
+
function je(e, n) {
|
|
1251
|
+
return { x: e.x - n.x, y: e.y - n.y };
|
|
1252
1252
|
}
|
|
1253
|
-
function
|
|
1254
|
-
return { x:
|
|
1253
|
+
function _e(e, n) {
|
|
1254
|
+
return { x: e.x * n, y: e.y * n };
|
|
1255
1255
|
}
|
|
1256
|
-
function
|
|
1257
|
-
const
|
|
1258
|
-
if (!(
|
|
1259
|
-
const
|
|
1260
|
-
return [
|
|
1261
|
-
c1: { x:
|
|
1256
|
+
function Q(e) {
|
|
1257
|
+
const n = e == null ? void 0 : e.curve;
|
|
1258
|
+
if (!(n != null && n.c1) || !(n != null && n.c2)) return null;
|
|
1259
|
+
const t = Number(n.c1.x), r = Number(n.c1.y), o = Number(n.c2.x), i = Number(n.c2.y);
|
|
1260
|
+
return [t, r, o, i].every((c) => Number.isFinite(c)) ? {
|
|
1261
|
+
c1: { x: t, y: r },
|
|
1262
1262
|
c2: { x: o, y: i }
|
|
1263
1263
|
} : null;
|
|
1264
1264
|
}
|
|
1265
|
-
function
|
|
1266
|
-
const
|
|
1267
|
-
return
|
|
1265
|
+
function _i(e) {
|
|
1266
|
+
const n = Q(e);
|
|
1267
|
+
return n || ([e == null ? void 0 : e.c1_x, e == null ? void 0 : e.c1_y, e == null ? void 0 : e.c2_x, e == null ? void 0 : e.c2_y].some(
|
|
1268
1268
|
(r) => r == null || !Number.isFinite(Number(r))
|
|
1269
1269
|
) ? null : {
|
|
1270
|
-
c1: { x: Number(
|
|
1271
|
-
c2: { x: Number(
|
|
1270
|
+
c1: { x: Number(e.c1_x), y: Number(e.c1_y) },
|
|
1271
|
+
c2: { x: Number(e.c2_x), y: Number(e.c2_y) }
|
|
1272
1272
|
});
|
|
1273
1273
|
}
|
|
1274
|
-
function
|
|
1274
|
+
function qt(e) {
|
|
1275
1275
|
return {
|
|
1276
|
-
c1: { x:
|
|
1277
|
-
c2: { x:
|
|
1276
|
+
c1: { x: e.c2.x, y: e.c2.y },
|
|
1277
|
+
c2: { x: e.c1.x, y: e.c1.y }
|
|
1278
1278
|
};
|
|
1279
1279
|
}
|
|
1280
|
-
function
|
|
1281
|
-
const r =
|
|
1280
|
+
function ki(e, n, t) {
|
|
1281
|
+
const r = G(e, n, 0.5), o = _e(je(t, r), 4 / 3), i = je(n, e);
|
|
1282
1282
|
return {
|
|
1283
|
-
c1:
|
|
1284
|
-
c2:
|
|
1283
|
+
c1: te(te(e, _e(i, 1 / 3)), o),
|
|
1284
|
+
c2: te(te(e, _e(i, 2 / 3)), o)
|
|
1285
1285
|
};
|
|
1286
1286
|
}
|
|
1287
|
-
function
|
|
1288
|
-
return
|
|
1287
|
+
function Oi(e, n, t) {
|
|
1288
|
+
return n === 1 ? { ...e, c1: { x: t.x, y: t.y } } : { ...e, c2: { x: t.x, y: t.y } };
|
|
1289
1289
|
}
|
|
1290
|
-
function
|
|
1291
|
-
const r =
|
|
1290
|
+
function Ai(e, n, t) {
|
|
1291
|
+
const r = Q(e);
|
|
1292
1292
|
if (!r) return null;
|
|
1293
|
-
const o =
|
|
1293
|
+
const o = e.fromAnchorId === n, i = e.toAnchorId === n;
|
|
1294
1294
|
return !o && !i ? null : {
|
|
1295
|
-
c1: o ? { x: r.c1.x +
|
|
1296
|
-
c2: i ? { x: r.c2.x +
|
|
1295
|
+
c1: o ? { x: r.c1.x + t.x, y: r.c1.y + t.y } : { x: r.c1.x, y: r.c1.y },
|
|
1296
|
+
c2: i ? { x: r.c2.x + t.x, y: r.c2.y + t.y } : { x: r.c2.x, y: r.c2.y }
|
|
1297
1297
|
};
|
|
1298
1298
|
}
|
|
1299
|
-
function
|
|
1300
|
-
const r =
|
|
1299
|
+
function Si(e, n, t) {
|
|
1300
|
+
const r = Q(e);
|
|
1301
1301
|
if (!r) return null;
|
|
1302
|
-
const o =
|
|
1302
|
+
const o = n.get(e.fromAnchorId), i = n.get(e.toAnchorId), c = t.get(e.fromAnchorId), a = t.get(e.toAnchorId);
|
|
1303
1303
|
return !o || !i || !c || !a ? r : {
|
|
1304
1304
|
c1: {
|
|
1305
1305
|
x: r.c1.x + c.x - o.x,
|
|
@@ -1311,27 +1311,27 @@ function ki(t, e, n) {
|
|
|
1311
1311
|
}
|
|
1312
1312
|
};
|
|
1313
1313
|
}
|
|
1314
|
-
function
|
|
1315
|
-
return
|
|
1314
|
+
function Ri(e, n, t) {
|
|
1315
|
+
return t ? `M ${e.x} ${e.y} C ${t.c1.x} ${t.c1.y} ${t.c2.x} ${t.c2.y} ${n.x} ${n.y}` : `M ${e.x} ${e.y} L ${n.x} ${n.y}`;
|
|
1316
1316
|
}
|
|
1317
|
-
function
|
|
1318
|
-
if (!
|
|
1319
|
-
const r =
|
|
1317
|
+
function _n(e, n, t) {
|
|
1318
|
+
if (!t) return T(e, n);
|
|
1319
|
+
const r = fe(e, t.c1, t.c2, n, 16);
|
|
1320
1320
|
let o = 0;
|
|
1321
1321
|
for (let i = 1; i < r.length; i += 1)
|
|
1322
|
-
o +=
|
|
1322
|
+
o += T(r[i - 1], r[i]);
|
|
1323
1323
|
return o;
|
|
1324
1324
|
}
|
|
1325
|
-
function
|
|
1326
|
-
if (!r) return
|
|
1327
|
-
const o =
|
|
1325
|
+
function Qt(e, n, t, r) {
|
|
1326
|
+
if (!r) return ue(e, n, t);
|
|
1327
|
+
const o = fe(n, r.c1, r.c2, t, 24), i = Math.max(o.length - 1, 1);
|
|
1328
1328
|
let c = {
|
|
1329
|
-
point: { x:
|
|
1329
|
+
point: { x: n.x, y: n.y },
|
|
1330
1330
|
t: 0,
|
|
1331
|
-
distance:
|
|
1331
|
+
distance: T(e, n)
|
|
1332
1332
|
};
|
|
1333
1333
|
for (let a = 1; a < o.length; a += 1) {
|
|
1334
|
-
const s =
|
|
1334
|
+
const s = ue(e, o[a - 1], o[a]);
|
|
1335
1335
|
s.distance < c.distance && (c = {
|
|
1336
1336
|
point: s.point,
|
|
1337
1337
|
t: (a - 1 + s.t) / i,
|
|
@@ -1340,32 +1340,32 @@ function Qn(t, e, n, r) {
|
|
|
1340
1340
|
}
|
|
1341
1341
|
return c;
|
|
1342
1342
|
}
|
|
1343
|
-
function
|
|
1344
|
-
const i =
|
|
1343
|
+
function Jt(e, n, t, r, o) {
|
|
1344
|
+
const i = G(e, n, o), c = G(n, t, o), a = G(t, r, o), s = G(i, c, o), f = G(c, a, o), y = G(s, f, o);
|
|
1345
1345
|
return {
|
|
1346
1346
|
left: { c1: i, c2: s },
|
|
1347
1347
|
right: { c1: f, c2: a },
|
|
1348
1348
|
point: y
|
|
1349
1349
|
};
|
|
1350
1350
|
}
|
|
1351
|
-
function
|
|
1352
|
-
if (!
|
|
1353
|
-
return { point:
|
|
1354
|
-
const o =
|
|
1351
|
+
function Ci(e, n, t, r) {
|
|
1352
|
+
if (!t)
|
|
1353
|
+
return { point: ue(r, e, n).point, left: null, right: null };
|
|
1354
|
+
const o = Qt(r, e, n, t), i = Math.min(1, Math.max(0, o.t)), c = Jt(e, t.c1, t.c2, n, i);
|
|
1355
1355
|
return { point: c.point, left: c.left, right: c.right };
|
|
1356
1356
|
}
|
|
1357
|
-
function
|
|
1358
|
-
const r =
|
|
1359
|
-
return r == null ? void 0 :
|
|
1357
|
+
function er(e, n, t) {
|
|
1358
|
+
const r = e.connectorId ?? n.connectorId;
|
|
1359
|
+
return r == null ? void 0 : t.get(r);
|
|
1360
1360
|
}
|
|
1361
|
-
function
|
|
1361
|
+
function nr(e, n, t, r) {
|
|
1362
1362
|
var o;
|
|
1363
|
-
return
|
|
1364
|
-
(o =
|
|
1363
|
+
return n.levelId === t.levelId ? !0 : e.kind !== "connector" ? !1 : Gn(
|
|
1364
|
+
(o = er(n, t, r)) == null ? void 0 : o.kind
|
|
1365
1365
|
);
|
|
1366
1366
|
}
|
|
1367
|
-
function
|
|
1368
|
-
const r =
|
|
1367
|
+
function tr(e, n, t = []) {
|
|
1368
|
+
const r = Ln(), o = new Map(e.map((f) => [f.id, f])), i = new Map(t.map((f) => [f.id, f])), c = e.map((f) => ({
|
|
1369
1369
|
id: f.id,
|
|
1370
1370
|
levelId: f.levelId,
|
|
1371
1371
|
x: f.x,
|
|
@@ -1377,235 +1377,235 @@ function nr(t, e, n = []) {
|
|
|
1377
1377
|
for (const f of c)
|
|
1378
1378
|
r.addNode(f.id, f);
|
|
1379
1379
|
const a = [];
|
|
1380
|
-
for (const f of
|
|
1380
|
+
for (const f of n) {
|
|
1381
1381
|
const y = o.get(f.fromAnchorId), l = o.get(f.toAnchorId);
|
|
1382
|
-
if (!y || !l || !
|
|
1383
|
-
const b =
|
|
1382
|
+
if (!y || !l || !nr(f, y, l, i)) continue;
|
|
1383
|
+
const b = Q(f);
|
|
1384
1384
|
let u = f.weight;
|
|
1385
|
-
u == null && (u =
|
|
1386
|
-
let
|
|
1385
|
+
u == null && (u = _n(y, l, b), y.levelId !== l.levelId && (u += ve));
|
|
1386
|
+
let d = f.accessible;
|
|
1387
1387
|
if (f.kind === "connector" && y.connectorId != null) {
|
|
1388
1388
|
const m = i.get(y.connectorId);
|
|
1389
|
-
m && (
|
|
1389
|
+
m && (d = m.accessible);
|
|
1390
1390
|
}
|
|
1391
|
-
const
|
|
1391
|
+
const h = {
|
|
1392
1392
|
id: f.id,
|
|
1393
1393
|
from: f.fromAnchorId,
|
|
1394
1394
|
to: f.toAnchorId,
|
|
1395
1395
|
weight: u,
|
|
1396
1396
|
directed: f.directed,
|
|
1397
|
-
accessible:
|
|
1397
|
+
accessible: d,
|
|
1398
1398
|
kind: f.kind,
|
|
1399
1399
|
curve: b
|
|
1400
1400
|
};
|
|
1401
|
-
a.push(
|
|
1401
|
+
a.push(h), r.addLink(f.fromAnchorId, f.toAnchorId, h), f.directed || r.addLink(f.toAnchorId, f.fromAnchorId, h);
|
|
1402
1402
|
}
|
|
1403
|
-
const s = new Map(
|
|
1403
|
+
const s = new Map(t.map((f) => [f.id, f.kind]));
|
|
1404
1404
|
return { graph: r, nodes: c, edges: a, anchorById: o, connectorKindById: s };
|
|
1405
1405
|
}
|
|
1406
|
-
function rr(
|
|
1407
|
-
const o =
|
|
1406
|
+
function rr(e, n, t, r) {
|
|
1407
|
+
const o = e.anchorById.get(n), i = e.anchorById.get(t);
|
|
1408
1408
|
if (!o || !i || o.levelId === i.levelId) return !1;
|
|
1409
1409
|
const c = o.connectorId ?? i.connectorId;
|
|
1410
|
-
return c == null ? !0 :
|
|
1410
|
+
return c == null ? !0 : e.connectorKindById.get(c) !== r;
|
|
1411
1411
|
}
|
|
1412
|
-
function or(
|
|
1413
|
-
const { graph: o, anchorById: i } =
|
|
1414
|
-
if (!i.has(
|
|
1412
|
+
function or(e, n, t, r = {}) {
|
|
1413
|
+
const { graph: o, anchorById: i } = e;
|
|
1414
|
+
if (!i.has(n) || !i.has(t))
|
|
1415
1415
|
return null;
|
|
1416
|
-
const a =
|
|
1416
|
+
const a = Nn.nba(o, {
|
|
1417
1417
|
oriented: !0,
|
|
1418
|
-
distance(
|
|
1419
|
-
const
|
|
1418
|
+
distance(d, h, m) {
|
|
1419
|
+
const p = m.data;
|
|
1420
1420
|
return r.verticalTransport && rr(
|
|
1421
|
-
|
|
1422
|
-
h.id,
|
|
1421
|
+
e,
|
|
1423
1422
|
d.id,
|
|
1423
|
+
h.id,
|
|
1424
1424
|
r.verticalTransport
|
|
1425
|
-
) || r.accessibleOnly &&
|
|
1425
|
+
) || r.accessibleOnly && p && !p.accessible ? Number.POSITIVE_INFINITY : (p == null ? void 0 : p.weight) ?? 1;
|
|
1426
1426
|
},
|
|
1427
|
-
heuristic(
|
|
1428
|
-
const m = i.get(
|
|
1429
|
-
if (!m || !
|
|
1430
|
-
let I =
|
|
1431
|
-
return m.levelId !==
|
|
1427
|
+
heuristic(d, h) {
|
|
1428
|
+
const m = i.get(d.id), p = i.get(h.id);
|
|
1429
|
+
if (!m || !p) return 0;
|
|
1430
|
+
let I = T(m, p);
|
|
1431
|
+
return m.levelId !== p.levelId && (I += ve), I;
|
|
1432
1432
|
}
|
|
1433
|
-
}).find(
|
|
1433
|
+
}).find(n, t);
|
|
1434
1434
|
if (!a || a.length === 0) return null;
|
|
1435
|
-
const f = a.reverse().map((
|
|
1435
|
+
const f = a.reverse().map((d) => d.id), y = [], l = [], b = [];
|
|
1436
1436
|
let u = 0;
|
|
1437
|
-
for (let
|
|
1438
|
-
const
|
|
1439
|
-
if (y.push({ x:
|
|
1440
|
-
const m = f[
|
|
1441
|
-
l.push(I), u +=
|
|
1442
|
-
fromLevelId:
|
|
1443
|
-
toLevelId:
|
|
1444
|
-
connectorId:
|
|
1437
|
+
for (let d = 0; d < f.length; d++) {
|
|
1438
|
+
const h = i.get(f[d]);
|
|
1439
|
+
if (y.push({ x: h.x, y: h.y, levelId: h.levelId }), d > 0) {
|
|
1440
|
+
const m = f[d - 1], p = i.get(m), I = ir(e, m, f[d]);
|
|
1441
|
+
l.push(I), u += _n(p, h, I), p.levelId !== h.levelId && (u += ve, b.push({
|
|
1442
|
+
fromLevelId: p.levelId,
|
|
1443
|
+
toLevelId: h.levelId,
|
|
1444
|
+
connectorId: h.connectorId ?? p.connectorId
|
|
1445
1445
|
}));
|
|
1446
1446
|
}
|
|
1447
1447
|
}
|
|
1448
1448
|
return { anchorIds: f, points: y, curves: l, totalWeight: u, levelChanges: b };
|
|
1449
1449
|
}
|
|
1450
|
-
function ir(
|
|
1451
|
-
const r =
|
|
1452
|
-
(i) => i.from ===
|
|
1453
|
-
), o =
|
|
1454
|
-
return !o || !r ? null : r.from ===
|
|
1450
|
+
function ir(e, n, t) {
|
|
1451
|
+
const r = e.edges.find(
|
|
1452
|
+
(i) => i.from === n && i.to === t || !i.directed && i.from === t && i.to === n
|
|
1453
|
+
), o = Q(r);
|
|
1454
|
+
return !o || !r ? null : r.from === n ? o : qt(o);
|
|
1455
1455
|
}
|
|
1456
|
-
function
|
|
1457
|
-
const
|
|
1458
|
-
for (const r of
|
|
1459
|
-
!Number.isFinite(r) ||
|
|
1460
|
-
return
|
|
1456
|
+
function Ee(e) {
|
|
1457
|
+
const n = /* @__PURE__ */ new Set(), t = [];
|
|
1458
|
+
for (const r of e)
|
|
1459
|
+
!Number.isFinite(r) || n.has(r) || (n.add(r), t.push(r));
|
|
1460
|
+
return t;
|
|
1461
1461
|
}
|
|
1462
|
-
function
|
|
1463
|
-
return
|
|
1462
|
+
function vi(e, n) {
|
|
1463
|
+
return e.filter((t) => t.shapeId === n).map((t) => t.id);
|
|
1464
1464
|
}
|
|
1465
|
-
function sr(
|
|
1466
|
-
const
|
|
1467
|
-
for (const r of
|
|
1465
|
+
function sr(e, n) {
|
|
1466
|
+
const t = [];
|
|
1467
|
+
for (const r of e) {
|
|
1468
1468
|
const o = /* @__PURE__ */ new Set();
|
|
1469
1469
|
for (const i of r.shapes)
|
|
1470
|
-
|
|
1470
|
+
n(i) && o.add(i.id);
|
|
1471
1471
|
if (o.size !== 0)
|
|
1472
1472
|
for (const i of r.anchors)
|
|
1473
|
-
i.shapeId != null && o.has(i.shapeId) &&
|
|
1473
|
+
i.shapeId != null && o.has(i.shapeId) && t.push(i.id);
|
|
1474
1474
|
}
|
|
1475
|
-
return
|
|
1476
|
-
}
|
|
1477
|
-
function cr(
|
|
1478
|
-
const
|
|
1479
|
-
if (!
|
|
1480
|
-
if (
|
|
1481
|
-
const r =
|
|
1482
|
-
return r.length > 0 ? r : [
|
|
1483
|
-
}
|
|
1484
|
-
function
|
|
1485
|
-
const
|
|
1486
|
-
for (const r of
|
|
1487
|
-
for (const o of cr(
|
|
1488
|
-
|
|
1489
|
-
return [...
|
|
1490
|
-
}
|
|
1491
|
-
function ar(
|
|
1492
|
-
const o =
|
|
1475
|
+
return t;
|
|
1476
|
+
}
|
|
1477
|
+
function cr(e, n) {
|
|
1478
|
+
const t = e.anchorById.get(n);
|
|
1479
|
+
if (!t) return [];
|
|
1480
|
+
if (t.shapeId == null) return [n];
|
|
1481
|
+
const r = e.nodes.filter((o) => o.shapeId === t.shapeId).map((o) => o.id);
|
|
1482
|
+
return r.length > 0 ? r : [n];
|
|
1483
|
+
}
|
|
1484
|
+
function qe(e, n) {
|
|
1485
|
+
const t = /* @__PURE__ */ new Set();
|
|
1486
|
+
for (const r of Ee(n))
|
|
1487
|
+
for (const o of cr(e, r))
|
|
1488
|
+
t.add(o);
|
|
1489
|
+
return [...t];
|
|
1490
|
+
}
|
|
1491
|
+
function ar(e, n, t, r = {}) {
|
|
1492
|
+
const o = Ee(n), i = Ee(t);
|
|
1493
1493
|
if (o.length === 0 || i.length === 0) return null;
|
|
1494
1494
|
let c = null;
|
|
1495
1495
|
for (const a of o)
|
|
1496
1496
|
for (const s of i) {
|
|
1497
|
-
const f = or(
|
|
1497
|
+
const f = or(e, a, s, r);
|
|
1498
1498
|
f && (!c || f.totalWeight < c.totalWeight) && (c = f);
|
|
1499
1499
|
}
|
|
1500
1500
|
return c;
|
|
1501
1501
|
}
|
|
1502
|
-
function lr(
|
|
1502
|
+
function lr(e, n, t, r = {}) {
|
|
1503
1503
|
return ar(
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1504
|
+
e,
|
|
1505
|
+
qe(e, n),
|
|
1506
|
+
qe(e, t),
|
|
1507
1507
|
r
|
|
1508
1508
|
);
|
|
1509
1509
|
}
|
|
1510
|
-
function ur(
|
|
1510
|
+
function ur(e, n, t, r = {}) {
|
|
1511
1511
|
return lr(
|
|
1512
|
+
e,
|
|
1513
|
+
[n],
|
|
1512
1514
|
t,
|
|
1513
|
-
[e],
|
|
1514
|
-
n,
|
|
1515
1515
|
r
|
|
1516
1516
|
);
|
|
1517
1517
|
}
|
|
1518
|
-
function O(
|
|
1519
|
-
if (typeof
|
|
1520
|
-
const
|
|
1521
|
-
return
|
|
1518
|
+
function O(e) {
|
|
1519
|
+
if (typeof e != "string") return null;
|
|
1520
|
+
const n = e.trim();
|
|
1521
|
+
return n || null;
|
|
1522
1522
|
}
|
|
1523
|
-
function
|
|
1524
|
-
const
|
|
1525
|
-
return Number.isFinite(
|
|
1523
|
+
function re(e) {
|
|
1524
|
+
const n = typeof e == "number" ? e : Number(e);
|
|
1525
|
+
return Number.isFinite(n) && n > 0 ? n : null;
|
|
1526
1526
|
}
|
|
1527
|
-
function
|
|
1528
|
-
return !
|
|
1527
|
+
function oe(e) {
|
|
1528
|
+
return !e || typeof e != "object" ? null : O(e.url);
|
|
1529
1529
|
}
|
|
1530
|
-
function
|
|
1530
|
+
function Ei(e, n) {
|
|
1531
1531
|
var r;
|
|
1532
|
-
const
|
|
1533
|
-
return !
|
|
1532
|
+
const t = xn(e);
|
|
1533
|
+
return !n || !t.storeModal && !t.sidebar ? !1 : n.kind === "unit" ? ((r = n.assignment) == null ? void 0 : r.retailerId) != null : n.kind === "amenity" ? M(n.assignment) : !1;
|
|
1534
1534
|
}
|
|
1535
|
-
function
|
|
1536
|
-
return
|
|
1535
|
+
function Li(e) {
|
|
1536
|
+
return e === "directions";
|
|
1537
1537
|
}
|
|
1538
|
-
function fr(
|
|
1539
|
-
for (const
|
|
1540
|
-
const r =
|
|
1541
|
-
if (r) return { level:
|
|
1538
|
+
function fr(e, n) {
|
|
1539
|
+
for (const t of e.levels) {
|
|
1540
|
+
const r = t.shapes.find((o) => o.id === n);
|
|
1541
|
+
if (r) return { level: t, shape: r };
|
|
1542
1542
|
}
|
|
1543
1543
|
return null;
|
|
1544
1544
|
}
|
|
1545
|
-
function dr(
|
|
1545
|
+
function dr(e, n) {
|
|
1546
1546
|
var r, o, i, c;
|
|
1547
|
-
const
|
|
1548
|
-
return O((o =
|
|
1547
|
+
const t = ((r = e.assignment) == null ? void 0 : r.amenityId) != null ? n == null ? void 0 : n.find((a) => a.id === e.assignment.amenityId) : void 0;
|
|
1548
|
+
return O((o = e.assignment) == null ? void 0 : o.customLabel) || O(t == null ? void 0 : t.name) || O((i = e.label) == null ? void 0 : i.text) || O((c = e.assignment) == null ? void 0 : c.unitNumber) || e.key;
|
|
1549
1549
|
}
|
|
1550
|
-
function
|
|
1550
|
+
function Pe(e, n, t) {
|
|
1551
1551
|
var i;
|
|
1552
|
-
const r =
|
|
1552
|
+
const r = n.anchors.find((c) => c.shapeId === t);
|
|
1553
1553
|
if (r) return r.id;
|
|
1554
|
-
const o = (i =
|
|
1555
|
-
(c) => c.shapeId ===
|
|
1554
|
+
const o = (i = e.graph) == null ? void 0 : i.nodes.find(
|
|
1555
|
+
(c) => c.shapeId === t && c.levelId === n.id
|
|
1556
1556
|
);
|
|
1557
1557
|
return (o == null ? void 0 : o.id) ?? null;
|
|
1558
1558
|
}
|
|
1559
|
-
function
|
|
1559
|
+
function Ni(e, n) {
|
|
1560
1560
|
var o, i;
|
|
1561
|
-
const
|
|
1562
|
-
if (!
|
|
1563
|
-
const r =
|
|
1561
|
+
const t = fr(e, n);
|
|
1562
|
+
if (!t) return null;
|
|
1563
|
+
const r = t.shape.kind === "amenity" ? "amenity" : "store";
|
|
1564
1564
|
return {
|
|
1565
|
-
shapeId:
|
|
1566
|
-
levelId:
|
|
1567
|
-
anchorId:
|
|
1565
|
+
shapeId: n,
|
|
1566
|
+
levelId: t.level.id,
|
|
1567
|
+
anchorId: Pe(e, t.level, n),
|
|
1568
1568
|
kind: r,
|
|
1569
|
-
retailerId: ((o =
|
|
1570
|
-
amenityId: ((i =
|
|
1571
|
-
name: dr(
|
|
1572
|
-
isExterior: X(
|
|
1569
|
+
retailerId: ((o = t.shape.assignment) == null ? void 0 : o.retailerId) ?? null,
|
|
1570
|
+
amenityId: ((i = t.shape.assignment) == null ? void 0 : i.amenityId) ?? null,
|
|
1571
|
+
name: dr(t.shape, e.amenities),
|
|
1572
|
+
isExterior: X(t.level)
|
|
1573
1573
|
};
|
|
1574
1574
|
}
|
|
1575
|
-
const
|
|
1576
|
-
function hr(
|
|
1577
|
-
return
|
|
1575
|
+
const kn = "Directions are unavailable for this location.", Ti = "No route is available between these locations.";
|
|
1576
|
+
function hr(e) {
|
|
1577
|
+
return e ? e.isExterior || e.anchorId == null : !0;
|
|
1578
1578
|
}
|
|
1579
|
-
function
|
|
1580
|
-
const
|
|
1579
|
+
function Mi(e, n) {
|
|
1580
|
+
const t = hr(n), r = e !== "DISPLAY_APP";
|
|
1581
1581
|
return {
|
|
1582
|
-
showFromRetailers: r && !
|
|
1582
|
+
showFromRetailers: r && !t,
|
|
1583
1583
|
showMapIt: r,
|
|
1584
|
-
mapItDisabled:
|
|
1585
|
-
mapItTooltip: r &&
|
|
1584
|
+
mapItDisabled: t,
|
|
1585
|
+
mapItTooltip: r && t ? kn : null
|
|
1586
1586
|
};
|
|
1587
1587
|
}
|
|
1588
|
-
function yr(
|
|
1589
|
-
const
|
|
1590
|
-
for (const
|
|
1591
|
-
(
|
|
1592
|
-
return
|
|
1588
|
+
function yr(e) {
|
|
1589
|
+
const n = /* @__PURE__ */ new Map();
|
|
1590
|
+
for (const t of e ?? [])
|
|
1591
|
+
(t == null ? void 0 : t.id) != null && n.set(t.id, t);
|
|
1592
|
+
return n;
|
|
1593
1593
|
}
|
|
1594
|
-
function mr(
|
|
1595
|
-
var
|
|
1596
|
-
return O(
|
|
1594
|
+
function mr(e, n) {
|
|
1595
|
+
var t, r;
|
|
1596
|
+
return O(e == null ? void 0 : e.logoUrl) || O(e == null ? void 0 : e.logoKey) || O((t = n.label) == null ? void 0 : t.imageKey) || O((r = n.assignment) == null ? void 0 : r.customImageKey);
|
|
1597
1597
|
}
|
|
1598
|
-
function
|
|
1598
|
+
function wi(e, n) {
|
|
1599
1599
|
var c, a, s, f;
|
|
1600
|
-
const
|
|
1601
|
-
for (const y of
|
|
1600
|
+
const t = yr(n ?? e.retailers), r = /* @__PURE__ */ new Map();
|
|
1601
|
+
for (const y of t.values())
|
|
1602
1602
|
y.globalRetailerId != null && r.set(y.globalRetailerId, (r.get(y.globalRetailerId) ?? 0) + 1);
|
|
1603
1603
|
const o = [], i = /* @__PURE__ */ new Set();
|
|
1604
|
-
for (const y of
|
|
1604
|
+
for (const y of e.levels)
|
|
1605
1605
|
for (const l of y.shapes) {
|
|
1606
1606
|
const b = (c = l.assignment) == null ? void 0 : c.retailerId;
|
|
1607
1607
|
if (b == null || l.kind !== "unit") continue;
|
|
1608
|
-
const u =
|
|
1608
|
+
const u = t.get(b);
|
|
1609
1609
|
i.add(b), o.push({
|
|
1610
1610
|
id: b,
|
|
1611
1611
|
name: O(u == null ? void 0 : u.name) || O((a = l.label) == null ? void 0 : a.text) || O((s = l.assignment) == null ? void 0 : s.customLabel) || `Store ${b}`,
|
|
@@ -1619,10 +1619,10 @@ function Ti(t, e) {
|
|
|
1619
1619
|
shapeId: l.id,
|
|
1620
1620
|
levelId: y.id,
|
|
1621
1621
|
levelName: y.name,
|
|
1622
|
-
anchorId:
|
|
1622
|
+
anchorId: Pe(e, y, l.id)
|
|
1623
1623
|
});
|
|
1624
1624
|
}
|
|
1625
|
-
for (const y of
|
|
1625
|
+
for (const y of t.values()) {
|
|
1626
1626
|
if (i.has(y.id)) continue;
|
|
1627
1627
|
const l = O(y.name);
|
|
1628
1628
|
l && o.push({
|
|
@@ -1646,50 +1646,50 @@ function Ti(t, e) {
|
|
|
1646
1646
|
return b !== 0 ? b : y.levelName.localeCompare(l.levelName);
|
|
1647
1647
|
});
|
|
1648
1648
|
}
|
|
1649
|
-
function
|
|
1650
|
-
if (
|
|
1651
|
-
const r =
|
|
1649
|
+
function Pi(e, n, t) {
|
|
1650
|
+
if (t != null) {
|
|
1651
|
+
const r = e.find((o) => o.shapeId === t);
|
|
1652
1652
|
if (r) return r;
|
|
1653
1653
|
}
|
|
1654
|
-
return
|
|
1655
|
-
}
|
|
1656
|
-
function
|
|
1657
|
-
const
|
|
1658
|
-
for (const r of
|
|
1659
|
-
r.globalRetailerId != null &&
|
|
1660
|
-
return
|
|
1661
|
-
const o = r.globalRetailerId != null && (
|
|
1654
|
+
return e.find((r) => r.id === n && r.anchorId != null) ?? e.find((r) => r.id === n);
|
|
1655
|
+
}
|
|
1656
|
+
function Fi(e, n) {
|
|
1657
|
+
const t = /* @__PURE__ */ new Map();
|
|
1658
|
+
for (const r of e)
|
|
1659
|
+
r.globalRetailerId != null && t.set(r.globalRetailerId, (t.get(r.globalRetailerId) ?? 0) + 1);
|
|
1660
|
+
return e.filter((r) => r.id !== n && r.anchorId != null).map((r) => {
|
|
1661
|
+
const o = r.globalRetailerId != null && (t.get(r.globalRetailerId) ?? 0) > 1 && r.location;
|
|
1662
1662
|
return {
|
|
1663
1663
|
value: String(r.id),
|
|
1664
1664
|
label: o ? `${r.name} (${r.location})` : r.name
|
|
1665
1665
|
};
|
|
1666
1666
|
});
|
|
1667
1667
|
}
|
|
1668
|
-
function
|
|
1669
|
-
return (
|
|
1670
|
-
fromAnchorId:
|
|
1671
|
-
toAnchorId:
|
|
1672
|
-
toLevelId:
|
|
1668
|
+
function Di(e, n) {
|
|
1669
|
+
return (e == null ? void 0 : e.anchorId) == null || (n == null ? void 0 : n.anchorId) == null ? null : {
|
|
1670
|
+
fromAnchorId: e.anchorId,
|
|
1671
|
+
toAnchorId: n.anchorId,
|
|
1672
|
+
toLevelId: n.levelId
|
|
1673
1673
|
};
|
|
1674
1674
|
}
|
|
1675
|
-
function
|
|
1676
|
-
const
|
|
1677
|
-
return
|
|
1675
|
+
function Ki(e, n) {
|
|
1676
|
+
const t = n.trim().toLowerCase();
|
|
1677
|
+
return t ? e.filter(
|
|
1678
1678
|
(r) => {
|
|
1679
1679
|
var o;
|
|
1680
|
-
return r.name.toLowerCase().includes(
|
|
1680
|
+
return r.name.toLowerCase().includes(t) || (((o = r.location) == null ? void 0 : o.toLowerCase().includes(t)) ?? !1) || r.levelName.toLowerCase().includes(t);
|
|
1681
1681
|
}
|
|
1682
1682
|
) : [];
|
|
1683
1683
|
}
|
|
1684
|
-
function
|
|
1684
|
+
function Yi(e, n) {
|
|
1685
1685
|
var o;
|
|
1686
|
-
const
|
|
1687
|
-
if (!
|
|
1686
|
+
const t = e.amenities.find((i) => i.id === n);
|
|
1687
|
+
if (!t) return null;
|
|
1688
1688
|
const r = [];
|
|
1689
|
-
for (const i of
|
|
1689
|
+
for (const i of e.levels)
|
|
1690
1690
|
for (const c of i.shapes) {
|
|
1691
|
-
if (c.kind !== "amenity" || ((o = c.assignment) == null ? void 0 : o.amenityId) !==
|
|
1692
|
-
const a =
|
|
1691
|
+
if (c.kind !== "amenity" || ((o = c.assignment) == null ? void 0 : o.amenityId) !== n) continue;
|
|
1692
|
+
const a = Pe(e, i, c.id);
|
|
1693
1693
|
r.push({
|
|
1694
1694
|
levelId: i.id,
|
|
1695
1695
|
name: i.name,
|
|
@@ -1698,54 +1698,54 @@ function Di(t, e) {
|
|
|
1698
1698
|
});
|
|
1699
1699
|
}
|
|
1700
1700
|
return {
|
|
1701
|
-
amenityId:
|
|
1702
|
-
name:
|
|
1703
|
-
code:
|
|
1701
|
+
amenityId: n,
|
|
1702
|
+
name: t.name,
|
|
1703
|
+
code: t.code,
|
|
1704
1704
|
floors: r
|
|
1705
1705
|
};
|
|
1706
1706
|
}
|
|
1707
|
-
function
|
|
1708
|
-
return
|
|
1709
|
-
if (
|
|
1710
|
-
const r =
|
|
1707
|
+
function Bi(e, n) {
|
|
1708
|
+
return n ? n.floors.some((t) => {
|
|
1709
|
+
if (t.anchorId == null) return !1;
|
|
1710
|
+
const r = e.levels.find((o) => o.id === t.levelId);
|
|
1711
1711
|
return r != null && !X(r);
|
|
1712
1712
|
}) : !1;
|
|
1713
1713
|
}
|
|
1714
|
-
function
|
|
1714
|
+
function $i(e) {
|
|
1715
1715
|
return {
|
|
1716
|
-
showFromRetailers:
|
|
1716
|
+
showFromRetailers: e,
|
|
1717
1717
|
showMapIt: !0,
|
|
1718
|
-
mapItDisabled: !
|
|
1719
|
-
mapItTooltip:
|
|
1718
|
+
mapItDisabled: !e,
|
|
1719
|
+
mapItTooltip: e ? null : kn
|
|
1720
1720
|
};
|
|
1721
1721
|
}
|
|
1722
|
-
function
|
|
1722
|
+
function zi(e, n) {
|
|
1723
1723
|
return sr(
|
|
1724
|
-
|
|
1725
|
-
(
|
|
1724
|
+
e.levels,
|
|
1725
|
+
(t) => {
|
|
1726
1726
|
var r;
|
|
1727
|
-
return
|
|
1727
|
+
return t.kind === "amenity" && ((r = t.assignment) == null ? void 0 : r.amenityId) === n;
|
|
1728
1728
|
}
|
|
1729
1729
|
);
|
|
1730
1730
|
}
|
|
1731
|
-
function pr(
|
|
1732
|
-
if (
|
|
1731
|
+
function pr(e, n, t, r) {
|
|
1732
|
+
if (n == null || t.length === 0) return null;
|
|
1733
1733
|
const o = ur(
|
|
1734
|
-
t,
|
|
1735
1734
|
e,
|
|
1736
|
-
|
|
1735
|
+
n,
|
|
1736
|
+
[...t],
|
|
1737
1737
|
r
|
|
1738
1738
|
), i = o == null ? void 0 : o.anchorIds.at(-1);
|
|
1739
|
-
return i == null ? null : { fromAnchorId:
|
|
1739
|
+
return i == null ? null : { fromAnchorId: n, toAnchorId: i };
|
|
1740
1740
|
}
|
|
1741
|
-
function xr(
|
|
1742
|
-
if (
|
|
1743
|
-
const i = new Set(
|
|
1741
|
+
function xr(e, n, t, r, o) {
|
|
1742
|
+
if (n.length === 0) return null;
|
|
1743
|
+
const i = new Set(n), c = i.has(t), a = i.has(r);
|
|
1744
1744
|
if (c === a) return null;
|
|
1745
1745
|
const f = pr(
|
|
1746
|
-
t,
|
|
1747
|
-
c ? r : n,
|
|
1748
1746
|
e,
|
|
1747
|
+
c ? r : t,
|
|
1748
|
+
n,
|
|
1749
1749
|
o
|
|
1750
1750
|
);
|
|
1751
1751
|
return f ? c ? {
|
|
@@ -1753,128 +1753,128 @@ function xr(t, e, n, r, o) {
|
|
|
1753
1753
|
toAnchorId: f.fromAnchorId
|
|
1754
1754
|
} : f : null;
|
|
1755
1755
|
}
|
|
1756
|
-
function
|
|
1757
|
-
let
|
|
1756
|
+
function Gi(e) {
|
|
1757
|
+
let n = e.fromAnchorId, t = e.toAnchorId;
|
|
1758
1758
|
const r = (i, c) => {
|
|
1759
|
-
const a =
|
|
1759
|
+
const a = e.levelOf(i), s = e.levelOf(c);
|
|
1760
1760
|
return a != null && s != null && a !== s;
|
|
1761
1761
|
};
|
|
1762
|
-
if (
|
|
1762
|
+
if (e.allowChoice && e.compiled && n != null && t != null && e.amenityAnchorIds.length > 0 && r(n, t)) {
|
|
1763
1763
|
const i = xr(
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
e,
|
|
1764
|
+
e.compiled,
|
|
1765
|
+
e.amenityAnchorIds,
|
|
1767
1766
|
n,
|
|
1767
|
+
t,
|
|
1768
1768
|
{
|
|
1769
|
-
accessibleOnly:
|
|
1770
|
-
verticalTransport:
|
|
1769
|
+
accessibleOnly: e.accessibleOnly,
|
|
1770
|
+
verticalTransport: e.verticalTransport
|
|
1771
1771
|
}
|
|
1772
1772
|
);
|
|
1773
|
-
i && (
|
|
1773
|
+
i && (n = i.fromAnchorId, t = i.toAnchorId);
|
|
1774
1774
|
}
|
|
1775
|
-
const o = { accessibleOnly:
|
|
1776
|
-
return
|
|
1775
|
+
const o = { accessibleOnly: e.accessibleOnly };
|
|
1776
|
+
return e.allowChoice && r(n, t) && (o.verticalTransport = e.verticalTransport), { fromAnchorId: n, toAnchorId: t, options: o };
|
|
1777
1777
|
}
|
|
1778
|
-
function
|
|
1779
|
-
const
|
|
1780
|
-
return
|
|
1778
|
+
function Xi(e) {
|
|
1779
|
+
const n = e.replace(/\D/g, "").slice(-10);
|
|
1780
|
+
return n.length === 10 ? `${n.slice(0, 3)}.${n.slice(3, 6)}.${n.slice(-4)}` : e;
|
|
1781
1781
|
}
|
|
1782
|
-
function
|
|
1783
|
-
if (!
|
|
1784
|
-
const
|
|
1782
|
+
function Hi(e) {
|
|
1783
|
+
if (!e || typeof e != "object") return null;
|
|
1784
|
+
const n = e, t = n.global_retailer && typeof n.global_retailer == "object" ? n.global_retailer : null, r = re(n.id);
|
|
1785
1785
|
if (r == null) return null;
|
|
1786
|
-
const o = O(
|
|
1786
|
+
const o = O(t == null ? void 0 : t.name) || O(n.name) || `Retailer ${r}`;
|
|
1787
1787
|
return {
|
|
1788
1788
|
id: r,
|
|
1789
1789
|
name: o,
|
|
1790
|
-
location: O(
|
|
1791
|
-
phone: O(
|
|
1792
|
-
description: O(
|
|
1793
|
-
logoUrl:
|
|
1794
|
-
logoKey: O(
|
|
1795
|
-
globalRetailerId:
|
|
1796
|
-
slug: O(
|
|
1790
|
+
location: O(n.location),
|
|
1791
|
+
phone: O(n.retailer_phone) || O(n.phone),
|
|
1792
|
+
description: O(t == null ? void 0 : t.description) || O(n.description) || O(n.local_description),
|
|
1793
|
+
logoUrl: oe(t == null ? void 0 : t.media) || oe(t == null ? void 0 : t.featured_image) || oe(n.media) || oe(n.featured_image) || O(n.logoUrl) || O(n.logo),
|
|
1794
|
+
logoKey: O(n.logoKey),
|
|
1795
|
+
globalRetailerId: re(t == null ? void 0 : t.id) || re(n.global_retailer_id) || re(n.globalRetailerId),
|
|
1796
|
+
slug: O(t == null ? void 0 : t.slug) || O(n.slug)
|
|
1797
1797
|
};
|
|
1798
1798
|
}
|
|
1799
|
-
function
|
|
1799
|
+
function Ui(e, n, t = !1) {
|
|
1800
1800
|
var c;
|
|
1801
|
-
const r = (c =
|
|
1801
|
+
const r = (c = e.slug) == null ? void 0 : c.trim(), o = n == null ? void 0 : n.trim();
|
|
1802
1802
|
if (!r || !o) return null;
|
|
1803
1803
|
const i = `${o.replace(/\/+$/, "")}/${encodeURIComponent(r)}`;
|
|
1804
|
-
return
|
|
1804
|
+
return t && e.multipleLocations ? `${i}/${e.id}` : i;
|
|
1805
1805
|
}
|
|
1806
|
-
function
|
|
1807
|
-
return
|
|
1806
|
+
function On(e) {
|
|
1807
|
+
return e === "WEBSITE" || e === "DISPLAY_APP";
|
|
1808
1808
|
}
|
|
1809
|
-
function br(
|
|
1810
|
-
return
|
|
1809
|
+
function br(e) {
|
|
1810
|
+
return e === "PORTAL_ASSIGN";
|
|
1811
1811
|
}
|
|
1812
|
-
function Ir(
|
|
1813
|
-
return
|
|
1812
|
+
function Ir(e) {
|
|
1813
|
+
return On(e);
|
|
1814
1814
|
}
|
|
1815
|
-
function
|
|
1816
|
-
return Ir(
|
|
1815
|
+
function Vi(e, n) {
|
|
1816
|
+
return Ir(n) ? M(e.assignment) : !0;
|
|
1817
1817
|
}
|
|
1818
|
-
function gr(
|
|
1819
|
-
const
|
|
1820
|
-
return
|
|
1818
|
+
function gr(e) {
|
|
1819
|
+
const n = (e.sourceSvgId ?? e.key ?? "").trim().toLowerCase().replace(/_/g, "-");
|
|
1820
|
+
return n === "escalator" || n.startsWith("escalator-") ? "escalator" : n === "elevator" || n.startsWith("elevator-") ? "elevator" : null;
|
|
1821
1821
|
}
|
|
1822
|
-
function _r(
|
|
1823
|
-
return gr(
|
|
1822
|
+
function _r(e, n) {
|
|
1823
|
+
return gr(e) ? n.has(e.id) : e.kind === "amenity" || e.kind === "kiosk_screen" ? M(e.assignment) : !0;
|
|
1824
1824
|
}
|
|
1825
|
-
function
|
|
1826
|
-
return
|
|
1825
|
+
function Wi(e, n, t) {
|
|
1826
|
+
return On(n) ? _r(e, t) : !0;
|
|
1827
1827
|
}
|
|
1828
|
-
const
|
|
1829
|
-
function
|
|
1830
|
-
if (!
|
|
1831
|
-
const
|
|
1832
|
-
return
|
|
1833
|
-
}
|
|
1834
|
-
function
|
|
1835
|
-
var
|
|
1836
|
-
return ((
|
|
1837
|
-
}
|
|
1838
|
-
function
|
|
1839
|
-
return
|
|
1840
|
-
}
|
|
1841
|
-
function Ar(
|
|
1842
|
-
if (
|
|
1843
|
-
if (
|
|
1844
|
-
return
|
|
1845
|
-
if (
|
|
1846
|
-
return
|
|
1847
|
-
if (
|
|
1848
|
-
switch (
|
|
1828
|
+
const An = "#e2e8f0";
|
|
1829
|
+
function Zi(e) {
|
|
1830
|
+
if (!e) return !1;
|
|
1831
|
+
const n = e.toLowerCase();
|
|
1832
|
+
return n === "amenity" || n.startsWith("amenity-");
|
|
1833
|
+
}
|
|
1834
|
+
function kr(e) {
|
|
1835
|
+
var t;
|
|
1836
|
+
return ((t = e == null ? void 0 : e.GREEN_AREA_COLOR) == null ? void 0 : t.trim()) || U("green-area");
|
|
1837
|
+
}
|
|
1838
|
+
function Or(e, n) {
|
|
1839
|
+
return e === "amenity" ? kr(n) : An;
|
|
1840
|
+
}
|
|
1841
|
+
function Ar(e, n, t, r) {
|
|
1842
|
+
if (e === "walkable") return n.WALKABLE_COLOR;
|
|
1843
|
+
if (Me(e))
|
|
1844
|
+
return $e(r, Ne);
|
|
1845
|
+
if (e === "unit" || e === "custom")
|
|
1846
|
+
return $e(r, n.STORE_DEFAULT_COLOR);
|
|
1847
|
+
if (t) return t;
|
|
1848
|
+
switch (e) {
|
|
1849
1849
|
case "wall":
|
|
1850
1850
|
case "boundary":
|
|
1851
|
-
return
|
|
1851
|
+
return n.WALL_COLOR;
|
|
1852
1852
|
case "parking_zone":
|
|
1853
|
-
return
|
|
1853
|
+
return n.PARKING_ZONE_COLOR;
|
|
1854
1854
|
case "green_area":
|
|
1855
|
-
return
|
|
1855
|
+
return n.GREEN_AREA_COLOR;
|
|
1856
1856
|
case "water":
|
|
1857
|
-
return
|
|
1857
|
+
return n.WATER_COLOR;
|
|
1858
1858
|
case "floorplate":
|
|
1859
|
-
return
|
|
1859
|
+
return n.BASE_COLOR;
|
|
1860
1860
|
case "void":
|
|
1861
1861
|
return "#00000000";
|
|
1862
1862
|
default:
|
|
1863
|
-
return
|
|
1863
|
+
return An;
|
|
1864
1864
|
}
|
|
1865
1865
|
}
|
|
1866
|
-
function
|
|
1867
|
-
const i = Ar(
|
|
1868
|
-
return br(
|
|
1866
|
+
function ji(e, n, t, r, o) {
|
|
1867
|
+
const i = Ar(e, n, r, o);
|
|
1868
|
+
return br(t) && Me(e) && W(i) ? Or(e, n) : i;
|
|
1869
1869
|
}
|
|
1870
|
-
function
|
|
1871
|
-
return
|
|
1870
|
+
function qi(e, n) {
|
|
1871
|
+
return e === "amenity" ? 1 : n ?? 1;
|
|
1872
1872
|
}
|
|
1873
|
-
function Sr(
|
|
1874
|
-
return /^https?:\/\//i.test(
|
|
1873
|
+
function Sr(e) {
|
|
1874
|
+
return /^https?:\/\//i.test(e.trim());
|
|
1875
1875
|
}
|
|
1876
|
-
function
|
|
1877
|
-
return !
|
|
1876
|
+
function Qi(e, n) {
|
|
1877
|
+
return !n || !Sr(e) ? e : n + encodeURIComponent(e);
|
|
1878
1878
|
}
|
|
1879
1879
|
const Rr = {
|
|
1880
1880
|
fill: "fill",
|
|
@@ -1884,48 +1884,48 @@ const Rr = {
|
|
|
1884
1884
|
"stroke-opacity": "stroke-opacity",
|
|
1885
1885
|
opacity: "opacity"
|
|
1886
1886
|
};
|
|
1887
|
-
function Cr(
|
|
1888
|
-
const
|
|
1889
|
-
for (const
|
|
1890
|
-
const r =
|
|
1887
|
+
function Cr(e) {
|
|
1888
|
+
const n = {};
|
|
1889
|
+
for (const t of e.split(";")) {
|
|
1890
|
+
const r = t.indexOf(":");
|
|
1891
1891
|
if (r === -1) continue;
|
|
1892
|
-
const o =
|
|
1893
|
-
o && i && (
|
|
1892
|
+
const o = t.slice(0, r).trim().toLowerCase(), i = t.slice(r + 1).trim();
|
|
1893
|
+
o && i && (n[o] = i);
|
|
1894
1894
|
}
|
|
1895
|
-
return
|
|
1895
|
+
return n;
|
|
1896
1896
|
}
|
|
1897
|
-
function vr(
|
|
1898
|
-
const
|
|
1899
|
-
for (const r of
|
|
1897
|
+
function vr(e) {
|
|
1898
|
+
const n = /* @__PURE__ */ new Map(), t = e.replace(/\/\*[\s\S]*?\*\//g, "");
|
|
1899
|
+
for (const r of t.matchAll(/([^{]+)\{([^}]*)\}/g)) {
|
|
1900
1900
|
const o = r[1].split(",").map((c) => c.trim()), i = Cr(r[2]);
|
|
1901
1901
|
for (const c of o) {
|
|
1902
1902
|
const a = c.match(/^\.([a-zA-Z0-9_-]+)$/);
|
|
1903
1903
|
if (!a) continue;
|
|
1904
1904
|
const s = a[1];
|
|
1905
|
-
|
|
1906
|
-
...
|
|
1905
|
+
n.set(s, {
|
|
1906
|
+
...n.get(s) || {},
|
|
1907
1907
|
...i
|
|
1908
1908
|
});
|
|
1909
1909
|
}
|
|
1910
1910
|
}
|
|
1911
|
-
return e;
|
|
1912
|
-
}
|
|
1913
|
-
function Er(t, e) {
|
|
1914
|
-
const n = {};
|
|
1915
|
-
for (const r of t.split(/\s+/).map((o) => o.trim()).filter(Boolean))
|
|
1916
|
-
Object.assign(n, e.get(r) || {});
|
|
1917
1911
|
return n;
|
|
1918
1912
|
}
|
|
1919
|
-
function
|
|
1920
|
-
const
|
|
1921
|
-
for (const
|
|
1922
|
-
|
|
1923
|
-
|
|
1913
|
+
function Er(e, n) {
|
|
1914
|
+
const t = {};
|
|
1915
|
+
for (const r of e.split(/\s+/).map((o) => o.trim()).filter(Boolean))
|
|
1916
|
+
Object.assign(t, n.get(r) || {});
|
|
1917
|
+
return t;
|
|
1918
|
+
}
|
|
1919
|
+
function Lr(e) {
|
|
1920
|
+
const n = [], t = e.replace(/<!--[\s\S]*?-->/g, "");
|
|
1921
|
+
for (const o of t.matchAll(/<style\b[^>]*>([\s\S]*?)<\/style>/gi))
|
|
1922
|
+
n.push(o[1]);
|
|
1923
|
+
if (n.length === 0) return e;
|
|
1924
1924
|
const r = /* @__PURE__ */ new Map();
|
|
1925
|
-
for (const o of
|
|
1925
|
+
for (const o of n)
|
|
1926
1926
|
for (const [i, c] of vr(o))
|
|
1927
1927
|
r.set(i, { ...r.get(i) || {}, ...c });
|
|
1928
|
-
return r.size === 0 ?
|
|
1928
|
+
return r.size === 0 ? e : e.replace(
|
|
1929
1929
|
/<(path|polygon|polyline|line|rect|g|circle|ellipse)\b([^>]*)>/gi,
|
|
1930
1930
|
(o, i, c) => {
|
|
1931
1931
|
const a = /\/\s*$/.test(c), s = c.replace(/\/\s*$/, ""), f = s.match(/\bclass\s*=\s*["']([^"']*)["']/i);
|
|
@@ -1933,175 +1933,175 @@ function Lr(t) {
|
|
|
1933
1933
|
const y = Er(f[1], r);
|
|
1934
1934
|
let l = s;
|
|
1935
1935
|
for (const [b, u] of Object.entries(y)) {
|
|
1936
|
-
const
|
|
1937
|
-
|
|
1936
|
+
const d = Rr[b];
|
|
1937
|
+
d && (new RegExp(`\\b${d}\\s*=`, "i").test(l) || (l += ` ${d}="${u}"`));
|
|
1938
1938
|
}
|
|
1939
1939
|
return `<${i}${l}${a ? " /" : ""}>`;
|
|
1940
1940
|
}
|
|
1941
1941
|
);
|
|
1942
1942
|
}
|
|
1943
|
-
function
|
|
1943
|
+
function Qe(e) {
|
|
1944
1944
|
var a, s, f, y, l;
|
|
1945
|
-
const
|
|
1946
|
-
return
|
|
1945
|
+
const n = {}, t = (a = e.match(/\bfill\s*=\s*["']([^"']*)["']/i)) == null ? void 0 : a[1], r = (s = e.match(/\bstroke\s*=\s*["']([^"']*)["']/i)) == null ? void 0 : s[1], o = (f = e.match(/\bstroke-width\s*=\s*["']?(-?[\d.]+)/i)) == null ? void 0 : f[1], i = (y = e.match(/\bopacity\s*=\s*["']?(-?[\d.]+)/i)) == null ? void 0 : y[1], c = (l = e.match(/\bfill-opacity\s*=\s*["']?(-?[\d.]+)/i)) == null ? void 0 : l[1];
|
|
1946
|
+
return t && t.toLowerCase() !== "none" && (n.fill = t), r && r.toLowerCase() !== "none" && (n.stroke = r), o != null && !Number.isNaN(Number(o)) && (n.strokeWidth = Number(o)), i != null && !Number.isNaN(Number(i)) ? n.opacity = Number(i) : c != null && !Number.isNaN(Number(c)) && (n.opacity = Number(c)), n;
|
|
1947
1947
|
}
|
|
1948
|
-
function
|
|
1948
|
+
function ke(e, n) {
|
|
1949
1949
|
return {
|
|
1950
|
-
fill:
|
|
1951
|
-
stroke:
|
|
1952
|
-
strokeWidth:
|
|
1953
|
-
opacity:
|
|
1950
|
+
fill: n.fill ?? e.fill,
|
|
1951
|
+
stroke: n.stroke ?? e.stroke,
|
|
1952
|
+
strokeWidth: n.strokeWidth ?? e.strokeWidth,
|
|
1953
|
+
opacity: n.opacity ?? e.opacity
|
|
1954
1954
|
};
|
|
1955
1955
|
}
|
|
1956
|
-
const
|
|
1957
|
-
function
|
|
1956
|
+
const Le = { a: 1, b: 0, c: 0, d: 1, e: 0, f: 0 };
|
|
1957
|
+
function q(e, n) {
|
|
1958
1958
|
return {
|
|
1959
|
-
a:
|
|
1960
|
-
b:
|
|
1961
|
-
c:
|
|
1962
|
-
d:
|
|
1963
|
-
e:
|
|
1964
|
-
f:
|
|
1959
|
+
a: e.a * n.a + e.c * n.b,
|
|
1960
|
+
b: e.b * n.a + e.d * n.b,
|
|
1961
|
+
c: e.a * n.c + e.c * n.d,
|
|
1962
|
+
d: e.b * n.c + e.d * n.d,
|
|
1963
|
+
e: e.a * n.e + e.c * n.f + e.e,
|
|
1964
|
+
f: e.b * n.e + e.d * n.f + e.f
|
|
1965
1965
|
};
|
|
1966
1966
|
}
|
|
1967
|
-
function Nr(
|
|
1967
|
+
function Nr(e, n) {
|
|
1968
1968
|
return {
|
|
1969
|
-
x:
|
|
1970
|
-
y:
|
|
1969
|
+
x: e.a * n.x + e.c * n.y + e.e,
|
|
1970
|
+
y: e.b * n.x + e.d * n.y + e.f
|
|
1971
1971
|
};
|
|
1972
1972
|
}
|
|
1973
|
-
function Tr(
|
|
1974
|
-
return Math.abs(
|
|
1973
|
+
function Tr(e, n = 1e-9) {
|
|
1974
|
+
return Math.abs(e.a - 1) < n && Math.abs(e.b) < n && Math.abs(e.c) < n && Math.abs(e.d - 1) < n && Math.abs(e.e) < n && Math.abs(e.f) < n;
|
|
1975
1975
|
}
|
|
1976
|
-
function
|
|
1977
|
-
return { a: 1, b: 0, c: 0, d: 1, e
|
|
1976
|
+
function Oe(e, n) {
|
|
1977
|
+
return { a: 1, b: 0, c: 0, d: 1, e, f: n };
|
|
1978
1978
|
}
|
|
1979
|
-
function Mr(
|
|
1980
|
-
const
|
|
1981
|
-
return { a:
|
|
1979
|
+
function Mr(e) {
|
|
1980
|
+
const n = e * Math.PI / 180, t = Math.cos(n), r = Math.sin(n);
|
|
1981
|
+
return { a: t, b: r, c: -r, d: t, e: 0, f: 0 };
|
|
1982
1982
|
}
|
|
1983
|
-
function wr(
|
|
1984
|
-
switch (
|
|
1983
|
+
function wr(e, n) {
|
|
1984
|
+
switch (e) {
|
|
1985
1985
|
case "matrix":
|
|
1986
|
-
return
|
|
1986
|
+
return n.length < 6 ? null : { a: n[0], b: n[1], c: n[2], d: n[3], e: n[4], f: n[5] };
|
|
1987
1987
|
case "translate":
|
|
1988
|
-
return
|
|
1988
|
+
return n.length < 1 ? null : Oe(n[0], n[1] ?? 0);
|
|
1989
1989
|
case "scale": {
|
|
1990
|
-
if (
|
|
1991
|
-
const
|
|
1992
|
-
return { a:
|
|
1990
|
+
if (n.length < 1) return null;
|
|
1991
|
+
const t = n[0], r = n[1] ?? t;
|
|
1992
|
+
return { a: t, b: 0, c: 0, d: r, e: 0, f: 0 };
|
|
1993
1993
|
}
|
|
1994
1994
|
case "rotate": {
|
|
1995
|
-
if (
|
|
1996
|
-
const
|
|
1997
|
-
if (
|
|
1998
|
-
const r =
|
|
1999
|
-
return
|
|
2000
|
-
|
|
2001
|
-
|
|
1995
|
+
if (n.length < 1) return null;
|
|
1996
|
+
const t = Mr(n[0]);
|
|
1997
|
+
if (n.length < 3) return t;
|
|
1998
|
+
const r = n[1], o = n[2];
|
|
1999
|
+
return q(
|
|
2000
|
+
q(Oe(r, o), t),
|
|
2001
|
+
Oe(-r, -o)
|
|
2002
2002
|
);
|
|
2003
2003
|
}
|
|
2004
2004
|
case "skewx":
|
|
2005
|
-
return
|
|
2005
|
+
return n.length < 1 ? null : { a: 1, b: 0, c: Math.tan(n[0] * Math.PI / 180), d: 1, e: 0, f: 0 };
|
|
2006
2006
|
case "skewy":
|
|
2007
|
-
return
|
|
2007
|
+
return n.length < 1 ? null : { a: 1, b: Math.tan(n[0] * Math.PI / 180), c: 0, d: 1, e: 0, f: 0 };
|
|
2008
2008
|
default:
|
|
2009
2009
|
return null;
|
|
2010
2010
|
}
|
|
2011
2011
|
}
|
|
2012
|
-
const
|
|
2013
|
-
function
|
|
2014
|
-
if (!
|
|
2015
|
-
let
|
|
2016
|
-
|
|
2017
|
-
let
|
|
2018
|
-
for (; (
|
|
2019
|
-
const r =
|
|
2012
|
+
const Je = /([a-zA-Z]+)\s*\(([^)]*)\)/g;
|
|
2013
|
+
function en(e) {
|
|
2014
|
+
if (!e) return Le;
|
|
2015
|
+
let n = Le;
|
|
2016
|
+
Je.lastIndex = 0;
|
|
2017
|
+
let t;
|
|
2018
|
+
for (; (t = Je.exec(e)) !== null; ) {
|
|
2019
|
+
const r = t[1].toLowerCase(), o = t[2].trim().split(/[\s,]+/).filter(Boolean).map(Number);
|
|
2020
2020
|
if (o.some((c) => Number.isNaN(c))) continue;
|
|
2021
2021
|
const i = wr(r, o);
|
|
2022
|
-
i && (
|
|
2022
|
+
i && (n = q(n, i));
|
|
2023
2023
|
}
|
|
2024
|
-
return
|
|
2024
|
+
return n;
|
|
2025
2025
|
}
|
|
2026
|
-
function H(
|
|
2027
|
-
if (!Number.isFinite(
|
|
2028
|
-
const
|
|
2029
|
-
return Object.is(
|
|
2026
|
+
function H(e) {
|
|
2027
|
+
if (!Number.isFinite(e)) return "0";
|
|
2028
|
+
const n = Math.round(e * 1e4) / 1e4;
|
|
2029
|
+
return Object.is(n, -0) ? "0" : String(n);
|
|
2030
2030
|
}
|
|
2031
|
-
function Pr(
|
|
2032
|
-
const o = r * Math.PI / 180, i = Math.cos(o), c = Math.sin(o), a = i *
|
|
2033
|
-
return { rx:
|
|
2031
|
+
function Pr(e, n, t, r) {
|
|
2032
|
+
const o = r * Math.PI / 180, i = Math.cos(o), c = Math.sin(o), a = i * n, s = c * n, f = -c * t, y = i * t, l = e.a * a + e.c * s, b = e.b * a + e.d * s, u = e.a * f + e.c * y, d = e.b * f + e.d * y, h = (l + d) / 2, m = (l - d) / 2, p = (b + u) / 2, I = (b - u) / 2, k = Math.hypot(h, I), x = Math.hypot(m, p), g = Math.abs(k + x), _ = Math.abs(k - x), A = Math.atan2(p, m), C = (Math.atan2(I, h) + A) / 2 * (180 / Math.PI);
|
|
2033
|
+
return { rx: g, ry: _, phiDeg: C };
|
|
2034
2034
|
}
|
|
2035
|
-
function Fr(
|
|
2036
|
-
if (!
|
|
2037
|
-
const
|
|
2035
|
+
function Fr(e, n) {
|
|
2036
|
+
if (!e || Tr(n)) return e;
|
|
2037
|
+
const t = bn(e), r = [], o = n.a * n.d - n.b * n.c < 0;
|
|
2038
2038
|
let i = 0, c = "", a = 0, s = 0, f = 0, y = 0;
|
|
2039
2039
|
const l = () => {
|
|
2040
|
-
const
|
|
2041
|
-
return Number.isNaN(
|
|
2042
|
-
}, b = (
|
|
2043
|
-
r.push(
|
|
2044
|
-
}, u = (
|
|
2045
|
-
const m = Nr(
|
|
2040
|
+
const d = Number(t[i++]);
|
|
2041
|
+
return Number.isNaN(d) ? 0 : d;
|
|
2042
|
+
}, b = (d, ...h) => {
|
|
2043
|
+
r.push(d + (h.length ? " " + h.map(H).join(" ") : ""));
|
|
2044
|
+
}, u = (d, h) => {
|
|
2045
|
+
const m = Nr(n, { x: d, y: h });
|
|
2046
2046
|
return [m.x, m.y];
|
|
2047
2047
|
};
|
|
2048
|
-
for (; i <
|
|
2049
|
-
const
|
|
2050
|
-
switch (/[a-zA-Z]/.test(
|
|
2048
|
+
for (; i < t.length; ) {
|
|
2049
|
+
const d = t[i];
|
|
2050
|
+
switch (/[a-zA-Z]/.test(d) && (c = d, i++), c) {
|
|
2051
2051
|
case "M":
|
|
2052
2052
|
case "m": {
|
|
2053
|
-
const
|
|
2054
|
-
a =
|
|
2053
|
+
const h = c === "m", m = l(), p = l();
|
|
2054
|
+
a = h ? a + m : m, s = h ? s + p : p, f = a, y = s, b("M", ...u(a, s)), c = h ? "l" : "L";
|
|
2055
2055
|
break;
|
|
2056
2056
|
}
|
|
2057
2057
|
case "L":
|
|
2058
2058
|
case "l": {
|
|
2059
|
-
const
|
|
2060
|
-
a =
|
|
2059
|
+
const h = c === "l", m = l(), p = l();
|
|
2060
|
+
a = h ? a + m : m, s = h ? s + p : p, b("L", ...u(a, s));
|
|
2061
2061
|
break;
|
|
2062
2062
|
}
|
|
2063
2063
|
case "H":
|
|
2064
2064
|
case "h": {
|
|
2065
|
-
const
|
|
2066
|
-
a =
|
|
2065
|
+
const h = c === "h", m = l();
|
|
2066
|
+
a = h ? a + m : m, b("L", ...u(a, s));
|
|
2067
2067
|
break;
|
|
2068
2068
|
}
|
|
2069
2069
|
case "V":
|
|
2070
2070
|
case "v": {
|
|
2071
|
-
const
|
|
2072
|
-
s =
|
|
2071
|
+
const h = c === "v", m = l();
|
|
2072
|
+
s = h ? s + m : m, b("L", ...u(a, s));
|
|
2073
2073
|
break;
|
|
2074
2074
|
}
|
|
2075
2075
|
case "C":
|
|
2076
2076
|
case "c": {
|
|
2077
|
-
const
|
|
2078
|
-
b("C", ...u(m,
|
|
2077
|
+
const h = c === "c", m = h ? a + l() : l(), p = h ? s + l() : l(), I = h ? a + l() : l(), k = h ? s + l() : l(), x = h ? a + l() : l(), g = h ? s + l() : l();
|
|
2078
|
+
b("C", ...u(m, p), ...u(I, k), ...u(x, g)), a = x, s = g;
|
|
2079
2079
|
break;
|
|
2080
2080
|
}
|
|
2081
2081
|
case "S":
|
|
2082
2082
|
case "s": {
|
|
2083
|
-
const
|
|
2084
|
-
b("S", ...u(m,
|
|
2083
|
+
const h = c === "s", m = h ? a + l() : l(), p = h ? s + l() : l(), I = h ? a + l() : l(), k = h ? s + l() : l();
|
|
2084
|
+
b("S", ...u(m, p), ...u(I, k)), a = I, s = k;
|
|
2085
2085
|
break;
|
|
2086
2086
|
}
|
|
2087
2087
|
case "Q":
|
|
2088
2088
|
case "q": {
|
|
2089
|
-
const
|
|
2090
|
-
b("Q", ...u(m,
|
|
2089
|
+
const h = c === "q", m = h ? a + l() : l(), p = h ? s + l() : l(), I = h ? a + l() : l(), k = h ? s + l() : l();
|
|
2090
|
+
b("Q", ...u(m, p), ...u(I, k)), a = I, s = k;
|
|
2091
2091
|
break;
|
|
2092
2092
|
}
|
|
2093
2093
|
case "T":
|
|
2094
2094
|
case "t": {
|
|
2095
|
-
const
|
|
2096
|
-
b("T", ...u(m,
|
|
2095
|
+
const h = c === "t", m = h ? a + l() : l(), p = h ? s + l() : l();
|
|
2096
|
+
b("T", ...u(m, p)), a = m, s = p;
|
|
2097
2097
|
break;
|
|
2098
2098
|
}
|
|
2099
2099
|
case "A":
|
|
2100
2100
|
case "a": {
|
|
2101
|
-
const
|
|
2101
|
+
const h = c === "a", m = l(), p = l(), I = l(), k = l(), x = l(), g = h ? a + l() : l(), _ = h ? s + l() : l(), A = Pr(n, m, p, I), [S, C] = u(g, _);
|
|
2102
2102
|
r.push(
|
|
2103
|
-
`A ${H(
|
|
2104
|
-
), a =
|
|
2103
|
+
`A ${H(A.rx)} ${H(A.ry)} ${H(A.phiDeg)} ${k ? 1 : 0} ${(x ? 1 : 0) ^ (o ? 1 : 0)} ${H(S)} ${H(C)}`
|
|
2104
|
+
), a = g, s = _;
|
|
2105
2105
|
break;
|
|
2106
2106
|
}
|
|
2107
2107
|
case "Z":
|
|
@@ -2164,236 +2164,242 @@ const Dr = [
|
|
|
2164
2164
|
{ prefix: "elevator-", kind: "connector" },
|
|
2165
2165
|
{ prefix: "stairs-", kind: "connector" }
|
|
2166
2166
|
];
|
|
2167
|
-
function
|
|
2168
|
-
const
|
|
2169
|
-
return
|
|
2167
|
+
function nn(e) {
|
|
2168
|
+
const n = J(e);
|
|
2169
|
+
return n === "route path" || n.startsWith("route path ");
|
|
2170
|
+
}
|
|
2171
|
+
function Sn(e) {
|
|
2172
|
+
return /^routes?( \d+)?$/.test(J(e));
|
|
2170
2173
|
}
|
|
2171
|
-
function
|
|
2172
|
-
return /^
|
|
2174
|
+
function Yr(e) {
|
|
2175
|
+
return /^background( \d+)?$/.test(J(e));
|
|
2173
2176
|
}
|
|
2174
|
-
function
|
|
2175
|
-
const
|
|
2176
|
-
return
|
|
2177
|
+
function tn(e, n) {
|
|
2178
|
+
const t = e.toLowerCase();
|
|
2179
|
+
return t === "line" || t === "polyline" ? !0 : !(t !== "path" || !n || /[zZ]/.test(n) || /[csqtaCSQTA]/.test(n));
|
|
2177
2180
|
}
|
|
2178
|
-
const
|
|
2179
|
-
...
|
|
2181
|
+
const Br = [
|
|
2182
|
+
...et,
|
|
2180
2183
|
"walkable",
|
|
2181
2184
|
"void"
|
|
2182
2185
|
], $r = 8;
|
|
2183
|
-
function
|
|
2184
|
-
if (
|
|
2186
|
+
function zr(e, n = "floor") {
|
|
2187
|
+
if (vn(e))
|
|
2185
2188
|
return { kind: null, guessed: !1 };
|
|
2186
|
-
const
|
|
2189
|
+
const t = e.toLowerCase(), r = n === "base" ? Kr : Dr;
|
|
2187
2190
|
for (const { prefix: o, kind: i } of r)
|
|
2188
|
-
if (
|
|
2191
|
+
if (t === o || t.startsWith(o))
|
|
2189
2192
|
return { kind: i, guessed: !1 };
|
|
2190
|
-
return
|
|
2193
|
+
return t.startsWith("interactive") ? { kind: "unit", guessed: !0 } : { kind: null, guessed: !1 };
|
|
2191
2194
|
}
|
|
2192
|
-
function
|
|
2193
|
-
return
|
|
2195
|
+
function J(e) {
|
|
2196
|
+
return e.toLowerCase().replace(/[-_]+/g, " ").replace(/\s+/g, " ").trim();
|
|
2194
2197
|
}
|
|
2195
|
-
function
|
|
2196
|
-
return /non[-_ ]?interactive/i.test(
|
|
2198
|
+
function Fe(e) {
|
|
2199
|
+
return /non[-_ ]?interactive/i.test(e);
|
|
2197
2200
|
}
|
|
2198
|
-
function
|
|
2199
|
-
return
|
|
2201
|
+
function Rn(e) {
|
|
2202
|
+
return Fe(e) ? !1 : /^interactive( items)?( \d+)?$/.test(J(e));
|
|
2200
2203
|
}
|
|
2201
|
-
function
|
|
2202
|
-
const
|
|
2203
|
-
return
|
|
2204
|
+
function Cn(e) {
|
|
2205
|
+
const n = J(e);
|
|
2206
|
+
return n === "stores" || n === "store layer" || n === "units" || n === "unit layer";
|
|
2204
2207
|
}
|
|
2205
|
-
function
|
|
2206
|
-
return
|
|
2208
|
+
function vn(e) {
|
|
2209
|
+
return Rn(e) || Fe(e) || Cn(e) || Sn(e);
|
|
2207
2210
|
}
|
|
2208
|
-
function
|
|
2209
|
-
return
|
|
2211
|
+
function Ae(e) {
|
|
2212
|
+
return e.interactiveContainer || e.nonInteractiveContainer || e.storeFolder || e.routeContainer;
|
|
2210
2213
|
}
|
|
2211
|
-
function
|
|
2212
|
-
const
|
|
2213
|
-
return
|
|
2214
|
+
function D(e, n) {
|
|
2215
|
+
const t = e.match(new RegExp(`\\b${n}\\s*=\\s*["']([^"']*)["']`, "i"));
|
|
2216
|
+
return t ? t[1] : null;
|
|
2214
2217
|
}
|
|
2215
|
-
function
|
|
2216
|
-
const
|
|
2217
|
-
return
|
|
2218
|
+
function $(e, n) {
|
|
2219
|
+
const t = e.match(new RegExp(`\\b${n}\\s*=\\s*["']?(-?[\\d.]+)`, "i"));
|
|
2220
|
+
return t ? Number(t[1]) : 0;
|
|
2218
2221
|
}
|
|
2219
|
-
function
|
|
2220
|
-
return /\bdata-interactive\s*=\s*["']?(true|1|yes)/i.test(
|
|
2222
|
+
function rn(e) {
|
|
2223
|
+
return /\bdata-interactive\s*=\s*["']?(true|1|yes)/i.test(e);
|
|
2221
2224
|
}
|
|
2222
|
-
function Gr(
|
|
2223
|
-
return [
|
|
2224
|
-
(
|
|
2225
|
+
function Gr(e) {
|
|
2226
|
+
return [D(e, "id"), D(e, "data-name")].filter(
|
|
2227
|
+
(n) => !!n
|
|
2225
2228
|
);
|
|
2226
2229
|
}
|
|
2227
|
-
function
|
|
2228
|
-
return
|
|
2229
|
-
}
|
|
2230
|
-
function
|
|
2231
|
-
const
|
|
2232
|
-
if (
|
|
2233
|
-
let
|
|
2234
|
-
for (let r = 2; r <
|
|
2235
|
-
|
|
2236
|
-
return
|
|
2237
|
-
}
|
|
2238
|
-
function
|
|
2239
|
-
return `M ${
|
|
2240
|
-
}
|
|
2241
|
-
function
|
|
2242
|
-
if (
|
|
2243
|
-
return
|
|
2244
|
-
if (
|
|
2245
|
-
const
|
|
2246
|
-
return
|
|
2230
|
+
function Xr(e) {
|
|
2231
|
+
return e.some(Fe) ? { interactiveContainer: !1, nonInteractiveContainer: !0, storeFolder: !1 } : e.some(Rn) ? { interactiveContainer: !0, nonInteractiveContainer: !1, storeFolder: !1 } : e.some(Cn) ? { interactiveContainer: !1, nonInteractiveContainer: !1, storeFolder: !0 } : { interactiveContainer: !1, nonInteractiveContainer: !1, storeFolder: !1 };
|
|
2232
|
+
}
|
|
2233
|
+
function Hr(e) {
|
|
2234
|
+
const n = e.trim().split(/[\s,]+/).map(Number);
|
|
2235
|
+
if (n.length < 4) return "";
|
|
2236
|
+
let t = `M ${n[0]} ${n[1]}`;
|
|
2237
|
+
for (let r = 2; r < n.length; r += 2)
|
|
2238
|
+
t += ` L ${n[r]} ${n[r + 1]}`;
|
|
2239
|
+
return t += " Z", t;
|
|
2240
|
+
}
|
|
2241
|
+
function Ur(e, n, t, r) {
|
|
2242
|
+
return `M ${e} ${n} L ${t} ${r}`;
|
|
2243
|
+
}
|
|
2244
|
+
function Vr(e, n) {
|
|
2245
|
+
if (e === "path")
|
|
2246
|
+
return D(n, "d") ?? void 0;
|
|
2247
|
+
if (e === "polygon" || e === "polyline") {
|
|
2248
|
+
const t = D(n, "points");
|
|
2249
|
+
return t ? Hr(t) : void 0;
|
|
2247
2250
|
}
|
|
2248
|
-
if (
|
|
2249
|
-
return
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2251
|
+
if (e === "line")
|
|
2252
|
+
return Ur(
|
|
2253
|
+
$(n, "x1"),
|
|
2254
|
+
$(n, "y1"),
|
|
2255
|
+
$(n, "x2"),
|
|
2256
|
+
$(n, "y2")
|
|
2254
2257
|
);
|
|
2255
|
-
if (
|
|
2256
|
-
const
|
|
2257
|
-
return `M ${
|
|
2258
|
+
if (e === "rect") {
|
|
2259
|
+
const t = $(n, "x"), r = $(n, "y"), o = $(n, "width"), i = $(n, "height");
|
|
2260
|
+
return `M ${t} ${r} L ${t + o} ${r} L ${t + o} ${r + i} L ${t} ${r + i} Z`;
|
|
2258
2261
|
}
|
|
2259
2262
|
}
|
|
2260
|
-
function
|
|
2261
|
-
const
|
|
2263
|
+
function Wr(e) {
|
|
2264
|
+
const n = Lr(e).replace(/<!--[\s\S]*?-->/g, ""), t = n.match(/viewBox\s*=\s*["']([^"']+)["']/i), r = jt(t == null ? void 0 : t[1]), o = [], i = [], c = [], a = [];
|
|
2262
2265
|
let s = 0;
|
|
2263
|
-
const f = () => a.some((
|
|
2266
|
+
const f = () => a.some((x) => x.routeContainer), y = () => a.some((x) => x.inBackground), l = () => {
|
|
2264
2267
|
for (let g = a.length - 1; g >= 0; g--) {
|
|
2265
2268
|
const _ = a[g].style;
|
|
2266
2269
|
if (_.fill || _.stroke || _.strokeWidth != null || _.opacity != null)
|
|
2267
2270
|
break;
|
|
2268
2271
|
}
|
|
2269
|
-
let
|
|
2272
|
+
let x = {};
|
|
2270
2273
|
for (const g of a)
|
|
2271
|
-
|
|
2272
|
-
return
|
|
2273
|
-
},
|
|
2274
|
-
for (let
|
|
2275
|
-
if (a[
|
|
2276
|
-
if (a[
|
|
2274
|
+
x = ke(x, g.style);
|
|
2275
|
+
return x;
|
|
2276
|
+
}, b = () => {
|
|
2277
|
+
for (let x = a.length - 1; x >= 0; x--) {
|
|
2278
|
+
if (a[x].nonInteractiveContainer) return !1;
|
|
2279
|
+
if (a[x].interactiveContainer || a[x].storeFolder) return !0;
|
|
2277
2280
|
}
|
|
2278
2281
|
return !1;
|
|
2279
|
-
},
|
|
2280
|
-
for (let
|
|
2281
|
-
const g = a[
|
|
2282
|
-
if (!
|
|
2282
|
+
}, u = () => a.length > 0 ? a[a.length - 1].matrix : Le, d = () => {
|
|
2283
|
+
for (let x = a.length - 1; x >= 0; x--) {
|
|
2284
|
+
const g = a[x];
|
|
2285
|
+
if (!Ae(g) && g.id) {
|
|
2283
2286
|
g.hasNamedChild = !0;
|
|
2284
2287
|
return;
|
|
2285
2288
|
}
|
|
2286
2289
|
}
|
|
2287
2290
|
}, h = () => {
|
|
2288
|
-
for (let
|
|
2289
|
-
const g = a[
|
|
2290
|
-
if (!
|
|
2291
|
+
for (let x = a.length - 1; x >= 0; x--) {
|
|
2292
|
+
const g = a[x];
|
|
2293
|
+
if (!Ae(g) && g.id)
|
|
2291
2294
|
return g;
|
|
2292
2295
|
}
|
|
2293
2296
|
return null;
|
|
2294
|
-
},
|
|
2295
|
-
if (
|
|
2296
|
-
for (const g of
|
|
2297
|
-
|
|
2297
|
+
}, m = (x) => {
|
|
2298
|
+
if (x.routeContainer) {
|
|
2299
|
+
for (const g of x.collectedPaths)
|
|
2300
|
+
tn("path", g) && p("path", g);
|
|
2298
2301
|
return;
|
|
2299
2302
|
}
|
|
2300
|
-
|
|
2301
|
-
`Group ${
|
|
2303
|
+
Ae(x) || !x.id || x.collectedPaths.length === 0 || (x.hasNamedChild && c.push(
|
|
2304
|
+
`Group ${x.id} mixes named children with ${x.collectedPaths.length} unnamed path(s); the unnamed paths were merged into a single shape "${x.id}" — give them ids if they are separate shapes`
|
|
2302
2305
|
), o.push({
|
|
2303
|
-
id:
|
|
2306
|
+
id: x.id,
|
|
2304
2307
|
tag: "g",
|
|
2305
|
-
d:
|
|
2306
|
-
interactive:
|
|
2307
|
-
style:
|
|
2308
|
+
d: x.collectedPaths.join(" "),
|
|
2309
|
+
interactive: x.inInteractive,
|
|
2310
|
+
style: ke(l(), x.style),
|
|
2311
|
+
inBackground: x.inBackground
|
|
2308
2312
|
}));
|
|
2309
|
-
},
|
|
2313
|
+
}, p = (x, g) => {
|
|
2310
2314
|
if (!g) return;
|
|
2311
|
-
const _ =
|
|
2315
|
+
const _ = x === "polyline" || x === "polygon" || x === "path" ? g.replace(/\s*Z\s*$/i, "") : g;
|
|
2312
2316
|
i.includes(_) || i.push(_);
|
|
2313
|
-
},
|
|
2314
|
-
let
|
|
2315
|
-
for (; (
|
|
2316
|
-
const
|
|
2317
|
-
if (
|
|
2317
|
+
}, I = /<(\/?)(path|polygon|polyline|line|rect|g)\b([^>]*)(\/?)>/gi;
|
|
2318
|
+
let k;
|
|
2319
|
+
for (; (k = I.exec(n)) !== null; ) {
|
|
2320
|
+
const x = k[1] === "/", g = k[2].toLowerCase(), _ = k[3] ?? "", A = k[4] === "/" || /\/\s*$/.test(_);
|
|
2321
|
+
if (x) {
|
|
2318
2322
|
if (g === "g") {
|
|
2319
|
-
const
|
|
2320
|
-
|
|
2323
|
+
const E = a.pop();
|
|
2324
|
+
E && m(E);
|
|
2321
2325
|
}
|
|
2322
2326
|
continue;
|
|
2323
2327
|
}
|
|
2324
2328
|
if (g === "g") {
|
|
2325
|
-
const
|
|
2326
|
-
|
|
2327
|
-
const
|
|
2328
|
-
id:
|
|
2329
|
-
interactiveContainer:
|
|
2330
|
-
nonInteractiveContainer:
|
|
2331
|
-
storeFolder:
|
|
2332
|
-
inInteractive:
|
|
2329
|
+
const E = D(_, "id"), w = Gr(_), { interactiveContainer: P, nonInteractiveContainer: F, storeFolder: Z } = Xr(w), ee = b();
|
|
2330
|
+
E && d();
|
|
2331
|
+
const ne = {
|
|
2332
|
+
id: E,
|
|
2333
|
+
interactiveContainer: P,
|
|
2334
|
+
nonInteractiveContainer: F,
|
|
2335
|
+
storeFolder: Z,
|
|
2336
|
+
inInteractive: P || Z || rn(_) || ee && !F,
|
|
2333
2337
|
collectedPaths: [],
|
|
2334
|
-
style:
|
|
2335
|
-
matrix:
|
|
2338
|
+
style: Qe(_),
|
|
2339
|
+
matrix: q(u(), en(D(_, "transform"))),
|
|
2336
2340
|
hasNamedChild: !1,
|
|
2337
|
-
routeContainer:
|
|
2341
|
+
routeContainer: w.some(Sn) || f(),
|
|
2342
|
+
inBackground: w.some(Yr) || y()
|
|
2338
2343
|
};
|
|
2339
|
-
A || a.push(
|
|
2344
|
+
A || a.push(ne);
|
|
2340
2345
|
continue;
|
|
2341
2346
|
}
|
|
2342
|
-
const
|
|
2347
|
+
const S = D(_, "id"), C = Vr(g, _), Y = q(u(), en(D(_, "transform"))), v = C && Fr(C, Y), z = rn(_) || b(), L = ke(l(), Qe(_)), B = D(_, "data-name");
|
|
2343
2348
|
if (f()) {
|
|
2344
|
-
|
|
2349
|
+
tn(g, C) && p(g, v);
|
|
2345
2350
|
continue;
|
|
2346
2351
|
}
|
|
2347
|
-
if (
|
|
2352
|
+
if (S != null && nn(S) || B != null && nn(B))
|
|
2348
2353
|
continue;
|
|
2349
|
-
if (
|
|
2350
|
-
|
|
2354
|
+
if (S) {
|
|
2355
|
+
d(), v && o.push({ id: S, tag: g, d: v, interactive: z, style: L, inBackground: y() });
|
|
2351
2356
|
continue;
|
|
2352
2357
|
}
|
|
2353
|
-
if (!
|
|
2354
|
-
const
|
|
2355
|
-
|
|
2358
|
+
if (!v) continue;
|
|
2359
|
+
const R = h();
|
|
2360
|
+
R ? (R.collectedPaths.push(v), !R.style.fill && L.fill && (R.style = L)) : z && (s += 1, o.push({
|
|
2356
2361
|
id: `interactive-anon-${s}`,
|
|
2357
2362
|
tag: g,
|
|
2358
|
-
d:
|
|
2363
|
+
d: v,
|
|
2359
2364
|
interactive: !0,
|
|
2360
|
-
style:
|
|
2365
|
+
style: L,
|
|
2366
|
+
inBackground: y()
|
|
2361
2367
|
}));
|
|
2362
2368
|
}
|
|
2363
2369
|
for (; a.length > 0; )
|
|
2364
|
-
|
|
2370
|
+
m(a.pop());
|
|
2365
2371
|
return { viewbox: r, elements: o, routePathDs: i, warnings: c };
|
|
2366
2372
|
}
|
|
2367
|
-
function
|
|
2368
|
-
return
|
|
2373
|
+
function Zr(e) {
|
|
2374
|
+
return e.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-|-$/g, "").slice(0, 80);
|
|
2369
2375
|
}
|
|
2370
|
-
function
|
|
2376
|
+
function jr(e, n) {
|
|
2371
2377
|
var o, i, c, a;
|
|
2372
|
-
const
|
|
2373
|
-
return
|
|
2378
|
+
const t = he(n), r = {};
|
|
2379
|
+
return t != null && t.fill ? r.fill = t.fill : (o = e.style) != null && o.fill && (r.fill = e.style.fill), t != null && t.stroke ? r.stroke = t.stroke : (i = e.style) != null && i.stroke && (r.stroke = e.style.stroke), (t == null ? void 0 : t.strokeWidth) != null ? r.strokeWidth = t.strokeWidth : ((c = e.style) == null ? void 0 : c.strokeWidth) != null && (r.strokeWidth = e.style.strokeWidth), ((a = e.style) == null ? void 0 : a.opacity) != null && (r.opacity = e.style.opacity), (t == null ? void 0 : t.extrudeHeight) != null && (r.extrudeHeight = t.extrudeHeight), r;
|
|
2374
2380
|
}
|
|
2375
|
-
function
|
|
2376
|
-
return
|
|
2381
|
+
function qr(e, n) {
|
|
2382
|
+
return e == null && n == null ? !0 : e == null || n == null ? !1 : Math.abs(e.x - n.x) < 0.01 && Math.abs(e.y - n.y) < 0.01 && Math.abs(e.width - n.width) < 0.01 && Math.abs(e.height - n.height) < 0.01;
|
|
2377
2383
|
}
|
|
2378
|
-
function
|
|
2379
|
-
const r =
|
|
2384
|
+
function Ji(e, n = "floor", t = {}) {
|
|
2385
|
+
const r = Wr(e), o = [], i = [], c = [], a = [...r.warnings], s = [];
|
|
2380
2386
|
let f = 0, y = 0, l = 0;
|
|
2381
|
-
const b =
|
|
2387
|
+
const b = t.previousViewbox != null && r.viewbox != null && !qr(t.previousViewbox, r.viewbox);
|
|
2382
2388
|
b && a.push(
|
|
2383
2389
|
"SVG viewBox differs from the stored artboard — re-upload blocked until the designer restores the original viewBox"
|
|
2384
2390
|
);
|
|
2385
2391
|
for (const u of r.elements) {
|
|
2386
|
-
if (
|
|
2387
|
-
let { kind:
|
|
2388
|
-
u.interactive && !
|
|
2392
|
+
if (vn(u.id)) continue;
|
|
2393
|
+
let { kind: d, guessed: h } = zr(u.id, n);
|
|
2394
|
+
u.interactive && !d && (d = "unit", h = !0);
|
|
2389
2395
|
const m = {
|
|
2390
2396
|
sourceSvgId: u.id,
|
|
2391
|
-
kind:
|
|
2392
|
-
guessed:
|
|
2397
|
+
kind: d,
|
|
2398
|
+
guessed: h
|
|
2393
2399
|
};
|
|
2394
|
-
if (!
|
|
2395
|
-
if (i.push(u.id),
|
|
2396
|
-
|
|
2400
|
+
if (!d)
|
|
2401
|
+
if (i.push(u.id), n === "floor")
|
|
2402
|
+
d = "decor", m.kind = "decor", m.message = "No matching prefix; imported as decor (floor mode)";
|
|
2397
2403
|
else {
|
|
2398
2404
|
m.message = "No matching prefix; skipped (outdoor decor stays in SVG)", o.push(m);
|
|
2399
2405
|
continue;
|
|
@@ -2402,28 +2408,28 @@ function qi(t, e = "floor", n = {}) {
|
|
|
2402
2408
|
a.push(`Element ${u.id} has no drawable geometry`);
|
|
2403
2409
|
continue;
|
|
2404
2410
|
}
|
|
2405
|
-
if (
|
|
2406
|
-
const
|
|
2407
|
-
if (!(!
|
|
2411
|
+
if (n === "base") {
|
|
2412
|
+
const k = he(u.id) != null;
|
|
2413
|
+
if (!(!k && (Br.includes(d) || !!u.interactive))) {
|
|
2408
2414
|
o.push({
|
|
2409
2415
|
...m,
|
|
2410
|
-
message:
|
|
2416
|
+
message: k ? "Static decoration — rendered from outdoor SVG" : "Decoration — not persisted; rendered from outdoor SVG"
|
|
2411
2417
|
});
|
|
2412
2418
|
continue;
|
|
2413
2419
|
}
|
|
2414
2420
|
}
|
|
2415
|
-
|
|
2416
|
-
const
|
|
2421
|
+
h && (c.push(m), m.message = m.message ?? "Guessed kind from interactive/fallback rule"), o.push(m), d === "walkable" && f++, d === "void" && y++, d === "unit" && l++;
|
|
2422
|
+
const p = Wt([u.d]), I = we(p);
|
|
2417
2423
|
s.push({
|
|
2418
|
-
key:
|
|
2419
|
-
kind:
|
|
2420
|
-
geometry:
|
|
2424
|
+
key: Zr(u.id),
|
|
2425
|
+
kind: d,
|
|
2426
|
+
geometry: p,
|
|
2421
2427
|
bbox: I,
|
|
2422
2428
|
sourceSvgId: u.id,
|
|
2423
|
-
style:
|
|
2429
|
+
style: jr(u, u.id)
|
|
2424
2430
|
});
|
|
2425
2431
|
}
|
|
2426
|
-
return
|
|
2432
|
+
return n === "floor" && f === 0 && a.push(
|
|
2427
2433
|
"No walkable layer found — auto-skeleton will be unavailable for this level"
|
|
2428
2434
|
), {
|
|
2429
2435
|
report: {
|
|
@@ -2441,11 +2447,11 @@ function qi(t, e = "floor", n = {}) {
|
|
|
2441
2447
|
viewBoxChanged: b
|
|
2442
2448
|
};
|
|
2443
2449
|
}
|
|
2444
|
-
function
|
|
2450
|
+
function es(e, n, t, r = {}) {
|
|
2445
2451
|
const o = r.driftThreshold ?? $r, i = new Map(
|
|
2446
|
-
|
|
2452
|
+
n.filter((s) => s.sourceSvgId).map((s) => [s.sourceSvgId, s])
|
|
2447
2453
|
), c = /* @__PURE__ */ new Set(), a = [];
|
|
2448
|
-
for (const s of
|
|
2454
|
+
for (const s of e) {
|
|
2449
2455
|
const f = i.get(s.sourceSvgId);
|
|
2450
2456
|
if (c.add(s.sourceSvgId), !f)
|
|
2451
2457
|
a.push({
|
|
@@ -2466,7 +2472,7 @@ function Qi(t, e, n, r = {}) {
|
|
|
2466
2472
|
else {
|
|
2467
2473
|
let y = "unchanged";
|
|
2468
2474
|
if (f.bbox) {
|
|
2469
|
-
const l = (f.bbox.minX + f.bbox.maxX) / 2, b = (f.bbox.minY + f.bbox.maxY) / 2, u =
|
|
2475
|
+
const l = (f.bbox.minX + f.bbox.maxX) / 2, b = (f.bbox.minY + f.bbox.maxY) / 2, u = Zt(s.geometry);
|
|
2470
2476
|
Math.hypot(u.x - l, u.y - b) > o && (y = "moved");
|
|
2471
2477
|
}
|
|
2472
2478
|
a.push({
|
|
@@ -2480,7 +2486,7 @@ function Qi(t, e, n, r = {}) {
|
|
|
2480
2486
|
});
|
|
2481
2487
|
}
|
|
2482
2488
|
}
|
|
2483
|
-
for (const s of
|
|
2489
|
+
for (const s of n)
|
|
2484
2490
|
s.sourceSvgId && !c.has(s.sourceSvgId) && a.push({
|
|
2485
2491
|
sourceSvgId: s.sourceSvgId,
|
|
2486
2492
|
change: "removed",
|
|
@@ -2490,97 +2496,97 @@ function Qi(t, e, n, r = {}) {
|
|
|
2490
2496
|
});
|
|
2491
2497
|
return {
|
|
2492
2498
|
items: a,
|
|
2493
|
-
shapes:
|
|
2494
|
-
viewbox:
|
|
2499
|
+
shapes: e,
|
|
2500
|
+
viewbox: t
|
|
2495
2501
|
};
|
|
2496
2502
|
}
|
|
2497
|
-
const
|
|
2498
|
-
function
|
|
2499
|
-
return Math.abs(
|
|
2503
|
+
const N = 1e-6, Qr = 15 * Math.PI / 180, Jr = 1e-3, ie = Math.PI * 2;
|
|
2504
|
+
function on(e, n) {
|
|
2505
|
+
return Math.abs(e.x - n.x) < N && Math.abs(e.y - n.y) < N;
|
|
2500
2506
|
}
|
|
2501
|
-
function
|
|
2502
|
-
return { x:
|
|
2507
|
+
function Se(e, n) {
|
|
2508
|
+
return { x: e.x + n.x, y: e.y + n.y };
|
|
2503
2509
|
}
|
|
2504
|
-
function
|
|
2505
|
-
return { x:
|
|
2510
|
+
function sn(e, n) {
|
|
2511
|
+
return { x: e.x - n.x, y: e.y - n.y };
|
|
2506
2512
|
}
|
|
2507
|
-
function
|
|
2508
|
-
return { x:
|
|
2513
|
+
function se(e, n) {
|
|
2514
|
+
return { x: e.x * n, y: e.y * n };
|
|
2509
2515
|
}
|
|
2510
|
-
function
|
|
2516
|
+
function Re(e, n, t) {
|
|
2511
2517
|
return {
|
|
2512
|
-
x:
|
|
2513
|
-
y:
|
|
2518
|
+
x: e.x + Math.cos(t) * n,
|
|
2519
|
+
y: e.y + Math.sin(t) * n
|
|
2514
2520
|
};
|
|
2515
2521
|
}
|
|
2516
|
-
function
|
|
2517
|
-
const
|
|
2518
|
-
for (const
|
|
2519
|
-
const r =
|
|
2520
|
-
r &&
|
|
2522
|
+
function eo(e) {
|
|
2523
|
+
const n = [];
|
|
2524
|
+
for (const t of e) {
|
|
2525
|
+
const r = n[n.length - 1];
|
|
2526
|
+
r && on(r, t) || n.push(t);
|
|
2521
2527
|
}
|
|
2522
|
-
return
|
|
2528
|
+
return n.length >= 2 && on(n[0], n[n.length - 1]) && n.pop(), n;
|
|
2523
2529
|
}
|
|
2524
|
-
function
|
|
2525
|
-
const
|
|
2526
|
-
if (r.length < 3 ||
|
|
2530
|
+
function ns(e, n) {
|
|
2531
|
+
const t = fn(n), r = eo(e);
|
|
2532
|
+
if (r.length < 3 || t <= 0) return e;
|
|
2527
2533
|
const o = r.length, i = new Array(o), c = new Array(o), a = new Array(o), s = new Array(o), f = new Array(o).fill(0), y = new Array(o).fill(0), l = new Array(o).fill(!1);
|
|
2528
2534
|
for (let u = 0; u < o; u++) {
|
|
2529
|
-
const
|
|
2530
|
-
if (a[u] = I,
|
|
2535
|
+
const d = r[(u - 1 + o) % o], h = r[u], m = r[(u + 1) % o], p = T(d, h), I = T(h, m);
|
|
2536
|
+
if (a[u] = I, p < N || I < N) {
|
|
2531
2537
|
i[u] = { x: 1, y: 0 }, c[u] = { x: 1, y: 0 }, s[u] = 0;
|
|
2532
2538
|
continue;
|
|
2533
2539
|
}
|
|
2534
|
-
i[u] =
|
|
2535
|
-
const
|
|
2536
|
-
s[u] = Math.atan2(
|
|
2537
|
-
const
|
|
2538
|
-
if (
|
|
2539
|
-
const
|
|
2540
|
-
if (
|
|
2541
|
-
const S =
|
|
2540
|
+
i[u] = se(sn(h, d), 1 / p), c[u] = se(sn(m, h), 1 / I);
|
|
2541
|
+
const k = i[u].x * c[u].y - i[u].y * c[u].x, x = i[u].x * c[u].x + i[u].y * c[u].y;
|
|
2542
|
+
s[u] = Math.atan2(k, x);
|
|
2543
|
+
const g = Math.abs(s[u]);
|
|
2544
|
+
if (g < Qr) continue;
|
|
2545
|
+
const _ = Math.PI - g, A = Math.tan(_ / 2);
|
|
2546
|
+
if (A < N || _ <= N || _ >= Math.PI - N) continue;
|
|
2547
|
+
const S = t / A;
|
|
2542
2548
|
f[u] = S, y[u] = S, l[u] = !0;
|
|
2543
2549
|
}
|
|
2544
2550
|
for (let u = 0; u < o; u++) {
|
|
2545
|
-
const
|
|
2546
|
-
if (
|
|
2547
|
-
const
|
|
2548
|
-
y[u] *=
|
|
2551
|
+
const d = (u + 1) % o, h = y[u] + f[d], m = Math.max(0, a[u] - Jr);
|
|
2552
|
+
if (h <= m || h <= N) continue;
|
|
2553
|
+
const p = m / h;
|
|
2554
|
+
y[u] *= p, f[d] *= p;
|
|
2549
2555
|
}
|
|
2550
2556
|
const b = [];
|
|
2551
2557
|
for (let u = 0; u < o; u++) {
|
|
2552
|
-
const
|
|
2553
|
-
if (!l[u] || I <
|
|
2554
|
-
b.push({ ...
|
|
2558
|
+
const d = r[u], h = Math.min(f[u], y[u]), m = Math.abs(s[u]), p = Math.PI - m, I = h * Math.tan(p / 2);
|
|
2559
|
+
if (!l[u] || I < N || h < N) {
|
|
2560
|
+
b.push({ ...d });
|
|
2555
2561
|
continue;
|
|
2556
2562
|
}
|
|
2557
|
-
const
|
|
2558
|
-
x: -i[u].y *
|
|
2559
|
-
y: i[u].x *
|
|
2560
|
-
}),
|
|
2561
|
-
for (let
|
|
2562
|
-
const
|
|
2563
|
-
b.push(
|
|
2563
|
+
const k = Se(d, se(i[u], -h)), x = Se(d, se(c[u], h)), g = s[u] > 0 ? 1 : -1, _ = Se(k, {
|
|
2564
|
+
x: -i[u].y * g * I,
|
|
2565
|
+
y: i[u].x * g * I
|
|
2566
|
+
}), A = Math.atan2(k.y - _.y, k.x - _.x), S = Math.atan2(x.y - _.y, x.x - _.x), C = (S - A + ie) % ie, Y = (A - S + ie) % ie, v = Re(_, I, A + C / 2), z = Re(_, I, A - Y / 2), L = T(v, d) <= T(z, d), B = L ? C : Y, R = Math.max(8, Math.min(28, Math.ceil(B * I / 2)));
|
|
2567
|
+
for (let E = 0; E <= R; E++) {
|
|
2568
|
+
const w = E / R, P = L ? A + B * w : A - B * w;
|
|
2569
|
+
b.push(Re(_, I, P));
|
|
2564
2570
|
}
|
|
2565
2571
|
}
|
|
2566
2572
|
return b;
|
|
2567
2573
|
}
|
|
2568
|
-
function ts(
|
|
2569
|
-
const
|
|
2570
|
-
|
|
2574
|
+
function ts(e) {
|
|
2575
|
+
const n = Jn(e.theme), t = new Map(
|
|
2576
|
+
e.assignments.map((s) => [s.shapeId, s])
|
|
2571
2577
|
), r = new Map(
|
|
2572
|
-
(
|
|
2573
|
-
), o =
|
|
2574
|
-
const f =
|
|
2575
|
-
const b =
|
|
2578
|
+
(e.retailers ?? []).map((s) => [s.id, s])
|
|
2579
|
+
), o = e.resolveSvgUrl ?? ((s) => s), i = e.levels.filter((s) => s.isActive).sort((s, f) => s.ordering - f.ordering).map((s) => {
|
|
2580
|
+
const f = e.shapes.filter((l) => l.levelId === s.id).map((l) => {
|
|
2581
|
+
const b = gn(l.geometry), u = t.get(l.id) ?? null, d = (u == null ? void 0 : u.retailerId) != null ? r.get(u.retailerId) ?? null : null, h = d && !e.persistMediaKeys ? { ...d, logoKey: null } : d;
|
|
2576
2582
|
return {
|
|
2577
2583
|
...l,
|
|
2578
2584
|
geometry: b,
|
|
2579
|
-
bbox: b === l.geometry ? l.bbox :
|
|
2585
|
+
bbox: b === l.geometry ? l.bbox : we(b),
|
|
2580
2586
|
assignment: u,
|
|
2581
|
-
label:
|
|
2587
|
+
label: yn(l, u, h)
|
|
2582
2588
|
};
|
|
2583
|
-
}), y =
|
|
2589
|
+
}), y = e.anchors.filter((l) => l.levelId === s.id);
|
|
2584
2590
|
return {
|
|
2585
2591
|
id: s.id,
|
|
2586
2592
|
buildingId: s.buildingId,
|
|
@@ -2594,430 +2600,438 @@ function ts(t) {
|
|
|
2594
2600
|
shapes: f,
|
|
2595
2601
|
anchors: y
|
|
2596
2602
|
};
|
|
2597
|
-
}), { nodes: c, edges: a } =
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2603
|
+
}), { nodes: c, edges: a } = tr(
|
|
2604
|
+
e.anchors,
|
|
2605
|
+
e.edges,
|
|
2606
|
+
e.connectors
|
|
2601
2607
|
);
|
|
2602
2608
|
return {
|
|
2603
2609
|
version: 2,
|
|
2604
|
-
revisionId:
|
|
2605
|
-
revisionNumber:
|
|
2606
|
-
centerId:
|
|
2607
|
-
mapId:
|
|
2608
|
-
theme:
|
|
2609
|
-
baseSvgUrl:
|
|
2610
|
-
baseViewbox:
|
|
2611
|
-
buildings:
|
|
2610
|
+
revisionId: e.revisionId,
|
|
2611
|
+
revisionNumber: e.revisionNumber,
|
|
2612
|
+
centerId: e.centerId,
|
|
2613
|
+
mapId: e.mapId,
|
|
2614
|
+
theme: n,
|
|
2615
|
+
baseSvgUrl: e.baseSvgUrl,
|
|
2616
|
+
baseViewbox: e.baseViewbox,
|
|
2617
|
+
buildings: e.buildings,
|
|
2612
2618
|
levels: i,
|
|
2613
|
-
connectors:
|
|
2614
|
-
amenities:
|
|
2615
|
-
retailers: (
|
|
2616
|
-
(s) =>
|
|
2619
|
+
connectors: e.connectors,
|
|
2620
|
+
amenities: e.amenities.filter((s) => s.isActive),
|
|
2621
|
+
retailers: (e.retailers ?? []).map(
|
|
2622
|
+
(s) => no(s, !!e.persistMediaKeys)
|
|
2617
2623
|
),
|
|
2618
2624
|
graph: { nodes: c, edges: a },
|
|
2619
|
-
responsiveOverrides:
|
|
2620
|
-
georeference:
|
|
2621
|
-
publishedAt:
|
|
2625
|
+
responsiveOverrides: e.responsiveOverrides,
|
|
2626
|
+
georeference: tt(e.georeference),
|
|
2627
|
+
publishedAt: e.publishedAt ?? (/* @__PURE__ */ new Date()).toISOString()
|
|
2622
2628
|
};
|
|
2623
2629
|
}
|
|
2624
|
-
function
|
|
2630
|
+
function no(e, n) {
|
|
2625
2631
|
return {
|
|
2626
|
-
id:
|
|
2627
|
-
name:
|
|
2628
|
-
location:
|
|
2629
|
-
logoUrl:
|
|
2630
|
-
logoKey:
|
|
2631
|
-
phone:
|
|
2632
|
-
description:
|
|
2633
|
-
globalRetailerId:
|
|
2632
|
+
id: e.id,
|
|
2633
|
+
name: e.name,
|
|
2634
|
+
location: e.location ?? null,
|
|
2635
|
+
logoUrl: n ? null : e.logoUrl ?? null,
|
|
2636
|
+
logoKey: n ? e.logoKey ?? null : null,
|
|
2637
|
+
phone: e.phone ?? null,
|
|
2638
|
+
description: e.description ?? null,
|
|
2639
|
+
globalRetailerId: e.globalRetailerId ?? null
|
|
2634
2640
|
};
|
|
2635
2641
|
}
|
|
2636
|
-
function
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2642
|
+
function to(e, n) {
|
|
2643
|
+
return e === n ? !0 : !e || !n ? !1 : e.text === n.text && e.imageKey === n.imageKey && e.size === n.size && e.rotate === n.rotate && e.offsetX === n.offsetX && e.offsetY === n.offsetY && e.color === n.color && e.align === n.align && e.autoFit === n.autoFit;
|
|
2644
|
+
}
|
|
2645
|
+
function rs(e) {
|
|
2646
|
+
const n = new Map(
|
|
2647
|
+
(e.retailers ?? []).map((o) => [o.id, o])
|
|
2648
|
+
);
|
|
2649
|
+
let t = !1;
|
|
2650
|
+
const r = e.levels.map((o) => {
|
|
2651
|
+
let i = !1;
|
|
2652
|
+
const c = o.shapes.map((a) => {
|
|
2653
|
+
var d;
|
|
2654
|
+
const s = gn(a.geometry), f = (d = a.assignment) == null ? void 0 : d.retailerId, y = f != null ? n.get(f) ?? null : null, l = yn(a, a.assignment, y), b = s !== a.geometry, u = !to(l, a.label);
|
|
2655
|
+
return !b && !u ? a : (i = !0, {
|
|
2656
|
+
...a,
|
|
2657
|
+
geometry: s,
|
|
2658
|
+
bbox: b ? we(s) : a.bbox,
|
|
2659
|
+
label: u ? l : a.label
|
|
2647
2660
|
});
|
|
2648
2661
|
});
|
|
2649
|
-
return
|
|
2662
|
+
return i ? (t = !0, { ...o, shapes: c }) : o;
|
|
2650
2663
|
});
|
|
2651
|
-
return
|
|
2664
|
+
return t ? { ...e, levels: r } : e;
|
|
2652
2665
|
}
|
|
2653
|
-
const
|
|
2666
|
+
const os = [
|
|
2654
2667
|
"admin_portal",
|
|
2655
2668
|
"desktop",
|
|
2656
2669
|
"tablet",
|
|
2657
2670
|
"mobile",
|
|
2658
2671
|
"display_app"
|
|
2659
|
-
],
|
|
2672
|
+
], is = [
|
|
2660
2673
|
{ id: "admin_portal", label: "Admin Portal" },
|
|
2661
2674
|
{ id: "desktop", label: "Desktop" },
|
|
2662
2675
|
{ id: "tablet", label: "Tablet" },
|
|
2663
2676
|
{ id: "mobile", label: "Mobile" },
|
|
2664
2677
|
{ id: "display_app", label: "Kiosk App" }
|
|
2665
|
-
],
|
|
2666
|
-
function
|
|
2667
|
-
return
|
|
2678
|
+
], ro = 1024, oo = 767;
|
|
2679
|
+
function ss(e) {
|
|
2680
|
+
return e === "admin_portal" || e === "display_app" || e === "desktop" || e === "tablet" || e === "mobile";
|
|
2668
2681
|
}
|
|
2669
|
-
function
|
|
2670
|
-
return
|
|
2682
|
+
function cs(e, n) {
|
|
2683
|
+
return e === "PORTAL_ASSIGN" ? "admin_portal" : e === "DISPLAY_APP" ? "display_app" : n > ro ? "desktop" : n > oo ? "tablet" : "mobile";
|
|
2671
2684
|
}
|
|
2672
|
-
function
|
|
2673
|
-
return `${
|
|
2685
|
+
function io(e, n) {
|
|
2686
|
+
return `${e ?? "none"}:${n}`;
|
|
2674
2687
|
}
|
|
2675
|
-
function
|
|
2676
|
-
return `${
|
|
2688
|
+
function as(e, n, t) {
|
|
2689
|
+
return `${t ? "capture" : "viewer"}:${io(e, n)}`;
|
|
2677
2690
|
}
|
|
2678
|
-
function
|
|
2679
|
-
return
|
|
2691
|
+
function cn(e) {
|
|
2692
|
+
return e ? e.x === 0 && e.y === 0 && e.z === 0 : !0;
|
|
2680
2693
|
}
|
|
2681
|
-
function
|
|
2682
|
-
var
|
|
2683
|
-
if (!
|
|
2684
|
-
const
|
|
2685
|
-
return typeof
|
|
2686
|
-
}
|
|
2687
|
-
function
|
|
2688
|
-
if (!(
|
|
2689
|
-
const r =
|
|
2690
|
-
(o) => o.levelId ===
|
|
2694
|
+
function En(e) {
|
|
2695
|
+
var t;
|
|
2696
|
+
if (!e) return !0;
|
|
2697
|
+
const n = (t = e.camera) == null ? void 0 : t.zoom;
|
|
2698
|
+
return typeof n == "number" && Number.isFinite(n) && n > 0 ? !1 : cn(e.camera) && cn(e.controls);
|
|
2699
|
+
}
|
|
2700
|
+
function ls(e, n, t) {
|
|
2701
|
+
if (!(e != null && e.length) || n == null) return null;
|
|
2702
|
+
const r = e.find(
|
|
2703
|
+
(o) => o.levelId === n && o.device === t
|
|
2691
2704
|
);
|
|
2692
|
-
return !r ||
|
|
2705
|
+
return !r || En(r) ? null : r;
|
|
2693
2706
|
}
|
|
2694
|
-
function
|
|
2695
|
-
const
|
|
2707
|
+
function us(e) {
|
|
2708
|
+
const n = e.camera.zoom;
|
|
2696
2709
|
return {
|
|
2697
|
-
zoom: typeof
|
|
2698
|
-
position: [
|
|
2699
|
-
target: [
|
|
2710
|
+
zoom: typeof n == "number" && Number.isFinite(n) && n > 0 ? n : 0,
|
|
2711
|
+
position: [e.camera.x, e.camera.y, e.camera.z],
|
|
2712
|
+
target: [e.controls.x, e.controls.y, e.controls.z]
|
|
2700
2713
|
};
|
|
2701
2714
|
}
|
|
2702
|
-
function
|
|
2715
|
+
function fs(e) {
|
|
2703
2716
|
return {
|
|
2704
2717
|
camera: {
|
|
2705
|
-
x:
|
|
2706
|
-
y:
|
|
2707
|
-
z:
|
|
2708
|
-
zoom:
|
|
2718
|
+
x: e.position[0],
|
|
2719
|
+
y: e.position[1],
|
|
2720
|
+
z: e.position[2],
|
|
2721
|
+
zoom: e.zoom
|
|
2709
2722
|
},
|
|
2710
2723
|
controls: {
|
|
2711
|
-
x:
|
|
2712
|
-
y:
|
|
2713
|
-
z:
|
|
2724
|
+
x: e.target[0],
|
|
2725
|
+
y: e.target[1],
|
|
2726
|
+
z: e.target[2]
|
|
2714
2727
|
}
|
|
2715
2728
|
};
|
|
2716
2729
|
}
|
|
2717
|
-
const
|
|
2730
|
+
const so = {
|
|
2718
2731
|
x: 0,
|
|
2719
2732
|
y: 0,
|
|
2720
2733
|
z: 0,
|
|
2721
2734
|
zoom: 0
|
|
2722
|
-
},
|
|
2723
|
-
function
|
|
2735
|
+
}, co = { x: 0, y: 0, z: 0 };
|
|
2736
|
+
function ds(e, n) {
|
|
2724
2737
|
return {
|
|
2725
|
-
levelId:
|
|
2726
|
-
device:
|
|
2727
|
-
camera: { ...
|
|
2728
|
-
controls: { ...
|
|
2738
|
+
levelId: e,
|
|
2739
|
+
device: n,
|
|
2740
|
+
camera: { ...so },
|
|
2741
|
+
controls: { ...co }
|
|
2729
2742
|
};
|
|
2730
2743
|
}
|
|
2731
|
-
function
|
|
2732
|
-
const
|
|
2733
|
-
id:
|
|
2734
|
-
mapId:
|
|
2735
|
-
levelId:
|
|
2736
|
-
device:
|
|
2737
|
-
camera:
|
|
2738
|
-
controls:
|
|
2739
|
-
}, r =
|
|
2740
|
-
(i) => i.levelId ===
|
|
2744
|
+
function ao(e, n) {
|
|
2745
|
+
const t = {
|
|
2746
|
+
id: n.id ?? 0,
|
|
2747
|
+
mapId: n.mapId ?? 0,
|
|
2748
|
+
levelId: n.levelId,
|
|
2749
|
+
device: n.device,
|
|
2750
|
+
camera: n.camera,
|
|
2751
|
+
controls: n.controls
|
|
2752
|
+
}, r = e.findIndex(
|
|
2753
|
+
(i) => i.levelId === n.levelId && i.device === n.device
|
|
2741
2754
|
);
|
|
2742
|
-
if (r < 0) return [...
|
|
2743
|
-
const o =
|
|
2755
|
+
if (r < 0) return [...e, t];
|
|
2756
|
+
const o = e.slice();
|
|
2744
2757
|
return o[r] = {
|
|
2745
|
-
...
|
|
2746
|
-
...
|
|
2747
|
-
id:
|
|
2748
|
-
mapId:
|
|
2758
|
+
...e[r],
|
|
2759
|
+
...t,
|
|
2760
|
+
id: n.id ?? e[r].id,
|
|
2761
|
+
mapId: n.mapId ?? e[r].mapId
|
|
2749
2762
|
}, o;
|
|
2750
2763
|
}
|
|
2751
|
-
function
|
|
2752
|
-
let
|
|
2753
|
-
for (const r of
|
|
2754
|
-
if (
|
|
2755
|
-
|
|
2764
|
+
function hs(e, n) {
|
|
2765
|
+
let t = e;
|
|
2766
|
+
for (const r of n) {
|
|
2767
|
+
if (En(r)) {
|
|
2768
|
+
t = t.filter(
|
|
2756
2769
|
(o) => !(o.levelId === r.levelId && o.device === r.device)
|
|
2757
2770
|
);
|
|
2758
2771
|
continue;
|
|
2759
2772
|
}
|
|
2760
|
-
|
|
2773
|
+
t = ao(t, r);
|
|
2761
2774
|
}
|
|
2762
|
-
return
|
|
2775
|
+
return t;
|
|
2763
2776
|
}
|
|
2764
2777
|
export {
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2778
|
+
bt as $,
|
|
2779
|
+
ut as A,
|
|
2780
|
+
Ko as B,
|
|
2781
|
+
at as C,
|
|
2782
|
+
ye as D,
|
|
2783
|
+
so as E,
|
|
2784
|
+
ve as F,
|
|
2785
|
+
kr as G,
|
|
2786
|
+
hi as H,
|
|
2787
|
+
ho as I,
|
|
2788
|
+
gi as J,
|
|
2789
|
+
Xo as K,
|
|
2790
|
+
So as L,
|
|
2791
|
+
ni as M,
|
|
2792
|
+
Pt as N,
|
|
2793
|
+
Wo as O,
|
|
2781
2794
|
Nr as P,
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
|
|
2795
|
+
Xt as Q,
|
|
2796
|
+
ro as R,
|
|
2797
|
+
Ot as S,
|
|
2798
|
+
Ne as T,
|
|
2799
|
+
fe as U,
|
|
2800
|
+
bo as V,
|
|
2801
|
+
an as W,
|
|
2802
|
+
Ze as X,
|
|
2803
|
+
ht as Y,
|
|
2804
|
+
gt as Z,
|
|
2805
|
+
M as _,
|
|
2806
|
+
ko as a,
|
|
2807
|
+
cn as a$,
|
|
2808
|
+
mn as a0,
|
|
2809
|
+
_t as a1,
|
|
2810
|
+
zo as a2,
|
|
2811
|
+
wo as a3,
|
|
2812
|
+
Bo as a4,
|
|
2813
|
+
Ge as a5,
|
|
2814
|
+
Bt as a6,
|
|
2815
|
+
pi as a7,
|
|
2816
|
+
ki as a8,
|
|
2804
2817
|
ti as a9,
|
|
2805
|
-
|
|
2818
|
+
ns as aA,
|
|
2806
2819
|
ur as aB,
|
|
2807
2820
|
or as aC,
|
|
2808
2821
|
fr as aD,
|
|
2809
|
-
|
|
2822
|
+
ls as aE,
|
|
2810
2823
|
ar as aF,
|
|
2811
2824
|
lr as aG,
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
|
|
2825
|
+
ui as aH,
|
|
2826
|
+
mi as aI,
|
|
2827
|
+
Jo as aJ,
|
|
2828
|
+
me as aK,
|
|
2829
|
+
Xi as aL,
|
|
2830
|
+
we as aM,
|
|
2831
|
+
Zt as aN,
|
|
2832
|
+
Tt as aO,
|
|
2833
|
+
Mt as aP,
|
|
2834
|
+
Ct as aQ,
|
|
2835
|
+
Vo as aR,
|
|
2836
|
+
Ji as aS,
|
|
2824
2837
|
Lr as aT,
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
|
|
2838
|
+
pn as aU,
|
|
2839
|
+
Zi as aV,
|
|
2840
|
+
mt as aW,
|
|
2841
|
+
Yr as aX,
|
|
2842
|
+
_o as aY,
|
|
2843
|
+
ss as aZ,
|
|
2844
|
+
En as a_,
|
|
2845
|
+
Wt as aa,
|
|
2846
|
+
Go as ab,
|
|
2847
|
+
hn as ac,
|
|
2848
|
+
$t as ad,
|
|
2849
|
+
Ao as ae,
|
|
2850
|
+
Qn as af,
|
|
2851
|
+
fn as ag,
|
|
2852
|
+
zr as ah,
|
|
2853
|
+
Eo as ai,
|
|
2854
|
+
Et as aj,
|
|
2855
|
+
mo as ak,
|
|
2843
2856
|
ts as al,
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
|
|
2857
|
+
tr as am,
|
|
2858
|
+
$o as an,
|
|
2859
|
+
fo as ao,
|
|
2860
|
+
Te as ap,
|
|
2861
|
+
Lo as aq,
|
|
2862
|
+
wt as ar,
|
|
2863
|
+
cs as as,
|
|
2864
|
+
es as at,
|
|
2865
|
+
Si as au,
|
|
2866
|
+
T as av,
|
|
2867
|
+
ds as aw,
|
|
2868
|
+
No as ax,
|
|
2869
|
+
Ve as ay,
|
|
2870
|
+
qe as az,
|
|
2871
|
+
ct as b,
|
|
2872
|
+
de as b$,
|
|
2873
|
+
st as b0,
|
|
2874
|
+
it as b1,
|
|
2875
|
+
Vt as b2,
|
|
2876
|
+
pt as b3,
|
|
2877
|
+
Tr as b4,
|
|
2878
|
+
Rn as b5,
|
|
2879
|
+
vn as b6,
|
|
2880
|
+
si as b7,
|
|
2881
|
+
Fe as b8,
|
|
2882
|
+
X as b9,
|
|
2883
|
+
J as bA,
|
|
2884
|
+
un as bB,
|
|
2885
|
+
rs as bC,
|
|
2886
|
+
Hi as bD,
|
|
2887
|
+
yo as bE,
|
|
2888
|
+
xo as bF,
|
|
2889
|
+
us as bG,
|
|
2890
|
+
Ye as bH,
|
|
2891
|
+
Do as bI,
|
|
2892
|
+
tt as bJ,
|
|
2893
|
+
To as bK,
|
|
2894
|
+
Wr as bL,
|
|
2895
|
+
en as bM,
|
|
2896
|
+
jt as bN,
|
|
2897
|
+
In as bO,
|
|
2898
|
+
zt as bP,
|
|
2899
|
+
xi as bQ,
|
|
2900
|
+
He as bR,
|
|
2901
|
+
Xe as bS,
|
|
2902
|
+
vt as bT,
|
|
2903
|
+
fs as bU,
|
|
2904
|
+
Qt as bV,
|
|
2905
|
+
ue as bW,
|
|
2906
|
+
yn as bX,
|
|
2907
|
+
Qe as bY,
|
|
2908
|
+
Qi as bZ,
|
|
2909
|
+
he as b_,
|
|
2910
|
+
Sn as ba,
|
|
2911
|
+
tn as bb,
|
|
2912
|
+
nn as bc,
|
|
2913
|
+
Ho as bd,
|
|
2914
|
+
Cn as be,
|
|
2915
|
+
W as bf,
|
|
2916
|
+
Me as bg,
|
|
2917
|
+
Gn as bh,
|
|
2918
|
+
Yt as bi,
|
|
2919
|
+
At as bj,
|
|
2920
|
+
Yo as bk,
|
|
2921
|
+
Co as bl,
|
|
2922
|
+
vo as bm,
|
|
2923
|
+
St as bn,
|
|
2924
|
+
oi as bo,
|
|
2925
|
+
sr as bp,
|
|
2926
|
+
Oo as bq,
|
|
2927
|
+
ke as br,
|
|
2928
|
+
hs as bs,
|
|
2929
|
+
Jn as bt,
|
|
2930
|
+
Oi as bu,
|
|
2931
|
+
q as bv,
|
|
2932
|
+
bi as bw,
|
|
2933
|
+
qo as bx,
|
|
2934
|
+
gn as by,
|
|
2935
|
+
Ro as bz,
|
|
2923
2936
|
V as c,
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
|
|
2930
|
-
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
|
|
2937
|
-
|
|
2938
|
-
|
|
2937
|
+
Ni as c$,
|
|
2938
|
+
$e as c0,
|
|
2939
|
+
Fo as c1,
|
|
2940
|
+
Po as c2,
|
|
2941
|
+
Ar as c3,
|
|
2942
|
+
ji as c4,
|
|
2943
|
+
io as c5,
|
|
2944
|
+
as as c6,
|
|
2945
|
+
Mo as c7,
|
|
2946
|
+
Nt as c8,
|
|
2947
|
+
qt as c9,
|
|
2948
|
+
eo as cA,
|
|
2949
|
+
ao as cB,
|
|
2950
|
+
di as cC,
|
|
2951
|
+
Ue as cD,
|
|
2939
2952
|
ii as cE,
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
|
-
|
|
2952
|
-
|
|
2953
|
-
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
|
|
2953
|
+
ci as cF,
|
|
2954
|
+
xn as cG,
|
|
2955
|
+
On as cH,
|
|
2956
|
+
Ir as cI,
|
|
2957
|
+
li as cJ,
|
|
2958
|
+
Qo as cK,
|
|
2959
|
+
Lt as cL,
|
|
2960
|
+
Kt as cM,
|
|
2961
|
+
fi as cN,
|
|
2962
|
+
_r as cO,
|
|
2963
|
+
qi as cP,
|
|
2964
|
+
Vi as cQ,
|
|
2965
|
+
Wi as cR,
|
|
2966
|
+
ai as cS,
|
|
2967
|
+
br as cT,
|
|
2968
|
+
Uo as cU,
|
|
2969
|
+
zi as cV,
|
|
2970
|
+
Yi as cW,
|
|
2971
|
+
xr as cX,
|
|
2972
|
+
Bi as cY,
|
|
2973
|
+
$i as cZ,
|
|
2961
2974
|
Ei as c_,
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
2975
|
+
Rt as ca,
|
|
2976
|
+
Be as cb,
|
|
2977
|
+
_i as cc,
|
|
2978
|
+
Q as cd,
|
|
2979
|
+
_n as ce,
|
|
2980
|
+
Ri as cf,
|
|
2981
|
+
go as cg,
|
|
2982
|
+
Ft as ch,
|
|
2983
|
+
vi as ci,
|
|
2984
|
+
Ai as cj,
|
|
2985
|
+
Sr as ck,
|
|
2986
|
+
ei as cl,
|
|
2987
|
+
cr as cm,
|
|
2988
|
+
Ii as cn,
|
|
2989
|
+
po as co,
|
|
2990
|
+
Ci as cp,
|
|
2991
|
+
Or as cq,
|
|
2992
|
+
Yn as cr,
|
|
2993
|
+
U as cs,
|
|
2994
|
+
Kn as ct,
|
|
2995
|
+
Xn as cu,
|
|
2996
|
+
zn as cv,
|
|
2997
|
+
bn as cw,
|
|
2998
|
+
Fr as cx,
|
|
2999
|
+
ri as cy,
|
|
3000
|
+
Ee as cz,
|
|
3001
|
+
Io as d,
|
|
3002
|
+
Gi as d0,
|
|
3003
|
+
hr as d1,
|
|
3004
|
+
Fi as d2,
|
|
3005
|
+
Mi as d3,
|
|
3006
|
+
Li as d4,
|
|
3007
|
+
pr as d5,
|
|
3008
|
+
Di as d6,
|
|
3009
|
+
Pi as d7,
|
|
3010
|
+
wi as d8,
|
|
3011
|
+
Ki as d9,
|
|
3012
|
+
Ui as da,
|
|
3013
|
+
yi as db,
|
|
3014
|
+
kn as e,
|
|
3015
|
+
co as f,
|
|
3016
|
+
le as g,
|
|
3017
|
+
Le as h,
|
|
3004
3018
|
$r as i,
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
|
|
3020
|
-
|
|
3021
|
-
|
|
3019
|
+
Br as j,
|
|
3020
|
+
et as k,
|
|
3021
|
+
ot as l,
|
|
3022
|
+
jo as m,
|
|
3023
|
+
Zo as n,
|
|
3024
|
+
Dn as o,
|
|
3025
|
+
os as p,
|
|
3026
|
+
is as q,
|
|
3027
|
+
oo as r,
|
|
3028
|
+
lt as s,
|
|
3029
|
+
Ti as t,
|
|
3030
|
+
An as u,
|
|
3031
|
+
xe as v,
|
|
3032
|
+
Pn as w,
|
|
3033
|
+
ln as x,
|
|
3034
|
+
Fn as y,
|
|
3035
|
+
nr as z
|
|
3022
3036
|
};
|
|
3023
3037
|
//# sourceMappingURL=responsive.js.map
|