@arenarium/maps 1.2.28 → 1.2.29

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 (2) hide show
  1. package/dist/main.js +192 -190
  2. package/package.json +2 -2
package/dist/main.js CHANGED
@@ -214,8 +214,8 @@ class ot {
214
214
  return this.blockL.intersects(e) || this.blockR.intersects(e);
215
215
  }
216
216
  }
217
- const Ns = 75, Cs = 150, Dn = 25e-5, Rs = 1e6, Ds = 2e6, On = 3e6, ar = 10, qt = 16, or = 2, Fe = 0.5, Gt = "white", Os = "darkgreen", lr = "drop-shadow(0px 2px 2px rgba(0, 0, 0, 0.5))", $n = 1024;
218
- class $s {
217
+ const Ns = 75, Cs = 150, Dn = 25e-5, Rs = 1e6, Ds = 2e6, On = 3e6, ar = 10, qt = 16, or = 2, Fe = 0.5, Gt = "white", Os = "darkgreen", lr = "drop-shadow(0px 2px 2px rgba(0, 0, 0, 0.5))", zn = 1024;
218
+ class zs {
219
219
  // Services
220
220
  provider;
221
221
  // State
@@ -223,12 +223,12 @@ class $s {
223
223
  markersVisible;
224
224
  markerVisibilityTreeWorker;
225
225
  markerVisibilityTreeWorkerClient;
226
- markerVisibilityTreeLimit = $n;
226
+ markerVisibilityTreeLimit = zn;
227
227
  constructor(e) {
228
228
  this.provider = e;
229
229
  }
230
230
  set configuration(e) {
231
- this.markerVisibilityTreeWorkerClient?.invoke("configure", e), this.markerVisibilityTreeLimit = e?.process?.visibility?.limit ?? $n;
231
+ this.markerVisibilityTreeWorkerClient?.invoke("configure", e), this.markerVisibilityTreeLimit = e?.process?.visibility?.limit ?? zn;
232
232
  }
233
233
  getMarkers() {
234
234
  return Array.from(this.markersVisible ?? []);
@@ -256,8 +256,8 @@ class $s {
256
256
  }
257
257
  }
258
258
  const Kt = !1;
259
- var zs = Array.isArray, Ls = Array.prototype.indexOf, He = Array.prototype.includes, Fs = Array.from, Vs = Object.defineProperty, it = Object.getOwnPropertyDescriptor, js = Object.prototype, Us = Array.prototype, Bs = Object.getPrototypeOf, zn = Object.isExtensible;
260
- const Ws = () => {
259
+ var Ls = Array.isArray, $s = Array.prototype.indexOf, He = Array.prototype.includes, Fs = Array.from, Vs = Object.defineProperty, it = Object.getOwnPropertyDescriptor, js = Object.prototype, Us = Array.prototype, Ws = Object.getPrototypeOf, Ln = Object.isExtensible;
260
+ const Bs = () => {
261
261
  };
262
262
  function Hs(t) {
263
263
  for (var e = 0; e < t.length; e++)
@@ -269,7 +269,7 @@ function ur() {
269
269
  });
270
270
  return { promise: n, resolve: t, reject: e };
271
271
  }
272
- const O = 2, lt = 4, At = 8, cr = 1 << 24, ge = 16, Ee = 32, $e = 64, fr = 128, G = 512, D = 1024, F = 2048, se = 4096, ye = 8192, ke = 16384, Nt = 32768, St = 65536, Ln = 1 << 17, hr = 1 << 18, Ge = 1 << 19, qs = 1 << 20, Oe = 65536, Qt = 1 << 21, an = 1 << 22, be = 1 << 23, Mt = /* @__PURE__ */ Symbol("$state"), Te = new class extends Error {
272
+ const O = 2, lt = 4, At = 8, cr = 1 << 24, ge = 16, Ee = 32, ze = 64, fr = 128, G = 512, D = 1024, F = 2048, se = 4096, ye = 8192, ke = 16384, Nt = 32768, St = 65536, $n = 1 << 17, hr = 1 << 18, Ge = 1 << 19, qs = 1 << 20, Oe = 65536, Qt = 1 << 21, an = 1 << 22, be = 1 << 23, Mt = /* @__PURE__ */ Symbol("$state"), Te = new class extends Error {
273
273
  name = "StaleReactionError";
274
274
  message = "The reaction that called `getAbortSignal()` was re-run or destroyed";
275
275
  }();
@@ -279,10 +279,10 @@ function Zs() {
279
279
  function Ys() {
280
280
  throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
281
281
  }
282
- function Xs() {
282
+ function Js() {
283
283
  throw new Error("https://svelte.dev/e/state_descriptors_fixed");
284
284
  }
285
- function Js() {
285
+ function Xs() {
286
286
  throw new Error("https://svelte.dev/e/state_prototype_fixed");
287
287
  }
288
288
  function Gs() {
@@ -386,7 +386,7 @@ function gr(t, e, n) {
386
386
  (t.f & F) !== 0 ? e.add(t) : (t.f & se) !== 0 && n.add(t), vr(t.deps), P(t, D);
387
387
  }
388
388
  const yt = /* @__PURE__ */ new Set();
389
- let S = null, te = null, J = [], cn = null, en = !1;
389
+ let S = null, te = null, X = [], cn = null, en = !1;
390
390
  class _e {
391
391
  committed = !1;
392
392
  /**
@@ -476,7 +476,7 @@ class _e {
476
476
  * @param {Effect[]} root_effects
477
477
  */
478
478
  process(e) {
479
- J = [], this.apply();
479
+ X = [], this.apply();
480
480
  var n = [], r = [];
481
481
  for (const s of e)
482
482
  this.#l(s, n, r);
@@ -500,9 +500,9 @@ class _e {
500
500
  #l(e, n, r) {
501
501
  e.f ^= D;
502
502
  for (var s = e.first, i = null; s !== null; ) {
503
- var a = s.f, o = (a & (Ee | $e)) !== 0, l = o && (a & D) !== 0, u = l || (a & ye) !== 0 || this.#t.has(s);
503
+ var a = s.f, o = (a & (Ee | ze)) !== 0, l = o && (a & D) !== 0, u = l || (a & ye) !== 0 || this.#t.has(s);
504
504
  if (!u && s.fn !== null) {
505
- o ? s.f ^= D : i !== null && (a & (lt | At | cr)) !== 0 ? i.b.defer_effect(s) : (a & lt) !== 0 ? n.push(s) : ht(s) && ((a & ge) !== 0 && this.#e.add(s), Xe(s));
505
+ o ? s.f ^= D : i !== null && (a & (lt | At | cr)) !== 0 ? i.b.defer_effect(s) : (a & lt) !== 0 ? n.push(s) : ht(s) && ((a & ge) !== 0 && this.#e.add(s), Je(s));
506
506
  var c = s.first;
507
507
  if (c !== null) {
508
508
  s = c;
@@ -537,7 +537,7 @@ class _e {
537
537
  S === this && (S = null, te = null);
538
538
  }
539
539
  flush() {
540
- if (this.activate(), J.length > 0) {
540
+ if (this.activate(), X.length > 0) {
541
541
  if (ai(), S !== null && S !== this)
542
542
  return;
543
543
  } else this.#r === 0 && this.process([]);
@@ -569,18 +569,18 @@ class _e {
569
569
  continue;
570
570
  const a = [...s.current.keys()].filter((o) => !this.current.has(o));
571
571
  if (a.length > 0) {
572
- var r = J;
573
- J = [];
572
+ var r = X;
573
+ X = [];
574
574
  const o = /* @__PURE__ */ new Set(), l = /* @__PURE__ */ new Map();
575
575
  for (const u of i)
576
576
  wr(u, a, o, l);
577
- if (J.length > 0) {
577
+ if (X.length > 0) {
578
578
  S = s, s.apply();
579
- for (const u of J)
579
+ for (const u of X)
580
580
  s.#l(u, [], []);
581
581
  s.deactivate();
582
582
  }
583
- J = r;
583
+ X = r;
584
584
  }
585
585
  }
586
586
  S = null, te = e;
@@ -600,7 +600,7 @@ class _e {
600
600
  */
601
601
  decrement(e) {
602
602
  this.#r -= 1, e && (this.#o -= 1), !this.#a && (this.#a = !0, Ne(() => {
603
- this.#a = !1, this.is_deferred() ? J.length > 0 && this.flush() : this.revive();
603
+ this.#a = !1, this.is_deferred() ? X.length > 0 && this.flush() : this.revive();
604
604
  }));
605
605
  }
606
606
  revive() {
@@ -637,16 +637,16 @@ function ai() {
637
637
  en = !0;
638
638
  var t = null;
639
639
  try {
640
- for (var e = 0; J.length > 0; ) {
640
+ for (var e = 0; X.length > 0; ) {
641
641
  var n = _e.ensure();
642
642
  if (e++ > 1e3) {
643
643
  var r, s;
644
644
  oi();
645
645
  }
646
- n.process(J), Me.clear();
646
+ n.process(X), Me.clear();
647
647
  }
648
648
  } finally {
649
- J = [], en = !1, cn = null;
649
+ X = [], en = !1, cn = null;
650
650
  }
651
651
  }
652
652
  function oi() {
@@ -662,7 +662,7 @@ function Fn(t) {
662
662
  if (e !== 0) {
663
663
  for (var n = 0; n < e; ) {
664
664
  var r = t[n++];
665
- if ((r.f & (ke | ye)) === 0 && ht(r) && (ve = /* @__PURE__ */ new Set(), Xe(r), r.deps === null && r.first === null && r.nodes === null && r.teardown === null && r.ac === null && Rr(r), ve?.size > 0)) {
665
+ if ((r.f & (ke | ye)) === 0 && ht(r) && (ve = /* @__PURE__ */ new Set(), Je(r), r.deps === null && r.first === null && r.nodes === null && r.teardown === null && r.ac === null && Rr(r), ve?.size > 0)) {
666
666
  Me.clear();
667
667
  for (const s of ve) {
668
668
  if ((s.f & (ke | ye)) !== 0) continue;
@@ -672,7 +672,7 @@ function Fn(t) {
672
672
  ve.has(a) && (ve.delete(a), i.push(a)), a = a.parent;
673
673
  for (let o = i.length - 1; o >= 0; o--) {
674
674
  const l = i[o];
675
- (l.f & (ke | ye)) === 0 && Xe(l);
675
+ (l.f & (ke | ye)) === 0 && Je(l);
676
676
  }
677
677
  }
678
678
  ve.clear();
@@ -724,12 +724,12 @@ function oe(t) {
724
724
  var n = e.f;
725
725
  if (en && e === k && (n & ge) !== 0 && (n & hr) === 0)
726
726
  return;
727
- if ((n & ($e | Ee)) !== 0) {
727
+ if ((n & (ze | Ee)) !== 0) {
728
728
  if ((n & D) === 0) return;
729
729
  e.f ^= D;
730
730
  }
731
731
  }
732
- J.push(e);
732
+ X.push(e);
733
733
  }
734
734
  function kr(t, e) {
735
735
  if (!((t.f & Ee) !== 0 && (t.f & D) !== 0)) {
@@ -1117,7 +1117,7 @@ function fn(t) {
1117
1117
  var e, n = k;
1118
1118
  ce(gi(t));
1119
1119
  try {
1120
- t.f &= ~Oe, vi(t), e = Lr(t);
1120
+ t.f &= ~Oe, vi(t), e = $r(t);
1121
1121
  } finally {
1122
1122
  ce(n);
1123
1123
  }
@@ -1125,7 +1125,7 @@ function fn(t) {
1125
1125
  }
1126
1126
  function br(t) {
1127
1127
  var e = fn(t);
1128
- if (!t.equals(e) && (t.wv = $r(), (!S?.is_fork || t.deps === null) && (t.v = e, t.deps === null))) {
1128
+ if (!t.equals(e) && (t.wv = zr(), (!S?.is_fork || t.deps === null) && (t.v = e, t.deps === null))) {
1129
1129
  P(t, D);
1130
1130
  return;
1131
1131
  }
@@ -1134,12 +1134,12 @@ function br(t) {
1134
1134
  function wi(t) {
1135
1135
  if (t.effects !== null)
1136
1136
  for (const e of t.effects)
1137
- (e.teardown || e.ac) && (e.teardown?.(), e.ac?.abort(Te), e.teardown = Ws, e.ac = null, ut(e, 0), pn(e));
1137
+ (e.teardown || e.ac) && (e.teardown?.(), e.ac?.abort(Te), e.teardown = Bs, e.ac = null, ut(e, 0), pn(e));
1138
1138
  }
1139
1139
  function _r(t) {
1140
1140
  if (t.effects !== null)
1141
1141
  for (const e of t.effects)
1142
- e.teardown && Xe(e);
1142
+ e.teardown && Je(e);
1143
1143
  }
1144
1144
  let nn = /* @__PURE__ */ new Set();
1145
1145
  const Me = /* @__PURE__ */ new Map();
@@ -1157,14 +1157,14 @@ function Ct(t, e) {
1157
1157
  return n;
1158
1158
  }
1159
1159
  // @__NO_SIDE_EFFECTS__
1160
- function W(t, e) {
1160
+ function B(t, e) {
1161
1161
  const n = Ct(t);
1162
1162
  return Di(n), n;
1163
1163
  }
1164
1164
  function q(t, e, n = !1) {
1165
1165
  y !== null && // since we are untracking the function inside `$inspect.with` we need to add this check
1166
1166
  // to ensure we error if state is set inside an inspect effect
1167
- (!ne || (y.f & Ln) !== 0) && dr() && (y.f & (O | ge | an | Ln)) !== 0 && (K === null || !He.call(K, t)) && Gs();
1167
+ (!ne || (y.f & $n) !== 0) && dr() && (y.f & (O | ge | an | $n)) !== 0 && (K === null || !He.call(K, t)) && Gs();
1168
1168
  let r = n ? tt(e) : e;
1169
1169
  return Pt(t, r);
1170
1170
  }
@@ -1180,14 +1180,14 @@ function Pt(t, e) {
1180
1180
  );
1181
1181
  (t.f & F) !== 0 && fn(s), un(s);
1182
1182
  }
1183
- t.wv = $r(), Er(t, F), k !== null && (k.f & D) !== 0 && (k.f & (Ee | $e)) === 0 && (X === null ? Oi([t]) : X.push(t)), !r.is_fork && nn.size > 0 && !Mr && yi();
1183
+ t.wv = zr(), Er(t, F), k !== null && (k.f & D) !== 0 && (k.f & (Ee | ze)) === 0 && (J === null ? Oi([t]) : J.push(t)), !r.is_fork && nn.size > 0 && !Mr && yi();
1184
1184
  }
1185
1185
  return e;
1186
1186
  }
1187
1187
  function yi() {
1188
1188
  Mr = !1;
1189
1189
  for (const t of nn)
1190
- (t.f & D) !== 0 && P(t, se), ht(t) && Xe(t);
1190
+ (t.f & D) !== 0 && P(t, se), ht(t) && Je(t);
1191
1191
  nn.clear();
1192
1192
  }
1193
1193
  function at(t) {
@@ -1216,18 +1216,18 @@ function Er(t, e) {
1216
1216
  function tt(t) {
1217
1217
  if (typeof t != "object" || t === null || Mt in t)
1218
1218
  return t;
1219
- const e = Bs(t);
1219
+ const e = Ws(t);
1220
1220
  if (e !== js && e !== Us)
1221
1221
  return t;
1222
- var n = /* @__PURE__ */ new Map(), r = zs(t), s = /* @__PURE__ */ W(0), i = Ce, a = (o) => {
1222
+ var n = /* @__PURE__ */ new Map(), r = Ls(t), s = /* @__PURE__ */ B(0), i = Ce, a = (o) => {
1223
1223
  if (Ce === i)
1224
1224
  return o();
1225
1225
  var l = y, u = Ce;
1226
- Q(null), Bn(i);
1226
+ Q(null), Wn(i);
1227
1227
  var c = o();
1228
- return Q(l), Bn(u), c;
1228
+ return Q(l), Wn(u), c;
1229
1229
  };
1230
- return r && n.set("length", /* @__PURE__ */ W(
1230
+ return r && n.set("length", /* @__PURE__ */ B(
1231
1231
  /** @type {any[]} */
1232
1232
  t.length
1233
1233
  )), new Proxy(
@@ -1235,10 +1235,10 @@ function tt(t) {
1235
1235
  t,
1236
1236
  {
1237
1237
  defineProperty(o, l, u) {
1238
- (!("value" in u) || u.configurable === !1 || u.enumerable === !1 || u.writable === !1) && Xs();
1238
+ (!("value" in u) || u.configurable === !1 || u.enumerable === !1 || u.writable === !1) && Js();
1239
1239
  var c = n.get(l);
1240
1240
  return c === void 0 ? a(() => {
1241
- var h = /* @__PURE__ */ W(u.value);
1241
+ var h = /* @__PURE__ */ B(u.value);
1242
1242
  return n.set(l, h), h;
1243
1243
  }) : q(c, u.value, !0), !0;
1244
1244
  },
@@ -1246,7 +1246,7 @@ function tt(t) {
1246
1246
  var u = n.get(l);
1247
1247
  if (u === void 0) {
1248
1248
  if (l in o) {
1249
- const c = a(() => /* @__PURE__ */ W(N));
1249
+ const c = a(() => /* @__PURE__ */ B(N));
1250
1250
  n.set(l, c), at(s);
1251
1251
  }
1252
1252
  } else
@@ -1258,7 +1258,7 @@ function tt(t) {
1258
1258
  return t;
1259
1259
  var c = n.get(l), h = l in o;
1260
1260
  if (c === void 0 && (!h || it(o, l)?.writable) && (c = a(() => {
1261
- var d = tt(h ? o[l] : N), m = /* @__PURE__ */ W(d);
1261
+ var d = tt(h ? o[l] : N), m = /* @__PURE__ */ B(d);
1262
1262
  return m;
1263
1263
  }), n.set(l, c)), c !== void 0) {
1264
1264
  var f = E(c);
@@ -1289,7 +1289,7 @@ function tt(t) {
1289
1289
  var u = n.get(l), c = u !== void 0 && u.v !== N || Reflect.has(o, l);
1290
1290
  if (u !== void 0 || k !== null && (!c || it(o, l)?.writable)) {
1291
1291
  u === void 0 && (u = a(() => {
1292
- var f = c ? tt(o[l]) : N, d = /* @__PURE__ */ W(f);
1292
+ var f = c ? tt(o[l]) : N, d = /* @__PURE__ */ B(f);
1293
1293
  return d;
1294
1294
  }), n.set(l, u));
1295
1295
  var h = E(u);
@@ -1304,10 +1304,10 @@ function tt(t) {
1304
1304
  for (var d = u; d < /** @type {Source<number>} */
1305
1305
  h.v; d += 1) {
1306
1306
  var m = n.get(d + "");
1307
- m !== void 0 ? q(m, N) : d in o && (m = a(() => /* @__PURE__ */ W(N)), n.set(d + "", m));
1307
+ m !== void 0 ? q(m, N) : d in o && (m = a(() => /* @__PURE__ */ B(N)), n.set(d + "", m));
1308
1308
  }
1309
1309
  if (h === void 0)
1310
- (!f || it(o, l)?.writable) && (h = a(() => /* @__PURE__ */ W(void 0)), q(h, tt(u)), n.set(l, h));
1310
+ (!f || it(o, l)?.writable) && (h = a(() => /* @__PURE__ */ B(void 0)), q(h, tt(u)), n.set(l, h));
1311
1311
  else {
1312
1312
  f = h.v !== N;
1313
1313
  var v = a(() => tt(u));
@@ -1316,11 +1316,11 @@ function tt(t) {
1316
1316
  var M = Reflect.getOwnPropertyDescriptor(o, l);
1317
1317
  if (M?.set && M.set.call(c, u), !f) {
1318
1318
  if (r && typeof l == "string") {
1319
- var B = (
1319
+ var W = (
1320
1320
  /** @type {Source<number>} */
1321
1321
  n.get("length")
1322
1322
  ), fe = Number(l);
1323
- Number.isInteger(fe) && fe >= B.v && q(B, fe + 1);
1323
+ Number.isInteger(fe) && fe >= W.v && q(W, fe + 1);
1324
1324
  }
1325
1325
  at(s);
1326
1326
  }
@@ -1337,7 +1337,7 @@ function tt(t) {
1337
1337
  return l;
1338
1338
  },
1339
1339
  setPrototypeOf() {
1340
- Js();
1340
+ Xs();
1341
1341
  }
1342
1342
  }
1343
1343
  );
@@ -1347,7 +1347,7 @@ function ki() {
1347
1347
  if (Vn === void 0) {
1348
1348
  Vn = window, xr = /Firefox/.test(navigator.userAgent);
1349
1349
  var t = Element.prototype, e = Node.prototype, n = Text.prototype;
1350
- Sr = it(e, "firstChild").get, Pr = it(e, "nextSibling").get, zn(t) && (t.__click = void 0, t.__className = void 0, t.__attributes = null, t.__style = void 0, t.__e = void 0), zn(n) && (n.__t = void 0);
1350
+ Sr = it(e, "firstChild").get, Pr = it(e, "nextSibling").get, Ln(t) && (t.__click = void 0, t.__className = void 0, t.__attributes = null, t.__style = void 0, t.__e = void 0), Ln(n) && (n.__t = void 0);
1351
1351
  }
1352
1352
  }
1353
1353
  function Ir(t = "") {
@@ -1423,14 +1423,14 @@ function we(t, e, n) {
1423
1423
  };
1424
1424
  if (n)
1425
1425
  try {
1426
- Xe(s);
1426
+ Je(s);
1427
1427
  } catch (o) {
1428
1428
  throw le(s), o;
1429
1429
  }
1430
1430
  else e !== null && oe(s);
1431
1431
  var i = s;
1432
1432
  if (n && i.deps === null && i.teardown === null && i.nodes === null && i.first === i.last && // either `null`, or a singular child
1433
- (i.f & Ge) === 0 && (i = i.first, (t & ge) !== 0 && (t & St) !== 0 && i !== null && (i.f |= St)), i !== null && (i.parent = r, r !== null && Ei(i, r), y !== null && (y.f & O) !== 0 && (t & $e) === 0)) {
1433
+ (i.f & Ge) === 0 && (i = i.first, (t & ge) !== 0 && (t & St) !== 0 && i !== null && (i.f |= St)), i !== null && (i.parent = r, r !== null && Ei(i, r), y !== null && (y.f & O) !== 0 && (t & ze) === 0)) {
1434
1434
  var a = (
1435
1435
  /** @type {Derived} */
1436
1436
  y
@@ -1451,7 +1451,7 @@ function Si(t) {
1451
1451
  }
1452
1452
  function Pi(t) {
1453
1453
  _e.ensure();
1454
- const e = we($e | Ge, t, !0);
1454
+ const e = we(ze | Ge, t, !0);
1455
1455
  return (n = {}) => new Promise((r) => {
1456
1456
  n.outro ? Et(e, () => {
1457
1457
  le(e), r(void 0);
@@ -1499,7 +1499,7 @@ function pn(t, e = !1) {
1499
1499
  s.abort(Te);
1500
1500
  });
1501
1501
  var r = n.next;
1502
- (n.f & $e) !== 0 ? n.parent = null : le(n, e), n = r;
1502
+ (n.f & ze) !== 0 ? n.parent = null : le(n, e), n = r;
1503
1503
  }
1504
1504
  }
1505
1505
  function Ni(t) {
@@ -1585,15 +1585,15 @@ let K = null;
1585
1585
  function Di(t) {
1586
1586
  y !== null && (K === null ? K = [t] : K.push(t));
1587
1587
  }
1588
- let H = null, Y = 0, X = null;
1588
+ let H = null, Y = 0, J = null;
1589
1589
  function Oi(t) {
1590
- X = t;
1590
+ J = t;
1591
1591
  }
1592
1592
  let Or = 1, Ae = 0, Ce = Ae;
1593
- function Bn(t) {
1593
+ function Wn(t) {
1594
1594
  Ce = t;
1595
1595
  }
1596
- function $r() {
1596
+ function zr() {
1597
1597
  return ++Or;
1598
1598
  }
1599
1599
  function ht(t) {
@@ -1621,12 +1621,12 @@ function ht(t) {
1621
1621
  }
1622
1622
  return !1;
1623
1623
  }
1624
- function zr(t, e, n = !0) {
1624
+ function Lr(t, e, n = !0) {
1625
1625
  var r = t.reactions;
1626
1626
  if (r !== null && !(K !== null && He.call(K, t)))
1627
1627
  for (var s = 0; s < r.length; s++) {
1628
1628
  var i = r[s];
1629
- (i.f & O) !== 0 ? zr(
1629
+ (i.f & O) !== 0 ? Lr(
1630
1630
  /** @type {Derived} */
1631
1631
  i,
1632
1632
  e,
@@ -1637,10 +1637,10 @@ function zr(t, e, n = !0) {
1637
1637
  ));
1638
1638
  }
1639
1639
  }
1640
- function Lr(t) {
1641
- var e = H, n = Y, r = X, s = y, i = K, a = ie, o = ne, l = Ce, u = t.f;
1640
+ function $r(t) {
1641
+ var e = H, n = Y, r = J, s = y, i = K, a = ie, o = ne, l = Ce, u = t.f;
1642
1642
  H = /** @type {null | Value[]} */
1643
- null, Y = 0, X = null, y = (u & (Ee | $e)) === 0 ? t : null, K = null, qe(t.ctx), ne = !1, Ce = ++Ae, t.ac !== null && (Tr(() => {
1643
+ null, Y = 0, J = null, y = (u & (Ee | ze)) === 0 ? t : null, K = null, qe(t.ctx), ne = !1, Ce = ++Ae, t.ac !== null && (Tr(() => {
1644
1644
  t.ac.abort(Te);
1645
1645
  }), t.ac = null);
1646
1646
  try {
@@ -1662,11 +1662,11 @@ function Lr(t) {
1662
1662
  for (m = Y; m < f.length; m++)
1663
1663
  (f[m].reactions ??= []).push(t);
1664
1664
  } else !d && f !== null && Y < f.length && (ut(t, Y), f.length = Y);
1665
- if (dr() && X !== null && !ne && f !== null && (t.f & (O | se | F)) === 0)
1665
+ if (dr() && J !== null && !ne && f !== null && (t.f & (O | se | F)) === 0)
1666
1666
  for (m = 0; m < /** @type {Source[]} */
1667
- X.length; m++)
1668
- zr(
1669
- X[m],
1667
+ J.length; m++)
1668
+ Lr(
1669
+ J[m],
1670
1670
  /** @type {Effect} */
1671
1671
  t
1672
1672
  );
@@ -1677,20 +1677,20 @@ function Lr(t) {
1677
1677
  if (e !== null)
1678
1678
  for (const v of e)
1679
1679
  v.rv = Ae;
1680
- X !== null && (r === null ? r = X : r.push(.../** @type {Source[]} */
1681
- X));
1680
+ J !== null && (r === null ? r = J : r.push(.../** @type {Source[]} */
1681
+ J));
1682
1682
  }
1683
1683
  return (t.f & be) !== 0 && (t.f ^= be), h;
1684
1684
  } catch (v) {
1685
1685
  return mr(v);
1686
1686
  } finally {
1687
- t.f ^= Qt, H = e, Y = n, X = r, y = s, K = i, qe(a), ne = o, Ce = l;
1687
+ t.f ^= Qt, H = e, Y = n, J = r, y = s, K = i, qe(a), ne = o, Ce = l;
1688
1688
  }
1689
1689
  }
1690
- function $i(t, e) {
1690
+ function zi(t, e) {
1691
1691
  let n = e.reactions;
1692
1692
  if (n !== null) {
1693
- var r = Ls.call(n, t);
1693
+ var r = $s.call(n, t);
1694
1694
  if (r !== -1) {
1695
1695
  var s = n.length - 1;
1696
1696
  s === 0 ? n = e.reactions = null : (n[r] = n[s], n.pop());
@@ -1711,9 +1711,9 @@ function ut(t, e) {
1711
1711
  var n = t.deps;
1712
1712
  if (n !== null)
1713
1713
  for (var r = e; r < n.length; r++)
1714
- $i(t, n[r]);
1714
+ zi(t, n[r]);
1715
1715
  }
1716
- function Xe(t) {
1716
+ function Je(t) {
1717
1717
  var e = t.f;
1718
1718
  if ((e & ke) === 0) {
1719
1719
  P(t, D);
@@ -1721,7 +1721,7 @@ function Xe(t) {
1721
1721
  k = t, xt = !0;
1722
1722
  try {
1723
1723
  (e & (ge | cr)) !== 0 ? Ni(t) : pn(t), Cr(t);
1724
- var s = Lr(t);
1724
+ var s = $r(t);
1725
1725
  t.teardown = typeof s == "function" ? s : null, t.wv = Or;
1726
1726
  var i;
1727
1727
  Kt && ri && (t.f & F) !== 0 && t.deps;
@@ -1795,11 +1795,11 @@ function jr(t) {
1795
1795
  ne = e;
1796
1796
  }
1797
1797
  }
1798
- const zi = ["touchstart", "touchmove"];
1799
- function Li(t) {
1800
- return zi.includes(t);
1798
+ const Li = ["touchstart", "touchmove"];
1799
+ function $i(t) {
1800
+ return Li.includes(t);
1801
1801
  }
1802
- const Fi = /* @__PURE__ */ Symbol("events"), Vi = /* @__PURE__ */ new Set(), Wn = /* @__PURE__ */ new Set();
1802
+ const Fi = /* @__PURE__ */ Symbol("events"), Vi = /* @__PURE__ */ new Set(), Bn = /* @__PURE__ */ new Set();
1803
1803
  let Hn = null;
1804
1804
  function qn(t) {
1805
1805
  var e = this, n = (
@@ -1875,7 +1875,7 @@ function Ui(t) {
1875
1875
  ji?.createHTML(t) ?? t
1876
1876
  );
1877
1877
  }
1878
- function Bi(t, e = !1) {
1878
+ function Wi(t, e = !1) {
1879
1879
  var n = Mi("template");
1880
1880
  return t = t.replaceAll("<!>", "<!---->"), n.innerHTML = e ? Ui(t) : t, n.content;
1881
1881
  }
@@ -1890,7 +1890,7 @@ function Zn(t, e) {
1890
1890
  function Ur(t, e) {
1891
1891
  var n = (e & Qs) !== 0, r = (e & ei) !== 0, s, i = !t.startsWith("<!>");
1892
1892
  return () => {
1893
- s === void 0 && (s = Bi(i ? t : "<!>" + t, !0), n || (s = /** @type {TemplateNode} */
1893
+ s === void 0 && (s = Wi(i ? t : "<!>" + t, !0), n || (s = /** @type {TemplateNode} */
1894
1894
  /* @__PURE__ */ It(s)));
1895
1895
  var a = (
1896
1896
  /** @type {TemplateNode} */
@@ -1910,34 +1910,34 @@ function Ur(t, e) {
1910
1910
  return a;
1911
1911
  };
1912
1912
  }
1913
- function Br(t, e) {
1913
+ function Wr(t, e) {
1914
1914
  t !== null && t.before(
1915
1915
  /** @type {Node} */
1916
1916
  e
1917
1917
  );
1918
1918
  }
1919
1919
  function dn(t, e) {
1920
- return Wi(t, e);
1920
+ return Bi(t, e);
1921
1921
  }
1922
1922
  const kt = /* @__PURE__ */ new Map();
1923
- function Wi(t, { target: e, anchor: n, props: r = {}, events: s, context: i, intro: a = !0 }) {
1923
+ function Bi(t, { target: e, anchor: n, props: r = {}, events: s, context: i, intro: a = !0 }) {
1924
1924
  ki();
1925
1925
  var o = /* @__PURE__ */ new Set(), l = (h) => {
1926
1926
  for (var f = 0; f < h.length; f++) {
1927
1927
  var d = h[f];
1928
1928
  if (!o.has(d)) {
1929
1929
  o.add(d);
1930
- var m = Li(d);
1931
- for (const B of [e, document]) {
1932
- var v = kt.get(B);
1933
- v === void 0 && (v = /* @__PURE__ */ new Map(), kt.set(B, v));
1930
+ var m = $i(d);
1931
+ for (const W of [e, document]) {
1932
+ var v = kt.get(W);
1933
+ v === void 0 && (v = /* @__PURE__ */ new Map(), kt.set(W, v));
1934
1934
  var M = v.get(d);
1935
- M === void 0 ? (B.addEventListener(d, qn, { passive: m }), v.set(d, 1)) : v.set(d, M + 1);
1935
+ M === void 0 ? (W.addEventListener(d, qn, { passive: m }), v.set(d, 1)) : v.set(d, M + 1);
1936
1936
  }
1937
1937
  }
1938
1938
  }
1939
1939
  };
1940
- l(Fs(Vi)), Wn.add(l);
1940
+ l(Fs(Vi)), Bn.add(l);
1941
1941
  var u = void 0, c = Pi(() => {
1942
1942
  var h = n ?? e.appendChild(Ir());
1943
1943
  return ci(
@@ -1967,23 +1967,23 @@ function Wi(t, { target: e, anchor: n, props: r = {}, events: s, context: i, int
1967
1967
  );
1968
1968
  --m == 0 ? (v.removeEventListener(f, qn), d.delete(f), d.size === 0 && kt.delete(v)) : d.set(f, m);
1969
1969
  }
1970
- Wn.delete(l), h !== n && h.parentNode?.removeChild(h);
1970
+ Bn.delete(l), h !== n && h.parentNode?.removeChild(h);
1971
1971
  };
1972
1972
  });
1973
1973
  return Hi.set(u, c), u;
1974
1974
  }
1975
1975
  let Hi = /* @__PURE__ */ new WeakMap();
1976
- function Wr(t) {
1976
+ function Br(t) {
1977
1977
  var e, n, r = "";
1978
1978
  if (typeof t == "string" || typeof t == "number") r += t;
1979
1979
  else if (typeof t == "object") if (Array.isArray(t)) {
1980
1980
  var s = t.length;
1981
- for (e = 0; e < s; e++) t[e] && (n = Wr(t[e])) && (r && (r += " "), r += n);
1981
+ for (e = 0; e < s; e++) t[e] && (n = Br(t[e])) && (r && (r += " "), r += n);
1982
1982
  } else for (n in t) t[n] && (r && (r += " "), r += n);
1983
1983
  return r;
1984
1984
  }
1985
1985
  function qi() {
1986
- for (var t, e, n = 0, r = "", s = arguments.length; n < s; n++) (t = arguments[n]) && (e = Wr(t)) && (r && (r += " "), r += e);
1986
+ for (var t, e, n = 0, r = "", s = arguments.length; n < s; n++) (t = arguments[n]) && (e = Br(t)) && (r && (r += " "), r += e);
1987
1987
  return r;
1988
1988
  }
1989
1989
  function Hr(t) {
@@ -2030,7 +2030,7 @@ function nt(t, e, n, r) {
2030
2030
  } else r && (Array.isArray(r) ? (Zt(t, n?.[0], r[0]), Zt(t, n?.[1], r[1], "important")) : Zt(t, n, r));
2031
2031
  return r;
2032
2032
  }
2033
- function Xn(t, e) {
2033
+ function Jn(t, e) {
2034
2034
  return t === e || t?.[Mt] === e;
2035
2035
  }
2036
2036
  function rt(t = {}, e, n, r) {
@@ -2038,11 +2038,11 @@ function rt(t = {}, e, n, r) {
2038
2038
  var s, i;
2039
2039
  return Ar(() => {
2040
2040
  s = i, i = [], jr(() => {
2041
- t !== n(...i) && (e(t, ...i), s && Xn(n(...s), t) && e(null, ...s));
2041
+ t !== n(...i) && (e(t, ...i), s && Jn(n(...s), t) && e(null, ...s));
2042
2042
  });
2043
2043
  }), () => {
2044
2044
  Ne(() => {
2045
- i && Xn(n(...i), t) && e(null, ...i);
2045
+ i && Jn(n(...i), t) && e(null, ...i);
2046
2046
  });
2047
2047
  };
2048
2048
  }), t;
@@ -2075,8 +2075,8 @@ class pt {
2075
2075
  this.shown = !0, this.id = e.id, this.lat = e.lat, this.lng = e.lng, this.rank = e.rank, this.marker = n;
2076
2076
  }
2077
2077
  }
2078
- const Xi = "5";
2079
- typeof window < "u" && ((window.__svelte ??= {}).v ??= /* @__PURE__ */ new Set()).add(Xi);
2078
+ const Ji = "5";
2079
+ typeof window < "u" && ((window.__svelte ??= {}).v ??= /* @__PURE__ */ new Set()).add(Ji);
2080
2080
  function Zr(t) {
2081
2081
  return -0.5 * (Math.cos(Math.PI * t) - 1);
2082
2082
  }
@@ -2124,12 +2124,12 @@ class Yr {
2124
2124
  return performance.now() > this.time.end;
2125
2125
  }
2126
2126
  }
2127
- var Ji = /* @__PURE__ */ Ur("<div></div>");
2127
+ var Xi = /* @__PURE__ */ Ur("<div></div>");
2128
2128
  function Gi(t, e) {
2129
2129
  on(e, !0);
2130
2130
  let n = e.id, r = e.style, s = e.content, i = {
2131
2131
  setDisplayed: fe,
2132
- getDisplayed: ze,
2132
+ getDisplayed: Le,
2133
2133
  setSuppressed: ee,
2134
2134
  setCollapsed: Se,
2135
2135
  getCollapsed: Pe,
@@ -2138,35 +2138,35 @@ function Gi(t, e) {
2138
2138
  function a() {
2139
2139
  return i;
2140
2140
  }
2141
- let o, l = r.dimensions.width, u = r.dimensions.height, c = r.dimensions.radius, h = r.dimensions.padding ?? or, f = r.colors?.border ?? Gt, d = r.colors?.background ?? Os, m = r.colors?.shadow ?? lr, v = /* @__PURE__ */ W(!1), M = !1, B = !1;
2141
+ let o, l = r.dimensions.width, u = r.dimensions.height, c = r.dimensions.radius, h = r.dimensions.padding ?? or, f = r.colors?.border ?? Gt, d = r.colors?.background ?? Os, m = r.colors?.shadow ?? lr, v = /* @__PURE__ */ B(!1), M = !1, W = !1;
2142
2142
  function fe(b) {
2143
2143
  if (b != E(v)) {
2144
2144
  if (q(v, b, !0), b == !0) {
2145
- if (s == null || B || M) return;
2145
+ if (s == null || W || M) return;
2146
2146
  M = !0, s(n).then((pe) => {
2147
2147
  pe instanceof HTMLElement ? o.appendChild(pe) : console.error("Failed to load pin content");
2148
2148
  }).catch((pe) => console.error(pe)).finally(() => {
2149
- B = !0, M = !1;
2149
+ W = !0, M = !1;
2150
2150
  });
2151
2151
  }
2152
2152
  b == !1 && V.end();
2153
2153
  }
2154
2154
  }
2155
- function ze() {
2155
+ function Le() {
2156
2156
  return E(v);
2157
2157
  }
2158
- let xe = /* @__PURE__ */ W(!0);
2158
+ let xe = /* @__PURE__ */ B(!0);
2159
2159
  function ee(b) {
2160
- b != E(xe) && (q(xe, b, !0), b && ($ = Fe, V.set(Fe)));
2160
+ b != E(xe) && (q(xe, b, !0), b && (z = Fe, V.set(Fe)));
2161
2161
  }
2162
- let he = /* @__PURE__ */ W(!0);
2162
+ let he = /* @__PURE__ */ B(!0);
2163
2163
  function Se(b) {
2164
- b != E(he) && (q(he, b, !0), V.target(E(he) ? 0 : $));
2164
+ b != E(he) && (q(he, b, !0), V.target(E(he) ? 0 : z));
2165
2165
  }
2166
2166
  function Pe() {
2167
2167
  return E(v) ? V.expired() : !0;
2168
2168
  }
2169
- let $ = Fe, V = new Yr({
2169
+ let z = Fe, V = new Yr({
2170
2170
  value: Fe,
2171
2171
  min: 0,
2172
2172
  max: 1,
@@ -2175,7 +2175,7 @@ function Gi(t, e) {
2175
2175
  callback: Ot
2176
2176
  });
2177
2177
  function dt(b) {
2178
- $ = b, V.target(b);
2178
+ z = b, V.target(b);
2179
2179
  }
2180
2180
  function Ot(b) {
2181
2181
  o.style.scale = b.toString(), o.style.filter = `brightness(${mt(b)})`;
@@ -2183,12 +2183,12 @@ function Gi(t, e) {
2183
2183
  function mt(b) {
2184
2184
  return 0.25 + 0.75 * b;
2185
2185
  }
2186
- var Ke = { invoke: a }, Le = Ji();
2186
+ var Ke = { invoke: a }, $e = Xi();
2187
2187
  let vt;
2188
- return rt(Le, (b) => o = b, () => o), Nr(
2188
+ return rt($e, (b) => o = b, () => o), Nr(
2189
2189
  (b) => {
2190
2190
  qr(
2191
- Le,
2191
+ $e,
2192
2192
  1,
2193
2193
  Hr([
2194
2194
  "pin",
@@ -2196,7 +2196,7 @@ function Gi(t, e) {
2196
2196
  E(xe) && "suppressed"
2197
2197
  ]),
2198
2198
  "svelte-10kxbrm"
2199
- ), vt = nt(Le, "", vt, b);
2199
+ ), vt = nt($e, "", vt, b);
2200
2200
  },
2201
2201
  [
2202
2202
  () => ({
@@ -2211,7 +2211,7 @@ function Gi(t, e) {
2211
2211
  filter: `brightness(${mt(Fe)})`
2212
2212
  })
2213
2213
  ]
2214
- ), Br(t, Le), ln(Ke);
2214
+ ), Wr(t, $e), ln(Ke);
2215
2215
  }
2216
2216
  class Ki extends pt {
2217
2217
  width;
@@ -2242,7 +2242,7 @@ class Ki extends pt {
2242
2242
  return Number.isNaN(this.zoom) ? this.rank : Math.round(-this.zoom * ar) + Rs;
2243
2243
  }
2244
2244
  }
2245
- class Jn {
2245
+ class Xn {
2246
2246
  animating;
2247
2247
  animationTimestamp;
2248
2248
  animationEnd;
@@ -2302,12 +2302,12 @@ function rn(t, e, n) {
2302
2302
  return n < 180 ? n < 90 ? n < a ? { x: 0, y: i * Math.sin(o) - s } : { x: i * Math.cos(o) - r, y: 0 } : n < 180 - a ? { x: i * Math.cos(o) - r, y: 0 } : { x: -t, y: i * Math.sin(o) - s } : n < 270 ? n < 180 + a ? { x: -t, y: i * Math.sin(o) - s } : { x: i * Math.cos(o) - r, y: -e } : n < 360 - a ? { x: i * Math.cos(o) - r, y: -e } : { x: 0, y: i * Math.sin(o) - s };
2303
2303
  }
2304
2304
  var Qi = /* @__PURE__ */ Ur('<div><div class="element pointer svelte-1no6o2a"></div> <div class="element bubble svelte-1no6o2a"></div></div> <div class="element body svelte-1no6o2a"></div>', 1);
2305
- function Xr(t, e) {
2305
+ function Jr(t, e) {
2306
2306
  on(e, !0);
2307
2307
  let n = e.id, r = e.style, s = e.content, i = {
2308
2308
  setDisplayed: Ot,
2309
2309
  getDisplayed: mt,
2310
- setCollapsed: Le,
2310
+ setCollapsed: $e,
2311
2311
  getCollapsed: vt,
2312
2312
  getExpanded: b,
2313
2313
  setAngle: ms
@@ -2315,10 +2315,10 @@ function Xr(t, e) {
2315
2315
  function a() {
2316
2316
  return i;
2317
2317
  }
2318
- let o = r.dimensions.width + 2 * r.dimensions.margin, l = r.dimensions.height + 2 * r.dimensions.margin, u = r.dimensions.margin, c, h = r.colors?.filter ?? lr, f, d = Math.min(r.dimensions.width, r.dimensions.height) / Math.SQRT2 - r.dimensions.margin, m = r.colors?.background ?? Gt, v = Math.max(1, r.dimensions.radius / d), M, B = r.dimensions.width, fe = r.dimensions.height, ze = r.dimensions.radius, xe = r.colors?.background ?? Gt, ee, he = r.dimensions.width, Se = r.dimensions.height, Pe = r.dimensions.radius, $ = /* @__PURE__ */ W(!1), V = !1, dt = !1;
2318
+ let o = r.dimensions.width + 2 * r.dimensions.margin, l = r.dimensions.height + 2 * r.dimensions.margin, u = r.dimensions.margin, c, h = r.colors?.filter ?? lr, f, d = Math.min(r.dimensions.width, r.dimensions.height) / Math.SQRT2 - r.dimensions.margin, m = r.colors?.background ?? Gt, v = Math.max(1, r.dimensions.radius / d), M, W = r.dimensions.width, fe = r.dimensions.height, Le = r.dimensions.radius, xe = r.colors?.background ?? Gt, ee, he = r.dimensions.width, Se = r.dimensions.height, Pe = r.dimensions.radius, z = /* @__PURE__ */ B(!1), V = !1, dt = !1;
2319
2319
  function Ot(w) {
2320
- if (w != E($)) {
2321
- if (q($, w, !0), w) {
2320
+ if (w != E(z)) {
2321
+ if (q(z, w, !0), w) {
2322
2322
  if (s == null || dt || V) return;
2323
2323
  V = !0, s(n).then((de) => {
2324
2324
  de instanceof HTMLElement ? ee.appendChild(de) : console.error("Failed to load tooltip content");
@@ -2326,21 +2326,21 @@ function Xr(t, e) {
2326
2326
  dt = !0, V = !1;
2327
2327
  });
2328
2328
  }
2329
- w == !1 && (pe.end(), zt.end(), Lt.end());
2329
+ w == !1 && (pe.end(), Lt.end(), $t.end());
2330
2330
  }
2331
2331
  }
2332
2332
  function mt() {
2333
- return E($);
2333
+ return E(z);
2334
2334
  }
2335
- let Ke = /* @__PURE__ */ W(!0);
2336
- function Le(w) {
2335
+ let Ke = /* @__PURE__ */ B(!0);
2336
+ function $e(w) {
2337
2337
  w != E(Ke) && (q(Ke, w, !0), pe.target(E(Ke) ? 0 : 1));
2338
2338
  }
2339
2339
  function vt() {
2340
- return E($) ? pe.expired() : !0;
2340
+ return E(z) ? pe.expired() : !0;
2341
2341
  }
2342
2342
  function b() {
2343
- return E($) ? pe.expired() : !1;
2343
+ return E(z) ? pe.expired() : !1;
2344
2344
  }
2345
2345
  let pe = new Yr({
2346
2346
  value: 0,
@@ -2353,14 +2353,14 @@ function Xr(t, e) {
2353
2353
  function ds(w) {
2354
2354
  c.style.opacity = `${w}`, f.style.scale = `${w}`, M.style.scale = `${w}`, ee.style.scale = `${w}`;
2355
2355
  }
2356
- let gt = NaN, $t = /* @__PURE__ */ W(!1), wn = -o / 2, zt = new Jn({
2356
+ let gt = NaN, zt = /* @__PURE__ */ B(!1), wn = -o / 2, Lt = new Xn({
2357
2357
  value: -o / 2,
2358
2358
  min: -o,
2359
2359
  max: 0,
2360
2360
  precision: 1,
2361
2361
  stiffness: Dn,
2362
2362
  callback: vs
2363
- }), yn = -l / 2, Lt = new Jn({
2363
+ }), yn = -l / 2, $t = new Xn({
2364
2364
  value: -l / 2,
2365
2365
  min: -l,
2366
2366
  max: 0,
@@ -2370,19 +2370,19 @@ function Xr(t, e) {
2370
2370
  });
2371
2371
  function ms(w, de) {
2372
2372
  if (Number.isNaN(w)) {
2373
- gt = NaN, q($t, !1);
2373
+ gt = NaN, q(zt, !1);
2374
2374
  return;
2375
2375
  }
2376
- if (E($t) == !1 || de == !0) {
2377
- q($t, !0), gt = w;
2376
+ if (E(zt) == !1 || de == !0) {
2377
+ q(zt, !0), gt = w;
2378
2378
  const me = rn(o, l, w);
2379
- zt.set(Math.round(me.x)), Lt.set(Math.round(me.y));
2379
+ Lt.set(Math.round(me.x)), $t.set(Math.round(me.y));
2380
2380
  return;
2381
2381
  }
2382
2382
  if (gt != w) {
2383
2383
  gt = w;
2384
2384
  const me = rn(o, l, w);
2385
- zt.target(Math.round(me.x)), Lt.target(Math.round(me.y));
2385
+ Lt.target(Math.round(me.x)), $t.target(Math.round(me.y));
2386
2386
  return;
2387
2387
  }
2388
2388
  }
@@ -2393,7 +2393,7 @@ function Xr(t, e) {
2393
2393
  yn = w, kn();
2394
2394
  }
2395
2395
  function kn() {
2396
- const w = wn, de = yn, me = w + o / 2, Vt = de + l / 2, jt = l < o ? me * l / o : me, Ut = l > o ? Vt * o / l : Vt, ys = Math.atan2(Ut, jt) / Math.PI * 180 - 45, Bt = Math.sqrt(jt * jt + Ut * Ut), et = Math.min(o, l) / 2, ks = et * Math.SQRT2, Wt = (Bt - et) / (ks - et), In = 0, Tn = In + Wt * (22.5 - In), bs = Bt < et ? Bt / et : 1, An = w + u - u * (me / o) * Wt, Nn = de + u - u * (Vt / l) * Wt;
2396
+ const w = wn, de = yn, me = w + o / 2, Vt = de + l / 2, jt = l < o ? me * l / o : me, Ut = l > o ? Vt * o / l : Vt, ys = Math.atan2(Ut, jt) / Math.PI * 180 - 45, Wt = Math.sqrt(jt * jt + Ut * Ut), et = Math.min(o, l) / 2, ks = et * Math.SQRT2, Bt = (Wt - et) / (ks - et), In = 0, Tn = In + Bt * (22.5 - In), bs = Wt < et ? Wt / et : 1, An = w + u - u * (me / o) * Bt, Nn = de + u - u * (Vt / l) * Bt;
2397
2397
  f.style.transform = `scale(${bs}) rotate(${ys}deg) skew(${Tn}deg, ${Tn}deg)`, M.style.transform = `translate(${Math.round(An)}px, ${Math.round(Nn)}px)`, ee.style.transform = `translate(${Math.round(An)}px, ${Math.round(Nn)}px)`;
2398
2398
  }
2399
2399
  var ws = { invoke: a }, bn = Qi(), Qe = _i(bn);
@@ -2407,22 +2407,22 @@ function Xr(t, e) {
2407
2407
  var Sn = jn(Qe, 2);
2408
2408
  let Pn;
2409
2409
  return rt(Sn, (w) => ee = w, () => ee), Nr(() => {
2410
- qr(Qe, 1, Hr(["element anchor", E($) && "displayed"]), "svelte-1no6o2a"), _n = nt(Qe, "", _n, { filter: h }), Mn = nt(Ft, "", Mn, {
2410
+ qr(Qe, 1, Hr(["element anchor", E(z) && "displayed"]), "svelte-1no6o2a"), _n = nt(Qe, "", _n, { filter: h }), Mn = nt(Ft, "", Mn, {
2411
2411
  width: `${d}px`,
2412
2412
  height: `${d}px`,
2413
- "background-color": `rgb(from ${m} r g b / 1)`,
2414
- "border-radius": `${v}px`
2413
+ "border-radius": `${v}px`,
2414
+ "background-color": `rgb(from ${m} r g b / 1)`
2415
2415
  }), xn = nt(En, "", xn, {
2416
- width: `${B}px`,
2416
+ width: `${W}px`,
2417
2417
  height: `${fe}px`,
2418
- "border-radius": `${ze}px`,
2418
+ "border-radius": `${Le}px`,
2419
2419
  "background-color": `rgb(from ${xe} r g b / 1)`
2420
2420
  }), Pn = nt(Sn, "", Pn, {
2421
2421
  width: `${he}px`,
2422
2422
  height: `${Se}px`,
2423
2423
  "border-radius": `${Pe}px`
2424
2424
  });
2425
- }), Br(t, bn), ln(ws);
2425
+ }), Wr(t, bn), ln(ws);
2426
2426
  }
2427
2427
  class ea extends pt {
2428
2428
  width;
@@ -2432,7 +2432,7 @@ class ea extends pt {
2432
2432
  states;
2433
2433
  component;
2434
2434
  constructor(e, n) {
2435
- super(e, new mn(n, e.lat, e.lng, e.rank)), this.width = e.tooltip.style.dimensions.width + e.tooltip.style.dimensions.margin * 2, this.height = e.tooltip.style.dimensions.height + e.tooltip.style.dimensions.margin * 2, this.zoom = NaN, this.angle = NaN, this.states = [], this.component = dn(Xr, {
2435
+ super(e, new mn(n, e.lat, e.lng, e.rank)), this.width = e.tooltip.style.dimensions.width + e.tooltip.style.dimensions.margin * 2, this.height = e.tooltip.style.dimensions.height + e.tooltip.style.dimensions.margin * 2, this.zoom = NaN, this.angle = NaN, this.states = [], this.component = dn(Jr, {
2436
2436
  target: this.marker.div,
2437
2437
  props: {
2438
2438
  id: this.id,
@@ -2453,7 +2453,7 @@ class ta extends pt {
2453
2453
  component;
2454
2454
  constructor(e, n) {
2455
2455
  if (e.popup == null) throw new Error("Failed to create popup");
2456
- super(e, new mn(n, e.lat, e.lng, On)), this.width = e.popup.style.dimensions.width, this.height = e.popup.style.dimensions.height, this.margin = e.popup.style.dimensions.margin, this.angle = NaN, this.shown = !1, this.component = dn(Xr, {
2456
+ super(e, new mn(n, e.lat, e.lng, On)), this.width = e.popup.style.dimensions.width, this.height = e.popup.style.dimensions.height, this.margin = e.popup.style.dimensions.margin, this.angle = NaN, this.shown = !1, this.component = dn(Jr, {
2457
2457
  target: this.marker.div,
2458
2458
  props: {
2459
2459
  id: this.id,
@@ -2516,7 +2516,7 @@ class ra {
2516
2516
  i.contains(a.lat, a.lng) ? Number.isNaN(a.zoom) ? (a.component.invoke().setDisplayed(!0), a.component.invoke().setSuppressed(!0), a.component.invoke().setCollapsed(!1), a.marker.insert()) : (a.component.invoke().setSuppressed(!1), a.shown && r < a.zoom && a.zoom < r + this.pinZoomDelta ? (a.component.invoke().setDisplayed(!0), a.component.invoke().setCollapsed(!1), a.component.invoke().setScale(this.pinFade ? Math.max(0, 1 - (a.zoom - r) * 0.2) : 1), a.marker.insert()) : (a.component.invoke().setCollapsed(!0), a.component.invoke().getCollapsed() && (a.component.invoke().setDisplayed(!1), a.marker.remove()))) : (a.component.invoke().setDisplayed(!1), a.marker.remove());
2517
2517
  }
2518
2518
  }
2519
- var Jr = [0, 30, 60, 90, 120, 150, 180, 210, 240, 270, 300, 330], sa = 270;
2519
+ var Xr = [0, 30, 60, 90, 120, 150, 180, 210, 240, 270, 300, 330], sa = 270;
2520
2520
  class ia {
2521
2521
  // Elements
2522
2522
  tooltips = /* @__PURE__ */ new Set();
@@ -2527,7 +2527,7 @@ class ia {
2527
2527
  this.update(e, n), this.tooltips.add(e);
2528
2528
  }
2529
2529
  update(e, n) {
2530
- n ? (e.zoom = n[0], e.states = n[1].map((r) => [r[0], Jr[r[1]]])) : (e.zoom = NaN, e.states = []), e.marker.update(e.zIndex);
2530
+ n ? (e.zoom = n[0], e.states = n[1].map((r) => [r[0], Xr[r[1]]])) : (e.zoom = NaN, e.states = []), e.marker.update(e.zIndex);
2531
2531
  }
2532
2532
  remove(e) {
2533
2533
  e.shown = !0, e.zoom = NaN, e.angle = NaN, e.states = [], e.component.invoke().setAngle(NaN), e.component.invoke().setCollapsed(!0), e.component.invoke().setDisplayed(!1), e.marker.update(e.zIndex), e.marker.remove(), this.tooltips.delete(e);
@@ -2577,11 +2577,11 @@ class aa {
2577
2577
  }
2578
2578
  show(e, n) {
2579
2579
  if (!e.popup || !e.tooltip || !e.pin || (e.pin.shown = !1, e.tooltip.shown = !1, e.popup.angle = e.tooltip.angle, e.popup.shown = !0, this.pan == !1)) return;
2580
- const r = e.popup, s = n.getViewport(), i = s.bounds, a = s.zoom, l = n.getParameters().mapSize * Math.pow(2, a), u = st(i.ne.lat, i.sw.lng, l), c = st(i.sw.lat, i.ne.lng, l), h = c.x - u.x, f = c.y - u.y, d = r.width + r.margin * 8, m = r.height + r.margin * 8, v = st(r.lat, r.lng, l), M = rn(d, m, e.tooltip.angle), B = v.x + M.x, fe = B + d, ze = v.y + M.y, xe = ze + m, ee = B - u.x, he = c.x - fe, Se = ze - u.y, Pe = c.y - xe;
2581
- let $ = 0;
2582
- h < d ? $ = (ee - he) / 2 : (ee < 0 && ($ = ee), he < 0 && ($ = -he));
2580
+ const r = e.popup, s = n.getViewport(), i = s.bounds, a = s.zoom, l = n.getParameters().mapSize * Math.pow(2, a), u = st(i.ne.lat, i.sw.lng, l), c = st(i.sw.lat, i.ne.lng, l), h = c.x - u.x, f = c.y - u.y, d = r.width + r.margin * 8, m = r.height + r.margin * 8, v = st(r.lat, r.lng, l), M = rn(d, m, e.tooltip.angle), W = v.x + M.x, fe = W + d, Le = v.y + M.y, xe = Le + m, ee = W - u.x, he = c.x - fe, Se = Le - u.y, Pe = c.y - xe;
2581
+ let z = 0;
2582
+ h < d ? z = (ee - he) / 2 : (ee < 0 && (z = ee), he < 0 && (z = -he));
2583
2583
  let V = 0;
2584
- f < m ? V = (Se - Pe) / 2 : (Se < 0 && (V = Se), Pe < 0 && (V = -Pe)), ($ != 0 || V != 0) && n.panBy($, V);
2584
+ f < m ? V = (Se - Pe) / 2 : (Se < 0 && (V = Se), Pe < 0 && (V = -Pe)), (z != 0 || V != 0) && n.panBy(z, V);
2585
2585
  }
2586
2586
  hide(e) {
2587
2587
  !e.popup || !e.tooltip || !e.pin || (e.pin.shown = !0, e.tooltip.shown = !0, e.popup.shown = !1);
@@ -2648,7 +2648,7 @@ class oa {
2648
2648
  }
2649
2649
  //#endregion
2650
2650
  }
2651
- const Gr = '(function(){"use strict";var i=a=>new Promise(t=>setTimeout(t,a));async function h(a,t){let s=0,o=Math.max(1,t?.retry?.times??1);for(;s<o;)try{return{data:await a(),error:null}}catch(r){if(s++,s==o){if(r instanceof Error)return(!t?.exceptions||t.exceptions.some(e=>r instanceof e)==!1)&&t?.catch?.(r),{data:null,error:r};throw t?.catch?.(r),r}else t?.retry?.delay&&await i(t.retry.delay)}throw Error("Unreachable code")}async function l(a,t,s,o,r){let e=await h(async()=>await(await fetch(a,{...s,method:"POST",body:t?JSON.stringify(t):void 0,headers:{...s?.headers,"Content-Type":"application/json"}})).json(),{retry:{times:o,delay:r}});if(e.error)throw e.error;return e.data}const f="https://maps.api.arenarium.dev/states",m=3,d=500,u={async fetch(a){const s={headers:{"Cache-Control":self?.location.host.startsWith("localhost")||self?.location.host.startsWith("127.0.0.1")?"no-cache":""}};return await l(f,a,s,m,d)}};class y{methods;constructor(t){this.methods=t}listen(){self.onmessage=this.onmessage.bind(this)}async onmessage(t){const{id:s,method:o,args:r}=t.data;try{const e=this.methods[o];if(typeof e!="function")throw new Error(`Unknown method: ${o}`);const n=await e(...r),c={id:s,result:n};self.postMessage(c)}catch(e){const n=e instanceof Error?e.message:String(e),c={id:s,error:n};self.postMessage(c)}}}new y(u).listen()})();\n', Gn = typeof self < "u" && self.Blob && new Blob(["(self.URL || self.webkitURL).revokeObjectURL(self.location.href);", Gr], { type: "text/javascript;charset=utf-8" });
2651
+ const Gr = '(function(){"use strict";var i=a=>new Promise(t=>setTimeout(t,a));async function h(a,t){let s=0,o=Math.max(1,t?.retry?.times??1);for(;s<o;)try{return{data:await a(),error:null}}catch(r){if(s++,s==o){if(r instanceof Error)return(!t?.exceptions||t.exceptions.some(e=>r instanceof e)==!1)&&t?.catch?.(r),{data:null,error:r};throw t?.catch?.(r),r}else t?.retry?.delay&&await i(t.retry.delay)}throw Error("Unreachable code")}async function l(a,t,s,o,r){let e=await h(async()=>await fetch(a,{...s,method:"POST",body:t?JSON.stringify(t):void 0,headers:{...s?.headers,"Content-Type":"application/json"}}),{retry:{times:o,delay:r}});if(e.error)throw e.error;let n=e.data;if(!n.ok)throw Error(await n.text());return await n.json()}const f="https://maps.api.arenarium.dev/states",m=3,d=500,u={async fetch(a){const s={headers:{"Cache-Control":self?.location.host.startsWith("localhost")||self?.location.host.startsWith("127.0.0.1")?"no-cache":""}};return await l(f,a,s,m,d)}};class w{methods;constructor(t){this.methods=t}listen(){self.onmessage=this.onmessage.bind(this)}async onmessage(t){const{id:s,method:o,args:r}=t.data;try{const e=this.methods[o];if(typeof e!="function")throw new Error(`Unknown method: ${o}`);const n=await e(...r),c={id:s,result:n};self.postMessage(c)}catch(e){const n=e instanceof Error?e.message:String(e),c={id:s,error:n};self.postMessage(c)}}}new w(u).listen()})();\n', Gn = typeof self < "u" && self.Blob && new Blob(["(self.URL || self.webkitURL).revokeObjectURL(self.location.href);", Gr], { type: "text/javascript;charset=utf-8" });
2652
2652
  function la(t) {
2653
2653
  let e;
2654
2654
  try {
@@ -2683,17 +2683,19 @@ async function Kr(t, e) {
2683
2683
  throw Error("Unreachable code");
2684
2684
  }
2685
2685
  async function ca(t, e, n, r, s) {
2686
- let i = await Kr(async () => await (await fetch(t, { ...n, method: "POST", body: e ? JSON.stringify(e) : void 0, headers: { ...n?.headers, "Content-Type": "application/json" } })).json(), { retry: { times: r, delay: s } });
2686
+ let i = await Kr(async () => await fetch(t, { ...n, method: "POST", body: e ? JSON.stringify(e) : void 0, headers: { ...n?.headers, "Content-Type": "application/json" } }), { retry: { times: r, delay: s } });
2687
2687
  if (i.error) throw i.error;
2688
- return i.data;
2688
+ let a = i.data;
2689
+ if (!a.ok) throw Error(await a.text());
2690
+ return await a.json();
2689
2691
  }
2690
2692
  async function fa(t, e, n, r, s) {
2691
- let i = await Kr(async () => {
2692
- await fetch(t, { ...n, method: "PUT", body: e ? JSON.stringify(e) : void 0, headers: { ...n?.headers, "Content-Type": "application/json" } });
2693
- }, { retry: { times: r, delay: s } });
2693
+ let i = await Kr(async () => await fetch(t, { ...n, method: "PUT", body: e ? JSON.stringify(e) : void 0, headers: { ...n?.headers, "Content-Type": "application/json" } }), { retry: { times: r, delay: s } });
2694
2694
  if (i.error) throw i.error;
2695
+ let a = i.data;
2696
+ if (!a.ok) throw Error(await a.text());
2695
2697
  }
2696
- const Ue = 0xc3a5c85c97cb3127n, ae = 0xb492b66fbe98f273n, Be = 0x9ae16a3b2f90404fn, Qr = 0xc949d7c7509e6557n, Z = 0xffffffffffffffffn;
2698
+ const Ue = 0xc3a5c85c97cb3127n, ae = 0xb492b66fbe98f273n, We = 0x9ae16a3b2f90404fn, Qr = 0xc949d7c7509e6557n, Z = 0xffffffffffffffffn;
2697
2699
  function p(t) {
2698
2700
  return t & Z;
2699
2701
  }
@@ -2725,28 +2727,28 @@ function pa(t) {
2725
2727
  let r = (t.second ^ n) * e & Z;
2726
2728
  return r ^= r >> 47n, r = r * e & Z, r;
2727
2729
  }
2728
- function We(t, e) {
2730
+ function Be(t, e) {
2729
2731
  return pa({ first: t, second: e });
2730
2732
  }
2731
2733
  function da(t) {
2732
2734
  const e = t.length;
2733
2735
  if (e > 8) {
2734
2736
  const n = _(t), r = _(t, e - 8);
2735
- return (We(n, ha(r + BigInt(e) & Z, e)) ^ r) & Z;
2737
+ return (Be(n, ha(r + BigInt(e) & Z, e)) ^ r) & Z;
2736
2738
  }
2737
2739
  if (e >= 4) {
2738
2740
  const n = Kn(t);
2739
- return We(BigInt(e) + (n << 3n) & Z, Kn(t, e - 4));
2741
+ return Be(BigInt(e) + (n << 3n) & Z, Kn(t, e - 4));
2740
2742
  }
2741
2743
  if (e > 0) {
2742
2744
  const n = BigInt(t[0]), r = BigInt(t[e >> 1]), s = BigInt(t[e - 1]), i = p(n + (r << 8n)), a = p(BigInt(e) + (s << 2n));
2743
- return p(ct(p(i * Be) ^ p(a * Qr)) * Be);
2745
+ return p(ct(p(i * We) ^ p(a * Qr)) * We);
2744
2746
  }
2745
- return Be;
2747
+ return We;
2746
2748
  }
2747
2749
  function ma(t) {
2748
- const e = t.length, n = p(_(t) * ae), r = _(t, 8), s = p(_(t, e - 8) * Be), i = p(_(t, e - 16) * Ue);
2749
- return We(p(A(p(n - r), 43) + A(s, 30) + i), p(n + A(r ^ Qr, 20) - s + BigInt(e)));
2750
+ const e = t.length, n = p(_(t) * ae), r = _(t, 8), s = p(_(t, e - 8) * We), i = p(_(t, e - 16) * Ue);
2751
+ return Be(p(A(p(n - r), 43) + A(s, 30) + i), p(n + A(r ^ Qr, 20) - s + BigInt(e)));
2750
2752
  }
2751
2753
  function va(t, e, n, r, s, i) {
2752
2754
  s = p(s + t), i = A(p(i + s + r), 21);
@@ -2764,8 +2766,8 @@ function ga(t) {
2764
2766
  r = p(_(t, 16) + _(t, e - 32));
2765
2767
  const l = _(t, e - 8);
2766
2768
  s = A(p(r + l), 52), i = A(r, 37), r = p(r + _(t, e - 24)), i = p(i + A(r, 7)), r = p(r + _(t, e - 16));
2767
- const u = p(r + l), c = p(s + A(r, 31) + i), h = ct(p(p(a + c) * Be + p(u + o) * Ue));
2768
- return p(ct(p(h * Ue + o)) * Be);
2769
+ const u = p(r + l), c = p(s + A(r, 31) + i), h = ct(p(p(a + c) * We + p(u + o) * Ue));
2770
+ return p(ct(p(h * Ue + o)) * We);
2769
2771
  }
2770
2772
  function wa(t) {
2771
2773
  let e;
@@ -2780,19 +2782,19 @@ function wa(t) {
2780
2782
  let l = n - 1 & -64, u = 0;
2781
2783
  for (; l > 0; )
2782
2784
  r = p(A(p(r + s + a.first + _(e, u + 16)), 37) * ae), s = p(A(p(s + a.second + _(e, u + 48)), 42) * ae), r ^= o.second, s ^= a.first, i = A(i ^ o.first, 33), a = bt(e, u, p(a.second * ae), p(r + o.first)), o = bt(e, u + 32, p(i + o.second), s), [i, r] = [r, i], u += 64, l -= 64;
2783
- return We(We(a.first, o.first) + p(ct(s) * ae) + i, We(a.second, o.second) + r);
2785
+ return Be(Be(a.first, o.first) + p(ct(s) * ae) + i, Be(a.second, o.second) + r);
2784
2786
  }
2785
2787
  function ya(t) {
2786
2788
  return wa(JSON.stringify(t)).toString();
2787
2789
  }
2788
- let Xt;
2790
+ let Jt;
2789
2791
  // @__NO_SIDE_EFFECTS__
2790
2792
  function es(t) {
2791
2793
  return {
2792
- lang: Xt?.lang,
2794
+ lang: Jt?.lang,
2793
2795
  message: t?.message,
2794
- abortEarly: Xt?.abortEarly,
2795
- abortPipeEarly: Xt?.abortPipeEarly
2796
+ abortEarly: Jt?.abortEarly,
2797
+ abortPipeEarly: Jt?.abortPipeEarly
2796
2798
  };
2797
2799
  }
2798
2800
  let ka;
@@ -2811,12 +2813,12 @@ function xa(t, e) {
2811
2813
  return Ea?.get(t)?.get(e);
2812
2814
  }
2813
2815
  // @__NO_SIDE_EFFECTS__
2814
- function Je(t) {
2816
+ function Xe(t) {
2815
2817
  const e = typeof t;
2816
2818
  return e === "string" ? `"${t}"` : e === "number" || e === "bigint" || e === "boolean" ? `${t}` : e === "object" || e === "function" ? (t && Object.getPrototypeOf(t)?.constructor?.name) ?? "null" : e;
2817
2819
  }
2818
2820
  function I(t, e, n, r, s) {
2819
- const i = s && "input" in s ? s.input : n.value, a = s?.expected ?? t.expects ?? null, o = s?.received ?? /* @__PURE__ */ Je(i), l = {
2821
+ const i = s && "input" in s ? s.input : n.value, a = s?.expected ?? t.expects ?? null, o = s?.received ?? /* @__PURE__ */ Xe(i), l = {
2820
2822
  kind: t.kind,
2821
2823
  type: t.type,
2822
2824
  input: i,
@@ -2858,11 +2860,11 @@ var Dt = class extends Error {
2858
2860
  }
2859
2861
  };
2860
2862
  // @__NO_SIDE_EFFECTS__
2861
- function z(t) {
2863
+ function L(t) {
2862
2864
  return {
2863
2865
  kind: "transformation",
2864
2866
  type: "args",
2865
- reference: z,
2867
+ reference: L,
2866
2868
  async: !1,
2867
2869
  schema: t,
2868
2870
  "~run"(e, n) {
@@ -2924,11 +2926,11 @@ function ft(t, e) {
2924
2926
  type: "max_value",
2925
2927
  reference: ft,
2926
2928
  async: !1,
2927
- expects: `<=${t instanceof Date ? t.toJSON() : /* @__PURE__ */ Je(t)}`,
2929
+ expects: `<=${t instanceof Date ? t.toJSON() : /* @__PURE__ */ Xe(t)}`,
2928
2930
  requirement: t,
2929
2931
  message: e,
2930
2932
  "~run"(n, r) {
2931
- return n.typed && !(n.value <= this.requirement) && I(this, "value", n, r, { received: n.value instanceof Date ? n.value.toJSON() : /* @__PURE__ */ Je(n.value) }), n;
2933
+ return n.typed && !(n.value <= this.requirement) && I(this, "value", n, r, { received: n.value instanceof Date ? n.value.toJSON() : /* @__PURE__ */ Xe(n.value) }), n;
2932
2934
  }
2933
2935
  };
2934
2936
  }
@@ -2954,11 +2956,11 @@ function C(t, e) {
2954
2956
  type: "min_value",
2955
2957
  reference: C,
2956
2958
  async: !1,
2957
- expects: `>=${t instanceof Date ? t.toJSON() : /* @__PURE__ */ Je(t)}`,
2959
+ expects: `>=${t instanceof Date ? t.toJSON() : /* @__PURE__ */ Xe(t)}`,
2958
2960
  requirement: t,
2959
2961
  message: e,
2960
2962
  "~run"(n, r) {
2961
- return n.typed && !(n.value >= this.requirement) && I(this, "value", n, r, { received: n.value instanceof Date ? n.value.toJSON() : /* @__PURE__ */ Je(n.value) }), n;
2963
+ return n.typed && !(n.value >= this.requirement) && I(this, "value", n, r, { received: n.value instanceof Date ? n.value.toJSON() : /* @__PURE__ */ Xe(n.value) }), n;
2962
2964
  }
2963
2965
  };
2964
2966
  }
@@ -3105,7 +3107,7 @@ function Re(t, e) {
3105
3107
  kind: "schema",
3106
3108
  type: "literal",
3107
3109
  reference: Re,
3108
- expects: /* @__PURE__ */ Je(t),
3110
+ expects: /* @__PURE__ */ Xe(t),
3109
3111
  async: !1,
3110
3112
  literal: t,
3111
3113
  message: e,
@@ -3243,11 +3245,11 @@ function ue(t) {
3243
3245
  };
3244
3246
  }
3245
3247
  // @__NO_SIDE_EFFECTS__
3246
- function L(t, e) {
3248
+ function $(t, e) {
3247
3249
  return {
3248
3250
  kind: "schema",
3249
3251
  type: "tuple",
3250
- reference: L,
3252
+ reference: $,
3251
3253
  expects: "Array",
3252
3254
  async: !1,
3253
3255
  items: t,
@@ -3388,8 +3390,8 @@ function Ia(...t) {
3388
3390
  }
3389
3391
  };
3390
3392
  }
3391
- var Ta = /* @__PURE__ */ g(/* @__PURE__ */ ue(), /* @__PURE__ */ rs(32)), Aa = /* @__PURE__ */ g(/* @__PURE__ */ ue(), /* @__PURE__ */ vn(1)), cs = /* @__PURE__ */ g(/* @__PURE__ */ x(), /* @__PURE__ */ C(-90), /* @__PURE__ */ ft(90)), fs = /* @__PURE__ */ g(/* @__PURE__ */ x(), /* @__PURE__ */ C(-180), /* @__PURE__ */ ft(180)), Tt = /* @__PURE__ */ R({ lat: cs, lng: fs }), hs = /* @__PURE__ */ R({ sw: Tt, ne: Tt }), Na = /* @__PURE__ */ R({ bounds: hs, center: Tt, zoom: /* @__PURE__ */ x() }), sn = /* @__PURE__ */ ls((t) => t instanceof HTMLElement, "Must be an HTMLElement"), Ca = /* @__PURE__ */ R({ mapSize: /* @__PURE__ */ g(/* @__PURE__ */ x(), /* @__PURE__ */ C(1)), zoomMin: /* @__PURE__ */ g(/* @__PURE__ */ x(), /* @__PURE__ */ C(0)), zoomMax: /* @__PURE__ */ g(/* @__PURE__ */ x(), /* @__PURE__ */ C(0)), zoomScale: /* @__PURE__ */ gn([/* @__PURE__ */ Re(1), /* @__PURE__ */ Re(2), /* @__PURE__ */ Re(10)]) }), Ra = /* @__PURE__ */ R({ inserted: /* @__PURE__ */ g(/* @__PURE__ */ T(), /* @__PURE__ */ z(/* @__PURE__ */ L([])), /* @__PURE__ */ j(/* @__PURE__ */ os())), insert: /* @__PURE__ */ g(/* @__PURE__ */ T(), /* @__PURE__ */ z(/* @__PURE__ */ L([])), /* @__PURE__ */ j(/* @__PURE__ */ De())), remove: /* @__PURE__ */ g(/* @__PURE__ */ T(), /* @__PURE__ */ z(/* @__PURE__ */ L([])), /* @__PURE__ */ j(/* @__PURE__ */ De())), update: /* @__PURE__ */ g(/* @__PURE__ */ T(), /* @__PURE__ */ z(/* @__PURE__ */ L([/* @__PURE__ */ x()])), /* @__PURE__ */ j(/* @__PURE__ */ De())) }), er = /* @__PURE__ */ gn([/* @__PURE__ */ Re("idle"), /* @__PURE__ */ Re("move"), /* @__PURE__ */ Re("click")]), Da = /* @__PURE__ */ R({ getParameters: /* @__PURE__ */ g(/* @__PURE__ */ T(), /* @__PURE__ */ z(/* @__PURE__ */ L([])), /* @__PURE__ */ j(Ca)), getContainer: /* @__PURE__ */ g(/* @__PURE__ */ T(), /* @__PURE__ */ z(/* @__PURE__ */ L([])), /* @__PURE__ */ j(sn)), getZoom: /* @__PURE__ */ g(/* @__PURE__ */ T(), /* @__PURE__ */ z(/* @__PURE__ */ L([])), /* @__PURE__ */ j(/* @__PURE__ */ x())), getBounds: /* @__PURE__ */ g(/* @__PURE__ */ T(), /* @__PURE__ */ z(/* @__PURE__ */ L([])), /* @__PURE__ */ j(hs)), getCenter: /* @__PURE__ */ g(/* @__PURE__ */ T(), /* @__PURE__ */ z(/* @__PURE__ */ L([])), /* @__PURE__ */ j(Tt)), getViewport: /* @__PURE__ */ g(/* @__PURE__ */ T(), /* @__PURE__ */ z(/* @__PURE__ */ L([])), /* @__PURE__ */ j(Na)), panBy: /* @__PURE__ */ g(/* @__PURE__ */ T(), /* @__PURE__ */ z(/* @__PURE__ */ L([/* @__PURE__ */ x(), /* @__PURE__ */ x()])), /* @__PURE__ */ j(/* @__PURE__ */ De())), createMarker: /* @__PURE__ */ g(/* @__PURE__ */ T(), /* @__PURE__ */ z(/* @__PURE__ */ L([sn, cs, fs, /* @__PURE__ */ x()])), /* @__PURE__ */ j(Ra)), subscribe: /* @__PURE__ */ g(/* @__PURE__ */ T(), /* @__PURE__ */ z(/* @__PURE__ */ L([er, /* @__PURE__ */ T()])), /* @__PURE__ */ j(/* @__PURE__ */ De())), unsubscribe: /* @__PURE__ */ g(/* @__PURE__ */ T(), /* @__PURE__ */ z(/* @__PURE__ */ L([er, /* @__PURE__ */ T()])), /* @__PURE__ */ j(/* @__PURE__ */ De())) }), Jt = /* @__PURE__ */ g(/* @__PURE__ */ T(), /* @__PURE__ */ z(/* @__PURE__ */ L([/* @__PURE__ */ ue()])), /* @__PURE__ */ ss(/* @__PURE__ */ Ia(/* @__PURE__ */ us(), /* @__PURE__ */ ts(), sn))), Oa = /* @__PURE__ */ R({ dimensions: /* @__PURE__ */ R({ width: /* @__PURE__ */ g(/* @__PURE__ */ x(), /* @__PURE__ */ C(0)), height: /* @__PURE__ */ g(/* @__PURE__ */ x(), /* @__PURE__ */ C(0)), padding: /* @__PURE__ */ g(/* @__PURE__ */ x(), /* @__PURE__ */ C(0)), radius: /* @__PURE__ */ g(/* @__PURE__ */ x(), /* @__PURE__ */ C(0)) }), colors: /* @__PURE__ */ re(/* @__PURE__ */ R({ background: /* @__PURE__ */ re(/* @__PURE__ */ ue()), border: /* @__PURE__ */ re(/* @__PURE__ */ ue()), shadow: /* @__PURE__ */ re(/* @__PURE__ */ ue()) })) }), tr = /* @__PURE__ */ R({ dimensions: /* @__PURE__ */ g(/* @__PURE__ */ R({ width: /* @__PURE__ */ g(/* @__PURE__ */ x(), /* @__PURE__ */ C(0)), height: /* @__PURE__ */ g(/* @__PURE__ */ x(), /* @__PURE__ */ C(0)), margin: /* @__PURE__ */ g(/* @__PURE__ */ x(), /* @__PURE__ */ C(0)), radius: /* @__PURE__ */ g(/* @__PURE__ */ x(), /* @__PURE__ */ C(0)) }), /* @__PURE__ */ ns((t) => Math.min(t.width, t.height) / t.margin >= 4, "Minimum of width or height must be greater than or equal to 4 * margin")), colors: /* @__PURE__ */ re(/* @__PURE__ */ R({ background: /* @__PURE__ */ re(/* @__PURE__ */ ue()), filter: /* @__PURE__ */ re(/* @__PURE__ */ ue()) })) }), $a = /* @__PURE__ */ R({ id: /* @__PURE__ */ g(/* @__PURE__ */ ue(), /* @__PURE__ */ vn(1)), rank: /* @__PURE__ */ g(/* @__PURE__ */ x(), /* @__PURE__ */ C(0)), lat: /* @__PURE__ */ g(/* @__PURE__ */ x(), /* @__PURE__ */ C(-90), /* @__PURE__ */ ft(90)), lng: /* @__PURE__ */ g(/* @__PURE__ */ x(), /* @__PURE__ */ C(-180), /* @__PURE__ */ ft(180)), tooltip: /* @__PURE__ */ R({ style: tr, body: Jt }), pin: /* @__PURE__ */ re(/* @__PURE__ */ R({ style: Oa, body: /* @__PURE__ */ re(Jt) })), popup: /* @__PURE__ */ re(/* @__PURE__ */ R({ style: tr, body: Jt })) });
3392
- class za {
3393
+ var Ta = /* @__PURE__ */ g(/* @__PURE__ */ ue(), /* @__PURE__ */ rs(32)), Aa = /* @__PURE__ */ g(/* @__PURE__ */ ue(), /* @__PURE__ */ vn(1)), cs = /* @__PURE__ */ g(/* @__PURE__ */ x(), /* @__PURE__ */ C(-90), /* @__PURE__ */ ft(90)), fs = /* @__PURE__ */ g(/* @__PURE__ */ x(), /* @__PURE__ */ C(-180), /* @__PURE__ */ ft(180)), Tt = /* @__PURE__ */ R({ lat: cs, lng: fs }), hs = /* @__PURE__ */ R({ sw: Tt, ne: Tt }), Na = /* @__PURE__ */ R({ bounds: hs, center: Tt, zoom: /* @__PURE__ */ x() }), sn = /* @__PURE__ */ ls((t) => t instanceof HTMLElement, "Must be an HTMLElement"), Ca = /* @__PURE__ */ R({ mapSize: /* @__PURE__ */ g(/* @__PURE__ */ x(), /* @__PURE__ */ C(1)), zoomMin: /* @__PURE__ */ g(/* @__PURE__ */ x(), /* @__PURE__ */ C(0)), zoomMax: /* @__PURE__ */ g(/* @__PURE__ */ x(), /* @__PURE__ */ C(0)), zoomScale: /* @__PURE__ */ gn([/* @__PURE__ */ Re(1), /* @__PURE__ */ Re(2), /* @__PURE__ */ Re(10)]) }), Ra = /* @__PURE__ */ R({ inserted: /* @__PURE__ */ g(/* @__PURE__ */ T(), /* @__PURE__ */ L(/* @__PURE__ */ $([])), /* @__PURE__ */ j(/* @__PURE__ */ os())), insert: /* @__PURE__ */ g(/* @__PURE__ */ T(), /* @__PURE__ */ L(/* @__PURE__ */ $([])), /* @__PURE__ */ j(/* @__PURE__ */ De())), remove: /* @__PURE__ */ g(/* @__PURE__ */ T(), /* @__PURE__ */ L(/* @__PURE__ */ $([])), /* @__PURE__ */ j(/* @__PURE__ */ De())), update: /* @__PURE__ */ g(/* @__PURE__ */ T(), /* @__PURE__ */ L(/* @__PURE__ */ $([/* @__PURE__ */ x()])), /* @__PURE__ */ j(/* @__PURE__ */ De())) }), er = /* @__PURE__ */ gn([/* @__PURE__ */ Re("idle"), /* @__PURE__ */ Re("move"), /* @__PURE__ */ Re("click")]), Da = /* @__PURE__ */ R({ getParameters: /* @__PURE__ */ g(/* @__PURE__ */ T(), /* @__PURE__ */ L(/* @__PURE__ */ $([])), /* @__PURE__ */ j(Ca)), getContainer: /* @__PURE__ */ g(/* @__PURE__ */ T(), /* @__PURE__ */ L(/* @__PURE__ */ $([])), /* @__PURE__ */ j(sn)), getZoom: /* @__PURE__ */ g(/* @__PURE__ */ T(), /* @__PURE__ */ L(/* @__PURE__ */ $([])), /* @__PURE__ */ j(/* @__PURE__ */ x())), getBounds: /* @__PURE__ */ g(/* @__PURE__ */ T(), /* @__PURE__ */ L(/* @__PURE__ */ $([])), /* @__PURE__ */ j(hs)), getCenter: /* @__PURE__ */ g(/* @__PURE__ */ T(), /* @__PURE__ */ L(/* @__PURE__ */ $([])), /* @__PURE__ */ j(Tt)), getViewport: /* @__PURE__ */ g(/* @__PURE__ */ T(), /* @__PURE__ */ L(/* @__PURE__ */ $([])), /* @__PURE__ */ j(Na)), panBy: /* @__PURE__ */ g(/* @__PURE__ */ T(), /* @__PURE__ */ L(/* @__PURE__ */ $([/* @__PURE__ */ x(), /* @__PURE__ */ x()])), /* @__PURE__ */ j(/* @__PURE__ */ De())), createMarker: /* @__PURE__ */ g(/* @__PURE__ */ T(), /* @__PURE__ */ L(/* @__PURE__ */ $([sn, cs, fs, /* @__PURE__ */ x()])), /* @__PURE__ */ j(Ra)), subscribe: /* @__PURE__ */ g(/* @__PURE__ */ T(), /* @__PURE__ */ L(/* @__PURE__ */ $([er, /* @__PURE__ */ T()])), /* @__PURE__ */ j(/* @__PURE__ */ De())), unsubscribe: /* @__PURE__ */ g(/* @__PURE__ */ T(), /* @__PURE__ */ L(/* @__PURE__ */ $([er, /* @__PURE__ */ T()])), /* @__PURE__ */ j(/* @__PURE__ */ De())) }), Xt = /* @__PURE__ */ g(/* @__PURE__ */ T(), /* @__PURE__ */ L(/* @__PURE__ */ $([/* @__PURE__ */ ue()])), /* @__PURE__ */ ss(/* @__PURE__ */ Ia(/* @__PURE__ */ us(), /* @__PURE__ */ ts(), sn))), Oa = /* @__PURE__ */ R({ dimensions: /* @__PURE__ */ R({ width: /* @__PURE__ */ g(/* @__PURE__ */ x(), /* @__PURE__ */ C(0)), height: /* @__PURE__ */ g(/* @__PURE__ */ x(), /* @__PURE__ */ C(0)), padding: /* @__PURE__ */ g(/* @__PURE__ */ x(), /* @__PURE__ */ C(0)), radius: /* @__PURE__ */ g(/* @__PURE__ */ x(), /* @__PURE__ */ C(0)) }), colors: /* @__PURE__ */ re(/* @__PURE__ */ R({ background: /* @__PURE__ */ re(/* @__PURE__ */ ue()), border: /* @__PURE__ */ re(/* @__PURE__ */ ue()), shadow: /* @__PURE__ */ re(/* @__PURE__ */ ue()) })) }), tr = /* @__PURE__ */ R({ dimensions: /* @__PURE__ */ g(/* @__PURE__ */ R({ width: /* @__PURE__ */ g(/* @__PURE__ */ x(), /* @__PURE__ */ C(0)), height: /* @__PURE__ */ g(/* @__PURE__ */ x(), /* @__PURE__ */ C(0)), margin: /* @__PURE__ */ g(/* @__PURE__ */ x(), /* @__PURE__ */ C(0)), radius: /* @__PURE__ */ g(/* @__PURE__ */ x(), /* @__PURE__ */ C(0)) }), /* @__PURE__ */ ns((t) => Math.min(t.width, t.height) / t.margin >= 4, "Minimum of width or height must be greater than or equal to 4 * margin")), colors: /* @__PURE__ */ re(/* @__PURE__ */ R({ background: /* @__PURE__ */ re(/* @__PURE__ */ ue()), filter: /* @__PURE__ */ re(/* @__PURE__ */ ue()) })) }), za = /* @__PURE__ */ R({ id: /* @__PURE__ */ g(/* @__PURE__ */ ue(), /* @__PURE__ */ vn(1)), rank: /* @__PURE__ */ g(/* @__PURE__ */ x(), /* @__PURE__ */ C(0)), lat: /* @__PURE__ */ g(/* @__PURE__ */ x(), /* @__PURE__ */ C(-90), /* @__PURE__ */ ft(90)), lng: /* @__PURE__ */ g(/* @__PURE__ */ x(), /* @__PURE__ */ C(-180), /* @__PURE__ */ ft(180)), tooltip: /* @__PURE__ */ R({ style: tr, body: Xt }), pin: /* @__PURE__ */ re(/* @__PURE__ */ R({ style: Oa, body: /* @__PURE__ */ re(Xt) })), popup: /* @__PURE__ */ re(/* @__PURE__ */ R({ style: tr, body: Xt })) });
3394
+ class La {
3393
3395
  apiKey;
3394
3396
  apiJwt;
3395
3397
  markerStatesStore;
@@ -3420,7 +3422,7 @@ class za {
3420
3422
  }
3421
3423
  async fetchStates(e, n) {
3422
3424
  if (e.length == 0) return [];
3423
- if (e.length == 1) return [[0, [[0, Jr.indexOf(sa)]]]];
3425
+ if (e.length == 1) return [[0, [[0, Xr.indexOf(sa)]]]];
3424
3426
  const r = {
3425
3427
  key: this.apiKey,
3426
3428
  jwt: this.apiJwt,
@@ -3430,7 +3432,7 @@ class za {
3430
3432
  return s.jwt && (this.apiJwt = s.jwt), s.states;
3431
3433
  }
3432
3434
  }
3433
- const nr = "1.2.27", La = "https://maps.api.arenarium.dev/auth", Fa = "https://maps.api.arenarium.dev/log", rr = 500;
3435
+ const nr = "1.2.28", $a = "https://maps.api.arenarium.dev/auth", Fa = "https://maps.api.arenarium.dev/log", rr = 500;
3434
3436
  class ps {
3435
3437
  apiKey;
3436
3438
  mapProvider;
@@ -3452,11 +3454,11 @@ class ps {
3452
3454
  this.onMapMove.bind(this),
3453
3455
  this.onMapIdle.bind(this),
3454
3456
  this.onMapClick.bind(this)
3455
- ), this.markers = /* @__PURE__ */ new Map(), this.markerVisibilityManager = new $s(this.mapProvider), this.markerElementsManager = new oa(this.mapProvider), this.markerStatesManager = new za(e, n), this.markerVisibilityProcessor = new Ht(this.onMarkersVisiblityProcess.bind(this)), this.markerElementsProcessor = new Ht(this.onMarkersRenderProcess.bind(this)), this.markerStateProcessor = new Ht(this.onMarkersStateProcess.bind(this)), this.configuration = s;
3457
+ ), this.markers = /* @__PURE__ */ new Map(), this.markerVisibilityManager = new zs(this.mapProvider), this.markerElementsManager = new oa(this.mapProvider), this.markerStatesManager = new La(e, n), this.markerVisibilityProcessor = new Ht(this.onMarkersVisiblityProcess.bind(this)), this.markerElementsProcessor = new Ht(this.onMarkersRenderProcess.bind(this)), this.markerStateProcessor = new Ht(this.onMarkersStateProcess.bind(this)), this.configuration = s;
3456
3458
  }
3457
3459
  //#region Core
3458
3460
  static async create(e, n, r) {
3459
- let a = (await ca(La, { key: e, version: nr })).jwt;
3461
+ let a = (await ca($a, { key: e, version: nr })).jwt;
3460
3462
  if (!a) throw new Error("Failed to get api jwt");
3461
3463
  return new ps(e, a, n, r);
3462
3464
  }
@@ -3549,7 +3551,7 @@ class ps {
3549
3551
  //#endregion
3550
3552
  //#region Public
3551
3553
  async updateMarkers(e) {
3552
- _t(/* @__PURE__ */ as($a), e);
3554
+ _t(/* @__PURE__ */ as(za), e);
3553
3555
  try {
3554
3556
  const n = this.mapProvider.getParameters();
3555
3557
  for (const s of e)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arenarium/maps",
3
- "version": "1.2.28",
3
+ "version": "1.2.29",
4
4
  "license": "MIT",
5
5
  "author": "arenarium",
6
6
  "description": "Visualize complex map markers clearly. A JavaScript library for effective display of map markers, compatible with MapLibre, Mapbox, and Google Maps.",
@@ -38,7 +38,7 @@
38
38
  "**/*.css"
39
39
  ],
40
40
  "dependencies": {
41
- "@arenarium/maps-core": "1.0.11",
41
+ "@arenarium/maps-core": "1.0.12",
42
42
  "svelte": "^5.51.1",
43
43
  "valibot": "^1.2.0"
44
44
  },