@eyeon/map 2.0.28 → 2.0.32

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